EVOLUTION-MANAGER
Edit File: 2.6e516439.chunk.js
/*! For license information please see 2.6e516439.chunk.js.LICENSE.txt */ (this.webpackJsonptraccar=this.webpackJsonptraccar||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(416)},function(e,t,n){"use strict";function r(){return(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}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.a=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},function(e,t,n){e.exports=n(420)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(42);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(127);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return E}));var r=n(53),i=n.n(r),o=n(26),a=n.n(o),s=n(137),u=n.n(s),l=n(223),c=n.n(l),f=n(106),p=n.n(f),d=function(e){return 0===e?0:e>0?1:-1},h=function(e){return p()(e)&&e.indexOf("%")===e.length-1},m=function(e){return c()(e)&&!u()(e)},v=function(e){return m(e)||p()(e)},g=0,y=function(e){var t=++g;return"".concat(e||"").concat(t)},b=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!m(e)&&!p()(e))return r;if(h(e)){var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return u()(n)&&(n=r),i&&n>t&&(n=t),n},_=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},x=function(e){if(!a()(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1},w=function(e,t){return m(e)&&m(t)?function(n){return e+n*(t-e)}:function(){return t}};function E(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):i()(e,t))===n})):null}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=n.n(o),s=(n(3),n(66)),u=n.n(s),l=n(77),c=n(232),f=n(195),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,p=void 0!==s&&s,d=t.name,h=Object(i.a)(t,["defaultTheme","withTheme","name"]);var m=d,v=Object(l.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:d||n.displayName,classNamePrefix:m},h)),g=a.a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,l=Object(i.a)(e,["classes","innerRef"]),h=v(Object(r.a)({},n.defaultProps,e)),m=l;return("string"===typeof d||p)&&(s=Object(f.a)()||o,d&&(m=Object(c.a)({theme:s,name:d,props:l})),p&&!m.theme&&(m.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},m))}));return u()(g,n),g}},d=n(82);t.a=function(e,t){return p(e,Object(r.a)({defaultTheme:d.a},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(35);function i(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?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){e.exports=n(425)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(384);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return o})),n.d(t,"l",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"j",(function(){return v}));var r=n(384);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(0===e.indexOf("#"))return e;var t=u(e).values;return"#".concat(t.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))}function s(e){var t=(e=u(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),l({type:s,values:c})}function u(e){if(e.type)return e;if("#"===e.charAt(0))return u(o(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function l(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e,t){var n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function f(e){var t="hsl"===(e=u(e)).type?u(s(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?m(e,t):v(e,t)}function d(e,t){return h(e,t)}function h(e,t){return e=u(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,l(e)}function m(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function v(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return l(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return G})),n.d(t,"d",(function(){return Z}));var r=n(0),i=n.n(r),o=(n(3),i.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}(),c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var f=n||o;return i.a.createElement(f.Provider,{value:s},a)},p=n(1),d=n(42),h=n(66),m=n.n(h),v=n(283),g=[],y=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function _(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function w(e,t,n,r,i,o,a,s,u,l){if(e){var c=!1,f=null,p=function(){if(!c){var e,n,p=t.getState();try{e=r(p,i.current)}catch(d){n=d,f=d}n||(f=null),e===o.current?a.current||u():(o.current=e,s.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var E=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=n.methodName,c=void 0===u?"connectAdvanced":u,f=n.renderCountProp,h=void 0===f?void 0:f,O=n.shouldHandleStateChanges,C=void 0===O||O,D=n.storeKey,S=void 0===D?"store":D,k=(n.withRef,n.forwardRef),A=void 0!==k&&k,T=n.context,P=void 0===T?o:T,M=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),j=P;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=Object(p.a)({},M,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:C,storeKey:S,displayName:o,wrappedComponentName:n,WrappedComponent:t}),u=M.pure;var f=u?r.useMemo:function(e){return e()};function O(n){var o=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(d.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),s=o[0],u=o[1],c=o[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(v.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:j}),[s,j]),m=Object(r.useContext)(h),O=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var D=O?n.store:m.store,S=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(D)}),[D]),k=Object(r.useMemo)((function(){if(!C)return y;var e=new l(D,O?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[D,O,m]),A=k[0],T=k[1],P=Object(r.useMemo)((function(){return O?m:Object(p.a)({},m,{subscription:A})}),[O,m,A]),M=Object(r.useReducer)(b,g,E),I=M[0][0],F=M[1];if(I&&I.error)throw I.error;var R=Object(r.useRef)(),L=Object(r.useRef)(c),z=Object(r.useRef)(),B=Object(r.useRef)(!1),N=f((function(){return z.current&&c===L.current?z.current:S(D.getState(),c)}),[D,I,c]);_(x,[L,R,B,c,N,z,T]),_(w,[C,D,A,S,L,R,B,z,T,F],[D,A,S]);var U=Object(r.useMemo)((function(){return i.a.createElement(t,Object(p.a)({},N,{ref:u}))}),[u,t,N]);return Object(r.useMemo)((function(){return C?i.a.createElement(h.Provider,{value:P},U):U}),[h,U,P])}var D=u?i.a.memo(O):O;if(D.WrappedComponent=t,D.displayName=O.displayName=o,A){var k=i.a.forwardRef((function(e,t){return i.a.createElement(D,Object(p.a)({},e,{reactReduxForwardedRef:t}))}));return k.displayName=o,k.WrappedComponent=t,m()(k,t)}return m()(D,t)}}function C(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function D(e,t){if(C(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!C(e[n[i]],t[n[i]]))return!1;return!0}function S(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function k(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=k(i),i=r(t,n)),i},r}}var T=[function(e){return"function"===typeof e?A(e):void 0},function(e){return e?void 0:S((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?S((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var P=[function(e){return"function"===typeof e?A(e):void 0},function(e){return e?void 0:S((function(){return{}}))}];function M(e,t,n){return Object(p.a)({},n,e,t)}var j=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];function I(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,u,l,c=i.areStatesEqual,f=i.areOwnPropsEqual,p=i.areStatePropsEqual,d=!1;function h(i,d){var h=!f(d,a),m=!c(i,o);return o=i,a=d,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a)):m?function(){var t=e(o,a),r=!p(t,s);return s=t,r&&(l=n(s,u,a)),l}():l}return function(i,c){return d?h(i,c):(s=e(o=i,a=c),u=t(r,a),l=n(s,u,a),d=!0,l)}}function R(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(d.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),u=i(e,o);return(o.pure?F:I)(a,s,u,e,o)}function L(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,i=t.mapStateToPropsFactories,o=void 0===i?P:i,a=t.mapDispatchToPropsFactories,s=void 0===a?T:a,u=t.mergePropsFactories,l=void 0===u?j:u,c=t.selectorFactory,f=void 0===c?R:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,u=a.pure,c=void 0===u||u,h=a.areStatesEqual,m=void 0===h?z:h,v=a.areOwnPropsEqual,g=void 0===v?D:v,y=a.areStatePropsEqual,b=void 0===y?D:y,_=a.areMergedPropsEqual,x=void 0===_?D:_,w=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=L(e,o,"mapStateToProps"),O=L(t,s,"mapDispatchToProps"),C=L(n,l,"mergeProps");return r(f,Object(p.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:O,initMergeProps:C,pure:c,areStatesEqual:m,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:x},w))}}var N=B();function U(){return Object(r.useContext)(o)}function V(e){void 0===e&&(e=o);var t=e===o?U:function(){return Object(r.useContext)(e)};return function(){return t().store}}var H=V();function W(e){void 0===e&&(e=o);var t=e===o?H:V(e);return function(){return t().dispatch}}var G=W(),q=function(e,t){return e===t};function $(e){void 0===e&&(e=o);var t=e===o?U:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=q);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return new l(n,i)}),[n,i]),u=Object(r.useRef)(),f=Object(r.useRef)(),p=Object(r.useRef)(),d=Object(r.useRef)(),h=n.getState();try{if(e!==f.current||h!==p.current||u.current){var m=e(h);o=void 0!==d.current&&t(m,d.current)?d.current:m}else o=d.current}catch(v){throw u.current&&(v.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),v}return c((function(){f.current=e,p.current=h,d.current=o,u.current=void 0})),c((function(){function e(){try{var e=n.getState(),r=f.current(e);if(t(r,d.current))return;d.current=r,p.current=e}catch(v){u.current=v}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var Y,Z=$(),X=n(24);Y=X.unstable_batchedUpdates,a=Y},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(98),i=n(55);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n(55),i=n.n(r),o=n(0);function a(e){return(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})(e)}var s=["viewBox","children"],u=["className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","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","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],l=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],c=function(e,t,n){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var r=e;if(Object(o.isValidElement)(e)&&(r=e.props),!i()(r))return null;var a={};return Object.keys(r).forEach((function(e){(u.includes(e)||n&&s.includes(e)||t&&l.includes(e))&&(a[e]=r[e])})),a},f=function(e,t){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if(Object(o.isValidElement)(e)&&(n=e.props),!i()(n))return null;var r={};return Object.keys(n).forEach((function(e){l.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},p=function(e,t,n){if(!i()(e)||"object"!==a(e))return null;var r=null;return Object.keys(e).forEach((function(i){var o=e[i];l.includes(i)&&"function"===typeof o&&(r||(r={}),r[i]=function(e,t,n){return function(r){return e(t,n,r),null}}(o,t,n))})),r}},function(e,t,n){"use strict";n.d(t,"t",(function(){return ge})),n.d(t,"j",(function(){return ye})),n.d(t,"b",(function(){return be})),n.d(t,"n",(function(){return _e})),n.d(t,"m",(function(){return xe})),n.d(t,"g",(function(){return we})),n.d(t,"f",(function(){return Ee})),n.d(t,"a",(function(){return Oe})),n.d(t,"w",(function(){return De})),n.d(t,"k",(function(){return Se})),n.d(t,"u",(function(){return ke})),n.d(t,"i",(function(){return Ae})),n.d(t,"q",(function(){return Te})),n.d(t,"d",(function(){return Pe})),n.d(t,"x",(function(){return Me})),n.d(t,"c",(function(){return je})),n.d(t,"o",(function(){return Re})),n.d(t,"r",(function(){return Le})),n.d(t,"h",(function(){return ze})),n.d(t,"p",(function(){return Be})),n.d(t,"l",(function(){return Ne})),n.d(t,"y",(function(){return He})),n.d(t,"e",(function(){return We})),n.d(t,"v",(function(){return Ge})),n.d(t,"s",(function(){return qe}));var r=n(187),i=n.n(r),o=n(130),a=n.n(o),s=n(137),u=n.n(s),l=n(115),c=n.n(l),f=n(106),p=n.n(f),d=n(26),h=n.n(d),m=n(155),v=n.n(m),g=n(156),y=n.n(g),b=n(364),_=n.n(b),x=n(15),w=n.n(x),E=n(53),O=n.n(E),C=n(14),D=n.n(C),S=n(32),k=n.n(S);function A(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P=function(e){return e},M={"@@functional/placeholder":!0},j=function(e){return e===M},I=function(e){return function t(){return 0===arguments.length||1===arguments.length&&j(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},F=function(e){return function e(t,n){return 1===t?n:I((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==M})).length;return a>=t?n.apply(void 0,i):e(t-a,I((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return j(e)?t.shift():e}));return n.apply(void 0,A(o).concat(t))})))}))}(e.length,e)},R=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},L=F((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return P;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}},B=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},N=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var U={rangeStep:function(e,t,n){for(var r=new k.a(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new k.a(e).abs().log(10).toNumber())+1},interpolateNumber:F((function(e,t,n){var r=+e;return r+n*(+t-r)})),uninterpolateNumber:F((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),uninterpolateTruncation:F((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}))};function V(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||W(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){if(e){if("string"===typeof e)return G(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)?G(e,t):void 0}}function G(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 q(e){var t=H(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function $(e,t,n){if(e.lte(0))return new k.a(0);var r=U.getDigitCount(e.toNumber()),i=new k.a(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new k.a(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new k.a(Math.ceil(s))}function Y(e,t,n){var r=1,i=new k.a(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new k.a(10).pow(U.getDigitCount(e)-1),i=new k.a(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new k.a(Math.floor(e)))}else 0===e?i=new k.a(Math.floor((t-1)/2)):n||(i=new k.a(Math.floor(e)));var a=Math.floor((t-1)/2);return z(L((function(e){return i.add(new k.a(e-a).mul(r)).toNumber()})),R)(0,t)}function Z(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new k.a(0),tickMin:new k.a(0),tickMax:new k.a(0)};var o,a=$(new k.a(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new k.a(0):(o=new k.a(e).add(t).div(2)).sub(new k.a(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new k.a(t).sub(o).div(a).toNumber()),l=s+u+1;return l>n?Z(e,t,n,r,i+1):(l<n&&(u=t>0?u+(n-l):u,s=t>0?s:s+(n-l)),{step:a,tickMin:o.sub(new k.a(s).mul(a)),tickMax:o.add(new k.a(u).mul(a))})}var X=N((function(e){var t=H(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=q([n,r]),u=H(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(V(R(0,i-1).map((function(){return 1/0})))):[].concat(V(R(0,i-1).map((function(){return-1/0}))),[c]);return n>r?B(f):f}if(l===c)return Y(l,i,o);var p=Z(l,c,a,o),d=p.step,h=p.tickMin,m=p.tickMax,v=U.rangeStep(h,m.add(new k.a(.1).mul(d)),d);return n>r?B(v):v})),K=(N((function(e){var t=H(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=q([n,r]),u=H(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return Y(l,i,o);var f=$(new k.a(c).sub(l).div(a-1),o,0),p=z(L((function(e){return new k.a(l).add(new k.a(e).mul(f)).toNumber()})),R),d=p(0,a).filter((function(e){return e>=l&&e<=c}));return n>r?B(d):d})),N((function(e,t){var n=H(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=q([r,i]),s=H(a,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[r,i];if(u===l)return[u];var c=Math.max(t,2),f=$(new k.a(l).sub(u).div(c-1),o,0),p=[].concat(V(U.rangeStep(new k.a(u),new k.a(l).sub(new k.a(.99).mul(f)),f)),[l]);return r>i?B(p):p}))),J=n(221),Q=n(56),ee=n(189),te=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ne=n(52),re=n(132),ie=n(36),oe=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function ae(e,t){return e[t]}function se(e){var t=[];return t.key=e,t}var ue=n(6),le=n(154),ce=n(28),fe=n(17);function pe(e){return function(e){if(Array.isArray(e))return de(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(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 he(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t,n){return D()(e)||D()(t)?n:Object(ue.f)(t)?O()(e,t,n):w()(t)?t(e):n}function ye(e,t,n,r){var i=_()(e,(function(e){return ge(e,t)}));if("number"===n){var o=i.filter((function(e){return Object(ue.g)(e)||parseFloat(e)}));return o.length?[y()(o),v()(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!D()(e)})):i).map((function(e){return Object(ue.f)(e)||e instanceof Date?e:""}))}var be=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,u=0;u<a;u++){var l=u>0?r[u-1].coordinate:r[a-1].coordinate,c=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if(Object(ue.i)(c-l)!==Object(ue.i)(f-c)){var d=[];if(Object(ue.i)(f-c)===Object(ue.i)(s[1]-s[0])){p=f;var h=c+s[1]-s[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var m=f+s[1]-s[0];d[0]=Math.min(c,(m+c)/2),d[1]=Math.max(c,(m+c)/2)}var v=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=r[u].index;break}}else{var g=Math.min(l,f),y=Math.max(l,f);if(e>(g+c)/2&&e<=(y+c)/2){o=r[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}}else o=0;return o},_e=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},xe=function(e){var t,n=e.children,r=e.formatedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=Object(ce.b)(n,le.a.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:_e(t),value:i||r,payload:t.props}})),me(me(me({},a.props),le.a.getWithHeight(a,i)),{},{payload:t,item:a})):null},we=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var u=r[o[a]].stackGroups,l=Object.keys(u),c=0,f=l.length;c<f;c++){var p=u[l[c]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return Object(ce.c)(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,g=m[0].props[h];i[g]||(i[g]=[]),i[g].push({item:m[0],stackList:m.slice(1),barSize:D()(v)?t:v})}}return i},Ee=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var u,l=Object(ue.c)(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var c=!1,f=r/s,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&f>0&&(c=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-l,size:0};u=o.reduce((function(e,t){var n=[].concat(pe(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:c?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Object(ue.c)(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var m=(r-2*h-(s-1)*l)/s;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;u=o.reduce((function(e,t,n){var r=[].concat(pe(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u},Oe=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),u=xe({children:i,legendWidth:s}),l=e;if(u){var c=r||{},f=u.align,p=u.verticalAlign,d=u.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Object(ue.g)(e[f])&&(l=me(me({},e),{},ve({},f,l[f]+(c.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Object(ue.g)(e[p])&&(l=me(me({},e),{},ve({},p,l[p]+(c.height||0))))}return l},Ce=function(e,t,n,r){var i=t.props.children,o=Object(ce.a)(i,"ErrorBar").filter((function(e){var t=e.props.direction;return!(!D()(t)&&!D()(r))||r.indexOf(t)>=0}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=ge(t,n,0),i=h()(r)?[y()(r),v()(r)]:[r,r],o=a.reduce((function(e,n){var r=ge(t,n,0),o=i[0]-Math.abs(h()(r)?r[0]:r),a=i[1]+Math.abs(h()(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},De=function(e,t,n,r){var i=t.map((function(t){return Ce(e,t,n,r)})).filter((function(e){return!D()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null},Se=function(e,t,n,r){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&Ce(e,t,i)||ye(e,i,n,r)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e}),[])},ke=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},Ae=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},Te=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/2:0;return s="angleAxis"===e.axisType?2*Object(ue.i)(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}}))},Pe=function(e,t,n){var r;return w()(n)?r=n:w()(t)&&(r=t),w()(e)||r?function(t,n,i,o){w()(e)&&e(t,n,i,o),w()(r)&&r(t,n,i,o)}:null},Me=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:J.a(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Q.a(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:J.b(),realScaleType:"point"}:"category"===i?{scale:J.a(),realScaleType:"band"}:{scale:Q.a(),realScaleType:"linear"};if(p()(r)){var s="scale".concat(c()(r));return{scale:(ee[s]||J.b)(),realScaleType:ee[s]?s:"point"}}return w()(r)?{scale:r}:{scale:J.b(),realScaleType:"point"}},je=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},Ie={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=u()(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}te(e,t)}},none:te,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}te(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,l=0;s<i;++s){for(var c=e[t[s]],f=c[a][1]||0,p=(f-(c[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,te(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=u()(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},Fe=function(e,t,n){var r=t.map((function(e){return e.props.dataKey}));return function(){var e=Object(ie.a)([]),t=oe,n=te,r=ae;function i(i){var o,a,s,u=Array.from(e.apply(this,arguments),se),l=u.length,c=-1,f=Object(ne.a)(i);try{for(f.s();!(s=f.n()).done;){var p=s.value;for(o=0,++c;o<l;++o)(u[o][c]=[0,+r(p,u[o].key,c,i)]).data=p}}catch(d){f.e(d)}finally{f.f()}for(o=0,a=Object(re.a)(t(u));o<l;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:Object(ie.a)(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:Object(ie.a)(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?oe:"function"===typeof e?e:Object(ie.a)(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?te:e,i):n},i}().keys(r).value((function(e,t){return+ge(e,t,0)})).order(oe).offset(Ie[n])(e)},Re=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Object(ue.f)(o)){var u=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),s.hasStack=!0,s.stackGroups[o]=u}else s.stackGroups[Object(ue.j)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return me(me({},e),{},ve({},a,s))}),{});return Object.keys(a).reduce((function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,o){var a=s.stackGroups[o];return me(me({},t),{},ve({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Fe(e,a.items,i)}))}),{})),me(me({},t),{},ve({},o,s))}),{})},Le=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var u=e.domain();if(!u.length)return null;var l=X(u,i,a);return e.domain(function(e,t){return"number"===t?[y()(e),v()(e)]:e}(l,r)),{niceTicks:l}}if(i&&"number"===r){var c=e.domain();return{niceTicks:K(c,i,a)}}return null},ze=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!D()(i[t.dataKey])){var s=Object(ue.a)(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=ge(i,D()(a)?t.dataKey:a);return D()(u)?null:t.scale(u)},Be=function(e,t){var n=e.props.stackId;if(Object(ue.f)(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null},Ne=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[y()(t.concat([e[0]]).filter(ue.g)),v()(t.concat([e[1]]).filter(ue.g))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},Ue=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ve=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,He=function(e,t,n){if(!h()(e))return t;var r=[];if(Object(ue.g)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Ue.test(e[0])){var i=+Ue.exec(e[0])[1];r[0]=t[0]-i}else w()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Object(ue.g)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(Ve.test(e[1])){var o=+Ve.exec(e[1])[1];r[1]=t[1]+o}else w()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},We=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=a()(t,(function(e){return e.coordinate})),o=1/0,s=1,u=i.length;s<u;s++){var l=i[s],c=i[s-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return 0},Ge=function(e,t,n){return e&&e.length?i()(e,O()(n,"type.defaultProps.domain"))?t:e:t},qe=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType;return me(me({},Object(fe.c)(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:_e(e),value:ge(t,r),type:s,payload:t})}},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}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(59);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function l(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=d(NaN);return null!=e?p(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=r.momentProperties=[],y=!1;function b(e,t){var n,r,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)u(i=t[r=g[n]])||(e[r]=i);return e}function _(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function x(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function w(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,u=[];for(o=0;o<arguments.length;o++){if(i="","object"===typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,C={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),C[e]||(w(t),C[e]=!0)}function S(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var n,r=p({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(r[n]=p({},r[n]));return r}function A(e){null!=e&&this.set(e)}function T(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},I={};function F(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=L(t,e.localeData()),j[t]=j[t]||function(e){var t,n,r,i=e.match(P);for(t=0,n=i.length;t<n;t++)I[i[t]]?i[t]=I[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=S(i[r])?i[r].call(t,e):i[r];return o}}(t),j[t](e)):e.localeData().invalidDate()}function L(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var z={};function B(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function N(e){return"string"===typeof e?z[e]||z[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)a(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}var V={};function H(e,t){V[e]=t}function W(e){return e%4===0&&e%100!==0||e%400===0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function $(e,t){return function(n){return null!=n?(Z(this,e,n),r.updateOffset(this,t),this):Y(this,e)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,K=/\d/,J=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,n){X[e]=S(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(X,e)?X[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ve,ge={};function ye(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n<e.length;n++)ge[e[n]]=r}function be(e,t){ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function _e(e,t,n){null!=t&&a(ge,e)&&ge[e](t,n._a,n,e)}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?W(e)?29:28:31-r%7%2}ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),H("month",8),de("M",ne),de("MM",ne,J),de("MMM",(function(e,t){return t.monthsShortRegex(e)})),de("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=q(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:h(n).invalidMonth=e}));var we="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce=pe,De=pe;function Se(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))||-1!==(i=ve.call(this._longMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))||-1!==(i=ve.call(this._shortMonthsParse,a))?i:null}function ke(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=q(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(ke(this,e),r.updateOffset(this,!0),this):Y(this,"Month")}function Te(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=me(r[t]),i[t]=me(i[t]);for(t=0;t<24;t++)o[t]=me(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Pe(e){return W(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),B("year","y"),H("year",1),de("Y",le),de("YY",ne,J),de("YYYY",ae,ee),de("YYYYY",se,te),de("YYYYYY",se,te),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):q(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return q(e)+(q(e)>68?1900:2e3)};var Me=$("FullYear",!0);function je(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Ie(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Fe(e,r,i);return s<=0?a=Pe(o=e-1)+s:s>Pe(e)?(o=e+1,a=s-Pe(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Le(e,t,n){var r,i,o=Fe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+ze(i=e.year()-1,t,n):a>ze(e.year(),t,n)?(r=a-ze(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function ze(e,t,n){var r=Fe(e,t,n),i=Fe(e+1,t,n);return(Pe(e)-r+i)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),de("w",ne),de("ww",ne,J),de("W",ne),de("WW",ne,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=q(e)})),F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),de("d",ne),de("e",ne),de("E",ne),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=q(e)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=pe,We=pe,Ge=pe;function qe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))||-1!==(i=ve.call(this._shortWeekdaysParse,a))||-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))||-1!==(i=ve.call(this._weekdaysParse,a))||-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))||-1!==(i=ve.call(this._weekdaysParse,a))||-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null}function $e(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ye(){return this.hours()%12||12}function Ze(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ye),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ye.apply(this)+T(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ye.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),Ze("a",!0),Ze("A",!1),B("hour","h"),H("hour",13),de("a",Xe),de("A",Xe),de("H",ne),de("h",ne),de("k",ne),de("HH",ne,J),de("hh",ne,J),de("kk",ne,J),de("hmm",re),de("hmmss",ie),de("Hmm",re),de("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=q(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=q(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(i)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(i))}));var Ke,Je=$("Hours",!0),Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:Ee,week:{dow:0,doy:6},weekdays:Ne,weekdaysMin:Ve,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var n=null;if(void 0===et[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=Ke._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ot(n)}catch(r){et[t]=null}return et[t]}function ot(e,t){var n;return e&&((n=u(t)?st(e):at(e,t))?Ke=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ke._abbr}function at(e,t){if(null!==t){var n,r=Qe;if(t.abbr=e,null!=et[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new A(k(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ke;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=rt(e[o]).split("-")).length,n=(n=rt(e[o+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return Ke}(e)}function ut(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,r,i,o,a,s=e._i,u=lt.exec(s)||ct.exec(s);if(u){for(h(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],r=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=dt.length;t<n;t++)if(dt[t][1].exec(u[3])){o=(u[2]||" ")+dt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!ft.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),wt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(n){if(t=function(e,t,n,r,i,o){var a=[yt(e),Ee.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(n[8],n[9],n[10]),e._d=Ie.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function _t(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=_t(t.GG,e._a[0],Le(Ct(),1,4).year),r=_t(t.W,1),((i=_t(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,l=Le(Ct(),o,a),n=_t(t.gg,e._a[0],l.year),r=_t(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>ze(n,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=Re(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[0],i[0]),(e._dayOfYear>Pe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ie(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:je).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function wt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,i,o,a,s,u=""+e._i,l=u.length,c=0;for(i=L(e._f,e._locale).match(P)||[],t=0;t<i.length;t++)o=i[t],(n=(u.match(he(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),c+=n.length),I[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-c,u.length>0&&h(e).unusedInput.push(u),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),xt(e),ut(e)}else bt(e);else gt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new _(ut(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],wt(t),m(t)&&(a=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}(e):n?wt(e):function(e){var t=e._i;u(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"===typeof t?function(e){var t=ht.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),xt(e)):o(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),xt(e)}}(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Ot(e,t,n,r,a){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,function(e){var t=new _(ut(Et(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(u)}function Ct(e,t,n,r){return Ot(e,t,n,r,!1)}r.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Dt=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),St=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function kt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Tt(e){var t=U(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,u=t.hour||0,l=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(a(e,t)&&(-1===ve.call(At,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<At.length;++n)if(e[At[n]]){if(r)return!1;parseFloat(e[At[n]])!==q(e[At[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*c+6e4*l+1e3*u*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Pt(e){return e instanceof Tt}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}jt("Z",":"),jt("ZZ",""),de("Z",fe),de("ZZ",fe),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ft(fe,e)}));var It=/([\+\-]|\d\d)/gi;function Ft(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(It)||["-",0,0])[1]+q(n[2]))?0:"+"===n[0]?r:-r}function Rt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(x(e)||c(e)?e.valueOf():Ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Ct(e).local()}function Lt(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,i,o=e,s=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Bt.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:q(s[2])*n,h:q(s[3])*n,m:q(s[4])*n,s:q(s[5])*n,ms:q(Mt(1e3*s[6]))*n}):(s=Nt.exec(e))?(n="-"===s[1]?-1:1,o={y:Vt(s[2],n),M:Vt(s[3],n),w:Vt(s[4],n),d:Vt(s[5],n),h:Vt(s[6],n),m:Vt(s[7],n),s:Vt(s[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Rt(t,e),e.isBefore(t)?n=Ht(e,t):((n=Ht(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Ct(o.from),Ct(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Tt(o),Pt(e)&&a(e,"_locale")&&(r._locale=e._locale),Pt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Gt(this,Ut(n,r),e),this}}function Gt(e,t,n,i){var o=t._milliseconds,a=Mt(t._days),s=Mt(t._months);e.isValid()&&(i=null==i||i,s&&ke(e,Y(e,"Month")+s*n),a&&Z(e,"Date",Y(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Ut.fn=Tt.prototype,Ut.invalid=function(){return Ut(NaN)};var qt=Wt(1,"add"),$t=Wt(-1,"subtract");function Yt(e){return"string"===typeof e||e instanceof String}function Zt(e){return x(e)||c(e)||Yt(e)||l(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&Yt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!s(e),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<u.length;t+=1)n=u[t],i=i||a(e,n);return r&&i}(e)||null===e||void 0===e}function Xt(e){var t,n=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||a(e,i[t]);return n&&r}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),i.push(me(a[e].narrow)),o.push(me(a[e].name)),o.push(me(a[e].abbr)),o.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function sn(e,t){F(0,[e,e.length],0,t)}function un(e,t,n,r,i){var o;return null==e?Le(this,r,i).year:(t>(o=ze(e,r,i))&&(t=o),ln.call(this,e,t,n,r,i))}function ln(e,t,n,r,i){var o=Re(e,t,n,r,i),a=Ie(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),de("N",on),de("NN",on),de("NNN",on),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?h(n).era=i:h(n).invalidEra=e})),de("y",ue),de("yy",ue),de("yyy",ue),de("yyyy",ue),de("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),de("G",le),de("g",le),de("GG",ne,J),de("gg",ne,J),de("GGGG",ae,ee),de("gggg",ae,ee),de("GGGGG",se,te),de("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=q(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),de("Q",K),ye("Q",(function(e,t){t[1]=3*(q(e)-1)})),F("D",["DD",2],"Do","date"),B("date","D"),H("date",9),de("D",ne),de("DD",ne,J),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=q(e.match(ne)[0])}));var cn=$("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),de("DDD",oe),de("DDDD",Q),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),F("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),de("m",ne),de("mm",ne,J),ye(["m","mm"],4);var fn=$("Minutes",!1);F("s",["ss",2],0,"second"),B("second","s"),H("second",15),de("s",ne),de("ss",ne,J),ye(["s","ss"],5);var pn,dn,hn=$("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),H("millisecond",16),de("S",oe,K),de("SS",oe,J),de("SSS",oe,Q),pn="SSSS";pn.length<=9;pn+="S")de(pn,ue);function mn(e,t){t[6]=q(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,mn);dn=$("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var vn=_.prototype;function gn(e){return e}vn.add=qt,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ct(),i=Rt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(S(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Ct(n)))},vn.clone=function(){return new _(this)},vn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Rt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},vn.endOf=function(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Ct(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(Ct(),e)},vn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Ct(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(Ct(),e)},vn.get=function(e){return S(this[e=N(e)])?this[e]():this},vn.invalidAt=function(){return h(this).overflow},vn.isAfter=function(e,t){var n=x(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=x(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,r){var i=x(e)?e:Ct(e),o=x(t)?t:Ct(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},vn.isSame=function(e,t){var n,r=x(e)?e:Ct(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return m(this)},vn.lang=Qt,vn.locale=Jt,vn.localeData=en,vn.max=St,vn.min=Dt,vn.parsingFlags=function(){return p({},h(this))},vn.set=function(e,t){if("object"===typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:V[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=N(e)]))return this[e](t);return this},vn.startOf=function(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},vn.subtract=$t,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},vn.toDate=function(){return new Date(this.valueOf())},vn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},vn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},vn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},vn.eraYear=function(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()},vn.year=Me,vn.isLeapYear=function(){return W(this.year())},vn.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Ae,vn.daysInMonth=function(){return xe(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=Le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return ze(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return ze(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return ze(this.isoWeekYear(),1,4)},vn.date=cn,vn.day=vn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},vn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},vn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},vn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},vn.hour=vn.hours=Je,vn.minute=vn.minutes=fn,vn.second=vn.seconds=hn,vn.millisecond=vn.milliseconds=dn,vn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=Ft(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Lt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Gt(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Lt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this},vn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=Ft(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60===0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=zt,vn.isUTC=zt,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=E("dates accessor is deprecated. Use date instead.",cn),vn.months=E("months accessor is deprecated. Use month instead",Ae),vn.years=E("years accessor is deprecated. Use year instead",Me),vn.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Et(t))._a?(e=t._isUTC?d(t._a):Ct(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&q(e[r])!==q(t[r]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=A.prototype;function bn(e,t,n,r){var i=st(),o=d().set(r,t);return i[n](o,e)}function _n(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function xn(e,t,n,r){"boolean"===typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+a)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=gn,yn.postformat=gn,yn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return S(i)?i(e,t,n,r):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)a(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n<i;++n){switch(typeof a[n].since){case"string":o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}}return a},yn.erasParse=function(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ce),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Le(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",st);var wn=Math.abs;function En(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function On(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var kn=Sn("ms"),An=Sn("s"),Tn=Sn("m"),Pn=Sn("h"),Mn=Sn("d"),jn=Sn("w"),In=Sn("M"),Fn=Sn("Q"),Rn=Sn("y");function Ln(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Ln("milliseconds"),Bn=Ln("seconds"),Nn=Ln("minutes"),Un=Ln("hours"),Vn=Ln("days"),Hn=Ln("months"),Wn=Ln("years"),Gn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $n(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Yn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=Yn(this._milliseconds)/1e3,l=Yn(this._days),c=Yn(this._months),f=this.asSeconds();return f?(e=G(u/60),t=G(e/60),u%=60,e%=60,n=G(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=Zn(this._months)!==Zn(f)?"-":"",a=Zn(this._days)!==Zn(f)?"-":"",s=Zn(this._milliseconds)!==Zn(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Kn=Tt.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Kn.add=function(e,t){return En(this,e,t,1)},Kn.subtract=function(e,t){return En(this,e,t,-1)},Kn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Kn.asMilliseconds=kn,Kn.asSeconds=An,Kn.asMinutes=Tn,Kn.asHours=Pn,Kn.asDays=Mn,Kn.asWeeks=jn,Kn.asMonths=In,Kn.asQuarters=Fn,Kn.asYears=Rn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Kn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*On(Dn(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=G(o/1e3),u.seconds=e%60,t=G(e/60),u.minutes=t%60,n=G(t/60),u.hours=n%24,a+=G(n/24),i=G(Cn(a)),s+=i,a-=On(Dn(i)),r=G(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Kn.clone=function(){return Ut(this)},Kn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},Kn.milliseconds=zn,Kn.seconds=Bn,Kn.minutes=Nn,Kn.hours=Un,Kn.days=Vn,Kn.weeks=function(){return G(this.days()/7)},Kn.months=Hn,Kn.years=Wn,Kn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=qn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},qn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Ut(e).abs(),o=Gn(i.as("s")),a=Gn(i.as("m")),s=Gn(i.as("h")),u=Gn(i.as("d")),l=Gn(i.as("M")),c=Gn(i.as("w")),f=Gn(i.as("y")),p=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(p=p||c<=1&&["w"]||c<n.w&&["ww",c]),(p=p||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,p[3]=+e>0,p[4]=r,$n.apply(null,p)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Kn.toISOString=Xn,Kn.toString=Xn,Kn.toJSON=Xn,Kn.locale=Jt,Kn.localeData=en,Kn.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Kn.lang=Qt,F("X",0,0,"unix"),F("x",0,0,"valueOf"),de("x",le),de("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(q(e))})),r.version="2.29.1",t=Ct,r.fn=vn,r.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return Ct(1e3*e)},r.months=function(e,t){return _n(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=v,r.duration=Ut,r.isMoment=x,r.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},r.parseZone=function(){return Ct.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Pt,r.monthsShort=function(e,t){return _n(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return xn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Qe;null!=et[e]&&null!=et[e].parentLocale?et[e].set(k(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=k(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return O(et)},r.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},r.normalizeUnits=N,r.relativeTimeRounding=function(e){return void 0===e?Gn:"function"===typeof e&&(Gn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=vn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(206)(e))},function(e,t,n){"use strict";function r(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function o(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}n.d(t,"a",(function(){return a}));var a=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,s=r.pop(),u=o(r),l=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(n)),c=e((function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return l.apply(null,e)}));return c.resultFunc=s,c.dependencies=u,c.recomputations=function(){return a},c.resetRecomputations=function(){return a=0},c}}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return i(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(417)},,function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(0),o=n.n(i),a=n(386);function s(e,t){var n=function(t,n){return o.a.createElement(a.a,Object(r.a)({ref:n},t),e)};return n.muiName=a.a.muiName,o.a.memo(o.a.forwardRef(n))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"h",(function(){return E})),n.d(t,"e",(function(){return D})),n.d(t,"g",(function(){return k})),n.d(t,"d",(function(){return A})),n.d(t,"f",(function(){return T}));var r=n(365),i=n.n(r),o=n(14),a=n.n(o),s=n(106),u=n.n(s),l=n(53),c=n.n(l),f=n(26),p=n.n(f),d=n(0),h=n.n(d),m=n(366),v=n(6),g=n(107);function y(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var b={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},_=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},x=function e(t,n){var r=[],i=[];return i=p()(n)?n.map((function(e){return _(e)})):[_(n)],h.a.Children.forEach(t,(function(t){Object(m.isFragment)(t)&&(r=r.concat(e(t.props.children,n)));var o=c()(t,"type.displayName")||c()(t,"type.name");-1!==i.indexOf(o)&&r.push(t)})),r},w=function(e,t){var n=x(e,t);return n&&n[0]},E=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Object(v.g)(n)||n<=0||!Object(v.g)(r)||r<=0)},O=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],C=function(e){return e&&e.type&&u()(e.type)&&O.indexOf(e.type)>=0},D=function e(t,n){if(t===n)return!0;if(d.Children.count(t)!==d.Children.count(n))return!1;var r=d.Children.count(t);if(0===r)return!0;if(1===r)return S(p()(t)?t[0]:t,p()(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(p()(o)||p()(a)){if(!e(o,a))return!1}else if(!S(o,a))return!1}return!0},S=function(e,t){if(a()(e)&&a()(t))return!0;if(!a()(e)&&!a()(t)){var n=e.props||{},r=n.children,i=y(n,["children"]),o=t.props||{},s=o.children,u=y(o,["children"]);return r&&s?Object(g.a)(i,u)&&D(r,s):!r&&!s&&Object(g.a)(i,u)}return!1},k=function(e,t){var n=[],r={};return d.Children.forEach(e,(function(e,i){if(C(e))n.push(e);else if(e){var o=_(e.type),a=t[o]||{},s=a.handler,u=a.once;if(s&&(!u||!r[o])){var l=s(e,o,i);n.push(l),r[o]=!0}}})),i()(n).filter((function(e){return!a()(e)}))},A=function(e){var t=e&&e.type;return t&&b[t]?b[t]:null},T=function(e,t){var n=-1;return d.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n}},function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){var r;!function(i){"use strict";var o,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,u="[DecimalError] ",l=u+"Invalid argument: ",c=u+"Exponent out of range: ",f=Math.floor,p=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,m=f(1286742750677284.5),v={};function g(e,t){var n,r,i,o,a,u,l,c,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),s?S(t,p):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i){for(o<0?(r=l,o=-o,u=c.length):(r=c,i=a,u=l.length),o>(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=l.length)-(o=c.length)<0&&(o=u,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/h|0,l[o]%=h;for(n&&(l.unshift(n),++i),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=i,s?S(t,p):t}function y(e,t,n){if(e!==~~e||e<t||e>n)throw Error(l+e)}function b(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=O(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=O(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}v.absoluteValue=v.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},v.comparedTo=v.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return _(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return S(_(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return w(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,t=_(C(n,a),C(e,a),a),s=!0,S(t,i))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k(t,e):g(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(u+"NaN");return n.s?(s=!1,t=_(n,e,0,1).times(e),s=!0,n.minus(t)):S(new r(n),i)},v.naturalExponential=v.exp=function(){return x(this)},v.naturalLogarithm=v.ln=function(){return C(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):k(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=w(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(u+"NaN")}for(e=w(l),s=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=b(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(_(l,o,a+2)).times(.5),b(o.d).slice(0,a)===(t=b(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(S(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if("9999"!=t)break;a+=4}return s=!0,S(r,n)},v.times=v.mul=function(e){var t,n,r,i,o,a,u,l,c,f=this,p=f.constructor,d=f.d,m=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,(l=d.length)<(c=m.length)&&(o=d,d=m,m=o,a=l,l=c,c=a),o=[],r=a=l+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)u=o[i]+m[r]*d[i-r-1]+t,o[i--]=u%h|0,t=u/h|0;o[i]=(o[i]+t)%h|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,s?S(e,p.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(y(e,0,1e9),void 0===t?t=r.rounding:y(t,0,8),S(n,e+w(n)+1,t))},v.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=A(r,!0):(y(e,0,1e9),void 0===t?t=i.rounding:y(t,0,8),n=A(r=S(new i(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?A(i):(y(e,0,1e9),void 0===t?t=o.rounding:y(t,0,8),n=A((r=S(new o(i),e+w(i)+1,t)).abs(),!1,e+w(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return S(new t(e),w(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,i,a,l,c=this,p=c.constructor,d=+(e=new p(e));if(!e.s)return new p(o);if(!(c=new p(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(o))return c;if(r=p.precision,e.eq(o))return S(c,r);if(l=(t=e.e)>=(n=e.d.length-1),a=c.s,l){if((n=d<0?-d:d)<=9007199254740991){for(i=new p(o),t=Math.ceil(r/7+4),s=!1;n%2&&T((i=i.times(c)).d,t),0!==(n=f(n/2));)T((c=c.times(c)).d,t);return s=!0,e.s<0?new p(o).div(i):S(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,s=!1,i=e.times(C(c,r+12)),s=!0,(i=x(i)).s=a,i},v.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=A(i,(n=w(i))<=o.toExpNeg||n>=o.toExpPos):(y(e,1,1e9),void 0===t?t=o.rounding:y(t,0,8),r=A(i=S(new o(i),e,t),e<=(n=w(i))||n<=o.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(y(e,1,1e9),void 0===t?t=n.rounding:y(t,0,8)),S(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=w(e),n=e.constructor;return A(e,t<=n.toExpNeg||t>=n.toExpPos)};var _=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%h|0,r=n/h|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*h+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,l,c,f,p,d,m,v,g,y,b,_,x,E,O,C,D,k,A=r.constructor,T=r.s==i.s?1:-1,P=r.d,M=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(u+"Division by zero");for(l=r.e-i.e,D=M.length,O=P.length,v=(m=new A(T)).d=[],c=0;M[c]==(P[c]||0);)++c;if(M[c]>(P[c]||0)&&--l,(_=null==o?o=A.precision:a?o+(w(r)-w(i))+1:o)<0)return new A(0);if(_=_/7+2|0,c=0,1==D)for(f=0,M=M[0],_++;(c<O||f)&&_--;c++)x=f*h+(P[c]||0),v[c]=x/M|0,f=x%M|0;else{for((f=h/(M[0]+1)|0)>1&&(M=e(M,f),P=e(P,f),D=M.length,O=P.length),E=D,y=(g=P.slice(0,D)).length;y<D;)g[y++]=0;(k=M.slice()).unshift(0),C=M[0],M[1]>=h/2&&++C;do{f=0,(s=t(M,g,D,y))<0?(b=g[0],D!=y&&(b=b*h+(g[1]||0)),(f=b/C|0)>1?(f>=h&&(f=h-1),1==(s=t(p=e(M,f),g,d=p.length,y=g.length))&&(f--,n(p,D<d?k:M,d))):(0==f&&(s=f=1),p=M.slice()),(d=p.length)<y&&p.unshift(0),n(g,p,y),-1==s&&(s=t(M,g,D,y=g.length))<1&&(f++,n(g,D<y?k:M,y)),y=g.length):0===s&&(f++,g=[0]),v[c++]=f,s&&g[0]?g[y++]=P[E]||0:(g=[P[E]],y=1)}while((E++<O||void 0!==g[0])&&_--)}return v[0]||v.shift(),m.e=l,S(m,a?o+w(m)+1:o)}}();function x(e,t){var n,r,i,a,u,l=0,f=0,d=e.constructor,h=d.precision;if(w(e)>16)throw Error(c+w(e));if(!e.s)return new d(o);for(null==t?(s=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=i=new d(o),d.precision=u;;){if(r=S(r.times(e),u),n=n.times(++l),b((a=i.plus(_(r,n,u))).d).slice(0,u)===b(i.d).slice(0,u)){for(;f--;)i=S(i.times(i),u);return d.precision=h,null==t?(s=!0,S(i,h)):i}i=a}}function w(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function E(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(u+"LN10 precision limit exceeded");return S(new e(e.LN10),t)}function O(e){for(var t="";e--;)t+="0";return t}function C(e,t){var n,r,i,a,l,c,f,p,d,h=1,m=e,v=m.d,g=m.constructor,y=g.precision;if(m.s<1)throw Error(u+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new g(0);if(null==t?(s=!1,p=y):p=t,m.eq(10))return null==t&&(s=!0),E(g,p);if(p+=10,g.precision=p,r=(n=b(v)).charAt(0),a=w(m),!(Math.abs(a)<15e14))return f=E(g,p+2,y).times(a+""),m=C(new g(r+"."+n.slice(1)),p-10).plus(f),g.precision=y,null==t?(s=!0,S(m,y)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((m=m.times(e)).d)).charAt(0),h++;for(a=w(m),r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1)),c=l=m=_(m.minus(o),m.plus(o),p),d=S(m.times(m),p),i=3;;){if(l=S(l.times(d),p),b((f=c.plus(_(l,new g(i),p))).d).slice(0,p)===b(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(E(g,p+2,y).times(a+""))),c=_(c,new g(h),p),g.precision=y,null==t?(s=!0,S(c,y)):c;c=f,i+=2}}function D(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=f(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>m||e.e<-m))throw Error(c+n)}else e.s=0,e.e=0,e.d=[0];return e}function S(e,t,n){var r,i,o,a,u,l,d,v,g=e.d;for(a=1,o=g[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,d=g[v=0];else{if((v=Math.ceil((r+1)/7))>=(o=g.length))return e;for(d=o=g[v],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(u=d/(o=p(10,a-i-1))%10|0,l=t<0||void 0!==g[v+1]||d%o,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?i>0?d/p(10,a-i):0:g[v-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return l?(o=w(e),g.length=1,t=t-o-1,g[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=v,o=1,v--):(g.length=v+1,o=p(10,7-r),g[v]=i>0?(d/p(10,a-i)%p(10,i)|0)*o:0),l)for(;;){if(0==v){(g[0]+=o)==h&&(g[0]=1,++e.e);break}if(g[v]+=o,g[v]!=h)break;g[v--]=0,o=1}for(r=g.length;0===g[--r];)g.pop();if(s&&(e.e>m||e.e<-m))throw Error(c+w(e));return e}function k(e,t){var n,r,i,o,a,u,l,c,f,p,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),s?S(t,m):t;if(l=e.d,p=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r){for((f=a<0)?(n=l,a=-a,u=p.length):(n=p,r=c,u=l.length),a>(i=Math.max(Math.ceil(m/7),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(u=p.length))&&(u=i),i=0;i<u;i++)if(l[i]!=p[i]){f=l[i]<p[i];break}a=0}for(f&&(n=l,l=p,p=n,t.s=-t.s),u=l.length,i=p.length-u;i>0;--i)l[u++]=0;for(i=p.length;i>a;){if(l[--i]<p[i]){for(o=i;o&&0===l[--o];)l[o]=h-1;--l[o],l[i]+=h}l[i]-=p[i]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=r,s?S(t,m):t):new d(0)}function A(e,t,n){var r,i=w(e),o=b(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+O(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+O(-i-1)+o,n&&(r=n-a)>0&&(o+=O(r))):i>=a?(o+=O(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+O(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=O(r))),e.s<0?"-"+o:o}function T(e,t){if(e.length>t)return e.length=t,!0}function P(e){if(!e||"object"!==typeof e)throw Error(u+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(f(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(l+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):D(t,e.toString())}if("string"!==typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(l+e);D(t,e)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=P,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(a)).default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(195),i=(n(0),n(82));function o(){return Object(r.a)()||i.a}},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}))},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return m}));var r=n(689),i=n(379),o=n(151),a=n(675);var s=n(116),u=[0,1];function l(e){return e}function c(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function f(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=c(i,r),o=n(a,o)):(r=c(r,i),o=n(o,a)),function(e){return o(r(e))}}function p(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=c(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=Object(r.a)(e,t,1,i)-1;return a[n](o[n](t))}}function d(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function h(){var e,t,n,r,c,d,h=u,m=u,v=i.a,g=l;function y(){var e=Math.min(h.length,m.length);return g!==l&&(g=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(h[0],h[e-1])),r=e>2?p:f,c=d=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(h.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((d||(d=r(m,h.map(e),o.a)))(n)))},b.domain=function(e){return arguments.length?(h=Array.from(e,s.a),y()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=a.a,y()},b.clamp=function(e){return arguments.length?(g=!!e||l,y()):g!==l},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return h()(l,l)}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(429).default;function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(124)},function(e,t,n){"use strict";n.r(t),n.d(t,"hexToRgb",(function(){return r.h})),n.d(t,"rgbToHex",(function(){return r.l})),n.d(t,"hslToRgb",(function(){return r.i})),n.d(t,"decomposeColor",(function(){return r.c})),n.d(t,"recomposeColor",(function(){return r.k})),n.d(t,"getContrastRatio",(function(){return r.f})),n.d(t,"getLuminance",(function(){return r.g})),n.d(t,"emphasize",(function(){return r.d})),n.d(t,"fade",(function(){return r.e})),n.d(t,"alpha",(function(){return r.a})),n.d(t,"darken",(function(){return r.b})),n.d(t,"lighten",(function(){return r.j})),n.d(t,"createTheme",(function(){return i.b})),n.d(t,"createMuiTheme",(function(){return i.a})),n.d(t,"unstable_createMuiStrictModeTheme",(function(){return a})),n.d(t,"createStyles",(function(){return s})),n.d(t,"makeStyles",(function(){return u.a})),n.d(t,"responsiveFontSizes",(function(){return y})),n.d(t,"styled",(function(){return k})),n.d(t,"easing",(function(){return A.c})),n.d(t,"duration",(function(){return A.b})),n.d(t,"useTheme",(function(){return T.a})),n.d(t,"withStyles",(function(){return P.a})),n.d(t,"withTheme",(function(){return I})),n.d(t,"createGenerateClassName",(function(){return F.a})),n.d(t,"jssPreset",(function(){return R.a})),n.d(t,"ServerStyleSheets",(function(){return U})),n.d(t,"StylesProvider",(function(){return N.b})),n.d(t,"MuiThemeProvider",(function(){return V.a})),n.d(t,"ThemeProvider",(function(){return V.a}));var r=n(12),i=n(113),o=n(582);function a(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 i.b.apply(void 0,[Object(o.a)({unstable_strictMode:!0},e)].concat(n))}function s(e){return e}var u=n(250),l=n(1),c=n(384),f=n(19);function p(e){return String(parseFloat(e)).length===String(e).length}function d(e){return parseFloat(e)}function h(e){return function(t,n){var r=String(t).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return t;var i=d(t);if("px"!==r)if("em"===r)i=d(t)*d(e);else if("rem"===r)return i=d(t)*d(e),t;var o=i;if("px"!==n)if("em"===n)o=i/d(e);else{if("rem"!==n)return t;o=i/d(e)}return parseFloat(o.toFixed(5))+n}}function m(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i}function v(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)}function g(e){var t=e.cssProperty,n=e.min,r=e.max,i=e.unit,o=void 0===i?"rem":i,a=e.breakpoints,s=void 0===a?[600,960,1280]:a,u=e.transform,l=void 0===u?null:u,c=Object(f.a)({},t,"".concat(n).concat(o)),p=(r-n)/s[s.length-1];return s.forEach((function(e){var r=n+p*e;null!==l&&(r=l(r)),c["@media (min-width:".concat(e,"px)")]=Object(f.a)({},t,"".concat(Math.round(1e4*r)/1e4).concat(o))})),c}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.breakpoints,r=void 0===n?["sm","md","lg"]:n,i=t.disableAlign,o=void 0!==i&&i,a=t.factor,s=void 0===a?2:a,u=t.variants,f=void 0===u?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:u,d=Object(l.a)({},e);d.typography=Object(l.a)({},d.typography);var y=d.typography,b=h(y.htmlFontSize),_=r.map((function(e){return d.breakpoints.values[e]}));return f.forEach((function(e){var t=y[e],n=parseFloat(b(t.fontSize,"rem"));if(!(n<=1)){var r=n,i=1+(r-1)/s,a=t.lineHeight;if(!p(a)&&!o)throw new Error(Object(c.a)(6));p(a)||(a=parseFloat(b(a,"rem"))/parseFloat(n));var u=null;o||(u=function(e){return m({size:e,grid:v({pixels:4,lineHeight:a,htmlFontSize:y.htmlFontSize})})}),y[e]=Object(l.a)({},t,g({cssProperty:"fontSize",min:i,max:r,unit:"rem",breakpoints:_,transform:u}))}})),d}var b=n(4),_=n(0),x=n.n(_),w=n(2),E=(n(3),n(66)),O=n.n(E),C=n(77);function D(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var S=n(82),k=function(e){var t=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,i=Object(b.a)(n,["name"]);var o,a=r,s="function"===typeof t?function(e){return{root:function(n){return t(Object(l.a)({theme:e},n))}}}:{root:t},u=Object(C.a)(s,Object(l.a)({Component:e,name:r||e.displayName,classNamePrefix:a},i));t.filterProps&&(o=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=x.a.forwardRef((function(t,n){var r=t.children,i=t.className,a=t.clone,s=t.component,c=Object(b.a)(t,["children","className","clone","component"]),f=u(t),p=Object(w.a)(f.root,i),d=c;if(o&&(d=D(d,o)),a)return x.a.cloneElement(r,Object(l.a)({className:Object(w.a)(r.props.className,p)},d));if("function"===typeof r)return r(Object(l.a)({className:p},d));var h=s||e;return x.a.createElement(h,Object(l.a)({ref:n,className:p},d),r)}));return O()(c,e),c}}(e);return function(e,n){return t(e,Object(l.a)({defaultTheme:S.a},n))}},A=n(50),T=n(34),P=n(7),M=n(195);function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=x.a.forwardRef((function(n,r){var i=n.innerRef,o=Object(b.a)(n,["innerRef"]),a=Object(M.a)()||t;return x.a.createElement(e,Object(l.a)({theme:a,ref:i||r},o))}));return O()(n,e),n};return n}j();var I=j({defaultTheme:S.a}),F=n(583),R=n(390),L=n(177),z=n(105),B=n(54),N=n(644),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(L.a)(this,e),this.options=t}return Object(z.a)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new B.b;var n=Object(F.a)();return x.a.createElement(N.b,Object(l.a)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return x.a.createElement("style",Object(l.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),V=n(660)},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return f}));n(14),n(6),n(18);function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(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 a=Math.PI/180,s=function(e){return 180*e/Math.PI},u=function(e,t,n,r){return{x:e+Math.cos(-a*r)*n,y:t+Math.sin(-a*r)*n}},l=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var u=(n-i)/a,l=Math.acos(u);return r>o&&(l=2*Math.PI-l),{radius:a,angle:s(l),angleInRadian:l}},c=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},f=function(e,t){var n=e.x,r=e.y,o=l({x:n,y:r},t),a=o.radius,s=o.angle,u=t.innerRadius,f=t.outerRadius;if(a<u||a>f)return!1;if(0===a)return!0;var p,d=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),h=d.startAngle,m=d.endAngle,v=s;if(h<=m){for(;v>m;)v-=360;for(;v<h;)v+=360;p=v>=h&&v<=m}else{for(;v>h;)v-=360;for(;v<m;)v+=360;p=v>=m&&v<=h}return p?i(i({},t),{},{radius:a,angle:c(v,t)}):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(174);var i=n(128),o=n(175);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(21),a=n.n(o),s=n(17);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}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){var t=e.children,n=e.className,r=l(e,["children","className"]),o=a()("recharts-layer",n);return i.a.createElement("g",u({className:o},Object(s.c)(r,!0)),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(339);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(145);var i=n(127);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return k})),n.d(t,"h",(function(){return A}));var r=n(46),i=n(0),o=n.n(i),a=(n(3),n(76)),s=n(224),u=n(69),l=n(1),c=n(225),f=n.n(c),p=(n(427),n(42)),d=(n(66),function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(d.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;o.a.Component;var v={},g=0;function y(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=v[n]||(v[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return g<1e4&&(r[e]=o,g++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],p=u.slice(1),d=e===c;return o&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var b=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?y(n.pathname,e.props):t.match,i=Object(l.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(h.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:c?o.a.createElement(c,i):f?f(i):null:"function"===typeof s?s(i):null)}))},t}(o.a.Component);function _(e){return"/"===e.charAt(0)?e:"/"+e}function x(e,t){if(!e)return t;var n=_(e);return 0!==t.pathname.indexOf(n)?t:Object(l.a)({},t,{pathname:t.pathname.substr(n.length)})}function w(e){return"string"===typeof e?e:Object(a.e)(e)}function E(e){return function(){Object(u.a)(!1)}}function O(){}o.a.Component;var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?y(i.pathname,Object(l.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);var D=o.a.useContext;function S(){return D(d)}function k(){return D(h).location}function A(){var e=D(h).match;return e?e.params:{}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(4),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,u=t.easing,l=void 0===u?i.easeInOut:u,c=t.delay,f=void 0===c?0:c;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(l," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n(49),i=n(46),o=n(0),a=n.n(o),s=n(76),u=(n(3),n(1)),l=n(42),c=n(69);a.a.Component;var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.b)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},t}(a.a.Component);var p=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},h=function(e){return e},m=a.a.forwardRef;"undefined"===typeof m&&(m=h);var v=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=Object(l.a)(e,["innerRef","navigate","onClick"]),s=o.target,c=Object(u.a)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=h!==m&&t||n,a.a.createElement("a",c)}));var g=m((function(e,t){var n=e.component,i=void 0===n?v:n,o=e.replace,s=e.to,f=e.innerRef,g=Object(l.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(c.a)(!1);var n=e.history,r=d(p(s,e.location),e.location),l=r?n.createHref(r):"",v=Object(u.a)({},g,{href:l,navigate:function(){var t=p(s,e.location);(o?n.replace:n.push)(t)}});return h!==m?v.ref=t||f:v.innerRef=f,a.a.createElement(i,v)}))})),y=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=y);b((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,f=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,_=e.location,x=e.sensitive,w=e.strict,E=e.style,O=e.to,C=e.innerRef,D=Object(l.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(c.a)(!1);var n=_||e.location,o=d(p(O,n),n),l=o.pathname,S=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=S?Object(r.e)(n.pathname,{path:S,exact:m,sensitive:x,strict:w}):null,A=!!(v?v(k,n):k),T=A?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(h,s):h,P=A?Object(u.a)({},E,{},f):E,M=Object(u.a)({"aria-current":A&&i||null,className:T,style:P,to:o},D);return y!==b?M.ref=t||C:M.innerRef=C,a.a.createElement(g,M)}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(127);function i(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(e,t,n){var r=n(208);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return $})),n.d(t,"b",(function(){return X})),n.d(t,"c",(function(){return ge})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return me})),n.d(t,"f",(function(){return ve})),n.d(t,"g",(function(){return d}));var r=n(1),i=n(118),o=(n(94),n(105)),a=n(46),s=n(64),u=n(42),l={}.constructor;function c(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(c);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=c(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=c(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var p=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},d=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=p(e[r]," ");else n=p(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function h(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function m(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;if(e&&o++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var u=a[s];for(var l in u){var c=u[l];null!=c&&(r&&(r+="\n"),r+=h(l+": "+d(c)+";",o))}}else for(var f in a){var p=a[f];null!=p&&(r&&(r+="\n"),r+=h(f+": "+d(p)+";",o))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+="\n"),r+=h(m+": "+d(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),h(e+" {"+r,--o)+h("}",o)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,g="undefined"!==typeof CSS&&CSS.escape,y=function(e){return g?g(e):e.replace(v,"\\$1")},b=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),_=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,u=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(Object(s.a)(Object(s.a)(i)),u),i.selectorText="."+y(i.id)),i}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=d(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return m(this.selectorText,this.style,n)},Object(o.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(b),x={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new _(e,t,n)}},w={indent:1,children:!0},E=/@([\w-]+)/,O=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var i=e.match(E);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $(Object(r.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=w),null==e.indent&&(e.indent=w.indent),null==e.children&&(e.children=w.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),C=/@media|@supports\s+/,D={onCreateRule:function(e,t,n){return C.test(e)?new O(e,t,n):null}},S={indent:1,children:!0},k=/@keyframes\s+([\w-]+)/,A=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=e.match(k);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:y(s(this,a)),this.rules=new $(Object(r.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),T=/@keyframes\s+/,P=/\$([\w-]+)/g,M=function(e,t){return"string"===typeof e?e.replace(P,(function(e,n){return n in t?t[n]:e})):e},j=function(e,t,n){var r=e[t],i=M(r,n);i!==r&&(e[t]=i)},I={onCreateRule:function(e,t,n){return"string"===typeof e&&T.test(e)?new A(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&j(e,"animation-name",n.keyframes),"animation"in e&&j(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return M(e,r.keyframes);default:return e}}},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(a.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return m(this.key,this.style,n)},t}(b),R={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(e,t,n):null}},L=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=m(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return m(this.at,this.style,e)},e}(),z=/@font-face/,B={onCreateRule:function(e,t,n){return z.test(e)?new L(e,t,n):null}},N=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return m(this.key,this.style,e)},e}(),U={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new N(e,t,n):null}},V=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),H={"@charset":!0,"@import":!0,"@namespace":!0},W=[x,D,I,R,B,U,{onCreateRule:function(e,t,n){return e in H?new V(e,t,n):null}}],G={process:!0},q={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var i=this.options,o=i.parent,a=i.sheet,s=i.jss,u=i.Renderer,l=i.generateId,c=i.scoped,p=Object(r.a)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:u,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(p.selector="."+y(this.classes[d]));var h=f(d,t,p);if(!h)return null;this.register(h);var m=void 0===p.index?this.index.length:p.index;return this.index.splice(m,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof A&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof A&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=G);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,u=s.style;if(o.onUpdate(n,t,a,r),r.process&&u&&u!==s.style){for(var l in o.onProcessStyle(s.style,s,a),s.style){var c=s.style[l];c!==u[l]&&s.prop(l,c,q)}for(var f in u){var p=s.style[f],d=u[f];null==p&&p!==d&&s.prop(f,null,q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(e);(o||r)&&(t&&(t+="\n"),t+=o)}return t},e}(),Y=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(r.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Z=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),X=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(u.a)(t,["attached"]),i="",o=0;o<this.registry.length;o++){var a=this.registry[o];null!=n&&a.attached!==n||(i&&(i+="\n"),i+=a.toString(r))}return i},Object(o.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),K=new X,J="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),Q="2f1acc6c3a606b082e5eef5e54414ffb";null==J[Q]&&(J[Q]=0);var ee=J[Q]++,te=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+ee+i+t:o+n.key+"-"+ee+(i?"-"+i:"")+"-"+t}},ne=function(e){var t;return function(){return t||(t=e()),t}},re=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=d(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(i){return!1}return!0},oe=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ae=function(e,t){return e.selectorText=t,e.selectorText===t},se=ne((function(){return document.querySelector("head")}));function ue(e){var t=K.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=se(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var le=ne((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ce=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(r){return!1}return e.cssRules[n]},fe=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},pe=function(){function e(e){this.getPropertyValue=re,this.setProperty=ie,this.removeProperty=oe,this.setSelector=ae,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&K.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=le();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=fe(n,t);if(!1===(i=ce(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=fe(n,t),u=ce(n,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Y&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),de=0,he=function(){function e(e){this.id=de++,this.version="10.7.1",this.plugins=new Z,this.options={id:{minify:!1},createGenerateId:te,Renderer:i.a?pe:null,plugins:[]},this.generateId=te({minify:!1});for(var t=0;t<W.length;t++)this.plugins.use(W[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(r.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===K.index?0:K.index+1);var i=new Y(e,Object(r.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(i),i},t.removeStyleSheet=function(e){return e.detach(),K.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var i=Object(r.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});i.generateId||(i.generateId=this.generateId),i.classes||(i.classes={}),i.keyframes||(i.keyframes={});var o=f(e,t,i);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function me(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=me(r);o&&(t||(t={}),t[n]=o)}}return t}var ve="object"===typeof CSS&&null!=CSS&&"number"in CSS,ge=function(e){return new he(e)};ge()},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(389),i=n(37),o=n(29),a=n(170);function s(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(r.a)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Object(a.a)(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var i,o,a=t(),s=0,u=a.length-1,l=a[s],c=a[u],f=10;for(c<l&&(o=l,l=c,c=o,o=s,s=u,u=o);f-- >0;){if((o=Object(r.b)(l,c,n))===i)return a[s]=l,a[u]=c,t(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function u(){var e=Object(i.b)();return e.copy=function(){return Object(i.a)(e,u())},o.b.apply(e,arguments),s(e)}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[$]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Y}(e)||Array.isArray(e)||!!e[q]||!!e.constructor[q]||p(e)||d(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:Z)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:d(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return V&&e instanceof Map}function d(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[$];for(var n=Z(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function v(e,t){return void 0===t&&(t=!1),y(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return v(t,!0)}),!0)),e}function g(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=K[e];return t||r(18,e),t}function _(e,t){K[e]||(K[e]=t)}function x(){return N}function w(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){O(e),e.p.forEach(D),e.p=null}function O(e){e===N&&(N=e.l)}function C(e){return N={p:[],l:N,h:e,m:!0,_:0}}function D(e){var t=e[$];0===t.i||1===t.i?t.j():t.O=!0}function S(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,i),i?(n[$].P&&(E(t),r(4)),o(e)&&(e=k(t,e),t.l||T(t,e)),t.u&&b("Patches").M(n[$],e,t.u,t.s)):e=k(t,n,[]),E(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function k(e,t,n){if(y(t))return t;var r=t[$];if(!r)return a(t,(function(i,o){return A(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return A(e,r,i,t,o,n)})),T(e,i,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function A(e,t,n,r,a,s){if(i(a)){var l=k(e,a,s&&t&&3!==t.i&&!u(t.D,r)?s.concat(r):void 0);if(c(n,r,l),!i(l))return;e.m=!1}if(o(a)&&!y(a)){if(!e.h.F&&e._<1)return;k(e,a),t&&t.A.l||T(e,a)}}function T(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&v(t,n)}function P(e,t){var n=e[$];return(n?h(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function j(e){e.P||(e.P=!0,e.l&&j(e.l))}function I(e){e.o||(e.o=m(e.t))}function F(e,t,n){var r=p(t)?b("MapSet").N(t,n):d(t)?b("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=J;n&&(i=[r],o=Q);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):b("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function R(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[$],i=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=L(t,i),r.I=!1}else n=L(t,i);return a(n,(function(t,i){r&&l(r.t,t)===i||c(n,t,e(i))})),3===i?new Set(n):n}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function z(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[$];return J.get(t,e)},set:function(t){var n=this[$];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][$];if(!i.P)switch(i.i){case 5:r(i)&&j(i);break;case 4:n(i)&&j(i)}}}function n(e){for(var t=e.t,n=e.k,r=Z(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==$){var a=t[o];if(void 0===a&&!u(t,o))return!0;var s=n[o],l=s&&s[$];if(l?l.t!==a:!f(s,a))return!0}}var c=!!t[$];return r.length!==Z(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var o={};_("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=X(n);delete o[$];for(var a=Z(o),s=0;s<a.length;s++){var u=a[s];o[u]=e(u,t||!!o[u].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,$,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[$].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[$];if(n){var i=n.t,o=n.k,s=n.D,l=n.i;if(4===l)a(o,(function(t){t!==$&&(void 0!==i[t]||u(i,t)?s[t]||e(o[t]):(s[t]=!0,j(n)))})),a(i,(function(e){void 0!==o[e]||u(o,e)||(s[e]=!1,j(n))}));else if(5===l){if(r(n)&&(j(n),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var f=i.length;f<o.length;f++)s[f]=!0;for(var p=Math.min(o.length,i.length),d=0;d<p;d++)void 0===s[d]&&e(o[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,"a",(function(){return be})),n.d(t,"b",(function(){return we}));var B,N,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),V="undefined"!=typeof Map,H="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=U?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),q=U?Symbol.for("immer-draftable"):"__$immer_draftable",$=U?Symbol.for("immer-state"):"__$immer_state",Y=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Z(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},K={},J={get:function(e,t){if(t===$)return e;var n=h(e);if(!u(n,t))return function(e,t,n){var r,i=M(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===P(e.t,t)?(I(e),e.o[t]=F(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=M(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=P(h(e),t),o=null==i?void 0:i[$];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,i)&&(void 0!==n||u(e.t,t)))return!0;I(e),j(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.D[t]=!1,I(e),j(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a(J,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return J.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=new(function(){function e(e){var t=this;this.g=W,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var u;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var l=C(t),c=F(t,e,void 0),f=!0;try{u=n(c),f=!1}finally{f?E(l):O(l)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(e){return w(l,i),S(e,l)}),(function(e){throw E(l),e})):(w(l,i),S(u,l))}if(!e||"object"!=typeof e){if((u=n(e))===G)return;return void 0===u&&(u=e),t.F&&v(u,!0),u}r(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=R(e));var t=C(this),n=F(this,e,void 0);return n[$].C=!0,O(t),n},t.finishDraft=function(e,t){var n=(e&&e[$]).A;return w(n,t),S(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!W&&r(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),te=ee.produce,ne=(ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee),ee.createDraft.bind(ee),ee.finishDraft.bind(ee),te),re=(n(23),n(92));function ie(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var oe=ie();oe.withExtraArgument=ie;var ae=oe,se=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},le=Object.defineProperty,ce=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,de=function(e,t,n){return t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},he=function(e,t){for(var n in t||(t={}))fe.call(t,n)&&de(e,n,t[n]);if(ce)for(var r=0,i=ce(t);r<i.length;r++){n=i[r];pe.call(t,n)&&de(e,n,t[n])}return e},me="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?re.c:re.c.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ve(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var ge=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return se(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ue([void 0],e[0].concat(this)))):new(t.bind.apply(t,ue([void 0],e.concat(this))))},t}(Array);function ye(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new ge);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(ae.withExtraArgument(n.extraArgument)):r.push(ae));0;return r}(e)}}function be(e){var t,n=ye(),r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,u=r.devTools,l=void 0===u||u,c=r.preloadedState,f=void 0===c?void 0:c,p=r.enhancers,d=void 0===p?void 0:p;if("function"===typeof o)t=o;else{if(!ve(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Object(re.b)(o)}var h=s;"function"===typeof h&&(h=h(n));var m=re.a.apply(void 0,h),v=re.c;l&&(v=me(he({trace:!1},"object"===typeof l&&l)));var g=[m];Array.isArray(d)?g=ue([m],d):"function"===typeof d&&(g=d(g));var y=v.apply(void 0,g);return Object(re.d)(t,f,y)}function _e(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return he(he({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function xe(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function we(e){var t=e.name,n=e.initialState;if(!t)throw new Error("`name` is a required option for createSlice");var r=e.reducers||{},a="function"===typeof e.extraReducers?xe(e.extraReducers):[e.extraReducers],s=a[0],u=void 0===s?{}:s,l=a[1],c=void 0===l?[]:l,f=a[2],p=void 0===f?void 0:f,d=Object.keys(r),h={},m={},v={};d.forEach((function(e){var n,i,o=r[e],a=t+"/"+e;"reducer"in o?(n=o.reducer,i=o.prepare):n=o,h[e]=n,m[a]=n,v[e]=i?_e(a,i):_e(a)}));var g=function(e,t,n,r){void 0===n&&(n=[]);var a="function"===typeof t?xe(t):[t,n,r],s=a[0],u=a[1],l=a[2],c=ne(e,(function(){}));return function(e,t){void 0===e&&(e=c);var n=ue([s[t.type]],u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(i(e))return"undefined"===typeof(r=n(e,t))?e:r;if(o(e))return ne(e,(function(e){return n(e,t)}));if("undefined"===typeof(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}}(n,he(he({},u),m),c,p);return{name:t,reducer:g,actions:v,caseReducers:h}}z()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhCN=t.viVN=t.ukUA=t.trTR=t.svSE=t.skSK=t.ruRU=t.roRO=t.ptPT=t.ptBR=t.plPL=t.nlNL=t.koKR=t.jaJP=t.itIT=t.isIS=t.idID=t.hyAM=t.huHU=t.hiIN=t.heIL=t.frFR=t.fiFI=t.faIR=t.etEE=t.esES=t.enUS=t.deDE=t.csCZ=t.caES=t.bgBG=t.azAZ=void 0;var r={props:{MuiBreadcrumbs:{expandText:"Yolu g\xf6st\u0259r"},MuiTablePagination:{backIconButtonText:"\u018fvv\u0259lki s\u0259hif\u0259",labelRowsPerPage:"S\u0259hif\u0259y\u0259 d\xfc\u015f\u0259n s\u0259trl\u0259r:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," d\u0259n ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xf6vb\u0259ti s\u0259hif\u0259"},MuiRating:{getLabelText:function(e){var t="Ulduz",n=e%10;return n>1&&n<5&&(t="Ulduzlar"),"".concat(e," ").concat(t)},emptyLabelText:"Bo\u015f"},MuiAutocomplete:{clearText:"Silm\u0259k",closeText:"Ba\u011flamaq",loadingText:"Y\xfckl\u0259nir\u2026",noOptionsText:"Se\xe7iml\u0259r m\xf6vcud deyil",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},MuiAlert:{closeText:"Ba\u011flamaq"},MuiPagination:{"aria-label":"S\u0259hif\u0259nin naviqasiyas\u0131",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t," ").concat(n?"s\u0259hif\u0259":"s\u0259hif\u0259y\u0259 ke\xe7"):"first"===e?"Birinci s\u0259hif\u0259y\u0259 ke\xe7":"last"===e?"Sonuncu s\u0259hif\u0259y\u0259 ke\xe7":"next"===e?"N\xf6vb\u0259ti s\u0259hif\u0259y\u0259 ke\xe7":"previous"===e?"\u018fvv\u0259lki s\u0259hif\u0259y\u0259 ke\xe7":void 0}}}};t.azAZ=r;var i={props:{MuiBreadcrumbs:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u044a\u0442\u044f"},MuiTablePagination:{backIconButtonText:"\u041f\u0440\u0435\u0434\u0438\u0448\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0420\u0435\u0434\u043e\u0432\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u043e\u0442 ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0417\u0432\u0435\u0437\u0434").concat(1!==e?"\u0438":"\u0430")},emptyLabelText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438"},MuiAutocomplete:{clearText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438",closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438",loadingText:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435\u2026",noOptionsText:"\u041d\u044f\u043c\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u0438 \u043e\u043f\u0446\u0438\u0438",openText:"\u041e\u0442\u0432\u043e\u0440\u0438"},MuiAlert:{closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"},MuiPagination:{"aria-label":"\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041a\u044a\u043c ","\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 ").concat(t):"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"previous"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":void 0}}}};t.bgBG=i;t.caES={props:{MuiTablePagination:{backIconButtonText:"P\xe0gina anterior",labelRowsPerPage:"Files per p\xe0gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Seg\xfcent p\xe0gina"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Estrelles":"Estrella")},emptyLabelText:"Buit"},MuiAutocomplete:{clearText:"Netejar",closeText:"Tancar",loadingText:"Carregant\u2026",noOptionsText:"Sense opcions",openText:"Obert"},MuiAlert:{closeText:"Tancat"}}};var o={props:{MuiBreadcrumbs:{expandText:"Uk\xe1zat cestu"},MuiTablePagination:{backIconButtonText:"P\u0159edchoz\xed str\xe1nka",labelRowsPerPage:"\u0158\xe1dk\u016f na str\xe1nce:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Dal\u0161\xed str\xe1nka"},MuiRating:{getLabelText:function(e){return"".concat(e,1===e?" hv\u011bzdi\u010dka":e>=2&&e<=4?" hv\u011bzdi\u010dky":" hv\u011bzdi\u010dek")},emptyLabelText:"Pr\xe1zdn\xe9"},MuiAutocomplete:{clearText:"Vymazat",closeText:"Zav\u0159\xedt",loadingText:"Na\u010d\xedt\xe1n\xed\u2026",noOptionsText:"\u017d\xe1dn\xe9 mo\u017enosti",openText:"Otev\u0159\xedt"},MuiAlert:{closeText:"Zav\u0159\xedt"},MuiPagination:{"aria-label":"Navigace str\xe1nkov\xe1n\xedm",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"J\xedt na ").concat(t," str\xe1nku"):"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"previous"===e?"J\xedt na p\u0159edchoz\xed str\xe1nku":void 0}}}};t.csCZ=o;var a={props:{MuiBreadcrumbs:{expandText:"Pfad anzeigen"},MuiTablePagination:{backIconButtonText:"N\xe4chste Seite",labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," von ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe4chste Seite"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Sterne":"Stern")},emptyLabelText:"Keine Wertung"},MuiAutocomplete:{clearText:"Leeren",closeText:"Schlie\xdfen",loadingText:"Wird geladen\u2026",noOptionsText:"Keine Optionen",openText:"\xd6ffnen"},MuiAlert:{closeText:"Schlie\xdfen"},MuiPagination:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Gehe zu ","Seite ").concat(t):"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"previous"===e?"Zur vorherigen Seite":void 0}}}};t.deDE=a;t.enUS={};var s={props:{MuiBreadcrumbs:{expandText:"Mostrar ruta"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Filas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Siguiente p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrella").concat(1!==e?"s":"")},emptyLabelText:"Vac\xedo"},MuiAutocomplete:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando\u2026",noOptionsText:"Sin opciones",openText:"Abierto"},MuiAlert:{closeText:"Cerrar"},MuiPagination:{"aria-label":"Paginador",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir a la ","p\xe1gina ").concat(t):"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"previous"===e?"Ir a la p\xe1gina anterior":void 0}}}};t.esES=s;var u={props:{MuiBreadcrumbs:{expandText:"N\xe4ita teed"},MuiTablePagination:{backIconButtonText:"Eelmine lehek\xfclg",labelRowsPerPage:"Ridu lehek\xfcljel:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"J\xe4rgmine lehek\xfclg"},MuiRating:{getLabelText:function(e){return"".concat(e," T\xe4rn").concat(1!==e?"i":"")},emptyLabelText:"T\xfchi"},MuiAutocomplete:{clearText:"T\xfchjenda",closeText:"Sulge",loadingText:"Laen\u2026",noOptionsText:"Valikuid ei ole",openText:"Ava"},MuiAlert:{closeText:"Sulge"},MuiPagination:{"aria-label":"Lehek\xfclgede valik",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vali ","lehek\xfclg ").concat(t):"first"===e?"Vali esimene lehek\xfclg":"last"===e?"Vali viimane lehek\xfclg":"next"===e?"Vali j\xe4rgmine lehek\xfclg":"previous"===e?"Vali eelmine lehek\xfclg":void 0}}}};t.etEE=u;var l={props:{MuiBreadcrumbs:{expandText:"\u0646\u0645\u0627\u06cc\u0634 \u0645\u0633\u06cc\u0631"},MuiTablePagination:{backIconButtonText:"\u0635\u0641\u062d\u0647\u0654 \u0642\u0628\u0644",labelRowsPerPage:"\u062a\u0639\u062f\u0627\u062f \u0633\u0637\u0631\u0647\u0627\u06cc \u0647\u0631 \u0635\u0641\u062d\u0647:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0627\u0632 ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0635\u0641\u062d\u0647\u0654 \u0628\u0639\u062f"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0633\u062a\u0627\u0631\u0647")},emptyLabelText:"\u062e\u0627\u0644\u06cc"},MuiAutocomplete:{clearText:"\u067e\u0627\u06a9\u200c\u06a9\u0631\u062f\u0646",closeText:"\u0628\u0633\u062a\u0646",loadingText:"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u2026",noOptionsText:"\u0628\u06cc\u200c\u0646\u062a\u06cc\u062c\u0647",openText:"\u0628\u0627\u0632\u06a9\u0631\u062f\u0646"},MuiAlert:{closeText:"\u0628\u0633\u062a\u0646"},MuiPagination:{"aria-label":"\u0646\u0627\u0648\u0628\u0631\u06cc \u0635\u0641\u062d\u0647",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u0631\u0641\u062a\u0646 \u0628\u0647 ","\u0635\u0641\u062d\u0647\u0654 ").concat(t):"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"previous"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc":void 0}}}};t.faIR=l;var c={props:{MuiBreadcrumbs:{expandText:"N\xe4yt\xe4 reitti"},MuiTablePagination:{backIconButtonText:"Edellinen sivu",labelRowsPerPage:"Rivej\xe4 per sivu:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Seuraava sivu"},MuiRating:{getLabelText:function(e){return"".concat(e," T\xe4ht").concat(1!==e?"e\xe4":"i")},emptyLabelText:"Tyhj\xe4"},MuiAutocomplete:{clearText:"Tyhjenn\xe4",closeText:"Sulje",loadingText:"Ladataan\u2026",noOptionsText:"Ei valintoja",openText:"Avaa"},MuiAlert:{closeText:"Sulje"},MuiPagination:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"sivu":"Mene sivulle"," ").concat(t):"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"previous"===e?"Mene edelliselle sivulle":void 0}}}};t.fiFI=c;var f={props:{MuiBreadcrumbs:{expandText:"Montrer le chemin"},MuiTablePagination:{backIconButtonText:"Page pr\xe9c\xe9dente",labelRowsPerPage:"Lignes par page :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," sur ").concat(-1!==r?r:"plus que ".concat(n))},nextIconButtonText:"Page suivante"},MuiRating:{getLabelText:function(e){return"".concat(e," Etoile").concat(1!==e?"s":"")},emptyLabelText:"Vide"},MuiAutocomplete:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement\u2026",noOptionsText:"Pas de r\xe9sultats",openText:"Ouvrir"},MuiAlert:{closeText:"Fermer"},MuiPagination:{"aria-label":"navigation de pagination",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Aller \xe0 la ","page ").concat(t):"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"previous"===e?"Aller \xe0 la page pr\xe9c\xe9dente":void 0}}}};t.frFR=f;t.heIL={props:{MuiTablePagination:{backIconButtonText:"\u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd",labelRowsPerPage:"\u05e9\u05d5\u05e8\u05d5\u05ea \u05d1\u05e2\u05de\u05d5\u05d3:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u05de\u05ea\u05d5\u05da ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0"},MuiRating:{getLabelText:function(e){return"".concat(e," \u05db\u05d5\u05db\u05d1").concat(1!==e?"\u05d9\u05dd":"")},emptyLabelText:"\u05e8\u05d9\u05e7"},MuiAutocomplete:{clearText:"\u05e0\u05e7\u05d4",closeText:"\u05e1\u05d2\u05d5\u05e8",loadingText:"\u05d8\u05d5\u05e2\u05df\u2026",noOptionsText:"\u05d0\u05d9\u05df \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05ea",openText:"\u05e4\u05ea\u05d7"},MuiAlert:{closeText:"\u05e1\u05d2\u05d5\u05e8"}}};var p={props:{MuiBreadcrumbs:{expandText:"\u0930\u093e\u0938\u094d\u0924\u093e \u0926\u093f\u0916\u093e\u092f\u0947\u0902"},MuiTablePagination:{backIconButtonText:"\u092a\u093f\u091b\u0932\u093e \u092a\u0943\u0937\u094d\u0920",labelRowsPerPage:"\u092a\u0902\u0915\u094d\u0924\u093f\u092f\u093e\u0901 \u092a\u094d\u0930\u0924\u093f \u092a\u0943\u0937\u094d\u0920:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," \u0915\u0941\u0932 ").concat(r," \u092e\u0947\u0902")},nextIconButtonText:"\u0905\u0917\u0932\u093e \u092a\u0943\u0937\u094d\u0920"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0924\u093e\u0930").concat(1!==e?"\u0947":"\u093e")},emptyLabelText:"\u0930\u093f\u0915\u094d\u0924"},MuiAutocomplete:{clearText:"\u0939\u091f\u093e\u092f\u0947\u0902",closeText:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",loadingText:"\u0932\u094b\u0921 \u0939\u094b \u0930\u0939\u093e \u0939\u0948\u2026",noOptionsText:"\u0915\u094b\u0908 \u0935\u093f\u0915\u0932\u094d\u092a \u0928\u0939\u0940\u0902",openText:"\u0916\u094b\u0932\u0947\u0902"},MuiAlert:{closeText:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902"},MuiPagination:{"aria-label":"\u092a\u0943\u0938\u094d\u0920\u093e\u0928\u0941\u0938\u093e\u0930 \u0938\u0902\u091a\u093e\u0932\u0928",getItemAriaLabel:function(e,t,n){return"page"===e?"\u092a\u0943\u0937\u094d\u0920 ".concat(t," ").concat(n?"":" \u092a\u0930 \u091c\u093e\u090f\u0901"):"first"===e?"\u092a\u0939\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"last"===e?"\u0905\u0902\u0924\u093f\u092e \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"next"===e?"\u0905\u0917\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"previous"===e?"\u092a\u093f\u091b\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":void 0}}}};t.hiIN=p;var d={props:{MuiBreadcrumbs:{expandText:"\xdatvonal"},MuiTablePagination:{backIconButtonText:"El\u0151z\u0151 oldal",labelRowsPerPage:"Sorok sz\xe1ma:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"K\xf6vetkez\u0151 oldal"},MuiRating:{getLabelText:function(e){return"".concat(e," Csillag")},emptyLabelText:"\xdcres"},MuiAutocomplete:{clearText:"T\xf6rl\xe9s",closeText:"Bez\xe1r\xe1s",loadingText:"T\xf6lt\xe9s\u2026",noOptionsText:"Nincs tal\xe1lat",openText:"Megnyit\xe1s"},MuiAlert:{closeText:"Bez\xe1r\xe1s"},MuiPagination:{"aria-label":"Lapoz\xe1s",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". oldal").concat(n?"":"ra"):"first"===e?"Els\u0151 oldalra":"last"===e?"Utols\xf3 oldalra":"next"===e?"K\xf6vetkez\u0151 oldalra":"previous"===e?"El\u0151z\u0151 oldalra":void 0}}}};t.huHU=d;t.hyAM={props:{MuiTablePagination:{backIconButtonText:"\u0546\u0561\u056d\u0578\u0580\u0564\u0568",labelRowsPerPage:"\u054f\u0578\u0572\u0565\u0580 \u0574\u0565\u056f \u0567\u057b\u0578\u0582\u0574`",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0540\u0561\u057b\u0578\u0580\u0564\u0568"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0531\u057d\u057f\u0572")},emptyLabelText:"\u0534\u0561\u057f\u0561\u0580\u056f"},MuiAutocomplete:{clearText:"\u0544\u0561\u0584\u0580\u0565\u056c",closeText:"\u0553\u0561\u056f\u0565\u056c",loadingText:"\u0532\u0565\u057c\u0576\u0578\u0582\u0574\u2026",noOptionsText:"\u054f\u0561\u0580\u0562\u0565\u0580\u0561\u056f\u0576\u0565\u0580 \u0579\u056f\u0561\u0576",openText:"\u0532\u0561\u0581\u0565\u056c"},MuiAlert:{closeText:"\u0553\u0561\u056f\u0565\u056c"}}};t.idID={props:{MuiTablePagination:{backIconButtonText:"Halaman sebelumnya",labelRowsPerPage:"Baris per halaman:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," dari ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Halaman selanjutnya"},MuiRating:{getLabelText:function(e){return"".concat(e," Bintang")}},MuiAutocomplete:{clearText:"Hapus",closeText:"Tutup",loadingText:"Memuat\u2026",noOptionsText:"Tidak ada opsi",openText:"Buka"},MuiAlert:{closeText:"Tutup"}}};t.isIS={props:{MuiTablePagination:{backIconButtonText:"Fyrri s\xed\xf0a",labelRowsPerPage:"Ra\xf0ir \xe1 s\xed\xf0u:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," af ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe6sta s\xed\xf0a"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1===e?"Stjarna":"Stj\xf6rnur")},emptyLabelText:"T\xf3mt"},MuiAutocomplete:{clearText:"Hreinsa",closeText:"Loka",loadingText:"Hla\xf0a\u2026",noOptionsText:"Engar ni\xf0urst\xf6\xf0ur",openText:"Opna"},MuiAlert:{closeText:"Loka"}}};var h={props:{MuiBreadcrumbs:{expandText:"Visualizza percorso"},MuiTablePagination:{backIconButtonText:"Pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," di ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pagina successiva"},MuiRating:{getLabelText:function(e){return"".concat(e," Stell").concat(1!==e?"e":"a")},emptyLabelText:"Vuoto"},MuiAutocomplete:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso\u2026",noOptionsText:"Nessuna opzione",openText:"Apri"},MuiAlert:{closeText:"Chiudi"},MuiPagination:{"aria-label":"Navigazione impaginata",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vai alla ","pagina ").concat(t):"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"previous"===e?"Vai alla pagina precedente":void 0}}}};t.itIT=h;t.jaJP={props:{MuiTablePagination:{backIconButtonText:"\u524d\u306e\u30da\u30fc\u30b8",labelRowsPerPage:"\u30da\u30fc\u30b8\u3054\u3068\u306e\u884c:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u6b21\u306e\u30da\u30fc\u30b8"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"\u51fa\u6f14\u8005":"\u661f")}},MuiAutocomplete:{clearText:"\u30af\u30ea\u30a2",closeText:"\u9589\u3058\u308b",loadingText:"\u7a4d\u307f\u8fbc\u307f\u2026",noOptionsText:"\u7d50\u679c\u304c\u3042\u308a\u307e\u305b\u3093",openText:"\u958b\u3044\u305f"},MuiAlert:{closeText:"\u9589\u3058\u308b"}}};t.koKR={props:{MuiTablePagination:{backIconButtonText:"\uc774\uc804 \ud398\uc774\uc9c0",labelRowsPerPage:"\ud398\uc774\uc9c0 \ub2f9 \ud589:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\ub2e4\uc74c \ud398\uc774\uc9c0"},MuiRating:{getLabelText:function(e){return"".concat(e," \uc810")}},MuiAutocomplete:{clearText:"\uc9c0\uc6b0\uae30",closeText:"\ub2eb\uae30",loadingText:"\ubd88\ub7ec\uc624\ub294 \uc911\u2026",noOptionsText:"\uc635\uc158 \uc5c6\uc74c",openText:"\uc5f4\uae30"}}};t.nlNL={props:{MuiTablePagination:{backIconButtonText:"Vorige pagina",labelRowsPerPage:"Regels per pagina :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," van ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Volgende pagina"},MuiRating:{getLabelText:function(e){return"".concat(e," Ster").concat(1!==e?"ren":"")}},MuiAutocomplete:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden\u2026",noOptionsText:"Geen opties",openText:"Openen"},MuiAlert:{closeText:"Sluiten"}}};var m={props:{MuiBreadcrumbs:{expandText:"Poka\u017c \u015bcie\u017ck\u0119"},MuiTablePagination:{backIconButtonText:"Poprzednia strona",labelRowsPerPage:"Wierszy na stron\u0119:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Nast\u0119pna strona"},MuiRating:{getLabelText:function(e){var t="gwiazdek",n=e%10;return(e<10||e>20)&&n>1&&n<5?t="gwiazdki":1===e&&(t="gwiazdka"),"".concat(e," ").concat(t)},emptyLabelText:"Brak gwiazdek"},MuiAutocomplete:{clearText:"Wyczy\u015b\u0107",closeText:"Zamknij",loadingText:"\u0141adowanie\u2026",noOptionsText:"Brak opcji",openText:"Otw\xf3rz"},MuiAlert:{closeText:"Zamknij"},MuiPagination:{"aria-label":"Nawigacja podzia\u0142u na strony",getItemAriaLabel:function(e,t,n){return"page"===e?n?"".concat(t,". strona"):"Przejd\u017a do ".concat(t,". strony"):"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"previous"===e?"Przejd\u017a do poprzedniej strony":void 0}}}};t.plPL=m;var v={props:{MuiBreadcrumbs:{expandText:"Mostrar caminho"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pr\xf3xima p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"},MuiAutocomplete:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"},MuiAlert:{closeText:"Fechar"},MuiPagination:{"aria-label":"Navegar pela pagina\xe7\xe3o",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"previous"===e?"Ir para a p\xe1gina anterior":void 0}}}};t.ptBR=v;var g={props:{MuiBreadcrumbs:{expandText:"Mostrar caminho"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pr\xf3xima p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"},MuiAutocomplete:{clearText:"Limpar",closeText:"Fechar",loadingText:"A carregar\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"},MuiAlert:{closeText:"Fechar"},MuiPagination:{"aria-label":"Navegar por p\xe1ginas",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Primeira p\xe1gina":"last"===e?"\xdaltima p\xe1gina":"next"===e?"Pr\xf3xima p\xe1gina":"previous"===e?"P\xe1gina anterior":void 0}}}};t.ptPT=g;var y={props:{MuiBreadcrumbs:{expandText:"Arat\u0103 calea"},MuiTablePagination:{backIconButtonText:"Pagina precedent\u0103",labelRowsPerPage:"R\xe2nduri pe pagin\u0103:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," din ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pagina urm\u0103toare"},MuiRating:{getLabelText:function(e){return"".concat(e," St").concat(1!==e?"ele":"ea")},emptyLabelText:"Gol"},MuiAutocomplete:{clearText:"\u0218terge",closeText:"\xcenchide",loadingText:"Se \xeencarc\u0103\u2026",noOptionsText:"Nicio op\u021biune",openText:"Deschide"},MuiAlert:{closeText:"\xcenchide"},MuiPagination:{"aria-label":"Navigare prin paginare",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Mergi la ","pagina ").concat(t):"first"===e?"Mergi la prima pagin\u0103":"last"===e?"Mergi la ultima pagin\u0103":"next"===e?"Mergi la pagina urm\u0103toare":"previous"===e?"Mergi la pagina precedent\u0103":void 0}}}};t.roRO=y;t.ruRU={props:{MuiTablePagination:{backIconButtonText:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0421\u0442\u0440\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0438\u0437 ").concat(-1!==r?r:"\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c ".concat(n))},nextIconButtonText:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},MuiRating:{getLabelText:function(e){var t="\u0417\u0432\u0451\u0437\u0434",n=e%10;return n>1&&n<5?t="\u0417\u0432\u0435\u0437\u0434\u044b":1===n&&(t="\u0417\u0432\u0435\u0437\u0434\u0430"),"".concat(e," ").concat(t)}},MuiAutocomplete:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",loadingText:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u2026",noOptionsText:"\u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},MuiAlert:{closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}}};t.skSK={props:{MuiTablePagination:{backIconButtonText:"Predch\xe1dzaj\xfaca str\xe1nka",labelRowsPerPage:"Riadkov na str\xe1nke:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u010eal\u0161ia str\xe1nka"},MuiRating:{getLabelText:function(e){return"".concat(e,1===e?" hviezdi\u010dka":e>=2&&e<=4?" hviezdi\u010dky":" hviezdi\u010diek")}},MuiAutocomplete:{clearText:"Vymaza\u0165",closeText:"Zavrie\u0165",loadingText:"Na\u010d\xedtanie\u2026",noOptionsText:"\u017diadne mo\u017enosti",openText:"Otvori\u0165"},MuiAlert:{closeText:"Zavrie\u0165"}}};t.svSE={props:{MuiTablePagination:{backIconButtonText:"F\xf6reg\xe5ende sida",labelRowsPerPage:"Rader per sida:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," av ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe4sta sida"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Stj\xe4rnor":"Stj\xe4rna")}},MuiAutocomplete:{clearText:"Rensa",closeText:"St\xe4ng",loadingText:"Laddar\u2026",noOptionsText:"Inga alternativ",openText:"\xd6ppen"},MuiAlert:{closeText:"St\xe4ng"}}};var b={props:{MuiBreadcrumbs:{expandText:"Yolu g\xf6ster"},MuiTablePagination:{backIconButtonText:"\xd6nceki sayfa",labelRowsPerPage:"Sayfa ba\u015f\u0131na sat\u0131r:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," tanesinden ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Sonraki sayfa"},MuiRating:{getLabelText:function(e){return"".concat(e," Y\u0131ld\u0131z")},emptyLabelText:"Bo\u015f"},MuiAutocomplete:{clearText:"Temizle",closeText:"Kapat",loadingText:"Y\xfckleniyor\u2026",noOptionsText:"Se\xe7enek yok",openText:"A\xe7"},MuiAlert:{closeText:"Kapat"},MuiPagination:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". ").concat(n?"sayfa":"sayfaya git"):"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"previous"===e?"\xd6nceki sayfaya git":void 0}}}};t.trTR=b;var _={props:{MuiBreadcrumbs:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0448\u043b\u044f\u0445 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a"},MuiTablePagination:{backIconButtonText:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430",labelRowsPerPage:"\u0420\u044f\u0434\u043a\u0456\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0437 ").concat(-1!==r?r:"\u043f\u043e\u043d\u0430\u0434 ".concat(n))},nextIconButtonText:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430"},MuiRating:{getLabelText:function(e){var t="\u0417\u0456\u0440\u043e\u043a",n=e%10;return n>1&&n<5?t="\u0417\u0456\u0440\u043a\u0438":1===n&&(t="\u0417\u0456\u0440\u043a\u0430"),"".concat(e," ").concat(t)},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u0432\u0456\u0434\u0441\u0443\u0442\u043d\u0456\u0439"},MuiAutocomplete:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",loadingText:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f\u2026",noOptionsText:"\u041d\u0435\u043c\u0430\u0454 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432",openText:"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438"},MuiAlert:{closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438"},MuiPagination:{"aria-label":"\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430\u043c\u0438",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 ","\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 ").concat(t):"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"previous"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":void 0}}}};t.ukUA=_;t.viVN={props:{MuiTablePagination:{backIconButtonText:"Trang tr\u01b0\u1edbc",labelRowsPerPage:"S\u1ed1 h\xe0ng m\u1ed7i trang:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," trong ").concat(-1!==r?r:"nhi\u1ec1u h\u01a1n ".concat(n))},nextIconButtonText:"Trang sau"},MuiRating:{getLabelText:function(e){return"".concat(e," sao")},emptyLabelText:"Tr\u1ed1ng"},MuiAutocomplete:{clearText:"X\xf3a",closeText:"\u0110\xf3ng",loadingText:"\u0110ang t\u1ea3i\u2026",noOptionsText:"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn",openText:"M\u1edf"},MuiAlert:{closeText:"\u0110\xf3ng"}}};t.zhCN={props:{MuiTablePagination:{backIconButtonText:"\u4e0a\u4e00\u9875",labelRowsPerPage:"\u6bcf\u9875\u884c\u6570:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u7684 ").concat(-1!==r?r:"\u8d85\u8fc7 ".concat(n))},nextIconButtonText:"\u4e0b\u4e00\u9875"},MuiRating:{getLabelText:function(e){return"".concat(e," \u661f").concat(1!==e?"\u661f":"")}},MuiAutocomplete:{clearText:"\u660e\u786e",closeText:"\u5173",loadingText:"\u8f7d\u5165\u4e2d\u2026",noOptionsText:"\u6ca1\u6709\u9009\u62e9",openText:"\u6253\u5f00"},MuiAlert:{closeText:"\u5173"}}}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(372),i=new(n.n(r).a);i.setMaxListeners&&i.setMaxListeners(10);var o="recharts.syncMouseEvents"},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.default=a},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}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(422),i={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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=p(n,g);try{l(t,g,y)}catch(b){}}}}return t}},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(88);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},,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},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n(85);function i(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?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(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 s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l={widthCache:{},cacheCount:0},c={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},f=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var p=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((o=n,o.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(s(e),["-",t.toLowerCase()]):[].concat(s(e),[t])}),[]).join("")),":").concat((r=n,i=e[n],f.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||r.a.isSsr)return{width:0,height:0};var n="".concat(e),i=p(t),a="".concat(n,"-").concat(i);if(l.widthCache[a])return l.widthCache[a];try{var s=document.getElementById("recharts_measurement_span");s||((s=document.createElement("span")).setAttribute("id","recharts_measurement_span"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var u=o(o({},c),t);Object.keys(u).map((function(e){return s.style[e]=u[e],e})),s.textContent=n;var f=s.getBoundingClientRect(),d={width:f.width,height:f.height};return l.widthCache[a]=d,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),d}catch(h){return{width:0,height:0}}},h=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},m=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return D})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h}));var r=n(1);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),u=t&&i(t),l=s||u;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var f=0,p=a.length;p>=0;p--){var d=a[p];"."===d?o(a,p):".."===d?(o(a,p),f++):f&&(o(a,p),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(69);function c(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}function _(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),y||Object(l.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,f=void 0===u?b:u,v=o.keyLength,x=void 0===v?6:v,w=e.basename?d(c(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return w&&(o=p(o,w)),m(o,r,n)}function O(){return Math.random().toString(36).substr(2,x)}var C=g();function D(e){Object(r.a)(z,e),z.length=t.length,C.notifyListeners(z.location,z.action)}function S(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(E(e.state))}function k(){T(E(_()))}var A=!1;function T(e){if(A)A=!1,D();else{C.confirmTransitionTo(e,"POP",f,(function(t){t?D({action:"POP",location:e}):function(e){var t=z.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(A=!0,I(i))}(e)}))}}var P=E(_()),M=[P.key];function j(e){return w+h(e)}function I(e){t.go(e)}var F=0;function R(e){1===(F+=e)&&1===e?(window.addEventListener("popstate",S),i&&window.addEventListener("hashchange",k)):0===F&&(window.removeEventListener("popstate",S),i&&window.removeEventListener("hashchange",k))}var L=!1;var z={length:t.length,action:"POP",location:P,createHref:j,push:function(e,r){var i=m(e,r,O(),z.location);C.confirmTransitionTo(i,"PUSH",f,(function(e){if(e){var r=j(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var u=M.indexOf(z.location.key),l=M.slice(0,u+1);l.push(i.key),M=l,D({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(e,r){var i=m(e,r,O(),z.location);C.confirmTransitionTo(i,"REPLACE",f,(function(e){if(e){var r=j(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var u=M.indexOf(z.location.key);-1!==u&&(M[u]=i.key),D({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return L||(R(1),L=!0),function(){return L&&(L=!1,R(-1)),t()}},listen:function(e){var t=C.appendListener(e);return R(1),function(){R(-1),t()}}};return z}var w={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:c},slash:{encodePath:c,decodePath:c}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(E(window.location.href)+"#"+e)}function D(e){void 0===e&&(e={}),y||Object(l.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?d(c(e.basename)):"",f=w[s],v=f.encodePath,_=f.decodePath;function x(){var e=_(O());return u&&(e=p(e,u)),m(e)}var D=g();function S(e){Object(r.a)(B,e),B.length=t.length,D.notifyListeners(B.location,B.action)}var k=!1,A=null;function T(){var e,t,n=O(),r=v(n);if(n!==r)C(r);else{var i=x(),a=B.location;if(!k&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(k)k=!1,S();else{D.confirmTransitionTo(e,"POP",o,(function(t){t?S({action:"POP",location:e}):function(e){var t=B.location,n=I.lastIndexOf(h(t));-1===n&&(n=0);var r=I.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,F(i))}(e)}))}}(i)}}var P=O(),M=v(P);P!==M&&C(M);var j=x(),I=[h(j)];function F(e){t.go(e)}var R=0;function L(e){1===(R+=e)&&1===e?window.addEventListener("hashchange",T):0===R&&window.removeEventListener("hashchange",T)}var z=!1;var B={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+v(u+h(e))},push:function(e,t){var n=m(e,void 0,void 0,B.location);D.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=h(n),r=v(u+t);if(O()!==r){A=t,function(e){window.location.hash=e}(r);var i=I.lastIndexOf(h(B.location)),o=I.slice(0,i+1);o.push(t),I=o,S({action:"PUSH",location:n})}else S()}}))},replace:function(e,t){var n=m(e,void 0,void 0,B.location);D.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=h(n),r=v(u+t);O()!==r&&(A=t,C(r));var i=I.indexOf(h(B.location));-1!==i&&(I[i]=t),S({action:"REPLACE",location:n})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=D.setPrompt(e);return z||(L(1),z=!0),function(){return z&&(z=!1,L(-1)),t()}},listen:function(e){var t=D.appendListener(e);return L(1),function(){L(-1),t()}}};return B}function S(e,t,n){return Math.min(Math.max(e,t),n)}function k(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,c=g();function f(e){Object(r.a)(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function p(){return Math.random().toString(36).substr(2,l)}var d=S(s,0,o.length-1),v=o.map((function(e){return m(e,void 0,"string"===typeof e?p():e.key||p())})),y=h;function b(e){var t=S(_.index+e,0,_.entries.length-1),r=_.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var _={length:v.length,action:"POP",location:v[d],index:d,entries:v,createHref:y,push:function(e,t){var r=m(e,t,p(),_.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,p(),_.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(_.entries[_.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(4),i=n(1),o=n(0),a=n.n(o),s=n(54),u=n(643),l={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},c=n(195),f=n(644),p=-1e9;function d(){return p+=1}n(101);var h=n(582);function m(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=Object(i.a)({},o);return Object.keys(a).forEach((function(e){s[e]=Object(h.a)(s[e],a[e])})),s},options:{}}}var v={};function g(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Object(u.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function y(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,c=e.name;if(!o.disableGeneration){var f=l.get(o.sheetsManager,a,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},l.set(o.sheetsManager,a,r,f));var p=Object(i.a)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});p.generateId=p.serverGenerateClassName||p.generateClassName;var d=o.sheetsRegistry;if(0===f.refs){var h;o.sheetsCache&&(h=l.get(o.sheetsCache,a,r));var m=a.create(r,c);h||((h=o.jss.createStyleSheet(m,Object(i.a)({link:!1},p))).attach(),o.sheetsCache&&l.set(o.sheetsCache,a,r,h)),d&&d.add(h),f.staticSheet=h,f.dynamicStyles=Object(s.e)(m)}if(f.dynamicStyles){var v=o.jss.createStyleSheet(f.dynamicStyles,Object(i.a)({link:!0},p));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=Object(u.a)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),d&&d.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}function b(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function _(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=l.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(l.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function x(e,t){var n,r=a.a.useRef([]),i=a.a.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[i])}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,s=t.Component,u=t.defaultTheme,l=void 0===u?v:u,p=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),h=m(e),w=n||o||"makeStyles";h.options={index:d(),name:n,meta:w,classNamePrefix:w};var E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(c.a)()||l,r=Object(i.a)({},a.a.useContext(f.a),p),o=a.a.useRef(),u=a.a.useRef();x((function(){var i={name:n,state:{},stylesCreator:h,stylesOptions:r,theme:t};return y(i,e),u.current=!1,o.current=i,function(){_(i)}}),[t,h]),a.a.useEffect((function(){u.current&&b(o.current,e),u.current=!0}));var d=g(o.current,e.classes,s);return d};return E}},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n(55),i=n.n(r),o=n(15),a=n.n(o),s=n(14),u=n.n(s),l=n(0),c=n.n(l),f=n(21),p=n.n(f),d=n(117),h=n(28),m=n(6),v=n(43),g=n(17);function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}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 _(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?_(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(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 E(){return(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}).apply(this,arguments)}var O=function(e,t,n){var r,i,o=e.position,a=e.viewBox,s=e.offset,l=e.className,f=a,d=f.cx,h=f.cy,g=f.innerRadius,y=f.outerRadius,b=f.startAngle,_=f.endAngle,x=f.clockWise,w=(g+y)/2,O=function(e,t){return Object(m.i)(t-e)*Math.min(Math.abs(t-e),360)}(b,_),C=O>=0?1:-1;"insideStart"===o?(r=b+C*s,i=x):"insideEnd"===o?(r=_-C*s,i=!x):"end"===o&&(r=_+C*s,i=x),i=O<=0?i:!i;var D=Object(v.c)(d,h,w,r),S=Object(v.c)(d,h,w,r+359*(i?1:-1)),k="M".concat(D.x,",").concat(D.y,"\n A").concat(w,",").concat(w,",0,1,").concat(i?0:1,",\n ").concat(S.x,",").concat(S.y),A=u()(e.id)?Object(m.j)("recharts-radial-line-"):e.id;return c.a.createElement("text",E({},n,{dominantBaseline:"central",className:p()("recharts-radial-bar-label",l)}),c.a.createElement("defs",null,c.a.createElement("path",{id:A,d:k})),c.a.createElement("textPath",{xlinkHref:"#".concat(A)},t))};function C(e){var t,n=e.viewBox,r=e.position,o=e.value,s=e.children,f=e.content,h=e.className,y=void 0===h?"":h,b=e.textBreakAll;if(!n||u()(o)&&u()(s)&&!Object(l.isValidElement)(f)&&!a()(f))return null;if(Object(l.isValidElement)(f))return Object(l.cloneElement)(f,e);if(a()(f)){if(t=Object(l.createElement)(f,e),Object(l.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=u()(e.children)?t:e.children;return a()(n)?n(r):r}(e);var _=function(e){return Object(m.g)(e.cx)}(n),w=Object(g.c)(e,!0);if(_&&("insideStart"===r||"insideEnd"===r||"end"===r))return O(e,t,w);var C=_?function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var c=Object(v.c)(o,a,u+n,l),f=c.x;return{x:f,y:c.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=(s+u)/2,d=Object(v.c)(o,a,p,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t,s=a.x,u=a.y,l=a.width,c=a.height,f=c>=0?1:-1,p=f*r,d=f>0?"end":"start",h=f>0?"start":"end",v=l>=0?1:-1,g=v*r,y=v>0?"end":"start",b=v>0?"start":"end";if("top"===o)return x(x({},{x:s+l/2,y:u-f*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(u-n.y,0),width:l}:{});if("bottom"===o)return x(x({},{x:s+l/2,y:u+c+p,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{});if("left"===o){var _={x:s-g,y:u+c/2,textAnchor:y,verticalAnchor:"middle"};return x(x({},_),n?{width:Math.max(_.x-n.x,0),height:c}:{})}if("right"===o){var w={x:s+l+g,y:u+c/2,textAnchor:b,verticalAnchor:"middle"};return x(x({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var E=n?{width:l,height:c}:{};return"insideLeft"===o?x({x:s+g,y:u+c/2,textAnchor:b,verticalAnchor:"middle"},E):"insideRight"===o?x({x:s+l-g,y:u+c/2,textAnchor:y,verticalAnchor:"middle"},E):"insideTop"===o?x({x:s+l/2,y:u+p,textAnchor:"middle",verticalAnchor:h},E):"insideBottom"===o?x({x:s+l/2,y:u+c-p,textAnchor:"middle",verticalAnchor:d},E):"insideTopLeft"===o?x({x:s+g,y:u+p,textAnchor:b,verticalAnchor:h},E):"insideTopRight"===o?x({x:s+l-g,y:u+p,textAnchor:y,verticalAnchor:h},E):"insideBottomLeft"===o?x({x:s+g,y:u+c-p,textAnchor:b,verticalAnchor:d},E):"insideBottomRight"===o?x({x:s+l-g,y:u+c-p,textAnchor:y,verticalAnchor:d},E):i()(o)&&(Object(m.g)(o.x)||Object(m.h)(o.x))&&(Object(m.g)(o.y)||Object(m.h)(o.y))?x({x:s+Object(m.c)(o.x,l),y:u+Object(m.c)(o.y,c),textAnchor:"end",verticalAnchor:"end"},E):x({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},E)}(e);return c.a.createElement(d.a,E({className:p()("recharts-label",y)},w,C,{breakAll:b}),t)}C.displayName="Label",C.defaultProps={offset:5};var D=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,l=e.outerRadius,c=e.x,f=e.y,p=e.top,d=e.left,h=e.width,v=e.height,g=e.clockWise,y=e.labelViewBox;if(y)return y;if(Object(m.g)(h)&&Object(m.g)(v)){if(Object(m.g)(c)&&Object(m.g)(f))return{x:c,y:f,width:h,height:v};if(Object(m.g)(p)&&Object(m.g)(d))return{x:p,y:d,width:h,height:v}}return Object(m.g)(c)&&Object(m.g)(f)?{x:c,y:f,width:0,height:0}:Object(m.g)(t)&&Object(m.g)(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||s||a||0,clockWise:g}:e.viewBox?e.viewBox:{}},S=function(e,t){return e?!0===e?c.a.createElement(C,{key:"label-implicit",viewBox:t}):Object(m.f)(e)?c.a.createElement(C,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===C?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):c.a.createElement(C,{key:"label-implicit",content:e,viewBox:t}):a()(e)?c.a.createElement(C,{key:"label-implicit",content:e,viewBox:t}):i()(e)?c.a.createElement(C,E({viewBox:t},e,{key:"label-implicit"})):null:null};C.parseViewBox=D,C.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=D(e),o=Object(h.a)(r,C.displayName).map((function(e,n){return Object(l.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return o;var a=S(e.label,t||i);return[a].concat(y(o))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(1),i=n(4),o=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,u=e.step,l=void 0===u?5:u,c=Object(i.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=o.indexOf(t);return r===o.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[o[r+1]]?n[o[r+1]]:t)-l/100).concat(s,")")}return Object(r.a)({keys:o,values:n,up:f,down:function(e){var t=o.indexOf(e)+1,r=n[o[t]];return t===o.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},c)}},function(e,t,n){var r=n(251),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),i=n(24),o=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function f(){"hidden"===this.visibilityState&&a&&(o=!0)}function p(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||("TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable)}(t)}function d(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:p,onBlurVisible:d,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";var r=n(113),i=Object(r.b)();t.a=i},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.default=a},function(e,t,n){"use strict";(function(e,r,i){n.d(t,"a",(function(){return Na}));var o=n(135),a=n(136),s=n(227),u=n(231),l=n(48),c=n(35),f=n(5),p=n(0),d=n.n(p),h=n(10),m=n(30),v=n(31),g=n(27),y=n(47),b=n(20),_=n(102),x=n(95),w=n(2),E=n(197),O=n(41),C=n(12),D=n(34),S=n(77),k=n(232),A=n(591),T=n(23),P=n(237),M=n(391),j=n(196),I=n(93),F=n(234),R=n(120),L=n(235),z=n(388),B=n(387),N=n(194),U=n(236),V=n(233),H=n(593),W=n(119),G=n(592),q=n(585),$=n(158),Y=n(238),Z=n(590),X=n(594),K=n(595),J=n(58),Q=n(3),ee=n.n(Q),te=n(70),ne=p.createContext(void 0);function re(){var e=p.useContext(ne);if(void 0===e)throw new Error(["Material-UI X: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid or XGrid parent component."].join("\n"));return e}var ie=p.memo((function(e){var t=e.align,n=e.className,r=e.children,i=e.colIndex,o=e.cellMode,a=e.field,s=e.formattedValue,u=e.hasFocus,l=e.height,c=e.isEditable,f=e.isSelected,d=e.rowIndex,v=e.rowId,g=e.showRightBorder,y=e.tabIndex,b=e.value,_=e.width,x=null==s?b:s,E=p.useRef(null),O=re(),C=Object(w.a)(n,"MuiDataGrid-cell--text".concat(Object(h.a)(t)),{"MuiDataGrid-withBorder":g,"MuiDataGrid-cell--editable":c}),D=p.useCallback((function(e){return function(t){if(!t.relatedTarget||!t.currentTarget.contains(t.relatedTarget)){var n=O.current.getCellParams(v,a||"");O.current.publishEvent(e,n,t)}}}),[O,a,v]),S=p.useCallback((function(e){return function(t){var n=O.current.getCellParams(v,a||"");O.current.publishEvent(e,n,t)}}),[O,a,v]),k=p.useCallback((function(e){return function(t){(1!==t.target.nodeType||t.currentTarget.contains(t.target))&&O.current.publishEvent(e,O.current.getCellParams(v,a||""),t)}}),[O,a,v]),A=p.useMemo((function(){return{onClick:k("cellClick"),onDoubleClick:k("cellDoubleClick"),onMouseDown:k("cellMouseDown"),onMouseUp:S("cellMouseUp"),onMouseOver:k("cellOver"),onMouseOut:k("cellOut"),onMouseEnter:k("cellEnter"),onMouseLeave:k("cellLeave"),onKeyDown:k("cellKeyDown"),onBlur:D("cellBlur"),onFocus:k("cellFocus"),onDragStart:k("cellDragStart"),onDragEnter:k("cellDragEnter"),onDragOver:k("cellDragOver")}}),[k,D,S]),T={minWidth:_,maxWidth:_,lineHeight:l-1+"px",minHeight:l,maxHeight:l};return p.useLayoutEffect((function(){var e=Object(m.a)(O.current.rootElementRef.current);if(u&&E.current&&(!e.activeElement||!E.current.contains(e.activeElement))){var t=E.current.querySelector('[tabindex="0"]');t?t.focus():E.current.focus()}})),p.createElement("div",Object.assign({ref:E,className:C,role:"cell","data-value":b,"data-field":a,"data-rowindex":d,"data-colindex":i,"data-rowselected":f,"data-editable":c,"data-mode":o,"aria-colindex":i+1,style:T,tabIndex:y},A),r||(null==x?void 0:x.toString()))}));function oe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function ae(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),i=e.field,o=(e.row,e.colDef),a=(e.cellMode,e.isEditable,e.hasFocus,e.getValue,oe(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","hasFocus","getValue"])),s=p.useState(n),u=Object(f.a)(s,2),l=u[0],c=u[1],d=p.useCallback((function(e){var n=e.target.value;c(n),r.setEditCellValue({id:t,field:i,value:n},e)}),[r,i,t]);return p.useEffect((function(){c(n)}),[n]),p.createElement(E.a,Object.assign({autoFocus:!0,className:"MuiDataGrid-editInputCell",fullWidth:!0,type:"number"===o.type?o.type:"text",value:l||"",onChange:d},a))}var se=p.memo((function(e){var t=e.width,n=e.height;return t&&n?p.createElement("div",{style:{minWidth:t,maxWidth:t,lineHeight:n-1+"px",minHeight:n,maxHeight:n},className:"MuiDataGrid-cell"}):null}));function ue(e,t){return e===t||e!=e&&t!=t}function le(e,t){for(var n=e.length;n--;)if(ue(e[n][0],t))return n;return-1}var ce=Array.prototype.splice;function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fe.prototype.clear=function(){this.__data__=[],this.size=0},fe.prototype.delete=function(e){var t=this.__data__,n=le(t,e);return!(n<0)&&(n==t.length-1?t.pop():ce.call(t,n,1),--this.size,!0)},fe.prototype.get=function(e){var t=this.__data__,n=le(t,e);return n<0?void 0:t[n][1]},fe.prototype.has=function(e){return le(this.__data__,e)>-1},fe.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var pe="object"==typeof e&&e&&e.Object===Object&&e,de="object"==typeof self&&self&&self.Object===Object&&self,he=pe||de||Function("return this")(),me=he.Symbol,ve=Object.prototype,ge=ve.hasOwnProperty,ye=ve.toString,be=me?me.toStringTag:void 0,_e=Object.prototype.toString,xe=me?me.toStringTag:void 0;function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xe&&xe in Object(e)?function(e){var t=ge.call(e,be),n=e[be];try{e[be]=void 0;var r=!0}catch(e){}var i=ye.call(e);return r&&(t?e[be]=n:delete e[be]),i}(e):function(e){return _e.call(e)}(e)}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){if(!Ee(e))return!1;var t=we(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Ce,De=he["__core-js_shared__"],Se=(Ce=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+Ce:"",ke=Function.prototype.toString;function Ae(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Te=/^\[object .+?Constructor\]$/,Pe=Function.prototype,Me=Object.prototype,je=Pe.toString,Ie=Me.hasOwnProperty,Fe=RegExp("^"+je.call(Ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||(t=e,Se&&Se in t))&&(Oe(e)?Fe:Te).test(Ae(e));var t}(n)?n:void 0}var Le=Re(he,"Map"),ze=Re(Object,"create"),Be=Object.prototype.hasOwnProperty,Ne=Object.prototype.hasOwnProperty;function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ve(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function He(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function We(e){var t=this.__data__=new fe(e);this.size=t.size}function Ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new He;++t<n;)this.add(e[t])}function qe(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function $e(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,p=2&n?new Ge:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var d=e[c],h=t[c];if(r)var m=a?r(h,d,c,t,e,o):r(d,h,c,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!qe(t,(function(e,t){if(a=t,!p.has(a)&&(d===e||i(d,e,n,r,o)))return p.push(t);var a}))){f=!1;break}}else if(d!==h&&!i(d,h,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}Ue.prototype.clear=function(){this.__data__=ze?ze(null):{},this.size=0},Ue.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ue.prototype.get=function(e){var t=this.__data__;if(ze){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Be.call(t,e)?t[e]:void 0},Ue.prototype.has=function(e){var t=this.__data__;return ze?void 0!==t[e]:Ne.call(t,e)},Ue.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ze&&void 0===t?"__lodash_hash_undefined__":t,this},He.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(Le||fe),string:new Ue}},He.prototype.delete=function(e){var t=Ve(this,e).delete(e);return this.size-=t?1:0,t},He.prototype.get=function(e){return Ve(this,e).get(e)},He.prototype.has=function(e){return Ve(this,e).has(e)},He.prototype.set=function(e,t){var n=Ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},We.prototype.clear=function(){this.__data__=new fe,this.size=0},We.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},We.prototype.get=function(e){return this.__data__.get(e)},We.prototype.has=function(e){return this.__data__.has(e)},We.prototype.set=function(e,t){var n=this.__data__;if(n instanceof fe){var r=n.__data__;if(!Le||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new He(r)}return n.set(e,t),this.size=n.size,this},Ge.prototype.add=Ge.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ge.prototype.has=function(e){return this.__data__.has(e)};var Ye=he.Uint8Array;function Ze(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Xe(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ke=me?me.prototype:void 0,Je=Ke?Ke.valueOf:void 0,Qe=Array.isArray,et=Object.prototype.propertyIsEnumerable,tt=Object.getOwnPropertySymbols,nt=tt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a)&&(o[i++]=a)}return o}(tt(e),(function(t){return et.call(e,t)})))}:function(){return[]};function rt(e){return null!=e&&"object"==typeof e}function it(e){return rt(e)&&"[object Arguments]"==we(e)}var ot=Object.prototype,at=ot.hasOwnProperty,st=ot.propertyIsEnumerable,ut=it(function(){return arguments}())?it:function(e){return rt(e)&&at.call(e,"callee")&&!st.call(e,"callee")},lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=lt&&"object"==typeof r&&r&&!r.nodeType&&r,ft=ct&&ct.exports===lt?he.Buffer:void 0,pt=(ft?ft.isBuffer:void 0)||function(){return!1},dt=/^(?:0|[1-9]\d*)$/;function ht(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&dt.test(e))&&e>-1&&e%1==0&&e<t}function mt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;var gt,yt="object"==typeof exports&&exports&&!exports.nodeType&&exports,bt=yt&&"object"==typeof r&&r&&!r.nodeType&&r,_t=bt&&bt.exports===yt&&pe.process,xt=function(){try{return _t&&_t.binding&&_t.binding("util")}catch(Ct){}}(),wt=xt&&xt.isTypedArray,Et=wt?(gt=wt,function(e){return gt(e)}):function(e){return rt(e)&&mt(e.length)&&!!vt[we(e)]},Ot=Object.prototype.hasOwnProperty;var Ct,Dt,St=Object.prototype,kt=(Ct=Object.keys,Dt=Object,function(e){return Ct(Dt(e))}),At=Object.prototype.hasOwnProperty;function Tt(e){return null!=(t=e)&&mt(t.length)&&!Oe(t)?function(e,t){var n=Qe(e),r=!n&&ut(e),i=!n&&!r&&pt(e),o=!n&&!r&&!i&&Et(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)!t&&!Ot.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ht(l,u))||s.push(l);return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||St))return kt(e);var t,n,r=[];for(var i in Object(e))At.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e);var t}function Pt(e){return function(e,t,n){var r=t(e);return Qe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Tt,nt)}var Mt=Object.prototype.hasOwnProperty,jt=Re(he,"DataView"),It=Re(he,"Promise"),Ft=Re(he,"Set"),Rt=Re(he,"WeakMap"),Lt=Ae(jt),zt=Ae(Le),Bt=Ae(It),Nt=Ae(Ft),Ut=Ae(Rt),Vt=we;(jt&&"[object DataView]"!=Vt(new jt(new ArrayBuffer(1)))||Le&&"[object Map]"!=Vt(new Le)||It&&"[object Promise]"!=Vt(It.resolve())||Ft&&"[object Set]"!=Vt(new Ft)||Rt&&"[object WeakMap]"!=Vt(new Rt))&&(Vt=function(e){var t=we(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ae(n):"";if(r)switch(r){case Lt:return"[object DataView]";case zt:return"[object Map]";case Bt:return"[object Promise]";case Nt:return"[object Set]";case Ut:return"[object WeakMap]"}return t});var Ht=Vt,Wt="[object Object]",Gt=Object.prototype.hasOwnProperty;function qt(e,t,n,r,i){return e===t||(null==e||null==t||!rt(e)&&!rt(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Qe(e),s=Qe(t),u=a?"[object Array]":Ht(e),l=s?"[object Array]":Ht(t),c=(u="[object Arguments]"==u?Wt:u)==Wt,f=(l="[object Arguments]"==l?Wt:l)==Wt,p=u==l;if(p&&pt(e)){if(!pt(t))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new We),a||Et(e)?$e(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Ye(e),new Ye(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ue(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ze;case"[object Set]":var u=1&r;if(s||(s=Xe),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=$e(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(Je)return Je.call(e)==Je.call(t)}return!1}(e,t,u,n,r,i,o);if(!(1&n)){var d=c&&Gt.call(e,"__wrapped__"),h=f&&Gt.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,v=h?t.value():t;return o||(o=new We),i(m,v,n,r,o)}}return!!p&&(o||(o=new We),function(e,t,n,r,i,o){var a=1&n,s=Pt(e),u=s.length;if(u!=Pt(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:Mt.call(t,c)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var d=a;++l<u;){var h=e[c=s[l]],m=t[c];if(r)var v=a?r(m,h,c,t,e,o):r(h,m,c,e,t,o);if(!(void 0===v?h===m||i(h,m,n,r,o):v)){p=!1;break}d||(d="constructor"==c)}if(p&&!d){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}(e,t,n,r,qt,i))}function $t(e,t){return qt(e,t)}function Yt(e){return Object(v.a)(e)}var Zt="undefined"!=typeof window?p.useLayoutEffect:p.useEffect;function Xt(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e}),[]).join(" ")})),r}var Kt={active:"Mui-active",checked:"Mui-checked",disabled:"Mui-disabled",error:"Mui-error",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",expanded:"Mui-expanded",selected:"Mui-selected"};function Jt(e,t){return Kt[t]||"".concat(e,"-").concat(t)}function Qt(e){return"function"==typeof e}function en(e){return e.type||e.mode}function tn(){return"fade"in O?"fade"in O&&"alpha"in O?"v4.12":"v4":"v5"}function nn(e,t){var n,r,i;return(null===(n=O)||void 0===n?void 0:n.alpha)?null===(r=O)||void 0===r?void 0:r.alpha(e,t):null===(i=O)||void 0===i?void 0:i.fade(e,t)}function rn(){var e,t,n;return(null===(e=O)||void 0===e?void 0:e.createTheme)?null===(t=O)||void 0===t?void 0:t.createTheme():null===(n=O)||void 0===n?void 0:n.createMuiTheme()}function on(){try{var e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(Ct){return!1}}function an(e){return Jt("MuiDataGrid",e)}function sn(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var un=p.memo((function(e){var t=e.columns,n=e.firstColIdx,r=e.hasScrollX,i=e.hasScrollY,o=e.height,a=e.id,s=e.getCellClassName,u=e.lastColIdx,l=e.rowIndex,c=e.cellFocus,f=e.cellTabIndex,d=e.showCellRightBorder,h=e.isSelected,m=e.editRowState,v=e.cellClassName,g=oe(e,["columns","firstColIdx","hasScrollX","hasScrollY","height","id","getCellClassName","lastColIdx","rowIndex","cellFocus","cellTabIndex","showCellRightBorder","isSelected","editRowState","cellClassName"]),y=re(),b=t.slice(n,u+1).map((function(u,p){var b=n+p,_=b===t.length-1,x=_?!(_&&r&&!i)&&!e.extendRowFullWidth:d,E=y.current.getCellParams(a,u.field),O=[v];u.cellClassName&&O.push(Object(w.a)(Qt(u.cellClassName)?u.cellClassName(E):u.cellClassName));var C=m&&m[u.field],D=null;if(null==C&&u.renderCell&&(D=u.renderCell(E),O.push("MuiDataGrid-cell--withRenderer")),null!=C&&u.renderEditCell){var S=Object.assign(Object.assign({},E),C);D=u.renderEditCell(S),O.push("MuiDataGrid-cell--editing")}return s&&O.push(s(E)),Object.assign({value:E.value,field:u.field,width:u.width,rowId:a,height:o,showRightBorder:x,formattedValue:E.formattedValue,align:u.align||"left",rowIndex:l,cellMode:E.cellMode,colIndex:b,children:D,isEditable:E.isEditable,isSelected:h,hasFocus:null!==c&&c.id===a&&c.field===u.field,tabIndex:null!==f&&f.id===a&&f.field===u.field?0:-1,className:Object(w.a)(O)},g)}));return p.createElement(p.Fragment,null,b.map((function(e){return p.createElement(ie,Object.assign({key:e.field},e))})))})),ln=p.createContext(void 0),cn=function(e){return e.options},fn=Object(S.a)((function(e){var t="light"===en(e.palette)?Object(C.j)(nn(e.palette.divider,1),.88):Object(C.b)(nn(e.palette.divider,1),.68),n={root:Object.assign(Object.assign({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid ".concat(t),borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2),{outline:"none",height:"100%",display:"flex",flexDirection:"column","& *, & *::before, & *::after":{boxSizing:"inherit"},"&.MuiDataGrid-autoHeight":{height:"auto"},"& .MuiDataGrid-main":{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},"& .MuiDataGrid-overlay":{display:"flex",position:"absolute",top:0,left:0,right:0,bottom:0,alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:nn(e.palette.background.default,e.palette.action.disabledOpacity)},"& .MuiDataGrid-toolbarContainer":{display:"flex",alignItems:"center",padding:"4px 4px 0"},"& .MuiDataGrid-columnsContainer":{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",flexDirection:"column",borderBottom:"1px solid ".concat(t)},"& .MuiDataGrid-scrollArea":{position:"absolute",top:0,zIndex:101,width:20,bottom:0},"& .MuiDataGrid-scrollArea--left":{left:0},"& .MuiDataGrid-scrollArea--right":{right:0},"& .MuiDataGrid-columnHeaderWrapper":{display:"flex",width:"100%",alignItems:"center",overflow:"hidden"},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px"},"& .MuiDataGrid-columnHeader:focus-within, & .MuiDataGrid-cell:focus-within":{outline:"solid ".concat(nn(e.palette.primary.main,.5)," 1px"),outlineWidth:1,outlineOffset:-1},"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-cell:focus":{outline:"solid ".concat(e.palette.primary.main," 1px")},"& .MuiDataGrid-columnHeaderCheckbox, & .MuiDataGrid-cellCheckbox":{padding:0,justifyContent:"center",alignItems:"center"},"& .MuiDataGrid-columnHeader":{position:"relative",display:"flex",alignItems:"center"},"& .MuiDataGrid-columnHeader:not(.MuiDataGrid-columnHeader--sorted) .MuiDataGrid-sortIcon":{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},"& .MuiDataGrid-columnHeader:not(.MuiDataGrid-columnHeader--sorted):hover .MuiDataGrid-sortIcon":{opacity:.5},"& .MuiDataGrid-columnHeaderTitleContainer":{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",padding:"0 6px"},"& .MuiDataGrid-sortIcon, & .MuiDataGrid-filterIcon":{fontSize:"inherit"},"& .MuiDataGrid-columnHeader--sortable":{cursor:"pointer"},"& .MuiDataGrid-columnHeader--alignCenter .MuiDataGrid-columnHeaderTitleContainer":{justifyContent:"center"},"& .MuiDataGrid-columnHeader--alignRight .MuiDataGrid-columnHeaderDraggableContainer, & .MuiDataGrid-columnHeader--alignRight .MuiDataGrid-columnHeaderTitleContainer":{flexDirection:"row-reverse"},"& .MuiDataGrid-columnHeader--alignCenter .MuiDataGrid-menuIcon, & .MuiDataGrid-columnHeader--alignRight .MuiDataGrid-menuIcon":{marginRight:"auto",marginLeft:-6},"& .MuiDataGrid-columnHeaderTitle":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.action.hover},"& .MuiDataGrid-columnSeparator":{position:"absolute",right:-12,zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"& .MuiDataGrid-columnSeparator--resizable":{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},"&.Mui-resizing":{color:e.palette.text.primary}},"& .MuiDataGrid-iconSeparator":{color:"inherit"},"& .MuiDataGrid-menuIcon":{visibility:"hidden",fontSize:20,marginRight:-6,display:"flex",alignItems:"center"},"& .MuiDataGrid-columnHeader:hover .MuiDataGrid-menuIcon, .MuiDataGrid-menuOpen":{visibility:"visible"},"& .MuiDataGrid-columnHeaderWrapper.scroll .MuiDataGrid-columnHeader:last-child":{borderRight:"none"},"& .MuiDataGrid-dataContainer":{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},"& .MuiDataGrid-window":{position:"absolute",bottom:0,left:0,right:0,overflowX:"auto"},"& .MuiDataGrid-viewport":{position:"sticky",top:0,left:0,display:"flex",flexDirection:"column",overflow:"hidden"},"& .MuiDataGrid-row":{display:"flex",width:"fit-content","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:nn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:nn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:nn(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},"& .MuiDataGrid-cell":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(t)},"& .MuiDataGrid-cell.MuiDataGrid-cell--editing":{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:"solid ".concat(e.palette.primary.main," 1px"),outlineOffset:"-1px"}},"& .MuiDataGrid-editInputCell":Object.assign(Object.assign({},e.typography.body2),{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),"& .MuiDataGrid-editBooleanCell":{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},'& .MuiDataGrid-booleanCell[data-value="true"]':{color:e.palette.text.secondary},'& .MuiDataGrid-booleanCell[data-value="false"]':{color:e.palette.text.disabled},"& .MuiDataGrid-columnHeaderWrapper .MuiDataGrid-cell":{borderBottom:"none"},"& .MuiDataGrid-cell--withRenderer":{display:"flex",alignItems:"center"},"& .MuiDataGrid-withBorder":{borderRight:"1px solid ".concat(t)},"& .MuiDataGrid-cell--textLeft":{textAlign:"left"},"& .MuiDataGrid-cell--textLeft.MuiDataGrid-cell--withRenderer, & .MuiDataGrid-cell--textLeft.MuiDataGrid-cell--editing":{justifyContent:"flex-start"},"& .MuiDataGrid-cell--textRight":{textAlign:"right"},"& .MuiDataGrid-cell--textRight.MuiDataGrid-cell--withRenderer, & .MuiDataGrid-cell--textRight.MuiDataGrid-cell--editing":{justifyContent:"flex-end"},"& .MuiDataGrid-cell--textCenter":{textAlign:"center"},"& .MuiDataGrid-cell--textCenter.MuiDataGrid-cell--withRenderer, & .MuiDataGrid-cell--textCenter.MuiDataGrid-cell--editing":{justifyContent:"center"},"& .MuiDataGrid-rowCount, & .MuiDataGrid-selectedRowCount":{alignItems:"center",display:"flex",margin:e.spacing(0,2)},"& .MuiDataGrid-footerContainer":{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,"& .MuiDataGrid-selectedRowCount":Object(c.a)({visibility:"hidden",width:0,height:0},e.breakpoints.up("sm"),{visibility:"visible",width:"auto",height:"auto"})},"& .MuiDataGrid-columnHeaderDropZone .MuiDataGrid-columnHeaderDraggableContainer":{cursor:"move"},"& .MuiDataGrid-columnHeaderDraggableContainer":{display:"flex",width:"100%"},"& .MuiDataGrid-columnHeader--dragging":{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity}})};if("dark"===en(e.palette)){var r="#202022",i="#838384";n.root=Object.assign(Object.assign({},n.root),{scrollbarColor:"".concat("#585859"," ").concat(r),"& *::-webkit-scrollbar":{backgroundColor:r},"& *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#585859",minHeight:24,border:"3px solid ".concat(r)},"& *::-webkit-scrollbar-thumb:focus":{backgroundColor:i},"& *::-webkit-scrollbar-thumb:active":{backgroundColor:i},"& *::-webkit-scrollbar-thumb:hover":{backgroundColor:i},"& *::-webkit-scrollbar-corner":{backgroundColor:r}})}return n}),{name:"MuiDataGrid",defaultTheme:rn()}),pn=function(e){return e.columns.lookup},dn=Object(T.a)((function(e){return e.columns.all}),pn,(function(e,t){return e.map((function(e){return t[e]}))})),hn=Object(T.a)(dn,(function(e){return e.filter((function(e){return null!=e.field&&!e.hide}))})),mn=Object(T.a)(hn,(function(e){var t=[];return{totalWidth:e.reduce((function(e,n){return t.push(e),e+n.width}),0),positions:t}})),vn=Object(T.a)(dn,(function(e){return e.filter((function(e){return e.filterable}))})),gn=Object(T.a)(vn,(function(e){return e.map((function(e){return e.field}))})),yn=Object(T.a)(hn,(function(e){return e.length})),bn=Object(T.a)(mn,(function(e){return e.totalWidth})),_n=on()&&null!=window.localStorage.getItem("DEBUG"),xn=function(){},wn={debug:xn,info:xn,warn:xn,error:xn},En=["debug","info","warn","error"];function On(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console,r=En.indexOf(t);if(-1===r)throw new Error("Material-UI: Log level ".concat(t," not recognized."));return En.reduce((function(t,i,o){return t[i]=o>=r?function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=r[0],s=r.slice(1);n[i].apply(n,["Material-UI: ".concat(e," - ").concat(a)].concat(Object(l.a)(s)))}:xn,t}),{})}var Cn,Dn=function(e){return function(t){return On(t,e)}};function Sn(e){return p.useRef(Cn?Cn(e):wn).current}function kn(e,t,n){var r=Sn("useGridApiMethod"),i=p.useRef(t),o=p.useState(Object.keys(t)),a=Object(f.a)(o,1)[0],s=p.useCallback((function(){e.current&&a.forEach((function(t){e.current.hasOwnProperty(t)||(r.debug("Adding ".concat(n,".").concat(t," to apiRef")),e.current[t]=function(){var e;return(e=i.current)[t].apply(e,arguments)})}))}),[a,n,e,r]);p.useEffect((function(){i.current=t}),[t]),p.useEffect((function(){s()}),[s]),s()}var An={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelOperators:"Operators",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" rows selected":" row selected")},footerTotalRows:"Total Rows:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," of ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox selection",booleanCellTrueLabel:"true",booleanCellFalseLabel:"false",MuiTablePagination:{}},Tn=function(e,t){var n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},Pn=function(e,t){return null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null},Mn=new Intl.Collator,jn=function(e,t){var n=Pn(e,t);return null!==n?n:Number(e)-Number(t)},In=function(e,t){var n=Pn(e,t);return null!==n?n:e>t?1:e<t?-1:0},Fn=Object(g.a)(p.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Rn=Object(g.a)(p.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Ln=Object(g.a)(p.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),zn=Object(g.a)(p.createElement("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Bn=(Object(g.a)(p.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Object(g.a)(p.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Object(g.a)(p.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),Object(g.a)(p.createElement("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),Nn=Object(g.a)(p.createElement("path",{d:"M11 19V5h2v14z"}),"Separator"),Un=Object(g.a)(p.createElement("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Vn=Object(g.a)(p.createElement("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Hn=Object(g.a)(p.createElement("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Wn=Object(g.a)(p.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Gn=Object(g.a)(p.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),qn=Object(g.a)(p.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),$n=Object(g.a)(p.createElement("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Yn=Object(g.a)(p.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Zn=Object(g.a)(p.createElement("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Xn=Object(g.a)(p.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Kn=function(e){var t=e.valueOptions;return[""].concat(Object(l.a)(t)).map((function(e){return"object"==typeof e?p.createElement("option",{key:e.value,value:e.value},e.label):p.createElement("option",{key:e,value:e},e)}))};function Jn(e){var t=e.item,n=e.applyValue,r=e.type,i=e.apiRef,o=oe(e,["item","applyValue","type","apiRef"]),a=p.useRef(),s=p.useState(t.value||""),u=Object(f.a)(s,2),l=u[0],c=u[1],d=p.useState(!1),h=Object(f.a)(d,2),m=h[0],v=h[1],g=Object(y.a)(),b="singleSelect"===r?{select:!0,SelectProps:{native:!0},children:Kn(i.current.getColumn(t.columnField))}:{},_=p.useCallback((function(e){var o=e.target.value;if("singleSelect"===r){var s=i.current.getColumn(t.columnField);o=s.valueOptions.map((function(e){return"object"==typeof e?e.value:e})).find((function(e){return String(e)===o}))}clearTimeout(a.current),c(o),v(!0),a.current=setTimeout((function(){n(Object.assign(Object.assign({},t),{value:o})),v(!1)}),500)}),[i,n,t,r]);p.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),p.useEffect((function(){c(t.value||"")}),[t.value]);var x=m?{endAdornment:p.createElement($n,null)}:o.InputProps;return p.createElement(P.a,Object.assign({id:g,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:l,onChange:_,type:r||"text",variant:"standard",InputProps:x,InputLabelProps:{shrink:!0}},b,o))}var Qn={width:100,minWidth:50,hide:!1,sortable:!0,resizable:!0,filterable:!0,sortComparator:function(e,t){var n=Pn(e,t);return null!==n?n:"string"==typeof e?Mn.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:[{value:"contains",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp(sn(e.value),"i");return function(e){var n=e.value;return t.test(n&&n.toString()||"")}},InputComponent:Jn},{value:"equals",getApplyFilterFn:function(e){if(!e.value)return null;var t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(n){var r=n.value;return 0===t.compare(e.value,r&&r.toString()||"")}},InputComponent:Jn},{value:"startsWith",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp("^".concat(sn(e.value),".*$"),"i");return function(e){var n=e.value;return t.test(n&&n.toString()||"")}},InputComponent:Jn},{value:"endsWith",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp(".*".concat(sn(e.value),"$"),"i");return function(e){var n=e.value;return t.test(n&&n.toString()||"")}},InputComponent:Jn},{value:"isEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""===t||null==t}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""!==t&&null!=t}}}],renderEditCell:function(e){return p.createElement(ae,Object.assign({},e))}},er=Object.assign(Object.assign({},Qn),{type:"number",align:"right",headerAlign:"right",sortComparator:jn,valueParser:function(e){return Number(e)},valueFormatter:function(e){var t=e.value;return t&&function(e){return"number"==typeof e}(t)&&t.toLocaleString()||t},filterOperators:[{label:"=",value:"=",getApplyFilterFn:function(e){return e.value?function(t){var n=t.value;return Number(n)===e.value}:null},InputComponent:Jn,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:function(e){return e.value?function(t){var n=t.value;return Number(n)!==e.value}:null},InputComponent:Jn,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:function(e){return e.value?function(t){var n=t.value;return Number(n)>e.value}:null},InputComponent:Jn,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:function(e){return e.value?function(t){var n=t.value;return Number(n)>=e.value}:null},InputComponent:Jn,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:function(e){return e.value?function(t){var n=t.value;return Number(n)<e.value}:null},InputComponent:Jn,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:function(e){return e.value?function(t){var n=t.value;return Number(n)<=e.value}:null},InputComponent:Jn,InputComponentProps:{type:"number"}}]}),tr=/(\d+)-(\d+)-(\d+)/,nr=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function rr(e,t,n,r){if(!e.value)return null;var i=e.value.match(n?nr:tr).slice(1).map(Number),o=Object(f.a)(i,5),a=o[0],s=o[1],u=o[2],l=o[3],c=o[4],p=new Date(a,s-1,u,l||0,c||0).getTime();return function(e){var i=e.value;if(!i)return!1;var o=i instanceof Date?i:new Date(i.toString());if(r)return t(o.getTime(),p);var a=(i instanceof Date?new Date(o):o).setHours(n?o.getHours():0,n?o.getMinutes():0,0,0);return t(a,p)}}var ir=function(e){return[{value:"is",getApplyFilterFn:function(t){return rr(t,(function(e,t){return e===t}),e)},InputComponent:Jn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:function(t){return rr(t,(function(e,t){return e!==t}),e)},InputComponent:Jn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:function(t){return rr(t,(function(e,t){return e>t}),e)},InputComponent:Jn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:function(t){return rr(t,(function(e,t){return e>=t}),e)},InputComponent:Jn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:function(t){return rr(t,(function(e,t){return e<t}),e,!e)},InputComponent:Jn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:function(t){return rr(t,(function(e,t){return e<=t}),e)},InputComponent:Jn,InputComponentProps:{type:e?"datetime-local":"date"}}]};function or(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),i=e.field,o=(e.row,e.colDef),a=(e.cellMode,e.isEditable,e.hasFocus,e.getValue,oe(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","hasFocus","getValue"])),s=p.useState(n),u=Object(f.a)(s,2),l=u[0],c=u[1],d=p.useCallback((function(e){var n=e.target.value;if(c(n),""!==n){var o=n.split("T"),a=Object(f.a)(o,2),s=a[0],u=a[1],l=s.split("-"),p=Object(f.a)(l,3),d=p[0],h=p[1],m=p[2],v=new Date;if(v.setFullYear(Number(d)),v.setMonth(Number(h)-1),v.setDate(Number(m)),v.setHours(0,0,0,0),u){var g=u.split(":"),y=Object(f.a)(g,2),b=y[0],_=y[1];v.setHours(Number(b),Number(_),0,0)}r.setEditCellValue({id:t,field:i,value:v},e)}else r.setEditCellValue({id:t,field:i,value:null},e)}),[r,i,t]),h="dateTime"===o.type;p.useEffect((function(){c(n)}),[n]);var m=l||"";if(l instanceof Date){var v=l.getTimezoneOffset();m=new Date(l.getTime()-60*v*1e3).toISOString().substr(0,h?16:10)}return p.createElement(E.a,Object.assign({autoFocus:!0,fullWidth:!0,className:"MuiDataGrid-editInputCell",type:h?"datetime-local":"date",value:m,onChange:d},a))}var ar=function(e){return p.createElement(or,Object.assign({},e))};var sr=Object.assign(Object.assign({},Qn),{type:"date",sortComparator:In,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleDateString():t},filterOperators:ir(),renderEditCell:ar}),ur=Object.assign(Object.assign({},Qn),{type:"dateTime",sortComparator:In,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleString():t},filterOperators:ir(!0),renderEditCell:ar}),lr=p.memo((function(e){e.id;var t=e.value,n=(e.formattedValue,e.api),r=(e.field,e.row,e.colDef,e.cellMode,e.isEditable,e.hasFocus,e.tabIndex,e.getValue,oe(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"])),i=p.useMemo((function(){return t?n.components.BooleanCellTrueIcon:n.components.BooleanCellFalseIcon}),[n.components.BooleanCellFalseIcon,n.components.BooleanCellTrueIcon,t]);return p.createElement(i,Object.assign({fontSize:"small",className:"MuiDataGrid-booleanCell",titleAccess:n.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}));function cr(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),i=e.field,o=(e.row,e.colDef,e.cellMode,e.isEditable,e.className),a=(e.getValue,e.hasFocus,oe(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","className","getValue","hasFocus"])),s=Object(y.a)(),u=p.useState(n),l=Object(f.a)(u,2),c=l[0],d=l[1],h=p.useCallback((function(e){var n=e.target.checked;d(n),r.setEditCellValue({id:t,field:i,value:n},e)}),[r,i,t]);return p.useEffect((function(){d(n)}),[n]),p.createElement("label",Object.assign({htmlFor:s,className:Object(w.a)("MuiDataGrid-editBooleanCell",o)},a),p.createElement(M.a,{autoFocus:!0,id:s,checked:Boolean(c),onChange:h,size:"small"}))}var fr=Object.assign(Object.assign({},Qn),{type:"boolean",align:"center",headerAlign:"center",renderCell:function(e){return p.createElement(lr,Object.assign({},e))},renderEditCell:function(e){return p.createElement(cr,Object.assign({},e))},sortComparator:jn,filterOperators:[{value:"is",getApplyFilterFn:function(e){if(!e.value)return null;var t="true"===e.value;return function(e){var n=e.value;return Boolean(n)===t}},InputComponent:function(e){var t=e.item,n=e.applyValue,r=e.apiRef,i=oe(e,["item","applyValue","apiRef"]),o=p.useState(t.value||""),a=Object(f.a)(o,2),s=a[0],u=a[1],l=p.useCallback((function(e){var r=e.target.value;u(r),n(Object.assign(Object.assign({},t),{value:r}))}),[n,t]);return p.useEffect((function(){u(t.value||"")}),[t.value]),p.createElement(P.a,Object.assign({label:r.current.getLocaleText("filterPanelInputLabel"),value:s,onChange:l,variant:"standard",select:!0,SelectProps:{native:!0},InputLabelProps:{shrink:!0}},i),p.createElement("option",{value:""},r.current.getLocaleText("filterValueAny")),p.createElement("option",{value:"true"},r.current.getLocaleText("filterValueTrue")),p.createElement("option",{value:"false"},r.current.getLocaleText("filterValueFalse")))}}]}),pr=function(e){return"Escape"===e},dr=function(e){return"Enter"===e},hr=function(e){return"Tab"===e},mr=function(e){return" "===e},vr=function(e){return 0===e.indexOf("Arrow")},gr=function(e){return"Home"===e||"End"===e},yr=function(e){return 0===e.indexOf("Page")},br=function(e){return"Delete"===e||"Backspace"===e},_r=/^((?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])|(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])|[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA])|(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDFFF]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]))$/i,xr=function(e){return _r.test(e)},wr=["Enter","Escape","Tab"],Er=["Enter","Tab"],Or=function(e){return Er.indexOf(e)>-1},Cr=function(e){return gr(e)||vr(e)||yr(e)||mr(e)},Dr=function(e){return!!e.key},Sr=function(e){return hr(e)||pr(e)},kr=function(e){return"object"==typeof e?p.createElement(I.a,{key:e.value,value:e.value},e.label):p.createElement(I.a,{key:e,value:e},e)};function Ar(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),i=e.field,o=(e.row,e.colDef),a=(e.cellMode,e.isEditable,e.className,e.getValue,e.hasFocus,oe(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","className","getValue","hasFocus"]));return p.createElement(j.a,Object.assign({value:n,onChange:function(e){r.setEditCellValue({id:t,field:i,value:e.target.value},e),e.key||(r.commitCellChange({id:t,field:i},e),r.setCellMode(t,i,"view"))},MenuProps:{onClose:function(e,n){("backdropClick"===n||pr(e.key))&&r.setCellMode(t,i,"view")}},autoFocus:!0,fullWidth:!0,open:!0},a),o.valueOptions.map(kr))}var Tr,Pr=Object.assign(Object.assign({},Qn),{type:"singleSelect",renderEditCell:function(e){return p.createElement(Ar,Object.assign({},e))},filterOperators:[{value:"is",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return"object"==typeof n?e.value===n.value:e.value===n}},InputComponent:Jn,InputComponentProps:{type:"singleSelect"}},{value:"not",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return"object"==typeof n?e.value!==n.value:e.value!==n}},InputComponent:Jn,InputComponentProps:{type:"singleSelect"}}]}),Mr=function(){var e={string:Qn,number:er,date:sr,dateTime:ur,boolean:fr,singleSelect:Pr};return e.__default__=Qn,e};!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(Tr||(Tr={}));var jr,Ir="client",Fr="server",Rr={columnBuffer:2,columnTypes:Mr(),density:Tr.Standard,filterMode:Ir,headerHeight:56,localeText:An,paginationMode:Ir,rowHeight:52,rowsPerPageOptions:[25,50,100],scrollEndThreshold:80,sortingMode:Ir,sortingOrder:["asc","desc",null],logger:console,logLevel:"error"};!function(e){e.And="and",e.Or="or"}(jr||(jr={}));var Lr=function(){return{items:[],linkOperator:jr.And}};var zr=function(e){var t=Sn("useGridApi"),n=p.useState(),r=Object(f.a)(n,2)[1];e.current.state||(t.info("Initialising state."),e.current.state={rows:{idRowsLookup:{},allRows:[],totalRowCount:0},editRows:{},pagination:{page:0,pageCount:0,rowCount:0,pageSize:100},options:Rr,isScrolling:!1,columns:{all:[],lookup:{}},columnReorder:{dragCol:""},columnResize:{resizingColumnField:""},rendering:{realScroll:{left:0,top:0},renderContext:null,renderingZoneScroll:{left:0,top:0},virtualPage:0,virtualRowsCount:0,renderedSizes:null},containerSizes:null,scrollBar:{hasScrollX:!1,hasScrollY:!1,scrollBarSize:{x:0,y:0}},viewportSizes:{width:0,height:1},sorting:{sortedRows:[],sortModel:[]},focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null},selection:[],filter:Lr(),columnMenu:{open:!1},preferencePanel:{open:!1},visibleRows:{visibleRowsLookup:{}},density:{value:Rr.density,rowHeight:Rr.rowHeight,headerHeight:Rr.headerHeight}},e.current.forceUpdate=r);var i=p.useCallback((function(){return e.current.state}),[e]),o=p.useCallback((function(t){var n;n=Qt(t)?t(e.current.state):t,e.current.state=n,r((function(){return n}));var i={api:e.current,state:n};e.current.publishEvent("stateChange",i)}),[e]);return kn(e,{getState:i,setState:o},"GridStateApi"),e.current},Br=function(e){zr(e);var t=p.useCallback((function(){return e.current.forceUpdate((function(){return e.current.state}))}),[e]),n=p.useCallback((function(t){var n=t(e.current.state),r=e.current.state!==n;if(!r)return e.current.state=n,!1;var i=e.current.applyControlStateConstraint(n),o=i.shouldUpdate,a=i.postUpdate;if(!o)return!1;if(e.current.state=n,r&&e.current.publishEvent){var s={api:e.current,state:n};e.current.publishEvent("stateChange",s),a()}return r}),[e]);return[e.current.state,n,t]},Nr=function(e,t){var n=Br(e);return t(Object(f.a)(n,1)[0])},Ur=p.forwardRef((function(e,t){var n,r=fn(),i=re(),o=p.useContext(ln),a=e.children,s=e.className,u=oe(e,["children","className"]),l=Nr(i,yn),c=Br(i),d=Object(f.a)(c,1)[0],h=Nr(i,cn),m=p.useRef(null),v=Object(b.a)(m,t);return i.current.rootElementRef=m,p.createElement(A.a,null,p.createElement("div",Object.assign({ref:v,className:Object(w.a)(r.root,null===(n=h.classes)||void 0===n?void 0:n.root,o.className,s,{"MuiDataGrid-autoHeight":d.options.autoHeight}),role:"grid","aria-colcount":l,"aria-rowcount":d.rows.totalRowCount,"aria-multiselectable":!d.options.disableMultipleSelection,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],style:o.style},u),a))})),Vr=function(e){return e.density},Hr=Object(T.a)(Vr,(function(e){return e.value})),Wr=Object(T.a)(Vr,(function(e){return e.rowHeight})),Gr=Object(T.a)(Vr,(function(e){return e.headerHeight})),qr=p.forwardRef((function(e,t){var n=e.className,r=e.style,i=oe(e,["className","style"]),o=re(),a=Nr(o,Gr);return p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-columnsContainer",n)},i,{style:Object.assign({minHeight:a,maxHeight:a,lineHeight:"".concat(a,"px")},r)}))})),$r=function(e){return e.containerSizes},Yr=function(e){return e.viewportSizes},Zr=function(e){return e.scrollBar},Xr=Object(T.a)($r,(function(e){return null==e?null:e.dataContainerSizes})),Kr=Object(T.a)($r,(function(e){return null==e?0:e.dataContainerSizes.height}));function Jr(e){var t=e.className,n=oe(e,["className"]),r=re(),i=Nr(r,Xr),o={minWidth:null==i?void 0:i.width,minHeight:null==i?void 0:i.height};return p.createElement("div",Object.assign({className:Object(w.a)("MuiDataGrid-dataContainer",t),style:o},n))}var Qr=p.forwardRef((function(e,t){var n=e.className,r=oe(e,["className"]);return p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-footerContainer",n)},r))})),ei=p.forwardRef((function(e,t){var n=e.className,r=e.style,i=oe(e,["className","style"]),o=re(),a=Nr(o,Gr);return p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-overlay",n),style:Object.assign({top:a},r)},i))})),ti=p.forwardRef((function(e,t){var n=e.className,r=e.size,i=oe(e,["className","size"]),o=re(),a=Nr(o,cn).autoHeight,s=Nr(o,Gr),u=Nr(o,Wr),l=Nr(o,Kr);p.useEffect((function(){o.current.resize()}),[o]);var c=p.useMemo((function(){return a?s+(l<u?2*u:l):r.height}),[a,l,s,u,r.height]);return p.createElement("div",{className:"MuiDataGrid-windowContainer",style:{width:r.width,height:c}},p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-window",n)},i,{style:{top:s,overflowY:a?"hidden":"auto"}})))})),ni=p.forwardRef((function(e,t){var n=e.className,r=e.children,i=oe(e,["className","children"]);return r?p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-toolbarContainer",n)},i),r):null})),ri=p.forwardRef((function(e,t){var n,r=e.field,i=e.id,o=e.value,a=e.tabIndex,s=e.hasFocus,u=re(),l=Nr(u,cn),c=p.useRef(null),f=Object(b.a)(c,t),d=e.api.getCellElement(i,r);p.useLayoutEffect((function(){0===a&&d&&(d.tabIndex=-1)}),[d,a]),p.useLayoutEffect((function(){s&&c.current&&c.current.querySelector("input").focus()}),[s]);var h=p.useCallback((function(t){mr(t.key)&&t.stopPropagation(),Cr(t.key)&&!t.shiftKey&&u.current.publishEvent("cellNavigationKeyDown",e,t)}),[u,e]),m=null==u?void 0:u.current.components.Checkbox,v=!l.isRowSelectable||l.isRowSelectable(u.current.getRowParams(i));return p.createElement(m,Object.assign({ref:f,tabIndex:a,checked:!!o,onChange:function(e){u.current.selectRow(i,e.target.checked,!0)},onClick:function(e){e.stopPropagation()},className:"MuiDataGrid-checkboxInput",color:"primary",inputProps:{"aria-label":"Select Row checkbox"},onKeyDown:h,disabled:!v},null===(n=null==u?void 0:u.current.componentsProps)||void 0===n?void 0:n.checkbox))})),ii=p.memo(ri),oi=function(e){return e.rows},ai=Object(T.a)(oi,(function(e){return e&&e.totalRowCount})),si=Object(T.a)(oi,(function(e){return e&&e.idRowsLookup})),ui=Object(T.a)(oi,(function(e){return e.allRows})),li=(Object(T.a)(oi,(function(e){return e.allRows.map((function(t){return e.idRowsLookup[t]}))})),function(e){return e.sorting}),ci=Object(T.a)(li,ui,(function(e,t){return e.sortedRows.length?e.sortedRows:t})),fi=Object(T.a)(ci,si,(function(e,t){var n=new Map;return e.forEach((function(e){n.set(e,t[e])})),n})),pi=Object(T.a)(li,(function(e){return e.sortModel})),di=Object(T.a)(pi,(function(e){return e.reduce((function(t,n,r){return t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t}),{})})),hi=function(e){return e.visibleRows},mi=Object(T.a)(hi,fi,(function(e,t){var n=new Map;return t.forEach((function(t,r){!1!==e.visibleRowsLookup[r]&&n.set(r,t)})),n})),vi=Object(T.a)(mi,(function(e){return Object(l.a)(e.entries())})),gi=Object(T.a)(mi,(function(e){return Object(l.a)(e.keys())})),yi=Object(T.a)(hi,ai,(function(e,t){return null==e.visibleRows?t:e.visibleRows.length})),bi=Object(T.a)((function(e){return e.filter}),pn,(function(e,t){var n;return null===(n=e.items)||void 0===n?void 0:n.filter((function(e){var n,r;if(!e.columnField)return!1;var i=t[e.columnField];if(!(null==i?void 0:i.filterOperators)||0===(null===(n=null==i?void 0:i.filterOperators)||void 0===n?void 0:n.length))return!1;var o=i.filterOperators.find((function(t){return t.value===e.operatorValue}));return!!o&&(!o.InputComponent||null!=e.value&&""!==(null===(r=e.value)||void 0===r?void 0:r.toString()))}))})),_i=Object(T.a)(bi,(function(e){return e.length})),xi=Object(T.a)(bi,(function(e){return e.reduce((function(e,t){return e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e}),{})})),wi=function(e){return e.pagination},Ei=Object(T.a)(wi,gi,(function(e,t){var n=e.page*e.pageSize,r=n+e.pageSize;return t.slice(n,r)})),Oi=function(e){return e.focus},Ci=Object(T.a)(Oi,(function(e){return e.cell})),Di=Object(T.a)(Oi,(function(e){return e.columnHeader})),Si=function(e){return e.tabIndex},ki=Object(T.a)(Si,(function(e){return e.cell})),Ai=Object(T.a)(Si,(function(e){return e.columnHeader})),Ti=function(e){return e.selection},Pi=Object(T.a)(Ti,(function(e){return e.length})),Mi=Object(T.a)(Ti,si,(function(e,t){return new Map(e.map((function(e){return[e,t[e]]})))})),ji=Object(T.a)(Ti,(function(e){return e.reduce((function(e,t){return e[t]=t,e}),{})})),Ii=p.forwardRef((function(e,t){var n,r=p.useState(!1),i=Object(f.a)(r,2)[1],o=re(),a=Nr(o,cn),s=Nr(o,Ai),u=Nr(o,Pi),l=Nr(o,ai),c=u>0&&u!==l,d=u>0&&u===l||c,h=null!==s&&s.field===e.field?0:-1;p.useLayoutEffect((function(){var t=o.current.getColumnHeaderElement(e.field);0===h&&t&&(t.tabIndex=-1)}),[h,o,e.field]);var m=p.useCallback((function(t){mr(t.key)&&t.stopPropagation(),Cr(t.key)&&!t.shiftKey&&o.current.publishEvent("columnHeaderNavigationKeyDown",e,t)}),[o,e]),v=p.useCallback((function(){i((function(e){return!e}))}),[]);p.useEffect((function(){return null==o?void 0:o.current.subscribeEvent("selectionChange",v)}),[o,v]);var g=null==o?void 0:o.current.components.Checkbox;return p.createElement(g,Object.assign({ref:t,indeterminate:c,checked:d,onChange:function(e){var t=e.target.checked,n=a.checkboxSelectionVisibleOnly?Ei(o.current.getState()):gi(o.current.getState());o.current.selectRows(n,t,!e.target.indeterminate)},className:"MuiDataGrid-checkboxInput",color:"primary",inputProps:{"aria-label":"Select All Rows checkbox"},tabIndex:h,onKeyDown:m},null===(n=null==o?void 0:o.current.componentsProps)||void 0===n?void 0:n.checkbox))})),Fi=Object.assign(Object.assign({},fr),{field:"__check__",type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,valueGetter:function(e){return void 0!==ji(e.api.getState())[e.id]},renderHeader:function(e){return p.createElement(Ii,Object.assign({},e))},renderCell:function(e){return p.createElement(ii,Object.assign({},e))},cellClassName:"MuiDataGrid-cellCheckbox",headerClassName:"MuiDataGrid-columnHeaderCheckbox"}),Ri=p.memo((function(e){var t=e.direction,n=e.index,r=re(),i=r.current.components.ColumnUnsortedIcon;if(null==t&&null===i)return null;var o=p.createElement(R.a,{tabIndex:-1,"aria-label":r.current.getLocaleText("columnHeaderSortIconLabel"),title:r.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},function(e,t){var n=e.ColumnUnsortedIcon;return"asc"===t?n=e.ColumnSortedAscendingIcon:"desc"===t&&(n=e.ColumnSortedDescendingIcon),p.createElement(n,{fontSize:"small",className:"MuiDataGrid-sortIcon"})}(r.current.components,t));return p.createElement("div",{className:"MuiDataGrid-iconButtonContainer"},null!=n&&p.createElement(F.a,{badgeContent:n,color:"default"},o),null==n&&o)}));function Li(e,t){return e.closest(".".concat(t))}function zi(e){return null!=e&&e.classList.contains("MuiDataGrid-columnHeader")}function Bi(e){var t=e.getAttribute("data-field"),n=Li(e,"MuiDataGrid-root");if(!n)throw new Error("Material-UI: The root element is not found.");return n.querySelectorAll('.MuiDataGrid-cell[data-field="'.concat(t,'"]'))}function Ni(e){return e.replace(/["\\]/g,"\\$&")}function Ui(e,t){return e.querySelector('.MuiDataGrid-row[data-id="'.concat(Ni(String(t)),'"]'))}var Vi=p.forwardRef((function(e,t){var n=e.className,r=oe(e,["className"]);return p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-columnHeaderTitle",n)},r))}));function Hi(e){var t=e.label,n=e.description,r=e.columnWidth,i=p.useRef(null),o=p.useState(""),a=Object(f.a)(o,2),s=a[0],u=a[1];return p.useEffect((function(){if(!n&&i&&i.current){var e=(r=i.current).scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth;u(e?t:"")}var r}),[i,r,n,t]),p.createElement(L.a,{title:n||s},p.createElement(Vi,{ref:i},t))}var Wi=!1;"undefined"!=typeof i&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"/modern",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_NAME:"localhost:8082"}).GRID_EXPERIMENTAL_ENABLED&&on()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?Wi="true"===window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!=typeof i&&(Wi="true"===Object({NODE_ENV:"production",PUBLIC_URL:"/modern",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_NAME:"localhost:8082"}).GRID_EXPERIMENTAL_ENABLED);var Gi,qi=Wi,$i=p.memo((function(e){var t=e.resizable,n=e.resizing,r=e.height,i=oe(e,["resizable","resizing","height"]),o=re(),a=Nr(o,cn).showColumnRightBorder,s=o.current.components.ColumnResizeIcon,u=p.useCallback((function(e){e.preventDefault(),e.stopPropagation()}),[]);return p.createElement("div",Object.assign({className:Object(w.a)("MuiDataGrid-columnSeparator",{"MuiDataGrid-columnSeparator--resizable":t,"Mui-resizing":n}),style:{minHeight:r,opacity:a?0:1}},i,{onClick:u}),p.createElement(s,{className:"MuiDataGrid-iconSeparator"}))})),Yi=p.memo((function(e){var t=e.column,n=e.open,r=e.columnMenuId,i=e.columnMenuButtonId,o=e.iconButtonRef,a=re(),s=a.current.components.ColumnMenuIcon,u=p.useCallback((function(e){e.preventDefault(),e.stopPropagation(),a.current.toggleColumnMenu(t.field)}),[a,t.field]);return p.createElement("div",{className:Object(w.a)("MuiDataGrid-menuIcon",{"MuiDataGrid-menuOpen":n})},p.createElement(R.a,{ref:o,tabIndex:-1,className:"MuiDataGrid-menuIconButton","aria-label":a.current.getLocaleText("columnMenuLabel"),title:a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:i},p.createElement(s,{fontSize:"small"})))})),Zi=function(e){return e.preferencePanel};function Xi(e){var t=e.counter,n=re(),r=n.current.components.ColumnFilteredIcon,i=p.useCallback((function(e){e.preventDefault(),e.stopPropagation();var t=Zi(n.current.getState()),r=t.open,i=t.openedPanelValue;r&&i===Gi.filters?n.current.hideFilterPanel():n.current.showFilterPanel()}),[n]);if(!t)return null;var o=p.createElement(R.a,{onClick:i,color:"default","aria-label":n.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1},p.createElement(r,{className:"MuiDataGrid-filterIcon",fontSize:"small"}));return p.createElement(L.a,{title:n.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},p.createElement("div",{className:"MuiDataGrid-iconButtonContainer"},t>1&&p.createElement(F.a,{badgeContent:t,color:"default"},o),1===t&&o))}!function(e){e.filters="filters",e.columns="columns"}(Gi||(Gi={}));var Ki=Object(S.a)((function(e){return{root:{zIndex:e.zIndex.modal,"& .MuiDataGrid-gridMenuList":{outline:0}}}}),{name:"MuiGridMenu",defaultTheme:rn()}),Ji={"bottom-start":"top left","bottom-end":"top right"},Qi=function(e){var t=e.open,n=e.target,r=e.onClickAway,i=e.children,o=e.position,a=oe(e,["open","target","onClickAway","children","position"]),s=p.useRef(n),u=p.useRef(t),l=Ki();return p.useEffect((function(){u.current&&s.current&&s.current.focus(),u.current=t,s.current=n}),[t,n]),p.createElement(U.a,Object.assign({className:l.root,open:t,anchorEl:n,transition:!0,placement:o},a),(function(e){var t=e.TransitionProps,n=e.placement;return p.createElement(z.a,{onClickAway:r},p.createElement(B.a,Object.assign({},t,{style:{transformOrigin:Ji[n]}}),p.createElement(N.a,null,i)))}))};function eo(e){var t=e.columnMenuId,n=e.columnMenuButtonId,r=e.ContentComponent,i=e.contentComponentProps,o=e.field,a=e.open,s=e.target,u=re(),l=null==u?void 0:u.current.getColumn(o),c=p.useCallback((function(e){e.stopPropagation(),null==u||u.current.hideColumnMenu()}),[u]);return s?p.createElement(Qi,{placement:"bottom-"+("right"===l.align?"start":"end"),open:a,target:s,onClickAway:c},p.createElement(r,Object.assign({currentColumn:l,hideMenu:c,open:a,id:t,labelledby:n},i))):null}function to(e){var t,n=e.column,r=e.columnMenuOpen,i=e.colIndex,o=e.headerHeight,a=e.isDragging,s=e.isResizing,u=e.sortDirection,l=e.sortIndex,c=e.options,f=e.filterItemsCounter,d=e.hasFocus,h=e.tabIndex,m=re(),v=p.useRef(null),g=Object(y.a)(),b=Object(y.a)(),_=p.useRef(null),x=c.classes,E=c.disableColumnReorder,O=c.showColumnRightBorder,C=c.disableColumnResize,D=c.disableColumnMenu,S=c.disableColumnFilter,k=null!=u,A="number"===n.type,T=null;n.renderHeader&&m.current&&(T=n.renderHeader(m.current.getColumnHeaderParams(n.field)));var P=p.useCallback((function(e){return function(t){return m.current.publishEvent(e,m.current.getColumnHeaderParams(n.field),t)}}),[m,n.field]),M=p.useMemo((function(){return{onClick:P("columnHeaderClick"),onDoubleClick:P("columnHeaderDoubleClick"),onMouseOver:P("columnHeaderOver"),onMouseOut:P("columnHeaderOut"),onMouseEnter:P("columnHeaderEnter"),onMouseLeave:P("columnHeaderLeave"),onKeyDown:P("columnHeaderKeyDown"),onFocus:P("columnHeaderFocus"),onBlur:P("columnHeaderBlur")}}),[P]),j=p.useMemo((function(){return{onDragStart:P("columnHeaderDragStart"),onDragEnter:P("columnHeaderDragEnter"),onDragOver:P("columnHeaderDragOver"),onDragEnd:P("columnHeaderDragEnd")}}),[P]),I=p.useMemo((function(){return{onMouseDown:P("columnSeparatorMouseDown")}}),[P]),F=[null==x?void 0:x.columnHeader];if(n.headerClassName){var R=Qt(n.headerClassName)?n.headerClassName({field:n.field,colDef:n,api:m}):n.headerClassName;F.push(R)}var L,z=w.a.apply(void 0,["center"===n.headerAlign&&"MuiDataGrid-columnHeader--alignCenter","right"===n.headerAlign&&"MuiDataGrid-columnHeader--alignRight",{"MuiDataGrid-columnHeader--sortable":n.sortable,"MuiDataGrid-columnHeader--moving":a,"MuiDataGrid-columnHeader--sorted":k,"MuiDataGrid-columnHeader--numeric":A,"MuiDataGrid-withBorder":O}].concat(F)),B=n.width;null!=u&&(L={"aria-sort":"asc"===u?"ascending":"descending"});var N=!D&&!n.disableColumnMenu&&p.createElement(Yi,{column:n,columnMenuId:g,columnMenuButtonId:b,open:r,iconButtonRef:_}),U=p.createElement(p.Fragment,null,!S&&p.createElement(Xi,{counter:f}),n.sortable&&!n.hideSortIcons&&p.createElement(Ri,{direction:u,index:l}));return p.useLayoutEffect((function(){var e=m.current.getState().columnMenu;if(d&&!e.open){var t=v.current.querySelector('[tabindex="0"]');t?t.focus():v.current.focus()}})),p.createElement("div",Object.assign({ref:v,className:z,key:n.field,"data-field":n.field,style:{width:B,minWidth:B,maxWidth:B},role:"columnheader",tabIndex:h,"aria-colindex":i+1},L,M),p.createElement("div",Object.assign({className:"MuiDataGrid-columnHeaderDraggableContainer",draggable:!E&&!n.disableReorder},j),p.createElement("div",{className:"MuiDataGrid-columnHeaderTitleContainer"},T||p.createElement(Hi,{label:n.headerName||n.field,description:n.description,columnWidth:B}),U),N),p.createElement($i,Object.assign({resizable:!C&&!!n.resizable,resizing:s,height:o},I)),p.createElement(eo,{columnMenuId:g,columnMenuButtonId:b,field:n.field,open:r,target:_.current,ContentComponent:m.current.components.ColumnMenu,contentComponentProps:null===(t=m.current.componentsProps)||void 0===t?void 0:t.columnMenu}))}var no=function(e){return e.rendering},ro=Object(T.a)(no,(function(e){return e.realScroll}));function io(e,t,n,r){var i=Sn("useGridApiEventHandler");p.useEffect((function(){if(n&&t){return e.current.subscribeEvent(t,(function(e,t){t.defaultMuiPrevented||n(e,t)}),r)}}),[e,i,t,n,r])}var oo={isFirst:!0};function ao(e,t,n){io(e,t,n,oo)}var so=p.memo((function(e){var t=e.scrollDirection,n=p.useRef(null),r=re(),i=p.useRef(),o=p.useState(!1),a=Object(f.a)(o,2),s=a[0],u=a[1],l=p.useRef({left:0,top:0}),c=p.useCallback((function(e){l.current=e}),[]),d=p.useCallback((function(e){var o;if("left"===t)o=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("wrong dir");o=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}o=1.5*(o-1)+1,clearTimeout(i.current),i.current=setTimeout((function(){r.current.scroll({left:l.current.left+o,top:l.current.top})}))}),[t,r]);p.useEffect((function(){return function(){clearTimeout(i.current)}}),[]);var h=p.useCallback((function(){u((function(e){return!e}))}),[]);return io(r,"rowsScroll",c),io(r,"columnHeaderDragStart",h),io(r,"columnHeaderDragEnd",h),s?p.createElement("div",{ref:n,className:Object(w.a)("MuiDataGrid-scrollArea","MuiDataGrid-scrollArea--".concat(t)),onDragOver:d}):null})),uo=Object(T.a)((function(e){return e.columnReorder}),(function(e){return e.dragCol})),lo=Object(T.a)((function(e){return e.columnResize}),(function(e){return e.resizingColumnField})),co=function(e){return e.columnMenu};function fo(e){var t=e.columns,n=re(),r=Nr(n,cn),i=Nr(n,di),o=Nr(n,xi),a=Nr(n,uo),s=Nr(n,lo),u=Nr(n,Di),l=Nr(n,no).renderContext,c=Nr(n,Ai),f=Nr(n,ki),d=Nr(n,Gr),h=Nr(n,co),m=t.map((function(e,t){var n,m=(n=t,null==l?n:n+l.firstColIdx),v=0===m,g=!(null===c&&null===f),y=null!==c&&c.field===e.field||v&&!g?0:-1,b=null!==u&&u.field===e.field,_=h.open&&h.field===e.field;return p.createElement(to,Object.assign({key:e.field},i[e.field],{columnMenuOpen:_,filterItemsCounter:o[e.field]&&o[e.field].length,options:r,headerHeight:d,isDragging:e.field===a,column:e,colIndex:m,isResizing:s===e.field,hasFocus:b,tabIndex:y}))}));return p.createElement(p.Fragment,null,m)}var po=function(e){return e.scrollBar},ho=p.forwardRef((function(e,t){var n,r=re(),i=Nr(r,hn),o=Nr(r,$r),a=Nr(r,Gr),s=Nr(r,no).renderContext,u=Nr(r,po).hasScrollX,l=Nr(r,uo),c=Object(w.a)("MuiDataGrid-columnHeaderWrapper",{scroll:u,"MuiDataGrid-columnHeaderDropZone":l}),f=p.useMemo((function(){return null==s?[]:i.slice(s.firstColIdx,s.lastColIdx+1)}),[i,s]);return p.createElement(p.Fragment,null,p.createElement(so,{scrollDirection:"left"}),p.createElement("div",{ref:t,className:c,"aria-rowindex":1,role:"row",style:{minWidth:null===(n=null==o?void 0:o.totalSizes)||void 0===n?void 0:n.width}},p.createElement(se,{width:null==s?void 0:s.leftEmptyWidth,height:a}),p.createElement(fo,{columns:f}),p.createElement(se,{width:null==s?void 0:s.rightEmptyWidth,height:a})),p.createElement(so,{scrollDirection:"right"}))})),mo=function(e){var t=e.onClick,n=re(),r=Nr(n,cn),i=p.useCallback((function(e){t(e),n.current.showPreferences(Gi.columns)}),[n,t]);return r.disableColumnSelector?null:p.createElement(I.a,{onClick:i},n.current.getLocaleText("columnMenuShowColumns"))},vo=function(e){var t=e.column,n=e.onClick,r=re(),i=Nr(r,cn),o=p.useCallback((function(e){n(e),r.current.showFilterPanel(null==t?void 0:t.field)}),[r,null==t?void 0:t.field,n]);return i.disableColumnFilter||!(null==t?void 0:t.filterable)?null:p.createElement(I.a,{onClick:o},r.current.getLocaleText("columnMenuFilter"))},go=p.forwardRef((function(e,t){var n=e.hideMenu,r=(e.currentColumn,e.open),i=e.id,o=e.labelledby,a=e.className,s=e.children,u=oe(e,["hideMenu","currentColumn","open","id","labelledby","className","children"]),l=p.useCallback((function(e){hr(e.key)&&e.preventDefault(),Sr(e.key)&&n()}),[n]);return p.createElement(V.a,Object.assign({id:i,ref:t,className:Object(w.a)("MuiDataGrid-gridMenuList",a),"aria-labelledby":o,onKeyDown:l,autoFocus:r},u),s)})),yo=function(e){var t=e.column,n=e.onClick,r=re(),i=Nr(r,cn),o=p.useRef(),a=p.useCallback((function(e){n(e),o.current=setTimeout((function(){r.current.setColumnVisibility(null==t?void 0:t.field,!1)}),100)}),[r,null==t?void 0:t.field,n]);return p.useEffect((function(){return function(){return clearTimeout(o.current)}}),[]),i.disableColumnSelector?null:p.createElement(I.a,{onClick:a},r.current.getLocaleText("columnMenuHideColumn"))},bo=function(e){var t=e.column,n=e.onClick,r=re(),i=Nr(r,pi),o=p.useMemo((function(){if(!t)return null;var e=i.find((function(e){return e.field===t.field}));return null==e?void 0:e.sort}),[t,i]),a=p.useCallback((function(e){n(e);var i=e.currentTarget.getAttribute("data-value")||null;null==r||r.current.sortColumn(t,i)}),[r,t,n]);return t&&t.sortable?p.createElement(p.Fragment,null,p.createElement(I.a,{onClick:a,disabled:null==o},r.current.getLocaleText("columnMenuUnsort")),p.createElement(I.a,{onClick:a,"data-value":"asc",disabled:"asc"===o},r.current.getLocaleText("columnMenuSortAsc")),p.createElement(I.a,{onClick:a,"data-value":"desc",disabled:"desc"===o},r.current.getLocaleText("columnMenuSortDesc"))):null},_o=p.forwardRef((function(e,t){var n=e.hideMenu,r=e.currentColumn;return p.createElement(go,Object.assign({ref:t},e),p.createElement(bo,{onClick:n,column:r}),p.createElement(vo,{onClick:n,column:r}),p.createElement(yo,{onClick:n,column:r}),p.createElement(mo,{onClick:n,column:r}))})),xo=Object(S.a)((function(){return{root:{display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400}}}),{name:"MuiGridPanelContent"});function wo(e){var t=xo(),n=e.className,r=oe(e,["className"]);return p.createElement("div",Object.assign({className:Object(w.a)(t.root,n)},r))}var Eo=Object(S.a)((function(){return{root:{padding:4,display:"flex",justifyContent:"space-between"}}}),{name:"MuiGridPanelFooter"});function Oo(e){var t=Eo(),n=e.className,r=oe(e,["className"]);return p.createElement("div",Object.assign({className:Object(w.a)(t.root,n)},r))}var Co=Object(S.a)((function(e){return{root:{padding:e.spacing(1)}}}),{name:"MuiDataGridPanelHeader",defaultTheme:rn()});function Do(e){var t=Co(),n=e.className,r=oe(e,["className"]);return p.createElement("div",Object.assign({className:Object(w.a)(t.root,n)},r))}var So=Object(S.a)((function(){return{root:{display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}}}),{name:"MuiGridPanelWrapper"}),ko=function(){return!0};function Ao(e){var t=So(),n=e.className,r=oe(e,["className"]),i=tn().startsWith("v4")?{getDoc:function(){return document}}:{};return p.createElement(q.a,Object.assign({open:!0,disableEnforceFocus:!0,isEnabled:ko},i),p.createElement("div",Object.assign({tabIndex:-1,className:Object(w.a)(t.root,n)},r)))}var To=Object(S.a)({container:{padding:"8px 0px 8px 8px"},column:{display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},switch:{marginRight:4},dragIcon:{justifyContent:"flex-end"}},{name:"MuiDataGridColumnsPanel"});var Po=Object(S.a)((function(e){return{root:{zIndex:e.zIndex.modal},paper:{backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}}}),{name:"MuiGridPanel",defaultTheme:rn()}),Mo=(function(e,t){var n={};["root","paper"].forEach((function(e){n[e]=Jt("MuiGridPanel",e)}))}(),p.forwardRef((function(e,t){var n,r=e.children,i=e.className,o=e.open,a=oe(e,["children","className","open"]),s=Po(a),u=re(),l=p.useCallback((function(){u.current.hidePreferences()}),[u]),c=p.useCallback((function(e){pr(e.key)&&u.current.hidePreferences()}),[u]),f=null===(n=null==u?void 0:u.current.columnHeadersContainerElementRef)||void 0===n?void 0:n.current;return f?p.createElement(U.a,Object.assign({ref:t,placement:"bottom-start",className:Object(w.a)(i,s.root),open:o,anchorEl:f,modifiers:"v5"===tn()?[{name:"flip",enabled:!1}]:{flip:{enabled:!1}}},a),p.createElement(z.a,{onClickAway:l},p.createElement(N.a,{className:s.paper,elevation:8,onKeyDown:c},r))):null}))),jo=p.forwardRef((function(e,t){var n,r,i,o=re(),a=Nr(o,dn),s=Nr(o,cn),u=Nr(o,Zi),l=u.openedPanelValue===Gi.columns,c=!u.openedPanelValue||!l,f=o.current.components.ColumnsPanel,d=o.current.components.FilterPanel,h=o.current.components.Panel;return p.createElement(h,Object.assign({ref:t,open:a.length>0&&u.open},null===(n=null==o?void 0:o.current.componentsProps)||void 0===n?void 0:n.panel,e),!s.disableColumnSelector&&l&&p.createElement(f,Object.assign({},null===(r=null==o?void 0:o.current.componentsProps)||void 0===r?void 0:r.columnsPanel)),!s.disableColumnFilter&&c&&p.createElement(d,Object.assign({},null===(i=null==o?void 0:o.current.componentsProps)||void 0===i?void 0:i.filterPanel)))})),Io=Object(S.a)({root:{display:"flex",justifyContent:"space-around",padding:8},linkOperatorSelect:{minWidth:60},columnSelect:{width:150},operatorSelect:{width:120},filterValueInput:{width:190},closeIcon:{flexShrink:0,justifyContent:"flex-end",marginRight:6,marginBottom:2}},{name:"MuiGridFilterForm"});function Fo(e){var t,n=e.item,r=e.hasMultipleFilters,i=e.deleteFilter,o=e.applyFilterChanges,a=e.multiFilterOperator,s=e.showMultiFilterOperators,u=e.disableMultiFilterOperator,l=e.applyMultiFilterOperatorChanges,c=Io(),d=re(),m=Nr(d,vn),v=Object(y.a)(),g=Object(y.a)(),b=Object(y.a)(),_=Object(y.a)(),x=Object(y.a)(),w=Object(y.a)(),E=p.useState((function(){return n.columnField?d.current.getColumn(n.columnField):null})),O=Object(f.a)(E,2),C=O[0],D=O[1],S=p.useState((function(){var e;return n.operatorValue&&C&&(null===(e=C.filterOperators)||void 0===e?void 0:e.find((function(e){return e.value===n.operatorValue})))||null})),k=Object(f.a)(S,2),A=k[0],T=k[1],P=p.useCallback((function(e){var t=e.target.value,r=d.current.getColumn(t),i=r.filterOperators[0];T(i),D(r),o(Object.assign(Object.assign({},n),{value:void 0,columnField:t,operatorValue:i.value}))}),[d,o,n]),M=p.useCallback((function(e){var t,r=e.target.value;o(Object.assign(Object.assign({},n),{operatorValue:r}));var i=(null===(t=C.filterOperators)||void 0===t?void 0:t.find((function(e){return e.value===r})))||null;T(i)}),[o,C,n]),I=p.useCallback((function(e){var t=e.target.value===jr.And.toString()?jr.And:jr.Or;l(t)}),[l]),F=p.useCallback((function(){i(n)}),[i,n]);return p.createElement("div",{className:c.root},p.createElement($.a,{variant:"standard",className:c.closeIcon},p.createElement(R.a,{"aria-label":d.current.getLocaleText("filterPanelDeleteIconLabel"),title:d.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:F,size:"small"},p.createElement(Gn,{fontSize:"small"}))),p.createElement($.a,{variant:"standard",className:c.linkOperatorSelect,style:{display:r?"block":"none",visibility:s?"visible":"hidden"}},p.createElement(Y.a,{htmlFor:v,id:g},d.current.getLocaleText("filterPanelOperators")),p.createElement(j.a,{labelId:g,id:v,value:a,onChange:I,disabled:!!u,native:!0},p.createElement("option",{key:jr.And.toString(),value:jr.And.toString()},d.current.getLocaleText("filterPanelOperatorAnd")),p.createElement("option",{key:jr.Or.toString(),value:jr.Or.toString()},d.current.getLocaleText("filterPanelOperatorOr")))),p.createElement($.a,{variant:"standard",className:c.columnSelect},p.createElement(Y.a,{htmlFor:b,id:_},d.current.getLocaleText("filterPanelColumns")),p.createElement(j.a,{labelId:_,id:b,value:n.columnField||"",onChange:P,native:!0},m.map((function(e){return p.createElement("option",{key:e.field,value:e.field},e.headerName||e.field)})))),p.createElement($.a,{variant:"standard",className:c.operatorSelect},p.createElement(Y.a,{htmlFor:x,id:w},d.current.getLocaleText("filterPanelOperators")),p.createElement(j.a,{labelId:w,id:x,value:n.operatorValue,onChange:M,native:!0},null===(t=null==C?void 0:C.filterOperators)||void 0===t?void 0:t.map((function(e){return p.createElement("option",{key:e.value,value:e.value},e.label||d.current.getLocaleText("filterOperator".concat(Object(h.a)(e.value))))})))),p.createElement($.a,{variant:"standard",className:c.filterValueInput},(null==A?void 0:A.InputComponent)&&p.createElement(A.InputComponent,Object.assign({apiRef:d,item:n,applyValue:o},A.InputComponentProps))))}var Ro=p.forwardRef((function(e,t){var n=e.onClick,r=oe(e,["onClick"]),i=re(),o=Nr(i,cn),a=i.current.components.ColumnSelectorIcon,s=Nr(i,Zi),u=s.open,l=s.openedPanelValue;return o.disableColumnSelector?null:p.createElement(W.a,Object.assign({ref:t,size:"small",color:"primary","aria-label":i.current.getLocaleText("toolbarColumnsLabel"),startIcon:p.createElement(a,null)},r,{onClick:function(e){u&&l===Gi.columns?i.current.hidePreferences():i.current.showPreferences(Gi.columns),null==n||n(e)}}),i.current.getLocaleText("toolbarColumns"))})),Lo=p.forwardRef((function(e,t){var n=e.onClick,r=oe(e,["onClick"]),i=re(),o=Nr(i,cn),a=Nr(i,Hr),s=Object(y.a)(),u=Object(y.a)(),l=p.useState(null),c=Object(f.a)(l,2),d=c[0],h=c[1],m=i.current.components.DensityCompactIcon,v=i.current.components.DensityStandardIcon,g=i.current.components.DensityComfortableIcon,b=[{icon:p.createElement(m,null),label:i.current.getLocaleText("toolbarDensityCompact"),value:Tr.Compact},{icon:p.createElement(v,null),label:i.current.getLocaleText("toolbarDensityStandard"),value:Tr.Standard},{icon:p.createElement(g,null),label:i.current.getLocaleText("toolbarDensityComfortable"),value:Tr.Comfortable}],_=p.useCallback((function(){switch(a){case Tr.Compact:return p.createElement(m,null);case Tr.Comfortable:return p.createElement(g,null);default:return p.createElement(v,null)}}),[a,m,g,v]),x=function(){return h(null)};if(o.disableDensitySelector)return null;var w=b.map((function(e,t){return p.createElement(I.a,{key:t,onClick:function(){return t=e.value,i.current.setDensity(t),void h(null);var t},selected:e.value===a},p.createElement(Z.a,null,e.icon),e.label)}));return p.createElement(p.Fragment,null,p.createElement(W.a,Object.assign({ref:t,color:"primary",size:"small",startIcon:_(),"aria-label":i.current.getLocaleText("toolbarDensityLabel"),"aria-expanded":d?"true":void 0,"aria-haspopup":"menu","aria-labelledby":u,id:s},r,{onClick:function(e){h(e.currentTarget),null==n||n(e)}}),i.current.getLocaleText("toolbarDensity")),p.createElement(Qi,{open:Boolean(d),target:d,onClickAway:x,position:"bottom-start"},p.createElement(V.a,{id:u,className:"MuiDataGrid-gridMenuList","aria-labelledby":s,onKeyDown:function(e){hr(e.key)&&e.preventDefault(),Sr(e.key)&&x()},autoFocusItem:Boolean(d)},w)))})),zo=Object(S.a)((function(e){return{list:{margin:e.spacing(1,1,.5),padding:e.spacing(0,1)}}}),{name:"MuiGridToolbarFilterButton",defaultTheme:rn()}),Bo=p.forwardRef((function(e,t){var n=e.componentsProps,r=void 0===n?{}:n,i=oe(e,["componentsProps"]),o=r.button||{},a=zo(),s=re(),u=Nr(s,cn),l=Nr(s,_i),c=Nr(s,bi),f=Nr(s,pn),d=Nr(s,Zi),m=p.useMemo((function(){return d.open?s.current.getLocaleText("toolbarFiltersTooltipHide"):0===l?s.current.getLocaleText("toolbarFiltersTooltipShow"):p.createElement("div",null,s.current.getLocaleText("toolbarFiltersTooltipActive")(l),p.createElement("ul",{className:a.list},c.map((function(e){return Object.assign({},f[e.columnField]&&p.createElement("li",{key:e.id},"".concat(f[e.columnField].headerName||e.columnField,"\n ").concat(function(e){return f[e.columnField].filterOperators.find((function(t){return t.value===e.operatorValue})).label||s.current.getLocaleText("filterOperator".concat(Object(h.a)(e.operatorValue))).toString()}(e),"\n ").concat(e.value)))}))))}),[s,d.open,l,c,f,a]);if(u.disableColumnFilter)return null;var v=s.current.components.OpenFilterButtonIcon;return p.createElement(L.a,Object.assign({title:m,enterDelay:1e3},i),p.createElement(W.a,Object.assign({ref:t,size:"small",color:"primary","aria-label":s.current.getLocaleText("toolbarFiltersLabel"),startIcon:p.createElement(F.a,{badgeContent:l,color:"primary"},p.createElement(v,null))},o,{onClick:function(e){var t,n=d.open,r=d.openedPanelValue;n&&r===Gi.filters?s.current.hideFilterPanel():s.current.showFilterPanel(),null===(t=o.onClick)||void 0===t||t.call(o,e)}}),s.current.getLocaleText("toolbarFilters")))})),No=p.forwardRef((function(e,t){var n=e.csvOptions,r=e.onClick,i=oe(e,["csvOptions","onClick"]),o=re(),a=Object(y.a)(),s=Object(y.a)(),u=p.useState(null),l=Object(f.a)(u,2),c=l[0],d=l[1],h=o.current.components.ExportIcon,m=[];m.push({label:o.current.getLocaleText("toolbarExportCSV"),format:"csv",formatOptions:n});var v=function(){return d(null)},g=function(e){return function(){"csv"===e.format&&o.current.exportDataAsCsv(e.formatOptions),d(null)}};return p.createElement(p.Fragment,null,p.createElement(W.a,Object.assign({ref:t,color:"primary",size:"small",startIcon:p.createElement(h,null),"aria-expanded":c?"true":void 0,"aria-label":o.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-labelledby":s,id:a},i,{onClick:function(e){d(e.currentTarget),null==r||r(e)}}),o.current.getLocaleText("toolbarExport")),p.createElement(Qi,{open:Boolean(c),target:c,onClickAway:v,position:"bottom-start"},p.createElement(V.a,{id:s,className:"MuiDataGrid-gridMenuList","aria-labelledby":a,onKeyDown:function(e){hr(e.key)&&e.preventDefault(),Sr(e.key)&&v()},autoFocusItem:Boolean(c)},m.map((function(e,t){return p.createElement(I.a,{key:t,onClick:g(e)},e.label)})))))}));p.forwardRef((function(e,t){var n=re(),r=Nr(n,cn);return r.disableColumnFilter&&r.disableColumnSelector&&r.disableDensitySelector?null:p.createElement(ni,Object.assign({ref:t},e),p.createElement(Ro,null),p.createElement(Bo,null),p.createElement(Lo,null),p.createElement(No,null))}));var Uo=p.forwardRef((function(e,t){var n=e.children,r=e.defaultHeight,i=void 0===r?null:r,o=e.defaultWidth,a=void 0===o?null:o,s=e.disableHeight,u=void 0!==s&&s,l=e.disableWidth,c=void 0!==l&&l,d=e.nonce,h=e.onResize,m=e.style,v=oe(e,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"]),g=p.useState({height:i,width:a}),y=Object(f.a)(g,2),x=y[0],w=y[1],E=p.useRef(null),O=p.useRef(null),C=Yt((function(){if(O.current){var e=O.current.offsetHeight||0,t=O.current.offsetWidth||0,n=Object(_.a)(O.current).getComputedStyle(O.current),r=parseInt(n.paddingLeft,10)||0,i=parseInt(n.paddingRight,10)||0,o=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),a=t-r-i;(!u&&x.height!==o||!c&&x.width!==a)&&(w({height:o,width:a}),h&&h({height:o,width:a}))}}));Zt((function(){var e;if(O.current=E.current.parentElement,O){var t=Object(_.a)(null!==(e=O.current)&&void 0!==e?e:void 0),n=function(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},i=!1,o="",a="animationstart",s="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),l=document.createElement("fakeelement");if(void 0!==l.style.animationName&&(i=!0),!1===i)for(var c=0;c<s.length;c++)if(void 0!==l.style[s[c]+"AnimationName"]){o="-"+s[c].toLowerCase()+"-",a=u[c],i=!0;break}var f="@"+o+"keyframes resizeanim { from { opacity: 0; } to { opacity: 0; } } ",p=o+"animation: 1ms resizeanim; ";return{addResizeListener:function(i,o){if(!i.__resizeTriggers__){var s=i.ownerDocument,u=t.getComputedStyle(i);u&&"static"==u.position&&(i.style.position="relative"),function(t){if(!t.getElementById("muiDetectElementResize")){var n=(f||"")+".Mui-resizeTriggers { "+(p||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="muiDetectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="Mui-resizeTriggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),n(i),i.addEventListener("scroll",r,!0),a&&(i.__resizeTriggers__.__animationListener__=function(e){"resizeanim"==e.animationName&&n(i)},i.__resizeTriggers__.addEventListener(a,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(o)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(d,t);return n.addResizeListener(O.current,C),C(),function(){n.removeResizeListener(O.current,C)}}}),[d,C]);var D={overflow:"visible"},S={};u||(D.height=0,S.height=x.height),c||(D.width=0,S.width=x.width);var k=Object(b.a)(E,t);return p.createElement("div",Object.assign({ref:k,style:Object.assign(Object.assign({},D),m)},v),null===x.height&&null===x.width?null:n(S))})),Vo=p.forwardRef((function(e,t){var n=e.className,r=e.rowCount,i=e.visibleRowCount,o=oe(e,["className","rowCount","visibleRowCount"]),a=re();if(0===r)return null;var s=i<r?a.current.getLocaleText("footerTotalVisibleRows")(i,r):r.toLocaleString();return p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-rowCount",n)},o),a.current.getLocaleText("footerTotalRows")," ",s)})),Ho=p.forwardRef((function(e,t){var n=e.className,r=e.selectedRowCount,i=oe(e,["className","selectedRowCount"]),o=re().current.getLocaleText("footerRowSelected")(r);return p.createElement("div",Object.assign({ref:t,className:Object(w.a)("MuiDataGrid-selectedRowCount",n)},i),o)})),Wo=p.forwardRef((function(e,t){var n,r=re(),i=Nr(r,ai),o=Nr(r,cn),a=Nr(r,Pi),s=Nr(r,wi),u=Nr(r,yi),l=!o.hideFooterSelectedRowCount&&a>0?p.createElement(Ho,{selectedRowCount:a}):p.createElement("div",null),c=o.hideFooterRowCount||o.pagination?null:p.createElement(Vo,{rowCount:i,visibleRowCount:u}),f=!!o.pagination&&null!=s.pageSize&&!o.hideFooterPagination&&(null==r?void 0:r.current.components.Pagination),d=f&&p.createElement(f,Object.assign({},null===(n=null==r?void 0:r.current.componentsProps)||void 0===n?void 0:n.pagination));return p.createElement(Qr,Object.assign({ref:t},e),l,c,d)})),Go=p.forwardRef((function(e,t){var n,r,i=re(),o=null==i?void 0:i.current.components.PreferencesPanel,a=o&&p.createElement(o,Object.assign({},null===(n=null==i?void 0:i.current.componentsProps)||void 0===n?void 0:n.preferencesPanel)),s=null==i?void 0:i.current.components.Toolbar,u=s&&p.createElement(s,Object.assign({},null===(r=null==i?void 0:i.current.componentsProps)||void 0===r?void 0:r.toolbar));return p.createElement("div",Object.assign({ref:t},e),a,u)})),qo=p.forwardRef((function(e,t){return p.createElement(ei,Object.assign({ref:t},e),p.createElement(X.a,null))})),$o=p.forwardRef((function(e,t){var n=re().current.getLocaleText("noRowsLabel");return p.createElement(ei,Object.assign({ref:t},e),n)})),Yo=Object(S.a)((function(e){return{selectLabel:Object(c.a)({display:"none"},e.breakpoints.up("md"),{display:"block"}),caption:{"&[id]":Object(c.a)({display:"none"},e.breakpoints.up("md"),{display:"block"})},input:Object(c.a)({display:"none"},e.breakpoints.up("md"),{display:"inline-flex"})}}),{defaultTheme:rn()}),Zo=p.forwardRef((function(e,t){var n,r=Yo(),i=re(),o=(p.useContext(ln),Nr(i,wi)),a=p.useMemo((function(){return Math.floor(o.rowCount/(o.pageSize||1))}),[o.rowCount,o.pageSize]),s=Nr(i,cn),u=p.useCallback((function(e){var t=Number(e.target.value);i.current.setPageSize(t)}),[i]),l=p.useCallback((function(e,t){i.current.setPage(t)}),[i]);return p.createElement(K.a,Object.assign({ref:t,classes:Object.assign(Object.assign({},"v5"===tn()?{selectLabel:r.selectLabel}:{caption:r.caption}),{input:r.input}),component:"div",count:o.rowCount,page:o.page<=a?o.page:a,rowsPerPageOptions:(null===(n=s.rowsPerPageOptions)||void 0===n?void 0:n.includes(o.pageSize))?s.rowsPerPageOptions:[],rowsPerPage:o.pageSize},i.current.getLocaleText("MuiTablePagination"),"v4"!==tn()?{onPageChange:l,onRowsPerPageChange:u}:{onChangePage:l,onChangeRowsPerPage:u},e))})),Xo=p.forwardRef((function(e,t){var n=e.height,r=e.width,i=e.children;return p.createElement("div",{ref:t,className:"MuiDataGrid-renderingZone",style:{maxHeight:n,width:r}},i)}));function Ko(e){var t=e.selected,n=e.id,r=e.className,i=e.rowIndex,o=e.children,a=i+2,s=re(),u=Nr(s,Wr),l=Nr(s,cn),c=l.classes,f=l.getRowClassName,d=p.useCallback((function(e){return function(t){(1!==t.target.nodeType||t.currentTarget.contains(t.target))&&s.current.publishEvent(e,null==s?void 0:s.current.getRowParams(n),t)}}),[s,n]),h=p.useMemo((function(){return{onClick:d("rowClick"),onDoubleClick:d("rowDoubleClick"),onMouseOver:d("rowOver"),onMouseOut:d("rowOut"),onMouseEnter:d("rowEnter"),onMouseLeave:d("rowLeave")}}),[d]),m={maxHeight:u,minHeight:u},v=Qt(f)&&f(s.current.getRowParams(n)),g=Object(w.a)(r,v,null==c?void 0:c.row,{"Mui-selected":t});return p.createElement("div",Object.assign({key:n,"data-id":n,"data-rowindex":i,role:"row",className:g,"aria-rowindex":a,"aria-selected":t,style:m},h),o)}function Jo(e){var t=e.height,n=e.width,r=e.children;return p.createElement("div",{className:"MuiDataGrid-viewport",style:{minWidth:n,maxWidth:n,maxHeight:t}},r)}var Qo,ea=function(e){return e.editRows},ta=p.forwardRef((function(e,t){var n=re(),r=Nr(n,cn),i=Nr(n,$r),o=Nr(n,Yr),a=Nr(n,Zr),s=Nr(n,hn),u=Nr(n,no),l=Nr(n,Ci),c=Nr(n,ki),d=Nr(n,ji),h=Nr(n,vi),m=Nr(n,Wr),v=Nr(n,ea);return p.createElement(Jr,null,p.createElement(Jo,Object.assign({},o),p.createElement(Xo,Object.assign({ref:t},(null==i?void 0:i.renderingZone)||{width:0,height:0}),null==u.renderContext?null:h.slice(u.renderContext.firstRowIdx,u.renderContext.lastRowIdx).map((function(e,t){var n,i=Object(f.a)(e,2),o=i[0],h=i[1];return p.createElement(Ko,{className:(u.renderContext.firstRowIdx+t)%2==0?"Mui-even":"Mui-odd",key:o,id:o,selected:void 0!==d[o],rowIndex:u.renderContext.firstRowIdx+t},p.createElement(se,{width:u.renderContext.leftEmptyWidth,height:m}),p.createElement(un,{columns:s,row:h,id:o,height:m,firstColIdx:u.renderContext.firstColIdx,lastColIdx:u.renderContext.lastColIdx,hasScrollX:a.hasScrollX,hasScrollY:a.hasScrollY,showCellRightBorder:!!r.showCellRightBorder,extendRowFullWidth:!r.disableExtendRowFullWidth,rowIndex:u.renderContext.firstRowIdx+t,cellFocus:l,cellTabIndex:c,isSelected:void 0!==d[o],editRowState:v[o],cellClassName:null===(n=r.classes)||void 0===n?void 0:n.cell,getCellClassName:r.getCellClassName}),p.createElement(se,{width:u.renderContext.rightEmptyWidth,height:m}))})))))}));!function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid"}(Qo||(Qo={}));var na=function(e){var t=e.licenseStatus;return t===Qo.Valid.toString()?null:p.createElement("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24}}," ",function(e){switch(e){case Qo.Expired.toString():return"Material-UI X License Expired";case Qo.Invalid.toString():return"Material-UI X Invalid License";case Qo.NotFound.toString():return"Material-UI X Unlicensed product";default:throw new Error("Material-UI: Unhandled license status.")}}(t)," ")};var ra=function(e,t,n,r,i){var o=Sn("useNativeEventListener"),a=p.useState(!1),s=Object(f.a)(a,2),u=s[0],l=s[1],c=p.useRef(r),d=p.useCallback((function(e){return c.current&&c.current(e)}),[]);p.useEffect((function(){c.current=r}),[r]),p.useEffect((function(){var r;if((r=Qt(t)?t():t&&t.current?t.current:null)&&d&&n&&!u){o.debug("Binding native ".concat(n," event")),r.addEventListener(n,d,i);var a=r;l(!0);e.current.subscribeEvent("unmount",(function(){o.debug("Clearing native ".concat(n," event")),a.removeEventListener(n,d,i)}))}}),[t,d,n,u,o,i,e])};function ia(e,t){return e.debug("Building columns lookup"),t.reduce((function(e,t){return e[t.field]=t,e}),{})}var oa=function(e,t){var n,r,i={all:Object(l.a)(null!==(n=null==t?void 0:t.all)&&void 0!==n?n:[]),lookup:Object.assign({},null!==(r=null==t?void 0:t.lookup)&&void 0!==r?r:{})};return e.forEach((function(e){null==i.lookup[e.field]?(i.lookup[e.field]=e,i.all.push(e.field)):i.lookup[e.field]=Object.assign(Object.assign({},i.lookup[e.field]),e)})),i};function aa(e,t){var n=Sn("useGridColumns"),r=Br(e),i=Object(f.a)(r,3),o=i[0],a=i[1],s=i[2],u=Nr(e,mn),c=Nr(e,dn),d=Nr(e,hn),h=Nr(e,cn),m=p.useCallback((function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.debug("Updating columns state."),a((function(e){return Object.assign(Object.assign({},e),{columns:t})})),s(),e.current&&r&&e.current.publishEvent("columnsChange",t.all)}),[n,a,s,e]),v=p.useCallback((function(t){return e.current.state.columns.lookup[t]}),[e]),g=p.useCallback((function(){return c}),[c]),y=p.useCallback((function(){return d}),[d]),b=p.useCallback((function(){return u}),[u]),_=p.useCallback((function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?d.findIndex((function(t){return t.field===e})):c.findIndex((function(t){return t.field===e}))}),[c,d]),x=p.useCallback((function(e){var t=_(e);return u.positions[t]}),[u.positions,_]),w=p.useCallback((function(t,r){n.debug("updating GridColumns with new state");var i=e.current.getState(),o=function(e,t){var n=e.filter((function(e){return!!e.flex&&!e.hide})).length,r=0;n&&t&&e.forEach((function(e){e.hide||(e.flex?r+=e.flex:t-=Math.max(e.minWidth,e.width))}));var i=e;if(n){var o=t/r;i=e.map((function(e){var n;if(!e.flex)return Object.assign(Object.assign({},e),{width:Math.max(e.minWidth,e.width)});var r=null!==(n=e.minWidth)&&void 0!==n?n:Qn.width;if(t>0){var i=Math.floor(o*e.flex);r=e.minWidth&&e.minWidth>i?e.minWidth:i}return Object.assign(Object.assign({},e),{width:r})}))}else i=e.map((function(e){return Object.assign(Object.assign({},e),{width:Math.max(e.minWidth,e.width)})}));return i}(t.all.map((function(e){return t.lookup[e]})),i.viewportSizes.width),a={all:o.map((function(e){return e.field})),lookup:ia(n,o)};m(a,r)}),[e,n,m]),E=p.useCallback((function(t){var n=oa(t,e.current.getState().columns);w(n,!1)}),[e,w]),O=p.useCallback((function(e){return E([e])}),[E]),C=p.useCallback((function(t,n){var r=v(t),i=Object.assign(Object.assign({},r),{hide:!n});E([i]),s(),e.current.publishEvent("columnVisibilityChange",{field:t,colDef:i,api:e,isVisible:n})}),[e,s,v,E]),D=p.useCallback((function(t,r){var i=o.columns.all.findIndex((function(e){return e===t}));if(i!==r){n.debug("Moving column ".concat(t," to index ").concat(r));var a={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:r,oldIndex:i,api:e.current};e.current.publishEvent("columnOrderChange",a);var s=Object(l.a)(o.columns.all);s.splice(r,0,s.splice(i,1)[0]),m(Object.assign(Object.assign({},o.columns),{all:s}))}}),[e,o.columns,n,m]),S=p.useCallback((function(t,r){n.debug("Updating column ".concat(t," width to ").concat(r));var i=e.current.getColumn(t);e.current.updateColumn(Object.assign(Object.assign({},i),{width:r})),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:i,api:e,width:r})}),[e,n]);kn(e,{getColumn:v,getAllColumns:g,getColumnIndex:_,getColumnPosition:x,getVisibleColumns:y,getColumnsMeta:b,updateColumn:O,updateColumns:E,setColumnVisibility:C,setColumnIndex:D,setColumnWidth:S},"ColApi"),p.useEffect((function(){if(n.info("GridColumns have changed, new length ".concat(t.columns.length)),t.columns.length>0){var r=function(e,t,n,r,i){r.debug("Hydrating GridColumns with default definitions");var o=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};return Object.entries(n).forEach((function(e){var t=Object(f.a)(e,2),i=t[0],o=t[1];o=Object.assign(Object.assign({},n[o.extendType||"__default__"]),o),r[i]=o})),r}(Mr(),t),a=e.map((function(e){return Object.assign(Object.assign({},function(e,t){return t?e[t]:e.__default__}(o,e.type)),e)}));if(n){var s=Object.assign({},Fi);return s.headerName=i("checkboxSelectionHeaderName"),[s].concat(Object(l.a)(a))}return a}(t.columns,h.columnTypes,!!h.checkboxSelection,n,e.current.getLocaleText),i=oa(r);w(i)}else m({all:[],lookup:{}})}),[n,e,t.columns,h.columnTypes,h.checkboxSelection,m,w]),p.useEffect((function(){n.debug("GridColumns gridState.viewportSizes.width, changed ".concat(o.viewportSizes.width));var t=dn(e.current.getState());e.current.updateColumns(t)}),[e,o.viewportSizes.width,n]),ao(e,"columnVisibilityChange",t.onColumnVisibilityChange)}var sa=function(e,t){return t>0&&e>0?Math.ceil(e/t):0},ua=function(e){return e.pageCount?Object.assign(Object.assign({},e),{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e};function la(e,t,n){var r=t?t(e):e.id;return function(e,t,n){if(null==e)throw new Error(["Material-UI: The data grid component requires all rows to have a unique id property.",n||"A row was provided without id in the rows prop:",JSON.stringify(t)].join("\n"))}(r,e,n),r}var ca=function(e,t){var n=t.rows,r=t.getRowId,i=Sn("useGridRows"),o=Br(e),a=Object(f.a)(o,3),s=a[0],u=a[1],c=a[2],d=p.useRef(),h=p.useCallback((function(e){null==d.current&&(d.current=setTimeout((function(){i.debug("Updating component"),d.current=null,e&&e(),c()}),100))}),[i,c]),m=p.useRef(s.rows);p.useEffect((function(){return function(){return clearTimeout(d.current)}}),[]),p.useEffect((function(){u((function(e){return m.current=function(e,t,n){var r=Object.assign(Object.assign({},{idRowsLookup:{},allRows:[],totalRowCount:0}),{totalRowCount:t&&t>e.length?t:e.length});return e.forEach((function(e){var t=la(e,n);r.allRows.push(t),r.idRowsLookup[t]=e})),r}(n,e.options.rowCount,r),Object.assign(Object.assign({},e),{rows:m.current})}))}),[r,n,u]);var v=p.useCallback((function(t){return e.current.getSortedRowIds?e.current.getSortedRowIds().indexOf(t):e.current.state.rows.allRows.indexOf(t)}),[e]),g=p.useCallback((function(t){return e.current.getSortedRowIds?e.current.getSortedRowIds()[t]:e.current.state.rows.allRows[t]}),[e]),y=p.useCallback((function(t){var n;return null!==(n=e.current.state.rows.idRowsLookup[t])&&void 0!==n?n:null}),[e]),b=p.useCallback((function(t){i.debug("updating all rows, new length ".concat(t.length)),m.current.allRows.length>0&&e.current.publishEvent("rowsClear");var n=[],o=t.reduce((function(e,t){var i=la(t,r);return e[i]=t,n.push(i),e}),{}),a=s.options&&s.options.rowCount&&s.options.rowCount>n.length?s.options.rowCount:n.length;m.current={idRowsLookup:o,allRows:n,totalRowCount:a},u((function(e){return Object.assign(Object.assign({},e),{rows:m.current})})),h((function(){return e.current.publishEvent("rowsSet")}))}),[i,s.options,u,h,e,r]),_=p.useCallback((function(t){var n=t.reduce((function(e,t){var n=la(t,r,"A row was provided without id when calling updateRows():");return e[n]=null!=e[n]?Object.assign(Object.assign({},e[n]),t):t,e}),{}),i=[],o=[],a=null;if(Object.entries(n).forEach((function(e){var t=Object(f.a)(e,2),n=t[0],r=t[1];if("delete"!==r._action){var s=y(n);s?(a||(a=Object.assign({},m.current.idRowsLookup)),a[n]=Object.assign(Object.assign({},s),r)):i.push(r)}else o.push(n)})),a&&(m.current.idRowsLookup=a,u((function(e){return Object.assign(Object.assign({},e),{rows:Object.assign({},m.current)})}))),o.length>0||i.length>0){o.forEach((function(e){delete m.current.idRowsLookup[e]}));var s=[].concat(Object(l.a)(Object.values(m.current.idRowsLookup)),i);b(s)}h((function(){return e.current.publishEvent("rowsUpdate")}))}),[e,h,y,r,u,b]),x=p.useCallback((function(){return new Map(e.current.state.rows.allRows.map((function(t){return[t,e.current.state.rows.idRowsLookup[t]]})))}),[e]),w=p.useCallback((function(){return e.current.state.rows.totalRowCount}),[e]),E=p.useCallback((function(){return e.current.state.rows.allRows}),[e]);kn(e,{getRowIndex:v,getRowIdFromRowIndex:g,getRow:y,getRowModels:x,getRowsCount:w,getAllRowIds:E,setRows:b,updateRows:_},"GridRowApi")};var fa=function(e,t){var n=Sn("useGridVirtualColumns"),r=p.useRef(null),i=p.useRef(null),o=p.useRef(0),a=Nr(t,mn),s=Nr(t,hn),u=p.useCallback((function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length;if(n.length<=0)return-1;if(r>=i)return r;var o=r+Math.floor((i-r)/2);return t<=n[o]?e(t,n,r,o):e(t,n,o+1,i)}(e,a.positions)}),[a.positions]),l=p.useCallback((function(e){return s.length?s[u(e)]:null}),[u,s]),c=p.useCallback((function(c,f){var p,d,h,m;if(!c)return!1;i.current=c;var v=c.windowSizes.width;o.current=f,n.debug("GridColumns from ".concat(null===(p=l(f))||void 0===p?void 0:p.field," to ").concat(null===(d=l(f+v))||void 0===d?void 0:d.field));var g=u(f),y=u(f+v),b=(null===(h=null==r?void 0:r.current)||void 0===h?void 0:h.firstColIdx)||0,_=(null===(m=null==r?void 0:r.current)||void 0===m?void 0:m.lastColIdx)||0,x=e.columnBuffer,w=x>1?x-1:x,E=Math.abs(g-w-b),O=Math.abs(y+w-_);n.debug("Column buffer: ".concat(x,", tolerance: ").concat(w)),n.debug("Previous values => first: ".concat(b,", last: ").concat(_)),n.debug("Current displayed values => first: ".concat(g,", last: ").concat(y)),n.debug("Difference with first: ".concat(E," and last: ").concat(O," "));var C=s.length>0?s.length-1:0,D=g-x>=0?g-x:0,S={leftEmptyWidth:a.positions[D],rightEmptyWidth:0,firstColIdx:D,lastColIdx:y+x>=C?C:y+x};return t.current.state.scrollBar.hasScrollX?S.rightEmptyWidth=a.totalWidth-a.positions[S.lastColIdx]-s[S.lastColIdx].width:e.disableExtendRowFullWidth||(S.rightEmptyWidth=t.current.state.viewportSizes.width-a.totalWidth),$t(S,r.current)?(n.debug("No rendering needed on columns"),!1):(r.current=S,n.debug("New columns state to render",S),!0)}),[n,l,u,e.columnBuffer,e.disableExtendRowFullWidth,s,a.positions,a.totalWidth,t]);kn(t,{},"ColumnVirtualizationApi");var f=p.useCallback((function(){n.debug("Clearing previous renderedColRef"),r.current=null}),[n,r]);return io(t,"columnsChange",f),io(t,"debouncedResize",f),[r,c]};function pa(e){var t=e.clientHeight,n=e.scrollTop,r=e.offsetHeight,i=e.offsetTop,o=i+r;return o-t>n?o-t:i<n?i:void 0}var da=function(e){var t,n=Sn("useGridVirtualRows"),r=e.current.columnHeadersElementRef,i=e.current.windowRef,o=e.current.renderingZoneRef,a=Br(e),s=Object(f.a)(a,3),u=s[0],l=s[1],c=s[2],d=Nr(e,cn),h=Nr(e,Wr),m=Nr(e,wi),v=Nr(e,ai),g=Nr(e,hn),y=Nr(e,mn),b=function(e,t){var n=Sn("useGridScrollFn"),r=p.useRef();return[p.useCallback((function(i){var o;i.left===(null===(o=r.current)||void 0===o?void 0:o.left)&&i.top===r.current.top||e&&e.current&&(n.debug("Moving ".concat(e.current.className," to: ").concat(i.left,"-").concat(i.top)),e.current.style.transform="translate3d(-".concat(i.left,"px, -").concat(i.top,"px, 0)"),t.current.style.transform="translate3d(-".concat(i.left,"px, 0, 0)"),r.current=i)}),[e,n,t])]}(o,r),_=Object(f.a)(b,1)[0],x=fa(d,e),w=Object(f.a)(x,2),E=w[0],O=w[1],C=p.useCallback((function(e){var t=!1;return l((function(n){var r=Object.assign(Object.assign({},n.rendering),e);return $t(n.rendering,r)?n:(t=!0,Object.assign(Object.assign({},n),{rendering:r}))})),t}),[l]),D=p.useCallback((function(t){if(null==e.current.state.containerSizes)return null;var n=0;d.pagination&&null!=m.pageSize&&"client"===d.paginationMode&&(n=m.pageSize*m.page);var r=t*e.current.state.containerSizes.viewportPageSize+n,i=r+e.current.state.containerSizes.renderingZonePageSize,o=e.current.state.containerSizes.virtualRowsCount+n;return i>o&&(i=o),{page:t,firstRowIdx:r,lastRowIdx:i}}),[e,d.pagination,m.pageSize,d.paginationMode,m.page]),S=p.useCallback((function(){return null==e.current.state.containerSizes?null:Object.assign(Object.assign(Object.assign({},E.current),D(e.current.state.rendering.virtualPage)),{paginationCurrentPage:m.page,pageSize:m.pageSize})}),[E,D,e,m.page,m.pageSize]),k=p.useCallback((function(){var t=S();C({renderContext:t,renderedSizes:e.current.state.containerSizes})&&(n.debug("reRender: trigger rendering"),c())}),[e,S,n,c,C]),A=p.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=e.current.getState(),o=r.containerSizes;if(i&&i.current&&o){var a=r.scrollBar,s=i.current,u=s.scrollLeft,l=s.scrollTop;n.debug("Handling scroll Left: ".concat(u," Top: ").concat(l));var c=O(o,u),f=u,p=r.containerSizes.renderingZoneScrollHeight,d=r.rendering.virtualPage,h=p>0?Math.floor(l/p):0,v=l%p,g={left:a.hasScrollX?f:0,top:o.isVirtualized?v:l};o.isVirtualized&&d!==h?(C({virtualPage:h}),n.debug("Changing page from ".concat(d," to ").concat(h)),c=!0):(!o.isVirtualized&&d>0&&(n.debug("Virtualization disabled, setting virtualPage to 0"),C({virtualPage:0})),_(g)),C({renderingZoneScroll:g,realScroll:{left:i.current.scrollLeft,top:i.current.scrollTop}}),e.current.publishEvent("rowsScroll",g);var y=r.rendering.renderContext&&r.rendering.renderContext.paginationCurrentPage!==m.page;(t||c||y)&&k()}}),[e,n,m.page,k,_,C,O,i]),T=p.useCallback((function(t){if(0===v||0===g.length)return!1;n.debug("Scrolling to cell at row ".concat(t.rowIndex,", col: ").concat(t.colIndex," "));var r={};if(null!=t.colIndex&&(r.left=pa({clientHeight:i.current.clientWidth,scrollTop:i.current.scrollLeft,offsetHeight:g[t.colIndex].width,offsetTop:y.positions[t.colIndex]})),null!=t.rowIndex){var o=d.pagination?t.rowIndex-m.page*m.pageSize:t.rowIndex;r.top=pa({clientHeight:i.current.clientHeight,scrollTop:i.current.scrollTop,offsetHeight:h,offsetTop:h*o})}return(void 0!==typeof r.left||void 0!==typeof r.top)&&(e.current.scroll(r),!0)}),[v,g,n,e,d.pagination,m.page,m.pageSize,i,y.positions,h]),P=p.useCallback((function(){_({left:0,top:0}),C({virtualPage:0}),i&&i.current&&(i.current.scrollTop=0,i.current.scrollLeft=0),C({renderingZoneScroll:{left:0,top:0}})}),[_,C,i]),M=p.useRef(null),j=p.useCallback((function(){i.current.scrollLeft<0||i.current.scrollTop<0||(M.current||l((function(e){return Object.assign(Object.assign({},e),{isScrolling:!0})})),clearTimeout(M.current),M.current=setTimeout((function(){M.current=null,l((function(e){return Object.assign(Object.assign({},e),{isScrolling:!1})})),c()}),300),e.current.updateViewport&&e.current.updateViewport())}),[i,e,l,c]),I=p.useCallback((function(e){i.current&&null!=e.left&&r.current&&(r.current.scrollLeft=e.left,i.current.scrollLeft=e.left,n.debug("Scrolling left: ".concat(e.left))),i.current&&null!=e.top&&(i.current.scrollTop=e.top,n.debug("Scrolling top: ".concat(e.top))),n.debug("Scrolling, updating container, and viewport")}),[i,r,n]),F=p.useCallback((function(){return ro(e.current.getState())}),[e]),R=p.useCallback((function(){return u.containerSizes}),[u.containerSizes]),L=p.useCallback((function(){return u.rendering.renderContext||void 0}),[u.rendering.renderContext]);Zt((function(){o&&o.current&&(n.debug("applying scrollTop ",u.rendering.renderingZoneScroll.top),_(u.rendering.renderingZoneScroll))})),kn(e,{scroll:I,scrollToIndexes:T,getContainerPropsState:R,getRenderContextState:L,getScrollPosition:F,updateViewport:A},"GridVirtualizationApi"),p.useEffect((function(){var t;(null===(t=u.rendering.renderContext)||void 0===t?void 0:t.paginationCurrentPage)!==m.page&&e.current.updateViewport&&(n.debug("State paginationState.page changed to ".concat(m.page,". ")),e.current.updateViewport(!0),P())}),[e,m.page,null===(t=u.rendering.renderContext)||void 0===t?void 0:t.paginationCurrentPage,n,P]),p.useEffect((function(){u.containerSizes!==u.rendering.renderedSizes&&e.current.updateViewport&&(n.debug("gridState.containerSizes updated, updating viewport. "),e.current.updateViewport(!0))}),[e,u.containerSizes,u.rendering.renderedSizes,n]),p.useEffect((function(){e.current.updateViewport&&(n.debug("totalRowCount has changed to ".concat(v,", updating viewport.")),e.current.updateViewport(!0))}),[n,v,u.viewportSizes,u.scrollBar,u.containerSizes,e]),p.useEffect((function(){return function(){clearTimeout(M.current)}}),[]);var z=p.useCallback((function(e){e.target.scrollLeft=0,e.target.scrollTop=0}),[]);ra(e,i,"scroll",j,{passive:!0}),ra(e,(function(){var t,n,r;return null===(r=null===(n=null===(t=e.current)||void 0===t?void 0:t.renderingZoneRef)||void 0===n?void 0:n.current)||void 0===r?void 0:r.parentElement}),"scroll",z),ra(e,(function(){var t,n;return null===(n=null===(t=e.current)||void 0===t?void 0:t.columnHeadersContainerElementRef)||void 0===n?void 0:n.current}),"scroll",z)},ha=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"on",value:function(e,t,n){Array.isArray(this.events[e])||(this.events[e]=[]),n&&n.isFirst?this.events[e].splice(0,0,t):this.events[e].push(t)}}]),n}(function(){function e(){Object(o.a)(this,e),this.maxListeners=10,this.warnOnce=!1,this.events={}}return Object(a.a)(e,[{key:"on",value:function(e,t){Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(t)}},{key:"removeListener",value:function(e,t){if(Array.isArray(this.events[e])){var n=this.events[e].indexOf(t);n>-1&&this.events[e].splice(n,1)}}},{key:"removeAllListeners",value:function(e){e?Array.isArray(this.events[e])&&(this.events[e]=[]):this.events={}}},{key:"emit",value:function(e){if(Array.isArray(this.events[e])){for(var t=this.events[e].slice(),n=t.length,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(var a=0;a<n;a+=1)t[a].apply(this,i)}}},{key:"once",value:function(e,t){var n=this;this.on(e,(function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.removeListener(e,r),t.apply(n,o)}))}}]),e}());var ma=!1;function va(){if("undefined"==typeof document)return ma;if(!ma){var e=document.createElement("div");e.style.touchAction="none",document.body.appendChild(e),ma="none"===window.getComputedStyle(e).touchAction,e.parentElement.removeChild(e)}return ma}function ga(e,t){if(void 0!==t&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}var ya=p.memo((function(e){var t=re(),n=Nr(t,cn),r="asc"===Object(f.a)(n.sortingOrder,1)[0]?null==t?void 0:t.current.components.ColumnSortedAscendingIcon:null==t?void 0:t.current.components.ColumnSortedDescendingIcon;return r?p.createElement(r,Object.assign({},e)):null})),ba=p.forwardRef((function(e,t){var n=e.message,r=oe(e,["message"]),i=re().current.getLocaleText("errorOverlayDefaultLabel");return p.createElement(ei,Object.assign({ref:t},r),n||i)})),_a=p.forwardRef((function(e,t){var n=re().current.getLocaleText("noResultsOverlayLabel");return p.createElement(ei,Object.assign({ref:t},e),n)})),xa={BooleanCellTrueIcon:Xn,BooleanCellFalseIcon:Gn,OpenFilterButtonIcon:Ln,ColumnFilteredIcon:zn,ColumnSelectorIcon:Bn,ColumnMenuIcon:Wn,ColumnUnsortedIcon:ya,ColumnSortedAscendingIcon:Fn,ColumnSortedDescendingIcon:Rn,ColumnResizeIcon:Nn,DensityCompactIcon:Un,DensityStandardIcon:Vn,DensityComfortableIcon:Hn,ExportIcon:Zn},wa=Object.assign(Object.assign({},xa),{Checkbox:M.a,ColumnMenu:_o,ColumnsPanel:function(){var e=To(),t=re(),n=p.useRef(null),r=Nr(t,dn),i=Nr(t,cn).disableColumnReorder,o=p.useState(""),a=Object(f.a)(o,2),s=a[0],u=a[1],l=p.useCallback((function(e){var n=e.target.name,r=t.current.getColumn(n);t.current.setColumnVisibility(n,!!r.hide)}),[t]),c=p.useCallback((function(e){t.current.updateColumns(r.map((function(t){return t.hide=e,t})))}),[t,r]),d=p.useCallback((function(){return c(!1)}),[c]),h=p.useCallback((function(){return c(!0)}),[c]),m=p.useCallback((function(e){u(e.target.value)}),[]),v=p.useMemo((function(){return s?r.filter((function(e){return e.field.toLowerCase().indexOf(s.toLowerCase())>-1||e.headerName&&e.headerName.toLowerCase().indexOf(s.toLowerCase())>-1})):r}),[r,s]);return p.useEffect((function(){n.current.focus()}),[]),p.createElement(Ao,null,p.createElement(Do,null,p.createElement(P.a,{label:t.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:t.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:n,value:s,onChange:m,variant:"standard",fullWidth:!0})),p.createElement(wo,null,p.createElement("div",{className:e.container},v.map((function(n){return p.createElement("div",{key:n.field,className:e.column},p.createElement(G.a,{control:p.createElement(H.a,{className:e.switch,checked:!n.hide,onClick:l,name:n.field,color:"primary",size:"small"}),label:n.headerName||n.field}),!i&&qi&&p.createElement(R.a,{draggable:!0,className:e.dragIcon,"aria-label":t.current.getLocaleText("columnsPanelDragIconLabel"),title:t.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0},p.createElement(Yn,null)))})))),p.createElement(Oo,null,p.createElement(W.a,{onClick:h,color:"primary"},t.current.getLocaleText("columnsPanelHideAllButton")),p.createElement(W.a,{onClick:d,color:"primary"},t.current.getLocaleText("columnsPanelShowAllButton"))))},ErrorOverlay:ba,FilterPanel:function(){var e=re(),t=Br(e),n=Object(f.a)(t,1)[0],r=Nr(e,cn).disableMultipleColumnsFiltering,i=p.useMemo((function(){return n.filter.items.length>1}),[n.filter.items.length]),o=p.useCallback((function(t){e.current.upsertFilter(t)}),[e]),a=p.useCallback((function(t){e.current.applyFilterLinkOperator(t)}),[e]),s=p.useCallback((function(){e.current.upsertFilter({})}),[e]),u=p.useCallback((function(t){e.current.deleteFilter(t)}),[e]);return p.useEffect((function(){0===n.filter.items.length&&s()}),[s,n.filter.items.length]),p.createElement(Ao,null,p.createElement(wo,null,n.filter.items.map((function(e,t){return p.createElement(Fo,{key:null==e.id?t:e.id,item:e,applyFilterChanges:o,deleteFilter:u,hasMultipleFilters:i,showMultiFilterOperators:t>0,multiFilterOperator:n.filter.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:a})}))),!r&&p.createElement(Oo,null,p.createElement(W.a,{onClick:s,startIcon:p.createElement(qn,null),color:"primary"},e.current.getLocaleText("filterPanelAddFilter"))))},Footer:Wo,Header:Go,PreferencesPanel:jo,LoadingOverlay:qo,NoResultsOverlay:_a,NoRowsOverlay:$o,Pagination:Zo,Panel:Mo}),Ea=function(e,t){var n,r;return"v5"===tn()?{components:{MuiDataGrid:{defaultProps:{localeText:Object.assign(Object.assign({},e),{MuiTablePagination:(null===(n=null==t?void 0:t.components)||void 0===n?void 0:n.MuiTablePagination.defaultProps)||{}})}}}}:{props:{MuiDataGrid:{localeText:Object.assign(Object.assign({},e),{MuiTablePagination:(null===(r=null==t?void 0:t.props)||void 0===r?void 0:r.MuiTablePagination)||{}})}}}},Oa=(Ea({noRowsLabel:"\u041d\u044f\u043c\u0430 \u0440\u0435\u0434\u043e\u0432\u0435",errorOverlayDefaultLabel:"\u0412\u044a\u0437\u043d\u0438\u043a\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430.",toolbarDensity:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityLabel:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430",toolbarColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",toolbarColumnsLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0438",toolbarFilters:"\u0424\u0438\u043b\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u0438\u0439 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipActive:function(e){return"".concat(e," \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438")},columnsPanelTextFieldLabel:"\u041d\u0430\u043c\u0435\u0440\u0438 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043b\u0430\u0432\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelDragIconLabel:"\u041f\u0440\u0435\u043d\u0430\u0440\u0435\u0434\u0438 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0412\u0441\u0438\u0447\u043a\u0438",columnsPanelHideAllButton:"\u0421\u043a\u0440\u0438\u0439 \u0412\u0441\u0438\u0447\u043a\u0438",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438 \u0424\u0438\u043b\u0442\u044a\u0440",filterPanelDeleteIconLabel:"\u0418\u0437\u0442\u0440\u0438\u0439",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",filterOperatorContains:"\u0441\u044a\u0434\u044a\u0440\u0436\u0430",filterOperatorEquals:"\u0440\u0430\u0432\u043d\u043e",filterOperatorStartsWith:"\u0437\u0430\u043f\u043e\u0447\u0432\u0430 \u0441",filterOperatorEndsWith:"\u0437\u0430\u0432\u044a\u0440\u0448\u0432\u0430 \u0441",filterOperatorIs:"\u0435",filterOperatorNot:"\u043d\u0435 \u0435",filterOperatorAfter:"\u0435 \u0441\u043b\u0435\u0434",filterOperatorOnOrAfter:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u0441\u043b\u0435\u0434",filterOperatorBefore:"\u0435 \u043f\u0440\u0435\u0434\u0438",filterOperatorOnOrBefore:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u0438",filterPanelInputLabel:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442",filterPanelInputPlaceholder:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u0444\u0438\u043b\u0442\u044a\u0440\u0430",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0436\u0438 \u043a\u043e\u043b\u043e\u043d\u0438\u0442\u0435",columnMenuFilter:"\u0424\u0438\u043b\u0442\u0440\u0438",columnMenuHideColumn:"\u0421\u043a\u0440\u0438\u0439",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0430\u043d\u0435\u0442\u043e",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u0432\u044a\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u043d\u0438\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438")},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" \u0438\u0437\u0431\u0440\u0430\u043d\u0438 \u0440\u0435\u0434\u043e\u0432\u0435":" \u0438\u0437\u0431\u0440\u0430\u043d \u0440\u0435\u0434")},footerTotalRows:"\u041e\u0431\u0449\u043e R\u0435\u0434\u043e\u0432\u0435:"},J.bgBG),Ea({noRowsLabel:"\u017d\xe1dn\xe9 z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li se \u017eadn\xe9 v\xfdsledky.",errorOverlayDefaultLabel:"Stala sa nep\u0159edv\xeddan\xe1 chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xed",toolbarDensityStandard:"Standartn\xed",toolbarDensityComfortable:"Komfortn\xed",toolbarColumns:"Sloupce",toolbarColumnsLabel:"Vybrat sloupec",toolbarFilters:"Filtry",toolbarFiltersLabel:"Zobrazit filtry",toolbarFiltersTooltipHide:"Skr\xfdt filtry",toolbarFiltersTooltipShow:"Zobrazit filtry",toolbarFiltersTooltipActive:function(e){var t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),"".concat(e," ").concat(t)},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"St\xe1hnout jako CSV",columnsPanelTextFieldLabel:"Naj\xedt sloupec",columnsPanelTextFieldPlaceholder:"N\xe1zev sloupce",columnsPanelDragIconLabel:"Uspo\u0159\xe1dat sloupce",columnsPanelShowAllButton:"Zobrazit v\u0161e",columnsPanelHideAllButton:"Skr\xfdt v\u0161e",filterPanelAddFilter:"P\u0159idat filtr",filterPanelDeleteIconLabel:"Odstranit",filterPanelOperators:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Nebo",filterPanelColumns:"Sloupce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtru",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 se",filterOperatorStartsWith:"za\u010d\xedn\xe1 s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nen\xed",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na nebo po",filterOperatorBefore:"je p\u0159ed",filterOperatorOnOrBefore:"je na nebo d\u0159\xedve",filterValueAny:"jak\xfdkoliv",filterValueTrue:"ano",filterValueFalse:"ne",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazit sloupce",columnMenuFilter:"Filtr",columnMenuHideColumn:"Skr\xfdt",columnMenuUnsort:"Zru\u0161it filtry",columnMenuSortAsc:"Se\u0159adit vzestupn\u011b",columnMenuSortDesc:"Se\u0159adit sestupn\u011b",columnHeaderFiltersTooltipActive:function(e){var t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"Zobrazit filtry",columnHeaderSortIconLabel:"Filtrovat",footerRowSelected:function(e){var t="vybran\xfdch z\xe1znam\u016f";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),"".concat(e," ").concat(t)},footerTotalRows:"Celkem \u0159\xe1dk\u016f:",checkboxSelectionHeaderName:"V\xfdb\u011br \u0159\xe1dku",booleanCellTrueLabel:"ano",booleanCellFalseLabel:"ne"},J.csCZ),Ea({noRowsLabel:"Keine Eintr\xe4ge",noResultsOverlayLabel:"Keine Ergebnisse gefunden.",errorOverlayDefaultLabel:"Ein unerwarteter Fehler ist aufgetreten.",toolbarDensity:"Zeilenh\xf6he",toolbarDensityLabel:"Zeilenh\xf6he",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Breit",toolbarColumns:"Spalten",toolbarColumnsLabel:"Zeige Spaltenauswahl",toolbarFilters:"Filter",toolbarFiltersLabel:"Zeige Filter",toolbarFiltersTooltipHide:"Verberge Filter",toolbarFiltersTooltipShow:"Zeige Filter",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktive Filter":" aktiver Filter")},columnsPanelTextFieldLabel:"Finde Spalte",columnsPanelTextFieldPlaceholder:"Spalten\xfcberschrift",columnsPanelDragIconLabel:"Spalte umsortieren",columnsPanelShowAllButton:"Zeige alle",columnsPanelHideAllButton:"Verberge alle",filterPanelAddFilter:"Filter hinzuf\xfcgen",filterPanelDeleteIconLabel:"L\xf6schen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"Und",filterPanelOperatorOr:"Oder",filterPanelColumns:"Spalten",filterPanelInputLabel:"Wert",filterPanelInputPlaceholder:"Wert filtern",filterOperatorContains:"beinhaltet",filterOperatorEquals:"ist gleich",filterOperatorStartsWith:"beginnt mit",filterOperatorEndsWith:"endet mit",filterOperatorIs:"ist",filterOperatorNot:"ist nicht",filterOperatorOnOrAfter:"ist an oder nach",filterOperatorBefore:"ist vor",filterOperatorOnOrBefore:"ist an oder vor",filterOperatorAfter:"ist nach",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"Zeige alle Spalten",columnMenuFilter:"Filter",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Sortierung deaktivieren",columnMenuSortAsc:"Sortiere aufsteigend",columnMenuSortDesc:"Sortiere absteigend",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktive Filter":" aktiver Filter")},columnHeaderFiltersLabel:"Zeige Filter",columnHeaderSortIconLabel:"Sortieren",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" Eintr\xe4ge ausgew\xe4hlt":" Eintrag ausgew\xe4hlt")},footerTotalRows:"Gesamt:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," von ").concat(t.toLocaleString())}},J.deDE),Ea({noRowsLabel:"\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03ba\u03b1\u03c4\u03b1\u03c7\u03c9\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2",errorOverlayDefaultLabel:"\u03a0\u03b1\u03c1\u03bf\u03c5\u03c3\u03b9\u03ac\u03c3\u03c4\u03b7\u03ba\u03b5 \u03b1\u03c0\u03c1\u03cc\u03b2\u03bb\u03b5\u03c0\u03c4\u03bf \u03c3\u03c6\u03ac\u03bb\u03bc\u03b1.",toolbarDensity:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityLabel:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityCompact:"\u03a3\u03c5\u03bc\u03c0\u03b1\u03b3\u03ae\u03c2",toolbarDensityStandard:"\u03a0\u03c1\u03bf\u03ba\u03b1\u03b8\u03bf\u03c1\u03b9\u03c3\u03bc\u03ad\u03bd\u03bf",toolbarDensityComfortable:"\u03a0\u03bb\u03b1\u03c4\u03cd",toolbarColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarColumnsLabel:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03c3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarFilters:"\u03a6\u03af\u03bb\u03c4\u03c1\u03b1",toolbarFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipHide:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipShow:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1":" \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf")},toolbarExport:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportLabel:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportCSV:"\u039b\u03ae\u03c8\u03b7 \u03c9\u03c2 CSV",columnsPanelTextFieldLabel:"\u0395\u03cd\u03c1\u03b5\u03c3\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelTextFieldPlaceholder:"\u0395\u03c0\u03b9\u03ba\u03b5\u03c6\u03b1\u03bb\u03af\u03b4\u03b1 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelDragIconLabel:"\u0391\u03bd\u03b1\u03b4\u03b9\u03ac\u03c4\u03b1\u03be\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelShowAllButton:"\u03a0\u03c1\u03bf\u03b2\u03bf\u03bb\u03ae \u03cc\u03bb\u03c9\u03bd",columnsPanelHideAllButton:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03cc\u03bb\u03c9\u03bd",filterPanelAddFilter:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterPanelDeleteIconLabel:"\u0394\u03b9\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae",filterPanelOperators:"\u03a4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2",filterPanelOperatorAnd:"\u039a\u03b1\u03af",filterPanelOperatorOr:"\u0389",filterPanelColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",filterPanelInputLabel:"\u03a4\u03b9\u03bc\u03ae",filterPanelInputPlaceholder:"\u03a4\u03b9\u03bc\u03ae \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterOperatorContains:"\u03c0\u03b5\u03c1\u03b9\u03ad\u03c7\u03b5\u03b9",filterOperatorEquals:"\u03b9\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9",filterOperatorStartsWith:"\u03be\u03b5\u03ba\u03b9\u03bd\u03ac\u03b5\u03b9 \u03bc\u03b5",filterOperatorEndsWith:"\u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03bd\u03b5\u03b9 \u03bc\u03b5",filterOperatorIs:"\u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorNot:"\u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03b5\u03c4\u03ac",filterOperatorOnOrAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03bc\u03b5\u03c4\u03ac",filterOperatorBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03b9\u03bd",filterOperatorOnOrBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03c0\u03c1\u03b9\u03bd",columnMenuLabel:"\u039c\u03b5\u03bd\u03bf\u03cd",columnMenuShowColumns:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c3\u03c4\u03b7\u03bb\u03ce\u03bd",columnMenuFilter:"\u03a6\u03af\u03bb\u03c4\u03c1\u03bf",columnMenuHideColumn:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7",columnMenuUnsort:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7\u03c2",columnMenuSortAsc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03b1\u03cd\u03be\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnMenuSortDesc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03c6\u03b8\u03af\u03bd\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1":" \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf")},columnHeaderFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",columnHeaderSortIconLabel:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b5\u03c2 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ad\u03c2":" \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae")},footerTotalRows:"\u03a3\u03cd\u03bd\u03bf\u03bb\u03bf \u0393\u03c1\u03b1\u03bc\u03bc\u03ce\u03bd:"}),Ea(An,J.enUS),Ea({noRowsLabel:"Sin filas",errorOverlayDefaultLabel:"Ha ocurrido un error.",toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comoda",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtros activos":" filtro activo")},toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",columnsPanelTextFieldLabel:"Columna de b\xfasqueda",columnsPanelTextFieldPlaceholder:"T\xedtulo de columna",columnsPanelDragIconLabel:"Reorder columna",columnsPanelShowAllButton:"Mostrar todo",columnsPanelHideAllButton:"Ocultar todo",filterPanelAddFilter:"Agregar filtro",filterPanelDeleteIconLabel:"Borrar",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor de filtro",filterOperatorContains:"contiene",filterOperatorEquals:"es igual",filterOperatorStartsWith:"comienza con",filterOperatorEndsWith:"termina con",filterOperatorIs:"es",filterOperatorNot:"no es",filterOperatorAfter:"es posterior",filterOperatorOnOrAfter:"es en o posterior",filterOperatorBefore:"es anterior",filterOperatorOnOrBefore:"es en o anterior",filterOperatorIsEmpty:"est\xe1 vac\xedo",filterOperatorIsNotEmpty:"no esta vac\xedo",columnMenuLabel:"Men\xfa",columnMenuShowColumns:"Mostrar columnas",columnMenuFilter:"Filtro",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desordenar",columnMenuSortAsc:"Ordenar ASC",columnMenuSortDesc:"Ordenar DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtros activos":" filtro activo")},columnHeaderFiltersLabel:"Mostrar filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" filas seleccionadas":" fila seleccionada")},footerTotalRows:"Filas Totales:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," de ").concat(t.toLocaleString())}},J.esES),Ea({noRowsLabel:"Pas de r\xe9sultats",noResultsOverlayLabel:"Aucun r\xe9sultat.",errorOverlayDefaultLabel:"Une erreur est apparue.",toolbarDensity:"Densit\xe9",toolbarDensityLabel:"Densit\xe9",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonnes",toolbarColumnsLabel:"Choisir les colonnes",toolbarFilters:"Filtres",toolbarFiltersLabel:"Afficher les filtres",toolbarFiltersTooltipHide:"Cacher les filtres",toolbarFiltersTooltipShow:"Afficher les filtres",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtres actifs":" filtre actif")},toolbarExport:"Exporter",toolbarExportLabel:"Exporter",toolbarExportCSV:"T\xe9l\xe9charger en CSV",columnsPanelTextFieldLabel:"Chercher colonne",columnsPanelTextFieldPlaceholder:"Titre de la colonne",columnsPanelDragIconLabel:"R\xe9organiser la colonne",columnsPanelShowAllButton:"Tout afficher",columnsPanelHideAllButton:"Tout cacher",filterPanelAddFilter:"Ajouter un filtre",filterPanelDeleteIconLabel:"Supprimer",filterPanelOperators:"Op\xe9rateurs",filterPanelOperatorAnd:"Et",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colonnes",filterPanelInputLabel:"Valeur",filterPanelInputPlaceholder:"Filtrer la valeur",filterOperatorContains:"contient",filterOperatorEquals:"\xe9gal \xe0",filterOperatorStartsWith:"commence par",filterOperatorEndsWith:"se termine par",filterOperatorIs:"est",filterOperatorNot:"n'est pas",filterOperatorOnOrAfter:"\xe9gal ou post\xe9rieur",filterOperatorAfter:"post\xe9rieur",filterOperatorOnOrBefore:"\xe9gal ou ant\xe9rieur",filterOperatorBefore:"ant\xe9rieur",filterOperatorIsEmpty:"est vide",filterOperatorIsNotEmpty:"n'est pas vide",columnMenuLabel:"Menu",columnMenuShowColumns:"Afficher les colonnes",columnMenuFilter:"Filtrer",columnMenuHideColumn:"Cacher",columnMenuUnsort:"Annuler le tri",columnMenuSortAsc:"Tri ascendant",columnMenuSortDesc:"Tri descendant",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtres actifs":" filtre actif")},columnHeaderFiltersLabel:"Afficher les filtres",columnHeaderSortIconLabel:"Trier",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" lignes s\xe9lectionn\xe9es":" ligne s\xe9lectionn\xe9e")},footerTotalRows:"Lignes totales :",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," sur ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"S\xe9lection"},J.frFR),Ea({noRowsLabel:"Nessun record",noResultsOverlayLabel:"Nessun record trovato.",errorOverlayDefaultLabel:"Si \xe8 verificato un errore.",toolbarDensity:"Densit\xe0",toolbarDensityLabel:"Densit\xe0",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonne",toolbarColumnsLabel:"Seleziona le colonne",toolbarFilters:"Filtri",toolbarFiltersLabel:"Mostra i filtri",toolbarFiltersTooltipHide:"Nascondi i filtri",toolbarFiltersTooltipShow:"Mostra i filtri",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtri attivi":" filtro attivo")},columnsPanelTextFieldLabel:"Cerca colonna",columnsPanelTextFieldPlaceholder:"Titolo della colonna",columnsPanelDragIconLabel:"Riordina la colonna",columnsPanelShowAllButton:"Mostra tutto",columnsPanelHideAllButton:"Nascondi tutto",filterPanelAddFilter:"Aggiungi un filtro",filterPanelDeleteIconLabel:"Rimuovi",filterPanelOperators:"Operatori",filterPanelOperatorAnd:"E (and)",filterPanelOperatorOr:"O (or)",filterPanelColumns:"Colonne",filterPanelInputLabel:"Valore",filterPanelInputPlaceholder:"Filtra il valore",filterOperatorContains:"contiene",filterOperatorEquals:"uguale a",filterOperatorStartsWith:"comincia per",filterOperatorEndsWith:"termina per",filterOperatorIs:"uguale a",filterOperatorNot:"diversa da",filterOperatorOnOrAfter:"a partire dal",filterOperatorAfter:"dopo il",filterOperatorOnOrBefore:"fino al",filterOperatorBefore:"prima del",filterOperatorIsEmpty:"\xe8 vuoto",filterOperatorIsNotEmpty:"non \xe8 vuoto",columnMenuLabel:"Menu",columnMenuShowColumns:"Mostra le colonne",columnMenuFilter:"Filtra",columnMenuHideColumn:"Nascondi",columnMenuUnsort:"Annulla l'ordinamento",columnMenuSortAsc:"Ordinamento crescente",columnMenuSortDesc:"Ordinamento decrescente",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtri attivi":" filtro attivo")},columnHeaderFiltersLabel:"Mostra i filtri",columnHeaderSortIconLabel:"Ordina",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" record selezionati":" record selezionato")},footerTotalRows:"Record totali :",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," di ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Seleziona"},J.itIT),Ea({noRowsLabel:"\u884c\u304c\u3042\u308a\u307e\u305b\u3093",errorOverlayDefaultLabel:"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",toolbarDensity:"\u884c\u9593\u9694",toolbarDensityLabel:"\u884c\u9593\u9694",toolbarDensityCompact:"\u30b3\u30f3\u30d1\u30af\u30c8",toolbarDensityStandard:"\u6a19\u6e96",toolbarDensityComfortable:"\u3072\u308d\u3081",toolbarColumns:"\u5217\u4e00\u89a7",toolbarColumnsLabel:"\u5217\u9078\u629e",toolbarFilters:"\u30d5\u30a3\u30eb\u30bf\u30fc",toolbarFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipHide:"\u30d5\u30a3\u30eb\u30bf\u30fc\u975e\u8868\u793a",toolbarFiltersTooltipShow:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipActive:function(e){return"".concat(e,"\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d")},toolbarExport:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportLabel:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportCSV:"CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",columnsPanelTextFieldLabel:"\u5217\u691c\u7d22",columnsPanelTextFieldPlaceholder:"\u691c\u7d22\u30af\u30a8\u30ea\u3092\u5165\u529b...",columnsPanelDragIconLabel:"\u5217\u4e26\u3079\u66ff\u3048",columnsPanelShowAllButton:"\u3059\u3079\u3066\u8868\u793a",columnsPanelHideAllButton:"\u3059\u3079\u3066\u975e\u8868\u793a",filterPanelAddFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8ffd\u52a0",filterPanelDeleteIconLabel:"\u524a\u9664",filterPanelOperators:"\u30aa\u30da\u30ec\u30fc\u30bf",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"\u5217",filterPanelInputLabel:"\u5024",filterPanelInputPlaceholder:"\u5024\u3092\u5165\u529b...",filterOperatorContains:"...\u3092\u542b\u3080",filterOperatorEquals:"...\u306b\u7b49\u3057\u3044",filterOperatorStartsWith:"...\u3067\u59cb\u307e\u308b",filterOperatorEndsWith:"...\u3067\u7d42\u308f\u308b",filterOperatorIs:"...\u3067\u3042\u308b",filterOperatorNot:"...\u3067\u306a\u3044",filterOperatorAfter:"...\u3088\u308a\u5f8c\u308d",filterOperatorOnOrAfter:"...\u4ee5\u964d",filterOperatorBefore:"...\u3088\u308a\u524d",filterOperatorOnOrBefore:"...\u4ee5\u524d",columnMenuLabel:"\u30e1\u30cb\u30e5\u30fc",columnMenuShowColumns:"\u5217\u8868\u793a",columnMenuFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc",columnMenuHideColumn:"\u5217\u975e\u8868\u793a",columnMenuUnsort:"\u30bd\u30fc\u30c8\u89e3\u9664",columnMenuSortAsc:"\u6607\u9806\u30bd\u30fc\u30c8",columnMenuSortDesc:"\u964d\u9806\u30bd\u30fc\u30c8",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,"\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d")},columnHeaderFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",columnHeaderSortIconLabel:"\u30bd\u30fc\u30c8",footerRowSelected:function(e){return"".concat(e,"\u884c\u3092\u9078\u629e\u4e2d")},footerTotalRows:"\u7dcf\u884c\u6570:"},J.jaJP),Ea({noRowsLabel:"Geen resultaten.",errorOverlayDefaultLabel:"Er deed zich een fout voor.",toolbarDensity:"Grootte",toolbarDensityLabel:"Grootte",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Normaal",toolbarDensityComfortable:"Breed",toolbarColumns:"Kolommen",toolbarColumnsLabel:"Kies kolommen",toolbarFilters:"Filters",toolbarFiltersLabel:"Toon filters",toolbarFiltersTooltipHide:"Verberg filters",toolbarFiltersTooltipShow:"Toon filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" actieve filters":" filter actief")},columnsPanelTextFieldLabel:"Zoek kolom",columnsPanelTextFieldPlaceholder:"Kolomtitel",columnsPanelDragIconLabel:"Kolom herschikken",columnsPanelShowAllButton:"Alles tonen",columnsPanelHideAllButton:"Alles verbergen",filterPanelAddFilter:"Filter toevoegen",filterPanelDeleteIconLabel:"Verwijderen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"En",filterPanelOperatorOr:"Of",filterPanelColumns:"Kolommen",filterPanelInputLabel:"Waarde",filterPanelInputPlaceholder:"Filter waarde",filterOperatorContains:"bevat",filterOperatorEquals:"gelijk aan",filterOperatorStartsWith:"begint met",filterOperatorEndsWith:"eindigt met",filterOperatorIs:"is",filterOperatorNot:"is niet",filterOperatorOnOrAfter:"is gelijk of er voor",filterOperatorAfter:"is voor",filterOperatorOnOrBefore:"is gelijk of er na",filterOperatorBefore:"is na",columnMenuLabel:"Menu",columnMenuShowColumns:"Toon kolommen",columnMenuFilter:"Filteren",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Annuleer sortering",columnMenuSortAsc:"Oplopend sorteren",columnMenuSortDesc:"Aflopend sorteren",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" actieve filters":" filter actief")},columnHeaderFiltersLabel:"Toon filters",columnHeaderSortIconLabel:"Sorteren",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" rijen geselecteerd":" rij geselecteerd")},footerTotalRows:"Totaal:"},J.nlNL),Ea({noRowsLabel:"Brak danych",errorOverlayDefaultLabel:"Wyst\u0105pi\u0142 b\u0142\u0105d.",toolbarDensity:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityLabel:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Komfort",toolbarColumns:"Kolumny",toolbarColumnsLabel:"Zaznacz kolumny",toolbarFilters:"Filtry",toolbarFiltersLabel:"Poka\u017c filtry",toolbarFiltersTooltipHide:"Ukryj filtry",toolbarFiltersTooltipShow:"Poka\u017c filtry",toolbarFiltersTooltipActive:function(e){return"Liczba aktywnych filtr\xf3w: ".concat(e)},toolbarExport:"Eksportuj",toolbarExportLabel:"Eksportuj",toolbarExportCSV:"Pobierz jako plik CSV",columnsPanelTextFieldLabel:"Znajd\u017a kolumn\u0119",columnsPanelTextFieldPlaceholder:"Tytu\u0142 kolumny",columnsPanelDragIconLabel:"Zmie\u0144 kolejno\u015b\u0107 kolumn",columnsPanelShowAllButton:"Poka\u017c wszystko",columnsPanelHideAllButton:"Ukryj wszystko",filterPanelAddFilter:"Dodaj filtr",filterPanelDeleteIconLabel:"Usu\u0144",filterPanelOperators:"Operator",filterPanelOperatorAnd:"I",filterPanelOperatorOr:"Lub",filterPanelColumns:"Kolumny",filterPanelInputLabel:"Warto\u015b\u0107",filterPanelInputPlaceholder:"Filtrowana warto\u015b\u0107",filterOperatorContains:"zawiera",filterOperatorEquals:"r\xf3wna si\u0119",filterOperatorStartsWith:"zaczyna si\u0119 od",filterOperatorEndsWith:"ko\u0144czy si\u0119 na",filterOperatorIs:"r\xf3wna si\u0119",filterOperatorNot:"r\xf3\u017cne",filterOperatorAfter:"wi\u0119ksze ni\u017c",filterOperatorOnOrAfter:"wi\u0119ksze lub r\xf3wne",filterOperatorBefore:"mniejsze ni\u017c",filterOperatorOnOrBefore:"mniejsze lub r\xf3wne",columnMenuLabel:"Menu",columnMenuShowColumns:"Poka\u017c wszystkie kolumny",columnMenuFilter:"Filtr",columnMenuHideColumn:"Ukryj",columnMenuUnsort:"Anuluj sortowanie",columnMenuSortAsc:"Sortuj rosn\u0105co",columnMenuSortDesc:"Sortuj malej\u0105co",columnHeaderFiltersTooltipActive:function(e){return"Liczba aktywnych filtr\xf3w: ".concat(e)},columnHeaderFiltersLabel:"Poka\u017c filtry",columnHeaderSortIconLabel:"Sortuj",footerRowSelected:function(e){return"Liczba wybranych wierszy: ".concat(e.toLocaleString())},footerTotalRows:"\u0141\u0105czna liczba wierszy:"},J.plPL),Ea({noRowsLabel:"Nenhuma linha",noResultsOverlayLabel:"Nenhum resultado encontrado.",errorOverlayDefaultLabel:"Ocorreu um erro.",toolbarDensity:"Densidade",toolbarDensityLabel:"Densidade",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padr\xe3o",toolbarDensityComfortable:"Confort\xe1vel",toolbarColumns:"Colunas",toolbarColumnsLabel:"Exibir seletor de colunas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Exibir filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Exibir filtros",toolbarFiltersTooltipActive:function(e){return"".concat(e," ").concat(1!==e?"filtros":"filtro"," ").concat(1!==e?"ativos":"ativo")},toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Baixar como CSV",columnsPanelTextFieldLabel:"Localizar coluna",columnsPanelTextFieldPlaceholder:"T\xedtulo da coluna",columnsPanelDragIconLabel:"Reordenar Coluna",columnsPanelShowAllButton:"Mostrar todas",columnsPanelHideAllButton:"Ocultar todas",filterPanelAddFilter:"Adicionar filtro",filterPanelDeleteIconLabel:"Excluir",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"E",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colunas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Filtrar valor",filterOperatorContains:"cont\xe9m",filterOperatorEquals:"\xe9 igual a",filterOperatorStartsWith:"come\xe7a com",filterOperatorEndsWith:"termina com",filterOperatorIs:"\xe9",filterOperatorNot:"n\xe3o \xe9",filterOperatorOnOrAfter:"em ou ap\xf3s",filterOperatorBefore:"antes de",filterOperatorOnOrBefore:"em ou antes de",filterOperatorAfter:"ap\xf3s",filterOperatorIsEmpty:"est\xe1 vazio",filterOperatorIsNotEmpty:"n\xe3o est\xe1 vazio",columnMenuLabel:"Menu",columnMenuShowColumns:"Exibir colunas",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desfazer ordena\xe7\xe3o",columnMenuSortAsc:"Ordenar do menor para o maior",columnMenuSortDesc:"Ordenar do maior para o menor",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," ").concat(1!==e?"filtros":"filtro"," ").concat(1!==e?"ativos":"ativo")},columnHeaderFiltersLabel:"Exibir Filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" linhas selecionadas":" linha selecionada")},footerTotalRows:"Total de linhas:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," de ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Sele\xe7\xe3o",booleanCellTrueLabel:"sim",booleanCellFalseLabel:"n\xe3o"},J.ptBR),Ea({noRowsLabel:"\u041d\u0435\u0442 \u0441\u0442\u0440\u043e\u043a",errorOverlayDefaultLabel:"\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430.",toolbarDensity:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityLabel:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430\u044f",toolbarColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",toolbarColumnsLabel:"\u0412\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b",toolbarFilters:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u044b\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipActive:function(e){var t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432",n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),"".concat(e," ").concat(t)},toolbarExport:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 CSV",columnsPanelTextFieldLabel:"\u041d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelDragIconLabel:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",columnsPanelHideAllButton:"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",filterOperatorEquals:"\u0440\u0430\u0432\u0435\u043d",filterOperatorStartsWith:"\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441",filterOperatorEndsWith:"\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0440\u0430\u0432\u0435\u043d",filterOperatorNot:"\u043d\u0435 \u0440\u0430\u0432\u0435\u043d",filterOperatorAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterOperatorBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterValueAny:"\u043b\u044e\u0431\u043e\u0439",filterValueTrue:"\u0438\u0441\u0442\u0438\u043d\u0430",filterValueFalse:"\u043b\u043e\u0436\u044c",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0446\u044b",columnMenuFilter:"\u0424\u0438\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u043a\u0440\u044b\u0442\u044c",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e",columnHeaderFiltersTooltipActive:function(e){var t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432",n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",footerRowSelected:function(e){var t="\u0441\u0442\u0440\u043e\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043e",n=e%10;return n>1&&n<5?t="\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b":1===n&&(t="\u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430"),"".concat(e," ").concat(t)},footerTotalRows:"\u0412\u0441\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a:",checkboxSelectionHeaderName:"\u0412\u044b\u0431\u043e\u0440 \u0444\u043b\u0430\u0436\u043a\u0430",booleanCellTrueLabel:"\u0438\u0441\u0442\u0438\u043d\u0430",booleanCellFalseLabel:"\u043b\u043e\u0436\u044c"},J.ruRU),Ea({noRowsLabel:"\u017diadne z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li sa \u017eadne v\xfdsledky.",errorOverlayDefaultLabel:"Stala sa nepredv\xeddan\xe1 chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xe1",toolbarDensityStandard:"\u0160tandartn\xe1",toolbarDensityComfortable:"Komfortn\xe1",toolbarColumns:"St\u013apce",toolbarColumnsLabel:"Vybra\u0165 st\u013apce",toolbarFilters:"Filtre",toolbarFiltersLabel:"Zobrazi\u0165 filtre",toolbarFiltersTooltipHide:"Skry\u0165 filtre ",toolbarFiltersTooltipShow:"Zobrazi\u0165 filtre",toolbarFiltersTooltipActive:function(e){var t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),"".concat(e," ").concat(t)},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Stiahnu\u0165 ako CSV",columnsPanelTextFieldLabel:"N\xe1js\u0165 st\u013apec",columnsPanelTextFieldPlaceholder:"N\xe1zov st\u013apca",columnsPanelDragIconLabel:"Usporiad\u0165 st\u013apce",columnsPanelShowAllButton:"Zobrazi\u0165 v\u0161etko",columnsPanelHideAllButton:"Skry\u0165 v\u0161etko",filterPanelAddFilter:"Prida\u0165 filter",filterPanelDeleteIconLabel:"Odstr\xe1ni\u0165",filterPanelOperators:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Alebo",filterPanelColumns:"St\u013apce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtra",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 sa",filterOperatorStartsWith:"za\u010d\xedna s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nie je",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na alebo po",filterOperatorBefore:"je pred",filterOperatorOnOrBefore:"je na alebo sk\xf4r",filterValueAny:"ak\xfdko\u013evek",filterValueTrue:"\xe1no",filterValueFalse:"nie",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazi\u0165 st\u013apce",columnMenuFilter:"Filter",columnMenuHideColumn:"Skry\u0165",columnMenuUnsort:"Zru\u0161i\u0165 filtre",columnMenuSortAsc:"Zoradi\u0165 vzostupne",columnMenuSortDesc:"Zoradi\u0165 zostupne",columnHeaderFiltersTooltipActive:function(e){var t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"Zobrazi\u0165 filtre",columnHeaderSortIconLabel:"Filtrova\u0165",footerRowSelected:function(e){var t="vybran\xfdch z\xe1znamov";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),"".concat(e," ").concat(t)},footerTotalRows:"Riadkov spolu:",checkboxSelectionHeaderName:"V\xfdber riadku",booleanCellTrueLabel:"\xe1no",booleanCellFalseLabel:"nie"},J.skSK),Ea({noRowsLabel:"Sat\u0131r yok",errorOverlayDefaultLabel:"Bir hata olu\u015ftu.",toolbarDensity:"Yo\u011funluk",toolbarDensityLabel:"Yo\u011funluk",toolbarDensityCompact:"S\u0131k\u0131",toolbarDensityStandard:"Standart",toolbarDensityComfortable:"Rahat",toolbarColumns:"S\xfctunlar",toolbarColumnsLabel:"S\xfctun se\xe7",toolbarFilters:"Filtreler",toolbarFiltersLabel:"Filtreleri g\xf6ster",toolbarFiltersTooltipHide:"Filtreleri gizle",toolbarFiltersTooltipShow:"Filtreleri g\xf6ster",toolbarFiltersTooltipActive:function(e){return"".concat(e," aktif filtre")},toolbarExport:"D\u0131\u015fa aktar",toolbarExportLabel:"D\u0131\u015fa aktar",toolbarExportCSV:"CSV olarak aktar",columnsPanelTextFieldLabel:"S\xfctun ara",columnsPanelTextFieldPlaceholder:"S\xfctun ad\u0131",columnsPanelDragIconLabel:"S\xfctunlar\u0131 yeniden s\u0131rala",columnsPanelShowAllButton:"Hepsini g\xf6ster",columnsPanelHideAllButton:"Hepsini gizle",filterPanelAddFilter:"Filtre Ekle",filterPanelDeleteIconLabel:"Kald\u0131r",filterPanelOperators:"Operat\xf6r",filterPanelOperatorAnd:"Ve",filterPanelOperatorOr:"Veya",filterPanelColumns:"S\xfctunlar",filterPanelInputLabel:"De\u011fer",filterPanelInputPlaceholder:"Filtre de\u011feri",filterOperatorContains:"i\xe7erir",filterOperatorEquals:"e\u015fittir",filterOperatorStartsWith:"ile ba\u015flar",filterOperatorEndsWith:"ile biter",filterOperatorIs:"e\u015fittir",filterOperatorNot:"e\u015fit de\u011fildir",filterOperatorAfter:"b\xfcy\xfck",filterOperatorOnOrAfter:"b\xfcy\xfck e\u015fit",filterOperatorBefore:"k\xfc\xe7\xfck",filterOperatorOnOrBefore:"k\xfc\xe7\xfck e\u015fit",filterOperatorIsEmpty:"bo\u015f",filterOperatorIsNotEmpty:"dolu",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"S\xfctunlar\u0131 g\xf6ster",columnMenuFilter:"Filtre uygula",columnMenuHideColumn:"Gizle",columnMenuUnsort:"S\u0131ralama",columnMenuSortAsc:"S\u0131rala - Artan",columnMenuSortDesc:"S\u0131rala - Azalan",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," filtre aktif")},columnHeaderFiltersLabel:"Filtreleri g\xf6ster",columnHeaderSortIconLabel:"S\u0131rala",footerRowSelected:function(e){return"".concat(e.toLocaleString()," sat\u0131r se\xe7ildi")},footerTotalRows:"Toplam Sat\u0131r:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())}},J.trTR),Ea({noRowsLabel:"\u041d\u0435\u043c\u0430\u0454 \u0440\u044f\u0434\u043a\u0456\u0432",errorOverlayDefaultLabel:"\u0412\u0438\u044f\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0443.",toolbarDensity:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityLabel:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0438\u0439",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0438\u0439",toolbarColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",toolbarColumnsLabel:"\u0412\u0438\u0434\u0456\u043b\u0456\u0442\u044c \u0441\u0442\u043e\u0432\u043f\u0446\u0456",toolbarFilters:"\u0424\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipHide:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438":" \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440")},toolbarExport:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 CSV",columnsPanelTextFieldLabel:"\u0417\u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelDragIconLabel:"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0443\u0441\u0456",columnsPanelHideAllButton:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438 \u0443\u0441\u0456",filterPanelAddFilter:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0406",filterPanelOperatorOr:"\u0410\u0431\u043e",filterPanelColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0444\u0456\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u043c\u0456\u0441\u0442\u0438\u0442\u044c",filterOperatorEquals:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorStartsWith:"\u043f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f \u0437",filterOperatorEndsWith:"\u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorNot:"\u043d\u0435",filterOperatorAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorBefore:"\u043c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterValueAny:"\u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439",filterValueTrue:"\u043f\u0440\u0430\u0432\u0434\u0430",filterValueFalse:"\u043f\u043e\u043c\u0438\u043b\u043a\u043e\u0432\u0438\u0439",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0446\u0456",columnMenuFilter:"\u0424\u0456\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438",columnMenuUnsort:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0441\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f\u043c",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0441\u043f\u0430\u0434\u0430\u043d\u043d\u044f\u043c",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438":" \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440")},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" \u0432\u0438\u0431\u0440\u0430\u043d\u0456 \u0440\u044f\u0434\u043a\u0438":" \u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a")},footerTotalRows:"\u0412\u0441\u044c\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0456\u0432:",checkboxSelectionHeaderName:"\u0412\u0438\u0431\u0456\u0440 \u043f\u0440\u0430\u043f\u043e\u0440\u0446\u044f",booleanCellTrueLabel:"\u043f\u0440\u0430\u0432\u0434\u0430",booleanCellFalseLabel:"\u043f\u043e\u043c\u0438\u043b\u043a\u043e\u0432\u0438\u0439"},J.ukUA),function(e){var t=e.apiRef,n=e.props,r=e.children;return p.createElement(ln.Provider,{value:n},p.createElement(ne.Provider,{value:t},r))});function Ca(e){return p.createElement("div",{className:"MuiDataGrid-main"},e.children)}var Da=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"componentDidCatch",value:function(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}},{key:"logError",value:function(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}},{key:"render",value:function(){var e;return this.props.hasError||(null===(e=this.state)||void 0===e?void 0:e.hasError)?this.props.render(this.props.componentProps||this.state):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(p.Component);function Sa(e){var t=e.children,n=Sn("GridErrorHandler"),r=re(),i=p.useContext(ln),o=Br(r),a=Object(f.a)(o,1)[0];return p.createElement(Da,{hasError:null!=a.error,componentProps:a.error,api:r,logger:n,render:function(e){var t;return p.createElement(Ca,null,p.createElement(r.current.components.ErrorOverlay,Object.assign({},e,null===(t=i.componentsProps)||void 0===t?void 0:t.errorOverlay)))}},t)}function ka(){var e,t,n,r=re(),i=p.useContext(ln),o=Nr(r,ai),a=Nr(r,yi),s=!i.loading&&0===o,u=!i.loading&&o>0&&0===a;return s?p.createElement(r.current.components.NoRowsOverlay,Object.assign({},null===(e=i.componentsProps)||void 0===e?void 0:e.noRowsOverlay)):u?p.createElement(r.current.components.NoResultsOverlay,Object.assign({},null===(t=i.componentsProps)||void 0===t?void 0:t.noResultsOverlay)):i.loading?p.createElement(r.current.components.LoadingOverlay,Object.assign({},null===(n=i.componentsProps)||void 0===n?void 0:n.loadingOverlay)):null}function Aa(){var e=re(),t=p.useContext(ln),n=p.useRef(null),r=p.useRef(null),i=p.useRef(null),o=p.useRef(null);e.current.columnHeadersContainerElementRef=r,e.current.columnHeadersElementRef=n,e.current.windowRef=i,e.current.renderingZoneRef=o;var a=p.useCallback((function(t){return e.current.publishEvent("resize",t)}),[e]);return p.createElement(Ca,null,p.createElement(ka,null),p.createElement(na,{licenseStatus:t.licenseStatus}),p.createElement(qr,{ref:r},p.createElement(ho,{ref:n})),p.createElement(Uo,{nonce:t.nonce,disableHeight:t.autoHeight,onResize:a},(function(e){return p.createElement(ti,{ref:i,size:e},p.createElement(ta,{ref:o}))})))}function Ta(){var e,t=re(),n=p.useContext(ln),r=p.useRef(null);return t.current.footerRef=r,n.hideFooter?null:p.createElement("div",{ref:r},p.createElement(t.current.components.Footer,Object.assign({},null===(e=n.componentsProps)||void 0===e?void 0:e.footer)))}function Pa(){var e,t=re(),n=p.useContext(ln),r=p.useRef(null);return t.current.headerRef=r,p.createElement("div",{ref:r},p.createElement(t.current.components.Header,Object.assign({},null===(e=n.componentsProps)||void 0===e?void 0:e.header)))}var Ma=function(e,t){if("string"==typeof e){var n=e.replace(/"/g,'""');return n.includes(t)?'"'.concat(n,'"'):n}return e};function ja(e){var t=e.columns,n=e.rows,r=e.selectedRowIds,i=e.getCellParams,o=e.delimiterCharacter,a=e.includeHeaders,s=void 0===a||a,u=Object(l.a)(n.keys());r.length&&(u=u.filter((function(e){return r.includes(e)})));var c=u.reduce((function(e,n){return"".concat(e).concat(function(e,t,n,r){var i=[];return t.forEach((function(t){return t.field!==Fi.field&&i.push(Ma(n(e,t.field).formattedValue,r))})),i}(n,t,i,o).join(o),"\r\n")}),"").trim();return s?"".concat("".concat(t.filter((function(e){return e.field!==Fi.field})).map((function(e){return Ma(e.headerName||e.field,o)})).join(o),"\r\n"),c).trim():c}function Ia(e){var t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);var n=document.createRange();n.selectNode(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Fa(e,t){switch(t.type){case"options::UPDATE":return function(e,t){return t=function(e){var t=Object.assign({},e);return Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&void 0===e[n]&&delete t[n]})),t}(t),Object.assign(Object.assign({},e),t)}(e,t.payload);default:throw new Error("Material-UI: Action ".concat(t.type," not found."))}}var Ra=function(e,t){(function(e,t){var n=t.logger,r=t.logLevel;Cn=_n?Dn("debug"):n?r?function(e){return On(e,r.toString(),n)}:null:r?Dn(r.toString()):null})(0,t),function(e){var t=Sn("useApi"),n=p.useCallback((function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.defaultMuiPrevented=!1,r&&function(e){return void 0!==e.isPropagationStopped}(r)&&r.isPropagationStopped()||e.current.emit(t,n,r)}),[e]),r=p.useCallback((function(n,r,i){t.debug("Binding ".concat(n," event")),e.current.on(n,r,i);var o=e.current;return function(){t.debug("Clearing ".concat(n," event")),o.removeListener(n,r)}}),[e,t]),i=p.useCallback((function(t){e.current.publishEvent("componentError",t)}),[e]);p.useEffect((function(){t.debug("Initializing grid api.");var n=e.current;return function(){t.info("Unmounting Grid component. Clearing all events listeners."),n.emit("unmount"),n.removeAllListeners()}}),[t,e]),kn(e,{subscribeEvent:r,publishEvent:n,showError:i},"GridCoreApi")}(e),function(e,t){var n=Br(e),r=Object(f.a)(n,2)[1],i=p.useCallback((function(e){r((function(t){return Object.assign(Object.assign({},t),{error:e})}))}),[r]);p.useEffect((function(){i(t.error)}),[i,t.error]),io(e,"componentError",i)}(e,t),function(e){var t=d.a.useRef({}),n=d.a.useCallback((function(e){var n=e.stateId,r=e.stateSelector,i=oe(e,["stateId","stateSelector"]);t.current[n]=Object.assign(Object.assign({},i),{stateId:n,stateSelector:r||function(e){return e[n]}})}),[]),r=d.a.useCallback((function(n){var r=!0,i=[],o=t.current;return Object.keys(o).forEach((function(t){var a=o[t],s=a.stateSelector(e.current.state),u=a.stateSelector(n),l=s!==u;if(i.length>=1&&l)throw new Error("You're not allowed to update several sub-state in one transaction. You already updated ".concat(i[0],", therefore, you're not allowed to update ").concat(a.stateId," in the same transaction."));if(l){if(a.propOnChange){var c=u;a.propModel!==c&&a.propOnChange(c),r=void 0===a.propModel||a.propModel===c}else void 0!==a.propModel&&(r=s!==a.propModel);r&&i.push(a.stateId)}})),{shouldUpdate:r,postUpdate:function(){i.forEach((function(e){if(o[e].onChangeCallback){var t=o[e].stateSelector(n);o[e].onChangeCallback(t)}}))}}}),[e]);kn(e,{updateControlState:n,applyControlStateConstraint:r},"controlStateApi")}(e),function(e,t){var n=t.scrollbarSize,r=Sn("useGridScrollbarSizeDetector"),i=p.useState(0),o=Object(f.a)(i,2),a=o[0],s=o[1],u=Br(e),l=Object(f.a)(u,2)[1],c=Nr(e,dn).length>0,d=p.useCallback((function(){var t,n,i=0;(null===(n=null===(t=e.current)||void 0===t?void 0:t.rootElementRef)||void 0===n?void 0:n.current)&&(i=function(e,t){var n=e.createElement("div");n.style.width="99px",n.style.height="99px",n.style.position="absolute",n.style.overflow="scroll",n.className="scrollDiv",t.appendChild(n);var r=n.offsetWidth-n.clientWidth;return t.removeChild(n),r}(Object(m.a)(e.current.rootElementRef.current),e.current.rootElementRef.current),r.debug("Detected scroll bar size ".concat(i,"."))),s(i)}),[e,r]);Zt((function(){c&&null==n&&d()}),[d,c,n]),p.useEffect((function(){null==n&&l((function(e){return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{scrollbarSize:a})})}))}),[n,a,l])}(e,t),function(e,t){var n=Sn("useOptionsProp"),r=p.useMemo((function(){return Object.assign(Object.assign({},t),{classes:Xt({root:["root"],columnHeader:["columnHeader"],row:["row"],cell:["cell"]},an,t.classes),localeText:Object.assign(Object.assign({},An),t.localeText)})}),[t]),i=function(e,t,n,r){var i=zr(e),o=Br(e),a=Object(f.a)(o,3),s=a[0],u=a[1],l=a[2],c=p.useCallback((function(e){void 0===s[t]&&(s[t]=r),u((function(r){var i=Object.assign({},r);return i[t]=n(r[t],e),i})),l()}),[l,s,r,n,u,t]),d=p.useRef(c);p.useEffect((function(){d.current=c}),[c]);var h=p.useCallback((function(e){return d.current(e)}),[]);return{gridState:s,dispatch:h,gridApi:i}}(e,"options",Fa,Object.assign({},Rr)),o=i.gridState,a=i.dispatch,s=p.useCallback((function(e){n.debug("updating options state."),a({type:"options::UPDATE",payload:e})}),[a,n]);p.useEffect((function(){s(r)}),[r,s]),o.options}(e,t),function(e,t){ao(e,"columnHeaderClick",t.onColumnHeaderClick),ao(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),ao(e,"columnHeaderOver",t.onColumnHeaderOver),ao(e,"columnHeaderOut",t.onColumnHeaderOut),ao(e,"columnHeaderEnter",t.onColumnHeaderEnter),ao(e,"columnHeaderLeave",t.onColumnHeaderLeave),ao(e,"columnOrderChange",t.onColumnOrderChange),ao(e,"cellClick",t.onCellClick),ao(e,"cellDoubleClick",t.onCellDoubleClick),ao(e,"cellOver",t.onCellOver),ao(e,"cellOut",t.onCellOut),ao(e,"cellEnter",t.onCellEnter),ao(e,"cellLeave",t.onCellLeave),ao(e,"cellKeyDown",t.onCellKeyDown),ao(e,"cellBlur",t.onCellBlur),ao(e,"cellFocusOut",t.onCellFocusOut),ao(e,"rowDoubleClick",t.onRowDoubleClick),ao(e,"rowClick",t.onRowClick),ao(e,"rowOver",t.onRowOver),ao(e,"rowOut",t.onRowOut),ao(e,"rowEnter",t.onRowEnter),ao(e,"rowLeave",t.onRowLeave),ao(e,"componentError",t.onError),ao(e,"stateChange",t.onStateChange);var n=p.useCallback((function(t){return function(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=e.current).publishEvent.apply(n,[t].concat(i))}}),[e]);ra(e,e.current.rootElementRef,"keydown",n("keydown"))}(e,t),function(e){var t=Nr(e,cn).localeText;kn(e,{getLocaleText:p.useCallback((function(e){if(null==t[e])throw new Error("Missing translation for key ".concat(e,"."));return t[e]}),[t])},"LocaleTextApi")}(e),function(e,t){var n=Sn("useResizeContainer"),r=p.useRef(!1),i=p.useCallback((function(){var t;n.debug("resizing..."),e.current.publishEvent("debouncedResize",{containerSize:null===(t=e.current.getState().containerSizes)||void 0===t?void 0:t.windowSizes})}),[e,n]);kn(e,{resize:i},"GridEventsApi");var o=p.useMemo((function(){return Object(x.a)(i,60)}),[i]),a=p.useCallback((function(e){var i=/jsdom/.test(window.navigator.userAgent);0!==e.height||r.current||t.autoHeight||i||(n.warn(["The parent of the grid has an empty height.","You need to make sure the container has an intrinsic height.","The grid displays with a height of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/layout/"].join("\n")),r.current=!0),0!==e.width||r.current||i||(n.warn(["The parent of the grid has an empty width.","You need to make sure the container has an intrinsic width.","The grid displays with a width of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/layout/"].join("\n")),r.current=!0),o()}),[t.autoHeight,o,n,i]);p.useEffect((function(){return function(){n.info("canceling resize..."),o.clear()}}),[n,o]),p.useEffect((function(){n.info("canceling resize..."),o.clear()}),[t.rows,o,n]),io(e,"resize",a),ao(e,"debouncedResize",t.onResize)}(e,t),t.rows,aa(e,t),function(e){var t=Nr(e,Ci),n=Nr(e,ki),r=p.useCallback((function(t){return{field:t,colDef:e.current.getColumn(t),api:e.current}}),[e]),i=p.useCallback((function(t){var n=e.current.getRow(t);if(!n)throw new Error("No row with id #".concat(t," found"));return{id:t,columns:e.current.getAllColumns(),row:n,api:e.current,getValue:e.current.getCellValue}}),[e]),o=p.useCallback((function(r,i){var o=e.current.getRow(r);if(!o)throw new Error("No row with id #".concat(r," found"));return{id:r,field:i,row:o,value:o[i],colDef:e.current.getColumn(i),cellMode:e.current.getCellMode(r,i),getValue:e.current.getCellValue,api:e.current,hasFocus:null!==t&&t.field===i&&t.id===r,tabIndex:n&&n.field===i&&n.id===r?0:-1}}),[e,t,n]),a=p.useCallback((function(r,i){var o=e.current.getColumn(i),a=e.current.getCellValue(r,i),s=e.current.getRow(r);if(!s)throw new Error("No row with id #".concat(r," found"));var u={id:r,field:i,row:s,colDef:o,cellMode:e.current.getCellMode(r,i),getValue:e.current.getCellValue,api:e.current,hasFocus:null!==t&&t.field===i&&t.id===r,tabIndex:n&&n.field===i&&n.id===r?0:-1,value:a,formattedValue:a};return o.valueFormatter&&(u.formattedValue=o.valueFormatter(u)),u.isEditable=o&&e.current.isCellEditable(u),u}),[e,t,n]),s=p.useCallback((function(t,n){var r=e.current.getColumn(n);if(!r||!r.valueGetter){var i=e.current.getRow(t);if(!i)throw new Error("No row with id #".concat(t," found"));return i[n]}return r.valueGetter(o(t,n))}),[e,o]),u=p.useCallback((function(t){return e.current.rootElementRef.current?function(e,t){return e.querySelector('[role="columnheader"][data-field="'.concat(Ni(t),'"]'))}(e.current.rootElementRef.current,t):null}),[e]),l=p.useCallback((function(t){return e.current.rootElementRef.current?Ui(e.current.rootElementRef.current,t):null}),[e]),c=p.useCallback((function(t,n){return e.current.rootElementRef.current?function(e,t){var n=t.field,r=Ui(e,t.id);return r?r.querySelector('.MuiDataGrid-cell[data-field="'.concat(Ni(n),'"]')):null}(e.current.rootElementRef.current,{id:t,field:n}):null}),[e]);kn(e,{getCellValue:s,getCellParams:a,getCellElement:c,getRowParams:i,getRowElement:l,getColumnHeaderParams:r,getColumnHeaderElement:u},"GridParamsApi")}(e),ca(e,t),function(e,t){var n=Sn("useGridEditRows"),r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=Nr(e,cn),u=function(t,n){"view"!==t.cellMode&&(e.current.commitCellChange(t,n),e.current.publishEvent("cellEditExit",t,n))},l=Yt((function(e,t){u(e,t)})),d=Yt((function(t){var n=e.current.getState().focus.cell;if(n){var r=e.current.getCellParams(n.id,n.field);u(r,t)}})),h=p.useCallback((function(t,r,i){var s="edit"===e.current.getCellMode(t,r);"edit"===i&&s||"view"===i&&!s||(n.debug("Switching cell id: ".concat(t," field: ").concat(r," to mode: ").concat(i)),o((function(n){var o=Object.assign({},n.editRows);return o[t]=Object.assign({},o[t]),"edit"===i?o[t][r]={value:e.current.getCellValue(t,r)}:(delete o[t][r],Object.keys(o[t]).length||delete o[t]),Object.assign(Object.assign({},n),{editRows:o})})),a(),e.current.publishEvent("cellModeChange",{id:t,field:r,mode:i,api:e.current}))}),[e,a,n,o]),m=p.useCallback((function(t,n){var r=e.current.getState().editRows;return r[t]&&r[t][n]?"edit":"view"}),[e]),v=p.useCallback((function(e){return e.colDef.editable&&e.colDef.renderEditCell&&(!s.isCellEditable||s.isCellEditable(e))}),[s.isCellEditable]),g=p.useCallback((function(t,n){var r={id:t.id,field:t.field,props:{value:t.value}};e.current.publishEvent("editCellPropsChange",r,n)}),[e]),y=p.useCallback((function(t){var r=t.id,i=t.field,s=t.props;n.debug("Setting cell props on id: ".concat(r," field: ").concat(i)),o((function(t){var n=e.current.getColumn(i),o=n.valueParser?n.valueParser(s.value,e.current.getCellParams(r,i)):s.value,a=Object.assign({},t.editRows);return a[r]=Object.assign({},t.editRows[r]),a[r][i]=Object.assign(Object.assign({},s),{value:o}),Object.assign(Object.assign({},t),{editRows:a})})),a()}),[e,a,n,o]),b=p.useCallback((function(t){e.current.setEditCellProps(t)}),[e]),_=p.useCallback((function(e){n.debug("Setting row model"),o((function(t){return Object.assign(Object.assign({},t),{editRows:e})})),a()}),[a,n,o]),x=p.useCallback((function(){return e.current.getState().editRows}),[e]),w=p.useCallback((function(t,n){var r=t.id,i=t.field,o=e.current.getEditRowsModel();if(!o[r]||!o[r][i])throw new Error("Cell at id: ".concat(r," and field: ").concat(i," is not in edit mode"));var a=o[r][i],s=a.error,u=a.value;if(!s){var l=Object.assign(Object.assign({},t),{value:u});return e.current.publishEvent("cellEditCommit",l,n),!0}return!1}),[e]),E=p.useCallback((function(t){var r=t.id,i=t.field,o=e.current.getEditRowsModel()[r][i].value;n.debug("Setting cell id: ".concat(r," field: ").concat(i," to value: ").concat(null==o?void 0:o.toString()));var a=e.current.getRow(r),s=Object.assign(Object.assign({},a),Object(c.a)({},i,o));e.current.updateRows([s])}),[e,n]),O=p.useCallback((function(t,n){t.isEditable&&(h(t.id,t.field,"edit"),Dr(n)&&xr(n.key)&&e.current.setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e,h]),C=p.useCallback((function(e,t){var n=t.detail>1;e.isEditable&&"view"===e.cellMode&&n&&t.preventDefault()}),[]),D=p.useCallback((function(t,n){var r=t.id,i=t.field,o=t.cellMode;if(t.isEditable){var a,s="edit"===o,u=n.ctrlKey||n.metaKey||n.altKey;if(!s&&(a=n.key,dr(a)||br(a)||xr(a))&&!u&&e.current.publishEvent("cellEditEnter",t,n),!s&&br(n.key)&&(e.current.setEditCellValue({id:r,field:i,value:""}),e.current.commitCellChange({id:r,field:i},n),e.current.publishEvent("cellEditExit",t,n)),s&&Or(n.key)){var l={id:r,field:i};if(!e.current.commitCellChange(l,n))return}s&&function(e){return wr.indexOf(e)>-1}(n.key)&&e.current.publishEvent("cellEditExit",t,n)}}),[e]),S=p.useCallback((function(t,n){h(t.id,t.field,"view"),n&&Dr(n)&&(Or(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):("Escape"===n.key||br(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e,h]),k=p.useCallback((function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=e.current).publishEvent.apply(t,["cellEditEnter"].concat(r))}),[e]);io(e,"cellKeyDown",D),io(e,"cellMouseDown",C),io(e,"cellDoubleClick",k),io(e,"cellFocusOut",l),io(e,"columnHeaderDragStart",d),io(e,"cellEditEnter",O),io(e,"cellEditExit",S),io(e,"cellEditCommit",E),io(e,"editCellPropsChange",b),ao(e,"cellEditCommit",s.onCellEditCommit),ao(e,"editCellPropsChange",s.onEditCellPropsChange),ao(e,"cellModeChange",s.onCellModeChange),kn(e,{setCellMode:h,getCellMode:m,isCellEditable:v,commitCellChange:w,setEditCellProps:y,setEditRowsModel:_,getEditRowsModel:x,setEditCellValue:g},"EditRowApi"),p.useEffect((function(){e.current.setEditRowsModel(s.editRowsModel||{})}),[e,s.editRowsModel]),p.useEffect((function(){e.current.updateControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:function(e){return e.editRows},onChangeCallback:function(t){e.current.publishEvent("editRowsModelChange",t)}})}),[e,t.editRowsModel,t.onEditRowsModelChange])}(e,t),function(e,t){var n=Sn("useGridFocus"),r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=p.useRef(!1),u=p.useCallback((function(e,t){o((function(r){return n.debug("Focusing on cell with id=".concat(e," and field=").concat(t)),Object.assign(Object.assign({},r),{tabIndex:{cell:{id:e,field:t},columnHeader:null},focus:{cell:{id:e,field:t},columnHeader:null}})})),a()}),[a,n,o]),l=p.useCallback((function(t,r){var i=e.current.getState().focus.cell;i&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(i.id,i.field),r),o((function(e){return n.debug("Focusing on column header with colIndex=".concat(t)),Object.assign(Object.assign({},e),{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})})),a()}),[e,a,n,o]),c=p.useCallback((function(t){var n=t.id,r=t.field;e.current.setCellFocus(n,r)}),[e]),d=p.useCallback((function(t,n){var r=t.field;n.target===n.currentTarget&&e.current.setColumnHeaderFocus(r,n)}),[e]),h=p.useCallback((function(){n.debug("Clearing focus"),o((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})}))}),[n,o]),v=p.useCallback((function(t){var n=e.current.getState().focus.cell;n&&t.id===n.id&&t.field===n.field&&(s.current=!0)}),[e]),g=p.useCallback((function(t){var n=s.current;s.current=!1;var r=e.current.getState().focus.cell;if(r&&!n){var i=e.current.getCellElement(r.id,r.field);(null==i?void 0:i.contains(t.target))||(o((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})})),e.current.publishEvent("cellFocusOut",e.current.getCellParams(r.id,r.field),t))}}),[e,o]),y=p.useCallback((function(t){if("view"!==t.cellMode){var n=e.current.getState().focus.cell;(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}}),[e]);kn(e,{setCellFocus:u,setColumnHeaderFocus:l},"GridFocusApi"),p.useEffect((function(){var t=e.current.getState().focus.cell;t&&(e.current.getRow(t.id)||o((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})})))}),[e,o,t.rows]),p.useEffect((function(){var t=Object(m.a)(e.current.rootElementRef.current);return t.addEventListener("click",g,!0),function(){t.removeEventListener("click",g,!0)}}),[e,g]),io(e,"columnHeaderBlur",h),io(e,"cellClick",c),io(e,"cellDoubleClick",c),io(e,"cellMouseUp",v),io(e,"cellModeChange",y),io(e,"columnHeaderFocus",d)}(e,t),function(e){var t=Sn("useGridKeyboard"),n=p.useCallback((function(n,r){var i=Li(r.target,"MuiDataGrid-row"),o=Number(i.getAttribute("data-rowindex")),a=o,s=Object(l.a)(e.current.getSelectedRows().keys());if(s.length>0){var u=s.map((function(t){return e.current.getRowIndex(t)})),c=u.map((function(e){return Math.abs(o-e)})),f=Math.max.apply(Math,Object(l.a)(c));a=u[c.indexOf(f)]}e.current.publishEvent("cellNavigationKeyDown",n,r);var p=e.current.getState().focus.cell,d=e.current.getRowIndex(p.id),h=Array(Math.abs(d-a)+1).fill(d>a?a:d);t.debug("Selecting rows "),e.current.selectRows(h,!0,!0)}),[t,e]),r=p.useCallback((function(t,r){if(1!==r.target.nodeType||null!=(i=r.target)&&i.classList.contains("MuiDataGrid-cell")){var i,o=e.current.getCellParams(t.id,t.field);if("edit"!==o.cellMode){if(mr(r.key)&&r.shiftKey)return r.preventDefault(),void e.current.selectRow(o.id);if(!Cr(r.key)||r.shiftKey)return Cr(r.key)&&r.shiftKey?(r.preventDefault(),void n(o,r)):void("c"===r.key.toLowerCase()&&(r.ctrlKey||r.metaKey)||"a"===r.key.toLowerCase()&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),e.current.selectRows(e.current.getAllRowIds(),!0)));e.current.publishEvent("cellNavigationKeyDown",o,r)}}}),[e,n]),i=p.useCallback((function(t,n){zi(n.target)&&(mr(n.key)&&zi(n.target)&&n.preventDefault(),!Cr(n.key)||mr(n.key)||n.shiftKey?dr(n.key)&&(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field):e.current.publishEvent("columnHeaderNavigationKeyDown",t,n))}),[e]);io(e,"cellKeyDown",r),io(e,"columnHeaderKeyDown",i)}(e),function(e){var t=Sn("useGridKeyboardNavigation"),n=Nr(e,cn),r=Nr(e,wi),i=Nr(e,ai),o=Nr(e,yn),a=Nr(e,$r),s=function(e){return dr(e.key)?"ArrowDown":hr(e.key)?e.shiftKey?"ArrowLeft":"ArrowRight":e.key},u=p.useCallback((function(u,l){l.preventDefault();var c,f=e.current.getColumnIndex(u.field),p=e.current.getRowIndex(u.id),d=s(l),h=l.ctrlKey||l.metaKey||l.shiftKey,m=i;if(n.pagination&&i>r.pageSize&&(m=r.pageSize*(r.page+1)),vr(d))c=function(e,t){if(!vr(e))throw new Error("Material-UI: The first argument (key) should be an arrow key code.");switch(e){case"ArrowLeft":return Object.assign(Object.assign({},t),{colIndex:t.colIndex-1});case"ArrowRight":return Object.assign(Object.assign({},t),{colIndex:t.colIndex+1});case"ArrowUp":return Object.assign(Object.assign({},t),{rowIndex:t.rowIndex-1});default:return Object.assign(Object.assign({},t),{rowIndex:t.rowIndex+1})}}(d,{colIndex:f,rowIndex:p});else if(gr(d)){var v="Home"===d?0:o-1;if(h){c={colIndex:v,rowIndex:0===v?n.pagination?m-r.pageSize:0:m-1}}else c={colIndex:v,rowIndex:p}}else{if(!yr(d)&&!mr(d))throw new Error("Material-UI. Key not mapped to navigation behavior.");c={colIndex:f,rowIndex:p+(d.indexOf("Down")>-1||mr(d)?a.viewportPageSize:-1*a.viewportPageSize)}}if(c.rowIndex<0){var g=e.current.getVisibleColumns()[c.colIndex].field;e.current.setColumnHeaderFocus(g,l)}else{c.rowIndex=c.rowIndex>=m&&m>0?m-1:c.rowIndex,c.colIndex=c.colIndex<=0?0:c.colIndex,c.colIndex=c.colIndex>=o?o-1:c.colIndex,t.debug("Navigating to next cell row ".concat(c.rowIndex,", col ").concat(c.colIndex)),e.current.scrollToIndexes(c);var y=e.current.getVisibleColumns()[c.colIndex].field,b=e.current.getRowIdFromRowIndex(c.rowIndex);e.current.setCellFocus(b,y)}}),[i,n.pagination,r.pageSize,r.page,o,t,e,a]),l=p.useCallback((function(n,r){var i;r.preventDefault();var u=e.current.getColumnIndex(n.field),l=s(r);if(vr(l))i=function(e,t){if(!vr(e))throw new Error("Material-UI: The first argument (key) should be an arrow key code.");switch(e){case"ArrowLeft":return{colIndex:t.colIndex-1};case"ArrowRight":return{colIndex:t.colIndex+1};case"ArrowDown":return null;default:return Object.assign({},t)}}(l,{colIndex:u});else{if(!gr(l)){if(yr(l)){if(l.indexOf("Down")>-1){var c=e.current.getVisibleColumns()[u].field,f=e.current.getRowIdFromRowIndex(a.viewportPageSize-1);e.current.setCellFocus(f,c)}return}throw new Error("Material-UI. Key not mapped to navigation behavior.")}i={colIndex:"Home"===l?0:o-1}}if(i){i.colIndex=Math.max(0,i.colIndex),i.colIndex=i.colIndex>=o?o-1:i.colIndex,t.debug("Navigating to next column row ".concat(i.colIndex)),e.current.scrollToIndexes(i);var p=e.current.getVisibleColumns()[i.colIndex].field;e.current.setColumnHeaderFocus(p,r)}else{var d=e.current.getVisibleColumns()[u].field,h=e.current.getRowIdFromRowIndex(0);e.current.setCellFocus(h,d)}}),[e,o,a,t]);io(e,"cellNavigationKeyDown",u),io(e,"columnHeaderNavigationKeyDown",l)}(e),function(e,t){var n=Sn("useGridSelection"),r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=Nr(e,cn),u=Nr(e,si),c=s.checkboxSelection,d=s.disableMultipleSelection,h=s.disableSelectionOnClick,m=s.isRowSelectable,v=p.useCallback((function(){return Mi(e.current.getState())}),[e]),g=p.useCallback((function(t){var r=t.id,i=t.allowMultipleOverride,s=t.isSelected,u=t.isMultipleKey;m&&!m(e.current.getRowParams(r))||(n.debug("Selecting row ".concat(r)),o((function(e){var t=ji(e);if(i||!d&&u||c)(null==s?void 0===t[r]:s)?t[r]=r:delete t[r];else{var n=null==s?!u||void 0===t[r]:s;t={},n&&(t[r]=r)}return Object.assign(Object.assign({},e),{selection:Object.values(t)})})),a())}),[m,d,e,n,c,a,o]),y=p.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.current.getRow(t);i&&g({id:t,row:i,allowMultipleOverride:r,isSelected:n})}),[e,g]),b=p.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=m?t.filter((function(t){return m(e.current.getRowParams(t))})):t;d&&i.length>1&&!c||(o((function(e){var t=r?{}:ji(e);return i.forEach((function(e){n?t[e]=e:void 0!==t[e]&&delete t[e]})),Object.assign(Object.assign({},e),{selection:Object.values(t)})})),a())}),[m,d,c,o,a,e]),_=p.useCallback((function(t){e.current.selectRows(t,!0,!0)}),[e]),x=p.useCallback((function(e,t){h||g({id:e.id,row:e.row,isMultipleKey:t.metaKey||t.ctrlKey})}),[h,g]);io(e,"rowClick",x),kn(e,{selectRow:y,getSelectedRows:v,selectRows:b,setSelectionModel:_},"GridSelectionApi"),p.useEffect((function(){e.current.updateControlState({stateId:"selection",propModel:t.selectionModel,propOnChange:t.onSelectionModelChange,stateSelector:Ti,onChangeCallback:function(t){e.current.publishEvent("selectionChange",t)}})}),[e,t.onSelectionModelChange,t.selectionModel]),p.useEffect((function(){o((function(e){var t=Object(l.a)(e.selection),n=ji(e),r=!1;return t.forEach((function(e){u[e]||(delete n[e],r=!0)})),r?Object.assign(Object.assign({},e),{selection:Object.values(n)}):e})),a()}),[u,e,o,a]),p.useEffect((function(){void 0!==t.selectionModel&&e.current.getState().selection!==t.selectionModel&&o((function(e){return Object.assign(Object.assign({},e),{selection:t.selectionModel||[]})}))}),[e,t.selectionModel,o]),p.useEffect((function(){o((function(t){var n=Object(l.a)(t.selection),r=ji(t),i=!1;return n.forEach((function(t){!m||m(e.current.getRowParams(t))||(delete r[t],i=!0)})),i?Object.assign(Object.assign({},t),{selection:Object.values(r)}):t})),a()}),[e,o,a,m])}(e,t),function(e,t){var n=Sn("useGridSorting"),r=Br(e),i=Object(f.a)(r,3),o=i[0],a=i[1],s=i[2],u=Nr(e,cn),c=Nr(e,hn),d=Nr(e,ai),h=p.useCallback((function(e,t){var n=o.sorting.sortModel.findIndex((function(t){return t.field===e})),r=Object(l.a)(o.sorting.sortModel);return n>-1?t?r.splice(n,1,t):r.splice(n,1):r=[].concat(Object(l.a)(o.sorting.sortModel),[t]),r}),[o.sorting.sortModel]),m=p.useCallback((function(e,t){var n=o.sorting.sortModel.find((function(t){return t.field===e.field}));if(n){var r=void 0===t?Tn(u.sortingOrder,n.sort):t;return null==r?void 0:Object.assign(Object.assign({},n),{sort:r})}return{field:e.field,sort:void 0===t?Tn(u.sortingOrder):t}}),[o.sorting.sortModel,u.sortingOrder]),v=p.useCallback((function(t,n){return{id:t,field:n,value:e.current.getCellValue(t,n),api:e.current}}),[e]),g=p.useCallback((function(e){return function(t,n){return e.reduce((function(e,r,i){if(0!==e)return e;var o=r.comparator,a=t[i],s=n[i];return o(a.value,s.value,a,s)}),0)}}),[]),y=p.useCallback((function(t){return t.map((function(t){var n=e.current.getColumn(t.field);if(!n)throw new Error("Error sorting: column with field '".concat(t.field,"' not found. "));var r="desc"===t.sort?function(e,t,r,i){return-1*n.sortComparator(e,t,r,i)}:n.sortComparator;return{field:n.field,comparator:r}}))}),[e]),b=p.useCallback((function(){var t=e.current.getAllRowIds();if(u.sortingMode===Fr)return n.debug("Skipping sorting rows as sortingMode = server"),void a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:t})})}));var r=e.current.getState().sorting.sortModel,i=t;if(r.length>0){var o=y(r);n.debug("Sorting rows with ",r),i=t.map((function(e){return o.map((function(t){return v(e,t.field)}))})).sort(g(o)).map((function(e){return e[0].id}))}a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:i})})})),s()}),[e,n,v,a,s,y,g,u.sortingMode]),_=p.useCallback((function(t){a((function(e){var n=Object.assign(Object.assign({},e.sorting),{sortModel:t});return Object.assign(Object.assign({},e),{sorting:Object.assign({},n)})})),s(),0!==c.length&&e.current.applySorting()}),[a,s,c.length,e]),x=p.useCallback((function(e,t,n){if(e.sortable){var r,i=m(e,t);r=!n||u.disableMultipleColumnsSorting?i?[i]:[]:h(e.field,i),_(r)}}),[h,_,m,u.disableMultipleColumnsSorting]),w=p.useCallback((function(e,t){var n=e.colDef,r=t.shiftKey||t.metaKey||t.ctrlKey;x(n,void 0,r)}),[x]),E=p.useCallback((function(e,t){var n=e.colDef;!dr(t.key)||t.ctrlKey||t.metaKey||x(n,void 0,t.shiftKey)}),[x]),O=p.useCallback((function(){a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:[]})})}))}),[a]),C=p.useCallback((function(){return o.sorting.sortModel}),[o.sorting.sortModel]),D=p.useCallback((function(){return Object.values(fi(e.current.state))}),[e]),S=p.useCallback((function(){return ci(e.current.state)}),[e]),k=p.useCallback((function(){a((function(e){var t=e.sorting.sortModel,n=dn(e),r=t;return t.length>0&&(r=t.reduce((function(e,t){return n.find((function(e){return e.field===t.field}))&&e.push(t),e}),[])),Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortModel:r})})}))}),[a]);io(e,"columnHeaderClick",w),io(e,"columnHeaderKeyDown",E),io(e,"rowsSet",e.current.applySorting),io(e,"rowsClear",O),io(e,"rowsUpdate",e.current.applySorting),io(e,"columnsChange",k),kn(e,{getSortModel:C,getSortedRows:D,getSortedRowIds:S,setSortModel:_,sortColumn:x,applySorting:b},"GridSortApi"),p.useEffect((function(){e.current.applySorting()}),[e,t.rows]),p.useEffect((function(){d>0&&(n.debug("row changed, applying sortModel"),e.current.applySorting())}),[d,e,n]),p.useEffect((function(){e.current.updateControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:function(e){return e.sorting.sortModel},onChangeCallback:function(t){e.current.publishEvent("sortModelChange",t)}})}),[e,t.sortModel,t.onSortModelChange]),p.useEffect((function(){var n=t.sortModel||[],r=e.current.state.sorting.sortModel;$t(n,r)||(a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortModel:n})})})),e.current.applySorting())}),[t.sortModel,e,a])}(e,t),function(e){var t=Sn("useGridColumnMenu"),n=Br(e),r=Object(f.a)(n,3),i=r[0],o=r[1],a=r[2],s=p.useCallback((function(n){t.debug("Opening Column Menu"),o((function(e){return Object.assign(Object.assign({},e),{columnMenu:{open:!0,field:n}})})),e.current.hidePreferences(),a()}),[e,a,t,o]),u=p.useCallback((function(){t.debug("Hiding Column Menu"),o((function(e){return Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1,field:void 0})})})),a()}),[a,t,o]),l=p.useCallback((function(e){t.debug("Toggle Column Menu"),i.columnMenu.open&&i.columnMenu.field===e?u():s(e)}),[t,s,u,i]),c=p.useCallback((function(){o((function(e){return e.columnMenu.open?Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1})}):e}))}),[o]);p.useEffect((function(){i.isScrolling&&u()}),[i.isScrolling,u]),kn(e,{showColumnMenu:s,hideColumnMenu:u,toggleColumnMenu:l},"ColumnMenuApi"),io(e,"columnResizeStart",c)}(e),function(e){var t=Sn("useGridPreferencesPanel"),n=Br(e),r=Object(f.a)(n,3),i=r[1],o=r[2],a=p.useRef(),s=p.useRef(),u=p.useCallback((function(){t.debug("Hiding Preferences Panel"),i((function(e){return Object.assign(Object.assign({},e),{preferencePanel:{open:!1}})})),o()}),[o,t,i]),l=p.useCallback((function(){s.current=setTimeout((function(){return clearTimeout(a.current)}),0)}),[]),c=p.useCallback((function(){a.current=setTimeout(u,100)}),[u]);kn(e,{showPreferences:p.useCallback((function(e){t.debug("Opening Preferences Panel"),l(),i((function(t){return Object.assign(Object.assign({},t),{preferencePanel:Object.assign(Object.assign({},t.preferencePanel),{open:!0,openedPanelValue:e})})})),o()}),[l,o,t,i]),hidePreferences:c},"ColumnMenuApi"),p.useEffect((function(){return function(){clearTimeout(a.current),clearTimeout(s.current)}}),[])}(e),function(e,t){var n=Sn("useGridFilter"),r=Br(e),i=Object(f.a)(r,3),o=i[0],a=i[1],s=i[2],u=Nr(e,gn),c=Nr(e,cn),d=p.useCallback((function(){n.debug("clearing filtered rows"),a((function(e){return Object.assign(Object.assign({},e),{visibleRows:{visibleRowsLookup:{}}})}))}),[n,a]),h=p.useCallback((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jr.And;if(t.columnField&&t.operatorValue){var i=e.current.getColumn(t.columnField);if(i){var o=i.valueParser?i.valueParser(t.value):t.value,u=Object.assign(Object.assign({},t),{value:o});n.debug("Filtering column: ".concat(u.columnField," ").concat(u.operatorValue," ").concat(u.value," "));var l=i.filterOperators;if(!(null==l?void 0:l.length))throw new Error("Material-UI: No filter operators found for column '".concat(i.field,"'."));var c=l.find((function(e){return e.value===u.operatorValue}));if(!c)throw new Error("Material-UI: No filter operator found for column '".concat(i.field,"' and operator value '").concat(u.operatorValue,"'."));var p=c.getApplyFilterFn(u,i);"function"==typeof p&&(a((function(t){var n=Object.assign({},t.visibleRows.visibleRowsLookup);return fi(t).forEach((function(t,i){var o=e.current.getCellParams(i,u.columnField),a=p(o);null==n[i]?n[i]=a:n[i]=r===jr.And?n[i]&&a:n[i]||a})),Object.assign(Object.assign({},t),{visibleRows:Object.assign(Object.assign({},t.visibleRows),{visibleRowsLookup:n,visibleRows:Object.entries(n).filter((function(e){return Object(f.a)(e,2)[1]})).map((function(e){return Object(f.a)(e,1)[0]}))})})})),s())}}}),[e,s,n,a]),m=p.useCallback((function(){if(c.filterMode!==Fr){d();var t=e.current.state.filter,n=t.items,r=t.linkOperator;n.forEach((function(t){e.current.applyFilter(t,r)})),s()}else s()}),[e,d,s,c.filterMode]),v=p.useCallback((function(t){n.debug("Upserting filter"),a((function(n){var r=Object(l.a)(n.filter.items),i=Object.assign({},t),o=r.findIndex((function(e){return e.id===i.id}));if(1===r.length&&$t(r[0],{})?r[0]=i:-1===o?r.push(i):r[o]=i,null==i.id&&(i.id=Math.round(1e5*Math.random())),null==i.columnField&&(i.columnField=u[0]),null!=i.columnField&&null==i.operatorValue){var a=e.current.getColumn(i.columnField);i.operatorValue=a&&a.filterOperators[0].value}return c.disableMultipleColumnsFiltering&&r.length>1&&(r.length=1),Object.assign(Object.assign({},n),{filter:Object.assign(Object.assign({},n.filter),{items:r})})})),m()}),[n,a,e,m,c.disableMultipleColumnsFiltering,u]),g=p.useCallback((function(t){n.debug("Deleting filter on column ".concat(t.columnField," with value ").concat(t.value)),a((function(e){var n=Object(l.a)(e.filter.items.filter((function(e){return e.id!==t.id})));return Object.assign(Object.assign({},e),{filter:Object.assign(Object.assign({},e.filter),{items:n})})})),0===e.current.state.filter.items.length&&e.current.upsertFilter({}),m()}),[e,m,n,a]),y=p.useCallback((function(t){if(n.debug("Displaying filter panel"),t){var r=o.filter.items.length>0?o.filter.items[o.filter.items.length-1]:null;r&&r.columnField===t||e.current.upsertFilter({columnField:t})}e.current.showPreferences(Gi.filters)}),[e,o.filter.items,n]),b=p.useCallback((function(){n.debug("Hiding filter panel"),null==e||e.current.hidePreferences()}),[e,n]),_=p.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jr.And;n.debug("Applying filter link operator"),a((function(t){return Object.assign(Object.assign({},t),{filter:Object.assign(Object.assign({},t.filter),{linkOperator:e})})})),m()}),[m,n,a]),x=p.useCallback((function(){d(),n.debug("Clearing filter model"),a((function(e){return Object.assign(Object.assign({},e),{filter:Lr()})}))}),[d,n,a]),w=p.useCallback((function(e){x(),n.debug("Setting filter model"),_(e.linkOperator),e.items.forEach((function(e){return v(e)}))}),[_,x,n,v]),E=p.useCallback((function(){return mi(e.current.state)}),[e]);kn(e,{applyFilterLinkOperator:_,applyFilters:m,applyFilter:h,deleteFilter:g,upsertFilter:v,setFilterModel:w,showFilterPanel:y,hideFilterPanel:b,getVisibleRowModels:E},"FilterApi"),p.useEffect((function(){e.current&&(n.debug("Rows prop changed, applying filters"),d(),e.current.applyFilters())}),[e,d,n,t.rows]);var O=p.useCallback((function(){n.debug("onColUpdated - GridColumns changed, applying filters");var t=e.current.getState().filter,r=gn(e.current.state);n.debug("GridColumns changed, applying filters"),t.items.forEach((function(t){r.find((function(e){return e===t.columnField}))||e.current.deleteFilter(t)})),e.current.applyFilters()}),[e,n]);p.useEffect((function(){e.current.updateControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:function(e){return e.filter},onChangeCallback:function(t){e.current.publishEvent("filterModelChange",t)}})}),[e,t.filterModel,t.onFilterModelChange]),p.useEffect((function(){var r=t.filterModel;if(r&&r.items.length>1&&r.items.find((function(e){return null==e.id})))throw new Error("The 'id' field is required on filterModel.items when you use multiple filters.");var i=e.current.state.filter;r&&!$t(r,i)&&(n.debug("filterModel prop changed, applying filters"),a((function(e){return Object.assign(Object.assign({},e),{filter:t.filterModel||Lr()})})),e.current.applyFilters())}),[e,n,t.filterModel,a]),io(e,"rowsSet",e.current.applyFilters),io(e,"rowsUpdate",e.current.applyFilters),io(e,"columnsChange",O)}(e,t),function(e){var t=Sn("useGridContainerProps"),n=Br(e),r=Object(f.a)(n,3),i=r[0],o=r[1],a=r[2],s=p.useRef({width:0,height:0}),u=Nr(e,cn),l=Nr(e,Wr),c=Nr(e,bn),d=Nr(e,yi),h=Nr(e,wi),m=e.current.windowRef,v=p.useCallback((function(){if(t.debug("Calculating virtual row count."),u.pagination&&(!u.autoPageSize||u.pageSize)){var e=d-h.page*h.pageSize;return e>h.pageSize?h.pageSize:e}return d}),[t,u.autoPageSize,u.pagination,u.pageSize,h.page,h.pageSize,d]),g=p.useCallback((function(e){t.debug("Calculating scrollbar sizes.");var n=c>s.current.width,r={y:0,x:n?u.scrollbarSize:0};if(0===e)return{hasScrollX:n,hasScrollY:!1,scrollBarSize:r};var i=e*l,o=!u.autoPageSize&&!u.autoHeight&&i+r.x>s.current.height;return r.y=o?u.scrollbarSize:0,n=c+r.y>s.current.width,r.x=n?u.scrollbarSize:0,t.debug("Scrollbar size on axis x: ".concat(r.x,", y: ").concat(r.y)),{hasScrollX:n,hasScrollY:o,scrollBarSize:r}}),[t,c,u.autoPageSize,u.autoHeight,l,u.scrollbarSize]),y=p.useCallback((function(e,n){if(!(null==m?void 0:m.current))return null;t.debug("Calculating container sizes.");var r=m.current.getBoundingClientRect();return s.current={width:r.width,height:r.height},t.debug("window Size - W: ".concat(s.current.width," H: ").concat(s.current.height," ")),{width:s.current.width-n.scrollBarSize.y,height:u.autoHeight?e*l:s.current.height-n.scrollBarSize.x}}),[t,u.autoHeight,l,m]),b=p.useCallback((function(e,n,r){if(!m||!m.current||0===c||Number.isNaN(c))return null;var i=e*l-s.current.height>2*l;if(u.autoPageSize||u.autoHeight||!i){var o=Math.floor(n.height/l),a=r.hasScrollY||e<o?e:o,f=Math.max(a*l+(u.autoHeight?r.scrollBarSize.x:0),1),p={isVirtualized:!1,virtualRowsCount:a,renderingZonePageSize:a,viewportPageSize:a,totalSizes:{width:c,height:f},dataContainerSizes:{width:c,height:f},renderingZoneScrollHeight:f-n.height,renderingZone:{width:c,height:f},windowSizes:s.current,lastPage:1};return t.debug("Fixed container props",p),p}var d=Math.floor(n.height/l),h=d>0?Math.ceil(e/d)-1:0,v=2*d,g=v*l,y=g-n.height,b=h*y+n.height,_=e%d;_>0&&(b=b-y+_*l);var x={isVirtualized:i,virtualRowsCount:e,viewportPageSize:d,totalSizes:{width:c,height:b},dataContainerSizes:{width:c,height:b},renderingZonePageSize:v,renderingZone:{width:c,height:g},renderingZoneScrollHeight:y,windowSizes:s.current,lastPage:h};return t.debug("virtualized container props",x),x}),[m,c,l,u.autoPageSize,u.autoHeight,t]),_=p.useCallback((function(e,t){var n=!1;o((function(r){return(n=e(r))?t(r):r})),n&&a()}),[a,o]),x=p.useCallback((function(){t.debug("Refreshing container sizes");var e=v(),n=g(e),r=y(e,n);if(r){_((function(e){return e.scrollBar!==n}),(function(e){return Object.assign(Object.assign({},e),{scrollBar:n})})),_((function(e){return e.viewportSizes!==r}),(function(e){return Object.assign(Object.assign({},e),{viewportSizes:r})}));var i=b(e,r,n);_((function(e){return!$t(e.containerSizes,i)}),(function(e){return Object.assign(Object.assign({},e),{containerSizes:i})}))}}),[b,g,y,v,t,_]);p.useEffect((function(){x()}),[i.columns,i.options.hideFooter,x,d]),io(e,"debouncedResize",x)}(e),function(e){var t=Sn("useDensity"),n=Nr(e,cn),r=n.density,i=n.rowHeight,o=n.headerHeight,a=Br(e),s=Object(f.a)(a,3),u=s[1],l=s[2],c=p.useCallback((function(e,t,n){switch(e){case Tr.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n)};case Tr.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n)};default:return{value:e,headerHeight:t,rowHeight:n}}}),[]),d=p.useCallback((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;t.debug("Set grid density to ".concat(e)),u((function(t){return Object.assign(Object.assign({},t),{density:Object.assign(Object.assign({},t.density),c(e,n,r))})})),l()}),[t,u,l,c,o,i]);p.useEffect((function(){d(r,o,i)}),[d,r,i,o]),kn(e,{setDensity:d},"GridDensityApi")}(e),da(e),function(e){var t=Sn("useGridColumnReorder"),n=Br(e),r=Object(f.a)(n,3),i=r[1],o=r[2],a=Nr(e,uo),s=Nr(e,cn),u=p.useRef(null),l=p.useRef({x:0,y:0}),c=p.useRef(null),d=p.useRef();p.useEffect((function(){return function(){clearTimeout(d.current)}}),[]);var h=p.useCallback((function(n,r){s.disableColumnReorder||n.colDef.disableReorder||(t.debug("Start dragging col ".concat(n.field)),u.current=r.currentTarget,u.current.classList.add("MuiDataGrid-columnHeader--dragging"),i((function(e){return Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:n.field})})})),o(),d.current=setTimeout((function(){u.current.classList.remove("MuiDataGrid-columnHeader--dragging")})),c.current=e.current.getColumnIndex(n.field,!1))}),[s.disableColumnReorder,t,i,o,e]),m=p.useCallback((function(e,t){t.preventDefault()}),[]),v=p.useCallback((function(n,r){if(a){t.debug("Dragging over col ".concat(n.field)),r.preventDefault();var i,o,s={x:r.clientX,y:r.clientY};if(n.field!==a&&(o=s,(i=l.current).x!==o.x||i.y!==o.y)){var u=e.current.getColumnIndex(n.field,!1),c=e.current.getColumnIndex(n.field,!0),f=e.current.getColumn(n.field),p=e.current.getColumnIndex(a,!1),d=e.current.getVisibleColumns().length,h=!f.disableReorder||c>0&&c<d-1,m=function(e,t){return e.x<=t.x?"right":"left"}(l.current,s);h&&("left"===m&&u<p||"right"===m&&p<u)&&e.current.setColumnIndex(a,u),l.current=s}}}),[e,a,t]),g=p.useCallback((function(n,r){!s.disableColumnReorder&&a&&(t.debug("End dragging col"),r.preventDefault(),clearTimeout(d.current),u.current=null,"none"===r.dataTransfer.dropEffect&&(e.current.setColumnIndex(n.field,c.current),c.current=null),i((function(e){return Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:""})})})),o())}),[s.disableColumnReorder,t,i,o,e,a]);io(e,"columnHeaderDragStart",h),io(e,"columnHeaderDragEnter",m),io(e,"columnHeaderDragOver",v),io(e,"columnHeaderDragEnd",g),io(e,"cellDragEnter",m),io(e,"cellDragOver",v),io(e,"cellDragEnd",g)}(e),function(e,t){var n=Sn("useGridColumnResize"),r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=p.useRef(),u=p.useRef(),l=p.useRef(),c=p.useRef(),d=p.useRef(),h=p.useRef(),v=function(e){n.debug("Updating width to ".concat(e," for col ").concat(s.current.field)),s.current.width=e,u.current.style.width="".concat(e,"px"),u.current.style.minWidth="".concat(e,"px"),u.current.style.maxWidth="".concat(e,"px"),l.current.forEach((function(t){var n=t;n.style.width="".concat(e,"px"),n.style.minWidth="".concat(e,"px"),n.style.maxWidth="".concat(e,"px")}))},g=Yt((function(t){E(),e.current.updateColumn(s.current),clearTimeout(d.current),d.current=setTimeout((function(){var n;e.current.publishEvent("columnResizeStop",null,t),e.current.publishEvent("columnWidthChange",{element:u.current,colDef:s.current,api:e,width:null===(n=s.current)||void 0===n?void 0:n.width},t)})),n.debug("Updating col ".concat(s.current.field," with new width: ").concat(s.current.width))})),y=Yt((function(t){var n;if(0!==t.buttons){var r=c.current+t.clientX-u.current.getBoundingClientRect().left;r=Math.max(null===(n=s.current)||void 0===n?void 0:n.minWidth,r),v(r),e.current.publishEvent("columnResize",{element:u.current,colDef:s.current,api:e,width:r},t)}else g(t)})),b=Yt((function(t,r){var i,o=t.colDef;if(0===r.button&&r.currentTarget.classList.contains("MuiDataGrid-columnSeparator--resizable")){r.preventDefault(),u.current=Li(r.currentTarget,"MuiDataGrid-columnHeader"),n.debug("Start Resize on col ".concat(o.field)),e.current.publishEvent("columnResizeStart",{field:o.field},r),s.current=o,u.current=null===(i=e.current.columnHeadersElementRef)||void 0===i?void 0:i.current.querySelector('[data-field="'.concat(o.field,'"]')),l.current=Bi(u.current);var a=Object(m.a)(e.current.rootElementRef.current);a.body.style.cursor="col-resize",c.current=s.current.width-(r.clientX-u.current.getBoundingClientRect().left),a.addEventListener("mousemove",y),a.addEventListener("mouseup",g)}})),_=Yt((function(t){ga(t,h.current)&&(E(),e.current.updateColumn(s.current),clearTimeout(d.current),d.current=setTimeout((function(){e.current.publishEvent("columnResizeStop",null,t)})),n.debug("Updating col ".concat(s.current.field," with new width: ").concat(s.current.width)))})),x=Yt((function(t){var n,r=ga(t,h.current);if(r)if("mousemove"!==t.type||0!==t.buttons){var i=c.current+r.x-u.current.getBoundingClientRect().left;i=Math.max(null===(n=s.current)||void 0===n?void 0:n.minWidth,i),v(i),e.current.publishEvent("columnResize",{element:u.current,colDef:s.current,api:e,width:i},t)}else _(t)})),w=Yt((function(t){var r;if(Li(t.target,"MuiDataGrid-columnSeparator--resizable")){va()||t.preventDefault();var i=t.changedTouches[0];null!=i&&(h.current=i.identifier),u.current=Li(t.target,"MuiDataGrid-columnHeader");var o=u.current.getAttribute("data-field"),a=e.current.getColumn(o);n.debug("Start Resize on col ".concat(a.field)),e.current.publishEvent("columnResizeStart",{field:o},t),s.current=a,u.current=function(e,t){return e.querySelector('[data-field="'.concat(t,'"]'))}(null===(r=e.current.columnHeadersElementRef)||void 0===r?void 0:r.current,a.field),l.current=Bi(u.current),c.current=s.current.width-(i.clientX-u.current.getBoundingClientRect().left);var f=Object(m.a)(t.currentTarget);f.addEventListener("touchmove",x),f.addEventListener("touchend",_)}})),E=p.useCallback((function(){var t=Object(m.a)(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",g),t.removeEventListener("touchmove",x),t.removeEventListener("touchend",_)}),[e,y,g,x,_]),O=p.useCallback((function(e){var t=e.field;o((function(e){return Object.assign(Object.assign({},e),{columnResize:Object.assign(Object.assign({},e.columnResize),{resizingColumnField:t})})})),a()}),[o,a]),C=p.useCallback((function(){o((function(e){return Object.assign(Object.assign({},e),{columnResize:Object.assign(Object.assign({},e.columnResize),{resizingColumnField:""})})})),a()}),[o,a]);p.useEffect((function(){return function(){clearTimeout(d.current),E()}}),[e,w,E]),ra(e,(function(){var t,n;return null===(n=null===(t=e.current)||void 0===t?void 0:t.columnHeadersElementRef)||void 0===n?void 0:n.current}),"touchstart",w,{passive:va()}),io(e,"columnSeparatorMouseDown",b),io(e,"columnResizeStart",O),io(e,"columnResizeStop",C),ao(e,"columnResize",t.onColumnResize),ao(e,"columnWidthChange",t.onColumnWidthChange)}(e,t),function(e,t){var n=Sn("useGridPageSize"),r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=Nr(e,yi),u=Nr(e,$r),l=p.useCallback((function(e){n.debug("Setting page size to ".concat(e)),o((function(t){return Object.assign(Object.assign({},t),{pagination:Object.assign(Object.assign({},t.pagination),{pageSize:e})})})),a()}),[o,a,n]);p.useEffect((function(){e.current.updateControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:function(e){return e.pagination.pageSize},onChangeCallback:function(t){e.current.publishEvent("pageSizeChange",t)}})}),[e,t.pageSize,t.onPageSizeChange]),p.useEffect((function(){var n=null==u?void 0:u.viewportPageSize,r=e.current.getState().pagination.pageSize,i=r;null!=t.pageSize?i=t.pageSize:t.autoPageSize&&(i=null!=n?n:0),i!==r&&(t.autoPageSize&&e.current.publishEvent("pageSizeChange",n),o((function(e){return Object.assign(Object.assign({},e),{pagination:Object.assign(Object.assign({},e.pagination),{pageSize:i})})})),a())}),[e,o,a,s,t.autoPageSize,t.pageSize,null==u?void 0:u.viewportPageSize]),kn(e,{setPageSize:l},"GridPageSizeApi")}(e,t),function(e,t){var n=Sn("useGridPage"),r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=Nr(e,yi),u=p.useCallback((function(e){n.debug("Setting page to ".concat(e)),o((function(t){return Object.assign(Object.assign({},t),{pagination:ua(Object.assign(Object.assign({},t.pagination),{page:e}))})})),a()}),[o,a,n]);p.useEffect((function(){e.current.updateControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:function(e){return e.pagination.page},onChangeCallback:function(t){e.current.publishEvent("pageChange",t)}})}),[e,t.page,t.onPageChange]),p.useEffect((function(){o((function(e){var n=void 0!==t.rowCount?t.rowCount:s,r=sa(n,e.pagination.pageSize),i=null==t.page?e.pagination.page:t.page;return Object.assign(Object.assign({},e),{pagination:ua(Object.assign(Object.assign({},e.pagination),{page:i,rowCount:n,pageCount:r}))})})),a()}),[o,a,s,t.rowCount,t.page,e]);var l=p.useCallback((function(e){o((function(t){var n=sa(t.pagination.rowCount,e);return Object.assign(Object.assign({},t),{pagination:ua(Object.assign(Object.assign({},t.pagination),{pageCount:n,page:t.pagination.page}))})})),a()}),[o,a]);io(e,"pageSizeChange",l),kn(e,{setPage:u},"GridPageApi")}(e,t),function(e){var t=Sn("useGridCsvExport"),n=Nr(e,hn),r=Nr(e,dn),i=Nr(e,mi),o=Nr(e,Ti),a=p.useCallback((function(a){return t.debug("Get data as CSV"),ja({columns:(null==a?void 0:a.fields)?a.fields.map((function(e){return r.find((function(t){return t.field===e}))})).filter((function(e){return!!e})):((null==a?void 0:a.allColumns)?r:n).filter((function(e){return!e.disableExport})),rows:i,selectedRowIds:o,getCellParams:e.current.getCellParams,delimiterCharacter:(null==a?void 0:a.delimiter)||","})}),[t,n,r,i,o,e]),s=p.useCallback((function(e){t.debug("Export data as CSV");var n=a(e);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title,r="".concat(n,".").concat(t);if("download"in HTMLAnchorElement.prototype){var i=URL.createObjectURL(e),o=document.createElement("a");return o.href=i,o.download=r,o.click(),void setTimeout((function(){URL.revokeObjectURL(i)}))}throw new Error("exportAs not supported")}(new Blob([(null==e?void 0:e.utf8WithBom)?new Uint8Array([239,187,191]):"",n],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[t,a]);kn(e,{getDataAsCsv:a,exportDataAsCsv:s},"GridCsvExportApi")}(e),function(e,t){var n=Nr(e,cn),r=Nr(e,$r),i=Nr(e,hn),o=p.useRef(!1),a=p.useCallback((function(){if(r){var t=e.current.getScrollPosition().top+r.windowSizes.height+n.scrollEndThreshold;if(t<r.dataContainerSizes.height&&(o.current=!1),t>=r.dataContainerSizes.height&&!o.current){var a={api:e,visibleColumns:i,viewportPageSize:r.viewportPageSize,virtualRowsCount:r.virtualRowsCount};e.current.publishEvent("rowsScrollEnd",a),o.current=!0}}}),[n,r,e,i]);io(e,"rowsScroll",a),ao(e,"rowsScrollEnd",t.onRowsScrollEnd)}(e,t),function(e){var t=Nr(e,hn),n=p.useCallback((function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=e.current.getSelectedRows(),i=t.filter((function(e){return e.field!==Fi.field}));if(0!==r.size&&0!==i.length){var o=ja({columns:t,rows:r,selectedRowIds:[],includeHeaders:n,getCellParams:e.current.getCellParams,delimiterCharacter:"\t"});navigator.clipboard?navigator.clipboard.writeText(o).catch((function(){Ia(o)})):Ia(o)}}),[e,t]),r=p.useCallback((function(t){var n,r=t.ctrlKey||t.metaKey||t.altKey;"c"===t.key.toLowerCase()&&r&&""===(null===(n=window.getSelection())||void 0===n?void 0:n.toString())&&e.current.copySelectedRowsToClipboard(t.altKey)}),[e]);io(e,"keydown",r),kn(e,{copySelectedRowsToClipboard:n},"GridClipboardApi")}(e),function(e,t){var n=t.components,r=t.componentsProps,i=p.useMemo((function(){return{BooleanCellTrueIcon:n&&n.BooleanCellTrueIcon||wa.BooleanCellTrueIcon,BooleanCellFalseIcon:n&&n.BooleanCellFalseIcon||wa.BooleanCellFalseIcon,ColumnFilteredIcon:n&&n.ColumnFilteredIcon||wa.ColumnFilteredIcon,ColumnMenuIcon:n&&n.ColumnMenuIcon||wa.ColumnMenuIcon,ColumnResizeIcon:n&&n.ColumnResizeIcon||wa.ColumnResizeIcon,ColumnSelectorIcon:n&&n.ColumnSelectorIcon||wa.ColumnSelectorIcon,ColumnUnsortedIcon:void 0===(null==n?void 0:n.ColumnUnsortedIcon)?wa.ColumnUnsortedIcon:null==n?void 0:n.ColumnUnsortedIcon,ColumnSortedAscendingIcon:n&&n.ColumnSortedAscendingIcon||wa.ColumnSortedAscendingIcon,ColumnSortedDescendingIcon:n&&n.ColumnSortedDescendingIcon||wa.ColumnSortedDescendingIcon,DensityComfortableIcon:n&&n.DensityComfortableIcon||wa.DensityComfortableIcon,DensityCompactIcon:n&&n.DensityCompactIcon||wa.DensityCompactIcon,DensityStandardIcon:n&&n.DensityStandardIcon||wa.DensityStandardIcon,ExportIcon:n&&n.ExportIcon||wa.ExportIcon,OpenFilterButtonIcon:n&&n.OpenFilterButtonIcon||wa.OpenFilterButtonIcon,Checkbox:n&&n.Checkbox||wa.Checkbox,ColumnMenu:n&&n.ColumnMenu||wa.ColumnMenu,ErrorOverlay:n&&n.ErrorOverlay||wa.ErrorOverlay,Footer:n&&n.Footer||wa.Footer,Header:n&&n.Header||wa.Header,Toolbar:n&&n.Toolbar,PreferencesPanel:n&&n.PreferencesPanel||wa.PreferencesPanel,LoadingOverlay:n&&n.LoadingOverlay||wa.LoadingOverlay,NoResultsOverlay:n&&n.NoResultsOverlay||wa.NoResultsOverlay,NoRowsOverlay:n&&n.NoRowsOverlay||wa.NoRowsOverlay,Pagination:n&&n.Pagination||wa.Pagination,FilterPanel:n&&n.FilterPanel||wa.FilterPanel,ColumnsPanel:n&&n.ColumnsPanel||wa.ColumnsPanel,Panel:n&&n.Panel||wa.Panel}}),[n]);e.current.components=i,e.current.componentsProps=r}(e,t),function(e,t){var n=t.state,r=Br(e),i=Object(f.a)(r,3),o=i[1],a=i[2],s=Sn("useStateProp");p.useEffect((function(){null!=n&&e.current.state!==n&&(s.debug("Overriding state with props.state"),o((function(e){return Object.assign(Object.assign({},e),n)})),a())}),[e,a,s,n,o])}(e,t),function(e){var t=Br(e),n=Object(f.a)(t,1)[0],r=Sn("useRenderInfoLog");if(null!=n.rendering.renderContext){var i=n.rendering.renderContext,o=i.page,a=i.firstColIdx,s=i.lastColIdx,u=i.firstRowIdx,l=i.lastRowIdx;r.info("Rendering, page: ".concat(o,", col: ").concat(a,"-").concat(s,", row: ").concat(u,"-").concat(l))}}(e)},La=p.forwardRef((function(e,t){var n=function(){var e=arguments.length<=0?void 0:arguments[0],t=p.useRef(new ha);return p.useImperativeHandle(e,(function(){return t.current}),[t]),t}(e.apiRef);return Ra(n,e),p.createElement(Oa,{apiRef:n,props:e},p.createElement(Ur,{ref:t},p.createElement(Sa,null,p.createElement(Pa,null),p.createElement(Aa,null),p.createElement(Ta,null))))}));La.defaultProps=Rr;var za={disableColumnResize:!0,disableColumnReorder:!0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,pagination:!0,apiRef:void 0,onRowsScrollEnd:void 0,checkboxSelectionVisibleOnly:!1},Ba=p.forwardRef((function(e,t){var n=function(e){var t=e.props,n=e.name,r=Object.assign({},t),i=Object(D.a)(),o=Object(k.a)({theme:i,name:n,props:r}),a=o.theme||i,s="rtl"===a.direction;return Object.assign({theme:a,isRtl:s},o)}({props:e,name:"MuiDataGrid"}),r=n.pageSize,i=n.selectionModel,o=oe(n,["pageSize","selectionModel"]),a=r;a&&a>100&&(a=100);var s=void 0===i||Array.isArray(i)?i:[i];return p.createElement(La,Object.assign({ref:t,pageSize:a},o,za,{selectionModel:s,licenseStatus:"Valid"}))})),Na=p.memo(Ba);Na.propTypes={apiRef:Object(te.a)(ee.a.any,(function(e){return null!=e.apiRef?new Error(["Material-UI: `apiRef` is not a valid prop.","GridApiRef is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),checkboxSelectionVisibleOnly:Object(te.a)(ee.a.bool,(function(e){return!0===e.checkboxSelectionVisibleOnly?new Error(["Material-UI: `<DataGrid checkboxSelectionVisibleOnly={true} />` is not a valid prop.","Selecting all columns only on the current page is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),columns:Object(te.a)(ee.a.array.isRequired,(function(e){return e.columns&&e.columns.some((function(e){return e.resizable}))?new Error(["Material-UI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableColumnReorder:Object(te.a)(ee.a.bool,(function(e){return!1===e.disableColumnReorder?new Error(["Material-UI: `<DataGrid disableColumnReorder={false} />` is not a valid prop.","Column reordering is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableColumnResize:Object(te.a)(ee.a.bool,(function(e){return!1===e.disableColumnResize?new Error(["Material-UI: `<DataGrid disableColumnResize={false} />` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableMultipleColumnsFiltering:Object(te.a)(ee.a.bool,(function(e){return!1===e.disableMultipleColumnsFiltering?new Error(["Material-UI: `<DataGrid disableMultipleColumnsFiltering={false} />` is not a valid prop.","Only single column filtering is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableMultipleColumnsSorting:Object(te.a)(ee.a.bool,(function(e){return!1===e.disableMultipleColumnsSorting?new Error(["Material-UI: `<DataGrid disableMultipleColumnsSorting={false} />` is not a valid prop.","Only single column sorting is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableMultipleSelection:Object(te.a)(ee.a.bool,(function(e){return!1===e.disableMultipleSelection?new Error(["Material-UI: `<DataGrid disableMultipleSelection={false} />` is not a valid prop.","Only single column selection is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),filterModel:Object(te.a)(ee.a.any,(function(e){return null!=e.filterModel&&e.filterModel.items.length>1?new Error(["Material-UI: `<DataGrid filterModel={model} />` is not a valid prop. `model.items` has more than 1 item.","Only single filter is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),onRowsScrollEnd:Object(te.a)(ee.a.any,(function(e){return null!=e.onRowsScrollEnd?new Error(["Material-UI: `onRowsScrollEnd` is not a valid prop.","onRowsScrollEnd is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),pageSize:Object(te.a)(ee.a.number,(function(e){return e.pageSize&&e.pageSize>100?new Error(["Material-UI: `<DataGrid pageSize={".concat(e.pageSize,"} />` is not a valid prop."),"Only page size below 100 is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),pagination:function(e){return!1===e.pagination?new Error(["Material-UI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the XGrid component to disable the pagination."].join("\n")):null},rows:ee.a.array.isRequired,scrollEndThreshold:Object(te.a)(ee.a.number,(function(e){return e.scrollEndThreshold?new Error(["Material-UI: `<DataGrid scrollEndThreshold={".concat(e.scrollEndThreshold,"} />` is not a valid prop."),"scrollEndThreshold is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),selectionModel:Object(te.a)(ee.a.oneOfType([ee.a.number,ee.a.string,ee.a.array]),(function(e){return!e.checkboxSelection&&Array.isArray(e.selectionModel)&&e.selectionModel.length>1?new Error(["Material-UI: `<DataGrid selectionModel={".concat(JSON.stringify(e.selectionModel),"} />` is not a valid prop."),"selectionModel can only contain 1 item in DataGrid without checkbox selection.","","You need to upgrade to the XGrid component to unlock multiple selection."].join("\n")):null}))}}).call(this,n(72),n(433)(e),n(207))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return r[e]},set:function(e,t){if("string"===typeof e)r[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){r[t]=e[t]}))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(146);var i=n(172),o=n(128);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){e.exports=function(){"use strict";var e,t,n;function r(r,i){if(e)if(t){var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",a={};e(a),n=i(a),"undefined"!==typeof window&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=i;else e=i}return r(0,(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,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var i=o;function o(e,t){this.x=e,this.y=t}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),i=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=i,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 a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function u(e,t,r,i){var o=new n(e,t,r,i);return function(e){return o.solve(e)}}var l=u(.25,.1,.25,1);function c(e,t,n){return Math.min(n,Math.max(t,e))}function f(e,t,n){var r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function p(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,i=t;r<i.length;r+=1){var o=i[r];for(var a in o)e[a]=o[a]}return e}var d=1;function h(){return d++}function m(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function v(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 g(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}function y(e,t){return-1!==e.indexOf(t,e.length-t.length)}function b(e,t,n){var r={};for(var i in e)r[i]=t.call(n||this,e[i],i,e);return r}function _(e,t,n){var r={};for(var i in e)t.call(n||this,e[i],i,e)&&(r[i]=e[i]);return r}function x(e){return Array.isArray(e)?e.map(x):"object"==typeof e&&e?b(e,x):e}var w={};function E(e){w[e]||("undefined"!=typeof console&&console.warn(e),w[e]=!0)}function O(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function C(e){for(var t=0,n=0,r=e.length,i=r-1,o=void 0,a=void 0;n<r;i=n++)t+=((a=e[i]).x-(o=e[n]).x)*(o.y+a.y);return t}function D(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function S(e){var t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(e,n,r,i){var o=r||i;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 k=null;function A(e){if(null==k){var t=e.navigator?e.navigator.userAgent:null;k=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return k}function T(e){try{var t=a[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}var P,M,j,I,F=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),R=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,L=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,z={now:F,frame:function(e){var t=R(e);return{cancel:function(){return L(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var n=a.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 P||(P=a.document.createElement("a")),P.href=e,P.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==M&&(M=a.matchMedia("(prefers-reduced-motion: reduce)")),M.matches)}},B={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,REGISTERED_PROTOCOLS:{}},N={supported:!1,testSupport:function(e){!U&&I&&(V?H(e):j=e)}},U=!1,V=!1;function H(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,I),e.isContextLost())return;N.supported=!0}catch(e){}e.deleteTexture(t),U=!0}a.document&&((I=a.document.createElement("img")).onload=function(){j&&H(j),j=null,V=!0},I.onerror=function(){U=!0,j=null},I.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var W="01",G=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function q(e){return 0===e.indexOf("mapbox:")}G.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",W,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},G.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},G.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},G.prototype.normalizeStyleURL=function(e,t){if(!q(e))return e;var n=X(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},G.prototype.normalizeGlyphsURL=function(e,t){if(!q(e))return e;var n=X(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},G.prototype.normalizeSourceURL=function(e,t){if(!q(e))return e;var n=X(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},G.prototype.normalizeSpriteURL=function(e,t,n,r){var i=X(e);return q(e)?(i.path="/styles/v1"+i.path+"/sprite"+t+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+t+n,K(i))},G.prototype.normalizeTileURL=function(e,t){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!q(e))return e;var n=X(e);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(z.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)||B.ACCESS_TOKEN;return B.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,r)},G.prototype.canonicalizeTileURL=function(e,t){var n=X(e);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return e;var r="mapbox://tiles/";r+=n.path.replace("/v4/","");var i=n.params;return t&&(i=i.filter((function(e){return!e.match(/^access_token=/)}))),i.length&&(r+="?"+i.join("&")),r},G.prototype.canonicalizeTileset=function(e,t){for(var n=!!t&&q(t),r=[],i=0,o=e.tiles||[];i<o.length;i+=1){var a=o[i];Y(a)?r.push(this.canonicalizeTileURL(a,n)):r.push(a)}return r},G.prototype._makeAPIURL=function(e,t){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=X(B.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"http"===e.protocol){var i=e.params.indexOf("secure");i>=0&&e.params.splice(i,1)}if("/"!==r.path&&(e.path=""+r.path+e.path),!B.REQUIRE_ACCESS_TOKEN)return K(e);if(!(t=t||B.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)},G.prototype.setTransformRequest=function(e){this._transformRequestFn=e};var $=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(e){return $.test(e)}var Z=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(e){var t=e.match(Z);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 J(e){if(!e)return null;var t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(t[1]).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(e){return null}}var Q=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Q.prototype.getStorageKey=function(e){var t,n=J(B.ACCESS_TOKEN);return t=n&&n.u?a.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))}))):B.ACCESS_TOKEN||"",e?"mapbox.eventData."+e+":"+t:"mapbox.eventData:"+t},Q.prototype.fetchEventData=function(){var e=T("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=a.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var i=a.localStorage.getItem(n);i&&(this.anonId=i)}catch(e){E("Unable to read from LocalStorage")}},Q.prototype.saveEventData=function(){var e=T("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{a.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){E("Unable to write to LocalStorage")}},Q.prototype.processRequests=function(e){},Q.prototype.postEvent=function(e,t,n,r){var i=this;if(B.EVENTS_URL){var o=X(B.EVENTS_URL);o.params.push("access_token="+(r||B.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.15.2",skuId:W,userId:this.anonId},s=t?p(a,t):a,u={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=we(u,(function(e){i.pendingRequest=null,n(e),i.saveEventData(),i.processRequests(r)}))}},Q.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var ee,te,ne=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,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return q(e)||Y(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,i=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),v(this.anonId)||(this.anonId=m()),this.postEvent(i,{skuToken:this.skuToken},(function(e){e||r&&(t.success[r]=!0)}),e))}},t}(Q),re=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){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return q(e)||Y(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=J(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,i=r!==this.eventData.tokenU;v(this.anonId)||(this.anonId=m(),i=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),u=(o-this.eventData.lastSuccess)/864e5;i=i||u>=1||u<-1||a.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(e){e||(t.eventData.lastSuccess=o,t.eventData.tokenU=r)}),e)}},t}(Q)),ie=re.postTurnstileEvent.bind(re),oe=new ne,ae=oe.postMapLoadEvent.bind(oe),se=500,ue=50;function le(){a.caches&&!ee&&(ee=a.caches.open("mapbox-tiles"))}function ce(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var fe,pe=1/0;function de(){return null==fe&&(fe=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),fe}var he={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(he);var me=function(e){function t(t,n,r){401===n&&Y(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),ve=D()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href};function ge(e,t){var n,r=new a.AbortController,i=new a.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ve(),signal:r.signal}),o=!1,s=!1,u=(n=i.url).indexOf("sku=")>0&&Y(n);"json"===e.type&&i.headers.set("Accept","application/json");var l=function(n,r,o){if(!s){if(n&&"SecurityError"!==n.message&&E(n),r&&o)return c(r);var l=Date.now();a.fetch(i).then((function(n){if(n.ok){var r=u?n.clone():null;return c(n,r,l)}return t(new me(n.statusText,n.status,e.url))})).catch((function(e){20!==e.code&&t(new Error(e.message))}))}},c=function(n,r,u){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then((function(e){s||(r&&u&&function(e,t,n){if(le(),ee){var r={status:t.status,statusText:t.statusText,headers:new a.Headers};t.headers.forEach((function(e,t){return r.headers.set(t,e)}));var i=S(t.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&r.headers.set("Expires",new Date(n+1e3*i["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===te)try{new Response(new ReadableStream),te=!0}catch(e){te=!1}te?t(e.body):e.blob().then(t)}(t,(function(t){var n=new a.Response(t,r);le(),ee&&ee.then((function(t){return t.put(ce(e.url),n)})).catch((function(e){return E(e.message)}))})))}}(i,r,u),o=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(e){s||t(new Error(e.message))}))};return u?function(e,t){if(le(),!ee)return t(null);var n=ce(e.url);ee.then((function(e){e.match(n).then((function(r){var i=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")||0),n=S(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),i&&e.put(n,r.clone()),t(null,r,i)})).catch(t)})).catch(t)}(i,l):l(null,null),{cancel:function(){s=!0,o||r.abort()}}}var ye,be,_e=function(e,t){if(/:\/\//.test(e.url)&&!/^https?:|^file:/.test(e.url)){if(D()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t);if(!D()){var n=e.url.substring(0,e.url.indexOf("://"));return(B.REGISTERED_PROTOCOLS[n]||ge)(e,t)}}if(!(/^file:/.test(r=e.url)||/^file:/.test(ve())&&!/^\w+:/.test(r))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return ge(e,t);if(D()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var r;return function(e,t){var n=new a.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 me(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},xe=function(e,t){return _e(p(e,{type:"arrayBuffer"}),t)},we=function(e,t){return _e(p(e,{method:"POST"}),t)},Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Oe(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function Ce(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}ye=[],be=0;var De=function(e,t){void 0===t&&(t={}),p(this,t),this.type=e},Se=function(e){function t(t,n){void 0===n&&(n={}),e.call(this,"error",p({error:t},n))}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(De),ke=function(){};ke.prototype.on=function(e,t){return this._listeners=this._listeners||{},Oe(e,t,this._listeners),this},ke.prototype.off=function(e,t){return Ce(e,t,this._listeners),Ce(e,t,this._oneTimeListeners),this},ke.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},Oe(e,t,this._oneTimeListeners),this},ke.prototype.fire=function(e,t){"string"==typeof e&&(e=new De(e,t||{}));var n=e.type;if(this.listens(n)){e.target=this;for(var r=0,i=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<i.length;r+=1)i[r].call(this,e);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];o<a.length;o+=1){var s=a[o];Ce(n,s,this._oneTimeListeners),s.call(this,e)}var u=this._eventedParent;u&&(p(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),u.fire(e))}else e instanceof Se&&console.error(e.error);return this},ke.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)},ke.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var Ae={$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"},volatile:{type:"boolean",default:!1},"*":{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"},volatile:{type:"boolean",default:!1},"*":{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"},volatile:{type:"boolean",default:!1},"*":{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},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{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},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"}}},Te=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)};function Pe(e){var t=e.value;return t?[new Te(e.key,t,"constants have been deprecated as of v8")]:[]}function Me(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,i=t;r<i.length;r+=1){var o=i[r];for(var a in o)e[a]=o[a]}return e}function je(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Ie(e){if(Array.isArray(e))return e.map(Ie);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){var t={};for(var n in e)t[n]=Ie(e[n]);return t}return je(e)}var Fe=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),Re=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.bindings[i[0]]=i[1]}};Re.prototype.concat=function(e){return new Re(this,e)},Re.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.")},Re.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var Le={kind:"null"},ze={kind:"number"},Be={kind:"string"},Ne={kind:"boolean"},Ue={kind:"color"},Ve={kind:"object"},He={kind:"value"},We={kind:"collator"},Ge={kind:"formatted"},qe={kind:"resolvedImage"};function $e(e,t){return{kind:"array",itemType:e,N:t}}function Ye(e){if("array"===e.kind){var t=Ye(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var Ze=[Le,ze,Be,Ne,Ue,Ge,Ve,$e(He),qe];function Xe(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Xe(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=Ze;n<r.length;n+=1)if(!Xe(r[n],t))return null}return"Expected "+Ye(e)+" but found "+Ye(t)+" instead."}function Ke(e,t){return t.some((function(t){return t.kind===e.kind}))}function Je(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 Qe=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 i(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 a(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,s=e.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(t=parseInt(s.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===s.length&&(t=parseInt(s.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var u=s.indexOf("("),l=s.indexOf(")");if(-1!==u&&l+1===s.length){var c=s.substr(0,u),f=s.substr(u+1,l-(u+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:[i(f[0]),i(f[1]),i(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]),m=o(f[2]),v=m<=.5?m*(h+1):m+h-m*h,g=2*m-v;return[r(255*a(g,v,d+1/3)),r(255*a(g,v,d)),r(255*a(g,v,d-1/3)),p];default:return null}}return null}}catch(e){}})).parseCSSColor,et=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};et.parse=function(e){if(e){if(e instanceof et)return e;if("string"==typeof e){var t=Qe(e);if(t)return new et(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},et.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+")"},et.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]},et.black=new et(0,0,0,1),et.white=new et(1,1,1,1),et.transparent=new et(0,0,0,0),et.red=new et(1,0,0,1);var tt=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"})};tt.prototype.compare=function(e,t){return this.collator.compare(e,t)},tt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var nt=function(e,t,n,r,i){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i},rt=function(e){this.sections=e};rt.fromString=function(e){return new rt([new nt(e,null,null,null,null)])},rt.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}))},rt.factory=function(e){return e instanceof rt?e:rt.fromString(e)},rt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")},rt.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 i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(i)}}return e};var it=function(e){this.name=e.name,this.available=e.available};function ot(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 at(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 et)return!0;if(e instanceof tt)return!0;if(e instanceof rt)return!0;if(e instanceof it)return!0;if(Array.isArray(e)){for(var t=0,n=e;t<n.length;t+=1)if(!at(n[t]))return!1;return!0}if("object"==typeof e){for(var r in e)if(!at(e[r]))return!1;return!0}return!1}function st(e){if(null===e)return Le;if("string"==typeof e)return Be;if("boolean"==typeof e)return Ne;if("number"==typeof e)return ze;if(e instanceof et)return Ue;if(e instanceof tt)return We;if(e instanceof rt)return Ge;if(e instanceof it)return qe;if(Array.isArray(e)){for(var t,n=e.length,r=0,i=e;r<i.length;r+=1){var o=st(i[r]);if(t){if(t===o)continue;t=He;break}t=o}return $e(t||He,n)}return Ve}function ut(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof et||e instanceof rt||e instanceof it?e.toString():JSON.stringify(e)}it.prototype.toString=function(){return this.name},it.fromString=function(e){return e?new it({name:e,available:!1}):null},it.prototype.serialize=function(){return["image",this.name]};var lt=function(e,t){this.type=e,this.value=t};lt.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!at(e[1]))return t.error("invalid value");var n=e[1],r=st(n),i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new lt(r,n)},lt.prototype.evaluate=function(){return this.value},lt.prototype.eachChild=function(){},lt.prototype.outputDefined=function(){return!0},lt.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof et?["rgba"].concat(this.value.toArray()):this.value instanceof rt?this.value.serialize():this.value};var ct=function(e){this.name="ExpressionEvaluationError",this.message=e};ct.prototype.toJSON=function(){return this.message};var ft={string:Be,number:ze,boolean:Ne,object:Ve},pt=function(e,t){this.type=e,this.args=t};pt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,i=e[0];if("array"===i){var o,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in ft)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);o=ft[s],r++}else o=He;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);a=e[2],r++}n=$e(o,a)}else n=ft[i];for(var u=[];r<e.length;r++){var l=t.parse(e[r],r,He);if(!l)return null;u.push(l)}return new pt(n,u)},pt.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!Xe(this.type,st(n)))return n;if(t===this.args.length-1)throw new ct("Expected value to be of type "+Ye(this.type)+", but found "+Ye(st(n))+" instead.")}return null},pt.prototype.eachChild=function(e){this.args.forEach(e)},pt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},pt.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 dt=function(e){this.type=Ge,this.sections=e};dt.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=[],i=!1,o=1;o<=e.length-1;++o){var a=e[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=t.parse(a["font-scale"],1,ze)))return null;var u=null;if(a["text-font"]&&!(u=t.parse(a["text-font"],1,$e(Be))))return null;var l=null;if(a["text-color"]&&!(l=t.parse(a["text-color"],1,Ue)))return null;var c=r[r.length-1];c.scale=s,c.font=u,c.textColor=l}else{var f=t.parse(e[o],1,He);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'.");i=!0,r.push({content:f,scale:null,font:null,textColor:null})}}return new dt(r)},dt.prototype.evaluate=function(e){return new rt(this.sections.map((function(t){var n=t.content.evaluate(e);return st(n)===qe?new nt("",n,null,null,null):new nt(ut(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))},dt.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)}},dt.prototype.outputDefined=function(){return!1},dt.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 i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),e.push(i)}return e};var ht=function(e){this.type=qe,this.input=e};ht.parse=function(e,t){if(2!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Be);return n?new ht(n):t.error("No image name provided.")},ht.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=it.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n},ht.prototype.eachChild=function(e){e(this.input)},ht.prototype.outputDefined=function(){return!1},ht.prototype.serialize=function(){return["image",this.input.serialize()]};var mt={"to-boolean":Ne,"to-color":Ue,"to-number":ze,"to-string":Be},vt=function(e,t){this.type=e,this.args=t};vt.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=mt[n],i=[],o=1;o<e.length;o++){var a=t.parse(e[o],o,He);if(!a)return null;i.push(a)}return new vt(r,i)},vt.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,i=this.args;r<i.length;r+=1){if(n=null,(t=i[r].evaluate(e))instanceof et)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.":ot(t[0],t[1],t[2],t[3])))return new et(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new ct(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,u=this.args;s<u.length;s+=1){if(null===(a=u[s].evaluate(e)))return 0;var l=Number(a);if(!isNaN(l))return l}throw new ct("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?rt.fromString(ut(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?it.fromString(ut(this.args[0].evaluate(e))):ut(this.args[0].evaluate(e))},vt.prototype.eachChild=function(e){this.args.forEach(e)},vt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},vt.prototype.serialize=function(){if("formatted"===this.type.kind)return new dt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new ht(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild((function(t){e.push(t.serialize())})),e};var gt=["Unknown","Point","LineString","Polygon"],yt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};yt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},yt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?gt[this.feature.type]:this.feature.type:null},yt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},yt.prototype.canonicalID=function(){return this.canonical},yt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},yt.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=et.parse(e)),t};var bt=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};bt.prototype.evaluate=function(e){return this._evaluate(e,this.args)},bt.prototype.eachChild=function(e){this.args.forEach(e)},bt.prototype.outputDefined=function(){return!1},bt.prototype.serialize=function(){return[this.name].concat(this.args.map((function(e){return e.serialize()})))},bt.parse=function(e,t){var n,r=e[0],i=bt.definitions[r];if(!i)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1})),u=null,l=0,c=s;l<c.length;l+=1){var f=c[l],p=f[0],d=f[1];u=new Ut(t.registry,t.path,null,t.scope);for(var h=[],m=!1,v=1;v<e.length;v++){var g=e[v],y=Array.isArray(p)?p[v-1]:p.type,b=u.parse(g,1+h.length,y);if(!b){m=!0;break}h.push(b)}if(!m)if(Array.isArray(p)&&p.length!==h.length)u.error("Expected "+p.length+" arguments, but found "+h.length+" instead.");else{for(var _=0;_<h.length;_++){var x=Array.isArray(p)?p[_]:p.type,w=h[_];u.concat(_+1).checkSubtype(x,w.type)}if(0===u.errors.length)return new bt(r,o,d,h)}}if(1===s.length)(n=t.errors).push.apply(n,u.errors);else{for(var E=(s.length?s:a).map((function(e){var t;return t=e[0],Array.isArray(t)?"("+t.map(Ye).join(", ")+")":"("+Ye(t.type)+"...)"})).join(" | "),O=[],C=1;C<e.length;C++){var D=t.parse(e[C],1+O.length);if(!D)return null;O.push(Ye(D.type))}t.error("Expected arguments of type "+E+", but found ("+O.join(", ")+") instead.")}return null},bt.register=function(e,t){for(var n in bt.definitions=t,t)e[n]=bt};var _t=function(e,t,n){this.type=We,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};function xt(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 wt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Et(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,i=Math.pow(2,t.z);return[Math.round(n*i*8192),Math.round(r*i*8192)]}function Ot(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 Ct(e,t){for(var n,r,i,o,a,s,u,l=!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])*(u=n[1]-(i=p[d+1])[1])-(s=n[0]-i[0])*(a=n[1]-r[1])==0&&o*s<=0&&a*u<=0)return!1;Ot(e,p[d],p[d+1])&&(l=!l)}return l}function Dt(e,t){for(var n=0;n<t.length;n++)if(Ct(e,t[n]))return!0;return!1}function St(e,t,n,r){var i=r[0]-n[0],o=r[1]-n[1],a=(e[0]-n[0])*o-i*(e[1]-n[1]),s=(t[0]-n[0])*o-i*(t[1]-n[1]);return a>0&&s<0||a<0&&s>0}function kt(e,t,n){for(var r=0,i=n;r<i.length;r+=1)for(var o=i[r],a=0;a<o.length-1;++a)if(0!=(f=[(c=o[a+1])[0]-(l=o[a])[0],c[1]-l[1]])[0]*(p=[(u=t)[0]-(s=e)[0],u[1]-s[1]])[1]-f[1]*p[0]&&St(s,u,l,c)&&St(l,c,s,u))return!0;var s,u,l,c,f,p;return!1}function At(e,t){for(var n=0;n<e.length;++n)if(!Ct(e[n],t))return!1;for(var r=0;r<e.length-1;++r)if(kt(e[r],e[r+1],t))return!1;return!0}function Tt(e,t){for(var n=0;n<t.length;n++)if(At(e,t[n]))return!0;return!1}function Pt(e,t,n){for(var r=[],i=0;i<e.length;i++){for(var o=[],a=0;a<e[i].length;a++){var s=Et(e[i][a],n);xt(t,s),o.push(s)}r.push(o)}return r}function Mt(e,t,n){for(var r=[],i=0;i<e.length;i++){var o=Pt(e[i],t,n);r.push(o)}return r}function jt(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){var i=.5*r,o=e[0]-n[0]>i?-r:n[0]-e[0]>i?r:0;0===o&&(o=e[0]-n[2]>i?-r:n[2]-e[0]>i?r:0),e[0]+=o}xt(t,e)}function It(e,t,n,r){for(var i=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[],s=0,u=e;s<u.length;s+=1)for(var l=0,c=u[s];l<c.length;l+=1){var f=c[l],p=[f.x+o[0],f.y+o[1]];jt(p,t,n,i),a.push(p)}return a}function Ft(e,t,n,r){for(var i,o=8192*Math.pow(2,r.z),a=[8192*r.x,8192*r.y],s=[],u=0,l=e;u<l.length;u+=1){for(var c=[],f=0,p=l[u];f<p.length;f+=1){var d=p[f],h=[d.x+a[0],d.y+a[1]];xt(t,h),c.push(h)}s.push(c)}if(t[2]-t[0]<=o/2){(i=t)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var m=0,v=s;m<v.length;m+=1)for(var g=0,y=v[m];g<y.length;g+=1)jt(y[g],t,n,o)}return s}_t.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,Ne);if(!r)return null;var i=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ne);if(!i)return null;var o=null;return n.locale&&!(o=t.parse(n.locale,1,Be))?null:new _t(r,i,o)},_t.prototype.evaluate=function(e){return new tt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},_t.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},_t.prototype.outputDefined=function(){return!1},_t.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 Rt=function(e,t){this.type=Ne,this.geojson=e,this.geometries=t};function Lt(e){if(e instanceof bt){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 Rt)return!1;var t=!0;return e.eachChild((function(e){t&&!Lt(e)&&(t=!1)})),t}function zt(e){if(e instanceof bt&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild((function(e){t&&!zt(e)&&(t=!1)})),t}function Bt(e,t){if(e instanceof bt&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild((function(e){n&&!Bt(e,t)&&(n=!1)})),n}Rt.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(at(e[1])){var n=e[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var i=n.features[r].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Rt(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Rt(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new Rt(n,n)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Rt.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],i=e.canonicalID();if("Polygon"===t.type){var o=Pt(t.coordinates,r,i),a=It(e.geometry(),n,r,i);if(!wt(n,r))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!Ct(u[s],o))return!1}if("MultiPolygon"===t.type){var l=Mt(t.coordinates,r,i),c=It(e.geometry(),n,r,i);if(!wt(n,r))return!1;for(var f=0,p=c;f<p.length;f+=1)if(!Dt(p[f],l))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],i=e.canonicalID();if("Polygon"===t.type){var o=Pt(t.coordinates,r,i),a=Ft(e.geometry(),n,r,i);if(!wt(n,r))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!At(u[s],o))return!1}if("MultiPolygon"===t.type){var l=Mt(t.coordinates,r,i),c=Ft(e.geometry(),n,r,i);if(!wt(n,r))return!1;for(var f=0,p=c;f<p.length;f+=1)if(!Tt(p[f],l))return!1}return!0}(e,this.geometries)}return!1},Rt.prototype.eachChild=function(){},Rt.prototype.outputDefined=function(){return!0},Rt.prototype.serialize=function(){return["within",this.geojson]};var Nt=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};Nt.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 Nt(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)},Nt.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},Nt.prototype.eachChild=function(){},Nt.prototype.outputDefined=function(){return!1},Nt.prototype.serialize=function(){return["var",this.name]};var Ut=function(e,t,n,r,i){void 0===t&&(t=[]),void 0===r&&(r=new Re),void 0===i&&(i=[]),this.registry=e,this.path=t,this.key=t.map((function(e){return"["+e+"]"})).join(""),this.scope=r,this.errors=i,this.expectedType=n};function Vt(e,t){for(var n,r=e.length-1,i=0,o=r,a=0;i<=o;)if((n=e[a=Math.floor((i+o)/2)])<=t){if(a===r||t<e[a+1])return a;i=a+1}else{if(!(n>t))throw new ct("Input is not a number.");o=a-1}return 0}Ut.prototype.parse=function(e,t,n,r,i){return void 0===i&&(i={}),t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)},Ut.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new pt(t,[e]):"coerce"===n?new vt(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 i=this.registry[r];if(i){var o=i.parse(e,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,t.typeAnnotation||"coerce");else o=n(o,a,t.typeAnnotation||"assert")}if(!(o instanceof lt)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof Nt)return e(t.boundExpression);if(t instanceof bt&&"error"===t.name)return!1;if(t instanceof _t)return!1;if(t instanceof Rt)return!1;var n=t instanceof vt||t instanceof pt,r=!0;return t.eachChild((function(t){r=n?r&&e(t):r&&t instanceof lt})),!!r&&Lt(t)&&Bt(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var u=new yt;try{o=new lt(o.type,o.evaluate(u))}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.")},Ut.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new Ut(this.registry,r,t||null,i,this.errors)},Ut.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 Fe(r,e))},Ut.prototype.checkSubtype=function(e,t){var n=Xe(e,t);return n&&this.error(n),n};var Ht=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,i=n;r<i.length;r+=1){var o=i[r],a=o[1];this.labels.push(o[0]),this.outputs.push(a)}};function Wt(e,t,n){return e*(1-n)+t*n}Ht.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,ze);if(!n)return null;var r=[],i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(var o=1;o<e.length;o+=2){var a=1===o?-1/0:e[o],s=e[o+1],u=o,l=o+1;if("number"!=typeof a)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',u);if(r.length&&r[r.length-1][0]>=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var c=t.parse(s,l,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new Ht(i,n,r)},Ht.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 i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[Vt(t,r)].evaluate(e)},Ht.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},Ht.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},Ht.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 Gt=Object.freeze({__proto__:null,number:Wt,color:function(e,t,n){return new et(Wt(e.r,t.r,n),Wt(e.g,t.g,n),Wt(e.b,t.b,n),Wt(e.a,t.a,n))},array:function(e,t,n){return e.map((function(e,r){return Wt(e,t[r],n)}))}}),qt=6/29*3*(6/29),$t=Math.PI/180,Yt=180/Math.PI;function Zt(e){return e>.008856451679035631?Math.pow(e,1/3):e/qt+4/29}function Xt(e){return e>6/29?e*e*e:qt*(e-4/29)}function Kt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Jt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Qt(e){var t=Jt(e.r),n=Jt(e.g),r=Jt(e.b),i=Zt((.4124564*t+.3575761*n+.1804375*r)/.95047),o=Zt((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Zt((.0193339*t+.119192*n+.9503041*r)/1.08883)),alpha:e.a}}function en(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*Xt(t),n=.95047*Xt(n),r=1.08883*Xt(r),new et(Kt(3.2404542*n-1.5371385*t-.4985314*r),Kt(-.969266*n+1.8760108*t+.041556*r),Kt(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function tn(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var nn={forward:Qt,reverse:en,interpolate:function(e,t,n){return{l:Wt(e.l,t.l,n),a:Wt(e.a,t.a,n),b:Wt(e.b,t.b,n),alpha:Wt(e.alpha,t.alpha,n)}}},rn={forward:function(e){var t=Qt(e),n=t.l,r=t.a,i=t.b,o=Math.atan2(i,r)*Yt;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:e.a}},reverse:function(e){var t=e.h*$t,n=e.c;return en({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:tn(e.h,t.h,n),c:Wt(e.c,t.c,n),l:Wt(e.l,t.l,n),alpha:Wt(e.alpha,t.alpha,n)}}},on=Object.freeze({__proto__:null,lab:nn,hcl:rn}),an=function(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],u=s[1];this.labels.push(s[0]),this.outputs.push(u)}};function sn(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}an.interpolationFactor=function(e,t,r,i){var o=0;if("exponential"===e.name)o=sn(t,e.base,r,i);else if("linear"===e.name)o=sn(t,1,r,i);else if("cubic-bezier"===e.name){var a=e.controlPoints;o=new n(a[0],a[1],a[2],a[3]).solve(sn(t,1,r,i))}return o},an.parse=function(e,t){var n=e[0],r=e[1],i=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 a=r[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.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:s}}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(!(i=t.parse(i,2,ze)))return null;var u=[],l=null;"interpolate-hcl"===n||"interpolate-lab"===n?l=Ue:t.expectedType&&"value"!==t.expectedType.kind&&(l=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(u.length&&u[u.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 m=t.parse(p,h,l);if(!m)return null;l=l||m.type,u.push([f,m])}return"number"===l.kind||"color"===l.kind||"array"===l.kind&&"number"===l.itemType.kind&&"number"==typeof l.N?new an(l,n,r,i,u):t.error("Type "+Ye(l)+" is not interpolatable.")},an.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 i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);var o=Vt(t,r),a=an.interpolationFactor(this.interpolation,r,t[o],t[o+1]),s=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?Gt[this.type.kind.toLowerCase()](s,u,a):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(s),rn.forward(u),a)):nn.reverse(nn.interpolate(nn.forward(s),nn.forward(u),a))},an.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},an.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},an.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 un=function(e,t){this.type=e,this.args=t};un.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 i=[],o=0,a=e.slice(1);o<a.length;o+=1){var s=t.parse(a[o],1+i.length,n,void 0,{typeAnnotation:"omit"});if(!s)return null;n=n||s.type,i.push(s)}var u=r&&i.some((function(e){return Xe(r,e.type)}));return new un(u?He:n,i)},un.prototype.evaluate=function(e){for(var t,n=null,r=0,i=0,o=this.args;i<o.length&&(r++,(n=o[i].evaluate(e))&&n instanceof it&&!n.available&&(t||(t=n.name),n=null,r===this.args.length&&(n=t)),null===n);i+=1);return n},un.prototype.eachChild=function(e){this.args.forEach(e)},un.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},un.prototype.serialize=function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e};var ln=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};ln.prototype.evaluate=function(e){return this.result.evaluate(e)},ln.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},ln.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 i=e[r];if("string"!=typeof i)return t.error("Expected string, but found "+typeof i+" instead.",r);if(/[^a-zA-Z0-9_]/.test(i))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([i,o])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return a?new ln(n,a):null},ln.prototype.outputDefined=function(){return this.result.outputDefined()},ln.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 cn=function(e,t,n){this.type=e,this.index=t,this.input=n};cn.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,ze),r=t.parse(e[2],2,$e(t.expectedType||He));return n&&r?new cn(r.type.itemType,n,r):null},cn.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new ct("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new ct("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new ct("Array index must be an integer, but found "+t+" instead.");return n[t]},cn.prototype.eachChild=function(e){e(this.index),e(this.input)},cn.prototype.outputDefined=function(){return!1},cn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fn=function(e,t){this.type=Ne,this.needle=e,this.haystack=t};fn.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,He),r=t.parse(e[2],2,He);return n&&r?Ke(n.type,[Ne,Be,ze,Le,He])?new fn(n,r):t.error("Expected first argument to be of type boolean, string, number or null, but found "+Ye(n.type)+" instead"):null},fn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!Je(t,["boolean","string","number","null"]))throw new ct("Expected first argument to be of type boolean, string, number or null, but found "+Ye(st(t))+" instead.");if(!Je(n,["string","array"]))throw new ct("Expected second argument to be of type array or string, but found "+Ye(st(n))+" instead.");return n.indexOf(t)>=0},fn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},fn.prototype.outputDefined=function(){return!0},fn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pn=function(e,t,n){this.type=ze,this.needle=e,this.haystack=t,this.fromIndex=n};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,He),r=t.parse(e[2],2,He);if(!n||!r)return null;if(!Ke(n.type,[Ne,Be,ze,Le,He]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+Ye(n.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,ze);return i?new pn(n,r,i):null}return new pn(n,r)},pn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Je(t,["boolean","string","number","null"]))throw new ct("Expected first argument to be of type boolean, string, number or null, but found "+Ye(st(t))+" instead.");if(!Je(n,["string","array"]))throw new ct("Expected second argument to be of type array or string, but found "+Ye(st(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)},pn.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},pn.prototype.outputDefined=function(){return!1},pn.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 dn=function(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};dn.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 i={},o=[],a=2;a<e.length-1;a+=2){var s=e[a],u=e[a+1];Array.isArray(s)||(s=[s]);var l=t.concat(a);if(0===s.length)return l.error("Expected at least one branch label.");for(var c=0,f=s;c<f.length;c+=1){var p=f[c];if("number"!=typeof p&&"string"!=typeof p)return l.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return l.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return l.error("Numeric branch labels must be integer values.");if(n){if(l.checkSubtype(n,st(p)))return null}else n=st(p);if(void 0!==i[String(p)])return l.error("Branch labels must be unique.");i[String(p)]=o.length}var d=t.parse(u,a,r);if(!d)return null;r=r||d.type,o.push(d)}var h=t.parse(e[1],1,He);if(!h)return null;var m=t.parse(e[e.length-1],e.length-1,r);return m?"value"!==h.type.kind&&t.concat(1).checkSubtype(n,h.type)?null:new dn(n,r,h,i,o,m):null},dn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(st(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},dn.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},dn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()},dn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(f=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[f][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},u=0,l=n;u<l.length;u+=1){var c=l[u],f=c[0],p=c[1];t.push(1===p.length?s(p[0]):p.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var hn=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};hn.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=[],i=1;i<e.length-1;i+=2){var o=t.parse(e[i],i,Ne);if(!o)return null;var a=t.parse(e[i+1],i+1,n);if(!a)return null;r.push([o,a]),n=n||a.type}var s=t.parse(e[e.length-1],e.length-1,n);return s?new hn(n,r,s):null},hn.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[1];if(r[0].evaluate(e))return i.evaluate(e)}return this.otherwise.evaluate(e)},hn.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[1];e(r[0]),e(i)}e(this.otherwise)},hn.prototype.outputDefined=function(){return this.branches.every((function(e){return e[1].outputDefined()}))&&this.otherwise.outputDefined()},hn.prototype.serialize=function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e};var mn=function(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r};function vn(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 gn(e,t,n,r){return 0===r.compare(t,n)}function yn(e,t,n){var r="=="!==e&&"!="!==e;return function(){function i(e,t,n){this.type=Ne,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return i.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,He);if(!o)return null;if(!vn(n,o.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+Ye(o.type)+"'.");var a=t.parse(e[2],2,He);if(!a)return null;if(!vn(n,a.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+Ye(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+Ye(o.type)+"' and '"+Ye(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new pt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new pt(o.type,[a])));var s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,We)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){var s=st(o),u=st(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new ct('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+u.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var l=st(o),c=st(a);if("string"!==l.kind||"string"!==c.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)},i.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t},i}()}mn.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,He),r=t.parse(e[2],2,ze);if(!n||!r)return null;if(!Ke(n.type,[$e(He),Be,He]))return t.error("Expected first argument to be of type array or string, but found "+Ye(n.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,ze);return i?new mn(n.type,n,r,i):null}return new mn(n.type,n,r)},mn.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Je(t,["string","array"]))throw new ct("Expected first argument to be of type array or string, but found "+Ye(st(t))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)},mn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},mn.prototype.outputDefined=function(){return!1},mn.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 bn=yn("==",(function(e,t,n){return t===n}),gn),_n=yn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!gn(0,t,n,r)})),xn=yn("<",(function(e,t,n){return t<n}),(function(e,t,n,r){return r.compare(t,n)<0})),wn=yn(">",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),En=yn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),On=yn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0})),Cn=function(e,t,n,r,i){this.type=Be,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};Cn.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,ze);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 i=null;if(r.locale&&!(i=t.parse(r.locale,1,Be)))return null;var o=null;if(r.currency&&!(o=t.parse(r.currency,1,Be)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=t.parse(r["min-fraction-digits"],1,ze)))return null;var s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,ze))?null:new Cn(n,i,o,a,s)},Cn.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))},Cn.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)},Cn.prototype.outputDefined=function(){return!1},Cn.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 Dn=function(e){this.type=ze,this.input=e};Dn.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 "+Ye(n.type)+" instead."):new Dn(n):null},Dn.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 ct("Expected value to be of type string or array, but found "+Ye(st(t))+" instead.")},Dn.prototype.eachChild=function(e){e(this.input)},Dn.prototype.outputDefined=function(){return!1},Dn.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Sn={"==":bn,"!=":_n,">":wn,"<":xn,">=":On,"<=":En,array:pt,at:cn,boolean:pt,case:hn,coalesce:un,collator:_t,format:dt,image:ht,in:fn,"index-of":pn,interpolate:an,"interpolate-hcl":an,"interpolate-lab":an,length:Dn,let:ln,literal:lt,match:dn,number:pt,"number-format":Cn,object:pt,slice:mn,step:Ht,string:pt,"to-boolean":vt,"to-color":vt,"to-number":vt,"to-string":vt,var:Nt,within:Rt};function kn(e,t){var n=t[0],r=t[1],i=t[2],o=t[3];n=n.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);var a=o?o.evaluate(e):1,s=ot(n,r,i,a);if(s)throw new ct(s);return new et(n/255*a,r/255*a,i/255*a,a)}function An(e,t){return e in t}function Tn(e,t){var n=t[e];return void 0===n?null:n}function Pn(e){return{type:e}}function Mn(e){return{result:"success",value:e}}function jn(e){return{result:"error",value:e}}function In(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Fn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Rn(e){return!!e.expression&&e.expression.interpolated}function Ln(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function zn(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Bn(e){return e}function Nn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Un(e,t,n,r,i){return Nn(typeof n===i?r[n]:void 0,e.default,t.default)}function Vn(e,t,n){if("number"!==Ln(n))return Nn(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 i=Vt(e.stops.map((function(e){return e[0]})),n);return e.stops[i][1]}function Hn(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==Ln(n))return Nn(e.default,t.default);var i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];var o=Vt(e.stops.map((function(e){return e[0]})),n),a=function(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],u=e.stops[o+1][1],l=Gt[t.type]||Bn;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=on[e.colorSpace];l=function(e,t){return c.reverse(c.interpolate(c.forward(e),c.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=s.evaluate.apply(void 0,e),r=u.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return l(n,r,a)}}:l(s,u,a)}function Wn(e,t,n){return"color"===t.type?n=et.parse(n):"formatted"===t.type?n=rt.fromString(n.toString()):"resolvedImage"===t.type?n=it.fromString(n.toString()):Ln(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Nn(n,e.default,t.default)}bt.register(Sn,{error:[{kind:"error"},[Be],function(e,t){throw new ct(t[0].evaluate(e))}],typeof:[Be,[He],function(e,t){return Ye(st(t[0].evaluate(e)))}],"to-rgba":[$e(ze,4),[Ue],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Ue,[ze,ze,ze],kn],rgba:[Ue,[ze,ze,ze,ze],kn],has:{type:Ne,overloads:[[[Be],function(e,t){return An(t[0].evaluate(e),e.properties())}],[[Be,Ve],function(e,t){var n=t[1];return An(t[0].evaluate(e),n.evaluate(e))}]]},get:{type:He,overloads:[[[Be],function(e,t){return Tn(t[0].evaluate(e),e.properties())}],[[Be,Ve],function(e,t){var n=t[1];return Tn(t[0].evaluate(e),n.evaluate(e))}]]},"feature-state":[He,[Be],function(e,t){return Tn(t[0].evaluate(e),e.featureState||{})}],properties:[Ve,[],function(e){return e.properties()}],"geometry-type":[Be,[],function(e){return e.geometryType()}],id:[He,[],function(e){return e.id()}],zoom:[ze,[],function(e){return e.globals.zoom}],"heatmap-density":[ze,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[ze,[],function(e){return e.globals.lineProgress||0}],accumulated:[He,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[ze,Pn(ze),function(e,t){for(var n=0,r=0,i=t;r<i.length;r+=1)n+=i[r].evaluate(e);return n}],"*":[ze,Pn(ze),function(e,t){for(var n=1,r=0,i=t;r<i.length;r+=1)n*=i[r].evaluate(e);return n}],"-":{type:ze,overloads:[[[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)-n.evaluate(e)}],[[ze],function(e,t){return-t[0].evaluate(e)}]]},"/":[ze,[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)/n.evaluate(e)}],"%":[ze,[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)%n.evaluate(e)}],ln2:[ze,[],function(){return Math.LN2}],pi:[ze,[],function(){return Math.PI}],e:[ze,[],function(){return Math.E}],"^":[ze,[ze,ze],function(e,t){var n=t[1];return Math.pow(t[0].evaluate(e),n.evaluate(e))}],sqrt:[ze,[ze],function(e,t){return Math.sqrt(t[0].evaluate(e))}],log10:[ze,[ze],function(e,t){return Math.log(t[0].evaluate(e))/Math.LN10}],ln:[ze,[ze],function(e,t){return Math.log(t[0].evaluate(e))}],log2:[ze,[ze],function(e,t){return Math.log(t[0].evaluate(e))/Math.LN2}],sin:[ze,[ze],function(e,t){return Math.sin(t[0].evaluate(e))}],cos:[ze,[ze],function(e,t){return Math.cos(t[0].evaluate(e))}],tan:[ze,[ze],function(e,t){return Math.tan(t[0].evaluate(e))}],asin:[ze,[ze],function(e,t){return Math.asin(t[0].evaluate(e))}],acos:[ze,[ze],function(e,t){return Math.acos(t[0].evaluate(e))}],atan:[ze,[ze],function(e,t){return Math.atan(t[0].evaluate(e))}],min:[ze,Pn(ze),function(e,t){return Math.min.apply(Math,t.map((function(t){return t.evaluate(e)})))}],max:[ze,Pn(ze),function(e,t){return Math.max.apply(Math,t.map((function(t){return t.evaluate(e)})))}],abs:[ze,[ze],function(e,t){return Math.abs(t[0].evaluate(e))}],round:[ze,[ze],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ze,[ze],function(e,t){return Math.floor(t[0].evaluate(e))}],ceil:[ze,[ze],function(e,t){return Math.ceil(t[0].evaluate(e))}],"filter-==":[Ne,[Be,He],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[Ne,[He],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[Ne,[Be],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[Ne,[Be,He],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[Ne,[He],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r<i}],"filter->":[Ne,[Be,He],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[Ne,[He],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[Ne,[Be,He],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[Ne,[He],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[Ne,[Be,He],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[Ne,[He],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[Ne,[He],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[Ne,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[Ne,[$e(Be)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[Ne,[$e(He)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[Ne,[Be,$e(He)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[Ne,[Be,$e(He)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:Ne,overloads:[[[Ne,Ne],function(e,t){var n=t[1];return t[0].evaluate(e)&&n.evaluate(e)}],[Pn(Ne),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:Ne,overloads:[[[Ne,Ne],function(e,t){var n=t[1];return t[0].evaluate(e)||n.evaluate(e)}],[Pn(Ne),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[Ne,[Ne],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[Ne,[Be],function(e,t){var n=e.globals&&e.globals.isSupportedScript;return!n||n(t[0].evaluate(e))}],upcase:[Be,[Be],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[Be,[Be],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[Be,Pn(He),function(e,t){return t.map((function(t){return ut(t.evaluate(e))})).join("")}],"resolved-locale":[Be,[We],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var Gn=function(e,t){this.expression=e,this._warningHistory={},this._evaluator=new yt,this._defaultValue=t?function(e){return"color"===e.type&&zn(e.default)?new et(0,0,0,0):"color"===e.type?et.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null};function qn(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Sn}function $n(e,t){var n=new Ut(Sn,[],t?function(e){var t={color:Ue,string:Be,number:ze,enum:Be,boolean:Ne,formatted:Ge,resolvedImage:qe};return"array"===e.type?$e(t[e.value]||He,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?Mn(new Gn(r,t)):jn(n.errors)}Gn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},Gn.prototype.evaluate=function(e,t,n,r,i,o){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ct("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var Yn=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!zt(t.expression)};Yn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)},Yn.prototype.evaluate=function(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)};var Zn=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!zt(t.expression),this.interpolationType=r};function Xn(e,t){if("error"===(e=$n(e,t)).result)return e;var n=e.value.expression,r=Lt(n);if(!r&&!In(t))return jn([new Fe("","data expressions not supported")]);var i=Bt(n,["zoom"]);if(!i&&!Fn(t))return jn([new Fe("","zoom expressions not supported")]);var o=function e(t){var n=null;if(t instanceof ln)n=e(t.result);else if(t instanceof un)for(var r=0,i=t.args;r<i.length&&!(n=e(i[r]));r+=1);else(t instanceof Ht||t instanceof an)&&t.input instanceof bt&&"zoom"===t.input.name&&(n=t);return n instanceof Fe||t.eachChild((function(t){var r=e(t);r instanceof Fe?n=r:!n&&r?n=new Fe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Fe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);return o||i?o instanceof Fe?jn([o]):o instanceof an&&!Rn(t)?jn([new Fe("",'"interpolate" expressions cannot be used with this property')]):Mn(o?new Zn(r?"camera":"composite",e.value,o.labels,o instanceof an?o.interpolation:void 0):new Yn(r?"constant":"source",e.value)):jn([new Fe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}Zn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)},Zn.prototype.evaluate=function(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)},Zn.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?an.interpolationFactor(this.interpolationType,e,t,n):0};var Kn=function(e,t){this._parameters=e,this._specification=t,Me(this,function e(t,n){var r,i,o,a="color"===n.type,s=t.stops&&"object"==typeof t.stops[0][0],u=s||!(s||void 0!==t.property),l=t.type||(Rn(n)?"exponential":"interval");if(a&&((t=Me({},t)).stops&&(t.stops=t.stops.map((function(e){return[e[0],et.parse(e[1])]}))),t.default=et.parse(t.default?t.default:n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!on[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===l)r=Hn;else if("interval"===l)r=Vn;else if("categorical"===l){r=Un,i=Object.create(null);for(var c=0,f=t.stops;c<f.length;c+=1){var p=f[c];i[p[0]]=p[1]}o=typeof t.stops[0][0]}else{if("identity"!==l)throw new Error('Unknown function type "'+l+'"');r=Wn}if(s){for(var d={},h=[],m=0;m<t.stops.length;m++){var v=t.stops[m],g=v[0].zoom;void 0===d[g]&&(d[g]={zoom:g,type:t.type,property:t.property,default:t.default,stops:[]},h.push(g)),d[g].stops.push([v[0].value,v[1]])}for(var y=[],b=0,_=h;b<_.length;b+=1){var x=_[b];y.push([d[x].zoom,e(d[x],n)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:an.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(e){return e[0]})),evaluate:function(e,r){var i=e.zoom;return Hn({stops:y,base:t.base},n,i).evaluate(i,r)}}}if(u){var E="exponential"===l?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:E,interpolationFactor:an.interpolationFactor.bind(void 0,E),zoomStops:t.stops.map((function(e){return e[0]})),evaluate:function(e){return r(t,n,e.zoom,i,o)}}}return{kind:"source",evaluate:function(e,a){var s=a&&a.properties?a.properties[t.property]:void 0;return void 0===s?Nn(t.default,n.default):r(t,n,s,i,o)}}}(this._parameters,this._specification))};function Jn(e){var t=e.key,n=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,a=e.styleSpec,s=[],u=Ln(n);if("object"!==u)return[new Te(t,n,"object expected, "+u+" found")];for(var l in n){var c=l.split(".")[0],f=r[c]||r["*"],p=void 0;if(i[c])p=i[c];else if(r[c])p=Er;else if(i["*"])p=i["*"];else{if(!r["*"]){s.push(new Te(t,n[l],'unknown property "'+l+'"'));continue}p=Er}s=s.concat(p({key:(t?t+".":t)+l,value:n[l],valueSpec:f,style:o,styleSpec:a,object:n,objectKey:l},n))}for(var d in r)i[d]||r[d].required&&void 0===r[d].default&&void 0===n[d]&&s.push(new Te(t,n,'missing required property "'+d+'"'));return s}function Qn(e){var t=e.value,n=e.valueSpec,r=e.style,i=e.styleSpec,o=e.key,a=e.arrayElementValidator||Er;if("array"!==Ln(t))return[new Te(o,t,"array expected, "+Ln(t)+" found")];if(n.length&&t.length!==n.length)return[new Te(o,t,"array length "+n.length+" expected, length "+t.length+" found")];if(n["min-length"]&&t.length<n["min-length"])return[new Te(o,t,"array length at least "+n["min-length"]+" expected, length "+t.length+" found")];var s={type:n.value,values:n.values};i.$version<7&&(s.function=n.function),"object"===Ln(n.value)&&(s=n.value);for(var u=[],l=0;l<t.length;l++)u=u.concat(a({array:t,arrayIndex:l,value:t[l],valueSpec:s,style:r,styleSpec:i,key:o+"["+l+"]"}));return u}function er(e){var t=e.key,n=e.value,r=e.valueSpec,i=Ln(n);return"number"===i&&n!=n&&(i="NaN"),"number"!==i?[new Te(t,n,"number expected, "+i+" found")]:"minimum"in r&&n<r.minimum?[new Te(t,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new Te(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function tr(e){var t,n,r,i=e.valueSpec,o=je(e.value.type),a={},s="categorical"!==o&&void 0===e.value.property,u=!s,l="array"===Ln(e.value.stops)&&"array"===Ln(e.value.stops[0])&&"object"===Ln(e.value.stops[0][0]),c=Jn({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 Te(e.key,e.value,'identity function may not have a "stops" property')];var t=[],n=e.value;return t=t.concat(Qn({key:e.key,value:n,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:f})),"array"===Ln(n)&&0===n.length&&t.push(new Te(e.key,n,"array must have at least one stop")),t},default:function(e){return Er({key:e.key,value:e.value,valueSpec:i,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&s&&c.push(new Te(e.key,e.value,'missing required property "property"')),"identity"===o||e.value.stops||c.push(new Te(e.key,e.value,'missing required property "stops"')),"exponential"===o&&e.valueSpec.expression&&!Rn(e.valueSpec)&&c.push(new Te(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(u&&!In(e.valueSpec)?c.push(new Te(e.key,e.value,"property functions not supported")):s&&!Fn(e.valueSpec)&&c.push(new Te(e.key,e.value,"zoom functions not supported"))),"categorical"!==o&&!l||void 0!==e.value.property||c.push(new Te(e.key,e.value,'"property" property is required')),c;function f(e){var t=[],o=e.value,s=e.key;if("array"!==Ln(o))return[new Te(s,o,"array expected, "+Ln(o)+" found")];if(2!==o.length)return[new Te(s,o,"array length 2 expected, length "+o.length+" found")];if(l){if("object"!==Ln(o[0]))return[new Te(s,o,"object expected, "+Ln(o[0])+" found")];if(void 0===o[0].zoom)return[new Te(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new Te(s,o,"object stop key must have value")];if(r&&r>je(o[0].zoom))return[new Te(s,o[0].zoom,"stop zoom values must appear in ascending order")];je(o[0].zoom)!==r&&(r=je(o[0].zoom),n=void 0,a={}),t=t.concat(Jn({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:er,value:p}}))}else t=t.concat(p({key:s+"[0]",value:o[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},o));return qn(Ie(o[1]))?t.concat([new Te(s+"[1]",o[1],"expressions are not allowed in function stops.")]):t.concat(Er({key:s+"[1]",value:o[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function p(e,r){var s=Ln(e.value),u=je(e.value),l=null!==e.value?e.value:r;if(t){if(s!==t)return[new Te(e.key,l,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Te(e.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return In(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Te(e.key,l,c)]}return"categorical"!==o||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==o&&"number"===s&&void 0!==n&&u<n?[new Te(e.key,l,"stop domain values must appear in ascending order")]:(n=u,"categorical"===o&&u in a?[new Te(e.key,l,"stop domain values must be unique")]:(a[u]=!0,[])):[new Te(e.key,l,"integer expected, found "+u)]}}function nr(e){var t=("property"===e.expressionContext?Xn:$n)(Ie(e.value),e.valueSpec);if("error"===t.result)return t.value.map((function(t){return new Te(""+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 Te(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&&!zt(n))return[new Te(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!zt(n))return[new Te(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Bt(n,["zoom","feature-state"]))return[new Te(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Lt(n))return[new Te(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function rr(e){var t=e.key,n=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(je(n))&&i.push(new Te(t,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(je(n))&&i.push(new Te(t,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),i}function ir(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(!ir(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Kn.deserialize=function(e){return new Kn(e._parameters,e._specification)},Kn.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var or={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ar(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};ir(e)||(e=ur(e));var t=$n(e,or);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 sr(e,t){return e<t?-1:e>t?1:0}function ur(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?lr(e[1],e[2],"=="):"!="===n?pr(lr(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?lr(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(ur))):"all"===n?["all"].concat(e.slice(1).map(ur)):"none"===n?["all"].concat(e.slice(1).map(ur).map(pr)):"in"===n?cr(e[1],e.slice(2)):"!in"===n?pr(cr(e[1],e.slice(2))):"has"===n?fr(e[1]):"!has"===n?pr(fr(e[1])):"within"!==n||e}function lr(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 cr(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(sr)]]:["filter-in-small",e,["literal",t]]}}function fr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function pr(e){return["!",e]}function dr(e){return ir(Ie(e.value))?nr(Me({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var n=t.value,r=t.key;if("array"!==Ln(n))return[new Te(r,n,"array expected, "+Ln(n)+" found")];var i,o=t.styleSpec,a=[];if(n.length<1)return[new Te(r,n,"filter array must have at least 1 element")];switch(a=a.concat(rr({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:t.style,styleSpec:t.styleSpec})),je(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===je(n[1])&&a.push(new Te(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new Te(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(i=Ln(n[1]))&&a.push(new Te(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s<n.length;s++)i=Ln(n[s]),"$type"===je(n[1])?a=a.concat(rr({key:r+"["+s+"]",value:n[s],valueSpec:o.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&a.push(new Te(r+"["+s+"]",n[s],"string, number, or boolean expected, "+i+" found"));break;case"any":case"all":case"none":for(var u=1;u<n.length;u++)a=a.concat(e({key:r+"["+u+"]",value:n[u],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=Ln(n[1]),2!==n.length?a.push(new Te(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==i&&a.push(new Te(r+"[1]",n[1],"string expected, "+i+" found"));break;case"within":i=Ln(n[1]),2!==n.length?a.push(new Te(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"object"!==i&&a.push(new Te(r+"[1]",n[1],"object expected, "+i+" found"))}return a}(e)}function hr(e,t){var n=e.key,r=e.style,i=e.styleSpec,o=e.value,a=e.objectKey,s=i[t+"_"+e.layerType];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===t&&u&&s[u[1]]&&s[u[1]].transition)return Er({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});var l,c=e.valueSpec||s[a];if(!c)return[new Te(n,o,'unknown property "'+a+'"')];if("string"===Ln(o)&&In(c)&&!c.tokens&&(l=/^{([^}]+)}$/.exec(o)))return[new Te(n,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(l[1])+" }`.")];var f=[];return"symbol"===e.layerType&&("text-field"===a&&r&&!r.glyphs&&f.push(new Te(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&zn(Ie(o))&&"identity"===je(o.type)&&f.push(new Te(n,o,'"text-font" does not support identity functions'))),f.concat(Er({key:e.key,value:o,valueSpec:c,style:r,styleSpec:i,expressionContext:"property",propertyType:t,propertyKey:a}))}function mr(e){return hr(e,"paint")}function vr(e){return hr(e,"layout")}function gr(e){var t=[],n=e.value,r=e.key,i=e.style,o=e.styleSpec;n.type||n.ref||t.push(new Te(r,n,'either "type" or "ref" is required'));var a,s=je(n.type),u=je(n.ref);if(n.id)for(var l=je(n.id),c=0;c<e.arrayIndex;c++){var f=i.layers[c];je(f.id)===l&&t.push(new Te(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 Te(r,n[e],'"'+e+'" is prohibited for ref layers'))})),i.layers.forEach((function(e){je(e.id)===u&&(a=e)})),a?a.ref?t.push(new Te(r,n.ref,"ref cannot reference another ref layer")):s=je(a.type):t.push(new Te(r,n.ref,'ref layer "'+u+'" not found'));else if("background"!==s)if(n.source){var p=i.sources&&i.sources[n.source],d=p&&je(p.type);p?"vector"===d&&"raster"===s?t.push(new Te(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===d&&"raster"!==s?t.push(new Te(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==d||n["source-layer"]?"raster-dem"===d&&"hillshade"!==s?t.push(new Te(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===d&&p.lineMetrics||t.push(new Te(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new Te(r,n,'layer "'+n.id+'" must specify a "source-layer"')):t.push(new Te(r,n.source,'source "'+n.source+'" not found'))}else t.push(new Te(r,n,'missing required property "source"'));return t=t.concat(Jn({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Er({key:r+".type",value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"})},filter:dr,layout:function(e){return Jn({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return vr(Me({layerType:s},e))}}})},paint:function(e){return Jn({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return mr(Me({layerType:s},e))}}})}}}))}function yr(e){var t=e.value,n=e.key,r=Ln(t);return"string"!==r?[new Te(n,t,"string expected, "+r+" found")]:[]}var br={promoteId:function(e){var t=e.key,n=e.value;if("string"===Ln(n))return yr({key:t,value:n});var r=[];for(var i in n)r.push.apply(r,yr({key:t+"."+i,value:n[i]}));return r}};function _r(e){var t=e.value,n=e.key,r=e.styleSpec,i=e.style;if(!t.type)return[new Te(n,t,'"type" is required')];var o,a=je(t.type);switch(a){case"vector":case"raster":case"raster-dem":return Jn({key:n,value:t,valueSpec:r["source_"+a.replace("-","_")],style:e.style,styleSpec:r,objectElementValidators:br});case"geojson":if(o=Jn({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:br}),t.cluster)for(var s in t.clusterProperties){var u=t.clusterProperties[s],l=u[0],c="string"==typeof l?[l,["accumulated"],["get",s]]:l;o.push.apply(o,nr({key:n+"."+s+".map",value:u[1],expressionContext:"cluster-map"})),o.push.apply(o,nr({key:n+"."+s+".reduce",value:c,expressionContext:"cluster-reduce"}))}return o;case"video":return Jn({key:n,value:t,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return Jn({key:n,value:t,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new Te(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return rr({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:r})}}function xr(e){var t=e.value,n=e.styleSpec,r=n.light,i=e.style,o=[],a=Ln(t);if(void 0===t)return o;if("object"!==a)return o.concat([new Te("light",t,"object expected, "+a+" found")]);for(var s in t){var u=s.match(/^(.*)-transition$/);o=o.concat(u&&r[u[1]]&&r[u[1]].transition?Er({key:s,value:t[s],valueSpec:n.transition,style:i,styleSpec:n}):r[s]?Er({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n}):[new Te(s,t[s],'unknown property "'+s+'"')])}return o}var wr={"*":function(){return[]},array:Qn,boolean:function(e){var t=e.value,n=e.key,r=Ln(t);return"boolean"!==r?[new Te(n,t,"boolean expected, "+r+" found")]:[]},number:er,color:function(e){var t=e.key,n=e.value,r=Ln(n);return"string"!==r?[new Te(t,n,"color expected, "+r+" found")]:null===Qe(n)?[new Te(t,n,'color expected, "'+n+'" found')]:[]},constants:Pe,enum:rr,filter:dr,function:tr,layer:gr,object:Jn,source:_r,light:xr,string:yr,formatted:function(e){return 0===yr(e).length?[]:nr(e)},resolvedImage:function(e){return 0===yr(e).length?[]:nr(e)}};function Er(e){var t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&zn(je(t))?tr(e):n.expression&&qn(Ie(t))?nr(e):n.type&&wr[n.type]?wr[n.type](e):Jn(Me({},e,{valueSpec:n.type?r[n.type]:n}))}function Or(e){var t=e.value,n=e.key,r=yr(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Te(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Te(n,t,'"glyphs" url must include a "{range}" token'))),r}function Cr(e,t){void 0===t&&(t=Ae);var n=[];return n=n.concat(Er({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Or,"*":function(){return[]}}})),e.constants&&(n=n.concat(Pe({key:"constants",value:e.constants,style:e,styleSpec:t}))),Dr(n)}function Dr(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function Sr(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Dr(e.apply(this,t))}}Cr.source=Sr(_r),Cr.light=Sr(xr),Cr.layer=Sr(gr),Cr.filter=Sr(dr),Cr.paintProperty=Sr(mr),Cr.layoutProperty=Sr(vr);var kr=Cr,Ar=kr.light,Tr=kr.paintProperty,Pr=kr.layoutProperty;function Mr(e,t){var n=!1;if(t&&t.length)for(var r=0,i=t;r<i.length;r+=1)e.fire(new Se(new Error(i[r].message))),n=!0;return n}var jr=Ir;function Ir(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var i=new Int32Array(this.arrayBuffer);e=i[0],this.d=(t=i[1])+2*(n=i[2]);for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var u=i[3+r.length+1];this.keys=i.subarray(i[3+r.length],u),this.bboxes=i.subarray(u),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var l=0;l<this.d*this.d;l++)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}Ir.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Ir.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ir.prototype._insertCell=function(e,t,n,r,i,o){this.cells[i].push(o)},Ir.prototype.query=function(e,t,n,r,i){var o=this.min,a=this.max;if(e<=o&&t<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,r,this._queryCell,s,{},i),s},Ir.prototype._queryCell=function(e,t,n,r,i,o,a,s){var u=this.cells[i];if(null!==u)for(var l=this.keys,c=this.bboxes,f=0;f<u.length;f++){var p=u[f];if(void 0===a[p]){var d=4*p;(s?s(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])?(a[p]=!0,o.push(l[p])):a[p]=!1}}},Ir.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var u=this._convertToCellCoord(e),l=this._convertToCellCoord(t),c=this._convertToCellCoord(n),f=this._convertToCellCoord(r),p=u;p<=c;p++)for(var d=l;d<=f;d++){var h=this.d*d+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&i.call(this,e,t,n,r,h,o,a,s))return}},Ir.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Ir.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Ir.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 i=new Int32Array(t+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=t,a=0;a<e.length;a++){var s=e[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+e.length]=o,i.set(this.keys,o),i[3+e.length+1]=o+=this.keys.length,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer};var Fr=a.ImageData,Rr=a.ImageBitmap,Lr={};function zr(e,t,n){void 0===n&&(n={}),Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Lr[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}for(var Br in zr("Object",Object),jr.serialize=function(e,t){var n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},jr.deserialize=function(e){return new jr(e.buffer)},zr("Grid",jr),zr("Color",et),zr("Error",Error),zr("ResolvedImage",it),zr("StylePropertyFunction",Kn),zr("StyleExpression",Gn,{omit:["_evaluator"]}),zr("ZoomDependentExpression",Zn),zr("ZoomConstantExpression",Yn),zr("CompoundExpression",bt,{omit:["_evaluate"]}),Sn)Sn[Br]._classRegistryKey||zr("Expression_"+Br,Sn[Br]);function Nr(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Ur(e){return Rr&&e instanceof Rr}function Vr(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(Nr(e)||Ur(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){var n=e;return t&&t.push(n.buffer),n}if(e instanceof Fr)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){for(var r=[],i=0,o=e;i<o.length;i+=1)r.push(Vr(o[i],t));return r}if("object"==typeof e){var a=e.constructor,s=a._classRegistryKey;if(!s)throw new Error("can't serialize object of unregistered class");var u=a.serialize?a.serialize(e,t):{};if(!a.serialize){for(var l in e)if(e.hasOwnProperty(l)&&!(Lr[s].omit.indexOf(l)>=0)){var c=e[l];u[l]=Lr[s].shallow.indexOf(l)>=0?c:Vr(c,t)}e instanceof Error&&(u.message=e.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(u.$name=s),u}throw new Error("can't serialize object of type "+typeof e)}function Hr(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||Nr(e)||Ur(e)||ArrayBuffer.isView(e)||e instanceof Fr)return e;if(Array.isArray(e))return e.map(Hr);if("object"==typeof e){var t=e.$name||"Object",n=Lr[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),i=0,o=Object.keys(e);i<o.length;i+=1){var a=o[i];if("$name"!==a){var s=e[a];r[a]=Lr[t].shallow.indexOf(a)>=0?s:Hr(s)}}return r}throw new Error("can't deserialize object of type "+typeof e)}var Wr=function(){this.first=!0};Wr.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 Gr={"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 qr(e){for(var t=0,n=e;t<n.length;t+=1)if($r(n[t].charCodeAt(0)))return!0;return!1}function $r(e){return!(746!==e&&747!==e&&(e<4352||!(Gr["Bopomofo Extended"](e)||Gr.Bopomofo(e)||Gr["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Gr["CJK Compatibility Ideographs"](e)||Gr["CJK Compatibility"](e)||Gr["CJK Radicals Supplement"](e)||Gr["CJK Strokes"](e)||!(!Gr["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Gr["CJK Unified Ideographs Extension A"](e)||Gr["CJK Unified Ideographs"](e)||Gr["Enclosed CJK Letters and Months"](e)||Gr["Hangul Compatibility Jamo"](e)||Gr["Hangul Jamo Extended-A"](e)||Gr["Hangul Jamo Extended-B"](e)||Gr["Hangul Jamo"](e)||Gr["Hangul Syllables"](e)||Gr.Hiragana(e)||Gr["Ideographic Description Characters"](e)||Gr.Kanbun(e)||Gr["Kangxi Radicals"](e)||Gr["Katakana Phonetic Extensions"](e)||Gr.Katakana(e)&&12540!==e||!(!Gr["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)||!(!Gr["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Gr["Unified Canadian Aboriginal Syllabics"](e)||Gr["Unified Canadian Aboriginal Syllabics Extended"](e)||Gr["Vertical Forms"](e)||Gr["Yijing Hexagram Symbols"](e)||Gr["Yi Syllables"](e)||Gr["Yi Radicals"](e))))}function Yr(e){return!($r(e)||function(e){return!!(Gr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Gr["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)||Gr["Letterlike Symbols"](e)||Gr["Number Forms"](e)||Gr["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)||Gr["Control Pictures"](e)&&9251!==e||Gr["Optical Character Recognition"](e)||Gr["Enclosed Alphanumerics"](e)||Gr["Geometric Shapes"](e)||Gr["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Gr["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Gr["CJK Symbols and Punctuation"](e)||Gr.Katakana(e)||Gr["Private Use Area"](e)||Gr["CJK Compatibility Forms"](e)||Gr["Small Form Variants"](e)||Gr["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 Zr(e){return e>=1424&&e<=2303||Gr["Arabic Presentation Forms-A"](e)||Gr["Arabic Presentation Forms-B"](e)}function Xr(e,t){return!(!t&&Zr(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Gr.Khmer(e))}function Kr(e){for(var t=0,n=e;t<n.length;t+=1)if(Zr(n[t].charCodeAt(0)))return!0;return!1}var Jr=null,Qr="unavailable",ei=null,ti=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Qr="error"),Jr&&Jr(e)};function ni(){ri.fire(new De("pluginStateChange",{pluginStatus:Qr,pluginURL:ei}))}var ri=new ke,ii=function(){return Qr},oi=function(){if("deferred"!==Qr||!ei)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Qr="loading",ni(),ei&&xe({url:ei},(function(e){e?ti(e):(Qr="loaded",ni())}))},ai={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Qr||null!=ai.applyArabicShaping},isLoading:function(){return"loading"===Qr},setState:function(e){Qr=e.pluginStatus,ei=e.pluginURL},isParsed:function(){return null!=ai.applyArabicShaping&&null!=ai.processBidirectionalText&&null!=ai.processStyledBidirectionalText},getPluginURL:function(){return ei}},si=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 Wr,this.transition={})};si.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;n<r.length;n+=1)if(!Xr(r[n].charCodeAt(0),t))return!1;return!0}(e,ai.isLoaded())},si.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},si.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 ui=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(zn(e))return new Kn(e,t);if(qn(e)){var n=Xn(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=et.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};ui.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},ui.prototype.possiblyEvaluate=function(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)};var li=function(e){this.property=e,this.value=new ui(e,void 0)};li.prototype.transitioned=function(e,t){return new fi(this.property,this.value,t,p({},e.transition,this.transition),e.now)},li.prototype.untransitioned=function(){return new fi(this.property,this.value,null,{},0)};var ci=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};ci.prototype.getValue=function(e){return x(this._values[e].value.value)},ci.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new li(this._values[e].property)),this._values[e].value=new ui(this._values[e].property,null===t?void 0:x(t))},ci.prototype.getTransition=function(e){return x(this._values[e].transition)},ci.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new li(this._values[e].property)),this._values[e].transition=x(t)||void 0},ci.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],i=this.getValue(r);void 0!==i&&(e[r]=i);var o=this.getTransition(r);void 0!==o&&(e[r+"-transition"]=o)}return e},ci.prototype.transitioned=function(e,t){for(var n=new pi(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var o=i[r];n._values[o]=this._values[o].transitioned(e,t._values[o])}return n},ci.prototype.untransitioned=function(){for(var e=new pi(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 fi=function(e,t,n,r,i){this.property=e,this.value=t,this.begin=i+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};fi.prototype.possiblyEvaluate=function(e,t,n){var r=e.now||0,i=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r<this.begin)return o.possiblyEvaluate(e,t,n);var a=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,n),i,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)}(a))}return i};var pi=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};pi.prototype.possiblyEvaluate=function(e,t,n){for(var r=new mi(this._properties),i=0,o=Object.keys(this._values);i<o.length;i+=1){var a=o[i];r._values[a]=this._values[a].possiblyEvaluate(e,t,n)}return r},pi.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 di=function(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)};di.prototype.getValue=function(e){return x(this._values[e].value)},di.prototype.setValue=function(e,t){this._values[e]=new ui(this._values[e].property,null===t?void 0:x(t))},di.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],i=this.getValue(r);void 0!==i&&(e[r]=i)}return e},di.prototype.possiblyEvaluate=function(e,t,n){for(var r=new mi(this._properties),i=0,o=Object.keys(this._values);i<o.length;i+=1){var a=o[i];r._values[a]=this._values[a].possiblyEvaluate(e,t,n)}return r};var hi=function(e,t,n){this.property=e,this.value=t,this.parameters=n};hi.prototype.isConstant=function(){return"constant"===this.value.kind},hi.prototype.constantOr=function(e){return"constant"===this.value.kind?this.value.value:e},hi.prototype.evaluate=function(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)};var mi=function(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)};mi.prototype.get=function(e){return this._values[e]};var vi=function(e){this.specification=e};vi.prototype.possiblyEvaluate=function(e,t){return e.expression.evaluate(t)},vi.prototype.interpolate=function(e,t,n){var r=Gt[this.specification.type];return r?r(e,t,n):e};var gi=function(e,t){this.specification=e,this.overrides=t};gi.prototype.possiblyEvaluate=function(e,t,n,r){return new hi(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)}:e.expression,t)},gi.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 hi(this,{kind:"constant",value:void 0},e.parameters);var r=Gt[this.specification.type];return r?new hi(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e},gi.prototype.evaluate=function(e,t,n,r,i,o){return"constant"===e.kind?e.value:e.evaluate(t,n,r,i,o)};var yi=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 hi(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){var i=e.expression.evaluate(t,null,{},n,r),o="resolvedImage"===e.property.specification.type&&"string"!=typeof i?i.name:i,a=this._calculate(o,o,o,t);return new hi(this,{kind:"constant",value:a},t)}if("camera"===e.expression.kind){var s=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 hi(this,{kind:"constant",value:s},t)}return new hi(this,e.expression,t)},t.prototype.evaluate=function(e,t,n,r,i,o){if("source"===e.kind){var a=e.evaluate(t,n,r,i,o);return this._calculate(a,a,a,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}(gi),bi=function(e){this.specification=e};bi.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){var i=e.expression.evaluate(t,null,{},n,r);return this._calculate(i,i,i,t)}return this._calculate(e.expression.evaluate(new si(Math.floor(t.zoom-1),t)),e.expression.evaluate(new si(Math.floor(t.zoom),t)),e.expression.evaluate(new si(Math.floor(t.zoom+1),t)),t)}},bi.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},bi.prototype.interpolate=function(e){return e};var _i=function(e){this.specification=e};_i.prototype.possiblyEvaluate=function(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)},_i.prototype.interpolate=function(){return!1};var xi=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 ui(n,void 0),i=this.defaultTransitionablePropertyValues[t]=new li(n);this.defaultTransitioningPropertyValues[t]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};zr("DataDrivenProperty",gi),zr("DataConstantProperty",vi),zr("CrossFadedDataDrivenProperty",yi),zr("CrossFadedProperty",bi),zr("ColorRampProperty",_i);var wi=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 di(n.layout)),n.paint)){for(var r in this._transitionablePaint=new ci(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new mi(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(Pr,"layers."+this.id+".layout."+e,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)},t.prototype.getPaintProperty=function(e){return y(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(Tr,"layers."+this.id+".paint."+e,e,t,n))return!1;if(y(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;var r=this._transitionablePaint._values[e],i="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var s=this._transitionablePaint._values[e].value;return s.isDataDriven()||o||i||this._handleOverridablePaintPropertyUpdate(e,a,s)},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),_(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,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&Mr(this,e.call(kr,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:Ae,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 hi&&In(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(ke),Ei={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Oi=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},Ci=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Di(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map((function(e){var i=Ei[e.type].BYTES_PER_ELEMENT,o=n=Si(n,Math.max(t,i)),a=e.components||1;return r=Math.max(r,i),n+=i*a,{name:e.name,type:e.type,components:a,offset:o}})),size:Si(n,Math.max(r,t)),alignment:t}}function Si(e,t){return Math.ceil(e/t)*t}Ci.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},Ci.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},Ci.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ci.prototype.clear=function(){this.length=0},Ci.prototype.resize=function(e){this.reserve(e),this.length=e},Ci.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)}},Ci.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ki=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}(Ci);ki.prototype.bytesPerElement=4,zr("StructArrayLayout2i4",ki);var Ai=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 i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,e},t}(Ci);Ai.prototype.bytesPerElement=8,zr("StructArrayLayout4i8",Ai);var Ti=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,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e},t}(Ci);Ti.prototype.bytesPerElement=12,zr("StructArrayLayout2i4i12",Ti);var Pi=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,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=4*e,u=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[u+4]=r,this.uint8[u+5]=i,this.uint8[u+6]=o,this.uint8[u+7]=a,e},t}(Ci);Pi.prototype.bytesPerElement=8,zr("StructArrayLayout2i4ub8",Pi);var Mi=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}(Ci);Mi.prototype.bytesPerElement=8,zr("StructArrayLayout2f8",Mi);var ji=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,i,o,a,s,u,l){var c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,i,o,a,s,u,l)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c){var f=10*e;return this.uint16[f+0]=t,this.uint16[f+1]=n,this.uint16[f+2]=r,this.uint16[f+3]=i,this.uint16[f+4]=o,this.uint16[f+5]=a,this.uint16[f+6]=s,this.uint16[f+7]=u,this.uint16[f+8]=l,this.uint16[f+9]=c,e},t}(Ci);ji.prototype.bytesPerElement=20,zr("StructArrayLayout10ui20",ji);var Ii=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,i,o,a,s,u,l,c,f){var p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,i,o,a,s,u,l,c,f)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,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]=i,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=u,this.int16[d+8]=l,this.int16[d+9]=c,this.int16[d+10]=f,this.int16[d+11]=p,e},t}(Ci);Ii.prototype.bytesPerElement=24,zr("StructArrayLayout4i4ui4i24",Ii);var Fi=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 i=3*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,e},t}(Ci);Fi.prototype.bytesPerElement=12,zr("StructArrayLayout3f12",Fi);var Ri=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}(Ci);Ri.prototype.bytesPerElement=4,zr("StructArrayLayout1ul4",Ri);var Li=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,i,o,a,s,u){var l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,i,o,a,s,u)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l){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]=i,this.int16[c+4]=o,this.int16[c+5]=a,this.uint32[f+3]=s,this.uint16[c+8]=u,this.uint16[c+9]=l,e},t}(Ci);Li.prototype.bytesPerElement=20,zr("StructArrayLayout6i1ul2ui20",Li);var zi=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,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e},t}(Ci);zi.prototype.bytesPerElement=12,zr("StructArrayLayout2i2i2i12",zi);var Bi=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,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)},t.prototype.emplace=function(e,t,n,r,i,o){var a=4*e,s=8*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,e},t}(Ci);Bi.prototype.bytesPerElement=16,zr("StructArrayLayout2f1f2i16",Bi);var Ni=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 i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=12*e,a=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,e},t}(Ci);Ni.prototype.bytesPerElement=12,zr("StructArrayLayout2ub2f12",Ni);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.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 i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,this.uint16[i+2]=r,e},t}(Ci);Ui.prototype.bytesPerElement=6,zr("StructArrayLayout3ui6",Ui);var Vi=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,i,o,a,s,u,l,c,f,p,d,h,m,v){var g=this.length;return this.resize(g+1),this.emplace(g,e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m,v)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m,v,g){var y=24*e,b=12*e,_=48*e;return this.int16[y+0]=t,this.int16[y+1]=n,this.uint16[y+2]=r,this.uint16[y+3]=i,this.uint32[b+2]=o,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[y+10]=u,this.uint16[y+11]=l,this.uint16[y+12]=c,this.float32[b+7]=f,this.float32[b+8]=p,this.uint8[_+36]=d,this.uint8[_+37]=h,this.uint8[_+38]=m,this.uint32[b+10]=v,this.int16[y+22]=g,e},t}(Ci);Vi.prototype.bytesPerElement=48,zr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Vi);var Hi=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,i,o,a,s,u,l,c,f,p,d,h,m,v,g,y,b,_,x,w,E,O,C,D,S){var k=this.length;return this.resize(k+1),this.emplace(k,e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m,v,g,y,b,_,x,w,E,O,C,D,S)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m,v,g,y,b,_,x,w,E,O,C,D,S,k){var A=34*e,T=17*e;return this.int16[A+0]=t,this.int16[A+1]=n,this.int16[A+2]=r,this.int16[A+3]=i,this.int16[A+4]=o,this.int16[A+5]=a,this.int16[A+6]=s,this.int16[A+7]=u,this.uint16[A+8]=l,this.uint16[A+9]=c,this.uint16[A+10]=f,this.uint16[A+11]=p,this.uint16[A+12]=d,this.uint16[A+13]=h,this.uint16[A+14]=m,this.uint16[A+15]=v,this.uint16[A+16]=g,this.uint16[A+17]=y,this.uint16[A+18]=b,this.uint16[A+19]=_,this.uint16[A+20]=x,this.uint16[A+21]=w,this.uint16[A+22]=E,this.uint32[T+12]=O,this.float32[T+13]=C,this.float32[T+14]=D,this.float32[T+15]=S,this.float32[T+16]=k,e},t}(Ci);Hi.prototype.bytesPerElement=68,zr("StructArrayLayout8i15ui1ul4f68",Hi);var Wi=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}(Ci);Wi.prototype.bytesPerElement=4,zr("StructArrayLayout1f4",Wi);var Gi=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 i=3*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,e},t}(Ci);Gi.prototype.bytesPerElement=6,zr("StructArrayLayout3i6",Gi);var qi=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 i=4*e;return this.uint32[2*e+0]=t,this.uint16[i+2]=n,this.uint16[i+3]=r,e},t}(Ci);qi.prototype.bytesPerElement=8,zr("StructArrayLayout1ul2ui8",qi);var $i=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}(Ci);$i.prototype.bytesPerElement=4,zr("StructArrayLayout2ui4",$i);var Yi=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}(Ci);Yi.prototype.bytesPerElement=2,zr("StructArrayLayout1ui2",Yi);var Zi=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 i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,e},t}(Ci);Zi.prototype.bytesPerElement=16,zr("StructArrayLayout4f16",Zi);var Xi=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 i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(Oi);Xi.prototype.size=20;var Ki=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 Xi(this,e)},t}(Li);zr("CollisionBoxArray",Ki);var Ji=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}(Oi);Ji.prototype.size=48;var Qi=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 Ji(this,e)},t}(Vi);zr("PlacedSymbolArray",Qi);var eo=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}(Oi);eo.prototype.size=68;var to=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 eo(this,e)},t}(Hi);zr("SymbolInstanceArray",to);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.getoffsetX=function(e){return this.float32[1*e+0]},t}(Wi);zr("GlyphOffsetArray",no);var ro=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}(Gi);zr("SymbolLineVertexArray",ro);var io=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}(Oi);io.prototype.size=8;var oo=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 io(this,e)},t}(qi);zr("FeatureIndexArray",oo);var ao=Di([{name:"a_pos",components:2,type:"Int16"}],4).members,so=function(e){void 0===e&&(e=[]),this.segments=e};function uo(e,t){return 256*(e=c(Math.floor(e),0,255))+c(Math.floor(t),0,255)}so.prototype.prepareSegment=function(e,t,n,r){var i=this.segments[this.segments.length-1];return e>so.MAX_VERTEX_ARRAY_LENGTH&&E("Max vertices per segment is "+so.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!i||i.vertexLength+e>so.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},so.prototype.get=function(){return this.segments},so.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()}},so.simpleSegment=function(e,t,n,r){return new so([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},so.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,zr("SegmentVector",so);var lo=Di([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),co=t((function(e){e.exports=function(e,t){var n,r,i,o,a,s,u,l;for(r=e.length-(n=3&e.length),i=t,a=3432918353,s=461845907,l=0;l<r;)u=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,i=27492+(65535&(o=5*(65535&(i=(i^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&e.charCodeAt(l+2))<<16;case 2:u^=(255&e.charCodeAt(l+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(l)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),fo=t((function(e){e.exports=function(e,t){for(var n,r=e.length,i=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),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),po=co,ho=fo;po.murmur3=co,po.murmur2=ho;var mo=function(){this.ids=[],this.positions=[],this.indexed=!1};mo.prototype.add=function(e,t,n,r){this.ids.push(go(e)),this.positions.push(t,n,r)},mo.prototype.getPositions=function(e){for(var t=go(e),n=0,r=this.ids.length-1;n<r;){var i=n+r>>1;this.ids[i]>=t?r=i:n=i+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},mo.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,i){for(;r<i;){for(var o=t[r+i>>1],a=r-1,s=i+1;;){do{a++}while(t[a]<o);do{s--}while(t[s]>o);if(a>=s)break;yo(t,a,s),yo(n,3*a,3*s),yo(n,3*a+1,3*s+1),yo(n,3*a+2,3*s+2)}s-r<i-s?(e(t,n,r,s),r=s+1):(e(t,n,s+1,i),i=s)}}(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}},mo.deserialize=function(e){var t=new mo;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t};var vo=Math.pow(2,53)-1;function go(e){var t=+e;return!isNaN(t)&&t<=vo?t:po(String(e))}function yo(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}zr("FeaturePositionMap",mo);var bo=function(e,t){this.gl=e.gl,this.location=t},_o=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}(bo),xo=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}(bo),wo=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}(bo),Eo=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}(bo),Oo=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}(bo),Co=function(e){function t(t,n){e.call(this,t,n),this.current=et.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}(bo),Do=new Float32Array(16),So=function(e){function t(t,n){e.call(this,t,n),this.current=Do}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}(bo);function ko(e){return[uo(255*e.r,255*e.g),uo(255*e.b,255*e.a)]}var Ao=function(e,t,n){this.value=e,this.uniformNames=t.map((function(e){return"u_"+e})),this.type=n};Ao.prototype.setUniform=function(e,t,n){e.set(n.constantOr(this.value))},Ao.prototype.getBinding=function(e,t,n){return"color"===this.type?new Co(e,t):new xo(e,t)};var To=function(e,t){this.uniformNames=t.map((function(e){return"u_"+e})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};To.prototype.setConstantPatternPositions=function(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr},To.prototype.setUniform=function(e,t,n,r){var i="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;i&&e.set(i)},To.prototype.getBinding=function(e,t,n){return"u_pattern"===n.substr(0,9)?new Oo(e,t):new xo(e,t)};var Po=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};Po.prototype.populatePaintArray=function(e,t,n,r,i){var o=this.paintVertexArray.length,a=this.expression.evaluate(new si(0),t,{},r,[],i);this.paintVertexArray.resize(e),this._setPaintValue(o,e,a)},Po.prototype.updatePaintArray=function(e,t,n,r){var i=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(e,t,i)},Po.prototype._setPaintValue=function(e,t,n){if("color"===this.type)for(var r=ko(n),i=e;i<t;i++)this.paintVertexArray.emplace(i,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))}},Po.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))},Po.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var Mo=function(e,t,n,r,i,o){this.expression=e,this.uniformNames=t.map((function(e){return"u_"+e+"_t"})),this.type=n,this.useIntegerZoom=r,this.zoom=i,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};Mo.prototype.populatePaintArray=function(e,t,n,r,i){var o=this.expression.evaluate(new si(this.zoom),t,{},r,[],i),a=this.expression.evaluate(new si(this.zoom+1),t,{},r,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(s,e,o,a)},Mo.prototype.updatePaintArray=function(e,t,n,r){var i=this.expression.evaluate({zoom:this.zoom},n,r),o=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(e,t,i,o)},Mo.prototype._setPaintValue=function(e,t,n,r){if("color"===this.type)for(var i=ko(n),o=ko(r),a=e;a<t;a++)this.paintVertexArray.emplace(a,i[0],i[1],o[0],o[1]);else{for(var s=e;s<t;s++)this.paintVertexArray.emplace(s,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}},Mo.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))},Mo.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Mo.prototype.setUniform=function(e,t){var n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,r=c(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(r)},Mo.prototype.getBinding=function(e,t,n){return new xo(e,t)};var jo=function(e,t,n,r,i,o){this.expression=e,this.type=t,this.useIntegerZoom=n,this.zoom=r,this.layerId=o,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};jo.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)},jo.prototype.updatePaintArray=function(e,t,n,r,i){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],i)},jo.prototype._setPaintValues=function(e,t,n,r){if(r&&n){var i=r[n.min],o=r[n.mid],a=r[n.max];if(i&&o&&a)for(var s=e;s<t;s++)this.zoomInPaintVertexArray.emplace(s,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),this.zoomOutPaintVertexArray.emplace(s,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)}},jo.prototype.upload=function(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,lo.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,lo.members,this.expression.isStateDependent))},jo.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var Io=function(e,t,n){this.binders={},this._buffers=[];var r=[];for(var i in e.paint._values)if(n(i)){var o=e.paint.get(i);if(o instanceof hi&&In(o.property.specification)){var a=Ro(i,e.type),s=o.value,u=o.property.specification.type,l=o.property.useIntegerZoom,c=o.property.specification["property-type"],f="cross-faded"===c||"cross-faded-data-driven"===c;if("constant"===s.kind)this.binders[i]=f?new To(s.value,a):new Ao(s.value,a,u),r.push("/u_"+i);else if("source"===s.kind||f){var p=Lo(i,u,"source");this.binders[i]=f?new jo(s,u,l,t,p,e.id):new Po(s,a,u,p),r.push("/a_"+i)}else{var d=Lo(i,u,"composite");this.binders[i]=new Mo(s,a,u,l,t,d),r.push("/z_"+i)}}}this.cacheKey=r.sort().join("")};Io.prototype.getMaxValue=function(e){var t=this.binders[e];return t instanceof Po||t instanceof Mo?t.maxValue:0},Io.prototype.populatePaintArrays=function(e,t,n,r,i){for(var o in this.binders){var a=this.binders[o];(a instanceof Po||a instanceof Mo||a instanceof jo)&&a.populatePaintArray(e,t,n,r,i)}},Io.prototype.setConstantPatternPositions=function(e,t){for(var n in this.binders){var r=this.binders[n];r instanceof To&&r.setConstantPatternPositions(e,t)}},Io.prototype.updatePaintArrays=function(e,t,n,r,i){var o=!1;for(var a in e)for(var s=0,u=t.getPositions(a);s<u.length;s+=1){var l=u[s],c=n.feature(l.index);for(var f in this.binders){var p=this.binders[f];if((p instanceof Po||p instanceof Mo||p instanceof jo)&&!0===p.expression.isStateDependent){var d=r.paint.get(f);p.expression=d.value,p.updatePaintArray(l.start,l.end,c,e[a],i),o=!0}}}return o},Io.prototype.defines=function(){var e=[];for(var t in this.binders){var n=this.binders[t];(n instanceof Ao||n instanceof To)&&e.push.apply(e,n.uniformNames.map((function(e){return"#define HAS_UNIFORM_"+e})))}return e},Io.prototype.getBinderAttributes=function(){var e=[];for(var t in this.binders){var n=this.binders[t];if(n instanceof Po||n instanceof Mo)for(var r=0;r<n.paintVertexAttributes.length;r++)e.push(n.paintVertexAttributes[r].name);else if(n instanceof jo)for(var i=0;i<lo.members.length;i++)e.push(lo.members[i].name)}return e},Io.prototype.getBinderUniforms=function(){var e=[];for(var t in this.binders){var n=this.binders[t];if(n instanceof Ao||n instanceof To||n instanceof Mo)for(var r=0,i=n.uniformNames;r<i.length;r+=1)e.push(i[r])}return e},Io.prototype.getPaintVertexBuffers=function(){return this._buffers},Io.prototype.getUniforms=function(e,t){var n=[];for(var r in this.binders){var i=this.binders[r];if(i instanceof Ao||i instanceof To||i instanceof Mo)for(var o=0,a=i.uniformNames;o<a.length;o+=1){var s=a[o];if(t[s]){var u=i.getBinding(e,t[s],s);n.push({name:s,property:r,binding:u})}}}return n},Io.prototype.setUniforms=function(e,t,n,r){for(var i=0,o=t;i<o.length;i+=1){var a=o[i],s=a.name,u=a.property;this.binders[u].setUniform(a.binding,r,n.get(u),s)}},Io.prototype.updatePaintBuffers=function(e){for(var t in this._buffers=[],this.binders){var n=this.binders[t];if(e&&n instanceof jo){var r=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(n instanceof Po||n instanceof Mo)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},Io.prototype.upload=function(e){for(var t in this.binders){var n=this.binders[t];(n instanceof Po||n instanceof Mo||n instanceof jo)&&n.upload(e)}this.updatePaintBuffers()},Io.prototype.destroy=function(){for(var e in this.binders){var t=this.binders[e];(t instanceof Po||t instanceof Mo||t instanceof jo)&&t.destroy()}};var Fo=function(e,t,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var r=0,i=e;r<i.length;r+=1){var o=i[r];this.programConfigurations[o.id]=new Io(o,t,n)}this.needsUpload=!1,this._featureMap=new mo,this._bufferOffset=0};function Ro(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 Lo(e,t,n){var r={color:{source:Mi,composite:Zi},number:{source:Wi,composite:Mi}},i=function(e){return{"line-pattern":{source:ji,composite:ji},"fill-pattern":{source:ji,composite:ji},"fill-extrusion-pattern":{source:ji,composite:ji}}[e]}(e);return i&&i[n]||r[t][n]}Fo.prototype.populatePaintArrays=function(e,t,n,r,i,o){for(var a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(e,t,r,i,o);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0},Fo.prototype.updatePaintArrays=function(e,t,n,r){for(var i=0,o=n;i<o.length;i+=1){var a=o[i];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,r)||this.needsUpload}},Fo.prototype.get=function(e){return this.programConfigurations[e]},Fo.prototype.upload=function(e){if(this.needsUpload){for(var t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}},Fo.prototype.destroy=function(){for(var e in this.programConfigurations)this.programConfigurations[e].destroy()},zr("ConstantBinder",Ao),zr("CrossFadedConstantBinder",To),zr("SourceExpressionBinder",Po),zr("CrossFadedCompositeBinder",jo),zr("CompositeExpressionBinder",Mo),zr("ProgramConfiguration",Io,{omit:["_buffers"]}),zr("ProgramConfigurationSet",Fo);var zo=Math.pow(2,14)-1,Bo=-zo-1;function No(e){for(var t=8192/e.extent,n=e.loadGeometry(),r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.length;o++){var a=i[o],s=Math.round(a.x*t),u=Math.round(a.y*t);a.x=c(s,Bo,zo),a.y=c(u,Bo,zo),(s<a.x||s>a.x+1||u<a.y||u>a.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function Uo(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?No(e):[]}}function Vo(e,t,n,r,i){e.emplaceBack(2*t+(r+1)/2,2*n+(i+1)/2)}var Ho=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 ki,this.indexArray=new Ui,this.segments=new so,this.programConfigurations=new Fo(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Wo(e,t){for(var n=0;n<e.length;n++)if(Qo(t,e[n]))return!0;for(var r=0;r<t.length;r++)if(Qo(e,t[r]))return!0;return!!Yo(e,t)}function Go(e,t,n){return!!Qo(e,t)||!!Xo(t,e,n)}function qo(e,t){if(1===e.length)return Jo(t,e[0]);for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;i++)if(Qo(e,r[i]))return!0;for(var o=0;o<e.length;o++)if(Jo(t,e[o]))return!0;for(var a=0;a<t.length;a++)if(Yo(e,t[a]))return!0;return!1}function $o(e,t,n){if(e.length>1){if(Yo(e,t))return!0;for(var r=0;r<t.length;r++)if(Xo(t[r],e,n))return!0}for(var i=0;i<e.length;i++)if(Xo(e[i],t,n))return!0;return!1}function Yo(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],i=e[n+1],o=0;o<t.length-1;o++)if(Zo(r,i,t[o],t[o+1]))return!0;return!1}function Zo(e,t,n,r){return O(e,n,r)!==O(t,n,r)&&O(e,t,n)!==O(e,t,r)}function Xo(e,t,n){var r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(var i=1;i<t.length;i++)if(Ko(e,t[i-1],t[i])<r)return!0;return!1}function Ko(e,t,n){var r=t.distSqr(n);if(0===r)return e.distSqr(t);var i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return e.distSqr(i<0?t:i>1?n:n.sub(t)._mult(i)._add(t))}function Jo(e,t){for(var n,r,i,o=!1,a=0;a<e.length;a++)for(var s=0,u=(n=e[a]).length-1;s<n.length;u=s++)(r=n[s]).y>t.y!=(i=n[u]).y>t.y&&t.x<(i.x-r.x)*(t.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function Qo(e,t){for(var n=!1,r=0,i=e.length-1;r<e.length;i=r++){var o=e[r],a=e[i];o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function ea(e,t,n){var r=n[0],i=n[2];if(e.x<r.x&&t.x<r.x||e.x>i.x&&t.x>i.x||e.y<r.y&&t.y<r.y||e.y>i.y&&t.y>i.y)return!1;var o=O(e,t,n[0]);return o!==O(e,t,n[1])||o!==O(e,t,n[2])||o!==O(e,t,n[3])}function ta(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function na(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ra(e,t,n,r,o){if(!t[0]&&!t[1])return e;var a=i.convert(t)._mult(o);"viewport"===n&&a._rotate(-r);for(var s=[],u=0;u<e.length;u++)s.push(e[u].sub(a));return s}Ho.prototype.populate=function(e,t,n){var r=this.layers[0],i=[],o=null,a=!1;"circle"===r.type&&(a=!(o=r.layout.get("circle-sort-key")).isConstant());for(var s=0,u=e;s<u.length;s+=1){var l=u[s],c=l.feature,f=l.id,p=l.index,d=l.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,m=Uo(c,h);if(this.layers[0]._featureFilter.filter(new si(this.zoom),m,n)){var v=a?o.evaluate(m,{},n):void 0,g={id:f,properties:c.properties,type:c.type,sourceLayerIndex:d,index:p,geometry:h?m.geometry:No(c),patterns:{},sortKey:v};i.push(g)}}a&&i.sort((function(e,t){return e.sortKey-t.sortKey}));for(var y=0,b=i;y<b.length;y+=1){var _=b[y],x=_.geometry,w=_.index,E=_.sourceLayerIndex,O=e[w].feature;this.addFeature(_,x,w,n),t.featureIndex.insert(O,x,w,E,this.index)}},Ho.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Ho.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ho.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ho.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ao),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Ho.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ho.prototype.addFeature=function(e,t,n,r){for(var i=0,o=t;i<o.length;i+=1)for(var a=0,s=o[i];a<s.length;a+=1){var u=s[a],l=u.x,c=u.y;if(!(l<0||l>=8192||c<0||c>=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),p=f.vertexLength;Vo(this.layoutVertexArray,l,c,-1,-1),Vo(this.layoutVertexArray,l,c,1,-1),Vo(this.layoutVertexArray,l,c,1,1),Vo(this.layoutVertexArray,l,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)},zr("CircleBucket",Ho,{omit:["layers"]});var ia=new xi({"circle-sort-key":new gi(Ae.layout_circle["circle-sort-key"])}),oa={paint:new xi({"circle-radius":new gi(Ae.paint_circle["circle-radius"]),"circle-color":new gi(Ae.paint_circle["circle-color"]),"circle-blur":new gi(Ae.paint_circle["circle-blur"]),"circle-opacity":new gi(Ae.paint_circle["circle-opacity"]),"circle-translate":new vi(Ae.paint_circle["circle-translate"]),"circle-translate-anchor":new vi(Ae.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new vi(Ae.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new vi(Ae.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new gi(Ae.paint_circle["circle-stroke-width"]),"circle-stroke-color":new gi(Ae.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new gi(Ae.paint_circle["circle-stroke-opacity"])}),layout:ia},aa="undefined"!=typeof Float32Array?Float32Array:Array;function sa(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 ua(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],m=t[12],v=t[13],g=t[14],y=t[15],b=n[0],_=n[1],x=n[2],w=n[3];return e[0]=b*r+_*s+x*f+w*m,e[1]=b*i+_*u+x*p+w*v,e[2]=b*o+_*l+x*d+w*g,e[3]=b*a+_*c+x*h+w*y,e[4]=(b=n[4])*r+(_=n[5])*s+(x=n[6])*f+(w=n[7])*m,e[5]=b*i+_*u+x*p+w*v,e[6]=b*o+_*l+x*d+w*g,e[7]=b*a+_*c+x*h+w*y,e[8]=(b=n[8])*r+(_=n[9])*s+(x=n[10])*f+(w=n[11])*m,e[9]=b*i+_*u+x*p+w*v,e[10]=b*o+_*l+x*d+w*g,e[11]=b*a+_*c+x*h+w*y,e[12]=(b=n[12])*r+(_=n[13])*s+(x=n[14])*f+(w=n[15])*m,e[13]=b*i+_*u+x*p+w*v,e[14]=b*o+_*l+x*d+w*g,e[15]=b*a+_*c+x*h+w*y,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 la,ca=ua;function fa(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e}la=new aa(3),aa!=Float32Array&&(la[0]=0,la[1]=0,la[2]=0),function(){var e=new aa(4);aa!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}();var pa=(function(){var e=new aa(2);aa!=Float32Array&&(e[0]=0,e[1]=0)}(),function(e){function t(t){e.call(this,t,oa)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new Ho(e)},t.prototype.queryRadius=function(e){var t=e;return ta("circle-radius",this,t)+ta("circle-stroke-width",this,t)+na(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,a,s){for(var u=ra(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),l=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?u:function(e,t){return e.map((function(e){return da(e,t)}))}(u,s),p=c?l*a:l,d=0,h=r;d<h.length;d+=1)for(var m=0,v=h[d];m<v.length;m+=1){var g=v[m],y=c?g:da(g,s),b=p,_=fa([],[g.x,g.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?b*=_[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(b*=o.cameraToCenterDistance/_[3]),Go(f,y,b))return!0}return!1},t}(wi));function da(e,t){var n=fa([],[e.x,e.y,0,1],t);return new i(n[0]/n[3],n[1]/n[3])}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}(Ho);function ma(e,t,n,r){var i=t.width,o=t.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return e.width=i,e.height=o,e.data=r,e}function va(e,t,n){var r=t.width,i=t.height;if(r!==e.width||i!==e.height){var o=ma({},{width:r,height:i},n);ga(e,o,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,i)},n),e.width=r,e.height=i,e.data=o.data}}function ga(e,t,n,r,i,o){if(0===i.width||0===i.height)return t;if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=e.data,s=t.data,u=0;u<i.height;u++)for(var l=((n.y+u)*e.width+n.x)*o,c=((r.y+u)*t.width+r.x)*o,f=0;f<i.width*o;f++)s[c+f]=a[l+f];return t}zr("HeatmapBucket",ha,{omit:["layers"]});var ya=function(e,t){ma(this,e,1,t)};ya.prototype.resize=function(e){va(this,e,1)},ya.prototype.clone=function(){return new ya({width:this.width,height:this.height},new Uint8Array(this.data))},ya.copy=function(e,t,n,r,i){ga(e,t,n,r,i,1)};var ba=function(e,t){ma(this,e,4,t)};ba.prototype.resize=function(e){va(this,e,4)},ba.prototype.replace=function(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e},ba.prototype.clone=function(){return new ba({width:this.width,height:this.height},new Uint8Array(this.data))},ba.copy=function(e,t,n,r,i){ga(e,t,n,r,i,4)},zr("AlphaImage",ya),zr("RGBAImage",ba);var _a={paint:new xi({"heatmap-radius":new gi(Ae.paint_heatmap["heatmap-radius"]),"heatmap-weight":new gi(Ae.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new vi(Ae.paint_heatmap["heatmap-intensity"]),"heatmap-color":new _i(Ae.paint_heatmap["heatmap-color"]),"heatmap-opacity":new vi(Ae.paint_heatmap["heatmap-opacity"])})};function xa(e){var t={},n=e.resolution||256,r=e.clips?e.clips.length:1,i=e.image||new ba({width:n,height:r}),o=function(n,r,o){t[e.evaluationKey]=o;var a=e.expression.evaluate(t);i.data[n+r+0]=Math.floor(255*a.r/a.a),i.data[n+r+1]=Math.floor(255*a.g/a.a),i.data[n+r+2]=Math.floor(255*a.b/a.a),i.data[n+r+3]=Math.floor(255*a.a)};if(e.clips)for(var a=0,s=0;a<r;++a,s+=4*n)for(var u=0,l=0;u<n;u++,l+=4){var c=u/(n-1),f=e.clips[a];o(s,l,f.start*(1-c)+f.end*c)}else for(var p=0,d=0;p<n;p++,d+=4)o(0,d,p/(n-1));return i}var wa=function(e){function t(t){e.call(this,t,_a),this._updateColorRamp()}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new ha(e)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){"heatmap-color"===e&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){this.colorRamp=xa({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),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}(wi),Ea={paint:new xi({"hillshade-illumination-direction":new vi(Ae.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new vi(Ae.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new vi(Ae.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new vi(Ae.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new vi(Ae.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new vi(Ae.paint_hillshade["hillshade-accent-color"])})},Oa=function(e){function t(t){e.call(this,t,Ea)}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}(wi),Ca=Di([{name:"a_pos",components:2,type:"Int16"}],4).members,Da=ka,Sa=ka;function ka(e,t,n){n=n||2;var r,i,o,a,s,u,l,c=t&&t.length,f=c?t[0]*n:e.length,p=Aa(e,0,f,n,!0),d=[];if(!p||p.next===p.prev)return d;if(c&&(p=function(e,t,n,r){var i,o,a,s=[];for(i=0,o=t.length;i<o;i++)(a=Aa(e,t[i]*r,i<o-1?t[i+1]*r:e.length,r,!1))===a.next&&(a.steiner=!0),s.push(Na(a));for(s.sort(Ra),i=0;i<s.length;i++)La(s[i],n),n=Ta(n,n.next);return n}(e,t,p,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var h=n;h<f;h+=n)(s=e[h])<r&&(r=s),(u=e[h+1])<i&&(i=u),s>o&&(o=s),u>a&&(a=u);l=0!==(l=Math.max(o-r,a-i))?1/l:0}return Pa(p,d,n,r,i,l),d}function Aa(e,t,n,r,i){var o,a;if(i===Qa(e,t,n,r)>0)for(o=t;o<n;o+=r)a=Xa(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=Xa(o,e[o],e[o+1],a);return a&&Wa(a,a.next)&&(Ka(a),a=a.next),a}function Ta(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Wa(r,r.next)&&0!==Ha(r.prev,r,r.next))r=r.next;else{if(Ka(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Pa(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=Ba(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,l=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<l&&(s++,r=r.nextZ);t++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(e,r,i,o);for(var s,u,l=e;e.prev!==e.next;)if(s=e.prev,u=e.next,o?ja(e,r,i,o):Ma(e))t.push(s.i/n),t.push(e.i/n),t.push(u.i/n),Ka(e),e=u.next,l=u.next;else if((e=u)===l){a?1===a?Pa(e=Ia(Ta(e),t,n),t,n,r,i,o,2):2===a&&Fa(e,t,n,r,i,o):Pa(Ta(e),t,n,r,i,o,1);break}}}function Ma(e){var t=e.prev,n=e,r=e.next;if(Ha(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Ua(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ha(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function ja(e,t,n,r){var i=e.prev,o=e,a=e.next;if(Ha(i,o,a)>=0)return!1;for(var s=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,l=Ba(i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,t,n,r),c=Ba(s,u,t,n,r),f=e.prevZ,p=e.nextZ;f&&f.z>=l&&p&&p.z<=c;){if(f!==e.prev&&f!==e.next&&Ua(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ha(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==e.prev&&p!==e.next&&Ua(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Ha(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=l;){if(f!==e.prev&&f!==e.next&&Ua(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ha(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=c;){if(p!==e.prev&&p!==e.next&&Ua(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Ha(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function Ia(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Wa(i,o)&&Ga(i,r,r.next,o)&&Ya(i,o)&&Ya(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),Ka(r),Ka(r.next),r=e=o),r=r.next}while(r!==e);return Ta(r)}function Fa(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Va(a,s)){var u=Za(a,s);return a=Ta(a,a.next),u=Ta(u,u.next),Pa(a,t,n,r,i,o),void Pa(u,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}function Ra(e,t){return e.x-t.x}function La(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){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(i===a)return n;var u,l=n,c=n.x,f=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&Ua(o<f?i:a,o,c,f,o<f?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),Ya(r,e)&&(u<p||u===p&&(r.x>n.x||r.x===n.x&&za(n,r)))&&(n=r,p=u)),r=r.next}while(r!==l);return n}(e,t)){var n=Za(t,e);Ta(t,t.next),Ta(n,n.next)}}function za(e,t){return Ha(e.prev,e,t.prev)<0&&Ha(t.next,e,e.next)<0}function Ba(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Na(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 Ua(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Va(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&&Ga(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Ya(e,t)&&Ya(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(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)&&(Ha(e.prev,e,t.prev)||Ha(e,t.prev,t))||Wa(e,t)&&Ha(e.prev,e,e.next)>0&&Ha(t.prev,t,t.next)>0)}function Ha(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Wa(e,t){return e.x===t.x&&e.y===t.y}function Ga(e,t,n,r){var i=$a(Ha(e,t,n)),o=$a(Ha(e,t,r)),a=$a(Ha(n,r,e)),s=$a(Ha(n,r,t));return i!==o&&a!==s||!(0!==i||!qa(e,n,t))||!(0!==o||!qa(e,r,t))||!(0!==a||!qa(n,e,r))||!(0!==s||!qa(n,t,r))}function qa(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 $a(e){return e>0?1:e<0?-1:0}function Ya(e,t){return Ha(e.prev,e,e.next)<0?Ha(e,t,e.next)>=0&&Ha(e,e.prev,t)>=0:Ha(e,t,e.prev)<0||Ha(e,e.next,t)<0}function Za(e,t){var n=new Ja(e.i,e.x,e.y),r=new Ja(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Xa(e,t,n,r){var i=new Ja(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Ka(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 Ja(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 Qa(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}function es(e,t,n,r,i){!function e(t,n,r,i,o){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-s*l/a+c)),Math.min(i,Math.floor(n+(a-s)*l/a+c)),o)}var f=t[n],p=r,d=i;for(ts(t,r,n),o(t[i],f)>0&&ts(t,r,i);p<d;){for(ts(t,p,d),p++,d--;o(t[p],f)<0;)p++;for(;o(t[d],f)>0;)d--}0===o(t[r],f)?ts(t,r,d):ts(t,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}}(e,t,n||0,r||e.length-1,i||ns)}function ts(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ns(e,t){return e<t?-1:e>t?1:0}function rs(e,t){var n=e.length;if(n<=1)return[e];for(var r,i,o=[],a=0;a<n;a++){var s=C(e[a]);0!==s&&(e[a].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(r&&o.push(r),r=[e[a]]):r.push(e[a]))}if(r&&o.push(r),t>1)for(var u=0;u<o.length;u++)o[u].length<=t||(es(o[u],t,1,o[u].length-1,is),o[u]=o[u].slice(0,t));return o}function is(e,t){return t.area-e.area}function os(e,t,n){for(var r=n.patternDependencies,i=!1,o=0,a=t;o<a.length;o+=1){var s=a[o].paint.get(e+"-pattern");s.isConstant()||(i=!0);var u=s.constantOr(null);u&&(i=!0,r[u.to]=!0,r[u.from]=!0)}return i}function as(e,t,n,r,i){for(var o=i.patternDependencies,a=0,s=t;a<s.length;a+=1){var u=s[a],l=u.paint.get(e+"-pattern").value;if("constant"!==l.kind){var c=l.evaluate({zoom:r-1},n,{},i.availableImages),f=l.evaluate({zoom:r},n,{},i.availableImages),p=l.evaluate({zoom:r+1},n,{},i.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[u.id]={min:c,mid:f,max:p}}}return n}ka.deviation=function(e,t,n,r){var i=t&&t.length,o=Math.abs(Qa(e,0,i?t[0]*n:e.length,n));if(i)for(var a=0,s=t.length;a<s;a++)o-=Math.abs(Qa(e,t[a]*n,a<s-1?t[a+1]*n:e.length,n));var u=0;for(a=0;a<r.length;a+=3){var l=r[a]*n,c=r[a+1]*n,f=r[a+2]*n;u+=Math.abs((e[l]-e[f])*(e[c+1]-e[l+1])-(e[l]-e[c])*(e[f+1]-e[l+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},ka.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&n.holes.push(r+=e[i-1].length)}return n},Da.default=Sa;var ss=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 ki,this.indexArray=new Ui,this.indexArray2=new $i,this.programConfigurations=new Fo(e.layers,e.zoom),this.segments=new so,this.segments2=new so,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};ss.prototype.populate=function(e,t,n){this.hasPattern=os("fill",this.layers,t);for(var r=this.layers[0].layout.get("fill-sort-key"),i=!r.isConstant(),o=[],a=0,s=e;a<s.length;a+=1){var u=s[a],l=u.feature,c=u.id,f=u.index,p=u.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,h=Uo(l,d);if(this.layers[0]._featureFilter.filter(new si(this.zoom),h,n)){var m=i?r.evaluate(h,{},n,t.availableImages):void 0,v={id:c,properties:l.properties,type:l.type,sourceLayerIndex:p,index:f,geometry:d?h.geometry:No(l),patterns:{},sortKey:m};o.push(v)}}i&&o.sort((function(e,t){return e.sortKey-t.sortKey}));for(var g=0,y=o;g<y.length;g+=1){var b=y[g],_=b.geometry,x=b.index,w=b.sourceLayerIndex;if(this.hasPattern){var E=as("fill",this.layers,b,this.zoom,t);this.patternFeatures.push(E)}else this.addFeature(b,_,x,n,{});t.featureIndex.insert(e[x].feature,_,x,w,this.index)}},ss.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},ss.prototype.addFeatures=function(e,t,n){for(var r=0,i=this.patternFeatures;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,t,n)}},ss.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ss.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ss.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ca),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0},ss.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},ss.prototype.addFeature=function(e,t,n,r,i){for(var o=0,a=rs(t,500);o<a.length;o+=1){for(var s=a[o],u=0,l=0,c=s;l<c.length;l+=1)u+=c[l].length;for(var f=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray),p=f.vertexLength,d=[],h=[],m=0,v=s;m<v.length;m+=1){var g=v[m];if(0!==g.length){g!==s[0]&&h.push(d.length/2);var y=this.segments2.prepareSegment(g.length,this.layoutVertexArray,this.indexArray2),b=y.vertexLength;this.layoutVertexArray.emplaceBack(g[0].x,g[0].y),this.indexArray2.emplaceBack(b+g.length-1,b),d.push(g[0].x),d.push(g[0].y);for(var _=1;_<g.length;_++)this.layoutVertexArray.emplaceBack(g[_].x,g[_].y),this.indexArray2.emplaceBack(b+_-1,b+_),d.push(g[_].x),d.push(g[_].y);y.vertexLength+=g.length,y.primitiveLength+=g.length}}for(var x=Da(d,h),w=0;w<x.length;w+=3)this.indexArray.emplaceBack(p+x[w],p+x[w+1],p+x[w+2]);f.vertexLength+=u,f.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)},zr("FillBucket",ss,{omit:["layers","patternFeatures"]});var us=new xi({"fill-sort-key":new gi(Ae.layout_fill["fill-sort-key"])}),ls={paint:new xi({"fill-antialias":new vi(Ae.paint_fill["fill-antialias"]),"fill-opacity":new gi(Ae.paint_fill["fill-opacity"]),"fill-color":new gi(Ae.paint_fill["fill-color"]),"fill-outline-color":new gi(Ae.paint_fill["fill-outline-color"]),"fill-translate":new vi(Ae.paint_fill["fill-translate"]),"fill-translate-anchor":new vi(Ae.paint_fill["fill-translate-anchor"]),"fill-pattern":new yi(Ae.paint_fill["fill-pattern"])}),layout:us},cs=function(e){function t(t){e.call(this,t,ls)}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 ss(e)},t.prototype.queryRadius=function(){return na(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,a){return qo(ra(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),r)},t.prototype.isTileClipped=function(){return!0},t}(wi),fs=Di([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,ps=ds;function ds(e,t,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=i,e.readFields(hs,this,t)}function hs(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()],i=t._values[e.readVarint()];t.properties[r]=i}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function ms(e){for(var t,n,r=0,i=0,o=e.length,a=o-1;i<o;a=i++)r+=((n=e[a]).x-(t=e[i]).x)*(t.y+n.y);return r}ds.types=["Unknown","Point","LineString","Polygon"],ds.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,o=0,a=0,s=0,u=[];e.pos<n;){if(o<=0){var l=e.readVarint();r=7&l,o=l>>3}if(o--,1===r||2===r)a+=e.readSVarint(),s+=e.readSVarint(),1===r&&(t&&u.push(t),t=[]),t.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&u.push(t),u},ds.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;e.pos<t;){if(r<=0){var c=e.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(i+=e.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=e.readSVarint())<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,l]},ds.prototype.toGeoJSON=function(e,t,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*e,s=this.extent*t,u=this.loadGeometry(),l=ds.types[this.type];function c(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+a)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(r=0;r<u.length;r++)f[r]=u[r][0];c(u=f);break;case 2:for(r=0;r<u.length;r++)c(u[r]);break;case 3:for(u=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,i=[],o=0;o<t;o++){var a=ms(e[o]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&i.push(n),n=[e[o]]):n.push(e[o]))}return n&&i.push(n),i}(u),r=0;r<u.length;r++)for(i=0;i<u[r].length;i++)c(u[r][i])}1===u.length?u=u[0]:l="Multi"+l;var p={type:"Feature",geometry:{type:l,coordinates:u},properties:this.properties};return"id"in this&&(p.id=this.id),p};var vs=gs;function gs(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(ys,this,t),this.length=this._features.length}function ys(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 bs(e,t,n){if(3===e){var r=new vs(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}gs.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 ps(this._pbf,t,this.extent,this._keys,this._values)};var _s={VectorTile:function(e,t){this.layers=e.readFields(bs,{},t)},VectorTileFeature:ps,VectorTileLayer:vs},xs=_s.VectorTileFeature.types,ws=Math.pow(2,13);function Es(e,t,n,r,i,o,a,s){e.emplaceBack(t,n,2*Math.floor(r*ws)+a,i*ws*2,o*ws*2,Math.round(s))}var Os=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 Ti,this.indexArray=new Ui,this.programConfigurations=new Fo(e.layers,e.zoom),this.segments=new so,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Cs(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}Os.prototype.populate=function(e,t,n){this.features=[],this.hasPattern=os("fill-extrusion",this.layers,t);for(var r=0,i=e;r<i.length;r+=1){var o=i[r],a=o.feature,s=o.id,u=o.index,l=o.sourceLayerIndex,c=this.layers[0]._featureFilter.needGeometry,f=Uo(a,c);if(this.layers[0]._featureFilter.filter(new si(this.zoom),f,n)){var p={id:s,sourceLayerIndex:l,index:u,geometry:c?f.geometry:No(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(as("fill-extrusion",this.layers,p,this.zoom,t)):this.addFeature(p,p.geometry,u,n,{}),t.featureIndex.insert(a,p.geometry,u,l,this.index,!0)}}},Os.prototype.addFeatures=function(e,t,n){for(var r=0,i=this.features;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,t,n)}},Os.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Os.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Os.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Os.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,fs),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Os.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Os.prototype.addFeature=function(e,t,n,r,i){for(var o=0,a=rs(t,500);o<a.length;o+=1){for(var s=a[o],u=0,l=0,c=s;l<c.length;l+=1)u+=c[l].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,d=s;p<d.length;p+=1){var h=d[p];if(0!==h.length&&!((M=h).every((function(e){return e.x<0}))||M.every((function(e){return e.x>8192}))||M.every((function(e){return e.y<0}))||M.every((function(e){return e.y>8192}))))for(var m=0,v=0;v<h.length;v++){var g=h[v];if(v>=1){var y=h[v-1];if(!Cs(g,y)){f.vertexLength+4>so.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=g.sub(y)._perp()._unit(),_=y.dist(g);m+_>32768&&(m=0),Es(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,0,m),Es(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,1,m),Es(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,m+=_),Es(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,m);var x=f.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+u>so.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray)),"Polygon"===xs[e.type]){for(var w=[],E=[],O=f.vertexLength,C=0,D=s;C<D.length;C+=1){var S=D[C];if(0!==S.length){S!==s[0]&&E.push(w.length/2);for(var k=0;k<S.length;k++){var A=S[k];Es(this.layoutVertexArray,A.x,A.y,0,0,1,1,0),w.push(A.x),w.push(A.y)}}}for(var T=Da(w,E),P=0;P<T.length;P+=3)this.indexArray.emplaceBack(O+T[P],O+T[P+2],O+T[P+1]);f.primitiveLength+=T.length/3,f.vertexLength+=u}}var M;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)},zr("FillExtrusionBucket",Os,{omit:["layers","features"]});var Ds={paint:new xi({"fill-extrusion-opacity":new vi(Ae["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new gi(Ae["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new vi(Ae["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new vi(Ae["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new yi(Ae["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new gi(Ae["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new gi(Ae["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new vi(Ae["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Ss=function(e){function t(t){e.call(this,t,Ds)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new Os(e)},t.prototype.queryRadius=function(){return na(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,a,s,u){var l=ra(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),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=[],a=0,s=e;a<s.length;a+=1){var u=s[a],l=[u.x,u.y,0,1];fa(l,l,t),o.push(new i(l[0]/l[3],l[1]/l[3]))}return o}(l,u),d=function(e,t,n,r){for(var o=[],a=[],s=r[8]*t,u=r[9]*t,l=r[10]*t,c=r[11]*t,f=r[8]*n,p=r[9]*n,d=r[10]*n,h=r[11]*n,m=0,v=e;m<v.length;m+=1){for(var g=[],y=[],b=0,_=v[m];b<_.length;b+=1){var x=_[b],w=x.x,E=x.y,O=r[0]*w+r[4]*E+r[12],C=r[1]*w+r[5]*E+r[13],D=r[2]*w+r[6]*E+r[14],S=r[3]*w+r[7]*E+r[15],k=D+l,A=S+c,T=O+f,P=C+p,M=D+d,j=S+h,I=new i((O+s)/A,(C+u)/A);I.z=k/A,g.push(I);var F=new i(T/j,P/j);F.z=M/j,y.push(F)}o.push(g),a.push(y)}return[o,a]}(r,f,c,u);return function(e,t,n){var r=1/0;qo(n,t)&&(r=As(n,t[0]));for(var i=0;i<t.length;i++)for(var o=t[i],a=e[i],s=0;s<o.length-1;s++){var u=o[s],l=[u,o[s+1],a[s+1],a[s],u];Wo(n,l)&&(r=Math.min(r,As(n,l)))}return r!==1/0&&r}(d[0],d[1],p)},t}(wi);function ks(e,t){return e.x*t.x+e.y*t.y}function As(e,t){if(1===e.length){for(var n,r=0,i=t[r++];!n||i.equals(n);)if(!(n=t[r++]))return 1/0;for(;r<t.length;r++){var o=t[r],a=e[0],s=n.sub(i),u=o.sub(i),l=a.sub(i),c=ks(s,s),f=ks(s,u),p=ks(u,u),d=ks(l,s),h=ks(l,u),m=c*p-f*f,v=(p*d-f*h)/m,g=(c*h-f*d)/m,y=i.z*(1-v-g)+n.z*v+o.z*g;if(isFinite(y))return y}return 1/0}for(var b=1/0,_=0,x=t;_<x.length;_+=1)b=Math.min(b,x[_].z);return b}var Ts=Di([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Ps=Di([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,Ms=_s.VectorTileFeature.types,js=Math.cos(Math.PI/180*37.5),Is=Math.pow(2,14)/.5,Fs=function(e){var t=this;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.lineClipsArray=[],this.gradients={},this.layers.forEach((function(e){t.gradients[e.id]={}})),this.layoutVertexArray=new Pi,this.layoutVertexArray2=new Mi,this.indexArray=new Ui,this.programConfigurations=new Fo(e.layers,e.zoom),this.segments=new so,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};Fs.prototype.populate=function(e,t,n){this.hasPattern=os("line",this.layers,t);for(var r=this.layers[0].layout.get("line-sort-key"),i=!r.isConstant(),o=[],a=0,s=e;a<s.length;a+=1){var u=s[a],l=u.feature,c=u.id,f=u.index,p=u.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,h=Uo(l,d);if(this.layers[0]._featureFilter.filter(new si(this.zoom),h,n)){var m=i?r.evaluate(h,{},n):void 0,v={id:c,properties:l.properties,type:l.type,sourceLayerIndex:p,index:f,geometry:d?h.geometry:No(l),patterns:{},sortKey:m};o.push(v)}}i&&o.sort((function(e,t){return e.sortKey-t.sortKey}));for(var g=0,y=o;g<y.length;g+=1){var b=y[g],_=b.geometry,x=b.index,w=b.sourceLayerIndex;if(this.hasPattern){var E=as("line",this.layers,b,this.zoom,t);this.patternFeatures.push(E)}else this.addFeature(b,_,x,n,{});t.featureIndex.insert(e[x].feature,_,x,w,this.index)}},Fs.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Fs.prototype.addFeatures=function(e,t,n){for(var r=0,i=this.patternFeatures;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,t,n)}},Fs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fs.prototype.upload=function(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ps)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ts),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Fs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fs.prototype.lineFeatureClips=function(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}},Fs.prototype.addFeature=function(e,t,n,r,i){var o=this.layers[0].layout,a=o.get("line-join").evaluate(e,{}),s=o.get("line-cap"),u=o.get("line-miter-limit"),l=o.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(var c=0,f=t;c<f.length;c+=1)this.addLine(f[c],e,a,s,u,l);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)},Fs.prototype.addLine=function(e,t,n,r,i,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(var a=0;a<e.length-1;a++)this.totalDistance+=e[a].dist(e[a+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}for(var s="Polygon"===Ms[t.type],u=e.length;u>=2&&e[u-1].equals(e[u-2]);)u--;for(var l=0;l<u-1&&e[l].equals(e[l+1]);)l++;if(!(u<(s?3:2))){"bevel"===n&&(i=1.05);var c,f=this.overscaling<=16?122880/(512*this.overscaling):0,p=this.segments.prepareSegment(10*u,this.layoutVertexArray,this.indexArray),d=void 0,h=void 0,m=void 0,v=void 0;this.e1=this.e2=-1,s&&(v=e[l].sub(c=e[u-2])._unit()._perp());for(var g=l;g<u;g++)if(!(h=g===u-1?s?e[l+1]:void 0:e[g+1])||!e[g].equals(h)){v&&(m=v),c&&(d=c),c=e[g],v=h?h.sub(c)._unit()._perp():m;var y=(m=m||v).add(v);0===y.x&&0===y.y||y._unit();var b=m.x*v.x+m.y*v.y,_=y.x*v.x+y.y*v.y,x=0!==_?1/_:1/0,w=2*Math.sqrt(2-2*_),E=_<js&&d&&h,O=m.x*v.y-m.y*v.x>0;if(E&&g>l){var C=c.dist(d);if(C>2*f){var D=c.sub(c.sub(d)._mult(f/C)._round());this.updateDistance(d,D),this.addCurrentVertex(D,m,0,0,p),d=D}}var S=d&&h,k=S?n:s?"butt":r;if(S&&"round"===k&&(x<o?k="miter":x<=2&&(k="fakeround")),"miter"===k&&x>i&&(k="bevel"),"bevel"===k&&(x>2&&(k="flipbevel"),x<i&&(k="miter")),d&&this.updateDistance(d,c),"miter"===k)y._mult(x),this.addCurrentVertex(c,y,0,0,p);else if("flipbevel"===k){if(x>100)y=v.mult(-1);else{var A=x*m.add(v).mag()/m.sub(v).mag();y._perp()._mult(A*(O?-1:1))}this.addCurrentVertex(c,y,0,0,p),this.addCurrentVertex(c,y.mult(-1),0,0,p)}else if("bevel"===k||"fakeround"===k){var T=-Math.sqrt(x*x-1),P=O?T:0,M=O?0:T;if(d&&this.addCurrentVertex(c,m,P,M,p),"fakeround"===k)for(var j=Math.round(180*w/Math.PI/20),I=1;I<j;I++){var F=I/j;if(.5!==F){var R=F-.5;F+=F*R*(F-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*R*R+(.848013+b*(.215638*b-1.06021)))}var L=v.sub(m)._mult(F)._add(m)._unit()._mult(O?-1:1);this.addHalfVertex(c,L.x,L.y,!1,O,0,p)}h&&this.addCurrentVertex(c,v,-P,-M,p)}else if("butt"===k)this.addCurrentVertex(c,y,0,0,p);else if("square"===k){var z=d?1:-1;this.addCurrentVertex(c,y,z,z,p)}else"round"===k&&(d&&(this.addCurrentVertex(c,m,0,0,p),this.addCurrentVertex(c,m,1,1,p,!0)),h&&(this.addCurrentVertex(c,v,-1,-1,p,!0),this.addCurrentVertex(c,v,0,0,p)));if(E&&g<u-1){var B=c.dist(h);if(B>2*f){var N=c.add(h.sub(c)._mult(f/B)._round());this.updateDistance(c,N),this.addCurrentVertex(N,v,0,0,p),c=N}}}}},Fs.prototype.addCurrentVertex=function(e,t,n,r,i,o){void 0===o&&(o=!1);var a=t.y*r-t.x,s=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,o,!1,n,i),this.addHalfVertex(e,a,s,o,!0,-r,i),this.distance>Is/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,i,o))},Fs.prototype.addHalfVertex=function(e,t,n,r,i,o,a){var s=.5*(this.lineClips?this.scaledDistance*(Is-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e.x<<1)+(r?1:0),(e.y<<1)+(i?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var u=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),i?this.e2=u:this.e1=u},Fs.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Fs.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.updateScaledDistance()},zr("LineBucket",Fs,{omit:["layers","patternFeatures"]});var Rs=new xi({"line-cap":new vi(Ae.layout_line["line-cap"]),"line-join":new gi(Ae.layout_line["line-join"]),"line-miter-limit":new vi(Ae.layout_line["line-miter-limit"]),"line-round-limit":new vi(Ae.layout_line["line-round-limit"]),"line-sort-key":new gi(Ae.layout_line["line-sort-key"])}),Ls={paint:new xi({"line-opacity":new gi(Ae.paint_line["line-opacity"]),"line-color":new gi(Ae.paint_line["line-color"]),"line-translate":new vi(Ae.paint_line["line-translate"]),"line-translate-anchor":new vi(Ae.paint_line["line-translate-anchor"]),"line-width":new gi(Ae.paint_line["line-width"]),"line-gap-width":new gi(Ae.paint_line["line-gap-width"]),"line-offset":new gi(Ae.paint_line["line-offset"]),"line-blur":new gi(Ae.paint_line["line-blur"]),"line-dasharray":new bi(Ae.paint_line["line-dasharray"]),"line-pattern":new yi(Ae.paint_line["line-pattern"]),"line-gradient":new _i(Ae.paint_line["line-gradient"])}),layout:Rs},zs=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 si(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,i){return n=p({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,i)},t}(gi))(Ls.paint.properties["line-width"].specification);zs.useIntegerZoom=!0;var Bs=function(e){function t(t){e.call(this,t,Ls),this.gradientVersion=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ht,this.gradientVersion=(this.gradientVersion+1)%s)},t.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n),this.paint._values["line-floorwidth"]=zs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new Fs(e)},t.prototype.queryRadius=function(e){var t=e,n=Ns(ta("line-width",this,t),ta("line-gap-width",this,t)),r=ta("line-offset",this,t);return n/2+Math.abs(r)+na(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,a,s){var u=ra(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),l=s/2*Ns(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 i(0,0),o=0;o<e.length;o++){for(var a=e[o],s=[],u=0;u<a.length;u++){var l=a[u],c=a[u+1],f=0===u?r:l.sub(a[u-1])._unit()._perp(),p=u===a.length-1?r:c.sub(l)._unit()._perp(),d=f._add(p)._unit();d._mult(1/(d.x*p.x+d.y*p.y)),s.push(d._mult(t)._add(l))}n.push(s)}return n}(r,c*s)),function(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];if(e.length>=3)for(var o=0;o<i.length;o++)if(Qo(e,i[o]))return!0;if($o(e,i,n))return!0}return!1}(u,r,l)},t.prototype.isTileClipped=function(){return!0},t}(wi);function Ns(e,t){return t>0?t+2*e:e}var Us=Di([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Vs=Di([{name:"a_projected_pos",components:3,type:"Float32"}],4),Hs=(Di([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Di([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Ws=(Di([{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"}]),Di([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Gs=Di([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function qs(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()),ai.applyArabicShaping&&(e=ai.applyArabicShaping(e)),e}(e.text,t,n)})),e}Di([{name:"triangle",components:3,type:"Uint16"}]),Di([{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"}]),Di([{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"}]),Di([{type:"Float32",name:"offsetX"}]),Di([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var $s={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"},Ys=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},Zs=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*m},Xs=Ks;function Ks(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Ks.Varint=0,Ks.Fixed64=1,Ks.Bytes=2,Ks.Fixed32=5;var Js="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Qs(e){return e.type===Ks.Bytes?e.readVarint()+e.pos:e.pos+1}function eu(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function tu(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 i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function nu(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function ru(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function iu(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function ou(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function au(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function su(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function uu(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function lu(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function cu(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function fu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function pu(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function du(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function hu(e,t,n){1===e&&n.readMessage(mu,t)}function mu(e,t,n){if(3===e){var r=n.readMessage(vu,{}),i=r.width,o=r.height,a=r.left,s=r.top,u=r.advance;t.push({id:r.id,bitmap:new ya({width:i+6,height:o+6},r.bitmap),metrics:{width:i,height:o,left:a,top:s,advance:u}})}}function vu(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 gu(e){for(var t=0,n=0,r=0,i=e;r<i.length;r+=1){var o=i[r];t+=o.w*o.h,n=Math.max(n,o.w)}e.sort((function(e,t){return t.h-e.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],s=0,u=0,l=0,c=e;l<c.length;l+=1)for(var f=c[l],p=a.length-1;p>=0;p--){var d=a[p];if(!(f.w>d.w||f.h>d.h)){if(f.x=d.x,f.y=d.y,u=Math.max(u,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===d.w&&f.h===d.h){var h=a.pop();p<a.length&&(a[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):(a.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:s,h:u,fill:t/(s*u)||0}}Ks.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,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=fu(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=du(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=fu(this.buf,this.pos)+4294967296*fu(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=fu(this.buf,this.pos)+4294967296*du(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=Ys(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Ys(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,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return eu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return eu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return eu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return eu(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return eu(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return eu(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&&Js?function(e,t,n){return Js.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i<n;){var o,a,s,u=e[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>n)break;1===c?u<128&&(l=u):2===c?128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=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!==Ks.Bytes)return e.push(this.readVarint(t));var n=Qs(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==Ks.Bytes)return e.push(this.readSVarint());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==Ks.Bytes)return e.push(this.readBoolean());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==Ks.Bytes)return e.push(this.readFloat());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==Ks.Bytes)return e.push(this.readDouble());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==Ks.Bytes)return e.push(this.readFixed32());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==Ks.Bytes)return e.push(this.readSFixed32());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==Ks.Bytes)return e.push(this.readFixed64());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==Ks.Bytes)return e.push(this.readSFixed64());var t=Qs(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===Ks.Varint)for(;this.buf[this.pos++]>127;);else if(t===Ks.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Ks.Fixed32)this.pos+=4;else{if(t!==Ks.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),pu(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),pu(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),pu(this.buf,-1&e,this.pos),pu(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),pu(this.buf,-1&e,this.pos),pu(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,i,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=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&&tu(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Zs(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Zs(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&&tu(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Ks.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,nu,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,ru,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,au,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,iu,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,ou,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,su,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,uu,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,lu,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,cu,t)},writeBytesField:function(e,t){this.writeTag(e,Ks.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Ks.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Ks.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Ks.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Ks.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Ks.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Ks.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Ks.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Ks.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Ks.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var yu=function(e,t){var n=t.pixelRatio,r=t.version,i=t.stretchX,o=t.stretchY,a=t.content;this.paddedRect=e,this.pixelRatio=n,this.stretchX=i,this.stretchY=o,this.content=a,this.version=r},bu={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};bu.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},bu.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},bu.tlbr.get=function(){return this.tl.concat(this.br)},bu.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yu.prototype,bu);var _u=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(e,n,i),this.addImages(t,r,i);var o=gu(i),a=new ba({width:o.w||1,height:o.h||1});for(var s in e){var u=e[s],l=n[s].paddedRect;ba.copy(u.data,a,{x:0,y:0},{x:l.x+1,y:l.y+1},u.data)}for(var c in t){var f=t[c],p=r[c].paddedRect,d=p.x+1,h=p.y+1,m=f.data.width,v=f.data.height;ba.copy(f.data,a,{x:0,y:0},{x:d,y:h},f.data),ba.copy(f.data,a,{x:0,y:v-1},{x:d,y:h-1},{width:m,height:1}),ba.copy(f.data,a,{x:0,y:0},{x:d,y:h+v},{width:m,height:1}),ba.copy(f.data,a,{x:m-1,y:0},{x:d-1,y:h},{width:1,height:v}),ba.copy(f.data,a,{x:0,y:0},{x:d+m,y:h},{width:1,height:v})}this.image=a,this.iconPositions=n,this.patternPositions=r};_u.prototype.addImages=function(e,t,n){for(var r in e){var i=e[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),t[r]=new yu(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},_u.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)},_u.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]})}},zr("ImagePosition",yu),zr("ImageAtlas",_u);var xu={horizontal:1,vertical:2,horizontalOnly:3},wu=function(){this.scale=1,this.fontStack="",this.imageName=null};wu.forText=function(e,t){var n=new wu;return n.scale=e||1,n.fontStack=t,n},wu.forImage=function(e){var t=new wu;return t.imageName=e,t};var Eu=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Ou(e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m){var v,g=Eu.fromFeature(e,i);f===xu.vertical&&g.verticalizePunctuation();var y=ai.processBidirectionalText,b=ai.processStyledBidirectionalText;if(y&&1===g.sections.length){v=[];for(var _=0,x=y(g.toString(),Pu(g,l,o,t,r,d,h));_<x.length;_+=1){var w=x[_],E=new Eu;E.text=w,E.sections=g.sections;for(var O=0;O<w.length;O++)E.sectionIndex.push(0);v.push(E)}}else if(b){v=[];for(var C=0,D=b(g.text,g.sectionIndex,Pu(g,l,o,t,r,d,h));C<D.length;C+=1){var S=D[C],k=new Eu;k.text=S[0],k.sectionIndex=S[1],k.sections=g.sections,v.push(k)}}else v=function(e,t){for(var n=[],r=e.text,i=0,o=0,a=t;o<a.length;o+=1){var s=a[o];n.push(e.substring(i,s)),i=s}return i<r.length&&n.push(e.substring(i,r.length)),n}(g,Pu(g,l,o,t,r,d,h));var A=[],T={positionedLines:A,text:g.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,i,o,a,s,u,l,c,f){for(var p=0,d=-17,h=0,m=0,v="right"===s?1:"left"===s?0:.5,g=0,y=0,b=i;y<b.length;y+=1){var _=b[y];_.trim();var x=_.getMaxScale(),w=24*(x-1),E={positionedGlyphs:[],lineOffset:0};e.positionedLines[g]=E;var O=E.positionedGlyphs,C=0;if(_.length()){for(var D=0;D<_.length();D++){var S=_.getSection(D),k=_.getSectionIndex(D),A=_.getCharCode(D),T=0,P=null,M=null,j=null,I=24,F=!(u===xu.horizontal||!c&&!$r(A)||c&&(Cu[A]||(W=A,Gr.Arabic(W)||Gr["Arabic Supplement"](W)||Gr["Arabic Extended-A"](W)||Gr["Arabic Presentation Forms-A"](W)||Gr["Arabic Presentation Forms-B"](W))));if(S.imageName){var R=r[S.imageName];if(!R)continue;j=S.imageName,e.iconsInText=e.iconsInText||!0,M=R.paddedRect;var L=R.displaySize;S.scale=24*S.scale/f,T=w+(24-L[1]*S.scale),I=(P={width:L[0],height:L[1],left:1,top:-3,advance:F?L[1]:L[0]}).advance;var z=F?L[0]*S.scale-24*x:L[1]*S.scale-24*x;z>0&&z>C&&(C=z)}else{var B=n[S.fontStack],N=B&&B[A];if(N&&N.rect)M=N.rect,P=N.metrics;else{var U=t[S.fontStack],V=U&&U[A];if(!V)continue;P=V.metrics}T=24*(x-S.scale)}F?(e.verticalizable=!0,O.push({glyph:A,imageName:j,x:p,y:d+T,vertical:F,scale:S.scale,fontStack:S.fontStack,sectionIndex:k,metrics:P,rect:M}),p+=I*S.scale+l):(O.push({glyph:A,imageName:j,x:p,y:d+T,vertical:F,scale:S.scale,fontStack:S.fontStack,sectionIndex:k,metrics:P,rect:M}),p+=P.advance*S.scale+l)}0!==O.length&&(h=Math.max(p-l,h),ju(O,0,O.length-1,v,C)),p=0;var H=o*x+C;E.lineOffset=Math.max(C,w),d+=H,m=Math.max(H,m),++g}else d+=o,++g}var W,G=d- -17,q=Mu(a),$=q.horizontalAlign,Y=q.verticalAlign;(function(e,t,n,r,i,o,a,s,u){var l,c=(t-n)*i;l=o!==a?-s*r- -17:(-r*u+.5)*a;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 m=h[d];m.x+=c,m.y+=l}})(e.positionedLines,v,$,Y,h,m,o,G,i.length),e.top+=-Y*G,e.bottom=e.top+G,e.left+=-$*h,e.right=e.left+h}(T,t,n,r,v,a,s,u,f,l,p,m),!function(e){for(var t=0,n=e;t<n.length;t+=1)if(0!==n[t].positionedGlyphs.length)return!1;return!0}(A)&&T}Eu.fromFeature=function(e,t){for(var n=new Eu,r=0;r<e.sections.length;r++){var i=e.sections[r];i.image?n.addImageSection(i):n.addTextSection(i,t)}return n},Eu.prototype.length=function(){return this.text.length},Eu.prototype.getSection=function(e){return this.sections[this.sectionIndex[e]]},Eu.prototype.getSectionIndex=function(e){return this.sectionIndex[e]},Eu.prototype.getCharCode=function(e){return this.text.charCodeAt(e)},Eu.prototype.verticalizePunctuation=function(){this.text=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n+1)||null,i=e.charCodeAt(n-1)||null;t+=r&&Yr(r)&&!$s[e[n+1]]||i&&Yr(i)&&!$s[e[n-1]]||!$s[e[n]]?e[n]:$s[e[n]]}return t}(this.text)},Eu.prototype.trim=function(){for(var e=0,t=0;t<this.text.length&&Cu[this.text.charCodeAt(t)];t++)e++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=e&&Cu[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},Eu.prototype.substring=function(e,t){var n=new Eu;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},Eu.prototype.toString=function(){return this.text},Eu.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce((function(t,n){return Math.max(t,e.sections[n].scale)}),0)},Eu.prototype.addTextSection=function(e,t){this.text+=e.text,this.sections.push(wu.forText(e.scale,e.fontStack||t));for(var n=this.sections.length-1,r=0;r<e.text.length;++r)this.sectionIndex.push(n)},Eu.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(wu.forImage(t)),this.sectionIndex.push(this.sections.length-1)):E("Reached maximum number of images 6401")}else E("Can't add FormattedSection with an empty image.")},Eu.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Cu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Du={};function Su(e,t,n,r,i,o){if(t.imageName){var a=r[t.imageName];return a?a.displaySize[0]*t.scale*24/o+i:0}var s=n[t.fontStack],u=s&&s[e];return u?u.metrics.advance*t.scale+i:0}function ku(e,t,n,r){var i=Math.pow(e-t,2);return r?e<t?i/2:2*i:i+Math.abs(n)*n}function Au(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 Tu(e,t,n,r,i,o){for(var a=null,s=ku(t,n,i,o),u=0,l=r;u<l.length;u+=1){var c=l[u],f=ku(t-c.x,n,i,o)+c.badness;f<=s&&(a=c,s=f)}return{index:e,x:t,priorBreak:a,badness:s}}function Pu(e,t,n,r,i,o,a){if("point"!==o)return[];if(!e)return[];for(var s,u=[],l=function(e,t,n,r,i,o){for(var a=0,s=0;s<e.length();s++){var u=e.getSection(s);a+=Su(e.getCharCode(s),u,r,i,t,o)}return a/Math.max(1,Math.ceil(a/n))}(e,t,n,r,i,a),c=e.text.indexOf("\u200b")>=0,f=0,p=0;p<e.length();p++){var d=e.getSection(p),h=e.getCharCode(p);if(Cu[h]||(f+=Su(h,d,r,i,t,a)),p<e.length()-1){var m=!((s=h)<11904||!(Gr["Bopomofo Extended"](s)||Gr.Bopomofo(s)||Gr["CJK Compatibility Forms"](s)||Gr["CJK Compatibility Ideographs"](s)||Gr["CJK Compatibility"](s)||Gr["CJK Radicals Supplement"](s)||Gr["CJK Strokes"](s)||Gr["CJK Symbols and Punctuation"](s)||Gr["CJK Unified Ideographs Extension A"](s)||Gr["CJK Unified Ideographs"](s)||Gr["Enclosed CJK Letters and Months"](s)||Gr["Halfwidth and Fullwidth Forms"](s)||Gr.Hiragana(s)||Gr["Ideographic Description Characters"](s)||Gr["Kangxi Radicals"](s)||Gr["Katakana Phonetic Extensions"](s)||Gr.Katakana(s)||Gr["Vertical Forms"](s)||Gr["Yi Radicals"](s)||Gr["Yi Syllables"](s)));(Du[h]||m||d.imageName)&&u.push(Tu(p+1,f,l,u,Au(h,e.getCharCode(p+1),m&&c),!1))}}return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(Tu(e.length(),f,l,u,0,!0))}function Mu(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 ju(e,t,n,r,i){if(r||i)for(var o=e[n],a=(e[n].x+o.metrics.advance*o.scale)*r,s=t;s<=n;s++)e[s].x-=a,e[s].y+=i}function Iu(e,t,n,r,i,o){var a,s=e.image;if(s.content){var u=s.content,l=s.pixelRatio||1;a=[u[0]/l,u[1]/l,s.displaySize[0]-u[2]/l,s.displaySize[1]-u[3]/l]}var c,f,p,d,h=t.left*o,m=t.right*o;"width"===n||"both"===n?(d=i[0]+h-r[3],f=i[0]+m+r[1]):f=(d=i[0]+(h+m-s.displaySize[0])/2)+s.displaySize[0];var v=t.top*o,g=t.bottom*o;return"height"===n||"both"===n?(c=i[1]+v-r[0],p=i[1]+g+r[2]):p=(c=i[1]+(v+g-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:c,right:f,bottom:p,left:d,collisionPadding:a}}Du[10]=!0,Du[32]=!0,Du[38]=!0,Du[40]=!0,Du[41]=!0,Du[43]=!0,Du[45]=!0,Du[47]=!0,Du[173]=!0,Du[183]=!0,Du[8203]=!0,Du[8208]=!0,Du[8211]=!0,Du[8231]=!0;var Fu=function(e){function t(t,n,r,i){e.call(this,t,n),this.angle=r,void 0!==i&&(this.segment=i)}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}(i);function Ru(e,t){var n=t.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new si(e+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,i=n.interpolationType,o=0;o<r.length&&r[o]<=e;)o++;for(var a=o=Math.max(0,o-1);a<r.length&&r[a]<e+1;)a++;a=Math.min(r.length-1,a);var s=r[o],u=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:u,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:u,minSize:n.evaluate(new si(s)),maxSize:n.evaluate(new si(u)),interpolationType:i}}function Lu(e,t,n){var r=t.uSize,i=n.lowerSize;return"source"===e.kind?i/128:"composite"===e.kind?Wt(i/128,n.upperSize/128,t.uSizeT):r}function zu(e,t){var n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){var i=e.interpolationType,o=i?c(an.interpolationFactor(i,t,e.minZoom,e.maxZoom),0,1):0;"camera"===e.kind?r=Wt(e.minSize,e.maxSize,o):n=o}return{uSizeT:n,uSize:r}}zr("Anchor",Fu);var Bu=Object.freeze({__proto__:null,getSizeData:Ru,evaluateSizeForFeature:Lu,evaluateSizeForZoom:zu,SIZE_PACK_FACTOR:128});function Nu(e,t,n,r,i){if(void 0===t.segment)return!0;for(var o=t,a=t.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;for(var u=[],l=0;s<n/2;){var c=e[a],f=e[a+1];if(!f)return!1;var p=e[a-1].angleTo(c)-c.angleTo(f);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:s,angleDelta:p}),l+=p;s-u[0].distance>r;)l-=u.shift().angleDelta;if(l>i)return!1;a++,s+=c.dist(f)}return!0}function Uu(e){for(var t=0,n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Vu(e,t,n){return e?.6*t*n:0}function Hu(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Wu(e,t,n,r,i,o){for(var a=Vu(n,i,o),s=Hu(n,r)*o,u=0,l=Uu(e)/2,c=0;c<e.length-1;c++){var f=e[c],p=e[c+1],d=f.dist(p);if(u+d>l){var h=(l-u)/d,m=Wt(f.x,p.x,h),v=Wt(f.y,p.y,h),g=new Fu(m,v,p.angleTo(f),c);return g._round(),!a||Nu(e,g,s,a,t)?g:void 0}u+=d}}function Gu(e,t,n,r,i,o,a,s,u){var l=Vu(r,o,a),c=Hu(r,i),f=c*a,p=0===e[0].x||e[0].x===u||0===e[0].y||e[0].y===u;return t-f<t/4&&(t=f+t/4),function e(t,n,r,i,o,a,s,u,l){for(var c=a/2,f=Uu(t),p=0,d=n-r,h=[],m=0;m<t.length-1;m++){for(var v=t[m],g=t[m+1],y=v.dist(g),b=g.angleTo(v);d+r<p+y;){var _=((d+=r)-p)/y,x=Wt(v.x,g.x,_),w=Wt(v.y,g.y,_);if(x>=0&&x<l&&w>=0&&w<l&&d-c>=0&&d+c<=f){var E=new Fu(x,w,b,m);E._round(),i&&!Nu(t,E,a,i,o)||h.push(E)}}p+=y}return u||h.length||s||(h=e(t,p/2,r,i,o,a,s,!0,l)),h}(e,p?t/2*s%t:(c/2+2*o)*a*s%t,t,l,n,f,p,!1,u)}function qu(e,t,n,r,o){for(var a=[],s=0;s<e.length;s++)for(var u=e[s],l=void 0,c=0;c<u.length-1;c++){var f=u[c],p=u[c+1];f.x<t&&p.x<t||(f.x<t?f=new i(t,f.y+(t-f.x)/(p.x-f.x)*(p.y-f.y))._round():p.x<t&&(p=new i(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 i(f.x+(n-f.y)/(p.y-f.y)*(p.x-f.x),n)._round():p.y<n&&(p=new i(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 i(r,f.y+(r-f.x)/(p.x-f.x)*(p.y-f.y))._round():p.x>=r&&(p=new i(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 i(f.x+(o-f.y)/(p.y-f.y)*(p.x-f.x),o)._round():p.y>=o&&(p=new i(f.x+(o-f.y)/(p.y-f.y)*(p.x-f.x),o)._round()),l&&f.equals(l[l.length-1])||a.push(l=[f]),l.push(p)))))}return a}function $u(e,t,n,r){var o=[],a=e.image,s=a.pixelRatio,u=a.paddedRect.w-2,l=a.paddedRect.h-2,c=e.right-e.left,f=e.bottom-e.top,p=a.stretchX||[[0,u]],d=a.stretchY||[[0,l]],h=function(e,t){return e+t[1]-t[0]},m=p.reduce(h,0),v=d.reduce(h,0),g=u-m,y=l-v,b=0,_=m,x=0,w=v,E=0,O=g,C=0,D=y;if(a.content&&r){var S=a.content;b=Yu(p,0,S[0]),x=Yu(d,0,S[1]),_=Yu(p,S[0],S[2]),w=Yu(d,S[1],S[3]),E=S[0]-b,C=S[1]-x,O=S[2]-S[0]-_,D=S[3]-S[1]-w}var k=function(r,o,u,l){var p=Xu(r.stretch-b,_,c,e.left),d=Ku(r.fixed-E,O,r.stretch,m),h=Xu(o.stretch-x,w,f,e.top),g=Ku(o.fixed-C,D,o.stretch,v),y=Xu(u.stretch-b,_,c,e.left),S=Ku(u.fixed-E,O,u.stretch,m),k=Xu(l.stretch-x,w,f,e.top),A=Ku(l.fixed-C,D,l.stretch,v),T=new i(p,h),P=new i(y,h),M=new i(y,k),j=new i(p,k),I=new i(d/s,g/s),F=new i(S/s,A/s),R=t*Math.PI/180;if(R){var L=Math.sin(R),z=Math.cos(R),B=[z,-L,L,z];T._matMult(B),P._matMult(B),j._matMult(B),M._matMult(B)}var N=r.stretch+r.fixed,U=o.stretch+o.fixed;return{tl:T,tr:P,bl:j,br:M,tex:{x:a.paddedRect.x+1+N,y:a.paddedRect.y+1+U,w:u.stretch+u.fixed-N,h:l.stretch+l.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:I,pixelOffsetBR:F,minFontScaleX:O/s/c,minFontScaleY:D/s/f,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var A=Zu(p,g,m),T=Zu(d,y,v),P=0;P<A.length-1;P++)for(var M=A[P],j=A[P+1],I=0;I<T.length-1;I++)o.push(k(M,T[I],j,T[I+1]));else o.push(k({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:u+1},{fixed:0,stretch:l+1}));return o}function Yu(e,t,n){for(var r=0,i=0,o=e;i<o.length;i+=1){var a=o[i];r+=Math.max(t,Math.min(n,a[1]))-Math.max(t,Math.min(n,a[0]))}return r}function Zu(e,t,n){for(var r=[{fixed:-1,stretch:0}],i=0,o=e;i<o.length;i+=1){var a=o[i],s=a[0],u=a[1],l=r[r.length-1];r.push({fixed:s-l.stretch,stretch:l.stretch}),r.push({fixed:s-l.stretch,stretch:l.stretch+(u-s)})}return r.push({fixed:t+1,stretch:n}),r}function Xu(e,t,n,r){return e/t*n+r}function Ku(e,t,n,r){return e-t*n/r}var Ju=function(e,t,n,r,o,a,s,u,l,c){if(this.boxStartIndex=e.length,l){var f=a.top,p=a.bottom,d=a.collisionPadding;d&&(f-=d[1],p+=d[3]);var h=p-f;h>0&&(h=Math.max(10,h),this.circleDiameter=h)}else{var m=a.top*s-u,v=a.bottom*s+u,g=a.left*s-u,y=a.right*s+u,b=a.collisionPadding;if(b&&(g-=b[0]*s,m-=b[1]*s,y+=b[2]*s,v+=b[3]*s),c){var _=new i(g,m),x=new i(y,m),w=new i(g,v),E=new i(y,v),O=c*Math.PI/180;_._rotate(O),x._rotate(O),w._rotate(O),E._rotate(O),g=Math.min(_.x,x.x,w.x,E.x),y=Math.max(_.x,x.x,w.x,E.x),m=Math.min(_.y,x.y,w.y,E.y),v=Math.max(_.y,x.y,w.y,E.y)}e.emplaceBack(t.x,t.y,g,m,y,v,n,r,o)}this.boxEndIndex=e.length},Qu=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=el),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 el(e,t){return e<t?-1:e>t?1:0}function tl(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,u=e[0],l=0;l<u.length;l++){var c=u[l];(!l||c.x<r)&&(r=c.x),(!l||c.y<o)&&(o=c.y),(!l||c.x>a)&&(a=c.x),(!l||c.y>s)&&(s=c.y)}var f=Math.min(a-r,s-o),p=f/2,d=new Qu([],nl);if(0===f)return new i(r,o);for(var h=r;h<a;h+=f)for(var m=o;m<s;m+=f)d.push(new rl(h+p,m+p,p,e));for(var v=function(e){for(var t=0,n=0,r=0,i=e[0],o=0,a=i.length,s=a-1;o<a;s=o++){var u=i[o],l=i[s],c=u.x*l.y-l.x*u.y;n+=(u.x+l.x)*c,r+=(u.y+l.y)*c,t+=3*c}return new rl(n/t,r/t,0,e)}(e),g=d.length;d.length;){var y=d.pop();(y.d>v.d||!v.d)&&(v=y,n&&console.log("found best %d after %d probes",Math.round(1e4*y.d)/1e4,g)),y.max-v.d<=t||(d.push(new rl(y.p.x-(p=y.h/2),y.p.y-p,p,e)),d.push(new rl(y.p.x+p,y.p.y-p,p,e)),d.push(new rl(y.p.x-p,y.p.y+p,p,e)),d.push(new rl(y.p.x+p,y.p.y+p,p,e)),g+=4)}return n&&(console.log("num probes: "+g),console.log("best distance: "+v.d)),v.p}function nl(e,t){return t.max-e.max}function rl(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,i=0;i<t.length;i++)for(var o=t[i],a=0,s=o.length,u=s-1;a<s;u=a++){var l=o[a],c=o[u];l.y>e.y!=c.y>e.y&&e.x<(c.x-l.x)*(e.y-l.y)/(c.y-l.y)+l.x&&(n=!n),r=Math.min(r,Ko(e,l,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Qu.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},Qu.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}},Qu.prototype.peek=function(){return this.data[0]},Qu.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r},Qu.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,i=t[e];e<r;){var o=1+(e<<1),a=t[o],s=o+1;if(s<this.length&&n(t[s],a)<0&&(o=s,a=t[s]),n(a,i)>=0)break;t[e]=a,e=o}t[e]=i};var il=Number.POSITIVE_INFINITY;function ol(e,t){return t[1]!==il?function(e,t,n){var r=0,i=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=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,i]}(e,t[0],t[1]):function(e,t){var n=0,r=0;t<0&&(t=0);var i=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function al(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 sl(e,t,n,r,o,a,s,u,l,c,f,p,d,h,m){var v=function(e,t,n,r,o,a,s,u){for(var l=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],f=0,p=t.positionedLines;f<p.length;f+=1)for(var d=p[f],h=0,m=d.positionedGlyphs;h<m.length;h+=1){var v=m[h];if(v.rect){var g=v.rect||{},y=4,b=!0,_=1,x=0,w=(o||u)&&v.vertical,E=v.metrics.advance*v.scale/2;if(u&&t.verticalizable&&(x=d.lineOffset/2-(v.imageName?-(24-v.metrics.width*v.scale)/2:24*(v.scale-1))),v.imageName){var O=s[v.imageName];b=O.sdf,y=1/(_=O.pixelRatio)}var C=o?[v.x+E,v.y]:[0,0],D=o?[0,0]:[v.x+E+n[0],v.y+n[1]-x],S=[0,0];w&&(S=D,D=[0,0]);var k=(v.metrics.left-y)*v.scale-E+D[0],A=(-v.metrics.top-y)*v.scale+D[1],T=k+g.w*v.scale/_,P=A+g.h*v.scale/_,M=new i(k,A),j=new i(T,A),I=new i(k,P),F=new i(T,P);if(w){var R=new i(-E,E- -17),L=-Math.PI/2,z=12-E,B=new i(22-z,-(v.imageName?z:0)),N=new(Function.prototype.bind.apply(i,[null].concat(S)));M._rotateAround(L,R)._add(B)._add(N),j._rotateAround(L,R)._add(B)._add(N),I._rotateAround(L,R)._add(B)._add(N),F._rotateAround(L,R)._add(B)._add(N)}if(l){var U=Math.sin(l),V=Math.cos(l),H=[V,-U,U,V];M._matMult(H),j._matMult(H),I._matMult(H),F._matMult(H)}var W=new i(0,0),G=new i(0,0);c.push({tl:M,tr:j,bl:I,br:F,tex:g,writingMode:t.writingMode,glyphOffset:C,sectionIndex:v.sectionIndex,isSDF:b,pixelOffsetTL:W,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return c}(0,n,u,o,a,s,r,e.allowVerticalPlacement),g=e.textSizeData,y=null;"source"===g.kind?(y=[128*o.layout.get("text-size").evaluate(s,{})])[0]>32640&&E(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===g.kind&&((y=[128*h.compositeTextSizes[0].evaluate(s,{},m),128*h.compositeTextSizes[1].evaluate(s,{},m)])[0]>32640||y[1]>32640)&&E(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),e.addSymbols(e.text,v,y,u,a,s,c,t,l.lineStartIndex,l.lineLength,d,m);for(var b=0,_=f;b<_.length;b+=1)p[_[b]]=e.text.placedSymbolArray.length-1;return 4*v.length}function ul(e){for(var t in e)return e[t];return null}function ll(e,t,n,r){var i=e.compareText;if(t in i){for(var o=i[t],a=o.length-1;a>=0;a--)if(r.dist(o[a])<n)return!0}else i[t]=[];return i[t].push(r),!1}var cl=_s.VectorTileFeature.types,fl=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function pl(e,t,n,r,i,o,a,s,u,l,c,f,p){var d=s?Math.min(32640,Math.round(s[0])):0,h=s?Math.min(32640,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*i),o,a,(d<<1)+(u?1:0),h,16*l,16*c,256*f,256*p)}function dl(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 hl(e){for(var t=0,n=e.sections;t<n.length;t+=1)if(Kr(n[t].text))return!0;return!1}var ml=function(e){this.layoutVertexArray=new Ii,this.indexArray=new Ui,this.programConfigurations=e,this.segments=new so,this.dynamicLayoutVertexArray=new Fi,this.opacityVertexArray=new Ri,this.placedSymbolArray=new Qi};ml.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},ml.prototype.upload=function(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Us.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Vs.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,fl,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))},ml.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},zr("SymbolBuffers",ml);var vl=function(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new so,this.collisionVertexArray=new Ni};vl.prototype.upload=function(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Hs.members,!0)},vl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},zr("CollisionBuffers",vl);var gl=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=sa([]),this.placementViewportMatrix=sa([]);var t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ru(this.zoom,t["text-size"]),this.iconSizeData=Ru(this.zoom,t["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&!r.isConstant(),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((function(e){return xu[e]}))),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id})),this.sourceID=e.sourceID};gl.prototype.createArrays=function(){this.text=new ml(new Fo(this.layers,this.zoom,(function(e){return/^text/.test(e)}))),this.icon=new ml(new Fo(this.layers,this.zoom,(function(e){return/^icon/.test(e)}))),this.glyphOffsetArray=new no,this.lineVertexArray=new ro,this.symbolInstances=new to},gl.prototype.calculateGlyphDependencies=function(e,t,n,r,i){for(var o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,(n||r)&&i){var a=$s[e.charAt(o)];a&&(t[a.charCodeAt(0)]=!0)}},gl.prototype.populate=function(e,t,n){var r=this.layers[0],i=r.layout,o=i.get("text-font"),a=i.get("text-field"),s=i.get("icon-image"),u=("constant"!==a.value.kind||a.value.value instanceof rt&&!a.value.value.isEmpty()||a.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],u||l){for(var f=t.iconDependencies,p=t.glyphDependencies,d=t.availableImages,h=new si(this.zoom),m=0,v=e;m<v.length;m+=1){var g=v[m],y=g.feature,b=g.id,_=g.index,x=g.sourceLayerIndex,w=r._featureFilter.needGeometry,E=Uo(y,w);if(r._featureFilter.filter(h,E,n)){w||(E.geometry=No(y));var O=void 0;if(u){var C=r.getValueAndResolveTokens("text-field",E,n,d),D=rt.factory(C);hl(D)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===ii()||this.hasRTLText&&ai.isParsed())&&(O=qs(D,r,E))}var S=void 0;if(l){var k=r.getValueAndResolveTokens("icon-image",E,n,d);S=k instanceof it?k:it.fromString(k)}if(O||S){var A=this.sortFeaturesByKey?c.evaluate(E,{},n):void 0;if(this.features.push({id:b,text:O,icon:S,index:_,sourceLayerIndex:x,geometry:E.geometry,properties:y.properties,type:cl[y.type],sortKey:A}),S&&(f[S.name]=!0),O){var T=o.evaluate(E,{},n).join(","),P="map"===i.get("text-rotation-alignment")&&"point"!==i.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(xu.vertical)>=0;for(var M=0,j=O.sections;M<j.length;M+=1){var I=j[M];if(I.image)f[I.image.name]=!0;else{var F=qr(O.toString()),R=I.fontStack||T,L=p[R]=p[R]||{};this.calculateGlyphDependencies(I.text,L,P,this.allowVerticalPlacement,F)}}}}}}"line"===i.get("symbol-placement")&&(this.features=function(e){var t={},n={},r=[],i=0;function o(t){r.push(e[t]),i++}function a(e,t,i){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(i[0]),o}function s(e,n,i){var o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function u(e,t,n){var r=n?t[0][t[0].length-1]:t[0][0];return e+":"+r.x+":"+r.y}for(var l=0;l<e.length;l++){var c=e[l],f=c.geometry,p=c.text?c.text.toString():null;if(p){var d=u(p,f),h=u(p,f,!0);if(d in n&&h in t&&n[d]!==t[h]){var m=s(d,h,f),v=a(d,h,r[m].geometry);delete t[d],delete n[h],n[u(p,r[v].geometry,!0)]=v,r[m].geometry=null}else d in n?a(d,h,f):h in t?s(d,h,f):(o(l),t[d]=i-1,n[h]=i-1)}else o(l)}return r.filter((function(e){return e.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(e,t){return e.sortKey-t.sortKey}))}},gl.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))},gl.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},gl.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},gl.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},gl.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},gl.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},gl.prototype.addToLineVertexArray=function(e,t){var n=this.lineVertexArray.length;if(void 0!==e.segment){for(var r=e.dist(t[e.segment+1]),i=e.dist(t[e.segment]),o={},a=e.segment+1;a<t.length;a++)o[a]={x:t[a].x,y:t[a].y,tileUnitDistanceFromAnchor:r},a<t.length-1&&(r+=t[a+1].dist(t[a]));for(var s=e.segment||0;s>=0;s--)o[s]={x:t[s].x,y:t[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=t[s-1].dist(t[s]));for(var u=0;u<t.length;u++){var l=o[u];this.lineVertexArray.emplaceBack(l.x,l.y,l.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},gl.prototype.addSymbols=function(e,t,n,r,i,o,a,s,u,l,c,f){for(var p=e.indexArray,d=e.layoutVertexArray,h=e.segments.prepareSegment(4*t.length,d,p,this.canOverlap?o.sortKey:void 0),m=this.glyphOffsetArray.length,v=h.vertexLength,g=this.allowVerticalPlacement&&a===xu.vertical?Math.PI/2:0,y=o.text&&o.text.sections,b=0;b<t.length;b++){var _=t[b],x=_.tl,w=_.tr,E=_.bl,O=_.br,C=_.tex,D=_.pixelOffsetTL,S=_.pixelOffsetBR,k=_.minFontScaleX,A=_.minFontScaleY,T=_.glyphOffset,P=_.isSDF,M=_.sectionIndex,j=h.vertexLength,I=T[1];pl(d,s.x,s.y,x.x,I+x.y,C.x,C.y,n,P,D.x,D.y,k,A),pl(d,s.x,s.y,w.x,I+w.y,C.x+C.w,C.y,n,P,S.x,D.y,k,A),pl(d,s.x,s.y,E.x,I+E.y,C.x,C.y+C.h,n,P,D.x,S.y,k,A),pl(d,s.x,s.y,O.x,I+O.y,C.x+C.w,C.y+C.h,n,P,S.x,S.y,k,A),dl(e.dynamicLayoutVertexArray,s,g),p.emplaceBack(j,j+1,j+2),p.emplaceBack(j+1,j+2,j+3),h.vertexLength+=4,h.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(T[0]),b!==t.length-1&&M===t[b+1].sectionIndex||e.programConfigurations.populatePaintArrays(d.length,o,o.index,{},f,y&&y[M])}e.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,v,u,l,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,c)},gl.prototype._addCollisionDebugVertex=function(e,t,n,r,i,o){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,i,Math.round(o.x),Math.round(o.y))},gl.prototype.addCollisionDebugVertices=function(e,t,n,r,o,a,s){var u=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),l=u.vertexLength,c=o.layoutVertexArray,f=o.collisionVertexArray,p=s.anchorX,d=s.anchorY;this._addCollisionDebugVertex(c,f,a,p,d,new i(e,t)),this._addCollisionDebugVertex(c,f,a,p,d,new i(n,t)),this._addCollisionDebugVertex(c,f,a,p,d,new i(n,r)),this._addCollisionDebugVertex(c,f,a,p,d,new i(e,r)),u.vertexLength+=4;var h=o.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),u.primitiveLength+=4},gl.prototype.addDebugCollisionBoxes=function(e,t,n,r){for(var i=e;i<t;i++){var o=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(o.x1,o.y1,o.x2,o.y2,r?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,n)}},gl.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new vl(zi,Ws.members,$i),this.iconCollisionBox=new vl(zi,Ws.members,$i);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)}},gl.prototype._deserializeCollisionBoxesForSymbol=function(e,t,n,r,i,o,a,s,u){for(var l={},c=t;c<n;c++){var f=e.get(c);l.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},l.textFeatureIndex=f.featureIndex;break}for(var p=r;p<i;p++){var d=e.get(p);l.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},l.verticalTextFeatureIndex=d.featureIndex;break}for(var h=o;h<a;h++){var m=e.get(h);l.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},l.iconFeatureIndex=m.featureIndex;break}for(var v=s;v<u;v++){var g=e.get(v);l.verticalIconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},l.verticalIconFeatureIndex=g.featureIndex;break}return l},gl.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))}},gl.prototype.hasTextData=function(){return this.text.segments.get().length>0},gl.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gl.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gl.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gl.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gl.prototype.addIndicesForPlacedSymbol=function(e,t){for(var n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs,i=n.vertexStartIndex;i<r;i+=4)e.indexArray.emplaceBack(i,i+1,i+2),e.indexArray.emplaceBack(i+1,i+2,i+3)},gl.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=[],i=[],o=[],a=0;a<this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(t*s.anchorX+n*s.anchorY)),i.push(s.featureIndex)}return o.sort((function(e,t){return r[e]-r[t]||i[t]-i[e]})),o},gl.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})},gl.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 i=this.symbolInstances.get(r[n]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(e,n,r){e>=0&&r.indexOf(e)===n&&t.addIndicesForPlacedSymbol(t.text,e)})),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},zr("SymbolBucket",gl,{omit:["layers","collisionBoxArray","features","compareText"]}),gl.MAX_GLYPHS=65535,gl.addDynamicAttributes=dl;var yl=new xi({"symbol-placement":new vi(Ae.layout_symbol["symbol-placement"]),"symbol-spacing":new vi(Ae.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new vi(Ae.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new gi(Ae.layout_symbol["symbol-sort-key"]),"symbol-z-order":new vi(Ae.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new vi(Ae.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new vi(Ae.layout_symbol["icon-ignore-placement"]),"icon-optional":new vi(Ae.layout_symbol["icon-optional"]),"icon-rotation-alignment":new vi(Ae.layout_symbol["icon-rotation-alignment"]),"icon-size":new gi(Ae.layout_symbol["icon-size"]),"icon-text-fit":new vi(Ae.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new vi(Ae.layout_symbol["icon-text-fit-padding"]),"icon-image":new gi(Ae.layout_symbol["icon-image"]),"icon-rotate":new gi(Ae.layout_symbol["icon-rotate"]),"icon-padding":new vi(Ae.layout_symbol["icon-padding"]),"icon-keep-upright":new vi(Ae.layout_symbol["icon-keep-upright"]),"icon-offset":new gi(Ae.layout_symbol["icon-offset"]),"icon-anchor":new gi(Ae.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new vi(Ae.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new vi(Ae.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new vi(Ae.layout_symbol["text-rotation-alignment"]),"text-field":new gi(Ae.layout_symbol["text-field"]),"text-font":new gi(Ae.layout_symbol["text-font"]),"text-size":new gi(Ae.layout_symbol["text-size"]),"text-max-width":new gi(Ae.layout_symbol["text-max-width"]),"text-line-height":new vi(Ae.layout_symbol["text-line-height"]),"text-letter-spacing":new gi(Ae.layout_symbol["text-letter-spacing"]),"text-justify":new gi(Ae.layout_symbol["text-justify"]),"text-radial-offset":new gi(Ae.layout_symbol["text-radial-offset"]),"text-variable-anchor":new vi(Ae.layout_symbol["text-variable-anchor"]),"text-anchor":new gi(Ae.layout_symbol["text-anchor"]),"text-max-angle":new vi(Ae.layout_symbol["text-max-angle"]),"text-writing-mode":new vi(Ae.layout_symbol["text-writing-mode"]),"text-rotate":new gi(Ae.layout_symbol["text-rotate"]),"text-padding":new vi(Ae.layout_symbol["text-padding"]),"text-keep-upright":new vi(Ae.layout_symbol["text-keep-upright"]),"text-transform":new gi(Ae.layout_symbol["text-transform"]),"text-offset":new gi(Ae.layout_symbol["text-offset"]),"text-allow-overlap":new vi(Ae.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new vi(Ae.layout_symbol["text-ignore-placement"]),"text-optional":new vi(Ae.layout_symbol["text-optional"])}),bl={paint:new xi({"icon-opacity":new gi(Ae.paint_symbol["icon-opacity"]),"icon-color":new gi(Ae.paint_symbol["icon-color"]),"icon-halo-color":new gi(Ae.paint_symbol["icon-halo-color"]),"icon-halo-width":new gi(Ae.paint_symbol["icon-halo-width"]),"icon-halo-blur":new gi(Ae.paint_symbol["icon-halo-blur"]),"icon-translate":new vi(Ae.paint_symbol["icon-translate"]),"icon-translate-anchor":new vi(Ae.paint_symbol["icon-translate-anchor"]),"text-opacity":new gi(Ae.paint_symbol["text-opacity"]),"text-color":new gi(Ae.paint_symbol["text-color"],{runtimeType:Ue,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new gi(Ae.paint_symbol["text-halo-color"]),"text-halo-width":new gi(Ae.paint_symbol["text-halo-width"]),"text-halo-blur":new gi(Ae.paint_symbol["text-halo-blur"]),"text-translate":new vi(Ae.paint_symbol["text-translate"]),"text-translate-anchor":new vi(Ae.paint_symbol["text-translate-anchor"])}),layout:yl},_l=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Le,this.defaultValue=e};_l.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},_l.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},_l.prototype.outputDefined=function(){return!1},_l.prototype.serialize=function(){return null},zr("FormatSectionOverride",_l,{omit:["defaultValue"]});var xl=function(e){function t(t){e.call(this,t,bl)}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 i=[],o=0,a=r;o<a.length;o+=1){var s=a[o];i.indexOf(s)<0&&i.push(s)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},t.prototype.getValueAndResolveTokens=function(e,t,n,r){var i=this.layout.get(e).evaluate(t,{},n,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||qn(o.value)||!i?i:function(e,t){return t.replace(/{([^{}]+)}/g,(function(t,n){return n in e?String(e[n]):""}))}(t.properties,i)},t.prototype.createBucket=function(e){return new gl(e)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype._setPaintOverrides=function(){for(var e=0,n=bl.paint.overridableProperties;e<n.length;e+=1){var r=n[e];if(t.hasPaintOverride(this.layout,r)){var i,o=this.paint.get(r),a=new _l(o),s=new Gn(a,o.property.specification);i="constant"===o.value.kind||"source"===o.value.kind?new Yn("source",s):new Zn("composite",s,o.value.zoomStops,o.value._interpolationType),this.paint._values[r]=new hi(o.property,i,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=bl.paint.properties[t],i=!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(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof rt)o(n.value.value.sections);else if("source"===n.value.kind){var a=n.value;a._styleExpression&&function e(t){i||(t instanceof lt&&st(t.value)===Ge?o(t.value.sections):t instanceof dt?o(t.sections):t.eachChild(e))}(a._styleExpression.expression)}return i},t}(wi),wl={paint:new xi({"background-color":new vi(Ae.paint_background["background-color"]),"background-pattern":new bi(Ae.paint_background["background-pattern"]),"background-opacity":new vi(Ae.paint_background["background-opacity"])})},El=function(e){function t(t){e.call(this,t,wl)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(wi),Ol={paint:new xi({"raster-opacity":new vi(Ae.paint_raster["raster-opacity"]),"raster-hue-rotate":new vi(Ae.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new vi(Ae.paint_raster["raster-brightness-min"]),"raster-brightness-max":new vi(Ae.paint_raster["raster-brightness-max"]),"raster-saturation":new vi(Ae.paint_raster["raster-saturation"]),"raster-contrast":new vi(Ae.paint_raster["raster-contrast"]),"raster-resampling":new vi(Ae.paint_raster["raster-resampling"]),"raster-fade-duration":new vi(Ae.paint_raster["raster-fade-duration"])})},Cl=function(e){function t(t){e.call(this,t,Ol)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(wi),Dl=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}(wi),Sl={circle:pa,heatmap:wa,hillshade:Oa,fill:cs,"fill-extrusion":Ss,line:Bs,symbol:xl,background:El,raster:Cl},kl=a.HTMLImageElement,Al=a.HTMLCanvasElement,Tl=a.HTMLVideoElement,Pl=a.ImageData,Ml=a.ImageBitmap,jl=function(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)};jl.prototype.update=function(e,t,n){var r=e.width,i=e.height,o=!(this.size&&this.size[0]===r&&this.size[1]===i||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(t&&t.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!t||!1!==t.premultiply)),o)this.size=[r,i],e instanceof kl||e instanceof Al||e instanceof Tl||e instanceof Pl||Ml&&e instanceof Ml?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,r,i,0,this.format,s.UNSIGNED_BYTE,e.data);else{var u=n||{x:0,y:0},l=u.x,c=u.y;e instanceof kl||e instanceof Al||e instanceof Tl||e instanceof Pl||Ml&&e instanceof Ml?s.texSubImage2D(s.TEXTURE_2D,0,l,c,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,l,c,r,i,s.RGBA,s.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},jl.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)},jl.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},jl.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Il=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()})};Il.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))},Il.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Fl=function(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g(["receive","process"],this),this.invoker=new Il(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=D()?e:a};function Rl(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]}Fl.prototype.send=function(e,t,n,r,i){var o=this;void 0===i&&(i=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[a]=n);var s=A(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:e,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:Vr(t,s)},s),{cancel:function(){n&&delete o.callbacks[a],o.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},Fl.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 D()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)},Fl.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)}},Fl.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(Hr(t.error)):r(null,Hr(t.data)))}else{var i=!1,o=A(this.globalScope)?void 0:[],a=t.hasCallback?function(t,r){i=!0,delete n.cancelCallbacks[e],n.target.postMessage({id:e,type:"<response>",sourceMapId:n.mapId,error:t?Vr(t):null,data:Vr(r,o)},o)}:function(e){i=!0},s=null,u=Hr(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,u,a);else if(this.parent.getWorkerSource){var l=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,l[0],u.source)[l[1]](u,a)}else a(new Error("Could not find function "+t.type));!i&&s&&s.cancel&&(this.cancelCallbacks[e]=s.cancel)}},Fl.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Ll=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]))};Ll.prototype.setNorthEast=function(e){return this._ne=e instanceof zl?new zl(e.lng,e.lat):zl.convert(e),this},Ll.prototype.setSouthWest=function(e){return this._sw=e instanceof zl?new zl(e.lng,e.lat):zl.convert(e),this},Ll.prototype.extend=function(e){var t,n,r=this._sw,i=this._ne;if(e instanceof zl)t=e,n=e;else{if(!(e instanceof Ll))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Ll.convert(e)):this.extend(zl.convert(e)):this;if(n=e._ne,!(t=e._sw)||!n)return this}return r||i?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new zl(t.lng,t.lat),this._ne=new zl(n.lng,n.lat)),this},Ll.prototype.getCenter=function(){return new zl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ll.prototype.getSouthWest=function(){return this._sw},Ll.prototype.getNorthEast=function(){return this._ne},Ll.prototype.getNorthWest=function(){return new zl(this.getWest(),this.getNorth())},Ll.prototype.getSouthEast=function(){return new zl(this.getEast(),this.getSouth())},Ll.prototype.getWest=function(){return this._sw.lng},Ll.prototype.getSouth=function(){return this._sw.lat},Ll.prototype.getEast=function(){return this._ne.lng},Ll.prototype.getNorth=function(){return this._ne.lat},Ll.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ll.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Ll.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Ll.prototype.contains=function(e){var t=zl.convert(e),n=t.lng,r=t.lat,i=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&i},Ll.convert=function(e){return!e||e instanceof Ll?e:new Ll(e)};var zl=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")};zl.prototype.wrap=function(){return new zl(f(this.lng,-180,180),this.lat)},zl.prototype.toArray=function(){return[this.lng,this.lat]},zl.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},zl.prototype.distanceTo=function(e){var t=Math.PI/180,n=this.lat*t,r=e.lat*t,i=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(i,1))},zl.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 Ll(new zl(this.lng-n,this.lat-t),new zl(this.lng+n,this.lat+t))},zl.convert=function(e){if(e instanceof zl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new zl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new zl(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 Bl=2*Math.PI*6371008.8;function Nl(e){return Bl*Math.cos(e*Math.PI/180)}function Ul(e){return(180+e)/360}function Vl(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Hl(e,t){return e/Nl(t)}function Wl(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}var Gl=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Gl.fromLngLat=function(e,t){void 0===t&&(t=0);var n=zl.convert(e);return new Gl(Ul(n.lng),Vl(n.lat),Hl(t,n.lat))},Gl.prototype.toLngLat=function(){return new zl(360*this.x-180,Wl(this.y))},Gl.prototype.toAltitude=function(){return this.z*Nl(Wl(this.y))},Gl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Bl*(e=Wl(this.y),1/Math.cos(e*Math.PI/180));var e};var ql=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Zl(0,e,e,t,n)};ql.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},ql.prototype.url=function(e,t){var n,r,i,o,a,s=(r=this.y,i=this.z,o=Rl(256*(n=this.x),256*(r=Math.pow(2,i)-r-1),i),a=Rl(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),u=function(e,t,n){for(var r,i="",o=e;o>0;o--)i+=(t&(r=1<<o-1)?1:0)+(n&r?2:0);return i}(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}",u).replace("{bbox-epsg-3857}",s)},ql.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new i(8192*(e.x*t-this.x),8192*(e.y*t-this.y))},ql.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var $l=function(e,t){this.wrap=e,this.canonical=t,this.key=Zl(e,t.z,t.z,t.x,t.y)},Yl=function(e,t,n,r,i){this.overscaledZ=e,this.wrap=t,this.canonical=new ql(n,+r,+i),this.key=Zl(t,e,n,r,i)};function Zl(e,t,n,r,i){(e*=2)<0&&(e=-1*e-1);var o=1<<n;return(o*o*e+o*i+r).toString(36)+n.toString(36)+t.toString(36)}Yl.prototype.equals=function(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)},Yl.prototype.scaledTo=function(e){var t=this.canonical.z-e;return e>this.canonical.z?new Yl(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Yl(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Yl.prototype.calculateScaledKey=function(e,t){var n=this.canonical.z-e;return e>this.canonical.z?Zl(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Zl(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)},Yl.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},Yl.prototype.children=function(e){if(this.overscaledZ>=e)return[new Yl(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 Yl(t,this.wrap,t,n,r),new Yl(t,this.wrap,t,n+1,r),new Yl(t,this.wrap,t,n,r+1),new Yl(t,this.wrap,t,n+1,r+1)]},Yl.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))},Yl.prototype.wrapped=function(){return new Yl(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Yl.prototype.unwrapTo=function(e){return new Yl(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)},Yl.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Yl.prototype.toUnwrapped=function(){return new $l(this.wrap,this.canonical)},Yl.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Yl.prototype.getTilePoint=function(e){return this.canonical.getTilePoint(new Gl(e.x-this.wrap,e.y))},zr("CanonicalTileID",ql),zr("OverscaledTileID",Yl,{omit:["posMatrix"]});var Xl=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 E('"'+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 i=0;i<r;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(r,i)]=this.data[this._idx(r-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,r)]=this.data[this._idx(i,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)]};Xl.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])},Xl.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Xl.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)},Xl.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},Xl.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},Xl.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Xl.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,i=t*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}for(var s=-t*this.dim,u=-n*this.dim,l=o;l<a;l++)for(var c=r;c<i;c++)this.data[this._idx(c,l)]=e.data[this._idx(c+s,l+u)]},zr("DEMData",Xl);var Kl=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}};Kl.prototype.encode=function(e){return this._stringToNumber[e]},Kl.prototype.decode=function(e){return this._numberToString[e]};var Jl=function(e,t,n,r,i){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,this.id=i},Ql={geometry:{configurable:!0}};Ql.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},Ql.geometry.set=function(e){this._geometry=e},Jl.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(Jl.prototype,Ql);var ec=function(){this.state={},this.stateChanges={},this.deletedStates={}};ec.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]||{},p(this.stateChanges[e][r],n),null===this.deletedStates[e])for(var i in this.deletedStates[e]={},this.state[e])i!==r&&(this.deletedStates[e][i]=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 a in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][a]&&delete this.deletedStates[e][r][a]},ec.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}},ec.prototype.getState=function(e,t){var n=String(t),r=p({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){var i=this.deletedStates[e][t];if(null===i)return{};for(var o in i)delete r[o]}return r},ec.prototype.initializeTileState=function(e,t){e.setFeatureState(this.state,t)},ec.prototype.coalesceChanges=function(e,t){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var i={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),p(this.state[r][o],this.stateChanges[r][o]),i[o]=this.state[r][o];n[r]=i}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var u in this.state[a])s[u]={},this.state[a][u]={};else for(var l in this.deletedStates[a]){if(null===this.deletedStates[a][l])this.state[a][l]={};else for(var c=0,f=Object.keys(this.deletedStates[a][l]);c<f.length;c+=1)delete this.state[a][l][f[c]];s[l]=this.state[a][l]}n[a]=n[a]||{},p(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var d in e)e[d].setFeatureState(n,t)};var tc=function(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new jr(8192,16,0),this.grid3D=new jr(8192,16,0),this.featureIndexArray=new oo,this.promoteId=t};function nc(e,t,n,r,i){return b(e,(function(e,o){var a=t instanceof mi?t.get(o):null;return a&&a.evaluate?a.evaluate(n,r,i):a}))}function rc(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0,a=e;o<a.length;o+=1){var s=a[o];t=Math.min(t,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),i=Math.max(i,s.y)}return{minX:t,minY:n,maxX:r,maxY:i}}function ic(e,t){return t-e}tc.prototype.insert=function(e,t,n,r,i,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);for(var s=o?this.grid3D:this.grid,u=0;u<t.length;u++){for(var l=t[u],c=[1/0,1/0,-1/0,-1/0],f=0;f<l.length;f++){var p=l[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&&s.insert(a,c[0],c[1],c[2],c[3])}},tc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _s.VectorTile(new Xs(this.rawTileData)).layers,this.sourceLayerCoder=new Kl(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},tc.prototype.query=function(e,t,n,r){var o=this;this.loadVTLayers();for(var a=e.params||{},s=8192/e.tileSize/e.scale,u=ar(a.filter),l=e.queryGeometry,c=e.queryPadding*s,f=rc(l),p=this.grid.query(f.minX-c,f.minY-c,f.maxX+c,f.maxY+c),d=rc(e.cameraQueryGeometry),h=0,m=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 a=0,s=e;a<s.length;a+=1){var u=s[a];if(t<=u.x&&n<=u.y&&r>=u.x&&o>=u.y)return!0}var l=[new i(t,n),new i(t,o),new i(r,o),new i(r,n)];if(e.length>2)for(var c=0,f=l;c<f.length;c+=1)if(Qo(e,f[c]))return!0;for(var p=0;p<e.length-1;p++)if(ea(e[p],e[p+1],l))return!0;return!1}(e.cameraQueryGeometry,t-c,n-c,r+c,o+c)}));h<m.length;h+=1)p.push(m[h]);p.sort(ic);for(var v,g={},y=function(i){var c=p[i];if(c!==v){v=c;var f=o.featureIndexArray.get(c),d=null;o.loadMatchingFeature(g,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,u,a.layers,a.availableImages,t,n,r,(function(t,n,r){return d||(d=No(t)),n.queryIntersectsFeature(l,t,r,d,o.z,e.transform,s,e.pixelPosMatrix)}))}},b=0;b<p.length;b++)y(b);return g},tc.prototype.loadMatchingFeature=function(e,t,n,r,i,o,a,s,u,l,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 d=this.sourceLayerCoder.decode(n),h=this.vtLayers[d].feature(r);if(i.needGeometry){var m=Uo(h,!0);if(!i.filter(new si(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!i.filter(new si(this.tileID.overscaledZ),h))return;for(var v=this.getId(h,d),g=0;g<f.length;g++){var y=f[g];if(!(o&&o.indexOf(y)<0)){var b=s[y];if(b){var _={};void 0!==v&&l&&(_=l.getState(b.sourceLayer||"_geojsonTileLayer",v));var x=p({},u[y]);x.paint=nc(x.paint,b.paint,h,_,a),x.layout=nc(x.layout,b.layout,h,_,a);var w=!c||c(h,b,_);if(w){var E=new Jl(h,this.z,this.x,this.y,v);E.layer=x;var O=e[y];void 0===O&&(O=e[y]=[]),O.push({featureIndex:r,feature:E,intersectionZ:w})}}}}}},tc.prototype.lookupSymbolFeatures=function(e,t,n,r,i,o,a,s){var u={};this.loadVTLayers();for(var l=ar(i),c=0,f=e;c<f.length;c+=1)this.loadMatchingFeature(u,n,r,f[c],l,o,a,s,t);return u},tc.prototype.hasLayer=function(e){for(var t=0,n=this.bucketLayerIDs;t<n.length;t+=1)for(var r=0,i=n[t];r<i.length;r+=1)if(e===i[r])return!0;return!1},tc.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},zr("FeatureIndex",tc,{omit:["rawTileData","sourceLayerCoder"]});var oc=function(e,t){this.tileID=e,this.uid=h(),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"};oc.prototype.registerFadeDuration=function(e){var t=e+this.timeAdded;t<z.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)},oc.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},oc.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[i],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 a=0,s=r;a<s.length;a+=1)n[s[a].id]=e}},i=0,o=e;i<o.length;i+=1)r();return n}(e.buckets,t.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[r];if(i instanceof gl){if(this.hasSymbolBuckets=!0,!n)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var o in this.buckets){var a=this.buckets[o];if(a instanceof gl&&a.hasRTLText){this.hasRTLText=!0,ai.isLoading()||ai.isLoaded()||"deferred"!==ii()||oi();break}}for(var s in this.queryPadding=0,this.buckets){var u=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(s).queryRadius(u))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Ki},oc.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"},oc.prototype.getBucket=function(e){return this.buckets[e.id]},oc.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 jl(e,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new jl(e,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},oc.prototype.prepare=function(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)},oc.prototype.queryRenderedFeatures=function(e,t,n,r,i,o,a,s,u,l){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:o,tileSize:this.tileSize,pixelPosMatrix:l,transform:s,params:a,queryPadding:this.queryPadding*u},e,t,n):{}},oc.prototype.querySourceFeatures=function(e,t){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var r=n.loadVTLayers(),i=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[i];if(o)for(var a=ar(t&&t.filter),s=this.tileID.canonical,u=s.z,l=s.x,c=s.y,f={z:u,x:l,y:c},p=0;p<o.length;p++){var d=o.feature(p);if(a.needGeometry){var h=Uo(d,!0);if(!a.filter(new si(this.tileID.overscaledZ),h,this.tileID.canonical))continue}else if(!a.filter(new si(this.tileID.overscaledZ),d))continue;var m=n.getId(d,i),v=new Jl(d,u,l,c,m);v.tile=f,e.push(v)}}},oc.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},oc.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},oc.prototype.setExpiryData=function(e){var t=this.expirationTime;if(e.cacheControl){var n=S(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(),i=!1;if(this.expirationTime>r)i=!1;else if(t)if(this.expirationTime<t)i=!0;else{var o=this.expirationTime-t;o?this.expirationTime=r+Math.max(o,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},oc.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)},oc.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 i=this.buckets[r],o=i.layers[0].sourceLayer||"_geojsonTileLayer",a=n[o],s=e[o];if(a&&s&&0!==Object.keys(s).length){i.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});var u=t&&t.style&&t.style.getLayer(r);u&&(this.queryPadding=Math.max(this.queryPadding,u.queryRadius(i)))}}}},oc.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},oc.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<z.now()},oc.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},oc.prototype.setHoldDuration=function(e){this.symbolFadeHoldUntil=z.now()+e},oc.prototype.setDependencies=function(e,t){for(var n={},r=0,i=t;r<i.length;r+=1)n[i[r]]=!0;this.dependencies[e]=n},oc.prototype.hasDependency=function(e,t){for(var n=0,r=e;n<r.length;n+=1){var i=this.dependencies[r[n]];if(i)for(var o=0,a=t;o<a.length;o+=1)if(i[a[o]])return!0}return!1};var ac=a.performance,sc=function(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},ac.mark(this._marks.start)};sc.prototype.finish=function(){ac.mark(this._marks.end);var e=ac.getEntriesByName(this._marks.measure);return 0===e.length&&(ac.measure(this._marks.measure,this._marks.start,this._marks.end),e=ac.getEntriesByName(this._marks.measure),ac.clearMarks(this._marks.start),ac.clearMarks(this._marks.end),ac.clearMeasures(this._marks.measure)),e},e.Actor=Fl,e.AlphaImage=ya,e.CanonicalTileID=ql,e.CollisionBoxArray=Ki,e.Color=et,e.DEMData=Xl,e.DataConstantProperty=vi,e.DictionaryCoder=Kl,e.EXTENT=8192,e.ErrorEvent=Se,e.EvaluationParameters=si,e.Event=De,e.Evented=ke,e.FeatureIndex=tc,e.FillBucket=ss,e.FillExtrusionBucket=Os,e.ImageAtlas=_u,e.ImagePosition=yu,e.LineBucket=Fs,e.LngLat=zl,e.LngLatBounds=Ll,e.MercatorCoordinate=Gl,e.ONE_EM=24,e.OverscaledTileID=Yl,e.Point=i,e.Point$1=i,e.Properties=xi,e.Protobuf=Xs,e.RGBAImage=ba,e.RequestManager=G,e.RequestPerformance=sc,e.ResourceType=he,e.SegmentVector=so,e.SourceFeatureState=ec,e.StructArrayLayout1ui2=Yi,e.StructArrayLayout2f1f2i16=Bi,e.StructArrayLayout2i4=ki,e.StructArrayLayout3ui6=Ui,e.StructArrayLayout4i8=Ai,e.SymbolBucket=gl,e.Texture=jl,e.Tile=oc,e.Transitionable=ci,e.Uniform1f=xo,e.Uniform1i=_o,e.Uniform2f=wo,e.Uniform3f=Eo,e.Uniform4f=Oo,e.UniformColor=Co,e.UniformMatrix4f=So,e.UnwrappedTileID=$l,e.ValidationError=Te,e.WritingMode=xu,e.ZoomHistory=Wr,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=dl,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);var r=e.length,i=new Array(e.length),o=null;e.forEach((function(e,a){t(e,(function(e,t){e&&(o=e),i[a]=t,0==--r&&n(o,i)}))}))},e.bezier=u,e.bindAll=g,e.browser=z,e.cacheEntryPossiblyAdded=function(e){++pe>ue&&(e.getActor().send("enforceCacheSizeLimit",se),pe=0)},e.clamp=c,e.clearTileCache=function(e){var t=a.caches.delete("mapbox-tiles");e&&t.catch(e).then((function(){return e()}))},e.clipLine=qu,e.clone=function(e){var t=new aa(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=x,e.clone$2=function(e){var t=new aa(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.collisionCircleLayout=Gs,e.config=B,e.create=function(){var e=new aa(16);return aa!=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 aa(9);return aa!=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 aa(4);return aa!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=$n,e.createLayout=Di,e.createStyleLayer=function(e){return"custom"===e.type?new Dl(e):new Sl[e.type](e)},e.cross=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],u=n[2];return e[0]=i*u-o*s,e[1]=o*a-r*u,e[2]=r*s-i*a,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 i in t)if(!e(t[i],n[i]))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=Mr,e.endsWith=y,e.enforceCacheSizeLimit=function(e){le(),ee&&ee.then((function(t){t.keys().then((function(n){for(var r=0;r<n.length-e;r++)t.delete(n[r])}))}))},e.evaluateSizeForFeature=Lu,e.evaluateSizeForZoom=zu,e.evaluateVariableOffset=ol,e.evented=ri,e.extend=p,e.featureFilter=ar,e.filterObject=_,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=Mu,e.getAnchorJustification=al,e.getArrayBuffer=xe,e.getImage=function e(t,n){if(N.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),be>=B.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:n,cancelled:!1,cancel:function(){this.cancelled=!0}};return ye.push(r),r}be++;var i=!1,o=function(){if(!i)for(i=!0,be--;ye.length&&be<B.MAX_PARALLEL_IMAGE_REQUESTS;){var t=ye.shift();t.cancelled||(t.cancel=e(t.requestParameters,t.callback).cancel)}},s=xe(t,(function(e,t,r,i){o(),e?n(e):t&&(de()?function(e,t){var n=new a.Blob([new Uint8Array(e)],{type:"image/png"});a.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."))}))}(t,n):function(e,t,n,r){var i=new a.Image,o=a.URL;i.onload=function(){t(null,i),o.revokeObjectURL(i.src),i.onload=null,a.requestAnimationFrame((function(){i.src=Ee}))},i.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 s=new a.Blob([new Uint8Array(e)],{type:"image/png"});i.cacheControl=n,i.expires=r,i.src=e.byteLength?o.createObjectURL(s):Ee}(t,n,r,i))}));return{cancel:function(){s.cancel(),o()}}},e.getJSON=function(e,t){return _e(p(e,{type:"json"}),t)},e.getRTLTextPluginStatus=ii,e.getReferrer=ve,e.getVideo=function(e,t){var n,r,i=a.document.createElement("video");i.muted=!0,i.onloadstart=function(){t(null,i)};for(var o=0;o<e.length;o++){var s=a.document.createElement("source");n=e[o],r=void 0,(r=a.document.createElement("a")).href=n,(r.protocol!==a.document.location.protocol||r.host!==a.document.location.host)&&(i.crossOrigin="Anonymous"),s.src=e[o],i.appendChild(s)}return{cancel:function(){}}},e.identity=sa,e.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],f=t[9],p=t[10],d=t[11],h=t[12],m=t[13],v=t[14],g=t[15],y=n*s-r*a,b=n*u-i*a,_=n*l-o*a,x=r*u-i*s,w=r*l-o*s,E=i*l-o*u,O=c*m-f*h,C=c*v-p*h,D=c*g-d*h,S=f*v-p*m,k=f*g-d*m,A=p*g-d*v,T=y*A-b*k+_*S+x*D-w*C+E*O;return T?(e[0]=(s*A-u*k+l*S)*(T=1/T),e[1]=(i*k-r*A-o*S)*T,e[2]=(m*E-v*w+g*x)*T,e[3]=(p*w-f*E-d*x)*T,e[4]=(u*D-a*A-l*C)*T,e[5]=(n*A-i*D+o*C)*T,e[6]=(v*_-h*E-g*b)*T,e[7]=(c*E-p*_+d*b)*T,e[8]=(a*k-s*D+l*O)*T,e[9]=(r*D-n*k-o*O)*T,e[10]=(h*w-m*_+g*y)*T,e[11]=(f*_-c*w-d*y)*T,e[12]=(s*C-a*S-u*O)*T,e[13]=(n*S-r*C+i*O)*T,e[14]=(m*b-h*x-v*y)*T,e[15]=(c*x-f*b+p*y)*T,e):null},e.isChar=Gr,e.isMapboxURL=q,e.keysDifference=function(e,t){var n=[];for(var r in e)r in t||n.push(r);return n},e.makeRequest=_e,e.mapObject=b,e.mercatorXfromLng=Ul,e.mercatorYfromLat=Vl,e.mercatorZfromAltitude=Hl,e.mul=ca,e.multiply=ua,e.mvt=_s,e.nextPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.normalize=function(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;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=Wt,e.offscreenCanvasSupported=de,e.ortho=function(e,t,n,r,i,o,a){var s=1/(t-n),u=1/(r-i),l=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*u,e[14]=(a+o)*l,e[15]=1,e},e.parseGlyphPBF=function(e){return new Xs(e).readFields(hu,[])},e.pbf=Xs,e.performSymbolLayout=function(e,t,n,r,i,o,a){e.createArrays(),e.tilePixelRatio=8192/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;var s=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,l={};if("composite"===e.textSizeData.kind){var c=e.textSizeData,f=c.maxZoom;l.compositeTextSizes=[u["text-size"].possiblyEvaluate(new si(c.minZoom),a),u["text-size"].possiblyEvaluate(new si(f),a)]}if("composite"===e.iconSizeData.kind){var p=e.iconSizeData,d=p.maxZoom;l.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new si(p.minZoom),a),u["icon-size"].possiblyEvaluate(new si(d),a)]}l.layoutTextSize=u["text-size"].possiblyEvaluate(new si(e.zoom+1),a),l.layoutIconSize=u["icon-size"].possiblyEvaluate(new si(e.zoom+1),a),l.textMaxSize=u["text-size"].possiblyEvaluate(new si(18));for(var h=24*s.get("text-line-height"),m="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),v=s.get("text-keep-upright"),g=s.get("text-size"),y=function(){var o=_[b],u=s.get("text-font").evaluate(o,{},a).join(","),c=g.evaluate(o,{},a),f=l.layoutTextSize.evaluate(o,{},a),p=l.layoutIconSize.evaluate(o,{},a),d={horizontal:{},vertical:void 0},y=o.text,x=[0,0];if(y){var w=y.toString(),O=24*s.get("text-letter-spacing").evaluate(o,{},a),C=function(e){for(var t=0,n=e;t<n.length;t+=1)if(r=n[t].charCodeAt(0),Gr.Arabic(r)||Gr["Arabic Supplement"](r)||Gr["Arabic Extended-A"](r)||Gr["Arabic Presentation Forms-A"](r)||Gr["Arabic Presentation Forms-B"](r))return!1;var r;return!0}(w)?O:0,D=s.get("text-anchor").evaluate(o,{},a),S=s.get("text-variable-anchor");if(!S){var k=s.get("text-radial-offset").evaluate(o,{},a);x=k?ol(D,[24*k,il]):s.get("text-offset").evaluate(o,{},a).map((function(e){return 24*e}))}var A=m?"center":s.get("text-justify").evaluate(o,{},a),T=s.get("symbol-placement"),P="point"===T?24*s.get("text-max-width").evaluate(o,{},a):0,M=function(){e.allowVerticalPlacement&&qr(w)&&(d.vertical=Ou(y,t,n,i,u,P,h,D,"left",C,x,xu.vertical,!0,T,f,c))};if(!m&&S){for(var j="auto"===A?S.map((function(e){return al(e)})):[A],I=!1,F=0;F<j.length;F++){var R=j[F];if(!d.horizontal[R])if(I)d.horizontal[R]=d.horizontal[0];else{var L=Ou(y,t,n,i,u,P,h,"center",R,C,x,xu.horizontal,!1,T,f,c);L&&(d.horizontal[R]=L,I=1===L.positionedLines.length)}}M()}else{"auto"===A&&(A=al(D));var z=Ou(y,t,n,i,u,P,h,D,A,C,x,xu.horizontal,!1,T,f,c);z&&(d.horizontal[A]=z),M(),qr(w)&&m&&v&&(d.vertical=Ou(y,t,n,i,u,P,h,D,A,C,x,xu.vertical,!1,T,f,c))}}var B=void 0,N=!1;if(o.icon&&o.icon.name){var U=r[o.icon.name];U&&(B=function(e,t,n){var r=Mu(n),i=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:i,right:i+e.displaySize[0]}}(i[o.icon.name],s.get("icon-offset").evaluate(o,{},a),s.get("icon-anchor").evaluate(o,{},a)),N=U.sdf,void 0===e.sdfIcons?e.sdfIcons=U.sdf:e.sdfIcons!==U.sdf&&E("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(U.pixelRatio!==e.pixelRatio||0!==s.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}var V=ul(d.horizontal)||d.vertical;e.iconsInText=!!V&&V.iconsInText,(V||B)&&function(e,t,n,r,i,o,a,s,u,l,c){var f=o.textMaxSize.evaluate(t,{});void 0===f&&(f=a);var p,d=e.layers[0].layout,h=d.get("icon-offset").evaluate(t,{},c),m=ul(n.horizontal),v=a/24,g=e.tilePixelRatio*v,y=e.tilePixelRatio*f/24,b=e.tilePixelRatio*s,_=e.tilePixelRatio*d.get("symbol-spacing"),x=d.get("text-padding")*e.tilePixelRatio,w=d.get("icon-padding")*e.tilePixelRatio,O=d.get("text-max-angle")/180*Math.PI,C="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),D="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),S=d.get("symbol-placement"),k=_/2,A=d.get("icon-text-fit");r&&"none"!==A&&(e.allowVerticalPlacement&&n.vertical&&(p=Iu(r,n.vertical,A,d.get("icon-text-fit-padding"),h,v)),m&&(r=Iu(r,m,A,d.get("icon-text-fit-padding"),h,v)));var T=function(s,f){f.x<0||f.x>=8192||f.y<0||f.y>=8192||function(e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m,v,g,y,b,_,x,w,O,C){var D,S,k,A,T,P=e.addToLineVertexArray(t,n),M=0,j=0,I=0,F=0,R=-1,L=-1,z={},B=po(""),N=0,U=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(N=(D=s.layout.get("text-offset").evaluate(_,{},O).map((function(e){return 24*e})))[0],U=D[1]):(N=24*s.layout.get("text-radial-offset").evaluate(_,{},O),U=il),e.allowVerticalPlacement&&r.vertical){var V=s.layout.get("text-rotate").evaluate(_,{},O)+90;A=new Ju(u,t,l,c,f,r.vertical,p,d,h,V),a&&(T=new Ju(u,t,l,c,f,a,v,g,h,V))}if(i){var H=s.layout.get("icon-rotate").evaluate(_,{}),W="none"!==s.layout.get("icon-text-fit"),G=$u(i,H,w,W),q=a?$u(a,H,w,W):void 0;k=new Ju(u,t,l,c,f,i,v,g,!1,H),M=4*G.length;var $=e.iconSizeData,Y=null;"source"===$.kind?(Y=[128*s.layout.get("icon-size").evaluate(_,{})])[0]>32640&&E(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===$.kind&&((Y=[128*x.compositeIconSizes[0].evaluate(_,{},O),128*x.compositeIconSizes[1].evaluate(_,{},O)])[0]>32640||Y[1]>32640)&&E(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),e.addSymbols(e.icon,G,Y,b,y,_,!1,t,P.lineStartIndex,P.lineLength,-1,O),R=e.icon.placedSymbolArray.length-1,q&&(j=4*q.length,e.addSymbols(e.icon,q,Y,b,y,_,xu.vertical,t,P.lineStartIndex,P.lineLength,-1,O),L=e.icon.placedSymbolArray.length-1)}for(var Z in r.horizontal){var X=r.horizontal[Z];if(!S){B=po(X.text);var K=s.layout.get("text-rotate").evaluate(_,{},O);S=new Ju(u,t,l,c,f,X,p,d,h,K)}var J=1===X.positionedLines.length;if(I+=sl(e,t,X,o,s,h,_,m,P,r.vertical?xu.horizontal:xu.horizontalOnly,J?Object.keys(r.horizontal):[Z],z,R,x,O),J)break}r.vertical&&(F+=sl(e,t,r.vertical,o,s,h,_,m,P,xu.vertical,["vertical"],z,L,x,O));var Q=S?S.boxStartIndex:e.collisionBoxArray.length,ee=S?S.boxEndIndex:e.collisionBoxArray.length,te=A?A.boxStartIndex:e.collisionBoxArray.length,ne=A?A.boxEndIndex:e.collisionBoxArray.length,re=k?k.boxStartIndex:e.collisionBoxArray.length,ie=k?k.boxEndIndex:e.collisionBoxArray.length,oe=T?T.boxStartIndex:e.collisionBoxArray.length,ae=T?T.boxEndIndex:e.collisionBoxArray.length,se=-1,ue=function(e,t){return e&&e.circleDiameter?Math.max(e.circleDiameter,t):t};se=ue(S,se),se=ue(A,se),se=ue(k,se);var le=(se=ue(T,se))>-1?1:0;le&&(se*=C/24),e.glyphOffsetArray.length>=gl.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,_.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,z.right>=0?z.right:-1,z.center>=0?z.center:-1,z.left>=0?z.left:-1,z.vertical||-1,R,L,B,Q,ee,te,ne,re,ie,oe,ae,l,I,F,M,j,le,0,p,N,U,se)}(e,f,s,n,r,i,p,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,g,x,C,u,b,w,D,h,t,o,l,c,a)};if("line"===S)for(var P=0,M=qu(t.geometry,0,0,8192,8192);P<M.length;P+=1)for(var j=M[P],I=0,F=Gu(j,_,O,n.vertical||m,r,24,y,e.overscaling,8192);I<F.length;I+=1){var R=F[I];m&&ll(e,m.text,k,R)||T(j,R)}else if("line-center"===S)for(var L=0,z=t.geometry;L<z.length;L+=1){var B=z[L];if(B.length>1){var N=Wu(B,O,n.vertical||m,r,24,y);N&&T(B,N)}}else if("Polygon"===t.type)for(var U=0,V=rs(t.geometry,0);U<V.length;U+=1){var H=V[U],W=tl(H,16);T(H[0],new Fu(W.x,W.y,0))}else if("LineString"===t.type)for(var G=0,q=t.geometry;G<q.length;G+=1){var $=q[G];T($,new Fu($[0].x,$[0].y,0))}else if("Point"===t.type)for(var Y=0,Z=t.geometry;Y<Z.length;Y+=1)for(var X=0,K=Z[Y];X<K.length;X+=1){var J=K[X];T([J],new Fu(J.x,J.y,0))}}(e,o,d,B,r,l,f,p,x,N,a)},b=0,_=e.features;b<_.length;b+=1)y();o&&e.generateCollisionDebugBuffers()},e.perspective=function(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,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!=i&&i!==1/0?(e[10]=(i+r)*(o=1/(r-i)),e[14]=2*i*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 i=t[r];i in e&&(n[i]=e[i])}return n},e.plugin=ai,e.polygonIntersectsPolygon=Wo,e.postMapLoadEvent=ae,e.postTurnstileEvent=ie,e.potpack=gu,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.register=zr,e.registerForPluginStateChange=function(e){return e({pluginStatus:Qr,pluginURL:ei}),ri.on("pluginStateChange",e),e},e.renderColorRamp=xa,e.rotate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),u=Math.cos(n);return e[0]=r*u+o*s,e[1]=i*u+a*s,e[2]=r*-s+o*u,e[3]=i*-s+a*u,e},e.rotateX=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],u=t[7],l=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*i+l*r,e[5]=a*i+c*r,e[6]=s*i+f*r,e[7]=u*i+p*r,e[8]=l*i-o*r,e[9]=c*i-a*r,e[10]=f*i-s*r,e[11]=p*i-u*r,e},e.rotateZ=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],u=t[3],l=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*i+l*r,e[1]=a*i+c*r,e[2]=s*i+f*r,e[3]=u*i+p*r,e[4]=l*i-o*r,e[5]=c*i-a*r,e[6]=f*i-s*r,e[7]=p*i-u*r,e},e.scale=function(e,t,n){var r=n[0],i=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]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,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){se=e,ue=t},e.setRTLTextPlugin=function(e,t,n){if(void 0===n&&(n=!1),"deferred"===Qr||"loading"===Qr||"loaded"===Qr)throw new Error("setRTLTextPlugin cannot be called multiple times.");ei=z.resolveURL(e),Qr="deferred",Jr=t,ni(),n||oi()},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=Ae,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=Bu,e.transformMat3=function(e,t,n){var r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e},e.transformMat4=fa,e.translate=function(e,t,n){var r,i,o,a,s,u,l,c,f,p,d,h,m=n[0],v=n[1],g=n[2];return t===e?(e[12]=t[0]*m+t[4]*v+t[8]*g+t[12],e[13]=t[1]*m+t[5]*v+t[9]*g+t[13],e[14]=t[2]*m+t[6]*v+t[10]*g+t[14],e[15]=t[3]*m+t[7]*v+t[11]*g+t[15]):(i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],e[0]=r=t[0],e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=u,e[6]=l,e[7]=c,e[8]=f,e[9]=p,e[10]=d,e[11]=h,e[12]=r*m+s*v+f*g+t[12],e[13]=i*m+u*v+p*g+t[13],e[14]=o*m+l*v+d*g+t[14],e[15]=a*m+c*v+h*g+t[15]),e},e.triggerPluginCompletionEvent=ti,e.uniqueId=h,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=Ar,e.validateStyle=kr,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.vectorTile=_s,e.version="1.15.2",e.warnOnce=E,e.webpSupported=N,e.window=a,e.wrap=f})),r(0,(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="[",i=0,o=e;i<o.length;i+=1)r+=t(o[i])+",";return r+"]"}for(var a=Object.keys(e).sort(),s="{",u=0;u<a.length;u++)s+=JSON.stringify(a[u])+":"+t(e[a[u]])+",";return s+"}"}function n(n){for(var r="",i=0,o=e.refProperties;i<o.length;i+=1)r+="/"+t(n[o[i]]);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 i=this,o=0,a=t;o<a.length;o+=1){var s=a[o];this._layerConfigs[s.id]=s;var u=this._layers[s.id]=e.createStyleLayer(s);u._featureFilter=e.featureFilter(u.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var l=0,c=r;l<c.length;l+=1){var f=c[l];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={},i=0;i<e.length;i++){var o=t&&t[e[i].id]||n(e[i]);t&&(t[e[i].id]=o);var a=r[o];a||(a=r[o]=[]),a.push(e[i])}var s=[];for(var u in r)s.push(r[u]);return s}(e.values(this._layerConfigs),this.keyCache);p<d.length;p+=1){var h=d[p].map((function(e){return i._layers[e.id]})),m=h[0];if("none"!==m.visibility){var v=m.source||"",g=this.familiesBySource[v];g||(g=this.familiesBySource[v]={});var y=m.sourceLayer||"_geojsonTileLayer",b=g[y];b||(b=g[y]=[]),b.push(h)}}};var i=function(t){var n={},r=[];for(var i in t){var o=t[i],a=n[i]={};for(var s in o){var u=o[+s];if(u&&0!==u.bitmap.width&&0!==u.bitmap.height){var l={x:0,y:0,w:u.bitmap.width+2,h:u.bitmap.height+2};r.push(l),a[s]={rect:l,metrics:u.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 m=d[+h];if(m&&0!==m.bitmap.width&&0!==m.bitmap.height){var v=n[p][h].rect;e.AlphaImage.copy(m.bitmap,f,{x:0,y:0},{x:v.x+1,y:v.y+1},m.bitmap)}}}this.image=f,this.positions=n};e.register("GlyphAtlas",i);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 a(t,n,r){for(var i=new e.EvaluationParameters(n),o=0,a=t;o<a.length;o+=1)a[o].recalculate(i,r)}function s(t,n){var r=e.getArrayBuffer(t.request,(function(t,r,i,o){t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(r)),rawData:r,cacheControl:i,expires:o})}));return function(){r.cancel(),n()}}o.prototype.parse=function(t,n,r,o,s){var u=this;this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;var l=new e.DictionaryCoder(Object.keys(t.layers).sort()),c=new e.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];var f,p,d,h,m={},v={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},g=n.familiesBySource[this.source];for(var y in g){var b=t.layers[y];if(b){1===b.version&&e.warnOnce('Vector tile source "'+this.source+'" layer "'+y+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var _=l.encode(y),x=[],w=0;w<b.length;w++){var E=b.feature(w),O=c.getId(E,y);x.push({feature:E,id:O,index:w,sourceLayerIndex:_})}for(var C=0,D=g[y];C<D.length;C+=1){var S=D[C],k=S[0];k.minzoom&&this.zoom<Math.floor(k.minzoom)||k.maxzoom&&this.zoom>=k.maxzoom||"none"!==k.visibility&&(a(S,this.zoom,r),(m[k.id]=k.createBucket({index:c.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(x,v,this.tileID.canonical),c.bucketLayerIDs.push(S.map((function(e){return e.id}))))}}}var A=e.mapObject(v.glyphDependencies,(function(e){return Object.keys(e).map(Number)}));Object.keys(A).length?o.send("getGlyphs",{uid:this.uid,stacks:A},(function(e,t){f||(f=e,p=t,M.call(u))})):p={};var T=Object.keys(v.iconDependencies);T.length?o.send("getImages",{icons:T,source:this.source,tileID:this.tileID,type:"icons"},(function(e,t){f||(f=e,d=t,M.call(u))})):d={};var P=Object.keys(v.patternDependencies);function M(){if(f)return s(f);if(p&&d&&h){var t=new i(p),n=new e.ImageAtlas(d,h);for(var o in m){var u=m[o];u instanceof e.SymbolBucket?(a(u.layers,this.zoom,r),e.performSymbolLayout(u,p,t.positions,d,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):u.hasPattern&&(u instanceof e.LineBucket||u instanceof e.FillBucket||u instanceof e.FillExtrusionBucket)&&(a(u.layers,this.zoom,r),u.addFeatures(v,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:e.values(m).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,M.call(u))})):h={},M.call(this)};var u=function(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};u.prototype.loadTile=function(t,n){var r=this,i=t.uid;this.loading||(this.loading={});var a=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),s=this.loading[i]=new o(t);s.abort=this.loadVectorData(t,(function(t,o){if(delete r.loading[i],t||!o)return s.status="done",r.loaded[i]=s,n(t);var u=o.rawData,l={};o.expires&&(l.expires=o.expires),o.cacheControl&&(l.cacheControl=o.cacheControl);var c={};if(a){var f=a.finish();f&&(c.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:u.slice(0)},r,l,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},u.prototype.reloadTile=function(e,t){var n=this,r=this.loaded,i=e.uid,o=this;if(r&&r[i]){var a=r[i];a.showCollisionBoxes=e.showCollisionBoxes;var s=function(e,r){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),t(e,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.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()},u.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var l=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,i=e.length,o=i-1;r<i;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,i=t.encoding,o=t.rawImageData,a=l&&o instanceof l?this.getImageData(o):o,s=new e.DEMData(r,a,i);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},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 i=r[n];t.push([new e.Point$1(i[0],i[1])])}return t}for(var o=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var u=[],l=0,c=s[a];l<c.length;l+=1){var f=c[l];u.push(new e.Point$1(f[0],f[1]))}o.push(u)}return o},h.prototype.toGeoJSON=function(e,t,n){return d.call(this,e,t,n)};var m=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t};m.prototype.feature=function(e){return new h(this._features[e])};var v=e.vectorTile.VectorTileFeature,g=y;function y(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}y.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],i=[],o=0;o<r.length;o++)i.push(new e.Point$1(r[o][0],r[o][1]));this.geometry.push(i)}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,i=-1/0,o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.length;s++){var u=a[s];t=Math.min(t,u.x),n=Math.max(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.y)}return[t,r,n,i]},b.prototype.toGeoJSON=v.prototype.toGeoJSON;var _=w,x=g;function w(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,E,e.layers[n])}(t,n),n.finish()}function E(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,O,r);var i=r.keys;for(n=0;n<i.length;n++)t.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)t.writeMessage(4,A,o[n])}function O(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,C,e),t.writeVarintField(3,n.type),t.writeMessage(4,k,n)}function C(e,t){var n=e.feature,r=e.keys,i=e.values,o=e.keycache,a=e.valuecache;for(var s in n.properties){var u=o[s];void 0===u&&(r.push(s),o[s]=u=r.length-1),t.writeVarint(u);var l=n.properties[s],c=typeof l;"string"!==c&&"boolean"!==c&&"number"!==c&&(l=JSON.stringify(l));var f=c+":"+l,p=a[f];void 0===p&&(i.push(l),a[f]=p=i.length-1),t.writeVarint(p)}}function D(e,t){return(t<<3)+(7&e)}function S(e){return e<<1^e>>31}function k(e,t){for(var n=e.loadGeometry(),r=e.type,i=0,o=0,a=n.length,s=0;s<a;s++){var u=n[s],l=1;1===r&&(l=u.length),t.writeVarint(D(1,l));for(var c=3===r?u.length-1:u.length,f=0;f<c;f++){1===f&&1!==r&&t.writeVarint(D(2,c-1));var p=u[f].x-i,d=u[f].y-o;t.writeVarint(S(p)),t.writeVarint(S(d)),i+=p,o+=d}3===r&&t.writeVarint(D(7,1))}}function A(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 T(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 M(e,t,n,r){var i=e-n,o=t-r;return i*i+o*o}_.fromVectorTileJs=w,_.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new g(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return w({layers:n})},_.GeoJSONWrapper=x;var j=function(e){return e[0]},I=function(e){return e[1]},F=function(e,t,n,r,i){void 0===t&&(t=j),void 0===n&&(n=I),void 0===r&&(r=64),void 0===i&&(i=Float64Array),this.nodeSize=r,this.points=e;for(var o=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(e.length),s=this.coords=new i(2*e.length),u=0;u<e.length;u++)a[u]=u,s[2*u]=t(e[u]),s[2*u+1]=n(e[u]);!function e(t,n,r,i,o,a){if(!(o-i<=r)){var s=i+o>>1;!function e(t,n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);e(t,n,r,Math.max(i,Math.floor(r-u*c/s+f)),Math.min(o,Math.floor(r+(s-u)*c/s+f)),a)}var p=n[2*r+a],d=i,h=o;for(T(t,n,i,r),n[2*o+a]>p&&T(t,n,i,o);d<h;){for(T(t,n,d,h),d++,h--;n[2*d+a]<p;)d++;for(;n[2*h+a]>p;)h--}n[2*i+a]===p?T(t,n,i,h):T(t,n,++h,o),h<=r&&(i=h+1),r<=h&&(o=h-1)}}(t,n,s,i,o,a%2),e(t,n,r,i,s-1,a+1),e(t,n,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};F.prototype.range=function(e,t,n,r){return function(e,t,n,r,i,o,a){for(var s,u,l=[0,e.length-1,0],c=[];l.length;){var f=l.pop(),p=l.pop(),d=l.pop();if(p-d<=a)for(var h=d;h<=p;h++)u=t[2*h+1],(s=t[2*h])>=n&&s<=i&&u>=r&&u<=o&&c.push(e[h]);else{var m=Math.floor((d+p)/2);u=t[2*m+1],(s=t[2*m])>=n&&s<=i&&u>=r&&u<=o&&c.push(e[m]);var v=(f+1)%2;(0===f?n<=s:r<=u)&&(l.push(d),l.push(m-1),l.push(v)),(0===f?i>=s:o>=u)&&(l.push(m+1),l.push(p),l.push(v))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},F.prototype.within=function(e,t,n){return function(e,t,n,r,i,o){for(var a=[0,e.length-1,0],s=[],u=i*i;a.length;){var l=a.pop(),c=a.pop(),f=a.pop();if(c-f<=o)for(var p=f;p<=c;p++)M(t[2*p],t[2*p+1],n,r)<=u&&s.push(e[p]);else{var d=Math.floor((f+c)/2),h=t[2*d],m=t[2*d+1];M(h,m,n,r)<=u&&s.push(e[d]);var v=(l+1)%2;(0===l?n-i<=h:r-i<=m)&&(a.push(f),a.push(d-1),a.push(v)),(0===l?n+i>=h:r+i>=m)&&(a.push(d+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)};var R={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},L=function(e){this.options=W(Object.create(R),e),this.trees=new Array(this.options.maxZoom+1)};function z(e,t,n,r,i){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function B(e,t){var n=e.geometry.coordinates,r=n[1];return{x:V(n[0]),y:H(r),zoom:1/0,index:t,parentId:-1}}function N(e){return{type:"Feature",id:e.id,properties:U(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 U(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 V(e){return e/360+.5}function H(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 G(e){return e.x}function q(e){return e.y}function $(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((e-n)*a+(t-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=e-n)*a+(s=t-r)*s}function Y(e,t,n,r){var i={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)Z(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)Z(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var i=0;i<t[r].length;i++)Z(e,t[r][i])}(i),i}function Z(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 i=t.geometry.coordinates,o=t.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],u=t.id;if(n.promoteId?u=t.properties[n.promoteId]:n.generateId&&(u=r||0),"Point"===o)K(i,s);else if("MultiPoint"===o)for(var l=0;l<i.length;l++)K(i[l],s);else if("LineString"===o)J(i,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(l=0;l<i.length;l++)J(i[l],s=[],a,!1),e.push(Y(u,"LineString",s,t.properties));return}Q(i,s,a,!1)}else if("Polygon"===o)Q(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(l=0;l<t.geometry.geometries.length;l++)X(e,{id:u,geometry:t.geometry.geometries[l],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(l=0;l<i.length;l++){var c=[];Q(i[l],c,a,!0),s.push(c)}}e.push(Y(u,o,s,t.properties))}}function K(e,t){t.push(ee(e[0])),t.push(te(e[1])),t.push(0)}function J(e,t,n,r){for(var i,o,a=0,s=0;s<e.length;s++){var u=ee(e[s][0]),l=te(e[s][1]);t.push(u),t.push(l),t.push(0),s>0&&(a+=r?(i*l-u*o)/2:Math.sqrt(Math.pow(u-i,2)+Math.pow(l-o,2))),i=u,o=l}var c=t.length-3;t[2]=1,function e(t,n,r,i){for(var o,a=i,s=r-n>>1,u=r-n,l=t[n],c=t[n+1],f=t[r],p=t[r+1],d=n+3;d<r;d+=3){var h=$(t[d],t[d+1],l,c,f,p);if(h>a)o=d,a=h;else if(h===a){var m=Math.abs(d-s);m<u&&(o=d,u=m)}}a>i&&(o-n>3&&e(t,n,o,i),t[o+2]=a,r-o>3&&e(t,o,r,i))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function Q(e,t,n,r){for(var i=0;i<e.length;i++){var o=[];J(e[i],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,i,o,a,s){if(r/=t,o>=(n/=t)&&a<r)return e;if(a<n||o>=r)return null;for(var u=[],l=0;l<e.length;l++){var c=e[l],f=c.geometry,p=c.type,d=0===i?c.minX:c.minY,h=0===i?c.maxX:c.maxY;if(d>=n&&h<r)u.push(c);else if(!(h<n||d>=r)){var m=[];if("Point"===p||"MultiPoint"===p)re(f,m,n,r,i);else if("LineString"===p)ie(f,m,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===p)ae(f,m,n,r,i,!1);else if("Polygon"===p)ae(f,m,n,r,i,!0);else if("MultiPolygon"===p)for(var v=0;v<f.length;v++){var g=[];ae(f[v],g,n,r,i,!0),g.length&&m.push(g)}if(m.length){if(s.lineMetrics&&"LineString"===p){for(v=0;v<m.length;v++)u.push(Y(c.id,p,m[v],c.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===m.length?(p="LineString",m=m[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===m.length?"Point":"MultiPoint"),u.push(Y(c.id,p,m,c.tags))}}}return u.length?u:null}function re(e,t,n,r,i){for(var o=0;o<e.length;o+=3){var a=e[o+i];a>=n&&a<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function ie(e,t,n,r,i,o,a){for(var s,u,l=oe(e),c=0===i?ue:le,f=e.start,p=0;p<e.length-3;p+=3){var d=e[p],h=e[p+1],m=e[p+2],v=e[p+3],g=e[p+4],y=0===i?d:h,b=0===i?v:g,_=!1;a&&(s=Math.sqrt(Math.pow(d-v,2)+Math.pow(h-g,2))),y<n?b>n&&(u=c(l,d,h,v,g,n),a&&(l.start=f+s*u)):y>r?b<r&&(u=c(l,d,h,v,g,r),a&&(l.start=f+s*u)):se(l,d,h,m),b<n&&y>=n&&(u=c(l,d,h,v,g,n),_=!0),b>r&&y<=r&&(u=c(l,d,h,v,g,r),_=!0),!o&&_&&(a&&(l.end=f+s*u),t.push(l),l=oe(e)),a&&(f+=s)}var x=e.length-3;d=e[x],h=e[x+1],m=e[x+2],(y=0===i?d:h)>=n&&y<=r&&se(l,d,h,m),x=l.length-3,o&&x>=3&&(l[x]!==l[0]||l[x+1]!==l[1])&&se(l,l[0],l[1],l[2]),l.length&&t.push(l)}function oe(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ae(e,t,n,r,i,o){for(var a=0;a<e.length;a++)ie(e[a],t,n,r,i,o,!1)}function se(e,t,n,r){e.push(t),e.push(n),e.push(r)}function ue(e,t,n,r,i,o){var a=(o-t)/(r-t);return e.push(o),e.push(n+(i-n)*a),e.push(1),a}function le(e,t,n,r,i,o){var a=(o-n)/(i-n);return e.push(t+(r-t)*a),e.push(o),e.push(1),a}function ce(e,t){for(var n=[],r=0;r<e.length;r++){var i,o=e[r],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)i=fe(o.geometry,t);else if("MultiLineString"===a||"Polygon"===a){i=[];for(var s=0;s<o.geometry.length;s++)i.push(fe(o.geometry[s],t))}else if("MultiPolygon"===a)for(i=[],s=0;s<o.geometry.length;s++){for(var u=[],l=0;l<o.geometry[s].length;l++)u.push(fe(o.geometry[s][l],t));i.push(u)}n.push(Y(o.id,a,i,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,i,o=1<<e.z,a=e.x,s=e.y;for(n=0;n<e.features.length;n++){var u=e.features[n],l=u.geometry,c=u.type;if(u.geometry=[],1===c)for(r=0;r<l.length;r+=2)u.geometry.push(de(l[r],l[r+1],t,o,a,s));else for(r=0;r<l.length;r++){var f=[];for(i=0;i<l[r].length;i+=2)f.push(de(l[r][i],l[r][i+1],t,o,a,s));u.geometry.push(f)}}return e.transformed=!0,e}function de(e,t,n,r,i,o){return[Math.round(n*(e*r-i)),Math.round(n*(t*r-o))]}function he(e,t,n,r,i){for(var o=t===i.maxZoom?0:i.tolerance/((1<<t)*i.extent),a={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},s=0;s<e.length;s++){a.numFeatures++,me(a,e[s],o,i);var u=e[s].minX,l=e[s].minY,c=e[s].maxX,f=e[s].maxY;u<a.minX&&(a.minX=u),l<a.minY&&(a.minY=l),c>a.maxX&&(a.maxX=c),f>a.maxY&&(a.maxY=f)}return a}function me(e,t,n,r){var i=t.geometry,o=t.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)ve(a,i,e,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)ve(a,i[s],e,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var u=0;u<i.length;u++){var l=i[u];for(s=0;s<l.length;s++)ve(a,l[s],e,n,!0,0===s)}if(a.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=i.start/i.size,c.mapbox_clip_end=i.end/i.size}var p={geometry:a,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 ve(e,t,n,r,i,o){var a=r*r;if(r>0&&t.size<(i?a:r))n.numPoints+=t.length/3;else{for(var s=[],u=0;u<t.length;u+=3)(0===r||t[u+2]>a)&&(n.numSimplified++,s.push(t[u]),s.push(t[u+1])),n.numPoints++;i&&function(e,t){for(var n=0,r=0,i=e.length,o=i-2;r<i;o=r,r+=2)n+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(n>0===t)for(r=0,i=e.length;r<i/2;r+=2){var a=e[r],s=e[r+1];e[r]=e[i-2-r],e[r+1]=e[i-1-r],e[i-2-r]=a,e[i-1-r]=s}}(s,o),e.push(s)}}function ge(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,i=ne(e,1,-1-n,n,0,-1,2,t),o=ne(e,1,1-n,2+n,0,-1,2,t);return(i||o)&&(r=ne(e,1,-n,1+n,0,-1,2,t)||[],i&&(r=ce(i,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 ye(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 i=new m(r.features),o=_(i);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:i,rawData:o.buffer})}L.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,i=t.maxZoom,o=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s=[],u=0;u<e.length;u++)e[u].geometry&&s.push(B(e[u],u));this.trees[i+1]=new F(s,G,q,o,Float32Array),n&&console.timeEnd(a);for(var l=i;l>=r;l--){var c=+Date.now();s=this._cluster(s,l),this.trees[l]=new F(s,G,q,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},L.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),i=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,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],t),s=this.getClusters([-180,r,i,o],t);return a.concat(s)}for(var u=this.trees[this._limitZoom(t)],l=[],c=0,f=u.range(V(n),H(o),V(i),H(r));c<f.length;c+=1){var p=u.points[f[c]];l.push(p.numPoints?N(p):this.points[p.index])}return l},L.prototype.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);var o=i.points[t];if(!o)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],u=0,l=i.within(o.x,o.y,a);u<l.length;u+=1){var c=i.points[l[u]];c.parentId===e&&s.push(c.numPoints?N(c):this.points[c.index])}if(0===s.length)throw new Error(r);return s},L.prototype.getLeaves=function(e,t,n){var r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r},L.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),o=this.options,a=o.radius/o.extent,s=(n-a)/i,u=(n+1+a)/i,l={features:[]};return this._addTileFeatures(r.range((t-a)/i,s,(t+1+a)/i,u),r.points,t,n,i,l),0===t&&this._addTileFeatures(r.range(1-a/i,s,1,u),r.points,i,n,i,l),t===i-1&&this._addTileFeatures(r.range(0,s,a/i,u),r.points,-1,n,i,l),l.features.length?l:null},L.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},L.prototype._appendLeaves=function(e,t,n,r,i){for(var o=0,a=this.getChildren(t);o<a.length;o+=1){var s=a[o],u=s.properties;if(u&&u.cluster?i+u.point_count<=r?i+=u.point_count:i=this._appendLeaves(e,u.cluster_id,n,r,i):i<r?i++:e.push(s),e.length===n)break}return i},L.prototype._addTileFeatures=function(e,t,n,r,i,o){for(var a=0,s=e;a<s.length;a+=1){var u=t[s[a]],l=u.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(u.x*i-n)),Math.round(this.options.extent*(u.y*i-r))]],tags:l?U(u):this.points[u.index].properties},f=void 0;l?f=u.id:this.options.generateId?f=u.index:this.points[u.index].id&&(f=this.points[u.index].id),void 0!==f&&(c.id=f),o.features.push(c)}},L.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))},L.prototype._cluster=function(e,t){for(var n=[],r=this.options,i=r.reduce,o=r.minPoints,a=r.radius/(r.extent*Math.pow(2,t)),s=0;s<e.length;s++){var u=e[s];if(!(u.zoom<=t)){u.zoom=t;for(var l=this.trees[t+1],c=l.within(u.x,u.y,a),f=u.numPoints||1,p=f,d=0,h=c;d<h.length;d+=1){var m=l.points[h[d]];m.zoom>t&&(p+=m.numPoints||1)}if(p>=o){for(var v=u.x*f,g=u.y*f,y=i&&f>1?this._map(u,!0):null,b=(s<<5)+(t+1)+this.points.length,_=0,x=c;_<x.length;_+=1){var w=l.points[x[_]];if(!(w.zoom<=t)){w.zoom=t;var E=w.numPoints||1;v+=w.x*E,g+=w.y*E,w.parentId=b,i&&(y||(y=this._map(u,!0)),i(y,this._map(w)))}}u.parentId=b,n.push(z(v/p,g/p,b,p,y))}else if(n.push(u),p>1)for(var O=0,C=c;O<C.length;O+=1){var D=l.points[C[O]];D.zoom<=t||(D.zoom=t,n.push(D))}}}return n},L.prototype._getOriginId=function(e){return e-this.points.length>>5},L.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},L.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},ge.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ge.prototype.splitTile=function(e,t,n,r,i,o,a){for(var s=[e,t,n,r],u=this.options,l=u.debug;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var c=1<<t,f=ye(t,n,r),p=this.tiles[f];if(!p&&(l>1&&console.time("creation"),p=this.tiles[f]=he(e,t,n,r,u),this.tileCoords.push({z:t,x:n,y:r}),l)){l>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,i){if(t===u.maxZoom||t===i)continue;var h=1<<i-t;if(n!==Math.floor(o/h)||r!==Math.floor(a/h))continue}else if(t===u.indexMaxZoom||p.numPoints<=u.indexMaxPoints)continue;if(p.source=null,0!==e.length){l>1&&console.time("clipping");var m,v,g,y,b,_,x=.5*u.buffer/u.extent,w=.5-x,E=.5+x,O=1+x;m=v=g=y=null,b=ne(e,c,n-x,n+E,0,p.minX,p.maxX,u),_=ne(e,c,n+w,n+O,0,p.minX,p.maxX,u),e=null,b&&(m=ne(b,c,r-x,r+E,1,p.minY,p.maxY,u),v=ne(b,c,r+w,r+O,1,p.minY,p.maxY,u),b=null),_&&(g=ne(_,c,r-x,r+E,1,p.minY,p.maxY,u),y=ne(_,c,r+w,r+O,1,p.minY,p.maxY,u),_=null),l>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(v||[],t+1,2*n,2*r+1),s.push(g||[],t+1,2*n+1,2*r),s.push(y||[],t+1,2*n+1,2*r+1)}}},ge.prototype.getTile=function(e,t,n){var r=this.options,i=r.extent,o=r.debug;if(e<0||e>24)return null;var a=1<<e,s=ye(e,t=(t%a+a)%a,n);if(this.tiles[s])return pe(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var u,l=e,c=t,f=n;!u&&l>0;)l--,c=Math.floor(c/2),f=Math.floor(f/2),u=this.tiles[ye(l,c,f)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,c,f),o>1&&console.time("drilling down"),this.splitTile(u.source,l,c,f,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?pe(this.tiles[s],i):null):null};var _e=function(t){function n(e,n,r,i){t.call(this,e,n,r,be),i&&(this.loadGeoJSON=i)}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 i=!!(r&&r.request&&r.request.collectResourceTiming)&&new e.RequestPerformance(r.request);this.loadGeoJSON(r,(function(o,a){if(o||!a)return n(o);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function e(t,n){var r,i=t&&t.type;if("FeatureCollection"===i)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===i)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===i)e(t.geometry,n);else if("Polygon"===i)f(t.coordinates,n);else if("MultiPolygon"===i)for(r=0;r<t.coordinates.length;r++)f(t.coordinates[r],n);return t}(a,!0);try{if(r.filter){var s=e.createExpression(r.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map((function(e){return e.key+": "+e.message})).join(", "));var u=a.features.filter((function(e){return s.value.evaluate({zoom:0},e)}));a={type:"FeatureCollection",features:u}}t._geoJSONIndex=r.cluster?new L(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var i={},o={},a={accumulated:null,zoom:0},s={properties:null},u=Object.keys(r),l=0,c=u;l<c.length;l+=1){var f=c[l],p=r[f],d=p[0],h=e.createExpression(p[1]),m=e.createExpression("string"==typeof d?[d,["accumulated"],["get",f]]:d);i[f]=h.value,o[f]=m.value}return n.map=function(e){s.properties=e;for(var t={},n=0,r=u;n<r.length;n+=1){var o=r[n];t[o]=i[o].evaluate(a,s)}return t},n.reduce=function(e,t){s.properties=t;for(var n=0,r=u;n<r.length;n+=1){var i=r[n];a.accumulated=e[i],e[i]=o[i].evaluate(a,s)}},n}(r)).load(a.features):function(e,t){return new ge(e,t)}(a,r.geojsonVtOptions)}catch(o){return n(o)}t.loaded={};var l={};if(i){var c=i.finish();c&&(l.resourceTiming={},l.resourceTiming[r.source]=JSON.parse(JSON.stringify(c)))}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}(u),xe=function(t){var n=this;this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:u,geojson:_e},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 xe.prototype.setReferrer=function(e,t){this.referrer=t},xe.prototype.setImages=function(e,t,n){for(var r in this.availableImages[e]=t,this.workerSources[e]){var i=this.workerSources[e][r];for(var o in i)i[o].availableImages=t}n()},xe.prototype.setLayers=function(e,t,n){this.getLayerIndex(e).replace(t),n()},xe.prototype.updateLayers=function(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()},xe.prototype.loadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)},xe.prototype.loadDEMTile=function(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)},xe.prototype.reloadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)},xe.prototype.abortTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)},xe.prototype.removeTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)},xe.prototype.removeDEMTile=function(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)},xe.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()}},xe.prototype.loadWorkerSource=function(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}},xe.prototype.syncRTLPluginState=function(t,n,r){try{e.plugin.setState(n);var i=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=i){this.self.importScripts(i);var o=e.plugin.isParsed();r(o?void 0:new Error("RTL Text Plugin failed to import scripts from "+i),o)}}catch(e){r(e.toString())}},xe.prototype.getAvailableImages=function(e){var t=this.availableImages[e];return t||(t=[]),t},xe.prototype.getLayerIndex=function(e){var t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t},xe.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,i){r.actor.send(t,n,i,e)}},this.getLayerIndex(e),this.getAvailableImages(e))),this.workerSources[e][t][n]},xe.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]},xe.prototype.enforceCacheSizeLimit=function(t,n){e.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xe(self)),xe})),r(0,(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 i=e.window.document.createElement(t);return void 0!==n&&(i.className=n),r&&r.appendChild(i),i},createNS:function(t,n){return e.window.document.createElementNS(t,n)}},r=e.window.document&&e.window.document.documentElement.style;function i(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,a=i(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&a&&(o=r[a],r[a]="none")},n.enableDrag=function(){r&&a&&(r[a]=o)};var s=i(["transform","WebkitTransform"]);n.setTransform=function(e,t){e.style[s]=t};var u=!1;try{var l=Object.defineProperty({},"passive",{get:function(){u=!0}});e.window.addEventListener("test",l,l),e.window.removeEventListener("test",l,l)}catch(e){u=!1}n.addEventListener=function(e,t,n,r){void 0===r&&(r={}),e.addEventListener(t,n,"passive"in r&&u?r:r.capture)},n.removeEventListener=function(e,t,n,r){void 0===r&&(r={}),e.removeEventListener(t,n,"passive"in r&&u?r:r.capture)};var c=function t(n){n.preventDefault(),n.stopPropagation(),e.window.removeEventListener("click",t,!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(),i=[],o=0;o<n.length;o++)i.push(new e.Point(n[o].clientX-r.left-t.clientLeft,n[o].clientY-r.top-t.clientTop));return i},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,i=e;r<i.length;r+=1){var o=i[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,i=e;r<i.length;r+=1)this.images[i[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={},i=0,o=t;i<o.length;i+=1){var a=o[i];this.images[a]||this.fire(new e.Event("styleimagemissing",{id:a}));var s=this.images[a];s?r[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:e.warnOnce('Image "'+a+'" 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 i={w:r.data.width+2,h:r.data.height+2,x:0,y:0},o=new e.ImagePosition(i,r);this.patterns[t]={bin:i,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),i=r.w,o=r.h,a=this.atlasImage;for(var s in a.resize({width:i||1,height:o||1}),this.patterns){var u=this.patterns[s].bin,l=u.x+1,c=u.y+1,f=this.images[s].data,p=f.width,d=f.height;e.RGBAImage.copy(f,a,{x:0,y:0},{x:l,y:c},{width:p,height:d}),e.RGBAImage.copy(f,a,{x:0,y:d-1},{x:l,y:c-1},{width:p,height:1}),e.RGBAImage.copy(f,a,{x:0,y:0},{x:l,y:c+d},{width:p,height:1}),e.RGBAImage.copy(f,a,{x:p-1,y:0},{x:l-1,y:c},{width:1,height:d}),e.RGBAImage.copy(f,a,{x:0,y:0},{x:l+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 i=this.images[r];f(i)&&this.updateImage(r,i)}}},n}(e.Evented),d=v,h=v,m=1e20;function v(e,t,n,r,i,o){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=i||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,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(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function g(e,t,n,r,i,o,a){for(var s=0;s<t;s++){for(var u=0;u<n;u++)r[u]=e[u*t+s];for(y(r,i,o,a,n),u=0;u<n;u++)e[u*t+s]=i[u]}for(u=0;u<n;u++){for(s=0;s<t;s++)r[s]=e[u*t+s];for(y(r,i,o,a,t),s=0;s<t;s++)e[u*t+s]=Math.sqrt(i[s])}}function y(e,t,n,r,i){n[0]=0,r[0]=-m,r[1]=+m;for(var o=1,a=0;o<i;o++){for(var s=(e[o]+o*o-(e[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);s<=r[a];)a--,s=(e[o]+o*o-(e[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);n[++a]=o,r[a]=s,r[a+1]=+m}for(o=0,a=0;o<i;o++){for(;r[a+1]<o;)a++;t[o]=(o-n[a])*(o-n[a])+e[n[a]]}}v.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 i=t.data[4*r+3]/255;this.gridOuter[r]=1===i?0:0===i?m:Math.pow(Math.max(0,.5-i),2),this.gridInner[r]=1===i?m:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(g(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),g(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,i=[];for(var o in t)for(var a=0,s=t[o];a<s.length;a+=1)i.push({stack:o,id:s[a]});e.asyncAll(i,(function(e,t){var n=e.stack,i=e.id,o=r.entries[n];o||(o=r.entries[n]={glyphs:{},requests:{},ranges:{}});var a=o.glyphs[i];if(void 0===a){if(a=r._tinySDF(o,n,i))return o.glyphs[i]=a,void t(null,{stack:n,id:i,glyph:a});var s=Math.floor(i/256);if(256*s>65535)t(new Error("glyphs > 65535 not supported"));else if(o.ranges[s])t(null,{stack:n,id:i,glyph:a});else{var u=o.requests[s];u||(u=o.requests[s]=[],b.loadGlyphRange(n,s,r.url,r.requestManager,(function(e,t){if(t){for(var n in t)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=t[+n]);o.ranges[s]=!0}for(var i=0,a=u;i<a.length;i+=1)(0,a[i])(e,t);delete o.requests[s]}))),u.push((function(e,r){e?t(e):r&&t(null,{stack:n,id:i,glyph:r[i]||null})}))}}else t(null,{stack:n,id:i,glyph:a})}),(function(e,t){if(e)n(e);else if(t){for(var r={},i=0,o=t;i<o.length;i+=1){var a=o[i],s=a.stack,u=a.id,l=a.glyph;(r[s]||(r[s]={}))[u]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.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 i=this.localIdeographFontFamily;if(i&&this._doesCharSupportLocalGlyph(r)){var o=t.tinySDF;if(!o){var a="400";/bold/i.test(n)?a="900":/medium/i.test(n)?a="500":/light/i.test(n)&&(a="200"),o=t.tinySDF=new b.TinySDF(24,3,8,.25,i,a)}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,i,o){var a=256*n,s=a+255,u=i.transformRequest(i.normalizeGlyphsURL(r).replace("{fontstack}",t).replace("{range}",a+"-"+s),e.ResourceType.Glyphs);e.getArrayBuffer(u,(function(t,n){if(t)o(t);else if(n){for(var r={},i=0,a=e.parseGlyphPBF(n);i<a.length;i+=1){var s=a[i];r[s.id]=s}o(null,r)}}))},b.TinySDF=d;var _=function(){this.specification=e.styleSpec.light.position};_.prototype.possiblyEvaluate=function(t,n){return e.sphericalToCartesian(t.expression.evaluate(n))},_.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 x=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new _,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(x),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 i=t[r];e.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),i):this._transitionable.setValue(r,i)}},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),E=function(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};E.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]},E.prototype.getDashRanges=function(e,t,n){var r=[],i=e.length%2==1?-e[e.length-1]*n:0,o=e[0]*n,a=!0;r.push({left:i,right:o,isDash:a,zeroLength:0===e[0]});for(var s=e[0],u=1;u<e.length;u++){var l=e[u];r.push({left:i=s*n,right:o=(s+=l)*n,isDash:a=!a,zeroLength:0===l})}return r},E.prototype.addRoundDash=function(e,t,n){for(var r=t/2,i=-n;i<=n;i++)for(var o=this.width*(this.nextRow+n+i),a=0,s=e[a],u=0;u<this.width;u++){u/s.right>1&&(s=e[++a]);var l=Math.abs(u-s.left),c=Math.abs(u-s.right),f=Math.min(l,c),p=void 0,d=i/n*(r+1);if(s.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+u]=Math.max(0,Math.min(255,p+128))}},E.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 i=e[0],o=e[e.length-1];i.isDash===o.isDash&&(i.left=o.left-this.width,o.right=i.right+this.width);for(var a=this.width*this.nextRow,s=0,u=e[s],l=0;l<this.width;l++){l/u.right>1&&(u=e[++s]);var c=Math.abs(l-u.left),f=Math.abs(l-u.right),p=Math.min(c,f);this.data[a+l]=Math.max(0,Math.min(255,(u.isDash?p:-p)+128))}},E.prototype.addDash=function(t,n){var r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a<t.length;a++)o+=t[a];if(0!==o){var s=this.width/o,u=this.getDashRanges(t,this.width,s);n?this.addRoundDash(u,s,r):this.addRegularDash(u)}var l={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:o};return this.nextRow+=i,this.dirty=!0,l},E.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 O=function t(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=e.uniqueId();for(var i=this.workerPool.acquire(this.id),o=0;o<i.length;o++){var a=new t.Actor(i[o],r,this.id);a.name="Worker "+o,this.actors.push(a)}};function C(t,n,r){var i=function(i,o){if(i)return r(i);if(o){var a=e.pick(e.extend(o,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);o.vector_layers&&(a.vectorLayers=o.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(e){return e.id}))),a.tiles=n.canonicalizeTileset(a,t.url),r(null,a)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),i):e.browser.frame((function(){return i(null,t)}))}O.prototype.broadcast=function(t,n,r){e.asyncAll(this.actors,(function(e,r){e.send(t,n,r)}),r=r||function(){})},O.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},O.prototype.remove=function(){this.actors.forEach((function(e){e.remove()})),this.actors=[],this.workerPool.release(this.id)},O.Actor=e.Actor;var D=function(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24};D.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]},D.prototype.contains=function(t){var n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<o&&t.y>=i&&t.y<a};var S=function(t){function n(n,r,i,o){if(t.call(this),this.id=n,this.dispatcher=i,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=C(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 D(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.setSourceProperty=function(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},n.prototype.setTiles=function(e){var t=this;return this.setSourceProperty((function(){t._options.tiles=e})),this},n.prototype.setUrl=function(e){var t=this;return this.setSourceProperty((function(){t.url=e,t._options.url=e})),this},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)),i={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,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",i,o.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,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),k=function(t){function n(n,r,i,o){t.call(this),this.id=n,this.dispatcher=i,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=C(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 D(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,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(i,e.ResourceType.Tile),(function(i,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(i)t.state="errored",n(i);else if(o){r.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=r.map.painter.context,s=a.gl;t.texture=r.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0}):(t.texture=new e.Texture(a,o,s.RGBA,{useMipmap:!0}),t.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.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),A=function(t){function n(n,r,i,o){t.call(this,n,r,i,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 i(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 a=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported()?o:e.browser.getImageData(o,1),s={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:a,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",s,i.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),i=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,u={};return u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),u},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}(k),T=function(t){function n(n,r,i,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=i.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 a=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*a,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*a,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,minPoints:Math.max(2,r.clusterMinPoints||2),extent:e.EXTENT,radius:(r.clusterRadius||50)*a,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties,filter:r.filter},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),i=this._data;"string"==typeof i?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(i),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(i),this.actor.send(this.type+".loadData",r,(function(e,i){n._removed||i&&i.abandoned||(n._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[n.id]&&(n._resourceTiming=i.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,i=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(i,{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"===i),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}]),M=function(t){function n(e,n,r,i){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(i),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(i,o){r._loaded=!0,i?r.fire(new e.ErrorEvent(i)):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,i=-1/0,o=-1/0,a=0,s=t;a<s.length;a+=1){var u=s[a];n=Math.min(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.x),o=Math.max(o,u.y)}var l=Math.max(i-n,o-r),c=Math.max(0,Math.floor(-Math.log(l)/Math.LN2)),f=Math.pow(2,c);return new e.CanonicalTileID(c,Math.floor((n+i)/2*f),Math.floor((r+o)/2*f))}(r),this.minzoom=this.maxzoom=this.tileID.z;var i=r.map((function(e){return n.tileID.getTilePoint(e)._round()}));return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[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 i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.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),j=function(t){function n(e,n,r,i){t.call(this,e,n,r,i),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,i=n.urls;r<i.length;r+=1)this.urls.push(this.map._requestManager.transformRequest(i[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 i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.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}(M),I=function(t){function n(n,r,i,o){t.call(this,n,r,i,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 i 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[i];"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}(M),F={vector:S,raster:k,"raster-dem":A,geojson:T,video:j,image:M,canvas:I};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 L(e,t,n,r,i,o){var a=function(e,t,n){if(e)for(var r=0,i=e;r<i.length;r+=1){var o=t[i[r]];if(o&&o.source===n&&"fill-extrusion"===o.type)return!0}else for(var a in t){var s=t[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(i&&i.layers,t,e.id),s=o.maxPitchScaleFactor(),u=e.tilesIn(r,s,a);u.sort(z);for(var l=[],c=0,f=u;c<f.length;c+=1){var p=f[c];l.push({wrappedTileID:p.tileID.wrapped().key,queryResults:p.tile.queryRenderedFeatures(t,n,e._state,p.queryGeometry,p.cameraQueryGeometry,p.scale,i,o,s,R(e.transform,p.tileID))})}var d=function(e){for(var t={},n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=o.queryResults,s=o.wrappedTileID,u=n[s]=n[s]||{};for(var l in a)for(var c=a[l],f=u[l]=u[l]||{},p=t[l]=t[l]||[],d=0,h=c;d<h.length;d+=1){var m=h[d];f[m.featureIndex]||(f[m.featureIndex]=!0,p.push(m))}}return t}(l);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 z(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 B=function(e,t){this.max=e,this.onRemove=t,this.reset()};B.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},B.prototype.add=function(e,t,n){var r=this,i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var o={value:t,timeout:void 0};if(void 0!==n&&(o.timeout=setTimeout((function(){r.remove(e,o)}),n)),this.data[i].push(o),this.order.push(i),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},B.prototype.has=function(e){return e.wrapped().key in this.data},B.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},B.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},B.prototype.getByKey=function(e){var t=this.data[e];return t?t[0].value:null},B.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},B.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),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this},B.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},B.prototype.filter=function(e){var t=[];for(var n in this.data)for(var r=0,i=this.data[n];r<i.length;r+=1){var o=i[r];e(o.value)||t.push(o)}for(var a=0,s=t;a<s.length;a+=1){var u=s[a];this.remove(u.value.tileID,u)}};var N=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};N.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},N.prototype.updateData=function(e){var t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)},N.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},V=function(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;var i=e.gl;this.buffer=i.createBuffer(),e.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(e){var t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)},V.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)}},V.prototype.setVertexAttribPointers=function(e,t,n){for(var r=0;r<this.attributes.length;r++){var i=this.attributes[r],o=t.attributes[i.name];void 0!==o&&e.vertexAttribPointer(o,i.components,e[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(n||0))}},V.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var H=function(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};H.prototype.get=function(){return this.current},H.prototype.set=function(e){},H.prototype.getDefault=function(){return this.default},H.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}(H),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 1},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)},t}(H),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},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)},t}(H),$=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}(H),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}(H),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(){return 255},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)},t}(H),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}(H),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(){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}(H),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}(H),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}(H),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}(H),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}(H),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}(H),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}(H),ie=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}(H),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}(H),ae=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}(H),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.BACK},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)},t}(H),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 this.gl.CCW},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)},t}(H),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 null},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)},t}(H),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}(H),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}(H),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}(H),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}(H),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}(H),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){if(e!==this.current||this.dirty){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},t}(H),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){var t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1},t}(H),ge=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}(H),ye=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}(H),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}(H),_e=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}(H),xe=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}(H),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}(xe),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.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}(xe),Oe=function(e,t,n,r){this.context=e,this.width=t,this.height=n;var i=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new we(e,i),r&&(this.depthAttachment=new Ee(e,i))};Oe.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 Ce=function(e,t,n){this.func=e,this.mask=t,this.range=n};Ce.ReadOnly=!1,Ce.ReadWrite=!0,Ce.disabled=new Ce(519,Ce.ReadOnly,[0,1]);var De=function(e,t,n,r,i,o){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o};De.disabled=new De({func:519,mask:0},0,0,7680,7680,7680);var Se=function(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n};Se.disabled=new Se(Se.Replace=[1,0],e.Color.transparent,[!1,!1,!1,!1]),Se.unblended=new Se(Se.Replace,e.Color.transparent,[!0,!0,!0,!0]),Se.alphaBlended=new Se([1,771],e.Color.transparent,[!0,!0,!0,!0]);var ke=function(e,t,n){this.enable=e,this.mode=t,this.frontFace=n};ke.disabled=new ke(!1,1029,2305),ke.backCCW=new ke(!0,1029,2305);var Ae=function(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new W(this),this.clearDepth=new G(this),this.clearStencil=new q(this),this.colorMask=new $(this),this.depthMask=new Y(this),this.stencilMask=new Z(this),this.stencilFunc=new X(this),this.stencilOp=new K(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 ie(this),this.blendEquation=new oe(this),this.cullFace=new ae(this),this.cullFaceSide=new se(this),this.frontFace=new ue(this),this.program=new le(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 me(this),this.bindElementBuffer=new ve(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ge(this),this.pixelStoreUnpack=new ye(this),this.pixelStoreUnpackPremultiplyAlpha=new be(this),this.pixelStoreUnpackFlipY=new _e(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"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)};Ae.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()},Ae.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},Ae.prototype.createIndexBuffer=function(e,t){return new N(this,e,t)},Ae.prototype.createVertexBuffer=function(e,t,n){return new V(this,e,t,n)},Ae.prototype.createRenderbuffer=function(e,t,n){var r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),i},Ae.prototype.createFramebuffer=function(e,t,n){return new Oe(this,e,t,n)},Ae.prototype.clear=function(e){var t=e.color,n=e.depth,r=this.gl,i=0;t&&(i|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(i|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(i)},Ae.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))},Ae.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)},Ae.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)},Ae.prototype.setColorMode=function(t){e.deepEqual(t.blendFunction,Se.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Ae.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Te=function(t){function n(n,r,i){var o=this;t.call(this),this.id=n,this.dispatcher=i,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,i){var o=new F[n.type](t,n,r,i);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,i,this),this._tiles={},this._cache=new B(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 i in this._tiles)this._isIdRenderable(i,t)&&r.push(this._tiles[i]);return t?r.sort((function(t,r){var i=t.tileID,o=r.tileID,a=new e.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle),s=new e.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle);return i.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.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,i){if(i)return t.state="errored",void(404!==i.status?this._source.fire(new e.ErrorEvent(i,{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 i=this.getTileByID(r);o(e,i),o(i,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,i=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+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),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 i in this._tiles){var o=this._tiles[i];if(!(r[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>t+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var u=a;u.overscaledZ>t;)if(e[(u=u.scaledTo(u.overscaledZ-1)).key]){r[a.key]=a;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 i=e.scaledTo(r),o=this._getLoadedTile(i);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),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)},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 i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),n[i.tileID.key]=i}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=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)})):(i=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&&(i=i.filter((function(e){return r._source.hasTile(e)})))):i=[];var o=t.coveringZoomLevel(this._source),a=Math.max(o-n.maxOverzooming,this._source.minzoom),s=Math.max(o+n.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(i,o);if(Me(this._source.type)){for(var l={},c={},f=0,p=Object.keys(u);f<p.length;f+=1){var d=p[f],h=u[d],m=this._tiles[d];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=e.browser.now())){var v=this.findLoadedParent(h,a);v&&(this._addTile(v.tileID),l[v.tileID.key]=v.tileID),c[d]=h}}for(var g in this._retainLoadedChildren(c,o,s,u),l)u[g]||(this._coveredTiles[g]=!0,u[g]=l[g])}for(var y in u)this._tiles[y].clearFadeHold();for(var b=0,_=e.keysDifference(this._tiles,u);b<_.length;b+=1){var x=_[b],w=this._tiles[x];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(x)}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={},i={},o=Math.max(t-n.maxOverzooming,this._source.minzoom),a=Math.max(t+n.maxUnderzooming,this._source.minzoom),s={},u=0,l=e;u<l.length;u+=1){var c=l[u],f=this._addTile(c);r[c.key]=c,f.hasData()||t<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,t,a,r);for(var p=0,d=e;p<d.length;p+=1){var h=d[p],m=this._tiles[h.key];if(!m.hasData()){if(t+1>this._source.maxzoom){var v=h.children(this._source.maxzoom)[0],g=this.getTile(v);if(g&&g.hasData()){r[v.key]=v;continue}}else{var y=h.children(this._source.maxzoom);if(r[y[0].key]&&r[y[1].key]&&r[y[2].key]&&r[y[3].key])continue}for(var b=m.wasRequested(),_=h.overscaledZ-1;_>=o;--_){var x=h.scaledTo(_);if(i[x.key])break;if(i[x.key]=!0,!(m=this.getTile(x))&&b&&(m=this._addTile(x)),m&&(r[x.key]=x,b=m.wasRequested(),m.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 i=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(i))break;r=i}for(var o=0,a=t;o<a.length;o+=1)this._loadedParentTiles[a[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 i=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(t):t,u=t.map((function(e){return a.pointCoordinate(e)})),l=s.map((function(e){return a.pointCoordinate(e)})),c=this.getIds(),f=1/0,p=1/0,d=-1/0,h=-1/0,m=0,v=l;m<v.length;m+=1){var g=v[m];f=Math.min(f,g.x),p=Math.min(p,g.y),d=Math.max(d,g.x),h=Math.max(h,g.y)}for(var y=function(t){var r=i._tiles[c[t]];if(!r.holdingForFade()){var s=r.tileID,m=Math.pow(2,a.zoom-r.tileID.overscaledZ),v=n*r.queryPadding*e.EXTENT/r.tileSize/m,g=[s.getTilePoint(new e.MercatorCoordinate(f,p)),s.getTilePoint(new e.MercatorCoordinate(d,h))];if(g[0].x-v<e.EXTENT&&g[0].y-v<e.EXTENT&&g[1].x+v>=0&&g[1].y+v>=0){var y=u.map((function(e){return s.getTilePoint(e)})),b=l.map((function(e){return s.getTilePoint(e)}));o.push({tile:r,tileID:s,queryGeometry:y,cameraQueryGeometry:b,scale:m})}}},b=0;b<c.length;b++)y(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,i=n;r<i.length;r+=1){var o=i[r];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Me(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 Me(e){return"raster"===e||"image"===e||"video"===e}function je(){return new e.window.Worker(Zi.workerUrl)}Te.maxOverzooming=10,Te.maxUnderzooming=3;var Ie="mapboxgl_preloaded_worker_pool",Fe=function(){this.active={}};Fe.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length<Fe.workerCount;)this.workers.push(new je);return this.active[e]=!0,this.workers.slice()},Fe.prototype.release=function(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((function(e){e.terminate()})),this.workers=null)},Fe.prototype.isPreloaded=function(){return!!this.active[Ie]},Fe.prototype.numActive=function(){return Object.keys(this.active).length};var Re,Le=Math.floor(e.browser.hardwareConcurrency/2);function ze(){return Re||(Re=new Fe),Re}function Be(t,n){var r={};for(var i in t)"ref"!==i&&(r[i]=t[i]);return e.refProperties.forEach((function(e){e in n&&(r[e]=n[e])})),r}function Ne(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]=Be(e[r],t[e[r].ref]));return e}Fe.workerCount=Math.max(Math.min(Le,6),1);var Ue={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 Ve(e,t,n){n.push({command:Ue.addSource,args:[e,t[e]]})}function He(e,t,n){t.push({command:Ue.removeSource,args:[e]}),n[e]=!0}function We(e,t,n,r){He(e,n,r),Ve(e,t,n)}function Ge(t,n,r){var i;for(i in t[r])if(t[r].hasOwnProperty(i)&&"data"!==i&&!e.deepEqual(t[r][i],n[r][i]))return!1;for(i in n[r])if(n[r].hasOwnProperty(i)&&"data"!==i&&!e.deepEqual(t[r][i],n[r][i]))return!1;return!0}function qe(t,n,r,i,o,a){var s;for(s in n=n||{},t=t||{})t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}));for(s in n)n.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}))}function $e(e){return e.id}function Ye(e,t){return e[t.id]=t,e}var Ze=function(e,t){this.reset(e,t)};Ze.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},Ze.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],i=t*this.paddedLength+this.padding;r<i&&n<this._distances.length;)r=this._distances[++n];var o=n-1,a=this._distances[o],s=r-a,u=s>0?(i-a)/s:0;return this.points[o].mult(1-u).add(this.points[n].mult(u))};var Xe=function(e,t,n){var r=this.boxCells=[],i=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([]),i.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 Ke(t,n,r,i,o){var a=e.create();return n?(e.scale(a,a,[1/o,1/o,1]),r||e.rotateZ(a,a,i.angle)):e.multiply(a,i.labelPlaneMatrix,t),a}function Je(t,n,r,i,o){if(n){var a=e.clone(t);return e.scale(a,a,[o,o,1]),r||e.rotateZ(a,a,-i.angle),a}return i.glCoordMatrix}function Qe(t,n){var r=[t.x,t.y,0,1];ct(r,r,n);var i=r[3];return{point:new e.Point(r[0]/i,r[1]/i),signedDistanceFromCamera:i}}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,i,o,a,s,u){var l=i?t.textSizeData:t.iconSizeData,c=e.evaluateSizeForZoom(l,r.transform.zoom),f=[256/r.width*2+1,256/r.height*2+1],p=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;p.clear();for(var d=t.lineVertexArray,h=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,m=r.transform.width/r.transform.height,v=!1,g=0;g<h.length;g++){var y=h.get(g);if(y.hidden||y.writingMode===e.WritingMode.vertical&&!v)lt(y.numGlyphs,p);else{v=!1;var b=[y.anchorX,y.anchorY,0,1];if(e.transformMat4(b,b,n),tt(b,f)){var _=et(r.transform.cameraToCenterDistance,b[3]),x=e.evaluateSizeForFeature(l,c,y),w=s?x/_:x*_,E=new e.Point(y.anchorX,y.anchorY),O=Qe(E,o).point,C={},D=ot(y,w,!1,u,n,o,a,t.glyphOffsetArray,d,p,O,E,C,m);v=D.useVertical,(D.notEnoughRoom||v||D.needsFlipping&&ot(y,w,!0,u,n,o,a,t.glyphOffsetArray,d,p,O,E,C,m).notEnoughRoom)&<(y.numGlyphs,p)}else lt(y.numGlyphs,p)}}i?t.text.dynamicLayoutVertexBuffer.updateData(p):t.icon.dynamicLayoutVertexBuffer.updateData(p)}function rt(e,t,n,r,i,o,a,s,u,l,c){var f=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,h=t.getoffsetX(s.glyphStartIndex),m=t.getoffsetX(f-1),v=st(e*h,n,r,i,o,a,s.segment,p,d,u,l,c);if(!v)return null;var g=st(e*m,n,r,i,o,a,s.segment,p,d,u,l,c);return g?{first:v,last:g}:null}function it(t,n,r,i){return t===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*i?{useVertical:!0}:(t===e.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function ot(t,n,r,i,o,a,s,u,l,c,f,p,d,h){var m,v=n/24,g=t.lineOffsetX*v,y=t.lineOffsetY*v;if(t.numGlyphs>1){var b=t.glyphStartIndex+t.numGlyphs,_=t.lineStartIndex,x=t.lineStartIndex+t.lineLength,w=rt(v,u,g,y,r,f,p,t,l,a,d);if(!w)return{notEnoughRoom:!0};var E=Qe(w.first.point,s).point,O=Qe(w.last.point,s).point;if(i&&!r){var C=it(t.writingMode,E,O,h);if(C)return C}m=[w.first];for(var D=t.glyphStartIndex+1;D<b-1;D++)m.push(st(v*u.getoffsetX(D),g,y,r,f,p,t.segment,_,x,l,a,d));m.push(w.last)}else{if(i&&!r){var S=Qe(p,o).point,k=t.lineStartIndex+t.segment+1,A=new e.Point(l.getx(k),l.gety(k)),T=Qe(A,o),P=T.signedDistanceFromCamera>0?T.point:at(p,A,S,1,o),M=it(t.writingMode,S,P,h);if(M)return M}var j=st(v*u.getoffsetX(t.glyphStartIndex),g,y,r,f,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,l,a,d);if(!j)return{notEnoughRoom:!0};m=[j]}for(var I=0,F=m;I<F.length;I+=1){var R=F[I];e.addDynamicAttributes(c,R.point,R.angle)}return{}}function at(e,t,n,r,i){var o=Qe(e.add(e.sub(t)._unit()),i).point,a=n.sub(o);return n.add(a._mult(r/a.mag()))}function st(t,n,r,i,o,a,s,u,l,c,f,p){var d=i?t-n:t+n,h=d>0?1:-1,m=0;i&&(h*=-1,m=Math.PI),h<0&&(m+=Math.PI);for(var v=h>0?u+s:u+s+1,g=o,y=o,b=0,_=0,x=Math.abs(d),w=[];b+_<=x;){if((v+=h)<u||v>=l)return null;if(y=g,w.push(g),void 0===(g=p[v])){var E=new e.Point(c.getx(v),c.gety(v)),O=Qe(E,f);if(O.signedDistanceFromCamera>0)g=p[v]=O.point;else{var C=v-h;g=at(0===b?a:new e.Point(c.getx(C),c.gety(C)),E,y,x-b+1,f)}}b+=_,_=y.dist(g)}var D=(x-b)/_,S=g.sub(y),k=S.mult(D)._add(y);k._add(S._unit()._perp()._mult(r*h));var A=m+Math.atan2(g.y-y.y,g.x-y.x);return w.push(k),{point:k,angle:A,path:w}}Xe.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Xe.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},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,i,o){this.boxCells[i].push(o)},Xe.prototype._insertCircleCell=function(e,t,n,r,i,o){this.circleCells[i].push(o)},Xe.prototype._query=function(e,t,n,r,i,o){if(n<0||e>this.width||r<0||t>this.height)return!i&&[];var a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var u=0;u<this.circleKeys.length;u++){var l=this.circles[3*u],c=this.circles[3*u+1],f=this.circles[3*u+2];a.push({key:this.circleKeys[u],x1:l-f,y1:c-f,x2:l+f,y2:c+f})}return o?a.filter(o):a}return this._forEachCell(e,t,n,r,this._queryCell,a,{hitTest:i,seenUids:{box:{},circle:{}}},o),i?a.length>0:a},Xe.prototype._queryCircle=function(e,t,n,r,i){var o=e-n,a=e+n,s=t-n,u=t+n;if(a<0||o>this.width||u<0||s>this.height)return!r&&[];var l=[];return this._forEachCell(o,s,a,u,this._queryCellCircle,l,{hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},i),r?l.length>0:l},Xe.prototype.query=function(e,t,n,r,i){return this._query(e,t,n,r,!1,i)},Xe.prototype.hitTest=function(e,t,n,r,i){return this._query(e,t,n,r,!0,i)},Xe.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},Xe.prototype._queryCell=function(e,t,n,r,i,o,a,s){var u=a.seenUids,l=this.boxCells[i];if(null!==l)for(var c=this.bboxes,f=0,p=l;f<p.length;f+=1){var d=p[f];if(!u.box[d]){u.box[d]=!0;var h=4*d;if(e<=c[h+2]&&t<=c[h+3]&&n>=c[h+0]&&r>=c[h+1]&&(!s||s(this.boxKeys[d]))){if(a.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 m=this.circleCells[i];if(null!==m)for(var v=this.circles,g=0,y=m;g<y.length;g+=1){var b=y[g];if(!u.circle[b]){u.circle[b]=!0;var _=3*b;if(this._circleAndRectCollide(v[_],v[_+1],v[_+2],e,t,n,r)&&(!s||s(this.circleKeys[b]))){if(a.hitTest)return o.push(!0),!0;var x=v[_],w=v[_+1],E=v[_+2];o.push({key:this.circleKeys[b],x1:x-E,y1:w-E,x2:x+E,y2:w+E})}}}},Xe.prototype._queryCellCircle=function(e,t,n,r,i,o,a,s){var u=a.circle,l=a.seenUids,c=this.boxCells[i];if(null!==c)for(var f=this.bboxes,p=0,d=c;p<d.length;p+=1){var h=d[p];if(!l.box[h]){l.box[h]=!0;var m=4*h;if(this._circleAndRectCollide(u.x,u.y,u.radius,f[m+0],f[m+1],f[m+2],f[m+3])&&(!s||s(this.boxKeys[h])))return o.push(!0),!0}}var v=this.circleCells[i];if(null!==v)for(var g=this.circles,y=0,b=v;y<b.length;y+=1){var _=b[y];if(!l.circle[_]){l.circle[_]=!0;var x=3*_;if(this._circlesCollide(g[x],g[x+1],g[x+2],u.x,u.y,u.radius)&&(!s||s(this.circleKeys[_])))return o.push(!0),!0}}},Xe.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var u=this._convertToXCellCoord(e),l=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),f=this._convertToYCellCoord(r),p=u;p<=c;p++)for(var d=l;d<=f;d++)if(i.call(this,e,t,n,r,this.xCellCount*d+p,o,a,s))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,i,o){var a=r-e,s=i-t,u=n+o;return u*u>a*a+s*s},Xe.prototype._circleAndRectCollide=function(e,t,n,r,i,o,a){var s=(o-r)/2,u=Math.abs(e-(r+s));if(u>s+n)return!1;var l=(a-i)/2,c=Math.abs(t-(i+l));if(c>l+n)return!1;if(u<=s||c<=l)return!0;var f=u-s,p=c-l;return f*f+p*p<=n*n};var ut=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function lt(e,t){for(var n=0;n<e;n++){var r=t.length;t.resize(r+4),t.float32.set(ut,3*r)}}function ct(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e[3]=n[3]*r+n[7]*i+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,i){var o=this.projectAndGetPerspectiveRatio(r,e.anchorPointX,e.anchorPointY),a=n*o.perspectiveRatio,s=e.x1*a+o.point.x,u=e.y1*a+o.point.y,l=e.x2*a+o.point.x,c=e.y2*a+o.point.y;return!this.isInsideGrid(s,u,l,c)||!t&&this.grid.hitTest(s,u,l,c,i)?{box:[],offscreen:!1}:{box:[s,u,l,c],offscreen:this.isOffscreen(s,u,l,c)}},ft.prototype.placeCollisionCircles=function(t,n,r,i,o,a,s,u,l,c,f,p,d){var h=[],m=new e.Point(n.anchorX,n.anchorY),v=Qe(m,a),g=et(this.transform.cameraToCenterDistance,v.signedDistanceFromCamera),y=(c?o/g:o*g)/e.ONE_EM,b=Qe(m,s).point,_=rt(y,i,n.lineOffsetX*y,n.lineOffsetY*y,!1,b,m,n,r,s,{}),x=!1,w=!1,E=!0;if(_){for(var O=.5*p*g+d,C=new e.Point(-100,-100),D=new e.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Ze,k=_.first,A=_.last,T=[],P=k.path.length-1;P>=1;P--)T.push(k.path[P]);for(var M=1;M<A.path.length;M++)T.push(A.path[M]);var j=2.5*O;if(u){var I=T.map((function(e){return Qe(e,u)}));T=I.some((function(e){return e.signedDistanceFromCamera<=0}))?[]:I.map((function(e){return e.point}))}var F=[];if(T.length>0){for(var R=T[0].clone(),L=T[0].clone(),z=1;z<T.length;z++)R.x=Math.min(R.x,T[z].x),R.y=Math.min(R.y,T[z].y),L.x=Math.max(L.x,T[z].x),L.y=Math.max(L.y,T[z].y);F=R.x>=C.x&&L.x<=D.x&&R.y>=C.y&&L.y<=D.y?[T]:L.x<C.x||R.x>D.x||L.y<C.y||R.y>D.y?[]:e.clipLine([T],C.x,C.y,D.x,D.y)}for(var B=0,N=F;B<N.length;B+=1){var U;S.reset(N[B],.25*O),U=S.length<=.5*O?1:Math.ceil(S.paddedLength/j)+1;for(var V=0;V<U;V++){var H=V/Math.max(U-1,1),W=S.lerp(H),G=W.x+100,q=W.y+100;h.push(G,q,O,0);var $=G-O,Y=q-O,Z=G+O,X=q+O;if(E=E&&this.isOffscreen($,Y,Z,X),w=w||this.isInsideGrid($,Y,Z,X),!t&&this.grid.hitTestCircle(G,q,O,f)&&(x=!0,!l))return{circles:[],offscreen:!1,collisionDetected:x}}}}return{circles:!l&&x||!w?[]:h,offscreen:E,collisionDetected:x}},ft.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,i=1/0,o=-1/0,a=-1/0,s=0,u=t;s<u.length;s+=1){var l=u[s],c=new e.Point(l.x+100,l.y+100);r=Math.min(r,c.x),i=Math.min(i,c.y),o=Math.max(o,c.x),a=Math.max(a,c.y),n.push(c)}for(var f={},p={},d=0,h=this.grid.query(r,i,o,a).concat(this.ignoredGrid.query(r,i,o,a));d<h.length;d+=1){var m=h[d],v=m.key;if(void 0===f[v.bucketInstanceId]&&(f[v.bucketInstanceId]={}),!f[v.bucketInstanceId][v.featureIndex]){var g=[new e.Point(m.x1,m.y1),new e.Point(m.x2,m.y1),new e.Point(m.x2,m.y2),new e.Point(m.x1,m.y2)];e.polygonIntersectsPolygon(n,g)&&(f[v.bucketInstanceId][v.featureIndex]=!0,void 0===p[v.bucketInstanceId]&&(p[v.bucketInstanceId]=[]),p[v.bucketInstanceId].push(v.featureIndex))}}return p},ft.prototype.insertCollisionBox=function(e,t,n,r,i){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:i},e[0],e[1],e[2],e[3])},ft.prototype.insertCollisionCircles=function(e,t,n,r,i){for(var o=t?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:i},s=0;s<e.length;s+=4)o.insertCircle(a,e[s],e[s+1],e[s+2])},ft.prototype.projectAndGetPerspectiveRatio=function(t,n,r){var i=[n,r,0,1];return ct(i,i,t),{point:new e.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[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,i){this.text=new dt(e?e.text:null,t,n,i),this.icon=new dt(e?e.icon:null,t,r,i)};ht.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var mt=function(e,t,n){this.text=e,this.icon=t,this.skipFade=n},vt=function(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]},gt=function(e,t,n,r,i){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i},yt=function(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}};function bt(t,n,r,i,o){var a=e.getAnchorAlignment(t),s=-(a.horizontalAlign-.5)*n,u=-(a.verticalAlign-.5)*r,l=e.evaluateVariableOffset(t,i);return new e.Point(s+l[0]*o,u+l[1]*o)}function _t(t,n,r,i,o,a){var s=t.x1,u=t.x2,l=t.y1,c=t.y2,f=t.anchorPointX,p=t.anchorPointY,d=new e.Point(n,r);return i&&d._rotate(o?a:-a),{x1:s+d.x,y1:l+d.y,x2:u+d.x,y2:c+d.y,anchorPointX:f,anchorPointY:p}}yt.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 xt=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 yt(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function wt(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}xt.prototype.getBucketParts=function(t,n,r,i){var o=r.getBucket(n),a=r.latestFeatureIndex;if(o&&a&&n.id===o.layerIds[0]){var s=r.collisionBoxArray,u=o.layers[0].layout,l=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/e.EXTENT,f=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),p="map"===u.get("text-pitch-alignment"),d="map"===u.get("text-rotation-alignment"),h=pt(r,1,this.transform.zoom),m=Ke(f,p,d,this.transform,h),v=null;if(p){var g=Je(f,p,d,this.transform,h);v=e.multiply([],this.transform.labelPlaneMatrix,g)}this.retainedQueryData[o.bucketInstanceId]=new gt(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID);var y={bucket:o,layout:u,posMatrix:f,textLabelPlaneMatrix:m,labelToScreenMatrix:v,scale:l,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(var b=0,_=o.sortKeyRanges;b<_.length;b+=1){var x=_[b];t.push({sortKey:x.sortKey,symbolInstanceStart:x.symbolInstanceStart,symbolInstanceEnd:x.symbolInstanceEnd,parameters:y})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:y})}},xt.prototype.attemptAnchorPlacement=function(e,t,n,r,i,o,a,s,u,l,c,f,p,d,h){var m,v=[f.textOffset0,f.textOffset1],g=bt(e,n,r,v,i),y=this.collisionIndex.placeCollisionBox(_t(t,g.x,g.y,o,a,this.transform.angle),c,s,u,l.predicate);if(!h||0!==this.collisionIndex.placeCollisionBox(_t(h,g.x,g.y,o,a,this.transform.angle),c,s,u,l.predicate).box.length)return y.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID].text&&(m=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:v,width:n,height:r,anchor:e,textBoxScale:i,prevAnchor:m},this.markUsedJustification(p,e,f,d),p.allowVerticalPlacement&&(this.markUsedOrientation(p,d,f),this.placedOrientations[f.crossTileID]=d),{shift:g,placedGlyphBoxes:y}):void 0},xt.prototype.placeLayerBucketPart=function(t,n,r){var i=this,o=t.parameters,a=o.bucket,s=o.layout,u=o.posMatrix,l=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,f=o.textPixelRatio,p=o.holdingForFade,d=o.collisionBoxArray,h=o.partiallyEvaluatedTextSize,m=o.collisionGroup,v=s.get("text-optional"),g=s.get("icon-optional"),y=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),_="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),E="viewport-y"===s.get("symbol-z-order"),O=y&&(b||!a.hasIconData()||g),C=b&&(y||!a.hasTextData()||v);!a.collisionArrays&&d&&a.deserializeCollisionBoxes(d);var D=function(t,o){if(!n[t.crossTileID])if(p)i.placements[t.crossTileID]=new mt(!1,!1,!1);else{var d,E=!1,D=!1,S=!0,k=null,A={box:null,offscreen:null},T={box:null,offscreen:null},P=null,M=null,j=0,I=0,F=0;o.textFeatureIndex?j=o.textFeatureIndex:t.useRuntimeCollisionCircles&&(j=t.featureIndex),o.verticalTextFeatureIndex&&(I=o.verticalTextFeatureIndex);var R=o.textBox;if(R){var L=function(n){var r=e.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&i.prevPlacement){var o=i.prevPlacement.placedOrientations[t.crossTileID];o&&(i.placedOrientations[t.crossTileID]=o,i.markUsedOrientation(a,r=o,t))}return r},z=function(n,r){if(a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var i=0,s=a.writingModes;i<s.length&&(s[i]===e.WritingMode.vertical?(A=r(),T=A):A=n(),!(A&&A.box&&A.box.length));i+=1);else A=n()};if(s.get("text-variable-anchor")){var B=s.get("text-variable-anchor");if(i.prevPlacement&&i.prevPlacement.variableOffsets[t.crossTileID]){var N=i.prevPlacement.variableOffsets[t.crossTileID];B.indexOf(N.anchor)>0&&(B=B.filter((function(e){return e!==N.anchor}))).unshift(N.anchor)}var U=function(e,n,r){for(var o=e.x2-e.x1,s=e.y2-e.y1,l=t.textBoxScale,c=w&&!b?n:null,p={box:[],offscreen:!1},d=y?2*B.length:B.length,h=0;h<d;++h){var v=i.attemptAnchorPlacement(B[h%B.length],e,o,s,l,_,x,f,u,m,h>=B.length,t,a,r,c);if(v&&(p=v.placedGlyphBoxes)&&p.box&&p.box.length){E=!0,k=v.shift;break}}return p};z((function(){return U(R,o.iconBox,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&!(A&&A.box&&A.box.length)&&t.numVerticalGlyphVertices>0&&n?U(n,o.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}})),A&&(E=A.box,S=A.offscreen);var V=L(A&&A.box);if(!E&&i.prevPlacement){var H=i.prevPlacement.variableOffsets[t.crossTileID];H&&(i.variableOffsets[t.crossTileID]=H,i.markUsedJustification(a,H.anchor,t,V))}}else{var W=function(e,n){var r=i.collisionIndex.placeCollisionBox(e,y,f,u,m.predicate);return r&&r.box&&r.box.length&&(i.markUsedOrientation(a,n,t),i.placedOrientations[t.crossTileID]=n),r};z((function(){return W(R,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?W(n,e.WritingMode.vertical):{box:null,offscreen:null}})),L(A&&A.box&&A.box.length)}}if(E=(d=A)&&d.box&&d.box.length>0,S=d&&d.offscreen,t.useRuntimeCollisionCircles){var G=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),q=e.evaluateSizeForFeature(a.textSizeData,h,G),$=s.get("text-padding");P=i.collisionIndex.placeCollisionCircles(y,G,a.lineVertexArray,a.glyphOffsetArray,q,u,l,c,r,x,m.predicate,t.collisionCircleDiameter,$),E=y||P.circles.length>0&&!P.collisionDetected,S=S&&P.offscreen}if(o.iconFeatureIndex&&(F=o.iconFeatureIndex),o.iconBox){var Y=function(e){var t=w&&k?_t(e,k.x,k.y,_,x,i.transform.angle):e;return i.collisionIndex.placeCollisionBox(t,b,f,u,m.predicate)};D=T&&T.box&&T.box.length&&o.verticalIconBox?(M=Y(o.verticalIconBox)).box.length>0:(M=Y(o.iconBox)).box.length>0,S=S&&M.offscreen}var Z=v||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,X=g||0===t.numIconVertices;if(Z||X?X?Z||(D=D&&E):E=D&&E:D=E=D&&E,E&&d&&d.box&&i.collisionIndex.insertCollisionBox(d.box,s.get("text-ignore-placement"),a.bucketInstanceId,T&&T.box&&I?I:j,m.ID),D&&M&&i.collisionIndex.insertCollisionBox(M.box,s.get("icon-ignore-placement"),a.bucketInstanceId,F,m.ID),P&&(E&&i.collisionIndex.insertCollisionCircles(P.circles,s.get("text-ignore-placement"),a.bucketInstanceId,j,m.ID),r)){var K=a.bucketInstanceId,J=i.collisionCircleArrays[K];void 0===J&&(J=i.collisionCircleArrays[K]=new vt);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)}i.placements[t.crossTileID]=new mt(E||O,D||C,S||a.justReloaded),n[t.crossTileID]=!0}};if(E)for(var S=a.getSortedSymbolIndexes(this.transform.angle),k=S.length-1;k>=0;--k){var A=S[k];D(a.symbolInstances.get(A),a.collisionArrays[A])}else for(var T=t.symbolInstanceStart;T<t.symbolInstanceEnd;T++)D(a.symbolInstances.get(T),a.collisionArrays[T]);if(r&&a.bucketInstanceId in this.collisionCircleArrays){var P=this.collisionCircleArrays[a.bucketInstanceId];e.invert(P.invProjMatrix,u),P.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1},xt.prototype.markUsedJustification=function(t,n,r,i){var o;o=i===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(n)];for(var a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];a<s.length;a+=1){var u=s[a];u>=0&&(t.text.placedSymbolArray.get(u).crossTileID=o>=0&&u!==o?0:r.crossTileID)}},xt.prototype.markUsedOrientation=function(t,n,r){for(var i=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a<s.length;a+=1)t.text.placedSymbolArray.get(s[a]).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)},xt.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,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(var s in this.placements){var u=this.placements[s],l=i[s];l?(this.opacities[s]=new ht(l,r,u.text,u.icon),n=n||u.text!==l.text.placed||u.icon!==l.icon.placed):(this.opacities[s]=new ht(null,r,u.text,u.icon,u.skipFade),n=n||u.text||u.icon)}for(var c in i){var f=i[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 a)this.placedOrientations[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.placedOrientations[h]=a[h]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},xt.prototype.updateLayerOpacities=function(e,t){for(var n={},r=0,i=t;r<i.length;r+=1){var o=i[r],a=o.getBucket(e);a&&o.latestFeatureIndex&&e.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,o.collisionBoxArray)}},xt.prototype.updateBucketOpacities=function(t,n,r){var i=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,a=new ht(null,0,!1,!1,!0),s=o.get("text-allow-overlap"),u=o.get("icon-allow-overlap"),l=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,s&&(u||!t.hasIconData()||o.get("icon-optional")),u&&(s||!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)},m=function(r){var o=t.symbolInstances.get(r),s=o.numHorizontalGlyphVertices,u=o.numVerticalGlyphVertices,m=o.crossTileID,v=i.opacities[m];n[m]?v=a:v||(i.opacities[m]=v=d),n[m]=!0;var g=o.numIconVertices>0,y=i.placedOrientations[o.crossTileID],b=y===e.WritingMode.vertical,_=y===e.WritingMode.horizontal||y===e.WritingMode.horizontalOnly;if(s>0||u>0){var x=Tt(v.text);h(t.text,s,b?Pt:x),h(t.text,u,_?Pt:x);var w=v.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||_?1:0);var E=i.variableOffsets[o.crossTileID];E&&i.markUsedJustification(t,E.anchor,o,y);var O=i.placedOrientations[o.crossTileID];O&&(i.markUsedJustification(t,"left",o,O),i.markUsedOrientation(t,O,o))}if(g){var C=Tt(v.icon),D=!(p&&o.verticalPlacedIconSymbolIndex&&b);o.placedIconSymbolIndex>=0&&(h(t.icon,o.numIconVertices,D?C:Pt),t.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=v.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(h(t.icon,o.numVerticalIconVertices,D?Pt:C),t.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var S=t.collisionArrays[r];if(S){var k=new e.Point(0,0);if(S.textBox||S.verticalTextBox){var A=!0;if(l){var T=i.variableOffsets[m];T?(k=bt(T.anchor,T.width,T.height,T.textOffset,T.textBoxScale),c&&k._rotate(f?i.transform.angle:-i.transform.angle)):A=!1}S.textBox&&wt(t.textCollisionBox.collisionVertexArray,v.text.placed,!A||b,k.x,k.y),S.verticalTextBox&&wt(t.textCollisionBox.collisionVertexArray,v.text.placed,!A||_,k.x,k.y)}var P=Boolean(!_&&S.verticalIconBox);S.iconBox&&wt(t.iconCollisionBox.collisionVertexArray,v.icon.placed,P,p?k.x:0,p?k.y:0),S.verticalIconBox&&wt(t.iconCollisionBox.collisionVertexArray,v.icon.placed,!P,p?k.x:0,p?k.y:0)}}},v=0;v<t.symbolInstances.length;v++)m(v);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 g=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=g.invProjMatrix,t.placementViewportMatrix=g.viewportMatrix,t.collisionCircleArray=g.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}},xt.prototype.symbolFadeChange=function(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},xt.prototype.zoomAdjustment=function(e){return Math.max(0,(this.transform.zoom-e)/1.5)},xt.prototype.hasTransitions=function(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration},xt.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},xt.prototype.setStale=function(){this.stale=!0};var Et=Math.pow(2,25),Ot=Math.pow(2,24),Ct=Math.pow(2,17),Dt=Math.pow(2,16),St=Math.pow(2,9),kt=Math.pow(2,8),At=Math.pow(2,1);function Tt(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*Et+t*Ot+n*Ct+t*Dt+n*St+t*kt+n*At+t}var Pt=0,Mt=function(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Mt.prototype.continuePlacement=function(e,t,n,r,i){for(var o=this._bucketParts;this._currentTileIndex<e.length;)if(t.getBucketParts(o,r,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())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++,i())return!0;return!1};var jt=function(e,t,n,r,i,o,a){this.placement=new xt(e,i,o,a),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};jt.prototype.isDone=function(){return this._done},jt.prototype.continuePlacement=function(t,n,r){for(var i=this,o=e.browser.now(),a=function(){var t=e.browser.now()-o;return!i._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=n[t[this._currentPlacementIndex]],u=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=u)&&(!s.maxzoom||s.maxzoom>u)){if(this._inProgressLayer||(this._inProgressLayer=new Mt(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},jt.prototype.commit=function(e){return this.placement.commit(e),this.placement};var It=512/e.EXTENT/2,Ft=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<t.length;r++){var i=t.get(r),o=i.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,e)})}};Ft.prototype.getScaledCoordinates=function(t,n){var r=It/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)}},Ft.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),i=0;i<e.length;i++){var o=e.get(i);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,t),u=0,l=a;u<l.length;u+=1){var c=l[u];if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.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 Lt=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Lt.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],i={};for(var o in r){var a=r[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),i[a.tileID.key]=a}this.indexes[n]=i}this.lng=e},Lt.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 i=this.usedCrossTileIDs[e.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>e.overscaledZ)for(var s in a){var u=a[s];u.tileID.isChildOf(e)&&u.findMatches(t.symbolInstances,e,i)}else{var l=a[e.scaledTo(Number(o)).key];l&&l.findMatches(t.symbolInstances,e,i)}}for(var c=0;c<t.symbolInstances.length;c++){var f=t.symbolInstances.get(c);f.crossTileID||(f.crossTileID=n.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Ft(e,t.symbolInstances,t.bucketInstanceId),!0},Lt.prototype.removeBucketCrossTileIDs=function(e,t){for(var n in t.indexedSymbolInstances)for(var r=0,i=t.indexedSymbolInstances[n];r<i.length;r+=1)delete this.usedCrossTileIDs[e][i[r].crossTileID]},Lt.prototype.removeStaleBuckets=function(e){var t=!1;for(var n in this.indexes){var r=this.indexes[n];for(var i in r)e[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],t=!0)}return t};var zt=function(){this.layerIndexes={},this.crossTileIDs=new Rt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};zt.prototype.addLayer=function(e,t,n){var r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new Lt);var i=!1,o={};r.handleWrapJump(n);for(var a=0,s=t;a<s.length;a+=1){var u=s[a],l=u.getBucket(e);l&&e.id===l.layerIds[0]&&(l.bucketInstanceId||(l.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(u.tileID,l,this.crossTileIDs)&&(i=!0),o[l.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(i=!0),i},zt.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 Bt=function(t,n){return e.emitValidationErrors(t,n&&n.filter((function(e){return"source.canvas"!==e.identifier})))},Nt=e.pick(Ue,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Ut=e.pick(Ue,["setCenter","setZoom","setBearing","setPitch"]),Vt=function(){var t={},n=e.styleSpec.$version;for(var r in e.styleSpec.$root){var i,o=e.styleSpec.$root[r];o.required&&null!=(i="version"===r?n:"array"===o.type?[]:{})&&(t[r]=i)}return t}(),Ht=function(t){function n(r,i){var o=this;void 0===i&&(i={}),t.call(this),this.map=r,this.dispatcher=new O(ze(),this),this.imageManager=new p,this.imageManager.setEventedParent(this),this.glyphManager=new b(r._requestManager,i.localIdeographFontFamily),this.lineAtlas=new E(256,512),this.crossTileSymbolIndex=new zt,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 a=this;this._rtlTextPluginCallback=n.registerForPluginStateChange((function(t){a.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 a.sourceCaches)a.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 i=o._layers[r];i.source===n.id&&o._validateLayer(i)}}}}))}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 i="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,i)}))},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(Vt,!1)},n.prototype._load=function(t,n){if(!n||!Bt(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 i=Ne(this.stylesheet.layers);this._order=i.map((function(e){return e.id})),this._layers={},this._serializedLayers={};for(var o=0,a=i;o<a.length;o+=1){var s=a[o];(s=e.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.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 i,o,a,s=e.browser.devicePixelRatio>1?"@2x":"",u=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(function(e,t){u=null,a||(a=e,i=t,c())})),l=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(function(e,t){l=null,a||(a=e,o=t,c())}));function c(){if(a)r(a);else if(i&&o){var t=e.browser.getImageData(o),n={};for(var s in i){var u=i[s],l=u.width,c=u.height,f=u.x,p=u.y,d=u.sdf,h=u.pixelRatio,m=u.stretchX,v=u.stretchY,g=u.content,y=new e.RGBAImage({width:l,height:c});e.RGBAImage.copy(t,y,{x:f,y:p},{x:0,y:0},{width:l,height:c}),n[s]={data:y,pixelRatio:h,sdf:d,stretchX:m,stretchY:v,content:g}}r(null,n)}}return{cancel:function(){u&&(u.cancel(),u=null),l&&(l.cancel(),l=null)}}}(t,this.map._requestManager,(function(t,r){if(n._spriteRequest=null,t)n.fire(new e.ErrorEvent(t));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);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 i=n.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+i.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 i=this._layers[r[n]];"custom"!==i.type&&t.push(i.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),i=Object.keys(this._removedLayers);for(var o in(r.length||i.length)&&this._updateWorkerLayers(r,i),this._updatedSources){var a=this._updatedSources[o];"reload"===a?this._reloadSource(o):"clear"===a&&this._clearSource(o)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}var u={};for(var l in this.sourceCaches){var c=this.sourceCaches[l];u[l]=c.used,c.used=!1}for(var f=0,p=this._order;f<p.length;f+=1){var d=this._layers[p[f]];d.recalculate(t,this._availableImages),!d.isHidden(t.zoom)&&d.source&&(this.sourceCaches[d.source].used=!0)}for(var h in u){var m=this.sourceCaches[h];u[h]!==m.used&&m.fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:h}))}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(),Bt(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=Ne(t.layers);var r=function(t,n){if(!t)return[{command:Ue.setStyle,args:[n]}];var r=[];try{if(!e.deepEqual(t.version,n.version))return[{command:Ue.setStyle,args:[n]}];e.deepEqual(t.center,n.center)||r.push({command:Ue.setCenter,args:[n.center]}),e.deepEqual(t.zoom,n.zoom)||r.push({command:Ue.setZoom,args:[n.zoom]}),e.deepEqual(t.bearing,n.bearing)||r.push({command:Ue.setBearing,args:[n.bearing]}),e.deepEqual(t.pitch,n.pitch)||r.push({command:Ue.setPitch,args:[n.pitch]}),e.deepEqual(t.sprite,n.sprite)||r.push({command:Ue.setSprite,args:[n.sprite]}),e.deepEqual(t.glyphs,n.glyphs)||r.push({command:Ue.setGlyphs,args:[n.glyphs]}),e.deepEqual(t.transition,n.transition)||r.push({command:Ue.setTransition,args:[n.transition]}),e.deepEqual(t.light,n.light)||r.push({command:Ue.setLight,args:[n.light]});var i={},o=[];!function(t,n,r,i){var o;for(o in n=n||{},t=t||{})t.hasOwnProperty(o)&&(n.hasOwnProperty(o)||He(o,r,i));for(o in n)n.hasOwnProperty(o)&&(t.hasOwnProperty(o)?e.deepEqual(t[o],n[o])||("geojson"===t[o].type&&"geojson"===n[o].type&&Ge(t,n,o)?r.push({command:Ue.setGeoJSONSourceData,args:[o,n[o].data]}):We(o,n,r,i)):Ve(o,n,r))}(t.sources,n.sources,o,i);var a=[];t.layers&&t.layers.forEach((function(e){i[e.source]?r.push({command:Ue.removeLayer,args:[e.id]}):a.push(e)})),r=r.concat(o),function(t,n,r){n=n||[];var i,o,a,s,u,l,c,f=(t=t||[]).map($e),p=n.map($e),d=t.reduce(Ye,{}),h=n.reduce(Ye,{}),m=f.slice(),v=Object.create(null);for(i=0,o=0;i<f.length;i++)h.hasOwnProperty(a=f[i])?o++:(r.push({command:Ue.removeLayer,args:[a]}),m.splice(m.indexOf(a,o),1));for(i=0,o=0;i<p.length;i++)m[m.length-1-i]!==(a=p[p.length-1-i])&&(d.hasOwnProperty(a)?(r.push({command:Ue.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-o),1)):o++,r.push({command:Ue.addLayer,args:[h[a],l=m[m.length-i]]}),m.splice(m.length-i,0,a),v[a]=!0);for(i=0;i<p.length;i++)if(s=d[a=p[i]],u=h[a],!v[a]&&!e.deepEqual(s,u))if(e.deepEqual(s.source,u.source)&&e.deepEqual(s["source-layer"],u["source-layer"])&&e.deepEqual(s.type,u.type)){for(c in qe(s.layout,u.layout,r,a,null,Ue.setLayoutProperty),qe(s.paint,u.paint,r,a,null,Ue.setPaintProperty),e.deepEqual(s.filter,u.filter)||r.push({command:Ue.setFilter,args:[a,u.filter]}),e.deepEqual(s.minzoom,u.minzoom)&&e.deepEqual(s.maxzoom,u.maxzoom)||r.push({command:Ue.setLayerZoomRange,args:[a,u.minzoom,u.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?qe(s[c],u[c],r,a,c.slice(6),Ue.setPaintProperty):e.deepEqual(s[c],u[c])||r.push({command:Ue.setLayerProperty,args:[a,c,u[c]]}));for(c in u)u.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?qe(s[c],u[c],r,a,c.slice(6),Ue.setPaintProperty):e.deepEqual(s[c],u[c])||r.push({command:Ue.setLayerProperty,args:[a,c,u[c]]}))}else r.push({command:Ue.removeLayer,args:[a]}),l=m[m.lastIndexOf(a)+1],r.push({command:Ue.addLayer,args:[u,l]})}(a,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Ue.setStyle,args:[n]}]}return r}(this.serialize(),t).filter((function(e){return!(e.command in Ut)}));if(0===r.length)return!1;var i=r.filter((function(e){return!(e.command in Nt)}));if(i.length>0)throw new Error("Unimplemented: "+i.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._afterImageUpdated(t)},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._afterImageUpdated(t)},n.prototype._afterImageUpdated=function(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),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 i=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 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 Te(t,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:i.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 i=t.id;if(this.getLayer(i))this.fire(new e.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var o;if("custom"===t.type){if(Bt(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateStyle.layer,"layers."+i,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o,this._removedLayers[i]&&o.source&&"custom"!==o.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.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 i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(i,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 i=this.getLayer(t);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):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 i=this.getLayer(t);if(i){if(!e.deepEqual(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(e.validateStyle.filter,"layers."+i.id+".filter",n,null,r)||(i.filter=e.clone$1(n),this._updateLayer(i)))}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,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,i),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,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,i)&&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,i=t.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var a=o.getSource().type;"geojson"===a&&i?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||i?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(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.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type,a="vector"===o?t.sourceLayer:void 0;"vector"!==o||a?n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(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.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,i=this.sourceCaches[n];if(void 0!==i){if("vector"!==i.getSource().type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),i.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={},i=[],o=this._order.length-1;o>=0;o--){var a=this._order[o];if(n(a)){r[a]=o;for(var s=0,u=e;s<u.length;s+=1){var l=u[s][a];if(l)for(var c=0,f=l;c<f.length;c+=1)i.push(f[c])}}}i.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 m=i.length-1;m>=0;m--){var v=i[m].feature;if(r[v.layer.id]<d)break;p.push(v),i.pop()}else for(var g=0,y=e;g<y.length;g+=1){var b=y[g][h];if(b)for(var _=0,x=b;_<x.length;_+=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 i={};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,a=n.layers;o<a.length;o+=1){var s=a[o],u=this._layers[s];if(!u)return this.fire(new e.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];i[u.source]=!0}}var l=[];for(var c in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!i[c]||l.push(L(this.sourceCaches[c],this._layers,this._serializedLayers,t,n,r));return this.placement&&l.push(function(e,t,n,r,i,o,a){for(var s={},u=o.queryRenderedSymbols(r),l=[],c=0,f=Object.keys(u).map(Number);c<f.length;c+=1)l.push(a[f[c]]);l.sort(z);for(var p=function(){var n=h[d],r=n.featureIndex.lookupSymbolFeatures(u[n.bucketInstanceId],t,n.bucketIndex,n.sourceLayerIndex,i.filter,i.layers,i.availableImages,e);for(var o in r){var a=s[o]=s[o]||[],l=r[o];l.sort((function(e,t){var r=n.featureSortOrder;if(r){var i=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex}));for(var c=0,f=l;c<f.length;c+=1)a.push(f[c])}},d=0,h=l;d<h.length;d+=1)p();var m=function(t){s[t].forEach((function(r){var i=r.feature,o=n[e[t].source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o}))};for(var v in s)m(v);return s}(this._layers,this._serializedLayers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(l)},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=[],i={},o=0;o<n.length;o++){var a=n[o],s=a.tileID.canonical.key;i[s]||(i[s]=!0,a.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(),i=!1;for(var o in t)if(!e.deepEqual(t[o],r[o])){i=!0;break}if(i){var a={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(a)}},n.prototype._validate=function(t,n,r,i,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&Bt(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.styleSpec},i)))},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,i,o){void 0===o&&(o=!1);for(var a=!1,s=!1,u={},l=0,c=this._order;l<c.length;l+=1){var f=this._layers[c[l]];if("symbol"===f.type){if(!u[f.source]){var p=this.sourceCaches[f.source];u[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,u[f.source],t.center.lng);a=a||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 jt(t,this._order,o,n,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,u),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(var h=0,m=this._order;h<m.length;h+=1){var v=this._layers[m[h]];"symbol"===v.type&&this.placement.updateLayerOpacities(v,u[v.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);Ht.getSourceType=function(e){return F[e]},Ht.setSourceType=function(e,t){F[e]=t},Ht.registerForPluginStateChange=e.registerForPluginStateChange;var Wt=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),Gt=yn("#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;}"),qt=yn("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);}"),$t=yn("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=yn("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);}"),Zt=yn("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=yn("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;}"),Kt=yn("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=yn("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=yn("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=yn("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=yn("#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=yn("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=yn("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;}"),on=yn("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);}"),an=yn("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;}"),sn=yn("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;}"),un=yn("#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 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 exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,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;}"),ln=yn("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=yn("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=yn("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 vec2 v_uv;\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,v_uv);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;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\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;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);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=yn("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=yn("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=yn("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;}"),mn=yn("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));}"),vn=yn("#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);}"),gn=yn("#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 yn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(i):i,s={};return{fragmentSource:e=e.replace(n,(function(e,t,n,r,i){return s[i]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),vertexSource:t=t.replace(n,(function(e,t,n,r,i){var o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var bn=Object.freeze({__proto__:null,prelude:Gt,background:qt,backgroundPattern:$t,circle:Yt,clippingMask:Zt,heatmap:Xt,heatmapTexture:Kt,collisionBox:Jt,collisionCircle:Qt,debug:en,fill:tn,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:un,hillshade:ln,line:cn,lineGradient:fn,linePattern:pn,lineSDF:dn,raster:hn,symbolIcon:mn,symbolSDF:vn,symbolTextAndIcon:gn}),_n=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function xn(e){for(var t=[],n=0;n<e.length;n++)if(null!==e[n]){var r=e[n].split(" ");t.push(r.pop())}return t}_n.prototype.bind=function(e,t,n,r,i,o,a,s){this.context=e;for(var u=this.boundPaintVertexBuffers.length!==r.length,l=0;!u&&l<r.length;l++)this.boundPaintVertexBuffers[l]!==r[l]&&(u=!0);e.extVertexArrayObject&&this.vao&&this.boundProgram===t&&this.boundLayoutVertexBuffer===n&&!u&&this.boundIndexBuffer===i&&this.boundVertexOffset===o&&this.boundDynamicVertexBuffer===a&&this.boundDynamicVertexBuffer2===s?(e.bindVertexArrayOES.set(this.vao),a&&a.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind()):this.freshBind(t,n,r,i,o,a,s)},_n.prototype.freshBind=function(e,t,n,r,i,o,a){var s,u=e.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=l.currentNumAttributes||0;for(var f=u;f<s;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),a&&a.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,i);for(var h=0,m=n;h<m.length;h+=1){var v=m[h];v.bind(),v.setVertexAttribPointers(c,e,i)}o&&(o.bind(),o.setVertexAttribPointers(c,e,i)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,e,i)),l.currentNumAttributes=u},_n.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var wn=function(e,t,n,r,i,o){var a=e.gl;this.program=a.createProgram();for(var s=xn(n.staticAttributes),u=r?r.getBinderAttributes():[],l=s.concat(u),c=n.staticUniforms?xn(n.staticUniforms):[],f=r?r.getBinderUniforms():[],p=[],d=0,h=c.concat(f);d<h.length;d+=1){var m=h[d];p.indexOf(m)<0&&p.push(m)}var v=r?r.defines():[];o&&v.push("#define OVERDRAW_INSPECTOR;");var g=v.concat(Gt.fragmentSource,n.fragmentSource).join("\n"),y=v.concat(Gt.vertexSource,n.vertexSource).join("\n"),b=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(b,g),a.compileShader(b),a.attachShader(this.program,b);var _=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(_,y),a.compileShader(_),a.attachShader(this.program,_),this.attributes={};var x={};this.numAttributes=l.length;for(var w=0;w<this.numAttributes;w++)l[w]&&(a.bindAttribLocation(this.program,w,l[w]),this.attributes[l[w]]=w);a.linkProgram(this.program),a.deleteShader(_),a.deleteShader(b);for(var E=0;E<p.length;E++){var O=p[E];if(O&&!x[O]){var C=a.getUniformLocation(this.program,O);C&&(x[O]=C)}}this.fixedUniforms=i(e,x),this.binderUniforms=r?r.getUniforms(e,x):[]}}};function En(e,t,n){var r=1/pt(n,1,t.transform.tileZoom),i=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,t.transform.tileZoom)/i,a=o*(n.tileID.canonical.x+n.tileID.wrap*i),s=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:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}wn.prototype.draw=function(e,t,n,r,i,o,a,s,u,l,c,f,p,d,h,m){var v,g=e.gl;if(!this.failedToCreate){for(var y in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(o),this.fixedUniforms)this.fixedUniforms[y].set(a[y]);d&&d.setUniforms(e,this.binderUniforms,f,{zoom:p});for(var b=(v={},v[g.LINES]=2,v[g.TRIANGLES]=3,v[g.LINE_STRIP]=1,v)[t],_=0,x=c.get();_<x.length;_+=1){var w=x[_],E=w.vaos||(w.vaos={});(E[s]||(E[s]=new _n)).bind(e,this,u,d?d.getPaintVertexBuffers():[],l,w.vertexOffset,h,m),g.drawElements(t,w.primitiveLength*b,g.UNSIGNED_SHORT,w.primitiveOffset*b*2)}}};var On=function(t,n,r,i){var o=n.style.light,a=o.properties.get("position"),s=[a.x,a.y,a.z],u=e.create$1();"viewport"===o.properties.get("anchor")&&e.fromRotation(u,-n.transform.angle),e.transformMat3(s,s,u);var l=o.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+r,u_opacity:i}},Cn=function(t,n,r,i,o,a,s){return e.extend(On(t,n,r,i),En(a,n,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8})},Dn=function(e){return{u_matrix:e}},Sn=function(t,n,r,i){return e.extend(Dn(t),En(r,n,i))},kn=function(e,t){return{u_matrix:e,u_world:t}},An=function(t,n,r,i,o){return e.extend(Sn(t,n,r,i),{u_world:o})},Tn=function(t,n,r,i){var o,a,s=t.transform;if("map"===i.paint.get("circle-pitch-alignment")){var u=pt(r,1,s.zoom);o=!0,a=[u,u]}else o=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:a}},Pn=function(e,t,n){var r=pt(n,1,t.zoom),i=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*i),t.pixelsToGLUnits[1]/(r*i)],u_overscale_factor:o}},Mn=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]}},jn=function(e,t,n){return void 0===n&&(n=1),{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}},In=function(e){return{u_matrix:e}},Fn=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:pt(t,1,n),u_intensity:r}},Rn=function(t,n,r){var i=t.transform;return{u_matrix:Un(t,n,r),u_ratio:1/pt(n,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Ln=function(t,n,r,i){return e.extend(Rn(t,n,r),{u_image:0,u_image_height:i})},zn=function(t,n,r,i){var o=t.transform,a=Nn(n,o);return{u_matrix:Un(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:[a,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Bn=function(t,n,r,i,o){var a=t.lineAtlas,s=Nn(n,t.transform),u="round"===r.layout.get("line-cap"),l=a.getDash(i.from,u),c=a.getDash(i.to,u),f=l.width*o.fromScale,p=c.width*o.toScale;return e.extend(Rn(t,n,r),{u_patternscale_a:[s/f,-l.height/2],u_patternscale_b:[s/p,-c.height/2],u_sdfgamma:a.width/(256*Math.min(f,p)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:l.y,u_tex_y_b:c.y,u_mix:o.t})};function Nn(e,t){return 1/pt(e,1,t.tileZoom)}function Un(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,i){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*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(a=i.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Hn(i.paint.get("raster-hue-rotate"))};var o,a};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 Wn,Gn=function(e,t,n,r,i,o,a,s,u,l){var c=i.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:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+u,u_pitch_with_map:+r,u_texsize:l,u_texture:0}},qn=function(t,n,r,i,o,a,s,u,l,c,f){var p=o.transform;return e.extend(Gn(t,n,r,i,o,a,s,u,l,c),{u_gamma_scale:i?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+f})},$n=function(t,n,r,i,o,a,s,u,l,c){return e.extend(qn(t,n,r,i,o,a,s,u,!0,l,!0),{u_texsize_icon:c,u_texture_icon:1})},Yn=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},Zn=function(t,n,r,i,o,a){return e.extend(function(e,t,n,r){var i=n.imageManager.getPattern(e.from.toString()),o=n.imageManager.getPattern(e.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,u=a.height,l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/l,f=c*(r.tileID.canonical.x+r.tileID.wrap*l),p=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,u],u_mix:t.t,u_pattern_size_a:i.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]}}(i,a,r,o),{u_matrix:t,u_opacity:n})},Xn={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_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),u_image_height:new e.Uniform1f(t,n.u_image_height)}},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 Kn(t,n,r,i,o,a,s){for(var u=t.context,l=u.gl,c=t.useProgram("collisionBox"),f=[],p=0,d=0,h=0;h<i.length;h++){var m=i[h],v=n.getTile(m),g=v.getBucket(r);if(g){var y=m.posMatrix;0===o[0]&&0===o[1]||(y=t.translatePosMatrix(m.posMatrix,v,o,a));var b=s?g.textCollisionBox:g.iconCollisionBox,_=g.collisionCircleArray;if(_.length>0){var x=e.create(),w=y;e.mul(x,g.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(x,x,g.placementViewportMatrix),f.push({circleArray:_,circleOffset:d,transform:w,invTransform:x}),d=p+=_.length/4}b&&c.draw(u,l.LINES,Ce.disabled,De.disabled,t.colorModeForRenderPass(),ke.disabled,Pn(y,t.transform,v),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,t.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&f.length){var E=t.useProgram("collisionCircle"),O=new e.StructArrayLayout2f1f2i16;O.resize(4*p),O._trim();for(var C=0,D=0,S=f;D<S.length;D+=1)for(var k=S[D],A=0;A<k.circleArray.length/4;A++){var T=4*A,P=k.circleArray[T+0],M=k.circleArray[T+1],j=k.circleArray[T+2],I=k.circleArray[T+3];O.emplace(C++,P,M,j,I,0),O.emplace(C++,P,M,j,I,1),O.emplace(C++,P,M,j,I,2),O.emplace(C++,P,M,j,I,3)}(!Wn||Wn.length<2*p)&&(Wn=function(t){var n=2*t,r=new e.StructArrayLayout3ui6;r.resize(n),r._trim();for(var i=0;i<n;i++){var o=6*i;r.uint16[o+0]=4*i+0,r.uint16[o+1]=4*i+1,r.uint16[o+2]=4*i+2,r.uint16[o+3]=4*i+2,r.uint16[o+4]=4*i+3,r.uint16[o+5]=4*i+0}return r}(p));for(var F=u.createIndexBuffer(Wn,!0),R=u.createVertexBuffer(O,e.collisionCircleLayout.members,!0),L=0,z=f;L<z.length;L+=1){var B=z[L],N=Mn(B.transform,B.invTransform,t.transform);E.draw(u,l.TRIANGLES,Ce.disabled,De.disabled,t.colorModeForRenderPass(),ke.disabled,N,r.id,R,F,e.SegmentVector.simpleSegment(0,2*B.circleOffset,B.circleArray.length,B.circleArray.length/2),null,t.transform.zoom,null,null,null)}R.destroy(),F.destroy()}}var Jn=e.identity(new Float32Array(16));function Qn(t,n,r,i,o,a){var s=e.getAnchorAlignment(t),u=-(s.horizontalAlign-.5)*n,l=-(s.verticalAlign-.5)*r,c=e.evaluateVariableOffset(t,i);return new e.Point((u/o+c[0])*a,(l/o+c[1])*a)}function er(t,n,r,i,o,a,s,u,l,c,f){var p=t.text.placedSymbolArray,d=t.text.dynamicLayoutVertexArray,h=t.icon.dynamicLayoutVertexArray,m={};d.clear();for(var v=0;v<p.length;v++){var g=p.get(v),y=g.hidden||!g.crossTileID||t.allowVerticalPlacement&&!g.placedOrientation?null:i[g.crossTileID];if(y){var b=new e.Point(g.anchorX,g.anchorY),_=Qe(b,r?u:s),x=et(a.cameraToCenterDistance,_.signedDistanceFromCamera),w=o.evaluateSizeForFeature(t.textSizeData,c,g)*x/e.ONE_EM;r&&(w*=t.tilePixelRatio/l);for(var E=Qn(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),O=r?Qe(b.add(E),s).point:_.point.add(n?E.rotate(-a.angle):E),C=t.allowVerticalPlacement&&g.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,D=0;D<g.numGlyphs;D++)e.addDynamicAttributes(d,O,C);f&&g.associatedIconIndex>=0&&(m[g.associatedIconIndex]={shiftedAnchor:O,angle:C})}else lt(g.numGlyphs,d)}if(f){h.clear();for(var S=t.icon.placedSymbolArray,k=0;k<S.length;k++){var A=S.get(k);if(A.hidden)lt(A.numGlyphs,h);else{var T=m[k];if(T)for(var P=0;P<A.numGlyphs;P++)e.addDynamicAttributes(h,T.shiftedAnchor,T.angle);else lt(A.numGlyphs,h)}}t.icon.dynamicLayoutVertexBuffer.updateData(h)}t.text.dynamicLayoutVertexBuffer.updateData(d)}function tr(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function nr(t,n,r,i,o,a,s,u,l,c,f,p){for(var d=t.context,h=d.gl,m=t.transform,v="map"===u,g="map"===l,y=v&&"point"!==r.layout.get("symbol-placement"),b=v&&!g&&!y,_=!r.layout.get("symbol-sort-key").isConstant(),x=!1,w=t.depthModeForSublayer(0,Ce.ReadOnly),E=r.layout.get("text-variable-anchor"),O=[],C=0,D=i;C<D.length;C+=1){var S=D[C],k=n.getTile(S),A=k.getBucket(r);if(A){var T=o?A.text:A.icon;if(T&&T.segments.get().length){var P=T.programConfigurations.get(r.id),M=o||A.sdfIcons,j=o?A.textSizeData:A.iconSizeData,I=g||0!==m.pitch,F=t.useProgram(tr(M,o,A),P),R=e.evaluateSizeForZoom(j,m.zoom),L=void 0,z=[0,0],B=void 0,N=void 0,U=null,V=void 0;if(o)B=k.glyphAtlasTexture,N=h.LINEAR,L=k.glyphAtlasTexture.size,A.iconsInText&&(z=k.imageAtlasTexture.size,U=k.imageAtlasTexture,V=I||t.options.rotating||t.options.zooming||"composite"===j.kind||"camera"===j.kind?h.LINEAR:h.NEAREST);else{var H=1!==r.layout.get("icon-size").constantOr(0)||A.iconsNeedLinear;B=k.imageAtlasTexture,N=M||t.options.rotating||t.options.zooming||H||I?h.LINEAR:h.NEAREST,L=k.imageAtlasTexture.size}var W=pt(k,1,t.transform.zoom),G=Ke(S.posMatrix,g,v,t.transform,W),q=Je(S.posMatrix,g,v,t.transform,W),$=E&&A.hasTextData(),Y="none"!==r.layout.get("icon-text-fit")&&$&&A.hasIconData();y&&nt(A,S.posMatrix,t,o,G,q,g,c);var Z=t.translatePosMatrix(S.posMatrix,k,a,s),X=y||o&&E||Y?Jn:G,K=t.translatePosMatrix(q,k,a,s,!0),J=M&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),Q={program:F,buffers:T,uniformValues:M?A.iconsInText?$n(j.kind,R,b,g,t,Z,X,K,L,z):qn(j.kind,R,b,g,t,Z,X,K,o,L,!0):Gn(j.kind,R,b,g,t,Z,X,K,o,L),atlasTexture:B,atlasTextureIcon:U,atlasInterpolation:N,atlasInterpolationIcon:V,isSDF:M,hasHalo:J};if(_&&A.canOverlap){x=!0;for(var ee=0,te=T.segments.get();ee<te.length;ee+=1){var ne=te[ee];O.push({segments:new e.SegmentVector([ne]),sortKey:ne.sortKey,state:Q})}}else O.push({segments:T.segments,sortKey:0,state:Q})}}}x&&O.sort((function(e,t){return e.sortKey-t.sortKey}));for(var re=0,ie=O;re<ie.length;re+=1){var oe=ie[re],ae=oe.state;if(d.activeTexture.set(h.TEXTURE0),ae.atlasTexture.bind(ae.atlasInterpolation,h.CLAMP_TO_EDGE),ae.atlasTextureIcon&&(d.activeTexture.set(h.TEXTURE1),ae.atlasTextureIcon&&ae.atlasTextureIcon.bind(ae.atlasInterpolationIcon,h.CLAMP_TO_EDGE)),ae.isSDF){var se=ae.uniformValues;ae.hasHalo&&(se.u_is_halo=1,rr(ae.buffers,oe.segments,r,t,ae.program,w,f,p,se)),se.u_is_halo=0}rr(ae.buffers,oe.segments,r,t,ae.program,w,f,p,ae.uniformValues)}}function rr(e,t,n,r,i,o,a,s,u){var l=r.context;i.draw(l,l.gl.TRIANGLES,o,a,s,ke.disabled,u,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function ir(e,t,n,r,i,o,a){var s,u,l,c,f,p=e.context.gl,d=n.paint.get("fill-pattern"),h=d&&d.constantOr(1),m=n.getCrossfadeParameters();a?(u=h&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=p.LINES):(u=h?"fillPattern":"fill",s=p.TRIANGLES);for(var v=0,g=r;v<g.length;v+=1){var y=g[v],b=t.getTile(y);if(!h||b.patternsLoaded()){var _=b.getBucket(n);if(_){var x=_.programConfigurations.get(n.id),w=e.useProgram(u,x);h&&(e.context.activeTexture.set(p.TEXTURE0),b.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),x.updatePaintBuffers(m));var E=d.constantOr(null);if(E&&b.imageAtlas){var O=b.imageAtlas,C=O.patternPositions[E.to.toString()],D=O.patternPositions[E.from.toString()];C&&D&&x.setConstantPatternPositions(C,D)}var S=e.translatePosMatrix(y.posMatrix,b,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){c=_.indexBuffer2,f=_.segments2;var k=[p.drawingBufferWidth,p.drawingBufferHeight];l="fillOutlinePattern"===u&&h?An(S,e,m,b,k):kn(S,k)}else c=_.indexBuffer,f=_.segments,l=h?Sn(S,e,m,b):Dn(S);w.draw(e.context,s,i,e.stencilModeForClipping(y),o,ke.disabled,l,n.id,_.layoutVertexBuffer,c,f,n.paint,e.transform.zoom,x)}}}}function or(e,t,n,r,i,o,a){for(var s=e.context,u=s.gl,l=n.paint.get("fill-extrusion-pattern"),c=l.constantOr(1),f=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity"),d=0,h=r;d<h.length;d+=1){var m=h[d],v=t.getTile(m),g=v.getBucket(n);if(g){var y=g.programConfigurations.get(n.id),b=e.useProgram(c?"fillExtrusionPattern":"fillExtrusion",y);c&&(e.context.activeTexture.set(u.TEXTURE0),v.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var _=l.constantOr(null);if(_&&v.imageAtlas){var x=v.imageAtlas,w=x.patternPositions[_.to.toString()],E=x.patternPositions[_.from.toString()];w&&E&&y.setConstantPatternPositions(w,E)}var O=e.translatePosMatrix(m.posMatrix,v,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),C=n.paint.get("fill-extrusion-vertical-gradient"),D=c?Cn(O,e,C,p,m,f,v):On(O,e,C,p);b.draw(s,s.gl.TRIANGLES,i,o,a,ke.backCCW,D,n.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,n.paint,e.transform.zoom,y)}}}function ar(t,n,r,i,o,a){var s=t.context,u=s.gl,l=n.fbo;if(l){var c=t.useProgram("hillshade");s.activeTexture.set(u.TEXTURE0),u.bindTexture(u.TEXTURE_2D,l.colorAttachment.get());var f=function(t,n,r){var i=r.paint.get("hillshade-shadow-color"),o=r.paint.get("hillshade-highlight-color"),a=r.paint.get("hillshade-accent-color"),s=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(s-=t.transform.angle);var u,l,c,f=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(n.tileID.toUnwrapped(),f),u_image:0,u_latrange:(u=n.tileID,l=Math.pow(2,u.canonical.z),c=u.canonical.y,[new e.MercatorCoordinate(0,c/l).toLngLat().lat,new e.MercatorCoordinate(0,(c+1)/l).toLngLat().lat]),u_light:[r.paint.get("hillshade-exaggeration"),s],u_shadow:i,u_highlight:o,u_accent:a}}(t,n,r);c.draw(s,u.TRIANGLES,i,o,a,ke.disabled,f,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function sr(t,n,r,i,o,a){var s=t.context,u=s.gl,l=n.dem;if(l&&l.data){var c=l.dim,f=l.stride,p=l.getPixels();if(s.activeTexture.set(u.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(f),n.demTexture){var d=n.demTexture;d.update(p,{premultiply:!1}),d.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new e.Texture(s,p,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);s.activeTexture.set(u.TEXTURE0);var h=n.fbo;if(!h){var m=new e.Texture(s,{width:c,height:c,data:null},u.RGBA);m.bind(u.LINEAR,u.CLAMP_TO_EDGE),(h=n.fbo=s.createFramebuffer(c,c,!0)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(h.framebuffer),s.viewport.set([0,0,c,c]),t.useProgram("hillshadePrepare").draw(s,u.TRIANGLES,i,o,a,ke.disabled,function(t,n){var r=n.stride,i=e.create();return e.ortho(i,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(i,i,[0,-e.EXTENT,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:n.getUnpackVector()}}(n.tileID,l),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function ur(t,n,r,i,o){var a=i.paint.get("raster-fade-duration");if(a>0){var s=e.browser.now(),u=(s-t.timeAdded)/a,l=n?(s-n.timeAdded)/a:-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?u:1-l,0,1);return t.refreshedUponExpiration&&u>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}var lr=new e.Color(1,0,0,1),cr=new e.Color(0,1,0,1),fr=new e.Color(0,0,1,1),pr=new e.Color(1,0,1,1),dr=new e.Color(0,1,1,1);function hr(e,t,n,r){vr(e,0,t+n/2,e.transform.width,n,r)}function mr(e,t,n,r){vr(e,t-n/2,0,n,e.transform.height,r)}function vr(t,n,r,i,o,a){var s=t.context,u=s.gl;u.enable(u.SCISSOR_TEST),u.scissor(n*e.browser.devicePixelRatio,r*e.browser.devicePixelRatio,i*e.browser.devicePixelRatio,o*e.browser.devicePixelRatio),s.clear({color:a}),u.disable(u.SCISSOR_TEST)}function gr(t,n,r){var i=t.context,o=i.gl,a=r.posMatrix,s=t.useProgram("debug"),u=Ce.disabled,l=De.disabled,c=t.colorModeForRenderPass();i.activeTexture.set(o.TEXTURE0),t.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(i,o.LINE_STRIP,u,l,c,ke.disabled,jn(a,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,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=" => "+r.overscaledZ),function(e,t){e.initDebugOverlayCanvas();var n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,m+" "+p+"kb"),s.draw(i,o.TRIANGLES,u,l,Se.alphaBlended,ke.disabled,jn(a,e.Color.transparent,h),"$debug",t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}var yr={symbol:function(t,n,r,i,o){if("translucent"===t.renderPass){var a=De.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,o,a,s){for(var u=n.transform,l="map"===o,c="map"===a,f=0,p=t;f<p.length;f+=1){var d=p[f],h=i.getTile(d),m=h.getBucket(r);if(m&&m.text&&m.text.segments.get().length){var v=e.evaluateSizeForZoom(m.textSizeData,u.zoom),g=pt(h,1,n.transform.zoom),y=Ke(d.posMatrix,c,l,n.transform,g),b="none"!==r.layout.get("icon-text-fit")&&m.hasIconData();if(v){var _=Math.pow(2,u.zoom-h.tileID.overscaledZ);er(m,l,c,s,e.symbolSize,u,y,d.posMatrix,_,v,b)}}}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&nr(t,n,r,i,!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"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&nr(t,n,r,i,!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"),a,s),n.map.showCollisionBoxes&&(Kn(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Kn(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(t,n,r,i){if("translucent"===t.renderPass){var o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),u=!r.layout.get("circle-sort-key").isConstant();if(0!==o.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var l=t.context,c=l.gl,f=t.depthModeForSublayer(0,Ce.ReadOnly),p=De.disabled,d=t.colorModeForRenderPass(),h=[],m=0;m<i.length;m++){var v=i[m],g=n.getTile(v),y=g.getBucket(r);if(y){var b=y.programConfigurations.get(r.id),_={programConfiguration:b,program:t.useProgram("circle",b),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Tn(t,v,g,r)};if(u)for(var x=0,w=y.segments.get();x<w.length;x+=1){var E=w[x];h.push({segments:new e.SegmentVector([E]),sortKey:E.sortKey,state:_})}else h.push({segments:y.segments,sortKey:0,state:_})}}u&&h.sort((function(e,t){return e.sortKey-t.sortKey}));for(var O=0,C=h;O<C.length;O+=1){var D=C[O],S=D.state;S.program.draw(l,c.TRIANGLES,f,p,d,ke.disabled,S.uniformValues,r.id,S.layoutVertexBuffer,S.indexBuffer,D.segments,r.paint,t.transform.zoom,S.programConfiguration)}}}},heatmap:function(t,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var o=t.context,a=o.gl,s=De.disabled,u=new Se([a.ONE,a.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 i=n.heatmapFbo;if(i)r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),e.bindFramebuffer.set(i.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),i=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1),function(e,t,n,r){var i=e.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t.width/4,t.height/4,0,i.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(e,t,o,i)}}(o,t,r),o.clear({color:e.Color.transparent});for(var l=0;l<i.length;l++){var c=i[l];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,a.TRIANGLES,Ce.disabled,s,u,ke.disabled,Fn(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,i=r.gl,o=n.heatmapFbo;if(o){r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);var a=n.colorRampTexture;a||(a=n.colorRampTexture=new e.Texture(r,n.colorRamp,i.RGBA)),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Ce.disabled,De.disabled,t.colorModeForRenderPass(),ke.disabled,function(t,n,r,i){var o=e.create();e.ortho(o,0,t.width,t.height,0,0,1);var a=t.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.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,i){if("translucent"===t.renderPass){var o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0!==o.constantOr(1)&&0!==a.constantOr(1))for(var s=t.depthModeForSublayer(0,Ce.ReadOnly),u=t.colorModeForRenderPass(),l=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":l?"lineSDF":p?"lineGradient":"line",m=t.context,v=m.gl,g=!0,y=0,b=i;y<b.length;y+=1){var _=b[y],x=n.getTile(_);if(!f||x.patternsLoaded()){var w=x.getBucket(r);if(w){var E=w.programConfigurations.get(r.id),O=t.context.program.get(),C=t.useProgram(h,E),D=g||C.program!==O,S=c.constantOr(null);if(S&&x.imageAtlas){var k=x.imageAtlas,A=k.patternPositions[S.to.toString()],T=k.patternPositions[S.from.toString()];A&&T&&E.setConstantPatternPositions(A,T)}var P=f?zn(t,x,r,d):l?Bn(t,x,r,l,d):p?Ln(t,x,r,w.lineClipsArray.length):Rn(t,x,r);if(f)m.activeTexture.set(v.TEXTURE0),x.imageAtlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE),E.updatePaintBuffers(d);else if(l&&(D||t.lineAtlas.dirty))m.activeTexture.set(v.TEXTURE0),t.lineAtlas.bind(m);else if(p){var M=w.gradients[r.id],j=M.texture;if(r.gradientVersion!==M.version){var I=256;if(r.stepInterpolant){var F=n.getSource().maxzoom,R=_.canonical.z===F?Math.ceil(1<<t.transform.maxZoom-_.canonical.z):1;I=e.clamp(e.nextPowerOfTwo(w.maxLineLength/e.EXTENT*1024*R),256,m.maxTextureSize)}M.gradient=e.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:I,image:M.gradient||void 0,clips:w.lineClipsArray}),M.texture?M.texture.update(M.gradient):M.texture=new e.Texture(m,M.gradient,v.RGBA),M.version=r.gradientVersion,j=M.texture}m.activeTexture.set(v.TEXTURE0),j.bind(r.stepInterpolant?v.NEAREST:v.LINEAR,v.CLAMP_TO_EDGE)}C.draw(m,v.TRIANGLES,s,t.stencilModeForClipping(_),u,ke.disabled,P,r.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,r.paint,t.transform.zoom,E,w.layoutVertexBuffer2),g=!1}}}}},fill:function(t,n,r,i){var o=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=t.colorModeForRenderPass(),u=r.paint.get("fill-pattern"),l=t.opaquePassEnabledForLayer()&&!u.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===l){var c=t.depthModeForSublayer(1,"opaque"===t.renderPass?Ce.ReadWrite:Ce.ReadOnly);ir(t,n,r,i,c,s,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){var f=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,Ce.ReadOnly);ir(t,n,r,i,f,s,!0)}}},"fill-extrusion":function(e,t,n,r){var i=n.paint.get("fill-extrusion-opacity");if(0!==i&&"translucent"===e.renderPass){var o=new Ce(e.context.gl.LEQUAL,Ce.ReadWrite,e.depthRangeFor3D);if(1!==i||n.paint.get("fill-extrusion-pattern").constantOr(1))or(e,t,n,r,o,De.disabled,Se.disabled),or(e,t,n,r,o,e.stencilModeFor3D(),e.colorModeForRenderPass());else{var a=e.colorModeForRenderPass();or(e,t,n,r,o,De.disabled,a)}}},hillshade:function(e,t,n,r){if("offscreen"===e.renderPass||"translucent"===e.renderPass){for(var i=e.context,o=e.depthModeForSublayer(0,Ce.ReadOnly),a=e.colorModeForRenderPass(),s="translucent"===e.renderPass?e.stencilConfigForOverlap(r):[{},r],u=s[0],l=0,c=s[1];l<c.length;l+=1){var f=c[l],p=t.getTile(f);p.needsHillshadePrepare&&"offscreen"===e.renderPass?sr(e,p,n,o,De.disabled,a):"translucent"===e.renderPass&&ar(e,p,n,o,u[f.overscaledZ],a)}i.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 i=e.context,o=i.gl,a=t.getSource(),s=e.useProgram("raster"),u=e.colorModeForRenderPass(),l=a instanceof M?[{},r]:e.stencilConfigForOverlap(r),c=l[0],f=l[1],p=f[f.length-1].overscaledZ,d=!e.options.moving,h=0,m=f;h<m.length;h+=1){var v=m[h],g=e.depthModeForSublayer(v.overscaledZ-p,1===n.paint.get("raster-opacity")?Ce.ReadWrite:Ce.ReadOnly,o.LESS),y=t.getTile(v),b=e.transform.calculatePosMatrix(v.toUnwrapped(),d);y.registerFadeDuration(n.paint.get("raster-fade-duration"));var _=t.findLoadedParent(v,0),x=ur(y,_,t,n,e.transform),w=void 0,E=void 0,O="nearest"===n.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;i.activeTexture.set(o.TEXTURE0),y.texture.bind(O,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(o.TEXTURE1),_?(_.texture.bind(O,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,_.tileID.overscaledZ-y.tileID.overscaledZ),E=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(O,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var C=Vn(b,E||[0,0],w||1,x,n);a instanceof M?s.draw(i,o.TRIANGLES,g,De.disabled,u,ke.disabled,C,n.id,a.boundsBuffer,e.quadTriangleIndexBuffer,a.boundsSegments):s.draw(i,o.TRIANGLES,g,c[v.overscaledZ],u,ke.disabled,C,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,t,n){var r=n.paint.get("background-color"),i=n.paint.get("background-opacity");if(0!==i){var o=e.context,a=o.gl,s=e.transform,u=s.tileSize,l=n.paint.get("background-pattern");if(!e.isPatternMissing(l)){var c=!l&&1===r.a&&1===i&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===c){var f=De.disabled,p=e.depthModeForSublayer(0,"opaque"===c?Ce.ReadWrite:Ce.ReadOnly),d=e.colorModeForRenderPass(),h=e.useProgram(l?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:u});l&&(o.activeTexture.set(a.TEXTURE0),e.imageManager.bind(e.context));for(var v=n.getCrossfadeParameters(),g=0,y=m;g<y.length;g+=1){var b=y[g],_=e.transform.calculatePosMatrix(b.toUnwrapped()),x=l?Zn(_,i,e,l,{tileID:b,tileSize:u},v):Yn(_,i,r);h.draw(o,a.TRIANGLES,p,f,d,ke.disabled,x,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}}}},debug:function(e,t,n){for(var r=0;r<n.length;r++)gr(e,t,n[r])},custom:function(e,t,n){var r=e.context,i=n.implementation;if("offscreen"===e.renderPass){var o=i.prerender;o&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),o.call(i,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(De.disabled);var a="3d"===i.renderingMode?new Ce(e.context.gl.LEQUAL,Ce.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,Ce.ReadOnly);r.setDepthMode(a),i.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}},br=function(e,t){this.context=new Ae(e),this.transform=t,this._tileTextures={},this.setup(),this.numSublayers=Te.maxUnderzooming+Te.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new zt,this.gpuTimers={}};br.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,i=this.style._order;r<i.length;r+=1)this.style._layers[i[r]].resize()},br.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 i=new e.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(e.EXTENT,0,e.EXTENT,0),i.emplaceBack(0,e.EXTENT,0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(i,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 a=new e.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(a);var s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.Texture(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);var u=this.context.gl;this.stencilClearMode=new De({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO)},br.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,Ce.disabled,this.stencilClearMode,Se.disabled,ke.disabled,In(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},br.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(Se.disabled),n.setDepthMode(Ce.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=t;o<a.length;o+=1){var s=a[o],u=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(n,r.TRIANGLES,Ce.disabled,new De({func:r.ALWAYS,mask:0},u,255,r.KEEP,r.KEEP,r.REPLACE),Se.disabled,ke.disabled,In(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},br.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new De({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},br.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new De({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},br.prototype.stencilConfigForOverlap=function(e){var t,n=this.context.gl,r=e.sort((function(e,t){return t.overscaledZ-e.overscaledZ})),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var a={},s=0;s<o;s++)a[s+i]=new De({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[a,r]}return[(t={},t[i]=De.disabled,t),r]},br.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new Se([t.CONSTANT_COLOR,t.ONE],new e.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Se.unblended:Se.alphaBlended},br.prototype.depthModeForSublayer=function(e,t,n){if(!this.opaquePassEnabledForLayer())return Ce.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Ce(n||this.context.gl.LEQUAL,t,[r,r])},br.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},br.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 i=this.style._order,o=this.style.sourceCaches;for(var a in o){var s=o[a];s.used&&s.prepare(this.context)}var u,l,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 m=0;m<i.length;m++)if(this.style._layers[i[m]].is3D()){this.opaquePassCutoff=m;break}this.renderPass="offscreen";for(var v=0,g=i;v<g.length;v+=1){var y=this.style._layers[g[v]];if(y.hasOffscreenPass()&&!y.isHidden(this.transform.zoom)){var b=f[y.source];("custom"===y.type||b.length)&&this.renderLayer(this,o[y.source],y,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=i.length-1;this.currentLayer>=0;this.currentLayer--){var _=this.style._layers[i[this.currentLayer]],x=o[_.source],w=c[_.source];this._renderTileClippingMasks(_,w),this.renderLayer(this,x,_,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){var E=this.style._layers[i[this.currentLayer]],O=o[E.source],C=("symbol"===E.type?p:f)[E.source];this._renderTileClippingMasks(E,c[E.source]),this.renderLayer(this,O,E,C)}this.options.showTileBoundaries&&(e.values(this.style._layers).forEach((function(e){e.source&&!e.isHidden(r.transform.zoom)&&(e.source!==(l&&l.id)&&(l=r.style.sourceCaches[e.source]),(!u||u.getSource().maxzoom<l.getSource().maxzoom)&&(u=l))})),u&&yr.debug(this,u,u.getVisibleCoordinates())),this.options.showPadding&&function(e){var t=e.transform.padding;hr(e,e.transform.height-(t.top||0),3,lr),hr(e,t.bottom||0,3,cr),mr(e,t.left||0,3,fr),mr(e,e.transform.width-(t.right||0),3,pr);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,dr)}(this),this.context.setDefault()},br.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())},br.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)}},br.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}},br.prototype.collectGpuTimers=function(){var e=this.gpuTimers;return this.gpuTimers={},e},br.prototype.queryGpuTimers=function(e){var t={};for(var n in e){var r=e[n],i=this.context.extTimerQuery,o=i.getQueryObjectEXT(r.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(r.query),t[n]=o}return t},br.prototype.translatePosMatrix=function(t,n,r,i,o){if(!r[0]&&!r[1])return t;var a=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(a){var s=Math.sin(a),u=Math.cos(a);r=[r[0]*u-r[1]*s,r[0]*s+r[1]*u]}var l=[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,l),c},br.prototype.saveTileTexture=function(e){var t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]},br.prototype.getTileTexture=function(e){var t=this._tileTextures[e];return t&&t.length>0?t.pop():null},br.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},br.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 wn(this.context,e,bn[e],t,Xn[e],this._showOverdrawInspector)),this.cache[n]},br.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()},br.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)},br.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))},br.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _r=function(e,t){this.points=e,this.planes=t};_r.fromInvProjectionMatrix=function(t,n,r){var i=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*i)})),a=[[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]]),i=e.normalize([],e.cross([],n,r)),a=-e.dot(i,o[t[1]]);return i.concat(a)}));return new _r(o,a)};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),i=e.clone$2(this.max),o=0;o<n.length;o++)r[o]=n[o]?this.min[o]:this.center[o],i[o]=n[o]?this.center[o]:this.max[o];return i[2]=this.max[2],new xr(r,i)},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,i=0;i<t.planes.length;i++){for(var o=t.planes[i],a=0,s=0;s<n.length;s++)a+=e.dot$1(o,n[s])>=0;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(var u=0;u<3;u++){for(var l=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<t.points.length;f++){var p=t.points[f][u]-this.min[u];l=Math.min(l,p),c=Math.max(c,p)}if(c<0||l>this.max[u]-this.min[u])return 0}return 1};var wr=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};wr.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},wr.prototype.getCenter=function(t,n){var r=e.clamp((this.left+t-this.right)/2,0,t),i=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.Point(r,i)},wr.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right},wr.prototype.clone=function(){return new wr(this.top,this.bottom,this.left,this.right)},wr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Er=function(t,n,r,i,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==i?60:i,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 wr,this._posMatrixCache={},this._alignedPosMatrixCache={}},Or={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}};Er.prototype.clone=function(){var e=new Er(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},Or.minZoom.get=function(){return this._minZoom},Or.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},Or.maxZoom.get=function(){return this._maxZoom},Or.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},Or.minPitch.get=function(){return this._minPitch},Or.minPitch.set=function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))},Or.maxPitch.get=function(){return this._maxPitch},Or.maxPitch.set=function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))},Or.renderWorldCopies.get=function(){return this._renderWorldCopies},Or.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},Or.worldSize.get=function(){return this.tileSize*this.scale},Or.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Or.size.get=function(){return new e.Point(this.width,this.height)},Or.bearing.get=function(){return-this.angle/Math.PI*180},Or.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))},Or.pitch.get=function(){return this._pitch/Math.PI*180},Or.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())},Or.fov.get=function(){return this._fov/Math.PI*180},Or.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())},Or.zoom.get=function(){return this._zoom},Or.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())},Or.center.get=function(){return this._center},Or.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},Or.padding.get=function(){return this._edgeInsets.toJSON()},Or.padding.set=function(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())},Or.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Er.prototype.isPaddingEqual=function(e){return this._edgeInsets.equals(e)},Er.prototype.interpolatePadding=function(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()},Er.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)},Er.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),i=this.pointCoordinate(new e.Point(this.width,0)),o=this.pointCoordinate(new e.Point(this.width,this.height)),a=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),u=Math.floor(Math.max(r.x,i.x,o.x,a.x)),l=s-1;l<=u+1;l++)0!==l&&n.push(new e.UnwrappedTileID(l,t));return n},Er.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 i=e.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=[o*i.x,o*i.y,0],s=_r.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),u=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=n);var l=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(l(-h)),c.push(l(h));for(c.push(l(0));c.length>0;){var m=c.pop(),v=m.x,g=m.y,y=m.fullyVisible;if(!y){var b=m.aabb.intersects(s);if(0===b)continue;y=2===b}var _=m.aabb.distanceX(a),x=m.aabb.distanceY(a),w=Math.max(Math.abs(_),Math.abs(x));if(m.zoom===p||w>3+(1<<p-m.zoom)-2&&m.zoom>=u)f.push({tileID:new e.OverscaledTileID(m.zoom===p?d:m.zoom,m.wrap,m.zoom,v,g),distanceSq:e.sqrLen([a[0]-.5-v,a[1]-.5-g])});else for(var E=0;E<4;E++){var O=(v<<1)+E%2,C=(g<<1)+(E>>1);c.push({aabb:m.aabb.quadrant(E),zoom:m.zoom+1,x:O,y:C,wrap:m.wrap,fullyVisible:y})}}return f.sort((function(e,t){return e.distanceSq-t.distanceSq})).map((function(e){return e.tileID}))},Er.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},Or.unmodified.get=function(){return this._unmodified},Er.prototype.zoomScale=function(e){return Math.pow(2,e)},Er.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},Er.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)},Er.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},Or.point.get=function(){return this.project(this.center)},Er.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(t),a=new e.MercatorCoordinate(o.x-(r.x-i.x),o.y-(r.y-i.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},Er.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},Er.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},Er.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},Er.prototype.coordinateLocation=function(e){return e.toLngLat()},Er.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 i=n[3],o=r[3],a=n[1]/i,s=r[1]/o,u=n[2]/i,l=r[2]/o,c=u===l?0:(0-u)/(l-u);return new e.MercatorCoordinate(e.number(n[0]/i,r[0]/o,c)/this.worldSize,e.number(a,s,c)/this.worldSize)},Er.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])},Er.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)))},Er.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},Er.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])},Er.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];var o=t.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*t.wrap,u=e.identity(new Float64Array(16));return e.translate(u,u,[s*a,o.y*a,0]),e.scale(u,u,[a/e.EXTENT,a/e.EXTENT,1]),e.multiply(u,n?this.alignedProjMatrix:this.projMatrix,u),i[r]=new Float32Array(u),i[r]},Er.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Er.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,i,o=-90,a=90,s=-180,u=180,l=this.size,c=this._unmodified;if(this.latRange){var f=this.latRange;o=e.mercatorYfromLat(f[1])*this.worldSize,t=(a=e.mercatorYfromLat(f[0])*this.worldSize)-o<l.y?l.y/(a-o):0}if(this.lngRange){var p=this.lngRange;s=e.mercatorXfromLng(p[0])*this.worldSize,n=(u=e.mercatorXfromLng(p[1])*this.worldSize)-s<l.x?l.x/(u-s):0}var d=this.point,h=Math.max(n||0,t||0);if(h)return this.center=this.unproject(new e.Point(n?(u+s)/2:d.x,t?(a+o)/2:d.y)),this.zoom+=this.scaleZoom(h),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var m=d.y,v=l.y/2;m-v<o&&(i=o+v),m+v>a&&(i=a-v)}if(this.lngRange){var g=d.x,y=l.x/2;g-y<s&&(r=s+y),g+y>u&&(r=u-y)}void 0===r&&void 0===i||(this.center=this.unproject(new e.Point(void 0!==r?r:d.x,void 0!==i?i:d.y))),this._unmodified=c,this._constraining=!1}},Er.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),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),l=this.height/50,c=new Float64Array(16);e.perspective(c,this._fov,this.width/this.height,l,u),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,[-a,-s,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),m=a-Math.round(a)+d*f+h*p,v=s-Math.round(s)+d*p+h*f,g=new Float64Array(c);if(e.translate(g,g,[m>.5?m-1:m,v>.5?v-1:v,0]),this.alignedProjMatrix=g,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={}}},Er.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},Er.prototype.getCameraPoint=function(){var t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,t))},Er.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,u=t;s<u.length;s+=1){var l=u[s];r=Math.min(r,l.x),i=Math.min(i,l.y),o=Math.max(o,l.x),a=Math.max(a,l.y)}return[new e.Point(r,i),new e.Point(o,i),new e.Point(o,a),new e.Point(r,a),new e.Point(r,i)]},Object.defineProperties(Er.prototype,Or);var Cr=function(t){var n,r,i,o;this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(n=this._updateHashUnthrottled.bind(this),r=!1,i=null,o=function(){i=null,r&&(n(),i=setTimeout(o,300),r=!1)},function(){return r=!0,i||o(),i})};Cr.prototype.addTo=function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Cr.prototype.remove=function(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Cr.prototype.getHashString=function(t){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(n.lng*o)/o,s=Math.round(n.lat*o)/o,u=this._map.getBearing(),l=this._map.getPitch(),c="";if(c+=t?"/"+a+"/"+s+"/"+r:r+"/"+s+"/"+a,(u||l)&&(c+="/"+Math.round(10*u)/10),l&&(c+="/"+Math.round(l)),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},Cr.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("/")},Cr.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},Cr.prototype._updateHashUnthrottled=function(){var t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());try{e.window.history.replaceState(e.window.history.state,null,t)}catch(e){}};var Dr={linearity:.3,easing:e.bezier(0,0,.3,1)},Sr=e.extend({deceleration:2500,maxSpeed:1400},Dr),kr=e.extend({deceleration:20,maxSpeed:1400},Dr),Ar=e.extend({deceleration:1e3,maxSpeed:360},Dr),Tr=e.extend({deceleration:1e3,maxSpeed:90},Dr),Pr=function(e){this._map=e,this.clear()};function Mr(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function jr(t,n,r){var i=r.maxSpeed,o=r.linearity,a=r.deceleration,s=e.clamp(t*o/(n/1e3),-i,i),u=Math.abs(s)/(a*o);return{easing:r.easing,duration:1e3*u,amount:s*(u/2)}}Pr.prototype.clear=function(){this._inertiaBuffer=[]},Pr.prototype.record=function(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:t})},Pr.prototype._drainInertiaBuffer=function(){for(var t=this._inertiaBuffer,n=e.browser.now();t.length>0&&n-t[0].time>160;)t.shift()},Pr.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,i=this._inertiaBuffer;r<i.length;r+=1){var o=i[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 a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(n.pan.mag()){var u=jr(n.pan.mag(),a,e.extend({},Sr,t||{}));s.offset=n.pan.mult(u.amount/n.pan.mag()),s.center=this._map.transform.center,Mr(s,u)}if(n.zoom){var l=jr(n.zoom,a,kr);s.zoom=this._map.transform.zoom+l.amount,Mr(s,l)}if(n.bearing){var c=jr(n.bearing,a,Ar);s.bearing=this._map.transform.bearing+e.clamp(c.amount,-179,179),Mr(s,c)}if(n.pitch){var f=jr(n.pitch,a,Tr);s.pitch=this._map.transform.pitch+f.amount,Mr(s,f)}if(s.zoom||s.bearing){var p=void 0===n.pinchAround?n.around:n.pinchAround;s.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),e.extend(s,{noMoveStart:!0})}};var Ir=function(t){function r(r,i,o,a){void 0===a&&(a={});var s=n.mousePos(i.getCanvasContainer(),o),u=i.unproject(s);t.call(this,r,e.extend({point:s,lngLat:u,originalEvent:o},a)),this._defaultPrevented=!1,this.target=i}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(e.Event),Fr=function(t){function r(r,i,o){var a="touchend"===r?o.changedTouches:o.touches,s=n.touchPos(i.getCanvasContainer(),a),u=s.map((function(e){return i.unproject(e)})),l=s.reduce((function(e,t,n,r){return e.add(t.div(r.length))}),new e.Point(0,0)),c=i.unproject(l);t.call(this,r,{points:s,point:l,lngLats:u,lngLat:c,originalEvent:o}),this._defaultPrevented=!1}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(e.Event),Rr=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),Lr=function(e,t){this._map=e,this._clickTolerance=t.clickTolerance};Lr.prototype.reset=function(){delete this._mousedownPos},Lr.prototype.wheel=function(e){return this._firePreventable(new Rr(e.type,this._map,e))},Lr.prototype.mousedown=function(e,t){return this._mousedownPos=t,this._firePreventable(new Ir(e.type,this._map,e))},Lr.prototype.mouseup=function(e){this._map.fire(new Ir(e.type,this._map,e))},Lr.prototype.click=function(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new Ir(e.type,this._map,e))},Lr.prototype.dblclick=function(e){return this._firePreventable(new Ir(e.type,this._map,e))},Lr.prototype.mouseover=function(e){this._map.fire(new Ir(e.type,this._map,e))},Lr.prototype.mouseout=function(e){this._map.fire(new Ir(e.type,this._map,e))},Lr.prototype.touchstart=function(e){return this._firePreventable(new Fr(e.type,this._map,e))},Lr.prototype.touchmove=function(e){this._map.fire(new Fr(e.type,this._map,e))},Lr.prototype.touchend=function(e){this._map.fire(new Fr(e.type,this._map,e))},Lr.prototype.touchcancel=function(e){this._map.fire(new Fr(e.type,this._map,e))},Lr.prototype._firePreventable=function(e){if(this._map.fire(e),e.defaultPrevented)return{}},Lr.prototype.isEnabled=function(){return!0},Lr.prototype.isActive=function(){return!1},Lr.prototype.enable=function(){},Lr.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 Ir(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 Ir("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},zr.prototype.contextmenu=function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new Ir(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 Br=function(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1};function Nr(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}Br.prototype.isEnabled=function(){return!!this._enabled},Br.prototype.isActive=function(){return!!this._active},Br.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Br.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Br.prototype.mousedown=function(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(n.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)},Br.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 i=this._startPos;this._lastPos=r,this._box||(this._box=n.create("div","maplibregl-boxzoom mapboxgl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair","mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));var o=Math.min(i.x,r.x),a=Math.max(i.x,r.x),s=Math.min(i.y,r.y),u=Math.max(i.y,r.y);n.setTransform(this._box,"translate("+o+"px,"+s+"px)"),this._box.style.width=a-o+"px",this._box.style.height=u-s+"px"}}},Br.prototype.mouseupWindow=function(t,r){var i=this;if(this._active&&0===t.button){var o=this._startPos,a=r;if(this.reset(),n.suppressClick(),o.x!==a.x||o.y!==a.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:function(e){return e.fitScreenCoordinates(o,a,i._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",t)}},Br.prototype.keydown=function(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))},Br.prototype.reset=function(){this._active=!1,this._container.classList.remove("maplibregl-crosshair","mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},Br.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))};var Ur=function(e){this.reset(),this.numTouches=e.numTouches};Ur.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Ur.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,i=t;r<i.length;r+=1)n._add(i[r]);return n.div(t.length)}(n),this.touches=Nr(r,n)))},Ur.prototype.touchmove=function(e,t,n){if(!this.aborted&&this.centroid){var r=Nr(n,t);for(var i in this.touches){var o=r[i];(!o||o.dist(this.touches[i])>30)&&(this.aborted=!0)}}},Ur.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 Ur(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 i=e.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(i&&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,i=this._zoomIn.touchend(e,t,n),o=this._zoomOut.touchend(e,t,n);return i?(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(i)},{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 Wr={0:1,2:2},Gr=function(e){this.reset(),this._clickTolerance=e.clickTolerance||1};Gr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Gr.prototype._correctButton=function(e,t){return!1},Gr.prototype._move=function(e,t){return{}},Gr.prototype.mousedown=function(e,t){if(!this._lastPoint){var r=n.mouseButton(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}},Gr.prototype.mousemoveWindow=function(e,t){var n=this._lastPoint;if(n)if(e.preventDefault(),function(e,t){var n=Wr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(n,t)},Gr.prototype.mouseupWindow=function(e){this._lastPoint&&n.mouseButton(e)===this._eventButton&&(this._moved&&n.suppressClick(),this.reset())},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 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.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}(Gr),$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=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Gr),Yr=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}(Gr),Zr=function(e){this._minTouches=1,this._clickTolerance=e.clickTolerance||1,this.reset()};Zr.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new e.Point(0,0)},Zr.prototype.touchstart=function(e,t,n){return this._calculateTransform(e,t,n)},Zr.prototype.touchmove=function(e,t,n){if(this._active&&!(n.length<this._minTouches))return e.preventDefault(),this._calculateTransform(e,t,n)},Zr.prototype.touchend=function(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()},Zr.prototype.touchcancel=function(){this.reset()},Zr.prototype._calculateTransform=function(t,n,r){r.length>0&&(this._active=!0);var i=Nr(r,n),o=new e.Point(0,0),a=new e.Point(0,0),s=0;for(var u in i){var l=i[u],c=this._touches[u];c&&(o._add(l),a._add(l.sub(c)),s++,i[u]=l)}if(this._touches=i,!(s<this._minTouches)&&a.mag()){var f=a.div(s);if(this._sum._add(f),!(this._sum.mag()<this._clickTolerance))return{around:o.div(s),panDelta:f}}},Zr.prototype.enable=function(){this._enabled=!0},Zr.prototype.disable=function(){this._enabled=!1,this.reset()},Zr.prototype.isEnabled=function(){return this._enabled},Zr.prototype.isActive=function(){return this._active};var Xr=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 Jr(e,t){return Math.log(e/t)/Math.LN2}Xr.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xr.prototype._start=function(e){},Xr.prototype._move=function(e,t,n){return{}},Xr.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]]))},Xr.prototype.touchmove=function(e,t,n){if(this._firstTwoTouches){e.preventDefault();var r=this._firstTwoTouches,i=r[1],o=Kr(n,t,r[0]),a=Kr(n,t,i);if(o&&a){var s=this._aroundCenter?null:o.add(a).div(2);return this._move([o,a],s,e)}}},Xr.prototype.touchend=function(e,t,r){if(this._firstTwoTouches){var i=this._firstTwoTouches,o=i[1],a=Kr(r,t,i[0]),s=Kr(r,t,o);a&&s||(this._active&&n.suppressClick(),this.reset())}},Xr.prototype.touchcancel=function(){this.reset()},Xr.prototype.enable=function(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around},Xr.prototype.disable=function(){this._enabled=!1,this.reset()},Xr.prototype.isEnabled=function(){return this._enabled},Xr.prototype.isActive=function(){return this._active};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._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(Jr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Jr(this._distance,n),pinchAround:t}},t}(Xr);function ei(e,t){return 180*e.angleWith(t)/Math.PI}var ti=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:ei(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=ei(e,this._startVector);return Math.abs(n)<t},t}(Xr);function ni(e){return Math.abs(e.y)>Math.abs(e.x)}var ri=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,ni(e[0].sub(e[1]))&&(this._valid=!1)},t.prototype._move=function(e,t,n){var r=e[0].sub(this._lastPoints[0]),i=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}},t.prototype.gestureBeginsVertically=function(e,t,n){if(void 0!==this._valid)return this._valid;var r=e.mag()>=2,i=t.mag()>=2;if(r||i){if(!r||!i)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=e.y>0==t.y>0;return ni(e)&&ni(t)&&o}},t}(Xr),ii={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var e=ii;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1};function ai(e){return e*(2-e)}oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,i=0,o=0,a=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?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:function(s){var u=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ai,zoom:n?Math.round(u)+n*(e.shiftKey?2:1):u,bearing:s.getBearing()+r*t._bearingStep,pitch:s.getPitch()+i*t._pitchStep,offset:[-o*t._panStep,-a*t._panStep],center:s.getCenter()},{originalEvent:e})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active},oi.prototype.disableRotation=function(){this._rotationDisabled=!0},oi.prototype.enableRotation=function(){this._rotationDisabled=!1};var si=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(["_onTimeout"],this)};si.prototype.setZoomRate=function(e){this._defaultZoomRate=e},si.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},si.prototype.isEnabled=function(){return!!this._enabled},si.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},si.prototype.isZooming=function(){return!!this._zooming},si.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},si.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},si.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(),i=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":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*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()}},si.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},si.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())}},si.prototype.renderFrame=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,i=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==i&&(i=1/i);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*i))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,u=this._startZoom,l=this._easing,c=!1;if("wheel"===this._type&&u&&l){var f=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),p=l(f);a=e.number(u,s,p),f<1?this._frameId||(this._frameId=!0):c=!0}else a=s,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:a-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},si.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,i=(e.browser.now()-r.start)/r.duration,o=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=e.bezier(a,s,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n},si.prototype.reset=function(){this._active=!1};var ui=function(e,t){this._clickZoom=e,this._tapZoom=t};ui.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ui.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ui.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ui.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var li=function(){this.reset()};li.prototype.reset=function(){this._active=!1},li.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})}}},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(){this._tap=new Vr({numTouches:1,numTaps:1}),this.reset()};ci.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ci.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))},ci.prototype.touchmove=function(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,n)},ci.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)},ci.prototype.touchcancel=function(){this.reset()},ci.prototype.enable=function(){this._enabled=!0},ci.prototype.disable=function(){this._enabled=!1,this.reset()},ci.prototype.isEnabled=function(){return this._enabled},ci.prototype.isActive=function(){return this._active};var fi=function(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n};fi.prototype.enable=function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan")},fi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan")},fi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},fi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var pi=function(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n};pi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},pi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},pi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},pi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var hi=function(e){return e.zoom||e.drag||e.pitch||e.rotate},mi=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 vi(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var gi=function(t,r){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Pr(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),e.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[e.window,"blur",void 0]];for(var o=0,a=this._listeners;o<a.length;o+=1){var s=a[o],u=s[0];n.addEventListener(u,s[1],u===e.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var t=0,r=this._listeners;t<r.length;t+=1){var i=r[t],o=i[0];n.removeEventListener(o,i[1],o===e.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(e){var t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new Lr(t,e));var r=t.boxZoom=new Br(t,e);this._add("boxZoom",r);var i=new Hr,o=new li;t.doubleClickZoom=new ui(o,i),this._add("tapZoom",i),this._add("clickZoom",o);var a=new ci;this._add("tapDragZoom",a);var s=t.touchPitch=new ri;this._add("touchPitch",s);var u=new $r(e),l=new Yr(e);t.dragRotate=new pi(e,u,l),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",l,["mouseRotate"]);var c=new qr(e),f=new Zr(e);t.dragPan=new fi(n,c,f),this._add("mousePan",c),this._add("touchPan",f,["touchZoom","touchRotate"]);var p=new ti,d=new Qr;t.touchZoomRotate=new di(n,d,p,a),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]);var h=t.scrollZoom=new si(t,this);this._add("scrollZoom",h,["mousePan"]);var m=t.keyboard=new oi;this._add("keyboard",m),this._add("blockableMapEvent",new zr(t));for(var v=0,g=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];v<g.length;v+=1){var y=g[v];e.interactive&&e[y]&&t[y].enable(e[y])}},gi.prototype._add=function(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t},gi.prototype.stop=function(e){if(!this._updatingCamera){for(var t=0,n=this._handlers;t<n.length;t+=1)n[t].handler.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}},gi.prototype.isActive=function(){for(var e=0,t=this._handlers;e<t.length;e+=1)if(t[e].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(e,t,n){for(var r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1},gi.prototype.handleWindowEvent=function(e){this.handleEvent(e,e.type+"Window")},gi.prototype._getMapTouches=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var i=r[n];this._el.contains(i.target)&&t.push(i)}return t},gi.prototype.handleEvent=function(e,t){if("blur"!==e.type){this._updatingCamera=!0;for(var r="renderFrame"===e.type?void 0:e,i={needsRenderFrame:!1},o={},a={},s=e.touches?this._getMapTouches(e.touches):void 0,u=s?n.touchPos(this._el,s):n.mousePos(this._el,e),l=0,c=this._handlers;l<c.length;l+=1){var f=c[l],p=f.handlerName,d=f.handler,h=f.allowed;if(d.isEnabled()){var m=void 0;this._blockedByActive(a,h,p)?d.reset():d[t||e.type]&&(m=d[t||e.type](e,u,s),this.mergeHandlerResult(i,o,m,p,r),m&&m.needsRenderFrame&&this._triggerRenderFrame()),(m||d.isActive())&&(a[p]=d)}}var v={};for(var g in this._previousActiveHandlers)a[g]||(v[g]=r);this._previousActiveHandlers=a,(Object.keys(v).length||vi(i))&&(this._changes.push([i,o,v]),this._triggerRenderFrame()),(Object.keys(a).length||vi(i))&&this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],y(this._map))}else this.stop(!0)},gi.prototype.mergeHandlerResult=function(t,n,r,i,o){if(r){e.extend(t,r);var a={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}},gi.prototype._applyChanges=function(){for(var t={},n={},r={},i=0,o=this._changes;i<o.length;i+=1){var a=o[i],s=a[0],u=a[1],l=a[2];s.panDelta&&(t.panDelta=(t.panDelta||new e.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(t.around=s.around),void 0!==s.pinchAround&&(t.pinchAround=s.pinchAround),s.noInertia&&(t.noInertia=s.noInertia),e.extend(n,u),e.extend(r,l)}this._updateMapTransform(t,n,r),this._changes=[]},gi.prototype._updateMapTransform=function(e,t,n){var r=this._map,i=r.transform;if(!vi(e))return this._fireEvents(t,n,!0);var o=e.panDelta,a=e.zoomDelta,s=e.bearingDelta,u=e.pitchDelta,l=e.around,c=e.pinchAround;void 0!==c&&(l=c),r._stop(!0),l=l||r.transform.centerPoint;var f=i.pointLocation(o?l.sub(o):l);s&&(i.bearing+=s),u&&(i.pitch+=u),a&&(i.zoom+=a),i.setLocationAtPoint(f,l),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n,!0)},gi.prototype._fireEvents=function(t,n,r){var i=this,o=hi(this._eventsInProgress),a=hi(t),s={};for(var u in t)this._eventsInProgress[u]||(s[u+"start"]=t[u].originalEvent),this._eventsInProgress[u]=t[u];for(var l in!o&&a&&this._fireEvent("movestart",a.originalEvent),s)this._fireEvent(l,s[l]);for(var c in a&&this._fireEvent("move",a.originalEvent),t)this._fireEvent(c,t[c].originalEvent);var f,p={};for(var d in this._eventsInProgress){var h=this._eventsInProgress[d],m=h.handlerName,v=h.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[d],p[d+"end"]=f=n[m]||v)}for(var g in p)this._fireEvent(g,p[g]);var y=hi(this._eventsInProgress);if(r&&(o||a)&&!y){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(e){return 0!==e&&-i._bearingSnap<e&&e<i._bearingSnap};b?(_(b.bearing||this._map.getBearing())&&(b.bearing=0),this._map.easeTo(b,{originalEvent:f})):(this._map.fire(new e.Event("moveend",{originalEvent:f})),_(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}},gi.prototype._fireEvent=function(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},gi.prototype._requestFrame=function(){var e=this;return this._map.triggerRepaint(),this._map._renderTaskQueue.add((function(t){delete e._frameId,e.handleEvent(new mi("renderFrame",{timeStamp:t})),e._applyChanges()}))},gi.prototype._triggerRenderFrame=function(){void 0===this._frameId&&(this._frameId=this._requestFrame())};var yi=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){t=e.LngLatBounds.convert(t);var r=n&&n.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),r,n)},n.prototype._cameraForBoxAndBearing=function(t,n,r,i){var o={top:0,bottom:0,right:0,left:0};if("number"==typeof(i=e.extend({padding:o,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var a=i.padding;i.padding={top:a,bottom:a,right:a,left:a}}i.padding=e.extend(o,i.padding);var s=this.transform,u=s.padding,l=s.project(e.LngLat.convert(t)),c=s.project(e.LngLat.convert(n)),f=l.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)),m=d.sub(h),v=(s.width-(u.left+u.right+i.padding.left+i.padding.right))/m.x,g=(s.height-(u.top+u.bottom+i.padding.top+i.padding.bottom))/m.y;if(!(g<0||v<0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(v,g)),i.maxZoom),b="number"==typeof i.offset.x?new e.Point(i.offset.x,i.offset.y):e.Point.convert(i.offset),_=new e.Point((i.padding.left-i.padding.right)/2,(i.padding.top-i.padding.bottom)/2).rotate(r*Math.PI/180),x=b.add(_).mult(s.scale/s.zoomScale(y));return{center:s.unproject(l.add(c).div(2).sub(x)),zoom:y,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,i,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(n)),r,i),i,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,i=!1,o=!1,a=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(i=!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&&(a=!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)),i&&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)),a&&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 i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),u=this.getPadding(),l="zoom"in t?+t.zoom:o,c="bearing"in t?this._normalizeBearing(t.bearing,a):a,f="pitch"in t?+t.pitch:s,p="padding"in t?t.padding:i.padding,d=e.Point.convert(t.offset),h=i.centerPoint.add(d),m=i.pointLocation(h),v=e.LngLat.convert(t.center||m);this._normalizeCenter(v);var g,y,b=i.project(m),_=i.project(v).sub(b),x=i.zoomScale(l-o);t.around&&(g=e.LngLat.convert(t.around),y=i.locationPoint(g));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==o,this._rotating=this._rotating||a!==c,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(p),this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,w),this._ease((function(t){if(r._zooming&&(i.zoom=e.number(o,l,t)),r._rotating&&(i.bearing=e.number(a,c,t)),r._pitching&&(i.pitch=e.number(s,f,t)),r._padding&&(i.interpolatePadding(u,p,t),h=i.centerPoint.add(d)),g)i.setLocationAtPoint(g,y);else{var m=i.zoomScale(i.zoom-o),v=l>o?Math.min(2,x):Math.max(.5,x),w=Math.pow(v,1-t),E=i.unproject(b.add(_.mult(t*w)).mult(m));i.setLocationAtPoint(i.renderWorldCopies?E.wrap():E,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,i=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)),i&&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 i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var o=this.transform,a=this.getZoom(),s=this.getBearing(),u=this.getPitch(),l=this.getPadding(),c="zoom"in t?e.clamp(+t.zoom,o.minZoom,o.maxZoom):a,f="bearing"in t?this._normalizeBearing(t.bearing,s):s,p="pitch"in t?+t.pitch:u,d="padding"in t?t.padding:o.padding,h=o.zoomScale(c-a),m=e.Point.convert(t.offset),v=o.centerPoint.add(m),g=o.pointLocation(v),y=e.LngLat.convert(t.center||g);this._normalizeCenter(y);var b=o.project(g),_=o.project(y).sub(b),x=t.curve,w=Math.max(o.width,o.height),E=w/h,O=_.mag();if("minZoom"in t){var C=e.clamp(Math.min(t.minZoom,a,c),o.minZoom,o.maxZoom),D=w/o.zoomScale(C-a);x=Math.sqrt(D/O*2)}var S=x*x;function k(e){var t=(E*E-w*w+(e?-1:1)*S*S*O*O)/(2*(e?E:w)*S*O);return Math.log(Math.sqrt(t*t+1)-t)}function A(e){return(Math.exp(e)-Math.exp(-e))/2}function T(e){return(Math.exp(e)+Math.exp(-e))/2}var P=k(0),M=function(e){return T(P)/T(P+x*e)},j=function(e){return w*((T(P)*(A(t=P+x*e)/T(t))-A(P))/S)/O;var t},I=(k(1)-P)/x;if(Math.abs(O)<1e-6||!isFinite(I)){if(Math.abs(w-E)<1e-6)return this.easeTo(t,n);var F=E<w?-1:1;I=Math.abs(Math.log(E/w))/x,j=function(){return 0},M=function(e){return Math.exp(F*x*e)}}return t.duration="duration"in t?+t.duration:1e3*I/("screenSpeed"in t?+t.screenSpeed/x:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=p!==u,this._padding=!o.isPaddingEqual(d),this._prepareEase(n,!1),this._ease((function(t){var i=t*I,h=1/M(i);o.zoom=1===t?c:a+o.scaleZoom(h),r._rotating&&(o.bearing=e.number(s,f,t)),r._pitching&&(o.pitch=e.number(u,p,t)),r._padding&&(o.interpolatePadding(l,d,t),v=o.centerPoint.add(m));var g=1===t?y:o.unproject(b.add(_.mult(j(i))).mult(h));o.setLocationAtPoint(o.renderWorldCopies?g.wrap():g,v),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(!1)}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),bi=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-attrib mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","maplibregl-ctrl-attrib-button mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._compactButton.type="button",this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","maplibregl-ctrl-attrib-inner mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("maplibregl-compact","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},bi.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},bi.prototype._setElementTitle=function(e,t){var n=this._map._getUIString("AttributionControl."+t);e.title=n,e.setAttribute("aria-label",n)},bi.prototype._toggleAttribution=function(){this._container.classList.contains("maplibregl-compact-show")||this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("maplibregl-compact-show","mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("maplibregl-compact-show","mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bi.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",this._setElementTitle(t,"MapFeedback")}},bi.prototype._updateData=function(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())},bi.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 i=n[r];if(i.used){var o=i.getSource();o.attribution&&e.indexOf(o.attribution)<0&&e.push(o.attribution)}}e.sort((function(e,t){return e.length-t.length}));var a=(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(" | ");a!==this._attribHTML&&(this._attribHTML=a,e.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("maplibregl-attrib-empty","mapboxgl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty","mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("maplibregl-compact","mapboxgl-compact"):this._container.classList.remove("maplibregl-compact","maplibregl-compact-show","mapboxgl-compact","mapboxgl-compact-show")};var _i=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};_i.prototype.onAdd=function(e){this._map=e,this._container=n.create("div","maplibregl-ctrl mapboxgl-ctrl");var t=n.create("a","maplibregl-ctrl-logo mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",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},_i.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_i.prototype.getDefaultPosition=function(){return"bottom-left"},_i.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},_i.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}},_i.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("maplibregl-compact","mapboxgl-compact"):t.classList.remove("maplibregl-compact","mapboxgl-compact")}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},xi.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 i=r[n];if(i.id===e)return void(i.cancelled=!0)}},xi.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 i=r[n];if(!i.cancelled&&(i.callback(e),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var wi={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","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"},Ei=e.window.HTMLImageElement,Oi=e.window.HTMLElement,Ci=e.window.ImageBitmap,Di={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},Si=function(r){function i(t){var n=this;if(null!=(t=e.extend({},Di,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 i=new Er(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(r.call(this,i,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 xi,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},wi,t.locale),this._clickTolerance=t.clickTolerance,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 Oi))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","_onMapScroll","_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),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new gi(this,t),this._hash=t.hash&&new Cr("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 bi({customAttribution:t.customAttribution})),this.addControl(new _i,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&&(i.__proto__=r),(i.prototype=Object.create(r&&r.prototype)).constructor=i;var o={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"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 i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this},i.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},i.prototype.hasControl=function(e){return this._controls.indexOf(e)>-1},i.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],i=n[1];this._resizeCanvas(r,i),this.transform.resize(r,i),this.painter.resize(r,i);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},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},i.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")},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.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")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.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")},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.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")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},i.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},i.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(e,t,n){var r,i=this;if("mouseenter"===e||"mouseover"===e){var o=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){var a=i.getLayer(t)?i.queryRenderedFeatures(r.point,{layers:[t]}):[];a.length?o||(o=!0,n.call(i,new Ir(e,i,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===e||"mouseout"===e){var a=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){(i.getLayer(t)?i.queryRenderedFeatures(r.point,{layers:[t]}):[]).length?a=!0:a&&(a=!1,n.call(i,new Ir(e,i,r.originalEvent)))},mouseout:function(t){a&&(a=!1,n.call(i,new Ir(e,i,t.originalEvent)))}}}}return{layer:t,listener:n,delegates:(r={},r[e]=function(e){var r=i.getLayer(t)?i.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(i,e),delete e.features)},r)}},i.prototype.on=function(e,t,n){if(void 0===n)return r.prototype.on.call(this,e,t);var i=this._createDelegatedListener(e,t,n);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i),i.delegates)this.on(o,i.delegates[o]);return this},i.prototype.once=function(e,t,n){if(void 0===n)return r.prototype.once.call(this,e,t);var i=this._createDelegatedListener(e,t,n);for(var o in i.delegates)this.once(o,i.delegates[o]);return this},i.prototype.off=function(e,t,n){var i=this;return void 0===n?r.prototype.off.call(this,e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&function(r){for(var o=r[e],a=0;a<o.length;a++){var s=o[a];if(s.layer===t&&s.listener===n){for(var u in s.delegates)i.off(u,s.delegates[u]);return o.splice(a,1),i}}}(this._delegatedListeners),this)},i.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 i=e.Point.convert(t[0]),o=e.Point.convert(t[1]);r=[i,new e.Point(o.x,i.y),o,new e.Point(i.x,o.y),i]}return this.style.queryRenderedFeatures(r,n,this.transform)},i.prototype.querySourceFeatures=function(e,t){return this.style.querySourceFeatures(e,t)},i.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))},i.prototype.setTransformRequest=function(e){return this._requestManager.setTransformRequest(e),this},i.prototype._getUIString=function(e){var t=this._locale[e];if(null==t)throw new Error("Missing UI string '"+e+"'");return t},i.prototype._updateStyle=function(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Ht(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)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Ht(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(t,n){var r=this;if("string"==typeof t){var i=this._requestManager.normalizeStyleURL(t),o=this._requestManager.transformRequest(i,e.ResourceType.Style);e.getJSON(o,(function(t,i){t?r.fire(new e.ErrorEvent(t)):i&&r._updateDiff(i,n)}))}else"object"==typeof t&&this._updateDiff(t,n)},i.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)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")},i.prototype.addSource=function(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)},i.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+"'")))},i.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 i=n[r];if("loaded"!==i.state&&"errored"!==i.state)return!1}}return!0},i.prototype.addSourceType=function(e,t,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)},i.prototype.removeSource=function(e){return this.style.removeSource(e),this._update(!0)},i.prototype.getSource=function(e){return this.style.getSource(e)},i.prototype.addImage=function(t,n,r){void 0===r&&(r={});var i=r.pixelRatio;void 0===i&&(i=1);var o=r.sdf;void 0===o&&(o=!1);var a=r.stretchX,s=r.stretchY,u=r.content;if(this._lazyInitEmptyStyle(),n instanceof Ei||Ci&&n instanceof Ci){var l=e.browser.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:l.width,height:l.height},l.data),pixelRatio:i,stretchX:a,stretchY:s,content:u,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:i,stretchX:a,stretchY:s,content:u,sdf:o,version:0,userImage:c}),c.onAdd&&c.onAdd(this,t)}},i.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 i=n instanceof Ei||Ci&&n instanceof Ci?e.browser.getImageData(n):n,o=i.width,a=i.height,s=i.data;return void 0===o||void 0===a?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||a!==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(s,!(n instanceof Ei||Ci&&n instanceof Ci)),void this.style.updateImage(t,r))},i.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)},i.prototype.removeImage=function(e){this.style.removeImage(e)},i.prototype.loadImage=function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)},i.prototype.moveLayer=function(e,t){return this.style.moveLayer(e,t),this._update(!0)},i.prototype.removeLayer=function(e){return this.style.removeLayer(e),this._update(!0)},i.prototype.getLayer=function(e){return this.style.getLayer(e)},i.prototype.setLayerZoomRange=function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)},i.prototype.setFilter=function(e,t,n){return void 0===n&&(n={}),this.style.setFilter(e,t,n),this._update(!0)},i.prototype.getFilter=function(e){return this.style.getFilter(e)},i.prototype.setPaintProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(e,t,n,r),this._update(!0)},i.prototype.getPaintProperty=function(e,t){return this.style.getPaintProperty(e,t)},i.prototype.setLayoutProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(e,t,n,r),this._update(!0)},i.prototype.getLayoutProperty=function(e,t){return this.style.getLayoutProperty(e,t)},i.prototype.setLight=function(e,t){return void 0===t&&(t={}),this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(e,t){return this.style.setFeatureState(e,t),this._update()},i.prototype.removeFeatureState=function(e,t){return this.style.removeFeatureState(e,t),this._update()},i.prototype.getFeatureState=function(e){return this.style.getFeatureState(e)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]},i.prototype._setupContainer=function(){var e=this._container;e.classList.add("maplibregl-map","mapboxgl-map");var t=this._canvasContainer=n.create("div","maplibregl-canvas-container mapboxgl-canvas-container",e);this._interactive&&t.classList.add("maplibregl-interactive","mapboxgl-interactive"),this._canvas=n.create("canvas","maplibregl-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"),this._canvas.setAttribute("role","region");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var i=this._controlContainer=n.create("div","maplibregl-control-container mapboxgl-control-container",e),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(e){o[e]=n.create("div","maplibregl-ctrl-"+e+" mapboxgl-ctrl-"+e,i)})),this._container.addEventListener("scroll",this._onMapScroll,!1)},i.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"},i.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 br(r,this.transform),e.webpSupported.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))},i.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))},i.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))},i.prototype._onMapScroll=function(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},i.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},i.prototype._update=function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(e){return this._update(),this._renderTaskQueue.add(e)},i.prototype._cancelRenderFrame=function(e){this._renderTaskQueue.remove(e)},i.prototype._render=function(t){var n,r=this,i=0,o=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=o.createQueryEXT(),o.beginQueryEXT(o.TIME_ELAPSED_EXT,n),i=e.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),!this._removed){var a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,u=e.browser.now();this.style.zoomHistory.update(s,u);var l=new e.EvaluationParameters(s,{now:u,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),c=l.crossFadingFactor();1===c&&c===this._crossFadingFactor||(a=!0,this._crossFadingFactor=c),this.style.update(l)}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()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var f=e.browser.now()-i;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)}var d=this._sourcesDirty||this._styleDirty||this._placementDirty;return d||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.Event("idle")),!this._loaded||this._fullyLoaded||d||(this._fullyLoaded=!0),this}},i.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("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),ki(this._canvasContainer),ki(this._controlContainer),this._container.classList.remove("maplibregl-map","mapboxgl-map"),this._removed=!0,this.fire(new e.Event("remove"))},i.prototype.triggerRepaint=function(){var t=this;this.style&&!this._frame&&(this._frame=e.browser.frame((function(e){t._frame=null,t._render(e)})))},i.prototype._onWindowOnline=function(){this._update()},i.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()},i.prototype._setCacheLimits=function(t,n){e.setCacheLimits(t,n)},o.version.get=function(){return e.version},Object.defineProperties(i.prototype,o),i}(yi);function ki(e){e.parentNode&&e.parentNode.removeChild(e)}var Ai={showCompass:!0,showZoom:!0,visualizePitch:!1},Ti=function(t){var r=this;this.options=e.extend({},Ai,t),this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group 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("maplibregl-ctrl-zoom-in mapboxgl-ctrl-zoom-in",(function(e){return r._map.zoomIn({},{originalEvent:e})})),n.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out mapboxgl-ctrl-zoom-out",(function(e){return r._map.zoomOut({},{originalEvent:e})})),n.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("maplibregl-ctrl-compass mapboxgl-ctrl-compass",(function(e){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:e}):r._map.resetNorth({},{originalEvent:e})})),this._compassIcon=n.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Ti.prototype._updateZoomButtons=function(){var e=this._map.getZoom(),t=e===this._map.getMaxZoom(),n=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())},Ti.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},Ti.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 Pi(this._map,this._compass,this.options.visualizePitch)),this._container},Ti.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},Ti.prototype._createButton=function(e,t){var r=n.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r},Ti.prototype._setButtonTitle=function(e,t){var n=this._map._getUIString("NavigationControl."+t);e.title=n,e.setAttribute("aria-label",n)};var Pi=function(t,r,i){void 0===i&&(i=!1),this._clickTolerance=10,this.element=r,this.mouseRotate=new $r({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,i&&(this.mousePitch=new Yr({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 Mi(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var i=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),a=r.locationPoint(t).distSqr(n);r.locationPoint(i).distSqr(n)<a?t=i:r.locationPoint(o).distSqr(n)<a&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){var s=r.locationPoint(t);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}Pi.prototype.down=function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),n.disableDrag()},Pi.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 i=this.mousePitch.mousemoveWindow(e,t);i&&i.pitchDelta&&n.setPitch(n.getPitch()+i.pitchDelta)}},Pi.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()},Pi.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(e.window,"mousemove",this.mousemove),n.removeEventListener(e.window,"mouseup",this.mouseup)},Pi.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)},Pi.prototype.mousemove=function(e){this.move(e,n.mousePos(this.element,e))},Pi.prototype.mouseup=function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()},Pi.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))},Pi.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))},Pi.prototype.touchend=function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},Pi.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var ji={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 Ii(e,t,n){var r=e.classList;for(var i in ji)r.remove("maplibregl-"+n+"-anchor-"+i,"mapboxgl-"+n+"-anchor-"+i);r.add("maplibregl-"+n+"-anchor-"+t,"mapboxgl-"+n+"-anchor-"+t)}var Fi,Ri=function(t){function r(r,i){if(t.call(this),(r instanceof e.window.HTMLElement||i)&&(r=e.extend({element:r},i)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._scale=r&&r.scale||1,this._draggable=r&&r.draggable||!1,this._clickTolerance=r&&r.clickTolerance||0,this._isDragging=!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 o=n.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var a=n.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.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 l=0,c=[{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"}];l<c.length;l+=1){var f=c[l],p=n.createNS("http://www.w3.org/2000/svg","ellipse");p.setAttributeNS(null,"opacity","0.04"),p.setAttributeNS(null,"cx","10.5"),p.setAttributeNS(null,"cy","5.80029008"),p.setAttributeNS(null,"rx",f.rx),p.setAttributeNS(null,"ry",f.ry),u.appendChild(p)}var d=n.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"fill",this._color);var h=n.createNS("http://www.w3.org/2000/svg","path");h.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"),d.appendChild(h);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var v=n.createNS("http://www.w3.org/2000/svg","path");v.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(v);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 y=n.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(8.0, 8.0)");var b=n.createNS("http://www.w3.org/2000/svg","circle");b.setAttributeNS(null,"fill","#000000"),b.setAttributeNS(null,"opacity","0.25"),b.setAttributeNS(null,"cx","5.5"),b.setAttributeNS(null,"cy","5.5"),b.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"),y.appendChild(b),y.appendChild(_),s.appendChild(u),s.appendChild(d),s.appendChild(m),s.appendChild(g),s.appendChild(y),o.appendChild(s),o.setAttributeNS(null,"height",41*this._scale+"px"),o.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(o),this._offset=e.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("maplibregl-marker","mapboxgl-marker"),this._element.addEventListener("dragstart",(function(e){e.preventDefault()})),this._element.addEventListener("mousedown",(function(e){e.preventDefault()})),Ii(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=Mi(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,ji[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){if(!this._isDragging){var n=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=n}this._isDragging&&(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._pointerdownPos=null,this._isDragging=!1,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._pointerdownPos=e.point,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),Li={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},zi=0,Bi=!1,Ni=function(t){function r(n){t.call(this),this.options=e.extend({},Li,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","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Fi?r(Fi):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((function(e){r(Fi="denied"!==e.state)})):r(Fi=!!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,zi=0,Bi=!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("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","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("maplibregl-user-location-dot-stale","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,i=this._map.getBearing(),o=e.extend({bearing:i},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),i=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","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&&Bi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale","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","maplibregl-ctrl-geolocate mapboxgl-ctrl-geolocate",this._container),n.create("span","maplibregl-ctrl-icon 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 i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}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","maplibregl-user-location-dot mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ri(this._dotElement),this._circleElement=n.create("div","maplibregl-user-location-accuracy-circle mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ri({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("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","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":zi--,Bi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error","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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++zi>1?(t={maximumAge:6e5,timeout:0},Bi=!0):(t=this.options.positionOptions,Bi=!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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(e.Evented),Ui={maxWidth:100,unit:"metric"},Vi=function(t){this.options=e.extend({},Ui,t),e.bindAll(["_onMove","setUnit"],this)};function Hi(e,t,n){var r=n&&n.maxWidth||100,i=e._container.clientHeight/2,o=e.unproject([0,i]),a=e.unproject([r,i]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){var u=3.2808*s;u>5280?Wi(t,r,u/5280,e._getUIString("ScaleControl.Miles")):Wi(t,r,u,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Wi(t,r,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Wi(t,r,s/1e3,e._getUIString("ScaleControl.Kilometers")):Wi(t,r,s,e._getUIString("ScaleControl.Meters"))}function Wi(e,t,n,r){var i,o,a,s=(i=n,(o=Math.pow(10,(""+Math.floor(i)).length-1))*(a=(a=i/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(a)));e.style.width=t*(s/n)+"px",e.innerHTML=s+" "+r}Vi.prototype.getDefaultPosition=function(){return"bottom-left"},Vi.prototype._onMove=function(){Hi(this._map,this._container,this.options)},Vi.prototype.onAdd=function(e){return this._map=e,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-scale mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Vi.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Vi.prototype.setUnit=function(e){this.options.unit=e,Hi(this._map,this._container,this.options)};var Gi=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")};Gi.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","maplibregl-ctrl maplibregl-ctrl-group 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},Gi.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Gi.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},Gi.prototype._setupUI=function(){var t=this._fullscreenButton=n.create("button","maplibregl-ctrl-fullscreen mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","maplibregl-ctrl-icon 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)},Gi.prototype._updateTitle=function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},Gi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Gi.prototype._isFullscreen=function(){return this._fullscreen},Gi.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("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Gi.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 qi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},$i=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Yi=function(t){function r(n){t.call(this),this.options=e.extend(Object.create(qi),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._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","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("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer","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("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","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(),i=e.window.document.createElement("body");for(i.innerHTML=t;n=i.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){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","maplibregl-popup-content mapboxgl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),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.setOffset=function(e){return this.options.offset=e,this._update(),this},r.prototype.toggleClassName=function(e){if(this._container)return this._container.classList.toggle(e)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","maplibregl-popup-close-button mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",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","maplibregl-popup mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","maplibregl-popup-tip 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("maplibregl-popup-track-pointer","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=Mi(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var i=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),o=this.options.anchor,a=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 i=e.Point.convert(n);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}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 s,u=this._container.offsetWidth,l=this._container.offsetHeight;s=i.y+a.bottom.y<l?["top"]:i.y>this._map.transform.height-l?["bottom"]:[],i.x<u/2?s.push("left"):i.x>this._map.transform.width-u/2&&s.push("right"),o=0===s.length?"bottom":s.join("-")}var c=i.add(a[o]).round();n.setTransform(this._container,ji[o]+" translate("+c.x+"px,"+c.y+"px)"),Ii(this._container,o,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var e=this._container.querySelector($i);e&&e.focus()}},r.prototype._onClose=function(){this.remove()},r}(e.Evented),Zi={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Si,NavigationControl:Ti,GeolocateControl:Ni,AttributionControl:bi,ScaleControl:Vi,FullscreenControl:Gi,Popup:Yi,Marker:Ri,Style:Ht,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:function(){ze().acquire(Ie)},clearPrewarmedResources:function(){var e=Re;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Ie),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 Fe.workerCount},set workerCount(e){Fe.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:"",addProtocol:function(t,n){e.config.REGISTERED_PROTOCOLS[t]=n},removeProtocol:function(t){delete e.config.REGISTERED_PROTOCOLS[t]}};return Zi})),n}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=r.createContext();function o(){return r.useContext(i)}t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]}},function(e,t,n){"use strict";var r=n(96);t.a=function(e){return(e=Object(r.b)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return y}));var r=n(186),i=n.n(r),o=n(368),a=n.n(o),s=n(18),u=n(28),l=n(6);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){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}var h=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.layout,f=e.children,h=Object.keys(t),m={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},v=!!Object(u.b)(f,"Bar");return h.reduce((function(o,a){var u,f,h,g,y,b=t[a],_=b.orientation,x=b.domain,w=b.padding,E=void 0===w?{}:w,O=b.mirror,C=b.reversed,D="".concat(_).concat(O?"Mirror":"");if("number"===b.type&&("gap"===b.padding||"no-gap"===b.padding)){var S=x[1]-x[0],k=1/0,A=b.categoricalDomain.sort();A.forEach((function(e,t){t>0&&(k=Math.min((e||0)-(A[t-1]||0),k))}));var T=k/S,P="vertical"===b.layout?n.height:n.width;if("gap"===b.padding&&(u=T*P/2),"no-gap"===b.padding){var M=Object(l.c)(e.barCategoryGap,T*P),j=T*P/2;u=j-M-(j-M)/P*M}}f="xAxis"===r?[n.left+(E.left||0)+(u||0),n.left+n.width-(E.right||0)-(u||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(E.bottom||0),n.top+(E.top||0)]:[n.top+(E.top||0)+(u||0),n.top+n.height-(E.bottom||0)-(u||0)]:b.range,C&&(f=[f[1],f[0]]);var I=Object(s.x)(b,i,v),F=I.scale,R=I.realScaleType;F.domain(x).range(f),Object(s.c)(F);var L=Object(s.r)(F,p(p({},b),{},{realScaleType:R}));"xAxis"===r?(y="top"===_&&!O||"bottom"===_&&O,h=n.left,g=m[D]-y*b.height):"yAxis"===r&&(y="left"===_&&!O||"right"===_&&O,h=m[D]-y*b.width,g=n.top);var z=p(p(p({},b),L),{},{realScaleType:R,x:h,y:g,scale:F,width:"xAxis"===r?n.width:b.width,height:"yAxis"===r?n.height:b.height});return z.bandSize=Object(s.e)(z,L),b.hide||"xAxis"!==r?b.hide||(m[D]+=(y?-1:1)*z.width):m[D]+=(y?-1:1)*z.height,p(p({},o),{},d({},a,z))}),{})},m=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},v=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return m({x:t,y:n},{x:r,y:i})},g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=void 0,this.scale=t}var t,n,r;return t=e,r=[{key:"create",value:function(t){return new e(t)}}],(n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}])&&c(t.prototype,n),r&&c(t,r),e}();g.EPS=1e-4;var y=function(e){var t=Object.keys(e).reduce((function(t,n){return p(p({},t),{},d({},n,g.create(e[n])))}),{});return p(p({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return a()(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return i()(e,(function(e,n){return t[n].isInRange(e)}))}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return f}));var r=n(19);function i(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?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"===typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!==typeof e)throw new Error(a(2));var i=e,o=t,u=[],p=u,d=!1;function h(){p===u&&(p=u.slice())}function m(){if(d)throw new Error(a(3));return o}function v(e){if("function"!==typeof e)throw new Error(a(4));if(d)throw new Error(a(5));var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error(a(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),u=null}}}function g(e){if(!c(e))throw new Error(a(7));if("undefined"===typeof e.type)throw new Error(a(8));if(d)throw new Error(a(9));try{d=!0,o=i(o,e)}finally{d=!1}for(var t=u=p,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!==typeof e)throw new Error(a(10));i=e,g({type:l.REPLACE})}function b(){var e,t=v;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return g({type:l.INIT}),(r={dispatch:g,subscribe:v,getState:m,replaceReducer:y})[s]=b,r}function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:l.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(u){o=u}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},u=0;u<s.length;u++){var l=s[u],c=n[l],f=e[l],p=c(f,t);if("undefined"===typeof p){t&&t.type;throw new Error(a(14))}i[l]=p,r=r||p!==f}return(r=r||s.length!==Object.keys(e).length)?i:e}}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=d.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";var r=n(4),i=n(19),o=n(1),a=n(0),s=(n(3),n(2)),u=n(7),l=n(588),c=a.forwardRef((function(e,t){var n,i=e.classes,u=e.className,c=e.component,f=void 0===c?"li":c,p=e.disableGutters,d=void 0!==p&&p,h=e.ListItemClasses,m=e.role,v=void 0===m?"menuitem":m,g=e.selected,y=e.tabIndex,b=Object(r.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==y?y:-1),a.createElement(l.a,Object(o.a)({button:!0,role:v,tabIndex:n,component:f,selected:g,disableGutters:d,classes:Object(o.a)({dense:i.dense},h),className:Object(s.a)(i.root,u,g&&i.selected,!d&&i.gutters),ref:t},b))}));t.a=Object(u.a)((function(e){return{root:Object(o.a)({},e.typography.body1,Object(i.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(o.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(c)},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},,function(e,t,n){var r=n(142),i=n(437),o=n(438),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(483),i=n(507),o=n(126),a=n(26),s=n(511);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},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})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(98),i=n(26),o=n(99);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){"use strict";function r(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var r=n(0),i=n.n(r),o=n(3),a=n.n(o),s=n(369),u=n(109),l=n.n(u);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):l()(r)};l()(r)}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})(e)}function p(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(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 h(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var i=p(r),o=i[0],a=i.slice(1);return"number"===typeof o?void c(n.bind(null,a),o):(n(o),void c(n.bind(null,a)))}"object"===f(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}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 v(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}var y=["Webkit","Moz","O","ms"],b=["-webkit-","-moz-","-o-","-ms-"],_=["transform","transformOrigin","transition"],x=function(e){return e},w=function(e,t){return Object.keys(t).reduce((function(n,r){return v(v({},n),{},g({},r,e(r,t[r])))}),{})},E=function(e){return Object.keys(e).reduce((function(e,t){return v(v({},e),function(e,t){if(-1===_.indexOf(e))return g({},e,t);var n="transition"===e,r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),i=t;return y.reduce((function(e,o,a){return n&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(b[a],"$1"))),v(v({},e),{},g({},o+r,i))}),{})}(t,e[t]))}),e)},O=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(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 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}var A=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},T=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},P=function(e,t){return function(n){var r=A(e,t);return T(r,n)}},M=function(e,t){return function(n){var r=A(e,t),i=[].concat(D(r.map((function(e,t){return e*t})).slice(1)),[0]);return T(i,n)}},j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var u=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=C(u,4);r=l[0],i=l[1],o=l[2],a=l[3]}}[r,o,i,a].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var c=P(r,o),f=P(i,a),p=M(r,o),d=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=c(n)-t,o=p(n);if(Math.abs(i-t)<1e-4||o<1e-4)return f(n);n=d(n-i/o)}return f(n)};return h.isStepper=!1,h},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,i=void 0===r?8:r,o=e.dt,a=void 0===o?17:o,s=function(e,t,r){var o=r+(-(e-t)*n-r*i)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<1e-4&&Math.abs(o)<1e-4?[t,0]:[s,o]};return s.isStepper=!0,s.dt=a,s};function F(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(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 L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(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 B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"===typeof e)return U(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)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var V=function(e,t,n){return e+(t-e)*n},H=function(e){return e.from!==e.to},W=function(e,t,n,r,i){var o,a,s,c,f=(o=e,a=t,[Object.keys(o),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),p=f.reduce((function(n,r){return L(L({},n),{},z({},r,[e[r],t[r]]))}),{}),d=f.reduce((function(n,r){return L(L({},n),{},z({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),h=-1,m=function(){return null};return m=n.isStepper?function(r){s||(s=r);var o=(r-s)/n.dt;d=function e(t,n,r){var i=w((function(e,n){if(H(n)){var r=B(t(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return L(L({},n),{},{from:i,velocity:o})}return n}),n);return r<1?w((function(e,t){return H(t)?L(L({},t),{},{velocity:V(t.velocity,i[e].velocity,r),from:V(t.from,i[e].from,r)}):t}),n):e(t,i,r-1)}(n,d,o),i(L(L(L({},e),t),w((function(e,t){return t.from}),d))),s=r,Object.values(d).filter(H).length&&(h=l()(m))}:function(o){c||(c=o);var a=(o-c)/r,s=w((function(e,t){return V.apply(void 0,F(t).concat([n(a)]))}),p);if(i(L(L(L({},e),t),s)),a<1)h=l()(m);else{var u=w((function(e,t){return V.apply(void 0,F(t).concat([n(1)]))}),p);i(L(L(L({},e),t),u))}},function(){return l()(m),function(){Object(u.cancel)(h)}}};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 q(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(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 Z(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?Z(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 J(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 Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==G(t)&&"function"!==typeof t?ne(e):t}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ie=function(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&&Q(e,t)}(u,e);var t,n,o,a=ee(u);function u(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var r=(n=a.call(this,e,t)).props,i=r.isActive,o=r.attributeName,s=r.from,l=r.to,c=r.steps,f=r.children;if(n.handleStyleChange=n.handleStyleChange.bind(ne(n)),n.changeStyle=n.changeStyle.bind(ne(n)),!i)return n.state={style:{}},"function"===typeof f&&(n.state={style:l}),te(n);if(c&&c.length)n.state={style:c[0].style};else if(s){if("function"===typeof f)return n.state={style:s},te(n);n.state={style:o?K({},o,s):s}}else n.state={style:{}};return n}return t=u,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,o=t.shouldReAnimate;if(r)if(n){if(!(Object(s.deepEqual)(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=a||o?this.props.from:e.to;if(this.state&&this.state.style){var l={style:i?K({},i,u):u};(i&&this.state.style[i]!==u||!i&&this.state.style!==u)&&this.setState(l)}this.runAnimation(X(X({},this.props),{},{from:u,begin:0}))}}else{var c={style:i?K({},i,this.props.to):this.props.to};this.state&&this.state.style&&(i&&this.state.style[i]!==this.props.to||!i&&this.state.style!==this.props.to)&&this.setState(c)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,o=e.easing,a=e.begin,s=e.onAnimationEnd,u=e.onAnimationStart,l=W(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return j(r);case"spring":return I();default:if("cubic-bezier"===r.split("(")[0])return j(r)}return"function"===typeof r?r:null}(o),i,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=l()},i,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,o=n[0],a=o.style,s=o.duration,u=void 0===s?0:s;return this.manager.start([i].concat($(n.reduce((function(e,r,i){if(0===i)return e;var o=r.duration,a=r.easing,s=void 0===a?"ease":a,u=r.style,l=r.properties,c=r.onAnimationEnd,f=i>0?n[i-1]:r,p=l||Object.keys(u);if("function"===typeof s||"spring"===s)return[].concat($(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:o,easing:s}),o]);var d=O(p,o,s),h=X(X(X({},f.style),u),{},{transition:d});return[].concat($(e),[h,o,c]).filter(x)}),[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=h());var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,o=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,u=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(e);else{var f=r?K({},r,i):i,p=O(Object.keys(f),n,o);c.start([a,t,X(X({},f),{},{transition:p}),n,s])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,q(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),a=r.Children.count(t),s=E(this.state.style);if("function"===typeof t)return t(s);if(!n||0===a)return t;var u=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,a=t.className;return Object(r.cloneElement)(e,X(X({},o),{},{style:X(X({},i),s),className:a}))};return 1===a?u(r.Children.only(t)):i.a.createElement("div",null,r.Children.map(t,(function(e){return u(e)})))}}])&&J(t.prototype,n),o&&J(t,o),u}(r.PureComponent);ie.displayName="Animate",ie.propTypes={from:a.a.oneOfType([a.a.object,a.a.string]),to:a.a.oneOfType([a.a.object,a.a.string]),attributeName:a.a.string,duration:a.a.number,begin:a.a.number,easing:a.a.oneOfType([a.a.string,a.a.func]),steps:a.a.arrayOf(a.a.shape({duration:a.a.number.isRequired,style:a.a.object.isRequired,easing:a.a.oneOfType([a.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a.a.func]),properties:a.a.arrayOf("string"),onAnimationEnd:a.a.func})),children:a.a.oneOfType([a.a.node,a.a.func]),isActive:a.a.bool,canBegin:a.a.bool,onAnimationEnd:a.a.func,shouldReAnimate:a.a.bool,onAnimationStart:a.a.func,onAnimationReStart:a.a.func},ie.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var oe=ie,ae=n(188);function se(e){return(se="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 ue(){return(ue=Object.assign||function(e){for(var t=1;t<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)}function le(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ce(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 fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(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 me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var i=ye(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ge(this,n)}}function ge(e,t){return!t||"object"!==se(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"===typeof e&&isFinite(e)});var be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(n)?n:0},_e=function(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&&me(e,t)}(s,e);var t,n,o,a=ve(s);function s(){var e;de(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).state={isActive:!1},e.handleEnter=function(t,n){var r=e.props,i=r.appearOptions,o=r.enterOptions;e.handleStyleActive(n?i:o)},e.handleExit=function(){e.handleStyleActive(e.props.leaveOptions)},e}return t=s,(n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(fe(fe({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return be(t)+be(n)+be(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=(t.appearOptions,t.enterOptions,t.leaveOptions,le(t,["children","appearOptions","enterOptions","leaveOptions"]));return i.a.createElement(ae.Transition,ue({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return i.a.createElement(oe,e.state,r.Children.only(n))}))}}])&&he(t.prototype,n),o&&he(t,o),s}(r.Component);_e.propTypes={appearOptions:a.a.object,enterOptions:a.a.object,leaveOptions:a.a.object,children:a.a.element};var xe=_e;function we(e){var t=e.component,n=e.children,o=e.appear,a=e.enter,s=e.leave;return i.a.createElement(ae.TransitionGroup,{component:t},r.Children.map(n,(function(e,t){return i.a.createElement(xe,{appearOptions:o,enterOptions:a,leaveOptions:s,key:"child-".concat(t)},e)})))}we.propTypes={appear:a.a.object,enter:a.a.object,leave:a.a.object,children:a.a.oneOfType([a.a.array,a.a.element]),component:a.a.any},we.defaultProps={component:"span"};t.a=oe},function(e,t,n){(function(t){for(var r=n(560),i="undefined"===typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],u=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!u){var c=0,f=0,p=[];s=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(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},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}}).call(this,n(72))},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},c=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,c=e.classes,f=e.className,p=e.color,d=void 0===p?"initial":p,h=e.component,m=e.display,v=void 0===m?"initial":m,g=e.gutterBottom,y=void 0!==g&&g,b=e.noWrap,_=void 0!==b&&b,x=e.paragraph,w=void 0!==x&&x,E=e.variant,O=void 0===E?"body1":E,C=e.variantMapping,D=void 0===C?l:C,S=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=h||(w?"p":D[O]||l[O])||"span";return o.createElement(k,Object(r.a)({className:Object(a.a)(c.root,f,"inherit"!==O&&c[O],"initial"!==d&&c["color".concat(Object(u.a)(d))],_&&c.noWrap,y&&c.gutterBottom,w&&c.paragraph,"inherit"!==s&&c["align".concat(Object(u.a)(s))],"initial"!==v&&c["display".concat(Object(u.a)(v))]),ref:t},S))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(c)},,function(e,t,n){var r=n(445),i=n(448);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var r=n(19),i=n(4),o=n(582),a=n(79),s=n(1);function u(e,t,n){var i;return Object(s.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(s.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(s.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var l=n(384),c={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={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"},d={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"},h={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"},m={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"},v={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"},g={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"},y=n(12),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.j)(e.main,i):"dark"===t&&(e.dark=Object(y.b)(e.main,o)))}function w(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,a=void 0===r?{light:d.A200,main:d.A400,dark:d.A700}:r,u=e.error,w=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,E=e.warning,O=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,C=e.info,D=void 0===C?{light:v[300],main:v[500],dark:v[700]}:C,S=e.success,k=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,A=e.type,T=void 0===A?"light":A,P=e.contrastThreshold,M=void 0===P?3:P,j=e.tonalOffset,I=void 0===j?.2:j,F=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function R(e){return Object(y.f)(e,_.text.primary)>=M?_.text.primary:b.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(s.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return x(e,"light",n,I),x(e,"dark",r,I),e.contrastText||(e.contrastText=R(e.main)),e},z={dark:_,light:b};return Object(o.a)(Object(s.a)({common:c,type:T,primary:L(n),secondary:L(a,"A400","A200","A700"),error:L(w),warning:L(O),info:L(D),success:L(k),grey:f,contrastThreshold:M,getContrastText:R,augmentColor:L,tonalOffset:I},z[T]),F)}function E(e){return Math.round(1e5*e)/1e5}function O(e){return E(e)}var C={textTransform:"uppercase"};function D(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,u=n.fontSize,l=void 0===u?14:u,c=n.fontWeightLight,f=void 0===c?300:c,p=n.fontWeightRegular,d=void 0===p?400:p,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,_=n.allVariants,x=n.pxToRem,w=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var D=l/14,S=x||function(e){return"".concat(e/b*D,"rem")},k=function(e,t,n,r,i){return Object(s.a)({fontFamily:a,fontWeight:e,fontSize:S(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===a?{letterSpacing:"".concat(E(r/t),"em")}:{},i,_)},A={h1:k(f,96,1.167,-1.5),h2:k(f,60,1.2,-.5),h3:k(d,48,1.167,0),h4:k(d,34,1.235,.25),h5:k(d,24,1.334,0),h6:k(m,20,1.6,.15),subtitle1:k(d,16,1.75,.15),subtitle2:k(m,14,1.57,.1),body1:k(d,16,1.5,.15),body2:k(d,14,1.43,.15),button:k(m,14,1.75,.4,C),caption:k(d,12,1.66,.4),overline:k(d,12,2.66,1,C)};return Object(o.a)(Object(s.a)({htmlFontSize:b,pxToRem:S,round:O,fontFamily:a,fontSize:l,fontWeightLight:f,fontWeightRegular:d,fontWeightMedium:m,fontWeightBold:g},A),w,{clone:!1})}function S(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var k=["none",S(0,2,1,-1,0,1,1,0,0,1,3,0),S(0,3,1,-2,0,2,2,0,0,1,5,0),S(0,3,3,-2,0,3,4,0,0,1,8,0),S(0,2,4,-1,0,4,5,0,0,1,10,0),S(0,3,5,-1,0,5,8,0,0,1,14,0),S(0,3,5,-1,0,6,10,0,0,1,18,0),S(0,4,5,-2,0,7,10,1,0,2,16,1),S(0,5,5,-3,0,8,10,1,0,3,14,2),S(0,5,6,-3,0,9,12,1,0,3,16,2),S(0,6,6,-3,0,10,14,1,0,4,18,3),S(0,6,7,-4,0,11,15,1,0,4,20,3),S(0,7,8,-4,0,12,17,2,0,5,22,4),S(0,7,8,-4,0,13,19,2,0,5,24,4),S(0,7,9,-4,0,14,21,2,0,5,26,4),S(0,8,9,-5,0,15,22,2,0,6,28,5),S(0,8,10,-5,0,16,24,2,0,6,30,5),S(0,8,11,-5,0,17,26,2,0,6,32,5),S(0,9,11,-5,0,18,28,2,0,7,34,6),S(0,9,12,-6,0,19,29,2,0,7,36,6),S(0,10,13,-6,0,20,31,3,0,8,38,7),S(0,10,13,-6,0,21,33,3,0,8,40,7),S(0,10,14,-6,0,22,35,3,0,8,42,7),S(0,11,14,-7,0,23,36,3,0,9,44,8),S(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},T=n(44),P=(n(86),n(101));n(3);var M=function(e,t){return t?Object(o.a)(e,t,{clone:!1}):e},j={xs:0,sm:600,md:960,lg:1280,xl:1920},I={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(j[e],"px)")}};var F={m:"margin",p:"padding"},R={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},L={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!L[e])return[e];e=L[e]}var t=e.split(""),n=Object(T.a)(t,2),r=n[0],i=n[1],o=F[r],a=R[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),B=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function N(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function U(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function V(e){var t=N(e.theme);return Object.keys(e).map((function(n){if(-1===B.indexOf(n))return null;var r=U(z(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||I;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===Object(P.a)(t)){var i=e.theme.breakpoints||I;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(M,{})}V.propTypes={},V.filterProps=B;function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=N({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var W=n(50),G=n(176);function q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,s=void 0===r?{}:r,l=e.palette,c=void 0===l?{}:l,f=e.spacing,p=e.typography,d=void 0===p?{}:p,h=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=w(c),v=Object(a.a)(n),g=H(f),y=Object(o.a)({breakpoints:v,direction:"ltr",mixins:u(v,g,s),overrides:{},palette:m,props:{},shadows:k,typography:D(m,d),spacing:g,shape:A,transitions:W.a,zIndex:G.a},h),b=arguments.length,_=new Array(b>1?b-1:0),x=1;x<b;x++)_[x-1]=arguments[x];return y=_.reduce((function(e,t){return Object(o.a)(e,t)}),y)}function $(){return q.apply(void 0,arguments)}t.b=q},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(531)("toUpperCase");e.exports=r},function(e,t,n){"use strict";function r(e){return+e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(14),i=n.n(r),o=n(0),a=n.n(o),s=n(191),u=n.n(s),l=n(21),c=n.n(l),f=n(6),p=n(85),d=n(17),h=n(75);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})(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}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function y(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 _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 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 S(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){k(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 k(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=/[ \f\n\r\t\v\u2028\u2029]+/,T=function(e){try{var t=[];return i()(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(A)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Object(h.c)(t,e.style).width}})),spaceWidth:e.breakAll?0:Object(h.c)("\xa0",e.style).width}}catch(n){return null}},P=function(e){return[{words:i()(e)?[]:e.toString().split(A)}]},M=function(e,t){if((e.width||e.scaleToFit)&&!p.a.isSsr&&t){var n=T(e);return n?function(e,t,n,r,i){var o=Object(f.g)(e.maxLines),a=e.children,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var o=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||i||s.width+a+n<r))s.words.push(o),s.width+=a+n;else{var u={words:[o],width:a};e.push(u)}return e}),[])},u=s(t);if(!o)return u;for(var l,c=function(t){var n=a.slice(0,t),i=T(S(S({},e),{},{children:n+"\u2026"})).wordsWithComputedWidth,o=s(i);return[o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r,o]},p=0,d=a.length-1,h=0;p<=d&&h<=a.length-1;){var m=Math.floor((p+d)/2),v=O(c(m-1),2),g=v[0],y=v[1],b=O(c(m),1)[0];if(g||b||(p=m+1),g&&b&&(d=m-1),!g&&b){l=y;break}h++}return l||u}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):P(e.children)}return P(e.children)},j=function(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&&_(e,t)}(o,e);var t,n,r,i=x(o);function o(){var e;y(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={},e}return t=o,r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:M(e,n)}}return null}}],(n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,i=e.verticalAnchor,o=e.scaleToFit,s=e.angle,l=e.lineHeight,p=e.capHeight,h=e.className,m=e.breakAll,y=g(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),b=this.state.wordsByLines;if(!Object(f.f)(y.x)||!Object(f.f)(y.y))return null;var _,x=y.x+(Object(f.g)(t)?t:0),w=y.y+(Object(f.g)(n)?n:0);switch(i){case"start":_=u()("calc(".concat(p,")"));break;case"middle":_=u()("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(p," / 2))"));break;default:_=u()("calc(".concat(b.length-1," * -").concat(l,")"))}var E=[];if(o){var O=b[0].width,C=this.props.width;E.push("scale(".concat((Object(f.g)(C)?C/O:1)/O,")"))}return s&&E.push("rotate(".concat(s,", ").concat(x,", ").concat(w,")")),E.length&&(y.transform=E.join(" ")),a.a.createElement("text",v({},Object(d.c)(y,!0),{x:x,y:w,className:c()("recharts-text",h),textAnchor:r}),b.map((function(e,t){return a.a.createElement("tspan",{x:x,dy:0===t?_:l,key:t},e.words.join(m?"":" "))})))}}])&&b(t.prototype,n),r&&b(t,r),o}(o.Component);j.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.a=i},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=(n(3),n(2)),s=n(7),u=n(12),l=n(159),c=n(10),f=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,f=e.color,p=void 0===f?"default":f,d=e.component,h=void 0===d?"button":d,m=e.disabled,v=void 0!==m&&m,g=e.disableElevation,y=void 0!==g&&g,b=e.disableFocusRipple,_=void 0!==b&&b,x=e.endIcon,w=e.focusVisibleClassName,E=e.fullWidth,O=void 0!==E&&E,C=e.size,D=void 0===C?"medium":C,S=e.startIcon,k=e.type,A=void 0===k?"button":k,T=e.variant,P=void 0===T?"text":T,M=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=S&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(c.a)(D))])},S),I=x&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(c.a)(D))])},x);return o.createElement(l.a,Object(i.a)({className:Object(a.a)(s.root,s[P],u,"inherit"===p?s.colorInherit:"default"!==p&&s["".concat(P).concat(Object(c.a)(p))],"medium"!==D&&[s["".concat(P,"Size").concat(Object(c.a)(D))],s["size".concat(Object(c.a)(D))]],y&&s.disableElevation,v&&s.disabled,O&&s.fullWidth),component:h,disabled:v,focusRipple:!_,focusVisibleClassName:Object(a.a)(s.focusVisible,w),ref:t,type:A},M),o.createElement("span",{className:s.label},j,n,I))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(u.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(u.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(12),l=n(159),c=n(10),f=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,u=e.children,f=e.classes,p=e.className,d=e.color,h=void 0===d?"default":d,m=e.disabled,v=void 0!==m&&m,g=e.disableFocusRipple,y=void 0!==g&&g,b=e.size,_=void 0===b?"medium":b,x=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(l.a,Object(r.a)({className:Object(a.a)(f.root,p,"default"!==h&&f["color".concat(Object(c.a)(h))],v&&f.disabled,"small"===_&&f["size".concat(Object(c.a)(_))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:v,ref:t},x),o.createElement("span",{className:f.label},u))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},,,,function(e,t,n){"use strict";n.r(t);var r=n(10);n.d(t,"capitalize",(function(){return r.a}));var i=n(67);n.d(t,"createChainedFunction",(function(){return i.a}));var o=n(27);n.d(t,"createSvgIcon",(function(){return o.a}));var a=n(95);n.d(t,"debounce",(function(){return a.a}));var s=n(65);n.d(t,"deprecatedPropType",(function(){return s.a}));var u=n(103);n.d(t,"isMuiElement",(function(){return u.a}));var l=n(30);n.d(t,"ownerDocument",(function(){return l.a}));var c=n(102);n.d(t,"ownerWindow",(function(){return c.a}));var f=n(204);n.d(t,"requirePropFactory",(function(){return f.a}));var p=n(59);n.d(t,"setRef",(function(){return p.a}));var d=n(205);n.d(t,"unsupportedProp",(function(){return d.a}));var h=n(60);n.d(t,"useControlled",(function(){return h.a}));var m=n(31);n.d(t,"useEventCallback",(function(){return m.a}));var v=n(20);n.d(t,"useForkRef",(function(){return v.a}));var g=n(47);n.d(t,"unstable_useId",(function(){return g.a}));var y=n(81);n.d(t,"useIsFocusVisible",(function(){return y.a}))},function(e,t,n){var r=n(98),i=n(99);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(145);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(146);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(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)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=a},function(e,t,n){var r=n(220),i=n(518),o=n(522),a=n(169),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){"use strict";t.a=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}},function(e,t,n){"use strict";Array.prototype.slice;t.a=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(0),i=n.n(r),o=n(21),a=n.n(o),s=n(17);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})(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}).apply(this,arguments)}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){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(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&&p(e,t)}(u,e);var t,n,r,o=d(u);function u(){return c(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,u=a()("recharts-dot",o);return t===+t&&n===+n&&r===+r?i.a.createElement("circle",l({},Object(s.c)(this.props),Object(s.a)(this.props),{className:u,cx:t,cy:n,r:r})):null}}])&&f(t.prototype,n),r&&f(t,r),u}(r.PureComponent)},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(223);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(529)();e.exports=r},function(e,t,n){var r=n(100),i=n(541);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(53),i=n.n(r),o=n(15),a=n.n(o),s=n(0),u=n.n(s),l=n(21),c=n.n(l),f=n(107),p=n(75),d=n(45),h=n(117),m=n(78),v=n(85),g=n(6),y=n(17);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})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t<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)}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 w(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){E(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 E(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,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function C(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 S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(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&&S(e,t)}(s,e);var t,n,r,o=k(s);function s(){return C(this,s),o.apply(this,arguments)}return t=s,r=[{key:"getTicks",value:function(e){var t=e.tick,n=e.ticks,r=e.viewBox,i=e.minTickGap,o=e.orientation,a=e.interval,u=e.tickFormatter,l=e.unit;return n&&n.length&&t?Object(g.g)(a)||v.a.isSsr?s.getNumberIntervalTicks(n,"number"===typeof a&&Object(g.g)(a)?a:0):"preserveStartEnd"===a?s.getTicksStart({ticks:n,tickFormatter:u,viewBox:r,orientation:o,minTickGap:i,unit:l},!0):"preserveStart"===a?s.getTicksStart({ticks:n,tickFormatter:u,viewBox:r,orientation:o,minTickGap:i,unit:l}):s.getTicksEnd({ticks:n,tickFormatter:u,viewBox:r,orientation:o,minTickGap:i,unit:l}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)===0}))}},{key:"getTicksStart",value:function(e,t){var n,r,i=e.ticks,o=e.tickFormatter,s=e.viewBox,u=e.orientation,l=e.minTickGap,c=e.unit,f=s.x,d=s.y,h=s.width,m=s.height,v="top"===u||"bottom"===u?"width":"height",y=(i||[]).slice(),b=c&&"width"===v?Object(p.c)(c)[v]:0,_=y.length,x=_>=2?Object(g.i)(y[1].coordinate-y[0].coordinate):1;if(1===x?(n="width"===v?f:d,r="width"===v?f+h:d+m):(n="width"===v?f+h:d+m,r="width"===v?f:d),t){var E=i[_-1],O=a()(o)?o(E.value,_-1):E.value,C=Object(p.c)(O)[v]+b,D=x*(E.coordinate+x*C/2-r);y[_-1]=E=w(w({},E),{},{tickCoord:D>0?E.coordinate-D*x:E.coordinate}),x*(E.tickCoord-x*C/2-n)>=0&&x*(E.tickCoord+x*C/2-r)<=0&&(r=E.tickCoord-x*(C/2+l),y[_-1]=w(w({},E),{},{isShow:!0}))}for(var S=t?_-1:_,k=0;k<S;k++){var A=y[k],T=a()(o)?o(A.value,k):A.value,P=Object(p.c)(T)[v]+b;if(0===k){var M=x*(A.coordinate-x*P/2-n);y[k]=A=w(w({},A),{},{tickCoord:M<0?A.coordinate-M*x:A.coordinate})}else y[k]=A=w(w({},A),{},{tickCoord:A.coordinate});x*(A.tickCoord-x*P/2-n)>=0&&x*(A.tickCoord+x*P/2-r)<=0&&(n=A.tickCoord+x*(P/2+l),y[k]=w(w({},A),{},{isShow:!0}))}return y.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,s=e.orientation,u=e.minTickGap,l=e.unit,c=o.x,f=o.y,d=o.width,h=o.height,m="top"===s||"bottom"===s?"width":"height",v=l&&"width"===m?Object(p.c)(l)[m]:0,y=(r||[]).slice(),b=y.length,_=b>=2?Object(g.i)(y[1].coordinate-y[0].coordinate):1;1===_?(t="width"===m?c:f,n="width"===m?c+d:f+h):(t="width"===m?c+d:f+h,n="width"===m?c:f);for(var x=b-1;x>=0;x--){var E=y[x],O=a()(i)?i(E.value,b-x-1):E.value,C=Object(p.c)(O)[m]+v;if(x===b-1){var D=_*(E.coordinate+_*C/2-n);y[x]=E=w(w({},E),{},{tickCoord:D>0?E.coordinate-D*_:E.coordinate})}else y[x]=E=w(w({},E),{},{tickCoord:E.coordinate});_*(E.tickCoord-_*C/2-t)>=0&&_*(E.tickCoord+_*C/2-n)<=0&&(n=E.tickCoord-_*(C/2+u),y[x]=w(w({},E),{},{isShow:!0}))}return y.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return u.a.isValidElement(e)?u.a.cloneElement(e,t):a()(e)?e(t):u.a.createElement(h.a,_({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(n=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,n=O(e,["viewBox"]),r=this.props,i=r.viewBox,o=O(r,["viewBox"]);return!Object(f.a)(t,i)||!Object(f.a)(n,o)}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,s=this.props,u=s.x,l=s.y,c=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,m=s.tickMargin,v=h?-1:1,y=e.tickSize||d,b=Object(g.g)(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-v*y)-v*m,o=b;break;case"left":r=i=e.coordinate,o=(t=(n=u+ +!h*c)-v*y)-v*m,a=b;break;case"right":r=i=e.coordinate,o=(t=(n=u+ +h*c)+v*y)+v*m,a=b;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+v*y)+v*m,o=b}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,s=e.mirror,l=e.axisLine,f=w(w(w({},Object(y.c)(this.props)),Object(y.c)(l)),{},{fill:"none"});if("top"===a||"bottom"===a){var p=+("top"===a&&!s||"bottom"===a&&s);f=w(w({},f),{},{x1:t,y1:n+p*o,x2:t+r,y2:n+p*o})}else{var d=+("left"===a&&!s||"right"===a&&s);f=w(w({},f),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+o})}return u.a.createElement("line",_({},f,{className:c()("recharts-cartesian-axis-line",i()(l,"className"))}))}},{key:"renderTicks",value:function(e){var t=this,n=this.props,r=n.tickLine,o=n.stroke,l=n.tick,f=n.tickFormatter,p=n.unit,h=s.getTicks(w(w({},this.props),{},{ticks:e})),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),g=Object(y.c)(this.props),b=Object(y.c)(l),x=w(w({},g),{},{fill:"none"},Object(y.c)(r)),E=h.map((function(e,n){var E=t.getTickLineCoord(e),O=E.line,C=E.tick,D=w(w(w(w({textAnchor:m,verticalAnchor:v},g),{},{stroke:"none",fill:o},b),C),{},{index:n,payload:e,visibleTicksCount:h.length,tickFormatter:f});return u.a.createElement(d.a,_({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Object(y.b)(t.props,e,n)),r&&u.a.createElement("line",_({},x,O,{className:c()("recharts-cartesian-axis-tick-line",i()(r,"className"))})),l&&s.renderTickItem(l,D,"".concat(a()(f)?f(e.value,n):e.value).concat(p||"")))}));return u.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,i=e.ticksGenerator,o=e.className;if(e.hide)return null;var s=this.props,l=s.ticks,f=O(s,["ticks"]),p=l;return a()(i)&&(p=l&&l.length>0?i(this.props):i(f)),n<=0||r<=0||!p||!p.length?null:u.a.createElement(d.a,{className:c()("recharts-cartesian-axis",o)},t&&this.renderAxisLine(),this.renderTicks(p),m.a.renderCallByParent(this.props))}}])&&D(t.prototype,n),r&&D(t,r),s}(s.Component);P.displayName="CartesianAxis",P.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"}},,function(e,t,n){var r=n(80).Symbol;e.exports=r},function(e,t,n){var r=n(15),i=n(217);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(52),i=n(29),o=Symbol("implicit");function a(){var e=new Map,t=[],n=[],s=o;function u(r){var i=r+"",a=e.get(i);if(!a){if(s!==o)return s;e.set(i,a=t.push(r))}return n[(a-1)%n.length]}return u.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;var i,o=Object(r.a)(n);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a+"";e.has(s)||e.set(s,t.push(a))}}catch(l){o.e(l)}finally{o.f()}return u},u.range=function(e){return arguments.length?(n=Array.from(e),u):n.slice()},u.unknown=function(e){return arguments.length?(s=e,u):s},u.copy=function(){return a(t,n).unknown(s)},i.b.apply(u,arguments),u}},function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(21),a=n.n(o),s=n(17);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}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,c=e.className,f=e.style,p=l(e,["children","width","height","viewBox","className","style"]),d=o||{width:n,height:r,x:0,y:0},h=a()("recharts-surface",c);return i.a.createElement("svg",u({},Object(s.c)(p,!0,!0),{className:h,width:n,height:r,style:f,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),version:"1.1"}),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(9),i=n.n(r),o=n(52),a=i.a.mark(s);function s(e,t){var n,r,s,u,l,c,f;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(void 0!==t){i.next=21;break}n=Object(o.a)(e),i.prev=2,n.s();case 4:if((r=n.n()).done){i.next=11;break}if(!(null!=(s=r.value)&&(s=+s)>=s)){i.next=9;break}return i.next=9,s;case 9:i.next=4;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(2),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:i.next=40;break;case 21:u=-1,l=Object(o.a)(e),i.prev=23,l.s();case 25:if((c=l.n()).done){i.next=32;break}if(f=c.value,!(null!=(f=t(f,++u,e))&&(f=+f)>=f)){i.next=30;break}return i.next=30,f;case 30:i.next=25;break;case 32:i.next=37;break;case 34:i.prev=34,i.t1=i.catch(23),l.e(i.t1);case 37:return i.prev=37,l.f(),i.finish(37);case 40:case"end":return i.stop()}}),a,null,[[2,13,16,19],[23,34,37,40]])}t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return b}));var r=n(0),i=n.n(r),o=n(21),a=n.n(o),s=n(108),u=n(17);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})(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}).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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),o+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*c[1])),o+="L ".concat(e+n,",").concat(t+r-s*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(e+n-u*c[2],",").concat(t+r)),o+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+n-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-u*p,",").concat(t+r,"\n L ").concat(e+u*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},y=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),c=Math.min(o,o+s),f=Math.max(o,o+s);return n>=u&&n<=l&&r>=c&&r<=f}return!1},b=function(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&&d(e,t)}(l,e);var t,n,r,o=h(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=l,(n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.width,l=t.height,f=t.radius,p=t.className,d=this.state.totalLength,h=this.props,m=h.animationEasing,v=h.animationDuration,y=h.animationBegin,b=h.isAnimationActive,_=h.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||l!==+l||0===o||0===l)return null;var x=a()("recharts-rectangle",p);return _?i.a.createElement(s.a,{canBegin:d>0,from:{width:o,height:l,x:n,y:r},to:{width:o,height:l,x:n,y:r},duration:v,animationEasing:m,isActive:_},(function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return i.a.createElement(s.a,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:b,easing:m},i.a.createElement("path",c({},Object(u.c)(e.props,!0),{className:x,d:g(o,a,n,r,f),ref:function(t){e.node=t}})))})):i.a.createElement("path",c({},Object(u.c)(this.props,!0),{className:x,d:g(n,r,o,l,f)}))}}])&&p(t.prototype,n),r&&p(t,r),l}(r.PureComponent);b.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return te}));var r=n(26),i=n.n(r),o=n(115),a=n.n(o),s=n(15),u=n.n(s),l=n(0),c=n.n(l),f=function(){};function p(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 d(e){this._context=e}d.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:p(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:p(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function h(e){this._context=e}h.prototype={areaStart:f,areaEnd:f,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)}},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:p(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m(e){this._context=e}m.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:p(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function v(e){this._context=e}v.prototype={areaStart:f,areaEnd:f,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))}};function g(e){this._context=e}g.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)}}};var y=function(e){return new g(e)};function b(e){return e<0?-1:1}function _(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(b(o)+b(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function x(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function w(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function E(e){this._context=e}function O(e){this._context=new C(e)}function C(e){this._context=e}function D(e){this._context=e}function S(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}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:w(this,this._t0,x(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,w(this,x(this,n=_(this,e,t)),n);break;default:w(this,this._t0,n=_(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(O.prototype=Object.create(E.prototype)).point=function(e,t){E.prototype.point.call(this,t,e)},C.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,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},D.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=S(e),i=S(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(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)}};function k(e,t){this._context=e,this._t=t}k.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)}}this._x=e,this._y=t}};var A=n(674),T=n(132),P=n(36);function M(e){return e[0]}function j(e){return e[1]}var I=function(e,t){var n=Object(P.a)(!0),r=null,i=y,o=null;function a(a){var s,u,l,c=(a=Object(T.a)(a)).length,f=!1;for(null==r&&(o=i(l=Object(A.a)())),s=0;s<=c;++s)!(s<c&&n(u=a[s],s,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,a),+t(u,s,a));if(l)return o=null,l+""||null}return e="function"===typeof e?e:void 0===e?M:Object(P.a)(e),t="function"===typeof t?t:void 0===t?j:Object(P.a)(t),a.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(P.a)(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(P.a)(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:Object(P.a)(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a},F=function(e,t,n){var r=null,i=Object(P.a)(!0),o=null,a=y,s=null;function u(u){var l,c,f,p,d,h=(u=Object(T.a)(u)).length,m=!1,v=new Array(h),g=new Array(h);for(null==o&&(s=a(d=Object(A.a)())),l=0;l<=h;++l){if(!(l<h&&i(p=u[l],l,u))===m)if(m=!m)c=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=l-1;f>=c;--f)s.point(v[f],g[f]);s.lineEnd(),s.areaEnd()}m&&(v[l]=+e(p,l,u),g[l]=+t(p,l,u),s.point(r?+r(p,l,u):v[l],n?+n(p,l,u):g[l]))}if(d)return s=null,d+""||null}function l(){return I().defined(i).curve(a).context(o)}return e="function"===typeof e?e:void 0===e?M:Object(P.a)(+e),t="function"===typeof t?t:void 0===t?Object(P.a)(0):Object(P.a)(+t),n="function"===typeof n?n:void 0===n?j:Object(P.a)(+n),u.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(P.a)(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:Object(P.a)(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Object(P.a)(+e),u):r},u.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(P.a)(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"===typeof e?e:Object(P.a)(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:Object(P.a)(+e),u):n},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(n)},u.lineX1=function(){return l().x(r).y(t)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:Object(P.a)(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u},R=n(21),L=n.n(R),z=n(17),B=n(6);function N(e){return(N="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 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}).apply(this,arguments)}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 H(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){W(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 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 G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(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){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var i=X(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==N(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K={curveBasisClosed:function(e){return new h(e)},curveBasisOpen:function(e){return new m(e)},curveBasis:function(e){return new d(e)},curveLinearClosed:function(e){return new v(e)},curveLinear:y,curveMonotoneX:function(e){return new E(e)},curveMonotoneY:function(e){return new O(e)},curveNatural:function(e){return new D(e)},curveStep:function(e){return new k(e,.5)},curveStepAfter:function(e){return new k(e,1)},curveStepBefore:function(e){return new k(e,0)}},J=function(e){return e.x===+e.x&&e.y===+e.y},Q=function(e){return e.x},ee=function(e){return e.y},te=function(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&&$(e,t)}(s,e);var t,n,r,o=Y(s);function s(){return G(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,s=t.layout,l=t.connectNulls,c=function(e,t){if(u()(e))return e;var n="curve".concat(a()(e));return"curveMonotone"===n&&t?K["".concat(n).concat("vertical"===t?"Y":"X")]:K[n]||y}(n,s),f=l?r.filter((function(e){return J(e)})):r;if(i()(o)){var p=l?o.filter((function(e){return J(e)})):o,d=f.map((function(e,t){return H(H({},e),{},{base:p[t]})}));return(e="vertical"===s?F().y(ee).x1(Q).x0((function(e){return e.base.x})):F().x(Q).y1(ee).y0((function(e){return e.base.y}))).defined(J).curve(c),e(d)}return(e="vertical"===s&&Object(B.g)(o)?F().y(ee).x1(Q).x0(o):Object(B.g)(o)?F().x(Q).y1(ee).y0(o):I().x(Q).y(ee)).defined(J).curve(c),e(f)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?this.getPath():r;return c.a.createElement("path",U({},Object(z.c)(this.props),Object(z.a)(this.props),{className:L()("recharts-curve",t),d:o,ref:i}))}}])&&q(t.prototype,n),r&&q(t,r),s}(l.PureComponent);te.defaultProps={type:"linear",points:[],connectNulls:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ge}));var r=n(15),i=n.n(r),o=n(139),a=n.n(o),s=n(0),u=n.n(s),l=n(21),c=n.n(l),f=n(149),p=n(115),d=n.n(p),h=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),m=2*h;var v={draw:function(e,t){var n=Math.sqrt(t/h);e.moveTo(n,0),e.arc(0,0,n,0,m)}},g={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()}},y=Math.sqrt(1/3),b=2*y,_={draw:function(e,t){var n=Math.sqrt(t/b),r=n*y;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},x={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},w=Math.sin(h/10)/Math.sin(7*h/10),E=Math.sin(m/10)*w,O=-Math.cos(m/10)*w,C={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=E*n,i=O*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=m*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},D=Math.sqrt(3),S={draw:function(e,t){var n=-Math.sqrt(t/(3*D));e.moveTo(0,2*n),e.lineTo(-D*n,-n),e.lineTo(D*n,-n),e.closePath()}},k=Math.sqrt(3)/2,A=1/Math.sqrt(12),T=3*(A/2+1),P={draw:function(e,t){var n=Math.sqrt(t/T),r=n/2,i=n*A,o=r,a=n*A+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*r-k*i,k*r+-.5*i),e.lineTo(-.5*o-k*a,k*o+-.5*a),e.lineTo(-.5*s-k*u,k*s+-.5*u),e.lineTo(-.5*r+k*i,-.5*i-k*r),e.lineTo(-.5*o+k*a,-.5*a-k*o),e.lineTo(-.5*s+k*u,-.5*u-k*s),e.closePath()}},M=n(674),j=n(36),I=n(17);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})(e)}function R(){return(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}).apply(this,arguments)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(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){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V(e);if(t){var i=V(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==F(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H={symbolCircle:v,symbolCross:g,symbolDiamond:_,symbolSquare:x,symbolStar:C,symbolTriangle:S,symbolWye:P},W=Math.PI/180,G=function(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&&B(e,t)}(o,e);var t,n,r,i=N(o);function o(){return L(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"getPath",value:function(){var e=this.props,t=e.size,n=e.sizeType,r=e.type,i=function(e){var t="symbol".concat(d()(e));return H[t]||v}(r);return function(e,t){var n=null;function r(){var r;if(n||(n=r=Object(M.a)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:Object(j.a)(e||v),t="function"===typeof t?t:Object(j.a)(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:Object(j.a)(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:Object(j.a)(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(i).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*W;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,n,r))()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cx,r=e.cy,i=e.size;return n===+n&&r===+r&&i===+i?u.a.createElement("path",R({},Object(I.c)(this.props,!0),{className:c()("recharts-symbols",t),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}])&&z(t.prototype,n),r&&z(t,r),o}(s.PureComponent);function q(e){return(q="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 $(){return($=Object.assign||function(e){for(var t=1;t<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)}function Y(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 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 X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(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 J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==q(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}G.defaultProps={type:"circle",size:64,sizeType:"area"},G.registerSymbol=function(e,t){H["symbol".concat(d()(e))]=t};var ne=function(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&&J(e,t)}(o,e);var t,n,r,i=Q(o);function o(){return X(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=e.inactive?t:e.color;if("plainline"===e.type)return u.a.createElement("line",{strokeWidth:4,fill:"none",stroke:n,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===e.type)return u.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,".concat(16,"h").concat(32/3,"\n A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3*2,",").concat(16,"\n H").concat(32,"M").concat(32/3*2,",").concat(16,"\n A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3,",").concat(16),className:"recharts-legend-icon"});if("rect"===e.type)return u.a.createElement("path",{stroke:"none",fill:n,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(u.a.isValidElement(e.legendIcon)){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete r.legendIcon,u.a.cloneElement(e.legendIcon,r)}return u.a.createElement(G,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,o=t.formatter,a=t.inactiveColor,s={x:0,y:0,width:32,height:32},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var i,d=t.formatter||o,h=c()((Z(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Z(i,"inactive",t.inactive),i));if("none"===t.type)return null;var m=t.inactive?a:t.color;return u.a.createElement("li",$({className:h,style:l,key:"legend-item-".concat(n)},Object(I.b)(e.props,t,n)),u.a.createElement(f.a,{width:r,height:r,viewBox:s,style:p},e.renderIcon(t)),u.a.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},d?d(t.value,t,n):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return u.a.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])&&K(t.prototype,n),r&&K(t,r),o}(s.PureComponent);ne.displayName="Legend",ne.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var re=n(6);function ie(e){return(ie="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 oe(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(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 ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=de(e);if(t){var i=de(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pe(this,n)}}function pe(e,t){return!t||"object"!==ie(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function he(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function me(e){return e.value}function ve(e,t){return!0===e?a()(t,me):i()(e)?a()(t,e):t}var ge=function(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&&ce(e,t)}(a,e);var t,n,r,o=fe(a);function a(){var e;ue(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).wrapperNode=void 0,e.state={boxWidth:-1,boxHeight:-1},e}return t=a,r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Object(re.g)(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return t>=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),ae(ae({},t),n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,s=t.payloadUniqBy,l=t.payload,c=ae(ae({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return u.a.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(u.a.isValidElement(e))return u.a.cloneElement(e,t);if(i()(e))return u.a.createElement(e,t);t.ref;var n=he(t,["ref"]);return u.a.createElement(ne,n)}(n,ae(ae({},this.props),{},{payload:ve(s,l)})))}}])&&le(t.prototype,n),r&&le(t,r),a}(s.PureComponent);ge.displayName="Legend",ge.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},function(e,t,n){var r=n(275),i=n(537),o=n(126);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t,n){var r=n(275),i=n(538),o=n(126);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));var r=n(14),i=n.n(r),o=n(15),a=n.n(o),s=n(139),u=n.n(s),l=n(0),c=n.n(l),f=n(108),p=n(21),d=n.n(p),h=n(130),m=n.n(h),v=n(26),g=n.n(v),y=n(6);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})(e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(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 w(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(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(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}function C(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 S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){return g()(e)&&Object(y.f)(e[0])&&Object(y.f)(e[1])?e.join(" ~ "):e}var M=function(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&&S(e,t)}(a,e);var t,n,r,o=k(a);function a(){return C(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=e.separator,r=e.formatter,i=e.itemStyle,o=e.itemSorter;if(t&&t.length){var a=(o?m()(t,o):t).map((function(e,o){if("none"===e.type)return null;var a=E({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),s=e.formatter||r||P,u=e.name,l=e.value;if(s){var f=s(l,u,e,o,t);if(Array.isArray(f)){var p=_(f,2);l=p[0],u=p[1]}else l=f}return c.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(o),style:a},Object(y.f)(u)?c.a.createElement("span",{className:"recharts-tooltip-item-name"},u):null,Object(y.f)(u)?c.a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,c.a.createElement("span",{className:"recharts-tooltip-item-value"},l),c.a.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return c.a.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},a)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,n=e.contentStyle,r=e.labelClassName,o=e.labelStyle,a=e.label,s=e.labelFormatter,u=e.payload,l=E({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),f=E({margin:0},o),p=!i()(a),h=p?a:"",m=d()("recharts-default-tooltip",t),v=d()("recharts-tooltip-label",r);return p&&s&&(h=s(a,u)),c.a.createElement("div",{className:m,style:l},c.a.createElement("p",{className:v,style:f},c.a.isValidElement(h)?h:"".concat(h)),this.renderContent())}}])&&D(t.prototype,n),r&&D(t,r),a}(l.PureComponent);M.displayName="DefaultTooltipContent",M.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var j=n(85);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})(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 R(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){L(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 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 z(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 N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var i=H(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==I(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W="recharts-tooltip-wrapper";function G(e){return e.dataKey}var q=function(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&&N(e,t)}(s,e);var t,n,r,o=U(s);function s(){var e;z(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={boxWidth:-1,boxHeight:-1},e.wrapperNode=void 0,e.getTranslate=function(t){var n=t.key,r=t.tooltipDimension,i=t.viewBoxDimension,o=e.props,a=o.allowEscapeViewBox,s=o.coordinate,u=o.offset,l=o.position,c=o.viewBox;if(l&&Object(y.g)(l[n]))return l[n];var f=s[n]-r-u,p=s[n]+u;return a[n]?p:s[n]+r+u>c[n]+i?Math.max(f,c[n]):Math.max(p,c[n])},e}return t=s,(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,s=o.payload,l=o.isAnimationActive,p=o.animationDuration,h=o.animationEasing,m=o.filterNull,v=function(e,t){return!0===e?u()(t,G):a()(e)?u()(t,e):t}(o.payloadUniqBy,m&&s&&s.length?s.filter((function(e){return!i()(e.value)})):s),g=v&&v.length,b=this.props,_=b.content,x=b.viewBox,w=b.coordinate,E=b.position,O=b.active,C=R({pointerEvents:"none",visibility:O&&g?"visible":"hidden",position:"absolute",top:0,left:0},b.wrapperStyle);if(E&&Object(y.g)(E.x)&&Object(y.g)(E.y))t=E.x,n=E.y;else{var D=this.state,S=D.boxWidth,k=D.boxHeight;S>0&&k>0&&w?(t=this.getTranslate({key:"x",tooltipDimension:S,viewBoxDimension:x.width}),n=this.getTranslate({key:"y",tooltipDimension:k,viewBoxDimension:x.height})):C.visibility="hidden"}C=R(R({},Object(f.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),C),l&&O&&(C=R(R({},Object(f.b)({transition:"transform ".concat(p,"ms ").concat(h)})),C));var A=d()(W,(L(e={},"".concat(W,"-right"),Object(y.g)(t)&&w&&Object(y.g)(w.x)&&t>=w.x),L(e,"".concat(W,"-left"),Object(y.g)(t)&&w&&Object(y.g)(w.x)&&t<w.x),L(e,"".concat(W,"-bottom"),Object(y.g)(n)&&w&&Object(y.g)(w.y)&&n>=w.y),L(e,"".concat(W,"-top"),Object(y.g)(n)&&w&&Object(y.g)(w.y)&&n<w.y),e));return c.a.createElement("div",{className:A,style:C,ref:function(e){r.wrapperNode=e}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?c.a.createElement(e,t):c.a.createElement(M,t)}(_,R(R({},this.props),{},{payload:v})))}}])&&B(t.prototype,n),r&&B(t,r),s}(l.PureComponent);q.displayName="Tooltip",q.defaultProps={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!j.a.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(114),u=n(7),l=n(10),c=n(103),f=n(88),p=o.forwardRef((function(e,t){var n=e.children,u=e.classes,p=e.className,d=e.color,h=void 0===d?"primary":d,m=e.component,v=void 0===m?"div":m,g=e.disabled,y=void 0!==g&&g,b=e.error,_=void 0!==b&&b,x=e.fullWidth,w=void 0!==x&&x,E=e.focused,O=e.hiddenLabel,C=void 0!==O&&O,D=e.margin,S=void 0===D?"none":D,k=e.required,A=void 0!==k&&k,T=e.size,P=e.variant,M=void 0===P?"standard":P,j=Object(i.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Object(c.a)(t,["Input","Select"])){var n=Object(c.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),F=I[0],R=I[1],L=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Object(c.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),z=L[0],B=L[1],N=o.useState(!1),U=N[0],V=N[1],H=void 0!==E?E:U;y&&H&&V(!1);var W=o.useCallback((function(){B(!0)}),[]),G={adornedStart:F,setAdornedStart:R,color:h,disabled:y,error:_,filled:z,focused:H,fullWidth:w,hiddenLabel:C,margin:("small"===T?"dense":void 0)||S,onBlur:function(){V(!1)},onEmpty:o.useCallback((function(){B(!1)}),[]),onFilled:W,onFocus:function(){V(!0)},registerEffect:void 0,required:A,variant:M};return o.createElement(f.a.Provider,{value:G},o.createElement(v,Object(r.a)({className:Object(a.a)(u.root,p,"none"!==S&&u["margin".concat(Object(l.a)(S))],w&&u.fullWidth),ref:t},j),n))}));t.a=Object(u.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(p)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=n.n(o),s=(n(3),n(24)),u=n(2),l=n(20),c=n(31),f=n(7),p=n(81),d=n(86),h=n(42),m=n(64),v=n(46),g=n(134);function y(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(o.isValidElement)(e)?t(e):e}(e)})),n}function b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _(e,t,n){var r=y(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r<i[u].length;r++){var l=i[u][r];s[i[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var u=a in t,l=a in r,c=t[a],f=Object(o.isValidElement)(c)&&!c.props.in;!l||u&&!f?l||!u||f?l&&u&&Object(o.isValidElement)(c)&&(i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:b(s,"exit",e),enter:b(s,"enter",e)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:b(s,"exit",e),enter:b(s,"enter",e)})}})),i}var x=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Object(m.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(v.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,y(n.children,(function(e){return Object(o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:b(e,"appear",n),enter:b(e,"enter",n),exit:b(e,"exit",n)})}))):_(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(h.a)(e,["component","childFactory"]),i=this.state.contextValue,o=x(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(g.a.Provider,{value:i},o):a.a.createElement(g.a.Provider,{value:i},a.a.createElement(t,r,o))},t}(a.a.Component);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};var E=w,O="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var C=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,f=e.onExited,p=void 0===f?function(){}:f,d=e.timeout,h=o.useState(!1),m=h[0],v=h[1],g=Object(u.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:s,height:s,top:-s/2+a,left:-s/2+i},b=Object(u.a)(t.child,m&&t.childLeaving,r&&t.childPulsate),_=Object(c.a)(p);return O((function(){if(!l){v(!0);var e=setTimeout(_,d);return function(){clearTimeout(e)}}}),[_,l,d]),o.createElement("span",{className:g,style:y},o.createElement("span",{className:b}))},D=o.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,l=e.className,c=Object(i.a)(e,["center","classes","className"]),f=o.useState([]),p=f[0],h=f[1],m=o.useRef(0),v=o.useRef(null);o.useEffect((function(){v.current&&(v.current(),v.current=null)}),[p]);var g=o.useRef(!1),y=o.useRef(null),b=o.useRef(null),_=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var x=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(d.a)(e),[o.createElement(C,{key:m.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),m.current+=1,v.current=a}),[s]),w=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var c,f,p,d=l?null:_.current,h=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),f=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,w=m.clientY;c=Math.round(v-h.left),f=Math.round(w-h.top)}if(s)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(p+=1);else{var E=2*Math.max(Math.abs((d?d.clientWidth:0)-c),c)+2,O=2*Math.max(Math.abs((d?d.clientHeight:0)-f),f)+2;p=Math.sqrt(Math.pow(E,2)+Math.pow(O,2))}e.touches?null===b.current&&(b.current=function(){x({pulsate:i,rippleX:c,rippleY:f,rippleSize:p,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):x({pulsate:i,rippleX:c,rippleY:f,rippleSize:p,cb:n})}}),[a,x]),O=o.useCallback((function(){w({},{pulsate:!0})}),[w]),D=o.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){D(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:O,start:w,stop:D}}),[O,w,D]),o.createElement("span",Object(r.a)({className:Object(u.a)(s.root,l),ref:_},c),o.createElement(E,{component:null,exit:!0},p))})),S=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(D)),k=o.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,f=e.centerRipple,d=void 0!==f&&f,h=e.children,m=e.classes,v=e.className,g=e.component,y=void 0===g?"button":g,b=e.disabled,_=void 0!==b&&b,x=e.disableRipple,w=void 0!==x&&x,E=e.disableTouchRipple,O=void 0!==E&&E,C=e.focusRipple,D=void 0!==C&&C,k=e.focusVisibleClassName,A=e.onBlur,T=e.onClick,P=e.onFocus,M=e.onFocusVisible,j=e.onKeyDown,I=e.onKeyUp,F=e.onMouseDown,R=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,B=e.onTouchMove,N=e.onTouchStart,U=e.onDragLeave,V=e.tabIndex,H=void 0===V?0:V,W=e.TouchRippleProps,G=e.type,q=void 0===G?"button":G,$=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=o.useRef(null);var Z=o.useRef(null),X=o.useState(!1),K=X[0],J=X[1];_&&K&&J(!1);var Q=Object(p.a)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return Object(c.a)((function(r){return t&&t(r),!n&&Z.current&&Z.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),Y.current.focus()}}}),[]),o.useEffect((function(){K&&D&&!w&&Z.current.pulsate()}),[w,D,K]);var ie=re("start",F),oe=re("stop",U),ae=re("stop",L),se=re("stop",(function(e){K&&e.preventDefault(),R&&R(e)})),ue=re("start",N),le=re("stop",z),ce=re("stop",B),fe=re("stop",(function(e){K&&(te(e),J(!1)),A&&A(e)}),!1),pe=Object(c.a)((function(e){Y.current||(Y.current=e.currentTarget),ee(e)&&(J(!0),M&&M(e)),P&&P(e)})),de=function(){var e=s.findDOMNode(Y.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=o.useRef(!1),me=Object(c.a)((function(e){D&&!he.current&&K&&Z.current&&" "===e.key&&(he.current=!0,e.persist(),Z.current.stop(e,(function(){Z.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),j&&j(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!_&&(e.preventDefault(),T&&T(e))})),ve=Object(c.a)((function(e){D&&" "===e.key&&Z.current&&K&&!e.defaultPrevented&&(he.current=!1,e.persist(),Z.current.stop(e,(function(){Z.current.pulsate(e)}))),I&&I(e),T&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ge=y;"button"===ge&&$.href&&(ge="a");var ye={};"button"===ge?(ye.type=q,ye.disabled=_):("a"===ge&&$.href||(ye.role="button"),ye["aria-disabled"]=_);var be=Object(l.a)(a,t),_e=Object(l.a)(ne,Y),xe=Object(l.a)(be,_e),we=o.useState(!1),Ee=we[0],Oe=we[1];o.useEffect((function(){Oe(!0)}),[]);var Ce=Ee&&!w&&!_;return o.createElement(ge,Object(r.a)({className:Object(u.a)(m.root,v,K&&[m.focusVisible,k],_&&m.disabled),onBlur:fe,onClick:T,onFocus:pe,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:le,onTouchMove:ce,onTouchStart:ue,ref:xe,tabIndex:_?-1:H},ye,$),h,Ce?o.createElement(S,Object(r.a)({ref:Z,center:d},W)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(k)},,,function(e,t,n){"use strict";e.exports=n(430)},function(e,t,n){var r=n(112)(Object,"create");e.exports=r},function(e,t,n){var r=n(453),i=n(454),o=n(455),a=n(456),s=n(457);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(211);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(459);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(125);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(472),i=n(478),o=n(143);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(211),i=n(143),o=n(216),a=n(55);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(389),i=n(230),o=n(90),a=n(680);function s(e,t,n,s){var u,l=Object(r.c)(e,t,n);switch((s=Object(i.a)(null==s?",f":s)).type){case"s":var c=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(u=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(o.a)(t)/3)))-Object(o.a)(Math.abs(e)))}(l,c))||(s.precision=u),Object(a.b)(s,c);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN(u=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Object(o.a)(t)-Object(o.a)(e))+1}(l,Math.max(Math.abs(e),Math.abs(t))))||(s.precision=u-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(u=function(e){return Math.max(0,-Object(o.a)(Math.abs(e)))}(l))||(s.precision=u-2*("%"===s.type))}return Object(a.a)(s)}},function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z"}),"Map");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.default=a},function(e,t,n){"use strict";var r=n(1),i=n(44),o=n(4),a=n(0),s=(n(3),n(2)),u=n(60),l=n(68),c=n(7),f=n(120),p=a.forwardRef((function(e,t){var n=e.autoFocus,c=e.checked,p=e.checkedIcon,d=e.classes,h=e.className,m=e.defaultChecked,v=e.disabled,g=e.icon,y=e.id,b=e.inputProps,_=e.inputRef,x=e.name,w=e.onBlur,E=e.onChange,O=e.onFocus,C=e.readOnly,D=e.required,S=e.tabIndex,k=e.type,A=e.value,T=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=Object(u.a)({controlled:c,default:Boolean(m),name:"SwitchBase",state:"checked"}),M=Object(i.a)(P,2),j=M[0],I=M[1],F=Object(l.a)(),R=v;F&&"undefined"===typeof R&&(R=F.disabled);var L="checkbox"===k||"radio"===k;return a.createElement(f.a,Object(r.a)({component:"span",className:Object(s.a)(d.root,h,j&&d.checked,R&&d.disabled),disabled:R,tabIndex:null,role:void 0,onFocus:function(e){O&&O(e),F&&F.onFocus&&F.onFocus(e)},onBlur:function(e){w&&w(e),F&&F.onBlur&&F.onBlur(e)},ref:t},T),a.createElement("input",Object(r.a)({autoFocus:n,checked:c,defaultChecked:m,className:d.input,disabled:R,id:L&&y,name:x,onChange:function(e){var t=e.target.checked;I(t),E&&E(e,t)},readOnly:C,ref:_,required:D,tabIndex:S,type:k,value:A},b)),j?p:g)}));t.a=Object(c.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(p)},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){var r=n(468),i=n(469),o=n(100),a=n(26),s=n(169);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),u(e,o(t,3))}},function(e,t,n){var r=n(218);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";var r=s(n(561)),i=s(n(565)),o=s(n(280)),a=s(n(277));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return r.a})),n.d(t,"scalePoint",(function(){return r.b})),n.d(t,"scaleIdentity",(function(){return a})),n.d(t,"scaleLinear",(function(){return i.a})),n.d(t,"scaleLog",(function(){return b})),n.d(t,"scaleSymlog",(function(){return E})),n.d(t,"scaleOrdinal",(function(){return O.a})),n.d(t,"scaleImplicit",(function(){return O.b})),n.d(t,"scalePow",(function(){return A})),n.d(t,"scaleSqrt",(function(){return T})),n.d(t,"scaleRadial",(function(){return j})),n.d(t,"scaleQuantile",(function(){return H})),n.d(t,"scaleQuantize",(function(){return G})),n.d(t,"scaleThreshold",(function(){return q})),n.d(t,"scaleTime",(function(){return En})),n.d(t,"scaleUtc",(function(){return On})),n.d(t,"scaleSequential",(function(){return An})),n.d(t,"scaleSequentialLog",(function(){return Tn})),n.d(t,"scaleSequentialPow",(function(){return Mn})),n.d(t,"scaleSequentialSqrt",(function(){return jn})),n.d(t,"scaleSequentialSymlog",(function(){return Pn})),n.d(t,"scaleSequentialQuantile",(function(){return In})),n.d(t,"scaleDiverging",(function(){return Ln})),n.d(t,"scaleDivergingLog",(function(){return zn})),n.d(t,"scaleDivergingPow",(function(){return Nn})),n.d(t,"scaleDivergingSqrt",(function(){return Un})),n.d(t,"scaleDivergingSymlog",(function(){return Bn})),n.d(t,"tickFormat",(function(){return Vn.a}));var r=n(221),i=n(56),o=n(116);function a(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,o.a),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return a(e).unknown(t)},e=arguments.length?Array.from(e,o.a):[0,1],Object(i.b)(n)}var s=n(389),u=n(680);function l(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}var c=n(37),f=n(29);function p(e){return Math.log(e)}function d(e){return Math.exp(e)}function h(e){return-Math.log(-e)}function m(e){return-Math.exp(-e)}function v(e){return isFinite(e)?+("1e"+e):e<0?0:e}function g(e){return function(t){return-e(-t)}}function y(e){var t,n,r=e(p,d),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?v:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=g(t),n=g(n),e(h,m)):e(p,d),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),u=a[0],l=a[a.length-1];(r=l<u)&&(d=u,u=l,l=d);var c,f,p,d=t(u),h=t(l),m=null==e?10:+e,v=[];if(!(o%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(f=1,c=n(d);f<o;++f)if(!((p=c*f)<u)){if(p>l)break;v.push(p)}}else for(;d<=h;++d)for(f=o-1,c=n(d);f>=1;--f)if(!((p=c*f)<u)){if(p>l)break;v.push(p)}2*v.length<m&&(v=Object(s.a)(u,l,m))}else v=Object(s.a)(d,h,Math.min(h-d,m)).map(n);return r?v.reverse():v},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Object(u.a)(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(l(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function b(){var e=y(Object(c.d)()).domain([1,10]);return e.copy=function(){return Object(c.a)(e,b()).base(e.base())},f.b.apply(e,arguments),e}function _(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function x(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function w(e){var t=1,n=e(_(t),x(t));return n.constant=function(n){return arguments.length?e(_(t=+n),x(t)):t},Object(i.b)(n)}function E(){var e=w(Object(c.d)());return e.copy=function(){return Object(c.a)(e,E()).constant(e.constant())},f.b.apply(e,arguments)}var O=n(144);function C(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function D(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function S(e){return e<0?-e*e:e*e}function k(e){var t=e(c.c,c.c),n=1;function r(){return 1===n?e(c.c,c.c):.5===n?e(D,S):e(C(n),C(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Object(i.b)(t)}function A(){var e=k(Object(c.d)());return e.copy=function(){return Object(c.a)(e,A()).exponent(e.exponent())},f.b.apply(e,arguments),e}function T(){return A.apply(null,arguments).exponent(.5)}function P(e){return Math.sign(e)*e*e}function M(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function j(){var e,t=Object(c.b)(),n=[0,1],r=!1;function a(n){var i=M(t(n));return isNaN(i)?e:r?Math.round(i):i}return a.invert=function(e){return t.invert(P(e))},a.domain=function(e){return arguments.length?(t.domain(e),a):t.domain()},a.range=function(e){return arguments.length?(t.range((n=Array.from(e,o.a)).map(P)),a):n.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(r=!!e,a):r},a.clamp=function(e){return arguments.length?(t.clamp(e),a):t.clamp()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.copy=function(){return j(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},f.b.apply(a,arguments),Object(i.b)(a)}var I=n(52);function F(e,t){var n;if(void 0===t){var r,i=Object(I.a)(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n<o||void 0===n&&o>=o)&&(n=o)}}catch(c){i.e(c)}finally{i.f()}}else{var a,s=-1,u=Object(I.a)(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=(l=t(l,++s,e))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(c){u.e(c)}finally{u.f()}}return n}function R(e,t){var n;if(void 0===t){var r,i=Object(I.a)(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n>o||void 0===n&&o>=o)&&(n=o)}}catch(c){i.e(c)}finally{i.f()}}else{var a,s=-1,u=Object(I.a)(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=(l=t(l,++s,e))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(c){u.e(c)}finally{u.f()}}return n}var L=n(131);function z(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}var B=n(150);function N(e,t,n){if(r=(e=Float64Array.from(Object(B.b)(e,n))).length){if((t=+t)<=0||r<2)return R(e);if(t>=1)return F(e);var r,i=(r-1)*t,o=Math.floor(i),a=F(function e(t,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:L.a;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1),f=Math.max(r,Math.floor(n-s*l/a+c)),p=Math.min(i,Math.floor(n+(a-s)*l/a+c));e(t,n,f,p,o)}var d=t[n],h=r,m=i;for(z(t,r,n),o(t[i],d)>0&&z(t,r,i);h<m;){for(z(t,h,m),++h,--m;o(t[h],d)<0;)++h;for(;o(t[m],d)>0;)--m}0===o(t[r],d)?z(t,r,m):z(t,++m,i),m<=n&&(r=m+1),n<=m&&(i=m-1)}return t}(e,o).subarray(0,o+1));return a+(R(e.subarray(o+1))-a)*(i-o)}}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.a;if(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,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}var V=n(689);function H(){var e,t=[],n=[],r=[];function i(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=U(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:n[Object(V.a)(r,t)]}return o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];var n,r=Object(I.a)(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;null==o||isNaN(o=+o)||t.push(o)}}catch(a){r.e(a)}finally{r.f()}return t.sort(L.a),i()},o.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return H().domain(t).range(n).unknown(e)},f.b.apply(o,arguments)}var W=n(5);function G(){var e,t=0,n=1,r=1,o=[.5],a=[0,1];function s(t){return null!=t&&t<=t?a[Object(V.a)(o,t,0,r)]:e}function u(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return s}return s.domain=function(e){var r,i;return arguments.length?(r=e,i=Object(W.a)(r,2),t=i[0],n=i[1],t=+t,n=+n,u()):[t,n]},s.range=function(e){return arguments.length?(r=(a=Array.from(e)).length-1,u()):a.slice()},s.invertExtent=function(e){var i=a.indexOf(e);return i<0?[NaN,NaN]:i<1?[t,o[0]]:i>=r?[o[r-1],n]:[o[i-1],o[i]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return G().domain([t,n]).range(a).unknown(e)},f.b.apply(Object(i.b)(s),arguments)}function q(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[Object(V.a)(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return q().domain(t).range(n).unknown(e)},f.b.apply(i,arguments)}var $=function(e){var t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return(r=e(t))<(i=n)?-1:r>i?1:r>=i?0:NaN;var r,i}}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);var a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}};var Y=Math.sqrt(50),Z=Math.sqrt(10),X=Math.sqrt(2);function K(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Y?i*=10:o>=Z?i*=5:o>=X&&(i*=2),t<e?-i:i}var J=new Date,Q=new Date;function ee(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return ee((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return J.setTime(+t),Q.setTime(+r),e(J),e(Q),Math.floor(n(J,Q))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var te=ee((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));te.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ee((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):te:null};var ne=te,re=(te.range,ee((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),ie=re,oe=(re.range,ee((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),ae=oe,se=(oe.range,ee((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),ue=se,le=(se.range,ee((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),ce=le;le.range;function fe(e){return ee((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-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var pe=fe(0),de=fe(1),he=fe(2),me=fe(3),ve=fe(4),ge=fe(5),ye=fe(6),be=(pe.range,de.range,he.range,me.range,ve.range,ge.range,ye.range,ee((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()}))),_e=be,xe=(be.range,ee((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()})));xe.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ee((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 we=xe,Ee=(xe.range,ee((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}))),Oe=Ee,Ce=(Ee.range,ee((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),De=Ce,Se=(Ce.range,ee((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),ke=Se;Se.range;function Ae(e){return ee((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)/6048e5}))}var Te=Ae(0),Pe=Ae(1),Me=Ae(2),je=Ae(3),Ie=Ae(4),Fe=Ae(5),Re=Ae(6),Le=(Te.range,Pe.range,Me.range,je.range,Ie.range,Fe.range,Re.range,ee((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()}))),ze=Le,Be=(Le.range,ee((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()})));Be.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ee((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 Ne=Be;Be.range;function Ue(e,t,n,r,i,o){var a=[[ie,1,1e3],[ie,5,5e3],[ie,15,15e3],[ie,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){var i=Math.abs(n-t)/r,o=$((function(e){return Object(W.a)(e,3)[2]})).right(a,i);if(o===a.length)return e.every(K(t/31536e6,n/31536e6,r));if(0===o)return ne.every(Math.max(K(t,n,r),1));var s=Object(W.a)(a[i/a[o-1][2]<a[o][2]/i?o-1:o],2),u=s[0],l=s[1];return u.every(l)}return[function(e,t,n){var r=t<e;if(r){var i=[t,e];e=i[0],t=i[1]}var o=n&&"function"===typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},s]}var Ve=Ue(Ne,ze,Te,ke,De,Oe),He=Object(W.a)(Ve,2),We=He[0],Ge=He[1],qe=Ue(we,_e,pe,ce,ue,ae),$e=Object(W.a)(qe,2),Ye=$e[0],Ze=$e[1];function Xe(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 Ke(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 Je(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Qe,et,tt,nt={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,it=/^%/,ot=/[\\^$*+?|[\]().{}]/g;function at(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function st(e){return e.replace(ot,"\\$&")}function ut(e){return new RegExp("^(?:"+e.map(st).join("|")+")","i")}function lt(e){return new Map(e.map((function(e,t){return[e.toLowerCase(),t]})))}function ct(e,t,n){var r=rt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ft(e,t,n){var r=rt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function pt(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function dt(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ht(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mt(e,t,n){var r=rt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function vt(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gt(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 yt(e,t,n){var r=rt.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function bt(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _t(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xt(e,t,n){var r=rt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function wt(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Et(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ot(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ct(e,t,n){var r=rt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dt(e,t,n){var r=rt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function St(e,t,n){var r=it.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kt(e,t,n){var r=rt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function At(e,t,n){var r=rt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Tt(e,t){return at(e.getDate(),t,2)}function Pt(e,t){return at(e.getHours(),t,2)}function Mt(e,t){return at(e.getHours()%12||12,t,2)}function jt(e,t){return at(1+ce.count(we(e),e),t,3)}function It(e,t){return at(e.getMilliseconds(),t,3)}function Ft(e,t){return It(e,t)+"000"}function Rt(e,t){return at(e.getMonth()+1,t,2)}function Lt(e,t){return at(e.getMinutes(),t,2)}function zt(e,t){return at(e.getSeconds(),t,2)}function Bt(e){var t=e.getDay();return 0===t?7:t}function Nt(e,t){return at(pe.count(we(e)-1,e),t,2)}function Ut(e){var t=e.getDay();return t>=4||0===t?ve(e):ve.ceil(e)}function Vt(e,t){return e=Ut(e),at(ve.count(we(e),e)+(4===we(e).getDay()),t,2)}function Ht(e){return e.getDay()}function Wt(e,t){return at(de.count(we(e)-1,e),t,2)}function Gt(e,t){return at(e.getFullYear()%100,t,2)}function qt(e,t){return at((e=Ut(e)).getFullYear()%100,t,2)}function $t(e,t){return at(e.getFullYear()%1e4,t,4)}function Yt(e,t){var n=e.getDay();return at((e=n>=4||0===n?ve(e):ve.ceil(e)).getFullYear()%1e4,t,4)}function Zt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+at(t/60|0,"0",2)+at(t%60,"0",2)}function Xt(e,t){return at(e.getUTCDate(),t,2)}function Kt(e,t){return at(e.getUTCHours(),t,2)}function Jt(e,t){return at(e.getUTCHours()%12||12,t,2)}function Qt(e,t){return at(1+ke.count(Ne(e),e),t,3)}function en(e,t){return at(e.getUTCMilliseconds(),t,3)}function tn(e,t){return en(e,t)+"000"}function nn(e,t){return at(e.getUTCMonth()+1,t,2)}function rn(e,t){return at(e.getUTCMinutes(),t,2)}function on(e,t){return at(e.getUTCSeconds(),t,2)}function an(e){var t=e.getUTCDay();return 0===t?7:t}function sn(e,t){return at(Te.count(Ne(e)-1,e),t,2)}function un(e){var t=e.getUTCDay();return t>=4||0===t?Ie(e):Ie.ceil(e)}function ln(e,t){return e=un(e),at(Ie.count(Ne(e),e)+(4===Ne(e).getUTCDay()),t,2)}function cn(e){return e.getUTCDay()}function fn(e,t){return at(Pe.count(Ne(e)-1,e),t,2)}function pn(e,t){return at(e.getUTCFullYear()%100,t,2)}function dn(e,t){return at((e=un(e)).getUTCFullYear()%100,t,2)}function hn(e,t){return at(e.getUTCFullYear()%1e4,t,4)}function mn(e,t){var n=e.getUTCDay();return at((e=n>=4||0===n?Ie(e):Ie.ceil(e)).getUTCFullYear()%1e4,t,4)}function vn(){return"+0000"}function gn(){return"%"}function yn(e){return+e}function bn(e){return Math.floor(+e/1e3)}function _n(e){return new Date(e)}function xn(e){return e instanceof Date?+e:+new Date(+e)}function wn(e,t,n,r,i,o,a,s,u,f){var p=Object(c.b)(),d=p.invert,h=p.domain,m=f(".%L"),v=f(":%S"),g=f("%I:%M"),y=f("%I %p"),b=f("%a %d"),_=f("%b %d"),x=f("%B"),w=f("%Y");function E(e){return(u(e)<e?m:s(e)<e?v:a(e)<e?g:o(e)<e?y:r(e)<e?i(e)<e?b:_:n(e)<e?x:w)(e)}return p.invert=function(e){return new Date(d(e))},p.domain=function(e){return arguments.length?h(Array.from(e,xn)):h().map(_n)},p.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},p.tickFormat=function(e,t){return null==t?E:f(t)},p.nice=function(e){var n=h();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(l(n,e)):p},p.copy=function(){return Object(c.a)(p,wn(e,t,n,r,i,o,a,s,u,f))},p}function En(){return f.b.apply(wn(Ye,Ze,we,_e,pe,ce,ue,ae,ie,et).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function On(){return f.b.apply(wn(We,Ge,Ne,ze,Te,ke,De,Oe,ie,tt).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}Qe=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=ut(i),c=lt(i),f=ut(o),p=lt(o),d=ut(a),h=lt(a),m=ut(s),v=lt(s),g=ut(u),y=lt(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Tt,e:Tt,f:Ft,g:qt,G:Yt,H:Pt,I:Mt,j:jt,L:It,m:Rt,M:Lt,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:yn,s:bn,S:zt,u:Bt,U:Nt,V:Vt,w:Ht,W:Wt,x:null,X:null,y:Gt,Y:$t,Z:Zt,"%":gn},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Xt,e:Xt,f:tn,g:dn,G:mn,H:Kt,I:Jt,j:Qt,L:en,m:nn,M:rn,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:yn,s:bn,S:on,u:an,U:sn,V:ln,w:cn,W:fn,x:null,X:null,y:pn,Y:hn,Z:vn,"%":gn},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:_t,e:_t,f:Dt,g:vt,G:mt,H:wt,I:wt,j:xt,L:Ct,m:bt,M:Et,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:yt,Q:kt,s:At,S:Ot,u:ft,U:pt,V:dt,w:ct,W:ht,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:vt,Y:mt,Z:gt,"%":St};function w(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=nt[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function E(e,t){return function(n){var r,i,o=Je(1900,void 0,1);if(O(o,e,n+="",0)!=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?(i=(r=Ke(Je(o.y,0,1))).getUTCDay(),r=i>4||0===i?Pe.ceil(r):Pe(r),r=ke.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Xe(Je(o.y,0,1))).getDay(),r=i>4||0===i?de.ceil(r):de(r),r=ce.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),i="Z"in o?Ke(Je(o.y,0,1)).getUTCDay():Xe(Je(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ke(o)):Xe(o)}}function O(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in nt?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),_.x=w(n,_),_.X=w(r,_),_.c=w(t,_),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),et=Qe.format,Qe.parse,tt=Qe.utcFormat,Qe.utcParse;var Cn=n(379),Dn=n(675);function Sn(){var e,t,n,r,i,o=0,a=1,s=c.c,u=!1;function l(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}function f(e){return function(t){var n,r,i,o;return arguments.length?(n=t,i=(r=Object(W.a)(n,2))[0],o=r[1],s=e(i,o),l):[s(0),s(1)]}}return l.domain=function(i){var s,u;return arguments.length?(s=i,u=Object(W.a)(s,2),o=u[0],a=u[1],e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(u=!!e,l):u},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=f(Cn.a),l.rangeRound=f(Dn.a),l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function kn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function An(){var e=Object(i.b)(Sn()(c.c));return e.copy=function(){return kn(e,An())},f.a.apply(e,arguments)}function Tn(){var e=y(Sn()).domain([1,10]);return e.copy=function(){return kn(e,Tn()).base(e.base())},f.a.apply(e,arguments)}function Pn(){var e=w(Sn());return e.copy=function(){return kn(e,Pn()).constant(e.constant())},f.a.apply(e,arguments)}function Mn(){var e=k(Sn());return e.copy=function(){return kn(e,Mn()).exponent(e.exponent())},f.a.apply(e,arguments)}function jn(){return Mn.apply(null,arguments).exponent(.5)}function In(){var e=[],t=c.c;function n(n){if(null!=n&&!isNaN(n=+n))return t((Object(V.a)(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];var r,i=Object(I.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null==o||isNaN(o=+o)||e.push(o)}}catch(a){i.e(a)}finally{i.f()}return e.sort(L.a),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((function(n,r){return t(r/(e.length-1))}))},n.quantiles=function(t){return Array.from({length:t+1},(function(n,r){return N(e,r/t)}))},n.copy=function(){return In(t).domain(e)},f.a.apply(n,arguments)}function Fn(e,t){void 0===t&&(t=e,e=Cn.a);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Rn(){var e,t,n,r,i,o,a,s=0,u=.5,l=1,f=1,p=c.c,d=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(f*e<f*t?r:i),p(d?Math.max(0,Math.min(1,e)):e))}function m(e){return function(t){var n,r,i,o,a;return arguments.length?(n=t,i=(r=Object(W.a)(n,3))[0],o=r[1],a=r[2],p=Fn(e,[i,o,a]),h):[p(0),p(.5),p(1)]}}return h.domain=function(a){var c,p;return arguments.length?(c=a,p=Object(W.a)(c,3),s=p[0],u=p[1],l=p[2],e=o(s=+s),t=o(u=+u),n=o(l=+l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),f=t<e?-1:1,h):[s,u,l]},h.clamp=function(e){return arguments.length?(d=!!e,h):d},h.interpolator=function(e){return arguments.length?(p=e,h):p},h.range=m(Cn.a),h.rangeRound=m(Dn.a),h.unknown=function(e){return arguments.length?(a=e,h):a},function(a){return o=a,e=a(s),t=a(u),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),f=t<e?-1:1,h}}function Ln(){var e=Object(i.b)(Rn()(c.c));return e.copy=function(){return kn(e,Ln())},f.a.apply(e,arguments)}function zn(){var e=y(Rn()).domain([.1,1,10]);return e.copy=function(){return kn(e,zn()).base(e.base())},f.a.apply(e,arguments)}function Bn(){var e=w(Rn());return e.copy=function(){return kn(e,Bn()).constant(e.constant())},f.a.apply(e,arguments)}function Nn(){var e=k(Rn());return e.copy=function(){return kn(e,Nn()).exponent(e.exponent())},f.a.apply(e,arguments)}function Un(){return Nn.apply(null,arguments).exponent(.5)}var Vn=n(170)},function(e,t,n){"use strict";var r={centimeters:637100880,centimetres:637100880,degrees:6371008.8/111325,feet:20902260.511392,inches:6371008.8*39.37,kilometers:6371.0088,kilometres:6371.0088,meters:6371008.8,metres:6371008.8,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:6371008.8/1852,radians:1,yards:6371008.8*1.0936};function i(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 o(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!c(e[0])||!c(e[1]))throw new Error("coordinates must contain numbers");return i({type:"Point",coordinates:e},t,n)}function a(e,t,n){void 0===n&&(n={});for(var r=0,o=e;r<o.length;r++){var a=o[r];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<a[a.length-1].length;s++)if(a[a.length-1][s]!==a[0][s])throw new Error("First and last Position are not equivalent.")}return i({type:"Polygon",coordinates:e},t,n)}function s(e,t){void 0===t&&(t="kilometers");var n=r[t];if(!n)throw new Error(t+" units is invalid");return e/n}function u(e){return 180*(e%(2*Math.PI))/Math.PI}function l(e){return e%360*Math.PI/180}function c(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function f(e,t,n,r){void 0===r&&(r={});var i=function(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}(e),a=l(i[0]),c=l(i[1]),f=l(n),p=s(t,r.units),d=Math.asin(Math.sin(c)*Math.cos(p)+Math.cos(c)*Math.sin(p)*Math.cos(f));return o([u(a+Math.atan2(Math.sin(f)*Math.sin(p)*Math.cos(c),Math.cos(p)-Math.sin(c)*Math.sin(d))),u(d)],r.properties)}t.a=function(e,t,n){void 0===n&&(n={});for(var r=n.steps||64,i=n.properties?n.properties:!Array.isArray(e)&&"Feature"===e.type&&e.properties?e.properties:{},o=[],s=0;s<r;s++)o.push(f(e,t,-360*s/r,n).geometry.coordinates);return o.push(o[0]),a([o],i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(551)),i=n(556),o=s(n(276)),a=s(n(559));function s(e){return e&&e.__esModule?e:{default:e}}var u=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(e).walk((function(e){if("function"===e.type&&u.test(e.value)){var n=r.default.stringify(e.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var s=i.parser.parse(n),l=(0,o.default)(s,t);e.type="word",e.value=(0,a.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n(15),i=n.n(r),o=n(0),a=n.n(o),s=n(21),u=n.n(s),l=n(45),c=n(133),f=n(78),p=n(6),d=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},h=n(91),m=n(89),v=n(17);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}).apply(this,arguments)}function y(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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 x(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,o=e.clipPathId,s=Object(p.f)(t),c=Object(p.f)(n);if(Object(m.a)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var g=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=Object(h.a)({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return d(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!g)return null;var y=g.x,_=g.y,w=e.shape,E=e.className,O=b(b({clipPath:d(e,"hidden")?"url(#".concat(o,")"):void 0},Object(v.c)(e,!0)),{},{cx:y,cy:_});return a.a.createElement(l.a,{className:u()("recharts-reference-dot",E)},x.renderDot(w,O),f.a.renderCallByParent(e,{x:y-r,y:_-r,width:2*r,height:2*r}))}x.displayName="ReferenceDot",x.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},x.renderDot=function(e,t){return a.a.isValidElement(e)?a.a.cloneElement(e,t):i()(e)?e(t):a.a.createElement(c.a,g({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var w=n(367),E=n.n(w);function O(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?O(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(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 S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 A(){return(A=Object.assign||function(e){for(var t=1;t<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)}function T(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,s=e.yAxis,c=e.shape,g=e.className,y=e.alwaysShow,b=e.clipPathId;Object(m.a)(void 0===y,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var _=function(e,t,n,r,i){var o=i.viewBox,a=o.x,s=o.y,u=o.width,l=o.height,c=i.position;if(n){var f=i.y,p=i.yAxis.orientation,h=e.y.apply(f,{position:c});if(d(i,"discard")&&!e.y.isInRange(h))return null;var m=[{x:a+u,y:h},{x:a,y:h}];return"left"===p?m.reverse():m}if(t){var v=i.x,g=i.xAxis.orientation,y=e.x.apply(v,{position:c});if(d(i,"discard")&&!e.x.isInRange(y))return null;var b=[{x:y,y:s+l},{x:y,y:s}];return"top"===g?b.reverse():b}if(r){var _=i.segment.map((function(t){return e.apply(t,{position:c})}));return d(i,"discard")&&E()(_,(function(t){return!e.isInRange(t)}))?null:_}return null}(Object(h.a)({x:o.scale,y:s.scale}),Object(p.f)(t),Object(p.f)(n),r&&2===r.length,e);if(!_)return null;var x=S(_,2),w=x[0],O=w.x,D=w.y,k=x[1],T=k.x,P=k.y,M=C(C({clipPath:d(e,"hidden")?"url(#".concat(b,")"):void 0},Object(v.c)(e,!0)),{},{x1:O,y1:D,x2:T,y2:P});return a.a.createElement(l.a,{className:u()("recharts-reference-line",g)},function(e,t){return a.a.isValidElement(e)?a.a.cloneElement(e,t):i()(e)?e(t):a.a.createElement("line",A({},t,{className:"recharts-reference-line-line"}))}(c,M),f.a.renderCallByParent(e,Object(h.c)({x1:O,y1:D,x2:T,y2:P})))}T.displayName="ReferenceLine",T.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var P=n(152);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}).apply(this,arguments)}function j(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(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 R(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,s=e.alwaysShow,c=e.clipPathId;Object(m.a)(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=Object(p.f)(t),y=Object(p.f)(n),b=Object(p.f)(r),_=Object(p.f)(i),x=e.shape;if(!g&&!y&&!b&&!_&&!x)return null;var w=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,u=i.y2,l=i.xAxis,c=i.yAxis,f=Object(h.a)({x:l.scale,y:c.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},m={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!d(i,"discard")||f.isInRange(p)&&f.isInRange(m)?Object(h.d)(p,m):null}(g,y,b,_,e);if(!w&&!x)return null;var E=d(e,"hidden")?"url(#".concat(c,")"):void 0;return a.a.createElement(l.a,{className:u()("recharts-reference-area",o)},R.renderRect(x,I(I({clipPath:E},Object(v.c)(e,!0)),w)),f.a.renderCallByParent(e,w))}R.displayName="ReferenceArea",R.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},R.renderRect=function(e,t){return a.a.isValidElement(e)?a.a.cloneElement(e,t):i()(e)?e(t):a.a.createElement(P.a,M({},t,{className:"recharts-reference-area-rect"}))};var L=n(28),z=function(e,t,n,r,i){var o=Object(L.a)(e,T.displayName),a=Object(L.a)(e,x.displayName),s=o.concat(a),u=Object(L.a)(e,R.displayName),l="".concat(r,"Id"),c=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&d(t.props,"extendDomain")&&Object(p.g)(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),u.length){var h="".concat(c,"1"),m="".concat(c,"2");f=u.reduce((function(e,t){if(t.props[l]===n&&d(t.props,"extendDomain")&&Object(p.g)(t.props[h])&&Object(p.g)(t.props[m])){var r=t.props[h],i=t.props[m];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Object(p.g)(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(15),i=n.n(r),o=n(138),a=n.n(o),s=n(0),u=n.n(s),l=n(21),c=n.n(l),f=n(221),p=n(45),d=n(117),h=n(18),m=n(6);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 g(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}var b=["Webkit","Moz","O","ms"],_=n(17);function x(e){return(x="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}).apply(this,arguments)}function E(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?E(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(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 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 S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var i=P(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==x(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 P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=function(e){return e.changedTouches&&!!e.changedTouches.length},j=function(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&&S(e,t)}(l,e);var t,n,r,o=k(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=o.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=M(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(T(t),"startX"),endX:t.handleTravellerDragStart.bind(T(t),"endX")},t.state={},t}return t=l,r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.stroke,a=Math.floor(n+i/2)-1;return u.a.createElement(u.a.Fragment,null,u.a.createElement("rect",{x:t,y:n,width:r,height:i,fill:o,stroke:"none"}),u.a.createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),u.a.createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return u.a.isValidElement(e)?u.a.cloneElement(e,t):i()(e)?e(t):l.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,s=e.updateId,u=e.startIndex,l=e.endIndex;if(n!==t.prevData||s!==t.prevUpdateId)return O({prevData:n,prevTravellerWidth:o,prevUpdateId:s,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,s=e.travellerWidth;if(!t||!t.length)return{};var u=t.length,l=Object(f.b)().domain(a()(0,u)).range([i,i+o-s]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:i,travellerWidth:o,startIndex:u,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:s,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,i=this.props,o=i.gap,a=i.data.length-1,s=Math.min(t,n),u=Math.max(t,n),c=l.getIndexInRange(r,s),f=l.getIndexInRange(r,u);return{startIndex:c-c%o,endIndex:f===a?a:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=Object(h.t)(n[e],o,e);return i()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,l=o.startIndex,c=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-u-i,a+s-u-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===l&&d.endIndex===c||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=M(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],u=this.props,l=u.x,c=u.width,f=u.travellerWidth,p=u.onChange,d=u.gap,h=u.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+c-f-s):v<0&&(v=Math.max(v,l-s)),m[i]=s+v;var g=this.getIndex(m),y=g.startIndex,b=g.endIndex;this.setState((C(t={},i,s+v),C(t,"brushMoveStartX",e.pageX),t),(function(){p&&function(){var e=h.length-1;return"startX"===i&&(o>a?y%d===0:b%d===0)||o<a&&b===e||"endX"===i&&(o>a?b%d===0:y%d===0)||o>a&&b===e}()&&p(g)}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,a=e.stroke;return u.a.createElement("rect",{stroke:a,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.data,a=e.children,l=e.padding,c=s.Children.only(a);return c?u.a.cloneElement(c,{x:t,y:n,width:r,height:i,margin:l,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.traveller,s=Math.max(e,this.props.x),c=O(O({},Object(_.c)(this.props)),{},{x:s,y:r,width:i,height:o});return u.a.createElement(p.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},l.renderTraveller(a,c))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,o=n.stroke,a=n.travellerWidth,s=Math.min(e,t)+a,l=Math.max(Math.abs(t-e)-a,0);return u.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:s,y:r,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,o=e.travellerWidth,a=e.stroke,s=this.state,l=s.startX,c=s.endX,f={pointerEvents:"none",fill:a};return u.a.createElement(p.a,{className:"recharts-brush-texts"},u.a.createElement(d.a,w({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:r+i/2},f),this.getTextOfTick(t)),u.a.createElement(d.a,w({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+o+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,o=e.y,a=e.width,s=e.height,l=e.alwaysShowText,f=this.state,d=f.startX,h=f.endX,v=f.isTextActive,_=f.isSlideMoving,x=f.isTravellerMoving;if(!t||!t.length||!Object(m.g)(i)||!Object(m.g)(o)||!Object(m.g)(a)||!Object(m.g)(s)||a<=0||s<=0)return null;var w=c()("recharts-brush",n),E=1===u.a.Children.count(r),O=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=b.reduce((function(e,r){return g(g({},e),{},y({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return u.a.createElement(p.a,{className:w,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(d,h),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(h,"endX"),(v||_||x||l)&&this.renderText())}}])&&D(t.prototype,n),r&&D(t,r),l}(s.PureComponent);j.displayName="Brush",j.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1}},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=(n(3),n(2)),s=n(7),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,l=void 0===u?"div":u,c=e.square,f=void 0!==c&&c,p=e.elevation,d=void 0===p?1:p,h=e.variant,m=void 0===h?"elevation":h,v=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(l,Object(i.a)({className:Object(a.a)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(d)],!f&&n.rounded),ref:t},v))}));t.a=Object(s.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(i.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(u)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(171);function a(){return i.a.useContext(o.a)}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(643)),s=n(44),u=n(101),l=n(384),c=(n(162),n(2)),f=n(30),p=n(10),d=n(381),h=n(114),m=n(20),v=n(60);function g(e,t){return"object"===Object(u.a)(t)&&null!==t?e===t:String(e)===String(t)}var y=o.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,y=e.children,b=e.classes,_=e.className,x=e.defaultValue,w=e.disabled,E=e.displayEmpty,O=e.IconComponent,C=e.inputRef,D=e.labelId,S=e.MenuProps,k=void 0===S?{}:S,A=e.multiple,T=e.name,P=e.onBlur,M=e.onChange,j=e.onClose,I=e.onFocus,F=e.onOpen,R=e.open,L=e.readOnly,z=e.renderValue,B=e.SelectDisplayProps,N=void 0===B?{}:B,U=e.tabIndex,V=(e.type,e.value),H=e.variant,W=void 0===H?"standard":H,G=Object(i.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),q=Object(v.a)({controlled:V,default:x,name:"Select"}),$=Object(s.a)(q,2),Y=$[0],Z=$[1],X=o.useRef(null),K=o.useState(null),J=K[0],Q=K[1],ee=o.useRef(null!=R).current,te=o.useState(),ne=te[0],re=te[1],ie=o.useState(!1),oe=ie[0],ae=ie[1],se=Object(m.a)(t,C);o.useImperativeHandle(se,(function(){return{focus:function(){J.focus()},node:X.current,value:Y}}),[J,Y]),o.useEffect((function(){a&&J&&J.focus()}),[a,J]),o.useEffect((function(){if(J){var e=Object(f.a)(J).getElementById(D);if(e){var t=function(){getSelection().isCollapsed&&J.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[D,J]);var ue,le,ce=function(e,t){e?F&&F(t):j&&j(t),ee||(re(u?null:J.clientWidth),ae(e))},fe=o.Children.toArray(y),pe=function(e){return function(t){var n;if(A||ce(!1,t),A){n=Array.isArray(Y)?Y.slice():[];var r=Y.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),Y!==n&&(Z(n),M&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:T}}),M(t,e)))}},de=null!==J&&(ee?R:oe);delete G["aria-invalid"];var he=[],me=!1;(Object(h.b)({value:Y})||E)&&(z?ue=z(Y):me=!0);var ve=fe.map((function(e){if(!o.isValidElement(e))return null;var t;if(A){if(!Array.isArray(Y))throw new Error(Object(l.a)(2));(t=Y.some((function(t){return g(t,e.props.value)})))&&me&&he.push(e.props.children)}else(t=g(Y,e.props.value))&&me&&(le=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:pe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(ue=A?he.join(", "):le);var ge,ye=ne;!u&&ee&&J&&(ye=J.clientWidth),ge="undefined"!==typeof U?U:w?null:0;var be=N.id||(T?"mui-component-select-".concat(T):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Object(r.a)({className:Object(c.a)(b.root,b.select,b.selectMenu,b[W],_,w&&b.disabled),ref:Q,tabIndex:ge,role:"button","aria-disabled":w?"true":void 0,"aria-expanded":de?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[D,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))}},onMouseDown:w||L?null:function(e){0===e.button&&(e.preventDefault(),J.focus(),ce(!0,e))},onBlur:function(e){!de&&P&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:Y,name:T}}),P(e))},onFocus:I},N,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ue)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ue),o.createElement("input",Object(r.a)({value:Array.isArray(Y)?Y.join(","):Y,name:T,ref:X,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];Z(n.props.value),M&&M(e,n)}},tabIndex:-1,className:b.nativeInput,autoFocus:a},G)),o.createElement(O,{className:Object(c.a)(b.icon,b["icon".concat(Object(p.a)(W))],de&&b.iconOpen,w&&b.disabled)}),o.createElement(d.a,Object(r.a)({id:"menu-".concat(T||""),anchorEl:J,open:de,onClose:function(e){ce(!1,e)}},k,{MenuListProps:Object(r.a)({"aria-labelledby":D,role:"listbox",disableListWrap:!0},k.MenuListProps),PaperProps:Object(r.a)({},k.PaperProps,{style:Object(r.a)({minWidth:ye},null!=k.PaperProps?k.PaperProps.style:null)})}),ve))})),b=n(73),_=n(68),x=n(7),w=n(27),E=Object(w.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),O=n(654),C=o.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,u=e.IconComponent,l=e.inputRef,f=e.variant,d=void 0===f?"standard":f,h=Object(i.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Object(r.a)({className:Object(c.a)(n.root,n.select,n[d],a,s&&n.disabled),disabled:s,ref:l||t},h)),e.multiple?null:o.createElement(u,{className:Object(c.a)(n.icon,n["icon".concat(Object(p.a)(d))],s&&n.disabled)}))})),D=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},S=o.createElement(O.a,null),k=o.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,u=void 0===s?E:s,l=e.input,c=void 0===l?S:l,f=e.inputProps,p=(e.variant,Object(i.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),d=Object(_.a)(),h=Object(b.a)({props:e,muiFormControl:d,states:["variant"]});return o.cloneElement(c,Object(r.a)({inputComponent:C,inputProps:Object(r.a)({children:n,classes:a,IconComponent:u,variant:h.variant,type:void 0},f,c?c.props.inputProps:{}),ref:t},p))}));k.muiName="Select";Object(x.a)(D,{name:"MuiNativeSelect"})(k);var A=n(655),T=n(685),P=D,M=o.createElement(O.a,null),j=o.createElement(A.a,null),I=o.forwardRef((function e(t,n){var s=t.autoWidth,u=void 0!==s&&s,l=t.children,c=t.classes,f=t.displayEmpty,p=void 0!==f&&f,d=t.IconComponent,h=void 0===d?E:d,m=t.id,v=t.input,g=t.inputProps,x=t.label,w=t.labelId,O=t.labelWidth,D=void 0===O?0:O,S=t.MenuProps,k=t.multiple,A=void 0!==k&&k,P=t.native,I=void 0!==P&&P,F=t.onClose,R=t.onOpen,L=t.open,z=t.renderValue,B=t.SelectDisplayProps,N=t.variant,U=void 0===N?"standard":N,V=Object(i.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),H=I?C:y,W=Object(_.a)(),G=Object(b.a)({props:t,muiFormControl:W,states:["variant"]}).variant||U,q=v||{standard:M,outlined:o.createElement(T.a,{label:x,labelWidth:D}),filled:j}[G];return o.cloneElement(q,Object(r.a)({inputComponent:H,inputProps:Object(r.a)({children:l,IconComponent:h,variant:G,type:void 0,multiple:A},I?{id:m}:{autoWidth:u,displayEmpty:p,labelId:w,MenuProps:S,onClose:F,onOpen:R,open:L,renderValue:z,SelectDisplayProps:Object(r.a)({id:m},B)},g,{classes:g?Object(a.a)({baseClasses:c,newClasses:g.classes,Component:e}):c},v?v.props.inputProps:{}),ref:n},V))}));I.muiName="Select";t.a=Object(x.a)(P,{name:"MuiSelect"})(I)},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(384),a=n(0),s=(n(3),n(2)),u=n(73),l=n(88),c=n(7),f=n(10),p=n(20),d=n(95);function h(e,t){return parseInt(e[t],10)||0}var m="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},g=a.forwardRef((function(e,t){var n=e.onChange,o=e.rows,s=e.rowsMax,u=e.rowsMin,l=e.maxRows,c=e.minRows,f=void 0===c?1:c,g=e.style,y=e.value,b=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),_=l||s,x=o||u||f,w=a.useRef(null!=y).current,E=a.useRef(null),O=Object(p.a)(t,E),C=a.useRef(null),D=a.useRef(0),S=a.useState({}),k=S[0],A=S[1],T=a.useCallback((function(){var t=E.current,n=window.getComputedStyle(t),r=C.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var u=r.scrollHeight-o,l=s;x&&(l=Math.max(Number(x)*u,l)),_&&(l=Math.min(Number(_)*u,l));var c=(l=Math.max(l,u))+("border-box"===i?o+a:0),f=Math.abs(l-s)<=1;A((function(e){return D.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==f)?(D.current+=1,{overflow:f,outerHeightStyle:c}):e}))}),[_,x,e.placeholder]);a.useEffect((function(){var e=Object(d.a)((function(){D.current=0,T()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[T]),m((function(){T()})),a.useEffect((function(){D.current=0}),[y]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(i.a)({value:y,onChange:function(e){D.current=0,w||T(),n&&n(e)},ref:O,rows:x,style:Object(i.a)({height:k.outerHeightStyle,overflow:k.overflow?"hidden":null},g)},b)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:Object(i.a)({},v,g)}))})),y=n(114),b="undefined"===typeof window?a.useEffect:a.useLayoutEffect,_=a.forwardRef((function(e,t){var n=e["aria-describedby"],c=e.autoComplete,d=e.autoFocus,h=e.classes,m=e.className,v=(e.color,e.defaultValue),_=e.disabled,x=e.endAdornment,w=(e.error,e.fullWidth),E=void 0!==w&&w,O=e.id,C=e.inputComponent,D=void 0===C?"input":C,S=e.inputProps,k=void 0===S?{}:S,A=e.inputRef,T=(e.margin,e.multiline),P=void 0!==T&&T,M=e.name,j=e.onBlur,I=e.onChange,F=e.onClick,R=e.onFocus,L=e.onKeyDown,z=e.onKeyUp,B=e.placeholder,N=e.readOnly,U=e.renderSuffix,V=e.rows,H=e.rowsMax,W=e.rowsMin,G=e.maxRows,q=e.minRows,$=e.startAdornment,Y=e.type,Z=void 0===Y?"text":Y,X=e.value,K=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),J=null!=k.value?k.value:X,Q=a.useRef(null!=J).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=Object(p.a)(k.ref,te),re=Object(p.a)(A,ne),ie=Object(p.a)(ee,re),oe=a.useState(!1),ae=oe[0],se=oe[1],ue=Object(l.b)();var le=Object(u.a)({props:e,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ue?ue.focused:ae,a.useEffect((function(){!ue&&_&&ae&&(se(!1),j&&j())}),[ue,_,ae,j]);var ce=ue&&ue.onFilled,fe=ue&&ue.onEmpty,pe=a.useCallback((function(e){Object(y.b)(e)?ce&&ce():fe&&fe()}),[ce,fe]);b((function(){Q&&pe({value:J})}),[J,pe,Q]);a.useEffect((function(){pe(ee.current)}),[]);var de=D,he=Object(i.a)({},k,{ref:ie});"string"!==typeof de?he=Object(i.a)({inputRef:ie,type:Z},he,{ref:null}):P?!V||G||q||H||W?(he=Object(i.a)({minRows:V||q,rowsMax:H,maxRows:G},he),de=g):de="textarea":he=Object(i.a)({type:Z},he);return a.useEffect((function(){ue&&ue.setAdornedStart(Boolean($))}),[ue,$]),a.createElement("div",Object(i.a)({className:Object(s.a)(h.root,h["color".concat(Object(f.a)(le.color||"primary"))],m,le.disabled&&h.disabled,le.error&&h.error,E&&h.fullWidth,le.focused&&h.focused,ue&&h.formControl,P&&h.multiline,$&&h.adornedStart,x&&h.adornedEnd,"dense"===le.margin&&h.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),F&&F(e)},ref:t},K),$,a.createElement(l.a.Provider,{value:null},a.createElement(de,Object(i.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:c,autoFocus:d,defaultValue:v,disabled:le.disabled,id:O,onAnimationStart:function(e){pe("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:M,placeholder:B,readOnly:N,required:le.required,rows:V,value:J,onKeyDown:L,onKeyUp:z},he,{className:Object(s.a)(h.input,k.className,le.disabled&&h.disabled,P&&h.inputMultiline,le.hiddenLabel&&h.inputHiddenLabel,$&&h.inputAdornedStart,x&&h.inputAdornedEnd,"search"===Z&&h.inputTypeSearch,"dense"===le.margin&&h.inputMarginDense),onBlur:function(e){j&&j(e),k.onBlur&&k.onBlur(e),ue&&ue.onBlur?ue.onBlur(e):se(!1)},onChange:function(e){if(!Q){var t=e.target||ee.current;if(null==t)throw new Error(Object(o.a)(1));pe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];k.onChange&&k.onChange.apply(k,[e].concat(r)),I&&I.apply(void 0,[e].concat(r))},onFocus:function(e){le.disabled?e.stopPropagation():(R&&R(e),k.onFocus&&k.onFocus(e),ue&&ue.onFocus?ue.onFocus(e):se(!0))}}))),x,U?U(Object(i.a)({},le,{startAdornment:$})):null)}));t.a=Object(c.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(i.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(_)},,,,,,,function(e,t,n){"use strict";function r(e){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r,i){return null}n.d(t,"a",(function(){return r}))},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){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.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];l.push(new h(e,t)),1!==l.length||c||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(253),i=n(167);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(26),i=n(125),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(442),i=n(458),o=n(460),a=n(461),s=n(462);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(112)(n(80),"Map");e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(257),i=n(482)(r);e.exports=i},function(e,t,n){var r=n(474),i=n(99),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(490),i=n(99);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(266),i=n(517);e.exports=function e(t,n,o,a,s){var u=-1,l=t.length;for(o||(o=i),s||(s=[]);++u<l;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(5),i=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o},o=n(29),a=n(144);function s(){var e,t,n=Object(a.a)().unknown(void 0),u=n.domain,l=n.range,c=0,f=1,p=!1,d=0,h=0,m=.5;function v(){var n=u().length,r=f<c,o=r?f:c,a=r?c:f;e=(a-o)/Math.max(1,n-d+2*h),p&&(e=Math.floor(e)),o+=(a-o-e*(n-d))*m,t=e*(1-d),p&&(o=Math.round(o),t=Math.round(t));var s=i(n).map((function(t){return o+e*t}));return l(r?s.reverse():s)}return delete n.unknown,n.domain=function(e){return arguments.length?(u(e),v()):u()},n.range=function(e){var t,n;return arguments.length?(t=e,n=Object(r.a)(t,2),c=n[0],f=n[1],c=+c,f=+f,v()):[c,f]},n.rangeRound=function(e){var t,n;return t=e,n=Object(r.a)(t,2),c=n[0],f=n[1],c=+c,f=+f,p=!0,v()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(p=!!e,v()):p},n.padding=function(e){return arguments.length?(d=Math.min(1,h=+e),v()):d},n.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),v()):d},n.paddingOuter=function(e){return arguments.length?(h=+e,v()):h},n.align=function(e){return arguments.length?(m=Math.max(0,Math.min(1,e)),v()):m},n.copy=function(){return s(u(),[c,f]).round(p).paddingInner(d).paddingOuter(h).align(m)},o.b.apply(v(),arguments)}function u(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return u(t())},e}function l(){return u(s.apply(null,arguments).paddingInner(1))}},function(e,t,n){var r=n(55),i=n(434),o=n(252),a=Math.max,s=Math.min;e.exports=function(e,t,n){var u,l,c,f,p,d,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=u,r=l;return u=l=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,p=setTimeout(x,t),m?y(e):f}function _(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-h>=c}function x(){var e=i();if(_(e))return w(e);p=setTimeout(x,function(e){var n=t-(e-d);return v?s(n,c-(e-h)):n}(e))}function w(e){return p=void 0,g&&u?y(e):(u=l=void 0,f)}function E(){var e=i(),n=_(e);if(u=arguments,l=this,d=e,n){if(void 0===p)return b(d);if(v)return clearTimeout(p),p=setTimeout(x,t),y(d)}return void 0===p&&(p=setTimeout(x,t)),f}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=l=p=void 0},E.flush=function(){return void 0===p?f:w(i())},E}},function(e,t,n){var r=n(98),i=n(99);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(46),a=n(3),s=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var c=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}()+"__",c=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);c.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:c,Consumer:f}};t.a=c}).call(this,n(72))},function(e,t,n){var r=n(426);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],p=n[1],d=n.index;if(s+=e.slice(a,d),a=d+f.length,p)s+=p[1];else{var h=e[a],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var x=null!=m&&null!=h&&h!==m,w="+"===b||"*"===b,E="?"===b||"*"===b,O=n[2]||c,C=g||y;r.push({name:v||o++,prefix:m||"",delimiter:O,optional:E,repeat:w,partial:x,asterisk:!!_,pattern:C?l(C):_?".*":"[^"+u(O)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var f,p=s[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=u(p[d]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===d?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=u(l);else{var p=u(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+p+d+")*"),a+=d=l.optional?l.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}var h=u(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",c(new RegExp("^"+a,f(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(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 c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},function(e,t){e.exports=i,e.exports.parse=i,e.exports.stringify=function e(t){"Feature"===t.type&&(t=t.geometry);function n(e){return e.join(" ")}function r(e){return e.map(n).join(", ")}function i(e){return e.map(r).map(o).join(", ")}function o(e){return"("+e+")"}switch(t.type){case"Point":return"POINT ("+n(t.coordinates)+")";case"LineString":return"LINESTRING ("+r(t.coordinates)+")";case"Polygon":return"POLYGON ("+i(t.coordinates)+")";case"MultiPoint":return"MULTIPOINT ("+r(t.coordinates)+")";case"MultiPolygon":return"MULTIPOLYGON ("+(t.coordinates.map(i).map(o).join(", ")+")");case"MultiLineString":return"MULTILINESTRING ("+i(t.coordinates)+")";case"GeometryCollection":return"GEOMETRYCOLLECTION ("+t.geometries.map(e).join(", ")+")";default:throw new Error("stringify requires a valid GeoJSON Feature or geometry object as input")}};var n=/[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/,r=new RegExp("^"+n.source+"(\\s"+n.source+"){1,}");function i(e){var t,n=e.split(";"),i=n.pop(),o=(n.shift()||"").split("=").pop(),a=0;function s(e){var t=i.substring(a).match(e);return t?(a+=t[0].length,t[0]):null}function u(){s(/^\s*/)}function l(){u();for(var e,t=0,n=[],i=[n],o=n;e=s(/^(\()/)||s(/^(\))/)||s(/^(,)/)||s(r);){if("("===e)i.push(o),o=[],i[i.length-1].push(o),t++;else if(")"===e){if(0===o.length)return null;if(!(o=i.pop()))return null;if(0===--t)break}else if(","===e)o=[],i[i.length-1].push(o);else{if(e.split(/\s/g).some(isNaN))return null;Array.prototype.push.apply(o,e.split(/\s/g).map(parseFloat))}u()}return 0!==t?null:n}function c(){for(var e,t,n=[];t=s(r)||s(/^(,)/);)","===t?(n.push(e),e=[]):t.split(/\s/g).some(isNaN)||(e||(e=[]),Array.prototype.push.apply(e,t.split(/\s/g).map(parseFloat))),u();return e?(n.push(e),n.length?n:null):null}function f(){return function(){if(!s(/^(point(\sz)?)/i))return null;if(u(),!s(/^(\()/))return null;var e=c();return e?(u(),s(/^(\))/)?{type:"Point",coordinates:e[0]}:null):null}()||function(){if(!s(/^(linestring(\sz)?)/i))return null;if(u(),!s(/^(\()/))return null;var e=c();return e&&s(/^(\))/)?{type:"LineString",coordinates:e}:null}()||function(){if(!s(/^(polygon(\sz)?)/i))return null;u();var e=l();return e?{type:"Polygon",coordinates:e}:null}()||function(){if(!s(/^(multipoint)/i))return null;u();var e=i.substring(i.indexOf("(")+1,i.length-1).replace(/\(/g,"").replace(/\)/g,"");i="MULTIPOINT ("+e+")";var t=l();return t?(u(),{type:"MultiPoint",coordinates:t}):null}()||function(){if(!s(/^(multilinestring)/i))return null;u();var e=l();return e?(u(),{type:"MultiLineString",coordinates:e}):null}()||function(){if(!s(/^(multipolygon)/i))return null;u();var e=l();return e?{type:"MultiPolygon",coordinates:e}:null}()||function(){var e,t=[];if(!s(/^(geometrycollection)/i))return null;if(u(),!s(/^(\()/))return null;for(;e=f();)t.push(e),u(),s(/^(,)/),u();return s(/^(\))/)?{type:"GeometryCollection",geometries:t}:null}()}return(t=f())&&o.match(/\d+/)&&(t.crs={type:"name",properties:{name:"urn:ogc:def:crs:EPSG::"+o}}),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(350);function i(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&&Object(r.a)(e,t)}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(228),i=n(351);function o(e){return(o="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 a(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return function(){var t,n=Object(r.a)(e);if(Object(i.a)()){var o=Object(r.a)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return a(this,t)}}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(162),n(3),n(24)),s=n(30),u=n(587),l=n(178),c=n(20);function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function p(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function d(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function h(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&d(s,o)&&!u)return void s.focus();s=i(e,s,n)}}var m="undefined"===typeof window?o.useEffect:o.useLayoutEffect,v=o.forwardRef((function(e,t){var n=e.actions,v=e.autoFocus,g=void 0!==v&&v,y=e.autoFocusItem,b=void 0!==y&&y,_=e.children,x=e.className,w=e.disabledItemsFocusable,E=void 0!==w&&w,O=e.disableListWrap,C=void 0!==O&&O,D=e.onKeyDown,S=e.variant,k=void 0===S?"selectedMenu":S,A=Object(i.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),T=o.useRef(null),P=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});m((function(){g&&T.current.focus()}),[g]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!T.current.style.width;if(e.clientHeight<T.current.clientHeight&&n){var r="".concat(Object(l.a)(!0),"px");T.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,T.current.style.width="calc(100% + ".concat(r,")")}return T.current}}}),[]);var M=o.useCallback((function(e){T.current=a.findDOMNode(e)}),[]),j=Object(c.a)(M,t),I=-1;o.Children.forEach(_,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===k&&e.props.selected||-1===I)&&(I=t))}));var F=o.Children.map(_,(function(e,t){if(t===I){var n={};return b&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===k&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return o.createElement(u.a,Object(r.a)({role:"menu",ref:j,className:x,onKeyDown:function(e){var t=T.current,n=e.key,r=Object(s.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),h(t,r,C,E,f);else if("ArrowUp"===n)e.preventDefault(),h(t,r,C,E,p);else if("Home"===n)e.preventDefault(),h(t,null,C,E,f);else if("End"===n)e.preventDefault(),h(t,null,C,E,p);else if(1===n.length){var i=P.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var u=r&&!i.repeating&&d(r,i);i.previousKeyMatched&&(u||h(t,r,!1,E,f,i))?e.preventDefault():i.previousKeyMatched=!1}D&&D(e)},tabIndex:g?0:-1},A),F)}));t.a=v},function(e,t,n){"use strict";n(44);var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l=o.forwardRef((function(e,t){var n=e.anchorOrigin,s=void 0===n?{vertical:"top",horizontal:"right"}:n,l=e.badgeContent,c=e.children,f=e.classes,p=e.className,d=e.color,h=void 0===d?"default":d,m=e.component,v=void 0===m?"span":m,g=e.invisible,y=e.max,b=void 0===y?99:y,_=e.overlap,x=void 0===_?"rectangle":_,w=e.showZero,E=void 0!==w&&w,O=e.variant,C=void 0===O?"standard":O,D=Object(i.a)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),S=g;null==g&&(0===l&&!E||null==l&&"dot"!==C)&&(S=!0);var k="";return"dot"!==C&&(k=l>b?"".concat(b,"+"):l),o.createElement(v,Object(r.a)({className:Object(a.a)(f.root,p),ref:t},D),c,o.createElement("span",{className:Object(a.a)(f.badge,f["".concat(s.horizontal).concat(Object(u.a)(s.vertical),"}")],f["anchorOrigin".concat(Object(u.a)(s.vertical)).concat(Object(u.a)(s.horizontal)).concat(Object(u.a)(x))],"default"!==h&&f["color".concat(Object(u.a)(h))],S&&f.invisible,"dot"===C&&f.dot)},k))}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(44),o=n(4),a=n(19),s=n(0),u=n(24),l=(n(3),n(2)),c=n(582),f=n(12),p=n(7),d=n(10),h=n(387),m=n(236),v=n(20),g=n(47),y=n(59),b=n(81),_=n(60),x=n(34);function w(e){return Math.round(1e5*e)/1e5}var E=!1,O=null;var C=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,f=e.children,p=e.classes,w=e.disableFocusListener,C=void 0!==w&&w,D=e.disableHoverListener,S=void 0!==D&&D,k=e.disableTouchListener,A=void 0!==k&&k,T=e.enterDelay,P=void 0===T?100:T,M=e.enterNextDelay,j=void 0===M?0:M,I=e.enterTouchDelay,F=void 0===I?700:I,R=e.id,L=e.interactive,z=void 0!==L&&L,B=e.leaveDelay,N=void 0===B?0:B,U=e.leaveTouchDelay,V=void 0===U?1500:U,H=e.onClose,W=e.onOpen,G=e.open,q=e.placement,$=void 0===q?"bottom":q,Y=e.PopperComponent,Z=void 0===Y?m.a:Y,X=e.PopperProps,K=e.title,J=e.TransitionComponent,Q=void 0===J?h.a:J,ee=e.TransitionProps,te=Object(o.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=Object(x.a)(),re=s.useState(),ie=re[0],oe=re[1],ae=s.useState(null),se=ae[0],ue=ae[1],le=s.useRef(!1),ce=s.useRef(),fe=s.useRef(),pe=s.useRef(),de=s.useRef(),he=Object(_.a)({controlled:G,default:!1,name:"Tooltip",state:"open"}),me=Object(i.a)(he,2),ve=me[0],ge=me[1],ye=ve,be=Object(g.a)(R);s.useEffect((function(){return function(){clearTimeout(ce.current),clearTimeout(fe.current),clearTimeout(pe.current),clearTimeout(de.current)}}),[]);var _e=function(e){clearTimeout(O),E=!0,ge(!0),W&&W(e)},xe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),le.current&&"touchstart"!==t.type||(ie&&ie.removeAttribute("title"),clearTimeout(fe.current),clearTimeout(pe.current),P||E&&j?(t.persist(),fe.current=setTimeout((function(){_e(t)}),E?j:P)):_e(t))}},we=Object(b.a)(),Ee=we.isFocusVisible,Oe=we.onBlurVisible,Ce=we.ref,De=s.useState(!1),Se=De[0],ke=De[1],Ae=function(){Se&&(ke(!1),Oe())},Te=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ie||oe(t.currentTarget),Ee(t)&&(ke(!0),xe()(t));var n=f.props;n.onFocus&&e&&n.onFocus(t)}},Pe=function(e){clearTimeout(O),O=setTimeout((function(){E=!1}),800+N),ge(!1),H&&H(e),clearTimeout(ce.current),ce.current=setTimeout((function(){le.current=!1}),ne.transitions.duration.shortest)},Me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ae()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ie&&n.onMouseLeave(t),clearTimeout(fe.current),clearTimeout(pe.current),t.persist(),pe.current=setTimeout((function(){Pe(t)}),N)}},je=function(e){le.current=!0;var t=f.props;t.onTouchStart&&t.onTouchStart(e)},Ie=Object(v.a)(oe,t),Fe=Object(v.a)(Ce,Ie),Re=s.useCallback((function(e){Object(y.a)(Fe,u.findDOMNode(e))}),[Fe]),Le=Object(v.a)(f.ref,Re);""===K&&(ye=!1);var ze=!ye&&!S,Be=Object(r.a)({"aria-describedby":ye?be:null,title:ze&&"string"===typeof K?K:null},te,f.props,{className:Object(l.a)(te.className,f.props.className),onTouchStart:je,ref:Le}),Ne={};A||(Be.onTouchStart=function(e){je(e),clearTimeout(pe.current),clearTimeout(ce.current),clearTimeout(de.current),e.persist(),de.current=setTimeout((function(){xe()(e)}),F)},Be.onTouchEnd=function(e){f.props.onTouchEnd&&f.props.onTouchEnd(e),clearTimeout(de.current),clearTimeout(pe.current),e.persist(),pe.current=setTimeout((function(){Pe(e)}),V)}),S||(Be.onMouseOver=xe(),Be.onMouseLeave=Me(),z&&(Ne.onMouseOver=xe(!1),Ne.onMouseLeave=Me(!1))),C||(Be.onFocus=Te(),Be.onBlur=Me(),z&&(Ne.onFocus=Te(!1),Ne.onBlur=Me(!1)));var Ue=s.useMemo((function(){return Object(c.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},X)}),[se,X]);return s.createElement(s.Fragment,null,s.cloneElement(f,Be),s.createElement(Z,Object(r.a)({className:Object(l.a)(p.popper,z&&p.popperInteractive,a&&p.popperArrow),placement:$,anchorEl:ie,open:!!ie&&ye,id:Be["aria-describedby"],transition:!0},Ne,Ue),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(Q,Object(r.a)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:Object(l.a)(p.tooltip,p["tooltipPlacement".concat(Object(d.a)(t.split("-")[0]))],le.current&&p.touch,a&&p.tooltipArrow)},K,a?s.createElement("span",{className:p.arrow,ref:ue}):null))})))}));t.a=Object(p.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(f.a)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(w(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(f.a)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(w(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(C)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(352)),s=n(195),u=n(584),l=n(67),c=n(59),f=n(20);function p(e){return"function"===typeof e?e():e}var d="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,h={},m=o.forwardRef((function(e,t){var n=e.anchorEl,m=e.children,v=e.container,g=e.disablePortal,y=void 0!==g&&g,b=e.keepMounted,_=void 0!==b&&b,x=e.modifiers,w=e.open,E=e.placement,O=void 0===E?"bottom":E,C=e.popperOptions,D=void 0===C?h:C,S=e.popperRef,k=e.style,A=e.transition,T=void 0!==A&&A,P=Object(i.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),M=o.useRef(null),j=Object(f.a)(M,t),I=o.useRef(null),F=Object(f.a)(I,S),R=o.useRef(F);d((function(){R.current=F}),[F]),o.useImperativeHandle(S,(function(){return I.current}),[]);var L=o.useState(!0),z=L[0],B=L[1],N=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(O,Object(s.a)()),U=o.useState(N),V=U[0],H=U[1];o.useEffect((function(){I.current&&I.current.update()}));var W=o.useCallback((function(){if(M.current&&n&&w){I.current&&(I.current.destroy(),R.current(null));var e=function(e){H(e.placement)},t=(p(n),new a.a(p(n),M.current,Object(r.a)({placement:N},D,{modifiers:Object(r.a)({},y?{}:{preventOverflow:{boundariesElement:"window"}},x,D.modifiers),onCreate:Object(l.a)(e,D.onCreate),onUpdate:Object(l.a)(e,D.onUpdate)})));R.current(t)}}),[n,y,x,w,N,D]),G=o.useCallback((function(e){Object(c.a)(j,e),W()}),[j,W]),q=function(){I.current&&(I.current.destroy(),R.current(null))};if(o.useEffect((function(){return function(){q()}}),[]),o.useEffect((function(){w||T||q()}),[w,T]),!_&&!w&&(!T||z))return null;var $={placement:V};return T&&($.TransitionProps={in:w,onEnter:function(){B(!1)},onExited:function(){B(!0),q()}}),o.createElement(u.a,{disablePortal:y,container:v},o.createElement("div",Object(r.a)({ref:G,role:"tooltip"},P,{style:Object(r.a)({position:"fixed",top:0,left:0,display:w||!_||T?null:"none"},k)}),"function"===typeof m?m($):m))}));t.a=m},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(654),u=n(655),l=n(685),c=n(238),f=n(158),p=n(73),d=n(68),h=n(7),m=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,l=e.component,c=void 0===l?"p":l,f=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(i.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=Object(d.a)(),m=Object(p.a)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(c,Object(r.a)({className:Object(a.a)(s.root,("filled"===m.variant||"outlined"===m.variant)&&s.contained,u,m.disabled&&s.disabled,m.error&&s.error,m.filled&&s.filled,m.focused&&s.focused,m.required&&s.required,"dense"===m.margin&&s.marginDense),ref:t},f)," "===n?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),v=Object(h.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(m),g=n(196),y={standard:s.a,filled:u.a,outlined:l.a},b=o.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,u=void 0!==s&&s,l=e.children,p=e.classes,d=e.className,h=e.color,m=void 0===h?"primary":h,b=e.defaultValue,_=e.disabled,x=void 0!==_&&_,w=e.error,E=void 0!==w&&w,O=e.FormHelperTextProps,C=e.fullWidth,D=void 0!==C&&C,S=e.helperText,k=e.hiddenLabel,A=e.id,T=e.InputLabelProps,P=e.inputProps,M=e.InputProps,j=e.inputRef,I=e.label,F=e.multiline,R=void 0!==F&&F,L=e.name,z=e.onBlur,B=e.onChange,N=e.onFocus,U=e.placeholder,V=e.required,H=void 0!==V&&V,W=e.rows,G=e.rowsMax,q=e.maxRows,$=e.minRows,Y=e.select,Z=void 0!==Y&&Y,X=e.SelectProps,K=e.type,J=e.value,Q=e.variant,ee=void 0===Q?"standard":Q,te=Object(i.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var ne={};if("outlined"===ee&&(T&&"undefined"!==typeof T.shrink&&(ne.notched=T.shrink),I)){var re,ie=null!==(re=null===T||void 0===T?void 0:T.required)&&void 0!==re?re:H;ne.label=o.createElement(o.Fragment,null,I,ie&&"\xa0*")}Z&&(X&&X.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var oe=S&&A?"".concat(A,"-helper-text"):void 0,ae=I&&A?"".concat(A,"-label"):void 0,se=y[ee],ue=o.createElement(se,Object(r.a)({"aria-describedby":oe,autoComplete:n,autoFocus:u,defaultValue:b,fullWidth:D,multiline:R,name:L,rows:W,rowsMax:G,maxRows:q,minRows:$,type:K,value:J,id:A,inputRef:j,onBlur:z,onChange:B,onFocus:N,placeholder:U,inputProps:P},ne,M));return o.createElement(f.a,Object(r.a)({className:Object(a.a)(p.root,d),disabled:x,error:E,fullWidth:D,hiddenLabel:k,ref:t,required:H,color:m,variant:ee},te),I&&o.createElement(c.a,Object(r.a)({htmlFor:A,id:ae},T),I),Z?o.createElement(g.a,Object(r.a)({"aria-describedby":oe,id:A,labelId:ae,value:J,input:ue},X),l):ue,S&&o.createElement(v,Object(r.a)({id:oe},O),S))}));t.a=Object(h.a)({root:{}},{name:"MuiTextField"})(b)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(73),u=n(68),l=n(7),c=n(10),f=o.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,p=(e.color,e.component),d=void 0===p?"label":p,h=(e.disabled,e.error,e.filled,e.focused,e.required,Object(i.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),m=Object(u.a)(),v=Object(s.a)({props:e,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]});return o.createElement(d,Object(r.a)({className:Object(a.a)(l.root,l["color".concat(Object(c.a)(v.color||"primary"))],f,v.disabled&&l.disabled,v.error&&l.error,v.filled&&l.filled,v.focused&&l.focused,v.required&&l.required),ref:t},h),n,v.required&&o.createElement("span",{"aria-hidden":!0,className:Object(a.a)(l.asterisk,v.error&&l.error)},"\u2009","*"))})),p=Object(l.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(f),d=o.forwardRef((function(e,t){var n=e.classes,l=e.className,c=e.disableAnimation,f=void 0!==c&&c,d=(e.margin,e.shrink),h=(e.variant,Object(i.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),m=Object(u.a)(),v=d;"undefined"===typeof v&&m&&(v=m.filled||m.focused||m.adornedStart);var g=Object(s.a)({props:e,muiFormControl:m,states:["margin","variant"]});return o.createElement(p,Object(r.a)({"data-shrink":v,className:Object(a.a)(n.root,l,m&&n.formControl,!f&&n.animated,v&&n.shrink,"dense"===g.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[g.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},h))}));t.a=Object(l.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(d)},,,,,,,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(u[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";var r=n(1),i=n(77),o=n(82);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(e,Object(r.a)({defaultTheme:o.a},t))}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(72))},function(e,t,n){var r=n(435),i=n(55),o=n(125),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(26),i=n(209),o=n(439),a=n(255);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(463);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(467),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(72))},function(e,t,n){var r=n(470),i=n(168);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){(function(e){var r=n(80),i=n(475),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(206)(e))},function(e,t,n){var r=n(476),i=n(260),o=n(477),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(164),i=n(485),o=n(486),a=n(487),s=n(488),u=n(489);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t,n){var r=n(263),i=n(264),o=n(265);e.exports=function(e,t,n,a,s,u){var l=1&n,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var g=e[h],y=t[h];if(a)var b=l?a(y,g,h,t,e,u):a(g,y,h,e,t,u);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,u)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,n,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},function(e,t,n){var r=n(210),i=n(491),o=n(492);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(112)(n(80),"Set");e.exports=r},function(e,t,n){var r=n(55);e.exports=function(e){return e===e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(252);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},function(e,t,n){var r=n(214),i=n(143);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(112),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(125);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===u?s===s&&!r(s):n(s,u)))var u=s,l=a}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flip=l;var r,i=n(557),o=(r=i)&&r.__esModule?r:{default:r};function a(e,t){return"MathExpression"===e.type?function(e,t){switch((e=function(e,t){var n=(0,o.default)(e.left,e.right,t),r=a(n.left,t),i=a(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(s(r.right,i.right)?n=(0,o.default)(r.left,i.left,t):s(r.right,i.left)&&(n=(0,o.default)(r.left,i.right,t)),r=a(n.left,t),i=a(n.right,t));return e.left=r,e.right=i,e}(e,t)).operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return function e(t){u(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=e(t.left),t.right=e(t.right));return t}(i);r.type===i.type&&u(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(u(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=a({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?l(i.operator):i.operator,a(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=a({type:"MathExpression",operator:"-"===o?l(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,a(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&u(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=a({type:"MathExpression",operator:o,left:r.left,right:i},t),a(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=a({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=a({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),a(e,t)}return e}(e,t);case"/":return function(e,t){if(!u(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return u(e.left.left.type)&&u(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,a(e.left,t)):e;if(u(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(u(e.left.left.type)&&u(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(u(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(u(e.right.left.type)&&u(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&u(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?a(e.value,t):e}function s(e,t){return e.type===t.type&&e.value===t.value}function u(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function l(e){return"+"===e?"-":"+"}t.default=a},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=function(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}(n(3)),i=s(n(0)),o=s(n(24)),a=n(278);n(279);function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var u=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.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}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.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},a.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)},a.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function l(){}u.contextTypes={transitionGroup:r.object},u.childContextTypes={transitionGroup:function(){}},u.propTypes={},u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},u.UNMOUNTED=0,u.EXITED=1,u.ENTERING=2,u.ENTERED=3,u.EXITING=4;var c=(0,a.polyfill)(u);t.default=c},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 i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.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 a(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,a=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,l="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\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=i),"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 a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(3))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(3)),i=s(n(0)),o=n(278),a=n(566);function s(e){return e&&e.__esModule?e:{default:e}}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}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(l(l(r)));return r.state={handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},o.handleExited=function(e,t){var n=(0,a.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}})))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,o.polyfill)(f);t.default=p,e.exports=t.default},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return!!function(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}()&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}())},r.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){"use strict";e.exports=n(424)},function(e,t,n){"use strict";(function(e){var r=n(0);function i(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof self?self:e;var r="undefined"!==typeof document&&document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),o=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},u=!1,l="",c="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d=document.createElement("fakeelement");if(void 0!==d.style.animationName&&(u=!0),!1===u)for(var h=0;h<f.length;h++)if(void 0!==d.style[f[h]+"AnimationName"]){l="-"+f[h].toLowerCase()+"-",c=p[h],u=!0;break}var m="resizeanim",v="@"+l+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",g=l+"animation: 1ms "+m+"; "}return{addResizeListener:function(e,i){if(r)e.attachEvent("onresize",i);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,u=n.getComputedStyle(e);u&&"static"==u.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(v||"")+".resize-triggers { "+(g||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],i=e.createElement("style");i.id="detectElementResize",i.type="text/css",null!=t&&i.setAttribute("nonce",t),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(e.createTextNode(n)),r.appendChild(i)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var l=o.createElement("div");l.className="expand-trigger",l.appendChild(o.createElement("div"));var f=o.createElement("div");f.className="contract-trigger",e.__resizeTriggers__.appendChild(l),e.__resizeTriggers__.appendChild(f),e.appendChild(e.__resizeTriggers__),a(e),e.addEventListener("scroll",s,!0),c&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==m&&a(e)},e.__resizeTriggers__.addEventListener(c,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(i)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(c,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},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}}(),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(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},l=function(e){function t(){var e,n,r;o(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,i=e.onResize;if(r._parentNode){var o=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},u=parseInt(s.paddingLeft,10)||0,l=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,f=parseInt(s.paddingBottom,10)||0,p=o-c-f,d=a-u-l;(!t&&r.state.height!==p||!n&&r.state.width!==d)&&(r.setState({height:o-c-f,width:a-u-l}),i({height:o,width:a}))}},r._setRef=function(e){r._autoSizer=e},u(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=i(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,u=this.state,l=u.height,c=u.width,f={overflow:"visible"},p={},d=!1;return i||(0===l&&(d=!0),f.height=0,p.height=l),o||(0===c&&(d=!0),f.width=0,p.width=c),Object(r.createElement)("div",{className:n,ref:this._setRef,style:s({},f,a)},!d&&t(p))}}]),t}(r.PureComponent);l.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.a=l}).call(this,n(72))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"}),"BatteryFull");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z"}),"Shuffle");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"}),"ViewList");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}),"NotificationsActive");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"}),"PlayCircleFilled");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircleFilled");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),"FormatListBulleted");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}),"TrendingUp");t.default=a},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";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}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:u(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?c:10===e?f:c||f}function d(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||d(e.firstElementChild)===e)}(a)?a:d(a);var s=h(e);return s.host?m(s.host,t):m(e,h(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function _(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=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}}(),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},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 C(e){return O({},e,{right:e.left+e.width,bottom:e.top+e.height})}function D(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?_(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-u;if(l||c){var f=a(e);l-=y(f,"x"),c-=y(f,"y"),i.width-=l,i.height-=c}return C(i)}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=D(e),s=D(t),l=u(e),c=a(t),f=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=C({top:o.top-s.top-f,left:o.left-s.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=g(h,t)),h}function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=S(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return C(u)}function A(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&A(n)}function T(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?T(e):m(e,l(t));if("viewport"===r)o=k(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var f=S(c,a,i);if("HTML"!==c.nodeName||A(a))o=f;else{var p=_(e.ownerDocument),d=p.height,h=p.width;o.top+=f.top-f.marginTop,o.bottom=d+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var v="number"===typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function M(e){return e.width*e.height}function j(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return O({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):m(t,l(n));return S(n,i,r)}function F(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=F(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[l]:t[R(s)],i}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function N(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function V(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){n.updateBound=r,W(e).addEventListener("resize",n.updateBound,{passive:!0});var i=u(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(u(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function $(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,W(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Y(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Z(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var X=n&&/Firefox/i.test(navigator.userAgent);function K(e,t,n){var r=z(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=J.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return C(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Y(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:E({},u,o[u]),end:E({},u,o[u]+o[l]-a[l])};e.offsets.popper=O({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=Y(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var r=V("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(c[e],u[e])),E({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),E({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=O({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!K(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",p=f.toLowerCase(),d=l?"left":"top",h=l?"bottom":"right",m=F(r)[c];u[h]-m<s[p]&&(e.offsets.popper[p]-=s[p]-(u[h]-m)),u[p]+m>s[h]&&(e.offsets.popper[p]+=u[p]+m-s[h]),e.offsets.popper=C(e.offsets.popper);var v=u[p]+u[c]/2-m/2,g=a(e.instance.popper),y=parseFloat(g["margin"+f]),b=parseFloat(g["border"+f+"Width"]),_=v-e.offsets.popper[p]-y-b;return _=Math.max(Math.min(s[c]-m,_),0),e.arrowElement=r,e.offsets.arrow=(E(n={},p,Math.round(_)),E(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(U(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=R(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,p="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),d=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),g="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&d||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&v),_=!!t.flipVariationsByContent&&(y&&"start"===o&&h||y&&"end"===o&&d||!y&&"start"===o&&v||!y&&"end"===o&&m),x=b||_;(p||g||x)&&(e.flipped=!0,(p||g)&&(r=a[u+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=O({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=C(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=d(e.instance.popper),u=D(s),l={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),p=t?c||f||u%2===l%2?o:a:s,d=t?o:s;return{left:p(u%2===1&&l%2===1&&!f&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!X),f="bottom"===n?"top":"bottom",p="right"===r?"left":"right",h=V("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===p?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)l[h]="translate3d("+m+"px, "+v+"px, 0)",l[f]=0,l[p]=0,l.willChange="transform";else{var g="bottom"===f?-1:1,y="right"===p?-1:1;l[f]=v*g,l[p]=m*y,l.willChange=f+", "+p}var b={"x-placement":e.placement};return e.attributes=O({},b,e.attributes),e.styles=O({},l,e.styles),e.arrowStyles=O({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Z(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=I(i,t,e,n.positionFixed),a=j(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Z(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=O({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(O({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=O({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return O({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return N.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return $.call(this)}}]),e}();ae.Utils=("undefined"!==typeof window?window:e).PopperUtils,ae.placements=J,ae.Defaults=oe,t.a=ae}).call(this,n(72))},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"}),"BarChart");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Create");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");t.default=a},function(e,t,n){"use strict";var r=n(38),i=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(40)).default)(o.createElement("path",{d:"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"}),"Build");t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(464),i=n(0),o=n(24),a=n(465),s=n(466);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=u(r),f=l(i),p=u(a),d=u(s),h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function g(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var y=function(e,t,n,r){switch(t){case"debounce":return p.default(e,n,r);case"throttle":return d.default(e,n,r);default:return e}},b=function(e){return"function"===typeof e},_=function(){return"undefined"===typeof window},x=function(e){return e instanceof Element||e instanceof HTMLDocument},w=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&b(e)&&e(o,a),{width:o,height:a})}))}},E=function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!_()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(_())return null;if(t)return document.querySelector(t);if(r&&x(r))return r;if(n.targetRef&&x(n.targetRef.current))return n.targetRef.current;var i=o.findDOMNode(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var u=w(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!_()&&u({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return b(t)?"renderProp":b(r)?"childFunction":i.isValidElement(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,a=t.refreshMode,s=t.refreshRate,u=void 0===s?1e3:s,l=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=i.createRef(),n.observableElement=null,_()||(n.resizeHandler=y(n.createResizeHandler,a,u,l),n.resizeObserver=new c.default(n.resizeHandler)),n}return m(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){_()||(this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,r=t.children,o=t.nodeType,a=void 0===o?"div":o,s=this.state,u={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(u);case"childFunction":return(e=r)(u);case"child":if((e=r).type&&"string"===typeof e.type){var l=g(u,["targetRef"]);return i.cloneElement(e,l)}return i.cloneElement(e,u);case"childArray":return(e=r).map((function(e){return!!e&&i.cloneElement(e,u)}));default:return f.createElement(a,null)}},t}(i.PureComponent);var O=_()?i.useEffect:i.useLayoutEffect;t.default=E,t.useResizeDetector=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,o=e.refreshRate,a=void 0===o?1e3:o,s=e.refreshOptions,u=e.handleWidth,l=void 0===u||u,f=e.handleHeight,p=void 0===f||f,d=e.targetRef,h=e.observerOptions,m=e.onResize,g=i.useRef(n),b=i.useRef(null),x=null!==d&&void 0!==d?d:b,E=i.useRef(),C=i.useState({width:void 0,height:void 0}),D=C[0],S=C[1];return O((function(){if(!_()){var e=w(m,S,l,p);E.current=y((function(t){(l||p)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!g.current&&!_()&&e({width:r,height:i}),g.current=!1}))}),r,a,s);var t=new c.default(E.current);return x.current&&t.observe(x.current,h),function(){t.disconnect();var e=E.current;e&&e.cancel&&e.cancel()}}}),[r,a,s,l,p,m,h,x.current]),v({ref:x},D)},t.withResizeDetector=function(e,t){void 0===t&&(t={});var n=function(n){function r(){var e=null!==n&&n.apply(this,arguments)||this;return e.ref=i.createRef(),e}return m(r,n),r.prototype.render=function(){var n=this.props,r=n.forwardedRef,i=g(n,["forwardedRef"]),o=null!==r&&void 0!==r?r:this.ref;return f.createElement(E,v({},t,{targetRef:o}),f.createElement(e,v({targetRef:o},i)))},r}(i.Component);function r(e,t){return f.createElement(n,v({},e,{forwardedRef:t}))}var o=e.displayName||e.name;return r.displayName="withResizeDetector("+o+")",i.forwardRef(r)}},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return xe}));var i=n(186),o=n.n(i),a=n(361),s=n.n(a),u=n(15),l=n.n(u),c=n(362),f=n.n(c),p=n(130),d=n.n(p),h=n(53),m=n.n(h),v=n(138),g=n.n(v),y=n(14),b=n.n(y),_=n(363),x=n.n(_),w=n(26),E=n.n(w),O=n(0),C=n.n(O),D=n(21),S=n.n(D),k=n(149),A=n(45),T=n(157),P=n(154),M=n(153),j=n(370),I=n(371),F=n(133),R=n(152),L=n(28),z=n(140),B=n(193),N=n(75),U=n(6),V=n(18),H=n(192),W=n(43),G=n(107),q=n(62),$=n(17);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 Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(){return(X=Object.assign||function(e){for(var t=1;t<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)}function K(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J(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 Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==Y(t)&&"function"!==typeof t?ne(e):t}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ie(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){if(e){if("string"===typeof e)return ae(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)?ae(e,t):void 0}}function ae(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 se(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce={xAxis:["bottom","top"],yAxis:["left","right"]},fe={x:0,y:0},pe=Number.isFinite?Number.isFinite:isFinite,de="function"===typeof requestAnimationFrame?requestAnimationFrame:"function"===typeof e?e:setTimeout,he="function"===typeof cancelAnimationFrame?cancelAnimationFrame:"function"===typeof r?r:clearTimeout,me=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(ie(e),ie(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Object(U.g)(i)&&Object(U.g)(o)?e.slice(i,o+1):[]},ve=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=me(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,s=t.props.data;if(o.dataKey&&!o.allowDuplicatedCategory){var u=void 0===s?a:s;i=Object(U.a)(u,o.dataKey,r)}else i=s&&s[n]||a[n];return i?[].concat(ie(e),[Object(V.s)(t,i)]):e}),[])},ge=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,u=e.tooltipTicks,l=Object(V.b)(o,a,u,s);if(l>=0&&u){var c=u[l]&&u[l].value;return{activeTooltipIndex:l,activeLabel:c,activePayload:ve(e,t,l,c),activeCoordinate:function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return ue(ue(ue({},r),Object(W.c)(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,u=r.angle;return ue(ue(ue({},r),Object(W.c)(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return fe}(n,a,l,i)}}return null},ye=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.children,c="".concat(r,"Id"),f=Object(L.a)(l,i),p={};return f&&f.length?p=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,c=e.children,f=e.stackOffset,p=Object(V.u)(l,i);return n.reduce((function(t,n){var d=n.props,h=d.type,m=d.dataKey,v=d.allowDataOverflow,y=d.allowDuplicatedCategory,_=d.scale,x=d.ticks,w=n.props[o],E=me(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===w})),dataStartIndex:s,dataEndIndex:u}),O=E.length;if(!t[w]){var C,D,S;if(m){if(C=Object(V.j)(E,m,h),"category"===h&&p){var k=Object(U.d)(C);y&&k?(D=C,C=g()(0,O)):y||(C=Object(V.v)(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(ie(e),[t])}),[]))}else if("category"===h)C=y?C.filter((function(e){return""!==e&&!b()(e)})):Object(V.v)(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:[].concat(ie(e),[t])}),[]);else if("number"===h){var A=Object(V.w)(E,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),m,i);A&&(C=A)}!p||"number"!==h&&"auto"===_||(S=Object(V.j)(E,m,"category"))}else C=p?g()(0,O):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:Object(V.l)(a[w].stackGroups,s,u):Object(V.k)(E,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,!0);if("number"===h)C=Object(H.a)(c,C,w,i,x),n.props.domain&&(C=Object(V.y)(n.props.domain,C,v));else if("category"===h&&n.props.domain){var T=n.props.domain;C.every((function(e){return T.indexOf(e)>=0}))&&(C=T)}return ue(ue({},t),{},le({},w,ue(ue({},n.props),{},{axisType:i,domain:C,categoricalDomain:S,duplicateDomain:D,originalDomain:n.props.domain,isCategorical:p,layout:l})))}return t}),{})}(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,c=e.children,f=me(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),p=f.length,d=Object(V.u)(l,i),h=-1;return n.reduce((function(e,t){var v,y=t.props[o];return e[y]?e:(h++,d?v=g()(0,p):a&&a[y]&&a[y].hasStack?(v=Object(V.l)(a[y].stackGroups,s,u),v=Object(H.a)(c,v,y,i)):(v=Object(V.y)(r.defaultProps.domain,Object(V.k)(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),v=Object(H.a)(c,v,y,i)),ue(ue({},e),{},le({},y,ue(ue({axisType:i},r.defaultProps),{},{hide:!0,orientation:m()(ce,"".concat(i,".").concat(h%2),null),domain:v,originalDomain:r.defaultProps.domain,isCategorical:d,layout:l}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),p},be=function(e){var t=e.children,n=e.defaultShowTooltip,r=Object(L.b)(t,B.a.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!b()(n)&&n}},_e=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},xe=function(e){var t,n,r=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,u=void 0===a?"axis":a,c=e.validateTooltipEventTypes,p=void 0===c?["axis"]:c,h=e.axisComponents,v=e.legendContent,g=e.formatAxisMap,y=e.defaultProps,_=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,u=e.barSize,l=e.layout,c=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,d=_e(l),m=d.numericAxisName,v=d.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Object(L.c)(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n)&&Object(V.g)({barSize:u,stackGroups:r}),y=[];return n.forEach((function(n,u){var d=me(e.data,{dataStartIndex:a,dataEndIndex:s},n),_=n.props,x=_.dataKey,w=_.maxBarSize,E=n.props["".concat(m,"Id")],O=n.props["".concat(v,"Id")],C=h.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=o&&o[a];return ue(ue({},e),{},(le(i={},r.axisType,s),le(i,"".concat(r.axisType,"Ticks"),Object(V.q)(s)),i))}),{}),D=C[v],S=C["".concat(v,"Ticks")],k=r&&r[E]&&r[E].hasStack&&Object(V.p)(n,r[E].stackGroups),A=Object(L.c)(n.type).indexOf("Bar")>=0,T=Object(V.e)(D,S),P=[];if(A){var M=b()(w)?p:w,j=Object(V.e)(D,S,!0)||M;P=Object(V.f)({barGap:c,barCategoryGap:f,bandSize:j!==T?j:T,sizeList:g[O],maxBarSize:M}),j!==T&&(P=P.map((function(e){return ue(ue({},e),{},{position:ue(ue({},e.position),{},{offset:e.position.offset-j/2})})})))}var I,F=n&&n.type&&n.type.getComposedData;F&&y.push({props:ue(ue({},F(ue(ue({},C),{},{displayedData:d,props:e,dataKey:x,item:n,bandSize:T,barPosition:P,offset:i,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(u)},le(I,m,C[m]),le(I,v,C[v]),le(I,"animationId",o),I)),childIndex:Object(L.f)(n,e.children),item:n})})),y},w=function(e,t){var n=e.props,o=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Object(L.h)({props:n}))return null;var u=n.children,l=n.layout,c=n.stackOffset,f=n.data,p=n.reverseStackOrder,v=_e(l),y=v.numericAxisName,b=v.cateAxisName,x=Object(L.a)(u,i),w=Object(V.o)(f,x,"".concat(y,"Id"),"".concat(b,"Id"),c,p),E=h.reduce((function(e,t){var r="".concat(t.axisType,"Map");return ue(ue({},e),{},le({},r,ye(n,ue(ue({},t),{},{graphicalItems:x,stackGroups:t.axisType===y&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,o=void 0===i?{}:i,a=e.yAxisMap,s=void 0===a?{}:a,u=n.width,l=n.height,c=n.children,f=n.margin||{},p=Object(L.b)(c,B.a.displayName),d=Object(L.b)(c,P.a.displayName),h=Object.keys(s).reduce((function(e,t){var n=s[t],r=n.orientation;return n.mirror||n.hide?e:ue(ue({},e),{},le({},r,e[r]+n.width))}),{left:f.left||0,right:f.right||0}),v=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:ue(ue({},e),{},le({},r,m()(e,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),g=ue(ue({},v),h),y=g.bottom;return p&&(g.bottom+=p.props.height||B.a.defaultProps.height),d&&t&&(g=Object(V.a)(g,r,n,t)),ue(ue({brushBottom:y},g),{},{width:u-g.left-g.right,height:l-g.top-g.bottom})}(ue(ue({},E),{},{props:n,graphicalItems:x}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(E).forEach((function(e){E[e]=g(n,E[e],O,e.replace("Map",""),r)}));var C=function(e){var t=Object(U.b)(e),n=Object(V.q)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:d()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Object(V.e)(t)}}(E["".concat(b,"Map")]),D=_(n,ue(ue({},E),{},{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:x,stackGroups:w,offset:O}));return ue(ue({formatedGraphicalItems:D,graphicalItems:x,offset:O,stackGroups:w},C),E)};return n=t=function(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&&Q(e,t)}(c,e);var t,n,i,a=ee(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!b()(t.deferId)&&he&&he(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e&&t.legendInstance){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(ue({legendBBox:e},w({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},ue(ue({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=de&&de(t.applySyncEvent.bind(ne(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return ue({dataStartIndex:n,dataEndIndex:r},w({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=ue(ue({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),l()(n)&&n(i,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?ue(ue({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),l()(n)&&n(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&l()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),l()(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=Object(L.d)(e),r=m()(t.props,"".concat(n));n&&l()(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=ue(ue({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),l()(n)&&n(i,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;l()(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;l()(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return Object(V.i)(z.a.getTicks(ue(ue(ue({},z.a.defaultProps),t),{},{ticks:Object(V.q)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return Object(V.i)(z.a.getTicks(ue(ue(ue({},z.a.defaultProps),t),{},{ticks:Object(V.q)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return Object(V.q)(e,!0)},t.renderCursor=function(e){var n=t.state,i=n.isTooltipActive,o=n.activeCoordinate,a=n.activePayload,s=n.offset,u=n.activeTooltipIndex,l=t.getTooltipEventType();if(!e||!e.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==l)return null;var c,f=t.props.layout,p=M.a;if("ScatterChart"===r)c=o,p=j.a;else if("BarChart"===r)c=t.getCursorRectangle(),p=R.a;else if("radial"===f){var d=t.getCursorPoints(),h=d.cx,m=d.cy,v=d.radius;c={cx:h,cy:m,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:v,outerRadius:v},p=I.a}else c={points:t.getCursorPoints()},p=M.a;var g=e.key||"_recharts-cursor",y=ue(ue(ue(ue({stroke:"#ccc",pointerEvents:"none"},s),c),Object($.c)(e.props.cursor)),{},{payload:a,payloadIndex:u,key:g,className:"recharts-tooltip-cursor"});return Object(O.isValidElement)(e.props.cursor)?Object(O.cloneElement)(e.props.cursor,y):Object(O.createElement)(p,y)},t.renderPolarAxis=function(e,n,r){var i=m()(e,"type.axisType"),o=m()(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return Object(O.cloneElement)(e,ue(ue({},o),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:Object(V.q)(o,!0)}))},t.renderXAxis=function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)},t.renderYAxis=function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,u=t.props,l=u.width,c=u.height,f=Object(U.b)(r),p=s()(i,(function(e){return o()(e.domain,pe)}))||Object(U.b)(i),d=e.props||{};return Object(O.cloneElement)(e,{key:e.key||"grid",x:Object(U.g)(d.x)?d.x:a.left,y:Object(U.g)(d.y)?d.y:a.top,width:Object(U.g)(d.width)?d.width:a.width,height:Object(U.g)(d.height)?d.height:a.height,xAxis:f,yAxis:p,offset:a,chartWidth:l,chartHeight:c,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,s=a.radiusAxisMap,u=a.angleAxisMap,l=Object(U.b)(s),c=Object(U.b)(u),f=c.cx,p=c.cy,d=c.innerRadius,h=c.outerRadius;e.props;return Object(O.cloneElement)(e,{polarAngles:E()(i)?i:Object(V.q)(c,!0).map((function(e){return e.coordinate})),polarRadius:E()(o)?o:Object(V.q)(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formatedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},s=i-(a.left||0)-(a.right||0),u=Object(V.m)({children:r,formatedGraphicalItems:e,legendWidth:s,legendContent:v});if(!u)return null;var l=u.item,c=K(u,["item"]);return Object(O.cloneElement)(l,ue(ue({},c),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=Object(L.b)(e,T.a.displayName);if(!n)return null;var r=t.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,u=r.offset;return Object(O.cloneElement)(n,{viewBox:ue(ue({},u),{},{x:u.left,y:u.top}),active:i,label:s,payload:i?a:[],coordinate:o})},t.renderBrush=function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return Object(O.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(V.d)(t.handleBrushChange,null,e.props.onChange),data:i,x:Object(U.g)(e.props.x)?e.props.x:a.left,y:Object(U.g)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(U.g)(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var i=ne(t).clipPathId,o=t.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,l=e.props,c=l.xAxisId,f=l.yAxisId;return Object(O.cloneElement)(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[c],yAxis:s[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],s=t.props.key,u=t.item.props,l=u.activeDot,f=ue(ue({index:i,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:Object(V.n)(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},Object($.c)(l)),Object($.a)(l));return a.push(c.renderActiveDot(l,f)),r?a.push(c.renderActiveDot(l,ue(ue({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,c=a.activeLabel,f=t.props.children,p=Object(L.b)(f,T.a.displayName),d=i.props,h=d.points,m=d.isRange,v=d.baseLine,g=i.item.props,y=g.activeDot,_=!g.hide&&s&&p&&y&&l>=0,x={};"axis"!==o&&p&&"click"===p.props.trigger?x={onClick:Object(V.d)(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:Object(V.d)(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:Object(V.d)(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=Object(O.cloneElement)(e,ue(ue({},i.props),x));if(_){var E,C;if(u.dataKey&&!u.allowDuplicatedCategory){var D="function"===typeof u.dataKey?function(e){return"function"===typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());E=Object(U.a)(h,D,c),C=m&&v&&Object(U.a)(v,D,c)}else E=h[l],C=m&&v&&v[l];if(!b()(E))return[w].concat(ie(t.renderActivePoints({item:i,activePoint:E,basePoint:C,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]},t.renderCustomized=function(e){return Object(O.cloneElement)(e,ue(ue({},t.props),t.state))},t.uniqueChartId=b()(e.id)?Object(U.j)("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=f()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=c,(n=[{key:"componentDidMount",value:function(){b()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){b()(e.syncId)&&!b()(this.props.syncId)&&this.addListener(),!b()(e.syncId)&&b()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),b()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Object(L.b)(this.props.children,T.a.displayName);if(e&&x()(e.props.shared)){var t=e.props.shared?"axis":"item";return p.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(N.b)(this.container),n=Object(N.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,a=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&a){var s=Object(U.b)(o).scale,u=Object(U.b)(a).scale,l=s&&s.invert?s.invert(n.chartX):null,c=u&&u.invert?u.invert(n.chartY):null;return ue(ue({},n),{},{xValue:l,yValue:c})}var f=ge(this.state,this.props.data,this.props.layout,r);return f?ue(ue({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!b()(a.cx)||!b()(a.cy)){if("centric"!==i){var u=a.cx,l=a.cy,c=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Object(W.c)(u,l,c,f),Object(W.c)(u,l,c,p)],cx:u,cy:l,radius:c,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,g=a.angle,y=Object(W.c)(d,h,m,g),_=Object(W.c)(d,h,v,g);e=y.x,t=y.y,n=_.x,r=_.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Object(U.b)(o);return Object(W.b)({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Object(L.b)(e,T.a.displayName),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),ue(ue({},Object($.a)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){q.b.on(q.a,this.handleReceiveSyncEvent),q.b.setMaxListeners&&q.b._maxListeners&&q.b.setMaxListeners(q.b._maxListeners+1)}},{key:"removeListener",value:function(){q.b.removeListener(q.a,this.handleReceiveSyncEvent),q.b.setMaxListeners&&q.b._maxListeners&&q.b.setMaxListeners(q.b._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;b()(t)||q.b.emit(q.a,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(b()(e.dataStartIndex)&&b()(e.dataEndIndex))if(b()(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,u=e.chartY,l=e.activeTooltipIndex,c=this.state,f=c.offset,p=c.tooltipTicks;if(!f)return;if("function"===typeof r)l=r(p,e);else if("value"===r){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){l=d;break}}var h=ue(ue({},f),{},{x:f.left,y:f.top}),m=Math.min(s,h.x+h.width),v=Math.min(u,h.y+h.height),g=p[l]&&p[l].value,y=ve(this.state,this.props.data,l),_=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?v:p[l].coordinate}:fe;this.setState(ue(ue({},e),{},{activeLabel:g,activeCoordinate:_,activePayload:y,activeTooltipIndex:l}))}else this.setState(ue({dataStartIndex:o,dataEndIndex:a},w({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===Object(L.c)(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var i=this.props,o=i.width,a=i.height;return C.a.createElement(z.a,X({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,o=t.width;return C.a.createElement("defs",null,C.a.createElement("clipPath",{id:e},C.a.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=Z(t,2),r=n[0],i=n[1];return ue(ue({},e),{},le({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=Z(t,2),r=n[0],i=n[1];return ue(ue({},e),{},le({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formatedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,s=Object(L.c)(a.type);if("Bar"===s){var u=(o.data||[]).find((function(t){return Object(R.b)(e,t)}));if(u)return{graphicalItem:i,payload:u}}else if("RadialBar"===s){var l=(o.data||[]).find((function(t){return Object(W.b)(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var e=this;if(!Object(L.h)(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,o=t.height,a=t.style,s=t.compact,u=K(t,["children","className","width","height","style","compact"]),l=Object($.c)(u),c={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return C.a.createElement(k.a,X({},l,{width:i,height:o}),this.renderClipPath(),Object(L.g)(n,c));var f=this.parseEventsOfWrapper();return C.a.createElement("div",X({className:S()("recharts-wrapper",r),style:ue({position:"relative",cursor:"default",width:i,height:o},a)},f,{ref:function(t){e.container=t}}),C.a.createElement(k.a,X({},l,{width:i,height:o}),this.renderClipPath(),Object(L.g)(n,c)),this.renderLegend(),this.renderTooltip())}}])&&J(t.prototype,n),i&&J(t,i),c}(O.Component),t.displayName=r,t.defaultProps=ue({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y),t.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,s=e.stackOffset,u=e.margin;if(b()(t.updateId)){var l=be(e);return ue(ue(ue({},l),{},{updateId:0},w(ue(ue({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:u,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Object(G.a)(u,t.prevMargin)){var c=be(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=ue(ue({},ge(t,n,a)),{},{updateId:t.updateId+1}),d=ue(ue(ue({},c),f),p);return ue(ue(ue({},d),w(ue({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:u,prevChildren:r})}if(!Object(L.e)(r,t.prevChildren)){var h=!b()(n)?t.updateId:t.updateId+1;return ue(ue({updateId:h},w(ue(ue({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},t.renderActiveDot=function(e,t){var n;return n=Object(O.isValidElement)(e)?Object(O.cloneElement)(e,t):l()(e)?e(t):C.a.createElement(F.a,t),C.a.createElement(A.a,{className:"recharts-active-dot",key:t.key},n)},n}}).call(this,n(256).setImmediate,n(256).clearImmediate)},function(e,t,n){var r=n(514)(n(515));e.exports=r},function(e,t,n){var r=n(222),i=n(55);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){var r=n(98),i=n(99);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},function(e,t,n){var r=n(220),i=n(539);e.exports=function(e,t){return r(i(e,t),1)}},function(e,t,n){var r=n(220);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){"use strict";e.exports=n(540)},function(e,t,n){var r=n(264),i=n(100),o=n(549),a=n(26),s=n(169);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},function(e,t,n){var r=n(550),i=n(257),o=n(100);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},function(e,t,n){!function(e){"use strict";var t="function"===typeof WeakSet,n=Object.keys;function r(e,t){return e===t||e!==e&&t!==t}function i(e){return e.constructor===Object||null==e.constructor}function o(e){return!!e&&"function"===typeof e.then}function a(e){return!(!e||!e.$$typeof)}function s(){var e=[];return{add:function(t){e.push(t)},has:function(t){return-1!==e.indexOf(t)}}}var u=t?function(){return new WeakSet}:s;function l(e){return function(t){var n=e||t;return function(e,t,r){void 0===r&&(r=u());var i=!!e&&"object"===typeof e,o=!!t&&"object"===typeof t;if(i||o){var a=i&&r.has(e),s=o&&r.has(t);if(a||s)return a&&s;i&&r.add(e),o&&r.add(t)}return n(e,t,r)}}}var c=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function f(e,t,r,i){var o=n(e),s=o.length;if(n(t).length!==s)return!1;if(s)for(var u=void 0;s-- >0;){if("_owner"===(u=o[s])){var l=a(e),f=a(t);if((l||f)&&l!==f)return!1}if(!c(t,u)||!r(e[u],t[u],i))return!1}return!0}var p="function"===typeof Map,d="function"===typeof Set;function h(e){var t="function"===typeof e?e(n):n;function n(e,n,a){if(e===n)return!0;if(e&&n&&"object"===typeof e&&"object"===typeof n){if(i(e)&&i(n))return f(e,n,t,a);var s=Array.isArray(e),u=Array.isArray(n);return s||u?s===u&&function(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n(e[i],t[i],r))return!1;return!0}(e,n,t,a):(s=e instanceof Date,u=n instanceof Date,s||u?s===u&&r(e.getTime(),n.getTime()):(s=e instanceof RegExp,u=n instanceof RegExp,s||u?s===u&&function(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}(e,n):o(e)||o(n)?e===n:p&&(s=e instanceof Map,u=n instanceof Map,s||u)?s===u&&function(e,t,n,r){var i=e.size===t.size;return i&&e.size&&e.forEach((function(e,o){i&&(i=!1,t.forEach((function(t,a){!i&&n(o,a,r)&&(i=n(e,t,r))})))})),i}(e,n,t,a):d&&(s=e instanceof Set,u=n instanceof Set,s||u)?s===u&&function(e,t,n,r){var i=e.size===t.size;return i&&e.size&&e.forEach((function(e){i&&(i=!1,t.forEach((function(t){i||(i=n(e,t,r))})))})),i}(e,n,t,a):f(e,n,t,a)))}return e!==e&&n!==n}return n}var m=h(),v=h((function(){return r})),g=h(l()),y=h(l(r));e.circularDeepEqual=g,e.circularShallowEqual=y,e.createCustomEqual=h,e.deepEqual=m,e.sameValueZeroEqual=r,e.shallowEqual=v,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),i=n.n(r),o=n(21),a=n.n(o),s=n(6),u=n(17);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})(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}).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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(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&&d(e,t)}(l,e);var t,n,r,o=h(l);function l(){return f(this,l),o.apply(this,arguments)}return t=l,r=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],(n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,f=e.top,p=e.left,d=e.className;return Object(s.g)(t)&&Object(s.g)(n)&&Object(s.g)(r)&&Object(s.g)(o)&&Object(s.g)(f)&&Object(s.g)(p)?i.a.createElement("path",c({},Object(u.c)(this.props,!0),{className:a()("recharts-cross",d),d:l.getPath(t,n,r,o,f,p)})):null}}])&&p(t.prototype,n),r&&p(t,r),l}(r.PureComponent);g.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(0),i=n.n(r),o=n(21),a=n.n(o),s=n(17),u=n(43),l=n(6);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})(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}).apply(this,arguments)}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){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,c=s*(a?1:-1)+r,f=Math.asin(s/c)/u.a,p=l?i:i+o*f,d=l?i-o*f:i;return{center:Object(u.c)(t,n,c,p),circleTangency:Object(u.c)(t,n,r,p),lineTangency:Object(u.c)(t,n,c*Math.cos(f*u.a),d),theta:f}},b=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Object(l.i)(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),s=o+a,c=Object(u.c)(t,n,i,o),f=Object(u.c)(t,n,i,s),p="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>s),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var d=Object(u.c)(t,n,r,o),h=Object(u.c)(t,n,r,s);p+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else p+="L ".concat(t,",").concat(n," Z");return p},_=function(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&&h(e,t)}(u,e);var t,n,r,o=m(u);function u(){return p(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,u=e.cornerRadius,c=e.forceCornerRadius,p=e.cornerIsExternal,d=e.startAngle,h=e.endAngle,m=e.className;if(o<r||d===h)return null;var v,g=a()("recharts-sector",m),_=o-r,x=Object(l.c)(u,_,0,!0);return v=x>0&&Math.abs(d-h)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,c=e.endAngle,f=Object(l.i)(c-u),p=y({cx:t,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),d=p.circleTangency,h=p.lineTangency,m=p.theta,v=y({cx:t,cy:n,radius:i,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:s}),g=v.circleTangency,_=v.lineTangency,x=v.theta,w=s?Math.abs(u-c):Math.abs(u-c)-m-x;if(w<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):b({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c});var E="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"\n ");if(r>0){var O=y({cx:t,cy:n,radius:r,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),C=O.circleTangency,D=O.lineTangency,S=O.theta,k=y({cx:t,cy:n,radius:r,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=k.circleTangency,T=k.lineTangency,P=k.theta,M=s?Math.abs(u-c):Math.abs(u-c)-S-P;if(M<0&&0===o)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(T.x,",").concat(T.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(f>0),",").concat(C.x,",").concat(C.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(D.x,",").concat(D.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(x,_/2),forceCornerRadius:c,cornerIsExternal:p,startAngle:d,endAngle:h}):b({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:d,endAngle:h}),i.a.createElement("path",f({},Object(s.c)(this.props,!0),{className:g,d:v}))}}])&&d(t.prototype,n),r&&d(t,r),u}(r.PureComponent);_.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function u(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var p,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;case 4:c[l].fn.call(c[l].context,t,n,r);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];c[l].fn.apply(c[l].context,u)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||u(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:u(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},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},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}}(),o=n(0),a=f(o),s=f(n(3)),u=f(n(24)),l=f(n(567)),c=f(n(578));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={initiated:!1},e.onResize=e.onResize.bind(e),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"getDomNodeDimensions",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}}]),i(t,[{key:"componentDidMount",value:function(){this.parentNode=u.default.findDOMNode(this).parentNode,this.elementResizeDetector=(0,l.default)({strategy:"scroll",callOnAdd:!1}),this.elementResizeDetector.listenTo(this.parentNode,this.onResize),this.componentIsMounted=!0,this.onResize()}},{key:"componentWillUnmount",value:function(){this.componentIsMounted=!1,this.elementResizeDetector.uninstall(this.parentNode)}},{key:"onResize",value:function(){var e=t.getDomNodeDimensions(this.parentNode);this.componentIsMounted&&this.setState(r({initiated:!0},e))}},{key:"render",value:function(){if((0,c.default)(this.props.children,"Expected children to be one of function or React.Element"),!this.state.initiated)return a.default.createElement("div",null);if("function"===typeof this.props.children){var e=this.props.children(this.state);return e&&o.Children.only(e)}return o.Children.only(a.default.cloneElement(this.props.children,this.state))}}]),t}(o.Component);p.propTypes={children:s.default.oneOfType([s.default.element,s.default.func]).isRequired},t.default=p},function(e,t,n){(function(t){e.exports=function(){"use strict";var e=function(e,t){var n={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},r={on:function(e,t,r){if(void 0===n[e])throw new Error("Invalid event type: "+e);n[e].push({selector:t,fn:r})},render:function(e){t.store.featureChanged(e)}},i=function(e,i){for(var o=n[e],a=o.length;a--;){var s=o[a];if(s.selector(i)){s.fn.call(r,i)||t.store.render(),t.ui.updateMapClasses();break}}};return e.start.call(r),{render:e.render,stop:function(){e.stop&&e.stop()},trash:function(){e.trash&&(e.trash(),t.store.render())},combineFeatures:function(){e.combineFeatures&&e.combineFeatures()},uncombineFeatures:function(){e.uncombineFeatures&&e.uncombineFeatures()},drag:function(e){i("drag",e)},click:function(e){i("click",e)},mousemove:function(e){i("mousemove",e)},mousedown:function(e){i("mousedown",e)},mouseup:function(e){i("mouseup",e)},mouseout:function(e){i("mouseout",e)},keydown:function(e){i("keydown",e)},keyup:function(e){i("keyup",e)},touchstart:function(e){i("touchstart",e)},touchmove:function(e){i("touchmove",e)},touchend:function(e){i("touchend",e)},tap:function(e){i("tap",e)}}},n=6378137;function r(e){var t=0;if(e&&e.length>0){t+=Math.abs(i(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(i(e[n]))}return t}function i(e){var t,r,i,a,s,u,l=0,c=e.length;if(c>2){for(u=0;u<c;u++)u===c-2?(i=c-2,a=c-1,s=0):u===c-1?(i=c-1,a=0,s=1):(i=u,a=u+1,s=u+2),t=e[i],r=e[a],l+=(o(e[s][0])-o(t[0]))*Math.sin(o(r[1]));l=l*n*n/2}return l}function o(e){return e*Math.PI/180}var a=function e(t){var n,i=0;switch(t.type){case"Polygon":return r(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)i+=r(t.coordinates[n]);return i;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)i+=e(t.geometries[n]);return i}},s="active",u="mapbox-gl-draw-hot",l="mapbox-gl-draw-cold",c="add",f="move",p="pointer",d="none",h={POLYGON:"polygon",LINE:"line_string",POINT:"point"},m="Feature",v="Polygon",g="LineString",y="Point",b="FeatureCollection",_="Multi",x={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},w="draw.create",E="draw.update",O="feature",C="midpoint",D="vertex",S="true",k="false",A=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],T={Point:0,LineString:1,Polygon:2};function P(e,t){var n=T[e.geometry.type]-T[t.geometry.type];return 0===n&&e.geometry.type===v?e.area-t.area:n}function M(e){if(this._items={},this._nums={},this._length=e?e.length:0,e)for(var t=0,n=e.length;t<n;t++)this.add(e[t]),void 0!==e[t]&&("string"==typeof e[t]?this._items[e[t]]=t:this._nums[e[t]]=t)}M.prototype.add=function(e){return this.has(e)||(this._length++,"string"==typeof e?this._items[e]=this._length:this._nums[e]=this._length),this},M.prototype.delete=function(e){return!1===this.has(e)||(this._length--,delete this._items[e],delete this._nums[e]),this},M.prototype.has=function(e){return("string"==typeof e||"number"==typeof e)&&(void 0!==this._items[e]||void 0!==this._nums[e])},M.prototype.values=function(){var e=this,t=[];return Object.keys(this._items).forEach((function(n){t.push({k:n,v:e._items[n]})})),Object.keys(this._nums).forEach((function(n){t.push({k:JSON.parse(n),v:e._nums[n]})})),t.sort((function(e,t){return e.v-t.v})).map((function(e){return e.k}))},M.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var j=[O,C,D],I={click:function(e,t,n){return F(e,t,n,n.options.clickBuffer)},touch:function(e,t,n){return F(e,t,n,n.options.touchBuffer)}};function F(e,t,n,r){if(null===n.map)return[];var i=e?function(e,t){return void 0===t&&(t=0),[[e.point.x-t,e.point.y-t],[e.point.x+t,e.point.y+t]]}(e,r):t,o={};n.options.styles&&(o.layers=n.options.styles.map((function(e){return e.id})));var s=n.map.queryRenderedFeatures(i,o).filter((function(e){return-1!==j.indexOf(e.properties.meta)})),u=new M,l=[];return s.forEach((function(e){var t=e.properties.id;u.has(t)||(u.add(t),l.push(e))})),function(e){return e.map((function(e){return e.geometry.type===v&&(e.area=a({type:m,property:{},geometry:e.geometry})),e})).sort(P).map((function(e){return delete e.area,e}))}(l)}function R(e,t){var n=I.click(e,null,t),r={mouse:d};return n[0]&&(r.mouse=n[0].properties.active===S?f:p,r.feature=n[0].properties.meta),-1!==t.events.currentModeName().indexOf("draw")&&(r.mouse=c),t.ui.queueMapClasses(r),t.ui.updateMapClasses(),n[0]}function L(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function z(e,t,n){void 0===n&&(n={});var r=null!=n.fineTolerance?n.fineTolerance:4,i=null!=n.grossTolerance?n.grossTolerance:12,o=null!=n.interval?n.interval:500;e.point=e.point||t.point,e.time=e.time||t.time;var a=L(e.point,t.point);return a<r||a<i&&t.time-e.time<o}function B(e,t,n){void 0===n&&(n={});var r=null!=n.tolerance?n.tolerance:25,i=null!=n.interval?n.interval:250;return e.point=e.point||t.point,e.time=e.time||t.time,L(e.point,t.point)<r&&t.time-e.time<i}function N(e,t){return e(t={exports:{}},t.exports),t.exports}var U=N((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var r=Math.log(Math.pow(2,e))/Math.log(n),i=2;r===1/0;i*=2)r=Math.log(Math.pow(2,e/i))/Math.log(n)*i;var o=r-Math.floor(r),a="";for(i=0;i<Math.floor(r);i++)a=Math.floor(Math.random()*n).toString(n)+a;if(o){var s=Math.pow(n,o);a=Math.floor(Math.random()*s).toString(n)+a}var u=parseInt(a,n);return u!==1/0&&u>=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,r){var i=function(i){var a=0;do{if(a++>10){if(!r)throw new Error("too many ID collisions, use more bits");e+=r}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=i,s},o=i.hats={};return i.get=function(e){return i.hats[e]},i.set=function(e,t){return i.hats[e]=t,i},i.bits=e||128,i.base=n||16,i}})),V=function(e,t){this.ctx=e,this.properties=t.properties||{},this.coordinates=t.geometry.coordinates,this.id=t.id||U(),this.type=t.geometry.type};V.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},V.prototype.incomingCoords=function(e){this.setCoordinates(e)},V.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},V.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},V.prototype.setProperty=function(e,t){this.properties[e]=t},V.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:m,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},V.prototype.internal=function(e){var t={id:this.id,meta:O,"meta:type":this.type,active:k,mode:e};if(this.ctx.options.userProperties)for(var n in this.properties)t["user_"+n]=this.properties[n];return{type:m,properties:t,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var H=function(e,t){V.call(this,e,t)};(H.prototype=Object.create(V.prototype)).isValid=function(){return"number"==typeof this.coordinates[0]&&"number"==typeof this.coordinates[1]},H.prototype.updateCoordinate=function(e,t,n){this.coordinates=3===arguments.length?[t,n]:[e,t],this.changed()},H.prototype.getCoordinate=function(){return this.getCoordinates()};var W=function(e,t){V.call(this,e,t)};(W.prototype=Object.create(V.prototype)).isValid=function(){return this.coordinates.length>1},W.prototype.addCoordinate=function(e,t,n){this.changed();var r=parseInt(e,10);this.coordinates.splice(r,0,[t,n])},W.prototype.getCoordinate=function(e){var t=parseInt(e,10);return JSON.parse(JSON.stringify(this.coordinates[t]))},W.prototype.removeCoordinate=function(e){this.changed(),this.coordinates.splice(parseInt(e,10),1)},W.prototype.updateCoordinate=function(e,t,n){var r=parseInt(e,10);this.coordinates[r]=[t,n],this.changed()};var G=function(e,t){V.call(this,e,t),this.coordinates=this.coordinates.map((function(e){return e.slice(0,-1)}))};(G.prototype=Object.create(V.prototype)).isValid=function(){return 0!==this.coordinates.length&&this.coordinates.every((function(e){return e.length>2}))},G.prototype.incomingCoords=function(e){this.coordinates=e.map((function(e){return e.slice(0,-1)})),this.changed()},G.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},G.prototype.addCoordinate=function(e,t,n){this.changed();var r=e.split(".").map((function(e){return parseInt(e,10)}));this.coordinates[r[0]].splice(r[1],0,[t,n])},G.prototype.removeCoordinate=function(e){this.changed();var t=e.split(".").map((function(e){return parseInt(e,10)})),n=this.coordinates[t[0]];n&&(n.splice(t[1],1),n.length<3&&this.coordinates.splice(t[0],1))},G.prototype.getCoordinate=function(e){var t=e.split(".").map((function(e){return parseInt(e,10)})),n=this.coordinates[t[0]];return JSON.parse(JSON.stringify(n[t[1]]))},G.prototype.getCoordinates=function(){return this.coordinates.map((function(e){return e.concat([e[0]])}))},G.prototype.updateCoordinate=function(e,t,n){this.changed();var r=e.split("."),i=parseInt(r[0],10),o=parseInt(r[1],10);void 0===this.coordinates[i]&&(this.coordinates[i]=[]),this.coordinates[i][o]=[t,n]};var q={MultiPoint:H,MultiLineString:W,MultiPolygon:G},$=function(e,t,n,r,i){var o=n.split("."),a=parseInt(o[0],10),s=o[1]?o.slice(1).join("."):null;return e[a][t](s,r,i)},Y=function(e,t){if(V.call(this,e,t),delete this.coordinates,this.model=q[t.geometry.type],void 0===this.model)throw new TypeError(t.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(t.geometry.coordinates)};function Z(e){this.map=e.map,this.drawConfig=JSON.parse(JSON.stringify(e.options||{})),this._ctx=e}(Y.prototype=Object.create(V.prototype))._coordinatesToFeatures=function(e){var t=this,n=this.model.bind(this);return e.map((function(e){return new n(t.ctx,{id:U(),type:m,properties:{},geometry:{coordinates:e,type:t.type.replace("Multi","")}})}))},Y.prototype.isValid=function(){return this.features.every((function(e){return e.isValid()}))},Y.prototype.setCoordinates=function(e){this.features=this._coordinatesToFeatures(e),this.changed()},Y.prototype.getCoordinate=function(e){return $(this.features,"getCoordinate",e)},Y.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map((function(e){return e.type===v?e.getCoordinates():e.coordinates}))))},Y.prototype.updateCoordinate=function(e,t,n){$(this.features,"updateCoordinate",e,t,n),this.changed()},Y.prototype.addCoordinate=function(e,t,n){$(this.features,"addCoordinate",e,t,n),this.changed()},Y.prototype.removeCoordinate=function(e){$(this.features,"removeCoordinate",e),this.changed()},Y.prototype.getFeatures=function(){return this.features},Z.prototype.setSelected=function(e){return this._ctx.store.setSelected(e)},Z.prototype.setSelectedCoordinates=function(e){var t=this;this._ctx.store.setSelectedCoordinates(e),e.reduce((function(e,n){return void 0===e[n.feature_id]&&(e[n.feature_id]=!0,t._ctx.store.get(n.feature_id).changed()),e}),{})},Z.prototype.getSelected=function(){return this._ctx.store.getSelected()},Z.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},Z.prototype.isSelected=function(e){return this._ctx.store.isSelected(e)},Z.prototype.getFeature=function(e){return this._ctx.store.get(e)},Z.prototype.select=function(e){return this._ctx.store.select(e)},Z.prototype.deselect=function(e){return this._ctx.store.deselect(e)},Z.prototype.deleteFeature=function(e,t){return void 0===t&&(t={}),this._ctx.store.delete(e,t)},Z.prototype.addFeature=function(e){return this._ctx.store.add(e)},Z.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},Z.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},Z.prototype.setActionableState=function(e){void 0===e&&(e={});var t={trash:e.trash||!1,combineFeatures:e.combineFeatures||!1,uncombineFeatures:e.uncombineFeatures||!1};return this._ctx.events.actionable(t)},Z.prototype.changeMode=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this._ctx.events.changeMode(e,t,n)},Z.prototype.updateUIClasses=function(e){return this._ctx.ui.queueMapClasses(e)},Z.prototype.activateUIButton=function(e){return this._ctx.ui.setActiveButton(e)},Z.prototype.featuresAt=function(e,t,n){if(void 0===n&&(n="click"),"click"!==n&&"touch"!==n)throw new Error("invalid buffer type");return I[n](e,t,this._ctx)},Z.prototype.newFeature=function(e){var t=e.geometry.type;return t===y?new H(this._ctx,e):t===g?new W(this._ctx,e):t===v?new G(this._ctx,e):new Y(this._ctx,e)},Z.prototype.isInstanceOf=function(e,t){if(e===y)return t instanceof H;if(e===g)return t instanceof W;if(e===v)return t instanceof G;if("MultiFeature"===e)return t instanceof Y;throw new Error("Unknown feature class: "+e)},Z.prototype.doRender=function(e){return this._ctx.store.featureChanged(e)},Z.prototype.onSetup=function(){},Z.prototype.onDrag=function(){},Z.prototype.onClick=function(){},Z.prototype.onMouseMove=function(){},Z.prototype.onMouseDown=function(){},Z.prototype.onMouseUp=function(){},Z.prototype.onMouseOut=function(){},Z.prototype.onKeyUp=function(){},Z.prototype.onKeyDown=function(){},Z.prototype.onTouchStart=function(){},Z.prototype.onTouchMove=function(){},Z.prototype.onTouchEnd=function(){},Z.prototype.onTap=function(){},Z.prototype.onStop=function(){},Z.prototype.onTrash=function(){},Z.prototype.onCombineFeature=function(){},Z.prototype.onUncombineFeature=function(){},Z.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var X={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},K=Object.keys(X);function J(e){return[].concat(e).filter((function(e){return void 0!==e}))}function Q(){var e=this;if(!e.ctx.map||void 0===e.ctx.map.getSource(u))return c();var t=e.ctx.events.currentModeName();e.ctx.ui.queueMapClasses({mode:t});var n=[],r=[];e.isDirty?r=e.getAllIds():(n=e.getChangedIds().filter((function(t){return void 0!==e.get(t)})),r=e.sources.hot.filter((function(t){return t.properties.id&&-1===n.indexOf(t.properties.id)&&void 0!==e.get(t.properties.id)})).map((function(e){return e.properties.id}))),e.sources.hot=[];var i=e.sources.cold.length;e.sources.cold=e.isDirty?[]:e.sources.cold.filter((function(e){var t=e.properties.id||e.properties.parent;return-1===n.indexOf(t)}));var o=i!==e.sources.cold.length||r.length>0;function a(n,r){var i=e.get(n).internal(t);e.ctx.events.currentModeRender(i,(function(t){e.sources[r].push(t)}))}if(n.forEach((function(e){return a(e,"hot")})),r.forEach((function(e){return a(e,"cold")})),o&&e.ctx.map.getSource(l).setData({type:b,features:e.sources.cold}),e.ctx.map.getSource(u).setData({type:b,features:e.sources.hot}),e._emitSelectionChange&&(e.ctx.map.fire("draw.selectionchange",{features:e.getSelected().map((function(e){return e.toGeoJSON()})),points:e.getSelectedCoordinates().map((function(e){return{type:m,properties:{},geometry:{type:y,coordinates:e.coordinates}}}))}),e._emitSelectionChange=!1),e._deletedFeaturesToEmit.length){var s=e._deletedFeaturesToEmit.map((function(e){return e.toGeoJSON()}));e._deletedFeaturesToEmit=[],e.ctx.map.fire("draw.delete",{features:s})}function c(){e.isDirty=!1,e.clearChangedIds()}c(),e.ctx.map.fire("draw.render",{})}function ee(e){var t,n=this;this._features={},this._featureIds=new M,this._selectedFeatureIds=new M,this._selectedCoordinates=[],this._changedFeatureIds=new M,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=e,this.sources={hot:[],cold:[]},this.render=function(){t||(t=requestAnimationFrame((function(){t=null,Q.call(n)})))},this.isDirty=!1}function te(e,t){var n=e._selectedCoordinates.filter((function(t){return e._selectedFeatureIds.has(t.feature_id)}));e._selectedCoordinates.length===n.length||t.silent||(e._emitSelectionChange=!0),e._selectedCoordinates=n}ee.prototype.createRenderBatch=function(){var e=this,t=this.render,n=0;return this.render=function(){n++},function(){e.render=t,n>0&&e.render()}},ee.prototype.setDirty=function(){return this.isDirty=!0,this},ee.prototype.featureChanged=function(e){return this._changedFeatureIds.add(e),this},ee.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},ee.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},ee.prototype.getAllIds=function(){return this._featureIds.values()},ee.prototype.add=function(e){return this.featureChanged(e.id),this._features[e.id]=e,this._featureIds.add(e.id),this},ee.prototype.delete=function(e,t){var n=this;return void 0===t&&(t={}),J(e).forEach((function(e){n._featureIds.has(e)&&(n._featureIds.delete(e),n._selectedFeatureIds.delete(e),t.silent||-1===n._deletedFeaturesToEmit.indexOf(n._features[e])&&n._deletedFeaturesToEmit.push(n._features[e]),delete n._features[e],n.isDirty=!0)})),te(this,t),this},ee.prototype.get=function(e){return this._features[e]},ee.prototype.getAll=function(){var e=this;return Object.keys(this._features).map((function(t){return e._features[t]}))},ee.prototype.select=function(e,t){var n=this;return void 0===t&&(t={}),J(e).forEach((function(e){n._selectedFeatureIds.has(e)||(n._selectedFeatureIds.add(e),n._changedFeatureIds.add(e),t.silent||(n._emitSelectionChange=!0))})),this},ee.prototype.deselect=function(e,t){var n=this;return void 0===t&&(t={}),J(e).forEach((function(e){n._selectedFeatureIds.has(e)&&(n._selectedFeatureIds.delete(e),n._changedFeatureIds.add(e),t.silent||(n._emitSelectionChange=!0))})),te(this,t),this},ee.prototype.clearSelected=function(e){return void 0===e&&(e={}),this.deselect(this._selectedFeatureIds.values(),{silent:e.silent}),this},ee.prototype.setSelected=function(e,t){var n=this;return void 0===t&&(t={}),e=J(e),this.deselect(this._selectedFeatureIds.values().filter((function(t){return-1===e.indexOf(t)})),{silent:t.silent}),this.select(e.filter((function(e){return!n._selectedFeatureIds.has(e)})),{silent:t.silent}),this},ee.prototype.setSelectedCoordinates=function(e){return this._selectedCoordinates=e,this._emitSelectionChange=!0,this},ee.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},ee.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},ee.prototype.getSelected=function(){var e=this;return this._selectedFeatureIds.values().map((function(t){return e.get(t)}))},ee.prototype.getSelectedCoordinates=function(){var e=this;return this._selectedCoordinates.map((function(t){return{coordinates:e.get(t.feature_id).getCoordinate(t.coord_path)}}))},ee.prototype.isSelected=function(e){return this._selectedFeatureIds.has(e)},ee.prototype.setFeatureProperty=function(e,t,n){this.get(e).setProperty(t,n),this.featureChanged(e)},ee.prototype.storeMapConfig=function(){var e=this;A.forEach((function(t){e.ctx.map[t]&&(e._mapInitialConfig[t]=e.ctx.map[t].isEnabled())}))},ee.prototype.restoreMapConfig=function(){var e=this;Object.keys(this._mapInitialConfig).forEach((function(t){e._mapInitialConfig[t]?e.ctx.map[t].enable():e.ctx.map[t].disable()}))},ee.prototype.getInitialConfigValue=function(e){return void 0===this._mapInitialConfig[e]||this._mapInitialConfig[e]};var ne=function(){for(var e=arguments,t={},n=0;n<arguments.length;n++){var r=e[n];for(var i in r)re.call(r,i)&&(t[i]=r[i])}return t},re=Object.prototype.hasOwnProperty,ie=["mode","feature","mouse"];function oe(t){var n=null,r=null,i={onRemove:function(){return t.map.off("load",i.connect),clearInterval(r),i.removeLayers(),t.store.restoreMapConfig(),t.ui.removeButtons(),t.events.removeEventListeners(),t.ui.clearMapClasses(),t.map=null,t.container=null,t.store=null,n&&n.parentNode&&n.parentNode.removeChild(n),n=null,this},connect:function(){t.map.off("load",i.connect),clearInterval(r),i.addLayers(),t.store.storeMapConfig(),t.events.addEventListeners()},onAdd:function(o){var a=o.fire;return o.fire=function(e,t){var n=arguments;return 1===a.length&&1!==arguments.length&&(n=[ne({},{type:e},t)]),a.apply(o,n)},t.map=o,t.events=function(t){var n=Object.keys(t.options.modes).reduce((function(e,n){return e[n]=function(e){var t=Object.keys(e);return function(n,r){void 0===r&&(r={});var i={},o=t.reduce((function(t,n){return t[n]=e[n],t}),new Z(n));return{start:function(){var t=this;i=o.onSetup(r),K.forEach((function(n){var r,a=X[n],s=function(){return!1};e[a]&&(s=function(){return!0}),t.on(n,s,(r=a,function(e){return o[r](i,e)}))}))},stop:function(){o.onStop(i)},trash:function(){o.onTrash(i)},combineFeatures:function(){o.onCombineFeatures(i)},uncombineFeatures:function(){o.onUncombineFeatures(i)},render:function(e,t){o.toDisplayFeatures(i,e,t)}}}}(t.options.modes[n]),e}),{}),r={},i={},o={},a=null,s=null;o.drag=function(e,n){n({point:e.point,time:(new Date).getTime()})?(t.ui.queueMapClasses({mouse:"drag"}),s.drag(e)):e.originalEvent.stopPropagation()},o.mousedrag=function(e){o.drag(e,(function(e){return!z(r,e)}))},o.touchdrag=function(e){o.drag(e,(function(e){return!B(i,e)}))},o.mousemove=function(e){if(1===(void 0!==e.originalEvent.buttons?e.originalEvent.buttons:e.originalEvent.which))return o.mousedrag(e);var n=R(e,t);e.featureTarget=n,s.mousemove(e)},o.mousedown=function(e){r={time:(new Date).getTime(),point:e.point};var n=R(e,t);e.featureTarget=n,s.mousedown(e)},o.mouseup=function(e){var n=R(e,t);e.featureTarget=n,z(r,{point:e.point,time:(new Date).getTime()})?s.click(e):s.mouseup(e)},o.mouseout=function(e){s.mouseout(e)},o.touchstart=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled){i={time:(new Date).getTime(),point:e.point};var n=I.touch(e,null,t)[0];e.featureTarget=n,s.touchstart(e)}},o.touchmove=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled)return s.touchmove(e),o.touchdrag(e)},o.touchend=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled){var n=I.touch(e,null,t)[0];e.featureTarget=n,B(i,{time:(new Date).getTime(),point:e.point})?s.tap(e):s.touchend(e)}};var u=function(e){return!(8===e||46===e||e>=48&&e<=57)};function l(r,i,o){void 0===o&&(o={}),s.stop();var u=n[r];if(void 0===u)throw new Error(r+" is not valid");a=r;var l=u(t,i);s=e(l,t),o.silent||t.map.fire("draw.modechange",{mode:r}),t.store.setDirty(),t.store.render()}o.keydown=function(e){"mapboxgl-canvas"===(e.srcElement||e.target).classList[0]&&(8!==e.keyCode&&46!==e.keyCode||!t.options.controls.trash?u(e.keyCode)?s.keydown(e):49===e.keyCode&&t.options.controls.point?l(x.DRAW_POINT):50===e.keyCode&&t.options.controls.line_string?l(x.DRAW_LINE_STRING):51===e.keyCode&&t.options.controls.polygon&&l(x.DRAW_POLYGON):(e.preventDefault(),s.trash()))},o.keyup=function(e){u(e.keyCode)&&s.keyup(e)},o.zoomend=function(){t.store.changeZoom()},o.data=function(e){if("style"===e.dataType){var n=t.setup,r=t.map,i=t.options,o=t.store;i.styles.some((function(e){return r.getLayer(e.id)}))||(n.addLayers(),o.setDirty(),o.render())}};var c={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){a=t.options.defaultMode,s=e(n[a](t),t)},changeMode:l,actionable:function(e){var n=!1;Object.keys(e).forEach((function(t){if(void 0===c[t])throw new Error("Invalid action type");c[t]!==e[t]&&(n=!0),c[t]=e[t]})),n&&t.map.fire("draw.actionable",{actions:c})},currentModeName:function(){return a},currentModeRender:function(e,t){return s.render(e,t)},fire:function(e,t){o[e]&&o[e](t)},addEventListeners:function(){t.map.on("mousemove",o.mousemove),t.map.on("mousedown",o.mousedown),t.map.on("mouseup",o.mouseup),t.map.on("data",o.data),t.map.on("touchmove",o.touchmove),t.map.on("touchstart",o.touchstart),t.map.on("touchend",o.touchend),t.container.addEventListener("mouseout",o.mouseout),t.options.keybindings&&(t.container.addEventListener("keydown",o.keydown),t.container.addEventListener("keyup",o.keyup))},removeEventListeners:function(){t.map.off("mousemove",o.mousemove),t.map.off("mousedown",o.mousedown),t.map.off("mouseup",o.mouseup),t.map.off("data",o.data),t.map.off("touchmove",o.touchmove),t.map.off("touchstart",o.touchstart),t.map.off("touchend",o.touchend),t.container.removeEventListener("mouseout",o.mouseout),t.options.keybindings&&(t.container.removeEventListener("keydown",o.keydown),t.container.removeEventListener("keyup",o.keyup))},trash:function(e){s.trash(e)},combineFeatures:function(){s.combineFeatures()},uncombineFeatures:function(){s.uncombineFeatures()},getMode:function(){return a}}}(t),t.ui=function(e){var t={},n=null,r={mode:null,feature:null,mouse:null},i={mode:null,feature:null,mouse:null};function o(e){i=ne(i,e)}function a(){var t,n;if(e.container){var o=[],a=[];ie.forEach((function(e){i[e]!==r[e]&&(o.push(e+"-"+r[e]),null!==i[e]&&a.push(e+"-"+i[e]))})),o.length>0&&(t=e.container.classList).remove.apply(t,o),a.length>0&&(n=e.container.classList).add.apply(n,a),r=ne(r,i)}}function u(e,t){void 0===t&&(t={});var r=document.createElement("button");return r.className="mapbox-gl-draw_ctrl-draw-btn "+t.className,r.setAttribute("title",t.title),t.container.appendChild(r),r.addEventListener("click",(function(r){if(r.preventDefault(),r.stopPropagation(),r.target===n)return l(),void t.onDeactivate();c(e),t.onActivate()}),!0),r}function l(){n&&(n.classList.remove(s),n=null)}function c(e){l();var r=t[e];r&&r&&"trash"!==e&&(r.classList.add(s),n=r)}return{setActiveButton:c,queueMapClasses:o,updateMapClasses:a,clearMapClasses:function(){o({mode:null,feature:null,mouse:null}),a()},addButtons:function(){var n=e.options.controls,r=document.createElement("div");return r.className="mapboxgl-ctrl-group mapboxgl-ctrl",n?(n[h.LINE]&&(t[h.LINE]=u(h.LINE,{container:r,className:"mapbox-gl-draw_line",title:"LineString tool "+(e.options.keybindings?"(l)":""),onActivate:function(){return e.events.changeMode(x.DRAW_LINE_STRING)},onDeactivate:function(){return e.events.trash()}})),n[h.POLYGON]&&(t[h.POLYGON]=u(h.POLYGON,{container:r,className:"mapbox-gl-draw_polygon",title:"Polygon tool "+(e.options.keybindings?"(p)":""),onActivate:function(){return e.events.changeMode(x.DRAW_POLYGON)},onDeactivate:function(){return e.events.trash()}})),n[h.POINT]&&(t[h.POINT]=u(h.POINT,{container:r,className:"mapbox-gl-draw_point",title:"Marker tool "+(e.options.keybindings?"(m)":""),onActivate:function(){return e.events.changeMode(x.DRAW_POINT)},onDeactivate:function(){return e.events.trash()}})),n.trash&&(t.trash=u("trash",{container:r,className:"mapbox-gl-draw_trash",title:"Delete",onActivate:function(){e.events.trash()}})),n.combine_features&&(t.combine_features=u("combineFeatures",{container:r,className:"mapbox-gl-draw_combine",title:"Combine",onActivate:function(){e.events.combineFeatures()}})),n.uncombine_features&&(t.uncombine_features=u("uncombineFeatures",{container:r,className:"mapbox-gl-draw_uncombine",title:"Uncombine",onActivate:function(){e.events.uncombineFeatures()}})),r):r},removeButtons:function(){Object.keys(t).forEach((function(e){var n=t[e];n.parentNode&&n.parentNode.removeChild(n),delete t[e]}))}}}(t),t.container=o.getContainer(),t.store=new ee(t),n=t.ui.addButtons(),t.options.boxSelect&&(o.boxZoom.disable(),o.dragPan.disable(),o.dragPan.enable()),o.loaded()?i.connect():(o.on("load",i.connect),r=setInterval((function(){o.loaded()&&i.connect()}),16)),t.events.start(),n},addLayers:function(){t.map.addSource(l,{data:{type:b,features:[]},type:"geojson"}),t.map.addSource(u,{data:{type:b,features:[]},type:"geojson"}),t.options.styles.forEach((function(e){t.map.addLayer(e)})),t.store.setDirty(!0),t.store.render()},removeLayers:function(){t.options.styles.forEach((function(e){t.map.getLayer(e.id)&&t.map.removeLayer(e.id)})),t.map.getSource(l)&&t.map.removeSource(l),t.map.getSource(u)&&t.map.removeSource(u)}};return t.setup=i,i}function ae(e){return function(t){var n=t.featureTarget;return!!n&&!!n.properties&&n.properties.meta===e}}function se(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===S&&e.featureTarget.properties.meta===O}function ue(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===k&&e.featureTarget.properties.meta===O}function le(e){return void 0===e.featureTarget}function ce(e){var t=e.featureTarget;return!!t&&!!t.properties&&t.properties.meta===D}function fe(e){return!!e.originalEvent&&!0===e.originalEvent.shiftKey}function pe(e){return 27===e.keyCode}function de(e){return 13===e.keyCode}var he=me;function me(e,t){this.x=e,this.y=t}function ve(e,t){var n=t.getBoundingClientRect();return new he(e.clientX-n.left-(t.clientLeft||0),e.clientY-n.top-(t.clientTop||0))}function ge(e,t,n,r){return{type:m,properties:{meta:D,parent:e,coord_path:n,active:r?S:k},geometry:{type:y,coordinates:t}}}function ye(e,t,n){void 0===t&&(t={}),void 0===n&&(n=null);var r,i=e.geometry,o=i.type,a=i.coordinates,s=e.properties&&e.properties.id,u=[];function l(e,n){var r="",i=null;e.forEach((function(e,o){var a=null!=n?n+"."+o:String(o),l=ge(s,e,a,c(a));if(t.midpoints&&i){var f=function(e,t,n){var r=t.geometry.coordinates,i=n.geometry.coordinates;if(r[1]>85||r[1]<-85||i[1]>85||i[1]<-85)return null;var o={lng:(r[0]+i[0])/2,lat:(r[1]+i[1])/2};return{type:m,properties:{meta:C,parent:e,lng:o.lng,lat:o.lat,coord_path:n.properties.coord_path},geometry:{type:y,coordinates:[o.lng,o.lat]}}}(s,i,l);f&&u.push(f)}i=l;var p=JSON.stringify(e);r!==p&&u.push(l),0===o&&(r=p)}))}function c(e){return!!t.selectedPaths&&-1!==t.selectedPaths.indexOf(e)}return o===y?u.push(ge(s,a,n,c(n))):o===v?a.forEach((function(e,t){l(e,null!==n?n+"."+t:String(t))})):o===g?l(a,n):0===o.indexOf(_)&&(r=o.replace(_,""),a.forEach((function(n,i){var o={type:m,properties:e.properties,geometry:{type:r,coordinates:n}};u=u.concat(ye(o,t,i))}))),u}me.prototype={clone:function(){return new me(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[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,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=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),o=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},me.convert=function(e){return e instanceof me?e:Array.isArray(e)?new me(e[0],e[1]):e};var be=function(e){setTimeout((function(){e.map&&e.map.doubleClickZoom&&e._ctx&&e._ctx.store&&e._ctx.store.getInitialConfigValue&&e._ctx.store.getInitialConfigValue("doubleClickZoom")&&e.map.doubleClickZoom.enable()}),0)},_e=function(e){setTimeout((function(){e.map&&e.map.doubleClickZoom&&e.map.doubleClickZoom.disable()}),0)},xe=function(e){if(!e||!e.type)return null;var t=we[e.type];return t?"geometry"===t?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]}:"feature"===t?{type:"FeatureCollection",features:[e]}:"featurecollection"===t?e:void 0:null},we={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function Ee(e){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.reduce((function(e,t){return e.concat(Ee(t))}),[]),e;case"Feature":return e.geometry?Ee(e.geometry).map((function(t){var n={type:"Feature",properties:JSON.parse(JSON.stringify(e.properties)),geometry:t};return void 0!==e.id&&(n.id=e.id),n})):[e];case"MultiPoint":return e.coordinates.map((function(e){return{type:"Point",coordinates:e}}));case"MultiPolygon":return e.coordinates.map((function(e){return{type:"Polygon",coordinates:e}}));case"MultiLineString":return e.coordinates.map((function(e){return{type:"LineString",coordinates:e}}));case"GeometryCollection":return e.geometries.map(Ee).reduce((function(e,t){return e.concat(t)}),[]);case"Point":case"Polygon":case"LineString":return[e]}}var Oe=N((function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function r(e,t,n){var r=[],a=[],c=!0;return function e(f){var p=n?i(f):f,d={},h=!0,m={node:p,node_:f,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(h=!1)},delete:function(e){delete m.parent.node[m.key],e&&(h=!1)},remove:function(e){s(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(h=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){c=!1},block:function(){h=!1}};if(!c)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=o(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<a.length;e++)if(a[e].node_===f){m.circular=a[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),d.before&&d.before.call(m,m.node),h?("object"!=typeof m.node||null===m.node||m.circular||(a.push(m),v(),u(m.keys,(function(t,i){r.push(t),d.pre&&d.pre.call(m,m.node[t],t);var o=e(m.node[t]);n&&l.call(m.node,t)&&(m.node[t]=o.node),o.isLast=i==m.keys.length-1,o.isFirst=0==i,d.post&&d.post.call(m,o),r.pop()})),a.pop()),d.after&&d.after.call(m,m.node),m):m}(e).node}function i(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return u(o(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!l.call(t,r)){t=void 0;break}t=t[r]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!l.call(t,r))return!1;t=t[r]}return!0},n.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var i=e[r];l.call(n,i)||(n[i]={}),n=n[i]}return n[e[r]]=t,t},n.prototype.map=function(e){return r(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(r){for(var a=0;a<e.length;a++)if(e[a]===r)return t[a];if("object"==typeof r&&null!==r){var s=i(r);return e.push(r),t.push(s),u(o(r),(function(e){s[e]=n(r[e])})),e.pop(),t.pop(),s}return r}(this.value)};var o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};u(o(n.prototype),(function(e){t[e]=function(t){var r=[].slice.call(arguments,1),i=new n(t);return i[e].apply(i,r)}}));var l=Object.hasOwnProperty||function(e,t){return t in e}})),Ce=De;function De(e){if(!(this instanceof De))return new De(e);this._bbox=e||[1/0,1/0,-1/0,-1/0],this._valid=!!e}De.prototype.include=function(e){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[0]),this._bbox[3]=Math.max(this._bbox[3],e[1]),this},De.prototype.equals=function(e){var t;return t=e instanceof De?e.bbox():e,this._bbox[0]==t[0]&&this._bbox[1]==t[1]&&this._bbox[2]==t[2]&&this._bbox[3]==t[3]},De.prototype.center=function(e){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},De.prototype.union=function(e){var t;return this._valid=!0,t=e instanceof De?e.bbox():e,this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[2]),this._bbox[3]=Math.max(this._bbox[3],t[3]),this},De.prototype.bbox=function(){return this._valid?this._bbox:null},De.prototype.contains=function(e){if(!e)return this._fastContains();if(!this._valid)return null;var t=e[0],n=e[1];return this._bbox[0]<=t&&this._bbox[1]<=n&&this._bbox[2]>=t&&this._bbox[3]>=n},De.prototype.intersect=function(e){return this._valid?(t=e instanceof De?e.bbox():e,!(this._bbox[0]>t[2]||this._bbox[2]<t[0]||this._bbox[3]<t[1]||this._bbox[1]>t[3])):null;var t},De.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var e="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",e)},De.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var Se={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},ke=Object.keys(Se),Ae=function(e){return Te(e).bbox()};function Te(e){for(var t=Ce(),n=function(e){if(!e)return[];var t=Ee(xe(e)),n=[];return t.features.forEach((function(e){e.geometry&&(n=n.concat(function e(t){return Array.isArray(t)&&t.length&&"number"==typeof t[0]?[t]:t.reduce((function(t,n){return Array.isArray(n)&&Array.isArray(n[0])?t.concat(e(n)):(t.push(n),t)}),[])}(e.geometry.coordinates)))})),n}(e),r=0;r<n.length;r++)t.include(n[r]);return t}function Pe(e,t){var n=-90,r=90,i=-90,o=90,a=270,s=-270;e.forEach((function(e){var t=Ae(e),u=t[1],l=t[3],c=t[0],f=t[2];u>n&&(n=u),l<r&&(r=l),l>i&&(i=l),u<o&&(o=u),c<a&&(a=c),f>s&&(s=f)}));var u=t;return n+u.lat>85&&(u.lat=85-n),i+u.lat>90&&(u.lat=90-i),r+u.lat<-85&&(u.lat=-85-r),o+u.lat<-90&&(u.lat=-90-o),a+u.lng<=-270&&(u.lng+=360*Math.ceil(Math.abs(u.lng)/360)),s+u.lng>=270&&(u.lng-=360*Math.ceil(Math.abs(u.lng)/360)),u}function Me(e,t){var n=Pe(e.map((function(e){return e.toGeoJSON()})),t);e.forEach((function(e){var t,r=e.getCoordinates(),i=function(e){var t={lng:e[0]+n.lng,lat:e[1]+n.lat};return[t.lng,t.lat]},o=function(e){return e.map((function(e){return i(e)}))};e.type===y?t=i(r):e.type===g||"MultiPoint"===e.type?t=r.map(i):e.type===v||"MultiLineString"===e.type?t=r.map(o):"MultiPolygon"===e.type&&(t=r.map((function(e){return e.map((function(e){return o(e)}))}))),e.incomingCoords(t)}))}Ae.polygon=function(e){return Te(e).polygon()},Ae.bboxify=function(e){return Oe(e).map((function(e){e&&ke.some((function(t){return!!e[t]&&-1!==Se[t].indexOf(e.type)}))&&(e.bbox=Te(e).bbox(),this.update(e))}))};var je={onSetup:function(e){var t=this,n={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:e.featureIds||[]};return this.setSelected(n.initiallySelectedFeatureIds.filter((function(e){return void 0!==t.getFeature(e)}))),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),n},fireUpdate:function(){this.map.fire(E,{action:"move",features:this.getSelected().map((function(e){return e.toGeoJSON()}))})},fireActionable:function(){var e=this,t=this.getSelected(),n=t.filter((function(t){return e.isInstanceOf("MultiFeature",t)})),r=!1;if(t.length>1){r=!0;var i=t[0].type.replace("Multi","");t.forEach((function(e){e.type.replace("Multi","")!==i&&(r=!1)}))}var o=n.length>0,a=t.length>0;this.setActionableState({combineFeatures:r,uncombineFeatures:o,trash:a})},getUniqueIds:function(e){return e.length?e.map((function(e){return e.properties.id})).filter((function(e){return void 0!==e})).reduce((function(e,t){return e.add(t),e}),new M).values():[]},stopExtendedInteractions:function(e){e.boxSelectElement&&(e.boxSelectElement.parentNode&&e.boxSelectElement.parentNode.removeChild(e.boxSelectElement),e.boxSelectElement=null),this.map.dragPan.enable(),e.boxSelecting=!1,e.canBoxSelect=!1,e.dragMoving=!1,e.canDragMove=!1},onStop:function(){be(this)},onMouseMove:function(e){return this.stopExtendedInteractions(e),!0},onMouseOut:function(e){return!e.dragMoving||this.fireUpdate()}};je.onTap=je.onClick=function(e,t){return le(t)?this.clickAnywhere(e,t):ae(D)(t)?this.clickOnVertex(e,t):function(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.meta===O}(t)?this.clickOnFeature(e,t):void 0},je.clickAnywhere=function(e){var t=this,n=this.getSelectedIds();n.length&&(this.clearSelectedFeatures(),n.forEach((function(e){return t.doRender(e)}))),be(this),this.stopExtendedInteractions(e)},je.clickOnVertex=function(e,t){this.changeMode(x.DIRECT_SELECT,{featureId:t.featureTarget.properties.parent,coordPath:t.featureTarget.properties.coord_path,startPos:t.lngLat}),this.updateUIClasses({mouse:f})},je.startOnActiveFeature=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),this.doRender(t.featureTarget.properties.id),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},je.clickOnFeature=function(e,t){var n=this;_e(this),this.stopExtendedInteractions(e);var r=fe(t),i=this.getSelectedIds(),o=t.featureTarget.properties.id,a=this.isSelected(o);if(!r&&a&&this.getFeature(o).type!==y)return this.changeMode(x.DIRECT_SELECT,{featureId:o});a&&r?(this.deselect(o),this.updateUIClasses({mouse:p}),1===i.length&&be(this)):!a&&r?(this.select(o),this.updateUIClasses({mouse:f})):a||r||(i.forEach((function(e){return n.doRender(e)})),this.setSelected(o),this.updateUIClasses({mouse:f})),this.doRender(o)},je.onMouseDown=function(e,t){return se(t)?this.startOnActiveFeature(e,t):this.drawConfig.boxSelect&&function(e){return!!e.originalEvent&&!!e.originalEvent.shiftKey&&0===e.originalEvent.button}(t)?this.startBoxSelect(e,t):void 0},je.startBoxSelect=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),e.boxSelectStartLocation=ve(t.originalEvent,this.map.getContainer()),e.canBoxSelect=!0},je.onTouchStart=function(e,t){if(se(t))return this.startOnActiveFeature(e,t)},je.onDrag=function(e,t){return e.canDragMove?this.dragMove(e,t):this.drawConfig.boxSelect&&e.canBoxSelect?this.whileBoxSelect(e,t):void 0},je.whileBoxSelect=function(e,t){e.boxSelecting=!0,this.updateUIClasses({mouse:c}),e.boxSelectElement||(e.boxSelectElement=document.createElement("div"),e.boxSelectElement.classList.add("mapbox-gl-draw_boxselect"),this.map.getContainer().appendChild(e.boxSelectElement));var n=ve(t.originalEvent,this.map.getContainer()),r=Math.min(e.boxSelectStartLocation.x,n.x),i=Math.max(e.boxSelectStartLocation.x,n.x),o=Math.min(e.boxSelectStartLocation.y,n.y),a=Math.max(e.boxSelectStartLocation.y,n.y),s="translate("+r+"px, "+o+"px)";e.boxSelectElement.style.transform=s,e.boxSelectElement.style.WebkitTransform=s,e.boxSelectElement.style.width=i-r+"px",e.boxSelectElement.style.height=a-o+"px"},je.dragMove=function(e,t){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};Me(this.getSelected(),n),e.dragMoveLocation=t.lngLat},je.onMouseUp=function(e,t){var n=this;if(e.dragMoving)this.fireUpdate();else if(e.boxSelecting){var r=[e.boxSelectStartLocation,ve(t.originalEvent,this.map.getContainer())],i=this.featuresAt(null,r,"click"),o=this.getUniqueIds(i).filter((function(e){return!n.isSelected(e)}));o.length&&(this.select(o),o.forEach((function(e){return n.doRender(e)})),this.updateUIClasses({mouse:f}))}this.stopExtendedInteractions(e)},je.toDisplayFeatures=function(e,t,n){t.properties.active=this.isSelected(t.properties.id)?S:k,n(t),this.fireActionable(),t.properties.active===S&&t.geometry.type!==y&&ye(t).forEach(n)},je.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},je.onCombineFeatures=function(){var e=this.getSelected();if(!(0===e.length||e.length<2)){for(var t=[],n=[],r=e[0].type.replace("Multi",""),i=0;i<e.length;i++){var o=e[i];if(o.type.replace("Multi","")!==r)return;o.type.includes("Multi")?o.getCoordinates().forEach((function(e){t.push(e)})):t.push(o.getCoordinates()),n.push(o.toGeoJSON())}if(n.length>1){var a=this.newFeature({type:m,properties:n[0].properties,geometry:{type:"Multi"+r,coordinates:t}});this.addFeature(a),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([a.id]),this.map.fire("draw.combine",{createdFeatures:[a.toGeoJSON()],deletedFeatures:n})}this.fireActionable()}},je.onUncombineFeatures=function(){var e=this,t=this.getSelected();if(0!==t.length){for(var n=[],r=[],i=function(i){var o=t[i];e.isInstanceOf("MultiFeature",o)&&(o.getFeatures().forEach((function(t){e.addFeature(t),t.properties=o.properties,n.push(t.toGeoJSON()),e.select([t.id])})),e.deleteFeature(o.id,{silent:!0}),r.push(o.toGeoJSON()))},o=0;o<t.length;o++)i(o);n.length>1&&this.map.fire("draw.uncombine",{createdFeatures:n,deletedFeatures:r}),this.fireActionable()}};var Ie=ae(D),Fe=ae(C),Re={fireUpdate:function(){this.map.fire(E,{action:"change_coordinates",features:this.getSelected().map((function(e){return e.toGeoJSON()}))})},fireActionable:function(e){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:e.selectedCoordPaths.length>0})},startDragging:function(e,t){this.map.dragPan.disable(),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},stopDragging:function(e){this.map.dragPan.enable(),e.dragMoving=!1,e.canDragMove=!1,e.dragMoveLocation=null},onVertex:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties,r=e.selectedCoordPaths.indexOf(n.coord_path);fe(t)||-1!==r?fe(t)&&-1===r&&e.selectedCoordPaths.push(n.coord_path):e.selectedCoordPaths=[n.coord_path];var i=this.pathsToCoordinates(e.featureId,e.selectedCoordPaths);this.setSelectedCoordinates(i)},onMidpoint:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties;e.feature.addCoordinate(n.coord_path,n.lng,n.lat),this.fireUpdate(),e.selectedCoordPaths=[n.coord_path]},pathsToCoordinates:function(e,t){return t.map((function(t){return{feature_id:e,coord_path:t}}))},onFeature:function(e,t){0===e.selectedCoordPaths.length?this.startDragging(e,t):this.stopDragging(e)},dragFeature:function(e,t,n){Me(this.getSelected(),n),e.dragMoveLocation=t.lngLat},dragVertex:function(e,t,n){for(var r=e.selectedCoordPaths.map((function(t){return e.feature.getCoordinate(t)})),i=Pe(r.map((function(e){return{type:m,properties:{},geometry:{type:y,coordinates:e}}})),n),o=0;o<r.length;o++){var a=r[o];e.feature.updateCoordinate(e.selectedCoordPaths[o],a[0]+i.lng,a[1]+i.lat)}},clickNoTarget:function(){this.changeMode(x.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(x.SIMPLE_SELECT)},clickActiveFeature:function(e){e.selectedCoordPaths=[],this.clearSelectedCoordinates(),e.feature.changed()},onSetup:function(e){var t=e.featureId,n=this.getFeature(t);if(!n)throw new Error("You must provide a featureId to enter direct_select mode");if(n.type===y)throw new TypeError("direct_select mode doesn't handle point features");var r={featureId:t,feature:n,dragMoveLocation:e.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:e.coordPath?[e.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(t,r.selectedCoordPaths)),this.setSelected(t),_e(this),this.setActionableState({trash:!0}),r},onStop:function(){be(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(e,t,n){e.featureId===t.properties.id?(t.properties.active=S,n(t),ye(t,{map:this.map,midpoints:!0,selectedPaths:e.selectedCoordPaths}).forEach(n)):(t.properties.active=k,n(t)),this.fireActionable(e)},onTrash:function(e){e.selectedCoordPaths.sort((function(e,t){return t.localeCompare(e,"en",{numeric:!0})})).forEach((function(t){return e.feature.removeCoordinate(t)})),this.fireUpdate(),e.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(e),!1===e.feature.isValid()&&(this.deleteFeature([e.featureId]),this.changeMode(x.SIMPLE_SELECT,{}))},onMouseMove:function(e,t){var n=se(t),r=Ie(t),i=0===e.selectedCoordPaths.length;return n&&i||r&&!i?this.updateUIClasses({mouse:f}):this.updateUIClasses({mouse:d}),this.stopDragging(e),!0},onMouseOut:function(e){return e.dragMoving&&this.fireUpdate(),!0}};Re.onTouchStart=Re.onMouseDown=function(e,t){return Ie(t)?this.onVertex(e,t):se(t)?this.onFeature(e,t):Fe(t)?this.onMidpoint(e,t):void 0},Re.onDrag=function(e,t){if(!0===e.canDragMove){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};e.selectedCoordPaths.length>0?this.dragVertex(e,t,n):this.dragFeature(e,t,n),e.dragMoveLocation=t.lngLat}},Re.onClick=function(e,t){return le(t)?this.clickNoTarget(e,t):se(t)?this.clickActiveFeature(e,t):ue(t)?this.clickInactive(e,t):void this.stopDragging(e)},Re.onTap=function(e,t){return le(t)?this.clickNoTarget(e,t):se(t)?this.clickActiveFeature(e,t):ue(t)?this.clickInactive(e,t):void 0},Re.onTouchEnd=Re.onMouseUp=function(e){e.dragMoving&&this.fireUpdate(),this.stopDragging(e)};var Le={};function ze(e,t){return!!e.lngLat&&e.lngLat.lng===t[0]&&e.lngLat.lat===t[1]}Le.onSetup=function(){var e=this.newFeature({type:m,properties:{},geometry:{type:y,coordinates:[]}});return this.addFeature(e),this.clearSelectedFeatures(),this.updateUIClasses({mouse:c}),this.activateUIButton(h.POINT),this.setActionableState({trash:!0}),{point:e}},Le.stopDrawingAndRemove=function(e){this.deleteFeature([e.point.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT)},Le.onTap=Le.onClick=function(e,t){this.updateUIClasses({mouse:f}),e.point.updateCoordinate("",t.lngLat.lng,t.lngLat.lat),this.map.fire(w,{features:[e.point.toGeoJSON()]}),this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.point.id]})},Le.onStop=function(e){this.activateUIButton(),e.point.getCoordinate().length||this.deleteFeature([e.point.id],{silent:!0})},Le.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.point.id;if(t.properties.active=r?S:k,!r)return n(t)},Le.onTrash=Le.stopDrawingAndRemove,Le.onKeyUp=function(e,t){if(pe(t)||de(t))return this.stopDrawingAndRemove(e,t)};var Be={onSetup:function(){var e=this.newFeature({type:m,properties:{},geometry:{type:v,coordinates:[[]]}});return this.addFeature(e),this.clearSelectedFeatures(),_e(this),this.updateUIClasses({mouse:c}),this.activateUIButton(h.POLYGON),this.setActionableState({trash:!0}),{polygon:e,currentVertexPosition:0}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&ze(t,e.polygon.coordinates[0][e.currentVertexPosition-1]))return this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.polygon.id]});this.updateUIClasses({mouse:c}),e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),e.currentVertexPosition++,e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},onMouseMove:function(e,t){e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),ce(t)&&this.updateUIClasses({mouse:p})}};Be.onTap=Be.onClick=function(e,t){return ce(t)?this.clickOnVertex(e,t):this.clickAnywhere(e,t)},Be.onKeyUp=function(e,t){pe(t)?(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT)):de(t)&&this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},Be.onStop=function(e){this.updateUIClasses({mouse:d}),be(this),this.activateUIButton(),void 0!==this.getFeature(e.polygon.id)&&(e.polygon.removeCoordinate("0."+e.currentVertexPosition),e.polygon.isValid()?this.map.fire(w,{features:[e.polygon.toGeoJSON()]}):(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT,{},{silent:!0})))},Be.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.polygon.id;if(t.properties.active=r?S:k,!r)return n(t);if(0!==t.geometry.coordinates.length){var i=t.geometry.coordinates[0].length;if(!(i<3)){if(t.properties.meta=O,n(ge(e.polygon.id,t.geometry.coordinates[0][0],"0.0",!1)),i>3){var o=t.geometry.coordinates[0].length-3;n(ge(e.polygon.id,t.geometry.coordinates[0][o],"0."+o,!1))}if(i<=4){var a=[[t.geometry.coordinates[0][0][0],t.geometry.coordinates[0][0][1]],[t.geometry.coordinates[0][1][0],t.geometry.coordinates[0][1][1]]];if(n({type:m,properties:t.properties,geometry:{coordinates:a,type:g}}),3===i)return}return n(t)}}},Be.onTrash=function(e){this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT)};var Ne={onSetup:function(e){var t,n,r=(e=e||{}).featureId,i="forward";if(r){if(!(t=this.getFeature(r)))throw new Error("Could not find a feature with the provided featureId");var o=e.from;if(o&&"Feature"===o.type&&o.geometry&&"Point"===o.geometry.type&&(o=o.geometry),o&&"Point"===o.type&&o.coordinates&&2===o.coordinates.length&&(o=o.coordinates),!o||!Array.isArray(o))throw new Error("Please use the `from` property to indicate which point to continue the line from");var a=t.coordinates.length-1;if(t.coordinates[a][0]===o[0]&&t.coordinates[a][1]===o[1])n=a+1,t.addCoordinate.apply(t,[n].concat(t.coordinates[a]));else{if(t.coordinates[0][0]!==o[0]||t.coordinates[0][1]!==o[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");i="backwards",n=0,t.addCoordinate.apply(t,[n].concat(t.coordinates[0]))}}else t=this.newFeature({type:m,properties:{},geometry:{type:g,coordinates:[]}}),n=0,this.addFeature(t);return this.clearSelectedFeatures(),_e(this),this.updateUIClasses({mouse:c}),this.activateUIButton(h.LINE),this.setActionableState({trash:!0}),{line:t,currentVertexPosition:n,direction:i}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&ze(t,e.line.coordinates[e.currentVertexPosition-1])||"backwards"===e.direction&&ze(t,e.line.coordinates[e.currentVertexPosition+1]))return this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.line.id]});this.updateUIClasses({mouse:c}),e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),"forward"===e.direction?(e.currentVertexPosition++,e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)):e.line.addCoordinate(0,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.line.id]})},onMouseMove:function(e,t){e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),ce(t)&&this.updateUIClasses({mouse:p})}};Ne.onTap=Ne.onClick=function(e,t){if(ce(t))return this.clickOnVertex(e,t);this.clickAnywhere(e,t)},Ne.onKeyUp=function(e,t){de(t)?this.changeMode(x.SIMPLE_SELECT,{featureIds:[e.line.id]}):pe(t)&&(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT))},Ne.onStop=function(e){be(this),this.activateUIButton(),void 0!==this.getFeature(e.line.id)&&(e.line.removeCoordinate(""+e.currentVertexPosition),e.line.isValid()?this.map.fire(w,{features:[e.line.toGeoJSON()]}):(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT,{},{silent:!0})))},Ne.onTrash=function(e){this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(x.SIMPLE_SELECT)},Ne.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.line.id;if(t.properties.active=r?S:k,!r)return n(t);t.geometry.coordinates.length<2||(t.properties.meta=O,n(ge(e.line.id,t.geometry.coordinates["forward"===e.direction?t.geometry.coordinates.length-2:1],""+("forward"===e.direction?t.geometry.coordinates.length-2:1),!1)),n(t))};var Ue={simple_select:je,direct_select:Re,draw_point:Le,draw_polygon:Be,draw_line_string:Ne},Ve={defaultMode:x.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}],modes:Ue,controls:{},userProperties:!1},He={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},We={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function Ge(e,t){return e.map((function(e){return e.source?e:ne(e,{id:e.id+"."+t,source:"hot"===t?u:l})}))}var qe=N((function(e,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[r]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l[i]=l["[object Number]"]=l[o]=l["[object RegExp]"]=l[a]=l["[object String]"]=l["[object WeakMap]"]=!1;var c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=c||f||Function("return this")(),d=n&&!n.nodeType&&n,h=d&&e&&!e.nodeType&&e,m=h&&h.exports===d,v=m&&c.process,g=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),y=g&&g.isTypedArray;function b(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var w,E,O,C=Array.prototype,D=Function.prototype,S=Object.prototype,k=p["__core-js_shared__"],A=D.toString,T=S.hasOwnProperty,P=(w=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",M=S.toString,j=RegExp("^"+A.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=m?p.Buffer:void 0,F=p.Symbol,R=p.Uint8Array,L=S.propertyIsEnumerable,z=C.splice,B=F?F.toStringTag:void 0,N=Object.getOwnPropertySymbols,U=I?I.isBuffer:void 0,V=(E=Object.keys,O=Object,function(e){return E(O(e))}),H=he(p,"DataView"),W=he(p,"Map"),G=he(p,"Promise"),q=he(p,"Set"),$=he(p,"WeakMap"),Y=he(Object,"create"),Z=ye(H),X=ye(W),K=ye(G),J=ye(q),Q=ye($),ee=F?F.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new re(e);this.size=t.size}function se(e,t){for(var n=e.length;n--;)if(be(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=T.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var i=M.call(e);return r&&(t?e[B]=n:delete e[B]),i}(e):function(e){return M.call(e)}(e)}function le(e){return De(e)&&ue(e)==r}function ce(e,t,n,s,u){return e===t||(null==e||null==t||!De(e)&&!De(t)?e!=e&&t!=t:function(e,t,n,s,u,l){var c=xe(e),f=xe(t),p=c?"[object Array]":ve(e),d=f?"[object Array]":ve(t),h=(p=p==r?o:p)==o,m=(d=d==r?o:d)==o,v=p==d;if(v&&we(e)){if(!we(t))return!1;c=!0,h=!1}if(v&&!h)return l||(l=new ae),c||Se(e)?fe(e,t,n,s,u,l):function(e,t,n,r,o,s,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new R(e),new R(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return be(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var l=_;case a:var c=1&r;if(l||(l=x),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;r|=2,u.set(e,t);var p=fe(l(e),l(t),r,o,s,u);return u.delete(e),p;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,p,n,s,u,l);if(!(1&n)){var g=h&&T.call(e,"__wrapped__"),y=m&&T.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,w=y?t.value():t;return l||(l=new ae),u(b,w,n,s,l)}}return!!v&&(l||(l=new ae),function(e,t,n,r,i,o){var a=1&n,s=pe(e),u=s.length;if(u!=pe(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:T.call(t,c)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var d=a;++l<u;){var h=e[c=s[l]],m=t[c];if(r)var v=a?r(m,h,c,t,e,o):r(h,m,c,e,t,o);if(!(void 0===v?h===m||i(h,m,n,r,o):v)){p=!1;break}d||(d="constructor"==c)}if(p&&!d){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,s,u,l))}(e,t,n,s,ce,u))}function fe(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,p=2&n?new oe:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var d=e[c],h=t[c];if(r)var m=a?r(h,d,c,t,e,o):r(d,h,c,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!b(t,(function(e,t){if(a=t,!p.has(a)&&(d===e||i(d,e,n,r,o)))return p.push(t);var a}))){f=!1;break}}else if(d!==h&&!i(d,h,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function pe(e){return function(e,t,n){var r=t(e);return xe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,ke,me)}function de(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function he(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Ee(e)?j:s).test(ye(e))}(n)?n:void 0}ne.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return T.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:T.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=se(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=se(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return se(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(W||re),string:new ne}},ie.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return de(this,e).get(e)},ie.prototype.has=function(e){return de(this,e).has(e)},ie.prototype.set=function(e,t){var n=de(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var me=N?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a)&&(o[i++]=a)}return o}(N(e),(function(t){return L.call(e,t)})))}:function(){return[]},ve=ue;function ge(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||u.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function be(e,t){return e===t||e!=e&&t!=t}(H&&"[object DataView]"!=ve(new H(new ArrayBuffer(1)))||W&&ve(new W)!=i||G&&"[object Promise]"!=ve(G.resolve())||q&&ve(new q)!=a||$&&"[object WeakMap]"!=ve(new $))&&(ve=function(e){var t=ue(e),n=t==o?e.constructor:void 0,r=n?ye(n):"";if(r)switch(r){case Z:return"[object DataView]";case X:return i;case K:return"[object Promise]";case J:return a;case Q:return"[object WeakMap]"}return t});var _e=le(function(){return arguments}())?le:function(e){return De(e)&&T.call(e,"callee")&&!L.call(e,"callee")},xe=Array.isArray,we=U||function(){return!1};function Ee(e){if(!Ce(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function De(e){return null!=e&&"object"==typeof e}var Se=y?function(e){return function(t){return e(t)}}(y):function(e){return De(e)&&Oe(e.length)&&!!l[ue(e)]};function ke(e){return null!=(t=e)&&Oe(t.length)&&!Ee(t)?function(e,t){var n=xe(e),r=!n&&_e(e),i=!n&&!r&&we(e),o=!n&&!r&&!i&&Se(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)!t&&!T.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ge(l,u))||s.push(l);return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||S))return V(e);var t,n,r=[];for(var i in Object(e))T.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e);var t}e.exports=function(e,t){return ce(e,t)}})),$e={Polygon:G,LineString:W,Point:H,MultiPolygon:Y,MultiLineString:Y,MultiPoint:Y},Ye=function(e,t){var n={options:e=function(e){void 0===e&&(e={});var t=ne(e);return e.controls||(t.controls={}),!1===e.displayControlsDefault?t.controls=ne(We,e.controls):t.controls=ne(He,e.controls),(t=ne(Ve,t)).styles=Ge(t.styles,"cold").concat(Ge(t.styles,"hot")),t}(e)};t=function(e,t){return t.modes=x,t.getFeatureIdsAt=function(t){return I.click({point:t},null,e).map((function(e){return e.properties.id}))},t.getSelectedIds=function(){return e.store.getSelectedIds()},t.getSelected=function(){return{type:b,features:e.store.getSelectedIds().map((function(t){return e.store.get(t)})).map((function(e){return e.toGeoJSON()}))}},t.getSelectedPoints=function(){return{type:b,features:e.store.getSelectedCoordinates().map((function(e){return{type:m,properties:{},geometry:{type:y,coordinates:e.coordinates}}}))}},t.set=function(n){if(void 0===n.type||n.type!==b||!Array.isArray(n.features))throw new Error("Invalid FeatureCollection");var r=e.store.createRenderBatch(),i=e.store.getAllIds().slice(),o=t.add(n),a=new M(o);return(i=i.filter((function(e){return!a.has(e)}))).length&&t.delete(i),r(),o},t.add=function(t){var n=JSON.parse(JSON.stringify(xe(t))).features.map((function(t){if(t.id=t.id||U(),null===t.geometry)throw new Error("Invalid geometry: null");if(void 0===e.store.get(t.id)||e.store.get(t.id).type!==t.geometry.type){var n=$e[t.geometry.type];if(void 0===n)throw new Error("Invalid geometry type: "+t.geometry.type+".");var r=new n(e,t);e.store.add(r)}else{var i=e.store.get(t.id);i.properties=t.properties,qe(i.getCoordinates(),t.geometry.coordinates)||i.incomingCoords(t.geometry.coordinates)}return t.id}));return e.store.render(),n},t.get=function(t){var n=e.store.get(t);if(n)return n.toGeoJSON()},t.getAll=function(){return{type:b,features:e.store.getAll().map((function(e){return e.toGeoJSON()}))}},t.delete=function(n){return e.store.delete(n,{silent:!0}),t.getMode()!==x.DIRECT_SELECT||e.store.getSelectedIds().length?e.store.render():e.events.changeMode(x.SIMPLE_SELECT,void 0,{silent:!0}),t},t.deleteAll=function(){return e.store.delete(e.store.getAllIds(),{silent:!0}),t.getMode()===x.DIRECT_SELECT?e.events.changeMode(x.SIMPLE_SELECT,void 0,{silent:!0}):e.store.render(),t},t.changeMode=function(n,r){return void 0===r&&(r={}),n===x.SIMPLE_SELECT&&t.getMode()===x.SIMPLE_SELECT?(i=r.featureIds||[],o=e.store.getSelectedIds(),i.length===o.length&&JSON.stringify(i.map((function(e){return e})).sort())===JSON.stringify(o.map((function(e){return e})).sort())||(e.store.setSelected(r.featureIds,{silent:!0}),e.store.render()),t):(n===x.DIRECT_SELECT&&t.getMode()===x.DIRECT_SELECT&&r.featureId===e.store.getSelectedIds()[0]||e.events.changeMode(n,r,{silent:!0}),t);var i,o},t.getMode=function(){return e.events.getMode()},t.trash=function(){return e.events.trash({silent:!0}),t},t.combineFeatures=function(){return e.events.combineFeatures({silent:!0}),t},t.uncombineFeatures=function(){return e.events.uncombineFeatures({silent:!0}),t},t.setFeatureProperty=function(n,r,i){return e.store.setFeatureProperty(n,r,i),t},t}(n,t),n.api=t;var r=oe(n);return t.onAdd=r.onAdd,t.onRemove=r.onRemove,t.types=h,t.options=e,t};function Ze(e){Ye(e,this)}return Ze.modes=Ue,Ze}()}).call(this,n(72))},function(e,t,n){"use strict";t.a=[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}]},function(e,t,n){"use strict";var r=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function o(){}var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),p=new RegExp("^rgba\\("+[a,a,a,s]+"\\)$"),d=new RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),h=new RegExp("^hsl\\("+[s,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),v={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 g(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_(t):3===n?new O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?x(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?x(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 O(t[1],t[2],t[3],1):(t=f.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?x(t[1],t[2],t[3],t[4]):(t=d.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?k(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?k(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?_(v[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function _(e){return new O(e>>16&255,e>>8&255,255&e,1)}function x(e,t,n,r){return r<=0&&(e=t=n=NaN),new O(e,t,n,r)}function w(e){return e instanceof o||(e=b(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function E(e,t,n,r){return 1===arguments.length?w(e):new O(e,t,n,null==r?1:r)}function O(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C(){return"#"+S(this.r)+S(this.g)+S(this.b)}function D(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(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)))<16?"0":"")+e.toString(16)}function k(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,n,r)}function A(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-i,l=(a+i)/2;return u?(s=t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4,u/=l<.5?a+i:2-a-i,s*=60):u=l>0&&l<1?0:s,new T(s,u,l,e.opacity)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function P(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function M(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}r(o,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return A(this).formatHsl()},formatRgb:y,toString:y}),r(O,E,i(o,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new O(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:C,formatHex:C,formatRgb:D,toString:D})),r(T,(function(e,t,n,r){return 1===arguments.length?A(e):new T(e,t,n,null==r?1:r)}),i(o,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new T(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,i=2*n-r;return new O(P(e>=240?e-240:e+120,i,r),P(e,i,r),P(e<120?e+240:e-120,i,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(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var j=function(e){return function(){return e}};function I(e,t){return function(n){return e+n*t}}function F(e){return 1===(e=+e)?R:function(t,n){return n-t?function(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)}}(t,n,e):j(isNaN(t)?n:t)}}function R(e,t){var n=t-e;return n?I(e,n):j(isNaN(e)?t:e)}var L=function e(t){var n=F(t);function r(e,t){var r=n((e=E(e)).r,(t=E(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=R(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function z(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=E(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}z((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return M((n-r/t)*t,a,i,o,s)}})),z((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return M((n-r/t)*t,i,o,a,s)}}));var B=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}};function N(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function U(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Y(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}var V=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},H=n(151),W=function(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=Y(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},G=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,q=new RegExp(G.source,"g");var $=function(e,t){var n,r,i,o=G.lastIndex=q.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=G.exec(e))&&(r=q.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Object(H.a)(n,r)})),o=q.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})},Y=t.a=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?j(t):("number"===r?H.a:"string"===r?(n=b(t))?(t=n,L):$:t instanceof b?L:t instanceof Date?V:N(t)?B:Array.isArray(t)?U:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?W:H.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ie}));var r=n(187),i=n.n(r),o=n(15),a=n.n(o),s=n(14),u=n.n(s),l=n(0),c=n.n(l),f=n(108),p=n(21),d=n.n(p),h=n(153),m=n(133),v=n(45),g=n(55),y=n.n(g),b=n(373),_=n.n(b),x=n(26),w=n.n(x),E=n(78),O=n(28),C=n(18),D=n(17);function S(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}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 A(){return(A=Object.assign||function(e){for(var t=1;t<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)}function T(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?T(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(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 j(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var I={valueAccessor:function(e){return w()(e.value)?_()(e.value):e.value}};function F(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,o=e.id,a=e.textBreakAll,s=j(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?c.a.createElement(v.a,{className:"recharts-label-list"},t.map((function(e,t){var l=u()(r)?n(e,t):Object(C.t)(e&&e.payload,r),f=u()(o)?{}:{id:"".concat(o,"-").concat(t)};return c.a.createElement(E.a,A({},Object(D.c)(e,!0),s,f,{parentViewBox:e.parentViewBox,index:t,value:l,textBreakAll:a,viewBox:E.a.parseViewBox(u()(i)?e:P(P({},e),{},{clockWise:i})),key:"label-".concat(t)}))}))):null}function R(e,t){return e?!0===e?c.a.createElement(F,{key:"labelList-implicit",data:t}):c.a.isValidElement(e)||a()(e)?c.a.createElement(F,{key:"labelList-implicit",data:t,content:e}):y()(e)?c.a.createElement(F,A({data:t},e,{key:"labelList-implicit"})):null:null}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}).apply(this,arguments)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 N(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function U(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,l=N(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=Object(D.c)(l),p=o.map((function(e,o){var l=a(e,i),p=l.x,d=l.y,h=l.value,m=l.errorVal;if(!m)return null;var g,y,b=[];if(Array.isArray(m)){var _=z(m,2);g=_[0],y=_[1]}else g=y=m;if("vertical"===n){var x=s.scale,w=d+t,E=w+r,O=w-r,C=x(h-g),D=x(h+y);b.push({x1:D,y1:E,x2:D,y2:O}),b.push({x1:C,y1:w,x2:D,y2:w}),b.push({x1:C,y1:E,x2:C,y2:O})}else if("horizontal"===n){var S=u.scale,k=p+t,A=k-r,T=k+r,P=S(h-g),M=S(h+y);b.push({x1:A,y1:M,x2:T,y2:M}),b.push({x1:k,y1:P,x2:k,y2:M}),b.push({x1:A,y1:P,x2:T,y2:P})}return c.a.createElement(v.a,L({className:"recharts-errorBar",key:"bar-".concat(o)},f),b.map((function(e,t){return c.a.createElement("line",L({},e,{key:"line-".concat(t)}))})))}));return c.a.createElement(v.a,{className:"recharts-errorBars"},p)}F.displayName="LabelList",F.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Object(O.a)(r,F.displayName).map((function(e,n){return Object(l.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var o=R(e.label,t);return[o].concat(S(i))},F.defaultProps=I,U.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},U.displayName="ErrorBar";var V=n(6),H=n(85);function W(e){return(W="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,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function q(){return(q=Object.assign||function(e){for(var t=1;t<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)}function $(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?$(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(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 X(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}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 J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(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 ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==W(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ie=function(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&&ee(e,t)}(s,e);var t,n,r,o=te(s);function s(){var e;J(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},e.getStrokeDasharray=function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,a=t-e,u=[],l=0,c=0;;c+=n[l],++l)if(c+n[l]>o){u=[].concat(X(n.slice(0,l)),[o-c]);break}var f=u.length%2===0?[0,a]:[a];return[].concat(X(s.repeat(n,i)),X(u),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=Object(V.j)("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()},e}return t=s,r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!==0?[].concat(X(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(X(r),X(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(c.a.isValidElement(e))n=c.a.cloneElement(e,t);else if(a()(e))n=e(t);else{var r=d()("recharts-line-dot",e?e.className:"");n=c.a.createElement(m.a,q({},t,{className:r}))}return n}}],(n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=e.layout,o=e.children,a=Object(O.a)(o,U.displayName);if(!a)return null;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Object(C.t)(e.payload,t)}}return a.map((function(e,o){return c.a.cloneElement(e,{key:"bar-".concat(o),data:t,xAxis:n,yAxis:r,layout:i,dataPointFormatter:s})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,i=n.points,o=n.dataKey,a=Object(D.c)(this.props),u=Object(D.c)(r,!0),l=i.map((function(e,t){var n=Y(Y(Y({key:"dot-".concat(t),r:3},a),u),{},{value:e.value,dataKey:o,cx:e.x,cy:e.y,index:t,payload:e.payload});return s.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return c.a.createElement(v.a,q({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,o=i.type,a=i.layout,s=i.connectNulls,u=(i.ref,G(i,["type","layout","connectNulls","ref"])),l=Y(Y(Y({},Object(D.c)(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:o,layout:a,connectNulls:s});return c.a.createElement(h.a,q({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,l=r.animationEasing,p=r.animationId,d=r.animateNewValues,h=r.width,m=r.height,v=this.state,g=v.prevPoints,y=v.totalLength;return c.a.createElement(f.a,{begin:s,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(g){var s=g.length/i.length,u=i.map((function(e,t){var n=Math.floor(t*s);if(g[n]){var r=g[n],i=Object(V.e)(r.x,e.x),o=Object(V.e)(r.y,e.y);return Y(Y({},e),{},{x:i(a),y:o(a)})}if(d){var u=Object(V.e)(2*h,e.x),l=Object(V.e)(m/2,e.y);return Y(Y({},e),{},{x:u(a),y:l(a)})}return Y(Y({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,t)}var l,c=Object(V.e)(0,y)(a);if(o){var f="".concat(o).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=n.getStrokeDasharray(c,y,f)}else l="".concat(c,"px ").concat(y-c,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,a=this.state,s=a.prevPoints,u=a.totalLength;return o&&r&&r.length&&(!s&&u>0||!i()(s,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,o=e.xAxis,a=e.yAxis,s=e.top,l=e.left,f=e.width,p=e.height,h=e.isAnimationActive,m=e.id;if(t||!r||!r.length)return null;var g=this.state.isAnimationFinished,y=1===r.length,b=d()("recharts-line",i),_=o&&o.allowDataOverflow||a&&a.allowDataOverflow,x=u()(m)?this.id:m;return c.a.createElement(v.a,{className:b},_?c.a.createElement("defs",null,c.a.createElement("clipPath",{id:"clipPath-".concat(x)},c.a.createElement("rect",{x:l,y:s,width:f,height:p}))):null,!y&&this.renderCurve(_,x),this.renderErrorBar(),(y||n)&&this.renderDots(_,x),(!h||g)&&F.renderCallByParent(this.props,r))}}])&&Q(t.prototype,n),r&&Q(t,r),s}(l.PureComponent);ie.displayName="Line",ie.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!H.a.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},ie.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,f=t.layout;return Y({points:l.map((function(e,t){var l=Object(C.t)(e,a);return"horizontal"===f?{x:Object(C.h)({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:u()(l)?null:r.scale(l),value:l,payload:e}:{x:u()(l)?null:n.scale(l),y:Object(C.h)({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:l,payload:e}})),layout:f},c)}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(162),n(3),n(2)),s=n(7),u=n(24),l=n(95),c=n(30),f=n(102),p=n(67),d=n(596),h=n(387),m=n(194);function v(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function g(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function y(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function b(e){return"function"===typeof e?e():e}var _=o.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,_=e.anchorOrigin,x=void 0===_?{vertical:"top",horizontal:"left"}:_,w=e.anchorPosition,E=e.anchorReference,O=void 0===E?"anchorEl":E,C=e.children,D=e.classes,S=e.className,k=e.container,A=e.elevation,T=void 0===A?8:A,P=e.getContentAnchorEl,M=e.marginThreshold,j=void 0===M?16:M,I=e.onEnter,F=e.onEntered,R=e.onEntering,L=e.onExit,z=e.onExited,B=e.onExiting,N=e.open,U=e.PaperProps,V=void 0===U?{}:U,H=e.transformOrigin,W=void 0===H?{vertical:"top",horizontal:"left"}:H,G=e.TransitionComponent,q=void 0===G?h.a:G,$=e.transitionDuration,Y=void 0===$?"auto":$,Z=e.TransitionProps,X=void 0===Z?{}:Z,K=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=o.useRef(),Q=o.useCallback((function(e){if("anchorPosition"===O)return w;var t=b(s),n=(t&&1===t.nodeType?t:Object(c.a)(J.current).body).getBoundingClientRect(),r=0===e?x.vertical:"center";return{top:n.top+v(n,r),left:n.left+g(n,x.horizontal)}}),[s,x.horizontal,x.vertical,w,O]),ee=o.useCallback((function(e){var t=0;if(P&&"anchorEl"===O){var n=P(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[x.vertical,O,P]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:v(e,W.vertical)+t,horizontal:g(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===O)return{top:null,left:null,transformOrigin:y(r)};var i=Q(t),o=i.top-r.vertical,a=i.left-r.horizontal,u=o+n.height,l=a+n.width,c=Object(f.a)(b(s)),p=c.innerHeight-j,d=c.innerWidth-j;if(o<j){var h=o-j;o-=h,r.vertical+=h}else if(u>p){var m=u-p;o-=m,r.vertical+=m}if(a<j){var v=a-j;a-=v,r.horizontal+=v}else if(l>d){var g=l-d;a-=g,r.horizontal+=g}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:y(r)}}),[s,O,Q,ee,te,j]),re=o.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){J.current=u.findDOMNode(e)}),[]);o.useEffect((function(){N&&re()})),o.useImperativeHandle(n,(function(){return N?{updatePosition:function(){re()}}:null}),[N,re]),o.useEffect((function(){if(N){var e=Object(l.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[N,re]);var oe=Y;"auto"!==Y||q.muiSupportAuto||(oe=void 0);var ae=k||(s?Object(c.a)(b(s)).body:void 0);return o.createElement(d.a,Object(r.a)({container:ae,open:N,ref:t,BackdropProps:{invisible:!0},className:Object(a.a)(D.root,S)},K),o.createElement(q,Object(r.a)({appear:!0,in:N,onEnter:I,onEntered:F,onExit:L,onExited:z,onExiting:B,timeout:oe},X,{onEntering:Object(p.a)((function(e,t){R&&R(e,t),re()}),X.onEntering)}),o.createElement(m.a,Object(r.a)({elevation:T,ref:ie},V,{className:Object(a.a)(D.paper,V.className)}),C)))})),x=Object(s.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(_),w=n(233),E=n(59),O=n(34),C={vertical:"top",horizontal:"right"},D={vertical:"top",horizontal:"left"},S=o.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,l=e.children,c=e.classes,f=e.disableAutoFocusItem,p=void 0!==f&&f,d=e.MenuListProps,h=void 0===d?{}:d,m=e.onClose,v=e.onEntering,g=e.open,y=e.PaperProps,b=void 0===y?{}:y,_=e.PopoverClasses,S=e.transitionDuration,k=void 0===S?"auto":S,A=e.TransitionProps,T=(A=void 0===A?{}:A).onEntering,P=Object(i.a)(A,["onEntering"]),M=e.variant,j=void 0===M?"selectedMenu":M,I=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),F=Object(O.a)(),R=s&&!p&&g,L=o.useRef(null),z=o.useRef(null),B=-1;o.Children.map(l,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==j&&e.props.selected||-1===B)&&(B=t))}));var N=o.Children.map(l,(function(e,t){return t===B?o.cloneElement(e,{ref:function(t){z.current=u.findDOMNode(t),Object(E.a)(e.ref,t)}}):e}));return o.createElement(x,Object(r.a)({getContentAnchorEl:function(){return z.current},classes:_,onClose:m,TransitionProps:Object(r.a)({onEntering:function(e,t){L.current&&L.current.adjustStyleForScrollbar(e,F),v&&v(e,t),T&&T(e,t)}},P),anchorOrigin:"rtl"===F.direction?C:D,transformOrigin:"rtl"===F.direction?C:D,PaperProps:Object(r.a)({},b,{classes:Object(r.a)({},b.classes,{root:c.paper})}),open:g,ref:t,transitionDuration:k},I),o.createElement(w.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:L,autoFocus:s&&(-1===B||p),autoFocusItem:R,variant:j},h,{className:Object(a.a)(c.list,h.className)}),N))}));t.a=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(S)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),i=n(46),o=n(64),a=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function s(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||a(r)&&a(i)))return!1;var r,i;return!0}var u=function(e,t){var n;void 0===t&&(t=s);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}},l=n(0),c=(n(42),"object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function f(e){cancelAnimationFrame(e.id)}function p(e,t){var n=c();var r={id:requestAnimationFrame((function i(){c()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var d=null;function h(e){if(void 0===e&&(e=!1),null===d||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?d="positive-descending":(t.scrollLeft=1,d=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d}return d}var m=function(e,t){return e};function v(e){var t,n,a=e.getItemOffset,s=e.getEstimatedTotalSize,c=e.getItemSize,d=e.getOffsetForIndexAndAlignment,v=e.getStartIndexForOffset,y=e.getStopIndexForStartIndex,b=e.initInstanceProps,_=e.shouldResetStyleCacheOnItemSizeChange,x=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=b(n.props,Object(o.a)(Object(o.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(o.a)(Object(o.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=u((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=u((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,s=r.layout,u=n._getItemStyleCache(_&&o,_&&s,_&&i);if(u.hasOwnProperty(e))t=u[e];else{var l=a(n.props,e,n._instanceProps),f=c(n.props,e,n._instanceProps),p="horizontal"===i||"horizontal"===s,d="rtl"===i,h=p?l:0;u[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:p?0:l,height:p?"100%":f,width:p?f:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=u((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(h()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&f(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=p(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return g(e,t),x(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(d(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(h()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&f(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,u=e.innerElementType,c=e.innerTagName,f=e.itemCount,p=e.itemData,d=e.itemKey,h=void 0===d?m:d,v=e.layout,g=e.outerElementType,y=e.outerTagName,b=e.style,_=e.useIsScrolling,x=e.width,w=this.state.isScrolling,E="horizontal"===i||"horizontal"===v,O=E?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),D=C[0],S=C[1],k=[];if(f>0)for(var A=D;A<=S;A++)k.push(Object(l.createElement)(t,{data:p,key:h(A,p),index:A,isScrolling:_?w:void 0,style:this._getItemStyle(A)}));var T=s(this.props,this._instanceProps);return Object(l.createElement)(g||y||"div",{className:n,onScroll:O,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:o,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},Object(l.createElement)(u||c||"div",{children:k,ref:a,style:{height:E?"100%":T,pointerEvents:w?"none":void 0,width:E?T:"100%"}}))},n._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,u=o.scrollUpdateWasRequested;this._callOnScroll(a,s,u)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=v(this.props,a,this._instanceProps),u=y(this.props,s,a,this._instanceProps),l=i&&"backward"!==o?1:Math.max(1,n),c=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-l),Math.max(0,Math.min(t-1,u+c)),s,u]},t}(l.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var g=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},y=v({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var i=e.direction,o=e.height,a=e.itemCount,s=e.itemSize,u=e.layout,l=e.width,c="horizontal"===i||"horizontal"===u?l:o,f=Math.max(0,a*s-c),p=Math.min(f,t*s),d=Math.max(0,t*s-c+s);switch("smart"===n&&(n=r>=d-c&&r<=p+c?"auto":"center"),n){case"start":return p;case"end":return d;case"center":var h=Math.round(d+(p-d)/2);return h<Math.ceil(c/2)?0:h>f+Math.floor(c/2)?f:h;case"auto":default:return r>=d&&r<=p?r:r<d?d:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,u=e.width,l=t*a,c="horizontal"===r||"horizontal"===s?u:i,f=Math.ceil((c+n-l)/a);return Math.max(0,Math.min(o-1,t+f-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}})},function(e,t,n){"use strict";var r=n(8),i=["2d","webgl","experimental-webgl","webgl2","webgl2-compute","bitmaprenderer","gpupresent"];var o,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"2d",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.a)({},t),o=n.width,a=n.height,s=n.offscreen,u=void 0!==s&&s,l=n.worker,c=void 0!==l&&l,f=n.contextAttributes,p=void 0===f?{}:f;if(!c&&!i.includes(e))throw new TypeError('Unknown contextType: "'.concat(e,'"'));if("undefined"===typeof window&&!t.canvas)return null;var d,h=t.canvas||document.createElement("canvas"),m=(u||c)&&"OffscreenCanvas"in window?h.transferControlToOffscreen():h;if(Number.isInteger(o)&&o>=0&&(m.width=o),Number.isInteger(a)&&a>=0&&(m.height=a),c)return{canvas:m};try{d=m.getContext(e,p)||("webgl"===e?m.getContext("experimental-webgl",p):null)}catch(v){d=null}return{canvas:m,context:d}};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;if(o)o.canvas.width=e.width,o.canvas.height=e.height;else{var r=a("2d",{width:e.width,height:e.height}),i=r.context;o=i}return o.save(),o.fillStyle=t,o.globalAlpha=n,o.fillRect(0,0,o.canvas.width,o.canvas.height),o.globalCompositeOperation="destination-atop",o.globalAlpha=1,o.drawImage(e,0,0),o.restore(),o.canvas}},function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),i=n(44),o=n(4),a=n(0),s=(n(3),n(392)),u=n(50),l=n(34),c=n(61),f=n(20),p={entering:{opacity:1},entered:{opacity:1}},d={enter:u.b.enteringScreen,exit:u.b.leavingScreen},h=a.forwardRef((function(e,t){var n=e.children,u=e.disableStrictModeCompat,h=void 0!==u&&u,m=e.in,v=e.onEnter,g=e.onEntered,y=e.onEntering,b=e.onExit,_=e.onExited,x=e.onExiting,w=e.style,E=e.TransitionComponent,O=void 0===E?s.a:E,C=e.timeout,D=void 0===C?d:C,S=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),k=Object(l.a)(),A=k.unstable_strictMode&&!h,T=a.useRef(null),P=Object(f.a)(n.ref,t),M=Object(f.a)(A?T:void 0,P),j=function(e){return function(t,n){if(e){var r=A?[T.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},I=j(y),F=j((function(e,t){Object(c.b)(e);var n=Object(c.a)({style:w,timeout:D},{mode:"enter"});e.style.webkitTransition=k.transitions.create("opacity",n),e.style.transition=k.transitions.create("opacity",n),v&&v(e,t)})),R=j(g),L=j(x),z=j((function(e){var t=Object(c.a)({style:w,timeout:D},{mode:"exit"});e.style.webkitTransition=k.transitions.create("opacity",t),e.style.transition=k.transitions.create("opacity",t),b&&b(e)})),B=j(_);return a.createElement(O,Object(r.a)({appear:!0,in:m,nodeRef:A?T:void 0,onEnter:F,onEntered:R,onEntering:I,onExit:z,onExited:B,onExiting:L,timeout:D},S),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||m?void 0:"hidden"},p[e],w,n.props.style),ref:M},t))}))}));t.a=h},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.color,f=void 0===c?"inherit":c,p=e.component,d=void 0===p?"svg":p,h=e.fontSize,m=void 0===h?"medium":h,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,_=Object(i.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(d,Object(r.a)({className:Object(a.a)(s.root,l,"inherit"!==f&&s["color".concat(Object(u.a)(f))],"default"!==m&&"medium"!==m&&s["fontSize".concat(Object(u.a)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},_),n,g?o.createElement("title",null,g):null)}));l.muiName="SvgIcon",t.a=Object(s.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(44),o=n(4),a=n(0),s=(n(3),n(392)),u=n(34),l=n(61),c=n(20);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var p={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},d=a.forwardRef((function(e,t){var n=e.children,d=e.disableStrictModeCompat,h=void 0!==d&&d,m=e.in,v=e.onEnter,g=e.onEntered,y=e.onEntering,b=e.onExit,_=e.onExited,x=e.onExiting,w=e.style,E=e.timeout,O=void 0===E?"auto":E,C=e.TransitionComponent,D=void 0===C?s.a:C,S=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=a.useRef(),A=a.useRef(),T=Object(u.a)(),P=T.unstable_strictMode&&!h,M=a.useRef(null),j=Object(c.a)(n.ref,t),I=Object(c.a)(P?M:void 0,j),F=function(e){return function(t,n){if(e){var r=P?[M.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},R=F(y),L=F((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:w,timeout:O},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===O?(n=T.transitions.getAutoHeightDuration(e.clientHeight),A.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:.666*n,delay:o})].join(","),v&&v(e,t)})),z=F(g),B=F(x),N=F((function(e){var t,n=Object(l.a)({style:w,timeout:O},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===O?(t=T.transitions.getAutoHeightDuration(e.clientHeight),A.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),b&&b(e)})),U=F(_);return a.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),a.createElement(D,Object(r.a)({appear:!0,in:m,nodeRef:P?M:void 0,onEnter:L,onEntered:z,onEntering:R,onExit:N,onExited:U,onExiting:B,addEndListener:function(e,t){var n=P?e:t;"auto"===O&&(k.current=setTimeout(n,A.current||0))},timeout:"auto"===O?null:O},S),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||m?void 0:"hidden"},p[e],w,n.props.style),ref:I},t))}))}));d.muiSupportAuto=!0,t.a=d},function(e,t,n){"use strict";var r=n(0),i=n(24),o=(n(3),n(30)),a=n(20),s=n(31);function u(e){return e.substring(2).toLowerCase()}t.a=function(e){var t=e.children,n=e.disableReactTree,l=void 0!==n&&n,c=e.mouseEvent,f=void 0===c?"onClick":c,p=e.onClickAway,d=e.touchEvent,h=void 0===d?"onTouchEnd":d,m=r.useRef(!1),v=r.useRef(null),g=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){g.current=!0}),0),function(){g.current=!1}}),[]);var b=r.useCallback((function(e){v.current=i.findDOMNode(e)}),[]),_=Object(a.a)(t.ref,b),x=Object(s.a)((function(e){var t=y.current;if(y.current=!1,g.current&&v.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(m.current)m.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(v.current)>-1;else n=!Object(o.a)(v.current).documentElement.contains(e.target)||v.current.contains(e.target);n||!l&&t||p(e)}})),w=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},E={ref:_};return!1!==h&&(E[h]=w(h)),r.useEffect((function(){if(!1!==h){var e=u(h),t=Object(o.a)(v.current),n=function(){m.current=!0};return t.addEventListener(e,x),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,x),t.removeEventListener("touchmove",n)}}}),[x,h]),!1!==f&&(E[f]=w(f)),r.useEffect((function(){if(!1!==f){var e=u(f),t=Object(o.a)(v.current);return t.addEventListener(e,x),function(){t.removeEventListener(e,x)}}}),[x,f]),r.createElement(r.Fragment,null,r.cloneElement(t,E))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,s);return s>=0?(u>=r?10:u>=i?5:u>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=i?5:u>=o?2:1)}function s(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/s;return u>=r?s*=10:u>=i?s*=5:u>=o&&(s*=2),t<e?-s:s}t.a=function(e,t,n){var r,i,o,s,u=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(s=a(e,t,n))||!isFinite(s))return[];if(s>0){var l=Math.round(e/s),c=Math.round(t/s);for(l*s<e&&++l,c*s>t&&--c,o=new Array(i=c-l+1);++u<i;)o[u]=(l+u)*s}else{s=-s;var f=Math.round(e*s),p=Math.round(t*s);for(f/s<e&&++f,p/s>t&&--p,o=new Array(i=p-f+1);++u<i;)o[u]=(f+u)/s}return r&&o.reverse(),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return je}));var r=n(54),i=Date.now(),o="fnValues"+i,a="fnStyle"+ ++i,s=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var i=Object(r.d)(e,{},n);return i[a]=t,i},onProcessStyle:function(e,t){if(o in t||a in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[o]=n,e},onUpdate:function(e,t,n,r){var i=t,s=i[a];s&&(i.style=s(e)||{});var u=i[o];if(u)for(var l in u)i.prop(l,u[l](e),r)}}},u=n(1),l="@global",c=function(){function e(e,t,n){for(var i in this.type="global",this.at=l,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.a(Object(u.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=l,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,Object(u.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),p=/\s*,\s*/g;function d(e,t){for(var n=e.split(p),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===l)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[l]:null;if(i){for(var o in i)t.addRule(o,i[o],Object(u.a)({},n,{selector:d(o,e.selector)}));delete r[l]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,l.length)===l){var o=d(i.substr(l.length),e.selector);t.addRule(o,r[i],Object(u.a)({},n,{selector:o})),delete r[i]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,g=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?(i=i).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var u=r[s];i&&(i+=", "),i+=-1!==u.indexOf("&")?u.replace(v,a):a+" "+u}return i}function n(e,t,n){if(n)return Object(u.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Object(u.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var f in r){var p=-1!==f.indexOf("&"),d="@"===f[0];if(p||d){if(a=n(l,c,a),p){var h=t(f,l.selector);s||(s=e(c,o)),h=h.replace(g,s),c.addRule(h,r[f],Object(u.a)({},a,{selector:h}))}else d&&c.addRule(f,{},a).addRule(l.key,r[f],{selector:l.selector});delete r[f]}}return r}}},b=/[A-Z]/g,_=/^ms-/,x={};function w(e){return"-"+e.toLowerCase()}var E=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(b,w);return x[e]=_.test(t)?"-"+t:t};function O(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:E(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(O):t.fallbacks=O(e.fallbacks)),t}var C=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=O(e[t]);return e}return O(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=E(t);return t===r?e:(n.prop(r,e),null)}}},D=r.f&&CSS?CSS.px:"px",S=r.f&&CSS?CSS.ms:"ms",k=r.f&&CSS?CSS.percent:"%";function A(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var T=A({"animation-delay":S,"animation-duration":S,"background-position":D,"background-position-x":D,"background-position-y":D,"background-size":D,border:D,"border-bottom":D,"border-bottom-left-radius":D,"border-bottom-right-radius":D,"border-bottom-width":D,"border-left":D,"border-left-width":D,"border-radius":D,"border-right":D,"border-right-width":D,"border-top":D,"border-top-left-radius":D,"border-top-right-radius":D,"border-top-width":D,"border-width":D,"border-block":D,"border-block-end":D,"border-block-end-width":D,"border-block-start":D,"border-block-start-width":D,"border-block-width":D,"border-inline":D,"border-inline-end":D,"border-inline-end-width":D,"border-inline-start":D,"border-inline-start-width":D,"border-inline-width":D,"border-start-start-radius":D,"border-start-end-radius":D,"border-end-start-radius":D,"border-end-end-radius":D,margin:D,"margin-bottom":D,"margin-left":D,"margin-right":D,"margin-top":D,"margin-block":D,"margin-block-end":D,"margin-block-start":D,"margin-inline":D,"margin-inline-end":D,"margin-inline-start":D,padding:D,"padding-bottom":D,"padding-left":D,"padding-right":D,"padding-top":D,"padding-block":D,"padding-block-end":D,"padding-block-start":D,"padding-inline":D,"padding-inline-end":D,"padding-inline-start":D,"mask-position-x":D,"mask-position-y":D,"mask-size":D,height:D,width:D,"min-height":D,"max-height":D,"min-width":D,"max-width":D,bottom:D,left:D,top:D,right:D,inset:D,"inset-block":D,"inset-block-end":D,"inset-block-start":D,"inset-inline":D,"inset-inline-end":D,"inset-inline-start":D,"box-shadow":D,"text-shadow":D,"column-gap":D,"column-rule":D,"column-rule-width":D,"column-width":D,"font-size":D,"font-size-delta":D,"letter-spacing":D,"text-decoration-thickness":D,"text-indent":D,"text-stroke":D,"text-stroke-width":D,"word-spacing":D,motion:D,"motion-offset":D,outline:D,"outline-offset":D,"outline-width":D,perspective:D,"perspective-origin-x":k,"perspective-origin-y":k,"transform-origin":k,"transform-origin-x":k,"transform-origin-y":k,"transform-origin-z":k,"transition-delay":S,"transition-duration":S,"vertical-align":D,"flex-basis":D,"shape-margin":D,size:D,gap:D,grid:D,"grid-gap":D,"row-gap":D,"grid-row-gap":D,"grid-column-gap":D,"grid-template-rows":D,"grid-template-columns":D,"grid-auto-rows":D,"grid-auto-columns":D,"box-shadow-x":D,"box-shadow-y":D,"box-shadow-blur":D,"box-shadow-spread":D,"font-line-height":D,"text-shadow-x":D,"text-shadow-y":D,"text-shadow-blur":D});function P(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=P(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=P(i,t[i],n);else for(var o in t)t[o]=P(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||T[e];return!a||0===t&&a===D?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var M=function(e){void 0===e&&(e={});var t=A(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=P(r,e[r],t);return e},onChangeValue:function(e,n){return P(n,e,t)}}},j=n(118),I=n(86),F="",R="",L="",z="",B=j.a&&"ontouchstart"in document.documentElement;if(j.a){var N={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},U=document.createElement("p").style;for(var V in N)if(V+"Transform"in U){F=V,R=N[V];break}"Webkit"===F&&"msHyphens"in U&&(F="ms",R=N.ms,z="edge"),"Webkit"===F&&"-apple-trailing-word"in U&&(L="apple")}var H=F,W=R,G=L,q=z,$=B;var Y={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:W+e)}},Z={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?W+"print-"+e:e)}},X=/[-\s]+(.)?/g;function K(e,t){return t?t.toUpperCase():""}function J(e){return e.replace(X,K)}function Q(e){return J("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){if(J("mask-image")in t)return e;if(H+Q("mask-image")in t)return W+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||$?e:W+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:W+e)}},ie={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:W+e)}},oe={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==q?W+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===G?W+e:e)}},se={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+Q(e)in t&&W+"column-"+e:"Moz"===H&&("page"+Q(e)in t&&"page-"+e))}},ue={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+Q(n)in t&&W+n}},le={supportedProperty:function(e,t){return J(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?W+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+W+e:e)}},pe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?W+"scroll-chaining":e)}},de={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=de[e];return!!n&&(H+Q(n)in t&&W+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),ge=function(e){return W+e},ye=[Y,Z,te,ne,re,ie,oe,ae,se,ue,le,ce,fe,pe,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var i=me[e];if(!Array.isArray(i))return H+Q(i)in t&&W+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(H+Q(i[0])in t))return!1;return i.map(ge)}return!1}}],be=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),_e=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(I.a)(t.noPrefill)),e}),[]),xe={};if(j.a){ee=document.createElement("p");var we=window.getComputedStyle(document.documentElement,"");for(var Ee in we)isNaN(Ee)||(xe[we[Ee]]=we[Ee]);_e.forEach((function(e){return delete xe[e]}))}function Oe(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=xe[e])return xe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(xe[e]=be[n](e,ee.style,t),!xe[e]);n++);try{ee.style[e]=""}catch(r){return!1}return xe[e]}var Ce,De={},Se={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ke=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ae(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Oe(t):", "+Oe(n);return r||(t||n)}function Te(e,t){var n=t;if(!Ce||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=De[r])return De[r];try{Ce.style[e]=n}catch(i){return De[r]=!1,!1}if(Se[e])n=n.replace(ke,Ae);else if(""===Ce.style[e]&&("-ms-flex"===(n=W+n)&&(Ce.style[e]="-ms-flexbox"),Ce.style[e]=n,""===Ce.style[e]))return De[r]=!1,!1;return Ce.style[e]="",De[r]=n,De[r]}j.a&&(Ce=document.createElement("p"));var Pe=function(){function e(t){for(var n in t){var i=t[n];if("fallbacks"===n&&Array.isArray(i))t[n]=i.map(e);else{var o=!1,a=Oe(n);a&&a!==n&&(o=!0);var s=!1,u=Te(a,Object(r.g)(i));u&&u!==i&&(s=!0),(o||s)&&(o&&delete t[n],t[a||n]=u||i)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===H?n:"@"+W+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,Object(r.g)(e))||e}}};var Me=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};function je(){return{plugins:[s(),h(),y(),C(),M(),"undefined"===typeof window?null:Pe(),Me()]}}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(183),u=n(27),l=Object(u.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=n(12),p=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),d=n(10),h=n(7),m=o.createElement(c,null),v=o.createElement(l,null),g=o.createElement(p,null),y=o.forwardRef((function(e,t){var n=e.checkedIcon,u=void 0===n?m:n,l=e.classes,c=e.color,f=void 0===c?"secondary":c,p=e.icon,h=void 0===p?v:p,y=e.indeterminate,b=void 0!==y&&y,_=e.indeterminateIcon,x=void 0===_?g:_,w=e.inputProps,E=e.size,O=void 0===E?"medium":E,C=Object(i.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),D=b?x:h,S=b?x:u;return o.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(l.root,l["color".concat(Object(d.a)(f))],b&&l.indeterminate),checked:l.checked,disabled:l.disabled},color:f,inputProps:Object(r.a)({"data-indeterminate":b},w),icon:o.cloneElement(D,{fontSize:void 0===D.props.fontSize&&"small"===O?O:D.props.fontSize}),checkedIcon:o.cloneElement(S,{fontSize:void 0===S.props.fontSize&&"small"===O?O:S.props.fontSize}),ref:t},C))}));t.a=Object(h.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(f.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(f.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(y)},function(e,t,n){"use strict";var r=n(42),i=n(46),o=(n(3),n(0)),a=n.n(o),s=n(24),u=n.n(s),l=!1,c=n(134),f=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||l?this.safeSetState({status:"entered"},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(o,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(c.a.Provider,{value:null},"function"===typeof n?n(e,i):a.a.cloneElement(a.a.Children.only(n),i))},t}(a.a.Component);function p(){}f.contextType=c.a,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},f.UNMOUNTED="unmounted",f.EXITED="exited",f.ENTERING="entering",f.ENTERED="entered",f.EXITING="exiting";t.a=f},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";var r=n(249),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function d(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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},x=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!w.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:_.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function D(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=e),e=""===r?"."+D(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),S(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+D(s=e[l],l);u+=S(s,t,n,c,a)}else if("function"===typeof(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),l=0;!(s=e.next()).done;)u+=S(s=s.value,t,n,c=r+D(s,l++),a);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function k(e,t,n){if(null==e)return e;var r=[],i=0;return S(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,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)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function P(){var e=T.current;if(null===e)throw Error(d(321));return e}var M={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(d(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(d(267,e));var o=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!w.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(0),i=n(249),o=n(418);function a(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(a(227));var s=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[: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]*$/,d=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(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:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(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}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,E=60106,O=60107,C=60108,D=60114,S=60109,k=60110,A=60112,T=60113,P=60120,M=60115,j=60116,I=60121,F=60128,R=60129,L=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var B=Symbol.for;w=B("react.element"),E=B("react.portal"),O=B("react.fragment"),C=B("react.strict_mode"),D=B("react.profiler"),S=B("react.provider"),k=B("react.context"),A=B("react.forward_ref"),T=B("react.suspense"),P=B("react.suspense_list"),M=B("react.memo"),j=B("react.lazy"),I=B("react.block"),B("react.scope"),F=B("react.opaque.id"),R=B("react.debug_trace_mode"),L=B("react.offscreen"),z=B("react.legacy_hidden")}var N,U="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function H(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var W=!1;function G(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function $(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 O:return"Fragment";case E:return"Portal";case D:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case M:return $(e.type);case I:return $(e._render);case j:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Z(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.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]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(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 te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(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")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function le(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function de(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 he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={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},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var we=i({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 Ee(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Oe(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}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var De=null,Se=null,ke=null;function Ae(e){if(e=Jr(e)){if("function"!==typeof De)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),De(e.stateNode,e.type,t))}}function Te(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Me(e,t){return e(t)}function je(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Fe=Me,Re=!1,Le=!1;function ze(){null===Se&&null===ke||(Ie(),Pe())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ne=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(ol){Ne=!1}function Ve(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var He=!1,We=null,Ge=!1,qe=null,$e={onError:function(e){He=!0,We=e}};function Ye(e,t,n,r,i,o,a,s,u){He=!1,We=null,Ve.apply($e,arguments)}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(Ze(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ke(i),e;if(o===r)return Ke(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(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 Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,ut=null,lt=new Map,ct=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function dt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=dt(t,n,r,i,o),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Kr(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&>(at)&&(at=null),null!==st&>(st)&&(st=null),null!==ut&>(ut)&&(ut=null),lt.forEach(yt),ct.forEach(yt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function xt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==st&&_t(st,e),null!==ut&&_t(ut,e),lt.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},Ot={},Ct={};function Dt(e){if(Ot[e])return Ot[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return Ot[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var St=Dt("animationend"),kt=Dt("animationiteration"),At=Dt("animationstart"),Tt=Dt("transitionend"),Pt=new Map,Mt=new Map,jt=["abort","abort",St,"animationEnd",kt,"animationIteration",At,"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 It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Mt.set(r,t),Pt.set(r,i),l(i,[r])}}(0,o.unstable_now)();var Ft=8;function Rt(e){if(0!==(1&e))return Ft=15,1;if(0!==(2&e))return Ft=14,2;if(0!==(4&e))return Ft=13,4;var t=24&e;return 0!==t?(Ft=12,t):0!==(32&e)?(Ft=11,32):0!==(t=192&e)?(Ft=10,t):0!==(256&e)?(Ft=9,256):0!==(t=3584&e)?(Ft=8,t):0!==(4096&e)?(Ft=7,4096):0!==(t=4186112&e)?(Ft=6,t):0!==(t=62914560&e)?(Ft=5,t):67108864&e?(Ft=4,67108864):0!==(134217728&e)?(Ft=3,134217728):0!==(t=805306368&e)?(Ft=2,t):0!==(1073741824&e)?(Ft=1,1073741824):(Ft=8,e)}function Lt(e,t){var n=e.pendingLanes;if(0===n)return Ft=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Ft=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Rt(u),i=Ft):0!==(s&=o)&&(r=Rt(s),i=Ft)}else 0!==(o=n&~a)?(r=Rt(o),i=Ft):0!==s&&(r=Rt(s),i=Ft);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Rt(t),i<=Ft)return t;Ft=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Nt(24&~t))?Bt(10,t):e;case 10:return 0===(e=Nt(192&~t))?Bt(8,t):e;case 8:return 0===(e=Nt(3584&~t))&&(0===(e=Nt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Nt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Nt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Gt|0)|0},Wt=Math.log,Gt=Math.LN2;var qt=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Yt=!0;function Zt(e,t,n,r){Re||Ie();var i=Kt,o=Re;Re=!0;try{je(i,e,t,n,r)}finally{(Re=o)||ze()}}function Xt(e,t,n,r){$t(qt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var i;if(Yt)if((i=0===(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=dt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<pt.indexOf(e))return e=dt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return ut=mt(ut,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return lt.set(o,mt(lt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Tr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Ce(r);if(null!==(i=Kr(i))){var o=Ze(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Xe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Tr(e,t,r,i,n),null}var Qt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,ln,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(fn),dn=i({},fn,{view:0,detail:0}),hn=sn(dn),mn=i({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),vn=sn(mn),gn=sn(i({},mn,{dataTransfer:0})),yn=sn(i({},dn,{relatedTarget:0})),bn=sn(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=sn(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=sn(i({},fn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={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"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function Dn(){return Cn}var Sn=sn(i({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),kn=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=sn(i({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dn})),Tn=sn(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=sn(i({},mn,{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:0,deltaMode:0})),Mn=[9,13,27,32],jn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Fn=f&&"TextEvent"in window&&!In,Rn=f&&(!jn||In&&8<In&&11>=In),Ln=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Vn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){Te(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,qn=null;function $n(e){Or(e,0)}function Yn(e){if(K(Qr(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Kn;if(f){var Jn="oninput"in document;if(!Jn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Jn="function"===typeof Qn.oninput}Kn=Jn}else Kn=!1;Xn=Kn&&(!document.documentMode||9<document.documentMode)}function er(){Gn&&(Gn.detachEvent("onpropertychange",tr),qn=Gn=null)}function tr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];if(Wn(t,qn,e,Ce(e)),e=$n,Re)e(t);else{Re=!0;try{Me(e,t)}finally{Re=!1,ze()}}}}function nr(e,t,n){"focusin"===e?(er(),qn=n,(Gn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function ir(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var ar="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},sr=Object.prototype.hasOwnProperty;function ur(e,t){if(ar(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(!sr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(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=lr(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function pr(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 dr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Mr(mr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur 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),It("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),It(jt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)Mt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wr=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,l){if(Ye.apply(this,arguments),He){if(!He)throw Error(a(198));var c=We;He=!1,We=null,Ge||(Ge=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Er(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Er(i,s,l),o=u}}}if(Ge)throw e=qe,Ge=!1,qe=null,e}function Cr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Ar(t,e,2,!1),n.add(r))}var Dr="_reactListening"+Math.random().toString(36).slice(2);function Sr(e){e[Dr]||(e[Dr]=!0,s.forEach((function(t){wr.has(t)||kr(t,!1,e,null),kr(t,!0,e,null)})))}function kr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&wr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Ar(o,e,i,t),a.add(s))}function Ar(e,t,n,r){var i=Mt.get(t);switch(void 0===i?2:i){case 0:i=Zt;break;case 1:i=Xt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Tr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Kr(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Le)return e(t,n);Le=!0;try{Fe(e,t,n)}finally{Le=!1,ze()}}((function(){var r=o,i=Ce(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var u=pn,l=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Sn;break;case"focusin":l="focus",u=yn;break;case"focusout":l="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case St:case kt:case At:u=bn;break;case Tt:u=Tn;break;case"scroll":u=hn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=kn}var c=0!==(4&t),f=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&(null!=(m=Be(h,p))&&c.push(Pr(h,m,d)))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!Kr(l)&&!l[Zr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Kr(l):null)&&(l!==(f=Ze(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=vn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==u?s:Qr(u),d=null==l?s:Qr(l),(s=new c(m,h+"leave",u,n,i)).target=f,s.relatedTarget=d,m=null,Kr(i)===r&&((c=new c(p,h+"enter",l,n,i)).target=d,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(p=l,h=0,d=c=u;d;d=jr(d))h++;for(d=0,m=p;m;m=jr(m))d++;for(;0<h-d;)c=jr(c),h--;for(;0<d-h;)p=jr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=jr(c),p=jr(p)}c=null}else c=null;null!==u&&Ir(a,s,u,c,!1),null!==l&&null!==f&&Ir(a,f,l,c,!0)}if("select"===(u=(s=r?Qr(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Zn;else if(Hn(s))if(Xn)v=or;else{v=rr;var g=nr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Wn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?Qr(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(a,n,i);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":yr(a,n,i)}var y;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=nn()):(en="value"in(Qt=i)?Qt.value:Qt.textContent,Un=!0)),0<(g=Mr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Nn(n))&&(b.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Nn(t);case"keypress":return 32!==t.which?null:(zn=!0,Ln);case"textInput":return(e=t.data)===Ln&&zn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!jn&&Bn(e,t)?(e=nn(),tn=en=Qt=null,Un=!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 Rn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Or(a,t)}))}function Pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Be(e,n))&&r.unshift(Pr(e,o,i)),null!=(o=Be(e,t))&&r.push(Pr(e,o,i))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Be(n,o))&&a.unshift(Pr(n,u,s)):i||null!=(u=Be(n,o))&&a.push(Pr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var Rr=null,Lr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Br(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 Nr="function"===typeof setTimeout?setTimeout:void 0,Ur="function"===typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0;var qr=Math.random().toString(36).slice(2),$r="__reactFiber$"+qr,Yr="__reactProps$"+qr,Zr="__reactContainer$"+qr,Xr="__reactEvents$"+qr;function Kr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[$r])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[$r]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Qr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Yr]||null}function ti(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var si={},ui=ii(si),li=ii(!1),ci=si;function fi(e,t){var n=e.type.contextTypes;if(!n)return si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function di(){oi(li),oi(ui)}function hi(e,t,n){if(ui.current!==si)throw Error(a(168));ai(ui,t),ai(li,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,$(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||si,ci=ui.current,ai(ui,e),ai(li,li.current),!0}function gi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,oi(li),oi(ui),ai(ui,e)):oi(li),ai(li,n)}var yi=null,bi=null,_i=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,wi=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Ci=o.unstable_now,Di=o.unstable_getCurrentPriorityLevel,Si=o.unstable_ImmediatePriority,ki=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Ti=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,Mi={},ji=void 0!==Oi?Oi:function(){},Ii=null,Fi=null,Ri=!1,Li=Ci(),zi=1e4>Li?Ci:function(){return Ci()-Li};function Bi(){switch(Di()){case Si:return 99;case ki:return 98;case Ai:return 97;case Ti:return 96;case Pi:return 95;default:throw Error(a(332))}}function Ni(e){switch(e){case 99:return Si;case 98:return ki;case 97:return Ai;case 96:return Ti;case 95:return Pi;default:throw Error(a(332))}}function Ui(e,t){return e=Ni(e),_i(e,t)}function Vi(e,t,n){return e=Ni(e),xi(e,t,n)}function Hi(){if(null!==Fi){var e=Fi;Fi=null,wi(e)}Wi()}function Wi(){if(!Ri&&null!==Ii){Ri=!0;var e=0;try{var t=Ii;Ui(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(n){throw null!==Ii&&(Ii=Ii.slice(e+1)),xi(Si,Hi),n}finally{Ri=!1}}}var Gi=x.ReactCurrentBatchConfig;function qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $i=ii(null),Yi=null,Zi=null,Xi=null;function Ki(){Xi=Zi=Yi=null}function Ji(e){var t=$i.current;oi($i),e.type._context._currentValue=t}function Qi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Yi=e,Xi=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function to(e,t){if(Xi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Xi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Yi)throw Error(a(308));Zi=t,Yi.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function so(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==s&&(null===p?f.firstBaseUpdate=c:p.next=c,f.lastBaseUpdate=l)}}if(null!==a){for(p=o.baseState,s=0,f=c=l=null;;){u=a.lane;var d=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(u=t,d=n,m.tag){case 1:if("function"===typeof(h=m.payload)){p=h.call(d,p,u);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(u="function"===typeof(h=m.payload)?h.call(d,p,u):h)||void 0===u)break e;p=i({},p,u);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else d={eventTime:d,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=d,l=p):f=f.next=d,s|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(l=p),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Is|=s,e.lanes=s,e.memoizedState=p}}function lo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ou(),i=au(e),o=oo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),ao(e,o),su(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ou(),i=au(e),o=oo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),ao(e,o),su(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ou(),r=au(e),i=oo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),ao(e,i),su(e,r,n)}};function ho(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function mo(e,t,n){var r=!1,i=si,o=t.contextType;return"object"===typeof o&&null!==o?o=to(o):(i=pi(t)?ci:ui.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?fi(e,i):si),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(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&&po.enqueueReplaceState(t,t.state,null)}function go(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,ro(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=to(o):(o=pi(t)?ci:ui.current,i.context=fi(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var yo=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===co&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xo(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.flags=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 i(e,t){return(e=Bu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,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=Wu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Uu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case E:return(t=Wu(t,e.mode,n)).return=e,t}if(yo(t)||V(t))return(t=Uu(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?n.type===O?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(yo(n)||V(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===O?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(yo(r)||V(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function m(i,a,s,u){for(var l=null,c=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=d(i,f,s[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===c?l=g:c.sibling=g,c=g,f=v}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=p(i,s[m],u))&&(a=o(f,a,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(v=h(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,s,u,l){var c=V(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=s,v=s=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=d(i,m,y.value,l);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=p(i,y.value,l))&&(s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=u.next())null!==(y=h(m,i,v,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var l="object"===typeof o&&null!==o&&o.type===O&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case w:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(o.type===O){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=bo(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===O?((r=Uu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Nu(o.type,o.key,o.props,null,e.mode,u)).ref=bo(e,r,o),u.return=e,e=u)}return s(e);case E:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Hu(o,e.mode,u)).return=e,e=r),s(e);if(yo(o))return m(e,r,o,u);if(V(o))return v(e,r,o,u);if(c&&_o(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var wo=xo(!0),Eo=xo(!1),Oo={},Co=ii(Oo),Do=ii(Oo),So=ii(Oo);function ko(e){if(e===Oo)throw Error(a(174));return e}function Ao(e,t){switch(ai(So,t),ai(Do,e),ai(Co,Oo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(Co),ai(Co,t)}function To(){oi(Co),oi(Do),oi(So)}function Po(e){ko(So.current);var t=ko(Co.current),n=he(t,e.type);t!==n&&(ai(Do,e),ai(Co,n))}function Mo(e){Do.current===e&&(oi(Co),oi(Do))}var jo=ii(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))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}var Fo=null,Ro=null,Lo=!1;function zo(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function No(e){if(Lo){var t=Ro;if(t){var n=t;if(!Bo(e,t)){if(!(t=Hr(n.nextSibling))||!Bo(e,t))return e.flags=-1025&e.flags|2,Lo=!1,void(Fo=e);zo(Fo,n)}Fo=e,Ro=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Lo=!1,Fo=e}}function Uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fo=e}function Vo(e){if(e!==Fo)return!1;if(!Lo)return Uo(e),Lo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=Ro;t;)zo(e,t),t=Hr(t.nextSibling);if(Uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ro=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ro=null}}else Ro=Fo?Hr(e.stateNode.nextSibling):null;return!0}function Ho(){Ro=Fo=null,Lo=!1}var Wo=[];function Go(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var qo=x.ReactCurrentDispatcher,$o=x.ReactCurrentBatchConfig,Yo=0,Zo=null,Xo=null,Ko=null,Jo=!1,Qo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Yo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qo.current=null===e||null===e.memoizedState?ka:Aa,e=n(r,i),Qo){o=0;do{if(Qo=!1,!(25>o))throw Error(a(301));o+=1,Ko=Xo=null,t.updateQueue=null,qo.current=Ta,e=n(r,i)}while(Qo)}if(qo.current=Sa,t=null!==Xo&&null!==Xo.next,Yo=0,Ko=Xo=Zo=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ko?Zo.memoizedState=Ko=e:Ko=Ko.next=e,Ko}function ia(){if(null===Xo){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=Xo.next;var t=null===Ko?Zo.memoizedState:Ko.next;if(null!==t)Ko=t,Xo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Xo=e).memoizedState,baseState:Xo.baseState,baseQueue:Xo.baseQueue,queue:Xo.queue,next:null},null===Ko?Zo.memoizedState=Ko=e:Ko=Ko.next=e}return Ko}function oa(e,t){return"function"===typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Xo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.lane;if((Yo&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,Zo.lanes|=c,Is|=c}l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,ar(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ar(o,t.memoizedState)||(Ma=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Yo&e)===e)&&(t._workInProgressVersionPrimary=r,Wo.push(t))),e)return n(t._source);throw Wo.push(t),Error(a(350))}function la(e,t,n,r){var i=Ds;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),u=qo.current,l=u.useState((function(){return ua(i,t,n)})),c=l[1],f=l[0];l=Ko;var p=e.memoizedState,d=p.refs,h=d.getSnapshot,m=p.source;p=p.subscribe;var v=Zo;return e.memoizedState={refs:d,source:t,subscribe:r},u.useEffect((function(){d.getSnapshot=n,d.setSnapshot=c;var e=o(t._source);if(!ar(s,e)){e=n(t._source),ar(f,e)||(c(e),e=au(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var u=31-Ht(a),l=1<<u;r[u]|=e,a&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=au(v);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=c=Da.bind(null,Zo,e),l.queue=e,l.baseQueue=null,f=ua(i,t,n),l.memoizedState=l.baseState=f),f}function ca(e,t,n){return la(ia(),e,t,n)}function fa(e){var t=ra();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Da.bind(null,Zo,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function da(e){return e={current:e},ra().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();Zo.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Xo){var a=Xo.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void pa(t,n,o,r)}Zo.flags|=e,i.memoizedState=pa(1|t,n,o,r)}function ga(e,t){return ma(516,4,e,t)}function ya(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(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 xa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function wa(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=Bi();Ui(98>n?98:n,(function(){e(!0)})),Ui(97<n?97:n,(function(){var n=$o.transition;$o.transition=1;try{e(!1),t()}finally{$o.transition=n}}))}function Da(e,t,n){var r=ou(),i=au(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Zo||null!==a&&a===Zo)Qo=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(o.eagerReducer=a,o.eagerState=u,ar(u,s))return}catch(l){}su(e,i,r)}}var Sa={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},ka={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:ga,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Da.bind(null,Zo,e),[r.memoizedState,e]},useRef:da,useState:fa,useDebugValue:wa,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ga((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return da(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},la(r,e,t,n)},useOpaqueIdentifier:function(){if(Lo){var e=!1,t=function(e){return{$$typeof:F,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0===(2&Zo.mode)&&(Zo.flags|=516,pa(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},Aa={readContext:to,useCallback:Ea,useContext:to,useEffect:ya,useImperativeHandle:xa,useLayoutEffect:ba,useMemo:Oa,useReducer:aa,useRef:ha,useState:function(){return aa(oa)},useDebugValue:wa,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ya((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},Ta={readContext:to,useCallback:Ea,useContext:to,useEffect:ya,useImperativeHandle:xa,useLayoutEffect:ba,useMemo:Oa,useReducer:sa,useRef:ha,useState:function(){return sa(oa)},useDebugValue:wa,useDeferredValue:function(e){var t=sa(oa),n=t[0],r=t[1];return ya((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=sa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return sa(oa)[0]},unstable_isNewReconciler:!1},Pa=x.ReactCurrentOwner,Ma=!1;function ja(e,t,n,r){t.child=null===e?Eo(t,null,n,r):wo(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Fa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||zu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ra(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)?es(e,t,o):(t.flags|=1,(e=Bu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ra(e,t,n,r,i,o){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0===(o&i))return t.lanes=e.lanes,es(e,t,o);0!==(16384&e.flags)&&(Ma=!0)}return Ba(e,t,n,r,o)}function La(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},mu(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},mu(t,e),null;t.memoizedState={baseLanes:0},mu(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,mu(t,r);return ja(e,t,i,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ba(e,t,n,r,i){var o=pi(n)?ci:ui.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Na(e,t,n,r,i){if(pi(n)){var o=!0;vi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),go(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=to(l):l=fi(t,l=pi(n)?ci:ui.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&vo(t,a,r,l),no=!1;var p=t.memoizedState;a.state=p,uo(t,r,a,i),u=t.memoizedState,s!==r||p!==u||li.current||no?("function"===typeof c&&(fo(t,n,c,r),u=t.memoizedState),(s=no||ho(t,n,s,r,p,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:qi(t.type,s),a.props=l,f=t.pendingProps,p=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=to(u):u=fi(t,u=pi(n)?ci:ui.current);var d=n.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||p!==u)&&vo(t,a,r,u),no=!1,p=t.memoizedState,a.state=p,uo(t,r,a,i);var h=t.memoizedState;s!==f||p!==h||li.current||no?("function"===typeof d&&(fo(t,n,d,r),h=t.memoizedState),(l=no||ho(t,n,l,r,p,h,u))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){za(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&gi(t,n,!1),es(e,t,o);r=t.stateNode,Pa.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):ja(e,t,s,o),t.memoizedState=r.state,i&&gi(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Ao(e,t.containerInfo)}var Ha,Wa,Ga,qa={dehydrated:null,retryLane:0};function $a(e,t,n){var r,i=t.pendingProps,o=jo.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(jo,1&o),null===e?(void 0!==i.fallback&&No(t),e=i.children,o=i.fallback,a?(e=Ya(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,e):"number"===typeof i.unstable_expectedLoadTime?(e=Ya(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,t.lanes=33554432,e):((n=Vu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Xa(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=qa,i):(n=Za(e,t,i.children,n),t.memoizedState=null,n))}function Ya(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Vu(t,i,0,null),n=Uu(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Za(e,t,n,r){var i=e.child;return e=i.sibling,n=Bu(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xa(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Bu(a,s),null!==e?r=Bu(e,r):(r=Uu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ka(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Qi(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Qa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!==(2&(r=jo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ka(e,n);else if(19===e.tag)Ka(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(ai(jo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Is|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Bu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Bu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Lo)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 ns(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 pi(t.type)&&di(),null;case 3:return To(),oi(li),oi(ui),Go(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Vo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mo(t);var o=ko(So.current);if(n=t.type,null!==e&&null!=t.stateNode)Wa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=ko(Co.current),Vo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[$r]=t,r[Yr]=s,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<xr.length;e++)Cr(xr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,s),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Cr("invalid",r);break;case"textarea":ue(r,s),Cr("invalid",r)}for(var l in Ee(n,s),e=null,s)s.hasOwnProperty(l)&&(o=s[l],"children"===l?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):u.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&Cr("scroll",r));switch(n){case"input":X(r),re(r,s,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[$r]=t,e[Yr]=r,Ha(e,t),t.stateNode=e,l=Oe(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),o=r;break;case"iframe":case"object":case"embed":Cr("load",e),o=r;break;case"video":case"audio":for(o=0;o<xr.length;o++)Cr(xr[o],e);o=r;break;case"source":Cr("error",e),o=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),o=r;break;case"details":Cr("toggle",e),o=r;break;case"input":ee(e,r),o=Q(e,r),Cr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":ue(e,r),o=se(e,r),Cr("invalid",e);break;default:o=r}Ee(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?xe(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===s?"string"===typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"===typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Cr("scroll",e):null!=f&&_(e,s,f,l))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Fr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=ko(So.current),ko(Co.current),Vo(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return oi(jo),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Vo(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&jo.current)?0===Ps&&(Ps=3):(0!==Ps&&3!==Ps||(Ps=4),null===Ds||0===(134217727&Is)&&0===(134217727&Fs)||fu(Ds,ks))),(r||n)&&(t.flags|=4),null);case 4:return To(),null===e&&Sr(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return pi(t.type)&&di(),null;case 19:if(oi(jo),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(l=r.rendering))if(s)ts(r,!1);else{if(0!==Ps||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Io(e))){for(t.flags|=64,ts(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Bs&&(t.flags|=64,s=!0,ts(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Io(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Lo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Bs&&1073741824!==n&&(t.flags|=64,s=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=jo.current,ai(jo,s?1&t|2:1&t),n):null;case 23:case 24:return vu(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rs(e){switch(e.tag){case 1:pi(e.type)&&di();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(To(),oi(li),oi(ui),Go(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return oi(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(jo),null;case 4:return To(),null;case 10:return Ji(e),null;case 23:case 24:return vu(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function os(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ha=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}},Wa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ko(Co.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in Ee(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var l=o[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Cr("scroll",e),s||l===c||(s=[])):"object"===typeof c&&null!==c&&c.$$typeof===F?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var as="function"===typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Ws=r),os(0,t)},n}function us(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return os(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this),os(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"===typeof WeakSet?WeakSet:Set;function cs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){ju(e,n)}else t.current=null}function fs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Tu(n,e),Au(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&lo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}lo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4: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&&xt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ds(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hs(e,t){if(bi&&"function"===typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Tu(t,n);else{r=t;try{i()}catch(o){ju(r,o)}}n=n.next}while(n!==e)}break;case 1:if(cs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){ju(t,o)}break;case 5:cs(t);break;case 4:ys(e,t)}}function ms(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function gs(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(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.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Fr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function ys(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,l=u;;)if(hs(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Yr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Oe(e,i),t=Oe(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?xe(n,u):"dangerouslySetInnerHTML"===s?ve(n,u):"children"===s?ge(n,u):_(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(zs=zi(),ds(t.child,!0)),void _s(t);case 19:return void _s(t);case 17:return;case 23:case 24:return void ds(t,null!==t.memoizedState)}throw Error(a(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Fu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var ws=Math.ceil,Es=x.ReactCurrentDispatcher,Os=x.ReactCurrentOwner,Cs=0,Ds=null,Ss=null,ks=0,As=0,Ts=ii(0),Ps=0,Ms=null,js=0,Is=0,Fs=0,Rs=0,Ls=null,zs=0,Bs=1/0;function Ns(){Bs=zi()+500}var Us,Vs=null,Hs=!1,Ws=null,Gs=null,qs=!1,$s=null,Ys=90,Zs=[],Xs=[],Ks=null,Js=0,Qs=null,eu=-1,tu=0,nu=0,ru=null,iu=!1;function ou(){return 0!==(48&Cs)?zi():-1!==eu?eu:eu=zi()}function au(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Bi()?1:2;if(0===tu&&(tu=js),0!==Gi.transition){0!==nu&&(nu=null!==Ls?Ls.pendingLanes:0),e=tu;var t=4186112&~nu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Bi(),0!==(4&Cs)&&98===e?e=Bt(12,tu):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tu),e}function su(e,t,n){if(50<Js)throw Js=0,Qs=null,Error(a(185));if(null===(e=uu(e,t)))return null;Vt(e,t,n),e===Ds&&(Fs|=t,4===Ps&&fu(e,ks));var r=Bi();1===t?0!==(8&Cs)&&0===(48&Cs)?pu(e):(lu(e,n),0===Cs&&(Ns(),Hi())):(0===(4&Cs)||98!==r&&99!==r||(null===Ks?Ks=new Set([e]):Ks.add(e)),lu(e,n)),Ls=e}function uu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function lu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Ht(s),l=1<<u,c=o[u];if(-1===c){if(0===(l&r)||0!==(l&i)){c=t,Rt(l);var f=Ft;o[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);s&=~l}if(r=Lt(e,e===Ds?ks:0),t=Ft,0===r)null!==n&&(n!==Mi&&wi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&wi(n)}15===t?(n=pu.bind(null,e),null===Ii?(Ii=[n],Fi=xi(Si,Wi)):Ii.push(n),n=Mi):14===t?n=Vi(99,pu.bind(null,e)):n=Vi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cu(e){if(eu=-1,nu=tu=0,0!==(48&Cs))throw Error(a(327));var t=e.callbackNode;if(ku()&&e.callbackNode!==t)return null;var n=Lt(e,e===Ds?ks:0);if(0===n)return null;var r=n,i=Cs;Cs|=16;var o=bu();for(Ds===e&&ks===r||(Ns(),gu(e,r));;)try{wu();break}catch(u){yu(e,u)}if(Ki(),Es.current=o,Cs=i,null!==Ss?r=0:(Ds=null,ks=0,r=Ps),0!==(js&Fs))gu(e,0);else if(0!==r){if(2===r&&(Cs|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=zt(e))&&(r=_u(e,n))),1===r)throw t=Ms,gu(e,0),fu(e,n),lu(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Cu(e);break;case 3:if(fu(e,n),(62914560&n)===n&&10<(r=zs+500-zi())){if(0!==Lt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ou(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Nr(Cu.bind(null,e),r);break}Cu(e);break;case 4:if(fu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ws(n/1960))-n)){e.timeoutHandle=Nr(Cu.bind(null,e),n);break}Cu(e);break;case 5:Cu(e);break;default:throw Error(a(329))}}return lu(e,zi()),e.callbackNode===t?cu.bind(null,e):null}function fu(e,t){for(t&=~Rs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function pu(e){if(0!==(48&Cs))throw Error(a(327));if(ku(),e===Ds&&0!==(e.expiredLanes&ks)){var t=ks,n=_u(e,t);0!==(js&Fs)&&(n=_u(e,t=Lt(e,t)))}else n=_u(e,t=Lt(e,0));if(0!==e.tag&&2===n&&(Cs|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=zt(e))&&(n=_u(e,t))),1===n)throw n=Ms,gu(e,0),fu(e,t),lu(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cu(e),lu(e,zi()),null}function du(e,t){var n=Cs;Cs|=1;try{return e(t)}finally{0===(Cs=n)&&(Ns(),Hi())}}function hu(e,t){var n=Cs;Cs&=-2,Cs|=8;try{return e(t)}finally{0===(Cs=n)&&(Ns(),Hi())}}function mu(e,t){ai(Ts,As),As|=t,js|=t}function vu(){As=Ts.current,oi(Ts)}function gu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ur(n)),null!==Ss)for(n=Ss.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&di();break;case 3:To(),oi(li),oi(ui),Go();break;case 5:Mo(r);break;case 4:To();break;case 13:case 19:oi(jo);break;case 10:Ji(r);break;case 23:case 24:vu()}n=n.return}Ds=e,Ss=Bu(e.current,null),ks=As=js=t,Ps=0,Ms=null,Rs=Fs=Is=0}function yu(e,t){for(;;){var n=Ss;try{if(Ki(),qo.current=Sa,Jo){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Yo=0,Ko=Xo=Zo=null,Qo=!1,Os.current=null,null===n||null===n.return){Ps=1,Ms=t,Ss=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=ks,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var l=u;if(0===(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!==(1&jo.current),p=a;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var m=p.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(d){var v=p.updateQueue;if(null===v){var g=new Set;g.add(l),p.updateQueue=g}else v.add(l);if(0===(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oo(-1,1);y.tag=2,ao(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new as,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var _=Iu.bind(null,o,l,s);l.then(_,_)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);u=Error(($(s.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.")}5!==Ps&&(Ps=2),u=is(u,s),p=a;do{switch(p.tag){case 3:o=u,p.flags|=4096,t&=-t,p.lanes|=t,so(p,ss(0,o,t));break e;case 1:o=u;var x=p.type,w=p.stateNode;if(0===(64&p.flags)&&("function"===typeof x.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Gs||!Gs.has(w)))){p.flags|=4096,t&=-t,p.lanes|=t,so(p,us(p,o,t));break e}}p=p.return}while(null!==p)}Ou(n)}catch(E){t=E,Ss===n&&null!==n&&(Ss=n=n.return);continue}break}}function bu(){var e=Es.current;return Es.current=Sa,null===e?Sa:e}function _u(e,t){var n=Cs;Cs|=16;var r=bu();for(Ds===e&&ks===t||gu(e,t);;)try{xu();break}catch(i){yu(e,i)}if(Ki(),Cs=n,Es.current=r,null!==Ss)throw Error(a(261));return Ds=null,ks=0,Ps}function xu(){for(;null!==Ss;)Eu(Ss)}function wu(){for(;null!==Ss&&!Ei();)Eu(Ss)}function Eu(e){var t=Us(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?Ou(e):Ss=t,Os.current=null}function Ou(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ns(n,t,As)))return void(Ss=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&As)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rs(t)))return n.flags&=2047,void(Ss=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ss=t);Ss=t=e}while(null!==t);0===Ps&&(Ps=5)}function Cu(e){var t=Bi();return Ui(99,Du.bind(null,e,t)),null}function Du(e,t){do{ku()}while(null!==$s);if(0!==(48&Cs))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<o;){var l=31-Ht(o),c=1<<l;i[l]=0,s[l]=-1,u[l]=-1,o&=~c}if(null!==Ks&&0===(24&r)&&Ks.has(e)&&Ks.delete(e),e===Ds&&(Ss=Ds=null,ks=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Cs,Cs|=32,Os.current=null,Rr=Yt,pr(s=fr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(D){u=null;break e}var f=0,p=-1,d=-1,h=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==u||0!==o&&3!==v.nodeType||(p=f+o),v!==l||0!==c&&3!==v.nodeType||(d=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===u&&++h===o&&(p=f),g===l&&++m===c&&(d=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}u=-1===p||-1===d?null:{start:p,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;Lr={focusedElem:s,selectionRange:u},Yt=!1,ru=null,iu=!1,Vs=r;do{try{Su()}catch(D){if(null===Vs)throw Error(a(330));ju(Vs,D),Vs=Vs.nextEffect}}while(null!==Vs);ru=null,Vs=r;do{try{for(s=e;null!==Vs;){var b=Vs.flags;if(16&b&&ge(Vs.stateNode,""),128&b){var _=Vs.alternate;if(null!==_){var x=_.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:gs(Vs),Vs.flags&=-3;break;case 6:gs(Vs),Vs.flags&=-3,bs(Vs.alternate,Vs);break;case 1024:Vs.flags&=-1025;break;case 1028:Vs.flags&=-1025,bs(Vs.alternate,Vs);break;case 4:bs(Vs.alternate,Vs);break;case 8:ys(s,u=Vs);var w=u.alternate;ms(u),null!==w&&ms(w)}Vs=Vs.nextEffect}}catch(D){if(null===Vs)throw Error(a(330));ju(Vs,D),Vs=Vs.nextEffect}}while(null!==Vs);if(x=Lr,_=fr(),b=x.focusedElem,s=x.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==s&&pr(b)&&(_=s.start,void 0===(x=s.end)&&(x=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(x,b.value.length)):(x=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(x=x.getSelection(),u=b.textContent.length,w=Math.min(s.start,u),s=void 0===s.end?w:Math.min(s.end,u),!x.extend&&w>s&&(u=s,s=w,w=u),u=cr(b,w),o=cr(b,s),u&&o&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&((_=_.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),w>s?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_))))),_=[];for(x=b;x=x.parentNode;)1===x.nodeType&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<_.length;b++)(x=_[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Yt=!!Rr,Lr=Rr=null,e.current=n,Vs=r;do{try{for(b=e;null!==Vs;){var E=Vs.flags;if(36&E&&ps(b,Vs.alternate,Vs),128&E){_=void 0;var O=Vs.ref;if(null!==O){var C=Vs.stateNode;switch(Vs.tag){case 5:_=C;break;default:_=C}"function"===typeof O?O(_):O.current=_}}Vs=Vs.nextEffect}}catch(D){if(null===Vs)throw Error(a(330));ju(Vs,D),Vs=Vs.nextEffect}}while(null!==Vs);Vs=null,ji(),Cs=i}else e.current=n;if(qs)qs=!1,$s=e,Ys=t;else for(Vs=r;null!==Vs;)t=Vs.nextEffect,Vs.nextEffect=null,8&Vs.flags&&((E=Vs).sibling=null,E.stateNode=null),Vs=t;if(0===(r=e.pendingLanes)&&(Gs=null),1===r?e===Qs?Js++:(Js=0,Qs=e):Js=0,n=n.stateNode,bi&&"function"===typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64===(64&n.current.flags))}catch(D){}if(lu(e,zi()),Hs)throw Hs=!1,e=Ws,Ws=null,e;return 0!==(8&Cs)||Hi(),null}function Su(){for(;null!==Vs;){var e=Vs.alternate;iu||null===ru||(0!==(8&Vs.flags)?Qe(Vs,ru)&&(iu=!0):13===Vs.tag&&xs(e,Vs)&&Qe(Vs,ru)&&(iu=!0));var t=Vs.flags;0!==(256&t)&&fs(e,Vs),0===(512&t)||qs||(qs=!0,Vi(97,(function(){return ku(),null}))),Vs=Vs.nextEffect}}function ku(){if(90!==Ys){var e=97<Ys?97:Ys;return Ys=90,Ui(e,Pu)}return!1}function Au(e,t){Zs.push(t,e),qs||(qs=!0,Vi(97,(function(){return ku(),null})))}function Tu(e,t){Xs.push(t,e),qs||(qs=!0,Vi(97,(function(){return ku(),null})))}function Pu(){if(null===$s)return!1;var e=$s;if($s=null,0!==(48&Cs))throw Error(a(331));var t=Cs;Cs|=32;var n=Xs;Xs=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(l){if(null===o)throw Error(a(330));ju(o,l)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var u=i.create;i.destroy=u()}catch(l){if(null===o)throw Error(a(330));ju(o,l)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Cs=t,Hi(),!0}function Mu(e,t,n){ao(e,t=ss(0,t=is(n,t),1)),t=ou(),null!==(e=uu(e,1))&&(Vt(e,1,t),lu(e,t))}function ju(e,t){if(3===e.tag)Mu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Mu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){var i=us(n,e=is(t,e),1);if(ao(n,i),i=ou(),null!==(n=uu(n,1)))Vt(n,1,i),lu(n,i);else if("function"===typeof r.componentDidCatch&&(null===Gs||!Gs.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Iu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ou(),e.pingedLanes|=e.suspendedLanes&n,Ds===e&&(ks&n)===n&&(4===Ps||3===Ps&&(62914560&ks)===ks&&500>zi()-zs?gu(e,0):Rs|=n),lu(e,t)}function Fu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Bi()?1:2:(0===tu&&(tu=js),0===(t=Nt(62914560&~tu))&&(t=4194304))),n=ou(),null!==(e=uu(e,t))&&(Vt(e,t,n),lu(e,n))}function Ru(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Ru(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bu(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)zu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case O:return Uu(n.children,i,o,t);case R:s=8,i|=16;break;case C:s=8,i|=1;break;case D:return(e=Lu(12,n,t,8|i)).elementType=D,e.type=D,e.lanes=o,e;case T:return(e=Lu(13,n,t,i)).type=T,e.elementType=T,e.lanes=o,e;case P:return(e=Lu(19,n,t,i)).elementType=P,e.lanes=o,e;case L:return Vu(n,i,o,t);case z:return(e=Lu(24,n,t,i)).elementType=z,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case k:s=9;break e;case A:s=11;break e;case M:s=14;break e;case j:s=16,r=null;break e;case I:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Lu(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Uu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function Vu(e,t,n,r){return(e=Lu(23,e,r,t)).elementType=L,e.lanes=n,e}function Hu(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function Wu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function $u(e,t,n,r){var i=t.current,o=ou(),s=au(i);e:if(n){t:{if(Ze(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(pi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(pi(l)){n=mi(n,l,u);break e}}n=u}else n=si;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),su(i,s,o),s}function Yu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xu(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}function Ku(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gu(e,t,null!=n&&!0===n.hydrate),t=Lu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[Zr]=n.current,Sr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Yu(a);s.call(e)}}$u(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ku(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=Yu(a);u.call(e)}}hu((function(){$u(t,a,e,i)}))}return Yu(a)}function el(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(a(200));return qu(e,t,null,n)}Us=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||li.current)Ma=!0;else{if(0===(n&r)){switch(Ma=!1,t.tag){case 3:Va(t),Ho();break;case 5:Po(t);break;case 1:pi(t.type)&&vi(t);break;case 4:Ao(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?$a(e,t,n):(ai(jo,1&jo.current),null!==(t=es(e,t,n))?t.sibling:null);ai(jo,1&jo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return Qa(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,La(e,t,n)}return es(e,t,n)}Ma=0!==(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,ui.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&fo(t,r,s,e),i.updater=po,t.stateNode=i,i._reactInternals=t,go(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return zu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===M)return 14}return 2}(i),e=qi(i,e),o){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=Na(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Fa(null,t,i,qi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Ho(),t=es(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Ro=Hr(t.stateNode.containerInfo.firstChild),Fo=t,o=Lo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Wo.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Ho();t=t.child}return t;case 5:return Po(t),null===e&&No(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Br(r,i)?s=null:null!==o&&Br(r,o)&&(t.flags|=16),za(e,t),ja(e,t,s,n),t.child;case 6:return null===e&&No(t),null;case 13:return $a(e,t,n);case 4:return Ao(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(ai($i,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=ar(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!li.current){t=es(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===u.tag&&((c=oo(-1,n&-n)).tag=2,ao(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),Qi(u.return,n),l.lanes|=n;break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return o=qi(i=t.type,t.pendingProps),Fa(e,t,i,o=qi(i.type,o),r,n);case 15:return Ra(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pi(r)?(e=!0,vi(t)):e=!1,eo(t,n),mo(t,r,i),go(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return Qa(e,t,n);case 23:case 24:return La(e,t,n)}throw Error(a(156,t.tag))},Ku.prototype.render=function(e){$u(e,this._internalRoot,null,null)},Ku.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;$u(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(su(e,4,ou()),Xu(e,4))},tt=function(e){13===e.tag&&(su(e,67108864,ou()),Xu(e,67108864))},nt=function(e){if(13===e.tag){var t=ou(),n=au(e);su(e,n,t),Xu(e,n)}},rt=function(e,t){return t()},De=function(e,t,n){switch(t){case"input":if(ne(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 i=ei(r);if(!i)throw Error(a(90));K(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=du,je=function(e,t,n,r,i){var o=Cs;Cs|=4;try{return Ui(98,e.bind(null,t,n,r,i))}finally{0===(Cs=o)&&(Ns(),Hi())}},Ie=function(){0===(49&Cs)&&(function(){if(null!==Ks){var e=Ks;Ks=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,lu(e,zi())}))}Hi()}(),ku())},Fe=function(e,t){var n=Cs;Cs|=2;try{return e(t)}finally{0===(Cs=n)&&(Ns(),Hi())}};var tl={Events:[Jr,Qr,ei,Te,Pe,ku,{current:!1}]},nl={findFiberByHostInstance:Kr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},rl={bundleType:nl.bundleType,version:nl.version,rendererPackageName:nl.rendererPackageName,rendererConfig:nl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{yi=il.inject(rl),bi=il}catch(ol){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,t.createPortal=el,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Cs;if(0!==(48&n))return e(t);Cs|=1;try{if(e)return Ui(99,e.bind(null,t))}finally{Cs=n,Hi()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return Qu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return Qu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(hu((function(){Qu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=du,t.unstable_createPortal=function(e,t){return el(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Qu(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(419)},function(e,t,n){"use strict";var r,i,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,f=null,p=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(p,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=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://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+b;try{g(!0,e)?w.postMessage(null):(v=!1,g=null)}catch(n){throw w.postMessage(null),n}}else v=!1},r=function(e){g=e,v||(v=!0,w.postMessage(null))},i=function(e,n){y=d((function(){e(t.unstable_now())}),n)},o=function(){h(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<D(i,t)))break e;e[r]=t,e[n]=i,n=r}}function O(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>D(a,n))void 0!==u&&0>D(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>D(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function D(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],k=[],A=1,T=null,P=3,M=!1,j=!1,I=!1;function F(e){for(var t=O(k);null!==t;){if(null===t.callback)C(k);else{if(!(t.startTime<=e))break;C(k),t.sortIndex=t.expirationTime,E(S,t)}t=O(k)}}function R(e){if(I=!1,F(e),!j)if(null!==O(S))j=!0,r(L);else{var t=O(k);null!==t&&i(R,t.startTime-e)}}function L(e,n){j=!1,I&&(I=!1,o()),M=!0;var r=P;try{for(F(n),T=O(S);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=T.callback;if("function"===typeof a){T.callback=null,P=T.priorityLevel;var s=a(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?T.callback=s:T===O(S)&&C(S),F(n)}else C(S);T=O(S)}if(null!==T)var u=!0;else{var l=O(k);null!==l&&i(R,l.startTime-n),u=!1}return u}finally{T=null,P=r,M=!1}}var z=a;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(){j||M||(j=!0,r(L))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return O(S)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:A++,callback:n,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>s?(e.sortIndex=a,E(k,e),null===O(S)&&e===O(k)&&(I?o():I=!0,i(R,a-s))):(e.sortIndex=u,E(S,e),j||M||(j=!0,r(L))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},function(e,t,n){"use strict";var r=n(421);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function 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:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(423)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=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,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case v:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===_||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=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,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case v:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===_||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(D){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=u;var c={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(O([])));v&&v!==t&&n.call(v,i)&&(h=v);var g=d.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=d,s(g,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(g),s(g,a,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(428)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=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,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case v:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===_||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=60103,i=60106,o=60107,a=60108,s=60114,u=60109,l=60110,c=60112,f=60113,p=60120,d=60115,h=60116,m=60121,v=60122,g=60117,y=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),i=_("react.portal"),o=_("react.fragment"),a=_("react.strict_mode"),s=_("react.profiler"),u=_("react.provider"),l=_("react.context"),c=_("react.forward_ref"),f=_("react.suspense"),p=_("react.suspense_list"),d=_("react.memo"),h=_("react.lazy"),m=_("react.block"),v=_("react.server.block"),g=_("react.fundamental"),y=_("react.debug_trace_mode"),b=_("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case d:case u:return e;default:return t}}case i:return t}}}var w=u,E=r,O=c,C=o,D=h,S=d,k=i,A=s,T=a,P=f;t.ContextConsumer=l,t.ContextProvider=w,t.Element=E,t.ForwardRef=O,t.Fragment=C,t.Lazy=D,t.Memo=S,t.Portal=k,t.Profiler=A,t.StrictMode=T,t.Suspense=P,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===c},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===d},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===y||e===a||e===f||e===p||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===u||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===m||e[0]===v)},t.typeOf=x},function(e,t,n){},,function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(80);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(436),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(142),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(440),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(441);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(210);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(443),i=n(164),o=n(212);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(444),i=n(449),o=n(450),a=n(451),s=n(452);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(163);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(15),i=n(446),o=n(55),a=n(254),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},function(e,t,n){var r=n(447),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(80)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(163),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(163),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(165),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(165);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(165);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(165);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(166);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(166);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(166);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(166);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(142),i=n(213),o=n(26),a=n(125),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},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 i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i="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"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function s(){o(a)}function u(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return u}(this.refresh.bind(this),20)}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(){this.updateObservers_()&&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),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)},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;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},c=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=g(0,0,0,0);function p(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=c(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),u=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=d(r,"left","right")+o),Math.round(u+a)!==n&&(u-=d(r,"top","bottom")+a)),!function(e){return e===c(e).document.documentElement}(e)){var l=Math.round(s+o)-t,h=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(h)&&(u-=h)}return g(i.left,i.top,s,u)}var m="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof c(e).SVGGraphicsElement}:function(e){return e instanceof c(e).SVGElement&&"function"===typeof e.getBBox};function v(e){return r?m(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):h(e):f}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(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}(),b=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return l(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);l(this,{target:e,contentRect:n})},_=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 c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(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 c(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 b(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}(),x="undefined"!==typeof WeakMap?new WeakMap:new n,w=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 _(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));var E="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:w;t.default=E}.call(this,n(72))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=s||u||Function("return this")(),c=Object.prototype.toString,f=Math.max,p=Math.min,d=function(){return l.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,a,s,u,l=0,c=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){return l=e,s=setTimeout(x,t),c?y(e):a}function _(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-l>=o}function x(){var e=d();if(_(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-u);return v?p(n,o-(e-l)):n}(e))}function w(e){return s=void 0,g&&r?y(e):(r=i=void 0,a)}function E(){var e=d(),n=_(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return b(u);if(v)return s=setTimeout(x,t),y(u)}return void 0===s&&(s=setTimeout(x,t)),a}return t=m(t)||0,h(n)&&(c=!!n.leading,o=(v="maxWait"in n)?f(m(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},E.flush=function(){return void 0===s?a:w(d())},E}}).call(this,n(72))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=s||u||Function("return this")(),c=Object.prototype.toString,f=Math.max,p=Math.min,d=function(){return l.Date.now()};function h(e,t,n){var r,i,o,a,s,u,l=0,c=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){return l=e,s=setTimeout(x,t),c?y(e):a}function _(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-l>=o}function x(){var e=d();if(_(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-u);return h?p(n,o-(e-l)):n}(e))}function w(e){return s=void 0,g&&r?y(e):(r=i=void 0,a)}function E(){var e=d(),n=_(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return b(u);if(h)return s=setTimeout(x,t),y(u)}return void 0===s&&(s=setTimeout(x,t)),a}return t=v(t)||0,m(n)&&(c=!!n.leading,o=(h="maxWait"in n)?f(v(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},E.flush=function(){return void 0===s?a:w(d())},E}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),h(e,t,{leading:r,maxWait:t,trailing:i})}}).call(this,n(72))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i=1,o={},a=!1,s=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(c,0,e)},u.setImmediate=function(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 a={callback:e,args:t};return o[i]=a,r(i),i++},u.clearImmediate=l}function l(e){delete o[e]}function c(e){if(a)setTimeout(c,0,e);else{var t=o[e];if(t){a=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{l(e),a=!1}}}}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n(72),n(207))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},function(e,t,n){var r=n(214);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,i){return n=!!t(e,r,i)})),n}},function(e,t,n){var r=n(471)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},function(e,t,n){var r=n(473),i=n(215),o=n(26),a=n(258),s=n(216),u=n(259),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),f=!n&&!c&&a(e),p=!n&&!c&&!f&&u(e),d=n||c||f||p,h=d?r(e.length,String):[],m=h.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(98),i=n(99);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(98),i=n(217),o=n(99),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){(function(e){var r=n(251),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,n(206)(e))},function(e,t,n){var r=n(479),i=n(480),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(481)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(143);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){var r=n(484),i=n(506),o=n(269);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(261),i=n(218);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],f=e[c],p=l[1];if(u&&l[2]){if(void 0===f&&!(c in e))return!1}else{var d=new r;if(o)var h=o(f,p,c,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},function(e,t,n){var r=n(164);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(164),i=n(212),o=n(210);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(261),i=n(262),o=n(493),a=n(496),s=n(502),u=n(26),l=n(258),c=n(259),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,m){var v=u(e),g=u(t),y=v?"[object Array]":s(e),b=g?"[object Array]":s(t),_=(y="[object Arguments]"==y?f:y)==f,x=(b="[object Arguments]"==b?f:b)==f,w=y==b;if(w&&l(e)){if(!l(t))return!1;v=!0,_=!1}if(w&&!_)return m||(m=new r),v||c(e)?i(e,t,n,d,h,m):o(e,t,y,n,d,h,m);if(!(1&n)){var E=_&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(E||O){var C=E?e.value():e,D=O?t.value():t;return m||(m=new r),h(C,D,n,d,m)}}return!!w&&(m||(m=new r),a(e,t,n,d,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(142),i=n(494),o=n(211),a=n(262),s=n(495),u=n(219),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var v=a(d(e),d(t),r,l,f,p);return p.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t,n){var r=n(80).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(497),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var p=l[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=u;++f<c;){var g=e[p=l[f]],y=t[p];if(o)var b=u?o(y,g,p,t,e,s):o(g,y,p,e,t,s);if(!(void 0===b?g===y||a(g,y,n,o,s):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(498),i=n(499),o=n(168);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(266),i=n(26);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(500),i=n(501),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(503),i=n(212),o=n(504),a=n(267),s=n(505),u=n(98),l=n(254),c=l(r),f=l(i),p=l(o),d=l(a),h=l(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(112)(n(80),"DataView");e.exports=r},function(e,t,n){var r=n(112)(n(80),"Promise");e.exports=r},function(e,t,n){var r=n(112)(n(80),"WeakMap");e.exports=r},function(e,t,n){var r=n(268),i=n(168);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(218),i=n(53),o=n(508),a=n(209),s=n(268),u=n(269),l=n(167);e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(509),i=n(510);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(253),i=n(215),o=n(26),a=n(216),s=n(217),u=n(167);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l<c;){var p=u(t[l]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++l!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(p,c)&&(o(e)||i(e))}},function(e,t,n){var r=n(512),i=n(513),o=n(209),a=n(167);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(208);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(100),i=n(143),o=n(168);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}},function(e,t,n){var r=n(270),i=n(100),o=n(516),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},function(e,t,n){var r=n(271);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},function(e,t,n){var r=n(142),i=n(215),o=n(26),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(213),i=n(208),o=n(100),a=n(272),s=n(519),u=n(260),l=n(520),c=n(126),f=n(26);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var p=-1;t=r(t,u(o));var d=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return s(d,(function(e,t){return l(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(521);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(125);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e===e,a=r(e),s=void 0!==t,u=null===t,l=t===t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}},function(e,t,n){var r=n(126),i=n(523),o=n(525);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(524),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(526),i=n(528)(r);e.exports=i},function(e,t,n){var r=n(527),i=n(273),o=n(126),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(530),i=n(169),o=n(271);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,i,o){for(var a=-1,s=r(n((t-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},function(e,t,n){var r=n(532),i=n(274),o=n(534),a=n(255);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},function(e,t,n){var r=n(533);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(535),i=n(274),o=n(536);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+c+l,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){var r=n(213),i=n(100),o=n(272),a=n(26);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=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,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case l:return e;default:return t}}case g:case v:case o:return t}}}function w(e){return x(e)===p}t.typeOf=x,t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_)},t.isAsyncMode=function(e){return w(e)||x(e)===f},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h}},function(e,t,n){var r=n(263),i=n(542),o=n(546),a=n(265),s=n(547),u=n(219);e.exports=function(e,t,n){var l=-1,c=i,f=e.length,p=!0,d=[],h=d;if(n)p=!1,c=o;else if(f>=200){var m=t?null:s(e);if(m)return u(m);p=!1,c=a,h=new r}else h=t?[]:d;e:for(;++l<f;){var v=e[l],g=t?t(v):v;if(v=n||0!==v?v:0,p&&g===g){for(var y=h.length;y--;)if(h[y]===g)continue e;t&&h.push(g),d.push(v)}else c(h,g,n)||(h!==d&&h.push(g),d.push(v))}return d}},function(e,t,n){var r=n(543);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(270),i=n(544),o=n(545);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!==e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(267),i=n(548),o=n(219),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(214);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},function(e,t,n){var r=n(273);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(552),i=n(553),o=n(554);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=n(555),a.walk=i,a.stringify=o,e.exports=a},function(e,t){var n="(".charCodeAt(0),r=")".charCodeAt(0),i="'".charCodeAt(0),o='"'.charCodeAt(0),a="\\".charCodeAt(0),s="/".charCodeAt(0),u=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0);e.exports=function(e){for(var t,f,p,d,h,m,v,g,y=[],b=e,_=0,x=b.charCodeAt(_),w=b.length,E=[{nodes:y}],O=0,C="",D="",S="";_<w;)if(x<=32){t=_;do{t+=1,x=b.charCodeAt(t)}while(x<=32);d=b.slice(_,t),p=y[y.length-1],x===r&&O?S=d:p&&"div"===p.type?p.after=d:x===u||x===l||x===s&&b.charCodeAt(t+1)!==c?D=d:y.push({type:"space",sourceIndex:_,value:d}),_=t}else if(x===i||x===o){t=_,d={type:"string",sourceIndex:_,quote:f=x===i?"'":'"'};do{if(h=!1,~(t=b.indexOf(f,t+1)))for(m=t;b.charCodeAt(m-1)===a;)m-=1,h=!h;else t=(b+=f).length-1,d.unclosed=!0}while(h);d.value=b.slice(_+1,t),y.push(d),_=t+1,x=b.charCodeAt(_)}else if(x===s&&b.charCodeAt(_+1)===c)d={type:"comment",sourceIndex:_},-1===(t=b.indexOf("*/",_))&&(d.unclosed=!0,t=b.length),d.value=b.slice(_+2,t),y.push(d),_=t+2,x=b.charCodeAt(_);else if(x===s||x===u||x===l)d=b[_],y.push({type:"div",sourceIndex:_-D.length,value:d,before:D,after:""}),D="",_+=1,x=b.charCodeAt(_);else if(n===x){t=_;do{t+=1,x=b.charCodeAt(t)}while(x<=32);if(d={type:"function",sourceIndex:_-C.length,value:C,before:b.slice(_+1,t)},_=t,"url"===C&&x!==i&&x!==o){t-=1;do{if(h=!1,~(t=b.indexOf(")",t+1)))for(m=t;b.charCodeAt(m-1)===a;)m-=1,h=!h;else t=(b+=")").length-1,d.unclosed=!0}while(h);v=t;do{v-=1,x=b.charCodeAt(v)}while(x<=32);d.nodes=_!==v+1?[{type:"word",sourceIndex:_,value:b.slice(_,v+1)}]:[],d.unclosed&&v+1!==t?(d.after="",d.nodes.push({type:"space",sourceIndex:v+1,value:b.slice(v+1,t)})):d.after=b.slice(v+1,t),_=t+1,x=b.charCodeAt(_),y.push(d)}else O+=1,d.after="",y.push(d),E.push(d),y=d.nodes=[],g=d;C=""}else if(r===x&&O)_+=1,x=b.charCodeAt(_),g.after=S,S="",O-=1,E.pop(),y=(g=E[O]).nodes;else{t=_;do{x===a&&(t+=1),t+=1,x=b.charCodeAt(t)}while(t<w&&!(x<=32||x===i||x===o||x===u||x===l||x===s||x===n||x===r&&O));d=b.slice(_,t),n===x?C=d:y.push({type:"word",sourceIndex:_,value:d}),_=t}for(_=E.length-1;_;_-=1)E[_].unclosed=!0;return E[0].nodes}},function(e,t){e.exports=function e(t,n,r){var i,o,a,s;for(i=0,o=t.length;i<o;i+=1)a=t[i],r||(s=n(a,i,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,i,t)}},function(e,t){function n(e,t){var n,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(n=e.quote||"")+a+(e.unclosed?"":n):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(n=r(e.nodes),"function"!==o?n:a+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):a}function r(e,t){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=n(e[i],t)+r;return r}return n(e,t)}e.exports=r},function(e,t){var n="-".charCodeAt(0),r="+".charCodeAt(0),i=".".charCodeAt(0),o="e".charCodeAt(0),a="E".charCodeAt(0);e.exports=function(e){for(var t,s=0,u=e.length,l=!1,c=-1,f=!1;s<u;){if((t=e.charCodeAt(s))>=48&&t<=57)f=!0;else if(t===o||t===a){if(c>-1)break;c=s}else if(t===i){if(l)break;l=!0}else{if(t!==r&&t!==n)break;if(0!==s)break}s+=1}return c+1===s&&s--,!!f&&{number:e.slice(0,s),unit:e.slice(s)}}},function(e,t,n){var r=function(){function e(e,t){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r=t.exception;this.message=r.message||e,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(e).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}function t(e,t,n){n=n||0;for(var r=0;r<t;r++)this.push(e),e+=n}function n(e,t){for(t+=e=this.length-e;e<t;e++)this.push(this[e])}function r(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];"function"===typeof i?(n++,i.apply(t,e[n])):t.push(i)}return t}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonParserError";var i={trace:function(){},JisonParserError:e,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(e){return'"'+e+'"'},getSymbolName:function(e){if(this.terminals_[e])return this.terminals_[e];var t=this.symbols_;for(var n in t)if(t[n]===e)return n;return null},describeSymbol:function(e){if(e!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[e])return this.terminal_descriptions_[e];if(e===this.EOF)return"end of input";var t=this.getSymbolName(e);return t?this.quoteName(t):null},collect_expected_token_set:function(e,t){var n=this.TERROR,r=[],i={};if(!t&&this.state_descriptions_&&this.state_descriptions_[e])return[this.state_descriptions_[e]];for(var o in this.table[e])if((o=+o)!==n){var a=t?o:this.describeSymbol(o);a&&!i[a]&&(r.push(a),i[a]=!0)}return r},productions_:function(e){for(var t=[],n=e.pop,r=e.rule,i=0,o=n.length;i<o;i++)t.push([n[i],r[i]]);return t}({pop:r([29,t,[30,10],31,31,32,32,t,[33,15]]),rule:r([2,t,[3,5],4,7,t,[1,4],2,4,6,t,[1,14],2])}),performAction:function(e,t,n){var r=this.yy;r.parser,r.lexer;switch(e){case 0:this.$=n[t-1];break;case 1:return this.$=n[t-1],n[t-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:n[t-1],left:n[t-2],right:n[t]};break;case 6:this.$=n[t-1];break;case 7:this.$={type:"Calc",value:n[t-1]};break;case 8:this.$={type:"Calc",value:n[t-1],prefix:n[t-5]};break;case 9:case 10:case 11:this.$=n[t];break;case 12:this.$={type:"Value",value:parseFloat(n[t])};break;case 13:this.$={type:"Value",value:-1*parseFloat(n[t])};break;case 14:this.$={type:"CssVariable",value:n[t-1]};break;case 15:this.$={type:"CssVariable",value:n[t-3],fallback:n[t-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(n[t]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(n[t]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(n[t]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(n[t]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(n[t]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(n[t]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(n[t]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(n[t]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(n[t]),unit:"%"};break;case 30:var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.symbol,i=e.type,o=e.state,a=e.mode,s=e.goto,u=0,l=n.length;u<l;u++){for(var c=n[u],f={},p=0;p<c;p++){var d=r.shift();switch(i.shift()){case 2:f[d]=[a.shift(),s.shift()];break;case 0:f[d]=o.shift();break;default:f[d]=[3]}}t.push(f)}return t}({len:r([24,1,5,23,1,18,t,[0,3],1,t,[0,16],t,[23,4],n,[28,3],0,0,16,1,6,6,t,[0,3],5,1,2,n,[37,3],n,[20,3],5,0,0]),symbol:r([4,7,9,11,12,t,[15,19,1],1,1,t,[3,4,1],n,[30,19],n,[29,4],7,4,10,11,n,[22,14],n,[19,3],n,[43,22],n,[23,69],n,[139,4],8,n,[51,24],4,n,[138,15],13,n,[186,5],8,n,[6,6],n,[5,5],9,8,14,n,[159,47],n,[60,10]]),type:r([t,[2,19],t,[0,5],1,t,[2,24],t,[0,4],n,[22,19],n,[43,42],n,[23,70],n,[28,25],n,[45,25],n,[113,54]]),state:r([1,2,8,6,7,30,n,[4,3],33,37,n,[5,3],38,n,[4,3],39,n,[4,3],40,n,[4,3],42,n,[21,4],50,n,[5,3],51,n,[4,3]]),mode:r([t,[1,179],t,[2,3],n,[5,5],n,[6,4],t,[1,57]]),goto:r([5,3,4,24,t,[9,15,1],t,[25,5,1],n,[24,19],31,35,32,34,n,[18,14],36,n,[38,19],n,[19,57],n,[118,4],41,n,[24,19],43,35,n,[16,14],44,t,[2,3],28,29,2,t,[3,3],28,29,3,n,[53,4],t,[45,5,1],n,[100,42],52,n,[5,4],53])}),defaultActions:function(e){for(var t={},n=e.idx,r=e.goto,i=0,o=n.length;i<o;i++){t[n[i]]=r[i]}return t}({idx:r([6,7,8,t,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:r([9,10,11,t,[16,14,1],12,1,30,13,t,[4,4,1],14,15,8])}),parseError:function(e,t,n){if(!t.recoverable)throw"function"===typeof this.trace&&this.trace(e),n||(n=this.JisonParserError),new n(e,t);"function"===typeof this.trace&&this.trace(e),t.destroy()},parse:function(e){var t,n=this,r=new Array(128),i=new Array(128),o=new Array(128),a=this.table,s=0,u=0,l=(this.TERROR,this.EOF),c=(this.options.errorRecoveryTokenDiscardCount,[0,54]);t=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var f={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};function p(){var e=t.fastLex();return"number"!==typeof e&&(e=n.symbols_[e]||e),e||l}"function"!==typeof assert||assert,this.yyGetSharedState=function(){return f},function(e,t){for(var n in t)"undefined"===typeof e[n]&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}(f,this.yy),f.lexer=t,f.parser=this,"function"===typeof f.parseError?this.parseError=function(e,t,n){return n||(n=this.JisonParserError),f.parseError.call(this,e,t,n)}:this.parseError=this.originalParseError,"function"===typeof f.quoteName?this.quoteName=function(e){return f.quoteName.call(this,e)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(e,n,a){var u,l;n&&((f.post_parse||this.post_parse)&&(l=this.constructParseErrorInfo(null,null,null,!1)),f.post_parse&&"undefined"!==typeof(u=f.post_parse.call(this,f,e,l))&&(e=u),this.post_parse&&"undefined"!==typeof(u=this.post_parse.call(this,f,e,l))&&(e=u),l&&l.destroy&&l.destroy());if(this.__reentrant_call_depth>1)return e;if(t.cleanupAfterLex&&t.cleanupAfterLex(a),f&&(f.lexer=void 0,f.parser=void 0,t.yy===f&&(t.yy=void 0)),f=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,i.length=0,o.length=0,s=0,!a){for(var c=this.__error_infos.length-1;c>=0;c--){var p=this.__error_infos[c];p&&"function"===typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return e},this.constructParseErrorInfo=function(e,n,a,l){var c={errStr:e,exception:n,text:t.match,value:t.yytext,token:this.describeSymbol(u)||u,token_id:u,line:t.yylineno,expected:a,recoverable:l,state:d,action:h,new_state:_,symbol_stack:r,state_stack:i,value_stack:o,stack_pointer:s,yy:f,lexer:t,parser:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"===typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(c),c};var d,h,m,v,g,y,b,_,x=function(){var e=t.lex();return"number"!==typeof e&&(e=n.symbols_[e]||e),e||l},w={$:!0,_$:void 0,yy:f},E=!1;try{if(this.__reentrant_call_depth++,t.setInput(e,f),"function"===typeof t.canIUse)t.canIUse().fastLex&&(x=p);for(o[s]=null,i[s]=0,r[s]=0,++s,this.pre_parse&&this.pre_parse.call(this,f),f.pre_parse&&f.pre_parse.call(this,f),_=i[s-1];;){if(d=_,this.defaultActions[d])h=2,_=this.defaultActions[d];else if(u||(u=x()),v=a[d]&&a[d][u]||c,_=v[1],!(h=v[0])){var O,C=this.describeSymbol(u)||u,D=this.collect_expected_token_set(d);O="number"===typeof t.yylineno?"Parse error on line "+(t.yylineno+1)+": ":"Parse error: ","function"===typeof t.showPosition&&(O+="\n"+t.showPosition(69,10)+"\n"),D.length?O+="Expecting "+D.join(", ")+", got unexpected "+C:O+="Unexpected "+C,g=this.constructParseErrorInfo(O,null,D,!1),"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(E=m);break}switch(h){default:if(h instanceof Array){g=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+d+", token: "+u,null,null,!1),"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(E=m);break}g=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(E=m);break;case 1:r[s]=u,o[s]=t.yytext,i[s]=_,++s,u=0;continue;case 2:if(y=(b=this.productions_[_-1])[1],"undefined"!==typeof(m=this.performAction.call(w,_,s-1,o))){E=m;break}s-=y;var S=b[0];r[s]=S,o[s]=w.$,_=a[i[s-1]][S],i[s]=_,++s;continue;case 3:-2!==s&&(E=!0,s--,"undefined"!==typeof o[s]&&(E=o[s]))}break}}catch(k){if(k instanceof this.JisonParserError)throw k;if(t&&"function"===typeof t.JisonLexerError&&k instanceof t.JisonLexerError)throw k;g=this.constructParseErrorInfo("Parsing aborted due to exception.",k,null,!1),E=!1,"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(E=m)}finally{E=this.cleanupAfterParse(E,!0,!0),this.__reentrant_call_depth--}return E}};i.originalParseError=i.parseError,i.originalQuoteName=i.quoteName;var o=function(){function e(e,t){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r=t.exception;this.message=r.message||e,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(e).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}return"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonLexerError",{EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(e,t,n){if(e=""+e,void 0==n&&(n=!(e.indexOf("\n")>0&&e.indexOf("^")>0)),this.yylloc&&n)if("function"===typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(e)||(e+="\n"),e+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"===typeof this.showPosition){var r=this.showPosition();r&&(e.length&&"\n"!==e[e.length-1]&&"\n"!==r[0]?e+="\n"+r:e+=r)}var i={errStr:e,recoverable:!!t,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"===typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(i),i},parseError:function(e,t,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"===typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,e,t,n)||this.ERROR;if("function"===typeof this.yy.parseError)return this.yy.parseError.call(this,e,t,n)||this.ERROR}throw new n(e,t)},yyerror:function(e){var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+t+": "+e,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(e){if(this.setInput("",{}),!e){for(var t=this.__error_infos.length-1;t>=0;t--){var n=this.__error_infos[t];n&&"function"===typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var e=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:e,last_line:this.yylineno+1,last_column:e,range:[this.offset,this.offset]}},setInput:function(e,t){if(this.yy=t||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,i=n.length;r<i;r++){"number"===typeof(p=n[r])&&(n[r]=n[p])}var o=this.conditions;for(var a in o){var s=o[a],u=s.rules,l=(i=u.length,new Array(i+1)),c=new Array(i+1);for(r=0;r<i;r++){var f=u[r],p=n[f];l[r+1]=p,c[r+1]=f}s.rules=c,s.__rule_regexes=l,s.__rule_count=i}this.__decompressed=!0}return this._input=e||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(e,t){var n=e.call(this,this._input,t);return"string"!==typeof n?n&&(this._input=""+n):this._input=n,this},input:function(){if(!this._input)return null;var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=1,n=!1;if("\n"===e)n=!0;else if("\r"===e){n=!0;var r=this._input[1];"\n"===r&&(t++,e+=r,this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,this.yylloc.range[1]++)}return n?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(t),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);if(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.yyleng=this.yytext.length,this.offset-=t,this.match=this.match.substr(0,this.match.length-t),this.matched=this.matched.substr(0,this.matched.length-t),n.length>1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,i=r.split(/(?:\r\n?|\n)/g);1===i.length&&(i=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=i[i.length-1].length}else this.yylloc.last_column-=t;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var t=this.constructLexErrorInfo("Lexical error"+e+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(t.errStr,t,this.JisonLexerError)||this.ERROR}return this},less:function(e){return this.unput(this.match.slice(e))},pastInput:function(e,t){var n=this.matched.substring(0,this.matched.length-this.match.length);e<0?e=n.length:e||(e=20),t<0?t=n.length:t||(t=1);var r=(n=n.substr(2*-e-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-t)).join("\n")).length>e&&(n="..."+n.substr(-e)),n},upcomingInput:function(e,t){var n=this.match;e<0?e=n.length+this._input.length:e||(e=20),t<0?t=e:t||(t=1),n.length<2*e+2&&(n+=this._input.substring(0,2*e+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,t)).join("\n")).length>e&&(n=n.substring(0,e)+"..."),n},showPosition:function(e,t){var n=this.pastInput(e).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(t).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(e,t,n,r){var i={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return e&&(i.first_line=0|e.first_line,i.last_line=0|e.last_line,i.first_column=0|e.first_column,i.last_column=0|e.last_column,e.range&&(i.range[0]=0|e.range[0],i.range[1]=0|e.range[1])),(i.first_line<=0||i.last_line<i.first_line)&&(i.first_line<=0&&t&&(i.first_line=0|t.last_line,i.first_column=0|t.last_column,t.range&&(i.range[0]=0|e.range[1])),(i.last_line<=0||i.last_line<i.first_line)&&n&&(i.last_line=0|n.first_line,i.last_column=0|n.first_column,n.range&&(i.range[1]=0|e.range[0])),i.first_line<=0&&r&&(i.last_line<=0||r.last_line<=i.last_line)&&(i.first_line=0|r.first_line,i.first_column=0|r.first_column,r.range&&(i.range[0]=0|r.range[0])),i.last_line<=0&&r&&(i.first_line<=0||r.first_line>=i.first_line)&&(i.last_line=0|r.last_line,i.last_column=0|r.last_column,r.range&&(i.range[1]=0|r.range[1]))),i.last_line<=0&&(i.first_line<=0?(i.first_line=this.yylloc.first_line,i.last_line=this.yylloc.last_line,i.first_column=this.yylloc.first_column,i.last_column=this.yylloc.last_column,i.range[0]=this.yylloc.range[0],i.range[1]=this.yylloc.range[1]):(i.last_line=this.yylloc.last_line,i.last_column=this.yylloc.last_column,i.range[1]=this.yylloc.range[1])),i.first_line<=0&&(i.first_line=i.last_line,i.first_column=0,i.range[1]=i.range[0]),i.first_column<0&&(i.first_column=0),i.last_column<0&&(i.last_column=i.first_column>0?i.first_column:80),i},prettyPrintRange:function(e,t,n){e=this.deriveLocationInfo(e,t,n);var r=(this.matched+this._input).split("\n"),i=Math.max(1,t?t.first_line:e.first_line-3),o=Math.max(1,n?n.last_line:e.last_line+1),a=1+Math.log10(1|o)|0,s=new Array(a).join(" "),u=[],l=r.slice(i-1,o+1).map((function(t,n){var r=n+i,o=(s+r).substr(-a)+": "+t,l=new Array(a+1).join("^"),c=3,f=0;(r===e.first_line?(c+=e.first_column,f=Math.max(2,(r===e.last_line?e.last_column:t.length)-e.first_column+1)):r===e.last_line?f=Math.max(2,e.last_column+1):r>e.first_line&&r<e.last_line&&(f=Math.max(2,t.length+1)),f)&&(o+="\n"+l+new Array(c).join(".")+new Array(f).join("^"),t.trim().length>0&&u.push(n));return o=o.replace(/\t/g," ")}));if(u.length>4){var c=u[1]+1,f=u[u.length-2]-1,p=new Array(a+1).join(" ")+" (...continued...)";p+="\n"+new Array(a+1).join("-")+" (---------------)",l.splice(c,f-c+1,p)}return l.join("\n")},describeYYLLOC:function(e,t){var n,r=e.first_line,i=e.last_line,o=e.first_column,a=e.last_column;if(0===i-r?(n="line "+r+", ",n+=a-o<=1?"column "+o:"columns "+o+" .. "+a):n="lines "+r+"(column "+o+") .. "+i+"(column "+a+")",e.range&&t){var s=e.range[0],u=e.range[1]-1;n+=u<=s?" {String Offset: "+s+"}":" {String Offset range: "+s+" .. "+u+"}"}return n},test_match:function(e,t){var n,r,i,o,a;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(o=e[0]).length,(r=o.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=a,this.yytext+=o,this.match+=o,this.matched+=o,this.matches=e,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),n=this.performAction.call(this,this.yy,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||this.clear();var i=this.__currentRuleSet__;if(!i&&(!(i=this.__currentRuleSet__=this._currentRules())||!i.rules)){var o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+o+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var s=i.rules,u=i.__rule_regexes,l=i.__rule_count,c=1;c<=l;c++)if((n=this._input.match(u[c]))&&(!t||n[0].length>t[0].length)){if(t=n,r=c,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[c])))return e;if(this._backtrack){t=void 0;continue}return!1}if(!this.options.flex)break}if(t)return!1!==(e=this.test_match(t,s[r]))&&e;if(this._input){o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+o+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var f=this._input,p=this.topState(),d=this.conditionStack.length;return(e=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||f!==this._input||p!==this.topState()||d!==this.conditionStack.length||this.input()),e}return this.done=!0,this.clear(),this.EOF},lex:function(){var e;for("function"===typeof this.pre_lex&&(e=this.pre_lex.call(this,0)),"function"===typeof this.options.pre_lex&&(e=this.options.pre_lex.call(this,e)||e),this.yy&&"function"===typeof this.yy.pre_lex&&(e=this.yy.pre_lex.call(this,e)||e);!e;)e=this.next();return this.yy&&"function"===typeof this.yy.post_lex&&(e=this.yy.post_lex.call(this,e)||e),"function"===typeof this.options.post_lex&&(e=this.options.post_lex.call(this,e)||e),"function"===typeof this.post_lex&&(e=this.post_lex.call(this,e)||e),e},fastLex:function(){for(var e;!e;)e=this.next();return e},canIUse:function(){return{fastLex:!("function"===typeof this.pre_lex||"function"===typeof this.options.pre_lex||this.yy&&"function"===typeof this.yy.pre_lex||this.yy&&"function"===typeof this.yy.post_lex||"function"===typeof this.options.post_lex||"function"===typeof this.post_lex)&&"function"===typeof this.fastLex}},begin:function(e){return this.pushState(e)},pushState:function(e){return this.conditionStack.push(e),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:e,performAction:function(e,t,n){switch(t){case 1:break;default:return this.simpleCaseActionClusters[t]}},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}}}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(558),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,n){t.type===e.type&&(t={type:e.type,value:(0,o.default)(t.value,t.unit,e.unit,n),unit:e.unit});return{left:e,right:t}}(e,t,n);default:return{left:e,right:t}}},e.exports=t.default},function(e,t){var n={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,t,r,i){if(!n.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!n[r].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+r);var o=n[r][t]*e;return!1!==i?(i=Math.pow(10,parseInt(i)||5),Math.round(o*i)/i):o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=function e(t,n){switch(t.type){case"MathExpression":var a=t.left,s=t.right,u=t.operator,l="";return"MathExpression"===a.type&&i[u]<i[a.operator]?l+="("+e(a,n)+")":l+=e(a,n),l+=" "+t.operator+" ","MathExpression"===s.type&&i[u]<i[s.operator]?l+="("+e(s,n)+")":"MathExpression"===s.type&&"-"===u&&["+","-"].includes(s.operator)?(s.operator=(0,r.flip)(s.operator),l+=e(s,n)):l+=e(s,n),l;case"Value":return o(t.value,n);case"CssVariable":return t.fallback?"var("+t.value+", "+e(t.fallback,n,!0)+")":"var("+t.value+")";case"Calc":return t.prefix?"-"+t.prefix+"-calc("+e(t.value,n)+")":"calc("+e(t.value,n)+")";default:return o(t.value,n)+t.unit}}(t,n);return"MathExpression"===t.type&&(a=e+"("+a+")"),a};var r=n(276),i={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}e.exports=t.default},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"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()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(207))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(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]}t.default=e}(n(3));var r=s(n(562)),i=s(n(564)),o=s(n(0)),a=s(n(277));n(279);function s(e){return e&&e.__esModule?e:{default:e}}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}).apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),l(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=n?r+" "+i:i;t.removeClasses(e,n?"appear":"enter"),l(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),l(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),l(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&c(e,r),i&&c(e,i),o&&c(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,l(e,t))},i.render=function(){var e=u({},this.props);return delete e.classNames,o.default.createElement(a.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;t.default=p,e.exports=t.default},function(e,t,n){"use strict";var r=n(38);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(563));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},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))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(3));var r=a(n(0)),i=n(24),o=a(n(280));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).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}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var o,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],u=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,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}))},a}(r.default.Component);s.propTypes={};var u=s;t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=i(e.children),u=o(t,s);return Object.keys(u).forEach((function(i){var o=u[i];if((0,r.isValidElement)(o)){var l=i in t,c=i in s,f=t[i],p=(0,r.isValidElement)(f)&&!f.props.in;!c||l&&!p?c||!l||p?c&&l&&(0,r.isValidElement)(f)&&(u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:f.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):u[i]=(0,r.cloneElement)(o,{in:!1}):u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),u};var r=n(0);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r<i[u].length;r++){var l=i[u][r];s[i[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";var r=n(281).forEach,i=n(568),o=n(569),a=n(570),s=n(571),u=n(572),l=n(282),c=n(573),f=n(575),p=n(576),d=n(577);function h(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function v(e){return e&&1===e.nodeType}function g(e,t,n){var r=e[t];return void 0!==r&&null!==r||void 0===n?r:n}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:f});t=y}var b=e.reporter;b||(b=u(!1===b));var _=g(e,"batchProcessor",c({reporter:b})),x={};x.callOnAdd=!!g(e,"callOnAdd",!0),x.debug=!!g(e,"debug",!1);var w,E=o(t),O=i({stateHandler:f}),C=g(e,"strategy","object"),D=g(e,"important",!1),S={reporter:b,batchProcessor:_,stateHandler:f,idHandler:t,important:D};if("scroll"===C&&(l.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):l.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)w=d(S);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);w=p(S)}var k={};return{listenTo:function(e,n,i){function o(e){var t=E.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){E.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(v(n))n=[n];else{if(!h(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,u=g(e,"callOnAdd",x.callOnAdd),l=g(e,"onReady",(function(){})),c=g(e,"debug",x.debug);r(n,(function(e){f.getState(e)||(f.initState(e),t.set(e));var p=t.get(e);if(c&&b.log("Attaching listener to element",p,e),!O.isDetectable(e))return c&&b.log(p,"Not detectable."),O.isBusy(e)?(c&&b.log(p,"System busy making it detectable"),a(u,e,i),k[p]=k[p]||[],void k[p].push((function(){++s===n.length&&l()}))):(c&&b.log(p,"Making detectable..."),O.markBusy(e,!0),w.makeDetectable({debug:c,important:D},e,(function(e){if(c&&b.log(p,"onElementDetectable"),f.getState(e)){O.markAsDetectable(e),O.markBusy(e,!1),w.addListener(e,o),a(u,e,i);var t=f.getState(e);if(t&&t.startSize){var d=e.offsetWidth,h=e.offsetHeight;t.startSize.width===d&&t.startSize.height===h||o(e)}k[p]&&r(k[p],(function(e){e()}))}else c&&b.log(p,"Element uninstalled before being detectable.");delete k[p],++s===n.length&&l()})));c&&b.log(p,"Already detecable, adding listener."),a(u,e,i),s++})),s===n.length&&l()},removeListener:E.removeListener,removeAllListeners:E.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(v(e))e=[e];else{if(!h(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}r(e,(function(e){E.removeAllListeners(e),w.uninstall(e),f.cleanState(e)}))},initDocument:function(e){w.initDocument&&w.initDocument(e)}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var i=e.get(n);t[i]||(t[i]=[]),t[i].push(r)},removeListener:function(e,t){for(var r=n(e),i=0,o=r.length;i<o;++i)if(r[i]===t){r.splice(i,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=t.generate();return r.id=i,i}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},function(e,t,n){"use strict";var r=n(574);function i(){var e={},t=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),e[i]||(e[i]=[]),e[i].push(o),t++},process:function(){for(var t=r;t<=n;t++)for(var i=e[t],o=0;o<i.length;o++){(0,i[o])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),o=r.getOption(e,"auto",!0);o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=i(),u=!1;function l(){for(u=!0;s.size();){var e=s;s=i(),e.process()}u=!1}function c(){a=function(e){return t=e,setTimeout(t,0);var t}(l)}return{add:function(e,t){!u&&o&&n&&0===s.size()&&c(),s.add(e,t)},force:function(e){u||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?c():l())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if((void 0===r||null===r)&&void 0!==n)return n;return r}},function(e,t,n){"use strict";function r(e){return e._erd}e.exports={initState:function(e){return e._erd={},r(e)},getState:r,cleanState:function(e){delete e._erd}}},function(e,t,n){"use strict";var r=n(282);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function a(e){return i(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,r.isIE(8)?s(a):function(a,s){var u=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,c=window.getComputedStyle(a),f=a.offsetWidth,p=a.offsetHeight;function d(){function n(){if("static"===c.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",e.important?"important":""))};n(t,a,c,"top"),n(t,a,c,"right"),n(t,a,c,"bottom"),n(t,a,c,"left")}}""!==c.position&&(n(),l=!0);var o=document.createElement("object");o.style.cssText=u,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){l||n(),function e(t,n){if(!t.contentDocument){var r=i(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},r.isIE()||(o.data="about:blank"),i(a)&&(a.appendChild(o),i(a).object=o,r.isIE()&&(o.data="about:blank"))}i(a).startSize={width:f,height:p},n?n.add(d):d()}(a,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))i(e).object={proxy:n},e.attachEvent("onresize",n);else{var o=a(e);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(i(e)){var t=a(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),i(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(e).checkForObjectDocumentTimeoutId),delete i(e).object)}}}}},function(e,t,n){"use strict";var r=n(281).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=document.createElement("div");e.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}();function s(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",i=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",o+="."+i+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var i=e.createElement("style");i.innerHTML=n,i.id=t,r(i)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function u(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function l(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function f(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}return s(window.document),{makeDetectable:function(e,s,c){function d(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function h(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(s),t={};return t.position=e.position,t.width=s.offsetWidth,t.height=s.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(d("storeStyle invoked."),i(s)){var e=m();i(s).style=e}else d("Aborting because element has been uninstalled")}function g(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function y(){return 2*a.width+1}function b(){return 2*a.height+1}function _(e){return e+10+y()}function x(e){return e+10+b()}function w(e,t,n){var r=f(e),i=p(e),o=_(t),a=x(n),s=function(e){return 2*e+y()}(t),u=function(e){return 2*e+b()}(n);r.scrollLeft=o,r.scrollTop=a,i.scrollLeft=s,i.scrollTop=u}function E(){var e=i(s).container;if(!e){(e=document.createElement("div")).className="erd_scroll_detection_container",e.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(s).container=e,function(e){e.className+=" erd_scroll_detection_container_animation_active"}(e),s.appendChild(e);var t=function(){i(s).onRendered&&i(s).onRendered()};l(e,"animationstart",t),i(s).onAnimationStart=t}return e}function O(){if(d("Injecting elements"),i(s)){!function(){var n=i(s).style;if("static"===n.position){s.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var i=n[r];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(e.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,s,n,"top"),r(t,s,n,"right"),r(t,s,n,"bottom"),r(t,s,n,"left")}}();var n=i(s).container;n||(n=E());var r,o,c,f,p=a.width,h=a.height,m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(o=(o=-(1+h))?o+"px":"0"),"right: "+(f=(f=-p)?f+"px":"0"),"bottom: "+(c=(c=-h)?c+"px":"0")])),g=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=u(["position: absolute","left: 0","top: 0"]),_=u(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),w=document.createElement("div"),O=document.createElement("div"),C=document.createElement("div"),D=document.createElement("div"),S=document.createElement("div");x.dir="ltr",x.style.cssText=m,x.className="erd_scroll_detection_container",w.className="erd_scroll_detection_container",w.style.cssText=v,O.style.cssText=g,C.style.cssText=b,D.style.cssText=y,S.style.cssText=_,O.appendChild(C),D.appendChild(S),w.appendChild(O),w.appendChild(D),x.appendChild(w),n.appendChild(x),l(O,"scroll",k),l(D,"scroll",A),i(s).onExpandScroll=k,i(s).onShrinkScroll=A}else d("Aborting because element has been uninstalled");function k(){i(s).onExpand&&i(s).onExpand()}function A(){i(s).onShrink&&i(s).onShrink()}}function C(){function a(t,n,r){var i=function(e){return f(e).childNodes[0]}(t),o=_(n),a=x(r);i.style.setProperty("width",o+"px",e.important?"important":""),i.style.setProperty("height",a+"px",e.important?"important":"")}function u(r){var u=s.offsetWidth,c=s.offsetHeight,f=u!==i(s).lastWidth||c!==i(s).lastHeight;d("Storing current size",u,c),g(s,u,c),n.add(0,(function(){if(f)if(i(s))if(l()){if(e.debug){var n=s.offsetWidth,r=s.offsetHeight;n===u&&r===c||t.warn(o.get(s),"Scroll: Size changed before updating detector elements.")}a(s,u,c)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){i(s)?l()?w(s,u,c):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),f&&r&&n.add(2,(function(){i(s)?l()?r():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function l(){return!!i(s).container}function c(){d("notifyListenersIfNeeded invoked");var e=i(s);return void 0===i(s).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(i(s).listeners,(function(e){e(s)})))}function m(){d("Scroll detected."),h(s)?d("Scroll event fired while unrendered. Ignoring..."):u(c)}if(d("registerListenersAndPositionElements invoked."),i(s)){i(s).onRendered=function(){if(d("startanimation triggered."),h(s))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var e=f(s),t=p(s);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),u(c))}},i(s).onExpand=m,i(s).onShrink=m;var v=i(s).style;a(s,v.width,v.height)}else d("Aborting because element has been uninstalled")}function D(){if(d("finalizeDomMutation invoked."),i(s)){var e=i(s).style;g(s,e.width,e.height),w(s,e.width,e.height)}else d("Aborting because element has been uninstalled")}function S(){c(s)}function k(){d("Installing..."),i(s).listeners=[],function(){var e=m();i(s).startSize={width:e.width,height:e.height},d("Element start size",i(s).startSize)}(),n.add(0,v),n.add(1,O),n.add(2,C),n.add(3,D),n.add(4,S)}c||(c=s,s=e,e=null),e=e||{},d("Making detectable..."),!function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(s)?k():(d("Element is detached"),E(),d("Waiting until element is attached..."),i(s).onRendered=function(){d("Element is now attached"),k()})},addListener:function(e,t){if(!i(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)},uninstall:function(e){var t=i(e);t&&(t.onExpandScroll&&c(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:s}}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=n(101);function o(e){return e&&"object"===Object(i.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(173),i=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,o=e.productionPrefix,a=void 0===o?"jss":o,s=e.seed,u=void 0===s?"":s,l=""===u?"":"".concat(u,"-"),c=0,f=function(){return c+=1};return function(e,t){var o=t.options.name;if(o&&0===o.indexOf("Mui")&&!t.options.link&&!n){if(-1!==i.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(l).concat(o,"-").concat(e.key);return t.options.theme[r.a]&&""===u?"".concat(s,"-").concat(f()):s}return"".concat(l).concat(a).concat(f())}}},function(e,t,n){"use strict";var r=n(0),i=n(24),o=(n(3),n(59)),a=n(20);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,u=r.forwardRef((function(e,t){var n=e.children,u=e.container,l=e.disablePortal,c=void 0!==l&&l,f=e.onRendered,p=r.useState(null),d=p[0],h=p[1],m=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return s((function(){c||h(function(e){return e="function"===typeof e?e():e,i.findDOMNode(e)}(u)||document.body)}),[u,c]),s((function(){if(d&&!c)return Object(o.a)(t,d),function(){Object(o.a)(t,null)}}),[t,d,c]),s((function(){f&&(d||c)&&f()}),[f,d,c]),c?r.isValidElement(n)?r.cloneElement(n,{ref:m}):n:d?i.createPortal(n,d):d}));t.a=u},function(e,t,n){"use strict";var r=n(0),i=n(24),o=(n(3),n(30)),a=n(20);t.a=function(e){var t=e.children,n=e.disableAutoFocus,s=void 0!==n&&n,u=e.disableEnforceFocus,l=void 0!==u&&u,c=e.disableRestoreFocus,f=void 0!==c&&c,p=e.getDoc,d=e.isEnabled,h=e.open,m=r.useRef(),v=r.useRef(null),g=r.useRef(null),y=r.useRef(),b=r.useRef(null),_=r.useCallback((function(e){b.current=i.findDOMNode(e)}),[]),x=Object(a.a)(t.ref,_),w=r.useRef();return r.useEffect((function(){w.current=h}),[h]),!w.current&&h&&"undefined"!==typeof window&&(y.current=p().activeElement),r.useEffect((function(){if(h){var e=Object(o.a)(b.current);s||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!l&&d()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!l&&d()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?g.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),f||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[s,l,f,d,h]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:x}),r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(385),l=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.invisible,f=void 0!==c&&c,p=e.open,d=e.transitionDuration,h=e.TransitionComponent,m=void 0===h?u.a:h,v=Object(i.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(m,Object(r.a)({in:p,timeout:d},v),o.createElement("div",{className:Object(a.a)(s.root,l,f&&s.invisible),"aria-hidden":!0,ref:t},n))}));t.a=Object(s.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(74),l=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.component,f=void 0===c?"ul":c,p=e.dense,d=void 0!==p&&p,h=e.disablePadding,m=void 0!==h&&h,v=e.subheader,g=Object(i.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=o.useMemo((function(){return{dense:d}}),[d]);return o.createElement(u.a.Provider,{value:y},o.createElement(f,Object(r.a)({className:Object(a.a)(s.root,l,d&&s.dense,!m&&s.padding,v&&s.subheader),ref:t},g),v,n))}));t.a=Object(s.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(159),l=n(103),c=n(20),f=n(74),p=n(24),d="undefined"===typeof window?o.useEffect:o.useLayoutEffect,h=o.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,m=void 0!==h&&h,v=e.button,g=void 0!==v&&v,y=e.children,b=e.classes,_=e.className,x=e.component,w=e.ContainerComponent,E=void 0===w?"li":w,O=e.ContainerProps,C=(O=void 0===O?{}:O).className,D=Object(i.a)(O,["className"]),S=e.dense,k=void 0!==S&&S,A=e.disabled,T=void 0!==A&&A,P=e.disableGutters,M=void 0!==P&&P,j=e.divider,I=void 0!==j&&j,F=e.focusVisibleClassName,R=e.selected,L=void 0!==R&&R,z=Object(i.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),B=o.useContext(f.a),N={dense:k||B.dense||!1,alignItems:s},U=o.useRef(null);d((function(){m&&U.current&&U.current.focus()}),[m]);var V=o.Children.toArray(y),H=V.length&&Object(l.a)(V[V.length-1],["ListItemSecondaryAction"]),W=o.useCallback((function(e){U.current=p.findDOMNode(e)}),[]),G=Object(c.a)(W,t),q=Object(r.a)({className:Object(a.a)(b.root,_,N.dense&&b.dense,!M&&b.gutters,I&&b.divider,T&&b.disabled,g&&b.button,"center"!==s&&b.alignItemsFlexStart,H&&b.secondaryAction,L&&b.selected),disabled:T},z),$=x||"li";return g&&(q.component=x||"div",q.focusVisibleClassName=Object(a.a)(b.focusVisible,F),$=u.a),H?($=q.component||x?$:"div","li"===E&&("li"===$?$="div":"li"===q.component&&(q.component="div")),o.createElement(f.a.Provider,{value:N},o.createElement(E,Object(r.a)({className:Object(a.a)(b.container,C),ref:G},D),o.createElement($,q,V),V.pop()))):o.createElement(f.a.Provider,{value:N},o.createElement($,Object(r.a)({ref:G},q),V))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(0),o=n(195),a=n(232);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(o.a)(),s=Object(a.a)({theme:n,name:"MuiUseMediaQuery",props:{}});var u="function"===typeof e?e(n):e;u=u.replace(/^@media( ?)/m,"");var l="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,c=Object(r.a)({},s,t),f=c.defaultMatches,p=void 0!==f&&f,d=c.matchMedia,h=void 0===d?l?window.matchMedia:null:d,m=c.noSsr,v=void 0!==m&&m,g=c.ssrMatchMedia,y=void 0===g?null:g,b=i.useState((function(){return v&&l?h(u).matches:y?y(u).matches:p})),_=b[0],x=b[1];return i.useEffect((function(){var e=!0;if(l){var t=h(u),n=function(){e&&x(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[u,h,l]),_}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(74),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(i.a)(e,["classes","className"]),c=o.useContext(u.a);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"flex-start"===c.alignItems&&n.alignItemsFlexStart),ref:t},l))}));t.a=Object(s.a)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(l)},function(e,t,n){"use strict";var r=n(0),i=(n(3),"undefined"!==typeof window?r.useLayoutEffect:r.useEffect);t.a=function(e){var t=e.children,n=e.defer,o=void 0!==n&&n,a=e.fallback,s=void 0===a?null:a,u=r.useState(!1),l=u[0],c=u[1];return i((function(){o||c(!0)}),[o]),r.useEffect((function(){o&&c(!0)}),[o]),r.createElement(r.Fragment,null,l?t:s)}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(68),u=n(7),l=n(110),c=n(10),f=o.forwardRef((function(e,t){e.checked;var n=e.classes,u=e.className,f=e.control,p=e.disabled,d=(e.inputRef,e.label),h=e.labelPlacement,m=void 0===h?"end":h,v=(e.name,e.onChange,e.value,Object(i.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),g=Object(s.a)(),y=p;"undefined"===typeof y&&"undefined"!==typeof f.props.disabled&&(y=f.props.disabled),"undefined"===typeof y&&g&&(y=g.disabled);var b={disabled:y};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof f.props[t]&&"undefined"!==typeof e[t]&&(b[t]=e[t])})),o.createElement("label",Object(r.a)({className:Object(a.a)(n.root,u,"end"!==m&&n["labelPlacement".concat(Object(c.a)(m))],y&&n.disabled),ref:t},v),o.cloneElement(f,b),o.createElement(l.a,{component:"span",className:Object(a.a)(n.label,y&&n.disabled)},d))}));t.a=Object(u.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(f)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(12),l=n(10),c=n(183),f=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,f=void 0===u?"secondary":u,p=e.edge,d=void 0!==p&&p,h=e.size,m=void 0===h?"medium":h,v=Object(i.a)(e,["classes","className","color","edge","size"]),g=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Object(a.a)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[d],"small"===m&&n["size".concat(Object(l.a)(m))])},o.createElement(c.a,Object(r.a)({type:"checkbox",icon:g,checkedIcon:g,classes:{root:Object(a.a)(n.switchBase,n["color".concat(Object(l.a)(f))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},v)),o.createElement("span",{className:n.track}))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(f)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,f=e.disableShrink,p=void 0!==f&&f,d=e.size,h=void 0===d?40:d,m=e.style,v=e.thickness,g=void 0===v?3.6:v,y=e.value,b=void 0===y?0:y,_=e.variant,x=void 0===_?"indeterminate":_,w=Object(i.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),E={},O={},C={};if("determinate"===x||"static"===x){var D=2*Math.PI*((44-g)/2);E.strokeDasharray=D.toFixed(3),C["aria-valuenow"]=Math.round(b),E.strokeDashoffset="".concat(((100-b)/100*D).toFixed(3),"px"),O.transform="rotate(-90deg)"}return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"inherit"!==c&&n["color".concat(Object(u.a)(c))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[x]),style:Object(r.a)({width:h,height:h},O,m),ref:t,role:"progressbar"},C,w),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},o.createElement("circle",{className:Object(a.a)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[x]),style:E,cx:44,cy:44,r:(44-g)/2,fill:"none",strokeWidth:g})))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(197),l=n(93),c=n(196),f=n(661),p=n(653),d=n(110),h=n(27),m=Object(h.a)(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),v=Object(h.a)(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),g=n(34),y=n(120),b=o.createElement(v,null),_=o.createElement(m,null),x=o.createElement(m,null),w=o.createElement(v,null),E=o.forwardRef((function(e,t){var n=e.backIconButtonProps,a=e.count,s=e.nextIconButtonProps,u=e.onChangePage,l=void 0===u?function(){}:u,c=e.onPageChange,f=void 0===c?function(){}:c,p=e.page,d=e.rowsPerPage,h=Object(i.a)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","onPageChange","page","rowsPerPage"]),m=Object(g.a)();return o.createElement("div",Object(r.a)({ref:t},h),o.createElement(y.a,Object(r.a)({onClick:function(e){l(e,p-1),f(e,p-1)},disabled:0===p,color:"inherit"},n),"rtl"===m.direction?b:_),o.createElement(y.a,Object(r.a)({onClick:function(e){l(e,p+1),f(e,p+1)},disabled:-1!==a&&p>=Math.ceil(a/d)-1,color:"inherit"},s),"rtl"===m.direction?x:w))})),O=n(47),C=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},D=[10,25,50,100],S=o.forwardRef((function(e,t){var n,s=e.ActionsComponent,h=void 0===s?E:s,m=e.backIconButtonProps,v=e.backIconButtonText,g=void 0===v?"Previous page":v,y=e.classes,b=e.className,_=e.colSpan,x=e.component,w=void 0===x?f.a:x,S=e.count,k=e.labelDisplayedRows,A=void 0===k?C:k,T=e.labelRowsPerPage,P=void 0===T?"Rows per page:":T,M=e.nextIconButtonProps,j=e.nextIconButtonText,I=void 0===j?"Next page":j,F=e.onChangePage,R=e.onPageChange,L=e.onChangeRowsPerPage,z=e.onRowsPerPageChange,B=e.page,N=e.rowsPerPage,U=e.rowsPerPageOptions,V=void 0===U?D:U,H=e.SelectProps,W=void 0===H?{}:H,G=Object(i.a)(e,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onPageChange","onChangeRowsPerPage","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps"]),q=L||z;w!==f.a&&"td"!==w||(n=_||1e3);var $=Object(O.a)(),Y=Object(O.a)(),Z=W.native?"option":l.a;return o.createElement(w,Object(r.a)({className:Object(a.a)(y.root,b),colSpan:n,ref:t},G),o.createElement(p.a,{className:y.toolbar},o.createElement("div",{className:y.spacer}),V.length>1&&o.createElement(d.a,{color:"inherit",variant:"body2",className:y.caption,id:Y},P),V.length>1&&o.createElement(c.a,Object(r.a)({classes:{select:y.select,icon:y.selectIcon},input:o.createElement(u.a,{className:Object(a.a)(y.input,y.selectRoot)}),value:N,onChange:q,id:$,labelId:Y},W),V.map((function(e){return o.createElement(Z,{className:y.menuItem,key:e.value?e.value:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(d.a,{color:"inherit",variant:"body2",className:y.caption},A({from:0===S?0:B*N+1,to:-1!==S?Math.min(S,(B+1)*N):(B+1)*N,count:-1===S?-1:S,page:B})),o.createElement(h,{className:y.actions,backIconButtonProps:Object(r.a)({title:g,"aria-label":g},m),count:S,nextIconButtonProps:Object(r.a)({title:I,"aria-label":I},M),onChangePage:F,onPageChange:R,page:B,rowsPerPage:N})))}));t.a=Object(s.a)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(S)},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=n(24),s=(n(3),n(195)),u=n(232),l=n(30),c=n(584),f=n(67),p=n(20),d=n(31),h=n(176),m=n(177),v=n(105),g=n(86),y=n(178),b=n(102);function _(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(g.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&_(e,i)}))}function E(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function O(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(b.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Object(y.a)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(x(o)+a,"px"),n=Object(l.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(x(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){Object(m.a)(this,e),this.modals=[],this.containers=[]}return Object(v.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mountNode,e.modalRef,r,!0);var i=E(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=O(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&_(e.modalRef,!0),w(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&_(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),D=n(585),S={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},k=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,u=Object(r.a)(e,["invisible","open"]);return s?o.createElement("div",Object(i.a)({"aria-hidden":!0,ref:t},u,{style:Object(i.a)({},S.root,a?S.invisible:{},u.style)})):null}));var A=new C,T=o.forwardRef((function(e,t){var n=Object(s.a)(),m=Object(u.a)({name:"MuiModal",props:Object(i.a)({},e),theme:n}),v=m.BackdropComponent,g=void 0===v?k:v,y=m.BackdropProps,b=m.children,x=m.closeAfterTransition,w=void 0!==x&&x,E=m.container,O=m.disableAutoFocus,C=void 0!==O&&O,S=m.disableBackdropClick,T=void 0!==S&&S,P=m.disableEnforceFocus,M=void 0!==P&&P,j=m.disableEscapeKeyDown,I=void 0!==j&&j,F=m.disablePortal,R=void 0!==F&&F,L=m.disableRestoreFocus,z=void 0!==L&&L,B=m.disableScrollLock,N=void 0!==B&&B,U=m.hideBackdrop,V=void 0!==U&&U,H=m.keepMounted,W=void 0!==H&&H,G=m.manager,q=void 0===G?A:G,$=m.onBackdropClick,Y=m.onClose,Z=m.onEscapeKeyDown,X=m.onRendered,K=m.open,J=Object(r.a)(m,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),ee=Q[0],te=Q[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=Object(p.a)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(m),se=function(){return Object(l.a)(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},le=function(){q.mount(ue(),{disableScrollLock:N}),ie.current.scrollTop=0},ce=Object(d.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(E)||se().body;q.add(ue(),e),ie.current&&le()})),fe=o.useCallback((function(){return q.isTopModal(ue())}),[q]),pe=Object(d.a)((function(e){re.current=e,e&&(X&&X(),K&&fe()?le():_(ie.current,!0))})),de=o.useCallback((function(){q.remove(ue())}),[q]);if(o.useEffect((function(){return function(){de()}}),[de]),o.useEffect((function(){K?ce():ae&&w||de()}),[K,de,ae,w,ce]),!W&&!K&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.a}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=Object(f.a)((function(){te(!1)}),b.props.onEnter),me.onExited=Object(f.a)((function(){te(!0),w&&de()}),b.props.onExited)),o.createElement(c.a,{ref:pe,container:E,disablePortal:R},o.createElement("div",Object(i.a)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Z&&Z(e),I||(e.stopPropagation(),Y&&Y(e,"escapeKeyDown")))},role:"presentation"},J,{style:Object(i.a)({},he.root,!K&&ee?he.hidden:{},J.style)}),V?null:o.createElement(g,Object(i.a)({open:K,onClick:function(e){e.target===e.currentTarget&&($&&$(e),!T&&Y&&Y(e,"backdropClick"))}},y)),o.createElement(D.a,{disableEnforceFocus:M,disableAutoFocus:C,disableRestoreFocus:z,getDoc:se,isEnabled:fe,open:K},o.cloneElement(b,me))))}));t.a=T},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(19),a=n(0),s=(n(3),n(2)),u=n(7),l=n(10),c=n(596),f=n(586),p=n(385),d=n(50),h=n(194),m={enter:d.b.enteringScreen,exit:d.b.leavingScreen},v=a.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,u=e.classes,d=e.className,v=e.disableBackdropClick,g=void 0!==v&&v,y=e.disableEscapeKeyDown,b=void 0!==y&&y,_=e.fullScreen,x=void 0!==_&&_,w=e.fullWidth,E=void 0!==w&&w,O=e.maxWidth,C=void 0===O?"sm":O,D=e.onBackdropClick,S=e.onClose,k=e.onEnter,A=e.onEntered,T=e.onEntering,P=e.onEscapeKeyDown,M=e.onExit,j=e.onExited,I=e.onExiting,F=e.open,R=e.PaperComponent,L=void 0===R?h.a:R,z=e.PaperProps,B=void 0===z?{}:z,N=e.scroll,U=void 0===N?"paper":N,V=e.TransitionComponent,H=void 0===V?p.a:V,W=e.transitionDuration,G=void 0===W?m:W,q=e.TransitionProps,$=e["aria-describedby"],Y=e["aria-labelledby"],Z=Object(i.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),X=a.useRef();return a.createElement(c.a,Object(r.a)({className:Object(s.a)(u.root,d),BackdropComponent:f.a,BackdropProps:Object(r.a)({transitionDuration:G},n),closeAfterTransition:!0},g?{disableBackdropClick:g}:{},{disableEscapeKeyDown:b,onEscapeKeyDown:P,onClose:S,open:F,ref:t},Z),a.createElement(H,Object(r.a)({appear:!0,in:F,timeout:G,onEnter:k,onEntering:T,onEntered:A,onExit:M,onExiting:I,onExited:j,role:"none presentation"},q),a.createElement("div",{className:Object(s.a)(u.container,u["scroll".concat(Object(l.a)(U))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===X.current&&(X.current=null,D&&D(e),!g&&S&&S(e,"backdropClick"))},onMouseDown:function(e){X.current=e.target}},a.createElement(L,Object(r.a)({elevation:24,role:"dialog","aria-describedby":$,"aria-labelledby":Y},B,{className:Object(s.a)(u.paper,u["paperScroll".concat(Object(l.a)(U))],u["paperWidth".concat(Object(l.a)(String(C)))],B.className,x&&u.paperFullScreen,E&&u.paperFullWidth)}),o))))}));t.a=Object(u.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(v)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r,i=n(1),o=n(4),a=n(0),s=n.n(a),u=(n(3),n(583)),l=n(54),c=n(390),f=Object(l.c)(Object(c.a)()),p={disableGeneration:!1,generateClassName:Object(u.a)(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},d=s.a.createContext(p);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,u=e.disableGeneration,f=void 0!==u&&u,p=Object(o.a)(e,["children","injectFirst","disableGeneration"]),h=s.a.useContext(d),m=Object(i.a)({},h,{disableGeneration:f},p);if(!m.jss.options.insertionPoint&&a&&"undefined"!==typeof window){if(!r){var v=document.head;r=document.createComment("mui-inject-first"),v.insertBefore(r,v.firstChild)}m.jss=Object(l.c)({plugins:Object(c.a)().plugins,insertionPoint:r})}return s.a.createElement(d.Provider,{value:m},t)}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.dividers,l=void 0!==u&&u,c=Object(i.a)(e,["classes","className","dividers"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,l&&n.dividers),ref:t},c))}));t.a=Object(s.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(u)},function(e,t,n){"use strict";var r=n(1),i=n(0),o=(n(3),n(7)),a=n(110),s=i.forwardRef((function(e,t){return i.createElement(a.a,Object(r.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));t.a=Object(o.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=o.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,u=e.classes,l=e.className,c=Object(i.a)(e,["disableSpacing","classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(u.root,l,!s&&u.spacing),ref:t},c))}));t.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=(n(3),n(2)),s=n(7),u=n(159),l=n(10),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,f=e.color,p=void 0===f?"default":f,d=e.component,h=void 0===d?"button":d,m=e.disabled,v=void 0!==m&&m,g=e.disableFocusRipple,y=void 0!==g&&g,b=e.focusVisibleClassName,_=e.size,x=void 0===_?"large":_,w=e.variant,E=void 0===w?"circular":w,O=Object(r.a)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return o.createElement(u.a,Object(i.a)({className:Object(a.a)(s.root,c,"large"!==x&&s["size".concat(Object(l.a)(x))],v&&s.disabled,"extended"===E&&s.extended,{primary:s.primary,secondary:s.secondary,inherit:s.colorInherit}[p]),component:h,disabled:v,focusRipple:!y,focusVisibleClassName:Object(a.a)(s.focusVisible,b),ref:t},O),o.createElement("span",{className:s.label},n))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(74),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(i.a)(e,["classes","className"]),c=o.useContext(u.a);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"flex-start"===c.alignItems&&n.alignItemsFlexStart),ref:t},l))}));t.a=Object(s.a)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(110),l=n(74),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,f=e.disableTypography,p=void 0!==f&&f,d=e.inset,h=void 0!==d&&d,m=e.primary,v=e.primaryTypographyProps,g=e.secondary,y=e.secondaryTypographyProps,b=Object(i.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),_=o.useContext(l.a).dense,x=null!=m?m:n;null==x||x.type===u.a||p||(x=o.createElement(u.a,Object(r.a)({variant:_?"body2":"body1",className:s.primary,component:"span",display:"block"},v),x));var w=g;return null==w||w.type===u.a||p||(w=o.createElement(u.a,Object(r.a)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},y),w)),o.createElement("div",Object(r.a)({className:Object(a.a)(s.root,c,_&&s.dense,h&&s.inset,x&&w&&s.multiline),ref:t},b),x,w)}));t.a=Object(s.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=Object(i.a)(e,["classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s),ref:t},u))}));u.muiName="ListItemSecondaryAction",t.a=Object(s.a)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=(n(3),n(2)),s=n(7),u=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var f=o.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,u=e.alignItems,l=void 0===u?"stretch":u,c=e.classes,f=e.className,p=e.component,d=void 0===p?"div":p,h=e.container,m=void 0!==h&&h,v=e.direction,g=void 0===v?"row":v,y=e.item,b=void 0!==y&&y,_=e.justify,x=e.justifyContent,w=void 0===x?"flex-start":x,E=e.lg,O=void 0!==E&&E,C=e.md,D=void 0!==C&&C,S=e.sm,k=void 0!==S&&S,A=e.spacing,T=void 0===A?0:A,P=e.wrap,M=void 0===P?"wrap":P,j=e.xl,I=void 0!==j&&j,F=e.xs,R=void 0!==F&&F,L=e.zeroMinWidth,z=void 0!==L&&L,B=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),N=Object(a.a)(c.root,f,m&&[c.container,0!==T&&c["spacing-xs-".concat(String(T))]],b&&c.item,z&&c.zeroMinWidth,"row"!==g&&c["direction-xs-".concat(String(g))],"wrap"!==M&&c["wrap-xs-".concat(String(M))],"stretch"!==l&&c["align-items-xs-".concat(String(l))],"stretch"!==s&&c["align-content-xs-".concat(String(s))],"flex-start"!==(_||w)&&c["justify-content-xs-".concat(String(_||w))],!1!==R&&c["grid-xs-".concat(String(R))],!1!==k&&c["grid-sm-".concat(String(k))],!1!==D&&c["grid-md-".concat(String(D))],!1!==O&&c["grid-lg-".concat(String(O))],!1!==I&&c["grid-xl-".concat(String(I))]);return o.createElement(d,Object(i.a)({className:N,ref:t},B))})),p=Object(s.a)((function(e){return Object(i.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return u.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(c(i,2)),width:"calc(100% + ".concat(c(i),")"),"& > $item":{padding:c(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};l.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(i.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(f);t.a=p},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(19),a=n(0),s=(n(3),n(2)),u=n(7),l=a.forwardRef((function(e,t){var n=e.classes,o=e.className,u=e.component,l=void 0===u?"div":u,c=e.disableGutters,f=void 0!==c&&c,p=e.variant,d=void 0===p?"regular":p,h=Object(i.a)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(l,Object(r.a)({className:Object(s.a)(n.root,n[d],o,!f&&n.gutters),ref:t},h))}));t.a=Object(u.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(o.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(197),u=n(7),l=o.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,c=void 0!==l&&l,f=e.inputComponent,p=void 0===f?"input":f,d=e.multiline,h=void 0!==d&&d,m=e.type,v=void 0===m?"text":m,g=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(s.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:c,inputComponent:p,multiline:h,ref:t,type:v},g))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(197),u=n(7),l=o.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,c=void 0!==l&&l,f=e.inputComponent,p=void 0===f?"input":f,d=e.multiline,h=void 0!==d&&d,m=e.type,v=void 0===m?"text":m,g=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(s.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:c,inputComponent:p,multiline:h,ref:t,type:v},g))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(12),l=o.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,u=e.classes,l=e.className,c=e.component,f=void 0===c?"hr":c,p=e.flexItem,d=void 0!==p&&p,h=e.light,m=void 0!==h&&h,v=e.orientation,g=void 0===v?"horizontal":v,y=e.role,b=void 0===y?"hr"!==f?"separator":void 0:y,_=e.variant,x=void 0===_?"fullWidth":_,w=Object(i.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(f,Object(r.a)({className:Object(a.a)(u.root,l,"fullWidth"!==x&&u[x],s&&u.absolute,d&&u.flexItem,m&&u.light,"vertical"===g&&u.vertical),role:b,ref:t},w))}));t.a=Object(s.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(u.a)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,f=e.component,p=void 0===f?"li":f,d=e.disableGutters,h=void 0!==d&&d,m=e.disableSticky,v=void 0!==m&&m,g=e.inset,y=void 0!==g&&g,b=Object(i.a)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return o.createElement(p,Object(r.a)({className:Object(a.a)(n.root,s,"default"!==c&&n["color".concat(Object(u.a)(c))],y&&n.inset,!v&&n.sticky,!h&&n.gutters),ref:t},b))}));t.a=Object(s.a)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l=n(194),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,f=void 0===c?"primary":c,p=e.position,d=void 0===p?"fixed":p,h=Object(i.a)(e,["classes","className","color","position"]);return o.createElement(l.a,Object(r.a)({square:!0,component:"header",elevation:4,className:Object(a.a)(n.root,n["position".concat(Object(u.a)(d))],n["color".concat(Object(u.a)(f))],s,"fixed"===d&&"mui-fixed"),ref:t},h))}));t.a=Object(s.a)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(c)},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(1),i=n(4),o=n(0),a=(n(3),n(232)),s=n(66),u=n.n(s),l=n(34),c=n(79),f=n(589),p=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?c.b.indexOf(e)<=c.b.indexOf(t):c.b.indexOf(e)<c.b.indexOf(t)},d=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?c.b.indexOf(t)<=c.b.indexOf(e):c.b.indexOf(t)<c.b.indexOf(e)},h="undefined"===typeof window?o.useEffect:o.useLayoutEffect;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,s=void 0!==n&&n,c=e.noSSR,p=void 0!==c&&c,d=e.initialWidth;function m(e){var n=Object(l.a)(),u=e.theme||n,c=Object(a.a)({theme:u,name:"MuiWithWidth",props:Object(r.a)({},e)}),m=c.initialWidth,v=c.width,g=Object(i.a)(c,["initialWidth","width"]),y=o.useState(!1),b=y[0],_=y[1];h((function(){_(!0)}),[]);var x=u.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=Object(f.a)(u.breakpoints.up(t));return!e&&n?t:e}),null),w=Object(r.a)({width:v||(b||p?x:void 0)||m||d},s?{theme:u}:{},g);return void 0===w.width?null:o.createElement(t,w)}return u()(m,t),m}}},function(e,t,n){"use strict";var r=n(1),i=n(0),o=n.n(i),a=(n(3),n(171)),s=n(195),u=n(173);t.a=function(e){var t=e.children,n=e.theme,i=Object(s.a)(),l=o.a.useMemo((function(){var e=null===i?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)({},e,t)}(i,n);return null!=e&&(e[u.a]=null!==i),e}),[n,i]);return o.a.createElement(a.a.Provider,{value:l},t)}},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=(n(3),n(2)),s=n(7),u=n(10),l=n(12),c=n(184),f=n(104),p=o.forwardRef((function(e,t){var n,s,l=e.align,p=void 0===l?"inherit":l,d=e.classes,h=e.className,m=e.component,v=e.padding,g=e.scope,y=e.size,b=e.sortDirection,_=e.variant,x=Object(r.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),w=o.useContext(c.a),E=o.useContext(f.a),O=E&&"head"===E.variant;m?(s=m,n=O?"columnheader":"cell"):s=O?"th":"td";var C=g;!C&&O&&(C="col");var D=v||(w&&w.padding?w.padding:"normal"),S=y||(w&&w.size?w.size:"medium"),k=_||E&&E.variant,A=null;return b&&(A="asc"===b?"ascending":"descending"),o.createElement(s,Object(i.a)({ref:t,className:Object(a.a)(d.root,d[k],h,"inherit"!==p&&d["align".concat(Object(u.a)(p))],"normal"!==D&&d["padding".concat(Object(u.a)(D))],"medium"!==S&&d["size".concat(Object(u.a)(S))],"head"===k&&w&&w.stickyHeader&&d.stickyHeader),"aria-sort":A,role:n,scope:C},x))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Object(l.j)(Object(l.a)(e.palette.divider,1),.88):Object(l.b)(Object(l.a)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(p)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h}));var r=n(1),i=n(44),o=(n(101),n(0)),a=n(47),s=n(60),u=n(31),l=n(59);function c(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,s=void 0===a?"any":a,u=e.stringify,l=e.trim,f=void 0!==l&&l;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,l=f?r.trim():r;i&&(l=l.toLowerCase()),n&&(l=c(l));var p=e.filter((function(e){var t=(u||a)(e);return i&&(t=t.toLowerCase()),n&&(t=c(t)),"start"===s?0===t.indexOf(l):t.indexOf(l)>-1}));return"number"===typeof o?p.slice(0,o):p}}function p(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var d=f();function h(e){var t=e.autoComplete,n=void 0!==t&&t,c=e.autoHighlight,f=void 0!==c&&c,h=e.autoSelect,m=void 0!==h&&h,v=e.blurOnSelect,g=void 0!==v&&v,y=e.clearOnBlur,b=void 0===y?!e.freeSolo:y,_=e.clearOnEscape,x=void 0!==_&&_,w=e.componentName,E=void 0===w?"useAutocomplete":w,O=e.debug,C=void 0!==O&&O,D=e.defaultValue,S=void 0===D?e.multiple?[]:null:D,k=e.disableClearable,A=void 0!==k&&k,T=e.disableCloseOnSelect,P=void 0!==T&&T,M=e.disabledItemsFocusable,j=void 0!==M&&M,I=e.disableListWrap,F=void 0!==I&&I,R=e.filterOptions,L=void 0===R?d:R,z=e.filterSelectedOptions,B=void 0!==z&&z,N=e.freeSolo,U=void 0!==N&&N,V=e.getOptionDisabled,H=e.getOptionLabel,W=void 0===H?function(e){return e}:H,G=e.getOptionSelected,q=void 0===G?function(e,t){return e===t}:G,$=e.groupBy,Y=e.handleHomeEndKeys,Z=void 0===Y?!e.freeSolo:Y,X=e.id,K=e.includeInputInList,J=void 0!==K&&K,Q=e.inputValue,ee=e.multiple,te=void 0!==ee&&ee,ne=e.onChange,re=e.onClose,ie=e.onHighlightChange,oe=e.onInputChange,ae=e.onOpen,se=e.open,ue=e.openOnFocus,le=void 0!==ue&&ue,ce=e.options,fe=e.selectOnFocus,pe=void 0===fe?!e.freeSolo:fe,de=e.value,he=Object(a.a)(X),me=W;var ve=o.useRef(!1),ge=o.useRef(!0),ye=o.useRef(null),be=o.useRef(null),_e=o.useState(null),xe=_e[0],we=_e[1],Ee=o.useState(-1),Oe=Ee[0],Ce=Ee[1],De=f?0:-1,Se=o.useRef(De),ke=Object(s.a)({controlled:de,default:S,name:E}),Ae=Object(i.a)(ke,2),Te=Ae[0],Pe=Ae[1],Me=Object(s.a)({controlled:Q,default:"",name:E,state:"inputValue"}),je=Object(i.a)(Me,2),Ie=je[0],Fe=je[1],Re=o.useState(!1),Le=Re[0],ze=Re[1],Be=Object(u.a)((function(e,t){var n;if(te)n="";else if(null==t)n="";else{var r=me(t);n="string"===typeof r?r:""}Ie!==n&&(Fe(n),oe&&oe(e,n,"reset"))}));o.useEffect((function(){Be(null,Te)}),[Te,Be]);var Ne=Object(s.a)({controlled:se,default:!1,name:E,state:"open"}),Ue=Object(i.a)(Ne,2),Ve=Ue[0],He=Ue[1],We=!te&&null!=Te&&Ie===me(Te),Ge=Ve,qe=Ge?L(ce.filter((function(e){return!B||!(te?Te:[Te]).some((function(t){return null!==t&&q(e,t)}))})),{inputValue:We?"":Ie,getOptionLabel:me}):[],$e=Object(u.a)((function(e){-1===e?ye.current.focus():xe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));o.useEffect((function(){te&&Oe>Te.length-1&&(Ce(-1),$e(-1))}),[Te,te,Oe,$e]);var Ye=Object(u.a)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(Se.current=n,-1===n?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant","".concat(he,"-option-").concat(n)),ie&&ie(t,-1===n?null:qe[n],i),be.current){var o=be.current.querySelector("[data-focus]");o&&o.removeAttribute("data-focus");var a=be.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=be.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==i)){var u=s,l=a.clientHeight+a.scrollTop,c=u.offsetTop+u.offsetHeight;c>l?a.scrollTop=c-a.clientHeight:u.offsetTop-u.offsetHeight*($?1.3:0)<a.scrollTop&&(a.scrollTop=u.offsetTop-u.offsetHeight*($?1.3:0))}}else a.scrollTop=0}})),Ze=Object(u.a)((function(e){var t=e.event,r=e.diff,i=e.direction,o=void 0===i?"next":i,a=e.reason,s=void 0===a?"auto":a;if(Ge){var u=function(e,t){if(!be.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===qe.length||"previous"===t&&-1===n)return-1;var r=be.current.querySelector('[data-option-index="'.concat(n,'"]')),i=!j&&(r&&(r.disabled||"true"===r.getAttribute("aria-disabled")));if(!(r&&!r.hasAttribute("tabindex")||i))return n;n+="next"===t?1:-1}}(function(){var e=qe.length-1;if("reset"===r)return De;if("start"===r)return 0;if("end"===r)return e;var t=Se.current+r;return t<0?-1===t&&J?-1:F&&-1!==Se.current||Math.abs(r)>1?0:e:t>e?t===e+1&&J?-1:F||Math.abs(r)>1?e:0:t}(),o);if(Ye({index:u,reason:s,event:t}),n&&"reset"!==r)if(-1===u)ye.current.value=Ie;else{var l=me(qe[u]);ye.current.value=l,0===l.toLowerCase().indexOf(Ie.toLowerCase())&&Ie.length>0&&ye.current.setSelectionRange(Ie.length,l.length)}}})),Xe=o.useCallback((function(){if(Ge){var e=te?Te[0]:Te;if(0!==qe.length&&null!=e){if(be.current)if(B||null==e)Se.current>=qe.length-1?Ye({index:qe.length-1}):Ye({index:Se.current});else{var t=qe[Se.current];if(te&&t&&-1!==p(Te,(function(e){return q(t,e)})))return;var n=p(qe,(function(t){return q(t,e)}));-1===n?Ze({diff:"reset"}):Ye({index:n})}}else Ze({diff:"reset"})}}),[0===qe.length,!te&&Te,B,Ze,Ye,Ge,Ie,te]),Ke=Object(u.a)((function(e){Object(l.a)(be,e),e&&Xe()}));o.useEffect((function(){Xe()}),[Xe]);var Je=function(e){Ve||(He(!0),ae&&ae(e))},Qe=function(e,t){Ve&&(He(!1),re&&re(e,t))},et=function(e,t,n,r){Te!==t&&(ne&&ne(e,t,n,r),Pe(t))},tt=o.useRef(!1),nt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,o=t;if(te){var a=p(o=Array.isArray(Te)?Te.slice():[],(function(e){return q(t,e)}));-1===a?o.push(t):"freeSolo"!==r&&(o.splice(a,1),i="remove-option")}Be(e,o),et(e,o,i,{option:t}),P||Qe(e,i),(!0===g||"touch"===g&&tt.current||"mouse"===g&&!tt.current)&&ye.current.blur()};var rt=function(e,t){if(te){Qe(e,"toggleInput");var n=Oe;-1===Oe?""===Ie&&"previous"===t&&(n=Te.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Te.length||"previous"===t&&-1===n)return-1;var r=xe.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Ce(n),$e(n)}},it=function(e){ve.current=!0,Fe(""),oe&&oe(e,"","clear"),et(e,te?[]:null,"clear")},ot=function(e){return function(t){switch(-1!==Oe&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ce(-1),$e(-1)),t.key){case"Home":Ge&&Z&&(t.preventDefault(),Ze({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ge&&Z&&(t.preventDefault(),Ze({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ze({diff:-5,direction:"previous",reason:"keyboard",event:t}),Je(t);break;case"PageDown":t.preventDefault(),Ze({diff:5,direction:"next",reason:"keyboard",event:t}),Je(t);break;case"ArrowDown":t.preventDefault(),Ze({diff:1,direction:"next",reason:"keyboard",event:t}),Je(t);break;case"ArrowUp":t.preventDefault(),Ze({diff:-1,direction:"previous",reason:"keyboard",event:t}),Je(t);break;case"ArrowLeft":rt(t,"previous");break;case"ArrowRight":rt(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==Se.current&&Ge){var r=qe[Se.current],i=!!V&&V(r);if(t.preventDefault(),i)return;nt(t,r,"select-option"),n&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else U&&""!==Ie&&!1===We&&(te&&t.preventDefault(),nt(t,Ie,"create-option","freeSolo"));break;case"Escape":Ge?(t.preventDefault(),t.stopPropagation(),Qe(t,"escape")):x&&(""!==Ie||te&&Te.length>0)&&(t.preventDefault(),t.stopPropagation(),it(t));break;case"Backspace":if(te&&""===Ie&&Te.length>0){var o=-1===Oe?Te.length-1:Oe,a=Te.slice();a.splice(o,1),et(t,a,"remove-option",{option:Te[o]})}}e.onKeyDown&&e.onKeyDown(t)}},at=function(e){ze(!0),le&&!ve.current&&Je(e)},st=function(e){null===be.current||document.activeElement!==be.current.parentElement?(ze(!1),ge.current=!0,ve.current=!1,C&&""!==Ie||(m&&-1!==Se.current&&Ge?nt(e,qe[Se.current],"blur"):m&&U&&""!==Ie?nt(e,Ie,"blur","freeSolo"):b&&Be(e,Te),Qe(e,"blur"))):ye.current.focus()},ut=function(e){var t=e.target.value;Ie!==t&&(Fe(t),oe&&oe(e,t,"input")),""===t?A||te||et(e,null,"clear"):Je(e)},lt=function(e){Ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ct=function(){tt.current=!0},ft=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));nt(e,qe[t],"select-option"),tt.current=!1},pt=function(e){return function(t){var n=Te.slice();n.splice(e,1),et(t,n,"remove-option",{option:Te[e]})}},dt=function(e){Ve?Qe(e,"toggleInput"):Je(e)},ht=function(e){e.target.getAttribute("id")!==he&&e.preventDefault()},mt=function(){ye.current.focus(),pe&&ge.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),ge.current=!1},vt=function(e){""!==Ie&&Ve||dt(e)},gt=U&&Ie.length>0;gt=gt||(te?Te.length>0:null!==Te);var yt=qe;if($){new Map;yt=qe.reduce((function(e,t,n){var r=$(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r.a)({"aria-owns":Ge?"".concat(he,"-popup"):null,role:"combobox","aria-expanded":Ge},e,{onKeyDown:ot(e),onMouseDown:ht,onClick:mt})},getInputLabelProps:function(){return{id:"".concat(he,"-label"),htmlFor:he}},getInputProps:function(){return{id:he,value:Ie,onBlur:st,onFocus:at,onChange:ut,onMouseDown:vt,"aria-activedescendant":Ge?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ge?"".concat(he,"-popup"):null,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:it}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:dt}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:pt(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(he,"-popup"),"aria-labelledby":"".concat(he,"-label"),ref:Ke,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(te?Te:[Te]).some((function(e){return null!=e&&q(n,e)})),i=!!V&&V(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(he,"-option-").concat(t),onMouseOver:lt,onClick:ft,onTouchStart:ct,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:he,inputValue:Ie,value:Te,dirty:gt,popupOpen:Ge,focused:Le||-1!==Oe,anchorEl:xe,setAnchorEl:we,focusedTag:Oe,groupedOptions:yt}}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(110),u=n(7),l=n(88),c=o.forwardRef((function(e,t){var n=e.children,u=e.classes,c=e.className,f=e.component,p=void 0===f?"div":f,d=e.disablePointerEvents,h=void 0!==d&&d,m=e.disableTypography,v=void 0!==m&&m,g=e.position,y=e.variant,b=Object(i.a)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),_=Object(l.b)()||{},x=y;return y&&_.variant,_&&!x&&(x=_.variant),o.createElement(l.a.Provider,{value:null},o.createElement(p,Object(r.a)({className:Object(a.a)(u.root,c,"end"===g?u.positionEnd:u.positionStart,h&&u.disablePointerEvents,_.hiddenLabel&&u.hiddenLabel,"filled"===x&&u.filled,"dense"===_.margin&&u.marginDense),ref:t},b),"string"!==typeof n||v?n:o.createElement(s.a,{color:"textSecondary"},n)))}));t.a=Object(u.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(19),a=n(0),s=(n(3),n(2)),u=n(7),l=n(10),c=a.forwardRef((function(e,t){var n=e.classes,o=e.className,u=e.component,c=void 0===u?"div":u,f=e.disableGutters,p=void 0!==f&&f,d=e.fixed,h=void 0!==d&&d,m=e.maxWidth,v=void 0===m?"lg":m,g=Object(i.a)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return a.createElement(c,Object(r.a)({className:Object(s.a)(n.root,o,h&&n.fixed,p&&n.disableGutters,!1!==v&&n["maxWidth".concat(Object(l.a)(String(v)))]),ref:t},g))}));t.a=Object(u.a)((function(e){return{root:Object(o.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Object(o.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(o.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(o.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(o.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(o.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(159),u=n(120),l=n(7),c=n(185),f=o.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,p=e.expandIcon,d=e.focusVisibleClassName,h=e.IconButtonProps,m=void 0===h?{}:h,v=e.onClick,g=Object(i.a)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),y=o.useContext(c.a),b=y.disabled,_=void 0!==b&&b,x=y.expanded,w=y.toggle;return o.createElement(s.a,Object(r.a)({focusRipple:!1,disableRipple:!0,disabled:_,component:"div","aria-expanded":x,className:Object(a.a)(l.root,f,_&&l.disabled,x&&l.expanded),focusVisibleClassName:Object(a.a)(l.focusVisible,l.focused,d),onClick:function(e){w&&w(e),v&&v(e)},ref:t},g),o.createElement("div",{className:Object(a.a)(l.content,x&&l.expanded)},n),p&&o.createElement(u.a,Object(r.a)({className:Object(a.a)(l.expandIcon,x&&l.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},m),p))}));t.a=Object(l.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(f)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=Object(i.a)(e,["classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s),ref:t},u))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(u)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,l=void 0===u?"div":u,c=Object(i.a)(e,["classes","className","component"]);return o.createElement(l,Object(r.a)({ref:t,className:Object(a.a)(n.root,s)},c))}));t.a=Object(s.a)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(1),o=n(0),a=(n(3),n(2)),s=n(7),u=n(184),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"table":l,f=e.padding,p=void 0===f?"normal":f,d=e.size,h=void 0===d?"medium":d,m=e.stickyHeader,v=void 0!==m&&m,g=Object(r.a)(e,["classes","className","component","padding","size","stickyHeader"]),y=o.useMemo((function(){return{padding:p,size:h,stickyHeader:v}}),[p,h,v]);return o.createElement(u.a.Provider,{value:y},o.createElement(c,Object(i.a)({role:"table"===c?null:"table",ref:t,className:Object(a.a)(n.root,s,v&&n.stickyHeader)},g)))}));t.a=Object(s.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(i.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(l)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(104),l={variant:"head"},c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,f=void 0===c?"thead":c,p=Object(i.a)(e,["classes","className","component"]);return o.createElement(u.a.Provider,{value:l},o.createElement(f,Object(r.a)({className:Object(a.a)(n.root,s),ref:t,role:"thead"===f?null:"rowgroup"},p)))}));t.a=Object(s.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(104),l=n(12),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"tr":l,f=e.hover,p=void 0!==f&&f,d=e.selected,h=void 0!==d&&d,m=Object(i.a)(e,["classes","className","component","hover","selected"]),v=o.useContext(u.a);return o.createElement(c,Object(r.a)({ref:t,className:Object(a.a)(n.root,s,v&&{head:n.head,footer:n.footer}[v.variant],p&&n.hover,h&&n.selected),role:"tr"===c?null:"row"},m))}));t.a=Object(s.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:Object(l.a)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(104),l={variant:"body"},c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,f=void 0===c?"tbody":c,p=Object(i.a)(e,["classes","className","component"]);return o.createElement(u.a.Provider,{value:l},o.createElement(f,Object(r.a)({className:Object(a.a)(n.root,s),ref:t,role:"tbody"===f?null:"rowgroup"},p)))}));t.a=Object(s.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(222),i=n.n(r),o=n(21),a=n.n(o),s=n(0),u=n.n(s),l=n(359),c=n.n(l),f=n(6),p=n(89);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})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t<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)}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 v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(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&&v(e,t)}(s,e);var t,n,r,o=g(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).handleResize=void 0,t.mounted=void 0,t.containerRef=void 0,t.updateDimensionsImmediate=function(){if(t.mounted){var e=t.getContainerSize();if(e){var n=t.state,r=n.containerWidth,i=n.containerHeight,o=e.containerWidth,a=e.containerHeight;o===r&&a===i||t.setState({containerWidth:o,containerHeight:a})}}},t.state={containerWidth:-1,containerHeight:-1},t.handleResize=e.debounce>0?i()(t.updateDimensionsImmediate,e.debounce):t.updateDimensionsImmediate,t.containerRef=u.a.createRef(),t}return t=s,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.containerRef.current?{containerWidth:this.containerRef.current.clientWidth,containerHeight:this.containerRef.current.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,i=r.aspect,o=r.width,a=r.height,s=r.minWidth,l=r.minHeight,c=r.maxHeight,d=r.children;Object(p.a)(Object(f.h)(o)||Object(f.h)(a),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",o,a),Object(p.a)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var h=Object(f.h)(o)?t:o,m=Object(f.h)(a)?n:a;return i&&i>0&&(h?m=h/i:m&&(h=m*i),c&&m>c&&(m=c)),Object(p.a)(h>0||m>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",h,m,o,a,s,l,i),u.a.cloneElement(d,{width:h,height:m})}},{key:"render",value:function(){var e=this.props,t=e.minWidth,n=e.minHeight,r=e.width,i=e.height,o=e.maxHeight,s=e.id,l=e.className,f={width:r,height:i,minWidth:t,minHeight:n,maxHeight:o};return u.a.createElement(c.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize,targetRef:this.containerRef},u.a.createElement("div",h({},null!=s?{id:"".concat(s)}:{},{className:a()("recharts-responsive-container",l),style:f,ref:this.containerRef}),this.renderChart()))}}])&&m(t.prototype,n),r&&m(t,r),s}(s.Component);_.defaultProps={width:"100%",height:"100%",debounce:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(360),i=n(380),o=n(374),a=n(375),s=n(91),u=Object(r.a)({chartName:"LineChart",GraphicalChild:i.a,axisComponents:[{axisType:"xAxis",AxisComp:o.a},{axisType:"yAxis",AxisComp:a.a}],formatAxisMap:s.b})},function(e,t,n){"use strict";var r=Math.PI,i=2*r,o=i-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new a}a.prototype=s.prototype={constructor:a,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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,i,o){e=+e,t=+t,n=+n,i=+i,o=+o;var a=this._x1,s=this._y1,u=n-e,l=i-t,c=a-e,f=s-t,p=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>1e-6)if(Math.abs(f*u-l*c)>1e-6&&o){var d=n-a,h=i-s,m=u*u+l*l,v=d*d+h*h,g=Math.sqrt(m),y=Math.sqrt(p),b=o*Math.tan((r-Math.acos((m+p-v)/(2*g*y)))/2),_=b/y,x=b/g;Math.abs(_-1)>1e-6&&(this._+="L"+(e+_*c)+","+(t+_*f)),this._+="A"+o+","+o+",0,0,"+ +(f*d>c*h)+","+(this._x1=e+x*u)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,a,s,u){e=+e,t=+t,u=!!u;var l=(n=+n)*Math.cos(a),c=n*Math.sin(a),f=e+l,p=t+c,d=1^u,h=u?a-s:s-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+p:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&(this._+="L"+f+","+p),n&&(h<0&&(h=h%i+i),h>o?this._+="A"+n+","+n+",0,1,"+d+","+(e-l)+","+(t-c)+"A"+n+","+n+",0,1,"+d+","+(this._x1=f)+","+(this._y1=p):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=r)+","+d+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*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._}},t.a=s},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(15),i=n.n(r),o=n(0),a=n.n(o),s=n(6),u=n(17);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})(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}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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 m(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 g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var i=_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(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&&g(e,t)}(l,e);var t,n,r,o=y(l);function l(){return m(this,l),o.apply(this,arguments)}return t=l,r=[{key:"renderLineItem",value:function(e,t){var n;if(a.a.isValidElement(e))n=a.a.cloneElement(e,t);else if(i()(e))n=e(t);else{var r=t.x1,o=t.y1,s=t.x2,l=t.y2,p=t.key,d=f(t,["x1","y1","x2","y2","key"]);n=a.a.createElement("line",c({},Object(u.c)(d),{x1:r,y1:o,x2:s,y2:l,fill:"none",key:p}))}return n}}],(n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,i=n.width,o=n.horizontal;if(!e||!e.length)return null;var s=e.map((function(e,n){var a=d(d({},t.props),{},{x1:r,y1:e,x2:r+i,y2:e,key:"line-".concat(n),index:n});return l.renderLineItem(o,a)}));return a.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,i=n.height,o=n.vertical;if(!e||!e.length)return null;var s=e.map((function(e,n){var a=d(d({},t.props),{},{x1:e,y1:r,x2:e,y2:r+i,key:"line-".concat(n),index:n});return l.renderLineItem(o,a)}));return a.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,s=n.width,u=n.height,l=e.slice().sort((function(e,t){return e-t}));i!==l[0]&&l.unshift(0);var c=l.map((function(e,n){var c=l[n+1]?l[n+1]-e:i+s-e;if(c<=0)return null;var f=n%t.length;return a.a.createElement("rect",{key:"react-".concat(n),x:Math.round(e+i-i),y:o,width:c,height:u,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return a.a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,s=n.width,u=n.height,l=e.slice().sort((function(e,t){return e-t}));o!==l[0]&&l.unshift(0);var c=l.map((function(e,n){var c=l[n+1]?l[n+1]-e:o+u-e;if(c<=0)return null;var f=n%t.length;return a.a.createElement("rect",{key:"react-".concat(n),y:Math.round(e+o-o),x:i,height:c,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return a.a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,i=t.y,o=t.width,s=t.height;return a.a.createElement("rect",{x:r,y:i,width:o,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,u=e.horizontal,l=e.vertical,c=e.horizontalCoordinatesGenerator,f=e.verticalCoordinatesGenerator,p=e.xAxis,d=e.yAxis,h=e.offset,m=e.chartWidth,v=e.chartHeight;if(!Object(s.g)(r)||r<=0||!Object(s.g)(o)||o<=0||!Object(s.g)(t)||t!==+t||!Object(s.g)(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,b=g.verticalPoints;return y&&y.length||!i()(c)||(y=c({yAxis:d,width:m,height:v,offset:h})),b&&b.length||!i()(f)||(b=f({xAxis:p,width:m,height:v,offset:h})),a.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(y),l&&this.renderVertical(b),u&&this.renderHorizontalStripes(y),l&&this.renderVerticalStripes(b))}}])&&v(t.prototype,n),r&&v(t,r),l}(o.PureComponent);x.displayName="CartesianGrid",x.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]}},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(10),u=n(7),l=n(81),c=n(20),f=n(110),p=o.forwardRef((function(e,t){var n=e.classes,u=e.className,p=e.color,d=void 0===p?"primary":p,h=e.component,m=void 0===h?"a":h,v=e.onBlur,g=e.onFocus,y=e.TypographyClasses,b=e.underline,_=void 0===b?"hover":b,x=e.variant,w=void 0===x?"inherit":x,E=Object(i.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),O=Object(l.a)(),C=O.isFocusVisible,D=O.onBlurVisible,S=O.ref,k=o.useState(!1),A=k[0],T=k[1],P=Object(c.a)(t,S);return o.createElement(f.a,Object(r.a)({className:Object(a.a)(n.root,n["underline".concat(Object(s.a)(_))],u,A&&n.focusVisible,"button"===m&&n.button),classes:y,color:d,component:m,onBlur:function(e){A&&(D(),T(!1)),v&&v(e)},onFocus:function(e){C(e)&&T(!0),g&&g(e)},ref:P,variant:w},E))}));t.a=Object(u.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(p)},function(e,t,n){"use strict";var r=n(1),i=n(0),o=(n(3),n(7)),a={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(e){return Object(r.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};t.a=Object(o.a)((function(e){return{"@global":{html:a,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(r.a)({margin:0},s(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,i.createElement(i.Fragment,null,n)}))},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(10),u=n(7),l=n(12),c=n(34),f=o.forwardRef((function(e,t){var n=e.classes,u=e.className,l=e.color,f=void 0===l?"primary":l,p=e.value,d=e.valueBuffer,h=e.variant,m=void 0===h?"indeterminate":h,v=Object(i.a)(e,["classes","className","color","value","valueBuffer","variant"]),g=Object(c.a)(),y={},b={bar1:{},bar2:{}};if("determinate"===m||"buffer"===m)if(void 0!==p){y["aria-valuenow"]=Math.round(p),y["aria-valuemin"]=0,y["aria-valuemax"]=100;var _=p-100;"rtl"===g.direction&&(_=-_),b.bar1.transform="translateX(".concat(_,"%)")}else 0;if("buffer"===m)if(void 0!==d){var x=(d||0)-100;"rtl"===g.direction&&(x=-x),b.bar2.transform="translateX(".concat(x,"%)")}else 0;return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,n["color".concat(Object(s.a)(f))],u,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[m]),role:"progressbar"},y,{ref:t},v),"buffer"===m?o.createElement("div",{className:Object(a.a)(n.dashed,n["dashedColor".concat(Object(s.a)(f))])}):null,o.createElement("div",{className:Object(a.a)(n.bar,n["barColor".concat(Object(s.a)(f))],("indeterminate"===m||"query"===m)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[m]),style:b.bar1}),"determinate"===m?null:o.createElement("div",{className:Object(a.a)(n.bar,("indeterminate"===m||"query"===m)&&n.bar2Indeterminate,"buffer"===m?[n["color".concat(Object(s.a)(f))],n.bar2Buffer]:n["barColor".concat(Object(s.a)(f))]),style:b.bar2}))}));t.a=Object(u.a)((function(e){var t=function(t){return"light"===e.palette.type?Object(l.j)(t,.62):Object(l.b)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r,i,o,a,s=n(90),u=n(230),l=n(96),c=function(e,t){var n=Object(l.b)(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},f={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:l.a,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return c(100*e,t)},r:c,s:function(e,t){var n=Object(l.b)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Object(l.b)(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},p=function(e){return e},d=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];i=function(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?p:(t=d.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?p:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(d.call(e.numerals,String)),m=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"\u2212":e.minus+"",g=void 0===e.nan?"NaN":e.nan+"";function y(e){var t=(e=Object(u.a)(e)).fill,n=e.align,s=e.sign,p=e.symbol,d=e.zero,y=e.width,b=e.comma,_=e.precision,x=e.trim,w=e.type;"n"===w?(b=!0,w="g"):f[w]||(void 0===_&&(_=12),x=!0,w="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var E="$"===p?o:"#"===p&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",O="$"===p?a:/[%p]/.test(w)?m:"",C=f[w],D=/[defgprs%]/.test(w);function S(e){var o,a,u,f=E,p=O;if("c"===w)p=C(e)+p,e="";else{var m=(e=+e)<0||1/e<0;if(e=isNaN(e)?g:C(Math.abs(e),_),x&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),m&&0===+e&&"+"!==s&&(m=!1),f=(m?"("===s?s:v:"-"===s||"("===s?"":s)+f,p=("s"===w?h[8+r/3]:"")+p+(m&&"("===s?")":""),D)for(o=-1,a=e.length;++o<a;)if(48>(u=e.charCodeAt(o))||u>57){p=(46===u?l+e.slice(o+1):e.slice(o))+p,e=e.slice(0,o);break}}b&&!d&&(e=i(e,1/0));var S=f.length+e.length+p.length,k=S<y?new Array(y-S+1).join(t):"";switch(b&&d&&(e=i(k+e,k.length?y-p.length:1/0),k=""),n){case"<":e=f+e+p+k;break;case"=":e=f+k+e+p;break;case"^":e=k.slice(0,S=k.length>>1)+f+e+p+k.slice(S);break;default:e=k+f+e+p}return c(e)}return _=void 0===_?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),S.toString=function(){return e+""},S}return{format:y,formatPrefix:function(e,t){var n=y(((e=Object(u.a)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(s.a)(t)/3))),i=Math.pow(10,-r),o=h[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),o=i.format,a=i.formatPrefix},function(e,t,n){"use strict";var r=n(4),i=n(19),o=n(1),a=n(0),s=(n(3),n(2)),u=n(7),l=n(236),c=n(657),f=n(194),p=n(120),d=n(27),h=Object(d.a)(a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),m=n(12),v=n(20),g=n(10),y=n(159);function b(e){return"Backspace"===e.key||"Delete"===e.key}var _=a.forwardRef((function(e,t){var n=e.avatar,i=e.classes,u=e.className,l=e.clickable,c=e.color,f=void 0===c?"default":c,p=e.component,d=e.deleteIcon,m=e.disabled,_=void 0!==m&&m,x=e.icon,w=e.label,E=e.onClick,O=e.onDelete,C=e.onKeyDown,D=e.onKeyUp,S=e.size,k=void 0===S?"medium":S,A=e.variant,T=void 0===A?"default":A,P=Object(r.a)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),M=a.useRef(null),j=Object(v.a)(M,t),I=function(e){e.stopPropagation(),O&&O(e)},F=!(!1===l||!E)||l,R="small"===k,L=p||(F?y.a:"div"),z=L===y.a?{component:"div"}:{},B=null;if(O){var N=Object(s.a)("default"!==f&&("default"===T?i["deleteIconColor".concat(Object(g.a)(f))]:i["deleteIconOutlinedColor".concat(Object(g.a)(f))]),R&&i.deleteIconSmall);B=d&&a.isValidElement(d)?a.cloneElement(d,{className:Object(s.a)(d.props.className,i.deleteIcon,N),onClick:I}):a.createElement(h,{className:Object(s.a)(i.deleteIcon,N),onClick:I})}var U=null;n&&a.isValidElement(n)&&(U=a.cloneElement(n,{className:Object(s.a)(i.avatar,n.props.className,R&&i.avatarSmall,"default"!==f&&i["avatarColor".concat(Object(g.a)(f))])}));var V=null;return x&&a.isValidElement(x)&&(V=a.cloneElement(x,{className:Object(s.a)(i.icon,x.props.className,R&&i.iconSmall,"default"!==f&&i["iconColor".concat(Object(g.a)(f))])})),a.createElement(L,Object(o.a)({role:F||O?"button":void 0,className:Object(s.a)(i.root,u,"default"!==f&&[i["color".concat(Object(g.a)(f))],F&&i["clickableColor".concat(Object(g.a)(f))],O&&i["deletableColor".concat(Object(g.a)(f))]],"default"!==T&&[i.outlined,{primary:i.outlinedPrimary,secondary:i.outlinedSecondary}[f]],_&&i.disabled,R&&i.sizeSmall,F&&i.clickable,O&&i.deletable),"aria-disabled":!!_||void 0,tabIndex:F||O?0:void 0,onClick:E,onKeyDown:function(e){e.currentTarget===e.target&&b(e)&&e.preventDefault(),C&&C(e)},onKeyUp:function(e){e.currentTarget===e.target&&(O&&b(e)?O(e):"Escape"===e.key&&M.current&&M.current.blur()),D&&D(e)},ref:j},z,P),U||V,a.createElement("span",{className:Object(s.a)(i.label,R&&i.labelSmall)},w),B)})),x=Object(u.a)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Object(m.a)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Object(m.d)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(m.d)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(m.d)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(m.d)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(m.d)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(m.d)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(m.a)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(m.a)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(m.a)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(m.a)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(m.a)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(m.a)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(m.a)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(m.a)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(_),w=Object(d.a)(a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),E=Object(d.a)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),O=n(662);function C(e){e.anchorEl,e.open;var t=Object(r.a)(e,["anchorEl","open"]);return a.createElement("div",t)}var D=a.createElement(w,{fontSize:"small"}),S=a.createElement(E,null),k=a.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,i=e.ChipProps,u=e.classes,d=e.className,h=e.clearOnBlur,m=(void 0===h&&e.freeSolo,e.clearOnEscape,e.clearText),v=void 0===m?"Clear":m,g=e.closeIcon,y=void 0===g?D:g,b=e.closeText,_=void 0===b?"Close":b,w=(e.debug,e.defaultValue),E=(void 0===w&&e.multiple,e.disableClearable),k=void 0!==E&&E,A=(e.disableCloseOnSelect,e.disabled),T=void 0!==A&&A,P=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),M=void 0!==P&&P,j=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),I=void 0===j?"auto":j,F=e.freeSolo,R=void 0!==F&&F,L=e.fullWidth,z=void 0!==L&&L,B=e.getLimitTagsText,N=void 0===B?function(e){return"+".concat(e)}:B,U=(e.getOptionDisabled,e.getOptionLabel),V=void 0===U?function(e){return e}:U,H=(e.getOptionSelected,e.groupBy),W=e.handleHomeEndKeys,G=(void 0===W&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),q=void 0===G?-1:G,$=e.ListboxComponent,Y=void 0===$?"ul":$,Z=e.ListboxProps,X=e.loading,K=void 0!==X&&X,J=e.loadingText,Q=void 0===J?"Loading\u2026":J,ee=e.multiple,te=void 0!==ee&&ee,ne=e.noOptionsText,re=void 0===ne?"No options":ne,ie=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),oe=void 0===ie?"Open":ie,ae=(e.options,e.PaperComponent),se=void 0===ae?f.a:ae,ue=e.PopperComponent,le=void 0===ue?l.a:ue,ce=e.popupIcon,fe=void 0===ce?S:ce,pe=e.renderGroup,de=e.renderInput,he=e.renderOption,me=e.renderTags,ve=e.selectOnFocus,ge=(void 0===ve&&e.freeSolo,e.size),ye=void 0===ge?"medium":ge,be=(e.value,Object(r.a)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),_e=M?C:le,xe=Object(O.b)(Object(o.a)({},e,{componentName:"Autocomplete"})),we=xe.getRootProps,Ee=xe.getInputProps,Oe=xe.getInputLabelProps,Ce=xe.getPopupIndicatorProps,De=xe.getClearProps,Se=xe.getTagProps,ke=xe.getListboxProps,Ae=xe.getOptionProps,Te=xe.value,Pe=xe.dirty,Me=xe.id,je=xe.popupOpen,Ie=xe.focused,Fe=xe.focusedTag,Re=xe.anchorEl,Le=xe.setAnchorEl,ze=xe.inputValue,Be=xe.groupedOptions;if(te&&Te.length>0){var Ne=function(e){return Object(o.a)({className:Object(s.a)(u.tag,"small"===ye&&u.tagSizeSmall),disabled:T},Se(e))};n=me?me(Te,Ne):Te.map((function(e,t){return a.createElement(x,Object(o.a)({label:V(e),size:ye},Ne({index:t}),i))}))}if(q>-1&&Array.isArray(n)){var Ue=n.length-q;!Ie&&Ue>0&&(n=n.splice(0,q)).push(a.createElement("span",{className:u.tag,key:n.length},N(Ue)))}var Ve=pe||function(e){return a.createElement("li",{key:e.key},a.createElement(c.a,{className:u.groupLabel,component:"div"},e.group),a.createElement("ul",{className:u.groupUl},e.children))},He=he||V,We=function(e,t){var n=Ae({option:e,index:t});return a.createElement("li",Object(o.a)({},n,{className:u.option}),He(e,{selected:n["aria-selected"],inputValue:ze}))},Ge=!k&&!T,qe=(!R||!0===I)&&!1!==I;return a.createElement(a.Fragment,null,a.createElement("div",Object(o.a)({ref:t,className:Object(s.a)(u.root,d,Ie&&u.focused,z&&u.fullWidth,Ge&&u.hasClearIcon,qe&&u.hasPopupIcon)},we(be)),de({id:Me,disabled:T,fullWidth:!0,size:"small"===ye?"small":void 0,InputLabelProps:Oe(),InputProps:{ref:Le,className:u.inputRoot,startAdornment:n,endAdornment:a.createElement("div",{className:u.endAdornment},Ge?a.createElement(p.a,Object(o.a)({},De(),{"aria-label":v,title:v,className:Object(s.a)(u.clearIndicator,Pe&&u.clearIndicatorDirty)}),y):null,qe?a.createElement(p.a,Object(o.a)({},Ce(),{disabled:T,"aria-label":je?_:oe,title:je?_:oe,className:Object(s.a)(u.popupIndicator,je&&u.popupIndicatorOpen)}),fe):null)},inputProps:Object(o.a)({className:Object(s.a)(u.input,-1===Fe&&u.inputFocused),disabled:T},Ee())})),je&&Re?a.createElement(_e,{className:Object(s.a)(u.popper,M&&u.popperDisablePortal),style:{width:Re?Re.clientWidth:null},role:"presentation",anchorEl:Re,open:!0},a.createElement(se,{className:u.paper},K&&0===Be.length?a.createElement("div",{className:u.loading},Q):null,0!==Be.length||R||K?null:a.createElement("div",{className:u.noOptions},re),Be.length>0?a.createElement(Y,Object(o.a)({className:u.listbox},ke(),Z),Be.map((function(e,t){return H?Ve({key:e.key,group:e.group,children:e.options.map((function(t,n){return We(t,e.index+n)}))}):We(e,t)}))):null)):null)}));t.a=Object(u.a)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:Object(o.a)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},Object(i.a)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),Object(i.a)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),Object(i.a)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),Object(i.a)(t,"&:active",{backgroundColor:e.palette.action.selected}),Object(i.a)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(k)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=n(3),s=n.n(a),u=n(659),l=n(34);function c(e){var t=e.children,n=e.only,r=e.width,i=Object(l.a)(),o=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(var s=0;s<i.breakpoints.keys.length;s+=1){var c=i.breakpoints.keys[s],f=e["".concat(c,"Up")],p=e["".concat(c,"Down")];if(f&&Object(u.c)(c,r)||p&&Object(u.b)(c,r)){o=!1;break}}return o?t:null}c.propTypes={children:s.a.node,className:s.a.string,implementation:s.a.oneOf(["js","css"]),initialWidth:s.a.oneOf(["xs","sm","md","lg","xl"]),lgDown:s.a.bool,lgUp:s.a.bool,mdDown:s.a.bool,mdUp:s.a.bool,only:s.a.oneOfType([s.a.oneOf(["xs","sm","md","lg","xl"]),s.a.arrayOf(s.a.oneOf(["xs","sm","md","lg","xl"]))]),smDown:s.a.bool,smUp:s.a.bool,width:s.a.string.isRequired,xlDown:s.a.bool,xlUp:s.a.bool,xsDown:s.a.bool,xsUp:s.a.bool};var f=Object(u.a)()(c),p=n(19),d=n(10),h=n(7);var m=Object(h.a)((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat(Object(d.a)(r))]=Object(p.a)({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=Object(p.a)({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=Object(p.a)({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className,a=e.only,s=(Object(i.a)(e,["children","classes","className","only"]),Object(l.a)()),u=[];r&&u.push(r);for(var c=0;c<s.breakpoints.keys.length;c+=1){var f=s.breakpoints.keys[c],p=e["".concat(f,"Up")],h=e["".concat(f,"Down")];p&&u.push(n["".concat(f,"Up")]),h&&u.push(n["".concat(f,"Down")])}return a&&(Array.isArray(a)?a:[a]).forEach((function(e){u.push(n["only".concat(Object(d.a)(e))])})),o.createElement("div",{className:u.join(" ")},t)}));t.a=function(e){var t=e.implementation,n=void 0===t?"js":t,a=e.lgDown,s=void 0!==a&&a,u=e.lgUp,l=void 0!==u&&u,c=e.mdDown,p=void 0!==c&&c,d=e.mdUp,h=void 0!==d&&d,v=e.smDown,g=void 0!==v&&v,y=e.smUp,b=void 0!==y&&y,_=e.xlDown,x=void 0!==_&&_,w=e.xlUp,E=void 0!==w&&w,O=e.xsDown,C=void 0!==O&&O,D=e.xsUp,S=void 0!==D&&D,k=Object(i.a)(e,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return"js"===n?o.createElement(f,Object(r.a)({lgDown:s,lgUp:l,mdDown:p,mdUp:h,smDown:g,smUp:b,xlDown:x,xlUp:E,xsDown:C,xsUp:S},k)):o.createElement(m,Object(r.a)({lgDown:s,lgUp:l,mdDown:p,mdUp:h,smDown:g,smUp:b,xlDown:x,xlUp:E,xsDown:C,xsUp:S},k))}},function(e,t,n){"use strict";var r=n(1),i=n(174),o=n(172),a=n(128),s=n(175);var u=n(44),l=n(4),c=n(0),f=(n(162),n(3),n(2)),p=n(392),d=n(7),h=n(50),m=n(61),v=n(34),g=n(20),y=c.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.collapsedHeight,s=e.collapsedSize,d=void 0===s?"0px":s,y=e.component,b=void 0===y?"div":y,_=e.disableStrictModeCompat,x=void 0!==_&&_,w=e.in,E=e.onEnter,O=e.onEntered,C=e.onEntering,D=e.onExit,S=e.onExited,k=e.onExiting,A=e.style,T=e.timeout,P=void 0===T?h.b.standard:T,M=e.TransitionComponent,j=void 0===M?p.a:M,I=Object(l.a)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),F=Object(v.a)(),R=c.useRef(),L=c.useRef(null),z=c.useRef(),B="number"===typeof(a||d)?"".concat(a||d,"px"):a||d;c.useEffect((function(){return function(){clearTimeout(R.current)}}),[]);var N=F.unstable_strictMode&&!x,U=c.useRef(null),V=Object(g.a)(t,N?U:void 0),H=function(e){return function(t,n){if(e){var r=N?[U.current,t]:[t,n],i=Object(u.a)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},W=H((function(e,t){e.style.height=B,E&&E(e,t)})),G=H((function(e,t){var n=L.current?L.current.clientHeight:0,r=Object(m.a)({style:A,timeout:P},{mode:"enter"}).duration;if("auto"===P){var i=F.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),z.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),C&&C(e,t)})),q=H((function(e,t){e.style.height="auto",O&&O(e,t)})),$=H((function(e){var t=L.current?L.current.clientHeight:0;e.style.height="".concat(t,"px"),D&&D(e)})),Y=H(S),Z=H((function(e){var t=L.current?L.current.clientHeight:0,n=Object(m.a)({style:A,timeout:P},{mode:"exit"}).duration;if("auto"===P){var r=F.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),z.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=B,k&&k(e)}));return c.createElement(j,Object(r.a)({in:w,onEnter:W,onEntered:q,onEntering:G,onExit:$,onExited:Y,onExiting:Z,addEndListener:function(e,t){var n=N?e:t;"auto"===P&&(R.current=setTimeout(n,z.current||0))},nodeRef:N?U:void 0,timeout:"auto"===P?null:P},I),(function(e,t){return c.createElement(b,Object(r.a)({className:Object(f.a)(i.root,i.container,o,{entered:i.entered,exited:!w&&"0px"===B&&i.hidden}[e]),style:Object(r.a)({minHeight:B},A),ref:V},t),c.createElement("div",{className:i.wrapper,ref:L},c.createElement("div",{className:i.wrapperInner},n)))}))}));y.muiSupportAuto=!0;var b=Object(d.a)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(y),_=n(194),x=n(185),w=n(60),E=c.forwardRef((function(e,t){var n,p=e.children,d=e.classes,h=e.className,m=e.defaultExpanded,v=void 0!==m&&m,g=e.disabled,y=void 0!==g&&g,E=e.expanded,O=e.onChange,C=e.square,D=void 0!==C&&C,S=e.TransitionComponent,k=void 0===S?b:S,A=e.TransitionProps,T=Object(l.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),P=Object(w.a)({controlled:E,default:v,name:"Accordion",state:"expanded"}),M=Object(u.a)(P,2),j=M[0],I=M[1],F=c.useCallback((function(e){I(!j),O&&O(e,!j)}),[j,O,I]),R=c.Children.toArray(p),L=(n=R,Object(i.a)(n)||Object(o.a)(n)||Object(a.a)(n)||Object(s.a)()),z=L[0],B=L.slice(1),N=c.useMemo((function(){return{expanded:j,disabled:y,toggle:F}}),[j,y,F]);return c.createElement(_.a,Object(r.a)({className:Object(f.a)(d.root,h,j&&d.expanded,y&&d.disabled,!D&&d.rounded),ref:t,square:D},T),c.createElement(x.a.Provider,{value:N},z),c.createElement(k,Object(r.a)({in:j,timeout:"auto"},A),c.createElement("div",{"aria-labelledby":z.props.id,id:z.props["aria-controls"],role:"region"},B)))}));t.a=Object(d.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(E)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(7),u=n(27),l=Object(u.a)(o.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var c=o.forwardRef((function(e,t){var n=e.alt,s=e.children,u=e.classes,c=e.className,f=e.component,p=void 0===f?"div":f,d=e.imgProps,h=e.sizes,m=e.src,v=e.srcSet,g=e.variant,y=void 0===g?"circular":g,b=Object(i.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),_=null,x=function(e){var t=e.src,n=e.srcSet,r=o.useState(!1),i=r[0],a=r[1];return o.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),i}({src:m,srcSet:v}),w=m||v,E=w&&"error"!==x;return _=E?o.createElement("img",Object(r.a)({alt:n,src:m,srcSet:v,sizes:h,className:u.img},d)):null!=s?s:w&&n?n[0]:o.createElement(l,{className:u.fallback}),o.createElement(p,Object(r.a)({className:Object(a.a)(u.root,u.system,u[y],c,!E&&u.colorDefault),ref:t},b),_)}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(c)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(197),u=n(19),l=n(7),c=n(34),f=n(10),p=o.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,l=e.label,p=e.labelWidth,d=e.notched,h=e.style,m=Object(i.a)(e,["children","classes","className","label","labelWidth","notched","style"]),v="rtl"===Object(c.a)().direction?"right":"left";if(void 0!==l)return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,s),ref:t,style:h},m),o.createElement("legend",{className:Object(a.a)(n.legendLabelled,d&&n.legendNotched)},l?o.createElement("span",null,l):o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var g=p>0?.75*p+8:.01;return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(u.a)({},"padding".concat(Object(f.a)(v)),8),h),className:Object(a.a)(n.root,s),ref:t},m),o.createElement("legend",{className:n.legend,style:{width:d?g:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),d=Object(l.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(p),h=o.forwardRef((function(e,t){var n=e.classes,u=e.fullWidth,l=void 0!==u&&u,c=e.inputComponent,f=void 0===c?"input":c,p=e.label,h=e.labelWidth,m=void 0===h?0:h,v=e.multiline,g=void 0!==v&&v,y=e.notched,b=e.type,_=void 0===b?"text":b,x=Object(i.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return o.createElement(s.a,Object(r.a)({renderSuffix:function(e){return o.createElement(d,{className:n.notchedOutline,label:p,labelWidth:m,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:f,multiline:g,ref:t,type:_},x))}));h.muiName="Input";t.a=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(0),a=(n(3),n(2)),s=n(596),u=n(586),l=n(7),c=n(24),f=n(95),p=n(392),d=n(20),h=n(34),m=n(50),v=n(61);function g(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var y={enter:m.b.enteringScreen,exit:m.b.leavingScreen},b=o.forwardRef((function(e,t){var n=e.children,a=e.direction,s=void 0===a?"down":a,u=e.in,l=e.onEnter,m=e.onEntered,b=e.onEntering,_=e.onExit,x=e.onExited,w=e.onExiting,E=e.style,O=e.timeout,C=void 0===O?y:O,D=e.TransitionComponent,S=void 0===D?p.a:D,k=Object(i.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=Object(h.a)(),T=o.useRef(null),P=o.useCallback((function(e){T.current=c.findDOMNode(e)}),[]),M=Object(d.a)(n.ref,P),j=Object(d.a)(M,t),I=function(e){return function(t){e&&(void 0===t?e(T.current):e(T.current,t))}},F=I((function(e,t){g(s,e),Object(v.b)(e),l&&l(e,t)})),R=I((function(e,t){var n=Object(v.a)({timeout:C,style:E},{mode:"enter"});e.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)({},n,{easing:A.transitions.easing.easeOut})),e.style.transition=A.transitions.create("transform",Object(r.a)({},n,{easing:A.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),L=I(m),z=I(w),B=I((function(e){var t=Object(v.a)({timeout:C,style:E},{mode:"exit"});e.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)({},t,{easing:A.transitions.easing.sharp})),e.style.transition=A.transitions.create("transform",Object(r.a)({},t,{easing:A.transitions.easing.sharp})),g(s,e),_&&_(e)})),N=I((function(e){e.style.webkitTransition="",e.style.transition="",x&&x(e)})),U=o.useCallback((function(){T.current&&g(s,T.current)}),[s]);return o.useEffect((function(){if(!u&&"down"!==s&&"right"!==s){var e=Object(f.a)((function(){T.current&&g(s,T.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[s,u]),o.useEffect((function(){u||U()}),[u,U]),o.createElement(S,Object(r.a)({nodeRef:T,onEnter:F,onEntered:L,onEntering:R,onExit:B,onExited:N,onExiting:z,appear:!0,in:u,timeout:C},k),(function(e,t){return o.cloneElement(n,Object(r.a)({ref:j,style:Object(r.a)({visibility:"exited"!==e||u?void 0:"hidden"},E,n.props.style)},t))}))})),_=n(194),x=n(10),w={left:"right",right:"left",top:"down",bottom:"up"};var E={enter:m.b.enteringScreen,exit:m.b.leavingScreen},O=o.forwardRef((function(e,t){var n=e.anchor,l=void 0===n?"left":n,c=e.BackdropProps,f=e.children,p=e.classes,d=e.className,m=e.elevation,v=void 0===m?16:m,g=e.ModalProps,y=(g=void 0===g?{}:g).BackdropProps,O=Object(i.a)(g,["BackdropProps"]),C=e.onClose,D=e.open,S=void 0!==D&&D,k=e.PaperProps,A=void 0===k?{}:k,T=e.SlideProps,P=e.TransitionComponent,M=void 0===P?b:P,j=e.transitionDuration,I=void 0===j?E:j,F=e.variant,R=void 0===F?"temporary":F,L=Object(i.a)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),z=Object(h.a)(),B=o.useRef(!1);o.useEffect((function(){B.current=!0}),[]);var N=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?w[t]:t}(z,l),U=o.createElement(_.a,Object(r.a)({elevation:"temporary"===R?v:0,square:!0},A,{className:Object(a.a)(p.paper,p["paperAnchor".concat(Object(x.a)(N))],A.className,"temporary"!==R&&p["paperAnchorDocked".concat(Object(x.a)(N))])}),f);if("permanent"===R)return o.createElement("div",Object(r.a)({className:Object(a.a)(p.root,p.docked,d),ref:t},L),U);var V=o.createElement(M,Object(r.a)({in:S,direction:w[N],timeout:I,appear:B.current},T),U);return"persistent"===R?o.createElement("div",Object(r.a)({className:Object(a.a)(p.root,p.docked,d),ref:t},L),V):o.createElement(s.a,Object(r.a)({BackdropProps:Object(r.a)({},c,y,{transitionDuration:I}),BackdropComponent:u.a,className:Object(a.a)(p.root,p.modal,d),open:S,onClose:C,ref:t},L,O),V)}));t.a=Object(l.a)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(O)},function(e,t,n){"use strict";var r=n(86),i=n(44),o=n(4),a=n(1),s=n(0),u=(n(3),n(2)),l=n(7),c=n(34),f=n(12),p=n(81),d=n(30),h=n(31),m=n(20),v=n(10),g=n(60);var y=Object(l.a)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Object(a.a)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,o=e.value,a=e.valueLabelDisplay;return"off"===a?t:s.cloneElement(t,{className:Object(u.a)(t.props.className,(i||"on"===a)&&n.open,n.thumb)},s.createElement("span",{className:Object(u.a)(n.offset,r)},s.createElement("span",{className:n.circle},s.createElement("span",{className:n.label},o))))}));function b(e,t){return e-t}function _(e,t,n){return Math.min(Math.max(t,e),n)}function x(e,t){return e.reduce((function(e,n,r){var i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e}),null).index}function w(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function E(e,t,n){return 100*(e-t)/(n-t)}function O(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function C(e){var t=e.values,n=e.source,r=e.newValue,i=e.index;if(t[i]===r)return n;var o=t.slice();return o[i]=r,o}function D(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var S={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},k=function(e){return e},A=s.forwardRef((function(e,t){var n=e["aria-label"],l=e["aria-labelledby"],f=e["aria-valuetext"],A=e.classes,T=e.className,P=e.color,M=void 0===P?"primary":P,j=e.component,I=void 0===j?"span":j,F=e.defaultValue,R=e.disabled,L=void 0!==R&&R,z=e.getAriaLabel,B=e.getAriaValueText,N=e.marks,U=void 0!==N&&N,V=e.max,H=void 0===V?100:V,W=e.min,G=void 0===W?0:W,q=e.name,$=e.onChange,Y=e.onChangeCommitted,Z=e.onMouseDown,X=e.orientation,K=void 0===X?"horizontal":X,J=e.scale,Q=void 0===J?k:J,ee=e.step,te=void 0===ee?1:ee,ne=e.ThumbComponent,re=void 0===ne?"span":ne,ie=e.track,oe=void 0===ie?"normal":ie,ae=e.value,se=e.ValueLabelComponent,ue=void 0===se?y:se,le=e.valueLabelDisplay,ce=void 0===le?"off":le,fe=e.valueLabelFormat,pe=void 0===fe?k:fe,de=Object(o.a)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),he=Object(c.a)(),me=s.useRef(),ve=s.useState(-1),ge=ve[0],ye=ve[1],be=s.useState(-1),_e=be[0],xe=be[1],we=Object(g.a)({controlled:ae,default:F,name:"Slider"}),Ee=Object(i.a)(we,2),Oe=Ee[0],Ce=Ee[1],De=Array.isArray(Oe),Se=De?Oe.slice().sort(b):[Oe];Se=Se.map((function(e){return _(e,G,H)}));var ke=!0===U&&null!==te?Object(r.a)(Array(Math.floor((H-G)/te)+1)).map((function(e,t){return{value:G+te*t}})):U||[],Ae=Object(p.a)(),Te=Ae.isFocusVisible,Pe=Ae.onBlurVisible,Me=Ae.ref,je=s.useState(-1),Ie=je[0],Fe=je[1],Re=s.useRef(),Le=Object(m.a)(Me,Re),ze=Object(m.a)(t,Le),Be=Object(h.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Te(e)&&Fe(t),xe(t)})),Ne=Object(h.a)((function(){-1!==Ie&&(Fe(-1),Pe()),xe(-1)})),Ue=Object(h.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));xe(t)})),Ve=Object(h.a)((function(){xe(-1)})),He="rtl"===he.direction,We=Object(h.a)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=Se[n],i=(H-G)/10,o=ke.map((function(e){return e.value})),a=o.indexOf(r),s=He?"ArrowLeft":"ArrowRight",u=He?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=G;break;case"End":t=H;break;case"PageUp":te&&(t=r+i);break;case"PageDown":te&&(t=r-i);break;case s:case"ArrowUp":t=te?r+te:o[a+1]||o[o.length-1];break;case u:case"ArrowDown":t=te?r-te:o[a-1]||o[0];break;default:return}if(e.preventDefault(),te&&(t=O(t,te,G)),t=_(t,G,H),De){var l=t;t=C({values:Se,source:Oe,newValue:t,index:n}).sort(b),D({sliderRef:Re,activeIndex:t.indexOf(l)})}Ce(t),Fe(n),$&&$(e,t),Y&&Y(e,t)})),Ge=s.useRef(),qe=K;He&&"vertical"!==K&&(qe+="-reverse");var $e=function(e){var t,n,r=e.finger,i=e.move,o=void 0!==i&&i,a=e.values,s=e.source,u=Re.current.getBoundingClientRect(),l=u.width,c=u.height,f=u.bottom,p=u.left;if(t=0===qe.indexOf("vertical")?(f-r.y)/c:(r.x-p)/l,-1!==qe.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,G,H),te)n=O(n,te,G);else{var d=ke.map((function(e){return e.value}));n=d[x(d,n)]}n=_(n,G,H);var h=0;if(De){var m=n;h=(n=C({values:a,source:s,newValue:n,index:h=o?Ge.current:x(a,n)}).sort(b)).indexOf(m),Ge.current=h}return{newValue:n,activeIndex:h}},Ye=Object(h.a)((function(e){var t=w(e,me);if(t){var n=$e({finger:t,move:!0,values:Se,source:Oe}),r=n.newValue,i=n.activeIndex;D({sliderRef:Re,activeIndex:i,setActive:ye}),Ce(r),$&&$(e,r)}})),Ze=Object(h.a)((function(e){var t=w(e,me);if(t){var n=$e({finger:t,values:Se,source:Oe}).newValue;ye(-1),"touchend"===e.type&&xe(-1),Y&&Y(e,n),me.current=void 0;var r=Object(d.a)(Re.current);r.removeEventListener("mousemove",Ye),r.removeEventListener("mouseup",Ze),r.removeEventListener("touchmove",Ye),r.removeEventListener("touchend",Ze)}})),Xe=Object(h.a)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(me.current=t.identifier);var n=w(e,me),r=$e({finger:n,values:Se,source:Oe}),i=r.newValue,o=r.activeIndex;D({sliderRef:Re,activeIndex:o,setActive:ye}),Ce(i),$&&$(e,i);var a=Object(d.a)(Re.current);a.addEventListener("touchmove",Ye),a.addEventListener("touchend",Ze)}));s.useEffect((function(){var e=Re.current;e.addEventListener("touchstart",Xe);var t=Object(d.a)(e);return function(){e.removeEventListener("touchstart",Xe),t.removeEventListener("mousemove",Ye),t.removeEventListener("mouseup",Ze),t.removeEventListener("touchmove",Ye),t.removeEventListener("touchend",Ze)}}),[Ze,Ye,Xe]);var Ke=Object(h.a)((function(e){Z&&Z(e),e.preventDefault();var t=w(e,me),n=$e({finger:t,values:Se,source:Oe}),r=n.newValue,i=n.activeIndex;D({sliderRef:Re,activeIndex:i,setActive:ye}),Ce(r),$&&$(e,r);var o=Object(d.a)(Re.current);o.addEventListener("mousemove",Ye),o.addEventListener("mouseup",Ze)})),Je=E(De?Se[0]:G,G,H),Qe=E(Se[Se.length-1],G,H)-Je,et=Object(a.a)({},S[qe].offset(Je),S[qe].leap(Qe));return s.createElement(I,Object(a.a)({ref:ze,className:Object(u.a)(A.root,A["color".concat(Object(v.a)(M))],T,L&&A.disabled,ke.length>0&&ke.some((function(e){return e.label}))&&A.marked,!1===oe&&A.trackFalse,"vertical"===K&&A.vertical,"inverted"===oe&&A.trackInverted),onMouseDown:Ke},de),s.createElement("span",{className:A.rail}),s.createElement("span",{className:A.track,style:et}),s.createElement("input",{value:Se.join(","),name:q,type:"hidden"}),ke.map((function(e,t){var n,r=E(e.value,G,H),i=S[qe].offset(r);return n=!1===oe?-1!==Se.indexOf(e.value):"normal"===oe&&(De?e.value>=Se[0]&&e.value<=Se[Se.length-1]:e.value<=Se[0])||"inverted"===oe&&(De?e.value<=Se[0]||e.value>=Se[Se.length-1]:e.value>=Se[0]),s.createElement(s.Fragment,{key:e.value},s.createElement("span",{style:i,"data-index":t,className:Object(u.a)(A.mark,n&&A.markActive)}),null!=e.label?s.createElement("span",{"aria-hidden":!0,"data-index":t,style:i,className:Object(u.a)(A.markLabel,n&&A.markLabelActive)},e.label):null)})),Se.map((function(e,t){var r=E(e,G,H),i=S[qe].offset(r);return s.createElement(ue,{key:t,valueLabelFormat:pe,valueLabelDisplay:ce,className:A.valueLabel,value:"function"===typeof pe?pe(Q(e),t):pe,index:t,open:_e===t||ge===t||"on"===ce,disabled:L},s.createElement(re,{className:Object(u.a)(A.thumb,A["thumbColor".concat(Object(v.a)(M))],ge===t&&A.active,L&&A.disabled,Ie===t&&A.focusVisible),tabIndex:L?null:0,role:"slider",style:i,"data-index":t,"aria-label":z?z(t):n,"aria-labelledby":l,"aria-orientation":K,"aria-valuemax":Q(H),"aria-valuemin":Q(G),"aria-valuenow":Q(e),"aria-valuetext":B?B(Q(e),t):f,onKeyDown:We,onFocus:Be,onBlur:Ne,onMouseOver:Ue,onMouseLeave:Ve}))})))}));t.a=Object(l.a)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Object(f.j)(e.palette.primary.main,.62):Object(f.b)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(f.a)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(f.a)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(f.a)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(f.a)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:Object(a.a)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(A)},function(e,t,n){"use strict";var r=n(4),i=n(19),o=n(1),a=n(0),s=(n(3),n(2)),u=n(7),l=n(50),c=n(388),f=n(31),p=n(10),d=n(67),h=n(387),m=n(194),v=n(12),g=a.forwardRef((function(e,t){var n=e.action,i=e.classes,u=e.className,l=e.message,c=e.role,f=void 0===c?"alert":c,p=Object(r.a)(e,["action","classes","className","message","role"]);return a.createElement(m.a,Object(o.a)({role:f,square:!0,elevation:6,className:Object(s.a)(i.root,u),ref:t},p),a.createElement("div",{className:i.message},l),n?a.createElement("div",{className:i.action},n):null)})),y=Object(u.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(v.d)(e.palette.background.default,t);return{root:Object(o.a)({},e.typography.body2,Object(i.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(g),b=a.forwardRef((function(e,t){var n=e.action,i=e.anchorOrigin,u=(i=void 0===i?{vertical:"bottom",horizontal:"center"}:i).vertical,m=i.horizontal,v=e.autoHideDuration,g=void 0===v?null:v,b=e.children,_=e.classes,x=e.className,w=e.ClickAwayListenerProps,E=e.ContentProps,O=e.disableWindowBlurListener,C=void 0!==O&&O,D=e.message,S=e.onClose,k=e.onEnter,A=e.onEntered,T=e.onEntering,P=e.onExit,M=e.onExited,j=e.onExiting,I=e.onMouseEnter,F=e.onMouseLeave,R=e.open,L=e.resumeHideDuration,z=e.TransitionComponent,B=void 0===z?h.a:z,N=e.transitionDuration,U=void 0===N?{enter:l.b.enteringScreen,exit:l.b.leavingScreen}:N,V=e.TransitionProps,H=Object(r.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),W=a.useRef(),G=a.useState(!0),q=G[0],$=G[1],Y=Object(f.a)((function(){S&&S.apply(void 0,arguments)})),Z=Object(f.a)((function(e){S&&null!=e&&(clearTimeout(W.current),W.current=setTimeout((function(){Y(null,"timeout")}),e))}));a.useEffect((function(){return R&&Z(g),function(){clearTimeout(W.current)}}),[R,g,Z]);var X=function(){clearTimeout(W.current)},K=a.useCallback((function(){null!=g&&Z(null!=L?L:.5*g)}),[g,L,Z]);return a.useEffect((function(){if(!C&&R)return window.addEventListener("focus",K),window.addEventListener("blur",X),function(){window.removeEventListener("focus",K),window.removeEventListener("blur",X)}}),[C,K,R]),!R&&q?null:a.createElement(c.a,Object(o.a)({onClickAway:function(e){S&&S(e,"clickaway")}},w),a.createElement("div",Object(o.a)({className:Object(s.a)(_.root,_["anchorOrigin".concat(Object(p.a)(u)).concat(Object(p.a)(m))],x),onMouseEnter:function(e){I&&I(e),X()},onMouseLeave:function(e){F&&F(e),K()},ref:t},H),a.createElement(B,Object(o.a)({appear:!0,in:R,onEnter:Object(d.a)((function(){$(!1)}),k),onEntered:A,onEntering:T,onExit:P,onExited:Object(d.a)((function(){$(!0)}),M),onExiting:j,timeout:U,direction:"top"===u?"down":"up"},V),b||a.createElement(y,Object(o.a)({message:D,action:n},E)))))}));t.a=Object(u.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},u={bottom:24},l={right:24},c={left:24},f={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(o.a)({},t,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({},s,f))),anchorOriginBottomCenter:Object(o.a)({},n,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({},u,f))),anchorOriginTopRight:Object(o.a)({},t,r,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({left:"auto"},s,l))),anchorOriginBottomRight:Object(o.a)({},n,r,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({left:"auto"},u,l))),anchorOriginTopLeft:Object(o.a)({},t,a,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({right:"auto"},s,c))),anchorOriginBottomLeft:Object(o.a)({},n,a,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({right:"auto"},u,c)))}}),{flip:!1,name:"MuiSnackbar"})(b)},function(e,t,n){"use strict";var r=n(131),i=function(e){var t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return Object(r.a)(e(t),n)}}(e)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);var a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}};var o=n(150),a=i(r.a),s=a.right;a.left,i(o.a).center,t.a=s}]]); //# sourceMappingURL=2.6e516439.chunk.js.map