From c2d982636887c42349ee7f31d2fed809a5cc6e04 Mon Sep 17 00:00:00 2001 From: github-actions-bot Date: Sat, 5 Oct 2024 19:45:04 +0000 Subject: [PATCH] Updates --- .../{index-C_iKaLUb.js => index-BpLq7PVi.js} | 310 +++++++++--------- demo/index.html | 2 +- 2 files changed, 156 insertions(+), 156 deletions(-) rename demo/assets/{index-C_iKaLUb.js => index-BpLq7PVi.js} (62%) diff --git a/demo/assets/index-C_iKaLUb.js b/demo/assets/index-BpLq7PVi.js similarity index 62% rename from demo/assets/index-C_iKaLUb.js rename to demo/assets/index-BpLq7PVi.js index d6d3fdc8..d31fd9c3 100644 --- a/demo/assets/index-C_iKaLUb.js +++ b/demo/assets/index-BpLq7PVi.js @@ -1,4 +1,4 @@ -var BS=(e,r,y)=>{if(!r.has(e))throw TypeError("Cannot "+y)};var En=(e,r,y)=>(BS(e,r,"read from private field"),y?y.call(e):r.get(e)),di=(e,r,y)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,y)},oi=(e,r,y,F)=>(BS(e,r,"write to private field"),F?F.call(e,y):r.set(e,y),y);var Cw=(e,r,y,F)=>({set _(j){oi(e,r,j,y)},get _(){return En(e,r,F)}}),to=(e,r,y)=>(BS(e,r,"access private method"),y);function JR(e,r){for(var y=0;yF[j]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))F(j);new MutationObserver(j=>{for(const Y of j)if(Y.type==="childList")for(const D of Y.addedNodes)D.tagName==="LINK"&&D.rel==="modulepreload"&&F(D)}).observe(document,{childList:!0,subtree:!0});function y(j){const Y={};return j.integrity&&(Y.integrity=j.integrity),j.referrerPolicy&&(Y.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?Y.credentials="include":j.crossOrigin==="anonymous"?Y.credentials="omit":Y.credentials="same-origin",Y}function F(j){if(j.ep)return;j.ep=!0;const Y=y(j);fetch(j.href,Y)}})();var ky=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cv(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var y=function F(){return this instanceof F?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};y.prototype=r.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(e).forEach(function(F){var j=Object.getOwnPropertyDescriptor(e,F);Object.defineProperty(y,F,j.get?j:{enumerable:!0,get:function(){return e[F]}})}),y}var QR={exports:{}},R2={},qR={exports:{}},Qi={};/** +var _E=e=>{throw TypeError(e)};var LS=(e,r,x)=>r.has(e)||_E("Cannot "+x);var En=(e,r,x)=>(LS(e,r,"read from private field"),x?x.call(e):r.get(e)),Si=(e,r,x)=>r.has(e)?_E("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,x),oi=(e,r,x,F)=>(LS(e,r,"write to private field"),F?F.call(e,x):r.set(e,x),x),to=(e,r,x)=>(LS(e,r,"access private method"),x);var mw=(e,r,x,F)=>({set _(j){oi(e,r,j,x)},get _(){return En(e,r,F)}});function VR(e,r){for(var x=0;xF[j]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))F(j);new MutationObserver(j=>{for(const Y of j)if(Y.type==="childList")for(const D of Y.addedNodes)D.tagName==="LINK"&&D.rel==="modulepreload"&&F(D)}).observe(document,{childList:!0,subtree:!0});function x(j){const Y={};return j.integrity&&(Y.integrity=j.integrity),j.referrerPolicy&&(Y.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?Y.credentials="include":j.crossOrigin==="anonymous"?Y.credentials="omit":Y.credentials="same-origin",Y}function F(j){if(j.ep)return;j.ep=!0;const Y=x(j);fetch(j.href,Y)}})();var Dy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ph(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dv(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var x=function F(){return this instanceof F?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};x.prototype=r.prototype}else x={};return Object.defineProperty(x,"__esModule",{value:!0}),Object.keys(e).forEach(function(F){var j=Object.getOwnPropertyDescriptor(e,F);Object.defineProperty(x,F,j.get?j:{enumerable:!0,get:function(){return e[F]}})}),x}var jR={exports:{}},C2={},GR={exports:{}},Qi={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var BS=(e,r,y)=>{if(!r.has(e))throw TypeError("Cannot "+y)};var En=(e,r,y)=>(BS( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xb=Symbol.for("react.element"),MU=Symbol.for("react.portal"),AU=Symbol.for("react.fragment"),EU=Symbol.for("react.strict_mode"),PU=Symbol.for("react.profiler"),LU=Symbol.for("react.provider"),IU=Symbol.for("react.context"),RU=Symbol.for("react.forward_ref"),kU=Symbol.for("react.suspense"),DU=Symbol.for("react.memo"),OU=Symbol.for("react.lazy"),WE=Symbol.iterator;function FU(e){return e===null||typeof e!="object"?null:(e=WE&&e[WE]||e["@@iterator"],typeof e=="function"?e:null)}var ek={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tk=Object.assign,rk={};function Dy(e,r,y){this.props=e,this.context=r,this.refs=rk,this.updater=y||ek}Dy.prototype.isReactComponent={};Dy.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Dy.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nk(){}nk.prototype=Dy.prototype;function HM(e,r,y){this.props=e,this.context=r,this.refs=rk,this.updater=y||ek}var VM=HM.prototype=new nk;VM.constructor=HM;tk(VM,Dy.prototype);VM.isPureReactComponent=!0;var $E=Array.isArray,ak=Object.prototype.hasOwnProperty,jM={current:null},ik={key:!0,ref:!0,__self:!0,__source:!0};function ok(e,r,y){var F,j={},Y=null,D=null;if(r!=null)for(F in r.ref!==void 0&&(D=r.ref),r.key!==void 0&&(Y=""+r.key),r)ak.call(r,F)&&!ik.hasOwnProperty(F)&&(j[F]=r[F]);var O=arguments.length-2;if(O===1)j.children=y;else if(1{if(!r.has(e))throw TypeError("Cannot "+y)};var En=(e,r,y)=>(BS( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var UU=Oe,HU=Symbol.for("react.element"),VU=Symbol.for("react.fragment"),jU=Object.prototype.hasOwnProperty,GU=UU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,WU={key:!0,ref:!0,__self:!0,__source:!0};function sk(e,r,y){var F,j={},Y=null,D=null;y!==void 0&&(Y=""+y),r.key!==void 0&&(Y=""+r.key),r.ref!==void 0&&(D=r.ref);for(F in r)jU.call(r,F)&&!WU.hasOwnProperty(F)&&(j[F]=r[F]);if(e&&e.defaultProps)for(F in r=e.defaultProps,r)j[F]===void 0&&(j[F]=r[F]);return{$$typeof:HU,type:e,key:Y,ref:D,props:j,_owner:GU.current}}R2.Fragment=VU;R2.jsx=sk;R2.jsxs=sk;QR.exports=R2;var Ce=QR.exports,ZC={},lk={exports:{}},Pc={},uk={exports:{}},ck={};/** + */var TU=Oe,SU=Symbol.for("react.element"),CU=Symbol.for("react.fragment"),MU=Object.prototype.hasOwnProperty,AU=TU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EU={key:!0,ref:!0,__self:!0,__source:!0};function QR(e,r,x){var F,j={},Y=null,D=null;x!==void 0&&(Y=""+x),r.key!==void 0&&(Y=""+r.key),r.ref!==void 0&&(D=r.ref);for(F in r)MU.call(r,F)&&!EU.hasOwnProperty(F)&&(j[F]=r[F]);if(e&&e.defaultProps)for(F in r=e.defaultProps,r)j[F]===void 0&&(j[F]=r[F]);return{$$typeof:SU,type:e,key:Y,ref:D,props:j,_owner:AU.current}}C2.Fragment=CU;C2.jsx=QR;C2.jsxs=QR;jR.exports=C2;var Ce=jR.exports,UC={},qR={exports:{}},Ic={},ek={exports:{}},tk={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var BS=(e,r,y)=>{if(!r.has(e))throw TypeError("Cannot "+y)};var En=(e,r,y)=>(BS( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function r(P,d){var k=P.length;P.push(d);e:for(;0>>1,N=P[I];if(0>>1;Ij(U,k))Hj(W,U)?(P[I]=W,P[H]=k,I=H):(P[I]=U,P[G]=k,I=G);else if(Hj(W,k))P[I]=W,P[H]=k,I=H;else break e}}return d}function j(P,d){var k=P.sortIndex-d.sortIndex;return k!==0?k:P.id-d.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Y=performance;e.unstable_now=function(){return Y.now()}}else{var D=Date,O=D.now();e.unstable_now=function(){return D.now()-O}}var t=[],l=[],S=1,i=null,C=3,w=!1,v=!1,m=!1,a=typeof setTimeout=="function"?setTimeout:null,n=typeof clearTimeout=="function"?clearTimeout:null,s=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function o(P){for(var d=y(l);d!==null;){if(d.callback===null)F(l);else if(d.startTime<=P)F(l),d.sortIndex=d.expirationTime,r(t,d);else break;d=y(l)}}function h(P){if(m=!1,o(P),!v)if(y(t)!==null)v=!0,T(f);else{var d=y(l);d!==null&&L(h,d.startTime-P)}}function f(P,d){v=!1,m&&(m=!1,n(p),p=-1),w=!0;var k=C;try{for(o(d),i=y(t);i!==null&&(!(i.expirationTime>d)||P&&!c());){var I=i.callback;if(typeof I=="function"){i.callback=null,C=i.priorityLevel;var N=I(i.expirationTime<=d);d=e.unstable_now(),typeof N=="function"?i.callback=N:i===y(t)&&F(t),o(d)}else F(t);i=y(t)}if(i!==null)var B=!0;else{var G=y(l);G!==null&&L(h,G.startTime-d),B=!1}return B}finally{i=null,C=k,w=!1}}var u=!1,b=null,p=-1,E=5,g=-1;function c(){return!(e.unstable_now()-gP||125I?(P.sortIndex=k,r(l,P),y(t)===null&&P===y(l)&&(m?(n(p),p=-1):m=!0,L(h,k-I))):(P.sortIndex=N,r(t,P),v||w||(v=!0,T(f))),P},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(P){var d=C;return function(){var k=C;C=d;try{return P.apply(this,arguments)}finally{C=k}}}})(ck);uk.exports=ck;var $U=uk.exports;/** + */(function(e){function r(P,d){var k=P.length;P.push(d);e:for(;0>>1,N=P[I];if(0>>1;Ij(U,k))Hj(W,U)?(P[I]=W,P[H]=k,I=H):(P[I]=U,P[G]=k,I=G);else if(Hj(W,k))P[I]=W,P[H]=k,I=H;else break e}}return d}function j(P,d){var k=P.sortIndex-d.sortIndex;return k!==0?k:P.id-d.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Y=performance;e.unstable_now=function(){return Y.now()}}else{var D=Date,O=D.now();e.unstable_now=function(){return D.now()-O}}var t=[],l=[],S=1,i=null,C=3,w=!1,v=!1,m=!1,a=typeof setTimeout=="function"?setTimeout:null,n=typeof clearTimeout=="function"?clearTimeout:null,s=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function o(P){for(var d=x(l);d!==null;){if(d.callback===null)F(l);else if(d.startTime<=P)F(l),d.sortIndex=d.expirationTime,r(t,d);else break;d=x(l)}}function h(P){if(m=!1,o(P),!v)if(x(t)!==null)v=!0,T(f);else{var d=x(l);d!==null&&L(h,d.startTime-P)}}function f(P,d){v=!1,m&&(m=!1,n(p),p=-1),w=!0;var k=C;try{for(o(d),i=x(t);i!==null&&(!(i.expirationTime>d)||P&&!c());){var I=i.callback;if(typeof I=="function"){i.callback=null,C=i.priorityLevel;var N=I(i.expirationTime<=d);d=e.unstable_now(),typeof N=="function"?i.callback=N:i===x(t)&&F(t),o(d)}else F(t);i=x(t)}if(i!==null)var B=!0;else{var G=x(l);G!==null&&L(h,G.startTime-d),B=!1}return B}finally{i=null,C=k,w=!1}}var u=!1,b=null,p=-1,E=5,g=-1;function c(){return!(e.unstable_now()-gP||125I?(P.sortIndex=k,r(l,P),x(t)===null&&P===x(l)&&(m?(n(p),p=-1):m=!0,L(h,k-I))):(P.sortIndex=N,r(t,P),v||w||(v=!0,T(f))),P},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(P){var d=C;return function(){var k=C;C=d;try{return P.apply(this,arguments)}finally{C=k}}}})(tk);ek.exports=tk;var PU=ek.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var BS=(e,r,y)=>{if(!r.has(e))throw TypeError("Cannot "+y)};var En=(e,r,y)=>(BS( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fk=Oe,Ac=$U;function Fa(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KC=Object.prototype.hasOwnProperty,YU=/^[: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]*$/,XE={},ZE={};function XU(e){return KC.call(ZE,e)?!0:KC.call(XE,e)?!1:YU.test(e)?ZE[e]=!0:(XE[e]=!0,!1)}function ZU(e,r,y,F){if(y!==null&&y.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return F?!1:y!==null?!y.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KU(e,r,y,F){if(r===null||typeof r>"u"||ZU(e,r,y,F))return!0;if(F)return!1;if(y!==null)switch(y.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function Tu(e,r,y,F,j,Y,D){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=F,this.attributeNamespace=j,this.mustUseProperty=y,this.propertyName=e,this.type=r,this.sanitizeURL=Y,this.removeEmptyString=D}var Ol={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ol[e]=new Tu(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];Ol[r]=new Tu(r,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ol[e]=new Tu(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ol[e]=new Tu(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){Ol[e]=new Tu(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ol[e]=new Tu(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ol[e]=new Tu(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ol[e]=new Tu(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ol[e]=new Tu(e,5,!1,e.toLowerCase(),null,!1,!1)});var WM=/[\-:]([a-z])/g;function $M(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(WM,$M);Ol[r]=new Tu(r,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(WM,$M);Ol[r]=new Tu(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(WM,$M);Ol[r]=new Tu(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ol[e]=new Tu(e,1,!1,e.toLowerCase(),null,!1,!1)});Ol.xlinkHref=new Tu("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ol[e]=new Tu(e,1,!1,e.toLowerCase(),null,!0,!0)});function YM(e,r,y,F){var j=Ol.hasOwnProperty(r)?Ol[r]:null;(j!==null?j.type!==0:F||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HC=Object.prototype.hasOwnProperty,LU=/^[: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]*$/,UE={},HE={};function IU(e){return HC.call(HE,e)?!0:HC.call(UE,e)?!1:LU.test(e)?HE[e]=!0:(UE[e]=!0,!1)}function RU(e,r,x,F){if(x!==null&&x.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return F?!1:x!==null?!x.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kU(e,r,x,F){if(r===null||typeof r>"u"||RU(e,r,x,F))return!0;if(F)return!1;if(x!==null)switch(x.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function Su(e,r,x,F,j,Y,D){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=F,this.attributeNamespace=j,this.mustUseProperty=x,this.propertyName=e,this.type=r,this.sanitizeURL=Y,this.removeEmptyString=D}var Fl={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fl[e]=new Su(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];Fl[r]=new Su(r,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fl[e]=new Su(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fl[e]=new Su(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){Fl[e]=new Su(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fl[e]=new Su(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fl[e]=new Su(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fl[e]=new Su(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fl[e]=new Su(e,5,!1,e.toLowerCase(),null,!1,!1)});var OM=/[\-:]([a-z])/g;function FM(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(OM,FM);Fl[r]=new Su(r,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(OM,FM);Fl[r]=new Su(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(OM,FM);Fl[r]=new Su(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fl[e]=new Su(e,1,!1,e.toLowerCase(),null,!1,!1)});Fl.xlinkHref=new Su("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fl[e]=new Su(e,1,!1,e.toLowerCase(),null,!0,!0)});function _M(e,r,x,F){var j=Fl.hasOwnProperty(r)?Fl[r]:null;(j!==null?j.type!==0:F||!(2O||j[D]!==Y[O]){var t=` -`+j[D].replace(" at new "," at ");return e.displayName&&t.includes("")&&(t=t.replace("",e.displayName)),t}while(1<=D&&0<=O);break}}}finally{HS=!1,Error.prepareStackTrace=y}return(e=e?e.displayName||e.name:"")?$1(e):""}function JU(e){switch(e.tag){case 5:return $1(e.type);case 16:return $1("Lazy");case 13:return $1("Suspense");case 19:return $1("SuspenseList");case 0:case 2:case 15:return e=VS(e.type,!1),e;case 11:return e=VS(e.type.render,!1),e;case 1:return e=VS(e.type,!0),e;default:return""}}function e4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bm:return"Fragment";case xm:return"Portal";case JC:return"Profiler";case XM:return"StrictMode";case QC:return"Suspense";case qC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vk:return(e.displayName||"Context")+".Consumer";case hk:return(e._context.displayName||"Context")+".Provider";case ZM:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case KM:return r=e.displayName||null,r!==null?r:e4(e.type)||"Memo";case up:r=e._payload,e=e._init;try{return e4(e(r))}catch{}}return null}function QU(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return e4(r);case 8:return r===XM?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Up(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gk(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function qU(e){var r=gk(e)?"checked":"value",y=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),F=""+e[r];if(!e.hasOwnProperty(r)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var j=y.get,Y=y.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return j.call(this)},set:function(D){F=""+D,Y.call(this,D)}}),Object.defineProperty(e,r,{enumerable:y.enumerable}),{getValue:function(){return F},setValue:function(D){F=""+D},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function Ew(e){e._valueTracker||(e._valueTracker=qU(e))}function mk(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var y=r.getValue(),F="";return e&&(F=gk(e)?e.checked?"true":"false":e.value),e=F,e!==y?(r.setValue(e),!0):!1}function O3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function t4(e,r){var y=r.checked;return xs({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??e._wrapperState.initialChecked})}function JE(e,r){var y=r.defaultValue==null?"":r.defaultValue,F=r.checked!=null?r.checked:r.defaultChecked;y=Up(r.value!=null?r.value:y),e._wrapperState={initialChecked:F,initialValue:y,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function yk(e,r){r=r.checked,r!=null&&YM(e,"checked",r,!1)}function r4(e,r){yk(e,r);var y=Up(r.value),F=r.type;if(y!=null)F==="number"?(y===0&&e.value===""||e.value!=y)&&(e.value=""+y):e.value!==""+y&&(e.value=""+y);else if(F==="submit"||F==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?n4(e,r.type,y):r.hasOwnProperty("defaultValue")&&n4(e,r.type,Up(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function QE(e,r,y){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var F=r.type;if(!(F!=="submit"&&F!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,y||r===e.value||(e.value=r),e.defaultValue=r}y=e.name,y!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,y!==""&&(e.name=y)}function n4(e,r,y){(r!=="number"||O3(e.ownerDocument)!==e)&&(y==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+y&&(e.defaultValue=""+y))}var Y1=Array.isArray;function zm(e,r,y,F){if(e=e.options,r){r={};for(var j=0;j"+r.valueOf().toString()+"",r=Pw.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Mx(e,r){if(r){var y=e.firstChild;if(y&&y===e.lastChild&&y.nodeType===3){y.nodeValue=r;return}}e.textContent=r}var ax={animationIterationCount:!0,aspectRatio:!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},eH=["Webkit","ms","Moz","O"];Object.keys(ax).forEach(function(e){eH.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),ax[r]=ax[e]})});function Tk(e,r,y){return r==null||typeof r=="boolean"||r===""?"":y||typeof r!="number"||r===0||ax.hasOwnProperty(e)&&ax[e]?(""+r).trim():r+"px"}function Sk(e,r){e=e.style;for(var y in r)if(r.hasOwnProperty(y)){var F=y.indexOf("--")===0,j=Tk(y,r[y],F);y==="float"&&(y="cssFloat"),F?e.setProperty(y,j):e[y]=j}}var tH=xs({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 o4(e,r){if(r){if(tH[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(Fa(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(Fa(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(Fa(61))}if(r.style!=null&&typeof r.style!="object")throw Error(Fa(62))}}function s4(e,r){if(e.indexOf("-")===-1)return typeof r.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var l4=null;function JM(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var u4=null,Bm=null,Nm=null;function tP(e){if(e=Tb(e)){if(typeof u4!="function")throw Error(Fa(280));var r=e.stateNode;r&&(r=_2(r),u4(e.stateNode,e.type,r))}}function Ck(e){Bm?Nm?Nm.push(e):Nm=[e]:Bm=e}function Mk(){if(Bm){var e=Bm,r=Nm;if(Nm=Bm=null,tP(e),r)for(e=0;e>>=0,e===0?32:31-(dH(e)/hH|0)|0}var Lw=64,Iw=4194304;function X1(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function B3(e,r){var y=e.pendingLanes;if(y===0)return 0;var F=0,j=e.suspendedLanes,Y=e.pingedLanes,D=y&268435455;if(D!==0){var O=D&~j;O!==0?F=X1(O):(Y&=D,Y!==0&&(F=X1(Y)))}else D=y&~j,D!==0?F=X1(D):Y!==0&&(F=X1(Y));if(F===0)return 0;if(r!==0&&r!==F&&!(r&j)&&(j=F&-F,Y=r&-r,j>=Y||j===16&&(Y&4194240)!==0))return r;if(F&4&&(F|=y&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=F;0y;y++)r.push(e);return r}function bb(e,r,y){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-vd(r),e[r]=y}function mH(e,r){var y=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var F=e.eventTimes;for(e=e.expirationTimes;0=ox),cP=" ",fP=!1;function Wk(e,r){switch(e){case"keyup":return WH.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $k(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wm=!1;function YH(e,r){switch(e){case"compositionend":return $k(r);case"keypress":return r.which!==32?null:(fP=!0,cP);case"textInput":return e=r.data,e===cP&&fP?null:e;default:return null}}function XH(e,r){if(wm)return e==="compositionend"||!iA&&Wk(e,r)?(e=jk(),f3=rA=Tp=null,wm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:y,offset:r-e};e=F}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=pP(y)}}function Kk(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?Kk(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function Jk(){for(var e=window,r=O3();r instanceof e.HTMLIFrameElement;){try{var y=typeof r.contentWindow.location.href=="string"}catch{y=!1}if(y)e=r.contentWindow;else break;r=O3(e.document)}return r}function oA(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function nV(e){var r=Jk(),y=e.focusedElem,F=e.selectionRange;if(r!==y&&y&&y.ownerDocument&&Kk(y.ownerDocument.documentElement,y)){if(F!==null&&oA(y)){if(r=F.start,e=F.end,e===void 0&&(e=r),"selectionStart"in y)y.selectionStart=r,y.selectionEnd=Math.min(e,y.value.length);else if(e=(r=y.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var j=y.textContent.length,Y=Math.min(F.start,j);F=F.end===void 0?Y:Math.min(F.end,j),!e.extend&&Y>F&&(j=F,F=Y,Y=j),j=gP(y,Y);var D=gP(y,F);j&&D&&(e.rangeCount!==1||e.anchorNode!==j.node||e.anchorOffset!==j.offset||e.focusNode!==D.node||e.focusOffset!==D.offset)&&(r=r.createRange(),r.setStart(j.node,j.offset),e.removeAllRanges(),Y>F?(e.addRange(r),e.extend(D.node,D.offset)):(r.setEnd(D.node,D.offset),e.addRange(r)))}}for(r=[],e=y;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Tm=null,p4=null,lx=null,g4=!1;function mP(e,r,y){var F=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;g4||Tm==null||Tm!==O3(F)||(F=Tm,"selectionStart"in F&&oA(F)?F={start:F.selectionStart,end:F.selectionEnd}:(F=(F.ownerDocument&&F.ownerDocument.defaultView||window).getSelection(),F={anchorNode:F.anchorNode,anchorOffset:F.anchorOffset,focusNode:F.focusNode,focusOffset:F.focusOffset}),lx&&Rx(lx,F)||(lx=F,F=H3(p4,"onSelect"),0Mm||(e.current=T4[Mm],T4[Mm]=null,Mm--)}function Ho(e,r){Mm++,T4[Mm]=e.current,e.current=r}var Hp={},tu=Wp(Hp),Wu=Wp(!1),ng=Hp;function hy(e,r){var y=e.type.contextTypes;if(!y)return Hp;var F=e.stateNode;if(F&&F.__reactInternalMemoizedUnmaskedChildContext===r)return F.__reactInternalMemoizedMaskedChildContext;var j={},Y;for(Y in y)j[Y]=r[Y];return F&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=j),j}function $u(e){return e=e.childContextTypes,e!=null}function j3(){Jo(Wu),Jo(tu)}function CP(e,r,y){if(tu.current!==Hp)throw Error(Fa(168));Ho(tu,r),Ho(Wu,y)}function oD(e,r,y){var F=e.stateNode;if(r=r.childContextTypes,typeof F.getChildContext!="function")return y;F=F.getChildContext();for(var j in F)if(!(j in r))throw Error(Fa(108,QU(e)||"Unknown",j));return xs({},y,F)}function G3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hp,ng=tu.current,Ho(tu,e),Ho(Wu,Wu.current),!0}function MP(e,r,y){var F=e.stateNode;if(!F)throw Error(Fa(169));y?(e=oD(e,r,ng),F.__reactInternalMemoizedMergedChildContext=e,Jo(Wu),Jo(tu),Ho(tu,e)):Jo(Wu),Ho(Wu,y)}var Gh=null,z2=!1,rC=!1;function sD(e){Gh===null?Gh=[e]:Gh.push(e)}function pV(e){z2=!0,sD(e)}function $p(){if(!rC&&Gh!==null){rC=!0;var e=0,r=Mo;try{var y=Gh;for(Mo=1;e>=D,j-=D,$h=1<<32-vd(r)+j|y<p?(E=b,b=null):E=b.sibling;var g=C(n,b,o[p],h);if(g===null){b===null&&(b=E);break}e&&b&&g.alternate===null&&r(n,b),s=Y(g,s,p),u===null?f=g:u.sibling=g,u=g,b=E}if(p===o.length)return y(n,b),is&&R0(n,p),f;if(b===null){for(;pp?(E=b,b=null):E=b.sibling;var c=C(n,b,g.value,h);if(c===null){b===null&&(b=E);break}e&&b&&c.alternate===null&&r(n,b),s=Y(c,s,p),u===null?f=c:u.sibling=c,u=c,b=E}if(g.done)return y(n,b),is&&R0(n,p),f;if(b===null){for(;!g.done;p++,g=o.next())g=i(n,g.value,h),g!==null&&(s=Y(g,s,p),u===null?f=g:u.sibling=g,u=g);return is&&R0(n,p),f}for(b=F(n,b);!g.done;p++,g=o.next())g=w(b,n,p,g.value,h),g!==null&&(e&&g.alternate!==null&&b.delete(g.key===null?p:g.key),s=Y(g,s,p),u===null?f=g:u.sibling=g,u=g);return e&&b.forEach(function(x){return r(n,x)}),is&&R0(n,p),f}function a(n,s,o,h){if(typeof o=="object"&&o!==null&&o.type===bm&&o.key===null&&(o=o.props.children),typeof o=="object"&&o!==null){switch(o.$$typeof){case Aw:e:{for(var f=o.key,u=s;u!==null;){if(u.key===f){if(f=o.type,f===bm){if(u.tag===7){y(n,u.sibling),s=j(u,o.props.children),s.return=n,n=s;break e}}else if(u.elementType===f||typeof f=="object"&&f!==null&&f.$$typeof===up&&kP(f)===u.type){y(n,u.sibling),s=j(u,o.props),s.ref=w1(n,u,o),s.return=n,n=s;break e}y(n,u);break}else r(n,u);u=u.sibling}o.type===bm?(s=q0(o.props.children,n.mode,h,o.key),s.return=n,n=s):(h=x3(o.type,o.key,o.props,null,n.mode,h),h.ref=w1(n,s,o),h.return=n,n=h)}return D(n);case xm:e:{for(u=o.key;s!==null;){if(s.key===u)if(s.tag===4&&s.stateNode.containerInfo===o.containerInfo&&s.stateNode.implementation===o.implementation){y(n,s.sibling),s=j(s,o.children||[]),s.return=n,n=s;break e}else{y(n,s);break}else r(n,s);s=s.sibling}s=cC(o,n.mode,h),s.return=n,n=s}return D(n);case up:return u=o._init,a(n,s,u(o._payload),h)}if(Y1(o))return v(n,s,o,h);if(g1(o))return m(n,s,o,h);zw(n,o)}return typeof o=="string"&&o!==""||typeof o=="number"?(o=""+o,s!==null&&s.tag===6?(y(n,s.sibling),s=j(s,o),s.return=n,n=s):(y(n,s),s=uC(o,n.mode,h),s.return=n,n=s),D(n)):y(n,s)}return a}var py=pD(!0),gD=pD(!1),Sb={},oh=Wp(Sb),Fx=Wp(Sb),_x=Wp(Sb);function N0(e){if(e===Sb)throw Error(Fa(174));return e}function pA(e,r){switch(Ho(_x,r),Ho(Fx,e),Ho(oh,Sb),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:i4(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=i4(r,e)}Jo(oh),Ho(oh,r)}function gy(){Jo(oh),Jo(Fx),Jo(_x)}function mD(e){N0(_x.current);var r=N0(oh.current),y=i4(r,e.type);r!==y&&(Ho(Fx,e),Ho(oh,y))}function gA(e){Fx.current===e&&(Jo(oh),Jo(Fx))}var ms=Wp(0);function K3(e){for(var r=e;r!==null;){if(r.tag===13){var y=r.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var nC=[];function mA(){for(var e=0;ey?y:4,e(!0);var F=aC.transition;aC.transition={};try{e(!1),r()}finally{Mo=y,aC.transition=F}}function DD(){return Cf().memoizedState}function xV(e,r,y){var F=Op(e);if(y={lane:F,action:y,hasEagerState:!1,eagerState:null,next:null},OD(e))FD(r,y);else if(y=fD(e,r,y,F),y!==null){var j=xu();pd(y,e,F,j),_D(y,r,F)}}function bV(e,r,y){var F=Op(e),j={lane:F,action:y,hasEagerState:!1,eagerState:null,next:null};if(OD(e))FD(r,j);else{var Y=e.alternate;if(e.lanes===0&&(Y===null||Y.lanes===0)&&(Y=r.lastRenderedReducer,Y!==null))try{var D=r.lastRenderedState,O=Y(D,y);if(j.hasEagerState=!0,j.eagerState=O,bd(O,D)){var t=r.interleaved;t===null?(j.next=j,hA(r)):(j.next=t.next,t.next=j),r.interleaved=j;return}}catch{}finally{}y=fD(e,r,j,F),y!==null&&(j=xu(),pd(y,e,F,j),_D(y,r,F))}}function OD(e){var r=e.alternate;return e===ys||r!==null&&r===ys}function FD(e,r){ux=J3=!0;var y=e.pending;y===null?r.next=r:(r.next=y.next,y.next=r),e.pending=r}function _D(e,r,y){if(y&4194240){var F=r.lanes;F&=e.pendingLanes,y|=F,r.lanes=y,qM(e,y)}}var Q3={readContext:Sf,useCallback:Yl,useContext:Yl,useEffect:Yl,useImperativeHandle:Yl,useInsertionEffect:Yl,useLayoutEffect:Yl,useMemo:Yl,useReducer:Yl,useRef:Yl,useState:Yl,useDebugValue:Yl,useDeferredValue:Yl,useTransition:Yl,useMutableSource:Yl,useSyncExternalStore:Yl,useId:Yl,unstable_isNewReconciler:!1},wV={readContext:Sf,useCallback:function(e,r){return $d().memoizedState=[e,r===void 0?null:r],e},useContext:Sf,useEffect:OP,useImperativeHandle:function(e,r,y){return y=y!=null?y.concat([e]):null,p3(4194308,4,PD.bind(null,r,e),y)},useLayoutEffect:function(e,r){return p3(4194308,4,e,r)},useInsertionEffect:function(e,r){return p3(4,2,e,r)},useMemo:function(e,r){var y=$d();return r=r===void 0?null:r,e=e(),y.memoizedState=[e,r],e},useReducer:function(e,r,y){var F=$d();return r=y!==void 0?y(r):r,F.memoizedState=F.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},F.queue=e,e=e.dispatch=xV.bind(null,ys,e),[F.memoizedState,e]},useRef:function(e){var r=$d();return e={current:e},r.memoizedState=e},useState:DP,useDebugValue:TA,useDeferredValue:function(e){return $d().memoizedState=e},useTransition:function(){var e=DP(!1),r=e[0];return e=yV.bind(null,e[1]),$d().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,y){var F=ys,j=$d();if(is){if(y===void 0)throw Error(Fa(407));y=y()}else{if(y=r(),dl===null)throw Error(Fa(349));ig&30||bD(F,r,y)}j.memoizedState=y;var Y={value:y,getSnapshot:r};return j.queue=Y,OP(TD.bind(null,F,Y,e),[e]),F.flags|=2048,Nx(9,wD.bind(null,F,Y,y,r),void 0,null),y},useId:function(){var e=$d(),r=dl.identifierPrefix;if(is){var y=Yh,F=$h;y=(F&~(1<<32-vd(F)-1)).toString(32)+y,r=":"+r+"R"+y,y=zx++,0")&&(t=t.replace("",e.displayName)),t}while(1<=D&&0<=O);break}}}finally{kS=!1,Error.prepareStackTrace=x}return(e=e?e.displayName||e.name:"")?Y1(e):""}function DU(e){switch(e.tag){case 5:return Y1(e.type);case 16:return Y1("Lazy");case 13:return Y1("Suspense");case 19:return Y1("SuspenseList");case 0:case 2:case 15:return e=DS(e.type,!1),e;case 11:return e=DS(e.type.render,!1),e;case 1:return e=DS(e.type,!0),e;default:return""}}function WC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bm:return"Fragment";case xm:return"Portal";case VC:return"Profiler";case zM:return"StrictMode";case jC:return"Suspense";case GC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ik:return(e.displayName||"Context")+".Consumer";case ak:return(e._context.displayName||"Context")+".Provider";case BM:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case NM:return r=e.displayName||null,r!==null?r:WC(e.type)||"Memo";case up:r=e._payload,e=e._init;try{return WC(e(r))}catch{}}return null}function OU(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return WC(r);case 8:return r===zM?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Up(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sk(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function FU(e){var r=sk(e)?"checked":"value",x=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),F=""+e[r];if(!e.hasOwnProperty(r)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var j=x.get,Y=x.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return j.call(this)},set:function(D){F=""+D,Y.call(this,D)}}),Object.defineProperty(e,r,{enumerable:x.enumerable}),{getValue:function(){return F},setValue:function(D){F=""+D},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function bw(e){e._valueTracker||(e._valueTracker=FU(e))}function lk(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var x=r.getValue(),F="";return e&&(F=sk(e)?e.checked?"true":"false":e.value),e=F,e!==x?(r.setValue(e),!0):!1}function E3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $C(e,r){var x=r.checked;return bs({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??e._wrapperState.initialChecked})}function jE(e,r){var x=r.defaultValue==null?"":r.defaultValue,F=r.checked!=null?r.checked:r.defaultChecked;x=Up(r.value!=null?r.value:x),e._wrapperState={initialChecked:F,initialValue:x,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function uk(e,r){r=r.checked,r!=null&&_M(e,"checked",r,!1)}function YC(e,r){uk(e,r);var x=Up(r.value),F=r.type;if(x!=null)F==="number"?(x===0&&e.value===""||e.value!=x)&&(e.value=""+x):e.value!==""+x&&(e.value=""+x);else if(F==="submit"||F==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?XC(e,r.type,x):r.hasOwnProperty("defaultValue")&&XC(e,r.type,Up(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function GE(e,r,x){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var F=r.type;if(!(F!=="submit"&&F!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,x||r===e.value||(e.value=r),e.defaultValue=r}x=e.name,x!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,x!==""&&(e.name=x)}function XC(e,r,x){(r!=="number"||E3(e.ownerDocument)!==e)&&(x==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+x&&(e.defaultValue=""+x))}var X1=Array.isArray;function zm(e,r,x,F){if(e=e.options,r){r={};for(var j=0;j"+r.valueOf().toString()+"",r=ww.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Ax(e,r){if(r){var x=e.firstChild;if(x&&x===e.lastChild&&x.nodeType===3){x.nodeValue=r;return}}e.textContent=r}var ix={animationIterationCount:!0,aspectRatio:!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},_U=["Webkit","ms","Moz","O"];Object.keys(ix).forEach(function(e){_U.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),ix[r]=ix[e]})});function hk(e,r,x){return r==null||typeof r=="boolean"||r===""?"":x||typeof r!="number"||r===0||ix.hasOwnProperty(e)&&ix[e]?(""+r).trim():r+"px"}function vk(e,r){e=e.style;for(var x in r)if(r.hasOwnProperty(x)){var F=x.indexOf("--")===0,j=hk(x,r[x],F);x==="float"&&(x="cssFloat"),F?e.setProperty(x,j):e[x]=j}}var zU=bs({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 JC(e,r){if(r){if(zU[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(Fa(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(Fa(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(Fa(61))}if(r.style!=null&&typeof r.style!="object")throw Error(Fa(62))}}function QC(e,r){if(e.indexOf("-")===-1)return typeof r.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qC=null;function UM(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var e4=null,Bm=null,Nm=null;function YE(e){if(e=vb(e)){if(typeof e4!="function")throw Error(Fa(280));var r=e.stateNode;r&&(r=L2(r),e4(e.stateNode,e.type,r))}}function pk(e){Bm?Nm?Nm.push(e):Nm=[e]:Bm=e}function gk(){if(Bm){var e=Bm,r=Nm;if(Nm=Bm=null,YE(e),r)for(e=0;e>>=0,e===0?32:31-(XU(e)/ZU|0)|0}var Tw=64,Sw=4194304;function Z1(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function R3(e,r){var x=e.pendingLanes;if(x===0)return 0;var F=0,j=e.suspendedLanes,Y=e.pingedLanes,D=x&268435455;if(D!==0){var O=D&~j;O!==0?F=Z1(O):(Y&=D,Y!==0&&(F=Z1(Y)))}else D=x&~j,D!==0?F=Z1(D):Y!==0&&(F=Z1(Y));if(F===0)return 0;if(r!==0&&r!==F&&!(r&j)&&(j=F&-F,Y=r&-r,j>=Y||j===16&&(Y&4194240)!==0))return r;if(F&4&&(F|=x&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=F;0x;x++)r.push(e);return r}function db(e,r,x){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-md(r),e[r]=x}function qU(e,r){var x=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var F=e.eventTimes;for(e=e.expirationTimes;0=sx),rP=" ",nP=!1;function _k(e,r){switch(e){case"keyup":return EH.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wm=!1;function LH(e,r){switch(e){case"compositionend":return zk(r);case"keypress":return r.which!==32?null:(nP=!0,rP);case"textInput":return e=r.data,e===rP&&nP?null:e;default:return null}}function IH(e,r){if(wm)return e==="compositionend"||!XM&&_k(e,r)?(e=Ok(),a3=WM=Tp=null,wm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:x,offset:r-e};e=F}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=sP(x)}}function Hk(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?Hk(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function Vk(){for(var e=window,r=E3();r instanceof e.HTMLIFrameElement;){try{var x=typeof r.contentWindow.location.href=="string"}catch{x=!1}if(x)e=r.contentWindow;else break;r=E3(e.document)}return r}function ZM(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function NH(e){var r=Vk(),x=e.focusedElem,F=e.selectionRange;if(r!==x&&x&&x.ownerDocument&&Hk(x.ownerDocument.documentElement,x)){if(F!==null&&ZM(x)){if(r=F.start,e=F.end,e===void 0&&(e=r),"selectionStart"in x)x.selectionStart=r,x.selectionEnd=Math.min(e,x.value.length);else if(e=(r=x.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var j=x.textContent.length,Y=Math.min(F.start,j);F=F.end===void 0?Y:Math.min(F.end,j),!e.extend&&Y>F&&(j=F,F=Y,Y=j),j=lP(x,Y);var D=lP(x,F);j&&D&&(e.rangeCount!==1||e.anchorNode!==j.node||e.anchorOffset!==j.offset||e.focusNode!==D.node||e.focusOffset!==D.offset)&&(r=r.createRange(),r.setStart(j.node,j.offset),e.removeAllRanges(),Y>F?(e.addRange(r),e.extend(D.node,D.offset)):(r.setEnd(D.node,D.offset),e.addRange(r)))}}for(r=[],e=x;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,Tm=null,o4=null,ux=null,s4=!1;function uP(e,r,x){var F=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;s4||Tm==null||Tm!==E3(F)||(F=Tm,"selectionStart"in F&&ZM(F)?F={start:F.selectionStart,end:F.selectionEnd}:(F=(F.ownerDocument&&F.ownerDocument.defaultView||window).getSelection(),F={anchorNode:F.anchorNode,anchorOffset:F.anchorOffset,focusNode:F.focusNode,focusOffset:F.focusOffset}),ux&&kx(ux,F)||(ux=F,F=O3(o4,"onSelect"),0Mm||(e.current=h4[Mm],h4[Mm]=null,Mm--)}function Vo(e,r){Mm++,h4[Mm]=e.current,e.current=r}var Hp={},ru=Wp(Hp),$u=Wp(!1),ng=Hp;function hy(e,r){var x=e.type.contextTypes;if(!x)return Hp;var F=e.stateNode;if(F&&F.__reactInternalMemoizedUnmaskedChildContext===r)return F.__reactInternalMemoizedMaskedChildContext;var j={},Y;for(Y in x)j[Y]=r[Y];return F&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=j),j}function Yu(e){return e=e.childContextTypes,e!=null}function _3(){Qo($u),Qo(ru)}function gP(e,r,x){if(ru.current!==Hp)throw Error(Fa(168));Vo(ru,r),Vo($u,x)}function Jk(e,r,x){var F=e.stateNode;if(r=r.childContextTypes,typeof F.getChildContext!="function")return x;F=F.getChildContext();for(var j in F)if(!(j in r))throw Error(Fa(108,OU(e)||"Unknown",j));return bs({},x,F)}function z3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hp,ng=ru.current,Vo(ru,e),Vo($u,$u.current),!0}function mP(e,r,x){var F=e.stateNode;if(!F)throw Error(Fa(169));x?(e=Jk(e,r,ng),F.__reactInternalMemoizedMergedChildContext=e,Qo($u),Qo(ru),Vo(ru,e)):Qo($u),Vo($u,x)}var $h=null,I2=!1,YS=!1;function Qk(e){$h===null?$h=[e]:$h.push(e)}function JH(e){I2=!0,Qk(e)}function $p(){if(!YS&&$h!==null){YS=!0;var e=0,r=Ao;try{var x=$h;for(Ao=1;e>=D,j-=D,Xh=1<<32-md(r)+j|x<p?(E=b,b=null):E=b.sibling;var g=C(n,b,o[p],h);if(g===null){b===null&&(b=E);break}e&&b&&g.alternate===null&&r(n,b),s=Y(g,s,p),u===null?f=g:u.sibling=g,u=g,b=E}if(p===o.length)return x(n,b),os&&k0(n,p),f;if(b===null){for(;pp?(E=b,b=null):E=b.sibling;var c=C(n,b,g.value,h);if(c===null){b===null&&(b=E);break}e&&b&&c.alternate===null&&r(n,b),s=Y(c,s,p),u===null?f=c:u.sibling=c,u=c,b=E}if(g.done)return x(n,b),os&&k0(n,p),f;if(b===null){for(;!g.done;p++,g=o.next())g=i(n,g.value,h),g!==null&&(s=Y(g,s,p),u===null?f=g:u.sibling=g,u=g);return os&&k0(n,p),f}for(b=F(n,b);!g.done;p++,g=o.next())g=w(b,n,p,g.value,h),g!==null&&(e&&g.alternate!==null&&b.delete(g.key===null?p:g.key),s=Y(g,s,p),u===null?f=g:u.sibling=g,u=g);return e&&b.forEach(function(y){return r(n,y)}),os&&k0(n,p),f}function a(n,s,o,h){if(typeof o=="object"&&o!==null&&o.type===bm&&o.key===null&&(o=o.props.children),typeof o=="object"&&o!==null){switch(o.$$typeof){case xw:e:{for(var f=o.key,u=s;u!==null;){if(u.key===f){if(f=o.type,f===bm){if(u.tag===7){x(n,u.sibling),s=j(u,o.props.children),s.return=n,n=s;break e}}else if(u.elementType===f||typeof f=="object"&&f!==null&&f.$$typeof===up&&CP(f)===u.type){x(n,u.sibling),s=j(u,o.props),s.ref=T1(n,u,o),s.return=n,n=s;break e}x(n,u);break}else r(n,u);u=u.sibling}o.type===bm?(s=q0(o.props.children,n.mode,h,o.key),s.return=n,n=s):(h=d3(o.type,o.key,o.props,null,n.mode,h),h.ref=T1(n,s,o),h.return=n,n=h)}return D(n);case xm:e:{for(u=o.key;s!==null;){if(s.key===u)if(s.tag===4&&s.stateNode.containerInfo===o.containerInfo&&s.stateNode.implementation===o.implementation){x(n,s.sibling),s=j(s,o.children||[]),s.return=n,n=s;break e}else{x(n,s);break}else r(n,s);s=s.sibling}s=tC(o,n.mode,h),s.return=n,n=s}return D(n);case up:return u=o._init,a(n,s,u(o._payload),h)}if(X1(o))return v(n,s,o,h);if(m1(o))return m(n,s,o,h);Iw(n,o)}return typeof o=="string"&&o!==""||typeof o=="number"?(o=""+o,s!==null&&s.tag===6?(x(n,s.sibling),s=j(s,o),s.return=n,n=s):(x(n,s),s=eC(o,n.mode,h),s.return=n,n=s),D(n)):x(n,s)}return a}var py=oD(!0),sD=oD(!1),pb={},lh=Wp(pb),_x=Wp(pb),zx=Wp(pb);function U0(e){if(e===pb)throw Error(Fa(174));return e}function aA(e,r){switch(Vo(zx,r),Vo(_x,e),Vo(lh,pb),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:KC(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=KC(r,e)}Qo(lh),Vo(lh,r)}function gy(){Qo(lh),Qo(_x),Qo(zx)}function lD(e){U0(zx.current);var r=U0(lh.current),x=KC(r,e.type);r!==x&&(Vo(_x,e),Vo(lh,x))}function iA(e){_x.current===e&&(Qo(lh),Qo(_x))}var ys=Wp(0);function j3(e){for(var r=e;r!==null;){if(r.tag===13){var x=r.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var XS=[];function oA(){for(var e=0;ex?x:4,e(!0);var F=ZS.transition;ZS.transition={};try{e(!1),r()}finally{Ao=x,ZS.transition=F}}function CD(){return Mf().memoizedState}function tV(e,r,x){var F=Op(e);if(x={lane:F,action:x,hasEagerState:!1,eagerState:null,next:null},MD(e))AD(r,x);else if(x=rD(e,r,x,F),x!==null){var j=bu();yd(x,e,F,j),ED(x,r,F)}}function rV(e,r,x){var F=Op(e),j={lane:F,action:x,hasEagerState:!1,eagerState:null,next:null};if(MD(e))AD(r,j);else{var Y=e.alternate;if(e.lanes===0&&(Y===null||Y.lanes===0)&&(Y=r.lastRenderedReducer,Y!==null))try{var D=r.lastRenderedState,O=Y(D,x);if(j.hasEagerState=!0,j.eagerState=O,Sd(O,D)){var t=r.interleaved;t===null?(j.next=j,rA(r)):(j.next=t.next,t.next=j),r.interleaved=j;return}}catch{}finally{}x=rD(e,r,j,F),x!==null&&(j=bu(),yd(x,e,F,j),ED(x,r,F))}}function MD(e){var r=e.alternate;return e===xs||r!==null&&r===xs}function AD(e,r){cx=G3=!0;var x=e.pending;x===null?r.next=r:(r.next=x.next,x.next=r),e.pending=r}function ED(e,r,x){if(x&4194240){var F=r.lanes;F&=e.pendingLanes,x|=F,r.lanes=x,VM(e,x)}}var W3={readContext:Cf,useCallback:Xl,useContext:Xl,useEffect:Xl,useImperativeHandle:Xl,useInsertionEffect:Xl,useLayoutEffect:Xl,useMemo:Xl,useReducer:Xl,useRef:Xl,useState:Xl,useDebugValue:Xl,useDeferredValue:Xl,useTransition:Xl,useMutableSource:Xl,useSyncExternalStore:Xl,useId:Xl,unstable_isNewReconciler:!1},nV={readContext:Cf,useCallback:function(e,r){return Zd().memoizedState=[e,r===void 0?null:r],e},useContext:Cf,useEffect:AP,useImperativeHandle:function(e,r,x){return x=x!=null?x.concat([e]):null,l3(4194308,4,xD.bind(null,r,e),x)},useLayoutEffect:function(e,r){return l3(4194308,4,e,r)},useInsertionEffect:function(e,r){return l3(4,2,e,r)},useMemo:function(e,r){var x=Zd();return r=r===void 0?null:r,e=e(),x.memoizedState=[e,r],e},useReducer:function(e,r,x){var F=Zd();return r=x!==void 0?x(r):r,F.memoizedState=F.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},F.queue=e,e=e.dispatch=tV.bind(null,xs,e),[F.memoizedState,e]},useRef:function(e){var r=Zd();return e={current:e},r.memoizedState=e},useState:MP,useDebugValue:fA,useDeferredValue:function(e){return Zd().memoizedState=e},useTransition:function(){var e=MP(!1),r=e[0];return e=eV.bind(null,e[1]),Zd().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,x){var F=xs,j=Zd();if(os){if(x===void 0)throw Error(Fa(407));x=x()}else{if(x=r(),hl===null)throw Error(Fa(349));ig&30||fD(F,r,x)}j.memoizedState=x;var Y={value:x,getSnapshot:r};return j.queue=Y,AP(hD.bind(null,F,Y,e),[e]),F.flags|=2048,Ux(9,dD.bind(null,F,Y,x,r),void 0,null),x},useId:function(){var e=Zd(),r=hl.identifierPrefix;if(os){var x=Zh,F=Xh;x=(F&~(1<<32-md(F)-1)).toString(32)+x,r=":"+r+"R"+x,x=Bx++,0<\/script>",e=e.removeChild(e.firstChild)):typeof F.is=="string"?e=D.createElement(y,{is:F.is}):(e=D.createElement(y),y==="select"&&(D=e,F.multiple?D.multiple=!0:F.size&&(D.size=F.size))):e=D.createElementNS(e,y),e[rh]=r,e[Ox]=F,WD(e,r,!1,!1),r.stateNode=e;e:{switch(D=s4(y,F),y){case"dialog":Xo("cancel",e),Xo("close",e),j=F;break;case"iframe":case"object":case"embed":Xo("load",e),j=F;break;case"video":case"audio":for(j=0;jyy&&(r.flags|=128,F=!0,T1(Y,!1),r.lanes=4194304)}else{if(!F)if(e=K3(D),e!==null){if(r.flags|=128,F=!0,y=e.updateQueue,y!==null&&(r.updateQueue=y,r.flags|=4),T1(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!D.alternate&&!is)return Xl(r),null}else 2*Bs()-Y.renderingStartTime>yy&&y!==1073741824&&(r.flags|=128,F=!0,T1(Y,!1),r.lanes=4194304);Y.isBackwards?(D.sibling=r.child,r.child=D):(y=Y.last,y!==null?y.sibling=D:r.child=D,Y.last=D)}return Y.tail!==null?(r=Y.tail,Y.rendering=r,Y.tail=r.sibling,Y.renderingStartTime=Bs(),r.sibling=null,y=ms.current,Ho(ms,F?y&1|2:y&1),r):(Xl(r),null);case 22:case 23:return PA(),F=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==F&&(r.flags|=8192),F&&r.mode&1?gc&1073741824&&(Xl(r),r.subtreeFlags&6&&(r.flags|=8192)):Xl(r),null;case 24:return null;case 25:return null}throw Error(Fa(156,r.tag))}function LV(e,r){switch(lA(r),r.tag){case 1:return $u(r.type)&&j3(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return gy(),Jo(Wu),Jo(tu),mA(),e=r.flags,e&65536&&!(e&128)?(r.flags=e&-65537|128,r):null;case 5:return gA(r),null;case 13:if(Jo(ms),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(Fa(340));vy()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Jo(ms),null;case 4:return gy(),null;case 10:return dA(r.type._context),null;case 22:case 23:return PA(),null;case 24:return null;default:return null}}var Nw=!1,eu=!1,IV=typeof WeakSet=="function"?WeakSet:Set,qa=null;function Lm(e,r){var y=e.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(F){Ps(e,r,F)}else y.current=null}function O4(e,r,y){try{y()}catch(F){Ps(e,r,F)}}var jP=!1;function RV(e,r){if(m4=N3,e=Jk(),oA(e)){if("selectionStart"in e)var y={start:e.selectionStart,end:e.selectionEnd};else e:{y=(y=e.ownerDocument)&&y.defaultView||window;var F=y.getSelection&&y.getSelection();if(F&&F.rangeCount!==0){y=F.anchorNode;var j=F.anchorOffset,Y=F.focusNode;F=F.focusOffset;try{y.nodeType,Y.nodeType}catch{y=null;break e}var D=0,O=-1,t=-1,l=0,S=0,i=e,C=null;t:for(;;){for(var w;i!==y||j!==0&&i.nodeType!==3||(O=D+j),i!==Y||F!==0&&i.nodeType!==3||(t=D+F),i.nodeType===3&&(D+=i.nodeValue.length),(w=i.firstChild)!==null;)C=i,i=w;for(;;){if(i===e)break t;if(C===y&&++l===j&&(O=D),C===Y&&++S===F&&(t=D),(w=i.nextSibling)!==null)break;i=C,C=i.parentNode}i=w}y=O===-1||t===-1?null:{start:O,end:t}}else y=null}y=y||{start:0,end:0}}else y=null;for(y4={focusedElem:e,selectionRange:y},N3=!1,qa=r;qa!==null;)if(r=qa,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,qa=e;else for(;qa!==null;){r=qa;try{var v=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,a=v.memoizedState,n=r.stateNode,s=n.getSnapshotBeforeUpdate(r.elementType===r.type?m:sd(r.type,m),a);n.__reactInternalSnapshotBeforeUpdate=s}break;case 3:var o=r.stateNode.containerInfo;o.nodeType===1?o.textContent="":o.nodeType===9&&o.documentElement&&o.removeChild(o.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fa(163))}}catch(h){Ps(r,r.return,h)}if(e=r.sibling,e!==null){e.return=r.return,qa=e;break}qa=r.return}return v=jP,jP=!1,v}function cx(e,r,y){var F=r.updateQueue;if(F=F!==null?F.lastEffect:null,F!==null){var j=F=F.next;do{if((j.tag&e)===e){var Y=j.destroy;j.destroy=void 0,Y!==void 0&&O4(r,y,Y)}j=j.next}while(j!==F)}}function U2(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var y=r=r.next;do{if((y.tag&e)===e){var F=y.create;y.destroy=F()}y=y.next}while(y!==r)}}function F4(e){var r=e.ref;if(r!==null){var y=e.stateNode;switch(e.tag){case 5:e=y;break;default:e=y}typeof r=="function"?r(e):r.current=e}}function XD(e){var r=e.alternate;r!==null&&(e.alternate=null,XD(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[rh],delete r[Ox],delete r[w4],delete r[hV],delete r[vV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ZD(e){return e.tag===5||e.tag===3||e.tag===4}function GP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _4(e,r,y){var F=e.tag;if(F===5||F===6)e=e.stateNode,r?y.nodeType===8?y.parentNode.insertBefore(e,r):y.insertBefore(e,r):(y.nodeType===8?(r=y.parentNode,r.insertBefore(e,y)):(r=y,r.appendChild(e)),y=y._reactRootContainer,y!=null||r.onclick!==null||(r.onclick=V3));else if(F!==4&&(e=e.child,e!==null))for(_4(e,r,y),e=e.sibling;e!==null;)_4(e,r,y),e=e.sibling}function z4(e,r,y){var F=e.tag;if(F===5||F===6)e=e.stateNode,r?y.insertBefore(e,r):y.appendChild(e);else if(F!==4&&(e=e.child,e!==null))for(z4(e,r,y),e=e.sibling;e!==null;)z4(e,r,y),e=e.sibling}var Ll=null,cd=!1;function tp(e,r,y){for(y=y.child;y!==null;)KD(e,r,y),y=y.sibling}function KD(e,r,y){if(ih&&typeof ih.onCommitFiberUnmount=="function")try{ih.onCommitFiberUnmount(k2,y)}catch{}switch(y.tag){case 5:eu||Lm(y,r);case 6:var F=Ll,j=cd;Ll=null,tp(e,r,y),Ll=F,cd=j,Ll!==null&&(cd?(e=Ll,y=y.stateNode,e.nodeType===8?e.parentNode.removeChild(y):e.removeChild(y)):Ll.removeChild(y.stateNode));break;case 18:Ll!==null&&(cd?(e=Ll,y=y.stateNode,e.nodeType===8?tC(e.parentNode,y):e.nodeType===1&&tC(e,y),Lx(e)):tC(Ll,y.stateNode));break;case 4:F=Ll,j=cd,Ll=y.stateNode.containerInfo,cd=!0,tp(e,r,y),Ll=F,cd=j;break;case 0:case 11:case 14:case 15:if(!eu&&(F=y.updateQueue,F!==null&&(F=F.lastEffect,F!==null))){j=F=F.next;do{var Y=j,D=Y.destroy;Y=Y.tag,D!==void 0&&(Y&2||Y&4)&&O4(y,r,D),j=j.next}while(j!==F)}tp(e,r,y);break;case 1:if(!eu&&(Lm(y,r),F=y.stateNode,typeof F.componentWillUnmount=="function"))try{F.props=y.memoizedProps,F.state=y.memoizedState,F.componentWillUnmount()}catch(O){Ps(y,r,O)}tp(e,r,y);break;case 21:tp(e,r,y);break;case 22:y.mode&1?(eu=(F=eu)||y.memoizedState!==null,tp(e,r,y),eu=F):tp(e,r,y);break;default:tp(e,r,y)}}function WP(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var y=e.stateNode;y===null&&(y=e.stateNode=new IV),r.forEach(function(F){var j=UV.bind(null,e,F);y.has(F)||(y.add(F),F.then(j,j))})}}function id(e,r){var y=r.deletions;if(y!==null)for(var F=0;Fj&&(j=D),F&=~Y}if(F=j,F=Bs()-F,F=(120>F?120:480>F?480:1080>F?1080:1920>F?1920:3e3>F?3e3:4320>F?4320:1960*DV(F/1960))-F,10e?16:e,Sp===null)var F=!1;else{if(e=Sp,Sp=null,t2=0,co&6)throw Error(Fa(331));var j=co;for(co|=4,qa=e.current;qa!==null;){var Y=qa,D=Y.child;if(qa.flags&16){var O=Y.deletions;if(O!==null){for(var t=0;tBs()-AA?Q0(e,0):MA|=y),Yu(e,r)}function a7(e,r){r===0&&(e.mode&1?(r=Iw,Iw<<=1,!(Iw&130023424)&&(Iw=4194304)):r=1);var y=xu();e=nv(e,r),e!==null&&(bb(e,r,y),Yu(e,y))}function NV(e){var r=e.memoizedState,y=0;r!==null&&(y=r.retryLane),a7(e,y)}function UV(e,r){var y=0;switch(e.tag){case 13:var F=e.stateNode,j=e.memoizedState;j!==null&&(y=j.retryLane);break;case 19:F=e.stateNode;break;default:throw Error(Fa(314))}F!==null&&F.delete(r),a7(e,y)}var i7;i7=function(e,r,y){if(e!==null)if(e.memoizedProps!==r.pendingProps||Wu.current)Gu=!0;else{if(!(e.lanes&y)&&!(r.flags&128))return Gu=!1,EV(e,r,y);Gu=!!(e.flags&131072)}else Gu=!1,is&&r.flags&1048576&&lD(r,$3,r.index);switch(r.lanes=0,r.tag){case 2:var F=r.type;g3(e,r),e=r.pendingProps;var j=hy(r,tu.current);Hm(r,y),j=xA(null,r,F,e,j,y);var Y=bA();return r.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,$u(F)?(Y=!0,G3(r)):Y=!1,r.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,vA(r),j.updater=B2,r.stateNode=j,j._reactInternals=r,E4(r,F,e,y),r=I4(null,r,F,!0,Y,y)):(r.tag=0,is&&Y&&sA(r),pu(null,r,j,y),r=r.child),r;case 16:F=r.elementType;e:{switch(g3(e,r),e=r.pendingProps,j=F._init,F=j(F._payload),r.type=F,j=r.tag=VV(F),e=sd(F,e),j){case 0:r=L4(null,r,F,e,y);break e;case 1:r=UP(null,r,F,e,y);break e;case 11:r=BP(null,r,F,e,y);break e;case 14:r=NP(null,r,F,sd(F.type,e),y);break e}throw Error(Fa(306,F,""))}return r;case 0:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:sd(F,j),L4(e,r,F,j,y);case 1:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:sd(F,j),UP(e,r,F,j,y);case 3:e:{if(VD(r),e===null)throw Error(Fa(387));F=r.pendingProps,Y=r.memoizedState,j=Y.element,dD(e,r),Z3(r,F,null,y);var D=r.memoizedState;if(F=D.element,Y.isDehydrated)if(Y={element:F,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},r.updateQueue.baseState=Y,r.memoizedState=Y,r.flags&256){j=my(Error(Fa(423)),r),r=HP(e,r,F,y,j);break e}else if(F!==j){j=my(Error(Fa(424)),r),r=HP(e,r,F,y,j);break e}else for(wc=Rp(r.stateNode.containerInfo.firstChild),Cc=r,is=!0,dd=null,y=gD(r,null,F,y),r.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(vy(),F===j){r=av(e,r,y);break e}pu(e,r,F,y)}r=r.child}return r;case 5:return mD(r),e===null&&C4(r),F=r.type,j=r.pendingProps,Y=e!==null?e.memoizedProps:null,D=j.children,x4(F,j)?D=null:Y!==null&&x4(F,Y)&&(r.flags|=32),HD(e,r),pu(e,r,D,y),r.child;case 6:return e===null&&C4(r),null;case 13:return jD(e,r,y);case 4:return pA(r,r.stateNode.containerInfo),F=r.pendingProps,e===null?r.child=py(r,null,F,y):pu(e,r,F,y),r.child;case 11:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:sd(F,j),BP(e,r,F,j,y);case 7:return pu(e,r,r.pendingProps,y),r.child;case 8:return pu(e,r,r.pendingProps.children,y),r.child;case 12:return pu(e,r,r.pendingProps.children,y),r.child;case 10:e:{if(F=r.type._context,j=r.pendingProps,Y=r.memoizedProps,D=j.value,Ho(Y3,F._currentValue),F._currentValue=D,Y!==null)if(bd(Y.value,D)){if(Y.children===j.children&&!Wu.current){r=av(e,r,y);break e}}else for(Y=r.child,Y!==null&&(Y.return=r);Y!==null;){var O=Y.dependencies;if(O!==null){D=Y.child;for(var t=O.firstContext;t!==null;){if(t.context===F){if(Y.tag===1){t=Zh(-1,y&-y),t.tag=2;var l=Y.updateQueue;if(l!==null){l=l.shared;var S=l.pending;S===null?t.next=t:(t.next=S.next,S.next=t),l.pending=t}}Y.lanes|=y,t=Y.alternate,t!==null&&(t.lanes|=y),M4(Y.return,y,r),O.lanes|=y;break}t=t.next}}else if(Y.tag===10)D=Y.type===r.type?null:Y.child;else if(Y.tag===18){if(D=Y.return,D===null)throw Error(Fa(341));D.lanes|=y,O=D.alternate,O!==null&&(O.lanes|=y),M4(D,y,r),D=Y.sibling}else D=Y.child;if(D!==null)D.return=Y;else for(D=Y;D!==null;){if(D===r){D=null;break}if(Y=D.sibling,Y!==null){Y.return=D.return,D=Y;break}D=D.return}Y=D}pu(e,r,j.children,y),r=r.child}return r;case 9:return j=r.type,F=r.pendingProps.children,Hm(r,y),j=Sf(j),F=F(j),r.flags|=1,pu(e,r,F,y),r.child;case 14:return F=r.type,j=sd(F,r.pendingProps),j=sd(F.type,j),NP(e,r,F,j,y);case 15:return ND(e,r,r.type,r.pendingProps,y);case 17:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:sd(F,j),g3(e,r),r.tag=1,$u(F)?(e=!0,G3(r)):e=!1,Hm(r,y),vD(r,F,j),E4(r,F,j,y),I4(null,r,F,!0,e,y);case 19:return GD(e,r,y);case 22:return UD(e,r,y)}throw Error(Fa(156,r.tag))};function o7(e,r){return kk(e,r)}function HV(e,r,y,F){this.tag=e,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=F,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gf(e,r,y,F){return new HV(e,r,y,F)}function IA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VV(e){if(typeof e=="function")return IA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ZM)return 11;if(e===KM)return 14}return 2}function Fp(e,r){var y=e.alternate;return y===null?(y=gf(e.tag,r,e.key,e.mode),y.elementType=e.elementType,y.type=e.type,y.stateNode=e.stateNode,y.alternate=e,e.alternate=y):(y.pendingProps=r,y.type=e.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=e.flags&14680064,y.childLanes=e.childLanes,y.lanes=e.lanes,y.child=e.child,y.memoizedProps=e.memoizedProps,y.memoizedState=e.memoizedState,y.updateQueue=e.updateQueue,r=e.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},y.sibling=e.sibling,y.index=e.index,y.ref=e.ref,y}function x3(e,r,y,F,j,Y){var D=2;if(F=e,typeof e=="function")IA(e)&&(D=1);else if(typeof e=="string")D=5;else e:switch(e){case bm:return q0(y.children,j,Y,r);case XM:D=8,j|=8;break;case JC:return e=gf(12,y,r,j|2),e.elementType=JC,e.lanes=Y,e;case QC:return e=gf(13,y,r,j),e.elementType=QC,e.lanes=Y,e;case qC:return e=gf(19,y,r,j),e.elementType=qC,e.lanes=Y,e;case pk:return V2(y,j,Y,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hk:D=10;break e;case vk:D=9;break e;case ZM:D=11;break e;case KM:D=14;break e;case up:D=16,F=null;break e}throw Error(Fa(130,e==null?e:typeof e,""))}return r=gf(D,y,r,j),r.elementType=e,r.type=F,r.lanes=Y,r}function q0(e,r,y,F){return e=gf(7,e,F,r),e.lanes=y,e}function V2(e,r,y,F){return e=gf(22,e,F,r),e.elementType=pk,e.lanes=y,e.stateNode={isHidden:!1},e}function uC(e,r,y){return e=gf(6,e,null,r),e.lanes=y,e}function cC(e,r,y){return r=gf(4,e.children!==null?e.children:[],e.key,r),r.lanes=y,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function jV(e,r,y,F,j){this.tag=r,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=GS(0),this.expirationTimes=GS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=GS(0),this.identifierPrefix=F,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function RA(e,r,y,F,j,Y,D,O,t){return e=new jV(e,r,y,O,t),r===1?(r=1,Y===!0&&(r|=8)):r=0,Y=gf(3,null,null,r),e.current=Y,Y.stateNode=e,Y.memoizedState={element:F,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},vA(Y),e}function GV(e,r,y){var F=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c7)}catch(e){console.error(e)}}c7(),lk.exports=Pc;var Cb=lk.exports;const K1=hh(Cb),ZV=JR({__proto__:null,default:K1},[Cb]);var qP=Cb;ZC.createRoot=qP.createRoot,ZC.hydrateRoot=qP.hydrateRoot;function iv(e){let r="https://mui.com/production-error/?code="+e;for(let y=1;y0?Il(_y,--Ku):0,xy--,Ys===10&&(xy=1,X2--),Ys}function Mc(){return Ys=Ku2||Vx(Ys)>3?"":" "}function hj(e,r){for(;--r&&Mc()&&!(Ys<48||Ys>102||Ys>57&&Ys<65||Ys>70&&Ys<97););return Mb(e,b3()+(r<6&&sh()==32&&Mc()==32))}function j4(e){for(;Mc();)switch(Ys){case e:return Ku;case 34:case 39:e!==34&&e!==39&&j4(Ys);break;case 40:e===41&&j4(e);break;case 92:Mc();break}return Ku}function vj(e,r){for(;Mc()&&e+Ys!==57;)if(e+Ys===84&&sh()===47)break;return"/*"+Mb(r,Ku-1)+"*"+Y2(e===47?e:Mc())}function pj(e){for(;!Vx(sh());)Mc();return Mb(e,Ku)}function gj(e){return g7(T3("",null,null,null,[""],e=p7(e),0,[0],e))}function T3(e,r,y,F,j,Y,D,O,t){for(var l=0,S=0,i=D,C=0,w=0,v=0,m=1,a=1,n=1,s=0,o="",h=j,f=Y,u=F,b=o;a;)switch(v=s,s=Mc()){case 40:if(v!=108&&Il(b,i-1)==58){V4(b+=xo(w3(s),"&","&\f"),"&\f")!=-1&&(n=-1);break}case 34:case 39:case 91:b+=w3(s);break;case 9:case 10:case 13:case 32:b+=dj(v);break;case 92:b+=hj(b3()-1,7);continue;case 47:switch(sh()){case 42:case 47:Vw(mj(vj(Mc(),b3()),r,y),t);break;default:b+="/"}break;case 123*m:O[l++]=Qd(b)*n;case 125*m:case 59:case 0:switch(s){case 0:case 125:a=0;case 59+S:n==-1&&(b=xo(b,/\f/g,"")),w>0&&Qd(b)-i&&Vw(w>32?t8(b+";",F,y,i-1):t8(xo(b," ","")+";",F,y,i-2),t);break;case 59:b+=";";default:if(Vw(u=e8(b,r,y,l,S,j,O,o,h=[],f=[],i),Y),s===123)if(S===0)T3(b,r,u,u,h,Y,i,O,f);else switch(C===99&&Il(b,3)===110?100:C){case 100:case 108:case 109:case 115:T3(e,u,u,F&&Vw(e8(e,u,u,0,0,j,O,o,j,h=[],i),f),j,f,i,O,F?h:f);break;default:T3(b,u,u,u,[""],f,0,O,f)}}l=S=w=0,m=n=1,o=b="",i=D;break;case 58:i=1+Qd(b),w=v;default:if(m<1){if(s==123)--m;else if(s==125&&m++==0&&fj()==125)continue}switch(b+=Y2(s),s*m){case 38:n=S>0?1:(b+="\f",-1);break;case 44:O[l++]=(Qd(b)-1)*n,n=1;break;case 64:sh()===45&&(b+=w3(Mc())),C=sh(),S=i=Qd(o=b+=pj(b3())),s++;break;case 45:v===45&&Qd(b)==2&&(m=0)}}return Y}function e8(e,r,y,F,j,Y,D,O,t,l,S){for(var i=j-1,C=j===0?Y:[""],w=zA(C),v=0,m=0,a=0;v0?C[n]+" "+s:xo(s,/&\f/g,C[n])))&&(t[a++]=o);return Z2(e,r,y,j===0?FA:O,t,l,S)}function mj(e,r,y){return Z2(e,r,y,f7,Y2(cj()),Hx(e,2,-2),0)}function t8(e,r,y,F){return Z2(e,r,y,_A,Hx(e,0,F),Hx(e,F+1,-1),F)}function jm(e,r){for(var y="",F=zA(e),j=0;j6)switch(Il(e,r+1)){case 109:if(Il(e,r+4)!==45)break;case 102:return xo(e,/(.+:)(.+)-([^]+)/,"$1"+yo+"$2-$3$1"+a2+(Il(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~V4(e,"stretch")?m7(xo(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(Il(e,r+1)!==115)break;case 6444:switch(Il(e,Qd(e)-3-(~V4(e,"!important")&&10))){case 107:return xo(e,":",":"+yo)+e;case 101:return xo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yo+(Il(e,14)===45?"inline-":"")+"box$3$1"+yo+"$2$3$1"+Kl+"$2box$3")+e}break;case 5936:switch(Il(e,r+11)){case 114:return yo+e+Kl+xo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yo+e+Kl+xo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yo+e+Kl+xo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yo+e+Kl+e+e}return e}var Aj=function(r,y,F,j){if(r.length>-1&&!r.return)switch(r.type){case _A:r.return=m7(r.value,r.length);break;case d7:return jm([C1(r,{value:xo(r.value,"@","@"+yo)})],j);case FA:if(r.length)return uj(r.props,function(Y){switch(lj(Y,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jm([C1(r,{props:[xo(Y,/:(read-\w+)/,":"+a2+"$1")]})],j);case"::placeholder":return jm([C1(r,{props:[xo(Y,/:(plac\w+)/,":"+yo+"input-$1")]}),C1(r,{props:[xo(Y,/:(plac\w+)/,":"+a2+"$1")]}),C1(r,{props:[xo(Y,/:(plac\w+)/,Kl+"input-$1")]})],j)}return""})}},Ej=[Aj],y7=function(r){var y=r.key;if(y==="css"){var F=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(F,function(m){var a=m.getAttribute("data-emotion");a.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var j=r.stylisPlugins||Ej,Y={},D,O=[];D=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+y+' "]'),function(m){for(var a=m.getAttribute("data-emotion").split(" "),n=1;n<\/script>",e=e.removeChild(e.firstChild)):typeof F.is=="string"?e=D.createElement(x,{is:F.is}):(e=D.createElement(x),x==="select"&&(D=e,F.multiple?D.multiple=!0:F.size&&(D.size=F.size))):e=D.createElementNS(e,x),e[ih]=r,e[Fx]=F,_D(e,r,!1,!1),r.stateNode=e;e:{switch(D=QC(x,F),x){case"dialog":Zo("cancel",e),Zo("close",e),j=F;break;case"iframe":case"object":case"embed":Zo("load",e),j=F;break;case"video":case"audio":for(j=0;jyy&&(r.flags|=128,F=!0,S1(Y,!1),r.lanes=4194304)}else{if(!F)if(e=j3(D),e!==null){if(r.flags|=128,F=!0,x=e.updateQueue,x!==null&&(r.updateQueue=x,r.flags|=4),S1(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!D.alternate&&!os)return Zl(r),null}else 2*Bs()-Y.renderingStartTime>yy&&x!==1073741824&&(r.flags|=128,F=!0,S1(Y,!1),r.lanes=4194304);Y.isBackwards?(D.sibling=r.child,r.child=D):(x=Y.last,x!==null?x.sibling=D:r.child=D,Y.last=D)}return Y.tail!==null?(r=Y.tail,Y.rendering=r,Y.tail=r.sibling,Y.renderingStartTime=Bs(),r.sibling=null,x=ys.current,Vo(ys,F?x&1|2:x&1),r):(Zl(r),null);case 22:case 23:return mA(),F=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==F&&(r.flags|=8192),F&&r.mode&1?mc&1073741824&&(Zl(r),r.subtreeFlags&6&&(r.flags|=8192)):Zl(r),null;case 24:return null;case 25:return null}throw Error(Fa(156,r.tag))}function fV(e,r){switch(JM(r),r.tag){case 1:return Yu(r.type)&&_3(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return gy(),Qo($u),Qo(ru),oA(),e=r.flags,e&65536&&!(e&128)?(r.flags=e&-65537|128,r):null;case 5:return iA(r),null;case 13:if(Qo(ys),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(Fa(340));vy()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Qo(ys),null;case 4:return gy(),null;case 10:return tA(r.type._context),null;case 22:case 23:return mA(),null;case 24:return null;default:return null}}var kw=!1,tu=!1,dV=typeof WeakSet=="function"?WeakSet:Set,qa=null;function Lm(e,r){var x=e.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(F){Ls(e,r,F)}else x.current=null}function M4(e,r,x){try{x()}catch(F){Ls(e,r,F)}}var FP=!1;function hV(e,r){if(l4=k3,e=Vk(),ZM(e)){if("selectionStart"in e)var x={start:e.selectionStart,end:e.selectionEnd};else e:{x=(x=e.ownerDocument)&&x.defaultView||window;var F=x.getSelection&&x.getSelection();if(F&&F.rangeCount!==0){x=F.anchorNode;var j=F.anchorOffset,Y=F.focusNode;F=F.focusOffset;try{x.nodeType,Y.nodeType}catch{x=null;break e}var D=0,O=-1,t=-1,l=0,S=0,i=e,C=null;t:for(;;){for(var w;i!==x||j!==0&&i.nodeType!==3||(O=D+j),i!==Y||F!==0&&i.nodeType!==3||(t=D+F),i.nodeType===3&&(D+=i.nodeValue.length),(w=i.firstChild)!==null;)C=i,i=w;for(;;){if(i===e)break t;if(C===x&&++l===j&&(O=D),C===Y&&++S===F&&(t=D),(w=i.nextSibling)!==null)break;i=C,C=i.parentNode}i=w}x=O===-1||t===-1?null:{start:O,end:t}}else x=null}x=x||{start:0,end:0}}else x=null;for(u4={focusedElem:e,selectionRange:x},k3=!1,qa=r;qa!==null;)if(r=qa,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,qa=e;else for(;qa!==null;){r=qa;try{var v=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,a=v.memoizedState,n=r.stateNode,s=n.getSnapshotBeforeUpdate(r.elementType===r.type?m:ud(r.type,m),a);n.__reactInternalSnapshotBeforeUpdate=s}break;case 3:var o=r.stateNode.containerInfo;o.nodeType===1?o.textContent="":o.nodeType===9&&o.documentElement&&o.removeChild(o.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fa(163))}}catch(h){Ls(r,r.return,h)}if(e=r.sibling,e!==null){e.return=r.return,qa=e;break}qa=r.return}return v=FP,FP=!1,v}function fx(e,r,x){var F=r.updateQueue;if(F=F!==null?F.lastEffect:null,F!==null){var j=F=F.next;do{if((j.tag&e)===e){var Y=j.destroy;j.destroy=void 0,Y!==void 0&&M4(r,x,Y)}j=j.next}while(j!==F)}}function D2(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var x=r=r.next;do{if((x.tag&e)===e){var F=x.create;x.destroy=F()}x=x.next}while(x!==r)}}function A4(e){var r=e.ref;if(r!==null){var x=e.stateNode;switch(e.tag){case 5:e=x;break;default:e=x}typeof r=="function"?r(e):r.current=e}}function ND(e){var r=e.alternate;r!==null&&(e.alternate=null,ND(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[ih],delete r[Fx],delete r[d4],delete r[ZH],delete r[KH])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function UD(e){return e.tag===5||e.tag===3||e.tag===4}function _P(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||UD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function E4(e,r,x){var F=e.tag;if(F===5||F===6)e=e.stateNode,r?x.nodeType===8?x.parentNode.insertBefore(e,r):x.insertBefore(e,r):(x.nodeType===8?(r=x.parentNode,r.insertBefore(e,x)):(r=x,r.appendChild(e)),x=x._reactRootContainer,x!=null||r.onclick!==null||(r.onclick=F3));else if(F!==4&&(e=e.child,e!==null))for(E4(e,r,x),e=e.sibling;e!==null;)E4(e,r,x),e=e.sibling}function P4(e,r,x){var F=e.tag;if(F===5||F===6)e=e.stateNode,r?x.insertBefore(e,r):x.appendChild(e);else if(F!==4&&(e=e.child,e!==null))for(P4(e,r,x),e=e.sibling;e!==null;)P4(e,r,x),e=e.sibling}var Il=null,dd=!1;function tp(e,r,x){for(x=x.child;x!==null;)HD(e,r,x),x=x.sibling}function HD(e,r,x){if(sh&&typeof sh.onCommitFiberUnmount=="function")try{sh.onCommitFiberUnmount(M2,x)}catch{}switch(x.tag){case 5:tu||Lm(x,r);case 6:var F=Il,j=dd;Il=null,tp(e,r,x),Il=F,dd=j,Il!==null&&(dd?(e=Il,x=x.stateNode,e.nodeType===8?e.parentNode.removeChild(x):e.removeChild(x)):Il.removeChild(x.stateNode));break;case 18:Il!==null&&(dd?(e=Il,x=x.stateNode,e.nodeType===8?$S(e.parentNode,x):e.nodeType===1&&$S(e,x),Ix(e)):$S(Il,x.stateNode));break;case 4:F=Il,j=dd,Il=x.stateNode.containerInfo,dd=!0,tp(e,r,x),Il=F,dd=j;break;case 0:case 11:case 14:case 15:if(!tu&&(F=x.updateQueue,F!==null&&(F=F.lastEffect,F!==null))){j=F=F.next;do{var Y=j,D=Y.destroy;Y=Y.tag,D!==void 0&&(Y&2||Y&4)&&M4(x,r,D),j=j.next}while(j!==F)}tp(e,r,x);break;case 1:if(!tu&&(Lm(x,r),F=x.stateNode,typeof F.componentWillUnmount=="function"))try{F.props=x.memoizedProps,F.state=x.memoizedState,F.componentWillUnmount()}catch(O){Ls(x,r,O)}tp(e,r,x);break;case 21:tp(e,r,x);break;case 22:x.mode&1?(tu=(F=tu)||x.memoizedState!==null,tp(e,r,x),tu=F):tp(e,r,x);break;default:tp(e,r,x)}}function zP(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var x=e.stateNode;x===null&&(x=e.stateNode=new dV),r.forEach(function(F){var j=TV.bind(null,e,F);x.has(F)||(x.add(F),F.then(j,j))})}}function sd(e,r){var x=r.deletions;if(x!==null)for(var F=0;Fj&&(j=D),F&=~Y}if(F=j,F=Bs()-F,F=(120>F?120:480>F?480:1080>F?1080:1920>F?1920:3e3>F?3e3:4320>F?4320:1960*pV(F/1960))-F,10e?16:e,Sp===null)var F=!1;else{if(e=Sp,Sp=null,X3=0,co&6)throw Error(Fa(331));var j=co;for(co|=4,qa=e.current;qa!==null;){var Y=qa,D=Y.child;if(qa.flags&16){var O=Y.deletions;if(O!==null){for(var t=0;tBs()-pA?Q0(e,0):vA|=x),Xu(e,r)}function ZD(e,r){r===0&&(e.mode&1?(r=Sw,Sw<<=1,!(Sw&130023424)&&(Sw=4194304)):r=1);var x=bu();e=iv(e,r),e!==null&&(db(e,r,x),Xu(e,x))}function wV(e){var r=e.memoizedState,x=0;r!==null&&(x=r.retryLane),ZD(e,x)}function TV(e,r){var x=0;switch(e.tag){case 13:var F=e.stateNode,j=e.memoizedState;j!==null&&(x=j.retryLane);break;case 19:F=e.stateNode;break;default:throw Error(Fa(314))}F!==null&&F.delete(r),ZD(e,x)}var KD;KD=function(e,r,x){if(e!==null)if(e.memoizedProps!==r.pendingProps||$u.current)Wu=!0;else{if(!(e.lanes&x)&&!(r.flags&128))return Wu=!1,uV(e,r,x);Wu=!!(e.flags&131072)}else Wu=!1,os&&r.flags&1048576&&qk(r,N3,r.index);switch(r.lanes=0,r.tag){case 2:var F=r.type;u3(e,r),e=r.pendingProps;var j=hy(r,ru.current);Hm(r,x),j=lA(null,r,F,e,j,x);var Y=uA();return r.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Yu(F)?(Y=!0,z3(r)):Y=!1,r.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,nA(r),j.updater=R2,r.stateNode=j,j._reactInternals=r,y4(r,F,e,x),r=w4(null,r,F,!0,Y,x)):(r.tag=0,os&&Y&&KM(r),gu(null,r,j,x),r=r.child),r;case 16:F=r.elementType;e:{switch(u3(e,r),e=r.pendingProps,j=F._init,F=j(F._payload),r.type=F,j=r.tag=CV(F),e=ud(F,e),j){case 0:r=b4(null,r,F,e,x);break e;case 1:r=kP(null,r,F,e,x);break e;case 11:r=IP(null,r,F,e,x);break e;case 14:r=RP(null,r,F,ud(F.type,e),x);break e}throw Error(Fa(306,F,""))}return r;case 0:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:ud(F,j),b4(e,r,F,j,x);case 1:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:ud(F,j),kP(e,r,F,j,x);case 3:e:{if(DD(r),e===null)throw Error(Fa(387));F=r.pendingProps,Y=r.memoizedState,j=Y.element,nD(e,r),V3(r,F,null,x);var D=r.memoizedState;if(F=D.element,Y.isDehydrated)if(Y={element:F,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},r.updateQueue.baseState=Y,r.memoizedState=Y,r.flags&256){j=my(Error(Fa(423)),r),r=DP(e,r,F,x,j);break e}else if(F!==j){j=my(Error(Fa(424)),r),r=DP(e,r,F,x,j);break e}else for(Tc=Rp(r.stateNode.containerInfo.firstChild),Mc=r,os=!0,vd=null,x=sD(r,null,F,x),r.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(vy(),F===j){r=ov(e,r,x);break e}gu(e,r,F,x)}r=r.child}return r;case 5:return lD(r),e===null&&p4(r),F=r.type,j=r.pendingProps,Y=e!==null?e.memoizedProps:null,D=j.children,c4(F,j)?D=null:Y!==null&&c4(F,Y)&&(r.flags|=32),kD(e,r),gu(e,r,D,x),r.child;case 6:return e===null&&p4(r),null;case 13:return OD(e,r,x);case 4:return aA(r,r.stateNode.containerInfo),F=r.pendingProps,e===null?r.child=py(r,null,F,x):gu(e,r,F,x),r.child;case 11:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:ud(F,j),IP(e,r,F,j,x);case 7:return gu(e,r,r.pendingProps,x),r.child;case 8:return gu(e,r,r.pendingProps.children,x),r.child;case 12:return gu(e,r,r.pendingProps.children,x),r.child;case 10:e:{if(F=r.type._context,j=r.pendingProps,Y=r.memoizedProps,D=j.value,Vo(U3,F._currentValue),F._currentValue=D,Y!==null)if(Sd(Y.value,D)){if(Y.children===j.children&&!$u.current){r=ov(e,r,x);break e}}else for(Y=r.child,Y!==null&&(Y.return=r);Y!==null;){var O=Y.dependencies;if(O!==null){D=Y.child;for(var t=O.firstContext;t!==null;){if(t.context===F){if(Y.tag===1){t=Jh(-1,x&-x),t.tag=2;var l=Y.updateQueue;if(l!==null){l=l.shared;var S=l.pending;S===null?t.next=t:(t.next=S.next,S.next=t),l.pending=t}}Y.lanes|=x,t=Y.alternate,t!==null&&(t.lanes|=x),g4(Y.return,x,r),O.lanes|=x;break}t=t.next}}else if(Y.tag===10)D=Y.type===r.type?null:Y.child;else if(Y.tag===18){if(D=Y.return,D===null)throw Error(Fa(341));D.lanes|=x,O=D.alternate,O!==null&&(O.lanes|=x),g4(D,x,r),D=Y.sibling}else D=Y.child;if(D!==null)D.return=Y;else for(D=Y;D!==null;){if(D===r){D=null;break}if(Y=D.sibling,Y!==null){Y.return=D.return,D=Y;break}D=D.return}Y=D}gu(e,r,j.children,x),r=r.child}return r;case 9:return j=r.type,F=r.pendingProps.children,Hm(r,x),j=Cf(j),F=F(j),r.flags|=1,gu(e,r,F,x),r.child;case 14:return F=r.type,j=ud(F,r.pendingProps),j=ud(F.type,j),RP(e,r,F,j,x);case 15:return ID(e,r,r.type,r.pendingProps,x);case 17:return F=r.type,j=r.pendingProps,j=r.elementType===F?j:ud(F,j),u3(e,r),r.tag=1,Yu(F)?(e=!0,z3(r)):e=!1,Hm(r,x),iD(r,F,j),y4(r,F,j,x),w4(null,r,F,!0,e,x);case 19:return FD(e,r,x);case 22:return RD(e,r,x)}throw Error(Fa(156,r.tag))};function JD(e,r){return Sk(e,r)}function SV(e,r,x,F){this.tag=e,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=F,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yf(e,r,x,F){return new SV(e,r,x,F)}function xA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CV(e){if(typeof e=="function")return xA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===BM)return 11;if(e===NM)return 14}return 2}function Fp(e,r){var x=e.alternate;return x===null?(x=yf(e.tag,r,e.key,e.mode),x.elementType=e.elementType,x.type=e.type,x.stateNode=e.stateNode,x.alternate=e,e.alternate=x):(x.pendingProps=r,x.type=e.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=e.flags&14680064,x.childLanes=e.childLanes,x.lanes=e.lanes,x.child=e.child,x.memoizedProps=e.memoizedProps,x.memoizedState=e.memoizedState,x.updateQueue=e.updateQueue,r=e.dependencies,x.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},x.sibling=e.sibling,x.index=e.index,x.ref=e.ref,x}function d3(e,r,x,F,j,Y){var D=2;if(F=e,typeof e=="function")xA(e)&&(D=1);else if(typeof e=="string")D=5;else e:switch(e){case bm:return q0(x.children,j,Y,r);case zM:D=8,j|=8;break;case VC:return e=yf(12,x,r,j|2),e.elementType=VC,e.lanes=Y,e;case jC:return e=yf(13,x,r,j),e.elementType=jC,e.lanes=Y,e;case GC:return e=yf(19,x,r,j),e.elementType=GC,e.lanes=Y,e;case ok:return F2(x,j,Y,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ak:D=10;break e;case ik:D=9;break e;case BM:D=11;break e;case NM:D=14;break e;case up:D=16,F=null;break e}throw Error(Fa(130,e==null?e:typeof e,""))}return r=yf(D,x,r,j),r.elementType=e,r.type=F,r.lanes=Y,r}function q0(e,r,x,F){return e=yf(7,e,F,r),e.lanes=x,e}function F2(e,r,x,F){return e=yf(22,e,F,r),e.elementType=ok,e.lanes=x,e.stateNode={isHidden:!1},e}function eC(e,r,x){return e=yf(6,e,null,r),e.lanes=x,e}function tC(e,r,x){return r=yf(4,e.children!==null?e.children:[],e.key,r),r.lanes=x,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function MV(e,r,x,F,j){this.tag=r,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=FS(0),this.expirationTimes=FS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=FS(0),this.identifierPrefix=F,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function bA(e,r,x,F,j,Y,D,O,t){return e=new MV(e,r,x,O,t),r===1?(r=1,Y===!0&&(r|=8)):r=0,Y=yf(3,null,null,r),e.current=Y,Y.stateNode=e,Y.memoizedState={element:F,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},nA(Y),e}function AV(e,r,x){var F=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t7)}catch(e){console.error(e)}}t7(),qR.exports=Ic;var gb=qR.exports;const J1=ph(gb),RV=VR({__proto__:null,default:J1},[gb]);var WP=gb;UC.createRoot=WP.createRoot,UC.hydrateRoot=WP.hydrateRoot;function sv(e){let r="https://mui.com/production-error/?code="+e;for(let x=1;x0?Rl(zy,--Ju):0,xy--,Xs===10&&(xy=1,H2--),Xs}function Ac(){return Xs=Ju2||jx(Xs)>3?"":" "}function ZV(e,r){for(;--r&&Ac()&&!(Xs<48||Xs>102||Xs>57&&Xs<65||Xs>70&&Xs<97););return mb(e,h3()+(r<6&&uh()==32&&Ac()==32))}function O4(e){for(;Ac();)switch(Xs){case e:return Ju;case 34:case 39:e!==34&&e!==39&&O4(Xs);break;case 40:e===41&&O4(e);break;case 92:Ac();break}return Ju}function KV(e,r){for(;Ac()&&e+Xs!==57;)if(e+Xs===84&&uh()===47)break;return"/*"+mb(r,Ju-1)+"*"+U2(e===47?e:Ac())}function JV(e){for(;!jx(uh());)Ac();return mb(e,Ju)}function QV(e){return s7(p3("",null,null,null,[""],e=o7(e),0,[0],e))}function p3(e,r,x,F,j,Y,D,O,t){for(var l=0,S=0,i=D,C=0,w=0,v=0,m=1,a=1,n=1,s=0,o="",h=j,f=Y,u=F,b=o;a;)switch(v=s,s=Ac()){case 40:if(v!=108&&Rl(b,i-1)==58){D4(b+=xo(v3(s),"&","&\f"),"&\f")!=-1&&(n=-1);break}case 34:case 39:case 91:b+=v3(s);break;case 9:case 10:case 13:case 32:b+=XV(v);break;case 92:b+=ZV(h3()-1,7);continue;case 47:switch(uh()){case 42:case 47:Fw(qV(KV(Ac(),h3()),r,x),t);break;default:b+="/"}break;case 123*m:O[l++]=th(b)*n;case 125*m:case 59:case 0:switch(s){case 0:case 125:a=0;case 59+S:n==-1&&(b=xo(b,/\f/g,"")),w>0&&th(b)-i&&Fw(w>32?YP(b+";",F,x,i-1):YP(xo(b," ","")+";",F,x,i-2),t);break;case 59:b+=";";default:if(Fw(u=$P(b,r,x,l,S,j,O,o,h=[],f=[],i),Y),s===123)if(S===0)p3(b,r,u,u,h,Y,i,O,f);else switch(C===99&&Rl(b,3)===110?100:C){case 100:case 108:case 109:case 115:p3(e,u,u,F&&Fw($P(e,u,u,0,0,j,O,o,j,h=[],i),f),j,f,i,O,F?h:f);break;default:p3(b,u,u,u,[""],f,0,O,f)}}l=S=w=0,m=n=1,o=b="",i=D;break;case 58:i=1+th(b),w=v;default:if(m<1){if(s==123)--m;else if(s==125&&m++==0&&YV()==125)continue}switch(b+=U2(s),s*m){case 38:n=S>0?1:(b+="\f",-1);break;case 44:O[l++]=(th(b)-1)*n,n=1;break;case 64:uh()===45&&(b+=v3(Ac())),C=uh(),S=i=th(o=b+=JV(h3())),s++;break;case 45:v===45&&th(b)==2&&(m=0)}}return Y}function $P(e,r,x,F,j,Y,D,O,t,l,S){for(var i=j-1,C=j===0?Y:[""],w=AA(C),v=0,m=0,a=0;v0?C[n]+" "+s:xo(s,/&\f/g,C[n])))&&(t[a++]=o);return V2(e,r,x,j===0?CA:O,t,l,S)}function qV(e,r,x){return V2(e,r,x,r7,U2($V()),Vx(e,2,-2),0)}function YP(e,r,x,F){return V2(e,r,x,MA,Vx(e,0,F),Vx(e,F+1,-1),F)}function jm(e,r){for(var x="",F=AA(e),j=0;j6)switch(Rl(e,r+1)){case 109:if(Rl(e,r+4)!==45)break;case 102:return xo(e,/(.+:)(.+)-([^]+)/,"$1"+yo+"$2-$3$1"+J3+(Rl(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~D4(e,"stretch")?l7(xo(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(Rl(e,r+1)!==115)break;case 6444:switch(Rl(e,th(e)-3-(~D4(e,"!important")&&10))){case 107:return xo(e,":",":"+yo)+e;case 101:return xo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yo+(Rl(e,14)===45?"inline-":"")+"box$3$1"+yo+"$2$3$1"+Jl+"$2box$3")+e}break;case 5936:switch(Rl(e,r+11)){case 114:return yo+e+Jl+xo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yo+e+Jl+xo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yo+e+Jl+xo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yo+e+Jl+e+e}return e}var lj=function(r,x,F,j){if(r.length>-1&&!r.return)switch(r.type){case MA:r.return=l7(r.value,r.length);break;case n7:return jm([M1(r,{value:xo(r.value,"@","@"+yo)})],j);case CA:if(r.length)return WV(r.props,function(Y){switch(GV(Y,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jm([M1(r,{props:[xo(Y,/:(read-\w+)/,":"+J3+"$1")]})],j);case"::placeholder":return jm([M1(r,{props:[xo(Y,/:(plac\w+)/,":"+yo+"input-$1")]}),M1(r,{props:[xo(Y,/:(plac\w+)/,":"+J3+"$1")]}),M1(r,{props:[xo(Y,/:(plac\w+)/,Jl+"input-$1")]})],j)}return""})}},uj=[lj],u7=function(r){var x=r.key;if(x==="css"){var F=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(F,function(m){var a=m.getAttribute("data-emotion");a.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var j=r.stylisPlugins||uj,Y={},D,O=[];D=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(m){for(var a=m.getAttribute("data-emotion").split(" "),n=1;n=4;++F,j-=4)y=e.charCodeAt(F)&255|(e.charCodeAt(++F)&255)<<8|(e.charCodeAt(++F)&255)<<16|(e.charCodeAt(++F)&255)<<24,y=(y&65535)*1540483477+((y>>>16)*59797<<16),y^=y>>>24,r=(y&65535)*1540483477+((y>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(j){case 3:r^=(e.charCodeAt(F+2)&255)<<16;case 2:r^=(e.charCodeAt(F+1)&255)<<8;case 1:r^=e.charCodeAt(F)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Nj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Uj(e){var r=Object.create(null);return function(y){return r[y]===void 0&&(r[y]=e(y)),r[y]}}var Hj=!1,Vj=/[A-Z]|^ms/g,jj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,M7=function(r){return r.charCodeAt(1)===45},n8=function(r){return r!=null&&typeof r!="boolean"},fC=Uj(function(e){return M7(e)?e:e.replace(Vj,"-$&").toLowerCase()}),a8=function(r,y){switch(r){case"animation":case"animationName":if(typeof y=="string")return y.replace(jj,function(F,j,Y){return qd={name:j,styles:Y,next:qd},j})}return Nj[r]!==1&&!M7(r)&&typeof y=="number"&&y!==0?y+"px":y},Gj="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jx(e,r,y){if(y==null)return"";var F=y;if(F.__emotion_styles!==void 0)return F;switch(typeof y){case"boolean":return"";case"object":{var j=y;if(j.anim===1)return qd={name:j.name,styles:j.styles,next:qd},j.name;var Y=y;if(Y.styles!==void 0){var D=Y.next;if(D!==void 0)for(;D!==void 0;)qd={name:D.name,styles:D.styles,next:qd},D=D.next;var O=Y.styles+";";return O}return Wj(e,r,y)}case"function":{if(e!==void 0){var t=qd,l=y(e);return qd=t,jx(e,r,l)}break}}var S=y;if(r==null)return S;var i=r[S];return i!==void 0?i:S}function Wj(e,r,y){var F="";if(Array.isArray(y))for(var j=0;j96?Kj:Jj},u8=function(r,y,F){var j;if(y){var Y=y.shouldForwardProp;j=r.__emotion_forwardProp&&Y?function(D){return r.__emotion_forwardProp(D)&&Y(D)}:Y}return typeof j!="function"&&F&&(j=r.__emotion_forwardProp),j},Qj=!1,qj=function(r){var y=r.cache,F=r.serialized,j=r.isStringTag;return S7(y,F,j),Yj(function(){return C7(y,F,j)}),null},eG=function e(r,y){var F=r.__emotion_real===r,j=F&&r.__emotion_base||r,Y,D;y!==void 0&&(Y=y.label,D=y.target);var O=u8(r,y,F),t=O||l8(j),l=!t("as");return function(){var S=arguments,i=F&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(Y!==void 0&&i.push("label:"+Y+";"),S[0]==null||S[0].raw===void 0)i.push.apply(i,S);else{i.push(S[0][0]);for(var C=S.length,w=1;wr(sG(j)?y:j):r;return Ce.jsx(Zj,{styles:F})}function VA(e,r){return G4(e,r)}const F7=(e,r)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))},lG=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:O7,StyledEngineProvider:oG,ThemeContext:Ab,css:ov,default:VA,internal_processStyles:F7,keyframes:Sd},Symbol.toStringTag,{value:"Module"}));function Wh(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _7(e){if(!Wh(e))return e;const r={};return Object.keys(e).forEach(y=>{r[y]=_7(e[y])}),r}function bu(e,r,y={clone:!0}){const F=y.clone?Ge({},e):e;return Wh(e)&&Wh(r)&&Object.keys(r).forEach(j=>{Wh(r[j])&&Object.prototype.hasOwnProperty.call(e,j)&&Wh(e[j])?F[j]=bu(e[j],r[j],y):y.clone?F[j]=Wh(r[j])?_7(r[j]):r[j]:F[j]=r[j]}),F}const uG=Object.freeze(Object.defineProperty({__proto__:null,default:bu,isPlainObject:Wh},Symbol.toStringTag,{value:"Module"})),cG=["values","unit","step"],fG=e=>{const r=Object.keys(e).map(y=>({key:y,val:e[y]}))||[];return r.sort((y,F)=>y.val-F.val),r.reduce((y,F)=>Ge({},y,{[F.key]:F.val}),{})};function z7(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:y="px",step:F=5}=e,j=hn(e,cG),Y=fG(r),D=Object.keys(Y);function O(C){return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${y})`}function t(C){return`@media (max-width:${(typeof r[C]=="number"?r[C]:C)-F/100}${y})`}function l(C,w){const v=D.indexOf(w);return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${y}) and (max-width:${(v!==-1&&typeof r[D[v]]=="number"?r[D[v]]:w)-F/100}${y})`}function S(C){return D.indexOf(C)+1`@media (min-width:${jA[e]}px)`};function Ju(e,r,y){const F=e.theme||{};if(Array.isArray(r)){const Y=F.breakpoints||c8;return r.reduce((D,O,t)=>(D[Y.up(Y.keys[t])]=y(r[t]),D),{})}if(typeof r=="object"){const Y=F.breakpoints||c8;return Object.keys(r).reduce((D,O)=>{if(Object.keys(Y.values||jA).indexOf(O)!==-1){const t=Y.up(O);D[t]=y(r[O],O)}else{const t=O;D[t]=r[t]}return D},{})}return y(r)}function B7(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((F,j)=>{const Y=e.up(j);return F[Y]={},F},{}))||{}}function N7(e,r){return e.reduce((y,F)=>{const j=y[F];return(!j||Object.keys(j).length===0)&&delete y[F],y},r)}function vG(e,...r){const y=B7(e),F=[y,...r].reduce((j,Y)=>bu(j,Y),{});return N7(Object.keys(y),F)}function pG(e,r){if(typeof e!="object")return{};const y={},F=Object.keys(r);return Array.isArray(e)?F.forEach((j,Y)=>{Y{e[j]!=null&&(y[j]=!0)}),y}function eg({values:e,breakpoints:r,base:y}){const F=y||pG(e,r),j=Object.keys(F);if(j.length===0)return e;let Y;return j.reduce((D,O,t)=>(Array.isArray(e)?(D[O]=e[t]!=null?e[t]:e[Y],Y=t):typeof e=="object"?(D[O]=e[O]!=null?e[O]:e[Y],Y=O):D[O]=e,D),{})}function Gn(e){if(typeof e!="string")throw new Error(iv(7));return e.charAt(0).toUpperCase()+e.slice(1)}const gG=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"}));function by(e,r,y=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&y){const F=`vars.${r}`.split(".").reduce((j,Y)=>j&&j[Y]?j[Y]:null,e);if(F!=null)return F}return r.split(".").reduce((F,j)=>F&&F[j]!=null?F[j]:null,e)}function i2(e,r,y,F=y){let j;return typeof e=="function"?j=e(y):Array.isArray(e)?j=e[y]||F:j=by(e,y)||F,r&&(j=r(j,F,e)),j}function Ns(e){const{prop:r,cssProperty:y=e.prop,themeKey:F,transform:j}=e,Y=D=>{if(D[r]==null)return null;const O=D[r],t=D.theme,l=by(t,F)||{};return Ju(D,O,i=>{let C=i2(l,j,i);return i===C&&typeof i=="string"&&(C=i2(l,j,`${r}${i==="default"?"":Gn(i)}`,i)),y===!1?C:{[y]:C}})};return Y.propTypes={},Y.filterProps=[r],Y}function mG(e){const r={};return y=>(r[y]===void 0&&(r[y]=e(y)),r[y])}const yG={m:"margin",p:"padding"},xG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bG=mG(e=>{if(e.length>2)if(f8[e])e=f8[e];else return[e];const[r,y]=e.split(""),F=yG[r],j=xG[y]||"";return Array.isArray(j)?j.map(Y=>F+Y):[F+j]}),GA=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],WA=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...GA,...WA];function Eb(e,r,y,F){var j;const Y=(j=by(e,r,!1))!=null?j:y;return typeof Y=="number"?D=>typeof D=="string"?D:Y*D:Array.isArray(Y)?D=>typeof D=="string"?D:Y[D]:typeof Y=="function"?Y:()=>{}}function $A(e){return Eb(e,"spacing",8)}function ug(e,r){if(typeof r=="string"||r==null)return r;const y=Math.abs(r),F=e(y);return r>=0?F:typeof F=="number"?-F:`-${F}`}function wG(e,r){return y=>e.reduce((F,j)=>(F[j]=ug(r,y),F),{})}function TG(e,r,y,F){if(r.indexOf(y)===-1)return null;const j=bG(y),Y=wG(j,F),D=e[y];return Ju(e,D,Y)}function U7(e,r){const y=$A(e.theme);return Object.keys(e).map(F=>TG(e,r,F,y)).reduce(hx,{})}function Cs(e){return U7(e,GA)}Cs.propTypes={};Cs.filterProps=GA;function Ms(e){return U7(e,WA)}Ms.propTypes={};Ms.filterProps=WA;function SG(e=8){if(e.mui)return e;const r=$A({spacing:e}),y=(...F)=>(F.length===0?[1]:F).map(Y=>{const D=r(Y);return typeof D=="number"?`${D}px`:D}).join(" ");return y.mui=!0,y}function oT(...e){const r=e.reduce((F,j)=>(j.filterProps.forEach(Y=>{F[Y]=j}),F),{}),y=F=>Object.keys(F).reduce((j,Y)=>r[Y]?hx(j,r[Y](F)):j,{});return y.propTypes={},y.filterProps=e.reduce((F,j)=>F.concat(j.filterProps),[]),y}function vf(e){return typeof e!="number"?e:`${e}px solid`}function If(e,r){return Ns({prop:e,themeKey:"borders",transform:r})}const CG=If("border",vf),MG=If("borderTop",vf),AG=If("borderRight",vf),EG=If("borderBottom",vf),PG=If("borderLeft",vf),LG=If("borderColor"),IG=If("borderTopColor"),RG=If("borderRightColor"),kG=If("borderBottomColor"),DG=If("borderLeftColor"),OG=If("outline",vf),FG=If("outlineColor"),sT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Eb(e.theme,"shape.borderRadius",4),y=F=>({borderRadius:ug(r,F)});return Ju(e,e.borderRadius,y)}return null};sT.propTypes={};sT.filterProps=["borderRadius"];oT(CG,MG,AG,EG,PG,LG,IG,RG,kG,DG,sT,OG,FG);const lT=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Eb(e.theme,"spacing",8),y=F=>({gap:ug(r,F)});return Ju(e,e.gap,y)}return null};lT.propTypes={};lT.filterProps=["gap"];const uT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Eb(e.theme,"spacing",8),y=F=>({columnGap:ug(r,F)});return Ju(e,e.columnGap,y)}return null};uT.propTypes={};uT.filterProps=["columnGap"];const cT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Eb(e.theme,"spacing",8),y=F=>({rowGap:ug(r,F)});return Ju(e,e.rowGap,y)}return null};cT.propTypes={};cT.filterProps=["rowGap"];const _G=Ns({prop:"gridColumn"}),zG=Ns({prop:"gridRow"}),BG=Ns({prop:"gridAutoFlow"}),NG=Ns({prop:"gridAutoColumns"}),UG=Ns({prop:"gridAutoRows"}),HG=Ns({prop:"gridTemplateColumns"}),VG=Ns({prop:"gridTemplateRows"}),jG=Ns({prop:"gridTemplateAreas"}),GG=Ns({prop:"gridArea"});oT(lT,uT,cT,_G,zG,BG,NG,UG,HG,VG,jG,GG);function Gm(e,r){return r==="grey"?r:e}const WG=Ns({prop:"color",themeKey:"palette",transform:Gm}),$G=Ns({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gm}),YG=Ns({prop:"backgroundColor",themeKey:"palette",transform:Gm});oT(WG,$G,YG);function bc(e){return e<=1&&e!==0?`${e*100}%`:e}const XG=Ns({prop:"width",transform:bc}),YA=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=y=>{var F,j;const Y=((F=e.theme)==null||(F=F.breakpoints)==null||(F=F.values)==null?void 0:F[y])||jA[y];return Y?((j=e.theme)==null||(j=j.breakpoints)==null?void 0:j.unit)!=="px"?{maxWidth:`${Y}${e.theme.breakpoints.unit}`}:{maxWidth:Y}:{maxWidth:bc(y)}};return Ju(e,e.maxWidth,r)}return null};YA.filterProps=["maxWidth"];const ZG=Ns({prop:"minWidth",transform:bc}),KG=Ns({prop:"height",transform:bc}),JG=Ns({prop:"maxHeight",transform:bc}),QG=Ns({prop:"minHeight",transform:bc});Ns({prop:"size",cssProperty:"width",transform:bc});Ns({prop:"size",cssProperty:"height",transform:bc});const qG=Ns({prop:"boxSizing"});oT(XG,YA,ZG,KG,JG,QG,qG);const eW={border:{themeKey:"borders",transform:vf},borderTop:{themeKey:"borders",transform:vf},borderRight:{themeKey:"borders",transform:vf},borderBottom:{themeKey:"borders",transform:vf},borderLeft:{themeKey:"borders",transform:vf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sT},color:{themeKey:"palette",transform:Gm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gm},backgroundColor:{themeKey:"palette",transform:Gm},p:{style:Ms},pt:{style:Ms},pr:{style:Ms},pb:{style:Ms},pl:{style:Ms},px:{style:Ms},py:{style:Ms},padding:{style:Ms},paddingTop:{style:Ms},paddingRight:{style:Ms},paddingBottom:{style:Ms},paddingLeft:{style:Ms},paddingX:{style:Ms},paddingY:{style:Ms},paddingInline:{style:Ms},paddingInlineStart:{style:Ms},paddingInlineEnd:{style:Ms},paddingBlock:{style:Ms},paddingBlockStart:{style:Ms},paddingBlockEnd:{style:Ms},m:{style:Cs},mt:{style:Cs},mr:{style:Cs},mb:{style:Cs},ml:{style:Cs},mx:{style:Cs},my:{style:Cs},margin:{style:Cs},marginTop:{style:Cs},marginRight:{style:Cs},marginBottom:{style:Cs},marginLeft:{style:Cs},marginX:{style:Cs},marginY:{style:Cs},marginInline:{style:Cs},marginInlineStart:{style:Cs},marginInlineEnd:{style:Cs},marginBlock:{style:Cs},marginBlockStart:{style:Cs},marginBlockEnd:{style:Cs},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:lT},rowGap:{style:cT},columnGap:{style:uT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bc},maxWidth:{style:YA},minWidth:{transform:bc},height:{transform:bc},maxHeight:{transform:bc},minHeight:{transform:bc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Pb=eW;function tW(...e){const r=e.reduce((F,j)=>F.concat(Object.keys(j)),[]),y=new Set(r);return e.every(F=>y.size===Object.keys(F).length)}function rW(e,r){return typeof e=="function"?e(r):e}function H7(){function e(y,F,j,Y){const D={[y]:F,theme:j},O=Y[y];if(!O)return{[y]:F};const{cssProperty:t=y,themeKey:l,transform:S,style:i}=O;if(F==null)return null;if(l==="typography"&&F==="inherit")return{[y]:F};const C=by(j,l)||{};return i?i(D):Ju(D,F,v=>{let m=i2(C,S,v);return v===m&&typeof v=="string"&&(m=i2(C,S,`${y}${v==="default"?"":Gn(v)}`,v)),t===!1?m:{[t]:m}})}function r(y){var F;const{sx:j,theme:Y={}}=y||{};if(!j)return null;const D=(F=Y.unstable_sxConfig)!=null?F:Pb;function O(t){let l=t;if(typeof t=="function")l=t(Y);else if(typeof t!="object")return t;if(!l)return null;const S=B7(Y.breakpoints),i=Object.keys(S);let C=S;return Object.keys(l).forEach(w=>{const v=rW(l[w],Y);if(v!=null)if(typeof v=="object")if(D[w])C=hx(C,e(w,v,Y,D));else{const m=Ju({theme:Y},v,a=>({[w]:a}));tW(m,v)?C[w]=r({sx:v,theme:Y}):C=hx(C,m)}else C=hx(C,e(w,v,Y,D))}),N7(i,C)}return Array.isArray(j)?j.map(O):O(j)}return r}const zy=H7();zy.filterProps=["sx"];function V7(e,r){const y=this;return y.vars&&typeof y.getColorSchemeSelector=="function"?{[y.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:r}:y.palette.mode===e?r:{}}const nW=["breakpoints","palette","spacing","shape"];function By(e={},...r){const{breakpoints:y={},palette:F={},spacing:j,shape:Y={}}=e,D=hn(e,nW),O=z7(y),t=SG(j);let l=bu({breakpoints:O,direction:"ltr",components:{},palette:Ge({mode:"light"},F),spacing:t,shape:Ge({},hG,Y)},D);return l.applyStyles=V7,l=r.reduce((S,i)=>bu(S,i),l),l.unstable_sxConfig=Ge({},Pb,D==null?void 0:D.unstable_sxConfig),l.unstable_sx=function(i){return zy({sx:i,theme:this})},l}const aW=Object.freeze(Object.defineProperty({__proto__:null,default:By,private_createBreakpoints:z7,unstable_applyStyles:V7},Symbol.toStringTag,{value:"Module"}));function iW(e){return Object.keys(e).length===0}function XA(e=null){const r=Oe.useContext(Ab);return!r||iW(r)?e:r}const oW=By();function fT(e=oW){return XA(e)}function sW({styles:e,themeId:r,defaultTheme:y={}}){const F=fT(y),j=typeof e=="function"?e(r&&F[r]||F):e;return Ce.jsx(O7,{styles:j})}const lW=["sx"],uW=e=>{var r,y;const F={systemProps:{},otherProps:{}},j=(r=e==null||(y=e.theme)==null?void 0:y.unstable_sxConfig)!=null?r:Pb;return Object.keys(e).forEach(Y=>{j[Y]?F.systemProps[Y]=e[Y]:F.otherProps[Y]=e[Y]}),F};function Lb(e){const{sx:r}=e,y=hn(e,lW),{systemProps:F,otherProps:j}=uW(y);let Y;return Array.isArray(r)?Y=[F,...r]:typeof r=="function"?Y=(...D)=>{const O=r(...D);return Wh(O)?Ge({},F,O):F}:Y=Ge({},F,r),Ge({},j,{sx:Y})}const cW=Object.freeze(Object.defineProperty({__proto__:null,default:zy,extendSxProp:Lb,unstable_createStyleFunctionSx:H7,unstable_defaultSxConfig:Pb},Symbol.toStringTag,{value:"Module"})),d8=e=>e,fW=()=>{let e=d8;return{configure(r){e=r},generate(r){return e(r)},reset(){e=d8}}},dW=fW(),ZA=dW;function j7(e){var r,y,F="";if(typeof e=="string"||typeof e=="number")F+=e;else if(typeof e=="object")if(Array.isArray(e)){var j=e.length;for(r=0;rO!=="theme"&&O!=="sx"&&O!=="as"})(zy);return Oe.forwardRef(function(t,l){const S=fT(y),i=Lb(t),{className:C,component:w="div"}=i,v=hn(i,hW);return Ce.jsx(Y,Ge({as:w,ref:l,className:Ln(C,j?j(F):F),theme:r&&S[r]||S},v))})}const pW={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ka(e,r,y="Mui"){const F=pW[r];return F?`${y}-${F}`:`${ZA.generate(e)}-${r}`}function Ma(e,r,y="Mui"){const F={};return r.forEach(j=>{F[j]=ka(e,j,y)}),F}var G7={exports:{}},Eo={};/** + */var vl=typeof Symbol=="function"&&Symbol.for,EA=vl?Symbol.for("react.element"):60103,PA=vl?Symbol.for("react.portal"):60106,j2=vl?Symbol.for("react.fragment"):60107,G2=vl?Symbol.for("react.strict_mode"):60108,W2=vl?Symbol.for("react.profiler"):60114,$2=vl?Symbol.for("react.provider"):60109,Y2=vl?Symbol.for("react.context"):60110,LA=vl?Symbol.for("react.async_mode"):60111,X2=vl?Symbol.for("react.concurrent_mode"):60111,Z2=vl?Symbol.for("react.forward_ref"):60112,K2=vl?Symbol.for("react.suspense"):60113,cj=vl?Symbol.for("react.suspense_list"):60120,J2=vl?Symbol.for("react.memo"):60115,Q2=vl?Symbol.for("react.lazy"):60116,fj=vl?Symbol.for("react.block"):60121,dj=vl?Symbol.for("react.fundamental"):60117,hj=vl?Symbol.for("react.responder"):60118,vj=vl?Symbol.for("react.scope"):60119;function kc(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case EA:switch(e=e.type,e){case LA:case X2:case j2:case W2:case G2:case K2:return e;default:switch(e=e&&e.$$typeof,e){case Y2:case Z2:case Q2:case J2:case $2:return e;default:return r}}case PA:return r}}}function f7(e){return kc(e)===X2}Eo.AsyncMode=LA;Eo.ConcurrentMode=X2;Eo.ContextConsumer=Y2;Eo.ContextProvider=$2;Eo.Element=EA;Eo.ForwardRef=Z2;Eo.Fragment=j2;Eo.Lazy=Q2;Eo.Memo=J2;Eo.Portal=PA;Eo.Profiler=W2;Eo.StrictMode=G2;Eo.Suspense=K2;Eo.isAsyncMode=function(e){return f7(e)||kc(e)===LA};Eo.isConcurrentMode=f7;Eo.isContextConsumer=function(e){return kc(e)===Y2};Eo.isContextProvider=function(e){return kc(e)===$2};Eo.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EA};Eo.isForwardRef=function(e){return kc(e)===Z2};Eo.isFragment=function(e){return kc(e)===j2};Eo.isLazy=function(e){return kc(e)===Q2};Eo.isMemo=function(e){return kc(e)===J2};Eo.isPortal=function(e){return kc(e)===PA};Eo.isProfiler=function(e){return kc(e)===W2};Eo.isStrictMode=function(e){return kc(e)===G2};Eo.isSuspense=function(e){return kc(e)===K2};Eo.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===j2||e===X2||e===W2||e===G2||e===K2||e===cj||typeof e=="object"&&e!==null&&(e.$$typeof===Q2||e.$$typeof===J2||e.$$typeof===$2||e.$$typeof===Y2||e.$$typeof===Z2||e.$$typeof===dj||e.$$typeof===hj||e.$$typeof===vj||e.$$typeof===fj)};Eo.typeOf=kc;c7.exports=Eo;var pj=c7.exports,d7=pj,gj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h7={};h7[d7.ForwardRef]=gj;h7[d7.Memo]=mj;var yj=!0;function xj(e,r,x){var F="";return x.split(" ").forEach(function(j){e[j]!==void 0?r.push(e[j]+";"):F+=j+" "}),F}var v7=function(r,x,F){var j=r.key+"-"+x.name;(F===!1||yj===!1)&&r.registered[j]===void 0&&(r.registered[j]=x.styles)},p7=function(r,x,F){v7(r,x,F);var j=r.key+"-"+x.name;if(r.inserted[x.name]===void 0){var Y=x;do r.insert(x===Y?"."+j:"",Y,r.sheet,!0),Y=Y.next;while(Y!==void 0)}};function bj(e){for(var r=0,x,F=0,j=e.length;j>=4;++F,j-=4)x=e.charCodeAt(F)&255|(e.charCodeAt(++F)&255)<<8|(e.charCodeAt(++F)&255)<<16|(e.charCodeAt(++F)&255)<<24,x=(x&65535)*1540483477+((x>>>16)*59797<<16),x^=x>>>24,r=(x&65535)*1540483477+((x>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(j){case 3:r^=(e.charCodeAt(F+2)&255)<<16;case 2:r^=(e.charCodeAt(F+1)&255)<<8;case 1:r^=e.charCodeAt(F)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var wj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Tj(e){var r=Object.create(null);return function(x){return r[x]===void 0&&(r[x]=e(x)),r[x]}}var Sj=!1,Cj=/[A-Z]|^ms/g,Mj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g7=function(r){return r.charCodeAt(1)===45},ZP=function(r){return r!=null&&typeof r!="boolean"},rC=Tj(function(e){return g7(e)?e:e.replace(Cj,"-$&").toLowerCase()}),KP=function(r,x){switch(r){case"animation":case"animationName":if(typeof x=="string")return x.replace(Mj,function(F,j,Y){return rh={name:j,styles:Y,next:rh},j})}return wj[r]!==1&&!g7(r)&&typeof x=="number"&&x!==0?x+"px":x},Aj="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Gx(e,r,x){if(x==null)return"";var F=x;if(F.__emotion_styles!==void 0)return F;switch(typeof x){case"boolean":return"";case"object":{var j=x;if(j.anim===1)return rh={name:j.name,styles:j.styles,next:rh},j.name;var Y=x;if(Y.styles!==void 0){var D=Y.next;if(D!==void 0)for(;D!==void 0;)rh={name:D.name,styles:D.styles,next:rh},D=D.next;var O=Y.styles+";";return O}return Ej(e,r,x)}case"function":{if(e!==void 0){var t=rh,l=x(e);return rh=t,Gx(e,r,l)}break}}var S=x;if(r==null)return S;var i=r[S];return i!==void 0?i:S}function Ej(e,r,x){var F="";if(Array.isArray(x))for(var j=0;j96?kj:Dj},t8=function(r,x,F){var j;if(x){var Y=x.shouldForwardProp;j=r.__emotion_forwardProp&&Y?function(D){return r.__emotion_forwardProp(D)&&Y(D)}:Y}return typeof j!="function"&&F&&(j=r.__emotion_forwardProp),j},Oj=!1,Fj=function(r){var x=r.cache,F=r.serialized,j=r.isStringTag;return v7(x,F,j),Lj(function(){return p7(x,F,j)}),null},_j=function e(r,x){var F=r.__emotion_real===r,j=F&&r.__emotion_base||r,Y,D;x!==void 0&&(Y=x.label,D=x.target);var O=t8(r,x,F),t=O||e8(j),l=!t("as");return function(){var S=arguments,i=F&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(Y!==void 0&&i.push("label:"+Y+";"),S[0]==null||S[0].raw===void 0)i.push.apply(i,S);else{i.push(S[0][0]);for(var C=S.length,w=1;wr(jj(j)?x:j):r;return Ce.jsx(Rj,{styles:F})}function RA(e,r){return F4(e,r)}const A7=(e,r)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))},Gj=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:M7,StyledEngineProvider:Vj,ThemeContext:yb,css:lv,default:RA,internal_processStyles:A7,keyframes:Ad},Symbol.toStringTag,{value:"Module"}));function Yh(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function E7(e){if(!Yh(e))return e;const r={};return Object.keys(e).forEach(x=>{r[x]=E7(e[x])}),r}function wu(e,r,x={clone:!0}){const F=x.clone?Ge({},e):e;return Yh(e)&&Yh(r)&&Object.keys(r).forEach(j=>{Yh(r[j])&&Object.prototype.hasOwnProperty.call(e,j)&&Yh(e[j])?F[j]=wu(e[j],r[j],x):x.clone?F[j]=Yh(r[j])?E7(r[j]):r[j]:F[j]=r[j]}),F}const Wj=Object.freeze(Object.defineProperty({__proto__:null,default:wu,isPlainObject:Yh},Symbol.toStringTag,{value:"Module"})),$j=["values","unit","step"],Yj=e=>{const r=Object.keys(e).map(x=>({key:x,val:e[x]}))||[];return r.sort((x,F)=>x.val-F.val),r.reduce((x,F)=>Ge({},x,{[F.key]:F.val}),{})};function P7(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:x="px",step:F=5}=e,j=hn(e,$j),Y=Yj(r),D=Object.keys(Y);function O(C){return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${x})`}function t(C){return`@media (max-width:${(typeof r[C]=="number"?r[C]:C)-F/100}${x})`}function l(C,w){const v=D.indexOf(w);return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${x}) and (max-width:${(v!==-1&&typeof r[D[v]]=="number"?r[D[v]]:w)-F/100}${x})`}function S(C){return D.indexOf(C)+1`@media (min-width:${kA[e]}px)`};function Qu(e,r,x){const F=e.theme||{};if(Array.isArray(r)){const Y=F.breakpoints||r8;return r.reduce((D,O,t)=>(D[Y.up(Y.keys[t])]=x(r[t]),D),{})}if(typeof r=="object"){const Y=F.breakpoints||r8;return Object.keys(r).reduce((D,O)=>{if(Object.keys(Y.values||kA).indexOf(O)!==-1){const t=Y.up(O);D[t]=x(r[O],O)}else{const t=O;D[t]=r[t]}return D},{})}return x(r)}function L7(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((F,j)=>{const Y=e.up(j);return F[Y]={},F},{}))||{}}function I7(e,r){return e.reduce((x,F)=>{const j=x[F];return(!j||Object.keys(j).length===0)&&delete x[F],x},r)}function Zj(e,...r){const x=L7(e),F=[x,...r].reduce((j,Y)=>wu(j,Y),{});return I7(Object.keys(x),F)}function Kj(e,r){if(typeof e!="object")return{};const x={},F=Object.keys(r);return Array.isArray(e)?F.forEach((j,Y)=>{Y{e[j]!=null&&(x[j]=!0)}),x}function eg({values:e,breakpoints:r,base:x}){const F=x||Kj(e,r),j=Object.keys(F);if(j.length===0)return e;let Y;return j.reduce((D,O,t)=>(Array.isArray(e)?(D[O]=e[t]!=null?e[t]:e[Y],Y=t):typeof e=="object"?(D[O]=e[O]!=null?e[O]:e[Y],Y=O):D[O]=e,D),{})}function Gn(e){if(typeof e!="string")throw new Error(sv(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Jj=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"}));function by(e,r,x=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&x){const F=`vars.${r}`.split(".").reduce((j,Y)=>j&&j[Y]?j[Y]:null,e);if(F!=null)return F}return r.split(".").reduce((F,j)=>F&&F[j]!=null?F[j]:null,e)}function Q3(e,r,x,F=x){let j;return typeof e=="function"?j=e(x):Array.isArray(e)?j=e[x]||F:j=by(e,x)||F,r&&(j=r(j,F,e)),j}function Ns(e){const{prop:r,cssProperty:x=e.prop,themeKey:F,transform:j}=e,Y=D=>{if(D[r]==null)return null;const O=D[r],t=D.theme,l=by(t,F)||{};return Qu(D,O,i=>{let C=Q3(l,j,i);return i===C&&typeof i=="string"&&(C=Q3(l,j,`${r}${i==="default"?"":Gn(i)}`,i)),x===!1?C:{[x]:C}})};return Y.propTypes={},Y.filterProps=[r],Y}function Qj(e){const r={};return x=>(r[x]===void 0&&(r[x]=e(x)),r[x])}const qj={m:"margin",p:"padding"},eG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},n8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tG=Qj(e=>{if(e.length>2)if(n8[e])e=n8[e];else return[e];const[r,x]=e.split(""),F=qj[r],j=eG[x]||"";return Array.isArray(j)?j.map(Y=>F+Y):[F+j]}),DA=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OA=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...DA,...OA];function xb(e,r,x,F){var j;const Y=(j=by(e,r,!1))!=null?j:x;return typeof Y=="number"?D=>typeof D=="string"?D:Y*D:Array.isArray(Y)?D=>typeof D=="string"?D:Y[D]:typeof Y=="function"?Y:()=>{}}function FA(e){return xb(e,"spacing",8)}function ug(e,r){if(typeof r=="string"||r==null)return r;const x=Math.abs(r),F=e(x);return r>=0?F:typeof F=="number"?-F:`-${F}`}function rG(e,r){return x=>e.reduce((F,j)=>(F[j]=ug(r,x),F),{})}function nG(e,r,x,F){if(r.indexOf(x)===-1)return null;const j=tG(x),Y=rG(j,F),D=e[x];return Qu(e,D,Y)}function R7(e,r){const x=FA(e.theme);return Object.keys(e).map(F=>nG(e,r,F,x)).reduce(vx,{})}function Ms(e){return R7(e,DA)}Ms.propTypes={};Ms.filterProps=DA;function As(e){return R7(e,OA)}As.propTypes={};As.filterProps=OA;function aG(e=8){if(e.mui)return e;const r=FA({spacing:e}),x=(...F)=>(F.length===0?[1]:F).map(Y=>{const D=r(Y);return typeof D=="number"?`${D}px`:D}).join(" ");return x.mui=!0,x}function q2(...e){const r=e.reduce((F,j)=>(j.filterProps.forEach(Y=>{F[Y]=j}),F),{}),x=F=>Object.keys(F).reduce((j,Y)=>r[Y]?vx(j,r[Y](F)):j,{});return x.propTypes={},x.filterProps=e.reduce((F,j)=>F.concat(j.filterProps),[]),x}function gf(e){return typeof e!="number"?e:`${e}px solid`}function Rf(e,r){return Ns({prop:e,themeKey:"borders",transform:r})}const iG=Rf("border",gf),oG=Rf("borderTop",gf),sG=Rf("borderRight",gf),lG=Rf("borderBottom",gf),uG=Rf("borderLeft",gf),cG=Rf("borderColor"),fG=Rf("borderTopColor"),dG=Rf("borderRightColor"),hG=Rf("borderBottomColor"),vG=Rf("borderLeftColor"),pG=Rf("outline",gf),gG=Rf("outlineColor"),eT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=xb(e.theme,"shape.borderRadius",4),x=F=>({borderRadius:ug(r,F)});return Qu(e,e.borderRadius,x)}return null};eT.propTypes={};eT.filterProps=["borderRadius"];q2(iG,oG,sG,lG,uG,cG,fG,dG,hG,vG,eT,pG,gG);const tT=e=>{if(e.gap!==void 0&&e.gap!==null){const r=xb(e.theme,"spacing",8),x=F=>({gap:ug(r,F)});return Qu(e,e.gap,x)}return null};tT.propTypes={};tT.filterProps=["gap"];const rT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=xb(e.theme,"spacing",8),x=F=>({columnGap:ug(r,F)});return Qu(e,e.columnGap,x)}return null};rT.propTypes={};rT.filterProps=["columnGap"];const nT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=xb(e.theme,"spacing",8),x=F=>({rowGap:ug(r,F)});return Qu(e,e.rowGap,x)}return null};nT.propTypes={};nT.filterProps=["rowGap"];const mG=Ns({prop:"gridColumn"}),yG=Ns({prop:"gridRow"}),xG=Ns({prop:"gridAutoFlow"}),bG=Ns({prop:"gridAutoColumns"}),wG=Ns({prop:"gridAutoRows"}),TG=Ns({prop:"gridTemplateColumns"}),SG=Ns({prop:"gridTemplateRows"}),CG=Ns({prop:"gridTemplateAreas"}),MG=Ns({prop:"gridArea"});q2(tT,rT,nT,mG,yG,xG,bG,wG,TG,SG,CG,MG);function Gm(e,r){return r==="grey"?r:e}const AG=Ns({prop:"color",themeKey:"palette",transform:Gm}),EG=Ns({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gm}),PG=Ns({prop:"backgroundColor",themeKey:"palette",transform:Gm});q2(AG,EG,PG);function wc(e){return e<=1&&e!==0?`${e*100}%`:e}const LG=Ns({prop:"width",transform:wc}),_A=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=x=>{var F,j;const Y=((F=e.theme)==null||(F=F.breakpoints)==null||(F=F.values)==null?void 0:F[x])||kA[x];return Y?((j=e.theme)==null||(j=j.breakpoints)==null?void 0:j.unit)!=="px"?{maxWidth:`${Y}${e.theme.breakpoints.unit}`}:{maxWidth:Y}:{maxWidth:wc(x)}};return Qu(e,e.maxWidth,r)}return null};_A.filterProps=["maxWidth"];const IG=Ns({prop:"minWidth",transform:wc}),RG=Ns({prop:"height",transform:wc}),kG=Ns({prop:"maxHeight",transform:wc}),DG=Ns({prop:"minHeight",transform:wc});Ns({prop:"size",cssProperty:"width",transform:wc});Ns({prop:"size",cssProperty:"height",transform:wc});const OG=Ns({prop:"boxSizing"});q2(LG,_A,IG,RG,kG,DG,OG);const bb={border:{themeKey:"borders",transform:gf},borderTop:{themeKey:"borders",transform:gf},borderRight:{themeKey:"borders",transform:gf},borderBottom:{themeKey:"borders",transform:gf},borderLeft:{themeKey:"borders",transform:gf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eT},color:{themeKey:"palette",transform:Gm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gm},backgroundColor:{themeKey:"palette",transform:Gm},p:{style:As},pt:{style:As},pr:{style:As},pb:{style:As},pl:{style:As},px:{style:As},py:{style:As},padding:{style:As},paddingTop:{style:As},paddingRight:{style:As},paddingBottom:{style:As},paddingLeft:{style:As},paddingX:{style:As},paddingY:{style:As},paddingInline:{style:As},paddingInlineStart:{style:As},paddingInlineEnd:{style:As},paddingBlock:{style:As},paddingBlockStart:{style:As},paddingBlockEnd:{style:As},m:{style:Ms},mt:{style:Ms},mr:{style:Ms},mb:{style:Ms},ml:{style:Ms},mx:{style:Ms},my:{style:Ms},margin:{style:Ms},marginTop:{style:Ms},marginRight:{style:Ms},marginBottom:{style:Ms},marginLeft:{style:Ms},marginX:{style:Ms},marginY:{style:Ms},marginInline:{style:Ms},marginInlineStart:{style:Ms},marginInlineEnd:{style:Ms},marginBlock:{style:Ms},marginBlockStart:{style:Ms},marginBlockEnd:{style:Ms},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tT},rowGap:{style:nT},columnGap:{style:rT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wc},maxWidth:{style:_A},minWidth:{transform:wc},height:{transform:wc},maxHeight:{transform:wc},minHeight:{transform:wc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function FG(...e){const r=e.reduce((F,j)=>F.concat(Object.keys(j)),[]),x=new Set(r);return e.every(F=>x.size===Object.keys(F).length)}function _G(e,r){return typeof e=="function"?e(r):e}function k7(){function e(x,F,j,Y){const D={[x]:F,theme:j},O=Y[x];if(!O)return{[x]:F};const{cssProperty:t=x,themeKey:l,transform:S,style:i}=O;if(F==null)return null;if(l==="typography"&&F==="inherit")return{[x]:F};const C=by(j,l)||{};return i?i(D):Qu(D,F,v=>{let m=Q3(C,S,v);return v===m&&typeof v=="string"&&(m=Q3(C,S,`${x}${v==="default"?"":Gn(v)}`,v)),t===!1?m:{[t]:m}})}function r(x){var F;const{sx:j,theme:Y={}}=x||{};if(!j)return null;const D=(F=Y.unstable_sxConfig)!=null?F:bb;function O(t){let l=t;if(typeof t=="function")l=t(Y);else if(typeof t!="object")return t;if(!l)return null;const S=L7(Y.breakpoints),i=Object.keys(S);let C=S;return Object.keys(l).forEach(w=>{const v=_G(l[w],Y);if(v!=null)if(typeof v=="object")if(D[w])C=vx(C,e(w,v,Y,D));else{const m=Qu({theme:Y},v,a=>({[w]:a}));FG(m,v)?C[w]=r({sx:v,theme:Y}):C=vx(C,m)}else C=vx(C,e(w,v,Y,D))}),I7(i,C)}return Array.isArray(j)?j.map(O):O(j)}return r}const By=k7();By.filterProps=["sx"];function D7(e,r){const x=this;return x.vars&&typeof x.getColorSchemeSelector=="function"?{[x.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:r}:x.palette.mode===e?r:{}}const zG=["breakpoints","palette","spacing","shape"];function Ny(e={},...r){const{breakpoints:x={},palette:F={},spacing:j,shape:Y={}}=e,D=hn(e,zG),O=P7(x),t=aG(j);let l=wu({breakpoints:O,direction:"ltr",components:{},palette:Ge({mode:"light"},F),spacing:t,shape:Ge({},Xj,Y)},D);return l.applyStyles=D7,l=r.reduce((S,i)=>wu(S,i),l),l.unstable_sxConfig=Ge({},bb,D==null?void 0:D.unstable_sxConfig),l.unstable_sx=function(i){return By({sx:i,theme:this})},l}const BG=Object.freeze(Object.defineProperty({__proto__:null,default:Ny,private_createBreakpoints:P7,unstable_applyStyles:D7},Symbol.toStringTag,{value:"Module"}));function NG(e){return Object.keys(e).length===0}function zA(e=null){const r=Oe.useContext(yb);return!r||NG(r)?e:r}const UG=Ny();function aT(e=UG){return zA(e)}function HG({styles:e,themeId:r,defaultTheme:x={}}){const F=aT(x),j=typeof e=="function"?e(r&&F[r]||F):e;return Ce.jsx(M7,{styles:j})}const VG=["sx"],jG=e=>{var r,x;const F={systemProps:{},otherProps:{}},j=(r=e==null||(x=e.theme)==null?void 0:x.unstable_sxConfig)!=null?r:bb;return Object.keys(e).forEach(Y=>{j[Y]?F.systemProps[Y]=e[Y]:F.otherProps[Y]=e[Y]}),F};function wb(e){const{sx:r}=e,x=hn(e,VG),{systemProps:F,otherProps:j}=jG(x);let Y;return Array.isArray(r)?Y=[F,...r]:typeof r=="function"?Y=(...D)=>{const O=r(...D);return Yh(O)?Ge({},F,O):F}:Y=Ge({},F,r),Ge({},j,{sx:Y})}const GG=Object.freeze(Object.defineProperty({__proto__:null,default:By,extendSxProp:wb,unstable_createStyleFunctionSx:k7,unstable_defaultSxConfig:bb},Symbol.toStringTag,{value:"Module"})),a8=e=>e,WG=()=>{let e=a8;return{configure(r){e=r},generate(r){return e(r)},reset(){e=a8}}},BA=WG();function O7(e){var r,x,F="";if(typeof e=="string"||typeof e=="number")F+=e;else if(typeof e=="object")if(Array.isArray(e)){var j=e.length;for(r=0;rO!=="theme"&&O!=="sx"&&O!=="as"})(By);return Oe.forwardRef(function(t,l){const S=aT(x),i=wb(t),{className:C,component:w="div"}=i,v=hn(i,$G);return Ce.jsx(Y,Ge({as:w,ref:l,className:Ln(C,j?j(F):F),theme:r&&S[r]||S},v))})}const XG={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ka(e,r,x="Mui"){const F=XG[r];return F?`${x}-${F}`:`${BA.generate(e)}-${r}`}function Ca(e,r,x="Mui"){const F={};return r.forEach(j=>{F[j]=ka(e,j,x)}),F}var F7={exports:{}},Po={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+Y.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var KA=Symbol.for("react.element"),JA=Symbol.for("react.portal"),dT=Symbol.for("react.fragment"),hT=Symbol.for("react.strict_mode"),vT=Symbol.for("react.profiler"),pT=Symbol.for("react.provider"),gT=Symbol.for("react.context"),gW=Symbol.for("react.server_context"),mT=Symbol.for("react.forward_ref"),yT=Symbol.for("react.suspense"),xT=Symbol.for("react.suspense_list"),bT=Symbol.for("react.memo"),wT=Symbol.for("react.lazy"),mW=Symbol.for("react.offscreen"),W7;W7=Symbol.for("react.module.reference");function Rf(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case KA:switch(e=e.type,e){case dT:case vT:case hT:case yT:case xT:return e;default:switch(e=e&&e.$$typeof,e){case gW:case gT:case mT:case wT:case bT:case pT:return e;default:return r}}case JA:return r}}}Eo.ContextConsumer=gT;Eo.ContextProvider=pT;Eo.Element=KA;Eo.ForwardRef=mT;Eo.Fragment=dT;Eo.Lazy=wT;Eo.Memo=bT;Eo.Portal=JA;Eo.Profiler=vT;Eo.StrictMode=hT;Eo.Suspense=yT;Eo.SuspenseList=xT;Eo.isAsyncMode=function(){return!1};Eo.isConcurrentMode=function(){return!1};Eo.isContextConsumer=function(e){return Rf(e)===gT};Eo.isContextProvider=function(e){return Rf(e)===pT};Eo.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KA};Eo.isForwardRef=function(e){return Rf(e)===mT};Eo.isFragment=function(e){return Rf(e)===dT};Eo.isLazy=function(e){return Rf(e)===wT};Eo.isMemo=function(e){return Rf(e)===bT};Eo.isPortal=function(e){return Rf(e)===JA};Eo.isProfiler=function(e){return Rf(e)===vT};Eo.isStrictMode=function(e){return Rf(e)===hT};Eo.isSuspense=function(e){return Rf(e)===yT};Eo.isSuspenseList=function(e){return Rf(e)===xT};Eo.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dT||e===vT||e===hT||e===yT||e===xT||e===mW||typeof e=="object"&&e!==null&&(e.$$typeof===wT||e.$$typeof===bT||e.$$typeof===pT||e.$$typeof===gT||e.$$typeof===mT||e.$$typeof===W7||e.getModuleId!==void 0)};Eo.typeOf=Rf;G7.exports=Eo;var h8=G7.exports;const yW=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $7(e){const r=`${e}`.match(yW);return r&&r[1]||""}function Y7(e,r=""){return e.displayName||e.name||$7(e)||r}function v8(e,r,y){const F=Y7(r);return e.displayName||(F!==""?`${y}(${F})`:y)}function xW(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Y7(e,"Component");if(typeof e=="object")switch(e.$$typeof){case h8.ForwardRef:return v8(e,e.render,"ForwardRef");case h8.Memo:return v8(e,e.type,"memo");default:return}}}const bW=Object.freeze(Object.defineProperty({__proto__:null,default:xW,getFunctionName:$7},Symbol.toStringTag,{value:"Module"})),wW=["ownerState"],TW=["variants"],SW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function CW(e){return Object.keys(e).length===0}function MW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function S3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AW=By(),EW=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function jw({defaultTheme:e,theme:r,themeId:y}){return CW(r)?e:r[y]||r}function PW(e){return e?(r,y)=>y[e]:null}function C3(e,r){let{ownerState:y}=r,F=hn(r,wW);const j=typeof e=="function"?e(Ge({ownerState:y},F)):e;if(Array.isArray(j))return j.flatMap(Y=>C3(Y,Ge({ownerState:y},F)));if(j&&typeof j=="object"&&Array.isArray(j.variants)){const{variants:Y=[]}=j;let O=hn(j,TW);return Y.forEach(t=>{let l=!0;typeof t.props=="function"?l=t.props(Ge({ownerState:y},F,y)):Object.keys(t.props).forEach(S=>{(y==null?void 0:y[S])!==t.props[S]&&F[S]!==t.props[S]&&(l=!1)}),l&&(Array.isArray(O)||(O=[O]),O.push(typeof t.style=="function"?t.style(Ge({ownerState:y},F,y)):t.style))}),O}return j}function LW(e={}){const{themeId:r,defaultTheme:y=AW,rootShouldForwardProp:F=S3,slotShouldForwardProp:j=S3}=e,Y=D=>zy(Ge({},D,{theme:jw(Ge({},D,{defaultTheme:y,themeId:r}))}));return Y.__mui_systemSx=!0,(D,O={})=>{F7(D,f=>f.filter(u=>!(u!=null&&u.__mui_systemSx)));const{name:t,slot:l,skipVariantsResolver:S,skipSx:i,overridesResolver:C=PW(EW(l))}=O,w=hn(O,SW),v=S!==void 0?S:l&&l!=="Root"&&l!=="root"||!1,m=i||!1;let a,n=S3;l==="Root"||l==="root"?n=F:l?n=j:MW(D)&&(n=void 0);const s=VA(D,Ge({shouldForwardProp:n,label:a},w)),o=f=>typeof f=="function"&&f.__emotion_real!==f||Wh(f)?u=>C3(f,Ge({},u,{theme:jw({theme:u.theme,defaultTheme:y,themeId:r})})):f,h=(f,...u)=>{let b=o(f);const p=u?u.map(o):[];t&&C&&p.push(c=>{const x=jw(Ge({},c,{defaultTheme:y,themeId:r}));if(!x.components||!x.components[t]||!x.components[t].styleOverrides)return null;const A=x.components[t].styleOverrides,M={};return Object.entries(A).forEach(([R,T])=>{M[R]=C3(T,Ge({},c,{theme:x}))}),C(c,M)}),t&&!v&&p.push(c=>{var x;const A=jw(Ge({},c,{defaultTheme:y,themeId:r})),M=A==null||(x=A.components)==null||(x=x[t])==null?void 0:x.variants;return C3({variants:M},Ge({},c,{theme:A}))}),m||p.push(Y);const E=p.length-u.length;if(Array.isArray(f)&&E>0){const c=new Array(E).fill("");b=[...f,...c],b.raw=[...f.raw,...c]}const g=s(b,...p);return D.muiName&&(g.muiName=D.muiName),g};return s.withConfig&&(h.withConfig=s.withConfig),h}}const po=LW();function Gx(e,r){const y=Ge({},r);return Object.keys(e).forEach(F=>{if(F.toString().match(/^(components|slots)$/))y[F]=Ge({},e[F],y[F]);else if(F.toString().match(/^(componentsProps|slotProps)$/)){const j=e[F]||{},Y=r[F];y[F]={},!Y||!Object.keys(Y)?y[F]=j:!j||!Object.keys(j)?y[F]=Y:(y[F]=Ge({},Y),Object.keys(j).forEach(D=>{y[F][D]=Gx(j[D],Y[D])}))}else y[F]===void 0&&(y[F]=e[F])}),y}function X7(e){const{theme:r,name:y,props:F}=e;return!r||!r.components||!r.components[y]||!r.components[y].defaultProps?F:Gx(r.components[y].defaultProps,F)}function QA({props:e,name:r,defaultTheme:y,themeId:F}){let j=fT(y);return F&&(j=j[F]||j),X7({theme:j,name:r,props:e})}const Gi=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;function IW(e,r,y,F,j){const[Y,D]=Oe.useState(()=>j&&y?y(e).matches:F?F(e).matches:r);return Gi(()=>{let O=!0;if(!y)return;const t=y(e),l=()=>{O&&D(t.matches)};return l(),t.addListener(l),()=>{O=!1,t.removeListener(l)}},[e,y]),Y}const Z7=Oe.useSyncExternalStore;function RW(e,r,y,F,j){const Y=Oe.useCallback(()=>r,[r]),D=Oe.useMemo(()=>{if(j&&y)return()=>y(e).matches;if(F!==null){const{matches:S}=F(e);return()=>S}return Y},[Y,e,F,j,y]),[O,t]=Oe.useMemo(()=>{if(y===null)return[Y,()=>()=>{}];const S=y(e);return[()=>S.matches,i=>(S.addListener(i),()=>{S.removeListener(i)})]},[Y,y,e]);return Z7(t,O,D)}function K7(e,r={}){const y=XA(),F=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:j=!1,matchMedia:Y=F?window.matchMedia:null,ssrMatchMedia:D=null,noSsr:O=!1}=X7({name:"MuiUseMediaQuery",props:r,theme:y});let t=typeof e=="function"?e(y):e;return t=t.replace(/^@media( ?)/m,""),(Z7!==void 0?RW:IW)(t,j,Y,D,O)}function _0(e,r=Number.MIN_SAFE_INTEGER,y=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,y))}const kW=Object.freeze(Object.defineProperty({__proto__:null,default:_0},Symbol.toStringTag,{value:"Module"}));function qA(e,r=0,y=1){return _0(e,r,y)}function DW(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let y=e.match(r);return y&&y[0].length===1&&(y=y.map(F=>F+F)),y?`rgb${y.length===4?"a":""}(${y.map((F,j)=>j<3?parseInt(F,16):Math.round(parseInt(F,16)/255*1e3)/1e3).join(", ")})`:""}function wy(e){if(e.type)return e;if(e.charAt(0)==="#")return wy(DW(e));const r=e.indexOf("("),y=e.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(y)===-1)throw new Error(iv(9,e));let F=e.substring(r+1,e.length-1),j;if(y==="color"){if(F=F.split(" "),j=F.shift(),F.length===4&&F[3].charAt(0)==="/"&&(F[3]=F[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(j)===-1)throw new Error(iv(10,j))}else F=F.split(",");return F=F.map(Y=>parseFloat(Y)),{type:y,values:F,colorSpace:j}}function TT(e){const{type:r,colorSpace:y}=e;let{values:F}=e;return r.indexOf("rgb")!==-1?F=F.map((j,Y)=>Y<3?parseInt(j,10):j):r.indexOf("hsl")!==-1&&(F[1]=`${F[1]}%`,F[2]=`${F[2]}%`),r.indexOf("color")!==-1?F=`${y} ${F.join(" ")}`:F=`${F.join(", ")}`,`${r}(${F})`}function Tc(e,r){return e=wy(e),r=qA(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,TT(e)}function OW(e,r){if(e=wy(e),r=qA(r),e.type.indexOf("hsl")!==-1)e.values[2]*=1-r;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let y=0;y<3;y+=1)e.values[y]*=1-r;return TT(e)}function FW(e,r){if(e=wy(e),r=qA(r),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*r;else if(e.type.indexOf("rgb")!==-1)for(let y=0;y<3;y+=1)e.values[y]+=(255-e.values[y])*r;else if(e.type.indexOf("color")!==-1)for(let y=0;y<3;y+=1)e.values[y]+=(1-e.values[y])*r;return TT(e)}const _W=zr.oneOfType([zr.func,zr.object]),J7=_W;function $4(...e){return e.reduce((r,y)=>y==null?r:function(...j){r.apply(this,j),y.apply(this,j)},()=>{})}function bg(e,r=166){let y;function F(...j){const Y=()=>{e.apply(this,j)};clearTimeout(y),y=setTimeout(Y,r)}return F.clear=()=>{clearTimeout(y)},F}function zW(e,r){return()=>null}function vx(e,r){var y,F;return Oe.isValidElement(e)&&r.indexOf((y=e.type.muiName)!=null?y:(F=e.type)==null||(F=F._payload)==null||(F=F.value)==null?void 0:F.muiName)!==-1}function oo(e){return e&&e.ownerDocument||document}function wd(e){return oo(e).defaultView||window}function BW(e,r){return()=>null}function Wx(e,r){typeof e=="function"?e(r):e&&(e.current=r)}let p8=0;function NW(e){const[r,y]=Oe.useState(e),F=e||r;return Oe.useEffect(()=>{r==null&&(p8+=1,y(`mui-${p8}`))},[r]),F}const g8=D3.useId;function Ui(e){if(g8!==void 0){const r=g8();return e??r}return NW(e)}function UW(e,r,y,F,j){return null}function Dl({controlled:e,default:r,name:y,state:F="value"}){const{current:j}=Oe.useRef(e!==void 0),[Y,D]=Oe.useState(r),O=j?e:Y,t=Oe.useCallback(l=>{j||D(l)},[]);return[O,t]}function pa(e){const r=Oe.useRef(e);return Gi(()=>{r.current=e}),Oe.useRef((...y)=>(0,r.current)(...y)).current}function pi(...e){return Oe.useMemo(()=>e.every(r=>r==null)?null:r=>{e.forEach(y=>{Wx(y,r)})},e)}const m8={};function wg(e,r){const y=Oe.useRef(m8);return y.current===m8&&(y.current=e(r)),y}const HW=[];function ST(e){Oe.useEffect(e,HW)}class Ib{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ib}start(r,y){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,y()},r)}}function Sc(){const e=wg(Ib.create).current;return ST(e.disposeEffect),e}let CT=!0,Y4=!1;const VW=new Ib,jW={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 GW(e){const{type:r,tagName:y}=e;return!!(y==="INPUT"&&jW[r]&&!e.readOnly||y==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function WW(e){e.metaKey||e.altKey||e.ctrlKey||(CT=!0)}function hC(){CT=!1}function $W(){this.visibilityState==="hidden"&&Y4&&(CT=!0)}function YW(e){e.addEventListener("keydown",WW,!0),e.addEventListener("mousedown",hC,!0),e.addEventListener("pointerdown",hC,!0),e.addEventListener("touchstart",hC,!0),e.addEventListener("visibilitychange",$W,!0)}function XW(e){const{target:r}=e;try{return r.matches(":focus-visible")}catch{}return CT||GW(r)}function Rb(){const e=Oe.useCallback(j=>{j!=null&&YW(j.ownerDocument)},[]),r=Oe.useRef(!1);function y(){return r.current?(Y4=!0,VW.start(100,()=>{Y4=!1}),r.current=!1,!0):!1}function F(j){return XW(j)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:F,onBlur:y,ref:e}}function Q7(e){const r=e.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}let em;function q7(){if(em)return em;const e=document.createElement("div"),r=document.createElement("div");return r.style.width="10px",r.style.height="1px",e.appendChild(r),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),em="reverse",e.scrollLeft>0?em="default":(e.scrollLeft=1,e.scrollLeft===0&&(em="negative")),document.body.removeChild(e),em}function ZW(e,r){const y=e.scrollLeft;if(r!=="rtl")return y;switch(q7()){case"negative":return e.scrollWidth-e.clientWidth+y;case"reverse":return e.scrollWidth-e.clientWidth-y;default:return y}}const e5=e=>{const r=Oe.useRef({});return Oe.useEffect(()=>{r.current=e}),r.current},KW={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e9=KW;function qn(e,r,y=void 0){const F={};return Object.keys(e).forEach(j=>{F[j]=e[j].reduce((Y,D)=>{if(D){const O=r(D);O!==""&&Y.push(O),y&&y[D]&&Y.push(y[D])}return Y},[]).join(" ")}),F}function gd(e){return typeof e=="string"}function Rm(e,r,y){return e===void 0||gd(e)?r:Ge({},r,{ownerState:Ge({},r.ownerState,y)})}function px(e,r=[]){if(e===void 0)return{};const y={};return Object.keys(e).filter(F=>F.match(/^on[A-Z]/)&&typeof e[F]=="function"&&!r.includes(F)).forEach(F=>{y[F]=e[F]}),y}function y8(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(y=>!(y.match(/^on[A-Z]/)&&typeof e[y]=="function")).forEach(y=>{r[y]=e[y]}),r}function t9(e){const{getSlotProps:r,additionalProps:y,externalSlotProps:F,externalForwardedProps:j,className:Y}=e;if(!r){const w=Ln(y==null?void 0:y.className,Y,j==null?void 0:j.className,F==null?void 0:F.className),v=Ge({},y==null?void 0:y.style,j==null?void 0:j.style,F==null?void 0:F.style),m=Ge({},y,j,F);return w.length>0&&(m.className=w),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const D=px(Ge({},j,F)),O=y8(F),t=y8(j),l=r(D),S=Ln(l==null?void 0:l.className,y==null?void 0:y.className,Y,j==null?void 0:j.className,F==null?void 0:F.className),i=Ge({},l==null?void 0:l.style,y==null?void 0:y.style,j==null?void 0:j.style,F==null?void 0:F.style),C=Ge({},l,y,t,O);return S.length>0&&(C.className=S),Object.keys(i).length>0&&(C.style=i),{props:C,internalRef:l.ref}}function MT(e,r,y){return typeof e=="function"?e(r,y):e}const JW=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vi(e){var r;const{elementType:y,externalSlotProps:F,ownerState:j,skipResolvingSlotProps:Y=!1}=e,D=hn(e,JW),O=Y?{}:MT(F,j),{props:t,internalRef:l}=t9(Ge({},D,{externalSlotProps:O})),S=pi(l,O==null?void 0:O.ref,(r=e.additionalProps)==null?void 0:r.ref);return Rm(y,Ge({},t,{ref:S}),j)}const QW=Oe.createContext(null),r9=QW;function n9(){return Oe.useContext(r9)}const qW=typeof Symbol=="function"&&Symbol.for,e$=qW?Symbol.for("mui.nested"):"__THEME_NESTED__";function t$(e,r){return typeof r=="function"?r(e):Ge({},e,r)}function r$(e){const{children:r,theme:y}=e,F=n9(),j=Oe.useMemo(()=>{const Y=F===null?y:t$(F,y);return Y!=null&&(Y[e$]=F!==null),Y},[y,F]);return Ce.jsx(r9.Provider,{value:j,children:r})}const n$=["value"],a9=Oe.createContext();function a$(e){let{value:r}=e,y=hn(e,n$);return Ce.jsx(a9.Provider,Ge({value:r??!0},y))}const Fl=()=>{const e=Oe.useContext(a9);return e??!1},i9=Oe.createContext(void 0);function i$({value:e,children:r}){return Ce.jsx(i9.Provider,{value:e,children:r})}function o$(e){const{theme:r,name:y,props:F}=e;if(!r||!r.components||!r.components[y])return F;const j=r.components[y];return j.defaultProps?Gx(j.defaultProps,F):!j.styleOverrides&&!j.variants?Gx(j,F):F}function s$({props:e,name:r}){const y=Oe.useContext(i9);return o$({props:e,name:r,theme:{components:y}})}const x8={};function b8(e,r,y,F=!1){return Oe.useMemo(()=>{const j=e&&r[e]||r;if(typeof y=="function"){const Y=y(j),D=e?Ge({},r,{[e]:Y}):Y;return F?()=>D:D}return e?Ge({},r,{[e]:y}):Ge({},r,y)},[e,r,y,F])}function l$(e){const{children:r,theme:y,themeId:F}=e,j=XA(x8),Y=n9()||x8,D=b8(F,j,y),O=b8(F,Y,y,!0),t=D.direction==="rtl";return Ce.jsx(r$,{theme:O,children:Ce.jsx(Ab.Provider,{value:D,children:Ce.jsx(a$,{value:t,children:Ce.jsx(i$,{value:D==null?void 0:D.components,children:r})})})})}function $x(e){"@babel/helpers - typeof";return $x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$x(e)}function u$(e,r){if($x(e)!="object"||!e)return e;var y=e[Symbol.toPrimitive];if(y!==void 0){var F=y.call(e,r||"default");if($x(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Yx(e){var r=u$(e,"string");return $x(r)=="symbol"?r:r+""}const c$=["className","component","disableGutters","fixed","maxWidth","classes"],f$=By(),d$=po("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[`maxWidth${Gn(String(y.maxWidth))}`],y.fixed&&r.fixed,y.disableGutters&&r.disableGutters]}}),h$=e=>QA({props:e,name:"MuiContainer",defaultTheme:f$}),v$=(e,r)=>{const y=t=>ka(r,t),{classes:F,fixed:j,disableGutters:Y,maxWidth:D}=e,O={root:["root",D&&`maxWidth${Gn(String(D))}`,j&&"fixed",Y&&"disableGutters"]};return qn(O,y,F)};function p$(e={}){const{createStyledComponent:r=d$,useThemeProps:y=h$,componentName:F="MuiContainer"}=e,j=r(({theme:D,ownerState:O})=>Ge({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!O.disableGutters&&{paddingLeft:D.spacing(2),paddingRight:D.spacing(2),[D.breakpoints.up("sm")]:{paddingLeft:D.spacing(3),paddingRight:D.spacing(3)}}),({theme:D,ownerState:O})=>O.fixed&&Object.keys(D.breakpoints.values).reduce((t,l)=>{const S=l,i=D.breakpoints.values[S];return i!==0&&(t[D.breakpoints.up(S)]={maxWidth:`${i}${D.breakpoints.unit}`}),t},{}),({theme:D,ownerState:O})=>Ge({},O.maxWidth==="xs"&&{[D.breakpoints.up("xs")]:{maxWidth:Math.max(D.breakpoints.values.xs,444)}},O.maxWidth&&O.maxWidth!=="xs"&&{[D.breakpoints.up(O.maxWidth)]:{maxWidth:`${D.breakpoints.values[O.maxWidth]}${D.breakpoints.unit}`}}));return Oe.forwardRef(function(O,t){const l=y(O),{className:S,component:i="div",disableGutters:C=!1,fixed:w=!1,maxWidth:v="lg"}=l,m=hn(l,c$),a=Ge({},l,{component:i,disableGutters:C,fixed:w,maxWidth:v}),n=v$(a,F);return Ce.jsx(j,Ge({as:i,ownerState:a,className:Ln(n.root,S),ref:t},m))})}const g$=["component","direction","spacing","divider","children","className","useFlexGap"],m$=By(),y$=po("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,r)=>r.root});function x$(e){return QA({props:e,name:"MuiStack",defaultTheme:m$})}function b$(e,r){const y=Oe.Children.toArray(e).filter(Boolean);return y.reduce((F,j,Y)=>(F.push(j),Y({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],T$=({ownerState:e,theme:r})=>{let y=Ge({display:"flex",flexDirection:"column"},Ju({theme:r},eg({values:e.direction,breakpoints:r.breakpoints.values}),F=>({flexDirection:F})));if(e.spacing){const F=$A(r),j=Object.keys(r.breakpoints.values).reduce((t,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(t[l]=!0),t),{}),Y=eg({values:e.direction,base:j}),D=eg({values:e.spacing,base:j});typeof Y=="object"&&Object.keys(Y).forEach((t,l,S)=>{if(!Y[t]){const C=l>0?Y[S[l-1]]:"column";Y[t]=C}}),y=bu(y,Ju({theme:r},D,(t,l)=>e.useFlexGap?{gap:ug(F,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${w$(l?Y[l]:e.direction)}`]:ug(F,t)}}))}return y=vG(r.breakpoints,y),y};function S$(e={}){const{createStyledComponent:r=y$,useThemeProps:y=x$,componentName:F="MuiStack"}=e,j=()=>qn({root:["root"]},t=>ka(F,t),{}),Y=r(T$);return Oe.forwardRef(function(t,l){const S=y(t),i=Lb(S),{component:C="div",direction:w="column",spacing:v=0,divider:m,children:a,className:n,useFlexGap:s=!1}=i,o=hn(i,g$),h={direction:w,spacing:v,useFlexGap:s},f=j();return Ce.jsx(Y,Ge({as:C,ownerState:h,ref:l,className:Ln(f.root,n)},o,{children:m?b$(a,m):a}))})}function C$(e,r){return Ge({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},r)}var Us={},o9={exports:{}};(function(e){function r(y){return y&&y.__esModule?y:{default:y}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(o9);var _l=o9.exports;const M$=cv(KV),A$=cv(kW);var s9=_l;Object.defineProperty(Us,"__esModule",{value:!0});var Ti=Us.alpha=f9;Us.blend=z$;Us.colorChannel=void 0;var cg=Us.darken=r5;Us.decomposeColor=Mf;var w8=Us.emphasize=d9,E$=Us.getContrastRatio=k$;Us.getLuminance=o2;Us.hexToRgb=l9;Us.hslToRgb=c9;var fg=Us.lighten=n5;Us.private_safeAlpha=D$;Us.private_safeColorChannel=void 0;Us.private_safeDarken=O$;Us.private_safeEmphasize=_$;Us.private_safeLighten=F$;Us.recomposeColor=Ny;Us.rgbToHex=R$;var T8=s9(M$),P$=s9(A$);function t5(e,r=0,y=1){return(0,P$.default)(e,r,y)}function l9(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let y=e.match(r);return y&&y[0].length===1&&(y=y.map(F=>F+F)),y?`rgb${y.length===4?"a":""}(${y.map((F,j)=>j<3?parseInt(F,16):Math.round(parseInt(F,16)/255*1e3)/1e3).join(", ")})`:""}function L$(e){const r=e.toString(16);return r.length===1?`0${r}`:r}function Mf(e){if(e.type)return e;if(e.charAt(0)==="#")return Mf(l9(e));const r=e.indexOf("("),y=e.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(y)===-1)throw new Error((0,T8.default)(9,e));let F=e.substring(r+1,e.length-1),j;if(y==="color"){if(F=F.split(" "),j=F.shift(),F.length===4&&F[3].charAt(0)==="/"&&(F[3]=F[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(j)===-1)throw new Error((0,T8.default)(10,j))}else F=F.split(",");return F=F.map(Y=>parseFloat(Y)),{type:y,values:F,colorSpace:j}}const u9=e=>{const r=Mf(e);return r.values.slice(0,3).map((y,F)=>r.type.indexOf("hsl")!==-1&&F!==0?`${y}%`:y).join(" ")};Us.colorChannel=u9;const I$=(e,r)=>{try{return u9(e)}catch{return e}};Us.private_safeColorChannel=I$;function Ny(e){const{type:r,colorSpace:y}=e;let{values:F}=e;return r.indexOf("rgb")!==-1?F=F.map((j,Y)=>Y<3?parseInt(j,10):j):r.indexOf("hsl")!==-1&&(F[1]=`${F[1]}%`,F[2]=`${F[2]}%`),r.indexOf("color")!==-1?F=`${y} ${F.join(" ")}`:F=`${F.join(", ")}`,`${r}(${F})`}function R$(e){if(e.indexOf("#")===0)return e;const{values:r}=Mf(e);return`#${r.map((y,F)=>L$(F===3?Math.round(255*y):y)).join("")}`}function c9(e){e=Mf(e);const{values:r}=e,y=r[0],F=r[1]/100,j=r[2]/100,Y=F*Math.min(j,1-j),D=(l,S=(l+y/30)%12)=>j-Y*Math.max(Math.min(S-3,9-S,1),-1);let O="rgb";const t=[Math.round(D(0)*255),Math.round(D(8)*255),Math.round(D(4)*255)];return e.type==="hsla"&&(O+="a",t.push(r[3])),Ny({type:O,values:t})}function o2(e){e=Mf(e);let r=e.type==="hsl"||e.type==="hsla"?Mf(c9(e)).values:e.values;return r=r.map(y=>(e.type!=="color"&&(y/=255),y<=.03928?y/12.92:((y+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function k$(e,r){const y=o2(e),F=o2(r);return(Math.max(y,F)+.05)/(Math.min(y,F)+.05)}function f9(e,r){return e=Mf(e),r=t5(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,Ny(e)}function D$(e,r,y){try{return f9(e,r)}catch{return e}}function r5(e,r){if(e=Mf(e),r=t5(r),e.type.indexOf("hsl")!==-1)e.values[2]*=1-r;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let y=0;y<3;y+=1)e.values[y]*=1-r;return Ny(e)}function O$(e,r,y){try{return r5(e,r)}catch{return e}}function n5(e,r){if(e=Mf(e),r=t5(r),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*r;else if(e.type.indexOf("rgb")!==-1)for(let y=0;y<3;y+=1)e.values[y]+=(255-e.values[y])*r;else if(e.type.indexOf("color")!==-1)for(let y=0;y<3;y+=1)e.values[y]+=(1-e.values[y])*r;return Ny(e)}function F$(e,r,y){try{return n5(e,r)}catch{return e}}function d9(e,r=.15){return o2(e)>.5?r5(e,r):n5(e,r)}function _$(e,r,y){try{return d9(e,r)}catch{return e}}function z$(e,r,y,F=1){const j=(t,l)=>Math.round((t**(1/F)*(1-y)+l**(1/F)*y)**F),Y=Mf(e),D=Mf(r),O=[j(Y.values[0],D.values[0]),j(Y.values[1],D.values[1]),j(Y.values[2],D.values[2])];return Ny({type:"rgb",values:O})}const B$={black:"#000",white:"#fff"},Xx=B$,N$={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},U$=N$,H$={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},tm=H$,V$={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"},rm=V$,j$={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"},M1=j$,G$={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"},D0=G$,W$={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},nm=W$,$$={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"},am=$$,Y$=["mode","contrastThreshold","tonalOffset"],S8={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xx.white,default:Xx.white},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}},vC={text:{primary:Xx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xx.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 C8(e,r,y,F){const j=F.light||F,Y=F.dark||F*1.5;e[r]||(e.hasOwnProperty(y)?e[r]=e[y]:r==="light"?e.light=fg(e.main,j):r==="dark"&&(e.dark=cg(e.main,Y)))}function X$(e="light"){return e==="dark"?{main:D0[200],light:D0[50],dark:D0[400]}:{main:D0[700],light:D0[400],dark:D0[800]}}function Z$(e="light"){return e==="dark"?{main:tm[200],light:tm[50],dark:tm[400]}:{main:tm[500],light:tm[300],dark:tm[700]}}function K$(e="light"){return e==="dark"?{main:rm[500],light:rm[300],dark:rm[700]}:{main:rm[700],light:rm[400],dark:rm[800]}}function J$(e="light"){return e==="dark"?{main:nm[400],light:nm[300],dark:nm[700]}:{main:nm[700],light:nm[500],dark:nm[900]}}function Q$(e="light"){return e==="dark"?{main:am[400],light:am[300],dark:am[700]}:{main:am[800],light:am[500],dark:am[900]}}function q$(e="light"){return e==="dark"?{main:M1[400],light:M1[300],dark:M1[700]}:{main:"#ed6c02",light:M1[500],dark:M1[900]}}function eY(e){const{mode:r="light",contrastThreshold:y=3,tonalOffset:F=.2}=e,j=hn(e,Y$),Y=e.primary||X$(r),D=e.secondary||Z$(r),O=e.error||K$(r),t=e.info||J$(r),l=e.success||Q$(r),S=e.warning||q$(r);function i(m){return E$(m,vC.text.primary)>=y?vC.text.primary:S8.text.primary}const C=({color:m,name:a,mainShade:n=500,lightShade:s=300,darkShade:o=700})=>{if(m=Ge({},m),!m.main&&m[n]&&(m.main=m[n]),!m.hasOwnProperty("main"))throw new Error(iv(11,a?` (${a})`:"",n));if(typeof m.main!="string")throw new Error(iv(12,a?` (${a})`:"",JSON.stringify(m.main)));return C8(m,"light",s,F),C8(m,"dark",o,F),m.contrastText||(m.contrastText=i(m.main)),m},w={dark:vC,light:S8};return bu(Ge({common:Ge({},Xx),mode:r,primary:C({color:Y,name:"primary"}),secondary:C({color:D,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:O,name:"error"}),warning:C({color:S,name:"warning"}),info:C({color:t,name:"info"}),success:C({color:l,name:"success"}),grey:U$,contrastThreshold:y,getContrastText:i,augmentColor:C,tonalOffset:F},w[r]),j)}const tY=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rY(e){return Math.round(e*1e5)/1e5}const M8={textTransform:"uppercase"},A8='"Roboto", "Helvetica", "Arial", sans-serif';function nY(e,r){const y=typeof r=="function"?r(e):r,{fontFamily:F=A8,fontSize:j=14,fontWeightLight:Y=300,fontWeightRegular:D=400,fontWeightMedium:O=500,fontWeightBold:t=700,htmlFontSize:l=16,allVariants:S,pxToRem:i}=y,C=hn(y,tY),w=j/14,v=i||(n=>`${n/l*w}rem`),m=(n,s,o,h,f)=>Ge({fontFamily:F,fontWeight:n,fontSize:v(s),lineHeight:o},F===A8?{letterSpacing:`${rY(h/s)}em`}:{},f,S),a={h1:m(Y,96,1.167,-1.5),h2:m(Y,60,1.2,-.5),h3:m(D,48,1.167,0),h4:m(D,34,1.235,.25),h5:m(D,24,1.334,0),h6:m(O,20,1.6,.15),subtitle1:m(D,16,1.75,.15),subtitle2:m(O,14,1.57,.1),body1:m(D,16,1.5,.15),body2:m(D,14,1.43,.15),button:m(O,14,1.75,.4,M8),caption:m(D,12,1.66,.4),overline:m(D,12,2.66,1,M8),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bu(Ge({htmlFontSize:l,pxToRem:v,fontFamily:F,fontSize:j,fontWeightLight:Y,fontWeightRegular:D,fontWeightMedium:O,fontWeightBold:t},a),C,{clone:!1})}const aY=.2,iY=.14,oY=.12;function as(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${aY})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iY})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oY})`].join(",")}const sY=["none",as(0,2,1,-1,0,1,1,0,0,1,3,0),as(0,3,1,-2,0,2,2,0,0,1,5,0),as(0,3,3,-2,0,3,4,0,0,1,8,0),as(0,2,4,-1,0,4,5,0,0,1,10,0),as(0,3,5,-1,0,5,8,0,0,1,14,0),as(0,3,5,-1,0,6,10,0,0,1,18,0),as(0,4,5,-2,0,7,10,1,0,2,16,1),as(0,5,5,-3,0,8,10,1,0,3,14,2),as(0,5,6,-3,0,9,12,1,0,3,16,2),as(0,6,6,-3,0,10,14,1,0,4,18,3),as(0,6,7,-4,0,11,15,1,0,4,20,3),as(0,7,8,-4,0,12,17,2,0,5,22,4),as(0,7,8,-4,0,13,19,2,0,5,24,4),as(0,7,9,-4,0,14,21,2,0,5,26,4),as(0,8,9,-5,0,15,22,2,0,6,28,5),as(0,8,10,-5,0,16,24,2,0,6,30,5),as(0,8,11,-5,0,17,26,2,0,6,32,5),as(0,9,11,-5,0,18,28,2,0,7,34,6),as(0,9,12,-6,0,19,29,2,0,7,36,6),as(0,10,13,-6,0,20,31,3,0,8,38,7),as(0,10,13,-6,0,21,33,3,0,8,40,7),as(0,10,14,-6,0,22,35,3,0,8,42,7),as(0,11,14,-7,0,23,36,3,0,9,44,8),as(0,11,15,-7,0,24,38,3,0,9,46,8)],lY=["duration","easing","delay"],uY={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)"},h9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function E8(e){return`${Math.round(e)}ms`}function cY(e){if(!e)return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function fY(e){const r=Ge({},uY,e.easing),y=Ge({},h9,e.duration);return Ge({getAutoHeightDuration:cY,create:(j=["all"],Y={})=>{const{duration:D=y.standard,easing:O=r.easeInOut,delay:t=0}=Y;return hn(Y,lY),(Array.isArray(j)?j:[j]).map(l=>`${l} ${typeof D=="string"?D:E8(D)} ${O} ${typeof t=="string"?t:E8(t)}`).join(",")}},e,{easing:r,duration:y})}const dY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hY=dY,vY=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function a5(e={},...r){const{mixins:y={},palette:F={},transitions:j={},typography:Y={}}=e,D=hn(e,vY);if(e.vars)throw new Error(iv(18));const O=eY(F),t=By(e);let l=bu(t,{mixins:C$(t.breakpoints,y),palette:O,shadows:sY.slice(),typography:nY(O,Y),transitions:fY(j),zIndex:Ge({},hY)});return l=bu(l,D),l=r.reduce((S,i)=>bu(S,i),l),l.unstable_sxConfig=Ge({},Pb,D==null?void 0:D.unstable_sxConfig),l.unstable_sx=function(i){return zy({sx:i,theme:this})},l}function pY(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function gY(e){return parseFloat(e)}const mY=a5(),AT=mY;function ru(){const e=fT(AT);return e[lg]||e}function _o({props:e,name:r}){return QA({props:e,name:r,defaultTheme:AT,themeId:lg})}var kb={},pC={exports:{}},P8;function yY(){return P8||(P8=1,function(e){function r(y,F){if(y==null)return{};var j={};for(var Y in y)if({}.hasOwnProperty.call(y,Y)){if(F.includes(Y))continue;j[Y]=y[Y]}return j}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(pC)),pC.exports}const v9=cv(lG),xY=cv(uG),bY=cv(gG),wY=cv(bW),TY=cv(aW),SY=cv(cW);var Uy=_l;Object.defineProperty(kb,"__esModule",{value:!0});var CY=kb.default=zY;kb.shouldForwardProp=M3;kb.systemDefaultTheme=void 0;var af=Uy(L7()),X4=Uy(yY()),L8=RY(v9),MY=xY;Uy(bY);Uy(wY);var AY=Uy(TY),EY=Uy(SY);const PY=["ownerState"],LY=["variants"],IY=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p9(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,y=new WeakMap;return(p9=function(F){return F?y:r})(e)}function RY(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var y=p9(r);if(y&&y.has(e))return y.get(e);var F={__proto__:null},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in e)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(e,Y)){var D=j?Object.getOwnPropertyDescriptor(e,Y):null;D&&(D.get||D.set)?Object.defineProperty(F,Y,D):F[Y]=e[Y]}return F.default=e,y&&y.set(e,F),F}function kY(e){return Object.keys(e).length===0}function DY(e){return typeof e=="string"&&e.charCodeAt(0)>96}function M3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const OY=kb.systemDefaultTheme=(0,AY.default)(),FY=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gw({defaultTheme:e,theme:r,themeId:y}){return kY(r)?e:r[y]||r}function _Y(e){return e?(r,y)=>y[e]:null}function A3(e,r){let{ownerState:y}=r,F=(0,X4.default)(r,PY);const j=typeof e=="function"?e((0,af.default)({ownerState:y},F)):e;if(Array.isArray(j))return j.flatMap(Y=>A3(Y,(0,af.default)({ownerState:y},F)));if(j&&typeof j=="object"&&Array.isArray(j.variants)){const{variants:Y=[]}=j;let O=(0,X4.default)(j,LY);return Y.forEach(t=>{let l=!0;typeof t.props=="function"?l=t.props((0,af.default)({ownerState:y},F,y)):Object.keys(t.props).forEach(S=>{(y==null?void 0:y[S])!==t.props[S]&&F[S]!==t.props[S]&&(l=!1)}),l&&(Array.isArray(O)||(O=[O]),O.push(typeof t.style=="function"?t.style((0,af.default)({ownerState:y},F,y)):t.style))}),O}return j}function zY(e={}){const{themeId:r,defaultTheme:y=OY,rootShouldForwardProp:F=M3,slotShouldForwardProp:j=M3}=e,Y=D=>(0,EY.default)((0,af.default)({},D,{theme:Gw((0,af.default)({},D,{defaultTheme:y,themeId:r}))}));return Y.__mui_systemSx=!0,(D,O={})=>{(0,L8.internal_processStyles)(D,f=>f.filter(u=>!(u!=null&&u.__mui_systemSx)));const{name:t,slot:l,skipVariantsResolver:S,skipSx:i,overridesResolver:C=_Y(FY(l))}=O,w=(0,X4.default)(O,IY),v=S!==void 0?S:l&&l!=="Root"&&l!=="root"||!1,m=i||!1;let a,n=M3;l==="Root"||l==="root"?n=F:l?n=j:DY(D)&&(n=void 0);const s=(0,L8.default)(D,(0,af.default)({shouldForwardProp:n,label:a},w)),o=f=>typeof f=="function"&&f.__emotion_real!==f||(0,MY.isPlainObject)(f)?u=>A3(f,(0,af.default)({},u,{theme:Gw({theme:u.theme,defaultTheme:y,themeId:r})})):f,h=(f,...u)=>{let b=o(f);const p=u?u.map(o):[];t&&C&&p.push(c=>{const x=Gw((0,af.default)({},c,{defaultTheme:y,themeId:r}));if(!x.components||!x.components[t]||!x.components[t].styleOverrides)return null;const A=x.components[t].styleOverrides,M={};return Object.entries(A).forEach(([R,T])=>{M[R]=A3(T,(0,af.default)({},c,{theme:x}))}),C(c,M)}),t&&!v&&p.push(c=>{var x;const A=Gw((0,af.default)({},c,{defaultTheme:y,themeId:r})),M=A==null||(x=A.components)==null||(x=x[t])==null?void 0:x.variants;return A3({variants:M},(0,af.default)({},c,{theme:A}))}),m||p.push(Y);const E=p.length-u.length;if(Array.isArray(f)&&E>0){const c=new Array(E).fill("");b=[...f,...c],b.raw=[...f.raw,...c]}const g=s(b,...p);return D.muiName&&(g.muiName=D.muiName),g};return s.withConfig&&(h.withConfig=s.withConfig),h}}function ET(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qu=e=>ET(e)&&e!=="classes",ln=CY({themeId:lg,defaultTheme:AT,rootShouldForwardProp:qu}),BY=["theme"];function NY(e){let{theme:r}=e,y=hn(e,BY);const F=r[lg];return Ce.jsx(l$,Ge({},y,{themeId:F?lg:void 0,theme:F||r}))}const I8=e=>{let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,(r/100).toFixed(2)};function Ka(e){return s$(e)}function UY(e){return ka("MuiSvgIcon",e)}Ma("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HY=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],VY=e=>{const{color:r,fontSize:y,classes:F}=e,j={root:["root",r!=="inherit"&&`color${Gn(r)}`,`fontSize${Gn(y)}`]};return qn(j,UY,F)},jY=ln("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.color!=="inherit"&&r[`color${Gn(y.color)}`],r[`fontSize${Gn(y.fontSize)}`]]}})(({theme:e,ownerState:r})=>{var y,F,j,Y,D,O,t,l,S,i,C,w,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(y=e.transitions)==null||(F=y.create)==null?void 0:F.call(y,"fill",{duration:(j=e.transitions)==null||(j=j.duration)==null?void 0:j.shorter}),fontSize:{inherit:"inherit",small:((Y=e.typography)==null||(D=Y.pxToRem)==null?void 0:D.call(Y,20))||"1.25rem",medium:((O=e.typography)==null||(t=O.pxToRem)==null?void 0:t.call(O,24))||"1.5rem",large:((l=e.typography)==null||(S=l.pxToRem)==null?void 0:S.call(l,35))||"2.1875rem"}[r.fontSize],color:(i=(C=(e.vars||e).palette)==null||(C=C[r.color])==null?void 0:C.main)!=null?i:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[r.color]}}),s2=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiSvgIcon"}),{children:j,className:Y,color:D="inherit",component:O="svg",fontSize:t="medium",htmlColor:l,inheritViewBox:S=!1,titleAccess:i,viewBox:C="0 0 24 24"}=F,w=hn(F,HY),v=Oe.isValidElement(j)&&j.type==="svg",m=Ge({},F,{color:D,component:O,fontSize:t,instanceFontSize:r.fontSize,inheritViewBox:S,viewBox:C,hasSvgAsChild:v}),a={};S||(a.viewBox=C);const n=VY(m);return Ce.jsxs(jY,Ge({as:O,className:Ln(n.root,Y),focusable:"false",color:l,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:y},a,w,v&&j.props,{ownerState:m,children:[v?j.props.children:j,i?Ce.jsx("title",{children:i}):null]}))});s2.muiName="SvgIcon";function ci(e,r){function y(F,j){return Ce.jsx(s2,Ge({"data-testid":`${r}Icon`,ref:j},F,{children:e}))}return y.muiName=s2.muiName,Oe.memo(Oe.forwardRef(y))}const GY={configure:e=>{ZA.configure(e)}},WY=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Gn,createChainedFunction:$4,createSvgIcon:ci,debounce:bg,deprecatedPropType:zW,isMuiElement:vx,ownerDocument:oo,ownerWindow:wd,requirePropFactory:BW,setRef:Wx,unstable_ClassNameGenerator:GY,unstable_useEnhancedEffect:Gi,unstable_useId:Ui,unsupportedProp:UW,useControlled:Dl,useEventCallback:pa,useForkRef:pi,useIsFocusVisible:Rb},Symbol.toStringTag,{value:"Module"}));function Z4(e,r){return Z4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,F){return y.__proto__=F,y},Z4(e,r)}function i5(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Z4(e,r)}function $Y(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function YY(e,r){e.classList?e.classList.add(r):$Y(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function R8(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function XY(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=R8(e.className,r):e.setAttribute("class",R8(e.className&&e.className.baseVal||"",r))}const k8={disabled:!1},l2=Vo.createContext(null);var g9=function(r){return r.scrollTop},J1="unmounted",O0="exited",F0="entering",fm="entered",K4="exiting",dv=function(e){i5(r,e);function r(F,j){var Y;Y=e.call(this,F,j)||this;var D=j,O=D&&!D.isMounting?F.enter:F.appear,t;return Y.appearStatus=null,F.in?O?(t=O0,Y.appearStatus=F0):t=fm:F.unmountOnExit||F.mountOnEnter?t=J1:t=O0,Y.state={status:t},Y.nextCallback=null,Y}r.getDerivedStateFromProps=function(j,Y){var D=j.in;return D&&Y.status===J1?{status:O0}:null};var y=r.prototype;return y.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},y.componentDidUpdate=function(j){var Y=null;if(j!==this.props){var D=this.state.status;this.props.in?D!==F0&&D!==fm&&(Y=F0):(D===F0||D===fm)&&(Y=K4)}this.updateStatus(!1,Y)},y.componentWillUnmount=function(){this.cancelNextCallback()},y.getTimeouts=function(){var j=this.props.timeout,Y,D,O;return Y=D=O=j,j!=null&&typeof j!="number"&&(Y=j.exit,D=j.enter,O=j.appear!==void 0?j.appear:D),{exit:Y,enter:D,appear:O}},y.updateStatus=function(j,Y){if(j===void 0&&(j=!1),Y!==null)if(this.cancelNextCallback(),Y===F0){if(this.props.unmountOnExit||this.props.mountOnEnter){var D=this.props.nodeRef?this.props.nodeRef.current:K1.findDOMNode(this);D&&g9(D)}this.performEnter(j)}else this.performExit();else this.props.unmountOnExit&&this.state.status===O0&&this.setState({status:J1})},y.performEnter=function(j){var Y=this,D=this.props.enter,O=this.context?this.context.isMounting:j,t=this.props.nodeRef?[O]:[K1.findDOMNode(this),O],l=t[0],S=t[1],i=this.getTimeouts(),C=O?i.appear:i.enter;if(!j&&!D||k8.disabled){this.safeSetState({status:fm},function(){Y.props.onEntered(l)});return}this.props.onEnter(l,S),this.safeSetState({status:F0},function(){Y.props.onEntering(l,S),Y.onTransitionEnd(C,function(){Y.safeSetState({status:fm},function(){Y.props.onEntered(l,S)})})})},y.performExit=function(){var j=this,Y=this.props.exit,D=this.getTimeouts(),O=this.props.nodeRef?void 0:K1.findDOMNode(this);if(!Y||k8.disabled){this.safeSetState({status:O0},function(){j.props.onExited(O)});return}this.props.onExit(O),this.safeSetState({status:K4},function(){j.props.onExiting(O),j.onTransitionEnd(D.exit,function(){j.safeSetState({status:O0},function(){j.props.onExited(O)})})})},y.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},y.safeSetState=function(j,Y){Y=this.setNextCallback(Y),this.setState(j,Y)},y.setNextCallback=function(j){var Y=this,D=!0;return this.nextCallback=function(O){D&&(D=!1,Y.nextCallback=null,j(O))},this.nextCallback.cancel=function(){D=!1},this.nextCallback},y.onTransitionEnd=function(j,Y){this.setNextCallback(Y);var D=this.props.nodeRef?this.props.nodeRef.current:K1.findDOMNode(this),O=j==null&&!this.props.addEndListener;if(!D||O){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var t=this.props.nodeRef?[this.nextCallback]:[D,this.nextCallback],l=t[0],S=t[1];this.props.addEndListener(l,S)}j!=null&&setTimeout(this.nextCallback,j)},y.render=function(){var j=this.state.status;if(j===J1)return null;var Y=this.props,D=Y.children;Y.in,Y.mountOnEnter,Y.unmountOnExit,Y.appear,Y.enter,Y.exit,Y.timeout,Y.addEndListener,Y.onEnter,Y.onEntering,Y.onEntered,Y.onExit,Y.onExiting,Y.onExited,Y.nodeRef;var O=hn(Y,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Vo.createElement(l2.Provider,{value:null},typeof D=="function"?D(j,O):Vo.cloneElement(Vo.Children.only(D),O))},r}(Vo.Component);dv.contextType=l2;dv.propTypes={};function im(){}dv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:im,onEntering:im,onEntered:im,onExit:im,onExiting:im,onExited:im};dv.UNMOUNTED=J1;dv.EXITED=O0;dv.ENTERING=F0;dv.ENTERED=fm;dv.EXITING=K4;const PT=dv;var ZY=function(r,y){return r&&y&&y.split(" ").forEach(function(F){return YY(r,F)})},gC=function(r,y){return r&&y&&y.split(" ").forEach(function(F){return XY(r,F)})},o5=function(e){i5(r,e);function r(){for(var F,j=arguments.length,Y=new Array(j),D=0;De.scrollTop;function Ty(e,r){var y,F;const{timeout:j,easing:Y,style:D={}}=e;return{duration:(y=D.transitionDuration)!=null?y:typeof j=="number"?j:j[r.mode]||0,easing:(F=D.transitionTimingFunction)!=null?F:typeof Y=="object"?Y[r.mode]:Y,delay:D.transitionDelay}}function nX(e){return ka("MuiCollapse",e)}Ma("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const aX=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],iX=e=>{const{orientation:r,classes:y}=e,F={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return qn(F,nX,y)},oX=ln("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.orientation],y.state==="entered"&&r.entered,y.state==="exited"&&!y.in&&y.collapsedSize==="0px"&&r.hidden]}})(({theme:e,ownerState:r})=>Ge({height:0,overflow:"hidden",transition:e.transitions.create("height")},r.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},r.state==="entered"&&Ge({height:"auto",overflow:"visible"},r.orientation==="horizontal"&&{width:"auto"}),r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&{visibility:"hidden"})),sX=ln("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,r)=>r.wrapper})(({ownerState:e})=>Ge({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),lX=ln("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,r)=>r.wrapperInner})(({ownerState:e})=>Ge({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y9=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiCollapse"}),{addEndListener:j,children:Y,className:D,collapsedSize:O="0px",component:t,easing:l,in:S,onEnter:i,onEntered:C,onEntering:w,onExit:v,onExited:m,onExiting:a,orientation:n="vertical",style:s,timeout:o=h9.standard,TransitionComponent:h=PT}=F,f=hn(F,aX),u=Ge({},F,{orientation:n,collapsedSize:O}),b=iX(u),p=ru(),E=Sc(),g=Oe.useRef(null),c=Oe.useRef(),x=typeof O=="number"?`${O}px`:O,A=n==="horizontal",M=A?"width":"height",R=Oe.useRef(null),T=pi(y,R),L=H=>W=>{if(H){const V=R.current;W===void 0?H(V):H(V,W)}},P=()=>g.current?g.current[A?"clientWidth":"clientHeight"]:0,d=L((H,W)=>{g.current&&A&&(g.current.style.position="absolute"),H.style[M]=x,i&&i(H,W)}),k=L((H,W)=>{const V=P();g.current&&A&&(g.current.style.position="");const{duration:$,easing:Z}=Ty({style:s,timeout:o,easing:l},{mode:"enter"});if(o==="auto"){const q=p.transitions.getAutoHeightDuration(V);H.style.transitionDuration=`${q}ms`,c.current=q}else H.style.transitionDuration=typeof $=="string"?$:`${$}ms`;H.style[M]=`${V}px`,H.style.transitionTimingFunction=Z,w&&w(H,W)}),I=L((H,W)=>{H.style[M]="auto",C&&C(H,W)}),N=L(H=>{H.style[M]=`${P()}px`,v&&v(H)}),B=L(m),G=L(H=>{const W=P(),{duration:V,easing:$}=Ty({style:s,timeout:o,easing:l},{mode:"exit"});if(o==="auto"){const Z=p.transitions.getAutoHeightDuration(W);H.style.transitionDuration=`${Z}ms`,c.current=Z}else H.style.transitionDuration=typeof V=="string"?V:`${V}ms`;H.style[M]=x,H.style.transitionTimingFunction=$,a&&a(H)}),U=H=>{o==="auto"&&E.start(c.current||0,H),j&&j(R.current,H)};return Ce.jsx(h,Ge({in:S,onEnter:d,onEntered:I,onEntering:k,onExit:N,onExited:B,onExiting:G,addEndListener:U,nodeRef:R,timeout:o==="auto"?null:o},f,{children:(H,W)=>Ce.jsx(oX,Ge({as:t,className:Ln(b.root,D,{entered:b.entered,exited:!S&&x==="0px"&&b.hidden}[H]),style:Ge({[A?"minWidth":"minHeight"]:x},s),ref:T},W,{ownerState:Ge({},u,{state:H}),children:Ce.jsx(sX,{ownerState:Ge({},u,{state:H}),className:b.wrapper,ref:g,children:Ce.jsx(lX,{ownerState:Ge({},u,{state:H}),className:b.wrapperInner,children:Y})})}))}))});y9.muiSupportAuto=!0;const uX=y9;function cX(e){return ka("MuiPaper",e)}Ma("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const fX=["className","component","elevation","square","variant"],dX=e=>{const{square:r,elevation:y,variant:F,classes:j}=e,Y={root:["root",F,!r&&"rounded",F==="elevation"&&`elevation${y}`]};return qn(Y,cX,j)},hX=ln("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],!y.square&&r.rounded,y.variant==="elevation"&&r[`elevation${y.elevation}`]]}})(({theme:e,ownerState:r})=>{var y;return Ge({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!r.square&&{borderRadius:e.shape.borderRadius},r.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},r.variant==="elevation"&&Ge({boxShadow:(e.vars||e).shadows[r.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ti("#fff",I8(r.elevation))}, ${Ti("#fff",I8(r.elevation))})`},e.vars&&{backgroundImage:(y=e.vars.overlays)==null?void 0:y[r.elevation]}))}),vX=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiPaper"}),{className:j,component:Y="div",elevation:D=1,square:O=!1,variant:t="elevation"}=F,l=hn(F,fX),S=Ge({},F,{component:Y,elevation:D,square:O,variant:t}),i=dX(S);return Ce.jsx(hX,Ge({as:Y,ownerState:S,className:Ln(i.root,j),ref:y},l))}),Ri=vX,pX=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],gX=["component","slots","slotProps"],mX=["component"];function D8(e,r){const{className:y,elementType:F,ownerState:j,externalForwardedProps:Y,getSlotOwnerState:D,internalForwardedProps:O}=r,t=hn(r,pX),{component:l,slots:S={[e]:void 0},slotProps:i={[e]:void 0}}=Y,C=hn(Y,gX),w=S[e]||F,v=MT(i[e],j),m=t9(Ge({className:y},t,{externalForwardedProps:e==="root"?C:void 0,externalSlotProps:v})),{props:{component:a},internalRef:n}=m,s=hn(m.props,mX),o=pi(n,v==null?void 0:v.ref,r.ref),h=D?D(s):{},f=Ge({},j,h),u=e==="root"?a||l:a,b=Rm(w,Ge({},e==="root"&&!l&&!S[e]&&O,e!=="root"&&!S[e]&&O,s,u&&{as:u},{ref:o}),f);return Object.keys(h).forEach(p=>{delete b[p]}),[w,b]}function yX(e){const{className:r,classes:y,pulsate:F=!1,rippleX:j,rippleY:Y,rippleSize:D,in:O,onExited:t,timeout:l}=e,[S,i]=Oe.useState(!1),C=Ln(r,y.ripple,y.rippleVisible,F&&y.ripplePulsate),w={width:D,height:D,top:-(D/2)+Y,left:-(D/2)+j},v=Ln(y.child,S&&y.childLeaving,F&&y.childPulsate);return!O&&!S&&i(!0),Oe.useEffect(()=>{if(!O&&t!=null){const m=setTimeout(t,l);return()=>{clearTimeout(m)}}},[t,O,l]),Ce.jsx("span",{className:C,style:w,children:Ce.jsx("span",{className:v})})}const ff=Ma("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xX=["center","classes","className"];let LT=e=>e,O8,F8,_8,z8;const J4=550,bX=80,wX=Sd(O8||(O8=LT` + */var NA=Symbol.for("react.element"),UA=Symbol.for("react.portal"),iT=Symbol.for("react.fragment"),oT=Symbol.for("react.strict_mode"),sT=Symbol.for("react.profiler"),lT=Symbol.for("react.provider"),uT=Symbol.for("react.context"),ZG=Symbol.for("react.server_context"),cT=Symbol.for("react.forward_ref"),fT=Symbol.for("react.suspense"),dT=Symbol.for("react.suspense_list"),hT=Symbol.for("react.memo"),vT=Symbol.for("react.lazy"),KG=Symbol.for("react.offscreen"),_7;_7=Symbol.for("react.module.reference");function kf(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case NA:switch(e=e.type,e){case iT:case sT:case oT:case fT:case dT:return e;default:switch(e=e&&e.$$typeof,e){case ZG:case uT:case cT:case vT:case hT:case lT:return e;default:return r}}case UA:return r}}}Po.ContextConsumer=uT;Po.ContextProvider=lT;Po.Element=NA;Po.ForwardRef=cT;Po.Fragment=iT;Po.Lazy=vT;Po.Memo=hT;Po.Portal=UA;Po.Profiler=sT;Po.StrictMode=oT;Po.Suspense=fT;Po.SuspenseList=dT;Po.isAsyncMode=function(){return!1};Po.isConcurrentMode=function(){return!1};Po.isContextConsumer=function(e){return kf(e)===uT};Po.isContextProvider=function(e){return kf(e)===lT};Po.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===NA};Po.isForwardRef=function(e){return kf(e)===cT};Po.isFragment=function(e){return kf(e)===iT};Po.isLazy=function(e){return kf(e)===vT};Po.isMemo=function(e){return kf(e)===hT};Po.isPortal=function(e){return kf(e)===UA};Po.isProfiler=function(e){return kf(e)===sT};Po.isStrictMode=function(e){return kf(e)===oT};Po.isSuspense=function(e){return kf(e)===fT};Po.isSuspenseList=function(e){return kf(e)===dT};Po.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===iT||e===sT||e===oT||e===fT||e===dT||e===KG||typeof e=="object"&&e!==null&&(e.$$typeof===vT||e.$$typeof===hT||e.$$typeof===lT||e.$$typeof===uT||e.$$typeof===cT||e.$$typeof===_7||e.getModuleId!==void 0)};Po.typeOf=kf;F7.exports=Po;var i8=F7.exports;const JG=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function z7(e){const r=`${e}`.match(JG);return r&&r[1]||""}function B7(e,r=""){return e.displayName||e.name||z7(e)||r}function o8(e,r,x){const F=B7(r);return e.displayName||(F!==""?`${x}(${F})`:x)}function QG(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return B7(e,"Component");if(typeof e=="object")switch(e.$$typeof){case i8.ForwardRef:return o8(e,e.render,"ForwardRef");case i8.Memo:return o8(e,e.type,"memo");default:return}}}const qG=Object.freeze(Object.defineProperty({__proto__:null,default:QG,getFunctionName:z7},Symbol.toStringTag,{value:"Module"})),eW=["ownerState"],tW=["variants"],rW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nW(e){return Object.keys(e).length===0}function aW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function g3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const iW=Ny(),oW=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _w({defaultTheme:e,theme:r,themeId:x}){return nW(r)?e:r[x]||r}function sW(e){return e?(r,x)=>x[e]:null}function m3(e,r){let{ownerState:x}=r,F=hn(r,eW);const j=typeof e=="function"?e(Ge({ownerState:x},F)):e;if(Array.isArray(j))return j.flatMap(Y=>m3(Y,Ge({ownerState:x},F)));if(j&&typeof j=="object"&&Array.isArray(j.variants)){const{variants:Y=[]}=j;let O=hn(j,tW);return Y.forEach(t=>{let l=!0;typeof t.props=="function"?l=t.props(Ge({ownerState:x},F,x)):Object.keys(t.props).forEach(S=>{(x==null?void 0:x[S])!==t.props[S]&&F[S]!==t.props[S]&&(l=!1)}),l&&(Array.isArray(O)||(O=[O]),O.push(typeof t.style=="function"?t.style(Ge({ownerState:x},F,x)):t.style))}),O}return j}function lW(e={}){const{themeId:r,defaultTheme:x=iW,rootShouldForwardProp:F=g3,slotShouldForwardProp:j=g3}=e,Y=D=>By(Ge({},D,{theme:_w(Ge({},D,{defaultTheme:x,themeId:r}))}));return Y.__mui_systemSx=!0,(D,O={})=>{A7(D,f=>f.filter(u=>!(u!=null&&u.__mui_systemSx)));const{name:t,slot:l,skipVariantsResolver:S,skipSx:i,overridesResolver:C=sW(oW(l))}=O,w=hn(O,rW),v=S!==void 0?S:l&&l!=="Root"&&l!=="root"||!1,m=i||!1;let a,n=g3;l==="Root"||l==="root"?n=F:l?n=j:aW(D)&&(n=void 0);const s=RA(D,Ge({shouldForwardProp:n,label:a},w)),o=f=>typeof f=="function"&&f.__emotion_real!==f||Yh(f)?u=>m3(f,Ge({},u,{theme:_w({theme:u.theme,defaultTheme:x,themeId:r})})):f,h=(f,...u)=>{let b=o(f);const p=u?u.map(o):[];t&&C&&p.push(c=>{const y=_w(Ge({},c,{defaultTheme:x,themeId:r}));if(!y.components||!y.components[t]||!y.components[t].styleOverrides)return null;const A=y.components[t].styleOverrides,M={};return Object.entries(A).forEach(([R,T])=>{M[R]=m3(T,Ge({},c,{theme:y}))}),C(c,M)}),t&&!v&&p.push(c=>{var y;const A=_w(Ge({},c,{defaultTheme:x,themeId:r})),M=A==null||(y=A.components)==null||(y=y[t])==null?void 0:y.variants;return m3({variants:M},Ge({},c,{theme:A}))}),m||p.push(Y);const E=p.length-u.length;if(Array.isArray(f)&&E>0){const c=new Array(E).fill("");b=[...f,...c],b.raw=[...f.raw,...c]}const g=s(b,...p);return D.muiName&&(g.muiName=D.muiName),g};return s.withConfig&&(h.withConfig=s.withConfig),h}}const po=lW();function Wx(e,r){const x=Ge({},r);return Object.keys(e).forEach(F=>{if(F.toString().match(/^(components|slots)$/))x[F]=Ge({},e[F],x[F]);else if(F.toString().match(/^(componentsProps|slotProps)$/)){const j=e[F]||{},Y=r[F];x[F]={},!Y||!Object.keys(Y)?x[F]=j:!j||!Object.keys(j)?x[F]=Y:(x[F]=Ge({},Y),Object.keys(j).forEach(D=>{x[F][D]=Wx(j[D],Y[D])}))}else x[F]===void 0&&(x[F]=e[F])}),x}function N7(e){const{theme:r,name:x,props:F}=e;return!r||!r.components||!r.components[x]||!r.components[x].defaultProps?F:Wx(r.components[x].defaultProps,F)}function HA({props:e,name:r,defaultTheme:x,themeId:F}){let j=aT(x);return F&&(j=j[F]||j),N7({theme:j,name:r,props:e})}const Gi=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;function uW(e,r,x,F,j){const[Y,D]=Oe.useState(()=>j&&x?x(e).matches:F?F(e).matches:r);return Gi(()=>{let O=!0;if(!x)return;const t=x(e),l=()=>{O&&D(t.matches)};return l(),t.addListener(l),()=>{O=!1,t.removeListener(l)}},[e,x]),Y}const U7=Oe.useSyncExternalStore;function cW(e,r,x,F,j){const Y=Oe.useCallback(()=>r,[r]),D=Oe.useMemo(()=>{if(j&&x)return()=>x(e).matches;if(F!==null){const{matches:S}=F(e);return()=>S}return Y},[Y,e,F,j,x]),[O,t]=Oe.useMemo(()=>{if(x===null)return[Y,()=>()=>{}];const S=x(e);return[()=>S.matches,i=>(S.addListener(i),()=>{S.removeListener(i)})]},[Y,x,e]);return U7(t,O,D)}function H7(e,r={}){const x=zA(),F=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:j=!1,matchMedia:Y=F?window.matchMedia:null,ssrMatchMedia:D=null,noSsr:O=!1}=N7({name:"MuiUseMediaQuery",props:r,theme:x});let t=typeof e=="function"?e(x):e;return t=t.replace(/^@media( ?)/m,""),(U7!==void 0?cW:uW)(t,j,Y,D,O)}function z0(e,r=Number.MIN_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,x))}const fW=Object.freeze(Object.defineProperty({__proto__:null,default:z0},Symbol.toStringTag,{value:"Module"}));function VA(e,r=0,x=1){return z0(e,r,x)}function dW(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let x=e.match(r);return x&&x[0].length===1&&(x=x.map(F=>F+F)),x?`rgb${x.length===4?"a":""}(${x.map((F,j)=>j<3?parseInt(F,16):Math.round(parseInt(F,16)/255*1e3)/1e3).join(", ")})`:""}function wy(e){if(e.type)return e;if(e.charAt(0)==="#")return wy(dW(e));const r=e.indexOf("("),x=e.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(x)===-1)throw new Error(sv(9,e));let F=e.substring(r+1,e.length-1),j;if(x==="color"){if(F=F.split(" "),j=F.shift(),F.length===4&&F[3].charAt(0)==="/"&&(F[3]=F[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(j)===-1)throw new Error(sv(10,j))}else F=F.split(",");return F=F.map(Y=>parseFloat(Y)),{type:x,values:F,colorSpace:j}}function pT(e){const{type:r,colorSpace:x}=e;let{values:F}=e;return r.indexOf("rgb")!==-1?F=F.map((j,Y)=>Y<3?parseInt(j,10):j):r.indexOf("hsl")!==-1&&(F[1]=`${F[1]}%`,F[2]=`${F[2]}%`),r.indexOf("color")!==-1?F=`${x} ${F.join(" ")}`:F=`${F.join(", ")}`,`${r}(${F})`}function Sc(e,r){return e=wy(e),r=VA(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,pT(e)}function hW(e,r){if(e=wy(e),r=VA(r),e.type.indexOf("hsl")!==-1)e.values[2]*=1-r;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)e.values[x]*=1-r;return pT(e)}function vW(e,r){if(e=wy(e),r=VA(r),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*r;else if(e.type.indexOf("rgb")!==-1)for(let x=0;x<3;x+=1)e.values[x]+=(255-e.values[x])*r;else if(e.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)e.values[x]+=(1-e.values[x])*r;return pT(e)}const V7=_r.oneOfType([_r.func,_r.object]);function z4(...e){return e.reduce((r,x)=>x==null?r:function(...j){r.apply(this,j),x.apply(this,j)},()=>{})}function bg(e,r=166){let x;function F(...j){const Y=()=>{e.apply(this,j)};clearTimeout(x),x=setTimeout(Y,r)}return F.clear=()=>{clearTimeout(x)},F}function pW(e,r){return()=>null}function px(e,r){var x,F;return Oe.isValidElement(e)&&r.indexOf((x=e.type.muiName)!=null?x:(F=e.type)==null||(F=F._payload)==null||(F=F.value)==null?void 0:F.muiName)!==-1}function oo(e){return e&&e.ownerDocument||document}function Cd(e){return oo(e).defaultView||window}function gW(e,r){return()=>null}function $x(e,r){typeof e=="function"?e(r):e&&(e.current=r)}let s8=0;function mW(e){const[r,x]=Oe.useState(e),F=e||r;return Oe.useEffect(()=>{r==null&&(s8+=1,x(`mui-${s8}`))},[r]),F}const l8=A3.useId;function Ui(e){if(l8!==void 0){const r=l8();return e??r}return mW(e)}function yW(e,r,x,F,j){return null}function Ol({controlled:e,default:r,name:x,state:F="value"}){const{current:j}=Oe.useRef(e!==void 0),[Y,D]=Oe.useState(r),O=j?e:Y,t=Oe.useCallback(l=>{j||D(l)},[]);return[O,t]}function pa(e){const r=Oe.useRef(e);return Gi(()=>{r.current=e}),Oe.useRef((...x)=>(0,r.current)(...x)).current}function vi(...e){return Oe.useMemo(()=>e.every(r=>r==null)?null:r=>{e.forEach(x=>{$x(x,r)})},e)}const u8={};function wg(e,r){const x=Oe.useRef(u8);return x.current===u8&&(x.current=e(r)),x}const xW=[];function gT(e){Oe.useEffect(e,xW)}class Tb{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Tb}start(r,x){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,x()},r)}}function Cc(){const e=wg(Tb.create).current;return gT(e.disposeEffect),e}let mT=!0,B4=!1;const bW=new Tb,wW={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 TW(e){const{type:r,tagName:x}=e;return!!(x==="INPUT"&&wW[r]&&!e.readOnly||x==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function SW(e){e.metaKey||e.altKey||e.ctrlKey||(mT=!0)}function aC(){mT=!1}function CW(){this.visibilityState==="hidden"&&B4&&(mT=!0)}function MW(e){e.addEventListener("keydown",SW,!0),e.addEventListener("mousedown",aC,!0),e.addEventListener("pointerdown",aC,!0),e.addEventListener("touchstart",aC,!0),e.addEventListener("visibilitychange",CW,!0)}function AW(e){const{target:r}=e;try{return r.matches(":focus-visible")}catch{}return mT||TW(r)}function Sb(){const e=Oe.useCallback(j=>{j!=null&&MW(j.ownerDocument)},[]),r=Oe.useRef(!1);function x(){return r.current?(B4=!0,bW.start(100,()=>{B4=!1}),r.current=!1,!0):!1}function F(j){return AW(j)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:F,onBlur:x,ref:e}}function j7(e){const r=e.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}let em;function G7(){if(em)return em;const e=document.createElement("div"),r=document.createElement("div");return r.style.width="10px",r.style.height="1px",e.appendChild(r),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),em="reverse",e.scrollLeft>0?em="default":(e.scrollLeft=1,e.scrollLeft===0&&(em="negative")),document.body.removeChild(e),em}function EW(e,r){const x=e.scrollLeft;if(r!=="rtl")return x;switch(G7()){case"negative":return e.scrollWidth-e.clientWidth+x;case"reverse":return e.scrollWidth-e.clientWidth-x;default:return x}}const jA=e=>{const r=Oe.useRef({});return Oe.useEffect(()=>{r.current=e}),r.current},W7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function qn(e,r,x=void 0){const F={};return Object.keys(e).forEach(j=>{F[j]=e[j].reduce((Y,D)=>{if(D){const O=r(D);O!==""&&Y.push(O),x&&x[D]&&Y.push(x[D])}return Y},[]).join(" ")}),F}function xd(e){return typeof e=="string"}function Rm(e,r,x){return e===void 0||xd(e)?r:Ge({},r,{ownerState:Ge({},r.ownerState,x)})}function gx(e,r=[]){if(e===void 0)return{};const x={};return Object.keys(e).filter(F=>F.match(/^on[A-Z]/)&&typeof e[F]=="function"&&!r.includes(F)).forEach(F=>{x[F]=e[F]}),x}function c8(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(x=>!(x.match(/^on[A-Z]/)&&typeof e[x]=="function")).forEach(x=>{r[x]=e[x]}),r}function $7(e){const{getSlotProps:r,additionalProps:x,externalSlotProps:F,externalForwardedProps:j,className:Y}=e;if(!r){const w=Ln(x==null?void 0:x.className,Y,j==null?void 0:j.className,F==null?void 0:F.className),v=Ge({},x==null?void 0:x.style,j==null?void 0:j.style,F==null?void 0:F.style),m=Ge({},x,j,F);return w.length>0&&(m.className=w),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const D=gx(Ge({},j,F)),O=c8(F),t=c8(j),l=r(D),S=Ln(l==null?void 0:l.className,x==null?void 0:x.className,Y,j==null?void 0:j.className,F==null?void 0:F.className),i=Ge({},l==null?void 0:l.style,x==null?void 0:x.style,j==null?void 0:j.style,F==null?void 0:F.style),C=Ge({},l,x,t,O);return S.length>0&&(C.className=S),Object.keys(i).length>0&&(C.style=i),{props:C,internalRef:l.ref}}function yT(e,r,x){return typeof e=="function"?e(r,x):e}const PW=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hi(e){var r;const{elementType:x,externalSlotProps:F,ownerState:j,skipResolvingSlotProps:Y=!1}=e,D=hn(e,PW),O=Y?{}:yT(F,j),{props:t,internalRef:l}=$7(Ge({},D,{externalSlotProps:O})),S=vi(l,O==null?void 0:O.ref,(r=e.additionalProps)==null?void 0:r.ref);return Rm(x,Ge({},t,{ref:S}),j)}const Y7=Oe.createContext(null);function X7(){return Oe.useContext(Y7)}const LW=typeof Symbol=="function"&&Symbol.for,IW=LW?Symbol.for("mui.nested"):"__THEME_NESTED__";function RW(e,r){return typeof r=="function"?r(e):Ge({},e,r)}function kW(e){const{children:r,theme:x}=e,F=X7(),j=Oe.useMemo(()=>{const Y=F===null?x:RW(F,x);return Y!=null&&(Y[IW]=F!==null),Y},[x,F]);return Ce.jsx(Y7.Provider,{value:j,children:r})}const DW=["value"],Z7=Oe.createContext();function OW(e){let{value:r}=e,x=hn(e,DW);return Ce.jsx(Z7.Provider,Ge({value:r??!0},x))}const _l=()=>{const e=Oe.useContext(Z7);return e??!1},K7=Oe.createContext(void 0);function FW({value:e,children:r}){return Ce.jsx(K7.Provider,{value:e,children:r})}function _W(e){const{theme:r,name:x,props:F}=e;if(!r||!r.components||!r.components[x])return F;const j=r.components[x];return j.defaultProps?Wx(j.defaultProps,F):!j.styleOverrides&&!j.variants?Wx(j,F):F}function zW({props:e,name:r}){const x=Oe.useContext(K7);return _W({props:e,name:r,theme:{components:x}})}const f8={};function d8(e,r,x,F=!1){return Oe.useMemo(()=>{const j=e&&r[e]||r;if(typeof x=="function"){const Y=x(j),D=e?Ge({},r,{[e]:Y}):Y;return F?()=>D:D}return e?Ge({},r,{[e]:x}):Ge({},r,x)},[e,r,x,F])}function BW(e){const{children:r,theme:x,themeId:F}=e,j=zA(f8),Y=X7()||f8,D=d8(F,j,x),O=d8(F,Y,x,!0),t=D.direction==="rtl";return Ce.jsx(kW,{theme:O,children:Ce.jsx(yb.Provider,{value:D,children:Ce.jsx(OW,{value:t,children:Ce.jsx(FW,{value:D==null?void 0:D.components,children:r})})})})}function Yx(e){"@babel/helpers - typeof";return Yx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yx(e)}function NW(e,r){if(Yx(e)!="object"||!e)return e;var x=e[Symbol.toPrimitive];if(x!==void 0){var F=x.call(e,r);if(Yx(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xx(e){var r=NW(e,"string");return Yx(r)=="symbol"?r:r+""}const UW=["className","component","disableGutters","fixed","maxWidth","classes"],HW=Ny(),VW=po("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[`maxWidth${Gn(String(x.maxWidth))}`],x.fixed&&r.fixed,x.disableGutters&&r.disableGutters]}}),jW=e=>HA({props:e,name:"MuiContainer",defaultTheme:HW}),GW=(e,r)=>{const x=t=>ka(r,t),{classes:F,fixed:j,disableGutters:Y,maxWidth:D}=e,O={root:["root",D&&`maxWidth${Gn(String(D))}`,j&&"fixed",Y&&"disableGutters"]};return qn(O,x,F)};function WW(e={}){const{createStyledComponent:r=VW,useThemeProps:x=jW,componentName:F="MuiContainer"}=e,j=r(({theme:D,ownerState:O})=>Ge({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!O.disableGutters&&{paddingLeft:D.spacing(2),paddingRight:D.spacing(2),[D.breakpoints.up("sm")]:{paddingLeft:D.spacing(3),paddingRight:D.spacing(3)}}),({theme:D,ownerState:O})=>O.fixed&&Object.keys(D.breakpoints.values).reduce((t,l)=>{const S=l,i=D.breakpoints.values[S];return i!==0&&(t[D.breakpoints.up(S)]={maxWidth:`${i}${D.breakpoints.unit}`}),t},{}),({theme:D,ownerState:O})=>Ge({},O.maxWidth==="xs"&&{[D.breakpoints.up("xs")]:{maxWidth:Math.max(D.breakpoints.values.xs,444)}},O.maxWidth&&O.maxWidth!=="xs"&&{[D.breakpoints.up(O.maxWidth)]:{maxWidth:`${D.breakpoints.values[O.maxWidth]}${D.breakpoints.unit}`}}));return Oe.forwardRef(function(O,t){const l=x(O),{className:S,component:i="div",disableGutters:C=!1,fixed:w=!1,maxWidth:v="lg"}=l,m=hn(l,UW),a=Ge({},l,{component:i,disableGutters:C,fixed:w,maxWidth:v}),n=GW(a,F);return Ce.jsx(j,Ge({as:i,ownerState:a,className:Ln(n.root,S),ref:t},m))})}const $W=["component","direction","spacing","divider","children","className","useFlexGap"],YW=Ny(),XW=po("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,r)=>r.root});function ZW(e){return HA({props:e,name:"MuiStack",defaultTheme:YW})}function KW(e,r){const x=Oe.Children.toArray(e).filter(Boolean);return x.reduce((F,j,Y)=>(F.push(j),Y({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],QW=({ownerState:e,theme:r})=>{let x=Ge({display:"flex",flexDirection:"column"},Qu({theme:r},eg({values:e.direction,breakpoints:r.breakpoints.values}),F=>({flexDirection:F})));if(e.spacing){const F=FA(r),j=Object.keys(r.breakpoints.values).reduce((t,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(t[l]=!0),t),{}),Y=eg({values:e.direction,base:j}),D=eg({values:e.spacing,base:j});typeof Y=="object"&&Object.keys(Y).forEach((t,l,S)=>{if(!Y[t]){const C=l>0?Y[S[l-1]]:"column";Y[t]=C}}),x=wu(x,Qu({theme:r},D,(t,l)=>e.useFlexGap?{gap:ug(F,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${JW(l?Y[l]:e.direction)}`]:ug(F,t)}}))}return x=Zj(r.breakpoints,x),x};function qW(e={}){const{createStyledComponent:r=XW,useThemeProps:x=ZW,componentName:F="MuiStack"}=e,j=()=>qn({root:["root"]},t=>ka(F,t),{}),Y=r(QW);return Oe.forwardRef(function(t,l){const S=x(t),i=wb(S),{component:C="div",direction:w="column",spacing:v=0,divider:m,children:a,className:n,useFlexGap:s=!1}=i,o=hn(i,$W),h={direction:w,spacing:v,useFlexGap:s},f=j();return Ce.jsx(Y,Ge({as:C,ownerState:h,ref:l,className:Ln(f.root,n)},o,{children:m?KW(a,m):a}))})}function e$(e,r){return Ge({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},r)}var Us={},J7={exports:{}};(function(e){function r(x){return x&&x.__esModule?x:{default:x}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(J7);var zl=J7.exports;const t$=dv(kV),r$=dv(fW);var Q7=zl;Object.defineProperty(Us,"__esModule",{value:!0});var wi=Us.alpha=r9;Us.blend=h$;Us.colorChannel=void 0;var cg=Us.darken=WA;Us.decomposeColor=Af;var h8=Us.emphasize=n9,n$=Us.getContrastRatio=l$;Us.getLuminance=q3;Us.hexToRgb=q7;Us.hslToRgb=t9;var fg=Us.lighten=$A;Us.private_safeAlpha=u$;Us.private_safeColorChannel=void 0;Us.private_safeDarken=c$;Us.private_safeEmphasize=d$;Us.private_safeLighten=f$;Us.recomposeColor=Uy;Us.rgbToHex=s$;var v8=Q7(t$),a$=Q7(r$);function GA(e,r=0,x=1){return(0,a$.default)(e,r,x)}function q7(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let x=e.match(r);return x&&x[0].length===1&&(x=x.map(F=>F+F)),x?`rgb${x.length===4?"a":""}(${x.map((F,j)=>j<3?parseInt(F,16):Math.round(parseInt(F,16)/255*1e3)/1e3).join(", ")})`:""}function i$(e){const r=e.toString(16);return r.length===1?`0${r}`:r}function Af(e){if(e.type)return e;if(e.charAt(0)==="#")return Af(q7(e));const r=e.indexOf("("),x=e.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(x)===-1)throw new Error((0,v8.default)(9,e));let F=e.substring(r+1,e.length-1),j;if(x==="color"){if(F=F.split(" "),j=F.shift(),F.length===4&&F[3].charAt(0)==="/"&&(F[3]=F[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(j)===-1)throw new Error((0,v8.default)(10,j))}else F=F.split(",");return F=F.map(Y=>parseFloat(Y)),{type:x,values:F,colorSpace:j}}const e9=e=>{const r=Af(e);return r.values.slice(0,3).map((x,F)=>r.type.indexOf("hsl")!==-1&&F!==0?`${x}%`:x).join(" ")};Us.colorChannel=e9;const o$=(e,r)=>{try{return e9(e)}catch{return e}};Us.private_safeColorChannel=o$;function Uy(e){const{type:r,colorSpace:x}=e;let{values:F}=e;return r.indexOf("rgb")!==-1?F=F.map((j,Y)=>Y<3?parseInt(j,10):j):r.indexOf("hsl")!==-1&&(F[1]=`${F[1]}%`,F[2]=`${F[2]}%`),r.indexOf("color")!==-1?F=`${x} ${F.join(" ")}`:F=`${F.join(", ")}`,`${r}(${F})`}function s$(e){if(e.indexOf("#")===0)return e;const{values:r}=Af(e);return`#${r.map((x,F)=>i$(F===3?Math.round(255*x):x)).join("")}`}function t9(e){e=Af(e);const{values:r}=e,x=r[0],F=r[1]/100,j=r[2]/100,Y=F*Math.min(j,1-j),D=(l,S=(l+x/30)%12)=>j-Y*Math.max(Math.min(S-3,9-S,1),-1);let O="rgb";const t=[Math.round(D(0)*255),Math.round(D(8)*255),Math.round(D(4)*255)];return e.type==="hsla"&&(O+="a",t.push(r[3])),Uy({type:O,values:t})}function q3(e){e=Af(e);let r=e.type==="hsl"||e.type==="hsla"?Af(t9(e)).values:e.values;return r=r.map(x=>(e.type!=="color"&&(x/=255),x<=.03928?x/12.92:((x+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function l$(e,r){const x=q3(e),F=q3(r);return(Math.max(x,F)+.05)/(Math.min(x,F)+.05)}function r9(e,r){return e=Af(e),r=GA(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,Uy(e)}function u$(e,r,x){try{return r9(e,r)}catch{return e}}function WA(e,r){if(e=Af(e),r=GA(r),e.type.indexOf("hsl")!==-1)e.values[2]*=1-r;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)e.values[x]*=1-r;return Uy(e)}function c$(e,r,x){try{return WA(e,r)}catch{return e}}function $A(e,r){if(e=Af(e),r=GA(r),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*r;else if(e.type.indexOf("rgb")!==-1)for(let x=0;x<3;x+=1)e.values[x]+=(255-e.values[x])*r;else if(e.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)e.values[x]+=(1-e.values[x])*r;return Uy(e)}function f$(e,r,x){try{return $A(e,r)}catch{return e}}function n9(e,r=.15){return q3(e)>.5?WA(e,r):$A(e,r)}function d$(e,r,x){try{return n9(e,r)}catch{return e}}function h$(e,r,x,F=1){const j=(t,l)=>Math.round((t**(1/F)*(1-x)+l**(1/F)*x)**F),Y=Af(e),D=Af(r),O=[j(Y.values[0],D.values[0]),j(Y.values[1],D.values[1]),j(Y.values[2],D.values[2])];return Uy({type:"rgb",values:O})}const Zx={black:"#000",white:"#fff"},v$={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},tm={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},rm={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"},A1={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"},O0={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"},nm={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},am={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"},p$=["mode","contrastThreshold","tonalOffset"],p8={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Zx.white,default:Zx.white},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}},iC={text:{primary:Zx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Zx.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 g8(e,r,x,F){const j=F.light||F,Y=F.dark||F*1.5;e[r]||(e.hasOwnProperty(x)?e[r]=e[x]:r==="light"?e.light=fg(e.main,j):r==="dark"&&(e.dark=cg(e.main,Y)))}function g$(e="light"){return e==="dark"?{main:O0[200],light:O0[50],dark:O0[400]}:{main:O0[700],light:O0[400],dark:O0[800]}}function m$(e="light"){return e==="dark"?{main:tm[200],light:tm[50],dark:tm[400]}:{main:tm[500],light:tm[300],dark:tm[700]}}function y$(e="light"){return e==="dark"?{main:rm[500],light:rm[300],dark:rm[700]}:{main:rm[700],light:rm[400],dark:rm[800]}}function x$(e="light"){return e==="dark"?{main:nm[400],light:nm[300],dark:nm[700]}:{main:nm[700],light:nm[500],dark:nm[900]}}function b$(e="light"){return e==="dark"?{main:am[400],light:am[300],dark:am[700]}:{main:am[800],light:am[500],dark:am[900]}}function w$(e="light"){return e==="dark"?{main:A1[400],light:A1[300],dark:A1[700]}:{main:"#ed6c02",light:A1[500],dark:A1[900]}}function T$(e){const{mode:r="light",contrastThreshold:x=3,tonalOffset:F=.2}=e,j=hn(e,p$),Y=e.primary||g$(r),D=e.secondary||m$(r),O=e.error||y$(r),t=e.info||x$(r),l=e.success||b$(r),S=e.warning||w$(r);function i(m){return n$(m,iC.text.primary)>=x?iC.text.primary:p8.text.primary}const C=({color:m,name:a,mainShade:n=500,lightShade:s=300,darkShade:o=700})=>{if(m=Ge({},m),!m.main&&m[n]&&(m.main=m[n]),!m.hasOwnProperty("main"))throw new Error(sv(11,a?` (${a})`:"",n));if(typeof m.main!="string")throw new Error(sv(12,a?` (${a})`:"",JSON.stringify(m.main)));return g8(m,"light",s,F),g8(m,"dark",o,F),m.contrastText||(m.contrastText=i(m.main)),m},w={dark:iC,light:p8};return wu(Ge({common:Ge({},Zx),mode:r,primary:C({color:Y,name:"primary"}),secondary:C({color:D,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:O,name:"error"}),warning:C({color:S,name:"warning"}),info:C({color:t,name:"info"}),success:C({color:l,name:"success"}),grey:v$,contrastThreshold:x,getContrastText:i,augmentColor:C,tonalOffset:F},w[r]),j)}const S$=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function C$(e){return Math.round(e*1e5)/1e5}const m8={textTransform:"uppercase"},y8='"Roboto", "Helvetica", "Arial", sans-serif';function M$(e,r){const x=typeof r=="function"?r(e):r,{fontFamily:F=y8,fontSize:j=14,fontWeightLight:Y=300,fontWeightRegular:D=400,fontWeightMedium:O=500,fontWeightBold:t=700,htmlFontSize:l=16,allVariants:S,pxToRem:i}=x,C=hn(x,S$),w=j/14,v=i||(n=>`${n/l*w}rem`),m=(n,s,o,h,f)=>Ge({fontFamily:F,fontWeight:n,fontSize:v(s),lineHeight:o},F===y8?{letterSpacing:`${C$(h/s)}em`}:{},f,S),a={h1:m(Y,96,1.167,-1.5),h2:m(Y,60,1.2,-.5),h3:m(D,48,1.167,0),h4:m(D,34,1.235,.25),h5:m(D,24,1.334,0),h6:m(O,20,1.6,.15),subtitle1:m(D,16,1.75,.15),subtitle2:m(O,14,1.57,.1),body1:m(D,16,1.5,.15),body2:m(D,14,1.43,.15),button:m(O,14,1.75,.4,m8),caption:m(D,12,1.66,.4),overline:m(D,12,2.66,1,m8),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wu(Ge({htmlFontSize:l,pxToRem:v,fontFamily:F,fontSize:j,fontWeightLight:Y,fontWeightRegular:D,fontWeightMedium:O,fontWeightBold:t},a),C,{clone:!1})}const A$=.2,E$=.14,P$=.12;function is(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${A$})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${E$})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${P$})`].join(",")}const L$=["none",is(0,2,1,-1,0,1,1,0,0,1,3,0),is(0,3,1,-2,0,2,2,0,0,1,5,0),is(0,3,3,-2,0,3,4,0,0,1,8,0),is(0,2,4,-1,0,4,5,0,0,1,10,0),is(0,3,5,-1,0,5,8,0,0,1,14,0),is(0,3,5,-1,0,6,10,0,0,1,18,0),is(0,4,5,-2,0,7,10,1,0,2,16,1),is(0,5,5,-3,0,8,10,1,0,3,14,2),is(0,5,6,-3,0,9,12,1,0,3,16,2),is(0,6,6,-3,0,10,14,1,0,4,18,3),is(0,6,7,-4,0,11,15,1,0,4,20,3),is(0,7,8,-4,0,12,17,2,0,5,22,4),is(0,7,8,-4,0,13,19,2,0,5,24,4),is(0,7,9,-4,0,14,21,2,0,5,26,4),is(0,8,9,-5,0,15,22,2,0,6,28,5),is(0,8,10,-5,0,16,24,2,0,6,30,5),is(0,8,11,-5,0,17,26,2,0,6,32,5),is(0,9,11,-5,0,18,28,2,0,7,34,6),is(0,9,12,-6,0,19,29,2,0,7,36,6),is(0,10,13,-6,0,20,31,3,0,8,38,7),is(0,10,13,-6,0,21,33,3,0,8,40,7),is(0,10,14,-6,0,22,35,3,0,8,42,7),is(0,11,14,-7,0,23,36,3,0,9,44,8),is(0,11,15,-7,0,24,38,3,0,9,46,8)],I$=["duration","easing","delay"],R$={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)"},a9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function x8(e){return`${Math.round(e)}ms`}function k$(e){if(!e)return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function D$(e){const r=Ge({},R$,e.easing),x=Ge({},a9,e.duration);return Ge({getAutoHeightDuration:k$,create:(j=["all"],Y={})=>{const{duration:D=x.standard,easing:O=r.easeInOut,delay:t=0}=Y;return hn(Y,I$),(Array.isArray(j)?j:[j]).map(l=>`${l} ${typeof D=="string"?D:x8(D)} ${O} ${typeof t=="string"?t:x8(t)}`).join(",")}},e,{easing:r,duration:x})}const O$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},F$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function YA(e={},...r){const{mixins:x={},palette:F={},transitions:j={},typography:Y={}}=e,D=hn(e,F$);if(e.vars)throw new Error(sv(18));const O=T$(F),t=Ny(e);let l=wu(t,{mixins:e$(t.breakpoints,x),palette:O,shadows:L$.slice(),typography:M$(O,Y),transitions:D$(j),zIndex:Ge({},O$)});return l=wu(l,D),l=r.reduce((S,i)=>wu(S,i),l),l.unstable_sxConfig=Ge({},bb,D==null?void 0:D.unstable_sxConfig),l.unstable_sx=function(i){return By({sx:i,theme:this})},l}function _$(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function z$(e){return parseFloat(e)}const xT=YA();function nu(){const e=aT(xT);return e[lg]||e}function zo({props:e,name:r}){return HA({props:e,name:r,defaultTheme:xT,themeId:lg})}var Cb={},oC={exports:{}},b8;function B$(){return b8||(b8=1,function(e){function r(x,F){if(x==null)return{};var j={};for(var Y in x)if({}.hasOwnProperty.call(x,Y)){if(F.includes(Y))continue;j[Y]=x[Y]}return j}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(oC)),oC.exports}const i9=dv(Gj),N$=dv(Wj),U$=dv(Jj),H$=dv(qG),V$=dv(BG),j$=dv(GG);var Hy=zl;Object.defineProperty(Cb,"__esModule",{value:!0});var G$=Cb.default=nY;Cb.shouldForwardProp=y3;Cb.systemDefaultTheme=void 0;var sf=Hy(b7()),N4=Hy(B$()),w8=J$(i9),W$=N$;Hy(U$);Hy(H$);var $$=Hy(V$),Y$=Hy(j$);const X$=["ownerState"],Z$=["variants"],K$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function o9(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,x=new WeakMap;return(o9=function(F){return F?x:r})(e)}function J$(e,r){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var x=o9(r);if(x&&x.has(e))return x.get(e);var F={__proto__:null},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in e)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(e,Y)){var D=j?Object.getOwnPropertyDescriptor(e,Y):null;D&&(D.get||D.set)?Object.defineProperty(F,Y,D):F[Y]=e[Y]}return F.default=e,x&&x.set(e,F),F}function Q$(e){return Object.keys(e).length===0}function q$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function y3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const eY=Cb.systemDefaultTheme=(0,$$.default)(),tY=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function zw({defaultTheme:e,theme:r,themeId:x}){return Q$(r)?e:r[x]||r}function rY(e){return e?(r,x)=>x[e]:null}function x3(e,r){let{ownerState:x}=r,F=(0,N4.default)(r,X$);const j=typeof e=="function"?e((0,sf.default)({ownerState:x},F)):e;if(Array.isArray(j))return j.flatMap(Y=>x3(Y,(0,sf.default)({ownerState:x},F)));if(j&&typeof j=="object"&&Array.isArray(j.variants)){const{variants:Y=[]}=j;let O=(0,N4.default)(j,Z$);return Y.forEach(t=>{let l=!0;typeof t.props=="function"?l=t.props((0,sf.default)({ownerState:x},F,x)):Object.keys(t.props).forEach(S=>{(x==null?void 0:x[S])!==t.props[S]&&F[S]!==t.props[S]&&(l=!1)}),l&&(Array.isArray(O)||(O=[O]),O.push(typeof t.style=="function"?t.style((0,sf.default)({ownerState:x},F,x)):t.style))}),O}return j}function nY(e={}){const{themeId:r,defaultTheme:x=eY,rootShouldForwardProp:F=y3,slotShouldForwardProp:j=y3}=e,Y=D=>(0,Y$.default)((0,sf.default)({},D,{theme:zw((0,sf.default)({},D,{defaultTheme:x,themeId:r}))}));return Y.__mui_systemSx=!0,(D,O={})=>{(0,w8.internal_processStyles)(D,f=>f.filter(u=>!(u!=null&&u.__mui_systemSx)));const{name:t,slot:l,skipVariantsResolver:S,skipSx:i,overridesResolver:C=rY(tY(l))}=O,w=(0,N4.default)(O,K$),v=S!==void 0?S:l&&l!=="Root"&&l!=="root"||!1,m=i||!1;let a,n=y3;l==="Root"||l==="root"?n=F:l?n=j:q$(D)&&(n=void 0);const s=(0,w8.default)(D,(0,sf.default)({shouldForwardProp:n,label:a},w)),o=f=>typeof f=="function"&&f.__emotion_real!==f||(0,W$.isPlainObject)(f)?u=>x3(f,(0,sf.default)({},u,{theme:zw({theme:u.theme,defaultTheme:x,themeId:r})})):f,h=(f,...u)=>{let b=o(f);const p=u?u.map(o):[];t&&C&&p.push(c=>{const y=zw((0,sf.default)({},c,{defaultTheme:x,themeId:r}));if(!y.components||!y.components[t]||!y.components[t].styleOverrides)return null;const A=y.components[t].styleOverrides,M={};return Object.entries(A).forEach(([R,T])=>{M[R]=x3(T,(0,sf.default)({},c,{theme:y}))}),C(c,M)}),t&&!v&&p.push(c=>{var y;const A=zw((0,sf.default)({},c,{defaultTheme:x,themeId:r})),M=A==null||(y=A.components)==null||(y=y[t])==null?void 0:y.variants;return x3({variants:M},(0,sf.default)({},c,{theme:A}))}),m||p.push(Y);const E=p.length-u.length;if(Array.isArray(f)&&E>0){const c=new Array(E).fill("");b=[...f,...c],b.raw=[...f.raw,...c]}const g=s(b,...p);return D.muiName&&(g.muiName=D.muiName),g};return s.withConfig&&(h.withConfig=s.withConfig),h}}function bT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ec=e=>bT(e)&&e!=="classes",ln=G$({themeId:lg,defaultTheme:xT,rootShouldForwardProp:ec}),aY=["theme"];function iY(e){let{theme:r}=e,x=hn(e,aY);const F=r[lg];return Ce.jsx(BW,Ge({},x,{themeId:F?lg:void 0,theme:F||r}))}const T8=e=>{let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,(r/100).toFixed(2)};function Ka(e){return zW(e)}function oY(e){return ka("MuiSvgIcon",e)}Ca("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sY=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],lY=e=>{const{color:r,fontSize:x,classes:F}=e,j={root:["root",r!=="inherit"&&`color${Gn(r)}`,`fontSize${Gn(x)}`]};return qn(j,oY,F)},uY=ln("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.color!=="inherit"&&r[`color${Gn(x.color)}`],r[`fontSize${Gn(x.fontSize)}`]]}})(({theme:e,ownerState:r})=>{var x,F,j,Y,D,O,t,l,S,i,C,w,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(x=e.transitions)==null||(F=x.create)==null?void 0:F.call(x,"fill",{duration:(j=e.transitions)==null||(j=j.duration)==null?void 0:j.shorter}),fontSize:{inherit:"inherit",small:((Y=e.typography)==null||(D=Y.pxToRem)==null?void 0:D.call(Y,20))||"1.25rem",medium:((O=e.typography)==null||(t=O.pxToRem)==null?void 0:t.call(O,24))||"1.5rem",large:((l=e.typography)==null||(S=l.pxToRem)==null?void 0:S.call(l,35))||"2.1875rem"}[r.fontSize],color:(i=(C=(e.vars||e).palette)==null||(C=C[r.color])==null?void 0:C.main)!=null?i:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[r.color]}}),e2=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiSvgIcon"}),{children:j,className:Y,color:D="inherit",component:O="svg",fontSize:t="medium",htmlColor:l,inheritViewBox:S=!1,titleAccess:i,viewBox:C="0 0 24 24"}=F,w=hn(F,sY),v=Oe.isValidElement(j)&&j.type==="svg",m=Ge({},F,{color:D,component:O,fontSize:t,instanceFontSize:r.fontSize,inheritViewBox:S,viewBox:C,hasSvgAsChild:v}),a={};S||(a.viewBox=C);const n=lY(m);return Ce.jsxs(uY,Ge({as:O,className:Ln(n.root,Y),focusable:"false",color:l,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:x},a,w,v&&j.props,{ownerState:m,children:[v?j.props.children:j,i?Ce.jsx("title",{children:i}):null]}))});e2.muiName="SvgIcon";function ci(e,r){function x(F,j){return Ce.jsx(e2,Ge({"data-testid":`${r}Icon`,ref:j},F,{children:e}))}return x.muiName=e2.muiName,Oe.memo(Oe.forwardRef(x))}const cY={configure:e=>{BA.configure(e)}},fY=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Gn,createChainedFunction:z4,createSvgIcon:ci,debounce:bg,deprecatedPropType:pW,isMuiElement:px,ownerDocument:oo,ownerWindow:Cd,requirePropFactory:gW,setRef:$x,unstable_ClassNameGenerator:cY,unstable_useEnhancedEffect:Gi,unstable_useId:Ui,unsupportedProp:yW,useControlled:Ol,useEventCallback:pa,useForkRef:vi,useIsFocusVisible:Sb},Symbol.toStringTag,{value:"Module"}));function U4(e,r){return U4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,F){return x.__proto__=F,x},U4(e,r)}function XA(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,U4(e,r)}function dY(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function hY(e,r){e.classList?e.classList.add(r):dY(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function S8(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function vY(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=S8(e.className,r):e.setAttribute("class",S8(e.className&&e.className.baseVal||"",r))}const C8={disabled:!1},t2=jo.createContext(null);var s9=function(r){return r.scrollTop},Q1="unmounted",F0="exited",_0="entering",fm="entered",H4="exiting",Df=function(e){XA(r,e);function r(F,j){var Y;Y=e.call(this,F,j)||this;var D=j,O=D&&!D.isMounting?F.enter:F.appear,t;return Y.appearStatus=null,F.in?O?(t=F0,Y.appearStatus=_0):t=fm:F.unmountOnExit||F.mountOnEnter?t=Q1:t=F0,Y.state={status:t},Y.nextCallback=null,Y}r.getDerivedStateFromProps=function(j,Y){var D=j.in;return D&&Y.status===Q1?{status:F0}:null};var x=r.prototype;return x.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},x.componentDidUpdate=function(j){var Y=null;if(j!==this.props){var D=this.state.status;this.props.in?D!==_0&&D!==fm&&(Y=_0):(D===_0||D===fm)&&(Y=H4)}this.updateStatus(!1,Y)},x.componentWillUnmount=function(){this.cancelNextCallback()},x.getTimeouts=function(){var j=this.props.timeout,Y,D,O;return Y=D=O=j,j!=null&&typeof j!="number"&&(Y=j.exit,D=j.enter,O=j.appear!==void 0?j.appear:D),{exit:Y,enter:D,appear:O}},x.updateStatus=function(j,Y){if(j===void 0&&(j=!1),Y!==null)if(this.cancelNextCallback(),Y===_0){if(this.props.unmountOnExit||this.props.mountOnEnter){var D=this.props.nodeRef?this.props.nodeRef.current:J1.findDOMNode(this);D&&s9(D)}this.performEnter(j)}else this.performExit();else this.props.unmountOnExit&&this.state.status===F0&&this.setState({status:Q1})},x.performEnter=function(j){var Y=this,D=this.props.enter,O=this.context?this.context.isMounting:j,t=this.props.nodeRef?[O]:[J1.findDOMNode(this),O],l=t[0],S=t[1],i=this.getTimeouts(),C=O?i.appear:i.enter;if(!j&&!D||C8.disabled){this.safeSetState({status:fm},function(){Y.props.onEntered(l)});return}this.props.onEnter(l,S),this.safeSetState({status:_0},function(){Y.props.onEntering(l,S),Y.onTransitionEnd(C,function(){Y.safeSetState({status:fm},function(){Y.props.onEntered(l,S)})})})},x.performExit=function(){var j=this,Y=this.props.exit,D=this.getTimeouts(),O=this.props.nodeRef?void 0:J1.findDOMNode(this);if(!Y||C8.disabled){this.safeSetState({status:F0},function(){j.props.onExited(O)});return}this.props.onExit(O),this.safeSetState({status:H4},function(){j.props.onExiting(O),j.onTransitionEnd(D.exit,function(){j.safeSetState({status:F0},function(){j.props.onExited(O)})})})},x.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},x.safeSetState=function(j,Y){Y=this.setNextCallback(Y),this.setState(j,Y)},x.setNextCallback=function(j){var Y=this,D=!0;return this.nextCallback=function(O){D&&(D=!1,Y.nextCallback=null,j(O))},this.nextCallback.cancel=function(){D=!1},this.nextCallback},x.onTransitionEnd=function(j,Y){this.setNextCallback(Y);var D=this.props.nodeRef?this.props.nodeRef.current:J1.findDOMNode(this),O=j==null&&!this.props.addEndListener;if(!D||O){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var t=this.props.nodeRef?[this.nextCallback]:[D,this.nextCallback],l=t[0],S=t[1];this.props.addEndListener(l,S)}j!=null&&setTimeout(this.nextCallback,j)},x.render=function(){var j=this.state.status;if(j===Q1)return null;var Y=this.props,D=Y.children;Y.in,Y.mountOnEnter,Y.unmountOnExit,Y.appear,Y.enter,Y.exit,Y.timeout,Y.addEndListener,Y.onEnter,Y.onEntering,Y.onEntered,Y.onExit,Y.onExiting,Y.onExited,Y.nodeRef;var O=hn(Y,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return jo.createElement(t2.Provider,{value:null},typeof D=="function"?D(j,O):jo.cloneElement(jo.Children.only(D),O))},r}(jo.Component);Df.contextType=t2;Df.propTypes={};function im(){}Df.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:im,onEntering:im,onEntered:im,onExit:im,onExiting:im,onExited:im};Df.UNMOUNTED=Q1;Df.EXITED=F0;Df.ENTERING=_0;Df.ENTERED=fm;Df.EXITING=H4;var pY=function(r,x){return r&&x&&x.split(" ").forEach(function(F){return hY(r,F)})},sC=function(r,x){return r&&x&&x.split(" ").forEach(function(F){return vY(r,F)})},ZA=function(e){XA(r,e);function r(){for(var F,j=arguments.length,Y=new Array(j),D=0;De.scrollTop;function Ty(e,r){var x,F;const{timeout:j,easing:Y,style:D={}}=e;return{duration:(x=D.transitionDuration)!=null?x:typeof j=="number"?j:j[r.mode]||0,easing:(F=D.transitionTimingFunction)!=null?F:typeof Y=="object"?Y[r.mode]:Y,delay:D.transitionDelay}}function TY(e){return ka("MuiCollapse",e)}Ca("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SY=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],CY=e=>{const{orientation:r,classes:x}=e,F={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return qn(F,TY,x)},MY=ln("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.orientation],x.state==="entered"&&r.entered,x.state==="exited"&&!x.in&&x.collapsedSize==="0px"&&r.hidden]}})(({theme:e,ownerState:r})=>Ge({height:0,overflow:"hidden",transition:e.transitions.create("height")},r.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},r.state==="entered"&&Ge({height:"auto",overflow:"visible"},r.orientation==="horizontal"&&{width:"auto"}),r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&{visibility:"hidden"})),AY=ln("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,r)=>r.wrapper})(({ownerState:e})=>Ge({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),EY=ln("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,r)=>r.wrapperInner})(({ownerState:e})=>Ge({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),u9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiCollapse"}),{addEndListener:j,children:Y,className:D,collapsedSize:O="0px",component:t,easing:l,in:S,onEnter:i,onEntered:C,onEntering:w,onExit:v,onExited:m,onExiting:a,orientation:n="vertical",style:s,timeout:o=a9.standard,TransitionComponent:h=Df}=F,f=hn(F,SY),u=Ge({},F,{orientation:n,collapsedSize:O}),b=CY(u),p=nu(),E=Cc(),g=Oe.useRef(null),c=Oe.useRef(),y=typeof O=="number"?`${O}px`:O,A=n==="horizontal",M=A?"width":"height",R=Oe.useRef(null),T=vi(x,R),L=H=>W=>{if(H){const V=R.current;W===void 0?H(V):H(V,W)}},P=()=>g.current?g.current[A?"clientWidth":"clientHeight"]:0,d=L((H,W)=>{g.current&&A&&(g.current.style.position="absolute"),H.style[M]=y,i&&i(H,W)}),k=L((H,W)=>{const V=P();g.current&&A&&(g.current.style.position="");const{duration:$,easing:Z}=Ty({style:s,timeout:o,easing:l},{mode:"enter"});if(o==="auto"){const q=p.transitions.getAutoHeightDuration(V);H.style.transitionDuration=`${q}ms`,c.current=q}else H.style.transitionDuration=typeof $=="string"?$:`${$}ms`;H.style[M]=`${V}px`,H.style.transitionTimingFunction=Z,w&&w(H,W)}),I=L((H,W)=>{H.style[M]="auto",C&&C(H,W)}),N=L(H=>{H.style[M]=`${P()}px`,v&&v(H)}),B=L(m),G=L(H=>{const W=P(),{duration:V,easing:$}=Ty({style:s,timeout:o,easing:l},{mode:"exit"});if(o==="auto"){const Z=p.transitions.getAutoHeightDuration(W);H.style.transitionDuration=`${Z}ms`,c.current=Z}else H.style.transitionDuration=typeof V=="string"?V:`${V}ms`;H.style[M]=y,H.style.transitionTimingFunction=$,a&&a(H)}),U=H=>{o==="auto"&&E.start(c.current||0,H),j&&j(R.current,H)};return Ce.jsx(h,Ge({in:S,onEnter:d,onEntered:I,onEntering:k,onExit:N,onExited:B,onExiting:G,addEndListener:U,nodeRef:R,timeout:o==="auto"?null:o},f,{children:(H,W)=>Ce.jsx(MY,Ge({as:t,className:Ln(b.root,D,{entered:b.entered,exited:!S&&y==="0px"&&b.hidden}[H]),style:Ge({[A?"minWidth":"minHeight"]:y},s),ref:T},W,{ownerState:Ge({},u,{state:H}),children:Ce.jsx(AY,{ownerState:Ge({},u,{state:H}),className:b.wrapper,ref:g,children:Ce.jsx(EY,{ownerState:Ge({},u,{state:H}),className:b.wrapperInner,children:Y})})}))}))});u9.muiSupportAuto=!0;function PY(e){return ka("MuiPaper",e)}Ca("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const LY=["className","component","elevation","square","variant"],IY=e=>{const{square:r,elevation:x,variant:F,classes:j}=e,Y={root:["root",F,!r&&"rounded",F==="elevation"&&`elevation${x}`]};return qn(Y,PY,j)},RY=ln("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],!x.square&&r.rounded,x.variant==="elevation"&&r[`elevation${x.elevation}`]]}})(({theme:e,ownerState:r})=>{var x;return Ge({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!r.square&&{borderRadius:e.shape.borderRadius},r.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},r.variant==="elevation"&&Ge({boxShadow:(e.vars||e).shadows[r.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wi("#fff",T8(r.elevation))}, ${wi("#fff",T8(r.elevation))})`},e.vars&&{backgroundImage:(x=e.vars.overlays)==null?void 0:x[r.elevation]}))}),Ri=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiPaper"}),{className:j,component:Y="div",elevation:D=1,square:O=!1,variant:t="elevation"}=F,l=hn(F,LY),S=Ge({},F,{component:Y,elevation:D,square:O,variant:t}),i=IY(S);return Ce.jsx(RY,Ge({as:Y,ownerState:S,className:Ln(i.root,j),ref:x},l))}),kY=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],DY=["component","slots","slotProps"],OY=["component"];function M8(e,r){const{className:x,elementType:F,ownerState:j,externalForwardedProps:Y,getSlotOwnerState:D,internalForwardedProps:O}=r,t=hn(r,kY),{component:l,slots:S={[e]:void 0},slotProps:i={[e]:void 0}}=Y,C=hn(Y,DY),w=S[e]||F,v=yT(i[e],j),m=$7(Ge({className:x},t,{externalForwardedProps:e==="root"?C:void 0,externalSlotProps:v})),{props:{component:a},internalRef:n}=m,s=hn(m.props,OY),o=vi(n,v==null?void 0:v.ref,r.ref),h=D?D(s):{},f=Ge({},j,h),u=e==="root"?a||l:a,b=Rm(w,Ge({},e==="root"&&!l&&!S[e]&&O,e!=="root"&&!S[e]&&O,s,u&&{as:u},{ref:o}),f);return Object.keys(h).forEach(p=>{delete b[p]}),[w,b]}function FY(e){const{className:r,classes:x,pulsate:F=!1,rippleX:j,rippleY:Y,rippleSize:D,in:O,onExited:t,timeout:l}=e,[S,i]=Oe.useState(!1),C=Ln(r,x.ripple,x.rippleVisible,F&&x.ripplePulsate),w={width:D,height:D,top:-(D/2)+Y,left:-(D/2)+j},v=Ln(x.child,S&&x.childLeaving,F&&x.childPulsate);return!O&&!S&&i(!0),Oe.useEffect(()=>{if(!O&&t!=null){const m=setTimeout(t,l);return()=>{clearTimeout(m)}}},[t,O,l]),Ce.jsx("span",{className:C,style:w,children:Ce.jsx("span",{className:v})})}const hf=Ca("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_Y=["center","classes","className"];let wT=e=>e,A8,E8,P8,L8;const V4=550,zY=80,BY=Ad(A8||(A8=wT` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+Y.message+` transform: scale(1); opacity: 0.3; } -`)),TX=Sd(F8||(F8=LT` +`)),NY=Ad(E8||(E8=wT` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+Y.message+` 100% { opacity: 0; } -`)),SX=Sd(_8||(_8=LT` +`)),UY=Ad(P8||(P8=wT` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+Y.message+` 100% { transform: scale(1); } -`)),CX=ln("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),MX=ln(yX,{name:"MuiTouchRipple",slot:"Ripple"})(z8||(z8=LT` +`)),HY=ln("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),VY=ln(FY,{name:"MuiTouchRipple",slot:"Ripple"})(L8||(L8=wT` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+Y.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),ff.rippleVisible,wX,J4,({theme:e})=>e.transitions.easing.easeInOut,ff.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ff.child,ff.childLeaving,TX,J4,({theme:e})=>e.transitions.easing.easeInOut,ff.childPulsate,SX,({theme:e})=>e.transitions.easing.easeInOut),AX=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTouchRipple"}),{center:j=!1,classes:Y={},className:D}=F,O=hn(F,xX),[t,l]=Oe.useState([]),S=Oe.useRef(0),i=Oe.useRef(null);Oe.useEffect(()=>{i.current&&(i.current(),i.current=null)},[t]);const C=Oe.useRef(!1),w=Sc(),v=Oe.useRef(null),m=Oe.useRef(null),a=Oe.useCallback(h=>{const{pulsate:f,rippleX:u,rippleY:b,rippleSize:p,cb:E}=h;l(g=>[...g,Ce.jsx(MX,{classes:{ripple:Ln(Y.ripple,ff.ripple),rippleVisible:Ln(Y.rippleVisible,ff.rippleVisible),ripplePulsate:Ln(Y.ripplePulsate,ff.ripplePulsate),child:Ln(Y.child,ff.child),childLeaving:Ln(Y.childLeaving,ff.childLeaving),childPulsate:Ln(Y.childPulsate,ff.childPulsate)},timeout:J4,pulsate:f,rippleX:u,rippleY:b,rippleSize:p},S.current)]),S.current+=1,i.current=E},[Y]),n=Oe.useCallback((h={},f={},u=()=>{})=>{const{pulsate:b=!1,center:p=j||f.pulsate,fakeElement:E=!1}=f;if((h==null?void 0:h.type)==="mousedown"&&C.current){C.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(C.current=!0);const g=E?null:m.current,c=g?g.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,A,M;if(p||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)x=Math.round(c.width/2),A=Math.round(c.height/2);else{const{clientX:R,clientY:T}=h.touches&&h.touches.length>0?h.touches[0]:h;x=Math.round(R-c.left),A=Math.round(T-c.top)}if(p)M=Math.sqrt((2*c.width**2+c.height**2)/3),M%2===0&&(M+=1);else{const R=Math.max(Math.abs((g?g.clientWidth:0)-x),x)*2+2,T=Math.max(Math.abs((g?g.clientHeight:0)-A),A)*2+2;M=Math.sqrt(R**2+T**2)}h!=null&&h.touches?v.current===null&&(v.current=()=>{a({pulsate:b,rippleX:x,rippleY:A,rippleSize:M,cb:u})},w.start(bX,()=>{v.current&&(v.current(),v.current=null)})):a({pulsate:b,rippleX:x,rippleY:A,rippleSize:M,cb:u})},[j,a,w]),s=Oe.useCallback(()=>{n({},{pulsate:!0})},[n]),o=Oe.useCallback((h,f)=>{if(w.clear(),(h==null?void 0:h.type)==="touchend"&&v.current){v.current(),v.current=null,w.start(0,()=>{o(h,f)});return}v.current=null,l(u=>u.length>0?u.slice(1):u),i.current=f},[w]);return Oe.useImperativeHandle(y,()=>({pulsate:s,start:n,stop:o}),[s,n,o]),Ce.jsx(CX,Ge({className:Ln(ff.root,Y.root,D),ref:m},O,{children:Ce.jsx(u5,{component:null,exit:!0,children:t})}))}),EX=AX;function PX(e){return ka("MuiButtonBase",e)}const LX=Ma("MuiButtonBase",["root","disabled","focusVisible"]),IX=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],RX=e=>{const{disabled:r,focusVisible:y,focusVisibleClassName:F,classes:j}=e,D=qn({root:["root",r&&"disabled",y&&"focusVisible"]},PX,j);return y&&F&&(D.root+=` ${F}`),D},kX=ln("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${LX.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),DX=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiButtonBase"}),{action:j,centerRipple:Y=!1,children:D,className:O,component:t="button",disabled:l=!1,disableRipple:S=!1,disableTouchRipple:i=!1,focusRipple:C=!1,LinkComponent:w="a",onBlur:v,onClick:m,onContextMenu:a,onDragLeave:n,onFocus:s,onFocusVisible:o,onKeyDown:h,onKeyUp:f,onMouseDown:u,onMouseLeave:b,onMouseUp:p,onTouchEnd:E,onTouchMove:g,onTouchStart:c,tabIndex:x=0,TouchRippleProps:A,touchRippleRef:M,type:R}=F,T=hn(F,IX),L=Oe.useRef(null),P=Oe.useRef(null),d=pi(P,M),{isFocusVisibleRef:k,onFocus:I,onBlur:N,ref:B}=Rb(),[G,U]=Oe.useState(!1);l&&G&&U(!1),Oe.useImperativeHandle(j,()=>({focusVisible:()=>{U(!0),L.current.focus()}}),[]);const[H,W]=Oe.useState(!1);Oe.useEffect(()=>{W(!0)},[]);const V=H&&!S&&!l;Oe.useEffect(()=>{G&&C&&!S&&H&&P.current.pulsate()},[S,C,G,H]);function $(ke,Te,Ae=i){return pa(be=>(Te&&Te(be),!Ae&&P.current&&P.current[ke](be),!0))}const Z=$("start",u),q=$("stop",a),ae=$("stop",n),ie=$("stop",p),fe=$("stop",ke=>{G&&ke.preventDefault(),b&&b(ke)}),Q=$("start",c),J=$("stop",E),oe=$("stop",g),K=$("stop",ke=>{N(ke),k.current===!1&&U(!1),v&&v(ke)},!1),ne=pa(ke=>{L.current||(L.current=ke.currentTarget),I(ke),k.current===!0&&(U(!0),o&&o(ke)),s&&s(ke)}),ce=()=>{const ke=L.current;return t&&t!=="button"&&!(ke.tagName==="A"&&ke.href)},re=Oe.useRef(!1),ee=pa(ke=>{C&&!re.current&&G&&P.current&&ke.key===" "&&(re.current=!0,P.current.stop(ke,()=>{P.current.start(ke)})),ke.target===ke.currentTarget&&ce()&&ke.key===" "&&ke.preventDefault(),h&&h(ke),ke.target===ke.currentTarget&&ce()&&ke.key==="Enter"&&!l&&(ke.preventDefault(),m&&m(ke))}),de=pa(ke=>{C&&ke.key===" "&&P.current&&G&&!ke.defaultPrevented&&(re.current=!1,P.current.stop(ke,()=>{P.current.pulsate(ke)})),f&&f(ke),m&&ke.target===ke.currentTarget&&ce()&&ke.key===" "&&!ke.defaultPrevented&&m(ke)});let le=t;le==="button"&&(T.href||T.to)&&(le=w);const he={};le==="button"?(he.type=R===void 0?"button":R,he.disabled=l):(!T.href&&!T.to&&(he.role="button"),l&&(he["aria-disabled"]=l));const xe=pi(y,B,L),Ee=Ge({},F,{centerRipple:Y,component:t,disabled:l,disableRipple:S,disableTouchRipple:i,focusRipple:C,tabIndex:x,focusVisible:G}),Se=RX(Ee);return Ce.jsxs(kX,Ge({as:le,className:Ln(Se.root,O),ownerState:Ee,onBlur:K,onClick:m,onContextMenu:q,onFocus:ne,onKeyDown:ee,onKeyUp:de,onMouseDown:Z,onMouseLeave:fe,onMouseUp:ie,onDragLeave:ae,onTouchEnd:J,onTouchMove:oe,onTouchStart:Q,ref:xe,tabIndex:l?-1:x,type:R},he,T,{children:[D,V?Ce.jsx(EX,Ge({ref:d,center:Y},A)):null]}))}),Af=DX;function OX(e){return ka("MuiAlert",e)}const FX=Ma("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),B8=FX;function _X(e){return ka("MuiIconButton",e)}const zX=Ma("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),BX=zX,NX=["edge","children","className","color","disabled","disableFocusRipple","size"],UX=e=>{const{classes:r,disabled:y,color:F,edge:j,size:Y}=e,D={root:["root",y&&"disabled",F!=="default"&&`color${Gn(F)}`,j&&`edge${Gn(j)}`,`size${Gn(Y)}`]};return qn(D,_X,r)},HX=ln(Af,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.color!=="default"&&r[`color${Gn(y.color)}`],y.edge&&r[`edge${Gn(y.edge)}`],r[`size${Gn(y.size)}`]]}})(({theme:e,ownerState:r})=>Ge({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:e,ownerState:r})=>{var y;const F=(y=(e.vars||e).palette)==null?void 0:y[r.color];return Ge({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&Ge({color:F==null?void 0:F.main},!r.disableRipple&&{"&:hover":Ge({},F&&{backgroundColor:e.vars?`rgba(${F.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(F.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${BX.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),VX=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiIconButton"}),{edge:j=!1,children:Y,className:D,color:O="default",disabled:t=!1,disableFocusRipple:l=!1,size:S="medium"}=F,i=hn(F,NX),C=Ge({},F,{edge:j,color:O,disabled:t,disableFocusRipple:l,size:S}),w=UX(C);return Ce.jsx(HX,Ge({className:Ln(w.root,D),centerRipple:!0,focusRipple:!l,disabled:t,ref:y},i,{ownerState:C,children:Y}))}),fl=VX,jX=ci(Ce.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),GX=ci(Ce.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),WX=ci(Ce.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),$X=ci(Ce.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),x9=ci(Ce.jsx("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"),YX=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],XX=e=>{const{variant:r,color:y,severity:F,classes:j}=e,Y={root:["root",`color${Gn(y||F)}`,`${r}${Gn(y||F)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return qn(Y,OX,j)},ZX=ln(Ri,{name:"MuiAlert",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],r[`${y.variant}${Gn(y.color||y.severity)}`]]}})(({theme:e})=>{const r=e.palette.mode==="light"?cg:fg,y=e.palette.mode==="light"?fg:cg;return Ge({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,F])=>F.main&&F.light).map(([F])=>({props:{colorSeverity:F,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${F}Color`]:r(e.palette[F].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${F}StandardBg`]:y(e.palette[F].light,.9),[`& .${B8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${F}IconColor`]}:{color:e.palette[F].main}}})),...Object.entries(e.palette).filter(([,F])=>F.main&&F.light).map(([F])=>({props:{colorSeverity:F,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${F}Color`]:r(e.palette[F].light,.6),border:`1px solid ${(e.vars||e).palette[F].light}`,[`& .${B8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${F}IconColor`]}:{color:e.palette[F].main}}})),...Object.entries(e.palette).filter(([,F])=>F.main&&F.dark).map(([F])=>({props:{colorSeverity:F,variant:"filled"},style:Ge({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${F}FilledColor`],backgroundColor:e.vars.palette.Alert[`${F}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[F].dark:e.palette[F].main,color:e.palette.getContrastText(e.palette[F].main)})}))]})}),KX=ln("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),JX=ln("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N8=ln("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),U8={success:Ce.jsx(jX,{fontSize:"inherit"}),warning:Ce.jsx(GX,{fontSize:"inherit"}),error:Ce.jsx(WX,{fontSize:"inherit"}),info:Ce.jsx($X,{fontSize:"inherit"})},QX=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiAlert"}),{action:j,children:Y,className:D,closeText:O="Close",color:t,components:l={},componentsProps:S={},icon:i,iconMapping:C=U8,onClose:w,role:v="alert",severity:m="success",slotProps:a={},slots:n={},variant:s="standard"}=F,o=hn(F,YX),h=Ge({},F,{color:t,severity:m,variant:s,colorSeverity:t||m}),f=XX(h),u={slots:Ge({closeButton:l.CloseButton,closeIcon:l.CloseIcon},n),slotProps:Ge({},S,a)},[b,p]=D8("closeButton",{elementType:fl,externalForwardedProps:u,ownerState:h}),[E,g]=D8("closeIcon",{elementType:x9,externalForwardedProps:u,ownerState:h});return Ce.jsxs(ZX,Ge({role:v,elevation:0,ownerState:h,className:Ln(f.root,D),ref:y},o,{children:[i!==!1?Ce.jsx(KX,{ownerState:h,className:f.icon,children:i||C[m]||U8[m]}):null,Ce.jsx(JX,{ownerState:h,className:f.message,children:Y}),j!=null?Ce.jsx(N8,{ownerState:h,className:f.action,children:j}):null,j==null&&w?Ce.jsx(N8,{ownerState:h,className:f.action,children:Ce.jsx(b,Ge({size:"small","aria-label":O,title:O,color:"inherit",onClick:w},p,{children:Ce.jsx(E,Ge({fontSize:"small"},g))}))}):null]}))}),b9=QX;function qX(e){return ka("MuiTypography",e)}Ma("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const eZ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],tZ=e=>{const{align:r,gutterBottom:y,noWrap:F,paragraph:j,variant:Y,classes:D}=e,O={root:["root",Y,e.align!=="inherit"&&`align${Gn(r)}`,y&&"gutterBottom",F&&"noWrap",j&&"paragraph"]};return qn(O,qX,D)},rZ=ln("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.variant&&r[y.variant],y.align!=="inherit"&&r[`align${Gn(y.align)}`],y.noWrap&&r.noWrap,y.gutterBottom&&r.gutterBottom,y.paragraph&&r.paragraph]}})(({theme:e,ownerState:r})=>Ge({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&e.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),H8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nZ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},aZ=e=>nZ[e]||e,iZ=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTypography"}),j=aZ(F.color),Y=Lb(Ge({},F,{color:j})),{align:D="inherit",className:O,component:t,gutterBottom:l=!1,noWrap:S=!1,paragraph:i=!1,variant:C="body1",variantMapping:w=H8}=Y,v=hn(Y,eZ),m=Ge({},Y,{align:D,color:j,className:O,component:t,gutterBottom:l,noWrap:S,paragraph:i,variant:C,variantMapping:w}),a=t||(i?"p":w[C]||H8[C])||"span",n=tZ(m);return Ce.jsx(rZ,Ge({as:a,ref:y,ownerState:m,className:Ln(n.root,O)},v))}),ea=iZ;function oZ(e){return ka("MuiAppBar",e)}Ma("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const sZ=["className","color","enableColorOnDark","position"],lZ=e=>{const{color:r,position:y,classes:F}=e,j={root:["root",`color${Gn(r)}`,`position${Gn(y)}`]};return qn(j,oZ,F)},Ww=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,uZ=ln(Ri,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[`position${Gn(y.position)}`],r[`color${Gn(y.color)}`]]}})(({theme:e,ownerState:r})=>{const y=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Ge({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&Ge({},r.color==="default"&&{backgroundColor:y,color:e.palette.getContrastText(y)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&Ge({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Ge({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ww(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:Ww(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:Ww(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:Ww(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),cZ=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiAppBar"}),{className:j,color:Y="primary",enableColorOnDark:D=!1,position:O="fixed"}=F,t=hn(F,sZ),l=Ge({},F,{color:Y,position:O,enableColorOnDark:D}),S=lZ(l);return Ce.jsx(uZ,Ge({square:!0,component:"header",ownerState:l,elevation:4,className:Ln(S.root,j,O==="fixed"&&"mui-fixed"),ref:y},t))}),w9=cZ;function V8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function T9(e={}){const{ignoreAccents:r=!0,ignoreCase:y=!0,limit:F,matchFrom:j="any",stringify:Y,trim:D=!1}=e;return(O,{inputValue:t,getOptionLabel:l})=>{let S=D?t.trim():t;y&&(S=S.toLowerCase()),r&&(S=V8(S));const i=S?O.filter(C=>{let w=(Y||l)(C);return y&&(w=w.toLowerCase()),r&&(w=V8(w)),j==="start"?w.indexOf(S)===0:w.indexOf(S)>-1}):O;return typeof F=="number"?i.slice(0,F):i}}function $w(e,r){for(let y=0;y{var r;return e.current!==null&&((r=e.current.parentElement)==null?void 0:r.contains(document.activeElement))};function hZ(e){const{unstable_isActiveElementInListbox:r=dZ,unstable_classNamePrefix:y="Mui",autoComplete:F=!1,autoHighlight:j=!1,autoSelect:Y=!1,blurOnSelect:D=!1,clearOnBlur:O=!e.freeSolo,clearOnEscape:t=!1,componentName:l="useAutocomplete",defaultValue:S=e.multiple?[]:null,disableClearable:i=!1,disableCloseOnSelect:C=!1,disabled:w,disabledItemsFocusable:v=!1,disableListWrap:m=!1,filterOptions:a=fZ,filterSelectedOptions:n=!1,freeSolo:s=!1,getOptionDisabled:o,getOptionKey:h,getOptionLabel:f=ut=>{var It;return(It=ut.label)!=null?It:ut},groupBy:u,handleHomeEndKeys:b=!e.freeSolo,id:p,includeInputInList:E=!1,inputValue:g,isOptionEqualToValue:c=(ut,It)=>ut===It,multiple:x=!1,onChange:A,onClose:M,onHighlightChange:R,onInputChange:T,onOpen:L,open:P,openOnFocus:d=!1,options:k,readOnly:I=!1,selectOnFocus:N=!e.freeSolo,value:B}=e,G=Ui(p);let U=f;U=ut=>{const It=f(ut);return typeof It!="string"?String(It):It};const H=Oe.useRef(!1),W=Oe.useRef(!0),V=Oe.useRef(null),$=Oe.useRef(null),[Z,q]=Oe.useState(null),[ae,ie]=Oe.useState(-1),fe=j?0:-1,Q=Oe.useRef(fe),[J,oe]=Dl({controlled:B,default:S,name:l}),[K,ne]=Dl({controlled:g,default:"",name:l,state:"inputValue"}),[ce,re]=Oe.useState(!1),ee=Oe.useCallback((ut,It)=>{if(!(x?J.length!(n&&(x?J:[J]).some(It=>It!==null&&c(ut,It)))),{inputValue:Ee&&he?"":K,getOptionLabel:U}):[],Te=e5({filteredOptions:ke,value:J,inputValue:K});Oe.useEffect(()=>{const ut=J!==Te.value;ce&&!ut||s&&!ut||ee(null,J)},[J,ee,ce,Te.value,s]);const Ae=de&&ke.length>0&&!I,be=pa(ut=>{ut===-1?V.current.focus():Z.querySelector(`[data-tag-index="${ut}"]`).focus()});Oe.useEffect(()=>{x&&ae>J.length-1&&(ie(-1),be(-1))},[J,x,ae,be]);function Ie(ut,It){if(!$.current||ut<0||ut>=ke.length)return-1;let Vt=ut;for(;;){const xt=$.current.querySelector(`[data-option-index="${Vt}"]`),Lt=v?!1:!xt||xt.disabled||xt.getAttribute("aria-disabled")==="true";if(xt&&xt.hasAttribute("tabindex")&&!Lt)return Vt;if(It==="next"?Vt=(Vt+1)%ke.length:Vt=(Vt-1+ke.length)%ke.length,Vt===ut)return-1}}const Ue=pa(({event:ut,index:It,reason:Vt="auto"})=>{if(Q.current=It,It===-1?V.current.removeAttribute("aria-activedescendant"):V.current.setAttribute("aria-activedescendant",`${G}-option-${It}`),R&&R(ut,It===-1?null:ke[It],Vt),!$.current)return;const xt=$.current.querySelector(`[role="option"].${y}-focused`);xt&&(xt.classList.remove(`${y}-focused`),xt.classList.remove(`${y}-focusVisible`));let Lt=$.current;if($.current.getAttribute("role")!=="listbox"&&(Lt=$.current.parentElement.querySelector('[role="listbox"]')),!Lt)return;if(It===-1){Lt.scrollTop=0;return}const Xt=$.current.querySelector(`[data-option-index="${It}"]`);if(Xt&&(Xt.classList.add(`${y}-focused`),Vt==="keyboard"&&Xt.classList.add(`${y}-focusVisible`),Lt.scrollHeight>Lt.clientHeight&&Vt!=="mouse"&&Vt!=="touch")){const dr=Xt,Tt=Lt.clientHeight+Lt.scrollTop,Kt=dr.offsetTop+dr.offsetHeight;Kt>Tt?Lt.scrollTop=Kt-Lt.clientHeight:dr.offsetTop-dr.offsetHeight*(u?1.3:0){if(!Se)return;const Xt=Ie((()=>{const dr=ke.length-1;if(It==="reset")return fe;if(It==="start")return 0;if(It==="end")return dr;const Tt=Q.current+It;return Tt<0?Tt===-1&&E?-1:m&&Q.current!==-1||Math.abs(It)>1?0:dr:Tt>dr?Tt===dr+1&&E?-1:m||Math.abs(It)>1?dr:0:Tt})(),Vt);if(Ue({index:Xt,reason:xt,event:ut}),F&&It!=="reset")if(Xt===-1)V.current.value=K;else{const dr=U(ke[Xt]);V.current.value=dr,dr.toLowerCase().indexOf(K.toLowerCase())===0&&K.length>0&&V.current.setSelectionRange(K.length,dr.length)}}),ze=()=>{const ut=(It,Vt)=>{const xt=It?U(It):"",Lt=Vt?U(Vt):"";return xt===Lt};if(Q.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==ke.length&&Te.inputValue===K&&(x?J.length===Te.value.length&&Te.value.every((It,Vt)=>U(J[Vt])===U(It)):ut(Te.value,J))){const It=Te.filteredOptions[Q.current];if(It)return $w(ke,Vt=>U(Vt)===U(It))}return-1},$e=Oe.useCallback(()=>{if(!Se)return;const ut=ze();if(ut!==-1){Q.current=ut;return}const It=x?J[0]:J;if(ke.length===0||It==null){Ne({diff:"reset"});return}if($.current){if(It!=null){const Vt=ke[Q.current];if(x&&Vt&&$w(J,Lt=>c(Vt,Lt))!==-1)return;const xt=$w(ke,Lt=>c(Lt,It));xt===-1?Ne({diff:"reset"}):Ue({index:xt});return}if(Q.current>=ke.length-1){Ue({index:ke.length-1});return}Ue({index:Q.current})}},[ke.length,x?!1:J,n,Ne,Ue,Se,K,x]),st=pa(ut=>{Wx($,ut),ut&&$e()});Oe.useEffect(()=>{$e()},[$e]);const vt=ut=>{de||(le(!0),xe(!0),L&&L(ut))},at=(ut,It)=>{de&&(le(!1),M&&M(ut,It))},nt=(ut,It,Vt,xt)=>{if(x){if(J.length===It.length&&J.every((Lt,Xt)=>Lt===It[Xt]))return}else if(J===It)return;A&&A(ut,It,Vt,xt),oe(It)},mt=Oe.useRef(!1),rt=(ut,It,Vt="selectOption",xt="options")=>{let Lt=Vt,Xt=It;if(x){Xt=Array.isArray(J)?J.slice():[];const dr=$w(Xt,Tt=>c(It,Tt));dr===-1?Xt.push(It):xt!=="freeSolo"&&(Xt.splice(dr,1),Lt="removeOption")}ee(ut,Xt),nt(ut,Xt,Lt,{option:It}),!C&&(!ut||!ut.ctrlKey&&!ut.metaKey)&&at(ut,Lt),(D===!0||D==="touch"&&mt.current||D==="mouse"&&!mt.current)&&V.current.blur()};function lt(ut,It){if(ut===-1)return-1;let Vt=ut;for(;;){if(It==="next"&&Vt===J.length||It==="previous"&&Vt===-1)return-1;const xt=Z.querySelector(`[data-tag-index="${Vt}"]`);if(!xt||!xt.hasAttribute("tabindex")||xt.disabled||xt.getAttribute("aria-disabled")==="true")Vt+=It==="next"?1:-1;else return Vt}}const dt=(ut,It)=>{if(!x)return;K===""&&at(ut,"toggleInput");let Vt=ae;ae===-1?K===""&&It==="previous"&&(Vt=J.length-1):(Vt+=It==="next"?1:-1,Vt<0&&(Vt=0),Vt===J.length&&(Vt=-1)),Vt=lt(Vt,It),ie(Vt),be(Vt)},wt=ut=>{H.current=!0,ne(""),T&&T(ut,"","clear"),nt(ut,x?[]:null,"clear")},et=ut=>It=>{if(ut.onKeyDown&&ut.onKeyDown(It),!It.defaultMuiPrevented&&(ae!==-1&&["ArrowLeft","ArrowRight"].indexOf(It.key)===-1&&(ie(-1),be(-1)),It.which!==229))switch(It.key){case"Home":Se&&b&&(It.preventDefault(),Ne({diff:"start",direction:"next",reason:"keyboard",event:It}));break;case"End":Se&&b&&(It.preventDefault(),Ne({diff:"end",direction:"previous",reason:"keyboard",event:It}));break;case"PageUp":It.preventDefault(),Ne({diff:-j8,direction:"previous",reason:"keyboard",event:It}),vt(It);break;case"PageDown":It.preventDefault(),Ne({diff:j8,direction:"next",reason:"keyboard",event:It}),vt(It);break;case"ArrowDown":It.preventDefault(),Ne({diff:1,direction:"next",reason:"keyboard",event:It}),vt(It);break;case"ArrowUp":It.preventDefault(),Ne({diff:-1,direction:"previous",reason:"keyboard",event:It}),vt(It);break;case"ArrowLeft":dt(It,"previous");break;case"ArrowRight":dt(It,"next");break;case"Enter":if(Q.current!==-1&&Se){const Vt=ke[Q.current],xt=o?o(Vt):!1;if(It.preventDefault(),xt)return;rt(It,Vt,"selectOption"),F&&V.current.setSelectionRange(V.current.value.length,V.current.value.length)}else s&&K!==""&&Ee===!1&&(x&&It.preventDefault(),rt(It,K,"createOption","freeSolo"));break;case"Escape":Se?(It.preventDefault(),It.stopPropagation(),at(It,"escape")):t&&(K!==""||x&&J.length>0)&&(It.preventDefault(),It.stopPropagation(),wt(It));break;case"Backspace":if(x&&!I&&K===""&&J.length>0){const Vt=ae===-1?J.length-1:ae,xt=J.slice();xt.splice(Vt,1),nt(It,xt,"removeOption",{option:J[Vt]})}break;case"Delete":if(x&&!I&&K===""&&J.length>0&&ae!==-1){const Vt=ae,xt=J.slice();xt.splice(Vt,1),nt(It,xt,"removeOption",{option:J[Vt]})}break}},Be=ut=>{re(!0),d&&!H.current&&vt(ut)},Ye=ut=>{if(r($)){V.current.focus();return}re(!1),W.current=!0,H.current=!1,Y&&Q.current!==-1&&Se?rt(ut,ke[Q.current],"blur"):Y&&s&&K!==""?rt(ut,K,"blur","freeSolo"):O&&ee(ut,J),at(ut,"blur")},Ke=ut=>{const It=ut.target.value;K!==It&&(ne(It),xe(!1),T&&T(ut,It,"input")),It===""?!i&&!x&&nt(ut,null,"clear"):vt(ut)},We=ut=>{const It=Number(ut.currentTarget.getAttribute("data-option-index"));Q.current!==It&&Ue({event:ut,index:It,reason:"mouse"})},Fe=ut=>{Ue({event:ut,index:Number(ut.currentTarget.getAttribute("data-option-index")),reason:"touch"}),mt.current=!0},Me=ut=>{const It=Number(ut.currentTarget.getAttribute("data-option-index"));rt(ut,ke[It],"selectOption"),mt.current=!1},we=ut=>It=>{const Vt=J.slice();Vt.splice(ut,1),nt(It,Vt,"removeOption",{option:J[ut]})},Re=ut=>{de?at(ut,"toggleInput"):vt(ut)},Pe=ut=>{ut.currentTarget.contains(ut.target)&&ut.target.getAttribute("id")!==G&&ut.preventDefault()},Ve=ut=>{ut.currentTarget.contains(ut.target)&&(V.current.focus(),N&&W.current&&V.current.selectionEnd-V.current.selectionStart===0&&V.current.select(),W.current=!1)},Je=ut=>{!w&&(K===""||!de)&&Re(ut)};let ot=s&&K.length>0;ot=ot||(x?J.length>0:J!==null);let yt=ke;return u&&(yt=ke.reduce((ut,It,Vt)=>{const xt=u(It);return ut.length>0&&ut[ut.length-1].group===xt?ut[ut.length-1].options.push(It):ut.push({key:Vt,index:Vt,group:xt,options:[It]}),ut},[])),w&&ce&&Ye(),{getRootProps:(ut={})=>Ge({"aria-owns":Ae?`${G}-listbox`:null},ut,{onKeyDown:et(ut),onMouseDown:Pe,onClick:Ve}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:K,onBlur:Ye,onFocus:Be,onChange:Ke,onMouseDown:Je,"aria-activedescendant":Se?"":null,"aria-autocomplete":F?"both":"list","aria-controls":Ae?`${G}-listbox`:void 0,"aria-expanded":Ae,autoComplete:"off",ref:V,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getTagProps:({index:ut})=>Ge({key:ut,"data-tag-index":ut,tabIndex:-1},!I&&{onDelete:we(ut)}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:st,onMouseDown:ut=>{ut.preventDefault()}}),getOptionProps:({index:ut,option:It})=>{var Vt;const xt=(x?J:[J]).some(Xt=>Xt!=null&&c(It,Xt)),Lt=o?o(It):!1;return{key:(Vt=h==null?void 0:h(It))!=null?Vt:U(It),tabIndex:-1,role:"option",id:`${G}-option-${ut}`,onMouseMove:We,onClick:Me,onTouchStart:Fe,"data-option-index":ut,"aria-disabled":Lt,"aria-selected":xt}},id:G,inputValue:K,value:J,dirty:ot,expanded:Se&&Z,popupOpen:Se,focused:ce||ae!==-1,anchorEl:Z,setAnchorEl:q,focusedTag:ae,groupedOptions:yt}}var c5={};Object.defineProperty(c5,"__esModule",{value:!0});var S9=c5.default=void 0,vZ=gZ(Oe),pZ=v9;function C9(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,y=new WeakMap;return(C9=function(F){return F?y:r})(e)}function gZ(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var y=C9(r);if(y&&y.has(e))return y.get(e);var F={__proto__:null},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in e)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(e,Y)){var D=j?Object.getOwnPropertyDescriptor(e,Y):null;D&&(D.get||D.set)?Object.defineProperty(F,Y,D):F[Y]=e[Y]}return F.default=e,y&&y.set(e,F),F}function mZ(e){return Object.keys(e).length===0}function yZ(e=null){const r=vZ.useContext(pZ.ThemeContext);return!r||mZ(r)?e:r}S9=c5.default=yZ;var Xu="top",Ef="bottom",Pf="right",Zu="left",f5="auto",Db=[Xu,Ef,Pf,Zu],Sy="start",Zx="end",xZ="clippingParents",M9="viewport",A1="popper",bZ="reference",G8=Db.reduce(function(e,r){return e.concat([r+"-"+Sy,r+"-"+Zx])},[]),A9=[].concat(Db,[f5]).reduce(function(e,r){return e.concat([r,r+"-"+Sy,r+"-"+Zx])},[]),wZ="beforeRead",TZ="read",SZ="afterRead",CZ="beforeMain",MZ="main",AZ="afterMain",EZ="beforeWrite",PZ="write",LZ="afterWrite",IZ=[wZ,TZ,SZ,CZ,MZ,AZ,EZ,PZ,LZ];function fh(e){return e?(e.nodeName||"").toLowerCase():null}function Ec(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function dg(e){var r=Ec(e).Element;return e instanceof r||e instanceof Element}function bf(e){var r=Ec(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function d5(e){if(typeof ShadowRoot>"u")return!1;var r=Ec(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function RZ(e){var r=e.state;Object.keys(r.elements).forEach(function(y){var F=r.styles[y]||{},j=r.attributes[y]||{},Y=r.elements[y];!bf(Y)||!fh(Y)||(Object.assign(Y.style,F),Object.keys(j).forEach(function(D){var O=j[D];O===!1?Y.removeAttribute(D):Y.setAttribute(D,O===!0?"":O)}))})}function kZ(e){var r=e.state,y={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,y.popper),r.styles=y,r.elements.arrow&&Object.assign(r.elements.arrow.style,y.arrow),function(){Object.keys(r.elements).forEach(function(F){var j=r.elements[F],Y=r.attributes[F]||{},D=Object.keys(r.styles.hasOwnProperty(F)?r.styles[F]:y[F]),O=D.reduce(function(t,l){return t[l]="",t},{});!bf(j)||!fh(j)||(Object.assign(j.style,O),Object.keys(Y).forEach(function(t){j.removeAttribute(t)}))})}}const DZ={name:"applyStyles",enabled:!0,phase:"write",fn:RZ,effect:kZ,requires:["computeStyles"]};function lh(e){return e.split("-")[0]}var tg=Math.max,u2=Math.min,Cy=Math.round;function Q4(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function E9(){return!/^((?!chrome|android).)*safari/i.test(Q4())}function My(e,r,y){r===void 0&&(r=!1),y===void 0&&(y=!1);var F=e.getBoundingClientRect(),j=1,Y=1;r&&bf(e)&&(j=e.offsetWidth>0&&Cy(F.width)/e.offsetWidth||1,Y=e.offsetHeight>0&&Cy(F.height)/e.offsetHeight||1);var D=dg(e)?Ec(e):window,O=D.visualViewport,t=!E9()&&y,l=(F.left+(t&&O?O.offsetLeft:0))/j,S=(F.top+(t&&O?O.offsetTop:0))/Y,i=F.width/j,C=F.height/Y;return{width:i,height:C,top:S,right:l+i,bottom:S+C,left:l,x:l,y:S}}function h5(e){var r=My(e),y=e.offsetWidth,F=e.offsetHeight;return Math.abs(r.width-y)<=1&&(y=r.width),Math.abs(r.height-F)<=1&&(F=r.height),{x:e.offsetLeft,y:e.offsetTop,width:y,height:F}}function P9(e,r){var y=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(y&&d5(y)){var F=r;do{if(F&&e.isSameNode(F))return!0;F=F.parentNode||F.host}while(F)}return!1}function sv(e){return Ec(e).getComputedStyle(e)}function OZ(e){return["table","td","th"].indexOf(fh(e))>=0}function Yp(e){return((dg(e)?e.ownerDocument:e.document)||window.document).documentElement}function IT(e){return fh(e)==="html"?e:e.assignedSlot||e.parentNode||(d5(e)?e.host:null)||Yp(e)}function W8(e){return!bf(e)||sv(e).position==="fixed"?null:e.offsetParent}function FZ(e){var r=/firefox/i.test(Q4()),y=/Trident/i.test(Q4());if(y&&bf(e)){var F=sv(e);if(F.position==="fixed")return null}var j=IT(e);for(d5(j)&&(j=j.host);bf(j)&&["html","body"].indexOf(fh(j))<0;){var Y=sv(j);if(Y.transform!=="none"||Y.perspective!=="none"||Y.contain==="paint"||["transform","perspective"].indexOf(Y.willChange)!==-1||r&&Y.willChange==="filter"||r&&Y.filter&&Y.filter!=="none")return j;j=j.parentNode}return null}function Ob(e){for(var r=Ec(e),y=W8(e);y&&OZ(y)&&sv(y).position==="static";)y=W8(y);return y&&(fh(y)==="html"||fh(y)==="body"&&sv(y).position==="static")?r:y||FZ(e)||r}function v5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gx(e,r,y){return tg(e,u2(r,y))}function _Z(e,r,y){var F=gx(e,r,y);return F>y?y:F}function L9(){return{top:0,right:0,bottom:0,left:0}}function I9(e){return Object.assign({},L9(),e)}function R9(e,r){return r.reduce(function(y,F){return y[F]=e,y},{})}var zZ=function(r,y){return r=typeof r=="function"?r(Object.assign({},y.rects,{placement:y.placement})):r,I9(typeof r!="number"?r:R9(r,Db))};function BZ(e){var r,y=e.state,F=e.name,j=e.options,Y=y.elements.arrow,D=y.modifiersData.popperOffsets,O=lh(y.placement),t=v5(O),l=[Zu,Pf].indexOf(O)>=0,S=l?"height":"width";if(!(!Y||!D)){var i=zZ(j.padding,y),C=h5(Y),w=t==="y"?Xu:Zu,v=t==="y"?Ef:Pf,m=y.rects.reference[S]+y.rects.reference[t]-D[t]-y.rects.popper[S],a=D[t]-y.rects.reference[t],n=Ob(Y),s=n?t==="y"?n.clientHeight||0:n.clientWidth||0:0,o=m/2-a/2,h=i[w],f=s-C[S]-i[v],u=s/2-C[S]/2+o,b=gx(h,u,f),p=t;y.modifiersData[F]=(r={},r[p]=b,r.centerOffset=b-u,r)}}function NZ(e){var r=e.state,y=e.options,F=y.element,j=F===void 0?"[data-popper-arrow]":F;j!=null&&(typeof j=="string"&&(j=r.elements.popper.querySelector(j),!j)||P9(r.elements.popper,j)&&(r.elements.arrow=j))}const UZ={name:"arrow",enabled:!0,phase:"main",fn:BZ,effect:NZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ay(e){return e.split("-")[1]}var HZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VZ(e,r){var y=e.x,F=e.y,j=r.devicePixelRatio||1;return{x:Cy(y*j)/j||0,y:Cy(F*j)/j||0}}function $8(e){var r,y=e.popper,F=e.popperRect,j=e.placement,Y=e.variation,D=e.offsets,O=e.position,t=e.gpuAcceleration,l=e.adaptive,S=e.roundOffsets,i=e.isFixed,C=D.x,w=C===void 0?0:C,v=D.y,m=v===void 0?0:v,a=typeof S=="function"?S({x:w,y:m}):{x:w,y:m};w=a.x,m=a.y;var n=D.hasOwnProperty("x"),s=D.hasOwnProperty("y"),o=Zu,h=Xu,f=window;if(l){var u=Ob(y),b="clientHeight",p="clientWidth";if(u===Ec(y)&&(u=Yp(y),sv(u).position!=="static"&&O==="absolute"&&(b="scrollHeight",p="scrollWidth")),u=u,j===Xu||(j===Zu||j===Pf)&&Y===Zx){h=Ef;var E=i&&u===f&&f.visualViewport?f.visualViewport.height:u[b];m-=E-F.height,m*=t?1:-1}if(j===Zu||(j===Xu||j===Ef)&&Y===Zx){o=Pf;var g=i&&u===f&&f.visualViewport?f.visualViewport.width:u[p];w-=g-F.width,w*=t?1:-1}}var c=Object.assign({position:O},l&&HZ),x=S===!0?VZ({x:w,y:m},Ec(y)):{x:w,y:m};if(w=x.x,m=x.y,t){var A;return Object.assign({},c,(A={},A[h]=s?"0":"",A[o]=n?"0":"",A.transform=(f.devicePixelRatio||1)<=1?"translate("+w+"px, "+m+"px)":"translate3d("+w+"px, "+m+"px, 0)",A))}return Object.assign({},c,(r={},r[h]=s?m+"px":"",r[o]=n?w+"px":"",r.transform="",r))}function jZ(e){var r=e.state,y=e.options,F=y.gpuAcceleration,j=F===void 0?!0:F,Y=y.adaptive,D=Y===void 0?!0:Y,O=y.roundOffsets,t=O===void 0?!0:O,l={placement:lh(r.placement),variation:Ay(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:j,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,$8(Object.assign({},l,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:D,roundOffsets:t})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,$8(Object.assign({},l,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:t})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const GZ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jZ,data:{}};var Yw={passive:!0};function WZ(e){var r=e.state,y=e.instance,F=e.options,j=F.scroll,Y=j===void 0?!0:j,D=F.resize,O=D===void 0?!0:D,t=Ec(r.elements.popper),l=[].concat(r.scrollParents.reference,r.scrollParents.popper);return Y&&l.forEach(function(S){S.addEventListener("scroll",y.update,Yw)}),O&&t.addEventListener("resize",y.update,Yw),function(){Y&&l.forEach(function(S){S.removeEventListener("scroll",y.update,Yw)}),O&&t.removeEventListener("resize",y.update,Yw)}}const $Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WZ,data:{}};var YZ={left:"right",right:"left",bottom:"top",top:"bottom"};function E3(e){return e.replace(/left|right|bottom|top/g,function(r){return YZ[r]})}var XZ={start:"end",end:"start"};function Y8(e){return e.replace(/start|end/g,function(r){return XZ[r]})}function p5(e){var r=Ec(e),y=r.pageXOffset,F=r.pageYOffset;return{scrollLeft:y,scrollTop:F}}function g5(e){return My(Yp(e)).left+p5(e).scrollLeft}function ZZ(e,r){var y=Ec(e),F=Yp(e),j=y.visualViewport,Y=F.clientWidth,D=F.clientHeight,O=0,t=0;if(j){Y=j.width,D=j.height;var l=E9();(l||!l&&r==="fixed")&&(O=j.offsetLeft,t=j.offsetTop)}return{width:Y,height:D,x:O+g5(e),y:t}}function KZ(e){var r,y=Yp(e),F=p5(e),j=(r=e.ownerDocument)==null?void 0:r.body,Y=tg(y.scrollWidth,y.clientWidth,j?j.scrollWidth:0,j?j.clientWidth:0),D=tg(y.scrollHeight,y.clientHeight,j?j.scrollHeight:0,j?j.clientHeight:0),O=-F.scrollLeft+g5(e),t=-F.scrollTop;return sv(j||y).direction==="rtl"&&(O+=tg(y.clientWidth,j?j.clientWidth:0)-Y),{width:Y,height:D,x:O,y:t}}function m5(e){var r=sv(e),y=r.overflow,F=r.overflowX,j=r.overflowY;return/auto|scroll|overlay|hidden/.test(y+j+F)}function k9(e){return["html","body","#document"].indexOf(fh(e))>=0?e.ownerDocument.body:bf(e)&&m5(e)?e:k9(IT(e))}function mx(e,r){var y;r===void 0&&(r=[]);var F=k9(e),j=F===((y=e.ownerDocument)==null?void 0:y.body),Y=Ec(F),D=j?[Y].concat(Y.visualViewport||[],m5(F)?F:[]):F,O=r.concat(D);return j?O:O.concat(mx(IT(D)))}function q4(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JZ(e,r){var y=My(e,!1,r==="fixed");return y.top=y.top+e.clientTop,y.left=y.left+e.clientLeft,y.bottom=y.top+e.clientHeight,y.right=y.left+e.clientWidth,y.width=e.clientWidth,y.height=e.clientHeight,y.x=y.left,y.y=y.top,y}function X8(e,r,y){return r===M9?q4(ZZ(e,y)):dg(r)?JZ(r,y):q4(KZ(Yp(e)))}function QZ(e){var r=mx(IT(e)),y=["absolute","fixed"].indexOf(sv(e).position)>=0,F=y&&bf(e)?Ob(e):e;return dg(F)?r.filter(function(j){return dg(j)&&P9(j,F)&&fh(j)!=="body"}):[]}function qZ(e,r,y,F){var j=r==="clippingParents"?QZ(e):[].concat(r),Y=[].concat(j,[y]),D=Y[0],O=Y.reduce(function(t,l){var S=X8(e,l,F);return t.top=tg(S.top,t.top),t.right=u2(S.right,t.right),t.bottom=u2(S.bottom,t.bottom),t.left=tg(S.left,t.left),t},X8(e,D,F));return O.width=O.right-O.left,O.height=O.bottom-O.top,O.x=O.left,O.y=O.top,O}function D9(e){var r=e.reference,y=e.element,F=e.placement,j=F?lh(F):null,Y=F?Ay(F):null,D=r.x+r.width/2-y.width/2,O=r.y+r.height/2-y.height/2,t;switch(j){case Xu:t={x:D,y:r.y-y.height};break;case Ef:t={x:D,y:r.y+r.height};break;case Pf:t={x:r.x+r.width,y:O};break;case Zu:t={x:r.x-y.width,y:O};break;default:t={x:r.x,y:r.y}}var l=j?v5(j):null;if(l!=null){var S=l==="y"?"height":"width";switch(Y){case Sy:t[l]=t[l]-(r[S]/2-y[S]/2);break;case Zx:t[l]=t[l]+(r[S]/2-y[S]/2);break}}return t}function Kx(e,r){r===void 0&&(r={});var y=r,F=y.placement,j=F===void 0?e.placement:F,Y=y.strategy,D=Y===void 0?e.strategy:Y,O=y.boundary,t=O===void 0?xZ:O,l=y.rootBoundary,S=l===void 0?M9:l,i=y.elementContext,C=i===void 0?A1:i,w=y.altBoundary,v=w===void 0?!1:w,m=y.padding,a=m===void 0?0:m,n=I9(typeof a!="number"?a:R9(a,Db)),s=C===A1?bZ:A1,o=e.rects.popper,h=e.elements[v?s:C],f=qZ(dg(h)?h:h.contextElement||Yp(e.elements.popper),t,S,D),u=My(e.elements.reference),b=D9({reference:u,element:o,strategy:"absolute",placement:j}),p=q4(Object.assign({},o,b)),E=C===A1?p:u,g={top:f.top-E.top+n.top,bottom:E.bottom-f.bottom+n.bottom,left:f.left-E.left+n.left,right:E.right-f.right+n.right},c=e.modifiersData.offset;if(C===A1&&c){var x=c[j];Object.keys(g).forEach(function(A){var M=[Pf,Ef].indexOf(A)>=0?1:-1,R=[Xu,Ef].indexOf(A)>=0?"y":"x";g[A]+=x[R]*M})}return g}function eK(e,r){r===void 0&&(r={});var y=r,F=y.placement,j=y.boundary,Y=y.rootBoundary,D=y.padding,O=y.flipVariations,t=y.allowedAutoPlacements,l=t===void 0?A9:t,S=Ay(F),i=S?O?G8:G8.filter(function(v){return Ay(v)===S}):Db,C=i.filter(function(v){return l.indexOf(v)>=0});C.length===0&&(C=i);var w=C.reduce(function(v,m){return v[m]=Kx(e,{placement:m,boundary:j,rootBoundary:Y,padding:D})[lh(m)],v},{});return Object.keys(w).sort(function(v,m){return w[v]-w[m]})}function tK(e){if(lh(e)===f5)return[];var r=E3(e);return[Y8(e),r,Y8(r)]}function rK(e){var r=e.state,y=e.options,F=e.name;if(!r.modifiersData[F]._skip){for(var j=y.mainAxis,Y=j===void 0?!0:j,D=y.altAxis,O=D===void 0?!0:D,t=y.fallbackPlacements,l=y.padding,S=y.boundary,i=y.rootBoundary,C=y.altBoundary,w=y.flipVariations,v=w===void 0?!0:w,m=y.allowedAutoPlacements,a=r.options.placement,n=lh(a),s=n===a,o=t||(s||!v?[E3(a)]:tK(a)),h=[a].concat(o).reduce(function(G,U){return G.concat(lh(U)===f5?eK(r,{placement:U,boundary:S,rootBoundary:i,padding:l,flipVariations:v,allowedAutoPlacements:m}):U)},[]),f=r.rects.reference,u=r.rects.popper,b=new Map,p=!0,E=h[0],g=0;g=0,R=M?"width":"height",T=Kx(r,{placement:c,boundary:S,rootBoundary:i,altBoundary:C,padding:l}),L=M?A?Pf:Zu:A?Ef:Xu;f[R]>u[R]&&(L=E3(L));var P=E3(L),d=[];if(Y&&d.push(T[x]<=0),O&&d.push(T[L]<=0,T[P]<=0),d.every(function(G){return G})){E=c,p=!1;break}b.set(c,d)}if(p)for(var k=v?3:1,I=function(U){var H=h.find(function(W){var V=b.get(W);if(V)return V.slice(0,U).every(function($){return $})});if(H)return E=H,"break"},N=k;N>0;N--){var B=I(N);if(B==="break")break}r.placement!==E&&(r.modifiersData[F]._skip=!0,r.placement=E,r.reset=!0)}}const nK={name:"flip",enabled:!0,phase:"main",fn:rK,requiresIfExists:["offset"],data:{_skip:!1}};function Z8(e,r,y){return y===void 0&&(y={x:0,y:0}),{top:e.top-r.height-y.y,right:e.right-r.width+y.x,bottom:e.bottom-r.height+y.y,left:e.left-r.width-y.x}}function K8(e){return[Xu,Pf,Ef,Zu].some(function(r){return e[r]>=0})}function aK(e){var r=e.state,y=e.name,F=r.rects.reference,j=r.rects.popper,Y=r.modifiersData.preventOverflow,D=Kx(r,{elementContext:"reference"}),O=Kx(r,{altBoundary:!0}),t=Z8(D,F),l=Z8(O,j,Y),S=K8(t),i=K8(l);r.modifiersData[y]={referenceClippingOffsets:t,popperEscapeOffsets:l,isReferenceHidden:S,hasPopperEscaped:i},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":S,"data-popper-escaped":i})}const iK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aK};function oK(e,r,y){var F=lh(e),j=[Zu,Xu].indexOf(F)>=0?-1:1,Y=typeof y=="function"?y(Object.assign({},r,{placement:e})):y,D=Y[0],O=Y[1];return D=D||0,O=(O||0)*j,[Zu,Pf].indexOf(F)>=0?{x:O,y:D}:{x:D,y:O}}function sK(e){var r=e.state,y=e.options,F=e.name,j=y.offset,Y=j===void 0?[0,0]:j,D=A9.reduce(function(S,i){return S[i]=oK(i,r.rects,Y),S},{}),O=D[r.placement],t=O.x,l=O.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=t,r.modifiersData.popperOffsets.y+=l),r.modifiersData[F]=D}const lK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sK};function uK(e){var r=e.state,y=e.name;r.modifiersData[y]=D9({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const cK={name:"popperOffsets",enabled:!0,phase:"read",fn:uK,data:{}};function fK(e){return e==="x"?"y":"x"}function dK(e){var r=e.state,y=e.options,F=e.name,j=y.mainAxis,Y=j===void 0?!0:j,D=y.altAxis,O=D===void 0?!1:D,t=y.boundary,l=y.rootBoundary,S=y.altBoundary,i=y.padding,C=y.tether,w=C===void 0?!0:C,v=y.tetherOffset,m=v===void 0?0:v,a=Kx(r,{boundary:t,rootBoundary:l,padding:i,altBoundary:S}),n=lh(r.placement),s=Ay(r.placement),o=!s,h=v5(n),f=fK(h),u=r.modifiersData.popperOffsets,b=r.rects.reference,p=r.rects.popper,E=typeof m=="function"?m(Object.assign({},r.rects,{placement:r.placement})):m,g=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),c=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,x={x:0,y:0};if(u){if(Y){var A,M=h==="y"?Xu:Zu,R=h==="y"?Ef:Pf,T=h==="y"?"height":"width",L=u[h],P=L+a[M],d=L-a[R],k=w?-p[T]/2:0,I=s===Sy?b[T]:p[T],N=s===Sy?-p[T]:-b[T],B=r.elements.arrow,G=w&&B?h5(B):{width:0,height:0},U=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:L9(),H=U[M],W=U[R],V=gx(0,b[T],G[T]),$=o?b[T]/2-k-V-H-g.mainAxis:I-V-H-g.mainAxis,Z=o?-b[T]/2+k+V+W+g.mainAxis:N+V+W+g.mainAxis,q=r.elements.arrow&&Ob(r.elements.arrow),ae=q?h==="y"?q.clientTop||0:q.clientLeft||0:0,ie=(A=c==null?void 0:c[h])!=null?A:0,fe=L+$-ie-ae,Q=L+Z-ie,J=gx(w?u2(P,fe):P,L,w?tg(d,Q):d);u[h]=J,x[h]=J-L}if(O){var oe,K=h==="x"?Xu:Zu,ne=h==="x"?Ef:Pf,ce=u[f],re=f==="y"?"height":"width",ee=ce+a[K],de=ce-a[ne],le=[Xu,Zu].indexOf(n)!==-1,he=(oe=c==null?void 0:c[f])!=null?oe:0,xe=le?ee:ce-b[re]-p[re]-he+g.altAxis,Ee=le?ce+b[re]+p[re]-he-g.altAxis:de,Se=w&&le?_Z(xe,ce,Ee):gx(w?xe:ee,ce,w?Ee:de);u[f]=Se,x[f]=Se-ce}r.modifiersData[F]=x}}const hK={name:"preventOverflow",enabled:!0,phase:"main",fn:dK,requiresIfExists:["offset"]};function vK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pK(e){return e===Ec(e)||!bf(e)?p5(e):vK(e)}function gK(e){var r=e.getBoundingClientRect(),y=Cy(r.width)/e.offsetWidth||1,F=Cy(r.height)/e.offsetHeight||1;return y!==1||F!==1}function mK(e,r,y){y===void 0&&(y=!1);var F=bf(r),j=bf(r)&&gK(r),Y=Yp(r),D=My(e,j,y),O={scrollLeft:0,scrollTop:0},t={x:0,y:0};return(F||!F&&!y)&&((fh(r)!=="body"||m5(Y))&&(O=pK(r)),bf(r)?(t=My(r,!0),t.x+=r.clientLeft,t.y+=r.clientTop):Y&&(t.x=g5(Y))),{x:D.left+O.scrollLeft-t.x,y:D.top+O.scrollTop-t.y,width:D.width,height:D.height}}function yK(e){var r=new Map,y=new Set,F=[];e.forEach(function(Y){r.set(Y.name,Y)});function j(Y){y.add(Y.name);var D=[].concat(Y.requires||[],Y.requiresIfExists||[]);D.forEach(function(O){if(!y.has(O)){var t=r.get(O);t&&j(t)}}),F.push(Y)}return e.forEach(function(Y){y.has(Y.name)||j(Y)}),F}function xK(e){var r=yK(e);return IZ.reduce(function(y,F){return y.concat(r.filter(function(j){return j.phase===F}))},[])}function bK(e){var r;return function(){return r||(r=new Promise(function(y){Promise.resolve().then(function(){r=void 0,y(e())})})),r}}function wK(e){var r=e.reduce(function(y,F){var j=y[F.name];return y[F.name]=j?Object.assign({},j,F,{options:Object.assign({},j.options,F.options),data:Object.assign({},j.data,F.data)}):F,y},{});return Object.keys(r).map(function(y){return r[y]})}var J8={placement:"bottom",modifiers:[],strategy:"absolute"};function Q8(){for(var e=arguments.length,r=new Array(e),y=0;y{Y||O(MK(j)||document.body)},[j,Y]),Gi(()=>{if(D&&!Y)return Wx(y,D),()=>{Wx(y,null)}},[y,D,Y]),Y){if(Oe.isValidElement(F)){const l={ref:t};return Oe.cloneElement(F,l)}return Ce.jsx(Oe.Fragment,{children:F})}return Ce.jsx(Oe.Fragment,{children:D&&Cb.createPortal(F,D)})}),O9=AK;function EK(e){return ka("MuiPopper",e)}Ma("MuiPopper",["root"]);const PK=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],LK=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function IK(e,r){if(r==="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}}function eM(e){return typeof e=="function"?e():e}function RK(e){return e.nodeType!==void 0}const kK=e=>{const{classes:r}=e;return qn({root:["root"]},EK,r)},DK={},OK=Oe.forwardRef(function(r,y){var F;const{anchorEl:j,children:Y,direction:D,disablePortal:O,modifiers:t,open:l,placement:S,popperOptions:i,popperRef:C,slotProps:w={},slots:v={},TransitionProps:m}=r,a=hn(r,PK),n=Oe.useRef(null),s=pi(n,y),o=Oe.useRef(null),h=pi(o,C),f=Oe.useRef(h);Gi(()=>{f.current=h},[h]),Oe.useImperativeHandle(C,()=>o.current,[]);const u=IK(S,D),[b,p]=Oe.useState(u),[E,g]=Oe.useState(eM(j));Oe.useEffect(()=>{o.current&&o.current.forceUpdate()}),Oe.useEffect(()=>{j&&g(eM(j))},[j]),Gi(()=>{if(!E||!l)return;const R=P=>{p(P.placement)};let T=[{name:"preventOverflow",options:{altBoundary:O}},{name:"flip",options:{altBoundary:O}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:P})=>{R(P)}}];t!=null&&(T=T.concat(t)),i&&i.modifiers!=null&&(T=T.concat(i.modifiers));const L=CK(E,n.current,Ge({placement:u},i,{modifiers:T}));return f.current(L),()=>{L.destroy(),f.current(null)}},[E,O,t,l,i,u]);const c={placement:b};m!==null&&(c.TransitionProps=m);const x=kK(r),A=(F=v.root)!=null?F:"div",M=vi({elementType:A,externalSlotProps:w.root,externalForwardedProps:a,additionalProps:{role:"tooltip",ref:s},ownerState:r,className:x.root});return Ce.jsx(A,Ge({},M,{children:typeof Y=="function"?Y(c):Y}))}),FK=Oe.forwardRef(function(r,y){const{anchorEl:F,children:j,container:Y,direction:D="ltr",disablePortal:O=!1,keepMounted:t=!1,modifiers:l,open:S,placement:i="bottom",popperOptions:C=DK,popperRef:w,style:v,transition:m=!1,slotProps:a={},slots:n={}}=r,s=hn(r,LK),[o,h]=Oe.useState(!0),f=()=>{h(!1)},u=()=>{h(!0)};if(!t&&!S&&(!m||o))return null;let b;if(Y)b=Y;else if(F){const g=eM(F);b=g&&RK(g)?oo(g).body:oo(null).body}const p=!S&&t&&(!m||o)?"none":void 0,E=m?{in:S,onEnter:f,onExited:u}:void 0;return Ce.jsx(O9,{disablePortal:O,container:b,children:Ce.jsx(OK,Ge({anchorEl:F,direction:D,disablePortal:O,modifiers:l,ref:y,open:m?!o:S,placement:i,popperOptions:C,popperRef:w,slotProps:a,slots:n},s,{style:Ge({position:"fixed",top:0,left:0,display:p},v),TransitionProps:E,children:j}))})}),_K=FK,zK=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],BK=ln(_K,{name:"MuiPopper",slot:"Root",overridesResolver:(e,r)=>r.root})({}),NK=Oe.forwardRef(function(r,y){var F;const j=S9(),Y=Ka({props:r,name:"MuiPopper"}),{anchorEl:D,component:O,components:t,componentsProps:l,container:S,disablePortal:i,keepMounted:C,modifiers:w,open:v,placement:m,popperOptions:a,popperRef:n,transition:s,slots:o,slotProps:h}=Y,f=hn(Y,zK),u=(F=o==null?void 0:o.root)!=null?F:t==null?void 0:t.Root,b=Ge({anchorEl:D,container:S,disablePortal:i,keepMounted:C,modifiers:w,open:v,placement:m,popperOptions:a,popperRef:n,transition:s},f);return Ce.jsx(BK,Ge({as:O,direction:j==null?void 0:j.direction,slots:{root:u},slotProps:h??l},b,{ref:y}))}),Xp=NK;function UK(e){return ka("MuiListSubheader",e)}Ma("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const HK=["className","color","component","disableGutters","disableSticky","inset"],VK=e=>{const{classes:r,color:y,disableGutters:F,inset:j,disableSticky:Y}=e,D={root:["root",y!=="default"&&`color${Gn(y)}`,!F&&"gutters",j&&"inset",!Y&&"sticky"]};return qn(D,UK,r)},jK=ln("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.color!=="default"&&r[`color${Gn(y.color)}`],!y.disableGutters&&r.gutters,y.inset&&r.inset,!y.disableSticky&&r.sticky]}})(({theme:e,ownerState:r})=>Ge({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},r.color==="primary"&&{color:(e.vars||e).palette.primary.main},r.color==="inherit"&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),F9=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiListSubheader"}),{className:j,color:Y="default",component:D="li",disableGutters:O=!1,disableSticky:t=!1,inset:l=!1}=F,S=hn(F,HK),i=Ge({},F,{color:Y,component:D,disableGutters:O,disableSticky:t,inset:l}),C=VK(i);return Ce.jsx(jK,Ge({as:D,className:Ln(C.root,j),ref:y,ownerState:i},S))});F9.muiSkipListHighlight=!0;const GK=F9,WK=ci(Ce.jsx("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");function $K(e){return ka("MuiChip",e)}const YK=Ma("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),vo=YK,XK=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],ZK=e=>{const{classes:r,disabled:y,size:F,color:j,iconColor:Y,onDelete:D,clickable:O,variant:t}=e,l={root:["root",t,y&&"disabled",`size${Gn(F)}`,`color${Gn(j)}`,O&&"clickable",O&&`clickableColor${Gn(j)}`,D&&"deletable",D&&`deletableColor${Gn(j)}`,`${t}${Gn(j)}`],label:["label",`label${Gn(F)}`],avatar:["avatar",`avatar${Gn(F)}`,`avatarColor${Gn(j)}`],icon:["icon",`icon${Gn(F)}`,`iconColor${Gn(Y)}`],deleteIcon:["deleteIcon",`deleteIcon${Gn(F)}`,`deleteIconColor${Gn(j)}`,`deleteIcon${Gn(t)}Color${Gn(j)}`]};return qn(l,$K,r)},KK=ln("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e,{color:F,iconColor:j,clickable:Y,onDelete:D,size:O,variant:t}=y;return[{[`& .${vo.avatar}`]:r.avatar},{[`& .${vo.avatar}`]:r[`avatar${Gn(O)}`]},{[`& .${vo.avatar}`]:r[`avatarColor${Gn(F)}`]},{[`& .${vo.icon}`]:r.icon},{[`& .${vo.icon}`]:r[`icon${Gn(O)}`]},{[`& .${vo.icon}`]:r[`iconColor${Gn(j)}`]},{[`& .${vo.deleteIcon}`]:r.deleteIcon},{[`& .${vo.deleteIcon}`]:r[`deleteIcon${Gn(O)}`]},{[`& .${vo.deleteIcon}`]:r[`deleteIconColor${Gn(F)}`]},{[`& .${vo.deleteIcon}`]:r[`deleteIcon${Gn(t)}Color${Gn(F)}`]},r.root,r[`size${Gn(O)}`],r[`color${Gn(F)}`],Y&&r.clickable,Y&&F!=="default"&&r[`clickableColor${Gn(F)})`],D&&r.deletable,D&&F!=="default"&&r[`deletableColor${Gn(F)}`],r[t],r[`${t}${Gn(F)}`]]}})(({theme:e,ownerState:r})=>{const y=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ge({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${vo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${vo.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:y,fontSize:e.typography.pxToRem(12)},[`& .${vo.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${vo.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${vo.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${vo.icon}`]:Ge({marginLeft:5,marginRight:-6},r.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&Ge({color:e.vars?e.vars.palette.Chip.defaultIconColor:y},r.color!=="default"&&{color:"inherit"})),[`& .${vo.deleteIcon}`]:Ge({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ti(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ti(e.palette.text.primary,.4)}},r.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},r.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[r.color].contrastTextChannel} / 0.7)`:Ti(e.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r.color].contrastText}})},r.size==="small"&&{height:24},r.color!=="default"&&{backgroundColor:(e.vars||e).palette[r.color].main,color:(e.vars||e).palette[r.color].contrastText},r.onDelete&&{[`&.${vo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},r.onDelete&&r.color!=="default"&&{[`&.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r.color].dark}})},({theme:e,ownerState:r})=>Ge({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ti(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${vo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},r.clickable&&r.color!=="default"&&{[`&:hover, &.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r.color].dark}}),({theme:e,ownerState:r})=>Ge({},r.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${vo.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${vo.avatar}`]:{marginLeft:4},[`& .${vo.avatarSmall}`]:{marginLeft:2},[`& .${vo.icon}`]:{marginLeft:4},[`& .${vo.iconSmall}`]:{marginLeft:2},[`& .${vo.deleteIcon}`]:{marginRight:5},[`& .${vo.deleteIconSmall}`]:{marginRight:3}},r.variant==="outlined"&&r.color!=="default"&&{color:(e.vars||e).palette[r.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / 0.7)`:Ti(e.palette[r.color].main,.7)}`,[`&.${vo.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(e.palette[r.color].main,e.palette.action.hoverOpacity)},[`&.${vo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ti(e.palette[r.color].main,e.palette.action.focusOpacity)},[`& .${vo.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / 0.7)`:Ti(e.palette[r.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r.color].main}}})),JK=ln("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,r)=>{const{ownerState:y}=e,{size:F}=y;return[r.label,r[`label${Gn(F)}`]]}})(({ownerState:e})=>Ge({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function q8(e){return e.key==="Backspace"||e.key==="Delete"}const QK=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiChip"}),{avatar:j,className:Y,clickable:D,color:O="default",component:t,deleteIcon:l,disabled:S=!1,icon:i,label:C,onClick:w,onDelete:v,onKeyDown:m,onKeyUp:a,size:n="medium",variant:s="filled",tabIndex:o,skipFocusWhenDisabled:h=!1}=F,f=hn(F,XK),u=Oe.useRef(null),b=pi(u,y),p=d=>{d.stopPropagation(),v&&v(d)},E=d=>{d.currentTarget===d.target&&q8(d)&&d.preventDefault(),m&&m(d)},g=d=>{d.currentTarget===d.target&&(v&&q8(d)?v(d):d.key==="Escape"&&u.current&&u.current.blur()),a&&a(d)},c=D!==!1&&w?!0:D,x=c||v?Af:t||"div",A=Ge({},F,{component:x,disabled:S,size:n,color:O,iconColor:Oe.isValidElement(i)&&i.props.color||O,onDelete:!!v,clickable:c,variant:s}),M=ZK(A),R=x===Af?Ge({component:t||"div",focusVisibleClassName:M.focusVisible},v&&{disableRipple:!0}):{};let T=null;v&&(T=l&&Oe.isValidElement(l)?Oe.cloneElement(l,{className:Ln(l.props.className,M.deleteIcon),onClick:p}):Ce.jsx(WK,{className:Ln(M.deleteIcon),onClick:p}));let L=null;j&&Oe.isValidElement(j)&&(L=Oe.cloneElement(j,{className:Ln(M.avatar,j.props.className)}));let P=null;return i&&Oe.isValidElement(i)&&(P=Oe.cloneElement(i,{className:Ln(M.icon,i.props.className)})),Ce.jsxs(KK,Ge({as:x,className:Ln(M.root,Y),disabled:c&&S?!0:void 0,onClick:w,onKeyDown:E,onKeyUp:g,ref:b,tabIndex:h&&S?-1:o,ownerState:A},R,f,{children:[L||P,Ce.jsx(JK,{className:Ln(M.label),ownerState:A,children:C}),T]}))}),Kh=QK,qK=["onChange","maxRows","minRows","style","value"];function Xw(e){return parseInt(e,10)||0}const eJ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tJ(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const rJ=Oe.forwardRef(function(r,y){const{onChange:F,maxRows:j,minRows:Y=1,style:D,value:O}=r,t=hn(r,qK),{current:l}=Oe.useRef(O!=null),S=Oe.useRef(null),i=pi(y,S),C=Oe.useRef(null),w=Oe.useRef(null),v=Oe.useCallback(()=>{const n=S.current,o=wd(n).getComputedStyle(n);if(o.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=w.current;h.style.width=o.width,h.value=n.value||r.placeholder||"x",h.value.slice(-1)===` -`&&(h.value+=" ");const f=o.boxSizing,u=Xw(o.paddingBottom)+Xw(o.paddingTop),b=Xw(o.borderBottomWidth)+Xw(o.borderTopWidth),p=h.scrollHeight;h.value="x";const E=h.scrollHeight;let g=p;Y&&(g=Math.max(Number(Y)*E,g)),j&&(g=Math.min(Number(j)*E,g)),g=Math.max(g,E);const c=g+(f==="border-box"?u+b:0),x=Math.abs(g-p)<=1;return{outerHeightStyle:c,overflowing:x}},[j,Y,r.placeholder]),m=Oe.useCallback(()=>{const n=v();if(tJ(n))return;const s=n.outerHeightStyle,o=S.current;C.current!==s&&(C.current=s,o.style.height=`${s}px`),o.style.overflow=n.overflowing?"hidden":""},[v]);Gi(()=>{const n=()=>{m()};let s;const o=bg(n),h=S.current,f=wd(h);f.addEventListener("resize",o);let u;return typeof ResizeObserver<"u"&&(u=new ResizeObserver(n),u.observe(h)),()=>{o.clear(),cancelAnimationFrame(s),f.removeEventListener("resize",o),u&&u.disconnect()}},[v,m]),Gi(()=>{m()});const a=n=>{l||m(),F&&F(n)};return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("textarea",Ge({value:O,onChange:a,ref:i,rows:Y,style:D},t)),Ce.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:w,tabIndex:-1,style:Ge({},eJ.shadow,D,{paddingTop:0,paddingBottom:0})})]})}),nJ=rJ;function Zp({props:e,states:r,muiFormControl:y}){return r.reduce((F,j)=>(F[j]=e[j],y&&typeof e[j]>"u"&&(F[j]=y[j]),F),{})}const aJ=Oe.createContext(void 0),RT=aJ;function ec(){return Oe.useContext(RT)}function _9(e){return Ce.jsx(sW,Ge({},e,{defaultTheme:AT,themeId:lg}))}function eL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function c2(e,r=!1){return e&&(eL(e.value)&&e.value!==""||r&&eL(e.defaultValue)&&e.defaultValue!=="")}function iJ(e){return e.startAdornment}function oJ(e){return ka("MuiInputBase",e)}const sJ=Ma("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),mc=sJ,lJ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],kT=(e,r)=>{const{ownerState:y}=e;return[r.root,y.formControl&&r.formControl,y.startAdornment&&r.adornedStart,y.endAdornment&&r.adornedEnd,y.error&&r.error,y.size==="small"&&r.sizeSmall,y.multiline&&r.multiline,y.color&&r[`color${Gn(y.color)}`],y.fullWidth&&r.fullWidth,y.hiddenLabel&&r.hiddenLabel]},DT=(e,r)=>{const{ownerState:y}=e;return[r.input,y.size==="small"&&r.inputSizeSmall,y.multiline&&r.inputMultiline,y.type==="search"&&r.inputTypeSearch,y.startAdornment&&r.inputAdornedStart,y.endAdornment&&r.inputAdornedEnd,y.hiddenLabel&&r.inputHiddenLabel]},uJ=e=>{const{classes:r,color:y,disabled:F,error:j,endAdornment:Y,focused:D,formControl:O,fullWidth:t,hiddenLabel:l,multiline:S,readOnly:i,size:C,startAdornment:w,type:v}=e,m={root:["root",`color${Gn(y)}`,F&&"disabled",j&&"error",t&&"fullWidth",D&&"focused",O&&"formControl",C&&C!=="medium"&&`size${Gn(C)}`,S&&"multiline",w&&"adornedStart",Y&&"adornedEnd",l&&"hiddenLabel",i&&"readOnly"],input:["input",F&&"disabled",v==="search"&&"inputTypeSearch",S&&"inputMultiline",C==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",w&&"inputAdornedStart",Y&&"inputAdornedEnd",i&&"readOnly"]};return qn(m,oJ,r)},OT=ln("div",{name:"MuiInputBase",slot:"Root",overridesResolver:kT})(({theme:e,ownerState:r})=>Ge({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},r.multiline&&Ge({padding:"4px 0 5px"},r.size==="small"&&{paddingTop:1}),r.fullWidth&&{width:"100%"})),FT=ln("input",{name:"MuiInputBase",slot:"Input",overridesResolver:DT})(({theme:e,ownerState:r})=>{const y=e.palette.mode==="light",F=Ge({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:y?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),j={opacity:"0 !important"},Y=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:y?.42:.5};return Ge({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":F,"&::-moz-placeholder":F,"&:-ms-input-placeholder":F,"&::-ms-input-placeholder":F,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${mc.formControl} &`]:{"&::-webkit-input-placeholder":j,"&::-moz-placeholder":j,"&:-ms-input-placeholder":j,"&::-ms-input-placeholder":j,"&:focus::-webkit-input-placeholder":Y,"&:focus::-moz-placeholder":Y,"&:focus:-ms-input-placeholder":Y,"&:focus::-ms-input-placeholder":Y},[`&.${mc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},r.size==="small"&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},r.type==="search"&&{MozAppearance:"textfield"})}),cJ=Ce.jsx(_9,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fJ=Oe.forwardRef(function(r,y){var F;const j=Ka({props:r,name:"MuiInputBase"}),{"aria-describedby":Y,autoComplete:D,autoFocus:O,className:t,components:l={},componentsProps:S={},defaultValue:i,disabled:C,disableInjectingGlobalStyles:w,endAdornment:v,fullWidth:m=!1,id:a,inputComponent:n="input",inputProps:s={},inputRef:o,maxRows:h,minRows:f,multiline:u=!1,name:b,onBlur:p,onChange:E,onClick:g,onFocus:c,onKeyDown:x,onKeyUp:A,placeholder:M,readOnly:R,renderSuffix:T,rows:L,slotProps:P={},slots:d={},startAdornment:k,type:I="text",value:N}=j,B=hn(j,lJ),G=s.value!=null?s.value:N,{current:U}=Oe.useRef(G!=null),H=Oe.useRef(),W=Oe.useCallback(Se=>{},[]),V=pi(H,o,s.ref,W),[$,Z]=Oe.useState(!1),q=ec(),ae=Zp({props:j,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=q?q.focused:$,Oe.useEffect(()=>{!q&&C&&$&&(Z(!1),p&&p())},[q,C,$,p]);const ie=q&&q.onFilled,fe=q&&q.onEmpty,Q=Oe.useCallback(Se=>{c2(Se)?ie&&ie():fe&&fe()},[ie,fe]);Gi(()=>{U&&Q({value:G})},[G,Q,U]);const J=Se=>{if(ae.disabled){Se.stopPropagation();return}c&&c(Se),s.onFocus&&s.onFocus(Se),q&&q.onFocus?q.onFocus(Se):Z(!0)},oe=Se=>{p&&p(Se),s.onBlur&&s.onBlur(Se),q&&q.onBlur?q.onBlur(Se):Z(!1)},K=(Se,...ke)=>{if(!U){const Te=Se.target||H.current;if(Te==null)throw new Error(iv(1));Q({value:Te.value})}s.onChange&&s.onChange(Se,...ke),E&&E(Se,...ke)};Oe.useEffect(()=>{Q(H.current)},[]);const ne=Se=>{H.current&&Se.currentTarget===Se.target&&H.current.focus(),g&&g(Se)};let ce=n,re=s;u&&ce==="input"&&(L?re=Ge({type:void 0,minRows:L,maxRows:L},re):re=Ge({type:void 0,maxRows:h,minRows:f},re),ce=nJ);const ee=Se=>{Q(Se.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};Oe.useEffect(()=>{q&&q.setAdornedStart(!!k)},[q,k]);const de=Ge({},j,{color:ae.color||"primary",disabled:ae.disabled,endAdornment:v,error:ae.error,focused:ae.focused,formControl:q,fullWidth:m,hiddenLabel:ae.hiddenLabel,multiline:u,size:ae.size,startAdornment:k,type:I}),le=uJ(de),he=d.root||l.Root||OT,xe=P.root||S.root||{},Ee=d.input||l.Input||FT;return re=Ge({},re,(F=P.input)!=null?F:S.input),Ce.jsxs(Oe.Fragment,{children:[!w&&cJ,Ce.jsxs(he,Ge({},xe,!gd(he)&&{ownerState:Ge({},de,xe.ownerState)},{ref:y,onClick:ne},B,{className:Ln(le.root,xe.className,t,R&&"MuiInputBase-readOnly"),children:[k,Ce.jsx(RT.Provider,{value:null,children:Ce.jsx(Ee,Ge({ownerState:de,"aria-invalid":ae.error,"aria-describedby":Y,autoComplete:D,autoFocus:O,defaultValue:i,disabled:ae.disabled,id:a,onAnimationStart:ee,name:b,placeholder:M,readOnly:R,required:ae.required,rows:L,value:G,onKeyDown:x,onKeyUp:A,type:I},re,!gd(Ee)&&{as:ce,ownerState:Ge({},de,re.ownerState)},{ref:V,className:Ln(le.input,re.className,R&&"MuiInputBase-readOnly"),onBlur:oe,onChange:K,onFocus:J}))}),v,T?T(Ge({},ae,{startAdornment:k})):null]}))]})}),Hy=fJ;function dJ(e){return ka("MuiInput",e)}const hJ=Ge({},mc,Ma("MuiInput",["root","underline","input"])),pp=hJ;function vJ(e){return ka("MuiOutlinedInput",e)}const pJ=Ge({},mc,Ma("MuiOutlinedInput",["root","notchedOutline","input"])),Yd=pJ;function gJ(e){return ka("MuiFilledInput",e)}const mJ=Ge({},mc,Ma("MuiFilledInput",["root","underline","input"])),yc=mJ,z9=ci(Ce.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function yJ(e){return ka("MuiAutocomplete",e)}const Vi=Ma("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var tL,rL;const xJ=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],bJ=["ref"],wJ=["key"],TJ=["key"],SJ=e=>{const{classes:r,disablePortal:y,expanded:F,focused:j,fullWidth:Y,hasClearIcon:D,hasPopupIcon:O,inputFocused:t,popupOpen:l,size:S}=e,i={root:["root",F&&"expanded",j&&"focused",Y&&"fullWidth",D&&"hasClearIcon",O&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",t&&"inputFocused"],tag:["tag",`tagSize${Gn(S)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",l&&"popupIndicatorOpen"],popper:["popper",y&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return qn(i,yJ,r)},CJ=ln("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e,{fullWidth:F,hasClearIcon:j,hasPopupIcon:Y,inputFocused:D,size:O}=y;return[{[`& .${Vi.tag}`]:r.tag},{[`& .${Vi.tag}`]:r[`tagSize${Gn(O)}`]},{[`& .${Vi.inputRoot}`]:r.inputRoot},{[`& .${Vi.input}`]:r.input},{[`& .${Vi.input}`]:D&&r.inputFocused},r.root,F&&r.fullWidth,Y&&r.hasPopupIcon,j&&r.hasClearIcon]}})({[`&.${Vi.focused} .${Vi.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Vi.clearIndicator}`]:{visibility:"visible"}},[`& .${Vi.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Vi.inputRoot}`]:{[`.${Vi.hasPopupIcon}&, .${Vi.hasClearIcon}&`]:{paddingRight:30},[`.${Vi.hasPopupIcon}.${Vi.hasClearIcon}&`]:{paddingRight:56},[`& .${Vi.input}`]:{width:0,minWidth:30}},[`& .${pp.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${pp.root}.${mc.sizeSmall}`]:{[`& .${pp.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Yd.root}`]:{padding:9,[`.${Vi.hasPopupIcon}&, .${Vi.hasClearIcon}&`]:{paddingRight:39},[`.${Vi.hasPopupIcon}.${Vi.hasClearIcon}&`]:{paddingRight:65},[`& .${Vi.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Vi.endAdornment}`]:{right:9}},[`& .${Yd.root}.${mc.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Vi.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${yc.root}`]:{paddingTop:19,paddingLeft:8,[`.${Vi.hasPopupIcon}&, .${Vi.hasClearIcon}&`]:{paddingRight:39},[`.${Vi.hasPopupIcon}.${Vi.hasClearIcon}&`]:{paddingRight:65},[`& .${yc.input}`]:{padding:"7px 4px"},[`& .${Vi.endAdornment}`]:{right:9}},[`& .${yc.root}.${mc.sizeSmall}`]:{paddingBottom:1,[`& .${yc.input}`]:{padding:"2.5px 4px"}},[`& .${mc.hiddenLabel}`]:{paddingTop:8},[`& .${yc.root}.${mc.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Vi.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${yc.root}.${mc.hiddenLabel}.${mc.sizeSmall}`]:{[`& .${Vi.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Vi.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Vi.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Vi.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Vi.inputRoot}`]:{flexWrap:"wrap"}}}]}),MJ=ln("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,r)=>r.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),AJ=ln(fl,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,r)=>r.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),EJ=ln(fl,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},r)=>Ge({},r.popupIndicator,e.popupOpen&&r.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),PJ=ln(Xp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[{[`& .${Vi.option}`]:r.option},r.popper,y.disablePortal&&r.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),LJ=ln(Ri,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,r)=>r.paper})(({theme:e})=>Ge({},e.typography.body1,{overflow:"auto"})),IJ=ln("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,r)=>r.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),RJ=ln("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,r)=>r.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),kJ=ln("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,r)=>r.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Vi.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Vi.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Vi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Vi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),DJ=ln(GK,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,r)=>r.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),OJ=ln("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,r)=>r.groupUl})({padding:0,[`& .${Vi.option}`]:{paddingLeft:24}}),FJ=Oe.forwardRef(function(r,y){var F,j,Y,D;const O=Ka({props:r,name:"MuiAutocomplete"}),{autoComplete:t=!1,autoHighlight:l=!1,autoSelect:S=!1,blurOnSelect:i=!1,ChipProps:C,className:w,clearIcon:v=tL||(tL=Ce.jsx(x9,{fontSize:"small"})),clearOnBlur:m=!O.freeSolo,clearOnEscape:a=!1,clearText:n="Clear",closeText:s="Close",componentsProps:o={},defaultValue:h=O.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:u=!1,disabled:b=!1,disabledItemsFocusable:p=!1,disableListWrap:E=!1,disablePortal:g=!1,filterSelectedOptions:c=!1,forcePopupIcon:x="auto",freeSolo:A=!1,fullWidth:M=!1,getLimitTagsText:R=xt=>`+${xt}`,getOptionLabel:T,groupBy:L,handleHomeEndKeys:P=!O.freeSolo,includeInputInList:d=!1,limitTags:k=-1,ListboxComponent:I="ul",ListboxProps:N,loading:B=!1,loadingText:G="Loading…",multiple:U=!1,noOptionsText:H="No options",openOnFocus:W=!1,openText:V="Open",PaperComponent:$=Ri,PopperComponent:Z=Xp,popupIcon:q=rL||(rL=Ce.jsx(z9,{})),readOnly:ae=!1,renderGroup:ie,renderInput:fe,renderOption:Q,renderTags:J,selectOnFocus:oe=!O.freeSolo,size:K="medium",slotProps:ne={}}=O,ce=hn(O,xJ),{getRootProps:re,getInputProps:ee,getInputLabelProps:de,getPopupIndicatorProps:le,getClearProps:he,getTagProps:xe,getListboxProps:Ee,getOptionProps:Se,value:ke,dirty:Te,expanded:Ae,id:be,popupOpen:Ie,focused:Ue,focusedTag:Ne,anchorEl:ze,setAnchorEl:$e,inputValue:st,groupedOptions:vt}=hZ(Ge({},O,{componentName:"Autocomplete"})),at=!f&&!b&&Te&&!ae,nt=(!A||x===!0)&&x!==!1,{onMouseDown:mt}=ee(),{ref:rt}=N??{},lt=Ee(),{ref:dt}=lt,wt=hn(lt,bJ),et=pi(dt,rt),Ye=T||(xt=>{var Lt;return(Lt=xt.label)!=null?Lt:xt}),Ke=Ge({},O,{disablePortal:g,expanded:Ae,focused:Ue,fullWidth:M,getOptionLabel:Ye,hasClearIcon:at,hasPopupIcon:nt,inputFocused:Ne===-1,popupOpen:Ie,size:K}),We=SJ(Ke);let Fe;if(U&&ke.length>0){const xt=Lt=>Ge({className:We.tag,disabled:b},xe(Lt));J?Fe=J(ke,xt,Ke):Fe=ke.map((Lt,Xt)=>{const dr=xt({index:Xt}),{key:Tt}=dr,Kt=hn(dr,wJ);return Ce.jsx(Kh,Ge({label:Ye(Lt),size:K},Kt,C),Tt)})}if(k>-1&&Array.isArray(Fe)){const xt=Fe.length-k;!Ue&&xt>0&&(Fe=Fe.splice(0,k),Fe.push(Ce.jsx("span",{className:We.tag,children:R(xt)},Fe.length)))}const we=ie||(xt=>Ce.jsxs("li",{children:[Ce.jsx(DJ,{className:We.groupLabel,ownerState:Ke,component:"div",children:xt.group}),Ce.jsx(OJ,{className:We.groupUl,ownerState:Ke,children:xt.children})]},xt.key)),Pe=Q||((xt,Lt)=>{const{key:Xt}=xt,dr=hn(xt,TJ);return Ce.jsx("li",Ge({},dr,{children:Ye(Lt)}),Xt)}),Ve=(xt,Lt)=>{const Xt=Se({option:xt,index:Lt});return Pe(Ge({},Xt,{className:We.option}),xt,{selected:Xt["aria-selected"],index:Lt,inputValue:st},Ke)},Je=(F=ne.clearIndicator)!=null?F:o.clearIndicator,ot=(j=ne.paper)!=null?j:o.paper,yt=(Y=ne.popper)!=null?Y:o.popper,ut=(D=ne.popupIndicator)!=null?D:o.popupIndicator,It=xt=>Ce.jsx(PJ,Ge({as:Z,disablePortal:g,style:{width:ze?ze.clientWidth:null},ownerState:Ke,role:"presentation",anchorEl:ze,open:Ie},yt,{className:Ln(We.popper,yt==null?void 0:yt.className),children:Ce.jsx(LJ,Ge({ownerState:Ke,as:$},ot,{className:Ln(We.paper,ot==null?void 0:ot.className),children:xt}))}));let Vt=null;return vt.length>0?Vt=It(Ce.jsx(kJ,Ge({as:I,className:We.listbox,ownerState:Ke},wt,N,{ref:et,children:vt.map((xt,Lt)=>L?we({key:xt.key,group:xt.group,children:xt.options.map((Xt,dr)=>Ve(Xt,xt.index+dr))}):Ve(xt,Lt))}))):B&&vt.length===0?Vt=It(Ce.jsx(IJ,{className:We.loading,ownerState:Ke,children:G})):vt.length===0&&!A&&!B&&(Vt=It(Ce.jsx(RJ,{className:We.noOptions,ownerState:Ke,role:"presentation",onMouseDown:xt=>{xt.preventDefault()},children:H}))),Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(CJ,Ge({ref:y,className:Ln(We.root,w),ownerState:Ke},re(ce),{children:fe({id:be,disabled:b,fullWidth:!0,size:K==="small"?"small":void 0,InputLabelProps:de(),InputProps:Ge({ref:$e,className:We.inputRoot,startAdornment:Fe,onClick:xt=>{xt.target===xt.currentTarget&&mt(xt)}},(at||nt)&&{endAdornment:Ce.jsxs(MJ,{className:We.endAdornment,ownerState:Ke,children:[at?Ce.jsx(AJ,Ge({},he(),{"aria-label":n,title:n,ownerState:Ke},Je,{className:Ln(We.clearIndicator,Je==null?void 0:Je.className),children:v})):null,nt?Ce.jsx(EJ,Ge({},le(),{disabled:b,"aria-label":Ie?s:V,title:Ie?s:V,ownerState:Ke},ut,{className:Ln(We.popupIndicator,ut==null?void 0:ut.className),children:q})):null]})}),inputProps:Ge({className:We.input,disabled:b,readOnly:ae},ee())})})),ze?Vt:null]})}),B9=FJ,_J=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zJ={entering:{opacity:1},entered:{opacity:1}},BJ=Oe.forwardRef(function(r,y){const F=ru(),j={enter:F.transitions.duration.enteringScreen,exit:F.transitions.duration.leavingScreen},{addEndListener:Y,appear:D=!0,children:O,easing:t,in:l,onEnter:S,onEntered:i,onEntering:C,onExit:w,onExited:v,onExiting:m,style:a,timeout:n=j,TransitionComponent:s=PT}=r,o=hn(r,_J),h=Oe.useRef(null),f=pi(h,O.ref,y),u=M=>R=>{if(M){const T=h.current;R===void 0?M(T):M(T,R)}},b=u(C),p=u((M,R)=>{m9(M);const T=Ty({style:a,timeout:n,easing:t},{mode:"enter"});M.style.webkitTransition=F.transitions.create("opacity",T),M.style.transition=F.transitions.create("opacity",T),S&&S(M,R)}),E=u(i),g=u(m),c=u(M=>{const R=Ty({style:a,timeout:n,easing:t},{mode:"exit"});M.style.webkitTransition=F.transitions.create("opacity",R),M.style.transition=F.transitions.create("opacity",R),w&&w(M)}),x=u(v),A=M=>{Y&&Y(h.current,M)};return Ce.jsx(s,Ge({appear:D,in:l,nodeRef:h,onEnter:p,onEntered:E,onEntering:b,onExit:c,onExited:x,onExiting:g,addEndListener:A,timeout:n},o,{children:(M,R)=>Oe.cloneElement(O,Ge({style:Ge({opacity:0,visibility:M==="exited"&&!l?"hidden":void 0},zJ[M],a,O.props.style),ref:f},R))}))}),Vy=BJ;function NJ(e){return ka("MuiBackdrop",e)}Ma("MuiBackdrop",["root","invisible"]);const UJ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HJ=e=>{const{classes:r,invisible:y}=e;return qn({root:["root",y&&"invisible"]},NJ,r)},VJ=ln("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.invisible&&r.invisible]}})(({ownerState:e})=>Ge({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"},e.invisible&&{backgroundColor:"transparent"})),jJ=Oe.forwardRef(function(r,y){var F,j,Y;const D=Ka({props:r,name:"MuiBackdrop"}),{children:O,className:t,component:l="div",components:S={},componentsProps:i={},invisible:C=!1,open:w,slotProps:v={},slots:m={},TransitionComponent:a=Vy,transitionDuration:n}=D,s=hn(D,UJ),o=Ge({},D,{component:l,invisible:C}),h=HJ(o),f=(F=v.root)!=null?F:i.root;return Ce.jsx(a,Ge({in:w,timeout:n},s,{children:Ce.jsx(VJ,Ge({"aria-hidden":!0},f,{as:(j=(Y=m.root)!=null?Y:S.Root)!=null?j:l,className:Ln(h.root,t,f==null?void 0:f.className),ownerState:Ge({},o,f==null?void 0:f.ownerState),classes:h,ref:y,children:O}))}))}),N9=jJ;function GJ(e){const{badgeContent:r,invisible:y=!1,max:F=99,showZero:j=!1}=e,Y=e5({badgeContent:r,max:F});let D=y;y===!1&&r===0&&!j&&(D=!0);const{badgeContent:O,max:t=F}=D?Y:e,l=O&&Number(O)>t?`${t}+`:O;return{badgeContent:O,invisible:D,max:t,displayValue:l}}function WJ(e){return ka("MuiBadge",e)}const $J=Ma("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),rp=$J,YJ=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],mC=10,yC=4,XJ=e=>{const{color:r,anchorOrigin:y,invisible:F,overlap:j,variant:Y,classes:D={}}=e,O={root:["root"],badge:["badge",Y,F&&"invisible",`anchorOrigin${Gn(y.vertical)}${Gn(y.horizontal)}`,`anchorOrigin${Gn(y.vertical)}${Gn(y.horizontal)}${Gn(j)}`,`overlap${Gn(j)}`,r!=="default"&&`color${Gn(r)}`]};return qn(O,WJ,D)},ZJ=ln("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,r)=>r.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),KJ=ln("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.badge,r[y.variant],r[`anchorOrigin${Gn(y.anchorOrigin.vertical)}${Gn(y.anchorOrigin.horizontal)}${Gn(y.overlap)}`],y.color!=="default"&&r[`color${Gn(y.color)}`],y.invisible&&r.invisible]}})(({theme:e})=>{var r;return{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:mC*2,lineHeight:1,padding:"0 6px",height:mC*2,borderRadius:mC,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((r=e.vars)!=null?r:e).palette).filter(y=>{var F,j;return((F=e.vars)!=null?F:e).palette[y].main&&((j=e.vars)!=null?j:e).palette[y].contrastText}).map(y=>({props:{color:y},style:{backgroundColor:(e.vars||e).palette[y].main,color:(e.vars||e).palette[y].contrastText}})),{props:{variant:"dot"},style:{borderRadius:yC,height:yC*2,minWidth:yC*2,padding:0}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="top"&&y.anchorOrigin.horizontal==="right"&&y.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="bottom"&&y.anchorOrigin.horizontal==="right"&&y.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="top"&&y.anchorOrigin.horizontal==="left"&&y.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="bottom"&&y.anchorOrigin.horizontal==="left"&&y.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="top"&&y.anchorOrigin.horizontal==="right"&&y.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="bottom"&&y.anchorOrigin.horizontal==="right"&&y.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="top"&&y.anchorOrigin.horizontal==="left"&&y.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:y})=>y.anchorOrigin.vertical==="bottom"&&y.anchorOrigin.horizontal==="left"&&y.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),JJ=Oe.forwardRef(function(r,y){var F,j,Y,D,O,t;const l=Ka({props:r,name:"MuiBadge"}),{anchorOrigin:S={vertical:"top",horizontal:"right"},className:i,component:C,components:w={},componentsProps:v={},children:m,overlap:a="rectangular",color:n="default",invisible:s=!1,max:o=99,badgeContent:h,slots:f,slotProps:u,showZero:b=!1,variant:p="standard"}=l,E=hn(l,YJ),{badgeContent:g,invisible:c,max:x,displayValue:A}=GJ({max:o,invisible:s,badgeContent:h,showZero:b}),M=e5({anchorOrigin:S,color:n,overlap:a,variant:p,badgeContent:h}),R=c||g==null&&p!=="dot",{color:T=n,overlap:L=a,anchorOrigin:P=S,variant:d=p}=R?M:l,k=d!=="dot"?A:void 0,I=Ge({},l,{badgeContent:g,invisible:R,max:x,displayValue:k,showZero:b,anchorOrigin:P,color:T,overlap:L,variant:d}),N=XJ(I),B=(F=(j=f==null?void 0:f.root)!=null?j:w.Root)!=null?F:ZJ,G=(Y=(D=f==null?void 0:f.badge)!=null?D:w.Badge)!=null?Y:KJ,U=(O=u==null?void 0:u.root)!=null?O:v.root,H=(t=u==null?void 0:u.badge)!=null?t:v.badge,W=vi({elementType:B,externalSlotProps:U,externalForwardedProps:E,additionalProps:{ref:y,as:C},ownerState:I,className:Ln(U==null?void 0:U.className,N.root,i)}),V=vi({elementType:G,externalSlotProps:H,ownerState:I,className:Ln(N.badge,H==null?void 0:H.className)});return Ce.jsxs(B,Ge({},W,{children:[m,Ce.jsx(G,Ge({},V,{children:k}))]}))}),y5=JJ,QJ=Ma("MuiBox",["root"]),qJ=QJ,eQ=a5(),tQ=vW({themeId:lg,defaultTheme:eQ,defaultClassName:qJ.root,generateClassName:ZA.generate}),oa=tQ,rQ=ci(Ce.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),nQ=["slots","slotProps"],aQ=ln(Af)(({theme:e})=>Ge({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Ge({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":Ge({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:w8(e.palette.grey[200],.12)}:{backgroundColor:w8(e.palette.grey[600],.12)})})),iQ=ln(rQ)({width:24,height:16});function oQ(e){const{slots:r={},slotProps:y={}}=e,F=hn(e,nQ),j=e;return Ce.jsx("li",{children:Ce.jsx(aQ,Ge({focusRipple:!0},F,{ownerState:j,children:Ce.jsx(iQ,Ge({as:r.CollapsedIcon,ownerState:j},y.collapsedIcon))}))})}function sQ(e){return ka("MuiBreadcrumbs",e)}const lQ=Ma("MuiBreadcrumbs",["root","ol","li","separator"]),uQ=lQ,cQ=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],fQ=e=>{const{classes:r}=e;return qn({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},sQ,r)},dQ=ln(ea,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,r)=>[{[`& .${uQ.li}`]:r.li},r.root]})({}),hQ=ln("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,r)=>r.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),vQ=ln("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,r)=>r.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function pQ(e,r,y,F){return e.reduce((j,Y,D)=>(D{const p=()=>{a(!0);const E=h.current.querySelector("a[href],button,[tabindex]");E&&E.focus()};return i+S>=b.length?b:[...b.slice(0,i),Ce.jsx(oQ,{"aria-label":l,slots:{CollapsedIcon:O.CollapsedIcon},slotProps:{collapsedIcon:o},onClick:p},"ellipsis"),...b.slice(b.length-S,b.length)]},u=Oe.Children.toArray(j).filter(b=>Oe.isValidElement(b)).map((b,p)=>Ce.jsx("li",{className:s.li,children:b},`child-${p}`));return Ce.jsx(dQ,Ge({ref:y,component:D,color:"text.secondary",className:Ln(s.root,Y),ownerState:n},v,{children:Ce.jsx(hQ,{className:s.ol,ref:h,ownerState:n,children:pQ(m||C&&u.length<=C?u:f(u),s.separator,w,n)})}))}),U9=gQ;function mQ(e){return ka("MuiButton",e)}const yQ=Ma("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Zw=yQ,xQ=Oe.createContext({}),bQ=xQ,wQ=Oe.createContext(void 0),TQ=wQ,SQ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],CQ=e=>{const{color:r,disableElevation:y,fullWidth:F,size:j,variant:Y,classes:D}=e,O={root:["root",Y,`${Y}${Gn(r)}`,`size${Gn(j)}`,`${Y}Size${Gn(j)}`,`color${Gn(r)}`,y&&"disableElevation",F&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Gn(j)}`],endIcon:["icon","endIcon",`iconSize${Gn(j)}`]},t=qn(O,mQ,D);return Ge({},D,t)},H9=e=>Ge({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),MQ=ln(Af,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],r[`${y.variant}${Gn(y.color)}`],r[`size${Gn(y.size)}`],r[`${y.variant}Size${Gn(y.size)}`],y.color==="inherit"&&r.colorInherit,y.disableElevation&&r.disableElevation,y.fullWidth&&r.fullWidth]}})(({theme:e,ownerState:r})=>{var y,F;const j=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],Y=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ge({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ge({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="text"&&r.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="outlined"&&r.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[r.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:Y,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},r.variant==="contained"&&r.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}),"&:active":Ge({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zw.focusVisible}`]:Ge({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zw.disabled}`]:Ge({color:(e.vars||e).palette.action.disabled},r.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},r.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},r.variant==="text"&&{padding:"6px 8px"},r.variant==="text"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main},r.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},r.variant==="outlined"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${Ti(e.palette[r.color].main,.5)}`},r.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(y=(F=e.palette).getContrastText)==null?void 0:y.call(F,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:j,boxShadow:(e.vars||e).shadows[2]},r.variant==="contained"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main},r.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},r.size==="small"&&r.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zw.disabled}`]:{boxShadow:"none"}}),AQ=ln("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.startIcon,r[`iconSize${Gn(y.size)}`]]}})(({ownerState:e})=>Ge({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},H9(e))),EQ=ln("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.endIcon,r[`iconSize${Gn(y.size)}`]]}})(({ownerState:e})=>Ge({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},H9(e))),PQ=Oe.forwardRef(function(r,y){const F=Oe.useContext(bQ),j=Oe.useContext(TQ),Y=Gx(F,r),D=Ka({props:Y,name:"MuiButton"}),{children:O,color:t="primary",component:l="button",className:S,disabled:i=!1,disableElevation:C=!1,disableFocusRipple:w=!1,endIcon:v,focusVisibleClassName:m,fullWidth:a=!1,size:n="medium",startIcon:s,type:o,variant:h="text"}=D,f=hn(D,SQ),u=Ge({},D,{color:t,component:l,disabled:i,disableElevation:C,disableFocusRipple:w,fullWidth:a,size:n,type:o,variant:h}),b=CQ(u),p=s&&Ce.jsx(AQ,{className:b.startIcon,ownerState:u,children:s}),E=v&&Ce.jsx(EQ,{className:b.endIcon,ownerState:u,children:v}),g=j||"";return Ce.jsxs(MQ,Ge({ownerState:u,className:Ln(F.className,b.root,S,g),component:l,disabled:i,focusRipple:!w,focusVisibleClassName:Ln(b.focusVisible,m),ref:y,type:o},f,{classes:b,children:[p,O,E]}))}),$i=PQ;function LQ(e){return ka("PrivateSwitchBase",e)}Ma("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const IQ=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],RQ=e=>{const{classes:r,checked:y,disabled:F,edge:j}=e,Y={root:["root",y&&"checked",F&&"disabled",j&&`edge${Gn(j)}`],input:["input"]};return qn(Y,LQ,r)},kQ=ln(Af)(({ownerState:e})=>Ge({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),DQ=ln("input",{shouldForwardProp:qu})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),OQ=Oe.forwardRef(function(r,y){const{autoFocus:F,checked:j,checkedIcon:Y,className:D,defaultChecked:O,disabled:t,disableFocusRipple:l=!1,edge:S=!1,icon:i,id:C,inputProps:w,inputRef:v,name:m,onBlur:a,onChange:n,onFocus:s,readOnly:o,required:h=!1,tabIndex:f,type:u,value:b}=r,p=hn(r,IQ),[E,g]=Dl({controlled:j,default:!!O,name:"SwitchBase",state:"checked"}),c=ec(),x=d=>{s&&s(d),c&&c.onFocus&&c.onFocus(d)},A=d=>{a&&a(d),c&&c.onBlur&&c.onBlur(d)},M=d=>{if(d.nativeEvent.defaultPrevented)return;const k=d.target.checked;g(k),n&&n(d,k)};let R=t;c&&typeof R>"u"&&(R=c.disabled);const T=u==="checkbox"||u==="radio",L=Ge({},r,{checked:E,disabled:R,disableFocusRipple:l,edge:S}),P=RQ(L);return Ce.jsxs(kQ,Ge({component:"span",className:Ln(P.root,D),centerRipple:!0,focusRipple:!l,disabled:R,tabIndex:null,role:void 0,onFocus:x,onBlur:A,ownerState:L,ref:y},p,{children:[Ce.jsx(DQ,Ge({autoFocus:F,checked:j,defaultChecked:O,className:P.input,disabled:R,id:T?C:void 0,name:m,onChange:M,readOnly:o,ref:v,required:h,ownerState:L,tabIndex:f,type:u},u==="checkbox"&&b===void 0?{}:{value:b},w)),E?Y:i]}))}),FQ=OQ,_Q=ci(Ce.jsx("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"),zQ=ci(Ce.jsx("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"),BQ=ci(Ce.jsx("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");function NQ(e){return ka("MuiCheckbox",e)}const UQ=Ma("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xC=UQ,HQ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],VQ=e=>{const{classes:r,indeterminate:y,color:F,size:j}=e,Y={root:["root",y&&"indeterminate",`color${Gn(F)}`,`size${Gn(j)}`]},D=qn(Y,NQ,r);return Ge({},r,D)},jQ=ln(FQ,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.indeterminate&&r.indeterminate,r[`size${Gn(y.size)}`],y.color!=="default"&&r[`color${Gn(y.color)}`]]}})(({theme:e,ownerState:r})=>Ge({color:(e.vars||e).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${r.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ti(r.color==="default"?e.palette.action.active:e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.color!=="default"&&{[`&.${xC.checked}, &.${xC.indeterminate}`]:{color:(e.vars||e).palette[r.color].main},[`&.${xC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),GQ=Ce.jsx(zQ,{}),WQ=Ce.jsx(_Q,{}),$Q=Ce.jsx(BQ,{}),YQ=Oe.forwardRef(function(r,y){var F,j;const Y=Ka({props:r,name:"MuiCheckbox"}),{checkedIcon:D=GQ,color:O="primary",icon:t=WQ,indeterminate:l=!1,indeterminateIcon:S=$Q,inputProps:i,size:C="medium",className:w}=Y,v=hn(Y,HQ),m=l?S:t,a=l?S:D,n=Ge({},Y,{color:O,indeterminate:l,size:C}),s=VQ(n);return Ce.jsx(jQ,Ge({type:"checkbox",inputProps:Ge({"data-indeterminate":l},i),icon:Oe.cloneElement(m,{fontSize:(F=m.props.fontSize)!=null?F:C}),checkedIcon:Oe.cloneElement(a,{fontSize:(j=a.props.fontSize)!=null?j:C}),ownerState:n,ref:y,className:Ln(s.root,w)},v,{classes:s}))}),V9=YQ;function XQ(e){return ka("MuiCircularProgress",e)}Ma("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ZQ=["className","color","disableShrink","size","style","thickness","value","variant"];let _T=e=>e,nL,aL,iL,oL;const np=44,KQ=Sd(nL||(nL=_T` +`),hf.rippleVisible,BY,V4,({theme:e})=>e.transitions.easing.easeInOut,hf.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,hf.child,hf.childLeaving,NY,V4,({theme:e})=>e.transitions.easing.easeInOut,hf.childPulsate,UY,({theme:e})=>e.transitions.easing.easeInOut),jY=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTouchRipple"}),{center:j=!1,classes:Y={},className:D}=F,O=hn(F,_Y),[t,l]=Oe.useState([]),S=Oe.useRef(0),i=Oe.useRef(null);Oe.useEffect(()=>{i.current&&(i.current(),i.current=null)},[t]);const C=Oe.useRef(!1),w=Cc(),v=Oe.useRef(null),m=Oe.useRef(null),a=Oe.useCallback(h=>{const{pulsate:f,rippleX:u,rippleY:b,rippleSize:p,cb:E}=h;l(g=>[...g,Ce.jsx(VY,{classes:{ripple:Ln(Y.ripple,hf.ripple),rippleVisible:Ln(Y.rippleVisible,hf.rippleVisible),ripplePulsate:Ln(Y.ripplePulsate,hf.ripplePulsate),child:Ln(Y.child,hf.child),childLeaving:Ln(Y.childLeaving,hf.childLeaving),childPulsate:Ln(Y.childPulsate,hf.childPulsate)},timeout:V4,pulsate:f,rippleX:u,rippleY:b,rippleSize:p},S.current)]),S.current+=1,i.current=E},[Y]),n=Oe.useCallback((h={},f={},u=()=>{})=>{const{pulsate:b=!1,center:p=j||f.pulsate,fakeElement:E=!1}=f;if((h==null?void 0:h.type)==="mousedown"&&C.current){C.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(C.current=!0);const g=E?null:m.current,c=g?g.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,A,M;if(p||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)y=Math.round(c.width/2),A=Math.round(c.height/2);else{const{clientX:R,clientY:T}=h.touches&&h.touches.length>0?h.touches[0]:h;y=Math.round(R-c.left),A=Math.round(T-c.top)}if(p)M=Math.sqrt((2*c.width**2+c.height**2)/3),M%2===0&&(M+=1);else{const R=Math.max(Math.abs((g?g.clientWidth:0)-y),y)*2+2,T=Math.max(Math.abs((g?g.clientHeight:0)-A),A)*2+2;M=Math.sqrt(R**2+T**2)}h!=null&&h.touches?v.current===null&&(v.current=()=>{a({pulsate:b,rippleX:y,rippleY:A,rippleSize:M,cb:u})},w.start(zY,()=>{v.current&&(v.current(),v.current=null)})):a({pulsate:b,rippleX:y,rippleY:A,rippleSize:M,cb:u})},[j,a,w]),s=Oe.useCallback(()=>{n({},{pulsate:!0})},[n]),o=Oe.useCallback((h,f)=>{if(w.clear(),(h==null?void 0:h.type)==="touchend"&&v.current){v.current(),v.current=null,w.start(0,()=>{o(h,f)});return}v.current=null,l(u=>u.length>0?u.slice(1):u),i.current=f},[w]);return Oe.useImperativeHandle(x,()=>({pulsate:s,start:n,stop:o}),[s,n,o]),Ce.jsx(HY,Ge({className:Ln(hf.root,Y.root,D),ref:m},O,{children:Ce.jsx(Mb,{component:null,exit:!0,children:t})}))});function GY(e){return ka("MuiButtonBase",e)}const WY=Ca("MuiButtonBase",["root","disabled","focusVisible"]),$Y=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],YY=e=>{const{disabled:r,focusVisible:x,focusVisibleClassName:F,classes:j}=e,D=qn({root:["root",r&&"disabled",x&&"focusVisible"]},GY,j);return x&&F&&(D.root+=` ${F}`),D},XY=ln("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${WY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ef=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiButtonBase"}),{action:j,centerRipple:Y=!1,children:D,className:O,component:t="button",disabled:l=!1,disableRipple:S=!1,disableTouchRipple:i=!1,focusRipple:C=!1,LinkComponent:w="a",onBlur:v,onClick:m,onContextMenu:a,onDragLeave:n,onFocus:s,onFocusVisible:o,onKeyDown:h,onKeyUp:f,onMouseDown:u,onMouseLeave:b,onMouseUp:p,onTouchEnd:E,onTouchMove:g,onTouchStart:c,tabIndex:y=0,TouchRippleProps:A,touchRippleRef:M,type:R}=F,T=hn(F,$Y),L=Oe.useRef(null),P=Oe.useRef(null),d=vi(P,M),{isFocusVisibleRef:k,onFocus:I,onBlur:N,ref:B}=Sb(),[G,U]=Oe.useState(!1);l&&G&&U(!1),Oe.useImperativeHandle(j,()=>({focusVisible:()=>{U(!0),L.current.focus()}}),[]);const[H,W]=Oe.useState(!1);Oe.useEffect(()=>{W(!0)},[]);const V=H&&!S&&!l;Oe.useEffect(()=>{G&&C&&!S&&H&&P.current.pulsate()},[S,C,G,H]);function $(ke,Te,Ae=i){return pa(be=>(Te&&Te(be),!Ae&&P.current&&P.current[ke](be),!0))}const Z=$("start",u),q=$("stop",a),ae=$("stop",n),ie=$("stop",p),fe=$("stop",ke=>{G&&ke.preventDefault(),b&&b(ke)}),Q=$("start",c),J=$("stop",E),oe=$("stop",g),K=$("stop",ke=>{N(ke),k.current===!1&&U(!1),v&&v(ke)},!1),ne=pa(ke=>{L.current||(L.current=ke.currentTarget),I(ke),k.current===!0&&(U(!0),o&&o(ke)),s&&s(ke)}),ce=()=>{const ke=L.current;return t&&t!=="button"&&!(ke.tagName==="A"&&ke.href)},re=Oe.useRef(!1),ee=pa(ke=>{C&&!re.current&&G&&P.current&&ke.key===" "&&(re.current=!0,P.current.stop(ke,()=>{P.current.start(ke)})),ke.target===ke.currentTarget&&ce()&&ke.key===" "&&ke.preventDefault(),h&&h(ke),ke.target===ke.currentTarget&&ce()&&ke.key==="Enter"&&!l&&(ke.preventDefault(),m&&m(ke))}),de=pa(ke=>{C&&ke.key===" "&&P.current&&G&&!ke.defaultPrevented&&(re.current=!1,P.current.stop(ke,()=>{P.current.pulsate(ke)})),f&&f(ke),m&&ke.target===ke.currentTarget&&ce()&&ke.key===" "&&!ke.defaultPrevented&&m(ke)});let le=t;le==="button"&&(T.href||T.to)&&(le=w);const he={};le==="button"?(he.type=R===void 0?"button":R,he.disabled=l):(!T.href&&!T.to&&(he.role="button"),l&&(he["aria-disabled"]=l));const xe=vi(x,B,L),Ee=Ge({},F,{centerRipple:Y,component:t,disabled:l,disableRipple:S,disableTouchRipple:i,focusRipple:C,tabIndex:y,focusVisible:G}),Se=YY(Ee);return Ce.jsxs(XY,Ge({as:le,className:Ln(Se.root,O),ownerState:Ee,onBlur:K,onClick:m,onContextMenu:q,onFocus:ne,onKeyDown:ee,onKeyUp:de,onMouseDown:Z,onMouseLeave:fe,onMouseUp:ie,onDragLeave:ae,onTouchEnd:J,onTouchMove:oe,onTouchStart:Q,ref:xe,tabIndex:l?-1:y,type:R},he,T,{children:[D,V?Ce.jsx(jY,Ge({ref:d,center:Y},A)):null]}))});function ZY(e){return ka("MuiAlert",e)}const I8=Ca("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function KY(e){return ka("MuiIconButton",e)}const JY=Ca("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),QY=["edge","children","className","color","disabled","disableFocusRipple","size"],qY=e=>{const{classes:r,disabled:x,color:F,edge:j,size:Y}=e,D={root:["root",x&&"disabled",F!=="default"&&`color${Gn(F)}`,j&&`edge${Gn(j)}`,`size${Gn(Y)}`]};return qn(D,KY,r)},eX=ln(Ef,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.color!=="default"&&r[`color${Gn(x.color)}`],x.edge&&r[`edge${Gn(x.edge)}`],r[`size${Gn(x.size)}`]]}})(({theme:e,ownerState:r})=>Ge({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:e,ownerState:r})=>{var x;const F=(x=(e.vars||e).palette)==null?void 0:x[r.color];return Ge({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&Ge({color:F==null?void 0:F.main},!r.disableRipple&&{"&:hover":Ge({},F&&{backgroundColor:e.vars?`rgba(${F.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(F.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${JY.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),dl=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiIconButton"}),{edge:j=!1,children:Y,className:D,color:O="default",disabled:t=!1,disableFocusRipple:l=!1,size:S="medium"}=F,i=hn(F,QY),C=Ge({},F,{edge:j,color:O,disabled:t,disableFocusRipple:l,size:S}),w=qY(C);return Ce.jsx(eX,Ge({className:Ln(w.root,D),centerRipple:!0,focusRipple:!l,disabled:t,ref:x},i,{ownerState:C,children:Y}))}),tX=ci(Ce.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),rX=ci(Ce.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),nX=ci(Ce.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),aX=ci(Ce.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),c9=ci(Ce.jsx("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"),iX=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],oX=e=>{const{variant:r,color:x,severity:F,classes:j}=e,Y={root:["root",`color${Gn(x||F)}`,`${r}${Gn(x||F)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return qn(Y,ZY,j)},sX=ln(Ri,{name:"MuiAlert",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],r[`${x.variant}${Gn(x.color||x.severity)}`]]}})(({theme:e})=>{const r=e.palette.mode==="light"?cg:fg,x=e.palette.mode==="light"?fg:cg;return Ge({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,F])=>F.main&&F.light).map(([F])=>({props:{colorSeverity:F,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${F}Color`]:r(e.palette[F].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${F}StandardBg`]:x(e.palette[F].light,.9),[`& .${I8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${F}IconColor`]}:{color:e.palette[F].main}}})),...Object.entries(e.palette).filter(([,F])=>F.main&&F.light).map(([F])=>({props:{colorSeverity:F,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${F}Color`]:r(e.palette[F].light,.6),border:`1px solid ${(e.vars||e).palette[F].light}`,[`& .${I8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${F}IconColor`]}:{color:e.palette[F].main}}})),...Object.entries(e.palette).filter(([,F])=>F.main&&F.dark).map(([F])=>({props:{colorSeverity:F,variant:"filled"},style:Ge({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${F}FilledColor`],backgroundColor:e.vars.palette.Alert[`${F}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[F].dark:e.palette[F].main,color:e.palette.getContrastText(e.palette[F].main)})}))]})}),lX=ln("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),uX=ln("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),R8=ln("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),k8={success:Ce.jsx(tX,{fontSize:"inherit"}),warning:Ce.jsx(rX,{fontSize:"inherit"}),error:Ce.jsx(nX,{fontSize:"inherit"}),info:Ce.jsx(aX,{fontSize:"inherit"})},f9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiAlert"}),{action:j,children:Y,className:D,closeText:O="Close",color:t,components:l={},componentsProps:S={},icon:i,iconMapping:C=k8,onClose:w,role:v="alert",severity:m="success",slotProps:a={},slots:n={},variant:s="standard"}=F,o=hn(F,iX),h=Ge({},F,{color:t,severity:m,variant:s,colorSeverity:t||m}),f=oX(h),u={slots:Ge({closeButton:l.CloseButton,closeIcon:l.CloseIcon},n),slotProps:Ge({},S,a)},[b,p]=M8("closeButton",{elementType:dl,externalForwardedProps:u,ownerState:h}),[E,g]=M8("closeIcon",{elementType:c9,externalForwardedProps:u,ownerState:h});return Ce.jsxs(sX,Ge({role:v,elevation:0,ownerState:h,className:Ln(f.root,D),ref:x},o,{children:[i!==!1?Ce.jsx(lX,{ownerState:h,className:f.icon,children:i||C[m]||k8[m]}):null,Ce.jsx(uX,{ownerState:h,className:f.message,children:Y}),j!=null?Ce.jsx(R8,{ownerState:h,className:f.action,children:j}):null,j==null&&w?Ce.jsx(R8,{ownerState:h,className:f.action,children:Ce.jsx(b,Ge({size:"small","aria-label":O,title:O,color:"inherit",onClick:w},p,{children:Ce.jsx(E,Ge({fontSize:"small"},g))}))}):null]}))});function cX(e){return ka("MuiTypography",e)}Ca("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dX=e=>{const{align:r,gutterBottom:x,noWrap:F,paragraph:j,variant:Y,classes:D}=e,O={root:["root",Y,e.align!=="inherit"&&`align${Gn(r)}`,x&&"gutterBottom",F&&"noWrap",j&&"paragraph"]};return qn(O,cX,D)},hX=ln("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.variant&&r[x.variant],x.align!=="inherit"&&r[`align${Gn(x.align)}`],x.noWrap&&r.noWrap,x.gutterBottom&&r.gutterBottom,x.paragraph&&r.paragraph]}})(({theme:e,ownerState:r})=>Ge({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&e.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),D8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pX=e=>vX[e]||e,ea=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTypography"}),j=pX(F.color),Y=wb(Ge({},F,{color:j})),{align:D="inherit",className:O,component:t,gutterBottom:l=!1,noWrap:S=!1,paragraph:i=!1,variant:C="body1",variantMapping:w=D8}=Y,v=hn(Y,fX),m=Ge({},Y,{align:D,color:j,className:O,component:t,gutterBottom:l,noWrap:S,paragraph:i,variant:C,variantMapping:w}),a=t||(i?"p":w[C]||D8[C])||"span",n=dX(m);return Ce.jsx(hX,Ge({as:a,ref:x,ownerState:m,className:Ln(n.root,O)},v))});function gX(e){return ka("MuiAppBar",e)}Ca("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const mX=["className","color","enableColorOnDark","position"],yX=e=>{const{color:r,position:x,classes:F}=e,j={root:["root",`color${Gn(r)}`,`position${Gn(x)}`]};return qn(j,gX,F)},Bw=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,xX=ln(Ri,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[`position${Gn(x.position)}`],r[`color${Gn(x.color)}`]]}})(({theme:e,ownerState:r})=>{const x=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Ge({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&Ge({},r.color==="default"&&{backgroundColor:x,color:e.palette.getContrastText(x)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&Ge({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Ge({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bw(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:Bw(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:Bw(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:Bw(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),d9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiAppBar"}),{className:j,color:Y="primary",enableColorOnDark:D=!1,position:O="fixed"}=F,t=hn(F,mX),l=Ge({},F,{color:Y,position:O,enableColorOnDark:D}),S=yX(l);return Ce.jsx(xX,Ge({square:!0,component:"header",ownerState:l,elevation:4,className:Ln(S.root,j,O==="fixed"&&"mui-fixed"),ref:x},t))});function O8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function h9(e={}){const{ignoreAccents:r=!0,ignoreCase:x=!0,limit:F,matchFrom:j="any",stringify:Y,trim:D=!1}=e;return(O,{inputValue:t,getOptionLabel:l})=>{let S=D?t.trim():t;x&&(S=S.toLowerCase()),r&&(S=O8(S));const i=S?O.filter(C=>{let w=(Y||l)(C);return x&&(w=w.toLowerCase()),r&&(w=O8(w)),j==="start"?w.indexOf(S)===0:w.indexOf(S)>-1}):O;return typeof F=="number"?i.slice(0,F):i}}function Nw(e,r){for(let x=0;x{var r;return e.current!==null&&((r=e.current.parentElement)==null?void 0:r.contains(document.activeElement))};function TX(e){const{unstable_isActiveElementInListbox:r=wX,unstable_classNamePrefix:x="Mui",autoComplete:F=!1,autoHighlight:j=!1,autoSelect:Y=!1,blurOnSelect:D=!1,clearOnBlur:O=!e.freeSolo,clearOnEscape:t=!1,componentName:l="useAutocomplete",defaultValue:S=e.multiple?[]:null,disableClearable:i=!1,disableCloseOnSelect:C=!1,disabled:w,disabledItemsFocusable:v=!1,disableListWrap:m=!1,filterOptions:a=bX,filterSelectedOptions:n=!1,freeSolo:s=!1,getOptionDisabled:o,getOptionKey:h,getOptionLabel:f=ut=>{var It;return(It=ut.label)!=null?It:ut},groupBy:u,handleHomeEndKeys:b=!e.freeSolo,id:p,includeInputInList:E=!1,inputValue:g,isOptionEqualToValue:c=(ut,It)=>ut===It,multiple:y=!1,onChange:A,onClose:M,onHighlightChange:R,onInputChange:T,onOpen:L,open:P,openOnFocus:d=!1,options:k,readOnly:I=!1,selectOnFocus:N=!e.freeSolo,value:B}=e,G=Ui(p);let U=f;U=ut=>{const It=f(ut);return typeof It!="string"?String(It):It};const H=Oe.useRef(!1),W=Oe.useRef(!0),V=Oe.useRef(null),$=Oe.useRef(null),[Z,q]=Oe.useState(null),[ae,ie]=Oe.useState(-1),fe=j?0:-1,Q=Oe.useRef(fe),[J,oe]=Ol({controlled:B,default:S,name:l}),[K,ne]=Ol({controlled:g,default:"",name:l,state:"inputValue"}),[ce,re]=Oe.useState(!1),ee=Oe.useCallback((ut,It)=>{if(!(y?J.length!(n&&(y?J:[J]).some(It=>It!==null&&c(ut,It)))),{inputValue:Ee&&he?"":K,getOptionLabel:U}):[],Te=jA({filteredOptions:ke,value:J,inputValue:K});Oe.useEffect(()=>{const ut=J!==Te.value;ce&&!ut||s&&!ut||ee(null,J)},[J,ee,ce,Te.value,s]);const Ae=de&&ke.length>0&&!I,be=pa(ut=>{ut===-1?V.current.focus():Z.querySelector(`[data-tag-index="${ut}"]`).focus()});Oe.useEffect(()=>{y&&ae>J.length-1&&(ie(-1),be(-1))},[J,y,ae,be]);function Ie(ut,It){if(!$.current||ut<0||ut>=ke.length)return-1;let Vt=ut;for(;;){const xt=$.current.querySelector(`[data-option-index="${Vt}"]`),Lt=v?!1:!xt||xt.disabled||xt.getAttribute("aria-disabled")==="true";if(xt&&xt.hasAttribute("tabindex")&&!Lt)return Vt;if(It==="next"?Vt=(Vt+1)%ke.length:Vt=(Vt-1+ke.length)%ke.length,Vt===ut)return-1}}const Ue=pa(({event:ut,index:It,reason:Vt="auto"})=>{if(Q.current=It,It===-1?V.current.removeAttribute("aria-activedescendant"):V.current.setAttribute("aria-activedescendant",`${G}-option-${It}`),R&&R(ut,It===-1?null:ke[It],Vt),!$.current)return;const xt=$.current.querySelector(`[role="option"].${x}-focused`);xt&&(xt.classList.remove(`${x}-focused`),xt.classList.remove(`${x}-focusVisible`));let Lt=$.current;if($.current.getAttribute("role")!=="listbox"&&(Lt=$.current.parentElement.querySelector('[role="listbox"]')),!Lt)return;if(It===-1){Lt.scrollTop=0;return}const Xt=$.current.querySelector(`[data-option-index="${It}"]`);if(Xt&&(Xt.classList.add(`${x}-focused`),Vt==="keyboard"&&Xt.classList.add(`${x}-focusVisible`),Lt.scrollHeight>Lt.clientHeight&&Vt!=="mouse"&&Vt!=="touch")){const dr=Xt,Tt=Lt.clientHeight+Lt.scrollTop,Kt=dr.offsetTop+dr.offsetHeight;Kt>Tt?Lt.scrollTop=Kt-Lt.clientHeight:dr.offsetTop-dr.offsetHeight*(u?1.3:0){if(!Se)return;const Xt=Ie((()=>{const dr=ke.length-1;if(It==="reset")return fe;if(It==="start")return 0;if(It==="end")return dr;const Tt=Q.current+It;return Tt<0?Tt===-1&&E?-1:m&&Q.current!==-1||Math.abs(It)>1?0:dr:Tt>dr?Tt===dr+1&&E?-1:m||Math.abs(It)>1?dr:0:Tt})(),Vt);if(Ue({index:Xt,reason:xt,event:ut}),F&&It!=="reset")if(Xt===-1)V.current.value=K;else{const dr=U(ke[Xt]);V.current.value=dr,dr.toLowerCase().indexOf(K.toLowerCase())===0&&K.length>0&&V.current.setSelectionRange(K.length,dr.length)}}),ze=()=>{const ut=(It,Vt)=>{const xt=It?U(It):"",Lt=Vt?U(Vt):"";return xt===Lt};if(Q.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==ke.length&&Te.inputValue===K&&(y?J.length===Te.value.length&&Te.value.every((It,Vt)=>U(J[Vt])===U(It)):ut(Te.value,J))){const It=Te.filteredOptions[Q.current];if(It)return Nw(ke,Vt=>U(Vt)===U(It))}return-1},$e=Oe.useCallback(()=>{if(!Se)return;const ut=ze();if(ut!==-1){Q.current=ut;return}const It=y?J[0]:J;if(ke.length===0||It==null){Ne({diff:"reset"});return}if($.current){if(It!=null){const Vt=ke[Q.current];if(y&&Vt&&Nw(J,Lt=>c(Vt,Lt))!==-1)return;const xt=Nw(ke,Lt=>c(Lt,It));xt===-1?Ne({diff:"reset"}):Ue({index:xt});return}if(Q.current>=ke.length-1){Ue({index:ke.length-1});return}Ue({index:Q.current})}},[ke.length,y?!1:J,n,Ne,Ue,Se,K,y]),st=pa(ut=>{$x($,ut),ut&&$e()});Oe.useEffect(()=>{$e()},[$e]);const vt=ut=>{de||(le(!0),xe(!0),L&&L(ut))},at=(ut,It)=>{de&&(le(!1),M&&M(ut,It))},nt=(ut,It,Vt,xt)=>{if(y){if(J.length===It.length&&J.every((Lt,Xt)=>Lt===It[Xt]))return}else if(J===It)return;A&&A(ut,It,Vt,xt),oe(It)},mt=Oe.useRef(!1),rt=(ut,It,Vt="selectOption",xt="options")=>{let Lt=Vt,Xt=It;if(y){Xt=Array.isArray(J)?J.slice():[];const dr=Nw(Xt,Tt=>c(It,Tt));dr===-1?Xt.push(It):xt!=="freeSolo"&&(Xt.splice(dr,1),Lt="removeOption")}ee(ut,Xt),nt(ut,Xt,Lt,{option:It}),!C&&(!ut||!ut.ctrlKey&&!ut.metaKey)&&at(ut,Lt),(D===!0||D==="touch"&&mt.current||D==="mouse"&&!mt.current)&&V.current.blur()};function lt(ut,It){if(ut===-1)return-1;let Vt=ut;for(;;){if(It==="next"&&Vt===J.length||It==="previous"&&Vt===-1)return-1;const xt=Z.querySelector(`[data-tag-index="${Vt}"]`);if(!xt||!xt.hasAttribute("tabindex")||xt.disabled||xt.getAttribute("aria-disabled")==="true")Vt+=It==="next"?1:-1;else return Vt}}const dt=(ut,It)=>{if(!y)return;K===""&&at(ut,"toggleInput");let Vt=ae;ae===-1?K===""&&It==="previous"&&(Vt=J.length-1):(Vt+=It==="next"?1:-1,Vt<0&&(Vt=0),Vt===J.length&&(Vt=-1)),Vt=lt(Vt,It),ie(Vt),be(Vt)},wt=ut=>{H.current=!0,ne(""),T&&T(ut,"","clear"),nt(ut,y?[]:null,"clear")},et=ut=>It=>{if(ut.onKeyDown&&ut.onKeyDown(It),!It.defaultMuiPrevented&&(ae!==-1&&["ArrowLeft","ArrowRight"].indexOf(It.key)===-1&&(ie(-1),be(-1)),It.which!==229))switch(It.key){case"Home":Se&&b&&(It.preventDefault(),Ne({diff:"start",direction:"next",reason:"keyboard",event:It}));break;case"End":Se&&b&&(It.preventDefault(),Ne({diff:"end",direction:"previous",reason:"keyboard",event:It}));break;case"PageUp":It.preventDefault(),Ne({diff:-F8,direction:"previous",reason:"keyboard",event:It}),vt(It);break;case"PageDown":It.preventDefault(),Ne({diff:F8,direction:"next",reason:"keyboard",event:It}),vt(It);break;case"ArrowDown":It.preventDefault(),Ne({diff:1,direction:"next",reason:"keyboard",event:It}),vt(It);break;case"ArrowUp":It.preventDefault(),Ne({diff:-1,direction:"previous",reason:"keyboard",event:It}),vt(It);break;case"ArrowLeft":dt(It,"previous");break;case"ArrowRight":dt(It,"next");break;case"Enter":if(Q.current!==-1&&Se){const Vt=ke[Q.current],xt=o?o(Vt):!1;if(It.preventDefault(),xt)return;rt(It,Vt,"selectOption"),F&&V.current.setSelectionRange(V.current.value.length,V.current.value.length)}else s&&K!==""&&Ee===!1&&(y&&It.preventDefault(),rt(It,K,"createOption","freeSolo"));break;case"Escape":Se?(It.preventDefault(),It.stopPropagation(),at(It,"escape")):t&&(K!==""||y&&J.length>0)&&(It.preventDefault(),It.stopPropagation(),wt(It));break;case"Backspace":if(y&&!I&&K===""&&J.length>0){const Vt=ae===-1?J.length-1:ae,xt=J.slice();xt.splice(Vt,1),nt(It,xt,"removeOption",{option:J[Vt]})}break;case"Delete":if(y&&!I&&K===""&&J.length>0&&ae!==-1){const Vt=ae,xt=J.slice();xt.splice(Vt,1),nt(It,xt,"removeOption",{option:J[Vt]})}break}},Be=ut=>{re(!0),d&&!H.current&&vt(ut)},Ye=ut=>{if(r($)){V.current.focus();return}re(!1),W.current=!0,H.current=!1,Y&&Q.current!==-1&&Se?rt(ut,ke[Q.current],"blur"):Y&&s&&K!==""?rt(ut,K,"blur","freeSolo"):O&&ee(ut,J),at(ut,"blur")},Ze=ut=>{const It=ut.target.value;K!==It&&(ne(It),xe(!1),T&&T(ut,It,"input")),It===""?!i&&!y&&nt(ut,null,"clear"):vt(ut)},We=ut=>{const It=Number(ut.currentTarget.getAttribute("data-option-index"));Q.current!==It&&Ue({event:ut,index:It,reason:"mouse"})},Fe=ut=>{Ue({event:ut,index:Number(ut.currentTarget.getAttribute("data-option-index")),reason:"touch"}),mt.current=!0},Me=ut=>{const It=Number(ut.currentTarget.getAttribute("data-option-index"));rt(ut,ke[It],"selectOption"),mt.current=!1},we=ut=>It=>{const Vt=J.slice();Vt.splice(ut,1),nt(It,Vt,"removeOption",{option:J[ut]})},Re=ut=>{de?at(ut,"toggleInput"):vt(ut)},Pe=ut=>{ut.currentTarget.contains(ut.target)&&ut.target.getAttribute("id")!==G&&ut.preventDefault()},Ve=ut=>{ut.currentTarget.contains(ut.target)&&(V.current.focus(),N&&W.current&&V.current.selectionEnd-V.current.selectionStart===0&&V.current.select(),W.current=!1)},Je=ut=>{!w&&(K===""||!de)&&Re(ut)};let ot=s&&K.length>0;ot=ot||(y?J.length>0:J!==null);let yt=ke;return u&&(yt=ke.reduce((ut,It,Vt)=>{const xt=u(It);return ut.length>0&&ut[ut.length-1].group===xt?ut[ut.length-1].options.push(It):ut.push({key:Vt,index:Vt,group:xt,options:[It]}),ut},[])),w&&ce&&Ye(),{getRootProps:(ut={})=>Ge({"aria-owns":Ae?`${G}-listbox`:null},ut,{onKeyDown:et(ut),onMouseDown:Pe,onClick:Ve}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:K,onBlur:Ye,onFocus:Be,onChange:Ze,onMouseDown:Je,"aria-activedescendant":Se?"":null,"aria-autocomplete":F?"both":"list","aria-controls":Ae?`${G}-listbox`:void 0,"aria-expanded":Ae,autoComplete:"off",ref:V,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getTagProps:({index:ut})=>Ge({key:ut,"data-tag-index":ut,tabIndex:-1},!I&&{onDelete:we(ut)}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:st,onMouseDown:ut=>{ut.preventDefault()}}),getOptionProps:({index:ut,option:It})=>{var Vt;const xt=(y?J:[J]).some(Xt=>Xt!=null&&c(It,Xt)),Lt=o?o(It):!1;return{key:(Vt=h==null?void 0:h(It))!=null?Vt:U(It),tabIndex:-1,role:"option",id:`${G}-option-${ut}`,onMouseMove:We,onClick:Me,onTouchStart:Fe,"data-option-index":ut,"aria-disabled":Lt,"aria-selected":xt}},id:G,inputValue:K,value:J,dirty:ot,expanded:Se&&Z,popupOpen:Se,focused:ce||ae!==-1,anchorEl:Z,setAnchorEl:q,focusedTag:ae,groupedOptions:yt}}var JA={};Object.defineProperty(JA,"__esModule",{value:!0});var v9=JA.default=void 0,SX=MX(Oe),CX=i9;function p9(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,x=new WeakMap;return(p9=function(F){return F?x:r})(e)}function MX(e,r){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var x=p9(r);if(x&&x.has(e))return x.get(e);var F={__proto__:null},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in e)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(e,Y)){var D=j?Object.getOwnPropertyDescriptor(e,Y):null;D&&(D.get||D.set)?Object.defineProperty(F,Y,D):F[Y]=e[Y]}return F.default=e,x&&x.set(e,F),F}function AX(e){return Object.keys(e).length===0}function EX(e=null){const r=SX.useContext(CX.ThemeContext);return!r||AX(r)?e:r}v9=JA.default=EX;var Zu="top",Pf="bottom",Lf="right",Ku="left",QA="auto",Ab=[Zu,Pf,Lf,Ku],Sy="start",Kx="end",PX="clippingParents",g9="viewport",E1="popper",LX="reference",_8=Ab.reduce(function(e,r){return e.concat([r+"-"+Sy,r+"-"+Kx])},[]),m9=[].concat(Ab,[QA]).reduce(function(e,r){return e.concat([r,r+"-"+Sy,r+"-"+Kx])},[]),IX="beforeRead",RX="read",kX="afterRead",DX="beforeMain",OX="main",FX="afterMain",_X="beforeWrite",zX="write",BX="afterWrite",NX=[IX,RX,kX,DX,OX,FX,_X,zX,BX];function hh(e){return e?(e.nodeName||"").toLowerCase():null}function Lc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function dg(e){var r=Lc(e).Element;return e instanceof r||e instanceof Element}function Tf(e){var r=Lc(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function qA(e){if(typeof ShadowRoot>"u")return!1;var r=Lc(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function UX(e){var r=e.state;Object.keys(r.elements).forEach(function(x){var F=r.styles[x]||{},j=r.attributes[x]||{},Y=r.elements[x];!Tf(Y)||!hh(Y)||(Object.assign(Y.style,F),Object.keys(j).forEach(function(D){var O=j[D];O===!1?Y.removeAttribute(D):Y.setAttribute(D,O===!0?"":O)}))})}function HX(e){var r=e.state,x={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,x.popper),r.styles=x,r.elements.arrow&&Object.assign(r.elements.arrow.style,x.arrow),function(){Object.keys(r.elements).forEach(function(F){var j=r.elements[F],Y=r.attributes[F]||{},D=Object.keys(r.styles.hasOwnProperty(F)?r.styles[F]:x[F]),O=D.reduce(function(t,l){return t[l]="",t},{});!Tf(j)||!hh(j)||(Object.assign(j.style,O),Object.keys(Y).forEach(function(t){j.removeAttribute(t)}))})}}const VX={name:"applyStyles",enabled:!0,phase:"write",fn:UX,effect:HX,requires:["computeStyles"]};function ch(e){return e.split("-")[0]}var tg=Math.max,r2=Math.min,Cy=Math.round;function j4(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function y9(){return!/^((?!chrome|android).)*safari/i.test(j4())}function My(e,r,x){r===void 0&&(r=!1),x===void 0&&(x=!1);var F=e.getBoundingClientRect(),j=1,Y=1;r&&Tf(e)&&(j=e.offsetWidth>0&&Cy(F.width)/e.offsetWidth||1,Y=e.offsetHeight>0&&Cy(F.height)/e.offsetHeight||1);var D=dg(e)?Lc(e):window,O=D.visualViewport,t=!y9()&&x,l=(F.left+(t&&O?O.offsetLeft:0))/j,S=(F.top+(t&&O?O.offsetTop:0))/Y,i=F.width/j,C=F.height/Y;return{width:i,height:C,top:S,right:l+i,bottom:S+C,left:l,x:l,y:S}}function e5(e){var r=My(e),x=e.offsetWidth,F=e.offsetHeight;return Math.abs(r.width-x)<=1&&(x=r.width),Math.abs(r.height-F)<=1&&(F=r.height),{x:e.offsetLeft,y:e.offsetTop,width:x,height:F}}function x9(e,r){var x=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(x&&qA(x)){var F=r;do{if(F&&e.isSameNode(F))return!0;F=F.parentNode||F.host}while(F)}return!1}function uv(e){return Lc(e).getComputedStyle(e)}function jX(e){return["table","td","th"].indexOf(hh(e))>=0}function Yp(e){return((dg(e)?e.ownerDocument:e.document)||window.document).documentElement}function TT(e){return hh(e)==="html"?e:e.assignedSlot||e.parentNode||(qA(e)?e.host:null)||Yp(e)}function z8(e){return!Tf(e)||uv(e).position==="fixed"?null:e.offsetParent}function GX(e){var r=/firefox/i.test(j4()),x=/Trident/i.test(j4());if(x&&Tf(e)){var F=uv(e);if(F.position==="fixed")return null}var j=TT(e);for(qA(j)&&(j=j.host);Tf(j)&&["html","body"].indexOf(hh(j))<0;){var Y=uv(j);if(Y.transform!=="none"||Y.perspective!=="none"||Y.contain==="paint"||["transform","perspective"].indexOf(Y.willChange)!==-1||r&&Y.willChange==="filter"||r&&Y.filter&&Y.filter!=="none")return j;j=j.parentNode}return null}function Eb(e){for(var r=Lc(e),x=z8(e);x&&jX(x)&&uv(x).position==="static";)x=z8(x);return x&&(hh(x)==="html"||hh(x)==="body"&&uv(x).position==="static")?r:x||GX(e)||r}function t5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mx(e,r,x){return tg(e,r2(r,x))}function WX(e,r,x){var F=mx(e,r,x);return F>x?x:F}function b9(){return{top:0,right:0,bottom:0,left:0}}function w9(e){return Object.assign({},b9(),e)}function T9(e,r){return r.reduce(function(x,F){return x[F]=e,x},{})}var $X=function(r,x){return r=typeof r=="function"?r(Object.assign({},x.rects,{placement:x.placement})):r,w9(typeof r!="number"?r:T9(r,Ab))};function YX(e){var r,x=e.state,F=e.name,j=e.options,Y=x.elements.arrow,D=x.modifiersData.popperOffsets,O=ch(x.placement),t=t5(O),l=[Ku,Lf].indexOf(O)>=0,S=l?"height":"width";if(!(!Y||!D)){var i=$X(j.padding,x),C=e5(Y),w=t==="y"?Zu:Ku,v=t==="y"?Pf:Lf,m=x.rects.reference[S]+x.rects.reference[t]-D[t]-x.rects.popper[S],a=D[t]-x.rects.reference[t],n=Eb(Y),s=n?t==="y"?n.clientHeight||0:n.clientWidth||0:0,o=m/2-a/2,h=i[w],f=s-C[S]-i[v],u=s/2-C[S]/2+o,b=mx(h,u,f),p=t;x.modifiersData[F]=(r={},r[p]=b,r.centerOffset=b-u,r)}}function XX(e){var r=e.state,x=e.options,F=x.element,j=F===void 0?"[data-popper-arrow]":F;j!=null&&(typeof j=="string"&&(j=r.elements.popper.querySelector(j),!j)||x9(r.elements.popper,j)&&(r.elements.arrow=j))}const ZX={name:"arrow",enabled:!0,phase:"main",fn:YX,effect:XX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ay(e){return e.split("-")[1]}var KX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JX(e,r){var x=e.x,F=e.y,j=r.devicePixelRatio||1;return{x:Cy(x*j)/j||0,y:Cy(F*j)/j||0}}function B8(e){var r,x=e.popper,F=e.popperRect,j=e.placement,Y=e.variation,D=e.offsets,O=e.position,t=e.gpuAcceleration,l=e.adaptive,S=e.roundOffsets,i=e.isFixed,C=D.x,w=C===void 0?0:C,v=D.y,m=v===void 0?0:v,a=typeof S=="function"?S({x:w,y:m}):{x:w,y:m};w=a.x,m=a.y;var n=D.hasOwnProperty("x"),s=D.hasOwnProperty("y"),o=Ku,h=Zu,f=window;if(l){var u=Eb(x),b="clientHeight",p="clientWidth";if(u===Lc(x)&&(u=Yp(x),uv(u).position!=="static"&&O==="absolute"&&(b="scrollHeight",p="scrollWidth")),u=u,j===Zu||(j===Ku||j===Lf)&&Y===Kx){h=Pf;var E=i&&u===f&&f.visualViewport?f.visualViewport.height:u[b];m-=E-F.height,m*=t?1:-1}if(j===Ku||(j===Zu||j===Pf)&&Y===Kx){o=Lf;var g=i&&u===f&&f.visualViewport?f.visualViewport.width:u[p];w-=g-F.width,w*=t?1:-1}}var c=Object.assign({position:O},l&&KX),y=S===!0?JX({x:w,y:m},Lc(x)):{x:w,y:m};if(w=y.x,m=y.y,t){var A;return Object.assign({},c,(A={},A[h]=s?"0":"",A[o]=n?"0":"",A.transform=(f.devicePixelRatio||1)<=1?"translate("+w+"px, "+m+"px)":"translate3d("+w+"px, "+m+"px, 0)",A))}return Object.assign({},c,(r={},r[h]=s?m+"px":"",r[o]=n?w+"px":"",r.transform="",r))}function QX(e){var r=e.state,x=e.options,F=x.gpuAcceleration,j=F===void 0?!0:F,Y=x.adaptive,D=Y===void 0?!0:Y,O=x.roundOffsets,t=O===void 0?!0:O,l={placement:ch(r.placement),variation:Ay(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:j,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,B8(Object.assign({},l,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:D,roundOffsets:t})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,B8(Object.assign({},l,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:t})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const qX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QX,data:{}};var Uw={passive:!0};function eZ(e){var r=e.state,x=e.instance,F=e.options,j=F.scroll,Y=j===void 0?!0:j,D=F.resize,O=D===void 0?!0:D,t=Lc(r.elements.popper),l=[].concat(r.scrollParents.reference,r.scrollParents.popper);return Y&&l.forEach(function(S){S.addEventListener("scroll",x.update,Uw)}),O&&t.addEventListener("resize",x.update,Uw),function(){Y&&l.forEach(function(S){S.removeEventListener("scroll",x.update,Uw)}),O&&t.removeEventListener("resize",x.update,Uw)}}const tZ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eZ,data:{}};var rZ={left:"right",right:"left",bottom:"top",top:"bottom"};function b3(e){return e.replace(/left|right|bottom|top/g,function(r){return rZ[r]})}var nZ={start:"end",end:"start"};function N8(e){return e.replace(/start|end/g,function(r){return nZ[r]})}function r5(e){var r=Lc(e),x=r.pageXOffset,F=r.pageYOffset;return{scrollLeft:x,scrollTop:F}}function n5(e){return My(Yp(e)).left+r5(e).scrollLeft}function aZ(e,r){var x=Lc(e),F=Yp(e),j=x.visualViewport,Y=F.clientWidth,D=F.clientHeight,O=0,t=0;if(j){Y=j.width,D=j.height;var l=y9();(l||!l&&r==="fixed")&&(O=j.offsetLeft,t=j.offsetTop)}return{width:Y,height:D,x:O+n5(e),y:t}}function iZ(e){var r,x=Yp(e),F=r5(e),j=(r=e.ownerDocument)==null?void 0:r.body,Y=tg(x.scrollWidth,x.clientWidth,j?j.scrollWidth:0,j?j.clientWidth:0),D=tg(x.scrollHeight,x.clientHeight,j?j.scrollHeight:0,j?j.clientHeight:0),O=-F.scrollLeft+n5(e),t=-F.scrollTop;return uv(j||x).direction==="rtl"&&(O+=tg(x.clientWidth,j?j.clientWidth:0)-Y),{width:Y,height:D,x:O,y:t}}function a5(e){var r=uv(e),x=r.overflow,F=r.overflowX,j=r.overflowY;return/auto|scroll|overlay|hidden/.test(x+j+F)}function S9(e){return["html","body","#document"].indexOf(hh(e))>=0?e.ownerDocument.body:Tf(e)&&a5(e)?e:S9(TT(e))}function yx(e,r){var x;r===void 0&&(r=[]);var F=S9(e),j=F===((x=e.ownerDocument)==null?void 0:x.body),Y=Lc(F),D=j?[Y].concat(Y.visualViewport||[],a5(F)?F:[]):F,O=r.concat(D);return j?O:O.concat(yx(TT(D)))}function G4(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oZ(e,r){var x=My(e,!1,r==="fixed");return x.top=x.top+e.clientTop,x.left=x.left+e.clientLeft,x.bottom=x.top+e.clientHeight,x.right=x.left+e.clientWidth,x.width=e.clientWidth,x.height=e.clientHeight,x.x=x.left,x.y=x.top,x}function U8(e,r,x){return r===g9?G4(aZ(e,x)):dg(r)?oZ(r,x):G4(iZ(Yp(e)))}function sZ(e){var r=yx(TT(e)),x=["absolute","fixed"].indexOf(uv(e).position)>=0,F=x&&Tf(e)?Eb(e):e;return dg(F)?r.filter(function(j){return dg(j)&&x9(j,F)&&hh(j)!=="body"}):[]}function lZ(e,r,x,F){var j=r==="clippingParents"?sZ(e):[].concat(r),Y=[].concat(j,[x]),D=Y[0],O=Y.reduce(function(t,l){var S=U8(e,l,F);return t.top=tg(S.top,t.top),t.right=r2(S.right,t.right),t.bottom=r2(S.bottom,t.bottom),t.left=tg(S.left,t.left),t},U8(e,D,F));return O.width=O.right-O.left,O.height=O.bottom-O.top,O.x=O.left,O.y=O.top,O}function C9(e){var r=e.reference,x=e.element,F=e.placement,j=F?ch(F):null,Y=F?Ay(F):null,D=r.x+r.width/2-x.width/2,O=r.y+r.height/2-x.height/2,t;switch(j){case Zu:t={x:D,y:r.y-x.height};break;case Pf:t={x:D,y:r.y+r.height};break;case Lf:t={x:r.x+r.width,y:O};break;case Ku:t={x:r.x-x.width,y:O};break;default:t={x:r.x,y:r.y}}var l=j?t5(j):null;if(l!=null){var S=l==="y"?"height":"width";switch(Y){case Sy:t[l]=t[l]-(r[S]/2-x[S]/2);break;case Kx:t[l]=t[l]+(r[S]/2-x[S]/2);break}}return t}function Jx(e,r){r===void 0&&(r={});var x=r,F=x.placement,j=F===void 0?e.placement:F,Y=x.strategy,D=Y===void 0?e.strategy:Y,O=x.boundary,t=O===void 0?PX:O,l=x.rootBoundary,S=l===void 0?g9:l,i=x.elementContext,C=i===void 0?E1:i,w=x.altBoundary,v=w===void 0?!1:w,m=x.padding,a=m===void 0?0:m,n=w9(typeof a!="number"?a:T9(a,Ab)),s=C===E1?LX:E1,o=e.rects.popper,h=e.elements[v?s:C],f=lZ(dg(h)?h:h.contextElement||Yp(e.elements.popper),t,S,D),u=My(e.elements.reference),b=C9({reference:u,element:o,strategy:"absolute",placement:j}),p=G4(Object.assign({},o,b)),E=C===E1?p:u,g={top:f.top-E.top+n.top,bottom:E.bottom-f.bottom+n.bottom,left:f.left-E.left+n.left,right:E.right-f.right+n.right},c=e.modifiersData.offset;if(C===E1&&c){var y=c[j];Object.keys(g).forEach(function(A){var M=[Lf,Pf].indexOf(A)>=0?1:-1,R=[Zu,Pf].indexOf(A)>=0?"y":"x";g[A]+=y[R]*M})}return g}function uZ(e,r){r===void 0&&(r={});var x=r,F=x.placement,j=x.boundary,Y=x.rootBoundary,D=x.padding,O=x.flipVariations,t=x.allowedAutoPlacements,l=t===void 0?m9:t,S=Ay(F),i=S?O?_8:_8.filter(function(v){return Ay(v)===S}):Ab,C=i.filter(function(v){return l.indexOf(v)>=0});C.length===0&&(C=i);var w=C.reduce(function(v,m){return v[m]=Jx(e,{placement:m,boundary:j,rootBoundary:Y,padding:D})[ch(m)],v},{});return Object.keys(w).sort(function(v,m){return w[v]-w[m]})}function cZ(e){if(ch(e)===QA)return[];var r=b3(e);return[N8(e),r,N8(r)]}function fZ(e){var r=e.state,x=e.options,F=e.name;if(!r.modifiersData[F]._skip){for(var j=x.mainAxis,Y=j===void 0?!0:j,D=x.altAxis,O=D===void 0?!0:D,t=x.fallbackPlacements,l=x.padding,S=x.boundary,i=x.rootBoundary,C=x.altBoundary,w=x.flipVariations,v=w===void 0?!0:w,m=x.allowedAutoPlacements,a=r.options.placement,n=ch(a),s=n===a,o=t||(s||!v?[b3(a)]:cZ(a)),h=[a].concat(o).reduce(function(G,U){return G.concat(ch(U)===QA?uZ(r,{placement:U,boundary:S,rootBoundary:i,padding:l,flipVariations:v,allowedAutoPlacements:m}):U)},[]),f=r.rects.reference,u=r.rects.popper,b=new Map,p=!0,E=h[0],g=0;g=0,R=M?"width":"height",T=Jx(r,{placement:c,boundary:S,rootBoundary:i,altBoundary:C,padding:l}),L=M?A?Lf:Ku:A?Pf:Zu;f[R]>u[R]&&(L=b3(L));var P=b3(L),d=[];if(Y&&d.push(T[y]<=0),O&&d.push(T[L]<=0,T[P]<=0),d.every(function(G){return G})){E=c,p=!1;break}b.set(c,d)}if(p)for(var k=v?3:1,I=function(U){var H=h.find(function(W){var V=b.get(W);if(V)return V.slice(0,U).every(function($){return $})});if(H)return E=H,"break"},N=k;N>0;N--){var B=I(N);if(B==="break")break}r.placement!==E&&(r.modifiersData[F]._skip=!0,r.placement=E,r.reset=!0)}}const dZ={name:"flip",enabled:!0,phase:"main",fn:fZ,requiresIfExists:["offset"],data:{_skip:!1}};function H8(e,r,x){return x===void 0&&(x={x:0,y:0}),{top:e.top-r.height-x.y,right:e.right-r.width+x.x,bottom:e.bottom-r.height+x.y,left:e.left-r.width-x.x}}function V8(e){return[Zu,Lf,Pf,Ku].some(function(r){return e[r]>=0})}function hZ(e){var r=e.state,x=e.name,F=r.rects.reference,j=r.rects.popper,Y=r.modifiersData.preventOverflow,D=Jx(r,{elementContext:"reference"}),O=Jx(r,{altBoundary:!0}),t=H8(D,F),l=H8(O,j,Y),S=V8(t),i=V8(l);r.modifiersData[x]={referenceClippingOffsets:t,popperEscapeOffsets:l,isReferenceHidden:S,hasPopperEscaped:i},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":S,"data-popper-escaped":i})}const vZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hZ};function pZ(e,r,x){var F=ch(e),j=[Ku,Zu].indexOf(F)>=0?-1:1,Y=typeof x=="function"?x(Object.assign({},r,{placement:e})):x,D=Y[0],O=Y[1];return D=D||0,O=(O||0)*j,[Ku,Lf].indexOf(F)>=0?{x:O,y:D}:{x:D,y:O}}function gZ(e){var r=e.state,x=e.options,F=e.name,j=x.offset,Y=j===void 0?[0,0]:j,D=m9.reduce(function(S,i){return S[i]=pZ(i,r.rects,Y),S},{}),O=D[r.placement],t=O.x,l=O.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=t,r.modifiersData.popperOffsets.y+=l),r.modifiersData[F]=D}const mZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gZ};function yZ(e){var r=e.state,x=e.name;r.modifiersData[x]=C9({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const xZ={name:"popperOffsets",enabled:!0,phase:"read",fn:yZ,data:{}};function bZ(e){return e==="x"?"y":"x"}function wZ(e){var r=e.state,x=e.options,F=e.name,j=x.mainAxis,Y=j===void 0?!0:j,D=x.altAxis,O=D===void 0?!1:D,t=x.boundary,l=x.rootBoundary,S=x.altBoundary,i=x.padding,C=x.tether,w=C===void 0?!0:C,v=x.tetherOffset,m=v===void 0?0:v,a=Jx(r,{boundary:t,rootBoundary:l,padding:i,altBoundary:S}),n=ch(r.placement),s=Ay(r.placement),o=!s,h=t5(n),f=bZ(h),u=r.modifiersData.popperOffsets,b=r.rects.reference,p=r.rects.popper,E=typeof m=="function"?m(Object.assign({},r.rects,{placement:r.placement})):m,g=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),c=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,y={x:0,y:0};if(u){if(Y){var A,M=h==="y"?Zu:Ku,R=h==="y"?Pf:Lf,T=h==="y"?"height":"width",L=u[h],P=L+a[M],d=L-a[R],k=w?-p[T]/2:0,I=s===Sy?b[T]:p[T],N=s===Sy?-p[T]:-b[T],B=r.elements.arrow,G=w&&B?e5(B):{width:0,height:0},U=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:b9(),H=U[M],W=U[R],V=mx(0,b[T],G[T]),$=o?b[T]/2-k-V-H-g.mainAxis:I-V-H-g.mainAxis,Z=o?-b[T]/2+k+V+W+g.mainAxis:N+V+W+g.mainAxis,q=r.elements.arrow&&Eb(r.elements.arrow),ae=q?h==="y"?q.clientTop||0:q.clientLeft||0:0,ie=(A=c==null?void 0:c[h])!=null?A:0,fe=L+$-ie-ae,Q=L+Z-ie,J=mx(w?r2(P,fe):P,L,w?tg(d,Q):d);u[h]=J,y[h]=J-L}if(O){var oe,K=h==="x"?Zu:Ku,ne=h==="x"?Pf:Lf,ce=u[f],re=f==="y"?"height":"width",ee=ce+a[K],de=ce-a[ne],le=[Zu,Ku].indexOf(n)!==-1,he=(oe=c==null?void 0:c[f])!=null?oe:0,xe=le?ee:ce-b[re]-p[re]-he+g.altAxis,Ee=le?ce+b[re]+p[re]-he-g.altAxis:de,Se=w&&le?WX(xe,ce,Ee):mx(w?xe:ee,ce,w?Ee:de);u[f]=Se,y[f]=Se-ce}r.modifiersData[F]=y}}const TZ={name:"preventOverflow",enabled:!0,phase:"main",fn:wZ,requiresIfExists:["offset"]};function SZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CZ(e){return e===Lc(e)||!Tf(e)?r5(e):SZ(e)}function MZ(e){var r=e.getBoundingClientRect(),x=Cy(r.width)/e.offsetWidth||1,F=Cy(r.height)/e.offsetHeight||1;return x!==1||F!==1}function AZ(e,r,x){x===void 0&&(x=!1);var F=Tf(r),j=Tf(r)&&MZ(r),Y=Yp(r),D=My(e,j,x),O={scrollLeft:0,scrollTop:0},t={x:0,y:0};return(F||!F&&!x)&&((hh(r)!=="body"||a5(Y))&&(O=CZ(r)),Tf(r)?(t=My(r,!0),t.x+=r.clientLeft,t.y+=r.clientTop):Y&&(t.x=n5(Y))),{x:D.left+O.scrollLeft-t.x,y:D.top+O.scrollTop-t.y,width:D.width,height:D.height}}function EZ(e){var r=new Map,x=new Set,F=[];e.forEach(function(Y){r.set(Y.name,Y)});function j(Y){x.add(Y.name);var D=[].concat(Y.requires||[],Y.requiresIfExists||[]);D.forEach(function(O){if(!x.has(O)){var t=r.get(O);t&&j(t)}}),F.push(Y)}return e.forEach(function(Y){x.has(Y.name)||j(Y)}),F}function PZ(e){var r=EZ(e);return NX.reduce(function(x,F){return x.concat(r.filter(function(j){return j.phase===F}))},[])}function LZ(e){var r;return function(){return r||(r=new Promise(function(x){Promise.resolve().then(function(){r=void 0,x(e())})})),r}}function IZ(e){var r=e.reduce(function(x,F){var j=x[F.name];return x[F.name]=j?Object.assign({},j,F,{options:Object.assign({},j.options,F.options),data:Object.assign({},j.data,F.data)}):F,x},{});return Object.keys(r).map(function(x){return r[x]})}var j8={placement:"bottom",modifiers:[],strategy:"absolute"};function G8(){for(var e=arguments.length,r=new Array(e),x=0;x{Y||O(OZ(j)||document.body)},[j,Y]),Gi(()=>{if(D&&!Y)return $x(x,D),()=>{$x(x,null)}},[x,D,Y]),Y){if(Oe.isValidElement(F)){const l={ref:t};return Oe.cloneElement(F,l)}return Ce.jsx(Oe.Fragment,{children:F})}return Ce.jsx(Oe.Fragment,{children:D&&gb.createPortal(F,D)})});function FZ(e){return ka("MuiPopper",e)}Ca("MuiPopper",["root"]);const _Z=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],zZ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function BZ(e,r){if(r==="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}}function W4(e){return typeof e=="function"?e():e}function NZ(e){return e.nodeType!==void 0}const UZ=e=>{const{classes:r}=e;return qn({root:["root"]},FZ,r)},HZ={},VZ=Oe.forwardRef(function(r,x){var F;const{anchorEl:j,children:Y,direction:D,disablePortal:O,modifiers:t,open:l,placement:S,popperOptions:i,popperRef:C,slotProps:w={},slots:v={},TransitionProps:m}=r,a=hn(r,_Z),n=Oe.useRef(null),s=vi(n,x),o=Oe.useRef(null),h=vi(o,C),f=Oe.useRef(h);Gi(()=>{f.current=h},[h]),Oe.useImperativeHandle(C,()=>o.current,[]);const u=BZ(S,D),[b,p]=Oe.useState(u),[E,g]=Oe.useState(W4(j));Oe.useEffect(()=>{o.current&&o.current.forceUpdate()}),Oe.useEffect(()=>{j&&g(W4(j))},[j]),Gi(()=>{if(!E||!l)return;const R=P=>{p(P.placement)};let T=[{name:"preventOverflow",options:{altBoundary:O}},{name:"flip",options:{altBoundary:O}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:P})=>{R(P)}}];t!=null&&(T=T.concat(t)),i&&i.modifiers!=null&&(T=T.concat(i.modifiers));const L=DZ(E,n.current,Ge({placement:u},i,{modifiers:T}));return f.current(L),()=>{L.destroy(),f.current(null)}},[E,O,t,l,i,u]);const c={placement:b};m!==null&&(c.TransitionProps=m);const y=UZ(r),A=(F=v.root)!=null?F:"div",M=hi({elementType:A,externalSlotProps:w.root,externalForwardedProps:a,additionalProps:{role:"tooltip",ref:s},ownerState:r,className:y.root});return Ce.jsx(A,Ge({},M,{children:typeof Y=="function"?Y(c):Y}))}),jZ=Oe.forwardRef(function(r,x){const{anchorEl:F,children:j,container:Y,direction:D="ltr",disablePortal:O=!1,keepMounted:t=!1,modifiers:l,open:S,placement:i="bottom",popperOptions:C=HZ,popperRef:w,style:v,transition:m=!1,slotProps:a={},slots:n={}}=r,s=hn(r,zZ),[o,h]=Oe.useState(!0),f=()=>{h(!1)},u=()=>{h(!0)};if(!t&&!S&&(!m||o))return null;let b;if(Y)b=Y;else if(F){const g=W4(F);b=g&&NZ(g)?oo(g).body:oo(null).body}const p=!S&&t&&(!m||o)?"none":void 0,E=m?{in:S,onEnter:f,onExited:u}:void 0;return Ce.jsx(M9,{disablePortal:O,container:b,children:Ce.jsx(VZ,Ge({anchorEl:F,direction:D,disablePortal:O,modifiers:l,ref:x,open:m?!o:S,placement:i,popperOptions:C,popperRef:w,slotProps:a,slots:n},s,{style:Ge({position:"fixed",top:0,left:0,display:p},v),TransitionProps:E,children:j}))})}),GZ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],WZ=ln(jZ,{name:"MuiPopper",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Xp=Oe.forwardRef(function(r,x){var F;const j=v9(),Y=Ka({props:r,name:"MuiPopper"}),{anchorEl:D,component:O,components:t,componentsProps:l,container:S,disablePortal:i,keepMounted:C,modifiers:w,open:v,placement:m,popperOptions:a,popperRef:n,transition:s,slots:o,slotProps:h}=Y,f=hn(Y,GZ),u=(F=o==null?void 0:o.root)!=null?F:t==null?void 0:t.Root,b=Ge({anchorEl:D,container:S,disablePortal:i,keepMounted:C,modifiers:w,open:v,placement:m,popperOptions:a,popperRef:n,transition:s},f);return Ce.jsx(WZ,Ge({as:O,direction:j==null?void 0:j.direction,slots:{root:u},slotProps:h??l},b,{ref:x}))});function $Z(e){return ka("MuiListSubheader",e)}Ca("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const YZ=["className","color","component","disableGutters","disableSticky","inset"],XZ=e=>{const{classes:r,color:x,disableGutters:F,inset:j,disableSticky:Y}=e,D={root:["root",x!=="default"&&`color${Gn(x)}`,!F&&"gutters",j&&"inset",!Y&&"sticky"]};return qn(D,$Z,r)},ZZ=ln("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.color!=="default"&&r[`color${Gn(x.color)}`],!x.disableGutters&&r.gutters,x.inset&&r.inset,!x.disableSticky&&r.sticky]}})(({theme:e,ownerState:r})=>Ge({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},r.color==="primary"&&{color:(e.vars||e).palette.primary.main},r.color==="inherit"&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),A9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiListSubheader"}),{className:j,color:Y="default",component:D="li",disableGutters:O=!1,disableSticky:t=!1,inset:l=!1}=F,S=hn(F,YZ),i=Ge({},F,{color:Y,component:D,disableGutters:O,disableSticky:t,inset:l}),C=XZ(i);return Ce.jsx(ZZ,Ge({as:D,className:Ln(C.root,j),ref:x,ownerState:i},S))});A9.muiSkipListHighlight=!0;const KZ=ci(Ce.jsx("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");function JZ(e){return ka("MuiChip",e)}const vo=Ca("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),QZ=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qZ=e=>{const{classes:r,disabled:x,size:F,color:j,iconColor:Y,onDelete:D,clickable:O,variant:t}=e,l={root:["root",t,x&&"disabled",`size${Gn(F)}`,`color${Gn(j)}`,O&&"clickable",O&&`clickableColor${Gn(j)}`,D&&"deletable",D&&`deletableColor${Gn(j)}`,`${t}${Gn(j)}`],label:["label",`label${Gn(F)}`],avatar:["avatar",`avatar${Gn(F)}`,`avatarColor${Gn(j)}`],icon:["icon",`icon${Gn(F)}`,`iconColor${Gn(Y)}`],deleteIcon:["deleteIcon",`deleteIcon${Gn(F)}`,`deleteIconColor${Gn(j)}`,`deleteIcon${Gn(t)}Color${Gn(j)}`]};return qn(l,JZ,r)},eK=ln("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e,{color:F,iconColor:j,clickable:Y,onDelete:D,size:O,variant:t}=x;return[{[`& .${vo.avatar}`]:r.avatar},{[`& .${vo.avatar}`]:r[`avatar${Gn(O)}`]},{[`& .${vo.avatar}`]:r[`avatarColor${Gn(F)}`]},{[`& .${vo.icon}`]:r.icon},{[`& .${vo.icon}`]:r[`icon${Gn(O)}`]},{[`& .${vo.icon}`]:r[`iconColor${Gn(j)}`]},{[`& .${vo.deleteIcon}`]:r.deleteIcon},{[`& .${vo.deleteIcon}`]:r[`deleteIcon${Gn(O)}`]},{[`& .${vo.deleteIcon}`]:r[`deleteIconColor${Gn(F)}`]},{[`& .${vo.deleteIcon}`]:r[`deleteIcon${Gn(t)}Color${Gn(F)}`]},r.root,r[`size${Gn(O)}`],r[`color${Gn(F)}`],Y&&r.clickable,Y&&F!=="default"&&r[`clickableColor${Gn(F)})`],D&&r.deletable,D&&F!=="default"&&r[`deletableColor${Gn(F)}`],r[t],r[`${t}${Gn(F)}`]]}})(({theme:e,ownerState:r})=>{const x=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ge({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${vo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${vo.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:x,fontSize:e.typography.pxToRem(12)},[`& .${vo.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${vo.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${vo.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${vo.icon}`]:Ge({marginLeft:5,marginRight:-6},r.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&Ge({color:e.vars?e.vars.palette.Chip.defaultIconColor:x},r.color!=="default"&&{color:"inherit"})),[`& .${vo.deleteIcon}`]:Ge({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:wi(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:wi(e.palette.text.primary,.4)}},r.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},r.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[r.color].contrastTextChannel} / 0.7)`:wi(e.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r.color].contrastText}})},r.size==="small"&&{height:24},r.color!=="default"&&{backgroundColor:(e.vars||e).palette[r.color].main,color:(e.vars||e).palette[r.color].contrastText},r.onDelete&&{[`&.${vo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},r.onDelete&&r.color!=="default"&&{[`&.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r.color].dark}})},({theme:e,ownerState:r})=>Ge({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${vo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},r.clickable&&r.color!=="default"&&{[`&:hover, &.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r.color].dark}}),({theme:e,ownerState:r})=>Ge({},r.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${vo.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${vo.avatar}`]:{marginLeft:4},[`& .${vo.avatarSmall}`]:{marginLeft:2},[`& .${vo.icon}`]:{marginLeft:4},[`& .${vo.iconSmall}`]:{marginLeft:2},[`& .${vo.deleteIcon}`]:{marginRight:5},[`& .${vo.deleteIconSmall}`]:{marginRight:3}},r.variant==="outlined"&&r.color!=="default"&&{color:(e.vars||e).palette[r.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / 0.7)`:wi(e.palette[r.color].main,.7)}`,[`&.${vo.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(e.palette[r.color].main,e.palette.action.hoverOpacity)},[`&.${vo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:wi(e.palette[r.color].main,e.palette.action.focusOpacity)},[`& .${vo.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / 0.7)`:wi(e.palette[r.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r.color].main}}})),tK=ln("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,r)=>{const{ownerState:x}=e,{size:F}=x;return[r.label,r[`label${Gn(F)}`]]}})(({ownerState:e})=>Ge({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function W8(e){return e.key==="Backspace"||e.key==="Delete"}const Qh=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiChip"}),{avatar:j,className:Y,clickable:D,color:O="default",component:t,deleteIcon:l,disabled:S=!1,icon:i,label:C,onClick:w,onDelete:v,onKeyDown:m,onKeyUp:a,size:n="medium",variant:s="filled",tabIndex:o,skipFocusWhenDisabled:h=!1}=F,f=hn(F,QZ),u=Oe.useRef(null),b=vi(u,x),p=d=>{d.stopPropagation(),v&&v(d)},E=d=>{d.currentTarget===d.target&&W8(d)&&d.preventDefault(),m&&m(d)},g=d=>{d.currentTarget===d.target&&(v&&W8(d)?v(d):d.key==="Escape"&&u.current&&u.current.blur()),a&&a(d)},c=D!==!1&&w?!0:D,y=c||v?Ef:t||"div",A=Ge({},F,{component:y,disabled:S,size:n,color:O,iconColor:Oe.isValidElement(i)&&i.props.color||O,onDelete:!!v,clickable:c,variant:s}),M=qZ(A),R=y===Ef?Ge({component:t||"div",focusVisibleClassName:M.focusVisible},v&&{disableRipple:!0}):{};let T=null;v&&(T=l&&Oe.isValidElement(l)?Oe.cloneElement(l,{className:Ln(l.props.className,M.deleteIcon),onClick:p}):Ce.jsx(KZ,{className:Ln(M.deleteIcon),onClick:p}));let L=null;j&&Oe.isValidElement(j)&&(L=Oe.cloneElement(j,{className:Ln(M.avatar,j.props.className)}));let P=null;return i&&Oe.isValidElement(i)&&(P=Oe.cloneElement(i,{className:Ln(M.icon,i.props.className)})),Ce.jsxs(eK,Ge({as:y,className:Ln(M.root,Y),disabled:c&&S?!0:void 0,onClick:w,onKeyDown:E,onKeyUp:g,ref:b,tabIndex:h&&S?-1:o,ownerState:A},R,f,{children:[L||P,Ce.jsx(tK,{className:Ln(M.label),ownerState:A,children:C}),T]}))}),rK=["onChange","maxRows","minRows","style","value"];function Hw(e){return parseInt(e,10)||0}const nK={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function aK(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const iK=Oe.forwardRef(function(r,x){const{onChange:F,maxRows:j,minRows:Y=1,style:D,value:O}=r,t=hn(r,rK),{current:l}=Oe.useRef(O!=null),S=Oe.useRef(null),i=vi(x,S),C=Oe.useRef(null),w=Oe.useRef(null),v=Oe.useCallback(()=>{const n=S.current,o=Cd(n).getComputedStyle(n);if(o.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=w.current;h.style.width=o.width,h.value=n.value||r.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const f=o.boxSizing,u=Hw(o.paddingBottom)+Hw(o.paddingTop),b=Hw(o.borderBottomWidth)+Hw(o.borderTopWidth),p=h.scrollHeight;h.value="x";const E=h.scrollHeight;let g=p;Y&&(g=Math.max(Number(Y)*E,g)),j&&(g=Math.min(Number(j)*E,g)),g=Math.max(g,E);const c=g+(f==="border-box"?u+b:0),y=Math.abs(g-p)<=1;return{outerHeightStyle:c,overflowing:y}},[j,Y,r.placeholder]),m=Oe.useCallback(()=>{const n=v();if(aK(n))return;const s=n.outerHeightStyle,o=S.current;C.current!==s&&(C.current=s,o.style.height=`${s}px`),o.style.overflow=n.overflowing?"hidden":""},[v]);Gi(()=>{const n=()=>{m()};let s;const o=bg(n),h=S.current,f=Cd(h);f.addEventListener("resize",o);let u;return typeof ResizeObserver<"u"&&(u=new ResizeObserver(n),u.observe(h)),()=>{o.clear(),cancelAnimationFrame(s),f.removeEventListener("resize",o),u&&u.disconnect()}},[v,m]),Gi(()=>{m()});const a=n=>{l||m(),F&&F(n)};return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("textarea",Ge({value:O,onChange:a,ref:i,rows:Y,style:D},t)),Ce.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:w,tabIndex:-1,style:Ge({},nK.shadow,D,{paddingTop:0,paddingBottom:0})})]})});function Zp({props:e,states:r,muiFormControl:x}){return r.reduce((F,j)=>(F[j]=e[j],x&&typeof e[j]>"u"&&(F[j]=x[j]),F),{})}const ST=Oe.createContext(void 0);function tc(){return Oe.useContext(ST)}function E9(e){return Ce.jsx(HG,Ge({},e,{defaultTheme:xT,themeId:lg}))}function $8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function n2(e,r=!1){return e&&($8(e.value)&&e.value!==""||r&&$8(e.defaultValue)&&e.defaultValue!=="")}function oK(e){return e.startAdornment}function sK(e){return ka("MuiInputBase",e)}const yc=Ca("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),lK=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],CT=(e,r)=>{const{ownerState:x}=e;return[r.root,x.formControl&&r.formControl,x.startAdornment&&r.adornedStart,x.endAdornment&&r.adornedEnd,x.error&&r.error,x.size==="small"&&r.sizeSmall,x.multiline&&r.multiline,x.color&&r[`color${Gn(x.color)}`],x.fullWidth&&r.fullWidth,x.hiddenLabel&&r.hiddenLabel]},MT=(e,r)=>{const{ownerState:x}=e;return[r.input,x.size==="small"&&r.inputSizeSmall,x.multiline&&r.inputMultiline,x.type==="search"&&r.inputTypeSearch,x.startAdornment&&r.inputAdornedStart,x.endAdornment&&r.inputAdornedEnd,x.hiddenLabel&&r.inputHiddenLabel]},uK=e=>{const{classes:r,color:x,disabled:F,error:j,endAdornment:Y,focused:D,formControl:O,fullWidth:t,hiddenLabel:l,multiline:S,readOnly:i,size:C,startAdornment:w,type:v}=e,m={root:["root",`color${Gn(x)}`,F&&"disabled",j&&"error",t&&"fullWidth",D&&"focused",O&&"formControl",C&&C!=="medium"&&`size${Gn(C)}`,S&&"multiline",w&&"adornedStart",Y&&"adornedEnd",l&&"hiddenLabel",i&&"readOnly"],input:["input",F&&"disabled",v==="search"&&"inputTypeSearch",S&&"inputMultiline",C==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",w&&"inputAdornedStart",Y&&"inputAdornedEnd",i&&"readOnly"]};return qn(m,sK,r)},AT=ln("div",{name:"MuiInputBase",slot:"Root",overridesResolver:CT})(({theme:e,ownerState:r})=>Ge({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},r.multiline&&Ge({padding:"4px 0 5px"},r.size==="small"&&{paddingTop:1}),r.fullWidth&&{width:"100%"})),ET=ln("input",{name:"MuiInputBase",slot:"Input",overridesResolver:MT})(({theme:e,ownerState:r})=>{const x=e.palette.mode==="light",F=Ge({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:x?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),j={opacity:"0 !important"},Y=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:x?.42:.5};return Ge({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":F,"&::-moz-placeholder":F,"&:-ms-input-placeholder":F,"&::-ms-input-placeholder":F,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yc.formControl} &`]:{"&::-webkit-input-placeholder":j,"&::-moz-placeholder":j,"&:-ms-input-placeholder":j,"&::-ms-input-placeholder":j,"&:focus::-webkit-input-placeholder":Y,"&:focus::-moz-placeholder":Y,"&:focus:-ms-input-placeholder":Y,"&:focus::-ms-input-placeholder":Y},[`&.${yc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},r.size==="small"&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},r.type==="search"&&{MozAppearance:"textfield"})}),cK=Ce.jsx(E9,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vy=Oe.forwardRef(function(r,x){var F;const j=Ka({props:r,name:"MuiInputBase"}),{"aria-describedby":Y,autoComplete:D,autoFocus:O,className:t,components:l={},componentsProps:S={},defaultValue:i,disabled:C,disableInjectingGlobalStyles:w,endAdornment:v,fullWidth:m=!1,id:a,inputComponent:n="input",inputProps:s={},inputRef:o,maxRows:h,minRows:f,multiline:u=!1,name:b,onBlur:p,onChange:E,onClick:g,onFocus:c,onKeyDown:y,onKeyUp:A,placeholder:M,readOnly:R,renderSuffix:T,rows:L,slotProps:P={},slots:d={},startAdornment:k,type:I="text",value:N}=j,B=hn(j,lK),G=s.value!=null?s.value:N,{current:U}=Oe.useRef(G!=null),H=Oe.useRef(),W=Oe.useCallback(Se=>{},[]),V=vi(H,o,s.ref,W),[$,Z]=Oe.useState(!1),q=tc(),ae=Zp({props:j,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=q?q.focused:$,Oe.useEffect(()=>{!q&&C&&$&&(Z(!1),p&&p())},[q,C,$,p]);const ie=q&&q.onFilled,fe=q&&q.onEmpty,Q=Oe.useCallback(Se=>{n2(Se)?ie&&ie():fe&&fe()},[ie,fe]);Gi(()=>{U&&Q({value:G})},[G,Q,U]);const J=Se=>{if(ae.disabled){Se.stopPropagation();return}c&&c(Se),s.onFocus&&s.onFocus(Se),q&&q.onFocus?q.onFocus(Se):Z(!0)},oe=Se=>{p&&p(Se),s.onBlur&&s.onBlur(Se),q&&q.onBlur?q.onBlur(Se):Z(!1)},K=(Se,...ke)=>{if(!U){const Te=Se.target||H.current;if(Te==null)throw new Error(sv(1));Q({value:Te.value})}s.onChange&&s.onChange(Se,...ke),E&&E(Se,...ke)};Oe.useEffect(()=>{Q(H.current)},[]);const ne=Se=>{H.current&&Se.currentTarget===Se.target&&H.current.focus(),g&&g(Se)};let ce=n,re=s;u&&ce==="input"&&(L?re=Ge({type:void 0,minRows:L,maxRows:L},re):re=Ge({type:void 0,maxRows:h,minRows:f},re),ce=iK);const ee=Se=>{Q(Se.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};Oe.useEffect(()=>{q&&q.setAdornedStart(!!k)},[q,k]);const de=Ge({},j,{color:ae.color||"primary",disabled:ae.disabled,endAdornment:v,error:ae.error,focused:ae.focused,formControl:q,fullWidth:m,hiddenLabel:ae.hiddenLabel,multiline:u,size:ae.size,startAdornment:k,type:I}),le=uK(de),he=d.root||l.Root||AT,xe=P.root||S.root||{},Ee=d.input||l.Input||ET;return re=Ge({},re,(F=P.input)!=null?F:S.input),Ce.jsxs(Oe.Fragment,{children:[!w&&cK,Ce.jsxs(he,Ge({},xe,!xd(he)&&{ownerState:Ge({},de,xe.ownerState)},{ref:x,onClick:ne},B,{className:Ln(le.root,xe.className,t,R&&"MuiInputBase-readOnly"),children:[k,Ce.jsx(ST.Provider,{value:null,children:Ce.jsx(Ee,Ge({ownerState:de,"aria-invalid":ae.error,"aria-describedby":Y,autoComplete:D,autoFocus:O,defaultValue:i,disabled:ae.disabled,id:a,onAnimationStart:ee,name:b,placeholder:M,readOnly:R,required:ae.required,rows:L,value:G,onKeyDown:y,onKeyUp:A,type:I},re,!xd(Ee)&&{as:ce,ownerState:Ge({},de,re.ownerState)},{ref:V,className:Ln(le.input,re.className,R&&"MuiInputBase-readOnly"),onBlur:oe,onChange:K,onFocus:J}))}),v,T?T(Ge({},ae,{startAdornment:k})):null]}))]})});function fK(e){return ka("MuiInput",e)}const pp=Ge({},yc,Ca("MuiInput",["root","underline","input"]));function dK(e){return ka("MuiOutlinedInput",e)}const Kd=Ge({},yc,Ca("MuiOutlinedInput",["root","notchedOutline","input"]));function hK(e){return ka("MuiFilledInput",e)}const xc=Ge({},yc,Ca("MuiFilledInput",["root","underline","input"])),P9=ci(Ce.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function vK(e){return ka("MuiAutocomplete",e)}const Vi=Ca("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Y8,X8;const pK=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],gK=["ref"],mK=["key"],yK=["key"],xK=e=>{const{classes:r,disablePortal:x,expanded:F,focused:j,fullWidth:Y,hasClearIcon:D,hasPopupIcon:O,inputFocused:t,popupOpen:l,size:S}=e,i={root:["root",F&&"expanded",j&&"focused",Y&&"fullWidth",D&&"hasClearIcon",O&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",t&&"inputFocused"],tag:["tag",`tagSize${Gn(S)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",l&&"popupIndicatorOpen"],popper:["popper",x&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return qn(i,vK,r)},bK=ln("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e,{fullWidth:F,hasClearIcon:j,hasPopupIcon:Y,inputFocused:D,size:O}=x;return[{[`& .${Vi.tag}`]:r.tag},{[`& .${Vi.tag}`]:r[`tagSize${Gn(O)}`]},{[`& .${Vi.inputRoot}`]:r.inputRoot},{[`& .${Vi.input}`]:r.input},{[`& .${Vi.input}`]:D&&r.inputFocused},r.root,F&&r.fullWidth,Y&&r.hasPopupIcon,j&&r.hasClearIcon]}})({[`&.${Vi.focused} .${Vi.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Vi.clearIndicator}`]:{visibility:"visible"}},[`& .${Vi.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Vi.inputRoot}`]:{[`.${Vi.hasPopupIcon}&, .${Vi.hasClearIcon}&`]:{paddingRight:30},[`.${Vi.hasPopupIcon}.${Vi.hasClearIcon}&`]:{paddingRight:56},[`& .${Vi.input}`]:{width:0,minWidth:30}},[`& .${pp.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${pp.root}.${yc.sizeSmall}`]:{[`& .${pp.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Kd.root}`]:{padding:9,[`.${Vi.hasPopupIcon}&, .${Vi.hasClearIcon}&`]:{paddingRight:39},[`.${Vi.hasPopupIcon}.${Vi.hasClearIcon}&`]:{paddingRight:65},[`& .${Vi.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Vi.endAdornment}`]:{right:9}},[`& .${Kd.root}.${yc.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Vi.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${xc.root}`]:{paddingTop:19,paddingLeft:8,[`.${Vi.hasPopupIcon}&, .${Vi.hasClearIcon}&`]:{paddingRight:39},[`.${Vi.hasPopupIcon}.${Vi.hasClearIcon}&`]:{paddingRight:65},[`& .${xc.input}`]:{padding:"7px 4px"},[`& .${Vi.endAdornment}`]:{right:9}},[`& .${xc.root}.${yc.sizeSmall}`]:{paddingBottom:1,[`& .${xc.input}`]:{padding:"2.5px 4px"}},[`& .${yc.hiddenLabel}`]:{paddingTop:8},[`& .${xc.root}.${yc.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Vi.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${xc.root}.${yc.hiddenLabel}.${yc.sizeSmall}`]:{[`& .${Vi.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Vi.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Vi.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Vi.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Vi.inputRoot}`]:{flexWrap:"wrap"}}}]}),wK=ln("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,r)=>r.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),TK=ln(dl,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,r)=>r.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),SK=ln(dl,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},r)=>Ge({},r.popupIndicator,e.popupOpen&&r.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),CK=ln(Xp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[{[`& .${Vi.option}`]:r.option},r.popper,x.disablePortal&&r.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),MK=ln(Ri,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,r)=>r.paper})(({theme:e})=>Ge({},e.typography.body1,{overflow:"auto"})),AK=ln("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,r)=>r.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),EK=ln("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,r)=>r.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),PK=ln("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,r)=>r.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Vi.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Vi.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Vi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Vi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),LK=ln(A9,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,r)=>r.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),IK=ln("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,r)=>r.groupUl})({padding:0,[`& .${Vi.option}`]:{paddingLeft:24}}),L9=Oe.forwardRef(function(r,x){var F,j,Y,D;const O=Ka({props:r,name:"MuiAutocomplete"}),{autoComplete:t=!1,autoHighlight:l=!1,autoSelect:S=!1,blurOnSelect:i=!1,ChipProps:C,className:w,clearIcon:v=Y8||(Y8=Ce.jsx(c9,{fontSize:"small"})),clearOnBlur:m=!O.freeSolo,clearOnEscape:a=!1,clearText:n="Clear",closeText:s="Close",componentsProps:o={},defaultValue:h=O.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:u=!1,disabled:b=!1,disabledItemsFocusable:p=!1,disableListWrap:E=!1,disablePortal:g=!1,filterSelectedOptions:c=!1,forcePopupIcon:y="auto",freeSolo:A=!1,fullWidth:M=!1,getLimitTagsText:R=xt=>`+${xt}`,getOptionLabel:T,groupBy:L,handleHomeEndKeys:P=!O.freeSolo,includeInputInList:d=!1,limitTags:k=-1,ListboxComponent:I="ul",ListboxProps:N,loading:B=!1,loadingText:G="Loading…",multiple:U=!1,noOptionsText:H="No options",openOnFocus:W=!1,openText:V="Open",PaperComponent:$=Ri,PopperComponent:Z=Xp,popupIcon:q=X8||(X8=Ce.jsx(P9,{})),readOnly:ae=!1,renderGroup:ie,renderInput:fe,renderOption:Q,renderTags:J,selectOnFocus:oe=!O.freeSolo,size:K="medium",slotProps:ne={}}=O,ce=hn(O,pK),{getRootProps:re,getInputProps:ee,getInputLabelProps:de,getPopupIndicatorProps:le,getClearProps:he,getTagProps:xe,getListboxProps:Ee,getOptionProps:Se,value:ke,dirty:Te,expanded:Ae,id:be,popupOpen:Ie,focused:Ue,focusedTag:Ne,anchorEl:ze,setAnchorEl:$e,inputValue:st,groupedOptions:vt}=TX(Ge({},O,{componentName:"Autocomplete"})),at=!f&&!b&&Te&&!ae,nt=(!A||y===!0)&&y!==!1,{onMouseDown:mt}=ee(),{ref:rt}=N??{},lt=Ee(),{ref:dt}=lt,wt=hn(lt,gK),et=vi(dt,rt),Ye=T||(xt=>{var Lt;return(Lt=xt.label)!=null?Lt:xt}),Ze=Ge({},O,{disablePortal:g,expanded:Ae,focused:Ue,fullWidth:M,getOptionLabel:Ye,hasClearIcon:at,hasPopupIcon:nt,inputFocused:Ne===-1,popupOpen:Ie,size:K}),We=xK(Ze);let Fe;if(U&&ke.length>0){const xt=Lt=>Ge({className:We.tag,disabled:b},xe(Lt));J?Fe=J(ke,xt,Ze):Fe=ke.map((Lt,Xt)=>{const dr=xt({index:Xt}),{key:Tt}=dr,Kt=hn(dr,mK);return Ce.jsx(Qh,Ge({label:Ye(Lt),size:K},Kt,C),Tt)})}if(k>-1&&Array.isArray(Fe)){const xt=Fe.length-k;!Ue&&xt>0&&(Fe=Fe.splice(0,k),Fe.push(Ce.jsx("span",{className:We.tag,children:R(xt)},Fe.length)))}const we=ie||(xt=>Ce.jsxs("li",{children:[Ce.jsx(LK,{className:We.groupLabel,ownerState:Ze,component:"div",children:xt.group}),Ce.jsx(IK,{className:We.groupUl,ownerState:Ze,children:xt.children})]},xt.key)),Pe=Q||((xt,Lt)=>{const{key:Xt}=xt,dr=hn(xt,yK);return Ce.jsx("li",Ge({},dr,{children:Ye(Lt)}),Xt)}),Ve=(xt,Lt)=>{const Xt=Se({option:xt,index:Lt});return Pe(Ge({},Xt,{className:We.option}),xt,{selected:Xt["aria-selected"],index:Lt,inputValue:st},Ze)},Je=(F=ne.clearIndicator)!=null?F:o.clearIndicator,ot=(j=ne.paper)!=null?j:o.paper,yt=(Y=ne.popper)!=null?Y:o.popper,ut=(D=ne.popupIndicator)!=null?D:o.popupIndicator,It=xt=>Ce.jsx(CK,Ge({as:Z,disablePortal:g,style:{width:ze?ze.clientWidth:null},ownerState:Ze,role:"presentation",anchorEl:ze,open:Ie},yt,{className:Ln(We.popper,yt==null?void 0:yt.className),children:Ce.jsx(MK,Ge({ownerState:Ze,as:$},ot,{className:Ln(We.paper,ot==null?void 0:ot.className),children:xt}))}));let Vt=null;return vt.length>0?Vt=It(Ce.jsx(PK,Ge({as:I,className:We.listbox,ownerState:Ze},wt,N,{ref:et,children:vt.map((xt,Lt)=>L?we({key:xt.key,group:xt.group,children:xt.options.map((Xt,dr)=>Ve(Xt,xt.index+dr))}):Ve(xt,Lt))}))):B&&vt.length===0?Vt=It(Ce.jsx(AK,{className:We.loading,ownerState:Ze,children:G})):vt.length===0&&!A&&!B&&(Vt=It(Ce.jsx(EK,{className:We.noOptions,ownerState:Ze,role:"presentation",onMouseDown:xt=>{xt.preventDefault()},children:H}))),Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(bK,Ge({ref:x,className:Ln(We.root,w),ownerState:Ze},re(ce),{children:fe({id:be,disabled:b,fullWidth:!0,size:K==="small"?"small":void 0,InputLabelProps:de(),InputProps:Ge({ref:$e,className:We.inputRoot,startAdornment:Fe,onClick:xt=>{xt.target===xt.currentTarget&&mt(xt)}},(at||nt)&&{endAdornment:Ce.jsxs(wK,{className:We.endAdornment,ownerState:Ze,children:[at?Ce.jsx(TK,Ge({},he(),{"aria-label":n,title:n,ownerState:Ze},Je,{className:Ln(We.clearIndicator,Je==null?void 0:Je.className),children:v})):null,nt?Ce.jsx(SK,Ge({},le(),{disabled:b,"aria-label":Ie?s:V,title:Ie?s:V,ownerState:Ze},ut,{className:Ln(We.popupIndicator,ut==null?void 0:ut.className),children:q})):null]})}),inputProps:Ge({className:We.input,disabled:b,readOnly:ae},ee())})})),ze?Vt:null]})}),RK=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],kK={entering:{opacity:1},entered:{opacity:1}},jy=Oe.forwardRef(function(r,x){const F=nu(),j={enter:F.transitions.duration.enteringScreen,exit:F.transitions.duration.leavingScreen},{addEndListener:Y,appear:D=!0,children:O,easing:t,in:l,onEnter:S,onEntered:i,onEntering:C,onExit:w,onExited:v,onExiting:m,style:a,timeout:n=j,TransitionComponent:s=Df}=r,o=hn(r,RK),h=Oe.useRef(null),f=vi(h,O.ref,x),u=M=>R=>{if(M){const T=h.current;R===void 0?M(T):M(T,R)}},b=u(C),p=u((M,R)=>{l9(M);const T=Ty({style:a,timeout:n,easing:t},{mode:"enter"});M.style.webkitTransition=F.transitions.create("opacity",T),M.style.transition=F.transitions.create("opacity",T),S&&S(M,R)}),E=u(i),g=u(m),c=u(M=>{const R=Ty({style:a,timeout:n,easing:t},{mode:"exit"});M.style.webkitTransition=F.transitions.create("opacity",R),M.style.transition=F.transitions.create("opacity",R),w&&w(M)}),y=u(v),A=M=>{Y&&Y(h.current,M)};return Ce.jsx(s,Ge({appear:D,in:l,nodeRef:h,onEnter:p,onEntered:E,onEntering:b,onExit:c,onExited:y,onExiting:g,addEndListener:A,timeout:n},o,{children:(M,R)=>Oe.cloneElement(O,Ge({style:Ge({opacity:0,visibility:M==="exited"&&!l?"hidden":void 0},kK[M],a,O.props.style),ref:f},R))}))});function DK(e){return ka("MuiBackdrop",e)}Ca("MuiBackdrop",["root","invisible"]);const OK=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],FK=e=>{const{classes:r,invisible:x}=e;return qn({root:["root",x&&"invisible"]},DK,r)},_K=ln("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.invisible&&r.invisible]}})(({ownerState:e})=>Ge({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"},e.invisible&&{backgroundColor:"transparent"})),I9=Oe.forwardRef(function(r,x){var F,j,Y;const D=Ka({props:r,name:"MuiBackdrop"}),{children:O,className:t,component:l="div",components:S={},componentsProps:i={},invisible:C=!1,open:w,slotProps:v={},slots:m={},TransitionComponent:a=jy,transitionDuration:n}=D,s=hn(D,OK),o=Ge({},D,{component:l,invisible:C}),h=FK(o),f=(F=v.root)!=null?F:i.root;return Ce.jsx(a,Ge({in:w,timeout:n},s,{children:Ce.jsx(_K,Ge({"aria-hidden":!0},f,{as:(j=(Y=m.root)!=null?Y:S.Root)!=null?j:l,className:Ln(h.root,t,f==null?void 0:f.className),ownerState:Ge({},o,f==null?void 0:f.ownerState),classes:h,ref:x,children:O}))}))});function zK(e){const{badgeContent:r,invisible:x=!1,max:F=99,showZero:j=!1}=e,Y=jA({badgeContent:r,max:F});let D=x;x===!1&&r===0&&!j&&(D=!0);const{badgeContent:O,max:t=F}=D?Y:e,l=O&&Number(O)>t?`${t}+`:O;return{badgeContent:O,invisible:D,max:t,displayValue:l}}function BK(e){return ka("MuiBadge",e)}const rp=Ca("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),NK=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],lC=10,uC=4,UK=e=>{const{color:r,anchorOrigin:x,invisible:F,overlap:j,variant:Y,classes:D={}}=e,O={root:["root"],badge:["badge",Y,F&&"invisible",`anchorOrigin${Gn(x.vertical)}${Gn(x.horizontal)}`,`anchorOrigin${Gn(x.vertical)}${Gn(x.horizontal)}${Gn(j)}`,`overlap${Gn(j)}`,r!=="default"&&`color${Gn(r)}`]};return qn(O,BK,D)},HK=ln("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,r)=>r.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),VK=ln("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.badge,r[x.variant],r[`anchorOrigin${Gn(x.anchorOrigin.vertical)}${Gn(x.anchorOrigin.horizontal)}${Gn(x.overlap)}`],x.color!=="default"&&r[`color${Gn(x.color)}`],x.invisible&&r.invisible]}})(({theme:e})=>{var r;return{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:lC*2,lineHeight:1,padding:"0 6px",height:lC*2,borderRadius:lC,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((r=e.vars)!=null?r:e).palette).filter(x=>{var F,j;return((F=e.vars)!=null?F:e).palette[x].main&&((j=e.vars)!=null?j:e).palette[x].contrastText}).map(x=>({props:{color:x},style:{backgroundColor:(e.vars||e).palette[x].main,color:(e.vars||e).palette[x].contrastText}})),{props:{variant:"dot"},style:{borderRadius:uC,height:uC*2,minWidth:uC*2,padding:0}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="top"&&x.anchorOrigin.horizontal==="right"&&x.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="bottom"&&x.anchorOrigin.horizontal==="right"&&x.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="top"&&x.anchorOrigin.horizontal==="left"&&x.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="bottom"&&x.anchorOrigin.horizontal==="left"&&x.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="top"&&x.anchorOrigin.horizontal==="right"&&x.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="bottom"&&x.anchorOrigin.horizontal==="right"&&x.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="top"&&x.anchorOrigin.horizontal==="left"&&x.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:x})=>x.anchorOrigin.vertical==="bottom"&&x.anchorOrigin.horizontal==="left"&&x.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${rp.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),i5=Oe.forwardRef(function(r,x){var F,j,Y,D,O,t;const l=Ka({props:r,name:"MuiBadge"}),{anchorOrigin:S={vertical:"top",horizontal:"right"},className:i,component:C,components:w={},componentsProps:v={},children:m,overlap:a="rectangular",color:n="default",invisible:s=!1,max:o=99,badgeContent:h,slots:f,slotProps:u,showZero:b=!1,variant:p="standard"}=l,E=hn(l,NK),{badgeContent:g,invisible:c,max:y,displayValue:A}=zK({max:o,invisible:s,badgeContent:h,showZero:b}),M=jA({anchorOrigin:S,color:n,overlap:a,variant:p,badgeContent:h}),R=c||g==null&&p!=="dot",{color:T=n,overlap:L=a,anchorOrigin:P=S,variant:d=p}=R?M:l,k=d!=="dot"?A:void 0,I=Ge({},l,{badgeContent:g,invisible:R,max:y,displayValue:k,showZero:b,anchorOrigin:P,color:T,overlap:L,variant:d}),N=UK(I),B=(F=(j=f==null?void 0:f.root)!=null?j:w.Root)!=null?F:HK,G=(Y=(D=f==null?void 0:f.badge)!=null?D:w.Badge)!=null?Y:VK,U=(O=u==null?void 0:u.root)!=null?O:v.root,H=(t=u==null?void 0:u.badge)!=null?t:v.badge,W=hi({elementType:B,externalSlotProps:U,externalForwardedProps:E,additionalProps:{ref:x,as:C},ownerState:I,className:Ln(U==null?void 0:U.className,N.root,i)}),V=hi({elementType:G,externalSlotProps:H,ownerState:I,className:Ln(N.badge,H==null?void 0:H.className)});return Ce.jsxs(B,Ge({},W,{children:[m,Ce.jsx(G,Ge({},V,{children:k}))]}))}),jK=Ca("MuiBox",["root"]),GK=YA(),oa=YG({themeId:lg,defaultTheme:GK,defaultClassName:jK.root,generateClassName:BA.generate}),WK=ci(Ce.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),$K=["slots","slotProps"],YK=ln(Ef)(({theme:e})=>Ge({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Ge({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":Ge({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:h8(e.palette.grey[200],.12)}:{backgroundColor:h8(e.palette.grey[600],.12)})})),XK=ln(WK)({width:24,height:16});function ZK(e){const{slots:r={},slotProps:x={}}=e,F=hn(e,$K),j=e;return Ce.jsx("li",{children:Ce.jsx(YK,Ge({focusRipple:!0},F,{ownerState:j,children:Ce.jsx(XK,Ge({as:r.CollapsedIcon,ownerState:j},x.collapsedIcon))}))})}function KK(e){return ka("MuiBreadcrumbs",e)}const JK=Ca("MuiBreadcrumbs",["root","ol","li","separator"]),QK=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],qK=e=>{const{classes:r}=e;return qn({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},KK,r)},eJ=ln(ea,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,r)=>[{[`& .${JK.li}`]:r.li},r.root]})({}),tJ=ln("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,r)=>r.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),rJ=ln("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,r)=>r.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function nJ(e,r,x,F){return e.reduce((j,Y,D)=>(D{const p=()=>{a(!0);const E=h.current.querySelector("a[href],button,[tabindex]");E&&E.focus()};return i+S>=b.length?b:[...b.slice(0,i),Ce.jsx(ZK,{"aria-label":l,slots:{CollapsedIcon:O.CollapsedIcon},slotProps:{collapsedIcon:o},onClick:p},"ellipsis"),...b.slice(b.length-S,b.length)]},u=Oe.Children.toArray(j).filter(b=>Oe.isValidElement(b)).map((b,p)=>Ce.jsx("li",{className:s.li,children:b},`child-${p}`));return Ce.jsx(eJ,Ge({ref:x,component:D,color:"text.secondary",className:Ln(s.root,Y),ownerState:n},v,{children:Ce.jsx(tJ,{className:s.ol,ref:h,ownerState:n,children:nJ(m||C&&u.length<=C?u:f(u),s.separator,w,n)})}))});function aJ(e){return ka("MuiButton",e)}const Vw=Ca("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),iJ=Oe.createContext({}),oJ=Oe.createContext(void 0),sJ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lJ=e=>{const{color:r,disableElevation:x,fullWidth:F,size:j,variant:Y,classes:D}=e,O={root:["root",Y,`${Y}${Gn(r)}`,`size${Gn(j)}`,`${Y}Size${Gn(j)}`,`color${Gn(r)}`,x&&"disableElevation",F&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Gn(j)}`],endIcon:["icon","endIcon",`iconSize${Gn(j)}`]},t=qn(O,aJ,D);return Ge({},D,t)},k9=e=>Ge({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),uJ=ln(Ef,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],r[`${x.variant}${Gn(x.color)}`],r[`size${Gn(x.size)}`],r[`${x.variant}Size${Gn(x.size)}`],x.color==="inherit"&&r.colorInherit,x.disableElevation&&r.disableElevation,x.fullWidth&&r.fullWidth]}})(({theme:e,ownerState:r})=>{var x,F;const j=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],Y=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ge({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ge({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="text"&&r.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="outlined"&&r.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[r.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:Y,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},r.variant==="contained"&&r.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}),"&:active":Ge({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vw.focusVisible}`]:Ge({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vw.disabled}`]:Ge({color:(e.vars||e).palette.action.disabled},r.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},r.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},r.variant==="text"&&{padding:"6px 8px"},r.variant==="text"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main},r.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},r.variant==="outlined"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${wi(e.palette[r.color].main,.5)}`},r.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(x=(F=e.palette).getContrastText)==null?void 0:x.call(F,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:j,boxShadow:(e.vars||e).shadows[2]},r.variant==="contained"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main},r.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},r.size==="small"&&r.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vw.disabled}`]:{boxShadow:"none"}}),cJ=ln("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.startIcon,r[`iconSize${Gn(x.size)}`]]}})(({ownerState:e})=>Ge({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},k9(e))),fJ=ln("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.endIcon,r[`iconSize${Gn(x.size)}`]]}})(({ownerState:e})=>Ge({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},k9(e))),$i=Oe.forwardRef(function(r,x){const F=Oe.useContext(iJ),j=Oe.useContext(oJ),Y=Wx(F,r),D=Ka({props:Y,name:"MuiButton"}),{children:O,color:t="primary",component:l="button",className:S,disabled:i=!1,disableElevation:C=!1,disableFocusRipple:w=!1,endIcon:v,focusVisibleClassName:m,fullWidth:a=!1,size:n="medium",startIcon:s,type:o,variant:h="text"}=D,f=hn(D,sJ),u=Ge({},D,{color:t,component:l,disabled:i,disableElevation:C,disableFocusRipple:w,fullWidth:a,size:n,type:o,variant:h}),b=lJ(u),p=s&&Ce.jsx(cJ,{className:b.startIcon,ownerState:u,children:s}),E=v&&Ce.jsx(fJ,{className:b.endIcon,ownerState:u,children:v}),g=j||"";return Ce.jsxs(uJ,Ge({ownerState:u,className:Ln(F.className,b.root,S,g),component:l,disabled:i,focusRipple:!w,focusVisibleClassName:Ln(b.focusVisible,m),ref:x,type:o},f,{classes:b,children:[p,O,E]}))});function dJ(e){return ka("PrivateSwitchBase",e)}Ca("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hJ=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],vJ=e=>{const{classes:r,checked:x,disabled:F,edge:j}=e,Y={root:["root",x&&"checked",F&&"disabled",j&&`edge${Gn(j)}`],input:["input"]};return qn(Y,dJ,r)},pJ=ln(Ef)(({ownerState:e})=>Ge({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),gJ=ln("input",{shouldForwardProp:ec})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mJ=Oe.forwardRef(function(r,x){const{autoFocus:F,checked:j,checkedIcon:Y,className:D,defaultChecked:O,disabled:t,disableFocusRipple:l=!1,edge:S=!1,icon:i,id:C,inputProps:w,inputRef:v,name:m,onBlur:a,onChange:n,onFocus:s,readOnly:o,required:h=!1,tabIndex:f,type:u,value:b}=r,p=hn(r,hJ),[E,g]=Ol({controlled:j,default:!!O,name:"SwitchBase",state:"checked"}),c=tc(),y=d=>{s&&s(d),c&&c.onFocus&&c.onFocus(d)},A=d=>{a&&a(d),c&&c.onBlur&&c.onBlur(d)},M=d=>{if(d.nativeEvent.defaultPrevented)return;const k=d.target.checked;g(k),n&&n(d,k)};let R=t;c&&typeof R>"u"&&(R=c.disabled);const T=u==="checkbox"||u==="radio",L=Ge({},r,{checked:E,disabled:R,disableFocusRipple:l,edge:S}),P=vJ(L);return Ce.jsxs(pJ,Ge({component:"span",className:Ln(P.root,D),centerRipple:!0,focusRipple:!l,disabled:R,tabIndex:null,role:void 0,onFocus:y,onBlur:A,ownerState:L,ref:x},p,{children:[Ce.jsx(gJ,Ge({autoFocus:F,checked:j,defaultChecked:O,className:P.input,disabled:R,id:T?C:void 0,name:m,onChange:M,readOnly:o,ref:v,required:h,ownerState:L,tabIndex:f,type:u},u==="checkbox"&&b===void 0?{}:{value:b},w)),E?Y:i]}))}),yJ=ci(Ce.jsx("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"),xJ=ci(Ce.jsx("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"),bJ=ci(Ce.jsx("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");function wJ(e){return ka("MuiCheckbox",e)}const cC=Ca("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),TJ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],SJ=e=>{const{classes:r,indeterminate:x,color:F,size:j}=e,Y={root:["root",x&&"indeterminate",`color${Gn(F)}`,`size${Gn(j)}`]},D=qn(Y,wJ,r);return Ge({},r,D)},CJ=ln(mJ,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.indeterminate&&r.indeterminate,r[`size${Gn(x.size)}`],x.color!=="default"&&r[`color${Gn(x.color)}`]]}})(({theme:e,ownerState:r})=>Ge({color:(e.vars||e).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${r.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wi(r.color==="default"?e.palette.action.active:e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.color!=="default"&&{[`&.${cC.checked}, &.${cC.indeterminate}`]:{color:(e.vars||e).palette[r.color].main},[`&.${cC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),MJ=Ce.jsx(xJ,{}),AJ=Ce.jsx(yJ,{}),EJ=Ce.jsx(bJ,{}),D9=Oe.forwardRef(function(r,x){var F,j;const Y=Ka({props:r,name:"MuiCheckbox"}),{checkedIcon:D=MJ,color:O="primary",icon:t=AJ,indeterminate:l=!1,indeterminateIcon:S=EJ,inputProps:i,size:C="medium",className:w}=Y,v=hn(Y,TJ),m=l?S:t,a=l?S:D,n=Ge({},Y,{color:O,indeterminate:l,size:C}),s=SJ(n);return Ce.jsx(CJ,Ge({type:"checkbox",inputProps:Ge({"data-indeterminate":l},i),icon:Oe.cloneElement(m,{fontSize:(F=m.props.fontSize)!=null?F:C}),checkedIcon:Oe.cloneElement(a,{fontSize:(j=a.props.fontSize)!=null?j:C}),ownerState:n,ref:x,className:Ln(s.root,w)},v,{classes:s}))});function PJ(e){return ka("MuiCircularProgress",e)}Ca("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const LJ=["className","color","disableShrink","size","style","thickness","value","variant"];let PT=e=>e,Z8,K8,J8,Q8;const np=44,IJ=Ad(Z8||(Z8=PT` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+Y.message+` 100% { transform: rotate(360deg); } -`)),JQ=Sd(aL||(aL=_T` +`)),RJ=Ad(K8||(K8=PT` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,11 @@ Error generating stack: `+Y.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),QQ=e=>{const{classes:r,variant:y,color:F,disableShrink:j}=e,Y={root:["root",y,`color${Gn(F)}`],svg:["svg"],circle:["circle",`circle${Gn(y)}`,j&&"circleDisableShrink"]};return qn(Y,XQ,r)},qQ=ln("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],r[`color${Gn(y.color)}`]]}})(({ownerState:e,theme:r})=>Ge({display:"inline-block"},e.variant==="determinate"&&{transition:r.transitions.create("transform")},e.color!=="inherit"&&{color:(r.vars||r).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ov(iL||(iL=_T` +`)),kJ=e=>{const{classes:r,variant:x,color:F,disableShrink:j}=e,Y={root:["root",x,`color${Gn(F)}`],svg:["svg"],circle:["circle",`circle${Gn(x)}`,j&&"circleDisableShrink"]};return qn(Y,PJ,r)},DJ=ln("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],r[`color${Gn(x.color)}`]]}})(({ownerState:e,theme:r})=>Ge({display:"inline-block"},e.variant==="determinate"&&{transition:r.transitions.create("transform")},e.color!=="inherit"&&{color:(r.vars||r).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&lv(J8||(J8=PT` animation: ${0} 1.4s linear infinite; - `),KQ)),eq=ln("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),tq=ln("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.circle,r[`circle${Gn(y.variant)}`],y.disableShrink&&r.circleDisableShrink]}})(({ownerState:e,theme:r})=>Ge({stroke:"currentColor"},e.variant==="determinate"&&{transition:r.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ov(oL||(oL=_T` + `),IJ)),OJ=ln("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),FJ=ln("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.circle,r[`circle${Gn(x.variant)}`],x.disableShrink&&r.circleDisableShrink]}})(({ownerState:e,theme:r})=>Ge({stroke:"currentColor"},e.variant==="determinate"&&{transition:r.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&lv(Q8||(Q8=PT` animation: ${0} 1.4s ease-in-out infinite; - `),JQ)),rq=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiCircularProgress"}),{className:j,color:Y="primary",disableShrink:D=!1,size:O=40,style:t,thickness:l=3.6,value:S=0,variant:i="indeterminate"}=F,C=hn(F,ZQ),w=Ge({},F,{color:Y,disableShrink:D,size:O,thickness:l,value:S,variant:i}),v=QQ(w),m={},a={},n={};if(i==="determinate"){const s=2*Math.PI*((np-l)/2);m.strokeDasharray=s.toFixed(3),n["aria-valuenow"]=Math.round(S),m.strokeDashoffset=`${((100-S)/100*s).toFixed(3)}px`,a.transform="rotate(-90deg)"}return Ce.jsx(qQ,Ge({className:Ln(v.root,j),style:Ge({width:O,height:O},a,t),ownerState:w,ref:y,role:"progressbar"},n,C,{children:Ce.jsx(eq,{className:v.svg,ownerState:w,viewBox:`${np/2} ${np/2} ${np} ${np}`,children:Ce.jsx(tq,{className:v.circle,style:m,ownerState:w,cx:np,cy:np,r:(np-l)/2,fill:"none",strokeWidth:l})})}))}),nq=rq;function sL(e){return e.substring(2).toLowerCase()}function aq(e,r){return r.documentElement.clientWidth(setTimeout(()=>{t.current=!0},0),()=>{t.current=!1}),[]);const S=pi(r.ref,O),i=pa(v=>{const m=l.current;l.current=!1;const a=oo(O.current);if(!t.current||!O.current||"clientX"in v&&aq(v,a))return;if(D.current){D.current=!1;return}let n;v.composedPath?n=v.composedPath().indexOf(O.current)>-1:n=!a.documentElement.contains(v.target)||O.current.contains(v.target),!n&&(y||!m)&&j(v)}),C=v=>m=>{l.current=!0;const a=r.props[v];a&&a(m)},w={ref:S};return Y!==!1&&(w[Y]=C(Y)),Oe.useEffect(()=>{if(Y!==!1){const v=sL(Y),m=oo(O.current),a=()=>{D.current=!0};return m.addEventListener(v,i),m.addEventListener("touchmove",a),()=>{m.removeEventListener(v,i),m.removeEventListener("touchmove",a)}}},[i,Y]),F!==!1&&(w[F]=C(F)),Oe.useEffect(()=>{if(F!==!1){const v=sL(F),m=oo(O.current);return m.addEventListener(v,i),()=>{m.removeEventListener(v,i)}}},[i,F]),Ce.jsx(Oe.Fragment,{children:Oe.cloneElement(r,w)})}const iq=p$({createStyledComponent:ln("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[`maxWidth${Gn(String(y.maxWidth))}`],y.fixed&&r.fixed,y.disableGutters&&r.disableGutters]}}),useThemeProps:e=>Ka({props:e,name:"MuiContainer"})}),Zs=iq,oq=(e,r)=>Ge({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},r&&!e.vars&&{colorScheme:e.palette.mode}),sq=e=>Ge({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),lq=(e,r=!1)=>{var y;const F={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([D,O])=>{var t;F[e.getColorSchemeSelector(D).replace(/\s*&/,"")]={colorScheme:(t=O.palette)==null?void 0:t.mode}});let j=Ge({html:oq(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Ge({margin:0},sq(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},F);const Y=(y=e.components)==null||(y=y.MuiCssBaseline)==null?void 0:y.styleOverrides;return Y&&(j=[j,Y]),j};function uq(e){const r=Ka({props:e,name:"MuiCssBaseline"}),{children:y,enableColorScheme:F=!1}=r;return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(_9,{styles:j=>lq(j,F)}),y]})}function cq(e){const r=oo(e);return r.body===e?wd(e).innerWidth>r.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function yx(e,r){r?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lL(e){return parseInt(wd(e).getComputedStyle(e).paddingRight,10)||0}function fq(e){const y=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,F=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return y||F}function uL(e,r,y,F,j){const Y=[r,y,...F];[].forEach.call(e.children,D=>{const O=Y.indexOf(D)===-1,t=!fq(D);O&&t&&yx(D,j)})}function bC(e,r){let y=-1;return e.some((F,j)=>r(F)?(y=j,!0):!1),y}function dq(e,r){const y=[],F=e.container;if(!r.disableScrollLock){if(cq(F)){const D=Q7(oo(F));y.push({value:F.style.paddingRight,property:"padding-right",el:F}),F.style.paddingRight=`${lL(F)+D}px`;const O=oo(F).querySelectorAll(".mui-fixed");[].forEach.call(O,t=>{y.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${lL(t)+D}px`})}let Y;if(F.parentNode instanceof DocumentFragment)Y=oo(F).body;else{const D=F.parentElement,O=wd(F);Y=(D==null?void 0:D.nodeName)==="HTML"&&O.getComputedStyle(D).overflowY==="scroll"?D:F}y.push({value:Y.style.overflow,property:"overflow",el:Y},{value:Y.style.overflowX,property:"overflow-x",el:Y},{value:Y.style.overflowY,property:"overflow-y",el:Y}),Y.style.overflow="hidden"}return()=>{y.forEach(({value:Y,el:D,property:O})=>{Y?D.style.setProperty(O,Y):D.style.removeProperty(O)})}}function hq(e){const r=[];return[].forEach.call(e.children,y=>{y.getAttribute("aria-hidden")==="true"&&r.push(y)}),r}class vq{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(r,y){let F=this.modals.indexOf(r);if(F!==-1)return F;F=this.modals.length,this.modals.push(r),r.modalRef&&yx(r.modalRef,!1);const j=hq(y);uL(y,r.mount,r.modalRef,j,!0);const Y=bC(this.containers,D=>D.container===y);return Y!==-1?(this.containers[Y].modals.push(r),F):(this.containers.push({modals:[r],container:y,restore:null,hiddenSiblings:j}),F)}mount(r,y){const F=bC(this.containers,Y=>Y.modals.indexOf(r)!==-1),j=this.containers[F];j.restore||(j.restore=dq(j,y))}remove(r,y=!0){const F=this.modals.indexOf(r);if(F===-1)return F;const j=bC(this.containers,D=>D.modals.indexOf(r)!==-1),Y=this.containers[j];if(Y.modals.splice(Y.modals.indexOf(r),1),this.modals.splice(F,1),Y.modals.length===0)Y.restore&&Y.restore(),r.modalRef&&yx(r.modalRef,y),uL(Y.container,r.mount,r.modalRef,Y.hiddenSiblings,!1),this.containers.splice(j,1);else{const D=Y.modals[Y.modals.length-1];D.modalRef&&yx(D.modalRef,!1)}return F}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const pq=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gq(e){const r=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(r)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:r}function mq(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const r=F=>e.ownerDocument.querySelector(`input[type="radio"]${F}`);let y=r(`[name="${e.name}"]:checked`);return y||(y=r(`[name="${e.name}"]`)),y!==e}function yq(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mq(e))}function xq(e){const r=[],y=[];return Array.from(e.querySelectorAll(pq)).forEach((F,j)=>{const Y=gq(F);Y===-1||!yq(F)||(Y===0?r.push(F):y.push({documentOrder:j,tabIndex:Y,node:F}))}),y.sort((F,j)=>F.tabIndex===j.tabIndex?F.documentOrder-j.documentOrder:F.tabIndex-j.tabIndex).map(F=>F.node).concat(r)}function bq(){return!0}function x5(e){const{children:r,disableAutoFocus:y=!1,disableEnforceFocus:F=!1,disableRestoreFocus:j=!1,getTabbable:Y=xq,isEnabled:D=bq,open:O}=e,t=Oe.useRef(!1),l=Oe.useRef(null),S=Oe.useRef(null),i=Oe.useRef(null),C=Oe.useRef(null),w=Oe.useRef(!1),v=Oe.useRef(null),m=pi(r.ref,v),a=Oe.useRef(null);Oe.useEffect(()=>{!O||!v.current||(w.current=!y)},[y,O]),Oe.useEffect(()=>{if(!O||!v.current)return;const o=oo(v.current);return v.current.contains(o.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),w.current&&v.current.focus()),()=>{j||(i.current&&i.current.focus&&(t.current=!0,i.current.focus()),i.current=null)}},[O]),Oe.useEffect(()=>{if(!O||!v.current)return;const o=oo(v.current),h=b=>{a.current=b,!(F||!D()||b.key!=="Tab")&&o.activeElement===v.current&&b.shiftKey&&(t.current=!0,S.current&&S.current.focus())},f=()=>{const b=v.current;if(b===null)return;if(!o.hasFocus()||!D()||t.current){t.current=!1;return}if(b.contains(o.activeElement)||F&&o.activeElement!==l.current&&o.activeElement!==S.current)return;if(o.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!w.current)return;let p=[];if((o.activeElement===l.current||o.activeElement===S.current)&&(p=Y(v.current)),p.length>0){var E,g;const c=!!((E=a.current)!=null&&E.shiftKey&&((g=a.current)==null?void 0:g.key)==="Tab"),x=p[0],A=p[p.length-1];typeof x!="string"&&typeof A!="string"&&(c?A.focus():x.focus())}else b.focus()};o.addEventListener("focusin",f),o.addEventListener("keydown",h,!0);const u=setInterval(()=>{o.activeElement&&o.activeElement.tagName==="BODY"&&f()},50);return()=>{clearInterval(u),o.removeEventListener("focusin",f),o.removeEventListener("keydown",h,!0)}},[y,F,j,D,O,Y]);const n=o=>{i.current===null&&(i.current=o.relatedTarget),w.current=!0,C.current=o.target;const h=r.props.onFocus;h&&h(o)},s=o=>{i.current===null&&(i.current=o.relatedTarget),w.current=!0};return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("div",{tabIndex:O?0:-1,onFocus:s,ref:l,"data-testid":"sentinelStart"}),Oe.cloneElement(r,{ref:m,onFocus:n}),Ce.jsx("div",{tabIndex:O?0:-1,onFocus:s,ref:S,"data-testid":"sentinelEnd"})]})}function wq(e){return typeof e=="function"?e():e}function Tq(e){return e?e.props.hasOwnProperty("in"):!1}const Sq=new vq;function Cq(e){const{container:r,disableEscapeKeyDown:y=!1,disableScrollLock:F=!1,manager:j=Sq,closeAfterTransition:Y=!1,onTransitionEnter:D,onTransitionExited:O,children:t,onClose:l,open:S,rootRef:i}=e,C=Oe.useRef({}),w=Oe.useRef(null),v=Oe.useRef(null),m=pi(v,i),[a,n]=Oe.useState(!S),s=Tq(t);let o=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(o=!1);const h=()=>oo(w.current),f=()=>(C.current.modalRef=v.current,C.current.mount=w.current,C.current),u=()=>{j.mount(f(),{disableScrollLock:F}),v.current&&(v.current.scrollTop=0)},b=pa(()=>{const T=wq(r)||h().body;j.add(f(),T),v.current&&u()}),p=Oe.useCallback(()=>j.isTopModal(f()),[j]),E=pa(T=>{w.current=T,T&&(S&&p()?u():v.current&&yx(v.current,o))}),g=Oe.useCallback(()=>{j.remove(f(),o)},[o,j]);Oe.useEffect(()=>()=>{g()},[g]),Oe.useEffect(()=>{S?b():(!s||!Y)&&g()},[S,g,s,Y,b]);const c=T=>L=>{var P;(P=T.onKeyDown)==null||P.call(T,L),!(L.key!=="Escape"||L.which===229||!p())&&(y||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},x=T=>L=>{var P;(P=T.onClick)==null||P.call(T,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(T={})=>{const L=px(e);delete L.onTransitionEnter,delete L.onTransitionExited;const P=Ge({},L,T);return Ge({role:"presentation"},P,{onKeyDown:c(P),ref:m})},getBackdropProps:(T={})=>{const L=T;return Ge({"aria-hidden":!0},L,{onClick:x(L),open:S})},getTransitionProps:()=>{const T=()=>{n(!1),D&&D()},L=()=>{n(!0),O&&O(),Y&&g()};return{onEnter:$4(T,t==null?void 0:t.props.onEnter),onExited:$4(L,t==null?void 0:t.props.onExited)}},rootRef:m,portalRef:E,isTopModal:p,exited:a,hasTransition:s}}function Mq(e){return ka("MuiModal",e)}Ma("MuiModal",["root","hidden","backdrop"]);const Aq=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Eq=e=>{const{open:r,exited:y,classes:F}=e;return qn({root:["root",!r&&y&&"hidden"],backdrop:["backdrop"]},Mq,F)},Pq=ln("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,!y.open&&y.exited&&r.hidden]}})(({theme:e,ownerState:r})=>Ge({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})),Lq=ln(N9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,r)=>r.backdrop})({zIndex:-1}),Iq=Oe.forwardRef(function(r,y){var F,j,Y,D,O,t;const l=Ka({name:"MuiModal",props:r}),{BackdropComponent:S=Lq,BackdropProps:i,className:C,closeAfterTransition:w=!1,children:v,container:m,component:a,components:n={},componentsProps:s={},disableAutoFocus:o=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:f=!1,disablePortal:u=!1,disableRestoreFocus:b=!1,disableScrollLock:p=!1,hideBackdrop:E=!1,keepMounted:g=!1,onBackdropClick:c,open:x,slotProps:A,slots:M}=l,R=hn(l,Aq),T=Ge({},l,{closeAfterTransition:w,disableAutoFocus:o,disableEnforceFocus:h,disableEscapeKeyDown:f,disablePortal:u,disableRestoreFocus:b,disableScrollLock:p,hideBackdrop:E,keepMounted:g}),{getRootProps:L,getBackdropProps:P,getTransitionProps:d,portalRef:k,isTopModal:I,exited:N,hasTransition:B}=Cq(Ge({},T,{rootRef:y})),G=Ge({},T,{exited:N}),U=Eq(G),H={};if(v.props.tabIndex===void 0&&(H.tabIndex="-1"),B){const{onEnter:ie,onExited:fe}=d();H.onEnter=ie,H.onExited=fe}const W=(F=(j=M==null?void 0:M.root)!=null?j:n.Root)!=null?F:Pq,V=(Y=(D=M==null?void 0:M.backdrop)!=null?D:n.Backdrop)!=null?Y:S,$=(O=A==null?void 0:A.root)!=null?O:s.root,Z=(t=A==null?void 0:A.backdrop)!=null?t:s.backdrop,q=vi({elementType:W,externalSlotProps:$,externalForwardedProps:R,getSlotProps:L,additionalProps:{ref:y,as:a},ownerState:G,className:Ln(C,$==null?void 0:$.className,U==null?void 0:U.root,!G.open&&G.exited&&(U==null?void 0:U.hidden))}),ae=vi({elementType:V,externalSlotProps:Z,additionalProps:i,getSlotProps:ie=>P(Ge({},ie,{onClick:fe=>{c&&c(fe),ie!=null&&ie.onClick&&ie.onClick(fe)}})),className:Ln(Z==null?void 0:Z.className,i==null?void 0:i.className,U==null?void 0:U.backdrop),ownerState:G});return!g&&!x&&(!B||N)?null:Ce.jsx(O9,{ref:k,container:m,disablePortal:u,children:Ce.jsxs(W,Ge({},q,{children:[!E&&S?Ce.jsx(V,Ge({},ae)):null,Ce.jsx(x5,{disableEnforceFocus:h,disableAutoFocus:o,disableRestoreFocus:b,isEnabled:I,open:x,children:Oe.cloneElement(v,H)})]}))})}),zT=Iq;function Rq(e){return ka("MuiDialog",e)}const xx=Ma("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),kq=Oe.createContext({}),Dq=kq,Oq=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Fq=ln(N9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),_q=e=>{const{classes:r,scroll:y,maxWidth:F,fullWidth:j,fullScreen:Y}=e,D={root:["root"],container:["container",`scroll${Gn(y)}`],paper:["paper",`paperScroll${Gn(y)}`,`paperWidth${Gn(String(F))}`,j&&"paperFullWidth",Y&&"paperFullScreen"]};return qn(D,Rq,r)},zq=ln(zT,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),Bq=ln("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.container,r[`scroll${Gn(y.scroll)}`]]}})(({ownerState:e})=>Ge({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Nq=ln(Ri,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.paper,r[`scrollPaper${Gn(y.scroll)}`],r[`paperWidth${Gn(String(y.maxWidth))}`],y.fullWidth&&r.paperFullWidth,y.fullScreen&&r.paperFullScreen]}})(({theme:e,ownerState:r})=>Ge({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},r.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},r.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},r.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${xx.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&r.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`,[`&.${xx.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Uq=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiDialog"}),j=ru(),Y={enter:j.transitions.duration.enteringScreen,exit:j.transitions.duration.leavingScreen},{"aria-describedby":D,"aria-labelledby":O,BackdropComponent:t,BackdropProps:l,children:S,className:i,disableEscapeKeyDown:C=!1,fullScreen:w=!1,fullWidth:v=!1,maxWidth:m="sm",onBackdropClick:a,onClick:n,onClose:s,open:o,PaperComponent:h=Ri,PaperProps:f={},scroll:u="paper",TransitionComponent:b=Vy,transitionDuration:p=Y,TransitionProps:E}=F,g=hn(F,Oq),c=Ge({},F,{disableEscapeKeyDown:C,fullScreen:w,fullWidth:v,maxWidth:m,scroll:u}),x=_q(c),A=Oe.useRef(),M=P=>{A.current=P.target===P.currentTarget},R=P=>{n&&n(P),A.current&&(A.current=null,a&&a(P),s&&s(P,"backdropClick"))},T=Ui(O),L=Oe.useMemo(()=>({titleId:T}),[T]);return Ce.jsx(zq,Ge({className:Ln(x.root,i),closeAfterTransition:!0,components:{Backdrop:Fq},componentsProps:{backdrop:Ge({transitionDuration:p,as:t},l)},disableEscapeKeyDown:C,onClose:s,open:o,ref:y,onClick:R,ownerState:c},g,{children:Ce.jsx(b,Ge({appear:!0,in:o,timeout:p,role:"presentation"},E,{children:Ce.jsx(Bq,{className:Ln(x.container),onMouseDown:M,ownerState:c,children:Ce.jsx(Nq,Ge({as:h,elevation:24,role:"dialog","aria-describedby":D,"aria-labelledby":T},f,{className:Ln(x.paper,f.className),ownerState:c,children:Ce.jsx(Dq.Provider,{value:L,children:S})}))})}))}))}),Hq=Uq;function Vq(e){return ka("MuiDialogActions",e)}Ma("MuiDialogActions",["root","spacing"]);const jq=["className","disableSpacing"],Gq=e=>{const{classes:r,disableSpacing:y}=e;return qn({root:["root",!y&&"spacing"]},Vq,r)},Wq=ln("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,!y.disableSpacing&&r.spacing]}})(({ownerState:e})=>Ge({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),$q=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiDialogActions"}),{className:j,disableSpacing:Y=!1}=F,D=hn(F,jq),O=Ge({},F,{disableSpacing:Y}),t=Gq(O);return Ce.jsx(Wq,Ge({className:Ln(t.root,j),ownerState:O,ref:y},D))}),Yq=$q;function Xq(e){return ka("MuiDialogContent",e)}Ma("MuiDialogContent",["root","dividers"]);const Zq=Ma("MuiDialogTitle",["root"]),Kq=Zq,Jq=["className","dividers"],Qq=e=>{const{classes:r,dividers:y}=e;return qn({root:["root",y&&"dividers"]},Xq,r)},qq=ln("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.dividers&&r.dividers]}})(({theme:e,ownerState:r})=>Ge({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Kq.root} + &`]:{paddingTop:0}})),eee=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiDialogContent"}),{className:j,dividers:Y=!1}=F,D=hn(F,Jq),O=Ge({},F,{dividers:Y}),t=Qq(O);return Ce.jsx(qq,Ge({className:Ln(t.root,j),ownerState:O,ref:y},D))}),tee=eee;function ree(e){return ka("MuiDivider",e)}const nee=Ma("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),cL=nee,aee=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],iee=e=>{const{absolute:r,children:y,classes:F,flexItem:j,light:Y,orientation:D,textAlign:O,variant:t}=e;return qn({root:["root",r&&"absolute",t,Y&&"light",D==="vertical"&&"vertical",j&&"flexItem",y&&"withChildren",y&&D==="vertical"&&"withChildrenVertical",O==="right"&&D!=="vertical"&&"textAlignRight",O==="left"&&D!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",D==="vertical"&&"wrapperVertical"]},ree,F)},oee=ln("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.absolute&&r.absolute,r[y.variant],y.light&&r.light,y.orientation==="vertical"&&r.vertical,y.flexItem&&r.flexItem,y.children&&r.withChildren,y.children&&y.orientation==="vertical"&&r.withChildrenVertical,y.textAlign==="right"&&y.orientation!=="vertical"&&r.textAlignRight,y.textAlign==="left"&&y.orientation!=="vertical"&&r.textAlignLeft]}})(({theme:e,ownerState:r})=>Ge({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ti(e.palette.divider,.08)},r.variant==="inset"&&{marginLeft:72},r.variant==="middle"&&r.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},r.variant==="middle"&&r.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},r.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ge({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:r})=>Ge({},r.children&&r.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:r})=>Ge({},r.children&&r.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ge({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),see=ln("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.wrapper,y.orientation==="vertical"&&r.wrapperVertical]}})(({theme:e,ownerState:r})=>Ge({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},r.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),G9=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiDivider"}),{absolute:j=!1,children:Y,className:D,component:O=Y?"div":"hr",flexItem:t=!1,light:l=!1,orientation:S="horizontal",role:i=O!=="hr"?"separator":void 0,textAlign:C="center",variant:w="fullWidth"}=F,v=hn(F,aee),m=Ge({},F,{absolute:j,component:O,flexItem:t,light:l,orientation:S,role:i,textAlign:C,variant:w}),a=iee(m);return Ce.jsx(oee,Ge({as:O,className:Ln(a.root,D),role:i,ref:y,ownerState:m},v,{children:Y?Ce.jsx(see,{className:a.wrapper,ownerState:m,children:Y}):null}))});G9.muiSkipListHighlight=!0;const lee=G9,uee=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],cee=e=>{const{classes:r,disableUnderline:y}=e,j=qn({root:["root",!y&&"underline"],input:["input"]},gJ,r);return Ge({},r,j)},fee=ln(OT,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[...kT(e,r),!y.disableUnderline&&r.underline]}})(({theme:e,ownerState:r})=>{var y;const F=e.palette.mode==="light",j=F?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",Y=F?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",D=F?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",O=F?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ge({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:Y,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:D,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:Y}},[`&.${yc.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:Y},[`&.${yc.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:O}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(y=(e.vars||e).palette[r.color||"primary"])==null?void 0:y.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"},[`&.${yc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:j}`,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(.${yc.disabled}, .${yc.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yc.disabled}:before`]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&Ge({padding:"25px 12px 8px"},r.size==="small"&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&r.size==="small"&&{paddingTop:8,paddingBottom:9}))}),dee=ln(FT,{name:"MuiFilledInput",slot:"Input",overridesResolver:DT})(({theme:e,ownerState:r})=>Ge({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},r.size==="small"&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&r.size==="small"&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),W9=Oe.forwardRef(function(r,y){var F,j,Y,D;const O=Ka({props:r,name:"MuiFilledInput"}),{components:t={},componentsProps:l,fullWidth:S=!1,inputComponent:i="input",multiline:C=!1,slotProps:w,slots:v={},type:m="text"}=O,a=hn(O,uee),n=Ge({},O,{fullWidth:S,inputComponent:i,multiline:C,type:m}),s=cee(O),o={root:{ownerState:n},input:{ownerState:n}},h=w??l?bu(o,w??l):o,f=(F=(j=v.root)!=null?j:t.Root)!=null?F:fee,u=(Y=(D=v.input)!=null?D:t.Input)!=null?Y:dee;return Ce.jsx(Hy,Ge({slots:{root:f,input:u},componentsProps:h,fullWidth:S,inputComponent:i,multiline:C,ref:y,type:m},a,{classes:s}))});W9.muiName="Input";const $9=W9;function hee(e){return ka("MuiFormControl",e)}Ma("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const vee=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],pee=e=>{const{classes:r,margin:y,fullWidth:F}=e,j={root:["root",y!=="none"&&`margin${Gn(y)}`,F&&"fullWidth"]};return qn(j,hee,r)},gee=ln("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},r)=>Ge({},r.root,r[`margin${Gn(e.margin)}`],e.fullWidth&&r.fullWidth)})(({ownerState:e})=>Ge({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),mee=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiFormControl"}),{children:j,className:Y,color:D="primary",component:O="div",disabled:t=!1,error:l=!1,focused:S,fullWidth:i=!1,hiddenLabel:C=!1,margin:w="none",required:v=!1,size:m="medium",variant:a="outlined"}=F,n=hn(F,vee),s=Ge({},F,{color:D,component:O,disabled:t,error:l,fullWidth:i,hiddenLabel:C,margin:w,required:v,size:m,variant:a}),o=pee(s),[h,f]=Oe.useState(()=>{let A=!1;return j&&Oe.Children.forEach(j,M=>{if(!vx(M,["Input","Select"]))return;const R=vx(M,["Select"])?M.props.input:M;R&&iJ(R.props)&&(A=!0)}),A}),[u,b]=Oe.useState(()=>{let A=!1;return j&&Oe.Children.forEach(j,M=>{vx(M,["Input","Select"])&&(c2(M.props,!0)||c2(M.props.inputProps,!0))&&(A=!0)}),A}),[p,E]=Oe.useState(!1);t&&p&&E(!1);const g=S!==void 0&&!t?S:p;let c;const x=Oe.useMemo(()=>({adornedStart:h,setAdornedStart:f,color:D,disabled:t,error:l,filled:u,focused:g,fullWidth:i,hiddenLabel:C,size:m,onBlur:()=>{E(!1)},onEmpty:()=>{b(!1)},onFilled:()=>{b(!0)},onFocus:()=>{E(!0)},registerEffect:c,required:v,variant:a}),[h,D,t,l,u,g,i,C,c,v,m,a]);return Ce.jsx(RT.Provider,{value:x,children:Ce.jsx(gee,Ge({as:O,ownerState:s,className:Ln(o.root,Y),ref:y},n,{children:j}))})}),nh=mee,yee=S$({createStyledComponent:ln("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,r)=>r.root}),useThemeProps:e=>Ka({props:e,name:"MuiStack"})}),La=yee;function xee(e){return ka("MuiFormControlLabel",e)}const bee=Ma("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Q1=bee,wee=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Tee=e=>{const{classes:r,disabled:y,labelPlacement:F,error:j,required:Y}=e,D={root:["root",y&&"disabled",`labelPlacement${Gn(F)}`,j&&"error",Y&&"required"],label:["label",y&&"disabled"],asterisk:["asterisk",j&&"error"]};return qn(D,xee,r)},See=ln("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[{[`& .${Q1.label}`]:r.label},r.root,r[`labelPlacement${Gn(y.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>Ge({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Q1.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Q1.label}`]:{[`&.${Q1.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Cee=ln("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${Q1.error}`]:{color:(e.vars||e).palette.error.main}})),Mee=Oe.forwardRef(function(r,y){var F,j;const Y=Ka({props:r,name:"MuiFormControlLabel"}),{className:D,componentsProps:O={},control:t,disabled:l,disableTypography:S,label:i,labelPlacement:C="end",required:w,slotProps:v={}}=Y,m=hn(Y,wee),a=ec(),n=(F=l??t.props.disabled)!=null?F:a==null?void 0:a.disabled,s=w??t.props.required,o={disabled:n,required:s};["checked","name","onChange","value","inputRef"].forEach(E=>{typeof t.props[E]>"u"&&typeof Y[E]<"u"&&(o[E]=Y[E])});const h=Zp({props:Y,muiFormControl:a,states:["error"]}),f=Ge({},Y,{disabled:n,labelPlacement:C,required:s,error:h.error}),u=Tee(f),b=(j=v.typography)!=null?j:O.typography;let p=i;return p!=null&&p.type!==ea&&!S&&(p=Ce.jsx(ea,Ge({component:"span"},b,{className:Ln(u.label,b==null?void 0:b.className),children:p}))),Ce.jsxs(See,Ge({className:Ln(u.root,D),ownerState:f,ref:y},m,{children:[Oe.cloneElement(t,o),s?Ce.jsxs(La,{display:"block",children:[p,Ce.jsxs(Cee,{ownerState:f,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}):p]}))}),tM=Mee;function Aee(e){return ka("MuiFormGroup",e)}Ma("MuiFormGroup",["root","row","error"]);const Eee=["className","row"],Pee=e=>{const{classes:r,row:y,error:F}=e;return qn({root:["root",y&&"row",F&&"error"]},Aee,r)},Lee=ln("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.row&&r.row]}})(({ownerState:e})=>Ge({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Iee=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiFormGroup"}),{className:j,row:Y=!1}=F,D=hn(F,Eee),O=ec(),t=Zp({props:F,muiFormControl:O,states:["error"]}),l=Ge({},F,{row:Y,error:t.error}),S=Pee(l);return Ce.jsx(Lee,Ge({className:Ln(S.root,j),ownerState:l,ref:y},D))}),Ree=Iee;function kee(e){return ka("MuiFormHelperText",e)}const Dee=Ma("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),fL=Dee;var dL;const Oee=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fee=e=>{const{classes:r,contained:y,size:F,disabled:j,error:Y,filled:D,focused:O,required:t}=e,l={root:["root",j&&"disabled",Y&&"error",F&&`size${Gn(F)}`,y&&"contained",O&&"focused",D&&"filled",t&&"required"]};return qn(l,kee,r)},_ee=ln("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.size&&r[`size${Gn(y.size)}`],y.contained&&r.contained,y.filled&&r.filled]}})(({theme:e,ownerState:r})=>Ge({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fL.error}`]:{color:(e.vars||e).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),zee=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiFormHelperText"}),{children:j,className:Y,component:D="p"}=F,O=hn(F,Oee),t=ec(),l=Zp({props:F,muiFormControl:t,states:["variant","size","disabled","error","filled","focused","required"]}),S=Ge({},F,{component:D,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),i=Fee(S);return Ce.jsx(_ee,Ge({as:D,ownerState:S,className:Ln(i.root,Y),ref:y},O,{children:j===" "?dL||(dL=Ce.jsx("span",{className:"notranslate",children:"​"})):j}))}),b5=zee;function Bee(e){return ka("MuiFormLabel",e)}const Nee=Ma("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bx=Nee,Uee=["children","className","color","component","disabled","error","filled","focused","required"],Hee=e=>{const{classes:r,color:y,focused:F,disabled:j,error:Y,filled:D,required:O}=e,t={root:["root",`color${Gn(y)}`,j&&"disabled",Y&&"error",D&&"filled",F&&"focused",O&&"required"],asterisk:["asterisk",Y&&"error"]};return qn(t,Bee,r)},Vee=ln("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},r)=>Ge({},r.root,e.color==="secondary"&&r.colorSecondary,e.filled&&r.filled)})(({theme:e,ownerState:r})=>Ge({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bx.focused}`]:{color:(e.vars||e).palette[r.color].main},[`&.${bx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bx.error}`]:{color:(e.vars||e).palette.error.main}})),jee=ln("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${bx.error}`]:{color:(e.vars||e).palette.error.main}})),Gee=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiFormLabel"}),{children:j,className:Y,component:D="label"}=F,O=hn(F,Uee),t=ec(),l=Zp({props:F,muiFormControl:t,states:["color","required","focused","disabled","error","filled"]}),S=Ge({},F,{color:l.color||"primary",component:D,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),i=Hee(S);return Ce.jsxs(Vee,Ge({as:D,ownerState:S,className:Ln(i.root,Y),ref:y},O,{children:[j,l.required&&Ce.jsxs(jee,{ownerState:S,"aria-hidden":!0,className:i.asterisk,children:[" ","*"]})]}))}),Wee=Gee,$ee=Oe.createContext(),hL=$ee;function Yee(e){return ka("MuiGrid",e)}const Xee=[0,1,2,3,4,5,6,7,8,9,10],Zee=["column-reverse","column","row-reverse","row"],Kee=["nowrap","wrap-reverse","wrap"],E1=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Jx=Ma("MuiGrid",["root","container","item","zeroMinWidth",...Xee.map(e=>`spacing-xs-${e}`),...Zee.map(e=>`direction-xs-${e}`),...Kee.map(e=>`wrap-xs-${e}`),...E1.map(e=>`grid-xs-${e}`),...E1.map(e=>`grid-sm-${e}`),...E1.map(e=>`grid-md-${e}`),...E1.map(e=>`grid-lg-${e}`),...E1.map(e=>`grid-xl-${e}`)]),Jee=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Wm(e){const r=parseFloat(e);return`${r}${String(e).replace(String(r),"")||"px"}`}function Qee({theme:e,ownerState:r}){let y;return e.breakpoints.keys.reduce((F,j)=>{let Y={};if(r[j]&&(y=r[j]),!y)return F;if(y===!0)Y={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(y==="auto")Y={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const D=eg({values:r.columns,breakpoints:e.breakpoints.values}),O=typeof D=="object"?D[j]:D;if(O==null)return F;const t=`${Math.round(y/O*1e8)/1e6}%`;let l={};if(r.container&&r.item&&r.columnSpacing!==0){const S=e.spacing(r.columnSpacing);if(S!=="0px"){const i=`calc(${t} + ${Wm(S)})`;l={flexBasis:i,maxWidth:i}}}Y=Ge({flexBasis:t,flexGrow:0,maxWidth:t},l)}return e.breakpoints.values[j]===0?Object.assign(F,Y):F[e.breakpoints.up(j)]=Y,F},{})}function qee({theme:e,ownerState:r}){const y=eg({values:r.direction,breakpoints:e.breakpoints.values});return Ju({theme:e},y,F=>{const j={flexDirection:F};return F.indexOf("column")===0&&(j[`& > .${Jx.item}`]={maxWidth:"none"}),j})}function Y9({breakpoints:e,values:r}){let y="";Object.keys(r).forEach(j=>{y===""&&r[j]!==0&&(y=j)});const F=Object.keys(e).sort((j,Y)=>e[j]-e[Y]);return F.slice(0,F.indexOf(y))}function ete({theme:e,ownerState:r}){const{container:y,rowSpacing:F}=r;let j={};if(y&&F!==0){const Y=eg({values:F,breakpoints:e.breakpoints.values});let D;typeof Y=="object"&&(D=Y9({breakpoints:e.breakpoints.values,values:Y})),j=Ju({theme:e},Y,(O,t)=>{var l;const S=e.spacing(O);return S!=="0px"?{marginTop:`-${Wm(S)}`,[`& > .${Jx.item}`]:{paddingTop:Wm(S)}}:(l=D)!=null&&l.includes(t)?{}:{marginTop:0,[`& > .${Jx.item}`]:{paddingTop:0}}})}return j}function tte({theme:e,ownerState:r}){const{container:y,columnSpacing:F}=r;let j={};if(y&&F!==0){const Y=eg({values:F,breakpoints:e.breakpoints.values});let D;typeof Y=="object"&&(D=Y9({breakpoints:e.breakpoints.values,values:Y})),j=Ju({theme:e},Y,(O,t)=>{var l;const S=e.spacing(O);return S!=="0px"?{width:`calc(100% + ${Wm(S)})`,marginLeft:`-${Wm(S)}`,[`& > .${Jx.item}`]:{paddingLeft:Wm(S)}}:(l=D)!=null&&l.includes(t)?{}:{width:"100%",marginLeft:0,[`& > .${Jx.item}`]:{paddingLeft:0}}})}return j}function rte(e,r,y={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[y[`spacing-xs-${String(e)}`]];const F=[];return r.forEach(j=>{const Y=e[j];Number(Y)>0&&F.push(y[`spacing-${j}-${String(Y)}`])}),F}const nte=ln("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e,{container:F,direction:j,item:Y,spacing:D,wrap:O,zeroMinWidth:t,breakpoints:l}=y;let S=[];F&&(S=rte(D,l,r));const i=[];return l.forEach(C=>{const w=y[C];w&&i.push(r[`grid-${C}-${String(w)}`])}),[r.root,F&&r.container,Y&&r.item,t&&r.zeroMinWidth,...S,j!=="row"&&r[`direction-xs-${String(j)}`],O!=="wrap"&&r[`wrap-xs-${String(O)}`],...i]}})(({ownerState:e})=>Ge({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),qee,ete,tte,Qee);function ate(e,r){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const y=[];return r.forEach(F=>{const j=e[F];if(Number(j)>0){const Y=`spacing-${F}-${String(j)}`;y.push(Y)}}),y}const ite=e=>{const{classes:r,container:y,direction:F,item:j,spacing:Y,wrap:D,zeroMinWidth:O,breakpoints:t}=e;let l=[];y&&(l=ate(Y,t));const S=[];t.forEach(C=>{const w=e[C];w&&S.push(`grid-${C}-${String(w)}`)});const i={root:["root",y&&"container",j&&"item",O&&"zeroMinWidth",...l,F!=="row"&&`direction-xs-${String(F)}`,D!=="wrap"&&`wrap-xs-${String(D)}`,...S]};return qn(i,Yee,r)},ote=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiGrid"}),{breakpoints:j}=ru(),Y=Lb(F),{className:D,columns:O,columnSpacing:t,component:l="div",container:S=!1,direction:i="row",item:C=!1,rowSpacing:w,spacing:v=0,wrap:m="wrap",zeroMinWidth:a=!1}=Y,n=hn(Y,Jee),s=w||v,o=t||v,h=Oe.useContext(hL),f=S?O||12:h,u={},b=Ge({},n);j.keys.forEach(g=>{n[g]!=null&&(u[g]=n[g],delete b[g])});const p=Ge({},Y,{columns:f,container:S,direction:i,item:C,rowSpacing:s,columnSpacing:o,wrap:m,zeroMinWidth:a,spacing:v},u,{breakpoints:j.keys}),E=ite(p);return Ce.jsx(hL.Provider,{value:f,children:Ce.jsx(nte,Ge({ownerState:p,className:Ln(E.root,D),as:l,ref:y},b))})}),ji=ote,ste=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rM(e){return`scale(${e}, ${e**2})`}const lte={entering:{opacity:1,transform:rM(1)},entered:{opacity:1,transform:"none"}},wC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),X9=Oe.forwardRef(function(r,y){const{addEndListener:F,appear:j=!0,children:Y,easing:D,in:O,onEnter:t,onEntered:l,onEntering:S,onExit:i,onExited:C,onExiting:w,style:v,timeout:m="auto",TransitionComponent:a=PT}=r,n=hn(r,ste),s=Sc(),o=Oe.useRef(),h=ru(),f=Oe.useRef(null),u=pi(f,Y.ref,y),b=R=>T=>{if(R){const L=f.current;T===void 0?R(L):R(L,T)}},p=b(S),E=b((R,T)=>{m9(R);const{duration:L,delay:P,easing:d}=Ty({style:v,timeout:m,easing:D},{mode:"enter"});let k;m==="auto"?(k=h.transitions.getAutoHeightDuration(R.clientHeight),o.current=k):k=L,R.style.transition=[h.transitions.create("opacity",{duration:k,delay:P}),h.transitions.create("transform",{duration:wC?k:k*.666,delay:P,easing:d})].join(","),t&&t(R,T)}),g=b(l),c=b(w),x=b(R=>{const{duration:T,delay:L,easing:P}=Ty({style:v,timeout:m,easing:D},{mode:"exit"});let d;m==="auto"?(d=h.transitions.getAutoHeightDuration(R.clientHeight),o.current=d):d=T,R.style.transition=[h.transitions.create("opacity",{duration:d,delay:L}),h.transitions.create("transform",{duration:wC?d:d*.666,delay:wC?L:L||d*.333,easing:P})].join(","),R.style.opacity=0,R.style.transform=rM(.75),i&&i(R)}),A=b(C),M=R=>{m==="auto"&&s.start(o.current||0,R),F&&F(f.current,R)};return Ce.jsx(a,Ge({appear:j,in:O,nodeRef:f,onEnter:E,onEntered:g,onEntering:p,onExit:x,onExited:A,onExiting:c,addEndListener:M,timeout:m==="auto"?null:m},n,{children:(R,T)=>Oe.cloneElement(Y,Ge({style:Ge({opacity:0,transform:rM(.75),visibility:R==="exited"&&!O?"hidden":void 0},lte[R],v,Y.props.style),ref:u},T))}))});X9.muiSupportAuto=!0;const Qx=X9,ute=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],cte=e=>{const{classes:r,disableUnderline:y}=e,j=qn({root:["root",!y&&"underline"],input:["input"]},dJ,r);return Ge({},r,j)},fte=ln(OT,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[...kT(e,r),!y.disableUnderline&&r.underline]}})(({theme:e,ownerState:r})=>{let F=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(F=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ge({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r.color].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"},[`&.${pp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${F}`,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(.${pp.disabled}, .${pp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${F}`}},[`&.${pp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),dte=ln(FT,{name:"MuiInput",slot:"Input",overridesResolver:DT})({}),Z9=Oe.forwardRef(function(r,y){var F,j,Y,D;const O=Ka({props:r,name:"MuiInput"}),{disableUnderline:t,components:l={},componentsProps:S,fullWidth:i=!1,inputComponent:C="input",multiline:w=!1,slotProps:v,slots:m={},type:a="text"}=O,n=hn(O,ute),s=cte(O),h={root:{ownerState:{disableUnderline:t}}},f=v??S?bu(v??S,h):h,u=(F=(j=m.root)!=null?j:l.Root)!=null?F:fte,b=(Y=(D=m.input)!=null?D:l.Input)!=null?Y:dte;return Ce.jsx(Hy,Ge({slots:{root:u,input:b},slotProps:f,fullWidth:i,inputComponent:C,multiline:w,ref:y,type:a},n,{classes:s}))});Z9.muiName="Input";const K9=Z9;function hte(e){return ka("MuiInputAdornment",e)}const vte=Ma("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),vL=vte;var pL;const pte=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gte=(e,r)=>{const{ownerState:y}=e;return[r.root,r[`position${Gn(y.position)}`],y.disablePointerEvents===!0&&r.disablePointerEvents,r[y.variant]]},mte=e=>{const{classes:r,disablePointerEvents:y,hiddenLabel:F,position:j,size:Y,variant:D}=e,O={root:["root",y&&"disablePointerEvents",j&&`position${Gn(j)}`,D,F&&"hiddenLabel",Y&&`size${Gn(Y)}`]};return qn(O,hte,r)},yte=ln("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gte})(({theme:e,ownerState:r})=>Ge({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},r.variant==="filled"&&{[`&.${vL.positionStart}&:not(.${vL.hiddenLabel})`]:{marginTop:16}},r.position==="start"&&{marginRight:8},r.position==="end"&&{marginLeft:8},r.disablePointerEvents===!0&&{pointerEvents:"none"})),xte=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiInputAdornment"}),{children:j,className:Y,component:D="div",disablePointerEvents:O=!1,disableTypography:t=!1,position:l,variant:S}=F,i=hn(F,pte),C=ec()||{};let w=S;S&&C.variant,C&&!w&&(w=C.variant);const v=Ge({},F,{hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:O,position:l,variant:w}),m=mte(v);return Ce.jsx(RT.Provider,{value:null,children:Ce.jsx(yte,Ge({as:D,ownerState:v,className:Ln(m.root,Y),ref:y},i,{children:typeof j=="string"&&!t?Ce.jsx(ea,{color:"text.secondary",children:j}):Ce.jsxs(Oe.Fragment,{children:[l==="start"?pL||(pL=Ce.jsx("span",{className:"notranslate",children:"​"})):null,j]})}))})}),w5=xte;function bte(e){return ka("MuiInputLabel",e)}Ma("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const wte=["disableAnimation","margin","shrink","variant","className"],Tte=e=>{const{classes:r,formControl:y,size:F,shrink:j,disableAnimation:Y,variant:D,required:O}=e,t={root:["root",y&&"formControl",!Y&&"animated",j&&"shrink",F&&F!=="normal"&&`size${Gn(F)}`,D],asterisk:[O&&"asterisk"]},l=qn(t,bte,r);return Ge({},r,l)},Ste=ln(Wee,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[{[`& .${bx.asterisk}`]:r.asterisk},r.root,y.formControl&&r.formControl,y.size==="small"&&r.sizeSmall,y.shrink&&r.shrink,!y.disableAnimation&&r.animated,y.focused&&r.focused,r[y.variant]]}})(({theme:e,ownerState:r})=>Ge({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},r.size==="small"&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},r.variant==="filled"&&Ge({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},r.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&Ge({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},r.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),r.variant==="outlined"&&Ge({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},r.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Cte=Oe.forwardRef(function(r,y){const F=Ka({name:"MuiInputLabel",props:r}),{disableAnimation:j=!1,shrink:Y,className:D}=F,O=hn(F,wte),t=ec();let l=Y;typeof l>"u"&&t&&(l=t.filled||t.focused||t.adornedStart);const S=Zp({props:F,muiFormControl:t,states:["size","variant","required","focused"]}),i=Ge({},F,{disableAnimation:j,formControl:t,shrink:l,size:S.size,variant:S.variant,required:S.required,focused:S.focused}),C=Tte(i);return Ce.jsx(Ste,Ge({"data-shrink":l,ownerState:i,ref:y,className:Ln(C.root,D)},O,{classes:C}))}),Ey=Cte;function Mte(e){return ka("MuiLinearProgress",e)}const Ate=Ma("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),gL=Ate,Ete=["className","color","value","valueBuffer","variant"];let jy=e=>e,mL,yL,xL,bL,wL,TL;const nM=4,Pte=Sd(mL||(mL=jy` + `),RJ)),_J=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiCircularProgress"}),{className:j,color:Y="primary",disableShrink:D=!1,size:O=40,style:t,thickness:l=3.6,value:S=0,variant:i="indeterminate"}=F,C=hn(F,LJ),w=Ge({},F,{color:Y,disableShrink:D,size:O,thickness:l,value:S,variant:i}),v=kJ(w),m={},a={},n={};if(i==="determinate"){const s=2*Math.PI*((np-l)/2);m.strokeDasharray=s.toFixed(3),n["aria-valuenow"]=Math.round(S),m.strokeDashoffset=`${((100-S)/100*s).toFixed(3)}px`,a.transform="rotate(-90deg)"}return Ce.jsx(DJ,Ge({className:Ln(v.root,j),style:Ge({width:O,height:O},a,t),ownerState:w,ref:x,role:"progressbar"},n,C,{children:Ce.jsx(OJ,{className:v.svg,ownerState:w,viewBox:`${np/2} ${np/2} ${np} ${np}`,children:Ce.jsx(FJ,{className:v.circle,style:m,ownerState:w,cx:np,cy:np,r:(np-l)/2,fill:"none",strokeWidth:l})})}))});function q8(e){return e.substring(2).toLowerCase()}function zJ(e,r){return r.documentElement.clientWidth(setTimeout(()=>{t.current=!0},0),()=>{t.current=!1}),[]);const S=vi(r.ref,O),i=pa(v=>{const m=l.current;l.current=!1;const a=oo(O.current);if(!t.current||!O.current||"clientX"in v&&zJ(v,a))return;if(D.current){D.current=!1;return}let n;v.composedPath?n=v.composedPath().indexOf(O.current)>-1:n=!a.documentElement.contains(v.target)||O.current.contains(v.target),!n&&(x||!m)&&j(v)}),C=v=>m=>{l.current=!0;const a=r.props[v];a&&a(m)},w={ref:S};return Y!==!1&&(w[Y]=C(Y)),Oe.useEffect(()=>{if(Y!==!1){const v=q8(Y),m=oo(O.current),a=()=>{D.current=!0};return m.addEventListener(v,i),m.addEventListener("touchmove",a),()=>{m.removeEventListener(v,i),m.removeEventListener("touchmove",a)}}},[i,Y]),F!==!1&&(w[F]=C(F)),Oe.useEffect(()=>{if(F!==!1){const v=q8(F),m=oo(O.current);return m.addEventListener(v,i),()=>{m.removeEventListener(v,i)}}},[i,F]),Ce.jsx(Oe.Fragment,{children:Oe.cloneElement(r,w)})}const Ks=WW({createStyledComponent:ln("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[`maxWidth${Gn(String(x.maxWidth))}`],x.fixed&&r.fixed,x.disableGutters&&r.disableGutters]}}),useThemeProps:e=>Ka({props:e,name:"MuiContainer"})}),BJ=(e,r)=>Ge({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},r&&!e.vars&&{colorScheme:e.palette.mode}),NJ=e=>Ge({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),UJ=(e,r=!1)=>{var x;const F={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([D,O])=>{var t;F[e.getColorSchemeSelector(D).replace(/\s*&/,"")]={colorScheme:(t=O.palette)==null?void 0:t.mode}});let j=Ge({html:BJ(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Ge({margin:0},NJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},F);const Y=(x=e.components)==null||(x=x.MuiCssBaseline)==null?void 0:x.styleOverrides;return Y&&(j=[j,Y]),j};function HJ(e){const r=Ka({props:e,name:"MuiCssBaseline"}),{children:x,enableColorScheme:F=!1}=r;return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(E9,{styles:j=>UJ(j,F)}),x]})}function VJ(e){const r=oo(e);return r.body===e?Cd(e).innerWidth>r.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xx(e,r){r?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eL(e){return parseInt(Cd(e).getComputedStyle(e).paddingRight,10)||0}function jJ(e){const x=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,F=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return x||F}function tL(e,r,x,F,j){const Y=[r,x,...F];[].forEach.call(e.children,D=>{const O=Y.indexOf(D)===-1,t=!jJ(D);O&&t&&xx(D,j)})}function fC(e,r){let x=-1;return e.some((F,j)=>r(F)?(x=j,!0):!1),x}function GJ(e,r){const x=[],F=e.container;if(!r.disableScrollLock){if(VJ(F)){const D=j7(oo(F));x.push({value:F.style.paddingRight,property:"padding-right",el:F}),F.style.paddingRight=`${eL(F)+D}px`;const O=oo(F).querySelectorAll(".mui-fixed");[].forEach.call(O,t=>{x.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${eL(t)+D}px`})}let Y;if(F.parentNode instanceof DocumentFragment)Y=oo(F).body;else{const D=F.parentElement,O=Cd(F);Y=(D==null?void 0:D.nodeName)==="HTML"&&O.getComputedStyle(D).overflowY==="scroll"?D:F}x.push({value:Y.style.overflow,property:"overflow",el:Y},{value:Y.style.overflowX,property:"overflow-x",el:Y},{value:Y.style.overflowY,property:"overflow-y",el:Y}),Y.style.overflow="hidden"}return()=>{x.forEach(({value:Y,el:D,property:O})=>{Y?D.style.setProperty(O,Y):D.style.removeProperty(O)})}}function WJ(e){const r=[];return[].forEach.call(e.children,x=>{x.getAttribute("aria-hidden")==="true"&&r.push(x)}),r}class $J{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(r,x){let F=this.modals.indexOf(r);if(F!==-1)return F;F=this.modals.length,this.modals.push(r),r.modalRef&&xx(r.modalRef,!1);const j=WJ(x);tL(x,r.mount,r.modalRef,j,!0);const Y=fC(this.containers,D=>D.container===x);return Y!==-1?(this.containers[Y].modals.push(r),F):(this.containers.push({modals:[r],container:x,restore:null,hiddenSiblings:j}),F)}mount(r,x){const F=fC(this.containers,Y=>Y.modals.indexOf(r)!==-1),j=this.containers[F];j.restore||(j.restore=GJ(j,x))}remove(r,x=!0){const F=this.modals.indexOf(r);if(F===-1)return F;const j=fC(this.containers,D=>D.modals.indexOf(r)!==-1),Y=this.containers[j];if(Y.modals.splice(Y.modals.indexOf(r),1),this.modals.splice(F,1),Y.modals.length===0)Y.restore&&Y.restore(),r.modalRef&&xx(r.modalRef,x),tL(Y.container,r.mount,r.modalRef,Y.hiddenSiblings,!1),this.containers.splice(j,1);else{const D=Y.modals[Y.modals.length-1];D.modalRef&&xx(D.modalRef,!1)}return F}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const YJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XJ(e){const r=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(r)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:r}function ZJ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const r=F=>e.ownerDocument.querySelector(`input[type="radio"]${F}`);let x=r(`[name="${e.name}"]:checked`);return x||(x=r(`[name="${e.name}"]`)),x!==e}function KJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ZJ(e))}function JJ(e){const r=[],x=[];return Array.from(e.querySelectorAll(YJ)).forEach((F,j)=>{const Y=XJ(F);Y===-1||!KJ(F)||(Y===0?r.push(F):x.push({documentOrder:j,tabIndex:Y,node:F}))}),x.sort((F,j)=>F.tabIndex===j.tabIndex?F.documentOrder-j.documentOrder:F.tabIndex-j.tabIndex).map(F=>F.node).concat(r)}function QJ(){return!0}function o5(e){const{children:r,disableAutoFocus:x=!1,disableEnforceFocus:F=!1,disableRestoreFocus:j=!1,getTabbable:Y=JJ,isEnabled:D=QJ,open:O}=e,t=Oe.useRef(!1),l=Oe.useRef(null),S=Oe.useRef(null),i=Oe.useRef(null),C=Oe.useRef(null),w=Oe.useRef(!1),v=Oe.useRef(null),m=vi(r.ref,v),a=Oe.useRef(null);Oe.useEffect(()=>{!O||!v.current||(w.current=!x)},[x,O]),Oe.useEffect(()=>{if(!O||!v.current)return;const o=oo(v.current);return v.current.contains(o.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),w.current&&v.current.focus()),()=>{j||(i.current&&i.current.focus&&(t.current=!0,i.current.focus()),i.current=null)}},[O]),Oe.useEffect(()=>{if(!O||!v.current)return;const o=oo(v.current),h=b=>{a.current=b,!(F||!D()||b.key!=="Tab")&&o.activeElement===v.current&&b.shiftKey&&(t.current=!0,S.current&&S.current.focus())},f=()=>{const b=v.current;if(b===null)return;if(!o.hasFocus()||!D()||t.current){t.current=!1;return}if(b.contains(o.activeElement)||F&&o.activeElement!==l.current&&o.activeElement!==S.current)return;if(o.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!w.current)return;let p=[];if((o.activeElement===l.current||o.activeElement===S.current)&&(p=Y(v.current)),p.length>0){var E,g;const c=!!((E=a.current)!=null&&E.shiftKey&&((g=a.current)==null?void 0:g.key)==="Tab"),y=p[0],A=p[p.length-1];typeof y!="string"&&typeof A!="string"&&(c?A.focus():y.focus())}else b.focus()};o.addEventListener("focusin",f),o.addEventListener("keydown",h,!0);const u=setInterval(()=>{o.activeElement&&o.activeElement.tagName==="BODY"&&f()},50);return()=>{clearInterval(u),o.removeEventListener("focusin",f),o.removeEventListener("keydown",h,!0)}},[x,F,j,D,O,Y]);const n=o=>{i.current===null&&(i.current=o.relatedTarget),w.current=!0,C.current=o.target;const h=r.props.onFocus;h&&h(o)},s=o=>{i.current===null&&(i.current=o.relatedTarget),w.current=!0};return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("div",{tabIndex:O?0:-1,onFocus:s,ref:l,"data-testid":"sentinelStart"}),Oe.cloneElement(r,{ref:m,onFocus:n}),Ce.jsx("div",{tabIndex:O?0:-1,onFocus:s,ref:S,"data-testid":"sentinelEnd"})]})}function qJ(e){return typeof e=="function"?e():e}function eQ(e){return e?e.props.hasOwnProperty("in"):!1}const tQ=new $J;function rQ(e){const{container:r,disableEscapeKeyDown:x=!1,disableScrollLock:F=!1,manager:j=tQ,closeAfterTransition:Y=!1,onTransitionEnter:D,onTransitionExited:O,children:t,onClose:l,open:S,rootRef:i}=e,C=Oe.useRef({}),w=Oe.useRef(null),v=Oe.useRef(null),m=vi(v,i),[a,n]=Oe.useState(!S),s=eQ(t);let o=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(o=!1);const h=()=>oo(w.current),f=()=>(C.current.modalRef=v.current,C.current.mount=w.current,C.current),u=()=>{j.mount(f(),{disableScrollLock:F}),v.current&&(v.current.scrollTop=0)},b=pa(()=>{const T=qJ(r)||h().body;j.add(f(),T),v.current&&u()}),p=Oe.useCallback(()=>j.isTopModal(f()),[j]),E=pa(T=>{w.current=T,T&&(S&&p()?u():v.current&&xx(v.current,o))}),g=Oe.useCallback(()=>{j.remove(f(),o)},[o,j]);Oe.useEffect(()=>()=>{g()},[g]),Oe.useEffect(()=>{S?b():(!s||!Y)&&g()},[S,g,s,Y,b]);const c=T=>L=>{var P;(P=T.onKeyDown)==null||P.call(T,L),!(L.key!=="Escape"||L.which===229||!p())&&(x||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},y=T=>L=>{var P;(P=T.onClick)==null||P.call(T,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(T={})=>{const L=gx(e);delete L.onTransitionEnter,delete L.onTransitionExited;const P=Ge({},L,T);return Ge({role:"presentation"},P,{onKeyDown:c(P),ref:m})},getBackdropProps:(T={})=>{const L=T;return Ge({"aria-hidden":!0},L,{onClick:y(L),open:S})},getTransitionProps:()=>{const T=()=>{n(!1),D&&D()},L=()=>{n(!0),O&&O(),Y&&g()};return{onEnter:z4(T,t==null?void 0:t.props.onEnter),onExited:z4(L,t==null?void 0:t.props.onExited)}},rootRef:m,portalRef:E,isTopModal:p,exited:a,hasTransition:s}}function nQ(e){return ka("MuiModal",e)}Ca("MuiModal",["root","hidden","backdrop"]);const aQ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],iQ=e=>{const{open:r,exited:x,classes:F}=e;return qn({root:["root",!r&&x&&"hidden"],backdrop:["backdrop"]},nQ,F)},oQ=ln("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,!x.open&&x.exited&&r.hidden]}})(({theme:e,ownerState:r})=>Ge({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})),sQ=ln(I9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,r)=>r.backdrop})({zIndex:-1}),LT=Oe.forwardRef(function(r,x){var F,j,Y,D,O,t;const l=Ka({name:"MuiModal",props:r}),{BackdropComponent:S=sQ,BackdropProps:i,className:C,closeAfterTransition:w=!1,children:v,container:m,component:a,components:n={},componentsProps:s={},disableAutoFocus:o=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:f=!1,disablePortal:u=!1,disableRestoreFocus:b=!1,disableScrollLock:p=!1,hideBackdrop:E=!1,keepMounted:g=!1,onBackdropClick:c,open:y,slotProps:A,slots:M}=l,R=hn(l,aQ),T=Ge({},l,{closeAfterTransition:w,disableAutoFocus:o,disableEnforceFocus:h,disableEscapeKeyDown:f,disablePortal:u,disableRestoreFocus:b,disableScrollLock:p,hideBackdrop:E,keepMounted:g}),{getRootProps:L,getBackdropProps:P,getTransitionProps:d,portalRef:k,isTopModal:I,exited:N,hasTransition:B}=rQ(Ge({},T,{rootRef:x})),G=Ge({},T,{exited:N}),U=iQ(G),H={};if(v.props.tabIndex===void 0&&(H.tabIndex="-1"),B){const{onEnter:ie,onExited:fe}=d();H.onEnter=ie,H.onExited=fe}const W=(F=(j=M==null?void 0:M.root)!=null?j:n.Root)!=null?F:oQ,V=(Y=(D=M==null?void 0:M.backdrop)!=null?D:n.Backdrop)!=null?Y:S,$=(O=A==null?void 0:A.root)!=null?O:s.root,Z=(t=A==null?void 0:A.backdrop)!=null?t:s.backdrop,q=hi({elementType:W,externalSlotProps:$,externalForwardedProps:R,getSlotProps:L,additionalProps:{ref:x,as:a},ownerState:G,className:Ln(C,$==null?void 0:$.className,U==null?void 0:U.root,!G.open&&G.exited&&(U==null?void 0:U.hidden))}),ae=hi({elementType:V,externalSlotProps:Z,additionalProps:i,getSlotProps:ie=>P(Ge({},ie,{onClick:fe=>{c&&c(fe),ie!=null&&ie.onClick&&ie.onClick(fe)}})),className:Ln(Z==null?void 0:Z.className,i==null?void 0:i.className,U==null?void 0:U.backdrop),ownerState:G});return!g&&!y&&(!B||N)?null:Ce.jsx(M9,{ref:k,container:m,disablePortal:u,children:Ce.jsxs(W,Ge({},q,{children:[!E&&S?Ce.jsx(V,Ge({},ae)):null,Ce.jsx(o5,{disableEnforceFocus:h,disableAutoFocus:o,disableRestoreFocus:b,isEnabled:I,open:y,children:Oe.cloneElement(v,H)})]}))})});function lQ(e){return ka("MuiDialog",e)}const bx=Ca("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),uQ=Oe.createContext({}),cQ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],fQ=ln(I9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),dQ=e=>{const{classes:r,scroll:x,maxWidth:F,fullWidth:j,fullScreen:Y}=e,D={root:["root"],container:["container",`scroll${Gn(x)}`],paper:["paper",`paperScroll${Gn(x)}`,`paperWidth${Gn(String(F))}`,j&&"paperFullWidth",Y&&"paperFullScreen"]};return qn(D,lQ,r)},hQ=ln(LT,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),vQ=ln("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.container,r[`scroll${Gn(x.scroll)}`]]}})(({ownerState:e})=>Ge({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),pQ=ln(Ri,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.paper,r[`scrollPaper${Gn(x.scroll)}`],r[`paperWidth${Gn(String(x.maxWidth))}`],x.fullWidth&&r.paperFullWidth,x.fullScreen&&r.paperFullScreen]}})(({theme:e,ownerState:r})=>Ge({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},r.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},r.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},r.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${bx.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&r.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`,[`&.${bx.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${bx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),gQ=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiDialog"}),j=nu(),Y={enter:j.transitions.duration.enteringScreen,exit:j.transitions.duration.leavingScreen},{"aria-describedby":D,"aria-labelledby":O,BackdropComponent:t,BackdropProps:l,children:S,className:i,disableEscapeKeyDown:C=!1,fullScreen:w=!1,fullWidth:v=!1,maxWidth:m="sm",onBackdropClick:a,onClick:n,onClose:s,open:o,PaperComponent:h=Ri,PaperProps:f={},scroll:u="paper",TransitionComponent:b=jy,transitionDuration:p=Y,TransitionProps:E}=F,g=hn(F,cQ),c=Ge({},F,{disableEscapeKeyDown:C,fullScreen:w,fullWidth:v,maxWidth:m,scroll:u}),y=dQ(c),A=Oe.useRef(),M=P=>{A.current=P.target===P.currentTarget},R=P=>{n&&n(P),A.current&&(A.current=null,a&&a(P),s&&s(P,"backdropClick"))},T=Ui(O),L=Oe.useMemo(()=>({titleId:T}),[T]);return Ce.jsx(hQ,Ge({className:Ln(y.root,i),closeAfterTransition:!0,components:{Backdrop:fQ},componentsProps:{backdrop:Ge({transitionDuration:p,as:t},l)},disableEscapeKeyDown:C,onClose:s,open:o,ref:x,onClick:R,ownerState:c},g,{children:Ce.jsx(b,Ge({appear:!0,in:o,timeout:p,role:"presentation"},E,{children:Ce.jsx(vQ,{className:Ln(y.container),onMouseDown:M,ownerState:c,children:Ce.jsx(pQ,Ge({as:h,elevation:24,role:"dialog","aria-describedby":D,"aria-labelledby":T},f,{className:Ln(y.paper,f.className),ownerState:c,children:Ce.jsx(uQ.Provider,{value:L,children:S})}))})}))}))});function mQ(e){return ka("MuiDialogActions",e)}Ca("MuiDialogActions",["root","spacing"]);const yQ=["className","disableSpacing"],xQ=e=>{const{classes:r,disableSpacing:x}=e;return qn({root:["root",!x&&"spacing"]},mQ,r)},bQ=ln("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,!x.disableSpacing&&r.spacing]}})(({ownerState:e})=>Ge({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),wQ=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiDialogActions"}),{className:j,disableSpacing:Y=!1}=F,D=hn(F,yQ),O=Ge({},F,{disableSpacing:Y}),t=xQ(O);return Ce.jsx(bQ,Ge({className:Ln(t.root,j),ownerState:O,ref:x},D))});function TQ(e){return ka("MuiDialogContent",e)}Ca("MuiDialogContent",["root","dividers"]);const SQ=Ca("MuiDialogTitle",["root"]),CQ=["className","dividers"],MQ=e=>{const{classes:r,dividers:x}=e;return qn({root:["root",x&&"dividers"]},TQ,r)},AQ=ln("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.dividers&&r.dividers]}})(({theme:e,ownerState:r})=>Ge({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${SQ.root} + &`]:{paddingTop:0}})),EQ=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiDialogContent"}),{className:j,dividers:Y=!1}=F,D=hn(F,CQ),O=Ge({},F,{dividers:Y}),t=MQ(O);return Ce.jsx(AQ,Ge({className:Ln(t.root,j),ownerState:O,ref:x},D))});function PQ(e){return ka("MuiDivider",e)}const rL=Ca("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),LQ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],IQ=e=>{const{absolute:r,children:x,classes:F,flexItem:j,light:Y,orientation:D,textAlign:O,variant:t}=e;return qn({root:["root",r&&"absolute",t,Y&&"light",D==="vertical"&&"vertical",j&&"flexItem",x&&"withChildren",x&&D==="vertical"&&"withChildrenVertical",O==="right"&&D!=="vertical"&&"textAlignRight",O==="left"&&D!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",D==="vertical"&&"wrapperVertical"]},PQ,F)},RQ=ln("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.absolute&&r.absolute,r[x.variant],x.light&&r.light,x.orientation==="vertical"&&r.vertical,x.flexItem&&r.flexItem,x.children&&r.withChildren,x.children&&x.orientation==="vertical"&&r.withChildrenVertical,x.textAlign==="right"&&x.orientation!=="vertical"&&r.textAlignRight,x.textAlign==="left"&&x.orientation!=="vertical"&&r.textAlignLeft]}})(({theme:e,ownerState:r})=>Ge({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:wi(e.palette.divider,.08)},r.variant==="inset"&&{marginLeft:72},r.variant==="middle"&&r.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},r.variant==="middle"&&r.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},r.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ge({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:r})=>Ge({},r.children&&r.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:r})=>Ge({},r.children&&r.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ge({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),kQ=ln("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.wrapper,x.orientation==="vertical"&&r.wrapperVertical]}})(({theme:e,ownerState:r})=>Ge({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},r.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),F9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiDivider"}),{absolute:j=!1,children:Y,className:D,component:O=Y?"div":"hr",flexItem:t=!1,light:l=!1,orientation:S="horizontal",role:i=O!=="hr"?"separator":void 0,textAlign:C="center",variant:w="fullWidth"}=F,v=hn(F,LQ),m=Ge({},F,{absolute:j,component:O,flexItem:t,light:l,orientation:S,role:i,textAlign:C,variant:w}),a=IQ(m);return Ce.jsx(RQ,Ge({as:O,className:Ln(a.root,D),role:i,ref:x,ownerState:m},v,{children:Y?Ce.jsx(kQ,{className:a.wrapper,ownerState:m,children:Y}):null}))});F9.muiSkipListHighlight=!0;const DQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],OQ=e=>{const{classes:r,disableUnderline:x}=e,j=qn({root:["root",!x&&"underline"],input:["input"]},hK,r);return Ge({},r,j)},FQ=ln(AT,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[...CT(e,r),!x.disableUnderline&&r.underline]}})(({theme:e,ownerState:r})=>{var x;const F=e.palette.mode==="light",j=F?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",Y=F?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",D=F?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",O=F?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ge({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:Y,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:D,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:Y}},[`&.${xc.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:Y},[`&.${xc.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:O}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(x=(e.vars||e).palette[r.color||"primary"])==null?void 0:x.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"},[`&.${xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:j}`,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(.${xc.disabled}, .${xc.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xc.disabled}:before`]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&Ge({padding:"25px 12px 8px"},r.size==="small"&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&r.size==="small"&&{paddingTop:8,paddingBottom:9}))}),_Q=ln(ET,{name:"MuiFilledInput",slot:"Input",overridesResolver:MT})(({theme:e,ownerState:r})=>Ge({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},r.size==="small"&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&r.size==="small"&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),s5=Oe.forwardRef(function(r,x){var F,j,Y,D;const O=Ka({props:r,name:"MuiFilledInput"}),{components:t={},componentsProps:l,fullWidth:S=!1,inputComponent:i="input",multiline:C=!1,slotProps:w,slots:v={},type:m="text"}=O,a=hn(O,DQ),n=Ge({},O,{fullWidth:S,inputComponent:i,multiline:C,type:m}),s=OQ(O),o={root:{ownerState:n},input:{ownerState:n}},h=w??l?wu(o,w??l):o,f=(F=(j=v.root)!=null?j:t.Root)!=null?F:FQ,u=(Y=(D=v.input)!=null?D:t.Input)!=null?Y:_Q;return Ce.jsx(Vy,Ge({slots:{root:f,input:u},componentsProps:h,fullWidth:S,inputComponent:i,multiline:C,ref:x,type:m},a,{classes:s}))});s5.muiName="Input";function zQ(e){return ka("MuiFormControl",e)}Ca("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const BQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],NQ=e=>{const{classes:r,margin:x,fullWidth:F}=e,j={root:["root",x!=="none"&&`margin${Gn(x)}`,F&&"fullWidth"]};return qn(j,zQ,r)},UQ=ln("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},r)=>Ge({},r.root,r[`margin${Gn(e.margin)}`],e.fullWidth&&r.fullWidth)})(({ownerState:e})=>Ge({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),oh=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiFormControl"}),{children:j,className:Y,color:D="primary",component:O="div",disabled:t=!1,error:l=!1,focused:S,fullWidth:i=!1,hiddenLabel:C=!1,margin:w="none",required:v=!1,size:m="medium",variant:a="outlined"}=F,n=hn(F,BQ),s=Ge({},F,{color:D,component:O,disabled:t,error:l,fullWidth:i,hiddenLabel:C,margin:w,required:v,size:m,variant:a}),o=NQ(s),[h,f]=Oe.useState(()=>{let A=!1;return j&&Oe.Children.forEach(j,M=>{if(!px(M,["Input","Select"]))return;const R=px(M,["Select"])?M.props.input:M;R&&oK(R.props)&&(A=!0)}),A}),[u,b]=Oe.useState(()=>{let A=!1;return j&&Oe.Children.forEach(j,M=>{px(M,["Input","Select"])&&(n2(M.props,!0)||n2(M.props.inputProps,!0))&&(A=!0)}),A}),[p,E]=Oe.useState(!1);t&&p&&E(!1);const g=S!==void 0&&!t?S:p;let c;const y=Oe.useMemo(()=>({adornedStart:h,setAdornedStart:f,color:D,disabled:t,error:l,filled:u,focused:g,fullWidth:i,hiddenLabel:C,size:m,onBlur:()=>{E(!1)},onEmpty:()=>{b(!1)},onFilled:()=>{b(!0)},onFocus:()=>{E(!0)},registerEffect:c,required:v,variant:a}),[h,D,t,l,u,g,i,C,c,v,m,a]);return Ce.jsx(ST.Provider,{value:y,children:Ce.jsx(UQ,Ge({as:O,ownerState:s,className:Ln(o.root,Y),ref:x},n,{children:j}))})}),La=qW({createStyledComponent:ln("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,r)=>r.root}),useThemeProps:e=>Ka({props:e,name:"MuiStack"})});function HQ(e){return ka("MuiFormControlLabel",e)}const q1=Ca("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),VQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],jQ=e=>{const{classes:r,disabled:x,labelPlacement:F,error:j,required:Y}=e,D={root:["root",x&&"disabled",`labelPlacement${Gn(F)}`,j&&"error",Y&&"required"],label:["label",x&&"disabled"],asterisk:["asterisk",j&&"error"]};return qn(D,HQ,r)},GQ=ln("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[{[`& .${q1.label}`]:r.label},r.root,r[`labelPlacement${Gn(x.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>Ge({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${q1.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${q1.label}`]:{[`&.${q1.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),WQ=ln("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${q1.error}`]:{color:(e.vars||e).palette.error.main}})),$4=Oe.forwardRef(function(r,x){var F,j;const Y=Ka({props:r,name:"MuiFormControlLabel"}),{className:D,componentsProps:O={},control:t,disabled:l,disableTypography:S,label:i,labelPlacement:C="end",required:w,slotProps:v={}}=Y,m=hn(Y,VQ),a=tc(),n=(F=l??t.props.disabled)!=null?F:a==null?void 0:a.disabled,s=w??t.props.required,o={disabled:n,required:s};["checked","name","onChange","value","inputRef"].forEach(E=>{typeof t.props[E]>"u"&&typeof Y[E]<"u"&&(o[E]=Y[E])});const h=Zp({props:Y,muiFormControl:a,states:["error"]}),f=Ge({},Y,{disabled:n,labelPlacement:C,required:s,error:h.error}),u=jQ(f),b=(j=v.typography)!=null?j:O.typography;let p=i;return p!=null&&p.type!==ea&&!S&&(p=Ce.jsx(ea,Ge({component:"span"},b,{className:Ln(u.label,b==null?void 0:b.className),children:p}))),Ce.jsxs(GQ,Ge({className:Ln(u.root,D),ownerState:f,ref:x},m,{children:[Oe.cloneElement(t,o),s?Ce.jsxs(La,{display:"block",children:[p,Ce.jsxs(WQ,{ownerState:f,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}):p]}))});function $Q(e){return ka("MuiFormGroup",e)}Ca("MuiFormGroup",["root","row","error"]);const YQ=["className","row"],XQ=e=>{const{classes:r,row:x,error:F}=e;return qn({root:["root",x&&"row",F&&"error"]},$Q,r)},ZQ=ln("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.row&&r.row]}})(({ownerState:e})=>Ge({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),KQ=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiFormGroup"}),{className:j,row:Y=!1}=F,D=hn(F,YQ),O=tc(),t=Zp({props:F,muiFormControl:O,states:["error"]}),l=Ge({},F,{row:Y,error:t.error}),S=XQ(l);return Ce.jsx(ZQ,Ge({className:Ln(S.root,j),ownerState:l,ref:x},D))});function JQ(e){return ka("MuiFormHelperText",e)}const nL=Ca("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var aL;const QQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],qQ=e=>{const{classes:r,contained:x,size:F,disabled:j,error:Y,filled:D,focused:O,required:t}=e,l={root:["root",j&&"disabled",Y&&"error",F&&`size${Gn(F)}`,x&&"contained",O&&"focused",D&&"filled",t&&"required"]};return qn(l,JQ,r)},eq=ln("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.size&&r[`size${Gn(x.size)}`],x.contained&&r.contained,x.filled&&r.filled]}})(({theme:e,ownerState:r})=>Ge({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nL.error}`]:{color:(e.vars||e).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),l5=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiFormHelperText"}),{children:j,className:Y,component:D="p"}=F,O=hn(F,QQ),t=tc(),l=Zp({props:F,muiFormControl:t,states:["variant","size","disabled","error","filled","focused","required"]}),S=Ge({},F,{component:D,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),i=qQ(S);return Ce.jsx(eq,Ge({as:D,ownerState:S,className:Ln(i.root,Y),ref:x},O,{children:j===" "?aL||(aL=Ce.jsx("span",{className:"notranslate",children:"​"})):j}))});function tq(e){return ka("MuiFormLabel",e)}const wx=Ca("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rq=["children","className","color","component","disabled","error","filled","focused","required"],nq=e=>{const{classes:r,color:x,focused:F,disabled:j,error:Y,filled:D,required:O}=e,t={root:["root",`color${Gn(x)}`,j&&"disabled",Y&&"error",D&&"filled",F&&"focused",O&&"required"],asterisk:["asterisk",Y&&"error"]};return qn(t,tq,r)},aq=ln("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},r)=>Ge({},r.root,e.color==="secondary"&&r.colorSecondary,e.filled&&r.filled)})(({theme:e,ownerState:r})=>Ge({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${wx.focused}`]:{color:(e.vars||e).palette[r.color].main},[`&.${wx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wx.error}`]:{color:(e.vars||e).palette.error.main}})),iq=ln("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${wx.error}`]:{color:(e.vars||e).palette.error.main}})),oq=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiFormLabel"}),{children:j,className:Y,component:D="label"}=F,O=hn(F,rq),t=tc(),l=Zp({props:F,muiFormControl:t,states:["color","required","focused","disabled","error","filled"]}),S=Ge({},F,{color:l.color||"primary",component:D,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),i=nq(S);return Ce.jsxs(aq,Ge({as:D,ownerState:S,className:Ln(i.root,Y),ref:x},O,{children:[j,l.required&&Ce.jsxs(iq,{ownerState:S,"aria-hidden":!0,className:i.asterisk,children:[" ","*"]})]}))}),iL=Oe.createContext();function sq(e){return ka("MuiGrid",e)}const lq=[0,1,2,3,4,5,6,7,8,9,10],uq=["column-reverse","column","row-reverse","row"],cq=["nowrap","wrap-reverse","wrap"],P1=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qx=Ca("MuiGrid",["root","container","item","zeroMinWidth",...lq.map(e=>`spacing-xs-${e}`),...uq.map(e=>`direction-xs-${e}`),...cq.map(e=>`wrap-xs-${e}`),...P1.map(e=>`grid-xs-${e}`),...P1.map(e=>`grid-sm-${e}`),...P1.map(e=>`grid-md-${e}`),...P1.map(e=>`grid-lg-${e}`),...P1.map(e=>`grid-xl-${e}`)]),fq=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Wm(e){const r=parseFloat(e);return`${r}${String(e).replace(String(r),"")||"px"}`}function dq({theme:e,ownerState:r}){let x;return e.breakpoints.keys.reduce((F,j)=>{let Y={};if(r[j]&&(x=r[j]),!x)return F;if(x===!0)Y={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(x==="auto")Y={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const D=eg({values:r.columns,breakpoints:e.breakpoints.values}),O=typeof D=="object"?D[j]:D;if(O==null)return F;const t=`${Math.round(x/O*1e8)/1e6}%`;let l={};if(r.container&&r.item&&r.columnSpacing!==0){const S=e.spacing(r.columnSpacing);if(S!=="0px"){const i=`calc(${t} + ${Wm(S)})`;l={flexBasis:i,maxWidth:i}}}Y=Ge({flexBasis:t,flexGrow:0,maxWidth:t},l)}return e.breakpoints.values[j]===0?Object.assign(F,Y):F[e.breakpoints.up(j)]=Y,F},{})}function hq({theme:e,ownerState:r}){const x=eg({values:r.direction,breakpoints:e.breakpoints.values});return Qu({theme:e},x,F=>{const j={flexDirection:F};return F.indexOf("column")===0&&(j[`& > .${Qx.item}`]={maxWidth:"none"}),j})}function _9({breakpoints:e,values:r}){let x="";Object.keys(r).forEach(j=>{x===""&&r[j]!==0&&(x=j)});const F=Object.keys(e).sort((j,Y)=>e[j]-e[Y]);return F.slice(0,F.indexOf(x))}function vq({theme:e,ownerState:r}){const{container:x,rowSpacing:F}=r;let j={};if(x&&F!==0){const Y=eg({values:F,breakpoints:e.breakpoints.values});let D;typeof Y=="object"&&(D=_9({breakpoints:e.breakpoints.values,values:Y})),j=Qu({theme:e},Y,(O,t)=>{var l;const S=e.spacing(O);return S!=="0px"?{marginTop:`-${Wm(S)}`,[`& > .${Qx.item}`]:{paddingTop:Wm(S)}}:(l=D)!=null&&l.includes(t)?{}:{marginTop:0,[`& > .${Qx.item}`]:{paddingTop:0}}})}return j}function pq({theme:e,ownerState:r}){const{container:x,columnSpacing:F}=r;let j={};if(x&&F!==0){const Y=eg({values:F,breakpoints:e.breakpoints.values});let D;typeof Y=="object"&&(D=_9({breakpoints:e.breakpoints.values,values:Y})),j=Qu({theme:e},Y,(O,t)=>{var l;const S=e.spacing(O);return S!=="0px"?{width:`calc(100% + ${Wm(S)})`,marginLeft:`-${Wm(S)}`,[`& > .${Qx.item}`]:{paddingLeft:Wm(S)}}:(l=D)!=null&&l.includes(t)?{}:{width:"100%",marginLeft:0,[`& > .${Qx.item}`]:{paddingLeft:0}}})}return j}function gq(e,r,x={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[x[`spacing-xs-${String(e)}`]];const F=[];return r.forEach(j=>{const Y=e[j];Number(Y)>0&&F.push(x[`spacing-${j}-${String(Y)}`])}),F}const mq=ln("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e,{container:F,direction:j,item:Y,spacing:D,wrap:O,zeroMinWidth:t,breakpoints:l}=x;let S=[];F&&(S=gq(D,l,r));const i=[];return l.forEach(C=>{const w=x[C];w&&i.push(r[`grid-${C}-${String(w)}`])}),[r.root,F&&r.container,Y&&r.item,t&&r.zeroMinWidth,...S,j!=="row"&&r[`direction-xs-${String(j)}`],O!=="wrap"&&r[`wrap-xs-${String(O)}`],...i]}})(({ownerState:e})=>Ge({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),hq,vq,pq,dq);function yq(e,r){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const x=[];return r.forEach(F=>{const j=e[F];if(Number(j)>0){const Y=`spacing-${F}-${String(j)}`;x.push(Y)}}),x}const xq=e=>{const{classes:r,container:x,direction:F,item:j,spacing:Y,wrap:D,zeroMinWidth:O,breakpoints:t}=e;let l=[];x&&(l=yq(Y,t));const S=[];t.forEach(C=>{const w=e[C];w&&S.push(`grid-${C}-${String(w)}`)});const i={root:["root",x&&"container",j&&"item",O&&"zeroMinWidth",...l,F!=="row"&&`direction-xs-${String(F)}`,D!=="wrap"&&`wrap-xs-${String(D)}`,...S]};return qn(i,sq,r)},ji=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiGrid"}),{breakpoints:j}=nu(),Y=wb(F),{className:D,columns:O,columnSpacing:t,component:l="div",container:S=!1,direction:i="row",item:C=!1,rowSpacing:w,spacing:v=0,wrap:m="wrap",zeroMinWidth:a=!1}=Y,n=hn(Y,fq),s=w||v,o=t||v,h=Oe.useContext(iL),f=S?O||12:h,u={},b=Ge({},n);j.keys.forEach(g=>{n[g]!=null&&(u[g]=n[g],delete b[g])});const p=Ge({},Y,{columns:f,container:S,direction:i,item:C,rowSpacing:s,columnSpacing:o,wrap:m,zeroMinWidth:a,spacing:v},u,{breakpoints:j.keys}),E=xq(p);return Ce.jsx(iL.Provider,{value:f,children:Ce.jsx(mq,Ge({ownerState:p,className:Ln(E.root,D),as:l,ref:x},b))})}),bq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Y4(e){return`scale(${e}, ${e**2})`}const wq={entering:{opacity:1,transform:Y4(1)},entered:{opacity:1,transform:"none"}},dC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ey=Oe.forwardRef(function(r,x){const{addEndListener:F,appear:j=!0,children:Y,easing:D,in:O,onEnter:t,onEntered:l,onEntering:S,onExit:i,onExited:C,onExiting:w,style:v,timeout:m="auto",TransitionComponent:a=Df}=r,n=hn(r,bq),s=Cc(),o=Oe.useRef(),h=nu(),f=Oe.useRef(null),u=vi(f,Y.ref,x),b=R=>T=>{if(R){const L=f.current;T===void 0?R(L):R(L,T)}},p=b(S),E=b((R,T)=>{l9(R);const{duration:L,delay:P,easing:d}=Ty({style:v,timeout:m,easing:D},{mode:"enter"});let k;m==="auto"?(k=h.transitions.getAutoHeightDuration(R.clientHeight),o.current=k):k=L,R.style.transition=[h.transitions.create("opacity",{duration:k,delay:P}),h.transitions.create("transform",{duration:dC?k:k*.666,delay:P,easing:d})].join(","),t&&t(R,T)}),g=b(l),c=b(w),y=b(R=>{const{duration:T,delay:L,easing:P}=Ty({style:v,timeout:m,easing:D},{mode:"exit"});let d;m==="auto"?(d=h.transitions.getAutoHeightDuration(R.clientHeight),o.current=d):d=T,R.style.transition=[h.transitions.create("opacity",{duration:d,delay:L}),h.transitions.create("transform",{duration:dC?d:d*.666,delay:dC?L:L||d*.333,easing:P})].join(","),R.style.opacity=0,R.style.transform=Y4(.75),i&&i(R)}),A=b(C),M=R=>{m==="auto"&&s.start(o.current||0,R),F&&F(f.current,R)};return Ce.jsx(a,Ge({appear:j,in:O,nodeRef:f,onEnter:E,onEntered:g,onEntering:p,onExit:y,onExited:A,onExiting:c,addEndListener:M,timeout:m==="auto"?null:m},n,{children:(R,T)=>Oe.cloneElement(Y,Ge({style:Ge({opacity:0,transform:Y4(.75),visibility:R==="exited"&&!O?"hidden":void 0},wq[R],v,Y.props.style),ref:u},T))}))});Ey.muiSupportAuto=!0;const Tq=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Sq=e=>{const{classes:r,disableUnderline:x}=e,j=qn({root:["root",!x&&"underline"],input:["input"]},fK,r);return Ge({},r,j)},Cq=ln(AT,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[...CT(e,r),!x.disableUnderline&&r.underline]}})(({theme:e,ownerState:r})=>{let F=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(F=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ge({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r.color].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"},[`&.${pp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${F}`,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(.${pp.disabled}, .${pp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${F}`}},[`&.${pp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Mq=ln(ET,{name:"MuiInput",slot:"Input",overridesResolver:MT})({}),u5=Oe.forwardRef(function(r,x){var F,j,Y,D;const O=Ka({props:r,name:"MuiInput"}),{disableUnderline:t,components:l={},componentsProps:S,fullWidth:i=!1,inputComponent:C="input",multiline:w=!1,slotProps:v,slots:m={},type:a="text"}=O,n=hn(O,Tq),s=Sq(O),h={root:{ownerState:{disableUnderline:t}}},f=v??S?wu(v??S,h):h,u=(F=(j=m.root)!=null?j:l.Root)!=null?F:Cq,b=(Y=(D=m.input)!=null?D:l.Input)!=null?Y:Mq;return Ce.jsx(Vy,Ge({slots:{root:u,input:b},slotProps:f,fullWidth:i,inputComponent:C,multiline:w,ref:x,type:a},n,{classes:s}))});u5.muiName="Input";function Aq(e){return ka("MuiInputAdornment",e)}const oL=Ca("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var sL;const Eq=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Pq=(e,r)=>{const{ownerState:x}=e;return[r.root,r[`position${Gn(x.position)}`],x.disablePointerEvents===!0&&r.disablePointerEvents,r[x.variant]]},Lq=e=>{const{classes:r,disablePointerEvents:x,hiddenLabel:F,position:j,size:Y,variant:D}=e,O={root:["root",x&&"disablePointerEvents",j&&`position${Gn(j)}`,D,F&&"hiddenLabel",Y&&`size${Gn(Y)}`]};return qn(O,Aq,r)},Iq=ln("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Pq})(({theme:e,ownerState:r})=>Ge({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},r.variant==="filled"&&{[`&.${oL.positionStart}&:not(.${oL.hiddenLabel})`]:{marginTop:16}},r.position==="start"&&{marginRight:8},r.position==="end"&&{marginLeft:8},r.disablePointerEvents===!0&&{pointerEvents:"none"})),c5=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiInputAdornment"}),{children:j,className:Y,component:D="div",disablePointerEvents:O=!1,disableTypography:t=!1,position:l,variant:S}=F,i=hn(F,Eq),C=tc()||{};let w=S;S&&C.variant,C&&!w&&(w=C.variant);const v=Ge({},F,{hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:O,position:l,variant:w}),m=Lq(v);return Ce.jsx(ST.Provider,{value:null,children:Ce.jsx(Iq,Ge({as:D,ownerState:v,className:Ln(m.root,Y),ref:x},i,{children:typeof j=="string"&&!t?Ce.jsx(ea,{color:"text.secondary",children:j}):Ce.jsxs(Oe.Fragment,{children:[l==="start"?sL||(sL=Ce.jsx("span",{className:"notranslate",children:"​"})):null,j]})}))})});function Rq(e){return ka("MuiInputLabel",e)}Ca("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kq=["disableAnimation","margin","shrink","variant","className"],Dq=e=>{const{classes:r,formControl:x,size:F,shrink:j,disableAnimation:Y,variant:D,required:O}=e,t={root:["root",x&&"formControl",!Y&&"animated",j&&"shrink",F&&F!=="normal"&&`size${Gn(F)}`,D],asterisk:[O&&"asterisk"]},l=qn(t,Rq,r);return Ge({},r,l)},Oq=ln(oq,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[{[`& .${wx.asterisk}`]:r.asterisk},r.root,x.formControl&&r.formControl,x.size==="small"&&r.sizeSmall,x.shrink&&r.shrink,!x.disableAnimation&&r.animated,x.focused&&r.focused,r[x.variant]]}})(({theme:e,ownerState:r})=>Ge({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},r.size==="small"&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},r.variant==="filled"&&Ge({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},r.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&Ge({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},r.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),r.variant==="outlined"&&Ge({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},r.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Py=Oe.forwardRef(function(r,x){const F=Ka({name:"MuiInputLabel",props:r}),{disableAnimation:j=!1,shrink:Y,className:D}=F,O=hn(F,kq),t=tc();let l=Y;typeof l>"u"&&t&&(l=t.filled||t.focused||t.adornedStart);const S=Zp({props:F,muiFormControl:t,states:["size","variant","required","focused"]}),i=Ge({},F,{disableAnimation:j,formControl:t,shrink:l,size:S.size,variant:S.variant,required:S.required,focused:S.focused}),C=Dq(i);return Ce.jsx(Oq,Ge({"data-shrink":l,ownerState:i,ref:x,className:Ln(C.root,D)},O,{classes:C}))});function Fq(e){return ka("MuiLinearProgress",e)}const lL=Ca("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),_q=["className","color","value","valueBuffer","variant"];let Gy=e=>e,uL,cL,fL,dL,hL,vL;const X4=4,zq=Ad(uL||(uL=Gy` 0% { left: -35%; right: 100%; @@ -168,7 +168,7 @@ Error generating stack: `+Y.message+` left: 100%; right: -90%; } -`)),Lte=Sd(yL||(yL=jy` +`)),Bq=Ad(cL||(cL=Gy` 0% { left: -200%; right: 100%; @@ -183,7 +183,7 @@ Error generating stack: `+Y.message+` left: 107%; right: -8%; } -`)),Ite=Sd(xL||(xL=jy` +`)),Nq=Ad(fL||(fL=Gy` 0% { opacity: 1; background-position: 0 -23px; @@ -198,15 +198,15 @@ Error generating stack: `+Y.message+` opacity: 1; background-position: -200px -23px; } -`)),Rte=e=>{const{classes:r,variant:y,color:F}=e,j={root:["root",`color${Gn(F)}`,y],dashed:["dashed",`dashedColor${Gn(F)}`],bar1:["bar",`barColor${Gn(F)}`,(y==="indeterminate"||y==="query")&&"bar1Indeterminate",y==="determinate"&&"bar1Determinate",y==="buffer"&&"bar1Buffer"],bar2:["bar",y!=="buffer"&&`barColor${Gn(F)}`,y==="buffer"&&`color${Gn(F)}`,(y==="indeterminate"||y==="query")&&"bar2Indeterminate",y==="buffer"&&"bar2Buffer"]};return qn(j,Mte,r)},T5=(e,r)=>r==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${r}Bg`]:e.palette.mode==="light"?fg(e.palette[r].main,.62):cg(e.palette[r].main,.5),kte=ln("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[`color${Gn(y.color)}`],r[y.variant]]}})(({ownerState:e,theme:r})=>Ge({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:T5(r,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Dte=ln("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.dashed,r[`dashedColor${Gn(y.color)}`]]}})(({ownerState:e,theme:r})=>{const y=T5(r,e.color);return Ge({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${y} 0%, ${y} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},ov(bL||(bL=jy` +`)),Uq=e=>{const{classes:r,variant:x,color:F}=e,j={root:["root",`color${Gn(F)}`,x],dashed:["dashed",`dashedColor${Gn(F)}`],bar1:["bar",`barColor${Gn(F)}`,(x==="indeterminate"||x==="query")&&"bar1Indeterminate",x==="determinate"&&"bar1Determinate",x==="buffer"&&"bar1Buffer"],bar2:["bar",x!=="buffer"&&`barColor${Gn(F)}`,x==="buffer"&&`color${Gn(F)}`,(x==="indeterminate"||x==="query")&&"bar2Indeterminate",x==="buffer"&&"bar2Buffer"]};return qn(j,Fq,r)},f5=(e,r)=>r==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${r}Bg`]:e.palette.mode==="light"?fg(e.palette[r].main,.62):cg(e.palette[r].main,.5),Hq=ln("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[`color${Gn(x.color)}`],r[x.variant]]}})(({ownerState:e,theme:r})=>Ge({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:f5(r,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Vq=ln("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.dashed,r[`dashedColor${Gn(x.color)}`]]}})(({ownerState:e,theme:r})=>{const x=f5(r,e.color);return Ge({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${x} 0%, ${x} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},lv(dL||(dL=Gy` animation: ${0} 3s infinite linear; - `),Ite)),Ote=ln("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.bar,r[`barColor${Gn(y.color)}`],(y.variant==="indeterminate"||y.variant==="query")&&r.bar1Indeterminate,y.variant==="determinate"&&r.bar1Determinate,y.variant==="buffer"&&r.bar1Buffer]}})(({ownerState:e,theme:r})=>Ge({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(r.vars||r).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${nM}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${nM}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ov(wL||(wL=jy` + `),Nq)),jq=ln("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.bar,r[`barColor${Gn(x.color)}`],(x.variant==="indeterminate"||x.variant==="query")&&r.bar1Indeterminate,x.variant==="determinate"&&r.bar1Determinate,x.variant==="buffer"&&r.bar1Buffer]}})(({ownerState:e,theme:r})=>Ge({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(r.vars||r).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${X4}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${X4}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&lv(hL||(hL=Gy` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Pte)),Fte=ln("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.bar,r[`barColor${Gn(y.color)}`],(y.variant==="indeterminate"||y.variant==="query")&&r.bar2Indeterminate,y.variant==="buffer"&&r.bar2Buffer]}})(({ownerState:e,theme:r})=>Ge({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(r.vars||r).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:T5(r,e.color),transition:`transform .${nM}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ov(TL||(TL=jy` + `),zq)),Gq=ln("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.bar,r[`barColor${Gn(x.color)}`],(x.variant==="indeterminate"||x.variant==="query")&&r.bar2Indeterminate,x.variant==="buffer"&&r.bar2Buffer]}})(({ownerState:e,theme:r})=>Ge({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(r.vars||r).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:f5(r,e.color),transition:`transform .${X4}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&lv(vL||(vL=Gy` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Lte)),_te=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiLinearProgress"}),{className:j,color:Y="primary",value:D,valueBuffer:O,variant:t="indeterminate"}=F,l=hn(F,Ete),S=Ge({},F,{color:Y,variant:t}),i=Rte(S),C=Fl(),w={},v={bar1:{},bar2:{}};if((t==="determinate"||t==="buffer")&&D!==void 0){w["aria-valuenow"]=Math.round(D),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let m=D-100;C&&(m=-m),v.bar1.transform=`translateX(${m}%)`}if(t==="buffer"&&O!==void 0){let m=(O||0)-100;C&&(m=-m),v.bar2.transform=`translateX(${m}%)`}return Ce.jsxs(kte,Ge({className:Ln(i.root,j),ownerState:S,role:"progressbar"},w,{ref:y},l,{children:[t==="buffer"?Ce.jsx(Dte,{className:i.dashed,ownerState:S}):null,Ce.jsx(Ote,{className:i.bar1,ownerState:S,style:v.bar1}),t==="determinate"?null:Ce.jsx(Fte,{className:i.bar2,ownerState:S,style:v.bar2})]}))}),Fb=_te;function zte(e){return ka("MuiLink",e)}const Bte=Ma("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Nte=Bte,J9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ute=e=>J9[e]||e,Hte=({theme:e,ownerState:r})=>{const y=Ute(r.color),F=by(e,`palette.${y}`,!1)||r.color,j=by(e,`palette.${y}Channel`);return"vars"in e&&j?`rgba(${j} / 0.4)`:Ti(F,.4)},Vte=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],jte=e=>{const{classes:r,component:y,focusVisible:F,underline:j}=e,Y={root:["root",`underline${Gn(j)}`,y==="button"&&"button",F&&"focusVisible"]};return qn(Y,zte,r)},Gte=ln(ea,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[`underline${Gn(y.underline)}`],y.component==="button"&&r.button]}})(({theme:e,ownerState:r})=>Ge({},r.underline==="none"&&{textDecoration:"none"},r.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},r.underline==="always"&&Ge({textDecoration:"underline"},r.color!=="inherit"&&{textDecorationColor:Hte({theme:e,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),r.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Nte.focusVisible}`]:{outline:"auto"}})),Wte=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiLink"}),{className:j,color:Y="primary",component:D="a",onBlur:O,onFocus:t,TypographyClasses:l,underline:S="always",variant:i="inherit",sx:C}=F,w=hn(F,Vte),{isFocusVisibleRef:v,onBlur:m,onFocus:a,ref:n}=Rb(),[s,o]=Oe.useState(!1),h=pi(y,n),f=E=>{m(E),v.current===!1&&o(!1),O&&O(E)},u=E=>{a(E),v.current===!0&&o(!0),t&&t(E)},b=Ge({},F,{color:Y,component:D,focusVisible:s,underline:S,variant:i}),p=jte(b);return Ce.jsx(Gte,Ge({color:Y,className:Ln(p.root,j),classes:l,component:D,onBlur:f,onFocus:u,ref:h,ownerState:b,variant:i,sx:[...Object.keys(J9).includes(Y)?[]:[{color:Y}],...Array.isArray(C)?C:[C]]},w))}),Ii=Wte,$te=Oe.createContext({}),Jh=$te;function Yte(e){return ka("MuiList",e)}Ma("MuiList",["root","padding","dense","subheader"]);const Xte=["children","className","component","dense","disablePadding","subheader"],Zte=e=>{const{classes:r,disablePadding:y,dense:F,subheader:j}=e;return qn({root:["root",!y&&"padding",F&&"dense",j&&"subheader"]},Yte,r)},Kte=ln("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,!y.disablePadding&&r.padding,y.dense&&r.dense,y.subheader&&r.subheader]}})(({ownerState:e})=>Ge({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Jte=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiList"}),{children:j,className:Y,component:D="ul",dense:O=!1,disablePadding:t=!1,subheader:l}=F,S=hn(F,Xte),i=Oe.useMemo(()=>({dense:O}),[O]),C=Ge({},F,{component:D,dense:O,disablePadding:t}),w=Zte(C);return Ce.jsx(Jh.Provider,{value:i,children:Ce.jsxs(Kte,Ge({as:D,className:Ln(w.root,Y),ref:y,ownerState:C},S,{children:[l,j]}))})}),S5=Jte;function Qte(e){return ka("MuiListItem",e)}const qte=Ma("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),dm=qte,ere=Ma("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),tre=ere;function rre(e){return ka("MuiListItemSecondaryAction",e)}Ma("MuiListItemSecondaryAction",["root","disableGutters"]);const nre=["className"],are=e=>{const{disableGutters:r,classes:y}=e;return qn({root:["root",r&&"disableGutters"]},rre,y)},ire=ln("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.disableGutters&&r.disableGutters]}})(({ownerState:e})=>Ge({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Q9=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiListItemSecondaryAction"}),{className:j}=F,Y=hn(F,nre),D=Oe.useContext(Jh),O=Ge({},F,{disableGutters:D.disableGutters}),t=are(O);return Ce.jsx(ire,Ge({className:Ln(t.root,j),ownerState:O,ref:y},Y))});Q9.muiName="ListItemSecondaryAction";const ore=Q9,sre=["className"],lre=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ure=(e,r)=>{const{ownerState:y}=e;return[r.root,y.dense&&r.dense,y.alignItems==="flex-start"&&r.alignItemsFlexStart,y.divider&&r.divider,!y.disableGutters&&r.gutters,!y.disablePadding&&r.padding,y.button&&r.button,y.hasSecondaryAction&&r.secondaryAction]},cre=e=>{const{alignItems:r,button:y,classes:F,dense:j,disabled:Y,disableGutters:D,disablePadding:O,divider:t,hasSecondaryAction:l,selected:S}=e;return qn({root:["root",j&&"dense",!D&&"gutters",!O&&"padding",t&&"divider",Y&&"disabled",y&&"button",r==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",S&&"selected"],container:["container"]},Qte,F)},fre=ln("div",{name:"MuiListItem",slot:"Root",overridesResolver:ure})(({theme:e,ownerState:r})=>Ge({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&Ge({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{[`& > .${tre.root}`]:{paddingRight:48}},{[`&.${dm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.alignItems==="flex-start"&&{alignItems:"flex-start"},r.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},r.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})),dre=ln("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,r)=>r.container})({position:"relative"}),hre=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiListItem"}),{alignItems:j="center",autoFocus:Y=!1,button:D=!1,children:O,className:t,component:l,components:S={},componentsProps:i={},ContainerComponent:C="li",ContainerProps:{className:w}={},dense:v=!1,disabled:m=!1,disableGutters:a=!1,disablePadding:n=!1,divider:s=!1,focusVisibleClassName:o,secondaryAction:h,selected:f=!1,slotProps:u={},slots:b={}}=F,p=hn(F.ContainerProps,sre),E=hn(F,lre),g=Oe.useContext(Jh),c=Oe.useMemo(()=>({dense:v||g.dense||!1,alignItems:j,disableGutters:a}),[j,g.dense,v,a]),x=Oe.useRef(null);Gi(()=>{Y&&x.current&&x.current.focus()},[Y]);const A=Oe.Children.toArray(O),M=A.length&&vx(A[A.length-1],["ListItemSecondaryAction"]),R=Ge({},F,{alignItems:j,autoFocus:Y,button:D,dense:c.dense,disabled:m,disableGutters:a,disablePadding:n,divider:s,hasSecondaryAction:M,selected:f}),T=cre(R),L=pi(x,y),P=b.root||S.Root||fre,d=u.root||i.root||{},k=Ge({className:Ln(T.root,d.className,t),disabled:m},E);let I=l||"li";return D&&(k.component=l||"div",k.focusVisibleClassName=Ln(dm.focusVisible,o),I=Af),M?(I=!k.component&&!l?"div":I,C==="li"&&(I==="li"?I="div":k.component==="li"&&(k.component="div")),Ce.jsx(Jh.Provider,{value:c,children:Ce.jsxs(dre,Ge({as:C,className:Ln(T.container,w),ref:L,ownerState:R},p,{children:[Ce.jsx(P,Ge({},d,!gd(P)&&{as:I,ownerState:Ge({},R,d.ownerState)},k,{children:A})),A.pop()]}))})):Ce.jsx(Jh.Provider,{value:c,children:Ce.jsxs(P,Ge({},d,{as:I,ref:L},!gd(P)&&{ownerState:Ge({},R,d.ownerState)},k,{children:[A,h&&Ce.jsx(ore,{children:h})]}))})}),q1=hre;function vre(e){return ka("MuiListItemIcon",e)}const pre=Ma("MuiListItemIcon",["root","alignItemsFlexStart"]),SL=pre,gre=["className"],mre=e=>{const{alignItems:r,classes:y}=e;return qn({root:["root",r==="flex-start"&&"alignItemsFlexStart"]},vre,y)},yre=ln("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.alignItems==="flex-start"&&r.alignItemsFlexStart]}})(({theme:e,ownerState:r})=>Ge({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},r.alignItems==="flex-start"&&{marginTop:8})),xre=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiListItemIcon"}),{className:j}=F,Y=hn(F,gre),D=Oe.useContext(Jh),O=Ge({},F,{alignItems:D.alignItems}),t=mre(O);return Ce.jsx(yre,Ge({className:Ln(t.root,j),ownerState:O,ref:y},Y))}),_p=xre;function bre(e){return ka("MuiListItemText",e)}const wre=Ma("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),f2=wre,Tre=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Sre=e=>{const{classes:r,inset:y,primary:F,secondary:j,dense:Y}=e;return qn({root:["root",y&&"inset",Y&&"dense",F&&j&&"multiline"],primary:["primary"],secondary:["secondary"]},bre,r)},Cre=ln("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[{[`& .${f2.primary}`]:r.primary},{[`& .${f2.secondary}`]:r.secondary},r.root,y.inset&&r.inset,y.primary&&y.secondary&&r.multiline,y.dense&&r.dense]}})(({ownerState:e})=>Ge({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Mre=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiListItemText"}),{children:j,className:Y,disableTypography:D=!1,inset:O=!1,primary:t,primaryTypographyProps:l,secondary:S,secondaryTypographyProps:i}=F,C=hn(F,Tre),{dense:w}=Oe.useContext(Jh);let v=t??j,m=S;const a=Ge({},F,{disableTypography:D,inset:O,primary:!!v,secondary:!!m,dense:w}),n=Sre(a);return v!=null&&v.type!==ea&&!D&&(v=Ce.jsx(ea,Ge({variant:w?"body2":"body1",className:n.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:v}))),m!=null&&m.type!==ea&&!D&&(m=Ce.jsx(ea,Ge({variant:"body2",className:n.secondary,color:"text.secondary",display:"block"},i,{children:m}))),Ce.jsxs(Cre,Ge({className:Ln(n.root,Y),ownerState:a,ref:y},C,{children:[v,m]}))}),$m=Mre,Are=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function TC(e,r,y){return e===r?e.firstChild:r&&r.nextElementSibling?r.nextElementSibling:y?null:e.firstChild}function CL(e,r,y){return e===r?y?e.firstChild:e.lastChild:r&&r.previousElementSibling?r.previousElementSibling:y?null:e.lastChild}function q9(e,r){if(r===void 0)return!0;let y=e.innerText;return y===void 0&&(y=e.textContent),y=y.trim().toLowerCase(),y.length===0?!1:r.repeating?y[0]===r.keys[0]:y.indexOf(r.keys.join(""))===0}function P1(e,r,y,F,j,Y){let D=!1,O=j(e,r,r?y:!1);for(;O;){if(O===e.firstChild){if(D)return!1;D=!0}const t=F?!1:O.disabled||O.getAttribute("aria-disabled")==="true";if(!O.hasAttribute("tabindex")||!q9(O,Y)||t)O=j(e,O,y);else return O.focus(),!0}return!1}const Ere=Oe.forwardRef(function(r,y){const{actions:F,autoFocus:j=!1,autoFocusItem:Y=!1,children:D,className:O,disabledItemsFocusable:t=!1,disableListWrap:l=!1,onKeyDown:S,variant:i="selectedMenu"}=r,C=hn(r,Are),w=Oe.useRef(null),v=Oe.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gi(()=>{j&&w.current.focus()},[j]),Oe.useImperativeHandle(F,()=>({adjustStyleForScrollbar:(o,{direction:h})=>{const f=!w.current.style.width;if(o.clientHeight{const h=w.current,f=o.key,u=oo(h).activeElement;if(f==="ArrowDown")o.preventDefault(),P1(h,u,l,t,TC);else if(f==="ArrowUp")o.preventDefault(),P1(h,u,l,t,CL);else if(f==="Home")o.preventDefault(),P1(h,null,l,t,TC);else if(f==="End")o.preventDefault(),P1(h,null,l,t,CL);else if(f.length===1){const b=v.current,p=f.toLowerCase(),E=performance.now();b.keys.length>0&&(E-b.lastTime>500?(b.keys=[],b.repeating=!0,b.previousKeyMatched=!0):b.repeating&&p!==b.keys[0]&&(b.repeating=!1)),b.lastTime=E,b.keys.push(p);const g=u&&!b.repeating&&q9(u,b);b.previousKeyMatched&&(g||P1(h,u,!1,t,TC,b))?o.preventDefault():b.previousKeyMatched=!1}S&&S(o)},a=pi(w,y);let n=-1;Oe.Children.forEach(D,(o,h)=>{if(!Oe.isValidElement(o)){n===h&&(n+=1,n>=D.length&&(n=-1));return}o.props.disabled||(i==="selectedMenu"&&o.props.selected||n===-1)&&(n=h),n===h&&(o.props.disabled||o.props.muiSkipListHighlight||o.type.muiSkipListHighlight)&&(n+=1,n>=D.length&&(n=-1))});const s=Oe.Children.map(D,(o,h)=>{if(h===n){const f={};return Y&&(f.autoFocus=!0),o.props.tabIndex===void 0&&i==="selectedMenu"&&(f.tabIndex=0),Oe.cloneElement(o,f)}return o});return Ce.jsx(S5,Ge({role:"menu",ref:a,className:O,onKeyDown:m,tabIndex:j?0:-1},C,{children:s}))}),_b=Ere;function Pre(e){return ka("MuiPopover",e)}Ma("MuiPopover",["root","paper"]);const Lre=["onEntering"],Ire=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rre=["slotProps"];function ML(e,r){let y=0;return typeof r=="number"?y=r:r==="center"?y=e.height/2:r==="bottom"&&(y=e.height),y}function AL(e,r){let y=0;return typeof r=="number"?y=r:r==="center"?y=e.width/2:r==="right"&&(y=e.width),y}function EL(e){return[e.horizontal,e.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function SC(e){return typeof e=="function"?e():e}const kre=e=>{const{classes:r}=e;return qn({root:["root"],paper:["paper"]},Pre,r)},Dre=ln(zT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,r)=>r.root})({}),eO=ln(Ri,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,r)=>r.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ore=Oe.forwardRef(function(r,y){var F,j,Y;const D=Ka({props:r,name:"MuiPopover"}),{action:O,anchorEl:t,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:S,anchorReference:i="anchorEl",children:C,className:w,container:v,elevation:m=8,marginThreshold:a=16,open:n,PaperProps:s={},slots:o,slotProps:h,transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:u=Qx,transitionDuration:b="auto",TransitionProps:{onEntering:p}={},disableScrollLock:E=!1}=D,g=hn(D.TransitionProps,Lre),c=hn(D,Ire),x=(F=h==null?void 0:h.paper)!=null?F:s,A=Oe.useRef(),M=pi(A,x.ref),R=Ge({},D,{anchorOrigin:l,anchorReference:i,elevation:m,marginThreshold:a,externalPaperSlotProps:x,transformOrigin:f,TransitionComponent:u,transitionDuration:b,TransitionProps:g}),T=kre(R),L=Oe.useCallback(()=>{if(i==="anchorPosition")return S;const ie=SC(t),Q=(ie&&ie.nodeType===1?ie:oo(A.current).body).getBoundingClientRect();return{top:Q.top+ML(Q,l.vertical),left:Q.left+AL(Q,l.horizontal)}},[t,l.horizontal,l.vertical,S,i]),P=Oe.useCallback(ie=>({vertical:ML(ie,f.vertical),horizontal:AL(ie,f.horizontal)}),[f.horizontal,f.vertical]),d=Oe.useCallback(ie=>{const fe={width:ie.offsetWidth,height:ie.offsetHeight},Q=P(fe);if(i==="none")return{top:null,left:null,transformOrigin:EL(Q)};const J=L();let oe=J.top-Q.vertical,K=J.left-Q.horizontal;const ne=oe+fe.height,ce=K+fe.width,re=wd(SC(t)),ee=re.innerHeight-a,de=re.innerWidth-a;if(a!==null&&oeee){const le=ne-ee;oe-=le,Q.vertical+=le}if(a!==null&&Kde){const le=ce-de;K-=le,Q.horizontal+=le}return{top:`${Math.round(oe)}px`,left:`${Math.round(K)}px`,transformOrigin:EL(Q)}},[t,i,L,P,a]),[k,I]=Oe.useState(n),N=Oe.useCallback(()=>{const ie=A.current;if(!ie)return;const fe=d(ie);fe.top!==null&&(ie.style.top=fe.top),fe.left!==null&&(ie.style.left=fe.left),ie.style.transformOrigin=fe.transformOrigin,I(!0)},[d]);Oe.useEffect(()=>(E&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[t,E,N]);const B=(ie,fe)=>{p&&p(ie,fe),N()},G=()=>{I(!1)};Oe.useEffect(()=>{n&&N()}),Oe.useImperativeHandle(O,()=>n?{updatePosition:()=>{N()}}:null,[n,N]),Oe.useEffect(()=>{if(!n)return;const ie=bg(()=>{N()}),fe=wd(t);return fe.addEventListener("resize",ie),()=>{ie.clear(),fe.removeEventListener("resize",ie)}},[t,n,N]);let U=b;b==="auto"&&!u.muiSupportAuto&&(U=void 0);const H=v||(t?oo(SC(t)).body:void 0),W=(j=o==null?void 0:o.root)!=null?j:Dre,V=(Y=o==null?void 0:o.paper)!=null?Y:eO,$=vi({elementType:V,externalSlotProps:Ge({},x,{style:k?x.style:Ge({},x.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:R,className:Ln(T.paper,x==null?void 0:x.className)}),Z=vi({elementType:W,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:c,additionalProps:{ref:y,slotProps:{backdrop:{invisible:!0}},container:H,open:n},ownerState:R,className:Ln(T.root,w)}),{slotProps:q}=Z,ae=hn(Z,Rre);return Ce.jsx(W,Ge({},ae,!gd(W)&&{slotProps:q,disableScrollLock:E},{children:Ce.jsx(u,Ge({appear:!0,in:n,onEntering:B,onExited:G,timeout:U},g,{children:Ce.jsx(V,Ge({},$,{children:C}))}))}))}),C5=Ore;function Fre(e){return ka("MuiMenu",e)}Ma("MuiMenu",["root","paper","list"]);const _re=["onEntering"],zre=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bre={vertical:"top",horizontal:"right"},Nre={vertical:"top",horizontal:"left"},Ure=e=>{const{classes:r}=e;return qn({root:["root"],paper:["paper"],list:["list"]},Fre,r)},Hre=ln(C5,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Vre=ln(eO,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,r)=>r.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jre=ln(_b,{name:"MuiMenu",slot:"List",overridesResolver:(e,r)=>r.list})({outline:0}),Gre=Oe.forwardRef(function(r,y){var F,j;const Y=Ka({props:r,name:"MuiMenu"}),{autoFocus:D=!0,children:O,className:t,disableAutoFocusItem:l=!1,MenuListProps:S={},onClose:i,open:C,PaperProps:w={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:a}={},variant:n="selectedMenu",slots:s={},slotProps:o={}}=Y,h=hn(Y.TransitionProps,_re),f=hn(Y,zre),u=Fl(),b=Ge({},Y,{autoFocus:D,disableAutoFocusItem:l,MenuListProps:S,onEntering:a,PaperProps:w,transitionDuration:m,TransitionProps:h,variant:n}),p=Ure(b),E=D&&!l&&C,g=Oe.useRef(null),c=(P,d)=>{g.current&&g.current.adjustStyleForScrollbar(P,{direction:u?"rtl":"ltr"}),a&&a(P,d)},x=P=>{P.key==="Tab"&&(P.preventDefault(),i&&i(P,"tabKeyDown"))};let A=-1;Oe.Children.map(O,(P,d)=>{Oe.isValidElement(P)&&(P.props.disabled||(n==="selectedMenu"&&P.props.selected||A===-1)&&(A=d))});const M=(F=s.paper)!=null?F:Vre,R=(j=o.paper)!=null?j:w,T=vi({elementType:s.root,externalSlotProps:o.root,ownerState:b,className:[p.root,t]}),L=vi({elementType:M,externalSlotProps:R,ownerState:b,className:p.paper});return Ce.jsx(Hre,Ge({onClose:i,anchorOrigin:{vertical:"bottom",horizontal:u?"right":"left"},transformOrigin:u?Bre:Nre,slots:{paper:M,root:s.root},slotProps:{root:T,paper:L},open:C,ref:y,transitionDuration:m,TransitionProps:Ge({onEntering:c},h),ownerState:b},f,{classes:v,children:Ce.jsx(jre,Ge({onKeyDown:x,actions:g,autoFocus:D&&(A===-1||l),autoFocusItem:E,variant:n},S,{className:Ln(p.list,S.className),children:O}))}))}),Wre=Gre;function $re(e){return ka("MuiMenuItem",e)}const Yre=Ma("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),L1=Yre,Xre=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Zre=(e,r)=>{const{ownerState:y}=e;return[r.root,y.dense&&r.dense,y.divider&&r.divider,!y.disableGutters&&r.gutters]},Kre=e=>{const{disabled:r,dense:y,divider:F,disableGutters:j,selected:Y,classes:D}=e,t=qn({root:["root",y&&"dense",r&&"disabled",!j&&"gutters",F&&"divider",Y&&"selected"]},$re,D);return Ge({},D,t)},Jre=ln(Af,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Zre})(({theme:e,ownerState:r})=>Ge({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${L1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${L1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${L1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${L1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cL.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cL.inset}`]:{marginLeft:52},[`& .${f2.root}`]:{marginTop:0,marginBottom:0},[`& .${f2.inset}`]:{paddingLeft:36},[`& .${SL.root}`]:{minWidth:36}},!r.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&Ge({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${SL.root} svg`]:{fontSize:"1.25rem"}}))),Qre=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiMenuItem"}),{autoFocus:j=!1,component:Y="li",dense:D=!1,divider:O=!1,disableGutters:t=!1,focusVisibleClassName:l,role:S="menuitem",tabIndex:i,className:C}=F,w=hn(F,Xre),v=Oe.useContext(Jh),m=Oe.useMemo(()=>({dense:D||v.dense||!1,disableGutters:t}),[v.dense,D,t]),a=Oe.useRef(null);Gi(()=>{j&&a.current&&a.current.focus()},[j]);const n=Ge({},F,{dense:m.dense,divider:O,disableGutters:t}),s=Kre(F),o=pi(a,y);let h;return F.disabled||(h=i!==void 0?i:-1),Ce.jsx(Jh.Provider,{value:m,children:Ce.jsx(Jre,Ge({ref:o,role:S,tabIndex:h,component:Y,focusVisibleClassName:Ln(s.focusVisible,l),className:Ln(s.root,C)},w,{ownerState:n,classes:s}))})}),uo=Qre;function qre(e){return ka("MuiNativeSelect",e)}const ene=Ma("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),M5=ene,tne=["className","disabled","error","IconComponent","inputRef","variant"],rne=e=>{const{classes:r,variant:y,disabled:F,multiple:j,open:Y,error:D}=e,O={select:["select",y,F&&"disabled",j&&"multiple",D&&"error"],icon:["icon",`icon${Gn(y)}`,Y&&"iconOpen",F&&"disabled"]};return qn(O,qre,r)},tO=({ownerState:e,theme:r})=>Ge({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ge({},r.vars?{backgroundColor:`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:r.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${M5.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}}),nne=ln("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qu,overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.select,r[y.variant],y.error&&r.error,{[`&.${M5.multiple}`]:r.multiple}]}})(tO),rO=({ownerState:e,theme:r})=>Ge({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,[`&.${M5.disabled}`]:{color:(r.vars||r).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ane=ln("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.icon,y.variant&&r[`icon${Gn(y.variant)}`],y.open&&r.iconOpen]}})(rO),ine=Oe.forwardRef(function(r,y){const{className:F,disabled:j,error:Y,IconComponent:D,inputRef:O,variant:t="standard"}=r,l=hn(r,tne),S=Ge({},r,{disabled:j,variant:t,error:Y}),i=rne(S);return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(nne,Ge({ownerState:S,className:Ln(i.select,F),disabled:j,ref:O||y},l)),r.multiple?null:Ce.jsx(ane,{as:D,ownerState:S,className:i.icon})]})}),one=ine;var PL;const sne=["children","classes","className","label","notched"],lne=ln("fieldset",{shouldForwardProp:qu})({textAlign:"left",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",minWidth:"0%"}),une=ln("legend",{shouldForwardProp:qu})(({ownerState:e,theme:r})=>Ge({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},e.withLabel&&Ge({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})})));function cne(e){const{className:r,label:y,notched:F}=e,j=hn(e,sne),Y=y!=null&&y!=="",D=Ge({},e,{notched:F,withLabel:Y});return Ce.jsx(lne,Ge({"aria-hidden":!0,className:r,ownerState:D},j,{children:Ce.jsx(une,{ownerState:D,children:Y?Ce.jsx("span",{children:y}):PL||(PL=Ce.jsx("span",{className:"notranslate",children:"​"}))})}))}const fne=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dne=e=>{const{classes:r}=e,F=qn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vJ,r);return Ge({},r,F)},hne=ln(OT,{shouldForwardProp:e=>qu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:kT})(({theme:e,ownerState:r})=>{const y=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ge({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:y}},[`&.${Yd.focused} .${Yd.notchedOutline}`]:{borderColor:(e.vars||e).palette[r.color].main,borderWidth:2},[`&.${Yd.error} .${Yd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yd.disabled} .${Yd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&Ge({padding:"16.5px 14px"},r.size==="small"&&{padding:"8.5px 14px"}))}),vne=ln(cne,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,r)=>r.notchedOutline})(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}}),pne=ln(FT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:DT})(({theme:e,ownerState:r})=>Ge({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},r.size==="small"&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})),nO=Oe.forwardRef(function(r,y){var F,j,Y,D,O;const t=Ka({props:r,name:"MuiOutlinedInput"}),{components:l={},fullWidth:S=!1,inputComponent:i="input",label:C,multiline:w=!1,notched:v,slots:m={},type:a="text"}=t,n=hn(t,fne),s=dne(t),o=ec(),h=Zp({props:t,muiFormControl:o,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),f=Ge({},t,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:o,fullWidth:S,hiddenLabel:h.hiddenLabel,multiline:w,size:h.size,type:a}),u=(F=(j=m.root)!=null?j:l.Root)!=null?F:hne,b=(Y=(D=m.input)!=null?D:l.Input)!=null?Y:pne;return Ce.jsx(Hy,Ge({slots:{root:u,input:b},renderSuffix:p=>Ce.jsx(vne,{ownerState:f,className:s.notchedOutline,label:C!=null&&C!==""&&h.required?O||(O=Ce.jsxs(Oe.Fragment,{children:[C," ","*"]})):C,notched:typeof v<"u"?v:!!(p.startAdornment||p.filled||p.focused)}),fullWidth:S,inputComponent:i,multiline:w,ref:y,type:a},n,{classes:Ge({},s,{notchedOutline:null})}))});nO.muiName="Input";const aO=nO;function gne(e){return ka("MuiPagination",e)}Ma("MuiPagination",["root","ul","outlined","text"]);const mne=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function yne(e={}){const{boundaryCount:r=1,componentName:y="usePagination",count:F=1,defaultPage:j=1,disabled:Y=!1,hideNextButton:D=!1,hidePrevButton:O=!1,onChange:t,page:l,showFirstButton:S=!1,showLastButton:i=!1,siblingCount:C=1}=e,w=hn(e,mne),[v,m]=Dl({controlled:l,default:j,name:y,state:"page"}),a=(E,g)=>{l||m(g),t&&t(E,g)},n=(E,g)=>{const c=g-E+1;return Array.from({length:c},(x,A)=>E+A)},s=n(1,Math.min(r,F)),o=n(Math.max(F-r+1,r+1),F),h=Math.max(Math.min(v-C,F-r-C*2-1),r+2),f=Math.min(Math.max(v+C,r+C*2+2),o.length>0?o[0]-2:F-1),u=[...S?["first"]:[],...O?[]:["previous"],...s,...h>r+2?["start-ellipsis"]:r+1r?[F-r]:[],...o,...D?[]:["next"],...i?["last"]:[]],b=E=>{switch(E){case"first":return 1;case"previous":return v-1;case"next":return v+1;case"last":return F;default:return null}},p=u.map(E=>typeof E=="number"?{onClick:g=>{a(g,E)},type:"page",page:E,selected:E===v,disabled:Y,"aria-current":E===v?"true":void 0}:{onClick:g=>{a(g,b(E))},type:E,page:b(E),selected:!1,disabled:Y||E.indexOf("ellipsis")===-1&&(E==="next"||E==="last"?v>=F:v<=1)});return Ge({items:p},w)}function xne(e){return ka("MuiPaginationItem",e)}const bne=Ma("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),rf=bne,aM=ci(Ce.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),iM=ci(Ce.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),LL=ci(Ce.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),IL=ci(Ce.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),wne=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],iO=(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],r[`size${Gn(y.size)}`],y.variant==="text"&&r[`text${Gn(y.color)}`],y.variant==="outlined"&&r[`outlined${Gn(y.color)}`],y.shape==="rounded"&&r.rounded,y.type==="page"&&r.page,(y.type==="start-ellipsis"||y.type==="end-ellipsis")&&r.ellipsis,(y.type==="previous"||y.type==="next")&&r.previousNext,(y.type==="first"||y.type==="last")&&r.firstLast]},Tne=e=>{const{classes:r,color:y,disabled:F,selected:j,size:Y,shape:D,type:O,variant:t}=e,l={root:["root",`size${Gn(Y)}`,t,D,y!=="standard"&&`color${Gn(y)}`,y!=="standard"&&`${t}${Gn(y)}`,F&&"disabled",j&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[O]],icon:["icon"]};return qn(l,xne,r)},Sne=ln("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:iO})(({theme:e,ownerState:r})=>Ge({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},r.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Cne=ln(Af,{name:"MuiPaginationItem",slot:"Root",overridesResolver:iO})(({theme:e,ownerState:r})=>Ge({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rf.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ti(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${rf.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},r.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},r.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},r.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:r})=>Ge({},r.variant==="text"&&{[`&.${rf.selected}`]:Ge({},r.color!=="standard"&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}},[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r.color].dark}},{[`&.${rf.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},r.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${rf.selected}`]:Ge({},r.color!=="standard"&&{color:(e.vars||e).palette[r.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:Ti(e.palette[r.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Ti(e.palette[r.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette[r.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ti(e.palette[r.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${rf.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Mne=ln("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,r)=>r.icon})(({theme:e,ownerState:r})=>Ge({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},r.size==="small"&&{fontSize:e.typography.pxToRem(18)},r.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Ane=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiPaginationItem"}),{className:j,color:Y="standard",component:D,components:O={},disabled:t=!1,page:l,selected:S=!1,shape:i="circular",size:C="medium",slots:w={},type:v="page",variant:m="text"}=F,a=hn(F,wne),n=Ge({},F,{color:Y,disabled:t,selected:S,shape:i,size:C,type:v,variant:m}),s=Fl(),o=Tne(n),f=(s?{previous:w.next||O.next||IL,next:w.previous||O.previous||LL,last:w.first||O.first||aM,first:w.last||O.last||iM}:{previous:w.previous||O.previous||LL,next:w.next||O.next||IL,first:w.first||O.first||aM,last:w.last||O.last||iM})[v];return v==="start-ellipsis"||v==="end-ellipsis"?Ce.jsx(Sne,{ref:y,ownerState:n,className:Ln(o.root,j),children:"…"}):Ce.jsxs(Cne,Ge({ref:y,ownerState:n,component:D,disabled:t,className:Ln(o.root,j)},a,{children:[v==="page"&&l,f?Ce.jsx(Mne,{as:f,ownerState:n,className:o.icon}):null]}))}),Ene=Ane,Pne=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Lne=e=>{const{classes:r,variant:y}=e;return qn({root:["root",y],ul:["ul"]},gne,r)},Ine=ln("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant]]}})({}),Rne=ln("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,r)=>r.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function kne(e,r,y){return e==="page"?`${y?"":"Go to "}page ${r}`:`Go to ${e} page`}const Dne=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiPagination"}),{boundaryCount:j=1,className:Y,color:D="standard",count:O=1,defaultPage:t=1,disabled:l=!1,getItemAriaLabel:S=kne,hideNextButton:i=!1,hidePrevButton:C=!1,renderItem:w=p=>Ce.jsx(Ene,Ge({},p)),shape:v="circular",showFirstButton:m=!1,showLastButton:a=!1,siblingCount:n=1,size:s="medium",variant:o="text"}=F,h=hn(F,Pne),{items:f}=yne(Ge({},F,{componentName:"Pagination"})),u=Ge({},F,{boundaryCount:j,color:D,count:O,defaultPage:t,disabled:l,getItemAriaLabel:S,hideNextButton:i,hidePrevButton:C,renderItem:w,shape:v,showFirstButton:m,showLastButton:a,siblingCount:n,size:s,variant:o}),b=Lne(u);return Ce.jsx(Ine,Ge({"aria-label":"pagination navigation",className:Ln(b.root,Y),ownerState:u,ref:y},h,{children:Ce.jsx(Rne,{className:b.ul,ownerState:u,children:f.map((p,E)=>Ce.jsx("li",{children:w(Ge({},p,{color:D,"aria-label":S(p.type,p.page,p.selected),shape:v,size:s,variant:o}))},E))})}))}),One=Dne;function Fne(e){return ka("MuiSelect",e)}const I1=Ma("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var RL;const _ne=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],zne=ln("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[{[`&.${I1.select}`]:r.select},{[`&.${I1.select}`]:r[y.variant]},{[`&.${I1.error}`]:r.error},{[`&.${I1.multiple}`]:r.multiple}]}})(tO,{[`&.${I1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bne=ln("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.icon,y.variant&&r[`icon${Gn(y.variant)}`],y.open&&r.iconOpen]}})(rO),Nne=ln("input",{shouldForwardProp:e=>ET(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,r)=>r.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kL(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}function Une(e){return e==null||typeof e=="string"&&!e.trim()}const Hne=e=>{const{classes:r,variant:y,disabled:F,multiple:j,open:Y,error:D}=e,O={select:["select",y,F&&"disabled",j&&"multiple",D&&"error"],icon:["icon",`icon${Gn(y)}`,Y&&"iconOpen",F&&"disabled"],nativeInput:["nativeInput"]};return qn(O,Fne,r)},Vne=Oe.forwardRef(function(r,y){var F;const{"aria-describedby":j,"aria-label":Y,autoFocus:D,autoWidth:O,children:t,className:l,defaultOpen:S,defaultValue:i,disabled:C,displayEmpty:w,error:v=!1,IconComponent:m,inputRef:a,labelId:n,MenuProps:s={},multiple:o,name:h,onBlur:f,onChange:u,onClose:b,onFocus:p,onOpen:E,open:g,readOnly:c,renderValue:x,SelectDisplayProps:A={},tabIndex:M,value:R,variant:T="standard"}=r,L=hn(r,_ne),[P,d]=Dl({controlled:R,default:i,name:"Select"}),[k,I]=Dl({controlled:g,default:S,name:"Select"}),N=Oe.useRef(null),B=Oe.useRef(null),[G,U]=Oe.useState(null),{current:H}=Oe.useRef(g!=null),[W,V]=Oe.useState(),$=pi(y,a),Z=Oe.useCallback(Ie=>{B.current=Ie,Ie&&U(Ie)},[]),q=G==null?void 0:G.parentNode;Oe.useImperativeHandle($,()=>({focus:()=>{B.current.focus()},node:N.current,value:P}),[P]),Oe.useEffect(()=>{S&&k&&G&&!H&&(V(O?null:q.clientWidth),B.current.focus())},[G,O]),Oe.useEffect(()=>{D&&B.current.focus()},[D]),Oe.useEffect(()=>{if(!n)return;const Ie=oo(B.current).getElementById(n);if(Ie){const Ue=()=>{getSelection().isCollapsed&&B.current.focus()};return Ie.addEventListener("click",Ue),()=>{Ie.removeEventListener("click",Ue)}}},[n]);const ae=(Ie,Ue)=>{Ie?E&&E(Ue):b&&b(Ue),H||(V(O?null:q.clientWidth),I(Ie))},ie=Ie=>{Ie.button===0&&(Ie.preventDefault(),B.current.focus(),ae(!0,Ie))},fe=Ie=>{ae(!1,Ie)},Q=Oe.Children.toArray(t),J=Ie=>{const Ue=Q.find(Ne=>Ne.props.value===Ie.target.value);Ue!==void 0&&(d(Ue.props.value),u&&u(Ie,Ue))},oe=Ie=>Ue=>{let Ne;if(Ue.currentTarget.hasAttribute("tabindex")){if(o){Ne=Array.isArray(P)?P.slice():[];const ze=P.indexOf(Ie.props.value);ze===-1?Ne.push(Ie.props.value):Ne.splice(ze,1)}else Ne=Ie.props.value;if(Ie.props.onClick&&Ie.props.onClick(Ue),P!==Ne&&(d(Ne),u)){const ze=Ue.nativeEvent||Ue,$e=new ze.constructor(ze.type,ze);Object.defineProperty($e,"target",{writable:!0,value:{value:Ne,name:h}}),u($e,Ie)}o||ae(!1,Ue)}},K=Ie=>{c||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ie.key)!==-1&&(Ie.preventDefault(),ae(!0,Ie))},ne=G!==null&&k,ce=Ie=>{!ne&&f&&(Object.defineProperty(Ie,"target",{writable:!0,value:{value:P,name:h}}),f(Ie))};delete L["aria-invalid"];let re,ee;const de=[];let le=!1;(c2({value:P})||w)&&(x?re=x(P):le=!0);const he=Q.map(Ie=>{if(!Oe.isValidElement(Ie))return null;let Ue;if(o){if(!Array.isArray(P))throw new Error(iv(2));Ue=P.some(Ne=>kL(Ne,Ie.props.value)),Ue&&le&&de.push(Ie.props.children)}else Ue=kL(P,Ie.props.value),Ue&&le&&(ee=Ie.props.children);return Oe.cloneElement(Ie,{"aria-selected":Ue?"true":"false",onClick:oe(Ie),onKeyUp:Ne=>{Ne.key===" "&&Ne.preventDefault(),Ie.props.onKeyUp&&Ie.props.onKeyUp(Ne)},role:"option",selected:Ue,value:void 0,"data-value":Ie.props.value})});le&&(o?de.length===0?re=null:re=de.reduce((Ie,Ue,Ne)=>(Ie.push(Ue),Ne{const{classes:r}=e;return r},A5={name:"MuiSelect",overridesResolver:(e,r)=>r.root,shouldForwardProp:e=>qu(e)&&e!=="variant",slot:"Root"},Yne=ln(K9,A5)(""),Xne=ln(aO,A5)(""),Zne=ln($9,A5)(""),oO=Oe.forwardRef(function(r,y){const F=Ka({name:"MuiSelect",props:r}),{autoWidth:j=!1,children:Y,classes:D={},className:O,defaultOpen:t=!1,displayEmpty:l=!1,IconComponent:S=z9,id:i,input:C,inputProps:w,label:v,labelId:m,MenuProps:a,multiple:n=!1,native:s=!1,onClose:o,onOpen:h,open:f,renderValue:u,SelectDisplayProps:b,variant:p="outlined"}=F,E=hn(F,Gne),g=s?one:jne,c=ec(),x=Zp({props:F,muiFormControl:c,states:["variant","error"]}),A=x.variant||p,M=Ge({},F,{variant:A,classes:D}),R=$ne(M),T=hn(R,Wne),L=C||{standard:Ce.jsx(Yne,{ownerState:M}),outlined:Ce.jsx(Xne,{label:v,ownerState:M}),filled:Ce.jsx(Zne,{ownerState:M})}[A],P=pi(y,L.ref);return Ce.jsx(Oe.Fragment,{children:Oe.cloneElement(L,Ge({inputComponent:g,inputProps:Ge({children:Y,error:x.error,IconComponent:S,variant:A,type:void 0,multiple:n},s?{id:i}:{autoWidth:j,defaultOpen:t,displayEmpty:l,labelId:m,MenuProps:a,onClose:o,onOpen:h,open:f,renderValue:u,SelectDisplayProps:Ge({id:i},b)},w,{classes:w?bu(T,w.classes):T},C?C.props.inputProps:{})},(n&&s||l)&&A==="outlined"?{notched:!0}:{},{ref:P,className:Ln(L.props.className,O,R.root)},!C&&{variant:A},E))})});oO.muiName="Select";const ah=oO;function Kne(e){return ka("MuiSkeleton",e)}Ma("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Jne=["animation","className","component","height","style","variant","width"];let d2=e=>e,DL,OL,FL,_L;const Qne=e=>{const{classes:r,variant:y,animation:F,hasChildren:j,width:Y,height:D}=e;return qn({root:["root",y,F,j&&"withChildren",j&&!Y&&"fitContent",j&&!D&&"heightAuto"]},Kne,r)},qne=Sd(DL||(DL=d2` + `),Bq)),Pb=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiLinearProgress"}),{className:j,color:Y="primary",value:D,valueBuffer:O,variant:t="indeterminate"}=F,l=hn(F,_q),S=Ge({},F,{color:Y,variant:t}),i=Uq(S),C=_l(),w={},v={bar1:{},bar2:{}};if((t==="determinate"||t==="buffer")&&D!==void 0){w["aria-valuenow"]=Math.round(D),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let m=D-100;C&&(m=-m),v.bar1.transform=`translateX(${m}%)`}if(t==="buffer"&&O!==void 0){let m=(O||0)-100;C&&(m=-m),v.bar2.transform=`translateX(${m}%)`}return Ce.jsxs(Hq,Ge({className:Ln(i.root,j),ownerState:S,role:"progressbar"},w,{ref:x},l,{children:[t==="buffer"?Ce.jsx(Vq,{className:i.dashed,ownerState:S}):null,Ce.jsx(jq,{className:i.bar1,ownerState:S,style:v.bar1}),t==="determinate"?null:Ce.jsx(Gq,{className:i.bar2,ownerState:S,style:v.bar2})]}))});function Wq(e){return ka("MuiLink",e)}const $q=Ca("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),z9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yq=e=>z9[e]||e,Xq=({theme:e,ownerState:r})=>{const x=Yq(r.color),F=by(e,`palette.${x}`,!1)||r.color,j=by(e,`palette.${x}Channel`);return"vars"in e&&j?`rgba(${j} / 0.4)`:wi(F,.4)},Zq=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kq=e=>{const{classes:r,component:x,focusVisible:F,underline:j}=e,Y={root:["root",`underline${Gn(j)}`,x==="button"&&"button",F&&"focusVisible"]};return qn(Y,Wq,r)},Jq=ln(ea,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[`underline${Gn(x.underline)}`],x.component==="button"&&r.button]}})(({theme:e,ownerState:r})=>Ge({},r.underline==="none"&&{textDecoration:"none"},r.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},r.underline==="always"&&Ge({textDecoration:"underline"},r.color!=="inherit"&&{textDecorationColor:Xq({theme:e,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),r.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$q.focusVisible}`]:{outline:"auto"}})),Ii=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiLink"}),{className:j,color:Y="primary",component:D="a",onBlur:O,onFocus:t,TypographyClasses:l,underline:S="always",variant:i="inherit",sx:C}=F,w=hn(F,Zq),{isFocusVisibleRef:v,onBlur:m,onFocus:a,ref:n}=Sb(),[s,o]=Oe.useState(!1),h=vi(x,n),f=E=>{m(E),v.current===!1&&o(!1),O&&O(E)},u=E=>{a(E),v.current===!0&&o(!0),t&&t(E)},b=Ge({},F,{color:Y,component:D,focusVisible:s,underline:S,variant:i}),p=Kq(b);return Ce.jsx(Jq,Ge({color:Y,className:Ln(p.root,j),classes:l,component:D,onBlur:f,onFocus:u,ref:h,ownerState:b,variant:i,sx:[...Object.keys(z9).includes(Y)?[]:[{color:Y}],...Array.isArray(C)?C:[C]]},w))}),qh=Oe.createContext({});function Qq(e){return ka("MuiList",e)}Ca("MuiList",["root","padding","dense","subheader"]);const qq=["children","className","component","dense","disablePadding","subheader"],eee=e=>{const{classes:r,disablePadding:x,dense:F,subheader:j}=e;return qn({root:["root",!x&&"padding",F&&"dense",j&&"subheader"]},Qq,r)},tee=ln("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,!x.disablePadding&&r.padding,x.dense&&r.dense,x.subheader&&r.subheader]}})(({ownerState:e})=>Ge({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),d5=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiList"}),{children:j,className:Y,component:D="ul",dense:O=!1,disablePadding:t=!1,subheader:l}=F,S=hn(F,qq),i=Oe.useMemo(()=>({dense:O}),[O]),C=Ge({},F,{component:D,dense:O,disablePadding:t}),w=eee(C);return Ce.jsx(qh.Provider,{value:i,children:Ce.jsxs(tee,Ge({as:D,className:Ln(w.root,Y),ref:x,ownerState:C},S,{children:[l,j]}))})});function ree(e){return ka("MuiListItem",e)}const dm=Ca("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),nee=Ca("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function aee(e){return ka("MuiListItemSecondaryAction",e)}Ca("MuiListItemSecondaryAction",["root","disableGutters"]);const iee=["className"],oee=e=>{const{disableGutters:r,classes:x}=e;return qn({root:["root",r&&"disableGutters"]},aee,x)},see=ln("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.disableGutters&&r.disableGutters]}})(({ownerState:e})=>Ge({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),B9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiListItemSecondaryAction"}),{className:j}=F,Y=hn(F,iee),D=Oe.useContext(qh),O=Ge({},F,{disableGutters:D.disableGutters}),t=oee(O);return Ce.jsx(see,Ge({className:Ln(t.root,j),ownerState:O,ref:x},Y))});B9.muiName="ListItemSecondaryAction";const lee=["className"],uee=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],cee=(e,r)=>{const{ownerState:x}=e;return[r.root,x.dense&&r.dense,x.alignItems==="flex-start"&&r.alignItemsFlexStart,x.divider&&r.divider,!x.disableGutters&&r.gutters,!x.disablePadding&&r.padding,x.button&&r.button,x.hasSecondaryAction&&r.secondaryAction]},fee=e=>{const{alignItems:r,button:x,classes:F,dense:j,disabled:Y,disableGutters:D,disablePadding:O,divider:t,hasSecondaryAction:l,selected:S}=e;return qn({root:["root",j&&"dense",!D&&"gutters",!O&&"padding",t&&"divider",Y&&"disabled",x&&"button",r==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",S&&"selected"],container:["container"]},ree,F)},dee=ln("div",{name:"MuiListItem",slot:"Root",overridesResolver:cee})(({theme:e,ownerState:r})=>Ge({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&Ge({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{[`& > .${nee.root}`]:{paddingRight:48}},{[`&.${dm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.alignItems==="flex-start"&&{alignItems:"flex-start"},r.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},r.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wi(e.palette.primary.main,e.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})),hee=ln("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,r)=>r.container})({position:"relative"}),ex=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiListItem"}),{alignItems:j="center",autoFocus:Y=!1,button:D=!1,children:O,className:t,component:l,components:S={},componentsProps:i={},ContainerComponent:C="li",ContainerProps:{className:w}={},dense:v=!1,disabled:m=!1,disableGutters:a=!1,disablePadding:n=!1,divider:s=!1,focusVisibleClassName:o,secondaryAction:h,selected:f=!1,slotProps:u={},slots:b={}}=F,p=hn(F.ContainerProps,lee),E=hn(F,uee),g=Oe.useContext(qh),c=Oe.useMemo(()=>({dense:v||g.dense||!1,alignItems:j,disableGutters:a}),[j,g.dense,v,a]),y=Oe.useRef(null);Gi(()=>{Y&&y.current&&y.current.focus()},[Y]);const A=Oe.Children.toArray(O),M=A.length&&px(A[A.length-1],["ListItemSecondaryAction"]),R=Ge({},F,{alignItems:j,autoFocus:Y,button:D,dense:c.dense,disabled:m,disableGutters:a,disablePadding:n,divider:s,hasSecondaryAction:M,selected:f}),T=fee(R),L=vi(y,x),P=b.root||S.Root||dee,d=u.root||i.root||{},k=Ge({className:Ln(T.root,d.className,t),disabled:m},E);let I=l||"li";return D&&(k.component=l||"div",k.focusVisibleClassName=Ln(dm.focusVisible,o),I=Ef),M?(I=!k.component&&!l?"div":I,C==="li"&&(I==="li"?I="div":k.component==="li"&&(k.component="div")),Ce.jsx(qh.Provider,{value:c,children:Ce.jsxs(hee,Ge({as:C,className:Ln(T.container,w),ref:L,ownerState:R},p,{children:[Ce.jsx(P,Ge({},d,!xd(P)&&{as:I,ownerState:Ge({},R,d.ownerState)},k,{children:A})),A.pop()]}))})):Ce.jsx(qh.Provider,{value:c,children:Ce.jsxs(P,Ge({},d,{as:I,ref:L},!xd(P)&&{ownerState:Ge({},R,d.ownerState)},k,{children:[A,h&&Ce.jsx(B9,{children:h})]}))})});function vee(e){return ka("MuiListItemIcon",e)}const pL=Ca("MuiListItemIcon",["root","alignItemsFlexStart"]),pee=["className"],gee=e=>{const{alignItems:r,classes:x}=e;return qn({root:["root",r==="flex-start"&&"alignItemsFlexStart"]},vee,x)},mee=ln("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.alignItems==="flex-start"&&r.alignItemsFlexStart]}})(({theme:e,ownerState:r})=>Ge({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},r.alignItems==="flex-start"&&{marginTop:8})),_p=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiListItemIcon"}),{className:j}=F,Y=hn(F,pee),D=Oe.useContext(qh),O=Ge({},F,{alignItems:D.alignItems}),t=gee(O);return Ce.jsx(mee,Ge({className:Ln(t.root,j),ownerState:O,ref:x},Y))});function yee(e){return ka("MuiListItemText",e)}const a2=Ca("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xee=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],bee=e=>{const{classes:r,inset:x,primary:F,secondary:j,dense:Y}=e;return qn({root:["root",x&&"inset",Y&&"dense",F&&j&&"multiline"],primary:["primary"],secondary:["secondary"]},yee,r)},wee=ln("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[{[`& .${a2.primary}`]:r.primary},{[`& .${a2.secondary}`]:r.secondary},r.root,x.inset&&r.inset,x.primary&&x.secondary&&r.multiline,x.dense&&r.dense]}})(({ownerState:e})=>Ge({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),$m=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiListItemText"}),{children:j,className:Y,disableTypography:D=!1,inset:O=!1,primary:t,primaryTypographyProps:l,secondary:S,secondaryTypographyProps:i}=F,C=hn(F,xee),{dense:w}=Oe.useContext(qh);let v=t??j,m=S;const a=Ge({},F,{disableTypography:D,inset:O,primary:!!v,secondary:!!m,dense:w}),n=bee(a);return v!=null&&v.type!==ea&&!D&&(v=Ce.jsx(ea,Ge({variant:w?"body2":"body1",className:n.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:v}))),m!=null&&m.type!==ea&&!D&&(m=Ce.jsx(ea,Ge({variant:"body2",className:n.secondary,color:"text.secondary",display:"block"},i,{children:m}))),Ce.jsxs(wee,Ge({className:Ln(n.root,Y),ownerState:a,ref:x},C,{children:[v,m]}))}),Tee=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hC(e,r,x){return e===r?e.firstChild:r&&r.nextElementSibling?r.nextElementSibling:x?null:e.firstChild}function gL(e,r,x){return e===r?x?e.firstChild:e.lastChild:r&&r.previousElementSibling?r.previousElementSibling:x?null:e.lastChild}function N9(e,r){if(r===void 0)return!0;let x=e.innerText;return x===void 0&&(x=e.textContent),x=x.trim().toLowerCase(),x.length===0?!1:r.repeating?x[0]===r.keys[0]:x.indexOf(r.keys.join(""))===0}function L1(e,r,x,F,j,Y){let D=!1,O=j(e,r,r?x:!1);for(;O;){if(O===e.firstChild){if(D)return!1;D=!0}const t=F?!1:O.disabled||O.getAttribute("aria-disabled")==="true";if(!O.hasAttribute("tabindex")||!N9(O,Y)||t)O=j(e,O,x);else return O.focus(),!0}return!1}const Lb=Oe.forwardRef(function(r,x){const{actions:F,autoFocus:j=!1,autoFocusItem:Y=!1,children:D,className:O,disabledItemsFocusable:t=!1,disableListWrap:l=!1,onKeyDown:S,variant:i="selectedMenu"}=r,C=hn(r,Tee),w=Oe.useRef(null),v=Oe.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gi(()=>{j&&w.current.focus()},[j]),Oe.useImperativeHandle(F,()=>({adjustStyleForScrollbar:(o,{direction:h})=>{const f=!w.current.style.width;if(o.clientHeight{const h=w.current,f=o.key,u=oo(h).activeElement;if(f==="ArrowDown")o.preventDefault(),L1(h,u,l,t,hC);else if(f==="ArrowUp")o.preventDefault(),L1(h,u,l,t,gL);else if(f==="Home")o.preventDefault(),L1(h,null,l,t,hC);else if(f==="End")o.preventDefault(),L1(h,null,l,t,gL);else if(f.length===1){const b=v.current,p=f.toLowerCase(),E=performance.now();b.keys.length>0&&(E-b.lastTime>500?(b.keys=[],b.repeating=!0,b.previousKeyMatched=!0):b.repeating&&p!==b.keys[0]&&(b.repeating=!1)),b.lastTime=E,b.keys.push(p);const g=u&&!b.repeating&&N9(u,b);b.previousKeyMatched&&(g||L1(h,u,!1,t,hC,b))?o.preventDefault():b.previousKeyMatched=!1}S&&S(o)},a=vi(w,x);let n=-1;Oe.Children.forEach(D,(o,h)=>{if(!Oe.isValidElement(o)){n===h&&(n+=1,n>=D.length&&(n=-1));return}o.props.disabled||(i==="selectedMenu"&&o.props.selected||n===-1)&&(n=h),n===h&&(o.props.disabled||o.props.muiSkipListHighlight||o.type.muiSkipListHighlight)&&(n+=1,n>=D.length&&(n=-1))});const s=Oe.Children.map(D,(o,h)=>{if(h===n){const f={};return Y&&(f.autoFocus=!0),o.props.tabIndex===void 0&&i==="selectedMenu"&&(f.tabIndex=0),Oe.cloneElement(o,f)}return o});return Ce.jsx(d5,Ge({role:"menu",ref:a,className:O,onKeyDown:m,tabIndex:j?0:-1},C,{children:s}))});function See(e){return ka("MuiPopover",e)}Ca("MuiPopover",["root","paper"]);const Cee=["onEntering"],Mee=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Aee=["slotProps"];function mL(e,r){let x=0;return typeof r=="number"?x=r:r==="center"?x=e.height/2:r==="bottom"&&(x=e.height),x}function yL(e,r){let x=0;return typeof r=="number"?x=r:r==="center"?x=e.width/2:r==="right"&&(x=e.width),x}function xL(e){return[e.horizontal,e.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function vC(e){return typeof e=="function"?e():e}const Eee=e=>{const{classes:r}=e;return qn({root:["root"],paper:["paper"]},See,r)},Pee=ln(LT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,r)=>r.root})({}),U9=ln(Ri,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,r)=>r.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),h5=Oe.forwardRef(function(r,x){var F,j,Y;const D=Ka({props:r,name:"MuiPopover"}),{action:O,anchorEl:t,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:S,anchorReference:i="anchorEl",children:C,className:w,container:v,elevation:m=8,marginThreshold:a=16,open:n,PaperProps:s={},slots:o,slotProps:h,transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:u=Ey,transitionDuration:b="auto",TransitionProps:{onEntering:p}={},disableScrollLock:E=!1}=D,g=hn(D.TransitionProps,Cee),c=hn(D,Mee),y=(F=h==null?void 0:h.paper)!=null?F:s,A=Oe.useRef(),M=vi(A,y.ref),R=Ge({},D,{anchorOrigin:l,anchorReference:i,elevation:m,marginThreshold:a,externalPaperSlotProps:y,transformOrigin:f,TransitionComponent:u,transitionDuration:b,TransitionProps:g}),T=Eee(R),L=Oe.useCallback(()=>{if(i==="anchorPosition")return S;const ie=vC(t),Q=(ie&&ie.nodeType===1?ie:oo(A.current).body).getBoundingClientRect();return{top:Q.top+mL(Q,l.vertical),left:Q.left+yL(Q,l.horizontal)}},[t,l.horizontal,l.vertical,S,i]),P=Oe.useCallback(ie=>({vertical:mL(ie,f.vertical),horizontal:yL(ie,f.horizontal)}),[f.horizontal,f.vertical]),d=Oe.useCallback(ie=>{const fe={width:ie.offsetWidth,height:ie.offsetHeight},Q=P(fe);if(i==="none")return{top:null,left:null,transformOrigin:xL(Q)};const J=L();let oe=J.top-Q.vertical,K=J.left-Q.horizontal;const ne=oe+fe.height,ce=K+fe.width,re=Cd(vC(t)),ee=re.innerHeight-a,de=re.innerWidth-a;if(a!==null&&oeee){const le=ne-ee;oe-=le,Q.vertical+=le}if(a!==null&&Kde){const le=ce-de;K-=le,Q.horizontal+=le}return{top:`${Math.round(oe)}px`,left:`${Math.round(K)}px`,transformOrigin:xL(Q)}},[t,i,L,P,a]),[k,I]=Oe.useState(n),N=Oe.useCallback(()=>{const ie=A.current;if(!ie)return;const fe=d(ie);fe.top!==null&&(ie.style.top=fe.top),fe.left!==null&&(ie.style.left=fe.left),ie.style.transformOrigin=fe.transformOrigin,I(!0)},[d]);Oe.useEffect(()=>(E&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[t,E,N]);const B=(ie,fe)=>{p&&p(ie,fe),N()},G=()=>{I(!1)};Oe.useEffect(()=>{n&&N()}),Oe.useImperativeHandle(O,()=>n?{updatePosition:()=>{N()}}:null,[n,N]),Oe.useEffect(()=>{if(!n)return;const ie=bg(()=>{N()}),fe=Cd(t);return fe.addEventListener("resize",ie),()=>{ie.clear(),fe.removeEventListener("resize",ie)}},[t,n,N]);let U=b;b==="auto"&&!u.muiSupportAuto&&(U=void 0);const H=v||(t?oo(vC(t)).body:void 0),W=(j=o==null?void 0:o.root)!=null?j:Pee,V=(Y=o==null?void 0:o.paper)!=null?Y:U9,$=hi({elementType:V,externalSlotProps:Ge({},y,{style:k?y.style:Ge({},y.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:R,className:Ln(T.paper,y==null?void 0:y.className)}),Z=hi({elementType:W,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:c,additionalProps:{ref:x,slotProps:{backdrop:{invisible:!0}},container:H,open:n},ownerState:R,className:Ln(T.root,w)}),{slotProps:q}=Z,ae=hn(Z,Aee);return Ce.jsx(W,Ge({},ae,!xd(W)&&{slotProps:q,disableScrollLock:E},{children:Ce.jsx(u,Ge({appear:!0,in:n,onEntering:B,onExited:G,timeout:U},g,{children:Ce.jsx(V,Ge({},$,{children:C}))}))}))});function Lee(e){return ka("MuiMenu",e)}Ca("MuiMenu",["root","paper","list"]);const Iee=["onEntering"],Ree=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kee={vertical:"top",horizontal:"right"},Dee={vertical:"top",horizontal:"left"},Oee=e=>{const{classes:r}=e;return qn({root:["root"],paper:["paper"],list:["list"]},Lee,r)},Fee=ln(h5,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,r)=>r.root})({}),_ee=ln(U9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,r)=>r.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zee=ln(Lb,{name:"MuiMenu",slot:"List",overridesResolver:(e,r)=>r.list})({outline:0}),Bee=Oe.forwardRef(function(r,x){var F,j;const Y=Ka({props:r,name:"MuiMenu"}),{autoFocus:D=!0,children:O,className:t,disableAutoFocusItem:l=!1,MenuListProps:S={},onClose:i,open:C,PaperProps:w={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:a}={},variant:n="selectedMenu",slots:s={},slotProps:o={}}=Y,h=hn(Y.TransitionProps,Iee),f=hn(Y,Ree),u=_l(),b=Ge({},Y,{autoFocus:D,disableAutoFocusItem:l,MenuListProps:S,onEntering:a,PaperProps:w,transitionDuration:m,TransitionProps:h,variant:n}),p=Oee(b),E=D&&!l&&C,g=Oe.useRef(null),c=(P,d)=>{g.current&&g.current.adjustStyleForScrollbar(P,{direction:u?"rtl":"ltr"}),a&&a(P,d)},y=P=>{P.key==="Tab"&&(P.preventDefault(),i&&i(P,"tabKeyDown"))};let A=-1;Oe.Children.map(O,(P,d)=>{Oe.isValidElement(P)&&(P.props.disabled||(n==="selectedMenu"&&P.props.selected||A===-1)&&(A=d))});const M=(F=s.paper)!=null?F:_ee,R=(j=o.paper)!=null?j:w,T=hi({elementType:s.root,externalSlotProps:o.root,ownerState:b,className:[p.root,t]}),L=hi({elementType:M,externalSlotProps:R,ownerState:b,className:p.paper});return Ce.jsx(Fee,Ge({onClose:i,anchorOrigin:{vertical:"bottom",horizontal:u?"right":"left"},transformOrigin:u?kee:Dee,slots:{paper:M,root:s.root},slotProps:{root:T,paper:L},open:C,ref:x,transitionDuration:m,TransitionProps:Ge({onEntering:c},h),ownerState:b},f,{classes:v,children:Ce.jsx(zee,Ge({onKeyDown:y,actions:g,autoFocus:D&&(A===-1||l),autoFocusItem:E,variant:n},S,{className:Ln(p.list,S.className),children:O}))}))});function Nee(e){return ka("MuiMenuItem",e)}const I1=Ca("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Uee=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hee=(e,r)=>{const{ownerState:x}=e;return[r.root,x.dense&&r.dense,x.divider&&r.divider,!x.disableGutters&&r.gutters]},Vee=e=>{const{disabled:r,dense:x,divider:F,disableGutters:j,selected:Y,classes:D}=e,t=qn({root:["root",x&&"dense",r&&"disabled",!j&&"gutters",F&&"divider",Y&&"selected"]},Nee,D);return Ge({},D,t)},jee=ln(Ef,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Hee})(({theme:e,ownerState:r})=>Ge({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${I1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${I1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${I1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${I1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${I1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rL.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rL.inset}`]:{marginLeft:52},[`& .${a2.root}`]:{marginTop:0,marginBottom:0},[`& .${a2.inset}`]:{paddingLeft:36},[`& .${pL.root}`]:{minWidth:36}},!r.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&Ge({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pL.root} svg`]:{fontSize:"1.25rem"}}))),uo=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiMenuItem"}),{autoFocus:j=!1,component:Y="li",dense:D=!1,divider:O=!1,disableGutters:t=!1,focusVisibleClassName:l,role:S="menuitem",tabIndex:i,className:C}=F,w=hn(F,Uee),v=Oe.useContext(qh),m=Oe.useMemo(()=>({dense:D||v.dense||!1,disableGutters:t}),[v.dense,D,t]),a=Oe.useRef(null);Gi(()=>{j&&a.current&&a.current.focus()},[j]);const n=Ge({},F,{dense:m.dense,divider:O,disableGutters:t}),s=Vee(F),o=vi(a,x);let h;return F.disabled||(h=i!==void 0?i:-1),Ce.jsx(qh.Provider,{value:m,children:Ce.jsx(jee,Ge({ref:o,role:S,tabIndex:h,component:Y,focusVisibleClassName:Ln(s.focusVisible,l),className:Ln(s.root,C)},w,{ownerState:n,classes:s}))})});function Gee(e){return ka("MuiNativeSelect",e)}const v5=Ca("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Wee=["className","disabled","error","IconComponent","inputRef","variant"],$ee=e=>{const{classes:r,variant:x,disabled:F,multiple:j,open:Y,error:D}=e,O={select:["select",x,F&&"disabled",j&&"multiple",D&&"error"],icon:["icon",`icon${Gn(x)}`,Y&&"iconOpen",F&&"disabled"]};return qn(O,Gee,r)},H9=({ownerState:e,theme:r})=>Ge({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ge({},r.vars?{backgroundColor:`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:r.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${v5.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}}),Yee=ln("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ec,overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.select,r[x.variant],x.error&&r.error,{[`&.${v5.multiple}`]:r.multiple}]}})(H9),V9=({ownerState:e,theme:r})=>Ge({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,[`&.${v5.disabled}`]:{color:(r.vars||r).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Xee=ln("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.icon,x.variant&&r[`icon${Gn(x.variant)}`],x.open&&r.iconOpen]}})(V9),Zee=Oe.forwardRef(function(r,x){const{className:F,disabled:j,error:Y,IconComponent:D,inputRef:O,variant:t="standard"}=r,l=hn(r,Wee),S=Ge({},r,{disabled:j,variant:t,error:Y}),i=$ee(S);return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(Yee,Ge({ownerState:S,className:Ln(i.select,F),disabled:j,ref:O||x},l)),r.multiple?null:Ce.jsx(Xee,{as:D,ownerState:S,className:i.icon})]})});var bL;const Kee=["children","classes","className","label","notched"],Jee=ln("fieldset",{shouldForwardProp:ec})({textAlign:"left",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",minWidth:"0%"}),Qee=ln("legend",{shouldForwardProp:ec})(({ownerState:e,theme:r})=>Ge({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},e.withLabel&&Ge({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})})));function qee(e){const{className:r,label:x,notched:F}=e,j=hn(e,Kee),Y=x!=null&&x!=="",D=Ge({},e,{notched:F,withLabel:Y});return Ce.jsx(Jee,Ge({"aria-hidden":!0,className:r,ownerState:D},j,{children:Ce.jsx(Qee,{ownerState:D,children:Y?Ce.jsx("span",{children:x}):bL||(bL=Ce.jsx("span",{className:"notranslate",children:"​"}))})}))}const ete=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],tte=e=>{const{classes:r}=e,F=qn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dK,r);return Ge({},r,F)},rte=ln(AT,{shouldForwardProp:e=>ec(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:CT})(({theme:e,ownerState:r})=>{const x=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ge({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:x}},[`&.${Kd.focused} .${Kd.notchedOutline}`]:{borderColor:(e.vars||e).palette[r.color].main,borderWidth:2},[`&.${Kd.error} .${Kd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Kd.disabled} .${Kd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&Ge({padding:"16.5px 14px"},r.size==="small"&&{padding:"8.5px 14px"}))}),nte=ln(qee,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,r)=>r.notchedOutline})(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}}),ate=ln(ET,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:MT})(({theme:e,ownerState:r})=>Ge({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},r.size==="small"&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})),p5=Oe.forwardRef(function(r,x){var F,j,Y,D,O;const t=Ka({props:r,name:"MuiOutlinedInput"}),{components:l={},fullWidth:S=!1,inputComponent:i="input",label:C,multiline:w=!1,notched:v,slots:m={},type:a="text"}=t,n=hn(t,ete),s=tte(t),o=tc(),h=Zp({props:t,muiFormControl:o,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),f=Ge({},t,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:o,fullWidth:S,hiddenLabel:h.hiddenLabel,multiline:w,size:h.size,type:a}),u=(F=(j=m.root)!=null?j:l.Root)!=null?F:rte,b=(Y=(D=m.input)!=null?D:l.Input)!=null?Y:ate;return Ce.jsx(Vy,Ge({slots:{root:u,input:b},renderSuffix:p=>Ce.jsx(nte,{ownerState:f,className:s.notchedOutline,label:C!=null&&C!==""&&h.required?O||(O=Ce.jsxs(Oe.Fragment,{children:[C," ","*"]})):C,notched:typeof v<"u"?v:!!(p.startAdornment||p.filled||p.focused)}),fullWidth:S,inputComponent:i,multiline:w,ref:x,type:a},n,{classes:Ge({},s,{notchedOutline:null})}))});p5.muiName="Input";function ite(e){return ka("MuiPagination",e)}Ca("MuiPagination",["root","ul","outlined","text"]);const ote=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function ste(e={}){const{boundaryCount:r=1,componentName:x="usePagination",count:F=1,defaultPage:j=1,disabled:Y=!1,hideNextButton:D=!1,hidePrevButton:O=!1,onChange:t,page:l,showFirstButton:S=!1,showLastButton:i=!1,siblingCount:C=1}=e,w=hn(e,ote),[v,m]=Ol({controlled:l,default:j,name:x,state:"page"}),a=(E,g)=>{l||m(g),t&&t(E,g)},n=(E,g)=>{const c=g-E+1;return Array.from({length:c},(y,A)=>E+A)},s=n(1,Math.min(r,F)),o=n(Math.max(F-r+1,r+1),F),h=Math.max(Math.min(v-C,F-r-C*2-1),r+2),f=Math.min(Math.max(v+C,r+C*2+2),o.length>0?o[0]-2:F-1),u=[...S?["first"]:[],...O?[]:["previous"],...s,...h>r+2?["start-ellipsis"]:r+1r?[F-r]:[],...o,...D?[]:["next"],...i?["last"]:[]],b=E=>{switch(E){case"first":return 1;case"previous":return v-1;case"next":return v+1;case"last":return F;default:return null}},p=u.map(E=>typeof E=="number"?{onClick:g=>{a(g,E)},type:"page",page:E,selected:E===v,disabled:Y,"aria-current":E===v?"true":void 0}:{onClick:g=>{a(g,b(E))},type:E,page:b(E),selected:!1,disabled:Y||E.indexOf("ellipsis")===-1&&(E==="next"||E==="last"?v>=F:v<=1)});return Ge({items:p},w)}function lte(e){return ka("MuiPaginationItem",e)}const af=Ca("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Z4=ci(Ce.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),K4=ci(Ce.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),wL=ci(Ce.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),TL=ci(Ce.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),ute=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],j9=(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],r[`size${Gn(x.size)}`],x.variant==="text"&&r[`text${Gn(x.color)}`],x.variant==="outlined"&&r[`outlined${Gn(x.color)}`],x.shape==="rounded"&&r.rounded,x.type==="page"&&r.page,(x.type==="start-ellipsis"||x.type==="end-ellipsis")&&r.ellipsis,(x.type==="previous"||x.type==="next")&&r.previousNext,(x.type==="first"||x.type==="last")&&r.firstLast]},cte=e=>{const{classes:r,color:x,disabled:F,selected:j,size:Y,shape:D,type:O,variant:t}=e,l={root:["root",`size${Gn(Y)}`,t,D,x!=="standard"&&`color${Gn(x)}`,x!=="standard"&&`${t}${Gn(x)}`,F&&"disabled",j&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[O]],icon:["icon"]};return qn(l,lte,r)},fte=ln("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:j9})(({theme:e,ownerState:r})=>Ge({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${af.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},r.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),dte=ln(Ef,{name:"MuiPaginationItem",slot:"Root",overridesResolver:j9})(({theme:e,ownerState:r})=>Ge({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${af.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${af.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${af.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${af.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${af.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},r.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},r.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},r.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:r})=>Ge({},r.variant==="text"&&{[`&.${af.selected}`]:Ge({},r.color!=="standard"&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}},[`&.${af.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r.color].dark}},{[`&.${af.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},r.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${af.selected}`]:Ge({},r.color!=="standard"&&{color:(e.vars||e).palette[r.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:wi(e.palette[r.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:wi(e.palette[r.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette[r.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${af.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wi(e.palette[r.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${af.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),hte=ln("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,r)=>r.icon})(({theme:e,ownerState:r})=>Ge({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},r.size==="small"&&{fontSize:e.typography.pxToRem(18)},r.size==="large"&&{fontSize:e.typography.pxToRem(22)})),vte=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiPaginationItem"}),{className:j,color:Y="standard",component:D,components:O={},disabled:t=!1,page:l,selected:S=!1,shape:i="circular",size:C="medium",slots:w={},type:v="page",variant:m="text"}=F,a=hn(F,ute),n=Ge({},F,{color:Y,disabled:t,selected:S,shape:i,size:C,type:v,variant:m}),s=_l(),o=cte(n),f=(s?{previous:w.next||O.next||TL,next:w.previous||O.previous||wL,last:w.first||O.first||Z4,first:w.last||O.last||K4}:{previous:w.previous||O.previous||wL,next:w.next||O.next||TL,first:w.first||O.first||Z4,last:w.last||O.last||K4})[v];return v==="start-ellipsis"||v==="end-ellipsis"?Ce.jsx(fte,{ref:x,ownerState:n,className:Ln(o.root,j),children:"…"}):Ce.jsxs(dte,Ge({ref:x,ownerState:n,component:D,disabled:t,className:Ln(o.root,j)},a,{children:[v==="page"&&l,f?Ce.jsx(hte,{as:f,ownerState:n,className:o.icon}):null]}))}),pte=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],gte=e=>{const{classes:r,variant:x}=e;return qn({root:["root",x],ul:["ul"]},ite,r)},mte=ln("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant]]}})({}),yte=ln("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,r)=>r.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function xte(e,r,x){return e==="page"?`${x?"":"Go to "}page ${r}`:`Go to ${e} page`}const bte=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiPagination"}),{boundaryCount:j=1,className:Y,color:D="standard",count:O=1,defaultPage:t=1,disabled:l=!1,getItemAriaLabel:S=xte,hideNextButton:i=!1,hidePrevButton:C=!1,renderItem:w=p=>Ce.jsx(vte,Ge({},p)),shape:v="circular",showFirstButton:m=!1,showLastButton:a=!1,siblingCount:n=1,size:s="medium",variant:o="text"}=F,h=hn(F,pte),{items:f}=ste(Ge({},F,{componentName:"Pagination"})),u=Ge({},F,{boundaryCount:j,color:D,count:O,defaultPage:t,disabled:l,getItemAriaLabel:S,hideNextButton:i,hidePrevButton:C,renderItem:w,shape:v,showFirstButton:m,showLastButton:a,siblingCount:n,size:s,variant:o}),b=gte(u);return Ce.jsx(mte,Ge({"aria-label":"pagination navigation",className:Ln(b.root,Y),ownerState:u,ref:x},h,{children:Ce.jsx(yte,{className:b.ul,ownerState:u,children:f.map((p,E)=>Ce.jsx("li",{children:w(Ge({},p,{color:D,"aria-label":S(p.type,p.page,p.selected),shape:v,size:s,variant:o}))},E))})}))});function wte(e){return ka("MuiSelect",e)}const R1=Ca("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var SL;const Tte=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ste=ln("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[{[`&.${R1.select}`]:r.select},{[`&.${R1.select}`]:r[x.variant]},{[`&.${R1.error}`]:r.error},{[`&.${R1.multiple}`]:r.multiple}]}})(H9,{[`&.${R1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cte=ln("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.icon,x.variant&&r[`icon${Gn(x.variant)}`],x.open&&r.iconOpen]}})(V9),Mte=ln("input",{shouldForwardProp:e=>bT(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,r)=>r.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function CL(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}function Ate(e){return e==null||typeof e=="string"&&!e.trim()}const Ete=e=>{const{classes:r,variant:x,disabled:F,multiple:j,open:Y,error:D}=e,O={select:["select",x,F&&"disabled",j&&"multiple",D&&"error"],icon:["icon",`icon${Gn(x)}`,Y&&"iconOpen",F&&"disabled"],nativeInput:["nativeInput"]};return qn(O,wte,r)},Pte=Oe.forwardRef(function(r,x){var F;const{"aria-describedby":j,"aria-label":Y,autoFocus:D,autoWidth:O,children:t,className:l,defaultOpen:S,defaultValue:i,disabled:C,displayEmpty:w,error:v=!1,IconComponent:m,inputRef:a,labelId:n,MenuProps:s={},multiple:o,name:h,onBlur:f,onChange:u,onClose:b,onFocus:p,onOpen:E,open:g,readOnly:c,renderValue:y,SelectDisplayProps:A={},tabIndex:M,value:R,variant:T="standard"}=r,L=hn(r,Tte),[P,d]=Ol({controlled:R,default:i,name:"Select"}),[k,I]=Ol({controlled:g,default:S,name:"Select"}),N=Oe.useRef(null),B=Oe.useRef(null),[G,U]=Oe.useState(null),{current:H}=Oe.useRef(g!=null),[W,V]=Oe.useState(),$=vi(x,a),Z=Oe.useCallback(Ie=>{B.current=Ie,Ie&&U(Ie)},[]),q=G==null?void 0:G.parentNode;Oe.useImperativeHandle($,()=>({focus:()=>{B.current.focus()},node:N.current,value:P}),[P]),Oe.useEffect(()=>{S&&k&&G&&!H&&(V(O?null:q.clientWidth),B.current.focus())},[G,O]),Oe.useEffect(()=>{D&&B.current.focus()},[D]),Oe.useEffect(()=>{if(!n)return;const Ie=oo(B.current).getElementById(n);if(Ie){const Ue=()=>{getSelection().isCollapsed&&B.current.focus()};return Ie.addEventListener("click",Ue),()=>{Ie.removeEventListener("click",Ue)}}},[n]);const ae=(Ie,Ue)=>{Ie?E&&E(Ue):b&&b(Ue),H||(V(O?null:q.clientWidth),I(Ie))},ie=Ie=>{Ie.button===0&&(Ie.preventDefault(),B.current.focus(),ae(!0,Ie))},fe=Ie=>{ae(!1,Ie)},Q=Oe.Children.toArray(t),J=Ie=>{const Ue=Q.find(Ne=>Ne.props.value===Ie.target.value);Ue!==void 0&&(d(Ue.props.value),u&&u(Ie,Ue))},oe=Ie=>Ue=>{let Ne;if(Ue.currentTarget.hasAttribute("tabindex")){if(o){Ne=Array.isArray(P)?P.slice():[];const ze=P.indexOf(Ie.props.value);ze===-1?Ne.push(Ie.props.value):Ne.splice(ze,1)}else Ne=Ie.props.value;if(Ie.props.onClick&&Ie.props.onClick(Ue),P!==Ne&&(d(Ne),u)){const ze=Ue.nativeEvent||Ue,$e=new ze.constructor(ze.type,ze);Object.defineProperty($e,"target",{writable:!0,value:{value:Ne,name:h}}),u($e,Ie)}o||ae(!1,Ue)}},K=Ie=>{c||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ie.key)!==-1&&(Ie.preventDefault(),ae(!0,Ie))},ne=G!==null&&k,ce=Ie=>{!ne&&f&&(Object.defineProperty(Ie,"target",{writable:!0,value:{value:P,name:h}}),f(Ie))};delete L["aria-invalid"];let re,ee;const de=[];let le=!1;(n2({value:P})||w)&&(y?re=y(P):le=!0);const he=Q.map(Ie=>{if(!Oe.isValidElement(Ie))return null;let Ue;if(o){if(!Array.isArray(P))throw new Error(sv(2));Ue=P.some(Ne=>CL(Ne,Ie.props.value)),Ue&&le&&de.push(Ie.props.children)}else Ue=CL(P,Ie.props.value),Ue&&le&&(ee=Ie.props.children);return Oe.cloneElement(Ie,{"aria-selected":Ue?"true":"false",onClick:oe(Ie),onKeyUp:Ne=>{Ne.key===" "&&Ne.preventDefault(),Ie.props.onKeyUp&&Ie.props.onKeyUp(Ne)},role:"option",selected:Ue,value:void 0,"data-value":Ie.props.value})});le&&(o?de.length===0?re=null:re=de.reduce((Ie,Ue,Ne)=>(Ie.push(Ue),Ne{const{classes:r}=e;return r},g5={name:"MuiSelect",overridesResolver:(e,r)=>r.root,shouldForwardProp:e=>ec(e)&&e!=="variant",slot:"Root"},kte=ln(u5,g5)(""),Dte=ln(p5,g5)(""),Ote=ln(s5,g5)(""),gd=Oe.forwardRef(function(r,x){const F=Ka({name:"MuiSelect",props:r}),{autoWidth:j=!1,children:Y,classes:D={},className:O,defaultOpen:t=!1,displayEmpty:l=!1,IconComponent:S=P9,id:i,input:C,inputProps:w,label:v,labelId:m,MenuProps:a,multiple:n=!1,native:s=!1,onClose:o,onOpen:h,open:f,renderValue:u,SelectDisplayProps:b,variant:p="outlined"}=F,E=hn(F,Lte),g=s?Zee:Pte,c=tc(),y=Zp({props:F,muiFormControl:c,states:["variant","error"]}),A=y.variant||p,M=Ge({},F,{variant:A,classes:D}),R=Rte(M),T=hn(R,Ite),L=C||{standard:Ce.jsx(kte,{ownerState:M}),outlined:Ce.jsx(Dte,{label:v,ownerState:M}),filled:Ce.jsx(Ote,{ownerState:M})}[A],P=vi(x,L.ref);return Ce.jsx(Oe.Fragment,{children:Oe.cloneElement(L,Ge({inputComponent:g,inputProps:Ge({children:Y,error:y.error,IconComponent:S,variant:A,type:void 0,multiple:n},s?{id:i}:{autoWidth:j,defaultOpen:t,displayEmpty:l,labelId:m,MenuProps:a,onClose:o,onOpen:h,open:f,renderValue:u,SelectDisplayProps:Ge({id:i},b)},w,{classes:w?wu(T,w.classes):T},C?C.props.inputProps:{})},(n&&s||l)&&A==="outlined"?{notched:!0}:{},{ref:P,className:Ln(L.props.className,O,R.root)},!C&&{variant:A},E))})});gd.muiName="Select";function Fte(e){return ka("MuiSkeleton",e)}Ca("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const _te=["animation","className","component","height","style","variant","width"];let i2=e=>e,ML,AL,EL,PL;const zte=e=>{const{classes:r,variant:x,animation:F,hasChildren:j,width:Y,height:D}=e;return qn({root:["root",x,F,j&&"withChildren",j&&!Y&&"fitContent",j&&!D&&"heightAuto"]},Fte,r)},Bte=Ad(ML||(ML=i2` 0% { opacity: 1; } @@ -218,7 +218,7 @@ Error generating stack: `+Y.message+` 100% { opacity: 1; } -`)),eae=Sd(OL||(OL=d2` +`)),Nte=Ad(AL||(AL=i2` 0% { transform: translateX(-100%); } @@ -231,9 +231,9 @@ Error generating stack: `+Y.message+` 100% { transform: translateX(100%); } -`)),tae=ln("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],y.animation!==!1&&r[y.animation],y.hasChildren&&r.withChildren,y.hasChildren&&!y.width&&r.fitContent,y.hasChildren&&!y.height&&r.heightAuto]}})(({theme:e,ownerState:r})=>{const y=pY(e.shape.borderRadius)||"px",F=gY(e.shape.borderRadius);return Ge({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Tc(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},r.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${F}${y}/${Math.round(F/.6*10)/10}${y}`,"&:empty:before":{content:'"\\00a0"'}},r.variant==="circular"&&{borderRadius:"50%"},r.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ov(FL||(FL=d2` +`)),Ute=ln("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],x.animation!==!1&&r[x.animation],x.hasChildren&&r.withChildren,x.hasChildren&&!x.width&&r.fitContent,x.hasChildren&&!x.height&&r.heightAuto]}})(({theme:e,ownerState:r})=>{const x=_$(e.shape.borderRadius)||"px",F=z$(e.shape.borderRadius);return Ge({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Sc(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},r.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${F}${x}/${Math.round(F/.6*10)/10}${x}`,"&:empty:before":{content:'"\\00a0"'}},r.variant==="circular"&&{borderRadius:"50%"},r.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&lv(EL||(EL=i2` animation: ${0} 2s ease-in-out 0.5s infinite; - `),qne),({ownerState:e,theme:r})=>e.animation==="wave"&&ov(_L||(_L=d2` + `),Bte),({ownerState:e,theme:r})=>e.animation==="wave"&&lv(PL||(PL=i2` position: relative; overflow: hidden; @@ -256,15 +256,15 @@ Error generating stack: `+Y.message+` right: 0; top: 0; } - `),eae,(r.vars||r).palette.action.hover)),rae=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiSkeleton"}),{animation:j="pulse",className:Y,component:D="span",height:O,style:t,variant:l="text",width:S}=F,i=hn(F,Jne),C=Ge({},F,{animation:j,component:D,variant:l,hasChildren:!!i.children}),w=Qne(C);return Ce.jsx(tae,Ge({as:D,ref:y,className:Ln(w.root,Y),ownerState:C},i,{style:Ge({width:S,height:O},t)}))}),sO=rae;function nae(e,r,y=(F,j)=>F===j){return e.length===r.length&&e.every((F,j)=>y(F,r[j]))}const aae=2;function lO(e,r){return e-r}function zL(e,r){var y;const{index:F}=(y=e.reduce((j,Y,D)=>{const O=Math.abs(r-Y);return j===null||O({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},uae=e=>e;let qw;function NL(){return qw===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?qw=CSS.supports("touch-action","none"):qw=!0),qw}function cae(e){const{"aria-labelledby":r,defaultValue:y,disabled:F=!1,disableSwap:j=!1,isRtl:Y=!1,marks:D=!1,max:O=100,min:t=0,name:l,onChange:S,onChangeCommitted:i,orientation:C="horizontal",rootRef:w,scale:v=uae,step:m=1,shiftStep:a=10,tabIndex:n,value:s}=e,o=Oe.useRef(),[h,f]=Oe.useState(-1),[u,b]=Oe.useState(-1),[p,E]=Oe.useState(!1),g=Oe.useRef(0),[c,x]=Dl({controlled:s,default:y??t,name:"Slider"}),A=S&&((Se,ke,Te)=>{const Ae=Se.nativeEvent||Se,be=new Ae.constructor(Ae.type,Ae);Object.defineProperty(be,"target",{writable:!0,value:{value:ke,name:l}}),S(be,ke,Te)}),M=Array.isArray(c);let R=M?c.slice().sort(lO):[c];R=R.map(Se=>Se==null?t:_0(Se,t,O));const T=D===!0&&m!==null?[...Array(Math.floor((O-t)/m)+1)].map((Se,ke)=>({value:t+m*ke})):D||[],L=T.map(Se=>Se.value),{isFocusVisibleRef:P,onBlur:d,onFocus:k,ref:I}=Rb(),[N,B]=Oe.useState(-1),G=Oe.useRef(),U=pi(I,G),H=pi(w,U),W=Se=>ke=>{var Te;const Ae=Number(ke.currentTarget.getAttribute("data-index"));k(ke),P.current===!0&&B(Ae),b(Ae),Se==null||(Te=Se.onFocus)==null||Te.call(Se,ke)},V=Se=>ke=>{var Te;d(ke),P.current===!1&&B(-1),b(-1),Se==null||(Te=Se.onBlur)==null||Te.call(Se,ke)},$=(Se,ke)=>{const Te=Number(Se.currentTarget.getAttribute("data-index")),Ae=R[Te],be=L.indexOf(Ae);let Ie=ke;if(T&&m==null){const Ue=L[L.length-1];Ie>Ue?Ie=Ue:Ieke=>{var Te;if(m!==null){const Ae=Number(ke.currentTarget.getAttribute("data-index")),be=R[Ae];let Ie=null;(ke.key==="ArrowLeft"||ke.key==="ArrowDown")&&ke.shiftKey||ke.key==="PageDown"?Ie=Math.max(be-a,t):((ke.key==="ArrowRight"||ke.key==="ArrowUp")&&ke.shiftKey||ke.key==="PageUp")&&(Ie=Math.min(be+a,O)),Ie!==null&&($(ke,Ie),ke.preventDefault())}Se==null||(Te=Se.onKeyDown)==null||Te.call(Se,ke)};Gi(()=>{if(F&&G.current.contains(document.activeElement)){var Se;(Se=document.activeElement)==null||Se.blur()}},[F]),F&&h!==-1&&f(-1),F&&N!==-1&&B(-1);const q=Se=>ke=>{var Te;(Te=Se.onChange)==null||Te.call(Se,ke),$(ke,ke.target.valueAsNumber)},ae=Oe.useRef();let ie=C;Y&&C==="horizontal"&&(ie+="-reverse");const fe=({finger:Se,move:ke=!1})=>{const{current:Te}=G,{width:Ae,height:be,bottom:Ie,left:Ue}=Te.getBoundingClientRect();let Ne;ie.indexOf("vertical")===0?Ne=(Ie-Se.y)/be:Ne=(Se.x-Ue)/Ae,ie.indexOf("-reverse")!==-1&&(Ne=1-Ne);let ze;if(ze=iae(Ne,t,O),m)ze=sae(ze,m,t);else{const st=zL(L,ze);ze=L[st]}ze=_0(ze,t,O);let $e=0;if(M){ke?$e=ae.current:$e=zL(R,ze),j&&(ze=_0(ze,R[$e-1]||-1/0,R[$e+1]||1/0));const st=ze;ze=BL({values:R,newValue:ze,index:$e}),j&&ke||($e=ze.indexOf(st),ae.current=$e)}return{newValue:ze,activeIndex:$e}},Q=pa(Se=>{const ke=Kw(Se,o);if(!ke)return;if(g.current+=1,Se.type==="mousemove"&&Se.buttons===0){J(Se);return}const{newValue:Te,activeIndex:Ae}=fe({finger:ke,move:!0});Jw({sliderRef:G,activeIndex:Ae,setActive:f}),x(Te),!p&&g.current>aae&&E(!0),A&&!Qw(Te,c)&&A(Se,Te,Ae)}),J=pa(Se=>{const ke=Kw(Se,o);if(E(!1),!ke)return;const{newValue:Te}=fe({finger:ke,move:!0});f(-1),Se.type==="touchend"&&b(-1),i&&i(Se,Te),o.current=void 0,K()}),oe=pa(Se=>{if(F)return;NL()||Se.preventDefault();const ke=Se.changedTouches[0];ke!=null&&(o.current=ke.identifier);const Te=Kw(Se,o);if(Te!==!1){const{newValue:be,activeIndex:Ie}=fe({finger:Te});Jw({sliderRef:G,activeIndex:Ie,setActive:f}),x(be),A&&!Qw(be,c)&&A(Se,be,Ie)}g.current=0;const Ae=oo(G.current);Ae.addEventListener("touchmove",Q,{passive:!0}),Ae.addEventListener("touchend",J,{passive:!0})}),K=Oe.useCallback(()=>{const Se=oo(G.current);Se.removeEventListener("mousemove",Q),Se.removeEventListener("mouseup",J),Se.removeEventListener("touchmove",Q),Se.removeEventListener("touchend",J)},[J,Q]);Oe.useEffect(()=>{const{current:Se}=G;return Se.addEventListener("touchstart",oe,{passive:NL()}),()=>{Se.removeEventListener("touchstart",oe),K()}},[K,oe]),Oe.useEffect(()=>{F&&K()},[F,K]);const ne=Se=>ke=>{var Te;if((Te=Se.onMouseDown)==null||Te.call(Se,ke),F||ke.defaultPrevented||ke.button!==0)return;ke.preventDefault();const Ae=Kw(ke,o);if(Ae!==!1){const{newValue:Ie,activeIndex:Ue}=fe({finger:Ae});Jw({sliderRef:G,activeIndex:Ue,setActive:f}),x(Ie),A&&!Qw(Ie,c)&&A(ke,Ie,Ue)}g.current=0;const be=oo(G.current);be.addEventListener("mousemove",Q,{passive:!0}),be.addEventListener("mouseup",J)},ce=h2(M?R[0]:t,t,O),re=h2(R[R.length-1],t,O)-ce,ee=(Se={})=>{const ke=px(Se),Te={onMouseDown:ne(ke||{})},Ae=Ge({},ke,Te);return Ge({},Se,{ref:H},Ae)},de=Se=>ke=>{var Te;(Te=Se.onMouseOver)==null||Te.call(Se,ke);const Ae=Number(ke.currentTarget.getAttribute("data-index"));b(Ae)},le=Se=>ke=>{var Te;(Te=Se.onMouseLeave)==null||Te.call(Se,ke),b(-1)};return{active:h,axis:ie,axisProps:lae,dragging:p,focusedThumbIndex:N,getHiddenInputProps:(Se={})=>{var ke;const Te=px(Se),Ae={onChange:q(Te||{}),onFocus:W(Te||{}),onBlur:V(Te||{}),onKeyDown:Z(Te||{})},be=Ge({},Te,Ae);return Ge({tabIndex:n,"aria-labelledby":r,"aria-orientation":C,"aria-valuemax":v(O),"aria-valuemin":v(t),name:l,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(ke=e.step)!=null?ke:void 0,disabled:F},Se,be,{style:Ge({},e9,{direction:Y?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ee,getThumbProps:(Se={})=>{const ke=px(Se),Te={onMouseOver:de(ke||{}),onMouseLeave:le(ke||{})};return Ge({},Se,ke,Te)},marks:T,open:u,range:M,rootRef:H,trackLeap:re,trackOffset:ce,values:R,getThumbStyle:Se=>({pointerEvents:h!==-1&&h!==Se?"none":void 0})}}const fae=e=>!e||!gd(e);function dae(e){return ka("MuiSlider",e)}const hae=Ma("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),mf=hae,vae=e=>{const{open:r}=e;return{offset:Ln(r&&mf.valueLabelOpen),circle:mf.valueLabelCircle,label:mf.valueLabelLabel}};function pae(e){const{children:r,className:y,value:F}=e,j=vae(e);return r?Oe.cloneElement(r,{className:Ln(r.props.className)},Ce.jsxs(Oe.Fragment,{children:[r.props.children,Ce.jsx("span",{className:Ln(j.offset,y),"aria-hidden":!0,children:Ce.jsx("span",{className:j.circle,children:Ce.jsx("span",{className:j.label,children:F})})})]})):null}const gae=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function UL(e){return e}const mae=ln("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[`color${Gn(y.color)}`],y.size!=="medium"&&r[`size${Gn(y.size)}`],y.marked&&r.marked,y.orientation==="vertical"&&r.vertical,y.track==="inverted"&&r.trackInverted,y.track===!1&&r.trackFalse]}})(({theme:e})=>{var r;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${mf.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${mf.dragging}`]:{[`& .${mf.thumb}, & .${mf.track}`]:{transition:"none"}},variants:[...Object.keys(((r=e.vars)!=null?r:e).palette).filter(y=>{var F;return((F=e.vars)!=null?F:e).palette[y].main}).map(y=>({props:{color:y},style:{color:(e.vars||e).palette[y].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),yae=ln("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,r)=>r.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),xae=ln("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,r)=>r.track})(({theme:e})=>{var r;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((r=e.vars)!=null?r:e).palette).filter(y=>{var F;return((F=e.vars)!=null?F:e).palette[y].main}).map(y=>({props:{color:y,track:"inverted"},style:Ge({},e.vars?{backgroundColor:e.vars.palette.Slider[`${y}Track`],borderColor:e.vars.palette.Slider[`${y}Track`]}:Ge({backgroundColor:fg(e.palette[y].main,.62),borderColor:fg(e.palette[y].main,.62)},e.applyStyles("dark",{backgroundColor:cg(e.palette[y].main,.5)}),e.applyStyles("dark",{borderColor:cg(e.palette[y].main,.5)})))}))]}}),bae=ln("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.thumb,r[`thumbColor${Gn(y.color)}`],y.size!=="medium"&&r[`thumbSize${Gn(y.size)}`]]}})(({theme:e})=>{var r;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${mf.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((r=e.vars)!=null?r:e).palette).filter(y=>{var F;return((F=e.vars)!=null?F:e).palette[y].main}).map(y=>({props:{color:y},style:{[`&:hover, &.${mf.focusVisible}`]:Ge({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[y].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Ti(e.palette[y].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${mf.active}`]:Ge({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[y].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Ti(e.palette[y].main,.16)}`})}}))]}}),wae=ln(pae,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,r)=>r.valueLabel})(({theme:e})=>Ge({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${mf.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${mf.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Tae=ln("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ET(e)&&e!=="markActive",overridesResolver:(e,r)=>{const{markActive:y}=e;return[r.mark,y&&r.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Sae=ln("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ET(e)&&e!=="markLabelActive",overridesResolver:(e,r)=>r.markLabel})(({theme:e})=>Ge({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Cae=e=>{const{disabled:r,dragging:y,marked:F,orientation:j,track:Y,classes:D,color:O,size:t}=e,l={root:["root",r&&"disabled",y&&"dragging",F&&"marked",j==="vertical"&&"vertical",Y==="inverted"&&"trackInverted",Y===!1&&"trackFalse",O&&`color${Gn(O)}`,t&&`size${Gn(t)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",r&&"disabled",t&&`thumbSize${Gn(t)}`,O&&`thumbColor${Gn(O)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return qn(l,dae,D)},Mae=({children:e})=>e,Aae=Oe.forwardRef(function(r,y){var F,j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h,f,u,b,p,E,g;const c=Ka({props:r,name:"MuiSlider"}),x=Fl(),{"aria-label":A,"aria-valuetext":M,"aria-labelledby":R,component:T="span",components:L={},componentsProps:P={},color:d="primary",classes:k,className:I,disableSwap:N=!1,disabled:B=!1,getAriaLabel:G,getAriaValueText:U,marks:H=!1,max:W=100,min:V=0,orientation:$="horizontal",shiftStep:Z=10,size:q="medium",step:ae=1,scale:ie=UL,slotProps:fe,slots:Q,track:J="normal",valueLabelDisplay:oe="off",valueLabelFormat:K=UL}=c,ne=hn(c,gae),ce=Ge({},c,{isRtl:x,max:W,min:V,classes:k,disabled:B,disableSwap:N,orientation:$,marks:H,color:d,size:q,step:ae,shiftStep:Z,scale:ie,track:J,valueLabelDisplay:oe,valueLabelFormat:K}),{axisProps:re,getRootProps:ee,getHiddenInputProps:de,getThumbProps:le,open:he,active:xe,axis:Ee,focusedThumbIndex:Se,range:ke,dragging:Te,marks:Ae,values:be,trackOffset:Ie,trackLeap:Ue,getThumbStyle:Ne}=cae(Ge({},ce,{rootRef:y}));ce.marked=Ae.length>0&&Ae.some(ut=>ut.label),ce.dragging=Te,ce.focusedThumbIndex=Se;const ze=Cae(ce),$e=(F=(j=Q==null?void 0:Q.root)!=null?j:L.Root)!=null?F:mae,st=(Y=(D=Q==null?void 0:Q.rail)!=null?D:L.Rail)!=null?Y:yae,vt=(O=(t=Q==null?void 0:Q.track)!=null?t:L.Track)!=null?O:xae,at=(l=(S=Q==null?void 0:Q.thumb)!=null?S:L.Thumb)!=null?l:bae,nt=(i=(C=Q==null?void 0:Q.valueLabel)!=null?C:L.ValueLabel)!=null?i:wae,mt=(w=(v=Q==null?void 0:Q.mark)!=null?v:L.Mark)!=null?w:Tae,rt=(m=(a=Q==null?void 0:Q.markLabel)!=null?a:L.MarkLabel)!=null?m:Sae,lt=(n=(s=Q==null?void 0:Q.input)!=null?s:L.Input)!=null?n:"input",dt=(o=fe==null?void 0:fe.root)!=null?o:P.root,wt=(h=fe==null?void 0:fe.rail)!=null?h:P.rail,et=(f=fe==null?void 0:fe.track)!=null?f:P.track,Be=(u=fe==null?void 0:fe.thumb)!=null?u:P.thumb,Ye=(b=fe==null?void 0:fe.valueLabel)!=null?b:P.valueLabel,Ke=(p=fe==null?void 0:fe.mark)!=null?p:P.mark,We=(E=fe==null?void 0:fe.markLabel)!=null?E:P.markLabel,Fe=(g=fe==null?void 0:fe.input)!=null?g:P.input,Me=vi({elementType:$e,getSlotProps:ee,externalSlotProps:dt,externalForwardedProps:ne,additionalProps:Ge({},fae($e)&&{as:T}),ownerState:Ge({},ce,dt==null?void 0:dt.ownerState),className:[ze.root,I]}),we=vi({elementType:st,externalSlotProps:wt,ownerState:ce,className:ze.rail}),Re=vi({elementType:vt,externalSlotProps:et,additionalProps:{style:Ge({},re[Ee].offset(Ie),re[Ee].leap(Ue))},ownerState:Ge({},ce,et==null?void 0:et.ownerState),className:ze.track}),Pe=vi({elementType:at,getSlotProps:le,externalSlotProps:Be,ownerState:Ge({},ce,Be==null?void 0:Be.ownerState),className:ze.thumb}),Ve=vi({elementType:nt,externalSlotProps:Ye,ownerState:Ge({},ce,Ye==null?void 0:Ye.ownerState),className:ze.valueLabel}),Je=vi({elementType:mt,externalSlotProps:Ke,ownerState:ce,className:ze.mark}),ot=vi({elementType:rt,externalSlotProps:We,ownerState:ce,className:ze.markLabel}),yt=vi({elementType:lt,getSlotProps:de,externalSlotProps:Fe,ownerState:ce});return Ce.jsxs($e,Ge({},Me,{children:[Ce.jsx(st,Ge({},we)),Ce.jsx(vt,Ge({},Re)),Ae.filter(ut=>ut.value>=V&&ut.value<=W).map((ut,It)=>{const Vt=h2(ut.value,V,W),xt=re[Ee].offset(Vt);let Lt;return J===!1?Lt=be.indexOf(ut.value)!==-1:Lt=J==="normal"&&(ke?ut.value>=be[0]&&ut.value<=be[be.length-1]:ut.value<=be[0])||J==="inverted"&&(ke?ut.value<=be[0]||ut.value>=be[be.length-1]:ut.value>=be[0]),Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(mt,Ge({"data-index":It},Je,!gd(mt)&&{markActive:Lt},{style:Ge({},xt,Je.style),className:Ln(Je.className,Lt&&ze.markActive)})),ut.label!=null?Ce.jsx(rt,Ge({"aria-hidden":!0,"data-index":It},ot,!gd(rt)&&{markLabelActive:Lt},{style:Ge({},xt,ot.style),className:Ln(ze.markLabel,ot.className,Lt&&ze.markLabelActive),children:ut.label})):null]},It)}),be.map((ut,It)=>{const Vt=h2(ut,V,W),xt=re[Ee].offset(Vt),Lt=oe==="off"?Mae:nt;return Ce.jsx(Lt,Ge({},!gd(Lt)&&{valueLabelFormat:K,valueLabelDisplay:oe,value:typeof K=="function"?K(ie(ut),It):K,index:It,open:he===It||xe===It||oe==="on",disabled:B},Ve,{children:Ce.jsx(at,Ge({"data-index":It},Pe,{className:Ln(ze.thumb,Pe.className,xe===It&&ze.active,Se===It&&ze.focusVisible),style:Ge({},xt,Ne(It),Pe.style),children:Ce.jsx(lt,Ge({"data-index":It,"aria-label":G?G(It):A,"aria-valuenow":ie(ut),"aria-labelledby":R,"aria-valuetext":U?U(ie(ut),It):M,value:be[It]},yt))}))}),It)})]}))}),Eae=Aae;function Pae(e){return ka("MuiTooltip",e)}const Lae=Ma("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cp=Lae,Iae=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Rae(e){return Math.round(e*1e5)/1e5}const kae=e=>{const{classes:r,disableInteractive:y,arrow:F,touch:j,placement:Y}=e,D={popper:["popper",!y&&"popperInteractive",F&&"popperArrow"],tooltip:["tooltip",F&&"tooltipArrow",j&&"touch",`tooltipPlacement${Gn(Y.split("-")[0])}`],arrow:["arrow"]};return qn(D,Pae,r)},Dae=ln(Xp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.popper,!y.disableInteractive&&r.popperInteractive,y.arrow&&r.popperArrow,!y.open&&r.popperClose]}})(({theme:e,ownerState:r,open:y})=>Ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!y&&{pointerEvents:"none"},r.arrow&&{[`&[data-popper-placement*="bottom"] .${Cp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cp.arrow}`]:Ge({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Cp.arrow}`]:Ge({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Oae=ln("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.tooltip,y.touch&&r.touch,y.arrow&&r.tooltipArrow,r[`tooltipPlacement${Gn(y.placement.split("-")[0])}`]]}})(({theme:e,ownerState:r})=>Ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ti(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Rae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cp.popper}[data-popper-placement*="left"] &`]:Ge({transformOrigin:"right center"},r.isRtl?Ge({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):Ge({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[`.${Cp.popper}[data-popper-placement*="right"] &`]:Ge({transformOrigin:"left center"},r.isRtl?Ge({marginRight:"14px"},r.touch&&{marginRight:"24px"}):Ge({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[`.${Cp.popper}[data-popper-placement*="top"] &`]:Ge({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[`.${Cp.popper}[data-popper-placement*="bottom"] &`]:Ge({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})})),Fae=ln("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,r)=>r.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ti(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let e3=!1;const HL=new Ib;let R1={x:0,y:0};function t3(e,r){return(y,...F)=>{r&&r(y,...F),e(y,...F)}}const _ae=Oe.forwardRef(function(r,y){var F,j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h,f;const u=Ka({props:r,name:"MuiTooltip"}),{arrow:b=!1,children:p,components:E={},componentsProps:g={},describeChild:c=!1,disableFocusListener:x=!1,disableHoverListener:A=!1,disableInteractive:M=!1,disableTouchListener:R=!1,enterDelay:T=100,enterNextDelay:L=0,enterTouchDelay:P=700,followCursor:d=!1,id:k,leaveDelay:I=0,leaveTouchDelay:N=1500,onClose:B,onOpen:G,open:U,placement:H="bottom",PopperComponent:W,PopperProps:V={},slotProps:$={},slots:Z={},title:q,TransitionComponent:ae=Qx,TransitionProps:ie}=u,fe=hn(u,Iae),Q=Oe.isValidElement(p)?p:Ce.jsx("span",{children:p}),J=ru(),oe=Fl(),[K,ne]=Oe.useState(),[ce,re]=Oe.useState(null),ee=Oe.useRef(!1),de=M||d,le=Sc(),he=Sc(),xe=Sc(),Ee=Sc(),[Se,ke]=Dl({controlled:U,default:!1,name:"Tooltip",state:"open"});let Te=Se;const Ae=Ui(k),be=Oe.useRef(),Ie=pa(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),Ee.clear()});Oe.useEffect(()=>Ie,[Ie]);const Ue=Xt=>{HL.clear(),e3=!0,ke(!0),G&&!Te&&G(Xt)},Ne=pa(Xt=>{HL.start(800+I,()=>{e3=!1}),ke(!1),B&&Te&&B(Xt),le.start(J.transitions.duration.shortest,()=>{ee.current=!1})}),ze=Xt=>{ee.current&&Xt.type!=="touchstart"||(K&&K.removeAttribute("title"),he.clear(),xe.clear(),T||e3&&L?he.start(e3?L:T,()=>{Ue(Xt)}):Ue(Xt))},$e=Xt=>{he.clear(),xe.start(I,()=>{Ne(Xt)})},{isFocusVisibleRef:st,onBlur:vt,onFocus:at,ref:nt}=Rb(),[,mt]=Oe.useState(!1),rt=Xt=>{vt(Xt),st.current===!1&&(mt(!1),$e(Xt))},lt=Xt=>{K||ne(Xt.currentTarget),at(Xt),st.current===!0&&(mt(!0),ze(Xt))},dt=Xt=>{ee.current=!0;const dr=Q.props;dr.onTouchStart&&dr.onTouchStart(Xt)},wt=Xt=>{dt(Xt),xe.clear(),le.clear(),Ie(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ee.start(P,()=>{document.body.style.WebkitUserSelect=be.current,ze(Xt)})},et=Xt=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(Xt),Ie(),xe.start(N,()=>{Ne(Xt)})};Oe.useEffect(()=>{if(!Te)return;function Xt(dr){(dr.key==="Escape"||dr.key==="Esc")&&Ne(dr)}return document.addEventListener("keydown",Xt),()=>{document.removeEventListener("keydown",Xt)}},[Ne,Te]);const Be=pi(Q.ref,nt,ne,y);!q&&q!==0&&(Te=!1);const Ye=Oe.useRef(),Ke=Xt=>{const dr=Q.props;dr.onMouseMove&&dr.onMouseMove(Xt),R1={x:Xt.clientX,y:Xt.clientY},Ye.current&&Ye.current.update()},We={},Fe=typeof q=="string";c?(We.title=!Te&&Fe&&!A?q:null,We["aria-describedby"]=Te?Ae:null):(We["aria-label"]=Fe?q:null,We["aria-labelledby"]=Te&&!Fe?Ae:null);const Me=Ge({},We,fe,Q.props,{className:Ln(fe.className,Q.props.className),onTouchStart:dt,ref:Be},d?{onMouseMove:Ke}:{}),we={};R||(Me.onTouchStart=wt,Me.onTouchEnd=et),A||(Me.onMouseOver=t3(ze,Me.onMouseOver),Me.onMouseLeave=t3($e,Me.onMouseLeave),de||(we.onMouseOver=ze,we.onMouseLeave=$e)),x||(Me.onFocus=t3(lt,Me.onFocus),Me.onBlur=t3(rt,Me.onBlur),de||(we.onFocus=lt,we.onBlur=rt));const Re=Oe.useMemo(()=>{var Xt;let dr=[{name:"arrow",enabled:!!ce,options:{element:ce,padding:4}}];return(Xt=V.popperOptions)!=null&&Xt.modifiers&&(dr=dr.concat(V.popperOptions.modifiers)),Ge({},V.popperOptions,{modifiers:dr})},[ce,V]),Pe=Ge({},u,{isRtl:oe,arrow:b,disableInteractive:de,placement:H,PopperComponentProp:W,touch:ee.current}),Ve=kae(Pe),Je=(F=(j=Z.popper)!=null?j:E.Popper)!=null?F:Dae,ot=(Y=(D=(O=Z.transition)!=null?O:E.Transition)!=null?D:ae)!=null?Y:Qx,yt=(t=(l=Z.tooltip)!=null?l:E.Tooltip)!=null?t:Oae,ut=(S=(i=Z.arrow)!=null?i:E.Arrow)!=null?S:Fae,It=Rm(Je,Ge({},V,(C=$.popper)!=null?C:g.popper,{className:Ln(Ve.popper,V==null?void 0:V.className,(w=(v=$.popper)!=null?v:g.popper)==null?void 0:w.className)}),Pe),Vt=Rm(ot,Ge({},ie,(m=$.transition)!=null?m:g.transition),Pe),xt=Rm(yt,Ge({},(a=$.tooltip)!=null?a:g.tooltip,{className:Ln(Ve.tooltip,(n=(s=$.tooltip)!=null?s:g.tooltip)==null?void 0:n.className)}),Pe),Lt=Rm(ut,Ge({},(o=$.arrow)!=null?o:g.arrow,{className:Ln(Ve.arrow,(h=(f=$.arrow)!=null?f:g.arrow)==null?void 0:h.className)}),Pe);return Ce.jsxs(Oe.Fragment,{children:[Oe.cloneElement(Q,Me),Ce.jsx(Je,Ge({as:W??Xp,placement:H,anchorEl:d?{getBoundingClientRect:()=>({top:R1.y,left:R1.x,right:R1.x,bottom:R1.y,width:0,height:0})}:K,popperRef:Ye,open:K?Te:!1,id:Ae,transition:!0},we,It,{popperOptions:Re,children:({TransitionProps:Xt})=>Ce.jsx(ot,Ge({timeout:J.transitions.duration.shorter},Xt,Vt,{children:Ce.jsxs(yt,Ge({},xt,{children:[q,b?Ce.jsx(ut,Ge({},Lt,{ref:re})):null]}))}))}))]})}),uO=_ae,zae=Oe.createContext({}),BT=zae,Bae=Oe.createContext({}),E5=Bae;function Nae(e){return ka("MuiStep",e)}Ma("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Uae=["active","children","className","component","completed","disabled","expanded","index","last"],Hae=e=>{const{classes:r,orientation:y,alternativeLabel:F,completed:j}=e;return qn({root:["root",y,F&&"alternativeLabel",j&&"completed"]},Nae,r)},Vae=ln("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.orientation],y.alternativeLabel&&r.alternativeLabel,y.completed&&r.completed]}})(({ownerState:e})=>Ge({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),jae=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiStep"}),{active:j,children:Y,className:D,component:O="div",completed:t,disabled:l,expanded:S=!1,index:i,last:C}=F,w=hn(F,Uae),{activeStep:v,connector:m,alternativeLabel:a,orientation:n,nonLinear:s}=Oe.useContext(BT);let[o=!1,h=!1,f=!1]=[j,t,l];v===i?o=j!==void 0?j:!0:!s&&v>i?h=t!==void 0?t:!0:!s&&v({index:i,last:C,expanded:S,icon:i+1,active:o,completed:h,disabled:f}),[i,C,S,o,h,f]),b=Ge({},F,{active:o,orientation:n,alternativeLabel:a,completed:h,disabled:f,expanded:S,component:O}),p=Hae(b),E=Ce.jsxs(Vae,Ge({as:O,className:Ln(p.root,D),ref:y,ownerState:b},w,{children:[m&&a&&i!==0?m:null,Y]}));return Ce.jsx(E5.Provider,{value:u,children:m&&!a&&i!==0?Ce.jsxs(Oe.Fragment,{children:[m,E]}):E})}),wf=jae,Gae=ci(Ce.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Wae=ci(Ce.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function $ae(e){return ka("MuiStepIcon",e)}const Yae=Ma("MuiStepIcon",["root","active","completed","error","text"]),CC=Yae;var VL;const Xae=["active","className","completed","error","icon"],Zae=e=>{const{classes:r,active:y,completed:F,error:j}=e;return qn({root:["root",y&&"active",F&&"completed",j&&"error"],text:["text"]},$ae,r)},MC=ln(s2,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${CC.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${CC.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${CC.error}`]:{color:(e.vars||e).palette.error.main}})),Kae=ln("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,r)=>r.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Jae=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiStepIcon"}),{active:j=!1,className:Y,completed:D=!1,error:O=!1,icon:t}=F,l=hn(F,Xae),S=Ge({},F,{active:j,completed:D,error:O}),i=Zae(S);if(typeof t=="number"||typeof t=="string"){const C=Ln(Y,i.root);return O?Ce.jsx(MC,Ge({as:Wae,className:C,ref:y,ownerState:S},l)):D?Ce.jsx(MC,Ge({as:Gae,className:C,ref:y,ownerState:S},l)):Ce.jsxs(MC,Ge({className:C,ref:y,ownerState:S},l,{children:[VL||(VL=Ce.jsx("circle",{cx:"12",cy:"12",r:"12"})),Ce.jsx(Kae,{className:i.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:S,children:t})]}))}return t}),Qae=Jae;function qae(e){return ka("MuiStepLabel",e)}const eie=Ma("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Mp=eie,tie=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],rie=e=>{const{classes:r,orientation:y,active:F,completed:j,error:Y,disabled:D,alternativeLabel:O}=e;return qn({root:["root",y,Y&&"error",D&&"disabled",O&&"alternativeLabel"],label:["label",F&&"active",j&&"completed",Y&&"error",D&&"disabled",O&&"alternativeLabel"],iconContainer:["iconContainer",F&&"active",j&&"completed",Y&&"error",D&&"disabled",O&&"alternativeLabel"],labelContainer:["labelContainer",O&&"alternativeLabel"]},qae,r)},nie=ln("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.orientation]]}})(({ownerState:e})=>Ge({display:"flex",alignItems:"center",[`&.${Mp.alternativeLabel}`]:{flexDirection:"column"},[`&.${Mp.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),aie=ln("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,r)=>r.label})(({theme:e})=>Ge({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Mp.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Mp.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Mp.alternativeLabel}`]:{marginTop:16},[`&.${Mp.error}`]:{color:(e.vars||e).palette.error.main}})),iie=ln("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,r)=>r.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Mp.alternativeLabel}`]:{paddingRight:0}})),oie=ln("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,r)=>r.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Mp.alternativeLabel}`]:{textAlign:"center"}})),cO=Oe.forwardRef(function(r,y){var F;const j=Ka({props:r,name:"MuiStepLabel"}),{children:Y,className:D,componentsProps:O={},error:t=!1,icon:l,optional:S,slotProps:i={},StepIconComponent:C,StepIconProps:w}=j,v=hn(j,tie),{alternativeLabel:m,orientation:a}=Oe.useContext(BT),{active:n,disabled:s,completed:o,icon:h}=Oe.useContext(E5),f=l||h;let u=C;f&&!u&&(u=Qae);const b=Ge({},j,{active:n,alternativeLabel:m,completed:o,disabled:s,error:t,orientation:a}),p=rie(b),E=(F=i.label)!=null?F:O.label;return Ce.jsxs(nie,Ge({className:Ln(p.root,D),ref:y,ownerState:b},v,{children:[f||u?Ce.jsx(iie,{className:p.iconContainer,ownerState:b,children:Ce.jsx(u,Ge({completed:o,active:n,error:t,icon:f},w))}):null,Ce.jsxs(oie,{className:p.labelContainer,ownerState:b,children:[Y?Ce.jsx(aie,Ge({ownerState:b},E,{className:Ln(p.label,E==null?void 0:E.className),children:Y})):null,S]})]}))});cO.muiName="StepLabel";const Tf=cO;function sie(e){return ka("MuiStepConnector",e)}Ma("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const lie=["className"],uie=e=>{const{classes:r,orientation:y,alternativeLabel:F,active:j,completed:Y,disabled:D}=e,O={root:["root",y,F&&"alternativeLabel",j&&"active",Y&&"completed",D&&"disabled"],line:["line",`line${Gn(y)}`]};return qn(O,sie,r)},cie=ln("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.orientation],y.alternativeLabel&&r.alternativeLabel,y.completed&&r.completed]}})(({ownerState:e})=>Ge({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fie=ln("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.line,r[`line${Gn(y.orientation)}`]]}})(({ownerState:e,theme:r})=>{const y=r.palette.mode==="light"?r.palette.grey[400]:r.palette.grey[600];return Ge({display:"block",borderColor:r.vars?r.vars.palette.StepConnector.border:y},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),die=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiStepConnector"}),{className:j}=F,Y=hn(F,lie),{alternativeLabel:D,orientation:O="horizontal"}=Oe.useContext(BT),{active:t,disabled:l,completed:S}=Oe.useContext(E5),i=Ge({},F,{alternativeLabel:D,orientation:O,active:t,completed:S,disabled:l}),C=uie(i);return Ce.jsx(cie,Ge({className:Ln(C.root,j),ref:y,ownerState:i},Y,{children:Ce.jsx(fie,{className:C.line,ownerState:i})}))}),hie=die;function vie(e){return ka("MuiStepper",e)}Ma("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const pie=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],gie=e=>{const{orientation:r,nonLinear:y,alternativeLabel:F,classes:j}=e;return qn({root:["root",r,y&&"nonLinear",F&&"alternativeLabel"]},vie,j)},mie=ln("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.orientation],y.alternativeLabel&&r.alternativeLabel,y.nonLinear&&r.nonLinear]}})(({ownerState:e})=>Ge({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),yie=Ce.jsx(hie,{}),xie=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiStepper"}),{activeStep:j=0,alternativeLabel:Y=!1,children:D,className:O,component:t="div",connector:l=yie,nonLinear:S=!1,orientation:i="horizontal"}=F,C=hn(F,pie),w=Ge({},F,{nonLinear:S,alternativeLabel:Y,orientation:i,component:t}),v=gie(w),m=Oe.Children.toArray(D).filter(Boolean),a=m.map((s,o)=>Oe.cloneElement(s,Ge({index:o,last:o+1===m.length},s.props))),n=Oe.useMemo(()=>({activeStep:j,alternativeLabel:Y,connector:l,nonLinear:S,orientation:i}),[j,Y,l,S,i]);return Ce.jsx(BT.Provider,{value:n,children:Ce.jsx(mie,Ge({as:t,ownerState:w,className:Ln(v.root,O),ref:y},C,{children:a}))})}),NT=xie;function bie(e){return ka("MuiTab",e)}const wie=Ma("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ap=wie,Tie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Sie=e=>{const{classes:r,textColor:y,fullWidth:F,wrapped:j,icon:Y,label:D,selected:O,disabled:t}=e,l={root:["root",Y&&D&&"labelIcon",`textColor${Gn(y)}`,F&&"fullWidth",j&&"wrapped",O&&"selected",t&&"disabled"],iconWrapper:["iconWrapper"]};return qn(l,bie,r)},Cie=ln(Af,{name:"MuiTab",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.label&&y.icon&&r.labelIcon,r[`textColor${Gn(y.textColor)}`],y.fullWidth&&r.fullWidth,y.wrapped&&r.wrapped,{[`& .${ap.iconWrapper}`]:r.iconWrapper}]}})(({theme:e,ownerState:r})=>Ge({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:r.iconPosition==="top"||r.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ap.iconWrapper}`]:Ge({},r.iconPosition==="top"&&{marginBottom:6},r.iconPosition==="bottom"&&{marginTop:6},r.iconPosition==="start"&&{marginRight:e.spacing(1)},r.iconPosition==="end"&&{marginLeft:e.spacing(1)})},r.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ap.selected}`]:{opacity:1},[`&.${ap.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ap.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled}},r.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ap.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled}},r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:e.typography.pxToRem(12)})),Mie=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTab"}),{className:j,disabled:Y=!1,disableFocusRipple:D=!1,fullWidth:O,icon:t,iconPosition:l="top",indicator:S,label:i,onChange:C,onClick:w,onFocus:v,selected:m,selectionFollowsFocus:a,textColor:n="inherit",value:s,wrapped:o=!1}=F,h=hn(F,Tie),f=Ge({},F,{disabled:Y,disableFocusRipple:D,selected:m,icon:!!t,iconPosition:l,label:!!i,fullWidth:O,textColor:n,wrapped:o}),u=Sie(f),b=t&&i&&Oe.isValidElement(t)?Oe.cloneElement(t,{className:Ln(u.iconWrapper,t.props.className)}):t,p=g=>{!m&&C&&C(g,s),w&&w(g)},E=g=>{a&&!m&&C&&C(g,s),v&&v(g)};return Ce.jsxs(Cie,Ge({focusRipple:!D,className:Ln(u.root,j),ref:y,role:"tab","aria-selected":m,disabled:Y,onClick:p,onFocus:E,ownerState:f,tabIndex:m?0:-1},h,{children:[l==="top"||l==="start"?Ce.jsxs(Oe.Fragment,{children:[b,i]}):Ce.jsxs(Oe.Fragment,{children:[i,b]}),S]}))}),AC=Mie,Aie=Oe.createContext(),fO=Aie;function Eie(e){return ka("MuiTable",e)}Ma("MuiTable",["root","stickyHeader"]);const Pie=["className","component","padding","size","stickyHeader"],Lie=e=>{const{classes:r,stickyHeader:y}=e;return qn({root:["root",y&&"stickyHeader"]},Eie,r)},Iie=ln("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.stickyHeader&&r.stickyHeader]}})(({theme:e,ownerState:r})=>Ge({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ge({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})),jL="table",Rie=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTable"}),{className:j,component:Y=jL,padding:D="normal",size:O="medium",stickyHeader:t=!1}=F,l=hn(F,Pie),S=Ge({},F,{component:Y,padding:D,size:O,stickyHeader:t}),i=Lie(S),C=Oe.useMemo(()=>({padding:D,size:O,stickyHeader:t}),[D,O,t]);return Ce.jsx(fO.Provider,{value:C,children:Ce.jsx(Iie,Ge({as:Y,role:Y===jL?null:"table",ref:y,className:Ln(i.root,j),ownerState:S},l))})}),dO=Rie,kie=Oe.createContext(),P5=kie;function Die(e){return ka("MuiTableBody",e)}Ma("MuiTableBody",["root"]);const Oie=["className","component"],Fie=e=>{const{classes:r}=e;return qn({root:["root"]},Die,r)},_ie=ln("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"table-row-group"}),zie={variant:"body"},GL="tbody",Bie=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTableBody"}),{className:j,component:Y=GL}=F,D=hn(F,Oie),O=Ge({},F,{component:Y}),t=Fie(O);return Ce.jsx(P5.Provider,{value:zie,children:Ce.jsx(_ie,Ge({className:Ln(t.root,j),as:Y,ref:y,role:Y===GL?null:"rowgroup",ownerState:O},D))})}),hO=Bie;function Nie(e){return ka("MuiTableCell",e)}const Uie=Ma("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Hie=Uie,Vie=["align","className","component","padding","scope","size","sortDirection","variant"],jie=e=>{const{classes:r,variant:y,align:F,padding:j,size:Y,stickyHeader:D}=e,O={root:["root",y,D&&"stickyHeader",F!=="inherit"&&`align${Gn(F)}`,j!=="normal"&&`padding${Gn(j)}`,`size${Gn(Y)}`]};return qn(O,Nie,r)},Gie=ln("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,r[y.variant],r[`size${Gn(y.size)}`],y.padding!=="normal"&&r[`padding${Gn(y.padding)}`],y.align!=="inherit"&&r[`align${Gn(y.align)}`],y.stickyHeader&&r.stickyHeader]}})(({theme:e,ownerState:r})=>Ge({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?fg(Ti(e.palette.divider,1),.88):cg(Ti(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},r.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},r.variant==="body"&&{color:(e.vars||e).palette.text.primary},r.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},r.size==="small"&&{padding:"6px 16px",[`&.${Hie.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},r.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},r.padding==="none"&&{padding:0},r.align==="left"&&{textAlign:"left"},r.align==="center"&&{textAlign:"center"},r.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},r.align==="justify"&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Wie=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTableCell"}),{align:j="inherit",className:Y,component:D,padding:O,scope:t,size:l,sortDirection:S,variant:i}=F,C=hn(F,Vie),w=Oe.useContext(fO),v=Oe.useContext(P5),m=v&&v.variant==="head";let a;D?a=D:a=m?"th":"td";let n=t;a==="td"?n=void 0:!n&&m&&(n="col");const s=i||v&&v.variant,o=Ge({},F,{align:j,component:a,padding:O||(w&&w.padding?w.padding:"normal"),size:l||(w&&w.size?w.size:"medium"),sortDirection:S,stickyHeader:s==="head"&&w&&w.stickyHeader,variant:s}),h=jie(o);let f=null;return S&&(f=S==="asc"?"ascending":"descending"),Ce.jsx(Gie,Ge({as:a,ref:y,className:Ln(h.root,Y),"aria-sort":f,scope:n,ownerState:o},C))}),Xh=Wie;function $ie(e){return ka("MuiToolbar",e)}Ma("MuiToolbar",["root","gutters","regular","dense"]);const Yie=["className","component","disableGutters","variant"],Xie=e=>{const{classes:r,disableGutters:y,variant:F}=e;return qn({root:["root",!y&&"gutters",F]},$ie,r)},Zie=ln("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,!y.disableGutters&&r.gutters,r[y.variant]]}})(({theme:e,ownerState:r})=>Ge({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},r.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:r})=>r.variant==="regular"&&e.mixins.toolbar),Kie=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiToolbar"}),{className:j,component:Y="div",disableGutters:D=!1,variant:O="regular"}=F,t=hn(F,Yie),l=Ge({},F,{component:Y,disableGutters:D,variant:O}),S=Xie(l);return Ce.jsx(Zie,Ge({as:Y,className:Ln(S.root,j),ref:y,ownerState:l},t))}),L5=Kie,vO=ci(Ce.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),pO=ci(Ce.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Jie=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Qie=Oe.forwardRef(function(r,y){var F,j,Y,D,O,t,l,S;const{backIconButtonProps:i,count:C,disabled:w=!1,getItemAriaLabel:v,nextIconButtonProps:m,onPageChange:a,page:n,rowsPerPage:s,showFirstButton:o,showLastButton:h,slots:f={},slotProps:u={}}=r,b=hn(r,Jie),p=Fl(),E=$=>{a($,0)},g=$=>{a($,n-1)},c=$=>{a($,n+1)},x=$=>{a($,Math.max(0,Math.ceil(C/s)-1))},A=(F=f.firstButton)!=null?F:fl,M=(j=f.lastButton)!=null?j:fl,R=(Y=f.nextButton)!=null?Y:fl,T=(D=f.previousButton)!=null?D:fl,L=(O=f.firstButtonIcon)!=null?O:aM,P=(t=f.lastButtonIcon)!=null?t:iM,d=(l=f.nextButtonIcon)!=null?l:pO,k=(S=f.previousButtonIcon)!=null?S:vO,I=p?M:A,N=p?R:T,B=p?T:R,G=p?A:M,U=p?u.lastButton:u.firstButton,H=p?u.nextButton:u.previousButton,W=p?u.previousButton:u.nextButton,V=p?u.firstButton:u.lastButton;return Ce.jsxs("div",Ge({ref:y},b,{children:[o&&Ce.jsx(I,Ge({onClick:E,disabled:w||n===0,"aria-label":v("first",n),title:v("first",n)},U,{children:p?Ce.jsx(P,Ge({},u.lastButtonIcon)):Ce.jsx(L,Ge({},u.firstButtonIcon))})),Ce.jsx(N,Ge({onClick:g,disabled:w||n===0,color:"inherit","aria-label":v("previous",n),title:v("previous",n)},H??i,{children:p?Ce.jsx(d,Ge({},u.nextButtonIcon)):Ce.jsx(k,Ge({},u.previousButtonIcon))})),Ce.jsx(B,Ge({onClick:c,disabled:w||(C!==-1?n>=Math.ceil(C/s)-1:!1),color:"inherit","aria-label":v("next",n),title:v("next",n)},W??m,{children:p?Ce.jsx(k,Ge({},u.previousButtonIcon)):Ce.jsx(d,Ge({},u.nextButtonIcon))})),h&&Ce.jsx(G,Ge({onClick:x,disabled:w||n>=Math.ceil(C/s)-1,"aria-label":v("last",n),title:v("last",n)},V,{children:p?Ce.jsx(L,Ge({},u.firstButtonIcon)):Ce.jsx(P,Ge({},u.lastButtonIcon))}))]}))}),qie=Qie;function eoe(e){return ka("MuiTablePagination",e)}const toe=Ma("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),rg=toe;var WL;const roe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],noe=ln(Xh,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),aoe=ln(L5,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,r)=>Ge({[`& .${rg.actions}`]:r.actions},r.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${rg.actions}`]:{flexShrink:0,marginLeft:20}})),ioe=ln("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,r)=>r.spacer})({flex:"1 1 100%"}),ooe=ln("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,r)=>r.selectLabel})(({theme:e})=>Ge({},e.typography.body2,{flexShrink:0})),soe=ln(ah,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,r)=>Ge({[`& .${rg.selectIcon}`]:r.selectIcon,[`& .${rg.select}`]:r.select},r.input,r.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${rg.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),loe=ln(uo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,r)=>r.menuItem})({}),uoe=ln("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,r)=>r.displayedRows})(({theme:e})=>Ge({},e.typography.body2,{flexShrink:0}));function coe({from:e,to:r,count:y}){return`${e}–${r} of ${y!==-1?y:`more than ${r}`}`}function foe(e){return`Go to ${e} page`}const doe=e=>{const{classes:r}=e;return qn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},eoe,r)},hoe=Oe.forwardRef(function(r,y){var F;const j=Ka({props:r,name:"MuiTablePagination"}),{ActionsComponent:Y=qie,backIconButtonProps:D,className:O,colSpan:t,component:l=Xh,count:S,disabled:i=!1,getItemAriaLabel:C=foe,labelDisplayedRows:w=coe,labelRowsPerPage:v="Rows per page:",nextIconButtonProps:m,onPageChange:a,onRowsPerPageChange:n,page:s,rowsPerPage:o,rowsPerPageOptions:h=[10,25,50,100],SelectProps:f={},showFirstButton:u=!1,showLastButton:b=!1,slotProps:p={},slots:E={}}=j,g=hn(j,roe),c=j,x=doe(c),A=(F=p==null?void 0:p.select)!=null?F:f,M=A.native?"option":loe;let R;(l===Xh||l==="td")&&(R=t||1e3);const T=Ui(A.id),L=Ui(A.labelId),P=()=>S===-1?(s+1)*o:o===-1?S:Math.min(S,(s+1)*o);return Ce.jsx(noe,Ge({colSpan:R,ref:y,as:l,ownerState:c,className:Ln(x.root,O)},g,{children:Ce.jsxs(aoe,{className:x.toolbar,children:[Ce.jsx(ioe,{className:x.spacer}),h.length>1&&Ce.jsx(ooe,{className:x.selectLabel,id:L,children:v}),h.length>1&&Ce.jsx(soe,Ge({variant:"standard"},!A.variant&&{input:WL||(WL=Ce.jsx(Hy,{}))},{value:o,onChange:n,id:T,labelId:L},A,{classes:Ge({},A.classes,{root:Ln(x.input,x.selectRoot,(A.classes||{}).root),select:Ln(x.select,(A.classes||{}).select),icon:Ln(x.selectIcon,(A.classes||{}).icon)}),disabled:i,children:h.map(d=>Oe.createElement(M,Ge({},!gd(M)&&{ownerState:c},{className:x.menuItem,key:d.label?d.label:d,value:d.value?d.value:d}),d.label?d.label:d))})),Ce.jsx(uoe,{className:x.displayedRows,children:w({from:S===0?0:s*o+1,to:P(),count:S===-1?-1:S,page:s})}),Ce.jsx(Y,{className:x.actions,backIconButtonProps:D,count:S,nextIconButtonProps:m,onPageChange:a,page:s,rowsPerPage:o,showFirstButton:u,showLastButton:b,slotProps:p.actions,slots:E.actions,getItemAriaLabel:C,disabled:i})]})}))}),voe=hoe;function poe(e){return ka("MuiTableRow",e)}const goe=Ma("MuiTableRow",["root","selected","hover","head","footer"]),$L=goe,moe=["className","component","hover","selected"],yoe=e=>{const{classes:r,selected:y,hover:F,head:j,footer:Y}=e;return qn({root:["root",y&&"selected",F&&"hover",j&&"head",Y&&"footer"]},poe,r)},xoe=ln("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.head&&r.head,y.footer&&r.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${$L.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$L.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ti(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),YL="tr",boe=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTableRow"}),{className:j,component:Y=YL,hover:D=!1,selected:O=!1}=F,t=hn(F,moe),l=Oe.useContext(P5),S=Ge({},F,{component:Y,hover:D,selected:O,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),i=yoe(S);return Ce.jsx(xoe,Ge({as:Y,ref:y,className:Ln(i.root,j),role:Y===YL?null:"row",ownerState:S},t))}),oM=boe;function woe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Toe(e,r,y,F={},j=()=>{}){const{ease:Y=woe,duration:D=300}=F;let O=null;const t=r[e];let l=!1;const S=()=>{l=!0},i=C=>{if(l){j(new Error("Animation cancelled"));return}O===null&&(O=C);const w=Math.min(1,(C-O)/D);if(r[e]=Y(w)*(y-t)+t,w>=1){requestAnimationFrame(()=>{j(null)});return}requestAnimationFrame(i)};return t===y?(j(new Error("Element already at target position")),S):(requestAnimationFrame(i),S)}const Soe=["onChange"],Coe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Moe(e){const{onChange:r}=e,y=hn(e,Soe),F=Oe.useRef(),j=Oe.useRef(null),Y=()=>{F.current=j.current.offsetHeight-j.current.clientHeight};return Gi(()=>{const D=bg(()=>{const t=F.current;Y(),t!==F.current&&r(F.current)}),O=wd(j.current);return O.addEventListener("resize",D),()=>{D.clear(),O.removeEventListener("resize",D)}},[r]),Oe.useEffect(()=>{Y(),r(F.current)},[r]),Ce.jsx("div",Ge({style:Coe,ref:j},y))}function Aoe(e){return ka("MuiTabScrollButton",e)}const Eoe=Ma("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Poe=Eoe,Loe=["className","slots","slotProps","direction","orientation","disabled"],Ioe=e=>{const{classes:r,orientation:y,disabled:F}=e;return qn({root:["root",y,F&&"disabled"]},Aoe,r)},Roe=ln(Af,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.root,y.orientation&&r[y.orientation]]}})(({ownerState:e})=>Ge({width:40,flexShrink:0,opacity:.8,[`&.${Poe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),koe=Oe.forwardRef(function(r,y){var F,j;const Y=Ka({props:r,name:"MuiTabScrollButton"}),{className:D,slots:O={},slotProps:t={},direction:l}=Y,S=hn(Y,Loe),i=Fl(),C=Ge({isRtl:i},Y),w=Ioe(C),v=(F=O.StartScrollButtonIcon)!=null?F:vO,m=(j=O.EndScrollButtonIcon)!=null?j:pO,a=vi({elementType:v,externalSlotProps:t.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:C}),n=vi({elementType:m,externalSlotProps:t.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:C});return Ce.jsx(Roe,Ge({component:"div",className:Ln(w.root,D),ref:y,role:null,ownerState:C,tabIndex:null},S,{children:l==="left"?Ce.jsx(v,Ge({},a)):Ce.jsx(m,Ge({},n))}))}),Doe=koe;function Ooe(e){return ka("MuiTabs",e)}const Foe=Ma("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),EC=Foe,_oe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],XL=(e,r)=>e===r?e.firstChild:r&&r.nextElementSibling?r.nextElementSibling:e.firstChild,ZL=(e,r)=>e===r?e.lastChild:r&&r.previousElementSibling?r.previousElementSibling:e.lastChild,r3=(e,r,y)=>{let F=!1,j=y(e,r);for(;j;){if(j===e.firstChild){if(F)return;F=!0}const Y=j.disabled||j.getAttribute("aria-disabled")==="true";if(!j.hasAttribute("tabindex")||Y)j=y(e,j);else{j.focus();return}}},zoe=e=>{const{vertical:r,fixed:y,hideScrollbar:F,scrollableX:j,scrollableY:Y,centered:D,scrollButtonsHideMobile:O,classes:t}=e;return qn({root:["root",r&&"vertical"],scroller:["scroller",y&&"fixed",F&&"hideScrollbar",j&&"scrollableX",Y&&"scrollableY"],flexContainer:["flexContainer",r&&"flexContainerVertical",D&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",O&&"scrollButtonsHideMobile"],scrollableX:[j&&"scrollableX"],hideScrollbar:[F&&"hideScrollbar"]},Ooe,t)},Boe=ln("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[{[`& .${EC.scrollButtons}`]:r.scrollButtons},{[`& .${EC.scrollButtons}`]:y.scrollButtonsHideMobile&&r.scrollButtonsHideMobile},r.root,y.vertical&&r.vertical]}})(({ownerState:e,theme:r})=>Ge({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${EC.scrollButtons}`]:{[r.breakpoints.down("sm")]:{display:"none"}}})),Noe=ln("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.scroller,y.fixed&&r.fixed,y.hideScrollbar&&r.hideScrollbar,y.scrollableX&&r.scrollableX,y.scrollableY&&r.scrollableY]}})(({ownerState:e})=>Ge({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Uoe=ln("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,r)=>{const{ownerState:y}=e;return[r.flexContainer,y.vertical&&r.flexContainerVertical,y.centered&&r.centered]}})(({ownerState:e})=>Ge({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Hoe=ln("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,r)=>r.indicator})(({ownerState:e,theme:r})=>Ge({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(r.vars||r).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(r.vars||r).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Voe=ln(Moe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),KL={},joe=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTabs"}),j=ru(),Y=Fl(),{"aria-label":D,"aria-labelledby":O,action:t,centered:l=!1,children:S,className:i,component:C="div",allowScrollButtonsMobile:w=!1,indicatorColor:v="primary",onChange:m,orientation:a="horizontal",ScrollButtonComponent:n=Doe,scrollButtons:s="auto",selectionFollowsFocus:o,slots:h={},slotProps:f={},TabIndicatorProps:u={},TabScrollButtonProps:b={},textColor:p="primary",value:E,variant:g="standard",visibleScrollbar:c=!1}=F,x=hn(F,_oe),A=g==="scrollable",M=a==="vertical",R=M?"scrollTop":"scrollLeft",T=M?"top":"left",L=M?"bottom":"right",P=M?"clientHeight":"clientWidth",d=M?"height":"width",k=Ge({},F,{component:C,allowScrollButtonsMobile:w,indicatorColor:v,orientation:a,vertical:M,scrollButtons:s,textColor:p,variant:g,visibleScrollbar:c,fixed:!A,hideScrollbar:A&&!c,scrollableX:A&&!M,scrollableY:A&&M,centered:l&&!A,scrollButtonsHideMobile:!w}),I=zoe(k),N=vi({elementType:h.StartScrollButtonIcon,externalSlotProps:f.startScrollButtonIcon,ownerState:k}),B=vi({elementType:h.EndScrollButtonIcon,externalSlotProps:f.endScrollButtonIcon,ownerState:k}),[G,U]=Oe.useState(!1),[H,W]=Oe.useState(KL),[V,$]=Oe.useState(!1),[Z,q]=Oe.useState(!1),[ae,ie]=Oe.useState(!1),[fe,Q]=Oe.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,oe=Oe.useRef(null),K=Oe.useRef(null),ne=()=>{const Ne=oe.current;let ze;if(Ne){const st=Ne.getBoundingClientRect();ze={clientWidth:Ne.clientWidth,scrollLeft:Ne.scrollLeft,scrollTop:Ne.scrollTop,scrollLeftNormalized:ZW(Ne,Y?"rtl":"ltr"),scrollWidth:Ne.scrollWidth,top:st.top,bottom:st.bottom,left:st.left,right:st.right}}let $e;if(Ne&&E!==!1){const st=K.current.children;if(st.length>0){const vt=st[J.get(E)];$e=vt?vt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:$e}},ce=pa(()=>{const{tabsMeta:Ne,tabMeta:ze}=ne();let $e=0,st;if(M)st="top",ze&&Ne&&($e=ze.top-Ne.top+Ne.scrollTop);else if(st=Y?"right":"left",ze&&Ne){const at=Y?Ne.scrollLeftNormalized+Ne.clientWidth-Ne.scrollWidth:Ne.scrollLeft;$e=(Y?-1:1)*(ze[st]-Ne[st]+at)}const vt={[st]:$e,[d]:ze?ze[d]:0};if(isNaN(H[st])||isNaN(H[d]))W(vt);else{const at=Math.abs(H[st]-vt[st]),nt=Math.abs(H[d]-vt[d]);(at>=1||nt>=1)&&W(vt)}}),re=(Ne,{animation:ze=!0}={})=>{ze?Toe(R,oe.current,Ne,{duration:j.transitions.duration.standard}):oe.current[R]=Ne},ee=Ne=>{let ze=oe.current[R];M?ze+=Ne:(ze+=Ne*(Y?-1:1),ze*=Y&&q7()==="reverse"?-1:1),re(ze)},de=()=>{const Ne=oe.current[P];let ze=0;const $e=Array.from(K.current.children);for(let st=0;st<$e.length;st+=1){const vt=$e[st];if(ze+vt[P]>Ne){st===0&&(ze=Ne);break}ze+=vt[P]}return ze},le=()=>{ee(-1*de())},he=()=>{ee(de())},xe=Oe.useCallback(Ne=>{Q({overflow:null,scrollbarWidth:Ne})},[]),Ee=()=>{const Ne={};Ne.scrollbarSizeListener=A?Ce.jsx(Voe,{onChange:xe,className:Ln(I.scrollableX,I.hideScrollbar)}):null;const $e=A&&(s==="auto"&&(V||Z)||s===!0);return Ne.scrollButtonStart=$e?Ce.jsx(n,Ge({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:a,direction:Y?"right":"left",onClick:le,disabled:!V},b,{className:Ln(I.scrollButtons,b.className)})):null,Ne.scrollButtonEnd=$e?Ce.jsx(n,Ge({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:a,direction:Y?"left":"right",onClick:he,disabled:!Z},b,{className:Ln(I.scrollButtons,b.className)})):null,Ne},Se=pa(Ne=>{const{tabsMeta:ze,tabMeta:$e}=ne();if(!(!$e||!ze)){if($e[T]ze[L]){const st=ze[R]+($e[L]-ze[L]);re(st,{animation:Ne})}}}),ke=pa(()=>{A&&s!==!1&&ie(!ae)});Oe.useEffect(()=>{const Ne=bg(()=>{oe.current&&ce()});let ze;const $e=at=>{at.forEach(nt=>{nt.removedNodes.forEach(mt=>{var rt;(rt=ze)==null||rt.unobserve(mt)}),nt.addedNodes.forEach(mt=>{var rt;(rt=ze)==null||rt.observe(mt)})}),Ne(),ke()},st=wd(oe.current);st.addEventListener("resize",Ne);let vt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Ne),Array.from(K.current.children).forEach(at=>{ze.observe(at)})),typeof MutationObserver<"u"&&(vt=new MutationObserver($e),vt.observe(K.current,{childList:!0})),()=>{var at,nt;Ne.clear(),st.removeEventListener("resize",Ne),(at=vt)==null||at.disconnect(),(nt=ze)==null||nt.disconnect()}},[ce,ke]),Oe.useEffect(()=>{const Ne=Array.from(K.current.children),ze=Ne.length;if(typeof IntersectionObserver<"u"&&ze>0&&A&&s!==!1){const $e=Ne[0],st=Ne[ze-1],vt={root:oe.current,threshold:.99},at=lt=>{$(!lt[0].isIntersecting)},nt=new IntersectionObserver(at,vt);nt.observe($e);const mt=lt=>{q(!lt[0].isIntersecting)},rt=new IntersectionObserver(mt,vt);return rt.observe(st),()=>{nt.disconnect(),rt.disconnect()}}},[A,s,ae,S==null?void 0:S.length]),Oe.useEffect(()=>{U(!0)},[]),Oe.useEffect(()=>{ce()}),Oe.useEffect(()=>{Se(KL!==H)},[Se,H]),Oe.useImperativeHandle(t,()=>({updateIndicator:ce,updateScrollButtons:ke}),[ce,ke]);const Te=Ce.jsx(Hoe,Ge({},u,{className:Ln(I.indicator,u.className),ownerState:k,style:Ge({},H,u.style)}));let Ae=0;const be=Oe.Children.map(S,Ne=>{if(!Oe.isValidElement(Ne))return null;const ze=Ne.props.value===void 0?Ae:Ne.props.value;J.set(ze,Ae);const $e=ze===E;return Ae+=1,Oe.cloneElement(Ne,Ge({fullWidth:g==="fullWidth",indicator:$e&&!G&&Te,selected:$e,selectionFollowsFocus:o,onChange:m,textColor:p,value:ze},Ae===1&&E===!1&&!Ne.props.tabIndex?{tabIndex:0}:{}))}),Ie=Ne=>{const ze=K.current,$e=oo(ze).activeElement;if($e.getAttribute("role")!=="tab")return;let vt=a==="horizontal"?"ArrowLeft":"ArrowUp",at=a==="horizontal"?"ArrowRight":"ArrowDown";switch(a==="horizontal"&&Y&&(vt="ArrowRight",at="ArrowLeft"),Ne.key){case vt:Ne.preventDefault(),r3(ze,$e,ZL);break;case at:Ne.preventDefault(),r3(ze,$e,XL);break;case"Home":Ne.preventDefault(),r3(ze,null,XL);break;case"End":Ne.preventDefault(),r3(ze,null,ZL);break}},Ue=Ee();return Ce.jsxs(Boe,Ge({className:Ln(I.root,i),ownerState:k,ref:y,as:C},x,{children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,Ce.jsxs(Noe,{className:I.scroller,ownerState:k,style:{overflow:fe.overflow,[M?`margin${Y?"Left":"Right"}`:"marginBottom"]:c?void 0:-fe.scrollbarWidth},ref:oe,children:[Ce.jsx(Uoe,{"aria-label":D,"aria-labelledby":O,"aria-orientation":a==="vertical"?"vertical":null,className:I.flexContainer,ownerState:k,onKeyDown:Ie,ref:K,role:"tablist",children:be}),G&&Te]}),Ue.scrollButtonEnd]}))}),Goe=joe;function Woe(e){return ka("MuiTextField",e)}Ma("MuiTextField",["root"]);const $oe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Yoe={standard:K9,filled:$9,outlined:aO},Xoe=e=>{const{classes:r}=e;return qn({root:["root"]},Woe,r)},Zoe=ln(nh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Koe=Oe.forwardRef(function(r,y){const F=Ka({props:r,name:"MuiTextField"}),{autoComplete:j,autoFocus:Y=!1,children:D,className:O,color:t="primary",defaultValue:l,disabled:S=!1,error:i=!1,FormHelperTextProps:C,fullWidth:w=!1,helperText:v,id:m,InputLabelProps:a,inputProps:n,InputProps:s,inputRef:o,label:h,maxRows:f,minRows:u,multiline:b=!1,name:p,onBlur:E,onChange:g,onFocus:c,placeholder:x,required:A=!1,rows:M,select:R=!1,SelectProps:T,type:L,value:P,variant:d="outlined"}=F,k=hn(F,$oe),I=Ge({},F,{autoFocus:Y,color:t,disabled:S,error:i,fullWidth:w,multiline:b,required:A,select:R,variant:d}),N=Xoe(I),B={};d==="outlined"&&(a&&typeof a.shrink<"u"&&(B.notched=a.shrink),B.label=h),R&&((!T||!T.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const G=Ui(m),U=v&&G?`${G}-helper-text`:void 0,H=h&&G?`${G}-label`:void 0,W=Yoe[d],V=Ce.jsx(W,Ge({"aria-describedby":U,autoComplete:j,autoFocus:Y,defaultValue:l,fullWidth:w,multiline:b,name:p,rows:M,maxRows:f,minRows:u,type:L,value:P,id:G,inputRef:o,onBlur:E,onChange:g,onFocus:c,placeholder:x,inputProps:n},B,s));return Ce.jsxs(Zoe,Ge({className:Ln(N.root,O),disabled:S,error:i,fullWidth:w,ref:y,required:A,color:t,variant:d,ownerState:I},k,{children:[h!=null&&h!==""&&Ce.jsx(Ey,Ge({htmlFor:G,id:H},a,{children:h})),R?Ce.jsx(ah,Ge({"aria-describedby":U,id:G,labelId:H,value:P,input:V},T,{children:D})):V,v&&Ce.jsx(b5,Ge({id:U},C,{children:v}))]}))}),Zo=Koe,Joe=["localeText"],sM=Oe.createContext(null),UT=function(r){const{localeText:y}=r,F=hn(r,Joe),{utils:j,localeText:Y}=Oe.useContext(sM)??{utils:void 0,localeText:void 0},D=_o({props:F,name:"MuiLocalizationProvider"}),{children:O,dateAdapter:t,dateFormats:l,dateLibInstance:S,adapterLocale:i,localeText:C}=D,w=Oe.useMemo(()=>Ge({},C,Y,y),[C,Y,y]),v=Oe.useMemo(()=>{if(!t)return j||null;const n=new t({locale:i,formats:l,instance:S});if(!n.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return n},[t,i,l,S,j]),m=Oe.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),a=Oe.useMemo(()=>({utils:v,defaultDates:m,localeText:w}),[m,v,w]);return Ce.jsx(sM.Provider,{value:a,children:O})},Qoe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ge({},e)}}}}),gO={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,r,y)=>`Select ${e}. ${r===null?"No time selected":`Selected time is ${y.format(r,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,r)=>e!==null&&r.isValid(e)?`Choose date, selected date is ${r.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,r)=>e!==null&&r.isValid(e)?`Choose time, selected time is ${r.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},qoe=gO;Qoe(gO);const Tg=()=>{const e=Oe.useContext(sM);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` + `),Nte,(r.vars||r).palette.action.hover)),G9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiSkeleton"}),{animation:j="pulse",className:Y,component:D="span",height:O,style:t,variant:l="text",width:S}=F,i=hn(F,_te),C=Ge({},F,{animation:j,component:D,variant:l,hasChildren:!!i.children}),w=zte(C);return Ce.jsx(Ute,Ge({as:D,ref:x,className:Ln(w.root,Y),ownerState:C},i,{style:Ge({width:S,height:O},t)}))});function Hte(e,r,x=(F,j)=>F===j){return e.length===r.length&&e.every((F,j)=>x(F,r[j]))}const Vte=2;function W9(e,r){return e-r}function LL(e,r){var x;const{index:F}=(x=e.reduce((j,Y,D)=>{const O=Math.abs(r-Y);return j===null||O({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Yte=e=>e;let $w;function RL(){return $w===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?$w=CSS.supports("touch-action","none"):$w=!0),$w}function Xte(e){const{"aria-labelledby":r,defaultValue:x,disabled:F=!1,disableSwap:j=!1,isRtl:Y=!1,marks:D=!1,max:O=100,min:t=0,name:l,onChange:S,onChangeCommitted:i,orientation:C="horizontal",rootRef:w,scale:v=Yte,step:m=1,shiftStep:a=10,tabIndex:n,value:s}=e,o=Oe.useRef(),[h,f]=Oe.useState(-1),[u,b]=Oe.useState(-1),[p,E]=Oe.useState(!1),g=Oe.useRef(0),[c,y]=Ol({controlled:s,default:x??t,name:"Slider"}),A=S&&((Se,ke,Te)=>{const Ae=Se.nativeEvent||Se,be=new Ae.constructor(Ae.type,Ae);Object.defineProperty(be,"target",{writable:!0,value:{value:ke,name:l}}),S(be,ke,Te)}),M=Array.isArray(c);let R=M?c.slice().sort(W9):[c];R=R.map(Se=>Se==null?t:z0(Se,t,O));const T=D===!0&&m!==null?[...Array(Math.floor((O-t)/m)+1)].map((Se,ke)=>({value:t+m*ke})):D||[],L=T.map(Se=>Se.value),{isFocusVisibleRef:P,onBlur:d,onFocus:k,ref:I}=Sb(),[N,B]=Oe.useState(-1),G=Oe.useRef(),U=vi(I,G),H=vi(w,U),W=Se=>ke=>{var Te;const Ae=Number(ke.currentTarget.getAttribute("data-index"));k(ke),P.current===!0&&B(Ae),b(Ae),Se==null||(Te=Se.onFocus)==null||Te.call(Se,ke)},V=Se=>ke=>{var Te;d(ke),P.current===!1&&B(-1),b(-1),Se==null||(Te=Se.onBlur)==null||Te.call(Se,ke)},$=(Se,ke)=>{const Te=Number(Se.currentTarget.getAttribute("data-index")),Ae=R[Te],be=L.indexOf(Ae);let Ie=ke;if(T&&m==null){const Ue=L[L.length-1];Ie>Ue?Ie=Ue:Ieke=>{var Te;if(m!==null){const Ae=Number(ke.currentTarget.getAttribute("data-index")),be=R[Ae];let Ie=null;(ke.key==="ArrowLeft"||ke.key==="ArrowDown")&&ke.shiftKey||ke.key==="PageDown"?Ie=Math.max(be-a,t):((ke.key==="ArrowRight"||ke.key==="ArrowUp")&&ke.shiftKey||ke.key==="PageUp")&&(Ie=Math.min(be+a,O)),Ie!==null&&($(ke,Ie),ke.preventDefault())}Se==null||(Te=Se.onKeyDown)==null||Te.call(Se,ke)};Gi(()=>{if(F&&G.current.contains(document.activeElement)){var Se;(Se=document.activeElement)==null||Se.blur()}},[F]),F&&h!==-1&&f(-1),F&&N!==-1&&B(-1);const q=Se=>ke=>{var Te;(Te=Se.onChange)==null||Te.call(Se,ke),$(ke,ke.target.valueAsNumber)},ae=Oe.useRef();let ie=C;Y&&C==="horizontal"&&(ie+="-reverse");const fe=({finger:Se,move:ke=!1})=>{const{current:Te}=G,{width:Ae,height:be,bottom:Ie,left:Ue}=Te.getBoundingClientRect();let Ne;ie.indexOf("vertical")===0?Ne=(Ie-Se.y)/be:Ne=(Se.x-Ue)/Ae,ie.indexOf("-reverse")!==-1&&(Ne=1-Ne);let ze;if(ze=jte(Ne,t,O),m)ze=Wte(ze,m,t);else{const st=LL(L,ze);ze=L[st]}ze=z0(ze,t,O);let $e=0;if(M){ke?$e=ae.current:$e=LL(R,ze),j&&(ze=z0(ze,R[$e-1]||-1/0,R[$e+1]||1/0));const st=ze;ze=IL({values:R,newValue:ze,index:$e}),j&&ke||($e=ze.indexOf(st),ae.current=$e)}return{newValue:ze,activeIndex:$e}},Q=pa(Se=>{const ke=jw(Se,o);if(!ke)return;if(g.current+=1,Se.type==="mousemove"&&Se.buttons===0){J(Se);return}const{newValue:Te,activeIndex:Ae}=fe({finger:ke,move:!0});Gw({sliderRef:G,activeIndex:Ae,setActive:f}),y(Te),!p&&g.current>Vte&&E(!0),A&&!Ww(Te,c)&&A(Se,Te,Ae)}),J=pa(Se=>{const ke=jw(Se,o);if(E(!1),!ke)return;const{newValue:Te}=fe({finger:ke,move:!0});f(-1),Se.type==="touchend"&&b(-1),i&&i(Se,Te),o.current=void 0,K()}),oe=pa(Se=>{if(F)return;RL()||Se.preventDefault();const ke=Se.changedTouches[0];ke!=null&&(o.current=ke.identifier);const Te=jw(Se,o);if(Te!==!1){const{newValue:be,activeIndex:Ie}=fe({finger:Te});Gw({sliderRef:G,activeIndex:Ie,setActive:f}),y(be),A&&!Ww(be,c)&&A(Se,be,Ie)}g.current=0;const Ae=oo(G.current);Ae.addEventListener("touchmove",Q,{passive:!0}),Ae.addEventListener("touchend",J,{passive:!0})}),K=Oe.useCallback(()=>{const Se=oo(G.current);Se.removeEventListener("mousemove",Q),Se.removeEventListener("mouseup",J),Se.removeEventListener("touchmove",Q),Se.removeEventListener("touchend",J)},[J,Q]);Oe.useEffect(()=>{const{current:Se}=G;return Se.addEventListener("touchstart",oe,{passive:RL()}),()=>{Se.removeEventListener("touchstart",oe),K()}},[K,oe]),Oe.useEffect(()=>{F&&K()},[F,K]);const ne=Se=>ke=>{var Te;if((Te=Se.onMouseDown)==null||Te.call(Se,ke),F||ke.defaultPrevented||ke.button!==0)return;ke.preventDefault();const Ae=jw(ke,o);if(Ae!==!1){const{newValue:Ie,activeIndex:Ue}=fe({finger:Ae});Gw({sliderRef:G,activeIndex:Ue,setActive:f}),y(Ie),A&&!Ww(Ie,c)&&A(ke,Ie,Ue)}g.current=0;const be=oo(G.current);be.addEventListener("mousemove",Q,{passive:!0}),be.addEventListener("mouseup",J)},ce=o2(M?R[0]:t,t,O),re=o2(R[R.length-1],t,O)-ce,ee=(Se={})=>{const ke=gx(Se),Te={onMouseDown:ne(ke||{})},Ae=Ge({},ke,Te);return Ge({},Se,{ref:H},Ae)},de=Se=>ke=>{var Te;(Te=Se.onMouseOver)==null||Te.call(Se,ke);const Ae=Number(ke.currentTarget.getAttribute("data-index"));b(Ae)},le=Se=>ke=>{var Te;(Te=Se.onMouseLeave)==null||Te.call(Se,ke),b(-1)};return{active:h,axis:ie,axisProps:$te,dragging:p,focusedThumbIndex:N,getHiddenInputProps:(Se={})=>{var ke;const Te=gx(Se),Ae={onChange:q(Te||{}),onFocus:W(Te||{}),onBlur:V(Te||{}),onKeyDown:Z(Te||{})},be=Ge({},Te,Ae);return Ge({tabIndex:n,"aria-labelledby":r,"aria-orientation":C,"aria-valuemax":v(O),"aria-valuemin":v(t),name:l,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(ke=e.step)!=null?ke:void 0,disabled:F},Se,be,{style:Ge({},W7,{direction:Y?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ee,getThumbProps:(Se={})=>{const ke=gx(Se),Te={onMouseOver:de(ke||{}),onMouseLeave:le(ke||{})};return Ge({},Se,ke,Te)},marks:T,open:u,range:M,rootRef:H,trackLeap:re,trackOffset:ce,values:R,getThumbStyle:Se=>({pointerEvents:h!==-1&&h!==Se?"none":void 0})}}const Zte=e=>!e||!xd(e);function Kte(e){return ka("MuiSlider",e)}const xf=Ca("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Jte=e=>{const{open:r}=e;return{offset:Ln(r&&xf.valueLabelOpen),circle:xf.valueLabelCircle,label:xf.valueLabelLabel}};function Qte(e){const{children:r,className:x,value:F}=e,j=Jte(e);return r?Oe.cloneElement(r,{className:Ln(r.props.className)},Ce.jsxs(Oe.Fragment,{children:[r.props.children,Ce.jsx("span",{className:Ln(j.offset,x),"aria-hidden":!0,children:Ce.jsx("span",{className:j.circle,children:Ce.jsx("span",{className:j.label,children:F})})})]})):null}const qte=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function kL(e){return e}const ere=ln("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[`color${Gn(x.color)}`],x.size!=="medium"&&r[`size${Gn(x.size)}`],x.marked&&r.marked,x.orientation==="vertical"&&r.vertical,x.track==="inverted"&&r.trackInverted,x.track===!1&&r.trackFalse]}})(({theme:e})=>{var r;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${xf.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${xf.dragging}`]:{[`& .${xf.thumb}, & .${xf.track}`]:{transition:"none"}},variants:[...Object.keys(((r=e.vars)!=null?r:e).palette).filter(x=>{var F;return((F=e.vars)!=null?F:e).palette[x].main}).map(x=>({props:{color:x},style:{color:(e.vars||e).palette[x].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),tre=ln("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,r)=>r.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),rre=ln("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,r)=>r.track})(({theme:e})=>{var r;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((r=e.vars)!=null?r:e).palette).filter(x=>{var F;return((F=e.vars)!=null?F:e).palette[x].main}).map(x=>({props:{color:x,track:"inverted"},style:Ge({},e.vars?{backgroundColor:e.vars.palette.Slider[`${x}Track`],borderColor:e.vars.palette.Slider[`${x}Track`]}:Ge({backgroundColor:fg(e.palette[x].main,.62),borderColor:fg(e.palette[x].main,.62)},e.applyStyles("dark",{backgroundColor:cg(e.palette[x].main,.5)}),e.applyStyles("dark",{borderColor:cg(e.palette[x].main,.5)})))}))]}}),nre=ln("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.thumb,r[`thumbColor${Gn(x.color)}`],x.size!=="medium"&&r[`thumbSize${Gn(x.size)}`]]}})(({theme:e})=>{var r;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${xf.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((r=e.vars)!=null?r:e).palette).filter(x=>{var F;return((F=e.vars)!=null?F:e).palette[x].main}).map(x=>({props:{color:x},style:{[`&:hover, &.${xf.focusVisible}`]:Ge({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[x].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${wi(e.palette[x].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${xf.active}`]:Ge({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[x].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${wi(e.palette[x].main,.16)}`})}}))]}}),are=ln(Qte,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,r)=>r.valueLabel})(({theme:e})=>Ge({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${xf.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${xf.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),ire=ln("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>bT(e)&&e!=="markActive",overridesResolver:(e,r)=>{const{markActive:x}=e;return[r.mark,x&&r.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),ore=ln("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>bT(e)&&e!=="markLabelActive",overridesResolver:(e,r)=>r.markLabel})(({theme:e})=>Ge({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),sre=e=>{const{disabled:r,dragging:x,marked:F,orientation:j,track:Y,classes:D,color:O,size:t}=e,l={root:["root",r&&"disabled",x&&"dragging",F&&"marked",j==="vertical"&&"vertical",Y==="inverted"&&"trackInverted",Y===!1&&"trackFalse",O&&`color${Gn(O)}`,t&&`size${Gn(t)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",r&&"disabled",t&&`thumbSize${Gn(t)}`,O&&`thumbColor${Gn(O)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return qn(l,Kte,D)},lre=({children:e})=>e,ure=Oe.forwardRef(function(r,x){var F,j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h,f,u,b,p,E,g;const c=Ka({props:r,name:"MuiSlider"}),y=_l(),{"aria-label":A,"aria-valuetext":M,"aria-labelledby":R,component:T="span",components:L={},componentsProps:P={},color:d="primary",classes:k,className:I,disableSwap:N=!1,disabled:B=!1,getAriaLabel:G,getAriaValueText:U,marks:H=!1,max:W=100,min:V=0,orientation:$="horizontal",shiftStep:Z=10,size:q="medium",step:ae=1,scale:ie=kL,slotProps:fe,slots:Q,track:J="normal",valueLabelDisplay:oe="off",valueLabelFormat:K=kL}=c,ne=hn(c,qte),ce=Ge({},c,{isRtl:y,max:W,min:V,classes:k,disabled:B,disableSwap:N,orientation:$,marks:H,color:d,size:q,step:ae,shiftStep:Z,scale:ie,track:J,valueLabelDisplay:oe,valueLabelFormat:K}),{axisProps:re,getRootProps:ee,getHiddenInputProps:de,getThumbProps:le,open:he,active:xe,axis:Ee,focusedThumbIndex:Se,range:ke,dragging:Te,marks:Ae,values:be,trackOffset:Ie,trackLeap:Ue,getThumbStyle:Ne}=Xte(Ge({},ce,{rootRef:x}));ce.marked=Ae.length>0&&Ae.some(ut=>ut.label),ce.dragging=Te,ce.focusedThumbIndex=Se;const ze=sre(ce),$e=(F=(j=Q==null?void 0:Q.root)!=null?j:L.Root)!=null?F:ere,st=(Y=(D=Q==null?void 0:Q.rail)!=null?D:L.Rail)!=null?Y:tre,vt=(O=(t=Q==null?void 0:Q.track)!=null?t:L.Track)!=null?O:rre,at=(l=(S=Q==null?void 0:Q.thumb)!=null?S:L.Thumb)!=null?l:nre,nt=(i=(C=Q==null?void 0:Q.valueLabel)!=null?C:L.ValueLabel)!=null?i:are,mt=(w=(v=Q==null?void 0:Q.mark)!=null?v:L.Mark)!=null?w:ire,rt=(m=(a=Q==null?void 0:Q.markLabel)!=null?a:L.MarkLabel)!=null?m:ore,lt=(n=(s=Q==null?void 0:Q.input)!=null?s:L.Input)!=null?n:"input",dt=(o=fe==null?void 0:fe.root)!=null?o:P.root,wt=(h=fe==null?void 0:fe.rail)!=null?h:P.rail,et=(f=fe==null?void 0:fe.track)!=null?f:P.track,Be=(u=fe==null?void 0:fe.thumb)!=null?u:P.thumb,Ye=(b=fe==null?void 0:fe.valueLabel)!=null?b:P.valueLabel,Ze=(p=fe==null?void 0:fe.mark)!=null?p:P.mark,We=(E=fe==null?void 0:fe.markLabel)!=null?E:P.markLabel,Fe=(g=fe==null?void 0:fe.input)!=null?g:P.input,Me=hi({elementType:$e,getSlotProps:ee,externalSlotProps:dt,externalForwardedProps:ne,additionalProps:Ge({},Zte($e)&&{as:T}),ownerState:Ge({},ce,dt==null?void 0:dt.ownerState),className:[ze.root,I]}),we=hi({elementType:st,externalSlotProps:wt,ownerState:ce,className:ze.rail}),Re=hi({elementType:vt,externalSlotProps:et,additionalProps:{style:Ge({},re[Ee].offset(Ie),re[Ee].leap(Ue))},ownerState:Ge({},ce,et==null?void 0:et.ownerState),className:ze.track}),Pe=hi({elementType:at,getSlotProps:le,externalSlotProps:Be,ownerState:Ge({},ce,Be==null?void 0:Be.ownerState),className:ze.thumb}),Ve=hi({elementType:nt,externalSlotProps:Ye,ownerState:Ge({},ce,Ye==null?void 0:Ye.ownerState),className:ze.valueLabel}),Je=hi({elementType:mt,externalSlotProps:Ze,ownerState:ce,className:ze.mark}),ot=hi({elementType:rt,externalSlotProps:We,ownerState:ce,className:ze.markLabel}),yt=hi({elementType:lt,getSlotProps:de,externalSlotProps:Fe,ownerState:ce});return Ce.jsxs($e,Ge({},Me,{children:[Ce.jsx(st,Ge({},we)),Ce.jsx(vt,Ge({},Re)),Ae.filter(ut=>ut.value>=V&&ut.value<=W).map((ut,It)=>{const Vt=o2(ut.value,V,W),xt=re[Ee].offset(Vt);let Lt;return J===!1?Lt=be.indexOf(ut.value)!==-1:Lt=J==="normal"&&(ke?ut.value>=be[0]&&ut.value<=be[be.length-1]:ut.value<=be[0])||J==="inverted"&&(ke?ut.value<=be[0]||ut.value>=be[be.length-1]:ut.value>=be[0]),Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(mt,Ge({"data-index":It},Je,!xd(mt)&&{markActive:Lt},{style:Ge({},xt,Je.style),className:Ln(Je.className,Lt&&ze.markActive)})),ut.label!=null?Ce.jsx(rt,Ge({"aria-hidden":!0,"data-index":It},ot,!xd(rt)&&{markLabelActive:Lt},{style:Ge({},xt,ot.style),className:Ln(ze.markLabel,ot.className,Lt&&ze.markLabelActive),children:ut.label})):null]},It)}),be.map((ut,It)=>{const Vt=o2(ut,V,W),xt=re[Ee].offset(Vt),Lt=oe==="off"?lre:nt;return Ce.jsx(Lt,Ge({},!xd(Lt)&&{valueLabelFormat:K,valueLabelDisplay:oe,value:typeof K=="function"?K(ie(ut),It):K,index:It,open:he===It||xe===It||oe==="on",disabled:B},Ve,{children:Ce.jsx(at,Ge({"data-index":It},Pe,{className:Ln(ze.thumb,Pe.className,xe===It&&ze.active,Se===It&&ze.focusVisible),style:Ge({},xt,Ne(It),Pe.style),children:Ce.jsx(lt,Ge({"data-index":It,"aria-label":G?G(It):A,"aria-valuenow":ie(ut),"aria-labelledby":R,"aria-valuetext":U?U(ie(ut),It):M,value:be[It]},yt))}))}),It)})]}))});function cre(e){return ka("MuiTooltip",e)}const Cp=Ca("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),fre=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function dre(e){return Math.round(e*1e5)/1e5}const hre=e=>{const{classes:r,disableInteractive:x,arrow:F,touch:j,placement:Y}=e,D={popper:["popper",!x&&"popperInteractive",F&&"popperArrow"],tooltip:["tooltip",F&&"tooltipArrow",j&&"touch",`tooltipPlacement${Gn(Y.split("-")[0])}`],arrow:["arrow"]};return qn(D,cre,r)},vre=ln(Xp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.popper,!x.disableInteractive&&r.popperInteractive,x.arrow&&r.popperArrow,!x.open&&r.popperClose]}})(({theme:e,ownerState:r,open:x})=>Ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!x&&{pointerEvents:"none"},r.arrow&&{[`&[data-popper-placement*="bottom"] .${Cp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cp.arrow}`]:Ge({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Cp.arrow}`]:Ge({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),pre=ln("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.tooltip,x.touch&&r.touch,x.arrow&&r.tooltipArrow,r[`tooltipPlacement${Gn(x.placement.split("-")[0])}`]]}})(({theme:e,ownerState:r})=>Ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:wi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${dre(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cp.popper}[data-popper-placement*="left"] &`]:Ge({transformOrigin:"right center"},r.isRtl?Ge({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):Ge({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[`.${Cp.popper}[data-popper-placement*="right"] &`]:Ge({transformOrigin:"left center"},r.isRtl?Ge({marginRight:"14px"},r.touch&&{marginRight:"24px"}):Ge({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[`.${Cp.popper}[data-popper-placement*="top"] &`]:Ge({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[`.${Cp.popper}[data-popper-placement*="bottom"] &`]:Ge({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})})),gre=ln("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,r)=>r.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:wi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Yw=!1;const DL=new Tb;let k1={x:0,y:0};function Xw(e,r){return(x,...F)=>{r&&r(x,...F),e(x,...F)}}const $9=Oe.forwardRef(function(r,x){var F,j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h,f;const u=Ka({props:r,name:"MuiTooltip"}),{arrow:b=!1,children:p,components:E={},componentsProps:g={},describeChild:c=!1,disableFocusListener:y=!1,disableHoverListener:A=!1,disableInteractive:M=!1,disableTouchListener:R=!1,enterDelay:T=100,enterNextDelay:L=0,enterTouchDelay:P=700,followCursor:d=!1,id:k,leaveDelay:I=0,leaveTouchDelay:N=1500,onClose:B,onOpen:G,open:U,placement:H="bottom",PopperComponent:W,PopperProps:V={},slotProps:$={},slots:Z={},title:q,TransitionComponent:ae=Ey,TransitionProps:ie}=u,fe=hn(u,fre),Q=Oe.isValidElement(p)?p:Ce.jsx("span",{children:p}),J=nu(),oe=_l(),[K,ne]=Oe.useState(),[ce,re]=Oe.useState(null),ee=Oe.useRef(!1),de=M||d,le=Cc(),he=Cc(),xe=Cc(),Ee=Cc(),[Se,ke]=Ol({controlled:U,default:!1,name:"Tooltip",state:"open"});let Te=Se;const Ae=Ui(k),be=Oe.useRef(),Ie=pa(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),Ee.clear()});Oe.useEffect(()=>Ie,[Ie]);const Ue=Xt=>{DL.clear(),Yw=!0,ke(!0),G&&!Te&&G(Xt)},Ne=pa(Xt=>{DL.start(800+I,()=>{Yw=!1}),ke(!1),B&&Te&&B(Xt),le.start(J.transitions.duration.shortest,()=>{ee.current=!1})}),ze=Xt=>{ee.current&&Xt.type!=="touchstart"||(K&&K.removeAttribute("title"),he.clear(),xe.clear(),T||Yw&&L?he.start(Yw?L:T,()=>{Ue(Xt)}):Ue(Xt))},$e=Xt=>{he.clear(),xe.start(I,()=>{Ne(Xt)})},{isFocusVisibleRef:st,onBlur:vt,onFocus:at,ref:nt}=Sb(),[,mt]=Oe.useState(!1),rt=Xt=>{vt(Xt),st.current===!1&&(mt(!1),$e(Xt))},lt=Xt=>{K||ne(Xt.currentTarget),at(Xt),st.current===!0&&(mt(!0),ze(Xt))},dt=Xt=>{ee.current=!0;const dr=Q.props;dr.onTouchStart&&dr.onTouchStart(Xt)},wt=Xt=>{dt(Xt),xe.clear(),le.clear(),Ie(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ee.start(P,()=>{document.body.style.WebkitUserSelect=be.current,ze(Xt)})},et=Xt=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(Xt),Ie(),xe.start(N,()=>{Ne(Xt)})};Oe.useEffect(()=>{if(!Te)return;function Xt(dr){(dr.key==="Escape"||dr.key==="Esc")&&Ne(dr)}return document.addEventListener("keydown",Xt),()=>{document.removeEventListener("keydown",Xt)}},[Ne,Te]);const Be=vi(Q.ref,nt,ne,x);!q&&q!==0&&(Te=!1);const Ye=Oe.useRef(),Ze=Xt=>{const dr=Q.props;dr.onMouseMove&&dr.onMouseMove(Xt),k1={x:Xt.clientX,y:Xt.clientY},Ye.current&&Ye.current.update()},We={},Fe=typeof q=="string";c?(We.title=!Te&&Fe&&!A?q:null,We["aria-describedby"]=Te?Ae:null):(We["aria-label"]=Fe?q:null,We["aria-labelledby"]=Te&&!Fe?Ae:null);const Me=Ge({},We,fe,Q.props,{className:Ln(fe.className,Q.props.className),onTouchStart:dt,ref:Be},d?{onMouseMove:Ze}:{}),we={};R||(Me.onTouchStart=wt,Me.onTouchEnd=et),A||(Me.onMouseOver=Xw(ze,Me.onMouseOver),Me.onMouseLeave=Xw($e,Me.onMouseLeave),de||(we.onMouseOver=ze,we.onMouseLeave=$e)),y||(Me.onFocus=Xw(lt,Me.onFocus),Me.onBlur=Xw(rt,Me.onBlur),de||(we.onFocus=lt,we.onBlur=rt));const Re=Oe.useMemo(()=>{var Xt;let dr=[{name:"arrow",enabled:!!ce,options:{element:ce,padding:4}}];return(Xt=V.popperOptions)!=null&&Xt.modifiers&&(dr=dr.concat(V.popperOptions.modifiers)),Ge({},V.popperOptions,{modifiers:dr})},[ce,V]),Pe=Ge({},u,{isRtl:oe,arrow:b,disableInteractive:de,placement:H,PopperComponentProp:W,touch:ee.current}),Ve=hre(Pe),Je=(F=(j=Z.popper)!=null?j:E.Popper)!=null?F:vre,ot=(Y=(D=(O=Z.transition)!=null?O:E.Transition)!=null?D:ae)!=null?Y:Ey,yt=(t=(l=Z.tooltip)!=null?l:E.Tooltip)!=null?t:pre,ut=(S=(i=Z.arrow)!=null?i:E.Arrow)!=null?S:gre,It=Rm(Je,Ge({},V,(C=$.popper)!=null?C:g.popper,{className:Ln(Ve.popper,V==null?void 0:V.className,(w=(v=$.popper)!=null?v:g.popper)==null?void 0:w.className)}),Pe),Vt=Rm(ot,Ge({},ie,(m=$.transition)!=null?m:g.transition),Pe),xt=Rm(yt,Ge({},(a=$.tooltip)!=null?a:g.tooltip,{className:Ln(Ve.tooltip,(n=(s=$.tooltip)!=null?s:g.tooltip)==null?void 0:n.className)}),Pe),Lt=Rm(ut,Ge({},(o=$.arrow)!=null?o:g.arrow,{className:Ln(Ve.arrow,(h=(f=$.arrow)!=null?f:g.arrow)==null?void 0:h.className)}),Pe);return Ce.jsxs(Oe.Fragment,{children:[Oe.cloneElement(Q,Me),Ce.jsx(Je,Ge({as:W??Xp,placement:H,anchorEl:d?{getBoundingClientRect:()=>({top:k1.y,left:k1.x,right:k1.x,bottom:k1.y,width:0,height:0})}:K,popperRef:Ye,open:K?Te:!1,id:Ae,transition:!0},we,It,{popperOptions:Re,children:({TransitionProps:Xt})=>Ce.jsx(ot,Ge({timeout:J.transitions.duration.shorter},Xt,Vt,{children:Ce.jsxs(yt,Ge({},xt,{children:[q,b?Ce.jsx(ut,Ge({},Lt,{ref:re})):null]}))}))}))]})}),IT=Oe.createContext({}),m5=Oe.createContext({});function mre(e){return ka("MuiStep",e)}Ca("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const yre=["active","children","className","component","completed","disabled","expanded","index","last"],xre=e=>{const{classes:r,orientation:x,alternativeLabel:F,completed:j}=e;return qn({root:["root",x,F&&"alternativeLabel",j&&"completed"]},mre,r)},bre=ln("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.orientation],x.alternativeLabel&&r.alternativeLabel,x.completed&&r.completed]}})(({ownerState:e})=>Ge({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Sf=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiStep"}),{active:j,children:Y,className:D,component:O="div",completed:t,disabled:l,expanded:S=!1,index:i,last:C}=F,w=hn(F,yre),{activeStep:v,connector:m,alternativeLabel:a,orientation:n,nonLinear:s}=Oe.useContext(IT);let[o=!1,h=!1,f=!1]=[j,t,l];v===i?o=j!==void 0?j:!0:!s&&v>i?h=t!==void 0?t:!0:!s&&v({index:i,last:C,expanded:S,icon:i+1,active:o,completed:h,disabled:f}),[i,C,S,o,h,f]),b=Ge({},F,{active:o,orientation:n,alternativeLabel:a,completed:h,disabled:f,expanded:S,component:O}),p=xre(b),E=Ce.jsxs(bre,Ge({as:O,className:Ln(p.root,D),ref:x,ownerState:b},w,{children:[m&&a&&i!==0?m:null,Y]}));return Ce.jsx(m5.Provider,{value:u,children:m&&!a&&i!==0?Ce.jsxs(Oe.Fragment,{children:[m,E]}):E})}),wre=ci(Ce.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Tre=ci(Ce.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function Sre(e){return ka("MuiStepIcon",e)}const pC=Ca("MuiStepIcon",["root","active","completed","error","text"]);var OL;const Cre=["active","className","completed","error","icon"],Mre=e=>{const{classes:r,active:x,completed:F,error:j}=e;return qn({root:["root",x&&"active",F&&"completed",j&&"error"],text:["text"]},Sre,r)},gC=ln(e2,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${pC.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${pC.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${pC.error}`]:{color:(e.vars||e).palette.error.main}})),Are=ln("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,r)=>r.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Ere=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiStepIcon"}),{active:j=!1,className:Y,completed:D=!1,error:O=!1,icon:t}=F,l=hn(F,Cre),S=Ge({},F,{active:j,completed:D,error:O}),i=Mre(S);if(typeof t=="number"||typeof t=="string"){const C=Ln(Y,i.root);return O?Ce.jsx(gC,Ge({as:Tre,className:C,ref:x,ownerState:S},l)):D?Ce.jsx(gC,Ge({as:wre,className:C,ref:x,ownerState:S},l)):Ce.jsxs(gC,Ge({className:C,ref:x,ownerState:S},l,{children:[OL||(OL=Ce.jsx("circle",{cx:"12",cy:"12",r:"12"})),Ce.jsx(Are,{className:i.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:S,children:t})]}))}return t});function Pre(e){return ka("MuiStepLabel",e)}const Mp=Ca("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Lre=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Ire=e=>{const{classes:r,orientation:x,active:F,completed:j,error:Y,disabled:D,alternativeLabel:O}=e;return qn({root:["root",x,Y&&"error",D&&"disabled",O&&"alternativeLabel"],label:["label",F&&"active",j&&"completed",Y&&"error",D&&"disabled",O&&"alternativeLabel"],iconContainer:["iconContainer",F&&"active",j&&"completed",Y&&"error",D&&"disabled",O&&"alternativeLabel"],labelContainer:["labelContainer",O&&"alternativeLabel"]},Pre,r)},Rre=ln("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.orientation]]}})(({ownerState:e})=>Ge({display:"flex",alignItems:"center",[`&.${Mp.alternativeLabel}`]:{flexDirection:"column"},[`&.${Mp.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),kre=ln("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,r)=>r.label})(({theme:e})=>Ge({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Mp.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Mp.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Mp.alternativeLabel}`]:{marginTop:16},[`&.${Mp.error}`]:{color:(e.vars||e).palette.error.main}})),Dre=ln("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,r)=>r.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Mp.alternativeLabel}`]:{paddingRight:0}})),Ore=ln("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,r)=>r.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Mp.alternativeLabel}`]:{textAlign:"center"}})),Ec=Oe.forwardRef(function(r,x){var F;const j=Ka({props:r,name:"MuiStepLabel"}),{children:Y,className:D,componentsProps:O={},error:t=!1,icon:l,optional:S,slotProps:i={},StepIconComponent:C,StepIconProps:w}=j,v=hn(j,Lre),{alternativeLabel:m,orientation:a}=Oe.useContext(IT),{active:n,disabled:s,completed:o,icon:h}=Oe.useContext(m5),f=l||h;let u=C;f&&!u&&(u=Ere);const b=Ge({},j,{active:n,alternativeLabel:m,completed:o,disabled:s,error:t,orientation:a}),p=Ire(b),E=(F=i.label)!=null?F:O.label;return Ce.jsxs(Rre,Ge({className:Ln(p.root,D),ref:x,ownerState:b},v,{children:[f||u?Ce.jsx(Dre,{className:p.iconContainer,ownerState:b,children:Ce.jsx(u,Ge({completed:o,active:n,error:t,icon:f},w))}):null,Ce.jsxs(Ore,{className:p.labelContainer,ownerState:b,children:[Y?Ce.jsx(kre,Ge({ownerState:b},E,{className:Ln(p.label,E==null?void 0:E.className),children:Y})):null,S]})]}))});Ec.muiName="StepLabel";function Fre(e){return ka("MuiStepConnector",e)}Ca("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const _re=["className"],zre=e=>{const{classes:r,orientation:x,alternativeLabel:F,active:j,completed:Y,disabled:D}=e,O={root:["root",x,F&&"alternativeLabel",j&&"active",Y&&"completed",D&&"disabled"],line:["line",`line${Gn(x)}`]};return qn(O,Fre,r)},Bre=ln("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.orientation],x.alternativeLabel&&r.alternativeLabel,x.completed&&r.completed]}})(({ownerState:e})=>Ge({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),Nre=ln("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.line,r[`line${Gn(x.orientation)}`]]}})(({ownerState:e,theme:r})=>{const x=r.palette.mode==="light"?r.palette.grey[400]:r.palette.grey[600];return Ge({display:"block",borderColor:r.vars?r.vars.palette.StepConnector.border:x},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),Ure=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiStepConnector"}),{className:j}=F,Y=hn(F,_re),{alternativeLabel:D,orientation:O="horizontal"}=Oe.useContext(IT),{active:t,disabled:l,completed:S}=Oe.useContext(m5),i=Ge({},F,{alternativeLabel:D,orientation:O,active:t,completed:S,disabled:l}),C=zre(i);return Ce.jsx(Bre,Ge({className:Ln(C.root,j),ref:x,ownerState:i},Y,{children:Ce.jsx(Nre,{className:C.line,ownerState:i})}))});function Hre(e){return ka("MuiStepper",e)}Ca("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Vre=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],jre=e=>{const{orientation:r,nonLinear:x,alternativeLabel:F,classes:j}=e;return qn({root:["root",r,x&&"nonLinear",F&&"alternativeLabel"]},Hre,j)},Gre=ln("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.orientation],x.alternativeLabel&&r.alternativeLabel,x.nonLinear&&r.nonLinear]}})(({ownerState:e})=>Ge({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Wre=Ce.jsx(Ure,{}),RT=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiStepper"}),{activeStep:j=0,alternativeLabel:Y=!1,children:D,className:O,component:t="div",connector:l=Wre,nonLinear:S=!1,orientation:i="horizontal"}=F,C=hn(F,Vre),w=Ge({},F,{nonLinear:S,alternativeLabel:Y,orientation:i,component:t}),v=jre(w),m=Oe.Children.toArray(D).filter(Boolean),a=m.map((s,o)=>Oe.cloneElement(s,Ge({index:o,last:o+1===m.length},s.props))),n=Oe.useMemo(()=>({activeStep:j,alternativeLabel:Y,connector:l,nonLinear:S,orientation:i}),[j,Y,l,S,i]);return Ce.jsx(IT.Provider,{value:n,children:Ce.jsx(Gre,Ge({as:t,ownerState:w,className:Ln(v.root,O),ref:x},C,{children:a}))})});function $re(e){return ka("MuiTab",e)}const ap=Ca("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Yre=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Xre=e=>{const{classes:r,textColor:x,fullWidth:F,wrapped:j,icon:Y,label:D,selected:O,disabled:t}=e,l={root:["root",Y&&D&&"labelIcon",`textColor${Gn(x)}`,F&&"fullWidth",j&&"wrapped",O&&"selected",t&&"disabled"],iconWrapper:["iconWrapper"]};return qn(l,$re,r)},Zre=ln(Ef,{name:"MuiTab",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.label&&x.icon&&r.labelIcon,r[`textColor${Gn(x.textColor)}`],x.fullWidth&&r.fullWidth,x.wrapped&&r.wrapped,{[`& .${ap.iconWrapper}`]:r.iconWrapper}]}})(({theme:e,ownerState:r})=>Ge({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:r.iconPosition==="top"||r.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ap.iconWrapper}`]:Ge({},r.iconPosition==="top"&&{marginBottom:6},r.iconPosition==="bottom"&&{marginTop:6},r.iconPosition==="start"&&{marginRight:e.spacing(1)},r.iconPosition==="end"&&{marginLeft:e.spacing(1)})},r.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ap.selected}`]:{opacity:1},[`&.${ap.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ap.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled}},r.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ap.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled}},r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:e.typography.pxToRem(12)})),mC=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTab"}),{className:j,disabled:Y=!1,disableFocusRipple:D=!1,fullWidth:O,icon:t,iconPosition:l="top",indicator:S,label:i,onChange:C,onClick:w,onFocus:v,selected:m,selectionFollowsFocus:a,textColor:n="inherit",value:s,wrapped:o=!1}=F,h=hn(F,Yre),f=Ge({},F,{disabled:Y,disableFocusRipple:D,selected:m,icon:!!t,iconPosition:l,label:!!i,fullWidth:O,textColor:n,wrapped:o}),u=Xre(f),b=t&&i&&Oe.isValidElement(t)?Oe.cloneElement(t,{className:Ln(u.iconWrapper,t.props.className)}):t,p=g=>{!m&&C&&C(g,s),w&&w(g)},E=g=>{a&&!m&&C&&C(g,s),v&&v(g)};return Ce.jsxs(Zre,Ge({focusRipple:!D,className:Ln(u.root,j),ref:x,role:"tab","aria-selected":m,disabled:Y,onClick:p,onFocus:E,ownerState:f,tabIndex:m?0:-1},h,{children:[l==="top"||l==="start"?Ce.jsxs(Oe.Fragment,{children:[b,i]}):Ce.jsxs(Oe.Fragment,{children:[i,b]}),S]}))}),Y9=Oe.createContext();function Kre(e){return ka("MuiTable",e)}Ca("MuiTable",["root","stickyHeader"]);const Jre=["className","component","padding","size","stickyHeader"],Qre=e=>{const{classes:r,stickyHeader:x}=e;return qn({root:["root",x&&"stickyHeader"]},Kre,r)},qre=ln("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.stickyHeader&&r.stickyHeader]}})(({theme:e,ownerState:r})=>Ge({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ge({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})),FL="table",X9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTable"}),{className:j,component:Y=FL,padding:D="normal",size:O="medium",stickyHeader:t=!1}=F,l=hn(F,Jre),S=Ge({},F,{component:Y,padding:D,size:O,stickyHeader:t}),i=Qre(S),C=Oe.useMemo(()=>({padding:D,size:O,stickyHeader:t}),[D,O,t]);return Ce.jsx(Y9.Provider,{value:C,children:Ce.jsx(qre,Ge({as:Y,role:Y===FL?null:"table",ref:x,className:Ln(i.root,j),ownerState:S},l))})}),y5=Oe.createContext();function ene(e){return ka("MuiTableBody",e)}Ca("MuiTableBody",["root"]);const tne=["className","component"],rne=e=>{const{classes:r}=e;return qn({root:["root"]},ene,r)},nne=ln("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"table-row-group"}),ane={variant:"body"},_L="tbody",Z9=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTableBody"}),{className:j,component:Y=_L}=F,D=hn(F,tne),O=Ge({},F,{component:Y}),t=rne(O);return Ce.jsx(y5.Provider,{value:ane,children:Ce.jsx(nne,Ge({className:Ln(t.root,j),as:Y,ref:x,role:Y===_L?null:"rowgroup",ownerState:O},D))})});function ine(e){return ka("MuiTableCell",e)}const one=Ca("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),sne=["align","className","component","padding","scope","size","sortDirection","variant"],lne=e=>{const{classes:r,variant:x,align:F,padding:j,size:Y,stickyHeader:D}=e,O={root:["root",x,D&&"stickyHeader",F!=="inherit"&&`align${Gn(F)}`,j!=="normal"&&`padding${Gn(j)}`,`size${Gn(Y)}`]};return qn(O,ine,r)},une=ln("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,r[x.variant],r[`size${Gn(x.size)}`],x.padding!=="normal"&&r[`padding${Gn(x.padding)}`],x.align!=="inherit"&&r[`align${Gn(x.align)}`],x.stickyHeader&&r.stickyHeader]}})(({theme:e,ownerState:r})=>Ge({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?fg(wi(e.palette.divider,1),.88):cg(wi(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},r.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},r.variant==="body"&&{color:(e.vars||e).palette.text.primary},r.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},r.size==="small"&&{padding:"6px 16px",[`&.${one.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},r.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},r.padding==="none"&&{padding:0},r.align==="left"&&{textAlign:"left"},r.align==="center"&&{textAlign:"center"},r.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},r.align==="justify"&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Kh=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTableCell"}),{align:j="inherit",className:Y,component:D,padding:O,scope:t,size:l,sortDirection:S,variant:i}=F,C=hn(F,sne),w=Oe.useContext(Y9),v=Oe.useContext(y5),m=v&&v.variant==="head";let a;D?a=D:a=m?"th":"td";let n=t;a==="td"?n=void 0:!n&&m&&(n="col");const s=i||v&&v.variant,o=Ge({},F,{align:j,component:a,padding:O||(w&&w.padding?w.padding:"normal"),size:l||(w&&w.size?w.size:"medium"),sortDirection:S,stickyHeader:s==="head"&&w&&w.stickyHeader,variant:s}),h=lne(o);let f=null;return S&&(f=S==="asc"?"ascending":"descending"),Ce.jsx(une,Ge({as:a,ref:x,className:Ln(h.root,Y),"aria-sort":f,scope:n,ownerState:o},C))});function cne(e){return ka("MuiToolbar",e)}Ca("MuiToolbar",["root","gutters","regular","dense"]);const fne=["className","component","disableGutters","variant"],dne=e=>{const{classes:r,disableGutters:x,variant:F}=e;return qn({root:["root",!x&&"gutters",F]},cne,r)},hne=ln("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,!x.disableGutters&&r.gutters,r[x.variant]]}})(({theme:e,ownerState:r})=>Ge({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},r.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:r})=>r.variant==="regular"&&e.mixins.toolbar),x5=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiToolbar"}),{className:j,component:Y="div",disableGutters:D=!1,variant:O="regular"}=F,t=hn(F,fne),l=Ge({},F,{component:Y,disableGutters:D,variant:O}),S=dne(l);return Ce.jsx(hne,Ge({as:Y,className:Ln(S.root,j),ref:x,ownerState:l},t))}),K9=ci(Ce.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),J9=ci(Ce.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),vne=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],pne=Oe.forwardRef(function(r,x){var F,j,Y,D,O,t,l,S;const{backIconButtonProps:i,count:C,disabled:w=!1,getItemAriaLabel:v,nextIconButtonProps:m,onPageChange:a,page:n,rowsPerPage:s,showFirstButton:o,showLastButton:h,slots:f={},slotProps:u={}}=r,b=hn(r,vne),p=_l(),E=$=>{a($,0)},g=$=>{a($,n-1)},c=$=>{a($,n+1)},y=$=>{a($,Math.max(0,Math.ceil(C/s)-1))},A=(F=f.firstButton)!=null?F:dl,M=(j=f.lastButton)!=null?j:dl,R=(Y=f.nextButton)!=null?Y:dl,T=(D=f.previousButton)!=null?D:dl,L=(O=f.firstButtonIcon)!=null?O:Z4,P=(t=f.lastButtonIcon)!=null?t:K4,d=(l=f.nextButtonIcon)!=null?l:J9,k=(S=f.previousButtonIcon)!=null?S:K9,I=p?M:A,N=p?R:T,B=p?T:R,G=p?A:M,U=p?u.lastButton:u.firstButton,H=p?u.nextButton:u.previousButton,W=p?u.previousButton:u.nextButton,V=p?u.firstButton:u.lastButton;return Ce.jsxs("div",Ge({ref:x},b,{children:[o&&Ce.jsx(I,Ge({onClick:E,disabled:w||n===0,"aria-label":v("first",n),title:v("first",n)},U,{children:p?Ce.jsx(P,Ge({},u.lastButtonIcon)):Ce.jsx(L,Ge({},u.firstButtonIcon))})),Ce.jsx(N,Ge({onClick:g,disabled:w||n===0,color:"inherit","aria-label":v("previous",n),title:v("previous",n)},H??i,{children:p?Ce.jsx(d,Ge({},u.nextButtonIcon)):Ce.jsx(k,Ge({},u.previousButtonIcon))})),Ce.jsx(B,Ge({onClick:c,disabled:w||(C!==-1?n>=Math.ceil(C/s)-1:!1),color:"inherit","aria-label":v("next",n),title:v("next",n)},W??m,{children:p?Ce.jsx(k,Ge({},u.previousButtonIcon)):Ce.jsx(d,Ge({},u.nextButtonIcon))})),h&&Ce.jsx(G,Ge({onClick:y,disabled:w||n>=Math.ceil(C/s)-1,"aria-label":v("last",n),title:v("last",n)},V,{children:p?Ce.jsx(L,Ge({},u.firstButtonIcon)):Ce.jsx(P,Ge({},u.lastButtonIcon))}))]}))});function gne(e){return ka("MuiTablePagination",e)}const rg=Ca("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var zL;const mne=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],yne=ln(Kh,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),xne=ln(x5,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,r)=>Ge({[`& .${rg.actions}`]:r.actions},r.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${rg.actions}`]:{flexShrink:0,marginLeft:20}})),bne=ln("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,r)=>r.spacer})({flex:"1 1 100%"}),wne=ln("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,r)=>r.selectLabel})(({theme:e})=>Ge({},e.typography.body2,{flexShrink:0})),Tne=ln(gd,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,r)=>Ge({[`& .${rg.selectIcon}`]:r.selectIcon,[`& .${rg.select}`]:r.select},r.input,r.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${rg.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Sne=ln(uo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,r)=>r.menuItem})({}),Cne=ln("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,r)=>r.displayedRows})(({theme:e})=>Ge({},e.typography.body2,{flexShrink:0}));function Mne({from:e,to:r,count:x}){return`${e}–${r} of ${x!==-1?x:`more than ${r}`}`}function Ane(e){return`Go to ${e} page`}const Ene=e=>{const{classes:r}=e;return qn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},gne,r)},Pne=Oe.forwardRef(function(r,x){var F;const j=Ka({props:r,name:"MuiTablePagination"}),{ActionsComponent:Y=pne,backIconButtonProps:D,className:O,colSpan:t,component:l=Kh,count:S,disabled:i=!1,getItemAriaLabel:C=Ane,labelDisplayedRows:w=Mne,labelRowsPerPage:v="Rows per page:",nextIconButtonProps:m,onPageChange:a,onRowsPerPageChange:n,page:s,rowsPerPage:o,rowsPerPageOptions:h=[10,25,50,100],SelectProps:f={},showFirstButton:u=!1,showLastButton:b=!1,slotProps:p={},slots:E={}}=j,g=hn(j,mne),c=j,y=Ene(c),A=(F=p==null?void 0:p.select)!=null?F:f,M=A.native?"option":Sne;let R;(l===Kh||l==="td")&&(R=t||1e3);const T=Ui(A.id),L=Ui(A.labelId),P=()=>S===-1?(s+1)*o:o===-1?S:Math.min(S,(s+1)*o);return Ce.jsx(yne,Ge({colSpan:R,ref:x,as:l,ownerState:c,className:Ln(y.root,O)},g,{children:Ce.jsxs(xne,{className:y.toolbar,children:[Ce.jsx(bne,{className:y.spacer}),h.length>1&&Ce.jsx(wne,{className:y.selectLabel,id:L,children:v}),h.length>1&&Ce.jsx(Tne,Ge({variant:"standard"},!A.variant&&{input:zL||(zL=Ce.jsx(Vy,{}))},{value:o,onChange:n,id:T,labelId:L},A,{classes:Ge({},A.classes,{root:Ln(y.input,y.selectRoot,(A.classes||{}).root),select:Ln(y.select,(A.classes||{}).select),icon:Ln(y.selectIcon,(A.classes||{}).icon)}),disabled:i,children:h.map(d=>Oe.createElement(M,Ge({},!xd(M)&&{ownerState:c},{className:y.menuItem,key:d.label?d.label:d,value:d.value?d.value:d}),d.label?d.label:d))})),Ce.jsx(Cne,{className:y.displayedRows,children:w({from:S===0?0:s*o+1,to:P(),count:S===-1?-1:S,page:s})}),Ce.jsx(Y,{className:y.actions,backIconButtonProps:D,count:S,nextIconButtonProps:m,onPageChange:a,page:s,rowsPerPage:o,showFirstButton:u,showLastButton:b,slotProps:p.actions,slots:E.actions,getItemAriaLabel:C,disabled:i})]})}))});function Lne(e){return ka("MuiTableRow",e)}const BL=Ca("MuiTableRow",["root","selected","hover","head","footer"]),Ine=["className","component","hover","selected"],Rne=e=>{const{classes:r,selected:x,hover:F,head:j,footer:Y}=e;return qn({root:["root",x&&"selected",F&&"hover",j&&"head",Y&&"footer"]},Lne,r)},kne=ln("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.head&&r.head,x.footer&&r.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${BL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${BL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wi(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),NL="tr",J4=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTableRow"}),{className:j,component:Y=NL,hover:D=!1,selected:O=!1}=F,t=hn(F,Ine),l=Oe.useContext(y5),S=Ge({},F,{component:Y,hover:D,selected:O,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),i=Rne(S);return Ce.jsx(kne,Ge({as:Y,ref:x,className:Ln(i.root,j),role:Y===NL?null:"row",ownerState:S},t))});function Dne(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function One(e,r,x,F={},j=()=>{}){const{ease:Y=Dne,duration:D=300}=F;let O=null;const t=r[e];let l=!1;const S=()=>{l=!0},i=C=>{if(l){j(new Error("Animation cancelled"));return}O===null&&(O=C);const w=Math.min(1,(C-O)/D);if(r[e]=Y(w)*(x-t)+t,w>=1){requestAnimationFrame(()=>{j(null)});return}requestAnimationFrame(i)};return t===x?(j(new Error("Element already at target position")),S):(requestAnimationFrame(i),S)}const Fne=["onChange"],_ne={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function zne(e){const{onChange:r}=e,x=hn(e,Fne),F=Oe.useRef(),j=Oe.useRef(null),Y=()=>{F.current=j.current.offsetHeight-j.current.clientHeight};return Gi(()=>{const D=bg(()=>{const t=F.current;Y(),t!==F.current&&r(F.current)}),O=Cd(j.current);return O.addEventListener("resize",D),()=>{D.clear(),O.removeEventListener("resize",D)}},[r]),Oe.useEffect(()=>{Y(),r(F.current)},[r]),Ce.jsx("div",Ge({style:_ne,ref:j},x))}function Bne(e){return ka("MuiTabScrollButton",e)}const Nne=Ca("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Une=["className","slots","slotProps","direction","orientation","disabled"],Hne=e=>{const{classes:r,orientation:x,disabled:F}=e;return qn({root:["root",x,F&&"disabled"]},Bne,r)},Vne=ln(Ef,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.root,x.orientation&&r[x.orientation]]}})(({ownerState:e})=>Ge({width:40,flexShrink:0,opacity:.8,[`&.${Nne.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),jne=Oe.forwardRef(function(r,x){var F,j;const Y=Ka({props:r,name:"MuiTabScrollButton"}),{className:D,slots:O={},slotProps:t={},direction:l}=Y,S=hn(Y,Une),i=_l(),C=Ge({isRtl:i},Y),w=Hne(C),v=(F=O.StartScrollButtonIcon)!=null?F:K9,m=(j=O.EndScrollButtonIcon)!=null?j:J9,a=hi({elementType:v,externalSlotProps:t.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:C}),n=hi({elementType:m,externalSlotProps:t.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:C});return Ce.jsx(Vne,Ge({component:"div",className:Ln(w.root,D),ref:x,role:null,ownerState:C,tabIndex:null},S,{children:l==="left"?Ce.jsx(v,Ge({},a)):Ce.jsx(m,Ge({},n))}))});function Gne(e){return ka("MuiTabs",e)}const yC=Ca("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Wne=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],UL=(e,r)=>e===r?e.firstChild:r&&r.nextElementSibling?r.nextElementSibling:e.firstChild,HL=(e,r)=>e===r?e.lastChild:r&&r.previousElementSibling?r.previousElementSibling:e.lastChild,Zw=(e,r,x)=>{let F=!1,j=x(e,r);for(;j;){if(j===e.firstChild){if(F)return;F=!0}const Y=j.disabled||j.getAttribute("aria-disabled")==="true";if(!j.hasAttribute("tabindex")||Y)j=x(e,j);else{j.focus();return}}},$ne=e=>{const{vertical:r,fixed:x,hideScrollbar:F,scrollableX:j,scrollableY:Y,centered:D,scrollButtonsHideMobile:O,classes:t}=e;return qn({root:["root",r&&"vertical"],scroller:["scroller",x&&"fixed",F&&"hideScrollbar",j&&"scrollableX",Y&&"scrollableY"],flexContainer:["flexContainer",r&&"flexContainerVertical",D&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",O&&"scrollButtonsHideMobile"],scrollableX:[j&&"scrollableX"],hideScrollbar:[F&&"hideScrollbar"]},Gne,t)},Yne=ln("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[{[`& .${yC.scrollButtons}`]:r.scrollButtons},{[`& .${yC.scrollButtons}`]:x.scrollButtonsHideMobile&&r.scrollButtonsHideMobile},r.root,x.vertical&&r.vertical]}})(({ownerState:e,theme:r})=>Ge({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${yC.scrollButtons}`]:{[r.breakpoints.down("sm")]:{display:"none"}}})),Xne=ln("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.scroller,x.fixed&&r.fixed,x.hideScrollbar&&r.hideScrollbar,x.scrollableX&&r.scrollableX,x.scrollableY&&r.scrollableY]}})(({ownerState:e})=>Ge({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Zne=ln("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,r)=>{const{ownerState:x}=e;return[r.flexContainer,x.vertical&&r.flexContainerVertical,x.centered&&r.centered]}})(({ownerState:e})=>Ge({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Kne=ln("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,r)=>r.indicator})(({ownerState:e,theme:r})=>Ge({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(r.vars||r).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(r.vars||r).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Jne=ln(zne)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),VL={},Qne=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTabs"}),j=nu(),Y=_l(),{"aria-label":D,"aria-labelledby":O,action:t,centered:l=!1,children:S,className:i,component:C="div",allowScrollButtonsMobile:w=!1,indicatorColor:v="primary",onChange:m,orientation:a="horizontal",ScrollButtonComponent:n=jne,scrollButtons:s="auto",selectionFollowsFocus:o,slots:h={},slotProps:f={},TabIndicatorProps:u={},TabScrollButtonProps:b={},textColor:p="primary",value:E,variant:g="standard",visibleScrollbar:c=!1}=F,y=hn(F,Wne),A=g==="scrollable",M=a==="vertical",R=M?"scrollTop":"scrollLeft",T=M?"top":"left",L=M?"bottom":"right",P=M?"clientHeight":"clientWidth",d=M?"height":"width",k=Ge({},F,{component:C,allowScrollButtonsMobile:w,indicatorColor:v,orientation:a,vertical:M,scrollButtons:s,textColor:p,variant:g,visibleScrollbar:c,fixed:!A,hideScrollbar:A&&!c,scrollableX:A&&!M,scrollableY:A&&M,centered:l&&!A,scrollButtonsHideMobile:!w}),I=$ne(k),N=hi({elementType:h.StartScrollButtonIcon,externalSlotProps:f.startScrollButtonIcon,ownerState:k}),B=hi({elementType:h.EndScrollButtonIcon,externalSlotProps:f.endScrollButtonIcon,ownerState:k}),[G,U]=Oe.useState(!1),[H,W]=Oe.useState(VL),[V,$]=Oe.useState(!1),[Z,q]=Oe.useState(!1),[ae,ie]=Oe.useState(!1),[fe,Q]=Oe.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,oe=Oe.useRef(null),K=Oe.useRef(null),ne=()=>{const Ne=oe.current;let ze;if(Ne){const st=Ne.getBoundingClientRect();ze={clientWidth:Ne.clientWidth,scrollLeft:Ne.scrollLeft,scrollTop:Ne.scrollTop,scrollLeftNormalized:EW(Ne,Y?"rtl":"ltr"),scrollWidth:Ne.scrollWidth,top:st.top,bottom:st.bottom,left:st.left,right:st.right}}let $e;if(Ne&&E!==!1){const st=K.current.children;if(st.length>0){const vt=st[J.get(E)];$e=vt?vt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:$e}},ce=pa(()=>{const{tabsMeta:Ne,tabMeta:ze}=ne();let $e=0,st;if(M)st="top",ze&&Ne&&($e=ze.top-Ne.top+Ne.scrollTop);else if(st=Y?"right":"left",ze&&Ne){const at=Y?Ne.scrollLeftNormalized+Ne.clientWidth-Ne.scrollWidth:Ne.scrollLeft;$e=(Y?-1:1)*(ze[st]-Ne[st]+at)}const vt={[st]:$e,[d]:ze?ze[d]:0};if(isNaN(H[st])||isNaN(H[d]))W(vt);else{const at=Math.abs(H[st]-vt[st]),nt=Math.abs(H[d]-vt[d]);(at>=1||nt>=1)&&W(vt)}}),re=(Ne,{animation:ze=!0}={})=>{ze?One(R,oe.current,Ne,{duration:j.transitions.duration.standard}):oe.current[R]=Ne},ee=Ne=>{let ze=oe.current[R];M?ze+=Ne:(ze+=Ne*(Y?-1:1),ze*=Y&&G7()==="reverse"?-1:1),re(ze)},de=()=>{const Ne=oe.current[P];let ze=0;const $e=Array.from(K.current.children);for(let st=0;st<$e.length;st+=1){const vt=$e[st];if(ze+vt[P]>Ne){st===0&&(ze=Ne);break}ze+=vt[P]}return ze},le=()=>{ee(-1*de())},he=()=>{ee(de())},xe=Oe.useCallback(Ne=>{Q({overflow:null,scrollbarWidth:Ne})},[]),Ee=()=>{const Ne={};Ne.scrollbarSizeListener=A?Ce.jsx(Jne,{onChange:xe,className:Ln(I.scrollableX,I.hideScrollbar)}):null;const $e=A&&(s==="auto"&&(V||Z)||s===!0);return Ne.scrollButtonStart=$e?Ce.jsx(n,Ge({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:a,direction:Y?"right":"left",onClick:le,disabled:!V},b,{className:Ln(I.scrollButtons,b.className)})):null,Ne.scrollButtonEnd=$e?Ce.jsx(n,Ge({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:a,direction:Y?"left":"right",onClick:he,disabled:!Z},b,{className:Ln(I.scrollButtons,b.className)})):null,Ne},Se=pa(Ne=>{const{tabsMeta:ze,tabMeta:$e}=ne();if(!(!$e||!ze)){if($e[T]ze[L]){const st=ze[R]+($e[L]-ze[L]);re(st,{animation:Ne})}}}),ke=pa(()=>{A&&s!==!1&&ie(!ae)});Oe.useEffect(()=>{const Ne=bg(()=>{oe.current&&ce()});let ze;const $e=at=>{at.forEach(nt=>{nt.removedNodes.forEach(mt=>{var rt;(rt=ze)==null||rt.unobserve(mt)}),nt.addedNodes.forEach(mt=>{var rt;(rt=ze)==null||rt.observe(mt)})}),Ne(),ke()},st=Cd(oe.current);st.addEventListener("resize",Ne);let vt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Ne),Array.from(K.current.children).forEach(at=>{ze.observe(at)})),typeof MutationObserver<"u"&&(vt=new MutationObserver($e),vt.observe(K.current,{childList:!0})),()=>{var at,nt;Ne.clear(),st.removeEventListener("resize",Ne),(at=vt)==null||at.disconnect(),(nt=ze)==null||nt.disconnect()}},[ce,ke]),Oe.useEffect(()=>{const Ne=Array.from(K.current.children),ze=Ne.length;if(typeof IntersectionObserver<"u"&&ze>0&&A&&s!==!1){const $e=Ne[0],st=Ne[ze-1],vt={root:oe.current,threshold:.99},at=lt=>{$(!lt[0].isIntersecting)},nt=new IntersectionObserver(at,vt);nt.observe($e);const mt=lt=>{q(!lt[0].isIntersecting)},rt=new IntersectionObserver(mt,vt);return rt.observe(st),()=>{nt.disconnect(),rt.disconnect()}}},[A,s,ae,S==null?void 0:S.length]),Oe.useEffect(()=>{U(!0)},[]),Oe.useEffect(()=>{ce()}),Oe.useEffect(()=>{Se(VL!==H)},[Se,H]),Oe.useImperativeHandle(t,()=>({updateIndicator:ce,updateScrollButtons:ke}),[ce,ke]);const Te=Ce.jsx(Kne,Ge({},u,{className:Ln(I.indicator,u.className),ownerState:k,style:Ge({},H,u.style)}));let Ae=0;const be=Oe.Children.map(S,Ne=>{if(!Oe.isValidElement(Ne))return null;const ze=Ne.props.value===void 0?Ae:Ne.props.value;J.set(ze,Ae);const $e=ze===E;return Ae+=1,Oe.cloneElement(Ne,Ge({fullWidth:g==="fullWidth",indicator:$e&&!G&&Te,selected:$e,selectionFollowsFocus:o,onChange:m,textColor:p,value:ze},Ae===1&&E===!1&&!Ne.props.tabIndex?{tabIndex:0}:{}))}),Ie=Ne=>{const ze=K.current,$e=oo(ze).activeElement;if($e.getAttribute("role")!=="tab")return;let vt=a==="horizontal"?"ArrowLeft":"ArrowUp",at=a==="horizontal"?"ArrowRight":"ArrowDown";switch(a==="horizontal"&&Y&&(vt="ArrowRight",at="ArrowLeft"),Ne.key){case vt:Ne.preventDefault(),Zw(ze,$e,HL);break;case at:Ne.preventDefault(),Zw(ze,$e,UL);break;case"Home":Ne.preventDefault(),Zw(ze,null,UL);break;case"End":Ne.preventDefault(),Zw(ze,null,HL);break}},Ue=Ee();return Ce.jsxs(Yne,Ge({className:Ln(I.root,i),ownerState:k,ref:x,as:C},y,{children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,Ce.jsxs(Xne,{className:I.scroller,ownerState:k,style:{overflow:fe.overflow,[M?`margin${Y?"Left":"Right"}`:"marginBottom"]:c?void 0:-fe.scrollbarWidth},ref:oe,children:[Ce.jsx(Zne,{"aria-label":D,"aria-labelledby":O,"aria-orientation":a==="vertical"?"vertical":null,className:I.flexContainer,ownerState:k,onKeyDown:Ie,ref:K,role:"tablist",children:be}),G&&Te]}),Ue.scrollButtonEnd]}))});function qne(e){return ka("MuiTextField",e)}Ca("MuiTextField",["root"]);const eae=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],tae={standard:u5,filled:s5,outlined:p5},rae=e=>{const{classes:r}=e;return qn({root:["root"]},qne,r)},nae=ln(oh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Ko=Oe.forwardRef(function(r,x){const F=Ka({props:r,name:"MuiTextField"}),{autoComplete:j,autoFocus:Y=!1,children:D,className:O,color:t="primary",defaultValue:l,disabled:S=!1,error:i=!1,FormHelperTextProps:C,fullWidth:w=!1,helperText:v,id:m,InputLabelProps:a,inputProps:n,InputProps:s,inputRef:o,label:h,maxRows:f,minRows:u,multiline:b=!1,name:p,onBlur:E,onChange:g,onFocus:c,placeholder:y,required:A=!1,rows:M,select:R=!1,SelectProps:T,type:L,value:P,variant:d="outlined"}=F,k=hn(F,eae),I=Ge({},F,{autoFocus:Y,color:t,disabled:S,error:i,fullWidth:w,multiline:b,required:A,select:R,variant:d}),N=rae(I),B={};d==="outlined"&&(a&&typeof a.shrink<"u"&&(B.notched=a.shrink),B.label=h),R&&((!T||!T.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const G=Ui(m),U=v&&G?`${G}-helper-text`:void 0,H=h&&G?`${G}-label`:void 0,W=tae[d],V=Ce.jsx(W,Ge({"aria-describedby":U,autoComplete:j,autoFocus:Y,defaultValue:l,fullWidth:w,multiline:b,name:p,rows:M,maxRows:f,minRows:u,type:L,value:P,id:G,inputRef:o,onBlur:E,onChange:g,onFocus:c,placeholder:y,inputProps:n},B,s));return Ce.jsxs(nae,Ge({className:Ln(N.root,O),disabled:S,error:i,fullWidth:w,ref:x,required:A,color:t,variant:d,ownerState:I},k,{children:[h!=null&&h!==""&&Ce.jsx(Py,Ge({htmlFor:G,id:H},a,{children:h})),R?Ce.jsx(gd,Ge({"aria-describedby":U,id:G,labelId:H,value:P,input:V},T,{children:D})):V,v&&Ce.jsx(l5,Ge({id:U},C,{children:v}))]}))}),aae=["localeText"],Q4=Oe.createContext(null),kT=function(r){const{localeText:x}=r,F=hn(r,aae),{utils:j,localeText:Y}=Oe.useContext(Q4)??{utils:void 0,localeText:void 0},D=zo({props:F,name:"MuiLocalizationProvider"}),{children:O,dateAdapter:t,dateFormats:l,dateLibInstance:S,adapterLocale:i,localeText:C}=D,w=Oe.useMemo(()=>Ge({},C,Y,x),[C,Y,x]),v=Oe.useMemo(()=>{if(!t)return j||null;const n=new t({locale:i,formats:l,instance:S});if(!n.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return n},[t,i,l,S,j]),m=Oe.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),a=Oe.useMemo(()=>({utils:v,defaultDates:m,localeText:w}),[m,v,w]);return Ce.jsx(Q4.Provider,{value:a,children:O})},iae=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ge({},e)}}}}),Q9={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,r,x)=>`Select ${e}. ${r===null?"No time selected":`Selected time is ${x.format(r,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,r)=>e!==null&&r.isValid(e)?`Choose date, selected date is ${r.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,r)=>e!==null&&r.isValid(e)?`Choose time, selected time is ${r.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},oae=Q9;iae(Q9);const Tg=()=>{const e=Oe.useContext(Q4);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const r=Oe.useMemo(()=>Ge({},qoe,e.localeText),[e.localeText]);return Oe.useMemo(()=>Ge({},e,{localeText:r}),[e,r])},zo=()=>Tg().utils,zb=()=>Tg().defaultDates,HT=e=>{const r=zo(),y=Oe.useRef();return y.current===void 0&&(y.current=r.date(void 0,e)),y.current},hv=()=>Tg().localeText,ese=ci(Ce.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),tse=ci(Ce.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),rse=ci(Ce.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),nse=ci(Ce.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");ci(Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Ce.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ci(Ce.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");ci(Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Ce.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const ase=ci(Ce.jsx("path",{d:"M19 6.41 17.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"}),"Clear");function ise(e){return ka("MuiPickersArrowSwitcher",e)}Ma("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const ose=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],sse=["ownerState"],lse=["ownerState"],use=ln("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex"}),cse=ln("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,r)=>r.spacer})(({theme:e})=>({width:e.spacing(3)})),JL=ln(fl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,r)=>r.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),fse=e=>{const{classes:r}=e;return qn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},ise,r)},dse=Oe.forwardRef(function(r,y){const F=Fl(),j=_o({props:r,name:"MuiPickersArrowSwitcher"}),{children:Y,className:D,slots:O,slotProps:t,isNextDisabled:l,isNextHidden:S,onGoToNext:i,nextLabel:C,isPreviousDisabled:w,isPreviousHidden:v,onGoToPrevious:m,previousLabel:a,labelId:n}=j,s=hn(j,ose),o=j,h=fse(o),f={isDisabled:l,isHidden:S,goTo:i,label:C},u={isDisabled:w,isHidden:v,goTo:m,label:a},b=(O==null?void 0:O.previousIconButton)??JL,p=vi({elementType:b,externalSlotProps:t==null?void 0:t.previousIconButton,additionalProps:{size:"medium",title:u.label,"aria-label":u.label,disabled:u.isDisabled,edge:"end",onClick:u.goTo},ownerState:Ge({},o,{hidden:u.isHidden}),className:Ln(h.button,h.previousIconButton)}),E=(O==null?void 0:O.nextIconButton)??JL,g=vi({elementType:E,externalSlotProps:t==null?void 0:t.nextIconButton,additionalProps:{size:"medium",title:f.label,"aria-label":f.label,disabled:f.isDisabled,edge:"start",onClick:f.goTo},ownerState:Ge({},o,{hidden:f.isHidden}),className:Ln(h.button,h.nextIconButton)}),c=(O==null?void 0:O.leftArrowIcon)??tse,x=vi({elementType:c,externalSlotProps:t==null?void 0:t.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:o,className:h.leftArrowIcon}),A=hn(x,sse),M=(O==null?void 0:O.rightArrowIcon)??rse,R=vi({elementType:M,externalSlotProps:t==null?void 0:t.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:o,className:h.rightArrowIcon}),T=hn(R,lse);return Ce.jsxs(use,Ge({ref:y,className:Ln(h.root,D),ownerState:o},s,{children:[Ce.jsx(b,Ge({},p,{children:F?Ce.jsx(M,Ge({},T)):Ce.jsx(c,Ge({},A))})),Y?Ce.jsx(ea,{variant:"subtitle1",component:"span",id:n,children:Y}):Ce.jsx(cse,{className:h.spacer,ownerState:o}),Ce.jsx(E,Ge({},g,{children:F?Ce.jsx(c,Ge({},A)):Ce.jsx(M,Ge({},T))}))]}))}),k1=(e,r)=>e.length!==r.length?!1:r.every(y=>e.includes(y)),hse=({openTo:e,defaultOpenTo:r,views:y,defaultViews:F})=>{const j=y??F;let Y;if(e!=null)Y=e;else if(j.includes(r))Y=r;else if(j.length>0)Y=j[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:j,openTo:Y}},vse=["hours","minutes","seconds"],pse=e=>vse.includes(e),QL=(e,r)=>r.getHours(e)*3600+r.getMinutes(e)*60+r.getSeconds(e),gse=(e,r)=>(y,F)=>e?r.isAfter(y,F):QL(y,r)>QL(F,r);function mO({onChange:e,onViewChange:r,openTo:y,view:F,views:j,autoFocus:Y,focusedView:D,onFocusedViewChange:O}){const t=Oe.useRef(y),l=Oe.useRef(j),S=Oe.useRef(j.includes(y)?y:j[0]),[i,C]=Dl({name:"useViews",state:"view",controlled:F,default:S.current}),w=Oe.useRef(Y?i:null),[v,m]=Dl({name:"useViews",state:"focusedView",controlled:D,default:w.current});Oe.useEffect(()=>{(t.current&&t.current!==y||l.current&&l.current.some(b=>!j.includes(b)))&&(C(j.includes(y)?y:j[0]),l.current=j,t.current=y)},[y,C,i,j]);const a=j.indexOf(i),n=j[a-1]??null,s=j[a+1]??null,o=pa((b,p)=>{m(p?b:E=>b===E?null:E),O==null||O(b,p)}),h=pa(b=>{o(b,!0),b!==i&&(C(b),r&&r(b))}),f=pa(()=>{s&&h(s)}),u=pa((b,p,E)=>{const g=p==="finish",c=E?j.indexOf(E){const Y=j.date(void 0,F),D=j.startOfMonth(r&&j.isBefore(Y,y)?Y:y);return!j.isAfter(D,e)},[r,y,e,j,F])}function yse(e,{disablePast:r,minDate:y,timezone:F}){const j=zo();return Oe.useMemo(()=>{const Y=j.date(void 0,F),D=j.startOfMonth(r&&j.isAfter(Y,y)?Y:y);return!j.isBefore(D,e)},[r,y,e,j,F])}const qx=36,VT=2,jT=320,xse=280,I5=336,bse=ln("div")({overflow:"hidden",width:jT,maxHeight:I5,display:"flex",flexDirection:"column",margin:"0 auto"}),v2=(e,r,y)=>{let F=r;return F=e.setHours(F,e.getHours(y)),F=e.setMinutes(F,e.getMinutes(y)),F=e.setSeconds(F,e.getSeconds(y)),F},wx=({date:e,disableFuture:r,disablePast:y,maxDate:F,minDate:j,isDateDisabled:Y,utils:D,timezone:O})=>{const t=v2(D,D.date(void 0,O),e);y&&D.isBefore(j,t)&&(j=t),r&&D.isAfter(F,t)&&(F=t);let l=e,S=e;for(D.isBefore(e,j)&&(l=j,S=null),D.isAfter(e,F)&&(S&&(S=F),l=null);l||S;){if(l&&D.isAfter(l,F)&&(l=null),S&&D.isBefore(S,j)&&(S=null),l){if(!Y(l))return l;l=D.addDays(l,1)}if(S){if(!Y(S))return S;S=D.addDays(S,-1)}}return null},wse=(e,r)=>r==null||!e.isValid(r)?null:r,Lf=(e,r,y)=>r==null||!e.isValid(r)?y:r,Tse=(e,r,y)=>!e.isValid(r)&&r!=null&&!e.isValid(y)&&y!=null?!0:e.isEqual(r,y),R5=(e,r)=>{const F=[e.startOfYear(r)];for(;F.length<12;){const j=F[F.length-1];F.push(e.addMonths(j,1))}return F},yO=(e,r,y)=>y==="date"?e.startOfDay(e.date(void 0,r)):e.date(void 0,r),Sse=["year","month","day"],qL=e=>Sse.includes(e),k5=(e,{format:r,views:y},F)=>{if(r!=null)return r;const j=e.formats;return k1(y,["year"])?j.year:k1(y,["month"])?j.month:k1(y,["day"])?j.dayOfMonth:k1(y,["month","year"])?`${j.month} ${j.year}`:k1(y,["day","month"])?`${j.month} ${j.dayOfMonth}`:F?/en/.test(e.getCurrentLocaleCode())?j.normalDateWithWeekday:j.normalDate:j.keyboardDate},Cse=(e,r)=>{const y=e.startOfWeek(r);return[0,1,2,3,4,5,6].map(F=>e.addDays(y,F))},D5=({timezone:e,value:r,defaultValue:y,onChange:F,valueManager:j})=>{const Y=zo(),D=Oe.useRef(y),O=r??D.current??j.emptyValue,t=Oe.useMemo(()=>j.getTimezone(Y,O),[Y,j,O]),l=pa(w=>t==null?w:j.setTimezone(Y,t,w)),S=e??t??"default",i=Oe.useMemo(()=>j.setTimezone(Y,S,O),[j,Y,S,O]),C=pa((w,...v)=>{const m=l(w);F==null||F(m,...v)});return{value:i,handleValueChange:C,timezone:S}},O5=({name:e,timezone:r,value:y,defaultValue:F,onChange:j,valueManager:Y})=>{const[D,O]=Dl({name:e,state:"value",controlled:y,default:F??Y.emptyValue}),t=pa((l,...S)=>{O(l),j==null||j(l,...S)});return D5({timezone:r,value:D,defaultValue:void 0,onChange:t,valueManager:Y})},eh={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Mse=e=>Math.max(...e.map(r=>eh[r.type]??1)),D1=(e,r,y)=>{if(r===eh.year)return e.startOfYear(y);if(r===eh.month)return e.startOfMonth(y);if(r===eh.day)return e.startOfDay(y);let F=y;return r{let Y=j?j():D1(r,y,yO(r,F));e.minDate!=null&&r.isAfterDay(e.minDate,Y)&&(Y=D1(r,y,e.minDate)),e.maxDate!=null&&r.isBeforeDay(e.maxDate,Y)&&(Y=D1(r,y,e.maxDate));const D=gse(e.disableIgnoringDatePartForTimeValidation??!1,r);return e.minTime!=null&&D(e.minTime,Y)&&(Y=D1(r,y,e.disableIgnoringDatePartForTimeValidation?e.minTime:v2(r,Y,e.minTime))),e.maxTime!=null&&D(Y,e.maxTime)&&(Y=D1(r,y,e.disableIgnoringDatePartForTimeValidation?e.maxTime:v2(r,Y,e.maxTime))),Y},xO=(e,r)=>{const y=e.formatTokenMap[r];if(y==null)throw new Error([`MUI X: The token "${r}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof y=="string"?{type:y,contentType:y==="meridiem"?"letter":"digit",maxLength:void 0}:{type:y.sectionType,contentType:y.contentType,maxLength:y.maxLength}},Ese=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},GT=(e,r,y)=>{const F=[],j=e.date(void 0,r),Y=e.startOfWeek(j),D=e.endOfWeek(j);let O=Y;for(;e.isBefore(O,D);)F.push(O),O=e.addDays(O,1);return F.map(t=>e.formatByString(t,y))},bO=(e,r,y,F)=>{switch(y){case"month":return R5(e,e.date(void 0,r)).map(j=>e.formatByString(j,F));case"weekDay":return GT(e,r,F);case"meridiem":{const j=e.date(void 0,r);return[e.startOfDay(j),e.endOfDay(j)].map(Y=>e.formatByString(Y,F))}default:return[]}},eI="s",Pse=["0","1","2","3","4","5","6","7","8","9"],Lse=e=>{const r=e.date(void 0);return e.formatByString(e.setSeconds(r,0),eI)==="0"?Pse:Array.from({length:10}).map((F,j)=>e.formatByString(e.setSeconds(r,j),eI))},hg=(e,r)=>{if(r[0]==="0")return e;const y=[];let F="";for(let j=0;j-1&&(y.push(Y.toString()),F="")}return y.join("")},F5=(e,r)=>r[0]==="0"?e:e.split("").map(y=>r[Number(y)]).join(""),tI=(e,r)=>{const y=hg(e,r);return y!==" "&&!Number.isNaN(Number(y))},wO=(e,r)=>{let y=e;for(y=Number(y).toString();y.length{if(j.type==="day"&&j.contentType==="digit-with-letter"){const D=e.setDate(y.longestMonth,r);return e.formatByString(D,j.format)}let Y=r.toString();return j.hasLeadingZerosInInput&&(Y=wO(Y,j.maxLength)),F5(Y,F)},Ise=(e,r,y,F,j,Y,D,O)=>{const t=Ese(F),l=F==="Home",S=F==="End",i=y.value===""||l||S,C=()=>{const v=j[y.type]({currentDate:D,format:y.format,contentType:y.contentType}),m=o=>TO(e,o,v,Y,y),a=y.type==="minutes"&&(O!=null&&O.minutesStep)?O.minutesStep:1;let s=parseInt(hg(y.value,Y),10)+t*a;if(i){if(y.type==="year"&&!S&&!l)return e.formatByString(e.date(void 0,r),y.format);t>0||l?s=v.minimum:s=v.maximum}return s%a!==0&&((t<0||l)&&(s+=a-(a+s)%a),(t>0||S)&&(s-=s%a)),s>v.maximum?m(v.minimum+(s-v.maximum-1)%(v.maximum-v.minimum+1)):s{const v=bO(e,r,y.type,y.format);if(v.length===0)return y.value;if(i)return t>0||l?v[0]:v[v.length-1];const n=((v.indexOf(y.value)+t)%v.length+v.length)%v.length;return v[n]};return y.contentType==="digit"||y.contentType==="digit-with-letter"?C():w()},_5=(e,r,y)=>{let F=e.value||e.placeholder;const j=r==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return r==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(F=Number(hg(F,y)).toString()),["input-rtl","input-ltr"].includes(r)&&e.contentType==="digit"&&!j&&F.length===1&&(F=`${F}‎`),r==="input-rtl"&&(F=`⁨${F}⁩`),F},rI=(e,r,y,F)=>e.formatByString(e.parse(r,y),F),SO=(e,r,y)=>e.formatByString(e.date(void 0,r),y).length===4,CO=(e,r,y,F,j)=>{if(y!=="digit")return!1;const Y=e.date(void 0,r);switch(F){case"year":return SO(e,r,j)?e.formatByString(e.setYear(Y,1),j)==="0001":e.formatByString(e.setYear(Y,2001),j)==="01";case"month":return e.formatByString(e.startOfYear(Y),j).length>1;case"day":return e.formatByString(e.startOfMonth(Y),j).length>1;case"weekDay":return e.formatByString(e.startOfWeek(Y),j).length>1;case"hours":return e.formatByString(e.setHours(Y,1),j).length>1;case"minutes":return e.formatByString(e.setMinutes(Y,1),j).length>1;case"seconds":return e.formatByString(e.setSeconds(Y,1),j).length>1;default:throw new Error("Invalid section type")}},Rse=(e,r,y)=>{const F=r.some(t=>t.type==="day"),j=[],Y=[];for(let t=0;te.map(r=>`${r.startSeparator}${r.value||r.placeholder}${r.endSeparator}`).join(""),Dse=(e,r,y)=>{const j=e.map(Y=>{const D=_5(Y,y?"input-rtl":"input-ltr",r);return`${Y.startSeparator}${D}${Y.endSeparator}`}).join("");return y?`⁦${j}⁩`:j},Ose=(e,r,y)=>{const F=e.date(void 0,y),j=e.endOfYear(F),Y=e.endOfDay(F),{maxDaysInMonth:D,longestMonth:O}=R5(e,F).reduce((t,l)=>{const S=e.getDaysInMonth(l);return S>t.maxDaysInMonth?{maxDaysInMonth:S,longestMonth:l}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:SO(e,y,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(j)+1}),day:({currentDate:t})=>({minimum:1,maximum:t!=null&&e.isValid(t)?e.getDaysInMonth(t):D,longestMonth:O}),weekDay:({format:t,contentType:l})=>{if(l==="digit"){const S=GT(e,y,t).map(Number);return{minimum:Math.min(...S),maximum:Math.max(...S)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const l=e.getHours(Y);return hg(e.formatByString(e.endOfDay(F),t),r)!==l.toString()?{minimum:1,maximum:Number(hg(e.formatByString(e.startOfDay(F),t),r))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(Y)}),seconds:()=>({minimum:0,maximum:e.getSeconds(Y)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Fse=(e,r,y,F,j)=>{switch(y.type){case"year":return e.setYear(j,e.getYear(F));case"month":return e.setMonth(j,e.getMonth(F));case"weekDay":{const Y=GT(e,r,y.format),D=e.formatByString(F,y.format),O=Y.indexOf(D),l=Y.indexOf(y.value)-O;return e.addDays(F,l)}case"day":return e.setDate(j,e.getDate(F));case"meridiem":{const Y=e.getHours(F)<12,D=e.getHours(j);return Y&&D>=12?e.addHours(j,-12):!Y&&D<12?e.addHours(j,12):j}case"hours":return e.setHours(j,e.getHours(F));case"minutes":return e.setMinutes(j,e.getMinutes(F));case"seconds":return e.setSeconds(j,e.getSeconds(F));default:return j}},nI={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},aI=(e,r,y,F,j,Y)=>[...F].sort((D,O)=>nI[D.type]-nI[O.type]).reduce((D,O)=>!Y||O.modified?Fse(e,r,O,y,D):D,j),_se=()=>navigator.userAgent.toLowerCase().includes("android"),zse=(e,r)=>{const y={};if(!r)return e.forEach((t,l)=>{const S=l===0?null:l-1,i=l===e.length-1?null:l+1;y[l]={leftIndex:S,rightIndex:i}}),{neighbors:y,startIndex:0,endIndex:e.length-1};const F={},j={};let Y=0,D=0,O=e.length-1;for(;O>=0;){D=e.findIndex((t,l)=>{var S;return l>=Y&&((S=t.endSeparator)==null?void 0:S.includes(" "))&&t.endSeparator!==" / "}),D===-1&&(D=e.length-1);for(let t=D;t>=Y;t-=1)j[t]=O,F[O]=t,O-=1;Y=D+1}return e.forEach((t,l)=>{const S=j[l],i=S===0?null:F[S-1],C=S===e.length-1?null:F[S+1];y[l]={leftIndex:i,rightIndex:C}}),{neighbors:y,startIndex:F[0],endIndex:F[e.length-1]}},lM=(e,r)=>e==null?null:e==="all"?"all":typeof e=="string"?r.findIndex(y=>y.type===e):e,Bse=(e,r)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return r.format(r.setMonth(r.date(),Number(e.value)-1),"month");const y=r.parse(e.value,e.format);return y?r.format(y,"month"):void 0}case"day":return e.contentType==="digit"?r.format(r.setDate(r.startOfYear(r.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Nse=(e,r)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const y=r.parse(`01:00 ${e.value}`,`${r.formats.hours12h}:${r.formats.minutes} ${e.format}`);return y?r.getHours(y)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const y=r.parse(e.value,e.format);return y?r.getMonth(y)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},Use=["value","referenceDate"],lv={emptyValue:null,getTodayValue:yO,getInitialReferenceValue:e=>{let{value:r,referenceDate:y}=e,F=hn(e,Use);return r!=null&&F.utils.isValid(r)?r:y??Ase(F)},cleanValue:wse,areValuesEqual:Tse,isSameError:(e,r)=>e===r,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,r)=>r==null||!e.isValid(r)?null:e.getTimezone(r),setTimezone:(e,r,y)=>y==null?null:e.setTimezone(y,r)},Hse={updateReferenceValue:(e,r,y)=>r==null||!e.isValid(r)?y:r,getSectionsFromValue:(e,r,y,F)=>!e.isValid(r)&&!!y?y:F(r),getV7HiddenInputValueFromSections:kse,getV6InputValueFromSections:Dse,getActiveDateManager:(e,r)=>({date:r.value,referenceDate:r.referenceValue,getSections:y=>y,getNewValuesFromNewActiveDate:y=>({value:y,referenceValue:y==null||!e.isValid(y)?r.referenceValue:y})}),parseValueStr:(e,r,y)=>y(e.trim(),r)};function Vse(e){return ka("MuiPickersDay",e)}const P0=Ma("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),jse=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Gse=e=>{const{selected:r,disableMargin:y,disableHighlightToday:F,today:j,disabled:Y,outsideCurrentMonth:D,showDaysOutsideCurrentMonth:O,classes:t}=e,l=D&&!O;return qn({root:["root",r&&!l&&"selected",Y&&"disabled",!y&&"dayWithMargin",!F&&j&&"today",D&&O&&"dayOutsideMonth",l&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Vse,t)},MO=({theme:e})=>Ge({},e.typography.caption,{width:qx,height:qx,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tc(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tc(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${P0.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${P0.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${P0.disabled}:not(.${P0.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${P0.disabled}&.${P0.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${VT}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${P0.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),AO=(e,r)=>{const{ownerState:y}=e;return[r.root,!y.disableMargin&&r.dayWithMargin,!y.disableHighlightToday&&y.today&&r.today,!y.outsideCurrentMonth&&y.showDaysOutsideCurrentMonth&&r.dayOutsideMonth,y.outsideCurrentMonth&&!y.showDaysOutsideCurrentMonth&&r.hiddenDaySpacingFiller]},Wse=ln(Af,{name:"MuiPickersDay",slot:"Root",overridesResolver:AO})(MO),$se=ln("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:AO})(({theme:e})=>Ge({},MO({theme:e}),{opacity:0,pointerEvents:"none"})),O1=()=>{},Yse=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersDay"}),{autoFocus:j=!1,className:Y,day:D,disabled:O=!1,disableHighlightToday:t=!1,disableMargin:l=!1,isAnimating:S,onClick:i,onDaySelect:C,onFocus:w=O1,onBlur:v=O1,onKeyDown:m=O1,onMouseDown:a=O1,onMouseEnter:n=O1,outsideCurrentMonth:s,selected:o=!1,showDaysOutsideCurrentMonth:h=!1,children:f,today:u=!1}=F,b=hn(F,jse),p=Ge({},F,{autoFocus:j,disabled:O,disableHighlightToday:t,disableMargin:l,selected:o,showDaysOutsideCurrentMonth:h,today:u}),E=Gse(p),g=zo(),c=Oe.useRef(null),x=pi(c,y);Gi(()=>{j&&!O&&!S&&!s&&c.current.focus()},[j,O,S,s]);const A=R=>{a(R),s&&R.preventDefault()},M=R=>{O||C(D),s&&R.currentTarget.focus(),i&&i(R)};return s&&!h?Ce.jsx($se,{className:Ln(E.root,E.hiddenDaySpacingFiller,Y),ownerState:p,role:b.role}):Ce.jsx(Wse,Ge({className:Ln(E.root,Y),ref:x,centerRipple:!0,disabled:O,tabIndex:o?0:-1,onKeyDown:R=>m(R,D),onFocus:R=>w(R,D),onBlur:R=>v(R,D),onMouseEnter:R=>n(R,D),onClick:M,onMouseDown:A},b,{ownerState:p,children:f||g.format(D,"dayOfMonth")}))}),Xse=Oe.memo(Yse);function EO(e,r,y,F){const{value:j,onError:Y}=e,D=Tg(),O=Oe.useRef(F),t=r({adapter:D,value:j,props:e});return Oe.useEffect(()=>{Y&&!y(t,O.current)&&Y(t,j),O.current=t},[y,Y,O,t,j]),t}const Zse=({utils:e,format:r})=>{let y=10,F=r,j=e.expandFormat(r);for(;j!==F;)if(F=j,j=e.expandFormat(F),y-=1,y<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return j},Kse=({utils:e,expandedFormat:r})=>{const y=[],{start:F,end:j}=e.escapedCharacters,Y=new RegExp(`(\\${F}[^\\${j}]*\\${j})+`,"g");let D=null;for(;D=Y.exec(r);)y.push({start:D.index,end:Y.lastIndex-1});return y},Jse=(e,r,y,F,j)=>{switch(F.type){case"year":return y.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,r),j).length,format:j});case"month":return y.fieldMonthPlaceholder({contentType:F.contentType,format:j});case"day":return y.fieldDayPlaceholder({format:j});case"weekDay":return y.fieldWeekDayPlaceholder({contentType:F.contentType,format:j});case"hours":return y.fieldHoursPlaceholder({format:j});case"minutes":return y.fieldMinutesPlaceholder({format:j});case"seconds":return y.fieldSecondsPlaceholder({format:j});case"meridiem":return y.fieldMeridiemPlaceholder({format:j});default:return j}},Qse=({utils:e,timezone:r,date:y,shouldRespectLeadingZeros:F,localeText:j,localizedDigits:Y,now:D,token:O,startSeparator:t})=>{if(O==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=xO(e,O),S=CO(e,r,l.contentType,l.type,O),i=F?S:l.contentType==="digit",C=y!=null&&e.isValid(y);let w=C?e.formatByString(y,O):"",v=null;if(i)if(S)v=w===""?e.formatByString(D,O).length:w.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${O} should have a 'maxDigitNumber' property on it's adapter`);v=l.maxLength,C&&(w=F5(wO(hg(w,Y),v),Y))}return Ge({},l,{format:O,maxLength:v,value:w,placeholder:Jse(e,r,j,l,O),hasLeadingZerosInFormat:S,hasLeadingZerosInInput:i,startSeparator:t,endSeparator:"",modified:!1})},qse=e=>{var w;const{utils:r,expandedFormat:y,escapedParts:F}=e,j=r.date(void 0),Y=[];let D="";const O=Object.keys(r.formatTokenMap).sort((v,m)=>m.length-v.length),t=/^([a-zA-Z]+)/,l=new RegExp(`^(${O.join("|")})*$`),S=new RegExp(`^(${O.join("|")})`),i=v=>F.find(m=>m.start<=v&&m.end>=v);let C=0;for(;C0;){const s=S.exec(n)[1];n=n.slice(s.length),Y.push(Qse(Ge({},e,{now:j,token:s,startSeparator:D}))),D=""}C+=a.length}else{const n=y[C];m&&(v==null?void 0:v.start)===C||(v==null?void 0:v.end)===C||(Y.length===0?D+=n:Y[Y.length-1].endSeparator+=n),C+=1}}return Y.length===0&&D.length>0&&Y.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:D,endSeparator:"",modified:!1}),Y},ele=({isRtl:e,formatDensity:r,sections:y})=>y.map(F=>{const j=Y=>{let D=Y;return e&&D!==null&&D.includes(" ")&&(D=`⁩${D}⁦`),r==="spacious"&&["/",".","-"].includes(D)&&(D=` ${D} `),D};return F.startSeparator=j(F.startSeparator),F.endSeparator=j(F.endSeparator),F}),iI=e=>{let r=Zse(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(r=r.split(" ").reverse().join(" "));const y=Kse(Ge({},e,{expandedFormat:r})),F=qse(Ge({},e,{expandedFormat:r,escapedParts:y}));return ele(Ge({},e,{sections:F}))},tle=e=>{const r=zo(),y=hv(),F=Tg(),j=Fl(),{valueManager:Y,fieldValueManager:D,valueType:O,validator:t,internalProps:l,internalProps:{value:S,defaultValue:i,referenceDate:C,onChange:w,format:v,formatDensity:m="dense",selectedSections:a,onSelectedSectionsChange:n,shouldRespectLeadingZeros:s=!1,timezone:o,enableAccessibleFieldDOMStructure:h=!1}}=e,{timezone:f,value:u,handleValueChange:b}=D5({timezone:o,value:S,defaultValue:i,onChange:w,valueManager:Y}),p=Oe.useMemo(()=>Lse(r),[r]),E=Oe.useMemo(()=>Ose(r,p,f),[r,p,f]),g=Oe.useCallback((U,H=null)=>D.getSectionsFromValue(r,U,H,W=>iI({utils:r,timezone:f,localeText:y,localizedDigits:p,format:v,date:W,formatDensity:m,shouldRespectLeadingZeros:s,enableAccessibleFieldDOMStructure:h,isRtl:j})),[D,v,y,p,j,s,r,m,f,h]),[c,x]=Oe.useState(()=>{const U=g(u),H={sections:U,value:u,referenceValue:Y.emptyValue,tempValueStrAndroid:null},W=Mse(U),V=Y.getInitialReferenceValue({referenceDate:C,value:u,utils:r,props:l,granularity:W,timezone:f});return Ge({},H,{referenceValue:V})}),[A,M]=Dl({controlled:a,default:null,name:"useField",state:"selectedSections"}),R=U=>{M(U),n==null||n(U)},T=Oe.useMemo(()=>lM(A,c.sections),[A,c.sections]),L=T==="all"?0:T,P=({value:U,referenceValue:H,sections:W})=>{if(x($=>Ge({},$,{sections:W,value:U,referenceValue:H,tempValueStrAndroid:null})),Y.areValuesEqual(r,c.value,U))return;const V={validationError:t({adapter:F,value:U,props:Ge({},l,{value:U,timezone:f})})};b(U,V)},d=(U,H)=>{const W=[...c.sections];return W[U]=Ge({},W[U],{value:H,modified:!0}),W},k=()=>{P({value:Y.emptyValue,referenceValue:c.referenceValue,sections:g(Y.emptyValue)})},I=()=>{if(L==null)return;const U=c.sections[L],H=D.getActiveDateManager(r,c,U),V=H.getSections(c.sections).filter(ae=>ae.value!=="").length===(U.value===""?0:1),$=d(L,""),Z=V?null:r.getInvalidDate(),q=H.getNewValuesFromNewActiveDate(Z);P(Ge({},q,{sections:$}))},N=U=>{const H=($,Z)=>{const q=r.parse($,v);if(q==null||!r.isValid(q))return null;const ae=iI({utils:r,timezone:f,localeText:y,localizedDigits:p,format:v,date:q,formatDensity:m,shouldRespectLeadingZeros:s,enableAccessibleFieldDOMStructure:h,isRtl:j});return aI(r,f,q,ae,Z,!1)},W=D.parseValueStr(U,c.referenceValue,H),V=D.updateReferenceValue(r,W,c.referenceValue);P({value:W,referenceValue:V,sections:g(W,c.sections)})},B=({activeSection:U,newSectionValue:H,shouldGoToNextSection:W})=>{W&&LGe({},fe,ae,{sections:$,tempValueStrAndroid:null}))},G=U=>x(H=>Ge({},H,{tempValueStrAndroid:U}));return Oe.useEffect(()=>{const U=g(c.value);x(H=>Ge({},H,{sections:U}))},[v,r.locale,j]),Oe.useEffect(()=>{let U;Y.areValuesEqual(r,c.value,u)?U=Y.getTimezone(r,c.value)!==Y.getTimezone(r,u):U=!0,U&&x(H=>Ge({},H,{value:u,referenceValue:D.updateReferenceValue(r,u,H.referenceValue),sections:g(u)}))},[u]),{state:c,activeSectionIndex:L,parsedSelectedSections:T,setSelectedSections:R,clearValue:k,clearActiveSection:I,updateSectionValue:B,updateValueFromValueStr:N,setTempAndroidValueStr:G,getSectionsFromValue:g,sectionsValueBoundaries:E,localizedDigits:p,timezone:f}},rle=5e3,om=e=>e.saveQuery!=null,nle=({sections:e,updateSectionValue:r,sectionsValueBoundaries:y,localizedDigits:F,setTempAndroidValueStr:j,timezone:Y})=>{const D=zo(),[O,t]=Oe.useState(null),l=pa(()=>t(null));Oe.useEffect(()=>{var v;O!=null&&((v=e[O.sectionIndex])==null?void 0:v.type)!==O.sectionType&&l()},[e,O,l]),Oe.useEffect(()=>{if(O!=null){const v=setTimeout(()=>l(),rle);return()=>{clearTimeout(v)}}return()=>{}},[O,l]);const S=({keyPressed:v,sectionIndex:m},a,n)=>{const s=v.toLowerCase(),o=e[m];if(O!=null&&(!n||n(O.value))&&O.sectionIndex===m){const f=`${O.value}${s}`,u=a(f,o);if(!om(u))return t({sectionIndex:m,value:f,sectionType:o.type}),u}const h=a(s,o);return om(h)&&!h.saveQuery?(l(),null):(t({sectionIndex:m,value:s,sectionType:o.type}),om(h)?null:h)},i=v=>{const m=(s,o,h)=>{const f=o.filter(u=>u.toLowerCase().startsWith(h));return f.length===0?{saveQuery:!1}:{sectionValue:f[0],shouldGoToNextSection:f.length===1}},a=(s,o,h,f)=>{const u=b=>bO(D,Y,o.type,b);if(o.contentType==="letter")return m(o.format,u(o.format),s);if(h&&f!=null&&xO(D,h).contentType==="letter"){const b=u(h),p=m(h,b,s);return om(p)?{saveQuery:!1}:Ge({},p,{sectionValue:f(p.sectionValue,b)})}return{saveQuery:!1}};return S(v,(s,o)=>{switch(o.type){case"month":{const h=f=>rI(D,f,D.formats.month,o.format);return a(s,o,D.formats.month,h)}case"weekDay":{const h=(f,u)=>u.indexOf(f).toString();return a(s,o,D.formats.weekday,h)}case"meridiem":return a(s,o);default:return{saveQuery:!1}}})},C=v=>{const m=(n,s)=>{const o=hg(n,F),h=Number(o),f=y[s.type]({currentDate:null,format:s.format,contentType:s.contentType});if(h>f.maximum)return{saveQuery:!1};if(hf.maximum||o.length===f.maximum.toString().length;return{sectionValue:TO(D,h,f,F,s),shouldGoToNextSection:u}};return S(v,(n,s)=>{if(s.contentType==="digit"||s.contentType==="digit-with-letter")return m(n,s);if(s.type==="month"){const o=CO(D,Y,"digit","month","MM"),h=m(n,{type:s.type,format:"MM",hasLeadingZerosInFormat:o,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(om(h))return h;const f=rI(D,h.sectionValue,"MM",s.format);return Ge({},h,{sectionValue:f})}if(s.type==="weekDay"){const o=m(n,s);if(om(o))return o;const h=GT(D,Y,s.format)[Number(o.sectionValue)-1];return Ge({},o,{sectionValue:h})}return{saveQuery:!1}},n=>tI(n,F))};return{applyCharacterEditing:pa(v=>{const m=e[v.sectionIndex],n=tI(v.keyPressed,F)?C(Ge({},v,{keyPressed:F5(v.keyPressed,F)})):i(v);if(n==null){j(null);return}r({activeSection:m,newSectionValue:n.sectionValue,shouldGoToNextSection:n.shouldGoToNextSection})}),resetCharacterQuery:l}};function ale(e,r){return Array.isArray(r)?r.every(y=>e.indexOf(y)!==-1):e.indexOf(r)!==-1}const ile=(e,r)=>y=>{(y.key==="Enter"||y.key===" ")&&(e(y),y.preventDefault(),y.stopPropagation()),r&&r(y)},xc=(e=document)=>{const r=e.activeElement;return r?r.shadowRoot?xc(r.shadowRoot):r:null},ole="@media (pointer: fine)",sle=e=>{const{internalProps:{disabled:r,readOnly:y=!1},forwardedProps:{sectionListRef:F,onBlur:j,onClick:Y,onFocus:D,onInput:O,onPaste:t,focused:l,autoFocus:S=!1},fieldValueManager:i,applyCharacterEditing:C,resetCharacterQuery:w,setSelectedSections:v,parsedSelectedSections:m,state:a,clearActiveSection:n,clearValue:s,updateSectionValue:o,updateValueFromValueStr:h,sectionOrder:f,areAllSectionsEmpty:u,sectionsValueBoundaries:b}=e,p=Oe.useRef(null),E=pi(F,p),g=hv(),c=zo(),x=Ui(),[A,M]=Oe.useState(!1),R=Oe.useMemo(()=>({syncSelectionToDOM:()=>{if(!p.current)return;const ie=document.getSelection();if(!ie)return;if(m==null){ie.rangeCount>0&&p.current.getRoot().contains(ie.getRangeAt(0).startContainer)&&ie.removeAllRanges(),A&&p.current.getRoot().blur();return}if(!p.current.getRoot().contains(xc(document)))return;const fe=new window.Range;let Q;m==="all"?Q=p.current.getRoot():a.sections[m].type==="empty"?Q=p.current.getSectionContainer(m):Q=p.current.getSectionContent(m),fe.selectNodeContents(Q),Q.focus(),ie.removeAllRanges(),ie.addRange(fe)},getActiveSectionIndexFromDOM:()=>{const ie=xc(document);return!ie||!p.current||!p.current.getRoot().contains(ie)?null:p.current.getSectionIndexFromDOMElement(ie)},focusField:(ie=0)=>{if(!p.current)return;const fe=lM(ie,a.sections);M(!0),p.current.getSectionContent(fe).focus()},setSelectedSections:ie=>{if(!p.current)return;const fe=lM(ie,a.sections);M((fe==="all"?0:fe)!==null),v(ie)},isFieldFocused:()=>{const ie=xc(document);return!!p.current&&p.current.getRoot().contains(ie)}}),[m,v,a.sections,A]),T=pa(ie=>{if(!p.current)return;const fe=a.sections[ie];p.current.getSectionContent(ie).innerHTML=fe.value||fe.placeholder,R.syncSelectionToDOM()}),L=pa((ie,...fe)=>{ie.isDefaultPrevented()||!p.current||(M(!0),Y==null||Y(ie,...fe),m==="all"?setTimeout(()=>{const Q=document.getSelection().getRangeAt(0).startOffset;if(Q===0){v(f.startIndex);return}let J=0,oe=0;for(;oe{if(O==null||O(ie),!p.current||m!=="all")return;const Q=ie.target.textContent??"";p.current.getRoot().innerHTML=a.sections.map(J=>`${J.startSeparator}${J.value||J.placeholder}${J.endSeparator}`).join(""),R.syncSelectionToDOM(),Q.length===0||Q.charCodeAt(0)===10?(w(),s(),v("all")):Q.length>1?h(Q):C({keyPressed:Q,sectionIndex:0})}),d=pa(ie=>{if(t==null||t(ie),y||m!=="all"){ie.preventDefault();return}const fe=ie.clipboardData.getData("text");ie.preventDefault(),w(),h(fe)}),k=pa((...ie)=>{if(D==null||D(...ie),A||!p.current)return;M(!0),p.current.getSectionIndexFromDOMElement(xc(document))!=null||v(f.startIndex)}),I=pa((...ie)=>{j==null||j(...ie),setTimeout(()=>{if(!p.current)return;const fe=xc(document);!p.current.getRoot().contains(fe)&&(M(!1),v(null))})}),N=pa(ie=>fe=>{fe.isDefaultPrevented()||v(ie)}),B=pa(ie=>{ie.preventDefault()}),G=pa(ie=>()=>{v(ie)}),U=pa(ie=>{if(ie.preventDefault(),y||r||typeof m!="number")return;const fe=a.sections[m],Q=ie.clipboardData.getData("text"),J=/^[a-zA-Z]+$/.test(Q),oe=/^[0-9]+$/.test(Q),K=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);fe.contentType==="letter"&&J||fe.contentType==="digit"&&oe||fe.contentType==="digit-with-letter"&&K?(w(),o({activeSection:fe,newSectionValue:Q,shouldGoToNextSection:!0})):!J&&!oe&&(w(),h(Q))}),H=pa(ie=>{ie.preventDefault(),ie.dataTransfer.dropEffect="none"}),W=pa(ie=>{if(!p.current)return;const fe=ie.target,Q=fe.textContent??"",J=p.current.getSectionIndexFromDOMElement(fe),oe=a.sections[J];if(y||!p.current){T(J);return}if(Q.length===0){if(oe.value===""){T(J);return}const K=ie.nativeEvent.inputType;if(K==="insertParagraph"||K==="insertLineBreak"){T(J);return}w(),n();return}C({keyPressed:Q,sectionIndex:J}),T(J)});Gi(()=>{if(!(!A||!p.current)){if(m==="all")p.current.getRoot().focus();else if(typeof m=="number"){const ie=p.current.getSectionContent(m);ie&&ie.focus()}}},[m,A]);const V=Oe.useMemo(()=>a.sections.reduce((ie,fe)=>(ie[fe.type]=b[fe.type]({currentDate:null,contentType:fe.contentType,format:fe.format}),ie),{}),[b,a.sections]),$=m==="all",Z=Oe.useMemo(()=>a.sections.map((ie,fe)=>{const Q=!$&&!r&&!y;return{container:{"data-sectionindex":fe,onClick:N(fe)},content:{tabIndex:$||fe>0?-1:0,contentEditable:!$&&!r&&!y,role:"spinbutton",id:`${x}-${ie.type}`,"aria-labelledby":`${x}-${ie.type}`,"aria-readonly":y,"aria-valuenow":Nse(ie,c),"aria-valuemin":V[ie.type].minimum,"aria-valuemax":V[ie.type].maximum,"aria-valuetext":ie.value?Bse(ie,c):g.empty,"aria-label":g[ie.type],"aria-disabled":r,spellCheck:Q?!1:void 0,autoCapitalize:Q?"off":void 0,autoCorrect:Q?"off":void 0,[parseInt(Oe.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Q?"next":void 0,children:ie.value||ie.placeholder,onInput:W,onPaste:U,onFocus:G(fe),onDragOver:H,onMouseUp:B,inputMode:ie.contentType==="letter"?"text":"numeric"},before:{children:ie.startSeparator},after:{children:ie.endSeparator}}}),[a.sections,G,U,H,W,N,B,r,y,$,g,c,V,x]),q=pa(ie=>{h(ie.target.value)}),ae=Oe.useMemo(()=>u?"":i.getV7HiddenInputValueFromSections(a.sections),[u,a.sections,i]);return Oe.useEffect(()=>{if(p.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` -`));S&&p.current&&p.current.getSectionContent(f.startIndex).focus()},[]),{interactions:R,returnedValue:{autoFocus:S,readOnly:y,focused:l??A,sectionListRef:E,onBlur:I,onClick:L,onFocus:k,onInput:P,onPaste:d,enableAccessibleFieldDOMStructure:!0,elements:Z,tabIndex:m===0?-1:0,contentEditable:$,value:ae,onChange:q,areAllSectionsEmpty:u}}},km=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),lle=(e,r,y)=>{let F=0,j=y?1:0;const Y=[];for(let D=0;D{const r=Fl(),y=Oe.useRef(),F=Oe.useRef(),{forwardedProps:{onFocus:j,onClick:Y,onPaste:D,onBlur:O,inputRef:t,placeholder:l},internalProps:{readOnly:S=!1,disabled:i=!1},parsedSelectedSections:C,activeSectionIndex:w,state:v,fieldValueManager:m,valueManager:a,applyCharacterEditing:n,resetCharacterQuery:s,updateSectionValue:o,updateValueFromValueStr:h,clearActiveSection:f,clearValue:u,setTempAndroidValueStr:b,setSelectedSections:p,getSectionsFromValue:E,areAllSectionsEmpty:g,localizedDigits:c}=e,x=Oe.useRef(null),A=pi(t,x),M=Oe.useMemo(()=>lle(v.sections,c,r),[v.sections,c,r]),R=Oe.useMemo(()=>({syncSelectionToDOM:()=>{if(!x.current)return;if(C==null){x.current.scrollLeft&&(x.current.scrollLeft=0);return}if(x.current!==xc(document))return;const W=x.current.scrollTop;if(C==="all")x.current.select();else{const V=M[C],$=V.type==="empty"?V.startInInput-V.startSeparator.length:V.startInInput,Z=V.type==="empty"?V.endInInput+V.endSeparator.length:V.endInInput;($!==x.current.selectionStart||Z!==x.current.selectionEnd)&&x.current===xc(document)&&x.current.setSelectionRange($,Z),clearTimeout(F.current),F.current=setTimeout(()=>{x.current&&x.current===xc(document)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==$||x.current.selectionEnd!==Z)&&R.syncSelectionToDOM()})}x.current.scrollTop=W},getActiveSectionIndexFromDOM:()=>{const W=x.current.selectionStart??0,V=x.current.selectionEnd??0;if(W===0&&V===0)return null;const $=W<=M[0].startInInput?1:M.findIndex(Z=>Z.startInInput-Z.startSeparator.length>W);return $===-1?M.length-1:$-1},focusField:(W=0)=>{var V;(V=x.current)==null||V.focus(),p(W)},setSelectedSections:W=>p(W),isFieldFocused:()=>x.current===xc(document)}),[x,C,M,p]),T=()=>{const W=x.current.selectionStart??0;let V;W<=M[0].startInInput||W>=M[M.length-1].endInInput?V=1:V=M.findIndex(Z=>Z.startInInput-Z.startSeparator.length>W);const $=V===-1?M.length-1:V-1;p($)},L=pa((...W)=>{j==null||j(...W);const V=x.current;clearTimeout(y.current),y.current=setTimeout(()=>{!V||V!==x.current||w==null&&(V.value.length&&Number(V.selectionEnd)-Number(V.selectionStart)===V.value.length?p("all"):T())})}),P=pa((W,...V)=>{W.isDefaultPrevented()||(Y==null||Y(W,...V),T())}),d=pa(W=>{if(D==null||D(W),W.preventDefault(),S||i)return;const V=W.clipboardData.getData("text");if(typeof C=="number"){const $=v.sections[C],Z=/^[a-zA-Z]+$/.test(V),q=/^[0-9]+$/.test(V),ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(V);if($.contentType==="letter"&&Z||$.contentType==="digit"&&q||$.contentType==="digit-with-letter"&&ae){s(),o({activeSection:$,newSectionValue:V,shouldGoToNextSection:!0});return}if(Z||q)return}s(),h(V)}),k=pa((...W)=>{O==null||O(...W),p(null)}),I=pa(W=>{if(S)return;const V=W.target.value;if(V===""){s(),u();return}const $=W.nativeEvent.data,Z=$&&$.length>1,q=Z?$:V,ae=km(q);if(w==null||Z){h(Z?$:ae);return}let ie;if(C==="all"&&ae.length===1)ie=ae;else{const fe=km(m.getV6InputValueFromSections(M,c,r));let Q=-1,J=-1;for(let ce=0;ceoe.end)return;const ne=ae.length-fe.length+oe.end-km(oe.endSeparator||"").length;ie=ae.slice(oe.start+km(oe.startSeparator||"").length,ne)}if(ie.length===0){_se()&&b(q),s(),f();return}n({keyPressed:ie,sectionIndex:w})}),N=Oe.useMemo(()=>l!==void 0?l:m.getV6InputValueFromSections(E(a.emptyValue),c,r),[l,m,E,a.emptyValue,c,r]),B=Oe.useMemo(()=>v.tempValueStrAndroid??m.getV6InputValueFromSections(v.sections,c,r),[v.sections,m,v.tempValueStrAndroid,c,r]);Oe.useEffect(()=>(x.current&&x.current===xc(document)&&p("all"),()=>{clearTimeout(y.current),clearTimeout(F.current)}),[]);const G=Oe.useMemo(()=>w==null||v.sections[w].contentType==="letter"?"text":"numeric",[w,v.sections]),H=!(x.current&&x.current===xc(document))&&g;return{interactions:R,returnedValue:{readOnly:S,onBlur:k,onClick:P,onFocus:L,onPaste:d,inputRef:A,enableAccessibleFieldDOMStructure:!1,placeholder:N,inputMode:G,autoComplete:"off",value:H?"":B,onChange:I}}},cle=e=>{const r=zo(),{internalProps:y,internalProps:{unstableFieldRef:F,minutesStep:j,enableAccessibleFieldDOMStructure:Y=!1,disabled:D=!1,readOnly:O=!1},forwardedProps:{onKeyDown:t,error:l,clearable:S,onClear:i},fieldValueManager:C,valueManager:w,validator:v}=e,m=Fl(),a=tle(e),{state:n,activeSectionIndex:s,parsedSelectedSections:o,setSelectedSections:h,clearValue:f,clearActiveSection:u,updateSectionValue:b,setTempAndroidValueStr:p,sectionsValueBoundaries:E,localizedDigits:g,timezone:c}=a,x=nle({sections:n.sections,updateSectionValue:b,sectionsValueBoundaries:E,localizedDigits:g,setTempAndroidValueStr:p,timezone:c}),{resetCharacterQuery:A}=x,M=w.areValuesEqual(r,n.value,w.emptyValue),R=Y?sle:ule,T=Oe.useMemo(()=>zse(n.sections,m&&!Y),[n.sections,m,Y]),{returnedValue:L,interactions:P}=R(Ge({},e,a,x,{areAllSectionsEmpty:M,sectionOrder:T})),d=pa(U=>{if(t==null||t(U),!D)switch(!0){case((U.ctrlKey||U.metaKey)&&U.key.toLowerCase()==="a"&&!U.shiftKey&&!U.altKey):{U.preventDefault(),h("all");break}case U.key==="ArrowRight":{if(U.preventDefault(),o==null)h(T.startIndex);else if(o==="all")h(T.endIndex);else{const H=T.neighbors[o].rightIndex;H!==null&&h(H)}break}case U.key==="ArrowLeft":{if(U.preventDefault(),o==null)h(T.endIndex);else if(o==="all")h(T.startIndex);else{const H=T.neighbors[o].leftIndex;H!==null&&h(H)}break}case U.key==="Delete":{if(U.preventDefault(),O)break;o==null||o==="all"?f():u(),A();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(U.key):{if(U.preventDefault(),O||s==null)break;const H=n.sections[s],W=C.getActiveDateManager(r,n,H),V=Ise(r,c,H,U.key,E,g,W.date,{minutesStep:j});b({activeSection:H,newSectionValue:V,shouldGoToNextSection:!1});break}}});Gi(()=>{P.syncSelectionToDOM()});const k=EO(Ge({},y,{value:n.value,timezone:c}),v,w.isSameError,w.defaultErrorState),I=Oe.useMemo(()=>l!==void 0?l:w.hasError(k),[w,k,l]);Oe.useEffect(()=>{!I&&s==null&&A()},[n.referenceValue,s,I]),Oe.useEffect(()=>{n.tempValueStrAndroid!=null&&s!=null&&(A(),u())},[n.sections]),Oe.useImperativeHandle(F,()=>({getSections:()=>n.sections,getActiveSectionIndex:P.getActiveSectionIndexFromDOM,setSelectedSections:P.setSelectedSections,focusField:P.focusField,isFieldFocused:P.isFieldFocused}));const N=pa((U,...H)=>{U.preventDefault(),i==null||i(U,...H),f(),P.isFieldFocused()?h(T.startIndex):P.focusField(0)}),B={onKeyDown:d,onClear:N,error:I,clearable:!!(S&&!M&&!O&&!D)},G={disabled:D,readOnly:O};return Ge({},e.forwardedProps,B,G,L)},WT=({props:e,value:r,adapter:y})=>{if(r===null)return null;const{shouldDisableDate:F,shouldDisableMonth:j,shouldDisableYear:Y,disablePast:D,disableFuture:O,timezone:t}=e,l=y.utils.date(void 0,t),S=Lf(y.utils,e.minDate,y.defaultDates.minDate),i=Lf(y.utils,e.maxDate,y.defaultDates.maxDate);switch(!0){case!y.utils.isValid(r):return"invalidDate";case!!(F&&F(r)):return"shouldDisableDate";case!!(j&&j(r)):return"shouldDisableMonth";case!!(Y&&Y(r)):return"shouldDisableYear";case!!(O&&y.utils.isAfterDay(r,l)):return"disableFuture";case!!(D&&y.utils.isBeforeDay(r,l)):return"disablePast";case!!(S&&y.utils.isBeforeDay(r,S)):return"minDate";case!!(i&&y.utils.isAfterDay(r,i)):return"maxDate";default:return null}},uM=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],cM=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],PO=["minDateTime","maxDateTime"],fle=[...uM,...cM,...PO],LO=e=>fle.reduce((r,y)=>(e.hasOwnProperty(y)&&(r[y]=e[y]),r),{}),dle=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],hle=(e,r)=>{const y=Ge({},e),F={},j=Y=>{y.hasOwnProperty(Y)&&(F[Y]=y[Y],delete y[Y])};return dle.forEach(j),r==="date"?uM.forEach(j):r==="time"?cM.forEach(j):r==="date-time"&&(uM.forEach(j),cM.forEach(j),PO.forEach(j)),{forwardedProps:y,internalProps:F}},vle=e=>{const r=zo(),y=zb();return Ge({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r.formats.keyboardDate,minDate:Lf(r,e.minDate,y.minDate),maxDate:Lf(r,e.maxDate,y.maxDate)})},ple=e=>{const r=vle(e),{forwardedProps:y,internalProps:F}=hle(r,"date");return cle({forwardedProps:y,internalProps:F,valueManager:lv,fieldValueManager:Hse,validator:WT,valueType:"date"})},gle=["clearable","onClear","InputProps","sx","slots","slotProps"],mle=["ownerState"],yle=e=>{const r=hv(),{clearable:y,onClear:F,InputProps:j,sx:Y,slots:D,slotProps:O}=e,t=hn(e,gle),l=(D==null?void 0:D.clearButton)??fl,S=vi({elementType:l,externalSlotProps:O==null?void 0:O.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:r.fieldClearLabel}}),i=hn(S,mle),C=(D==null?void 0:D.clearIcon)??ase,w=vi({elementType:C,externalSlotProps:O==null?void 0:O.clearIcon,ownerState:{}});return Ge({},t,{InputProps:Ge({},j,{endAdornment:Ce.jsxs(Oe.Fragment,{children:[y&&Ce.jsx(w5,{position:"end",sx:{marginRight:j!=null&&j.endAdornment?-1:-1.5},children:Ce.jsx(l,Ge({},i,{onClick:F,children:Ce.jsx(C,Ge({fontSize:"small"},w))}))}),j==null?void 0:j.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(Y)?Y:[Y]]})};function xle(e){return ka("MuiPickersTextField",e)}Ma("MuiPickersTextField",["root","focused","disabled","error","required"]);function ble(e){return ka("MuiPickersInputBase",e)}const Ym=Ma("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function wle(e){return ka("MuiPickersSectionList",e)}const F1=Ma("MuiPickersSectionList",["root","section","sectionContent"]),Tle=["slots","slotProps","elements","sectionListRef"],IO=ln("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,r)=>r.root})({direction:"ltr /*! @noflip */",outline:"none"}),RO=ln("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,r)=>r.section})({}),kO=ln("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,r)=>r.sectionSeparator})({whiteSpace:"pre"}),DO=ln("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,r)=>r.sectionContent})({outline:"none"}),Sle=e=>{const{classes:r}=e;return qn({root:["root"],section:["section"],sectionContent:["sectionContent"]},wle,r)};function Cle(e){const{slots:r,slotProps:y,element:F,classes:j}=e,Y=(r==null?void 0:r.section)??RO,D=vi({elementType:Y,externalSlotProps:y==null?void 0:y.section,externalForwardedProps:F.container,className:j.section,ownerState:{}}),O=(r==null?void 0:r.sectionContent)??DO,t=vi({elementType:O,externalSlotProps:y==null?void 0:y.sectionContent,externalForwardedProps:F.content,additionalProps:{suppressContentEditableWarning:!0},className:j.sectionContent,ownerState:{}}),l=(r==null?void 0:r.sectionSeparator)??kO,S=vi({elementType:l,externalSlotProps:y==null?void 0:y.sectionSeparator,externalForwardedProps:F.before,ownerState:{position:"before"}}),i=vi({elementType:l,externalSlotProps:y==null?void 0:y.sectionSeparator,externalForwardedProps:F.after,ownerState:{position:"after"}});return Ce.jsxs(Y,Ge({},D,{children:[Ce.jsx(l,Ge({},S)),Ce.jsx(O,Ge({},t)),Ce.jsx(l,Ge({},i))]}))}const Mle=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersSectionList"}),{slots:j,slotProps:Y,elements:D,sectionListRef:O}=F,t=hn(F,Tle),l=Sle(F),S=Oe.useRef(null),i=pi(y,S),C=m=>{if(!S.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return S.current};Oe.useImperativeHandle(O,()=>({getRoot(){return C("getRoot")},getSectionContainer(m){return C("getSectionContainer").querySelector(`.${F1.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return C("getSectionContent").querySelector(`.${F1.section}[data-sectionindex="${m}"] .${F1.sectionContent}`)},getSectionIndexFromDOMElement(m){const a=C("getSectionIndexFromDOMElement");if(m==null||!a.contains(m))return null;let n=null;return m.classList.contains(F1.section)?n=m:m.classList.contains(F1.sectionContent)&&(n=m.parentElement),n==null?null:Number(n.dataset.sectionindex)}}));const w=(j==null?void 0:j.root)??IO,v=vi({elementType:w,externalSlotProps:Y==null?void 0:Y.root,externalForwardedProps:t,additionalProps:{ref:i,suppressContentEditableWarning:!0},className:l.root,ownerState:{}});return Ce.jsx(w,Ge({},v,{children:v.contentEditable?D.map(({content:m,before:a,after:n})=>`${a.children}${m.children}${n.children}`).join(""):Ce.jsx(Oe.Fragment,{children:D.map((m,a)=>Ce.jsx(Cle,{slots:j,slotProps:Y,element:m,classes:l},a))})}))}),Ale=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],Ele=e=>Math.round(e*1e5)/1e5,$T=ln("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>Ge({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${Ele(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),z5=ln(IO,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,r)=>r.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:r,focused:y,filled:F,label:j})=>!r&&!y&&!F&&j==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),Ple=ln(RO,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,r)=>r.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),Lle=ln(DO,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,r)=>r.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Ile=ln(kO,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,r)=>r.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Rle=ln("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,r)=>r.hiddenInput})(Ge({},e9)),kle=e=>{const{focused:r,disabled:y,error:F,classes:j,fullWidth:Y,readOnly:D,color:O,size:t,endAdornment:l,startAdornment:S}=e,i={root:["root",r&&!y&&"focused",y&&"disabled",D&&"readOnly",F&&"error",Y&&"fullWidth",`color${Gn(O)}`,t==="small"&&"inputSizeSmall",!!S&&"adornedStart",!!l&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return qn(i,ble,j)},B5=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersInputBase"}),{elements:j,areAllSectionsEmpty:Y,value:D,onChange:O,id:t,endAdornment:l,startAdornment:S,renderSuffix:i,slots:C,slotProps:w,contentEditable:v,tabIndex:m,onInput:a,onPaste:n,onKeyDown:s,name:o,readOnly:h,inputProps:f,inputRef:u,sectionListRef:b}=F,p=hn(F,Ale),E=Oe.useRef(null),g=pi(y,E),c=pi(f==null?void 0:f.ref,u),x=Fl(),A=ec();if(!A)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const M=k=>{var I;if(A.disabled){k.stopPropagation();return}(I=A.onFocus)==null||I.call(A,k)};Oe.useEffect(()=>{A&&A.setAdornedStart(!!S)},[A,S]),Oe.useEffect(()=>{A&&(Y?A.onEmpty():A.onFilled())},[A,Y]);const R=Ge({},F,A,{isRtl:x}),T=kle(R),L=(C==null?void 0:C.root)||$T,P=vi({elementType:L,externalSlotProps:w==null?void 0:w.root,externalForwardedProps:p,additionalProps:{"aria-invalid":A.error,ref:g},className:T.root,ownerState:R}),d=(C==null?void 0:C.input)||z5;return Ce.jsxs(L,Ge({},P,{children:[S,Ce.jsx(Mle,{sectionListRef:b,elements:j,contentEditable:v,tabIndex:m,className:T.sectionsContainer,onFocus:M,onBlur:A.onBlur,onInput:a,onPaste:n,onKeyDown:s,slots:{root:d,section:Ple,sectionContent:Lle,sectionSeparator:Ile},slotProps:{root:{ownerState:R},sectionContent:{className:Ym.sectionContent},sectionSeparator:({position:k})=>({className:k==="before"?Ym.sectionBefore:Ym.sectionAfter})}}),l,i?i(Ge({},A)):null,Ce.jsx(Rle,Ge({name:o,className:T.input,value:D,onChange:O,id:t,"aria-hidden":"true",tabIndex:-1,readOnly:h,required:A.required,disabled:A.disabled},f,{ref:c}))]}))});function Dle(e){return ka("MuiPickersOutlinedInput",e)}const od=Ge({},Ym,Ma("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Ole=["children","className","label","notched","shrink"],Fle=ln("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,r)=>r.notchedOutline})(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",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",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}}),oI=ln("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),_le=ln("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function zle(e){const{className:r,label:y}=e,F=hn(e,Ole),j=y!=null&&y!=="",Y=Ge({},e,{withLabel:j});return Ce.jsx(Fle,Ge({"aria-hidden":!0,className:r},F,{ownerState:Y,children:Ce.jsx(_le,{ownerState:Y,children:j?Ce.jsx(oI,{children:y}):Ce.jsx(oI,{className:"notranslate",children:"​"})})}))}const Ble=["label","autoFocus","ownerState","notched"],Nle=ln($T,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${od.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${od.focused} .${od.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${od.disabled}`]:{[`& .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${od.error} .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(y=>{var F;return((F=(e.vars??e).palette[y])==null?void 0:F.main)??!1}).map(y=>({props:{color:y},style:{[`&.${od.focused}:not(.${od.error}) .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette[y].main}}}))}}),Ule=ln(z5,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,r)=>r.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Hle=e=>{const{classes:r}=e,F=qn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Dle,r);return Ge({},r,F)},OO=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersOutlinedInput"}),{label:j,ownerState:Y,notched:D}=F,O=hn(F,Ble),t=ec(),l=Ge({},F,Y,t,{color:(t==null?void 0:t.color)||"primary"}),S=Hle(l);return Ce.jsx(B5,Ge({slots:{root:Nle,input:Ule},renderSuffix:i=>Ce.jsx(zle,{shrink:!!(D||i.adornedStart||i.focused||i.filled),notched:!!(D||i.adornedStart||i.focused||i.filled),className:S.notchedOutline,label:j!=null&&j!==""&&(t!=null&&t.required)?Ce.jsxs(Oe.Fragment,{children:[j," ","*"]}):j,ownerState:l})},O,{label:j,classes:S,ref:y}))});OO.muiName="Input";function Vle(e){return ka("MuiPickersFilledInput",e)}const L0=Ge({},Ym,Ma("MuiPickersFilledInput",["root","underline","input"])),jle=["label","autoFocus","disableUnderline","ownerState"],Gle=ln($T,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,r)=>r.root,shouldForwardProp:e=>S3(e)&&e!=="disableUnderline"})(({theme:e})=>{const r=e.palette.mode==="light",y=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",F=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",j=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",Y=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:F,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:j,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:F}},[`&.${L0.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:F},[`&.${L0.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:Y},variants:[...Object.keys((e.vars??e).palette).filter(D=>(e.vars??e).palette[D].main).map(D=>{var O;return{props:{color:D,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(O=(e.vars||e).palette[D])==null?void 0:O.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${L0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${L0.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:y}`,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(.${L0.disabled}, .${L0.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${L0.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:D})=>!!D,style:{paddingLeft:12}},{props:({endAdornment:D})=>!!D,style:{paddingRight:12}}]}}),Wle=ln(z5,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,r)=>r.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),$le=e=>{const{classes:r,disableUnderline:y}=e,j=qn({root:["root",!y&&"underline"],input:["input"]},Vle,r);return Ge({},r,j)},FO=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersFilledInput"}),{label:j,disableUnderline:Y=!1,ownerState:D}=F,O=hn(F,jle),t=ec(),l=Ge({},F,D,t,{color:(t==null?void 0:t.color)||"primary"}),S=$le(l);return Ce.jsx(B5,Ge({slots:{root:Gle,input:Wle},slotProps:{root:{disableUnderline:Y}}},O,{label:j,classes:S,ref:y}))});FO.muiName="Input";function Yle(e){return ka("MuiPickersFilledInput",e)}const _1=Ge({},Ym,Ma("MuiPickersInput",["root","input"])),Xle=["label","autoFocus","disableUnderline","ownerState"],Zle=ln($T,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>{let y=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(y=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(F=>(e.vars??e).palette[F].main).map(F=>({props:{color:F},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[F].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${_1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_1.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${y}`,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(.${_1.disabled}, .${_1.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${y}`}},[`&.${_1.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Kle=e=>{const{classes:r,disableUnderline:y}=e,j=qn({root:["root",!y&&"underline"],input:["input"]},Yle,r);return Ge({},r,j)},_O=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersInput"}),{label:j,disableUnderline:Y=!1,ownerState:D}=F,O=hn(F,Xle),t=ec(),l=Ge({},F,D,t,{disableUnderline:Y,color:(t==null?void 0:t.color)||"primary"}),S=Kle(l);return Ce.jsx(B5,Ge({slots:{root:Zle}},O,{label:j,classes:S,ref:y}))});_O.muiName="Input";const Jle=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],Qle={standard:_O,filled:FO,outlined:OO},qle=ln(nh,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),eue=e=>{const{focused:r,disabled:y,classes:F,required:j}=e;return qn({root:["root",r&&!y&&"focused",y&&"disabled",j&&"required"]},xle,F)},tue=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersTextField"}),{onFocus:j,onBlur:Y,className:D,color:O="primary",disabled:t=!1,error:l=!1,variant:S="outlined",required:i=!1,InputProps:C,inputProps:w,inputRef:v,sectionListRef:m,elements:a,areAllSectionsEmpty:n,onClick:s,onKeyDown:o,onPaste:h,onInput:f,endAdornment:u,startAdornment:b,tabIndex:p,contentEditable:E,focused:g,value:c,onChange:x,fullWidth:A,id:M,name:R,helperText:T,FormHelperTextProps:L,label:P,InputLabelProps:d}=F,k=hn(F,Jle),I=Oe.useRef(null),N=pi(y,I),B=Ui(M),G=T&&B?`${B}-helper-text`:void 0,U=P&&B?`${B}-label`:void 0,H=Ge({},F,{color:O,disabled:t,error:l,focused:g,required:i,variant:S}),W=eue(H),V=Qle[S];return Ce.jsxs(qle,Ge({className:Ln(W.root,D),ref:N,focused:g,onFocus:j,onBlur:Y,disabled:t,variant:S,error:l,color:O,fullWidth:A,required:i,ownerState:H},k,{children:[Ce.jsx(Ey,Ge({htmlFor:B,id:U},d,{children:P})),Ce.jsx(V,Ge({elements:a,areAllSectionsEmpty:n,onClick:s,onKeyDown:o,onInput:f,onPaste:h,endAdornment:u,startAdornment:b,tabIndex:p,contentEditable:E,value:c,onChange:x,id:B,fullWidth:A,inputProps:w,inputRef:v,sectionListRef:m,label:P,name:R,role:"group","aria-labelledby":U},C)),T&&Ce.jsx(b5,Ge({id:G},L,{children:T}))]}))}),rue=["enableAccessibleFieldDOMStructure"],nue=["InputProps","readOnly"],aue=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],iue=e=>{let{enableAccessibleFieldDOMStructure:r}=e,y=hn(e,rue);if(r){const{InputProps:i,readOnly:C}=y,w=hn(y,nue);return Ge({},w,{InputProps:Ge({},i??{},{readOnly:C})})}const{onPaste:F,onKeyDown:j,inputMode:Y,readOnly:D,InputProps:O,inputProps:t,inputRef:l}=y,S=hn(y,aue);return Ge({},S,{InputProps:Ge({},O??{},{readOnly:D}),inputProps:Ge({},t??{},{inputMode:Y,onPaste:F,onKeyDown:j,ref:l})})},oue=["slots","slotProps","InputProps","inputProps"],zO=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiDateField"}),{slots:j,slotProps:Y,InputProps:D,inputProps:O}=F,t=hn(F,oue),l=F,S=(j==null?void 0:j.textField)??(r.enableAccessibleFieldDOMStructure?tue:Zo),i=vi({elementType:S,externalSlotProps:Y==null?void 0:Y.textField,externalForwardedProps:t,additionalProps:{ref:y},ownerState:l});i.inputProps=Ge({},O,i.inputProps),i.InputProps=Ge({},D,i.InputProps);const C=ple(i),w=iue(C),v=yle(Ge({},w,{slots:j,slotProps:Y}));return Ce.jsx(S,Ge({},v))}),BO=({shouldDisableDate:e,shouldDisableMonth:r,shouldDisableYear:y,minDate:F,maxDate:j,disableFuture:Y,disablePast:D,timezone:O})=>{const t=Tg();return Oe.useCallback(l=>WT({adapter:t,value:l,props:{shouldDisableDate:e,shouldDisableMonth:r,shouldDisableYear:y,minDate:F,maxDate:j,disableFuture:Y,disablePast:D,timezone:O}})!==null,[t,e,r,y,F,j,Y,D,O])},sue=(e,r,y)=>(F,j)=>{switch(j.type){case"changeMonth":return Ge({},F,{slideDirection:j.direction,currentMonth:j.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ge({},F,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(F.focusedDay!=null&&j.focusedDay!=null&&y.isSameDay(j.focusedDay,F.focusedDay))return F;const Y=j.focusedDay!=null&&!r&&!y.isSameMonth(F.currentMonth,j.focusedDay);return Ge({},F,{focusedDay:j.focusedDay,isMonthSwitchingAnimating:Y&&!e&&!j.withoutMonthSwitchingAnimation,currentMonth:Y?y.startOfMonth(j.focusedDay):F.currentMonth,slideDirection:j.focusedDay!=null&&y.isAfterDay(j.focusedDay,F.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},lue=e=>{const{value:r,referenceDate:y,disableFuture:F,disablePast:j,disableSwitchToMonthOnDayFocus:Y=!1,maxDate:D,minDate:O,onMonthChange:t,reduceAnimations:l,shouldDisableDate:S,timezone:i}=e,C=zo(),w=Oe.useRef(sue(!!l,Y,C)).current,v=Oe.useMemo(()=>lv.getInitialReferenceValue({value:r,utils:C,timezone:i,props:e,referenceDate:y,granularity:eh.day}),[]),[m,a]=Oe.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:C.startOfMonth(v),slideDirection:"left"}),n=Oe.useCallback(u=>{a(Ge({type:"changeMonth"},u)),t&&t(u.newMonth)},[t]),s=Oe.useCallback(u=>{const b=u;C.isSameMonth(b,m.currentMonth)||n({newMonth:C.startOfMonth(b),direction:C.isAfterDay(b,m.currentMonth)?"left":"right"})},[m.currentMonth,n,C]),o=BO({shouldDisableDate:S,minDate:O,maxDate:D,disableFuture:F,disablePast:j,timezone:i}),h=Oe.useCallback(()=>{a({type:"finishMonthSwitchingAnimation"})},[]),f=pa((u,b)=>{o(u)||a({type:"changeFocusedDay",focusedDay:u,withoutMonthSwitchingAnimation:b})});return{referenceDate:v,calendarState:m,changeMonth:s,changeFocusedDay:f,isDateDisabled:o,onMonthSwitchingAnimationEnd:h,handleChangeMonth:n}},uue=e=>ka("MuiPickersFadeTransitionGroup",e);Ma("MuiPickersFadeTransitionGroup",["root"]);const cue=e=>{const{classes:r}=e;return qn({root:["root"]},uue,r)},fue=ln(u5,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"block",position:"relative"});function NO(e){const r=_o({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:y,className:F,reduceAnimations:j,transKey:Y}=r,D=cue(r),O=ru();return j?y:Ce.jsx(fue,{className:Ln(D.root,F),children:Ce.jsx(Vy,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:O.transitions.duration.enteringScreen,enter:O.transitions.duration.enteringScreen,exit:0},children:y},Y)})}const due=e=>ka("MuiPickersSlideTransition",e),tf=Ma("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),hue=["children","className","reduceAnimations","slideDirection","transKey","classes"],vue=e=>{const{classes:r,slideDirection:y}=e,F={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${y}`],exitActive:[`slideExitActiveLeft-${y}`]};return qn(F,due,r)},pue=ln(u5,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,r)=>[r.root,{[`.${tf["slideEnter-left"]}`]:r["slideEnter-left"]},{[`.${tf["slideEnter-right"]}`]:r["slideEnter-right"]},{[`.${tf.slideEnterActive}`]:r.slideEnterActive},{[`.${tf.slideExit}`]:r.slideExit},{[`.${tf["slideExitActiveLeft-left"]}`]:r["slideExitActiveLeft-left"]},{[`.${tf["slideExitActiveLeft-right"]}`]:r["slideExitActiveLeft-right"]}]})(({theme:e})=>{const r=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${tf["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${tf["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${tf.slideEnterActive}`]:{transform:"translate(0%)",transition:r},[`& .${tf.slideExit}`]:{transform:"translate(0%)"},[`& .${tf["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:r,zIndex:0},[`& .${tf["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:r,zIndex:0}}});function gue(e){const r=_o({props:e,name:"MuiPickersSlideTransition"}),{children:y,className:F,reduceAnimations:j,transKey:Y}=r,D=hn(r,hue),O=vue(r),t=ru();if(j)return Ce.jsx("div",{className:Ln(O.root,F),children:y});const l={exit:O.exit,enterActive:O.enterActive,enter:O.enter,exitActive:O.exitActive};return Ce.jsx(pue,{className:Ln(O.root,F),childFactory:S=>Oe.cloneElement(S,{classNames:l}),role:"presentation",children:Ce.jsx(KY,Ge({mountOnEnter:!0,unmountOnExit:!0,timeout:t.transitions.duration.complex,classNames:l},D,{children:y}),Y)})}const mue=e=>ka("MuiDayCalendar",e);Ma("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const yue=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],xue=["ownerState"],bue=e=>{const{classes:r}=e;return qn({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},mue,r)},UO=(qx+VT*2)*6,wue=ln("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Tue=ln("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,r)=>r.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Sue=ln(ea,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,r)=>r.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Cue=ln(ea,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,r)=>r.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Mue=ln(ea,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,r)=>r.weekNumber})(({theme:e})=>Ge({},e.typography.caption,{width:qx,height:qx,padding:0,margin:`0 ${VT}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Aue=ln("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,r)=>r.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:UO}),Eue=ln(gue,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,r)=>r.slideTransition})({minHeight:UO}),Pue=ln("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,r)=>r.monthContainer})({overflow:"hidden"}),Lue=ln("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,r)=>r.weekContainer})({margin:`${VT}px 0`,display:"flex",justifyContent:"center"});function Iue(e){let{parentProps:r,day:y,focusableDay:F,selectedDays:j,isDateDisabled:Y,currentMonthNumber:D,isViewFocused:O}=e,t=hn(e,yue);const{disabled:l,disableHighlightToday:S,isMonthSwitchingAnimating:i,showDaysOutsideCurrentMonth:C,slots:w,slotProps:v,timezone:m}=r,a=zo(),n=HT(m),s=F!==null&&a.isSameDay(y,F),o=j.some(x=>a.isSameDay(x,y)),h=a.isSameDay(y,n),f=(w==null?void 0:w.day)??Xse,u=vi({elementType:f,externalSlotProps:v==null?void 0:v.day,additionalProps:Ge({disableHighlightToday:S,showDaysOutsideCurrentMonth:C,role:"gridcell",isAnimating:i,"data-timestamp":a.toJsDate(y).valueOf()},t),ownerState:Ge({},r,{day:y,selected:o})}),b=hn(u,xue),p=Oe.useMemo(()=>l||Y(y),[l,Y,y]),E=Oe.useMemo(()=>a.getMonth(y)!==D,[a,y,D]),g=Oe.useMemo(()=>{const x=a.startOfMonth(a.setMonth(y,D));return C?a.isSameDay(y,a.startOfWeek(x)):a.isSameDay(y,x)},[D,y,C,a]),c=Oe.useMemo(()=>{const x=a.endOfMonth(a.setMonth(y,D));return C?a.isSameDay(y,a.endOfWeek(x)):a.isSameDay(y,x)},[D,y,C,a]);return Ce.jsx(f,Ge({},b,{day:y,disabled:p,autoFocus:O&&s,today:h,outsideCurrentMonth:E,isFirstVisibleCell:g,isLastVisibleCell:c,selected:o,tabIndex:s?0:-1,"aria-selected":o,"aria-current":h?"date":void 0}))}function Rue(e){const r=_o({props:e,name:"MuiDayCalendar"}),y=zo(),{onFocusedDayChange:F,className:j,currentMonth:Y,selectedDays:D,focusedDay:O,loading:t,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:S,readOnly:i,reduceAnimations:C,renderLoading:w=()=>Ce.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:m,disablePast:a,disableFuture:n,minDate:s,maxDate:o,shouldDisableDate:h,shouldDisableMonth:f,shouldDisableYear:u,dayOfWeekFormatter:b=oe=>y.format(oe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:p,onFocusedViewChange:E,gridLabelId:g,displayWeekNumber:c,fixedWeekNumber:x,autoFocus:A,timezone:M}=r,R=HT(M),T=bue(r),L=Fl(),P=BO({shouldDisableDate:h,shouldDisableMonth:f,shouldDisableYear:u,minDate:s,maxDate:o,disablePast:a,disableFuture:n,timezone:M}),d=hv(),[k,I]=Dl({name:"DayCalendar",state:"hasFocus",controlled:p,default:A??!1}),[N,B]=Oe.useState(()=>O||R),G=pa(oe=>{i||l(oe)}),U=oe=>{P(oe)||(F(oe),B(oe),E==null||E(!0),I(!0))},H=pa((oe,K)=>{switch(oe.key){case"ArrowUp":U(y.addDays(K,-7)),oe.preventDefault();break;case"ArrowDown":U(y.addDays(K,7)),oe.preventDefault();break;case"ArrowLeft":{const ne=y.addDays(K,L?1:-1),ce=y.addMonths(K,L?1:-1),re=wx({utils:y,date:ne,minDate:L?ne:y.startOfMonth(ce),maxDate:L?y.endOfMonth(ce):ne,isDateDisabled:P,timezone:M});U(re||ne),oe.preventDefault();break}case"ArrowRight":{const ne=y.addDays(K,L?-1:1),ce=y.addMonths(K,L?-1:1),re=wx({utils:y,date:ne,minDate:L?y.startOfMonth(ce):ne,maxDate:L?ne:y.endOfMonth(ce),isDateDisabled:P,timezone:M});U(re||ne),oe.preventDefault();break}case"Home":U(y.startOfWeek(K)),oe.preventDefault();break;case"End":U(y.endOfWeek(K)),oe.preventDefault();break;case"PageUp":U(y.addMonths(K,1)),oe.preventDefault();break;case"PageDown":U(y.addMonths(K,-1)),oe.preventDefault();break}}),W=pa((oe,K)=>U(K)),V=pa((oe,K)=>{k&&y.isSameDay(N,K)&&(E==null||E(!1))}),$=y.getMonth(Y),Z=y.getYear(Y),q=Oe.useMemo(()=>D.filter(oe=>!!oe).map(oe=>y.startOfDay(oe)),[y,D]),ae=`${Z}-${$}`,ie=Oe.useMemo(()=>Oe.createRef(),[ae]),fe=y.startOfWeek(R),Q=Oe.useMemo(()=>{const oe=y.startOfMonth(Y),K=y.endOfMonth(Y);return P(N)||y.isAfterDay(N,K)||y.isBeforeDay(N,oe)?wx({utils:y,date:N,minDate:oe,maxDate:K,disablePast:a,disableFuture:n,isDateDisabled:P,timezone:M}):N},[Y,n,a,N,P,y,M]),J=Oe.useMemo(()=>{const oe=y.setTimezone(Y,M),K=y.getWeekArray(oe);let ne=y.addMonths(oe,1);for(;x&&K.length{K.lengthCe.jsx(Sue,{variant:"caption",role:"columnheader","aria-label":y.format(y.addDays(fe,K),"weekday"),className:T.weekDayLabel,children:b(oe)},K.toString()))]}),t?Ce.jsx(Aue,{className:T.loadingContainer,children:w()}):Ce.jsx(Eue,Ge({transKey:ae,onExited:S,reduceAnimations:C,slideDirection:v,className:Ln(j,T.slideTransition)},m,{nodeRef:ie,children:Ce.jsx(Pue,{ref:ie,role:"rowgroup",className:T.monthContainer,children:J.map((oe,K)=>Ce.jsxs(Lue,{role:"row",className:T.weekContainer,"aria-rowindex":K+1,children:[c&&Ce.jsx(Mue,{className:T.weekNumber,role:"rowheader","aria-label":d.calendarWeekNumberAriaLabelText(y.getWeekNumber(oe[0])),children:d.calendarWeekNumberText(y.getWeekNumber(oe[0]))}),oe.map((ne,ce)=>Ce.jsx(Iue,{parentProps:r,day:ne,selectedDays:q,focusableDay:Q,onKeyDown:H,onFocus:W,onBlur:V,onDaySelect:G,isDateDisabled:P,currentMonthNumber:$,isViewFocused:k,"aria-colindex":ce+1},ne.toString()))]},`week-${oe[0]}`))})}))]})}function kue(e){return ka("MuiPickersMonth",e)}const n3=Ma("MuiPickersMonth",["root","monthButton","disabled","selected"]),Due=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Oue=e=>{const{disabled:r,selected:y,classes:F}=e;return qn({root:["root"],monthButton:["monthButton",r&&"disabled",y&&"selected"]},kue,F)},Fue=ln("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,r)=>[r.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),_ue=ln("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,r)=>[r.monthButton,{[`&.${n3.disabled}`]:r.disabled},{[`&.${n3.selected}`]:r.selected}]})(({theme:e})=>Ge({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tc(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tc(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${n3.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${n3.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),zue=Oe.memo(function(r){const y=_o({props:r,name:"MuiPickersMonth"}),{autoFocus:F,className:j,children:Y,disabled:D,selected:O,value:t,tabIndex:l,onClick:S,onKeyDown:i,onFocus:C,onBlur:w,"aria-current":v,"aria-label":m,slots:a,slotProps:n}=y,s=hn(y,Due),o=Oe.useRef(null),h=Oue(y);Gi(()=>{var b;F&&((b=o.current)==null||b.focus())},[F]);const f=(a==null?void 0:a.monthButton)??_ue,u=vi({elementType:f,externalSlotProps:n==null?void 0:n.monthButton,additionalProps:{children:Y,disabled:D,tabIndex:l,ref:o,type:"button",role:"radio","aria-current":v,"aria-checked":O,"aria-label":m,onClick:b=>S(b,t),onKeyDown:b=>i(b,t),onFocus:b=>C(b,t),onBlur:b=>w(b,t)},ownerState:y,className:h.monthButton});return Ce.jsx(Fue,Ge({className:Ln(h.root,j),ownerState:y},s,{children:Ce.jsx(f,Ge({},u))}))});function Bue(e){return ka("MuiMonthCalendar",e)}Ma("MuiMonthCalendar",["root"]);const Nue=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Uue=e=>{const{classes:r}=e;return qn({root:["root"]},Bue,r)};function Hue(e,r){const y=zo(),F=zb(),j=_o({props:e,name:r});return Ge({disableFuture:!1,disablePast:!1},j,{minDate:Lf(y,j.minDate,F.minDate),maxDate:Lf(y,j.maxDate,F.maxDate)})}const Vue=ln("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:jT,boxSizing:"border-box"}),jue=Oe.forwardRef(function(r,y){const F=Hue(r,"MuiMonthCalendar"),{className:j,value:Y,defaultValue:D,referenceDate:O,disabled:t,disableFuture:l,disablePast:S,maxDate:i,minDate:C,onChange:w,shouldDisableMonth:v,readOnly:m,autoFocus:a=!1,onMonthFocus:n,hasFocus:s,onFocusedViewChange:o,monthsPerRow:h=3,timezone:f,gridLabelId:u,slots:b,slotProps:p}=F,E=hn(F,Nue),{value:g,handleValueChange:c,timezone:x}=O5({name:"MonthCalendar",timezone:f,value:Y,defaultValue:D,onChange:w,valueManager:lv}),A=HT(x),M=Fl(),R=zo(),T=Oe.useMemo(()=>lv.getInitialReferenceValue({value:g,utils:R,props:F,timezone:x,referenceDate:O,granularity:eh.month}),[]),L=F,P=Uue(L),d=Oe.useMemo(()=>R.getMonth(A),[R,A]),k=Oe.useMemo(()=>g!=null?R.getMonth(g):null,[g,R]),[I,N]=Oe.useState(()=>k||R.getMonth(T)),[B,G]=Dl({name:"MonthCalendar",state:"hasFocus",controlled:s,default:a??!1}),U=pa(ae=>{G(ae),o&&o(ae)}),H=Oe.useCallback(ae=>{const ie=R.startOfMonth(S&&R.isAfter(A,C)?A:C),fe=R.startOfMonth(l&&R.isBefore(A,i)?A:i),Q=R.startOfMonth(ae);return R.isBefore(Q,ie)||R.isAfter(Q,fe)?!0:v?v(Q):!1},[l,S,i,C,A,v,R]),W=pa((ae,ie)=>{if(m)return;const fe=R.setMonth(g??T,ie);c(fe)}),V=pa(ae=>{H(R.setMonth(g??T,ae))||(N(ae),U(!0),n&&n(ae))});Oe.useEffect(()=>{N(ae=>k!==null&&ae!==k?k:ae)},[k]);const $=pa((ae,ie)=>{switch(ae.key){case"ArrowUp":V((12+ie-3)%12),ae.preventDefault();break;case"ArrowDown":V((12+ie+3)%12),ae.preventDefault();break;case"ArrowLeft":V((12+ie+(M?1:-1))%12),ae.preventDefault();break;case"ArrowRight":V((12+ie+(M?-1:1))%12),ae.preventDefault();break}}),Z=pa((ae,ie)=>{V(ie)}),q=pa((ae,ie)=>{I===ie&&U(!1)});return Ce.jsx(Vue,Ge({ref:y,className:Ln(P.root,j),ownerState:L,role:"radiogroup","aria-labelledby":u},E,{children:R5(R,g??T).map(ae=>{const ie=R.getMonth(ae),fe=R.format(ae,"monthShort"),Q=R.format(ae,"month"),J=ie===k,oe=t||H(ae);return Ce.jsx(zue,{selected:J,value:ie,onClick:W,onKeyDown:$,autoFocus:B&&ie===I,disabled:oe,tabIndex:ie===I&&!oe?0:-1,onFocus:Z,onBlur:q,"aria-current":d===ie?"date":void 0,"aria-label":Q,monthsPerRow:h,slots:b,slotProps:p,children:fe},fe)})}))});function Gue(e){return ka("MuiPickersYear",e)}const a3=Ma("MuiPickersYear",["root","yearButton","selected","disabled"]),Wue=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],$ue=e=>{const{disabled:r,selected:y,classes:F}=e;return qn({root:["root"],yearButton:["yearButton",r&&"disabled",y&&"selected"]},Gue,F)},Yue=ln("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,r)=>[r.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Xue=ln("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,r)=>[r.yearButton,{[`&.${a3.disabled}`]:r.disabled},{[`&.${a3.selected}`]:r.selected}]})(({theme:e})=>Ge({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tc(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tc(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${a3.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${a3.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Zue=Oe.memo(function(r){const y=_o({props:r,name:"MuiPickersYear"}),{autoFocus:F,className:j,children:Y,disabled:D,selected:O,value:t,tabIndex:l,onClick:S,onKeyDown:i,onFocus:C,onBlur:w,"aria-current":v,slots:m,slotProps:a}=y,n=hn(y,Wue),s=Oe.useRef(null),o=$ue(y);Gi(()=>{var u;F&&((u=s.current)==null||u.focus())},[F]);const h=(m==null?void 0:m.yearButton)??Xue,f=vi({elementType:h,externalSlotProps:a==null?void 0:a.yearButton,additionalProps:{children:Y,disabled:D,tabIndex:l,ref:s,type:"button",role:"radio","aria-current":v,"aria-checked":O,onClick:u=>S(u,t),onKeyDown:u=>i(u,t),onFocus:u=>C(u,t),onBlur:u=>w(u,t)},ownerState:y,className:o.yearButton});return Ce.jsx(Yue,Ge({className:Ln(o.root,j),ownerState:y},n,{children:Ce.jsx(h,Ge({},f))}))});function Kue(e){return ka("MuiYearCalendar",e)}Ma("MuiYearCalendar",["root"]);const Jue=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Que=e=>{const{classes:r}=e;return qn({root:["root"]},Kue,r)};function que(e,r){const y=zo(),F=zb(),j=_o({props:e,name:r});return Ge({disablePast:!1,disableFuture:!1},j,{yearsPerRow:j.yearsPerRow??3,minDate:Lf(y,j.minDate,F.minDate),maxDate:Lf(y,j.maxDate,F.maxDate)})}const ece=ln("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:jT,maxHeight:xse,boxSizing:"border-box",position:"relative"}),tce=Oe.forwardRef(function(r,y){const F=que(r,"MuiYearCalendar"),{autoFocus:j,className:Y,value:D,defaultValue:O,referenceDate:t,disabled:l,disableFuture:S,disablePast:i,maxDate:C,minDate:w,onChange:v,readOnly:m,shouldDisableYear:a,onYearFocus:n,hasFocus:s,onFocusedViewChange:o,yearsPerRow:h,timezone:f,gridLabelId:u,slots:b,slotProps:p}=F,E=hn(F,Jue),{value:g,handleValueChange:c,timezone:x}=O5({name:"YearCalendar",timezone:f,value:D,defaultValue:O,onChange:v,valueManager:lv}),A=HT(x),M=Fl(),R=zo(),T=Oe.useMemo(()=>lv.getInitialReferenceValue({value:g,utils:R,props:F,timezone:x,referenceDate:t,granularity:eh.year}),[]),L=F,P=Que(L),d=Oe.useMemo(()=>R.getYear(A),[R,A]),k=Oe.useMemo(()=>g!=null?R.getYear(g):null,[g,R]),[I,N]=Oe.useState(()=>k||R.getYear(T)),[B,G]=Dl({name:"YearCalendar",state:"hasFocus",controlled:s,default:j??!1}),U=pa(fe=>{G(fe),o&&o(fe)}),H=Oe.useCallback(fe=>{if(i&&R.isBeforeYear(fe,A)||S&&R.isAfterYear(fe,A)||w&&R.isBeforeYear(fe,w)||C&&R.isAfterYear(fe,C))return!0;if(!a)return!1;const Q=R.startOfYear(fe);return a(Q)},[S,i,C,w,A,a,R]),W=pa((fe,Q)=>{if(m)return;const J=R.setYear(g??T,Q);c(J)}),V=pa(fe=>{H(R.setYear(g??T,fe))||(N(fe),U(!0),n==null||n(fe))});Oe.useEffect(()=>{N(fe=>k!==null&&fe!==k?k:fe)},[k]);const $=pa((fe,Q)=>{switch(fe.key){case"ArrowUp":V(Q-h),fe.preventDefault();break;case"ArrowDown":V(Q+h),fe.preventDefault();break;case"ArrowLeft":V(Q+(M?1:-1)),fe.preventDefault();break;case"ArrowRight":V(Q+(M?-1:1)),fe.preventDefault();break}}),Z=pa((fe,Q)=>{V(Q)}),q=pa((fe,Q)=>{I===Q&&U(!1)}),ae=Oe.useRef(null),ie=pi(y,ae);return Oe.useEffect(()=>{if(j||ae.current===null)return;const fe=ae.current.querySelector('[tabindex="0"]');if(!fe)return;const Q=fe.offsetHeight,J=fe.offsetTop,oe=ae.current.clientHeight,K=ae.current.scrollTop,ne=J+Q;Q>oe||J{const Q=R.getYear(fe),J=Q===k,oe=l||H(fe);return Ce.jsx(Zue,{selected:J,value:Q,onClick:W,onKeyDown:$,autoFocus:B&&Q===I,disabled:oe,tabIndex:Q===I&&!oe?0:-1,onFocus:Z,onBlur:q,"aria-current":d===Q?"date":void 0,yearsPerRow:h,slots:b,slotProps:p,children:R.format(fe,"year")},R.format(fe,"year"))})}))}),rce=e=>ka("MuiPickersCalendarHeader",e),nce=Ma("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),ace=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],ice=["ownerState"],oce=e=>{const{classes:r}=e;return qn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},rce,r)},sce=ln("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),lce=ln("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,r)=>r.labelContainer})(({theme:e})=>Ge({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),uce=ln("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,r)=>r.label})({marginRight:6}),cce=ln(fl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,r)=>r.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${nce.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),fce=ln(ese,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,r)=>r.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),dce=Oe.forwardRef(function(r,y){const F=hv(),j=zo(),Y=_o({props:r,name:"MuiPickersCalendarHeader"}),{slots:D,slotProps:O,currentMonth:t,disabled:l,disableFuture:S,disablePast:i,maxDate:C,minDate:w,onMonthChange:v,onViewChange:m,view:a,reduceAnimations:n,views:s,labelId:o,className:h,timezone:f,format:u=`${j.formats.month} ${j.formats.year}`}=Y,b=hn(Y,ace),p=Y,E=oce(Y),g=(D==null?void 0:D.switchViewButton)??cce,c=vi({elementType:g,externalSlotProps:O==null?void 0:O.switchViewButton,additionalProps:{size:"small","aria-label":F.calendarViewSwitchingButtonAriaLabel(a)},ownerState:p,className:E.switchViewButton}),x=(D==null?void 0:D.switchViewIcon)??fce,A=vi({elementType:x,externalSlotProps:O==null?void 0:O.switchViewIcon,ownerState:p,className:E.switchViewIcon}),M=hn(A,ice),R=()=>v(j.addMonths(t,1),"left"),T=()=>v(j.addMonths(t,-1),"right"),L=mse(t,{disableFuture:S,maxDate:C,timezone:f}),P=yse(t,{disablePast:i,minDate:w,timezone:f}),d=()=>{if(!(s.length===1||!m||l))if(s.length===2)m(s.find(I=>I!==a)||s[0]);else{const I=s.indexOf(a)!==0?0:1;m(s[I])}};if(s.length===1&&s[0]==="year")return null;const k=j.formatByString(t,u);return Ce.jsxs(sce,Ge({},b,{ownerState:p,className:Ln(h,E.root),ref:y,children:[Ce.jsxs(lce,{role:"presentation",onClick:d,ownerState:p,"aria-live":"polite",className:E.labelContainer,children:[Ce.jsx(NO,{reduceAnimations:n,transKey:k,children:Ce.jsx(uce,{id:o,ownerState:p,className:E.label,children:k})}),s.length>1&&!l&&Ce.jsx(g,Ge({},c,{children:Ce.jsx(x,Ge({},M))}))]}),Ce.jsx(Vy,{in:a==="day",children:Ce.jsx(dse,{slots:D,slotProps:O,onGoToPrevious:T,isPreviousDisabled:P,previousLabel:F.previousMonth,onGoToNext:R,isNextDisabled:L,nextLabel:F.nextMonth})})]}))}),hce="@media (prefers-reduced-motion: reduce)",Xm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),sI=Xm&&Xm[1]?parseInt(Xm[1],10):null,lI=Xm&&Xm[2]?parseInt(Xm[2],10):null,vce=sI&&sI<10||lI&&lI<13||!1,HO=()=>K7(hce,{defaultMatches:!1})||vce,pce=e=>ka("MuiDateCalendar",e);Ma("MuiDateCalendar",["root","viewTransitionContainer"]);const gce=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],mce=e=>{const{classes:r}=e;return qn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},pce,r)};function yce(e,r){const y=zo(),F=zb(),j=HO(),Y=_o({props:e,name:r});return Ge({},Y,{loading:Y.loading??!1,disablePast:Y.disablePast??!1,disableFuture:Y.disableFuture??!1,openTo:Y.openTo??"day",views:Y.views??["year","day"],reduceAnimations:Y.reduceAnimations??j,renderLoading:Y.renderLoading??(()=>Ce.jsx("span",{children:"..."})),minDate:Lf(y,Y.minDate,F.minDate),maxDate:Lf(y,Y.maxDate,F.maxDate)})}const xce=ln(bse,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",flexDirection:"column",height:I5}),bce=ln(NO,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,r)=>r.viewTransitionContainer})({}),VO=Oe.forwardRef(function(r,y){const F=zo(),j=Ui(),Y=yce(r,"MuiDateCalendar"),{autoFocus:D,onViewChange:O,value:t,defaultValue:l,referenceDate:S,disableFuture:i,disablePast:C,onChange:w,onYearChange:v,onMonthChange:m,reduceAnimations:a,shouldDisableDate:n,shouldDisableMonth:s,shouldDisableYear:o,view:h,views:f,openTo:u,className:b,disabled:p,readOnly:E,minDate:g,maxDate:c,disableHighlightToday:x,focusedView:A,onFocusedViewChange:M,showDaysOutsideCurrentMonth:R,fixedWeekNumber:T,dayOfWeekFormatter:L,slots:P,slotProps:d,loading:k,renderLoading:I,displayWeekNumber:N,yearsPerRow:B,monthsPerRow:G,timezone:U}=Y,H=hn(Y,gce),{value:W,handleValueChange:V,timezone:$}=O5({name:"DateCalendar",timezone:U,value:t,defaultValue:l,onChange:w,valueManager:lv}),{view:Z,setView:q,focusedView:ae,setFocusedView:ie,goToNextView:fe,setValueAndGoToNextView:Q}=mO({view:h,views:f,openTo:u,onChange:V,onViewChange:O,autoFocus:D,focusedView:A,onFocusedViewChange:M}),{referenceDate:J,calendarState:oe,changeFocusedDay:K,changeMonth:ne,handleChangeMonth:ce,isDateDisabled:re,onMonthSwitchingAnimationEnd:ee}=lue({value:W,referenceDate:S,reduceAnimations:a,onMonthChange:m,minDate:g,maxDate:c,shouldDisableDate:n,disablePast:C,disableFuture:i,timezone:$}),de=p&&W||g,le=p&&W||c,he=`${j}-grid-label`,xe=ae!==null,Ee=(P==null?void 0:P.calendarHeader)??dce,Se=vi({elementType:Ee,externalSlotProps:d==null?void 0:d.calendarHeader,additionalProps:{views:f,view:Z,currentMonth:oe.currentMonth,onViewChange:q,onMonthChange:(st,vt)=>ce({newMonth:st,direction:vt}),minDate:de,maxDate:le,disabled:p,disablePast:C,disableFuture:i,reduceAnimations:a,timezone:$,labelId:he},ownerState:Y}),ke=pa(st=>{const vt=F.startOfMonth(st),at=F.endOfMonth(st),nt=re(st)?wx({utils:F,date:st,minDate:F.isBefore(g,vt)?vt:g,maxDate:F.isAfter(c,at)?at:c,disablePast:C,disableFuture:i,isDateDisabled:re,timezone:$}):st;nt?(Q(nt,"finish"),m==null||m(vt)):(fe(),ne(vt)),K(nt,!0)}),Te=pa(st=>{const vt=F.startOfYear(st),at=F.endOfYear(st),nt=re(st)?wx({utils:F,date:st,minDate:F.isBefore(g,vt)?vt:g,maxDate:F.isAfter(c,at)?at:c,disablePast:C,disableFuture:i,isDateDisabled:re,timezone:$}):st;nt?(Q(nt,"finish"),v==null||v(nt)):(fe(),ne(vt)),K(nt,!0)}),Ae=pa(st=>V(st&&v2(F,st,W??J),"finish",Z));Oe.useEffect(()=>{W!=null&&F.isValid(W)&&ne(W)},[W]);const be=Y,Ie=mce(be),Ue={disablePast:C,disableFuture:i,maxDate:c,minDate:g},Ne={disableHighlightToday:x,readOnly:E,disabled:p,timezone:$,gridLabelId:he,slots:P,slotProps:d},ze=Oe.useRef(Z);Oe.useEffect(()=>{ze.current!==Z&&(ae===ze.current&&ie(Z,!0),ze.current=Z)},[ae,ie,Z]);const $e=Oe.useMemo(()=>[W],[W]);return Ce.jsxs(xce,Ge({ref:y,className:Ln(Ie.root,b),ownerState:be},H,{children:[Ce.jsx(Ee,Ge({},Se,{slots:P,slotProps:d})),Ce.jsx(bce,{reduceAnimations:a,className:Ie.viewTransitionContainer,transKey:Z,ownerState:be,children:Ce.jsxs("div",{children:[Z==="year"&&Ce.jsx(tce,Ge({},Ue,Ne,{value:W,onChange:Te,shouldDisableYear:o,hasFocus:xe,onFocusedViewChange:st=>ie("year",st),yearsPerRow:B,referenceDate:J})),Z==="month"&&Ce.jsx(jue,Ge({},Ue,Ne,{hasFocus:xe,className:b,value:W,onChange:ke,shouldDisableMonth:s,onFocusedViewChange:st=>ie("month",st),monthsPerRow:G,referenceDate:J})),Z==="day"&&Ce.jsx(Rue,Ge({},oe,Ue,Ne,{onMonthSwitchingAnimationEnd:ee,onFocusedDayChange:K,reduceAnimations:a,selectedDays:$e,onSelectedDaysChange:Ae,shouldDisableDate:n,shouldDisableMonth:s,shouldDisableYear:o,hasFocus:xe,onFocusedViewChange:st=>ie("day",st),showDaysOutsideCurrentMonth:R,fixedWeekNumber:T,dayOfWeekFormatter:L,displayWeekNumber:N,loading:k,renderLoading:I}))]})})]}))});function wce(e){return ka("MuiPickersToolbar",e)}Ma("MuiPickersToolbar",["root","content"]);const Tce=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Sce=e=>{const{classes:r,isLandscape:y}=e;return qn({root:["root"],content:["content"],penIconButton:["penIconButton",y&&"penIconButtonLandscape"]},wce,r)},Cce=ln("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Mce=ln("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,r)=>r.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Ace=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersToolbar"}),{children:j,className:Y,toolbarTitle:D,hidden:O,titleId:t}=F,l=hn(F,Tce),S=F,i=Sce(S);return O?null:Ce.jsxs(Cce,Ge({ref:y,className:Ln(i.root,Y),ownerState:S},l,{children:[Ce.jsx(ea,{color:"text.secondary",variant:"overline",id:t,children:D}),Ce.jsx(Mce,{className:i.content,ownerState:S,children:j})]}))});function Ece(e){return ka("MuiDatePickerToolbar",e)}Ma("MuiDatePickerToolbar",["root","title"]);const Pce=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Lce=e=>{const{classes:r}=e;return qn({root:["root"],title:["title"]},Ece,r)},Ice=ln(Ace,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Rce=ln(ea,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,r)=>r.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),kce=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiDatePickerToolbar"}),{value:j,isLandscape:Y,toolbarFormat:D,toolbarPlaceholder:O="––",views:t,className:l}=F,S=hn(F,Pce),i=zo(),C=hv(),w=Lce(F),v=Oe.useMemo(()=>{if(!j)return O;const a=k5(i,{format:D,views:t},!0);return i.formatByString(j,a)},[j,D,O,i,t]),m=F;return Ce.jsx(Ice,Ge({ref:y,toolbarTitle:C.datePickerToolbarTitle,isLandscape:Y,className:Ln(w.root,l)},S,{children:Ce.jsx(Rce,{variant:"h4",align:Y?"left":"center",ownerState:m,className:w.title,children:v})}))});function jO(e,r){const y=zo(),F=zb(),j=_o({props:e,name:r}),Y=Oe.useMemo(()=>{var D;return((D=j.localeText)==null?void 0:D.toolbarTitle)==null?j.localeText:Ge({},j.localeText,{datePickerToolbarTitle:j.localeText.toolbarTitle})},[j.localeText]);return Ge({},j,{localeText:Y},hse({views:j.views,openTo:j.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:j.disableFuture??!1,disablePast:j.disablePast??!1,minDate:Lf(y,j.minDate,F.minDate),maxDate:Lf(y,j.maxDate,F.maxDate),slots:Ge({toolbar:kce},j.slots)})}function Dce(e){return ka("MuiPickersPopper",e)}Ma("MuiPickersPopper",["root","paper"]);const Oce=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Fce=e=>{const{classes:r}=e;return qn({root:["root"],paper:["paper"]},Dce,r)},_ce=ln(Xp,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({zIndex:e.zIndex.modal})),zce=ln(Ri,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,r)=>r.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function Bce(e,r){return r.documentElement.clientWidth{if(!e)return;function t(){Y.current=!0}return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),Y.current=!1}},[e]);const D=pa(t=>{if(!Y.current)return;const l=F.current;F.current=!1;const S=oo(j.current);if(!j.current||"clientX"in t&&Bce(t,S))return;if(y.current){y.current=!1;return}let i;t.composedPath?i=t.composedPath().indexOf(j.current)>-1:i=!S.documentElement.contains(t.target)||j.current.contains(t.target),!i&&!l&&r(t)}),O=()=>{F.current=!0};return Oe.useEffect(()=>{if(e){const t=oo(j.current),l=()=>{y.current=!0};return t.addEventListener("touchstart",D),t.addEventListener("touchmove",l),()=>{t.removeEventListener("touchstart",D),t.removeEventListener("touchmove",l)}}},[e,D]),Oe.useEffect(()=>{if(e){const t=oo(j.current);return t.addEventListener("click",D),()=>{t.removeEventListener("click",D),F.current=!1}}},[e,D]),[j,O,O]}const Uce=Oe.forwardRef((e,r)=>{const{PaperComponent:y,popperPlacement:F,ownerState:j,children:Y,paperSlotProps:D,paperClasses:O,onPaperClick:t,onPaperTouchStart:l}=e,S=hn(e,Oce),i=Ge({},j,{placement:F}),C=vi({elementType:y,externalSlotProps:D,additionalProps:{tabIndex:-1,elevation:8,ref:r},className:O,ownerState:i});return Ce.jsx(y,Ge({},S,C,{onClick:w=>{var v;t(w),(v=C.onClick)==null||v.call(C,w)},onTouchStart:w=>{var v;l(w),(v=C.onTouchStart)==null||v.call(C,w)},ownerState:i,children:Y}))});function Hce(e){const r=_o({props:e,name:"MuiPickersPopper"}),{anchorEl:y,children:F,containerRef:j=null,shouldRestoreFocus:Y,onBlur:D,onDismiss:O,open:t,role:l,placement:S,slots:i,slotProps:C,reduceAnimations:w}=r;Oe.useEffect(()=>{function R(T){t&&T.key==="Escape"&&O()}return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[O,t]);const v=Oe.useRef(null);Oe.useEffect(()=>{l==="tooltip"||Y&&!Y()||(t?v.current=xc(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[t,l,Y]);const[m,a,n]=Nce(t,D??O),s=Oe.useRef(null),o=pi(s,j),h=pi(o,m),f=r,u=Fce(f),b=HO(),p=w??b,E=R=>{R.key==="Escape"&&(R.stopPropagation(),O())},g=(i==null?void 0:i.desktopTransition)??p?Vy:Qx,c=(i==null?void 0:i.desktopTrapFocus)??x5,x=(i==null?void 0:i.desktopPaper)??zce,A=(i==null?void 0:i.popper)??_ce,M=vi({elementType:A,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:l,open:t,anchorEl:y,placement:S,onKeyDown:E},className:u.root,ownerState:r});return Ce.jsx(A,Ge({},M,{children:({TransitionProps:R,placement:T})=>Ce.jsx(c,Ge({open:t,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:l==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:Ce.jsx(g,Ge({},R,C==null?void 0:C.desktopTransition,{children:Ce.jsx(Uce,{PaperComponent:x,ownerState:f,popperPlacement:T,ref:h,onPaperClick:a,onPaperTouchStart:n,paperClasses:u.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:F})}))}))}))}const Vce=({open:e,onOpen:r,onClose:y})=>{const F=Oe.useRef(typeof e=="boolean").current,[j,Y]=Oe.useState(!1);Oe.useEffect(()=>{if(F){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");Y(e)}},[F,e]);const D=Oe.useCallback(O=>{F||Y(O),O&&r&&r(),!O&&y&&y()},[F,r,y]);return{isOpen:j,setIsOpen:D}},jce=e=>{const{action:r,hasChanged:y,dateState:F,isControlled:j}=e,Y=!j&&!F.hasBeenModifiedSinceMount;return r.name==="setValueFromField"?!0:r.name==="setValueFromAction"?Y&&["accept","today","clear"].includes(r.pickerAction)?!0:y(F.lastPublishedValue):r.name==="setValueFromView"&&r.selectionState!=="shallow"||r.name==="setValueFromShortcut"?Y?!0:y(F.lastPublishedValue):!1},Gce=e=>{const{action:r,hasChanged:y,dateState:F,isControlled:j,closeOnSelect:Y}=e,D=!j&&!F.hasBeenModifiedSinceMount;return r.name==="setValueFromAction"?D&&["accept","today","clear"].includes(r.pickerAction)?!0:y(F.lastCommittedValue):r.name==="setValueFromView"&&r.selectionState==="finish"&&Y?D?!0:y(F.lastCommittedValue):r.name==="setValueFromShortcut"?r.changeImportance==="accept"&&y(F.lastCommittedValue):!1},Wce=e=>{const{action:r,closeOnSelect:y}=e;return r.name==="setValueFromAction"?!0:r.name==="setValueFromView"?r.selectionState==="finish"&&y:r.name==="setValueFromShortcut"?r.changeImportance==="accept":!1},$ce=({props:e,valueManager:r,valueType:y,wrapperVariant:F,validator:j})=>{const{onAccept:Y,onChange:D,value:O,defaultValue:t,closeOnSelect:l=F==="desktop",timezone:S}=e,{current:i}=Oe.useRef(t),{current:C}=Oe.useRef(O!==void 0),w=zo(),v=Tg(),{isOpen:m,setIsOpen:a}=Vce(e),{timezone:n,value:s,handleValueChange:o}=D5({timezone:S,value:O,defaultValue:i,onChange:D,valueManager:r}),[h,f]=Oe.useState(()=>{let B;return s!==void 0?B=s:i!==void 0?B=i:B=r.emptyValue,{draft:B,lastPublishedValue:B,lastCommittedValue:B,lastControlledValue:s,hasBeenModifiedSinceMount:!1}});EO(Ge({},e,{value:h.draft,timezone:n}),j,r.isSameError,r.defaultErrorState);const u=pa(B=>{const G={action:B,dateState:h,hasChanged:Z=>!r.areValuesEqual(w,B.value,Z),isControlled:C,closeOnSelect:l},U=jce(G),H=Gce(G),W=Wce(G);f(Z=>Ge({},Z,{draft:B.value,lastPublishedValue:U?B.value:Z.lastPublishedValue,lastCommittedValue:H?B.value:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let V=null;const $=()=>(V||(V={validationError:B.name==="setValueFromField"?B.context.validationError:j({adapter:v,value:B.value,props:Ge({},e,{value:B.value,timezone:n})})},B.name==="setValueFromShortcut"&&(V.shortcut=B.shortcut)),V);U&&o(B.value,$()),H&&Y&&Y(B.value,$()),W&&a(!1)});if(s!==void 0&&(h.lastControlledValue===void 0||!r.areValuesEqual(w,h.lastControlledValue,s))){const B=r.areValuesEqual(w,h.draft,s);f(G=>Ge({},G,{lastControlledValue:s},B?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const b=pa(()=>{u({value:r.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),p=pa(()=>{u({value:h.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),E=pa(()=>{u({value:h.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),g=pa(()=>{u({value:h.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),c=pa(()=>{u({value:r.getTodayValue(w,n,y),name:"setValueFromAction",pickerAction:"today"})}),x=pa(B=>{B.preventDefault(),a(!0)}),A=pa(B=>{B==null||B.preventDefault(),a(!1)}),M=pa((B,G="partial")=>u({name:"setValueFromView",value:B,selectionState:G})),R=pa((B,G,U)=>u({name:"setValueFromShortcut",value:B,changeImportance:G,shortcut:U})),T=pa((B,G)=>u({name:"setValueFromField",value:B,context:G})),L={onClear:b,onAccept:p,onDismiss:E,onCancel:g,onSetToday:c,onOpen:x,onClose:A},P={value:h.draft,onChange:T},d=Oe.useMemo(()=>r.cleanValue(w,h.draft),[w,r,h.draft]),k={value:d,onChange:M,onClose:A,open:m},N=Ge({},L,{value:d,onChange:M,onSelectShortcut:R,isValid:B=>{const G=j({adapter:v,value:B,props:Ge({},e,{value:B,timezone:n})});return!r.hasError(G)}});return{open:m,fieldProps:P,viewProps:k,layoutProps:N,actions:L}},Yce=["className","sx"],Xce=({props:e,propsFromPickerValue:r,additionalViewProps:y,autoFocusView:F,rendererInterceptor:j,fieldRef:Y})=>{const{onChange:D,open:O,onClose:t}=r,{view:l,views:S,openTo:i,onViewChange:C,viewRenderers:w,timezone:v}=e,m=hn(e,Yce),{view:a,setView:n,defaultView:s,focusedView:o,setFocusedView:h,setValueAndGoToNextView:f}=mO({view:l,views:S,openTo:i,onChange:D,onViewChange:C,autoFocus:F}),{hasUIView:u,viewModeLookup:b}=Oe.useMemo(()=>S.reduce((M,R)=>{let T;return w[R]!=null?T="UI":T="field",M.viewModeLookup[R]=T,T==="UI"&&(M.hasUIView=!0),M},{hasUIView:!1,viewModeLookup:{}}),[w,S]),p=Oe.useMemo(()=>S.reduce((M,R)=>w[R]!=null&&pse(R)?M+1:M,0),[w,S]),E=b[a],g=pa(()=>E==="UI"),[c,x]=Oe.useState(E==="UI"?a:null);return c!==a&&b[a]==="UI"&&x(a),Gi(()=>{E==="field"&&O&&(t(),setTimeout(()=>{var M,R;(M=Y==null?void 0:Y.current)==null||M.setSelectedSections(a),(R=Y==null?void 0:Y.current)==null||R.focusField(a)}))},[a]),Gi(()=>{if(!O)return;let M=a;E==="field"&&c!=null&&(M=c),M!==s&&b[M]==="UI"&&b[s]==="UI"&&(M=s),M!==a&&n(M),h(M,!0)},[O]),{hasUIView:u,shouldRestoreFocus:g,layoutProps:{views:S,view:c,onViewChange:n},renderCurrentView:()=>{if(c==null)return null;const M=w[c];if(M==null)return null;const R=Ge({},m,y,r,{views:S,timezone:v,onChange:f,view:c,onViewChange:n,focusedView:o,onFocusedViewChange:h,showViewSwitcher:p>1,timeViewsCount:p});return j?j(w,c,R):M(R)}}};function uI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Zce=(e,r)=>{const[y,F]=Oe.useState(uI);return Gi(()=>{const Y=()=>{F(uI())};return window.addEventListener("orientationchange",Y),()=>{window.removeEventListener("orientationchange",Y)}},[]),ale(e,["hours","minutes","seconds"])?!1:(r||y)==="landscape"},Kce=({props:e,propsFromPickerValue:r,propsFromPickerViews:y,wrapperVariant:F})=>{const{orientation:j}=e,Y=Zce(y.views,j),D=Fl();return{layoutProps:Ge({},y,r,{isLandscape:Y,isRtl:D,wrapperVariant:F,disabled:e.disabled,readOnly:e.readOnly})}},GO=({props:e,valueManager:r,valueType:y,wrapperVariant:F,additionalViewProps:j,validator:Y,autoFocusView:D,rendererInterceptor:O,fieldRef:t})=>{const l=$ce({props:e,valueManager:r,valueType:y,wrapperVariant:F,validator:Y}),S=Xce({props:e,additionalViewProps:j,autoFocusView:D,fieldRef:t,propsFromPickerValue:l.viewProps,rendererInterceptor:O}),i=Kce({props:e,wrapperVariant:F,propsFromPickerValue:l.layoutProps,propsFromPickerViews:S.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:S.renderCurrentView,hasUIView:S.hasUIView,shouldRestoreFocus:S.shouldRestoreFocus,layoutProps:i.layoutProps}};function WO(e){return ka("MuiPickersLayout",e)}const I0=Ma("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Jce=["onAccept","onClear","onCancel","onSetToday","actions"];function Qce(e){const{onAccept:r,onClear:y,onCancel:F,onSetToday:j,actions:Y}=e,D=hn(e,Jce),O=hv();if(Y==null||Y.length===0)return null;const t=Y==null?void 0:Y.map(l=>{switch(l){case"clear":return Ce.jsx($i,{onClick:y,children:O.clearButtonLabel},l);case"cancel":return Ce.jsx($i,{onClick:F,children:O.cancelButtonLabel},l);case"accept":return Ce.jsx($i,{onClick:r,children:O.okButtonLabel},l);case"today":return Ce.jsx($i,{onClick:j,children:O.todayButtonLabel},l);default:return null}});return Ce.jsx(Yq,Ge({},D,{children:t}))}const qce=["items","changeImportance","isLandscape","onChange","isValid"],efe=["getValue"];function tfe(e){const{items:r,changeImportance:y="accept",onChange:F,isValid:j}=e,Y=hn(e,qce);if(r==null||r.length===0)return null;const D=r.map(O=>{let{getValue:t}=O,l=hn(O,efe);const S=t({isValid:j});return Ge({},l,{label:l.label,onClick:()=>{F(S,y,l)},disabled:!j(S)})});return Ce.jsx(S5,Ge({dense:!0,sx:[{maxHeight:I5,maxWidth:200,overflow:"auto"},...Array.isArray(Y.sx)?Y.sx:[Y.sx]]},Y,{children:D.map(O=>Ce.jsx(q1,{children:Ce.jsx(Kh,Ge({},O))},O.id??O.label))}))}function rfe(e){return e.view!==null}const nfe=e=>{const{classes:r,isLandscape:y}=e;return qn({root:["root",y&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},WO,r)},afe=e=>{const{wrapperVariant:r,onAccept:y,onClear:F,onCancel:j,onSetToday:Y,view:D,views:O,onViewChange:t,value:l,onChange:S,onSelectShortcut:i,isValid:C,isLandscape:w,disabled:v,readOnly:m,children:a,slots:n,slotProps:s}=e,o=nfe(e),h=(n==null?void 0:n.actionBar)??Qce,f=vi({elementType:h,externalSlotProps:s==null?void 0:s.actionBar,additionalProps:{onAccept:y,onClear:F,onCancel:j,onSetToday:Y,actions:r==="desktop"?[]:["cancel","accept"]},className:o.actionBar,ownerState:Ge({},e,{wrapperVariant:r})}),u=Ce.jsx(h,Ge({},f)),b=n==null?void 0:n.toolbar,p=vi({elementType:b,externalSlotProps:s==null?void 0:s.toolbar,additionalProps:{isLandscape:w,onChange:S,value:l,view:D,onViewChange:t,views:O,disabled:v,readOnly:m},className:o.toolbar,ownerState:Ge({},e,{wrapperVariant:r})}),E=rfe(p)&&b?Ce.jsx(b,Ge({},p)):null,g=a,c=n==null?void 0:n.tabs,x=D&&c?Ce.jsx(c,Ge({view:D,onViewChange:t,className:o.tabs},s==null?void 0:s.tabs)):null,A=(n==null?void 0:n.shortcuts)??tfe,M=vi({elementType:A,externalSlotProps:s==null?void 0:s.shortcuts,additionalProps:{isValid:C,isLandscape:w,onChange:i},className:o.shortcuts,ownerState:{isValid:C,isLandscape:w,onChange:i,wrapperVariant:r}}),R=D&&A?Ce.jsx(A,Ge({},M)):null;return{toolbar:E,content:g,tabs:x,actionBar:u,shortcuts:R}},ife=e=>{const{isLandscape:r,classes:y}=e;return qn({root:["root",r&&"landscape"],contentWrapper:["contentWrapper"]},WO,y)},ofe=ln("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${I0.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${I0.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${I0.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${I0.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${I0.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${I0.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${I0.shortcuts}`]:{gridColumn:3}}}]}),sfe=ln("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,r)=>r.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),$O=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiPickersLayout"}),{toolbar:j,content:Y,tabs:D,actionBar:O,shortcuts:t}=afe(F),{sx:l,className:S,isLandscape:i,wrapperVariant:C}=F,w=ife(F);return Ce.jsxs(ofe,{ref:y,sx:l,className:Ln(S,w.root),ownerState:F,children:[i?t:j,i?j:t,Ce.jsx(sfe,{className:w.contentWrapper,children:C==="desktop"?Ce.jsxs(Oe.Fragment,{children:[Y,D]}):Ce.jsxs(Oe.Fragment,{children:[D,Y]})}),O]})}),lfe=["props","getOpenDialogAriaText"],ufe=["ownerState"],cfe=["ownerState"],ffe=e=>{var ie;let{props:r,getOpenDialogAriaText:y}=e,F=hn(e,lfe);const{slots:j,slotProps:Y,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,name:v,label:m,inputRef:a,readOnly:n,disabled:s,autoFocus:o,localeText:h,reduceAnimations:f}=r,u=zo(),b=Oe.useRef(null),p=Oe.useRef(null),E=Ui(),g=((ie=Y==null?void 0:Y.toolbar)==null?void 0:ie.hidden)??!1,{open:c,actions:x,hasUIView:A,layoutProps:M,renderCurrentView:R,shouldRestoreFocus:T,fieldProps:L}=GO(Ge({},F,{props:r,fieldRef:p,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),P=j.inputAdornment??w5,d=vi({elementType:P,externalSlotProps:Y==null?void 0:Y.inputAdornment,additionalProps:{position:"end"},ownerState:r}),k=hn(d,ufe),I=j.openPickerButton??fl,N=vi({elementType:I,externalSlotProps:Y==null?void 0:Y.openPickerButton,additionalProps:{disabled:s||n,onClick:c?x.onClose:x.onOpen,"aria-label":y(L.value,u),edge:k.position},ownerState:r}),B=hn(N,cfe),G=j.openPickerIcon,U=j.field,H=vi({elementType:U,externalSlotProps:Y==null?void 0:Y.field,additionalProps:Ge({},L,g&&{id:E},{readOnly:n,disabled:s,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,label:m,name:v,autoFocus:o&&!r.open,focused:c?!0:void 0},a?{inputRef:a}:{}),ownerState:r});A&&(H.InputProps=Ge({},H.InputProps,{ref:b},!r.disableOpenPicker&&{[`${k.position}Adornment`]:Ce.jsx(P,Ge({},k,{children:Ce.jsx(I,Ge({},B,{children:Ce.jsx(G,Ge({},Y==null?void 0:Y.openPickerIcon))}))}))}));const W=Ge({textField:j.textField,clearIcon:j.clearIcon,clearButton:j.clearButton},H.slots),V=j.layout??$O;let $=E;g&&(m?$=`${E}-label`:$=void 0);const Z=Ge({},Y,{toolbar:Ge({},Y==null?void 0:Y.toolbar,{titleId:E}),popper:Ge({"aria-labelledby":$},Y==null?void 0:Y.popper)}),q=pi(p,H.unstableFieldRef);return{renderPicker:()=>Ce.jsxs(UT,{localeText:h,children:[Ce.jsx(U,Ge({},H,{slots:W,slotProps:Z,unstableFieldRef:q})),Ce.jsx(Hce,Ge({role:"dialog",placement:"bottom-start",anchorEl:b.current},x,{open:c,slots:j,slotProps:Z,shouldRestoreFocus:T,reduceAnimations:f,children:Ce.jsx(V,Ge({},M,Z==null?void 0:Z.layout,{slots:j,slotProps:Z,children:R()}))}))]})}},Zm=({view:e,onViewChange:r,views:y,focusedView:F,onFocusedViewChange:j,value:Y,defaultValue:D,referenceDate:O,onChange:t,className:l,classes:S,disableFuture:i,disablePast:C,minDate:w,maxDate:v,shouldDisableDate:m,shouldDisableMonth:a,shouldDisableYear:n,reduceAnimations:s,onMonthChange:o,monthsPerRow:h,onYearChange:f,yearsPerRow:u,slots:b,slotProps:p,loading:E,renderLoading:g,disableHighlightToday:c,readOnly:x,disabled:A,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:R,sx:T,autoFocus:L,fixedWeekNumber:P,displayWeekNumber:d,timezone:k})=>Ce.jsx(VO,{view:e,onViewChange:r,views:y.filter(qL),focusedView:F&&qL(F)?F:null,onFocusedViewChange:j,value:Y,defaultValue:D,referenceDate:O,onChange:t,className:l,classes:S,disableFuture:i,disablePast:C,minDate:w,maxDate:v,shouldDisableDate:m,shouldDisableMonth:a,shouldDisableYear:n,reduceAnimations:s,onMonthChange:o,monthsPerRow:h,onYearChange:f,yearsPerRow:u,slots:b,slotProps:p,loading:E,renderLoading:g,disableHighlightToday:c,readOnly:x,disabled:A,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:R,sx:T,autoFocus:L,fixedWeekNumber:P,displayWeekNumber:d,timezone:k}),YO=Oe.forwardRef(function(r,y){var l,S;const F=hv(),j=zo(),Y=jO(r,"MuiDesktopDatePicker"),D=Ge({day:Zm,month:Zm,year:Zm},Y.viewRenderers),O=Ge({},Y,{viewRenderers:D,format:k5(j,Y,!1),yearsPerRow:Y.yearsPerRow??4,slots:Ge({openPickerIcon:nse,field:zO},Y.slots),slotProps:Ge({},Y.slotProps,{field:i=>{var C;return Ge({},MT((C=Y.slotProps)==null?void 0:C.field,i),LO(Y),{ref:y})},toolbar:Ge({hidden:!0},(l=Y.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:t}=ffe({props:O,valueManager:lv,valueType:"date",getOpenDialogAriaText:((S=O.localeText)==null?void 0:S.openDatePickerDialogue)??F.openDatePickerDialogue,validator:WT});return t()});YO.propTypes={autoFocus:zr.bool,className:zr.string,closeOnSelect:zr.bool,dayOfWeekFormatter:zr.func,defaultValue:zr.object,disabled:zr.bool,disableFuture:zr.bool,disableHighlightToday:zr.bool,disableOpenPicker:zr.bool,disablePast:zr.bool,displayWeekNumber:zr.bool,enableAccessibleFieldDOMStructure:zr.any,fixedWeekNumber:zr.number,format:zr.string,formatDensity:zr.oneOf(["dense","spacious"]),inputRef:J7,label:zr.node,loading:zr.bool,localeText:zr.object,maxDate:zr.object,minDate:zr.object,monthsPerRow:zr.oneOf([3,4]),name:zr.string,onAccept:zr.func,onChange:zr.func,onClose:zr.func,onError:zr.func,onMonthChange:zr.func,onOpen:zr.func,onSelectedSectionsChange:zr.func,onViewChange:zr.func,onYearChange:zr.func,open:zr.bool,openTo:zr.oneOf(["day","month","year"]),orientation:zr.oneOf(["landscape","portrait"]),readOnly:zr.bool,reduceAnimations:zr.bool,referenceDate:zr.object,renderLoading:zr.func,selectedSections:zr.oneOfType([zr.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),zr.number]),shouldDisableDate:zr.func,shouldDisableMonth:zr.func,shouldDisableYear:zr.func,showDaysOutsideCurrentMonth:zr.bool,slotProps:zr.object,slots:zr.object,sx:zr.oneOfType([zr.arrayOf(zr.oneOfType([zr.func,zr.object,zr.bool])),zr.func,zr.object]),timezone:zr.string,value:zr.object,view:zr.oneOf(["day","month","year"]),viewRenderers:zr.shape({day:zr.func,month:zr.func,year:zr.func}),views:zr.arrayOf(zr.oneOf(["day","month","year"]).isRequired),yearsPerRow:zr.oneOf([3,4])};const dfe=ln(Hq)({[`& .${xx.container}`]:{outline:0},[`& .${xx.paper}`]:{outline:0,minWidth:jT}}),hfe=ln(tee)({"&:first-of-type":{padding:0}});function vfe(e){const{children:r,onDismiss:y,open:F,slots:j,slotProps:Y}=e,D=(j==null?void 0:j.dialog)??dfe,O=(j==null?void 0:j.mobileTransition)??Vy;return Ce.jsx(D,Ge({open:F,onClose:y},Y==null?void 0:Y.dialog,{TransitionComponent:O,TransitionProps:Y==null?void 0:Y.mobileTransition,PaperComponent:j==null?void 0:j.mobilePaper,PaperProps:Y==null?void 0:Y.mobilePaper,children:Ce.jsx(hfe,{children:r})}))}const pfe=["props","getOpenDialogAriaText"],gfe=e=>{var I;let{props:r,getOpenDialogAriaText:y}=e,F=hn(e,pfe);const{slots:j,slotProps:Y,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,name:v,label:m,inputRef:a,readOnly:n,disabled:s,localeText:o}=r,h=zo(),f=Oe.useRef(null),u=Ui(),b=((I=Y==null?void 0:Y.toolbar)==null?void 0:I.hidden)??!1,{open:p,actions:E,layoutProps:g,renderCurrentView:c,fieldProps:x}=GO(Ge({},F,{props:r,fieldRef:f,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),A=j.field,M=vi({elementType:A,externalSlotProps:Y==null?void 0:Y.field,additionalProps:Ge({},x,b&&{id:u},!(s||n)&&{onClick:E.onOpen,onKeyDown:ile(E.onOpen)},{readOnly:n??!0,disabled:s,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,label:m,name:v},a?{inputRef:a}:{}),ownerState:r});M.inputProps=Ge({},M.inputProps,{"aria-label":y(x.value,h)});const R=Ge({textField:j.textField},M.slots),T=j.layout??$O;let L=u;b&&(m?L=`${u}-label`:L=void 0);const P=Ge({},Y,{toolbar:Ge({},Y==null?void 0:Y.toolbar,{titleId:u}),mobilePaper:Ge({"aria-labelledby":L},Y==null?void 0:Y.mobilePaper)}),d=pi(f,M.unstableFieldRef);return{renderPicker:()=>Ce.jsxs(UT,{localeText:o,children:[Ce.jsx(A,Ge({},M,{slots:R,slotProps:P,unstableFieldRef:d})),Ce.jsx(vfe,Ge({},E,{open:p,slots:j,slotProps:P,children:Ce.jsx(T,Ge({},g,P==null?void 0:P.layout,{slots:j,slotProps:P,children:c()}))}))]})}},XO=Oe.forwardRef(function(r,y){var l,S;const F=hv(),j=zo(),Y=jO(r,"MuiMobileDatePicker"),D=Ge({day:Zm,month:Zm,year:Zm},Y.viewRenderers),O=Ge({},Y,{viewRenderers:D,format:k5(j,Y,!1),slots:Ge({field:zO},Y.slots),slotProps:Ge({},Y.slotProps,{field:i=>{var C;return Ge({},MT((C=Y.slotProps)==null?void 0:C.field,i),LO(Y),{ref:y})},toolbar:Ge({hidden:!1},(l=Y.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:t}=gfe({props:O,valueManager:lv,valueType:"date",getOpenDialogAriaText:((S=O.localeText)==null?void 0:S.openDatePickerDialogue)??F.openDatePickerDialogue,validator:WT});return t()});XO.propTypes={autoFocus:zr.bool,className:zr.string,closeOnSelect:zr.bool,dayOfWeekFormatter:zr.func,defaultValue:zr.object,disabled:zr.bool,disableFuture:zr.bool,disableHighlightToday:zr.bool,disableOpenPicker:zr.bool,disablePast:zr.bool,displayWeekNumber:zr.bool,enableAccessibleFieldDOMStructure:zr.any,fixedWeekNumber:zr.number,format:zr.string,formatDensity:zr.oneOf(["dense","spacious"]),inputRef:J7,label:zr.node,loading:zr.bool,localeText:zr.object,maxDate:zr.object,minDate:zr.object,monthsPerRow:zr.oneOf([3,4]),name:zr.string,onAccept:zr.func,onChange:zr.func,onClose:zr.func,onError:zr.func,onMonthChange:zr.func,onOpen:zr.func,onSelectedSectionsChange:zr.func,onViewChange:zr.func,onYearChange:zr.func,open:zr.bool,openTo:zr.oneOf(["day","month","year"]),orientation:zr.oneOf(["landscape","portrait"]),readOnly:zr.bool,reduceAnimations:zr.bool,referenceDate:zr.object,renderLoading:zr.func,selectedSections:zr.oneOfType([zr.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),zr.number]),shouldDisableDate:zr.func,shouldDisableMonth:zr.func,shouldDisableYear:zr.func,showDaysOutsideCurrentMonth:zr.bool,slotProps:zr.object,slots:zr.object,sx:zr.oneOfType([zr.arrayOf(zr.oneOfType([zr.func,zr.object,zr.bool])),zr.func,zr.object]),timezone:zr.string,value:zr.object,view:zr.oneOf(["day","month","year"]),viewRenderers:zr.shape({day:zr.func,month:zr.func,year:zr.func}),views:zr.arrayOf(zr.oneOf(["day","month","year"]).isRequired),yearsPerRow:zr.oneOf([3,4])};const mfe=["desktopModeMediaQuery"],p2=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiDatePicker"}),{desktopModeMediaQuery:j=ole}=F,Y=hn(F,mfe);return K7(j,{defaultMatches:!0})?Ce.jsx(YO,Ge({ref:y},Y)):Ce.jsx(XO,Ge({ref:y},Y))});var ZO={exports:{}};(function(e,r){(function(y,F){e.exports=F()})(ky,function(){var y=1e3,F=6e4,j=36e5,Y="millisecond",D="second",O="minute",t="hour",l="day",S="week",i="month",C="quarter",w="year",v="date",m="Invalid Date",a=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,n=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var R=["th","st","nd","rd"],T=M%100;return"["+M+(R[(T-20)%10]||R[T]||R[0])+"]"}},o=function(M,R,T){var L=String(M);return!L||L.length>=R?M:""+Array(R+1-L.length).join(T)+M},h={s:o,z:function(M){var R=-M.utcOffset(),T=Math.abs(R),L=Math.floor(T/60),P=T%60;return(R<=0?"+":"-")+o(L,2,"0")+":"+o(P,2,"0")},m:function M(R,T){if(R.date()1)return M(k[0])}else{var I=R.name;u[I]=R,P=I}return!L&&P&&(f=P),P||!L&&f},g=function(M,R){if(p(M))return M.clone();var T=typeof R=="object"?R:{};return T.date=M,T.args=arguments,new x(T)},c=h;c.l=E,c.i=p,c.w=function(M,R){return g(M,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var x=function(){function M(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[b]=!0}var R=M.prototype;return R.parse=function(T){this.$d=function(L){var P=L.date,d=L.utc;if(P===null)return new Date(NaN);if(c.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var k=P.match(a);if(k){var I=k[2]-1||0,N=(k[7]||"0").substring(0,3);return d?new Date(Date.UTC(k[1],I,k[3]||1,k[4]||0,k[5]||0,k[6]||0,N)):new Date(k[1],I,k[3]||1,k[4]||0,k[5]||0,k[6]||0,N)}}return new Date(P)}(T),this.init()},R.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},R.$utils=function(){return c},R.isValid=function(){return this.$d.toString()!==m},R.isSame=function(T,L){var P=g(T);return this.startOf(L)<=P&&P<=this.endOf(L)},R.isAfter=function(T,L){return g(T)25){var S=D(this).startOf(F).add(1,F).date(l),i=D(this).endOf(y);if(S.isBefore(i))return 1}var C=D(this).startOf(F).date(l).startOf(y).subtract(1,"millisecond"),w=this.diff(C,y,!0);return w<0?D(this).startOf("week").week():Math.ceil(w)},O.weeks=function(t){return t===void 0&&(t=null),this.week(t)}}})})(KO);var xfe=KO.exports;const bfe=hh(xfe);var JO={exports:{}};(function(e,r){(function(y,F){e.exports=F()})(ky,function(){var y={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"},F=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,j=/\d\d/,Y=/\d\d?/,D=/\d*[^-_:/,()\s\d]+/,O={},t=function(m){return(m=+m)+(m>68?1900:2e3)},l=function(m){return function(a){this[m]=+a}},S=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(a){if(!a||a==="Z")return 0;var n=a.match(/([+-]|\d\d)/g),s=60*n[1]+(+n[2]||0);return s===0?0:n[0]==="+"?-s:s}(m)}],i=function(m){var a=O[m];return a&&(a.indexOf?a:a.s.concat(a.f))},C=function(m,a){var n,s=O.meridiem;if(s){for(var o=1;o<=24;o+=1)if(m.indexOf(s(o,0,a))>-1){n=o>12;break}}else n=m===(a?"pm":"PM");return n},w={A:[D,function(m){this.afternoon=C(m,!1)}],a:[D,function(m){this.afternoon=C(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[j,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[Y,l("seconds")],ss:[Y,l("seconds")],m:[Y,l("minutes")],mm:[Y,l("minutes")],H:[Y,l("hours")],h:[Y,l("hours")],HH:[Y,l("hours")],hh:[Y,l("hours")],D:[Y,l("day")],DD:[j,l("day")],Do:[D,function(m){var a=O.ordinal,n=m.match(/\d+/);if(this.day=n[0],a)for(var s=1;s<=31;s+=1)a(s).replace(/\[|\]/g,"")===m&&(this.day=s)}],M:[Y,l("month")],MM:[j,l("month")],MMM:[D,function(m){var a=i("months"),n=(i("monthsShort")||a.map(function(s){return s.slice(0,3)})).indexOf(m)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[D,function(m){var a=i("months").indexOf(m)+1;if(a<1)throw new Error;this.month=a%12||a}],Y:[/[+-]?\d+/,l("year")],YY:[j,function(m){this.year=t(m)}],YYYY:[/\d{4}/,l("year")],Z:S,ZZ:S};function v(m){var a,n;a=m,n=O&&O.formats;for(var s=(m=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,g,c){var x=c&&c.toUpperCase();return g||n[c]||y[c]||n[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,M,R){return M||R.slice(1)})})).match(F),o=s.length,h=0;h-1)return new Date((L==="X"?1e3:1)*T);var d=v(L)(T),k=d.year,I=d.month,N=d.day,B=d.hours,G=d.minutes,U=d.seconds,H=d.milliseconds,W=d.zone,V=new Date,$=N||(k||I?1:V.getDate()),Z=k||V.getFullYear(),q=0;k&&!I||(q=I>0?I-1:V.getMonth());var ae=B||0,ie=G||0,fe=U||0,Q=H||0;return W?new Date(Date.UTC(Z,q,$,ae,ie,fe,Q+60*W.offset*1e3)):P?new Date(Date.UTC(Z,q,$,ae,ie,fe,Q)):new Date(Z,q,$,ae,ie,fe,Q)}catch{return new Date("")}}(f,p,u),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),c&&f!=this.format(p)&&(this.$d=new Date("")),O={}}else if(p instanceof Array)for(var A=p.length,M=1;M<=A;M+=1){b[1]=p[M-1];var R=n.apply(this,b);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}M===A&&(this.$d=new Date(""))}else o.call(this,h)}}})})(JO);var wfe=JO.exports;const Tfe=hh(wfe);var QO={exports:{}};(function(e,r){(function(y,F){e.exports=F()})(ky,function(){var y={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"};return function(F,j,Y){var D=j.prototype,O=D.format;Y.en.formats=y,D.format=function(t){t===void 0&&(t="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,S=function(i,C){return i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,v,m){var a=m&&m.toUpperCase();return v||C[m]||y[m]||C[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n,s,o){return s||o.slice(1)})})}(t,l===void 0?{}:l);return O.call(this,S)}}})})(QO);var Sfe=QO.exports;const Cfe=hh(Sfe);var qO={exports:{}};(function(e,r){(function(y,F){e.exports=F()})(ky,function(){return function(y,F,j){F.prototype.isBetween=function(Y,D,O,t){var l=j(Y),S=j(D),i=(t=t||"()")[0]==="(",C=t[1]===")";return(i?this.isAfter(l,O):!this.isBefore(l,O))&&(C?this.isBefore(S,O):!this.isAfter(S,O))||(i?this.isBefore(l,O):!this.isAfter(l,O))&&(C?this.isAfter(S,O):!this.isBefore(S,O))}}})})(qO);var Mfe=qO.exports;const Afe=hh(Mfe);var eF={exports:{}};(function(e,r){(function(y,F){e.exports=F()})(ky,function(){return function(y,F){var j=F.prototype,Y=j.format;j.format=function(D){var O=this,t=this.$locale();if(!this.isValid())return Y.bind(this)(D);var l=this.$utils(),S=(D||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(i){switch(i){case"Q":return Math.ceil((O.$M+1)/3);case"Do":return t.ordinal(O.$D);case"gggg":return O.weekYear();case"GGGG":return O.isoWeekYear();case"wo":return t.ordinal(O.week(),"W");case"w":case"ww":return l.s(O.week(),i==="w"?1:2,"0");case"W":case"WW":return l.s(O.isoWeek(),i==="W"?1:2,"0");case"k":case"kk":return l.s(String(O.$H===0?24:O.$H),i==="k"?1:2,"0");case"X":return Math.floor(O.$d.getTime()/1e3);case"x":return O.$d.getTime();case"z":return"["+O.offsetName()+"]";case"zzz":return"["+O.offsetName("long")+"]";default:return i}});return Y.bind(this)(S)}}})})(eF);var Efe=eF.exports;const Pfe=hh(Efe);gs.extend(Cfe);gs.extend(bfe);gs.extend(Afe);gs.extend(Pfe);const Lfe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Ife={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},PC=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),cI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),Rfe=(e,r)=>r?(...y)=>e(...y).locale(r):e;class tF{constructor({locale:r,formats:y}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Lfe,this.setLocaleToValue=F=>{const j=this.getCurrentLocaleCode();return j===F.locale()?F:F.locale(j)},this.hasUTCPlugin=()=>typeof gs.utc<"u",this.hasTimezonePlugin=()=>typeof gs.tz<"u",this.isSame=(F,j,Y)=>{const D=this.setTimezone(j,this.getTimezone(F));return F.format(Y)===D.format(Y)},this.cleanTimezone=F=>{switch(F){case"default":return;case"system":return gs.tz.guess();default:return F}},this.createSystemDate=F=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const j=gs.tz.guess();return j!=="UTC"?gs.tz(F,j):gs(F)}return gs(F)},this.createUTCDate=F=>{if(!this.hasUTCPlugin())throw new Error(PC);return gs.utc(F)},this.createTZDate=(F,j)=>{if(!this.hasUTCPlugin())throw new Error(PC);if(!this.hasTimezonePlugin())throw new Error(cI);const Y=F!==void 0&&!F.endsWith("Z");return gs(F).tz(this.cleanTimezone(j),Y)},this.getLocaleFormats=()=>{const F=gs.Ls,j=this.locale||"en";let Y=F[j];return Y===void 0&&(Y=F.en),Y.formats},this.adjustOffset=F=>{if(!this.hasTimezonePlugin())return F;const j=this.getTimezone(F);if(j!=="UTC"){const Y=F.tz(this.cleanTimezone(j),!0);if(Y.$offset===(F.$offset??0))return F;F.$offset=Y.$offset}return F},this.date=(F,j="default")=>{if(F===null)return null;let Y;return j==="UTC"?Y=this.createUTCDate(F):j==="system"||j==="default"&&!this.hasTimezonePlugin()?Y=this.createSystemDate(F):Y=this.createTZDate(F,j),this.locale===void 0?Y:Y.locale(this.locale)},this.getInvalidDate=()=>gs(new Date("Invalid date")),this.getTimezone=F=>{var j;if(this.hasTimezonePlugin()){const Y=(j=F.$x)==null?void 0:j.$timezone;if(Y)return Y}return this.hasUTCPlugin()&&F.isUTC()?"UTC":"system"},this.setTimezone=(F,j)=>{if(this.getTimezone(F)===j)return F;if(j==="UTC"){if(!this.hasUTCPlugin())throw new Error(PC);return F.utc()}if(j==="system")return F.local();if(!this.hasTimezonePlugin()){if(j==="default")return F;throw new Error(cI)}return gs.tz(F,this.cleanTimezone(j))},this.toJsDate=F=>F.toDate(),this.parse=(F,j)=>F===""?null:this.dayjs(F,j,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=F=>{const j=this.getLocaleFormats(),Y=D=>D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(O,t,l)=>t||l.slice(1));return F.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(D,O,t)=>{const l=t&&t.toUpperCase();return O||j[t]||Y(j[l])})},this.isValid=F=>F==null?!1:F.isValid(),this.format=(F,j)=>this.formatByString(F,this.formats[j]),this.formatByString=(F,j)=>this.dayjs(F).format(j),this.formatNumber=F=>F,this.isEqual=(F,j)=>F===null&&j===null?!0:F===null||j===null?!1:F.toDate().getTime()===j.toDate().getTime(),this.isSameYear=(F,j)=>this.isSame(F,j,"YYYY"),this.isSameMonth=(F,j)=>this.isSame(F,j,"YYYY-MM"),this.isSameDay=(F,j)=>this.isSame(F,j,"YYYY-MM-DD"),this.isSameHour=(F,j)=>F.isSame(j,"hour"),this.isAfter=(F,j)=>F>j,this.isAfterYear=(F,j)=>this.hasUTCPlugin()?!this.isSameYear(F,j)&&F.utc()>j.utc():F.isAfter(j,"year"),this.isAfterDay=(F,j)=>this.hasUTCPlugin()?!this.isSameDay(F,j)&&F.utc()>j.utc():F.isAfter(j,"day"),this.isBefore=(F,j)=>Fthis.hasUTCPlugin()?!this.isSameYear(F,j)&&F.utc()this.hasUTCPlugin()?!this.isSameDay(F,j)&&F.utc()F>=j&&F<=Y,this.startOfYear=F=>this.adjustOffset(F.startOf("year")),this.startOfMonth=F=>this.adjustOffset(F.startOf("month")),this.startOfWeek=F=>this.adjustOffset(F.startOf("week")),this.startOfDay=F=>this.adjustOffset(F.startOf("day")),this.endOfYear=F=>this.adjustOffset(F.endOf("year")),this.endOfMonth=F=>this.adjustOffset(F.endOf("month")),this.endOfWeek=F=>this.adjustOffset(F.endOf("week")),this.endOfDay=F=>this.adjustOffset(F.endOf("day")),this.addYears=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"year"):F.add(j,"year")),this.addMonths=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"month"):F.add(j,"month")),this.addWeeks=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"week"):F.add(j,"week")),this.addDays=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"day"):F.add(j,"day")),this.addHours=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"hour"):F.add(j,"hour")),this.addMinutes=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"minute"):F.add(j,"minute")),this.addSeconds=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"second"):F.add(j,"second")),this.getYear=F=>F.year(),this.getMonth=F=>F.month(),this.getDate=F=>F.date(),this.getHours=F=>F.hour(),this.getMinutes=F=>F.minute(),this.getSeconds=F=>F.second(),this.getMilliseconds=F=>F.millisecond(),this.setYear=(F,j)=>this.adjustOffset(F.set("year",j)),this.setMonth=(F,j)=>this.adjustOffset(F.set("month",j)),this.setDate=(F,j)=>this.adjustOffset(F.set("date",j)),this.setHours=(F,j)=>this.adjustOffset(F.set("hour",j)),this.setMinutes=(F,j)=>this.adjustOffset(F.set("minute",j)),this.setSeconds=(F,j)=>this.adjustOffset(F.set("second",j)),this.setMilliseconds=(F,j)=>this.adjustOffset(F.set("millisecond",j)),this.getDaysInMonth=F=>F.daysInMonth(),this.getWeekArray=F=>{const j=this.setLocaleToValue(F),Y=this.startOfWeek(this.startOfMonth(j)),D=this.endOfWeek(this.endOfMonth(j));let O=0,t=Y;const l=[];for(;tF.week(),this.getYearRange=([F,j])=>{const Y=this.startOfYear(F),D=this.endOfYear(j),O=[];let t=Y;for(;this.isBefore(t,D);)O.push(t),t=this.addYears(t,1);return O},this.dayjs=Rfe(gs,r),this.locale=r,this.formats=Ge({},Ife,y),gs.extend(Tfe)}getDayOfWeek(r){return r.day()+1}}/** +`));const r=Oe.useMemo(()=>Ge({},oae,e.localeText),[e.localeText]);return Oe.useMemo(()=>Ge({},e,{localeText:r}),[e,r])},Bo=()=>Tg().utils,Ib=()=>Tg().defaultDates,DT=e=>{const r=Bo(),x=Oe.useRef();return x.current===void 0&&(x.current=r.date(void 0,e)),x.current},vv=()=>Tg().localeText,sae=ci(Ce.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),lae=ci(Ce.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),uae=ci(Ce.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),cae=ci(Ce.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");ci(Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Ce.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ci(Ce.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");ci(Ce.jsxs(Oe.Fragment,{children:[Ce.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Ce.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const fae=ci(Ce.jsx("path",{d:"M19 6.41 17.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"}),"Clear");function dae(e){return ka("MuiPickersArrowSwitcher",e)}Ca("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const hae=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],vae=["ownerState"],pae=["ownerState"],gae=ln("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex"}),mae=ln("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,r)=>r.spacer})(({theme:e})=>({width:e.spacing(3)})),jL=ln(dl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,r)=>r.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),yae=e=>{const{classes:r}=e;return qn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},dae,r)},xae=Oe.forwardRef(function(r,x){const F=_l(),j=zo({props:r,name:"MuiPickersArrowSwitcher"}),{children:Y,className:D,slots:O,slotProps:t,isNextDisabled:l,isNextHidden:S,onGoToNext:i,nextLabel:C,isPreviousDisabled:w,isPreviousHidden:v,onGoToPrevious:m,previousLabel:a,labelId:n}=j,s=hn(j,hae),o=j,h=yae(o),f={isDisabled:l,isHidden:S,goTo:i,label:C},u={isDisabled:w,isHidden:v,goTo:m,label:a},b=(O==null?void 0:O.previousIconButton)??jL,p=hi({elementType:b,externalSlotProps:t==null?void 0:t.previousIconButton,additionalProps:{size:"medium",title:u.label,"aria-label":u.label,disabled:u.isDisabled,edge:"end",onClick:u.goTo},ownerState:Ge({},o,{hidden:u.isHidden}),className:Ln(h.button,h.previousIconButton)}),E=(O==null?void 0:O.nextIconButton)??jL,g=hi({elementType:E,externalSlotProps:t==null?void 0:t.nextIconButton,additionalProps:{size:"medium",title:f.label,"aria-label":f.label,disabled:f.isDisabled,edge:"start",onClick:f.goTo},ownerState:Ge({},o,{hidden:f.isHidden}),className:Ln(h.button,h.nextIconButton)}),c=(O==null?void 0:O.leftArrowIcon)??lae,y=hi({elementType:c,externalSlotProps:t==null?void 0:t.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:o,className:h.leftArrowIcon}),A=hn(y,vae),M=(O==null?void 0:O.rightArrowIcon)??uae,R=hi({elementType:M,externalSlotProps:t==null?void 0:t.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:o,className:h.rightArrowIcon}),T=hn(R,pae);return Ce.jsxs(gae,Ge({ref:x,className:Ln(h.root,D),ownerState:o},s,{children:[Ce.jsx(b,Ge({},p,{children:F?Ce.jsx(M,Ge({},T)):Ce.jsx(c,Ge({},A))})),Y?Ce.jsx(ea,{variant:"subtitle1",component:"span",id:n,children:Y}):Ce.jsx(mae,{className:h.spacer,ownerState:o}),Ce.jsx(E,Ge({},g,{children:F?Ce.jsx(c,Ge({},A)):Ce.jsx(M,Ge({},T))}))]}))}),D1=(e,r)=>e.length!==r.length?!1:r.every(x=>e.includes(x)),bae=({openTo:e,defaultOpenTo:r,views:x,defaultViews:F})=>{const j=x??F;let Y;if(e!=null)Y=e;else if(j.includes(r))Y=r;else if(j.length>0)Y=j[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:j,openTo:Y}},wae=["hours","minutes","seconds"],Tae=e=>wae.includes(e),GL=(e,r)=>r.getHours(e)*3600+r.getMinutes(e)*60+r.getSeconds(e),Sae=(e,r)=>(x,F)=>e?r.isAfter(x,F):GL(x,r)>GL(F,r);function q9({onChange:e,onViewChange:r,openTo:x,view:F,views:j,autoFocus:Y,focusedView:D,onFocusedViewChange:O}){const t=Oe.useRef(x),l=Oe.useRef(j),S=Oe.useRef(j.includes(x)?x:j[0]),[i,C]=Ol({name:"useViews",state:"view",controlled:F,default:S.current}),w=Oe.useRef(Y?i:null),[v,m]=Ol({name:"useViews",state:"focusedView",controlled:D,default:w.current});Oe.useEffect(()=>{(t.current&&t.current!==x||l.current&&l.current.some(b=>!j.includes(b)))&&(C(j.includes(x)?x:j[0]),l.current=j,t.current=x)},[x,C,i,j]);const a=j.indexOf(i),n=j[a-1]??null,s=j[a+1]??null,o=pa((b,p)=>{m(p?b:E=>b===E?null:E),O==null||O(b,p)}),h=pa(b=>{o(b,!0),b!==i&&(C(b),r&&r(b))}),f=pa(()=>{s&&h(s)}),u=pa((b,p,E)=>{const g=p==="finish",c=E?j.indexOf(E){const Y=j.date(void 0,F),D=j.startOfMonth(r&&j.isBefore(Y,x)?Y:x);return!j.isAfter(D,e)},[r,x,e,j,F])}function Mae(e,{disablePast:r,minDate:x,timezone:F}){const j=Bo();return Oe.useMemo(()=>{const Y=j.date(void 0,F),D=j.startOfMonth(r&&j.isAfter(Y,x)?Y:x);return!j.isBefore(D,e)},[r,x,e,j,F])}const qx=36,OT=2,FT=320,Aae=280,b5=336,Eae=ln("div")({overflow:"hidden",width:FT,maxHeight:b5,display:"flex",flexDirection:"column",margin:"0 auto"}),s2=(e,r,x)=>{let F=r;return F=e.setHours(F,e.getHours(x)),F=e.setMinutes(F,e.getMinutes(x)),F=e.setSeconds(F,e.getSeconds(x)),F},Tx=({date:e,disableFuture:r,disablePast:x,maxDate:F,minDate:j,isDateDisabled:Y,utils:D,timezone:O})=>{const t=s2(D,D.date(void 0,O),e);x&&D.isBefore(j,t)&&(j=t),r&&D.isAfter(F,t)&&(F=t);let l=e,S=e;for(D.isBefore(e,j)&&(l=j,S=null),D.isAfter(e,F)&&(S&&(S=F),l=null);l||S;){if(l&&D.isAfter(l,F)&&(l=null),S&&D.isBefore(S,j)&&(S=null),l){if(!Y(l))return l;l=D.addDays(l,1)}if(S){if(!Y(S))return S;S=D.addDays(S,-1)}}return null},Pae=(e,r)=>r==null||!e.isValid(r)?null:r,If=(e,r,x)=>r==null||!e.isValid(r)?x:r,Lae=(e,r,x)=>!e.isValid(r)&&r!=null&&!e.isValid(x)&&x!=null?!0:e.isEqual(r,x),w5=(e,r)=>{const F=[e.startOfYear(r)];for(;F.length<12;){const j=F[F.length-1];F.push(e.addMonths(j,1))}return F},eO=(e,r,x)=>x==="date"?e.startOfDay(e.date(void 0,r)):e.date(void 0,r),Iae=["year","month","day"],WL=e=>Iae.includes(e),T5=(e,{format:r,views:x},F)=>{if(r!=null)return r;const j=e.formats;return D1(x,["year"])?j.year:D1(x,["month"])?j.month:D1(x,["day"])?j.dayOfMonth:D1(x,["month","year"])?`${j.month} ${j.year}`:D1(x,["day","month"])?`${j.month} ${j.dayOfMonth}`:F?/en/.test(e.getCurrentLocaleCode())?j.normalDateWithWeekday:j.normalDate:j.keyboardDate},Rae=(e,r)=>{const x=e.startOfWeek(r);return[0,1,2,3,4,5,6].map(F=>e.addDays(x,F))},S5=({timezone:e,value:r,defaultValue:x,onChange:F,valueManager:j})=>{const Y=Bo(),D=Oe.useRef(x),O=r??D.current??j.emptyValue,t=Oe.useMemo(()=>j.getTimezone(Y,O),[Y,j,O]),l=pa(w=>t==null?w:j.setTimezone(Y,t,w)),S=e??t??"default",i=Oe.useMemo(()=>j.setTimezone(Y,S,O),[j,Y,S,O]),C=pa((w,...v)=>{const m=l(w);F==null||F(m,...v)});return{value:i,handleValueChange:C,timezone:S}},C5=({name:e,timezone:r,value:x,defaultValue:F,onChange:j,valueManager:Y})=>{const[D,O]=Ol({name:e,state:"value",controlled:x,default:F??Y.emptyValue}),t=pa((l,...S)=>{O(l),j==null||j(l,...S)});return S5({timezone:r,value:D,defaultValue:void 0,onChange:t,valueManager:Y})},nh={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},kae=e=>Math.max(...e.map(r=>nh[r.type]??1)),O1=(e,r,x)=>{if(r===nh.year)return e.startOfYear(x);if(r===nh.month)return e.startOfMonth(x);if(r===nh.day)return e.startOfDay(x);let F=x;return r{let Y=j?j():O1(r,x,eO(r,F));e.minDate!=null&&r.isAfterDay(e.minDate,Y)&&(Y=O1(r,x,e.minDate)),e.maxDate!=null&&r.isBeforeDay(e.maxDate,Y)&&(Y=O1(r,x,e.maxDate));const D=Sae(e.disableIgnoringDatePartForTimeValidation??!1,r);return e.minTime!=null&&D(e.minTime,Y)&&(Y=O1(r,x,e.disableIgnoringDatePartForTimeValidation?e.minTime:s2(r,Y,e.minTime))),e.maxTime!=null&&D(Y,e.maxTime)&&(Y=O1(r,x,e.disableIgnoringDatePartForTimeValidation?e.maxTime:s2(r,Y,e.maxTime))),Y},tO=(e,r)=>{const x=e.formatTokenMap[r];if(x==null)throw new Error([`MUI X: The token "${r}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof x=="string"?{type:x,contentType:x==="meridiem"?"letter":"digit",maxLength:void 0}:{type:x.sectionType,contentType:x.contentType,maxLength:x.maxLength}},Oae=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},_T=(e,r,x)=>{const F=[],j=e.date(void 0,r),Y=e.startOfWeek(j),D=e.endOfWeek(j);let O=Y;for(;e.isBefore(O,D);)F.push(O),O=e.addDays(O,1);return F.map(t=>e.formatByString(t,x))},rO=(e,r,x,F)=>{switch(x){case"month":return w5(e,e.date(void 0,r)).map(j=>e.formatByString(j,F));case"weekDay":return _T(e,r,F);case"meridiem":{const j=e.date(void 0,r);return[e.startOfDay(j),e.endOfDay(j)].map(Y=>e.formatByString(Y,F))}default:return[]}},$L="s",Fae=["0","1","2","3","4","5","6","7","8","9"],_ae=e=>{const r=e.date(void 0);return e.formatByString(e.setSeconds(r,0),$L)==="0"?Fae:Array.from({length:10}).map((F,j)=>e.formatByString(e.setSeconds(r,j),$L))},hg=(e,r)=>{if(r[0]==="0")return e;const x=[];let F="";for(let j=0;j-1&&(x.push(Y.toString()),F="")}return x.join("")},M5=(e,r)=>r[0]==="0"?e:e.split("").map(x=>r[Number(x)]).join(""),YL=(e,r)=>{const x=hg(e,r);return x!==" "&&!Number.isNaN(Number(x))},nO=(e,r)=>{let x=e;for(x=Number(x).toString();x.length{if(j.type==="day"&&j.contentType==="digit-with-letter"){const D=e.setDate(x.longestMonth,r);return e.formatByString(D,j.format)}let Y=r.toString();return j.hasLeadingZerosInInput&&(Y=nO(Y,j.maxLength)),M5(Y,F)},zae=(e,r,x,F,j,Y,D,O)=>{const t=Oae(F),l=F==="Home",S=F==="End",i=x.value===""||l||S,C=()=>{const v=j[x.type]({currentDate:D,format:x.format,contentType:x.contentType}),m=o=>aO(e,o,v,Y,x),a=x.type==="minutes"&&(O!=null&&O.minutesStep)?O.minutesStep:1;let s=parseInt(hg(x.value,Y),10)+t*a;if(i){if(x.type==="year"&&!S&&!l)return e.formatByString(e.date(void 0,r),x.format);t>0||l?s=v.minimum:s=v.maximum}return s%a!==0&&((t<0||l)&&(s+=a-(a+s)%a),(t>0||S)&&(s-=s%a)),s>v.maximum?m(v.minimum+(s-v.maximum-1)%(v.maximum-v.minimum+1)):s{const v=rO(e,r,x.type,x.format);if(v.length===0)return x.value;if(i)return t>0||l?v[0]:v[v.length-1];const n=((v.indexOf(x.value)+t)%v.length+v.length)%v.length;return v[n]};return x.contentType==="digit"||x.contentType==="digit-with-letter"?C():w()},A5=(e,r,x)=>{let F=e.value||e.placeholder;const j=r==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return r==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(F=Number(hg(F,x)).toString()),["input-rtl","input-ltr"].includes(r)&&e.contentType==="digit"&&!j&&F.length===1&&(F=`${F}‎`),r==="input-rtl"&&(F=`⁨${F}⁩`),F},XL=(e,r,x,F)=>e.formatByString(e.parse(r,x),F),iO=(e,r,x)=>e.formatByString(e.date(void 0,r),x).length===4,oO=(e,r,x,F,j)=>{if(x!=="digit")return!1;const Y=e.date(void 0,r);switch(F){case"year":return iO(e,r,j)?e.formatByString(e.setYear(Y,1),j)==="0001":e.formatByString(e.setYear(Y,2001),j)==="01";case"month":return e.formatByString(e.startOfYear(Y),j).length>1;case"day":return e.formatByString(e.startOfMonth(Y),j).length>1;case"weekDay":return e.formatByString(e.startOfWeek(Y),j).length>1;case"hours":return e.formatByString(e.setHours(Y,1),j).length>1;case"minutes":return e.formatByString(e.setMinutes(Y,1),j).length>1;case"seconds":return e.formatByString(e.setSeconds(Y,1),j).length>1;default:throw new Error("Invalid section type")}},Bae=(e,r,x)=>{const F=r.some(t=>t.type==="day"),j=[],Y=[];for(let t=0;te.map(r=>`${r.startSeparator}${r.value||r.placeholder}${r.endSeparator}`).join(""),Uae=(e,r,x)=>{const j=e.map(Y=>{const D=A5(Y,x?"input-rtl":"input-ltr",r);return`${Y.startSeparator}${D}${Y.endSeparator}`}).join("");return x?`⁦${j}⁩`:j},Hae=(e,r,x)=>{const F=e.date(void 0,x),j=e.endOfYear(F),Y=e.endOfDay(F),{maxDaysInMonth:D,longestMonth:O}=w5(e,F).reduce((t,l)=>{const S=e.getDaysInMonth(l);return S>t.maxDaysInMonth?{maxDaysInMonth:S,longestMonth:l}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:iO(e,x,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(j)+1}),day:({currentDate:t})=>({minimum:1,maximum:t!=null&&e.isValid(t)?e.getDaysInMonth(t):D,longestMonth:O}),weekDay:({format:t,contentType:l})=>{if(l==="digit"){const S=_T(e,x,t).map(Number);return{minimum:Math.min(...S),maximum:Math.max(...S)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const l=e.getHours(Y);return hg(e.formatByString(e.endOfDay(F),t),r)!==l.toString()?{minimum:1,maximum:Number(hg(e.formatByString(e.startOfDay(F),t),r))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(Y)}),seconds:()=>({minimum:0,maximum:e.getSeconds(Y)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Vae=(e,r,x,F,j)=>{switch(x.type){case"year":return e.setYear(j,e.getYear(F));case"month":return e.setMonth(j,e.getMonth(F));case"weekDay":{const Y=_T(e,r,x.format),D=e.formatByString(F,x.format),O=Y.indexOf(D),l=Y.indexOf(x.value)-O;return e.addDays(F,l)}case"day":return e.setDate(j,e.getDate(F));case"meridiem":{const Y=e.getHours(F)<12,D=e.getHours(j);return Y&&D>=12?e.addHours(j,-12):!Y&&D<12?e.addHours(j,12):j}case"hours":return e.setHours(j,e.getHours(F));case"minutes":return e.setMinutes(j,e.getMinutes(F));case"seconds":return e.setSeconds(j,e.getSeconds(F));default:return j}},ZL={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},KL=(e,r,x,F,j,Y)=>[...F].sort((D,O)=>ZL[D.type]-ZL[O.type]).reduce((D,O)=>!Y||O.modified?Vae(e,r,O,x,D):D,j),jae=()=>navigator.userAgent.toLowerCase().includes("android"),Gae=(e,r)=>{const x={};if(!r)return e.forEach((t,l)=>{const S=l===0?null:l-1,i=l===e.length-1?null:l+1;x[l]={leftIndex:S,rightIndex:i}}),{neighbors:x,startIndex:0,endIndex:e.length-1};const F={},j={};let Y=0,D=0,O=e.length-1;for(;O>=0;){D=e.findIndex((t,l)=>{var S;return l>=Y&&((S=t.endSeparator)==null?void 0:S.includes(" "))&&t.endSeparator!==" / "}),D===-1&&(D=e.length-1);for(let t=D;t>=Y;t-=1)j[t]=O,F[O]=t,O-=1;Y=D+1}return e.forEach((t,l)=>{const S=j[l],i=S===0?null:F[S-1],C=S===e.length-1?null:F[S+1];x[l]={leftIndex:i,rightIndex:C}}),{neighbors:x,startIndex:F[0],endIndex:F[e.length-1]}},q4=(e,r)=>e==null?null:e==="all"?"all":typeof e=="string"?r.findIndex(x=>x.type===e):e,Wae=(e,r)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return r.format(r.setMonth(r.date(),Number(e.value)-1),"month");const x=r.parse(e.value,e.format);return x?r.format(x,"month"):void 0}case"day":return e.contentType==="digit"?r.format(r.setDate(r.startOfYear(r.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},$ae=(e,r)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const x=r.parse(`01:00 ${e.value}`,`${r.formats.hours12h}:${r.formats.minutes} ${e.format}`);return x?r.getHours(x)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const x=r.parse(e.value,e.format);return x?r.getMonth(x)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},Yae=["value","referenceDate"],cv={emptyValue:null,getTodayValue:eO,getInitialReferenceValue:e=>{let{value:r,referenceDate:x}=e,F=hn(e,Yae);return r!=null&&F.utils.isValid(r)?r:x??Dae(F)},cleanValue:Pae,areValuesEqual:Lae,isSameError:(e,r)=>e===r,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,r)=>r==null||!e.isValid(r)?null:e.getTimezone(r),setTimezone:(e,r,x)=>x==null?null:e.setTimezone(x,r)},Xae={updateReferenceValue:(e,r,x)=>r==null||!e.isValid(r)?x:r,getSectionsFromValue:(e,r,x,F)=>!e.isValid(r)&&!!x?x:F(r),getV7HiddenInputValueFromSections:Nae,getV6InputValueFromSections:Uae,getActiveDateManager:(e,r)=>({date:r.value,referenceDate:r.referenceValue,getSections:x=>x,getNewValuesFromNewActiveDate:x=>({value:x,referenceValue:x==null||!e.isValid(x)?r.referenceValue:x})}),parseValueStr:(e,r,x)=>x(e.trim(),r)};function Zae(e){return ka("MuiPickersDay",e)}const L0=Ca("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Kae=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Jae=e=>{const{selected:r,disableMargin:x,disableHighlightToday:F,today:j,disabled:Y,outsideCurrentMonth:D,showDaysOutsideCurrentMonth:O,classes:t}=e,l=D&&!O;return qn({root:["root",r&&!l&&"selected",Y&&"disabled",!x&&"dayWithMargin",!F&&j&&"today",D&&O&&"dayOutsideMonth",l&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Zae,t)},sO=({theme:e})=>Ge({},e.typography.caption,{width:qx,height:qx,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sc(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Sc(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${L0.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${L0.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${L0.disabled}:not(.${L0.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${L0.disabled}&.${L0.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${OT}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${L0.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),lO=(e,r)=>{const{ownerState:x}=e;return[r.root,!x.disableMargin&&r.dayWithMargin,!x.disableHighlightToday&&x.today&&r.today,!x.outsideCurrentMonth&&x.showDaysOutsideCurrentMonth&&r.dayOutsideMonth,x.outsideCurrentMonth&&!x.showDaysOutsideCurrentMonth&&r.hiddenDaySpacingFiller]},Qae=ln(Ef,{name:"MuiPickersDay",slot:"Root",overridesResolver:lO})(sO),qae=ln("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:lO})(({theme:e})=>Ge({},sO({theme:e}),{opacity:0,pointerEvents:"none"})),F1=()=>{},eie=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersDay"}),{autoFocus:j=!1,className:Y,day:D,disabled:O=!1,disableHighlightToday:t=!1,disableMargin:l=!1,isAnimating:S,onClick:i,onDaySelect:C,onFocus:w=F1,onBlur:v=F1,onKeyDown:m=F1,onMouseDown:a=F1,onMouseEnter:n=F1,outsideCurrentMonth:s,selected:o=!1,showDaysOutsideCurrentMonth:h=!1,children:f,today:u=!1}=F,b=hn(F,Kae),p=Ge({},F,{autoFocus:j,disabled:O,disableHighlightToday:t,disableMargin:l,selected:o,showDaysOutsideCurrentMonth:h,today:u}),E=Jae(p),g=Bo(),c=Oe.useRef(null),y=vi(c,x);Gi(()=>{j&&!O&&!S&&!s&&c.current.focus()},[j,O,S,s]);const A=R=>{a(R),s&&R.preventDefault()},M=R=>{O||C(D),s&&R.currentTarget.focus(),i&&i(R)};return s&&!h?Ce.jsx(qae,{className:Ln(E.root,E.hiddenDaySpacingFiller,Y),ownerState:p,role:b.role}):Ce.jsx(Qae,Ge({className:Ln(E.root,Y),ref:y,centerRipple:!0,disabled:O,tabIndex:o?0:-1,onKeyDown:R=>m(R,D),onFocus:R=>w(R,D),onBlur:R=>v(R,D),onMouseEnter:R=>n(R,D),onClick:M,onMouseDown:A},b,{ownerState:p,children:f||g.format(D,"dayOfMonth")}))}),tie=Oe.memo(eie);function uO(e,r,x,F){const{value:j,onError:Y}=e,D=Tg(),O=Oe.useRef(F),t=r({adapter:D,value:j,props:e});return Oe.useEffect(()=>{Y&&!x(t,O.current)&&Y(t,j),O.current=t},[x,Y,O,t,j]),t}const rie=({utils:e,format:r})=>{let x=10,F=r,j=e.expandFormat(r);for(;j!==F;)if(F=j,j=e.expandFormat(F),x-=1,x<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return j},nie=({utils:e,expandedFormat:r})=>{const x=[],{start:F,end:j}=e.escapedCharacters,Y=new RegExp(`(\\${F}[^\\${j}]*\\${j})+`,"g");let D=null;for(;D=Y.exec(r);)x.push({start:D.index,end:Y.lastIndex-1});return x},aie=(e,r,x,F,j)=>{switch(F.type){case"year":return x.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,r),j).length,format:j});case"month":return x.fieldMonthPlaceholder({contentType:F.contentType,format:j});case"day":return x.fieldDayPlaceholder({format:j});case"weekDay":return x.fieldWeekDayPlaceholder({contentType:F.contentType,format:j});case"hours":return x.fieldHoursPlaceholder({format:j});case"minutes":return x.fieldMinutesPlaceholder({format:j});case"seconds":return x.fieldSecondsPlaceholder({format:j});case"meridiem":return x.fieldMeridiemPlaceholder({format:j});default:return j}},iie=({utils:e,timezone:r,date:x,shouldRespectLeadingZeros:F,localeText:j,localizedDigits:Y,now:D,token:O,startSeparator:t})=>{if(O==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=tO(e,O),S=oO(e,r,l.contentType,l.type,O),i=F?S:l.contentType==="digit",C=x!=null&&e.isValid(x);let w=C?e.formatByString(x,O):"",v=null;if(i)if(S)v=w===""?e.formatByString(D,O).length:w.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${O} should have a 'maxDigitNumber' property on it's adapter`);v=l.maxLength,C&&(w=M5(nO(hg(w,Y),v),Y))}return Ge({},l,{format:O,maxLength:v,value:w,placeholder:aie(e,r,j,l,O),hasLeadingZerosInFormat:S,hasLeadingZerosInInput:i,startSeparator:t,endSeparator:"",modified:!1})},oie=e=>{var w;const{utils:r,expandedFormat:x,escapedParts:F}=e,j=r.date(void 0),Y=[];let D="";const O=Object.keys(r.formatTokenMap).sort((v,m)=>m.length-v.length),t=/^([a-zA-Z]+)/,l=new RegExp(`^(${O.join("|")})*$`),S=new RegExp(`^(${O.join("|")})`),i=v=>F.find(m=>m.start<=v&&m.end>=v);let C=0;for(;C0;){const s=S.exec(n)[1];n=n.slice(s.length),Y.push(iie(Ge({},e,{now:j,token:s,startSeparator:D}))),D=""}C+=a.length}else{const n=x[C];m&&(v==null?void 0:v.start)===C||(v==null?void 0:v.end)===C||(Y.length===0?D+=n:Y[Y.length-1].endSeparator+=n),C+=1}}return Y.length===0&&D.length>0&&Y.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:D,endSeparator:"",modified:!1}),Y},sie=({isRtl:e,formatDensity:r,sections:x})=>x.map(F=>{const j=Y=>{let D=Y;return e&&D!==null&&D.includes(" ")&&(D=`⁩${D}⁦`),r==="spacious"&&["/",".","-"].includes(D)&&(D=` ${D} `),D};return F.startSeparator=j(F.startSeparator),F.endSeparator=j(F.endSeparator),F}),JL=e=>{let r=rie(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(r=r.split(" ").reverse().join(" "));const x=nie(Ge({},e,{expandedFormat:r})),F=oie(Ge({},e,{expandedFormat:r,escapedParts:x}));return sie(Ge({},e,{sections:F}))},lie=e=>{const r=Bo(),x=vv(),F=Tg(),j=_l(),{valueManager:Y,fieldValueManager:D,valueType:O,validator:t,internalProps:l,internalProps:{value:S,defaultValue:i,referenceDate:C,onChange:w,format:v,formatDensity:m="dense",selectedSections:a,onSelectedSectionsChange:n,shouldRespectLeadingZeros:s=!1,timezone:o,enableAccessibleFieldDOMStructure:h=!1}}=e,{timezone:f,value:u,handleValueChange:b}=S5({timezone:o,value:S,defaultValue:i,onChange:w,valueManager:Y}),p=Oe.useMemo(()=>_ae(r),[r]),E=Oe.useMemo(()=>Hae(r,p,f),[r,p,f]),g=Oe.useCallback((U,H=null)=>D.getSectionsFromValue(r,U,H,W=>JL({utils:r,timezone:f,localeText:x,localizedDigits:p,format:v,date:W,formatDensity:m,shouldRespectLeadingZeros:s,enableAccessibleFieldDOMStructure:h,isRtl:j})),[D,v,x,p,j,s,r,m,f,h]),[c,y]=Oe.useState(()=>{const U=g(u),H={sections:U,value:u,referenceValue:Y.emptyValue,tempValueStrAndroid:null},W=kae(U),V=Y.getInitialReferenceValue({referenceDate:C,value:u,utils:r,props:l,granularity:W,timezone:f});return Ge({},H,{referenceValue:V})}),[A,M]=Ol({controlled:a,default:null,name:"useField",state:"selectedSections"}),R=U=>{M(U),n==null||n(U)},T=Oe.useMemo(()=>q4(A,c.sections),[A,c.sections]),L=T==="all"?0:T,P=({value:U,referenceValue:H,sections:W})=>{if(y($=>Ge({},$,{sections:W,value:U,referenceValue:H,tempValueStrAndroid:null})),Y.areValuesEqual(r,c.value,U))return;const V={validationError:t({adapter:F,value:U,props:Ge({},l,{value:U,timezone:f})})};b(U,V)},d=(U,H)=>{const W=[...c.sections];return W[U]=Ge({},W[U],{value:H,modified:!0}),W},k=()=>{P({value:Y.emptyValue,referenceValue:c.referenceValue,sections:g(Y.emptyValue)})},I=()=>{if(L==null)return;const U=c.sections[L],H=D.getActiveDateManager(r,c,U),V=H.getSections(c.sections).filter(ae=>ae.value!=="").length===(U.value===""?0:1),$=d(L,""),Z=V?null:r.getInvalidDate(),q=H.getNewValuesFromNewActiveDate(Z);P(Ge({},q,{sections:$}))},N=U=>{const H=($,Z)=>{const q=r.parse($,v);if(q==null||!r.isValid(q))return null;const ae=JL({utils:r,timezone:f,localeText:x,localizedDigits:p,format:v,date:q,formatDensity:m,shouldRespectLeadingZeros:s,enableAccessibleFieldDOMStructure:h,isRtl:j});return KL(r,f,q,ae,Z,!1)},W=D.parseValueStr(U,c.referenceValue,H),V=D.updateReferenceValue(r,W,c.referenceValue);P({value:W,referenceValue:V,sections:g(W,c.sections)})},B=({activeSection:U,newSectionValue:H,shouldGoToNextSection:W})=>{W&&LGe({},fe,ae,{sections:$,tempValueStrAndroid:null}))},G=U=>y(H=>Ge({},H,{tempValueStrAndroid:U}));return Oe.useEffect(()=>{const U=g(c.value);y(H=>Ge({},H,{sections:U}))},[v,r.locale,j]),Oe.useEffect(()=>{let U;Y.areValuesEqual(r,c.value,u)?U=Y.getTimezone(r,c.value)!==Y.getTimezone(r,u):U=!0,U&&y(H=>Ge({},H,{value:u,referenceValue:D.updateReferenceValue(r,u,H.referenceValue),sections:g(u)}))},[u]),{state:c,activeSectionIndex:L,parsedSelectedSections:T,setSelectedSections:R,clearValue:k,clearActiveSection:I,updateSectionValue:B,updateValueFromValueStr:N,setTempAndroidValueStr:G,getSectionsFromValue:g,sectionsValueBoundaries:E,localizedDigits:p,timezone:f}},uie=5e3,om=e=>e.saveQuery!=null,cie=({sections:e,updateSectionValue:r,sectionsValueBoundaries:x,localizedDigits:F,setTempAndroidValueStr:j,timezone:Y})=>{const D=Bo(),[O,t]=Oe.useState(null),l=pa(()=>t(null));Oe.useEffect(()=>{var v;O!=null&&((v=e[O.sectionIndex])==null?void 0:v.type)!==O.sectionType&&l()},[e,O,l]),Oe.useEffect(()=>{if(O!=null){const v=setTimeout(()=>l(),uie);return()=>{clearTimeout(v)}}return()=>{}},[O,l]);const S=({keyPressed:v,sectionIndex:m},a,n)=>{const s=v.toLowerCase(),o=e[m];if(O!=null&&(!n||n(O.value))&&O.sectionIndex===m){const f=`${O.value}${s}`,u=a(f,o);if(!om(u))return t({sectionIndex:m,value:f,sectionType:o.type}),u}const h=a(s,o);return om(h)&&!h.saveQuery?(l(),null):(t({sectionIndex:m,value:s,sectionType:o.type}),om(h)?null:h)},i=v=>{const m=(s,o,h)=>{const f=o.filter(u=>u.toLowerCase().startsWith(h));return f.length===0?{saveQuery:!1}:{sectionValue:f[0],shouldGoToNextSection:f.length===1}},a=(s,o,h,f)=>{const u=b=>rO(D,Y,o.type,b);if(o.contentType==="letter")return m(o.format,u(o.format),s);if(h&&f!=null&&tO(D,h).contentType==="letter"){const b=u(h),p=m(h,b,s);return om(p)?{saveQuery:!1}:Ge({},p,{sectionValue:f(p.sectionValue,b)})}return{saveQuery:!1}};return S(v,(s,o)=>{switch(o.type){case"month":{const h=f=>XL(D,f,D.formats.month,o.format);return a(s,o,D.formats.month,h)}case"weekDay":{const h=(f,u)=>u.indexOf(f).toString();return a(s,o,D.formats.weekday,h)}case"meridiem":return a(s,o);default:return{saveQuery:!1}}})},C=v=>{const m=(n,s)=>{const o=hg(n,F),h=Number(o),f=x[s.type]({currentDate:null,format:s.format,contentType:s.contentType});if(h>f.maximum)return{saveQuery:!1};if(hf.maximum||o.length===f.maximum.toString().length;return{sectionValue:aO(D,h,f,F,s),shouldGoToNextSection:u}};return S(v,(n,s)=>{if(s.contentType==="digit"||s.contentType==="digit-with-letter")return m(n,s);if(s.type==="month"){const o=oO(D,Y,"digit","month","MM"),h=m(n,{type:s.type,format:"MM",hasLeadingZerosInFormat:o,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(om(h))return h;const f=XL(D,h.sectionValue,"MM",s.format);return Ge({},h,{sectionValue:f})}if(s.type==="weekDay"){const o=m(n,s);if(om(o))return o;const h=_T(D,Y,s.format)[Number(o.sectionValue)-1];return Ge({},o,{sectionValue:h})}return{saveQuery:!1}},n=>YL(n,F))};return{applyCharacterEditing:pa(v=>{const m=e[v.sectionIndex],n=YL(v.keyPressed,F)?C(Ge({},v,{keyPressed:M5(v.keyPressed,F)})):i(v);if(n==null){j(null);return}r({activeSection:m,newSectionValue:n.sectionValue,shouldGoToNextSection:n.shouldGoToNextSection})}),resetCharacterQuery:l}};function fie(e,r){return Array.isArray(r)?r.every(x=>e.indexOf(x)!==-1):e.indexOf(r)!==-1}const die=(e,r)=>x=>{(x.key==="Enter"||x.key===" ")&&(e(x),x.preventDefault(),x.stopPropagation())},bc=(e=document)=>{const r=e.activeElement;return r?r.shadowRoot?bc(r.shadowRoot):r:null},hie="@media (pointer: fine)",vie=e=>{const{internalProps:{disabled:r,readOnly:x=!1},forwardedProps:{sectionListRef:F,onBlur:j,onClick:Y,onFocus:D,onInput:O,onPaste:t,focused:l,autoFocus:S=!1},fieldValueManager:i,applyCharacterEditing:C,resetCharacterQuery:w,setSelectedSections:v,parsedSelectedSections:m,state:a,clearActiveSection:n,clearValue:s,updateSectionValue:o,updateValueFromValueStr:h,sectionOrder:f,areAllSectionsEmpty:u,sectionsValueBoundaries:b}=e,p=Oe.useRef(null),E=vi(F,p),g=vv(),c=Bo(),y=Ui(),[A,M]=Oe.useState(!1),R=Oe.useMemo(()=>({syncSelectionToDOM:()=>{if(!p.current)return;const ie=document.getSelection();if(!ie)return;if(m==null){ie.rangeCount>0&&p.current.getRoot().contains(ie.getRangeAt(0).startContainer)&&ie.removeAllRanges(),A&&p.current.getRoot().blur();return}if(!p.current.getRoot().contains(bc(document)))return;const fe=new window.Range;let Q;m==="all"?Q=p.current.getRoot():a.sections[m].type==="empty"?Q=p.current.getSectionContainer(m):Q=p.current.getSectionContent(m),fe.selectNodeContents(Q),Q.focus(),ie.removeAllRanges(),ie.addRange(fe)},getActiveSectionIndexFromDOM:()=>{const ie=bc(document);return!ie||!p.current||!p.current.getRoot().contains(ie)?null:p.current.getSectionIndexFromDOMElement(ie)},focusField:(ie=0)=>{if(!p.current)return;const fe=q4(ie,a.sections);M(!0),p.current.getSectionContent(fe).focus()},setSelectedSections:ie=>{if(!p.current)return;const fe=q4(ie,a.sections);M((fe==="all"?0:fe)!==null),v(ie)},isFieldFocused:()=>{const ie=bc(document);return!!p.current&&p.current.getRoot().contains(ie)}}),[m,v,a.sections,A]),T=pa(ie=>{if(!p.current)return;const fe=a.sections[ie];p.current.getSectionContent(ie).innerHTML=fe.value||fe.placeholder,R.syncSelectionToDOM()}),L=pa((ie,...fe)=>{ie.isDefaultPrevented()||!p.current||(M(!0),Y==null||Y(ie,...fe),m==="all"?setTimeout(()=>{const Q=document.getSelection().getRangeAt(0).startOffset;if(Q===0){v(f.startIndex);return}let J=0,oe=0;for(;oe{if(O==null||O(ie),!p.current||m!=="all")return;const Q=ie.target.textContent??"";p.current.getRoot().innerHTML=a.sections.map(J=>`${J.startSeparator}${J.value||J.placeholder}${J.endSeparator}`).join(""),R.syncSelectionToDOM(),Q.length===0||Q.charCodeAt(0)===10?(w(),s(),v("all")):Q.length>1?h(Q):C({keyPressed:Q,sectionIndex:0})}),d=pa(ie=>{if(t==null||t(ie),x||m!=="all"){ie.preventDefault();return}const fe=ie.clipboardData.getData("text");ie.preventDefault(),w(),h(fe)}),k=pa((...ie)=>{if(D==null||D(...ie),A||!p.current)return;M(!0),p.current.getSectionIndexFromDOMElement(bc(document))!=null||v(f.startIndex)}),I=pa((...ie)=>{j==null||j(...ie),setTimeout(()=>{if(!p.current)return;const fe=bc(document);!p.current.getRoot().contains(fe)&&(M(!1),v(null))})}),N=pa(ie=>fe=>{fe.isDefaultPrevented()||v(ie)}),B=pa(ie=>{ie.preventDefault()}),G=pa(ie=>()=>{v(ie)}),U=pa(ie=>{if(ie.preventDefault(),x||r||typeof m!="number")return;const fe=a.sections[m],Q=ie.clipboardData.getData("text"),J=/^[a-zA-Z]+$/.test(Q),oe=/^[0-9]+$/.test(Q),K=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);fe.contentType==="letter"&&J||fe.contentType==="digit"&&oe||fe.contentType==="digit-with-letter"&&K?(w(),o({activeSection:fe,newSectionValue:Q,shouldGoToNextSection:!0})):!J&&!oe&&(w(),h(Q))}),H=pa(ie=>{ie.preventDefault(),ie.dataTransfer.dropEffect="none"}),W=pa(ie=>{if(!p.current)return;const fe=ie.target,Q=fe.textContent??"",J=p.current.getSectionIndexFromDOMElement(fe),oe=a.sections[J];if(x||!p.current){T(J);return}if(Q.length===0){if(oe.value===""){T(J);return}const K=ie.nativeEvent.inputType;if(K==="insertParagraph"||K==="insertLineBreak"){T(J);return}w(),n();return}C({keyPressed:Q,sectionIndex:J}),T(J)});Gi(()=>{if(!(!A||!p.current)){if(m==="all")p.current.getRoot().focus();else if(typeof m=="number"){const ie=p.current.getSectionContent(m);ie&&ie.focus()}}},[m,A]);const V=Oe.useMemo(()=>a.sections.reduce((ie,fe)=>(ie[fe.type]=b[fe.type]({currentDate:null,contentType:fe.contentType,format:fe.format}),ie),{}),[b,a.sections]),$=m==="all",Z=Oe.useMemo(()=>a.sections.map((ie,fe)=>{const Q=!$&&!r&&!x;return{container:{"data-sectionindex":fe,onClick:N(fe)},content:{tabIndex:$||fe>0?-1:0,contentEditable:!$&&!r&&!x,role:"spinbutton",id:`${y}-${ie.type}`,"aria-labelledby":`${y}-${ie.type}`,"aria-readonly":x,"aria-valuenow":$ae(ie,c),"aria-valuemin":V[ie.type].minimum,"aria-valuemax":V[ie.type].maximum,"aria-valuetext":ie.value?Wae(ie,c):g.empty,"aria-label":g[ie.type],"aria-disabled":r,spellCheck:Q?!1:void 0,autoCapitalize:Q?"off":void 0,autoCorrect:Q?"off":void 0,[parseInt(Oe.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Q?"next":void 0,children:ie.value||ie.placeholder,onInput:W,onPaste:U,onFocus:G(fe),onDragOver:H,onMouseUp:B,inputMode:ie.contentType==="letter"?"text":"numeric"},before:{children:ie.startSeparator},after:{children:ie.endSeparator}}}),[a.sections,G,U,H,W,N,B,r,x,$,g,c,V,y]),q=pa(ie=>{h(ie.target.value)}),ae=Oe.useMemo(()=>u?"":i.getV7HiddenInputValueFromSections(a.sections),[u,a.sections,i]);return Oe.useEffect(()=>{if(p.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` +`));S&&p.current&&p.current.getSectionContent(f.startIndex).focus()},[]),{interactions:R,returnedValue:{autoFocus:S,readOnly:x,focused:l??A,sectionListRef:E,onBlur:I,onClick:L,onFocus:k,onInput:P,onPaste:d,enableAccessibleFieldDOMStructure:!0,elements:Z,tabIndex:m===0?-1:0,contentEditable:$,value:ae,onChange:q,areAllSectionsEmpty:u}}},km=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),pie=(e,r,x)=>{let F=0,j=x?1:0;const Y=[];for(let D=0;D{const r=_l(),x=Oe.useRef(),F=Oe.useRef(),{forwardedProps:{onFocus:j,onClick:Y,onPaste:D,onBlur:O,inputRef:t,placeholder:l},internalProps:{readOnly:S=!1,disabled:i=!1},parsedSelectedSections:C,activeSectionIndex:w,state:v,fieldValueManager:m,valueManager:a,applyCharacterEditing:n,resetCharacterQuery:s,updateSectionValue:o,updateValueFromValueStr:h,clearActiveSection:f,clearValue:u,setTempAndroidValueStr:b,setSelectedSections:p,getSectionsFromValue:E,areAllSectionsEmpty:g,localizedDigits:c}=e,y=Oe.useRef(null),A=vi(t,y),M=Oe.useMemo(()=>pie(v.sections,c,r),[v.sections,c,r]),R=Oe.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(C==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==bc(document))return;const W=y.current.scrollTop;if(C==="all")y.current.select();else{const V=M[C],$=V.type==="empty"?V.startInInput-V.startSeparator.length:V.startInInput,Z=V.type==="empty"?V.endInInput+V.endSeparator.length:V.endInInput;($!==y.current.selectionStart||Z!==y.current.selectionEnd)&&y.current===bc(document)&&y.current.setSelectionRange($,Z),clearTimeout(F.current),F.current=setTimeout(()=>{y.current&&y.current===bc(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==$||y.current.selectionEnd!==Z)&&R.syncSelectionToDOM()})}y.current.scrollTop=W},getActiveSectionIndexFromDOM:()=>{const W=y.current.selectionStart??0,V=y.current.selectionEnd??0;if(W===0&&V===0)return null;const $=W<=M[0].startInInput?1:M.findIndex(Z=>Z.startInInput-Z.startSeparator.length>W);return $===-1?M.length-1:$-1},focusField:(W=0)=>{var V;(V=y.current)==null||V.focus(),p(W)},setSelectedSections:W=>p(W),isFieldFocused:()=>y.current===bc(document)}),[y,C,M,p]),T=()=>{const W=y.current.selectionStart??0;let V;W<=M[0].startInInput||W>=M[M.length-1].endInInput?V=1:V=M.findIndex(Z=>Z.startInInput-Z.startSeparator.length>W);const $=V===-1?M.length-1:V-1;p($)},L=pa((...W)=>{j==null||j(...W);const V=y.current;clearTimeout(x.current),x.current=setTimeout(()=>{!V||V!==y.current||w==null&&(V.value.length&&Number(V.selectionEnd)-Number(V.selectionStart)===V.value.length?p("all"):T())})}),P=pa((W,...V)=>{W.isDefaultPrevented()||(Y==null||Y(W,...V),T())}),d=pa(W=>{if(D==null||D(W),W.preventDefault(),S||i)return;const V=W.clipboardData.getData("text");if(typeof C=="number"){const $=v.sections[C],Z=/^[a-zA-Z]+$/.test(V),q=/^[0-9]+$/.test(V),ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(V);if($.contentType==="letter"&&Z||$.contentType==="digit"&&q||$.contentType==="digit-with-letter"&&ae){s(),o({activeSection:$,newSectionValue:V,shouldGoToNextSection:!0});return}if(Z||q)return}s(),h(V)}),k=pa((...W)=>{O==null||O(...W),p(null)}),I=pa(W=>{if(S)return;const V=W.target.value;if(V===""){s(),u();return}const $=W.nativeEvent.data,Z=$&&$.length>1,q=Z?$:V,ae=km(q);if(w==null||Z){h(Z?$:ae);return}let ie;if(C==="all"&&ae.length===1)ie=ae;else{const fe=km(m.getV6InputValueFromSections(M,c,r));let Q=-1,J=-1;for(let ce=0;ceoe.end)return;const ne=ae.length-fe.length+oe.end-km(oe.endSeparator||"").length;ie=ae.slice(oe.start+km(oe.startSeparator||"").length,ne)}if(ie.length===0){jae()&&b(q),s(),f();return}n({keyPressed:ie,sectionIndex:w})}),N=Oe.useMemo(()=>l!==void 0?l:m.getV6InputValueFromSections(E(a.emptyValue),c,r),[l,m,E,a.emptyValue,c,r]),B=Oe.useMemo(()=>v.tempValueStrAndroid??m.getV6InputValueFromSections(v.sections,c,r),[v.sections,m,v.tempValueStrAndroid,c,r]);Oe.useEffect(()=>(y.current&&y.current===bc(document)&&p("all"),()=>{clearTimeout(x.current),clearTimeout(F.current)}),[]);const G=Oe.useMemo(()=>w==null||v.sections[w].contentType==="letter"?"text":"numeric",[w,v.sections]),H=!(y.current&&y.current===bc(document))&&g;return{interactions:R,returnedValue:{readOnly:S,onBlur:k,onClick:P,onFocus:L,onPaste:d,inputRef:A,enableAccessibleFieldDOMStructure:!1,placeholder:N,inputMode:G,autoComplete:"off",value:H?"":B,onChange:I}}},mie=e=>{const r=Bo(),{internalProps:x,internalProps:{unstableFieldRef:F,minutesStep:j,enableAccessibleFieldDOMStructure:Y=!1,disabled:D=!1,readOnly:O=!1},forwardedProps:{onKeyDown:t,error:l,clearable:S,onClear:i},fieldValueManager:C,valueManager:w,validator:v}=e,m=_l(),a=lie(e),{state:n,activeSectionIndex:s,parsedSelectedSections:o,setSelectedSections:h,clearValue:f,clearActiveSection:u,updateSectionValue:b,setTempAndroidValueStr:p,sectionsValueBoundaries:E,localizedDigits:g,timezone:c}=a,y=cie({sections:n.sections,updateSectionValue:b,sectionsValueBoundaries:E,localizedDigits:g,setTempAndroidValueStr:p,timezone:c}),{resetCharacterQuery:A}=y,M=w.areValuesEqual(r,n.value,w.emptyValue),R=Y?vie:gie,T=Oe.useMemo(()=>Gae(n.sections,m&&!Y),[n.sections,m,Y]),{returnedValue:L,interactions:P}=R(Ge({},e,a,y,{areAllSectionsEmpty:M,sectionOrder:T})),d=pa(U=>{if(t==null||t(U),!D)switch(!0){case((U.ctrlKey||U.metaKey)&&U.key.toLowerCase()==="a"&&!U.shiftKey&&!U.altKey):{U.preventDefault(),h("all");break}case U.key==="ArrowRight":{if(U.preventDefault(),o==null)h(T.startIndex);else if(o==="all")h(T.endIndex);else{const H=T.neighbors[o].rightIndex;H!==null&&h(H)}break}case U.key==="ArrowLeft":{if(U.preventDefault(),o==null)h(T.endIndex);else if(o==="all")h(T.startIndex);else{const H=T.neighbors[o].leftIndex;H!==null&&h(H)}break}case U.key==="Delete":{if(U.preventDefault(),O)break;o==null||o==="all"?f():u(),A();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(U.key):{if(U.preventDefault(),O||s==null)break;const H=n.sections[s],W=C.getActiveDateManager(r,n,H),V=zae(r,c,H,U.key,E,g,W.date,{minutesStep:j});b({activeSection:H,newSectionValue:V,shouldGoToNextSection:!1});break}}});Gi(()=>{P.syncSelectionToDOM()});const k=uO(Ge({},x,{value:n.value,timezone:c}),v,w.isSameError,w.defaultErrorState),I=Oe.useMemo(()=>l!==void 0?l:w.hasError(k),[w,k,l]);Oe.useEffect(()=>{!I&&s==null&&A()},[n.referenceValue,s,I]),Oe.useEffect(()=>{n.tempValueStrAndroid!=null&&s!=null&&(A(),u())},[n.sections]),Oe.useImperativeHandle(F,()=>({getSections:()=>n.sections,getActiveSectionIndex:P.getActiveSectionIndexFromDOM,setSelectedSections:P.setSelectedSections,focusField:P.focusField,isFieldFocused:P.isFieldFocused}));const N=pa((U,...H)=>{U.preventDefault(),i==null||i(U,...H),f(),P.isFieldFocused()?h(T.startIndex):P.focusField(0)}),B={onKeyDown:d,onClear:N,error:I,clearable:!!(S&&!M&&!O&&!D)},G={disabled:D,readOnly:O};return Ge({},e.forwardedProps,B,G,L)},zT=({props:e,value:r,adapter:x})=>{if(r===null)return null;const{shouldDisableDate:F,shouldDisableMonth:j,shouldDisableYear:Y,disablePast:D,disableFuture:O,timezone:t}=e,l=x.utils.date(void 0,t),S=If(x.utils,e.minDate,x.defaultDates.minDate),i=If(x.utils,e.maxDate,x.defaultDates.maxDate);switch(!0){case!x.utils.isValid(r):return"invalidDate";case!!(F&&F(r)):return"shouldDisableDate";case!!(j&&j(r)):return"shouldDisableMonth";case!!(Y&&Y(r)):return"shouldDisableYear";case!!(O&&x.utils.isAfterDay(r,l)):return"disableFuture";case!!(D&&x.utils.isBeforeDay(r,l)):return"disablePast";case!!(S&&x.utils.isBeforeDay(r,S)):return"minDate";case!!(i&&x.utils.isAfterDay(r,i)):return"maxDate";default:return null}},cO=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yie=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],xie=["minDateTime","maxDateTime"],bie=[...cO,...yie,...xie],fO=e=>bie.reduce((r,x)=>(e.hasOwnProperty(x)&&(r[x]=e[x]),r),{}),wie=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Tie=(e,r)=>{const x=Ge({},e),F={},j=Y=>{x.hasOwnProperty(Y)&&(F[Y]=x[Y],delete x[Y])};return wie.forEach(j),cO.forEach(j),{forwardedProps:x,internalProps:F}},Sie=e=>{const r=Bo(),x=Ib();return Ge({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r.formats.keyboardDate,minDate:If(r,e.minDate,x.minDate),maxDate:If(r,e.maxDate,x.maxDate)})},Cie=e=>{const r=Sie(e),{forwardedProps:x,internalProps:F}=Tie(r);return mie({forwardedProps:x,internalProps:F,valueManager:cv,fieldValueManager:Xae,validator:zT,valueType:"date"})},Mie=["clearable","onClear","InputProps","sx","slots","slotProps"],Aie=["ownerState"],Eie=e=>{const r=vv(),{clearable:x,onClear:F,InputProps:j,sx:Y,slots:D,slotProps:O}=e,t=hn(e,Mie),l=(D==null?void 0:D.clearButton)??dl,S=hi({elementType:l,externalSlotProps:O==null?void 0:O.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:r.fieldClearLabel}}),i=hn(S,Aie),C=(D==null?void 0:D.clearIcon)??fae,w=hi({elementType:C,externalSlotProps:O==null?void 0:O.clearIcon,ownerState:{}});return Ge({},t,{InputProps:Ge({},j,{endAdornment:Ce.jsxs(Oe.Fragment,{children:[x&&Ce.jsx(c5,{position:"end",sx:{marginRight:j!=null&&j.endAdornment?-1:-1.5},children:Ce.jsx(l,Ge({},i,{onClick:F,children:Ce.jsx(C,Ge({fontSize:"small"},w))}))}),j==null?void 0:j.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(Y)?Y:[Y]]})};function Pie(e){return ka("MuiPickersTextField",e)}Ca("MuiPickersTextField",["root","focused","disabled","error","required"]);function Lie(e){return ka("MuiPickersInputBase",e)}const Ym=Ca("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Iie(e){return ka("MuiPickersSectionList",e)}const _1=Ca("MuiPickersSectionList",["root","section","sectionContent"]),Rie=["slots","slotProps","elements","sectionListRef"],dO=ln("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,r)=>r.root})({direction:"ltr /*! @noflip */",outline:"none"}),hO=ln("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,r)=>r.section})({}),vO=ln("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,r)=>r.sectionSeparator})({whiteSpace:"pre"}),pO=ln("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,r)=>r.sectionContent})({outline:"none"}),kie=e=>{const{classes:r}=e;return qn({root:["root"],section:["section"],sectionContent:["sectionContent"]},Iie,r)};function Die(e){const{slots:r,slotProps:x,element:F,classes:j}=e,Y=(r==null?void 0:r.section)??hO,D=hi({elementType:Y,externalSlotProps:x==null?void 0:x.section,externalForwardedProps:F.container,className:j.section,ownerState:{}}),O=(r==null?void 0:r.sectionContent)??pO,t=hi({elementType:O,externalSlotProps:x==null?void 0:x.sectionContent,externalForwardedProps:F.content,additionalProps:{suppressContentEditableWarning:!0},className:j.sectionContent,ownerState:{}}),l=(r==null?void 0:r.sectionSeparator)??vO,S=hi({elementType:l,externalSlotProps:x==null?void 0:x.sectionSeparator,externalForwardedProps:F.before,ownerState:{position:"before"}}),i=hi({elementType:l,externalSlotProps:x==null?void 0:x.sectionSeparator,externalForwardedProps:F.after,ownerState:{position:"after"}});return Ce.jsxs(Y,Ge({},D,{children:[Ce.jsx(l,Ge({},S)),Ce.jsx(O,Ge({},t)),Ce.jsx(l,Ge({},i))]}))}const Oie=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersSectionList"}),{slots:j,slotProps:Y,elements:D,sectionListRef:O}=F,t=hn(F,Rie),l=kie(F),S=Oe.useRef(null),i=vi(x,S),C=m=>{if(!S.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return S.current};Oe.useImperativeHandle(O,()=>({getRoot(){return C("getRoot")},getSectionContainer(m){return C("getSectionContainer").querySelector(`.${_1.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return C("getSectionContent").querySelector(`.${_1.section}[data-sectionindex="${m}"] .${_1.sectionContent}`)},getSectionIndexFromDOMElement(m){const a=C("getSectionIndexFromDOMElement");if(m==null||!a.contains(m))return null;let n=null;return m.classList.contains(_1.section)?n=m:m.classList.contains(_1.sectionContent)&&(n=m.parentElement),n==null?null:Number(n.dataset.sectionindex)}}));const w=(j==null?void 0:j.root)??dO,v=hi({elementType:w,externalSlotProps:Y==null?void 0:Y.root,externalForwardedProps:t,additionalProps:{ref:i,suppressContentEditableWarning:!0},className:l.root,ownerState:{}});return Ce.jsx(w,Ge({},v,{children:v.contentEditable?D.map(({content:m,before:a,after:n})=>`${a.children}${m.children}${n.children}`).join(""):Ce.jsx(Oe.Fragment,{children:D.map((m,a)=>Ce.jsx(Die,{slots:j,slotProps:Y,element:m,classes:l},a))})}))}),Fie=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],_ie=e=>Math.round(e*1e5)/1e5,BT=ln("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>Ge({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${_ie(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),E5=ln(dO,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,r)=>r.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:r,focused:x,filled:F,label:j})=>!r&&!x&&!F&&j==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),zie=ln(hO,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,r)=>r.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),Bie=ln(pO,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,r)=>r.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Nie=ln(vO,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,r)=>r.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Uie=ln("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,r)=>r.hiddenInput})(Ge({},W7)),Hie=e=>{const{focused:r,disabled:x,error:F,classes:j,fullWidth:Y,readOnly:D,color:O,size:t,endAdornment:l,startAdornment:S}=e,i={root:["root",r&&!x&&"focused",x&&"disabled",D&&"readOnly",F&&"error",Y&&"fullWidth",`color${Gn(O)}`,t==="small"&&"inputSizeSmall",!!S&&"adornedStart",!!l&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return qn(i,Lie,j)},P5=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersInputBase"}),{elements:j,areAllSectionsEmpty:Y,value:D,onChange:O,id:t,endAdornment:l,startAdornment:S,renderSuffix:i,slots:C,slotProps:w,contentEditable:v,tabIndex:m,onInput:a,onPaste:n,onKeyDown:s,name:o,readOnly:h,inputProps:f,inputRef:u,sectionListRef:b}=F,p=hn(F,Fie),E=Oe.useRef(null),g=vi(x,E),c=vi(f==null?void 0:f.ref,u),y=_l(),A=tc();if(!A)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const M=k=>{var I;if(A.disabled){k.stopPropagation();return}(I=A.onFocus)==null||I.call(A,k)};Oe.useEffect(()=>{A&&A.setAdornedStart(!!S)},[A,S]),Oe.useEffect(()=>{A&&(Y?A.onEmpty():A.onFilled())},[A,Y]);const R=Ge({},F,A,{isRtl:y}),T=Hie(R),L=(C==null?void 0:C.root)||BT,P=hi({elementType:L,externalSlotProps:w==null?void 0:w.root,externalForwardedProps:p,additionalProps:{"aria-invalid":A.error,ref:g},className:T.root,ownerState:R}),d=(C==null?void 0:C.input)||E5;return Ce.jsxs(L,Ge({},P,{children:[S,Ce.jsx(Oie,{sectionListRef:b,elements:j,contentEditable:v,tabIndex:m,className:T.sectionsContainer,onFocus:M,onBlur:A.onBlur,onInput:a,onPaste:n,onKeyDown:s,slots:{root:d,section:zie,sectionContent:Bie,sectionSeparator:Nie},slotProps:{root:{ownerState:R},sectionContent:{className:Ym.sectionContent},sectionSeparator:({position:k})=>({className:k==="before"?Ym.sectionBefore:Ym.sectionAfter})}}),l,i?i(Ge({},A)):null,Ce.jsx(Uie,Ge({name:o,className:T.input,value:D,onChange:O,id:t,"aria-hidden":"true",tabIndex:-1,readOnly:h,required:A.required,disabled:A.disabled},f,{ref:c}))]}))});function Vie(e){return ka("MuiPickersOutlinedInput",e)}const ld=Ge({},Ym,Ca("MuiPickersOutlinedInput",["root","notchedOutline","input"])),jie=["children","className","label","notched","shrink"],Gie=ln("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,r)=>r.notchedOutline})(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",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",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}}),QL=ln("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Wie=ln("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function $ie(e){const{className:r,label:x}=e,F=hn(e,jie),j=x!=null&&x!=="",Y=Ge({},e,{withLabel:j});return Ce.jsx(Gie,Ge({"aria-hidden":!0,className:r},F,{ownerState:Y,children:Ce.jsx(Wie,{ownerState:Y,children:j?Ce.jsx(QL,{children:x}):Ce.jsx(QL,{className:"notranslate",children:"​"})})}))}const Yie=["label","autoFocus","ownerState","notched"],Xie=ln(BT,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ld.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ld.focused} .${ld.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ld.disabled}`]:{[`& .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${ld.error} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(x=>{var F;return((F=(e.vars??e).palette[x])==null?void 0:F.main)??!1}).map(x=>({props:{color:x},style:{[`&.${ld.focused}:not(.${ld.error}) .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette[x].main}}}))}}),Zie=ln(E5,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,r)=>r.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Kie=e=>{const{classes:r}=e,F=qn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vie,r);return Ge({},r,F)},gO=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersOutlinedInput"}),{label:j,ownerState:Y,notched:D}=F,O=hn(F,Yie),t=tc(),l=Ge({},F,Y,t,{color:(t==null?void 0:t.color)||"primary"}),S=Kie(l);return Ce.jsx(P5,Ge({slots:{root:Xie,input:Zie},renderSuffix:i=>Ce.jsx($ie,{shrink:!!(D||i.adornedStart||i.focused||i.filled),notched:!!(D||i.adornedStart||i.focused||i.filled),className:S.notchedOutline,label:j!=null&&j!==""&&(t!=null&&t.required)?Ce.jsxs(Oe.Fragment,{children:[j," ","*"]}):j,ownerState:l})},O,{label:j,classes:S,ref:x}))});gO.muiName="Input";function Jie(e){return ka("MuiPickersFilledInput",e)}const I0=Ge({},Ym,Ca("MuiPickersFilledInput",["root","underline","input"])),Qie=["label","autoFocus","disableUnderline","ownerState"],qie=ln(BT,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,r)=>r.root,shouldForwardProp:e=>g3(e)&&e!=="disableUnderline"})(({theme:e})=>{const r=e.palette.mode==="light",x=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",F=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",j=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",Y=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:F,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:j,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:F}},[`&.${I0.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:F},[`&.${I0.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:Y},variants:[...Object.keys((e.vars??e).palette).filter(D=>(e.vars??e).palette[D].main).map(D=>{var O;return{props:{color:D,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(O=(e.vars||e).palette[D])==null?void 0:O.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${I0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${I0.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:x}`,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(.${I0.disabled}, .${I0.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${I0.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:D})=>!!D,style:{paddingLeft:12}},{props:({endAdornment:D})=>!!D,style:{paddingRight:12}}]}}),eoe=ln(E5,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,r)=>r.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),toe=e=>{const{classes:r,disableUnderline:x}=e,j=qn({root:["root",!x&&"underline"],input:["input"]},Jie,r);return Ge({},r,j)},mO=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersFilledInput"}),{label:j,disableUnderline:Y=!1,ownerState:D}=F,O=hn(F,Qie),t=tc(),l=Ge({},F,D,t,{color:(t==null?void 0:t.color)||"primary"}),S=toe(l);return Ce.jsx(P5,Ge({slots:{root:qie,input:eoe},slotProps:{root:{disableUnderline:Y}}},O,{label:j,classes:S,ref:x}))});mO.muiName="Input";function roe(e){return ka("MuiPickersFilledInput",e)}const z1=Ge({},Ym,Ca("MuiPickersInput",["root","input"])),noe=["label","autoFocus","disableUnderline","ownerState"],aoe=ln(BT,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>{let x=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(x=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(F=>(e.vars??e).palette[F].main).map(F=>({props:{color:F},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[F].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${z1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${z1.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${x}`,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(.${z1.disabled}, .${z1.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${x}`}},[`&.${z1.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),ioe=e=>{const{classes:r,disableUnderline:x}=e,j=qn({root:["root",!x&&"underline"],input:["input"]},roe,r);return Ge({},r,j)},yO=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersInput"}),{label:j,disableUnderline:Y=!1,ownerState:D}=F,O=hn(F,noe),t=tc(),l=Ge({},F,D,t,{disableUnderline:Y,color:(t==null?void 0:t.color)||"primary"}),S=ioe(l);return Ce.jsx(P5,Ge({slots:{root:aoe}},O,{label:j,classes:S,ref:x}))});yO.muiName="Input";const ooe=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],soe={standard:yO,filled:mO,outlined:gO},loe=ln(oh,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),uoe=e=>{const{focused:r,disabled:x,classes:F,required:j}=e;return qn({root:["root",r&&!x&&"focused",x&&"disabled",j&&"required"]},Pie,F)},coe=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersTextField"}),{onFocus:j,onBlur:Y,className:D,color:O="primary",disabled:t=!1,error:l=!1,variant:S="outlined",required:i=!1,InputProps:C,inputProps:w,inputRef:v,sectionListRef:m,elements:a,areAllSectionsEmpty:n,onClick:s,onKeyDown:o,onPaste:h,onInput:f,endAdornment:u,startAdornment:b,tabIndex:p,contentEditable:E,focused:g,value:c,onChange:y,fullWidth:A,id:M,name:R,helperText:T,FormHelperTextProps:L,label:P,InputLabelProps:d}=F,k=hn(F,ooe),I=Oe.useRef(null),N=vi(x,I),B=Ui(M),G=T&&B?`${B}-helper-text`:void 0,U=P&&B?`${B}-label`:void 0,H=Ge({},F,{color:O,disabled:t,error:l,focused:g,required:i,variant:S}),W=uoe(H),V=soe[S];return Ce.jsxs(loe,Ge({className:Ln(W.root,D),ref:N,focused:g,onFocus:j,onBlur:Y,disabled:t,variant:S,error:l,color:O,fullWidth:A,required:i,ownerState:H},k,{children:[Ce.jsx(Py,Ge({htmlFor:B,id:U},d,{children:P})),Ce.jsx(V,Ge({elements:a,areAllSectionsEmpty:n,onClick:s,onKeyDown:o,onInput:f,onPaste:h,endAdornment:u,startAdornment:b,tabIndex:p,contentEditable:E,value:c,onChange:y,id:B,fullWidth:A,inputProps:w,inputRef:v,sectionListRef:m,label:P,name:R,role:"group","aria-labelledby":U},C)),T&&Ce.jsx(l5,Ge({id:G},L,{children:T}))]}))}),foe=["enableAccessibleFieldDOMStructure"],doe=["InputProps","readOnly"],hoe=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],voe=e=>{let{enableAccessibleFieldDOMStructure:r}=e,x=hn(e,foe);if(r){const{InputProps:i,readOnly:C}=x,w=hn(x,doe);return Ge({},w,{InputProps:Ge({},i??{},{readOnly:C})})}const{onPaste:F,onKeyDown:j,inputMode:Y,readOnly:D,InputProps:O,inputProps:t,inputRef:l}=x,S=hn(x,hoe);return Ge({},S,{InputProps:Ge({},O??{},{readOnly:D}),inputProps:Ge({},t??{},{inputMode:Y,onPaste:F,onKeyDown:j,ref:l})})},poe=["slots","slotProps","InputProps","inputProps"],xO=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiDateField"}),{slots:j,slotProps:Y,InputProps:D,inputProps:O}=F,t=hn(F,poe),l=F,S=(j==null?void 0:j.textField)??(r.enableAccessibleFieldDOMStructure?coe:Ko),i=hi({elementType:S,externalSlotProps:Y==null?void 0:Y.textField,externalForwardedProps:t,additionalProps:{ref:x},ownerState:l});i.inputProps=Ge({},O,i.inputProps),i.InputProps=Ge({},D,i.InputProps);const C=Cie(i),w=voe(C),v=Eie(Ge({},w,{slots:j,slotProps:Y}));return Ce.jsx(S,Ge({},v))}),bO=({shouldDisableDate:e,shouldDisableMonth:r,shouldDisableYear:x,minDate:F,maxDate:j,disableFuture:Y,disablePast:D,timezone:O})=>{const t=Tg();return Oe.useCallback(l=>zT({adapter:t,value:l,props:{shouldDisableDate:e,shouldDisableMonth:r,shouldDisableYear:x,minDate:F,maxDate:j,disableFuture:Y,disablePast:D,timezone:O}})!==null,[t,e,r,x,F,j,Y,D,O])},goe=(e,r,x)=>(F,j)=>{switch(j.type){case"changeMonth":return Ge({},F,{slideDirection:j.direction,currentMonth:j.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ge({},F,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(F.focusedDay!=null&&j.focusedDay!=null&&x.isSameDay(j.focusedDay,F.focusedDay))return F;const Y=j.focusedDay!=null&&!r&&!x.isSameMonth(F.currentMonth,j.focusedDay);return Ge({},F,{focusedDay:j.focusedDay,isMonthSwitchingAnimating:Y&&!e&&!j.withoutMonthSwitchingAnimation,currentMonth:Y?x.startOfMonth(j.focusedDay):F.currentMonth,slideDirection:j.focusedDay!=null&&x.isAfterDay(j.focusedDay,F.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},moe=e=>{const{value:r,referenceDate:x,disableFuture:F,disablePast:j,disableSwitchToMonthOnDayFocus:Y=!1,maxDate:D,minDate:O,onMonthChange:t,reduceAnimations:l,shouldDisableDate:S,timezone:i}=e,C=Bo(),w=Oe.useRef(goe(!!l,Y,C)).current,v=Oe.useMemo(()=>cv.getInitialReferenceValue({value:r,utils:C,timezone:i,props:e,referenceDate:x,granularity:nh.day}),[]),[m,a]=Oe.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:C.startOfMonth(v),slideDirection:"left"}),n=Oe.useCallback(u=>{a(Ge({type:"changeMonth"},u)),t&&t(u.newMonth)},[t]),s=Oe.useCallback(u=>{const b=u;C.isSameMonth(b,m.currentMonth)||n({newMonth:C.startOfMonth(b),direction:C.isAfterDay(b,m.currentMonth)?"left":"right"})},[m.currentMonth,n,C]),o=bO({shouldDisableDate:S,minDate:O,maxDate:D,disableFuture:F,disablePast:j,timezone:i}),h=Oe.useCallback(()=>{a({type:"finishMonthSwitchingAnimation"})},[]),f=pa((u,b)=>{o(u)||a({type:"changeFocusedDay",focusedDay:u,withoutMonthSwitchingAnimation:b})});return{referenceDate:v,calendarState:m,changeMonth:s,changeFocusedDay:f,isDateDisabled:o,onMonthSwitchingAnimationEnd:h,handleChangeMonth:n}},yoe=e=>ka("MuiPickersFadeTransitionGroup",e);Ca("MuiPickersFadeTransitionGroup",["root"]);const xoe=e=>{const{classes:r}=e;return qn({root:["root"]},yoe,r)},boe=ln(Mb,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"block",position:"relative"});function wO(e){const r=zo({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:x,className:F,reduceAnimations:j,transKey:Y}=r,D=xoe(r),O=nu();return j?x:Ce.jsx(boe,{className:Ln(D.root,F),children:Ce.jsx(jy,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:O.transitions.duration.enteringScreen,enter:O.transitions.duration.enteringScreen,exit:0},children:x},Y)})}const woe=e=>ka("MuiPickersSlideTransition",e),nf=Ca("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Toe=["children","className","reduceAnimations","slideDirection","transKey","classes"],Soe=e=>{const{classes:r,slideDirection:x}=e,F={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${x}`],exitActive:[`slideExitActiveLeft-${x}`]};return qn(F,woe,r)},Coe=ln(Mb,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,r)=>[r.root,{[`.${nf["slideEnter-left"]}`]:r["slideEnter-left"]},{[`.${nf["slideEnter-right"]}`]:r["slideEnter-right"]},{[`.${nf.slideEnterActive}`]:r.slideEnterActive},{[`.${nf.slideExit}`]:r.slideExit},{[`.${nf["slideExitActiveLeft-left"]}`]:r["slideExitActiveLeft-left"]},{[`.${nf["slideExitActiveLeft-right"]}`]:r["slideExitActiveLeft-right"]}]})(({theme:e})=>{const r=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${nf["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${nf["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${nf.slideEnterActive}`]:{transform:"translate(0%)",transition:r},[`& .${nf.slideExit}`]:{transform:"translate(0%)"},[`& .${nf["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:r,zIndex:0},[`& .${nf["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:r,zIndex:0}}});function Moe(e){const r=zo({props:e,name:"MuiPickersSlideTransition"}),{children:x,className:F,reduceAnimations:j,transKey:Y}=r,D=hn(r,Toe),O=Soe(r),t=nu();if(j)return Ce.jsx("div",{className:Ln(O.root,F),children:x});const l={exit:O.exit,enterActive:O.enterActive,enter:O.enter,exitActive:O.exitActive};return Ce.jsx(Coe,{className:Ln(O.root,F),childFactory:S=>Oe.cloneElement(S,{classNames:l}),role:"presentation",children:Ce.jsx(ZA,Ge({mountOnEnter:!0,unmountOnExit:!0,timeout:t.transitions.duration.complex,classNames:l},D,{children:x}),Y)})}const Aoe=e=>ka("MuiDayCalendar",e);Ca("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Eoe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Poe=["ownerState"],Loe=e=>{const{classes:r}=e;return qn({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Aoe,r)},TO=(qx+OT*2)*6,Ioe=ln("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Roe=ln("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,r)=>r.header})({display:"flex",justifyContent:"center",alignItems:"center"}),koe=ln(ea,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,r)=>r.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Doe=ln(ea,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,r)=>r.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Ooe=ln(ea,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,r)=>r.weekNumber})(({theme:e})=>Ge({},e.typography.caption,{width:qx,height:qx,padding:0,margin:`0 ${OT}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Foe=ln("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,r)=>r.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:TO}),_oe=ln(Moe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,r)=>r.slideTransition})({minHeight:TO}),zoe=ln("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,r)=>r.monthContainer})({overflow:"hidden"}),Boe=ln("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,r)=>r.weekContainer})({margin:`${OT}px 0`,display:"flex",justifyContent:"center"});function Noe(e){let{parentProps:r,day:x,focusableDay:F,selectedDays:j,isDateDisabled:Y,currentMonthNumber:D,isViewFocused:O}=e,t=hn(e,Eoe);const{disabled:l,disableHighlightToday:S,isMonthSwitchingAnimating:i,showDaysOutsideCurrentMonth:C,slots:w,slotProps:v,timezone:m}=r,a=Bo(),n=DT(m),s=F!==null&&a.isSameDay(x,F),o=j.some(y=>a.isSameDay(y,x)),h=a.isSameDay(x,n),f=(w==null?void 0:w.day)??tie,u=hi({elementType:f,externalSlotProps:v==null?void 0:v.day,additionalProps:Ge({disableHighlightToday:S,showDaysOutsideCurrentMonth:C,role:"gridcell",isAnimating:i,"data-timestamp":a.toJsDate(x).valueOf()},t),ownerState:Ge({},r,{day:x,selected:o})}),b=hn(u,Poe),p=Oe.useMemo(()=>l||Y(x),[l,Y,x]),E=Oe.useMemo(()=>a.getMonth(x)!==D,[a,x,D]),g=Oe.useMemo(()=>{const y=a.startOfMonth(a.setMonth(x,D));return C?a.isSameDay(x,a.startOfWeek(y)):a.isSameDay(x,y)},[D,x,C,a]),c=Oe.useMemo(()=>{const y=a.endOfMonth(a.setMonth(x,D));return C?a.isSameDay(x,a.endOfWeek(y)):a.isSameDay(x,y)},[D,x,C,a]);return Ce.jsx(f,Ge({},b,{day:x,disabled:p,autoFocus:O&&s,today:h,outsideCurrentMonth:E,isFirstVisibleCell:g,isLastVisibleCell:c,selected:o,tabIndex:s?0:-1,"aria-selected":o,"aria-current":h?"date":void 0}))}function Uoe(e){const r=zo({props:e,name:"MuiDayCalendar"}),x=Bo(),{onFocusedDayChange:F,className:j,currentMonth:Y,selectedDays:D,focusedDay:O,loading:t,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:S,readOnly:i,reduceAnimations:C,renderLoading:w=()=>Ce.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:m,disablePast:a,disableFuture:n,minDate:s,maxDate:o,shouldDisableDate:h,shouldDisableMonth:f,shouldDisableYear:u,dayOfWeekFormatter:b=oe=>x.format(oe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:p,onFocusedViewChange:E,gridLabelId:g,displayWeekNumber:c,fixedWeekNumber:y,autoFocus:A,timezone:M}=r,R=DT(M),T=Loe(r),L=_l(),P=bO({shouldDisableDate:h,shouldDisableMonth:f,shouldDisableYear:u,minDate:s,maxDate:o,disablePast:a,disableFuture:n,timezone:M}),d=vv(),[k,I]=Ol({name:"DayCalendar",state:"hasFocus",controlled:p,default:A??!1}),[N,B]=Oe.useState(()=>O||R),G=pa(oe=>{i||l(oe)}),U=oe=>{P(oe)||(F(oe),B(oe),E==null||E(!0),I(!0))},H=pa((oe,K)=>{switch(oe.key){case"ArrowUp":U(x.addDays(K,-7)),oe.preventDefault();break;case"ArrowDown":U(x.addDays(K,7)),oe.preventDefault();break;case"ArrowLeft":{const ne=x.addDays(K,L?1:-1),ce=x.addMonths(K,L?1:-1),re=Tx({utils:x,date:ne,minDate:L?ne:x.startOfMonth(ce),maxDate:L?x.endOfMonth(ce):ne,isDateDisabled:P,timezone:M});U(re||ne),oe.preventDefault();break}case"ArrowRight":{const ne=x.addDays(K,L?-1:1),ce=x.addMonths(K,L?-1:1),re=Tx({utils:x,date:ne,minDate:L?x.startOfMonth(ce):ne,maxDate:L?ne:x.endOfMonth(ce),isDateDisabled:P,timezone:M});U(re||ne),oe.preventDefault();break}case"Home":U(x.startOfWeek(K)),oe.preventDefault();break;case"End":U(x.endOfWeek(K)),oe.preventDefault();break;case"PageUp":U(x.addMonths(K,1)),oe.preventDefault();break;case"PageDown":U(x.addMonths(K,-1)),oe.preventDefault();break}}),W=pa((oe,K)=>U(K)),V=pa((oe,K)=>{k&&x.isSameDay(N,K)&&(E==null||E(!1))}),$=x.getMonth(Y),Z=x.getYear(Y),q=Oe.useMemo(()=>D.filter(oe=>!!oe).map(oe=>x.startOfDay(oe)),[x,D]),ae=`${Z}-${$}`,ie=Oe.useMemo(()=>Oe.createRef(),[ae]),fe=x.startOfWeek(R),Q=Oe.useMemo(()=>{const oe=x.startOfMonth(Y),K=x.endOfMonth(Y);return P(N)||x.isAfterDay(N,K)||x.isBeforeDay(N,oe)?Tx({utils:x,date:N,minDate:oe,maxDate:K,disablePast:a,disableFuture:n,isDateDisabled:P,timezone:M}):N},[Y,n,a,N,P,x,M]),J=Oe.useMemo(()=>{const oe=x.setTimezone(Y,M),K=x.getWeekArray(oe);let ne=x.addMonths(oe,1);for(;y&&K.length{K.lengthCe.jsx(koe,{variant:"caption",role:"columnheader","aria-label":x.format(x.addDays(fe,K),"weekday"),className:T.weekDayLabel,children:b(oe)},K.toString()))]}),t?Ce.jsx(Foe,{className:T.loadingContainer,children:w()}):Ce.jsx(_oe,Ge({transKey:ae,onExited:S,reduceAnimations:C,slideDirection:v,className:Ln(j,T.slideTransition)},m,{nodeRef:ie,children:Ce.jsx(zoe,{ref:ie,role:"rowgroup",className:T.monthContainer,children:J.map((oe,K)=>Ce.jsxs(Boe,{role:"row",className:T.weekContainer,"aria-rowindex":K+1,children:[c&&Ce.jsx(Ooe,{className:T.weekNumber,role:"rowheader","aria-label":d.calendarWeekNumberAriaLabelText(x.getWeekNumber(oe[0])),children:d.calendarWeekNumberText(x.getWeekNumber(oe[0]))}),oe.map((ne,ce)=>Ce.jsx(Noe,{parentProps:r,day:ne,selectedDays:q,focusableDay:Q,onKeyDown:H,onFocus:W,onBlur:V,onDaySelect:G,isDateDisabled:P,currentMonthNumber:$,isViewFocused:k,"aria-colindex":ce+1},ne.toString()))]},`week-${oe[0]}`))})}))]})}function Hoe(e){return ka("MuiPickersMonth",e)}const Kw=Ca("MuiPickersMonth",["root","monthButton","disabled","selected"]),Voe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],joe=e=>{const{disabled:r,selected:x,classes:F}=e;return qn({root:["root"],monthButton:["monthButton",r&&"disabled",x&&"selected"]},Hoe,F)},Goe=ln("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,r)=>[r.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),Woe=ln("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,r)=>[r.monthButton,{[`&.${Kw.disabled}`]:r.disabled},{[`&.${Kw.selected}`]:r.selected}]})(({theme:e})=>Ge({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sc(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sc(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Kw.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kw.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),$oe=Oe.memo(function(r){const x=zo({props:r,name:"MuiPickersMonth"}),{autoFocus:F,className:j,children:Y,disabled:D,selected:O,value:t,tabIndex:l,onClick:S,onKeyDown:i,onFocus:C,onBlur:w,"aria-current":v,"aria-label":m,slots:a,slotProps:n}=x,s=hn(x,Voe),o=Oe.useRef(null),h=joe(x);Gi(()=>{var b;F&&((b=o.current)==null||b.focus())},[F]);const f=(a==null?void 0:a.monthButton)??Woe,u=hi({elementType:f,externalSlotProps:n==null?void 0:n.monthButton,additionalProps:{children:Y,disabled:D,tabIndex:l,ref:o,type:"button",role:"radio","aria-current":v,"aria-checked":O,"aria-label":m,onClick:b=>S(b,t),onKeyDown:b=>i(b,t),onFocus:b=>C(b,t),onBlur:b=>w(b,t)},ownerState:x,className:h.monthButton});return Ce.jsx(Goe,Ge({className:Ln(h.root,j),ownerState:x},s,{children:Ce.jsx(f,Ge({},u))}))});function Yoe(e){return ka("MuiMonthCalendar",e)}Ca("MuiMonthCalendar",["root"]);const Xoe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Zoe=e=>{const{classes:r}=e;return qn({root:["root"]},Yoe,r)};function Koe(e,r){const x=Bo(),F=Ib(),j=zo({props:e,name:r});return Ge({disableFuture:!1,disablePast:!1},j,{minDate:If(x,j.minDate,F.minDate),maxDate:If(x,j.maxDate,F.maxDate)})}const Joe=ln("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:FT,boxSizing:"border-box"}),Qoe=Oe.forwardRef(function(r,x){const F=Koe(r,"MuiMonthCalendar"),{className:j,value:Y,defaultValue:D,referenceDate:O,disabled:t,disableFuture:l,disablePast:S,maxDate:i,minDate:C,onChange:w,shouldDisableMonth:v,readOnly:m,autoFocus:a=!1,onMonthFocus:n,hasFocus:s,onFocusedViewChange:o,monthsPerRow:h=3,timezone:f,gridLabelId:u,slots:b,slotProps:p}=F,E=hn(F,Xoe),{value:g,handleValueChange:c,timezone:y}=C5({name:"MonthCalendar",timezone:f,value:Y,defaultValue:D,onChange:w,valueManager:cv}),A=DT(y),M=_l(),R=Bo(),T=Oe.useMemo(()=>cv.getInitialReferenceValue({value:g,utils:R,props:F,timezone:y,referenceDate:O,granularity:nh.month}),[]),L=F,P=Zoe(L),d=Oe.useMemo(()=>R.getMonth(A),[R,A]),k=Oe.useMemo(()=>g!=null?R.getMonth(g):null,[g,R]),[I,N]=Oe.useState(()=>k||R.getMonth(T)),[B,G]=Ol({name:"MonthCalendar",state:"hasFocus",controlled:s,default:a??!1}),U=pa(ae=>{G(ae),o&&o(ae)}),H=Oe.useCallback(ae=>{const ie=R.startOfMonth(S&&R.isAfter(A,C)?A:C),fe=R.startOfMonth(l&&R.isBefore(A,i)?A:i),Q=R.startOfMonth(ae);return R.isBefore(Q,ie)||R.isAfter(Q,fe)?!0:v?v(Q):!1},[l,S,i,C,A,v,R]),W=pa((ae,ie)=>{if(m)return;const fe=R.setMonth(g??T,ie);c(fe)}),V=pa(ae=>{H(R.setMonth(g??T,ae))||(N(ae),U(!0),n&&n(ae))});Oe.useEffect(()=>{N(ae=>k!==null&&ae!==k?k:ae)},[k]);const $=pa((ae,ie)=>{switch(ae.key){case"ArrowUp":V((12+ie-3)%12),ae.preventDefault();break;case"ArrowDown":V((12+ie+3)%12),ae.preventDefault();break;case"ArrowLeft":V((12+ie+(M?1:-1))%12),ae.preventDefault();break;case"ArrowRight":V((12+ie+(M?-1:1))%12),ae.preventDefault();break}}),Z=pa((ae,ie)=>{V(ie)}),q=pa((ae,ie)=>{I===ie&&U(!1)});return Ce.jsx(Joe,Ge({ref:x,className:Ln(P.root,j),ownerState:L,role:"radiogroup","aria-labelledby":u},E,{children:w5(R,g??T).map(ae=>{const ie=R.getMonth(ae),fe=R.format(ae,"monthShort"),Q=R.format(ae,"month"),J=ie===k,oe=t||H(ae);return Ce.jsx($oe,{selected:J,value:ie,onClick:W,onKeyDown:$,autoFocus:B&&ie===I,disabled:oe,tabIndex:ie===I&&!oe?0:-1,onFocus:Z,onBlur:q,"aria-current":d===ie?"date":void 0,"aria-label":Q,monthsPerRow:h,slots:b,slotProps:p,children:fe},fe)})}))});function qoe(e){return ka("MuiPickersYear",e)}const Jw=Ca("MuiPickersYear",["root","yearButton","selected","disabled"]),ese=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],tse=e=>{const{disabled:r,selected:x,classes:F}=e;return qn({root:["root"],yearButton:["yearButton",r&&"disabled",x&&"selected"]},qoe,F)},rse=ln("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,r)=>[r.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),nse=ln("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,r)=>[r.yearButton,{[`&.${Jw.disabled}`]:r.disabled},{[`&.${Jw.selected}`]:r.selected}]})(({theme:e})=>Ge({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Sc(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sc(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Jw.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Jw.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ase=Oe.memo(function(r){const x=zo({props:r,name:"MuiPickersYear"}),{autoFocus:F,className:j,children:Y,disabled:D,selected:O,value:t,tabIndex:l,onClick:S,onKeyDown:i,onFocus:C,onBlur:w,"aria-current":v,slots:m,slotProps:a}=x,n=hn(x,ese),s=Oe.useRef(null),o=tse(x);Gi(()=>{var u;F&&((u=s.current)==null||u.focus())},[F]);const h=(m==null?void 0:m.yearButton)??nse,f=hi({elementType:h,externalSlotProps:a==null?void 0:a.yearButton,additionalProps:{children:Y,disabled:D,tabIndex:l,ref:s,type:"button",role:"radio","aria-current":v,"aria-checked":O,onClick:u=>S(u,t),onKeyDown:u=>i(u,t),onFocus:u=>C(u,t),onBlur:u=>w(u,t)},ownerState:x,className:o.yearButton});return Ce.jsx(rse,Ge({className:Ln(o.root,j),ownerState:x},n,{children:Ce.jsx(h,Ge({},f))}))});function ise(e){return ka("MuiYearCalendar",e)}Ca("MuiYearCalendar",["root"]);const ose=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId","slots","slotProps"],sse=e=>{const{classes:r}=e;return qn({root:["root"]},ise,r)};function lse(e,r){const x=Bo(),F=Ib(),j=zo({props:e,name:r});return Ge({disablePast:!1,disableFuture:!1},j,{yearsPerRow:j.yearsPerRow??3,minDate:If(x,j.minDate,F.minDate),maxDate:If(x,j.maxDate,F.maxDate)})}const use=ln("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:FT,maxHeight:Aae,boxSizing:"border-box",position:"relative"}),cse=Oe.forwardRef(function(r,x){const F=lse(r,"MuiYearCalendar"),{autoFocus:j,className:Y,value:D,defaultValue:O,referenceDate:t,disabled:l,disableFuture:S,disablePast:i,maxDate:C,minDate:w,onChange:v,readOnly:m,shouldDisableYear:a,onYearFocus:n,hasFocus:s,onFocusedViewChange:o,yearsPerRow:h,timezone:f,gridLabelId:u,slots:b,slotProps:p}=F,E=hn(F,ose),{value:g,handleValueChange:c,timezone:y}=C5({name:"YearCalendar",timezone:f,value:D,defaultValue:O,onChange:v,valueManager:cv}),A=DT(y),M=_l(),R=Bo(),T=Oe.useMemo(()=>cv.getInitialReferenceValue({value:g,utils:R,props:F,timezone:y,referenceDate:t,granularity:nh.year}),[]),L=F,P=sse(L),d=Oe.useMemo(()=>R.getYear(A),[R,A]),k=Oe.useMemo(()=>g!=null?R.getYear(g):null,[g,R]),[I,N]=Oe.useState(()=>k||R.getYear(T)),[B,G]=Ol({name:"YearCalendar",state:"hasFocus",controlled:s,default:j??!1}),U=pa(fe=>{G(fe),o&&o(fe)}),H=Oe.useCallback(fe=>{if(i&&R.isBeforeYear(fe,A)||S&&R.isAfterYear(fe,A)||w&&R.isBeforeYear(fe,w)||C&&R.isAfterYear(fe,C))return!0;if(!a)return!1;const Q=R.startOfYear(fe);return a(Q)},[S,i,C,w,A,a,R]),W=pa((fe,Q)=>{if(m)return;const J=R.setYear(g??T,Q);c(J)}),V=pa(fe=>{H(R.setYear(g??T,fe))||(N(fe),U(!0),n==null||n(fe))});Oe.useEffect(()=>{N(fe=>k!==null&&fe!==k?k:fe)},[k]);const $=pa((fe,Q)=>{switch(fe.key){case"ArrowUp":V(Q-h),fe.preventDefault();break;case"ArrowDown":V(Q+h),fe.preventDefault();break;case"ArrowLeft":V(Q+(M?1:-1)),fe.preventDefault();break;case"ArrowRight":V(Q+(M?-1:1)),fe.preventDefault();break}}),Z=pa((fe,Q)=>{V(Q)}),q=pa((fe,Q)=>{I===Q&&U(!1)}),ae=Oe.useRef(null),ie=vi(x,ae);return Oe.useEffect(()=>{if(j||ae.current===null)return;const fe=ae.current.querySelector('[tabindex="0"]');if(!fe)return;const Q=fe.offsetHeight,J=fe.offsetTop,oe=ae.current.clientHeight,K=ae.current.scrollTop,ne=J+Q;Q>oe||J{const Q=R.getYear(fe),J=Q===k,oe=l||H(fe);return Ce.jsx(ase,{selected:J,value:Q,onClick:W,onKeyDown:$,autoFocus:B&&Q===I,disabled:oe,tabIndex:Q===I&&!oe?0:-1,onFocus:Z,onBlur:q,"aria-current":d===Q?"date":void 0,yearsPerRow:h,slots:b,slotProps:p,children:R.format(fe,"year")},R.format(fe,"year"))})}))}),fse=e=>ka("MuiPickersCalendarHeader",e),dse=Ca("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),hse=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],vse=["ownerState"],pse=e=>{const{classes:r}=e;return qn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},fse,r)},gse=ln("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),mse=ln("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,r)=>r.labelContainer})(({theme:e})=>Ge({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),yse=ln("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,r)=>r.label})({marginRight:6}),xse=ln(dl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,r)=>r.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${dse.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),bse=ln(sae,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,r)=>r.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),wse=Oe.forwardRef(function(r,x){const F=vv(),j=Bo(),Y=zo({props:r,name:"MuiPickersCalendarHeader"}),{slots:D,slotProps:O,currentMonth:t,disabled:l,disableFuture:S,disablePast:i,maxDate:C,minDate:w,onMonthChange:v,onViewChange:m,view:a,reduceAnimations:n,views:s,labelId:o,className:h,timezone:f,format:u=`${j.formats.month} ${j.formats.year}`}=Y,b=hn(Y,hse),p=Y,E=pse(Y),g=(D==null?void 0:D.switchViewButton)??xse,c=hi({elementType:g,externalSlotProps:O==null?void 0:O.switchViewButton,additionalProps:{size:"small","aria-label":F.calendarViewSwitchingButtonAriaLabel(a)},ownerState:p,className:E.switchViewButton}),y=(D==null?void 0:D.switchViewIcon)??bse,A=hi({elementType:y,externalSlotProps:O==null?void 0:O.switchViewIcon,ownerState:p,className:E.switchViewIcon}),M=hn(A,vse),R=()=>v(j.addMonths(t,1),"left"),T=()=>v(j.addMonths(t,-1),"right"),L=Cae(t,{disableFuture:S,maxDate:C,timezone:f}),P=Mae(t,{disablePast:i,minDate:w,timezone:f}),d=()=>{if(!(s.length===1||!m||l))if(s.length===2)m(s.find(I=>I!==a)||s[0]);else{const I=s.indexOf(a)!==0?0:1;m(s[I])}};if(s.length===1&&s[0]==="year")return null;const k=j.formatByString(t,u);return Ce.jsxs(gse,Ge({},b,{ownerState:p,className:Ln(h,E.root),ref:x,children:[Ce.jsxs(mse,{role:"presentation",onClick:d,ownerState:p,"aria-live":"polite",className:E.labelContainer,children:[Ce.jsx(wO,{reduceAnimations:n,transKey:k,children:Ce.jsx(yse,{id:o,ownerState:p,className:E.label,children:k})}),s.length>1&&!l&&Ce.jsx(g,Ge({},c,{children:Ce.jsx(y,Ge({},M))}))]}),Ce.jsx(jy,{in:a==="day",children:Ce.jsx(xae,{slots:D,slotProps:O,onGoToPrevious:T,isPreviousDisabled:P,previousLabel:F.previousMonth,onGoToNext:R,isNextDisabled:L,nextLabel:F.nextMonth})})]}))}),Tse="@media (prefers-reduced-motion: reduce)",Xm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),qL=Xm&&Xm[1]?parseInt(Xm[1],10):null,eI=Xm&&Xm[2]?parseInt(Xm[2],10):null,Sse=qL&&qL<10||eI&&eI<13||!1,SO=()=>H7(Tse,{defaultMatches:!1})||Sse,Cse=e=>ka("MuiDateCalendar",e);Ca("MuiDateCalendar",["root","viewTransitionContainer"]);const Mse=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Ase=e=>{const{classes:r}=e;return qn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Cse,r)};function Ese(e,r){const x=Bo(),F=Ib(),j=SO(),Y=zo({props:e,name:r});return Ge({},Y,{loading:Y.loading??!1,disablePast:Y.disablePast??!1,disableFuture:Y.disableFuture??!1,openTo:Y.openTo??"day",views:Y.views??["year","day"],reduceAnimations:Y.reduceAnimations??j,renderLoading:Y.renderLoading??(()=>Ce.jsx("span",{children:"..."})),minDate:If(x,Y.minDate,F.minDate),maxDate:If(x,Y.maxDate,F.maxDate)})}const Pse=ln(Eae,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"flex",flexDirection:"column",height:b5}),Lse=ln(wO,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,r)=>r.viewTransitionContainer})({}),CO=Oe.forwardRef(function(r,x){const F=Bo(),j=Ui(),Y=Ese(r,"MuiDateCalendar"),{autoFocus:D,onViewChange:O,value:t,defaultValue:l,referenceDate:S,disableFuture:i,disablePast:C,onChange:w,onYearChange:v,onMonthChange:m,reduceAnimations:a,shouldDisableDate:n,shouldDisableMonth:s,shouldDisableYear:o,view:h,views:f,openTo:u,className:b,disabled:p,readOnly:E,minDate:g,maxDate:c,disableHighlightToday:y,focusedView:A,onFocusedViewChange:M,showDaysOutsideCurrentMonth:R,fixedWeekNumber:T,dayOfWeekFormatter:L,slots:P,slotProps:d,loading:k,renderLoading:I,displayWeekNumber:N,yearsPerRow:B,monthsPerRow:G,timezone:U}=Y,H=hn(Y,Mse),{value:W,handleValueChange:V,timezone:$}=C5({name:"DateCalendar",timezone:U,value:t,defaultValue:l,onChange:w,valueManager:cv}),{view:Z,setView:q,focusedView:ae,setFocusedView:ie,goToNextView:fe,setValueAndGoToNextView:Q}=q9({view:h,views:f,openTo:u,onChange:V,onViewChange:O,autoFocus:D,focusedView:A,onFocusedViewChange:M}),{referenceDate:J,calendarState:oe,changeFocusedDay:K,changeMonth:ne,handleChangeMonth:ce,isDateDisabled:re,onMonthSwitchingAnimationEnd:ee}=moe({value:W,referenceDate:S,reduceAnimations:a,onMonthChange:m,minDate:g,maxDate:c,shouldDisableDate:n,disablePast:C,disableFuture:i,timezone:$}),de=p&&W||g,le=p&&W||c,he=`${j}-grid-label`,xe=ae!==null,Ee=(P==null?void 0:P.calendarHeader)??wse,Se=hi({elementType:Ee,externalSlotProps:d==null?void 0:d.calendarHeader,additionalProps:{views:f,view:Z,currentMonth:oe.currentMonth,onViewChange:q,onMonthChange:(st,vt)=>ce({newMonth:st,direction:vt}),minDate:de,maxDate:le,disabled:p,disablePast:C,disableFuture:i,reduceAnimations:a,timezone:$,labelId:he},ownerState:Y}),ke=pa(st=>{const vt=F.startOfMonth(st),at=F.endOfMonth(st),nt=re(st)?Tx({utils:F,date:st,minDate:F.isBefore(g,vt)?vt:g,maxDate:F.isAfter(c,at)?at:c,disablePast:C,disableFuture:i,isDateDisabled:re,timezone:$}):st;nt?(Q(nt,"finish"),m==null||m(vt)):(fe(),ne(vt)),K(nt,!0)}),Te=pa(st=>{const vt=F.startOfYear(st),at=F.endOfYear(st),nt=re(st)?Tx({utils:F,date:st,minDate:F.isBefore(g,vt)?vt:g,maxDate:F.isAfter(c,at)?at:c,disablePast:C,disableFuture:i,isDateDisabled:re,timezone:$}):st;nt?(Q(nt,"finish"),v==null||v(nt)):(fe(),ne(vt)),K(nt,!0)}),Ae=pa(st=>V(st&&s2(F,st,W??J),"finish",Z));Oe.useEffect(()=>{W!=null&&F.isValid(W)&&ne(W)},[W]);const be=Y,Ie=Ase(be),Ue={disablePast:C,disableFuture:i,maxDate:c,minDate:g},Ne={disableHighlightToday:y,readOnly:E,disabled:p,timezone:$,gridLabelId:he,slots:P,slotProps:d},ze=Oe.useRef(Z);Oe.useEffect(()=>{ze.current!==Z&&(ae===ze.current&&ie(Z,!0),ze.current=Z)},[ae,ie,Z]);const $e=Oe.useMemo(()=>[W],[W]);return Ce.jsxs(Pse,Ge({ref:x,className:Ln(Ie.root,b),ownerState:be},H,{children:[Ce.jsx(Ee,Ge({},Se,{slots:P,slotProps:d})),Ce.jsx(Lse,{reduceAnimations:a,className:Ie.viewTransitionContainer,transKey:Z,ownerState:be,children:Ce.jsxs("div",{children:[Z==="year"&&Ce.jsx(cse,Ge({},Ue,Ne,{value:W,onChange:Te,shouldDisableYear:o,hasFocus:xe,onFocusedViewChange:st=>ie("year",st),yearsPerRow:B,referenceDate:J})),Z==="month"&&Ce.jsx(Qoe,Ge({},Ue,Ne,{hasFocus:xe,className:b,value:W,onChange:ke,shouldDisableMonth:s,onFocusedViewChange:st=>ie("month",st),monthsPerRow:G,referenceDate:J})),Z==="day"&&Ce.jsx(Uoe,Ge({},oe,Ue,Ne,{onMonthSwitchingAnimationEnd:ee,onFocusedDayChange:K,reduceAnimations:a,selectedDays:$e,onSelectedDaysChange:Ae,shouldDisableDate:n,shouldDisableMonth:s,shouldDisableYear:o,hasFocus:xe,onFocusedViewChange:st=>ie("day",st),showDaysOutsideCurrentMonth:R,fixedWeekNumber:T,dayOfWeekFormatter:L,displayWeekNumber:N,loading:k,renderLoading:I}))]})})]}))});function Ise(e){return ka("MuiPickersToolbar",e)}Ca("MuiPickersToolbar",["root","content"]);const Rse=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],kse=e=>{const{classes:r,isLandscape:x}=e;return qn({root:["root"],content:["content"],penIconButton:["penIconButton",x&&"penIconButtonLandscape"]},Ise,r)},Dse=ln("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Ose=ln("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,r)=>r.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Fse=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersToolbar"}),{children:j,className:Y,toolbarTitle:D,hidden:O,titleId:t}=F,l=hn(F,Rse),S=F,i=kse(S);return O?null:Ce.jsxs(Dse,Ge({ref:x,className:Ln(i.root,Y),ownerState:S},l,{children:[Ce.jsx(ea,{color:"text.secondary",variant:"overline",id:t,children:D}),Ce.jsx(Ose,{className:i.content,ownerState:S,children:j})]}))});function _se(e){return ka("MuiDatePickerToolbar",e)}Ca("MuiDatePickerToolbar",["root","title"]);const zse=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Bse=e=>{const{classes:r}=e;return qn({root:["root"],title:["title"]},_se,r)},Nse=ln(Fse,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,r)=>r.root})({}),Use=ln(ea,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,r)=>r.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Hse=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiDatePickerToolbar"}),{value:j,isLandscape:Y,toolbarFormat:D,toolbarPlaceholder:O="––",views:t,className:l}=F,S=hn(F,zse),i=Bo(),C=vv(),w=Bse(F),v=Oe.useMemo(()=>{if(!j)return O;const a=T5(i,{format:D,views:t},!0);return i.formatByString(j,a)},[j,D,O,i,t]),m=F;return Ce.jsx(Nse,Ge({ref:x,toolbarTitle:C.datePickerToolbarTitle,isLandscape:Y,className:Ln(w.root,l)},S,{children:Ce.jsx(Use,{variant:"h4",align:Y?"left":"center",ownerState:m,className:w.title,children:v})}))});function MO(e,r){const x=Bo(),F=Ib(),j=zo({props:e,name:r}),Y=Oe.useMemo(()=>{var D;return((D=j.localeText)==null?void 0:D.toolbarTitle)==null?j.localeText:Ge({},j.localeText,{datePickerToolbarTitle:j.localeText.toolbarTitle})},[j.localeText]);return Ge({},j,{localeText:Y},bae({views:j.views,openTo:j.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:j.disableFuture??!1,disablePast:j.disablePast??!1,minDate:If(x,j.minDate,F.minDate),maxDate:If(x,j.maxDate,F.maxDate),slots:Ge({toolbar:Hse},j.slots)})}function Vse(e){return ka("MuiPickersPopper",e)}Ca("MuiPickersPopper",["root","paper"]);const jse=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Gse=e=>{const{classes:r}=e;return qn({root:["root"],paper:["paper"]},Vse,r)},Wse=ln(Xp,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({zIndex:e.zIndex.modal})),$se=ln(Ri,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,r)=>r.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function Yse(e,r){return r.documentElement.clientWidth{if(!e)return;function t(){Y.current=!0}return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),Y.current=!1}},[e]);const D=pa(t=>{if(!Y.current)return;const l=F.current;F.current=!1;const S=oo(j.current);if(!j.current||"clientX"in t&&Yse(t,S))return;if(x.current){x.current=!1;return}let i;t.composedPath?i=t.composedPath().indexOf(j.current)>-1:i=!S.documentElement.contains(t.target)||j.current.contains(t.target),!i&&!l&&r(t)}),O=()=>{F.current=!0};return Oe.useEffect(()=>{if(e){const t=oo(j.current),l=()=>{x.current=!0};return t.addEventListener("touchstart",D),t.addEventListener("touchmove",l),()=>{t.removeEventListener("touchstart",D),t.removeEventListener("touchmove",l)}}},[e,D]),Oe.useEffect(()=>{if(e){const t=oo(j.current);return t.addEventListener("click",D),()=>{t.removeEventListener("click",D),F.current=!1}}},[e,D]),[j,O,O]}const Zse=Oe.forwardRef((e,r)=>{const{PaperComponent:x,popperPlacement:F,ownerState:j,children:Y,paperSlotProps:D,paperClasses:O,onPaperClick:t,onPaperTouchStart:l}=e,S=hn(e,jse),i=Ge({},j,{placement:F}),C=hi({elementType:x,externalSlotProps:D,additionalProps:{tabIndex:-1,elevation:8,ref:r},className:O,ownerState:i});return Ce.jsx(x,Ge({},S,C,{onClick:w=>{var v;t(w),(v=C.onClick)==null||v.call(C,w)},onTouchStart:w=>{var v;l(w),(v=C.onTouchStart)==null||v.call(C,w)},ownerState:i,children:Y}))});function Kse(e){const r=zo({props:e,name:"MuiPickersPopper"}),{anchorEl:x,children:F,containerRef:j=null,shouldRestoreFocus:Y,onBlur:D,onDismiss:O,open:t,role:l,placement:S,slots:i,slotProps:C,reduceAnimations:w}=r;Oe.useEffect(()=>{function R(T){t&&T.key==="Escape"&&O()}return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[O,t]);const v=Oe.useRef(null);Oe.useEffect(()=>{l==="tooltip"||Y&&!Y()||(t?v.current=bc(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[t,l,Y]);const[m,a,n]=Xse(t,D??O),s=Oe.useRef(null),o=vi(s,j),h=vi(o,m),f=r,u=Gse(f),b=SO(),p=w??b,E=R=>{R.key==="Escape"&&(R.stopPropagation(),O())},g=(i==null?void 0:i.desktopTransition)??p?jy:Ey,c=(i==null?void 0:i.desktopTrapFocus)??o5,y=(i==null?void 0:i.desktopPaper)??$se,A=(i==null?void 0:i.popper)??Wse,M=hi({elementType:A,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:l,open:t,anchorEl:x,placement:S,onKeyDown:E},className:u.root,ownerState:r});return Ce.jsx(A,Ge({},M,{children:({TransitionProps:R,placement:T})=>Ce.jsx(c,Ge({open:t,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:l==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:Ce.jsx(g,Ge({},R,C==null?void 0:C.desktopTransition,{children:Ce.jsx(Zse,{PaperComponent:y,ownerState:f,popperPlacement:T,ref:h,onPaperClick:a,onPaperTouchStart:n,paperClasses:u.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:F})}))}))}))}const Jse=({open:e,onOpen:r,onClose:x})=>{const F=Oe.useRef(typeof e=="boolean").current,[j,Y]=Oe.useState(!1);Oe.useEffect(()=>{if(F){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");Y(e)}},[F,e]);const D=Oe.useCallback(O=>{F||Y(O),O&&r&&r(),!O&&x&&x()},[F,r,x]);return{isOpen:j,setIsOpen:D}},Qse=e=>{const{action:r,hasChanged:x,dateState:F,isControlled:j}=e,Y=!j&&!F.hasBeenModifiedSinceMount;return r.name==="setValueFromField"?!0:r.name==="setValueFromAction"?Y&&["accept","today","clear"].includes(r.pickerAction)?!0:x(F.lastPublishedValue):r.name==="setValueFromView"&&r.selectionState!=="shallow"||r.name==="setValueFromShortcut"?Y?!0:x(F.lastPublishedValue):!1},qse=e=>{const{action:r,hasChanged:x,dateState:F,isControlled:j,closeOnSelect:Y}=e,D=!j&&!F.hasBeenModifiedSinceMount;return r.name==="setValueFromAction"?D&&["accept","today","clear"].includes(r.pickerAction)?!0:x(F.lastCommittedValue):r.name==="setValueFromView"&&r.selectionState==="finish"&&Y?D?!0:x(F.lastCommittedValue):r.name==="setValueFromShortcut"?r.changeImportance==="accept"&&x(F.lastCommittedValue):!1},ele=e=>{const{action:r,closeOnSelect:x}=e;return r.name==="setValueFromAction"?!0:r.name==="setValueFromView"?r.selectionState==="finish"&&x:r.name==="setValueFromShortcut"?r.changeImportance==="accept":!1},tle=({props:e,valueManager:r,valueType:x,wrapperVariant:F,validator:j})=>{const{onAccept:Y,onChange:D,value:O,defaultValue:t,closeOnSelect:l=F==="desktop",timezone:S}=e,{current:i}=Oe.useRef(t),{current:C}=Oe.useRef(O!==void 0),w=Bo(),v=Tg(),{isOpen:m,setIsOpen:a}=Jse(e),{timezone:n,value:s,handleValueChange:o}=S5({timezone:S,value:O,defaultValue:i,onChange:D,valueManager:r}),[h,f]=Oe.useState(()=>{let B;return s!==void 0?B=s:i!==void 0?B=i:B=r.emptyValue,{draft:B,lastPublishedValue:B,lastCommittedValue:B,lastControlledValue:s,hasBeenModifiedSinceMount:!1}});uO(Ge({},e,{value:h.draft,timezone:n}),j,r.isSameError,r.defaultErrorState);const u=pa(B=>{const G={action:B,dateState:h,hasChanged:Z=>!r.areValuesEqual(w,B.value,Z),isControlled:C,closeOnSelect:l},U=Qse(G),H=qse(G),W=ele(G);f(Z=>Ge({},Z,{draft:B.value,lastPublishedValue:U?B.value:Z.lastPublishedValue,lastCommittedValue:H?B.value:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let V=null;const $=()=>(V||(V={validationError:B.name==="setValueFromField"?B.context.validationError:j({adapter:v,value:B.value,props:Ge({},e,{value:B.value,timezone:n})})},B.name==="setValueFromShortcut"&&(V.shortcut=B.shortcut)),V);U&&o(B.value,$()),H&&Y&&Y(B.value,$()),W&&a(!1)});if(s!==void 0&&(h.lastControlledValue===void 0||!r.areValuesEqual(w,h.lastControlledValue,s))){const B=r.areValuesEqual(w,h.draft,s);f(G=>Ge({},G,{lastControlledValue:s},B?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const b=pa(()=>{u({value:r.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),p=pa(()=>{u({value:h.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),E=pa(()=>{u({value:h.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),g=pa(()=>{u({value:h.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),c=pa(()=>{u({value:r.getTodayValue(w,n,x),name:"setValueFromAction",pickerAction:"today"})}),y=pa(B=>{B.preventDefault(),a(!0)}),A=pa(B=>{B==null||B.preventDefault(),a(!1)}),M=pa((B,G="partial")=>u({name:"setValueFromView",value:B,selectionState:G})),R=pa((B,G,U)=>u({name:"setValueFromShortcut",value:B,changeImportance:G,shortcut:U})),T=pa((B,G)=>u({name:"setValueFromField",value:B,context:G})),L={onClear:b,onAccept:p,onDismiss:E,onCancel:g,onSetToday:c,onOpen:y,onClose:A},P={value:h.draft,onChange:T},d=Oe.useMemo(()=>r.cleanValue(w,h.draft),[w,r,h.draft]),k={value:d,onChange:M,onClose:A,open:m},N=Ge({},L,{value:d,onChange:M,onSelectShortcut:R,isValid:B=>{const G=j({adapter:v,value:B,props:Ge({},e,{value:B,timezone:n})});return!r.hasError(G)}});return{open:m,fieldProps:P,viewProps:k,layoutProps:N,actions:L}},rle=["className","sx"],nle=({props:e,propsFromPickerValue:r,additionalViewProps:x,autoFocusView:F,rendererInterceptor:j,fieldRef:Y})=>{const{onChange:D,open:O,onClose:t}=r,{view:l,views:S,openTo:i,onViewChange:C,viewRenderers:w,timezone:v}=e,m=hn(e,rle),{view:a,setView:n,defaultView:s,focusedView:o,setFocusedView:h,setValueAndGoToNextView:f}=q9({view:l,views:S,openTo:i,onChange:D,onViewChange:C,autoFocus:F}),{hasUIView:u,viewModeLookup:b}=Oe.useMemo(()=>S.reduce((M,R)=>{let T;return w[R]!=null?T="UI":T="field",M.viewModeLookup[R]=T,T==="UI"&&(M.hasUIView=!0),M},{hasUIView:!1,viewModeLookup:{}}),[w,S]),p=Oe.useMemo(()=>S.reduce((M,R)=>w[R]!=null&&Tae(R)?M+1:M,0),[w,S]),E=b[a],g=pa(()=>E==="UI"),[c,y]=Oe.useState(E==="UI"?a:null);return c!==a&&b[a]==="UI"&&y(a),Gi(()=>{E==="field"&&O&&(t(),setTimeout(()=>{var M,R;(M=Y==null?void 0:Y.current)==null||M.setSelectedSections(a),(R=Y==null?void 0:Y.current)==null||R.focusField(a)}))},[a]),Gi(()=>{if(!O)return;let M=a;E==="field"&&c!=null&&(M=c),M!==s&&b[M]==="UI"&&b[s]==="UI"&&(M=s),M!==a&&n(M),h(M,!0)},[O]),{hasUIView:u,shouldRestoreFocus:g,layoutProps:{views:S,view:c,onViewChange:n},renderCurrentView:()=>{if(c==null)return null;const M=w[c];if(M==null)return null;const R=Ge({},m,x,r,{views:S,timezone:v,onChange:f,view:c,onViewChange:n,focusedView:o,onFocusedViewChange:h,showViewSwitcher:p>1,timeViewsCount:p});return j?j(w,c,R):M(R)}}};function tI(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const ale=(e,r)=>{const[x,F]=Oe.useState(tI);return Gi(()=>{const Y=()=>{F(tI())};return window.addEventListener("orientationchange",Y),()=>{window.removeEventListener("orientationchange",Y)}},[]),fie(e,["hours","minutes","seconds"])?!1:(r||x)==="landscape"},ile=({props:e,propsFromPickerValue:r,propsFromPickerViews:x,wrapperVariant:F})=>{const{orientation:j}=e,Y=ale(x.views,j),D=_l();return{layoutProps:Ge({},x,r,{isLandscape:Y,isRtl:D,wrapperVariant:F,disabled:e.disabled,readOnly:e.readOnly})}},AO=({props:e,valueManager:r,valueType:x,wrapperVariant:F,additionalViewProps:j,validator:Y,autoFocusView:D,rendererInterceptor:O,fieldRef:t})=>{const l=tle({props:e,valueManager:r,valueType:x,wrapperVariant:F,validator:Y}),S=nle({props:e,additionalViewProps:j,autoFocusView:D,fieldRef:t,propsFromPickerValue:l.viewProps,rendererInterceptor:O}),i=ile({props:e,wrapperVariant:F,propsFromPickerValue:l.layoutProps,propsFromPickerViews:S.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:S.renderCurrentView,hasUIView:S.hasUIView,shouldRestoreFocus:S.shouldRestoreFocus,layoutProps:i.layoutProps}};function EO(e){return ka("MuiPickersLayout",e)}const R0=Ca("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),ole=["onAccept","onClear","onCancel","onSetToday","actions"];function sle(e){const{onAccept:r,onClear:x,onCancel:F,onSetToday:j,actions:Y}=e,D=hn(e,ole),O=vv();if(Y==null||Y.length===0)return null;const t=Y==null?void 0:Y.map(l=>{switch(l){case"clear":return Ce.jsx($i,{onClick:x,children:O.clearButtonLabel},l);case"cancel":return Ce.jsx($i,{onClick:F,children:O.cancelButtonLabel},l);case"accept":return Ce.jsx($i,{onClick:r,children:O.okButtonLabel},l);case"today":return Ce.jsx($i,{onClick:j,children:O.todayButtonLabel},l);default:return null}});return Ce.jsx(wQ,Ge({},D,{children:t}))}const lle=["items","changeImportance","isLandscape","onChange","isValid"],ule=["getValue"];function cle(e){const{items:r,changeImportance:x="accept",onChange:F,isValid:j}=e,Y=hn(e,lle);if(r==null||r.length===0)return null;const D=r.map(O=>{let{getValue:t}=O,l=hn(O,ule);const S=t({isValid:j});return Ge({},l,{label:l.label,onClick:()=>{F(S,x,l)},disabled:!j(S)})});return Ce.jsx(d5,Ge({dense:!0,sx:[{maxHeight:b5,maxWidth:200,overflow:"auto"},...Array.isArray(Y.sx)?Y.sx:[Y.sx]]},Y,{children:D.map(O=>Ce.jsx(ex,{children:Ce.jsx(Qh,Ge({},O))},O.id??O.label))}))}function fle(e){return e.view!==null}const dle=e=>{const{classes:r,isLandscape:x}=e;return qn({root:["root",x&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},EO,r)},hle=e=>{const{wrapperVariant:r,onAccept:x,onClear:F,onCancel:j,onSetToday:Y,view:D,views:O,onViewChange:t,value:l,onChange:S,onSelectShortcut:i,isValid:C,isLandscape:w,disabled:v,readOnly:m,children:a,slots:n,slotProps:s}=e,o=dle(e),h=(n==null?void 0:n.actionBar)??sle,f=hi({elementType:h,externalSlotProps:s==null?void 0:s.actionBar,additionalProps:{onAccept:x,onClear:F,onCancel:j,onSetToday:Y,actions:r==="desktop"?[]:["cancel","accept"]},className:o.actionBar,ownerState:Ge({},e,{wrapperVariant:r})}),u=Ce.jsx(h,Ge({},f)),b=n==null?void 0:n.toolbar,p=hi({elementType:b,externalSlotProps:s==null?void 0:s.toolbar,additionalProps:{isLandscape:w,onChange:S,value:l,view:D,onViewChange:t,views:O,disabled:v,readOnly:m},className:o.toolbar,ownerState:Ge({},e,{wrapperVariant:r})}),E=fle(p)&&b?Ce.jsx(b,Ge({},p)):null,g=a,c=n==null?void 0:n.tabs,y=D&&c?Ce.jsx(c,Ge({view:D,onViewChange:t,className:o.tabs},s==null?void 0:s.tabs)):null,A=(n==null?void 0:n.shortcuts)??cle,M=hi({elementType:A,externalSlotProps:s==null?void 0:s.shortcuts,additionalProps:{isValid:C,isLandscape:w,onChange:i},className:o.shortcuts,ownerState:{isValid:C,isLandscape:w,onChange:i,wrapperVariant:r}}),R=D&&A?Ce.jsx(A,Ge({},M)):null;return{toolbar:E,content:g,tabs:y,actionBar:u,shortcuts:R}},vle=e=>{const{isLandscape:r,classes:x}=e;return qn({root:["root",r&&"landscape"],contentWrapper:["contentWrapper"]},EO,x)},ple=ln("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${R0.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${R0.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${R0.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${R0.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${R0.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${R0.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${R0.shortcuts}`]:{gridColumn:3}}}]}),gle=ln("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,r)=>r.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),PO=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiPickersLayout"}),{toolbar:j,content:Y,tabs:D,actionBar:O,shortcuts:t}=hle(F),{sx:l,className:S,isLandscape:i,wrapperVariant:C}=F,w=vle(F);return Ce.jsxs(ple,{ref:x,sx:l,className:Ln(S,w.root),ownerState:F,children:[i?t:j,i?j:t,Ce.jsx(gle,{className:w.contentWrapper,children:C==="desktop"?Ce.jsxs(Oe.Fragment,{children:[Y,D]}):Ce.jsxs(Oe.Fragment,{children:[D,Y]})}),O]})}),mle=["props","getOpenDialogAriaText"],yle=["ownerState"],xle=["ownerState"],ble=e=>{var ie;let{props:r,getOpenDialogAriaText:x}=e,F=hn(e,mle);const{slots:j,slotProps:Y,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,name:v,label:m,inputRef:a,readOnly:n,disabled:s,autoFocus:o,localeText:h,reduceAnimations:f}=r,u=Bo(),b=Oe.useRef(null),p=Oe.useRef(null),E=Ui(),g=((ie=Y==null?void 0:Y.toolbar)==null?void 0:ie.hidden)??!1,{open:c,actions:y,hasUIView:A,layoutProps:M,renderCurrentView:R,shouldRestoreFocus:T,fieldProps:L}=AO(Ge({},F,{props:r,fieldRef:p,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),P=j.inputAdornment??c5,d=hi({elementType:P,externalSlotProps:Y==null?void 0:Y.inputAdornment,additionalProps:{position:"end"},ownerState:r}),k=hn(d,yle),I=j.openPickerButton??dl,N=hi({elementType:I,externalSlotProps:Y==null?void 0:Y.openPickerButton,additionalProps:{disabled:s||n,onClick:c?y.onClose:y.onOpen,"aria-label":x(L.value,u),edge:k.position},ownerState:r}),B=hn(N,xle),G=j.openPickerIcon,U=j.field,H=hi({elementType:U,externalSlotProps:Y==null?void 0:Y.field,additionalProps:Ge({},L,g&&{id:E},{readOnly:n,disabled:s,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,label:m,name:v,autoFocus:o&&!r.open,focused:c?!0:void 0},a?{inputRef:a}:{}),ownerState:r});A&&(H.InputProps=Ge({},H.InputProps,{ref:b},!r.disableOpenPicker&&{[`${k.position}Adornment`]:Ce.jsx(P,Ge({},k,{children:Ce.jsx(I,Ge({},B,{children:Ce.jsx(G,Ge({},Y==null?void 0:Y.openPickerIcon))}))}))}));const W=Ge({textField:j.textField,clearIcon:j.clearIcon,clearButton:j.clearButton},H.slots),V=j.layout??PO;let $=E;g&&(m?$=`${E}-label`:$=void 0);const Z=Ge({},Y,{toolbar:Ge({},Y==null?void 0:Y.toolbar,{titleId:E}),popper:Ge({"aria-labelledby":$},Y==null?void 0:Y.popper)}),q=vi(p,H.unstableFieldRef);return{renderPicker:()=>Ce.jsxs(kT,{localeText:h,children:[Ce.jsx(U,Ge({},H,{slots:W,slotProps:Z,unstableFieldRef:q})),Ce.jsx(Kse,Ge({role:"dialog",placement:"bottom-start",anchorEl:b.current},y,{open:c,slots:j,slotProps:Z,shouldRestoreFocus:T,reduceAnimations:f,children:Ce.jsx(V,Ge({},M,Z==null?void 0:Z.layout,{slots:j,slotProps:Z,children:R()}))}))]})}},Zm=({view:e,onViewChange:r,views:x,focusedView:F,onFocusedViewChange:j,value:Y,defaultValue:D,referenceDate:O,onChange:t,className:l,classes:S,disableFuture:i,disablePast:C,minDate:w,maxDate:v,shouldDisableDate:m,shouldDisableMonth:a,shouldDisableYear:n,reduceAnimations:s,onMonthChange:o,monthsPerRow:h,onYearChange:f,yearsPerRow:u,slots:b,slotProps:p,loading:E,renderLoading:g,disableHighlightToday:c,readOnly:y,disabled:A,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:R,sx:T,autoFocus:L,fixedWeekNumber:P,displayWeekNumber:d,timezone:k})=>Ce.jsx(CO,{view:e,onViewChange:r,views:x.filter(WL),focusedView:F&&WL(F)?F:null,onFocusedViewChange:j,value:Y,defaultValue:D,referenceDate:O,onChange:t,className:l,classes:S,disableFuture:i,disablePast:C,minDate:w,maxDate:v,shouldDisableDate:m,shouldDisableMonth:a,shouldDisableYear:n,reduceAnimations:s,onMonthChange:o,monthsPerRow:h,onYearChange:f,yearsPerRow:u,slots:b,slotProps:p,loading:E,renderLoading:g,disableHighlightToday:c,readOnly:y,disabled:A,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:R,sx:T,autoFocus:L,fixedWeekNumber:P,displayWeekNumber:d,timezone:k}),LO=Oe.forwardRef(function(r,x){var l,S;const F=vv(),j=Bo(),Y=MO(r,"MuiDesktopDatePicker"),D=Ge({day:Zm,month:Zm,year:Zm},Y.viewRenderers),O=Ge({},Y,{viewRenderers:D,format:T5(j,Y,!1),yearsPerRow:Y.yearsPerRow??4,slots:Ge({openPickerIcon:cae,field:xO},Y.slots),slotProps:Ge({},Y.slotProps,{field:i=>{var C;return Ge({},yT((C=Y.slotProps)==null?void 0:C.field,i),fO(Y),{ref:x})},toolbar:Ge({hidden:!0},(l=Y.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:t}=ble({props:O,valueManager:cv,valueType:"date",getOpenDialogAriaText:((S=O.localeText)==null?void 0:S.openDatePickerDialogue)??F.openDatePickerDialogue,validator:zT});return t()});LO.propTypes={autoFocus:_r.bool,className:_r.string,closeOnSelect:_r.bool,dayOfWeekFormatter:_r.func,defaultValue:_r.object,disabled:_r.bool,disableFuture:_r.bool,disableHighlightToday:_r.bool,disableOpenPicker:_r.bool,disablePast:_r.bool,displayWeekNumber:_r.bool,enableAccessibleFieldDOMStructure:_r.any,fixedWeekNumber:_r.number,format:_r.string,formatDensity:_r.oneOf(["dense","spacious"]),inputRef:V7,label:_r.node,loading:_r.bool,localeText:_r.object,maxDate:_r.object,minDate:_r.object,monthsPerRow:_r.oneOf([3,4]),name:_r.string,onAccept:_r.func,onChange:_r.func,onClose:_r.func,onError:_r.func,onMonthChange:_r.func,onOpen:_r.func,onSelectedSectionsChange:_r.func,onViewChange:_r.func,onYearChange:_r.func,open:_r.bool,openTo:_r.oneOf(["day","month","year"]),orientation:_r.oneOf(["landscape","portrait"]),readOnly:_r.bool,reduceAnimations:_r.bool,referenceDate:_r.object,renderLoading:_r.func,selectedSections:_r.oneOfType([_r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_r.number]),shouldDisableDate:_r.func,shouldDisableMonth:_r.func,shouldDisableYear:_r.func,showDaysOutsideCurrentMonth:_r.bool,slotProps:_r.object,slots:_r.object,sx:_r.oneOfType([_r.arrayOf(_r.oneOfType([_r.func,_r.object,_r.bool])),_r.func,_r.object]),timezone:_r.string,value:_r.object,view:_r.oneOf(["day","month","year"]),viewRenderers:_r.shape({day:_r.func,month:_r.func,year:_r.func}),views:_r.arrayOf(_r.oneOf(["day","month","year"]).isRequired),yearsPerRow:_r.oneOf([3,4])};const wle=ln(gQ)({[`& .${bx.container}`]:{outline:0},[`& .${bx.paper}`]:{outline:0,minWidth:FT}}),Tle=ln(EQ)({"&:first-of-type":{padding:0}});function Sle(e){const{children:r,onDismiss:x,open:F,slots:j,slotProps:Y}=e,D=(j==null?void 0:j.dialog)??wle,O=(j==null?void 0:j.mobileTransition)??jy;return Ce.jsx(D,Ge({open:F,onClose:x},Y==null?void 0:Y.dialog,{TransitionComponent:O,TransitionProps:Y==null?void 0:Y.mobileTransition,PaperComponent:j==null?void 0:j.mobilePaper,PaperProps:Y==null?void 0:Y.mobilePaper,children:Ce.jsx(Tle,{children:r})}))}const Cle=["props","getOpenDialogAriaText"],Mle=e=>{var I;let{props:r,getOpenDialogAriaText:x}=e,F=hn(e,Cle);const{slots:j,slotProps:Y,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,name:v,label:m,inputRef:a,readOnly:n,disabled:s,localeText:o}=r,h=Bo(),f=Oe.useRef(null),u=Ui(),b=((I=Y==null?void 0:Y.toolbar)==null?void 0:I.hidden)??!1,{open:p,actions:E,layoutProps:g,renderCurrentView:c,fieldProps:y}=AO(Ge({},F,{props:r,fieldRef:f,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),A=j.field,M=hi({elementType:A,externalSlotProps:Y==null?void 0:Y.field,additionalProps:Ge({},y,b&&{id:u},!(s||n)&&{onClick:E.onOpen,onKeyDown:die(E.onOpen)},{readOnly:n??!0,disabled:s,className:D,sx:O,format:t,formatDensity:l,enableAccessibleFieldDOMStructure:S,selectedSections:i,onSelectedSectionsChange:C,timezone:w,label:m,name:v},a?{inputRef:a}:{}),ownerState:r});M.inputProps=Ge({},M.inputProps,{"aria-label":x(y.value,h)});const R=Ge({textField:j.textField},M.slots),T=j.layout??PO;let L=u;b&&(m?L=`${u}-label`:L=void 0);const P=Ge({},Y,{toolbar:Ge({},Y==null?void 0:Y.toolbar,{titleId:u}),mobilePaper:Ge({"aria-labelledby":L},Y==null?void 0:Y.mobilePaper)}),d=vi(f,M.unstableFieldRef);return{renderPicker:()=>Ce.jsxs(kT,{localeText:o,children:[Ce.jsx(A,Ge({},M,{slots:R,slotProps:P,unstableFieldRef:d})),Ce.jsx(Sle,Ge({},E,{open:p,slots:j,slotProps:P,children:Ce.jsx(T,Ge({},g,P==null?void 0:P.layout,{slots:j,slotProps:P,children:c()}))}))]})}},IO=Oe.forwardRef(function(r,x){var l,S;const F=vv(),j=Bo(),Y=MO(r,"MuiMobileDatePicker"),D=Ge({day:Zm,month:Zm,year:Zm},Y.viewRenderers),O=Ge({},Y,{viewRenderers:D,format:T5(j,Y,!1),slots:Ge({field:xO},Y.slots),slotProps:Ge({},Y.slotProps,{field:i=>{var C;return Ge({},yT((C=Y.slotProps)==null?void 0:C.field,i),fO(Y),{ref:x})},toolbar:Ge({hidden:!1},(l=Y.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:t}=Mle({props:O,valueManager:cv,valueType:"date",getOpenDialogAriaText:((S=O.localeText)==null?void 0:S.openDatePickerDialogue)??F.openDatePickerDialogue,validator:zT});return t()});IO.propTypes={autoFocus:_r.bool,className:_r.string,closeOnSelect:_r.bool,dayOfWeekFormatter:_r.func,defaultValue:_r.object,disabled:_r.bool,disableFuture:_r.bool,disableHighlightToday:_r.bool,disableOpenPicker:_r.bool,disablePast:_r.bool,displayWeekNumber:_r.bool,enableAccessibleFieldDOMStructure:_r.any,fixedWeekNumber:_r.number,format:_r.string,formatDensity:_r.oneOf(["dense","spacious"]),inputRef:V7,label:_r.node,loading:_r.bool,localeText:_r.object,maxDate:_r.object,minDate:_r.object,monthsPerRow:_r.oneOf([3,4]),name:_r.string,onAccept:_r.func,onChange:_r.func,onClose:_r.func,onError:_r.func,onMonthChange:_r.func,onOpen:_r.func,onSelectedSectionsChange:_r.func,onViewChange:_r.func,onYearChange:_r.func,open:_r.bool,openTo:_r.oneOf(["day","month","year"]),orientation:_r.oneOf(["landscape","portrait"]),readOnly:_r.bool,reduceAnimations:_r.bool,referenceDate:_r.object,renderLoading:_r.func,selectedSections:_r.oneOfType([_r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_r.number]),shouldDisableDate:_r.func,shouldDisableMonth:_r.func,shouldDisableYear:_r.func,showDaysOutsideCurrentMonth:_r.bool,slotProps:_r.object,slots:_r.object,sx:_r.oneOfType([_r.arrayOf(_r.oneOfType([_r.func,_r.object,_r.bool])),_r.func,_r.object]),timezone:_r.string,value:_r.object,view:_r.oneOf(["day","month","year"]),viewRenderers:_r.shape({day:_r.func,month:_r.func,year:_r.func}),views:_r.arrayOf(_r.oneOf(["day","month","year"]).isRequired),yearsPerRow:_r.oneOf([3,4])};const Ale=["desktopModeMediaQuery"],l2=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiDatePicker"}),{desktopModeMediaQuery:j=hie}=F,Y=hn(F,Ale);return H7(j,{defaultMatches:!0})?Ce.jsx(LO,Ge({ref:x},Y)):Ce.jsx(IO,Ge({ref:x},Y))});var RO={exports:{}};(function(e,r){(function(x,F){e.exports=F()})(Dy,function(){var x=1e3,F=6e4,j=36e5,Y="millisecond",D="second",O="minute",t="hour",l="day",S="week",i="month",C="quarter",w="year",v="date",m="Invalid Date",a=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,n=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var R=["th","st","nd","rd"],T=M%100;return"["+M+(R[(T-20)%10]||R[T]||R[0])+"]"}},o=function(M,R,T){var L=String(M);return!L||L.length>=R?M:""+Array(R+1-L.length).join(T)+M},h={s:o,z:function(M){var R=-M.utcOffset(),T=Math.abs(R),L=Math.floor(T/60),P=T%60;return(R<=0?"+":"-")+o(L,2,"0")+":"+o(P,2,"0")},m:function M(R,T){if(R.date()1)return M(k[0])}else{var I=R.name;u[I]=R,P=I}return!L&&P&&(f=P),P||!L&&f},g=function(M,R){if(p(M))return M.clone();var T=typeof R=="object"?R:{};return T.date=M,T.args=arguments,new y(T)},c=h;c.l=E,c.i=p,c.w=function(M,R){return g(M,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var y=function(){function M(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[b]=!0}var R=M.prototype;return R.parse=function(T){this.$d=function(L){var P=L.date,d=L.utc;if(P===null)return new Date(NaN);if(c.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var k=P.match(a);if(k){var I=k[2]-1||0,N=(k[7]||"0").substring(0,3);return d?new Date(Date.UTC(k[1],I,k[3]||1,k[4]||0,k[5]||0,k[6]||0,N)):new Date(k[1],I,k[3]||1,k[4]||0,k[5]||0,k[6]||0,N)}}return new Date(P)}(T),this.init()},R.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},R.$utils=function(){return c},R.isValid=function(){return this.$d.toString()!==m},R.isSame=function(T,L){var P=g(T);return this.startOf(L)<=P&&P<=this.endOf(L)},R.isAfter=function(T,L){return g(T)25){var S=D(this).startOf(F).add(1,F).date(l),i=D(this).endOf(x);if(S.isBefore(i))return 1}var C=D(this).startOf(F).date(l).startOf(x).subtract(1,"millisecond"),w=this.diff(C,x,!0);return w<0?D(this).startOf("week").week():Math.ceil(w)},O.weeks=function(t){return t===void 0&&(t=null),this.week(t)}}})})(kO);var Ple=kO.exports;const Lle=ph(Ple);var DO={exports:{}};(function(e,r){(function(x,F){e.exports=F()})(Dy,function(){var x={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"},F=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,j=/\d\d/,Y=/\d\d?/,D=/\d*[^-_:/,()\s\d]+/,O={},t=function(m){return(m=+m)+(m>68?1900:2e3)},l=function(m){return function(a){this[m]=+a}},S=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(a){if(!a||a==="Z")return 0;var n=a.match(/([+-]|\d\d)/g),s=60*n[1]+(+n[2]||0);return s===0?0:n[0]==="+"?-s:s}(m)}],i=function(m){var a=O[m];return a&&(a.indexOf?a:a.s.concat(a.f))},C=function(m,a){var n,s=O.meridiem;if(s){for(var o=1;o<=24;o+=1)if(m.indexOf(s(o,0,a))>-1){n=o>12;break}}else n=m===(a?"pm":"PM");return n},w={A:[D,function(m){this.afternoon=C(m,!1)}],a:[D,function(m){this.afternoon=C(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[j,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[Y,l("seconds")],ss:[Y,l("seconds")],m:[Y,l("minutes")],mm:[Y,l("minutes")],H:[Y,l("hours")],h:[Y,l("hours")],HH:[Y,l("hours")],hh:[Y,l("hours")],D:[Y,l("day")],DD:[j,l("day")],Do:[D,function(m){var a=O.ordinal,n=m.match(/\d+/);if(this.day=n[0],a)for(var s=1;s<=31;s+=1)a(s).replace(/\[|\]/g,"")===m&&(this.day=s)}],M:[Y,l("month")],MM:[j,l("month")],MMM:[D,function(m){var a=i("months"),n=(i("monthsShort")||a.map(function(s){return s.slice(0,3)})).indexOf(m)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[D,function(m){var a=i("months").indexOf(m)+1;if(a<1)throw new Error;this.month=a%12||a}],Y:[/[+-]?\d+/,l("year")],YY:[j,function(m){this.year=t(m)}],YYYY:[/\d{4}/,l("year")],Z:S,ZZ:S};function v(m){var a,n;a=m,n=O&&O.formats;for(var s=(m=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,g,c){var y=c&&c.toUpperCase();return g||n[c]||x[c]||n[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,M,R){return M||R.slice(1)})})).match(F),o=s.length,h=0;h-1)return new Date((L==="X"?1e3:1)*T);var d=v(L)(T),k=d.year,I=d.month,N=d.day,B=d.hours,G=d.minutes,U=d.seconds,H=d.milliseconds,W=d.zone,V=new Date,$=N||(k||I?1:V.getDate()),Z=k||V.getFullYear(),q=0;k&&!I||(q=I>0?I-1:V.getMonth());var ae=B||0,ie=G||0,fe=U||0,Q=H||0;return W?new Date(Date.UTC(Z,q,$,ae,ie,fe,Q+60*W.offset*1e3)):P?new Date(Date.UTC(Z,q,$,ae,ie,fe,Q)):new Date(Z,q,$,ae,ie,fe,Q)}catch{return new Date("")}}(f,p,u),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),c&&f!=this.format(p)&&(this.$d=new Date("")),O={}}else if(p instanceof Array)for(var A=p.length,M=1;M<=A;M+=1){b[1]=p[M-1];var R=n.apply(this,b);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}M===A&&(this.$d=new Date(""))}else o.call(this,h)}}})})(DO);var Ile=DO.exports;const Rle=ph(Ile);var OO={exports:{}};(function(e,r){(function(x,F){e.exports=F()})(Dy,function(){var x={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"};return function(F,j,Y){var D=j.prototype,O=D.format;Y.en.formats=x,D.format=function(t){t===void 0&&(t="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,S=function(i,C){return i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,v,m){var a=m&&m.toUpperCase();return v||C[m]||x[m]||C[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n,s,o){return s||o.slice(1)})})}(t,l===void 0?{}:l);return O.call(this,S)}}})})(OO);var kle=OO.exports;const Dle=ph(kle);var FO={exports:{}};(function(e,r){(function(x,F){e.exports=F()})(Dy,function(){return function(x,F,j){F.prototype.isBetween=function(Y,D,O,t){var l=j(Y),S=j(D),i=(t=t||"()")[0]==="(",C=t[1]===")";return(i?this.isAfter(l,O):!this.isBefore(l,O))&&(C?this.isBefore(S,O):!this.isAfter(S,O))||(i?this.isBefore(l,O):!this.isAfter(l,O))&&(C?this.isAfter(S,O):!this.isBefore(S,O))}}})})(FO);var Ole=FO.exports;const Fle=ph(Ole);var _O={exports:{}};(function(e,r){(function(x,F){e.exports=F()})(Dy,function(){return function(x,F){var j=F.prototype,Y=j.format;j.format=function(D){var O=this,t=this.$locale();if(!this.isValid())return Y.bind(this)(D);var l=this.$utils(),S=(D||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(i){switch(i){case"Q":return Math.ceil((O.$M+1)/3);case"Do":return t.ordinal(O.$D);case"gggg":return O.weekYear();case"GGGG":return O.isoWeekYear();case"wo":return t.ordinal(O.week(),"W");case"w":case"ww":return l.s(O.week(),i==="w"?1:2,"0");case"W":case"WW":return l.s(O.isoWeek(),i==="W"?1:2,"0");case"k":case"kk":return l.s(String(O.$H===0?24:O.$H),i==="k"?1:2,"0");case"X":return Math.floor(O.$d.getTime()/1e3);case"x":return O.$d.getTime();case"z":return"["+O.offsetName()+"]";case"zzz":return"["+O.offsetName("long")+"]";default:return i}});return Y.bind(this)(S)}}})})(_O);var _le=_O.exports;const zle=ph(_le);ms.extend(Dle);ms.extend(Lle);ms.extend(Fle);ms.extend(zle);const Ble={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Nle={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},xC=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),rI=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),Ule=(e,r)=>r?(...x)=>e(...x).locale(r):e;class zO{constructor({locale:r,formats:x}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Ble,this.setLocaleToValue=F=>{const j=this.getCurrentLocaleCode();return j===F.locale()?F:F.locale(j)},this.hasUTCPlugin=()=>typeof ms.utc<"u",this.hasTimezonePlugin=()=>typeof ms.tz<"u",this.isSame=(F,j,Y)=>{const D=this.setTimezone(j,this.getTimezone(F));return F.format(Y)===D.format(Y)},this.cleanTimezone=F=>{switch(F){case"default":return;case"system":return ms.tz.guess();default:return F}},this.createSystemDate=F=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const j=ms.tz.guess();return j!=="UTC"?ms.tz(F,j):ms(F)}return ms(F)},this.createUTCDate=F=>{if(!this.hasUTCPlugin())throw new Error(xC);return ms.utc(F)},this.createTZDate=(F,j)=>{if(!this.hasUTCPlugin())throw new Error(xC);if(!this.hasTimezonePlugin())throw new Error(rI);const Y=F!==void 0&&!F.endsWith("Z");return ms(F).tz(this.cleanTimezone(j),Y)},this.getLocaleFormats=()=>{const F=ms.Ls,j=this.locale||"en";let Y=F[j];return Y===void 0&&(Y=F.en),Y.formats},this.adjustOffset=F=>{if(!this.hasTimezonePlugin())return F;const j=this.getTimezone(F);if(j!=="UTC"){const Y=F.tz(this.cleanTimezone(j),!0);if(Y.$offset===(F.$offset??0))return F;F.$offset=Y.$offset}return F},this.date=(F,j="default")=>{if(F===null)return null;let Y;return j==="UTC"?Y=this.createUTCDate(F):j==="system"||j==="default"&&!this.hasTimezonePlugin()?Y=this.createSystemDate(F):Y=this.createTZDate(F,j),this.locale===void 0?Y:Y.locale(this.locale)},this.getInvalidDate=()=>ms(new Date("Invalid date")),this.getTimezone=F=>{var j;if(this.hasTimezonePlugin()){const Y=(j=F.$x)==null?void 0:j.$timezone;if(Y)return Y}return this.hasUTCPlugin()&&F.isUTC()?"UTC":"system"},this.setTimezone=(F,j)=>{if(this.getTimezone(F)===j)return F;if(j==="UTC"){if(!this.hasUTCPlugin())throw new Error(xC);return F.utc()}if(j==="system")return F.local();if(!this.hasTimezonePlugin()){if(j==="default")return F;throw new Error(rI)}return ms.tz(F,this.cleanTimezone(j))},this.toJsDate=F=>F.toDate(),this.parse=(F,j)=>F===""?null:this.dayjs(F,j,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=F=>{const j=this.getLocaleFormats(),Y=D=>D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(O,t,l)=>t||l.slice(1));return F.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(D,O,t)=>{const l=t&&t.toUpperCase();return O||j[t]||Y(j[l])})},this.isValid=F=>F==null?!1:F.isValid(),this.format=(F,j)=>this.formatByString(F,this.formats[j]),this.formatByString=(F,j)=>this.dayjs(F).format(j),this.formatNumber=F=>F,this.isEqual=(F,j)=>F===null&&j===null?!0:F===null||j===null?!1:F.toDate().getTime()===j.toDate().getTime(),this.isSameYear=(F,j)=>this.isSame(F,j,"YYYY"),this.isSameMonth=(F,j)=>this.isSame(F,j,"YYYY-MM"),this.isSameDay=(F,j)=>this.isSame(F,j,"YYYY-MM-DD"),this.isSameHour=(F,j)=>F.isSame(j,"hour"),this.isAfter=(F,j)=>F>j,this.isAfterYear=(F,j)=>this.hasUTCPlugin()?!this.isSameYear(F,j)&&F.utc()>j.utc():F.isAfter(j,"year"),this.isAfterDay=(F,j)=>this.hasUTCPlugin()?!this.isSameDay(F,j)&&F.utc()>j.utc():F.isAfter(j,"day"),this.isBefore=(F,j)=>Fthis.hasUTCPlugin()?!this.isSameYear(F,j)&&F.utc()this.hasUTCPlugin()?!this.isSameDay(F,j)&&F.utc()F>=j&&F<=Y,this.startOfYear=F=>this.adjustOffset(F.startOf("year")),this.startOfMonth=F=>this.adjustOffset(F.startOf("month")),this.startOfWeek=F=>this.adjustOffset(F.startOf("week")),this.startOfDay=F=>this.adjustOffset(F.startOf("day")),this.endOfYear=F=>this.adjustOffset(F.endOf("year")),this.endOfMonth=F=>this.adjustOffset(F.endOf("month")),this.endOfWeek=F=>this.adjustOffset(F.endOf("week")),this.endOfDay=F=>this.adjustOffset(F.endOf("day")),this.addYears=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"year"):F.add(j,"year")),this.addMonths=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"month"):F.add(j,"month")),this.addWeeks=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"week"):F.add(j,"week")),this.addDays=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"day"):F.add(j,"day")),this.addHours=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"hour"):F.add(j,"hour")),this.addMinutes=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"minute"):F.add(j,"minute")),this.addSeconds=(F,j)=>this.adjustOffset(j<0?F.subtract(Math.abs(j),"second"):F.add(j,"second")),this.getYear=F=>F.year(),this.getMonth=F=>F.month(),this.getDate=F=>F.date(),this.getHours=F=>F.hour(),this.getMinutes=F=>F.minute(),this.getSeconds=F=>F.second(),this.getMilliseconds=F=>F.millisecond(),this.setYear=(F,j)=>this.adjustOffset(F.set("year",j)),this.setMonth=(F,j)=>this.adjustOffset(F.set("month",j)),this.setDate=(F,j)=>this.adjustOffset(F.set("date",j)),this.setHours=(F,j)=>this.adjustOffset(F.set("hour",j)),this.setMinutes=(F,j)=>this.adjustOffset(F.set("minute",j)),this.setSeconds=(F,j)=>this.adjustOffset(F.set("second",j)),this.setMilliseconds=(F,j)=>this.adjustOffset(F.set("millisecond",j)),this.getDaysInMonth=F=>F.daysInMonth(),this.getWeekArray=F=>{const j=this.setLocaleToValue(F),Y=this.startOfWeek(this.startOfMonth(j)),D=this.endOfWeek(this.endOfMonth(j));let O=0,t=Y;const l=[];for(;tF.week(),this.getYearRange=([F,j])=>{const Y=this.startOfYear(F),D=this.endOfYear(j),O=[];let t=Y;for(;this.isBefore(t,D);)O.push(t),t=this.addYears(t,1);return O},this.dayjs=Ule(ms,r),this.locale=r,this.formats=Ge({},Nle,x),ms.extend(Rle)}getDayOfWeek(r){return r.day()+1}}/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -273,8 +273,8 @@ Error generating stack: `+Y.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var r=1;r"u")throw new Error(r)}function Py(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Dfe(){return Math.random().toString(36).substr(2,8)}function dI(e,r){return{usr:e.state,key:e.key,idx:r}}function eb(e,r,y,F){return y===void 0&&(y=null),Ls({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof r=="string"?vv(r):r,{state:y,key:r&&r.key||F||Dfe()})}function vg(e){let{pathname:r="/",search:y="",hash:F=""}=e;return y&&y!=="?"&&(r+=y.charAt(0)==="?"?y:"?"+y),F&&F!=="#"&&(r+=F.charAt(0)==="#"?F:"#"+F),r}function vv(e){let r={};if(e){let y=e.indexOf("#");y>=0&&(r.hash=e.substr(y),e=e.substr(0,y));let F=e.indexOf("?");F>=0&&(r.search=e.substr(F),e=e.substr(0,F)),e&&(r.pathname=e)}return r}function Ofe(e,r,y,F){F===void 0&&(F={});let{window:j=document.defaultView,v5Compat:Y=!1}=F,D=j.history,O=_s.Pop,t=null,l=S();l==null&&(l=0,D.replaceState(Ls({},D.state,{idx:l}),""));function S(){return(D.state||{idx:null}).idx}function i(){O=_s.Pop;let a=S(),n=a==null?null:a-l;l=a,t&&t({action:O,location:m.location,delta:n})}function C(a,n){O=_s.Push;let s=eb(m.location,a,n);y&&y(s,a),l=S()+1;let o=dI(s,l),h=m.createHref(s);try{D.pushState(o,"",h)}catch(f){if(f instanceof DOMException&&f.name==="DataCloneError")throw f;j.location.assign(h)}Y&&t&&t({action:O,location:m.location,delta:1})}function w(a,n){O=_s.Replace;let s=eb(m.location,a,n);y&&y(s,a),l=S();let o=dI(s,l),h=m.createHref(s);D.replaceState(o,"",h),Y&&t&&t({action:O,location:m.location,delta:0})}function v(a){let n=j.location.origin!=="null"?j.location.origin:j.location.href,s=typeof a=="string"?a:vg(a);return s=s.replace(/ $/,"%20"),Ji(n,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,n)}let m={get action(){return O},get location(){return e(j,D)},listen(a){if(t)throw new Error("A history only accepts one active listener");return j.addEventListener(fI,i),t=a,()=>{j.removeEventListener(fI,i),t=null}},createHref(a){return r(j,a)},createURL:v,encodeLocation(a){let n=v(a);return{pathname:n.pathname,search:n.search,hash:n.hash}},push:C,replace:w,go(a){return D.go(a)}};return m}var Es;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Es||(Es={}));const Ffe=new Set(["lazy","caseSensitive","path","id","index","children"]);function _fe(e){return e.index===!0}function fM(e,r,y,F){return y===void 0&&(y=[]),F===void 0&&(F={}),e.map((j,Y)=>{let D=[...y,Y],O=typeof j.id=="string"?j.id:D.join("-");if(Ji(j.index!==!0||!j.children,"Cannot specify children on an index route"),Ji(!F[O],'Found a route id collision on id "'+O+`". Route id's must be globally unique within Data Router usages`),_fe(j)){let t=Ls({},j,r(j),{id:O});return F[O]=t,t}else{let t=Ls({},j,r(j),{id:O,children:void 0});return F[O]=t,j.children&&(t.children=fM(j.children,r,D,F)),t}})}function Dm(e,r,y){y===void 0&&(y="/");let F=typeof r=="string"?vv(r):r,j=Gy(F.pathname||"/",y);if(j==null)return null;let Y=rF(e);Bfe(Y);let D=null;for(let O=0;D==null&&O{let t={relativePath:O===void 0?Y.path||"":O,caseSensitive:Y.caseSensitive===!0,childrenIndex:D,route:Y};t.relativePath.startsWith("/")&&(Ji(t.relativePath.startsWith(F),'Absolute route path "'+t.relativePath+'" nested under path '+('"'+F+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),t.relativePath=t.relativePath.slice(F.length));let l=Qh([F,t.relativePath]),S=y.concat(t);Y.children&&Y.children.length>0&&(Ji(Y.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),rF(Y.children,r,S,l)),!(Y.path==null&&!Y.index)&&r.push({path:l,score:Wfe(l,Y.index),routesMeta:S})};return e.forEach((Y,D)=>{var O;if(Y.path===""||!((O=Y.path)!=null&&O.includes("?")))j(Y,D);else for(let t of nF(Y.path))j(Y,D,t)}),r}function nF(e){let r=e.split("/");if(r.length===0)return[];let[y,...F]=r,j=y.endsWith("?"),Y=y.replace(/\?$/,"");if(F.length===0)return j?[Y,""]:[Y];let D=nF(F.join("/")),O=[];return O.push(...D.map(t=>t===""?Y:[Y,t].join("/"))),j&&O.push(...D),O.map(t=>e.startsWith("/")&&t===""?"/":t)}function Bfe(e){e.sort((r,y)=>r.score!==y.score?y.score-r.score:$fe(r.routesMeta.map(F=>F.childrenIndex),y.routesMeta.map(F=>F.childrenIndex)))}const Nfe=/^:[\w-]+$/,Ufe=3,Hfe=2,Vfe=1,jfe=10,Gfe=-2,hI=e=>e==="*";function Wfe(e,r){let y=e.split("/"),F=y.length;return y.some(hI)&&(F+=Gfe),r&&(F+=Hfe),y.filter(j=>!hI(j)).reduce((j,Y)=>j+(Nfe.test(Y)?Ufe:Y===""?Vfe:jfe),F)}function $fe(e,r){return e.length===r.length&&e.slice(0,-1).every((F,j)=>F===r[j])?e[e.length-1]-r[r.length-1]:0}function Yfe(e,r){let{routesMeta:y}=e,F={},j="/",Y=[];for(let D=0;D{let{paramName:C,isOptional:w}=S;if(C==="*"){let m=O[i]||"";D=Y.slice(0,Y.length-m.length).replace(/(.)\/+$/,"$1")}const v=O[i];return w&&!v?l[C]=void 0:l[C]=(v||"").replace(/%2F/g,"/"),l},{}),pathname:Y,pathnameBase:D,pattern:e}}function Zfe(e,r,y){r===void 0&&(r=!1),y===void 0&&(y=!0),Py(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let F=[],j="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(D,O,t)=>(F.push({paramName:O,isOptional:t!=null}),t?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(F.push({paramName:"*"}),j+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):y?j+="\\/*$":e!==""&&e!=="/"&&(j+="(?:(?=\\/|$))"),[new RegExp(j,r?void 0:"i"),F]}function Kfe(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Py(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),e}}function Gy(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let y=r.endsWith("/")?r.length-1:r.length,F=e.charAt(y);return F&&F!=="/"?null:e.slice(y)||"/"}function Jfe(e,r){r===void 0&&(r="/");let{pathname:y,search:F="",hash:j=""}=typeof e=="string"?vv(e):e;return{pathname:y?y.startsWith("/")?y:Qfe(y,r):r,search:ede(F),hash:tde(j)}}function Qfe(e,r){let y=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(j=>{j===".."?y.length>1&&y.pop():j!=="."&&y.push(j)}),y.length>1?y.join("/"):"/"}function LC(e,r,y,F){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(F)+"]. Please separate it out to the ")+("`to."+y+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function aF(e){return e.filter((r,y)=>y===0||r.route.path&&r.route.path.length>0)}function N5(e,r){let y=aF(e);return r?y.map((F,j)=>j===e.length-1?F.pathname:F.pathnameBase):y.map(F=>F.pathnameBase)}function U5(e,r,y,F){F===void 0&&(F=!1);let j;typeof e=="string"?j=vv(e):(j=Ls({},e),Ji(!j.pathname||!j.pathname.includes("?"),LC("?","pathname","search",j)),Ji(!j.pathname||!j.pathname.includes("#"),LC("#","pathname","hash",j)),Ji(!j.search||!j.search.includes("#"),LC("#","search","hash",j)));let Y=e===""||j.pathname==="",D=Y?"/":j.pathname,O;if(D==null)O=y;else{let i=r.length-1;if(!F&&D.startsWith("..")){let C=D.split("/");for(;C[0]==="..";)C.shift(),i-=1;j.pathname=C.join("/")}O=i>=0?r[i]:"/"}let t=Jfe(j,O),l=D&&D!=="/"&&D.endsWith("/"),S=(Y||D===".")&&y.endsWith("/");return!t.pathname.endsWith("/")&&(l||S)&&(t.pathname+="/"),t}const Qh=e=>e.join("/").replace(/\/\/+/g,"/"),qfe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ede=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tde=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class H5{constructor(r,y,F,j){j===void 0&&(j=!1),this.status=r,this.statusText=y||"",this.internal=j,F instanceof Error?(this.data=F.toString(),this.error=F):this.data=F}}function iF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const oF=["post","put","patch","delete"],rde=new Set(oF),nde=["get",...oF],ade=new Set(nde),ide=new Set([301,302,303,307,308]),ode=new Set([307,308]),IC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sde={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},z1={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lde=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),lF="remix-router-transitions";function ude(e){const r=e.window?e.window:typeof window<"u"?window:void 0,y=typeof r<"u"&&typeof r.document<"u"&&typeof r.document.createElement<"u",F=!y;Ji(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let j;if(e.mapRouteProperties)j=e.mapRouteProperties;else if(e.detectErrorBoundary){let rt=e.detectErrorBoundary;j=lt=>({hasErrorBoundary:rt(lt)})}else j=lde;let Y={},D=fM(e.routes,j,void 0,Y),O,t=e.basename||"/",l=Ls({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),S=null,i=new Set,C=null,w=null,v=null,m=e.hydrationData!=null,a=Dm(D,e.history.location,t),n=null;if(a==null){let rt=of(404,{pathname:e.history.location.pathname}),{matches:lt,route:dt}=wI(D);a=lt,n={[dt.id]:rt}}let s,o=a.some(rt=>rt.route.lazy),h=a.some(rt=>rt.route.loader);if(o)s=!1;else if(!h)s=!0;else if(l.v7_partialHydration){let rt=e.hydrationData?e.hydrationData.loaderData:null,lt=e.hydrationData?e.hydrationData.errors:null,dt=wt=>wt.route.loader?wt.route.loader.hydrate===!0?!1:rt&&rt[wt.route.id]!==void 0||lt&<[wt.route.id]!==void 0:!0;if(lt){let wt=a.findIndex(et=>lt[et.route.id]!==void 0);s=a.slice(0,wt+1).every(dt)}else s=a.every(dt)}else s=e.hydrationData!=null;let f,u={historyAction:e.history.action,location:e.history.location,matches:a,initialized:s,navigation:IC,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||n,fetchers:new Map,blockers:new Map},b=_s.Pop,p=!1,E,g=!1,c=new Map,x=null,A=!1,M=!1,R=[],T=[],L=new Map,P=0,d=-1,k=new Map,I=new Set,N=new Map,B=new Map,G=new Set,U=new Map,H=new Map,W=!1;function V(){if(S=e.history.listen(rt=>{let{action:lt,location:dt,delta:wt}=rt;if(W){W=!1;return}Py(H.size===0||wt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let et=ze({currentLocation:u.location,nextLocation:dt,historyAction:lt});if(et&&wt!=null){W=!0,e.history.go(wt*-1),Ne(et,{state:"blocked",location:dt,proceed(){Ne(et,{state:"proceeding",proceed:void 0,reset:void 0,location:dt}),e.history.go(wt)},reset(){let Be=new Map(u.blockers);Be.set(et,z1),q({blockers:Be})}});return}return Q(lt,dt)}),y){bde(r,c);let rt=()=>wde(r,c);r.addEventListener("pagehide",rt),x=()=>r.removeEventListener("pagehide",rt)}return u.initialized||Q(_s.Pop,u.location,{initialHydration:!0}),f}function $(){S&&S(),x&&x(),i.clear(),E&&E.abort(),u.fetchers.forEach((rt,lt)=>Ee(lt)),u.blockers.forEach((rt,lt)=>Ue(lt))}function Z(rt){return i.add(rt),()=>i.delete(rt)}function q(rt,lt){lt===void 0&&(lt={}),u=Ls({},u,rt);let dt=[],wt=[];l.v7_fetcherPersist&&u.fetchers.forEach((et,Be)=>{et.state==="idle"&&(G.has(Be)?wt.push(Be):dt.push(Be))}),[...i].forEach(et=>et(u,{deletedFetchers:wt,unstable_viewTransitionOpts:lt.viewTransitionOpts,unstable_flushSync:lt.flushSync===!0})),l.v7_fetcherPersist&&(dt.forEach(et=>u.fetchers.delete(et)),wt.forEach(et=>Ee(et)))}function ae(rt,lt,dt){var wt,et;let{flushSync:Be}=dt===void 0?{}:dt,Ye=u.actionData!=null&&u.navigation.formMethod!=null&&fd(u.navigation.formMethod)&&u.navigation.state==="loading"&&((wt=rt.state)==null?void 0:wt._isRedirect)!==!0,Ke;lt.actionData?Object.keys(lt.actionData).length>0?Ke=lt.actionData:Ke=null:Ye?Ke=u.actionData:Ke=null;let We=lt.loaderData?bI(u.loaderData,lt.loaderData,lt.matches||[],lt.errors):u.loaderData,Fe=u.blockers;Fe.size>0&&(Fe=new Map(Fe),Fe.forEach((Re,Pe)=>Fe.set(Pe,z1)));let Me=p===!0||u.navigation.formMethod!=null&&fd(u.navigation.formMethod)&&((et=rt.state)==null?void 0:et._isRedirect)!==!0;O&&(D=O,O=void 0),A||b===_s.Pop||(b===_s.Push?e.history.push(rt,rt.state):b===_s.Replace&&e.history.replace(rt,rt.state));let we;if(b===_s.Pop){let Re=c.get(u.location.pathname);Re&&Re.has(rt.pathname)?we={currentLocation:u.location,nextLocation:rt}:c.has(rt.pathname)&&(we={currentLocation:rt,nextLocation:u.location})}else if(g){let Re=c.get(u.location.pathname);Re?Re.add(rt.pathname):(Re=new Set([rt.pathname]),c.set(u.location.pathname,Re)),we={currentLocation:u.location,nextLocation:rt}}q(Ls({},lt,{actionData:Ke,loaderData:We,historyAction:b,location:rt,initialized:!0,navigation:IC,revalidation:"idle",restoreScrollPosition:nt(rt,lt.matches||u.matches),preventScrollReset:Me,blockers:Fe}),{viewTransitionOpts:we,flushSync:Be===!0}),b=_s.Pop,p=!1,g=!1,A=!1,M=!1,R=[],T=[]}async function ie(rt,lt){if(typeof rt=="number"){e.history.go(rt);return}let dt=dM(u.location,u.matches,t,l.v7_prependBasename,rt,l.v7_relativeSplatPath,lt==null?void 0:lt.fromRouteId,lt==null?void 0:lt.relative),{path:wt,submission:et,error:Be}=vI(l.v7_normalizeFormMethod,!1,dt,lt),Ye=u.location,Ke=eb(u.location,wt,lt&<.state);Ke=Ls({},Ke,e.history.encodeLocation(Ke));let We=lt&<.replace!=null?lt.replace:void 0,Fe=_s.Push;We===!0?Fe=_s.Replace:We===!1||et!=null&&fd(et.formMethod)&&et.formAction===u.location.pathname+u.location.search&&(Fe=_s.Replace);let Me=lt&&"preventScrollReset"in lt?lt.preventScrollReset===!0:void 0,we=(lt&<.unstable_flushSync)===!0,Re=ze({currentLocation:Ye,nextLocation:Ke,historyAction:Fe});if(Re){Ne(Re,{state:"blocked",location:Ke,proceed(){Ne(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),ie(rt,lt)},reset(){let Pe=new Map(u.blockers);Pe.set(Re,z1),q({blockers:Pe})}});return}return await Q(Fe,Ke,{submission:et,pendingError:Be,preventScrollReset:Me,replace:lt&<.replace,enableViewTransition:lt&<.unstable_viewTransition,flushSync:we})}function fe(){if(de(),q({revalidation:"loading"}),u.navigation.state!=="submitting"){if(u.navigation.state==="idle"){Q(u.historyAction,u.location,{startUninterruptedRevalidation:!0});return}Q(b||u.historyAction,u.navigation.location,{overrideNavigation:u.navigation})}}async function Q(rt,lt,dt){E&&E.abort(),E=null,b=rt,A=(dt&&dt.startUninterruptedRevalidation)===!0,at(u.location,u.matches),p=(dt&&dt.preventScrollReset)===!0,g=(dt&&dt.enableViewTransition)===!0;let wt=O||D,et=dt&&dt.overrideNavigation,Be=Dm(wt,lt,t),Ye=(dt&&dt.flushSync)===!0;if(!Be){let Pe=of(404,{pathname:lt.pathname}),{matches:Ve,route:Je}=wI(wt);$e(),ae(lt,{matches:Ve,loaderData:{},errors:{[Je.id]:Pe}},{flushSync:Ye});return}if(u.initialized&&!M&&vde(u.location,lt)&&!(dt&&dt.submission&&fd(dt.submission.formMethod))){ae(lt,{matches:Be},{flushSync:Ye});return}E=new AbortController;let Ke=N1(e.history,lt,E.signal,dt&&dt.submission),We,Fe;if(dt&&dt.pendingError)Fe={[Tx(Be).route.id]:dt.pendingError};else if(dt&&dt.submission&&fd(dt.submission.formMethod)){let Pe=await J(Ke,lt,dt.submission,Be,{replace:dt.replace,flushSync:Ye});if(Pe.shortCircuited)return;We=Pe.pendingActionData,Fe=Pe.pendingActionError,et=RC(lt,dt.submission),Ye=!1,Ke=new Request(Ke.url,{signal:Ke.signal})}let{shortCircuited:Me,loaderData:we,errors:Re}=await oe(Ke,lt,Be,et,dt&&dt.submission,dt&&dt.fetcherSubmission,dt&&dt.replace,dt&&dt.initialHydration===!0,Ye,We,Fe);Me||(E=null,ae(lt,Ls({matches:Be},We?{actionData:We}:{},{loaderData:we,errors:Re})))}async function J(rt,lt,dt,wt,et){et===void 0&&(et={}),de();let Be=yde(lt,dt);q({navigation:Be},{flushSync:et.flushSync===!0});let Ye,Ke=vM(wt,lt);if(!Ke.route.action&&!Ke.route.lazy)Ye={type:Es.error,error:of(405,{method:rt.method,pathname:lt.pathname,routeId:Ke.route.id})};else if(Ye=await B1("action",rt,Ke,wt,Y,j,t,l.v7_relativeSplatPath),rt.signal.aborted)return{shortCircuited:!0};if(V0(Ye)){let We;return et&&et.replace!=null?We=et.replace:We=Ye.location===u.location.pathname+u.location.search,await re(u,Ye,{submission:dt,replace:We}),{shortCircuited:!0}}if(Om(Ye)){let We=Tx(wt,Ke.route.id);return(et&&et.replace)!==!0&&(b=_s.Push),{pendingActionData:{},pendingActionError:{[We.route.id]:Ye.error}}}if(H0(Ye))throw of(400,{type:"defer-action"});return{pendingActionData:{[Ke.route.id]:Ye.data}}}async function oe(rt,lt,dt,wt,et,Be,Ye,Ke,We,Fe,Me){let we=wt||RC(lt,et),Re=et||Be||CI(we),Pe=O||D,[Ve,Je]=pI(e.history,u,dt,Re,lt,l.v7_partialHydration&&Ke===!0,M,R,T,G,N,I,Pe,t,Fe,Me);if($e(Kt=>!(dt&&dt.some(Qt=>Qt.route.id===Kt))||Ve&&Ve.some(Qt=>Qt.route.id===Kt)),d=++P,Ve.length===0&&Je.length===0){let Kt=Ae();return ae(lt,Ls({matches:dt,loaderData:{},errors:Me||null},Fe?{actionData:Fe}:{},Kt?{fetchers:new Map(u.fetchers)}:{}),{flushSync:We}),{shortCircuited:!0}}if(!A&&(!l.v7_partialHydration||!Ke)){Je.forEach(Qt=>{let xr=u.fetchers.get(Qt.key),sr=U1(void 0,xr?xr.data:void 0);u.fetchers.set(Qt.key,sr)});let Kt=Fe||u.actionData;q(Ls({navigation:we},Kt?Object.keys(Kt).length===0?{actionData:null}:{actionData:Kt}:{},Je.length>0?{fetchers:new Map(u.fetchers)}:{}),{flushSync:We})}Je.forEach(Kt=>{L.has(Kt.key)&&ke(Kt.key),Kt.controller&&L.set(Kt.key,Kt.controller)});let ot=()=>Je.forEach(Kt=>ke(Kt.key));E&&E.signal.addEventListener("abort",ot);let{results:yt,loaderResults:ut,fetcherResults:It}=await ee(u.matches,dt,Ve,Je,rt);if(rt.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",ot),Je.forEach(Kt=>L.delete(Kt.key));let Vt=TI(yt);if(Vt){if(Vt.idx>=Ve.length){let Kt=Je[Vt.idx-Ve.length].key;I.add(Kt)}return await re(u,Vt.result,{replace:Ye}),{shortCircuited:!0}}let{loaderData:xt,errors:Lt}=xI(u,dt,Ve,ut,Me,Je,It,U);U.forEach((Kt,Qt)=>{Kt.subscribe(xr=>{(xr||Kt.done)&&U.delete(Qt)})}),l.v7_partialHydration&&Ke&&u.errors&&Object.entries(u.errors).filter(Kt=>{let[Qt]=Kt;return!Ve.some(xr=>xr.route.id===Qt)}).forEach(Kt=>{let[Qt,xr]=Kt;Lt=Object.assign(Lt||{},{[Qt]:xr})});let Xt=Ae(),dr=be(d),Tt=Xt||dr||Je.length>0;return Ls({loaderData:xt,errors:Lt},Tt?{fetchers:new Map(u.fetchers)}:{})}function K(rt,lt,dt,wt){if(F)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(rt)&&ke(rt);let et=(wt&&wt.unstable_flushSync)===!0,Be=O||D,Ye=dM(u.location,u.matches,t,l.v7_prependBasename,dt,l.v7_relativeSplatPath,lt,wt==null?void 0:wt.relative),Ke=Dm(Be,Ye,t);if(!Ke){he(rt,lt,of(404,{pathname:Ye}),{flushSync:et});return}let{path:We,submission:Fe,error:Me}=vI(l.v7_normalizeFormMethod,!0,Ye,wt);if(Me){he(rt,lt,Me,{flushSync:et});return}let we=vM(Ke,We);if(p=(wt&&wt.preventScrollReset)===!0,Fe&&fd(Fe.formMethod)){ne(rt,lt,We,we,Ke,et,Fe);return}N.set(rt,{routeId:lt,path:We}),ce(rt,lt,We,we,Ke,et,Fe)}async function ne(rt,lt,dt,wt,et,Be,Ye){if(de(),N.delete(rt),!wt.route.action&&!wt.route.lazy){let Qt=of(405,{method:Ye.formMethod,pathname:dt,routeId:lt});he(rt,lt,Qt,{flushSync:Be});return}let Ke=u.fetchers.get(rt);le(rt,xde(Ye,Ke),{flushSync:Be});let We=new AbortController,Fe=N1(e.history,dt,We.signal,Ye);L.set(rt,We);let Me=P,we=await B1("action",Fe,wt,et,Y,j,t,l.v7_relativeSplatPath);if(Fe.signal.aborted){L.get(rt)===We&&L.delete(rt);return}if(l.v7_fetcherPersist&&G.has(rt)){if(V0(we)||Om(we)){le(rt,ip(void 0));return}}else{if(V0(we))if(L.delete(rt),d>Me){le(rt,ip(void 0));return}else return I.add(rt),le(rt,U1(Ye)),re(u,we,{fetcherSubmission:Ye});if(Om(we)){he(rt,lt,we.error);return}}if(H0(we))throw of(400,{type:"defer-action"});let Re=u.navigation.location||u.location,Pe=N1(e.history,Re,We.signal),Ve=O||D,Je=u.navigation.state!=="idle"?Dm(Ve,u.navigation.location,t):u.matches;Ji(Je,"Didn't find any matches after fetcher action");let ot=++P;k.set(rt,ot);let yt=U1(Ye,we.data);u.fetchers.set(rt,yt);let[ut,It]=pI(e.history,u,Je,Ye,Re,!1,M,R,T,G,N,I,Ve,t,{[wt.route.id]:we.data},void 0);It.filter(Qt=>Qt.key!==rt).forEach(Qt=>{let xr=Qt.key,sr=u.fetchers.get(xr),Ct=U1(void 0,sr?sr.data:void 0);u.fetchers.set(xr,Ct),L.has(xr)&&ke(xr),Qt.controller&&L.set(xr,Qt.controller)}),q({fetchers:new Map(u.fetchers)});let Vt=()=>It.forEach(Qt=>ke(Qt.key));We.signal.addEventListener("abort",Vt);let{results:xt,loaderResults:Lt,fetcherResults:Xt}=await ee(u.matches,Je,ut,It,Pe);if(We.signal.aborted)return;We.signal.removeEventListener("abort",Vt),k.delete(rt),L.delete(rt),It.forEach(Qt=>L.delete(Qt.key));let dr=TI(xt);if(dr){if(dr.idx>=ut.length){let Qt=It[dr.idx-ut.length].key;I.add(Qt)}return re(u,dr.result)}let{loaderData:Tt,errors:Kt}=xI(u,u.matches,ut,Lt,void 0,It,Xt,U);if(u.fetchers.has(rt)){let Qt=ip(we.data);u.fetchers.set(rt,Qt)}be(ot),u.navigation.state==="loading"&&ot>d?(Ji(b,"Expected pending action"),E&&E.abort(),ae(u.navigation.location,{matches:Je,loaderData:Tt,errors:Kt,fetchers:new Map(u.fetchers)})):(q({errors:Kt,loaderData:bI(u.loaderData,Tt,Je,Kt),fetchers:new Map(u.fetchers)}),M=!1)}async function ce(rt,lt,dt,wt,et,Be,Ye){let Ke=u.fetchers.get(rt);le(rt,U1(Ye,Ke?Ke.data:void 0),{flushSync:Be});let We=new AbortController,Fe=N1(e.history,dt,We.signal);L.set(rt,We);let Me=P,we=await B1("loader",Fe,wt,et,Y,j,t,l.v7_relativeSplatPath);if(H0(we)&&(we=await fF(we,Fe.signal,!0)||we),L.get(rt)===We&&L.delete(rt),!Fe.signal.aborted){if(G.has(rt)){le(rt,ip(void 0));return}if(V0(we))if(d>Me){le(rt,ip(void 0));return}else{I.add(rt),await re(u,we);return}if(Om(we)){he(rt,lt,we.error);return}Ji(!H0(we),"Unhandled fetcher deferred data"),le(rt,ip(we.data))}}async function re(rt,lt,dt){let{submission:wt,fetcherSubmission:et,replace:Be}=dt===void 0?{}:dt;lt.revalidate&&(M=!0);let Ye=eb(rt.location,lt.location,{_isRedirect:!0});if(Ji(Ye,"Expected a location on the redirect navigation"),y){let Re=!1;if(lt.reloadDocument)Re=!0;else if(sF.test(lt.location)){const Pe=e.history.createURL(lt.location);Re=Pe.origin!==r.location.origin||Gy(Pe.pathname,t)==null}if(Re){Be?r.location.replace(lt.location):r.location.assign(lt.location);return}}E=null;let Ke=Be===!0?_s.Replace:_s.Push,{formMethod:We,formAction:Fe,formEncType:Me}=rt.navigation;!wt&&!et&&We&&Fe&&Me&&(wt=CI(rt.navigation));let we=wt||et;if(ode.has(lt.status)&&we&&fd(we.formMethod))await Q(Ke,Ye,{submission:Ls({},we,{formAction:lt.location}),preventScrollReset:p});else{let Re=RC(Ye,wt);await Q(Ke,Ye,{overrideNavigation:Re,fetcherSubmission:et,preventScrollReset:p})}}async function ee(rt,lt,dt,wt,et){let Be=await Promise.all([...dt.map(We=>B1("loader",et,We,lt,Y,j,t,l.v7_relativeSplatPath)),...wt.map(We=>We.matches&&We.match&&We.controller?B1("loader",N1(e.history,We.path,We.controller.signal),We.match,We.matches,Y,j,t,l.v7_relativeSplatPath):{type:Es.error,error:of(404,{pathname:We.path})})]),Ye=Be.slice(0,dt.length),Ke=Be.slice(dt.length);return await Promise.all([SI(rt,dt,Ye,Ye.map(()=>et.signal),!1,u.loaderData),SI(rt,wt.map(We=>We.match),Ke,wt.map(We=>We.controller?We.controller.signal:null),!0)]),{results:Be,loaderResults:Ye,fetcherResults:Ke}}function de(){M=!0,R.push(...$e()),N.forEach((rt,lt)=>{L.has(lt)&&(T.push(lt),ke(lt))})}function le(rt,lt,dt){dt===void 0&&(dt={}),u.fetchers.set(rt,lt),q({fetchers:new Map(u.fetchers)},{flushSync:(dt&&dt.flushSync)===!0})}function he(rt,lt,dt,wt){wt===void 0&&(wt={});let et=Tx(u.matches,lt);Ee(rt),q({errors:{[et.route.id]:dt},fetchers:new Map(u.fetchers)},{flushSync:(wt&&wt.flushSync)===!0})}function xe(rt){return l.v7_fetcherPersist&&(B.set(rt,(B.get(rt)||0)+1),G.has(rt)&&G.delete(rt)),u.fetchers.get(rt)||sde}function Ee(rt){let lt=u.fetchers.get(rt);L.has(rt)&&!(lt&<.state==="loading"&&k.has(rt))&&ke(rt),N.delete(rt),k.delete(rt),I.delete(rt),G.delete(rt),u.fetchers.delete(rt)}function Se(rt){if(l.v7_fetcherPersist){let lt=(B.get(rt)||0)-1;lt<=0?(B.delete(rt),G.add(rt)):B.set(rt,lt)}else Ee(rt);q({fetchers:new Map(u.fetchers)})}function ke(rt){let lt=L.get(rt);Ji(lt,"Expected fetch controller: "+rt),lt.abort(),L.delete(rt)}function Te(rt){for(let lt of rt){let dt=xe(lt),wt=ip(dt.data);u.fetchers.set(lt,wt)}}function Ae(){let rt=[],lt=!1;for(let dt of I){let wt=u.fetchers.get(dt);Ji(wt,"Expected fetcher: "+dt),wt.state==="loading"&&(I.delete(dt),rt.push(dt),lt=!0)}return Te(rt),lt}function be(rt){let lt=[];for(let[dt,wt]of k)if(wt0}function Ie(rt,lt){let dt=u.blockers.get(rt)||z1;return H.get(rt)!==lt&&H.set(rt,lt),dt}function Ue(rt){u.blockers.delete(rt),H.delete(rt)}function Ne(rt,lt){let dt=u.blockers.get(rt)||z1;Ji(dt.state==="unblocked"&<.state==="blocked"||dt.state==="blocked"&<.state==="blocked"||dt.state==="blocked"&<.state==="proceeding"||dt.state==="blocked"&<.state==="unblocked"||dt.state==="proceeding"&<.state==="unblocked","Invalid blocker state transition: "+dt.state+" -> "+lt.state);let wt=new Map(u.blockers);wt.set(rt,lt),q({blockers:wt})}function ze(rt){let{currentLocation:lt,nextLocation:dt,historyAction:wt}=rt;if(H.size===0)return;H.size>1&&Py(!1,"A router only supports one blocker at a time");let et=Array.from(H.entries()),[Be,Ye]=et[et.length-1],Ke=u.blockers.get(Be);if(!(Ke&&Ke.state==="proceeding")&&Ye({currentLocation:lt,nextLocation:dt,historyAction:wt}))return Be}function $e(rt){let lt=[];return U.forEach((dt,wt)=>{(!rt||rt(wt))&&(dt.cancel(),lt.push(wt),U.delete(wt))}),lt}function st(rt,lt,dt){if(C=rt,v=lt,w=dt||null,!m&&u.navigation===IC){m=!0;let wt=nt(u.location,u.matches);wt!=null&&q({restoreScrollPosition:wt})}return()=>{C=null,v=null,w=null}}function vt(rt,lt){return w&&w(rt,lt.map(wt=>zfe(wt,u.loaderData)))||rt.key}function at(rt,lt){if(C&&v){let dt=vt(rt,lt);C[dt]=v()}}function nt(rt,lt){if(C){let dt=vt(rt,lt),wt=C[dt];if(typeof wt=="number")return wt}return null}function mt(rt){Y={},O=fM(rt,j,void 0,Y)}return f={get basename(){return t},get future(){return l},get state(){return u},get routes(){return D},get window(){return r},initialize:V,subscribe:Z,enableScrollRestoration:st,navigate:ie,fetch:K,revalidate:fe,createHref:rt=>e.history.createHref(rt),encodeLocation:rt=>e.history.encodeLocation(rt),getFetcher:xe,deleteFetcher:Se,dispose:$,getBlocker:Ie,deleteBlocker:Ue,_internalFetchControllers:L,_internalActiveDeferreds:U,_internalSetRoutes:mt},f}function cde(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function dM(e,r,y,F,j,Y,D,O){let t,l;if(D){t=[];for(let i of r)if(t.push(i),i.route.id===D){l=i;break}}else t=r,l=r[r.length-1];let S=U5(j||".",N5(t,Y),Gy(e.pathname,y)||e.pathname,O==="path");return j==null&&(S.search=e.search,S.hash=e.hash),(j==null||j===""||j===".")&&l&&l.route.index&&!V5(S.search)&&(S.search=S.search?S.search.replace(/^\?/,"?index&"):"?index"),F&&y!=="/"&&(S.pathname=S.pathname==="/"?y:Qh([y,S.pathname])),vg(S)}function vI(e,r,y,F){if(!F||!cde(F))return{path:y};if(F.formMethod&&!mde(F.formMethod))return{path:y,error:of(405,{method:F.formMethod})};let j=()=>({path:y,error:of(400,{type:"invalid-body"})}),Y=F.formMethod||"get",D=e?Y.toUpperCase():Y.toLowerCase(),O=cF(y);if(F.body!==void 0){if(F.formEncType==="text/plain"){if(!fd(D))return j();let C=typeof F.body=="string"?F.body:F.body instanceof FormData||F.body instanceof URLSearchParams?Array.from(F.body.entries()).reduce((w,v)=>{let[m,a]=v;return""+w+m+"="+a+` -`},""):String(F.body);return{path:y,submission:{formMethod:D,formAction:O,formEncType:F.formEncType,formData:void 0,json:void 0,text:C}}}else if(F.formEncType==="application/json"){if(!fd(D))return j();try{let C=typeof F.body=="string"?JSON.parse(F.body):F.body;return{path:y,submission:{formMethod:D,formAction:O,formEncType:F.formEncType,formData:void 0,json:C,text:void 0}}}catch{return j()}}}Ji(typeof FormData=="function","FormData is not available in this environment");let t,l;if(F.formData)t=hM(F.formData),l=F.formData;else if(F.body instanceof FormData)t=hM(F.body),l=F.body;else if(F.body instanceof URLSearchParams)t=F.body,l=yI(t);else if(F.body==null)t=new URLSearchParams,l=new FormData;else try{t=new URLSearchParams(F.body),l=yI(t)}catch{return j()}let S={formMethod:D,formAction:O,formEncType:F&&F.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(fd(S.formMethod))return{path:y,submission:S};let i=vv(y);return r&&i.search&&V5(i.search)&&t.append("index",""),i.search="?"+t,{path:vg(i),submission:S}}function fde(e,r){let y=e;if(r){let F=e.findIndex(j=>j.route.id===r);F>=0&&(y=e.slice(0,F))}return y}function pI(e,r,y,F,j,Y,D,O,t,l,S,i,C,w,v,m){let a=m?Object.values(m)[0]:v?Object.values(v)[0]:void 0,n=e.createURL(r.location),s=e.createURL(j),o=m?Object.keys(m)[0]:void 0,f=fde(y,o).filter((b,p)=>{let{route:E}=b;if(E.lazy)return!0;if(E.loader==null)return!1;if(Y)return E.loader.hydrate?!0:r.loaderData[E.id]===void 0&&(!r.errors||r.errors[E.id]===void 0);if(dde(r.loaderData,r.matches[p],b)||O.some(x=>x===b.route.id))return!0;let g=r.matches[p],c=b;return gI(b,Ls({currentUrl:n,currentParams:g.params,nextUrl:s,nextParams:c.params},F,{actionResult:a,defaultShouldRevalidate:D||n.pathname+n.search===s.pathname+s.search||n.search!==s.search||uF(g,c)}))}),u=[];return S.forEach((b,p)=>{if(Y||!y.some(A=>A.route.id===b.routeId)||l.has(p))return;let E=Dm(C,b.path,w);if(!E){u.push({key:p,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let g=r.fetchers.get(p),c=vM(E,b.path),x=!1;i.has(p)?x=!1:t.includes(p)?x=!0:g&&g.state!=="idle"&&g.data===void 0?x=D:x=gI(c,Ls({currentUrl:n,currentParams:r.matches[r.matches.length-1].params,nextUrl:s,nextParams:y[y.length-1].params},F,{actionResult:a,defaultShouldRevalidate:D})),x&&u.push({key:p,routeId:b.routeId,path:b.path,matches:E,match:c,controller:new AbortController})}),[f,u]}function dde(e,r,y){let F=!r||y.route.id!==r.route.id,j=e[y.route.id]===void 0;return F||j}function uF(e,r){let y=e.route.path;return e.pathname!==r.pathname||y!=null&&y.endsWith("*")&&e.params["*"]!==r.params["*"]}function gI(e,r){if(e.route.shouldRevalidate){let y=e.route.shouldRevalidate(r);if(typeof y=="boolean")return y}return r.defaultShouldRevalidate}async function mI(e,r,y){if(!e.lazy)return;let F=await e.lazy();if(!e.lazy)return;let j=y[e.id];Ji(j,"No route found in manifest");let Y={};for(let D in F){let t=j[D]!==void 0&&D!=="hasErrorBoundary";Py(!t,'Route "'+j.id+'" has a static property "'+D+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+D+'" will be ignored.')),!t&&!Ffe.has(D)&&(Y[D]=F[D])}Object.assign(j,Y),Object.assign(j,Ls({},r(j),{lazy:void 0}))}async function B1(e,r,y,F,j,Y,D,O,t){t===void 0&&(t={});let l,S,i,C=m=>{let a,n=new Promise((s,o)=>a=o);return i=()=>a(),r.signal.addEventListener("abort",i),Promise.race([m({request:r,params:y.params,context:t.requestContext}),n])};try{let m=y.route[e];if(y.route.lazy)if(m){let a,n=await Promise.all([C(m).catch(s=>{a=s}),mI(y.route,Y,j)]);if(a)throw a;S=n[0]}else if(await mI(y.route,Y,j),m=y.route[e],m)S=await C(m);else if(e==="action"){let a=new URL(r.url),n=a.pathname+a.search;throw of(405,{method:r.method,pathname:n,routeId:y.route.id})}else return{type:Es.data,data:void 0};else if(m)S=await C(m);else{let a=new URL(r.url),n=a.pathname+a.search;throw of(404,{pathname:n})}Ji(S!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+y.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){l=Es.error,S=m}finally{i&&r.signal.removeEventListener("abort",i)}if(gde(S)){let m=S.status;if(ide.has(m)){let n=S.headers.get("Location");if(Ji(n,"Redirects returned/thrown from loaders/actions must have a Location header"),!sF.test(n))n=dM(new URL(r.url),F.slice(0,F.indexOf(y)+1),D,!0,n,O);else if(!t.isStaticRequest){let s=new URL(r.url),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),h=Gy(o.pathname,D)!=null;o.origin===s.origin&&h&&(n=o.pathname+o.search+o.hash)}if(t.isStaticRequest)throw S.headers.set("Location",n),S;return{type:Es.redirect,status:m,location:n,revalidate:S.headers.get("X-Remix-Revalidate")!==null,reloadDocument:S.headers.get("X-Remix-Reload-Document")!==null}}if(t.isRouteRequest)throw{type:l===Es.error?Es.error:Es.data,response:S};let a;try{let n=S.headers.get("Content-Type");n&&/\bapplication\/json\b/.test(n)?S.body==null?a=null:a=await S.json():a=await S.text()}catch(n){return{type:Es.error,error:n}}return l===Es.error?{type:l,error:new H5(m,S.statusText,a),headers:S.headers}:{type:Es.data,data:a,statusCode:S.status,headers:S.headers}}if(l===Es.error)return{type:l,error:S};if(pde(S)){var w,v;return{type:Es.deferred,deferredData:S,statusCode:(w=S.init)==null?void 0:w.status,headers:((v=S.init)==null?void 0:v.headers)&&new Headers(S.init.headers)}}return{type:Es.data,data:S}}function N1(e,r,y,F){let j=e.createURL(cF(r)).toString(),Y={signal:y};if(F&&fd(F.formMethod)){let{formMethod:D,formEncType:O}=F;Y.method=D.toUpperCase(),O==="application/json"?(Y.headers=new Headers({"Content-Type":O}),Y.body=JSON.stringify(F.json)):O==="text/plain"?Y.body=F.text:O==="application/x-www-form-urlencoded"&&F.formData?Y.body=hM(F.formData):Y.body=F.formData}return new Request(j,Y)}function hM(e){let r=new URLSearchParams;for(let[y,F]of e.entries())r.append(y,typeof F=="string"?F:F.name);return r}function yI(e){let r=new FormData;for(let[y,F]of e.entries())r.append(y,F);return r}function hde(e,r,y,F,j){let Y={},D=null,O,t=!1,l={};return y.forEach((S,i)=>{let C=r[i].route.id;if(Ji(!V0(S),"Cannot handle redirect results in processLoaderData"),Om(S)){let w=Tx(e,C),v=S.error;F&&(v=Object.values(F)[0],F=void 0),D=D||{},D[w.route.id]==null&&(D[w.route.id]=v),Y[C]=void 0,t||(t=!0,O=iF(S.error)?S.error.status:500),S.headers&&(l[C]=S.headers)}else H0(S)?(j.set(C,S.deferredData),Y[C]=S.deferredData.data):Y[C]=S.data,S.statusCode!=null&&S.statusCode!==200&&!t&&(O=S.statusCode),S.headers&&(l[C]=S.headers)}),F&&(D=F,Y[Object.keys(F)[0]]=void 0),{loaderData:Y,errors:D,statusCode:O||200,loaderHeaders:l}}function xI(e,r,y,F,j,Y,D,O){let{loaderData:t,errors:l}=hde(r,y,F,j,O);for(let S=0;SF.route.id===r)+1):[...e]).reverse().find(F=>F.route.hasErrorBoundary===!0)||e[0]}function wI(e){let r=e.length===1?e[0]:e.find(y=>y.index||!y.path||y.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function of(e,r){let{pathname:y,routeId:F,method:j,type:Y}=r===void 0?{}:r,D="Unknown Server Error",O="Unknown @remix-run/router error";return e===400?(D="Bad Request",j&&y&&F?O="You made a "+j+' request to "'+y+'" but '+('did not provide a `loader` for route "'+F+'", ')+"so there is no way to handle the request.":Y==="defer-action"?O="defer() is not supported in actions":Y==="invalid-body"&&(O="Unable to encode submission body")):e===403?(D="Forbidden",O='Route "'+F+'" does not match URL "'+y+'"'):e===404?(D="Not Found",O='No route matches URL "'+y+'"'):e===405&&(D="Method Not Allowed",j&&y&&F?O="You made a "+j.toUpperCase()+' request to "'+y+'" but '+('did not provide an `action` for route "'+F+'", ')+"so there is no way to handle the request.":j&&(O='Invalid request method "'+j.toUpperCase()+'"')),new H5(e||500,D,new Error(O),!0)}function TI(e){for(let r=e.length-1;r>=0;r--){let y=e[r];if(V0(y))return{result:y,idx:r}}}function cF(e){let r=typeof e=="string"?vv(e):e;return vg(Ls({},r,{hash:""}))}function vde(e,r){return e.pathname!==r.pathname||e.search!==r.search?!1:e.hash===""?r.hash!=="":e.hash===r.hash?!0:r.hash!==""}function H0(e){return e.type===Es.deferred}function Om(e){return e.type===Es.error}function V0(e){return(e&&e.type)===Es.redirect}function pde(e){let r=e;return r&&typeof r=="object"&&typeof r.data=="object"&&typeof r.subscribe=="function"&&typeof r.cancel=="function"&&typeof r.resolveData=="function"}function gde(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function mde(e){return ade.has(e.toLowerCase())}function fd(e){return rde.has(e.toLowerCase())}async function SI(e,r,y,F,j,Y){for(let D=0;Di.route.id===t.route.id),S=l!=null&&!uF(l,t)&&(Y&&Y[t.route.id])!==void 0;if(H0(O)&&(j||S)){let i=F[D];Ji(i,"Expected an AbortSignal for revalidating fetcher deferred result"),await fF(O,i,j).then(C=>{C&&(y[D]=C||y[D])})}}}async function fF(e,r,y){if(y===void 0&&(y=!1),!await e.deferredData.resolveData(r)){if(y)try{return{type:Es.data,data:e.deferredData.unwrappedData}}catch(j){return{type:Es.error,error:j}}return{type:Es.data,data:e.deferredData.data}}}function V5(e){return new URLSearchParams(e).getAll("index").some(r=>r==="")}function vM(e,r){let y=typeof r=="string"?vv(r).search:r.search;if(e[e.length-1].route.index&&V5(y||""))return e[e.length-1];let F=aF(e);return F[F.length-1]}function CI(e){let{formMethod:r,formAction:y,formEncType:F,text:j,formData:Y,json:D}=e;if(!(!r||!y||!F)){if(j!=null)return{formMethod:r,formAction:y,formEncType:F,formData:void 0,json:void 0,text:j};if(Y!=null)return{formMethod:r,formAction:y,formEncType:F,formData:Y,json:void 0,text:void 0};if(D!==void 0)return{formMethod:r,formAction:y,formEncType:F,formData:void 0,json:D,text:void 0}}}function RC(e,r){return r?{state:"loading",location:e,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yde(e,r){return{state:"submitting",location:e,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function U1(e,r){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function xde(e,r){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:r?r.data:void 0}}function ip(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function bde(e,r){try{let y=e.sessionStorage.getItem(lF);if(y){let F=JSON.parse(y);for(let[j,Y]of Object.entries(F||{}))Y&&Array.isArray(Y)&&r.set(j,new Set(Y||[]))}}catch{}}function wde(e,r){if(r.size>0){let y={};for(let[F,j]of r)y[F]=[...j];try{e.sessionStorage.setItem(lF,JSON.stringify(y))}catch(F){Py(!1,"Failed to save applied view transitions in sessionStorage ("+F+").")}}}/** + */function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var r=1;r"u")throw new Error(r)}function Ly(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Vle(){return Math.random().toString(36).substr(2,8)}function aI(e,r){return{usr:e.state,key:e.key,idx:r}}function eb(e,r,x,F){return x===void 0&&(x=null),Is({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof r=="string"?Kp(r):r,{state:x,key:r&&r.key||F||Vle()})}function vg(e){let{pathname:r="/",search:x="",hash:F=""}=e;return x&&x!=="?"&&(r+=x.charAt(0)==="?"?x:"?"+x),F&&F!=="#"&&(r+=F.charAt(0)==="#"?F:"#"+F),r}function Kp(e){let r={};if(e){let x=e.indexOf("#");x>=0&&(r.hash=e.substr(x),e=e.substr(0,x));let F=e.indexOf("?");F>=0&&(r.search=e.substr(F),e=e.substr(0,F)),e&&(r.pathname=e)}return r}function jle(e,r,x,F){F===void 0&&(F={});let{window:j=document.defaultView,v5Compat:Y=!1}=F,D=j.history,O=Ys.Pop,t=null,l=S();l==null&&(l=0,D.replaceState(Is({},D.state,{idx:l}),""));function S(){return(D.state||{idx:null}).idx}function i(){O=Ys.Pop;let a=S(),n=a==null?null:a-l;l=a,t&&t({action:O,location:m.location,delta:n})}function C(a,n){O=Ys.Push;let s=eb(m.location,a,n);l=S()+1;let o=aI(s,l),h=m.createHref(s);try{D.pushState(o,"",h)}catch(f){if(f instanceof DOMException&&f.name==="DataCloneError")throw f;j.location.assign(h)}Y&&t&&t({action:O,location:m.location,delta:1})}function w(a,n){O=Ys.Replace;let s=eb(m.location,a,n);l=S();let o=aI(s,l),h=m.createHref(s);D.replaceState(o,"",h),Y&&t&&t({action:O,location:m.location,delta:0})}function v(a){let n=j.location.origin!=="null"?j.location.origin:j.location.href,s=typeof a=="string"?a:vg(a);return s=s.replace(/ $/,"%20"),Ji(n,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,n)}let m={get action(){return O},get location(){return e(j,D)},listen(a){if(t)throw new Error("A history only accepts one active listener");return j.addEventListener(nI,i),t=a,()=>{j.removeEventListener(nI,i),t=null}},createHref(a){return r(j,a)},createURL:v,encodeLocation(a){let n=v(a);return{pathname:n.pathname,search:n.search,hash:n.hash}},push:C,replace:w,go(a){return D.go(a)}};return m}var Ps;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ps||(Ps={}));const Gle=new Set(["lazy","caseSensitive","path","id","index","children"]);function Wle(e){return e.index===!0}function eM(e,r,x,F){return x===void 0&&(x=[]),F===void 0&&(F={}),e.map((j,Y)=>{let D=[...x,Y],O=typeof j.id=="string"?j.id:D.join("-");if(Ji(j.index!==!0||!j.children,"Cannot specify children on an index route"),Ji(!F[O],'Found a route id collision on id "'+O+`". Route id's must be globally unique within Data Router usages`),Wle(j)){let t=Is({},j,r(j),{id:O});return F[O]=t,t}else{let t=Is({},j,r(j),{id:O,children:void 0});return F[O]=t,j.children&&(t.children=eM(j.children,r,D,F)),t}})}function Dm(e,r,x){x===void 0&&(x="/");let F=typeof r=="string"?Kp(r):r,j=Wy(F.pathname||"/",x);if(j==null)return null;let Y=BO(e);Yle(Y);let D=null;for(let O=0;D==null&&O{let t={relativePath:O===void 0?Y.path||"":O,caseSensitive:Y.caseSensitive===!0,childrenIndex:D,route:Y};t.relativePath.startsWith("/")&&(Ji(t.relativePath.startsWith(F),'Absolute route path "'+t.relativePath+'" nested under path '+('"'+F+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),t.relativePath=t.relativePath.slice(F.length));let l=ev([F,t.relativePath]),S=x.concat(t);Y.children&&Y.children.length>0&&(Ji(Y.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),BO(Y.children,r,S,l)),!(Y.path==null&&!Y.index)&&r.push({path:l,score:eue(l,Y.index),routesMeta:S})};return e.forEach((Y,D)=>{var O;if(Y.path===""||!((O=Y.path)!=null&&O.includes("?")))j(Y,D);else for(let t of NO(Y.path))j(Y,D,t)}),r}function NO(e){let r=e.split("/");if(r.length===0)return[];let[x,...F]=r,j=x.endsWith("?"),Y=x.replace(/\?$/,"");if(F.length===0)return j?[Y,""]:[Y];let D=NO(F.join("/")),O=[];return O.push(...D.map(t=>t===""?Y:[Y,t].join("/"))),j&&O.push(...D),O.map(t=>e.startsWith("/")&&t===""?"/":t)}function Yle(e){e.sort((r,x)=>r.score!==x.score?x.score-r.score:tue(r.routesMeta.map(F=>F.childrenIndex),x.routesMeta.map(F=>F.childrenIndex)))}const Xle=/^:[\w-]+$/,Zle=3,Kle=2,Jle=1,Qle=10,qle=-2,iI=e=>e==="*";function eue(e,r){let x=e.split("/"),F=x.length;return x.some(iI)&&(F+=qle),r&&(F+=Kle),x.filter(j=>!iI(j)).reduce((j,Y)=>j+(Xle.test(Y)?Zle:Y===""?Jle:Qle),F)}function tue(e,r){return e.length===r.length&&e.slice(0,-1).every((F,j)=>F===r[j])?e[e.length-1]-r[r.length-1]:0}function rue(e,r){let{routesMeta:x}=e,F={},j="/",Y=[];for(let D=0;D{let{paramName:C,isOptional:w}=S;if(C==="*"){let m=O[i]||"";D=Y.slice(0,Y.length-m.length).replace(/(.)\/+$/,"$1")}const v=O[i];return w&&!v?l[C]=void 0:l[C]=(v||"").replace(/%2F/g,"/"),l},{}),pathname:Y,pathnameBase:D,pattern:e}}function aue(e,r,x){r===void 0&&(r=!1),x===void 0&&(x=!0),Ly(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let F=[],j="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(D,O,t)=>(F.push({paramName:O,isOptional:t!=null}),t?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(F.push({paramName:"*"}),j+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):x?j+="\\/*$":e!==""&&e!=="/"&&(j+="(?:(?=\\/|$))"),[new RegExp(j,r?void 0:"i"),F]}function iue(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Ly(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),e}}function Wy(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let x=r.endsWith("/")?r.length-1:r.length,F=e.charAt(x);return F&&F!=="/"?null:e.slice(x)||"/"}function oue(e,r){r===void 0&&(r="/");let{pathname:x,search:F="",hash:j=""}=typeof e=="string"?Kp(e):e;return{pathname:x?x.startsWith("/")?x:sue(x,r):r,search:uue(F),hash:cue(j)}}function sue(e,r){let x=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(j=>{j===".."?x.length>1&&x.pop():j!=="."&&x.push(j)}),x.length>1?x.join("/"):"/"}function bC(e,r,x,F){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(F)+"]. Please separate it out to the ")+("`to."+x+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function UO(e){return e.filter((r,x)=>x===0||r.route.path&&r.route.path.length>0)}function L5(e,r){let x=UO(e);return r?x.map((F,j)=>j===e.length-1?F.pathname:F.pathnameBase):x.map(F=>F.pathnameBase)}function I5(e,r,x,F){F===void 0&&(F=!1);let j;typeof e=="string"?j=Kp(e):(j=Is({},e),Ji(!j.pathname||!j.pathname.includes("?"),bC("?","pathname","search",j)),Ji(!j.pathname||!j.pathname.includes("#"),bC("#","pathname","hash",j)),Ji(!j.search||!j.search.includes("#"),bC("#","search","hash",j)));let Y=e===""||j.pathname==="",D=Y?"/":j.pathname,O;if(D==null)O=x;else{let i=r.length-1;if(!F&&D.startsWith("..")){let C=D.split("/");for(;C[0]==="..";)C.shift(),i-=1;j.pathname=C.join("/")}O=i>=0?r[i]:"/"}let t=oue(j,O),l=D&&D!=="/"&&D.endsWith("/"),S=(Y||D===".")&&x.endsWith("/");return!t.pathname.endsWith("/")&&(l||S)&&(t.pathname+="/"),t}const ev=e=>e.join("/").replace(/\/\/+/g,"/"),lue=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uue=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cue=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class R5{constructor(r,x,F,j){j===void 0&&(j=!1),this.status=r,this.statusText=x||"",this.internal=j,F instanceof Error?(this.data=F.toString(),this.error=F):this.data=F}}function HO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const VO=["post","put","patch","delete"],fue=new Set(VO),due=["get",...VO],hue=new Set(due),vue=new Set([301,302,303,307,308]),pue=new Set([307,308]),wC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gue={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},B1={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},jO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mue=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),GO="remix-router-transitions";function yue(e){const r=e.window?e.window:typeof window<"u"?window:void 0,x=typeof r<"u"&&typeof r.document<"u"&&typeof r.document.createElement<"u",F=!x;Ji(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let j;if(e.mapRouteProperties)j=e.mapRouteProperties;else if(e.detectErrorBoundary){let rt=e.detectErrorBoundary;j=lt=>({hasErrorBoundary:rt(lt)})}else j=mue;let Y={},D=eM(e.routes,j,void 0,Y),O,t=e.basename||"/",l=Is({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),S=null,i=new Set,C=null,w=null,v=null,m=e.hydrationData!=null,a=Dm(D,e.history.location,t),n=null;if(a==null){let rt=lf(404,{pathname:e.history.location.pathname}),{matches:lt,route:dt}=hI(D);a=lt,n={[dt.id]:rt}}let s,o=a.some(rt=>rt.route.lazy),h=a.some(rt=>rt.route.loader);if(o)s=!1;else if(!h)s=!0;else if(l.v7_partialHydration){let rt=e.hydrationData?e.hydrationData.loaderData:null,lt=e.hydrationData?e.hydrationData.errors:null,dt=wt=>wt.route.loader?wt.route.loader.hydrate===!0?!1:rt&&rt[wt.route.id]!==void 0||lt&<[wt.route.id]!==void 0:!0;if(lt){let wt=a.findIndex(et=>lt[et.route.id]!==void 0);s=a.slice(0,wt+1).every(dt)}else s=a.every(dt)}else s=e.hydrationData!=null;let f,u={historyAction:e.history.action,location:e.history.location,matches:a,initialized:s,navigation:wC,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||n,fetchers:new Map,blockers:new Map},b=Ys.Pop,p=!1,E,g=!1,c=new Map,y=null,A=!1,M=!1,R=[],T=[],L=new Map,P=0,d=-1,k=new Map,I=new Set,N=new Map,B=new Map,G=new Set,U=new Map,H=new Map,W=!1;function V(){if(S=e.history.listen(rt=>{let{action:lt,location:dt,delta:wt}=rt;if(W){W=!1;return}Ly(H.size===0||wt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let et=ze({currentLocation:u.location,nextLocation:dt,historyAction:lt});if(et&&wt!=null){W=!0,e.history.go(wt*-1),Ne(et,{state:"blocked",location:dt,proceed(){Ne(et,{state:"proceeding",proceed:void 0,reset:void 0,location:dt}),e.history.go(wt)},reset(){let Be=new Map(u.blockers);Be.set(et,B1),q({blockers:Be})}});return}return Q(lt,dt)}),x){Lue(r,c);let rt=()=>Iue(r,c);r.addEventListener("pagehide",rt),y=()=>r.removeEventListener("pagehide",rt)}return u.initialized||Q(Ys.Pop,u.location,{initialHydration:!0}),f}function $(){S&&S(),y&&y(),i.clear(),E&&E.abort(),u.fetchers.forEach((rt,lt)=>Ee(lt)),u.blockers.forEach((rt,lt)=>Ue(lt))}function Z(rt){return i.add(rt),()=>i.delete(rt)}function q(rt,lt){lt===void 0&&(lt={}),u=Is({},u,rt);let dt=[],wt=[];l.v7_fetcherPersist&&u.fetchers.forEach((et,Be)=>{et.state==="idle"&&(G.has(Be)?wt.push(Be):dt.push(Be))}),[...i].forEach(et=>et(u,{deletedFetchers:wt,unstable_viewTransitionOpts:lt.viewTransitionOpts,unstable_flushSync:lt.flushSync===!0})),l.v7_fetcherPersist&&(dt.forEach(et=>u.fetchers.delete(et)),wt.forEach(et=>Ee(et)))}function ae(rt,lt,dt){var wt,et;let{flushSync:Be}=dt===void 0?{}:dt,Ye=u.actionData!=null&&u.navigation.formMethod!=null&&hd(u.navigation.formMethod)&&u.navigation.state==="loading"&&((wt=rt.state)==null?void 0:wt._isRedirect)!==!0,Ze;lt.actionData?Object.keys(lt.actionData).length>0?Ze=lt.actionData:Ze=null:Ye?Ze=u.actionData:Ze=null;let We=lt.loaderData?dI(u.loaderData,lt.loaderData,lt.matches||[],lt.errors):u.loaderData,Fe=u.blockers;Fe.size>0&&(Fe=new Map(Fe),Fe.forEach((Re,Pe)=>Fe.set(Pe,B1)));let Me=p===!0||u.navigation.formMethod!=null&&hd(u.navigation.formMethod)&&((et=rt.state)==null?void 0:et._isRedirect)!==!0;O&&(D=O,O=void 0),A||b===Ys.Pop||(b===Ys.Push?e.history.push(rt,rt.state):b===Ys.Replace&&e.history.replace(rt,rt.state));let we;if(b===Ys.Pop){let Re=c.get(u.location.pathname);Re&&Re.has(rt.pathname)?we={currentLocation:u.location,nextLocation:rt}:c.has(rt.pathname)&&(we={currentLocation:rt,nextLocation:u.location})}else if(g){let Re=c.get(u.location.pathname);Re?Re.add(rt.pathname):(Re=new Set([rt.pathname]),c.set(u.location.pathname,Re)),we={currentLocation:u.location,nextLocation:rt}}q(Is({},lt,{actionData:Ze,loaderData:We,historyAction:b,location:rt,initialized:!0,navigation:wC,revalidation:"idle",restoreScrollPosition:nt(rt,lt.matches||u.matches),preventScrollReset:Me,blockers:Fe}),{viewTransitionOpts:we,flushSync:Be===!0}),b=Ys.Pop,p=!1,g=!1,A=!1,M=!1,R=[],T=[]}async function ie(rt,lt){if(typeof rt=="number"){e.history.go(rt);return}let dt=tM(u.location,u.matches,t,l.v7_prependBasename,rt,l.v7_relativeSplatPath,lt==null?void 0:lt.fromRouteId,lt==null?void 0:lt.relative),{path:wt,submission:et,error:Be}=oI(l.v7_normalizeFormMethod,!1,dt,lt),Ye=u.location,Ze=eb(u.location,wt,lt&<.state);Ze=Is({},Ze,e.history.encodeLocation(Ze));let We=lt&<.replace!=null?lt.replace:void 0,Fe=Ys.Push;We===!0?Fe=Ys.Replace:We===!1||et!=null&&hd(et.formMethod)&&et.formAction===u.location.pathname+u.location.search&&(Fe=Ys.Replace);let Me=lt&&"preventScrollReset"in lt?lt.preventScrollReset===!0:void 0,we=(lt&<.unstable_flushSync)===!0,Re=ze({currentLocation:Ye,nextLocation:Ze,historyAction:Fe});if(Re){Ne(Re,{state:"blocked",location:Ze,proceed(){Ne(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:Ze}),ie(rt,lt)},reset(){let Pe=new Map(u.blockers);Pe.set(Re,B1),q({blockers:Pe})}});return}return await Q(Fe,Ze,{submission:et,pendingError:Be,preventScrollReset:Me,replace:lt&<.replace,enableViewTransition:lt&<.unstable_viewTransition,flushSync:we})}function fe(){if(de(),q({revalidation:"loading"}),u.navigation.state!=="submitting"){if(u.navigation.state==="idle"){Q(u.historyAction,u.location,{startUninterruptedRevalidation:!0});return}Q(b||u.historyAction,u.navigation.location,{overrideNavigation:u.navigation})}}async function Q(rt,lt,dt){E&&E.abort(),E=null,b=rt,A=(dt&&dt.startUninterruptedRevalidation)===!0,at(u.location,u.matches),p=(dt&&dt.preventScrollReset)===!0,g=(dt&&dt.enableViewTransition)===!0;let wt=O||D,et=dt&&dt.overrideNavigation,Be=Dm(wt,lt,t),Ye=(dt&&dt.flushSync)===!0;if(!Be){let Pe=lf(404,{pathname:lt.pathname}),{matches:Ve,route:Je}=hI(wt);$e(),ae(lt,{matches:Ve,loaderData:{},errors:{[Je.id]:Pe}},{flushSync:Ye});return}if(u.initialized&&!M&&Sue(u.location,lt)&&!(dt&&dt.submission&&hd(dt.submission.formMethod))){ae(lt,{matches:Be},{flushSync:Ye});return}E=new AbortController;let Ze=U1(e.history,lt,E.signal,dt&&dt.submission),We,Fe;if(dt&&dt.pendingError)Fe={[Sx(Be).route.id]:dt.pendingError};else if(dt&&dt.submission&&hd(dt.submission.formMethod)){let Pe=await J(Ze,lt,dt.submission,Be,{replace:dt.replace,flushSync:Ye});if(Pe.shortCircuited)return;We=Pe.pendingActionData,Fe=Pe.pendingActionError,et=TC(lt,dt.submission),Ye=!1,Ze=new Request(Ze.url,{signal:Ze.signal})}let{shortCircuited:Me,loaderData:we,errors:Re}=await oe(Ze,lt,Be,et,dt&&dt.submission,dt&&dt.fetcherSubmission,dt&&dt.replace,dt&&dt.initialHydration===!0,Ye,We,Fe);Me||(E=null,ae(lt,Is({matches:Be},We?{actionData:We}:{},{loaderData:we,errors:Re})))}async function J(rt,lt,dt,wt,et){et===void 0&&(et={}),de();let Be=Eue(lt,dt);q({navigation:Be},{flushSync:et.flushSync===!0});let Ye,Ze=nM(wt,lt);if(!Ze.route.action&&!Ze.route.lazy)Ye={type:Ps.error,error:lf(405,{method:rt.method,pathname:lt.pathname,routeId:Ze.route.id})};else if(Ye=await N1("action",rt,Ze,wt,Y,j,t,l.v7_relativeSplatPath),rt.signal.aborted)return{shortCircuited:!0};if(j0(Ye)){let We;return et&&et.replace!=null?We=et.replace:We=Ye.location===u.location.pathname+u.location.search,await re(u,Ye,{submission:dt,replace:We}),{shortCircuited:!0}}if(Om(Ye)){let We=Sx(wt,Ze.route.id);return(et&&et.replace)!==!0&&(b=Ys.Push),{pendingActionData:{},pendingActionError:{[We.route.id]:Ye.error}}}if(V0(Ye))throw lf(400,{type:"defer-action"});return{pendingActionData:{[Ze.route.id]:Ye.data}}}async function oe(rt,lt,dt,wt,et,Be,Ye,Ze,We,Fe,Me){let we=wt||TC(lt,et),Re=et||Be||gI(we),Pe=O||D,[Ve,Je]=sI(e.history,u,dt,Re,lt,l.v7_partialHydration&&Ze===!0,M,R,T,G,N,I,Pe,t,Fe,Me);if($e(Kt=>!(dt&&dt.some(qt=>qt.route.id===Kt))||Ve&&Ve.some(qt=>qt.route.id===Kt)),d=++P,Ve.length===0&&Je.length===0){let Kt=Ae();return ae(lt,Is({matches:dt,loaderData:{},errors:Me||null},Fe?{actionData:Fe}:{},Kt?{fetchers:new Map(u.fetchers)}:{}),{flushSync:We}),{shortCircuited:!0}}if(!A&&(!l.v7_partialHydration||!Ze)){Je.forEach(qt=>{let br=u.fetchers.get(qt.key),sr=H1(void 0,br?br.data:void 0);u.fetchers.set(qt.key,sr)});let Kt=Fe||u.actionData;q(Is({navigation:we},Kt?Object.keys(Kt).length===0?{actionData:null}:{actionData:Kt}:{},Je.length>0?{fetchers:new Map(u.fetchers)}:{}),{flushSync:We})}Je.forEach(Kt=>{L.has(Kt.key)&&ke(Kt.key),Kt.controller&&L.set(Kt.key,Kt.controller)});let ot=()=>Je.forEach(Kt=>ke(Kt.key));E&&E.signal.addEventListener("abort",ot);let{results:yt,loaderResults:ut,fetcherResults:It}=await ee(u.matches,dt,Ve,Je,rt);if(rt.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",ot),Je.forEach(Kt=>L.delete(Kt.key));let Vt=vI(yt);if(Vt){if(Vt.idx>=Ve.length){let Kt=Je[Vt.idx-Ve.length].key;I.add(Kt)}return await re(u,Vt.result,{replace:Ye}),{shortCircuited:!0}}let{loaderData:xt,errors:Lt}=fI(u,dt,Ve,ut,Me,Je,It,U);U.forEach((Kt,qt)=>{Kt.subscribe(br=>{(br||Kt.done)&&U.delete(qt)})}),l.v7_partialHydration&&Ze&&u.errors&&Object.entries(u.errors).filter(Kt=>{let[qt]=Kt;return!Ve.some(br=>br.route.id===qt)}).forEach(Kt=>{let[qt,br]=Kt;Lt=Object.assign(Lt||{},{[qt]:br})});let Xt=Ae(),dr=be(d),Tt=Xt||dr||Je.length>0;return Is({loaderData:xt,errors:Lt},Tt?{fetchers:new Map(u.fetchers)}:{})}function K(rt,lt,dt,wt){if(F)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(rt)&&ke(rt);let et=(wt&&wt.unstable_flushSync)===!0,Be=O||D,Ye=tM(u.location,u.matches,t,l.v7_prependBasename,dt,l.v7_relativeSplatPath,lt,wt==null?void 0:wt.relative),Ze=Dm(Be,Ye,t);if(!Ze){he(rt,lt,lf(404,{pathname:Ye}),{flushSync:et});return}let{path:We,submission:Fe,error:Me}=oI(l.v7_normalizeFormMethod,!0,Ye,wt);if(Me){he(rt,lt,Me,{flushSync:et});return}let we=nM(Ze,We);if(p=(wt&&wt.preventScrollReset)===!0,Fe&&hd(Fe.formMethod)){ne(rt,lt,We,we,Ze,et,Fe);return}N.set(rt,{routeId:lt,path:We}),ce(rt,lt,We,we,Ze,et,Fe)}async function ne(rt,lt,dt,wt,et,Be,Ye){if(de(),N.delete(rt),!wt.route.action&&!wt.route.lazy){let qt=lf(405,{method:Ye.formMethod,pathname:dt,routeId:lt});he(rt,lt,qt,{flushSync:Be});return}let Ze=u.fetchers.get(rt);le(rt,Pue(Ye,Ze),{flushSync:Be});let We=new AbortController,Fe=U1(e.history,dt,We.signal,Ye);L.set(rt,We);let Me=P,we=await N1("action",Fe,wt,et,Y,j,t,l.v7_relativeSplatPath);if(Fe.signal.aborted){L.get(rt)===We&&L.delete(rt);return}if(l.v7_fetcherPersist&&G.has(rt)){if(j0(we)||Om(we)){le(rt,ip(void 0));return}}else{if(j0(we))if(L.delete(rt),d>Me){le(rt,ip(void 0));return}else return I.add(rt),le(rt,H1(Ye)),re(u,we,{fetcherSubmission:Ye});if(Om(we)){he(rt,lt,we.error);return}}if(V0(we))throw lf(400,{type:"defer-action"});let Re=u.navigation.location||u.location,Pe=U1(e.history,Re,We.signal),Ve=O||D,Je=u.navigation.state!=="idle"?Dm(Ve,u.navigation.location,t):u.matches;Ji(Je,"Didn't find any matches after fetcher action");let ot=++P;k.set(rt,ot);let yt=H1(Ye,we.data);u.fetchers.set(rt,yt);let[ut,It]=sI(e.history,u,Je,Ye,Re,!1,M,R,T,G,N,I,Ve,t,{[wt.route.id]:we.data},void 0);It.filter(qt=>qt.key!==rt).forEach(qt=>{let br=qt.key,sr=u.fetchers.get(br),Ct=H1(void 0,sr?sr.data:void 0);u.fetchers.set(br,Ct),L.has(br)&&ke(br),qt.controller&&L.set(br,qt.controller)}),q({fetchers:new Map(u.fetchers)});let Vt=()=>It.forEach(qt=>ke(qt.key));We.signal.addEventListener("abort",Vt);let{results:xt,loaderResults:Lt,fetcherResults:Xt}=await ee(u.matches,Je,ut,It,Pe);if(We.signal.aborted)return;We.signal.removeEventListener("abort",Vt),k.delete(rt),L.delete(rt),It.forEach(qt=>L.delete(qt.key));let dr=vI(xt);if(dr){if(dr.idx>=ut.length){let qt=It[dr.idx-ut.length].key;I.add(qt)}return re(u,dr.result)}let{loaderData:Tt,errors:Kt}=fI(u,u.matches,ut,Lt,void 0,It,Xt,U);if(u.fetchers.has(rt)){let qt=ip(we.data);u.fetchers.set(rt,qt)}be(ot),u.navigation.state==="loading"&&ot>d?(Ji(b,"Expected pending action"),E&&E.abort(),ae(u.navigation.location,{matches:Je,loaderData:Tt,errors:Kt,fetchers:new Map(u.fetchers)})):(q({errors:Kt,loaderData:dI(u.loaderData,Tt,Je,Kt),fetchers:new Map(u.fetchers)}),M=!1)}async function ce(rt,lt,dt,wt,et,Be,Ye){let Ze=u.fetchers.get(rt);le(rt,H1(Ye,Ze?Ze.data:void 0),{flushSync:Be});let We=new AbortController,Fe=U1(e.history,dt,We.signal);L.set(rt,We);let Me=P,we=await N1("loader",Fe,wt,et,Y,j,t,l.v7_relativeSplatPath);if(V0(we)&&(we=await YO(we,Fe.signal,!0)||we),L.get(rt)===We&&L.delete(rt),!Fe.signal.aborted){if(G.has(rt)){le(rt,ip(void 0));return}if(j0(we))if(d>Me){le(rt,ip(void 0));return}else{I.add(rt),await re(u,we);return}if(Om(we)){he(rt,lt,we.error);return}Ji(!V0(we),"Unhandled fetcher deferred data"),le(rt,ip(we.data))}}async function re(rt,lt,dt){let{submission:wt,fetcherSubmission:et,replace:Be}=dt===void 0?{}:dt;lt.revalidate&&(M=!0);let Ye=eb(rt.location,lt.location,{_isRedirect:!0});if(Ji(Ye,"Expected a location on the redirect navigation"),x){let Re=!1;if(lt.reloadDocument)Re=!0;else if(jO.test(lt.location)){const Pe=e.history.createURL(lt.location);Re=Pe.origin!==r.location.origin||Wy(Pe.pathname,t)==null}if(Re){Be?r.location.replace(lt.location):r.location.assign(lt.location);return}}E=null;let Ze=Be===!0?Ys.Replace:Ys.Push,{formMethod:We,formAction:Fe,formEncType:Me}=rt.navigation;!wt&&!et&&We&&Fe&&Me&&(wt=gI(rt.navigation));let we=wt||et;if(pue.has(lt.status)&&we&&hd(we.formMethod))await Q(Ze,Ye,{submission:Is({},we,{formAction:lt.location}),preventScrollReset:p});else{let Re=TC(Ye,wt);await Q(Ze,Ye,{overrideNavigation:Re,fetcherSubmission:et,preventScrollReset:p})}}async function ee(rt,lt,dt,wt,et){let Be=await Promise.all([...dt.map(We=>N1("loader",et,We,lt,Y,j,t,l.v7_relativeSplatPath)),...wt.map(We=>We.matches&&We.match&&We.controller?N1("loader",U1(e.history,We.path,We.controller.signal),We.match,We.matches,Y,j,t,l.v7_relativeSplatPath):{type:Ps.error,error:lf(404,{pathname:We.path})})]),Ye=Be.slice(0,dt.length),Ze=Be.slice(dt.length);return await Promise.all([pI(rt,dt,Ye,Ye.map(()=>et.signal),!1,u.loaderData),pI(rt,wt.map(We=>We.match),Ze,wt.map(We=>We.controller?We.controller.signal:null),!0)]),{results:Be,loaderResults:Ye,fetcherResults:Ze}}function de(){M=!0,R.push(...$e()),N.forEach((rt,lt)=>{L.has(lt)&&(T.push(lt),ke(lt))})}function le(rt,lt,dt){dt===void 0&&(dt={}),u.fetchers.set(rt,lt),q({fetchers:new Map(u.fetchers)},{flushSync:(dt&&dt.flushSync)===!0})}function he(rt,lt,dt,wt){wt===void 0&&(wt={});let et=Sx(u.matches,lt);Ee(rt),q({errors:{[et.route.id]:dt},fetchers:new Map(u.fetchers)},{flushSync:(wt&&wt.flushSync)===!0})}function xe(rt){return l.v7_fetcherPersist&&(B.set(rt,(B.get(rt)||0)+1),G.has(rt)&&G.delete(rt)),u.fetchers.get(rt)||gue}function Ee(rt){let lt=u.fetchers.get(rt);L.has(rt)&&!(lt&<.state==="loading"&&k.has(rt))&&ke(rt),N.delete(rt),k.delete(rt),I.delete(rt),G.delete(rt),u.fetchers.delete(rt)}function Se(rt){if(l.v7_fetcherPersist){let lt=(B.get(rt)||0)-1;lt<=0?(B.delete(rt),G.add(rt)):B.set(rt,lt)}else Ee(rt);q({fetchers:new Map(u.fetchers)})}function ke(rt){let lt=L.get(rt);Ji(lt,"Expected fetch controller: "+rt),lt.abort(),L.delete(rt)}function Te(rt){for(let lt of rt){let dt=xe(lt),wt=ip(dt.data);u.fetchers.set(lt,wt)}}function Ae(){let rt=[],lt=!1;for(let dt of I){let wt=u.fetchers.get(dt);Ji(wt,"Expected fetcher: "+dt),wt.state==="loading"&&(I.delete(dt),rt.push(dt),lt=!0)}return Te(rt),lt}function be(rt){let lt=[];for(let[dt,wt]of k)if(wt0}function Ie(rt,lt){let dt=u.blockers.get(rt)||B1;return H.get(rt)!==lt&&H.set(rt,lt),dt}function Ue(rt){u.blockers.delete(rt),H.delete(rt)}function Ne(rt,lt){let dt=u.blockers.get(rt)||B1;Ji(dt.state==="unblocked"&<.state==="blocked"||dt.state==="blocked"&<.state==="blocked"||dt.state==="blocked"&<.state==="proceeding"||dt.state==="blocked"&<.state==="unblocked"||dt.state==="proceeding"&<.state==="unblocked","Invalid blocker state transition: "+dt.state+" -> "+lt.state);let wt=new Map(u.blockers);wt.set(rt,lt),q({blockers:wt})}function ze(rt){let{currentLocation:lt,nextLocation:dt,historyAction:wt}=rt;if(H.size===0)return;H.size>1&&Ly(!1,"A router only supports one blocker at a time");let et=Array.from(H.entries()),[Be,Ye]=et[et.length-1],Ze=u.blockers.get(Be);if(!(Ze&&Ze.state==="proceeding")&&Ye({currentLocation:lt,nextLocation:dt,historyAction:wt}))return Be}function $e(rt){let lt=[];return U.forEach((dt,wt)=>{(!rt||rt(wt))&&(dt.cancel(),lt.push(wt),U.delete(wt))}),lt}function st(rt,lt,dt){if(C=rt,v=lt,w=dt||null,!m&&u.navigation===wC){m=!0;let wt=nt(u.location,u.matches);wt!=null&&q({restoreScrollPosition:wt})}return()=>{C=null,v=null,w=null}}function vt(rt,lt){return w&&w(rt,lt.map(wt=>$le(wt,u.loaderData)))||rt.key}function at(rt,lt){if(C&&v){let dt=vt(rt,lt);C[dt]=v()}}function nt(rt,lt){if(C){let dt=vt(rt,lt),wt=C[dt];if(typeof wt=="number")return wt}return null}function mt(rt){Y={},O=eM(rt,j,void 0,Y)}return f={get basename(){return t},get future(){return l},get state(){return u},get routes(){return D},get window(){return r},initialize:V,subscribe:Z,enableScrollRestoration:st,navigate:ie,fetch:K,revalidate:fe,createHref:rt=>e.history.createHref(rt),encodeLocation:rt=>e.history.encodeLocation(rt),getFetcher:xe,deleteFetcher:Se,dispose:$,getBlocker:Ie,deleteBlocker:Ue,_internalFetchControllers:L,_internalActiveDeferreds:U,_internalSetRoutes:mt},f}function xue(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tM(e,r,x,F,j,Y,D,O){let t,l;if(D){t=[];for(let i of r)if(t.push(i),i.route.id===D){l=i;break}}else t=r,l=r[r.length-1];let S=I5(j||".",L5(t,Y),Wy(e.pathname,x)||e.pathname,O==="path");return j==null&&(S.search=e.search,S.hash=e.hash),(j==null||j===""||j===".")&&l&&l.route.index&&!k5(S.search)&&(S.search=S.search?S.search.replace(/^\?/,"?index&"):"?index"),F&&x!=="/"&&(S.pathname=S.pathname==="/"?x:ev([x,S.pathname])),vg(S)}function oI(e,r,x,F){if(!F||!xue(F))return{path:x};if(F.formMethod&&!Aue(F.formMethod))return{path:x,error:lf(405,{method:F.formMethod})};let j=()=>({path:x,error:lf(400,{type:"invalid-body"})}),Y=F.formMethod||"get",D=e?Y.toUpperCase():Y.toLowerCase(),O=$O(x);if(F.body!==void 0){if(F.formEncType==="text/plain"){if(!hd(D))return j();let C=typeof F.body=="string"?F.body:F.body instanceof FormData||F.body instanceof URLSearchParams?Array.from(F.body.entries()).reduce((w,v)=>{let[m,a]=v;return""+w+m+"="+a+` +`},""):String(F.body);return{path:x,submission:{formMethod:D,formAction:O,formEncType:F.formEncType,formData:void 0,json:void 0,text:C}}}else if(F.formEncType==="application/json"){if(!hd(D))return j();try{let C=typeof F.body=="string"?JSON.parse(F.body):F.body;return{path:x,submission:{formMethod:D,formAction:O,formEncType:F.formEncType,formData:void 0,json:C,text:void 0}}}catch{return j()}}}Ji(typeof FormData=="function","FormData is not available in this environment");let t,l;if(F.formData)t=rM(F.formData),l=F.formData;else if(F.body instanceof FormData)t=rM(F.body),l=F.body;else if(F.body instanceof URLSearchParams)t=F.body,l=cI(t);else if(F.body==null)t=new URLSearchParams,l=new FormData;else try{t=new URLSearchParams(F.body),l=cI(t)}catch{return j()}let S={formMethod:D,formAction:O,formEncType:F&&F.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(hd(S.formMethod))return{path:x,submission:S};let i=Kp(x);return r&&i.search&&k5(i.search)&&t.append("index",""),i.search="?"+t,{path:vg(i),submission:S}}function bue(e,r){let x=e;if(r){let F=e.findIndex(j=>j.route.id===r);F>=0&&(x=e.slice(0,F))}return x}function sI(e,r,x,F,j,Y,D,O,t,l,S,i,C,w,v,m){let a=m?Object.values(m)[0]:v?Object.values(v)[0]:void 0,n=e.createURL(r.location),s=e.createURL(j),o=m?Object.keys(m)[0]:void 0,f=bue(x,o).filter((b,p)=>{let{route:E}=b;if(E.lazy)return!0;if(E.loader==null)return!1;if(Y)return E.loader.hydrate?!0:r.loaderData[E.id]===void 0&&(!r.errors||r.errors[E.id]===void 0);if(wue(r.loaderData,r.matches[p],b)||O.some(y=>y===b.route.id))return!0;let g=r.matches[p],c=b;return lI(b,Is({currentUrl:n,currentParams:g.params,nextUrl:s,nextParams:c.params},F,{actionResult:a,defaultShouldRevalidate:D||n.pathname+n.search===s.pathname+s.search||n.search!==s.search||WO(g,c)}))}),u=[];return S.forEach((b,p)=>{if(Y||!x.some(A=>A.route.id===b.routeId)||l.has(p))return;let E=Dm(C,b.path,w);if(!E){u.push({key:p,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let g=r.fetchers.get(p),c=nM(E,b.path),y=!1;i.has(p)?y=!1:t.includes(p)?y=!0:g&&g.state!=="idle"&&g.data===void 0?y=D:y=lI(c,Is({currentUrl:n,currentParams:r.matches[r.matches.length-1].params,nextUrl:s,nextParams:x[x.length-1].params},F,{actionResult:a,defaultShouldRevalidate:D})),y&&u.push({key:p,routeId:b.routeId,path:b.path,matches:E,match:c,controller:new AbortController})}),[f,u]}function wue(e,r,x){let F=!r||x.route.id!==r.route.id,j=e[x.route.id]===void 0;return F||j}function WO(e,r){let x=e.route.path;return e.pathname!==r.pathname||x!=null&&x.endsWith("*")&&e.params["*"]!==r.params["*"]}function lI(e,r){if(e.route.shouldRevalidate){let x=e.route.shouldRevalidate(r);if(typeof x=="boolean")return x}return r.defaultShouldRevalidate}async function uI(e,r,x){if(!e.lazy)return;let F=await e.lazy();if(!e.lazy)return;let j=x[e.id];Ji(j,"No route found in manifest");let Y={};for(let D in F){let t=j[D]!==void 0&&D!=="hasErrorBoundary";Ly(!t,'Route "'+j.id+'" has a static property "'+D+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+D+'" will be ignored.')),!t&&!Gle.has(D)&&(Y[D]=F[D])}Object.assign(j,Y),Object.assign(j,Is({},r(j),{lazy:void 0}))}async function N1(e,r,x,F,j,Y,D,O,t){t===void 0&&(t={});let l,S,i,C=m=>{let a,n=new Promise((s,o)=>a=o);return i=()=>a(),r.signal.addEventListener("abort",i),Promise.race([m({request:r,params:x.params,context:t.requestContext}),n])};try{let m=x.route[e];if(x.route.lazy)if(m){let a,n=await Promise.all([C(m).catch(s=>{a=s}),uI(x.route,Y,j)]);if(a)throw a;S=n[0]}else if(await uI(x.route,Y,j),m=x.route[e],m)S=await C(m);else if(e==="action"){let a=new URL(r.url),n=a.pathname+a.search;throw lf(405,{method:r.method,pathname:n,routeId:x.route.id})}else return{type:Ps.data,data:void 0};else if(m)S=await C(m);else{let a=new URL(r.url),n=a.pathname+a.search;throw lf(404,{pathname:n})}Ji(S!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+x.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){l=Ps.error,S=m}finally{i&&r.signal.removeEventListener("abort",i)}if(Mue(S)){let m=S.status;if(vue.has(m)){let n=S.headers.get("Location");if(Ji(n,"Redirects returned/thrown from loaders/actions must have a Location header"),!jO.test(n))n=tM(new URL(r.url),F.slice(0,F.indexOf(x)+1),D,!0,n,O);else if(!t.isStaticRequest){let s=new URL(r.url),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),h=Wy(o.pathname,D)!=null;o.origin===s.origin&&h&&(n=o.pathname+o.search+o.hash)}if(t.isStaticRequest)throw S.headers.set("Location",n),S;return{type:Ps.redirect,status:m,location:n,revalidate:S.headers.get("X-Remix-Revalidate")!==null,reloadDocument:S.headers.get("X-Remix-Reload-Document")!==null}}if(t.isRouteRequest)throw{type:l===Ps.error?Ps.error:Ps.data,response:S};let a;try{let n=S.headers.get("Content-Type");n&&/\bapplication\/json\b/.test(n)?S.body==null?a=null:a=await S.json():a=await S.text()}catch(n){return{type:Ps.error,error:n}}return l===Ps.error?{type:l,error:new R5(m,S.statusText,a),headers:S.headers}:{type:Ps.data,data:a,statusCode:S.status,headers:S.headers}}if(l===Ps.error)return{type:l,error:S};if(Cue(S)){var w,v;return{type:Ps.deferred,deferredData:S,statusCode:(w=S.init)==null?void 0:w.status,headers:((v=S.init)==null?void 0:v.headers)&&new Headers(S.init.headers)}}return{type:Ps.data,data:S}}function U1(e,r,x,F){let j=e.createURL($O(r)).toString(),Y={signal:x};if(F&&hd(F.formMethod)){let{formMethod:D,formEncType:O}=F;Y.method=D.toUpperCase(),O==="application/json"?(Y.headers=new Headers({"Content-Type":O}),Y.body=JSON.stringify(F.json)):O==="text/plain"?Y.body=F.text:O==="application/x-www-form-urlencoded"&&F.formData?Y.body=rM(F.formData):Y.body=F.formData}return new Request(j,Y)}function rM(e){let r=new URLSearchParams;for(let[x,F]of e.entries())r.append(x,typeof F=="string"?F:F.name);return r}function cI(e){let r=new FormData;for(let[x,F]of e.entries())r.append(x,F);return r}function Tue(e,r,x,F,j){let Y={},D=null,O,t=!1,l={};return x.forEach((S,i)=>{let C=r[i].route.id;if(Ji(!j0(S),"Cannot handle redirect results in processLoaderData"),Om(S)){let w=Sx(e,C),v=S.error;F&&(v=Object.values(F)[0],F=void 0),D=D||{},D[w.route.id]==null&&(D[w.route.id]=v),Y[C]=void 0,t||(t=!0,O=HO(S.error)?S.error.status:500),S.headers&&(l[C]=S.headers)}else V0(S)?(j.set(C,S.deferredData),Y[C]=S.deferredData.data):Y[C]=S.data,S.statusCode!=null&&S.statusCode!==200&&!t&&(O=S.statusCode),S.headers&&(l[C]=S.headers)}),F&&(D=F,Y[Object.keys(F)[0]]=void 0),{loaderData:Y,errors:D,statusCode:O||200,loaderHeaders:l}}function fI(e,r,x,F,j,Y,D,O){let{loaderData:t,errors:l}=Tue(r,x,F,j,O);for(let S=0;SF.route.id===r)+1):[...e]).reverse().find(F=>F.route.hasErrorBoundary===!0)||e[0]}function hI(e){let r=e.length===1?e[0]:e.find(x=>x.index||!x.path||x.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function lf(e,r){let{pathname:x,routeId:F,method:j,type:Y}=r===void 0?{}:r,D="Unknown Server Error",O="Unknown @remix-run/router error";return e===400?(D="Bad Request",j&&x&&F?O="You made a "+j+' request to "'+x+'" but '+('did not provide a `loader` for route "'+F+'", ')+"so there is no way to handle the request.":Y==="defer-action"?O="defer() is not supported in actions":Y==="invalid-body"&&(O="Unable to encode submission body")):e===403?(D="Forbidden",O='Route "'+F+'" does not match URL "'+x+'"'):e===404?(D="Not Found",O='No route matches URL "'+x+'"'):e===405&&(D="Method Not Allowed",j&&x&&F?O="You made a "+j.toUpperCase()+' request to "'+x+'" but '+('did not provide an `action` for route "'+F+'", ')+"so there is no way to handle the request.":j&&(O='Invalid request method "'+j.toUpperCase()+'"')),new R5(e||500,D,new Error(O),!0)}function vI(e){for(let r=e.length-1;r>=0;r--){let x=e[r];if(j0(x))return{result:x,idx:r}}}function $O(e){let r=typeof e=="string"?Kp(e):e;return vg(Is({},r,{hash:""}))}function Sue(e,r){return e.pathname!==r.pathname||e.search!==r.search?!1:e.hash===""?r.hash!=="":e.hash===r.hash?!0:r.hash!==""}function V0(e){return e.type===Ps.deferred}function Om(e){return e.type===Ps.error}function j0(e){return(e&&e.type)===Ps.redirect}function Cue(e){let r=e;return r&&typeof r=="object"&&typeof r.data=="object"&&typeof r.subscribe=="function"&&typeof r.cancel=="function"&&typeof r.resolveData=="function"}function Mue(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Aue(e){return hue.has(e.toLowerCase())}function hd(e){return fue.has(e.toLowerCase())}async function pI(e,r,x,F,j,Y){for(let D=0;Di.route.id===t.route.id),S=l!=null&&!WO(l,t)&&(Y&&Y[t.route.id])!==void 0;if(V0(O)&&(j||S)){let i=F[D];Ji(i,"Expected an AbortSignal for revalidating fetcher deferred result"),await YO(O,i,j).then(C=>{C&&(x[D]=C||x[D])})}}}async function YO(e,r,x){if(x===void 0&&(x=!1),!await e.deferredData.resolveData(r)){if(x)try{return{type:Ps.data,data:e.deferredData.unwrappedData}}catch(j){return{type:Ps.error,error:j}}return{type:Ps.data,data:e.deferredData.data}}}function k5(e){return new URLSearchParams(e).getAll("index").some(r=>r==="")}function nM(e,r){let x=typeof r=="string"?Kp(r).search:r.search;if(e[e.length-1].route.index&&k5(x||""))return e[e.length-1];let F=UO(e);return F[F.length-1]}function gI(e){let{formMethod:r,formAction:x,formEncType:F,text:j,formData:Y,json:D}=e;if(!(!r||!x||!F)){if(j!=null)return{formMethod:r,formAction:x,formEncType:F,formData:void 0,json:void 0,text:j};if(Y!=null)return{formMethod:r,formAction:x,formEncType:F,formData:Y,json:void 0,text:void 0};if(D!==void 0)return{formMethod:r,formAction:x,formEncType:F,formData:void 0,json:D,text:void 0}}}function TC(e,r){return r?{state:"loading",location:e,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Eue(e,r){return{state:"submitting",location:e,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function H1(e,r){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function Pue(e,r){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:r?r.data:void 0}}function ip(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Lue(e,r){try{let x=e.sessionStorage.getItem(GO);if(x){let F=JSON.parse(x);for(let[j,Y]of Object.entries(F||{}))Y&&Array.isArray(Y)&&r.set(j,new Set(Y||[]))}}catch{}}function Iue(e,r){if(r.size>0){let x={};for(let[F,j]of r)x[F]=[...j];try{e.sessionStorage.setItem(GO,JSON.stringify(x))}catch(F){Ly(!1,"Failed to save applied view transitions in sessionStorage ("+F+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -283,7 +283,7 @@ Error generating stack: `+Y.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var r=1;r{O.current=!0}),Oe.useCallback(function(l,S){if(S===void 0&&(S={}),!O.current)return;if(typeof l=="number"){F.go(l);return}let i=U5(l,JSON.parse(D),Y,S.relative==="path");e==null&&r!=="/"&&(i.pathname=i.pathname==="/"?r:Qh([r,i.pathname])),(S.replace?F.replace:F.push)(i,S.state,S)},[r,F,D,Y,e])}const Cde=Oe.createContext(null);function Mde(e){let r=Oe.useContext(pv).outlet;return r&&Oe.createElement(Cde.Provider,{value:e},r)}function gF(){let{matches:e}=Oe.useContext(pv),r=e[e.length-1];return r?r.params:{}}function mF(e,r){let{relative:y}=r===void 0?{}:r,{future:F}=Oe.useContext(Sg),{matches:j}=Oe.useContext(pv),{pathname:Y}=Nb(),D=JSON.stringify(N5(j,F.v7_relativeSplatPath));return Oe.useMemo(()=>U5(e,JSON.parse(D),Y,y==="path"),[e,D,Y,y])}function Ade(e,r,y,F){Bb()||Ji(!1);let{navigator:j}=Oe.useContext(Sg),{matches:Y}=Oe.useContext(pv),D=Y[Y.length-1],O=D?D.params:{};D&&D.pathname;let t=D?D.pathnameBase:"/";D&&D.route;let l=Nb(),S;if(r){var i;let a=typeof r=="string"?vv(r):r;t==="/"||(i=a.pathname)!=null&&i.startsWith(t)||Ji(!1),S=a}else S=l;let C=S.pathname||"/",w=C;if(t!=="/"){let a=t.replace(/^\//,"").split("/");w="/"+C.replace(/^\//,"").split("/").slice(a.length).join("/")}let v=Dm(e,{pathname:w}),m=Rde(v&&v.map(a=>Object.assign({},a,{params:Object.assign({},O,a.params),pathname:Qh([t,j.encodeLocation?j.encodeLocation(a.pathname).pathname:a.pathname]),pathnameBase:a.pathnameBase==="/"?t:Qh([t,j.encodeLocation?j.encodeLocation(a.pathnameBase).pathname:a.pathnameBase])})),Y,y,F);return r&&m?Oe.createElement(XT.Provider,{value:{location:tb({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:_s.Pop}},m):m}function Ede(){let e=Fde(),r=iF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),y=e instanceof Error?e.stack:null,j={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Oe.createElement(Oe.Fragment,null,Oe.createElement("h2",null,"Unexpected Application Error!"),Oe.createElement("h3",{style:{fontStyle:"italic"}},r),y?Oe.createElement("pre",{style:j},y):null,null)}const Pde=Oe.createElement(Ede,null);class Lde extends Oe.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,y){return y.location!==r.location||y.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:y.error,location:y.location,revalidation:r.revalidation||y.revalidation}}componentDidCatch(r,y){console.error("React Router caught the following error during render",r,y)}render(){return this.state.error!==void 0?Oe.createElement(pv.Provider,{value:this.props.routeContext},Oe.createElement(hF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ide(e){let{routeContext:r,match:y,children:F}=e,j=Oe.useContext(YT);return j&&j.static&&j.staticContext&&(y.route.errorElement||y.route.ErrorBoundary)&&(j.staticContext._deepestRenderedBoundaryId=y.route.id),Oe.createElement(pv.Provider,{value:r},F)}function Rde(e,r,y,F){var j;if(r===void 0&&(r=[]),y===void 0&&(y=null),F===void 0&&(F=null),e==null){var Y;if((Y=y)!=null&&Y.errors)e=y.matches;else return null}let D=e,O=(j=y)==null?void 0:j.errors;if(O!=null){let S=D.findIndex(i=>i.route.id&&(O==null?void 0:O[i.route.id]));S>=0||Ji(!1),D=D.slice(0,Math.min(D.length,S+1))}let t=!1,l=-1;if(y&&F&&F.v7_partialHydration)for(let S=0;S=0?D=D.slice(0,l+1):D=[D[0]];break}}}return D.reduceRight((S,i,C)=>{let w,v=!1,m=null,a=null;y&&(w=O&&i.route.id?O[i.route.id]:void 0,m=i.route.errorElement||Pde,t&&(l<0&&C===0?(zde("route-fallback",!1),v=!0,a=null):l===C&&(v=!0,a=i.route.hydrateFallbackElement||null)));let n=r.concat(D.slice(0,C+1)),s=()=>{let o;return w?o=m:v?o=a:i.route.Component?o=Oe.createElement(i.route.Component,null):i.route.element?o=i.route.element:o=S,Oe.createElement(Ide,{match:i,routeContext:{outlet:S,matches:n,isDataRoute:y!=null},children:o})};return y&&(i.route.ErrorBoundary||i.route.errorElement||C===0)?Oe.createElement(Lde,{location:y.location,revalidation:y.revalidation,component:m,error:w,children:s(),routeContext:{outlet:null,matches:n,isDataRoute:!0}}):s()},null)}var yF=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(yF||{}),g2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(g2||{});function kde(e){let r=Oe.useContext(YT);return r||Ji(!1),r}function Dde(e){let r=Oe.useContext(dF);return r||Ji(!1),r}function Ode(e){let r=Oe.useContext(pv);return r||Ji(!1),r}function xF(e){let r=Ode(),y=r.matches[r.matches.length-1];return y.route.id||Ji(!1),y.route.id}function Fde(){var e;let r=Oe.useContext(hF),y=Dde(g2.UseRouteError),F=xF(g2.UseRouteError);return r!==void 0?r:(e=y.errors)==null?void 0:e[F]}function _de(){let{router:e}=kde(yF.UseNavigateStable),r=xF(g2.UseNavigateStable),y=Oe.useRef(!1);return vF(()=>{y.current=!0}),Oe.useCallback(function(j,Y){Y===void 0&&(Y={}),y.current&&(typeof j=="number"?e.navigate(j):e.navigate(j,tb({fromRouteId:r},Y)))},[e,r])}const MI={};function zde(e,r,y){!r&&!MI[e]&&(MI[e]=!0)}function Kp(e){return Mde(e.context)}function Bde(e){let{basename:r="/",children:y=null,location:F,navigationType:j=_s.Pop,navigator:Y,static:D=!1,future:O}=e;Bb()&&Ji(!1);let t=r.replace(/^\/*/,"/"),l=Oe.useMemo(()=>({basename:t,navigator:Y,static:D,future:tb({v7_relativeSplatPath:!1},O)}),[t,O,Y,D]);typeof F=="string"&&(F=vv(F));let{pathname:S="/",search:i="",hash:C="",state:w=null,key:v="default"}=F,m=Oe.useMemo(()=>{let a=Gy(S,t);return a==null?null:{location:{pathname:a,search:i,hash:C,state:w,key:v},navigationType:j}},[t,S,i,C,w,v,j]);return m==null?null:Oe.createElement(Sg.Provider,{value:l},Oe.createElement(XT.Provider,{children:y,value:m}))}new Promise(()=>{});function Nde(e){let r={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(r,{element:Oe.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(r,{hydrateFallbackElement:Oe.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(r,{errorElement:Oe.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),r}/** + */function u2(){return u2=Object.assign?Object.assign.bind():function(e){for(var r=1;r{O.current=!0}),Oe.useCallback(function(l,S){if(S===void 0&&(S={}),!O.current)return;if(typeof l=="number"){F.go(l);return}let i=I5(l,JSON.parse(D),Y,S.relative==="path");e==null&&r!=="/"&&(i.pathname=i.pathname==="/"?r:ev([r,i.pathname])),(S.replace?F.replace:F.push)(i,S.state,S)},[r,F,D,Y,e])}const Due=Oe.createContext(null);function Oue(e){let r=Oe.useContext(pv).outlet;return r&&Oe.createElement(Due.Provider,{value:e},r)}function QO(){let{matches:e}=Oe.useContext(pv),r=e[e.length-1];return r?r.params:{}}function qO(e,r){let{relative:x}=r===void 0?{}:r,{future:F}=Oe.useContext(Sg),{matches:j}=Oe.useContext(pv),{pathname:Y}=kb(),D=JSON.stringify(L5(j,F.v7_relativeSplatPath));return Oe.useMemo(()=>I5(e,JSON.parse(D),Y,x==="path"),[e,D,Y,x])}function Fue(e,r,x,F){Rb()||Ji(!1);let{navigator:j}=Oe.useContext(Sg),{matches:Y}=Oe.useContext(pv),D=Y[Y.length-1],O=D?D.params:{};D&&D.pathname;let t=D?D.pathnameBase:"/";D&&D.route;let l=kb(),S;S=l;let i=S.pathname||"/",C=i;if(t!=="/"){let m=t.replace(/^\//,"").split("/");C="/"+i.replace(/^\//,"").split("/").slice(m.length).join("/")}let w=Dm(e,{pathname:C});return Uue(w&&w.map(m=>Object.assign({},m,{params:Object.assign({},O,m.params),pathname:ev([t,j.encodeLocation?j.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?t:ev([t,j.encodeLocation?j.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),Y,x,F)}function _ue(){let e=Gue(),r=HO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),x=e instanceof Error?e.stack:null,j={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Oe.createElement(Oe.Fragment,null,Oe.createElement("h2",null,"Unexpected Application Error!"),Oe.createElement("h3",{style:{fontStyle:"italic"}},r),x?Oe.createElement("pre",{style:j},x):null,null)}const zue=Oe.createElement(_ue,null);class Bue extends Oe.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,x){return x.location!==r.location||x.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:x.error,location:x.location,revalidation:r.revalidation||x.revalidation}}componentDidCatch(r,x){console.error("React Router caught the following error during render",r,x)}render(){return this.state.error!==void 0?Oe.createElement(pv.Provider,{value:this.props.routeContext},Oe.createElement(ZO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nue(e){let{routeContext:r,match:x,children:F}=e,j=Oe.useContext(NT);return j&&j.static&&j.staticContext&&(x.route.errorElement||x.route.ErrorBoundary)&&(j.staticContext._deepestRenderedBoundaryId=x.route.id),Oe.createElement(pv.Provider,{value:r},F)}function Uue(e,r,x,F){var j;if(r===void 0&&(r=[]),x===void 0&&(x=null),F===void 0&&(F=null),e==null){var Y;if((Y=x)!=null&&Y.errors)e=x.matches;else return null}let D=e,O=(j=x)==null?void 0:j.errors;if(O!=null){let S=D.findIndex(i=>i.route.id&&(O==null?void 0:O[i.route.id]));S>=0||Ji(!1),D=D.slice(0,Math.min(D.length,S+1))}let t=!1,l=-1;if(x&&F&&F.v7_partialHydration)for(let S=0;S=0?D=D.slice(0,l+1):D=[D[0]];break}}}return D.reduceRight((S,i,C)=>{let w,v=!1,m=null,a=null;x&&(w=O&&i.route.id?O[i.route.id]:void 0,m=i.route.errorElement||zue,t&&(l<0&&C===0?(v=!0,a=null):l===C&&(v=!0,a=i.route.hydrateFallbackElement||null)));let n=r.concat(D.slice(0,C+1)),s=()=>{let o;return w?o=m:v?o=a:i.route.Component?o=Oe.createElement(i.route.Component,null):i.route.element?o=i.route.element:o=S,Oe.createElement(Nue,{match:i,routeContext:{outlet:S,matches:n,isDataRoute:x!=null},children:o})};return x&&(i.route.ErrorBoundary||i.route.errorElement||C===0)?Oe.createElement(Bue,{location:x.location,revalidation:x.revalidation,component:m,error:w,children:s(),routeContext:{outlet:null,matches:n,isDataRoute:!0}}):s()},null)}var eF=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(eF||{}),c2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(c2||{});function Hue(e){let r=Oe.useContext(NT);return r||Ji(!1),r}function Vue(e){let r=Oe.useContext(XO);return r||Ji(!1),r}function jue(e){let r=Oe.useContext(pv);return r||Ji(!1),r}function tF(e){let r=jue(),x=r.matches[r.matches.length-1];return x.route.id||Ji(!1),x.route.id}function Gue(){var e;let r=Oe.useContext(ZO),x=Vue(c2.UseRouteError),F=tF(c2.UseRouteError);return r!==void 0?r:(e=x.errors)==null?void 0:e[F]}function Wue(){let{router:e}=Hue(eF.UseNavigateStable),r=tF(c2.UseNavigateStable),x=Oe.useRef(!1);return KO(()=>{x.current=!0}),Oe.useCallback(function(j,Y){Y===void 0&&(Y={}),x.current&&(typeof j=="number"?e.navigate(j):e.navigate(j,u2({fromRouteId:r},Y)))},[e,r])}function Jp(e){return Oue(e.context)}function $ue(e){let{basename:r="/",children:x=null,location:F,navigationType:j=Ys.Pop,navigator:Y,static:D=!1,future:O}=e;Rb()&&Ji(!1);let t=r.replace(/^\/*/,"/"),l=Oe.useMemo(()=>({basename:t,navigator:Y,static:D,future:u2({v7_relativeSplatPath:!1},O)}),[t,O,Y,D]);typeof F=="string"&&(F=Kp(F));let{pathname:S="/",search:i="",hash:C="",state:w=null,key:v="default"}=F,m=Oe.useMemo(()=>{let a=Wy(S,t);return a==null?null:{location:{pathname:a,search:i,hash:C,state:w,key:v},navigationType:j}},[t,S,i,C,w,v,j]);return m==null?null:Oe.createElement(Sg.Provider,{value:l},Oe.createElement(D5.Provider,{children:x,value:m}))}new Promise(()=>{});function Yue(e){let r={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(r,{element:Oe.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(r,{hydrateFallbackElement:Oe.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(r,{errorElement:Oe.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),r}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -292,12 +292,12 @@ Error generating stack: `+Y.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0)&&(y[j]=e[j]);return y}function Hde(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vde(e,r){return e.button===0&&(!r||r==="_self")&&!Hde(e)}const jde=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Gde="6";try{window.__reactRouterVersion=Gde}catch{}function bF(e,r){return ude({basename:r==null?void 0:r.basename,future:rb({},r==null?void 0:r.future,{v7_prependBasename:!0}),history:kfe({window:r==null?void 0:r.window}),hydrationData:(r==null?void 0:r.hydrationData)||Wde(),routes:e,mapRouteProperties:Nde,window:r==null?void 0:r.window}).initialize()}function Wde(){var e;let r=(e=window)==null?void 0:e.__staticRouterHydrationData;return r&&r.errors&&(r=rb({},r,{errors:$de(r.errors)})),r}function $de(e){if(!e)return null;let r=Object.entries(e),y={};for(let[F,j]of r)if(j&&j.__type==="RouteErrorResponse")y[F]=new H5(j.status,j.statusText,j.data,j.internal===!0);else if(j&&j.__type==="Error"){if(j.__subType){let Y=window[j.__subType];if(typeof Y=="function")try{let D=new Y(j.message);D.stack="",y[F]=D}catch{}}if(y[F]==null){let Y=new Error(j.message);Y.stack="",y[F]=Y}}else y[F]=j;return y}const Yde=Oe.createContext({isTransitioning:!1}),Xde=Oe.createContext(new Map),Zde="startTransition",AI=D3[Zde],Kde="flushSync",EI=ZV[Kde];function Jde(e){AI?AI(e):e()}function H1(e){EI?EI(e):e()}class Qde{constructor(){this.status="pending",this.promise=new Promise((r,y)=>{this.resolve=F=>{this.status==="pending"&&(this.status="resolved",r(F))},this.reject=F=>{this.status==="pending"&&(this.status="rejected",y(F))}})}}function qde(e){let{fallbackElement:r,router:y,future:F}=e,[j,Y]=Oe.useState(y.state),[D,O]=Oe.useState(),[t,l]=Oe.useState({isTransitioning:!1}),[S,i]=Oe.useState(),[C,w]=Oe.useState(),[v,m]=Oe.useState(),a=Oe.useRef(new Map),{v7_startTransition:n}=F||{},s=Oe.useCallback(b=>{n?Jde(b):b()},[n]),o=Oe.useCallback((b,p)=>{let{deletedFetchers:E,unstable_flushSync:g,unstable_viewTransitionOpts:c}=p;E.forEach(A=>a.current.delete(A)),b.fetchers.forEach((A,M)=>{A.data!==void 0&&a.current.set(M,A.data)});let x=y.window==null||typeof y.window.document.startViewTransition!="function";if(!c||x){g?H1(()=>Y(b)):s(()=>Y(b));return}if(g){H1(()=>{C&&(S&&S.resolve(),C.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:c.currentLocation,nextLocation:c.nextLocation})});let A=y.window.document.startViewTransition(()=>{H1(()=>Y(b))});A.finished.finally(()=>{H1(()=>{i(void 0),w(void 0),O(void 0),l({isTransitioning:!1})})}),H1(()=>w(A));return}C?(S&&S.resolve(),C.skipTransition(),m({state:b,currentLocation:c.currentLocation,nextLocation:c.nextLocation})):(O(b),l({isTransitioning:!0,flushSync:!1,currentLocation:c.currentLocation,nextLocation:c.nextLocation}))},[y.window,C,S,a,s]);Oe.useLayoutEffect(()=>y.subscribe(o),[y,o]),Oe.useEffect(()=>{t.isTransitioning&&!t.flushSync&&i(new Qde)},[t]),Oe.useEffect(()=>{if(S&&D&&y.window){let b=D,p=S.promise,E=y.window.document.startViewTransition(async()=>{s(()=>Y(b)),await p});E.finished.finally(()=>{i(void 0),w(void 0),O(void 0),l({isTransitioning:!1})}),w(E)}},[s,D,S,y.window]),Oe.useEffect(()=>{S&&D&&j.location.key===D.location.key&&S.resolve()},[S,C,j.location,D]),Oe.useEffect(()=>{!t.isTransitioning&&v&&(O(v.state),l({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),m(void 0))},[t.isTransitioning,v]),Oe.useEffect(()=>{},[]);let h=Oe.useMemo(()=>({createHref:y.createHref,encodeLocation:y.encodeLocation,go:b=>y.navigate(b),push:(b,p,E)=>y.navigate(b,{state:p,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(b,p,E)=>y.navigate(b,{replace:!0,state:p,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[y]),f=y.basename||"/",u=Oe.useMemo(()=>({router:y,navigator:h,static:!1,basename:f}),[y,h,f]);return Oe.createElement(Oe.Fragment,null,Oe.createElement(YT.Provider,{value:u},Oe.createElement(dF.Provider,{value:j},Oe.createElement(Xde.Provider,{value:a.current},Oe.createElement(Yde.Provider,{value:t},Oe.createElement(Bde,{basename:f,location:j.location,navigationType:j.historyAction,navigator:h,future:{v7_relativeSplatPath:y.future.v7_relativeSplatPath}},j.initialized||y.future.v7_partialHydration?Oe.createElement(ehe,{routes:y.routes,future:y.future,state:j}):r))))),null)}function ehe(e){let{routes:r,future:y,state:F}=e;return Ade(r,void 0,F,y)}const the=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rhe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ki=Oe.forwardRef(function(r,y){let{onClick:F,relative:j,reloadDocument:Y,replace:D,state:O,target:t,to:l,preventScrollReset:S,unstable_viewTransition:i}=r,C=Ude(r,jde),{basename:w}=Oe.useContext(Sg),v,m=!1;if(typeof l=="string"&&rhe.test(l)&&(v=l,the))try{let o=new URL(window.location.href),h=l.startsWith("//")?new URL(o.protocol+l):new URL(l),f=Gy(h.pathname,w);h.origin===o.origin&&f!=null?l=f+h.search+h.hash:m=!0}catch{}let a=Tde(l,{relative:j}),n=nhe(l,{replace:D,state:O,target:t,preventScrollReset:S,relative:j,unstable_viewTransition:i});function s(o){F&&F(o),o.defaultPrevented||n(o)}return Oe.createElement("a",rb({},C,{href:v||a,onClick:m||Y?F:s,ref:y,target:t}))});var PI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(PI||(PI={}));var LI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(LI||(LI={}));function nhe(e,r){let{target:y,replace:F,state:j,preventScrollReset:Y,relative:D,unstable_viewTransition:O}=r===void 0?{}:r,t=pF(),l=Nb(),S=mF(e,{relative:D});return Oe.useCallback(i=>{if(Vde(i,y)){i.preventDefault();let C=F!==void 0?F:vg(l)===vg(S);t(e,{replace:C,state:j,preventScrollReset:Y,relative:D,unstable_viewTransition:O})}},[l,t,S,F,j,y,e,Y,D,O])}var j5={},kC={};const ahe=cv(WY);var II;function Su(){return II||(II=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=ahe}(kC)),kC}var ihe=_l;Object.defineProperty(j5,"__esModule",{value:!0});var wF=j5.default=void 0,ohe=ihe(Su()),she=Ce;wF=j5.default=(0,ohe.default)((0,she.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var G5={},lhe=_l;Object.defineProperty(G5,"__esModule",{value:!0});var TF=G5.default=void 0,uhe=lhe(Su()),che=Ce;TF=G5.default=(0,uhe.default)((0,che.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");const zp=({to:e,...r})=>Ce.jsx(Ii,{...r,to:e,component:Ki}),Ap={title:"STRUDEL + React + MUI",navbar:{title:"My Project",logo:"strudel-logo-icon.png",items:[{label:"Playground",path:"/playground"}]},footer:{info:"Describe your project, place a copyright statement, or credit your funding organizations.",image:"strudel-logo-header.png",links:[{label:"Playground",path:"/playground"}]}},SF=({height:e,width:r,sx:y,children:F,...j})=>Ce.jsx(oa,{...j,sx:{...y,height:e||"auto",overflow:"hidden",width:r||"auto"},children:Vo.Children.map(F,Y=>{if(Vo.isValidElement(Y)){const D=r?"relative-width":"relative-height";return Vo.cloneElement(Y,{className:`${Y.props.className} ${D}`})}})}),Cg=()=>Ce.jsx(w9,{color:"default",position:"static",children:Ce.jsxs(L5,{children:[Ce.jsxs(La,{direction:"row",sx:{alignItems:"center",flexGrow:1},children:[Ce.jsxs(zp,{to:"/",children:[!Ap.navbar.logo,Ce.jsx(SF,{height:30,children:Ce.jsx("img",{src:`/strudel-kit/demo//${Ap.navbar.logo}`})})]}),Ce.jsx(zp,{to:"/",children:Ce.jsx(ea,{variant:"h6",component:"div",children:Ap.navbar.title})}),Ap.navbar.items.map((e,r)=>Ce.jsx(zp,{to:e.path,children:e.label},`${e.path}-${r}`))]}),Ce.jsx(fl,{size:"large",edge:"start",color:"inherit",children:Ce.jsx(TF,{})})]})});var RI={},DC={},OC=34,V1=10,FC=13;function CF(e){return new Function("d","return {"+e.map(function(r,y){return JSON.stringify(r)+": d["+y+'] || ""'}).join(",")+"}")}function fhe(e,r){var y=CF(e);return function(F,j){return r(y(F),j,e)}}function kI(e){var r=Object.create(null),y=[];return e.forEach(function(F){for(var j in F)j in r||y.push(r[j]=j)}),y}function Bu(e,r){var y=e+"",F=y.length;return F9999?"+"+Bu(e,6):Bu(e,4)}function hhe(e){var r=e.getUTCHours(),y=e.getUTCMinutes(),F=e.getUTCSeconds(),j=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":dhe(e.getUTCFullYear())+"-"+Bu(e.getUTCMonth()+1,2)+"-"+Bu(e.getUTCDate(),2)+(j?"T"+Bu(r,2)+":"+Bu(y,2)+":"+Bu(F,2)+"."+Bu(j,3)+"Z":F?"T"+Bu(r,2)+":"+Bu(y,2)+":"+Bu(F,2)+"Z":y||r?"T"+Bu(r,2)+":"+Bu(y,2)+"Z":"")}function MF(e){var r=new RegExp('["'+e+` -\r]`),y=e.charCodeAt(0);function F(i,C){var w,v,m=j(i,function(a,n){if(w)return w(a,n-1);v=a,w=C?fhe(a,C):CF(a)});return m.columns=v||[],m}function j(i,C){var w=[],v=i.length,m=0,a=0,n,s=v<=0,o=!1;i.charCodeAt(v-1)===V1&&--v,i.charCodeAt(v-1)===FC&&--v;function h(){if(s)return DC;if(o)return o=!1,RI;var u,b=m,p;if(i.charCodeAt(b)===OC){for(;m++=v?s=!0:(p=i.charCodeAt(m++))===V1?o=!0:p===FC&&(o=!0,i.charCodeAt(m)===V1&&++m),i.slice(b+1,u-1).replace(/""/g,'"')}for(;m=0)&&(x[j]=e[j]);return x}function Zue(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kue(e,r){return e.button===0&&(!r||r==="_self")&&!Zue(e)}const Jue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Que="6";try{window.__reactRouterVersion=Que}catch{}function rF(e,r){return yue({basename:r==null?void 0:r.basename,future:tb({},r==null?void 0:r.future,{v7_prependBasename:!0}),history:Hle({window:r==null?void 0:r.window}),hydrationData:(r==null?void 0:r.hydrationData)||que(),routes:e,mapRouteProperties:Yue,window:r==null?void 0:r.window}).initialize()}function que(){var e;let r=(e=window)==null?void 0:e.__staticRouterHydrationData;return r&&r.errors&&(r=tb({},r,{errors:ece(r.errors)})),r}function ece(e){if(!e)return null;let r=Object.entries(e),x={};for(let[F,j]of r)if(j&&j.__type==="RouteErrorResponse")x[F]=new R5(j.status,j.statusText,j.data,j.internal===!0);else if(j&&j.__type==="Error"){if(j.__subType){let Y=window[j.__subType];if(typeof Y=="function")try{let D=new Y(j.message);D.stack="",x[F]=D}catch{}}if(x[F]==null){let Y=new Error(j.message);Y.stack="",x[F]=Y}}else x[F]=j;return x}const tce=Oe.createContext({isTransitioning:!1}),rce=Oe.createContext(new Map),nce="startTransition",mI=A3[nce],ace="flushSync",yI=RV[ace];function ice(e){mI?mI(e):e()}function V1(e){yI?yI(e):e()}class oce{constructor(){this.status="pending",this.promise=new Promise((r,x)=>{this.resolve=F=>{this.status==="pending"&&(this.status="resolved",r(F))},this.reject=F=>{this.status==="pending"&&(this.status="rejected",x(F))}})}}function sce(e){let{fallbackElement:r,router:x,future:F}=e,[j,Y]=Oe.useState(x.state),[D,O]=Oe.useState(),[t,l]=Oe.useState({isTransitioning:!1}),[S,i]=Oe.useState(),[C,w]=Oe.useState(),[v,m]=Oe.useState(),a=Oe.useRef(new Map),{v7_startTransition:n}=F||{},s=Oe.useCallback(b=>{n?ice(b):b()},[n]),o=Oe.useCallback((b,p)=>{let{deletedFetchers:E,unstable_flushSync:g,unstable_viewTransitionOpts:c}=p;E.forEach(A=>a.current.delete(A)),b.fetchers.forEach((A,M)=>{A.data!==void 0&&a.current.set(M,A.data)});let y=x.window==null||typeof x.window.document.startViewTransition!="function";if(!c||y){g?V1(()=>Y(b)):s(()=>Y(b));return}if(g){V1(()=>{C&&(S&&S.resolve(),C.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:c.currentLocation,nextLocation:c.nextLocation})});let A=x.window.document.startViewTransition(()=>{V1(()=>Y(b))});A.finished.finally(()=>{V1(()=>{i(void 0),w(void 0),O(void 0),l({isTransitioning:!1})})}),V1(()=>w(A));return}C?(S&&S.resolve(),C.skipTransition(),m({state:b,currentLocation:c.currentLocation,nextLocation:c.nextLocation})):(O(b),l({isTransitioning:!0,flushSync:!1,currentLocation:c.currentLocation,nextLocation:c.nextLocation}))},[x.window,C,S,a,s]);Oe.useLayoutEffect(()=>x.subscribe(o),[x,o]),Oe.useEffect(()=>{t.isTransitioning&&!t.flushSync&&i(new oce)},[t]),Oe.useEffect(()=>{if(S&&D&&x.window){let b=D,p=S.promise,E=x.window.document.startViewTransition(async()=>{s(()=>Y(b)),await p});E.finished.finally(()=>{i(void 0),w(void 0),O(void 0),l({isTransitioning:!1})}),w(E)}},[s,D,S,x.window]),Oe.useEffect(()=>{S&&D&&j.location.key===D.location.key&&S.resolve()},[S,C,j.location,D]),Oe.useEffect(()=>{!t.isTransitioning&&v&&(O(v.state),l({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),m(void 0))},[t.isTransitioning,v]),Oe.useEffect(()=>{},[]);let h=Oe.useMemo(()=>({createHref:x.createHref,encodeLocation:x.encodeLocation,go:b=>x.navigate(b),push:(b,p,E)=>x.navigate(b,{state:p,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(b,p,E)=>x.navigate(b,{replace:!0,state:p,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[x]),f=x.basename||"/",u=Oe.useMemo(()=>({router:x,navigator:h,static:!1,basename:f}),[x,h,f]);return Oe.createElement(Oe.Fragment,null,Oe.createElement(NT.Provider,{value:u},Oe.createElement(XO.Provider,{value:j},Oe.createElement(rce.Provider,{value:a.current},Oe.createElement(tce.Provider,{value:t},Oe.createElement($ue,{basename:f,location:j.location,navigationType:j.historyAction,navigator:h,future:{v7_relativeSplatPath:x.future.v7_relativeSplatPath}},j.initialized||x.future.v7_partialHydration?Oe.createElement(lce,{routes:x.routes,future:x.future,state:j}):r))))),null)}function lce(e){let{routes:r,future:x,state:F}=e;return Fue(r,void 0,F,x)}const uce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ki=Oe.forwardRef(function(r,x){let{onClick:F,relative:j,reloadDocument:Y,replace:D,state:O,target:t,to:l,preventScrollReset:S,unstable_viewTransition:i}=r,C=Xue(r,Jue),{basename:w}=Oe.useContext(Sg),v,m=!1;if(typeof l=="string"&&cce.test(l)&&(v=l,uce))try{let o=new URL(window.location.href),h=l.startsWith("//")?new URL(o.protocol+l):new URL(l),f=Wy(h.pathname,w);h.origin===o.origin&&f!=null?l=f+h.search+h.hash:m=!0}catch{}let a=Rue(l,{relative:j}),n=fce(l,{replace:D,state:O,target:t,preventScrollReset:S,relative:j,unstable_viewTransition:i});function s(o){F&&F(o),o.defaultPrevented||n(o)}return Oe.createElement("a",tb({},C,{href:v||a,onClick:m||Y?F:s,ref:x,target:t}))});var xI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xI||(xI={}));var bI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bI||(bI={}));function fce(e,r){let{target:x,replace:F,state:j,preventScrollReset:Y,relative:D,unstable_viewTransition:O}=r===void 0?{}:r,t=JO(),l=kb(),S=qO(e,{relative:D});return Oe.useCallback(i=>{if(Kue(i,x)){i.preventDefault();let C=F!==void 0?F:vg(l)===vg(S);t(e,{replace:C,state:j,preventScrollReset:Y,relative:D,unstable_viewTransition:O})}},[l,t,S,F,j,x,e,Y,D,O])}var O5={},SC={};const dce=dv(fY);var wI;function Cu(){return wI||(wI=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=dce}(SC)),SC}var hce=zl;Object.defineProperty(O5,"__esModule",{value:!0});var nF=O5.default=void 0,vce=hce(Cu()),pce=Ce;nF=O5.default=(0,vce.default)((0,pce.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var F5={},gce=zl;Object.defineProperty(F5,"__esModule",{value:!0});var aF=F5.default=void 0,mce=gce(Cu()),yce=Ce;aF=F5.default=(0,mce.default)((0,yce.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");const zp=({to:e,...r})=>Ce.jsx(Ii,{...r,to:e,component:Ki}),Ap={title:"STRUDEL + React + MUI",navbar:{title:"My Project",logo:"strudel-logo-icon.png",items:[{label:"Playground",path:"/playground"}]},footer:{info:"Describe your project, place a copyright statement, or credit your funding organizations.",image:"strudel-logo-header.png",links:[{label:"Playground",path:"/playground"}]}},iF=({height:e,width:r,sx:x,children:F,...j})=>Ce.jsx(oa,{...j,sx:{...x,height:e||"auto",overflow:"hidden",width:r||"auto"},children:jo.Children.map(F,Y=>{if(jo.isValidElement(Y)){const D=r?"relative-width":"relative-height";return jo.cloneElement(Y,{className:`${Y.props.className} ${D}`})}})}),Cg=()=>Ce.jsx(d9,{color:"default",position:"static",children:Ce.jsxs(x5,{children:[Ce.jsxs(La,{direction:"row",sx:{alignItems:"center",flexGrow:1},children:[Ce.jsxs(zp,{to:"/",children:[!Ap.navbar.logo,Ce.jsx(iF,{height:30,children:Ce.jsx("img",{src:`/strudel-kit/demo//${Ap.navbar.logo}`})})]}),Ce.jsx(zp,{to:"/",children:Ce.jsx(ea,{variant:"h6",component:"div",children:Ap.navbar.title})}),Ap.navbar.items.map((e,r)=>Ce.jsx(zp,{to:e.path,children:e.label},`${e.path}-${r}`))]}),Ce.jsx(dl,{size:"large",edge:"start",color:"inherit",children:Ce.jsx(aF,{})})]})});var TI={},CC={},MC=34,j1=10,AC=13;function oF(e){return new Function("d","return {"+e.map(function(r,x){return JSON.stringify(r)+": d["+x+'] || ""'}).join(",")+"}")}function xce(e,r){var x=oF(e);return function(F,j){return r(x(F),j,e)}}function SI(e){var r=Object.create(null),x=[];return e.forEach(function(F){for(var j in F)j in r||x.push(r[j]=j)}),x}function Nu(e,r){var x=e+"",F=x.length;return F9999?"+"+Nu(e,6):Nu(e,4)}function wce(e){var r=e.getUTCHours(),x=e.getUTCMinutes(),F=e.getUTCSeconds(),j=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":bce(e.getUTCFullYear())+"-"+Nu(e.getUTCMonth()+1,2)+"-"+Nu(e.getUTCDate(),2)+(j?"T"+Nu(r,2)+":"+Nu(x,2)+":"+Nu(F,2)+"."+Nu(j,3)+"Z":F?"T"+Nu(r,2)+":"+Nu(x,2)+":"+Nu(F,2)+"Z":x||r?"T"+Nu(r,2)+":"+Nu(x,2)+"Z":"")}function sF(e){var r=new RegExp('["'+e+` +\r]`),x=e.charCodeAt(0);function F(i,C){var w,v,m=j(i,function(a,n){if(w)return w(a,n-1);v=a,w=C?xce(a,C):oF(a)});return m.columns=v||[],m}function j(i,C){var w=[],v=i.length,m=0,a=0,n,s=v<=0,o=!1;i.charCodeAt(v-1)===j1&&--v,i.charCodeAt(v-1)===AC&&--v;function h(){if(s)return CC;if(o)return o=!1,TI;var u,b=m,p;if(i.charCodeAt(b)===MC){for(;m++=v?s=!0:(p=i.charCodeAt(m++))===j1?o=!0:p===AC&&(o=!0,i.charCodeAt(m)===j1&&++m),i.slice(b+1,u-1).replace(/""/g,'"')}for(;m(e.OPEN_API_MODAL="OPEN_API_MODAL",e.CLOSE_API_MODAL="CLOSE_API_MODAL",e))(pM||{});const bhe=()=>({type:"OPEN_API_MODAL"}),whe=()=>({type:"CLOSE_API_MODAL"}),LF=Vo.createContext(void 0),The={appTitle:"",apiModalOpen:!1},She=(e,r)=>{const{children:y,...F}=r;return{...e,...F}};function Che(e,r){switch(r.type){case pM.OPEN_API_MODAL:return{...e,apiModalOpen:!0};case pM.CLOSE_API_MODAL:return{...e,apiModalOpen:!1};default:throw new Error(`Unhandled action type: ${r.type}`)}}const Mhe=e=>{const[r,y]=Oe.useReducer(Che,She(The,e)),F={state:r,dispatch:y};return Ce.jsx(LF.Provider,{value:F,children:e.children})},IF=()=>{const e=Oe.useContext(LF);if(e===void 0)throw new Error("useAppState must be used within an AppProvider");return e},uh=e=>{var D;const{dispatch:r}=IF(),[y,F]=Oe.useState(),Y=(((D=document.querySelector("base"))==null?void 0:D.getAttribute("href"))??"")+"/strudel-kit/demo/";return Oe.useEffect(()=>{(async()=>{const t=e.split(".").pop(),l=e.startsWith("http"),S=l?e:`${Y}/${e}`;let i=[];if(t==="csv")i=await EF(S);else if(t==="tsv")i=await PF(S);else if(t==="json"||l){let C=new Headers;const w=localStorage.getItem("apiTokenName"),v=localStorage.getItem("apiTokenValue");w&&v&&(C=new Headers({[w]:v}));try{const m=await fetch(S,{headers:C,method:"GET",redirect:"follow"});if(!m.ok)throw console.log(m),r(bhe()),new Error("unable to fetch");i=await m.json()}catch(m){console.log(m)}}F(i)})()},[]),y};var ex=(e=>(e.SET_DATA="SET_DATA",e.SET_SELECTED_ROWS="SET_SELECTED_ROWS",e.SET_COMPARISON_DATA="SET_COMPARISON_DATA",e.SET_COMPARING="SET_COMPARING",e))(ex||{});const Ahe=e=>({type:"SET_DATA",payload:e}),Ehe=e=>({type:"SET_SELECTED_ROWS",payload:e}),Phe=(e,r)=>({type:"SET_COMPARISON_DATA",payload:{data:e,columns:r}}),m2=e=>({type:"SET_COMPARING",payload:e}),RF=Vo.createContext(void 0),Lhe={data:[],columns:[],selectedRows:[],dataIdField:"id",comparing:!1,comparisonData:[],comparisonColumns:[]},Ihe=(e,r)=>{const{children:y,...F}=r;return{...e,...F}};function Rhe(e,r){switch(r.type){case ex.SET_DATA:return{...e,data:r.payload};case ex.SET_SELECTED_ROWS:return{...e,selectedRows:r.payload};case ex.SET_COMPARISON_DATA:return{...e,comparisonData:r.payload.data,comparisonColumns:r.payload.columns};case ex.SET_COMPARING:return{...e,comparing:r.payload};default:throw new Error(`Unhandled action type: ${r.type}`)}}const khe=e=>{const[r,y]=Oe.useReducer(Rhe,Ihe(Lhe,e)),F={state:r,dispatch:y};return Oe.useEffect(()=>{e.data&&y(Ahe(e.data))},[e.data]),Oe.useEffect(()=>{if(r.comparing&&r.selectedRows.length>1){const j=r.columns.filter(t=>t.isComparisonMetric),Y=r.data.filter(t=>r.selectedRows.indexOf(t.id)>-1),D=[{field:"metric",headerName:"Metric",width:200,cellClassName:"compare-data--metric"}],O=j.map((t,l)=>{const S={};return S.metric=t.headerName,Y.forEach(i=>{S[i.name]=i[t.field],l===0&&D.push({field:i.name,headerName:i.name,width:200})}),S});y(Phe(O,D))}},[r.comparing]),Ce.jsx(RF.Provider,{value:F,children:e.children})},W5=()=>{const e=Oe.useContext(RF);if(e===void 0)throw new Error("useCompareData must be used within an CompareDataProvider");return e},Vu={properties:{itemName:"scenario",itemNamePlural:"scenarios"},data:{items:{source:"default/compare-data/scenarios.json",idField:"id"}},pages:{index:{title:"Compare Data App",description:"Description of this app section",tableColumns:[{field:"name",headerName:"Scenario Name",width:200},{field:"description",headerName:"Description",width:200},{field:"analysis_type",headerName:"Analysis Type",width:200},{field:"volumetric_flow_rate",headerName:"Volumetric Flow Rate",width:200,isComparisonMetric:!0},{field:"tss_concentration",headerName:"TSS Concentration",width:200,isComparisonMetric:!0},{field:"cod_concentration",headerName:"COD Concentration",width:200,isComparisonMetric:!0},{field:"tkn_concentration",headerName:"TKN Concentration",width:200,isComparisonMetric:!0},{field:"acetic_acid_concentration",headerName:"Acetic Acid Concentration",width:200,isComparisonMetric:!0}]},new:{title:"New Scenario",description:"Description of this app section"},compare:{title:"Compare Scenarios",description:"Description of this app section"}}},Dhe=()=>{const e=uh(Vu.data.items.source);return Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(khe,{data:e||[],columns:Vu.pages.index.tableColumns,dataIdField:"id",children:Ce.jsx(Kp,{})})})]})},Ohe=Object.freeze(Object.defineProperty({__proto__:null,default:Dhe},Symbol.toStringTag,{value:"Module"}));var $5={},Fhe=_l;Object.defineProperty($5,"__esModule",{value:!0});var Y5=$5.default=void 0,_he=Fhe(Su()),zhe=Ce;Y5=$5.default=(0,_he.default)((0,zhe.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const Mg=({pageTitle:e,breadcrumbTitle:r,description:y,actions:F,...j})=>Ce.jsx(Ri,{elevation:0,...j,children:Ce.jsxs(La,{direction:"row",justifyContent:"space-between",children:[Ce.jsxs(La,{spacing:1,children:[Ce.jsxs(U9,{"aria-label":"breadcrumb",children:[Ce.jsx(Ii,{underline:"hover",color:"inherit",href:"/",children:Ce.jsx(wF,{})}),Ce.jsx(Ii,{underline:"hover",color:"inherit",children:"..."}),Ce.jsx(ea,{color:"text.primary",children:r||e})]}),Ce.jsx(ea,{variant:"h4",component:"h1",children:e}),Ce.jsx(ea,{variant:"body2",children:y})]}),F]})}),kF=Oe.createContext(void 0);function yi(){const e=Oe.useContext(kF);if(e===void 0)throw new Error(["MUI X: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return e}const DF=Oe.createContext(void 0),Wa=()=>{const e=Oe.useContext(DF);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},Bhe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",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:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",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",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,r)=>`${e.toLocaleString()} of ${r.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function ki(e){return ka("MuiDataGrid",e)}const Hr=Ma("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderTop","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),DI=1e3;class Nhe{constructor(r=DI){this.timeouts=new Map,this.cleanupTimeout=DI,this.cleanupTimeout=r}register(r,y,F){this.timeouts||(this.timeouts=new Map);const j=setTimeout(()=>{typeof y=="function"&&y(),this.timeouts.delete(F.cleanupToken)},this.cleanupTimeout);this.timeouts.set(F.cleanupToken,j)}unregister(r){const y=this.timeouts.get(r.cleanupToken);y&&(this.timeouts.delete(r.cleanupToken),clearTimeout(y))}reset(){this.timeouts&&(this.timeouts.forEach((r,y)=>{this.unregister({cleanupToken:y})}),this.timeouts=void 0)}}class Uhe{constructor(){this.registry=new FinalizationRegistry(r=>{typeof r=="function"&&r()})}register(r,y,F){this.registry.register(r,y,F)}unregister(r){this.registry.unregister(r)}reset(){}}var md=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(md||{});class Hhe{}function Vhe(e){let r=0;return function(F,j,Y,D){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Uhe:new Nhe);const[O]=Oe.useState(new Hhe),t=Oe.useRef(null),l=Oe.useRef();l.current=Y;const S=Oe.useRef(null);if(!t.current&&l.current){const i=(C,w,v)=>{var m;w.defaultMuiPrevented||(m=l.current)==null||m.call(l,C,w,v)};t.current=F.current.subscribeEvent(j,i,D),r+=1,S.current={cleanupToken:r},e.registry.register(O,()=>{var C;(C=t.current)==null||C.call(t),t.current=null,S.current=null},S.current)}else!l.current&&t.current&&(t.current(),t.current=null,S.current&&(e.registry.unregister(S.current),S.current=null));Oe.useEffect(()=>{if(!t.current&&l.current){const i=(C,w,v)=>{var m;w.defaultMuiPrevented||(m=l.current)==null||m.call(l,C,w,v)};t.current=F.current.subscribeEvent(j,i,D)}return S.current&&e.registry&&(e.registry.unregister(S.current),S.current=null),()=>{var i;(i=t.current)==null||i.call(t),t.current=null}},[F,j,D])}}const jhe={registry:null},Za=Vhe(jhe),Ghe={isFirst:!0};function Fo(e,r,y){Za(e,r,y,Ghe)}const Whe=Object.is;function OF(e,r){if(e===r)return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;let y=0,F=0;for(const j in e)if(y+=1,!Whe(e[j],r[j])||!(j in r))return!1;for(const j in r)F+=1;return y===F}function $he(e){return e.acceptsApiRef}function OI(e,r){return $he(r)?r(e):r(e.current.state)}const Yhe=Object.is,FF=OF,Xhe=()=>({state:null,equals:null,selector:null}),va=(e,r,y=Yhe)=>{const F=wg(Xhe),j=F.current.selector!==null,[Y,D]=Oe.useState(j?null:OI(e,r));return F.current.state=Y,F.current.equals=y,F.current.selector=r,ST(()=>e.current.store.subscribe(()=>{const O=OI(e,F.current.selector);F.current.equals(F.current.state,O)||(F.current.state=O,D(O))})),Y},Qu=e=>e.dimensions;var y2="NOT_FOUND";function Zhe(e){var r;return{get:function(F){return r&&e(r.key,F)?r.value:y2},put:function(F,j){r={key:F,value:j}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function Khe(e,r){var y=[];function F(O){var t=y.findIndex(function(S){return r(O,S.key)});if(t>-1){var l=y[t];return t>0&&(y.splice(t,1),y.unshift(l)),l.value}return y2}function j(O,t){F(O)===y2&&(y.unshift({key:O,value:t}),y.length>e&&y.pop())}function Y(){return y}function D(){y=[]}return{get:F,put:j,getEntries:Y,clear:D}}var Jhe=function(r,y){return r===y};function Qhe(e){return function(y,F){if(y===null||F===null||y.length!==F.length)return!1;for(var j=y.length,Y=0;Y1?r-1:0),F=1;F{if(D.length>0)throw new Error("Unsupported number of selectors");let O;if(e&&r&&y&&F&&j&&Y)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i),m=y(C,i),a=F(C,i),n=j(C,i);return Y(w,v,m,a,n)};else if(e&&r&&y&&F&&j)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i),m=y(C,i),a=F(C,i);return j(w,v,m,a)};else if(e&&r&&y&&F)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i),m=y(C,i);return F(w,v,m)};else if(e&&r&&y)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i);return y(w,v)};else if(e&&r)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i);return r(w)};else throw new Error("Missing arguments");return O.acceptsApiRef=!0,O},Ro=(...e)=>{const r=(y,F)=>{const j=hm(y),Y=j?y.current.instanceId:F??vm,D=j?y.current.state:y,O=FI.get(Y),t=O??new Map,l=t==null?void 0:t.get(e);if(t&&l)return l(D,Y);const S=tve(...e);return O||FI.set(Y,t),t.set(e,S),S(D,Y)};return r.acceptsApiRef=!0,r},rve=.7,nve=1.3,ave={compact:rve,comfortable:nve,standard:1},j0=e=>e.density,Ub=gi(j0,e=>ave[e]);let Ko=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const gM={left:[],right:[]},ive=e=>e.theme,ch=e=>e.columns,qh=gi(ch,e=>e.orderedFields),gv=gi(ch,e=>e.lookup),yd=Ro(qh,gv,(e,r)=>e.map(y=>r[y])),yf=gi(ch,e=>e.columnVisibilityModel),rl=Ro(yd,yf,(e,r)=>e.filter(y=>r[y.field]!==!1)),Hb=Ro(rl,e=>e.map(r=>r.field)),ove=e=>e.pinnedColumns,Vb=Ro(ch,ove,Hb,ive,(e,r,y,F)=>{const j=sve(r,y,F.direction==="rtl");return{left:j.left.map(D=>e.lookup[D]),right:j.right.map(D=>e.lookup[D])}});function sve(e,r,y){var O,t;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((O=e.left)==null?void 0:O.length)===0&&((t=e.right)==null?void 0:t.length)===0)return gM;const F=(l,S)=>Array.isArray(l)?l.filter(i=>S.includes(i)):[],j=F(e.left,r),Y=r.filter(l=>!j.includes(l)),D=F(e.right,Y);return y?{left:D,right:j}:{left:j,right:D}}const Jp=Ro(rl,e=>{const r=[];let y=0;for(let F=0;F{const y=e.length;return y===0?0:r[y-1]+e[y-1].computedWidth}),zF=Ro(yd,e=>e.filter(r=>r.filterable)),lve=Ro(yd,e=>e.reduce((r,y)=>(y.filterable&&(r[y.field]=y),r),{})),uve=Ro(yd,e=>e.some(r=>r.colSpan!==void 0)),cve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],fve=e=>{const{classes:r}=e;return qn({root:["editInputCell"]},ki,r)},dve=ln(Hy,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,r)=>r.editInputCell})(({theme:e})=>Ge({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),hve=Oe.forwardRef((e,r)=>{const y=Wa(),{id:F,value:j,field:Y,colDef:D,hasFocus:O,debounceMs:t=200,isProcessingProps:l,onValueChange:S}=e,i=hn(e,cve),C=yi(),w=Oe.useRef(),[v,m]=Oe.useState(j),a=fve(y),n=Oe.useCallback(async o=>{const h=o.target.value;S&&await S(o,h);const f=C.current.getColumn(Y);let u=h;f.valueParser&&(u=f.valueParser(h,C.current.getRow(F),f,C)),m(u),C.current.setEditCellValue({id:F,field:Y,value:u,debounceMs:t,unstable_skipValueParser:!0},o)},[C,t,Y,F,S]),s=C.current.unstable_getEditCellMeta(F,Y);return Oe.useEffect(()=>{(s==null?void 0:s.changeReason)!=="debouncedSetEditCellValue"&&m(j)},[s,j]),Gi(()=>{O&&w.current.focus()},[O]),Ce.jsx(dve,Ge({ref:r,inputRef:w,className:a.root,ownerState:y,fullWidth:!0,type:D.type==="number"?D.type:"text",value:v??"",onChange:n,endAdornment:l?Ce.jsx(y.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},i))}),vve=e=>Ce.jsx(hve,Ge({},e)),BF=(e,r)=>r&&e.length>1?[e[0]]:e,_I=(e,r)=>y=>Ge({},y,{sorting:Ge({},y.sorting,{sortModel:BF(e,r)})}),pve=e=>e==="desc",gve=(e,r)=>{const y=r.current.getColumn(e.field);if(!y||e.sort===null)return null;let F;return y.getSortComparator?F=y.getSortComparator(e.sort):F=pve(e.sort)?(...Y)=>-1*y.sortComparator(...Y):y.sortComparator,F?{getSortCellParams:Y=>({id:Y,field:y.field,rowNode:r.current.getRowNode(Y),value:r.current.getCellValue(Y,y.field),api:r.current}),comparator:F}:null},mve=(e,r,y)=>e.reduce((F,j,Y)=>{if(F!==0)return F;const D=r.params[Y],O=y.params[Y];return F=j.comparator(D.value,O.value,D,O),F},0),yve=(e,r)=>{const y=e.map(F=>gve(F,r)).filter(F=>!!F);return y.length===0?null:F=>F.map(j=>({node:j,params:y.map(Y=>Y.getSortCellParams(j.id))})).sort((j,Y)=>mve(y,j,Y)).map(j=>j.node.id)},zI=(e,r)=>{const y=e.indexOf(r);return!r||y===-1||y+1===e.length?e[0]:e[y+1]},Z5=(e,r)=>e==null&&r!=null?-1:r==null&&e!=null?1:e==null&&r==null?0:null,xve=new Intl.Collator,bve=(e,r)=>{const y=Z5(e,r);return y!==null?y:typeof e=="string"?xve.compare(e.toString(),r.toString()):e-r},NF=(e,r)=>{const y=Z5(e,r);return y!==null?y:Number(e)-Number(r)},UF=(e,r)=>{const y=Z5(e,r);return y!==null?y:e>r?1:e{const{value:u}=f.target;v(String(u)),a(!0),C.start(s.filterDebounceMs,()=>{const b=Ge({},r,{value:u,fromInput:n});y(b),a(!1)})},[n,y,r,s.filterDebounceMs,C]);return Oe.useEffect(()=>{(r.fromInput!==n||r.value===void 0)&&v(String(r.value??""))},[n,r]),Ce.jsx(s.slots.baseTextField,Ge({id:n,label:j.current.getLocaleText("filterPanelInputLabel"),placeholder:j.current.getLocaleText("filterPanelInputPlaceholder"),value:w,onChange:o,variant:S,type:F||"text",InputProps:Ge({},m||t?{endAdornment:m?Ce.jsx(s.slots.loadIcon,{fontSize:"small",color:"action"}):t}:{},{disabled:O},l,{inputProps:Ge({tabIndex:D},l==null?void 0:l.inputProps)}),InputLabelProps:{shrink:!0},inputRef:Y},i,(h=s.slotProps)==null?void 0:h.baseTextField))}function Tve(e){return typeof e=="number"&&!Number.isNaN(e)}function HF(e){return typeof e=="function"}function K5(e){return typeof e=="object"&&e!==null}function Sve(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function P3(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const uv=(e,r,y)=>Math.max(r,Math.min(y,e));function BI(e,r){return Array.from({length:r-e}).map((y,F)=>e+F)}function Bp(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;if(Array.isArray(e)){const j=e.length;if(j!==r.length)return!1;for(let Y=0;Y{let r=e+=1831565813;return r=Math.imul(r^r>>>15,r|1),r^=r+Math.imul(r^r>>>7,r|61),((r^r>>>14)>>>0)/4294967296}}function Mve(e){const r=Cve(e);return(y,F)=>y+(F-y)*r()}function VF(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Ave=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function jF(e){const{item:r,applyValue:y,type:F,apiRef:j,focusElementRef:Y,color:D,error:O,helperText:t,size:l,variant:S="standard"}=e,i=hn(e,Ave),C={color:D,error:O,helperText:t,size:l,variant:S},[w,v]=Oe.useState(r.value||[]),m=Ui(),a=Wa();Oe.useEffect(()=>{const s=r.value??[];v(s.map(String))},[r.value]);const n=Oe.useCallback((s,o)=>{v(o.map(String)),y(Ge({},r,{value:[...o]}))},[y,r]);return Ce.jsx(B9,Ge({multiple:!0,freeSolo:!0,options:[],filterOptions:(s,o)=>{const{inputValue:h}=o;return h==null||h===""?[]:[h]},id:m,value:w,onChange:n,renderTags:(s,o)=>s.map((h,f)=>Ce.jsx(a.slots.baseChip,Ge({variant:"outlined",size:"small",label:h},o({index:f})))),renderInput:s=>{var o;return Ce.jsx(a.slots.baseTextField,Ge({},s,{label:j.current.getLocaleText("filterPanelInputLabel"),placeholder:j.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:Ge({},s.InputLabelProps,{shrink:!0}),inputRef:Y,type:F||"text"},C,(o=a.slotProps)==null?void 0:o.baseTextField))}},i))}var dh=function(e){return e.Cell="cell",e.Row="row",e}(dh||{}),Co=function(e){return e.Edit="edit",e.View="view",e}(Co||{}),Oo=function(e){return e.Edit="edit",e.View="view",e}(Oo||{}),mu=function(e){return e.And="and",e.Or="or",e}(mu||{}),Hh=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Hh||{}),ld=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ld||{}),op=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(op||{}),Wd=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Wd||{});function GF(e){return e.field!==void 0}const nb=()=>({items:[],logicOperator:mu.And,quickFilterValues:[],quickFilterLogicOperator:mu.And});function WF(e){return{current:e.current.getPublicApi()}}let j1;function Eve(){if(j1!==void 0)return j1;try{j1=new Function("return true")()}catch{j1=!1}return j1}const mM=(e,r)=>{const y=Ge({},e);if(y.id==null&&(y.id=Math.round(Math.random()*1e5)),y.operator==null){const F=gv(r)[y.field];y.operator=F&&F.filterOperators[0].value}return y},J5=(e,r,y)=>{const F=e.items.length>1;let j;F&&r?j=[e.items[0]]:j=e.items;const Y=F&&j.some(O=>O.id==null);return j.some(O=>O.operator==null)||Y?Ge({},e,{items:j.map(O=>mM(O,y))}):e.items!==j?Ge({},e,{items:j}):e},NI=(e,r,y)=>F=>Ge({},F,{filterModel:J5(e,r,y)}),ab=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,$F=(e,r)=>{var S;if(!e.field||!e.operator)return null;const y=r.current.getColumn(e.field);if(!y)return null;let F;if(y.valueParser){const i=y.valueParser;F=Array.isArray(e.value)?(S=e.value)==null?void 0:S.map(C=>i(C,void 0,y,r)):i(e.value,void 0,y,r)}else F=e.value;const{ignoreDiacritics:j}=r.current.rootProps;j&&(F=ab(F));const Y=Ge({},e,{value:F}),D=y.filterOperators;if(!(D!=null&&D.length))throw new Error(`MUI X: No filter operators found for column '${y.field}'.`);const O=D.find(i=>i.value===Y.operator);if(!O)throw new Error(`MUI X: No filter operator found for column '${y.field}' and operator value '${Y.operator}'.`);const t=WF(r),l=O.getApplyFilterFn(Y,y);return typeof l!="function"?null:{item:Y,fn:i=>{let C=r.current.getRowValue(i,y);return j&&(C=ab(C)),l(C,i,y,t)}}};let UI=1;const Pve=(e,r,y)=>{const{items:F}=e,j=F.map(O=>$F(O,r)).filter(O=>!!O);if(j.length===0)return null;if(y||!Eve())return(O,t)=>{const l={};for(let S=0;S(e.OPEN_API_MODAL="OPEN_API_MODAL",e.CLOSE_API_MODAL="CLOSE_API_MODAL",e))(aM||{});const Pce=()=>({type:"OPEN_API_MODAL"}),Lce=()=>({type:"CLOSE_API_MODAL"}),fF=jo.createContext(void 0),Ice={appTitle:"",apiModalOpen:!1},Rce=(e,r)=>{const{children:x,...F}=r;return{...e,...F}};function kce(e,r){switch(r.type){case aM.OPEN_API_MODAL:return{...e,apiModalOpen:!0};case aM.CLOSE_API_MODAL:return{...e,apiModalOpen:!1};default:throw new Error(`Unhandled action type: ${r.type}`)}}const Dce=e=>{const[r,x]=Oe.useReducer(kce,Rce(Ice,e)),F={state:r,dispatch:x};return Ce.jsx(fF.Provider,{value:F,children:e.children})},dF=()=>{const e=Oe.useContext(fF);if(e===void 0)throw new Error("useAppState must be used within an AppProvider");return e},fh=e=>{var D;const{dispatch:r}=dF(),[x,F]=Oe.useState(),Y=(((D=document.querySelector("base"))==null?void 0:D.getAttribute("href"))??"")+"/strudel-kit/demo/";return Oe.useEffect(()=>{(async()=>{const t=e.split(".").pop(),l=e.startsWith("http"),S=l?e:`${Y}/${e}`;let i=[];if(t==="csv")i=await uF(S);else if(t==="tsv")i=await cF(S);else if(t==="json"||l){let C=new Headers;const w=localStorage.getItem("apiTokenName"),v=localStorage.getItem("apiTokenValue");w&&v&&(C=new Headers({[w]:v}));try{const m=await fetch(S,{headers:C,method:"GET",redirect:"follow"});if(!m.ok)throw console.log(m),r(Pce()),new Error("unable to fetch");i=await m.json()}catch(m){console.log(m)}}F(i)})()},[]),x};var tx=(e=>(e.SET_DATA="SET_DATA",e.SET_SELECTED_ROWS="SET_SELECTED_ROWS",e.SET_COMPARISON_DATA="SET_COMPARISON_DATA",e.SET_COMPARING="SET_COMPARING",e))(tx||{});const Oce=e=>({type:"SET_DATA",payload:e}),Fce=e=>({type:"SET_SELECTED_ROWS",payload:e}),_ce=(e,r)=>({type:"SET_COMPARISON_DATA",payload:{data:e,columns:r}}),f2=e=>({type:"SET_COMPARING",payload:e}),hF=jo.createContext(void 0),zce={data:[],columns:[],selectedRows:[],dataIdField:"id",comparing:!1,comparisonData:[],comparisonColumns:[]},Bce=(e,r)=>{const{children:x,...F}=r;return{...e,...F}};function Nce(e,r){switch(r.type){case tx.SET_DATA:return{...e,data:r.payload};case tx.SET_SELECTED_ROWS:return{...e,selectedRows:r.payload};case tx.SET_COMPARISON_DATA:return{...e,comparisonData:r.payload.data,comparisonColumns:r.payload.columns};case tx.SET_COMPARING:return{...e,comparing:r.payload};default:throw new Error(`Unhandled action type: ${r.type}`)}}const Uce=e=>{const[r,x]=Oe.useReducer(Nce,Bce(zce,e)),F={state:r,dispatch:x};return Oe.useEffect(()=>{e.data&&x(Oce(e.data))},[e.data]),Oe.useEffect(()=>{if(r.comparing&&r.selectedRows.length>1){const j=r.columns.filter(t=>t.isComparisonMetric),Y=r.data.filter(t=>r.selectedRows.indexOf(t.id)>-1),D=[{field:"metric",headerName:"Metric",width:200,cellClassName:"compare-data--metric"}],O=j.map((t,l)=>{const S={};return S.metric=t.headerName,Y.forEach(i=>{S[i.name]=i[t.field],l===0&&D.push({field:i.name,headerName:i.name,width:200})}),S});x(_ce(O,D))}},[r.comparing]),Ce.jsx(hF.Provider,{value:F,children:e.children})},_5=()=>{const e=Oe.useContext(hF);if(e===void 0)throw new Error("useCompareData must be used within an CompareDataProvider");return e},ju={properties:{itemName:"scenario",itemNamePlural:"scenarios"},data:{items:{source:"default/compare-data/scenarios.json",idField:"id"}},pages:{index:{title:"Compare Data App",description:"Description of this app section",tableColumns:[{field:"name",headerName:"Scenario Name",width:200},{field:"description",headerName:"Description",width:200},{field:"analysis_type",headerName:"Analysis Type",width:200},{field:"volumetric_flow_rate",headerName:"Volumetric Flow Rate",width:200,isComparisonMetric:!0},{field:"tss_concentration",headerName:"TSS Concentration",width:200,isComparisonMetric:!0},{field:"cod_concentration",headerName:"COD Concentration",width:200,isComparisonMetric:!0},{field:"tkn_concentration",headerName:"TKN Concentration",width:200,isComparisonMetric:!0},{field:"acetic_acid_concentration",headerName:"Acetic Acid Concentration",width:200,isComparisonMetric:!0}]},new:{title:"New Scenario",description:"Description of this app section"},compare:{title:"Compare Scenarios",description:"Description of this app section"}}},Hce=()=>{const e=fh(ju.data.items.source);return Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(Uce,{data:e||[],columns:ju.pages.index.tableColumns,dataIdField:"id",children:Ce.jsx(Jp,{})})})]})},Vce=Object.freeze(Object.defineProperty({__proto__:null,default:Hce},Symbol.toStringTag,{value:"Module"}));var z5={},jce=zl;Object.defineProperty(z5,"__esModule",{value:!0});var B5=z5.default=void 0,Gce=jce(Cu()),Wce=Ce;B5=z5.default=(0,Gce.default)((0,Wce.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const Mg=({pageTitle:e,breadcrumbTitle:r,description:x,actions:F,...j})=>Ce.jsx(Ri,{elevation:0,...j,children:Ce.jsxs(La,{direction:"row",justifyContent:"space-between",children:[Ce.jsxs(La,{spacing:1,children:[Ce.jsxs(R9,{"aria-label":"breadcrumb",children:[Ce.jsx(Ii,{underline:"hover",color:"inherit",href:"/",children:Ce.jsx(nF,{})}),Ce.jsx(Ii,{underline:"hover",color:"inherit",children:"..."}),Ce.jsx(ea,{color:"text.primary",children:r||e})]}),Ce.jsx(ea,{variant:"h4",component:"h1",children:e}),Ce.jsx(ea,{variant:"body2",children:x})]}),F]})}),vF=Oe.createContext(void 0);function mi(){const e=Oe.useContext(vF);if(e===void 0)throw new Error(["MUI X: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const pF=Oe.createContext(void 0),Wa=()=>{const e=Oe.useContext(pF);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},$ce={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",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:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",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",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,r)=>`${e.toLocaleString()} of ${r.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function ki(e){return ka("MuiDataGrid",e)}const Hr=Ca("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderTop","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),CI=1e3;class Yce{constructor(r=CI){this.timeouts=new Map,this.cleanupTimeout=CI,this.cleanupTimeout=r}register(r,x,F){this.timeouts||(this.timeouts=new Map);const j=setTimeout(()=>{typeof x=="function"&&x(),this.timeouts.delete(F.cleanupToken)},this.cleanupTimeout);this.timeouts.set(F.cleanupToken,j)}unregister(r){const x=this.timeouts.get(r.cleanupToken);x&&(this.timeouts.delete(r.cleanupToken),clearTimeout(x))}reset(){this.timeouts&&(this.timeouts.forEach((r,x)=>{this.unregister({cleanupToken:x})}),this.timeouts=void 0)}}class Xce{constructor(){this.registry=new FinalizationRegistry(r=>{typeof r=="function"&&r()})}register(r,x,F){this.registry.register(r,x,F)}unregister(r){this.registry.unregister(r)}reset(){}}var bd=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(bd||{});class Zce{}function Kce(e){let r=0;return function(F,j,Y,D){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Xce:new Yce);const[O]=Oe.useState(new Zce),t=Oe.useRef(null),l=Oe.useRef();l.current=Y;const S=Oe.useRef(null);if(!t.current&&l.current){const i=(C,w,v)=>{var m;w.defaultMuiPrevented||(m=l.current)==null||m.call(l,C,w,v)};t.current=F.current.subscribeEvent(j,i,D),r+=1,S.current={cleanupToken:r},e.registry.register(O,()=>{var C;(C=t.current)==null||C.call(t),t.current=null,S.current=null},S.current)}else!l.current&&t.current&&(t.current(),t.current=null,S.current&&(e.registry.unregister(S.current),S.current=null));Oe.useEffect(()=>{if(!t.current&&l.current){const i=(C,w,v)=>{var m;w.defaultMuiPrevented||(m=l.current)==null||m.call(l,C,w,v)};t.current=F.current.subscribeEvent(j,i,D)}return S.current&&e.registry&&(e.registry.unregister(S.current),S.current=null),()=>{var i;(i=t.current)==null||i.call(t),t.current=null}},[F,j,D])}}const Jce={registry:null},Za=Kce(Jce),Qce={isFirst:!0};function _o(e,r,x){Za(e,r,x,Qce)}const qce=Object.is;function gF(e,r){if(e===r)return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;let x=0,F=0;for(const j in e)if(x+=1,!qce(e[j],r[j])||!(j in r))return!1;for(const j in r)F+=1;return x===F}function efe(e){return e.acceptsApiRef}function MI(e,r){return efe(r)?r(e):r(e.current.state)}const tfe=Object.is,mF=gF,rfe=()=>({state:null,equals:null,selector:null}),va=(e,r,x=tfe)=>{const F=wg(rfe),j=F.current.selector!==null,[Y,D]=Oe.useState(j?null:MI(e,r));return F.current.state=Y,F.current.equals=x,F.current.selector=r,gT(()=>e.current.store.subscribe(()=>{const O=MI(e,F.current.selector);F.current.equals(F.current.state,O)||(F.current.state=O,D(O))})),Y},qu=e=>e.dimensions;var d2="NOT_FOUND";function nfe(e){var r;return{get:function(F){return r&&e(r.key,F)?r.value:d2},put:function(F,j){r={key:F,value:j}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function afe(e,r){var x=[];function F(O){var t=x.findIndex(function(S){return r(O,S.key)});if(t>-1){var l=x[t];return t>0&&(x.splice(t,1),x.unshift(l)),l.value}return d2}function j(O,t){F(O)===d2&&(x.unshift({key:O,value:t}),x.length>e&&x.pop())}function Y(){return x}function D(){x=[]}return{get:F,put:j,getEntries:Y,clear:D}}var ife=function(r,x){return r===x};function ofe(e){return function(x,F){if(x===null||F===null||x.length!==F.length)return!1;for(var j=x.length,Y=0;Y1?r-1:0),F=1;F{if(D.length>0)throw new Error("Unsupported number of selectors");let O;if(e&&r&&x&&F&&j&&Y)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i),m=x(C,i),a=F(C,i),n=j(C,i);return Y(w,v,m,a,n)};else if(e&&r&&x&&F&&j)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i),m=x(C,i),a=F(C,i);return j(w,v,m,a)};else if(e&&r&&x&&F)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i),m=x(C,i);return F(w,v,m)};else if(e&&r&&x)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i),v=r(C,i);return x(w,v)};else if(e&&r)O=(t,l)=>{const S=hm(t),i=l??(S?t.current.instanceId:vm),C=S?t.current.state:t,w=e(C,i);return r(w)};else throw new Error("Missing arguments");return O.acceptsApiRef=!0,O},ko=(...e)=>{const r=(x,F)=>{const j=hm(x),Y=j?x.current.instanceId:F??vm,D=j?x.current.state:x,O=AI.get(Y),t=O??new Map,l=t==null?void 0:t.get(e);if(t&&l)return l(D,Y);const S=ufe(...e);return O||AI.set(Y,t),t.set(e,S),S(D,Y)};return r.acceptsApiRef=!0,r},cfe=.7,ffe=1.3,dfe={compact:cfe,comfortable:ffe,standard:1},G0=e=>e.density,Db=pi(G0,e=>dfe[e]);let Jo=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const iM={left:[],right:[]},hfe=e=>e.theme,dh=e=>e.columns,tv=pi(dh,e=>e.orderedFields),gv=pi(dh,e=>e.lookup),wd=ko(tv,gv,(e,r)=>e.map(x=>r[x])),bf=pi(dh,e=>e.columnVisibilityModel),nl=ko(wd,bf,(e,r)=>e.filter(x=>r[x.field]!==!1)),Ob=ko(nl,e=>e.map(r=>r.field)),vfe=e=>e.pinnedColumns,Fb=ko(dh,vfe,Ob,hfe,(e,r,x,F)=>{const j=pfe(r,x,F.direction==="rtl");return{left:j.left.map(D=>e.lookup[D]),right:j.right.map(D=>e.lookup[D])}});function pfe(e,r,x){var O,t;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((O=e.left)==null?void 0:O.length)===0&&((t=e.right)==null?void 0:t.length)===0)return iM;const F=(l,S)=>Array.isArray(l)?l.filter(i=>S.includes(i)):[],j=F(e.left,r),Y=r.filter(l=>!j.includes(l)),D=F(e.right,Y);return x?{left:D,right:j}:{left:j,right:D}}const Qp=ko(nl,e=>{const r=[];let x=0;for(let F=0;F{const x=e.length;return x===0?0:r[x-1]+e[x-1].computedWidth}),xF=ko(wd,e=>e.filter(r=>r.filterable)),gfe=ko(wd,e=>e.reduce((r,x)=>(x.filterable&&(r[x.field]=x),r),{})),mfe=ko(wd,e=>e.some(r=>r.colSpan!==void 0)),yfe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],xfe=e=>{const{classes:r}=e;return qn({root:["editInputCell"]},ki,r)},bfe=ln(Vy,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,r)=>r.editInputCell})(({theme:e})=>Ge({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),wfe=Oe.forwardRef((e,r)=>{const x=Wa(),{id:F,value:j,field:Y,colDef:D,hasFocus:O,debounceMs:t=200,isProcessingProps:l,onValueChange:S}=e,i=hn(e,yfe),C=mi(),w=Oe.useRef(),[v,m]=Oe.useState(j),a=xfe(x),n=Oe.useCallback(async o=>{const h=o.target.value;S&&await S(o,h);const f=C.current.getColumn(Y);let u=h;f.valueParser&&(u=f.valueParser(h,C.current.getRow(F),f,C)),m(u),C.current.setEditCellValue({id:F,field:Y,value:u,debounceMs:t,unstable_skipValueParser:!0},o)},[C,t,Y,F,S]),s=C.current.unstable_getEditCellMeta(F,Y);return Oe.useEffect(()=>{(s==null?void 0:s.changeReason)!=="debouncedSetEditCellValue"&&m(j)},[s,j]),Gi(()=>{O&&w.current.focus()},[O]),Ce.jsx(bfe,Ge({ref:r,inputRef:w,className:a.root,ownerState:x,fullWidth:!0,type:D.type==="number"?D.type:"text",value:v??"",onChange:n,endAdornment:l?Ce.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},i))}),Tfe=e=>Ce.jsx(wfe,Ge({},e)),bF=(e,r)=>r&&e.length>1?[e[0]]:e,EI=(e,r)=>x=>Ge({},x,{sorting:Ge({},x.sorting,{sortModel:bF(e,r)})}),Sfe=e=>e==="desc",Cfe=(e,r)=>{const x=r.current.getColumn(e.field);if(!x||e.sort===null)return null;let F;return x.getSortComparator?F=x.getSortComparator(e.sort):F=Sfe(e.sort)?(...Y)=>-1*x.sortComparator(...Y):x.sortComparator,F?{getSortCellParams:Y=>({id:Y,field:x.field,rowNode:r.current.getRowNode(Y),value:r.current.getCellValue(Y,x.field),api:r.current}),comparator:F}:null},Mfe=(e,r,x)=>e.reduce((F,j,Y)=>{if(F!==0)return F;const D=r.params[Y],O=x.params[Y];return F=j.comparator(D.value,O.value,D,O),F},0),Afe=(e,r)=>{const x=e.map(F=>Cfe(F,r)).filter(F=>!!F);return x.length===0?null:F=>F.map(j=>({node:j,params:x.map(Y=>Y.getSortCellParams(j.id))})).sort((j,Y)=>Mfe(x,j,Y)).map(j=>j.node.id)},PI=(e,r)=>{const x=e.indexOf(r);return!r||x===-1||x+1===e.length?e[0]:e[x+1]},U5=(e,r)=>e==null&&r!=null?-1:r==null&&e!=null?1:e==null&&r==null?0:null,Efe=new Intl.Collator,Pfe=(e,r)=>{const x=U5(e,r);return x!==null?x:typeof e=="string"?Efe.compare(e.toString(),r.toString()):e-r},wF=(e,r)=>{const x=U5(e,r);return x!==null?x:Number(e)-Number(r)},TF=(e,r)=>{const x=U5(e,r);return x!==null?x:e>r?1:e{const{value:u}=f.target;v(String(u)),a(!0),C.start(s.filterDebounceMs,()=>{const b=Ge({},r,{value:u,fromInput:n});x(b),a(!1)})},[n,x,r,s.filterDebounceMs,C]);return Oe.useEffect(()=>{(r.fromInput!==n||r.value===void 0)&&v(String(r.value??""))},[n,r]),Ce.jsx(s.slots.baseTextField,Ge({id:n,label:j.current.getLocaleText("filterPanelInputLabel"),placeholder:j.current.getLocaleText("filterPanelInputPlaceholder"),value:w,onChange:o,variant:S,type:F||"text",InputProps:Ge({},m||t?{endAdornment:m?Ce.jsx(s.slots.loadIcon,{fontSize:"small",color:"action"}):t}:{},{disabled:O},l,{inputProps:Ge({tabIndex:D},l==null?void 0:l.inputProps)}),InputLabelProps:{shrink:!0},inputRef:Y},i,(h=s.slotProps)==null?void 0:h.baseTextField))}function Ife(e){return typeof e=="number"&&!Number.isNaN(e)}function SF(e){return typeof e=="function"}function H5(e){return typeof e=="object"&&e!==null}function Rfe(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function w3(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const fv=(e,r,x)=>Math.max(r,Math.min(x,e));function LI(e,r){return Array.from({length:r-e}).map((x,F)=>e+F)}function Bp(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;if(Array.isArray(e)){const j=e.length;if(j!==r.length)return!1;for(let Y=0;Y{let r=e+=1831565813;return r=Math.imul(r^r>>>15,r|1),r^=r+Math.imul(r^r>>>7,r|61),((r^r>>>14)>>>0)/4294967296}}function Dfe(e){const r=kfe(e);return(x,F)=>x+(F-x)*r()}function CF(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Ofe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function MF(e){const{item:r,applyValue:x,type:F,apiRef:j,focusElementRef:Y,color:D,error:O,helperText:t,size:l,variant:S="standard"}=e,i=hn(e,Ofe),C={color:D,error:O,helperText:t,size:l,variant:S},[w,v]=Oe.useState(r.value||[]),m=Ui(),a=Wa();Oe.useEffect(()=>{const s=r.value??[];v(s.map(String))},[r.value]);const n=Oe.useCallback((s,o)=>{v(o.map(String)),x(Ge({},r,{value:[...o]}))},[x,r]);return Ce.jsx(L9,Ge({multiple:!0,freeSolo:!0,options:[],filterOptions:(s,o)=>{const{inputValue:h}=o;return h==null||h===""?[]:[h]},id:m,value:w,onChange:n,renderTags:(s,o)=>s.map((h,f)=>Ce.jsx(a.slots.baseChip,Ge({variant:"outlined",size:"small",label:h},o({index:f})))),renderInput:s=>{var o;return Ce.jsx(a.slots.baseTextField,Ge({},s,{label:j.current.getLocaleText("filterPanelInputLabel"),placeholder:j.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:Ge({},s.InputLabelProps,{shrink:!0}),inputRef:Y,type:F||"text"},C,(o=a.slotProps)==null?void 0:o.baseTextField))}},i))}var vh=function(e){return e.Cell="cell",e.Row="row",e}(vh||{}),Mo=function(e){return e.Edit="edit",e.View="view",e}(Mo||{}),Fo=function(e){return e.Edit="edit",e.View="view",e}(Fo||{}),yu=function(e){return e.And="and",e.Or="or",e}(yu||{}),jh=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(jh||{}),cd=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(cd||{}),op=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(op||{}),Xd=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Xd||{});function AF(e){return e.field!==void 0}const rb=()=>({items:[],logicOperator:yu.And,quickFilterValues:[],quickFilterLogicOperator:yu.And});function EF(e){return{current:e.current.getPublicApi()}}let G1;function Ffe(){if(G1!==void 0)return G1;try{G1=new Function("return true")()}catch{G1=!1}return G1}const oM=(e,r)=>{const x=Ge({},e);if(x.id==null&&(x.id=Math.round(Math.random()*1e5)),x.operator==null){const F=gv(r)[x.field];x.operator=F&&F.filterOperators[0].value}return x},V5=(e,r,x)=>{const F=e.items.length>1;let j;F&&r?j=[e.items[0]]:j=e.items;const Y=F&&j.some(O=>O.id==null);return j.some(O=>O.operator==null)||Y?Ge({},e,{items:j.map(O=>oM(O,x))}):e.items!==j?Ge({},e,{items:j}):e},II=(e,r,x)=>F=>Ge({},F,{filterModel:V5(e,r,x)}),nb=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,PF=(e,r)=>{var S;if(!e.field||!e.operator)return null;const x=r.current.getColumn(e.field);if(!x)return null;let F;if(x.valueParser){const i=x.valueParser;F=Array.isArray(e.value)?(S=e.value)==null?void 0:S.map(C=>i(C,void 0,x,r)):i(e.value,void 0,x,r)}else F=e.value;const{ignoreDiacritics:j}=r.current.rootProps;j&&(F=nb(F));const Y=Ge({},e,{value:F}),D=x.filterOperators;if(!(D!=null&&D.length))throw new Error(`MUI X: No filter operators found for column '${x.field}'.`);const O=D.find(i=>i.value===Y.operator);if(!O)throw new Error(`MUI X: No filter operator found for column '${x.field}' and operator value '${Y.operator}'.`);const t=EF(r),l=O.getApplyFilterFn(Y,x);return typeof l!="function"?null:{item:Y,fn:i=>{let C=r.current.getRowValue(i,x);return j&&(C=nb(C)),l(C,i,x,t)}}};let RI=1;const _fe=(e,r,x)=>{const{items:F}=e,j=F.map(O=>PF(O,r)).filter(O=>!!O);if(j.length===0)return null;if(x||!Ffe())return(O,t)=>{const l={};for(let S=0;S`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(O.item.field)});`).join(` `)} @@ -306,48 +306,48 @@ ${j.map((O,t)=>` ${JSON.stringify(String(O.item.id))}: !shouldApply${t} ? false `)} }; -return result$$;`.replaceAll("$$",String(UI)));return UI+=1,(O,t)=>Y(j,O,t)},YF=e=>e.quickFilterExcludeHiddenColumns??!0,Lve=(e,r)=>{var O;const y=((O=e.quickFilterValues)==null?void 0:O.filter(Boolean))??[];if(y.length===0)return null;const F=YF(e)?Hb(r):qh(r),j=[],{ignoreDiacritics:Y}=r.current.rootProps,D=WF(r);return F.forEach(t=>{const l=r.current.getColumn(t),S=l==null?void 0:l.getApplyQuickFilterFn;S&&j.push({column:l,appliers:y.map(i=>{const C=Y?ab(i):i;return{fn:S(C,l,D)}})})}),function(l,S){const i={};e:for(let C=0;C{const F=Pve(e,r,y),j=Lve(e,r);return function(D,O,t){t.passingFilterItems=(F==null?void 0:F(D,O))??null,t.passingQuickFilterValues=(j==null?void 0:j(D,O))??null}},HI=e=>e!=null,Rve=(e,r,y)=>(e.cleanedFilterItems||(e.cleanedFilterItems=y.filter(F=>$F(F,r)!==null)),e.cleanedFilterItems),kve=(e,r,y,F,j)=>{const Y=Rve(j,F,y.items),D=e.filter(HI),O=r.filter(HI);if(D.length>0){const t=S=>D.some(i=>i[S.id]);if((y.logicOperator??nb().logicOperator)===mu.And){if(!Y.every(t))return!1}else if(!Y.some(t))return!1}if(O.length>0&&y.quickFilterValues!=null){const t=S=>O.some(i=>i[S]);if((y.quickFilterLogicOperator??nb().quickFilterLogicOperator)===mu.And){if(!y.quickFilterValues.every(t))return!1}else if(!y.quickFilterValues.some(t))return!1}return!0},Dve=e=>{if(!e)return null;const r=new RegExp(P3(e),"i");return(y,F,j,Y)=>{let D=Y.current.getRowFormattedValue(F,j);return Y.current.ignoreDiacritics&&(D=ab(D)),D!=null?r.test(D.toString()):!1}},Ove=(e=!1)=>[{value:"contains",getApplyFilterFn:r=>{if(!r.value)return null;const y=e?r.value:r.value.trim(),F=new RegExp(P3(y),"i");return j=>j!=null?F.test(String(j)):!1},InputComponent:th},{value:"equals",getApplyFilterFn:r=>{if(!r.value)return null;const y=e?r.value:r.value.trim(),F=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return j=>j!=null?F.compare(y,j.toString())===0:!1},InputComponent:th},{value:"startsWith",getApplyFilterFn:r=>{if(!r.value)return null;const y=e?r.value:r.value.trim(),F=new RegExp(`^${P3(y)}.*$`,"i");return j=>j!=null?F.test(j.toString()):!1},InputComponent:th},{value:"endsWith",getApplyFilterFn:r=>{if(!r.value)return null;const y=e?r.value:r.value.trim(),F=new RegExp(`.*${P3(y)}$`,"i");return j=>j!=null?F.test(j.toString()):!1},InputComponent:th},{value:"isEmpty",getApplyFilterFn:()=>r=>r===""||r==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>r=>r!==""&&r!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:r=>{if(!Array.isArray(r.value)||r.value.length===0)return null;const y=e?r.value:r.value.map(j=>j.trim()),F=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return j=>j!=null?y.some(Y=>F.compare(Y,j.toString()||"")===0):!1},InputComponent:jF}],xd={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:bve,type:"string",align:"left",filterOperators:Ove(),renderEditCell:vve,getApplyQuickFilterFn:Dve},Fve=["open","target","onClose","children","position","className","onExited"],_ve=e=>{const{classes:r}=e;return qn({root:["menu"]},ki,r)},zve=ln(Xp,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,r)=>r.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Hr.menuList}`]:{outline:0}})),Bve={"bottom-start":"top left","bottom-end":"top right"};function ZT(e){var m;const{open:r,target:y,onClose:F,children:j,position:Y,className:D,onExited:O}=e,t=hn(e,Fve),l=yi(),S=Wa(),i=_ve(S),C=Oe.useRef(null);Gi(()=>{var a,n;r?C.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((n=(a=C.current)==null?void 0:a.focus)==null||n.call(a),C.current=null)},[r]),Oe.useEffect(()=>{const a=r?"menuOpen":"menuClose";l.current.publishEvent(a,{target:y})},[l,r,y]);const w=a=>n=>{a&&a(),O&&O(n)},v=a=>{a.target&&(y===a.target||y!=null&&y.contains(a.target))||F(a)};return Ce.jsx(zve,Ge({as:S.slots.basePopper,className:Ln(D,i.root),ownerState:S,open:r,anchorEl:y,transition:!0,placement:Y},t,(m=S.slotProps)==null?void 0:m.basePopper,{children:({TransitionProps:a,placement:n})=>Ce.jsx(j9,{onClickAway:v,mouseEvent:"onMouseDown",children:Ce.jsx(Qx,Ge({},a,{style:{transformOrigin:Bve[n]},onExited:w(a==null?void 0:a.onExited),children:Ce.jsx(Ri,{children:j})}))})}))}const Nve=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Uve=e=>typeof e.getActions=="function";function Hve(e){var R;const{colDef:r,id:y,hasFocus:F,tabIndex:j,position:Y="bottom-end",focusElementRef:D}=e,O=hn(e,Nve),[t,l]=Oe.useState(-1),[S,i]=Oe.useState(!1),C=yi(),w=Oe.useRef(null),v=Oe.useRef(null),m=Oe.useRef(!1),a=Oe.useRef({}),n=ru(),s=Ui(),o=Ui(),h=Wa();if(!Uve(r))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const f=r.getActions(C.current.getRowParams(y)),u=f.filter(T=>!T.props.showInMenu),b=f.filter(T=>T.props.showInMenu),p=u.length+(b.length?1:0);Oe.useLayoutEffect(()=>{F||Object.entries(a.current).forEach(([T,L])=>{L==null||L.stop({},()=>{delete a.current[T]})})},[F]),Oe.useEffect(()=>{if(t<0||!w.current||t>=w.current.children.length)return;w.current.children[t].focus({preventScroll:!0})},[t]),Oe.useEffect(()=>{F||(l(-1),m.current=!1)},[F]),Oe.useImperativeHandle(D,()=>({focus(){if(!m.current){const T=f.findIndex(L=>!L.props.disabled);l(T)}}}),[f]),Oe.useEffect(()=>{t>=p&&l(p-1)},[t,p]);const E=()=>{i(!0),l(p-1),m.current=!0},g=()=>{i(!1)},c=T=>L=>{a.current[T]=L},x=(T,L)=>P=>{l(T),m.current=!0,L&&L(P)},A=T=>{if(p<=1)return;const L=(d,k)=>{var B;if(d<0||d>f.length)return d;const I=n.direction==="rtl"?-1:1,N=(k==="left"?-1:1)*I;return(B=f[d+N])!=null&&B.props.disabled?L(d+N,k):d+N};let P=t;T.key==="ArrowRight"?P=L(t,"right"):T.key==="ArrowLeft"&&(P=L(t,"left")),!(P<0||P>=p)&&P!==t&&(T.preventDefault(),T.stopPropagation(),l(P))},M=T=>{T.key==="Tab"&&T.preventDefault(),["Tab","Escape"].includes(T.key)&&g()};return Ce.jsxs("div",Ge({role:"menu",ref:w,tabIndex:-1,className:Hr.actionsCell,onKeyDown:A},O,{children:[u.map((T,L)=>Oe.cloneElement(T,{key:L,touchRippleRef:c(L),onClick:x(L,T.props.onClick),tabIndex:t===L?j:-1})),b.length>0&&o&&Ce.jsx(h.slots.baseIconButton,Ge({ref:v,id:o,"aria-label":C.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":S,"aria-controls":S?s:void 0,role:"menuitem",size:"small",onClick:E,touchRippleRef:c(o),tabIndex:t===u.length?j:-1},(R=h.slotProps)==null?void 0:R.baseIconButton,{children:Ce.jsx(h.slots.moreActionsIcon,{fontSize:"small"})})),b.length>0&&Ce.jsx(ZT,{open:S,target:v.current,position:Y,onClose:g,children:Ce.jsx(_b,{id:s,className:Hr.menuList,onKeyDown:M,"aria-labelledby":o,variant:"menu",autoFocusItem:!0,children:b.map((T,L)=>Oe.cloneElement(T,{key:L,closeMenu:g}))})})]}))}const Vve=e=>Ce.jsx(Hve,Ge({},e)),KT="actions",jve=Ge({},xd,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Vve,getApplyQuickFilterFn:void 0}),kf=e=>e.rows,jb=gi(kf,e=>e.totalRowCount),Gve=gi(kf,e=>e.loading),Wve=gi(kf,e=>e.totalTopLevelRowCount),Ep=gi(kf,e=>e.dataRowIdToModelLookup),x2=gi(kf,e=>e.dataRowIdToIdLookup),pf=gi(kf,e=>e.tree),$ve=gi(kf,e=>e.groupsToFetch),Yve=gi(kf,e=>e.groupingName),VI=gi(kf,e=>e.treeDepths),JT=Ro(kf,e=>{const r=Object.entries(e.treeDepths);return r.length===0?1:r.filter(([,y])=>y>0).map(([y])=>Number(y)).sort((y,F)=>F-y)[0]+1}),i3=gi(kf,e=>e.dataRowIds),Xve=gi(kf,e=>e==null?void 0:e.additionalRowGroups),Qp=Ro(Xve,e=>{var y,F;const r=e==null?void 0:e.pinnedRows;return{bottom:((y=r==null?void 0:r.bottom)==null?void 0:y.map(j=>({id:j.id,model:j.model??{}})))??[],top:((F=r==null?void 0:r.top)==null?void 0:F.map(j=>({id:j.id,model:j.model??{}})))??[]}}),Zve=gi(Qp,e=>{var r,y;return(((r=e==null?void 0:e.top)==null?void 0:r.length)||0)+(((y=e==null?void 0:e.bottom)==null?void 0:y.length)||0)}),yu="auto-generated-group-node-root",Km=Symbol("mui.id_autogenerated"),Kve=()=>({type:"group",id:yu,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Jve(e,r,y="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",y,JSON.stringify(r)].join(` -`))}const QT=(e,r,y)=>{const F=r?r(e):e.id;return Jve(F,e,y),F},L3=({rows:e,getRowId:r,loading:y,rowCount:F})=>{const j={type:"full",rows:[]},Y={},D={};for(let O=0;O{const y=e[yu];return Math.max(r,y.children.length+(y.footerId==null?0:1))},ZF=({apiRef:e,rowCountProp:r=0,loadingProp:y,previousTree:F,previousTreeDepths:j,previousGroupsToFetch:Y})=>{const D=e.current.caches.rows,{tree:O,treeDepths:t,dataRowIds:l,groupingName:S,groupsToFetch:i=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:F,previousTreeDepths:j,updates:D.updates,dataRowIdToIdLookup:D.dataRowIdToIdLookup,dataRowIdToModelLookup:D.dataRowIdToModelLookup,previousGroupsToFetch:Y}),C=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:O,treeDepths:t,dataRowIdToIdLookup:D.dataRowIdToIdLookup,dataRowIds:l,dataRowIdToModelLookup:D.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},Ge({},C,{totalRowCount:Math.max(r,C.dataRowIds.length),totalTopLevelRowCount:XF({tree:C.tree,rowCountProp:r}),groupingName:S,loading:y,groupsToFetch:i})},Ly=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Q5=(e,r,y)=>{const F=e[r];if(F.type!=="group")return[];const j=[];for(let Y=0;Y{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const j=new Map;y.forEach(S=>{const i=QT(S,r,"A row was provided without id when calling updateRows():");j.has(i)?j.set(i,Ge({},j.get(i),S)):j.set(i,S)});const Y={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:Ge({},e.updates.idToActionLookup),groupKeys:F},D=Ge({},e.dataRowIdToModelLookup),O=Ge({},e.dataRowIdToIdLookup),t={insert:{},modify:{},remove:{}};j.forEach((S,i)=>{const C=Y.idToActionLookup[i];if(S._action==="delete"){if(C==="remove"||!D[i])return;C!=null&&(t[C][i]=!0),Y.actions.remove.push(i),delete D[i],delete O[i];return}const w=D[i];if(w){C==="remove"?(t.remove[i]=!0,Y.actions.modify.push(i)):C==null&&Y.actions.modify.push(i),D[i]=Ge({},w,S);return}C==="remove"?(t.remove[i]=!0,Y.actions.insert.push(i)):C==null&&Y.actions.insert.push(i),D[i]=S,O[i]=i});const l=Object.keys(t);for(let S=0;S0&&(Y.actions[i]=Y.actions[i].filter(w=>!C[w]))}return{dataRowIdToModelLookup:D,dataRowIdToIdLookup:O,updates:Y,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function Qve(e){var j,Y;const r=Qp(e),y=((j=r==null?void 0:r.top)==null?void 0:j.reduce((D,O)=>(D+=e.current.unstable_getRowHeight(O.id),D),0))||0,F=((Y=r==null?void 0:r.bottom)==null?void 0:Y.reduce((D,O)=>(D+=e.current.unstable_getRowHeight(O.id),D),0))||0;return{top:y,bottom:F}}function KF(e){return`var(--DataGrid-overlayHeight, ${2*Qu(e.current.state).rowHeight}px)`}function GI(e,r,y){const F=[];return r.forEach(j=>{const Y=QT(j,y,"A row was provided without id when calling updateRows():"),D=e.current.getRowNode(Y);if((D==null?void 0:D.type)==="pinnedRow"){const O=e.current.caches.pinnedRows,t=O.idLookup[Y];t&&(O.idLookup[Y]=Ge({},t,j))}else F.push(j)}),F}const qve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],epe=e=>{const{classes:r}=e;return qn({root:["booleanCell"]},ki,r)};function tpe(e){const{value:r}=e,y=hn(e,qve),F=yi(),j=Wa(),Y={classes:j.classes},D=epe(Y),O=Oe.useMemo(()=>r?j.slots.booleanCellTrueIcon:j.slots.booleanCellFalseIcon,[j.slots.booleanCellFalseIcon,j.slots.booleanCellTrueIcon,r]);return Ce.jsx(O,Ge({fontSize:"small",className:D.root,titleAccess:F.current.getLocaleText(r?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!r},y))}const rpe=Oe.memo(tpe),npe=e=>e.field!=="__row_group_by_columns_group__"&&Ly(e.rowNode)?"":Ce.jsx(rpe,Ge({},e)),ape=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],ipe=e=>{const{classes:r}=e;return qn({root:["editBooleanCell"]},ki,r)};function ope(e){var n;const{id:r,value:y,field:F,className:j,hasFocus:Y,onValueChange:D}=e,O=hn(e,ape),t=yi(),l=Oe.useRef(null),S=Ui(),[i,C]=Oe.useState(y),w=Wa(),v={classes:w.classes},m=ipe(v),a=Oe.useCallback(async s=>{const o=s.target.checked;D&&await D(s,o),C(o),await t.current.setEditCellValue({id:r,field:F,value:o},s)},[t,F,r,D]);return Oe.useEffect(()=>{C(y)},[y]),Gi(()=>{Y&&l.current.focus()},[Y]),Ce.jsx("label",Ge({htmlFor:S,className:Ln(m.root,j)},O,{children:Ce.jsx(w.slots.baseCheckbox,Ge({id:S,inputRef:l,checked:!!i,onChange:a,size:"small"},(n=w.slotProps)==null?void 0:n.baseCheckbox))}))}const spe=e=>Ce.jsx(ope,Ge({},e)),lpe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],upe=ln("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function cpe(e){var h,f,u;const{item:r,applyValue:y,apiRef:F,focusElementRef:j,clearButton:Y,tabIndex:D,label:O,variant:t="standard"}=e,l=hn(e,lpe),[S,i]=Oe.useState(r.value||""),C=Wa(),w=Ui(),v=Ui(),m=((h=C.slotProps)==null?void 0:h.baseSelect)||{},a=m.native??!1,n=((f=C.slotProps)==null?void 0:f.baseSelectOption)||{},s=Oe.useCallback(b=>{const p=b.target.value;i(p),y(Ge({},r,{value:p}))},[y,r]);Oe.useEffect(()=>{i(r.value||"")},[r.value]);const o=O??F.current.getLocaleText("filterPanelInputLabel");return Ce.jsxs(upe,{children:[Ce.jsxs(C.slots.baseFormControl,{fullWidth:!0,children:[Ce.jsx(C.slots.baseInputLabel,Ge({},(u=C.slotProps)==null?void 0:u.baseInputLabel,{id:w,shrink:!0,variant:t,children:o})),Ce.jsxs(C.slots.baseSelect,Ge({labelId:w,id:v,label:o,value:S,onChange:s,variant:t,notched:t==="outlined"?!0:void 0,native:a,displayEmpty:!0,inputProps:{ref:j,tabIndex:D}},l,m,{children:[Ce.jsx(C.slots.baseSelectOption,Ge({},n,{native:a,value:"",children:F.current.getLocaleText("filterValueAny")})),Ce.jsx(C.slots.baseSelectOption,Ge({},n,{native:a,value:"true",children:F.current.getLocaleText("filterValueTrue")})),Ce.jsx(C.slots.baseSelectOption,Ge({},n,{native:a,value:"false",children:F.current.getLocaleText("filterValueFalse")}))]}))]}),Y]})}const fpe=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const r=String(e.value)==="true";return y=>!!y===r},InputComponent:cpe}],dpe=(e,r,y,F)=>e?F.current.getLocaleText("booleanCellTrueLabel"):F.current.getLocaleText("booleanCellFalseLabel"),hpe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},JF=Ge({},xd,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:npe,renderEditCell:spe,sortComparator:NF,valueFormatter:dpe,filterOperators:fpe(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>hpe(e)}),vpe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],ppe=e=>{const{classes:r}=e;return qn({root:["checkboxInput"]},ki,r)},gpe=Oe.forwardRef(function(r,y){var f;const{field:F,id:j,value:Y,rowNode:D,hasFocus:O,tabIndex:t}=r,l=hn(r,vpe),S=yi(),i=Wa(),C={classes:i.classes},w=ppe(C),v=Oe.useRef(null),m=Oe.useRef(null),a=pi(v,y),n=u=>{const b={value:u.target.checked,id:j};S.current.publishEvent("rowSelectionCheckboxChange",b,u)};Oe.useLayoutEffect(()=>{if(t===0){const u=S.current.getCellElement(j,F);u&&(u.tabIndex=-1)}},[S,t,j,F]),Oe.useEffect(()=>{var u;if(O){const b=(u=v.current)==null?void 0:u.querySelector("input");b==null||b.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[O]);const s=Oe.useCallback(u=>{u.key===" "&&u.stopPropagation()},[]);if(D.type==="footer"||D.type==="pinnedRow")return null;const o=S.current.isRowSelectable(j),h=S.current.getLocaleText(Y?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return Ce.jsx(i.slots.baseCheckbox,Ge({ref:a,tabIndex:t,checked:Y,onChange:n,className:w.root,inputProps:{"aria-label":h},onKeyDown:s,disabled:!o,touchRippleRef:m},(f=i.slotProps)==null?void 0:f.baseCheckbox,l))}),mpe=gpe;function q5(e){return e.signature===md.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const qT=e=>e.focus,sf=gi(qT,e=>e.cell),ype=gi(qT,e=>e.columnHeader);gi(qT,e=>e.columnHeaderFilter);const b2=gi(qT,e=>e.columnGroupHeader),eS=e=>e.tabIndex,e6=gi(eS,e=>e.cell),QF=gi(eS,e=>e.columnHeader);gi(eS,e=>e.columnHeaderFilter);const xpe=gi(eS,e=>e.columnGroupHeader),lf=e=>e.rowSelection,bpe=gi(lf,e=>e.length),wpe=Ro(lf,Ep,(e,r)=>new Map(e.map(y=>[y,r[y]]))),w2=Ro(lf,e=>e.reduce((r,y)=>(r[y]=y,r),{})),qF=e=>e.sorting,t6=gi(qF,e=>e.sortedRows),r6=Ro(t6,Ep,pf,(e,r,y)=>e.reduce((F,j)=>{const Y=r[j];Y&&F.push({id:j,model:Y});const D=y[j];return D&&Ly(D)&&F.push({id:j,model:{[Km]:j}}),F},[])),uf=gi(qF,e=>e.sortModel),Tpe=Ro(uf,e=>e.reduce((y,F,j)=>(y[F.field]={sortDirection:F.sort,sortIndex:e.length>1?j+1:void 0},y),{})),n6=e=>e.filter,ul=gi(n6,e=>e.filterModel),Spe=gi(ul,e=>e.quickFilterValues),Cpe=e=>e.visibleRowsLookup,e_=gi(n6,e=>e.filteredRowsLookup);gi(n6,e=>e.filteredDescendantCountLookup);const qp=Ro(Cpe,r6,(e,r)=>r.filter(y=>e[y.id]!==!1)),Sx=Ro(qp,e=>e.map(r=>r.id)),t_=Ro(e_,r6,(e,r)=>r.filter(y=>e[y.id]!==!1)),Mpe=Ro(t_,e=>e.map(r=>r.id)),r_=Ro(qp,pf,JT,(e,r,y)=>y<2?e:e.filter(F=>{var j;return((j=r[F.id])==null?void 0:j.depth)===0})),n_=gi(qp,e=>e.length),a6=gi(r_,e=>e.length),Ape=gi(t_,e=>e.length);gi(Ape,a6,(e,r)=>e-r);const a_=Ro(ul,gv,(e,r)=>{var y;return(y=e.items)==null?void 0:y.filter(F=>{var D,O;if(!F.field)return!1;const j=r[F.field];if(!(j!=null&&j.filterOperators)||((D=j==null?void 0:j.filterOperators)==null?void 0:D.length)===0)return!1;const Y=j.filterOperators.find(t=>t.value===F.operator);return Y?!Y.InputComponent||F.value!=null&&((O=F.value)==null?void 0:O.toString())!=="":!1})}),Epe=Ro(a_,e=>e.reduce((y,F)=>(y[F.field]?y[F.field].push(F):y[F.field]=[F],y),{}));function Mi(e,r,y){const F=Oe.useRef(!0);Oe.useEffect(()=>{F.current=!1,e.current.register(y,r)},[e,y,r]),F.current&&e.current.register(y,r)}function nl(e,r){const y=Oe.useRef(null);if(y.current)return y.current;const F=e.current.getLogger(r);return y.current=F,F}const i_=(e,r,y,F,j)=>{const Y=nl(e,"useNativeEventListener"),[D,O]=Oe.useState(!1),t=Oe.useRef(F),l=HF(r)?r():(r==null?void 0:r.current)??null,S=Oe.useCallback(i=>t.current&&t.current(i),[]);Oe.useEffect(()=>{t.current=F},[F]),Oe.useEffect(()=>{if(l&&y&&!D){Y.debug(`Binding native ${y} event`),l.addEventListener(y,S,j),O(!0);const i=()=>{Y.debug(`Clearing native ${y} event`),l.removeEventListener(y,S,j)};e.current.subscribeEvent("unmount",i)}},[l,S,y,D,Y,j,e])},Gb=e=>{const r=Oe.useRef(!0);r.current&&(r.current=!1,e())},Ppe=()=>{},Lpe=(e,r)=>{const y=Oe.useRef(!1);Gi(()=>y.current||!e?Ppe:(y.current=!0,r()),[y.current||e])},Ipe=100,Rpe=e=>e?0:100,o_=(e,r,y)=>r>0&&e>0?Math.ceil(e/r):e===-1?y+2:0,s_=e=>({page:0,pageSize:e?0:100}),kpe=(e,r=0)=>r===0?e:Math.max(Math.min(e,r-1),0),l_=(e,r)=>{if(r===md.DataGrid&&e>Ipe)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`))},tS=e=>e.pagination,gu=gi(tS,e=>e.paginationModel),Fm=gi(tS,e=>e.rowCount),tx=gi(tS,e=>e.meta),Dpe=gi(gu,e=>e.page),Ope=gi(gu,e=>e.pageSize),u_=gi(gu,Fm,(e,r)=>o_(r,e.pageSize,e.page)),i6=Ro(gu,pf,JT,qp,r_,(e,r,y,F,j)=>{var w;const Y=j.length,D=Math.min(e.pageSize*e.page,Y-1),O=Math.min(D+e.pageSize-1,Y-1);if(D===-1||O===-1)return null;if(y<2)return{firstRowIndex:D,lastRowIndex:O};const t=j[D],l=O-D+1,S=F.findIndex(v=>v.id===t.id);let i=S,C=0;for(;i0)&&(i+=1),m===0&&(C+=1))}return{firstRowIndex:S,lastRowIndex:i-1}}),Fpe=Ro(qp,i6,(e,r)=>r?e.slice(r.firstRowIndex,r.lastRowIndex+1):[]),c_=Ro(Sx,i6,(e,r)=>r?e.slice(r.firstRowIndex,r.lastRowIndex+1):[]),_pe=["field","colDef"],zpe=e=>{const{classes:r}=e;return qn({root:["checkboxInput"]},ki,r)},Bpe=Oe.forwardRef(function(r,y){var b;const F=hn(r,_pe),[,j]=Oe.useState(!1),Y=yi(),D=Wa(),O={classes:D.classes},t=zpe(O),l=va(Y,QF),S=va(Y,lf),i=va(Y,Sx),C=va(Y,c_),w=Oe.useMemo(()=>typeof D.isRowSelectable!="function"?S:S.filter(p=>Y.current.getRow(p)?D.isRowSelectable(Y.current.getRowParams(p)):!1),[Y,D.isRowSelectable,S]),v=Oe.useMemo(()=>(!D.pagination||!D.checkboxSelectionVisibleOnly?i:C).reduce((E,g)=>(E[g]=!0,E),{}),[D.pagination,D.checkboxSelectionVisibleOnly,C,i]),m=Oe.useMemo(()=>w.filter(p=>v[p]).length,[w,v]),a=m>0&&m0,s=p=>{const E={value:p.target.checked};Y.current.publishEvent("headerSelectionCheckboxChange",E)},o=l!==null&&l.field===r.field?0:-1;Oe.useLayoutEffect(()=>{const p=Y.current.getColumnHeaderElement(r.field);o===0&&p&&(p.tabIndex=-1)},[o,Y,r.field]);const h=Oe.useCallback(p=>{p.key===" "&&Y.current.publishEvent("headerSelectionCheckboxChange",{value:!n})},[Y,n]),f=Oe.useCallback(()=>{j(p=>!p)},[]);Oe.useEffect(()=>Y.current.subscribeEvent("rowSelectionChange",f),[Y,f]);const u=Y.current.getLocaleText(n?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return Ce.jsx(D.slots.baseCheckbox,Ge({ref:y,indeterminate:a,checked:n,onChange:s,className:t.root,inputProps:{"aria-label":u},tabIndex:o,onKeyDown:h,disabled:!q5(D)},(b=D.slotProps)==null?void 0:b.baseCheckbox,F))}),sp="__check__",Wy=Ge({},JF,{type:"custom",field:sp,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,r,y,F)=>{const j=w2(F),Y=F.current.getRowId(r);return j[Y]!==void 0},renderHeader:e=>Ce.jsx(Bpe,Ge({},e)),renderCell:e=>Ce.jsx(mpe,Ge({},e))}),Npe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function WI(e,r){if(e==null)return"";const y=new Date(e);return Number.isNaN(y.getTime())?"":r==="date"?y.toISOString().substring(0,10):r==="datetime-local"?(y.setMinutes(y.getMinutes()-y.getTimezoneOffset()),y.toISOString().substring(0,19)):y.toISOString().substring(0,10)}function sm(e){var o;const{item:r,applyValue:y,type:F,apiRef:j,focusElementRef:Y,InputProps:D,clearButton:O,tabIndex:t,disabled:l}=e,S=hn(e,Npe),i=Sc(),[C,w]=Oe.useState(()=>WI(r.value,F)),[v,m]=Oe.useState(!1),a=Ui(),n=Wa(),s=Oe.useCallback(h=>{i.clear();const f=h.target.value;w(f),m(!0),i.start(n.filterDebounceMs,()=>{const u=new Date(f);y(Ge({},r,{value:Number.isNaN(u.getTime())?void 0:u})),m(!1)})},[y,r,n.filterDebounceMs,i]);return Oe.useEffect(()=>{const h=WI(r.value,F);w(h)},[r.value,F]),Ce.jsx(n.slots.baseTextField,Ge({fullWidth:!0,id:a,label:j.current.getLocaleText("filterPanelInputLabel"),placeholder:j.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:s,variant:"standard",type:F||"text",InputLabelProps:{shrink:!0},inputRef:Y,InputProps:Ge({},v||O?{endAdornment:v?Ce.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):O}:{},{disabled:l},D,{inputProps:Ge({max:F==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:t},D==null?void 0:D.inputProps)})},S,(o=n.slotProps)==null?void 0:o.baseTextField))}function lm(e,r,y,F){if(!e.value)return null;const j=new Date(e.value);y?j.setSeconds(0,0):(j.setMinutes(j.getMinutes()+j.getTimezoneOffset()),j.setHours(0,0,0,0));const Y=j.getTime();return D=>{if(!D)return!1;if(F)return r(D.getTime(),Y);const O=new Date(D);return y?O.setSeconds(0,0):O.setHours(0,0,0,0),r(O.getTime(),Y)}}const f_=e=>[{value:"is",getApplyFilterFn:r=>lm(r,(y,F)=>y===F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:r=>lm(r,(y,F)=>y!==F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:r=>lm(r,(y,F)=>y>F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:r=>lm(r,(y,F)=>y>=F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:r=>lm(r,(y,F)=>ylm(r,(y,F)=>y<=F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>r=>r==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>r=>r!=null,requiresFilterValue:!1}],Upe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Hpe=ln(Hy)({fontSize:"inherit"}),Vpe=e=>{const{classes:r}=e;return qn({root:["editInputCell"]},ki,r)};function jpe(e){const{id:r,value:y,field:F,colDef:j,hasFocus:Y,inputProps:D,onValueChange:O}=e,t=hn(e,Upe),l=j.type==="dateTime",S=yi(),i=Oe.useRef(),C=Oe.useMemo(()=>{let h;y==null?h=null:y instanceof Date?h=y:h=new Date((y??"").toString());let f;return h==null||Number.isNaN(h.getTime())?f="":f=new Date(h.getTime()-h.getTimezoneOffset()*60*1e3).toISOString().substr(0,l?16:10),{parsed:h,formatted:f}},[y,l]),[w,v]=Oe.useState(C),a={classes:Wa().classes},n=Vpe(a),s=Oe.useCallback(h=>{if(h==="")return null;const[f,u]=h.split("T"),[b,p,E]=f.split("-"),g=new Date;if(g.setFullYear(Number(b),Number(p)-1,Number(E)),g.setHours(0,0,0,0),u){const[c,x]=u.split(":");g.setHours(Number(c),Number(x),0,0)}return g},[]),o=Oe.useCallback(async h=>{const f=h.target.value,u=s(f);O&&await O(h,u),v({parsed:u,formatted:f}),S.current.setEditCellValue({id:r,field:F,value:u},h)},[S,F,r,O,s]);return Oe.useEffect(()=>{v(h=>{var f,u;return C.parsed!==h.parsed&&((f=C.parsed)==null?void 0:f.getTime())!==((u=h.parsed)==null?void 0:u.getTime())?C:h})},[C]),Gi(()=>{Y&&i.current.focus()},[Y]),Ce.jsx(Hpe,Ge({inputRef:i,fullWidth:!0,className:n.root,type:l?"datetime-local":"date",inputProps:Ge({max:l?"9999-12-31T23:59":"9999-12-31"},D),value:w.formatted,onChange:o},t))}const d_=e=>Ce.jsx(jpe,Ge({},e));function h_({value:e,columnType:r,rowId:y,field:F}){if(!(e instanceof Date))throw new Error([`MUI X: \`${r}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${y}, field: "${F}".`].join(` -`))}const Gpe=(e,r,y,F)=>{if(!e)return"";const j=F.current.getRowId(r);return h_({value:e,columnType:"date",rowId:j,field:y.field}),e.toLocaleDateString()},Wpe=(e,r,y,F)=>{if(!e)return"";const j=F.current.getRowId(r);return h_({value:e,columnType:"dateTime",rowId:j,field:y.field}),e.toLocaleString()},$pe=Ge({},xd,{type:"date",sortComparator:UF,valueFormatter:Gpe,filterOperators:f_(),renderEditCell:d_,pastedValueParser:e=>new Date(e)}),Ype=Ge({},xd,{type:"dateTime",sortComparator:UF,valueFormatter:Wpe,filterOperators:f_(!0),renderEditCell:d_,pastedValueParser:e=>new Date(e)}),fp=e=>e==null?null:Number(e),Xpe=e=>e==null||Number.isNaN(e)||e===""?null:r=>fp(r)===fp(e),Zpe=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>fp(r)===e.value,InputComponent:th,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>fp(r)!==e.value,InputComponent:th,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)>e.value,InputComponent:th,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)>=e.value,InputComponent:th,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)<=e.value,InputComponent:th,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:r=>r!=null&&e.value.includes(Number(r)),InputComponent:jF,InputComponentProps:{type:"number"}}],Kpe=Ge({},xd,{type:"number",align:"right",headerAlign:"right",sortComparator:NF,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Tve(e)?e.toLocaleString():e||"",filterOperators:Zpe(),getApplyQuickFilterFn:Xpe}),T2=e=>e==="Escape",rS=e=>e==="Tab";function v_(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const S2=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Jpe=e=>!!e.key,o6=e=>rS(e)||T2(e);function p_(e){return!!((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()==="v"&&!e.shiftKey&&!e.altKey)}function Iy(e){return(e==null?void 0:e.type)==="singleSelect"}function pg(e,r){if(e)return typeof e.valueOptions=="function"?e.valueOptions(Ge({field:e.field},r)):e.valueOptions}function C2(e,r,y){if(r===void 0)return;const F=r.find(j=>{const Y=y(j);return String(Y)===String(e)});return y(F)}const Qpe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],qpe=["MenuProps"];function e0e(e){return!!e.key}function t0e(e){var x,A;const r=Wa(),{id:y,value:F,field:j,row:Y,colDef:D,hasFocus:O,error:t,onValueChange:l,initialOpen:S=r.editMode===dh.Cell}=e,i=hn(e,Qpe),C=yi(),w=Oe.useRef(),v=Oe.useRef(),[m,a]=Oe.useState(S),s=(((x=r.slotProps)==null?void 0:x.baseSelect)||{}).native??!1,o=((A=r.slotProps)==null?void 0:A.baseSelect)||{},{MenuProps:h}=o,f=hn(o,qpe);if(Gi(()=>{var M;O&&((M=v.current)==null||M.focus())},[O]),!Iy(D))return null;const u=pg(D,{id:y,row:Y});if(!u)return null;const b=D.getOptionValue,p=D.getOptionLabel,E=async M=>{if(!Iy(D)||!u)return;a(!1);const R=M.target,T=C2(R.value,u,b);l&&await l(M,T),await C.current.setEditCellValue({id:y,field:j,value:T},M)},g=(M,R)=>{if(r.editMode===dh.Row){a(!1);return}if(R==="backdropClick"||T2(M.key)){const T=C.current.getCellParams(y,j);C.current.publishEvent("cellEditStop",Ge({},T,{reason:T2(M.key)?ld.escapeKeyDown:ld.cellFocusOut}))}},c=M=>{e0e(M)&&M.key==="Enter"||a(!0)};return!u||!D?null:Ce.jsx(r.slots.baseSelect,Ge({ref:w,inputRef:v,value:F,onChange:E,open:m,onOpen:c,MenuProps:Ge({onClose:g},h),error:t,native:s,fullWidth:!0},i,f,{children:u.map(M=>{var T;const R=b(M);return Oe.createElement(r.slots.baseSelectOption,Ge({},((T=r.slotProps)==null?void 0:T.baseSelectOption)||{},{native:s,key:R,value:R}),p(M))})}))}const r0e=e=>Ce.jsx(t0e,Ge({},e)),n0e=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],a0e=({column:e,OptionComponent:r,getOptionLabel:y,getOptionValue:F,isSelectNative:j,baseSelectOptionProps:Y})=>["",...pg(e)||[]].map(O=>{const t=F(O);let l=y(O);return l===""&&(l=" "),Oe.createElement(r,Ge({},Y,{native:j,key:t,value:t}),l)}),i0e=ln("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function $I(e){var b,p,E,g,c;const{item:r,applyValue:y,type:F,apiRef:j,focusElementRef:Y,placeholder:D,tabIndex:O,label:t,variant:l="standard",clearButton:S}=e,i=hn(e,n0e),C=r.value??"",w=Ui(),v=Ui(),m=Wa(),a=((p=(b=m.slotProps)==null?void 0:b.baseSelect)==null?void 0:p.native)??!1;let n=null;if(r.field){const x=j.current.getColumn(r.field);Iy(x)&&(n=x)}const s=n==null?void 0:n.getOptionValue,o=n==null?void 0:n.getOptionLabel,h=Oe.useMemo(()=>pg(n),[n]),f=Oe.useCallback(x=>{let A=x.target.value;A=C2(A,h,s),y(Ge({},r,{value:A}))},[h,s,y,r]);if(!Iy(n))return null;const u=t??j.current.getLocaleText("filterPanelInputLabel");return Ce.jsxs(i0e,{children:[Ce.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[Ce.jsx(m.slots.baseInputLabel,Ge({},(E=m.slotProps)==null?void 0:E.baseInputLabel,{id:v,htmlFor:w,shrink:!0,variant:l,children:u})),Ce.jsx(m.slots.baseSelect,Ge({id:w,label:u,labelId:v,value:C,onChange:f,variant:l,type:F||"text",inputProps:{tabIndex:O,ref:Y,placeholder:D??j.current.getLocaleText("filterPanelInputPlaceholder")},native:a,notched:l==="outlined"?!0:void 0},i,(g=m.slotProps)==null?void 0:g.baseSelect,{children:a0e({column:n,OptionComponent:m.slots.baseSelectOption,getOptionLabel:o,getOptionValue:s,isSelectNative:a,baseSelectOptionProps:(c=m.slotProps)==null?void 0:c.baseSelectOption})}))]}),S]})}const o0e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],s0e=["key"],l0e=T9();function u0e(e){const{item:r,applyValue:y,apiRef:F,focusElementRef:j,color:Y,error:D,helperText:O,size:t,variant:l="standard"}=e,S=hn(e,o0e),i={color:Y,error:D,helperText:O,size:t,variant:l},C=Ui(),w=Wa();let v=null;if(r.field){const f=F.current.getColumn(r.field);Iy(f)&&(v=f)}const m=v==null?void 0:v.getOptionValue,a=v==null?void 0:v.getOptionLabel,n=Oe.useCallback((f,u)=>m(f)===m(u),[m]),s=Oe.useMemo(()=>pg(v)||[],[v]),o=Oe.useMemo(()=>Array.isArray(r.value)?r.value.reduce((f,u)=>{const b=s.find(p=>m(p)===u);return b!=null&&f.push(b),f},[]):[],[m,r.value,s]),h=Oe.useCallback((f,u)=>{y(Ge({},r,{value:u.map(m)}))},[y,r,m]);return Ce.jsx(B9,Ge({multiple:!0,options:s,isOptionEqualToValue:n,filterOptions:l0e,id:C,value:o,onChange:h,getOptionLabel:a,renderTags:(f,u)=>f.map((b,p)=>{const E=u({index:p}),{key:g}=E,c=hn(E,s0e);return Ce.jsx(w.slots.baseChip,Ge({variant:"outlined",size:"small",label:a(b)},c),g)}),renderInput:f=>{var u;return Ce.jsx(w.slots.baseTextField,Ge({},f,{label:F.current.getLocaleText("filterPanelInputLabel"),placeholder:F.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:Ge({},f.InputLabelProps,{shrink:!0}),inputRef:j,type:"singleSelect"},i,(u=w.slotProps)==null?void 0:u.baseTextField))}},S))}const um=e=>e==null||!K5(e)?e:e.value,c0e=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:r=>um(r)===um(e.value),InputComponent:$I},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:r=>um(r)!==um(e.value),InputComponent:$I},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const r=e.value.map(um);return y=>r.includes(um(y))},InputComponent:u0e}],f0e=e=>typeof e[0]=="object",d0e=e=>K5(e)?e.value:e,h0e=e=>K5(e)?e.label:String(e),v0e=Ge({},xd,{type:"singleSelect",getOptionLabel:h0e,getOptionValue:d0e,valueFormatter(e,r,y,F){const j=F.current.getRowId(r);if(!Iy(y))return"";const Y=pg(y,{id:j,row:r});if(e==null)return"";if(!Y)return e;if(!f0e(Y))return y.getOptionLabel(e);const D=Y.find(O=>y.getOptionValue(O)===e);return D?y.getOptionLabel(D):""},renderEditCell:r0e,filterOperators:c0e(),pastedValueParser:(e,r,y)=>{const F=y,j=pg(F)||[],Y=F.getOptionValue;if(j.find(O=>Y(O)===e))return e}}),p0e="string",g0e=()=>({string:xd,number:Kpe,date:$pe,dateTime:Ype,boolean:JF,singleSelect:v0e,[KT]:jve,custom:xd}),s6=e=>e.headerFiltering,m0e=gi(s6,e=>(e==null?void 0:e.enabled)??!1),y0e=gi(s6,e=>e.editing),x0e=gi(s6,e=>e.menuOpen),nS=e=>e.columnGrouping,g_=Ro(nS,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),m_=Ro(nS,e=>(e==null?void 0:e.lookup)??{}),b0e=Ro(nS,e=>(e==null?void 0:e.headerStructure)??[]),Wb=gi(nS,e=>(e==null?void 0:e.maxDepth)??0),y_=["maxWidth","minWidth","width","flex"],_C=g0e();function w0e({initialFreeSpace:e,totalFlexUnits:r,flexColumns:y}){const F=new Set(y.map(D=>D.field)),j={all:{},frozenFields:[],freeze:D=>{const O=j.all[D];O&&O.frozen!==!0&&(j.all[D].frozen=!0,j.frozenFields.push(D))}};function Y(){if(j.frozenFields.length===F.size)return;const D={min:{},max:{}};let O=e,t=r,l=0;j.frozenFields.forEach(S=>{O-=j.all[S].computedWidth,t-=j.all[S].flex});for(let S=0;Si.maxWidth&&(l+=i.maxWidth-w,w=i.maxWidth,D.max[i.field]=!0),j.all[i.field]={frozen:!1,computedWidth:w,flex:i.flex}}l<0?Object.keys(D.max).forEach(S=>{j.freeze(S)}):l>0?Object.keys(D.min).forEach(S=>{j.freeze(S)}):y.forEach(({field:S})=>{j.freeze(S)}),Y()}return Y(),j.all}const yM=(e,r)=>{const y={};let F=0,j=0;const Y=[];e.orderedFields.forEach(t=>{let l=e.lookup[t],S=0,i=!1;e.columnVisibilityModel[t]!==!1&&(l.flex&&l.flex>0?(F+=l.flex,i=!0):S=uv(l.width||xd.width,l.minWidth||xd.minWidth,l.maxWidth||xd.maxWidth),j+=S),l.computedWidth!==S&&(l=Ge({},l,{computedWidth:S})),i&&Y.push(l),y[t]=l});const D=r===void 0?0:r.viewportOuterSize.width-(r.hasScrollY?r.scrollbarSize:0),O=Math.max(D-j,0);if(F>0&&D>0){const t=w0e({initialFreeSpace:O,totalFlexUnits:F,flexColumns:Y});Object.keys(t).forEach(l=>{y[l].computedWidth=t[l].computedWidth})}return Ge({},e,{lookup:y})},T0e=(e,r)=>{if(!r)return e;const{orderedFields:y=[],dimensions:F={}}=r,j=Object.keys(F);if(j.length===0&&y.length===0)return e;const Y={},D=[];for(let S=0;S!Y[S])],t=Ge({},e.lookup);for(let S=0;S{C[w]=v===-1?1/0:v}),t[i]=C}return Ge({},e,{orderedFields:O,lookup:t})};function YI(e){let r=_C[p0e];return e&&_C[e]&&(r=_C[e]),r}const pm=({apiRef:e,columnsToUpsert:r,initialState:y,columnVisibilityModel:F=yf(e),keepOnlyColumnsToUpsert:j=!1})=>{var S,i;const Y=!e.current.state.columns;let D;if(Y)D={orderedFields:[],lookup:{},columnVisibilityModel:F};else{const C=ch(e.current.state);D={orderedFields:j?[]:[...C.orderedFields],lookup:Ge({},C.lookup),columnVisibilityModel:F}}let O={};j&&!Y&&(O=Object.keys(D.lookup).reduce((C,w)=>Ge({},C,{[w]:!1}),{})),r.forEach(C=>{const{field:w}=C;O[w]=!0;let v=D.lookup[w];v==null?(v=Ge({},YI(C.type),{field:w,hasBeenResized:!1}),D.orderedFields.push(w)):j&&D.orderedFields.push(w),v&&v.type!==C.type&&(v=Ge({},YI(C.type),{field:w}));let m=v.hasBeenResized;y_.forEach(a=>{C[a]!==void 0&&(m=!0,C[a]===-1&&(C[a]=1/0))}),D.lookup[w]=Ge({},v,C,{hasBeenResized:m})}),j&&!Y&&Object.keys(D.lookup).forEach(C=>{O[C]||delete D.lookup[C]});const t=e.current.unstable_applyPipeProcessors("hydrateColumns",D),l=T0e(t,y);return yM(l,((i=(S=e.current).getRootDimensions)==null?void 0:i.call(S))??void 0)};function S0e({firstColumnToRender:e,apiRef:r,firstRowToRender:y,lastRowToRender:F,visibleRows:j}){let Y=e;for(let D=y;D{const{scrollDirection:r,classes:y}=e,F={root:["scrollArea",`scrollArea--${r}`]};return qn(F,ki,y)},A0e=po("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,r)=>[{[`&.${Hr["scrollArea--left"]}`]:r["scrollArea--left"]},{[`&.${Hr["scrollArea--right"]}`]:r["scrollArea--right"]},r.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Hr["scrollArea--left"]}`]:{left:0},[`&.${Hr["scrollArea--right"]}`]:{right:0}}));function E0e(e){const{scrollDirection:r}=e,y=Oe.useRef(null),F=yi(),j=Sc(),Y=va(F,Ub),D=va(F,X5),O=va(F,Qu),t=Oe.useRef({left:0,top:0}),l=()=>{if(r==="left")return t.current.left>0;if(r==="right"){const p=D-O.viewportInnerSize.width;return t.current.left{t.current=p,w(l)},f=pa(p=>{let E;if(p.preventDefault(),r==="left")E=p.clientX-y.current.getBoundingClientRect().right;else if(r==="right")E=Math.max(1,p.clientX-y.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");E=(E-XI)*C0e+XI,j.start(0,()=>{F.current.scroll({left:t.current.left+E,top:t.current.top})})}),u=pa(()=>{i(!0)}),b=pa(()=>{i(!1)});return Za(F,"scrollPositionChange",h),Za(F,"columnHeaderDragStart",u),Za(F,"columnHeaderDragEnd",b),!S||!C?null:Ce.jsx(A0e,{ref:y,className:Ln(a.root),ownerState:m,onDragOver:f,style:o})}const ZI=e0(E0e),P0e=()=>{};function L0e(e,r,y){const F=Oe.useRef(null);F.current=r,Gi(()=>{if(y===!1||typeof ResizeObserver>"u")return P0e;const j=e.current,Y=new ResizeObserver(D=>{F.current(D)});return j&&Y.observe(j),()=>{Y.disconnect()}},[e,y])}const x_=Oe.createContext(void 0);function vh(){const e=Oe.useContext(x_);if(e===void 0)throw new Error(["MUI X: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return e}const ib=(e,r)=>{let y,F;return r.pagination&&r.paginationMode==="client"?(F=i6(e),y=Fpe(e)):(y=qp(e),y.length===0?F=null:F={firstRowIndex:0,lastRowIndex:y.length-1}),{rows:y,range:F}},Ag=(e,r)=>{const y=ib(e,r);return Oe.useMemo(()=>({rows:y.rows,range:y.range}),[y.rows,y.range])},I0e=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",R0e=I0e.includes("firefox"),$y=e=>e.rowsMeta,u6=e=>e.virtualization,k0e=gi(u6,e=>e.enabled),c6=gi(u6,e=>e.enabledForColumns),f6=gi(u6,e=>e.renderContext),D0e=Ro(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,r)=>({firstColumnIndex:e,lastColumnIndex:r})),b_={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},O0e=(e,r)=>{const y={enabled:!r.disableVirtualization,enabledForColumns:!0,renderContext:b_};return Ge({},e,{virtualization:y})};function F0e(e,r){const y=Y=>{e.current.setState(D=>Ge({},D,{virtualization:Ge({},D.virtualization,{enabled:Y})}))};Mi(e,{unstable_setVirtualization:y,unstable_setColumnVirtualization:Y=>{e.current.setState(D=>Ge({},D,{virtualization:Ge({},D.virtualization,{enabledForColumns:Y})}))}},"public"),Oe.useEffect(()=>{y(!r.disableVirtualization)},[r.disableVirtualization])}const zC=50;var zs=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(zs||{});const KI={top:0,left:0},_0e=Object.freeze(new Map),z0e=(e,r,y,F,j)=>({direction:zs.NONE,buffer:T_(e,zs.NONE,r,y,F,j)});let xM=!1;try{typeof window<"u"&&(xM=/jsdom/.test(window.navigator.userAgent))}catch{}const B0e=()=>{const e=vh(),r=Wa(),y=va(e,rl),F=va(e,k0e)&&!xM,j=va(e,c6)&&!xM,Y=va(e,Qu),D=Y.viewportOuterSize,O=va(e,Qp),t=va(e,Vb),l=O.bottom.length>0,[S,i]=Oe.useState(_0e),C=ru(),w=va(e,sf),v=va(e,e6),m=va(e,$y),a=va(e,w2),n=Ag(e,r),s=e.current.rootElementRef,o=e.current.mainElementRef,h=e.current.virtualScrollerRef,f=Oe.useRef(null),u=Oe.useRef(null),b=Y.contentSize.height,p=Y.columnsTotalWidth,E=va(e,uve);L0e(o,()=>e.current.resize());const g=Oe.useRef(KI),c=Oe.useRef(KI),x=Oe.useRef(b_),A=va(e,f6),M=Sc(),R=Oe.useRef(void 0),T=wg(()=>z0e(C.direction,r.rowBufferPx,r.columnBufferPx,Y.rowHeight*15,zC*6)).current,L={rowIndex:Oe.useMemo(()=>w?n.rows.findIndex(V=>V.id===w.id):-1,[w,n.rows]),columnIndex:Oe.useMemo(()=>w?y.findIndex(V=>V.field===w.field):-1,[w,y])},P=Oe.useCallback(V=>{if(H0e(V,e.current.state.virtualization.renderContext))return;const $=V.firstRowIndex!==x.current.firstRowIndex||V.lastRowIndex!==x.current.lastRowIndex;e.current.setState(Z=>Ge({},Z,{virtualization:Ge({},Z.virtualization,{renderContext:V})})),Y.isReady&&$&&(x.current=V,e.current.publishEvent("renderedRowsIntervalChange",V)),c.current=g.current},[e,Y.isReady]),d=()=>{const V={top:h.current.scrollTop,left:h.current.scrollLeft},$=V.left-g.current.left,Z=V.top-g.current.top,q=$!==0||Z!==0;g.current=V;const ae=q?V0e($,Z):zs.NONE,ie=Math.abs(g.current.top-c.current.top),fe=Math.abs(g.current.left-c.current.left),Q=ie>=Y.rowHeight||fe>=zC,J=T.direction!==ae;if(!(Q||J))return A;if(J)switch(ae){case zs.NONE:case zs.LEFT:case zs.RIGHT:R.current=void 0;break;default:R.current=A;break}T.direction=ae,T.buffer=T_(C.direction,ae,r.rowBufferPx,r.columnBufferPx,Y.rowHeight*15,zC*6);const K=BC(e,r,F,j),ne=NC(K,g.current,T);return Cb.flushSync(()=>{P(ne)}),M.start(1e3,d),ne},k=()=>{const V=BC(e,r,F,j),$=NC(V,g.current,T);R.current=void 0,P($)},I=pa(V=>{const{scrollTop:$,scrollLeft:Z}=V.currentTarget;if($<0||C.direction==="ltr"&&Z<0||C.direction==="rtl"&&Z>0)return;const q=d();e.current.publishEvent("scrollPositionChange",{top:$,left:Z,renderContext:q})}),N=pa(V=>{e.current.publishEvent("virtualScrollerWheel",{},V)}),B=pa(V=>{e.current.publishEvent("virtualScrollerTouchMove",{},V)}),G=(V={})=>{var re;if(!V.rows&&!n.range)return[];const $=V.renderContext??A,Z=!l&&V.position===void 0||l&&V.position==="bottom",q=V.position!==void 0;let ae;switch(V.position){case"top":ae=0;break;case"bottom":ae=O.top.length+n.rows.length;break;case void 0:ae=O.top.length;break}const ie=V.rows??n.rows,fe=$.firstRowIndex,Q=Math.min($.lastRowIndex,ie.length),J=V.rows?BI(0,V.rows.length):BI(fe,Q);let oe=-1;!q&&L.rowIndex!==-1&&(L.rowIndex=Q&&(oe=L.rowIndex,J.push(oe)));const K=[],ne=(re=r.slotProps)==null?void 0:re.row,ce=Jp(e);return J.forEach(ee=>{var vt,at,nt;const{id:de,model:le}=ie[ee],he=(((vt=n==null?void 0:n.range)==null?void 0:vt.firstRowIndex)||0)+ae+ee;if(E){const mt=t.left.length,rt=y.length-t.right.length;e.current.calculateColSpan({rowId:de,minFirstColumn:mt,maxLastColumn:rt,columns:y}),t.left.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:0,maxLastColumn:t.left.length,columns:y}),t.right.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:y.length-t.right.length,maxLastColumn:y.length,columns:y})}const xe=(w==null?void 0:w.id)===de,Ee=e.current.rowHasAutoHeight(de)?"auto":e.current.unstable_getRowHeight(de);let Se;a[de]==null?Se=!1:Se=e.current.isRowSelectable(de);let ke=!1;V.position===void 0&&(ke=ee===0);let Te=!1;const Ae=ee===ie.length-1;if(Z)if(q)Te=Ae;else{const mt=n.rows.length-1;ee===mt&&(Te=!0)}const Ie=ee===oe;let Ue=null;v!==null&&v.id===de&&(Ue=e.current.getCellParams(de,v.field).cellMode==="view"?v.field:null);let Ne=$;!q&&R.current&&ee>=R.current.firstRowIndex&&ee=D.width,H=Oe.useMemo(()=>({overflowX:U?void 0:"hidden",overflowY:r.autoHeight?"hidden":void 0}),[U,r.autoHeight]),W=Oe.useMemo(()=>{const V={width:U?p:"auto",height:b};return r.autoHeight&&n.rows.length===0&&(V.height=KF(e)),V},[e,p,b,U,r.autoHeight,n.rows.length]);return Oe.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,W]),Gi(()=>{e.current.resize()},[e,m.currentPageTotalHeight]),Gi(()=>{F&&(h.current.scrollLeft=0,h.current.scrollTop=0)},[F,s,h]),Lpe(D.width!==0,()=>{const V=BC(e,r,F,j),$=NC(V,g.current,T);P($),e.current.publishEvent("scrollPositionChange",{top:g.current.top,left:g.current.left,renderContext:$})}),e.current.register("private",{updateRenderContext:k}),Za(e,"columnsChange",k),Za(e,"filteredRowsSet",k),Za(e,"rowExpansionChange",k),{renderContext:A,setPanels:i,getRows:G,getContainerProps:()=>({ref:o}),getScrollerProps:()=>({ref:h,onScroll:I,onWheel:N,onTouchMove:B,style:H,role:"presentation",tabIndex:R0e?-1:void 0}),getContentProps:()=>({style:W,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:f,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:u,role:"presentation"})}};function BC(e,r,y,F){const j=Qu(e.current.state),Y=ib(e,r),D=rl(e),O=e.current.state.rows.dataRowIds.at(-1),t=D.at(-1);return{enabled:y,enabledForColumns:F,apiRef:e,autoHeight:r.autoHeight,rowBufferPx:r.rowBufferPx,columnBufferPx:r.columnBufferPx,leftPinnedWidth:j.leftPinnedWidth,columnsTotalWidth:j.columnsTotalWidth,viewportInnerWidth:j.viewportInnerSize.width,viewportInnerHeight:j.viewportInnerSize.height,lastRowHeight:O!==void 0?e.current.unstable_getRowHeight(O):0,lastColumnWidth:(t==null?void 0:t.computedWidth)??0,rowsMeta:$y(e.current.state),columnPositions:Jp(e),rows:Y.rows,range:Y.range,pinnedColumns:Vb(e),visibleColumns:D}}function NC(e,r,y){let F;if(!e.enabled)F={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length};else{const{top:Y,left:D}=r,O=Math.abs(D)+e.leftPinnedWidth,t=Math.min(JI(e,Y,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1),l=e.autoHeight?t+e.rows.length:JI(e,Y+e.viewportInnerHeight);let S=0,i=e.columnPositions.length;if(e.enabledForColumns){let C=!1;const[w,v]=bM({firstIndex:t,lastIndex:l,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:y.buffer.rowBefore,bufferAfter:y.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let m=w;m=e.range.lastRowIndex);const Y=uv(F-(((O=e.range)==null?void 0:O.firstRowIndex)||0),0,e.rowsMeta.positions.length);return j||e.rowsMeta.positions[Y]>=r?Vp(r,e.rowsMeta.positions,y):U0e(r,e.rowsMeta.positions,Y,y)}function N0e(e,r,y){const[F,j]=bM({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:y.buffer.rowBefore,bufferAfter:y.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[Y,D]=bM({firstIndex:r.firstColumnIndex,lastIndex:r.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:y.buffer.columnBefore,bufferAfter:y.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),O=S0e({firstColumnToRender:Y,apiRef:e.apiRef,firstRowToRender:F,lastRowToRender:j,visibleRows:e.rows});return{firstRowIndex:F,lastRowIndex:j,firstColumnIndex:O,lastColumnIndex:D}}function Vp(e,r,y=void 0,F=0,j=r.length){if(r.length<=0)return-1;if(F>=j)return F;const Y=F+Math.floor((j-F)/2),D=r[Y];let O;if(y!=null&&y.atStart){const t=(Y===r.length-1?y.lastPosition:r[Y+1])-D;O=e-t=Math.abs(e)?r>0?zs.DOWN:zs.UP:e>0?zs.RIGHT:zs.LEFT}function T_(e,r,y,F,j,Y){if(e==="rtl")switch(r){case zs.LEFT:r=zs.RIGHT;break;case zs.RIGHT:r=zs.LEFT;break}switch(r){case zs.NONE:return{rowAfter:y,rowBefore:y,columnAfter:F,columnBefore:F};case zs.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:Y};case zs.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:Y,columnBefore:0};case zs.UP:return{rowAfter:0,rowBefore:j,columnAfter:0,columnBefore:0};case zs.DOWN:return{rowAfter:j,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const j0e=()=>{var S,i;const e=yi(),r=Wa(),y=va(e,jb),F=va(e,n_),j=y===0,Y=va(e,Gve),D=!Y&&j,O=!Y&&y>0&&F===0;let t=null,l=null;return D&&(t="noRowsOverlay"),O&&(t="noResultsOverlay"),Y&&(t="loadingOverlay",l=((i=(S=r.slotProps)==null?void 0:S.loadingOverlay)==null?void 0:i[j?"noRowsVariant":"variant"])||null),{overlayType:t,loadingOverlayVariant:l}},G0e=po("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,r)=>r.overlayWrapper})(({overlayType:e,loadingOverlayVariant:r})=>r!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),W0e=po("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,r)=>r.overlayWrapperInner})({}),$0e=e=>{const{classes:r}=e;return qn({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ki,r)};function Y0e(e){const r=yi(),y=Wa(),F=Ag(r,y),j=va(r,Qu);let Y=j.viewportOuterSize.height-j.topContainerHeight-j.bottomContainerHeight-(j.hasScrollX?j.scrollbarSize:0);(y.autoHeight&&F.rows.length===0||Y===0)&&(Y=KF(r));const D=$0e(Ge({},e,{classes:y.classes}));return Ce.jsx(G0e,Ge({className:Ln(D.root)},e,{children:Ce.jsx(W0e,Ge({className:Ln(D.inner),style:{height:Y,width:j.viewportOuterSize.width}},e))}))}function X0e(e){var Y,D;const{overlayType:r}=e,y=Wa();if(!r)return null;const F=(Y=y.slots)==null?void 0:Y[r],j=(D=y.slotProps)==null?void 0:D[r];return Ce.jsx(Y0e,Ge({},e,{children:Ce.jsx(F,Ge({},j))}))}const I3=e=>e.columnMenu;function Z0e(){var a;const e=vh(),r=Wa(),y=va(e,rl),F=va(e,Epe),j=va(e,Tpe),Y=va(e,QF),D=va(e,e6),O=va(e,xpe),t=va(e,ype),l=va(e,b2),S=va(e,Wb),i=va(e,I3),C=va(e,yf),w=va(e,b0e),v=!(O===null&&Y===null&&D===null),m=Oe.useRef(null);return e.current.register("private",{columnHeadersContainerRef:m}),Ce.jsx(r.slots.columnHeaders,Ge({ref:m,visibleColumns:y,filterColumnLookup:F,sortColumnLookup:j,columnHeaderTabIndexState:Y,columnGroupHeaderTabIndexState:O,columnHeaderFocus:t,columnGroupHeaderFocus:l,headerGroupingMaxDepth:S,columnMenuState:i,columnVisibility:C,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:v},(a=r.slotProps)==null?void 0:a.columnHeaders))}const K0e=e0(Z0e),J0e=()=>{const e=vh(),r=Wa(),y=va(e,rl),F=va(e,jb),j=va(e,Wb),Y=va(e,Zve);let D="grid";return r.treeData&&(D="treegrid"),{role:D,"aria-colcount":y.length,"aria-rowcount":j+1+Y+F,"aria-multiselectable":q5(r)}},Q0e=po("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),q0e=po("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,r)=>r.main})({flexGrow:1,position:"relative",overflow:"hidden"}),ege=Oe.forwardRef((e,r)=>{const y=J0e(),F=Wa();return Ce.jsxs(q0e,Ge({ref:r,ownerState:F,className:e.className,tabIndex:-1},y,{children:[Ce.jsx(Q0e,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),tge=()=>qn({root:["topContainer"]},ki,{}),rge=po("div")({position:"sticky",zIndex:4,top:0});function nge(e){const r=tge();return Ce.jsx(rge,Ge({},e,{className:Ln(r.root,e.className,Hr["container--top"]),role:"presentation"}))}const age=()=>qn({root:["bottomContainer"]},ki,{}),ige=po("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function oge(e){const r=age();return Ce.jsx(ige,Ge({},e,{className:Ln(r.root,e.className,Hr["container--bottom"]),role:"presentation"}))}const sge=(e,r)=>{const{classes:y}=e;return qn({root:["virtualScrollerContent",r&&"virtualScrollerContent--overflowed"]},ki,y)},lge=po("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,r)=>r.virtualScrollerContent})({}),uge=Oe.forwardRef(function(r,y){var D;const F=Wa(),j=!F.autoHeight&&((D=r.style)==null?void 0:D.minHeight)==="auto",Y=sge(F,j);return Ce.jsx(lge,Ge({ref:y},r,{ownerState:F,className:Ln(Y.root,r.className)}))}),cge=po("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),S_=po("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),fge=po(S_)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),dge=po(S_)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),hge=po("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function vge({rowsLength:e}){const r=yi(),{viewportOuterSize:y,minimumSize:F,hasScrollX:j,hasScrollY:Y,scrollbarSize:D,leftPinnedWidth:O,rightPinnedWidth:t}=va(r,Qu),l=j?D:0,S=y.height-F.height-l,i=Math.max(l,S);return i===0?null:Ce.jsxs(cge,{className:Hr.filler,role:"presentation",style:{height:i,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[O>0&&Ce.jsx(fge,{className:Hr["filler--pinnedLeft"],style:{width:O}}),Ce.jsx(hge,{}),t>0&&Ce.jsx(dge,{className:Hr["filler--pinnedRight"],style:{width:t+(Y?D:0)}})]})}const pge=e0(vge),gge=["className"],mge=e=>{const{classes:r}=e;return qn({root:["virtualScrollerRenderZone"]},ki,r)},yge=po("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,r)=>r.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),xge=Oe.forwardRef(function(r,y){const{className:F}=r,j=hn(r,gge),Y=yi(),D=Wa(),O=mge(D),t=va(Y,()=>{const l=f6(Y);return $y(Y.current.state).positions[l.firstRowIndex]??0});return Ce.jsx(yge,Ge({ref:y,className:Ln(O.root,F),ownerState:D,style:{transform:`translate3d(0, ${t}px, 0)`}},j))}),bge={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},ql=e=>e.editRows,gg=e=>e.preferencePanel;var Td=function(e){return e.filters="filters",e.columns="columns",e}(Td||{});const wge=(e,r)=>{const{classes:y}=e,F={root:["scrollbar",`scrollbar--${r}`],content:["scrollbarContent"]};return qn(F,ki,y)},C_=po("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Tge=po(C_)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),Sge=po(C_)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),Cge=po("div")({display:"inline-block"}),QI=Oe.forwardRef(function(r,y){const F=vh(),j=Wa(),Y=Oe.useRef(!1),D=Oe.useRef(0),O=Oe.useRef(null),t=Oe.useRef(null),l=wge(j,r.position),S=va(F,Qu),i=r.position==="vertical"?"height":"width",C=r.position==="vertical"?"scrollTop":"scrollLeft",w=r.position==="vertical"?S.hasScrollX:S.hasScrollY,v=S.minimumSize[i]+(w?S.scrollbarSize:0),a=(r.position==="vertical"?S.viewportInnerSize.height:S.viewportOuterSize.width)*(v/S.viewportOuterSize[i]),n=pa(()=>{const h=F.current.virtualScrollerRef.current,f=O.current;if(h[C]===D.current)return;if(Y.current){Y.current=!1;return}Y.current=!0;const u=h[C]/v;f[C]=u*a,D.current=h[C]}),s=pa(()=>{const h=F.current.virtualScrollerRef.current,f=O.current;if(Y.current){Y.current=!1;return}Y.current=!0;const u=f[C]/a;h[C]=u*v});ST(()=>{const h=F.current.virtualScrollerRef.current,f=O.current;return h.addEventListener("scroll",n,{capture:!0}),f.addEventListener("scroll",s,{capture:!0}),()=>{h.removeEventListener("scroll",n,{capture:!0}),f.removeEventListener("scroll",s,{capture:!0})}}),Oe.useEffect(()=>{t.current.style.setProperty(i,`${a}px`)},[a,i]);const o=r.position==="vertical"?Tge:Sge;return Ce.jsx(o,{ref:pi(y,O),className:l.root,tabIndex:-1,"aria-hidden":"true",children:Ce.jsx(Cge,{ref:t,className:l.content})})}),Mge=(e,r,y)=>{const{classes:F}=e,j={root:["main",r.rightPinnedWidth>0&&"main--hasPinnedRight",y==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller"]};return qn(j,ki,F)},Age=po("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,r)=>r.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function Ege(e){const r=yi(),y=Wa(),F=va(r,Qu),j=j0e(),Y=Mge(y,F,j.loadingOverlayVariant),D=B0e(),{getContainerProps:O,getScrollerProps:t,getContentProps:l,getRenderZoneProps:S,getScrollbarVerticalProps:i,getScrollbarHorizontalProps:C,getRows:w}=D,v=w();return Ce.jsxs(ege,Ge({className:Y.root},O(),{children:[Ce.jsx(ZI,{scrollDirection:"left"}),Ce.jsx(ZI,{scrollDirection:"right"}),Ce.jsxs(Age,Ge({className:Y.scroller},t(),{ownerState:y,children:[Ce.jsxs(nge,{children:[Ce.jsx(K0e,{}),Ce.jsx(y.slots.pinnedRows,{position:"top",virtualScroller:D})]}),Ce.jsx(X0e,Ge({},j)),Ce.jsx(uge,Ge({},l(),{children:Ce.jsxs(xge,Ge({},S(),{children:[v,Ce.jsx(y.slots.detailPanels,{virtualScroller:D})]}))})),Ce.jsx(pge,{rowsLength:v.length}),Ce.jsx(oge,{children:Ce.jsx(y.slots.pinnedRows,{position:"bottom",virtualScroller:D})})]})),F.hasScrollY&&Ce.jsx(QI,Ge({position:"vertical"},i())),F.hasScrollX&&Ce.jsx(QI,Ge({position:"horizontal"},C())),e.children]}))}function Pge(){var r;const e=Wa();return e.hideFooter?null:Ce.jsx(e.slots.footer,Ge({},(r=e.slotProps)==null?void 0:r.footer))}let UC;function Lge(){return UC===void 0&&document.createElement("div").focus({get preventScroll(){return UC=!0,!1}}),UC}function Ige(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function M2(e,r){return e.closest(`.${r}`)}function mv(e){return e.replace(/["\\]/g,"\\$&")}function Rge(e,r){return e.querySelector(`[role="columnheader"][data-field="${mv(r)}"]`)}function M_(e){return`.${Hr.row}[data-id="${mv(String(e))}"]`}function kge(e,r){return e.querySelector(M_(r))}function Dge(e,{id:r,field:y}){const F=M_(r),j=`.${Hr.cell}[data-field="${mv(y)}"]`,Y=`${F} ${j}`;return e.querySelector(Y)}function $b(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Oge(e){return e.getAttribute("data-field")}function Fge(e,r){return e.querySelector(`[data-field="${mv(r)}"]`)}function _ge(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function zge(e,r){return Array.from(e.querySelectorAll(`[data-fields*="|-${mv(r)}-|"]`)??[])}function Bge(e,r){var D;if(!M2(e,Hr.root))throw new Error("MUI X: The root element is not found.");const F=e.getAttribute("aria-colindex");if(!F)return[];const j=Number(F)-1,Y=[];return(D=r.virtualScrollerRef)!=null&&D.current?(P_(r).forEach(O=>{const t=O.getAttribute("data-id");if(!t)return;let l=j;const S=r.unstable_getCellColSpanInfo(t,j);S&&S.spannedByColSpan&&(l=S.leftVisibleCellIndex);const i=O.querySelector(`[data-colindex="${l}"]`);i&&Y.push(i)}),Y):[]}function qI(e,r){return e.rootElementRef.current.querySelector(`.${Hr[r]}`)}const A_=({api:e,colIndex:r,position:y,filterFn:F})=>{if(r===null)return[];const j=[];return P_(e).forEach(Y=>{Y.getAttribute("data-id")&&Y.querySelectorAll(`.${Hr[y==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(O=>{const t=Yy(O);t!==null&&F(t)&&j.push(O)})}),j};function Nge(e,r){const y=Yy(r);return A_({api:e,colIndex:y,position:"left",filterFn:F=>F>y})}function Uge(e,r){const y=Yy(r);return A_({api:e,colIndex:y,position:"right",filterFn:F=>F{var Y;if(!((Y=e.columnHeadersContainerRef)!=null&&Y.current))return[];if(r===null)return[];const j=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${Hr[y==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(D=>{const O=Yy(D);O!==null&&F(O)&&j.push(D)}),j};function Hge(e,r){const y=Yy(r);return E_({api:e,position:"left",colIndex:y,filterFn:F=>F>y})}function Vge(e,r){const y=Yy(r);return E_({api:e,position:"right",colIndex:y,filterFn:F=>F div > [data-field="${mv(r)}"][role="columnheader"]`)}function Gge(e,r){const y=e.virtualScrollerRef.current;return Array.from(y.querySelectorAll(`:scope > div > div > div > [data-field="${mv(r)}"][role="gridcell"]`))}function P_(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${Hr.row}`)}function Yy(e){const r=e.getAttribute("aria-colindex");return r?Number(r)-1:null}class R3 extends Error{}function Wge(e){const r=Oe.useCallback(i=>({field:i,colDef:e.current.getColumn(i)}),[e]),y=Oe.useCallback(i=>{const C=e.current.getRow(i);if(!C)throw new R3(`No row with id #${i} found`);return{id:i,columns:e.current.getAllColumns(),row:C}},[e]),F=Oe.useCallback((i,C)=>{const w=e.current.getColumn(C),v=e.current.getRow(i),m=e.current.getRowNode(i);if(!v||!m)throw new R3(`No row with id #${i} found`);const a=v[C],n=w!=null&&w.valueGetter?w.valueGetter(a,v,w,e):a,s=sf(e),o=e6(e),h={id:i,field:C,row:v,rowNode:m,colDef:w,cellMode:e.current.getCellMode(i,C),hasFocus:s!==null&&s.field===C&&s.id===i,tabIndex:o&&o.field===C&&o.id===i?0:-1,value:n,formattedValue:n,isEditable:!1};return w&&w.valueFormatter&&(h.formattedValue=w.valueFormatter(n,v,w,e)),h.isEditable=w&&e.current.isCellEditable(h),h},[e]),j=Oe.useCallback((i,C)=>{const w=e.current.getColumn(C),v=e.current.getRow(i);if(!v)throw new R3(`No row with id #${i} found`);return!w||!w.valueGetter?v[C]:w.valueGetter(v[w.field],v,w,e)},[e]),Y=Oe.useCallback((i,C)=>{const w=C.field;if(!C||!C.valueGetter)return i[w];const v=i[C.field];return C.valueGetter(v,i,C,e)},[e]),D=Oe.useCallback((i,C)=>{const w=Y(i,C);return!C||!C.valueFormatter?w:C.valueFormatter(w,i,C,e)},[e,Y]),O=Oe.useCallback(i=>e.current.rootElementRef.current?Rge(e.current.rootElementRef.current,i):null,[e]),t=Oe.useCallback(i=>e.current.rootElementRef.current?kge(e.current.rootElementRef.current,i):null,[e]),l=Oe.useCallback((i,C)=>e.current.rootElementRef.current?Dge(e.current.rootElementRef.current,{id:i,field:C}):null,[e]);Mi(e,{getCellValue:j,getCellParams:F,getCellElement:l,getRowValue:Y,getRowFormattedValue:D,getRowParams:y,getRowElement:t,getColumnHeaderParams:r,getColumnHeaderElement:O},"public")}const aS=(e,r,y,F,j)=>{const Y=r===y-1;return e===Ko.LEFT&&Y?!0:F?e===Ko.LEFT?!0:e===Ko.RIGHT?!Y:!Y||j:!1},iS=(e,r)=>e===Ko.RIGHT&&r===0,$ge=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Yge=["changeReason","unstable_updateValueOnRender"];let Hu=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const L_={[Hu.LEFT]:Ko.LEFT,[Hu.RIGHT]:Ko.RIGHT,[Hu.NONE]:void 0,[Hu.VIRTUAL]:void 0},eR={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Co.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Xge=e=>{const{align:r,showLeftBorder:y,showRightBorder:F,pinnedPosition:j,isEditable:Y,isSelected:D,isSelectionMode:O,classes:t}=e,l={root:["cell",`cell--text${Gn(r)}`,D&&"selected",Y&&"cell--editable",y&&"cell--withLeftBorder",F&&"cell--withRightBorder",j===Hu.LEFT&&"cell--pinnedLeft",j===Hu.RIGHT&&"cell--pinnedRight",O&&!Y&&"cell--selectionMode"]};return qn(l,ki,t)},Zge=Oe.forwardRef(function(r,y){var xe;const{column:F,rowId:j,editCellState:Y,align:D,colIndex:O,width:t,className:l,style:S,colSpan:i,disableDragEvents:C,isNotVisible:w,pinnedOffset:v,pinnedPosition:m,sectionIndex:a,sectionLength:n,gridHasFiller:s,onClick:o,onDoubleClick:h,onMouseDown:f,onMouseUp:u,onMouseOver:b,onKeyDown:p,onKeyUp:E,onDragEnter:g,onDragOver:c}=r,x=hn(r,$ge),A=yi(),M=Wa(),R=F.field,T=va(A,()=>{try{const Se=A.current.getCellParams(j,R);return Se.api=A.current,Se}catch(Ee){if(Ee instanceof R3)return eR;throw Ee}},FF),L=va(A,()=>A.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:j,field:R})),{cellMode:P,hasFocus:d,isEditable:k=!1,value:I}=T,N=F.type==="actions"&&((xe=F.getActions)==null?void 0:xe.call(F,A.current.getRowParams(j)).some(Ee=>!Ee.props.disabled)),B=(P==="view"||!k)&&!N?T.tabIndex:-1,{classes:G,getCellClassName:U}=M,W=[va(A,()=>A.current.unstable_applyPipeProcessors("cellClassName",[],{id:j,field:R}).filter(Boolean).join(" "))];F.cellClassName&&W.push(typeof F.cellClassName=="function"?F.cellClassName(T):F.cellClassName),F.display==="flex"&&W.push(Hr["cell--flex"]),U&&W.push(U(T));const V=T.formattedValue??I,$=Oe.useRef(null),Z=pi(y,$),q=Oe.useRef(null),ae=M.cellSelection??!1,ie=L_[m],fe=iS(ie,a),Q=aS(ie,a,n,M.showCellVerticalBorder,s),J={align:D,showLeftBorder:fe,showRightBorder:Q,isEditable:k,classes:M.classes,pinnedPosition:m,isSelected:L,isSelectionMode:ae},oe=Xge(J),K=Oe.useCallback(Ee=>Se=>{const ke=A.current.getCellParams(j,R||"");A.current.publishEvent(Ee,ke,Se),u&&u(Se)},[A,R,u,j]),ne=Oe.useCallback(Ee=>Se=>{const ke=A.current.getCellParams(j,R||"");A.current.publishEvent(Ee,ke,Se),f&&f(Se)},[A,R,f,j]),ce=Oe.useCallback((Ee,Se)=>ke=>{if(!A.current.getRow(j))return;const Te=A.current.getCellParams(j,R||"");A.current.publishEvent(Ee,Te,ke),Se&&Se(ke)},[A,R,j]),re=Oe.useMemo(()=>{if(w)return{padding:0,opacity:0,width:0,border:0};const Ee=Ge({"--width":`${t}px`},S);return m===Hu.LEFT&&(Ee.left=v),m===Hu.RIGHT&&(Ee.right=v),Ee},[t,w,S,v,m]);if(Oe.useEffect(()=>{if(!d||P===Co.Edit)return;const Ee=oo(A.current.rootElementRef.current);if($.current&&!$.current.contains(Ee.activeElement)){const Se=$.current.querySelector('[tabindex="0"]'),ke=q.current||Se||$.current;if(Lge())ke.focus({preventScroll:!0});else{const Te=A.current.getScrollPosition();ke.focus(),A.current.scroll(Te)}}},[d,P,A]),T===eR)return null;let ee=x.onFocus,de,le;if(Y===null&&F.renderCell&&(de=F.renderCell(T)),Y!==null&&F.renderEditCell){const Ee=A.current.getRowWithUpdatedValues(j,F.field),Se=hn(Y,Yge),ke=F.valueFormatter?F.valueFormatter(Y.value,Ee,F,A):T.formattedValue,Te=Ge({},T,{row:Ee,formattedValue:ke},Se);de=F.renderEditCell(Te),W.push(Hr["cell--editing"]),W.push(G==null?void 0:G["cell--editing"])}if(de===void 0){const Ee=V==null?void 0:V.toString();de=Ee,le=Ee}Oe.isValidElement(de)&&N&&(de=Oe.cloneElement(de,{focusElementRef:q}));const he=C?null:{onDragEnter:ce("cellDragEnter",g),onDragOver:ce("cellDragOver",c)};return Ce.jsx("div",Ge({ref:Z,className:Ln(l,W,oe.root),role:"gridcell","data-field":R,"data-colindex":O,"aria-colindex":O+1,"aria-colspan":i,style:re,title:le,tabIndex:B,onClick:ce("cellClick",o),onDoubleClick:ce("cellDoubleClick",h),onMouseOver:ce("cellMouseOver",b),onMouseDown:ne("cellMouseDown"),onMouseUp:K("cellMouseUp"),onKeyDown:ce("cellKeyDown",p),onKeyUp:ce("cellKeyUp",E)},he,x,{onFocus:ee,children:de}))}),Kge=e0(Zge),Jge=["label","icon","showInMenu","onClick"],Qge=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],ev=Oe.forwardRef((e,r)=>{var S;const y=Wa();if(!e.showInMenu){const{label:i,icon:C,onClick:w}=e,v=hn(e,Jge),m=a=>{w==null||w(a)};return Ce.jsx(y.slots.baseIconButton,Ge({ref:r,size:"small",role:"menuitem","aria-label":i},v,{onClick:m},(S=y.slotProps)==null?void 0:S.baseIconButton,{children:Oe.cloneElement(C,{fontSize:"small"})}))}const{label:F,icon:j,onClick:Y,closeMenuOnClick:D=!0,closeMenu:O}=e,t=hn(e,Qge),l=i=>{Y==null||Y(i),D&&(O==null||O())};return Ce.jsxs(uo,Ge({ref:r},t,{onClick:l,children:[j&&Ce.jsx(_p,{children:j}),F]}))}),qge=["field","type","align","width","height","empty","style","className"],tR="1.3em",eme="1.2em",rR=[40,80],tme={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},rme=e=>{const{align:r,classes:y,empty:F}=e,j={root:["cell","cellSkeleton",`cell--text${r?Gn(r):"Left"}`,F&&"cellEmpty"]};return qn(j,ki,y)},nme=Mve(12345);function ame(e){const{field:r,type:y,align:F,width:j,height:Y,empty:D=!1,style:O,className:t}=e,l=hn(e,qge),i={classes:Wa().classes,align:F,empty:D},C=rme(i),w=Oe.useMemo(()=>{if(y==="boolean"||y==="actions")return{variant:"circular",width:tR,height:tR};const[m,a]=y?tme[y]??rR:rR;return{variant:"text",width:`${Math.round(nme(m,a))}%`,height:eme}},[y]);return Ce.jsx("div",Ge({"data-field":r,className:Ln(C.root,t),style:Ge({height:Y,maxWidth:j,minWidth:j},O)},l,{children:!D&&Ce.jsx(sO,Ge({},w))}))}const ime=e0(ame);function ome(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?FW(Tc(e.palette.divider,1),.88):OW(Tc(e.palette.divider,1),.68)}const nR={[`.${Hr.columnSeparator}, .${Hr["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},aR={[`& .${Hr.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Hr.menuIcon}`]:{width:"auto",visibility:"visible"}},sme="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",lme=ln("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,r)=>[{[`&.${Hr.autoHeight}`]:r.autoHeight},{[`&.${Hr.aggregationColumnHeader}`]:r.aggregationColumnHeader},{[`&.${Hr["aggregationColumnHeader--alignLeft"]}`]:r["aggregationColumnHeader--alignLeft"]},{[`&.${Hr["aggregationColumnHeader--alignCenter"]}`]:r["aggregationColumnHeader--alignCenter"]},{[`&.${Hr["aggregationColumnHeader--alignRight"]}`]:r["aggregationColumnHeader--alignRight"]},{[`&.${Hr.aggregationColumnHeaderLabel}`]:r.aggregationColumnHeaderLabel},{[`&.${Hr["root--disableUserSelection"]} .${Hr.cell}`]:r["root--disableUserSelection"]},{[`&.${Hr.autosizing}`]:r.autosizing},{[`& .${Hr.editBooleanCell}`]:r.editBooleanCell},{[`& .${Hr.cell}`]:r.cell},{[`& .${Hr["cell--editing"]}`]:r["cell--editing"]},{[`& .${Hr["cell--textCenter"]}`]:r["cell--textCenter"]},{[`& .${Hr["cell--textLeft"]}`]:r["cell--textLeft"]},{[`& .${Hr["cell--textRight"]}`]:r["cell--textRight"]},{[`& .${Hr["cell--rangeTop"]}`]:r["cell--rangeTop"]},{[`& .${Hr["cell--rangeBottom"]}`]:r["cell--rangeBottom"]},{[`& .${Hr["cell--rangeLeft"]}`]:r["cell--rangeLeft"]},{[`& .${Hr["cell--rangeRight"]}`]:r["cell--rangeRight"]},{[`& .${Hr["cell--withRightBorder"]}`]:r["cell--withRightBorder"]},{[`& .${Hr.cellCheckbox}`]:r.cellCheckbox},{[`& .${Hr.cellSkeleton}`]:r.cellSkeleton},{[`& .${Hr.checkboxInput}`]:r.checkboxInput},{[`& .${Hr["columnHeader--alignCenter"]}`]:r["columnHeader--alignCenter"]},{[`& .${Hr["columnHeader--alignLeft"]}`]:r["columnHeader--alignLeft"]},{[`& .${Hr["columnHeader--alignRight"]}`]:r["columnHeader--alignRight"]},{[`& .${Hr["columnHeader--dragging"]}`]:r["columnHeader--dragging"]},{[`& .${Hr["columnHeader--moving"]}`]:r["columnHeader--moving"]},{[`& .${Hr["columnHeader--numeric"]}`]:r["columnHeader--numeric"]},{[`& .${Hr["columnHeader--sortable"]}`]:r["columnHeader--sortable"]},{[`& .${Hr["columnHeader--sorted"]}`]:r["columnHeader--sorted"]},{[`& .${Hr["columnHeader--withRightBorder"]}`]:r["columnHeader--withRightBorder"]},{[`& .${Hr.columnHeader}`]:r.columnHeader},{[`& .${Hr.headerFilterRow}`]:r.headerFilterRow},{[`& .${Hr.columnHeaderCheckbox}`]:r.columnHeaderCheckbox},{[`& .${Hr.columnHeaderDraggableContainer}`]:r.columnHeaderDraggableContainer},{[`& .${Hr.columnHeaderTitleContainer}`]:r.columnHeaderTitleContainer},{[`& .${Hr["columnSeparator--resizable"]}`]:r["columnSeparator--resizable"]},{[`& .${Hr["columnSeparator--resizing"]}`]:r["columnSeparator--resizing"]},{[`& .${Hr.columnSeparator}`]:r.columnSeparator},{[`& .${Hr.filterIcon}`]:r.filterIcon},{[`& .${Hr.iconSeparator}`]:r.iconSeparator},{[`& .${Hr.menuIcon}`]:r.menuIcon},{[`& .${Hr.menuIconButton}`]:r.menuIconButton},{[`& .${Hr.menuOpen}`]:r.menuOpen},{[`& .${Hr.menuList}`]:r.menuList},{[`& .${Hr["row--editable"]}`]:r["row--editable"]},{[`& .${Hr["row--editing"]}`]:r["row--editing"]},{[`& .${Hr["row--dragging"]}`]:r["row--dragging"]},{[`& .${Hr.row}`]:r.row},{[`& .${Hr.rowReorderCellPlaceholder}`]:r.rowReorderCellPlaceholder},{[`& .${Hr.rowReorderCell}`]:r.rowReorderCell},{[`& .${Hr["rowReorderCell--draggable"]}`]:r["rowReorderCell--draggable"]},{[`& .${Hr.sortIcon}`]:r.sortIcon},{[`& .${Hr.withBorderColor}`]:r.withBorderColor},{[`& .${Hr.treeDataGroupingCell}`]:r.treeDataGroupingCell},{[`& .${Hr.treeDataGroupingCellToggle}`]:r.treeDataGroupingCellToggle},{[`& .${Hr.treeDataGroupingCellLoadingContainer}`]:r.treeDataGroupingCellLoadingContainer},{[`& .${Hr.detailPanelToggleCell}`]:r.detailPanelToggleCell},{[`& .${Hr["detailPanelToggleCell--expanded"]}`]:r["detailPanelToggleCell--expanded"]},r.root]})(({theme:e})=>{var s,o;const r=vh(),y=va(r,Qu),F=ome(e),j=e.shape.borderRadius,Y=e.vars?e.vars.palette.background.default:((s=e.mixins.MuiDataGrid)==null?void 0:s.containerBackground)??e.palette.background.default,D=((o=e.mixins.MuiDataGrid)==null?void 0:o.pinnedBackground)??Y,O=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Tc(e.palette.background.default,e.palette.action.disabledOpacity),t=(e.vars||e).palette.action.hoverOpacity,l=(e.vars||e).palette.action.hover,S=(e.vars||e).palette.action.selectedOpacity,i=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${S})`:Tc(e.palette.primary.main,S),C=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( +return result$$;`.replaceAll("$$",String(RI)));return RI+=1,(O,t)=>Y(j,O,t)},LF=e=>e.quickFilterExcludeHiddenColumns??!0,zfe=(e,r)=>{var O;const x=((O=e.quickFilterValues)==null?void 0:O.filter(Boolean))??[];if(x.length===0)return null;const F=LF(e)?Ob(r):tv(r),j=[],{ignoreDiacritics:Y}=r.current.rootProps,D=EF(r);return F.forEach(t=>{const l=r.current.getColumn(t),S=l==null?void 0:l.getApplyQuickFilterFn;S&&j.push({column:l,appliers:x.map(i=>{const C=Y?nb(i):i;return{fn:S(C,l,D)}})})}),function(l,S){const i={};e:for(let C=0;C{const F=_fe(e,r,x),j=zfe(e,r);return function(D,O,t){t.passingFilterItems=(F==null?void 0:F(D,O))??null,t.passingQuickFilterValues=(j==null?void 0:j(D,O))??null}},kI=e=>e!=null,Nfe=(e,r,x)=>(e.cleanedFilterItems||(e.cleanedFilterItems=x.filter(F=>PF(F,r)!==null)),e.cleanedFilterItems),Ufe=(e,r,x,F,j)=>{const Y=Nfe(j,F,x.items),D=e.filter(kI),O=r.filter(kI);if(D.length>0){const t=S=>D.some(i=>i[S.id]);if((x.logicOperator??rb().logicOperator)===yu.And){if(!Y.every(t))return!1}else if(!Y.some(t))return!1}if(O.length>0&&x.quickFilterValues!=null){const t=S=>O.some(i=>i[S]);if((x.quickFilterLogicOperator??rb().quickFilterLogicOperator)===yu.And){if(!x.quickFilterValues.every(t))return!1}else if(!x.quickFilterValues.some(t))return!1}return!0},Hfe=e=>{if(!e)return null;const r=new RegExp(w3(e),"i");return(x,F,j,Y)=>{let D=Y.current.getRowFormattedValue(F,j);return Y.current.ignoreDiacritics&&(D=nb(D)),D!=null?r.test(D.toString()):!1}},Vfe=(e=!1)=>[{value:"contains",getApplyFilterFn:r=>{if(!r.value)return null;const x=e?r.value:r.value.trim(),F=new RegExp(w3(x),"i");return j=>j!=null?F.test(String(j)):!1},InputComponent:ah},{value:"equals",getApplyFilterFn:r=>{if(!r.value)return null;const x=e?r.value:r.value.trim(),F=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return j=>j!=null?F.compare(x,j.toString())===0:!1},InputComponent:ah},{value:"startsWith",getApplyFilterFn:r=>{if(!r.value)return null;const x=e?r.value:r.value.trim(),F=new RegExp(`^${w3(x)}.*$`,"i");return j=>j!=null?F.test(j.toString()):!1},InputComponent:ah},{value:"endsWith",getApplyFilterFn:r=>{if(!r.value)return null;const x=e?r.value:r.value.trim(),F=new RegExp(`.*${w3(x)}$`,"i");return j=>j!=null?F.test(j.toString()):!1},InputComponent:ah},{value:"isEmpty",getApplyFilterFn:()=>r=>r===""||r==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>r=>r!==""&&r!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:r=>{if(!Array.isArray(r.value)||r.value.length===0)return null;const x=e?r.value:r.value.map(j=>j.trim()),F=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return j=>j!=null?x.some(Y=>F.compare(Y,j.toString()||"")===0):!1},InputComponent:MF}],Td={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Pfe,type:"string",align:"left",filterOperators:Vfe(),renderEditCell:Tfe,getApplyQuickFilterFn:Hfe},jfe=["open","target","onClose","children","position","className","onExited"],Gfe=e=>{const{classes:r}=e;return qn({root:["menu"]},ki,r)},Wfe=ln(Xp,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,r)=>r.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Hr.menuList}`]:{outline:0}})),$fe={"bottom-start":"top left","bottom-end":"top right"};function UT(e){var m;const{open:r,target:x,onClose:F,children:j,position:Y,className:D,onExited:O}=e,t=hn(e,jfe),l=mi(),S=Wa(),i=Gfe(S),C=Oe.useRef(null);Gi(()=>{var a,n;r?C.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((n=(a=C.current)==null?void 0:a.focus)==null||n.call(a),C.current=null)},[r]),Oe.useEffect(()=>{const a=r?"menuOpen":"menuClose";l.current.publishEvent(a,{target:x})},[l,r,x]);const w=a=>n=>{a&&a(),O&&O(n)},v=a=>{a.target&&(x===a.target||x!=null&&x.contains(a.target))||F(a)};return Ce.jsx(Wfe,Ge({as:S.slots.basePopper,className:Ln(D,i.root),ownerState:S,open:r,anchorEl:x,transition:!0,placement:Y},t,(m=S.slotProps)==null?void 0:m.basePopper,{children:({TransitionProps:a,placement:n})=>Ce.jsx(O9,{onClickAway:v,mouseEvent:"onMouseDown",children:Ce.jsx(Ey,Ge({},a,{style:{transformOrigin:$fe[n]},onExited:w(a==null?void 0:a.onExited),children:Ce.jsx(Ri,{children:j})}))})}))}const Yfe=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Xfe=e=>typeof e.getActions=="function";function Zfe(e){var R;const{colDef:r,id:x,hasFocus:F,tabIndex:j,position:Y="bottom-end",focusElementRef:D}=e,O=hn(e,Yfe),[t,l]=Oe.useState(-1),[S,i]=Oe.useState(!1),C=mi(),w=Oe.useRef(null),v=Oe.useRef(null),m=Oe.useRef(!1),a=Oe.useRef({}),n=nu(),s=Ui(),o=Ui(),h=Wa();if(!Xfe(r))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const f=r.getActions(C.current.getRowParams(x)),u=f.filter(T=>!T.props.showInMenu),b=f.filter(T=>T.props.showInMenu),p=u.length+(b.length?1:0);Oe.useLayoutEffect(()=>{F||Object.entries(a.current).forEach(([T,L])=>{L==null||L.stop({},()=>{delete a.current[T]})})},[F]),Oe.useEffect(()=>{if(t<0||!w.current||t>=w.current.children.length)return;w.current.children[t].focus({preventScroll:!0})},[t]),Oe.useEffect(()=>{F||(l(-1),m.current=!1)},[F]),Oe.useImperativeHandle(D,()=>({focus(){if(!m.current){const T=f.findIndex(L=>!L.props.disabled);l(T)}}}),[f]),Oe.useEffect(()=>{t>=p&&l(p-1)},[t,p]);const E=()=>{i(!0),l(p-1),m.current=!0},g=()=>{i(!1)},c=T=>L=>{a.current[T]=L},y=(T,L)=>P=>{l(T),m.current=!0,L&&L(P)},A=T=>{if(p<=1)return;const L=(d,k)=>{var B;if(d<0||d>f.length)return d;const I=n.direction==="rtl"?-1:1,N=(k==="left"?-1:1)*I;return(B=f[d+N])!=null&&B.props.disabled?L(d+N,k):d+N};let P=t;T.key==="ArrowRight"?P=L(t,"right"):T.key==="ArrowLeft"&&(P=L(t,"left")),!(P<0||P>=p)&&P!==t&&(T.preventDefault(),T.stopPropagation(),l(P))},M=T=>{T.key==="Tab"&&T.preventDefault(),["Tab","Escape"].includes(T.key)&&g()};return Ce.jsxs("div",Ge({role:"menu",ref:w,tabIndex:-1,className:Hr.actionsCell,onKeyDown:A},O,{children:[u.map((T,L)=>Oe.cloneElement(T,{key:L,touchRippleRef:c(L),onClick:y(L,T.props.onClick),tabIndex:t===L?j:-1})),b.length>0&&o&&Ce.jsx(h.slots.baseIconButton,Ge({ref:v,id:o,"aria-label":C.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":S,"aria-controls":S?s:void 0,role:"menuitem",size:"small",onClick:E,touchRippleRef:c(o),tabIndex:t===u.length?j:-1},(R=h.slotProps)==null?void 0:R.baseIconButton,{children:Ce.jsx(h.slots.moreActionsIcon,{fontSize:"small"})})),b.length>0&&Ce.jsx(UT,{open:S,target:v.current,position:Y,onClose:g,children:Ce.jsx(Lb,{id:s,className:Hr.menuList,onKeyDown:M,"aria-labelledby":o,variant:"menu",autoFocusItem:!0,children:b.map((T,L)=>Oe.cloneElement(T,{key:L,closeMenu:g}))})})]}))}const Kfe=e=>Ce.jsx(Zfe,Ge({},e)),HT="actions",Jfe=Ge({},Td,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Kfe,getApplyQuickFilterFn:void 0}),Of=e=>e.rows,_b=pi(Of,e=>e.totalRowCount),Qfe=pi(Of,e=>e.loading),qfe=pi(Of,e=>e.totalTopLevelRowCount),Ep=pi(Of,e=>e.dataRowIdToModelLookup),h2=pi(Of,e=>e.dataRowIdToIdLookup),mf=pi(Of,e=>e.tree),ede=pi(Of,e=>e.groupsToFetch),tde=pi(Of,e=>e.groupingName),DI=pi(Of,e=>e.treeDepths),VT=ko(Of,e=>{const r=Object.entries(e.treeDepths);return r.length===0?1:r.filter(([,x])=>x>0).map(([x])=>Number(x)).sort((x,F)=>F-x)[0]+1}),Qw=pi(Of,e=>e.dataRowIds),rde=pi(Of,e=>e==null?void 0:e.additionalRowGroups),qp=ko(rde,e=>{var x,F;const r=e==null?void 0:e.pinnedRows;return{bottom:((x=r==null?void 0:r.bottom)==null?void 0:x.map(j=>({id:j.id,model:j.model??{}})))??[],top:((F=r==null?void 0:r.top)==null?void 0:F.map(j=>({id:j.id,model:j.model??{}})))??[]}}),nde=pi(qp,e=>{var r,x;return(((r=e==null?void 0:e.top)==null?void 0:r.length)||0)+(((x=e==null?void 0:e.bottom)==null?void 0:x.length)||0)}),xu="auto-generated-group-node-root",Km=Symbol("mui.id_autogenerated"),ade=()=>({type:"group",id:xu,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function ide(e,r,x="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",x,JSON.stringify(r)].join(` +`))}const jT=(e,r,x)=>{const F=r?r(e):e.id;return ide(F,e,x),F},T3=({rows:e,getRowId:r,loading:x,rowCount:F})=>{const j={type:"full",rows:[]},Y={},D={};for(let O=0;O{const x=e[xu];return Math.max(r,x.children.length+(x.footerId==null?0:1))},RF=({apiRef:e,rowCountProp:r=0,loadingProp:x,previousTree:F,previousTreeDepths:j,previousGroupsToFetch:Y})=>{const D=e.current.caches.rows,{tree:O,treeDepths:t,dataRowIds:l,groupingName:S,groupsToFetch:i=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:F,previousTreeDepths:j,updates:D.updates,dataRowIdToIdLookup:D.dataRowIdToIdLookup,dataRowIdToModelLookup:D.dataRowIdToModelLookup,previousGroupsToFetch:Y}),C=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:O,treeDepths:t,dataRowIdToIdLookup:D.dataRowIdToIdLookup,dataRowIds:l,dataRowIdToModelLookup:D.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},Ge({},C,{totalRowCount:Math.max(r,C.dataRowIds.length),totalTopLevelRowCount:IF({tree:C.tree,rowCountProp:r}),groupingName:S,loading:x,groupsToFetch:i})},Iy=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,j5=(e,r,x)=>{const F=e[r];if(F.type!=="group")return[];const j=[];for(let Y=0;Y{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const j=new Map;x.forEach(S=>{const i=jT(S,r,"A row was provided without id when calling updateRows():");j.has(i)?j.set(i,Ge({},j.get(i),S)):j.set(i,S)});const Y={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:Ge({},e.updates.idToActionLookup),groupKeys:F},D=Ge({},e.dataRowIdToModelLookup),O=Ge({},e.dataRowIdToIdLookup),t={insert:{},modify:{},remove:{}};j.forEach((S,i)=>{const C=Y.idToActionLookup[i];if(S._action==="delete"){if(C==="remove"||!D[i])return;C!=null&&(t[C][i]=!0),Y.actions.remove.push(i),delete D[i],delete O[i];return}const w=D[i];if(w){C==="remove"?(t.remove[i]=!0,Y.actions.modify.push(i)):C==null&&Y.actions.modify.push(i),D[i]=Ge({},w,S);return}C==="remove"?(t.remove[i]=!0,Y.actions.insert.push(i)):C==null&&Y.actions.insert.push(i),D[i]=S,O[i]=i});const l=Object.keys(t);for(let S=0;S0&&(Y.actions[i]=Y.actions[i].filter(w=>!C[w]))}return{dataRowIdToModelLookup:D,dataRowIdToIdLookup:O,updates:Y,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function ode(e){var j,Y;const r=qp(e),x=((j=r==null?void 0:r.top)==null?void 0:j.reduce((D,O)=>(D+=e.current.unstable_getRowHeight(O.id),D),0))||0,F=((Y=r==null?void 0:r.bottom)==null?void 0:Y.reduce((D,O)=>(D+=e.current.unstable_getRowHeight(O.id),D),0))||0;return{top:x,bottom:F}}function kF(e){return`var(--DataGrid-overlayHeight, ${2*qu(e.current.state).rowHeight}px)`}function FI(e,r,x){const F=[];return r.forEach(j=>{const Y=jT(j,x,"A row was provided without id when calling updateRows():"),D=e.current.getRowNode(Y);if((D==null?void 0:D.type)==="pinnedRow"){const O=e.current.caches.pinnedRows,t=O.idLookup[Y];t&&(O.idLookup[Y]=Ge({},t,j))}else F.push(j)}),F}const sde=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],lde=e=>{const{classes:r}=e;return qn({root:["booleanCell"]},ki,r)};function ude(e){const{value:r}=e,x=hn(e,sde),F=mi(),j=Wa(),Y={classes:j.classes},D=lde(Y),O=Oe.useMemo(()=>r?j.slots.booleanCellTrueIcon:j.slots.booleanCellFalseIcon,[j.slots.booleanCellFalseIcon,j.slots.booleanCellTrueIcon,r]);return Ce.jsx(O,Ge({fontSize:"small",className:D.root,titleAccess:F.current.getLocaleText(r?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!r},x))}const cde=Oe.memo(ude),fde=e=>e.field!=="__row_group_by_columns_group__"&&Iy(e.rowNode)?"":Ce.jsx(cde,Ge({},e)),dde=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],hde=e=>{const{classes:r}=e;return qn({root:["editBooleanCell"]},ki,r)};function vde(e){var n;const{id:r,value:x,field:F,className:j,hasFocus:Y,onValueChange:D}=e,O=hn(e,dde),t=mi(),l=Oe.useRef(null),S=Ui(),[i,C]=Oe.useState(x),w=Wa(),v={classes:w.classes},m=hde(v),a=Oe.useCallback(async s=>{const o=s.target.checked;D&&await D(s,o),C(o),await t.current.setEditCellValue({id:r,field:F,value:o},s)},[t,F,r,D]);return Oe.useEffect(()=>{C(x)},[x]),Gi(()=>{Y&&l.current.focus()},[Y]),Ce.jsx("label",Ge({htmlFor:S,className:Ln(m.root,j)},O,{children:Ce.jsx(w.slots.baseCheckbox,Ge({id:S,inputRef:l,checked:!!i,onChange:a,size:"small"},(n=w.slotProps)==null?void 0:n.baseCheckbox))}))}const pde=e=>Ce.jsx(vde,Ge({},e)),gde=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],mde=ln("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function yde(e){var h,f,u;const{item:r,applyValue:x,apiRef:F,focusElementRef:j,clearButton:Y,tabIndex:D,label:O,variant:t="standard"}=e,l=hn(e,gde),[S,i]=Oe.useState(r.value||""),C=Wa(),w=Ui(),v=Ui(),m=((h=C.slotProps)==null?void 0:h.baseSelect)||{},a=m.native??!1,n=((f=C.slotProps)==null?void 0:f.baseSelectOption)||{},s=Oe.useCallback(b=>{const p=b.target.value;i(p),x(Ge({},r,{value:p}))},[x,r]);Oe.useEffect(()=>{i(r.value||"")},[r.value]);const o=O??F.current.getLocaleText("filterPanelInputLabel");return Ce.jsxs(mde,{children:[Ce.jsxs(C.slots.baseFormControl,{fullWidth:!0,children:[Ce.jsx(C.slots.baseInputLabel,Ge({},(u=C.slotProps)==null?void 0:u.baseInputLabel,{id:w,shrink:!0,variant:t,children:o})),Ce.jsxs(C.slots.baseSelect,Ge({labelId:w,id:v,label:o,value:S,onChange:s,variant:t,notched:t==="outlined"?!0:void 0,native:a,displayEmpty:!0,inputProps:{ref:j,tabIndex:D}},l,m,{children:[Ce.jsx(C.slots.baseSelectOption,Ge({},n,{native:a,value:"",children:F.current.getLocaleText("filterValueAny")})),Ce.jsx(C.slots.baseSelectOption,Ge({},n,{native:a,value:"true",children:F.current.getLocaleText("filterValueTrue")})),Ce.jsx(C.slots.baseSelectOption,Ge({},n,{native:a,value:"false",children:F.current.getLocaleText("filterValueFalse")}))]}))]}),Y]})}const xde=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const r=String(e.value)==="true";return x=>!!x===r},InputComponent:yde}],bde=(e,r,x,F)=>e?F.current.getLocaleText("booleanCellTrueLabel"):F.current.getLocaleText("booleanCellFalseLabel"),wde=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},DF=Ge({},Td,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:fde,renderEditCell:pde,sortComparator:wF,valueFormatter:bde,filterOperators:xde(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>wde(e)}),Tde=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Sde=e=>{const{classes:r}=e;return qn({root:["checkboxInput"]},ki,r)},Cde=Oe.forwardRef(function(r,x){var f;const{field:F,id:j,value:Y,rowNode:D,hasFocus:O,tabIndex:t}=r,l=hn(r,Tde),S=mi(),i=Wa(),C={classes:i.classes},w=Sde(C),v=Oe.useRef(null),m=Oe.useRef(null),a=vi(v,x),n=u=>{const b={value:u.target.checked,id:j};S.current.publishEvent("rowSelectionCheckboxChange",b,u)};Oe.useLayoutEffect(()=>{if(t===0){const u=S.current.getCellElement(j,F);u&&(u.tabIndex=-1)}},[S,t,j,F]),Oe.useEffect(()=>{var u;if(O){const b=(u=v.current)==null?void 0:u.querySelector("input");b==null||b.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[O]);const s=Oe.useCallback(u=>{u.key===" "&&u.stopPropagation()},[]);if(D.type==="footer"||D.type==="pinnedRow")return null;const o=S.current.isRowSelectable(j),h=S.current.getLocaleText(Y?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return Ce.jsx(i.slots.baseCheckbox,Ge({ref:a,tabIndex:t,checked:Y,onChange:n,className:w.root,inputProps:{"aria-label":h},onKeyDown:s,disabled:!o,touchRippleRef:m},(f=i.slotProps)==null?void 0:f.baseCheckbox,l))}),Mde=Cde;function G5(e){return e.signature===bd.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const GT=e=>e.focus,uf=pi(GT,e=>e.cell),Ade=pi(GT,e=>e.columnHeader);pi(GT,e=>e.columnHeaderFilter);const v2=pi(GT,e=>e.columnGroupHeader),WT=e=>e.tabIndex,W5=pi(WT,e=>e.cell),OF=pi(WT,e=>e.columnHeader);pi(WT,e=>e.columnHeaderFilter);const Ede=pi(WT,e=>e.columnGroupHeader),cf=e=>e.rowSelection,Pde=pi(cf,e=>e.length),Lde=ko(cf,Ep,(e,r)=>new Map(e.map(x=>[x,r[x]]))),p2=ko(cf,e=>e.reduce((r,x)=>(r[x]=x,r),{})),FF=e=>e.sorting,$5=pi(FF,e=>e.sortedRows),Y5=ko($5,Ep,mf,(e,r,x)=>e.reduce((F,j)=>{const Y=r[j];Y&&F.push({id:j,model:Y});const D=x[j];return D&&Iy(D)&&F.push({id:j,model:{[Km]:j}}),F},[])),ff=pi(FF,e=>e.sortModel),Ide=ko(ff,e=>e.reduce((x,F,j)=>(x[F.field]={sortDirection:F.sort,sortIndex:e.length>1?j+1:void 0},x),{})),X5=e=>e.filter,cl=pi(X5,e=>e.filterModel),Rde=pi(cl,e=>e.quickFilterValues),kde=e=>e.visibleRowsLookup,_F=pi(X5,e=>e.filteredRowsLookup);pi(X5,e=>e.filteredDescendantCountLookup);const e0=ko(kde,Y5,(e,r)=>r.filter(x=>e[x.id]!==!1)),Cx=ko(e0,e=>e.map(r=>r.id)),zF=ko(_F,Y5,(e,r)=>r.filter(x=>e[x.id]!==!1)),Dde=ko(zF,e=>e.map(r=>r.id)),BF=ko(e0,mf,VT,(e,r,x)=>x<2?e:e.filter(F=>{var j;return((j=r[F.id])==null?void 0:j.depth)===0})),NF=pi(e0,e=>e.length),Z5=pi(BF,e=>e.length),Ode=pi(zF,e=>e.length);pi(Ode,Z5,(e,r)=>e-r);const UF=ko(cl,gv,(e,r)=>{var x;return(x=e.items)==null?void 0:x.filter(F=>{var D,O;if(!F.field)return!1;const j=r[F.field];if(!(j!=null&&j.filterOperators)||((D=j==null?void 0:j.filterOperators)==null?void 0:D.length)===0)return!1;const Y=j.filterOperators.find(t=>t.value===F.operator);return Y?!Y.InputComponent||F.value!=null&&((O=F.value)==null?void 0:O.toString())!=="":!1})}),Fde=ko(UF,e=>e.reduce((x,F)=>(x[F.field]?x[F.field].push(F):x[F.field]=[F],x),{}));function Mi(e,r,x){const F=Oe.useRef(!0);Oe.useEffect(()=>{F.current=!1,e.current.register(x,r)},[e,x,r]),F.current&&e.current.register(x,r)}function al(e,r){const x=Oe.useRef(null);if(x.current)return x.current;const F=e.current.getLogger(r);return x.current=F,F}const HF=(e,r,x,F,j)=>{const Y=al(e,"useNativeEventListener"),[D,O]=Oe.useState(!1),t=Oe.useRef(F),l=SF(r)?r():(r==null?void 0:r.current)??null,S=Oe.useCallback(i=>t.current&&t.current(i),[]);Oe.useEffect(()=>{t.current=F},[F]),Oe.useEffect(()=>{if(l&&x&&!D){Y.debug(`Binding native ${x} event`),l.addEventListener(x,S,j),O(!0);const i=()=>{Y.debug(`Clearing native ${x} event`),l.removeEventListener(x,S,j)};e.current.subscribeEvent("unmount",i)}},[l,S,x,D,Y,j,e])},zb=e=>{const r=Oe.useRef(!0);r.current&&(r.current=!1,e())},_de=()=>{},zde=(e,r)=>{const x=Oe.useRef(!1);Gi(()=>x.current||!e?_de:(x.current=!0,r()),[x.current||e])},Bde=100,Nde=e=>e?0:100,VF=(e,r,x)=>r>0&&e>0?Math.ceil(e/r):e===-1?x+2:0,jF=e=>({page:0,pageSize:e?0:100}),Ude=(e,r=0)=>r===0?e:Math.max(Math.min(e,r-1),0),GF=(e,r)=>{if(r===bd.DataGrid&&e>Bde)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`))},$T=e=>e.pagination,mu=pi($T,e=>e.paginationModel),Fm=pi($T,e=>e.rowCount),rx=pi($T,e=>e.meta),Hde=pi(mu,e=>e.page),Vde=pi(mu,e=>e.pageSize),WF=pi(mu,Fm,(e,r)=>VF(r,e.pageSize,e.page)),K5=ko(mu,mf,VT,e0,BF,(e,r,x,F,j)=>{var w;const Y=j.length,D=Math.min(e.pageSize*e.page,Y-1),O=Math.min(D+e.pageSize-1,Y-1);if(D===-1||O===-1)return null;if(x<2)return{firstRowIndex:D,lastRowIndex:O};const t=j[D],l=O-D+1,S=F.findIndex(v=>v.id===t.id);let i=S,C=0;for(;i0)&&(i+=1),m===0&&(C+=1))}return{firstRowIndex:S,lastRowIndex:i-1}}),jde=ko(e0,K5,(e,r)=>r?e.slice(r.firstRowIndex,r.lastRowIndex+1):[]),$F=ko(Cx,K5,(e,r)=>r?e.slice(r.firstRowIndex,r.lastRowIndex+1):[]),Gde=["field","colDef"],Wde=e=>{const{classes:r}=e;return qn({root:["checkboxInput"]},ki,r)},$de=Oe.forwardRef(function(r,x){var b;const F=hn(r,Gde),[,j]=Oe.useState(!1),Y=mi(),D=Wa(),O={classes:D.classes},t=Wde(O),l=va(Y,OF),S=va(Y,cf),i=va(Y,Cx),C=va(Y,$F),w=Oe.useMemo(()=>typeof D.isRowSelectable!="function"?S:S.filter(p=>Y.current.getRow(p)?D.isRowSelectable(Y.current.getRowParams(p)):!1),[Y,D.isRowSelectable,S]),v=Oe.useMemo(()=>(!D.pagination||!D.checkboxSelectionVisibleOnly?i:C).reduce((E,g)=>(E[g]=!0,E),{}),[D.pagination,D.checkboxSelectionVisibleOnly,C,i]),m=Oe.useMemo(()=>w.filter(p=>v[p]).length,[w,v]),a=m>0&&m0,s=p=>{const E={value:p.target.checked};Y.current.publishEvent("headerSelectionCheckboxChange",E)},o=l!==null&&l.field===r.field?0:-1;Oe.useLayoutEffect(()=>{const p=Y.current.getColumnHeaderElement(r.field);o===0&&p&&(p.tabIndex=-1)},[o,Y,r.field]);const h=Oe.useCallback(p=>{p.key===" "&&Y.current.publishEvent("headerSelectionCheckboxChange",{value:!n})},[Y,n]),f=Oe.useCallback(()=>{j(p=>!p)},[]);Oe.useEffect(()=>Y.current.subscribeEvent("rowSelectionChange",f),[Y,f]);const u=Y.current.getLocaleText(n?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return Ce.jsx(D.slots.baseCheckbox,Ge({ref:x,indeterminate:a,checked:n,onChange:s,className:t.root,inputProps:{"aria-label":u},tabIndex:o,onKeyDown:h,disabled:!G5(D)},(b=D.slotProps)==null?void 0:b.baseCheckbox,F))}),sp="__check__",$y=Ge({},DF,{type:"custom",field:sp,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,r,x,F)=>{const j=p2(F),Y=F.current.getRowId(r);return j[Y]!==void 0},renderHeader:e=>Ce.jsx($de,Ge({},e)),renderCell:e=>Ce.jsx(Mde,Ge({},e))}),Yde=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function _I(e,r){if(e==null)return"";const x=new Date(e);return Number.isNaN(x.getTime())?"":r==="date"?x.toISOString().substring(0,10):r==="datetime-local"?(x.setMinutes(x.getMinutes()-x.getTimezoneOffset()),x.toISOString().substring(0,19)):x.toISOString().substring(0,10)}function sm(e){var o;const{item:r,applyValue:x,type:F,apiRef:j,focusElementRef:Y,InputProps:D,clearButton:O,tabIndex:t,disabled:l}=e,S=hn(e,Yde),i=Cc(),[C,w]=Oe.useState(()=>_I(r.value,F)),[v,m]=Oe.useState(!1),a=Ui(),n=Wa(),s=Oe.useCallback(h=>{i.clear();const f=h.target.value;w(f),m(!0),i.start(n.filterDebounceMs,()=>{const u=new Date(f);x(Ge({},r,{value:Number.isNaN(u.getTime())?void 0:u})),m(!1)})},[x,r,n.filterDebounceMs,i]);return Oe.useEffect(()=>{const h=_I(r.value,F);w(h)},[r.value,F]),Ce.jsx(n.slots.baseTextField,Ge({fullWidth:!0,id:a,label:j.current.getLocaleText("filterPanelInputLabel"),placeholder:j.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:s,variant:"standard",type:F||"text",InputLabelProps:{shrink:!0},inputRef:Y,InputProps:Ge({},v||O?{endAdornment:v?Ce.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):O}:{},{disabled:l},D,{inputProps:Ge({max:F==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:t},D==null?void 0:D.inputProps)})},S,(o=n.slotProps)==null?void 0:o.baseTextField))}function lm(e,r,x,F){if(!e.value)return null;const j=new Date(e.value);x?j.setSeconds(0,0):(j.setMinutes(j.getMinutes()+j.getTimezoneOffset()),j.setHours(0,0,0,0));const Y=j.getTime();return D=>{if(!D)return!1;if(F)return r(D.getTime(),Y);const O=new Date(D);return x?O.setSeconds(0,0):O.setHours(0,0,0,0),r(O.getTime(),Y)}}const YF=e=>[{value:"is",getApplyFilterFn:r=>lm(r,(x,F)=>x===F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:r=>lm(r,(x,F)=>x!==F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:r=>lm(r,(x,F)=>x>F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:r=>lm(r,(x,F)=>x>=F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:r=>lm(r,(x,F)=>xlm(r,(x,F)=>x<=F,e),InputComponent:sm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>r=>r==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>r=>r!=null,requiresFilterValue:!1}],Xde=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Zde=ln(Vy)({fontSize:"inherit"}),Kde=e=>{const{classes:r}=e;return qn({root:["editInputCell"]},ki,r)};function Jde(e){const{id:r,value:x,field:F,colDef:j,hasFocus:Y,inputProps:D,onValueChange:O}=e,t=hn(e,Xde),l=j.type==="dateTime",S=mi(),i=Oe.useRef(),C=Oe.useMemo(()=>{let h;x==null?h=null:x instanceof Date?h=x:h=new Date((x??"").toString());let f;return h==null||Number.isNaN(h.getTime())?f="":f=new Date(h.getTime()-h.getTimezoneOffset()*60*1e3).toISOString().substr(0,l?16:10),{parsed:h,formatted:f}},[x,l]),[w,v]=Oe.useState(C),a={classes:Wa().classes},n=Kde(a),s=Oe.useCallback(h=>{if(h==="")return null;const[f,u]=h.split("T"),[b,p,E]=f.split("-"),g=new Date;if(g.setFullYear(Number(b),Number(p)-1,Number(E)),g.setHours(0,0,0,0),u){const[c,y]=u.split(":");g.setHours(Number(c),Number(y),0,0)}return g},[]),o=Oe.useCallback(async h=>{const f=h.target.value,u=s(f);O&&await O(h,u),v({parsed:u,formatted:f}),S.current.setEditCellValue({id:r,field:F,value:u},h)},[S,F,r,O,s]);return Oe.useEffect(()=>{v(h=>{var f,u;return C.parsed!==h.parsed&&((f=C.parsed)==null?void 0:f.getTime())!==((u=h.parsed)==null?void 0:u.getTime())?C:h})},[C]),Gi(()=>{Y&&i.current.focus()},[Y]),Ce.jsx(Zde,Ge({inputRef:i,fullWidth:!0,className:n.root,type:l?"datetime-local":"date",inputProps:Ge({max:l?"9999-12-31T23:59":"9999-12-31"},D),value:w.formatted,onChange:o},t))}const XF=e=>Ce.jsx(Jde,Ge({},e));function ZF({value:e,columnType:r,rowId:x,field:F}){if(!(e instanceof Date))throw new Error([`MUI X: \`${r}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${x}, field: "${F}".`].join(` +`))}const Qde=(e,r,x,F)=>{if(!e)return"";const j=F.current.getRowId(r);return ZF({value:e,columnType:"date",rowId:j,field:x.field}),e.toLocaleDateString()},qde=(e,r,x,F)=>{if(!e)return"";const j=F.current.getRowId(r);return ZF({value:e,columnType:"dateTime",rowId:j,field:x.field}),e.toLocaleString()},ehe=Ge({},Td,{type:"date",sortComparator:TF,valueFormatter:Qde,filterOperators:YF(),renderEditCell:XF,pastedValueParser:e=>new Date(e)}),the=Ge({},Td,{type:"dateTime",sortComparator:TF,valueFormatter:qde,filterOperators:YF(!0),renderEditCell:XF,pastedValueParser:e=>new Date(e)}),fp=e=>e==null?null:Number(e),rhe=e=>e==null||Number.isNaN(e)||e===""?null:r=>fp(r)===fp(e),nhe=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>fp(r)===e.value,InputComponent:ah,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>fp(r)!==e.value,InputComponent:ah,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)>e.value,InputComponent:ah,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)>=e.value,InputComponent:ah,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)e.value==null||Number.isNaN(e.value)?null:r=>r==null?!1:fp(r)<=e.value,InputComponent:ah,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:r=>r!=null&&e.value.includes(Number(r)),InputComponent:MF,InputComponentProps:{type:"number"}}],ahe=Ge({},Td,{type:"number",align:"right",headerAlign:"right",sortComparator:wF,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Ife(e)?e.toLocaleString():e||"",filterOperators:nhe(),getApplyQuickFilterFn:rhe}),g2=e=>e==="Escape",YT=e=>e==="Tab";function KF(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const m2=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",ihe=e=>!!e.key,J5=e=>YT(e)||g2(e);function JF(e){return!!((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()==="v"&&!e.shiftKey&&!e.altKey)}function Ry(e){return(e==null?void 0:e.type)==="singleSelect"}function pg(e,r){if(e)return typeof e.valueOptions=="function"?e.valueOptions(Ge({field:e.field},r)):e.valueOptions}function y2(e,r,x){if(r===void 0)return;const F=r.find(j=>{const Y=x(j);return String(Y)===String(e)});return x(F)}const ohe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],she=["MenuProps"];function lhe(e){return!!e.key}function uhe(e){var y,A;const r=Wa(),{id:x,value:F,field:j,row:Y,colDef:D,hasFocus:O,error:t,onValueChange:l,initialOpen:S=r.editMode===vh.Cell}=e,i=hn(e,ohe),C=mi(),w=Oe.useRef(),v=Oe.useRef(),[m,a]=Oe.useState(S),s=(((y=r.slotProps)==null?void 0:y.baseSelect)||{}).native??!1,o=((A=r.slotProps)==null?void 0:A.baseSelect)||{},{MenuProps:h}=o,f=hn(o,she);if(Gi(()=>{var M;O&&((M=v.current)==null||M.focus())},[O]),!Ry(D))return null;const u=pg(D,{id:x,row:Y});if(!u)return null;const b=D.getOptionValue,p=D.getOptionLabel,E=async M=>{if(!Ry(D)||!u)return;a(!1);const R=M.target,T=y2(R.value,u,b);l&&await l(M,T),await C.current.setEditCellValue({id:x,field:j,value:T},M)},g=(M,R)=>{if(r.editMode===vh.Row){a(!1);return}if(R==="backdropClick"||g2(M.key)){const T=C.current.getCellParams(x,j);C.current.publishEvent("cellEditStop",Ge({},T,{reason:g2(M.key)?cd.escapeKeyDown:cd.cellFocusOut}))}},c=M=>{lhe(M)&&M.key==="Enter"||a(!0)};return!u||!D?null:Ce.jsx(r.slots.baseSelect,Ge({ref:w,inputRef:v,value:F,onChange:E,open:m,onOpen:c,MenuProps:Ge({onClose:g},h),error:t,native:s,fullWidth:!0},i,f,{children:u.map(M=>{var T;const R=b(M);return Oe.createElement(r.slots.baseSelectOption,Ge({},((T=r.slotProps)==null?void 0:T.baseSelectOption)||{},{native:s,key:R,value:R}),p(M))})}))}const che=e=>Ce.jsx(uhe,Ge({},e)),fhe=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],dhe=({column:e,OptionComponent:r,getOptionLabel:x,getOptionValue:F,isSelectNative:j,baseSelectOptionProps:Y})=>["",...pg(e)||[]].map(O=>{const t=F(O);let l=x(O);return l===""&&(l=" "),Oe.createElement(r,Ge({},Y,{native:j,key:t,value:t}),l)}),hhe=ln("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function zI(e){var b,p,E,g,c;const{item:r,applyValue:x,type:F,apiRef:j,focusElementRef:Y,placeholder:D,tabIndex:O,label:t,variant:l="standard",clearButton:S}=e,i=hn(e,fhe),C=r.value??"",w=Ui(),v=Ui(),m=Wa(),a=((p=(b=m.slotProps)==null?void 0:b.baseSelect)==null?void 0:p.native)??!1;let n=null;if(r.field){const y=j.current.getColumn(r.field);Ry(y)&&(n=y)}const s=n==null?void 0:n.getOptionValue,o=n==null?void 0:n.getOptionLabel,h=Oe.useMemo(()=>pg(n),[n]),f=Oe.useCallback(y=>{let A=y.target.value;A=y2(A,h,s),x(Ge({},r,{value:A}))},[h,s,x,r]);if(!Ry(n))return null;const u=t??j.current.getLocaleText("filterPanelInputLabel");return Ce.jsxs(hhe,{children:[Ce.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[Ce.jsx(m.slots.baseInputLabel,Ge({},(E=m.slotProps)==null?void 0:E.baseInputLabel,{id:v,htmlFor:w,shrink:!0,variant:l,children:u})),Ce.jsx(m.slots.baseSelect,Ge({id:w,label:u,labelId:v,value:C,onChange:f,variant:l,type:F||"text",inputProps:{tabIndex:O,ref:Y,placeholder:D??j.current.getLocaleText("filterPanelInputPlaceholder")},native:a,notched:l==="outlined"?!0:void 0},i,(g=m.slotProps)==null?void 0:g.baseSelect,{children:dhe({column:n,OptionComponent:m.slots.baseSelectOption,getOptionLabel:o,getOptionValue:s,isSelectNative:a,baseSelectOptionProps:(c=m.slotProps)==null?void 0:c.baseSelectOption})}))]}),S]})}const vhe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],phe=["key"],ghe=h9();function mhe(e){const{item:r,applyValue:x,apiRef:F,focusElementRef:j,color:Y,error:D,helperText:O,size:t,variant:l="standard"}=e,S=hn(e,vhe),i={color:Y,error:D,helperText:O,size:t,variant:l},C=Ui(),w=Wa();let v=null;if(r.field){const f=F.current.getColumn(r.field);Ry(f)&&(v=f)}const m=v==null?void 0:v.getOptionValue,a=v==null?void 0:v.getOptionLabel,n=Oe.useCallback((f,u)=>m(f)===m(u),[m]),s=Oe.useMemo(()=>pg(v)||[],[v]),o=Oe.useMemo(()=>Array.isArray(r.value)?r.value.reduce((f,u)=>{const b=s.find(p=>m(p)===u);return b!=null&&f.push(b),f},[]):[],[m,r.value,s]),h=Oe.useCallback((f,u)=>{x(Ge({},r,{value:u.map(m)}))},[x,r,m]);return Ce.jsx(L9,Ge({multiple:!0,options:s,isOptionEqualToValue:n,filterOptions:ghe,id:C,value:o,onChange:h,getOptionLabel:a,renderTags:(f,u)=>f.map((b,p)=>{const E=u({index:p}),{key:g}=E,c=hn(E,phe);return Ce.jsx(w.slots.baseChip,Ge({variant:"outlined",size:"small",label:a(b)},c),g)}),renderInput:f=>{var u;return Ce.jsx(w.slots.baseTextField,Ge({},f,{label:F.current.getLocaleText("filterPanelInputLabel"),placeholder:F.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:Ge({},f.InputLabelProps,{shrink:!0}),inputRef:j,type:"singleSelect"},i,(u=w.slotProps)==null?void 0:u.baseTextField))}},S))}const um=e=>e==null||!H5(e)?e:e.value,yhe=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:r=>um(r)===um(e.value),InputComponent:zI},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:r=>um(r)!==um(e.value),InputComponent:zI},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const r=e.value.map(um);return x=>r.includes(um(x))},InputComponent:mhe}],xhe=e=>typeof e[0]=="object",bhe=e=>H5(e)?e.value:e,whe=e=>H5(e)?e.label:String(e),The=Ge({},Td,{type:"singleSelect",getOptionLabel:whe,getOptionValue:bhe,valueFormatter(e,r,x,F){const j=F.current.getRowId(r);if(!Ry(x))return"";const Y=pg(x,{id:j,row:r});if(e==null)return"";if(!Y)return e;if(!xhe(Y))return x.getOptionLabel(e);const D=Y.find(O=>x.getOptionValue(O)===e);return D?x.getOptionLabel(D):""},renderEditCell:che,filterOperators:yhe(),pastedValueParser:(e,r,x)=>{const F=x,j=pg(F)||[],Y=F.getOptionValue;if(j.find(O=>Y(O)===e))return e}}),She="string",Che=()=>({string:Td,number:ahe,date:ehe,dateTime:the,boolean:DF,singleSelect:The,[HT]:Jfe,custom:Td}),Q5=e=>e.headerFiltering,Mhe=pi(Q5,e=>(e==null?void 0:e.enabled)??!1),Ahe=pi(Q5,e=>e.editing),Ehe=pi(Q5,e=>e.menuOpen),XT=e=>e.columnGrouping,QF=ko(XT,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),qF=ko(XT,e=>(e==null?void 0:e.lookup)??{}),Phe=ko(XT,e=>(e==null?void 0:e.headerStructure)??[]),Bb=pi(XT,e=>(e==null?void 0:e.maxDepth)??0),e_=["maxWidth","minWidth","width","flex"],EC=Che();function Lhe({initialFreeSpace:e,totalFlexUnits:r,flexColumns:x}){const F=new Set(x.map(D=>D.field)),j={all:{},frozenFields:[],freeze:D=>{const O=j.all[D];O&&O.frozen!==!0&&(j.all[D].frozen=!0,j.frozenFields.push(D))}};function Y(){if(j.frozenFields.length===F.size)return;const D={min:{},max:{}};let O=e,t=r,l=0;j.frozenFields.forEach(S=>{O-=j.all[S].computedWidth,t-=j.all[S].flex});for(let S=0;Si.maxWidth&&(l+=i.maxWidth-w,w=i.maxWidth,D.max[i.field]=!0),j.all[i.field]={frozen:!1,computedWidth:w,flex:i.flex}}l<0?Object.keys(D.max).forEach(S=>{j.freeze(S)}):l>0?Object.keys(D.min).forEach(S=>{j.freeze(S)}):x.forEach(({field:S})=>{j.freeze(S)}),Y()}return Y(),j.all}const sM=(e,r)=>{const x={};let F=0,j=0;const Y=[];e.orderedFields.forEach(t=>{let l=e.lookup[t],S=0,i=!1;e.columnVisibilityModel[t]!==!1&&(l.flex&&l.flex>0?(F+=l.flex,i=!0):S=fv(l.width||Td.width,l.minWidth||Td.minWidth,l.maxWidth||Td.maxWidth),j+=S),l.computedWidth!==S&&(l=Ge({},l,{computedWidth:S})),i&&Y.push(l),x[t]=l});const D=r===void 0?0:r.viewportOuterSize.width-(r.hasScrollY?r.scrollbarSize:0),O=Math.max(D-j,0);if(F>0&&D>0){const t=Lhe({initialFreeSpace:O,totalFlexUnits:F,flexColumns:Y});Object.keys(t).forEach(l=>{x[l].computedWidth=t[l].computedWidth})}return Ge({},e,{lookup:x})},Ihe=(e,r)=>{if(!r)return e;const{orderedFields:x=[],dimensions:F={}}=r,j=Object.keys(F);if(j.length===0&&x.length===0)return e;const Y={},D=[];for(let S=0;S!Y[S])],t=Ge({},e.lookup);for(let S=0;S{C[w]=v===-1?1/0:v}),t[i]=C}return Ge({},e,{orderedFields:O,lookup:t})};function BI(e){let r=EC[She];return e&&EC[e]&&(r=EC[e]),r}const pm=({apiRef:e,columnsToUpsert:r,initialState:x,columnVisibilityModel:F=bf(e),keepOnlyColumnsToUpsert:j=!1})=>{var S,i;const Y=!e.current.state.columns;let D;if(Y)D={orderedFields:[],lookup:{},columnVisibilityModel:F};else{const C=dh(e.current.state);D={orderedFields:j?[]:[...C.orderedFields],lookup:Ge({},C.lookup),columnVisibilityModel:F}}let O={};j&&!Y&&(O=Object.keys(D.lookup).reduce((C,w)=>Ge({},C,{[w]:!1}),{})),r.forEach(C=>{const{field:w}=C;O[w]=!0;let v=D.lookup[w];v==null?(v=Ge({},BI(C.type),{field:w,hasBeenResized:!1}),D.orderedFields.push(w)):j&&D.orderedFields.push(w),v&&v.type!==C.type&&(v=Ge({},BI(C.type),{field:w}));let m=v.hasBeenResized;e_.forEach(a=>{C[a]!==void 0&&(m=!0,C[a]===-1&&(C[a]=1/0))}),D.lookup[w]=Ge({},v,C,{hasBeenResized:m})}),j&&!Y&&Object.keys(D.lookup).forEach(C=>{O[C]||delete D.lookup[C]});const t=e.current.unstable_applyPipeProcessors("hydrateColumns",D),l=Ihe(t,x);return sM(l,((i=(S=e.current).getRootDimensions)==null?void 0:i.call(S))??void 0)};function Rhe({firstColumnToRender:e,apiRef:r,firstRowToRender:x,lastRowToRender:F,visibleRows:j}){let Y=e;for(let D=x;D{const{scrollDirection:r,classes:x}=e,F={root:["scrollArea",`scrollArea--${r}`]};return qn(F,ki,x)},Ohe=po("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,r)=>[{[`&.${Hr["scrollArea--left"]}`]:r["scrollArea--left"]},{[`&.${Hr["scrollArea--right"]}`]:r["scrollArea--right"]},r.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Hr["scrollArea--left"]}`]:{left:0},[`&.${Hr["scrollArea--right"]}`]:{right:0}}));function Fhe(e){const{scrollDirection:r}=e,x=Oe.useRef(null),F=mi(),j=Cc(),Y=va(F,Db),D=va(F,N5),O=va(F,qu),t=Oe.useRef({left:0,top:0}),l=()=>{if(r==="left")return t.current.left>0;if(r==="right"){const p=D-O.viewportInnerSize.width;return t.current.left{t.current=p,w(l)},f=pa(p=>{let E;if(p.preventDefault(),r==="left")E=p.clientX-x.current.getBoundingClientRect().right;else if(r==="right")E=Math.max(1,p.clientX-x.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");E=(E-NI)*khe+NI,j.start(0,()=>{F.current.scroll({left:t.current.left+E,top:t.current.top})})}),u=pa(()=>{i(!0)}),b=pa(()=>{i(!1)});return Za(F,"scrollPositionChange",h),Za(F,"columnHeaderDragStart",u),Za(F,"columnHeaderDragEnd",b),!S||!C?null:Ce.jsx(Ohe,{ref:x,className:Ln(a.root),ownerState:m,onDragOver:f,style:o})}const UI=t0(Fhe),_he=()=>{};function zhe(e,r,x){const F=Oe.useRef(null);F.current=r,Gi(()=>{if(typeof ResizeObserver>"u")return _he;const j=e.current,Y=new ResizeObserver(D=>{F.current(D)});return j&&Y.observe(j),()=>{Y.disconnect()}},[e,x])}const t_=Oe.createContext(void 0);function gh(){const e=Oe.useContext(t_);if(e===void 0)throw new Error(["MUI X: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const ab=(e,r)=>{let x,F;return r.pagination&&r.paginationMode==="client"?(F=K5(e),x=jde(e)):(x=e0(e),x.length===0?F=null:F={firstRowIndex:0,lastRowIndex:x.length-1}),{rows:x,range:F}},Ag=(e,r)=>{const x=ab(e,r);return Oe.useMemo(()=>({rows:x.rows,range:x.range}),[x.rows,x.range])},Bhe=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",Nhe=Bhe.includes("firefox"),Yy=e=>e.rowsMeta,e6=e=>e.virtualization,Uhe=pi(e6,e=>e.enabled),t6=pi(e6,e=>e.enabledForColumns),r6=pi(e6,e=>e.renderContext),Hhe=ko(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,r)=>({firstColumnIndex:e,lastColumnIndex:r})),r_={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},Vhe=(e,r)=>{const x={enabled:!r.disableVirtualization,enabledForColumns:!0,renderContext:r_};return Ge({},e,{virtualization:x})};function jhe(e,r){const x=Y=>{e.current.setState(D=>Ge({},D,{virtualization:Ge({},D.virtualization,{enabled:Y})}))};Mi(e,{unstable_setVirtualization:x,unstable_setColumnVirtualization:Y=>{e.current.setState(D=>Ge({},D,{virtualization:Ge({},D.virtualization,{enabledForColumns:Y})}))}},"public"),Oe.useEffect(()=>{x(!r.disableVirtualization)},[r.disableVirtualization])}const PC=50;var zs=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(zs||{});const HI={top:0,left:0},Ghe=Object.freeze(new Map),Whe=(e,r,x,F,j)=>({direction:zs.NONE,buffer:a_(e,zs.NONE,r,x,F,j)});let lM=!1;try{typeof window<"u"&&(lM=/jsdom/.test(window.navigator.userAgent))}catch{}const $he=()=>{const e=gh(),r=Wa(),x=va(e,nl),F=va(e,Uhe)&&!lM,j=va(e,t6)&&!lM,Y=va(e,qu),D=Y.viewportOuterSize,O=va(e,qp),t=va(e,Fb),l=O.bottom.length>0,[S,i]=Oe.useState(Ghe),C=nu(),w=va(e,uf),v=va(e,W5),m=va(e,Yy),a=va(e,p2),n=Ag(e,r),s=e.current.rootElementRef,o=e.current.mainElementRef,h=e.current.virtualScrollerRef,f=Oe.useRef(null),u=Oe.useRef(null),b=Y.contentSize.height,p=Y.columnsTotalWidth,E=va(e,mfe);zhe(o,()=>e.current.resize());const g=Oe.useRef(HI),c=Oe.useRef(HI),y=Oe.useRef(r_),A=va(e,r6),M=Cc(),R=Oe.useRef(void 0),T=wg(()=>Whe(C.direction,r.rowBufferPx,r.columnBufferPx,Y.rowHeight*15,PC*6)).current,L={rowIndex:Oe.useMemo(()=>w?n.rows.findIndex(V=>V.id===w.id):-1,[w,n.rows]),columnIndex:Oe.useMemo(()=>w?x.findIndex(V=>V.field===w.field):-1,[w,x])},P=Oe.useCallback(V=>{if(Zhe(V,e.current.state.virtualization.renderContext))return;const $=V.firstRowIndex!==y.current.firstRowIndex||V.lastRowIndex!==y.current.lastRowIndex;e.current.setState(Z=>Ge({},Z,{virtualization:Ge({},Z.virtualization,{renderContext:V})})),Y.isReady&&$&&(y.current=V,e.current.publishEvent("renderedRowsIntervalChange",V)),c.current=g.current},[e,Y.isReady]),d=()=>{const V={top:h.current.scrollTop,left:h.current.scrollLeft},$=V.left-g.current.left,Z=V.top-g.current.top,q=$!==0||Z!==0;g.current=V;const ae=q?Khe($,Z):zs.NONE,ie=Math.abs(g.current.top-c.current.top),fe=Math.abs(g.current.left-c.current.left),Q=ie>=Y.rowHeight||fe>=PC,J=T.direction!==ae;if(!(Q||J))return A;if(J)switch(ae){case zs.NONE:case zs.LEFT:case zs.RIGHT:R.current=void 0;break;default:R.current=A;break}T.direction=ae,T.buffer=a_(C.direction,ae,r.rowBufferPx,r.columnBufferPx,Y.rowHeight*15,PC*6);const K=LC(e,r,F,j),ne=IC(K,g.current,T);return gb.flushSync(()=>{P(ne)}),M.start(1e3,d),ne},k=()=>{const V=LC(e,r,F,j),$=IC(V,g.current,T);R.current=void 0,P($)},I=pa(V=>{const{scrollTop:$,scrollLeft:Z}=V.currentTarget;if($<0||C.direction==="ltr"&&Z<0||C.direction==="rtl"&&Z>0)return;const q=d();e.current.publishEvent("scrollPositionChange",{top:$,left:Z,renderContext:q})}),N=pa(V=>{e.current.publishEvent("virtualScrollerWheel",{},V)}),B=pa(V=>{e.current.publishEvent("virtualScrollerTouchMove",{},V)}),G=(V={})=>{var re;if(!V.rows&&!n.range)return[];const $=V.renderContext??A,Z=!l&&V.position===void 0||l&&V.position==="bottom",q=V.position!==void 0;let ae;switch(V.position){case"top":ae=0;break;case"bottom":ae=O.top.length+n.rows.length;break;case void 0:ae=O.top.length;break}const ie=V.rows??n.rows,fe=$.firstRowIndex,Q=Math.min($.lastRowIndex,ie.length),J=V.rows?LI(0,V.rows.length):LI(fe,Q);let oe=-1;!q&&L.rowIndex!==-1&&(L.rowIndex=Q&&(oe=L.rowIndex,J.push(oe)));const K=[],ne=(re=r.slotProps)==null?void 0:re.row,ce=Qp(e);return J.forEach(ee=>{var vt,at,nt;const{id:de,model:le}=ie[ee],he=(((vt=n==null?void 0:n.range)==null?void 0:vt.firstRowIndex)||0)+ae+ee;if(E){const mt=t.left.length,rt=x.length-t.right.length;e.current.calculateColSpan({rowId:de,minFirstColumn:mt,maxLastColumn:rt,columns:x}),t.left.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:0,maxLastColumn:t.left.length,columns:x}),t.right.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:x.length-t.right.length,maxLastColumn:x.length,columns:x})}const xe=(w==null?void 0:w.id)===de,Ee=e.current.rowHasAutoHeight(de)?"auto":e.current.unstable_getRowHeight(de);let Se;a[de]==null?Se=!1:Se=e.current.isRowSelectable(de);let ke=!1;V.position===void 0&&(ke=ee===0);let Te=!1;const Ae=ee===ie.length-1;if(Z)if(q)Te=Ae;else{const mt=n.rows.length-1;ee===mt&&(Te=!0)}const Ie=ee===oe;let Ue=null;v!==null&&v.id===de&&(Ue=e.current.getCellParams(de,v.field).cellMode==="view"?v.field:null);let Ne=$;!q&&R.current&&ee>=R.current.firstRowIndex&&ee=D.width,H=Oe.useMemo(()=>({overflowX:U?void 0:"hidden",overflowY:r.autoHeight?"hidden":void 0}),[U,r.autoHeight]),W=Oe.useMemo(()=>{const V={width:U?p:"auto",height:b};return r.autoHeight&&n.rows.length===0&&(V.height=kF(e)),V},[e,p,b,U,r.autoHeight,n.rows.length]);return Oe.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,W]),Gi(()=>{e.current.resize()},[e,m.currentPageTotalHeight]),Gi(()=>{F&&(h.current.scrollLeft=0,h.current.scrollTop=0)},[F,s,h]),zde(D.width!==0,()=>{const V=LC(e,r,F,j),$=IC(V,g.current,T);P($),e.current.publishEvent("scrollPositionChange",{top:g.current.top,left:g.current.left,renderContext:$})}),e.current.register("private",{updateRenderContext:k}),Za(e,"columnsChange",k),Za(e,"filteredRowsSet",k),Za(e,"rowExpansionChange",k),{renderContext:A,setPanels:i,getRows:G,getContainerProps:()=>({ref:o}),getScrollerProps:()=>({ref:h,onScroll:I,onWheel:N,onTouchMove:B,style:H,role:"presentation",tabIndex:Nhe?-1:void 0}),getContentProps:()=>({style:W,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:f,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:u,role:"presentation"})}};function LC(e,r,x,F){const j=qu(e.current.state),Y=ab(e,r),D=nl(e),O=e.current.state.rows.dataRowIds.at(-1),t=D.at(-1);return{enabled:x,enabledForColumns:F,apiRef:e,autoHeight:r.autoHeight,rowBufferPx:r.rowBufferPx,columnBufferPx:r.columnBufferPx,leftPinnedWidth:j.leftPinnedWidth,columnsTotalWidth:j.columnsTotalWidth,viewportInnerWidth:j.viewportInnerSize.width,viewportInnerHeight:j.viewportInnerSize.height,lastRowHeight:O!==void 0?e.current.unstable_getRowHeight(O):0,lastColumnWidth:(t==null?void 0:t.computedWidth)??0,rowsMeta:Yy(e.current.state),columnPositions:Qp(e),rows:Y.rows,range:Y.range,pinnedColumns:Fb(e),visibleColumns:D}}function IC(e,r,x){let F;if(!e.enabled)F={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length};else{const{top:Y,left:D}=r,O=Math.abs(D)+e.leftPinnedWidth,t=Math.min(VI(e,Y,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1),l=e.autoHeight?t+e.rows.length:VI(e,Y+e.viewportInnerHeight);let S=0,i=e.columnPositions.length;if(e.enabledForColumns){let C=!1;const[w,v]=uM({firstIndex:t,lastIndex:l,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:x.buffer.rowBefore,bufferAfter:x.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let m=w;m=e.range.lastRowIndex);const Y=fv(F-(((O=e.range)==null?void 0:O.firstRowIndex)||0),0,e.rowsMeta.positions.length);return j||e.rowsMeta.positions[Y]>=r?Vp(r,e.rowsMeta.positions,x):Xhe(r,e.rowsMeta.positions,Y,x)}function Yhe(e,r,x){const[F,j]=uM({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:x.buffer.rowBefore,bufferAfter:x.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[Y,D]=uM({firstIndex:r.firstColumnIndex,lastIndex:r.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:x.buffer.columnBefore,bufferAfter:x.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),O=Rhe({firstColumnToRender:Y,apiRef:e.apiRef,firstRowToRender:F,lastRowToRender:j,visibleRows:e.rows});return{firstRowIndex:F,lastRowIndex:j,firstColumnIndex:O,lastColumnIndex:D}}function Vp(e,r,x=void 0,F=0,j=r.length){if(r.length<=0)return-1;if(F>=j)return F;const Y=F+Math.floor((j-F)/2),D=r[Y];let O;if(x!=null&&x.atStart){const t=(Y===r.length-1?x.lastPosition:r[Y+1])-D;O=e-t=Math.abs(e)?r>0?zs.DOWN:zs.UP:e>0?zs.RIGHT:zs.LEFT}function a_(e,r,x,F,j,Y){if(e==="rtl")switch(r){case zs.LEFT:r=zs.RIGHT;break;case zs.RIGHT:r=zs.LEFT;break}switch(r){case zs.NONE:return{rowAfter:x,rowBefore:x,columnAfter:F,columnBefore:F};case zs.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:Y};case zs.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:Y,columnBefore:0};case zs.UP:return{rowAfter:0,rowBefore:j,columnAfter:0,columnBefore:0};case zs.DOWN:return{rowAfter:j,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const Jhe=()=>{var S,i;const e=mi(),r=Wa(),x=va(e,_b),F=va(e,NF),j=x===0,Y=va(e,Qfe),D=!Y&&j,O=!Y&&x>0&&F===0;let t=null,l=null;return D&&(t="noRowsOverlay"),O&&(t="noResultsOverlay"),Y&&(t="loadingOverlay",l=((i=(S=r.slotProps)==null?void 0:S.loadingOverlay)==null?void 0:i[j?"noRowsVariant":"variant"])||null),{overlayType:t,loadingOverlayVariant:l}},Qhe=po("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,r)=>r.overlayWrapper})(({overlayType:e,loadingOverlayVariant:r})=>r!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),qhe=po("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,r)=>r.overlayWrapperInner})({}),eve=e=>{const{classes:r}=e;return qn({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ki,r)};function tve(e){const r=mi(),x=Wa(),F=Ag(r,x),j=va(r,qu);let Y=j.viewportOuterSize.height-j.topContainerHeight-j.bottomContainerHeight-(j.hasScrollX?j.scrollbarSize:0);(x.autoHeight&&F.rows.length===0||Y===0)&&(Y=kF(r));const D=eve(Ge({},e,{classes:x.classes}));return Ce.jsx(Qhe,Ge({className:Ln(D.root)},e,{children:Ce.jsx(qhe,Ge({className:Ln(D.inner),style:{height:Y,width:j.viewportOuterSize.width}},e))}))}function rve(e){var Y,D;const{overlayType:r}=e,x=Wa();if(!r)return null;const F=(Y=x.slots)==null?void 0:Y[r],j=(D=x.slotProps)==null?void 0:D[r];return Ce.jsx(tve,Ge({},e,{children:Ce.jsx(F,Ge({},j))}))}const S3=e=>e.columnMenu;function nve(){var a;const e=gh(),r=Wa(),x=va(e,nl),F=va(e,Fde),j=va(e,Ide),Y=va(e,OF),D=va(e,W5),O=va(e,Ede),t=va(e,Ade),l=va(e,v2),S=va(e,Bb),i=va(e,S3),C=va(e,bf),w=va(e,Phe),v=!(O===null&&Y===null&&D===null),m=Oe.useRef(null);return e.current.register("private",{columnHeadersContainerRef:m}),Ce.jsx(r.slots.columnHeaders,Ge({ref:m,visibleColumns:x,filterColumnLookup:F,sortColumnLookup:j,columnHeaderTabIndexState:Y,columnGroupHeaderTabIndexState:O,columnHeaderFocus:t,columnGroupHeaderFocus:l,headerGroupingMaxDepth:S,columnMenuState:i,columnVisibility:C,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:v},(a=r.slotProps)==null?void 0:a.columnHeaders))}const ave=t0(nve),ive=()=>{const e=gh(),r=Wa(),x=va(e,nl),F=va(e,_b),j=va(e,Bb),Y=va(e,nde);let D="grid";return r.treeData&&(D="treegrid"),{role:D,"aria-colcount":x.length,"aria-rowcount":j+1+Y+F,"aria-multiselectable":G5(r)}},ove=po("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),sve=po("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,r)=>r.main})({flexGrow:1,position:"relative",overflow:"hidden"}),lve=Oe.forwardRef((e,r)=>{const x=ive(),F=Wa();return Ce.jsxs(sve,Ge({ref:r,ownerState:F,className:e.className,tabIndex:-1},x,{children:[Ce.jsx(ove,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),uve=()=>qn({root:["topContainer"]},ki,{}),cve=po("div")({position:"sticky",zIndex:4,top:0});function fve(e){const r=uve();return Ce.jsx(cve,Ge({},e,{className:Ln(r.root,e.className,Hr["container--top"]),role:"presentation"}))}const dve=()=>qn({root:["bottomContainer"]},ki,{}),hve=po("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function vve(e){const r=dve();return Ce.jsx(hve,Ge({},e,{className:Ln(r.root,e.className,Hr["container--bottom"]),role:"presentation"}))}const pve=(e,r)=>{const{classes:x}=e;return qn({root:["virtualScrollerContent",r&&"virtualScrollerContent--overflowed"]},ki,x)},gve=po("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,r)=>r.virtualScrollerContent})({}),mve=Oe.forwardRef(function(r,x){var D;const F=Wa(),j=!F.autoHeight&&((D=r.style)==null?void 0:D.minHeight)==="auto",Y=pve(F,j);return Ce.jsx(gve,Ge({ref:x},r,{ownerState:F,className:Ln(Y.root,r.className)}))}),yve=po("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),i_=po("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),xve=po(i_)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),bve=po(i_)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),wve=po("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Tve({rowsLength:e}){const r=mi(),{viewportOuterSize:x,minimumSize:F,hasScrollX:j,hasScrollY:Y,scrollbarSize:D,leftPinnedWidth:O,rightPinnedWidth:t}=va(r,qu),l=j?D:0,S=x.height-F.height-l,i=Math.max(l,S);return i===0?null:Ce.jsxs(yve,{className:Hr.filler,role:"presentation",style:{height:i,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[O>0&&Ce.jsx(xve,{className:Hr["filler--pinnedLeft"],style:{width:O}}),Ce.jsx(wve,{}),t>0&&Ce.jsx(bve,{className:Hr["filler--pinnedRight"],style:{width:t+(Y?D:0)}})]})}const Sve=t0(Tve),Cve=["className"],Mve=e=>{const{classes:r}=e;return qn({root:["virtualScrollerRenderZone"]},ki,r)},Ave=po("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,r)=>r.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Eve=Oe.forwardRef(function(r,x){const{className:F}=r,j=hn(r,Cve),Y=mi(),D=Wa(),O=Mve(D),t=va(Y,()=>{const l=r6(Y);return Yy(Y.current.state).positions[l.firstRowIndex]??0});return Ce.jsx(Ave,Ge({ref:x,className:Ln(O.root,F),ownerState:D,style:{transform:`translate3d(0, ${t}px, 0)`}},j))}),Pve={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},eu=e=>e.editRows,gg=e=>e.preferencePanel;var Md=function(e){return e.filters="filters",e.columns="columns",e}(Md||{});const Lve=(e,r)=>{const{classes:x}=e,F={root:["scrollbar",`scrollbar--${r}`],content:["scrollbarContent"]};return qn(F,ki,x)},o_=po("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Ive=po(o_)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),Rve=po(o_)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),kve=po("div")({display:"inline-block"}),jI=Oe.forwardRef(function(r,x){const F=gh(),j=Wa(),Y=Oe.useRef(!1),D=Oe.useRef(0),O=Oe.useRef(null),t=Oe.useRef(null),l=Lve(j,r.position),S=va(F,qu),i=r.position==="vertical"?"height":"width",C=r.position==="vertical"?"scrollTop":"scrollLeft",w=r.position==="vertical"?S.hasScrollX:S.hasScrollY,v=S.minimumSize[i]+(w?S.scrollbarSize:0),a=(r.position==="vertical"?S.viewportInnerSize.height:S.viewportOuterSize.width)*(v/S.viewportOuterSize[i]),n=pa(()=>{const h=F.current.virtualScrollerRef.current,f=O.current;if(h[C]===D.current)return;if(Y.current){Y.current=!1;return}Y.current=!0;const u=h[C]/v;f[C]=u*a,D.current=h[C]}),s=pa(()=>{const h=F.current.virtualScrollerRef.current,f=O.current;if(Y.current){Y.current=!1;return}Y.current=!0;const u=f[C]/a;h[C]=u*v});gT(()=>{const h=F.current.virtualScrollerRef.current,f=O.current;return h.addEventListener("scroll",n,{capture:!0}),f.addEventListener("scroll",s,{capture:!0}),()=>{h.removeEventListener("scroll",n,{capture:!0}),f.removeEventListener("scroll",s,{capture:!0})}}),Oe.useEffect(()=>{t.current.style.setProperty(i,`${a}px`)},[a,i]);const o=r.position==="vertical"?Ive:Rve;return Ce.jsx(o,{ref:vi(x,O),className:l.root,tabIndex:-1,"aria-hidden":"true",children:Ce.jsx(kve,{ref:t,className:l.content})})}),Dve=(e,r,x)=>{const{classes:F}=e,j={root:["main",r.rightPinnedWidth>0&&"main--hasPinnedRight",x==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller"]};return qn(j,ki,F)},Ove=po("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,r)=>r.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function Fve(e){const r=mi(),x=Wa(),F=va(r,qu),j=Jhe(),Y=Dve(x,F,j.loadingOverlayVariant),D=$he(),{getContainerProps:O,getScrollerProps:t,getContentProps:l,getRenderZoneProps:S,getScrollbarVerticalProps:i,getScrollbarHorizontalProps:C,getRows:w}=D,v=w();return Ce.jsxs(lve,Ge({className:Y.root},O(),{children:[Ce.jsx(UI,{scrollDirection:"left"}),Ce.jsx(UI,{scrollDirection:"right"}),Ce.jsxs(Ove,Ge({className:Y.scroller},t(),{ownerState:x,children:[Ce.jsxs(fve,{children:[Ce.jsx(ave,{}),Ce.jsx(x.slots.pinnedRows,{position:"top",virtualScroller:D})]}),Ce.jsx(rve,Ge({},j)),Ce.jsx(mve,Ge({},l(),{children:Ce.jsxs(Eve,Ge({},S(),{children:[v,Ce.jsx(x.slots.detailPanels,{virtualScroller:D})]}))})),Ce.jsx(Sve,{rowsLength:v.length}),Ce.jsx(vve,{children:Ce.jsx(x.slots.pinnedRows,{position:"bottom",virtualScroller:D})})]})),F.hasScrollY&&Ce.jsx(jI,Ge({position:"vertical"},i())),F.hasScrollX&&Ce.jsx(jI,Ge({position:"horizontal"},C())),e.children]}))}function _ve(){var r;const e=Wa();return e.hideFooter?null:Ce.jsx(e.slots.footer,Ge({},(r=e.slotProps)==null?void 0:r.footer))}let RC;function zve(){return RC===void 0&&document.createElement("div").focus({get preventScroll(){return RC=!0,!1}}),RC}function Bve(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function x2(e,r){return e.closest(`.${r}`)}function mv(e){return e.replace(/["\\]/g,"\\$&")}function Nve(e,r){return e.querySelector(`[role="columnheader"][data-field="${mv(r)}"]`)}function s_(e){return`.${Hr.row}[data-id="${mv(String(e))}"]`}function Uve(e,r){return e.querySelector(s_(r))}function Hve(e,{id:r,field:x}){const F=s_(r),j=`.${Hr.cell}[data-field="${mv(x)}"]`,Y=`${F} ${j}`;return e.querySelector(Y)}function Nb(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Vve(e){return e.getAttribute("data-field")}function jve(e,r){return e.querySelector(`[data-field="${mv(r)}"]`)}function Gve(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function Wve(e,r){return Array.from(e.querySelectorAll(`[data-fields*="|-${mv(r)}-|"]`)??[])}function $ve(e,r){var D;if(!x2(e,Hr.root))throw new Error("MUI X: The root element is not found.");const F=e.getAttribute("aria-colindex");if(!F)return[];const j=Number(F)-1,Y=[];return(D=r.virtualScrollerRef)!=null&&D.current?(c_(r).forEach(O=>{const t=O.getAttribute("data-id");if(!t)return;let l=j;const S=r.unstable_getCellColSpanInfo(t,j);S&&S.spannedByColSpan&&(l=S.leftVisibleCellIndex);const i=O.querySelector(`[data-colindex="${l}"]`);i&&Y.push(i)}),Y):[]}function GI(e,r){return e.rootElementRef.current.querySelector(`.${Hr[r]}`)}const l_=({api:e,colIndex:r,position:x,filterFn:F})=>{if(r===null)return[];const j=[];return c_(e).forEach(Y=>{Y.getAttribute("data-id")&&Y.querySelectorAll(`.${Hr[x==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(O=>{const t=Xy(O);t!==null&&F(t)&&j.push(O)})}),j};function Yve(e,r){const x=Xy(r);return l_({api:e,colIndex:x,position:"left",filterFn:F=>F>x})}function Xve(e,r){const x=Xy(r);return l_({api:e,colIndex:x,position:"right",filterFn:F=>F{var Y;if(!((Y=e.columnHeadersContainerRef)!=null&&Y.current))return[];if(r===null)return[];const j=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${Hr[x==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(D=>{const O=Xy(D);O!==null&&F(O)&&j.push(D)}),j};function Zve(e,r){const x=Xy(r);return u_({api:e,position:"left",colIndex:x,filterFn:F=>F>x})}function Kve(e,r){const x=Xy(r);return u_({api:e,position:"right",colIndex:x,filterFn:F=>F div > [data-field="${mv(r)}"][role="columnheader"]`)}function Qve(e,r){const x=e.virtualScrollerRef.current;return Array.from(x.querySelectorAll(`:scope > div > div > div > [data-field="${mv(r)}"][role="gridcell"]`))}function c_(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${Hr.row}`)}function Xy(e){const r=e.getAttribute("aria-colindex");return r?Number(r)-1:null}class C3 extends Error{}function qve(e){const r=Oe.useCallback(i=>({field:i,colDef:e.current.getColumn(i)}),[e]),x=Oe.useCallback(i=>{const C=e.current.getRow(i);if(!C)throw new C3(`No row with id #${i} found`);return{id:i,columns:e.current.getAllColumns(),row:C}},[e]),F=Oe.useCallback((i,C)=>{const w=e.current.getColumn(C),v=e.current.getRow(i),m=e.current.getRowNode(i);if(!v||!m)throw new C3(`No row with id #${i} found`);const a=v[C],n=w!=null&&w.valueGetter?w.valueGetter(a,v,w,e):a,s=uf(e),o=W5(e),h={id:i,field:C,row:v,rowNode:m,colDef:w,cellMode:e.current.getCellMode(i,C),hasFocus:s!==null&&s.field===C&&s.id===i,tabIndex:o&&o.field===C&&o.id===i?0:-1,value:n,formattedValue:n,isEditable:!1};return w&&w.valueFormatter&&(h.formattedValue=w.valueFormatter(n,v,w,e)),h.isEditable=w&&e.current.isCellEditable(h),h},[e]),j=Oe.useCallback((i,C)=>{const w=e.current.getColumn(C),v=e.current.getRow(i);if(!v)throw new C3(`No row with id #${i} found`);return!w||!w.valueGetter?v[C]:w.valueGetter(v[w.field],v,w,e)},[e]),Y=Oe.useCallback((i,C)=>{const w=C.field;if(!C||!C.valueGetter)return i[w];const v=i[C.field];return C.valueGetter(v,i,C,e)},[e]),D=Oe.useCallback((i,C)=>{const w=Y(i,C);return!C||!C.valueFormatter?w:C.valueFormatter(w,i,C,e)},[e,Y]),O=Oe.useCallback(i=>e.current.rootElementRef.current?Nve(e.current.rootElementRef.current,i):null,[e]),t=Oe.useCallback(i=>e.current.rootElementRef.current?Uve(e.current.rootElementRef.current,i):null,[e]),l=Oe.useCallback((i,C)=>e.current.rootElementRef.current?Hve(e.current.rootElementRef.current,{id:i,field:C}):null,[e]);Mi(e,{getCellValue:j,getCellParams:F,getCellElement:l,getRowValue:Y,getRowFormattedValue:D,getRowParams:x,getRowElement:t,getColumnHeaderParams:r,getColumnHeaderElement:O},"public")}const ZT=(e,r,x,F,j)=>{const Y=r===x-1;return e===Jo.LEFT&&Y?!0:F?e===Jo.LEFT?!0:e===Jo.RIGHT?!Y:!Y||j:!1},KT=(e,r)=>e===Jo.RIGHT&&r===0,epe=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],tpe=["changeReason","unstable_updateValueOnRender"];let Vu=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const f_={[Vu.LEFT]:Jo.LEFT,[Vu.RIGHT]:Jo.RIGHT,[Vu.NONE]:void 0,[Vu.VIRTUAL]:void 0},WI={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Mo.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},rpe=e=>{const{align:r,showLeftBorder:x,showRightBorder:F,pinnedPosition:j,isEditable:Y,isSelected:D,isSelectionMode:O,classes:t}=e,l={root:["cell",`cell--text${Gn(r)}`,D&&"selected",Y&&"cell--editable",x&&"cell--withLeftBorder",F&&"cell--withRightBorder",j===Vu.LEFT&&"cell--pinnedLeft",j===Vu.RIGHT&&"cell--pinnedRight",O&&!Y&&"cell--selectionMode"]};return qn(l,ki,t)},npe=Oe.forwardRef(function(r,x){var xe;const{column:F,rowId:j,editCellState:Y,align:D,colIndex:O,width:t,className:l,style:S,colSpan:i,disableDragEvents:C,isNotVisible:w,pinnedOffset:v,pinnedPosition:m,sectionIndex:a,sectionLength:n,gridHasFiller:s,onClick:o,onDoubleClick:h,onMouseDown:f,onMouseUp:u,onMouseOver:b,onKeyDown:p,onKeyUp:E,onDragEnter:g,onDragOver:c}=r,y=hn(r,epe),A=mi(),M=Wa(),R=F.field,T=va(A,()=>{try{const Se=A.current.getCellParams(j,R);return Se.api=A.current,Se}catch(Ee){if(Ee instanceof C3)return WI;throw Ee}},mF),L=va(A,()=>A.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:j,field:R})),{cellMode:P,hasFocus:d,isEditable:k=!1,value:I}=T,N=F.type==="actions"&&((xe=F.getActions)==null?void 0:xe.call(F,A.current.getRowParams(j)).some(Ee=>!Ee.props.disabled)),B=(P==="view"||!k)&&!N?T.tabIndex:-1,{classes:G,getCellClassName:U}=M,W=[va(A,()=>A.current.unstable_applyPipeProcessors("cellClassName",[],{id:j,field:R}).filter(Boolean).join(" "))];F.cellClassName&&W.push(typeof F.cellClassName=="function"?F.cellClassName(T):F.cellClassName),F.display==="flex"&&W.push(Hr["cell--flex"]),U&&W.push(U(T));const V=T.formattedValue??I,$=Oe.useRef(null),Z=vi(x,$),q=Oe.useRef(null),ae=M.cellSelection??!1,ie=f_[m],fe=KT(ie,a),Q=ZT(ie,a,n,M.showCellVerticalBorder,s),J={align:D,showLeftBorder:fe,showRightBorder:Q,isEditable:k,classes:M.classes,pinnedPosition:m,isSelected:L,isSelectionMode:ae},oe=rpe(J),K=Oe.useCallback(Ee=>Se=>{const ke=A.current.getCellParams(j,R||"");A.current.publishEvent(Ee,ke,Se),u&&u(Se)},[A,R,u,j]),ne=Oe.useCallback(Ee=>Se=>{const ke=A.current.getCellParams(j,R||"");A.current.publishEvent(Ee,ke,Se),f&&f(Se)},[A,R,f,j]),ce=Oe.useCallback((Ee,Se)=>ke=>{if(!A.current.getRow(j))return;const Te=A.current.getCellParams(j,R||"");A.current.publishEvent(Ee,Te,ke),Se&&Se(ke)},[A,R,j]),re=Oe.useMemo(()=>{if(w)return{padding:0,opacity:0,width:0,border:0};const Ee=Ge({"--width":`${t}px`},S);return m===Vu.LEFT&&(Ee.left=v),m===Vu.RIGHT&&(Ee.right=v),Ee},[t,w,S,v,m]);if(Oe.useEffect(()=>{if(!d||P===Mo.Edit)return;const Ee=oo(A.current.rootElementRef.current);if($.current&&!$.current.contains(Ee.activeElement)){const Se=$.current.querySelector('[tabindex="0"]'),ke=q.current||Se||$.current;if(zve())ke.focus({preventScroll:!0});else{const Te=A.current.getScrollPosition();ke.focus(),A.current.scroll(Te)}}},[d,P,A]),T===WI)return null;let ee=y.onFocus,de,le;if(Y===null&&F.renderCell&&(de=F.renderCell(T)),Y!==null&&F.renderEditCell){const Ee=A.current.getRowWithUpdatedValues(j,F.field),Se=hn(Y,tpe),ke=F.valueFormatter?F.valueFormatter(Y.value,Ee,F,A):T.formattedValue,Te=Ge({},T,{row:Ee,formattedValue:ke},Se);de=F.renderEditCell(Te),W.push(Hr["cell--editing"]),W.push(G==null?void 0:G["cell--editing"])}if(de===void 0){const Ee=V==null?void 0:V.toString();de=Ee,le=Ee}Oe.isValidElement(de)&&N&&(de=Oe.cloneElement(de,{focusElementRef:q}));const he=C?null:{onDragEnter:ce("cellDragEnter",g),onDragOver:ce("cellDragOver",c)};return Ce.jsx("div",Ge({ref:Z,className:Ln(l,W,oe.root),role:"gridcell","data-field":R,"data-colindex":O,"aria-colindex":O+1,"aria-colspan":i,style:re,title:le,tabIndex:B,onClick:ce("cellClick",o),onDoubleClick:ce("cellDoubleClick",h),onMouseOver:ce("cellMouseOver",b),onMouseDown:ne("cellMouseDown"),onMouseUp:K("cellMouseUp"),onKeyDown:ce("cellKeyDown",p),onKeyUp:ce("cellKeyUp",E)},he,y,{onFocus:ee,children:de}))}),ape=t0(npe),ipe=["label","icon","showInMenu","onClick"],ope=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],rv=Oe.forwardRef((e,r)=>{var S;const x=Wa();if(!e.showInMenu){const{label:i,icon:C,onClick:w}=e,v=hn(e,ipe),m=a=>{w==null||w(a)};return Ce.jsx(x.slots.baseIconButton,Ge({ref:r,size:"small",role:"menuitem","aria-label":i},v,{onClick:m},(S=x.slotProps)==null?void 0:S.baseIconButton,{children:Oe.cloneElement(C,{fontSize:"small"})}))}const{label:F,icon:j,onClick:Y,closeMenuOnClick:D=!0,closeMenu:O}=e,t=hn(e,ope),l=i=>{Y==null||Y(i),D&&(O==null||O())};return Ce.jsxs(uo,Ge({ref:r},t,{onClick:l,children:[j&&Ce.jsx(_p,{children:j}),F]}))}),spe=["field","type","align","width","height","empty","style","className"],$I="1.3em",lpe="1.2em",YI=[40,80],upe={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},cpe=e=>{const{align:r,classes:x,empty:F}=e,j={root:["cell","cellSkeleton",`cell--text${r?Gn(r):"Left"}`,F&&"cellEmpty"]};return qn(j,ki,x)},fpe=Dfe(12345);function dpe(e){const{field:r,type:x,align:F,width:j,height:Y,empty:D=!1,style:O,className:t}=e,l=hn(e,spe),i={classes:Wa().classes,align:F,empty:D},C=cpe(i),w=Oe.useMemo(()=>{if(x==="boolean"||x==="actions")return{variant:"circular",width:$I,height:$I};const[m,a]=x?upe[x]??YI:YI;return{variant:"text",width:`${Math.round(fpe(m,a))}%`,height:lpe}},[x]);return Ce.jsx("div",Ge({"data-field":r,className:Ln(C.root,t),style:Ge({height:Y,maxWidth:j,minWidth:j},O)},l,{children:!D&&Ce.jsx(G9,Ge({},w))}))}const hpe=t0(dpe);function vpe(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?vW(Sc(e.palette.divider,1),.88):hW(Sc(e.palette.divider,1),.68)}const XI={[`.${Hr.columnSeparator}, .${Hr["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},ZI={[`& .${Hr.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Hr.menuIcon}`]:{width:"auto",visibility:"visible"}},ppe="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",gpe=ln("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,r)=>[{[`&.${Hr.autoHeight}`]:r.autoHeight},{[`&.${Hr.aggregationColumnHeader}`]:r.aggregationColumnHeader},{[`&.${Hr["aggregationColumnHeader--alignLeft"]}`]:r["aggregationColumnHeader--alignLeft"]},{[`&.${Hr["aggregationColumnHeader--alignCenter"]}`]:r["aggregationColumnHeader--alignCenter"]},{[`&.${Hr["aggregationColumnHeader--alignRight"]}`]:r["aggregationColumnHeader--alignRight"]},{[`&.${Hr.aggregationColumnHeaderLabel}`]:r.aggregationColumnHeaderLabel},{[`&.${Hr["root--disableUserSelection"]} .${Hr.cell}`]:r["root--disableUserSelection"]},{[`&.${Hr.autosizing}`]:r.autosizing},{[`& .${Hr.editBooleanCell}`]:r.editBooleanCell},{[`& .${Hr.cell}`]:r.cell},{[`& .${Hr["cell--editing"]}`]:r["cell--editing"]},{[`& .${Hr["cell--textCenter"]}`]:r["cell--textCenter"]},{[`& .${Hr["cell--textLeft"]}`]:r["cell--textLeft"]},{[`& .${Hr["cell--textRight"]}`]:r["cell--textRight"]},{[`& .${Hr["cell--rangeTop"]}`]:r["cell--rangeTop"]},{[`& .${Hr["cell--rangeBottom"]}`]:r["cell--rangeBottom"]},{[`& .${Hr["cell--rangeLeft"]}`]:r["cell--rangeLeft"]},{[`& .${Hr["cell--rangeRight"]}`]:r["cell--rangeRight"]},{[`& .${Hr["cell--withRightBorder"]}`]:r["cell--withRightBorder"]},{[`& .${Hr.cellCheckbox}`]:r.cellCheckbox},{[`& .${Hr.cellSkeleton}`]:r.cellSkeleton},{[`& .${Hr.checkboxInput}`]:r.checkboxInput},{[`& .${Hr["columnHeader--alignCenter"]}`]:r["columnHeader--alignCenter"]},{[`& .${Hr["columnHeader--alignLeft"]}`]:r["columnHeader--alignLeft"]},{[`& .${Hr["columnHeader--alignRight"]}`]:r["columnHeader--alignRight"]},{[`& .${Hr["columnHeader--dragging"]}`]:r["columnHeader--dragging"]},{[`& .${Hr["columnHeader--moving"]}`]:r["columnHeader--moving"]},{[`& .${Hr["columnHeader--numeric"]}`]:r["columnHeader--numeric"]},{[`& .${Hr["columnHeader--sortable"]}`]:r["columnHeader--sortable"]},{[`& .${Hr["columnHeader--sorted"]}`]:r["columnHeader--sorted"]},{[`& .${Hr["columnHeader--withRightBorder"]}`]:r["columnHeader--withRightBorder"]},{[`& .${Hr.columnHeader}`]:r.columnHeader},{[`& .${Hr.headerFilterRow}`]:r.headerFilterRow},{[`& .${Hr.columnHeaderCheckbox}`]:r.columnHeaderCheckbox},{[`& .${Hr.columnHeaderDraggableContainer}`]:r.columnHeaderDraggableContainer},{[`& .${Hr.columnHeaderTitleContainer}`]:r.columnHeaderTitleContainer},{[`& .${Hr["columnSeparator--resizable"]}`]:r["columnSeparator--resizable"]},{[`& .${Hr["columnSeparator--resizing"]}`]:r["columnSeparator--resizing"]},{[`& .${Hr.columnSeparator}`]:r.columnSeparator},{[`& .${Hr.filterIcon}`]:r.filterIcon},{[`& .${Hr.iconSeparator}`]:r.iconSeparator},{[`& .${Hr.menuIcon}`]:r.menuIcon},{[`& .${Hr.menuIconButton}`]:r.menuIconButton},{[`& .${Hr.menuOpen}`]:r.menuOpen},{[`& .${Hr.menuList}`]:r.menuList},{[`& .${Hr["row--editable"]}`]:r["row--editable"]},{[`& .${Hr["row--editing"]}`]:r["row--editing"]},{[`& .${Hr["row--dragging"]}`]:r["row--dragging"]},{[`& .${Hr.row}`]:r.row},{[`& .${Hr.rowReorderCellPlaceholder}`]:r.rowReorderCellPlaceholder},{[`& .${Hr.rowReorderCell}`]:r.rowReorderCell},{[`& .${Hr["rowReorderCell--draggable"]}`]:r["rowReorderCell--draggable"]},{[`& .${Hr.sortIcon}`]:r.sortIcon},{[`& .${Hr.withBorderColor}`]:r.withBorderColor},{[`& .${Hr.treeDataGroupingCell}`]:r.treeDataGroupingCell},{[`& .${Hr.treeDataGroupingCellToggle}`]:r.treeDataGroupingCellToggle},{[`& .${Hr.treeDataGroupingCellLoadingContainer}`]:r.treeDataGroupingCellLoadingContainer},{[`& .${Hr.detailPanelToggleCell}`]:r.detailPanelToggleCell},{[`& .${Hr["detailPanelToggleCell--expanded"]}`]:r["detailPanelToggleCell--expanded"]},r.root]})(({theme:e})=>{var s,o;const r=gh(),x=va(r,qu),F=vpe(e),j=e.shape.borderRadius,Y=e.vars?e.vars.palette.background.default:((s=e.mixins.MuiDataGrid)==null?void 0:s.containerBackground)??e.palette.background.default,D=((o=e.mixins.MuiDataGrid)==null?void 0:o.pinnedBackground)??Y,O=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Sc(e.palette.background.default,e.palette.action.disabledOpacity),t=(e.vars||e).palette.action.hoverOpacity,l=(e.vars||e).palette.action.hover,S=(e.vars||e).palette.action.selectedOpacity,i=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${S})`:Sc(e.palette.primary.main,S),C=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( ${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity} - ))`:Tc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),w=e.vars?l:HC(D,l,t),v=e.vars?i:HC(D,i,S),m=e.vars?l:HC(v,l,t),a={backgroundColor:i,"&:hover":{backgroundColor:C,"@media (hover: none)":{backgroundColor:i}}};return Ge({"--unstable_DataGrid-radius":typeof j=="number"?`${j}px`:j,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":O,"--DataGrid-containerBackground":Y,"--DataGrid-pinnedBackground":D,"--DataGrid-rowBorderColor":F,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:F,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${Hr.main} > *:first-child${sme}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${Hr.autoHeight}`]:{height:"auto"},[`&.${Hr.autosizing}`]:{[`& .${Hr.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${Hr.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${Hr.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${Hr.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${Hr.groupingCriteriaCell}`]:{width:"unset"},[`& .${Hr.treeDataGroupingCell}`]:{width:"unset"}},[`& .${Hr.columnHeader}, & .${Hr.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Hr.columnHeader}:focus-within, & .${Hr.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Tc(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Hr.columnHeader}:focus, & .${Hr.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`&.${Hr["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${Hr["root--noToolbar"]} [aria-rowindex="1"] .${Hr["columnHeader--last"]}`]:{borderTopRightRadius:!y.hasScrollY||y.scrollbarSize===0?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${Hr.columnHeaderCheckbox}, & .${Hr.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Hr.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Hr["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${Hr["columnHeader--sorted"]} .${Hr.iconButtonContainer}, & .${Hr["columnHeader--filtered"]} .${Hr.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Hr.columnHeader}:not(.${Hr["columnHeader--sorted"]}) .${Hr.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Hr.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${Hr.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Hr["columnHeader--filledGroup"]} .${Hr.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Hr.sortIcon}, & .${Hr.filterIcon}`]:{fontSize:"inherit"},[`& .${Hr["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Hr["columnHeader--alignCenter"]} .${Hr.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Hr["columnHeader--alignRight"]} .${Hr.columnHeaderDraggableContainer}, & .${Hr["columnHeader--alignRight"]} .${Hr.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Hr["columnHeader--alignCenter"]} .${Hr.menuIcon}, & .${Hr["columnHeader--alignRight"]} .${Hr.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Hr["columnHeader--alignRight"]} .${Hr.menuIcon}, & .${Hr["columnHeader--alignRight"]} .${Hr.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Hr["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${Hr["columnHeader--pinnedLeft"]}, & .${Hr["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${Hr.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:F},[`& .${Hr.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${Hr.columnHeaders}:hover`]:nR,[`& .${Hr.columnHeader}:hover`]:aR,[`& .${Hr.columnHeader}:not(.${Hr["columnHeader--sorted"]}):hover .${Hr.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${Hr.columnHeaders}`]:nR,[`& .${Hr.columnHeader}`]:aR},[`& .${Hr["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Hr["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Hr["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:F}},[`&.${Hr["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Hr.iconSeparator}`]:{color:"inherit"},[`& .${Hr.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${Hr.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Hr.headerFilterRow}`]:{[`& .${Hr.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${Hr["row--borderBottom"]} .${Hr.columnHeader}, + ))`:Sc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),w=e.vars?l:kC(D,l,t),v=e.vars?i:kC(D,i,S),m=e.vars?l:kC(v,l,t),a={backgroundColor:i,"&:hover":{backgroundColor:C,"@media (hover: none)":{backgroundColor:i}}};return Ge({"--unstable_DataGrid-radius":typeof j=="number"?`${j}px`:j,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":O,"--DataGrid-containerBackground":Y,"--DataGrid-pinnedBackground":D,"--DataGrid-rowBorderColor":F,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:F,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${Hr.main} > *:first-child${ppe}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${Hr.autoHeight}`]:{height:"auto"},[`&.${Hr.autosizing}`]:{[`& .${Hr.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${Hr.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${Hr.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${Hr.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${Hr.groupingCriteriaCell}`]:{width:"unset"},[`& .${Hr.treeDataGroupingCell}`]:{width:"unset"}},[`& .${Hr.columnHeader}, & .${Hr.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Hr.columnHeader}:focus-within, & .${Hr.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Sc(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Hr.columnHeader}:focus, & .${Hr.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`&.${Hr["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${Hr["root--noToolbar"]} [aria-rowindex="1"] .${Hr["columnHeader--last"]}`]:{borderTopRightRadius:!x.hasScrollY||x.scrollbarSize===0?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${Hr.columnHeaderCheckbox}, & .${Hr.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Hr.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Hr["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${Hr["columnHeader--sorted"]} .${Hr.iconButtonContainer}, & .${Hr["columnHeader--filtered"]} .${Hr.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Hr.columnHeader}:not(.${Hr["columnHeader--sorted"]}) .${Hr.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Hr.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${Hr.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Hr["columnHeader--filledGroup"]} .${Hr.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Hr.sortIcon}, & .${Hr.filterIcon}`]:{fontSize:"inherit"},[`& .${Hr["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Hr["columnHeader--alignCenter"]} .${Hr.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Hr["columnHeader--alignRight"]} .${Hr.columnHeaderDraggableContainer}, & .${Hr["columnHeader--alignRight"]} .${Hr.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Hr["columnHeader--alignCenter"]} .${Hr.menuIcon}, & .${Hr["columnHeader--alignRight"]} .${Hr.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Hr["columnHeader--alignRight"]} .${Hr.menuIcon}, & .${Hr["columnHeader--alignRight"]} .${Hr.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Hr["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${Hr["columnHeader--pinnedLeft"]}, & .${Hr["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${Hr.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:F},[`& .${Hr.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${Hr.columnHeaders}:hover`]:XI,[`& .${Hr.columnHeader}:hover`]:ZI,[`& .${Hr.columnHeader}:not(.${Hr["columnHeader--sorted"]}):hover .${Hr.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${Hr.columnHeaders}`]:XI,[`& .${Hr.columnHeader}`]:ZI},[`& .${Hr["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Hr["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Hr["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:F}},[`&.${Hr["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Hr.iconSeparator}`]:{color:"inherit"},[`& .${Hr.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${Hr.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Hr.headerFilterRow}`]:{[`& .${Hr.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${Hr["row--borderBottom"]} .${Hr.columnHeader}, & .${Hr["row--borderBottom"]} .${Hr.filler}, - & .${Hr["row--borderBottom"]} .${Hr.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Hr["row--borderBottom"]} .${Hr.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${Hr.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${Hr["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hr.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":a},[`& .${Hr["container--top"]}, & .${Hr["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${Hr.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":a},[`& .${Hr["virtualScrollerContent--overflowed"]} .${Hr["row--lastVisible"]} .${Hr.cell}`]:{borderTopColor:"transparent"},[`&.${Hr["root--disableUserSelection"]} .${Hr.cell}`]:{userSelect:"none"},[`& .${Hr["row--dynamicHeight"]} > .${Hr.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${Hr.cellEmpty}`]:{padding:0,height:"unset"},[`& .${Hr.cell}.${Hr["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Hr.cell}.${Hr["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Hr["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Hr["row--editing"]} .${Hr.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${Hr.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Hr.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${Hr.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${Hr.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Hr.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${Hr["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Hr.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${Hr.withBorderColor}`]:{borderColor:F},[`& .${Hr["cell--withLeftBorder"]}, & .${Hr["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${Hr["cell--withRightBorder"]}, & .${Hr["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Hr["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${Hr["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${Hr["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${Hr["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${Hr.virtualScrollerContent} .${Hr.row}`]:{"&:hover":{[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{backgroundColor:w}},"&.Mui-selected":{[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{backgroundColor:v},"&:hover":{[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{backgroundColor:m}}}},[`& .${Hr.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${Hr.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${Hr.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Hr.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Hr["columnHeader--dragging"]}, & .${Hr["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${Hr["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${Hr.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Hr.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Hr.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Hr.treeDataGroupingCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${Hr.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Hr.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${Hr.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${Hr["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--rowBorderColor)"},[`&.${Hr["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${Hr.filler}`]:{flex:1},[`& .${Hr["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Hr["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${Hr.virtualScrollerContent}, & .${Hr["scrollbar--vertical"]}, & .${Hr.pinnedRows}`]:{display:"none"}}})});function HC(e,r,y,F=1){const j=(t,l)=>Math.round((t**(1/F)*(1-y)+l**(1/F)*y)**F),Y=wy(e),D=wy(r),O=[j(Y.values[0],D.values[0]),j(Y.values[1],D.values[1]),j(Y.values[2],D.values[2])];return TT({type:"rgb",values:O})}const ume=["className"],cme=(e,r)=>{const{autoHeight:y,classes:F,showCellVerticalBorder:j}=e,Y={root:["root",y&&"autoHeight",`root--density${Gn(r)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",j&&"withVerticalBorder"]};return qn(Y,ki,F)},fme=Oe.forwardRef(function(r,y){const F=Wa(),{className:j}=r,Y=hn(r,ume),D=vh(),O=va(D,j0),t=D.current.rootElementRef,l=pi(t,y),S=F,i=cme(S,O),[C,w]=Oe.useState(!1);return Gi(()=>{w(!0)},[]),C?Ce.jsx(lme,Ge({ref:l,className:Ln(j,i.root),ownerState:S},Y)):null}),dme=["className"],hme=e=>{const{classes:r}=e;return qn({root:["footerContainer","withBorderColor"]},ki,r)},vme=po("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,r)=>r.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),pme=Oe.forwardRef(function(r,y){const{className:F}=r,j=hn(r,dme),Y=Wa(),D=hme(Y);return Ce.jsx(vme,Ge({ref:y,className:Ln(D.root,F),ownerState:Y},j))}),gme=["className"],mme=e=>{const{classes:r}=e;return qn({root:["overlay"]},ki,r)},yme=po("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,r)=>r.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),d6=Oe.forwardRef(function(r,y){const{className:F}=r,j=hn(r,gme),Y=Wa(),D=mme(Y);return Ce.jsx(yme,Ge({ref:y,className:Ln(D.root,F),ownerState:Y},j))}),xme=["className","children"],bme=e=>{const{classes:r}=e;return qn({root:["toolbarContainer"]},ki,r)},wme=po("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,r)=>r.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),Tme=Oe.forwardRef(function(r,y){const{className:F,children:j}=r,Y=hn(r,xme),D=Wa(),O=bme(D);return j?Ce.jsx(wme,Ge({ref:y,className:Ln(F,O.root),ownerState:D},Y,{children:j})):null}),Sme=e=>{const{classes:r,open:y}=e;return qn({root:["menuIcon",y&&"menuOpen"],button:["menuIconButton"]},ki,r)},Cme=Oe.memo(e=>{var i,C;const{colDef:r,open:y,columnMenuId:F,columnMenuButtonId:j,iconButtonRef:Y}=e,D=yi(),O=Wa(),t=Ge({},e,{classes:O.classes}),l=Sme(t),S=Oe.useCallback(w=>{w.preventDefault(),w.stopPropagation(),D.current.toggleColumnMenu(r.field)},[D,r.field]);return Ce.jsx("div",{className:l.root,children:Ce.jsx(O.slots.baseTooltip,Ge({title:D.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(i=O.slotProps)==null?void 0:i.baseTooltip,{children:Ce.jsx(O.slots.baseIconButton,Ge({ref:Y,tabIndex:-1,className:l.button,"aria-label":D.current.getLocaleText("columnMenuLabel"),size:"small",onClick:S,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?F:void 0,id:j},(C=O.slotProps)==null?void 0:C.baseIconButton,{children:Ce.jsx(O.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Mme({columnMenuId:e,columnMenuButtonId:r,ContentComponent:y,contentComponentProps:F,field:j,open:Y,target:D,onExited:O}){const t=yi(),l=t.current.getColumn(j),S=pa(i=>{i&&(i.stopPropagation(),D!=null&&D.contains(i.target))||t.current.hideColumnMenu()});return!D||!l?null:Ce.jsx(ZT,{placement:`bottom-${l.align==="right"?"start":"end"}`,open:Y,target:D,onClose:S,onExited:O,children:Ce.jsx(y,Ge({colDef:l,hideMenu:S,open:Y,id:e,labelledby:r},F))})}const Ame=["className"],Eme=e=>{const{classes:r}=e;return qn({root:["columnHeaderTitle"]},ki,r)},Pme=po("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,r)=>r.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Lme=Oe.forwardRef(function(r,y){const{className:F}=r,j=hn(r,Ame),Y=Wa(),D=Eme(Y);return Ce.jsx(Pme,Ge({ref:y,className:Ln(D.root,F),ownerState:Y},j))});function Ime(e){var t;const{label:r,description:y}=e,F=Wa(),j=Oe.useRef(null),[Y,D]=Oe.useState(""),O=Oe.useCallback(()=>{if(!y&&(j!=null&&j.current)){const l=Ige(j.current);D(l?r:"")}},[y,r]);return Ce.jsx(F.slots.baseTooltip,Ge({title:y||Y},(t=F.slotProps)==null?void 0:t.baseTooltip,{children:Ce.jsx(Lme,{onMouseOver:O,ref:j,children:r})}))}const Rme=["resizable","resizing","height","side"];var h6=function(e){return e.Left="left",e.Right="right",e}(h6||{});const kme=e=>{const{resizable:r,resizing:y,classes:F,side:j}=e,Y={root:["columnSeparator",r&&"columnSeparator--resizable",y&&"columnSeparator--resizing",j&&`columnSeparator--side${Gn(j)}`],icon:["iconSeparator"]};return qn(Y,ki,F)};function Dme(e){const{height:r,side:y=h6.Right}=e,F=hn(e,Rme),j=Wa(),Y=Ge({},e,{side:y,classes:j.classes}),D=kme(Y),O=Oe.useCallback(t=>{t.preventDefault(),t.stopPropagation()},[]);return Ce.jsx("div",Ge({className:D.root,style:{minHeight:r,opacity:j.showColumnVerticalBorder?0:1}},F,{onClick:O,children:Ce.jsx(j.slots.columnResizeIcon,{className:D.icon})}))}const Ome=Oe.memo(Dme),Fme=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],I_=Oe.forwardRef(function(r,y){const{classes:F,colIndex:j,height:Y,isResizing:D,sortDirection:O,hasFocus:t,tabIndex:l,separatorSide:S,isDraggable:i,headerComponent:C,description:w,width:v,columnMenuIconButton:m=null,columnMenu:a=null,columnTitleIconButtons:n=null,headerClassName:s,label:o,resizable:h,draggableContainerProps:f,columnHeaderSeparatorProps:u,style:b}=r,p=hn(r,Fme),E=vh(),g=Wa(),c=Oe.useRef(null),x=pi(c,y);let A="none";return O!=null&&(A=O==="asc"?"ascending":"descending"),Oe.useLayoutEffect(()=>{var R;const M=E.current.state.columnMenu;if(t&&!M.open){const L=c.current.querySelector('[tabindex="0"]')||c.current;L==null||L.focus(),(R=E.current.columnHeadersContainerRef)!=null&&R.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0)}},[E,t]),Ce.jsxs("div",Ge({ref:x,className:Ln(F.root,s),style:Ge({},b,{height:Y,width:v,minWidth:v,maxWidth:v}),role:"columnheader",tabIndex:l,"aria-colindex":j+1,"aria-sort":A,"aria-label":C==null?o:void 0},p,{children:[Ce.jsxs("div",Ge({className:F.draggableContainer,draggable:i,role:"presentation"},f,{children:[Ce.jsxs("div",{className:F.titleContainer,role:"presentation",children:[Ce.jsx("div",{className:F.titleContainerContent,children:C!==void 0?C:Ce.jsx(Ime,{label:o,description:w,columnWidth:v})}),n]}),m]})),Ce.jsx(Ome,Ge({resizable:!g.disableColumnResize&&!!h,resizing:D,height:Y,side:S},u)),a]}))}),_me=e=>{const{colDef:r,classes:y,isDragging:F,sortDirection:j,showRightBorder:Y,showLeftBorder:D,filterItemsCounter:O,pinnedPosition:t}=e,l=j!=null,S=O!=null&&O>0,i=r.type==="number",C={root:["columnHeader",r.headerAlign==="left"&&"columnHeader--alignLeft",r.headerAlign==="center"&&"columnHeader--alignCenter",r.headerAlign==="right"&&"columnHeader--alignRight",r.sortable&&"columnHeader--sortable",F&&"columnHeader--moving",l&&"columnHeader--sorted",S&&"columnHeader--filtered",i&&"columnHeader--numeric","withBorderColor",Y&&"columnHeader--withRightBorder",D&&"columnHeader--withLeftBorder",t==="left"&&"columnHeader--pinnedLeft",t==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return qn(C,ki,y)};function zme(e){var $,Z,q;const{colDef:r,columnMenuOpen:y,colIndex:F,headerHeight:j,isResizing:Y,isLast:D,sortDirection:O,sortIndex:t,filterItemsCounter:l,hasFocus:S,tabIndex:i,disableReorder:C,separatorSide:w,style:v,pinnedPosition:m,indexInSection:a,sectionLength:n,gridHasFiller:s}=e,o=vh(),h=Wa(),f=Oe.useRef(null),u=Ui(),b=Ui(),p=Oe.useRef(null),[E,g]=Oe.useState(y),c=Oe.useMemo(()=>!h.disableColumnReorder&&!C&&!r.disableReorder,[h.disableColumnReorder,C,r.disableReorder]);let x;r.renderHeader&&(x=r.renderHeader(o.current.getColumnHeaderParams(r.field)));const A=iS(m,a),M=aS(m,a,n,h.showCellVerticalBorder,s),R=Ge({},e,{classes:h.classes,showRightBorder:M,showLeftBorder:A}),T=_me(R),L=Oe.useCallback(ae=>ie=>{$b(ie)||o.current.publishEvent(ae,o.current.getColumnHeaderParams(r.field),ie)},[o,r.field]),P=Oe.useMemo(()=>({onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),d=Oe.useMemo(()=>c?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[c,L]),k=Oe.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);Oe.useEffect(()=>{E||g(y)},[E,y]);const I=Oe.useCallback(()=>{g(!1)},[]),N=!h.disableColumnMenu&&!r.disableColumnMenu&&Ce.jsx(Cme,{colDef:r,columnMenuId:u,columnMenuButtonId:b,open:E,iconButtonRef:p}),B=Ce.jsx(Mme,{columnMenuId:u,columnMenuButtonId:b,field:r.field,open:y,target:p.current,ContentComponent:h.slots.columnMenu,contentComponentProps:($=h.slotProps)==null?void 0:$.columnMenu,onExited:I}),G=r.sortingOrder??h.sortingOrder,U=(r.sortable||O!=null)&&!r.hideSortIcons&&!h.disableColumnSorting,H=Ce.jsxs(Oe.Fragment,{children:[!h.disableColumnFilter&&Ce.jsx(h.slots.columnHeaderFilterIconButton,Ge({field:r.field,counter:l},(Z=h.slotProps)==null?void 0:Z.columnHeaderFilterIconButton)),U&&Ce.jsx(h.slots.columnHeaderSortIcon,Ge({field:r.field,direction:O,index:t,sortingOrder:G,disabled:!r.sortable},(q=h.slotProps)==null?void 0:q.columnHeaderSortIcon))]});Oe.useLayoutEffect(()=>{var ie;const ae=o.current.state.columnMenu;if(S&&!ae.open){const Q=f.current.querySelector('[tabindex="0"]')||f.current;Q==null||Q.focus(),(ie=o.current.columnHeadersContainerRef)!=null&&ie.current&&(o.current.columnHeadersContainerRef.current.scrollLeft=0)}},[o,S]);const W=typeof r.headerClassName=="function"?r.headerClassName({field:r.field,colDef:r}):r.headerClassName,V=r.headerName??r.field;return Ce.jsx(I_,Ge({ref:f,classes:T,columnMenuOpen:y,colIndex:F,height:j,isResizing:Y,sortDirection:O,hasFocus:S,tabIndex:i,separatorSide:w,isDraggable:c,headerComponent:x,description:r.description,elementId:r.field,width:r.computedWidth,columnMenuIconButton:N,columnTitleIconButtons:H,headerClassName:Ln(W,D&&Hr["columnHeader--last"]),label:V,resizable:!h.disableColumnResize&&!!r.resizable,"data-field":r.field,columnMenu:B,draggableContainerProps:d,columnHeaderSeparatorProps:k,style:v},P))}const Bme=e0(zme),Nme=["className"],Ume=e=>{const{classes:r}=e;return qn({root:["iconButtonContainer"]},ki,r)},Hme=po("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,r)=>r.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),R_=Oe.forwardRef(function(r,y){const{className:F}=r,j=hn(r,Nme),Y=Wa(),D=Ume(Y);return Ce.jsx(Hme,Ge({ref:y,className:Ln(D.root,F),ownerState:Y},j))}),Vme=["direction","index","sortingOrder","disabled"],jme=e=>{const{classes:r}=e;return qn({icon:["sortIcon"]},ki,r)};function Gme(e,r,y,F){let j;const Y={};return r==="asc"?j=e.columnSortedAscendingIcon:r==="desc"?j=e.columnSortedDescendingIcon:(j=e.columnUnsortedIcon,Y.sortingOrder=F),j?Ce.jsx(j,Ge({fontSize:"small",className:y},Y)):null}function Wme(e){var C;const{direction:r,index:y,sortingOrder:F,disabled:j}=e,Y=hn(e,Vme),D=yi(),O=Wa(),t=Ge({},e,{classes:O.classes}),l=jme(t),S=Gme(O.slots,r,l.icon,F);if(!S)return null;const i=Ce.jsx(O.slots.baseIconButton,Ge({tabIndex:-1,"aria-label":D.current.getLocaleText("columnHeaderSortIconLabel"),title:D.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:j},(C=O.slotProps)==null?void 0:C.baseIconButton,Y,{children:S}));return Ce.jsxs(R_,{children:[y!=null&&Ce.jsx(y5,{badgeContent:y,color:"default",overlap:"circular",children:i}),y==null&&i]})}const $me=Oe.memo(Wme),Yme=e=>{const{classes:r}=e;return qn({icon:["filterIcon"]},ki,r)};function Xme(e){var v,m;const{counter:r,field:y,onClick:F}=e,j=yi(),Y=Wa(),D=Ge({},e,{classes:Y.classes}),O=Yme(D),t=va(j,gg),l=Ui(),S=Ui(),i=Oe.useCallback(a=>{a.preventDefault(),a.stopPropagation();const{open:n,openedPanelValue:s}=gg(j.current.state);n&&s===Td.filters?j.current.hideFilterPanel():j.current.showFilterPanel(void 0,S,l),F&&F(j.current.getColumnHeaderParams(y),a)},[j,y,F,S,l]);if(!r)return null;const C=t.open&&t.labelId===l,w=Ce.jsx(Y.slots.baseIconButton,Ge({id:l,onClick:i,color:"default","aria-label":j.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":C,"aria-controls":C?S:void 0},(v=Y.slotProps)==null?void 0:v.baseIconButton,{children:Ce.jsx(Y.slots.columnFilteredIcon,{className:O.icon,fontSize:"small"})}));return Ce.jsx(Y.slots.baseTooltip,Ge({title:j.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(m=Y.slotProps)==null?void 0:m.baseTooltip,{children:Ce.jsxs(R_,{children:[r>1&&Ce.jsx(y5,{badgeContent:r,color:"default",children:w}),r===1&&w]})}))}const iR=ci(Ce.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),oR=ci(Ce.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),sR=ci(Ce.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),lR=ci(Ce.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Zme=ci(Ce.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),uR=ci(Ce.jsx("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"),Kme=ci(Ce.jsx("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");ci(Ce.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ci(Ce.jsx("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");const Jme=ci(Ce.jsx("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"),Qme=ci(Ce.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),qme=ci(Ce.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),eye=ci(Ce.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),tye=ci(Ce.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),rye=ci(Ce.jsx("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"),VC=ci(Ce.jsx("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"),cR=ci(Ce.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),nye=ci(Ce.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),aye=ci(Ce.jsx("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"),fR=ci(Ce.jsx("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"),iye=ci(Ce.jsx("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"),oye=ci(Ce.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),sye=ci(Ce.jsx("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"),lye=ci(Ce.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),uye=ci(Ce.jsx("g",{children:Ce.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),cye=ci(Ce.jsx("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"}),"Clear");ci(Ce.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const fye=ci(Ce.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),dye=["hideMenu","colDef","id","labelledby","className","children","open"],hye=ln(_b)(()=>({minWidth:248})),vye=Oe.forwardRef(function(r,y){const{hideMenu:F,id:j,labelledby:Y,className:D,children:O,open:t}=r,l=hn(r,dye),S=Oe.useCallback(i=>{rS(i.key)&&i.preventDefault(),o6(i.key)&&F(i)},[F]);return Ce.jsx(hye,Ge({id:j,ref:y,className:Ln(Hr.menuList,D),"aria-labelledby":Y,onKeyDown:S,autoFocus:t},l,{children:O}))}),pye=["displayOrder"],gye=e=>{const r=vh(),{defaultSlots:y,defaultSlotProps:F,slots:j={},slotProps:Y={},hideMenu:D,colDef:O,addDividers:t=!0}=e,l=Oe.useMemo(()=>Ge({},y,j),[y,j]),S=Oe.useMemo(()=>{if(!Y||Object.keys(Y).length===0)return F;const w=Ge({},Y);return Object.entries(F).forEach(([v,m])=>{w[v]=Ge({},m,Y[v]||{})}),w},[F,Y]),i=r.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),C=Oe.useMemo(()=>{const w=Object.keys(y);return Object.keys(j).filter(v=>!w.includes(v))},[j,y]);return Oe.useMemo(()=>{const m=Array.from(new Set([...i,...C])).filter(a=>l[a]!=null).sort((a,n)=>{const s=S[a],o=S[n],h=Number.isFinite(s==null?void 0:s.displayOrder)?s.displayOrder:100,f=Number.isFinite(o==null?void 0:o.displayOrder)?o.displayOrder:100;return h-f});return m.reduce((a,n,s)=>{let o={colDef:O,onClick:D};const h=S[n];if(h){const f=hn(h,pye);o=Ge({},o,f)}return t&&s!==m.length-1?[...a,[l[n],o],[lee,{}]]:[...a,[l[n],o]]},[])},[t,O,i,D,l,S,C])};function mye(e){const{colDef:r,onClick:y}=e,F=yi(),j=Wa(),O=rl(F).filter(l=>l.disableColumnMenu!==!0).length===1,t=Oe.useCallback(l=>{O||(F.current.setColumnVisibility(r.field,!1),y(l))},[F,r.field,y,O]);return j.disableColumnSelector||r.hideable===!1?null:Ce.jsxs(uo,{onClick:t,disabled:O,children:[Ce.jsx(_p,{children:Ce.jsx(j.slots.columnMenuHideIcon,{fontSize:"small"})}),Ce.jsx($m,{children:F.current.getLocaleText("columnMenuHideColumn")})]})}function yye(e){const{onClick:r}=e,y=yi(),F=Wa(),j=Oe.useCallback(Y=>{r(Y),y.current.showPreferences(Td.columns)},[y,r]);return F.disableColumnSelector?null:Ce.jsxs(uo,{onClick:j,children:[Ce.jsx(_p,{children:Ce.jsx(F.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),Ce.jsx($m,{children:y.current.getLocaleText("columnMenuManageColumns")})]})}function xye(e){return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(mye,Ge({},e)),Ce.jsx(yye,Ge({},e))]})}function bye(e){const{colDef:r,onClick:y}=e,F=yi(),j=Wa(),Y=Oe.useCallback(D=>{y(D),F.current.showFilterPanel(r.field)},[F,r.field,y]);return j.disableColumnFilter||!r.filterable?null:Ce.jsxs(uo,{onClick:Y,children:[Ce.jsx(_p,{children:Ce.jsx(j.slots.columnMenuFilterIcon,{fontSize:"small"})}),Ce.jsx($m,{children:F.current.getLocaleText("columnMenuFilter")})]})}function wye(e){const{colDef:r,onClick:y}=e,F=yi(),j=va(F,uf),Y=Wa(),D=Oe.useMemo(()=>{if(!r)return null;const S=j.find(i=>i.field===r.field);return S==null?void 0:S.sort},[r,j]),O=r.sortingOrder??Y.sortingOrder,t=Oe.useCallback(S=>{y(S);const i=S.currentTarget.getAttribute("data-value")||null;F.current.sortColumn(r.field,i===D?null:i)},[F,r,y,D]);if(Y.disableColumnSorting||!r||!r.sortable||!O.some(S=>!!S))return null;const l=S=>{const i=F.current.getLocaleText(S);return typeof i=="function"?i(r):i};return Ce.jsxs(Oe.Fragment,{children:[O.includes("asc")&&D!=="asc"?Ce.jsxs(uo,{onClick:t,"data-value":"asc",children:[Ce.jsx(_p,{children:Ce.jsx(Y.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),Ce.jsx($m,{children:l("columnMenuSortAsc")})]}):null,O.includes("desc")&&D!=="desc"?Ce.jsxs(uo,{onClick:t,"data-value":"desc",children:[Ce.jsx(_p,{children:Ce.jsx(Y.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),Ce.jsx($m,{children:l("columnMenuSortDesc")})]}):null,O.includes(null)&&D!=null?Ce.jsxs(uo,{onClick:t,children:[Ce.jsx(_p,{}),Ce.jsx($m,{children:F.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Tye=["defaultSlots","defaultSlotProps","slots","slotProps"],Sye={columnMenuSortItem:wye,columnMenuFilterItem:bye,columnMenuColumnsItem:xye},Cye={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Mye=Oe.forwardRef(function(r,y){const{defaultSlots:F,defaultSlotProps:j,slots:Y,slotProps:D}=r,O=hn(r,Tye),t=gye(Ge({},O,{defaultSlots:F,defaultSlotProps:j,slots:Y,slotProps:D}));return Ce.jsx(vye,Ge({ref:y},O,{children:t.map(([l,S],i)=>Ce.jsx(l,Ge({},S),i))}))}),Aye=Oe.forwardRef(function(r,y){return Ce.jsx(Mye,Ge({},r,{ref:y,defaultSlots:Sye,defaultSlotProps:Cye}))}),Eye=["className","slotProps"],Pye=e=>{const{classes:r}=e;return qn({root:["panelWrapper"]},ki,r)},Lye=ln("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,r)=>r.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Iye=()=>!0,k_=Oe.forwardRef(function(r,y){const{className:F,slotProps:j={}}=r,Y=hn(r,Eye),D=Wa(),O=Pye(D);return Ce.jsx(x5,Ge({open:!0,disableEnforceFocus:!0,isEnabled:Iye},j.TrapFocus,{children:Ce.jsx(Lye,Ge({ref:y,tabIndex:-1,className:Ln(F,O.root),ownerState:D},Y))}))}),Rye=(e,r)=>{const y=new Set(Object.keys(e).filter(Y=>e[Y]===!1)),F=new Set(Object.keys(r).filter(Y=>r[Y]===!1));if(y.size!==F.size)return!1;let j=!0;return y.forEach(Y=>{F.has(Y)||(j=!1)}),j},kye=(e,r)=>(e.headerName||e.field).toLowerCase().indexOf(r)>-1,Dye=e=>{const{classes:r}=e;return qn({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},ki,r)},dR=new Intl.Collator;function D_(e){var A,M,R;const r=yi(),y=Oe.useRef(null),F=va(r,yd),j=wg(()=>yf(r)).current,Y=va(r,yf),D=Wa(),[O,t]=Oe.useState(""),l=Dye(D),{sort:S,searchPredicate:i=kye,autoFocusSearchField:C=!0,disableShowHideToggle:w=!1,disableResetButton:v=!1,toggleAllMode:m="all",getTogglableColumns:a}=e,n=Oe.useMemo(()=>Rye(Y,j),[Y,j]),s=Oe.useMemo(()=>{switch(S){case"asc":return[...F].sort((T,L)=>dR.compare(T.headerName||T.field,L.headerName||L.field));case"desc":return[...F].sort((T,L)=>-dR.compare(T.headerName||T.field,L.headerName||L.field));default:return F}},[F,S]),o=T=>{const{name:L}=T.target;r.current.setColumnVisibility(L,Y[L]===!1)},h=Oe.useMemo(()=>{const T=a?a(s):null,L=T?s.filter(({field:P})=>T.includes(P)):s;return O?L.filter(P=>i(P,O.toLowerCase())):L},[s,O,i,a]),f=Oe.useCallback(T=>{const L=yf(r),P=Ge({},L),d=a?a(F):null;return(m==="filteredOnly"?h:F).forEach(k=>{k.hideable&&(d==null||d.includes(k.field))&&(T?delete P[k.field]:P[k.field]=!1)}),r.current.setColumnVisibilityModel(P)},[r,F,a,m,h]),u=Oe.useCallback(T=>{t(T.target.value)},[]),b=Oe.useMemo(()=>h.filter(T=>T.hideable),[h]),p=Oe.useMemo(()=>b.every(T=>Y[T.field]==null||Y[T.field]!==!1),[Y,b]),E=Oe.useMemo(()=>b.every(T=>Y[T.field]===!1),[Y,b]),g=Oe.useRef(null);Oe.useEffect(()=>{C?y.current.focus():g.current&&typeof g.current.focus=="function"&&g.current.focus()},[C]);let c=!1;const x=T=>c===!1&&T.hideable!==!1?(c=!0,!0):!1;return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(Fye,{className:l.header,ownerState:D,children:Ce.jsx(D.slots.baseTextField,Ge({placeholder:r.current.getLocaleText("columnsManagementSearchTitle"),inputRef:y,value:O,onChange:u,variant:"outlined",size:"small",InputProps:{startAdornment:Ce.jsx(D.slots.baseInputAdornment,{position:"start",children:Ce.jsx(D.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(A=D.slotProps)==null?void 0:A.baseTextField))}),Ce.jsxs(Oye,{className:l.root,ownerState:D,children:[h.map(T=>{var L;return Ce.jsx(tM,{className:l.row,control:Ce.jsx(D.slots.baseCheckbox,Ge({disabled:T.hideable===!1,checked:Y[T.field]!==!1,onClick:o,name:T.field,sx:{p:.5},inputRef:x(T)?g:void 0},(L=D.slotProps)==null?void 0:L.baseCheckbox)),label:T.headerName||T.field},T.field)}),h.length===0&&Ce.jsx(zye,{ownerState:D,children:r.current.getLocaleText("columnsManagementNoColumns")})]}),(!w||!v)&&h.length>0?Ce.jsxs(_ye,{ownerState:D,className:l.footer,children:[w?Ce.jsx("span",{}):Ce.jsx(tM,{control:Ce.jsx(D.slots.baseCheckbox,Ge({disabled:b.length===0,checked:p,indeterminate:!p&&!E,onClick:()=>f(!p),name:r.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(M=D.slotProps)==null?void 0:M.baseCheckbox)),label:r.current.getLocaleText("columnsManagementShowHideAllText")}),v?null:Ce.jsx(D.slots.baseButton,Ge({onClick:()=>r.current.setColumnVisibilityModel(j),disabled:n},(R=D.slotProps)==null?void 0:R.baseButton,{children:r.current.getLocaleText("columnsManagementReset")}))]}):null]})}const Oye=ln("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,r)=>r.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),Fye=ln("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,r)=>r.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),_ye=ln("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,r)=>r.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),zye=ln("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function Bye(e){var y;const r=Wa();return Ce.jsx(k_,Ge({},e,{children:Ce.jsx(D_,Ge({},(y=r.slotProps)==null?void 0:y.columnsManagement))}))}const Nye=["children","className","classes"],Uye=Ma("MuiDataGrid",["panel","paper"]),Hye=ln(Xp,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,r)=>r.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Vye=ln(Ri,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,r)=>r.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),jye=Oe.forwardRef((e,r)=>{const{children:y,className:F}=e,j=hn(e,Nye),Y=yi(),D=Wa(),O=Uye,[t,l]=Oe.useState(!1),S=Oe.useCallback(()=>{Y.current.hidePreferences()},[Y]),i=Oe.useCallback(m=>{T2(m.key)&&Y.current.hidePreferences()},[Y]),C=Oe.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{l(!0)},effect:()=>()=>{l(!1)}}],[]),[w,v]=Oe.useState(null);return Oe.useEffect(()=>{var a,n;const m=(n=(a=Y.current.rootElementRef)==null?void 0:a.current)==null?void 0:n.querySelector('[data-id="gridPanelAnchor"]');m&&v(m)},[Y]),w?Ce.jsx(Hye,Ge({ref:r,placement:"bottom-start",className:Ln(F,O.panel),ownerState:D,anchorEl:w,modifiers:C},j,{children:Ce.jsx(j9,{mouseEvent:"onMouseUp",onClickAway:S,children:Ce.jsx(Vye,{className:O.paper,ownerState:D,elevation:8,onKeyDown:i,children:t&&y})})})):null}),Gye=["className"],Wye=e=>{const{classes:r}=e;return qn({root:["panelContent"]},ki,r)},$ye=po("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,r)=>r.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Yye(e){const{className:r}=e,y=hn(e,Gye),F=Wa(),j=Wye(F);return Ce.jsx($ye,Ge({className:Ln(r,j.root),ownerState:F},y))}const Xye=["className"],Zye=e=>{const{classes:r}=e;return qn({root:["panelFooter"]},ki,r)},Kye=po("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,r)=>r.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function Jye(e){const{className:r}=e,y=hn(e,Xye),F=Wa(),j=Zye(F);return Ce.jsx(Kye,Ge({className:Ln(r,j.root),ownerState:F},y))}const Qye=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],qye=["InputComponentProps"],e1e=e=>{const{classes:r}=e;return qn({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ki,r)},t1e=ln("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,r)=>r.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),r1e=ln("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,r)=>r.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),n1e=ln("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,r)=>r.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),a1e=ln("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,r)=>r.filterFormColumnInput})({width:150}),i1e=ln("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,r)=>r.filterFormOperatorInput})({width:120}),o1e=ln("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,r)=>r.filterFormValueInput})({width:190}),s1e=e=>{switch(e){case mu.And:return"filterPanelOperatorAnd";case mu.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},G1=e=>e.headerName||e.field,hR=new Intl.Collator,vR=Oe.forwardRef(function(r,y){var Q,J,oe,K,ne,ce,re,ee,de;const{item:F,hasMultipleFilters:j,deleteFilter:Y,applyFilterChanges:D,showMultiFilterOperators:O,disableMultiFilterOperator:t,applyMultiFilterOperatorChanges:l,focusElementRef:S,logicOperators:i=[mu.And,mu.Or],columnsSort:C,filterColumns:w,deleteIconProps:v={},logicOperatorInputProps:m={},operatorInputProps:a={},columnInputProps:n={},valueInputProps:s={},readOnly:o}=r,h=hn(r,Qye),f=yi(),u=va(f,gv),b=va(f,zF),p=va(f,ul),E=Ui(),g=Ui(),c=Ui(),x=Ui(),A=Wa(),M=e1e(A),R=Oe.useRef(null),T=Oe.useRef(null),L=p.logicOperator??mu.And,P=j&&i.length>0,d=((Q=A.slotProps)==null?void 0:Q.baseFormControl)||{},I=(((J=A.slotProps)==null?void 0:J.baseSelect)||{}).native??!1,N=((oe=A.slotProps)==null?void 0:oe.baseInputLabel)||{},B=((K=A.slotProps)==null?void 0:K.baseSelectOption)||{},{InputComponentProps:G}=s,U=hn(s,qye),{filteredColumns:H,selectedField:W}=Oe.useMemo(()=>{let le=F.field;const he=u[F.field].filterable===!1?u[F.field]:null;if(he)return{filteredColumns:[he],selectedField:le};if(w===void 0||typeof w!="function")return{filteredColumns:b,selectedField:le};const xe=w({field:F.field,columns:b,currentFilters:(p==null?void 0:p.items)||[]});return{filteredColumns:b.filter(Ee=>{const Se=xe.includes(Ee.field);return Ee.field===F.field&&!Se&&(le=void 0),Se}),selectedField:le}},[w,p==null?void 0:p.items,b,F.field,u]),V=Oe.useMemo(()=>{switch(C){case"asc":return H.sort((le,he)=>hR.compare(G1(le),G1(he)));case"desc":return H.sort((le,he)=>-hR.compare(G1(le),G1(he)));default:return H}},[H,C]),$=F.field?f.current.getColumn(F.field):null,Z=Oe.useMemo(()=>{var le;return!F.operator||!$?null:(le=$.filterOperators)==null?void 0:le.find(he=>he.value===F.operator)},[F,$]),q=Oe.useCallback(le=>{const he=le.target.value,xe=f.current.getColumn(he);if(xe.field===$.field)return;const Ee=xe.filterOperators.find(Te=>Te.value===F.operator)||xe.filterOperators[0];let ke=!Ee.InputComponent||Ee.InputComponent!==(Z==null?void 0:Z.InputComponent)||xe.type!==$.type?void 0:F.value;if(xe.type==="singleSelect"&&ke!==void 0){const Te=xe,Ae=pg(Te);Array.isArray(ke)?ke=ke.filter(be=>C2(be,Ae,Te==null?void 0:Te.getOptionValue)!==void 0):C2(F.value,Ae,Te==null?void 0:Te.getOptionValue)===void 0&&(ke=void 0)}D(Ge({},F,{field:he,operator:Ee.value,value:ke}))},[f,D,F,$,Z]),ae=Oe.useCallback(le=>{const he=le.target.value,xe=$==null?void 0:$.filterOperators.find(Se=>Se.value===he),Ee=!(xe!=null&&xe.InputComponent)||(xe==null?void 0:xe.InputComponent)!==(Z==null?void 0:Z.InputComponent);D(Ge({},F,{operator:he,value:Ee?void 0:F.value}))},[D,F,$,Z]),ie=Oe.useCallback(le=>{const he=le.target.value===mu.And.toString()?mu.And:mu.Or;l(he)},[l]),fe=()=>{Y(F)};return Oe.useImperativeHandle(S,()=>({focus:()=>{var le;Z!=null&&Z.InputComponent?(le=R==null?void 0:R.current)==null||le.focus():T.current.focus()}}),[Z]),Ce.jsxs(t1e,Ge({ref:y,className:M.root,"data-id":F.id,ownerState:A},h,{children:[Ce.jsx(r1e,Ge({variant:"standard",as:A.slots.baseFormControl},d,v,{className:Ln(M.deleteIcon,d.className,v.className),ownerState:A,children:Ce.jsx(A.slots.baseIconButton,Ge({"aria-label":f.current.getLocaleText("filterPanelDeleteIconLabel"),title:f.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small",disabled:o},(ne=A.slotProps)==null?void 0:ne.baseIconButton,{children:Ce.jsx(A.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),Ce.jsx(n1e,Ge({variant:"standard",as:A.slots.baseFormControl},d,m,{sx:Ge({display:P?"flex":"none",visibility:O?"visible":"hidden"},d.sx||{},m.sx||{}),className:Ln(M.logicOperatorInput,d.className,m.className),ownerState:A,children:Ce.jsx(A.slots.baseSelect,Ge({inputProps:{"aria-label":f.current.getLocaleText("filterPanelLogicOperator")},value:L??"",onChange:ie,disabled:!!t||i.length===1,native:I},(ce=A.slotProps)==null?void 0:ce.baseSelect,{children:i.map(le=>Oe.createElement(A.slots.baseSelectOption,Ge({},B,{native:I,key:le.toString(),value:le.toString()}),f.current.getLocaleText(s1e(le))))}))})),Ce.jsxs(a1e,Ge({variant:"standard",as:A.slots.baseFormControl},d,n,{className:Ln(M.columnInput,d.className,n.className),ownerState:A,children:[Ce.jsx(A.slots.baseInputLabel,Ge({},N,{htmlFor:E,id:g,children:f.current.getLocaleText("filterPanelColumns")})),Ce.jsx(A.slots.baseSelect,Ge({labelId:g,id:E,label:f.current.getLocaleText("filterPanelColumns"),value:W??"",onChange:q,native:I,disabled:o},(re=A.slotProps)==null?void 0:re.baseSelect,{children:V.map(le=>Oe.createElement(A.slots.baseSelectOption,Ge({},B,{native:I,key:le.field,value:le.field}),G1(le)))}))]})),Ce.jsxs(i1e,Ge({variant:"standard",as:A.slots.baseFormControl},d,a,{className:Ln(M.operatorInput,d.className,a.className),ownerState:A,children:[Ce.jsx(A.slots.baseInputLabel,Ge({},N,{htmlFor:c,id:x,children:f.current.getLocaleText("filterPanelOperator")})),Ce.jsx(A.slots.baseSelect,Ge({labelId:x,label:f.current.getLocaleText("filterPanelOperator"),id:c,value:F.operator,onChange:ae,native:I,inputRef:T,disabled:o},(ee=A.slotProps)==null?void 0:ee.baseSelect,{children:(de=$==null?void 0:$.filterOperators)==null?void 0:de.map(le=>Oe.createElement(A.slots.baseSelectOption,Ge({},B,{native:I,key:le.value,value:le.value}),le.label||f.current.getLocaleText(`filterOperator${Gn(le.value)}`)))}))]})),Ce.jsx(o1e,Ge({variant:"standard",as:A.slots.baseFormControl},d,U,{className:Ln(M.valueInput,d.className,U.className),ownerState:A,children:Z!=null&&Z.InputComponent?Ce.jsx(Z.InputComponent,Ge({apiRef:f,item:F,applyValue:D,focusElementRef:R,disabled:o},Z.InputComponentProps,G),F.field):null}))]}))}),l1e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],pR=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),u1e=Oe.forwardRef(function(r,y){var x,A;const F=yi(),j=Wa(),Y=va(F,ul),D=va(F,zF),O=va(F,lve),t=Oe.useRef(null),l=Oe.useRef(null),{logicOperators:S=[mu.And,mu.Or],columnsSort:i,filterFormProps:C,getColumnForNewFilter:w,disableAddFilterButton:v=!1,disableRemoveAllButton:m=!1}=r,a=hn(r,l1e),n=F.current.upsertFilterItem,s=Oe.useCallback(M=>{F.current.setFilterLogicOperator(M)},[F]),o=Oe.useCallback(()=>{let M;if(w&&typeof w=="function"){const R=w({currentFilters:(Y==null?void 0:Y.items)||[],columns:D});if(R===null)return null;M=D.find(({field:T})=>T===R)}else M=D.find(R=>{var T;return(T=R.filterOperators)==null?void 0:T.length});return M?pR(M):null},[Y==null?void 0:Y.items,D,w]),h=Oe.useCallback(()=>{if(w===void 0||typeof w!="function")return o();const M=Y.items.length?Y.items:[o()].filter(Boolean),R=w({currentFilters:M,columns:D});if(R===null)return null;const T=D.find(({field:L})=>L===R);return T?pR(T):null},[Y.items,D,w,o]),f=Oe.useMemo(()=>Y.items.length?Y.items:(l.current||(l.current=o()),l.current?[l.current]:[]),[Y.items,o]),u=f.length>1,{readOnlyFilters:b,validFilters:p}=Oe.useMemo(()=>f.reduce((M,R)=>(O[R.field]?M.validFilters.push(R):M.readOnlyFilters.push(R),M),{readOnlyFilters:[],validFilters:[]}),[f,O]),E=Oe.useCallback(()=>{const M=h();M&&F.current.upsertFilterItems([...f,M])},[F,h,f]),g=Oe.useCallback(M=>{const R=p.length===1;F.current.deleteFilterItem(M),R&&F.current.hideFilterPanel()},[F,p.length]),c=Oe.useCallback(()=>p.length===1&&p[0].value===void 0?(F.current.deleteFilterItem(p[0]),F.current.hideFilterPanel()):F.current.setFilterModel(Ge({},Y,{items:b}),"removeAllFilterItems"),[F,b,Y,p]);return Oe.useEffect(()=>{S.length>0&&Y.logicOperator&&!S.includes(Y.logicOperator)&&s(S[0])},[S,s,Y.logicOperator]),Oe.useEffect(()=>{p.length>0&&t.current.focus()},[p.length]),Ce.jsxs(k_,Ge({ref:y},a,{children:[Ce.jsxs(Yye,{children:[b.map((M,R)=>Ce.jsx(vR,Ge({item:M,applyFilterChanges:n,deleteFilter:g,hasMultipleFilters:u,showMultiFilterOperators:R>0,disableMultiFilterOperator:R!==1,applyMultiFilterOperatorChanges:s,focusElementRef:null,readOnly:!0,logicOperators:S,columnsSort:i},C),M.id==null?R:M.id)),p.map((M,R)=>Ce.jsx(vR,Ge({item:M,applyFilterChanges:n,deleteFilter:g,hasMultipleFilters:u,showMultiFilterOperators:b.length+R>0,disableMultiFilterOperator:b.length+R!==1,applyMultiFilterOperatorChanges:s,focusElementRef:R===p.length-1?t:null,logicOperators:S,columnsSort:i},C),M.id==null?R+b.length:M.id))]}),!j.disableMultipleColumnsFiltering&&!(v&&m)?Ce.jsxs(Jye,{children:[v?Ce.jsx("span",{}):Ce.jsx(j.slots.baseButton,Ge({onClick:E,startIcon:Ce.jsx(j.slots.filterPanelAddIcon,{})},(x=j.slotProps)==null?void 0:x.baseButton,{children:F.current.getLocaleText("filterPanelAddFilter")})),!m&&p.length>0?Ce.jsx(j.slots.baseButton,Ge({onClick:c,startIcon:Ce.jsx(j.slots.filterPanelRemoveAllIcon,{})},(A=j.slotProps)==null?void 0:A.baseButton,{children:F.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),c1e=Oe.forwardRef(function(r,y){var w,v;const{slotProps:F={}}=r,j=F.button||{},Y=F.tooltip||{},D=Ui(),O=Ui(),t=yi(),l=Wa(),S=va(t,gg),i=m=>{var a;S.open&&S.openedPanelValue===Td.columns?t.current.hidePreferences():t.current.showPreferences(Td.columns,O,D),(a=j.onClick)==null||a.call(j,m)};if(l.disableColumnSelector)return null;const C=S.open&&S.panelId===O;return Ce.jsx(l.slots.baseTooltip,Ge({title:t.current.getLocaleText("toolbarColumnsLabel"),enterDelay:1e3},Y,(w=l.slotProps)==null?void 0:w.baseTooltip,{children:Ce.jsx(l.slots.baseButton,Ge({ref:y,id:D,size:"small","aria-label":t.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":C,"aria-controls":C?O:void 0,startIcon:Ce.jsx(l.slots.columnSelectorIcon,{})},j,{onClick:i},(v=l.slotProps)==null?void 0:v.baseButton,{children:t.current.getLocaleText("toolbarColumns")}))}))}),f1e=Oe.forwardRef(function(r,y){var u,b;const{slotProps:F={}}=r,j=F.button||{},Y=F.tooltip||{},D=yi(),O=Wa(),t=va(D,j0),l=Ui(),S=Ui(),[i,C]=Oe.useState(!1),w=Oe.useRef(null),v=pi(y,w),m=[{icon:Ce.jsx(O.slots.densityCompactIcon,{}),label:D.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:Ce.jsx(O.slots.densityStandardIcon,{}),label:D.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:Ce.jsx(O.slots.densityComfortableIcon,{}),label:D.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],a=Oe.useMemo(()=>{switch(t){case"compact":return Ce.jsx(O.slots.densityCompactIcon,{});case"comfortable":return Ce.jsx(O.slots.densityComfortableIcon,{});default:return Ce.jsx(O.slots.densityStandardIcon,{})}},[t,O]),n=p=>{var E;C(g=>!g),(E=j.onClick)==null||E.call(j,p)},s=()=>{C(!1)},o=p=>{D.current.setDensity(p),C(!1)},h=p=>{rS(p.key)&&p.preventDefault(),o6(p.key)&&C(!1)};if(O.disableDensitySelector)return null;const f=m.map((p,E)=>Ce.jsxs(uo,{onClick:()=>o(p.value),selected:p.value===t,children:[Ce.jsx(_p,{children:p.icon}),p.label]},E));return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(O.slots.baseTooltip,Ge({title:D.current.getLocaleText("toolbarDensityLabel"),enterDelay:1e3},Y,(u=O.slotProps)==null?void 0:u.baseTooltip,{children:Ce.jsx(O.slots.baseButton,Ge({ref:v,size:"small",startIcon:a,"aria-label":D.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?S:void 0,id:l},j,{onClick:n},(b=O.slotProps)==null?void 0:b.baseButton,{children:D.current.getLocaleText("toolbarDensity")}))})),Ce.jsx(ZT,{open:i,target:w.current,onClose:s,position:"bottom-start",children:Ce.jsx(_b,{id:S,className:Hr.menuList,"aria-labelledby":l,onKeyDown:h,autoFocusItem:i,children:f})})]})}),d1e=e=>{const{classes:r}=e;return qn({root:["toolbarFilterList"]},ki,r)},h1e=ln("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,r)=>r.toolbarFilterList})(({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)})),v1e=Oe.forwardRef(function(r,y){var n,s;const{slotProps:F={}}=r,j=F.button||{},Y=F.tooltip||{},D=yi(),O=Wa(),t=va(D,a_),l=va(D,gv),S=va(D,gg),i=d1e(O),C=Ui(),w=Ui(),v=Oe.useMemo(()=>{if(S.open)return D.current.getLocaleText("toolbarFiltersTooltipHide");if(t.length===0)return D.current.getLocaleText("toolbarFiltersTooltipShow");const o=f=>l[f.field].filterOperators.find(u=>u.value===f.operator).label||D.current.getLocaleText(`filterOperator${Gn(f.operator)}`).toString(),h=f=>{const{getValueAsString:u}=l[f.field].filterOperators.find(b=>b.value===f.operator);return u?u(f.value):f.value};return Ce.jsxs("div",{children:[D.current.getLocaleText("toolbarFiltersTooltipActive")(t.length),Ce.jsx(h1e,{className:i.root,ownerState:O,children:t.map((f,u)=>Ge({},l[f.field]&&Ce.jsx("li",{children:`${l[f.field].headerName||f.field} + & .${Hr["row--borderBottom"]} .${Hr.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Hr["row--borderBottom"]} .${Hr.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${Hr.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${Hr["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hr.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":a},[`& .${Hr["container--top"]}, & .${Hr["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${Hr.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":a},[`& .${Hr["virtualScrollerContent--overflowed"]} .${Hr["row--lastVisible"]} .${Hr.cell}`]:{borderTopColor:"transparent"},[`&.${Hr["root--disableUserSelection"]} .${Hr.cell}`]:{userSelect:"none"},[`& .${Hr["row--dynamicHeight"]} > .${Hr.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${Hr.cellEmpty}`]:{padding:0,height:"unset"},[`& .${Hr.cell}.${Hr["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Hr.cell}.${Hr["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Hr["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Hr["row--editing"]} .${Hr.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${Hr.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Hr.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${Hr.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${Hr.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Hr.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${Hr["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Hr.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${Hr.withBorderColor}`]:{borderColor:F},[`& .${Hr["cell--withLeftBorder"]}, & .${Hr["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${Hr["cell--withRightBorder"]}, & .${Hr["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Hr["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${Hr["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${Hr["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${Hr["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${Hr.virtualScrollerContent} .${Hr.row}`]:{"&:hover":{[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{backgroundColor:w}},"&.Mui-selected":{[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{backgroundColor:v},"&:hover":{[`& .${Hr["cell--pinnedLeft"]}, & .${Hr["cell--pinnedRight"]}`]:{backgroundColor:m}}}},[`& .${Hr.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${Hr.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${Hr.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Hr.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Hr["columnHeader--dragging"]}, & .${Hr["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${Hr["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${Hr.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Hr.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Hr.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Hr.treeDataGroupingCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${Hr.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Hr.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${Hr.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${Hr["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--rowBorderColor)"},[`&.${Hr["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${Hr.filler}`]:{flex:1},[`& .${Hr["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Hr["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${Hr.virtualScrollerContent}, & .${Hr["scrollbar--vertical"]}, & .${Hr.pinnedRows}`]:{display:"none"}}})});function kC(e,r,x,F=1){const j=(t,l)=>Math.round((t**(1/F)*(1-x)+l**(1/F)*x)**F),Y=wy(e),D=wy(r),O=[j(Y.values[0],D.values[0]),j(Y.values[1],D.values[1]),j(Y.values[2],D.values[2])];return pT({type:"rgb",values:O})}const mpe=["className"],ype=(e,r)=>{const{autoHeight:x,classes:F,showCellVerticalBorder:j}=e,Y={root:["root",x&&"autoHeight",`root--density${Gn(r)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",j&&"withVerticalBorder"]};return qn(Y,ki,F)},xpe=Oe.forwardRef(function(r,x){const F=Wa(),{className:j}=r,Y=hn(r,mpe),D=gh(),O=va(D,G0),t=D.current.rootElementRef,l=vi(t,x),S=F,i=ype(S,O),[C,w]=Oe.useState(!1);return Gi(()=>{w(!0)},[]),C?Ce.jsx(gpe,Ge({ref:l,className:Ln(j,i.root),ownerState:S},Y)):null}),bpe=["className"],wpe=e=>{const{classes:r}=e;return qn({root:["footerContainer","withBorderColor"]},ki,r)},Tpe=po("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,r)=>r.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Spe=Oe.forwardRef(function(r,x){const{className:F}=r,j=hn(r,bpe),Y=Wa(),D=wpe(Y);return Ce.jsx(Tpe,Ge({ref:x,className:Ln(D.root,F),ownerState:Y},j))}),Cpe=["className"],Mpe=e=>{const{classes:r}=e;return qn({root:["overlay"]},ki,r)},Ape=po("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,r)=>r.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),n6=Oe.forwardRef(function(r,x){const{className:F}=r,j=hn(r,Cpe),Y=Wa(),D=Mpe(Y);return Ce.jsx(Ape,Ge({ref:x,className:Ln(D.root,F),ownerState:Y},j))}),Epe=["className","children"],Ppe=e=>{const{classes:r}=e;return qn({root:["toolbarContainer"]},ki,r)},Lpe=po("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,r)=>r.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),Ipe=Oe.forwardRef(function(r,x){const{className:F,children:j}=r,Y=hn(r,Epe),D=Wa(),O=Ppe(D);return j?Ce.jsx(Lpe,Ge({ref:x,className:Ln(F,O.root),ownerState:D},Y,{children:j})):null}),Rpe=e=>{const{classes:r,open:x}=e;return qn({root:["menuIcon",x&&"menuOpen"],button:["menuIconButton"]},ki,r)},kpe=Oe.memo(e=>{var i,C;const{colDef:r,open:x,columnMenuId:F,columnMenuButtonId:j,iconButtonRef:Y}=e,D=mi(),O=Wa(),t=Ge({},e,{classes:O.classes}),l=Rpe(t),S=Oe.useCallback(w=>{w.preventDefault(),w.stopPropagation(),D.current.toggleColumnMenu(r.field)},[D,r.field]);return Ce.jsx("div",{className:l.root,children:Ce.jsx(O.slots.baseTooltip,Ge({title:D.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(i=O.slotProps)==null?void 0:i.baseTooltip,{children:Ce.jsx(O.slots.baseIconButton,Ge({ref:Y,tabIndex:-1,className:l.button,"aria-label":D.current.getLocaleText("columnMenuLabel"),size:"small",onClick:S,"aria-haspopup":"menu","aria-expanded":x,"aria-controls":x?F:void 0,id:j},(C=O.slotProps)==null?void 0:C.baseIconButton,{children:Ce.jsx(O.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Dpe({columnMenuId:e,columnMenuButtonId:r,ContentComponent:x,contentComponentProps:F,field:j,open:Y,target:D,onExited:O}){const t=mi(),l=t.current.getColumn(j),S=pa(i=>{i&&(i.stopPropagation(),D!=null&&D.contains(i.target))||t.current.hideColumnMenu()});return!D||!l?null:Ce.jsx(UT,{placement:`bottom-${l.align==="right"?"start":"end"}`,open:Y,target:D,onClose:S,onExited:O,children:Ce.jsx(x,Ge({colDef:l,hideMenu:S,open:Y,id:e,labelledby:r},F))})}const Ope=["className"],Fpe=e=>{const{classes:r}=e;return qn({root:["columnHeaderTitle"]},ki,r)},_pe=po("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,r)=>r.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),zpe=Oe.forwardRef(function(r,x){const{className:F}=r,j=hn(r,Ope),Y=Wa(),D=Fpe(Y);return Ce.jsx(_pe,Ge({ref:x,className:Ln(D.root,F),ownerState:Y},j))});function Bpe(e){var t;const{label:r,description:x}=e,F=Wa(),j=Oe.useRef(null),[Y,D]=Oe.useState(""),O=Oe.useCallback(()=>{if(!x&&(j!=null&&j.current)){const l=Bve(j.current);D(l?r:"")}},[x,r]);return Ce.jsx(F.slots.baseTooltip,Ge({title:x||Y},(t=F.slotProps)==null?void 0:t.baseTooltip,{children:Ce.jsx(zpe,{onMouseOver:O,ref:j,children:r})}))}const Npe=["resizable","resizing","height","side"];var a6=function(e){return e.Left="left",e.Right="right",e}(a6||{});const Upe=e=>{const{resizable:r,resizing:x,classes:F,side:j}=e,Y={root:["columnSeparator",r&&"columnSeparator--resizable",x&&"columnSeparator--resizing",j&&`columnSeparator--side${Gn(j)}`],icon:["iconSeparator"]};return qn(Y,ki,F)};function Hpe(e){const{height:r,side:x=a6.Right}=e,F=hn(e,Npe),j=Wa(),Y=Ge({},e,{side:x,classes:j.classes}),D=Upe(Y),O=Oe.useCallback(t=>{t.preventDefault(),t.stopPropagation()},[]);return Ce.jsx("div",Ge({className:D.root,style:{minHeight:r,opacity:j.showColumnVerticalBorder?0:1}},F,{onClick:O,children:Ce.jsx(j.slots.columnResizeIcon,{className:D.icon})}))}const Vpe=Oe.memo(Hpe),jpe=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],d_=Oe.forwardRef(function(r,x){const{classes:F,colIndex:j,height:Y,isResizing:D,sortDirection:O,hasFocus:t,tabIndex:l,separatorSide:S,isDraggable:i,headerComponent:C,description:w,width:v,columnMenuIconButton:m=null,columnMenu:a=null,columnTitleIconButtons:n=null,headerClassName:s,label:o,resizable:h,draggableContainerProps:f,columnHeaderSeparatorProps:u,style:b}=r,p=hn(r,jpe),E=gh(),g=Wa(),c=Oe.useRef(null),y=vi(c,x);let A="none";return O!=null&&(A=O==="asc"?"ascending":"descending"),Oe.useLayoutEffect(()=>{var R;const M=E.current.state.columnMenu;if(t&&!M.open){const L=c.current.querySelector('[tabindex="0"]')||c.current;L==null||L.focus(),(R=E.current.columnHeadersContainerRef)!=null&&R.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0)}},[E,t]),Ce.jsxs("div",Ge({ref:y,className:Ln(F.root,s),style:Ge({},b,{height:Y,width:v,minWidth:v,maxWidth:v}),role:"columnheader",tabIndex:l,"aria-colindex":j+1,"aria-sort":A,"aria-label":C==null?o:void 0},p,{children:[Ce.jsxs("div",Ge({className:F.draggableContainer,draggable:i,role:"presentation"},f,{children:[Ce.jsxs("div",{className:F.titleContainer,role:"presentation",children:[Ce.jsx("div",{className:F.titleContainerContent,children:C!==void 0?C:Ce.jsx(Bpe,{label:o,description:w,columnWidth:v})}),n]}),m]})),Ce.jsx(Vpe,Ge({resizable:!g.disableColumnResize&&!!h,resizing:D,height:Y,side:S},u)),a]}))}),Gpe=e=>{const{colDef:r,classes:x,isDragging:F,sortDirection:j,showRightBorder:Y,showLeftBorder:D,filterItemsCounter:O,pinnedPosition:t}=e,l=j!=null,S=O!=null&&O>0,i=r.type==="number",C={root:["columnHeader",r.headerAlign==="left"&&"columnHeader--alignLeft",r.headerAlign==="center"&&"columnHeader--alignCenter",r.headerAlign==="right"&&"columnHeader--alignRight",r.sortable&&"columnHeader--sortable",F&&"columnHeader--moving",l&&"columnHeader--sorted",S&&"columnHeader--filtered",i&&"columnHeader--numeric","withBorderColor",Y&&"columnHeader--withRightBorder",D&&"columnHeader--withLeftBorder",t==="left"&&"columnHeader--pinnedLeft",t==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return qn(C,ki,x)};function Wpe(e){var $,Z,q;const{colDef:r,columnMenuOpen:x,colIndex:F,headerHeight:j,isResizing:Y,isLast:D,sortDirection:O,sortIndex:t,filterItemsCounter:l,hasFocus:S,tabIndex:i,disableReorder:C,separatorSide:w,style:v,pinnedPosition:m,indexInSection:a,sectionLength:n,gridHasFiller:s}=e,o=gh(),h=Wa(),f=Oe.useRef(null),u=Ui(),b=Ui(),p=Oe.useRef(null),[E,g]=Oe.useState(x),c=Oe.useMemo(()=>!h.disableColumnReorder&&!C&&!r.disableReorder,[h.disableColumnReorder,C,r.disableReorder]);let y;r.renderHeader&&(y=r.renderHeader(o.current.getColumnHeaderParams(r.field)));const A=KT(m,a),M=ZT(m,a,n,h.showCellVerticalBorder,s),R=Ge({},e,{classes:h.classes,showRightBorder:M,showLeftBorder:A}),T=Gpe(R),L=Oe.useCallback(ae=>ie=>{Nb(ie)||o.current.publishEvent(ae,o.current.getColumnHeaderParams(r.field),ie)},[o,r.field]),P=Oe.useMemo(()=>({onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),d=Oe.useMemo(()=>c?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[c,L]),k=Oe.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);Oe.useEffect(()=>{E||g(x)},[E,x]);const I=Oe.useCallback(()=>{g(!1)},[]),N=!h.disableColumnMenu&&!r.disableColumnMenu&&Ce.jsx(kpe,{colDef:r,columnMenuId:u,columnMenuButtonId:b,open:E,iconButtonRef:p}),B=Ce.jsx(Dpe,{columnMenuId:u,columnMenuButtonId:b,field:r.field,open:x,target:p.current,ContentComponent:h.slots.columnMenu,contentComponentProps:($=h.slotProps)==null?void 0:$.columnMenu,onExited:I}),G=r.sortingOrder??h.sortingOrder,U=(r.sortable||O!=null)&&!r.hideSortIcons&&!h.disableColumnSorting,H=Ce.jsxs(Oe.Fragment,{children:[!h.disableColumnFilter&&Ce.jsx(h.slots.columnHeaderFilterIconButton,Ge({field:r.field,counter:l},(Z=h.slotProps)==null?void 0:Z.columnHeaderFilterIconButton)),U&&Ce.jsx(h.slots.columnHeaderSortIcon,Ge({field:r.field,direction:O,index:t,sortingOrder:G,disabled:!r.sortable},(q=h.slotProps)==null?void 0:q.columnHeaderSortIcon))]});Oe.useLayoutEffect(()=>{var ie;const ae=o.current.state.columnMenu;if(S&&!ae.open){const Q=f.current.querySelector('[tabindex="0"]')||f.current;Q==null||Q.focus(),(ie=o.current.columnHeadersContainerRef)!=null&&ie.current&&(o.current.columnHeadersContainerRef.current.scrollLeft=0)}},[o,S]);const W=typeof r.headerClassName=="function"?r.headerClassName({field:r.field,colDef:r}):r.headerClassName,V=r.headerName??r.field;return Ce.jsx(d_,Ge({ref:f,classes:T,columnMenuOpen:x,colIndex:F,height:j,isResizing:Y,sortDirection:O,hasFocus:S,tabIndex:i,separatorSide:w,isDraggable:c,headerComponent:y,description:r.description,elementId:r.field,width:r.computedWidth,columnMenuIconButton:N,columnTitleIconButtons:H,headerClassName:Ln(W,D&&Hr["columnHeader--last"]),label:V,resizable:!h.disableColumnResize&&!!r.resizable,"data-field":r.field,columnMenu:B,draggableContainerProps:d,columnHeaderSeparatorProps:k,style:v},P))}const $pe=t0(Wpe),Ype=["className"],Xpe=e=>{const{classes:r}=e;return qn({root:["iconButtonContainer"]},ki,r)},Zpe=po("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,r)=>r.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),h_=Oe.forwardRef(function(r,x){const{className:F}=r,j=hn(r,Ype),Y=Wa(),D=Xpe(Y);return Ce.jsx(Zpe,Ge({ref:x,className:Ln(D.root,F),ownerState:Y},j))}),Kpe=["direction","index","sortingOrder","disabled"],Jpe=e=>{const{classes:r}=e;return qn({icon:["sortIcon"]},ki,r)};function Qpe(e,r,x,F){let j;const Y={};return r==="asc"?j=e.columnSortedAscendingIcon:r==="desc"?j=e.columnSortedDescendingIcon:(j=e.columnUnsortedIcon,Y.sortingOrder=F),j?Ce.jsx(j,Ge({fontSize:"small",className:x},Y)):null}function qpe(e){var C;const{direction:r,index:x,sortingOrder:F,disabled:j}=e,Y=hn(e,Kpe),D=mi(),O=Wa(),t=Ge({},e,{classes:O.classes}),l=Jpe(t),S=Qpe(O.slots,r,l.icon,F);if(!S)return null;const i=Ce.jsx(O.slots.baseIconButton,Ge({tabIndex:-1,"aria-label":D.current.getLocaleText("columnHeaderSortIconLabel"),title:D.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:j},(C=O.slotProps)==null?void 0:C.baseIconButton,Y,{children:S}));return Ce.jsxs(h_,{children:[x!=null&&Ce.jsx(i5,{badgeContent:x,color:"default",overlap:"circular",children:i}),x==null&&i]})}const e0e=Oe.memo(qpe),t0e=e=>{const{classes:r}=e;return qn({icon:["filterIcon"]},ki,r)};function r0e(e){var v,m;const{counter:r,field:x,onClick:F}=e,j=mi(),Y=Wa(),D=Ge({},e,{classes:Y.classes}),O=t0e(D),t=va(j,gg),l=Ui(),S=Ui(),i=Oe.useCallback(a=>{a.preventDefault(),a.stopPropagation();const{open:n,openedPanelValue:s}=gg(j.current.state);n&&s===Md.filters?j.current.hideFilterPanel():j.current.showFilterPanel(void 0,S,l),F&&F(j.current.getColumnHeaderParams(x),a)},[j,x,F,S,l]);if(!r)return null;const C=t.open&&t.labelId===l,w=Ce.jsx(Y.slots.baseIconButton,Ge({id:l,onClick:i,color:"default","aria-label":j.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":C,"aria-controls":C?S:void 0},(v=Y.slotProps)==null?void 0:v.baseIconButton,{children:Ce.jsx(Y.slots.columnFilteredIcon,{className:O.icon,fontSize:"small"})}));return Ce.jsx(Y.slots.baseTooltip,Ge({title:j.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(m=Y.slotProps)==null?void 0:m.baseTooltip,{children:Ce.jsxs(h_,{children:[r>1&&Ce.jsx(i5,{badgeContent:r,color:"default",children:w}),r===1&&w]})}))}const KI=ci(Ce.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),JI=ci(Ce.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),QI=ci(Ce.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),qI=ci(Ce.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),n0e=ci(Ce.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),eR=ci(Ce.jsx("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"),a0e=ci(Ce.jsx("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");ci(Ce.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ci(Ce.jsx("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");const i0e=ci(Ce.jsx("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"),o0e=ci(Ce.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),s0e=ci(Ce.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),l0e=ci(Ce.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),u0e=ci(Ce.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),c0e=ci(Ce.jsx("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"),DC=ci(Ce.jsx("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"),tR=ci(Ce.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),f0e=ci(Ce.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),d0e=ci(Ce.jsx("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"),rR=ci(Ce.jsx("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"),h0e=ci(Ce.jsx("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"),v0e=ci(Ce.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),p0e=ci(Ce.jsx("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"),g0e=ci(Ce.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),m0e=ci(Ce.jsx("g",{children:Ce.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),y0e=ci(Ce.jsx("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"}),"Clear");ci(Ce.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const x0e=ci(Ce.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),b0e=["hideMenu","colDef","id","labelledby","className","children","open"],w0e=ln(Lb)(()=>({minWidth:248})),T0e=Oe.forwardRef(function(r,x){const{hideMenu:F,id:j,labelledby:Y,className:D,children:O,open:t}=r,l=hn(r,b0e),S=Oe.useCallback(i=>{YT(i.key)&&i.preventDefault(),J5(i.key)&&F(i)},[F]);return Ce.jsx(w0e,Ge({id:j,ref:x,className:Ln(Hr.menuList,D),"aria-labelledby":Y,onKeyDown:S,autoFocus:t},l,{children:O}))}),S0e=["displayOrder"],C0e=e=>{const r=gh(),{defaultSlots:x,defaultSlotProps:F,slots:j={},slotProps:Y={},hideMenu:D,colDef:O,addDividers:t=!0}=e,l=Oe.useMemo(()=>Ge({},x,j),[x,j]),S=Oe.useMemo(()=>{if(!Y||Object.keys(Y).length===0)return F;const w=Ge({},Y);return Object.entries(F).forEach(([v,m])=>{w[v]=Ge({},m,Y[v]||{})}),w},[F,Y]),i=r.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),C=Oe.useMemo(()=>{const w=Object.keys(x);return Object.keys(j).filter(v=>!w.includes(v))},[j,x]);return Oe.useMemo(()=>{const m=Array.from(new Set([...i,...C])).filter(a=>l[a]!=null).sort((a,n)=>{const s=S[a],o=S[n],h=Number.isFinite(s==null?void 0:s.displayOrder)?s.displayOrder:100,f=Number.isFinite(o==null?void 0:o.displayOrder)?o.displayOrder:100;return h-f});return m.reduce((a,n,s)=>{let o={colDef:O,onClick:D};const h=S[n];if(h){const f=hn(h,S0e);o=Ge({},o,f)}return t&&s!==m.length-1?[...a,[l[n],o],[F9,{}]]:[...a,[l[n],o]]},[])},[t,O,i,D,l,S,C])};function M0e(e){const{colDef:r,onClick:x}=e,F=mi(),j=Wa(),O=nl(F).filter(l=>l.disableColumnMenu!==!0).length===1,t=Oe.useCallback(l=>{O||(F.current.setColumnVisibility(r.field,!1),x(l))},[F,r.field,x,O]);return j.disableColumnSelector||r.hideable===!1?null:Ce.jsxs(uo,{onClick:t,disabled:O,children:[Ce.jsx(_p,{children:Ce.jsx(j.slots.columnMenuHideIcon,{fontSize:"small"})}),Ce.jsx($m,{children:F.current.getLocaleText("columnMenuHideColumn")})]})}function A0e(e){const{onClick:r}=e,x=mi(),F=Wa(),j=Oe.useCallback(Y=>{r(Y),x.current.showPreferences(Md.columns)},[x,r]);return F.disableColumnSelector?null:Ce.jsxs(uo,{onClick:j,children:[Ce.jsx(_p,{children:Ce.jsx(F.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),Ce.jsx($m,{children:x.current.getLocaleText("columnMenuManageColumns")})]})}function E0e(e){return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(M0e,Ge({},e)),Ce.jsx(A0e,Ge({},e))]})}function P0e(e){const{colDef:r,onClick:x}=e,F=mi(),j=Wa(),Y=Oe.useCallback(D=>{x(D),F.current.showFilterPanel(r.field)},[F,r.field,x]);return j.disableColumnFilter||!r.filterable?null:Ce.jsxs(uo,{onClick:Y,children:[Ce.jsx(_p,{children:Ce.jsx(j.slots.columnMenuFilterIcon,{fontSize:"small"})}),Ce.jsx($m,{children:F.current.getLocaleText("columnMenuFilter")})]})}function L0e(e){const{colDef:r,onClick:x}=e,F=mi(),j=va(F,ff),Y=Wa(),D=Oe.useMemo(()=>{if(!r)return null;const S=j.find(i=>i.field===r.field);return S==null?void 0:S.sort},[r,j]),O=r.sortingOrder??Y.sortingOrder,t=Oe.useCallback(S=>{x(S);const i=S.currentTarget.getAttribute("data-value")||null;F.current.sortColumn(r.field,i===D?null:i)},[F,r,x,D]);if(Y.disableColumnSorting||!r||!r.sortable||!O.some(S=>!!S))return null;const l=S=>{const i=F.current.getLocaleText(S);return typeof i=="function"?i(r):i};return Ce.jsxs(Oe.Fragment,{children:[O.includes("asc")&&D!=="asc"?Ce.jsxs(uo,{onClick:t,"data-value":"asc",children:[Ce.jsx(_p,{children:Ce.jsx(Y.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),Ce.jsx($m,{children:l("columnMenuSortAsc")})]}):null,O.includes("desc")&&D!=="desc"?Ce.jsxs(uo,{onClick:t,"data-value":"desc",children:[Ce.jsx(_p,{children:Ce.jsx(Y.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),Ce.jsx($m,{children:l("columnMenuSortDesc")})]}):null,O.includes(null)&&D!=null?Ce.jsxs(uo,{onClick:t,children:[Ce.jsx(_p,{}),Ce.jsx($m,{children:F.current.getLocaleText("columnMenuUnsort")})]}):null]})}const I0e=["defaultSlots","defaultSlotProps","slots","slotProps"],R0e={columnMenuSortItem:L0e,columnMenuFilterItem:P0e,columnMenuColumnsItem:E0e},k0e={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},D0e=Oe.forwardRef(function(r,x){const{defaultSlots:F,defaultSlotProps:j,slots:Y,slotProps:D}=r,O=hn(r,I0e),t=C0e(Ge({},O,{defaultSlots:F,defaultSlotProps:j,slots:Y,slotProps:D}));return Ce.jsx(T0e,Ge({ref:x},O,{children:t.map(([l,S],i)=>Ce.jsx(l,Ge({},S),i))}))}),O0e=Oe.forwardRef(function(r,x){return Ce.jsx(D0e,Ge({},r,{ref:x,defaultSlots:R0e,defaultSlotProps:k0e}))}),F0e=["className","slotProps"],_0e=e=>{const{classes:r}=e;return qn({root:["panelWrapper"]},ki,r)},z0e=ln("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,r)=>r.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),B0e=()=>!0,v_=Oe.forwardRef(function(r,x){const{className:F,slotProps:j={}}=r,Y=hn(r,F0e),D=Wa(),O=_0e(D);return Ce.jsx(o5,Ge({open:!0,disableEnforceFocus:!0,isEnabled:B0e},j.TrapFocus,{children:Ce.jsx(z0e,Ge({ref:x,tabIndex:-1,className:Ln(F,O.root),ownerState:D},Y))}))}),N0e=(e,r)=>{const x=new Set(Object.keys(e).filter(Y=>e[Y]===!1)),F=new Set(Object.keys(r).filter(Y=>r[Y]===!1));if(x.size!==F.size)return!1;let j=!0;return x.forEach(Y=>{F.has(Y)||(j=!1)}),j},U0e=(e,r)=>(e.headerName||e.field).toLowerCase().indexOf(r)>-1,H0e=e=>{const{classes:r}=e;return qn({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},ki,r)},nR=new Intl.Collator;function p_(e){var A,M,R;const r=mi(),x=Oe.useRef(null),F=va(r,wd),j=wg(()=>bf(r)).current,Y=va(r,bf),D=Wa(),[O,t]=Oe.useState(""),l=H0e(D),{sort:S,searchPredicate:i=U0e,autoFocusSearchField:C=!0,disableShowHideToggle:w=!1,disableResetButton:v=!1,toggleAllMode:m="all",getTogglableColumns:a}=e,n=Oe.useMemo(()=>N0e(Y,j),[Y,j]),s=Oe.useMemo(()=>{switch(S){case"asc":return[...F].sort((T,L)=>nR.compare(T.headerName||T.field,L.headerName||L.field));case"desc":return[...F].sort((T,L)=>-nR.compare(T.headerName||T.field,L.headerName||L.field));default:return F}},[F,S]),o=T=>{const{name:L}=T.target;r.current.setColumnVisibility(L,Y[L]===!1)},h=Oe.useMemo(()=>{const T=a?a(s):null,L=T?s.filter(({field:P})=>T.includes(P)):s;return O?L.filter(P=>i(P,O.toLowerCase())):L},[s,O,i,a]),f=Oe.useCallback(T=>{const L=bf(r),P=Ge({},L),d=a?a(F):null;return(m==="filteredOnly"?h:F).forEach(k=>{k.hideable&&(d==null||d.includes(k.field))&&(T?delete P[k.field]:P[k.field]=!1)}),r.current.setColumnVisibilityModel(P)},[r,F,a,m,h]),u=Oe.useCallback(T=>{t(T.target.value)},[]),b=Oe.useMemo(()=>h.filter(T=>T.hideable),[h]),p=Oe.useMemo(()=>b.every(T=>Y[T.field]==null||Y[T.field]!==!1),[Y,b]),E=Oe.useMemo(()=>b.every(T=>Y[T.field]===!1),[Y,b]),g=Oe.useRef(null);Oe.useEffect(()=>{C?x.current.focus():g.current&&typeof g.current.focus=="function"&&g.current.focus()},[C]);let c=!1;const y=T=>c===!1&&T.hideable!==!1?(c=!0,!0):!1;return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(j0e,{className:l.header,ownerState:D,children:Ce.jsx(D.slots.baseTextField,Ge({placeholder:r.current.getLocaleText("columnsManagementSearchTitle"),inputRef:x,value:O,onChange:u,variant:"outlined",size:"small",InputProps:{startAdornment:Ce.jsx(D.slots.baseInputAdornment,{position:"start",children:Ce.jsx(D.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(A=D.slotProps)==null?void 0:A.baseTextField))}),Ce.jsxs(V0e,{className:l.root,ownerState:D,children:[h.map(T=>{var L;return Ce.jsx($4,{className:l.row,control:Ce.jsx(D.slots.baseCheckbox,Ge({disabled:T.hideable===!1,checked:Y[T.field]!==!1,onClick:o,name:T.field,sx:{p:.5},inputRef:y(T)?g:void 0},(L=D.slotProps)==null?void 0:L.baseCheckbox)),label:T.headerName||T.field},T.field)}),h.length===0&&Ce.jsx(W0e,{ownerState:D,children:r.current.getLocaleText("columnsManagementNoColumns")})]}),(!w||!v)&&h.length>0?Ce.jsxs(G0e,{ownerState:D,className:l.footer,children:[w?Ce.jsx("span",{}):Ce.jsx($4,{control:Ce.jsx(D.slots.baseCheckbox,Ge({disabled:b.length===0,checked:p,indeterminate:!p&&!E,onClick:()=>f(!p),name:r.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(M=D.slotProps)==null?void 0:M.baseCheckbox)),label:r.current.getLocaleText("columnsManagementShowHideAllText")}),v?null:Ce.jsx(D.slots.baseButton,Ge({onClick:()=>r.current.setColumnVisibilityModel(j),disabled:n},(R=D.slotProps)==null?void 0:R.baseButton,{children:r.current.getLocaleText("columnsManagementReset")}))]}):null]})}const V0e=ln("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,r)=>r.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),j0e=ln("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,r)=>r.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),G0e=ln("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,r)=>r.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),W0e=ln("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function $0e(e){var x;const r=Wa();return Ce.jsx(v_,Ge({},e,{children:Ce.jsx(p_,Ge({},(x=r.slotProps)==null?void 0:x.columnsManagement))}))}const Y0e=["children","className","classes"],X0e=Ca("MuiDataGrid",["panel","paper"]),Z0e=ln(Xp,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,r)=>r.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),K0e=ln(Ri,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,r)=>r.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),J0e=Oe.forwardRef((e,r)=>{const{children:x,className:F}=e,j=hn(e,Y0e),Y=mi(),D=Wa(),O=X0e,[t,l]=Oe.useState(!1),S=Oe.useCallback(()=>{Y.current.hidePreferences()},[Y]),i=Oe.useCallback(m=>{g2(m.key)&&Y.current.hidePreferences()},[Y]),C=Oe.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{l(!0)},effect:()=>()=>{l(!1)}}],[]),[w,v]=Oe.useState(null);return Oe.useEffect(()=>{var a,n;const m=(n=(a=Y.current.rootElementRef)==null?void 0:a.current)==null?void 0:n.querySelector('[data-id="gridPanelAnchor"]');m&&v(m)},[Y]),w?Ce.jsx(Z0e,Ge({ref:r,placement:"bottom-start",className:Ln(F,O.panel),ownerState:D,anchorEl:w,modifiers:C},j,{children:Ce.jsx(O9,{mouseEvent:"onMouseUp",onClickAway:S,children:Ce.jsx(K0e,{className:O.paper,ownerState:D,elevation:8,onKeyDown:i,children:t&&x})})})):null}),Q0e=["className"],q0e=e=>{const{classes:r}=e;return qn({root:["panelContent"]},ki,r)},ege=po("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,r)=>r.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function tge(e){const{className:r}=e,x=hn(e,Q0e),F=Wa(),j=q0e(F);return Ce.jsx(ege,Ge({className:Ln(r,j.root),ownerState:F},x))}const rge=["className"],nge=e=>{const{classes:r}=e;return qn({root:["panelFooter"]},ki,r)},age=po("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,r)=>r.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function ige(e){const{className:r}=e,x=hn(e,rge),F=Wa(),j=nge(F);return Ce.jsx(age,Ge({className:Ln(r,j.root),ownerState:F},x))}const oge=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],sge=["InputComponentProps"],lge=e=>{const{classes:r}=e;return qn({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ki,r)},uge=ln("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,r)=>r.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),cge=ln("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,r)=>r.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),fge=ln("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,r)=>r.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),dge=ln("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,r)=>r.filterFormColumnInput})({width:150}),hge=ln("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,r)=>r.filterFormOperatorInput})({width:120}),vge=ln("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,r)=>r.filterFormValueInput})({width:190}),pge=e=>{switch(e){case yu.And:return"filterPanelOperatorAnd";case yu.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},W1=e=>e.headerName||e.field,aR=new Intl.Collator,iR=Oe.forwardRef(function(r,x){var Q,J,oe,K,ne,ce,re,ee,de;const{item:F,hasMultipleFilters:j,deleteFilter:Y,applyFilterChanges:D,showMultiFilterOperators:O,disableMultiFilterOperator:t,applyMultiFilterOperatorChanges:l,focusElementRef:S,logicOperators:i=[yu.And,yu.Or],columnsSort:C,filterColumns:w,deleteIconProps:v={},logicOperatorInputProps:m={},operatorInputProps:a={},columnInputProps:n={},valueInputProps:s={},readOnly:o}=r,h=hn(r,oge),f=mi(),u=va(f,gv),b=va(f,xF),p=va(f,cl),E=Ui(),g=Ui(),c=Ui(),y=Ui(),A=Wa(),M=lge(A),R=Oe.useRef(null),T=Oe.useRef(null),L=p.logicOperator??yu.And,P=j&&i.length>0,d=((Q=A.slotProps)==null?void 0:Q.baseFormControl)||{},I=(((J=A.slotProps)==null?void 0:J.baseSelect)||{}).native??!1,N=((oe=A.slotProps)==null?void 0:oe.baseInputLabel)||{},B=((K=A.slotProps)==null?void 0:K.baseSelectOption)||{},{InputComponentProps:G}=s,U=hn(s,sge),{filteredColumns:H,selectedField:W}=Oe.useMemo(()=>{let le=F.field;const he=u[F.field].filterable===!1?u[F.field]:null;if(he)return{filteredColumns:[he],selectedField:le};if(w===void 0||typeof w!="function")return{filteredColumns:b,selectedField:le};const xe=w({field:F.field,columns:b,currentFilters:(p==null?void 0:p.items)||[]});return{filteredColumns:b.filter(Ee=>{const Se=xe.includes(Ee.field);return Ee.field===F.field&&!Se&&(le=void 0),Se}),selectedField:le}},[w,p==null?void 0:p.items,b,F.field,u]),V=Oe.useMemo(()=>{switch(C){case"asc":return H.sort((le,he)=>aR.compare(W1(le),W1(he)));case"desc":return H.sort((le,he)=>-aR.compare(W1(le),W1(he)));default:return H}},[H,C]),$=F.field?f.current.getColumn(F.field):null,Z=Oe.useMemo(()=>{var le;return!F.operator||!$?null:(le=$.filterOperators)==null?void 0:le.find(he=>he.value===F.operator)},[F,$]),q=Oe.useCallback(le=>{const he=le.target.value,xe=f.current.getColumn(he);if(xe.field===$.field)return;const Ee=xe.filterOperators.find(Te=>Te.value===F.operator)||xe.filterOperators[0];let ke=!Ee.InputComponent||Ee.InputComponent!==(Z==null?void 0:Z.InputComponent)||xe.type!==$.type?void 0:F.value;if(xe.type==="singleSelect"&&ke!==void 0){const Te=xe,Ae=pg(Te);Array.isArray(ke)?ke=ke.filter(be=>y2(be,Ae,Te==null?void 0:Te.getOptionValue)!==void 0):y2(F.value,Ae,Te==null?void 0:Te.getOptionValue)===void 0&&(ke=void 0)}D(Ge({},F,{field:he,operator:Ee.value,value:ke}))},[f,D,F,$,Z]),ae=Oe.useCallback(le=>{const he=le.target.value,xe=$==null?void 0:$.filterOperators.find(Se=>Se.value===he),Ee=!(xe!=null&&xe.InputComponent)||(xe==null?void 0:xe.InputComponent)!==(Z==null?void 0:Z.InputComponent);D(Ge({},F,{operator:he,value:Ee?void 0:F.value}))},[D,F,$,Z]),ie=Oe.useCallback(le=>{const he=le.target.value===yu.And.toString()?yu.And:yu.Or;l(he)},[l]),fe=()=>{Y(F)};return Oe.useImperativeHandle(S,()=>({focus:()=>{var le;Z!=null&&Z.InputComponent?(le=R==null?void 0:R.current)==null||le.focus():T.current.focus()}}),[Z]),Ce.jsxs(uge,Ge({ref:x,className:M.root,"data-id":F.id,ownerState:A},h,{children:[Ce.jsx(cge,Ge({variant:"standard",as:A.slots.baseFormControl},d,v,{className:Ln(M.deleteIcon,d.className,v.className),ownerState:A,children:Ce.jsx(A.slots.baseIconButton,Ge({"aria-label":f.current.getLocaleText("filterPanelDeleteIconLabel"),title:f.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small",disabled:o},(ne=A.slotProps)==null?void 0:ne.baseIconButton,{children:Ce.jsx(A.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),Ce.jsx(fge,Ge({variant:"standard",as:A.slots.baseFormControl},d,m,{sx:Ge({display:P?"flex":"none",visibility:O?"visible":"hidden"},d.sx||{},m.sx||{}),className:Ln(M.logicOperatorInput,d.className,m.className),ownerState:A,children:Ce.jsx(A.slots.baseSelect,Ge({inputProps:{"aria-label":f.current.getLocaleText("filterPanelLogicOperator")},value:L??"",onChange:ie,disabled:!!t||i.length===1,native:I},(ce=A.slotProps)==null?void 0:ce.baseSelect,{children:i.map(le=>Oe.createElement(A.slots.baseSelectOption,Ge({},B,{native:I,key:le.toString(),value:le.toString()}),f.current.getLocaleText(pge(le))))}))})),Ce.jsxs(dge,Ge({variant:"standard",as:A.slots.baseFormControl},d,n,{className:Ln(M.columnInput,d.className,n.className),ownerState:A,children:[Ce.jsx(A.slots.baseInputLabel,Ge({},N,{htmlFor:E,id:g,children:f.current.getLocaleText("filterPanelColumns")})),Ce.jsx(A.slots.baseSelect,Ge({labelId:g,id:E,label:f.current.getLocaleText("filterPanelColumns"),value:W??"",onChange:q,native:I,disabled:o},(re=A.slotProps)==null?void 0:re.baseSelect,{children:V.map(le=>Oe.createElement(A.slots.baseSelectOption,Ge({},B,{native:I,key:le.field,value:le.field}),W1(le)))}))]})),Ce.jsxs(hge,Ge({variant:"standard",as:A.slots.baseFormControl},d,a,{className:Ln(M.operatorInput,d.className,a.className),ownerState:A,children:[Ce.jsx(A.slots.baseInputLabel,Ge({},N,{htmlFor:c,id:y,children:f.current.getLocaleText("filterPanelOperator")})),Ce.jsx(A.slots.baseSelect,Ge({labelId:y,label:f.current.getLocaleText("filterPanelOperator"),id:c,value:F.operator,onChange:ae,native:I,inputRef:T,disabled:o},(ee=A.slotProps)==null?void 0:ee.baseSelect,{children:(de=$==null?void 0:$.filterOperators)==null?void 0:de.map(le=>Oe.createElement(A.slots.baseSelectOption,Ge({},B,{native:I,key:le.value,value:le.value}),le.label||f.current.getLocaleText(`filterOperator${Gn(le.value)}`)))}))]})),Ce.jsx(vge,Ge({variant:"standard",as:A.slots.baseFormControl},d,U,{className:Ln(M.valueInput,d.className,U.className),ownerState:A,children:Z!=null&&Z.InputComponent?Ce.jsx(Z.InputComponent,Ge({apiRef:f,item:F,applyValue:D,focusElementRef:R,disabled:o},Z.InputComponentProps,G),F.field):null}))]}))}),gge=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],oR=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),mge=Oe.forwardRef(function(r,x){var y,A;const F=mi(),j=Wa(),Y=va(F,cl),D=va(F,xF),O=va(F,gfe),t=Oe.useRef(null),l=Oe.useRef(null),{logicOperators:S=[yu.And,yu.Or],columnsSort:i,filterFormProps:C,getColumnForNewFilter:w,disableAddFilterButton:v=!1,disableRemoveAllButton:m=!1}=r,a=hn(r,gge),n=F.current.upsertFilterItem,s=Oe.useCallback(M=>{F.current.setFilterLogicOperator(M)},[F]),o=Oe.useCallback(()=>{let M;if(w&&typeof w=="function"){const R=w({currentFilters:(Y==null?void 0:Y.items)||[],columns:D});if(R===null)return null;M=D.find(({field:T})=>T===R)}else M=D.find(R=>{var T;return(T=R.filterOperators)==null?void 0:T.length});return M?oR(M):null},[Y==null?void 0:Y.items,D,w]),h=Oe.useCallback(()=>{if(w===void 0||typeof w!="function")return o();const M=Y.items.length?Y.items:[o()].filter(Boolean),R=w({currentFilters:M,columns:D});if(R===null)return null;const T=D.find(({field:L})=>L===R);return T?oR(T):null},[Y.items,D,w,o]),f=Oe.useMemo(()=>Y.items.length?Y.items:(l.current||(l.current=o()),l.current?[l.current]:[]),[Y.items,o]),u=f.length>1,{readOnlyFilters:b,validFilters:p}=Oe.useMemo(()=>f.reduce((M,R)=>(O[R.field]?M.validFilters.push(R):M.readOnlyFilters.push(R),M),{readOnlyFilters:[],validFilters:[]}),[f,O]),E=Oe.useCallback(()=>{const M=h();M&&F.current.upsertFilterItems([...f,M])},[F,h,f]),g=Oe.useCallback(M=>{const R=p.length===1;F.current.deleteFilterItem(M),R&&F.current.hideFilterPanel()},[F,p.length]),c=Oe.useCallback(()=>p.length===1&&p[0].value===void 0?(F.current.deleteFilterItem(p[0]),F.current.hideFilterPanel()):F.current.setFilterModel(Ge({},Y,{items:b}),"removeAllFilterItems"),[F,b,Y,p]);return Oe.useEffect(()=>{S.length>0&&Y.logicOperator&&!S.includes(Y.logicOperator)&&s(S[0])},[S,s,Y.logicOperator]),Oe.useEffect(()=>{p.length>0&&t.current.focus()},[p.length]),Ce.jsxs(v_,Ge({ref:x},a,{children:[Ce.jsxs(tge,{children:[b.map((M,R)=>Ce.jsx(iR,Ge({item:M,applyFilterChanges:n,deleteFilter:g,hasMultipleFilters:u,showMultiFilterOperators:R>0,disableMultiFilterOperator:R!==1,applyMultiFilterOperatorChanges:s,focusElementRef:null,readOnly:!0,logicOperators:S,columnsSort:i},C),M.id==null?R:M.id)),p.map((M,R)=>Ce.jsx(iR,Ge({item:M,applyFilterChanges:n,deleteFilter:g,hasMultipleFilters:u,showMultiFilterOperators:b.length+R>0,disableMultiFilterOperator:b.length+R!==1,applyMultiFilterOperatorChanges:s,focusElementRef:R===p.length-1?t:null,logicOperators:S,columnsSort:i},C),M.id==null?R+b.length:M.id))]}),!j.disableMultipleColumnsFiltering&&!(v&&m)?Ce.jsxs(ige,{children:[v?Ce.jsx("span",{}):Ce.jsx(j.slots.baseButton,Ge({onClick:E,startIcon:Ce.jsx(j.slots.filterPanelAddIcon,{})},(y=j.slotProps)==null?void 0:y.baseButton,{children:F.current.getLocaleText("filterPanelAddFilter")})),!m&&p.length>0?Ce.jsx(j.slots.baseButton,Ge({onClick:c,startIcon:Ce.jsx(j.slots.filterPanelRemoveAllIcon,{})},(A=j.slotProps)==null?void 0:A.baseButton,{children:F.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),yge=Oe.forwardRef(function(r,x){var w,v;const{slotProps:F={}}=r,j=F.button||{},Y=F.tooltip||{},D=Ui(),O=Ui(),t=mi(),l=Wa(),S=va(t,gg),i=m=>{var a;S.open&&S.openedPanelValue===Md.columns?t.current.hidePreferences():t.current.showPreferences(Md.columns,O,D),(a=j.onClick)==null||a.call(j,m)};if(l.disableColumnSelector)return null;const C=S.open&&S.panelId===O;return Ce.jsx(l.slots.baseTooltip,Ge({title:t.current.getLocaleText("toolbarColumnsLabel"),enterDelay:1e3},Y,(w=l.slotProps)==null?void 0:w.baseTooltip,{children:Ce.jsx(l.slots.baseButton,Ge({ref:x,id:D,size:"small","aria-label":t.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":C,"aria-controls":C?O:void 0,startIcon:Ce.jsx(l.slots.columnSelectorIcon,{})},j,{onClick:i},(v=l.slotProps)==null?void 0:v.baseButton,{children:t.current.getLocaleText("toolbarColumns")}))}))}),xge=Oe.forwardRef(function(r,x){var u,b;const{slotProps:F={}}=r,j=F.button||{},Y=F.tooltip||{},D=mi(),O=Wa(),t=va(D,G0),l=Ui(),S=Ui(),[i,C]=Oe.useState(!1),w=Oe.useRef(null),v=vi(x,w),m=[{icon:Ce.jsx(O.slots.densityCompactIcon,{}),label:D.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:Ce.jsx(O.slots.densityStandardIcon,{}),label:D.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:Ce.jsx(O.slots.densityComfortableIcon,{}),label:D.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],a=Oe.useMemo(()=>{switch(t){case"compact":return Ce.jsx(O.slots.densityCompactIcon,{});case"comfortable":return Ce.jsx(O.slots.densityComfortableIcon,{});default:return Ce.jsx(O.slots.densityStandardIcon,{})}},[t,O]),n=p=>{var E;C(g=>!g),(E=j.onClick)==null||E.call(j,p)},s=()=>{C(!1)},o=p=>{D.current.setDensity(p),C(!1)},h=p=>{YT(p.key)&&p.preventDefault(),J5(p.key)&&C(!1)};if(O.disableDensitySelector)return null;const f=m.map((p,E)=>Ce.jsxs(uo,{onClick:()=>o(p.value),selected:p.value===t,children:[Ce.jsx(_p,{children:p.icon}),p.label]},E));return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(O.slots.baseTooltip,Ge({title:D.current.getLocaleText("toolbarDensityLabel"),enterDelay:1e3},Y,(u=O.slotProps)==null?void 0:u.baseTooltip,{children:Ce.jsx(O.slots.baseButton,Ge({ref:v,size:"small",startIcon:a,"aria-label":D.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?S:void 0,id:l},j,{onClick:n},(b=O.slotProps)==null?void 0:b.baseButton,{children:D.current.getLocaleText("toolbarDensity")}))})),Ce.jsx(UT,{open:i,target:w.current,onClose:s,position:"bottom-start",children:Ce.jsx(Lb,{id:S,className:Hr.menuList,"aria-labelledby":l,onKeyDown:h,autoFocusItem:i,children:f})})]})}),bge=e=>{const{classes:r}=e;return qn({root:["toolbarFilterList"]},ki,r)},wge=ln("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,r)=>r.toolbarFilterList})(({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)})),Tge=Oe.forwardRef(function(r,x){var n,s;const{slotProps:F={}}=r,j=F.button||{},Y=F.tooltip||{},D=mi(),O=Wa(),t=va(D,UF),l=va(D,gv),S=va(D,gg),i=bge(O),C=Ui(),w=Ui(),v=Oe.useMemo(()=>{if(S.open)return D.current.getLocaleText("toolbarFiltersTooltipHide");if(t.length===0)return D.current.getLocaleText("toolbarFiltersTooltipShow");const o=f=>l[f.field].filterOperators.find(u=>u.value===f.operator).label||D.current.getLocaleText(`filterOperator${Gn(f.operator)}`).toString(),h=f=>{const{getValueAsString:u}=l[f.field].filterOperators.find(b=>b.value===f.operator);return u?u(f.value):f.value};return Ce.jsxs("div",{children:[D.current.getLocaleText("toolbarFiltersTooltipActive")(t.length),Ce.jsx(wge,{className:i.root,ownerState:O,children:t.map((f,u)=>Ge({},l[f.field]&&Ce.jsx("li",{children:`${l[f.field].headerName||f.field} ${o(f)} - ${f.value!=null?h(f):""}`},u)))})]})},[D,O,S.open,t,l,i]),m=o=>{var u;const{open:h,openedPanelValue:f}=S;h&&f===Td.filters?D.current.hidePreferences():D.current.showPreferences(Td.filters,w,C),(u=j.onClick)==null||u.call(j,o)};if(O.disableColumnFilter)return null;const a=S.open&&S.panelId===w;return Ce.jsx(O.slots.baseTooltip,Ge({title:v,enterDelay:1e3},Y,(n=O.slotProps)==null?void 0:n.baseTooltip,{children:Ce.jsx(O.slots.baseButton,Ge({ref:y,id:C,size:"small","aria-label":D.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":a?w:void 0,"aria-expanded":a,"aria-haspopup":!0,startIcon:Ce.jsx(y5,{badgeContent:t.length,color:"primary",children:Ce.jsx(O.slots.openFilterButtonIcon,{})})},j,{onClick:m},(s=O.slotProps)==null?void 0:s.baseButton,{children:D.current.getLocaleText("toolbarFilters")}))}))}),p1e=Oe.forwardRef(function(r,y){var s,o;const{children:F,slotProps:j={}}=r,Y=j.button||{},D=j.tooltip||{},O=yi(),t=Wa(),l=Ui(),S=Ui(),[i,C]=Oe.useState(!1),w=Oe.useRef(null),v=pi(y,w),m=h=>{var f;C(u=>!u),(f=Y.onClick)==null||f.call(Y,h)},a=()=>C(!1),n=h=>{rS(h.key)&&h.preventDefault(),o6(h.key)&&a()};return F==null?null:Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(t.slots.baseTooltip,Ge({title:O.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},D,(s=t.slotProps)==null?void 0:s.baseTooltip,{children:Ce.jsx(t.slots.baseButton,Ge({ref:v,size:"small",startIcon:Ce.jsx(t.slots.exportIcon,{}),"aria-expanded":i,"aria-label":O.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":i?S:void 0,id:l},Y,{onClick:m},(o=t.slotProps)==null?void 0:o.baseButton,{children:O.current.getLocaleText("toolbarExport")}))})),Ce.jsx(ZT,{open:i,target:w.current,onClose:a,position:"bottom-start",children:Ce.jsx(_b,{id:S,className:Hr.menuList,"aria-labelledby":l,onKeyDown:n,autoFocusItem:i,children:Oe.Children.map(F,h=>Oe.isValidElement(h)?Oe.cloneElement(h,{hideMenu:a}):h)})})]})}),g1e=["hideMenu","options"],m1e=["hideMenu","options"],y1e=["csvOptions","printOptions","excelOptions"];function x1e(e){const r=yi(),{hideMenu:y,options:F}=e,j=hn(e,g1e);return Ce.jsx(uo,Ge({onClick:()=>{r.current.exportDataAsCsv(F),y==null||y()}},j,{children:r.current.getLocaleText("toolbarExportCSV")}))}function b1e(e){const r=yi(),{hideMenu:y,options:F}=e,j=hn(e,m1e);return Ce.jsx(uo,Ge({onClick:()=>{r.current.exportDataAsPrint(F),y==null||y()}},j,{children:r.current.getLocaleText("toolbarExportPrint")}))}const w1e=Oe.forwardRef(function(r,y){const{csvOptions:F={},printOptions:j={},excelOptions:Y}=r,D=hn(r,y1e),t=yi().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:Y,csvOptions:F,printOptions:j}).sort((l,S)=>l.componentName>S.componentName?1:-1);return t.length===0?null:Ce.jsx(p1e,Ge({},D,{ref:y,children:t.map((l,S)=>Oe.cloneElement(l.component,{key:S}))}))}),T1e=["quickFilterParser","quickFilterFormatter","debounceMs","className"],S1e=e=>{const{classes:r}=e;return qn({root:["toolbarQuickFilter"]},ki,r)},C1e=ln(Zo,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,r)=>r.toolbarQuickFilter})(({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}})),M1e=e=>e.split(" ").filter(r=>r!==""),A1e=e=>e.join(" ");function E1e(e){var n,s;const r=yi(),y=Wa(),F=S1e(y),j=va(r,Spe),{quickFilterParser:Y=M1e,quickFilterFormatter:D=A1e,debounceMs:O=y.filterDebounceMs,className:t}=e,l=hn(e,T1e),[S,i]=Oe.useState(()=>D(j??[])),C=Oe.useRef(j);Oe.useEffect(()=>{Bp(C.current,j)||(C.current=j,i(o=>Bp(Y(o),j)?o:D(j??[])))},[j,D,Y]);const w=Oe.useCallback(o=>{const h=Y(o);C.current=h,r.current.setQuickFilterValues(h)},[r,Y]),v=Oe.useMemo(()=>bg(w,O),[w,O]),m=Oe.useCallback(o=>{const h=o.target.value;i(h),v(h)},[v]),a=Oe.useCallback(()=>{i(""),w("")},[w]);return Ce.jsx(C1e,Ge({as:y.slots.baseTextField,ownerState:y,variant:"standard",value:S,onChange:m,className:Ln(t,F.root),placeholder:r.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":r.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},l,{InputProps:Ge({startAdornment:Ce.jsx(y.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:Ce.jsx(y.slots.baseIconButton,Ge({"aria-label":r.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:S?"visible":"hidden"},onClick:a},(n=y.slotProps)==null?void 0:n.baseIconButton,{children:Ce.jsx(y.slots.quickFilterClearIcon,{fontSize:"small"})}))},l.InputProps)},(s=y.slotProps)==null?void 0:s.baseTextField))}const P1e=["className","csvOptions","printOptions","excelOptions","showQuickFilter","quickFilterProps"],L1e=Oe.forwardRef(function(r,y){const{csvOptions:F,printOptions:j,excelOptions:Y,showQuickFilter:D=!1,quickFilterProps:O={}}=r,t=hn(r,P1e),l=Wa();return l.disableColumnFilter&&l.disableColumnSelector&&l.disableDensitySelector&&!D?null:Ce.jsxs(Tme,Ge({ref:y},t,{children:[Ce.jsx(c1e,{}),Ce.jsx(v1e,{}),Ce.jsx(f1e,{}),Ce.jsx(w1e,{csvOptions:F,printOptions:j,excelOptions:Y}),Ce.jsx(oa,{sx:{flex:1}}),D&&Ce.jsx(E1e,Ge({},O))]}))}),I1e=["className","selectedRowCount"],R1e=e=>{const{classes:r}=e;return qn({root:["selectedRowCount"]},ki,r)},k1e=po("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,r)=>r.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),D1e=Oe.forwardRef(function(r,y){const{className:F,selectedRowCount:j}=r,Y=hn(r,I1e),D=yi(),O=Wa(),t=R1e(O),l=D.current.getLocaleText("footerRowSelected")(j);return Ce.jsx(k1e,Ge({ref:y,className:Ln(t.root,F),ownerState:O},Y,{children:l}))}),O1e=Oe.forwardRef(function(r,y){var i,C;const F=yi(),j=Wa(),Y=va(F,Wve),D=va(F,bpe),O=va(F,a6),t=!j.hideFooterSelectedRowCount&&D>0?Ce.jsx(D1e,{selectedRowCount:D}):Ce.jsx("div",{}),l=!j.hideFooterRowCount&&!j.pagination?Ce.jsx(j.slots.footerRowCount,Ge({},(i=j.slotProps)==null?void 0:i.footerRowCount,{rowCount:Y,visibleRowCount:O})):null,S=j.pagination&&!j.hideFooterPagination&&j.slots.pagination&&Ce.jsx(j.slots.pagination,Ge({},(C=j.slotProps)==null?void 0:C.pagination));return Ce.jsxs(pme,Ge({ref:y},r,{children:[t,l,S]}))});function F1e(){var Y,D;const e=yi(),r=va(e,yd),y=Wa(),F=va(e,gg),j=e.current.unstable_applyPipeProcessors("preferencePanel",null,F.openedPanelValue??Td.filters);return Ce.jsx(y.slots.panel,Ge({as:y.slots.basePopper,open:r.length>0&&F.open,id:F.panelId,"aria-labelledby":F.labelId},(Y=y.slotProps)==null?void 0:Y.panel,(D=y.slotProps)==null?void 0:D.basePopper,{children:j}))}function _1e(){var r;const e=Wa();return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(F1e,{}),e.slots.toolbar&&Ce.jsx(e.slots.toolbar,Ge({},(r=e.slotProps)==null?void 0:r.toolbar))]})}const v6=(e,r,y,F,j)=>{const Y=j.hasScrollY?j.scrollbarSize:0;let D;switch(e){case Ko.LEFT:D=F[y];break;case Ko.RIGHT:D=j.columnsTotalWidth-F[y]-r+Y;break;default:D=0;break}return D},o3={root:Hr.scrollbarFiller,header:Hr["scrollbarFiller--header"],borderTop:Hr["scrollbarFiller--borderTop"],pinnedRight:Hr["scrollbarFiller--pinnedRight"]};function p6({header:e,borderTop:r=!0,pinnedRight:y}){return Ce.jsx("div",{role:"presentation",className:Ln(o3.root,e&&o3.header,r&&o3.borderTop,y&&o3.pinnedRight)})}const z1e=po("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,r)=>r.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),B1e=e=>{const{classes:r}=e;return qn({root:["skeletonLoadingOverlay"]},ki,r)},gR=e=>parseInt(e.getAttribute("data-colindex"),10),N1e=Oe.forwardRef(function(r,y){const F=Wa(),{slots:j}=F,Y=B1e({classes:F.classes}),D=Oe.useRef(null),O=pi(D,y),t=yi(),l=va(t,Qu),S=(l==null?void 0:l.viewportInnerSize.height)??0,i=Math.ceil(S/l.rowHeight),C=va(t,X5),w=va(t,Jp),v=Oe.useMemo(()=>w.filter(u=>u<=C).length,[C,w]),m=va(t,rl),a=Oe.useMemo(()=>m.slice(0,v),[m,v]),n=va(t,Vb),s=Oe.useCallback((u,b,p)=>{const E=v6(p,u,b,w,l);return{[p]:E}},[l,w]),o=Oe.useCallback(u=>{if(n.left.findIndex(b=>b.field===u)!==-1)return Ko.LEFT;if(n.right.findIndex(b=>b.field===u)!==-1)return Ko.RIGHT},[n.left,n.right]),h=Oe.useMemo(()=>{const u=[];for(let b=0;b$.field===g.field):E-n.left.length,T=c&&s(g.computedWidth,E,c),L=l.columnsTotalWidth0}))}u.push(Ce.jsx("div",{className:Ln(Hr.row,Hr.rowSkeleton,b===0&&Hr["row--firstVisible"]),children:p},`skeleton-row-${b}`))}return u},[j,a,n,i,F.showCellVerticalBorder,l.columnsTotalWidth,l.viewportOuterSize.width,l.rowHeight,l.hasScrollY,l.scrollbarSize,o,s]);return Za(t,"columnResize",u=>{var T,L,P;const{colDef:b,width:p}=u,E=(T=D.current)==null?void 0:T.querySelectorAll(`[data-field="${mv(b.field)}"]`);if(!E)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const g=a.findIndex(d=>d.field===b.field),c=o(b.field),x=c===Ko.LEFT,A=c===Ko.RIGHT,M=getComputedStyle(E[0]).getPropertyValue("--width"),R=parseInt(M,10)-p;if(E&&E.forEach(d=>{d.style.setProperty("--width",`${p}px`)}),x){const d=(L=D.current)==null?void 0:L.querySelectorAll(`.${Hr["cell--pinnedLeft"]}`);d==null||d.forEach(k=>{gR(k)>g&&(k.style.left=`${parseInt(getComputedStyle(k).left,10)-R}px`)})}if(A){const d=(P=D.current)==null?void 0:P.querySelectorAll(`.${Hr["cell--pinnedRight"]}`);d==null||d.forEach(k=>{gR(k)({maxHeight:"calc(100% + 1px)",[`& .${rg.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${rg.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),W1e=(e,r)=>({from:y,to:F,count:j,page:Y})=>e({from:y,to:F,count:j,page:Y,estimated:r}),$1e=({from:e,to:r,count:y,estimated:F})=>F?`${e}–${r} of ${y!==-1?y:`more than ${F>r?F:r}`}`:`${e}–${r} of ${y!==-1?y:`more than ${r}`}`,Y1e=Oe.forwardRef(function(r,y){const F=yi(),j=Wa(),Y=va(F,gu),D=va(F,Fm),O=va(F,u_),{paginationMode:t,loading:l,estimatedRowCount:S}=j,i=Oe.useMemo(()=>D===-1&&t==="server"&&l?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[l,t,D]),C=Oe.useMemo(()=>Math.max(0,O-1),[O]),w=Oe.useMemo(()=>D===-1||Y.page<=C?Y.page:C,[C,Y.page,D]),v=Oe.useCallback(h=>{const f=Number(h.target.value);F.current.setPageSize(f)},[F]),m=Oe.useCallback((h,f)=>{F.current.setPage(f)},[F]),n=(h=>{for(let f=0;f{const{classes:r}=e;return qn({root:["rowCount"]},ki,r)},K1e=po("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,r)=>r.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),J1e=Oe.forwardRef(function(r,y){const{className:F,rowCount:j,visibleRowCount:Y}=r,D=hn(r,X1e),O=yi(),t=Wa(),l=Z1e(t);if(j===0)return null;const S=Y=i.left.length&&m=v.lastColumnIndex,$=D+L+2,Z=Q1e(A.classes,{root:["row",F&&"selected",U&&"row--editable",G&&"row--editing",a&&"row--firstVisible",n&&"row--lastVisible",o&&"row--borderBottom",t==="auto"&&"row--dynamicHeight"]});Oe.useLayoutEffect(()=>{if(M.range){const Ie=c.current.getRowIndexRelativeToVisibleRows(j);Ie!=null&&c.current.unstable_setLastMeasuredRowIndex(Ie)}const Te=x.current;if(!Te||t!=="auto"||typeof ResizeObserver>"u")return;const be=new ResizeObserver(Ie=>{const[Ue]=Ie,Ne=Ue.borderBoxSize&&Ue.borderBoxSize.length>0?Ue.borderBoxSize[0].blockSize:Ue.contentRect.height;c.current.unstable_storeRowHeightMeasurement(j,Ne)});return be.observe(Te),()=>be.disconnect()},[c,M.range,D,t,j]);const q=Oe.useCallback((Te,Ae)=>be=>{$b(be)||c.current.getRow(j)&&(c.current.publishEvent(Te,c.current.getRowParams(j),be),Ae&&Ae(be))},[c,j]),ae=Oe.useCallback(Te=>{const Ae=M2(Te.target,Hr.cell),be=Ae==null?void 0:Ae.getAttribute("data-field");if(be){if(be===Wy.field||be===g6||be==="__reorder__"||c.current.getCellMode(j,be)===Co.Edit)return;const Ie=c.current.getColumn(be);if((Ie==null?void 0:Ie.type)===KT)return}q("rowClick",h)(Te)},[c,h,q,j]),{slots:ie,slotProps:fe,disableColumnReorder:Q}=A,J=A.rowReordering,oe=va(c,()=>Ge({},c.current.unstable_getRowInternalSizes(j)),FF);let K=t;K==="auto"&&oe&&(oe.baseCenter??0)>0;const ne=Oe.useMemo(()=>{if(s)return{opacity:0,width:0,height:0};const Te=Ge({},O,{maxHeight:t==="auto"?"none":t,minHeight:K,"--height":typeof t=="number"?`${t}px`:t});if(oe!=null&&oe.spacingTop){const Ae=A.rowSpacingType==="border"?"borderTopWidth":"marginTop";Te[Ae]=oe.spacingTop}if(oe!=null&&oe.spacingBottom){const Ae=A.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let be=Te[Ae];typeof be!="number"&&(be=parseInt(be||"0",10)),be+=oe.spacingBottom,Te[Ae]=be}return Te},[s,t,O,K,oe,A.rowSpacingType]),ce=c.current.unstable_applyPipeProcessors("rowClassName",[],j);if(typeof A.getRowClassName=="function"){const Te=D-(((ke=M.range)==null?void 0:ke.firstRowIndex)||0),Ae=Ge({},c.current.getRowParams(j),{isFirstVisible:Te===0,isLastVisible:Te===M.rows.length-1,indexRelativeToCurrentPage:Te});ce.push(A.getRowClassName(Ae))}const re=(Te,Ae,be,Ie,Ue=Hu.NONE)=>{var wt;const Ne=c.current.unstable_getCellColSpanInfo(j,be);if(Ne!=null&&Ne.spannedByColSpan)return null;const ze=(Ne==null?void 0:Ne.cellProps.width)??Te.computedWidth,$e=(Ne==null?void 0:Ne.cellProps.colSpan)??1,st=v6(L_[Ue],Te.computedWidth,be,P,w);if((I==null?void 0:I.type)==="skeletonRow")return Ce.jsx(ie.skeletonCell,{type:Te.type,width:ze,height:t,field:Te.field,align:Te.align},Te.field);const vt=((wt=d[j])==null?void 0:wt[Te.field])??null,at=Te.field==="__reorder__",nt=Object.keys(d).length>0,mt=!(Q||Te.disableReorder),rt=J&&!R.length&&T<=1&&!nt,lt=!(mt||at&&rt),dt=Ue===Hu.VIRTUAL;return Ce.jsx(ie.cell,Ge({column:Te,width:ze,rowId:j,align:Te.align||"left",colIndex:be,colSpan:$e,disableDragEvents:lt,editCellState:vt,isNotVisible:dt,pinnedOffset:st,pinnedPosition:Ue,sectionIndex:Ae,sectionLength:Ie,gridHasFiller:B},fe==null?void 0:fe.cell),Te.field)};if(!I)return null;const ee=i.left.map((Te,Ae)=>re(Te,Ae,Ae,i.left.length,Hu.LEFT)),de=i.right.map((Te,Ae)=>{const be=S.length-i.right.length+Ae;return re(Te,Ae,be,i.right.length,Hu.RIGHT)}),le=S.length-i.left.length-i.right.length,he=[];W&&he.push(re(S[m],m-i.left.length,m,le,Hu.VIRTUAL));for(let Te=v.firstColumnIndex;Te0&&Ce.jsx(exe,{width:Se}),de.length>0&&Ce.jsx("div",{role:"presentation",className:Hr.filler}),de,N!==0&&Ce.jsx(p6,{pinnedRight:i.right.length>0})]}))}),rxe=e0(txe);function nxe({privateApiRef:e,props:r,children:y}){const F=Oe.useRef(e.current.getPublicApi());return Ce.jsx(DF.Provider,{value:r,children:Ce.jsx(x_.Provider,{value:e,children:Ce.jsx(kF.Provider,{value:F,children:y})})})}const axe=e=>{const r=Oe.useRef(null),y=Oe.useRef(null),F=Oe.useRef(null);e.current.register("public",{rootElementRef:r}),e.current.register("private",{mainElementRef:y,virtualScrollerRef:F})},ixe=e=>{const r=ru();e.current.state.theme||(e.current.state.theme=r);const y=Oe.useRef(!0);Oe.useEffect(()=>{y.current?y.current=!1:e.current.setState(F=>Ge({},F,{theme:r}))},[e,r])},oxe=Sve()&&window.localStorage.getItem("DEBUG")!=null,rx=()=>{},sxe={debug:rx,info:rx,warn:rx,error:rx},mR=["debug","info","warn","error"];function yR(e,r,y=console){const F=mR.indexOf(r);if(F===-1)throw new Error(`MUI X: Log level ${r} not recognized.`);return mR.reduce((Y,D,O)=>(O>=F?Y[D]=(...t)=>{const[l,...S]=t;y[D](`MUI X: ${e} - ${l}`,...S)}:Y[D]=rx,Y),{})}const lxe=(e,r)=>{const y=Oe.useCallback(F=>oxe?yR(F,"debug",r.logger):r.logLevel?yR(F,r.logLevel.toString(),r.logger):sxe,[r.logLevel,r.logger]);Mi(e,{getLogger:y},"private")};class uxe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(r,y,F={}){let j=this.events[r];j||(j={highPriority:new Map,regular:new Map},this.events[r]=j),F.isFirst?j.highPriority.set(y,!0):j.regular.set(y,!0)}removeListener(r,y){this.events[r]&&(this.events[r].regular.delete(y),this.events[r].highPriority.delete(y))}removeAllListeners(){this.events={}}emit(r,...y){const F=this.events[r];if(!F)return;const j=Array.from(F.highPriority.keys()),Y=Array.from(F.regular.keys());for(let D=j.length-1;D>=0;D-=1){const O=j[D];F.highPriority.has(O)&&O.apply(this,y)}for(let D=0;D(this.listeners.add(y),()=>{this.listeners.delete(y)}),this.getSnapshot=()=>this.value,this.update=y=>{this.value=y,this.listeners.forEach(F=>F(y))},this.value=r,this.listeners=new Set}}const O_=Symbol("mui.api_private"),cxe=e=>e.isPropagationStopped!==void 0;let xR=0;function fxe(e){var j;const r=(j=e.current)==null?void 0:j[O_];if(r)return r;const y={},F={state:y,store:m6.create(y),instanceId:{id:xR}};return xR+=1,F.getPublicApi=()=>e.current,F.register=(Y,D)=>{Object.keys(D).forEach(O=>{const t=D[O],l=F[O];if((l==null?void 0:l.spying)===!0?l.target=t:F[O]=t,Y==="public"){const S=e.current,i=S[O];(i==null?void 0:i.spying)===!0?i.target=t:S[O]=t}})},F.register("private",{caches:{},eventManager:new uxe}),F}function dxe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[O_]:e.current}}function hxe(e,r){var D;const y=Oe.useRef(),F=Oe.useRef();F.current||(F.current=fxe(y)),y.current||(y.current=dxe(F));const j=Oe.useCallback((...O)=>{const[t,l,S={}]=O;if(S.defaultMuiPrevented=!1,cxe(S)&&S.isPropagationStopped())return;const i=r.signature===md.DataGridPro||r.signature===md.DataGridPremium?{api:F.current.getPublicApi()}:{};F.current.eventManager.emit(t,l,S,i)},[F,r.signature]),Y=Oe.useCallback((O,t,l)=>{F.current.eventManager.on(O,t,l);const S=F.current;return()=>{S.eventManager.removeListener(O,t)}},[F]);return Mi(F,{subscribeEvent:Y,publishEvent:j},"public"),e&&!((D=e.current)!=null&&D.state)&&(e.current=y.current),Oe.useImperativeHandle(e,()=>y.current,[y]),Oe.useEffect(()=>{const O=F.current;return()=>{O.publishEvent("unmount")}},[F]),F}const vxe=(e,r)=>{const y=Oe.useCallback(F=>{if(r.localeText[F]==null)throw new Error(`Missing translation for key ${F}.`);return r.localeText[F]},[r.localeText]);e.current.register("public",{getLocaleText:y})},pxe=e=>{const r=Oe.useRef({}),y=Oe.useRef(!1),F=Oe.useCallback(S=>{y.current||!S||(y.current=!0,Object.values(S.appliers).forEach(i=>{i()}),y.current=!1)},[]),j=Oe.useCallback((S,i,C)=>{r.current[S]||(r.current[S]={processors:new Map,processorsAsArray:[],appliers:{}});const w=r.current[S];return w.processors.get(i)!==C&&(w.processors.set(i,C),w.processorsAsArray=Array.from(r.current[S].processors.values()),F(w)),()=>{r.current[S].processors.delete(i),r.current[S].processorsAsArray=Array.from(r.current[S].processors.values())}},[F]),Y=Oe.useCallback((S,i,C)=>(r.current[S]||(r.current[S]={processors:new Map,processorsAsArray:[],appliers:{}}),r.current[S].appliers[i]=C,()=>{const w=r.current[S].appliers,v=hn(w,[i].map(Yx));r.current[S].appliers=v}),[]),D=Oe.useCallback(S=>{F(r.current[S])},[F]),O=Oe.useCallback((...S)=>{const[i,C,w]=S;if(!r.current[i])return C;const v=r.current[i].processorsAsArray;let m=C;for(let a=0;a{const F=Oe.useRef(),j=Oe.useRef(`mui-${Math.round(Math.random()*1e9)}`),Y=Oe.useCallback(()=>{F.current=e.current.registerPipeProcessor(r,j.current,y)},[e,y,r]);Gb(()=>{Y()});const D=Oe.useRef(!0);Oe.useEffect(()=>(D.current?D.current=!1:Y(),()=>{F.current&&(F.current(),F.current=null)}),[Y])},y6=(e,r,y)=>{const F=Oe.useRef(),j=Oe.useRef(`mui-${Math.round(Math.random()*1e9)}`),Y=Oe.useCallback(()=>{F.current=e.current.registerPipeApplier(r,j.current,y)},[e,y,r]);Gb(()=>{Y()});const D=Oe.useRef(!0);Oe.useEffect(()=>(D.current?D.current=!1:Y(),()=>{F.current&&(F.current(),F.current=null)}),[Y])},A2=(e,r,y,F)=>{const j=Oe.useCallback(()=>{e.current.registerStrategyProcessor(r,y,F)},[e,F,y,r]);Gb(()=>{j()});const Y=Oe.useRef(!0);Oe.useEffect(()=>{Y.current?Y.current=!1:j()},[j])},mg="none",bR={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},gxe=e=>{const r=Oe.useRef(new Map),y=Oe.useRef({}),F=Oe.useCallback((t,l,S)=>{const i=()=>{const v=y.current[l],m=hn(v,[t].map(Yx));y.current[l]=m};y.current[l]||(y.current[l]={});const C=y.current[l],w=C[t];return C[t]=S,!w||w===S||t===e.current.getActiveStrategy(bR[l])&&e.current.publishEvent("activeStrategyProcessorChange",l),i},[e]),j=Oe.useCallback((t,l)=>{const S=e.current.getActiveStrategy(bR[t]);if(S==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=y.current[t];if(!i||!i[S])throw new Error(`No processor found for processor "${t}" on strategy "${S}"`);const C=i[S];return C(l)},[e]),Y=Oe.useCallback(t=>{const S=Array.from(r.current.entries()).find(([,i])=>i.group!==t?!1:i.isAvailable());return(S==null?void 0:S[0])??mg},[]),D=Oe.useCallback((t,l,S)=>{r.current.set(l,{group:t,isAvailable:S}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Mi(e,{registerStrategyProcessor:F,applyStrategyProcessor:j,getActiveStrategy:Y,setStrategyAvailability:D},"private")},mxe=e=>{const r=Oe.useRef({}),[,y]=Oe.useState(),F=Oe.useCallback(l=>{r.current[l.stateId]=l},[]),j=Oe.useCallback((l,S)=>{let i;if(HF(l)?i=l(e.current.state):i=l,e.current.state===i)return!1;let C=!1;const w=[];if(Object.keys(r.current).forEach(v=>{const m=r.current[v],a=m.stateSelector(e.current.state,e.current.instanceId),n=m.stateSelector(i,e.current.instanceId);n!==a&&(w.push({stateId:m.stateId,hasPropChanged:n!==m.propModel}),m.propModel!==void 0&&n!==m.propModel&&(C=!0))}),w.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${w[0].stateId}, therefore, you're not allowed to update ${w.map(v=>v.stateId).join(", ")} in the same transaction.`);if(C||(e.current.state=i,e.current.publishEvent&&e.current.publishEvent("stateChange",i),e.current.store.update(i)),w.length===1){const{stateId:v,hasPropChanged:m}=w[0],a=r.current[v],n=a.stateSelector(i,e.current.instanceId);a.propOnChange&&m&&a.propOnChange(n,{reason:S,api:e.current}),C||e.current.publishEvent(a.changeEvent,n,{reason:S})}return!C},[e]),Y=Oe.useCallback((l,S,i)=>e.current.setState(C=>Ge({},C,{[l]:S(C[l])}),i),[e]),D=Oe.useCallback(()=>y(()=>e.current.state),[e]),O={setState:j,forceUpdate:D},t={updateControlState:Y,registerControlState:F};Mi(e,O,"public"),Mi(e,t,"private")},yxe=(e,r)=>{const y=hxe(e,r);return axe(y),ixe(y),lxe(y,r),mxe(y),pxe(y),gxe(y),vxe(y,r),y.current.register("private",{rootProps:r}),y},Zl=(e,r,y)=>{const F=Oe.useRef(!1);F.current||(r.current.state=e(r.current.state,y,r),F.current=!0)};function wM(e,r){const y=typeof e=="string"?e:`${e}`;if(r.shouldAppendQuotes||r.escapeFormulas){const F=y.replace(/"/g,'""');return r.escapeFormulas&&["=","+","-","@"," ","\r"].includes(F[0])?`"'${F}"`:[r.delimiter,` -`,"\r",'"'].some(j=>y.includes(j))?`"${F}"`:F}return y}const F_=(e,r)=>{var Y,D;const{csvOptions:y,ignoreValueFormatter:F}=r;let j;if(F){const O=e.colDef.type;O==="number"?j=String(e.value):O==="date"||O==="dateTime"?j=(Y=e.value)==null?void 0:Y.toISOString():typeof((D=e.value)==null?void 0:D.toString)=="function"?j=e.value.toString():j=e.value}else j=e.formattedValue;return wM(j,y)};class TM{constructor(r){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=r}addValue(r){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),r==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(r,this.options.csvOptions):this.rowString+=r,this.isEmpty=!1}getRowString(){return this.rowString}}const xxe=({id:e,columns:r,getCellParams:y,csvOptions:F,ignoreValueFormatter:j})=>{const Y=new TM({csvOptions:F});return r.forEach(D=>{const O=y(e,D.field);Y.addValue(F_(O,{ignoreValueFormatter:j,csvOptions:F}))}),Y.getRowString()};function bxe(e){const{columns:r,rowIds:y,csvOptions:F,ignoreValueFormatter:j,apiRef:Y}=e,D=y.reduce((i,C)=>`${i}${xxe({id:C,columns:r,getCellParams:Y.current.getCellParams,ignoreValueFormatter:j,csvOptions:F})}\r -`,"").trim();if(!F.includeHeaders)return D;const O=r.filter(i=>i.field!==Wy.field),t=[];if(F.includeColumnGroupsHeaders){const i=Y.current.getAllGroupDetails();let C=0;const w=O.reduce((v,m)=>{const a=Y.current.getColumnGroupPath(m.field);return v[m.field]=a,C=Math.max(C,a.length),v},{});for(let v=0;v{const n=(w[a.field]||[])[v],s=i[n];m.addValue(s?s.headerName||s.groupId:"")})}}const l=new TM({csvOptions:F,sanitizeCellValue:wM});return O.forEach(i=>{l.addValue(i.headerName||i.field)}),t.push(l),`${`${t.map(i=>i.getRowString()).join(`\r + ${f.value!=null?h(f):""}`},u)))})]})},[D,O,S.open,t,l,i]),m=o=>{var u;const{open:h,openedPanelValue:f}=S;h&&f===Md.filters?D.current.hidePreferences():D.current.showPreferences(Md.filters,w,C),(u=j.onClick)==null||u.call(j,o)};if(O.disableColumnFilter)return null;const a=S.open&&S.panelId===w;return Ce.jsx(O.slots.baseTooltip,Ge({title:v,enterDelay:1e3},Y,(n=O.slotProps)==null?void 0:n.baseTooltip,{children:Ce.jsx(O.slots.baseButton,Ge({ref:x,id:C,size:"small","aria-label":D.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":a?w:void 0,"aria-expanded":a,"aria-haspopup":!0,startIcon:Ce.jsx(i5,{badgeContent:t.length,color:"primary",children:Ce.jsx(O.slots.openFilterButtonIcon,{})})},j,{onClick:m},(s=O.slotProps)==null?void 0:s.baseButton,{children:D.current.getLocaleText("toolbarFilters")}))}))}),Sge=Oe.forwardRef(function(r,x){var s,o;const{children:F,slotProps:j={}}=r,Y=j.button||{},D=j.tooltip||{},O=mi(),t=Wa(),l=Ui(),S=Ui(),[i,C]=Oe.useState(!1),w=Oe.useRef(null),v=vi(x,w),m=h=>{var f;C(u=>!u),(f=Y.onClick)==null||f.call(Y,h)},a=()=>C(!1),n=h=>{YT(h.key)&&h.preventDefault(),J5(h.key)&&a()};return F==null?null:Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(t.slots.baseTooltip,Ge({title:O.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},D,(s=t.slotProps)==null?void 0:s.baseTooltip,{children:Ce.jsx(t.slots.baseButton,Ge({ref:v,size:"small",startIcon:Ce.jsx(t.slots.exportIcon,{}),"aria-expanded":i,"aria-label":O.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":i?S:void 0,id:l},Y,{onClick:m},(o=t.slotProps)==null?void 0:o.baseButton,{children:O.current.getLocaleText("toolbarExport")}))})),Ce.jsx(UT,{open:i,target:w.current,onClose:a,position:"bottom-start",children:Ce.jsx(Lb,{id:S,className:Hr.menuList,"aria-labelledby":l,onKeyDown:n,autoFocusItem:i,children:Oe.Children.map(F,h=>Oe.isValidElement(h)?Oe.cloneElement(h,{hideMenu:a}):h)})})]})}),Cge=["hideMenu","options"],Mge=["hideMenu","options"],Age=["csvOptions","printOptions","excelOptions"];function Ege(e){const r=mi(),{hideMenu:x,options:F}=e,j=hn(e,Cge);return Ce.jsx(uo,Ge({onClick:()=>{r.current.exportDataAsCsv(F),x==null||x()}},j,{children:r.current.getLocaleText("toolbarExportCSV")}))}function Pge(e){const r=mi(),{hideMenu:x,options:F}=e,j=hn(e,Mge);return Ce.jsx(uo,Ge({onClick:()=>{r.current.exportDataAsPrint(F),x==null||x()}},j,{children:r.current.getLocaleText("toolbarExportPrint")}))}const Lge=Oe.forwardRef(function(r,x){const{csvOptions:F={},printOptions:j={},excelOptions:Y}=r,D=hn(r,Age),t=mi().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:Y,csvOptions:F,printOptions:j}).sort((l,S)=>l.componentName>S.componentName?1:-1);return t.length===0?null:Ce.jsx(Sge,Ge({},D,{ref:x,children:t.map((l,S)=>Oe.cloneElement(l.component,{key:S}))}))}),Ige=["quickFilterParser","quickFilterFormatter","debounceMs","className"],Rge=e=>{const{classes:r}=e;return qn({root:["toolbarQuickFilter"]},ki,r)},kge=ln(Ko,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,r)=>r.toolbarQuickFilter})(({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}})),Dge=e=>e.split(" ").filter(r=>r!==""),Oge=e=>e.join(" ");function Fge(e){var n,s;const r=mi(),x=Wa(),F=Rge(x),j=va(r,Rde),{quickFilterParser:Y=Dge,quickFilterFormatter:D=Oge,debounceMs:O=x.filterDebounceMs,className:t}=e,l=hn(e,Ige),[S,i]=Oe.useState(()=>D(j??[])),C=Oe.useRef(j);Oe.useEffect(()=>{Bp(C.current,j)||(C.current=j,i(o=>Bp(Y(o),j)?o:D(j??[])))},[j,D,Y]);const w=Oe.useCallback(o=>{const h=Y(o);C.current=h,r.current.setQuickFilterValues(h)},[r,Y]),v=Oe.useMemo(()=>bg(w,O),[w,O]),m=Oe.useCallback(o=>{const h=o.target.value;i(h),v(h)},[v]),a=Oe.useCallback(()=>{i(""),w("")},[w]);return Ce.jsx(kge,Ge({as:x.slots.baseTextField,ownerState:x,variant:"standard",value:S,onChange:m,className:Ln(t,F.root),placeholder:r.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":r.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},l,{InputProps:Ge({startAdornment:Ce.jsx(x.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:Ce.jsx(x.slots.baseIconButton,Ge({"aria-label":r.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:S?"visible":"hidden"},onClick:a},(n=x.slotProps)==null?void 0:n.baseIconButton,{children:Ce.jsx(x.slots.quickFilterClearIcon,{fontSize:"small"})}))},l.InputProps)},(s=x.slotProps)==null?void 0:s.baseTextField))}const _ge=["className","csvOptions","printOptions","excelOptions","showQuickFilter","quickFilterProps"],zge=Oe.forwardRef(function(r,x){const{csvOptions:F,printOptions:j,excelOptions:Y,showQuickFilter:D=!1,quickFilterProps:O={}}=r,t=hn(r,_ge),l=Wa();return l.disableColumnFilter&&l.disableColumnSelector&&l.disableDensitySelector&&!D?null:Ce.jsxs(Ipe,Ge({ref:x},t,{children:[Ce.jsx(yge,{}),Ce.jsx(Tge,{}),Ce.jsx(xge,{}),Ce.jsx(Lge,{csvOptions:F,printOptions:j,excelOptions:Y}),Ce.jsx(oa,{sx:{flex:1}}),D&&Ce.jsx(Fge,Ge({},O))]}))}),Bge=["className","selectedRowCount"],Nge=e=>{const{classes:r}=e;return qn({root:["selectedRowCount"]},ki,r)},Uge=po("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,r)=>r.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),Hge=Oe.forwardRef(function(r,x){const{className:F,selectedRowCount:j}=r,Y=hn(r,Bge),D=mi(),O=Wa(),t=Nge(O),l=D.current.getLocaleText("footerRowSelected")(j);return Ce.jsx(Uge,Ge({ref:x,className:Ln(t.root,F),ownerState:O},Y,{children:l}))}),Vge=Oe.forwardRef(function(r,x){var i,C;const F=mi(),j=Wa(),Y=va(F,qfe),D=va(F,Pde),O=va(F,Z5),t=!j.hideFooterSelectedRowCount&&D>0?Ce.jsx(Hge,{selectedRowCount:D}):Ce.jsx("div",{}),l=!j.hideFooterRowCount&&!j.pagination?Ce.jsx(j.slots.footerRowCount,Ge({},(i=j.slotProps)==null?void 0:i.footerRowCount,{rowCount:Y,visibleRowCount:O})):null,S=j.pagination&&!j.hideFooterPagination&&j.slots.pagination&&Ce.jsx(j.slots.pagination,Ge({},(C=j.slotProps)==null?void 0:C.pagination));return Ce.jsxs(Spe,Ge({ref:x},r,{children:[t,l,S]}))});function jge(){var Y,D;const e=mi(),r=va(e,wd),x=Wa(),F=va(e,gg),j=e.current.unstable_applyPipeProcessors("preferencePanel",null,F.openedPanelValue??Md.filters);return Ce.jsx(x.slots.panel,Ge({as:x.slots.basePopper,open:r.length>0&&F.open,id:F.panelId,"aria-labelledby":F.labelId},(Y=x.slotProps)==null?void 0:Y.panel,(D=x.slotProps)==null?void 0:D.basePopper,{children:j}))}function Gge(){var r;const e=Wa();return Ce.jsxs(Oe.Fragment,{children:[Ce.jsx(jge,{}),e.slots.toolbar&&Ce.jsx(e.slots.toolbar,Ge({},(r=e.slotProps)==null?void 0:r.toolbar))]})}const i6=(e,r,x,F,j)=>{const Y=j.hasScrollY?j.scrollbarSize:0;let D;switch(e){case Jo.LEFT:D=F[x];break;case Jo.RIGHT:D=j.columnsTotalWidth-F[x]-r+Y;break;default:D=0;break}return D},qw={root:Hr.scrollbarFiller,header:Hr["scrollbarFiller--header"],borderTop:Hr["scrollbarFiller--borderTop"],pinnedRight:Hr["scrollbarFiller--pinnedRight"]};function o6({header:e,borderTop:r=!0,pinnedRight:x}){return Ce.jsx("div",{role:"presentation",className:Ln(qw.root,e&&qw.header,r&&qw.borderTop,x&&qw.pinnedRight)})}const Wge=po("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,r)=>r.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),$ge=e=>{const{classes:r}=e;return qn({root:["skeletonLoadingOverlay"]},ki,r)},sR=e=>parseInt(e.getAttribute("data-colindex"),10),Yge=Oe.forwardRef(function(r,x){const F=Wa(),{slots:j}=F,Y=$ge({classes:F.classes}),D=Oe.useRef(null),O=vi(D,x),t=mi(),l=va(t,qu),S=(l==null?void 0:l.viewportInnerSize.height)??0,i=Math.ceil(S/l.rowHeight),C=va(t,N5),w=va(t,Qp),v=Oe.useMemo(()=>w.filter(u=>u<=C).length,[C,w]),m=va(t,nl),a=Oe.useMemo(()=>m.slice(0,v),[m,v]),n=va(t,Fb),s=Oe.useCallback((u,b,p)=>{const E=i6(p,u,b,w,l);return{[p]:E}},[l,w]),o=Oe.useCallback(u=>{if(n.left.findIndex(b=>b.field===u)!==-1)return Jo.LEFT;if(n.right.findIndex(b=>b.field===u)!==-1)return Jo.RIGHT},[n.left,n.right]),h=Oe.useMemo(()=>{const u=[];for(let b=0;b$.field===g.field):E-n.left.length,T=c&&s(g.computedWidth,E,c),L=l.columnsTotalWidth0}))}u.push(Ce.jsx("div",{className:Ln(Hr.row,Hr.rowSkeleton,b===0&&Hr["row--firstVisible"]),children:p},`skeleton-row-${b}`))}return u},[j,a,n,i,F.showCellVerticalBorder,l.columnsTotalWidth,l.viewportOuterSize.width,l.rowHeight,l.hasScrollY,l.scrollbarSize,o,s]);return Za(t,"columnResize",u=>{var T,L,P;const{colDef:b,width:p}=u,E=(T=D.current)==null?void 0:T.querySelectorAll(`[data-field="${mv(b.field)}"]`);if(!E)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const g=a.findIndex(d=>d.field===b.field),c=o(b.field),y=c===Jo.LEFT,A=c===Jo.RIGHT,M=getComputedStyle(E[0]).getPropertyValue("--width"),R=parseInt(M,10)-p;if(E&&E.forEach(d=>{d.style.setProperty("--width",`${p}px`)}),y){const d=(L=D.current)==null?void 0:L.querySelectorAll(`.${Hr["cell--pinnedLeft"]}`);d==null||d.forEach(k=>{sR(k)>g&&(k.style.left=`${parseInt(getComputedStyle(k).left,10)-R}px`)})}if(A){const d=(P=D.current)==null?void 0:P.querySelectorAll(`.${Hr["cell--pinnedRight"]}`);d==null||d.forEach(k=>{sR(k)({maxHeight:"calc(100% + 1px)",[`& .${rg.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${rg.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),qge=(e,r)=>({from:x,to:F,count:j,page:Y})=>e({from:x,to:F,count:j,page:Y,estimated:r}),eme=({from:e,to:r,count:x,estimated:F})=>F?`${e}–${r} of ${x!==-1?x:`more than ${F>r?F:r}`}`:`${e}–${r} of ${x!==-1?x:`more than ${r}`}`,tme=Oe.forwardRef(function(r,x){const F=mi(),j=Wa(),Y=va(F,mu),D=va(F,Fm),O=va(F,WF),{paginationMode:t,loading:l,estimatedRowCount:S}=j,i=Oe.useMemo(()=>D===-1&&t==="server"&&l?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[l,t,D]),C=Oe.useMemo(()=>Math.max(0,O-1),[O]),w=Oe.useMemo(()=>D===-1||Y.page<=C?Y.page:C,[C,Y.page,D]),v=Oe.useCallback(h=>{const f=Number(h.target.value);F.current.setPageSize(f)},[F]),m=Oe.useCallback((h,f)=>{F.current.setPage(f)},[F]),n=(h=>{for(let f=0;f{const{classes:r}=e;return qn({root:["rowCount"]},ki,r)},ame=po("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,r)=>r.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),ime=Oe.forwardRef(function(r,x){const{className:F,rowCount:j,visibleRowCount:Y}=r,D=hn(r,rme),O=mi(),t=Wa(),l=nme(t);if(j===0)return null;const S=Y=i.left.length&&m=v.lastColumnIndex,$=D+L+2,Z=ome(A.classes,{root:["row",F&&"selected",U&&"row--editable",G&&"row--editing",a&&"row--firstVisible",n&&"row--lastVisible",o&&"row--borderBottom",t==="auto"&&"row--dynamicHeight"]});Oe.useLayoutEffect(()=>{if(M.range){const Ie=c.current.getRowIndexRelativeToVisibleRows(j);Ie!=null&&c.current.unstable_setLastMeasuredRowIndex(Ie)}const Te=y.current;if(!Te||t!=="auto"||typeof ResizeObserver>"u")return;const be=new ResizeObserver(Ie=>{const[Ue]=Ie,Ne=Ue.borderBoxSize&&Ue.borderBoxSize.length>0?Ue.borderBoxSize[0].blockSize:Ue.contentRect.height;c.current.unstable_storeRowHeightMeasurement(j,Ne)});return be.observe(Te),()=>be.disconnect()},[c,M.range,D,t,j]);const q=Oe.useCallback((Te,Ae)=>be=>{Nb(be)||c.current.getRow(j)&&(c.current.publishEvent(Te,c.current.getRowParams(j),be),Ae&&Ae(be))},[c,j]),ae=Oe.useCallback(Te=>{const Ae=x2(Te.target,Hr.cell),be=Ae==null?void 0:Ae.getAttribute("data-field");if(be){if(be===$y.field||be===s6||be==="__reorder__"||c.current.getCellMode(j,be)===Mo.Edit)return;const Ie=c.current.getColumn(be);if((Ie==null?void 0:Ie.type)===HT)return}q("rowClick",h)(Te)},[c,h,q,j]),{slots:ie,slotProps:fe,disableColumnReorder:Q}=A,J=A.rowReordering,oe=va(c,()=>Ge({},c.current.unstable_getRowInternalSizes(j)),mF);let K=t;K==="auto"&&oe&&(oe.baseCenter??0)>0;const ne=Oe.useMemo(()=>{if(s)return{opacity:0,width:0,height:0};const Te=Ge({},O,{maxHeight:t==="auto"?"none":t,minHeight:K,"--height":typeof t=="number"?`${t}px`:t});if(oe!=null&&oe.spacingTop){const Ae=A.rowSpacingType==="border"?"borderTopWidth":"marginTop";Te[Ae]=oe.spacingTop}if(oe!=null&&oe.spacingBottom){const Ae=A.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let be=Te[Ae];typeof be!="number"&&(be=parseInt(be||"0",10)),be+=oe.spacingBottom,Te[Ae]=be}return Te},[s,t,O,K,oe,A.rowSpacingType]),ce=c.current.unstable_applyPipeProcessors("rowClassName",[],j);if(typeof A.getRowClassName=="function"){const Te=D-(((ke=M.range)==null?void 0:ke.firstRowIndex)||0),Ae=Ge({},c.current.getRowParams(j),{isFirstVisible:Te===0,isLastVisible:Te===M.rows.length-1,indexRelativeToCurrentPage:Te});ce.push(A.getRowClassName(Ae))}const re=(Te,Ae,be,Ie,Ue=Vu.NONE)=>{var wt;const Ne=c.current.unstable_getCellColSpanInfo(j,be);if(Ne!=null&&Ne.spannedByColSpan)return null;const ze=(Ne==null?void 0:Ne.cellProps.width)??Te.computedWidth,$e=(Ne==null?void 0:Ne.cellProps.colSpan)??1,st=i6(f_[Ue],Te.computedWidth,be,P,w);if((I==null?void 0:I.type)==="skeletonRow")return Ce.jsx(ie.skeletonCell,{type:Te.type,width:ze,height:t,field:Te.field,align:Te.align},Te.field);const vt=((wt=d[j])==null?void 0:wt[Te.field])??null,at=Te.field==="__reorder__",nt=Object.keys(d).length>0,mt=!(Q||Te.disableReorder),rt=J&&!R.length&&T<=1&&!nt,lt=!(mt||at&&rt),dt=Ue===Vu.VIRTUAL;return Ce.jsx(ie.cell,Ge({column:Te,width:ze,rowId:j,align:Te.align||"left",colIndex:be,colSpan:$e,disableDragEvents:lt,editCellState:vt,isNotVisible:dt,pinnedOffset:st,pinnedPosition:Ue,sectionIndex:Ae,sectionLength:Ie,gridHasFiller:B},fe==null?void 0:fe.cell),Te.field)};if(!I)return null;const ee=i.left.map((Te,Ae)=>re(Te,Ae,Ae,i.left.length,Vu.LEFT)),de=i.right.map((Te,Ae)=>{const be=S.length-i.right.length+Ae;return re(Te,Ae,be,i.right.length,Vu.RIGHT)}),le=S.length-i.left.length-i.right.length,he=[];W&&he.push(re(S[m],m-i.left.length,m,le,Vu.VIRTUAL));for(let Te=v.firstColumnIndex;Te0&&Ce.jsx(lme,{width:Se}),de.length>0&&Ce.jsx("div",{role:"presentation",className:Hr.filler}),de,N!==0&&Ce.jsx(o6,{pinnedRight:i.right.length>0})]}))}),cme=t0(ume);function fme({privateApiRef:e,props:r,children:x}){const F=Oe.useRef(e.current.getPublicApi());return Ce.jsx(pF.Provider,{value:r,children:Ce.jsx(t_.Provider,{value:e,children:Ce.jsx(vF.Provider,{value:F,children:x})})})}const dme=e=>{const r=Oe.useRef(null),x=Oe.useRef(null),F=Oe.useRef(null);e.current.register("public",{rootElementRef:r}),e.current.register("private",{mainElementRef:x,virtualScrollerRef:F})},hme=e=>{const r=nu();e.current.state.theme||(e.current.state.theme=r);const x=Oe.useRef(!0);Oe.useEffect(()=>{x.current?x.current=!1:e.current.setState(F=>Ge({},F,{theme:r}))},[e,r])},vme=Rfe()&&window.localStorage.getItem("DEBUG")!=null,nx=()=>{},pme={debug:nx,info:nx,warn:nx,error:nx},lR=["debug","info","warn","error"];function uR(e,r,x=console){const F=lR.indexOf(r);if(F===-1)throw new Error(`MUI X: Log level ${r} not recognized.`);return lR.reduce((Y,D,O)=>(O>=F?Y[D]=(...t)=>{const[l,...S]=t;x[D](`MUI X: ${e} - ${l}`,...S)}:Y[D]=nx,Y),{})}const gme=(e,r)=>{const x=Oe.useCallback(F=>vme?uR(F,"debug",r.logger):r.logLevel?uR(F,r.logLevel.toString(),r.logger):pme,[r.logLevel,r.logger]);Mi(e,{getLogger:x},"private")};class mme{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(r,x,F={}){let j=this.events[r];j||(j={highPriority:new Map,regular:new Map},this.events[r]=j),F.isFirst?j.highPriority.set(x,!0):j.regular.set(x,!0)}removeListener(r,x){this.events[r]&&(this.events[r].regular.delete(x),this.events[r].highPriority.delete(x))}removeAllListeners(){this.events={}}emit(r,...x){const F=this.events[r];if(!F)return;const j=Array.from(F.highPriority.keys()),Y=Array.from(F.regular.keys());for(let D=j.length-1;D>=0;D-=1){const O=j[D];F.highPriority.has(O)&&O.apply(this,x)}for(let D=0;D(this.listeners.add(x),()=>{this.listeners.delete(x)}),this.getSnapshot=()=>this.value,this.update=x=>{this.value=x,this.listeners.forEach(F=>F(x))},this.value=r,this.listeners=new Set}}const g_=Symbol("mui.api_private"),yme=e=>e.isPropagationStopped!==void 0;let cR=0;function xme(e){var j;const r=(j=e.current)==null?void 0:j[g_];if(r)return r;const x={},F={state:x,store:l6.create(x),instanceId:{id:cR}};return cR+=1,F.getPublicApi=()=>e.current,F.register=(Y,D)=>{Object.keys(D).forEach(O=>{const t=D[O],l=F[O];if((l==null?void 0:l.spying)===!0?l.target=t:F[O]=t,Y==="public"){const S=e.current,i=S[O];(i==null?void 0:i.spying)===!0?i.target=t:S[O]=t}})},F.register("private",{caches:{},eventManager:new mme}),F}function bme(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[g_]:e.current}}function wme(e,r){var D;const x=Oe.useRef(),F=Oe.useRef();F.current||(F.current=xme(x)),x.current||(x.current=bme(F));const j=Oe.useCallback((...O)=>{const[t,l,S={}]=O;if(S.defaultMuiPrevented=!1,yme(S)&&S.isPropagationStopped())return;const i=r.signature===bd.DataGridPro||r.signature===bd.DataGridPremium?{api:F.current.getPublicApi()}:{};F.current.eventManager.emit(t,l,S,i)},[F,r.signature]),Y=Oe.useCallback((O,t,l)=>{F.current.eventManager.on(O,t,l);const S=F.current;return()=>{S.eventManager.removeListener(O,t)}},[F]);return Mi(F,{subscribeEvent:Y,publishEvent:j},"public"),e&&!((D=e.current)!=null&&D.state)&&(e.current=x.current),Oe.useImperativeHandle(e,()=>x.current,[x]),Oe.useEffect(()=>{const O=F.current;return()=>{O.publishEvent("unmount")}},[F]),F}const Tme=(e,r)=>{const x=Oe.useCallback(F=>{if(r.localeText[F]==null)throw new Error(`Missing translation for key ${F}.`);return r.localeText[F]},[r.localeText]);e.current.register("public",{getLocaleText:x})},Sme=e=>{const r=Oe.useRef({}),x=Oe.useRef(!1),F=Oe.useCallback(S=>{x.current||!S||(x.current=!0,Object.values(S.appliers).forEach(i=>{i()}),x.current=!1)},[]),j=Oe.useCallback((S,i,C)=>{r.current[S]||(r.current[S]={processors:new Map,processorsAsArray:[],appliers:{}});const w=r.current[S];return w.processors.get(i)!==C&&(w.processors.set(i,C),w.processorsAsArray=Array.from(r.current[S].processors.values()),F(w)),()=>{r.current[S].processors.delete(i),r.current[S].processorsAsArray=Array.from(r.current[S].processors.values())}},[F]),Y=Oe.useCallback((S,i,C)=>(r.current[S]||(r.current[S]={processors:new Map,processorsAsArray:[],appliers:{}}),r.current[S].appliers[i]=C,()=>{const w=r.current[S].appliers,v=hn(w,[i].map(Xx));r.current[S].appliers=v}),[]),D=Oe.useCallback(S=>{F(r.current[S])},[F]),O=Oe.useCallback((...S)=>{const[i,C,w]=S;if(!r.current[i])return C;const v=r.current[i].processorsAsArray;let m=C;for(let a=0;a{const F=Oe.useRef(),j=Oe.useRef(`mui-${Math.round(Math.random()*1e9)}`),Y=Oe.useCallback(()=>{F.current=e.current.registerPipeProcessor(r,j.current,x)},[e,x,r]);zb(()=>{Y()});const D=Oe.useRef(!0);Oe.useEffect(()=>(D.current?D.current=!1:Y(),()=>{F.current&&(F.current(),F.current=null)}),[Y])},u6=(e,r,x)=>{const F=Oe.useRef(),j=Oe.useRef(`mui-${Math.round(Math.random()*1e9)}`),Y=Oe.useCallback(()=>{F.current=e.current.registerPipeApplier(r,j.current,x)},[e,x,r]);zb(()=>{Y()});const D=Oe.useRef(!0);Oe.useEffect(()=>(D.current?D.current=!1:Y(),()=>{F.current&&(F.current(),F.current=null)}),[Y])},b2=(e,r,x,F)=>{const j=Oe.useCallback(()=>{e.current.registerStrategyProcessor(r,x,F)},[e,F,x,r]);zb(()=>{j()});const Y=Oe.useRef(!0);Oe.useEffect(()=>{Y.current?Y.current=!1:j()},[j])},mg="none",fR={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Cme=e=>{const r=Oe.useRef(new Map),x=Oe.useRef({}),F=Oe.useCallback((t,l,S)=>{const i=()=>{const v=x.current[l],m=hn(v,[t].map(Xx));x.current[l]=m};x.current[l]||(x.current[l]={});const C=x.current[l],w=C[t];return C[t]=S,!w||w===S||t===e.current.getActiveStrategy(fR[l])&&e.current.publishEvent("activeStrategyProcessorChange",l),i},[e]),j=Oe.useCallback((t,l)=>{const S=e.current.getActiveStrategy(fR[t]);if(S==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=x.current[t];if(!i||!i[S])throw new Error(`No processor found for processor "${t}" on strategy "${S}"`);const C=i[S];return C(l)},[e]),Y=Oe.useCallback(t=>{const S=Array.from(r.current.entries()).find(([,i])=>i.group!==t?!1:i.isAvailable());return(S==null?void 0:S[0])??mg},[]),D=Oe.useCallback((t,l,S)=>{r.current.set(l,{group:t,isAvailable:S}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Mi(e,{registerStrategyProcessor:F,applyStrategyProcessor:j,getActiveStrategy:Y,setStrategyAvailability:D},"private")},Mme=e=>{const r=Oe.useRef({}),[,x]=Oe.useState(),F=Oe.useCallback(l=>{r.current[l.stateId]=l},[]),j=Oe.useCallback((l,S)=>{let i;if(SF(l)?i=l(e.current.state):i=l,e.current.state===i)return!1;let C=!1;const w=[];if(Object.keys(r.current).forEach(v=>{const m=r.current[v],a=m.stateSelector(e.current.state,e.current.instanceId),n=m.stateSelector(i,e.current.instanceId);n!==a&&(w.push({stateId:m.stateId,hasPropChanged:n!==m.propModel}),m.propModel!==void 0&&n!==m.propModel&&(C=!0))}),w.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${w[0].stateId}, therefore, you're not allowed to update ${w.map(v=>v.stateId).join(", ")} in the same transaction.`);if(C||(e.current.state=i,e.current.publishEvent&&e.current.publishEvent("stateChange",i),e.current.store.update(i)),w.length===1){const{stateId:v,hasPropChanged:m}=w[0],a=r.current[v],n=a.stateSelector(i,e.current.instanceId);a.propOnChange&&m&&a.propOnChange(n,{reason:S,api:e.current}),C||e.current.publishEvent(a.changeEvent,n,{reason:S})}return!C},[e]),Y=Oe.useCallback((l,S,i)=>e.current.setState(C=>Ge({},C,{[l]:S(C[l])}),i),[e]),D=Oe.useCallback(()=>x(()=>e.current.state),[e]),O={setState:j,forceUpdate:D},t={updateControlState:Y,registerControlState:F};Mi(e,O,"public"),Mi(e,t,"private")},Ame=(e,r)=>{const x=wme(e,r);return dme(x),hme(x),gme(x,r),Mme(x),Sme(x),Cme(x),Tme(x,r),x.current.register("private",{rootProps:r}),x},Kl=(e,r,x)=>{const F=Oe.useRef(!1);F.current||(r.current.state=e(r.current.state,x,r),F.current=!0)};function cM(e,r){const x=typeof e=="string"?e:`${e}`;if(r.shouldAppendQuotes||r.escapeFormulas){const F=x.replace(/"/g,'""');return r.escapeFormulas&&["=","+","-","@"," ","\r"].includes(F[0])?`"'${F}"`:[r.delimiter,` +`,"\r",'"'].some(j=>x.includes(j))?`"${F}"`:F}return x}const m_=(e,r)=>{var Y,D;const{csvOptions:x,ignoreValueFormatter:F}=r;let j;if(F){const O=e.colDef.type;O==="number"?j=String(e.value):O==="date"||O==="dateTime"?j=(Y=e.value)==null?void 0:Y.toISOString():typeof((D=e.value)==null?void 0:D.toString)=="function"?j=e.value.toString():j=e.value}else j=e.formattedValue;return cM(j,x)};class fM{constructor(r){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=r}addValue(r){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),r==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(r,this.options.csvOptions):this.rowString+=r,this.isEmpty=!1}getRowString(){return this.rowString}}const Eme=({id:e,columns:r,getCellParams:x,csvOptions:F,ignoreValueFormatter:j})=>{const Y=new fM({csvOptions:F});return r.forEach(D=>{const O=x(e,D.field);Y.addValue(m_(O,{ignoreValueFormatter:j,csvOptions:F}))}),Y.getRowString()};function Pme(e){const{columns:r,rowIds:x,csvOptions:F,ignoreValueFormatter:j,apiRef:Y}=e,D=x.reduce((i,C)=>`${i}${Eme({id:C,columns:r,getCellParams:Y.current.getCellParams,ignoreValueFormatter:j,csvOptions:F})}\r +`,"").trim();if(!F.includeHeaders)return D;const O=r.filter(i=>i.field!==$y.field),t=[];if(F.includeColumnGroupsHeaders){const i=Y.current.getAllGroupDetails();let C=0;const w=O.reduce((v,m)=>{const a=Y.current.getColumnGroupPath(m.field);return v[m.field]=a,C=Math.max(C,a.length),v},{});for(let v=0;v{const n=(w[a.field]||[])[v],s=i[n];m.addValue(s?s.headerName||s.groupId:"")})}}const l=new fM({csvOptions:F,sanitizeCellValue:cM});return O.forEach(i=>{l.addValue(i.headerName||i.field)}),t.push(l),`${`${t.map(i=>i.getRowString()).join(`\r `)}\r -`}${D}`.trim()}function wR(e){const r=document.createElement("span");r.style.whiteSpace="pre",r.style.userSelect="all",r.style.opacity="0px",r.textContent=e,document.body.appendChild(r);const y=document.createRange();y.selectNode(r);const F=window.getSelection();F.removeAllRanges(),F.addRange(y);try{document.execCommand("copy")}finally{document.body.removeChild(r)}}function wxe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{wR(e)}):wR(e)}function Txe(e){var r;return!!((r=window.getSelection())!=null&&r.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Sxe=(e,r)=>{const y=r.ignoreValueFormatterDuringExport,F=(typeof y=="object"?y==null?void 0:y.clipboardExport:y)||!1,j=r.clipboardCopyCellDelimiter,Y=Oe.useCallback(D=>{if(!((D.ctrlKey||D.metaKey)&&D.key.toLowerCase()==="c"&&!D.shiftKey&&!D.altKey)||Txe(D.target))return;let O="";if(e.current.getSelectedRows().size>0)O=e.current.getDataAsCsv({includeHeaders:!1,delimiter:j,shouldAppendQuotes:!1,escapeFormulas:!1});else{const l=sf(e);if(l){const S=e.current.getCellParams(l.id,l.field);O=F_(S,{csvOptions:{delimiter:j,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:F})}}O=e.current.unstable_applyPipeProcessors("clipboardCopy",O),O&&(wxe(O),e.current.publishEvent("clipboardCopy",O))},[e,F,j]);i_(e,e.current.rootElementRef,"keydown",Y),Fo(e,"clipboardCopy",r.onClipboardCopy)},Cxe=e=>Ge({},e,{columnMenu:{open:!1}}),Mxe=e=>{const r=nl(e,"useGridColumnMenu"),y=Oe.useCallback(D=>{const O=I3(e.current.state),t={open:!0,field:D};(t.open!==O.open||t.field!==O.field)&&(e.current.setState(S=>S.columnMenu.open&&S.columnMenu.field===D?S:(r.debug("Opening Column Menu"),Ge({},S,{columnMenu:{open:!0,field:D}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,r]),F=Oe.useCallback(()=>{const D=I3(e.current.state);if(D.field){const l=gv(e),S=yf(e),i=qh(e);let C=D.field;if(l[C]||(C=i[0]),S[C]===!1){const w=i.filter(m=>m===C?!0:S[m]!==!1),v=w.indexOf(C);C=w[v+1]||w[v-1]}e.current.setColumnHeaderFocus(C)}const O={open:!1,field:void 0};(O.open!==D.open||O.field!==D.field)&&(e.current.setState(l=>(r.debug("Hiding Column Menu"),Ge({},l,{columnMenu:O}))),e.current.forceUpdate())},[e,r]),j=Oe.useCallback(D=>{r.debug("Toggle Column Menu");const O=I3(e.current.state);!O.open||O.field!==D?y(D):F()},[e,r,y,F]);Mi(e,{showColumnMenu:y,hideColumnMenu:F,toggleColumnMenu:j},"public"),Za(e,"columnResizeStart",F),Za(e,"virtualScrollerWheel",e.current.hideColumnMenu),Za(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Axe=(e,r,y)=>{var j,Y,D;const F=pm({apiRef:y,columnsToUpsert:r.columns,initialState:(j=r.initialState)==null?void 0:j.columns,columnVisibilityModel:r.columnVisibilityModel??((D=(Y=r.initialState)==null?void 0:Y.columns)==null?void 0:D.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return Ge({},e,{columns:F,pinnedColumns:e.pinnedColumns??gM})};function Exe(e,r){var g,c;const y=nl(e,"useGridColumns"),F=Oe.useRef(r.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:r.columnVisibilityModel,propOnChange:r.onColumnVisibilityModelChange,stateSelector:yf,changeEvent:"columnVisibilityModelChange"});const j=Oe.useCallback(x=>{var A,M;y.debug("Updating columns state."),e.current.setState(TR(x)),e.current.publishEvent("columnsChange",x.orderedFields),(M=(A=e.current).updateRenderContext)==null||M.call(A),e.current.forceUpdate()},[y,e]),Y=Oe.useCallback(x=>gv(e)[x],[e]),D=Oe.useCallback(()=>yd(e),[e]),O=Oe.useCallback(()=>rl(e),[e]),t=Oe.useCallback((x,A=!0)=>(A?rl(e):yd(e)).findIndex(R=>R.field===x),[e]),l=Oe.useCallback(x=>{const A=t(x);return Jp(e)[A]},[e,t]),S=Oe.useCallback(x=>{var M,R;yf(e)!==x&&(e.current.setState(T=>Ge({},T,{columns:pm({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:x,keepOnlyColumnsToUpsert:!1})})),(R=(M=e.current).updateRenderContext)==null||R.call(M),e.current.forceUpdate())},[e]),i=Oe.useCallback(x=>{const A=pm({apiRef:e,columnsToUpsert:x,initialState:void 0,keepOnlyColumnsToUpsert:!1});j(A)},[e,j]),C=Oe.useCallback((x,A)=>{const M=yf(e),R=M[x]??!0;if(A!==R){const T=Ge({},M,{[x]:A});e.current.setColumnVisibilityModel(T)}},[e]),w=Oe.useCallback(x=>qh(e).findIndex(M=>M===x),[e]),v=Oe.useCallback((x,A)=>{const M=qh(e),R=w(x);if(R===A)return;y.debug(`Moving column ${x} to index ${A}`);const T=[...M],L=T.splice(R,1)[0];T.splice(A,0,L),j(Ge({},ch(e.current.state),{orderedFields:T}));const P={column:e.current.getColumn(x),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(x),oldIndex:R};e.current.publishEvent("columnIndexChange",P)},[e,y,j,w]),m=Oe.useCallback((x,A)=>{y.debug(`Updating column ${x} width to ${A}`);const M=ch(e.current.state),R=M.lookup[x],T=Ge({},R,{width:A,hasBeenResized:!0});j(yM(Ge({},M,{lookup:Ge({},M.lookup,{[x]:T})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(x),colDef:T,width:A})},[e,y,j]),a={getColumn:Y,getAllColumns:D,getColumnIndex:t,getColumnPosition:l,getVisibleColumns:O,getColumnIndexRelativeToVisibleColumns:w,updateColumns:i,setColumnVisibilityModel:S,setColumnVisibility:C,setColumnWidth:m},n={setColumnIndex:v};Mi(e,a,"public"),Mi(e,n,r.signature===md.DataGrid?"private":"public");const s=Oe.useCallback((x,A)=>{var d,k;const M={},R=yf(e);(!A.exportOnlyDirtyModels||r.columnVisibilityModel!=null||Object.keys(((k=(d=r.initialState)==null?void 0:d.columns)==null?void 0:k.columnVisibilityModel)??{}).length>0||Object.keys(R).length>0)&&(M.columnVisibilityModel=R),M.orderedFields=qh(e);const L=yd(e),P={};return L.forEach(I=>{if(I.hasBeenResized){const N={};y_.forEach(B=>{let G=I[B];G===1/0&&(G=-1),N[B]=G}),P[I.field]=N}}),Object.keys(P).length>0&&(M.dimensions=P),Ge({},x,{columns:M})},[e,r.columnVisibilityModel,(g=r.initialState)==null?void 0:g.columns]),o=Oe.useCallback((x,A)=>{var L;const M=(L=A.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,R=A.stateToRestore.columns;if(M==null&&R==null)return x;const T=pm({apiRef:e,columnsToUpsert:[],initialState:R,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1});return e.current.setState(TR(T)),R!=null&&e.current.publishEvent("columnsChange",T.orderedFields),x},[e]),h=Oe.useCallback((x,A)=>{var M;if(A===Td.columns){const R=r.slots.columnsPanel;return Ce.jsx(R,Ge({},(M=r.slotProps)==null?void 0:M.columnsPanel))}return x},[r.slots.columnsPanel,(c=r.slotProps)==null?void 0:c.columnsPanel]),f=Oe.useCallback(x=>r.disableColumnSelector?x:[...x,"columnMenuColumnsItem"],[r.disableColumnSelector]);Qo(e,"columnMenu",f),Qo(e,"exportState",s),Qo(e,"restoreState",o),Qo(e,"preferencePanel",h);const u=Oe.useRef(null);Za(e,"viewportInnerSizeChange",x=>{u.current!==x.width&&(u.current=x.width,j(yM(ch(e.current.state),e.current.getRootDimensions())))});const p=Oe.useCallback(()=>{y.info("Columns pipe processing have changed, regenerating the columns");const x=pm({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});j(x)},[e,y,j]);y6(e,"hydrateColumns",p);const E=Oe.useRef(!0);Oe.useEffect(()=>{if(E.current){E.current=!1;return}if(y.info(`GridColumns have changed, new length ${r.columns.length}`),F.current===r.columns)return;const x=pm({apiRef:e,initialState:void 0,columnsToUpsert:r.columns,keepOnlyColumnsToUpsert:!0});F.current=r.columns,j(x)},[y,e,j,r.columns]),Oe.useEffect(()=>{r.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(r.columnVisibilityModel)},[e,y,r.columnVisibilityModel])}function TR(e){return r=>Ge({},r,{columns:e})}const Pxe=(e,r)=>{var y;return Ge({},e,{density:((y=r.initialState)==null?void 0:y.density)??r.density??"standard"})},Lxe=(e,r)=>{var O;const y=nl(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:r.density,propOnChange:r.onDensityChange,stateSelector:j0,changeEvent:"densityChange"});const j={setDensity:pa(t=>{j0(e.current.state)!==t&&(y.debug(`Set grid density to ${t}`),e.current.setState(S=>Ge({},S,{density:t})))})};Mi(e,j,"public");const Y=Oe.useCallback((t,l)=>{var C;const S=j0(e.current.state);return!l.exportOnlyDirtyModels||r.density!=null||((C=r.initialState)==null?void 0:C.density)!=null?Ge({},t,{density:S}):t},[e,r.density,(O=r.initialState)==null?void 0:O.density]),D=Oe.useCallback((t,l)=>{var i;const S=(i=l.stateToRestore)!=null&&i.density?l.stateToRestore.density:j0(e.current.state);return e.current.setState(C=>Ge({},C,{density:S})),t},[e]);Qo(e,"exportState",Y),Qo(e,"restoreState",D),Oe.useEffect(()=>{r.density&&e.current.setDensity(r.density)},[e,r.density])};function Ixe(e,r="csv",y=document.title||"untitled"){const F=`${y}.${r}`;if("download"in HTMLAnchorElement.prototype){const j=URL.createObjectURL(e),Y=document.createElement("a");Y.href=j,Y.download=F,Y.click(),setTimeout(()=>{URL.revokeObjectURL(j)});return}throw new Error("MUI X: exportAs not supported.")}const __=({apiRef:e,options:r})=>{const y=yd(e);return r.fields?r.fields.reduce((j,Y)=>{const D=y.find(O=>O.field===Y);return D&&j.push(D),j},[]):(r.allColumns?y:rl(e)).filter(j=>!j.disableExport)},z_=({apiRef:e})=>{var t,l;const r=Mpe(e),y=pf(e),F=e.current.getSelectedRows(),j=r.filter(S=>y[S].type!=="footer"),Y=Qp(e),D=((t=Y==null?void 0:Y.top)==null?void 0:t.map(S=>S.id))||[],O=((l=Y==null?void 0:Y.bottom)==null?void 0:l.map(S=>S.id))||[];return j.unshift(...D),j.push(...O),F.size>0?j.filter(S=>F.has(S)):j},Rxe=(e,r)=>{const y=nl(e,"useGridCsvExport"),F=r.ignoreValueFormatterDuringExport,j=(typeof F=="object"?F==null?void 0:F.csvExport:F)||!1,Y=Oe.useCallback((l={})=>{y.debug("Get data as CSV");const S=__({apiRef:e,options:l}),C=(l.getRowsToExport??z_)({apiRef:e});return bxe({columns:S,rowIds:C,csvOptions:{delimiter:l.delimiter||",",shouldAppendQuotes:l.shouldAppendQuotes??!0,includeHeaders:l.includeHeaders??!0,includeColumnGroupsHeaders:l.includeColumnGroupsHeaders??!0,escapeFormulas:l.escapeFormulas??!0},ignoreValueFormatter:j,apiRef:e})},[y,e,j]),D=Oe.useCallback(l=>{y.debug("Export data as CSV");const S=Y(l),i=new Blob([l!=null&&l.utf8WithBom?new Uint8Array([239,187,191]):"",S],{type:"text/csv"});Ixe(i,"csv",l==null?void 0:l.fileName)},[y,Y]);Mi(e,{getDataAsCsv:Y,exportDataAsCsv:D},"public");const t=Oe.useCallback((l,S)=>{var i;return(i=S.csvOptions)!=null&&i.disableToolbarButton?l:[...l,{component:Ce.jsx(x1e,{options:S.csvOptions}),componentName:"csvExport"}]},[]);Qo(e,"exportMenu",t)},k3=(e,r,y)=>{let F=e.paginationModel;const j=e.rowCount,Y=(y==null?void 0:y.pageSize)??F.pageSize,D=(y==null?void 0:y.page)??F.page,O=o_(j,Y,D);y&&((y==null?void 0:y.page)!==F.page||(y==null?void 0:y.pageSize)!==F.pageSize)&&(F=y);const t=kpe(F.page,O);return t!==F.page&&(F=Ge({},F,{page:t})),l_(F.pageSize,r),F},kxe=(e,r)=>{var v,m;const y=nl(e,"useGridPaginationModel"),F=va(e,Ub),j=Math.floor(r.rowHeight*F);e.current.registerControlState({stateId:"paginationModel",propModel:r.paginationModel,propOnChange:r.onPaginationModelChange,stateSelector:gu,changeEvent:"paginationModelChange"});const Y=Oe.useCallback(a=>{const n=gu(e);a!==n.page&&(y.debug(`Setting page to ${a}`),e.current.setPaginationModel({page:a,pageSize:n.pageSize}))},[e,y]),D=Oe.useCallback(a=>{const n=gu(e);a!==n.pageSize&&(y.debug(`Setting page size to ${a}`),e.current.setPaginationModel({pageSize:a,page:n.page}))},[e,y]),O=Oe.useCallback(a=>{const n=gu(e);a!==n&&(y.debug("Setting 'paginationModel' to",a),e.current.setState(s=>Ge({},s,{pagination:Ge({},s.pagination,{paginationModel:k3(s.pagination,r.signature,a)})})))},[e,y,r.signature]);Mi(e,{setPage:Y,setPageSize:D,setPaginationModel:O},"public");const l=Oe.useCallback((a,n)=>{var h,f;const s=gu(e);return!n.exportOnlyDirtyModels||r.paginationModel!=null||((f=(h=r.initialState)==null?void 0:h.pagination)==null?void 0:f.paginationModel)!=null||s.page!==0&&s.pageSize!==Rpe(r.autoPageSize)?Ge({},a,{pagination:Ge({},a.pagination,{paginationModel:s})}):a},[e,r.paginationModel,(m=(v=r.initialState)==null?void 0:v.pagination)==null?void 0:m.paginationModel,r.autoPageSize]),S=Oe.useCallback((a,n)=>{var o,h;const s=(o=n.stateToRestore.pagination)!=null&&o.paginationModel?Ge({},s_(r.autoPageSize),(h=n.stateToRestore.pagination)==null?void 0:h.paginationModel):gu(e);return e.current.setState(f=>Ge({},f,{pagination:Ge({},f.pagination,{paginationModel:k3(f.pagination,r.signature,s)})})),a},[e,r.autoPageSize,r.signature]);Qo(e,"exportState",l),Qo(e,"restoreState",S);const i=()=>{var n;const a=gu(e);(n=e.current.virtualScrollerRef)!=null&&n.current&&e.current.scrollToIndexes({rowIndex:a.page*a.pageSize})},C=Oe.useCallback(()=>{if(!r.autoPageSize)return;const a=e.current.getRootDimensions(),n=Math.floor(a.viewportInnerSize.height/j);e.current.setPageSize(n)},[e,r.autoPageSize,j]),w=Oe.useCallback(a=>{if(a==null)return;const n=gu(e),s=u_(e);n.page>s-1&&e.current.setPage(Math.max(0,s-1))},[e]);Za(e,"viewportInnerSizeChange",C),Za(e,"paginationModelChange",i),Za(e,"rowCountChange",w),Oe.useEffect(()=>{e.current.setState(a=>Ge({},a,{pagination:Ge({},a.pagination,{paginationModel:k3(a.pagination,r.signature,r.paginationModel)})}))},[e,r.paginationModel,r.paginationMode,r.signature]),Oe.useEffect(C,[C])};function Dxe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Oxe(e){const r=document.createElement("iframe");return r.style.position="absolute",r.style.width="0px",r.style.height="0px",r.title=e||document.title,r}const Fxe=(e,r)=>{const y=nl(e,"useGridPrintExport"),F=Oe.useRef(null),j=Oe.useRef(null),Y=Oe.useRef({}),D=Oe.useRef([]),O=Oe.useRef();Oe.useEffect(()=>{F.current=oo(e.current.rootElementRef.current)},[e]);const t=Oe.useCallback((m,a,n)=>new Promise(s=>{const o=__({apiRef:e,options:{fields:m,allColumns:a}}).map(u=>u.field),h=yd(e),f={};h.forEach(u=>{f[u.field]=o.includes(u.field)}),n&&(f[Wy.field]=!0),e.current.setColumnVisibilityModel(f),s()}),[e]),l=Oe.useCallback(m=>{const n=m({apiRef:e}).reduce((s,o)=>{const h=e.current.getRow(o);return h[Km]||s.push(h),s},[]);e.current.setRows(n)},[e]),S=Oe.useCallback((m,a)=>{var A,M,R,T;const n=Ge({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},a),s=m.contentDocument;if(!s)return;const o=$y(e.current.state),h=e.current.rootElementRef.current,f=h.cloneNode(!0),u=f.querySelector(`.${Hr.main}`);u.style.overflow="visible",f.style.contain="size";let b=((A=h.querySelector(`.${Hr.toolbarContainer}`))==null?void 0:A.offsetHeight)||0,p=((M=h.querySelector(`.${Hr.footerContainer}`))==null?void 0:M.offsetHeight)||0;n.hideToolbar&&((R=f.querySelector(`.${Hr.toolbarContainer}`))==null||R.remove(),b=0),n.hideFooter&&((T=f.querySelector(`.${Hr.footerContainer}`))==null||T.remove(),p=0);const E=o.currentPageTotalHeight+l6(e,r)+b+p;if(f.style.height=`${E}px`,f.style.boxSizing="content-box",!n.hideFooter){const L=f.querySelector(`.${Hr.footerContainer}`);L.style.position="absolute",L.style.width="100%",L.style.top=`${E-p}px`}const g=document.createElement("div");g.appendChild(f),s.body.style.marginTop="0px",s.body.innerHTML=g.innerHTML;const c=typeof n.pageStyle=="function"?n.pageStyle():n.pageStyle;if(typeof c=="string"){const L=s.createElement("style");L.appendChild(s.createTextNode(c)),s.head.appendChild(L)}n.bodyClassName&&s.body.classList.add(...n.bodyClassName.split(" "));const x=[];if(n.copyStyles){const L=h.getRootNode(),d=(L.constructor.name==="ShadowRoot"?L:F.current).querySelectorAll("style, link[rel='stylesheet']");for(let k=0;k{N.addEventListener("load",()=>B())})),s.head.appendChild(N)}}}Promise.all(x).then(()=>{m.contentWindow.print()})},[e,F,r]),i=Oe.useCallback(m=>{var a,n;F.current.body.removeChild(m),e.current.restoreState(j.current||{}),(n=(a=j.current)==null?void 0:a.columns)!=null&&n.columnVisibilityModel||e.current.setColumnVisibilityModel(Y.current),e.current.setState(s=>Ge({},s,{virtualization:O.current})),e.current.setRows(D.current),j.current=null,Y.current={},D.current=[]},[e]),w={exportDataAsPrint:Oe.useCallback(async m=>{if(y.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(j.current=e.current.exportState(),Y.current=yf(e),D.current=e.current.getSortedRows().filter(n=>!n[Km]),r.pagination){const s={page:0,pageSize:n_(e)};e.current.setState(o=>Ge({},o,{pagination:Ge({},o.pagination,{paginationModel:k3(o.pagination,"DataGridPro",s)})}))}O.current=e.current.state.virtualization,e.current.setState(n=>Ge({},n,{virtualization:Ge({},n.virtualization,{enabled:!1,enabledForColumns:!1})})),await t(m==null?void 0:m.fields,m==null?void 0:m.allColumns,m==null?void 0:m.includeCheckboxes),l((m==null?void 0:m.getRowsToExport)??z_),await Dxe();const a=Oxe(m==null?void 0:m.fileName);a.onload=()=>{S(a,m),a.contentWindow.matchMedia("print").addEventListener("change",s=>{s.matches===!1&&i(a)})},F.current.body.appendChild(a)},[r,y,e,S,i,t,l])};Mi(e,w,"public");const v=Oe.useCallback((m,a)=>{var n;return(n=a.printOptions)!=null&&n.disableToolbarButton?m:[...m,{component:Ce.jsx(b1e,{options:a.printOptions}),componentName:"printExport"}]},[]);Qo(e,"exportMenu",v)},_xe=(e,r,y)=>{var j,Y;const F=r.filterModel??((Y=(j=r.initialState)==null?void 0:j.filter)==null?void 0:Y.filterModel)??nb();return Ge({},e,{filter:{filterModel:J5(F,r.disableMultipleColumnsFiltering,y),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},zxe=e=>e.filteredRowsLookup;function SR(e,r){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:r.rows.tree,filteredRowsLookup:r.filter.filteredRowsLookup})}function Bxe(){return _F(Object.values)}const Nxe=(e,r)=>{var E,g,c;const y=nl(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:r.filterModel,propOnChange:r.onFilterModelChange,stateSelector:ul,changeEvent:"filterModelChange"});const F=Oe.useCallback(()=>{e.current.setState(x=>{const A=ul(x,e.current.instanceId),M=e.current.getFilterState(A),R=Ge({},x,{filter:Ge({},x.filter,M)}),T=SR(e,R);return Ge({},R,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e]),j=Oe.useCallback((x,A)=>A==null||A.filterable===!1||r.disableColumnFilter?x:[...x,"columnMenuFilterItem"],[r.disableColumnFilter]),Y=Oe.useCallback(()=>{F(),e.current.forceUpdate()},[e,F]),D=Oe.useCallback(x=>{const A=ul(e),M=[...A.items],R=M.findIndex(T=>T.id===x.id);R===-1?M.push(x):M[R]=x,e.current.setFilterModel(Ge({},A,{items:M}),"upsertFilterItem")},[e]),O=Oe.useCallback(x=>{const A=ul(e),M=[...A.items];x.forEach(R=>{const T=M.findIndex(L=>L.id===R.id);T===-1?M.push(R):M[T]=R}),e.current.setFilterModel(Ge({},A,{items:M}),"upsertFilterItems")},[e]),t=Oe.useCallback(x=>{const A=ul(e),M=A.items.filter(R=>R.id!==x.id);M.length!==A.items.length&&e.current.setFilterModel(Ge({},A,{items:M}),"deleteFilterItem")},[e]),l=Oe.useCallback((x,A,M)=>{if(y.debug("Displaying filter panel"),x){const R=ul(e),T=R.items.filter(k=>{var G;if(k.value!==void 0)return!(Array.isArray(k.value)&&k.value.length===0);const N=(G=e.current.getColumn(k.field).filterOperators)==null?void 0:G.find(U=>U.value===k.operator);return!(typeof(N==null?void 0:N.requiresFilterValue)>"u"?!0:N==null?void 0:N.requiresFilterValue)});let L;const P=T.find(k=>k.field===x),d=e.current.getColumn(x);P?L=T:r.disableMultipleColumnsFiltering?L=[mM({field:x,operator:d.filterOperators[0].value},e)]:L=[...T,mM({field:x,operator:d.filterOperators[0].value},e)],e.current.setFilterModel(Ge({},R,{items:L}))}e.current.showPreferences(Td.filters,A,M)},[e,y,r.disableMultipleColumnsFiltering]),S=Oe.useCallback(()=>{y.debug("Hiding filter panel"),e.current.hidePreferences()},[e,y]),i=Oe.useCallback(x=>{const A=ul(e);A.logicOperator!==x&&e.current.setFilterModel(Ge({},A,{logicOperator:x}),"changeLogicOperator")},[e]),C=Oe.useCallback(x=>{const A=ul(e);Bp(A.quickFilterValues,x)||e.current.setFilterModel(Ge({},A,{quickFilterValues:[...x]}))},[e]),w=Oe.useCallback((x,A)=>{ul(e)!==x&&(y.debug("Setting filter model"),e.current.updateControlState("filter",NI(x,r.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,y,r.disableMultipleColumnsFiltering]),v=Oe.useCallback(x=>{const A=J5(x,r.disableMultipleColumnsFiltering,e),M=r.filterMode==="client"?Ive(A,e,r.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:M,filterModel:A??nb()});return Ge({},R,{filterModel:A})},[r.disableMultipleColumnsFiltering,r.filterMode,r.disableEval,e]),m={setFilterLogicOperator:i,unstable_applyFilters:Y,deleteFilterItem:t,upsertFilterItem:D,upsertFilterItems:O,setFilterModel:w,showFilterPanel:l,hideFilterPanel:S,setQuickFilterValues:C,ignoreDiacritics:r.ignoreDiacritics,getFilterState:v};Mi(e,m,"public");const a=Oe.useCallback((x,A)=>{var T,L;const M=ul(e);return!A.exportOnlyDirtyModels||r.filterModel!=null||((L=(T=r.initialState)==null?void 0:T.filter)==null?void 0:L.filterModel)!=null||!Bp(M,nb())?Ge({},x,{filter:{filterModel:M}}):x},[e,r.filterModel,(g=(E=r.initialState)==null?void 0:E.filter)==null?void 0:g.filterModel]),n=Oe.useCallback((x,A)=>{var R;const M=(R=A.stateToRestore.filter)==null?void 0:R.filterModel;return M==null?x:(e.current.updateControlState("filter",NI(M,r.disableMultipleColumnsFiltering,e),"restoreState"),Ge({},x,{callbacks:[...x.callbacks,e.current.unstable_applyFilters]}))},[e,r.disableMultipleColumnsFiltering]),s=Oe.useCallback((x,A)=>{var M;if(A===Td.filters){const R=r.slots.filterPanel;return Ce.jsx(R,Ge({},(M=r.slotProps)==null?void 0:M.filterPanel))}return x},[r.slots.filterPanel,(c=r.slotProps)==null?void 0:c.filterPanel]),{getRowId:o}=r,h=wg(Bxe),f=Oe.useCallback(x=>{if(r.filterMode!=="client"||!x.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=Ep(e),M={},{isRowMatchingFilters:R}=x,T={},L={passingFilterItems:null,passingQuickFilterValues:null},P=h.current(e.current.state.rows.dataRowIdToModelLookup);for(let I=0;I{y.debug("onColUpdated - GridColumns changed, applying filters");const x=ul(e),A=gv(e),M=x.items.filter(R=>R.field&&A[R.field]);M.length{x==="filtering"&&e.current.unstable_applyFilters()},[e]),p=Oe.useCallback(()=>{e.current.setState(x=>Ge({},x,{visibleRowsLookup:SR(e,x)})),e.current.forceUpdate()},[e]);Za(e,"rowsSet",F),Za(e,"columnsChange",u),Za(e,"activeStrategyProcessorChange",b),Za(e,"rowExpansionChange",p),Za(e,"columnVisibilityModelChange",()=>{const x=ul(e);x.quickFilterValues&&YF(x)&&e.current.unstable_applyFilters()}),Gb(()=>{e.current.unstable_applyFilters()}),Gi(()=>{r.filterModel!==void 0&&e.current.setFilterModel(r.filterModel)},[e,y,r.filterModel])},Uxe=e=>Ge({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Hxe=(e,r)=>{const y=nl(e,"useGridFocus"),F=Oe.useRef(null),j=Oe.useCallback((b,p)=>{b&&e.current.getRow(b.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(b.id,b.field),p)},[e]),Y=Oe.useCallback((b,p)=>{const E=sf(e);(E==null?void 0:E.id)===b&&(E==null?void 0:E.field)===p||(e.current.setState(g=>(y.debug(`Focusing on cell with id=${b} and field=${p}`),Ge({},g,{tabIndex:{cell:{id:b,field:p},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:b,field:p},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(b)&&(E&&j(E,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(b,p))))},[e,y,j]),D=Oe.useCallback((b,p={})=>{const E=sf(e);j(E,p),e.current.setState(g=>(y.debug(`Focusing on column header with colIndex=${b}`),Ge({},g,{tabIndex:{columnHeader:{field:b},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:b},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,y,j]),O=Oe.useCallback((b,p={})=>{const E=sf(e);j(E,p),e.current.setState(g=>(y.debug(`Focusing on column header filter with colIndex=${b}`),Ge({},g,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:b},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:b},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,y,j]),t=Oe.useCallback((b,p,E={})=>{const g=sf(e);g&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(g.id,g.field),E),e.current.setState(c=>Ge({},c,{tabIndex:{columnGroupHeader:{field:b,depth:p},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:b,depth:p},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),l=Oe.useCallback(()=>b2(e),[e]),S=Oe.useCallback((b,p,E)=>{let g=e.current.getColumnIndex(p);const c=rl(e),x=ib(e,{pagination:r.pagination,paginationMode:r.paginationMode}),A=Qp(e),M=[].concat(A.top||[],x.rows,A.bottom||[]);let R=M.findIndex(d=>d.id===b);E==="right"?g+=1:E==="left"?g-=1:R+=1,g>=c.length?(R+=1,R=0&&(g=c.length-1)),R=uv(R,0,M.length-1);const T=M[R];if(!T)return;const L=e.current.unstable_getCellColSpanInfo(T.id,g);L&&L.spannedByColSpan&&(E==="left"||E==="below"?g=L.leftVisibleCellIndex:E==="right"&&(g=L.rightVisibleCellIndex)),g=uv(g,0,c.length-1);const P=c[g];e.current.setCellFocus(T.id,P.field)},[e,r.pagination,r.paginationMode]),i=Oe.useCallback(({id:b,field:p})=>{e.current.setCellFocus(b,p)},[e]),C=Oe.useCallback((b,p)=>{p.key==="Enter"||p.key==="Tab"||p.key==="Shift"||S2(p.key)||e.current.setCellFocus(b.id,b.field)},[e]),w=Oe.useCallback(({field:b},p)=>{p.target===p.currentTarget&&e.current.setColumnHeaderFocus(b,p)},[e]),v=Oe.useCallback(({fields:b,depth:p},E)=>{if(E.target!==E.currentTarget)return;const g=b2(e);g!==null&&g.depth===p&&b.includes(g.field)||e.current.setColumnGroupHeaderFocus(b[0],p,E)},[e]),m=Oe.useCallback((b,p)=>{var E,g;(g=(E=p.relatedTarget)==null?void 0:E.getAttribute("class"))!=null&&g.includes(Hr.columnHeader)||(y.debug("Clearing focus"),e.current.setState(c=>Ge({},c,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[y,e]),a=Oe.useCallback(b=>{F.current=b},[]),n=Oe.useCallback(b=>{const p=F.current;F.current=null;const E=sf(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:p}))return;if(!E){p&&e.current.setCellFocus(p.id,p.field);return}if((p==null?void 0:p.id)===E.id&&(p==null?void 0:p.field)===E.field)return;const c=e.current.getCellElement(E.id,E.field);c!=null&&c.contains(b.target)||(p?e.current.setCellFocus(p.id,p.field):(e.current.setState(x=>Ge({},x,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),j(E,b)))},[e,j]),s=Oe.useCallback(b=>{if(b.cellMode==="view")return;const p=sf(e);((p==null?void 0:p.id)!==b.id||(p==null?void 0:p.field)!==b.field)&&e.current.setCellFocus(b.id,b.field)},[e]),o=Oe.useCallback(()=>{const b=sf(e);b&&!e.current.getRow(b.id)&&e.current.setState(p=>Ge({},p,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),h=pa(()=>{const b=sf(e);if(!b)return;const p=ib(e,{pagination:r.pagination,paginationMode:r.paginationMode});if(p.rows.find(c=>c.id===b.id))return;const g=rl(e);e.current.setState(c=>Ge({},c,{tabIndex:{cell:{id:p.rows[0].id,field:g[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),f={setCellFocus:Y,setColumnHeaderFocus:D,setColumnHeaderFilterFocus:O},u={moveFocusToRelativeCell:S,setColumnGroupHeaderFocus:t,getColumnGroupHeaderFocus:l};Mi(e,f,"public"),Mi(e,u,"private"),Oe.useEffect(()=>{const b=oo(e.current.rootElementRef.current);return b.addEventListener("mouseup",n),()=>{b.removeEventListener("mouseup",n)}},[e,n]),Za(e,"columnHeaderBlur",m),Za(e,"cellDoubleClick",i),Za(e,"cellMouseDown",a),Za(e,"cellKeyDown",C),Za(e,"cellModeChange",s),Za(e,"columnHeaderFocus",w),Za(e,"columnGroupHeaderFocus",v),Za(e,"rowsSet",o),Za(e,"paginationModelChange",h)};function Vxe(e,r){const y=Qp(e)||{};return[...y.top||[],...r,...y.bottom||[]]}const jC=({currentColIndex:e,firstColIndex:r,lastColIndex:y,direction:F})=>{if(F==="rtl"){if(er)return e-1;return null},GC=({currentColIndex:e,firstColIndex:r,lastColIndex:y,direction:F})=>{if(F==="rtl"){if(e>r)return e-1}else if(F==="ltr"&&e{const y=nl(e,"useGridKeyboardNavigation"),F=Ag(e,r).rows,j=ru(),Y=Oe.useMemo(()=>Vxe(e,F),[e,F]),D=r.signature!=="DataGrid"&&r.headerFilters,O=Oe.useCallback((n,s,o="left")=>{const h=qp(e),f=e.current.unstable_getCellColSpanInfo(s,n);f&&f.spannedByColSpan&&(o==="left"?n=f.leftVisibleCellIndex:o==="right"&&(n=f.rightVisibleCellIndex));const u=h.findIndex(p=>p.id===s);y.debug(`Navigating to cell row ${u}, col ${n}`),e.current.scrollToIndexes({colIndex:n,rowIndex:u});const b=e.current.getVisibleColumns()[n].field;e.current.setCellFocus(s,b)},[e,y]),t=Oe.useCallback((n,s)=>{y.debug(`Navigating to header col ${n}`),e.current.scrollToIndexes({colIndex:n});const o=e.current.getVisibleColumns()[n].field;e.current.setColumnHeaderFocus(o,s)},[e,y]),l=Oe.useCallback((n,s)=>{y.debug(`Navigating to header filter col ${n}`),e.current.scrollToIndexes({colIndex:n});const o=e.current.getVisibleColumns()[n].field;e.current.setColumnHeaderFilterFocus(o,s)},[e,y]),S=Oe.useCallback((n,s,o)=>{y.debug(`Navigating to header col ${n}`),e.current.scrollToIndexes({colIndex:n});const{field:h}=e.current.getVisibleColumns()[n];e.current.setColumnGroupHeaderFocus(h,s,o)},[e,y]),i=Oe.useCallback(n=>{var s;return(s=Y[n])==null?void 0:s.id},[Y]),C=Oe.useCallback((n,s)=>{const o=s.currentTarget.querySelector(`.${Hr.columnHeaderTitleContainerContent}`);if(!!o&&o.contains(s.target)&&n.field!==Wy.field)return;const f=e.current.getViewportPageSize(),u=n.field?e.current.getColumnIndex(n.field):0,b=Y.length>0?0:null,p=Y.length-1,E=0,g=rl(e).length-1,c=Wb(e);let x=!0;switch(s.key){case"ArrowDown":{b!==null&&(D?l(u,s):O(u,i(b)));break}case"ArrowRight":{const A=GC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});A!==null&&t(A,s);break}case"ArrowLeft":{const A=jC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});A!==null&&t(A,s);break}case"ArrowUp":{c>0&&S(u,c-1,s);break}case"PageDown":{b!==null&&p!==null&&O(u,i(Math.min(b+f,p)));break}case"Home":{t(E,s);break}case"End":{t(g,s);break}case"Enter":{(s.ctrlKey||s.metaKey)&&e.current.toggleColumnMenu(n.field);break}case" ":break;default:x=!1}x&&s.preventDefault()},[e,Y.length,D,l,O,i,j.direction,t,S]),w=Oe.useCallback((n,s)=>{const o=y0e(e)===n.field,h=x0e(e)===n.field;if(o||h||!S2(s.key))return;const f=e.current.getViewportPageSize(),u=n.field?e.current.getColumnIndex(n.field):0,b=0,p=Y.length-1,E=0,g=rl(e).length-1;let c=!0;switch(s.key){case"ArrowDown":{const x=i(b);x!=null&&O(u,x);break}case"ArrowRight":{const x=GC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});x!==null&&l(x,s);break}case"ArrowLeft":{const x=jC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});x!==null?l(x,s):e.current.setColumnHeaderFilterFocus(n.field,s);break}case"ArrowUp":{t(u,s);break}case"PageDown":{p!==null&&O(u,i(Math.min(b+f,p)));break}case"Home":{l(E,s);break}case"End":{l(g,s);break}case" ":break;default:c=!1}c&&s.preventDefault()},[e,Y.length,l,j.direction,t,O,i]),v=Oe.useCallback((n,s)=>{const o=b2(e);if(o===null)return;const{field:h,depth:f}=o,{fields:u,depth:b,maxDepth:p}=n,E=e.current.getViewportPageSize(),g=e.current.getColumnIndex(h),c=h?e.current.getColumnIndex(h):0,x=0,A=Y.length-1,M=0,R=rl(e).length-1;let T=!0;switch(s.key){case"ArrowDown":{b===p-1?t(g,s):S(g,f+1,s);break}case"ArrowUp":{b>0&&S(g,f-1,s);break}case"ArrowRight":{const L=u.length-u.indexOf(h)-1;g+L+1<=R&&S(g+L+1,f,s);break}case"ArrowLeft":{const L=u.indexOf(h);g-L-1>=M&&S(g-L-1,f,s);break}case"PageDown":{A!==null&&O(c,i(Math.min(x+E,A)));break}case"Home":{S(M,f,s);break}case"End":{S(R,f,s);break}case" ":break;default:T=!1}T&&s.preventDefault()},[e,Y.length,t,S,O,i]),m=Oe.useCallback((n,s)=>{if($b(s))return;const o=e.current.getCellParams(n.id,n.field);if(o.cellMode===Co.Edit||!S2(s.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:s,cell:o})||Y.length===0)return;const f=j.direction,u=e.current.getViewportPageSize(),b=n.field?e.current.getColumnIndex(n.field):0,p=Y.findIndex(M=>M.id===n.id),E=0,g=Y.length-1,c=0,x=rl(e).length-1;let A=!0;switch(s.key){case"ArrowDown":{pE?O(b,i(p-1)):D?l(b,s):t(b,s);break}case"ArrowRight":{const M=GC({currentColIndex:b,firstColIndex:c,lastColIndex:x,direction:f});M!==null&&O(M,i(p),f==="rtl"?"left":"right");break}case"ArrowLeft":{const M=jC({currentColIndex:b,firstColIndex:c,lastColIndex:x,direction:f});M!==null&&O(M,i(p),f==="rtl"?"right":"left");break}case"Tab":{s.shiftKey&&b>c?O(b-1,i(p),"left"):!s.shiftKey&&b=E?O(b,i(M)):t(b,s);break}case"Home":{s.ctrlKey||s.metaKey||s.shiftKey?O(c,i(E)):O(c,i(p));break}case"End":{s.ctrlKey||s.metaKey||s.shiftKey?O(x,i(g)):O(x,i(p));break}default:A=!1}A&&s.preventDefault()},[e,Y,j.direction,O,i,D,l,t]),a=Oe.useCallback((n,{event:s})=>s.key===" "?!1:n,[]);Qo(e,"canStartEditing",a),Za(e,"columnHeaderKeyDown",C),Za(e,"headerFilterKeyDown",w),Za(e,"columnGroupHeaderKeyDown",v),Za(e,"cellKeyDown",m)},Gxe=(e,r)=>{var v,m;const y=nl(e,"useGridRowCount"),F=va(e,a6),j=va(e,Fm),Y=va(e,tx),D=va(e,gu),O=wg(()=>gu(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:r.rowCount,propOnChange:r.onRowCountChange,stateSelector:Fm,changeEvent:"rowCountChange"});const l={setRowCount:Oe.useCallback(a=>{j!==a&&(y.debug("Setting 'rowCount' to",a),e.current.setState(n=>Ge({},n,{pagination:Ge({},n.pagination,{rowCount:a})})))},[e,y,j])};Mi(e,l,"public");const S=Oe.useCallback((a,n)=>{var h,f;const s=Fm(e);return!n.exportOnlyDirtyModels||r.rowCount!=null||((f=(h=r.initialState)==null?void 0:h.pagination)==null?void 0:f.rowCount)!=null?Ge({},a,{pagination:Ge({},a.pagination,{rowCount:s})}):a},[e,r.rowCount,(m=(v=r.initialState)==null?void 0:v.pagination)==null?void 0:m.rowCount]),i=Oe.useCallback((a,n)=>{var o;const s=(o=n.stateToRestore.pagination)!=null&&o.rowCount?n.stateToRestore.pagination.rowCount:Fm(e);return e.current.setState(h=>Ge({},h,{pagination:Ge({},h.pagination,{rowCount:s})})),a},[e]);Qo(e,"exportState",S),Qo(e,"restoreState",i);const C=Oe.useCallback(a=>{r.paginationMode==="client"||!O.current||a.pageSize!==O.current&&(O.current=a.pageSize,j===-1&&e.current.setPage(0))},[r.paginationMode,O,j,e]);Za(e,"paginationModelChange",C),Oe.useEffect(()=>{r.paginationMode==="client"?e.current.setRowCount(F):r.rowCount!=null&&e.current.setRowCount(r.rowCount)},[e,r.paginationMode,F,r.rowCount]);const w=Y.hasNextPage===!1;Oe.useEffect(()=>{w&&j===-1&&e.current.setRowCount(D.pageSize*D.page+F)},[e,F,w,j,D])},Wxe=(e,r)=>{var t,l;const y=nl(e,"useGridPaginationMeta"),F=va(e,tx);e.current.registerControlState({stateId:"paginationMeta",propModel:r.paginationMeta,propOnChange:r.onPaginationMetaChange,stateSelector:tx,changeEvent:"paginationMetaChange"});const Y={setPaginationMeta:Oe.useCallback(S=>{F!==S&&(y.debug("Setting 'paginationMeta' to",S),e.current.setState(i=>Ge({},i,{pagination:Ge({},i.pagination,{meta:S})})))},[e,y,F])};Mi(e,Y,"public");const D=Oe.useCallback((S,i)=>{var v,m;const C=tx(e);return!i.exportOnlyDirtyModels||r.paginationMeta!=null||((m=(v=r.initialState)==null?void 0:v.pagination)==null?void 0:m.meta)!=null?Ge({},S,{pagination:Ge({},S.pagination,{meta:C})}):S},[e,r.paginationMeta,(l=(t=r.initialState)==null?void 0:t.pagination)==null?void 0:l.meta]),O=Oe.useCallback((S,i)=>{var w;const C=(w=i.stateToRestore.pagination)!=null&&w.meta?i.stateToRestore.pagination.meta:tx(e);return e.current.setState(v=>Ge({},v,{pagination:Ge({},v.pagination,{meta:C})})),S},[e]);Qo(e,"exportState",D),Qo(e,"restoreState",O),Oe.useEffect(()=>{r.paginationMeta&&e.current.setPaginationMeta(r.paginationMeta)},[e,r.paginationMeta])},$xe=(e,r)=>{var Y,D,O,t,l,S;const y=Ge({},s_(r.autoPageSize),r.paginationModel??((D=(Y=r.initialState)==null?void 0:Y.pagination)==null?void 0:D.paginationModel));l_(y.pageSize,r.signature);const F=r.rowCount??((t=(O=r.initialState)==null?void 0:O.pagination)==null?void 0:t.rowCount),j=r.paginationMeta??((S=(l=r.initialState)==null?void 0:l.pagination)==null?void 0:S.meta)??{};return Ge({},e,{pagination:{paginationModel:y,rowCount:F,meta:j}})},Yxe=(e,r)=>{Wxe(e,r),kxe(e,r),Gxe(e,r)},Xxe=(e,r)=>{var y;return Ge({},e,{preferencePanel:((y=r.initialState)==null?void 0:y.preferencePanel)??{open:!1}})},Zxe=(e,r)=>{var i;const y=nl(e,"useGridPreferencesPanel"),F=Oe.useRef(),j=Oe.useRef(),Y=Oe.useCallback(()=>{y.debug("Hiding Preferences Panel");const C=gg(e.current.state);C.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:C.openedPanelValue}),e.current.setState(w=>Ge({},w,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,y]),D=Oe.useCallback(()=>{j.current=setTimeout(()=>clearTimeout(F.current),0)},[]),O=Oe.useCallback(()=>{F.current=setTimeout(Y,100)},[Y]),t=Oe.useCallback((C,w,v)=>{y.debug("Opening Preferences Panel"),D(),e.current.setState(m=>Ge({},m,{preferencePanel:Ge({},m.preferencePanel,{open:!0,openedPanelValue:C,panelId:w,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:C}),e.current.forceUpdate()},[y,D,e]);Mi(e,{showPreferences:t,hidePreferences:O},"public");const l=Oe.useCallback((C,w)=>{var a;const v=gg(e.current.state);return!w.exportOnlyDirtyModels||((a=r.initialState)==null?void 0:a.preferencePanel)!=null||v.open?Ge({},C,{preferencePanel:v}):C},[e,(i=r.initialState)==null?void 0:i.preferencePanel]),S=Oe.useCallback((C,w)=>{const v=w.stateToRestore.preferencePanel;return v!=null&&e.current.setState(m=>Ge({},m,{preferencePanel:v})),C},[e]);Qo(e,"exportState",l),Qo(e,"restoreState",S),Oe.useEffect(()=>()=>{clearTimeout(F.current),clearTimeout(j.current)},[])},Kxe=["id","field"],Jxe=["id","field"],Qxe=(e,r)=>{const[y,F]=Oe.useState({}),j=Oe.useRef(y),Y=Oe.useRef({}),{processRowUpdate:D,onProcessRowUpdateError:O,cellModesModel:t,onCellModesModelChange:l}=r,S=R=>(...T)=>{r.editMode===dh.Cell&&R(...T)},i=Oe.useCallback((R,T)=>{const L=e.current.getCellParams(R,T);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${R} and field=${T} is not editable.`)},[e]),C=Oe.useCallback((R,T,L)=>{if(e.current.getCellMode(R,T)!==L)throw new Error(`MUI X: The cell with id=${R} and field=${T} is not in ${L} mode.`)},[e]),w=Oe.useCallback((R,T)=>{if(!R.isEditable||R.cellMode===Co.Edit)return;const L=Ge({},R,{reason:Hh.cellDoubleClick});e.current.publishEvent("cellEditStart",L,T)},[e]),v=Oe.useCallback((R,T)=>{if(R.cellMode===Co.View||e.current.getCellMode(R.id,R.field)===Co.View)return;const L=Ge({},R,{reason:ld.cellFocusOut});e.current.publishEvent("cellEditStop",L,T)},[e]),m=Oe.useCallback((R,T)=>{if(R.cellMode===Co.Edit){if(T.which===229)return;let L;if(T.key==="Escape"?L=ld.escapeKeyDown:T.key==="Enter"?L=ld.enterKeyDown:T.key==="Tab"&&(L=T.shiftKey?ld.shiftTabKeyDown:ld.tabKeyDown,T.preventDefault()),L){const P=Ge({},R,{reason:L});e.current.publishEvent("cellEditStop",P,T)}}else if(R.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:R,editMode:"cell"}))return;if(v_(T)?L=Hh.printableKeyDown:p_(T)?L=Hh.pasteKeyDown:T.key==="Enter"?L=Hh.enterKeyDown:(T.key==="Backspace"||T.key==="Delete")&&(L=Hh.deleteKeyDown),L){const d=Ge({},R,{reason:L,key:T.key});e.current.publishEvent("cellEditStart",d,T)}}},[e]),a=Oe.useCallback(R=>{const{id:T,field:L,reason:P}=R,d={id:T,field:L};(P===Hh.printableKeyDown||P===Hh.deleteKeyDown||P===Hh.pasteKeyDown)&&(d.deleteValue=!0),e.current.startCellEditMode(d)},[e]),n=Oe.useCallback(R=>{const{id:T,field:L,reason:P}=R;e.current.runPendingEditCellValueMutation(T,L);let d;P===ld.enterKeyDown?d="below":P===ld.tabKeyDown?d="right":P===ld.shiftTabKeyDown&&(d="left");const k=P==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:L,ignoreModifications:k,cellToFocusAfter:d})},[e]),s=R=>async(...T)=>{var L;if(R){const{id:P,field:d}=T[0];((L=e.current.state.editRows[P][d])==null?void 0:L.error)||R(...T)}};Za(e,"cellDoubleClick",S(w)),Za(e,"cellFocusOut",S(v)),Za(e,"cellKeyDown",S(m)),Za(e,"cellEditStart",S(a)),Za(e,"cellEditStop",S(n)),Fo(e,"cellEditStart",r.onCellEditStart),Fo(e,"cellEditStop",s(r.onCellEditStop));const o=Oe.useCallback((R,T)=>{const L=ql(e.current.state);return L[R]&&L[R][T]?Co.Edit:Co.View},[e]),h=pa(R=>{const T=R!==r.cellModesModel;l&&T&&l(R,{api:e.current}),!(r.cellModesModel&&T)&&(F(R),j.current=R,e.current.publishEvent("cellModesModelChange",R))}),f=Oe.useCallback((R,T,L)=>{const P=Ge({},j.current);if(L!==null)P[R]=Ge({},P[R],{[T]:Ge({},L)});else{const d=P[R],k=hn(d,[T].map(Yx));P[R]=k,Object.keys(P[R]).length===0&&delete P[R]}h(P)},[h]),u=Oe.useCallback((R,T,L)=>{e.current.setState(P=>{const d=Ge({},P.editRows);return L!==null?d[R]=Ge({},d[R],{[T]:Ge({},L)}):(delete d[R][T],Object.keys(d[R]).length===0&&delete d[R]),Ge({},P,{editRows:d})}),e.current.forceUpdate()},[e]),b=Oe.useCallback(R=>{const{id:T,field:L}=R,P=hn(R,Kxe);i(T,L),C(T,L,Co.View),f(T,L,Ge({mode:Co.Edit},P))},[i,C,f]),p=pa(R=>{const{id:T,field:L,deleteValue:P,initialValue:d}=R;let k=e.current.getCellValue(T,L);if(P)switch(e.current.getColumn(L).type){case"boolean":k=!1;break;case"date":case"dateTime":case"number":k=void 0;break;case"singleSelect":k=null;break;case"string":default:k="";break}else d&&(k=d);u(T,L,{value:k,error:!1,isProcessingProps:!1}),e.current.setCellFocus(T,L)}),E=Oe.useCallback(R=>{const{id:T,field:L}=R,P=hn(R,Jxe);C(T,L,Co.Edit),f(T,L,Ge({mode:Co.View},P))},[C,f]),g=pa(async R=>{const{id:T,field:L,ignoreModifications:P,cellToFocusAfter:d="none"}=R;C(T,L,Co.Edit),e.current.runPendingEditCellValueMutation(T,L);const k=()=>{u(T,L,null),f(T,L,null),d!=="none"&&e.current.moveFocusToRelativeCell(T,L,d)};if(P){k();return}const I=ql(e.current.state),{error:N,isProcessingProps:B}=I[T][L];if(N||B){Y.current[T][L].mode=Co.Edit,f(T,L,{mode:Co.Edit});return}const G=e.current.getRowWithUpdatedValuesFromCellEditing(T,L);if(D){const U=H=>{Y.current[T][L].mode=Co.Edit,f(T,L,{mode:Co.Edit}),O&&O(H)};try{const H=e.current.getRow(T);Promise.resolve(D(G,H)).then(W=>{e.current.updateRows([W]),k()}).catch(U)}catch(H){U(H)}}else e.current.updateRows([G]),k()}),c=Oe.useCallback(async R=>{var H,W;const{id:T,field:L,value:P,debounceMs:d,unstable_skipValueParser:k}=R;i(T,L),C(T,L,Co.Edit);const I=e.current.getColumn(L),N=e.current.getRow(T);let B=P;I.valueParser&&!k&&(B=I.valueParser(P,N,I,e));let G=ql(e.current.state),U=Ge({},G[T][L],{value:B,changeReason:d?"debouncedSetEditCellValue":"setEditCellValue"});if(I.preProcessEditCellProps){const V=P!==G[T][L].value;U=Ge({},U,{isProcessingProps:!0}),u(T,L,U),U=await Promise.resolve(I.preProcessEditCellProps({id:T,row:N,props:U,hasChanged:V}))}return e.current.getCellMode(T,L)===Co.View?!1:(G=ql(e.current.state),U=Ge({},U,{isProcessingProps:!1}),U.value=I.preProcessEditCellProps?G[T][L].value:B,u(T,L,U),G=ql(e.current.state),!((W=(H=G[T])==null?void 0:H[L])!=null&&W.error))},[e,i,C,u]),x=Oe.useCallback((R,T)=>{const L=e.current.getColumn(T),P=ql(e.current.state),d=e.current.getRow(R);if(!P[R]||!P[R][T])return e.current.getRow(R);const{value:k}=P[R][T];return L.valueSetter?L.valueSetter(k,d,L,e):Ge({},d,{[T]:k})},[e]),A={getCellMode:o,startCellEditMode:b,stopCellEditMode:E},M={setCellEditingEditCellValue:c,getRowWithUpdatedValuesFromCellEditing:x};Mi(e,A,"public"),Mi(e,M,"private"),Oe.useEffect(()=>{t&&h(t)},[t,h]),Gi(()=>{const R=x2(e),T=Y.current;Y.current=VF(y),Object.entries(y).forEach(([L,P])=>{Object.entries(P).forEach(([d,k])=>{var B,G;const I=((G=(B=T[L])==null?void 0:B[d])==null?void 0:G.mode)||Co.View,N=R[L]??L;k.mode===Co.Edit&&I===Co.View?p(Ge({id:N,field:d},k)):k.mode===Co.View&&I===Co.Edit&&g(Ge({id:N,field:d},k))})})},[e,y,p,g])},qxe=["id"],ebe=["id"],tbe=(e,r)=>{const[y,F]=Oe.useState({}),j=Oe.useRef(y),Y=Oe.useRef({}),D=Oe.useRef(),O=Oe.useRef(null),{processRowUpdate:t,onProcessRowUpdateError:l,rowModesModel:S,onRowModesModelChange:i}=r,C=d=>(...k)=>{r.editMode===dh.Row&&d(...k)},w=Oe.useCallback((d,k)=>{const I=e.current.getCellParams(d,k);if(!e.current.isCellEditable(I))throw new Error(`MUI X: The cell with id=${d} and field=${k} is not editable.`)},[e]),v=Oe.useCallback((d,k)=>{if(e.current.getRowMode(d)!==k)throw new Error(`MUI X: The row with id=${d} is not in ${k} mode.`)},[e]),m=Oe.useCallback(d=>{const k=ql(e.current.state);return Object.values(k[d]).some(I=>I.error)},[e]),a=Oe.useCallback((d,k)=>{if(!d.isEditable||e.current.getRowMode(d.id)===Oo.Edit)return;const I=e.current.getRowParams(d.id),N=Ge({},I,{field:d.field,reason:op.cellDoubleClick});e.current.publishEvent("rowEditStart",N,k)},[e]),n=Oe.useCallback(d=>{O.current=d},[]),s=Oe.useCallback((d,k)=>{d.isEditable&&e.current.getRowMode(d.id)!==Oo.View&&(O.current=null,D.current=setTimeout(()=>{var I;if(((I=O.current)==null?void 0:I.id)!==d.id){if(!e.current.getRow(d.id)||e.current.getRowMode(d.id)===Oo.View||m(d.id))return;const N=e.current.getRowParams(d.id),B=Ge({},N,{field:d.field,reason:Wd.rowFocusOut});e.current.publishEvent("rowEditStop",B,k)}}))},[e,m]);Oe.useEffect(()=>()=>{clearTimeout(D.current)},[]);const o=Oe.useCallback((d,k)=>{if(d.cellMode===Oo.Edit){if(k.which===229)return;let I;if(k.key==="Escape")I=Wd.escapeKeyDown;else if(k.key==="Enter")I=Wd.enterKeyDown;else if(k.key==="Tab"){const N=Hb(e).filter(B=>e.current.getColumn(B).type===KT?!0:e.current.isCellEditable(e.current.getCellParams(d.id,B)));if(k.shiftKey?d.field===N[0]&&(I=Wd.shiftTabKeyDown):d.field===N[N.length-1]&&(I=Wd.tabKeyDown),k.preventDefault(),!I){const B=N.findIndex(U=>U===d.field),G=N[k.shiftKey?B-1:B+1];e.current.setCellFocus(d.id,G)}}if(I){if(I!==Wd.escapeKeyDown&&m(d.id))return;const N=Ge({},e.current.getRowParams(d.id),{reason:I,field:d.field});e.current.publishEvent("rowEditStop",N,k)}}else if(d.isEditable){let I;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:k,cellParams:d,editMode:"row"}))return;if(v_(k)||p_(k)?I=op.printableKeyDown:k.key==="Enter"?I=op.enterKeyDown:(k.key==="Backspace"||k.key==="Delete")&&(I=op.deleteKeyDown),I){const B=e.current.getRowParams(d.id),G=Ge({},B,{field:d.field,reason:I});e.current.publishEvent("rowEditStart",G,k)}}},[e,m]),h=Oe.useCallback(d=>{const{id:k,field:I,reason:N}=d,B={id:k,fieldToFocus:I};(N===op.printableKeyDown||N===op.deleteKeyDown)&&(B.deleteValue=!!I),e.current.startRowEditMode(B)},[e]),f=Oe.useCallback(d=>{const{id:k,reason:I,field:N}=d;e.current.runPendingEditCellValueMutation(k);let B;I===Wd.enterKeyDown?B="below":I===Wd.tabKeyDown?B="right":I===Wd.shiftTabKeyDown&&(B="left");const G=I==="escapeKeyDown";e.current.stopRowEditMode({id:k,ignoreModifications:G,field:N,cellToFocusAfter:B})},[e]);Za(e,"cellDoubleClick",C(a)),Za(e,"cellFocusIn",C(n)),Za(e,"cellFocusOut",C(s)),Za(e,"cellKeyDown",C(o)),Za(e,"rowEditStart",C(h)),Za(e,"rowEditStop",C(f)),Fo(e,"rowEditStart",r.onRowEditStart),Fo(e,"rowEditStop",r.onRowEditStop);const u=Oe.useCallback(d=>{if(r.editMode===dh.Cell)return Oo.View;const k=ql(e.current.state);return k[d]&&Object.keys(k[d]).length>0?Oo.Edit:Oo.View},[e,r.editMode]),b=pa(d=>{const k=d!==r.rowModesModel;i&&k&&i(d,{api:e.current}),!(r.rowModesModel&&k)&&(F(d),j.current=d,e.current.publishEvent("rowModesModelChange",d))}),p=Oe.useCallback((d,k)=>{const I=Ge({},j.current);k!==null?I[d]=Ge({},k):delete I[d],b(I)},[b]),E=Oe.useCallback((d,k)=>{e.current.setState(I=>{const N=Ge({},I.editRows);return k!==null?N[d]=k:delete N[d],Ge({},I,{editRows:N})}),e.current.forceUpdate()},[e]),g=Oe.useCallback((d,k,I)=>{e.current.setState(N=>{const B=Ge({},N.editRows);return I!==null?B[d]=Ge({},B[d],{[k]:Ge({},I)}):(delete B[d][k],Object.keys(B[d]).length===0&&delete B[d]),Ge({},N,{editRows:B})}),e.current.forceUpdate()},[e]),c=Oe.useCallback(d=>{const{id:k}=d,I=hn(d,qxe);v(k,Oo.View),p(k,Ge({mode:Oo.Edit},I))},[v,p]),x=pa(d=>{const{id:k,fieldToFocus:I,deleteValue:N,initialValue:B}=d,U=qh(e).reduce((H,W)=>{if(!e.current.getCellParams(k,W).isEditable)return H;let $=e.current.getCellValue(k,W);return I===W&&(N||B)&&($=N?"":B),H[W]={value:$,error:!1,isProcessingProps:!1},H},{});E(k,U),I&&e.current.setCellFocus(k,I)}),A=Oe.useCallback(d=>{const{id:k}=d,I=hn(d,ebe);v(k,Oo.Edit),p(k,Ge({mode:Oo.View},I))},[v,p]),M=pa(d=>{const{id:k,ignoreModifications:I,field:N,cellToFocusAfter:B="none"}=d;e.current.runPendingEditCellValueMutation(k);const G=()=>{B!=="none"&&N&&e.current.moveFocusToRelativeCell(k,N,B),E(k,null),p(k,null)};if(I){G();return}const U=ql(e.current.state),H=e.current.getRow(k);if(Object.values(U[k]).some($=>$.isProcessingProps)){Y.current[k].mode=Oo.Edit;return}if(m(k)){Y.current[k].mode=Oo.Edit,p(k,{mode:Oo.Edit});return}const V=e.current.getRowWithUpdatedValuesFromRowEditing(k);if(t){const $=Z=>{Y.current[k].mode=Oo.Edit,p(k,{mode:Oo.Edit}),l&&l(Z)};try{Promise.resolve(t(V,H)).then(Z=>{e.current.updateRows([Z]),G()}).catch($)}catch(Z){$(Z)}}else e.current.updateRows([V]),G()}),R=Oe.useCallback(d=>{const{id:k,field:I,value:N,debounceMs:B,unstable_skipValueParser:G}=d;w(k,I);const U=e.current.getColumn(I),H=e.current.getRow(k);let W=N;U.valueParser&&!G&&(W=U.valueParser(N,H,U,e));let V=ql(e.current.state),$=Ge({},V[k][I],{value:W,changeReason:B?"debouncedSetEditCellValue":"setEditCellValue"});return U.preProcessEditCellProps||g(k,I,$),new Promise(Z=>{const q=[];if(U.preProcessEditCellProps){const ae=$.value!==V[k][I].value;$=Ge({},$,{isProcessingProps:!0}),g(k,I,$);const ie=V[k],fe=hn(ie,[I].map(Yx)),Q=Promise.resolve(U.preProcessEditCellProps({id:k,row:H,props:$,hasChanged:ae,otherFieldsProps:fe})).then(J=>{if(e.current.getRowMode(k)===Oo.View){Z(!1);return}V=ql(e.current.state),J=Ge({},J,{isProcessingProps:!1}),J.value=U.preProcessEditCellProps?V[k][I].value:W,g(k,I,J)});q.push(Q)}Object.entries(V[k]).forEach(([ae,ie])=>{if(ae===I)return;const fe=e.current.getColumn(ae);if(!fe.preProcessEditCellProps)return;ie=Ge({},ie,{isProcessingProps:!0}),g(k,ae,ie),V=ql(e.current.state);const Q=V[k],J=hn(Q,[ae].map(Yx)),oe=Promise.resolve(fe.preProcessEditCellProps({id:k,row:H,props:ie,hasChanged:!1,otherFieldsProps:J})).then(K=>{if(e.current.getRowMode(k)===Oo.View){Z(!1);return}K=Ge({},K,{isProcessingProps:!1}),g(k,ae,K)});q.push(oe)}),Promise.all(q).then(()=>{e.current.getRowMode(k)===Oo.Edit?(V=ql(e.current.state),Z(!V[k][I].error)):Z(!1)})})},[e,w,g]),T=Oe.useCallback(d=>{const k=ql(e.current.state),I=e.current.getRow(d);if(!k[d])return e.current.getRow(d);let N=Ge({},I);return Object.entries(k[d]).forEach(([B,G])=>{const U=e.current.getColumn(B);U.valueSetter?N=U.valueSetter(G.value,N,U,e):N[B]=G.value}),N},[e]),L={getRowMode:u,startRowEditMode:c,stopRowEditMode:A},P={setRowEditingEditCellValue:R,getRowWithUpdatedValuesFromRowEditing:T};Mi(e,L,"public"),Mi(e,P,"private"),Oe.useEffect(()=>{S&&b(S)},[S,b]),Gi(()=>{const d=x2(e),k=Y.current;Y.current=VF(y);const I=new Set([...Object.keys(y),...Object.keys(k)]);Array.from(I).forEach(N=>{var H;const B=y[N]??{mode:Oo.View},G=((H=k[N])==null?void 0:H.mode)||Oo.View,U=d[N]??N;B.mode===Oo.Edit&&G===Oo.View?x(Ge({id:U},B)):B.mode===Oo.View&&G===Oo.Edit&&M(Ge({id:U},B))})},[e,y,x,M])},rbe=e=>Ge({},e,{editRows:{}}),nbe=(e,r)=>{Qxe(e,r),tbe(e,r);const y=Oe.useRef({}),{isCellEditable:F}=r,j=Oe.useCallback(C=>Ly(C.rowNode)||!C.colDef.editable||!C.colDef.renderEditCell?!1:F?F(C):!0,[F]),Y=(C,w,v,m)=>{if(!v){m();return}if(y.current[C]||(y.current[C]={}),y.current[C][w]){const[s]=y.current[C][w];clearTimeout(s)}const a=()=>{const[s]=y.current[C][w];clearTimeout(s),m(),delete y.current[C][w]},n=setTimeout(()=>{m(),delete y.current[C][w]},v);y.current[C][w]=[n,a]};Oe.useEffect(()=>{const C=y.current;return()=>{Object.entries(C).forEach(([w,v])=>{Object.keys(v).forEach(m=>{const[a]=C[w][m];clearTimeout(a),delete C[w][m]})})}},[]);const D=Oe.useCallback((C,w)=>{if(y.current[C]){if(!w)Object.keys(y.current[C]).forEach(v=>{const[,m]=y.current[C][v];m()});else if(y.current[C][w]){const[,v]=y.current[C][w];v()}}},[]),O=Oe.useCallback(C=>{const{id:w,field:v,debounceMs:m}=C;return new Promise(a=>{Y(w,v,m,async()=>{const n=r.editMode===dh.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(w,v)===Co.Edit){const s=await n(C);a(s)}})})},[e,r.editMode]),t=Oe.useCallback((C,w)=>r.editMode===dh.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(C,w):e.current.getRowWithUpdatedValuesFromRowEditing(C),[e,r.editMode]),l=Oe.useCallback((C,w)=>{var m;return((m=ql(e.current.state)[C])==null?void 0:m[w])??null},[e]),S={isCellEditable:j,setEditCellValue:O,getRowWithUpdatedValues:t,unstable_getEditCellMeta:l},i={runPendingEditCellValueMutation:D};Mi(e,S,"public"),Mi(e,i,"private")},abe=(e,r,y)=>{const F=!!r.unstable_dataSource;return y.current.caches.rows=L3({rows:F?[]:r.rows,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),Ge({},e,{rows:ZF({apiRef:y,rowCountProp:r.rowCount,loadingProp:F?!0:r.loading,previousTree:null,previousTreeDepths:null})})},ibe=(e,r)=>{const y=nl(e,"useGridRows"),F=Ag(e,r),j=Oe.useRef(Date.now()),Y=Oe.useRef(r.rowCount),D=Sc(),O=Oe.useCallback(L=>{const P=Ep(e)[L];if(P)return P;const d=e.current.getRowNode(L);return d&&Ly(d)?{[Km]:L}:null},[e]),t=r.getRowId,l=Oe.useCallback(L=>Km in L?L[Km]:t?t(L):L.id,[t]),S=Oe.useMemo(()=>F.rows.reduce((L,{id:P},d)=>(L[P]=d,L),{}),[F.rows]),i=Oe.useCallback(({cache:L,throttle:P})=>{const d=()=>{j.current=Date.now(),e.current.setState(I=>Ge({},I,{rows:ZF({apiRef:e,rowCountProp:r.rowCount,loadingProp:r.loading,previousTree:pf(e),previousTreeDepths:VI(e),previousGroupsToFetch:$ve(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(D.clear(),e.current.caches.rows=L,!P){d();return}const k=r.throttleRowsMs-(Date.now()-j.current);if(k>0){D.start(k,d);return}d()},[r.throttleRowsMs,r.rowCount,r.loading,e,D]),C=Oe.useCallback(L=>{y.debug(`Updating all rows, new length ${L.length}`);const P=L3({rows:L,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),d=e.current.caches.rows;P.rowsBeforePartialUpdates=d.rowsBeforePartialUpdates,i({cache:P,throttle:!0})},[y,r.getRowId,r.loading,r.rowCount,i,e]),w=Oe.useCallback(L=>{if(r.signature===md.DataGrid&&L.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));const P=GI(e,L,r.getRowId),d=jI({updates:P,getRowId:r.getRowId,previousCache:e.current.caches.rows});i({cache:d,throttle:!0})},[r.signature,r.getRowId,i,e]),v=Oe.useCallback((L,P)=>{const d=GI(e,L,r.getRowId),k=jI({updates:d,getRowId:r.getRowId,previousCache:e.current.caches.rows,groupKeys:P??[]});i({cache:k,throttle:!1})},[r.getRowId,i,e]),m=Oe.useCallback(L=>{L!==r.loading&&(y.debug(`Setting loading to ${L}`),e.current.setState(P=>Ge({},P,{rows:Ge({},P.rows,{loading:L})})),e.current.caches.rows.loadingPropBeforePartialUpdates=L)},[r.loading,e,y]),a=Oe.useCallback(()=>{const L=i3(e),P=Ep(e);return new Map(L.map(d=>[d,P[d]??{}]))},[e]),n=Oe.useCallback(()=>jb(e),[e]),s=Oe.useCallback(()=>i3(e),[e]),o=Oe.useCallback(L=>S[L],[S]),h=Oe.useCallback((L,P)=>{const d=e.current.getRowNode(L);if(!d)throw new Error(`MUI X: No row with id #${L} found.`);if(d.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const k=Ge({},d,{childrenExpanded:P});e.current.setState(I=>Ge({},I,{rows:Ge({},I.rows,{tree:Ge({},I.rows.tree,{[L]:k})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",k)},[e]),f=Oe.useCallback(L=>pf(e)[L]??null,[e]),u=Oe.useCallback(({skipAutoGeneratedRows:L=!0,groupId:P,applySorting:d,applyFiltering:k})=>{const I=pf(e);let N;if(d){const B=I[P];if(!B)return[];const G=t6(e);N=[];const U=G.findIndex(H=>H===P)+1;for(let H=U;HB.depth;H+=1){const W=G[H];(!L||!Ly(I[W]))&&N.push(W)}}else N=Q5(I,P,L);if(k){const B=e_(e);N=N.filter(G=>B[G]!==!1)}return N},[e]),b=Oe.useCallback((L,P)=>{const d=e.current.getRowNode(L);if(!d)throw new Error(`MUI X: No row with id #${L} found.`);if(d.parent!==yu)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(d.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(k=>{const I=pf(k,e.current.instanceId)[yu],N=I.children,B=N.findIndex(U=>U===L);if(B===-1||B===P)return k;y.debug(`Moving row ${L} to index ${P}`);const G=[...N];return G.splice(P,0,G.splice(B,1)[0]),Ge({},k,{rows:Ge({},k.rows,{tree:Ge({},k.rows.tree,{[yu]:Ge({},I,{children:G})})})})}),e.current.publishEvent("rowsSet")},[e,y]),p=Oe.useCallback((L,P)=>{if(r.signature===md.DataGrid&&P.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));if(P.length===0)return;if(JT(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const k=Ge({},pf(e)),I=Ge({},Ep(e)),N=Ge({},x2(e)),B=k[yu],G=[...B.children],U=new Set;for(let W=0;W{var V;return((V=k[W])==null?void 0:V.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=I,e.current.caches.rows.dataRowIdToIdLookup=N,e.current.setState(W=>Ge({},W,{rows:Ge({},W.rows,{dataRowIdToModelLookup:I,dataRowIdToIdLookup:N,dataRowIds:H,tree:k})})),e.current.publishEvent("rowsSet")},[e,r.signature,r.getRowId]),E={getRow:O,setLoading:m,getRowId:l,getRowModels:a,getRowsCount:n,getAllRowIds:s,setRows:C,updateRows:w,getRowNode:f,getRowIndexRelativeToVisibleRows:o,unstable_replaceRows:p},g={setRowIndex:b,setRowChildrenExpansion:h,getRowGroupChildren:u},c={updateServerRows:v},x=Oe.useCallback(()=>{y.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===r.rows?L=Ge({},e.current.caches.rows,{updates:{type:"full",rows:i3(e)}}):L=L3({rows:r.rows,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),i({cache:L,throttle:!1})},[y,e,r.rows,r.getRowId,r.loading,r.rowCount,i]),A=Oe.useCallback(L=>{L==="rowTreeCreation"&&x()},[x]),M=Oe.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Yve(e)&&x()},[e,x]);Za(e,"activeStrategyProcessorChange",A),Za(e,"strategyAvailabilityChange",M);const R=Oe.useCallback(()=>{e.current.setState(L=>{const P=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:pf(L,e.current.instanceId),treeDepths:VI(L,e.current.instanceId),dataRowIds:i3(L,e.current.instanceId),dataRowIdToModelLookup:Ep(L,e.current.instanceId),dataRowIdToIdLookup:x2(L,e.current.instanceId)});return Ge({},L,{rows:Ge({},L.rows,P,{totalTopLevelRowCount:XF({tree:P.tree,rowCountProp:r.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,r.rowCount]);y6(e,"hydrateRows",R),Mi(e,E,"public"),Mi(e,g,r.signature===md.DataGrid?"private":"public"),Mi(e,c,"private");const T=Oe.useRef(!0);Oe.useEffect(()=>{var I;if(T.current){T.current=!1;return}let L=!1;r.rowCount!==Y.current&&(L=!0,Y.current=r.rowCount);const P=e.current.caches.rows.rowsBeforePartialUpdates===r.rows,d=e.current.caches.rows.loadingPropBeforePartialUpdates===r.loading,k=e.current.caches.rows.rowCountPropBeforePartialUpdates===r.rowCount;P&&(d||(e.current.setState(N=>Ge({},N,{rows:Ge({},N.rows,{loading:r.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=r.loading,e.current.forceUpdate()),k||(e.current.setState(N=>Ge({},N,{rows:Ge({},N.rows,{totalRowCount:Math.max(r.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(r.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=r.rowCount,e.current.forceUpdate()),!L)||(y.debug(`Updating all rows, new length ${(I=r.rows)==null?void 0:I.length}`),i({cache:L3({rows:r.rows,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),throttle:!1}))},[r.rows,r.rowCount,r.getRowId,r.loading,y,i,e])},obe=e=>{const r={[yu]:Ge({},Kve(),{children:e})};for(let y=0;y{const y=Ge({},e),F={};for(let D=0;D!F[D])),y[yu]=Ge({},j,{children:Y}),{groupingName:mg,tree:y,treeDepths:{0:Y.length},dataRowIds:Y}},lbe=e=>e.updates.type==="full"?obe(e.updates.rows):sbe({previousTree:e.previousTree,actions:e.updates.actions}),ube=e=>{A2(e,mg,"rowTreeCreation",lbe)},B_=(e,r)=>e==null||Array.isArray(e)?e:r&&r[0]===e?r:[e],cbe=(e,r)=>Ge({},e,{rowSelection:r.rowSelection?B_(r.rowSelectionModel)??[]:[]}),fbe=(e,r)=>{const y=nl(e,"useGridSelection"),F=A=>(...M)=>{r.rowSelection&&A(...M)},j=Oe.useMemo(()=>B_(r.rowSelectionModel,lf(e.current.state)),[e,r.rowSelectionModel]),Y=Oe.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:j,propOnChange:r.onRowSelectionModelChange,stateSelector:lf,changeEvent:"rowSelectionChange"});const{checkboxSelection:D,disableRowSelectionOnClick:O,isRowSelectable:t}=r,l=q5(r),S=Ag(e,r),i=Oe.useCallback(A=>{let M=A;const R=Y.current??A,T=e.current.isRowSelected(A);if(T){const L=Sx(e),P=L.findIndex(k=>k===R),d=L.findIndex(k=>k===M);if(P===d)return;P>d?M=L[d+1]:M=L[d-1]}Y.current=A,e.current.selectRowRange({startId:R,endId:M},!T)},[e]),C=Oe.useCallback(A=>{if(r.signature===md.DataGrid&&!l&&Array.isArray(A)&&A.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` -`));lf(e.current.state)!==A&&(y.debug("Setting selection model"),e.current.setState(R=>Ge({},R,{rowSelection:r.rowSelection?A:[]})),e.current.forceUpdate())},[e,y,r.rowSelection,r.signature,l]),w=Oe.useCallback(A=>lf(e.current.state).includes(A),[e]),v=Oe.useCallback(A=>{if(t&&!t(e.current.getRowParams(A)))return!1;const M=e.current.getRowNode(A);return!((M==null?void 0:M.type)==="footer"||(M==null?void 0:M.type)==="pinnedRow")},[e,t]),m=Oe.useCallback(()=>wpe(e),[e]),a=Oe.useCallback((A,M=!0,R=!1)=>{if(e.current.isRowSelectable(A))if(Y.current=A,R)y.debug(`Setting selection for row ${A}`),e.current.setRowSelectionModel(M?[A]:[]);else{y.debug(`Toggling selection for row ${A}`);const L=lf(e.current.state).filter(d=>d!==A);M&&L.push(A),(L.length<2||l)&&e.current.setRowSelectionModel(L)}},[e,y,l]),n=Oe.useCallback((A,M=!0,R=!1)=>{y.debug("Setting selection for several rows");const T=A.filter(d=>e.current.isRowSelectable(d));let L;if(R)L=M?T:[];else{const d=Ge({},w2(e));T.forEach(k=>{M?d[k]=k:delete d[k]}),L=Object.values(d)}(L.length<2||l)&&e.current.setRowSelectionModel(L)},[e,y,l]),s=Oe.useCallback(({startId:A,endId:M},R=!0,T=!1)=>{if(!e.current.getRow(A)||!e.current.getRow(M))return;y.debug(`Expanding selection from row ${A} to row ${M}`);const L=Sx(e),P=L.indexOf(A),d=L.indexOf(M),[k,I]=P>d?[d,P]:[P,d],N=L.slice(k,I+1);e.current.selectRows(N,R,T)},[e,y]),o={selectRow:a,setRowSelectionModel:C,getSelectedRows:m,isRowSelected:w,isRowSelectable:v},h={selectRows:n,selectRowRange:s};Mi(e,o,"public"),Mi(e,h,r.signature===md.DataGrid?"private":"public");const f=Oe.useCallback(()=>{if(r.keepNonExistentRowsSelected)return;const A=lf(e.current.state),M=Ep(e),R=Ge({},w2(e));let T=!1;A.forEach(L=>{M[L]||(delete R[L],T=!0)}),T&&e.current.setRowSelectionModel(Object.values(R))},[e,r.keepNonExistentRowsSelected]),u=Oe.useCallback((A,M)=>{const R=M.metaKey||M.ctrlKey,T=!D&&!R&&!Jpe(M),L=!l||T,P=e.current.isRowSelected(A);L?e.current.selectRow(A,T?!0:!P,!0):e.current.selectRow(A,!P,!1)},[e,l,D]),b=Oe.useCallback((A,M)=>{var L;if(O)return;const R=(L=M.target.closest(`.${Hr.cell}`))==null?void 0:L.getAttribute("data-field");if(R===Wy.field||R===g6)return;if(R){const P=e.current.getColumn(R);if((P==null?void 0:P.type)===KT)return}e.current.getRowNode(A.id).type!=="pinnedRow"&&(M.shiftKey&&l?i(A.id):u(A.id,M))},[O,l,e,i,u]),p=Oe.useCallback((A,M)=>{var R;l&&M.shiftKey&&((R=window.getSelection())==null||R.removeAllRanges())},[l]),E=Oe.useCallback((A,M)=>{l&&M.nativeEvent.shiftKey?i(A.id):e.current.selectRow(A.id,A.value,!l)},[e,i,l]),g=Oe.useCallback(A=>{const R=r.checkboxSelectionVisibleOnly&&r.pagination?c_(e):Sx(e),T=ul(e);e.current.selectRows(R,A.value,(T==null?void 0:T.items.length)>0)},[e,r.checkboxSelectionVisibleOnly,r.pagination]),c=Oe.useCallback((A,M)=>{if(e.current.getCellMode(A.id,A.field)!==Co.Edit&&!$b(M)){if(S2(M.key)&&M.shiftKey){const R=sf(e);if(R&&R.id!==A.id){M.preventDefault();const T=e.current.isRowSelected(R.id);if(!l){e.current.selectRow(R.id,!T,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(R.id),P=e.current.getRowIndexRelativeToVisibleRows(A.id);let d,k;L>P?T?(d=P,k=L-1):(d=P,k=L):T?(d=L+1,k=P):(d=L,k=P);const I=S.rows.slice(d,k+1).map(N=>N.id);e.current.selectRows(I,!T);return}}if(M.key===" "&&M.shiftKey){M.preventDefault(),u(A.id,M);return}M.key==="a"&&(M.ctrlKey||M.metaKey)&&(M.preventDefault(),n(e.current.getAllRowIds(),!0))}},[e,u,n,S.rows,l]);Za(e,"sortedRowsSet",F(f)),Za(e,"rowClick",F(b)),Za(e,"rowSelectionCheckboxChange",F(E)),Za(e,"headerSelectionCheckboxChange",g),Za(e,"cellMouseDown",F(p)),Za(e,"cellKeyDown",F(c)),Oe.useEffect(()=>{j!==void 0&&e.current.setRowSelectionModel(j)},[e,j,r.rowSelection]),Oe.useEffect(()=>{r.rowSelection||e.current.setRowSelectionModel([])},[e,r.rowSelection]);const x=j!=null;Oe.useEffect(()=>{if(x||!r.rowSelection)return;const A=lf(e.current.state);if(v){const M=A.filter(R=>v(R));M.length{if(!r.rowSelection||x)return;const A=lf(e.current.state);!l&&A.length>1&&e.current.setRowSelectionModel([])},[e,l,D,x,r.rowSelection])},dbe=e=>{const{classes:r}=e;return Oe.useMemo(()=>qn({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ki,r),[r])},hbe=(e,r)=>{const y={classes:r.classes},F=dbe(y),j=Oe.useCallback(Y=>{const D=Ge({},Wy,{cellClassName:F.cellCheckbox,headerClassName:F.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),O=r.checkboxSelection,t=Y.lookup[sp]!=null;return O&&!t?(Y.lookup[sp]=D,Y.orderedFields=[sp,...Y.orderedFields]):!O&&t?(delete Y.lookup[sp],Y.orderedFields=Y.orderedFields.filter(l=>l!==sp)):O&&t&&(Y.lookup[sp]=Ge({},D,Y.lookup[sp])),Y},[e,F,r.checkboxSelection]);Qo(e,"hydrateColumns",j)},vbe=(e,r)=>{var F,j;const y=r.sortModel??((j=(F=r.initialState)==null?void 0:F.sorting)==null?void 0:j.sortModel)??[];return Ge({},e,{sorting:{sortModel:BF(y,r.disableMultipleColumnsSorting),sortedRows:[]}})},pbe=(e,r)=>{var f,u;const y=nl(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:r.sortModel,propOnChange:r.onSortModelChange,stateSelector:uf,changeEvent:"sortModelChange"});const F=Oe.useCallback((b,p)=>{const E=uf(e),g=E.findIndex(x=>x.field===b);let c=[...E];return g>-1?(p==null?void 0:p.sort)==null?c.splice(g,1):c.splice(g,1,p):c=[...E,p],c},[e]),j=Oe.useCallback((b,p)=>{const g=uf(e).find(c=>c.field===b.field);if(g){const c=p===void 0?zI(b.sortingOrder??r.sortingOrder,g.sort):p;return c===void 0?void 0:Ge({},g,{sort:c})}return{field:b.field,sort:p===void 0?zI(b.sortingOrder??r.sortingOrder):p}},[e,r.sortingOrder]),Y=Oe.useCallback((b,p)=>p==null||p.sortable===!1||r.disableColumnSorting?b:(p.sortingOrder||r.sortingOrder).some(g=>!!g)?[...b,"columnMenuSortItem"]:b,[r.sortingOrder,r.disableColumnSorting]),D=Oe.useCallback(()=>{e.current.setState(b=>{if(r.sortingMode==="server")return y.debug("Skipping sorting rows as sortingMode = server"),Ge({},b,{sorting:Ge({},b.sorting,{sortedRows:Q5(pf(e),yu,!1)})});const p=uf(b,e.current.instanceId),E=yve(p,e),g=e.current.applyStrategyProcessor("sorting",{sortRowList:E});return Ge({},b,{sorting:Ge({},b.sorting,{sortedRows:g})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,y,r.sortingMode]),O=Oe.useCallback(b=>{uf(e)!==b&&(y.debug("Setting sort model"),e.current.setState(_I(b,r.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,y,r.disableMultipleColumnsSorting]),t=Oe.useCallback((b,p,E)=>{const g=e.current.getColumn(b),c=j(g,p);let x;!E||r.disableMultipleColumnsSorting?x=(c==null?void 0:c.sort)==null?[]:[c]:x=F(g.field,c),e.current.setSortModel(x)},[e,F,j,r.disableMultipleColumnsSorting]),l=Oe.useCallback(()=>uf(e),[e]),S=Oe.useCallback(()=>r6(e).map(p=>p.model),[e]),i=Oe.useCallback(()=>t6(e),[e]),C=Oe.useCallback(b=>e.current.getSortedRowIds()[b],[e]);Mi(e,{getSortModel:l,getSortedRows:S,getSortedRowIds:i,getRowIdFromRowIndex:C,setSortModel:O,sortColumn:t,applySorting:D},"public");const v=Oe.useCallback((b,p)=>{var c,x;const E=uf(e);return!p.exportOnlyDirtyModels||r.sortModel!=null||((x=(c=r.initialState)==null?void 0:c.sorting)==null?void 0:x.sortModel)!=null||E.length>0?Ge({},b,{sorting:{sortModel:E}}):b},[e,r.sortModel,(u=(f=r.initialState)==null?void 0:f.sorting)==null?void 0:u.sortModel]),m=Oe.useCallback((b,p)=>{var g;const E=(g=p.stateToRestore.sorting)==null?void 0:g.sortModel;return E==null?b:(e.current.setState(_I(E,r.disableMultipleColumnsSorting)),Ge({},b,{callbacks:[...b.callbacks,e.current.applySorting]}))},[e,r.disableMultipleColumnsSorting]),a=Oe.useCallback(b=>{const p=pf(e),E=p[yu],g=b.sortRowList?b.sortRowList(E.children.map(c=>p[c])):[...E.children];return E.footerId!=null&&g.push(E.footerId),g},[e]);Qo(e,"exportState",v),Qo(e,"restoreState",m),A2(e,mg,"sorting",a);const n=Oe.useCallback(({field:b,colDef:p},E)=>{if(!p.sortable||r.disableColumnSorting)return;const g=E.shiftKey||E.metaKey||E.ctrlKey;t(b,void 0,g)},[t,r.disableColumnSorting]),s=Oe.useCallback(({field:b,colDef:p},E)=>{!p.sortable||r.disableColumnSorting||E.key==="Enter"&&!E.ctrlKey&&!E.metaKey&&t(b,void 0,E.shiftKey)},[t,r.disableColumnSorting]),o=Oe.useCallback(()=>{const b=uf(e),p=gv(e);if(b.length>0){const E=b.filter(g=>p[g.field]);E.length{b==="sorting"&&e.current.applySorting()},[e]);Qo(e,"columnMenu",Y),Za(e,"columnHeaderClick",n),Za(e,"columnHeaderKeyDown",s),Za(e,"rowsSet",e.current.applySorting),Za(e,"columnsChange",o),Za(e,"activeStrategyProcessorChange",h),Gb(()=>{e.current.applySorting()}),Gi(()=>{r.sortModel!==void 0&&e.current.setSortModel(r.sortModel)},[e,r.sortModel])};function CR(e){const{clientHeight:r,scrollTop:y,offsetHeight:F,offsetTop:j}=e,Y=j+F;if(F>r)return j;if(Y-r>y)return Y-r;if(j{const y=ru(),F=nl(e,"useGridScroll"),j=e.current.columnHeadersContainerRef,Y=e.current.virtualScrollerRef,D=va(e,qp),O=Oe.useCallback(i=>{var n;const C=Qu(e.current.state),w=jb(e),v=rl(e);if(!(i.rowIndex==null)&&w===0||v.length===0)return!1;F.debug(`Scrolling to cell at row ${i.rowIndex}, col: ${i.colIndex} `);let a={};if(i.colIndex!==void 0){const s=Jp(e);let o;if(typeof i.rowIndex<"u"){const h=(n=D[i.rowIndex])==null?void 0:n.id,f=e.current.unstable_getCellColSpanInfo(h,i.colIndex);f&&!f.spannedByColSpan&&(o=f.cellProps.width)}typeof o>"u"&&(o=v[i.colIndex].computedWidth),a.left=CR({clientHeight:C.viewportInnerSize.width,scrollTop:Math.abs(Y.current.scrollLeft),offsetHeight:o,offsetTop:s[i.colIndex]})}if(i.rowIndex!==void 0){const s=$y(e.current.state),o=Dpe(e),h=Ope(e),f=r.pagination?i.rowIndex-o*h:i.rowIndex,u=s.positions[f+1]?s.positions[f+1]-s.positions[f]:s.currentPageTotalHeight-s.positions[f];a.top=CR({clientHeight:C.viewportInnerSize.height,scrollTop:Y.current.scrollTop,offsetHeight:u,offsetTop:s.positions[f]})}return a=e.current.unstable_applyPipeProcessors("scrollToIndexes",a,i),typeof a.left!==void 0||typeof a.top!==void 0?(e.current.scroll(a),!0):!1},[F,e,Y,r.pagination,D]),t=Oe.useCallback(i=>{if(Y.current&&i.left!==void 0&&j.current){const C=y.direction==="rtl"?-1:1;j.current.scrollLeft=i.left,Y.current.scrollLeft=C*i.left,F.debug(`Scrolling left: ${i.left}`)}Y.current&&i.top!==void 0&&(Y.current.scrollTop=i.top,F.debug(`Scrolling top: ${i.top}`)),F.debug("Scrolling, updating container, and viewport")},[Y,y.direction,j,F]),l=Oe.useCallback(()=>Y!=null&&Y.current?{top:Y.current.scrollTop,left:Y.current.scrollLeft}:{top:0,left:0},[Y]);Mi(e,{scroll:t,scrollToIndexes:O,getScrollPosition:l},"public")};function mbe(e,r){Fo(e,"columnHeaderClick",r.onColumnHeaderClick),Fo(e,"columnHeaderDoubleClick",r.onColumnHeaderDoubleClick),Fo(e,"columnHeaderOver",r.onColumnHeaderOver),Fo(e,"columnHeaderOut",r.onColumnHeaderOut),Fo(e,"columnHeaderEnter",r.onColumnHeaderEnter),Fo(e,"columnHeaderLeave",r.onColumnHeaderLeave),Fo(e,"cellClick",r.onCellClick),Fo(e,"cellDoubleClick",r.onCellDoubleClick),Fo(e,"cellKeyDown",r.onCellKeyDown),Fo(e,"preferencePanelClose",r.onPreferencePanelClose),Fo(e,"preferencePanelOpen",r.onPreferencePanelOpen),Fo(e,"menuOpen",r.onMenuOpen),Fo(e,"menuClose",r.onMenuClose),Fo(e,"rowDoubleClick",r.onRowDoubleClick),Fo(e,"rowClick",r.onRowClick),Fo(e,"stateChange",r.onStateChange)}function ybe(e,r=166){let y,F;const j=()=>{y=void 0,e(...F)};function Y(...D){F=D,y===void 0&&(y=setTimeout(j,r))}return Y.clear=()=>{clearTimeout(y),y=void 0},Y}const gm={width:0,height:0},xbe={isReady:!1,root:gm,viewportOuterSize:gm,viewportInnerSize:gm,contentSize:gm,minimumSize:gm,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},bbe=e=>Ge({},e,{dimensions:xbe});function wbe(e,r){const y=nl(e,"useResizeContainer"),F=Oe.useRef(!1),j=Oe.useRef(gm),Y=va(e,Qu),D=va(e,$y),O=va(e,Vb),t=va(e,Ub),l=Math.floor(r.rowHeight*t),S=Math.floor(r.columnHeaderHeight*t),i=Math.floor((r.headerFilterHeight??r.columnHeaderHeight)*t),C=Sbe(X5(e),6),w=l6(e,r),v=O.left.reduce((M,R)=>M+R.computedWidth,0),m=O.right.reduce((M,R)=>M+R.computedWidth,0),[a,n]=Oe.useState(),s=Oe.useMemo(()=>ybe(n,r.resizeThrottleMs),[r.resizeThrottleMs]),o=Oe.useRef(),h=()=>e.current.state.dimensions,f=pa(M=>{e.current.setState(R=>Ge({},R,{dimensions:M}))}),u=Oe.useCallback(()=>{const M=e.current.mainElementRef.current;if(!M)return;const R=wd(M).getComputedStyle(M),T={width:parseFloat(R.width)||0,height:parseFloat(R.height)||0};(!o.current||!MR(o.current,T))&&(e.current.publishEvent("resize",T),o.current=T)},[e]),b=Oe.useCallback(()=>{const M=Qu(e.current.state);if(!M.isReady)return 0;const R=ib(e,{pagination:r.pagination,paginationMode:r.paginationMode});if(r.getRowHeight){const L=f6(e),P=L.lastRowIndex-L.firstRowIndex;return Math.min(P-1,R.rows.length)}const T=Math.floor(M.viewportInnerSize.height/l);return Math.min(T,R.rows.length)},[e,r.pagination,r.paginationMode,r.getRowHeight,l]),p=Oe.useCallback(()=>{var $,Z;const M=e.current.rootElementRef.current,R=Qve(e),T=Tbe(M,C,r.scrollbarSize),L=w+R.top,P=R.bottom,k={width:C-v-m,height:D.currentPageTotalHeight};let I,N,B=!1,G=!1;if(r.autoHeight)G=!1,B=Math.round(C)>Math.round(j.current.width),I={width:j.current.width,height:L+P+k.height},N={width:Math.max(0,I.width-(G?T:0)),height:Math.max(0,I.height-(B?T:0))};else{I={width:j.current.width,height:j.current.height},N={width:Math.max(0,I.width-v-m),height:Math.max(0,I.height-L-P)};const q=k,ae=N,ie=q.width>ae.width,fe=q.height>ae.height;(ie||fe)&&(G=fe,B=q.width+(G?T:0)>ae.width,B&&(G=q.height+T>ae.height)),G&&(N.width-=T),B&&(N.height-=T)}const U=Math.max(I.width,C+(G?T:0)),H={width:C,height:L+k.height+P},W={isReady:!0,root:j.current,viewportOuterSize:I,viewportInnerSize:N,contentSize:k,minimumSize:H,hasScrollX:B,hasScrollY:G,scrollbarSize:T,headerHeight:S,headerFilterHeight:i,rowWidth:U,rowHeight:l,columnsTotalWidth:C,leftPinnedWidth:v,rightPinnedWidth:m,headersTotalHeight:w,topContainerHeight:L,bottomContainerHeight:P},V=e.current.state.dimensions;f(W),MR(W.viewportInnerSize,V.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",W.viewportInnerSize),(Z=($=e.current).updateRenderContext)==null||Z.call($)},[e,f,r.scrollbarSize,r.autoHeight,D.currentPageTotalHeight,l,S,i,C,w,v,m]),E={resize:u,getRootDimensions:h},g={updateDimensions:p,getViewportPageSize:b};Mi(e,E,"public"),Mi(e,g,"private"),Gi(()=>{a&&(p(),e.current.publishEvent("debouncedResize",j.current))},[e,a,p]);const c=e.current.rootElementRef.current;Gi(()=>{if(!c)return;const M=(R,T)=>c.style.setProperty(R,T);M("--DataGrid-width",`${Y.viewportOuterSize.width}px`),M("--DataGrid-hasScrollX",`${Number(Y.hasScrollX)}`),M("--DataGrid-hasScrollY",`${Number(Y.hasScrollY)}`),M("--DataGrid-scrollbarSize",`${Y.scrollbarSize}px`),M("--DataGrid-rowWidth",`${Y.rowWidth}px`),M("--DataGrid-columnsTotalWidth",`${Y.columnsTotalWidth}px`),M("--DataGrid-leftPinnedWidth",`${Y.leftPinnedWidth}px`),M("--DataGrid-rightPinnedWidth",`${Y.rightPinnedWidth}px`),M("--DataGrid-headerHeight",`${Y.headerHeight}px`),M("--DataGrid-headersTotalHeight",`${Y.headersTotalHeight}px`),M("--DataGrid-topContainerHeight",`${Y.topContainerHeight}px`),M("--DataGrid-bottomContainerHeight",`${Y.bottomContainerHeight}px`),M("--height",`${Y.rowHeight}px`)},[c,Y]);const x=Oe.useRef(!0),A=Oe.useCallback(M=>{j.current=M;const R=/jsdom/.test(window.navigator.userAgent);if(M.height===0&&!F.current&&!r.autoHeight&&!R&&(y.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),F.current=!0),M.width===0&&!F.current&&!R&&(y.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),F.current=!0),x.current){n(M),x.current=!1;return}s(M)},[r.autoHeight,s,y]);Gi(p,[p]),Fo(e,"sortedRowsSet",p),Fo(e,"paginationModelChange",p),Fo(e,"columnsChange",p),Za(e,"resize",A),Fo(e,"debouncedResize",r.onResize)}function Tbe(e,r,y){if(y!==void 0)return y;if(e===null||r===0)return 0;const j=oo(e).createElement("div");j.style.width="99px",j.style.height="99px",j.style.position="absolute",j.style.overflow="scroll",j.className="scrollDiv",e.appendChild(j);const Y=j.offsetWidth-j.clientWidth;return e.removeChild(j),Y}function Sbe(e,r){return Math.round(e*10**r)/10**r}function MR(e,r){return e.width===r.width&&e.height===r.height}const Cbe=e=>{const{classes:r,headerAlign:y,isDragging:F,isLastColumn:j,showLeftBorder:Y,showRightBorder:D,groupId:O,pinnedPosition:t}=e;return qn({root:["columnHeader",y==="left"&&"columnHeader--alignLeft",y==="center"&&"columnHeader--alignCenter",y==="right"&&"columnHeader--alignRight",F&&"columnHeader--moving",D&&"columnHeader--withRightBorder",Y&&"columnHeader--withLeftBorder","withBorderColor",O===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",t==="left"&&"columnHeader--pinnedLeft",t==="right"&&"columnHeader--pinnedRight",j&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ki,r)};function Mbe(e){var I;const{groupId:r,width:y,depth:F,maxDepth:j,fields:Y,height:D,colIndex:O,hasFocus:t,tabIndex:l,isLastColumn:S,pinnedPosition:i,style:C,indexInSection:w,sectionLength:v,gridHasFiller:m}=e,a=Wa(),n=Oe.useRef(null),s=yi(),o=va(s,m_),h=r?o[r]:{},{headerName:f=r??"",description:u="",headerAlign:b=void 0}=h;let p;const E=r&&((I=o[r])==null?void 0:I.renderHeaderGroup),g=Oe.useMemo(()=>({groupId:r,headerName:f,description:u,depth:F,maxDepth:j,fields:Y,colIndex:O,isLastColumn:S}),[r,f,u,F,j,Y,O,S]);r&&E&&(p=E(g));const c=iS(i,w),x=aS(i,w,v,a.showCellVerticalBorder,m),A=Ge({},e,{classes:a.classes,showLeftBorder:c,showRightBorder:x,headerAlign:b,depth:F,isDragging:!1}),M=f??r,R=Ui(),T=r===null?`empty-group-cell-${R}`:r,L=Cbe(A);Oe.useLayoutEffect(()=>{if(t){const B=n.current.querySelector('[tabindex="0"]')||n.current;B==null||B.focus()}},[s,t]);const P=Oe.useCallback(N=>B=>{$b(B)||s.current.publishEvent(N,g,B)},[s,g]),d=Oe.useMemo(()=>({onKeyDown:P("columnGroupHeaderKeyDown"),onFocus:P("columnGroupHeaderFocus"),onBlur:P("columnGroupHeaderBlur")}),[P]),k=typeof h.headerClassName=="function"?h.headerClassName(g):h.headerClassName;return Ce.jsx(I_,Ge({ref:n,classes:L,columnMenuOpen:!1,colIndex:O,height:D,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:l,isDraggable:!1,headerComponent:p,headerClassName:k,description:u,elementId:T,width:y,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:M,"aria-colspan":Y.length,"data-fields":`|-${Y.join("-|-")}-|`,style:C},d))}const AR=ln("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,r)=>r.columnHeaderRow})({display:"flex"}),Abe=e=>{const{visibleColumns:r,sortColumnLookup:y,filterColumnLookup:F,columnHeaderTabIndexState:j,columnGroupHeaderTabIndexState:Y,columnHeaderFocus:D,columnGroupHeaderFocus:O,headerGroupingMaxDepth:t,columnMenuState:l,columnVisibility:S,columnGroupsHeaderStructure:i,hasOtherElementInTabSequence:C}=e,[w,v]=Oe.useState(""),[m,a]=Oe.useState(""),n=vh(),s=ru(),o=Wa(),h=va(n,Qu),f=va(n,c6),u=va(n,g_),b=va(n,Jp),p=va(n,D0e),E=va(n,Vb),g=va(n,Qp),c=w_(b,p,s.direction,E.left.length),x=h.columnsTotalWidth{n.current.columnHeadersContainerRef.current.scrollLeft=0},[n]);const A=Oe.useCallback(H=>a(H.field),[]),M=Oe.useCallback(()=>a(""),[]),R=Oe.useCallback(H=>v(H.field),[]),T=Oe.useCallback(()=>v(""),[]),L=Oe.useMemo(()=>E.left.length?{firstColumnIndex:0,lastColumnIndex:E.left.length}:null,[E.left.length]),P=Oe.useMemo(()=>E.right.length?{firstColumnIndex:r.length-E.right.length,lastColumnIndex:r.length}:null,[E.right.length,r.length]);Za(n,"columnResizeStart",A),Za(n,"columnResizeStop",M),Za(n,"columnHeaderDragStart",R),Za(n,"columnHeaderDragEnd",T);const d=H=>{const{renderContext:W=p,maxLastColumn:V=r.length}=H||{},$=f?W.firstColumnIndex:0,Z=f?W.lastColumnIndex:V;return{renderedColumns:r.slice($,Z),firstColumnToRender:$,lastColumnToRender:Z}},k=(H,W,V,$=!1)=>{const Z=(H==null?void 0:H.position)===Ko.RIGHT,q=(H==null?void 0:H.position)===void 0,ae=E.right.length>0&&Z||E.right.length===0&&q,ie=c-V;return Ce.jsxs(Oe.Fragment,{children:[q&&Ce.jsx("div",{role:"presentation",style:{width:ie}}),W,q&&Ce.jsx("div",{role:"presentation",className:Ln(Hr.filler,$&&Hr["filler--borderTop"])}),ae&&Ce.jsx(p6,{header:!0,borderTop:$,pinnedRight:Z})]})},I=({pinnedPosition:H,columnIndex:W,computedWidth:V})=>{let $;if(H==="left"||H==="right"){const Z=v6(H,V,W,b,h);H==="left"&&($={left:Z}),H==="right"&&($={right:Z})}return $},N=(H,W={})=>{const{renderedColumns:V,firstColumnToRender:$}=d(H),Z=[];for(let q=0;qCe.jsxs(AR,{role:"row","aria-rowindex":t+1,ownerState:o,className:g.top.length===0?Hr["row--borderBottom"]:void 0,children:[L&&N({position:Ko.LEFT,renderContext:L,minFirstColumn:L.firstColumnIndex,maxLastColumn:L.lastColumnIndex},{disableReorder:!0}),N({renderContext:p,minFirstColumn:E.left.length,maxLastColumn:r.length-E.right.length}),P&&N({position:Ko.RIGHT,renderContext:P,minFirstColumn:P.firstColumnIndex,maxLastColumn:P.lastColumnIndex},{disableReorder:!0,separatorSide:h6.Left})]}),G=({depth:H,params:W})=>{var he,xe;const V=d(W);if(V.renderedColumns.length===0)return null;const{renderedColumns:$,firstColumnToRender:Z,lastColumnToRender:q}=V,ae=i[H],ie=r[Z].field,fe=((he=u[ie])==null?void 0:he[H])??null,Q=ae.findIndex(({groupId:Ee,columnFields:Se})=>Ee===fe&&Se.includes(ie)),J=r[q-1].field,oe=((xe=u[J])==null?void 0:xe[H])??null,K=ae.findIndex(({groupId:Ee,columnFields:Se})=>Ee===oe&&Se.includes(J)),ne=ae.slice(Q,K+1).map(Ee=>Ge({},Ee,{columnFields:Ee.columnFields.filter(Se=>S[Se]!==!1)})).filter(Ee=>Ee.columnFields.length>0),ce=ne[0].columnFields.indexOf(ie),ee=ne[0].columnFields.slice(0,ce).reduce((Ee,Se)=>{const ke=n.current.getColumn(Se);return Ee+(ke.computedWidth??0)},0);let de=Z;const le=ne.map(({groupId:Ee,columnFields:Se},ke)=>{const Te=O!==null&&O.depth===H&&Se.includes(O.field),Ae=Y!==null&&Y.depth===H&&Se.includes(Y.field)?0:-1,be={groupId:Ee,width:Se.reduce((ze,$e)=>ze+n.current.getColumn($e).computedWidth,0),fields:Se,colIndex:de,hasFocus:Te,tabIndex:Ae},Ie=W.position,Ue=I({pinnedPosition:Ie,columnIndex:de,computedWidth:be.width});de+=Se.length;let Ne=ke;return Ie==="left"&&(Ne=de-1),Ce.jsx(Mbe,{groupId:Ee,width:be.width,fields:be.fields,colIndex:be.colIndex,depth:H,isLastColumn:be.colIndex===r.length-be.fields.length,maxDepth:t,height:h.headerHeight,hasFocus:Te,tabIndex:Ae,pinnedPosition:Ie,style:Ue,indexInSection:Ne,sectionLength:$.length,gridHasFiller:x},ke)});return k(W,le,ee)};return{renderContext:p,leftRenderContext:L,rightRenderContext:P,pinnedColumns:E,visibleColumns:r,getCellOffsetStyle:I,getFillers:k,getColumnHeadersRow:B,getColumnsToRender:d,getColumnGroupHeadersRows:()=>{if(t===0)return null;const H=[];for(let W=0;W({role:"rowgroup"})}},Ebe=["className"],Pbe=e=>{const{classes:r}=e;return qn({root:["columnHeaders"]},ki,r)},Lbe=po("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,r)=>r.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Ibe=Oe.forwardRef(function(r,y){const{className:F}=r,j=hn(r,Ebe),Y=Wa(),D=Pbe(Y);return Ce.jsx(Lbe,Ge({ref:y,className:Ln(F,D.root),ownerState:Y},j,{role:"presentation"}))}),Rbe=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],kbe=Oe.forwardRef(function(r,y){const{visibleColumns:F,sortColumnLookup:j,filterColumnLookup:Y,columnHeaderTabIndexState:D,columnGroupHeaderTabIndexState:O,columnHeaderFocus:t,columnGroupHeaderFocus:l,headerGroupingMaxDepth:S,columnMenuState:i,columnVisibility:C,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:v}=r,m=hn(r,Rbe),{getInnerProps:a,getColumnHeadersRow:n,getColumnGroupHeadersRows:s}=Abe({visibleColumns:F,sortColumnLookup:j,filterColumnLookup:Y,columnHeaderTabIndexState:D,columnGroupHeaderTabIndexState:O,columnHeaderFocus:t,columnGroupHeaderFocus:l,headerGroupingMaxDepth:S,columnMenuState:i,columnVisibility:C,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:v});return Ce.jsxs(Ibe,Ge({ref:y},m,a(),{children:[s(),n()]}))}),Dbe=e0(kbe);function Obe(e){return null}function Fbe(e){return null}const _be=Oe.forwardRef(function(r,y){const j=yi().current.getLocaleText("noResultsOverlayLabel");return Ce.jsx(d6,Ge({ref:y},r,{children:j}))}),zbe=["sortingOrder"],Bbe=Oe.memo(function(r){const{sortingOrder:y}=r,F=hn(r,zbe),j=Wa(),[Y]=y,D=Y==="asc"?j.slots.columnSortedAscendingIcon:j.slots.columnSortedDescendingIcon;return D?Ce.jsx(D,Ge({},F)):null}),Nbe=["native"];function Ube(e){let{native:r}=e,y=hn(e,Nbe);return r?Ce.jsx("option",Ge({},y)):Ce.jsx(uo,Ge({},y))}const Hbe={booleanCellTrueIcon:oye,booleanCellFalseIcon:VC,columnMenuIcon:rye,openFilterButtonIcon:Zme,filterPanelDeleteIcon:VC,columnFilteredIcon:uR,columnSelectorIcon:Jme,columnUnsortedIcon:Bbe,columnSortedAscendingIcon:iR,columnSortedDescendingIcon:oR,columnResizeIcon:Qme,densityCompactIcon:qme,densityStandardIcon:eye,densityComfortableIcon:tye,exportIcon:iye,moreActionsIcon:sye,treeDataCollapseIcon:lR,treeDataExpandIcon:sR,groupingCriteriaCollapseIcon:lR,groupingCriteriaExpandIcon:sR,detailPanelExpandIcon:cR,detailPanelCollapseIcon:nye,rowReorderIcon:fR,quickFilterIcon:Kme,quickFilterClearIcon:VC,columnMenuHideIcon:lye,columnMenuSortAscendingIcon:iR,columnMenuSortDescendingIcon:oR,columnMenuFilterIcon:uR,columnMenuManageColumnsIcon:uye,columnMenuClearIcon:cye,loadIcon:aye,filterPanelAddIcon:cR,filterPanelRemoveAllIcon:fye,columnReorderIcon:fR},Vbe=Ge({},Hbe,{baseCheckbox:V9,baseTextField:Zo,baseFormControl:nh,baseSelect:ah,baseButton:$i,baseIconButton:fl,baseInputAdornment:w5,baseTooltip:uO,basePopper:Xp,baseInputLabel:Ey,baseSelectOption:Ube,baseChip:Kh}),jbe=Vbe,Gbe=Ge({},jbe,{cell:Kge,skeletonCell:ime,columnHeaderFilterIconButton:Xme,columnHeaderSortIcon:$me,columnMenu:Aye,columnHeaders:Dbe,detailPanels:Obe,footer:O1e,footerRowCount:J1e,toolbar:null,pinnedRows:Fbe,loadingOverlay:V1e,noResultsOverlay:_be,noRowsOverlay:j1e,pagination:Y1e,filterPanel:u1e,columnsPanel:Bye,columnsManagement:D_,panel:jye,row:rxe});function Wbe({defaultSlots:e,slots:r}){const y=r;if(!y||Object.keys(y).length===0)return e;const F=Ge({},e);return Object.keys(y).forEach(j=>{const Y=j;y[Y]!==void 0&&(F[Y]=y[Y])}),F}function $be(e){const r=Object.keys(e);if(!r.some(j=>j.startsWith("aria-")||j.startsWith("data-")))return e;const y={},F=e.forwardedProps??{};for(let j=0;j$be(e),[e])}const Xbe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},SM={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:dh.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0},Zbe=Gbe,Kbe=e=>{const r=Ybe(_o({props:e,name:"MuiDataGrid"})),y=Oe.useMemo(()=>Ge({},Bhe,r.localeText),[r.localeText]),F=Oe.useMemo(()=>Wbe({defaultSlots:Zbe,slots:r.slots}),[r.slots]),j=Oe.useMemo(()=>Object.keys(SM).reduce((Y,D)=>(Y[D]=r[D]??SM[D],Y),{}),[r]);return Oe.useMemo(()=>Ge({},r,j,{localeText:y,slots:F},Xbe),[r,y,F,j])},Jbe=e=>Ge({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),ER=(e,r,y)=>typeof e=="number"&&e>0?e:r,Qbe=(e,r)=>{const{getRowHeight:y,getRowSpacing:F,getEstimatedRowHeight:j}=r,Y=Oe.useRef(Object.create(null)),D=Oe.useRef(-1),O=Oe.useRef(!1),t=va(e,Ub),l=va(e,ul),S=va(e,tS),i=va(e,uf),C=Ag(e,r),w=va(e,Qp),v=ER(r.rowHeight,SM.rowHeight),m=Math.floor(v*t),a=Oe.useCallback(()=>{var R,T;O.current=!1;const x=L=>{Y.current[L.id]||(Y.current[L.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:P,needsFirstMeasurement:d,sizes:k}=Y.current[L.id];let I=typeof m=="number"&&m>0?m:52;const N=k.baseCenter;if(P)I=N;else if(y){const U=y(Ge({},L,{densityFactor:t}));U==="auto"?(d?I=(j?j(Ge({},L,{densityFactor:t})):m)??m:I=N,O.current=!0,Y.current[L.id].autoHeight=!0):(I=ER(U,m),Y.current[L.id].needsFirstMeasurement=!1,Y.current[L.id].autoHeight=!1)}else Y.current[L.id].needsFirstMeasurement=!1;const B={baseCenter:I};if(F){const U=e.current.getRowIndexRelativeToVisibleRows(L.id),H=F(Ge({},L,{isFirstVisible:U===0,isLastVisible:U===C.rows.length-1,indexRelativeToCurrentPage:U}));B.spacingTop=H.top??0,B.spacingBottom=H.bottom??0}const G=e.current.unstable_applyPipeProcessors("rowHeight",B,L);return Y.current[L.id].sizes=G,G},A=[],M=C.rows.reduce((L,P)=>{A.push(L);let d=0;const k=x(P);for(const I in k){const N=k[I];I!=="baseCenter"&&(d+=N)}return L+k.baseCenter+d},0);(R=w==null?void 0:w.top)==null||R.forEach(L=>{x(L)}),(T=w==null?void 0:w.bottom)==null||T.forEach(L=>{x(L)}),e.current.setState(L=>Ge({},L,{rowsMeta:{currentPageTotalHeight:M,positions:A}})),O.current||(D.current=1/0),e.current.forceUpdate()},[e,C.rows,m,y,F,j,w,t]),n=Oe.useCallback(x=>{const A=Y.current[x];return A?A.sizes.baseCenter:m},[m]),s=x=>{var A;return(A=Y.current[x])==null?void 0:A.sizes},o=Oe.useCallback((x,A)=>{Y.current[x].sizes.baseCenter=A,Y.current[x].isResized=!0,Y.current[x].needsFirstMeasurement=!1,a()},[a]),h=Oe.useMemo(()=>bg(a,r.rowPositionsDebounceMs),[a,r.rowPositionsDebounceMs]),f=Oe.useCallback((x,A)=>{if(!Y.current[x]||!Y.current[x].autoHeight)return;const M=Y.current[x].sizes.baseCenter!==A;Y.current[x].needsFirstMeasurement=!1,Y.current[x].sizes.baseCenter=A,M&&h()},[h]),u=Oe.useCallback(x=>{var A;return((A=Y.current[x])==null?void 0:A.autoHeight)||!1},[]),b=Oe.useCallback(()=>D.current,[]),p=Oe.useCallback(x=>{O.current&&x>D.current&&(D.current=x)},[]),E=Oe.useCallback(()=>{Y.current={},a()},[a]);Oe.useEffect(()=>{a()},[m,l,S,i,a]),y6(e,"rowHeight",a);const g={unstable_setLastMeasuredRowIndex:p,unstable_getRowHeight:n,unstable_getRowInternalSizes:s,unstable_setRowHeight:o,unstable_storeRowHeightMeasurement:f,resetRowHeights:E},c={getLastMeasuredRowIndex:b,rowHasAutoHeight:u};Mi(e,g,"public"),Mi(e,c,"private")},qbe=e=>{const r=Oe.useCallback((j={})=>e.current.unstable_applyPipeProcessors("exportState",{},j),[e]),y=Oe.useCallback(j=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:j}).callbacks.forEach(D=>{D()}),e.current.forceUpdate()},[e]);Mi(e,{exportState:r,restoreState:y},"public")},ewe=e=>{const r=Oe.useRef({}),y=(O,t)=>{var l;return(l=r.current[O])==null?void 0:l[t]},F=()=>{r.current={}},j=Oe.useCallback(({rowId:O,minFirstColumn:t,maxLastColumn:l,columns:S})=>{for(let i=t;i1&&(i+=C.colSpan-1)}},[e]),Y={unstable_getCellColSpanInfo:y},D={resetColSpan:F,calculateColSpan:j};Mi(e,Y,"public"),Mi(e,D,"private"),Za(e,"columnOrderChange",F)};function twe(e){const{apiRef:r,lookup:y,columnIndex:F,rowId:j,minFirstColumnIndex:Y,maxLastColumnIndex:D,columns:O}=e,t=O.length,l=O[F],S=r.current.getRow(j),i=r.current.getRowValue(S,l),C=typeof l.colSpan=="function"?l.colSpan(i,S,l,r):l.colSpan;if(!C||C===1)return WC(y,j,F,{spannedByColSpan:!1,cellProps:{colSpan:1,width:l.computedWidth}}),{colSpan:1};let w=l.computedWidth;for(let v=1;v=Y&&m{if(GF(e)){if(y[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${y[e.field].join(" > ")}`,`- ${r.join(" > ")}`].join(` -`));y[e.field]=r;return}const{groupId:F,children:j}=e;j.forEach(Y=>{N_(Y,[...r,F],y)})},CM=e=>{if(!e)return{};const r={};return e.forEach(y=>{N_(y,[],r)}),r},MM=(e,r,y)=>{const F=t=>r[t]??[],j=[],Y=Math.max(...e.map(t=>F(t).length)),D=(t,l,S)=>Bp(F(t).slice(0,S+1),F(l).slice(0,S+1)),O=(t,l)=>!!(y!=null&&y.left&&y.left.includes(t)&&!y.left.includes(l)||y!=null&&y.right&&!y.right.includes(t)&&y.right.includes(l));for(let t=0;t{const C=F(i)[t]??null;if(S.length===0)return[{columnFields:[i],groupId:C}];const w=S[S.length-1],v=w.columnFields[w.columnFields.length-1];return w.groupId!==C||!D(v,i,t)||O(v,i)?[...S,{columnFields:[i],groupId:C}]:[...S.slice(0,S.length-1),{columnFields:[...w.columnFields,i],groupId:C}]},[]);j.push(l)}return j},rwe=["groupId","children"],x6=e=>{let r={};return e.forEach(y=>{if(GF(y))return;const{groupId:F,children:j}=y,Y=hn(y,rwe);if(!F)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const D=Ge({},Y,{groupId:F}),O=x6(j);if(O[F]!==void 0||r[F]!==void 0)throw new Error(`MUI X: The groupId ${F} is used multiple times in the columnGroupingModel.`);r=Ge({},r,O,{[F]:D})}),Ge({},r)},nwe=(e,r,y)=>{if(!r.columnGroupingModel)return e;const F=qh(y),j=Hb(y),Y=x6(r.columnGroupingModel??[]),D=CM(r.columnGroupingModel??[]),O=MM(F,D,y.current.state.pinnedColumns??{}),t=j.length===0?0:Math.max(...j.map(l=>{var S;return((S=D[l])==null?void 0:S.length)??0}));return Ge({},e,{columnGrouping:{lookup:Y,unwrappedGroupingModel:D,headerStructure:O,maxDepth:t}})},awe=(e,r)=>{const y=Oe.useCallback(O=>g_(e)[O]??[],[e]),F=Oe.useCallback(()=>m_(e),[e]);Mi(e,{getColumnGroupPath:y,getAllGroupDetails:F},"public");const Y=Oe.useCallback(()=>{const O=CM(r.columnGroupingModel??[]);e.current.setState(t=>{var C;const l=((C=t.columns)==null?void 0:C.orderedFields)??[],S=t.pinnedColumns??{},i=MM(l,O,S);return Ge({},t,{columnGrouping:Ge({},t.columnGrouping,{headerStructure:i})})})},[e,r.columnGroupingModel]),D=Oe.useCallback(O=>{var m,a;const t=((a=(m=e.current).getPinnedColumns)==null?void 0:a.call(m))??{},l=qh(e),S=Hb(e),i=x6(O??[]),C=CM(O??[]),w=MM(l,C,t),v=S.length===0?0:Math.max(...S.map(n=>{var s;return((s=C[n])==null?void 0:s.length)??0}));e.current.setState(n=>Ge({},n,{columnGrouping:{lookup:i,unwrappedGroupingModel:C,headerStructure:w,maxDepth:v}}))},[e]);Za(e,"columnIndexChange",Y),Za(e,"columnsChange",()=>{D(r.columnGroupingModel)}),Za(e,"columnVisibilityModelChange",()=>{D(r.columnGroupingModel)}),Oe.useEffect(()=>{D(r.columnGroupingModel)},[D,r.columnGroupingModel])};function iwe(){let e,r;const y=new Promise((F,j)=>{e=F,r=j});return y.resolve=e,y.reject=r,y}function PR(e,r){if(r!==void 0&&e.changedTouches){for(let y=0;yc6(e),F=va(e,y);return Oe.useEffect(()=>{r.current&&F===!1&&(r.current.resolve(),r.current=void 0)}),()=>{if(!r.current){if(y()===!1)return Promise.resolve();r.current=iwe()}return r.current}}function cwe(e,r){if(e.length<4)return e;const y=e.slice();y.sort((O,t)=>O-t);const F=y[Math.floor(y.length*.25)],j=y[Math.floor(y.length*.75)-1],Y=j-F,D=Y<5?5:Y*r;return y.filter(O=>O>F-D&&O{const O=Gge(e.current,Y.field).map(v=>v.getBoundingClientRect().width??0),t=r.includeOutliers?O:cwe(O,r.outliersFactor);if(r.includeHeaders){const v=jge(e.current,Y.field);if(v){const m=v.querySelector(`.${Hr.columnHeaderTitle}`),a=v.querySelector(`.${Hr.columnHeaderTitleContainerContent}`),n=v.querySelector(`.${Hr.iconButtonContainer}`),s=v.querySelector(`.${Hr.menuIcon}`),o=m??a,h=window.getComputedStyle(v,null),f=parseInt(h.paddingLeft,10)+parseInt(h.paddingRight,10),b=o.scrollWidth+1+f+((n==null?void 0:n.clientWidth)??0)+((s==null?void 0:s.clientWidth)??0);t.push(b)}}const l=Y.minWidth!==-1/0&&Y.minWidth!==void 0,S=Y.maxWidth!==1/0&&Y.maxWidth!==void 0,i=l?Y.minWidth:0,C=S?Y.maxWidth:1/0,w=t.length===0?0:Math.max(...t);F[Y.field]=uv(w,i,C)}),j.classList.remove(Hr.autosizing),F}const dwe=e=>Ge({},e,{columnResize:{resizingColumnField:""}});function hwe(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const vwe=(e,r)=>{const y=ru(),F=nl(e,"useGridColumnResize"),j=wg(hwe).current,Y=Oe.useRef(),D=Oe.useRef(),O=Sc(),t=Oe.useRef(),l=E=>{var T,L;F.debug(`Updating width to ${E} for col ${j.colDef.field}`);const g=j.columnHeaderElement.offsetWidth,c=E-g,x=E-j.initialColWidth,A=j.initialTotalWidth+x;(L=(T=e.current.rootElementRef)==null?void 0:T.current)==null||L.style.setProperty("--DataGrid-rowWidth",`${A}px`),j.colDef.computedWidth=E,j.colDef.width=E,j.colDef.flex=0,j.columnHeaderElement.style.width=`${E}px`,j.columnHeaderElement.style.minWidth=`${E}px`,j.columnHeaderElement.style.maxWidth=`${E}px`;const M=j.headerFilterElement;M&&(M.style.width=`${E}px`,M.style.minWidth=`${E}px`,M.style.maxWidth=`${E}px`),j.groupHeaderElements.forEach(P=>{const d=P;let k;d.getAttribute("aria-colspan")==="1"?k=`${E}px`:k=`${d.offsetWidth+c}px`,d.style.width=k,d.style.minWidth=k,d.style.maxWidth=k}),j.cellElements.forEach(P=>{const d=P;let k;d.getAttribute("aria-colspan")==="1"?k=`${E}px`:k=`${d.offsetWidth+c}px`,d.style.setProperty("--width",k)});const R=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,j.colDef.field);R===Ko.LEFT&&(cm(j.fillerLeft,"width",c),j.leftPinnedCellsAfter.forEach(P=>{cm(P,"left",c)}),j.leftPinnedHeadersAfter.forEach(P=>{cm(P,"left",c)})),R===Ko.RIGHT&&(cm(j.fillerRight,"width",c),j.rightPinnedCellsBefore.forEach(P=>{cm(P,"right",c)}),j.rightPinnedHeadersBefore.forEach(P=>{cm(P,"right",c)}))},S=E=>{if(n(),j.previousMouseClickEvent){const g=j.previousMouseClickEvent,c=g.timeStamp,x=g.clientX,A=g.clientY;if(E.timeStamp-c<300&&E.clientX===x&&E.clientY===A){j.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,E);return}}if(j.colDef){e.current.setColumnWidth(j.colDef.field,j.colDef.width),F.debug(`Updating col ${j.colDef.field} with new width: ${j.colDef.width}`);const g=ch(e.current.state);j.groupHeaderElements.forEach(c=>{const x=_ge(c),A=c,R=`${x.reduce((T,L)=>g.columnVisibilityModel[L]!==!1?T+g.lookup[L].computedWidth:T,0)}px`;A.style.width=R,A.style.minWidth=R,A.style.maxWidth=R})}O.start(0,()=>{e.current.publishEvent("columnResizeStop",null,E)})},i=(E,g,c)=>{var R;const x=e.current.rootElementRef.current;j.initialColWidth=E.computedWidth,j.initialTotalWidth=e.current.getRootDimensions().rowWidth,j.colDef=E,j.columnHeaderElement=Fge(e.current.columnHeadersContainerRef.current,E.field);const A=x.querySelector(`.${Hr.headerFilterRow} [data-field="${mv(E.field)}"]`);A&&(j.headerFilterElement=A),j.groupHeaderElements=zge((R=e.current.columnHeadersContainerRef)==null?void 0:R.current,E.field),j.cellElements=Bge(j.columnHeaderElement,e.current),j.fillerLeft=qI(e.current,"filler--pinnedLeft"),j.fillerRight=qI(e.current,"filler--pinnedRight");const M=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,j.colDef.field);j.leftPinnedCellsAfter=M!==Ko.LEFT?[]:Nge(e.current,j.columnHeaderElement),j.rightPinnedCellsBefore=M!==Ko.RIGHT?[]:Uge(e.current,j.columnHeaderElement),j.leftPinnedHeadersAfter=M!==Ko.LEFT?[]:Hge(e.current,j.columnHeaderElement),j.rightPinnedHeadersBefore=M!==Ko.RIGHT?[]:Vge(e.current,j.columnHeaderElement),D.current=lwe(g,y.direction),Y.current=owe(c,j.columnHeaderElement.getBoundingClientRect(),D.current)},C=pa(S),w=pa(E=>{if(E.buttons===0){C(E);return}let g=LR(Y.current,E.clientX,j.columnHeaderElement.getBoundingClientRect(),D.current);g=uv(g,j.colDef.minWidth,j.colDef.maxWidth),l(g);const c={element:j.columnHeaderElement,colDef:j.colDef,width:g};e.current.publishEvent("columnResize",c,E)}),v=pa(E=>{PR(E,t.current)&&S(E)}),m=pa(E=>{const g=PR(E,t.current);if(!g)return;if(E.type==="mousemove"&&E.buttons===0){v(E);return}let c=LR(Y.current,g.x,j.columnHeaderElement.getBoundingClientRect(),D.current);c=uv(c,j.colDef.minWidth,j.colDef.maxWidth),l(c);const x={element:j.columnHeaderElement,colDef:j.colDef,width:c};e.current.publishEvent("columnResize",x,E)}),a=pa(E=>{const g=M2(E.target,Hr["columnSeparator--resizable"]);if(!g)return;const c=E.changedTouches[0];c!=null&&(t.current=c.identifier);const x=M2(E.target,Hr.columnHeader),A=Oge(x),M=e.current.getColumn(A);F.debug(`Start Resize on col ${M.field}`),e.current.publishEvent("columnResizeStart",{field:A},E),i(M,g,c.clientX);const R=oo(E.currentTarget);R.addEventListener("touchmove",m),R.addEventListener("touchend",v)}),n=Oe.useCallback(()=>{const E=oo(e.current.rootElementRef.current);E.body.style.removeProperty("cursor"),E.removeEventListener("mousemove",w),E.removeEventListener("mouseup",C),E.removeEventListener("touchmove",m),E.removeEventListener("touchend",v),setTimeout(()=>{E.removeEventListener("click",IR,!0)},100),j.columnHeaderElement&&(j.columnHeaderElement.style.pointerEvents="unset")},[e,j,w,C,m,v]),s=Oe.useCallback(({field:E})=>{e.current.setState(g=>Ge({},g,{columnResize:Ge({},g.columnResize,{resizingColumnField:E})})),e.current.forceUpdate()},[e]),o=Oe.useCallback(()=>{e.current.setState(E=>Ge({},E,{columnResize:Ge({},E.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),h=pa(({colDef:E},g)=>{if(g.button!==0||!g.currentTarget.classList.contains(Hr["columnSeparator--resizable"]))return;g.preventDefault(),F.debug(`Start Resize on col ${E.field}`),e.current.publishEvent("columnResizeStart",{field:E.field},g),i(E,g.currentTarget,g.clientX);const c=oo(e.current.rootElementRef.current);c.body.style.cursor="col-resize",j.previousMouseClickEvent=g.nativeEvent,c.addEventListener("mousemove",w),c.addEventListener("mouseup",C),c.addEventListener("click",IR,!0)}),f=pa((E,g)=>{if(r.disableAutosize||g.button!==0)return;const c=e.current.state.columns.lookup[E.field];c.resizable!==!1&&e.current.autosizeColumns(Ge({},r.autosizeOptions,{columns:[c.field]}))}),u=uwe(e),b=Oe.useRef(!1),p=Oe.useCallback(async E=>{var M;if(!((M=e.current.rootElementRef)==null?void 0:M.current)||b.current)return;b.current=!0;const c=ch(e.current.state),x=Ge({},bge,E,{columns:(E==null?void 0:E.columns)??c.orderedFields});x.columns=x.columns.filter(R=>c.columnVisibilityModel[R]!==!1);const A=x.columns.map(R=>e.current.state.columns.lookup[R]);try{e.current.unstable_setColumnVirtualization(!1),await u();const R=fwe(e,x,A),T=A.map(L=>Ge({},L,{width:R[L.field],computedWidth:R[L.field]}));if(x.expand){const P=c.orderedFields.map(I=>c.lookup[I]).filter(I=>c.columnVisibilityModel[I.field]!==!1).reduce((I,N)=>I+(R[N.field]??N.computedWidth??N.width),0),k=e.current.getRootDimensions().viewportInnerSize.width-P;if(k>0){const I=k/(T.length||1);T.forEach(N=>{N.width+=I,N.computedWidth+=I})}}e.current.updateColumns(T),T.forEach((L,P)=>{if(L.width!==A[P].width){const d=L.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(L.field),colDef:L,width:d})}})}finally{e.current.unstable_setColumnVirtualization(!0),b.current=!1}},[e,u]);Oe.useEffect(()=>n,[n]),ST(()=>{r.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(r.autosizeOptions)})}),i_(e,()=>{var E;return(E=e.current.columnHeadersContainerRef)==null?void 0:E.current},"touchstart",a,{passive:!0}),Mi(e,{autosizeColumns:p},"public"),Za(e,"columnResizeStop",o),Za(e,"columnResizeStart",s),Za(e,"columnSeparatorMouseDown",h),Za(e,"columnSeparatorDoubleClick",f),Fo(e,"columnResize",r.onColumnResize),Fo(e,"columnWidthChange",r.onColumnWidthChange)};function cm(e,r,y){e&&(e.style[r]=`${parseInt(e.style[r],10)+y}px`)}const pwe=(e,r)=>{const y=yxe(e,r);return hbe(y,r),ube(y),Zl(bbe,y,r),Zl(cbe,y,r),Zl(Axe,y,r),Zl(abe,y,r),Zl(rbe,y,r),Zl(Uxe,y,r),Zl(vbe,y,r),Zl(Xxe,y,r),Zl(_xe,y,r),Zl(Pxe,y,r),Zl(dwe,y,r),Zl($xe,y,r),Zl(Jbe,y,r),Zl(Cxe,y,r),Zl(nwe,y,r),Zl(O0e,y,r),jxe(y,r),fbe(y,r),Exe(y,r),ibe(y,r),Wge(y),ewe(y),awe(y,r),nbe(y,r),Hxe(y,r),Zxe(y,r),Nxe(y,r),pbe(y,r),Lxe(y,r),vwe(y,r),Yxe(y,r),Qbe(y,r),gbe(y,r),Mxe(y),Rxe(y,r),Fxe(y,r),Sxe(y,r),wbe(y,r),mbe(y,r),qbe(y),F0e(y,r),y},U_=Oe.forwardRef(function(r,y){const F=Kbe(r),j=pwe(F.apiRef,F);return Ce.jsx(nxe,{privateApiRef:j,props:F,children:Ce.jsxs(fme,Ge({className:F.className,style:F.style,sx:F.sx,ref:y},F.forwardedProps,{children:[Ce.jsx(_1e,{}),Ce.jsx(Ege,{}),Ce.jsx(Pge,{})]}))})}),tc=Oe.memo(U_);U_.propTypes={apiRef:zr.shape({current:zr.object.isRequired}),"aria-label":zr.string,"aria-labelledby":zr.string,autoHeight:zr.bool,autoPageSize:zr.bool,autosizeOnMount:zr.bool,autosizeOptions:zr.shape({columns:zr.arrayOf(zr.string),expand:zr.bool,includeHeaders:zr.bool,includeOutliers:zr.bool,outliersFactor:zr.number}),cellModesModel:zr.object,checkboxSelection:zr.bool,classes:zr.object,clipboardCopyCellDelimiter:zr.string,columnBufferPx:zr.number,columnGroupingModel:zr.arrayOf(zr.object),columnHeaderHeight:zr.number,columns:zr.arrayOf(zr.object).isRequired,columnVisibilityModel:zr.object,density:zr.oneOf(["comfortable","compact","standard"]),disableAutosize:zr.bool,disableColumnFilter:zr.bool,disableColumnMenu:zr.bool,disableColumnResize:zr.bool,disableColumnSelector:zr.bool,disableColumnSorting:zr.bool,disableDensitySelector:zr.bool,disableEval:zr.bool,disableMultipleRowSelection:zr.bool,disableRowSelectionOnClick:zr.bool,disableVirtualization:zr.bool,editMode:zr.oneOf(["cell","row"]),estimatedRowCount:zr.number,experimentalFeatures:zr.shape({warnIfFocusStateIsNotSynced:zr.bool}),filterDebounceMs:zr.number,filterMode:zr.oneOf(["client","server"]),filterModel:zr.shape({items:zr.arrayOf(zr.shape({field:zr.string.isRequired,id:zr.oneOfType([zr.number,zr.string]),operator:zr.string.isRequired,value:zr.any})).isRequired,logicOperator:zr.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:zr.bool,quickFilterLogicOperator:zr.oneOf(["and","or"]),quickFilterValues:zr.array}),forwardedProps:zr.object,getCellClassName:zr.func,getDetailPanelContent:zr.func,getEstimatedRowHeight:zr.func,getRowClassName:zr.func,getRowHeight:zr.func,getRowId:zr.func,getRowSpacing:zr.func,hideFooter:zr.bool,hideFooterPagination:zr.bool,hideFooterSelectedRowCount:zr.bool,ignoreDiacritics:zr.bool,ignoreValueFormatterDuringExport:zr.oneOfType([zr.shape({clipboardExport:zr.bool,csvExport:zr.bool}),zr.bool]),initialState:zr.object,isCellEditable:zr.func,isRowSelectable:zr.func,keepNonExistentRowsSelected:zr.bool,loading:zr.bool,localeText:zr.object,logger:zr.shape({debug:zr.func.isRequired,error:zr.func.isRequired,info:zr.func.isRequired,warn:zr.func.isRequired}),logLevel:zr.oneOf(["debug","error","info","warn",!1]),nonce:zr.string,onCellClick:zr.func,onCellDoubleClick:zr.func,onCellEditStart:zr.func,onCellEditStop:zr.func,onCellKeyDown:zr.func,onCellModesModelChange:zr.func,onClipboardCopy:zr.func,onColumnHeaderClick:zr.func,onColumnHeaderDoubleClick:zr.func,onColumnHeaderEnter:zr.func,onColumnHeaderLeave:zr.func,onColumnHeaderOut:zr.func,onColumnHeaderOver:zr.func,onColumnOrderChange:zr.func,onColumnResize:zr.func,onColumnVisibilityModelChange:zr.func,onColumnWidthChange:zr.func,onDensityChange:zr.func,onFilterModelChange:zr.func,onMenuClose:zr.func,onMenuOpen:zr.func,onPaginationMetaChange:zr.func,onPaginationModelChange:zr.func,onPreferencePanelClose:zr.func,onPreferencePanelOpen:zr.func,onProcessRowUpdateError:zr.func,onResize:zr.func,onRowClick:zr.func,onRowCountChange:zr.func,onRowDoubleClick:zr.func,onRowEditStart:zr.func,onRowEditStop:zr.func,onRowModesModelChange:zr.func,onRowSelectionModelChange:zr.func,onSortModelChange:zr.func,onStateChange:zr.func,pageSizeOptions:zr.arrayOf(zr.oneOfType([zr.number,zr.shape({label:zr.string.isRequired,value:zr.number.isRequired})]).isRequired),pagination:zr.oneOf([!0]),paginationMeta:zr.shape({hasNextPage:zr.bool}),paginationMode:zr.oneOf(["client","server"]),paginationModel:zr.shape({page:zr.number.isRequired,pageSize:zr.number.isRequired}),processRowUpdate:zr.func,resizeThrottleMs:zr.number,rowBufferPx:zr.number,rowCount:zr.number,rowHeight:zr.number,rowModesModel:zr.object,rowPositionsDebounceMs:zr.number,rows:zr.arrayOf(zr.object),rowSelection:zr.bool,rowSelectionModel:zr.oneOfType([zr.arrayOf(zr.oneOfType([zr.number,zr.string]).isRequired),zr.number,zr.string]),rowSpacingType:zr.oneOf(["border","margin"]),scrollbarSize:zr.number,showCellVerticalBorder:zr.bool,showColumnVerticalBorder:zr.bool,slotProps:zr.object,slots:zr.object,sortingMode:zr.oneOf(["client","server"]),sortingOrder:zr.arrayOf(zr.oneOf(["asc","desc"])),sortModel:zr.arrayOf(zr.shape({field:zr.string.isRequired,sort:zr.oneOf(["asc","desc"])})),sx:zr.oneOfType([zr.arrayOf(zr.oneOfType([zr.func,zr.object,zr.bool])),zr.func,zr.object])};const gwe=()=>{const{state:e,dispatch:r}=W5();return Oe.useEffect(()=>(r(m2(!0)),()=>{r(m2(!1))}),[]),Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:Vu.pages.compare.title,description:Vu.pages.compare.description,actions:Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"..",children:Ce.jsxs($i,{variant:"contained",startIcon:Ce.jsx(Y5,{}),children:["Back to ",Vu.properties.itemNamePlural]})})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../new",children:Ce.jsxs($i,{variant:"contained",children:["New ",Vu.properties.itemName]})})})]}),sx:{padding:3,backgroundColor:"white"}}),Ce.jsx(Zs,{maxWidth:"xl",sx:{marginTop:3,marginBottom:3},children:Ce.jsx(Ri,{sx:{"& .MuiDataGrid-columnHeader, .MuiDataGrid-cell":{borderRight:"1px solid",borderRightColor:"neutral.main"},"& .compare-data--metric":{fontWeight:"bold"}},children:e.comparing&&Ce.jsx(tc,{rows:e.comparisonData,getRowId:y=>y.metric,columns:e.comparisonColumns,disableRowSelectionOnClick:!0,disableDensitySelector:!0,disableColumnFilter:!0})})})]})},mwe=Object.freeze(Object.defineProperty({__proto__:null,default:gwe},Symbol.toStringTag,{value:"Module"})),ywe=()=>{const{state:e,dispatch:r}=W5();return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:Vu.pages.index.title,description:Vu.pages.index.description,actions:Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsxs(Ii,{component:Ki,to:"compare",children:[e.selectedRows.length===0&&Ce.jsxs($i,{variant:"outlined",children:["Compare ",Vu.properties.itemNamePlural]}),e.selectedRows.length>0&&Ce.jsxs($i,{variant:e.selectedRows.length>1?"contained":"outlined",children:["Compare ",Vu.properties.itemNamePlural," (",e.selectedRows.length,")"]})]})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"new",children:Ce.jsxs($i,{variant:"contained",children:["New ",Vu.properties.itemName]})})})]}),sx:{padding:3,backgroundColor:"white"}}),Ce.jsx(Zs,{maxWidth:"xl",sx:{marginTop:3,marginBottom:3},children:Ce.jsx(Ri,{children:Ce.jsx(tc,{rows:e.data,getRowId:y=>y[e.dataIdField],columns:e.columns,checkboxSelection:!0,rowSelectionModel:e.selectedRows,onRowSelectionModelChange:y=>r(Ehe(y)),disableRowSelectionOnClick:!0,disableDensitySelector:!0,disableColumnFilter:!0,slots:{toolbar:L1e},slotProps:{toolbar:{showQuickFilter:!0}},sx:{"& .MuiDataGrid-toolbarContainer":{padding:2,paddingBottom:0}}})})})]})},xwe=Object.freeze(Object.defineProperty({__proto__:null,default:ywe},Symbol.toStringTag,{value:"Module"})),RR=()=>{const{dispatch:e}=W5();return Oe.useEffect(()=>(e(m2(!0)),()=>{e(m2(!1))}),[]),Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:Vu.pages.new.title,description:Vu.pages.new.description,actions:Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"..",children:Ce.jsx($i,{variant:"contained",color:"warning",children:"Cancel"})})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"..",children:Ce.jsxs($i,{variant:"contained",children:["Save ",Vu.properties.itemName]})})})]}),sx:{padding:3,backgroundColor:"white"}}),Ce.jsx(Zs,{maxWidth:"xl",sx:{marginTop:3,marginBottom:3},children:Ce.jsx(Ri,{sx:{padding:2},children:"Work in progress"})})]})},bwe=Object.freeze(Object.defineProperty({__proto__:null,NewScenario:RR,default:RR},Symbol.toStringTag,{value:"Module"}));var AM=(e=>(e.RUN_CHECKS="RUN_CHECKS",e.FINISH_CHECKS="FINISH_CHECKS",e))(AM||{});const wwe=()=>({type:"RUN_CHECKS"}),Twe=()=>({type:"FINISH_CHECKS"}),H_=Vo.createContext(void 0),Swe={runningChecks:!1,checksComplete:!1};function Cwe(e,r){switch(r.type){case AM.RUN_CHECKS:return{...e,runningChecks:!0};case AM.FINISH_CHECKS:return{...e,runningChecks:!1,checksComplete:!0};default:throw new Error(`Unhandled action type: ${r.type}`)}}const Mwe=e=>{const[r,y]=Vo.useReducer(Cwe,Swe),F={state:r,dispatch:y};return Ce.jsx(H_.Provider,{value:F,children:e.children})},V_=()=>{const e=Oe.useContext(H_);if(e===void 0)throw new Error("useContributeData must be used within an ContributeDataProvider");return e},Awe=()=>Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(Mwe,{children:Ce.jsx(Kp,{})})})]}),Ewe=Object.freeze(Object.defineProperty({__proto__:null,default:Awe},Symbol.toStringTag,{value:"Module"})),jp=({rows:e,labelWidth:r=150,...y})=>Ce.jsx(dO,{size:"small","aria-label":"label value table",...y,children:Ce.jsx(hO,{children:e==null?void 0:e.map((F,j)=>Ce.jsxs(oM,{sx:{border:0},children:[Ce.jsx(Xh,{width:r,component:"th",scope:"row",sx:{border:0,color:"neutral.dark",pl:0},children:F.label}),Ce.jsx(Xh,{align:"left",sx:{border:0,pl:0},children:F.value})]},`${F.label}-${j}`))})}),Np={data:{datasets:{source:"default/contribute-data/contributor_datasets.json",idField:"id"}},pages:{index:{title:"Register as a data contributor"},portal:{title:"Your Dataset Uploads",tableColumns:[{field:"title",headerName:"Dataset Title",width:200},{field:"category",headerName:"Category",width:200},{field:"summary",headerName:"Summary",width:200},{field:"doi",headerName:"DOI",width:200},{field:"publication_date",headerName:"Created Date",width:200},{field:"status",headerName:"Status",width:200}]},new:{title:"Upload a new dataset",description:"Description of this app section"},review:{title:"Review your new dataset"}}},Pwe=()=>Ce.jsx(Zs,{maxWidth:"md",sx:{mt:4},children:Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsxs(La,{spacing:4,children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.index.title}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Description"}),Ce.jsxs(La,{children:[Ce.jsx(ea,{children:"Explain data contribution process in brief, with links to proper documentation of steps, requirements and guidelines if any. Link to documentation"}),Ce.jsx(ea,{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"})]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Summary of Steps"}),Ce.jsx(jp,{rows:[{label:"Step 1",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "},{label:"Step 2",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "},{label:"Step 3",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:2,children:"Registration Form"}),Ce.jsxs(La,{children:[Ce.jsx(Zo,{id:"email",label:"Email",variant:"outlined",fullWidth:!0}),Ce.jsx(Zo,{id:"first-name",label:"First Name",variant:"outlined",fullWidth:!0}),Ce.jsx(Zo,{id:"last-name",label:"Last Name",variant:"outlined",fullWidth:!0}),Ce.jsx(Zo,{id:"organization",label:"Organization",variant:"outlined",fullWidth:!0}),Ce.jsx(Zo,{id:"project-title",label:"Project Title",variant:"outlined",fullWidth:!0}),Ce.jsx(Zo,{id:"project-brief",label:"Project Brief",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4})]})]}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"portal",children:Ce.jsx($i,{variant:"contained",children:"Submit Registration"})})})]})})}),Lwe=Object.freeze(Object.defineProperty({__proto__:null,default:Pwe},Symbol.toStringTag,{value:"Module"}));var b6={},Iwe=_l;Object.defineProperty(b6,"__esModule",{value:!0});var oS=b6.default=void 0,Rwe=Iwe(Su()),kwe=Ce;oS=b6.default=(0,Rwe.default)((0,kwe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var w6={},Dwe=_l;Object.defineProperty(w6,"__esModule",{value:!0});var sS=w6.default=void 0,Owe=Dwe(Su()),Fwe=Ce;sS=w6.default=(0,Owe.default)((0,Fwe.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const _we=()=>Ce.jsxs(Ri,{sx:{height:"100%"},children:[Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",justifyContent:"space-between",sx:{padding:2},children:[Ce.jsx(ea,{fontWeight:"bold",component:"h2",children:"Dataset Files"}),Ce.jsx($i,{variant:"contained",children:"Add Files"})]}),Ce.jsx(tc,{rows:j_,getRowId:e=>e.id,columns:zwe,disableColumnSelector:!0,disableRowSelectionOnClick:!0,sx:{height:"auto"}})]}),j_=[{id:0,filename:"xx",type:"csv",size:"213 MB",status:"Uploading"},{id:1,filename:"xy",type:"csv",size:"213 MB",status:"Uploading"},{id:2,filename:"xs",type:"csv",size:"213 MB",status:"Uploading"},{id:3,filename:"xe",type:"tsv",size:"2 GB",status:"Uploaded"},{id:4,filename:"xz",type:"txt",size:"15 MB",status:"Uploaded"}],zwe=[{field:"filename",headerName:"File Name",width:150},{field:"type",headerName:"Type",width:100},{field:"size",headerName:"Size",width:100},{field:"status",headerName:"Status",width:100},{field:"actions",headerName:"Actions",type:"actions",getActions:e=>[Ce.jsx(ev,{icon:Ce.jsx(sS,{}),label:"Edit"}),Ce.jsx(ev,{icon:Ce.jsx(oS,{}),label:"Delete"})],flex:1}],Bwe=()=>{const[e,r]=Oe.useState(),[y,F]=Oe.useState(null),[j,Y]=Oe.useState(null),D=O=>{r(O.target.value)};return Ce.jsxs(Ri,{children:[Ce.jsx(oa,{sx:{padding:2,borderBottom:"1px solid",borderBottomColor:"neutral.main"},children:Ce.jsx(ea,{fontWeight:"bold",component:"h2",children:"Metadata"})}),Ce.jsxs(La,{direction:"row",spacing:0,children:[Ce.jsx(oa,{component:"aside",sx:{borderRight:"1px solid",borderRightColor:"neutral.main",width:"150px"},children:Ce.jsxs(S5,{children:[Ce.jsx(q1,{children:"Overview"}),Ce.jsx(q1,{children:"Dates"}),Ce.jsx(q1,{children:"Locations"}),Ce.jsx(q1,{children:"Methods"})]})}),Ce.jsx(oa,{sx:{padding:2},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{spacing:3,sx:{borderBottom:"1px solid",borderBottomColor:"neutral.main",paddingBottom:2},children:[Ce.jsx(ea,{color:"neutral.dark",fontWeight:"bold",children:"Overview"}),Ce.jsx(Zo,{label:"Dataset Title",variant:"outlined",helperText:"A brief, meaningful title for dataset including topic, dates and location. Ex: Sapflow and Soil Moisture Raw sensor data. Jan 2023-Apr 2023. San Diego, CA.",fullWidth:!0}),Ce.jsx(Zo,{label:"DOI",variant:"outlined",helperText:"Digital object identifier for the dataset",fullWidth:!0}),Ce.jsxs(nh,{children:[Ce.jsx(Ey,{id:"demo-simple-select-helper-label",children:"Category"}),Ce.jsxs(ah,{labelId:"demo-simple-select-helper-label",id:"demo-simple-select-helper",value:e,label:"Category",onChange:D,children:[Ce.jsx(uo,{value:"Fires",children:"Fires"}),Ce.jsx(uo,{value:"Floods",children:"Floods"}),Ce.jsx(uo,{value:"Groundwater",children:"Groundwater"})]}),Ce.jsx(b5,{children:"Select the category most closely associeted with your dataset."})]}),Ce.jsx(Zo,{label:"Dataset Summary",variant:"outlined",helperText:"Briefly describe the dataset.",fullWidth:!0,multiline:!0,minRows:4})]}),Ce.jsxs(La,{spacing:3,sx:{borderBottom:"1px solid",borderBottomColor:"neutral.main",paddingBottom:2},children:[Ce.jsx(ea,{color:"neutral.dark",fontWeight:"bold",children:"Dates"}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(p2,{value:y,label:"Start Date",slotProps:{actionBar:{actions:["clear","today"]}},onChange:O=>F(O)}),Ce.jsx(p2,{value:j,label:"End Date",slotProps:{actionBar:{actions:["clear","today"]}},onChange:O=>Y(O)})]})]}),Ce.jsxs(La,{spacing:3,children:[Ce.jsx(ea,{color:"neutral.dark",fontWeight:"bold",children:"Contacts"}),Ce.jsx(Zo,{label:"Point of Contact",variant:"outlined",helperText:"Primary contact person for the dataset",fullWidth:!0}),Ce.jsx(Zo,{label:"Originator",variant:"outlined",helperText:"Primary originators for the dataset",fullWidth:!0}),Ce.jsx(Zo,{label:"Metadata Contact",variant:"outlined",helperText:"Contact person about metadata",fullWidth:!0}),Ce.jsx(Zo,{label:"Publisher",variant:"outlined",helperText:"Organization responsible for publishing for the dataset",fullWidth:!0})]})]})})]})]})},Nwe=()=>Ce.jsx(Zs,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",justifyContent:"space-between",children:[Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.new.title}),Ce.jsx(ea,{children:Np.pages.new.description})]}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../portal",children:Ce.jsx($i,{variant:"contained",color:"warning",children:"Cancel"})})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../review",children:Ce.jsx($i,{variant:"contained",sx:{whiteSpace:"nowrap"},children:"Save Dataset"})})})]})]}),Ce.jsx(oa,{children:Ce.jsxs(ji,{container:!0,spacing:2,children:[Ce.jsx(ji,{item:!0,lg:7,md:12,children:Ce.jsx(Bwe,{})}),Ce.jsx(ji,{item:!0,lg:5,md:12,children:Ce.jsx(_we,{})})]})})]})}),Uwe=Object.freeze(Object.defineProperty({__proto__:null,default:Nwe},Symbol.toStringTag,{value:"Module"})),Hwe=()=>{const e=uh(Np.data.datasets.source);return Ce.jsx(Zs,{maxWidth:"xl",sx:{mt:4},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.portal.title}),Ce.jsx(Ii,{component:Ki,to:"../new",children:Ce.jsx($i,{variant:"contained",children:"New Dataset"})})]}),Ce.jsx(Ri,{children:Ce.jsx(tc,{rows:e||[],getRowId:r=>r[Np.data.datasets.idField],columns:Vwe,disableColumnSelector:!0,disableRowSelectionOnClick:!0})})]})})},Vwe=[...Np.pages.portal.tableColumns,{field:"actions",headerName:"Actions",type:"actions",getActions:e=>[Ce.jsx(ev,{icon:Ce.jsx(sS,{}),label:"Edit"}),Ce.jsx(ev,{icon:Ce.jsx(oS,{}),label:"Delete"})],flex:1}],jwe=Object.freeze(Object.defineProperty({__proto__:null,default:Hwe},Symbol.toStringTag,{value:"Module"}));var T6={},Gwe=_l;Object.defineProperty(T6,"__esModule",{value:!0});var Yb=T6.default=void 0,Wwe=Gwe(Su()),$we=Ce;Yb=T6.default=(0,Wwe.default)((0,$we.jsx)("path",{d:"M19 6.41 17.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");const Ywe=()=>Ce.jsx(Ri,{sx:{height:"100%",padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{component:"h2",variant:"h6",children:"My Dataset"}),Ce.jsx(ea,{children:"Laboris incididunt ullamco dolore ex. Non ad aute cillum excepteur. Quis exercitation duis quis ad. Laborum eiusmod incididunt magna dolor eiusmod cupidatat non veniam sit consequat anim esse. Dolore fugiat incididunt et qui dolore dolor. Ut aute dolore magna ea commodo ullamco velit in aliquip sunt id ea."}),Ce.jsx(jp,{rows:[{label:"DOI",value:"http://dx.doi.org/10.123432/NGT/XXXXXXX"},{label:"Start Date",value:"1 January 2023"},{label:"End Date",value:"1 November 2023"},{label:"Category",value:"Groundwater"}]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{component:"h3",fontWeight:"bold",children:"Dataset Files"}),Ce.jsx(tc,{rows:j_,getRowId:e=>e.id,columns:Xwe,disableColumnSelector:!0,disableRowSelectionOnClick:!0})]})]})}),Xwe=[{field:"filename",headerName:"File Name",width:150},{field:"type",headerName:"Type",width:100},{field:"size",headerName:"Size",width:100},{field:"status",headerName:"Status",flex:1}],W1=e=>Ce.jsx(Fb,{variant:"determinate",sx:{height:10,borderRadius:5,[`&.${gL.colorPrimary}`]:{backgroundColor:"neutral.dark"},[`& .${gL.bar}`]:{borderRadius:5,backgroundColor:"success.light"}},...e}),Zwe=()=>{const{state:e}=V_();return Ce.jsx(Ri,{sx:{height:"100%",padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{component:"h2",variant:"h6",children:"Validation Checks"}),Ce.jsx(ea,{children:"Running the dataset metadata and datafile against our standard set of metadata, data and congruency checks helps to validate the data and find potential issues with format or compatibility."}),Ce.jsx(ea,{children:"These checks help to improve discoverability and reusability of your research data, and also fastens the process of verifying the data for the public release."}),Ce.jsx(ea,{children:"We run checks to gauge the following aspects of uploaded dataset."}),e.runningChecks&&Ce.jsx(oa,{children:Ce.jsxs(La,{sx:{marginBottom:2,marginTop:2},children:[Ce.jsx(Fb,{}),Ce.jsx(ea,{variant:"body2",children:"Running validation checks"})]})}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{children:Ce.jsxs(La,{sx:{marginBottom:2,marginTop:2},children:[Ce.jsx(W1,{value:90}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(ea,{variant:"body2",color:"success.main",children:"Passed: 22 checks"}),Ce.jsx(ea,{variant:"body2",color:"neutral.dark",children:"Warning: 2 checks"})]})]})}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Findability"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx(W1,{value:100})})]}),Ce.jsx(ea,{children:"Occaecat commodo velit aliqua consectetur id tempor amet aliqua."}),e.runningChecks&&Ce.jsx(oa,{children:"Test"})]}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Accessibility"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx(W1,{value:100})})]}),Ce.jsx(ea,{children:"Et labore aliqua proident velit exercitation ullamco ad deserunt velit commodo aliquip esse consectetur."})]}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Interoperability"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx(W1,{value:90})})]}),Ce.jsx(ea,{children:"Ex deserunt Lorem enim adipisicing dolor esse voluptate exercitation."})]}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Reusability"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx(W1,{value:90})})]}),Ce.jsx(ea,{children:"Nulla sint amet ullamco laborum cillum cupidatat irure excepteur mollit ut amet."})]})]})})},Kwe=()=>{const[e,r]=Oe.useState(!0),{state:y,dispatch:F}=V_(),j=()=>{F(wwe()),setTimeout(()=>{F(Twe())},5e3)};return Ce.jsxs(oa,{children:[Ce.jsx(uX,{in:e,children:Ce.jsx(b9,{severity:"success",action:Ce.jsx(fl,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{r(!1)},children:Ce.jsx(Yb,{fontSize:"inherit"})}),sx:{paddingLeft:3,paddingRight:3},children:"Your dataset edits have been saved."})}),Ce.jsx(Zs,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",justifyContent:"space-between",children:[Ce.jsx(La,{children:Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.review.title})}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../new",children:Ce.jsx($i,{variant:"contained",sx:{whiteSpace:"nowrap"},children:"Edit Dataset"})})}),Ce.jsx(oa,{children:Ce.jsx($i,{variant:"contained",onClick:()=>j(),sx:{whiteSpace:"nowrap"},children:"Run Checks"})}),y.checksComplete&&Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../portal",children:Ce.jsx($i,{variant:"contained",sx:{whiteSpace:"nowrap"},children:"Publish Dataset"})})})]})]}),Ce.jsx(oa,{children:Ce.jsxs(ji,{container:!0,spacing:2,children:[Ce.jsx(ji,{item:!0,md:8,sm:12,children:Ce.jsx(Ywe,{})}),Ce.jsx(ji,{item:!0,md:4,sm:12,children:Ce.jsx(Zwe,{})})]})})]})})]})},Jwe=Object.freeze(Object.defineProperty({__proto__:null,default:Kwe},Symbol.toStringTag,{value:"Module"})),ju={data:{list:{source:"data/default/explore-data/exoplanets.csv",staticParams:null,idField:"Id",queryMode:"client"},detail:{source:"data/default/explore-data/exoplanets.csv",staticParams:null,idField:"Id",queryMode:"client"}},pages:{index:{title:"Explore Data App",description:"Description of this app section",tableColumns:[{field:"Planet Name",headerName:"Planet Name",width:200},{field:"Planet Host",headerName:"Planet Host",width:200},{field:"Discovery Method",headerName:"Discovery Method",width:200},{field:"Orbital Period Days",headerName:"Orbital Period",units:"days",type:"number",width:200},{field:"Mass",headerName:"Mass",units:"Earth Mass",type:"number",width:200},{field:"Eccentricity",headerName:"Eccentricity",type:"number",width:200}],tableFilters:[{field:"Discovery Method",label:"Discovery Method",operator:"contains-one-of",filterComponent:"CheckboxList",filterProps:{options:[{label:"Astrometry",value:"Astrometry"},{label:"Disk Kinematics",value:"Disk Kinematics"},{label:"Eclipse Timing Variations",value:"Eclipse Timing Variations"},{label:"Imaging",value:"Imaging"},{label:"Microlensing",value:"Microlensing"},{label:"Radial Velocity",value:"Radial Velocity"},{label:"Transit",value:"Transit"}]}},{field:"Mass",label:"Mass",operator:"between-inclusive",filterComponent:"RangeSlider",filterProps:{min:0,max:1e4}}]}}};var Xb=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ry=typeof window>"u"||"Deno"in globalThis;function cf(){}function Qwe(e,r){return typeof e=="function"?e(r):e}function EM(e){return typeof e=="number"&&e>=0&&e!==1/0}function G_(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Jm(e,r){return typeof e=="function"?e(r):e}function hd(e,r){return typeof e=="function"?e(r):e}function kR(e,r){const{type:y="all",exact:F,fetchStatus:j,predicate:Y,queryKey:D,stale:O}=e;if(D){if(F){if(r.queryHash!==S6(D,r.options))return!1}else if(!sb(r.queryKey,D))return!1}if(y!=="all"){const t=r.isActive();if(y==="active"&&!t||y==="inactive"&&t)return!1}return!(typeof O=="boolean"&&r.isStale()!==O||j&&j!==r.state.fetchStatus||Y&&!Y(r))}function DR(e,r){const{exact:y,status:F,predicate:j,mutationKey:Y}=e;if(Y){if(!r.options.mutationKey)return!1;if(y){if(ob(r.options.mutationKey)!==ob(Y))return!1}else if(!sb(r.options.mutationKey,Y))return!1}return!(F&&r.state.status!==F||j&&!j(r))}function S6(e,r){return((r==null?void 0:r.queryKeyHashFn)||ob)(e)}function ob(e){return JSON.stringify(e,(r,y)=>LM(y)?Object.keys(y).sort().reduce((F,j)=>(F[j]=y[j],F),{}):y)}function sb(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?!Object.keys(r).some(y=>!sb(e[y],r[y])):!1}function W_(e,r){if(e===r)return e;const y=OR(e)&&OR(r);if(y||LM(e)&&LM(r)){const F=y?e:Object.keys(e),j=F.length,Y=y?r:Object.keys(r),D=Y.length,O=y?[]:{};let t=0;for(let l=0;l{setTimeout(r,e)})}function IM(e,r,y){return typeof y.structuralSharing=="function"?y.structuralSharing(e,r):y.structuralSharing!==!1?W_(e,r):r}function e3e(e){return e}function t3e(e,r,y=0){const F=[...e,r];return y&&F.length>y?F.slice(1):F}function r3e(e,r,y=0){const F=[r,...e];return y&&F.length>y?F.slice(0,-1):F}var $_=Symbol();function Y_(e,r){return!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===$_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var G0,gp,qm,VR,n3e=(VR=class extends Xb{constructor(){super();di(this,G0,void 0);di(this,gp,void 0);di(this,qm,void 0);oi(this,qm,r=>{if(!Ry&&window.addEventListener){const y=()=>r();return window.addEventListener("visibilitychange",y,!1),()=>{window.removeEventListener("visibilitychange",y)}}})}onSubscribe(){En(this,gp)||this.setEventListener(En(this,qm))}onUnsubscribe(){var r;this.hasListeners()||((r=En(this,gp))==null||r.call(this),oi(this,gp,void 0))}setEventListener(r){var y;oi(this,qm,r),(y=En(this,gp))==null||y.call(this),oi(this,gp,r(F=>{typeof F=="boolean"?this.setFocused(F):this.onFocus()}))}setFocused(r){En(this,G0)!==r&&(oi(this,G0,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(y=>{y(r)})}isFocused(){var r;return typeof En(this,G0)=="boolean"?En(this,G0):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},G0=new WeakMap,gp=new WeakMap,qm=new WeakMap,VR),C6=new n3e,ey,mp,ty,jR,a3e=(jR=class extends Xb{constructor(){super();di(this,ey,!0);di(this,mp,void 0);di(this,ty,void 0);oi(this,ty,r=>{if(!Ry&&window.addEventListener){const y=()=>r(!0),F=()=>r(!1);return window.addEventListener("online",y,!1),window.addEventListener("offline",F,!1),()=>{window.removeEventListener("online",y),window.removeEventListener("offline",F)}}})}onSubscribe(){En(this,mp)||this.setEventListener(En(this,ty))}onUnsubscribe(){var r;this.hasListeners()||((r=En(this,mp))==null||r.call(this),oi(this,mp,void 0))}setEventListener(r){var y;oi(this,ty,r),(y=En(this,mp))==null||y.call(this),oi(this,mp,r(this.setOnline.bind(this)))}setOnline(r){En(this,ey)!==r&&(oi(this,ey,r),this.listeners.forEach(F=>{F(r)}))}isOnline(){return En(this,ey)}},ey=new WeakMap,mp=new WeakMap,ty=new WeakMap,jR),E2=new a3e;function i3e(e){return Math.min(1e3*2**e,3e4)}function X_(e){return(e??"online")==="online"?E2.isOnline():!0}var Z_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $C(e){return e instanceof Z_}function K_(e){let r=!1,y=0,F=!1,j,Y,D;const O=new Promise((n,s)=>{Y=n,D=s}),t=n=>{var s;F||(v(new Z_(n)),(s=e.abort)==null||s.call(e))},l=()=>{r=!0},S=()=>{r=!1},i=()=>C6.isFocused()&&(e.networkMode==="always"||E2.isOnline())&&e.canRun(),C=()=>X_(e.networkMode)&&e.canRun(),w=n=>{var s;F||(F=!0,(s=e.onSuccess)==null||s.call(e,n),j==null||j(),Y(n))},v=n=>{var s;F||(F=!0,(s=e.onError)==null||s.call(e,n),j==null||j(),D(n))},m=()=>new Promise(n=>{var s;j=o=>{(F||i())&&n(o)},(s=e.onPause)==null||s.call(e)}).then(()=>{var n;j=void 0,F||(n=e.onContinue)==null||n.call(e)}),a=()=>{if(F)return;let n;const s=y===0?e.initialPromise:void 0;try{n=s??e.fn()}catch(o){n=Promise.reject(o)}Promise.resolve(n).then(w).catch(o=>{var p;if(F)return;const h=e.retry??(Ry?0:3),f=e.retryDelay??i3e,u=typeof f=="function"?f(y,o):f,b=h===!0||typeof h=="number"&&yi()?void 0:m()).then(()=>{r?v(o):a()})})};return{promise:O,cancel:t,continue:()=>(j==null||j(),O),cancelRetry:l,continueRetry:S,canStart:C,start:()=>(C()?a():m().then(a),O)}}function o3e(){let e=[],r=0,y=C=>{C()},F=C=>{C()},j=C=>setTimeout(C,0);const Y=C=>{j=C},D=C=>{let w;r++;try{w=C()}finally{r--,r||l()}return w},O=C=>{r?e.push(C):j(()=>{y(C)})},t=C=>(...w)=>{O(()=>{C(...w)})},l=()=>{const C=e;e=[],C.length&&j(()=>{F(()=>{C.forEach(w=>{y(w)})})})};return{batch:D,batchCalls:t,schedule:O,setNotifyFunction:C=>{y=C},setBatchNotifyFunction:C=>{F=C},setScheduler:Y}}var Rl=o3e(),W0,GR,J_=(GR=class{constructor(){di(this,W0,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EM(this.gcTime)&&oi(this,W0,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ry?1/0:5*60*1e3))}clearGcTimeout(){En(this,W0)&&(clearTimeout(En(this,W0)),oi(this,W0,void 0))}},W0=new WeakMap,GR),ry,ny,nf,Jl,lb,$0,ud,Vh,WR,s3e=(WR=class extends J_{constructor(r){super();di(this,ud);di(this,ry,void 0);di(this,ny,void 0);di(this,nf,void 0);di(this,Jl,void 0);di(this,lb,void 0);di(this,$0,void 0);oi(this,$0,!1),oi(this,lb,r.defaultOptions),this.setOptions(r.options),this.observers=[],oi(this,nf,r.cache),this.queryKey=r.queryKey,this.queryHash=r.queryHash,oi(this,ry,l3e(this.options)),this.state=r.state??En(this,ry),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=En(this,Jl))==null?void 0:r.promise}setOptions(r){this.options={...En(this,lb),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&En(this,nf).remove(this)}setData(r,y){const F=IM(this.state.data,r,this.options);return to(this,ud,Vh).call(this,{data:F,type:"success",dataUpdatedAt:y==null?void 0:y.updatedAt,manual:y==null?void 0:y.manual}),F}setState(r,y){to(this,ud,Vh).call(this,{type:"setState",state:r,setStateOptions:y})}cancel(r){var F,j;const y=(F=En(this,Jl))==null?void 0:F.promise;return(j=En(this,Jl))==null||j.cancel(r),y?y.then(cf).catch(cf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(En(this,ry))}isActive(){return this.observers.some(r=>hd(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!G_(this.state.dataUpdatedAt,r)}onFocus(){var y;const r=this.observers.find(F=>F.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(y=En(this,Jl))==null||y.continue()}onOnline(){var y;const r=this.observers.find(F=>F.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(y=En(this,Jl))==null||y.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),En(this,nf).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(y=>y!==r),this.observers.length||(En(this,Jl)&&(En(this,$0)?En(this,Jl).cancel({revert:!0}):En(this,Jl).cancelRetry()),this.scheduleGc()),En(this,nf).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||to(this,ud,Vh).call(this,{type:"invalidate"})}fetch(r,y){var t,l,S;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(y!=null&&y.cancelRefetch))this.cancel({silent:!0});else if(En(this,Jl))return En(this,Jl).continueRetry(),En(this,Jl).promise}if(r&&this.setOptions(r),!this.options.queryFn){const i=this.observers.find(C=>C.options.queryFn);i&&this.setOptions(i.options)}const F=new AbortController,j=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(oi(this,$0,!0),F.signal)})},Y=()=>{const i=Y_(this.options,y),C={queryKey:this.queryKey,meta:this.meta};return j(C),oi(this,$0,!1),this.options.persister?this.options.persister(i,C,this):i(C)},D={fetchOptions:y,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:Y};j(D),(t=this.options.behavior)==null||t.onFetch(D,this),oi(this,ny,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=D.fetchOptions)==null?void 0:l.meta))&&to(this,ud,Vh).call(this,{type:"fetch",meta:(S=D.fetchOptions)==null?void 0:S.meta});const O=i=>{var C,w,v,m;$C(i)&&i.silent||to(this,ud,Vh).call(this,{type:"error",error:i}),$C(i)||((w=(C=En(this,nf).config).onError)==null||w.call(C,i,this),(m=(v=En(this,nf).config).onSettled)==null||m.call(v,this.state.data,i,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return oi(this,Jl,K_({initialPromise:y==null?void 0:y.initialPromise,fn:D.fetchFn,abort:F.abort.bind(F),onSuccess:i=>{var C,w,v,m;if(i===void 0){O(new Error(`${this.queryHash} data is undefined`));return}this.setData(i),(w=(C=En(this,nf).config).onSuccess)==null||w.call(C,i,this),(m=(v=En(this,nf).config).onSettled)==null||m.call(v,i,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:O,onFail:(i,C)=>{to(this,ud,Vh).call(this,{type:"failed",failureCount:i,error:C})},onPause:()=>{to(this,ud,Vh).call(this,{type:"pause"})},onContinue:()=>{to(this,ud,Vh).call(this,{type:"continue"})},retry:D.options.retry,retryDelay:D.options.retryDelay,networkMode:D.options.networkMode,canRun:()=>!0})),En(this,Jl).start()}},ry=new WeakMap,ny=new WeakMap,nf=new WeakMap,Jl=new WeakMap,lb=new WeakMap,$0=new WeakMap,ud=new WeakSet,Vh=function(r){const y=F=>{switch(r.type){case"failed":return{...F,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...F,fetchStatus:"paused"};case"continue":return{...F,fetchStatus:"fetching"};case"fetch":return{...F,...Q_(F.data,this.options),fetchMeta:r.meta??null};case"success":return{...F,data:r.data,dataUpdateCount:F.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const j=r.error;return $C(j)&&j.revert&&En(this,ny)?{...En(this,ny),fetchStatus:"idle"}:{...F,error:j,errorUpdateCount:F.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:F.fetchFailureCount+1,fetchFailureReason:j,fetchStatus:"idle",status:"error"};case"invalidate":return{...F,isInvalidated:!0};case"setState":return{...F,...r.state}}};this.state=y(this.state),Rl.batch(()=>{this.observers.forEach(F=>{F.onQueryUpdate()}),En(this,nf).notify({query:this,type:"updated",action:r})})},WR);function Q_(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:X_(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function l3e(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,y=r!==void 0,F=y?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:y?F??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:y?"success":"pending",fetchStatus:"idle"}}var Xd,$R,u3e=($R=class extends Xb{constructor(r={}){super();di(this,Xd,void 0);this.config=r,oi(this,Xd,new Map)}build(r,y,F){const j=y.queryKey,Y=y.queryHash??S6(j,y);let D=this.get(Y);return D||(D=new s3e({cache:this,queryKey:j,queryHash:Y,options:r.defaultQueryOptions(y),state:F,defaultOptions:r.getQueryDefaults(j)}),this.add(D)),D}add(r){En(this,Xd).has(r.queryHash)||(En(this,Xd).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const y=En(this,Xd).get(r.queryHash);y&&(r.destroy(),y===r&&En(this,Xd).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Rl.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return En(this,Xd).get(r)}getAll(){return[...En(this,Xd).values()]}find(r){const y={exact:!0,...r};return this.getAll().find(F=>kR(y,F))}findAll(r={}){const y=this.getAll();return Object.keys(r).length>0?y.filter(F=>kR(r,F)):y}notify(r){Rl.batch(()=>{this.listeners.forEach(y=>{y(r)})})}onFocus(){Rl.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Rl.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Xd=new WeakMap,$R),Zd,hu,Y0,Kd,lp,YR,c3e=(YR=class extends J_{constructor(r){super();di(this,Kd);di(this,Zd,void 0);di(this,hu,void 0);di(this,Y0,void 0);this.mutationId=r.mutationId,oi(this,hu,r.mutationCache),oi(this,Zd,[]),this.state=r.state||f3e(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){En(this,Zd).includes(r)||(En(this,Zd).push(r),this.clearGcTimeout(),En(this,hu).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){oi(this,Zd,En(this,Zd).filter(y=>y!==r)),this.scheduleGc(),En(this,hu).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){En(this,Zd).length||(this.state.status==="pending"?this.scheduleGc():En(this,hu).remove(this))}continue(){var r;return((r=En(this,Y0))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h,f,u,b;oi(this,Y0,K_({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(p,E)=>{to(this,Kd,lp).call(this,{type:"failed",failureCount:p,error:E})},onPause:()=>{to(this,Kd,lp).call(this,{type:"pause"})},onContinue:()=>{to(this,Kd,lp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>En(this,hu).canRun(this)}));const y=this.state.status==="pending",F=!En(this,Y0).canStart();try{if(!y){to(this,Kd,lp).call(this,{type:"pending",variables:r,isPaused:F}),await((Y=(j=En(this,hu).config).onMutate)==null?void 0:Y.call(j,r,this));const E=await((O=(D=this.options).onMutate)==null?void 0:O.call(D,r));E!==this.state.context&&to(this,Kd,lp).call(this,{type:"pending",context:E,variables:r,isPaused:F})}const p=await En(this,Y0).start();return await((l=(t=En(this,hu).config).onSuccess)==null?void 0:l.call(t,p,r,this.state.context,this)),await((i=(S=this.options).onSuccess)==null?void 0:i.call(S,p,r,this.state.context)),await((w=(C=En(this,hu).config).onSettled)==null?void 0:w.call(C,p,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,p,null,r,this.state.context)),to(this,Kd,lp).call(this,{type:"success",data:p}),p}catch(p){try{throw await((n=(a=En(this,hu).config).onError)==null?void 0:n.call(a,p,r,this.state.context,this)),await((o=(s=this.options).onError)==null?void 0:o.call(s,p,r,this.state.context)),await((f=(h=En(this,hu).config).onSettled)==null?void 0:f.call(h,void 0,p,this.state.variables,this.state.context,this)),await((b=(u=this.options).onSettled)==null?void 0:b.call(u,void 0,p,r,this.state.context)),p}finally{to(this,Kd,lp).call(this,{type:"error",error:p})}}finally{En(this,hu).runNext(this)}}},Zd=new WeakMap,hu=new WeakMap,Y0=new WeakMap,Kd=new WeakSet,lp=function(r){const y=F=>{switch(r.type){case"failed":return{...F,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...F,isPaused:!0};case"continue":return{...F,isPaused:!1};case"pending":return{...F,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...F,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...F,data:void 0,error:r.error,failureCount:F.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=y(this.state),Rl.batch(()=>{En(this,Zd).forEach(F=>{F.onMutationUpdate(r)}),En(this,hu).notify({mutation:this,type:"updated",action:r})})},YR);function f3e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pc,ub,XR,d3e=(XR=class extends Xb{constructor(r={}){super();di(this,pc,void 0);di(this,ub,void 0);this.config=r,oi(this,pc,new Map),oi(this,ub,Date.now())}build(r,y,F){const j=new c3e({mutationCache:this,mutationId:++Cw(this,ub)._,options:r.defaultMutationOptions(y),state:F});return this.add(j),j}add(r){const y=s3(r),F=En(this,pc).get(y)??[];F.push(r),En(this,pc).set(y,F),this.notify({type:"added",mutation:r})}remove(r){var F;const y=s3(r);if(En(this,pc).has(y)){const j=(F=En(this,pc).get(y))==null?void 0:F.filter(Y=>Y!==r);j&&(j.length===0?En(this,pc).delete(y):En(this,pc).set(y,j))}this.notify({type:"removed",mutation:r})}canRun(r){var F;const y=(F=En(this,pc).get(s3(r)))==null?void 0:F.find(j=>j.state.status==="pending");return!y||y===r}runNext(r){var F;const y=(F=En(this,pc).get(s3(r)))==null?void 0:F.find(j=>j!==r&&j.state.isPaused);return(y==null?void 0:y.continue())??Promise.resolve()}clear(){Rl.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}getAll(){return[...En(this,pc).values()].flat()}find(r){const y={exact:!0,...r};return this.getAll().find(F=>DR(y,F))}findAll(r={}){return this.getAll().filter(y=>DR(r,y))}notify(r){Rl.batch(()=>{this.listeners.forEach(y=>{y(r)})})}resumePausedMutations(){const r=this.getAll().filter(y=>y.state.isPaused);return Rl.batch(()=>Promise.all(r.map(y=>y.continue().catch(cf))))}},pc=new WeakMap,ub=new WeakMap,XR);function s3(e){var r;return((r=e.options.scope)==null?void 0:r.id)??String(e.mutationId)}function h3e(e){return{onFetch:(r,y)=>{const F=async()=>{var v,m,a,n,s;const j=r.options,Y=(a=(m=(v=r.fetchOptions)==null?void 0:v.meta)==null?void 0:m.fetchMore)==null?void 0:a.direction,D=((n=r.state.data)==null?void 0:n.pages)||[],O=((s=r.state.data)==null?void 0:s.pageParams)||[],t={pages:[],pageParams:[]};let l=!1;const S=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(r.signal.aborted?l=!0:r.signal.addEventListener("abort",()=>{l=!0}),r.signal)})},i=Y_(r.options,r.fetchOptions),C=async(o,h,f)=>{if(l)return Promise.reject();if(h==null&&o.pages.length)return Promise.resolve(o);const u={queryKey:r.queryKey,pageParam:h,direction:f?"backward":"forward",meta:r.options.meta};S(u);const b=await i(u),{maxPages:p}=r.options,E=f?r3e:t3e;return{pages:E(o.pages,b,p),pageParams:E(o.pageParams,h,p)}};let w;if(Y&&D.length){const o=Y==="backward",h=o?v3e:_R,f={pages:D,pageParams:O},u=h(j,f);w=await C(f,u,o)}else{w=await C(t,O[0]??j.initialPageParam);const o=e??D.length;for(let h=1;h{var j,Y;return(Y=(j=r.options).persister)==null?void 0:Y.call(j,F,{queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},y)}:r.fetchFn=F}}}function _R(e,{pages:r,pageParams:y}){const F=r.length-1;return r.length>0?e.getNextPageParam(r[F],r,y[F],y):void 0}function v3e(e,{pages:r,pageParams:y}){var F;return r.length>0?(F=e.getPreviousPageParam)==null?void 0:F.call(e,r[0],r,y[0],y):void 0}var As,yp,xp,ay,iy,bp,oy,sy,ZR,p3e=(ZR=class{constructor(e={}){di(this,As,void 0);di(this,yp,void 0);di(this,xp,void 0);di(this,ay,void 0);di(this,iy,void 0);di(this,bp,void 0);di(this,oy,void 0);di(this,sy,void 0);oi(this,As,e.queryCache||new u3e),oi(this,yp,e.mutationCache||new d3e),oi(this,xp,e.defaultOptions||{}),oi(this,ay,new Map),oi(this,iy,new Map),oi(this,bp,0)}mount(){Cw(this,bp)._++,En(this,bp)===1&&(oi(this,oy,C6.subscribe(async e=>{e&&(await this.resumePausedMutations(),En(this,As).onFocus())})),oi(this,sy,E2.subscribe(async e=>{e&&(await this.resumePausedMutations(),En(this,As).onOnline())})))}unmount(){var e,r;Cw(this,bp)._--,En(this,bp)===0&&((e=En(this,oy))==null||e.call(this),oi(this,oy,void 0),(r=En(this,sy))==null||r.call(this),oi(this,sy,void 0))}isFetching(e){return En(this,As).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return En(this,yp).findAll({...e,status:"pending"}).length}getQueryData(e){var y;const r=this.defaultQueryOptions({queryKey:e});return(y=En(this,As).get(r.queryHash))==null?void 0:y.state.data}ensureQueryData(e){const r=this.getQueryData(e.queryKey);if(r===void 0)return this.fetchQuery(e);{const y=this.defaultQueryOptions(e),F=En(this,As).build(this,y);return e.revalidateIfStale&&F.isStaleByTime(Jm(y.staleTime,F))&&this.prefetchQuery(y),Promise.resolve(r)}}getQueriesData(e){return En(this,As).findAll(e).map(({queryKey:r,state:y})=>{const F=y.data;return[r,F]})}setQueryData(e,r,y){const F=this.defaultQueryOptions({queryKey:e}),j=En(this,As).get(F.queryHash),Y=j==null?void 0:j.state.data,D=Qwe(r,Y);if(D!==void 0)return En(this,As).build(this,F).setData(D,{...y,manual:!0})}setQueriesData(e,r,y){return Rl.batch(()=>En(this,As).findAll(e).map(({queryKey:F})=>[F,this.setQueryData(F,r,y)]))}getQueryState(e){var y;const r=this.defaultQueryOptions({queryKey:e});return(y=En(this,As).get(r.queryHash))==null?void 0:y.state}removeQueries(e){const r=En(this,As);Rl.batch(()=>{r.findAll(e).forEach(y=>{r.remove(y)})})}resetQueries(e,r){const y=En(this,As),F={type:"active",...e};return Rl.batch(()=>(y.findAll(e).forEach(j=>{j.reset()}),this.refetchQueries(F,r)))}cancelQueries(e={},r={}){const y={revert:!0,...r},F=Rl.batch(()=>En(this,As).findAll(e).map(j=>j.cancel(y)));return Promise.all(F).then(cf).catch(cf)}invalidateQueries(e={},r={}){return Rl.batch(()=>{if(En(this,As).findAll(e).forEach(F=>{F.invalidate()}),e.refetchType==="none")return Promise.resolve();const y={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(y,r)})}refetchQueries(e={},r){const y={...r,cancelRefetch:(r==null?void 0:r.cancelRefetch)??!0},F=Rl.batch(()=>En(this,As).findAll(e).filter(j=>!j.isDisabled()).map(j=>{let Y=j.fetch(void 0,y);return y.throwOnError||(Y=Y.catch(cf)),j.state.fetchStatus==="paused"?Promise.resolve():Y}));return Promise.all(F).then(cf)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const y=En(this,As).build(this,r);return y.isStaleByTime(Jm(r.staleTime,y))?y.fetch(r):Promise.resolve(y.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cf).catch(cf)}fetchInfiniteQuery(e){return e.behavior=h3e(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cf).catch(cf)}resumePausedMutations(){return E2.isOnline()?En(this,yp).resumePausedMutations():Promise.resolve()}getQueryCache(){return En(this,As)}getMutationCache(){return En(this,yp)}getDefaultOptions(){return En(this,xp)}setDefaultOptions(e){oi(this,xp,e)}setQueryDefaults(e,r){En(this,ay).set(ob(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...En(this,ay).values()];let y={};return r.forEach(F=>{sb(e,F.queryKey)&&(y={...y,...F.defaultOptions})}),y}setMutationDefaults(e,r){En(this,iy).set(ob(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...En(this,iy).values()];let y={};return r.forEach(F=>{sb(e,F.mutationKey)&&(y={...y,...F.defaultOptions})}),y}defaultQueryOptions(e){if(e._defaulted)return e;const r={...En(this,xp).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=S6(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.enabled!==!0&&r.queryFn===$_&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...En(this,xp).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){En(this,As).clear(),En(this,yp).clear()}},As=new WeakMap,yp=new WeakMap,xp=new WeakMap,ay=new WeakMap,iy=new WeakMap,bp=new WeakMap,oy=new WeakMap,sy=new WeakMap,ZR),Nu,ro,cb,vu,X0,ly,Jd,fb,uy,cy,Z0,K0,wp,fy,J0,nx,db,RM,hb,kM,vb,DM,pb,OM,gb,FM,mb,_M,yb,zM,I2,q_,KR,g3e=(KR=class extends Xb{constructor(r,y){super();di(this,J0);di(this,db);di(this,hb);di(this,vb);di(this,pb);di(this,gb);di(this,mb);di(this,yb);di(this,I2);di(this,Nu,void 0);di(this,ro,void 0);di(this,cb,void 0);di(this,vu,void 0);di(this,X0,void 0);di(this,ly,void 0);di(this,Jd,void 0);di(this,fb,void 0);di(this,uy,void 0);di(this,cy,void 0);di(this,Z0,void 0);di(this,K0,void 0);di(this,wp,void 0);di(this,fy,new Set);this.options=y,oi(this,Nu,r),oi(this,Jd,null),this.bindMethods(),this.setOptions(y)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(En(this,ro).addObserver(this),zR(En(this,ro),this.options)?to(this,J0,nx).call(this):this.updateResult(),to(this,pb,OM).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return BM(En(this,ro),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return BM(En(this,ro),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,to(this,gb,FM).call(this),to(this,mb,_M).call(this),En(this,ro).removeObserver(this)}setOptions(r,y){const F=this.options,j=En(this,ro);if(this.options=En(this,Nu).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hd(this.options.enabled,En(this,ro))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");to(this,yb,zM).call(this),En(this,ro).setOptions(this.options),F._defaulted&&!PM(this.options,F)&&En(this,Nu).getQueryCache().notify({type:"observerOptionsUpdated",query:En(this,ro),observer:this});const Y=this.hasListeners();Y&&BR(En(this,ro),j,this.options,F)&&to(this,J0,nx).call(this),this.updateResult(y),Y&&(En(this,ro)!==j||hd(this.options.enabled,En(this,ro))!==hd(F.enabled,En(this,ro))||Jm(this.options.staleTime,En(this,ro))!==Jm(F.staleTime,En(this,ro)))&&to(this,db,RM).call(this);const D=to(this,hb,kM).call(this);Y&&(En(this,ro)!==j||hd(this.options.enabled,En(this,ro))!==hd(F.enabled,En(this,ro))||D!==En(this,wp))&&to(this,vb,DM).call(this,D)}getOptimisticResult(r){const y=En(this,Nu).getQueryCache().build(En(this,Nu),r),F=this.createResult(y,r);return y3e(this,F)&&(oi(this,vu,F),oi(this,ly,this.options),oi(this,X0,En(this,ro).state)),F}getCurrentResult(){return En(this,vu)}trackResult(r,y){const F={};return Object.keys(r).forEach(j=>{Object.defineProperty(F,j,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(j),y==null||y(j),r[j])})}),F}trackProp(r){En(this,fy).add(r)}getCurrentQuery(){return En(this,ro)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const y=En(this,Nu).defaultQueryOptions(r),F=En(this,Nu).getQueryCache().build(En(this,Nu),y);return F.isFetchingOptimistic=!0,F.fetch().then(()=>this.createResult(F,y))}fetch(r){return to(this,J0,nx).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),En(this,vu)))}createResult(r,y){var b;const F=En(this,ro),j=this.options,Y=En(this,vu),D=En(this,X0),O=En(this,ly),l=r!==F?r.state:En(this,cb),{state:S}=r;let i={...S},C=!1,w;if(y._optimisticResults){const p=this.hasListeners(),E=!p&&zR(r,y),g=p&&BR(r,F,y,j);(E||g)&&(i={...i,...Q_(S.data,r.options)}),y._optimisticResults==="isRestoring"&&(i.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:a}=i;if(y.select&&i.data!==void 0)if(Y&&i.data===(D==null?void 0:D.data)&&y.select===En(this,fb))w=En(this,uy);else try{oi(this,fb,y.select),w=y.select(i.data),w=IM(Y==null?void 0:Y.data,w,y),oi(this,uy,w),oi(this,Jd,null)}catch(p){oi(this,Jd,p)}else w=i.data;if(y.placeholderData!==void 0&&w===void 0&&a==="pending"){let p;if(Y!=null&&Y.isPlaceholderData&&y.placeholderData===(O==null?void 0:O.placeholderData))p=Y.data;else if(p=typeof y.placeholderData=="function"?y.placeholderData((b=En(this,cy))==null?void 0:b.state.data,En(this,cy)):y.placeholderData,y.select&&p!==void 0)try{p=y.select(p),oi(this,Jd,null)}catch(E){oi(this,Jd,E)}p!==void 0&&(a="success",w=IM(Y==null?void 0:Y.data,p,y),C=!0)}En(this,Jd)&&(v=En(this,Jd),w=En(this,uy),m=Date.now(),a="error");const n=i.fetchStatus==="fetching",s=a==="pending",o=a==="error",h=s&&n,f=w!==void 0;return{status:a,fetchStatus:i.fetchStatus,isPending:s,isSuccess:a==="success",isError:o,isInitialLoading:h,isLoading:h,data:w,dataUpdatedAt:i.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:i.fetchFailureCount,failureReason:i.fetchFailureReason,errorUpdateCount:i.errorUpdateCount,isFetched:i.dataUpdateCount>0||i.errorUpdateCount>0,isFetchedAfterMount:i.dataUpdateCount>l.dataUpdateCount||i.errorUpdateCount>l.errorUpdateCount,isFetching:n,isRefetching:n&&!s,isLoadingError:o&&!f,isPaused:i.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:o&&f,isStale:M6(r,y),refetch:this.refetch}}updateResult(r){const y=En(this,vu),F=this.createResult(En(this,ro),this.options);if(oi(this,X0,En(this,ro).state),oi(this,ly,this.options),En(this,X0).data!==void 0&&oi(this,cy,En(this,ro)),PM(F,y))return;oi(this,vu,F);const j={},Y=()=>{if(!y)return!0;const{notifyOnChangeProps:D}=this.options,O=typeof D=="function"?D():D;if(O==="all"||!O&&!En(this,fy).size)return!0;const t=new Set(O??En(this,fy));return this.options.throwOnError&&t.add("error"),Object.keys(En(this,vu)).some(l=>{const S=l;return En(this,vu)[S]!==y[S]&&t.has(S)})};(r==null?void 0:r.listeners)!==!1&&Y()&&(j.listeners=!0),to(this,I2,q_).call(this,{...j,...r})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&to(this,pb,OM).call(this)}},Nu=new WeakMap,ro=new WeakMap,cb=new WeakMap,vu=new WeakMap,X0=new WeakMap,ly=new WeakMap,Jd=new WeakMap,fb=new WeakMap,uy=new WeakMap,cy=new WeakMap,Z0=new WeakMap,K0=new WeakMap,wp=new WeakMap,fy=new WeakMap,J0=new WeakSet,nx=function(r){to(this,yb,zM).call(this);let y=En(this,ro).fetch(this.options,r);return r!=null&&r.throwOnError||(y=y.catch(cf)),y},db=new WeakSet,RM=function(){to(this,gb,FM).call(this);const r=Jm(this.options.staleTime,En(this,ro));if(Ry||En(this,vu).isStale||!EM(r))return;const F=G_(En(this,vu).dataUpdatedAt,r)+1;oi(this,Z0,setTimeout(()=>{En(this,vu).isStale||this.updateResult()},F))},hb=new WeakSet,kM=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(En(this,ro)):this.options.refetchInterval)??!1},vb=new WeakSet,DM=function(r){to(this,mb,_M).call(this),oi(this,wp,r),!(Ry||hd(this.options.enabled,En(this,ro))===!1||!EM(En(this,wp))||En(this,wp)===0)&&oi(this,K0,setInterval(()=>{(this.options.refetchIntervalInBackground||C6.isFocused())&&to(this,J0,nx).call(this)},En(this,wp)))},pb=new WeakSet,OM=function(){to(this,db,RM).call(this),to(this,vb,DM).call(this,to(this,hb,kM).call(this))},gb=new WeakSet,FM=function(){En(this,Z0)&&(clearTimeout(En(this,Z0)),oi(this,Z0,void 0))},mb=new WeakSet,_M=function(){En(this,K0)&&(clearInterval(En(this,K0)),oi(this,K0,void 0))},yb=new WeakSet,zM=function(){const r=En(this,Nu).getQueryCache().build(En(this,Nu),this.options);if(r===En(this,ro))return;const y=En(this,ro);oi(this,ro,r),oi(this,cb,r.state),this.hasListeners()&&(y==null||y.removeObserver(this),r.addObserver(this))},I2=new WeakSet,q_=function(r){Rl.batch(()=>{r.listeners&&this.listeners.forEach(y=>{y(En(this,vu))}),En(this,Nu).getQueryCache().notify({query:En(this,ro),type:"observerResultsUpdated"})})},KR);function m3e(e,r){return hd(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function zR(e,r){return m3e(e,r)||e.state.data!==void 0&&BM(e,r,r.refetchOnMount)}function BM(e,r,y){if(hd(r.enabled,e)!==!1){const F=typeof y=="function"?y(e):y;return F==="always"||F!==!1&&M6(e,r)}return!1}function BR(e,r,y,F){return(e!==r||hd(F.enabled,e)===!1)&&(!y.suspense||e.state.status!=="error")&&M6(e,y)}function M6(e,r){return hd(r.enabled,e)!==!1&&e.isStaleByTime(Jm(r.staleTime,e))}function y3e(e,r){return!PM(e.getCurrentResult(),r)}var ez=Oe.createContext(void 0),x3e=e=>{const r=Oe.useContext(ez);if(e)return e;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},b3e=({client:e,children:r})=>(Oe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ce.jsx(ez.Provider,{value:e,children:r})),tz=Oe.createContext(!1),w3e=()=>Oe.useContext(tz);tz.Provider;function T3e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var S3e=Oe.createContext(T3e()),C3e=()=>Oe.useContext(S3e);function M3e(e,r){return typeof e=="function"?e(...r):!!e}var A3e=(e,r)=>{(e.suspense||e.throwOnError)&&(r.isReset()||(e.retryOnMount=!1))},E3e=e=>{Oe.useEffect(()=>{e.clearReset()},[e])},P3e=({result:e,errorResetBoundary:r,throwOnError:y,query:F})=>e.isError&&!r.isReset()&&!e.isFetching&&F&&M3e(y,[e.error,F]),L3e=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},I3e=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,R3e=(e,r,y)=>r.fetchOptimistic(e).catch(()=>{y.clearReset()});function k3e(e,r,y){var l,S,i,C;const F=x3e(y),j=w3e(),Y=C3e(),D=F.defaultQueryOptions(e);(S=(l=F.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||S.call(l,D),D._optimisticResults=j?"isRestoring":"optimistic",L3e(D),A3e(D,Y),E3e(Y);const[O]=Oe.useState(()=>new r(F,D)),t=O.getOptimisticResult(D);if(Oe.useSyncExternalStore(Oe.useCallback(w=>{const v=j?()=>{}:O.subscribe(Rl.batchCalls(w));return O.updateResult(),v},[O,j]),()=>O.getCurrentResult(),()=>O.getCurrentResult()),Oe.useEffect(()=>{O.setOptions(D,{listeners:!1})},[D,O]),I3e(D,t))throw R3e(D,O,Y);if(P3e({result:t,errorResetBoundary:Y,throwOnError:D.throwOnError,query:F.getQueryCache().get(D.queryHash)}))throw t.error;return(C=(i=F.getDefaultOptions().queries)==null?void 0:i._experimental_afterQuery)==null||C.call(i,D,t),D.notifyOnChangeProps?t:O.trackResult(t)}function rz(e,r){return k3e(e,g3e,r)}const D3e=({item:e})=>{const r=gF(),y=ju.data.detail.source,F=ju.data.detail.idField,j=ju.pages.index.tableColumns;let D={...ju.data.detail.staticParams};const O=new URLSearchParams(D).toString();let t;t=async()=>{const i=await(await fetch(`${y}?${O}`)).json();return i==null?void 0:i.find(C=>{if(r.id)return C[F].toString()===r.id.toString()})};const{data:l}=rz({queryKey:["item",r.id,D],queryFn:t});return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:l?l[F]:"",breadcrumbTitle:"Data Detail",sx:{marginBottom:1,padding:2}}),Ce.jsx(Zs,{maxWidth:"xl",children:Ce.jsx(La,{children:Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{fontWeight:"bold",children:j[1].field}),Ce.jsx(ea,{children:l&&l[j[1].field]})]})})})})]})},O3e=Object.freeze(Object.defineProperty({__proto__:null,default:D3e},Symbol.toStringTag,{value:"Module"})),F3e=()=>Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(Kp,{})})]}),_3e=Object.freeze(Object.defineProperty({__proto__:null,default:F3e},Symbol.toStringTag,{value:"Module"})),nz=Vo.createContext(void 0),z3e={activeFilters:[],expandedGroup:!1};function B3e(e,r){switch(r.type){case"SET_FILTER":{const y=r.payload,F=e.activeFilters.findIndex(Y=>Y.field===y.field),j=[...e.activeFilters];return F>-1?y.value?j[F]=y:j.splice(F,1):y.value&&j.push(y),{...e,activeFilters:j}}case"SET_ACTIVE_FILTERS":return{...e,activeFilters:r.payload};case"SET_EXPANDED_GROUP":return{...e,expandedGroup:r.payload};default:throw new Error("Unhandled action type")}}const N3e=({activeFilters:e=[],onChange:r=F=>null,children:y})=>{const[F,j]=Oe.useReducer(B3e,{...z3e,activeFilters:e}),Y={activeFilters:F.activeFilters,expandedGroup:F.expandedGroup,dispatch:j};return Oe.useEffect(()=>{r&&r(F.activeFilters)},[JSON.stringify(F.activeFilters)]),Ce.jsx(nz.Provider,{value:Y,children:y})},A6=()=>{const e=Oe.useContext(nz);if(e===void 0)throw new Error("useFilters must be used within a FilterContext");return e},U3e=({values:e})=>{const[r,y]=Oe.useState(null),F=D=>{y(D.currentTarget)},j=()=>{y(null)},Y=!!r;return Ce.jsxs(oa,{sx:{height:"100%"},children:[Ce.jsx(La,{direction:"row",spacing:1,alignItems:"center",onMouseEnter:F,onMouseLeave:j,sx:{height:"100%"},children:e.map(D=>Ce.jsx(Kh,{label:D,size:"small"},D))}),Ce.jsx(C5,{id:"mouse-over-popover",sx:{pointerEvents:"none"},open:Y,anchorEl:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:j,disableRestoreFocus:!0,children:Ce.jsx(ji,{container:!0,rowGap:1,columnGap:1,sx:{maxWidth:"300px",padding:2},children:e.map(D=>Ce.jsx(ji,{item:!0,children:Ce.jsx(Kh,{label:D,size:"small"})},D))})})]})},H3e=({children:e})=>{const[r,y]=Oe.useState(null),F=D=>{y(D.currentTarget)},j=()=>{y(null)},Y=!!r;return Ce.jsxs(oa,{sx:{height:"100%"},children:[Ce.jsx(oa,{onMouseEnter:F,onMouseLeave:j,sx:{height:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:e}),Ce.jsx(C5,{id:"mouse-over-popover",sx:{pointerEvents:"none"},open:Y,anchorEl:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:j,disableRestoreFocus:!0,children:Ce.jsx(oa,{sx:{maxWidth:"300px",padding:2},children:e})})]})};var E6={},V3e=_l;Object.defineProperty(E6,"__esModule",{value:!0});var az=E6.default=void 0,j3e=V3e(Su()),G3e=Ce;az=E6.default=(0,j3e.default)((0,G3e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");const W3e=({options:e=[],onChange:r,values:y,sx:F,...j})=>{const[Y,D]=Oe.useState(y),O=(t,l)=>{if(Y===null&&t)D([l]);else if(Y!==null&&t)D([...Y,l]);else if(Y!==null&&!t){const S=Y.filter(i=>i!==l);S.length>0?D(S):D(null)}};return Oe.useEffect(()=>{r&&(Y==null?void 0:Y.length)!==(y==null?void 0:y.length)&&r(Y)},[Y]),Oe.useEffect(()=>{D(y)},[y]),Ce.jsx(Ree,{sx:{display:"inline-flex",...F},...j,children:e.map((t,l)=>Ce.jsx(tM,{label:t.label,control:Ce.jsx(V9,{checked:!!Y&&Y.indexOf(t.value)>-1,value:t.value,onChange:(S,i)=>O(i,t.value),sx:{pr:1,pl:1,pb:0,pt:0}}),sx:{"&:not(:last-child)":{mb:1}}},`${t}-${l}`))})},$3e=({min:e=0,max:r=100,...y})=>{const[F,j]=Oe.useState([e,r]),Y=(O,t,l)=>{j(t)},D=[{value:e,label:e},{value:r,label:r}];return Ce.jsx(oa,{sx:{paddingLeft:1,paddingRight:1},children:Ce.jsx(Eae,{value:F,onChange:Y,min:e,max:r,marks:D,...y})})},P2=e=>e===0||e===!1?!0:Array.isArray(e)&&e.length===0?!1:!!e,Y3e=({label:e,field:r,tooltip:y,operator:F,filterComponent:j,filterProps:Y,...D})=>{const{activeFilters:O,dispatch:t}=A6(),[l,S]=Oe.useState(null),i=O.find(m=>m.field===r),C=P2(i==null?void 0:i.value),w=()=>{switch(j){case"CheckboxList":S(null);break;case"RangeSlider":S([Y.min,Y.max]);break;case"DateRange":S([Y.min,Y.max]);break;case"TextField":S(null);break;default:console.log("Unknown filter type")}t({type:"SET_FILTER",payload:{field:r,value:null,operator:F}})},v=(m,a,n)=>{var s;switch(a){case"CheckboxList":return Ce.jsx(W3e,{values:l,options:n.options,onChange:o=>t({type:"SET_FILTER",payload:{field:m,value:o,operator:F}}),...n});case"RangeSlider":{const o=(h,f)=>{if(!Array.isArray(f))return;let u=[...f];f[0]===n.min&&f[1]===n.max&&(u=null),t({type:"SET_FILTER",payload:{field:m,value:u,operator:F}})};return Ce.jsx($3e,{getAriaLabel:()=>m,valueLabelDisplay:"auto",min:n.min,max:n.max,value:l||[n.min,n.max],onChange:(h,f)=>S(f),onChangeCommitted:o,...n})}case"DateRange":{const o=(s=O.find(b=>b.field===b.field))==null?void 0:s.value,h=o&&Array.isArray(o)&&o.length===2,f=h&&Array.isArray(o)?o[0]:null,u=h&&Array.isArray(o)?o[1]:null;return Ce.jsxs(La,{children:[Ce.jsx(p2,{label:"From",slotProps:{actionBar:{actions:["clear","today"]}},onChange:b=>t({type:"SET_FILTER",payload:{field:m,value:[b,u],operator:F}})}),Ce.jsx(p2,{label:"To",slotProps:{actionBar:{actions:["clear","today"]}},onChange:b=>t({type:"SET_FILTER",payload:{field:m,value:[f,b],operator:F}})})]})}case"TextField":return Oe.useEffect(()=>{const o=setTimeout(()=>{t({type:"SET_FILTER",payload:{field:m,value:l,operator:F}})},1e3);return()=>{clearTimeout(o)}},[l]),Ce.jsx(Zo,{value:l||"",onChange:o=>S(o.target.value),fullWidth:!0,...n})}};return Oe.useEffect(()=>{C?S((i==null?void 0:i.value)||null):j==="RangeSlider"?l&&(l[0]!==Y.min||l[1]!==Y.max)&&w():P2(l)&&w()},[JSON.stringify(O)]),Ce.jsxs(La,{spacing:1,sx:{paddingBottom:2,borderBottom:"1px solid",borderBottomColor:"grey.300","&:last-child":{borderBottom:"none",paddingBottom:0}},...D,children:[Ce.jsx(oa,{display:"inline-block",children:Ce.jsxs(La,{direction:"row",spacing:1,onClick:()=>w(),sx:{cursor:C?"pointer":"default",display:"inline-flex"},children:[y&&Ce.jsx(uO,{title:y,placement:"top",arrow:!0,children:Ce.jsx(ea,{fontWeight:"bold",color:C?"primary":"auto",sx:{textDecoration:"underline",textDecorationStyle:"dotted",textUnderlineOffset:"0.25rem"},children:e})}),!y&&Ce.jsx(ea,{fontWeight:"bold",color:C?"primary":"default",children:e}),C&&Ce.jsx(az,{color:"primary"})]})}),Ce.jsx(oa,{children:v(r,j,Y)})]})},X3e=/A[cglmrstu]|B[aehikr]?|C[adeflmnorsu]?|D[bsy]|E[rsu]|F[elmr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airuv]|M[dgnot]|N[abdeiop]?|Os?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilm]|U(u[opst])?|V|W|Xe|Yb?|Z[nr]|La\-Lu?|Ac\-Lr?/g,Z3e=/(A[cglmrstu]|B[aehikr]?|C[adeflmnorsu]?|D[bsy]|E[rsu]|F[elmr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airuv]|M[dgnot]|N[abdeiop]?|Os?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilm]|U(u[opst])?|V|W|Xe|Yb?|Z[nr]|La\-Lu?|Ac\-Lr?)|(.)/g,K3e=e=>!e.match(/\(|\)|\*/g)&&!e.match(X3e)?Ce.jsx("sub",{children:e}):Ce.jsx("span",{children:e}),J3e=({content:e,...r})=>{let y;const F=e.match(Z3e);return y=Ce.jsx("span",{children:F==null?void 0:F.map((j,Y)=>Ce.jsx("span",{children:K3e(j)},Y))}),Ce.jsx("span",{...r,children:y})},NR=({hasPopover:e,children:r})=>e?Ce.jsx(H3e,{children:r}):r,Q3e=e=>e.map(r=>{const{units:y,decimals:F,sigFigs:j,isFormula:Y,hasPopover:D,...O}=r;return O.renderHeader=t=>Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontSize:"0.875rem",fontWeight:"bold",children:t.colDef.headerName}),y&&Ce.jsx(ea,{fontSize:"small",color:"grey.700",sx:{position:"absolute",bottom:"4px",left:t.colDef.type!=="number"?0:"auto",right:t.colDef.type==="number"?0:"auto",transform:"translate(0, 0)",zIndex:1e3},children:y})]}),!O.valueFormatter&&O.type==="number"&&(O.valueFormatter=t=>P2(t)?!isNaN(t)&&F||F===0?t===0?t:t<1/Math.pow(10,F)?`> ${1/Math.pow(10,F)}`:t.toLocaleString(void 0,{minimumFractionDigits:F,maximumFractionDigits:F}):!isNaN(t)&&j?t.toPrecision(j):t.toLocaleString():"-"),O.renderCell||(O.renderCell=t=>Array.isArray(t.value)?Ce.jsx(U3e,{values:t.value}):Y?Ce.jsx(NR,{hasPopover:D,children:Ce.jsx(J3e,{content:t.value})}):Ce.jsx(NR,{hasPopover:D,children:t.formattedValue})),O}),q3e=({rows:e,columns:r,...y})=>Ce.jsx(tc,{rows:e,columns:Q3e(r),disableColumnSelector:!0,initialState:{pagination:{paginationModel:{page:0,pageSize:5}}},sx:{"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"bold"},"& .MuiDataGrid-cell:focus-within":{outline:"none"},"& .MuiDataGrid-overlayWrapper":{minHeight:"4rem"}},...y}),e2e=(e,r)=>{let y=e;return r&&(y=e.filter(F=>JSON.stringify(F).toLowerCase().indexOf(r.toLowerCase())>-1)),y},t2e=(e,r,y)=>{let F=e;if(r.length>0){const j={};r.forEach(Y=>{if(y){const D=y.find(O=>O.field===Y.field);j[Y.field]=D==null?void 0:D.operator}}),F=e.filter(Y=>{let D=!0;return r.forEach(O=>{let t=!1;if(D===!0)switch(j[O.field]){case"contains":{Y[O.field].indexOf(O.value)>-1&&(t=!0);break}case"contains-one-of":{Array.isArray(O.value)&&O.value.forEach(l=>{t||(Array.isArray(Y[O.field])?Y[O.field].indexOf(l)>-1&&(t=!0):Y[O.field]===l&&(t=!0))});break}case"equals-one-of":{Array.isArray(O.value)&&O.value.forEach(l=>{t||Y[O.field]===l&&(t=!0)});break}case"between-inclusive":{if(Array.isArray(O.value)){const l=O.value[0],S=O.value[1];Y[O.field]>=l&&Y[O.field]<=S&&(t=!0)}break}case"between-dates-inclusive":{if(typeof Y[O.field]=="string"&&Array.isArray(O.value)&&O.value[0]&&O.value[1]){const l=gs(Y[O.field]);l.isAfter(O.value[0])&&l.isBefore(O.value[1])&&(t=!0)}else t=!0;break}}t||(D=!1)}),D})}return F},iz=(e,r,y,F)=>{const j=e2e(e,F);return t2e(j,r,y)},UR=e=>e.replace(/([^:]\/)\/+/g,"$1"),r2e=async e=>{var O;const y=(((O=document.querySelector("base"))==null?void 0:O.getAttribute("href"))??"")+"/strudel-kit/demo/",F=e.split(".").pop(),j=e.startsWith("http"),Y=UR(j?e:`${y}/${e}`);let D=[];return F==="csv"?D=await EF(Y):F==="tsv"?D=await PF(Y):(F==="json"||j)&&(D=await(await fetch(Y)).json()),D},n2e=({searchTerm:e,setPreviewItem:r})=>{const{activeFilters:y}=A6(),[F,j]=Oe.useState(0),[Y,D]=Oe.useState(25),[O,t]=Oe.useState(F*Y),l=ju.data.list.source,S=ju.data.list.idField,i=ju.pages.index.tableColumns,C=ju.pages.index.tableFilters,w=ju.data.list.queryMode;let v=new URLSearchParams;const m=["items"],{isPending:a,isFetching:n,isError:s,data:o,error:h}=rz({queryKey:m,queryFn:async()=>{const b=v.toString();let p=l;return b&&b.length>0&&(p=`${l}?${b}`),await r2e(p)},placeholderData:e3e}),f=b=>{r(b.row)},u=b=>{const p=b.pageSize!==Y?0:b.page,E=b.pageSize,g=p*E;j(p),D(E),t(g)};if(a){const p=new Array(Y).fill(null).map((E,g)=>g);return Ce.jsx(oa,{sx:{padding:2},children:p.map(E=>Ce.jsx(sO,{height:50},E))})}return s?Ce.jsx(b9,{severity:"error",children:h.message}):Ce.jsxs(Ce.Fragment,{children:[n&&Ce.jsx(Fb,{variant:"indeterminate"}),Ce.jsx(q3e,{rows:iz(o,y,C,e),rowCount:void 0,pagination:!0,paginationMode:w,onPaginationModelChange:u,getRowId:b=>b[S],columns:i,disableColumnSelector:!0,autoHeight:!0,initialState:{pagination:{paginationModel:{page:F,pageSize:Y}}},onRowClick:f})]})};var P6={},a2e=_l;Object.defineProperty(P6,"__esModule",{value:!0});var oz=P6.default=void 0,i2e=a2e(Su()),o2e=Ce;oz=P6.default=(0,i2e.default)((0,o2e.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");const s2e=({searchTerm:e,setSearchTerm:r,onToggleFiltersPanel:y})=>{const F=j=>{r(j.target.value)};return Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",sx:{overflow:"hidden",padding:2},children:[Ce.jsx(ea,{variant:"h6",component:"h2",flex:1,children:"Entity List"}),Ce.jsx($i,{startIcon:Ce.jsx(oz,{}),onClick:y,children:"Filters"}),Ce.jsx(Zo,{variant:"outlined",label:"Search",size:"small",value:e,onChange:F})]})},sz=({header:e="Filters",grouped:r=!0,onChange:y,onClose:F,config:j,children:Y,...D})=>{const{activeFilters:O,dispatch:t}=A6();let l=0;Vo.Children.forEach(Y,i=>{if(Vo.isValidElement(i)&&i.props.field&&P2(O.find(C=>C.field===i.props.field)))return l++});const S=()=>{t({type:"SET_ACTIVE_FILTERS",payload:[]})};return Ce.jsx(Ri,{elevation:0,variant:"outlined",...D,children:Ce.jsxs(La,{spacing:0,children:[e&&Ce.jsxs(La,{direction:"row",spacing:0,alignItems:"center",sx:{borderBottom:"1px solid",borderBottomColor:"grey.300",paddingLeft:2,paddingRight:2,paddingTop:1,paddingBottom:1},children:[Ce.jsxs(La,{direction:"row",spacing:2,flex:1,children:[Ce.jsx(oa,{children:e}),l>0&&Ce.jsx(Kh,{label:`${l} active`,color:"primary",size:"small"})]}),Ce.jsx($i,{variant:"outlined",onClick:S,sx:{marginRight:1},children:"Reset"}),Ce.jsx(fl,{onClick:F,children:Ce.jsx(Yb,{})})]}),r&&Ce.jsx(La,{spacing:0,children:Y}),!r&&Ce.jsx(La,{spacing:2,sx:{padding:2},children:Y})]})})},l2e=e=>Ce.jsx(sz,{grouped:!1,onClose:e.onClose,sx:{border:"none"},children:ju.pages.index.tableFilters.map((r,y)=>Ce.jsx(Y3e,{field:r.field,label:r.label,operator:"contains",filterComponent:r.filterComponent,filterProps:r.filterProps},`${r.field}-${y}`))}),u2e=({previewItem:e,onClose:r})=>{const y=ju.pages.index.tableColumns,F=ju.data.list.idField;return Ce.jsx(Ri,{elevation:0,sx:{height:"100%",padding:2},children:Ce.jsxs(La,{spacing:3,children:[Ce.jsxs(La,{spacing:1,children:[Ce.jsxs(La,{direction:"row",children:[Ce.jsx(ea,{variant:"h6",component:"h3",flex:1,children:Ce.jsx(Ii,{component:Ki,to:`${e[F]}`,underline:"hover",children:e[y[0].field]})}),Ce.jsx(fl,{size:"small",onClick:r,children:Ce.jsx(Yb,{})})]}),Ce.jsx(ea,{variant:"body2",children:"Row description, subtitle, or helper text."})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Property Group 1"}),Ce.jsx(jp,{rows:[{label:"Property 1",value:"value"},{label:"Property 2",value:"value"},{label:"Property 3",value:"value"}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Property Group 2"}),Ce.jsx(jp,{rows:[{label:"Property 4",value:"value"},{label:"Property 5",value:"value"}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Related Data"}),Ce.jsx(tc,{rows:d2e,columns:c2e,disableRowSelectionOnClick:!0,initialState:{pagination:{paginationModel:{pageSize:5}}}})]}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(Ii,{component:Ki,to:`${e[F]}`,children:Ce.jsx($i,{variant:"contained",children:"View details"})}),Ce.jsx($i,{variant:"outlined",children:"Export data"})]})]})})},c2e=[{field:"id",headerName:"ID",width:50},{field:"attr1",headerName:"Attribute 1",width:100},{field:"attr2",headerName:"Attribute 2",width:100},{field:"attr3",headerName:"Attribute 3",width:100}],f2e=Array(25).fill(0),d2e=f2e.map((e,r)=>({id:r,attr1:"value",attr2:"value",attr3:"value"})),h2e=()=>{const[e,r]=Oe.useState(""),[y,F]=Oe.useState(),[j,Y]=Oe.useState(!0),D=()=>{Y(!1)},O=()=>{Y(!j)},t=()=>{F(null)};return Ce.jsx(N3e,{children:Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:ju.pages.index.title,description:ju.pages.index.description,sx:{marginBottom:1,padding:2}}),Ce.jsx(oa,{children:Ce.jsxs(La,{direction:"row",children:[j&&Ce.jsx(oa,{sx:{width:"350px"},children:Ce.jsx(l2e,{onClose:D})}),Ce.jsxs(Ri,{elevation:0,sx:{flex:1,minHeight:"600px",minWidth:0},children:[Ce.jsx(s2e,{searchTerm:e,setSearchTerm:r,onToggleFiltersPanel:O}),Ce.jsx(n2e,{searchTerm:e,setPreviewItem:F})]}),y&&Ce.jsx(oa,{sx:{minWidth:"400px"},children:Ce.jsx(u2e,{previewItem:y,onClose:t})})]})})]})})},v2e=Object.freeze(Object.defineProperty({__proto__:null,default:h2e},Symbol.toStringTag,{value:"Module"})),p2e=()=>Ce.jsx(oa,{sx:{backgroundColor:"white",padding:4},children:Ce.jsx(Zs,{children:Ce.jsxs(ji,{container:!0,children:[Ce.jsx(ji,{item:!0,md:6,children:Ce.jsx(La,{direction:"row",useFlexGap:!0,sx:{flexWrap:"wrap"},children:Ap.footer.links.map((e,r)=>Ce.jsx(zp,{to:e.path,children:e.label},`${e.path}-${r}`))})}),Ce.jsx(ji,{item:!0,md:6,children:Ce.jsxs(La,{alignItems:"center",children:[Ce.jsx(ea,{children:Ap.footer.info}),Ce.jsx(zp,{to:"/",children:Ce.jsx(SF,{height:60,children:Ce.jsx("img",{src:`/strudel-kit/demo//${Ap.footer.image}`})})})]})})]})})}),lz=({children:e})=>Ce.jsxs(La,{sx:{height:"100%"},children:[Ce.jsx(Cg,{}),Ce.jsx(oa,{sx:{flex:1},children:e}),Ce.jsx(p2e,{})]}),g2e=()=>{var e,r;return(e=L2[0].children)==null||e.sort((y,F)=>{const j=y.path||"",Y=F.path||"";return j==="playground"&&Y!=="/"||jY?1:0}),Ce.jsx(lz,{children:Ce.jsx(Zs,{maxWidth:"lg",sx:{marginTop:3,marginBottom:3},children:Ce.jsxs(oa,{children:[Ce.jsxs(La,{sx:{marginBottom:4},children:[Ce.jsx(ea,{variant:"h6",component:"h1",fontWeight:"bold",children:"You just built an app with STRUDEL!"}),Ce.jsxs(oa,{children:["Get started by going to ",Ce.jsx("code",{children:Ce.jsx(zp,{to:"playground",children:"/playground"})})," and editing ",Ce.jsx(Kh,{size:"small",label:Ce.jsx("code",{children:"src/pages/playground/index.tsx"})})]})]}),Ce.jsxs(ji,{container:!0,columnSpacing:4,rowSpacing:4,children:[Ce.jsx(ji,{item:!0,md:12,children:Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h5",component:"h2",children:"Registered Pages"}),Ce.jsx(ea,{children:"Below are all of the pages that are registered in your app. As you add new top-level pages and Task Flows to your app, they will show up here."}),Ce.jsx(La,{spacing:0,sx:{border:"1px solid",borderColor:"grey.50",padding:2},children:Ce.jsx(dO,{size:"small",children:Ce.jsx(hO,{children:(r=L2[0].children)==null?void 0:r.map(y=>{if(y.path==="/")return Ce.jsxs(oM,{children:[Ce.jsx(Xh,{children:Ce.jsx("code",{children:Ce.jsx(zp,{to:y.path||"",children:"/"})})}),Ce.jsx(Xh,{children:Ce.jsx("code",{children:Ce.jsx(Kh,{size:"small",label:Ce.jsx("code",{children:"src/pages/index.tsx"})})})})]},y.path);if(y.path!=="*")return Ce.jsxs(oM,{children:[Ce.jsx(Xh,{children:Ce.jsx("code",{children:Ce.jsxs(zp,{to:y.path||"",children:["/",y.path]})})}),Ce.jsx(Xh,{children:Ce.jsx("code",{children:Ce.jsx(Kh,{size:"small",label:Ce.jsxs("code",{children:["src/pages/",y.path,"/index.tsx"]})})})})]},y.path)})})})})]})}),Ce.jsx(ji,{item:!0,md:12,children:Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h5",component:"h2",children:"What's Next?"}),Ce.jsx(ea,{variant:"h6",component:"h3",children:"Add Task Flows"}),Ce.jsx(Ri,{elevation:0,sx:{padding:2},children:Ce.jsx("code",{children:"strudel add-taskflow my-taskflow -t explore-data"})})]})})]})]})})})},m2e=Object.freeze(Object.defineProperty({__proto__:null,default:g2e},Symbol.toStringTag,{value:"Module"})),y2e=()=>Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(Kp,{})})]}),x2e=Object.freeze(Object.defineProperty({__proto__:null,default:y2e},Symbol.toStringTag,{value:"Module"})),b2e=()=>Ce.jsxs(Zs,{maxWidth:"md",sx:{marginBottom:3,marginTop:3},children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:"2023 Experiments (Work in Progress)"}),Ce.jsx(UT,{dateAdapter:tF,children:Ce.jsx(VO,{readOnly:!0})}),Ce.jsx(Ii,{component:Ki,to:"../",children:"List"})]}),w2e=Object.freeze(Object.defineProperty({__proto__:null,default:b2e},Symbol.toStringTag,{value:"Module"}));var L6={},T2e=_l;Object.defineProperty(L6,"__esModule",{value:!0});var uz=L6.default=void 0,S2e=T2e(Su()),C2e=Ce;uz=L6.default=(0,S2e.default)((0,C2e.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var cz={},fz={};(function(e){function r(f){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var y=D(Oe),F=j(D7);function j(f){return f&&f.__esModule?f:{default:f}}function Y(f){if(typeof WeakMap!="function")return null;var u=new WeakMap,b=new WeakMap;return(Y=function(E){return E?b:u})(f)}function D(f,u){if(!u&&f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var b=Y(u);if(b&&b.has(f))return b.get(f);var p={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in f)if(g!=="default"&&Object.prototype.hasOwnProperty.call(f,g)){var c=E?Object.getOwnPropertyDescriptor(f,g):null;c&&(c.get||c.set)?Object.defineProperty(p,g,c):p[g]=f[g]}return p.default=f,b&&b.set(f,p),p}function O(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function t(f,u){for(var b=0;b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a(f){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},a(f)}var n=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],s=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],o=typeof window<"u";function h(f){var u=function(b){S(E,b);var p=C(E);function E(g){var c;return O(this,E),c=p.call(this,g),c.p=Promise.resolve(),c.resizeHandler=null,c.handlers={},c.syncWindowResize=c.syncWindowResize.bind(v(c)),c.syncEventHandlers=c.syncEventHandlers.bind(v(c)),c.attachUpdateEvents=c.attachUpdateEvents.bind(v(c)),c.getRef=c.getRef.bind(v(c)),c.handleUpdate=c.handleUpdate.bind(v(c)),c.figureCallback=c.figureCallback.bind(v(c)),c.updatePlotly=c.updatePlotly.bind(v(c)),c}return l(E,[{key:"updatePlotly",value:function(c,x,A){var M=this;this.p=this.p.then(function(){if(!M.unmounting){if(!M.el)throw new Error("Missing element reference");return f.react(M.el,{data:M.props.data,layout:M.props.layout,config:M.props.config,frames:M.props.frames})}}).then(function(){M.unmounting||(M.syncWindowResize(c),M.syncEventHandlers(),M.figureCallback(x),A&&M.attachUpdateEvents())}).catch(function(R){M.props.onError&&M.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(c){this.unmounting=!1;var x=c.frames&&c.frames.length?c.frames.length:0,A=this.props.frames&&this.props.frames.length?this.props.frames.length:0,M=!(c.layout===this.props.layout&&c.data===this.props.data&&c.config===this.props.config&&A===x),R=c.revision!==void 0,T=c.revision!==this.props.revision;!M&&(!R||R&&!T)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&o&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),f.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||s.forEach(function(x){c.el.on(x,c.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||s.forEach(function(x){c.el.removeListener(x,c.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(c){if(typeof c=="function"){var x=this.el,A=x.data,M=x.layout,R=this.el._transitionData?this.el._transitionData._frames:null,T={data:A,layout:M,frames:R};c(T,this.el)}}},{key:"syncWindowResize",value:function(c){var x=this;o&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return f.Plots.resize(x.el)},window.addEventListener("resize",this.resizeHandler),c&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(c){this.el=c,this.props.debug&&o&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var c=this;n.forEach(function(x){var A=c.props["on"+x],M=c.handlers[x],R=!!M;A&&!R?c.addEventHandler(x,A):!A&&R?c.removeEventHandler(x):A&&R&&A!==M&&(c.removeEventHandler(x),c.addEventHandler(x,A))})}},{key:"addEventHandler",value:function(c,x){this.handlers[c]=x,this.el.on(this.getPlotlyEventName(c),this.handlers[c])}},{key:"removeEventHandler",value:function(c){this.el.removeListener(this.getPlotlyEventName(c),this.handlers[c]),delete this.handlers[c]}},{key:"getPlotlyEventName",value:function(c){return"plotly_"+c.toLowerCase()}},{key:"render",value:function(){return y.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),E}(y.Component);return u.propTypes={data:F.default.arrayOf(F.default.object),config:F.default.object,layout:F.default.object,frames:F.default.arrayOf(F.default.object),revision:F.default.number,onInitialized:F.default.func,onPurge:F.default.func,onError:F.default.func,onUpdate:F.default.func,debug:F.default.bool,style:F.default.object,className:F.default.string,useResizeHandler:F.default.bool,divId:F.default.string},n.forEach(function(b){u.propTypes["on"+b]=F.default.func}),u.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},u}})(fz);var dz={exports:{}};(function(e,r){(function(F,j){e.exports=j()})(self,function(){return function(){var y={79288:function(D,O,t){var l=t(3400),S={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in S){var C=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(C,S[i])}},86712:function(D,O,t){D.exports=t(84224)},37240:function(D,O,t){D.exports=t(51132)},29744:function(D,O,t){D.exports=t(94456)},29352:function(D,O,t){D.exports=t(67244)},96144:function(D,O,t){D.exports=t(97776)},53219:function(D,O,t){D.exports=t(61712)},4624:function(D,O,t){D.exports=t(95856)},54543:function(D,O,t){D.exports=t(54272)},45e3:function(D,O,t){D.exports=t(85404)},62300:function(D,O,t){D.exports=t(26048)},6920:function(D,O,t){D.exports=t(66240)},10264:function(D,O,t){D.exports=t(40448)},32016:function(D,O,t){D.exports=t(64884)},27528:function(D,O,t){D.exports=t(15088)},75556:function(D,O,t){D.exports=t(76744)},39204:function(D,O,t){D.exports=t(94704)},73996:function(D,O,t){D.exports=t(62396)},16489:function(D,O,t){D.exports=t(32028)},5e3:function(D,O,t){D.exports=t(81932)},77280:function(D,O,t){D.exports=t(45536)},33992:function(D,O,t){D.exports=t(42600)},17600:function(D,O,t){D.exports=t(21536)},49116:function(D,O,t){D.exports=t(65664)},46808:function(D,O,t){D.exports=t(29044)},36168:function(D,O,t){D.exports=t(48928)},13792:function(D,O,t){var l=t(32016);l.register([t(37240),t(29352),t(5e3),t(33992),t(17600),t(49116),t(6920),t(67484),t(79440),t(39204),t(83096),t(36168),t(20260),t(63560),t(65832),t(46808),t(73996),t(48824),t(89904),t(25120),t(13752),t(4340),t(62300),t(29800),t(8363),t(54543),t(86636),t(42192),t(32140),t(77280),t(89296),t(56816),t(70192),t(45e3),t(27528),t(84764),t(3920),t(50248),t(4624),t(69967),t(10264),t(86152),t(53219),t(81604),t(63796),t(29744),t(89336),t(86712),t(75556),t(16489),t(97312),t(96144)]),D.exports=l},3920:function(D,O,t){D.exports=t(43480)},25120:function(D,O,t){D.exports=t(6296)},4340:function(D,O,t){D.exports=t(7404)},86152:function(D,O,t){D.exports=t(65456)},56816:function(D,O,t){D.exports=t(22020)},89296:function(D,O,t){D.exports=t(29928)},20260:function(D,O,t){D.exports=t(75792)},32140:function(D,O,t){D.exports=t(156)},84764:function(D,O,t){D.exports=t(45499)},48824:function(D,O,t){D.exports=t(3296)},69967:function(D,O,t){D.exports=t(4184)},8363:function(D,O,t){D.exports=t(36952)},86636:function(D,O,t){D.exports=t(38983)},70192:function(D,O,t){D.exports=t(11572)},81604:function(D,O,t){D.exports=t(76924)},63796:function(D,O,t){D.exports=t(62944)},89336:function(D,O,t){D.exports=t(95443)},67484:function(D,O,t){D.exports=t(34864)},97312:function(D,O,t){D.exports=t(76272)},42192:function(D,O,t){D.exports=t(97924)},29800:function(D,O,t){D.exports=t(15436)},63560:function(D,O,t){D.exports=t(5621)},89904:function(D,O,t){D.exports=t(91304)},50248:function(D,O,t){D.exports=t(41724)},65832:function(D,O,t){D.exports=t(31991)},79440:function(D,O,t){D.exports=t(22869)},13752:function(D,O,t){D.exports=t(67776)},83096:function(D,O,t){D.exports=t(95952)},72196:function(D){D.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(D,O,t){var l=t(72196),S=t(25376),i=t(33816),C=t(31780).templatedArray;t(36208),D.exports=C("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:S({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:S({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(D,O,t){var l=t(3400),S=t(54460),i=t(23816).draw;D.exports=function(m){var a=m._fullLayout,n=l.filterVisible(a.annotations);if(n.length&&m._fullData.length)return l.syncOrAsync([i,C],m)};function C(v){var m=v._fullLayout;l.filterVisible(m.annotations).forEach(function(a){var n=S.getFromId(v,a.xref),s=S.getFromId(v,a.yref),o=S.getRefType(a.xref),h=S.getRefType(a.yref);a._extremes={},o==="range"&&w(a,n),h==="range"&&w(a,s)})}function w(v,m){var a=m._id,n=a.charAt(0),s=v[n],o=v["a"+n],h=v[n+"ref"],f=v["a"+n+"ref"],u=v["_"+n+"padplus"],b=v["_"+n+"padminus"],p={x:1,y:-1}[n]*v[n+"shift"],E=3*v.arrowsize*v.arrowwidth||0,g=E+p,c=E-p,x=3*v.startarrowsize*v.arrowwidth||0,A=x+p,M=x-p,R;if(f===h){var T=S.findExtremes(m,[m.r2c(s)],{ppadplus:g,ppadminus:c}),L=S.findExtremes(m,[m.r2c(o)],{ppadplus:Math.max(u,A),ppadminus:Math.max(b,M)});R={min:[T.min[0],L.min[0]],max:[T.max[0],L.max[0]]}}else A=o?A+o:A,M=o?M-o:M,R=S.findExtremes(m,[m.r2c(s)],{ppadplus:Math.max(u,g,A),ppadminus:Math.max(b,c,M)});v._extremes[a]=R}},42300:function(D,O,t){var l=t(3400),S=t(24040),i=t(31780).arrayEditor;D.exports={hasClickToShow:C,onClick:w};function C(a,n){var s=v(a,n);return s.on.length>0||s.explicitOff.length>0}function w(a,n){var s=v(a,n),o=s.on,h=s.off.concat(s.explicitOff),f={},u=a._fullLayout.annotations,b,p;if(o.length||h.length){for(b=0;b.6666666666666666?sr="right":sr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[sr]}for(var st=!1,vt=["x","y"],at=0;at1)&&(rt===mt?(Je=lt.r2fraction(x["a"+nt]),(Je<0||Je>1)&&(st=!0)):st=!0),Fe=lt._offset+lt.r2p(x[nt]),Re=.5}else{var ot=Ve==="domain";nt==="x"?(we=x[nt],Fe=ot?lt._offset+lt._length*we:Fe=P.l+P.w*we):(we=1-x[nt],Fe=ot?lt._offset+lt._length*we:Fe=P.t+P.h*we),Re=x.showarrow?.5:we}if(x.showarrow){We.head=Fe;var yt=x["a"+nt];if(Pe=wt*$e(.5,x.xanchor)-et*$e(.5,x.yanchor),rt===mt){var ut=v.getRefType(rt);ut==="domain"?(nt==="y"&&(yt=1-yt),We.tail=lt._offset+lt._length*yt):ut==="paper"?nt==="y"?(yt=1-yt,We.tail=P.t+P.h*yt):We.tail=P.l+P.w*yt:We.tail=lt._offset+lt.r2p(yt),Me=Pe}else We.tail=Fe+yt,Me=Pe+yt;We.text=We.tail+Pe;var It=L[nt==="x"?"width":"height"];if(mt==="paper"&&(We.head=C.constrain(We.head,1,It-1)),rt==="pixel"){var Vt=-Math.max(We.tail-3,We.text),xt=Math.min(We.tail+3,We.text)-It;Vt>0?(We.tail+=Vt,We.text+=Vt):xt>0&&(We.tail-=xt,We.text-=xt)}We.tail+=Ke,We.head+=Ke}else Pe=Be*$e(Re,Ye),Me=Pe,We.text=Fe+Pe;We.text+=Ke,Pe+=Ke,Me+=Ke,x["_"+nt+"padplus"]=Be/2+Me,x["_"+nt+"padminus"]=Be/2-Me,x["_"+nt+"size"]=Be,x["_"+nt+"shift"]=Pe}if(st){fe.remove();return}var Lt=0,Xt=0;if(x.align!=="left"&&(Lt=(Ie-Ae)*(x.align==="center"?.5:1)),x.valign!=="top"&&(Xt=(Ue-be)*(x.valign==="middle"?.5:1)),ke)Se.select("svg").attr({x:oe+Lt-1,y:oe+Xt}).call(a.setClipUrl,ne?H:null,c);else{var dr=oe+Xt-Te.top,Tt=oe+Lt-Te.left;de.call(s.positionText,Tt,dr).call(a.setClipUrl,ne?H:null,c)}ce.select("rect").call(a.setRect,oe,oe,Ie,Ue),K.call(a.setRect,Q/2,Q/2,Ne-Q,ze-Q),fe.call(a.setTranslate,Math.round(W.x.text-Ne/2),Math.round(W.y.text-ze/2)),Z.attr({transform:"rotate("+V+","+W.x.text+","+W.y.text+")"});var Kt=function(xr,sr){$.selectAll(".annotation-arrow-g").remove();var Ct=W.x.head,ht=W.y.head,At=W.x.tail+xr,Rt=W.y.tail+sr,_t=W.x.text+xr,Ft=W.y.text+sr,Wt=C.rotationXYMatrix(V,_t,Ft),jt=C.apply2DTransform(Wt),er=C.apply2DTransform2(Wt),hr=+K.attr("width"),vr=+K.attr("height"),mr=_t-.5*hr,Ze=mr+hr,Xe=Ft-.5*vr,Ut=Xe+vr,Bt=[[mr,Xe,mr,Ut],[mr,Ut,Ze,Ut],[Ze,Ut,Ze,Xe],[Ze,Xe,mr,Xe]].map(er);if(!Bt.reduce(function(Fr,yn){return Fr^!!C.segmentsIntersect(Ct,ht,Ct+1e6,ht+1e6,yn[0],yn[1],yn[2],yn[3])},!1)){Bt.forEach(function(Fr){var yn=C.segmentsIntersect(At,Rt,Ct,ht,Fr[0],Fr[1],Fr[2],Fr[3]);yn&&(At=yn.x,Rt=yn.y)});var qt=x.arrowwidth,nr=x.arrowcolor,fr=x.arrowside,ir=$.append("g").style({opacity:m.opacity(nr)}).classed("annotation-arrow-g",!0),Ht=ir.append("path").attr("d","M"+At+","+Rt+"L"+Ct+","+ht).style("stroke-width",qt+"px").call(m.stroke,m.rgb(nr));if(u(Ht,fr,x),d.annotationPosition&&Ht.node().parentNode&&!M){var pr=Ct,br=ht;if(x.standoff){var Tr=Math.sqrt(Math.pow(Ct-At,2)+Math.pow(ht-Rt,2));pr+=x.standoff*(At-Ct)/Tr,br+=x.standoff*(Rt-ht)/Tr}var gr=ir.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(At-pr)+","+(Rt-br),transform:w(pr,br)}).style("stroke-width",qt+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)"),Xr,Dr;h.init({element:gr.node(),gd:c,prepFn:function(){var Fr=a.getTranslate(fe);Xr=Fr.x,Dr=Fr.y,R&&R.autorange&&B(R._name+".autorange",!0),T&&T.autorange&&B(T._name+".autorange",!0)},moveFn:function(Fr,yn){var un=jt(Xr,Dr),_n=un[0]+Fr,On=un[1]+yn;fe.call(a.setTranslate,_n,On),G("x",E(R,Fr,"x",P,x)),G("y",E(T,yn,"y",P,x)),x.axref===x.xref&&G("ax",E(R,Fr,"ax",P,x)),x.ayref===x.yref&&G("ay",E(T,yn,"ay",P,x)),ir.attr("transform",w(Fr,yn)),Z.attr({transform:"rotate("+V+","+_n+","+On+")"})},doneFn:function(){S.call("_guiRelayout",c,U());var Fr=document.querySelector(".js-notes-box-panel");Fr&&Fr.redraw(Fr.selectedObj)}})}}};if(x.showarrow&&Kt(0,0),q){var Qt;h.init({element:fe.node(),gd:c,prepFn:function(){Qt=Z.attr("transform")},moveFn:function(xr,sr){var Ct="pointer";if(x.showarrow)x.axref===x.xref?G("ax",E(R,xr,"ax",P,x)):G("ax",x.ax+xr),x.ayref===x.yref?G("ay",E(T,sr,"ay",P.w,x)):G("ay",x.ay+sr),Kt(xr,sr);else{if(M)return;var ht,At;if(R)ht=E(R,xr,"x",P,x);else{var Rt=x._xsize/P.w,_t=x.x+(x._xshift-x.xshift)/P.w-Rt/2;ht=h.align(_t+xr/P.w,Rt,0,1,x.xanchor)}if(T)At=E(T,sr,"y",P,x);else{var Ft=x._ysize/P.h,Wt=x.y-(x._yshift+x.yshift)/P.h-Ft/2;At=h.align(Wt-sr/P.h,Ft,0,1,x.yanchor)}G("x",ht),G("y",At),(!R||!T)&&(Ct=h.getCursor(R?.5:ht,T?.5:At,x.xanchor,x.yanchor))}Z.attr({transform:w(xr,sr)+Qt}),o(fe,Ct)},clickFn:function(xr,sr){x.captureevents&&c.emit("plotly_clickannotation",ie(sr))},doneFn:function(){o(fe),S.call("_guiRelayout",c,U());var xr=document.querySelector(".js-notes-box-panel");xr&&xr.redraw(xr.selectedObj)}})}}d.annotationText?de.call(s.makeEditable,{delegate:fe,gd:c}).call(le).on("edit",function(xe){x.text=xe,this.call(le),G("text",xe),R&&R.autorange&&B(R._name+".autorange",!0),T&&T.autorange&&B(T._name+".autorange",!0),S.call("_guiRelayout",c,U())}):de.call(le)}},33652:function(D,O,t){var l=t(33428),S=t(76308),i=t(72196),C=t(3400),w=C.strScale,v=C.strRotate,m=C.strTranslate;D.exports=function(n,s,o){var h=n.node(),f=i[o.arrowhead||0],u=i[o.startarrowhead||0],b=(o.arrowwidth||1)*(o.arrowsize||1),p=(o.arrowwidth||1)*(o.startarrowsize||1),E=s.indexOf("start")>=0,g=s.indexOf("end")>=0,c=f.backoff*b+o.standoff,x=u.backoff*p+o.startstandoff,A,M,R,T;if(h.nodeName==="line"){A={x:+n.attr("x1"),y:+n.attr("y1")},M={x:+n.attr("x2"),y:+n.attr("y2")};var L=A.x-M.x,P=A.y-M.y;if(R=Math.atan2(P,L),T=R+Math.PI,c&&x&&c+x>Math.sqrt(L*L+P*P)){Z();return}if(c){if(c*c>L*L+P*P){Z();return}var d=c*Math.cos(R),k=c*Math.sin(R);M.x+=d,M.y+=k,n.attr({x2:M.x,y2:M.y})}if(x){if(x*x>L*L+P*P){Z();return}var I=x*Math.cos(R),N=x*Math.sin(R);A.x-=I,A.y-=N,n.attr({x1:A.x,y1:A.y})}}else if(h.nodeName==="path"){var B=h.getTotalLength(),G="";if(B1){o=!0;break}}o?w.fullLayout._infolayer.select(".annotation-"+w.id+'[data-index="'+n+'"]').remove():(s._pdata=S(w.glplot.cameraParams,[v.xaxis.r2l(s.x)*m[0],v.yaxis.r2l(s.y)*m[1],v.zaxis.r2l(s.z)*m[2]]),l(w.graphDiv,s,n,w.id,s._xa,s._ya))}}},56864:function(D,O,t){var l=t(24040),S=t(3400);D.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:t(45899)}}},layoutAttributes:t(45899),handleDefaults:t(52808),includeBasePlot:i,convert:t(42456),draw:t(71836)};function i(C,w){var v=l.subplotsRegistry.gl3d;if(v)for(var m=v.attrRegex,a=Object.keys(C),n=0;n=0)))return n;if(u===3)h[u]>1&&(h[u]=1);else if(h[u]>=1)return n}var b=Math.round(h[0]*255)+", "+Math.round(h[1]*255)+", "+Math.round(h[2]*255);return f?"rgba("+b+", "+h[3]+")":"rgb("+b+")"}},42996:function(D,O,t){var l=t(94724),S=t(25376),i=t(92880).extendFlat,C=t(67824).overrideAll;D.exports=C({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:l.linecolor,outlinewidth:l.linewidth,bordercolor:l.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:l.minor.tickmode,nticks:l.nticks,tick0:l.tick0,dtick:l.dtick,tickvals:l.tickvals,ticktext:l.ticktext,ticks:i({},l.ticks,{dflt:""}),ticklabeloverflow:i({},l.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:l.ticklen,tickwidth:l.tickwidth,tickcolor:l.tickcolor,ticklabelstep:l.ticklabelstep,showticklabels:l.showticklabels,labelalias:l.labelalias,tickfont:S({}),tickangle:l.tickangle,tickformat:l.tickformat,tickformatstops:l.tickformatstops,tickprefix:l.tickprefix,showtickprefix:l.showtickprefix,ticksuffix:l.ticksuffix,showticksuffix:l.showticksuffix,separatethousands:l.separatethousands,exponentformat:l.exponentformat,minexponent:l.minexponent,showexponent:l.showexponent,title:{text:{valType:"string"},font:S({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:S({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(D){D.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(D,O,t){var l=t(3400),S=t(31780),i=t(26332),C=t(25404),w=t(95936),v=t(42568),m=t(42996);D.exports=function(n,s,o){var h=S.newContainer(s,"colorbar"),f=n.colorbar||{};function u(W,V){return l.coerce(f,h,m,W,V)}var b=o.margin||{t:0,b:0,l:0,r:0},p=o.width-b.l-b.r,E=o.height-b.t-b.b,g=u("orientation"),c=g==="v",x=u("thicknessmode");u("thickness",x==="fraction"?30/(c?p:E):30);var A=u("lenmode");u("len",A==="fraction"?1:c?E:p);var M=u("yref"),R=u("xref"),T=M==="paper",L=R==="paper",P,d,k,I="left";c?(k="middle",I=L?"left":"right",P=L?1.02:1,d=.5):(k=T?"bottom":"top",I="center",P=.5,d=T?1.02:1),l.coerce(f,h,{x:{valType:"number",min:L?-2:0,max:L?3:1,dflt:P}},"x"),l.coerce(f,h,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:d}},"y"),u("xanchor",I),u("xpad"),u("yanchor",k),u("ypad"),l.noneOrAll(f,h,["x","y"]),u("outlinecolor"),u("outlinewidth"),u("bordercolor"),u("borderwidth"),u("bgcolor");var N=l.coerce(f,h,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");u("ticklabeloverflow",N.indexOf("inside")!==-1?"hide past domain":"hide past div"),i(f,h,u,"linear");var B=o.font,G={noAutotickangles:!0,outerTicks:!1,font:B};N.indexOf("inside")!==-1&&(G.bgColor="black"),v(f,h,u,"linear",G),w(f,h,u,"linear",G),C(f,h,u,"linear",G),u("title.text",o._dfltTitle.colorbar);var U=h.showticklabels?h.tickfont:B,H=l.extendFlat({},U,{color:B.color,size:l.bigFont(U.size)});l.coerceFont(u,"title.font",H),u("title.side",c?"top":"right")}},37848:function(D,O,t){var l=t(33428),S=t(49760),i=t(7316),C=t(24040),w=t(54460),v=t(86476),m=t(3400),a=m.strTranslate,n=t(92880).extendFlat,s=t(93972),o=t(43616),h=t(76308),f=t(81668),u=t(72736),b=t(94288).flipScale,p=t(28336),E=t(37668),g=t(94724),c=t(84284),x=c.LINE_SPACING,A=c.FROM_TL,M=c.FROM_BR,R=t(63964).cn;function T(N){var B=N._fullLayout,G=B._infolayer.selectAll("g."+R.colorbar).data(L(N),function(U){return U._id});G.enter().append("g").attr("class",function(U){return U._id}).classed(R.colorbar,!0),G.each(function(U){var H=l.select(this);m.ensureSingle(H,"rect",R.cbbg),m.ensureSingle(H,"g",R.cbfills),m.ensureSingle(H,"g",R.cblines),m.ensureSingle(H,"g",R.cbaxis,function(V){V.classed(R.crisp,!0)}),m.ensureSingle(H,"g",R.cbtitleunshift,function(V){V.append("g").classed(R.cbtitle,!0)}),m.ensureSingle(H,"rect",R.cboutline);var W=P(H,U,N);W&&W.then&&(N._promises||[]).push(W),N._context.edits.colorbarPosition&&d(H,U,N)}),G.exit().each(function(U){i.autoMargin(N,U._id)}).remove(),G.order()}function L(N){var B=N._fullLayout,G=N.calcdata,U=[],H,W,V,$;function Z(re){return n(re,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function q(){typeof $.calc=="function"?$.calc(N,V,H):(H._fillgradient=W.reversescale?b(W.colorscale):W.colorscale,H._zrange=[W[$.min],W[$.max]])}for(var ae=0;ae1){var We=Math.pow(10,Math.floor(Math.log(Ke)/Math.LN10));Be*=We*m.roundUp(Ke/We,[2,5,10]),(Math.abs(Te.start)/Te.size+1e-6)%1<2e-6&&(wt.tick0=0)}wt.dtick=Be}wt.domain=U?[lt+J/ee.h,lt+$e-J/ee.h]:[lt+Q/ee.w,lt+$e-Q/ee.w],wt.setScale(),N.attr("transform",a(Math.round(ee.l),Math.round(ee.t)));var Fe=N.select("."+R.cbtitleunshift).attr("transform",a(-Math.round(ee.l),-Math.round(ee.t))),Me=wt.ticklabelposition,we=wt.title.font.size,Re=N.select("."+R.cbaxis),Pe,Ve=0,Je=0;function ot(xt,Lt){var Xt={propContainer:wt,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:re._dfltTitle.colorbar,containerGroup:N.select("."+R.cbtitle)},dr=xt.charAt(0)==="h"?xt.substr(1):"h"+xt;N.selectAll("."+dr+",."+dr+"-math-group").remove(),f.draw(G,xt,n(Xt,Lt||{}))}function yt(){if(U&&et||!U&&!et){var xt,Lt;xe==="top"&&(xt=Q+ee.l+st*oe,Lt=J+ee.t+vt*(1-lt-$e)+3+we*.75),xe==="bottom"&&(xt=Q+ee.l+st*oe,Lt=J+ee.t+vt*(1-lt)-3-we*.25),xe==="right"&&(Lt=J+ee.t+vt*K+3+we*.75,xt=Q+ee.l+st*lt),ot(wt._id+"title",{attributes:{x:xt,y:Lt,"text-anchor":U?"start":"middle"}})}}function ut(){if(U&&!et||!U&&et){var xt=wt.position||0,Lt=wt._offset+wt._length/2,Xt,dr;if(xe==="right")dr=Lt,Xt=ee.l+st*xt+10+we*(wt.showticklabels?1:.5);else if(Xt=Lt,xe==="bottom"&&(dr=ee.t+vt*xt+10+(Me.indexOf("inside")===-1?wt.tickfont.size:0)+(wt.ticks!=="intside"&&B.ticklen||0)),xe==="top"){var Tt=he.text.split("
").length;dr=ee.t+vt*xt+10-Ue-x*we*Tt}ot((U?"h":"v")+wt._id+"title",{avoid:{selection:l.select(G).selectAll("g."+wt._id+"tick"),side:xe,offsetTop:U?0:ee.t,offsetLeft:U?ee.l:0,maxShift:U?re.width:re.height},attributes:{x:Xt,y:dr,"text-anchor":"middle"},transform:{rotate:U?-90:0,offset:0}})}}function It(){if(!U&&!et||U&&et){var xt=N.select("."+R.cbtitle),Lt=xt.select("text"),Xt=[-Z/2,Z/2],dr=xt.select(".h"+wt._id+"title-math-group").node(),Tt=15.6;Lt.node()&&(Tt=parseInt(Lt.node().style.fontSize,10)*x);var Kt;if(dr?(Kt=o.bBox(dr),Je=Kt.width,Ve=Kt.height,Ve>Tt&&(Xt[1]-=(Ve-Tt)/2)):Lt.node()&&!Lt.classed(R.jsPlaceholder)&&(Kt=o.bBox(Lt.node()),Je=Kt.width,Ve=Kt.height),U){if(Ve){if(Ve+=5,xe==="top")wt.domain[1]-=Ve/ee.h,Xt[1]*=-1;else{wt.domain[0]+=Ve/ee.h;var Qt=u.lineCount(Lt);Xt[1]+=(1-Qt)*Tt}xt.attr("transform",a(Xt[0],Xt[1])),wt.setScale()}}else Je&&(xe==="right"&&(wt.domain[0]+=(Je+we/2)/ee.w),xt.attr("transform",a(Xt[0],Xt[1])),wt.setScale())}N.selectAll("."+R.cbfills+",."+R.cblines).attr("transform",U?a(0,Math.round(ee.h*(1-wt.domain[1]))):a(Math.round(ee.w*wt.domain[0]),0)),Re.attr("transform",U?a(0,Math.round(-ee.t)):a(Math.round(-ee.l),0));var xr=N.select("."+R.cbfills).selectAll("rect."+R.cbfill).attr("style","").data(be);xr.enter().append("rect").classed(R.cbfill,!0).attr("style",""),xr.exit().remove();var sr=Ee.map(wt.c2p).map(Math.round).sort(function(_t,Ft){return _t-Ft});xr.each(function(_t,Ft){var Wt=[Ft===0?Ee[0]:(be[Ft]+be[Ft-1])/2,Ft===be.length-1?Ee[1]:(be[Ft]+be[Ft+1])/2].map(wt.c2p).map(Math.round);U&&(Wt[1]=m.constrain(Wt[1]+(Wt[1]>Wt[0])?1:-1,sr[0],sr[1]));var jt=l.select(this).attr(U?"x":"y",at).attr(U?"y":"x",l.min(Wt)).attr(U?"width":"height",Math.max(Ue,2)).attr(U?"height":"width",Math.max(l.max(Wt)-l.min(Wt),2));if(B._fillgradient)o.gradient(jt,G,B._id,U?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var er=ke(_t).replace("e-","");jt.attr("fill",S(er).toHexString())}});var Ct=N.select("."+R.cblines).selectAll("path."+R.cbline).data(le.color&&le.width?Ie:[]);Ct.enter().append("path").classed(R.cbline,!0),Ct.exit().remove(),Ct.each(function(_t){var Ft=at,Wt=Math.round(wt.c2p(_t))+le.width/2%1;l.select(this).attr("d","M"+(U?Ft+","+Wt:Wt+","+Ft)+(U?"h":"v")+Ue).call(o.lineGroupStyle,le.width,Se(_t),le.dash)}),Re.selectAll("g."+wt._id+"tick,path").remove();var ht=at+Ue+(Z||0)/2-(B.ticks==="outside"?1:0),At=w.calcTicks(wt),Rt=w.getTickSigns(wt)[2];return w.drawTicks(G,wt,{vals:wt.ticks==="inside"?w.clipEnds(wt,At):At,layer:Re,path:w.makeTickPath(wt,ht,Rt),transFn:w.makeTransTickFn(wt)}),w.drawLabels(G,wt,{vals:At,layer:Re,transFn:w.makeTransTickLabelFn(wt),labelFns:w.makeLabelFns(wt,ht)})}function Vt(){var xt,Lt=Ue+Z/2;Me.indexOf("inside")===-1&&(xt=o.bBox(Re.node()),Lt+=U?xt.width:xt.height),Pe=Fe.select("text");var Xt=0,dr=U&&xe==="top",Tt=!U&&xe==="right",Kt=0;if(Pe.node()&&!Pe.classed(R.jsPlaceholder)){var Qt,xr=Fe.select(".h"+wt._id+"title-math-group").node();xr&&(U&&et||!U&&!et)?(xt=o.bBox(xr),Xt=xt.width,Qt=xt.height):(xt=o.bBox(Fe.node()),Xt=xt.right-ee.l-(U?at:dt),Qt=xt.bottom-ee.t-(U?dt:at),!U&&xe==="top"&&(Lt+=xt.height,Kt=xt.height)),Tt&&(Pe.attr("transform",a(Xt/2+we/2,0)),Xt*=2),Lt=Math.max(Lt,U?Xt:Qt)}var sr=(U?Q:J)*2+Lt+q+Z/2,Ct=0;!U&&he.text&&fe==="bottom"&&K<=0&&(Ct=sr/2,sr+=Ct,Kt+=Ct),re._hColorbarMoveTitle=Ct,re._hColorbarMoveCBTitle=Kt;var ht=q+Z,At=(U?at:dt)-ht/2-(U?Q:0),Rt=(U?dt:at)-(U?ze:J+Kt-Ct);N.select("."+R.cbbg).attr("x",At).attr("y",Rt).attr(U?"width":"height",Math.max(sr-Ct,2)).attr(U?"height":"width",Math.max(ze+ht,2)).call(h.fill,ae).call(h.stroke,B.bordercolor).style("stroke-width",q);var _t=Tt?Math.max(Xt-10,0):0;N.selectAll("."+R.cboutline).attr("x",(U?at:dt+Q)+_t).attr("y",(U?dt+J-ze:at)+(dr?Ve:0)).attr(U?"width":"height",Math.max(Ue,2)).attr(U?"height":"width",Math.max(ze-(U?2*J+Ve:2*Q+_t),2)).call(h.stroke,B.outlinecolor).style({fill:"none","stroke-width":Z});var Ft=U?nt*sr:0,Wt=U?0:(1-mt)*sr-Kt;if(Ft=ce?ee.l-Ft:-Ft,Wt=ne?ee.t-Wt:-Wt,N.attr("transform",a(Ft,Wt)),!U&&(q||S(ae).getAlpha()&&!S.equals(re.paper_bgcolor,ae))){var jt=Re.selectAll("text"),er=jt[0].length,hr=N.select("."+R.cbbg).node(),vr=o.bBox(hr),mr=o.getTranslate(N),Ze=2;jt.each(function(br,Tr){var gr=0,Xr=er-1;if(Tr===gr||Tr===Xr){var Dr=o.bBox(this),Fr=o.getTranslate(this),yn;if(Tr===Xr){var un=Dr.right+Fr.x,_n=vr.right+mr.x+dt-q-Ze+oe;yn=_n-un,yn>0&&(yn=0)}else if(Tr===gr){var On=Dr.left+Fr.x,Mr=vr.left+mr.x+dt+q+Ze;yn=Mr-On,yn<0&&(yn=0)}yn&&(er<3?this.setAttribute("transform","translate("+yn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Xe={},Ut=A[ie],Bt=M[ie],qt=A[fe],nr=M[fe],fr=sr-Ue;U?(W==="pixels"?(Xe.y=K,Xe.t=ze*qt,Xe.b=ze*nr):(Xe.t=Xe.b=0,Xe.yt=K+H*qt,Xe.yb=K-H*nr),$==="pixels"?(Xe.x=oe,Xe.l=sr*Ut,Xe.r=sr*Bt):(Xe.l=fr*Ut,Xe.r=fr*Bt,Xe.xl=oe-V*Ut,Xe.xr=oe+V*Bt)):(W==="pixels"?(Xe.x=oe,Xe.l=ze*Ut,Xe.r=ze*Bt):(Xe.l=Xe.r=0,Xe.xl=oe+H*Ut,Xe.xr=oe-H*Bt),$==="pixels"?(Xe.y=1-K,Xe.t=sr*qt,Xe.b=sr*nr):(Xe.t=fr*qt,Xe.b=fr*nr,Xe.yt=K-V*qt,Xe.yb=K+V*nr));var ir=B.y<.5?"b":"t",Ht=B.x<.5?"l":"r";G._fullLayout._reservedMargin[B._id]={};var pr={r:re.width-At-Ft,l:At+Xe.r,b:re.height-Rt-Wt,t:Rt+Xe.b};ce&&ne?i.autoMargin(G,B._id,Xe):ce?G._fullLayout._reservedMargin[B._id][ir]=pr[ir]:ne||U?G._fullLayout._reservedMargin[B._id][Ht]=pr[Ht]:G._fullLayout._reservedMargin[B._id][ir]=pr[ir]}return m.syncOrAsync([i.previousPromises,yt,It,ut,i.previousPromises,Vt],G)}function d(N,B,G){var U=B.orientation==="v",H=G._fullLayout,W=H._size,V,$,Z;v.init({element:N.node(),gd:G,prepFn:function(){V=N.attr("transform"),s(N)},moveFn:function(q,ae){N.attr("transform",V+a(q,ae)),$=v.align((U?B._uFrac:B._vFrac)+q/W.w,U?B._thickFrac:B._lenFrac,0,1,B.xanchor),Z=v.align((U?B._vFrac:1-B._uFrac)-ae/W.h,U?B._lenFrac:B._thickFrac,0,1,B.yanchor);var ie=v.getCursor($,Z,B.xanchor,B.yanchor);s(N,ie)},doneFn:function(){if(s(N),$!==void 0&&Z!==void 0){var q={};q[B._propPrefix+"x"]=$,q[B._propPrefix+"y"]=Z,B._traceIndex!==void 0?C.call("_guiRestyle",G,q,B._traceIndex):C.call("_guiRelayout",G,q)}}})}function k(N,B,G){var U=B._levels,H=[],W=[],V,$,Z=U.end+U.size/100,q=U.size,ae=1.001*G[0]-.001*G[1],ie=1.001*G[1]-.001*G[0];for($=0;$<1e5&&(V=U.start+$*q,!(q>0?V>=Z:V<=Z));$++)V>ae&&V0?V>=Z:V<=Z));$++)V>G[0]&&Vp-u?u=p-(b-p):b-p=0?c=a.colorscale.sequential:c=a.colorscale.sequentialminus,h._sync("colorscale",c)}}},95504:function(D,O,t){var l=t(3400),S=t(94288).hasColorscale,i=t(94288).extractOpts;D.exports=function(w,v){function m(u,b){var p=u["_"+b];p!==void 0&&(u[b]=p)}function a(u,b){var p=b.container?l.nestedProperty(u,b.container).get():u;if(p)if(p.coloraxis)p._colorAx=v[p.coloraxis];else{var E=i(p),g=E.auto;(g||E.min===void 0)&&m(p,b.min),(g||E.max===void 0)&&m(p,b.max),E.autocolorscale&&m(p,"colorscale")}}for(var n=0;n=0;c--,x++){var A=p[c];g[x]=[1-A[0],A[1]]}return g}function f(p,E){E=E||{};for(var g=p.domain,c=p.range,x=c.length,A=new Array(x),M=0;M1.3333333333333333-m?v:m}},67416:function(D,O,t){var l=t(3400),S=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];D.exports=function(C,w,v,m){return v==="left"?C=0:v==="center"?C=1:v==="right"?C=2:C=l.constrain(Math.floor(C*3),0,2),m==="bottom"?w=0:m==="middle"?w=1:m==="top"?w=2:w=l.constrain(Math.floor(w*3),0,2),S[w][C]}},72760:function(D,O){O.selectMode=function(t){return t==="lasso"||t==="select"},O.drawMode=function(t){return t==="drawclosedpath"||t==="drawopenpath"||t==="drawline"||t==="drawrect"||t==="drawcircle"},O.openMode=function(t){return t==="drawline"||t==="drawopenpath"},O.rectMode=function(t){return t==="select"||t==="drawline"||t==="drawrect"||t==="drawcircle"},O.freeMode=function(t){return t==="lasso"||t==="drawclosedpath"||t==="drawopenpath"},O.selectingOrDrawing=function(t){return O.freeMode(t)||O.rectMode(t)}},86476:function(D,O,t){var l=t(29128),S=t(52264),i=t(89184),C=t(3400).removeElement,w=t(33816),v=D.exports={};v.align=t(78316),v.getCursor=t(67416);var m=t(2616);v.unhover=m.wrapped,v.unhoverRaw=m.raw,v.init=function(o){var h=o.gd,f=1,u=h._context.doubleClickDelay,b=o.element,p,E,g,c,x,A,M,R;h._mouseDownTime||(h._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=P,i?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=P,b.addEventListener("touchstart",P,{passive:!1})):b.ontouchstart=P;function T(I,N,B){return Math.abs(I)"u"&&typeof I.clientY>"u"&&(I.clientX=p,I.clientY=E),g=new Date().getTime(),g-h._mouseDownTimeu&&(f=Math.max(f-1,1)),h._dragged)o.doneFn&&o.doneFn();else if(o.clickFn&&o.clickFn(f,A),!R){var N;try{N=new MouseEvent("click",I)}catch{var B=n(I);N=document.createEvent("MouseEvents"),N.initMouseEvent("click",I.bubbles,I.cancelable,I.view,I.detail,I.screenX,I.screenY,B[0],B[1],I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget)}M.dispatchEvent(N)}h._dragging=!1,h._dragged=!1}};function a(){var s=document.createElement("div");s.className="dragcover";var o=s.style;return o.position="fixed",o.left=0,o.right=0,o.top=0,o.bottom=0,o.zIndex=999999999,o.background="none",document.body.appendChild(s),s}v.coverSlip=a;function n(s){return l(s.changedTouches?s.changedTouches[0]:s,document.body)}},2616:function(D,O,t){var l=t(95924),S=t(91200),i=t(52200).getGraphDiv,C=t(92456),w=D.exports={};w.wrapped=function(v,m,a){v=i(v),v._fullLayout&&S.clear(v._fullLayout._uid+C.HOVERID),w.raw(v,m,a)},w.raw=function(m,a){var n=m._fullLayout,s=m._hoverdata;a||(a={}),!(a.target&&!m._dragged&&l.triggerHandler(m,"plotly_beforehover",a)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),m._hoverdata=void 0,a.target&&s&&m.emit("plotly_unhover",{event:a,points:s}))}},98192:function(D,O){O.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},O.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(D,O,t){var l=t(33428),S=t(3400),i=S.numberFormat,C=t(38248),w=t(49760),v=t(24040),m=t(76308),a=t(8932),n=S.strTranslate,s=t(72736),o=t(9616),h=t(84284),f=h.LINE_SPACING,u=t(13448).DESELECTDIM,b=t(43028),p=t(7152),E=t(10624).appendArrayPointValue,g=D.exports={};g.font=function(Te,Ae,be,Ie){S.isPlainObject(Ae)&&(Ie=Ae.color,be=Ae.size,Ae=Ae.family),Ae&&Te.style("font-family",Ae),be+1&&Te.style("font-size",be+"px"),Ie&&Te.call(m.fill,Ie)},g.setPosition=function(Te,Ae,be){Te.attr("x",Ae).attr("y",be)},g.setSize=function(Te,Ae,be){Te.attr("width",Ae).attr("height",be)},g.setRect=function(Te,Ae,be,Ie,Ue){Te.call(g.setPosition,Ae,be).call(g.setSize,Ie,Ue)},g.translatePoint=function(Te,Ae,be,Ie){var Ue=be.c2p(Te.x),Ne=Ie.c2p(Te.y);if(C(Ue)&&C(Ne)&&Ae.node())Ae.node().nodeName==="text"?Ae.attr("x",Ue).attr("y",Ne):Ae.attr("transform",n(Ue,Ne));else return!1;return!0},g.translatePoints=function(Te,Ae,be){Te.each(function(Ie){var Ue=l.select(this);g.translatePoint(Ie,Ue,Ae,be)})},g.hideOutsideRangePoint=function(Te,Ae,be,Ie,Ue,Ne){Ae.attr("display",be.isPtWithinRange(Te,Ue)&&Ie.isPtWithinRange(Te,Ne)?null:"none")},g.hideOutsideRangePoints=function(Te,Ae){if(Ae._hasClipOnAxisFalse){var be=Ae.xaxis,Ie=Ae.yaxis;Te.each(function(Ue){var Ne=Ue[0].trace,ze=Ne.xcalendar,$e=Ne.ycalendar,st=v.traceIs(Ne,"bar-like")?".bartext":".point,.textpoint";Te.selectAll(st).each(function(vt){g.hideOutsideRangePoint(vt,l.select(this),be,Ie,ze,$e)})})}},g.crispRound=function(Te,Ae,be){return!Ae||!C(Ae)?be||0:Te._context.staticPlot?Ae:Ae<1?1:Math.round(Ae)},g.singleLineStyle=function(Te,Ae,be,Ie,Ue){Ae.style("fill","none");var Ne=(((Te||[])[0]||{}).trace||{}).line||{},ze=be||Ne.width||0,$e=Ue||Ne.dash||"";m.stroke(Ae,Ie||Ne.color),g.dashLine(Ae,$e,ze)},g.lineGroupStyle=function(Te,Ae,be,Ie){Te.style("fill","none").each(function(Ue){var Ne=(((Ue||[])[0]||{}).trace||{}).line||{},ze=Ae||Ne.width||0,$e=Ie||Ne.dash||"";l.select(this).call(m.stroke,be||Ne.color).call(g.dashLine,$e,ze)})},g.dashLine=function(Te,Ae,be){be=+be||0,Ae=g.dashStyle(Ae,be),Te.style({"stroke-dasharray":Ae,"stroke-width":be+"px"})},g.dashStyle=function(Te,Ae){Ae=+Ae||1;var be=Math.max(Ae,3);return Te==="solid"?Te="":Te==="dot"?Te=be+"px,"+be+"px":Te==="dash"?Te=3*be+"px,"+3*be+"px":Te==="longdash"?Te=5*be+"px,"+5*be+"px":Te==="dashdot"?Te=3*be+"px,"+be+"px,"+be+"px,"+be+"px":Te==="longdashdot"&&(Te=5*be+"px,"+2*be+"px,"+be+"px,"+2*be+"px"),Te};function c(Te,Ae,be,Ie){var Ue=Ae.fillpattern,Ne=Ae.fillgradient,ze=Ue&&g.getPatternAttr(Ue.shape,0,"");if(ze){var $e=g.getPatternAttr(Ue.bgcolor,0,null),st=g.getPatternAttr(Ue.fgcolor,0,null),vt=Ue.fgopacity,at=g.getPatternAttr(Ue.size,0,8),nt=g.getPatternAttr(Ue.solidity,0,.3),mt=Ae.uid;g.pattern(Te,"point",be,mt,ze,at,nt,void 0,Ue.fillmode,$e,st,vt)}else if(Ne&&Ne.type!=="none"){var rt=Ne.type,lt="scatterfill-"+Ae.uid;if(Ie&&(lt="legendfill-"+Ae.uid),!Ie&&(Ne.start!==void 0||Ne.stop!==void 0)){var dt,wt;rt==="horizontal"?(dt={x:Ne.start,y:0},wt={x:Ne.stop,y:0}):rt==="vertical"&&(dt={x:0,y:Ne.start},wt={x:0,y:Ne.stop}),dt.x=Ae._xA.c2p(dt.x===void 0?Ae._extremes.x.min[0].val:dt.x,!0),dt.y=Ae._yA.c2p(dt.y===void 0?Ae._extremes.y.min[0].val:dt.y,!0),wt.x=Ae._xA.c2p(wt.x===void 0?Ae._extremes.x.max[0].val:wt.x,!0),wt.y=Ae._yA.c2p(wt.y===void 0?Ae._extremes.y.max[0].val:wt.y,!0),Te.call(P,be,lt,"linear",Ne.colorscale,"fill",dt,wt,!0,!1)}else rt==="horizontal"&&(rt=rt+"reversed"),Te.call(g.gradient,be,lt,rt,Ne.colorscale,"fill")}else Ae.fillcolor&&Te.call(m.fill,Ae.fillcolor)}g.singleFillStyle=function(Te,Ae){var be=l.select(Te.node()),Ie=be.data(),Ue=((Ie[0]||[])[0]||{}).trace||{};c(Te,Ue,Ae,!1)},g.fillGroupStyle=function(Te,Ae,be){Te.style("stroke-width",0).each(function(Ie){var Ue=l.select(this);Ie[0].trace&&c(Ue,Ie[0].trace,Ae,be)})};var x=t(71984);g.symbolNames=[],g.symbolFuncs=[],g.symbolBackOffs=[],g.symbolNeedLines={},g.symbolNoDot={},g.symbolNoFill={},g.symbolList=[],Object.keys(x).forEach(function(Te){var Ae=x[Te],be=Ae.n;g.symbolList.push(be,String(be),Te,be+100,String(be+100),Te+"-open"),g.symbolNames[be]=Te,g.symbolFuncs[be]=Ae.f,g.symbolBackOffs[be]=Ae.backoff||0,Ae.needLine&&(g.symbolNeedLines[be]=!0),Ae.noDot?g.symbolNoDot[be]=!0:g.symbolList.push(be+200,String(be+200),Te+"-dot",be+300,String(be+300),Te+"-open-dot"),Ae.noFill&&(g.symbolNoFill[be]=!0)});var A=g.symbolNames.length,M="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";g.symbolNumber=function(Te){if(C(Te))Te=+Te;else if(typeof Te=="string"){var Ae=0;Te.indexOf("-open")>0&&(Ae=100,Te=Te.replace("-open","")),Te.indexOf("-dot")>0&&(Ae+=200,Te=Te.replace("-dot","")),Te=g.symbolNames.indexOf(Te),Te>=0&&(Te+=Ae)}return Te%100>=A||Te>=400?0:Math.floor(Math.max(Te,0))};function R(Te,Ae,be,Ie){var Ue=Te%100;return g.symbolFuncs[Ue](Ae,be,Ie)+(Te>=200?M:"")}var T=i("~f"),L={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};g.gradient=function(Te,Ae,be,Ie,Ue,Ne){var ze=L[Ie];return P(Te,Ae,be,ze.type,Ue,Ne,ze.start,ze.stop,!1,ze.reversed)};function P(Te,Ae,be,Ie,Ue,Ne,ze,$e,st,vt){var at=Ue.length,nt;Ie==="linear"?nt={node:"linearGradient",attrs:{x1:ze.x,y1:ze.y,x2:$e.x,y2:$e.y,gradientUnits:st?"userSpaceOnUse":"objectBoundingBox"},reversed:vt}:Ie==="radial"&&(nt={node:"radialGradient",reversed:vt});for(var mt=new Array(at),rt=0;rt=0&&Te.i===void 0&&(Te.i=Ne.i),Ae.style("opacity",Ie.selectedOpacityFn?Ie.selectedOpacityFn(Te):Te.mo===void 0?ze.opacity:Te.mo),Ie.ms2mrc){var st;Te.ms==="various"||ze.size==="various"?st=3:st=Ie.ms2mrc(Te.ms),Te.mrc=st,Ie.selectedSizeFn&&(st=Te.mrc=Ie.selectedSizeFn(Te));var vt=g.symbolNumber(Te.mx||ze.symbol)||0;Te.om=vt%200>=100;var at=ke(Te,be),nt=K(Te,be);Ae.attr("d",R(vt,st,at,nt))}var mt=!1,rt,lt,dt;if(Te.so)dt=$e.outlierwidth,lt=$e.outliercolor,rt=ze.outliercolor;else{var wt=($e||{}).width;dt=(Te.mlw+1||wt+1||(Te.trace?(Te.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Te?lt=Te.mlcc=Ie.lineScale(Te.mlc):S.isArrayOrTypedArray($e.color)?lt=m.defaultLine:lt=$e.color,S.isArrayOrTypedArray(ze.color)&&(rt=m.defaultLine,mt=!0),"mc"in Te?rt=Te.mcc=Ie.markerScale(Te.mc):rt=ze.color||ze.colors||"rgba(0,0,0,0)",Ie.selectedColorFn&&(rt=Ie.selectedColorFn(Te))}if(Te.om)Ae.call(m.stroke,rt).style({"stroke-width":(dt||1)+"px",fill:"none"});else{Ae.style("stroke-width",(Te.isBlank?0:dt)+"px");var et=ze.gradient,Be=Te.mgt;Be?mt=!0:Be=et&&et.type,S.isArrayOrTypedArray(Be)&&(Be=Be[0],L[Be]||(Be=0));var Ye=ze.pattern,Ke=Ye&&g.getPatternAttr(Ye.shape,Te.i,"");if(Be&&Be!=="none"){var We=Te.mgc;We?mt=!0:We=et.color;var Fe=be.uid;mt&&(Fe+="-"+Te.i),g.gradient(Ae,Ue,Fe,Be,[[0,We],[1,rt]],"fill")}else if(Ke){var Me=!1,we=Ye.fgcolor;!we&&Ne&&Ne.color&&(we=Ne.color,Me=!0);var Re=g.getPatternAttr(we,Te.i,Ne&&Ne.color||null),Pe=g.getPatternAttr(Ye.bgcolor,Te.i,null),Ve=Ye.fgopacity,Je=g.getPatternAttr(Ye.size,Te.i,8),ot=g.getPatternAttr(Ye.solidity,Te.i,.3);Me=Me||Te.mcc||S.isArrayOrTypedArray(Ye.shape)||S.isArrayOrTypedArray(Ye.bgcolor)||S.isArrayOrTypedArray(Ye.fgcolor)||S.isArrayOrTypedArray(Ye.size)||S.isArrayOrTypedArray(Ye.solidity);var yt=be.uid;Me&&(yt+="-"+Te.i),g.pattern(Ae,"point",Ue,yt,Ke,Je,ot,Te.mcc,Ye.fillmode,Pe,Re,Ve)}else S.isArrayOrTypedArray(rt)?m.fill(Ae,rt[Te.i]):m.fill(Ae,rt);dt&&m.stroke(Ae,lt)}},g.makePointStyleFns=function(Te){var Ae={},be=Te.marker;return Ae.markerScale=g.tryColorscale(be,""),Ae.lineScale=g.tryColorscale(be,"line"),v.traceIs(Te,"symbols")&&(Ae.ms2mrc=b.isBubble(Te)?p(Te):function(){return(be.size||6)/2}),Te.selectedpoints&&S.extendFlat(Ae,g.makeSelectedPointStyleFns(Te)),Ae},g.makeSelectedPointStyleFns=function(Te){var Ae={},be=Te.selected||{},Ie=Te.unselected||{},Ue=Te.marker||{},Ne=be.marker||{},ze=Ie.marker||{},$e=Ue.opacity,st=Ne.opacity,vt=ze.opacity,at=st!==void 0,nt=vt!==void 0;(S.isArrayOrTypedArray($e)||at||nt)&&(Ae.selectedOpacityFn=function(Ke){var We=Ke.mo===void 0?Ue.opacity:Ke.mo;return Ke.selected?at?st:We:nt?vt:u*We});var mt=Ue.color,rt=Ne.color,lt=ze.color;(rt||lt)&&(Ae.selectedColorFn=function(Ke){var We=Ke.mcc||mt;return Ke.selected?rt||We:lt||We});var dt=Ue.size,wt=Ne.size,et=ze.size,Be=wt!==void 0,Ye=et!==void 0;return v.traceIs(Te,"symbols")&&(Be||Ye)&&(Ae.selectedSizeFn=function(Ke){var We=Ke.mrc||dt/2;return Ke.selected?Be?wt/2:We:Ye?et/2:We}),Ae},g.makeSelectedTextStyleFns=function(Te){var Ae={},be=Te.selected||{},Ie=Te.unselected||{},Ue=Te.textfont||{},Ne=be.textfont||{},ze=Ie.textfont||{},$e=Ue.color,st=Ne.color,vt=ze.color;return Ae.selectedTextColorFn=function(at){var nt=at.tc||$e;return at.selected?st||nt:vt||(st?nt:m.addOpacity(nt,u))},Ae},g.selectedPointStyle=function(Te,Ae){if(!(!Te.size()||!Ae.selectedpoints)){var be=g.makeSelectedPointStyleFns(Ae),Ie=Ae.marker||{},Ue=[];be.selectedOpacityFn&&Ue.push(function(Ne,ze){Ne.style("opacity",be.selectedOpacityFn(ze))}),be.selectedColorFn&&Ue.push(function(Ne,ze){m.fill(Ne,be.selectedColorFn(ze))}),be.selectedSizeFn&&Ue.push(function(Ne,ze){var $e=ze.mx||Ie.symbol||0,st=be.selectedSizeFn(ze);Ne.attr("d",R(g.symbolNumber($e),st,ke(ze,Ae),K(ze,Ae))),ze.mrc2=st}),Ue.length&&Te.each(function(Ne){for(var ze=l.select(this),$e=0;$e0?be:0}g.textPointStyle=function(Te,Ae,be){if(Te.size()){var Ie;if(Ae.selectedpoints){var Ue=g.makeSelectedTextStyleFns(Ae);Ie=Ue.selectedTextColorFn}var Ne=Ae.texttemplate,ze=be._fullLayout;Te.each(function($e){var st=l.select(this),vt=Ne?S.extractOption($e,Ae,"txt","texttemplate"):S.extractOption($e,Ae,"tx","text");if(!vt&&vt!==0){st.remove();return}if(Ne){var at=Ae._module.formatLabels,nt=at?at($e,Ae,ze):{},mt={};E(mt,Ae,$e.i);var rt=Ae._meta||{};vt=S.texttemplateString(vt,nt,ze._d3locale,mt,$e,rt)}var lt=$e.tp||Ae.textposition,dt=I($e,Ae),wt=Ie?Ie($e):$e.tc||Ae.textfont.color;st.call(g.font,$e.tf||Ae.textfont.family,dt,wt).text(vt).call(s.convertToTspans,be).call(k,lt,dt,$e.mrc)})}},g.selectedTextStyle=function(Te,Ae){if(!(!Te.size()||!Ae.selectedpoints)){var be=g.makeSelectedTextStyleFns(Ae);Te.each(function(Ie){var Ue=l.select(this),Ne=be.selectedTextColorFn(Ie),ze=Ie.tp||Ae.textposition,$e=I(Ie,Ae);m.fill(Ue,Ne);var st=v.traceIs(Ae,"bar-like");k(Ue,ze,$e,Ie.mrc2||Ie.mrc,st)})}};var N=.5;g.smoothopen=function(Te,Ae){if(Te.length<3)return"M"+Te.join("L");var be="M"+Te[0],Ie=[],Ue;for(Ue=1;Ue=st||Ke>=at&&Ke<=st)&&(We<=nt&&We>=vt||We>=nt&&We<=vt)&&(Te=[Ke,We])}return Te}g.applyBackoff=q,g.makeTester=function(){var Te=S.ensureSingleById(l.select("body"),"svg","js-plotly-tester",function(be){be.attr(o.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ae=S.ensureSingle(Te,"path","js-reference-point",function(be){be.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});g.tester=Te,g.testref=Ae},g.savedBBoxes={};var ae=0,ie=1e4;g.bBox=function(Te,Ae,be){be||(be=fe(Te));var Ie;if(be){if(Ie=g.savedBBoxes[be],Ie)return S.extendFlat({},Ie)}else if(Te.childNodes.length===1){var Ue=Te.childNodes[0];if(be=fe(Ue),be){var Ne=+Ue.getAttribute("x")||0,ze=+Ue.getAttribute("y")||0,$e=Ue.getAttribute("transform");if(!$e){var st=g.bBox(Ue,!1,be);return Ne&&(st.left+=Ne,st.right+=Ne),ze&&(st.top+=ze,st.bottom+=ze),st}if(be+="~"+Ne+"~"+ze+"~"+$e,Ie=g.savedBBoxes[be],Ie)return S.extendFlat({},Ie)}}var vt,at;Ae?vt=Te:(at=g.tester.node(),vt=Te.cloneNode(!0),at.appendChild(vt)),l.select(vt).attr("transform",null).call(s.positionText,0,0);var nt=vt.getBoundingClientRect(),mt=g.testref.node().getBoundingClientRect();Ae||at.removeChild(vt);var rt={height:nt.height,width:nt.width,left:nt.left-mt.left,top:nt.top-mt.top,right:nt.right-mt.left,bottom:nt.bottom-mt.top};return ae>=ie&&(g.savedBBoxes={},ae=0),be&&(g.savedBBoxes[be]=rt),ae++,S.extendFlat({},rt)};function fe(Te){var Ae=Te.getAttribute("data-unformatted");if(Ae!==null)return Ae+Te.getAttribute("data-math")+Te.getAttribute("text-anchor")+Te.getAttribute("style")}g.setClipUrl=function(Te,Ae,be){Te.attr("clip-path",Q(Ae,be))};function Q(Te,Ae){if(!Te)return null;var be=Ae._context,Ie=be._exportedPlot?"":be._baseUrl||"";return Ie?"url('"+Ie+"#"+Te+"')":"url(#"+Te+")"}g.getTranslate=function(Te){var Ae=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,be=Te.attr?"attr":"getAttribute",Ie=Te[be]("transform")||"",Ue=Ie.replace(Ae,function(Ne,ze,$e){return[ze,$e].join(" ")}).split(" ");return{x:+Ue[0]||0,y:+Ue[1]||0}},g.setTranslate=function(Te,Ae,be){var Ie=/(\btranslate\(.*?\);?)/,Ue=Te.attr?"attr":"getAttribute",Ne=Te.attr?"attr":"setAttribute",ze=Te[Ue]("transform")||"";return Ae=Ae||0,be=be||0,ze=ze.replace(Ie,"").trim(),ze+=n(Ae,be),ze=ze.trim(),Te[Ne]("transform",ze),ze},g.getScale=function(Te){var Ae=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,be=Te.attr?"attr":"getAttribute",Ie=Te[be]("transform")||"",Ue=Ie.replace(Ae,function(Ne,ze,$e){return[ze,$e].join(" ")}).split(" ");return{x:+Ue[0]||1,y:+Ue[1]||1}},g.setScale=function(Te,Ae,be){var Ie=/(\bscale\(.*?\);?)/,Ue=Te.attr?"attr":"getAttribute",Ne=Te.attr?"attr":"setAttribute",ze=Te[Ue]("transform")||"";return Ae=Ae||1,be=be||1,ze=ze.replace(Ie,"").trim(),ze+="scale("+Ae+","+be+")",ze=ze.trim(),Te[Ne]("transform",ze),ze};var J=/\s*sc.*/;g.setPointGroupScale=function(Te,Ae,be){if(Ae=Ae||1,be=be||1,!!Te){var Ie=Ae===1&&be===1?"":"scale("+Ae+","+be+")";Te.each(function(){var Ue=(this.getAttribute("transform")||"").replace(J,"");Ue+=Ie,Ue=Ue.trim(),this.setAttribute("transform",Ue)})}};var oe=/translate\([^)]*\)\s*$/;g.setTextPointsScale=function(Te,Ae,be){Te&&Te.each(function(){var Ie,Ue=l.select(this),Ne=Ue.select("text");if(Ne.node()){var ze=parseFloat(Ne.attr("x")||0),$e=parseFloat(Ne.attr("y")||0),st=(Ue.attr("transform")||"").match(oe);Ae===1&&be===1?Ie=[]:Ie=[n(ze,$e),"scale("+Ae+","+be+")",n(-ze,-$e)],st&&Ie.push(st),Ue.attr("transform",Ie.join(""))}})};function K(Te,Ae){var be;return Te&&(be=Te.mf),be===void 0&&(be=Ae.marker&&Ae.marker.standoff||0),!Ae._geo&&!Ae._xA?-be:be}g.getMarkerStandoff=K;var ne=Math.atan2,ce=Math.cos,re=Math.sin;function ee(Te,Ae){var be=Ae[0],Ie=Ae[1];return[be*ce(Te)-Ie*re(Te),be*re(Te)+Ie*ce(Te)]}var de,le,he,xe,Ee,Se;function ke(Te,Ae){var be=Te.ma;be===void 0&&(be=Ae.marker.angle,(!be||S.isArrayOrTypedArray(be))&&(be=0));var Ie,Ue,Ne=Ae.marker.angleref;if(Ne==="previous"||Ne==="north"){if(Ae._geo){var ze=Ae._geo.project(Te.lonlat);Ie=ze[0],Ue=ze[1]}else{var $e=Ae._xA,st=Ae._yA;if($e&&st)Ie=$e.c2p(Te.x),Ue=st.c2p(Te.y);else return 90}if(Ae._geo){var vt=Te.lonlat[0],at=Te.lonlat[1],nt=Ae._geo.project([vt,at+1e-5]),mt=Ae._geo.project([vt+1e-5,at]),rt=ne(mt[1]-Ue,mt[0]-Ie),lt=ne(nt[1]-Ue,nt[0]-Ie),dt;if(Ne==="north")dt=be/180*Math.PI;else if(Ne==="previous"){var wt=vt/180*Math.PI,et=at/180*Math.PI,Be=de/180*Math.PI,Ye=le/180*Math.PI,Ke=Be-wt,We=ce(Ye)*re(Ke),Fe=re(Ye)*ce(et)-ce(Ye)*re(et)*ce(Ke);dt=-ne(We,Fe)-Math.PI,de=vt,le=at}var Me=ee(rt,[ce(dt),0]),we=ee(lt,[re(dt),0]);be=ne(Me[1]+we[1],Me[0]+we[0])/Math.PI*180,Ne==="previous"&&!(Se===Ae.uid&&Te.i===Ee+1)&&(be=null)}if(Ne==="previous"&&!Ae._geo)if(Se===Ae.uid&&Te.i===Ee+1&&C(Ie)&&C(Ue)){var Re=Ie-he,Pe=Ue-xe,Ve=Ae.line&&Ae.line.shape||"",Je=Ve.slice(Ve.length-1);Je==="h"&&(Pe=0),Je==="v"&&(Re=0),be+=ne(Pe,Re)/Math.PI*180+90}else be=null}return he=Ie,xe=Ue,Ee=Te.i,Se=Ae.uid,be}g.getMarkerAngle=ke},71984:function(D,O,t){var l=t(21984),S=t(33428).round,i="M0,0Z",C=Math.sqrt(2),w=Math.sqrt(3),v=Math.PI,m=Math.cos,a=Math.sin;D.exports={circle:{n:0,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c="M"+g+",0A"+g+","+g+" 0 1,1 0,-"+g+"A"+g+","+g+" 0 0,1 "+g+",0Z";return E?u(p,E,c):c}},square:{n:1,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"H-"+g+"V-"+g+"H"+g+"Z")}},diamond:{n:2,f:function(b,p,E){if(n(p))return i;var g=S(b*1.3,2);return u(p,E,"M"+g+",0L0,"+g+"L-"+g+",0L0,-"+g+"Z")}},cross:{n:3,f:function(b,p,E){if(n(p))return i;var g=S(b*.4,2),c=S(b*1.2,2);return u(p,E,"M"+c+","+g+"H"+g+"V"+c+"H-"+g+"V"+g+"H-"+c+"V-"+g+"H-"+g+"V-"+c+"H"+g+"V-"+g+"H"+c+"Z")}},x:{n:4,f:function(b,p,E){if(n(p))return i;var g=S(b*.8/C,2),c="l"+g+","+g,x="l"+g+",-"+g,A="l-"+g+",-"+g,M="l-"+g+","+g;return u(p,E,"M0,"+g+c+x+A+x+A+M+A+M+c+M+c+"Z")}},"triangle-up":{n:5,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),x=S(b,2);return u(p,E,"M-"+g+","+c+"H"+g+"L0,-"+x+"Z")}},"triangle-down":{n:6,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),x=S(b,2);return u(p,E,"M-"+g+",-"+c+"H"+g+"L0,"+x+"Z")}},"triangle-left":{n:7,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),x=S(b,2);return u(p,E,"M"+c+",-"+g+"V"+g+"L-"+x+",0Z")}},"triangle-right":{n:8,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),x=S(b,2);return u(p,E,"M-"+c+",-"+g+"V"+g+"L"+x+",0Z")}},"triangle-ne":{n:9,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M-"+c+",-"+g+"H"+g+"V"+c+"Z")}},"triangle-se":{n:10,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M"+g+",-"+c+"V"+g+"H-"+c+"Z")}},"triangle-sw":{n:11,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M"+c+","+g+"H-"+g+"V-"+c+"Z")}},"triangle-nw":{n:12,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M-"+g+","+c+"V-"+g+"H"+c+"Z")}},pentagon:{n:13,f:function(b,p,E){if(n(p))return i;var g=S(b*.951,2),c=S(b*.588,2),x=S(-b,2),A=S(b*-.309,2),M=S(b*.809,2);return u(p,E,"M"+g+","+A+"L"+c+","+M+"H-"+c+"L-"+g+","+A+"L0,"+x+"Z")}},hexagon:{n:14,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b/2,2),x=S(b*w/2,2);return u(p,E,"M"+x+",-"+c+"V"+c+"L0,"+g+"L-"+x+","+c+"V-"+c+"L0,-"+g+"Z")}},hexagon2:{n:15,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b/2,2),x=S(b*w/2,2);return u(p,E,"M-"+c+","+x+"H"+c+"L"+g+",0L"+c+",-"+x+"H-"+c+"L-"+g+",0Z")}},octagon:{n:16,f:function(b,p,E){if(n(p))return i;var g=S(b*.924,2),c=S(b*.383,2);return u(p,E,"M-"+c+",-"+g+"H"+c+"L"+g+",-"+c+"V"+c+"L"+c+","+g+"H-"+c+"L-"+g+","+c+"V-"+c+"Z")}},star:{n:17,f:function(b,p,E){if(n(p))return i;var g=b*1.4,c=S(g*.225,2),x=S(g*.951,2),A=S(g*.363,2),M=S(g*.588,2),R=S(-g,2),T=S(g*-.309,2),L=S(g*.118,2),P=S(g*.809,2),d=S(g*.382,2);return u(p,E,"M"+c+","+T+"H"+x+"L"+A+","+L+"L"+M+","+P+"L0,"+d+"L-"+M+","+P+"L-"+A+","+L+"L-"+x+","+T+"H-"+c+"L0,"+R+"Z")}},hexagram:{n:18,f:function(b,p,E){if(n(p))return i;var g=S(b*.66,2),c=S(b*.38,2),x=S(b*.76,2);return u(p,E,"M-"+x+",0l-"+c+",-"+g+"h"+x+"l"+c+",-"+g+"l"+c+","+g+"h"+x+"l-"+c+","+g+"l"+c+","+g+"h-"+x+"l-"+c+","+g+"l-"+c+",-"+g+"h-"+x+"Z")}},"star-triangle-up":{n:19,f:function(b,p,E){if(n(p))return i;var g=S(b*w*.8,2),c=S(b*.8,2),x=S(b*1.6,2),A=S(b*4,2),M="A "+A+","+A+" 0 0 1 ";return u(p,E,"M-"+g+","+c+M+g+","+c+M+"0,-"+x+M+"-"+g+","+c+"Z")}},"star-triangle-down":{n:20,f:function(b,p,E){if(n(p))return i;var g=S(b*w*.8,2),c=S(b*.8,2),x=S(b*1.6,2),A=S(b*4,2),M="A "+A+","+A+" 0 0 1 ";return u(p,E,"M"+g+",-"+c+M+"-"+g+",-"+c+M+"0,"+x+M+g+",-"+c+"Z")}},"star-square":{n:21,f:function(b,p,E){if(n(p))return i;var g=S(b*1.1,2),c=S(b*2,2),x="A "+c+","+c+" 0 0 1 ";return u(p,E,"M-"+g+",-"+g+x+"-"+g+","+g+x+g+","+g+x+g+",-"+g+x+"-"+g+",-"+g+"Z")}},"star-diamond":{n:22,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2),c=S(b*1.9,2),x="A "+c+","+c+" 0 0 1 ";return u(p,E,"M-"+g+",0"+x+"0,"+g+x+g+",0"+x+"0,-"+g+x+"-"+g+",0Z")}},"diamond-tall":{n:23,f:function(b,p,E){if(n(p))return i;var g=S(b*.7,2),c=S(b*1.4,2);return u(p,E,"M0,"+c+"L"+g+",0L0,-"+c+"L-"+g+",0Z")}},"diamond-wide":{n:24,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2),c=S(b*.7,2);return u(p,E,"M0,"+c+"L"+g+",0L0,-"+c+"L-"+g+",0Z")}},hourglass:{n:25,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"H-"+g+"L"+g+",-"+g+"H-"+g+"Z")},noDot:!0},bowtie:{n:26,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"V-"+g+"L-"+g+","+g+"V-"+g+"Z")},noDot:!0},"circle-cross":{n:27,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g+"M"+g+",0A"+g+","+g+" 0 1,1 0,-"+g+"A"+g+","+g+" 0 0,1 "+g+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b/C,2);return u(p,E,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c+"M"+g+",0A"+g+","+g+" 0 1,1 0,-"+g+"A"+g+","+g+" 0 0,1 "+g+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g+"M"+g+","+g+"H-"+g+"V-"+g+"H"+g+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"L-"+g+",-"+g+"M"+g+",-"+g+"L-"+g+","+g+"M"+g+","+g+"H-"+g+"V-"+g+"H"+g+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(b,p,E){if(n(p))return i;var g=S(b*1.3,2);return u(p,E,"M"+g+",0L0,"+g+"L-"+g+",0L0,-"+g+"ZM0,-"+g+"V"+g+"M-"+g+",0H"+g)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(b,p,E){if(n(p))return i;var g=S(b*1.3,2),c=S(b*.65,2);return u(p,E,"M"+g+",0L0,"+g+"L-"+g+",0L0,-"+g+"ZM-"+c+",-"+c+"L"+c+","+c+"M-"+c+","+c+"L"+c+",-"+c)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"L-"+g+",-"+g+"M"+g+",-"+g+"L-"+g+","+g)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*.85,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g+"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(b,p,E){if(n(p))return i;var g=S(b/2,2),c=S(b,2);return u(p,E,"M"+g+","+c+"V-"+c+"M"+(g-c)+",-"+c+"V"+c+"M"+c+","+g+"H-"+c+"M-"+c+","+(g-c)+"H"+c)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),x=S(b*.8,2);return u(p,E,"M-"+g+","+x+"L0,0M"+g+","+x+"L0,0M0,-"+c+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),x=S(b*.8,2);return u(p,E,"M-"+g+",-"+x+"L0,0M"+g+",-"+x+"L0,0M0,"+c+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),x=S(b*.8,2);return u(p,E,"M"+x+","+g+"L0,0M"+x+",-"+g+"L0,0M-"+c+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),x=S(b*.8,2);return u(p,E,"M-"+x+","+g+"L0,0M-"+x+",-"+g+"L0,0M"+c+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2);return u(p,E,"M"+g+",0H-"+g)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2);return u(p,E,"M0,"+g+"V-"+g)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+",-"+g+"L-"+g+","+g)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"L-"+g+",-"+g)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M0,0L-"+g+","+c+"H"+g+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M0,0L-"+g+",-"+c+"H"+g+"Z")},noDot:!0},"arrow-left":{n:47,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,0L"+g+",-"+c+"V"+c+"Z")},noDot:!0},"arrow-right":{n:48,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,0L-"+g+",-"+c+"V"+c+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M-"+g+",0H"+g+"M0,0L-"+g+","+c+"H"+g+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M-"+g+",0H"+g+"M0,0L-"+g+",-"+c+"H"+g+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,-"+c+"V"+c+"M0,0L"+g+",-"+c+"V"+c+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,-"+c+"V"+c+"M0,0L-"+g+",-"+c+"V"+c+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(b,p,E){if(n(p))return i;var g=v/2.5,c=2*b*m(g),x=2*b*a(g);return u(p,E,"M0,0L"+-c+","+x+"L"+c+","+x+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(b,p,E){if(n(p))return i;var g=v/4,c=2*b*m(g),x=2*b*a(g);return u(p,E,"M0,0L"+-c+","+x+"A "+2*b+","+2*b+" 0 0 1 "+c+","+x+"Z")},backoff:.4,noDot:!0}};function n(b){return b===null}var s,o,h,f;function u(b,p,E){if((!b||b%360===0)&&!p)return E;if(h===b&&f===p&&s===E)return o;h=b,f=p,s=E;function g(B,G){var U=m(B),H=a(B),W=G[0],V=G[1]+(p||0);return[W*U-V*H,W*H+V*U]}for(var c=b/180*v,x=0,A=0,M=l(E),R="",T=0;T0,b=m._context.staticPlot;a.each(function(p){var E=p[0].trace,g=E.error_x||{},c=E.error_y||{},x;E.ids&&(x=function(T){return T.id});var A=C.hasMarkers(E)&&E.marker.maxdisplayed>0;!c.visible&&!g.visible&&(p=[]);var M=l.select(this).selectAll("g.errorbar").data(p,x);if(M.exit().remove(),!!p.length){g.visible||M.selectAll("path.xerror").remove(),c.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var R=M.enter().append("g").classed("errorbar",!0);u&&R.style("opacity",0).transition().duration(s.duration).style("opacity",1),i.setClipUrl(M,n.layerClipId,m),M.each(function(T){var L=l.select(this),P=w(T,h,f);if(!(A&&!T.vis)){var d,k=L.select("path.yerror");if(c.visible&&S(P.x)&&S(P.yh)&&S(P.ys)){var I=c.width;d="M"+(P.x-I)+","+P.yh+"h"+2*I+"m-"+I+",0V"+P.ys,P.noYS||(d+="m-"+I+",0h"+2*I),o=!k.size(),o?k=L.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0):u&&(k=k.transition().duration(s.duration).ease(s.easing)),k.attr("d",d)}else k.remove();var N=L.select("path.xerror");if(g.visible&&S(P.y)&&S(P.xh)&&S(P.xs)){var B=(g.copy_ystyle?c:g).width;d="M"+P.xh+","+(P.y-B)+"v"+2*B+"m0,-"+B+"H"+P.xs,P.noXS||(d+="m0,-"+B+"v"+2*B),o=!N.size(),o?N=L.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0):u&&(N=N.transition().duration(s.duration).ease(s.easing)),N.attr("d",d)}else N.remove()}})}})};function w(v,m,a){var n={x:m.c2p(v.x),y:a.c2p(v.y)};return v.yh!==void 0&&(n.yh=a.c2p(v.yh),n.ys=a.c2p(v.ys),S(n.ys)||(n.noYS=!0,n.ys=a.c2p(v.ys,!0))),v.xh!==void 0&&(n.xh=m.c2p(v.xh),n.xs=m.c2p(v.xs),S(n.xs)||(n.noXS=!0,n.xs=m.c2p(v.xs,!0))),n}},92036:function(D,O,t){var l=t(33428),S=t(76308);D.exports=function(C){C.each(function(w){var v=w[0].trace,m=v.error_y||{},a=v.error_x||{},n=l.select(this);n.selectAll("path.yerror").style("stroke-width",m.thickness+"px").call(S.stroke,m.color),a.copy_ystyle&&(a=m),n.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(S.stroke,a.color)})}},55756:function(D,O,t){var l=t(25376),S=t(65460).hoverlabel,i=t(92880).extendFlat;D.exports={hoverlabel:{bgcolor:i({},S.bgcolor,{arrayOk:!0}),bordercolor:i({},S.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:i({},S.align,{arrayOk:!0}),namelength:i({},S.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(D,O,t){var l=t(3400),S=t(24040);D.exports=function(w){var v=w.calcdata,m=w._fullLayout;function a(f){return function(u){return l.coerceHoverinfo({hoverinfo:u},{_module:f._module},m)}}for(var n=0;n=0&&n.indexAe[0]._length||ot<0||ot>be[0]._length)return h.unhoverRaw(ne,ce)}if(ce.pointerX=Je+Ae[0]._offset,ce.pointerY=ot+be[0]._offset,"xval"in ce?mt=b.flat(le,ce.xval):mt=b.p2c(Ae,Je),"yval"in ce?rt=b.flat(le,ce.yval):rt=b.p2c(be,ot),!S(mt[0])||!S(rt[0]))return C.warn("Fx.hover failed",ce,ne),h.unhoverRaw(ne,ce)}var It=1/0;function Vt(Rr,Zr){for(dt=0;dtwe&&(at.splice(0,we),It=at[0].distance),Se&&vt!==0&&at.length===0){Me.distance=vt,Me.index=!1;var Fn=et._module.hoverPoints(Me,We,Fe,"closest",{hoverLayer:he._hoverlayer});if(Fn&&(Fn=Fn.filter(function(ga){return ga.spikeDistance<=vt})),Fn&&Fn.length){var Wn,ma=Fn.filter(function(ga){return ga.xa.showspikes&&ga.xa.spikesnap!=="hovered data"});if(ma.length){var Aa=ma[0];S(Aa.x0)&&S(Aa.y0)&&(Wn=Lt(Aa),(!Re.vLinePoint||Re.vLinePoint.spikeDistance>Wn.spikeDistance)&&(Re.vLinePoint=Wn))}var Ia=Fn.filter(function(ga){return ga.ya.showspikes&&ga.ya.spikesnap!=="hovered data"});if(Ia.length){var Ta=Ia[0];S(Ta.x0)&&S(Ta.y0)&&(Wn=Lt(Ta),(!Re.hLinePoint||Re.hLinePoint.spikeDistance>Wn.spikeDistance)&&(Re.hLinePoint=Wn))}}}}}Vt();function xt(Rr,Zr,Wr){for(var fn=null,Tn=1/0,Sn,Fn=0;Fn0&&Math.abs(Rr.distance)Ft-1;Ze--)mr(at[Ze]);at=er,Kt()}var Xe=ne._hoverdata,Ut=[],Bt=J(ne),qt=oe(ne);for(lt=0;lt1||at.length>1)||$e==="closest"&&Pe&&at.length>1,un=o.combine(he.plot_bgcolor||o.background,he.paper_bgcolor),_n=B(at,{gd:ne,hovermode:$e,rotateLabels:yn,bgColor:un,container:he._hoverlayer,outerContainer:he._paper.node(),commonLabelOpts:he.hoverlabel,hoverdistance:he.hoverdistance}),On=_n.hoverLabels;if(b.isUnifiedHover($e)||(U(On,yn,he,_n.commonLabelBoundingBox),V(On,yn,he._invScaleX,he._invScaleY)),de&&de.tagName){var Mr=u.getComponentMethod("annotations","hasClickToShow")(ne,Ut);n(l.select(de),Mr?"pointer":"")}!de||ee||!q(ne,ce,Xe)||(Xe&&ne.emit("plotly_unhover",{event:ce,points:Xe}),ne.emit("plotly_hover",{event:ce,points:ne._hoverdata,xaxes:Ae,yaxes:be,xvals:mt,yvals:rt}))}function I(ne){return[ne.trace.index,ne.index,ne.x0,ne.y0,ne.name,ne.attr,ne.xa?ne.xa._id:"",ne.ya?ne.ya._id:""].join(",")}var N=/([\s\S]*)<\/extra>/;function B(ne,ce){var re=ce.gd,ee=re._fullLayout,de=ce.hovermode,le=ce.rotateLabels,he=ce.bgColor,xe=ce.container,Ee=ce.outerContainer,Se=ce.commonLabelOpts||{};if(ne.length===0)return[[]];var ke=ce.fontFamily||p.HOVERFONT,Te=ce.fontSize||p.HOVERFONTSIZE,Ae=ne[0],be=Ae.xa,Ie=Ae.ya,Ue=de.charAt(0),Ne=Ue+"Label",ze=Ae[Ne];if(ze===void 0&&be.type==="multicategory")for(var $e=0;$eee.width-qt&&(nr=ee.width-qt),Wt.attr("d","M"+(Xe-nr)+",0L"+(Xe-nr+T)+","+Bt+T+"H"+qt+"v"+Bt+(L*2+Ze.height)+"H"+-qt+"V"+Bt+T+"H"+(Xe-nr-T)+"Z"),Xe=nr,Be.minX=Xe-qt,Be.maxX=Xe+qt,be.side==="top"?(Be.minY=Ut-(L*2+Ze.height),Be.maxY=Ut-L):(Be.minY=Ut+L,Be.maxY=Ut+(L*2+Ze.height))}else{var fr,ir,Ht;Ie.side==="right"?(fr="start",ir=1,Ht="",Xe=be._offset+be._length):(fr="end",ir=-1,Ht="-",Xe=be._offset),Ut=Ie._offset+(Ae.y0+Ae.y1)/2,jt.attr("text-anchor",fr),Wt.attr("d","M0,0L"+Ht+T+","+T+"V"+(L+Ze.height/2)+"h"+Ht+(L*2+Ze.width)+"V-"+(L+Ze.height/2)+"H"+Ht+T+"V-"+T+"Z"),Be.minY=Ut-(L+Ze.height/2),Be.maxY=Ut+(L+Ze.height/2),Ie.side==="right"?(Be.minX=Xe+T,Be.maxX=Xe+T+(L*2+Ze.width)):(Be.minX=Xe-T-(L*2+Ze.width),Be.maxX=Xe-T);var pr=Ze.height/2,br=vt-Ze.top-pr,Tr="clip"+ee._uid+"commonlabel"+Ie._id,gr;if(Xe=0?At=xr:sr+Vt=0?At=sr:Ct+Vt=0?Rt=Kt:Qt+xt=0?Rt=Qt:ht+xt=0,(Ft.idealAlign==="top"||!yn)&&un?(pr-=Tr/2,Ft.anchor="end"):yn?(pr+=Tr/2,Ft.anchor="start"):Ft.anchor="middle",Ft.crossPos=pr;else{if(Ft.pos=pr,yn=Ht+br/2+Fr<=at,un=Ht-br/2-Fr>=0,(Ft.idealAlign==="left"||!yn)&&un)Ht-=br/2,Ft.anchor="end";else if(yn)Ht+=br/2,Ft.anchor="start";else{Ft.anchor="middle";var _n=Fr/2,On=Ht+_n-at,Mr=Ht-_n;On>0&&(Ht-=On),Mr<0&&(Ht+=-Mr)}Ft.crossPos=Ht}Bt.attr("text-anchor",Ft.anchor),nr&&qt.attr("text-anchor",Ft.anchor),Wt.attr("transform",w(Ht,pr)+(le?v(c):""))}),{hoverLabels:_t,commonLabelBoundingBox:Be}}function G(ne,ce,re,ee,de,le){var he="",xe="";ne.nameOverride!==void 0&&(ne.name=ne.nameOverride),ne.name&&(ne.trace._meta&&(ne.name=C.templateString(ne.name,ne.trace._meta)),he=ie(ne.name,ne.nameLength));var Ee=re.charAt(0),Se=Ee==="x"?"y":"x";ne.zLabel!==void 0?(ne.xLabel!==void 0&&(xe+="x: "+ne.xLabel+"
"),ne.yLabel!==void 0&&(xe+="y: "+ne.yLabel+"
"),ne.trace.type!=="choropleth"&&ne.trace.type!=="choroplethmapbox"&&(xe+=(xe?"z: ":"")+ne.zLabel)):ce&&ne[Ee+"Label"]===de?xe=ne[Se+"Label"]||"":ne.xLabel===void 0?ne.yLabel!==void 0&&ne.trace.type!=="scattercarpet"&&(xe=ne.yLabel):ne.yLabel===void 0?xe=ne.xLabel:xe="("+ne.xLabel+", "+ne.yLabel+")",(ne.text||ne.text===0)&&!Array.isArray(ne.text)&&(xe+=(xe?"
":"")+ne.text),ne.extraText!==void 0&&(xe+=(xe?"
":"")+ne.extraText),le&&xe===""&&!ne.hovertemplate&&(he===""&&le.remove(),xe=he);var ke=ne.hovertemplate||!1;if(ke){var Te=ne.hovertemplateLabels||ne;ne[Ee+"Label"]!==de&&(Te[Ee+"other"]=Te[Ee+"Val"],Te[Ee+"otherLabel"]=Te[Ee+"Label"]),xe=C.hovertemplateString(ke,Te,ee._d3locale,ne.eventData[0]||{},ne.trace._meta),xe=xe.replace(N,function(Ae,be){return he=ie(be,ne.nameLength),""})}return[xe,he]}function U(ne,ce,re,ee){var de=ce?"xa":"ya",le=ce?"ya":"xa",he=0,xe=1,Ee=ne.size(),Se=new Array(Ee),ke=0,Te=ee.minX,Ae=ee.maxX,be=ee.minY,Ie=ee.maxY,Ue=function(We){return We*re._invScaleX},Ne=function(We){return We*re._invScaleY};ne.each(function(We){var Fe=We[de],Me=We[le],we=Fe._id.charAt(0)==="x",Re=Fe.range;ke===0&&Re&&Re[0]>Re[1]!==we&&(xe=-1);var Pe=0,Ve=we?re.width:re.height;if(re.hovermode==="x"||re.hovermode==="y"){var Je=H(We,ce),ot=We.anchor,yt=ot==="end"?-1:1,ut,It;if(ot==="middle")ut=We.crossPos+(we?Ne(Je.y-We.by/2):Ue(We.bx/2+We.tx2width/2)),It=ut+(we?Ne(We.by):Ue(We.bx));else if(we)ut=We.crossPos+Ne(T+Je.y)-Ne(We.by/2-T),It=ut+Ne(We.by);else{var Vt=Ue(yt*T+Je.x),xt=Vt+Ue(yt*We.bx);ut=We.crossPos+Math.min(Vt,xt),It=We.crossPos+Math.max(Vt,xt)}we?be!==void 0&&Ie!==void 0&&Math.min(It,Ie)-Math.max(ut,be)>1&&(Me.side==="left"?(Pe=Me._mainLinePosition,Ve=re.width):Ve=Me._mainLinePosition):Te!==void 0&&Ae!==void 0&&Math.min(It,Ae)-Math.max(ut,Te)>1&&(Me.side==="top"?(Pe=Me._mainLinePosition,Ve=re.height):Ve=Me._mainLinePosition)}Se[ke++]=[{datum:We,traceIndex:We.trace.index,dp:0,pos:We.pos,posref:We.posref,size:We.by*(we?A:1)/2,pmin:Pe,pmax:Ve}]}),Se.sort(function(We,Fe){return We[0].posref-Fe[0].posref||xe*(Fe[0].traceIndex-We[0].traceIndex)});var ze,$e,st,vt,at,nt,mt;function rt(We){var Fe=We[0],Me=We[We.length-1];if($e=Fe.pmin-Fe.pos-Fe.dp+Fe.size,st=Me.pos+Me.dp+Me.size-Fe.pmax,$e>.01){for(at=We.length-1;at>=0;at--)We[at].dp+=$e;ze=!1}if(!(st<.01)){if($e<-.01){for(at=We.length-1;at>=0;at--)We[at].dp-=st;ze=!1}if(ze){var we=0;for(vt=0;vtFe.pmax&&we++;for(vt=We.length-1;vt>=0&&!(we<=0);vt--)nt=We[vt],nt.pos>Fe.pmax-1&&(nt.del=!0,we--);for(vt=0;vt=0;at--)We[at].dp-=st;for(vt=We.length-1;vt>=0&&!(we<=0);vt--)nt=We[vt],nt.pos+nt.dp+nt.size>Fe.pmax&&(nt.del=!0,we--)}}}for(;!ze&&he<=Ee;){for(he++,ze=!0,vt=0;vt.01&&wt.pmin===et.pmin&&wt.pmax===et.pmax){for(at=dt.length-1;at>=0;at--)dt[at].dp+=$e;for(lt.push.apply(lt,dt),Se.splice(vt+1,1),mt=0,at=lt.length-1;at>=0;at--)mt+=lt[at].dp;for(st=mt/lt.length,at=lt.length-1;at>=0;at--)lt[at].dp-=st;ze=!1}else vt++}Se.forEach(rt)}for(vt=Se.length-1;vt>=0;vt--){var Be=Se[vt];for(at=Be.length-1;at>=0;at--){var Ye=Be[at],Ke=Ye.datum;Ke.offset=Ye.dp,Ke.del=Ye.del}}}function H(ne,ce){var re=0,ee=ne.offset;return ce&&(ee*=-R,re=ne.offset*M),{x:re,y:ee}}function W(ne){var ce={start:1,end:-1,middle:0}[ne.anchor],re=ce*(T+L),ee=re+ce*(ne.txwidth+L),de=ne.anchor==="middle";return de&&(re-=ne.tx2width/2,ee+=ne.txwidth/2+L),{alignShift:ce,textShiftX:re,text2ShiftX:ee}}function V(ne,ce,re,ee){var de=function(he){return he*re},le=function(he){return he*ee};ne.each(function(he){var xe=l.select(this);if(he.del)return xe.remove();var Ee=xe.select("text.nums"),Se=he.anchor,ke=Se==="end"?-1:1,Te=W(he),Ae=H(he,ce),be=Ae.x,Ie=Ae.y,Ue=Se==="middle";xe.select("path").attr("d",Ue?"M-"+de(he.bx/2+he.tx2width/2)+","+le(Ie-he.by/2)+"h"+de(he.bx)+"v"+le(he.by)+"h-"+de(he.bx)+"Z":"M0,0L"+de(ke*T+be)+","+le(T+Ie)+"v"+le(he.by/2-T)+"h"+de(ke*he.bx)+"v-"+le(he.by)+"H"+de(ke*T+be)+"V"+le(Ie-T)+"Z");var Ne=be+Te.textShiftX,ze=Ie+he.ty0-he.by/2+L,$e=he.textAlign||"auto";$e!=="auto"&&($e==="left"&&Se!=="start"?(Ee.attr("text-anchor","start"),Ne=Ue?-he.bx/2-he.tx2width/2+L:-he.bx-L):$e==="right"&&Se!=="end"&&(Ee.attr("text-anchor","end"),Ne=Ue?he.bx/2-he.tx2width/2-L:he.bx+L)),Ee.call(a.positionText,de(Ne),le(ze)),he.tx2width&&(xe.select("text.name").call(a.positionText,de(Te.text2ShiftX+Te.alignShift*L+be),le(Ie+he.ty0-he.by/2+L)),xe.select("rect").call(s.setRect,de(Te.text2ShiftX+(Te.alignShift-1)*he.tx2width/2+be),le(Ie-he.by/2-1),de(he.tx2width),le(he.by+2)))})}function $(ne,ce){var re=ne.index,ee=ne.trace||{},de=ne.cd[0],le=ne.cd[re]||{};function he(Ae){return Ae||S(Ae)&&Ae===0}var xe=Array.isArray(re)?function(Ae,be){var Ie=C.castOption(de,re,Ae);return he(Ie)?Ie:C.extractOption({},ee,"",be)}:function(Ae,be){return C.extractOption(le,ee,Ae,be)};function Ee(Ae,be,Ie){var Ue=xe(be,Ie);he(Ue)&&(ne[Ae]=Ue)}if(Ee("hoverinfo","hi","hoverinfo"),Ee("bgcolor","hbg","hoverlabel.bgcolor"),Ee("borderColor","hbc","hoverlabel.bordercolor"),Ee("fontFamily","htf","hoverlabel.font.family"),Ee("fontSize","hts","hoverlabel.font.size"),Ee("fontColor","htc","hoverlabel.font.color"),Ee("nameLength","hnl","hoverlabel.namelength"),Ee("textAlign","hta","hoverlabel.align"),ne.posref=ce==="y"||ce==="closest"&&ee.orientation==="h"?ne.xa._offset+(ne.x0+ne.x1)/2:ne.ya._offset+(ne.y0+ne.y1)/2,ne.x0=C.constrain(ne.x0,0,ne.xa._length),ne.x1=C.constrain(ne.x1,0,ne.xa._length),ne.y0=C.constrain(ne.y0,0,ne.ya._length),ne.y1=C.constrain(ne.y1,0,ne.ya._length),ne.xLabelVal!==void 0&&(ne.xLabel="xLabel"in ne?ne.xLabel:f.hoverLabelText(ne.xa,ne.xLabelVal,ee.xhoverformat),ne.xVal=ne.xa.c2d(ne.xLabelVal)),ne.yLabelVal!==void 0&&(ne.yLabel="yLabel"in ne?ne.yLabel:f.hoverLabelText(ne.ya,ne.yLabelVal,ee.yhoverformat),ne.yVal=ne.ya.c2d(ne.yLabelVal)),ne.zLabelVal!==void 0&&ne.zLabel===void 0&&(ne.zLabel=String(ne.zLabelVal)),!isNaN(ne.xerr)&&!(ne.xa.type==="log"&&ne.xerr<=0)){var Se=f.tickText(ne.xa,ne.xa.c2l(ne.xerr),"hover").text;ne.xerrneg!==void 0?ne.xLabel+=" +"+Se+" / -"+f.tickText(ne.xa,ne.xa.c2l(ne.xerrneg),"hover").text:ne.xLabel+=" ± "+Se,ce==="x"&&(ne.distance+=1)}if(!isNaN(ne.yerr)&&!(ne.ya.type==="log"&&ne.yerr<=0)){var ke=f.tickText(ne.ya,ne.ya.c2l(ne.yerr),"hover").text;ne.yerrneg!==void 0?ne.yLabel+=" +"+ke+" / -"+f.tickText(ne.ya,ne.ya.c2l(ne.yerrneg),"hover").text:ne.yLabel+=" ± "+ke,ce==="y"&&(ne.distance+=1)}var Te=ne.hoverinfo||ne.trace.hoverinfo;return Te&&Te!=="all"&&(Te=Array.isArray(Te)?Te:Te.split("+"),Te.indexOf("x")===-1&&(ne.xLabel=void 0),Te.indexOf("y")===-1&&(ne.yLabel=void 0),Te.indexOf("z")===-1&&(ne.zLabel=void 0),Te.indexOf("text")===-1&&(ne.text=void 0),Te.indexOf("name")===-1&&(ne.name=void 0)),ne}function Z(ne,ce,re){var ee=re.container,de=re.fullLayout,le=de._size,he=re.event,xe=!!ce.hLinePoint,Ee=!!ce.vLinePoint,Se,ke;if(ee.selectAll(".spikeline").remove(),!!(Ee||xe)){var Te=o.combine(de.plot_bgcolor,de.paper_bgcolor);if(xe){var Ae=ce.hLinePoint,be,Ie;Se=Ae&&Ae.xa,ke=Ae&&Ae.ya;var Ue=ke.spikesnap;Ue==="cursor"?(be=he.pointerX,Ie=he.pointerY):(be=Se._offset+Ae.x,Ie=ke._offset+Ae.y);var Ne=i.readability(Ae.color,Te)<1.5?o.contrast(Te):Ae.color,ze=ke.spikemode,$e=ke.spikethickness,st=ke.spikecolor||Ne,vt=f.getPxPosition(ne,ke),at,nt;if(ze.indexOf("toaxis")!==-1||ze.indexOf("across")!==-1){if(ze.indexOf("toaxis")!==-1&&(at=vt,nt=be),ze.indexOf("across")!==-1){var mt=ke._counterDomainMin,rt=ke._counterDomainMax;ke.anchor==="free"&&(mt=Math.min(mt,ke.position),rt=Math.max(rt,ke.position)),at=le.l+mt*le.w,nt=le.l+rt*le.w}ee.insert("line",":first-child").attr({x1:at,x2:nt,y1:Ie,y2:Ie,"stroke-width":$e,stroke:st,"stroke-dasharray":s.dashStyle(ke.spikedash,$e)}).classed("spikeline",!0).classed("crisp",!0),ee.insert("line",":first-child").attr({x1:at,x2:nt,y1:Ie,y2:Ie,"stroke-width":$e+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}ze.indexOf("marker")!==-1&&ee.insert("circle",":first-child").attr({cx:vt+(ke.side!=="right"?$e:-$e),cy:Ie,r:$e,fill:st}).classed("spikeline",!0)}if(Ee){var lt=ce.vLinePoint,dt,wt;Se=lt&<.xa,ke=lt&<.ya;var et=Se.spikesnap;et==="cursor"?(dt=he.pointerX,wt=he.pointerY):(dt=Se._offset+lt.x,wt=ke._offset+lt.y);var Be=i.readability(lt.color,Te)<1.5?o.contrast(Te):lt.color,Ye=Se.spikemode,Ke=Se.spikethickness,We=Se.spikecolor||Be,Fe=f.getPxPosition(ne,Se),Me,we;if(Ye.indexOf("toaxis")!==-1||Ye.indexOf("across")!==-1){if(Ye.indexOf("toaxis")!==-1&&(Me=Fe,we=wt),Ye.indexOf("across")!==-1){var Re=Se._counterDomainMin,Pe=Se._counterDomainMax;Se.anchor==="free"&&(Re=Math.min(Re,Se.position),Pe=Math.max(Pe,Se.position)),Me=le.t+(1-Pe)*le.h,we=le.t+(1-Re)*le.h}ee.insert("line",":first-child").attr({x1:dt,x2:dt,y1:Me,y2:we,"stroke-width":Ke,stroke:We,"stroke-dasharray":s.dashStyle(Se.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),ee.insert("line",":first-child").attr({x1:dt,x2:dt,y1:Me,y2:we,"stroke-width":Ke+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}Ye.indexOf("marker")!==-1&&ee.insert("circle",":first-child").attr({cx:dt,cy:Fe-(Se.side!=="top"?Ke:-Ke),r:Ke,fill:We}).classed("spikeline",!0)}}}function q(ne,ce,re){if(!re||re.length!==ne._hoverdata.length)return!0;for(var ee=re.length-1;ee>=0;ee--){var de=re[ee],le=ne._hoverdata[ee];if(de.curveNumber!==le.curveNumber||String(de.pointNumber)!==String(le.pointNumber)||String(de.pointNumbers)!==String(le.pointNumbers))return!0}return!1}function ae(ne,ce){return!ce||ce.vLinePoint!==ne._spikepoints.vLinePoint||ce.hLinePoint!==ne._spikepoints.hLinePoint}function ie(ne,ce){return a.plainText(ne||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function fe(ne,ce){for(var re=ce.charAt(0),ee=[],de=[],le=[],he=0;he1)){delete f.grid;return}if(!E&&!g&&!c){var d=T("pattern")==="independent";d&&(E=!0)}R._hasSubplotGrid=E;var k=T("roworder"),I=k==="top to bottom",N=E?.2:.1,B=E?.3:.1,G,U;x&&f._splomGridDflt&&(G=f._splomGridDflt.xside,U=f._splomGridDflt.yside),R._domains={x:n("x",T,N,G,P),y:n("y",T,B,U,L,I)}}function n(h,f,u,b,p,E){var g=f(h+"gap",u),c=f("domain."+h);f(h+"side",b);for(var x=new Array(p),A=c[0],M=(c[1]-A)/(p-g),R=M*(1-g),T=0;T(n==="legend"?1:0));if(I===!1&&(o[n]=void 0),!(I===!1&&!f.uirevision)&&(b("uirevision",o.uirevision),I!==!1)){b("borderwidth");var N=b("orientation"),B=b("yref"),G=b("xref"),U=N==="h",H=B==="paper",W=G==="paper",V,$,Z,q="left";U?(V=0,l.getComponentMethod("rangeslider","isVisible")(s.xaxis)?H?($=1.1,Z="bottom"):($=1,Z="top"):H?($=-.1,Z="top"):($=0,Z="bottom")):($=1,Z="auto",W?V=1.02:(V=1,q="right")),S.coerce(f,u,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:V}},"x"),S.coerce(f,u,{y:{valType:"number",editType:"legend",min:H?-2:0,max:H?3:1,dflt:$}},"y"),b("traceorder",T),m.isGrouped(o[n])&&b("tracegroupgap"),b("entrywidth"),b("entrywidthmode"),b("indentation"),b("itemsizing"),b("itemwidth"),b("itemclick"),b("itemdoubleclick"),b("groupclick"),b("xanchor",q),b("yanchor",Z),b("valign"),S.noneOrAll(f,u,["x","y"]);var ae=b("title.text");if(ae){b("title.side",U?"left":"top");var ie=S.extendFlat({},p,{size:S.bigFont(p.size)});S.coerceFont(b,"title.font",ie)}}}}D.exports=function(s,o,h){var f,u=h.slice(),b=o.shapes;if(b)for(f=0;f1)}var ee=q.hiddenlabels||[];if(!Q&&(!q.showlegend||!J.length))return fe.selectAll("."+ae).remove(),q._topdefs.select("#"+ie).remove(),i.autoMargin(V,ae);var de=S.ensureSingle(fe,"g",ae,function(be){Q||be.attr("pointer-events","all")}),le=S.ensureSingleById(q._topdefs,"clipPath",ie,function(be){be.append("rect")}),he=S.ensureSingle(de,"rect","bg",function(be){be.attr("shape-rendering","crispEdges")});he.call(a.stroke,Z.bordercolor).call(a.fill,Z.bgcolor).style("stroke-width",Z.borderwidth+"px");var xe=S.ensureSingle(de,"g","scrollbox"),Ee=Z.title;Z._titleWidth=0,Z._titleHeight=0;var Se;Ee.text?(Se=S.ensureSingle(xe,"text",ae+"titletext"),Se.attr("text-anchor","start").call(m.font,Ee.font).text(Ee.text),k(Se,xe,V,Z,c)):xe.selectAll("."+ae+"titletext").remove();var ke=S.ensureSingle(de,"rect","scrollbar",function(be){be.attr(o.scrollBarEnterAttrs).call(a.fill,o.scrollBarColor)}),Te=xe.selectAll("g.groups").data(J);Te.enter().append("g").attr("class","groups"),Te.exit().remove();var Ae=Te.selectAll("g.traces").data(S.identity);Ae.enter().append("g").attr("class","traces"),Ae.exit().remove(),Ae.style("opacity",function(be){var Ie=be[0].trace;return C.traceIs(Ie,"pie-like")?ee.indexOf(be[0].label)!==-1?.5:1:Ie.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(L,V,Z)}).call(E,V,Z).each(function(){Q||l.select(this).call(d,V,ae)}),S.syncOrAsync([i.previousPromises,function(){return B(V,Te,Ae,Z)},function(){var be=q._size,Ie=Z.borderwidth,Ue=Z.xref==="paper",Ne=Z.yref==="paper";if(Ee.text&&A(Se,Z,Ie),!Q){var ze,$e;Ue?ze=be.l+be.w*Z.x-u[U(Z)]*Z._width:ze=q.width*Z.x-u[U(Z)]*Z._width,Ne?$e=be.t+be.h*(1-Z.y)-u[H(Z)]*Z._effHeight:$e=q.height*(1-Z.y)-u[H(Z)]*Z._effHeight;var st=G(V,ae,ze,$e);if(st)return;if(q.margin.autoexpand){var vt=ze,at=$e;ze=Ue?S.constrain(ze,0,q.width-Z._width):vt,$e=Ne?S.constrain($e,0,q.height-Z._effHeight):at,ze!==vt&&S.log("Constrain "+ae+".x to make legend fit inside graph"),$e!==at&&S.log("Constrain "+ae+".y to make legend fit inside graph")}m.setTranslate(de,ze,$e)}if(ke.on(".drag",null),de.on("wheel",null),Q||Z._height<=Z._maxHeight||V._context.staticPlot){var nt=Z._effHeight;Q&&(nt=Z._height),he.attr({width:Z._width-Ie,height:nt-Ie,x:Ie/2,y:Ie/2}),m.setTranslate(xe,0,0),le.select("rect").attr({width:Z._width-2*Ie,height:nt-2*Ie,x:Ie,y:Ie}),m.setClipUrl(xe,ie,V),m.setRect(ke,0,0,0,0),delete Z._scrollY}else{var mt=Math.max(o.scrollBarMinHeight,Z._effHeight*Z._effHeight/Z._height),rt=Z._effHeight-mt-2*o.scrollBarMargin,lt=Z._height-Z._effHeight,dt=rt/lt,wt=Math.min(Z._scrollY||0,lt);he.attr({width:Z._width-2*Ie+o.scrollBarWidth+o.scrollBarMargin,height:Z._effHeight-Ie,x:Ie/2,y:Ie/2}),le.select("rect").attr({width:Z._width-2*Ie+o.scrollBarWidth+o.scrollBarMargin,height:Z._effHeight-2*Ie,x:Ie,y:Ie+wt}),m.setClipUrl(xe,ie,V),we(wt,mt,dt),de.on("wheel",function(){wt=S.constrain(Z._scrollY+l.event.deltaY/rt*lt,0,lt),we(wt,mt,dt),wt!==0&&wt!==lt&&l.event.preventDefault()});var et,Be,Ye,Ke=function(ot,yt,ut){var It=(ut-yt)/dt+ot;return S.constrain(It,0,lt)},We=function(ot,yt,ut){var It=(yt-ut)/dt+ot;return S.constrain(It,0,lt)},Fe=l.behavior.drag().on("dragstart",function(){var ot=l.event.sourceEvent;ot.type==="touchstart"?et=ot.changedTouches[0].clientY:et=ot.clientY,Ye=wt}).on("drag",function(){var ot=l.event.sourceEvent;ot.buttons===2||ot.ctrlKey||(ot.type==="touchmove"?Be=ot.changedTouches[0].clientY:Be=ot.clientY,wt=Ke(Ye,et,Be),we(wt,mt,dt))});ke.call(Fe);var Me=l.behavior.drag().on("dragstart",function(){var ot=l.event.sourceEvent;ot.type==="touchstart"&&(et=ot.changedTouches[0].clientY,Ye=wt)}).on("drag",function(){var ot=l.event.sourceEvent;ot.type==="touchmove"&&(Be=ot.changedTouches[0].clientY,wt=We(Ye,et,Be),we(wt,mt,dt))});xe.call(Me)}function we(ot,yt,ut){Z._scrollY=V._fullLayout[ae]._scrollY=ot,m.setTranslate(xe,0,-ot),m.setRect(ke,Z._width,o.scrollBarMargin+ot*ut,o.scrollBarWidth,yt),le.select("rect").attr("y",Ie+ot)}if(V._context.edits.legendPosition){var Re,Pe,Ve,Je;de.classed("cursor-move",!0),v.init({element:de.node(),gd:V,prepFn:function(){var ot=m.getTranslate(de);Ve=ot.x,Je=ot.y},moveFn:function(ot,yt){var ut=Ve+ot,It=Je+yt;m.setTranslate(de,ut,It),Re=v.align(ut,Z._width,be.l,be.l+be.w,Z.xanchor),Pe=v.align(It+Z._height,-Z._height,be.t+be.h,be.t,Z.yanchor)},doneFn:function(){if(Re!==void 0&&Pe!==void 0){var ot={};ot[ae+".x"]=Re,ot[ae+".y"]=Pe,C.call("_guiRelayout",V,ot)}},clickFn:function(ot,yt){var ut=fe.selectAll("g.traces").filter(function(){var It=this.getBoundingClientRect();return yt.clientX>=It.left&&yt.clientX<=It.right&&yt.clientY>=It.top&&yt.clientY<=It.bottom});ut.size()>0&&T(V,de,ut,ot,yt)}})}}],V)}}function R(V,$,Z){var q=V[0],ae=q.width,ie=$.entrywidthmode,fe=q.trace.legendwidth||$.entrywidth;return ie==="fraction"?$._maxWidth*fe:Z+(fe||ae)}function T(V,$,Z,q,ae){var ie=Z.data()[0][0].trace,fe={event:ae,node:Z.node(),curveNumber:ie.index,expandedIndex:ie._expandedIndex,data:V.data,layout:V.layout,frames:V._transitionData._frames,config:V._context,fullData:V._fullData,fullLayout:V._fullLayout};ie._group&&(fe.group=ie._group),C.traceIs(ie,"pie-like")&&(fe.label=Z.datum()[0].label);var Q=w.triggerHandler(V,"plotly_legendclick",fe);if(q===1){if(Q===!1)return;$._clickTimeout=setTimeout(function(){V._fullLayout&&s(Z,V,q)},V._context.doubleClickDelay)}else if(q===2){$._clickTimeout&&clearTimeout($._clickTimeout),V._legendMouseDownTime=0;var J=w.triggerHandler(V,"plotly_legenddoubleclick",fe);J!==!1&&Q!==!1&&s(Z,V,q)}}function L(V,$,Z){var q=W(Z),ae=V.data()[0][0],ie=ae.trace,fe=C.traceIs(ie,"pie-like"),Q=!Z._inHover&&$._context.edits.legendText&&!fe,J=Z._maxNameLength,oe,K;ae.groupTitle?(oe=ae.groupTitle.text,K=ae.groupTitle.font):(K=Z.font,Z.entries?oe=ae.text:(oe=fe?ae.label:ie.name,ie._meta&&(oe=S.templateString(oe,ie._meta))));var ne=S.ensureSingle(V,"text",q+"text");ne.attr("text-anchor","start").call(m.font,K).text(Q?P(oe,J):oe);var ce=Z.indentation+Z.itemwidth+o.itemGap*2;n.positionText(ne,ce,0),Q?ne.call(n.makeEditable,{gd:$,text:oe}).call(k,V,$,Z).on("edit",function(re){this.text(P(re,J)).call(k,V,$,Z);var ee=ae.trace._fullInput||{},de={};if(C.hasTransform(ee,"groupby")){var le=C.getTransformIndices(ee,"groupby"),he=le[le.length-1],xe=S.keyedContainer(ee,"transforms["+he+"].styles","target","value.name");xe.set(ae.trace._group,re),de=xe.constructUpdate()}else de.name=re;return ee._isShape?C.call("_guiRelayout",$,"shapes["+ie.index+"].name",de.name):C.call("_guiRestyle",$,de,ie.index)}):k(ne,V,$,Z)}function P(V,$){var Z=Math.max(4,$);if(V&&V.trim().length>=Z/2)return V;V=V||"";for(var q=Z-V.length;q>0;q--)V+=" ";return V}function d(V,$,Z){var q=$._context.doubleClickDelay,ae,ie=1,fe=S.ensureSingle(V,"rect",Z+"toggle",function(Q){$._context.staticPlot||Q.style("cursor","pointer").attr("pointer-events","all"),Q.call(a.fill,"rgba(0,0,0,0)")});$._context.staticPlot||(fe.on("mousedown",function(){ae=new Date().getTime(),ae-$._legendMouseDownTimeq&&(ie=Math.max(ie-1,1)),T($,Q,V,ie,l.event)}}))}function k(V,$,Z,q,ae){q._inHover&&V.attr("data-notex",!0),n.convertToTspans(V,Z,function(){I($,Z,q,ae)})}function I(V,$,Z,q){var ae=V.data()[0][0];if(!Z._inHover&&ae&&!ae.trace.showlegend){V.remove();return}var ie=V.select("g[class*=math-group]"),fe=ie.node(),Q=W(Z);Z||(Z=$._fullLayout[Q]);var J=Z.borderwidth,oe;q===c?oe=Z.title.font:ae.groupTitle?oe=ae.groupTitle.font:oe=Z.font;var K=oe.size*f,ne,ce;if(fe){var re=m.bBox(fe);ne=re.height,ce=re.width,q===c?m.setTranslate(ie,J,J+ne*.75):m.setTranslate(ie,0,ne*.25)}else{var ee="."+Q+(q===c?"title":"")+"text",de=V.select(ee),le=n.lineCount(de),he=de.node();if(ne=K*le,ce=he?m.bBox(he).width:0,q===c)Z.title.side==="left"&&(ce+=o.itemGap*2),n.positionText(de,J+o.titlePad,J+K);else{var xe=o.itemGap*2+Z.indentation+Z.itemwidth;ae.groupTitle&&(xe=o.itemGap,ce-=Z.indentation+Z.itemwidth),n.positionText(de,xe,-K*((le-1)/2-.3))}}q===c?(Z._titleWidth=ce,Z._titleHeight=ne):(ae.lineHeight=K,ae.height=Math.max(ne,16)+3,ae.width=ce)}function N(V){var $=0,Z=0,q=V.title.side;return q&&(q.indexOf("left")!==-1&&($=V._titleWidth),q.indexOf("top")!==-1&&(Z=V._titleHeight)),[$,Z]}function B(V,$,Z,q){var ae=V._fullLayout,ie=W(q);q||(q=ae[ie]);var fe=ae._size,Q=g.isVertical(q),J=g.isGrouped(q),oe=q.entrywidthmode==="fraction",K=q.borderwidth,ne=2*K,ce=o.itemGap,re=q.indentation+q.itemwidth+ce*2,ee=2*(K+ce),de=H(q),le=q.y<0||q.y===0&&de==="top",he=q.y>1||q.y===1&&de==="bottom",xe=q.tracegroupgap,Ee={};q._maxHeight=Math.max(le||he?ae.height/2:fe.h,30);var Se=0;q._width=0,q._height=0;var ke=N(q);if(Q)Z.each(function(Ye){var Ke=Ye[0].height;m.setTranslate(this,K+ke[0],K+ke[1]+q._height+Ke/2+ce),q._height+=Ke,q._width=Math.max(q._width,Ye[0].width)}),Se=re+q._width,q._width+=ce+re+ne,q._height+=ee,J&&($.each(function(Ye,Ke){m.setTranslate(this,0,Ke*q.tracegroupgap)}),q._height+=(q._lgroupsLength-1)*q.tracegroupgap);else{var Te=U(q),Ae=q.x<0||q.x===0&&Te==="right",be=q.x>1||q.x===1&&Te==="left",Ie=he||le,Ue=ae.width/2;q._maxWidth=Math.max(Ae?Ie&&Te==="left"?fe.l+fe.w:Ue:be?Ie&&Te==="right"?fe.r+fe.w:Ue:fe.w,2*re);var Ne=0,ze=0;Z.each(function(Ye){var Ke=R(Ye,q,re);Ne=Math.max(Ne,Ke),ze+=Ke}),Se=null;var $e=0;if(J){var st=0,vt=0,at=0;$.each(function(){var Ye=0,Ke=0;l.select(this).selectAll("g.traces").each(function(Fe){var Me=R(Fe,q,re),we=Fe[0].height;m.setTranslate(this,ke[0],ke[1]+K+ce+we/2+Ke),Ke+=we,Ye=Math.max(Ye,Me),Ee[Fe[0].trace.legendgroup]=Ye});var We=Ye+ce;vt>0&&We+K+vt>q._maxWidth?($e=Math.max($e,vt),vt=0,at+=st+xe,st=Ke):st=Math.max(st,Ke),m.setTranslate(this,vt,at),vt+=We}),q._width=Math.max($e,vt)+K,q._height=at+st+ee}else{var nt=Z.size(),mt=ze+ne+(nt-1)*ce=q._maxWidth&&($e=Math.max($e,wt),lt=0,dt+=rt,q._height+=rt,rt=0),m.setTranslate(this,ke[0]+K+lt,ke[1]+K+dt+Ke/2+ce),wt=lt+We+ce,lt+=Fe,rt=Math.max(rt,Ke)}),mt?(q._width=lt+ne,q._height=rt+ee):(q._width=Math.max($e,wt)+ne,q._height+=rt+ee)}}q._width=Math.ceil(Math.max(q._width+ke[0],q._titleWidth+2*(K+o.titlePad))),q._height=Math.ceil(Math.max(q._height+ke[1],q._titleHeight+2*(K+o.itemGap))),q._effHeight=Math.min(q._height,q._maxHeight);var et=V._context.edits,Be=et.legendText||et.legendPosition;Z.each(function(Ye){var Ke=l.select(this).select("."+ie+"toggle"),We=Ye[0].height,Fe=Ye[0].trace.legendgroup,Me=R(Ye,q,re);J&&Fe!==""&&(Me=Ee[Fe]);var we=Be?re:Se||Me;!Q&&!oe&&(we+=ce/2),m.setRect(Ke,0,-We/2,we,We)})}function G(V,$,Z,q){var ae=V._fullLayout,ie=ae[$],fe=U(ie),Q=H(ie),J=ie.xref==="paper",oe=ie.yref==="paper";V._fullLayout._reservedMargin[$]={};var K=ie.y<.5?"b":"t",ne=ie.x<.5?"l":"r",ce={r:ae.width-Z,l:Z+ie._width,b:ae.height-q,t:q+ie._effHeight};if(J&&oe)return i.autoMargin(V,$,{x:ie.x,y:ie.y,l:ie._width*u[fe],r:ie._width*b[fe],b:ie._effHeight*b[Q],t:ie._effHeight*u[Q]});J?V._fullLayout._reservedMargin[$][K]=ce[K]:oe||ie.orientation==="v"?V._fullLayout._reservedMargin[$][ne]=ce[ne]:V._fullLayout._reservedMargin[$][K]=ce[K]}function U(V){return S.isRightAnchor(V)?"right":S.isCenterAnchor(V)?"center":"left"}function H(V){return S.isBottomAnchor(V)?"bottom":S.isMiddleAnchor(V)?"middle":"top"}function W(V){return V._id||"legend"}},35456:function(D,O,t){var l=t(24040),S=t(42451);D.exports=function(C,w,v){var m=w._inHover,a=S.isGrouped(w),n=S.isReversed(w),s={},o=[],h=!1,f={},u=0,b=0,p,E;function g(V,$,Z){if(w.visible!==!1&&!(v&&V!==w._id))if($===""||!S.isGrouped(w)){var q="~~i"+u;o.push(q),s[q]=[Z],u++}else o.indexOf($)===-1?(o.push($),h=!0,s[$]=[Z]):s[$].push(Z)}for(p=0;pI&&(k=I)}P[p][0]._groupMinRank=k,P[p][0]._preGroupSort=p}var N=function(V,$){return V[0]._groupMinRank-$[0]._groupMinRank||V[0]._preGroupSort-$[0]._preGroupSort},B=function(V,$){return V.trace.legendrank-$.trace.legendrank||V._preSort-$._preSort};for(P.forEach(function(V,$){V[0]._preGroupSort=$}),P.sort(N),p=0;p0)ne=J.width;else return 0;return L?K:Math.min(ne,oe)};A.each(function(Q){var J=l.select(this),oe=i.ensureSingle(J,"g","layers");oe.style("opacity",Q[0].trace.opacity);var K=R.indentation,ne=R.valign,ce=Q[0].lineHeight,re=Q[0].height;if(ne==="middle"&&K===0||!ce||!re)oe.attr("transform",null);else{var ee={top:1,bottom:-1}[ne],de=ee*(.5*(ce-re+3))||0,le=R.indentation;oe.attr("transform",C(le,de))}var he=oe.selectAll("g.legendfill").data([Q]);he.enter().append("g").classed("legendfill",!0);var xe=oe.selectAll("g.legendlines").data([Q]);xe.enter().append("g").classed("legendlines",!0);var Ee=oe.selectAll("g.legendsymbols").data([Q]);Ee.enter().append("g").classed("legendsymbols",!0),Ee.selectAll("g.legendpoints").data([Q]).enter().append("g").classed("legendpoints",!0)}).each(fe).each(G).each(H).each(U).each(V).each(ae).each(q).each(N).each(B).each($).each(Z);function N(Q){var J=g(Q),oe=J.showFill,K=J.showLine,ne=J.showGradientLine,ce=J.showGradientFill,re=J.anyFill,ee=J.anyLine,de=Q[0],le=de.trace,he,xe,Ee=m(le),Se=Ee.colorscale,ke=Ee.reversescale,Te=function($e){if($e.size())if(oe)w.fillGroupStyle($e,M,!0);else{var st="legendfill-"+le.uid;w.gradient($e,M,st,E(ke),Se,"fill")}},Ae=function($e){if($e.size()){var st="legendline-"+le.uid;w.lineGroupStyle($e),w.gradient($e,M,st,E(ke),Se,"stroke")}},be=a.hasMarkers(le)||!re?"M5,0":ee?"M5,-2":"M5,-3",Ie=l.select(this),Ue=Ie.select(".legendfill").selectAll("path").data(oe||ce?[Q]:[]);if(Ue.enter().append("path").classed("js-fill",!0),Ue.exit().remove(),Ue.attr("d",be+"h"+P+"v6h-"+P+"z").call(Te),K||ne){var Ne=I(void 0,le.line,b,f);xe=i.minExtend(le,{line:{width:Ne}}),he=[i.minExtend(de,{trace:xe})]}var ze=Ie.select(".legendlines").selectAll("path").data(K||ne?[he]:[]);ze.enter().append("path").classed("js-line",!0),ze.exit().remove(),ze.attr("d",be+(ne?"l"+P+",0.0001":"h"+P)).call(K?w.lineGroupStyle:Ae)}function B(Q){var J=g(Q),oe=J.anyFill,K=J.anyLine,ne=J.showLine,ce=J.showMarker,re=Q[0],ee=re.trace,de=!ce&&!K&&!oe&&a.hasText(ee),le,he;function xe(Ue,Ne,ze,$e){var st=i.nestedProperty(ee,Ue).get(),vt=i.isArrayOrTypedArray(st)&&Ne?Ne(st):st;if(L&&vt&&$e!==void 0&&(vt=$e),ze){if(vtze[1])return ze[1]}return vt}function Ee(Ue){return re._distinct&&re.index&&Ue[re.index]?Ue[re.index]:Ue[0]}if(ce||de||ne){var Se={},ke={};if(ce){Se.mc=xe("marker.color",Ee),Se.mx=xe("marker.symbol",Ee),Se.mo=xe("marker.opacity",i.mean,[.2,1]),Se.mlc=xe("marker.line.color",Ee),Se.mlw=xe("marker.line.width",i.mean,[0,5],u),ke.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Te=xe("marker.size",i.mean,[2,16],h);Se.ms=Te,ke.marker.size=Te}ne&&(ke.line={width:xe("line.width",Ee,[0,10],f)}),de&&(Se.tx="Aa",Se.tp=xe("textposition",Ee),Se.ts=10,Se.tc=xe("textfont.color",Ee),Se.tf=xe("textfont.family",Ee)),le=[i.minExtend(re,Se)],he=i.minExtend(ee,ke),he.selectedpoints=null,he.texttemplate=null}var Ae=l.select(this).select("g.legendpoints"),be=Ae.selectAll("path.scatterpts").data(ce?le:[]);be.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",k),be.exit().remove(),be.call(w.pointStyle,he,M),ce&&(le[0].mrc=3);var Ie=Ae.selectAll("g.pointtext").data(de?le:[]);Ie.enter().append("g").classed("pointtext",!0).append("text").attr("transform",k),Ie.exit().remove(),Ie.selectAll("text").call(w.textPointStyle,he,M)}function G(Q){var J=Q[0].trace,oe=J.type==="waterfall";if(Q[0]._distinct&&oe){var K=Q[0].trace[Q[0].dir].marker;return Q[0].mc=K.color,Q[0].mlw=K.line.width,Q[0].mlc=K.line.color,W(Q,this,"waterfall")}var ne=[];J.visible&&oe&&(ne=Q[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var ce=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ne);ce.enter().append("path").classed("legendwaterfall",!0).attr("transform",k).style("stroke-miterlimit",1),ce.exit().remove(),ce.each(function(re){var ee=l.select(this),de=J[re[0]].marker,le=I(void 0,de.line,p,u);ee.attr("d",re[1]).style("stroke-width",le+"px").call(v.fill,de.color),le&&ee.call(v.stroke,de.line.color)})}function U(Q){W(Q,this)}function H(Q){W(Q,this,"funnel")}function W(Q,J,oe){var K=Q[0].trace,ne=K.marker||{},ce=ne.line||{},re=ne.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",ee=oe?K.visible&&K.type===oe:S.traceIs(K,"bar"),de=l.select(J).select("g.legendpoints").selectAll("path.legend"+oe).data(ee?[Q]:[]);de.enter().append("path").classed("legend"+oe,!0).attr("d",re).attr("transform",k),de.exit().remove(),de.each(function(le){var he=l.select(this),xe=le[0],Ee=I(xe.mlw,ne.line,p,u);he.style("stroke-width",Ee+"px");var Se=xe.mcc;if(!R._inHover&&"mc"in xe){var ke=m(ne),Te=ke.mid;Te===void 0&&(Te=(ke.max+ke.min)/2),Se=w.tryColorscale(ne,"")(Te)}var Ae=Se||xe.mc||ne.color,be=ne.pattern,Ie=be&&w.getPatternAttr(be.shape,0,"");if(Ie){var Ue=w.getPatternAttr(be.bgcolor,0,null),Ne=w.getPatternAttr(be.fgcolor,0,null),ze=be.fgopacity,$e=c(be.size,8,10),st=c(be.solidity,.5,1),vt="legend-"+K.uid;he.call(w.pattern,"legend",M,vt,Ie,$e,st,Se,be.fillmode,Ue,Ne,ze)}else he.call(v.fill,Ae);Ee&&v.stroke(he,xe.mlc||ce.color)})}function V(Q){var J=Q[0].trace,oe=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(J.visible&&S.traceIs(J,"box-violin")?[Q]:[]);oe.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",k),oe.exit().remove(),oe.each(function(){var K=l.select(this);if((J.boxpoints==="all"||J.points==="all")&&v.opacity(J.fillcolor)===0&&v.opacity((J.line||{}).color)===0){var ne=i.minExtend(J,{marker:{size:L?h:i.constrain(J.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});oe.call(w.pointStyle,ne,M)}else{var ce=I(void 0,J.line,p,u);K.style("stroke-width",ce+"px").call(v.fill,J.fillcolor),ce&&v.stroke(K,J.line.color)}})}function $(Q){var J=Q[0].trace,oe=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(J.visible&&J.type==="candlestick"?[Q,Q]:[]);oe.enter().append("path").classed("legendcandle",!0).attr("d",function(K,ne){return ne?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",k).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(K,ne){var ce=l.select(this),re=J[ne?"increasing":"decreasing"],ee=I(void 0,re.line,p,u);ce.style("stroke-width",ee+"px").call(v.fill,re.fillcolor),ee&&v.stroke(ce,re.line.color)})}function Z(Q){var J=Q[0].trace,oe=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(J.visible&&J.type==="ohlc"?[Q,Q]:[]);oe.enter().append("path").classed("legendohlc",!0).attr("d",function(K,ne){return ne?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",k).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(K,ne){var ce=l.select(this),re=J[ne?"increasing":"decreasing"],ee=I(void 0,re.line,p,u);ce.style("fill","none").call(w.dashLine,re.line.dash,ee),ee&&v.stroke(ce,re.line.color)})}function q(Q){ie(Q,this,"pie")}function ae(Q){ie(Q,this,"funnelarea")}function ie(Q,J,oe){var K=Q[0],ne=K.trace,ce=oe?ne.visible&&ne.type===oe:S.traceIs(ne,oe),re=l.select(J).select("g.legendpoints").selectAll("path.legend"+oe).data(ce?[Q]:[]);if(re.enter().append("path").classed("legend"+oe,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",k),re.exit().remove(),re.size()){var ee=ne.marker||{},de=I(s(ee.line.width,K.pts),ee.line,p,u),le="pieLike",he=i.minExtend(ne,{marker:{line:{width:de}}},le),xe=i.minExtend(K,{trace:he},le);n(re,xe,he,M)}}function fe(Q){var J=Q[0].trace,oe,K=[];if(J.visible)switch(J.type){case"histogram2d":case"heatmap":K=[["M-15,-2V4H15V-2Z"]],oe=!0;break;case"choropleth":case"choroplethmapbox":K=[["M-6,-6V6H6V-6Z"]],oe=!0;break;case"densitymapbox":K=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],oe="radial";break;case"cone":K=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],oe=!1;break;case"streamtube":K=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],oe=!1;break;case"surface":K=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],oe=!0;break;case"mesh3d":K=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],oe=!1;break;case"volume":K=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],oe=!0;break;case"isosurface":K=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],oe=!1;break}var ne=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(K);ne.enter().append("path").classed("legend3dandfriends",!0).attr("transform",k).style("stroke-miterlimit",1),ne.exit().remove(),ne.each(function(ce,re){var ee=l.select(this),de=m(J),le=de.colorscale,he=de.reversescale,xe=function(Te){if(Te.size()){var Ae="legendfill-"+J.uid;w.gradient(Te,M,Ae,E(he,oe==="radial"),le,"fill")}},Ee;if(le){if(!oe){var ke=le.length;Ee=re===0?le[he?ke-1:0][1]:re===1?le[he?0:ke-1][1]:le[Math.floor((ke-1)/2)][1]}}else{var Se=J.vertexcolor||J.facecolor||J.color;Ee=i.isArrayOrTypedArray(Se)?Se[re]||Se[0]:Se}ee.attr("d",ce[0]),Ee?ee.call(v.fill,Ee):ee.call(xe)})}};function E(x,A){var M=A?"radial":"horizontal";return M+(x?"":"reversed")}function g(x){var A=x[0].trace,M=A.contours,R=a.hasLines(A),T=a.hasMarkers(A),L=A.visible&&A.fill&&A.fill!=="none",P=!1,d=!1;if(M){var k=M.coloring;k==="lines"?P=!0:R=k==="none"||k==="heatmap"||M.showlines,M.type==="constraint"?L=M._operation!=="=":(k==="fill"||k==="heatmap")&&(d=!0)}return{showMarker:T,showLine:R,showFill:L,showGradientLine:P,showGradientFill:d,anyLine:R||P,anyFill:L||d}}function c(x,A,M){return x&&i.isArrayOrTypedArray(x)?A:x>M?M:x}},66540:function(D,O,t){t(76052),D.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(D,O,t){var l=t(24040),S=t(7316),i=t(79811),C=t(9224),w=t(4016).eraseActiveShape,v=t(3400),m=v._,a=D.exports={};a.toImage={name:"toImage",title:function(x){var A=x._context.toImageButtonOptions||{},M=A.format||"png";return M==="png"?m(x,"Download plot as a png"):m(x,"Download plot")},icon:C.camera,click:function(x){var A=x._context.toImageButtonOptions,M={format:A.format||"png"};v.notifier(m(x,"Taking snapshot - this may take a few seconds"),"long"),M.format!=="svg"&&v.isIE()&&(v.notifier(m(x,"IE only supports svg. Changing format to svg."),"long"),M.format="svg"),["filename","width","height","scale"].forEach(function(R){R in A&&(M[R]=A[R])}),l.call("downloadImage",x,M).then(function(R){v.notifier(m(x,"Snapshot succeeded")+" - "+R,"long")}).catch(function(){v.notifier(m(x,"Sorry, there was a problem downloading your snapshot!"),"long")})}},a.sendDataToCloud={name:"sendDataToCloud",title:function(x){return m(x,"Edit in Chart Studio")},icon:C.disk,click:function(x){S.sendDataToCloud(x)}},a.editInChartStudio={name:"editInChartStudio",title:function(x){return m(x,"Edit in Chart Studio")},icon:C.pencil,click:function(x){S.sendDataToCloud(x)}},a.zoom2d={name:"zoom2d",_cat:"zoom",title:function(x){return m(x,"Zoom")},attr:"dragmode",val:"zoom",icon:C.zoombox,click:n},a.pan2d={name:"pan2d",_cat:"pan",title:function(x){return m(x,"Pan")},attr:"dragmode",val:"pan",icon:C.pan,click:n},a.select2d={name:"select2d",_cat:"select",title:function(x){return m(x,"Box Select")},attr:"dragmode",val:"select",icon:C.selectbox,click:n},a.lasso2d={name:"lasso2d",_cat:"lasso",title:function(x){return m(x,"Lasso Select")},attr:"dragmode",val:"lasso",icon:C.lasso,click:n},a.drawclosedpath={name:"drawclosedpath",title:function(x){return m(x,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:C.drawclosedpath,click:n},a.drawopenpath={name:"drawopenpath",title:function(x){return m(x,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:C.drawopenpath,click:n},a.drawline={name:"drawline",title:function(x){return m(x,"Draw line")},attr:"dragmode",val:"drawline",icon:C.drawline,click:n},a.drawrect={name:"drawrect",title:function(x){return m(x,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:C.drawrect,click:n},a.drawcircle={name:"drawcircle",title:function(x){return m(x,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:C.drawcircle,click:n},a.eraseshape={name:"eraseshape",title:function(x){return m(x,"Erase active shape")},icon:C.eraseshape,click:w},a.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(x){return m(x,"Zoom in")},attr:"zoom",val:"in",icon:C.zoom_plus,click:n},a.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(x){return m(x,"Zoom out")},attr:"zoom",val:"out",icon:C.zoom_minus,click:n},a.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(x){return m(x,"Autoscale")},attr:"zoom",val:"auto",icon:C.autoscale,click:n},a.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(x){return m(x,"Reset axes")},attr:"zoom",val:"reset",icon:C.home,click:n},a.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(x){return m(x,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:C.tooltip_basic,gravity:"ne",click:n},a.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(x){return m(x,"Compare data on hover")},attr:"hovermode",val:function(x){return x._fullLayout._isHoriz?"y":"x"},icon:C.tooltip_compare,gravity:"ne",click:n};function n(x,A){var M=A.currentTarget,R=M.getAttribute("data-attr"),T=M.getAttribute("data-val")||!0,L=x._fullLayout,P={},d=i.list(x,null,!0),k=L._cartesianSpikesEnabled,I,N;if(R==="zoom"){var B=T==="in"?.5:2,G=(1+B)/2,U=(1-B)/2,H;for(N=0;N1?(ie=["toggleHover"],fe=["resetViews"]):P?(ae=["zoomInGeo","zoomOutGeo"],ie=["hoverClosestGeo"],fe=["resetGeo"]):L?(ie=["hoverClosest3d"],fe=["resetCameraDefault3d","resetCameraLastSave3d"]):B?(ae=["zoomInMapbox","zoomOutMapbox"],ie=["toggleHover"],fe=["resetViewMapbox"]):I?ie=["hoverClosestGl2d"]:d?ie=["hoverClosestPie"]:H?(ie=["hoverClosestCartesian","hoverCompareCartesian"],fe=["resetViewSankey"]):ie=["toggleHover"],T&&(ie=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(h(E)||V)&&(ie=[]),(T||I)&&!W&&(ae=["zoomIn2d","zoomOut2d","autoScale2d"],fe[0]!=="resetViews"&&(fe=["resetScale2d"])),L?Q=["zoom3d","pan3d","orbitRotation","tableRotation"]:(T||I)&&!W||N?Q=["zoom2d","pan2d"]:B||P?Q=["pan2d"]:G&&(Q=["zoom2d"]),o(E)&&Q.push("select2d","lasso2d");var J=[],oe=function(re){J.indexOf(re)===-1&&ie.indexOf(re)!==-1&&J.push(re)};if(Array.isArray(M)){for(var K=[],ne=0;ne0);if(c){var x=a(o,h,f);E("x",x[0]),E("y",x[1]),l.noneOrAll(s,o,["x","y"]),E("xanchor"),E("yanchor"),l.coerceFont(E,"font",h.font);var A=E("bgcolor");E("activecolor",S.contrast(A,v.lightAmount,v.darkAmount)),E("bordercolor"),E("borderwidth")}};function m(n,s,o,h){var f=h.calendar;function u(E,g){return l.coerce(n,s,w.buttons,E,g)}var b=u("visible");if(b){var p=u("step");p!=="all"&&(f&&f!=="gregorian"&&(p==="month"||p==="year")?s.stepmode="backward":u("stepmode"),u("count")),u("label")}}function a(n,s,o){for(var h=o.filter(function(p){return s[p].anchor===n._id}),f=0,u=0;u=Ae.max)ke=le[Te+1];else if(Se=Ae.pmax)ke=le[Te+1];else if(Se0?L.touches[0].clientX:0}function b(L,P,d,k){if(P._context.staticPlot)return;var I=L.select("rect."+f.slideBoxClassName).node(),N=L.select("rect."+f.grabAreaMinClassName).node(),B=L.select("rect."+f.grabAreaMaxClassName).node();function G(){var U=l.event,H=U.target,W=u(U),V=W-L.node().getBoundingClientRect().left,$=k.d2p(d._rl[0]),Z=k.d2p(d._rl[1]),q=o.coverSlip();this.addEventListener("touchmove",ae),this.addEventListener("touchend",ie),q.addEventListener("mousemove",ae),q.addEventListener("mouseup",ie);function ae(fe){var Q=u(fe),J=+Q-W,oe,K,ne;switch(H){case I:if(ne="ew-resize",$+J>d._length||Z+J<0)return;oe=$+J,K=Z+J;break;case N:if(ne="col-resize",$+J>d._length)return;oe=$+J,K=Z;break;case B:if(ne="col-resize",Z+J<0)return;oe=$,K=Z+J;break;default:ne="ew-resize",oe=V,K=V+J;break}if(K=0;G--){var U=M.append("path").attr(T).style("opacity",G?.1:L).call(C.stroke,d).call(C.fill,P).call(w.dashLine,G?"solid":I,G?4+k:k);if(h(U,p,c),N){var H=v(p.layout,"selections",c);U.style({cursor:"move"});var W={element:U.node(),plotinfo:x,gd:p,editHelpers:H,isActiveSelection:!0},V=l(R,p);S(V,U,W)}else U.style("pointer-events",G?"all":"none");B[G]=U}var $=B[0],Z=B[1];Z.node().addEventListener("click",function(){return f(p,$)})}}function h(p,E,g){var c=g.xref+g.yref;w.setClipUrl(p,"clip"+E._fullLayout._uid+c,E)}function f(p,E){if(s(p)){var g=E.node(),c=+g.getAttribute("data-index");if(c>=0){if(c===p._fullLayout._activeSelectionIndex){b(p);return}p._fullLayout._activeSelectionIndex=c,p._fullLayout._deactivateSelection=b,n(p)}}}function u(p){if(s(p)){var E=p._fullLayout.selections.length-1;p._fullLayout._activeSelectionIndex=E,p._fullLayout._deactivateSelection=b,n(p)}}function b(p){if(s(p)){var E=p._fullLayout._activeSelectionIndex;E>=0&&(i(p),delete p._fullLayout._activeSelectionIndex,n(p))}}},34200:function(D,O,t){var l=t(98192).u,S=t(92880).extendFlat;D.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:S({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(D){D.exports=function(t,l,S){S("newselection.mode");var i=S("newselection.line.width");i&&(S("newselection.line.color"),S("newselection.line.dash")),S("activeselection.fillcolor"),S("activeselection.opacity")}},5968:function(D,O,t){var l=t(72760),S=l.selectMode,i=t(1936),C=i.clearOutline,w=t(9856),v=w.readPaths,m=w.writePaths,a=w.fixDatesForPaths;D.exports=function(s,o){if(s.length){var h=s[0][0];if(h){var f=h.getAttribute("d"),u=o.gd,b=u._fullLayout.newselection,p=o.plotinfo,E=p.xaxis,g=p.yaxis,c=o.isActiveSelection,x=o.dragmode,A=(u.layout||{}).selections||[];if(!S(x)&&c!==void 0){var M=u._fullLayout._activeSelectionIndex;if(M=0){Lt._fullLayout._deactivateShape(Lt);return}if(!yt){var On=Xt.clickmode;d.done(Xr).then(function(){if(d.clear(Xr),un===2){for(ir.remove(),qt=0;qt-1&&ie(_n,Lt,we.xaxes,we.yaxes,we.subplot,we,ir),On==="event"&&Ye(Lt,void 0);v.click(Lt,_n,Qt.id)}).catch(T.error)}},we.doneFn=function(){Tr.remove(),d.done(Xr).then(function(){d.clear(Xr),!dr&&Bt&&we.selectionDefs&&(Bt.subtract=mr,we.selectionDefs.push(Bt),we.mergedPolygons.length=0,[].push.apply(we.mergedPolygons,Ut)),(dr||yt)&&re(we,dr),we.doneFnCompleted&&we.doneFnCompleted(Dr),ut&&Ye(Lt,fr)}).catch(T.error)}}function ie(We,Fe,Me,we,Re,Pe,Ve){var Je=Fe._hoverdata,ot=Fe._fullLayout,yt=ot.clickmode,ut=yt.indexOf("event")>-1,It=[],Vt,xt,Lt,Xt,dr,Tt,Kt,Qt,xr,sr;if(he(Je)){K(We,Fe,Pe),Vt=de(Fe,Me,we,Re);var Ct=xe(Je,Vt),ht=Ct.pointNumbers.length>0;if(ht?Se(Vt,Ct):ke(Vt)&&(Kt=Ee(Ct))){for(Ve&&Ve.remove(),sr=0;sr=0}function ce(We){return We._fullLayout._activeSelectionIndex>=0}function re(We,Fe){var Me=We.dragmode,we=We.plotinfo,Re=We.gd;ne(Re)&&Re._fullLayout._deactivateShape(Re),ce(Re)&&Re._fullLayout._deactivateSelection(Re);var Pe=Re._fullLayout,Ve=Pe._zoomlayer,Je=o(Me),ot=f(Me);if(Je||ot){var yt=Ve.selectAll(".select-outline-"+we.id);if(yt&&Re._fullLayout._outlining){var ut;Je&&(ut=A(yt,We)),ut&&i.call("_guiRelayout",Re,{shapes:ut});var It;ot&&!q(We)&&(It=M(yt,We)),It&&(Re._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",Re,{selections:It}).then(function(){Fe&&R(Re)})),Re._fullLayout._outlining=!1}}we.selection={},we.selection.selectionDefs=We.selectionDefs=[],we.selection.mergedPolygons=We.mergedPolygons=[]}function ee(We){return We._id}function de(We,Fe,Me,we){if(!We.calcdata)return[];var Re=[],Pe=Fe.map(ee),Ve=Me.map(ee),Je,ot,yt;for(yt=0;yt0,Pe=Re?we[0]:Me;return Fe.selectedpoints?Fe.selectedpoints.indexOf(Pe)>-1:!1}function Se(We,Fe){var Me=[],we,Re,Pe,Ve;for(Ve=0;Ve0&&Me.push(we);if(Me.length===1&&(Pe=Me[0]===Fe.searchInfo,Pe&&(Re=Fe.searchInfo.cd[0].trace,Re.selectedpoints.length===Fe.pointNumbers.length))){for(Ve=0;Ve1||(Fe+=we.selectedpoints.length,Fe>1)))return!1;return Fe===1}function Te(We,Fe,Me){var we;for(we=0;we-1&&Fe;if(!Ve&&Fe){var un=nt(We,!0);if(un.length){var _n=un[0].xref,On=un[0].yref;if(_n&&On){var Mr=lt(un),Rr=wt([k(We,_n,"x"),k(We,On,"y")]);Rr(Dr,Mr)}}We._fullLayout._noEmitSelectedAtStart?We._fullLayout._noEmitSelectedAtStart=!1:yn&&Ye(We,Dr),Vt._reselect=!1}if(!Ve&&Vt._deselect){var Zr=Vt._deselect;Je=Zr.xref,ot=Zr.yref,st(Je,ot,ut)||vt(We,Je,ot,we),yn&&(Dr.points.length?Ye(We,Dr):Ke(We)),Vt._deselect=!1}return{eventData:Dr,selectionTesters:Me}}function $e(We){var Fe=We.calcdata;if(Fe)for(var Me=0;Me0?g+b:b;return{ppad:b,ppadplus:p?x:A,ppadminus:p?A:x}}else return{ppad:b}}function a(n,s,o,h,f){var u=n.type==="category"||n.type==="multicategory"?n.r2c:n.d2c;if(s!==void 0)return[u(s),u(o)];if(h){var b=1/0,p=-1/0,E=h.match(i.segmentRE),g,c,x,A,M;for(n.type==="date"&&(u=C.decodeDate(u)),g=0;gp&&(p=M)));if(p>=b)return[b,p]}}},85448:function(D){D.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(D,O,t){var l=t(3400),S=t(54460),i=t(51272),C=t(46056),w=t(65152);D.exports=function(n,s){i(n,s,{name:"shapes",handleItemDefaults:m})};function v(a,n){return a?"bottom":n.indexOf("top")!==-1?"top":n.indexOf("bottom")!==-1?"bottom":"middle"}function m(a,n,s){function o(Q,J){return l.coerce(a,n,C,Q,J)}n._isShape=!0;var h=o("visible");if(h){var f=o("showlegend");f&&(o("legend"),o("legendwidth"),o("legendgroup"),o("legendgrouptitle.text"),l.coerceFont(o,"legendgrouptitle.font"),o("legendrank"));var u=o("path"),b=u?"path":"rect",p=o("type",b),E=p!=="path";E&&delete n.path,o("editable"),o("layer"),o("opacity"),o("fillcolor"),o("fillrule");var g=o("line.width");g&&(o("line.color"),o("line.dash"));for(var c=o("xsizemode"),x=o("ysizemode"),A=["x","y"],M=0;M<2;M++){var R=A[M],T=R+"anchor",L=R==="x"?c:x,P={_fullLayout:s},d,k,I,N=S.coerceRef(a,n,P,R,void 0,"paper"),B=S.getRefType(N);if(B==="range"?(d=S.getFromId(P,N),d._shapeIndices.push(n._index),I=w.rangeToShapePosition(d),k=w.shapePositionToRange(d)):k=I=l.identity,E){var G=.25,U=.75,H=R+"0",W=R+"1",V=a[H],$=a[W];a[H]=k(a[H],!0),a[W]=k(a[W],!0),L==="pixel"?(o(H,0),o(W,10)):(S.coercePosition(n,P,o,N,H,G),S.coercePosition(n,P,o,N,W,U)),n[H]=I(n[H]),n[W]=I(n[W]),a[H]=V,a[W]=$}if(L==="pixel"){var Z=a[T];a[T]=k(a[T],!0),S.coercePosition(n,P,o,N,T,.25),n[T]=I(n[T]),a[T]=Z}}E&&l.noneOrAll(a,n,["x0","x1","y0","y1"]);var q=p==="line",ae,ie;if(E&&(ae=o("label.texttemplate")),ae||(ie=o("label.text")),ie||ae){o("label.textangle");var fe=o("label.textposition",q?"middle":"middle center");o("label.xanchor"),o("label.yanchor",v(q,fe)),o("label.padding"),l.coerceFont(o,"label.font",s.font)}}}},60728:function(D,O,t){var l=t(3400),S=t(54460),i=t(72736),C=t(43616),w=t(9856).readPaths,v=t(65152),m=v.getPathString,a=t(97728),n=t(84284).FROM_TL;D.exports=function(f,u,b,p){if(p.selectAll(".shape-label").remove(),!!(b.label.text||b.label.texttemplate)){var E;if(b.label.texttemplate){var g={};if(b.type!=="path"){var c=S.getFromId(f,b.xref),x=S.getFromId(f,b.yref);for(var A in a){var M=a[A](b,c,x);M!==void 0&&(g[A]=M)}}E=l.texttemplateStringForShapes(b.label.texttemplate,{},f._fullLayout._d3locale,g)}else E=b.label.text;var R={"data-index":u},T=b.label.font,L={"data-notex":1},P=p.append("g").attr(R).classed("shape-label",!0),d=P.append("text").attr(L).classed("shape-label-text",!0).text(E),k,I,N,B;if(b.path){var G=m(f,b),U=w(G,f);k=1/0,N=1/0,I=-1/0,B=-1/0;for(var H=0;H=h?p=f-b:p=b-f,-180/Math.PI*Math.atan2(p,E)}function o(h,f,u,b,p,E,g){var c=p.label.textposition,x=p.label.textangle,A=p.label.padding,M=p.type,R=Math.PI/180*E,T=Math.sin(R),L=Math.cos(R),P=p.label.xanchor,d=p.label.yanchor,k,I,N,B;if(M==="line"){c==="start"?(k=h,I=f):c==="end"?(k=u,I=b):(k=(h+u)/2,I=(f+b)/2),P==="auto"&&(c==="start"?x==="auto"?u>h?P="left":uh?P="right":uh?P="right":uh?P="left":u1&&!(be.length===2&&be[1][0]==="Z")&&(Q===0&&(be[0][0]="M"),k[fe]=be,U(),H())}}function le(be,Ie){if(be===2){fe=+Ie.srcElement.getAttribute("data-i"),Q=+Ie.srcElement.getAttribute("data-j");var Ue=k[fe];!E(Ue)&&!g(Ue)&&de()}}function he(be){ae=[];for(var Ie=0;IeU&&Me>H&&!Ke.shiftKey?h.getCursor(we/Fe,1-Re/Me):"move";f(k,Pe),st=Pe.split("-")[0]}}function mt(Ke){g(d)||(W&&(J=be(I.xanchor)),V&&(oe=Ie(I.yanchor)),I.type==="path"?xe=I.path:(ae=W?I.x0:be(I.x0),ie=V?I.y0:Ie(I.y0),fe=W?I.x1:be(I.x1),Q=V?I.y1:Ie(I.y1)),aeQ?(K=ie,ee="y0",ne=Q,de="y1"):(K=Q,ee="y1",ne=ie,de="y0"),nt(Ke),et(B,I),Ye(k,I,d),$e.moveFn=st==="move"?dt:wt,$e.altKey=Ke.altKey)}function rt(){g(d)||(f(k),Be(B),A(k,d,I),S.call("_guiRelayout",d,G.getUpdateObj()))}function lt(){g(d)||Be(B)}function dt(Ke,We){if(I.type==="path"){var Fe=function(Re){return Re},Me=Fe,we=Fe;W?q("xanchor",I.xanchor=Ue(J+Ke)):(Me=function(Pe){return Ue(be(Pe)+Ke)},Se&&Se.type==="date"&&(Me=b.encodeDate(Me))),V?q("yanchor",I.yanchor=Ne(oe+We)):(we=function(Pe){return Ne(Ie(Pe)+We)},Te&&Te.type==="date"&&(we=b.encodeDate(we))),q("path",I.path=R(xe,Me,we))}else W?q("xanchor",I.xanchor=Ue(J+Ke)):(q("x0",I.x0=Ue(ae+Ke)),q("x1",I.x1=Ue(fe+Ke))),V?q("yanchor",I.yanchor=Ne(oe+We)):(q("y0",I.y0=Ne(ie+We)),q("y1",I.y1=Ne(Q+We)));k.attr("d",p(d,I)),et(B,I),m(d,N,I,Ee)}function wt(Ke,We){if(Z){var Fe=function(Tt){return Tt},Me=Fe,we=Fe;W?q("xanchor",I.xanchor=Ue(J+Ke)):(Me=function(Kt){return Ue(be(Kt)+Ke)},Se&&Se.type==="date"&&(Me=b.encodeDate(Me))),V?q("yanchor",I.yanchor=Ne(oe+We)):(we=function(Kt){return Ne(Ie(Kt)+We)},Te&&Te.type==="date"&&(we=b.encodeDate(we))),q("path",I.path=R(xe,Me,we))}else if($){if(st==="resize-over-start-point"){var Re=ae+Ke,Pe=V?ie-We:ie+We;q("x0",I.x0=W?Re:Ue(Re)),q("y0",I.y0=V?Pe:Ne(Pe))}else if(st==="resize-over-end-point"){var Ve=fe+Ke,Je=V?Q-We:Q+We;q("x1",I.x1=W?Ve:Ue(Ve)),q("y1",I.y1=V?Je:Ne(Je))}}else{var ot=function(Tt){return st.indexOf(Tt)!==-1},yt=ot("n"),ut=ot("s"),It=ot("w"),Vt=ot("e"),xt=yt?K+We:K,Lt=ut?ne+We:ne,Xt=It?ce+Ke:ce,dr=Vt?re+Ke:re;V&&(yt&&(xt=K-We),ut&&(Lt=ne-We)),(!V&&Lt-xt>H||V&&xt-Lt>H)&&(q(ee,I[ee]=V?xt:Ne(xt)),q(de,I[de]=V?Lt:Ne(Lt))),dr-Xt>U&&(q(le,I[le]=W?Xt:Ue(Xt)),q(he,I[he]=W?dr:Ue(dr)))}k.attr("d",p(d,I)),et(B,I),m(d,N,I,Ee)}function et(Ke,We){(W||V)&&Fe();function Fe(){var Me=We.type!=="path",we=Ke.selectAll(".visual-cue").data([0]),Re=1;we.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Re}).classed("visual-cue",!0);var Pe=be(W?We.xanchor:i.midRange(Me?[We.x0,We.x1]:b.extractPathCoords(We.path,u.paramIsX))),Ve=Ie(V?We.yanchor:i.midRange(Me?[We.y0,We.y1]:b.extractPathCoords(We.path,u.paramIsY)));if(Pe=b.roundPositionForSharpStrokeRendering(Pe,Re),Ve=b.roundPositionForSharpStrokeRendering(Ve,Re),W&&V){var Je="M"+(Pe-1-Re)+","+(Ve-1-Re)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";we.attr("d",Je)}else if(W){var ot="M"+(Pe-1-Re)+","+(Ve-9-Re)+"v18 h2 v-18 Z";we.attr("d",ot)}else{var yt="M"+(Pe-9-Re)+","+(Ve-1-Re)+"h18 v2 h-18 Z";we.attr("d",yt)}}}function Be(Ke){Ke.selectAll(".visual-cue").remove()}function Ye(Ke,We,Fe){var Me=We.xref,we=We.yref,Re=C.getFromId(Fe,Me),Pe=C.getFromId(Fe,we),Ve="";Me!=="paper"&&!Re.autorange&&(Ve+=Me),we!=="paper"&&!Pe.autorange&&(Ve+=we),s.setClipUrl(Ke,Ve?"clip"+Fe._fullLayout._uid+Ve:null,Fe)}}function R(d,k,I){return d.replace(u.segmentRE,function(N){var B=0,G=N.charAt(0),U=u.paramIsX[G],H=u.paramIsY[G],W=u.numParams[G],V=N.substr(1).replace(u.paramRE,function($){return B>=W||(U[B]?$=k($):H[B]&&($=I($)),B++),$});return G+V})}function T(d,k){if(c(d)){var I=k.node(),N=+I.getAttribute("data-index");if(N>=0){if(N===d._fullLayout._activeShapeIndex){L(d);return}d._fullLayout._activeShapeIndex=N,d._fullLayout._deactivateShape=L,E(d)}}}function L(d){if(c(d)){var k=d._fullLayout._activeShapeIndex;k>=0&&(a(d),delete d._fullLayout._activeShapeIndex,E(d))}}function P(d){if(c(d)){a(d);var k=d._fullLayout._activeShapeIndex,I=(d.layout||{}).shapes||[];if(k0&&xg&&(x="X"),x});return u>g&&(c=c.replace(/[\s,]*X.*/,""),S.log("Ignoring extra params in segment "+f)),b+c})}},41592:function(D,O,t){var l=t(4016);D.exports={moduleType:"component",name:"shapes",layoutAttributes:t(46056),supplyLayoutDefaults:t(43712),supplyDrawNewShapeDefaults:t(65144),includeBasePlot:t(36632)("shapes"),calcAutorange:t(96084),draw:l.draw,drawOne:l.drawOne}},97728:function(D){function O(f,u){return u?u.d2l(f):f}function t(f,u){return u?u.l2d(f):f}function l(f){return f.x0}function S(f){return f.x1}function i(f){return f.y0}function C(f){return f.y1}function w(f,u){return O(f.x1,u)-O(f.x0,u)}function v(f,u,b){return O(f.y1,b)-O(f.y0,b)}function m(f,u){return Math.abs(w(f,u))}function a(f,u,b){return Math.abs(v(f,u,b))}function n(f,u,b){return f.type!=="line"?void 0:Math.sqrt(Math.pow(w(f,u),2)+Math.pow(v(f,u,b),2))}function s(f,u){return t((O(f.x1,u)+O(f.x0,u))/2,u)}function o(f,u,b){return t((O(f.y1,b)+O(f.y0,b))/2,b)}function h(f,u,b){return f.type!=="line"?void 0:v(f,u,b)/w(f,u)}D.exports={x0:l,x1:S,y0:i,y1:C,slope:h,dx:w,dy:v,width:m,height:a,length:n,xcenter:s,ycenter:o}},89861:function(D,O,t){var l=t(25376),S=t(66741),i=t(92880).extendDeepAll,C=t(67824).overrideAll,w=t(85656),v=t(31780).templatedArray,m=t(60876),a=v("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});D.exports=C(v("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(S({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},60876:function(D){D.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(D,O,t){var l=t(3400),S=t(51272),i=t(89861),C=t(60876),w=C.name,v=i.steps;D.exports=function(s,o){S(s,o,{name:w,handleItemDefaults:m})};function m(n,s,o){function h(x,A){return l.coerce(n,s,i,x,A)}for(var f=S(n,s,{name:"steps",handleItemDefaults:a}),u=0,b=0;b0?[0]:[]);Z.enter().append("g").classed(n.containerClassName,!0).style("cursor",W?null:"ew-resize");function q(Q){Q._commandObserver&&(Q._commandObserver.remove(),delete Q._commandObserver),S.autoMargin(H,u(Q))}if(Z.exit().each(function(){l.select(this).selectAll("g."+n.groupClassName).each(q)}).remove(),$.length!==0){var ae=Z.selectAll("g."+n.groupClassName).data($,p);ae.enter().append("g").classed(n.groupClassName,!0),ae.exit().each(q).remove();for(var ie=0;ie<$.length;ie++){var fe=$[ie];E(H,fe)}ae.each(function(Q){var J=l.select(this);d(Q),S.manageCommandObserver(H,Q,Q._visibleSteps,function(oe){var K=J.data()[0];K.active!==oe.index&&(K._dragging||T(H,J,K,oe.index,!1,!0))}),g(H,l.select(this),Q)})}};function u(U){return n.autoMarginIdRoot+U._index}function b(U,H){for(var W=U[n.name],V=[],$=0;$0&&(ae=ae.transition().duration(H.transition.duration).ease(H.transition.easing)),ae.attr("transform",v(q-n.gripWidth*.5,H._dims.currentValueTotalHeight))}}function I(U,H){var W=U._dims;return W.inputAreaStart+n.stepInset+(W.inputAreaLength-2*n.stepInset)*Math.min(1,Math.max(0,H))}function N(U,H){var W=U._dims;return Math.min(1,Math.max(0,(H-n.stepInset-W.inputAreaStart)/(W.inputAreaLength-2*n.stepInset-2*W.inputAreaStart)))}function B(U,H,W){var V=W._dims,$=w.ensureSingle(U,"rect",n.railTouchRectClass,function(Z){Z.call(L,H,U,W).style("pointer-events","all")});$.attr({width:V.inputAreaLength,height:Math.max(V.inputAreaWidth,n.tickOffset+W.ticklen+V.labelHeight)}).call(i.fill,W.bgcolor).attr("opacity",0),C.setTranslate($,0,V.currentValueTotalHeight)}function G(U,H){var W=H._dims,V=W.inputAreaLength-n.railInset*2,$=w.ensureSingle(U,"rect",n.railRectClass);$.attr({width:V,height:n.railWidth,rx:n.railRadius,ry:n.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,H.bordercolor).call(i.fill,H.bgcolor).style("stroke-width",H.borderwidth+"px"),C.setTranslate($,n.railInset,(W.inputAreaWidth-n.railWidth)*.5+W.currentValueTotalHeight)}},97544:function(D,O,t){var l=t(60876);D.exports={moduleType:"component",name:l.name,layoutAttributes:t(89861),supplyLayoutDefaults:t(8132),draw:t(79664)}},81668:function(D,O,t){var l=t(33428),S=t(38248),i=t(7316),C=t(24040),w=t(3400),v=w.strTranslate,m=t(43616),a=t(76308),n=t(72736),s=t(13448),o=t(84284).OPPOSITE_SIDE,h=/ [XY][0-9]* /;function f(u,b,p){var E=p.propContainer,g=p.propName,c=p.placeholder,x=p.traceIndex,A=p.avoid||{},M=p.attributes,R=p.transform,T=p.containerGroup,L=u._fullLayout,P=1,d=!1,k=E.title,I=(k&&k.text?k.text:"").trim(),N=k&&k.font?k.font:{},B=N.family,G=N.size,U=N.color,H;g==="title.text"?H="titleText":g.indexOf("axis")!==-1?H="axisTitleText":g.indexOf("colorbar"!==-1)&&(H="colorbarTitleText");var W=u._context.edits[H];I===""?P=0:I.replace(h," % ")===c.replace(h," % ")&&(P=.2,d=!0,W||(I="")),p._meta?I=w.templateString(I,p._meta):L._meta&&(I=w.templateString(I,L._meta));var V=I||W,$;T||(T=w.ensureSingle(L._infolayer,"g","g-"+b),$=L._hColorbarMoveTitle);var Z=T.selectAll("text").data(V?[0]:[]);if(Z.enter().append("text"),Z.text(I).attr("class",b),Z.exit().remove(),!V)return T;function q(Q){w.syncOrAsync([ae,ie],Q)}function ae(Q){var J;return!R&&$&&(R={}),R?(J="",R.rotate&&(J+="rotate("+[R.rotate,M.x,M.y]+")"),(R.offset||$)&&(J+=v(0,(R.offset||0)-($||0)))):J=null,Q.attr("transform",J),Q.style({"font-family":B,"font-size":l.round(G,2)+"px",fill:a.rgb(U),opacity:P*a.opacity(U),"font-weight":i.fontWeight}).attr(M).call(n.convertToTspans,u),i.previousPromises(u)}function ie(Q){var J=l.select(Q.node().parentNode);if(A&&A.selection&&A.side&&I){J.attr("transform",null);var oe=o[A.side],K=A.side==="left"||A.side==="top"?-1:1,ne=S(A.pad)?A.pad:2,ce=m.bBox(J.node()),re={t:0,b:0,l:0,r:0},ee=u._fullLayout._reservedMargin;for(var de in ee)for(var le in ee[de]){var he=ee[de][le];re[le]=Math.max(re[le],he)}var xe={left:re.l,top:re.t,right:L.width-re.r,bottom:L.height-re.b},Ee=A.maxShift||K*(xe[A.side]-ce[A.side]),Se=0;if(Ee<0)Se=Ee;else{var ke=A.offsetLeft||0,Te=A.offsetTop||0;ce.left-=ke,ce.right-=ke,ce.top-=Te,ce.bottom-=Te,A.selection.each(function(){var be=m.bBox(this);w.bBoxIntersect(ce,be,ne)&&(Se=Math.max(Se,K*(be[A.side]-ce[oe])+ne))}),Se=Math.min(Ee,Se),E._titleScoot=Math.abs(Se)}if(Se>0||Ee<0){var Ae={left:[-Se,0],right:[Se,0],top:[0,-Se],bottom:[0,Se]}[A.side];J.attr("transform",v(Ae[0],Ae[1]))}}}Z.call(q);function fe(){P=0,d=!0,Z.text(c).on("mouseover.opacity",function(){l.select(this).transition().duration(s.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(s.HIDE_PLACEHOLDER).style("opacity",0)})}return W&&(I?Z.on(".opacity",null):fe(),Z.call(n.makeEditable,{gd:u}).on("edit",function(Q){x!==void 0?C.call("_guiRestyle",u,g,Q,x):C.call("_guiRelayout",u,g,Q)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(q)}).on("input",function(Q){this.text(Q||" ").call(n.positionText,M.x,M.y)})),Z.classed("js-placeholder",d),T}D.exports={draw:f}},88444:function(D,O,t){var l=t(25376),S=t(22548),i=t(92880).extendFlat,C=t(67824).overrideAll,w=t(66741),v=t(31780).templatedArray,m=v("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});D.exports=C(v("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:S.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(D){D.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(D,O,t){var l=t(3400),S=t(51272),i=t(88444),C=t(73712),w=C.name,v=i.buttons;D.exports=function(s,o){var h={name:w,handleItemDefaults:m};S(s,o,h)};function m(n,s,o){function h(b,p){return l.coerce(n,s,i,b,p)}var f=S(n,s,{name:"buttons",handleItemDefaults:a}),u=h("visible",f.length>0);u&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),l.noneOrAll(n,s,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),l.coerceFont(h,"font",o.font),h("bgcolor",o.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function a(n,s){function o(f,u){return l.coerce(n,s,v,f,u)}var h=o("visible",n.method==="skip"||Array.isArray(n.args));h&&(o("method"),o("args"),o("args2"),o("label"),o("execute"))}},14420:function(D,O,t){var l=t(33428),S=t(7316),i=t(76308),C=t(43616),w=t(3400),v=t(72736),m=t(31780).arrayEditor,a=t(84284).LINE_SPACING,n=t(73712),s=t(37400);D.exports=function(N){var B=N._fullLayout,G=w.filterVisible(B[n.name]);function U(ie){S.autoMargin(N,P(ie))}var H=B._menulayer.selectAll("g."+n.containerClassName).data(G.length>0?[0]:[]);if(H.enter().append("g").classed(n.containerClassName,!0).style("cursor","pointer"),H.exit().each(function(){l.select(this).selectAll("g."+n.headerGroupClassName).each(U)}).remove(),G.length!==0){var W=H.selectAll("g."+n.headerGroupClassName).data(G,o);W.enter().append("g").classed(n.headerGroupClassName,!0);for(var V=w.ensureSingle(H,"g",n.dropdownButtonGroupClassName,function(ie){ie.style("pointer-events","all")}),$=0;$M,N=w.barLength+2*w.barPad,B=w.barWidth+2*w.barPad,G=f,U=b+p;U+B>h&&(U=h-B);var H=this.container.selectAll("rect.scrollbar-horizontal").data(I?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-horizontal",!0).call(S.fill,w.barColor),I?(this.hbar=H.attr({rx:w.barRadius,ry:w.barRadius,x:G,y:U,width:N,height:B}),this._hbarXMin=G+N/2,this._hbarTranslateMax=M-N):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var W=p>R,V=w.barWidth+2*w.barPad,$=w.barLength+2*w.barPad,Z=f+u,q=b;Z+V>o&&(Z=o-V);var ae=this.container.selectAll("rect.scrollbar-vertical").data(W?[0]:[]);ae.exit().on(".drag",null).remove(),ae.enter().append("rect").classed("scrollbar-vertical",!0).call(S.fill,w.barColor),W?(this.vbar=ae.attr({rx:w.barRadius,ry:w.barRadius,x:Z,y:q,width:V,height:$}),this._vbarYMin=q+$/2,this._vbarTranslateMax=R-$):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ie=this.id,fe=T-.5,Q=W?L+V+.5:L+.5,J=P-.5,oe=I?d+B+.5:d+.5,K=s._topdefs.selectAll("#"+ie).data(I||W?[0]:[]);if(K.exit().remove(),K.enter().append("clipPath").attr("id",ie).append("rect"),I||W?(this._clipRect=K.select("rect").attr({x:Math.floor(fe),y:Math.floor(J),width:Math.ceil(Q)-Math.floor(fe),height:Math.ceil(oe)-Math.floor(J)}),this.container.call(i.setClipUrl,ie,this.gd),this.bg.attr({x:f,y:b,width:u,height:p})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),I||W){var ne=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var ce=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));I&&this.hbar.on(".drag",null).call(ce),W&&this.vbar.on(".drag",null).call(ce)}this.setTranslate(a,n)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var m=this.translateX,a=this.translateY;this.hbar&&(m-=l.event.dx),this.vbar&&(a-=l.event.dy),this.setTranslate(m,a)},w.prototype._onBoxWheel=function(){var m=this.translateX,a=this.translateY;this.hbar&&(m+=l.event.deltaY),this.vbar&&(a+=l.event.deltaY),this.setTranslate(m,a)},w.prototype._onBarDrag=function(){var m=this.translateX,a=this.translateY;if(this.hbar){var n=m+this._hbarXMin,s=n+this._hbarTranslateMax,o=C.constrain(l.event.x,n,s),h=(o-n)/(s-n),f=this.position.w-this._box.w;m=h*f}if(this.vbar){var u=a+this._vbarYMin,b=u+this._vbarTranslateMax,p=C.constrain(l.event.y,u,b),E=(p-u)/(b-u),g=this.position.h-this._box.h;a=E*g}this.setTranslate(m,a)},w.prototype.setTranslate=function(m,a){var n=this.position.w-this._box.w,s=this.position.h-this._box.h;if(m=C.constrain(m||0,0,n),a=C.constrain(a||0,0,s),this.translateX=m,this.translateY=a,this.container.call(i.setTranslate,this._box.l-this.position.l-m,this._box.t-this.position.t-a),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+m-.5),y:Math.floor(this.position.t+a-.5)}),this.hbar){var o=m/n;this.hbar.call(i.setTranslate,m+o*this._hbarTranslateMax,a)}if(this.vbar){var h=a/s;this.vbar.call(i.setTranslate,m,a+h*this._vbarTranslateMax)}}},84284:function(D){D.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(D){D.exports={axisRefDescription:function(O,t,l){return["If set to a",O,"axis id (e.g. *"+O+"* or","*"+O+"2*), the `"+O+"` position refers to a",O,"coordinate. If set to *paper*, the `"+O+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+l+"). If set to a",O,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+O+"2 domain* refers to the domain of the second",O," axis and a",O,"position of 0.5 refers to the","point between the",t,"and the",l,"of the domain of the","second",O,"axis."].join(" ")}}},48164:function(D){D.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(D){D.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(D){D.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(D){D.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(D){D.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(D){D.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(D){D.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(D,O){O.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],O.STYLE=O.CSS_DECLARATIONS.map(function(t){return t.join(": ")+"; "}).join("")},9616:function(D,O){O.xmlns="http://www.w3.org/2000/xmlns/",O.svg="http://www.w3.org/2000/svg",O.xlink="http://www.w3.org/1999/xlink",O.svgAttrs={xmlns:O.svg,"xmlns:xlink":O.xlink}},64884:function(D,O,t){O.version=t(25788).version,t(88324),t(79288);for(var l=t(24040),S=O.register=l.register,i=t(22448),C=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(D,O){O.isLeftAnchor=function(l){return l.xanchor==="left"||l.xanchor==="auto"&&l.x<=.3333333333333333},O.isCenterAnchor=function(l){return l.xanchor==="center"||l.xanchor==="auto"&&l.x>.3333333333333333&&l.x<.6666666666666666},O.isRightAnchor=function(l){return l.xanchor==="right"||l.xanchor==="auto"&&l.x>=.6666666666666666},O.isTopAnchor=function(l){return l.yanchor==="top"||l.yanchor==="auto"&&l.y>=.6666666666666666},O.isMiddleAnchor=function(l){return l.yanchor==="middle"||l.yanchor==="auto"&&l.y>.3333333333333333&&l.y<.6666666666666666},O.isBottomAnchor=function(l){return l.yanchor==="bottom"||l.yanchor==="auto"&&l.y<=.3333333333333333}},11864:function(D,O,t){var l=t(20435),S=l.mod,i=l.modHalf,C=Math.PI,w=2*C;function v(E){return E/180*C}function m(E){return E/C*180}function a(E){return Math.abs(E[1]-E[0])>w-1e-14}function n(E,g){return i(g-E,w)}function s(E,g){return Math.abs(n(E,g))}function o(E,g){if(a(g))return!0;var c,x;g[0]x&&(x+=w);var A=S(E,w),M=A+w;return A>=c&&A<=x||M>=c&&M<=x}function h(E,g,c,x){if(!o(g,x))return!1;var A,M;return c[0]=A&&E<=M}function f(E,g,c,x,A,M,R){A=A||0,M=M||0;var T=a([c,x]),L,P,d,k,I;T?(L=0,P=C,d=w):c"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};n.uint8c=n.u1c,n.uint8=n.u1,n.int8=n.i1,n.uint16=n.u2,n.int16=n.i2,n.uint32=n.u4,n.int32=n.i4,n.float32=n.f4,n.float64=n.f8;function s(f){return f.constructor===ArrayBuffer}O.isArrayBuffer=s,O.decodeTypedArraySpec=function(f){var u=[],b=o(f),p=b.dtype,E=n[p];if(!E)throw new Error('Error in dtype: "'+p+'"');var g=E.BYTES_PER_ELEMENT,c=b.bdata;s(c)||(c=l(c));var x=b.shape===void 0?[c.byteLength/g]:(""+b.shape).split(",");x.reverse();var A=x.length,M,R,T=+x[0],L=g*T,P=0;if(A===1)u=new E(c);else if(A===2)for(M=+x[1],R=0;RE.max?b.set(p):b.set(+u)}},integer:{coerceFunction:function(u,b,p,E){u%1||!l(u)||E.min!==void 0&&uE.max?b.set(p):b.set(+u)}},string:{coerceFunction:function(u,b,p,E){if(typeof u!="string"){var g=typeof u=="number";E.strict===!0||!g?b.set(p):b.set(String(u))}else E.noBlank&&!u?b.set(p):b.set(u)}},color:{coerceFunction:function(u,b,p){S(u).isValid()?b.set(u):b.set(p)}},colorlist:{coerceFunction:function(u,b,p){function E(g){return S(g).isValid()}!Array.isArray(u)||!u.length?b.set(p):u.every(E)?b.set(u):b.set(p)}},colorscale:{coerceFunction:function(u,b,p){b.set(C.get(u,p))}},angle:{coerceFunction:function(u,b,p){u==="auto"?b.set("auto"):l(u)?b.set(n(+u,360)):b.set(p)}},subplotid:{coerceFunction:function(u,b,p,E){var g=E.regex||a(p);if(typeof u=="string"&&g.test(u)){b.set(u);return}b.set(p)},validateFunction:function(u,b){var p=b.dflt;return u===p?!0:typeof u!="string"?!1:!!a(p).test(u)}},flaglist:{coerceFunction:function(u,b,p,E){if((E.extras||[]).indexOf(u)!==-1){b.set(u);return}if(typeof u!="string"){b.set(p);return}for(var g=u.split("+"),c=0;c=c&&U<=x?U:v}if(typeof U!="string"&&typeof U!="number")return v;U=String(U);var Z=E(H),q=U.charAt(0);Z&&(q==="G"||q==="g")&&(U=U.substr(1),H="");var ae=Z&&H.substr(0,7)==="chinese",ie=U.match(ae?b:u);if(!ie)return v;var fe=ie[1],Q=ie[3]||"1",J=Number(ie[5]||1),oe=Number(ie[7]||0),K=Number(ie[9]||0),ne=Number(ie[11]||0);if(Z){if(fe.length===2)return v;fe=Number(fe);var ce;try{var re=h.getComponentMethod("calendars","getCal")(H);if(ae){var ee=Q.charAt(Q.length-1)==="i";Q=parseInt(Q,10),ce=re.newDate(fe,re.toMonthIndex(fe,Q,ee),J)}else ce=re.newDate(fe,Number(Q),J)}catch{return v}return ce?(ce.toJD()-o)*m+oe*a+K*n+ne*s:v}fe.length===2?fe=(Number(fe)+2e3-p)%100+p:fe=Number(fe),Q-=1;var de=new Date(Date.UTC(2e3,Q,J,oe,K));return de.setUTCFullYear(fe),de.getUTCMonth()!==Q||de.getUTCDate()!==J?v:de.getTime()+ne*s},c=O.MIN_MS=O.dateTime2ms("-9999"),x=O.MAX_MS=O.dateTime2ms("9999-12-31 23:59:59.9999"),O.isDateTime=function(U,H){return O.dateTime2ms(U,H)!==v};function A(U,H){return String(U+Math.pow(10,H)).substr(1)}var M=90*m,R=3*a,T=5*n;O.ms2DateTime=function(U,H,W){if(typeof U!="number"||!(U>=c&&U<=x))return v;H||(H=0);var V=Math.floor(C(U+.05,1)*10),$=Math.round(U-V/10),Z,q,ae,ie,fe,Q;if(E(W)){var J=Math.floor($/m)+o,oe=Math.floor(C(U,m));try{Z=h.getComponentMethod("calendars","getCal")(W).fromJD(J).formatDate("yyyy-mm-dd")}catch{Z=f("G%Y-%m-%d")(new Date($))}if(Z.charAt(0)==="-")for(;Z.length<11;)Z="-0"+Z.substr(1);else for(;Z.length<10;)Z="0"+Z;q=H=c+m&&U<=x-m))return v;var H=Math.floor(C(U+.05,1)*10),W=new Date(Math.round(U-H/10)),V=l("%Y-%m-%d")(W),$=W.getHours(),Z=W.getMinutes(),q=W.getSeconds(),ae=W.getUTCMilliseconds()*10+H;return L(V,$,Z,q,ae)};function L(U,H,W,V,$){if((H||W||V||$)&&(U+=" "+A(H,2)+":"+A(W,2),(V||$)&&(U+=":"+A(V,2),$))){for(var Z=4;$%10===0;)Z-=1,$/=10;U+="."+A($,Z)}return U}O.cleanDate=function(U,H,W){if(U===v)return H;if(O.isJSDate(U)||typeof U=="number"&&isFinite(U)){if(E(W))return i.error("JS Dates and milliseconds are incompatible with world calendars",U),H;if(U=O.ms2DateTimeLocal(+U),!U&&H!==void 0)return H}else if(!O.isDateTime(U,W))return i.error("unrecognized date",U),H;return U};var P=/%\d?f/g,d=/%h/g,k={1:"1",2:"1",3:"2",4:"2"};function I(U,H,W,V){U=U.replace(P,function(Z){var q=Math.min(+Z.charAt(1)||6,6),ae=(H/1e3%1+2).toFixed(q).substr(2).replace(/0+$/,"")||"0";return ae});var $=new Date(Math.floor(H+.05));if(U=U.replace(d,function(){return k[W("%q")($)]}),E(V))try{U=h.getComponentMethod("calendars","worldCalFmt")(U,H,V)}catch{return"Invalid"}return W(U)($)}var N=[59,59.9,59.99,59.999,59.9999];function B(U,H){var W=C(U+.05,m),V=A(Math.floor(W/a),2)+":"+A(C(Math.floor(W/n),60),2);if(H!=="M"){S(H)||(H=0);var $=Math.min(C(U/s,60),N[H]),Z=(100+$).toFixed(H).substr(1);H>0&&(Z=Z.replace(/0+$/,"").replace(/[\.]$/,"")),V+=":"+Z}return V}O.formatDate=function(U,H,W,V,$,Z){if($=E($)&&$,!H)if(W==="y")H=Z.year;else if(W==="m")H=Z.month;else if(W==="d")H=Z.dayMonth+` +`}${D}`.trim()}function dR(e){const r=document.createElement("span");r.style.whiteSpace="pre",r.style.userSelect="all",r.style.opacity="0px",r.textContent=e,document.body.appendChild(r);const x=document.createRange();x.selectNode(r);const F=window.getSelection();F.removeAllRanges(),F.addRange(x);try{document.execCommand("copy")}finally{document.body.removeChild(r)}}function Lme(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{dR(e)}):dR(e)}function Ime(e){var r;return!!((r=window.getSelection())!=null&&r.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Rme=(e,r)=>{const x=r.ignoreValueFormatterDuringExport,F=(typeof x=="object"?x==null?void 0:x.clipboardExport:x)||!1,j=r.clipboardCopyCellDelimiter,Y=Oe.useCallback(D=>{if(!((D.ctrlKey||D.metaKey)&&D.key.toLowerCase()==="c"&&!D.shiftKey&&!D.altKey)||Ime(D.target))return;let O="";if(e.current.getSelectedRows().size>0)O=e.current.getDataAsCsv({includeHeaders:!1,delimiter:j,shouldAppendQuotes:!1,escapeFormulas:!1});else{const l=uf(e);if(l){const S=e.current.getCellParams(l.id,l.field);O=m_(S,{csvOptions:{delimiter:j,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:F})}}O=e.current.unstable_applyPipeProcessors("clipboardCopy",O),O&&(Lme(O),e.current.publishEvent("clipboardCopy",O))},[e,F,j]);HF(e,e.current.rootElementRef,"keydown",Y),_o(e,"clipboardCopy",r.onClipboardCopy)},kme=e=>Ge({},e,{columnMenu:{open:!1}}),Dme=e=>{const r=al(e,"useGridColumnMenu"),x=Oe.useCallback(D=>{const O=S3(e.current.state),t={open:!0,field:D};(t.open!==O.open||t.field!==O.field)&&(e.current.setState(S=>S.columnMenu.open&&S.columnMenu.field===D?S:(r.debug("Opening Column Menu"),Ge({},S,{columnMenu:{open:!0,field:D}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,r]),F=Oe.useCallback(()=>{const D=S3(e.current.state);if(D.field){const l=gv(e),S=bf(e),i=tv(e);let C=D.field;if(l[C]||(C=i[0]),S[C]===!1){const w=i.filter(m=>m===C?!0:S[m]!==!1),v=w.indexOf(C);C=w[v+1]||w[v-1]}e.current.setColumnHeaderFocus(C)}const O={open:!1,field:void 0};(O.open!==D.open||O.field!==D.field)&&(e.current.setState(l=>(r.debug("Hiding Column Menu"),Ge({},l,{columnMenu:O}))),e.current.forceUpdate())},[e,r]),j=Oe.useCallback(D=>{r.debug("Toggle Column Menu");const O=S3(e.current.state);!O.open||O.field!==D?x(D):F()},[e,r,x,F]);Mi(e,{showColumnMenu:x,hideColumnMenu:F,toggleColumnMenu:j},"public"),Za(e,"columnResizeStart",F),Za(e,"virtualScrollerWheel",e.current.hideColumnMenu),Za(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Ome=(e,r,x)=>{var j,Y,D;const F=pm({apiRef:x,columnsToUpsert:r.columns,initialState:(j=r.initialState)==null?void 0:j.columns,columnVisibilityModel:r.columnVisibilityModel??((D=(Y=r.initialState)==null?void 0:Y.columns)==null?void 0:D.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return Ge({},e,{columns:F,pinnedColumns:e.pinnedColumns??iM})};function Fme(e,r){var g,c;const x=al(e,"useGridColumns"),F=Oe.useRef(r.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:r.columnVisibilityModel,propOnChange:r.onColumnVisibilityModelChange,stateSelector:bf,changeEvent:"columnVisibilityModelChange"});const j=Oe.useCallback(y=>{var A,M;x.debug("Updating columns state."),e.current.setState(hR(y)),e.current.publishEvent("columnsChange",y.orderedFields),(M=(A=e.current).updateRenderContext)==null||M.call(A),e.current.forceUpdate()},[x,e]),Y=Oe.useCallback(y=>gv(e)[y],[e]),D=Oe.useCallback(()=>wd(e),[e]),O=Oe.useCallback(()=>nl(e),[e]),t=Oe.useCallback((y,A=!0)=>(A?nl(e):wd(e)).findIndex(R=>R.field===y),[e]),l=Oe.useCallback(y=>{const A=t(y);return Qp(e)[A]},[e,t]),S=Oe.useCallback(y=>{var M,R;bf(e)!==y&&(e.current.setState(T=>Ge({},T,{columns:pm({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:y,keepOnlyColumnsToUpsert:!1})})),(R=(M=e.current).updateRenderContext)==null||R.call(M),e.current.forceUpdate())},[e]),i=Oe.useCallback(y=>{const A=pm({apiRef:e,columnsToUpsert:y,initialState:void 0,keepOnlyColumnsToUpsert:!1});j(A)},[e,j]),C=Oe.useCallback((y,A)=>{const M=bf(e),R=M[y]??!0;if(A!==R){const T=Ge({},M,{[y]:A});e.current.setColumnVisibilityModel(T)}},[e]),w=Oe.useCallback(y=>tv(e).findIndex(M=>M===y),[e]),v=Oe.useCallback((y,A)=>{const M=tv(e),R=w(y);if(R===A)return;x.debug(`Moving column ${y} to index ${A}`);const T=[...M],L=T.splice(R,1)[0];T.splice(A,0,L),j(Ge({},dh(e.current.state),{orderedFields:T}));const P={column:e.current.getColumn(y),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(y),oldIndex:R};e.current.publishEvent("columnIndexChange",P)},[e,x,j,w]),m=Oe.useCallback((y,A)=>{x.debug(`Updating column ${y} width to ${A}`);const M=dh(e.current.state),R=M.lookup[y],T=Ge({},R,{width:A,hasBeenResized:!0});j(sM(Ge({},M,{lookup:Ge({},M.lookup,{[y]:T})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(y),colDef:T,width:A})},[e,x,j]),a={getColumn:Y,getAllColumns:D,getColumnIndex:t,getColumnPosition:l,getVisibleColumns:O,getColumnIndexRelativeToVisibleColumns:w,updateColumns:i,setColumnVisibilityModel:S,setColumnVisibility:C,setColumnWidth:m},n={setColumnIndex:v};Mi(e,a,"public"),Mi(e,n,r.signature===bd.DataGrid?"private":"public");const s=Oe.useCallback((y,A)=>{var d,k;const M={},R=bf(e);(!A.exportOnlyDirtyModels||r.columnVisibilityModel!=null||Object.keys(((k=(d=r.initialState)==null?void 0:d.columns)==null?void 0:k.columnVisibilityModel)??{}).length>0||Object.keys(R).length>0)&&(M.columnVisibilityModel=R),M.orderedFields=tv(e);const L=wd(e),P={};return L.forEach(I=>{if(I.hasBeenResized){const N={};e_.forEach(B=>{let G=I[B];G===1/0&&(G=-1),N[B]=G}),P[I.field]=N}}),Object.keys(P).length>0&&(M.dimensions=P),Ge({},y,{columns:M})},[e,r.columnVisibilityModel,(g=r.initialState)==null?void 0:g.columns]),o=Oe.useCallback((y,A)=>{var L;const M=(L=A.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,R=A.stateToRestore.columns;if(M==null&&R==null)return y;const T=pm({apiRef:e,columnsToUpsert:[],initialState:R,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1});return e.current.setState(hR(T)),R!=null&&e.current.publishEvent("columnsChange",T.orderedFields),y},[e]),h=Oe.useCallback((y,A)=>{var M;if(A===Md.columns){const R=r.slots.columnsPanel;return Ce.jsx(R,Ge({},(M=r.slotProps)==null?void 0:M.columnsPanel))}return y},[r.slots.columnsPanel,(c=r.slotProps)==null?void 0:c.columnsPanel]),f=Oe.useCallback(y=>r.disableColumnSelector?y:[...y,"columnMenuColumnsItem"],[r.disableColumnSelector]);qo(e,"columnMenu",f),qo(e,"exportState",s),qo(e,"restoreState",o),qo(e,"preferencePanel",h);const u=Oe.useRef(null);Za(e,"viewportInnerSizeChange",y=>{u.current!==y.width&&(u.current=y.width,j(sM(dh(e.current.state),e.current.getRootDimensions())))});const p=Oe.useCallback(()=>{x.info("Columns pipe processing have changed, regenerating the columns");const y=pm({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});j(y)},[e,x,j]);u6(e,"hydrateColumns",p);const E=Oe.useRef(!0);Oe.useEffect(()=>{if(E.current){E.current=!1;return}if(x.info(`GridColumns have changed, new length ${r.columns.length}`),F.current===r.columns)return;const y=pm({apiRef:e,initialState:void 0,columnsToUpsert:r.columns,keepOnlyColumnsToUpsert:!0});F.current=r.columns,j(y)},[x,e,j,r.columns]),Oe.useEffect(()=>{r.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(r.columnVisibilityModel)},[e,x,r.columnVisibilityModel])}function hR(e){return r=>Ge({},r,{columns:e})}const _me=(e,r)=>{var x;return Ge({},e,{density:((x=r.initialState)==null?void 0:x.density)??r.density??"standard"})},zme=(e,r)=>{var O;const x=al(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:r.density,propOnChange:r.onDensityChange,stateSelector:G0,changeEvent:"densityChange"});const j={setDensity:pa(t=>{G0(e.current.state)!==t&&(x.debug(`Set grid density to ${t}`),e.current.setState(S=>Ge({},S,{density:t})))})};Mi(e,j,"public");const Y=Oe.useCallback((t,l)=>{var C;const S=G0(e.current.state);return!l.exportOnlyDirtyModels||r.density!=null||((C=r.initialState)==null?void 0:C.density)!=null?Ge({},t,{density:S}):t},[e,r.density,(O=r.initialState)==null?void 0:O.density]),D=Oe.useCallback((t,l)=>{var i;const S=(i=l.stateToRestore)!=null&&i.density?l.stateToRestore.density:G0(e.current.state);return e.current.setState(C=>Ge({},C,{density:S})),t},[e]);qo(e,"exportState",Y),qo(e,"restoreState",D),Oe.useEffect(()=>{r.density&&e.current.setDensity(r.density)},[e,r.density])};function Bme(e,r="csv",x=document.title||"untitled"){const F=`${x}.${r}`;if("download"in HTMLAnchorElement.prototype){const j=URL.createObjectURL(e),Y=document.createElement("a");Y.href=j,Y.download=F,Y.click(),setTimeout(()=>{URL.revokeObjectURL(j)});return}throw new Error("MUI X: exportAs not supported.")}const y_=({apiRef:e,options:r})=>{const x=wd(e);return r.fields?r.fields.reduce((j,Y)=>{const D=x.find(O=>O.field===Y);return D&&j.push(D),j},[]):(r.allColumns?x:nl(e)).filter(j=>!j.disableExport)},x_=({apiRef:e})=>{var t,l;const r=Dde(e),x=mf(e),F=e.current.getSelectedRows(),j=r.filter(S=>x[S].type!=="footer"),Y=qp(e),D=((t=Y==null?void 0:Y.top)==null?void 0:t.map(S=>S.id))||[],O=((l=Y==null?void 0:Y.bottom)==null?void 0:l.map(S=>S.id))||[];return j.unshift(...D),j.push(...O),F.size>0?j.filter(S=>F.has(S)):j},Nme=(e,r)=>{const x=al(e,"useGridCsvExport"),F=r.ignoreValueFormatterDuringExport,j=(typeof F=="object"?F==null?void 0:F.csvExport:F)||!1,Y=Oe.useCallback((l={})=>{x.debug("Get data as CSV");const S=y_({apiRef:e,options:l}),C=(l.getRowsToExport??x_)({apiRef:e});return Pme({columns:S,rowIds:C,csvOptions:{delimiter:l.delimiter||",",shouldAppendQuotes:l.shouldAppendQuotes??!0,includeHeaders:l.includeHeaders??!0,includeColumnGroupsHeaders:l.includeColumnGroupsHeaders??!0,escapeFormulas:l.escapeFormulas??!0},ignoreValueFormatter:j,apiRef:e})},[x,e,j]),D=Oe.useCallback(l=>{x.debug("Export data as CSV");const S=Y(l),i=new Blob([l!=null&&l.utf8WithBom?new Uint8Array([239,187,191]):"",S],{type:"text/csv"});Bme(i,"csv",l==null?void 0:l.fileName)},[x,Y]);Mi(e,{getDataAsCsv:Y,exportDataAsCsv:D},"public");const t=Oe.useCallback((l,S)=>{var i;return(i=S.csvOptions)!=null&&i.disableToolbarButton?l:[...l,{component:Ce.jsx(Ege,{options:S.csvOptions}),componentName:"csvExport"}]},[]);qo(e,"exportMenu",t)},M3=(e,r,x)=>{let F=e.paginationModel;const j=e.rowCount,Y=(x==null?void 0:x.pageSize)??F.pageSize,D=(x==null?void 0:x.page)??F.page,O=VF(j,Y,D);x&&((x==null?void 0:x.page)!==F.page||(x==null?void 0:x.pageSize)!==F.pageSize)&&(F=x);const t=Ude(F.page,O);return t!==F.page&&(F=Ge({},F,{page:t})),GF(F.pageSize,r),F},Ume=(e,r)=>{var v,m;const x=al(e,"useGridPaginationModel"),F=va(e,Db),j=Math.floor(r.rowHeight*F);e.current.registerControlState({stateId:"paginationModel",propModel:r.paginationModel,propOnChange:r.onPaginationModelChange,stateSelector:mu,changeEvent:"paginationModelChange"});const Y=Oe.useCallback(a=>{const n=mu(e);a!==n.page&&(x.debug(`Setting page to ${a}`),e.current.setPaginationModel({page:a,pageSize:n.pageSize}))},[e,x]),D=Oe.useCallback(a=>{const n=mu(e);a!==n.pageSize&&(x.debug(`Setting page size to ${a}`),e.current.setPaginationModel({pageSize:a,page:n.page}))},[e,x]),O=Oe.useCallback(a=>{const n=mu(e);a!==n&&(x.debug("Setting 'paginationModel' to",a),e.current.setState(s=>Ge({},s,{pagination:Ge({},s.pagination,{paginationModel:M3(s.pagination,r.signature,a)})})))},[e,x,r.signature]);Mi(e,{setPage:Y,setPageSize:D,setPaginationModel:O},"public");const l=Oe.useCallback((a,n)=>{var h,f;const s=mu(e);return!n.exportOnlyDirtyModels||r.paginationModel!=null||((f=(h=r.initialState)==null?void 0:h.pagination)==null?void 0:f.paginationModel)!=null||s.page!==0&&s.pageSize!==Nde(r.autoPageSize)?Ge({},a,{pagination:Ge({},a.pagination,{paginationModel:s})}):a},[e,r.paginationModel,(m=(v=r.initialState)==null?void 0:v.pagination)==null?void 0:m.paginationModel,r.autoPageSize]),S=Oe.useCallback((a,n)=>{var o,h;const s=(o=n.stateToRestore.pagination)!=null&&o.paginationModel?Ge({},jF(r.autoPageSize),(h=n.stateToRestore.pagination)==null?void 0:h.paginationModel):mu(e);return e.current.setState(f=>Ge({},f,{pagination:Ge({},f.pagination,{paginationModel:M3(f.pagination,r.signature,s)})})),a},[e,r.autoPageSize,r.signature]);qo(e,"exportState",l),qo(e,"restoreState",S);const i=()=>{var n;const a=mu(e);(n=e.current.virtualScrollerRef)!=null&&n.current&&e.current.scrollToIndexes({rowIndex:a.page*a.pageSize})},C=Oe.useCallback(()=>{if(!r.autoPageSize)return;const a=e.current.getRootDimensions(),n=Math.floor(a.viewportInnerSize.height/j);e.current.setPageSize(n)},[e,r.autoPageSize,j]),w=Oe.useCallback(a=>{if(a==null)return;const n=mu(e),s=WF(e);n.page>s-1&&e.current.setPage(Math.max(0,s-1))},[e]);Za(e,"viewportInnerSizeChange",C),Za(e,"paginationModelChange",i),Za(e,"rowCountChange",w),Oe.useEffect(()=>{e.current.setState(a=>Ge({},a,{pagination:Ge({},a.pagination,{paginationModel:M3(a.pagination,r.signature,r.paginationModel)})}))},[e,r.paginationModel,r.paginationMode,r.signature]),Oe.useEffect(C,[C])};function Hme(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Vme(e){const r=document.createElement("iframe");return r.style.position="absolute",r.style.width="0px",r.style.height="0px",r.title=e||document.title,r}const jme=(e,r)=>{const x=al(e,"useGridPrintExport"),F=Oe.useRef(null),j=Oe.useRef(null),Y=Oe.useRef({}),D=Oe.useRef([]),O=Oe.useRef();Oe.useEffect(()=>{F.current=oo(e.current.rootElementRef.current)},[e]);const t=Oe.useCallback((m,a,n)=>new Promise(s=>{const o=y_({apiRef:e,options:{fields:m,allColumns:a}}).map(u=>u.field),h=wd(e),f={};h.forEach(u=>{f[u.field]=o.includes(u.field)}),n&&(f[$y.field]=!0),e.current.setColumnVisibilityModel(f),s()}),[e]),l=Oe.useCallback(m=>{const n=m({apiRef:e}).reduce((s,o)=>{const h=e.current.getRow(o);return h[Km]||s.push(h),s},[]);e.current.setRows(n)},[e]),S=Oe.useCallback((m,a)=>{var A,M,R,T;const n=Ge({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},a),s=m.contentDocument;if(!s)return;const o=Yy(e.current.state),h=e.current.rootElementRef.current,f=h.cloneNode(!0),u=f.querySelector(`.${Hr.main}`);u.style.overflow="visible",f.style.contain="size";let b=((A=h.querySelector(`.${Hr.toolbarContainer}`))==null?void 0:A.offsetHeight)||0,p=((M=h.querySelector(`.${Hr.footerContainer}`))==null?void 0:M.offsetHeight)||0;n.hideToolbar&&((R=f.querySelector(`.${Hr.toolbarContainer}`))==null||R.remove(),b=0),n.hideFooter&&((T=f.querySelector(`.${Hr.footerContainer}`))==null||T.remove(),p=0);const E=o.currentPageTotalHeight+q5(e,r)+b+p;if(f.style.height=`${E}px`,f.style.boxSizing="content-box",!n.hideFooter){const L=f.querySelector(`.${Hr.footerContainer}`);L.style.position="absolute",L.style.width="100%",L.style.top=`${E-p}px`}const g=document.createElement("div");g.appendChild(f),s.body.style.marginTop="0px",s.body.innerHTML=g.innerHTML;const c=typeof n.pageStyle=="function"?n.pageStyle():n.pageStyle;if(typeof c=="string"){const L=s.createElement("style");L.appendChild(s.createTextNode(c)),s.head.appendChild(L)}n.bodyClassName&&s.body.classList.add(...n.bodyClassName.split(" "));const y=[];if(n.copyStyles){const L=h.getRootNode(),d=(L.constructor.name==="ShadowRoot"?L:F.current).querySelectorAll("style, link[rel='stylesheet']");for(let k=0;k{N.addEventListener("load",()=>B())})),s.head.appendChild(N)}}}Promise.all(y).then(()=>{m.contentWindow.print()})},[e,F,r]),i=Oe.useCallback(m=>{var a,n;F.current.body.removeChild(m),e.current.restoreState(j.current||{}),(n=(a=j.current)==null?void 0:a.columns)!=null&&n.columnVisibilityModel||e.current.setColumnVisibilityModel(Y.current),e.current.setState(s=>Ge({},s,{virtualization:O.current})),e.current.setRows(D.current),j.current=null,Y.current={},D.current=[]},[e]),w={exportDataAsPrint:Oe.useCallback(async m=>{if(x.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(j.current=e.current.exportState(),Y.current=bf(e),D.current=e.current.getSortedRows().filter(n=>!n[Km]),r.pagination){const s={page:0,pageSize:NF(e)};e.current.setState(o=>Ge({},o,{pagination:Ge({},o.pagination,{paginationModel:M3(o.pagination,"DataGridPro",s)})}))}O.current=e.current.state.virtualization,e.current.setState(n=>Ge({},n,{virtualization:Ge({},n.virtualization,{enabled:!1,enabledForColumns:!1})})),await t(m==null?void 0:m.fields,m==null?void 0:m.allColumns,m==null?void 0:m.includeCheckboxes),l((m==null?void 0:m.getRowsToExport)??x_),await Hme();const a=Vme(m==null?void 0:m.fileName);a.onload=()=>{S(a,m),a.contentWindow.matchMedia("print").addEventListener("change",s=>{s.matches===!1&&i(a)})},F.current.body.appendChild(a)},[r,x,e,S,i,t,l])};Mi(e,w,"public");const v=Oe.useCallback((m,a)=>{var n;return(n=a.printOptions)!=null&&n.disableToolbarButton?m:[...m,{component:Ce.jsx(Pge,{options:a.printOptions}),componentName:"printExport"}]},[]);qo(e,"exportMenu",v)},Gme=(e,r,x)=>{var j,Y;const F=r.filterModel??((Y=(j=r.initialState)==null?void 0:j.filter)==null?void 0:Y.filterModel)??rb();return Ge({},e,{filter:{filterModel:V5(F,r.disableMultipleColumnsFiltering,x),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Wme=e=>e.filteredRowsLookup;function vR(e,r){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:r.rows.tree,filteredRowsLookup:r.filter.filteredRowsLookup})}function $me(){return yF(Object.values)}const Yme=(e,r)=>{var E,g,c;const x=al(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:r.filterModel,propOnChange:r.onFilterModelChange,stateSelector:cl,changeEvent:"filterModelChange"});const F=Oe.useCallback(()=>{e.current.setState(y=>{const A=cl(y,e.current.instanceId),M=e.current.getFilterState(A),R=Ge({},y,{filter:Ge({},y.filter,M)}),T=vR(e,R);return Ge({},R,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e]),j=Oe.useCallback((y,A)=>A==null||A.filterable===!1||r.disableColumnFilter?y:[...y,"columnMenuFilterItem"],[r.disableColumnFilter]),Y=Oe.useCallback(()=>{F(),e.current.forceUpdate()},[e,F]),D=Oe.useCallback(y=>{const A=cl(e),M=[...A.items],R=M.findIndex(T=>T.id===y.id);R===-1?M.push(y):M[R]=y,e.current.setFilterModel(Ge({},A,{items:M}),"upsertFilterItem")},[e]),O=Oe.useCallback(y=>{const A=cl(e),M=[...A.items];y.forEach(R=>{const T=M.findIndex(L=>L.id===R.id);T===-1?M.push(R):M[T]=R}),e.current.setFilterModel(Ge({},A,{items:M}),"upsertFilterItems")},[e]),t=Oe.useCallback(y=>{const A=cl(e),M=A.items.filter(R=>R.id!==y.id);M.length!==A.items.length&&e.current.setFilterModel(Ge({},A,{items:M}),"deleteFilterItem")},[e]),l=Oe.useCallback((y,A,M)=>{if(x.debug("Displaying filter panel"),y){const R=cl(e),T=R.items.filter(k=>{var G;if(k.value!==void 0)return!(Array.isArray(k.value)&&k.value.length===0);const N=(G=e.current.getColumn(k.field).filterOperators)==null?void 0:G.find(U=>U.value===k.operator);return!(typeof(N==null?void 0:N.requiresFilterValue)>"u"?!0:N==null?void 0:N.requiresFilterValue)});let L;const P=T.find(k=>k.field===y),d=e.current.getColumn(y);P?L=T:r.disableMultipleColumnsFiltering?L=[oM({field:y,operator:d.filterOperators[0].value},e)]:L=[...T,oM({field:y,operator:d.filterOperators[0].value},e)],e.current.setFilterModel(Ge({},R,{items:L}))}e.current.showPreferences(Md.filters,A,M)},[e,x,r.disableMultipleColumnsFiltering]),S=Oe.useCallback(()=>{x.debug("Hiding filter panel"),e.current.hidePreferences()},[e,x]),i=Oe.useCallback(y=>{const A=cl(e);A.logicOperator!==y&&e.current.setFilterModel(Ge({},A,{logicOperator:y}),"changeLogicOperator")},[e]),C=Oe.useCallback(y=>{const A=cl(e);Bp(A.quickFilterValues,y)||e.current.setFilterModel(Ge({},A,{quickFilterValues:[...y]}))},[e]),w=Oe.useCallback((y,A)=>{cl(e)!==y&&(x.debug("Setting filter model"),e.current.updateControlState("filter",II(y,r.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,x,r.disableMultipleColumnsFiltering]),v=Oe.useCallback(y=>{const A=V5(y,r.disableMultipleColumnsFiltering,e),M=r.filterMode==="client"?Bfe(A,e,r.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:M,filterModel:A??rb()});return Ge({},R,{filterModel:A})},[r.disableMultipleColumnsFiltering,r.filterMode,r.disableEval,e]),m={setFilterLogicOperator:i,unstable_applyFilters:Y,deleteFilterItem:t,upsertFilterItem:D,upsertFilterItems:O,setFilterModel:w,showFilterPanel:l,hideFilterPanel:S,setQuickFilterValues:C,ignoreDiacritics:r.ignoreDiacritics,getFilterState:v};Mi(e,m,"public");const a=Oe.useCallback((y,A)=>{var T,L;const M=cl(e);return!A.exportOnlyDirtyModels||r.filterModel!=null||((L=(T=r.initialState)==null?void 0:T.filter)==null?void 0:L.filterModel)!=null||!Bp(M,rb())?Ge({},y,{filter:{filterModel:M}}):y},[e,r.filterModel,(g=(E=r.initialState)==null?void 0:E.filter)==null?void 0:g.filterModel]),n=Oe.useCallback((y,A)=>{var R;const M=(R=A.stateToRestore.filter)==null?void 0:R.filterModel;return M==null?y:(e.current.updateControlState("filter",II(M,r.disableMultipleColumnsFiltering,e),"restoreState"),Ge({},y,{callbacks:[...y.callbacks,e.current.unstable_applyFilters]}))},[e,r.disableMultipleColumnsFiltering]),s=Oe.useCallback((y,A)=>{var M;if(A===Md.filters){const R=r.slots.filterPanel;return Ce.jsx(R,Ge({},(M=r.slotProps)==null?void 0:M.filterPanel))}return y},[r.slots.filterPanel,(c=r.slotProps)==null?void 0:c.filterPanel]),{getRowId:o}=r,h=wg($me),f=Oe.useCallback(y=>{if(r.filterMode!=="client"||!y.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=Ep(e),M={},{isRowMatchingFilters:R}=y,T={},L={passingFilterItems:null,passingQuickFilterValues:null},P=h.current(e.current.state.rows.dataRowIdToModelLookup);for(let I=0;I{x.debug("onColUpdated - GridColumns changed, applying filters");const y=cl(e),A=gv(e),M=y.items.filter(R=>R.field&&A[R.field]);M.length{y==="filtering"&&e.current.unstable_applyFilters()},[e]),p=Oe.useCallback(()=>{e.current.setState(y=>Ge({},y,{visibleRowsLookup:vR(e,y)})),e.current.forceUpdate()},[e]);Za(e,"rowsSet",F),Za(e,"columnsChange",u),Za(e,"activeStrategyProcessorChange",b),Za(e,"rowExpansionChange",p),Za(e,"columnVisibilityModelChange",()=>{const y=cl(e);y.quickFilterValues&&LF(y)&&e.current.unstable_applyFilters()}),zb(()=>{e.current.unstable_applyFilters()}),Gi(()=>{r.filterModel!==void 0&&e.current.setFilterModel(r.filterModel)},[e,x,r.filterModel])},Xme=e=>Ge({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Zme=(e,r)=>{const x=al(e,"useGridFocus"),F=Oe.useRef(null),j=Oe.useCallback((b,p)=>{b&&e.current.getRow(b.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(b.id,b.field),p)},[e]),Y=Oe.useCallback((b,p)=>{const E=uf(e);(E==null?void 0:E.id)===b&&(E==null?void 0:E.field)===p||(e.current.setState(g=>(x.debug(`Focusing on cell with id=${b} and field=${p}`),Ge({},g,{tabIndex:{cell:{id:b,field:p},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:b,field:p},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(b)&&(E&&j(E,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(b,p))))},[e,x,j]),D=Oe.useCallback((b,p={})=>{const E=uf(e);j(E,p),e.current.setState(g=>(x.debug(`Focusing on column header with colIndex=${b}`),Ge({},g,{tabIndex:{columnHeader:{field:b},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:b},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,x,j]),O=Oe.useCallback((b,p={})=>{const E=uf(e);j(E,p),e.current.setState(g=>(x.debug(`Focusing on column header filter with colIndex=${b}`),Ge({},g,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:b},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:b},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,x,j]),t=Oe.useCallback((b,p,E={})=>{const g=uf(e);g&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(g.id,g.field),E),e.current.setState(c=>Ge({},c,{tabIndex:{columnGroupHeader:{field:b,depth:p},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:b,depth:p},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),l=Oe.useCallback(()=>v2(e),[e]),S=Oe.useCallback((b,p,E)=>{let g=e.current.getColumnIndex(p);const c=nl(e),y=ab(e,{pagination:r.pagination,paginationMode:r.paginationMode}),A=qp(e),M=[].concat(A.top||[],y.rows,A.bottom||[]);let R=M.findIndex(d=>d.id===b);E==="right"?g+=1:E==="left"?g-=1:R+=1,g>=c.length?(R+=1,R=0&&(g=c.length-1)),R=fv(R,0,M.length-1);const T=M[R];if(!T)return;const L=e.current.unstable_getCellColSpanInfo(T.id,g);L&&L.spannedByColSpan&&(E==="left"||E==="below"?g=L.leftVisibleCellIndex:E==="right"&&(g=L.rightVisibleCellIndex)),g=fv(g,0,c.length-1);const P=c[g];e.current.setCellFocus(T.id,P.field)},[e,r.pagination,r.paginationMode]),i=Oe.useCallback(({id:b,field:p})=>{e.current.setCellFocus(b,p)},[e]),C=Oe.useCallback((b,p)=>{p.key==="Enter"||p.key==="Tab"||p.key==="Shift"||m2(p.key)||e.current.setCellFocus(b.id,b.field)},[e]),w=Oe.useCallback(({field:b},p)=>{p.target===p.currentTarget&&e.current.setColumnHeaderFocus(b,p)},[e]),v=Oe.useCallback(({fields:b,depth:p},E)=>{if(E.target!==E.currentTarget)return;const g=v2(e);g!==null&&g.depth===p&&b.includes(g.field)||e.current.setColumnGroupHeaderFocus(b[0],p,E)},[e]),m=Oe.useCallback((b,p)=>{var E,g;(g=(E=p.relatedTarget)==null?void 0:E.getAttribute("class"))!=null&&g.includes(Hr.columnHeader)||(x.debug("Clearing focus"),e.current.setState(c=>Ge({},c,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[x,e]),a=Oe.useCallback(b=>{F.current=b},[]),n=Oe.useCallback(b=>{const p=F.current;F.current=null;const E=uf(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:p}))return;if(!E){p&&e.current.setCellFocus(p.id,p.field);return}if((p==null?void 0:p.id)===E.id&&(p==null?void 0:p.field)===E.field)return;const c=e.current.getCellElement(E.id,E.field);c!=null&&c.contains(b.target)||(p?e.current.setCellFocus(p.id,p.field):(e.current.setState(y=>Ge({},y,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),j(E,b)))},[e,j]),s=Oe.useCallback(b=>{if(b.cellMode==="view")return;const p=uf(e);((p==null?void 0:p.id)!==b.id||(p==null?void 0:p.field)!==b.field)&&e.current.setCellFocus(b.id,b.field)},[e]),o=Oe.useCallback(()=>{const b=uf(e);b&&!e.current.getRow(b.id)&&e.current.setState(p=>Ge({},p,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),h=pa(()=>{const b=uf(e);if(!b)return;const p=ab(e,{pagination:r.pagination,paginationMode:r.paginationMode});if(p.rows.find(c=>c.id===b.id))return;const g=nl(e);e.current.setState(c=>Ge({},c,{tabIndex:{cell:{id:p.rows[0].id,field:g[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),f={setCellFocus:Y,setColumnHeaderFocus:D,setColumnHeaderFilterFocus:O},u={moveFocusToRelativeCell:S,setColumnGroupHeaderFocus:t,getColumnGroupHeaderFocus:l};Mi(e,f,"public"),Mi(e,u,"private"),Oe.useEffect(()=>{const b=oo(e.current.rootElementRef.current);return b.addEventListener("mouseup",n),()=>{b.removeEventListener("mouseup",n)}},[e,n]),Za(e,"columnHeaderBlur",m),Za(e,"cellDoubleClick",i),Za(e,"cellMouseDown",a),Za(e,"cellKeyDown",C),Za(e,"cellModeChange",s),Za(e,"columnHeaderFocus",w),Za(e,"columnGroupHeaderFocus",v),Za(e,"rowsSet",o),Za(e,"paginationModelChange",h)};function Kme(e,r){const x=qp(e)||{};return[...x.top||[],...r,...x.bottom||[]]}const OC=({currentColIndex:e,firstColIndex:r,lastColIndex:x,direction:F})=>{if(F==="rtl"){if(er)return e-1;return null},FC=({currentColIndex:e,firstColIndex:r,lastColIndex:x,direction:F})=>{if(F==="rtl"){if(e>r)return e-1}else if(F==="ltr"&&e{const x=al(e,"useGridKeyboardNavigation"),F=Ag(e,r).rows,j=nu(),Y=Oe.useMemo(()=>Kme(e,F),[e,F]),D=r.signature!=="DataGrid"&&r.headerFilters,O=Oe.useCallback((n,s,o="left")=>{const h=e0(e),f=e.current.unstable_getCellColSpanInfo(s,n);f&&f.spannedByColSpan&&(o==="left"?n=f.leftVisibleCellIndex:o==="right"&&(n=f.rightVisibleCellIndex));const u=h.findIndex(p=>p.id===s);x.debug(`Navigating to cell row ${u}, col ${n}`),e.current.scrollToIndexes({colIndex:n,rowIndex:u});const b=e.current.getVisibleColumns()[n].field;e.current.setCellFocus(s,b)},[e,x]),t=Oe.useCallback((n,s)=>{x.debug(`Navigating to header col ${n}`),e.current.scrollToIndexes({colIndex:n});const o=e.current.getVisibleColumns()[n].field;e.current.setColumnHeaderFocus(o,s)},[e,x]),l=Oe.useCallback((n,s)=>{x.debug(`Navigating to header filter col ${n}`),e.current.scrollToIndexes({colIndex:n});const o=e.current.getVisibleColumns()[n].field;e.current.setColumnHeaderFilterFocus(o,s)},[e,x]),S=Oe.useCallback((n,s,o)=>{x.debug(`Navigating to header col ${n}`),e.current.scrollToIndexes({colIndex:n});const{field:h}=e.current.getVisibleColumns()[n];e.current.setColumnGroupHeaderFocus(h,s,o)},[e,x]),i=Oe.useCallback(n=>{var s;return(s=Y[n])==null?void 0:s.id},[Y]),C=Oe.useCallback((n,s)=>{const o=s.currentTarget.querySelector(`.${Hr.columnHeaderTitleContainerContent}`);if(!!o&&o.contains(s.target)&&n.field!==$y.field)return;const f=e.current.getViewportPageSize(),u=n.field?e.current.getColumnIndex(n.field):0,b=Y.length>0?0:null,p=Y.length-1,E=0,g=nl(e).length-1,c=Bb(e);let y=!0;switch(s.key){case"ArrowDown":{b!==null&&(D?l(u,s):O(u,i(b)));break}case"ArrowRight":{const A=FC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});A!==null&&t(A,s);break}case"ArrowLeft":{const A=OC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});A!==null&&t(A,s);break}case"ArrowUp":{c>0&&S(u,c-1,s);break}case"PageDown":{b!==null&&p!==null&&O(u,i(Math.min(b+f,p)));break}case"Home":{t(E,s);break}case"End":{t(g,s);break}case"Enter":{(s.ctrlKey||s.metaKey)&&e.current.toggleColumnMenu(n.field);break}case" ":break;default:y=!1}y&&s.preventDefault()},[e,Y.length,D,l,O,i,j.direction,t,S]),w=Oe.useCallback((n,s)=>{const o=Ahe(e)===n.field,h=Ehe(e)===n.field;if(o||h||!m2(s.key))return;const f=e.current.getViewportPageSize(),u=n.field?e.current.getColumnIndex(n.field):0,b=0,p=Y.length-1,E=0,g=nl(e).length-1;let c=!0;switch(s.key){case"ArrowDown":{const y=i(b);y!=null&&O(u,y);break}case"ArrowRight":{const y=FC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});y!==null&&l(y,s);break}case"ArrowLeft":{const y=OC({currentColIndex:u,firstColIndex:E,lastColIndex:g,direction:j.direction});y!==null?l(y,s):e.current.setColumnHeaderFilterFocus(n.field,s);break}case"ArrowUp":{t(u,s);break}case"PageDown":{p!==null&&O(u,i(Math.min(b+f,p)));break}case"Home":{l(E,s);break}case"End":{l(g,s);break}case" ":break;default:c=!1}c&&s.preventDefault()},[e,Y.length,l,j.direction,t,O,i]),v=Oe.useCallback((n,s)=>{const o=v2(e);if(o===null)return;const{field:h,depth:f}=o,{fields:u,depth:b,maxDepth:p}=n,E=e.current.getViewportPageSize(),g=e.current.getColumnIndex(h),c=h?e.current.getColumnIndex(h):0,y=0,A=Y.length-1,M=0,R=nl(e).length-1;let T=!0;switch(s.key){case"ArrowDown":{b===p-1?t(g,s):S(g,f+1,s);break}case"ArrowUp":{b>0&&S(g,f-1,s);break}case"ArrowRight":{const L=u.length-u.indexOf(h)-1;g+L+1<=R&&S(g+L+1,f,s);break}case"ArrowLeft":{const L=u.indexOf(h);g-L-1>=M&&S(g-L-1,f,s);break}case"PageDown":{A!==null&&O(c,i(Math.min(y+E,A)));break}case"Home":{S(M,f,s);break}case"End":{S(R,f,s);break}case" ":break;default:T=!1}T&&s.preventDefault()},[e,Y.length,t,S,O,i]),m=Oe.useCallback((n,s)=>{if(Nb(s))return;const o=e.current.getCellParams(n.id,n.field);if(o.cellMode===Mo.Edit||!m2(s.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:s,cell:o})||Y.length===0)return;const f=j.direction,u=e.current.getViewportPageSize(),b=n.field?e.current.getColumnIndex(n.field):0,p=Y.findIndex(M=>M.id===n.id),E=0,g=Y.length-1,c=0,y=nl(e).length-1;let A=!0;switch(s.key){case"ArrowDown":{pE?O(b,i(p-1)):D?l(b,s):t(b,s);break}case"ArrowRight":{const M=FC({currentColIndex:b,firstColIndex:c,lastColIndex:y,direction:f});M!==null&&O(M,i(p),f==="rtl"?"left":"right");break}case"ArrowLeft":{const M=OC({currentColIndex:b,firstColIndex:c,lastColIndex:y,direction:f});M!==null&&O(M,i(p),f==="rtl"?"right":"left");break}case"Tab":{s.shiftKey&&b>c?O(b-1,i(p),"left"):!s.shiftKey&&b=E?O(b,i(M)):t(b,s);break}case"Home":{s.ctrlKey||s.metaKey||s.shiftKey?O(c,i(E)):O(c,i(p));break}case"End":{s.ctrlKey||s.metaKey||s.shiftKey?O(y,i(g)):O(y,i(p));break}default:A=!1}A&&s.preventDefault()},[e,Y,j.direction,O,i,D,l,t]),a=Oe.useCallback((n,{event:s})=>s.key===" "?!1:n,[]);qo(e,"canStartEditing",a),Za(e,"columnHeaderKeyDown",C),Za(e,"headerFilterKeyDown",w),Za(e,"columnGroupHeaderKeyDown",v),Za(e,"cellKeyDown",m)},Qme=(e,r)=>{var v,m;const x=al(e,"useGridRowCount"),F=va(e,Z5),j=va(e,Fm),Y=va(e,rx),D=va(e,mu),O=wg(()=>mu(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:r.rowCount,propOnChange:r.onRowCountChange,stateSelector:Fm,changeEvent:"rowCountChange"});const l={setRowCount:Oe.useCallback(a=>{j!==a&&(x.debug("Setting 'rowCount' to",a),e.current.setState(n=>Ge({},n,{pagination:Ge({},n.pagination,{rowCount:a})})))},[e,x,j])};Mi(e,l,"public");const S=Oe.useCallback((a,n)=>{var h,f;const s=Fm(e);return!n.exportOnlyDirtyModels||r.rowCount!=null||((f=(h=r.initialState)==null?void 0:h.pagination)==null?void 0:f.rowCount)!=null?Ge({},a,{pagination:Ge({},a.pagination,{rowCount:s})}):a},[e,r.rowCount,(m=(v=r.initialState)==null?void 0:v.pagination)==null?void 0:m.rowCount]),i=Oe.useCallback((a,n)=>{var o;const s=(o=n.stateToRestore.pagination)!=null&&o.rowCount?n.stateToRestore.pagination.rowCount:Fm(e);return e.current.setState(h=>Ge({},h,{pagination:Ge({},h.pagination,{rowCount:s})})),a},[e]);qo(e,"exportState",S),qo(e,"restoreState",i);const C=Oe.useCallback(a=>{r.paginationMode==="client"||!O.current||a.pageSize!==O.current&&(O.current=a.pageSize,j===-1&&e.current.setPage(0))},[r.paginationMode,O,j,e]);Za(e,"paginationModelChange",C),Oe.useEffect(()=>{r.paginationMode==="client"?e.current.setRowCount(F):r.rowCount!=null&&e.current.setRowCount(r.rowCount)},[e,r.paginationMode,F,r.rowCount]);const w=Y.hasNextPage===!1;Oe.useEffect(()=>{w&&j===-1&&e.current.setRowCount(D.pageSize*D.page+F)},[e,F,w,j,D])},qme=(e,r)=>{var t,l;const x=al(e,"useGridPaginationMeta"),F=va(e,rx);e.current.registerControlState({stateId:"paginationMeta",propModel:r.paginationMeta,propOnChange:r.onPaginationMetaChange,stateSelector:rx,changeEvent:"paginationMetaChange"});const Y={setPaginationMeta:Oe.useCallback(S=>{F!==S&&(x.debug("Setting 'paginationMeta' to",S),e.current.setState(i=>Ge({},i,{pagination:Ge({},i.pagination,{meta:S})})))},[e,x,F])};Mi(e,Y,"public");const D=Oe.useCallback((S,i)=>{var v,m;const C=rx(e);return!i.exportOnlyDirtyModels||r.paginationMeta!=null||((m=(v=r.initialState)==null?void 0:v.pagination)==null?void 0:m.meta)!=null?Ge({},S,{pagination:Ge({},S.pagination,{meta:C})}):S},[e,r.paginationMeta,(l=(t=r.initialState)==null?void 0:t.pagination)==null?void 0:l.meta]),O=Oe.useCallback((S,i)=>{var w;const C=(w=i.stateToRestore.pagination)!=null&&w.meta?i.stateToRestore.pagination.meta:rx(e);return e.current.setState(v=>Ge({},v,{pagination:Ge({},v.pagination,{meta:C})})),S},[e]);qo(e,"exportState",D),qo(e,"restoreState",O),Oe.useEffect(()=>{r.paginationMeta&&e.current.setPaginationMeta(r.paginationMeta)},[e,r.paginationMeta])},eye=(e,r)=>{var Y,D,O,t,l,S;const x=Ge({},jF(r.autoPageSize),r.paginationModel??((D=(Y=r.initialState)==null?void 0:Y.pagination)==null?void 0:D.paginationModel));GF(x.pageSize,r.signature);const F=r.rowCount??((t=(O=r.initialState)==null?void 0:O.pagination)==null?void 0:t.rowCount),j=r.paginationMeta??((S=(l=r.initialState)==null?void 0:l.pagination)==null?void 0:S.meta)??{};return Ge({},e,{pagination:{paginationModel:x,rowCount:F,meta:j}})},tye=(e,r)=>{qme(e,r),Ume(e,r),Qme(e,r)},rye=(e,r)=>{var x;return Ge({},e,{preferencePanel:((x=r.initialState)==null?void 0:x.preferencePanel)??{open:!1}})},nye=(e,r)=>{var i;const x=al(e,"useGridPreferencesPanel"),F=Oe.useRef(),j=Oe.useRef(),Y=Oe.useCallback(()=>{x.debug("Hiding Preferences Panel");const C=gg(e.current.state);C.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:C.openedPanelValue}),e.current.setState(w=>Ge({},w,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,x]),D=Oe.useCallback(()=>{j.current=setTimeout(()=>clearTimeout(F.current),0)},[]),O=Oe.useCallback(()=>{F.current=setTimeout(Y,100)},[Y]),t=Oe.useCallback((C,w,v)=>{x.debug("Opening Preferences Panel"),D(),e.current.setState(m=>Ge({},m,{preferencePanel:Ge({},m.preferencePanel,{open:!0,openedPanelValue:C,panelId:w,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:C}),e.current.forceUpdate()},[x,D,e]);Mi(e,{showPreferences:t,hidePreferences:O},"public");const l=Oe.useCallback((C,w)=>{var a;const v=gg(e.current.state);return!w.exportOnlyDirtyModels||((a=r.initialState)==null?void 0:a.preferencePanel)!=null||v.open?Ge({},C,{preferencePanel:v}):C},[e,(i=r.initialState)==null?void 0:i.preferencePanel]),S=Oe.useCallback((C,w)=>{const v=w.stateToRestore.preferencePanel;return v!=null&&e.current.setState(m=>Ge({},m,{preferencePanel:v})),C},[e]);qo(e,"exportState",l),qo(e,"restoreState",S),Oe.useEffect(()=>()=>{clearTimeout(F.current),clearTimeout(j.current)},[])},aye=["id","field"],iye=["id","field"],oye=(e,r)=>{const[x,F]=Oe.useState({}),j=Oe.useRef(x),Y=Oe.useRef({}),{processRowUpdate:D,onProcessRowUpdateError:O,cellModesModel:t,onCellModesModelChange:l}=r,S=R=>(...T)=>{r.editMode===vh.Cell&&R(...T)},i=Oe.useCallback((R,T)=>{const L=e.current.getCellParams(R,T);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${R} and field=${T} is not editable.`)},[e]),C=Oe.useCallback((R,T,L)=>{if(e.current.getCellMode(R,T)!==L)throw new Error(`MUI X: The cell with id=${R} and field=${T} is not in ${L} mode.`)},[e]),w=Oe.useCallback((R,T)=>{if(!R.isEditable||R.cellMode===Mo.Edit)return;const L=Ge({},R,{reason:jh.cellDoubleClick});e.current.publishEvent("cellEditStart",L,T)},[e]),v=Oe.useCallback((R,T)=>{if(R.cellMode===Mo.View||e.current.getCellMode(R.id,R.field)===Mo.View)return;const L=Ge({},R,{reason:cd.cellFocusOut});e.current.publishEvent("cellEditStop",L,T)},[e]),m=Oe.useCallback((R,T)=>{if(R.cellMode===Mo.Edit){if(T.which===229)return;let L;if(T.key==="Escape"?L=cd.escapeKeyDown:T.key==="Enter"?L=cd.enterKeyDown:T.key==="Tab"&&(L=T.shiftKey?cd.shiftTabKeyDown:cd.tabKeyDown,T.preventDefault()),L){const P=Ge({},R,{reason:L});e.current.publishEvent("cellEditStop",P,T)}}else if(R.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:R,editMode:"cell"}))return;if(KF(T)?L=jh.printableKeyDown:JF(T)?L=jh.pasteKeyDown:T.key==="Enter"?L=jh.enterKeyDown:(T.key==="Backspace"||T.key==="Delete")&&(L=jh.deleteKeyDown),L){const d=Ge({},R,{reason:L,key:T.key});e.current.publishEvent("cellEditStart",d,T)}}},[e]),a=Oe.useCallback(R=>{const{id:T,field:L,reason:P}=R,d={id:T,field:L};(P===jh.printableKeyDown||P===jh.deleteKeyDown||P===jh.pasteKeyDown)&&(d.deleteValue=!0),e.current.startCellEditMode(d)},[e]),n=Oe.useCallback(R=>{const{id:T,field:L,reason:P}=R;e.current.runPendingEditCellValueMutation(T,L);let d;P===cd.enterKeyDown?d="below":P===cd.tabKeyDown?d="right":P===cd.shiftTabKeyDown&&(d="left");const k=P==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:L,ignoreModifications:k,cellToFocusAfter:d})},[e]),s=R=>async(...T)=>{var L;if(R){const{id:P,field:d}=T[0];((L=e.current.state.editRows[P][d])==null?void 0:L.error)||R(...T)}};Za(e,"cellDoubleClick",S(w)),Za(e,"cellFocusOut",S(v)),Za(e,"cellKeyDown",S(m)),Za(e,"cellEditStart",S(a)),Za(e,"cellEditStop",S(n)),_o(e,"cellEditStart",r.onCellEditStart),_o(e,"cellEditStop",s(r.onCellEditStop));const o=Oe.useCallback((R,T)=>{const L=eu(e.current.state);return L[R]&&L[R][T]?Mo.Edit:Mo.View},[e]),h=pa(R=>{const T=R!==r.cellModesModel;l&&T&&l(R,{api:e.current}),!(r.cellModesModel&&T)&&(F(R),j.current=R,e.current.publishEvent("cellModesModelChange",R))}),f=Oe.useCallback((R,T,L)=>{const P=Ge({},j.current);if(L!==null)P[R]=Ge({},P[R],{[T]:Ge({},L)});else{const d=P[R],k=hn(d,[T].map(Xx));P[R]=k,Object.keys(P[R]).length===0&&delete P[R]}h(P)},[h]),u=Oe.useCallback((R,T,L)=>{e.current.setState(P=>{const d=Ge({},P.editRows);return L!==null?d[R]=Ge({},d[R],{[T]:Ge({},L)}):(delete d[R][T],Object.keys(d[R]).length===0&&delete d[R]),Ge({},P,{editRows:d})}),e.current.forceUpdate()},[e]),b=Oe.useCallback(R=>{const{id:T,field:L}=R,P=hn(R,aye);i(T,L),C(T,L,Mo.View),f(T,L,Ge({mode:Mo.Edit},P))},[i,C,f]),p=pa(R=>{const{id:T,field:L,deleteValue:P,initialValue:d}=R;let k=e.current.getCellValue(T,L);if(P)switch(e.current.getColumn(L).type){case"boolean":k=!1;break;case"date":case"dateTime":case"number":k=void 0;break;case"singleSelect":k=null;break;case"string":default:k="";break}else d&&(k=d);u(T,L,{value:k,error:!1,isProcessingProps:!1}),e.current.setCellFocus(T,L)}),E=Oe.useCallback(R=>{const{id:T,field:L}=R,P=hn(R,iye);C(T,L,Mo.Edit),f(T,L,Ge({mode:Mo.View},P))},[C,f]),g=pa(async R=>{const{id:T,field:L,ignoreModifications:P,cellToFocusAfter:d="none"}=R;C(T,L,Mo.Edit),e.current.runPendingEditCellValueMutation(T,L);const k=()=>{u(T,L,null),f(T,L,null),d!=="none"&&e.current.moveFocusToRelativeCell(T,L,d)};if(P){k();return}const I=eu(e.current.state),{error:N,isProcessingProps:B}=I[T][L];if(N||B){Y.current[T][L].mode=Mo.Edit,f(T,L,{mode:Mo.Edit});return}const G=e.current.getRowWithUpdatedValuesFromCellEditing(T,L);if(D){const U=H=>{Y.current[T][L].mode=Mo.Edit,f(T,L,{mode:Mo.Edit}),O&&O(H)};try{const H=e.current.getRow(T);Promise.resolve(D(G,H)).then(W=>{e.current.updateRows([W]),k()}).catch(U)}catch(H){U(H)}}else e.current.updateRows([G]),k()}),c=Oe.useCallback(async R=>{var H,W;const{id:T,field:L,value:P,debounceMs:d,unstable_skipValueParser:k}=R;i(T,L),C(T,L,Mo.Edit);const I=e.current.getColumn(L),N=e.current.getRow(T);let B=P;I.valueParser&&!k&&(B=I.valueParser(P,N,I,e));let G=eu(e.current.state),U=Ge({},G[T][L],{value:B,changeReason:d?"debouncedSetEditCellValue":"setEditCellValue"});if(I.preProcessEditCellProps){const V=P!==G[T][L].value;U=Ge({},U,{isProcessingProps:!0}),u(T,L,U),U=await Promise.resolve(I.preProcessEditCellProps({id:T,row:N,props:U,hasChanged:V}))}return e.current.getCellMode(T,L)===Mo.View?!1:(G=eu(e.current.state),U=Ge({},U,{isProcessingProps:!1}),U.value=I.preProcessEditCellProps?G[T][L].value:B,u(T,L,U),G=eu(e.current.state),!((W=(H=G[T])==null?void 0:H[L])!=null&&W.error))},[e,i,C,u]),y=Oe.useCallback((R,T)=>{const L=e.current.getColumn(T),P=eu(e.current.state),d=e.current.getRow(R);if(!P[R]||!P[R][T])return e.current.getRow(R);const{value:k}=P[R][T];return L.valueSetter?L.valueSetter(k,d,L,e):Ge({},d,{[T]:k})},[e]),A={getCellMode:o,startCellEditMode:b,stopCellEditMode:E},M={setCellEditingEditCellValue:c,getRowWithUpdatedValuesFromCellEditing:y};Mi(e,A,"public"),Mi(e,M,"private"),Oe.useEffect(()=>{t&&h(t)},[t,h]),Gi(()=>{const R=h2(e),T=Y.current;Y.current=CF(x),Object.entries(x).forEach(([L,P])=>{Object.entries(P).forEach(([d,k])=>{var B,G;const I=((G=(B=T[L])==null?void 0:B[d])==null?void 0:G.mode)||Mo.View,N=R[L]??L;k.mode===Mo.Edit&&I===Mo.View?p(Ge({id:N,field:d},k)):k.mode===Mo.View&&I===Mo.Edit&&g(Ge({id:N,field:d},k))})})},[e,x,p,g])},sye=["id"],lye=["id"],uye=(e,r)=>{const[x,F]=Oe.useState({}),j=Oe.useRef(x),Y=Oe.useRef({}),D=Oe.useRef(),O=Oe.useRef(null),{processRowUpdate:t,onProcessRowUpdateError:l,rowModesModel:S,onRowModesModelChange:i}=r,C=d=>(...k)=>{r.editMode===vh.Row&&d(...k)},w=Oe.useCallback((d,k)=>{const I=e.current.getCellParams(d,k);if(!e.current.isCellEditable(I))throw new Error(`MUI X: The cell with id=${d} and field=${k} is not editable.`)},[e]),v=Oe.useCallback((d,k)=>{if(e.current.getRowMode(d)!==k)throw new Error(`MUI X: The row with id=${d} is not in ${k} mode.`)},[e]),m=Oe.useCallback(d=>{const k=eu(e.current.state);return Object.values(k[d]).some(I=>I.error)},[e]),a=Oe.useCallback((d,k)=>{if(!d.isEditable||e.current.getRowMode(d.id)===Fo.Edit)return;const I=e.current.getRowParams(d.id),N=Ge({},I,{field:d.field,reason:op.cellDoubleClick});e.current.publishEvent("rowEditStart",N,k)},[e]),n=Oe.useCallback(d=>{O.current=d},[]),s=Oe.useCallback((d,k)=>{d.isEditable&&e.current.getRowMode(d.id)!==Fo.View&&(O.current=null,D.current=setTimeout(()=>{var I;if(((I=O.current)==null?void 0:I.id)!==d.id){if(!e.current.getRow(d.id)||e.current.getRowMode(d.id)===Fo.View||m(d.id))return;const N=e.current.getRowParams(d.id),B=Ge({},N,{field:d.field,reason:Xd.rowFocusOut});e.current.publishEvent("rowEditStop",B,k)}}))},[e,m]);Oe.useEffect(()=>()=>{clearTimeout(D.current)},[]);const o=Oe.useCallback((d,k)=>{if(d.cellMode===Fo.Edit){if(k.which===229)return;let I;if(k.key==="Escape")I=Xd.escapeKeyDown;else if(k.key==="Enter")I=Xd.enterKeyDown;else if(k.key==="Tab"){const N=Ob(e).filter(B=>e.current.getColumn(B).type===HT?!0:e.current.isCellEditable(e.current.getCellParams(d.id,B)));if(k.shiftKey?d.field===N[0]&&(I=Xd.shiftTabKeyDown):d.field===N[N.length-1]&&(I=Xd.tabKeyDown),k.preventDefault(),!I){const B=N.findIndex(U=>U===d.field),G=N[k.shiftKey?B-1:B+1];e.current.setCellFocus(d.id,G)}}if(I){if(I!==Xd.escapeKeyDown&&m(d.id))return;const N=Ge({},e.current.getRowParams(d.id),{reason:I,field:d.field});e.current.publishEvent("rowEditStop",N,k)}}else if(d.isEditable){let I;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:k,cellParams:d,editMode:"row"}))return;if(KF(k)||JF(k)?I=op.printableKeyDown:k.key==="Enter"?I=op.enterKeyDown:(k.key==="Backspace"||k.key==="Delete")&&(I=op.deleteKeyDown),I){const B=e.current.getRowParams(d.id),G=Ge({},B,{field:d.field,reason:I});e.current.publishEvent("rowEditStart",G,k)}}},[e,m]),h=Oe.useCallback(d=>{const{id:k,field:I,reason:N}=d,B={id:k,fieldToFocus:I};(N===op.printableKeyDown||N===op.deleteKeyDown)&&(B.deleteValue=!!I),e.current.startRowEditMode(B)},[e]),f=Oe.useCallback(d=>{const{id:k,reason:I,field:N}=d;e.current.runPendingEditCellValueMutation(k);let B;I===Xd.enterKeyDown?B="below":I===Xd.tabKeyDown?B="right":I===Xd.shiftTabKeyDown&&(B="left");const G=I==="escapeKeyDown";e.current.stopRowEditMode({id:k,ignoreModifications:G,field:N,cellToFocusAfter:B})},[e]);Za(e,"cellDoubleClick",C(a)),Za(e,"cellFocusIn",C(n)),Za(e,"cellFocusOut",C(s)),Za(e,"cellKeyDown",C(o)),Za(e,"rowEditStart",C(h)),Za(e,"rowEditStop",C(f)),_o(e,"rowEditStart",r.onRowEditStart),_o(e,"rowEditStop",r.onRowEditStop);const u=Oe.useCallback(d=>{if(r.editMode===vh.Cell)return Fo.View;const k=eu(e.current.state);return k[d]&&Object.keys(k[d]).length>0?Fo.Edit:Fo.View},[e,r.editMode]),b=pa(d=>{const k=d!==r.rowModesModel;i&&k&&i(d,{api:e.current}),!(r.rowModesModel&&k)&&(F(d),j.current=d,e.current.publishEvent("rowModesModelChange",d))}),p=Oe.useCallback((d,k)=>{const I=Ge({},j.current);k!==null?I[d]=Ge({},k):delete I[d],b(I)},[b]),E=Oe.useCallback((d,k)=>{e.current.setState(I=>{const N=Ge({},I.editRows);return k!==null?N[d]=k:delete N[d],Ge({},I,{editRows:N})}),e.current.forceUpdate()},[e]),g=Oe.useCallback((d,k,I)=>{e.current.setState(N=>{const B=Ge({},N.editRows);return I!==null?B[d]=Ge({},B[d],{[k]:Ge({},I)}):(delete B[d][k],Object.keys(B[d]).length===0&&delete B[d]),Ge({},N,{editRows:B})}),e.current.forceUpdate()},[e]),c=Oe.useCallback(d=>{const{id:k}=d,I=hn(d,sye);v(k,Fo.View),p(k,Ge({mode:Fo.Edit},I))},[v,p]),y=pa(d=>{const{id:k,fieldToFocus:I,deleteValue:N,initialValue:B}=d,U=tv(e).reduce((H,W)=>{if(!e.current.getCellParams(k,W).isEditable)return H;let $=e.current.getCellValue(k,W);return I===W&&(N||B)&&($=N?"":B),H[W]={value:$,error:!1,isProcessingProps:!1},H},{});E(k,U),I&&e.current.setCellFocus(k,I)}),A=Oe.useCallback(d=>{const{id:k}=d,I=hn(d,lye);v(k,Fo.Edit),p(k,Ge({mode:Fo.View},I))},[v,p]),M=pa(d=>{const{id:k,ignoreModifications:I,field:N,cellToFocusAfter:B="none"}=d;e.current.runPendingEditCellValueMutation(k);const G=()=>{B!=="none"&&N&&e.current.moveFocusToRelativeCell(k,N,B),E(k,null),p(k,null)};if(I){G();return}const U=eu(e.current.state),H=e.current.getRow(k);if(Object.values(U[k]).some($=>$.isProcessingProps)){Y.current[k].mode=Fo.Edit;return}if(m(k)){Y.current[k].mode=Fo.Edit,p(k,{mode:Fo.Edit});return}const V=e.current.getRowWithUpdatedValuesFromRowEditing(k);if(t){const $=Z=>{Y.current[k].mode=Fo.Edit,p(k,{mode:Fo.Edit}),l&&l(Z)};try{Promise.resolve(t(V,H)).then(Z=>{e.current.updateRows([Z]),G()}).catch($)}catch(Z){$(Z)}}else e.current.updateRows([V]),G()}),R=Oe.useCallback(d=>{const{id:k,field:I,value:N,debounceMs:B,unstable_skipValueParser:G}=d;w(k,I);const U=e.current.getColumn(I),H=e.current.getRow(k);let W=N;U.valueParser&&!G&&(W=U.valueParser(N,H,U,e));let V=eu(e.current.state),$=Ge({},V[k][I],{value:W,changeReason:B?"debouncedSetEditCellValue":"setEditCellValue"});return U.preProcessEditCellProps||g(k,I,$),new Promise(Z=>{const q=[];if(U.preProcessEditCellProps){const ae=$.value!==V[k][I].value;$=Ge({},$,{isProcessingProps:!0}),g(k,I,$);const ie=V[k],fe=hn(ie,[I].map(Xx)),Q=Promise.resolve(U.preProcessEditCellProps({id:k,row:H,props:$,hasChanged:ae,otherFieldsProps:fe})).then(J=>{if(e.current.getRowMode(k)===Fo.View){Z(!1);return}V=eu(e.current.state),J=Ge({},J,{isProcessingProps:!1}),J.value=U.preProcessEditCellProps?V[k][I].value:W,g(k,I,J)});q.push(Q)}Object.entries(V[k]).forEach(([ae,ie])=>{if(ae===I)return;const fe=e.current.getColumn(ae);if(!fe.preProcessEditCellProps)return;ie=Ge({},ie,{isProcessingProps:!0}),g(k,ae,ie),V=eu(e.current.state);const Q=V[k],J=hn(Q,[ae].map(Xx)),oe=Promise.resolve(fe.preProcessEditCellProps({id:k,row:H,props:ie,hasChanged:!1,otherFieldsProps:J})).then(K=>{if(e.current.getRowMode(k)===Fo.View){Z(!1);return}K=Ge({},K,{isProcessingProps:!1}),g(k,ae,K)});q.push(oe)}),Promise.all(q).then(()=>{e.current.getRowMode(k)===Fo.Edit?(V=eu(e.current.state),Z(!V[k][I].error)):Z(!1)})})},[e,w,g]),T=Oe.useCallback(d=>{const k=eu(e.current.state),I=e.current.getRow(d);if(!k[d])return e.current.getRow(d);let N=Ge({},I);return Object.entries(k[d]).forEach(([B,G])=>{const U=e.current.getColumn(B);U.valueSetter?N=U.valueSetter(G.value,N,U,e):N[B]=G.value}),N},[e]),L={getRowMode:u,startRowEditMode:c,stopRowEditMode:A},P={setRowEditingEditCellValue:R,getRowWithUpdatedValuesFromRowEditing:T};Mi(e,L,"public"),Mi(e,P,"private"),Oe.useEffect(()=>{S&&b(S)},[S,b]),Gi(()=>{const d=h2(e),k=Y.current;Y.current=CF(x);const I=new Set([...Object.keys(x),...Object.keys(k)]);Array.from(I).forEach(N=>{var H;const B=x[N]??{mode:Fo.View},G=((H=k[N])==null?void 0:H.mode)||Fo.View,U=d[N]??N;B.mode===Fo.Edit&&G===Fo.View?y(Ge({id:U},B)):B.mode===Fo.View&&G===Fo.Edit&&M(Ge({id:U},B))})},[e,x,y,M])},cye=e=>Ge({},e,{editRows:{}}),fye=(e,r)=>{oye(e,r),uye(e,r);const x=Oe.useRef({}),{isCellEditable:F}=r,j=Oe.useCallback(C=>Iy(C.rowNode)||!C.colDef.editable||!C.colDef.renderEditCell?!1:F?F(C):!0,[F]),Y=(C,w,v,m)=>{if(!v){m();return}if(x.current[C]||(x.current[C]={}),x.current[C][w]){const[s]=x.current[C][w];clearTimeout(s)}const a=()=>{const[s]=x.current[C][w];clearTimeout(s),m(),delete x.current[C][w]},n=setTimeout(()=>{m(),delete x.current[C][w]},v);x.current[C][w]=[n,a]};Oe.useEffect(()=>{const C=x.current;return()=>{Object.entries(C).forEach(([w,v])=>{Object.keys(v).forEach(m=>{const[a]=C[w][m];clearTimeout(a),delete C[w][m]})})}},[]);const D=Oe.useCallback((C,w)=>{if(x.current[C]){if(!w)Object.keys(x.current[C]).forEach(v=>{const[,m]=x.current[C][v];m()});else if(x.current[C][w]){const[,v]=x.current[C][w];v()}}},[]),O=Oe.useCallback(C=>{const{id:w,field:v,debounceMs:m}=C;return new Promise(a=>{Y(w,v,m,async()=>{const n=r.editMode===vh.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(w,v)===Mo.Edit){const s=await n(C);a(s)}})})},[e,r.editMode]),t=Oe.useCallback((C,w)=>r.editMode===vh.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(C,w):e.current.getRowWithUpdatedValuesFromRowEditing(C),[e,r.editMode]),l=Oe.useCallback((C,w)=>{var m;return((m=eu(e.current.state)[C])==null?void 0:m[w])??null},[e]),S={isCellEditable:j,setEditCellValue:O,getRowWithUpdatedValues:t,unstable_getEditCellMeta:l},i={runPendingEditCellValueMutation:D};Mi(e,S,"public"),Mi(e,i,"private")},dye=(e,r,x)=>{const F=!!r.unstable_dataSource;return x.current.caches.rows=T3({rows:F?[]:r.rows,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),Ge({},e,{rows:RF({apiRef:x,rowCountProp:r.rowCount,loadingProp:F?!0:r.loading,previousTree:null,previousTreeDepths:null})})},hye=(e,r)=>{const x=al(e,"useGridRows"),F=Ag(e,r),j=Oe.useRef(Date.now()),Y=Oe.useRef(r.rowCount),D=Cc(),O=Oe.useCallback(L=>{const P=Ep(e)[L];if(P)return P;const d=e.current.getRowNode(L);return d&&Iy(d)?{[Km]:L}:null},[e]),t=r.getRowId,l=Oe.useCallback(L=>Km in L?L[Km]:t?t(L):L.id,[t]),S=Oe.useMemo(()=>F.rows.reduce((L,{id:P},d)=>(L[P]=d,L),{}),[F.rows]),i=Oe.useCallback(({cache:L,throttle:P})=>{const d=()=>{j.current=Date.now(),e.current.setState(I=>Ge({},I,{rows:RF({apiRef:e,rowCountProp:r.rowCount,loadingProp:r.loading,previousTree:mf(e),previousTreeDepths:DI(e),previousGroupsToFetch:ede(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(D.clear(),e.current.caches.rows=L,!P){d();return}const k=r.throttleRowsMs-(Date.now()-j.current);if(k>0){D.start(k,d);return}d()},[r.throttleRowsMs,r.rowCount,r.loading,e,D]),C=Oe.useCallback(L=>{x.debug(`Updating all rows, new length ${L.length}`);const P=T3({rows:L,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),d=e.current.caches.rows;P.rowsBeforePartialUpdates=d.rowsBeforePartialUpdates,i({cache:P,throttle:!0})},[x,r.getRowId,r.loading,r.rowCount,i,e]),w=Oe.useCallback(L=>{if(r.signature===bd.DataGrid&&L.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));const P=FI(e,L,r.getRowId),d=OI({updates:P,getRowId:r.getRowId,previousCache:e.current.caches.rows});i({cache:d,throttle:!0})},[r.signature,r.getRowId,i,e]),v=Oe.useCallback((L,P)=>{const d=FI(e,L,r.getRowId),k=OI({updates:d,getRowId:r.getRowId,previousCache:e.current.caches.rows,groupKeys:P??[]});i({cache:k,throttle:!1})},[r.getRowId,i,e]),m=Oe.useCallback(L=>{L!==r.loading&&(x.debug(`Setting loading to ${L}`),e.current.setState(P=>Ge({},P,{rows:Ge({},P.rows,{loading:L})})),e.current.caches.rows.loadingPropBeforePartialUpdates=L)},[r.loading,e,x]),a=Oe.useCallback(()=>{const L=Qw(e),P=Ep(e);return new Map(L.map(d=>[d,P[d]??{}]))},[e]),n=Oe.useCallback(()=>_b(e),[e]),s=Oe.useCallback(()=>Qw(e),[e]),o=Oe.useCallback(L=>S[L],[S]),h=Oe.useCallback((L,P)=>{const d=e.current.getRowNode(L);if(!d)throw new Error(`MUI X: No row with id #${L} found.`);if(d.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const k=Ge({},d,{childrenExpanded:P});e.current.setState(I=>Ge({},I,{rows:Ge({},I.rows,{tree:Ge({},I.rows.tree,{[L]:k})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",k)},[e]),f=Oe.useCallback(L=>mf(e)[L]??null,[e]),u=Oe.useCallback(({skipAutoGeneratedRows:L=!0,groupId:P,applySorting:d,applyFiltering:k})=>{const I=mf(e);let N;if(d){const B=I[P];if(!B)return[];const G=$5(e);N=[];const U=G.findIndex(H=>H===P)+1;for(let H=U;HB.depth;H+=1){const W=G[H];(!L||!Iy(I[W]))&&N.push(W)}}else N=j5(I,P,L);if(k){const B=_F(e);N=N.filter(G=>B[G]!==!1)}return N},[e]),b=Oe.useCallback((L,P)=>{const d=e.current.getRowNode(L);if(!d)throw new Error(`MUI X: No row with id #${L} found.`);if(d.parent!==xu)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(d.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(k=>{const I=mf(k,e.current.instanceId)[xu],N=I.children,B=N.findIndex(U=>U===L);if(B===-1||B===P)return k;x.debug(`Moving row ${L} to index ${P}`);const G=[...N];return G.splice(P,0,G.splice(B,1)[0]),Ge({},k,{rows:Ge({},k.rows,{tree:Ge({},k.rows.tree,{[xu]:Ge({},I,{children:G})})})})}),e.current.publishEvent("rowsSet")},[e,x]),p=Oe.useCallback((L,P)=>{if(r.signature===bd.DataGrid&&P.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));if(P.length===0)return;if(VT(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const k=Ge({},mf(e)),I=Ge({},Ep(e)),N=Ge({},h2(e)),B=k[xu],G=[...B.children],U=new Set;for(let W=0;W{var V;return((V=k[W])==null?void 0:V.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=I,e.current.caches.rows.dataRowIdToIdLookup=N,e.current.setState(W=>Ge({},W,{rows:Ge({},W.rows,{dataRowIdToModelLookup:I,dataRowIdToIdLookup:N,dataRowIds:H,tree:k})})),e.current.publishEvent("rowsSet")},[e,r.signature,r.getRowId]),E={getRow:O,setLoading:m,getRowId:l,getRowModels:a,getRowsCount:n,getAllRowIds:s,setRows:C,updateRows:w,getRowNode:f,getRowIndexRelativeToVisibleRows:o,unstable_replaceRows:p},g={setRowIndex:b,setRowChildrenExpansion:h,getRowGroupChildren:u},c={updateServerRows:v},y=Oe.useCallback(()=>{x.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===r.rows?L=Ge({},e.current.caches.rows,{updates:{type:"full",rows:Qw(e)}}):L=T3({rows:r.rows,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),i({cache:L,throttle:!1})},[x,e,r.rows,r.getRowId,r.loading,r.rowCount,i]),A=Oe.useCallback(L=>{L==="rowTreeCreation"&&y()},[y]),M=Oe.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==tde(e)&&y()},[e,y]);Za(e,"activeStrategyProcessorChange",A),Za(e,"strategyAvailabilityChange",M);const R=Oe.useCallback(()=>{e.current.setState(L=>{const P=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:mf(L,e.current.instanceId),treeDepths:DI(L,e.current.instanceId),dataRowIds:Qw(L,e.current.instanceId),dataRowIdToModelLookup:Ep(L,e.current.instanceId),dataRowIdToIdLookup:h2(L,e.current.instanceId)});return Ge({},L,{rows:Ge({},L.rows,P,{totalTopLevelRowCount:IF({tree:P.tree,rowCountProp:r.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,r.rowCount]);u6(e,"hydrateRows",R),Mi(e,E,"public"),Mi(e,g,r.signature===bd.DataGrid?"private":"public"),Mi(e,c,"private");const T=Oe.useRef(!0);Oe.useEffect(()=>{var I;if(T.current){T.current=!1;return}let L=!1;r.rowCount!==Y.current&&(L=!0,Y.current=r.rowCount);const P=e.current.caches.rows.rowsBeforePartialUpdates===r.rows,d=e.current.caches.rows.loadingPropBeforePartialUpdates===r.loading,k=e.current.caches.rows.rowCountPropBeforePartialUpdates===r.rowCount;P&&(d||(e.current.setState(N=>Ge({},N,{rows:Ge({},N.rows,{loading:r.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=r.loading,e.current.forceUpdate()),k||(e.current.setState(N=>Ge({},N,{rows:Ge({},N.rows,{totalRowCount:Math.max(r.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(r.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=r.rowCount,e.current.forceUpdate()),!L)||(x.debug(`Updating all rows, new length ${(I=r.rows)==null?void 0:I.length}`),i({cache:T3({rows:r.rows,getRowId:r.getRowId,loading:r.loading,rowCount:r.rowCount}),throttle:!1}))},[r.rows,r.rowCount,r.getRowId,r.loading,x,i,e])},vye=e=>{const r={[xu]:Ge({},ade(),{children:e})};for(let x=0;x{const x=Ge({},e),F={};for(let D=0;D!F[D])),x[xu]=Ge({},j,{children:Y}),{groupingName:mg,tree:x,treeDepths:{0:Y.length},dataRowIds:Y}},gye=e=>e.updates.type==="full"?vye(e.updates.rows):pye({previousTree:e.previousTree,actions:e.updates.actions}),mye=e=>{b2(e,mg,"rowTreeCreation",gye)},b_=(e,r)=>e==null||Array.isArray(e)?e:r&&r[0]===e?r:[e],yye=(e,r)=>Ge({},e,{rowSelection:r.rowSelection?b_(r.rowSelectionModel)??[]:[]}),xye=(e,r)=>{const x=al(e,"useGridSelection"),F=A=>(...M)=>{r.rowSelection&&A(...M)},j=Oe.useMemo(()=>b_(r.rowSelectionModel,cf(e.current.state)),[e,r.rowSelectionModel]),Y=Oe.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:j,propOnChange:r.onRowSelectionModelChange,stateSelector:cf,changeEvent:"rowSelectionChange"});const{checkboxSelection:D,disableRowSelectionOnClick:O,isRowSelectable:t}=r,l=G5(r),S=Ag(e,r),i=Oe.useCallback(A=>{let M=A;const R=Y.current??A,T=e.current.isRowSelected(A);if(T){const L=Cx(e),P=L.findIndex(k=>k===R),d=L.findIndex(k=>k===M);if(P===d)return;P>d?M=L[d+1]:M=L[d-1]}Y.current=A,e.current.selectRowRange({startId:R,endId:M},!T)},[e]),C=Oe.useCallback(A=>{if(r.signature===bd.DataGrid&&!l&&Array.isArray(A)&&A.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` +`));cf(e.current.state)!==A&&(x.debug("Setting selection model"),e.current.setState(R=>Ge({},R,{rowSelection:r.rowSelection?A:[]})),e.current.forceUpdate())},[e,x,r.rowSelection,r.signature,l]),w=Oe.useCallback(A=>cf(e.current.state).includes(A),[e]),v=Oe.useCallback(A=>{if(t&&!t(e.current.getRowParams(A)))return!1;const M=e.current.getRowNode(A);return!((M==null?void 0:M.type)==="footer"||(M==null?void 0:M.type)==="pinnedRow")},[e,t]),m=Oe.useCallback(()=>Lde(e),[e]),a=Oe.useCallback((A,M=!0,R=!1)=>{if(e.current.isRowSelectable(A))if(Y.current=A,R)x.debug(`Setting selection for row ${A}`),e.current.setRowSelectionModel(M?[A]:[]);else{x.debug(`Toggling selection for row ${A}`);const L=cf(e.current.state).filter(d=>d!==A);M&&L.push(A),(L.length<2||l)&&e.current.setRowSelectionModel(L)}},[e,x,l]),n=Oe.useCallback((A,M=!0,R=!1)=>{x.debug("Setting selection for several rows");const T=A.filter(d=>e.current.isRowSelectable(d));let L;if(R)L=M?T:[];else{const d=Ge({},p2(e));T.forEach(k=>{M?d[k]=k:delete d[k]}),L=Object.values(d)}(L.length<2||l)&&e.current.setRowSelectionModel(L)},[e,x,l]),s=Oe.useCallback(({startId:A,endId:M},R=!0,T=!1)=>{if(!e.current.getRow(A)||!e.current.getRow(M))return;x.debug(`Expanding selection from row ${A} to row ${M}`);const L=Cx(e),P=L.indexOf(A),d=L.indexOf(M),[k,I]=P>d?[d,P]:[P,d],N=L.slice(k,I+1);e.current.selectRows(N,R,T)},[e,x]),o={selectRow:a,setRowSelectionModel:C,getSelectedRows:m,isRowSelected:w,isRowSelectable:v},h={selectRows:n,selectRowRange:s};Mi(e,o,"public"),Mi(e,h,r.signature===bd.DataGrid?"private":"public");const f=Oe.useCallback(()=>{if(r.keepNonExistentRowsSelected)return;const A=cf(e.current.state),M=Ep(e),R=Ge({},p2(e));let T=!1;A.forEach(L=>{M[L]||(delete R[L],T=!0)}),T&&e.current.setRowSelectionModel(Object.values(R))},[e,r.keepNonExistentRowsSelected]),u=Oe.useCallback((A,M)=>{const R=M.metaKey||M.ctrlKey,T=!D&&!R&&!ihe(M),L=!l||T,P=e.current.isRowSelected(A);L?e.current.selectRow(A,T?!0:!P,!0):e.current.selectRow(A,!P,!1)},[e,l,D]),b=Oe.useCallback((A,M)=>{var L;if(O)return;const R=(L=M.target.closest(`.${Hr.cell}`))==null?void 0:L.getAttribute("data-field");if(R===$y.field||R===s6)return;if(R){const P=e.current.getColumn(R);if((P==null?void 0:P.type)===HT)return}e.current.getRowNode(A.id).type!=="pinnedRow"&&(M.shiftKey&&l?i(A.id):u(A.id,M))},[O,l,e,i,u]),p=Oe.useCallback((A,M)=>{var R;l&&M.shiftKey&&((R=window.getSelection())==null||R.removeAllRanges())},[l]),E=Oe.useCallback((A,M)=>{l&&M.nativeEvent.shiftKey?i(A.id):e.current.selectRow(A.id,A.value,!l)},[e,i,l]),g=Oe.useCallback(A=>{const R=r.checkboxSelectionVisibleOnly&&r.pagination?$F(e):Cx(e),T=cl(e);e.current.selectRows(R,A.value,(T==null?void 0:T.items.length)>0)},[e,r.checkboxSelectionVisibleOnly,r.pagination]),c=Oe.useCallback((A,M)=>{if(e.current.getCellMode(A.id,A.field)!==Mo.Edit&&!Nb(M)){if(m2(M.key)&&M.shiftKey){const R=uf(e);if(R&&R.id!==A.id){M.preventDefault();const T=e.current.isRowSelected(R.id);if(!l){e.current.selectRow(R.id,!T,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(R.id),P=e.current.getRowIndexRelativeToVisibleRows(A.id);let d,k;L>P?T?(d=P,k=L-1):(d=P,k=L):T?(d=L+1,k=P):(d=L,k=P);const I=S.rows.slice(d,k+1).map(N=>N.id);e.current.selectRows(I,!T);return}}if(M.key===" "&&M.shiftKey){M.preventDefault(),u(A.id,M);return}M.key==="a"&&(M.ctrlKey||M.metaKey)&&(M.preventDefault(),n(e.current.getAllRowIds(),!0))}},[e,u,n,S.rows,l]);Za(e,"sortedRowsSet",F(f)),Za(e,"rowClick",F(b)),Za(e,"rowSelectionCheckboxChange",F(E)),Za(e,"headerSelectionCheckboxChange",g),Za(e,"cellMouseDown",F(p)),Za(e,"cellKeyDown",F(c)),Oe.useEffect(()=>{j!==void 0&&e.current.setRowSelectionModel(j)},[e,j,r.rowSelection]),Oe.useEffect(()=>{r.rowSelection||e.current.setRowSelectionModel([])},[e,r.rowSelection]);const y=j!=null;Oe.useEffect(()=>{if(y||!r.rowSelection)return;const A=cf(e.current.state);if(v){const M=A.filter(R=>v(R));M.length{if(!r.rowSelection||y)return;const A=cf(e.current.state);!l&&A.length>1&&e.current.setRowSelectionModel([])},[e,l,D,y,r.rowSelection])},bye=e=>{const{classes:r}=e;return Oe.useMemo(()=>qn({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ki,r),[r])},wye=(e,r)=>{const x={classes:r.classes},F=bye(x),j=Oe.useCallback(Y=>{const D=Ge({},$y,{cellClassName:F.cellCheckbox,headerClassName:F.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),O=r.checkboxSelection,t=Y.lookup[sp]!=null;return O&&!t?(Y.lookup[sp]=D,Y.orderedFields=[sp,...Y.orderedFields]):!O&&t?(delete Y.lookup[sp],Y.orderedFields=Y.orderedFields.filter(l=>l!==sp)):O&&t&&(Y.lookup[sp]=Ge({},D,Y.lookup[sp])),Y},[e,F,r.checkboxSelection]);qo(e,"hydrateColumns",j)},Tye=(e,r)=>{var F,j;const x=r.sortModel??((j=(F=r.initialState)==null?void 0:F.sorting)==null?void 0:j.sortModel)??[];return Ge({},e,{sorting:{sortModel:bF(x,r.disableMultipleColumnsSorting),sortedRows:[]}})},Sye=(e,r)=>{var f,u;const x=al(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:r.sortModel,propOnChange:r.onSortModelChange,stateSelector:ff,changeEvent:"sortModelChange"});const F=Oe.useCallback((b,p)=>{const E=ff(e),g=E.findIndex(y=>y.field===b);let c=[...E];return g>-1?(p==null?void 0:p.sort)==null?c.splice(g,1):c.splice(g,1,p):c=[...E,p],c},[e]),j=Oe.useCallback((b,p)=>{const g=ff(e).find(c=>c.field===b.field);if(g){const c=p===void 0?PI(b.sortingOrder??r.sortingOrder,g.sort):p;return c===void 0?void 0:Ge({},g,{sort:c})}return{field:b.field,sort:p===void 0?PI(b.sortingOrder??r.sortingOrder):p}},[e,r.sortingOrder]),Y=Oe.useCallback((b,p)=>p==null||p.sortable===!1||r.disableColumnSorting?b:(p.sortingOrder||r.sortingOrder).some(g=>!!g)?[...b,"columnMenuSortItem"]:b,[r.sortingOrder,r.disableColumnSorting]),D=Oe.useCallback(()=>{e.current.setState(b=>{if(r.sortingMode==="server")return x.debug("Skipping sorting rows as sortingMode = server"),Ge({},b,{sorting:Ge({},b.sorting,{sortedRows:j5(mf(e),xu,!1)})});const p=ff(b,e.current.instanceId),E=Afe(p,e),g=e.current.applyStrategyProcessor("sorting",{sortRowList:E});return Ge({},b,{sorting:Ge({},b.sorting,{sortedRows:g})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,x,r.sortingMode]),O=Oe.useCallback(b=>{ff(e)!==b&&(x.debug("Setting sort model"),e.current.setState(EI(b,r.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,x,r.disableMultipleColumnsSorting]),t=Oe.useCallback((b,p,E)=>{const g=e.current.getColumn(b),c=j(g,p);let y;!E||r.disableMultipleColumnsSorting?y=(c==null?void 0:c.sort)==null?[]:[c]:y=F(g.field,c),e.current.setSortModel(y)},[e,F,j,r.disableMultipleColumnsSorting]),l=Oe.useCallback(()=>ff(e),[e]),S=Oe.useCallback(()=>Y5(e).map(p=>p.model),[e]),i=Oe.useCallback(()=>$5(e),[e]),C=Oe.useCallback(b=>e.current.getSortedRowIds()[b],[e]);Mi(e,{getSortModel:l,getSortedRows:S,getSortedRowIds:i,getRowIdFromRowIndex:C,setSortModel:O,sortColumn:t,applySorting:D},"public");const v=Oe.useCallback((b,p)=>{var c,y;const E=ff(e);return!p.exportOnlyDirtyModels||r.sortModel!=null||((y=(c=r.initialState)==null?void 0:c.sorting)==null?void 0:y.sortModel)!=null||E.length>0?Ge({},b,{sorting:{sortModel:E}}):b},[e,r.sortModel,(u=(f=r.initialState)==null?void 0:f.sorting)==null?void 0:u.sortModel]),m=Oe.useCallback((b,p)=>{var g;const E=(g=p.stateToRestore.sorting)==null?void 0:g.sortModel;return E==null?b:(e.current.setState(EI(E,r.disableMultipleColumnsSorting)),Ge({},b,{callbacks:[...b.callbacks,e.current.applySorting]}))},[e,r.disableMultipleColumnsSorting]),a=Oe.useCallback(b=>{const p=mf(e),E=p[xu],g=b.sortRowList?b.sortRowList(E.children.map(c=>p[c])):[...E.children];return E.footerId!=null&&g.push(E.footerId),g},[e]);qo(e,"exportState",v),qo(e,"restoreState",m),b2(e,mg,"sorting",a);const n=Oe.useCallback(({field:b,colDef:p},E)=>{if(!p.sortable||r.disableColumnSorting)return;const g=E.shiftKey||E.metaKey||E.ctrlKey;t(b,void 0,g)},[t,r.disableColumnSorting]),s=Oe.useCallback(({field:b,colDef:p},E)=>{!p.sortable||r.disableColumnSorting||E.key==="Enter"&&!E.ctrlKey&&!E.metaKey&&t(b,void 0,E.shiftKey)},[t,r.disableColumnSorting]),o=Oe.useCallback(()=>{const b=ff(e),p=gv(e);if(b.length>0){const E=b.filter(g=>p[g.field]);E.length{b==="sorting"&&e.current.applySorting()},[e]);qo(e,"columnMenu",Y),Za(e,"columnHeaderClick",n),Za(e,"columnHeaderKeyDown",s),Za(e,"rowsSet",e.current.applySorting),Za(e,"columnsChange",o),Za(e,"activeStrategyProcessorChange",h),zb(()=>{e.current.applySorting()}),Gi(()=>{r.sortModel!==void 0&&e.current.setSortModel(r.sortModel)},[e,r.sortModel])};function pR(e){const{clientHeight:r,scrollTop:x,offsetHeight:F,offsetTop:j}=e,Y=j+F;if(F>r)return j;if(Y-r>x)return Y-r;if(j{const x=nu(),F=al(e,"useGridScroll"),j=e.current.columnHeadersContainerRef,Y=e.current.virtualScrollerRef,D=va(e,e0),O=Oe.useCallback(i=>{var n;const C=qu(e.current.state),w=_b(e),v=nl(e);if(!(i.rowIndex==null)&&w===0||v.length===0)return!1;F.debug(`Scrolling to cell at row ${i.rowIndex}, col: ${i.colIndex} `);let a={};if(i.colIndex!==void 0){const s=Qp(e);let o;if(typeof i.rowIndex<"u"){const h=(n=D[i.rowIndex])==null?void 0:n.id,f=e.current.unstable_getCellColSpanInfo(h,i.colIndex);f&&!f.spannedByColSpan&&(o=f.cellProps.width)}typeof o>"u"&&(o=v[i.colIndex].computedWidth),a.left=pR({clientHeight:C.viewportInnerSize.width,scrollTop:Math.abs(Y.current.scrollLeft),offsetHeight:o,offsetTop:s[i.colIndex]})}if(i.rowIndex!==void 0){const s=Yy(e.current.state),o=Hde(e),h=Vde(e),f=r.pagination?i.rowIndex-o*h:i.rowIndex,u=s.positions[f+1]?s.positions[f+1]-s.positions[f]:s.currentPageTotalHeight-s.positions[f];a.top=pR({clientHeight:C.viewportInnerSize.height,scrollTop:Y.current.scrollTop,offsetHeight:u,offsetTop:s.positions[f]})}return a=e.current.unstable_applyPipeProcessors("scrollToIndexes",a,i),typeof a.left!==void 0||typeof a.top!==void 0?(e.current.scroll(a),!0):!1},[F,e,Y,r.pagination,D]),t=Oe.useCallback(i=>{if(Y.current&&i.left!==void 0&&j.current){const C=x.direction==="rtl"?-1:1;j.current.scrollLeft=i.left,Y.current.scrollLeft=C*i.left,F.debug(`Scrolling left: ${i.left}`)}Y.current&&i.top!==void 0&&(Y.current.scrollTop=i.top,F.debug(`Scrolling top: ${i.top}`)),F.debug("Scrolling, updating container, and viewport")},[Y,x.direction,j,F]),l=Oe.useCallback(()=>Y!=null&&Y.current?{top:Y.current.scrollTop,left:Y.current.scrollLeft}:{top:0,left:0},[Y]);Mi(e,{scroll:t,scrollToIndexes:O,getScrollPosition:l},"public")};function Mye(e,r){_o(e,"columnHeaderClick",r.onColumnHeaderClick),_o(e,"columnHeaderDoubleClick",r.onColumnHeaderDoubleClick),_o(e,"columnHeaderOver",r.onColumnHeaderOver),_o(e,"columnHeaderOut",r.onColumnHeaderOut),_o(e,"columnHeaderEnter",r.onColumnHeaderEnter),_o(e,"columnHeaderLeave",r.onColumnHeaderLeave),_o(e,"cellClick",r.onCellClick),_o(e,"cellDoubleClick",r.onCellDoubleClick),_o(e,"cellKeyDown",r.onCellKeyDown),_o(e,"preferencePanelClose",r.onPreferencePanelClose),_o(e,"preferencePanelOpen",r.onPreferencePanelOpen),_o(e,"menuOpen",r.onMenuOpen),_o(e,"menuClose",r.onMenuClose),_o(e,"rowDoubleClick",r.onRowDoubleClick),_o(e,"rowClick",r.onRowClick),_o(e,"stateChange",r.onStateChange)}function Aye(e,r=166){let x,F;const j=()=>{x=void 0,e(...F)};function Y(...D){F=D,x===void 0&&(x=setTimeout(j,r))}return Y.clear=()=>{clearTimeout(x),x=void 0},Y}const gm={width:0,height:0},Eye={isReady:!1,root:gm,viewportOuterSize:gm,viewportInnerSize:gm,contentSize:gm,minimumSize:gm,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},Pye=e=>Ge({},e,{dimensions:Eye});function Lye(e,r){const x=al(e,"useResizeContainer"),F=Oe.useRef(!1),j=Oe.useRef(gm),Y=va(e,qu),D=va(e,Yy),O=va(e,Fb),t=va(e,Db),l=Math.floor(r.rowHeight*t),S=Math.floor(r.columnHeaderHeight*t),i=Math.floor((r.headerFilterHeight??r.columnHeaderHeight)*t),C=Rye(N5(e),6),w=q5(e,r),v=O.left.reduce((M,R)=>M+R.computedWidth,0),m=O.right.reduce((M,R)=>M+R.computedWidth,0),[a,n]=Oe.useState(),s=Oe.useMemo(()=>Aye(n,r.resizeThrottleMs),[r.resizeThrottleMs]),o=Oe.useRef(),h=()=>e.current.state.dimensions,f=pa(M=>{e.current.setState(R=>Ge({},R,{dimensions:M}))}),u=Oe.useCallback(()=>{const M=e.current.mainElementRef.current;if(!M)return;const R=Cd(M).getComputedStyle(M),T={width:parseFloat(R.width)||0,height:parseFloat(R.height)||0};(!o.current||!gR(o.current,T))&&(e.current.publishEvent("resize",T),o.current=T)},[e]),b=Oe.useCallback(()=>{const M=qu(e.current.state);if(!M.isReady)return 0;const R=ab(e,{pagination:r.pagination,paginationMode:r.paginationMode});if(r.getRowHeight){const L=r6(e),P=L.lastRowIndex-L.firstRowIndex;return Math.min(P-1,R.rows.length)}const T=Math.floor(M.viewportInnerSize.height/l);return Math.min(T,R.rows.length)},[e,r.pagination,r.paginationMode,r.getRowHeight,l]),p=Oe.useCallback(()=>{var $,Z;const M=e.current.rootElementRef.current,R=ode(e),T=Iye(M,C,r.scrollbarSize),L=w+R.top,P=R.bottom,k={width:C-v-m,height:D.currentPageTotalHeight};let I,N,B=!1,G=!1;if(r.autoHeight)G=!1,B=Math.round(C)>Math.round(j.current.width),I={width:j.current.width,height:L+P+k.height},N={width:Math.max(0,I.width-(G?T:0)),height:Math.max(0,I.height-(B?T:0))};else{I={width:j.current.width,height:j.current.height},N={width:Math.max(0,I.width-v-m),height:Math.max(0,I.height-L-P)};const q=k,ae=N,ie=q.width>ae.width,fe=q.height>ae.height;(ie||fe)&&(G=fe,B=q.width+(G?T:0)>ae.width,B&&(G=q.height+T>ae.height)),G&&(N.width-=T),B&&(N.height-=T)}const U=Math.max(I.width,C+(G?T:0)),H={width:C,height:L+k.height+P},W={isReady:!0,root:j.current,viewportOuterSize:I,viewportInnerSize:N,contentSize:k,minimumSize:H,hasScrollX:B,hasScrollY:G,scrollbarSize:T,headerHeight:S,headerFilterHeight:i,rowWidth:U,rowHeight:l,columnsTotalWidth:C,leftPinnedWidth:v,rightPinnedWidth:m,headersTotalHeight:w,topContainerHeight:L,bottomContainerHeight:P},V=e.current.state.dimensions;f(W),gR(W.viewportInnerSize,V.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",W.viewportInnerSize),(Z=($=e.current).updateRenderContext)==null||Z.call($)},[e,f,r.scrollbarSize,r.autoHeight,D.currentPageTotalHeight,l,S,i,C,w,v,m]),E={resize:u,getRootDimensions:h},g={updateDimensions:p,getViewportPageSize:b};Mi(e,E,"public"),Mi(e,g,"private"),Gi(()=>{a&&(p(),e.current.publishEvent("debouncedResize",j.current))},[e,a,p]);const c=e.current.rootElementRef.current;Gi(()=>{if(!c)return;const M=(R,T)=>c.style.setProperty(R,T);M("--DataGrid-width",`${Y.viewportOuterSize.width}px`),M("--DataGrid-hasScrollX",`${Number(Y.hasScrollX)}`),M("--DataGrid-hasScrollY",`${Number(Y.hasScrollY)}`),M("--DataGrid-scrollbarSize",`${Y.scrollbarSize}px`),M("--DataGrid-rowWidth",`${Y.rowWidth}px`),M("--DataGrid-columnsTotalWidth",`${Y.columnsTotalWidth}px`),M("--DataGrid-leftPinnedWidth",`${Y.leftPinnedWidth}px`),M("--DataGrid-rightPinnedWidth",`${Y.rightPinnedWidth}px`),M("--DataGrid-headerHeight",`${Y.headerHeight}px`),M("--DataGrid-headersTotalHeight",`${Y.headersTotalHeight}px`),M("--DataGrid-topContainerHeight",`${Y.topContainerHeight}px`),M("--DataGrid-bottomContainerHeight",`${Y.bottomContainerHeight}px`),M("--height",`${Y.rowHeight}px`)},[c,Y]);const y=Oe.useRef(!0),A=Oe.useCallback(M=>{j.current=M;const R=/jsdom/.test(window.navigator.userAgent);if(M.height===0&&!F.current&&!r.autoHeight&&!R&&(x.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`)),F.current=!0),M.width===0&&!F.current&&!R&&(x.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`)),F.current=!0),y.current){n(M),y.current=!1;return}s(M)},[r.autoHeight,s,x]);Gi(p,[p]),_o(e,"sortedRowsSet",p),_o(e,"paginationModelChange",p),_o(e,"columnsChange",p),Za(e,"resize",A),_o(e,"debouncedResize",r.onResize)}function Iye(e,r,x){if(x!==void 0)return x;if(e===null||r===0)return 0;const j=oo(e).createElement("div");j.style.width="99px",j.style.height="99px",j.style.position="absolute",j.style.overflow="scroll",j.className="scrollDiv",e.appendChild(j);const Y=j.offsetWidth-j.clientWidth;return e.removeChild(j),Y}function Rye(e,r){return Math.round(e*10**r)/10**r}function gR(e,r){return e.width===r.width&&e.height===r.height}const kye=e=>{const{classes:r,headerAlign:x,isDragging:F,isLastColumn:j,showLeftBorder:Y,showRightBorder:D,groupId:O,pinnedPosition:t}=e;return qn({root:["columnHeader",x==="left"&&"columnHeader--alignLeft",x==="center"&&"columnHeader--alignCenter",x==="right"&&"columnHeader--alignRight",F&&"columnHeader--moving",D&&"columnHeader--withRightBorder",Y&&"columnHeader--withLeftBorder","withBorderColor",O===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",t==="left"&&"columnHeader--pinnedLeft",t==="right"&&"columnHeader--pinnedRight",j&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ki,r)};function Dye(e){var I;const{groupId:r,width:x,depth:F,maxDepth:j,fields:Y,height:D,colIndex:O,hasFocus:t,tabIndex:l,isLastColumn:S,pinnedPosition:i,style:C,indexInSection:w,sectionLength:v,gridHasFiller:m}=e,a=Wa(),n=Oe.useRef(null),s=mi(),o=va(s,qF),h=r?o[r]:{},{headerName:f=r??"",description:u="",headerAlign:b=void 0}=h;let p;const E=r&&((I=o[r])==null?void 0:I.renderHeaderGroup),g=Oe.useMemo(()=>({groupId:r,headerName:f,description:u,depth:F,maxDepth:j,fields:Y,colIndex:O,isLastColumn:S}),[r,f,u,F,j,Y,O,S]);r&&E&&(p=E(g));const c=KT(i,w),y=ZT(i,w,v,a.showCellVerticalBorder,m),A=Ge({},e,{classes:a.classes,showLeftBorder:c,showRightBorder:y,headerAlign:b,depth:F,isDragging:!1}),M=f??r,R=Ui(),T=r===null?`empty-group-cell-${R}`:r,L=kye(A);Oe.useLayoutEffect(()=>{if(t){const B=n.current.querySelector('[tabindex="0"]')||n.current;B==null||B.focus()}},[s,t]);const P=Oe.useCallback(N=>B=>{Nb(B)||s.current.publishEvent(N,g,B)},[s,g]),d=Oe.useMemo(()=>({onKeyDown:P("columnGroupHeaderKeyDown"),onFocus:P("columnGroupHeaderFocus"),onBlur:P("columnGroupHeaderBlur")}),[P]),k=typeof h.headerClassName=="function"?h.headerClassName(g):h.headerClassName;return Ce.jsx(d_,Ge({ref:n,classes:L,columnMenuOpen:!1,colIndex:O,height:D,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:l,isDraggable:!1,headerComponent:p,headerClassName:k,description:u,elementId:T,width:x,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:M,"aria-colspan":Y.length,"data-fields":`|-${Y.join("-|-")}-|`,style:C},d))}const mR=ln("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,r)=>r.columnHeaderRow})({display:"flex"}),Oye=e=>{const{visibleColumns:r,sortColumnLookup:x,filterColumnLookup:F,columnHeaderTabIndexState:j,columnGroupHeaderTabIndexState:Y,columnHeaderFocus:D,columnGroupHeaderFocus:O,headerGroupingMaxDepth:t,columnMenuState:l,columnVisibility:S,columnGroupsHeaderStructure:i,hasOtherElementInTabSequence:C}=e,[w,v]=Oe.useState(""),[m,a]=Oe.useState(""),n=gh(),s=nu(),o=Wa(),h=va(n,qu),f=va(n,t6),u=va(n,QF),b=va(n,Qp),p=va(n,Hhe),E=va(n,Fb),g=va(n,qp),c=n_(b,p,s.direction,E.left.length),y=h.columnsTotalWidth{n.current.columnHeadersContainerRef.current.scrollLeft=0},[n]);const A=Oe.useCallback(H=>a(H.field),[]),M=Oe.useCallback(()=>a(""),[]),R=Oe.useCallback(H=>v(H.field),[]),T=Oe.useCallback(()=>v(""),[]),L=Oe.useMemo(()=>E.left.length?{firstColumnIndex:0,lastColumnIndex:E.left.length}:null,[E.left.length]),P=Oe.useMemo(()=>E.right.length?{firstColumnIndex:r.length-E.right.length,lastColumnIndex:r.length}:null,[E.right.length,r.length]);Za(n,"columnResizeStart",A),Za(n,"columnResizeStop",M),Za(n,"columnHeaderDragStart",R),Za(n,"columnHeaderDragEnd",T);const d=H=>{const{renderContext:W=p,maxLastColumn:V=r.length}=H||{},$=f?W.firstColumnIndex:0,Z=f?W.lastColumnIndex:V;return{renderedColumns:r.slice($,Z),firstColumnToRender:$,lastColumnToRender:Z}},k=(H,W,V,$=!1)=>{const Z=(H==null?void 0:H.position)===Jo.RIGHT,q=(H==null?void 0:H.position)===void 0,ae=E.right.length>0&&Z||E.right.length===0&&q,ie=c-V;return Ce.jsxs(Oe.Fragment,{children:[q&&Ce.jsx("div",{role:"presentation",style:{width:ie}}),W,q&&Ce.jsx("div",{role:"presentation",className:Ln(Hr.filler,$&&Hr["filler--borderTop"])}),ae&&Ce.jsx(o6,{header:!0,borderTop:$,pinnedRight:Z})]})},I=({pinnedPosition:H,columnIndex:W,computedWidth:V})=>{let $;if(H==="left"||H==="right"){const Z=i6(H,V,W,b,h);H==="left"&&($={left:Z}),H==="right"&&($={right:Z})}return $},N=(H,W={})=>{const{renderedColumns:V,firstColumnToRender:$}=d(H),Z=[];for(let q=0;qCe.jsxs(mR,{role:"row","aria-rowindex":t+1,ownerState:o,className:g.top.length===0?Hr["row--borderBottom"]:void 0,children:[L&&N({position:Jo.LEFT,renderContext:L,minFirstColumn:L.firstColumnIndex,maxLastColumn:L.lastColumnIndex},{disableReorder:!0}),N({renderContext:p,minFirstColumn:E.left.length,maxLastColumn:r.length-E.right.length}),P&&N({position:Jo.RIGHT,renderContext:P,minFirstColumn:P.firstColumnIndex,maxLastColumn:P.lastColumnIndex},{disableReorder:!0,separatorSide:a6.Left})]}),G=({depth:H,params:W})=>{var he,xe;const V=d(W);if(V.renderedColumns.length===0)return null;const{renderedColumns:$,firstColumnToRender:Z,lastColumnToRender:q}=V,ae=i[H],ie=r[Z].field,fe=((he=u[ie])==null?void 0:he[H])??null,Q=ae.findIndex(({groupId:Ee,columnFields:Se})=>Ee===fe&&Se.includes(ie)),J=r[q-1].field,oe=((xe=u[J])==null?void 0:xe[H])??null,K=ae.findIndex(({groupId:Ee,columnFields:Se})=>Ee===oe&&Se.includes(J)),ne=ae.slice(Q,K+1).map(Ee=>Ge({},Ee,{columnFields:Ee.columnFields.filter(Se=>S[Se]!==!1)})).filter(Ee=>Ee.columnFields.length>0),ce=ne[0].columnFields.indexOf(ie),ee=ne[0].columnFields.slice(0,ce).reduce((Ee,Se)=>{const ke=n.current.getColumn(Se);return Ee+(ke.computedWidth??0)},0);let de=Z;const le=ne.map(({groupId:Ee,columnFields:Se},ke)=>{const Te=O!==null&&O.depth===H&&Se.includes(O.field),Ae=Y!==null&&Y.depth===H&&Se.includes(Y.field)?0:-1,be={groupId:Ee,width:Se.reduce((ze,$e)=>ze+n.current.getColumn($e).computedWidth,0),fields:Se,colIndex:de,hasFocus:Te,tabIndex:Ae},Ie=W.position,Ue=I({pinnedPosition:Ie,columnIndex:de,computedWidth:be.width});de+=Se.length;let Ne=ke;return Ie==="left"&&(Ne=de-1),Ce.jsx(Dye,{groupId:Ee,width:be.width,fields:be.fields,colIndex:be.colIndex,depth:H,isLastColumn:be.colIndex===r.length-be.fields.length,maxDepth:t,height:h.headerHeight,hasFocus:Te,tabIndex:Ae,pinnedPosition:Ie,style:Ue,indexInSection:Ne,sectionLength:$.length,gridHasFiller:y},ke)});return k(W,le,ee)};return{renderContext:p,leftRenderContext:L,rightRenderContext:P,pinnedColumns:E,visibleColumns:r,getCellOffsetStyle:I,getFillers:k,getColumnHeadersRow:B,getColumnsToRender:d,getColumnGroupHeadersRows:()=>{if(t===0)return null;const H=[];for(let W=0;W({role:"rowgroup"})}},Fye=["className"],_ye=e=>{const{classes:r}=e;return qn({root:["columnHeaders"]},ki,r)},zye=po("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,r)=>r.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Bye=Oe.forwardRef(function(r,x){const{className:F}=r,j=hn(r,Fye),Y=Wa(),D=_ye(Y);return Ce.jsx(zye,Ge({ref:x,className:Ln(F,D.root),ownerState:Y},j,{role:"presentation"}))}),Nye=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Uye=Oe.forwardRef(function(r,x){const{visibleColumns:F,sortColumnLookup:j,filterColumnLookup:Y,columnHeaderTabIndexState:D,columnGroupHeaderTabIndexState:O,columnHeaderFocus:t,columnGroupHeaderFocus:l,headerGroupingMaxDepth:S,columnMenuState:i,columnVisibility:C,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:v}=r,m=hn(r,Nye),{getInnerProps:a,getColumnHeadersRow:n,getColumnGroupHeadersRows:s}=Oye({visibleColumns:F,sortColumnLookup:j,filterColumnLookup:Y,columnHeaderTabIndexState:D,columnGroupHeaderTabIndexState:O,columnHeaderFocus:t,columnGroupHeaderFocus:l,headerGroupingMaxDepth:S,columnMenuState:i,columnVisibility:C,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:v});return Ce.jsxs(Bye,Ge({ref:x},m,a(),{children:[s(),n()]}))}),Hye=t0(Uye);function Vye(e){return null}function jye(e){return null}const Gye=Oe.forwardRef(function(r,x){const j=mi().current.getLocaleText("noResultsOverlayLabel");return Ce.jsx(n6,Ge({ref:x},r,{children:j}))}),Wye=["sortingOrder"],$ye=Oe.memo(function(r){const{sortingOrder:x}=r,F=hn(r,Wye),j=Wa(),[Y]=x,D=Y==="asc"?j.slots.columnSortedAscendingIcon:j.slots.columnSortedDescendingIcon;return D?Ce.jsx(D,Ge({},F)):null}),Yye=["native"];function Xye(e){let{native:r}=e,x=hn(e,Yye);return r?Ce.jsx("option",Ge({},x)):Ce.jsx(uo,Ge({},x))}const Zye={booleanCellTrueIcon:v0e,booleanCellFalseIcon:DC,columnMenuIcon:c0e,openFilterButtonIcon:n0e,filterPanelDeleteIcon:DC,columnFilteredIcon:eR,columnSelectorIcon:i0e,columnUnsortedIcon:$ye,columnSortedAscendingIcon:KI,columnSortedDescendingIcon:JI,columnResizeIcon:o0e,densityCompactIcon:s0e,densityStandardIcon:l0e,densityComfortableIcon:u0e,exportIcon:h0e,moreActionsIcon:p0e,treeDataCollapseIcon:qI,treeDataExpandIcon:QI,groupingCriteriaCollapseIcon:qI,groupingCriteriaExpandIcon:QI,detailPanelExpandIcon:tR,detailPanelCollapseIcon:f0e,rowReorderIcon:rR,quickFilterIcon:a0e,quickFilterClearIcon:DC,columnMenuHideIcon:g0e,columnMenuSortAscendingIcon:KI,columnMenuSortDescendingIcon:JI,columnMenuFilterIcon:eR,columnMenuManageColumnsIcon:m0e,columnMenuClearIcon:y0e,loadIcon:d0e,filterPanelAddIcon:tR,filterPanelRemoveAllIcon:x0e,columnReorderIcon:rR},Kye=Ge({},Zye,{baseCheckbox:D9,baseTextField:Ko,baseFormControl:oh,baseSelect:gd,baseButton:$i,baseIconButton:dl,baseInputAdornment:c5,baseTooltip:$9,basePopper:Xp,baseInputLabel:Py,baseSelectOption:Xye,baseChip:Qh}),Jye=Ge({},Kye,{cell:ape,skeletonCell:hpe,columnHeaderFilterIconButton:r0e,columnHeaderSortIcon:e0e,columnMenu:O0e,columnHeaders:Hye,detailPanels:Vye,footer:Vge,footerRowCount:ime,toolbar:null,pinnedRows:jye,loadingOverlay:Kge,noResultsOverlay:Gye,noRowsOverlay:Jge,pagination:tme,filterPanel:mge,columnsPanel:$0e,columnsManagement:p_,panel:J0e,row:cme});function Qye({defaultSlots:e,slots:r}){const x=r;if(!x||Object.keys(x).length===0)return e;const F=Ge({},e);return Object.keys(x).forEach(j=>{const Y=j;x[Y]!==void 0&&(F[Y]=x[Y])}),F}function qye(e){const r=Object.keys(e);if(!r.some(j=>j.startsWith("aria-")||j.startsWith("data-")))return e;const x={},F=e.forwardedProps??{};for(let j=0;jqye(e),[e])}const t1e={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},dM={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:vh.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0},r1e=Jye,n1e=e=>{const r=e1e(zo({props:e,name:"MuiDataGrid"})),x=Oe.useMemo(()=>Ge({},$ce,r.localeText),[r.localeText]),F=Oe.useMemo(()=>Qye({defaultSlots:r1e,slots:r.slots}),[r.slots]),j=Oe.useMemo(()=>Object.keys(dM).reduce((Y,D)=>(Y[D]=r[D]??dM[D],Y),{}),[r]);return Oe.useMemo(()=>Ge({},r,j,{localeText:x,slots:F},t1e),[r,x,F,j])},a1e=e=>Ge({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),yR=(e,r,x)=>typeof e=="number"&&e>0?e:r,i1e=(e,r)=>{const{getRowHeight:x,getRowSpacing:F,getEstimatedRowHeight:j}=r,Y=Oe.useRef(Object.create(null)),D=Oe.useRef(-1),O=Oe.useRef(!1),t=va(e,Db),l=va(e,cl),S=va(e,$T),i=va(e,ff),C=Ag(e,r),w=va(e,qp),v=yR(r.rowHeight,dM.rowHeight),m=Math.floor(v*t),a=Oe.useCallback(()=>{var R,T;O.current=!1;const y=L=>{Y.current[L.id]||(Y.current[L.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:P,needsFirstMeasurement:d,sizes:k}=Y.current[L.id];let I=typeof m=="number"&&m>0?m:52;const N=k.baseCenter;if(P)I=N;else if(x){const U=x(Ge({},L,{densityFactor:t}));U==="auto"?(d?I=(j?j(Ge({},L,{densityFactor:t})):m)??m:I=N,O.current=!0,Y.current[L.id].autoHeight=!0):(I=yR(U,m),Y.current[L.id].needsFirstMeasurement=!1,Y.current[L.id].autoHeight=!1)}else Y.current[L.id].needsFirstMeasurement=!1;const B={baseCenter:I};if(F){const U=e.current.getRowIndexRelativeToVisibleRows(L.id),H=F(Ge({},L,{isFirstVisible:U===0,isLastVisible:U===C.rows.length-1,indexRelativeToCurrentPage:U}));B.spacingTop=H.top??0,B.spacingBottom=H.bottom??0}const G=e.current.unstable_applyPipeProcessors("rowHeight",B,L);return Y.current[L.id].sizes=G,G},A=[],M=C.rows.reduce((L,P)=>{A.push(L);let d=0;const k=y(P);for(const I in k){const N=k[I];I!=="baseCenter"&&(d+=N)}return L+k.baseCenter+d},0);(R=w==null?void 0:w.top)==null||R.forEach(L=>{y(L)}),(T=w==null?void 0:w.bottom)==null||T.forEach(L=>{y(L)}),e.current.setState(L=>Ge({},L,{rowsMeta:{currentPageTotalHeight:M,positions:A}})),O.current||(D.current=1/0),e.current.forceUpdate()},[e,C.rows,m,x,F,j,w,t]),n=Oe.useCallback(y=>{const A=Y.current[y];return A?A.sizes.baseCenter:m},[m]),s=y=>{var A;return(A=Y.current[y])==null?void 0:A.sizes},o=Oe.useCallback((y,A)=>{Y.current[y].sizes.baseCenter=A,Y.current[y].isResized=!0,Y.current[y].needsFirstMeasurement=!1,a()},[a]),h=Oe.useMemo(()=>bg(a,r.rowPositionsDebounceMs),[a,r.rowPositionsDebounceMs]),f=Oe.useCallback((y,A)=>{if(!Y.current[y]||!Y.current[y].autoHeight)return;const M=Y.current[y].sizes.baseCenter!==A;Y.current[y].needsFirstMeasurement=!1,Y.current[y].sizes.baseCenter=A,M&&h()},[h]),u=Oe.useCallback(y=>{var A;return((A=Y.current[y])==null?void 0:A.autoHeight)||!1},[]),b=Oe.useCallback(()=>D.current,[]),p=Oe.useCallback(y=>{O.current&&y>D.current&&(D.current=y)},[]),E=Oe.useCallback(()=>{Y.current={},a()},[a]);Oe.useEffect(()=>{a()},[m,l,S,i,a]),u6(e,"rowHeight",a);const g={unstable_setLastMeasuredRowIndex:p,unstable_getRowHeight:n,unstable_getRowInternalSizes:s,unstable_setRowHeight:o,unstable_storeRowHeightMeasurement:f,resetRowHeights:E},c={getLastMeasuredRowIndex:b,rowHasAutoHeight:u};Mi(e,g,"public"),Mi(e,c,"private")},o1e=e=>{const r=Oe.useCallback((j={})=>e.current.unstable_applyPipeProcessors("exportState",{},j),[e]),x=Oe.useCallback(j=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:j}).callbacks.forEach(D=>{D()}),e.current.forceUpdate()},[e]);Mi(e,{exportState:r,restoreState:x},"public")},s1e=e=>{const r=Oe.useRef({}),x=(O,t)=>{var l;return(l=r.current[O])==null?void 0:l[t]},F=()=>{r.current={}},j=Oe.useCallback(({rowId:O,minFirstColumn:t,maxLastColumn:l,columns:S})=>{for(let i=t;i1&&(i+=C.colSpan-1)}},[e]),Y={unstable_getCellColSpanInfo:x},D={resetColSpan:F,calculateColSpan:j};Mi(e,Y,"public"),Mi(e,D,"private"),Za(e,"columnOrderChange",F)};function l1e(e){const{apiRef:r,lookup:x,columnIndex:F,rowId:j,minFirstColumnIndex:Y,maxLastColumnIndex:D,columns:O}=e,t=O.length,l=O[F],S=r.current.getRow(j),i=r.current.getRowValue(S,l),C=typeof l.colSpan=="function"?l.colSpan(i,S,l,r):l.colSpan;if(!C||C===1)return _C(x,j,F,{spannedByColSpan:!1,cellProps:{colSpan:1,width:l.computedWidth}}),{colSpan:1};let w=l.computedWidth;for(let v=1;v=Y&&m{if(AF(e)){if(x[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${x[e.field].join(" > ")}`,`- ${r.join(" > ")}`].join(` +`));x[e.field]=r;return}const{groupId:F,children:j}=e;j.forEach(Y=>{w_(Y,[...r,F],x)})},hM=e=>{if(!e)return{};const r={};return e.forEach(x=>{w_(x,[],r)}),r},vM=(e,r,x)=>{const F=t=>r[t]??[],j=[],Y=Math.max(...e.map(t=>F(t).length)),D=(t,l,S)=>Bp(F(t).slice(0,S+1),F(l).slice(0,S+1)),O=(t,l)=>!!(x!=null&&x.left&&x.left.includes(t)&&!x.left.includes(l)||x!=null&&x.right&&!x.right.includes(t)&&x.right.includes(l));for(let t=0;t{const C=F(i)[t]??null;if(S.length===0)return[{columnFields:[i],groupId:C}];const w=S[S.length-1],v=w.columnFields[w.columnFields.length-1];return w.groupId!==C||!D(v,i,t)||O(v,i)?[...S,{columnFields:[i],groupId:C}]:[...S.slice(0,S.length-1),{columnFields:[...w.columnFields,i],groupId:C}]},[]);j.push(l)}return j},u1e=["groupId","children"],c6=e=>{let r={};return e.forEach(x=>{if(AF(x))return;const{groupId:F,children:j}=x,Y=hn(x,u1e);if(!F)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const D=Ge({},Y,{groupId:F}),O=c6(j);if(O[F]!==void 0||r[F]!==void 0)throw new Error(`MUI X: The groupId ${F} is used multiple times in the columnGroupingModel.`);r=Ge({},r,O,{[F]:D})}),Ge({},r)},c1e=(e,r,x)=>{if(!r.columnGroupingModel)return e;const F=tv(x),j=Ob(x),Y=c6(r.columnGroupingModel??[]),D=hM(r.columnGroupingModel??[]),O=vM(F,D,x.current.state.pinnedColumns??{}),t=j.length===0?0:Math.max(...j.map(l=>{var S;return((S=D[l])==null?void 0:S.length)??0}));return Ge({},e,{columnGrouping:{lookup:Y,unwrappedGroupingModel:D,headerStructure:O,maxDepth:t}})},f1e=(e,r)=>{const x=Oe.useCallback(O=>QF(e)[O]??[],[e]),F=Oe.useCallback(()=>qF(e),[e]);Mi(e,{getColumnGroupPath:x,getAllGroupDetails:F},"public");const Y=Oe.useCallback(()=>{const O=hM(r.columnGroupingModel??[]);e.current.setState(t=>{var C;const l=((C=t.columns)==null?void 0:C.orderedFields)??[],S=t.pinnedColumns??{},i=vM(l,O,S);return Ge({},t,{columnGrouping:Ge({},t.columnGrouping,{headerStructure:i})})})},[e,r.columnGroupingModel]),D=Oe.useCallback(O=>{var m,a;const t=((a=(m=e.current).getPinnedColumns)==null?void 0:a.call(m))??{},l=tv(e),S=Ob(e),i=c6(O??[]),C=hM(O??[]),w=vM(l,C,t),v=S.length===0?0:Math.max(...S.map(n=>{var s;return((s=C[n])==null?void 0:s.length)??0}));e.current.setState(n=>Ge({},n,{columnGrouping:{lookup:i,unwrappedGroupingModel:C,headerStructure:w,maxDepth:v}}))},[e]);Za(e,"columnIndexChange",Y),Za(e,"columnsChange",()=>{D(r.columnGroupingModel)}),Za(e,"columnVisibilityModelChange",()=>{D(r.columnGroupingModel)}),Oe.useEffect(()=>{D(r.columnGroupingModel)},[D,r.columnGroupingModel])};function d1e(){let e,r;const x=new Promise((F,j)=>{e=F,r=j});return x.resolve=e,x.reject=r,x}function xR(e,r){if(r!==void 0&&e.changedTouches){for(let x=0;xt6(e),F=va(e,x);return Oe.useEffect(()=>{r.current&&F===!1&&(r.current.resolve(),r.current=void 0)}),()=>{if(!r.current){if(x()===!1)return Promise.resolve();r.current=d1e()}return r.current}}function m1e(e,r){if(e.length<4)return e;const x=e.slice();x.sort((O,t)=>O-t);const F=x[Math.floor(x.length*.25)],j=x[Math.floor(x.length*.75)-1],Y=j-F,D=Y<5?5:Y*r;return x.filter(O=>O>F-D&&O{const O=Qve(e.current,Y.field).map(v=>v.getBoundingClientRect().width??0),t=r.includeOutliers?O:m1e(O,r.outliersFactor);if(r.includeHeaders){const v=Jve(e.current,Y.field);if(v){const m=v.querySelector(`.${Hr.columnHeaderTitle}`),a=v.querySelector(`.${Hr.columnHeaderTitleContainerContent}`),n=v.querySelector(`.${Hr.iconButtonContainer}`),s=v.querySelector(`.${Hr.menuIcon}`),o=m??a,h=window.getComputedStyle(v,null),f=parseInt(h.paddingLeft,10)+parseInt(h.paddingRight,10),b=o.scrollWidth+1+f+((n==null?void 0:n.clientWidth)??0)+((s==null?void 0:s.clientWidth)??0);t.push(b)}}const l=Y.minWidth!==-1/0&&Y.minWidth!==void 0,S=Y.maxWidth!==1/0&&Y.maxWidth!==void 0,i=l?Y.minWidth:0,C=S?Y.maxWidth:1/0,w=t.length===0?0:Math.max(...t);F[Y.field]=fv(w,i,C)}),j.classList.remove(Hr.autosizing),F}const x1e=e=>Ge({},e,{columnResize:{resizingColumnField:""}});function b1e(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const w1e=(e,r)=>{const x=nu(),F=al(e,"useGridColumnResize"),j=wg(b1e).current,Y=Oe.useRef(),D=Oe.useRef(),O=Cc(),t=Oe.useRef(),l=E=>{var T,L;F.debug(`Updating width to ${E} for col ${j.colDef.field}`);const g=j.columnHeaderElement.offsetWidth,c=E-g,y=E-j.initialColWidth,A=j.initialTotalWidth+y;(L=(T=e.current.rootElementRef)==null?void 0:T.current)==null||L.style.setProperty("--DataGrid-rowWidth",`${A}px`),j.colDef.computedWidth=E,j.colDef.width=E,j.colDef.flex=0,j.columnHeaderElement.style.width=`${E}px`,j.columnHeaderElement.style.minWidth=`${E}px`,j.columnHeaderElement.style.maxWidth=`${E}px`;const M=j.headerFilterElement;M&&(M.style.width=`${E}px`,M.style.minWidth=`${E}px`,M.style.maxWidth=`${E}px`),j.groupHeaderElements.forEach(P=>{const d=P;let k;d.getAttribute("aria-colspan")==="1"?k=`${E}px`:k=`${d.offsetWidth+c}px`,d.style.width=k,d.style.minWidth=k,d.style.maxWidth=k}),j.cellElements.forEach(P=>{const d=P;let k;d.getAttribute("aria-colspan")==="1"?k=`${E}px`:k=`${d.offsetWidth+c}px`,d.style.setProperty("--width",k)});const R=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,j.colDef.field);R===Jo.LEFT&&(cm(j.fillerLeft,"width",c),j.leftPinnedCellsAfter.forEach(P=>{cm(P,"left",c)}),j.leftPinnedHeadersAfter.forEach(P=>{cm(P,"left",c)})),R===Jo.RIGHT&&(cm(j.fillerRight,"width",c),j.rightPinnedCellsBefore.forEach(P=>{cm(P,"right",c)}),j.rightPinnedHeadersBefore.forEach(P=>{cm(P,"right",c)}))},S=E=>{if(n(),j.previousMouseClickEvent){const g=j.previousMouseClickEvent,c=g.timeStamp,y=g.clientX,A=g.clientY;if(E.timeStamp-c<300&&E.clientX===y&&E.clientY===A){j.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,E);return}}if(j.colDef){e.current.setColumnWidth(j.colDef.field,j.colDef.width),F.debug(`Updating col ${j.colDef.field} with new width: ${j.colDef.width}`);const g=dh(e.current.state);j.groupHeaderElements.forEach(c=>{const y=Gve(c),A=c,R=`${y.reduce((T,L)=>g.columnVisibilityModel[L]!==!1?T+g.lookup[L].computedWidth:T,0)}px`;A.style.width=R,A.style.minWidth=R,A.style.maxWidth=R})}O.start(0,()=>{e.current.publishEvent("columnResizeStop",null,E)})},i=(E,g,c)=>{var R;const y=e.current.rootElementRef.current;j.initialColWidth=E.computedWidth,j.initialTotalWidth=e.current.getRootDimensions().rowWidth,j.colDef=E,j.columnHeaderElement=jve(e.current.columnHeadersContainerRef.current,E.field);const A=y.querySelector(`.${Hr.headerFilterRow} [data-field="${mv(E.field)}"]`);A&&(j.headerFilterElement=A),j.groupHeaderElements=Wve((R=e.current.columnHeadersContainerRef)==null?void 0:R.current,E.field),j.cellElements=$ve(j.columnHeaderElement,e.current),j.fillerLeft=GI(e.current,"filler--pinnedLeft"),j.fillerRight=GI(e.current,"filler--pinnedRight");const M=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,j.colDef.field);j.leftPinnedCellsAfter=M!==Jo.LEFT?[]:Yve(e.current,j.columnHeaderElement),j.rightPinnedCellsBefore=M!==Jo.RIGHT?[]:Xve(e.current,j.columnHeaderElement),j.leftPinnedHeadersAfter=M!==Jo.LEFT?[]:Zve(e.current,j.columnHeaderElement),j.rightPinnedHeadersBefore=M!==Jo.RIGHT?[]:Kve(e.current,j.columnHeaderElement),D.current=p1e(g,x.direction),Y.current=h1e(c,j.columnHeaderElement.getBoundingClientRect(),D.current)},C=pa(S),w=pa(E=>{if(E.buttons===0){C(E);return}let g=bR(Y.current,E.clientX,j.columnHeaderElement.getBoundingClientRect(),D.current);g=fv(g,j.colDef.minWidth,j.colDef.maxWidth),l(g);const c={element:j.columnHeaderElement,colDef:j.colDef,width:g};e.current.publishEvent("columnResize",c,E)}),v=pa(E=>{xR(E,t.current)&&S(E)}),m=pa(E=>{const g=xR(E,t.current);if(!g)return;if(E.type==="mousemove"&&E.buttons===0){v(E);return}let c=bR(Y.current,g.x,j.columnHeaderElement.getBoundingClientRect(),D.current);c=fv(c,j.colDef.minWidth,j.colDef.maxWidth),l(c);const y={element:j.columnHeaderElement,colDef:j.colDef,width:c};e.current.publishEvent("columnResize",y,E)}),a=pa(E=>{const g=x2(E.target,Hr["columnSeparator--resizable"]);if(!g)return;const c=E.changedTouches[0];c!=null&&(t.current=c.identifier);const y=x2(E.target,Hr.columnHeader),A=Vve(y),M=e.current.getColumn(A);F.debug(`Start Resize on col ${M.field}`),e.current.publishEvent("columnResizeStart",{field:A},E),i(M,g,c.clientX);const R=oo(E.currentTarget);R.addEventListener("touchmove",m),R.addEventListener("touchend",v)}),n=Oe.useCallback(()=>{const E=oo(e.current.rootElementRef.current);E.body.style.removeProperty("cursor"),E.removeEventListener("mousemove",w),E.removeEventListener("mouseup",C),E.removeEventListener("touchmove",m),E.removeEventListener("touchend",v),setTimeout(()=>{E.removeEventListener("click",wR,!0)},100),j.columnHeaderElement&&(j.columnHeaderElement.style.pointerEvents="unset")},[e,j,w,C,m,v]),s=Oe.useCallback(({field:E})=>{e.current.setState(g=>Ge({},g,{columnResize:Ge({},g.columnResize,{resizingColumnField:E})})),e.current.forceUpdate()},[e]),o=Oe.useCallback(()=>{e.current.setState(E=>Ge({},E,{columnResize:Ge({},E.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),h=pa(({colDef:E},g)=>{if(g.button!==0||!g.currentTarget.classList.contains(Hr["columnSeparator--resizable"]))return;g.preventDefault(),F.debug(`Start Resize on col ${E.field}`),e.current.publishEvent("columnResizeStart",{field:E.field},g),i(E,g.currentTarget,g.clientX);const c=oo(e.current.rootElementRef.current);c.body.style.cursor="col-resize",j.previousMouseClickEvent=g.nativeEvent,c.addEventListener("mousemove",w),c.addEventListener("mouseup",C),c.addEventListener("click",wR,!0)}),f=pa((E,g)=>{if(r.disableAutosize||g.button!==0)return;const c=e.current.state.columns.lookup[E.field];c.resizable!==!1&&e.current.autosizeColumns(Ge({},r.autosizeOptions,{columns:[c.field]}))}),u=g1e(e),b=Oe.useRef(!1),p=Oe.useCallback(async E=>{var M;if(!((M=e.current.rootElementRef)==null?void 0:M.current)||b.current)return;b.current=!0;const c=dh(e.current.state),y=Ge({},Pve,E,{columns:(E==null?void 0:E.columns)??c.orderedFields});y.columns=y.columns.filter(R=>c.columnVisibilityModel[R]!==!1);const A=y.columns.map(R=>e.current.state.columns.lookup[R]);try{e.current.unstable_setColumnVirtualization(!1),await u();const R=y1e(e,y,A),T=A.map(L=>Ge({},L,{width:R[L.field],computedWidth:R[L.field]}));if(y.expand){const P=c.orderedFields.map(I=>c.lookup[I]).filter(I=>c.columnVisibilityModel[I.field]!==!1).reduce((I,N)=>I+(R[N.field]??N.computedWidth??N.width),0),k=e.current.getRootDimensions().viewportInnerSize.width-P;if(k>0){const I=k/(T.length||1);T.forEach(N=>{N.width+=I,N.computedWidth+=I})}}e.current.updateColumns(T),T.forEach((L,P)=>{if(L.width!==A[P].width){const d=L.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(L.field),colDef:L,width:d})}})}finally{e.current.unstable_setColumnVirtualization(!0),b.current=!1}},[e,u]);Oe.useEffect(()=>n,[n]),gT(()=>{r.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(r.autosizeOptions)})}),HF(e,()=>{var E;return(E=e.current.columnHeadersContainerRef)==null?void 0:E.current},"touchstart",a,{passive:!0}),Mi(e,{autosizeColumns:p},"public"),Za(e,"columnResizeStop",o),Za(e,"columnResizeStart",s),Za(e,"columnSeparatorMouseDown",h),Za(e,"columnSeparatorDoubleClick",f),_o(e,"columnResize",r.onColumnResize),_o(e,"columnWidthChange",r.onColumnWidthChange)};function cm(e,r,x){e&&(e.style[r]=`${parseInt(e.style[r],10)+x}px`)}const T1e=(e,r)=>{const x=Ame(e,r);return wye(x,r),mye(x),Kl(Pye,x,r),Kl(yye,x,r),Kl(Ome,x,r),Kl(dye,x,r),Kl(cye,x,r),Kl(Xme,x,r),Kl(Tye,x,r),Kl(rye,x,r),Kl(Gme,x,r),Kl(_me,x,r),Kl(x1e,x,r),Kl(eye,x,r),Kl(a1e,x,r),Kl(kme,x,r),Kl(c1e,x,r),Kl(Vhe,x,r),Jme(x,r),xye(x,r),Fme(x,r),hye(x,r),qve(x),s1e(x),f1e(x,r),fye(x,r),Zme(x,r),nye(x,r),Yme(x,r),Sye(x,r),zme(x,r),w1e(x,r),tye(x,r),i1e(x,r),Cye(x,r),Dme(x),Nme(x,r),jme(x,r),Rme(x,r),Lye(x,r),Mye(x,r),o1e(x),jhe(x,r),x},T_=Oe.forwardRef(function(r,x){const F=n1e(r),j=T1e(F.apiRef,F);return Ce.jsx(fme,{privateApiRef:j,props:F,children:Ce.jsxs(xpe,Ge({className:F.className,style:F.style,sx:F.sx,ref:x},F.forwardedProps,{children:[Ce.jsx(Gge,{}),Ce.jsx(Fve,{}),Ce.jsx(_ve,{})]}))})}),rc=Oe.memo(T_);T_.propTypes={apiRef:_r.shape({current:_r.object.isRequired}),"aria-label":_r.string,"aria-labelledby":_r.string,autoHeight:_r.bool,autoPageSize:_r.bool,autosizeOnMount:_r.bool,autosizeOptions:_r.shape({columns:_r.arrayOf(_r.string),expand:_r.bool,includeHeaders:_r.bool,includeOutliers:_r.bool,outliersFactor:_r.number}),cellModesModel:_r.object,checkboxSelection:_r.bool,classes:_r.object,clipboardCopyCellDelimiter:_r.string,columnBufferPx:_r.number,columnGroupingModel:_r.arrayOf(_r.object),columnHeaderHeight:_r.number,columns:_r.arrayOf(_r.object).isRequired,columnVisibilityModel:_r.object,density:_r.oneOf(["comfortable","compact","standard"]),disableAutosize:_r.bool,disableColumnFilter:_r.bool,disableColumnMenu:_r.bool,disableColumnResize:_r.bool,disableColumnSelector:_r.bool,disableColumnSorting:_r.bool,disableDensitySelector:_r.bool,disableEval:_r.bool,disableMultipleRowSelection:_r.bool,disableRowSelectionOnClick:_r.bool,disableVirtualization:_r.bool,editMode:_r.oneOf(["cell","row"]),estimatedRowCount:_r.number,experimentalFeatures:_r.shape({warnIfFocusStateIsNotSynced:_r.bool}),filterDebounceMs:_r.number,filterMode:_r.oneOf(["client","server"]),filterModel:_r.shape({items:_r.arrayOf(_r.shape({field:_r.string.isRequired,id:_r.oneOfType([_r.number,_r.string]),operator:_r.string.isRequired,value:_r.any})).isRequired,logicOperator:_r.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:_r.bool,quickFilterLogicOperator:_r.oneOf(["and","or"]),quickFilterValues:_r.array}),forwardedProps:_r.object,getCellClassName:_r.func,getDetailPanelContent:_r.func,getEstimatedRowHeight:_r.func,getRowClassName:_r.func,getRowHeight:_r.func,getRowId:_r.func,getRowSpacing:_r.func,hideFooter:_r.bool,hideFooterPagination:_r.bool,hideFooterSelectedRowCount:_r.bool,ignoreDiacritics:_r.bool,ignoreValueFormatterDuringExport:_r.oneOfType([_r.shape({clipboardExport:_r.bool,csvExport:_r.bool}),_r.bool]),initialState:_r.object,isCellEditable:_r.func,isRowSelectable:_r.func,keepNonExistentRowsSelected:_r.bool,loading:_r.bool,localeText:_r.object,logger:_r.shape({debug:_r.func.isRequired,error:_r.func.isRequired,info:_r.func.isRequired,warn:_r.func.isRequired}),logLevel:_r.oneOf(["debug","error","info","warn",!1]),nonce:_r.string,onCellClick:_r.func,onCellDoubleClick:_r.func,onCellEditStart:_r.func,onCellEditStop:_r.func,onCellKeyDown:_r.func,onCellModesModelChange:_r.func,onClipboardCopy:_r.func,onColumnHeaderClick:_r.func,onColumnHeaderDoubleClick:_r.func,onColumnHeaderEnter:_r.func,onColumnHeaderLeave:_r.func,onColumnHeaderOut:_r.func,onColumnHeaderOver:_r.func,onColumnOrderChange:_r.func,onColumnResize:_r.func,onColumnVisibilityModelChange:_r.func,onColumnWidthChange:_r.func,onDensityChange:_r.func,onFilterModelChange:_r.func,onMenuClose:_r.func,onMenuOpen:_r.func,onPaginationMetaChange:_r.func,onPaginationModelChange:_r.func,onPreferencePanelClose:_r.func,onPreferencePanelOpen:_r.func,onProcessRowUpdateError:_r.func,onResize:_r.func,onRowClick:_r.func,onRowCountChange:_r.func,onRowDoubleClick:_r.func,onRowEditStart:_r.func,onRowEditStop:_r.func,onRowModesModelChange:_r.func,onRowSelectionModelChange:_r.func,onSortModelChange:_r.func,onStateChange:_r.func,pageSizeOptions:_r.arrayOf(_r.oneOfType([_r.number,_r.shape({label:_r.string.isRequired,value:_r.number.isRequired})]).isRequired),pagination:_r.oneOf([!0]),paginationMeta:_r.shape({hasNextPage:_r.bool}),paginationMode:_r.oneOf(["client","server"]),paginationModel:_r.shape({page:_r.number.isRequired,pageSize:_r.number.isRequired}),processRowUpdate:_r.func,resizeThrottleMs:_r.number,rowBufferPx:_r.number,rowCount:_r.number,rowHeight:_r.number,rowModesModel:_r.object,rowPositionsDebounceMs:_r.number,rows:_r.arrayOf(_r.object),rowSelection:_r.bool,rowSelectionModel:_r.oneOfType([_r.arrayOf(_r.oneOfType([_r.number,_r.string]).isRequired),_r.number,_r.string]),rowSpacingType:_r.oneOf(["border","margin"]),scrollbarSize:_r.number,showCellVerticalBorder:_r.bool,showColumnVerticalBorder:_r.bool,slotProps:_r.object,slots:_r.object,sortingMode:_r.oneOf(["client","server"]),sortingOrder:_r.arrayOf(_r.oneOf(["asc","desc"])),sortModel:_r.arrayOf(_r.shape({field:_r.string.isRequired,sort:_r.oneOf(["asc","desc"])})),sx:_r.oneOfType([_r.arrayOf(_r.oneOfType([_r.func,_r.object,_r.bool])),_r.func,_r.object])};const S1e=()=>{const{state:e,dispatch:r}=_5();return Oe.useEffect(()=>(r(f2(!0)),()=>{r(f2(!1))}),[]),Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:ju.pages.compare.title,description:ju.pages.compare.description,actions:Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"..",children:Ce.jsxs($i,{variant:"contained",startIcon:Ce.jsx(B5,{}),children:["Back to ",ju.properties.itemNamePlural]})})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../new",children:Ce.jsxs($i,{variant:"contained",children:["New ",ju.properties.itemName]})})})]}),sx:{padding:3,backgroundColor:"white"}}),Ce.jsx(Ks,{maxWidth:"xl",sx:{marginTop:3,marginBottom:3},children:Ce.jsx(Ri,{sx:{"& .MuiDataGrid-columnHeader, .MuiDataGrid-cell":{borderRight:"1px solid",borderRightColor:"neutral.main"},"& .compare-data--metric":{fontWeight:"bold"}},children:e.comparing&&Ce.jsx(rc,{rows:e.comparisonData,getRowId:x=>x.metric,columns:e.comparisonColumns,disableRowSelectionOnClick:!0,disableDensitySelector:!0,disableColumnFilter:!0})})})]})},C1e=Object.freeze(Object.defineProperty({__proto__:null,default:S1e},Symbol.toStringTag,{value:"Module"})),M1e=()=>{const{state:e,dispatch:r}=_5();return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:ju.pages.index.title,description:ju.pages.index.description,actions:Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsxs(Ii,{component:Ki,to:"compare",children:[e.selectedRows.length===0&&Ce.jsxs($i,{variant:"outlined",children:["Compare ",ju.properties.itemNamePlural]}),e.selectedRows.length>0&&Ce.jsxs($i,{variant:e.selectedRows.length>1?"contained":"outlined",children:["Compare ",ju.properties.itemNamePlural," (",e.selectedRows.length,")"]})]})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"new",children:Ce.jsxs($i,{variant:"contained",children:["New ",ju.properties.itemName]})})})]}),sx:{padding:3,backgroundColor:"white"}}),Ce.jsx(Ks,{maxWidth:"xl",sx:{marginTop:3,marginBottom:3},children:Ce.jsx(Ri,{children:Ce.jsx(rc,{rows:e.data,getRowId:x=>x[e.dataIdField],columns:e.columns,checkboxSelection:!0,rowSelectionModel:e.selectedRows,onRowSelectionModelChange:x=>r(Fce(x)),disableRowSelectionOnClick:!0,disableDensitySelector:!0,disableColumnFilter:!0,slots:{toolbar:zge},slotProps:{toolbar:{showQuickFilter:!0}},sx:{"& .MuiDataGrid-toolbarContainer":{padding:2,paddingBottom:0}}})})})]})},A1e=Object.freeze(Object.defineProperty({__proto__:null,default:M1e},Symbol.toStringTag,{value:"Module"})),TR=()=>{const{dispatch:e}=_5();return Oe.useEffect(()=>(e(f2(!0)),()=>{e(f2(!1))}),[]),Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:ju.pages.new.title,description:ju.pages.new.description,actions:Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"..",children:Ce.jsx($i,{variant:"contained",color:"warning",children:"Cancel"})})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"..",children:Ce.jsxs($i,{variant:"contained",children:["Save ",ju.properties.itemName]})})})]}),sx:{padding:3,backgroundColor:"white"}}),Ce.jsx(Ks,{maxWidth:"xl",sx:{marginTop:3,marginBottom:3},children:Ce.jsx(Ri,{sx:{padding:2},children:"Work in progress"})})]})},E1e=Object.freeze(Object.defineProperty({__proto__:null,NewScenario:TR,default:TR},Symbol.toStringTag,{value:"Module"}));var pM=(e=>(e.RUN_CHECKS="RUN_CHECKS",e.FINISH_CHECKS="FINISH_CHECKS",e))(pM||{});const P1e=()=>({type:"RUN_CHECKS"}),L1e=()=>({type:"FINISH_CHECKS"}),S_=jo.createContext(void 0),I1e={runningChecks:!1,checksComplete:!1};function R1e(e,r){switch(r.type){case pM.RUN_CHECKS:return{...e,runningChecks:!0};case pM.FINISH_CHECKS:return{...e,runningChecks:!1,checksComplete:!0};default:throw new Error(`Unhandled action type: ${r.type}`)}}const k1e=e=>{const[r,x]=jo.useReducer(R1e,I1e),F={state:r,dispatch:x};return Ce.jsx(S_.Provider,{value:F,children:e.children})},C_=()=>{const e=Oe.useContext(S_);if(e===void 0)throw new Error("useContributeData must be used within an ContributeDataProvider");return e},D1e=()=>Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(k1e,{children:Ce.jsx(Jp,{})})})]}),O1e=Object.freeze(Object.defineProperty({__proto__:null,default:D1e},Symbol.toStringTag,{value:"Module"})),jp=({rows:e,labelWidth:r=150,...x})=>Ce.jsx(X9,{size:"small","aria-label":"label value table",...x,children:Ce.jsx(Z9,{children:e==null?void 0:e.map((F,j)=>Ce.jsxs(J4,{sx:{border:0},children:[Ce.jsx(Kh,{width:r,component:"th",scope:"row",sx:{border:0,color:"neutral.dark",pl:0},children:F.label}),Ce.jsx(Kh,{align:"left",sx:{border:0,pl:0},children:F.value})]},`${F.label}-${j}`))})}),Np={data:{datasets:{source:"default/contribute-data/contributor_datasets.json",idField:"id"}},pages:{index:{title:"Register as a data contributor"},portal:{title:"Your Dataset Uploads",tableColumns:[{field:"title",headerName:"Dataset Title",width:200},{field:"category",headerName:"Category",width:200},{field:"summary",headerName:"Summary",width:200},{field:"doi",headerName:"DOI",width:200},{field:"publication_date",headerName:"Created Date",width:200},{field:"status",headerName:"Status",width:200}]},new:{title:"Upload a new dataset",description:"Description of this app section"},review:{title:"Review your new dataset"}}},F1e=()=>Ce.jsx(Ks,{maxWidth:"md",sx:{mt:4},children:Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsxs(La,{spacing:4,children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.index.title}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Description"}),Ce.jsxs(La,{children:[Ce.jsx(ea,{children:"Explain data contribution process in brief, with links to proper documentation of steps, requirements and guidelines if any. Link to documentation"}),Ce.jsx(ea,{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"})]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Summary of Steps"}),Ce.jsx(jp,{rows:[{label:"Step 1",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "},{label:"Step 2",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "},{label:"Step 3",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:2,children:"Registration Form"}),Ce.jsxs(La,{children:[Ce.jsx(Ko,{id:"email",label:"Email",variant:"outlined",fullWidth:!0}),Ce.jsx(Ko,{id:"first-name",label:"First Name",variant:"outlined",fullWidth:!0}),Ce.jsx(Ko,{id:"last-name",label:"Last Name",variant:"outlined",fullWidth:!0}),Ce.jsx(Ko,{id:"organization",label:"Organization",variant:"outlined",fullWidth:!0}),Ce.jsx(Ko,{id:"project-title",label:"Project Title",variant:"outlined",fullWidth:!0}),Ce.jsx(Ko,{id:"project-brief",label:"Project Brief",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4})]})]}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"portal",children:Ce.jsx($i,{variant:"contained",children:"Submit Registration"})})})]})})}),_1e=Object.freeze(Object.defineProperty({__proto__:null,default:F1e},Symbol.toStringTag,{value:"Module"}));var f6={},z1e=zl;Object.defineProperty(f6,"__esModule",{value:!0});var JT=f6.default=void 0,B1e=z1e(Cu()),N1e=Ce;JT=f6.default=(0,B1e.default)((0,N1e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var d6={},U1e=zl;Object.defineProperty(d6,"__esModule",{value:!0});var QT=d6.default=void 0,H1e=U1e(Cu()),V1e=Ce;QT=d6.default=(0,H1e.default)((0,V1e.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const j1e=()=>Ce.jsxs(Ri,{sx:{height:"100%"},children:[Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",justifyContent:"space-between",sx:{padding:2},children:[Ce.jsx(ea,{fontWeight:"bold",component:"h2",children:"Dataset Files"}),Ce.jsx($i,{variant:"contained",children:"Add Files"})]}),Ce.jsx(rc,{rows:M_,getRowId:e=>e.id,columns:G1e,disableColumnSelector:!0,disableRowSelectionOnClick:!0,sx:{height:"auto"}})]}),M_=[{id:0,filename:"xx",type:"csv",size:"213 MB",status:"Uploading"},{id:1,filename:"xy",type:"csv",size:"213 MB",status:"Uploading"},{id:2,filename:"xs",type:"csv",size:"213 MB",status:"Uploading"},{id:3,filename:"xe",type:"tsv",size:"2 GB",status:"Uploaded"},{id:4,filename:"xz",type:"txt",size:"15 MB",status:"Uploaded"}],G1e=[{field:"filename",headerName:"File Name",width:150},{field:"type",headerName:"Type",width:100},{field:"size",headerName:"Size",width:100},{field:"status",headerName:"Status",width:100},{field:"actions",headerName:"Actions",type:"actions",getActions:e=>[Ce.jsx(rv,{icon:Ce.jsx(QT,{}),label:"Edit"}),Ce.jsx(rv,{icon:Ce.jsx(JT,{}),label:"Delete"})],flex:1}],W1e=()=>{const[e,r]=Oe.useState(),[x,F]=Oe.useState(null),[j,Y]=Oe.useState(null),D=O=>{r(O.target.value)};return Ce.jsxs(Ri,{children:[Ce.jsx(oa,{sx:{padding:2,borderBottom:"1px solid",borderBottomColor:"neutral.main"},children:Ce.jsx(ea,{fontWeight:"bold",component:"h2",children:"Metadata"})}),Ce.jsxs(La,{direction:"row",spacing:0,children:[Ce.jsx(oa,{component:"aside",sx:{borderRight:"1px solid",borderRightColor:"neutral.main",width:"150px"},children:Ce.jsxs(d5,{children:[Ce.jsx(ex,{children:"Overview"}),Ce.jsx(ex,{children:"Dates"}),Ce.jsx(ex,{children:"Locations"}),Ce.jsx(ex,{children:"Methods"})]})}),Ce.jsx(oa,{sx:{padding:2},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{spacing:3,sx:{borderBottom:"1px solid",borderBottomColor:"neutral.main",paddingBottom:2},children:[Ce.jsx(ea,{color:"neutral.dark",fontWeight:"bold",children:"Overview"}),Ce.jsx(Ko,{label:"Dataset Title",variant:"outlined",helperText:"A brief, meaningful title for dataset including topic, dates and location. Ex: Sapflow and Soil Moisture Raw sensor data. Jan 2023-Apr 2023. San Diego, CA.",fullWidth:!0}),Ce.jsx(Ko,{label:"DOI",variant:"outlined",helperText:"Digital object identifier for the dataset",fullWidth:!0}),Ce.jsxs(oh,{children:[Ce.jsx(Py,{id:"demo-simple-select-helper-label",children:"Category"}),Ce.jsxs(gd,{labelId:"demo-simple-select-helper-label",id:"demo-simple-select-helper",value:e,label:"Category",onChange:D,children:[Ce.jsx(uo,{value:"Fires",children:"Fires"}),Ce.jsx(uo,{value:"Floods",children:"Floods"}),Ce.jsx(uo,{value:"Groundwater",children:"Groundwater"})]}),Ce.jsx(l5,{children:"Select the category most closely associeted with your dataset."})]}),Ce.jsx(Ko,{label:"Dataset Summary",variant:"outlined",helperText:"Briefly describe the dataset.",fullWidth:!0,multiline:!0,minRows:4})]}),Ce.jsxs(La,{spacing:3,sx:{borderBottom:"1px solid",borderBottomColor:"neutral.main",paddingBottom:2},children:[Ce.jsx(ea,{color:"neutral.dark",fontWeight:"bold",children:"Dates"}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(l2,{value:x,label:"Start Date",slotProps:{actionBar:{actions:["clear","today"]}},onChange:O=>F(O)}),Ce.jsx(l2,{value:j,label:"End Date",slotProps:{actionBar:{actions:["clear","today"]}},onChange:O=>Y(O)})]})]}),Ce.jsxs(La,{spacing:3,children:[Ce.jsx(ea,{color:"neutral.dark",fontWeight:"bold",children:"Contacts"}),Ce.jsx(Ko,{label:"Point of Contact",variant:"outlined",helperText:"Primary contact person for the dataset",fullWidth:!0}),Ce.jsx(Ko,{label:"Originator",variant:"outlined",helperText:"Primary originators for the dataset",fullWidth:!0}),Ce.jsx(Ko,{label:"Metadata Contact",variant:"outlined",helperText:"Contact person about metadata",fullWidth:!0}),Ce.jsx(Ko,{label:"Publisher",variant:"outlined",helperText:"Organization responsible for publishing for the dataset",fullWidth:!0})]})]})})]})]})},$1e=()=>Ce.jsx(Ks,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",justifyContent:"space-between",children:[Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.new.title}),Ce.jsx(ea,{children:Np.pages.new.description})]}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../portal",children:Ce.jsx($i,{variant:"contained",color:"warning",children:"Cancel"})})}),Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../review",children:Ce.jsx($i,{variant:"contained",sx:{whiteSpace:"nowrap"},children:"Save Dataset"})})})]})]}),Ce.jsx(oa,{children:Ce.jsxs(ji,{container:!0,spacing:2,children:[Ce.jsx(ji,{item:!0,lg:7,md:12,children:Ce.jsx(W1e,{})}),Ce.jsx(ji,{item:!0,lg:5,md:12,children:Ce.jsx(j1e,{})})]})})]})}),Y1e=Object.freeze(Object.defineProperty({__proto__:null,default:$1e},Symbol.toStringTag,{value:"Module"})),X1e=()=>{const e=fh(Np.data.datasets.source);return Ce.jsx(Ks,{maxWidth:"xl",sx:{mt:4},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.portal.title}),Ce.jsx(Ii,{component:Ki,to:"../new",children:Ce.jsx($i,{variant:"contained",children:"New Dataset"})})]}),Ce.jsx(Ri,{children:Ce.jsx(rc,{rows:e||[],getRowId:r=>r[Np.data.datasets.idField],columns:Z1e,disableColumnSelector:!0,disableRowSelectionOnClick:!0})})]})})},Z1e=[...Np.pages.portal.tableColumns,{field:"actions",headerName:"Actions",type:"actions",getActions:e=>[Ce.jsx(rv,{icon:Ce.jsx(QT,{}),label:"Edit"}),Ce.jsx(rv,{icon:Ce.jsx(JT,{}),label:"Delete"})],flex:1}],K1e=Object.freeze(Object.defineProperty({__proto__:null,default:X1e},Symbol.toStringTag,{value:"Module"}));var h6={},J1e=zl;Object.defineProperty(h6,"__esModule",{value:!0});var Ub=h6.default=void 0,Q1e=J1e(Cu()),q1e=Ce;Ub=h6.default=(0,Q1e.default)((0,q1e.jsx)("path",{d:"M19 6.41 17.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");const exe=()=>Ce.jsx(Ri,{sx:{height:"100%",padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{component:"h2",variant:"h6",children:"My Dataset"}),Ce.jsx(ea,{children:"Laboris incididunt ullamco dolore ex. Non ad aute cillum excepteur. Quis exercitation duis quis ad. Laborum eiusmod incididunt magna dolor eiusmod cupidatat non veniam sit consequat anim esse. Dolore fugiat incididunt et qui dolore dolor. Ut aute dolore magna ea commodo ullamco velit in aliquip sunt id ea."}),Ce.jsx(jp,{rows:[{label:"DOI",value:"http://dx.doi.org/10.123432/NGT/XXXXXXX"},{label:"Start Date",value:"1 January 2023"},{label:"End Date",value:"1 November 2023"},{label:"Category",value:"Groundwater"}]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{component:"h3",fontWeight:"bold",children:"Dataset Files"}),Ce.jsx(rc,{rows:M_,getRowId:e=>e.id,columns:txe,disableColumnSelector:!0,disableRowSelectionOnClick:!0})]})]})}),txe=[{field:"filename",headerName:"File Name",width:150},{field:"type",headerName:"Type",width:100},{field:"size",headerName:"Size",width:100},{field:"status",headerName:"Status",flex:1}],$1=e=>Ce.jsx(Pb,{variant:"determinate",sx:{height:10,borderRadius:5,[`&.${lL.colorPrimary}`]:{backgroundColor:"neutral.dark"},[`& .${lL.bar}`]:{borderRadius:5,backgroundColor:"success.light"}},...e}),rxe=()=>{const{state:e}=C_();return Ce.jsx(Ri,{sx:{height:"100%",padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{component:"h2",variant:"h6",children:"Validation Checks"}),Ce.jsx(ea,{children:"Running the dataset metadata and datafile against our standard set of metadata, data and congruency checks helps to validate the data and find potential issues with format or compatibility."}),Ce.jsx(ea,{children:"These checks help to improve discoverability and reusability of your research data, and also fastens the process of verifying the data for the public release."}),Ce.jsx(ea,{children:"We run checks to gauge the following aspects of uploaded dataset."}),e.runningChecks&&Ce.jsx(oa,{children:Ce.jsxs(La,{sx:{marginBottom:2,marginTop:2},children:[Ce.jsx(Pb,{}),Ce.jsx(ea,{variant:"body2",children:"Running validation checks"})]})}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{children:Ce.jsxs(La,{sx:{marginBottom:2,marginTop:2},children:[Ce.jsx($1,{value:90}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(ea,{variant:"body2",color:"success.main",children:"Passed: 22 checks"}),Ce.jsx(ea,{variant:"body2",color:"neutral.dark",children:"Warning: 2 checks"})]})]})}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Findability"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx($1,{value:100})})]}),Ce.jsx(ea,{children:"Occaecat commodo velit aliqua consectetur id tempor amet aliqua."}),e.runningChecks&&Ce.jsx(oa,{children:"Test"})]}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Accessibility"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx($1,{value:100})})]}),Ce.jsx(ea,{children:"Et labore aliqua proident velit exercitation ullamco ad deserunt velit commodo aliquip esse consectetur."})]}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Interoperability"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx($1,{value:90})})]}),Ce.jsx(ea,{children:"Ex deserunt Lorem enim adipisicing dolor esse voluptate exercitation."})]}),Ce.jsxs(oa,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[Ce.jsx(ea,{fontWeight:"bold",children:"Reusability"}),!e.runningChecks&&e.checksComplete&&Ce.jsx(oa,{sx:{width:"60%"},children:Ce.jsx($1,{value:90})})]}),Ce.jsx(ea,{children:"Nulla sint amet ullamco laborum cillum cupidatat irure excepteur mollit ut amet."})]})]})})},nxe=()=>{const[e,r]=Oe.useState(!0),{state:x,dispatch:F}=C_(),j=()=>{F(P1e()),setTimeout(()=>{F(L1e())},5e3)};return Ce.jsxs(oa,{children:[Ce.jsx(u9,{in:e,children:Ce.jsx(f9,{severity:"success",action:Ce.jsx(dl,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{r(!1)},children:Ce.jsx(Ub,{fontSize:"inherit"})}),sx:{paddingLeft:3,paddingRight:3},children:"Your dataset edits have been saved."})}),Ce.jsx(Ks,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",justifyContent:"space-between",children:[Ce.jsx(La,{children:Ce.jsx(ea,{variant:"h6",component:"h1",children:Np.pages.review.title})}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../new",children:Ce.jsx($i,{variant:"contained",sx:{whiteSpace:"nowrap"},children:"Edit Dataset"})})}),Ce.jsx(oa,{children:Ce.jsx($i,{variant:"contained",onClick:()=>j(),sx:{whiteSpace:"nowrap"},children:"Run Checks"})}),x.checksComplete&&Ce.jsx(oa,{children:Ce.jsx(Ii,{component:Ki,to:"../portal",children:Ce.jsx($i,{variant:"contained",sx:{whiteSpace:"nowrap"},children:"Publish Dataset"})})})]})]}),Ce.jsx(oa,{children:Ce.jsxs(ji,{container:!0,spacing:2,children:[Ce.jsx(ji,{item:!0,md:8,sm:12,children:Ce.jsx(exe,{})}),Ce.jsx(ji,{item:!0,md:4,sm:12,children:Ce.jsx(rxe,{})})]})})]})})]})},axe=Object.freeze(Object.defineProperty({__proto__:null,default:nxe},Symbol.toStringTag,{value:"Module"})),Gu={data:{list:{source:"data/default/explore-data/exoplanets.csv",staticParams:null,idField:"Id",queryMode:"client"},detail:{source:"data/default/explore-data/exoplanets.csv",staticParams:null,idField:"Id",queryMode:"client"}},pages:{index:{title:"Explore Data App",description:"Description of this app section",tableColumns:[{field:"Planet Name",headerName:"Planet Name",width:200},{field:"Planet Host",headerName:"Planet Host",width:200},{field:"Discovery Method",headerName:"Discovery Method",width:200},{field:"Orbital Period Days",headerName:"Orbital Period",units:"days",type:"number",width:200},{field:"Mass",headerName:"Mass",units:"Earth Mass",type:"number",width:200},{field:"Eccentricity",headerName:"Eccentricity",type:"number",width:200}],tableFilters:[{field:"Discovery Method",label:"Discovery Method",operator:"contains-one-of",filterComponent:"CheckboxList",filterProps:{options:[{label:"Astrometry",value:"Astrometry"},{label:"Disk Kinematics",value:"Disk Kinematics"},{label:"Eclipse Timing Variations",value:"Eclipse Timing Variations"},{label:"Imaging",value:"Imaging"},{label:"Microlensing",value:"Microlensing"},{label:"Radial Velocity",value:"Radial Velocity"},{label:"Transit",value:"Transit"}]}},{field:"Mass",label:"Mass",operator:"between-inclusive",filterComponent:"RangeSlider",filterProps:{min:0,max:1e4}}]}}};var Hb=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ky=typeof window>"u"||"Deno"in globalThis;function df(){}function ixe(e,r){return typeof e=="function"?e(r):e}function gM(e){return typeof e=="number"&&e>=0&&e!==1/0}function A_(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Jm(e,r){return typeof e=="function"?e(r):e}function pd(e,r){return typeof e=="function"?e(r):e}function SR(e,r){const{type:x="all",exact:F,fetchStatus:j,predicate:Y,queryKey:D,stale:O}=e;if(D){if(F){if(r.queryHash!==v6(D,r.options))return!1}else if(!ob(r.queryKey,D))return!1}if(x!=="all"){const t=r.isActive();if(x==="active"&&!t||x==="inactive"&&t)return!1}return!(typeof O=="boolean"&&r.isStale()!==O||j&&j!==r.state.fetchStatus||Y&&!Y(r))}function CR(e,r){const{exact:x,status:F,predicate:j,mutationKey:Y}=e;if(Y){if(!r.options.mutationKey)return!1;if(x){if(ib(r.options.mutationKey)!==ib(Y))return!1}else if(!ob(r.options.mutationKey,Y))return!1}return!(F&&r.state.status!==F||j&&!j(r))}function v6(e,r){return((r==null?void 0:r.queryKeyHashFn)||ib)(e)}function ib(e){return JSON.stringify(e,(r,x)=>yM(x)?Object.keys(x).sort().reduce((F,j)=>(F[j]=x[j],F),{}):x)}function ob(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?!Object.keys(r).some(x=>!ob(e[x],r[x])):!1}function E_(e,r){if(e===r)return e;const x=MR(e)&&MR(r);if(x||yM(e)&&yM(r)){const F=x?e:Object.keys(e),j=F.length,Y=x?r:Object.keys(r),D=Y.length,O=x?[]:{};let t=0;for(let l=0;l{setTimeout(r,e)})}function xM(e,r,x){return typeof x.structuralSharing=="function"?x.structuralSharing(e,r):x.structuralSharing!==!1?E_(e,r):r}function sxe(e){return e}function lxe(e,r,x=0){const F=[...e,r];return x&&F.length>x?F.slice(1):F}function uxe(e,r,x=0){const F=[r,...e];return x&&F.length>x?F.slice(0,-1):F}var P_=Symbol();function L_(e,r){return!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===P_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var W0,gp,qm,DR,cxe=(DR=class extends Hb{constructor(){super();Si(this,W0);Si(this,gp);Si(this,qm);oi(this,qm,r=>{if(!ky&&window.addEventListener){const x=()=>r();return window.addEventListener("visibilitychange",x,!1),()=>{window.removeEventListener("visibilitychange",x)}}})}onSubscribe(){En(this,gp)||this.setEventListener(En(this,qm))}onUnsubscribe(){var r;this.hasListeners()||((r=En(this,gp))==null||r.call(this),oi(this,gp,void 0))}setEventListener(r){var x;oi(this,qm,r),(x=En(this,gp))==null||x.call(this),oi(this,gp,r(F=>{typeof F=="boolean"?this.setFocused(F):this.onFocus()}))}setFocused(r){En(this,W0)!==r&&(oi(this,W0,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(x=>{x(r)})}isFocused(){var r;return typeof En(this,W0)=="boolean"?En(this,W0):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},W0=new WeakMap,gp=new WeakMap,qm=new WeakMap,DR),p6=new cxe,ey,mp,ty,OR,fxe=(OR=class extends Hb{constructor(){super();Si(this,ey,!0);Si(this,mp);Si(this,ty);oi(this,ty,r=>{if(!ky&&window.addEventListener){const x=()=>r(!0),F=()=>r(!1);return window.addEventListener("online",x,!1),window.addEventListener("offline",F,!1),()=>{window.removeEventListener("online",x),window.removeEventListener("offline",F)}}})}onSubscribe(){En(this,mp)||this.setEventListener(En(this,ty))}onUnsubscribe(){var r;this.hasListeners()||((r=En(this,mp))==null||r.call(this),oi(this,mp,void 0))}setEventListener(r){var x;oi(this,ty,r),(x=En(this,mp))==null||x.call(this),oi(this,mp,r(this.setOnline.bind(this)))}setOnline(r){En(this,ey)!==r&&(oi(this,ey,r),this.listeners.forEach(F=>{F(r)}))}isOnline(){return En(this,ey)}},ey=new WeakMap,mp=new WeakMap,ty=new WeakMap,OR),w2=new fxe;function dxe(e){return Math.min(1e3*2**e,3e4)}function I_(e){return(e??"online")==="online"?w2.isOnline():!0}var R_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zC(e){return e instanceof R_}function k_(e){let r=!1,x=0,F=!1,j,Y,D;const O=new Promise((n,s)=>{Y=n,D=s}),t=n=>{var s;F||(v(new R_(n)),(s=e.abort)==null||s.call(e))},l=()=>{r=!0},S=()=>{r=!1},i=()=>p6.isFocused()&&(e.networkMode==="always"||w2.isOnline())&&e.canRun(),C=()=>I_(e.networkMode)&&e.canRun(),w=n=>{var s;F||(F=!0,(s=e.onSuccess)==null||s.call(e,n),j==null||j(),Y(n))},v=n=>{var s;F||(F=!0,(s=e.onError)==null||s.call(e,n),j==null||j(),D(n))},m=()=>new Promise(n=>{var s;j=o=>{(F||i())&&n(o)},(s=e.onPause)==null||s.call(e)}).then(()=>{var n;j=void 0,F||(n=e.onContinue)==null||n.call(e)}),a=()=>{if(F)return;let n;const s=x===0?e.initialPromise:void 0;try{n=s??e.fn()}catch(o){n=Promise.reject(o)}Promise.resolve(n).then(w).catch(o=>{var p;if(F)return;const h=e.retry??(ky?0:3),f=e.retryDelay??dxe,u=typeof f=="function"?f(x,o):f,b=h===!0||typeof h=="number"&&xi()?void 0:m()).then(()=>{r?v(o):a()})})};return{promise:O,cancel:t,continue:()=>(j==null||j(),O),cancelRetry:l,continueRetry:S,canStart:C,start:()=>(C()?a():m().then(a),O)}}function hxe(){let e=[],r=0,x=C=>{C()},F=C=>{C()},j=C=>setTimeout(C,0);const Y=C=>{j=C},D=C=>{let w;r++;try{w=C()}finally{r--,r||l()}return w},O=C=>{r?e.push(C):j(()=>{x(C)})},t=C=>(...w)=>{O(()=>{C(...w)})},l=()=>{const C=e;e=[],C.length&&j(()=>{F(()=>{C.forEach(w=>{x(w)})})})};return{batch:D,batchCalls:t,schedule:O,setNotifyFunction:C=>{x=C},setBatchNotifyFunction:C=>{F=C},setScheduler:Y}}var kl=hxe(),$0,FR,D_=(FR=class{constructor(){Si(this,$0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gM(this.gcTime)&&oi(this,$0,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ky?1/0:5*60*1e3))}clearGcTimeout(){En(this,$0)&&(clearTimeout(En(this,$0)),oi(this,$0,void 0))}},$0=new WeakMap,FR),ry,ny,of,Ql,sb,Y0,fd,Gh,_R,vxe=(_R=class extends D_{constructor(r){super();Si(this,fd);Si(this,ry);Si(this,ny);Si(this,of);Si(this,Ql);Si(this,sb);Si(this,Y0);oi(this,Y0,!1),oi(this,sb,r.defaultOptions),this.setOptions(r.options),this.observers=[],oi(this,of,r.cache),this.queryKey=r.queryKey,this.queryHash=r.queryHash,oi(this,ry,pxe(this.options)),this.state=r.state??En(this,ry),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=En(this,Ql))==null?void 0:r.promise}setOptions(r){this.options={...En(this,sb),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&En(this,of).remove(this)}setData(r,x){const F=xM(this.state.data,r,this.options);return to(this,fd,Gh).call(this,{data:F,type:"success",dataUpdatedAt:x==null?void 0:x.updatedAt,manual:x==null?void 0:x.manual}),F}setState(r,x){to(this,fd,Gh).call(this,{type:"setState",state:r,setStateOptions:x})}cancel(r){var F,j;const x=(F=En(this,Ql))==null?void 0:F.promise;return(j=En(this,Ql))==null||j.cancel(r),x?x.then(df).catch(df):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(En(this,ry))}isActive(){return this.observers.some(r=>pd(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!A_(this.state.dataUpdatedAt,r)}onFocus(){var x;const r=this.observers.find(F=>F.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(x=En(this,Ql))==null||x.continue()}onOnline(){var x;const r=this.observers.find(F=>F.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(x=En(this,Ql))==null||x.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),En(this,of).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(x=>x!==r),this.observers.length||(En(this,Ql)&&(En(this,Y0)?En(this,Ql).cancel({revert:!0}):En(this,Ql).cancelRetry()),this.scheduleGc()),En(this,of).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||to(this,fd,Gh).call(this,{type:"invalidate"})}fetch(r,x){var t,l,S;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(x!=null&&x.cancelRefetch))this.cancel({silent:!0});else if(En(this,Ql))return En(this,Ql).continueRetry(),En(this,Ql).promise}if(r&&this.setOptions(r),!this.options.queryFn){const i=this.observers.find(C=>C.options.queryFn);i&&this.setOptions(i.options)}const F=new AbortController,j=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(oi(this,Y0,!0),F.signal)})},Y=()=>{const i=L_(this.options,x),C={queryKey:this.queryKey,meta:this.meta};return j(C),oi(this,Y0,!1),this.options.persister?this.options.persister(i,C,this):i(C)},D={fetchOptions:x,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:Y};j(D),(t=this.options.behavior)==null||t.onFetch(D,this),oi(this,ny,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=D.fetchOptions)==null?void 0:l.meta))&&to(this,fd,Gh).call(this,{type:"fetch",meta:(S=D.fetchOptions)==null?void 0:S.meta});const O=i=>{var C,w,v,m;zC(i)&&i.silent||to(this,fd,Gh).call(this,{type:"error",error:i}),zC(i)||((w=(C=En(this,of).config).onError)==null||w.call(C,i,this),(m=(v=En(this,of).config).onSettled)==null||m.call(v,this.state.data,i,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return oi(this,Ql,k_({initialPromise:x==null?void 0:x.initialPromise,fn:D.fetchFn,abort:F.abort.bind(F),onSuccess:i=>{var C,w,v,m;if(i===void 0){O(new Error(`${this.queryHash} data is undefined`));return}this.setData(i),(w=(C=En(this,of).config).onSuccess)==null||w.call(C,i,this),(m=(v=En(this,of).config).onSettled)==null||m.call(v,i,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:O,onFail:(i,C)=>{to(this,fd,Gh).call(this,{type:"failed",failureCount:i,error:C})},onPause:()=>{to(this,fd,Gh).call(this,{type:"pause"})},onContinue:()=>{to(this,fd,Gh).call(this,{type:"continue"})},retry:D.options.retry,retryDelay:D.options.retryDelay,networkMode:D.options.networkMode,canRun:()=>!0})),En(this,Ql).start()}},ry=new WeakMap,ny=new WeakMap,of=new WeakMap,Ql=new WeakMap,sb=new WeakMap,Y0=new WeakMap,fd=new WeakSet,Gh=function(r){const x=F=>{switch(r.type){case"failed":return{...F,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...F,fetchStatus:"paused"};case"continue":return{...F,fetchStatus:"fetching"};case"fetch":return{...F,...O_(F.data,this.options),fetchMeta:r.meta??null};case"success":return{...F,data:r.data,dataUpdateCount:F.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const j=r.error;return zC(j)&&j.revert&&En(this,ny)?{...En(this,ny),fetchStatus:"idle"}:{...F,error:j,errorUpdateCount:F.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:F.fetchFailureCount+1,fetchFailureReason:j,fetchStatus:"idle",status:"error"};case"invalidate":return{...F,isInvalidated:!0};case"setState":return{...F,...r.state}}};this.state=x(this.state),kl.batch(()=>{this.observers.forEach(F=>{F.onQueryUpdate()}),En(this,of).notify({query:this,type:"updated",action:r})})},_R);function O_(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:I_(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pxe(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,x=r!==void 0,F=x?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:x?F??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:x?"success":"pending",fetchStatus:"idle"}}var Jd,zR,gxe=(zR=class extends Hb{constructor(r={}){super();Si(this,Jd);this.config=r,oi(this,Jd,new Map)}build(r,x,F){const j=x.queryKey,Y=x.queryHash??v6(j,x);let D=this.get(Y);return D||(D=new vxe({cache:this,queryKey:j,queryHash:Y,options:r.defaultQueryOptions(x),state:F,defaultOptions:r.getQueryDefaults(j)}),this.add(D)),D}add(r){En(this,Jd).has(r.queryHash)||(En(this,Jd).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const x=En(this,Jd).get(r.queryHash);x&&(r.destroy(),x===r&&En(this,Jd).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){kl.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return En(this,Jd).get(r)}getAll(){return[...En(this,Jd).values()]}find(r){const x={exact:!0,...r};return this.getAll().find(F=>SR(x,F))}findAll(r={}){const x=this.getAll();return Object.keys(r).length>0?x.filter(F=>SR(r,F)):x}notify(r){kl.batch(()=>{this.listeners.forEach(x=>{x(r)})})}onFocus(){kl.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){kl.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Jd=new WeakMap,zR),Qd,vu,X0,qd,lp,BR,mxe=(BR=class extends D_{constructor(r){super();Si(this,qd);Si(this,Qd);Si(this,vu);Si(this,X0);this.mutationId=r.mutationId,oi(this,vu,r.mutationCache),oi(this,Qd,[]),this.state=r.state||yxe(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){En(this,Qd).includes(r)||(En(this,Qd).push(r),this.clearGcTimeout(),En(this,vu).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){oi(this,Qd,En(this,Qd).filter(x=>x!==r)),this.scheduleGc(),En(this,vu).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){En(this,Qd).length||(this.state.status==="pending"?this.scheduleGc():En(this,vu).remove(this))}continue(){var r;return((r=En(this,X0))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h,f,u,b;oi(this,X0,k_({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(p,E)=>{to(this,qd,lp).call(this,{type:"failed",failureCount:p,error:E})},onPause:()=>{to(this,qd,lp).call(this,{type:"pause"})},onContinue:()=>{to(this,qd,lp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>En(this,vu).canRun(this)}));const x=this.state.status==="pending",F=!En(this,X0).canStart();try{if(!x){to(this,qd,lp).call(this,{type:"pending",variables:r,isPaused:F}),await((Y=(j=En(this,vu).config).onMutate)==null?void 0:Y.call(j,r,this));const E=await((O=(D=this.options).onMutate)==null?void 0:O.call(D,r));E!==this.state.context&&to(this,qd,lp).call(this,{type:"pending",context:E,variables:r,isPaused:F})}const p=await En(this,X0).start();return await((l=(t=En(this,vu).config).onSuccess)==null?void 0:l.call(t,p,r,this.state.context,this)),await((i=(S=this.options).onSuccess)==null?void 0:i.call(S,p,r,this.state.context)),await((w=(C=En(this,vu).config).onSettled)==null?void 0:w.call(C,p,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,p,null,r,this.state.context)),to(this,qd,lp).call(this,{type:"success",data:p}),p}catch(p){try{throw await((n=(a=En(this,vu).config).onError)==null?void 0:n.call(a,p,r,this.state.context,this)),await((o=(s=this.options).onError)==null?void 0:o.call(s,p,r,this.state.context)),await((f=(h=En(this,vu).config).onSettled)==null?void 0:f.call(h,void 0,p,this.state.variables,this.state.context,this)),await((b=(u=this.options).onSettled)==null?void 0:b.call(u,void 0,p,r,this.state.context)),p}finally{to(this,qd,lp).call(this,{type:"error",error:p})}}finally{En(this,vu).runNext(this)}}},Qd=new WeakMap,vu=new WeakMap,X0=new WeakMap,qd=new WeakSet,lp=function(r){const x=F=>{switch(r.type){case"failed":return{...F,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...F,isPaused:!0};case"continue":return{...F,isPaused:!1};case"pending":return{...F,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...F,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...F,data:void 0,error:r.error,failureCount:F.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=x(this.state),kl.batch(()=>{En(this,Qd).forEach(F=>{F.onMutationUpdate(r)}),En(this,vu).notify({mutation:this,type:"updated",action:r})})},BR);function yxe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gc,lb,NR,xxe=(NR=class extends Hb{constructor(r={}){super();Si(this,gc);Si(this,lb);this.config=r,oi(this,gc,new Map),oi(this,lb,Date.now())}build(r,x,F){const j=new mxe({mutationCache:this,mutationId:++mw(this,lb)._,options:r.defaultMutationOptions(x),state:F});return this.add(j),j}add(r){const x=e3(r),F=En(this,gc).get(x)??[];F.push(r),En(this,gc).set(x,F),this.notify({type:"added",mutation:r})}remove(r){var F;const x=e3(r);if(En(this,gc).has(x)){const j=(F=En(this,gc).get(x))==null?void 0:F.filter(Y=>Y!==r);j&&(j.length===0?En(this,gc).delete(x):En(this,gc).set(x,j))}this.notify({type:"removed",mutation:r})}canRun(r){var F;const x=(F=En(this,gc).get(e3(r)))==null?void 0:F.find(j=>j.state.status==="pending");return!x||x===r}runNext(r){var F;const x=(F=En(this,gc).get(e3(r)))==null?void 0:F.find(j=>j!==r&&j.state.isPaused);return(x==null?void 0:x.continue())??Promise.resolve()}clear(){kl.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}getAll(){return[...En(this,gc).values()].flat()}find(r){const x={exact:!0,...r};return this.getAll().find(F=>CR(x,F))}findAll(r={}){return this.getAll().filter(x=>CR(r,x))}notify(r){kl.batch(()=>{this.listeners.forEach(x=>{x(r)})})}resumePausedMutations(){const r=this.getAll().filter(x=>x.state.isPaused);return kl.batch(()=>Promise.all(r.map(x=>x.continue().catch(df))))}},gc=new WeakMap,lb=new WeakMap,NR);function e3(e){var r;return((r=e.options.scope)==null?void 0:r.id)??String(e.mutationId)}function bxe(e){return{onFetch:(r,x)=>{const F=async()=>{var v,m,a,n,s;const j=r.options,Y=(a=(m=(v=r.fetchOptions)==null?void 0:v.meta)==null?void 0:m.fetchMore)==null?void 0:a.direction,D=((n=r.state.data)==null?void 0:n.pages)||[],O=((s=r.state.data)==null?void 0:s.pageParams)||[],t={pages:[],pageParams:[]};let l=!1;const S=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(r.signal.aborted?l=!0:r.signal.addEventListener("abort",()=>{l=!0}),r.signal)})},i=L_(r.options,r.fetchOptions),C=async(o,h,f)=>{if(l)return Promise.reject();if(h==null&&o.pages.length)return Promise.resolve(o);const u={queryKey:r.queryKey,pageParam:h,direction:f?"backward":"forward",meta:r.options.meta};S(u);const b=await i(u),{maxPages:p}=r.options,E=f?uxe:lxe;return{pages:E(o.pages,b,p),pageParams:E(o.pageParams,h,p)}};let w;if(Y&&D.length){const o=Y==="backward",h=o?wxe:ER,f={pages:D,pageParams:O},u=h(j,f);w=await C(f,u,o)}else{w=await C(t,O[0]??j.initialPageParam);const o=e??D.length;for(let h=1;h{var j,Y;return(Y=(j=r.options).persister)==null?void 0:Y.call(j,F,{queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},x)}:r.fetchFn=F}}}function ER(e,{pages:r,pageParams:x}){const F=r.length-1;return r.length>0?e.getNextPageParam(r[F],r,x[F],x):void 0}function wxe(e,{pages:r,pageParams:x}){var F;return r.length>0?(F=e.getPreviousPageParam)==null?void 0:F.call(e,r[0],r,x[0],x):void 0}var Es,yp,xp,ay,iy,bp,oy,sy,UR,Txe=(UR=class{constructor(e={}){Si(this,Es);Si(this,yp);Si(this,xp);Si(this,ay);Si(this,iy);Si(this,bp);Si(this,oy);Si(this,sy);oi(this,Es,e.queryCache||new gxe),oi(this,yp,e.mutationCache||new xxe),oi(this,xp,e.defaultOptions||{}),oi(this,ay,new Map),oi(this,iy,new Map),oi(this,bp,0)}mount(){mw(this,bp)._++,En(this,bp)===1&&(oi(this,oy,p6.subscribe(async e=>{e&&(await this.resumePausedMutations(),En(this,Es).onFocus())})),oi(this,sy,w2.subscribe(async e=>{e&&(await this.resumePausedMutations(),En(this,Es).onOnline())})))}unmount(){var e,r;mw(this,bp)._--,En(this,bp)===0&&((e=En(this,oy))==null||e.call(this),oi(this,oy,void 0),(r=En(this,sy))==null||r.call(this),oi(this,sy,void 0))}isFetching(e){return En(this,Es).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return En(this,yp).findAll({...e,status:"pending"}).length}getQueryData(e){var x;const r=this.defaultQueryOptions({queryKey:e});return(x=En(this,Es).get(r.queryHash))==null?void 0:x.state.data}ensureQueryData(e){const r=this.getQueryData(e.queryKey);if(r===void 0)return this.fetchQuery(e);{const x=this.defaultQueryOptions(e),F=En(this,Es).build(this,x);return e.revalidateIfStale&&F.isStaleByTime(Jm(x.staleTime,F))&&this.prefetchQuery(x),Promise.resolve(r)}}getQueriesData(e){return En(this,Es).findAll(e).map(({queryKey:r,state:x})=>{const F=x.data;return[r,F]})}setQueryData(e,r,x){const F=this.defaultQueryOptions({queryKey:e}),j=En(this,Es).get(F.queryHash),Y=j==null?void 0:j.state.data,D=ixe(r,Y);if(D!==void 0)return En(this,Es).build(this,F).setData(D,{...x,manual:!0})}setQueriesData(e,r,x){return kl.batch(()=>En(this,Es).findAll(e).map(({queryKey:F})=>[F,this.setQueryData(F,r,x)]))}getQueryState(e){var x;const r=this.defaultQueryOptions({queryKey:e});return(x=En(this,Es).get(r.queryHash))==null?void 0:x.state}removeQueries(e){const r=En(this,Es);kl.batch(()=>{r.findAll(e).forEach(x=>{r.remove(x)})})}resetQueries(e,r){const x=En(this,Es),F={type:"active",...e};return kl.batch(()=>(x.findAll(e).forEach(j=>{j.reset()}),this.refetchQueries(F,r)))}cancelQueries(e={},r={}){const x={revert:!0,...r},F=kl.batch(()=>En(this,Es).findAll(e).map(j=>j.cancel(x)));return Promise.all(F).then(df).catch(df)}invalidateQueries(e={},r={}){return kl.batch(()=>{if(En(this,Es).findAll(e).forEach(F=>{F.invalidate()}),e.refetchType==="none")return Promise.resolve();const x={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(x,r)})}refetchQueries(e={},r){const x={...r,cancelRefetch:(r==null?void 0:r.cancelRefetch)??!0},F=kl.batch(()=>En(this,Es).findAll(e).filter(j=>!j.isDisabled()).map(j=>{let Y=j.fetch(void 0,x);return x.throwOnError||(Y=Y.catch(df)),j.state.fetchStatus==="paused"?Promise.resolve():Y}));return Promise.all(F).then(df)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const x=En(this,Es).build(this,r);return x.isStaleByTime(Jm(r.staleTime,x))?x.fetch(r):Promise.resolve(x.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(df).catch(df)}fetchInfiniteQuery(e){return e.behavior=bxe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(df).catch(df)}resumePausedMutations(){return w2.isOnline()?En(this,yp).resumePausedMutations():Promise.resolve()}getQueryCache(){return En(this,Es)}getMutationCache(){return En(this,yp)}getDefaultOptions(){return En(this,xp)}setDefaultOptions(e){oi(this,xp,e)}setQueryDefaults(e,r){En(this,ay).set(ib(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...En(this,ay).values()];let x={};return r.forEach(F=>{ob(e,F.queryKey)&&(x={...x,...F.defaultOptions})}),x}setMutationDefaults(e,r){En(this,iy).set(ib(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...En(this,iy).values()];let x={};return r.forEach(F=>{ob(e,F.mutationKey)&&(x={...x,...F.defaultOptions})}),x}defaultQueryOptions(e){if(e._defaulted)return e;const r={...En(this,xp).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=v6(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.enabled!==!0&&r.queryFn===P_&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...En(this,xp).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){En(this,Es).clear(),En(this,yp).clear()}},Es=new WeakMap,yp=new WeakMap,xp=new WeakMap,ay=new WeakMap,iy=new WeakMap,bp=new WeakMap,oy=new WeakMap,sy=new WeakMap,UR),Uu,ro,ub,pu,Z0,ly,eh,cb,uy,cy,K0,J0,wp,fy,To,ax,bM,wM,TM,SM,CM,MM,AM,F_,HR,Sxe=(HR=class extends Hb{constructor(r,x){super();Si(this,To);Si(this,Uu);Si(this,ro);Si(this,ub);Si(this,pu);Si(this,Z0);Si(this,ly);Si(this,eh);Si(this,cb);Si(this,uy);Si(this,cy);Si(this,K0);Si(this,J0);Si(this,wp);Si(this,fy,new Set);this.options=x,oi(this,Uu,r),oi(this,eh,null),this.bindMethods(),this.setOptions(x)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(En(this,ro).addObserver(this),PR(En(this,ro),this.options)?to(this,To,ax).call(this):this.updateResult(),to(this,To,SM).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return EM(En(this,ro),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return EM(En(this,ro),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,to(this,To,CM).call(this),to(this,To,MM).call(this),En(this,ro).removeObserver(this)}setOptions(r,x){const F=this.options,j=En(this,ro);if(this.options=En(this,Uu).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pd(this.options.enabled,En(this,ro))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");to(this,To,AM).call(this),En(this,ro).setOptions(this.options),F._defaulted&&!mM(this.options,F)&&En(this,Uu).getQueryCache().notify({type:"observerOptionsUpdated",query:En(this,ro),observer:this});const Y=this.hasListeners();Y&&LR(En(this,ro),j,this.options,F)&&to(this,To,ax).call(this),this.updateResult(x),Y&&(En(this,ro)!==j||pd(this.options.enabled,En(this,ro))!==pd(F.enabled,En(this,ro))||Jm(this.options.staleTime,En(this,ro))!==Jm(F.staleTime,En(this,ro)))&&to(this,To,bM).call(this);const D=to(this,To,wM).call(this);Y&&(En(this,ro)!==j||pd(this.options.enabled,En(this,ro))!==pd(F.enabled,En(this,ro))||D!==En(this,wp))&&to(this,To,TM).call(this,D)}getOptimisticResult(r){const x=En(this,Uu).getQueryCache().build(En(this,Uu),r),F=this.createResult(x,r);return Mxe(this,F)&&(oi(this,pu,F),oi(this,ly,this.options),oi(this,Z0,En(this,ro).state)),F}getCurrentResult(){return En(this,pu)}trackResult(r,x){const F={};return Object.keys(r).forEach(j=>{Object.defineProperty(F,j,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(j),x==null||x(j),r[j])})}),F}trackProp(r){En(this,fy).add(r)}getCurrentQuery(){return En(this,ro)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const x=En(this,Uu).defaultQueryOptions(r),F=En(this,Uu).getQueryCache().build(En(this,Uu),x);return F.isFetchingOptimistic=!0,F.fetch().then(()=>this.createResult(F,x))}fetch(r){return to(this,To,ax).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),En(this,pu)))}createResult(r,x){var b;const F=En(this,ro),j=this.options,Y=En(this,pu),D=En(this,Z0),O=En(this,ly),l=r!==F?r.state:En(this,ub),{state:S}=r;let i={...S},C=!1,w;if(x._optimisticResults){const p=this.hasListeners(),E=!p&&PR(r,x),g=p&&LR(r,F,x,j);(E||g)&&(i={...i,...O_(S.data,r.options)}),x._optimisticResults==="isRestoring"&&(i.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:a}=i;if(x.select&&i.data!==void 0)if(Y&&i.data===(D==null?void 0:D.data)&&x.select===En(this,cb))w=En(this,uy);else try{oi(this,cb,x.select),w=x.select(i.data),w=xM(Y==null?void 0:Y.data,w,x),oi(this,uy,w),oi(this,eh,null)}catch(p){oi(this,eh,p)}else w=i.data;if(x.placeholderData!==void 0&&w===void 0&&a==="pending"){let p;if(Y!=null&&Y.isPlaceholderData&&x.placeholderData===(O==null?void 0:O.placeholderData))p=Y.data;else if(p=typeof x.placeholderData=="function"?x.placeholderData((b=En(this,cy))==null?void 0:b.state.data,En(this,cy)):x.placeholderData,x.select&&p!==void 0)try{p=x.select(p),oi(this,eh,null)}catch(E){oi(this,eh,E)}p!==void 0&&(a="success",w=xM(Y==null?void 0:Y.data,p,x),C=!0)}En(this,eh)&&(v=En(this,eh),w=En(this,uy),m=Date.now(),a="error");const n=i.fetchStatus==="fetching",s=a==="pending",o=a==="error",h=s&&n,f=w!==void 0;return{status:a,fetchStatus:i.fetchStatus,isPending:s,isSuccess:a==="success",isError:o,isInitialLoading:h,isLoading:h,data:w,dataUpdatedAt:i.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:i.fetchFailureCount,failureReason:i.fetchFailureReason,errorUpdateCount:i.errorUpdateCount,isFetched:i.dataUpdateCount>0||i.errorUpdateCount>0,isFetchedAfterMount:i.dataUpdateCount>l.dataUpdateCount||i.errorUpdateCount>l.errorUpdateCount,isFetching:n,isRefetching:n&&!s,isLoadingError:o&&!f,isPaused:i.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:o&&f,isStale:g6(r,x),refetch:this.refetch}}updateResult(r){const x=En(this,pu),F=this.createResult(En(this,ro),this.options);if(oi(this,Z0,En(this,ro).state),oi(this,ly,this.options),En(this,Z0).data!==void 0&&oi(this,cy,En(this,ro)),mM(F,x))return;oi(this,pu,F);const j={},Y=()=>{if(!x)return!0;const{notifyOnChangeProps:D}=this.options,O=typeof D=="function"?D():D;if(O==="all"||!O&&!En(this,fy).size)return!0;const t=new Set(O??En(this,fy));return this.options.throwOnError&&t.add("error"),Object.keys(En(this,pu)).some(l=>{const S=l;return En(this,pu)[S]!==x[S]&&t.has(S)})};(r==null?void 0:r.listeners)!==!1&&Y()&&(j.listeners=!0),to(this,To,F_).call(this,{...j,...r})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&to(this,To,SM).call(this)}},Uu=new WeakMap,ro=new WeakMap,ub=new WeakMap,pu=new WeakMap,Z0=new WeakMap,ly=new WeakMap,eh=new WeakMap,cb=new WeakMap,uy=new WeakMap,cy=new WeakMap,K0=new WeakMap,J0=new WeakMap,wp=new WeakMap,fy=new WeakMap,To=new WeakSet,ax=function(r){to(this,To,AM).call(this);let x=En(this,ro).fetch(this.options,r);return r!=null&&r.throwOnError||(x=x.catch(df)),x},bM=function(){to(this,To,CM).call(this);const r=Jm(this.options.staleTime,En(this,ro));if(ky||En(this,pu).isStale||!gM(r))return;const F=A_(En(this,pu).dataUpdatedAt,r)+1;oi(this,K0,setTimeout(()=>{En(this,pu).isStale||this.updateResult()},F))},wM=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(En(this,ro)):this.options.refetchInterval)??!1},TM=function(r){to(this,To,MM).call(this),oi(this,wp,r),!(ky||pd(this.options.enabled,En(this,ro))===!1||!gM(En(this,wp))||En(this,wp)===0)&&oi(this,J0,setInterval(()=>{(this.options.refetchIntervalInBackground||p6.isFocused())&&to(this,To,ax).call(this)},En(this,wp)))},SM=function(){to(this,To,bM).call(this),to(this,To,TM).call(this,to(this,To,wM).call(this))},CM=function(){En(this,K0)&&(clearTimeout(En(this,K0)),oi(this,K0,void 0))},MM=function(){En(this,J0)&&(clearInterval(En(this,J0)),oi(this,J0,void 0))},AM=function(){const r=En(this,Uu).getQueryCache().build(En(this,Uu),this.options);if(r===En(this,ro))return;const x=En(this,ro);oi(this,ro,r),oi(this,ub,r.state),this.hasListeners()&&(x==null||x.removeObserver(this),r.addObserver(this))},F_=function(r){kl.batch(()=>{r.listeners&&this.listeners.forEach(x=>{x(En(this,pu))}),En(this,Uu).getQueryCache().notify({query:En(this,ro),type:"observerResultsUpdated"})})},HR);function Cxe(e,r){return pd(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function PR(e,r){return Cxe(e,r)||e.state.data!==void 0&&EM(e,r,r.refetchOnMount)}function EM(e,r,x){if(pd(r.enabled,e)!==!1){const F=typeof x=="function"?x(e):x;return F==="always"||F!==!1&&g6(e,r)}return!1}function LR(e,r,x,F){return(e!==r||pd(F.enabled,e)===!1)&&(!x.suspense||e.state.status!=="error")&&g6(e,x)}function g6(e,r){return pd(r.enabled,e)!==!1&&e.isStaleByTime(Jm(r.staleTime,e))}function Mxe(e,r){return!mM(e.getCurrentResult(),r)}var __=Oe.createContext(void 0),Axe=e=>{const r=Oe.useContext(__);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Exe=({client:e,children:r})=>(Oe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ce.jsx(__.Provider,{value:e,children:r})),z_=Oe.createContext(!1),Pxe=()=>Oe.useContext(z_);z_.Provider;function Lxe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ixe=Oe.createContext(Lxe()),Rxe=()=>Oe.useContext(Ixe);function kxe(e,r){return typeof e=="function"?e(...r):!!e}var Dxe=(e,r)=>{(e.suspense||e.throwOnError)&&(r.isReset()||(e.retryOnMount=!1))},Oxe=e=>{Oe.useEffect(()=>{e.clearReset()},[e])},Fxe=({result:e,errorResetBoundary:r,throwOnError:x,query:F})=>e.isError&&!r.isReset()&&!e.isFetching&&F&&kxe(x,[e.error,F]),_xe=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},zxe=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,Bxe=(e,r,x)=>r.fetchOptimistic(e).catch(()=>{x.clearReset()});function Nxe(e,r,x){var l,S,i,C;const F=Axe(),j=Pxe(),Y=Rxe(),D=F.defaultQueryOptions(e);(S=(l=F.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||S.call(l,D),D._optimisticResults=j?"isRestoring":"optimistic",_xe(D),Dxe(D,Y),Oxe(Y);const[O]=Oe.useState(()=>new r(F,D)),t=O.getOptimisticResult(D);if(Oe.useSyncExternalStore(Oe.useCallback(w=>{const v=j?()=>{}:O.subscribe(kl.batchCalls(w));return O.updateResult(),v},[O,j]),()=>O.getCurrentResult(),()=>O.getCurrentResult()),Oe.useEffect(()=>{O.setOptions(D,{listeners:!1})},[D,O]),zxe(D,t))throw Bxe(D,O,Y);if(Fxe({result:t,errorResetBoundary:Y,throwOnError:D.throwOnError,query:F.getQueryCache().get(D.queryHash)}))throw t.error;return(C=(i=F.getDefaultOptions().queries)==null?void 0:i._experimental_afterQuery)==null||C.call(i,D,t),D.notifyOnChangeProps?t:O.trackResult(t)}function B_(e,r){return Nxe(e,Sxe)}const Uxe=({item:e})=>{const r=QO(),x=Gu.data.detail.source,F=Gu.data.detail.idField,j=Gu.pages.index.tableColumns;let D={...Gu.data.detail.staticParams};const O=new URLSearchParams(D).toString();let t;t=async()=>{const i=await(await fetch(`${x}?${O}`)).json();return i==null?void 0:i.find(C=>{if(r.id)return C[F].toString()===r.id.toString()})};const{data:l}=B_({queryKey:["item",r.id,D],queryFn:t});return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:l?l[F]:"",breadcrumbTitle:"Data Detail",sx:{marginBottom:1,padding:2}}),Ce.jsx(Ks,{maxWidth:"xl",children:Ce.jsx(La,{children:Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{fontWeight:"bold",children:j[1].field}),Ce.jsx(ea,{children:l&&l[j[1].field]})]})})})})]})},Hxe=Object.freeze(Object.defineProperty({__proto__:null,default:Uxe},Symbol.toStringTag,{value:"Module"})),Vxe=()=>Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(Jp,{})})]}),jxe=Object.freeze(Object.defineProperty({__proto__:null,default:Vxe},Symbol.toStringTag,{value:"Module"})),N_=jo.createContext(void 0),Gxe={activeFilters:[],expandedGroup:!1};function Wxe(e,r){switch(r.type){case"SET_FILTER":{const x=r.payload,F=e.activeFilters.findIndex(Y=>Y.field===x.field),j=[...e.activeFilters];return F>-1?x.value?j[F]=x:j.splice(F,1):x.value&&j.push(x),{...e,activeFilters:j}}case"SET_ACTIVE_FILTERS":return{...e,activeFilters:r.payload};case"SET_EXPANDED_GROUP":return{...e,expandedGroup:r.payload};default:throw new Error("Unhandled action type")}}const $xe=({activeFilters:e=[],onChange:r=F=>null,children:x})=>{const[F,j]=Oe.useReducer(Wxe,{...Gxe,activeFilters:e}),Y={activeFilters:F.activeFilters,expandedGroup:F.expandedGroup,dispatch:j};return Oe.useEffect(()=>{r&&r(F.activeFilters)},[JSON.stringify(F.activeFilters)]),Ce.jsx(N_.Provider,{value:Y,children:x})},m6=()=>{const e=Oe.useContext(N_);if(e===void 0)throw new Error("useFilters must be used within a FilterContext");return e},Yxe=({values:e})=>{const[r,x]=Oe.useState(null),F=D=>{x(D.currentTarget)},j=()=>{x(null)},Y=!!r;return Ce.jsxs(oa,{sx:{height:"100%"},children:[Ce.jsx(La,{direction:"row",spacing:1,alignItems:"center",onMouseEnter:F,onMouseLeave:j,sx:{height:"100%"},children:e.map(D=>Ce.jsx(Qh,{label:D,size:"small"},D))}),Ce.jsx(h5,{id:"mouse-over-popover",sx:{pointerEvents:"none"},open:Y,anchorEl:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:j,disableRestoreFocus:!0,children:Ce.jsx(ji,{container:!0,rowGap:1,columnGap:1,sx:{maxWidth:"300px",padding:2},children:e.map(D=>Ce.jsx(ji,{item:!0,children:Ce.jsx(Qh,{label:D,size:"small"})},D))})})]})},Xxe=({children:e})=>{const[r,x]=Oe.useState(null),F=D=>{x(D.currentTarget)},j=()=>{x(null)},Y=!!r;return Ce.jsxs(oa,{sx:{height:"100%"},children:[Ce.jsx(oa,{onMouseEnter:F,onMouseLeave:j,sx:{height:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:e}),Ce.jsx(h5,{id:"mouse-over-popover",sx:{pointerEvents:"none"},open:Y,anchorEl:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:j,disableRestoreFocus:!0,children:Ce.jsx(oa,{sx:{maxWidth:"300px",padding:2},children:e})})]})};var y6={},Zxe=zl;Object.defineProperty(y6,"__esModule",{value:!0});var U_=y6.default=void 0,Kxe=Zxe(Cu()),Jxe=Ce;U_=y6.default=(0,Kxe.default)((0,Jxe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");const Qxe=({options:e=[],onChange:r,values:x,sx:F,...j})=>{const[Y,D]=Oe.useState(x),O=(t,l)=>{if(Y===null&&t)D([l]);else if(Y!==null&&t)D([...Y,l]);else if(Y!==null&&!t){const S=Y.filter(i=>i!==l);S.length>0?D(S):D(null)}};return Oe.useEffect(()=>{r&&(Y==null?void 0:Y.length)!==(x==null?void 0:x.length)&&r(Y)},[Y]),Oe.useEffect(()=>{D(x)},[x]),Ce.jsx(KQ,{sx:{display:"inline-flex",...F},...j,children:e.map((t,l)=>Ce.jsx($4,{label:t.label,control:Ce.jsx(D9,{checked:!!Y&&Y.indexOf(t.value)>-1,value:t.value,onChange:(S,i)=>O(i,t.value),sx:{pr:1,pl:1,pb:0,pt:0}}),sx:{"&:not(:last-child)":{mb:1}}},`${t}-${l}`))})},qxe=({min:e=0,max:r=100,...x})=>{const[F,j]=Oe.useState([e,r]),Y=(O,t,l)=>{j(t)},D=[{value:e,label:e},{value:r,label:r}];return Ce.jsx(oa,{sx:{paddingLeft:1,paddingRight:1},children:Ce.jsx(ure,{value:F,onChange:Y,min:e,max:r,marks:D,...x})})},T2=e=>e===0||e===!1?!0:Array.isArray(e)&&e.length===0?!1:!!e,ebe=({label:e,field:r,tooltip:x,operator:F,filterComponent:j,filterProps:Y,...D})=>{const{activeFilters:O,dispatch:t}=m6(),[l,S]=Oe.useState(null),i=O.find(m=>m.field===r),C=T2(i==null?void 0:i.value),w=()=>{switch(j){case"CheckboxList":S(null);break;case"RangeSlider":S([Y.min,Y.max]);break;case"DateRange":S([Y.min,Y.max]);break;case"TextField":S(null);break;default:console.log("Unknown filter type")}t({type:"SET_FILTER",payload:{field:r,value:null,operator:F}})},v=(m,a,n)=>{var s;switch(a){case"CheckboxList":return Ce.jsx(Qxe,{values:l,options:n.options,onChange:o=>t({type:"SET_FILTER",payload:{field:m,value:o,operator:F}}),...n});case"RangeSlider":{const o=(h,f)=>{if(!Array.isArray(f))return;let u=[...f];f[0]===n.min&&f[1]===n.max&&(u=null),t({type:"SET_FILTER",payload:{field:m,value:u,operator:F}})};return Ce.jsx(qxe,{getAriaLabel:()=>m,valueLabelDisplay:"auto",min:n.min,max:n.max,value:l||[n.min,n.max],onChange:(h,f)=>S(f),onChangeCommitted:o,...n})}case"DateRange":{const o=(s=O.find(b=>b.field===b.field))==null?void 0:s.value,h=o&&Array.isArray(o)&&o.length===2,f=h&&Array.isArray(o)?o[0]:null,u=h&&Array.isArray(o)?o[1]:null;return Ce.jsxs(La,{children:[Ce.jsx(l2,{label:"From",slotProps:{actionBar:{actions:["clear","today"]}},onChange:b=>t({type:"SET_FILTER",payload:{field:m,value:[b,u],operator:F}})}),Ce.jsx(l2,{label:"To",slotProps:{actionBar:{actions:["clear","today"]}},onChange:b=>t({type:"SET_FILTER",payload:{field:m,value:[f,b],operator:F}})})]})}case"TextField":return Oe.useEffect(()=>{const o=setTimeout(()=>{t({type:"SET_FILTER",payload:{field:m,value:l,operator:F}})},1e3);return()=>{clearTimeout(o)}},[l]),Ce.jsx(Ko,{value:l||"",onChange:o=>S(o.target.value),fullWidth:!0,...n})}};return Oe.useEffect(()=>{C?S((i==null?void 0:i.value)||null):j==="RangeSlider"?l&&(l[0]!==Y.min||l[1]!==Y.max)&&w():T2(l)&&w()},[JSON.stringify(O)]),Ce.jsxs(La,{spacing:1,sx:{paddingBottom:2,borderBottom:"1px solid",borderBottomColor:"grey.300","&:last-child":{borderBottom:"none",paddingBottom:0}},...D,children:[Ce.jsx(oa,{display:"inline-block",children:Ce.jsxs(La,{direction:"row",spacing:1,onClick:()=>w(),sx:{cursor:C?"pointer":"default",display:"inline-flex"},children:[x&&Ce.jsx($9,{title:x,placement:"top",arrow:!0,children:Ce.jsx(ea,{fontWeight:"bold",color:C?"primary":"auto",sx:{textDecoration:"underline",textDecorationStyle:"dotted",textUnderlineOffset:"0.25rem"},children:e})}),!x&&Ce.jsx(ea,{fontWeight:"bold",color:C?"primary":"default",children:e}),C&&Ce.jsx(U_,{color:"primary"})]})}),Ce.jsx(oa,{children:v(r,j,Y)})]})},tbe=/A[cglmrstu]|B[aehikr]?|C[adeflmnorsu]?|D[bsy]|E[rsu]|F[elmr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airuv]|M[dgnot]|N[abdeiop]?|Os?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilm]|U(u[opst])?|V|W|Xe|Yb?|Z[nr]|La\-Lu?|Ac\-Lr?/g,rbe=/(A[cglmrstu]|B[aehikr]?|C[adeflmnorsu]?|D[bsy]|E[rsu]|F[elmr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airuv]|M[dgnot]|N[abdeiop]?|Os?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilm]|U(u[opst])?|V|W|Xe|Yb?|Z[nr]|La\-Lu?|Ac\-Lr?)|(.)/g,nbe=e=>!e.match(/\(|\)|\*/g)&&!e.match(tbe)?Ce.jsx("sub",{children:e}):Ce.jsx("span",{children:e}),abe=({content:e,...r})=>{let x;const F=e.match(rbe);return x=Ce.jsx("span",{children:F==null?void 0:F.map((j,Y)=>Ce.jsx("span",{children:nbe(j)},Y))}),Ce.jsx("span",{...r,children:x})},IR=({hasPopover:e,children:r})=>e?Ce.jsx(Xxe,{children:r}):r,ibe=e=>e.map(r=>{const{units:x,decimals:F,sigFigs:j,isFormula:Y,hasPopover:D,...O}=r;return O.renderHeader=t=>Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontSize:"0.875rem",fontWeight:"bold",children:t.colDef.headerName}),x&&Ce.jsx(ea,{fontSize:"small",color:"grey.700",sx:{position:"absolute",bottom:"4px",left:t.colDef.type!=="number"?0:"auto",right:t.colDef.type==="number"?0:"auto",transform:"translate(0, 0)",zIndex:1e3},children:x})]}),!O.valueFormatter&&O.type==="number"&&(O.valueFormatter=t=>T2(t)?!isNaN(t)&&F||F===0?t===0?t:t<1/Math.pow(10,F)?`> ${1/Math.pow(10,F)}`:t.toLocaleString(void 0,{minimumFractionDigits:F,maximumFractionDigits:F}):!isNaN(t)&&j?t.toPrecision(j):t.toLocaleString():"-"),O.renderCell||(O.renderCell=t=>Array.isArray(t.value)?Ce.jsx(Yxe,{values:t.value}):Y?Ce.jsx(IR,{hasPopover:D,children:Ce.jsx(abe,{content:t.value})}):Ce.jsx(IR,{hasPopover:D,children:t.formattedValue})),O}),obe=({rows:e,columns:r,...x})=>Ce.jsx(rc,{rows:e,columns:ibe(r),disableColumnSelector:!0,initialState:{pagination:{paginationModel:{page:0,pageSize:5}}},sx:{"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"bold"},"& .MuiDataGrid-cell:focus-within":{outline:"none"},"& .MuiDataGrid-overlayWrapper":{minHeight:"4rem"}},...x}),sbe=(e,r)=>{let x=e;return r&&(x=e.filter(F=>JSON.stringify(F).toLowerCase().indexOf(r.toLowerCase())>-1)),x},lbe=(e,r,x)=>{let F=e;if(r.length>0){const j={};r.forEach(Y=>{if(x){const D=x.find(O=>O.field===Y.field);j[Y.field]=D==null?void 0:D.operator}}),F=e.filter(Y=>{let D=!0;return r.forEach(O=>{let t=!1;if(D===!0)switch(j[O.field]){case"contains":{Y[O.field].indexOf(O.value)>-1&&(t=!0);break}case"contains-one-of":{Array.isArray(O.value)&&O.value.forEach(l=>{t||(Array.isArray(Y[O.field])?Y[O.field].indexOf(l)>-1&&(t=!0):Y[O.field]===l&&(t=!0))});break}case"equals-one-of":{Array.isArray(O.value)&&O.value.forEach(l=>{t||Y[O.field]===l&&(t=!0)});break}case"between-inclusive":{if(Array.isArray(O.value)){const l=O.value[0],S=O.value[1];Y[O.field]>=l&&Y[O.field]<=S&&(t=!0)}break}case"between-dates-inclusive":{if(typeof Y[O.field]=="string"&&Array.isArray(O.value)&&O.value[0]&&O.value[1]){const l=ms(Y[O.field]);l.isAfter(O.value[0])&&l.isBefore(O.value[1])&&(t=!0)}else t=!0;break}}t||(D=!1)}),D})}return F},H_=(e,r,x,F)=>{const j=sbe(e,F);return lbe(j,r,x)},RR=e=>e.replace(/([^:]\/)\/+/g,"$1"),ube=async e=>{var O;const x=(((O=document.querySelector("base"))==null?void 0:O.getAttribute("href"))??"")+"/strudel-kit/demo/",F=e.split(".").pop(),j=e.startsWith("http"),Y=RR(j?e:`${x}/${e}`);let D=[];return F==="csv"?D=await uF(Y):F==="tsv"?D=await cF(Y):(F==="json"||j)&&(D=await(await fetch(Y)).json()),D},cbe=({searchTerm:e,setPreviewItem:r})=>{const{activeFilters:x}=m6(),[F,j]=Oe.useState(0),[Y,D]=Oe.useState(25),[O,t]=Oe.useState(F*Y),l=Gu.data.list.source,S=Gu.data.list.idField,i=Gu.pages.index.tableColumns,C=Gu.pages.index.tableFilters,w=Gu.data.list.queryMode;let v=new URLSearchParams;const m=["items"],{isPending:a,isFetching:n,isError:s,data:o,error:h}=B_({queryKey:m,queryFn:async()=>{const b=v.toString();let p=l;return b&&b.length>0&&(p=`${l}?${b}`),await ube(p)},placeholderData:sxe}),f=b=>{r(b.row)},u=b=>{const p=b.pageSize!==Y?0:b.page,E=b.pageSize,g=p*E;j(p),D(E),t(g)};if(a){const p=new Array(Y).fill(null).map((E,g)=>g);return Ce.jsx(oa,{sx:{padding:2},children:p.map(E=>Ce.jsx(G9,{height:50},E))})}return s?Ce.jsx(f9,{severity:"error",children:h.message}):Ce.jsxs(Ce.Fragment,{children:[n&&Ce.jsx(Pb,{variant:"indeterminate"}),Ce.jsx(obe,{rows:H_(o,x,C,e),rowCount:void 0,pagination:!0,paginationMode:w,onPaginationModelChange:u,getRowId:b=>b[S],columns:i,disableColumnSelector:!0,autoHeight:!0,initialState:{pagination:{paginationModel:{page:F,pageSize:Y}}},onRowClick:f})]})};var x6={},fbe=zl;Object.defineProperty(x6,"__esModule",{value:!0});var V_=x6.default=void 0,dbe=fbe(Cu()),hbe=Ce;V_=x6.default=(0,dbe.default)((0,hbe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");const vbe=({searchTerm:e,setSearchTerm:r,onToggleFiltersPanel:x})=>{const F=j=>{r(j.target.value)};return Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",sx:{overflow:"hidden",padding:2},children:[Ce.jsx(ea,{variant:"h6",component:"h2",flex:1,children:"Entity List"}),Ce.jsx($i,{startIcon:Ce.jsx(V_,{}),onClick:x,children:"Filters"}),Ce.jsx(Ko,{variant:"outlined",label:"Search",size:"small",value:e,onChange:F})]})},j_=({header:e="Filters",grouped:r=!0,onChange:x,onClose:F,config:j,children:Y,...D})=>{const{activeFilters:O,dispatch:t}=m6();let l=0;jo.Children.forEach(Y,i=>{if(jo.isValidElement(i)&&i.props.field&&T2(O.find(C=>C.field===i.props.field)))return l++});const S=()=>{t({type:"SET_ACTIVE_FILTERS",payload:[]})};return Ce.jsx(Ri,{elevation:0,variant:"outlined",...D,children:Ce.jsxs(La,{spacing:0,children:[e&&Ce.jsxs(La,{direction:"row",spacing:0,alignItems:"center",sx:{borderBottom:"1px solid",borderBottomColor:"grey.300",paddingLeft:2,paddingRight:2,paddingTop:1,paddingBottom:1},children:[Ce.jsxs(La,{direction:"row",spacing:2,flex:1,children:[Ce.jsx(oa,{children:e}),l>0&&Ce.jsx(Qh,{label:`${l} active`,color:"primary",size:"small"})]}),Ce.jsx($i,{variant:"outlined",onClick:S,sx:{marginRight:1},children:"Reset"}),Ce.jsx(dl,{onClick:F,children:Ce.jsx(Ub,{})})]}),r&&Ce.jsx(La,{spacing:0,children:Y}),!r&&Ce.jsx(La,{spacing:2,sx:{padding:2},children:Y})]})})},pbe=e=>Ce.jsx(j_,{grouped:!1,onClose:e.onClose,sx:{border:"none"},children:Gu.pages.index.tableFilters.map((r,x)=>Ce.jsx(ebe,{field:r.field,label:r.label,operator:"contains",filterComponent:r.filterComponent,filterProps:r.filterProps},`${r.field}-${x}`))}),gbe=({previewItem:e,onClose:r})=>{const x=Gu.pages.index.tableColumns,F=Gu.data.list.idField;return Ce.jsx(Ri,{elevation:0,sx:{height:"100%",padding:2},children:Ce.jsxs(La,{spacing:3,children:[Ce.jsxs(La,{spacing:1,children:[Ce.jsxs(La,{direction:"row",children:[Ce.jsx(ea,{variant:"h6",component:"h3",flex:1,children:Ce.jsx(Ii,{component:Ki,to:`${e[F]}`,underline:"hover",children:e[x[0].field]})}),Ce.jsx(dl,{size:"small",onClick:r,children:Ce.jsx(Ub,{})})]}),Ce.jsx(ea,{variant:"body2",children:"Row description, subtitle, or helper text."})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Property Group 1"}),Ce.jsx(jp,{rows:[{label:"Property 1",value:"value"},{label:"Property 2",value:"value"},{label:"Property 3",value:"value"}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Property Group 2"}),Ce.jsx(jp,{rows:[{label:"Property 4",value:"value"},{label:"Property 5",value:"value"}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Related Data"}),Ce.jsx(rc,{rows:xbe,columns:mbe,disableRowSelectionOnClick:!0,initialState:{pagination:{paginationModel:{pageSize:5}}}})]}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(Ii,{component:Ki,to:`${e[F]}`,children:Ce.jsx($i,{variant:"contained",children:"View details"})}),Ce.jsx($i,{variant:"outlined",children:"Export data"})]})]})})},mbe=[{field:"id",headerName:"ID",width:50},{field:"attr1",headerName:"Attribute 1",width:100},{field:"attr2",headerName:"Attribute 2",width:100},{field:"attr3",headerName:"Attribute 3",width:100}],ybe=Array(25).fill(0),xbe=ybe.map((e,r)=>({id:r,attr1:"value",attr2:"value",attr3:"value"})),bbe=()=>{const[e,r]=Oe.useState(""),[x,F]=Oe.useState(),[j,Y]=Oe.useState(!0),D=()=>{Y(!1)},O=()=>{Y(!j)},t=()=>{F(null)};return Ce.jsx($xe,{children:Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:Gu.pages.index.title,description:Gu.pages.index.description,sx:{marginBottom:1,padding:2}}),Ce.jsx(oa,{children:Ce.jsxs(La,{direction:"row",children:[j&&Ce.jsx(oa,{sx:{width:"350px"},children:Ce.jsx(pbe,{onClose:D})}),Ce.jsxs(Ri,{elevation:0,sx:{flex:1,minHeight:"600px",minWidth:0},children:[Ce.jsx(vbe,{searchTerm:e,setSearchTerm:r,onToggleFiltersPanel:O}),Ce.jsx(cbe,{searchTerm:e,setPreviewItem:F})]}),x&&Ce.jsx(oa,{sx:{minWidth:"400px"},children:Ce.jsx(gbe,{previewItem:x,onClose:t})})]})})]})})},wbe=Object.freeze(Object.defineProperty({__proto__:null,default:bbe},Symbol.toStringTag,{value:"Module"})),Tbe=()=>Ce.jsx(oa,{sx:{backgroundColor:"white",padding:4},children:Ce.jsx(Ks,{children:Ce.jsxs(ji,{container:!0,children:[Ce.jsx(ji,{item:!0,md:6,children:Ce.jsx(La,{direction:"row",useFlexGap:!0,sx:{flexWrap:"wrap"},children:Ap.footer.links.map((e,r)=>Ce.jsx(zp,{to:e.path,children:e.label},`${e.path}-${r}`))})}),Ce.jsx(ji,{item:!0,md:6,children:Ce.jsxs(La,{alignItems:"center",children:[Ce.jsx(ea,{children:Ap.footer.info}),Ce.jsx(zp,{to:"/",children:Ce.jsx(iF,{height:60,children:Ce.jsx("img",{src:`/strudel-kit/demo//${Ap.footer.image}`})})})]})})]})})}),G_=({children:e})=>Ce.jsxs(La,{sx:{height:"100%"},children:[Ce.jsx(Cg,{}),Ce.jsx(oa,{sx:{flex:1},children:e}),Ce.jsx(Tbe,{})]}),Sbe=()=>{var e,r;return(e=S2[0].children)==null||e.sort((x,F)=>{const j=x.path||"",Y=F.path||"";return j==="playground"&&Y!=="/"||jY?1:0}),Ce.jsx(G_,{children:Ce.jsx(Ks,{maxWidth:"lg",sx:{marginTop:3,marginBottom:3},children:Ce.jsxs(oa,{children:[Ce.jsxs(La,{sx:{marginBottom:4},children:[Ce.jsx(ea,{variant:"h6",component:"h1",fontWeight:"bold",children:"You just built an app with STRUDEL!"}),Ce.jsxs(oa,{children:["Get started by going to ",Ce.jsx("code",{children:Ce.jsx(zp,{to:"playground",children:"/playground"})})," and editing ",Ce.jsx(Qh,{size:"small",label:Ce.jsx("code",{children:"src/pages/playground/index.tsx"})})]})]}),Ce.jsxs(ji,{container:!0,columnSpacing:4,rowSpacing:4,children:[Ce.jsx(ji,{item:!0,md:12,children:Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h5",component:"h2",children:"Registered Pages"}),Ce.jsx(ea,{children:"Below are all of the pages that are registered in your app. As you add new top-level pages and Task Flows to your app, they will show up here."}),Ce.jsx(La,{spacing:0,sx:{border:"1px solid",borderColor:"grey.50",padding:2},children:Ce.jsx(X9,{size:"small",children:Ce.jsx(Z9,{children:(r=S2[0].children)==null?void 0:r.map(x=>{if(x.path==="/")return Ce.jsxs(J4,{children:[Ce.jsx(Kh,{children:Ce.jsx("code",{children:Ce.jsx(zp,{to:x.path||"",children:"/"})})}),Ce.jsx(Kh,{children:Ce.jsx("code",{children:Ce.jsx(Qh,{size:"small",label:Ce.jsx("code",{children:"src/pages/index.tsx"})})})})]},x.path);if(x.path!=="*")return Ce.jsxs(J4,{children:[Ce.jsx(Kh,{children:Ce.jsx("code",{children:Ce.jsxs(zp,{to:x.path||"",children:["/",x.path]})})}),Ce.jsx(Kh,{children:Ce.jsx("code",{children:Ce.jsx(Qh,{size:"small",label:Ce.jsxs("code",{children:["src/pages/",x.path,"/index.tsx"]})})})})]},x.path)})})})})]})}),Ce.jsx(ji,{item:!0,md:12,children:Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h5",component:"h2",children:"What's Next?"}),Ce.jsx(ea,{variant:"h6",component:"h3",children:"Add Task Flows"}),Ce.jsx(Ri,{elevation:0,sx:{padding:2},children:Ce.jsx("code",{children:"strudel add-taskflow my-taskflow -t explore-data"})})]})})]})]})})})},Cbe=Object.freeze(Object.defineProperty({__proto__:null,default:Sbe},Symbol.toStringTag,{value:"Module"})),Mbe=()=>Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(Jp,{})})]}),Abe=Object.freeze(Object.defineProperty({__proto__:null,default:Mbe},Symbol.toStringTag,{value:"Module"})),Ebe=()=>Ce.jsxs(Ks,{maxWidth:"md",sx:{marginBottom:3,marginTop:3},children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:"2023 Experiments (Work in Progress)"}),Ce.jsx(kT,{dateAdapter:zO,children:Ce.jsx(CO,{readOnly:!0})}),Ce.jsx(Ii,{component:Ki,to:"../",children:"List"})]}),Pbe=Object.freeze(Object.defineProperty({__proto__:null,default:Ebe},Symbol.toStringTag,{value:"Module"}));var b6={},Lbe=zl;Object.defineProperty(b6,"__esModule",{value:!0});var W_=b6.default=void 0,Ibe=Lbe(Cu()),Rbe=Ce;W_=b6.default=(0,Ibe.default)((0,Rbe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var $_={},Y_={};(function(e){function r(f){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var x=D(Oe),F=j(C7);function j(f){return f&&f.__esModule?f:{default:f}}function Y(f){if(typeof WeakMap!="function")return null;var u=new WeakMap,b=new WeakMap;return(Y=function(E){return E?b:u})(f)}function D(f,u){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var b=Y(u);if(b&&b.has(f))return b.get(f);var p={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in f)if(g!=="default"&&Object.prototype.hasOwnProperty.call(f,g)){var c=E?Object.getOwnPropertyDescriptor(f,g):null;c&&(c.get||c.set)?Object.defineProperty(p,g,c):p[g]=f[g]}return p.default=f,b&&b.set(f,p),p}function O(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function t(f,u){for(var b=0;b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a(f){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},a(f)}var n=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],s=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],o=typeof window<"u";function h(f){var u=function(b){S(E,b);var p=C(E);function E(g){var c;return O(this,E),c=p.call(this,g),c.p=Promise.resolve(),c.resizeHandler=null,c.handlers={},c.syncWindowResize=c.syncWindowResize.bind(v(c)),c.syncEventHandlers=c.syncEventHandlers.bind(v(c)),c.attachUpdateEvents=c.attachUpdateEvents.bind(v(c)),c.getRef=c.getRef.bind(v(c)),c.handleUpdate=c.handleUpdate.bind(v(c)),c.figureCallback=c.figureCallback.bind(v(c)),c.updatePlotly=c.updatePlotly.bind(v(c)),c}return l(E,[{key:"updatePlotly",value:function(c,y,A){var M=this;this.p=this.p.then(function(){if(!M.unmounting){if(!M.el)throw new Error("Missing element reference");return f.react(M.el,{data:M.props.data,layout:M.props.layout,config:M.props.config,frames:M.props.frames})}}).then(function(){M.unmounting||(M.syncWindowResize(c),M.syncEventHandlers(),M.figureCallback(y),A&&M.attachUpdateEvents())}).catch(function(R){M.props.onError&&M.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(c){this.unmounting=!1;var y=c.frames&&c.frames.length?c.frames.length:0,A=this.props.frames&&this.props.frames.length?this.props.frames.length:0,M=!(c.layout===this.props.layout&&c.data===this.props.data&&c.config===this.props.config&&A===y),R=c.revision!==void 0,T=c.revision!==this.props.revision;!M&&(!R||R&&!T)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&o&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),f.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||s.forEach(function(y){c.el.on(y,c.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||s.forEach(function(y){c.el.removeListener(y,c.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(c){if(typeof c=="function"){var y=this.el,A=y.data,M=y.layout,R=this.el._transitionData?this.el._transitionData._frames:null,T={data:A,layout:M,frames:R};c(T,this.el)}}},{key:"syncWindowResize",value:function(c){var y=this;o&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return f.Plots.resize(y.el)},window.addEventListener("resize",this.resizeHandler),c&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(c){this.el=c,this.props.debug&&o&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var c=this;n.forEach(function(y){var A=c.props["on"+y],M=c.handlers[y],R=!!M;A&&!R?c.addEventHandler(y,A):!A&&R?c.removeEventHandler(y):A&&R&&A!==M&&(c.removeEventHandler(y),c.addEventHandler(y,A))})}},{key:"addEventHandler",value:function(c,y){this.handlers[c]=y,this.el.on(this.getPlotlyEventName(c),this.handlers[c])}},{key:"removeEventHandler",value:function(c){this.el.removeListener(this.getPlotlyEventName(c),this.handlers[c]),delete this.handlers[c]}},{key:"getPlotlyEventName",value:function(c){return"plotly_"+c.toLowerCase()}},{key:"render",value:function(){return x.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),E}(x.Component);return u.propTypes={data:F.default.arrayOf(F.default.object),config:F.default.object,layout:F.default.object,frames:F.default.arrayOf(F.default.object),revision:F.default.number,onInitialized:F.default.func,onPurge:F.default.func,onError:F.default.func,onUpdate:F.default.func,debug:F.default.bool,style:F.default.object,className:F.default.string,useResizeHandler:F.default.bool,divId:F.default.string},n.forEach(function(b){u.propTypes["on"+b]=F.default.func}),u.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},u}})(Y_);var X_={exports:{}};(function(e,r){(function(F,j){e.exports=j()})(self,function(){return function(){var x={79288:function(D,O,t){var l=t(3400),S={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in S){var C=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(C,S[i])}},86712:function(D,O,t){D.exports=t(84224)},37240:function(D,O,t){D.exports=t(51132)},29744:function(D,O,t){D.exports=t(94456)},29352:function(D,O,t){D.exports=t(67244)},96144:function(D,O,t){D.exports=t(97776)},53219:function(D,O,t){D.exports=t(61712)},4624:function(D,O,t){D.exports=t(95856)},54543:function(D,O,t){D.exports=t(54272)},45e3:function(D,O,t){D.exports=t(85404)},62300:function(D,O,t){D.exports=t(26048)},6920:function(D,O,t){D.exports=t(66240)},10264:function(D,O,t){D.exports=t(40448)},32016:function(D,O,t){D.exports=t(64884)},27528:function(D,O,t){D.exports=t(15088)},75556:function(D,O,t){D.exports=t(76744)},39204:function(D,O,t){D.exports=t(94704)},73996:function(D,O,t){D.exports=t(62396)},16489:function(D,O,t){D.exports=t(32028)},5e3:function(D,O,t){D.exports=t(81932)},77280:function(D,O,t){D.exports=t(45536)},33992:function(D,O,t){D.exports=t(42600)},17600:function(D,O,t){D.exports=t(21536)},49116:function(D,O,t){D.exports=t(65664)},46808:function(D,O,t){D.exports=t(29044)},36168:function(D,O,t){D.exports=t(48928)},13792:function(D,O,t){var l=t(32016);l.register([t(37240),t(29352),t(5e3),t(33992),t(17600),t(49116),t(6920),t(67484),t(79440),t(39204),t(83096),t(36168),t(20260),t(63560),t(65832),t(46808),t(73996),t(48824),t(89904),t(25120),t(13752),t(4340),t(62300),t(29800),t(8363),t(54543),t(86636),t(42192),t(32140),t(77280),t(89296),t(56816),t(70192),t(45e3),t(27528),t(84764),t(3920),t(50248),t(4624),t(69967),t(10264),t(86152),t(53219),t(81604),t(63796),t(29744),t(89336),t(86712),t(75556),t(16489),t(97312),t(96144)]),D.exports=l},3920:function(D,O,t){D.exports=t(43480)},25120:function(D,O,t){D.exports=t(6296)},4340:function(D,O,t){D.exports=t(7404)},86152:function(D,O,t){D.exports=t(65456)},56816:function(D,O,t){D.exports=t(22020)},89296:function(D,O,t){D.exports=t(29928)},20260:function(D,O,t){D.exports=t(75792)},32140:function(D,O,t){D.exports=t(156)},84764:function(D,O,t){D.exports=t(45499)},48824:function(D,O,t){D.exports=t(3296)},69967:function(D,O,t){D.exports=t(4184)},8363:function(D,O,t){D.exports=t(36952)},86636:function(D,O,t){D.exports=t(38983)},70192:function(D,O,t){D.exports=t(11572)},81604:function(D,O,t){D.exports=t(76924)},63796:function(D,O,t){D.exports=t(62944)},89336:function(D,O,t){D.exports=t(95443)},67484:function(D,O,t){D.exports=t(34864)},97312:function(D,O,t){D.exports=t(76272)},42192:function(D,O,t){D.exports=t(97924)},29800:function(D,O,t){D.exports=t(15436)},63560:function(D,O,t){D.exports=t(5621)},89904:function(D,O,t){D.exports=t(91304)},50248:function(D,O,t){D.exports=t(41724)},65832:function(D,O,t){D.exports=t(31991)},79440:function(D,O,t){D.exports=t(22869)},13752:function(D,O,t){D.exports=t(67776)},83096:function(D,O,t){D.exports=t(95952)},72196:function(D){D.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(D,O,t){var l=t(72196),S=t(25376),i=t(33816),C=t(31780).templatedArray;t(36208),D.exports=C("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:S({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:S({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(D,O,t){var l=t(3400),S=t(54460),i=t(23816).draw;D.exports=function(m){var a=m._fullLayout,n=l.filterVisible(a.annotations);if(n.length&&m._fullData.length)return l.syncOrAsync([i,C],m)};function C(v){var m=v._fullLayout;l.filterVisible(m.annotations).forEach(function(a){var n=S.getFromId(v,a.xref),s=S.getFromId(v,a.yref),o=S.getRefType(a.xref),h=S.getRefType(a.yref);a._extremes={},o==="range"&&w(a,n),h==="range"&&w(a,s)})}function w(v,m){var a=m._id,n=a.charAt(0),s=v[n],o=v["a"+n],h=v[n+"ref"],f=v["a"+n+"ref"],u=v["_"+n+"padplus"],b=v["_"+n+"padminus"],p={x:1,y:-1}[n]*v[n+"shift"],E=3*v.arrowsize*v.arrowwidth||0,g=E+p,c=E-p,y=3*v.startarrowsize*v.arrowwidth||0,A=y+p,M=y-p,R;if(f===h){var T=S.findExtremes(m,[m.r2c(s)],{ppadplus:g,ppadminus:c}),L=S.findExtremes(m,[m.r2c(o)],{ppadplus:Math.max(u,A),ppadminus:Math.max(b,M)});R={min:[T.min[0],L.min[0]],max:[T.max[0],L.max[0]]}}else A=o?A+o:A,M=o?M-o:M,R=S.findExtremes(m,[m.r2c(s)],{ppadplus:Math.max(u,g,A),ppadminus:Math.max(b,c,M)});v._extremes[a]=R}},42300:function(D,O,t){var l=t(3400),S=t(24040),i=t(31780).arrayEditor;D.exports={hasClickToShow:C,onClick:w};function C(a,n){var s=v(a,n);return s.on.length>0||s.explicitOff.length>0}function w(a,n){var s=v(a,n),o=s.on,h=s.off.concat(s.explicitOff),f={},u=a._fullLayout.annotations,b,p;if(o.length||h.length){for(b=0;b.6666666666666666?sr="right":sr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[sr]}for(var st=!1,vt=["x","y"],at=0;at1)&&(rt===mt?(Je=lt.r2fraction(y["a"+nt]),(Je<0||Je>1)&&(st=!0)):st=!0),Fe=lt._offset+lt.r2p(y[nt]),Re=.5}else{var ot=Ve==="domain";nt==="x"?(we=y[nt],Fe=ot?lt._offset+lt._length*we:Fe=P.l+P.w*we):(we=1-y[nt],Fe=ot?lt._offset+lt._length*we:Fe=P.t+P.h*we),Re=y.showarrow?.5:we}if(y.showarrow){We.head=Fe;var yt=y["a"+nt];if(Pe=wt*$e(.5,y.xanchor)-et*$e(.5,y.yanchor),rt===mt){var ut=v.getRefType(rt);ut==="domain"?(nt==="y"&&(yt=1-yt),We.tail=lt._offset+lt._length*yt):ut==="paper"?nt==="y"?(yt=1-yt,We.tail=P.t+P.h*yt):We.tail=P.l+P.w*yt:We.tail=lt._offset+lt.r2p(yt),Me=Pe}else We.tail=Fe+yt,Me=Pe+yt;We.text=We.tail+Pe;var It=L[nt==="x"?"width":"height"];if(mt==="paper"&&(We.head=C.constrain(We.head,1,It-1)),rt==="pixel"){var Vt=-Math.max(We.tail-3,We.text),xt=Math.min(We.tail+3,We.text)-It;Vt>0?(We.tail+=Vt,We.text+=Vt):xt>0&&(We.tail-=xt,We.text-=xt)}We.tail+=Ze,We.head+=Ze}else Pe=Be*$e(Re,Ye),Me=Pe,We.text=Fe+Pe;We.text+=Ze,Pe+=Ze,Me+=Ze,y["_"+nt+"padplus"]=Be/2+Me,y["_"+nt+"padminus"]=Be/2-Me,y["_"+nt+"size"]=Be,y["_"+nt+"shift"]=Pe}if(st){fe.remove();return}var Lt=0,Xt=0;if(y.align!=="left"&&(Lt=(Ie-Ae)*(y.align==="center"?.5:1)),y.valign!=="top"&&(Xt=(Ue-be)*(y.valign==="middle"?.5:1)),ke)Se.select("svg").attr({x:oe+Lt-1,y:oe+Xt}).call(a.setClipUrl,ne?H:null,c);else{var dr=oe+Xt-Te.top,Tt=oe+Lt-Te.left;de.call(s.positionText,Tt,dr).call(a.setClipUrl,ne?H:null,c)}ce.select("rect").call(a.setRect,oe,oe,Ie,Ue),K.call(a.setRect,Q/2,Q/2,Ne-Q,ze-Q),fe.call(a.setTranslate,Math.round(W.x.text-Ne/2),Math.round(W.y.text-ze/2)),Z.attr({transform:"rotate("+V+","+W.x.text+","+W.y.text+")"});var Kt=function(br,sr){$.selectAll(".annotation-arrow-g").remove();var Ct=W.x.head,ht=W.y.head,Mt=W.x.tail+br,Rt=W.y.tail+sr,zt=W.x.text+br,Ft=W.y.text+sr,Wt=C.rotationXYMatrix(V,zt,Ft),jt=C.apply2DTransform(Wt),er=C.apply2DTransform2(Wt),hr=+K.attr("width"),vr=+K.attr("height"),pr=zt-.5*hr,Ke=pr+hr,Xe=Ft-.5*vr,Ut=Xe+vr,Bt=[[pr,Xe,pr,Ut],[pr,Ut,Ke,Ut],[Ke,Ut,Ke,Xe],[Ke,Xe,pr,Xe]].map(er);if(!Bt.reduce(function(Dr,bn){return Dr^!!C.segmentsIntersect(Ct,ht,Ct+1e6,ht+1e6,bn[0],bn[1],bn[2],bn[3])},!1)){Bt.forEach(function(Dr){var bn=C.segmentsIntersect(Mt,Rt,Ct,ht,Dr[0],Dr[1],Dr[2],Dr[3]);bn&&(Mt=bn.x,Rt=bn.y)});var Qt=y.arrowwidth,or=y.arrowcolor,fr=y.arrowside,ar=$.append("g").style({opacity:m.opacity(or)}).classed("annotation-arrow-g",!0),Ht=ar.append("path").attr("d","M"+Mt+","+Rt+"L"+Ct+","+ht).style("stroke-width",Qt+"px").call(m.stroke,m.rgb(or));if(u(Ht,fr,y),d.annotationPosition&&Ht.node().parentNode&&!M){var mr=Ct,wr=ht;if(y.standoff){var Sr=Math.sqrt(Math.pow(Ct-Mt,2)+Math.pow(ht-Rt,2));mr+=y.standoff*(Mt-Ct)/Sr,wr+=y.standoff*(Rt-ht)/Sr}var yr=ar.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Mt-mr)+","+(Rt-wr),transform:w(mr,wr)}).style("stroke-width",Qt+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)"),Xr,kr;h.init({element:yr.node(),gd:c,prepFn:function(){var Dr=a.getTranslate(fe);Xr=Dr.x,kr=Dr.y,R&&R.autorange&&B(R._name+".autorange",!0),T&&T.autorange&&B(T._name+".autorange",!0)},moveFn:function(Dr,bn){var un=jt(Xr,kr),Fn=un[0]+Dr,On=un[1]+bn;fe.call(a.setTranslate,Fn,On),G("x",E(R,Dr,"x",P,y)),G("y",E(T,bn,"y",P,y)),y.axref===y.xref&&G("ax",E(R,Dr,"ax",P,y)),y.ayref===y.yref&&G("ay",E(T,bn,"ay",P,y)),ar.attr("transform",w(Dr,bn)),Z.attr({transform:"rotate("+V+","+Fn+","+On+")"})},doneFn:function(){S.call("_guiRelayout",c,U());var Dr=document.querySelector(".js-notes-box-panel");Dr&&Dr.redraw(Dr.selectedObj)}})}}};if(y.showarrow&&Kt(0,0),q){var qt;h.init({element:fe.node(),gd:c,prepFn:function(){qt=Z.attr("transform")},moveFn:function(br,sr){var Ct="pointer";if(y.showarrow)y.axref===y.xref?G("ax",E(R,br,"ax",P,y)):G("ax",y.ax+br),y.ayref===y.yref?G("ay",E(T,sr,"ay",P.w,y)):G("ay",y.ay+sr),Kt(br,sr);else{if(M)return;var ht,Mt;if(R)ht=E(R,br,"x",P,y);else{var Rt=y._xsize/P.w,zt=y.x+(y._xshift-y.xshift)/P.w-Rt/2;ht=h.align(zt+br/P.w,Rt,0,1,y.xanchor)}if(T)Mt=E(T,sr,"y",P,y);else{var Ft=y._ysize/P.h,Wt=y.y-(y._yshift+y.yshift)/P.h-Ft/2;Mt=h.align(Wt-sr/P.h,Ft,0,1,y.yanchor)}G("x",ht),G("y",Mt),(!R||!T)&&(Ct=h.getCursor(R?.5:ht,T?.5:Mt,y.xanchor,y.yanchor))}Z.attr({transform:w(br,sr)+qt}),o(fe,Ct)},clickFn:function(br,sr){y.captureevents&&c.emit("plotly_clickannotation",ie(sr))},doneFn:function(){o(fe),S.call("_guiRelayout",c,U());var br=document.querySelector(".js-notes-box-panel");br&&br.redraw(br.selectedObj)}})}}d.annotationText?de.call(s.makeEditable,{delegate:fe,gd:c}).call(le).on("edit",function(xe){y.text=xe,this.call(le),G("text",xe),R&&R.autorange&&B(R._name+".autorange",!0),T&&T.autorange&&B(T._name+".autorange",!0),S.call("_guiRelayout",c,U())}):de.call(le)}},33652:function(D,O,t){var l=t(33428),S=t(76308),i=t(72196),C=t(3400),w=C.strScale,v=C.strRotate,m=C.strTranslate;D.exports=function(n,s,o){var h=n.node(),f=i[o.arrowhead||0],u=i[o.startarrowhead||0],b=(o.arrowwidth||1)*(o.arrowsize||1),p=(o.arrowwidth||1)*(o.startarrowsize||1),E=s.indexOf("start")>=0,g=s.indexOf("end")>=0,c=f.backoff*b+o.standoff,y=u.backoff*p+o.startstandoff,A,M,R,T;if(h.nodeName==="line"){A={x:+n.attr("x1"),y:+n.attr("y1")},M={x:+n.attr("x2"),y:+n.attr("y2")};var L=A.x-M.x,P=A.y-M.y;if(R=Math.atan2(P,L),T=R+Math.PI,c&&y&&c+y>Math.sqrt(L*L+P*P)){Z();return}if(c){if(c*c>L*L+P*P){Z();return}var d=c*Math.cos(R),k=c*Math.sin(R);M.x+=d,M.y+=k,n.attr({x2:M.x,y2:M.y})}if(y){if(y*y>L*L+P*P){Z();return}var I=y*Math.cos(R),N=y*Math.sin(R);A.x-=I,A.y-=N,n.attr({x1:A.x,y1:A.y})}}else if(h.nodeName==="path"){var B=h.getTotalLength(),G="";if(B1){o=!0;break}}o?w.fullLayout._infolayer.select(".annotation-"+w.id+'[data-index="'+n+'"]').remove():(s._pdata=S(w.glplot.cameraParams,[v.xaxis.r2l(s.x)*m[0],v.yaxis.r2l(s.y)*m[1],v.zaxis.r2l(s.z)*m[2]]),l(w.graphDiv,s,n,w.id,s._xa,s._ya))}}},56864:function(D,O,t){var l=t(24040),S=t(3400);D.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:t(45899)}}},layoutAttributes:t(45899),handleDefaults:t(52808),includeBasePlot:i,convert:t(42456),draw:t(71836)};function i(C,w){var v=l.subplotsRegistry.gl3d;if(v)for(var m=v.attrRegex,a=Object.keys(C),n=0;n=0)))return n;if(u===3)h[u]>1&&(h[u]=1);else if(h[u]>=1)return n}var b=Math.round(h[0]*255)+", "+Math.round(h[1]*255)+", "+Math.round(h[2]*255);return f?"rgba("+b+", "+h[3]+")":"rgb("+b+")"}},42996:function(D,O,t){var l=t(94724),S=t(25376),i=t(92880).extendFlat,C=t(67824).overrideAll;D.exports=C({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:l.linecolor,outlinewidth:l.linewidth,bordercolor:l.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:l.minor.tickmode,nticks:l.nticks,tick0:l.tick0,dtick:l.dtick,tickvals:l.tickvals,ticktext:l.ticktext,ticks:i({},l.ticks,{dflt:""}),ticklabeloverflow:i({},l.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:l.ticklen,tickwidth:l.tickwidth,tickcolor:l.tickcolor,ticklabelstep:l.ticklabelstep,showticklabels:l.showticklabels,labelalias:l.labelalias,tickfont:S({}),tickangle:l.tickangle,tickformat:l.tickformat,tickformatstops:l.tickformatstops,tickprefix:l.tickprefix,showtickprefix:l.showtickprefix,ticksuffix:l.ticksuffix,showticksuffix:l.showticksuffix,separatethousands:l.separatethousands,exponentformat:l.exponentformat,minexponent:l.minexponent,showexponent:l.showexponent,title:{text:{valType:"string"},font:S({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:S({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(D){D.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(D,O,t){var l=t(3400),S=t(31780),i=t(26332),C=t(25404),w=t(95936),v=t(42568),m=t(42996);D.exports=function(n,s,o){var h=S.newContainer(s,"colorbar"),f=n.colorbar||{};function u(W,V){return l.coerce(f,h,m,W,V)}var b=o.margin||{t:0,b:0,l:0,r:0},p=o.width-b.l-b.r,E=o.height-b.t-b.b,g=u("orientation"),c=g==="v",y=u("thicknessmode");u("thickness",y==="fraction"?30/(c?p:E):30);var A=u("lenmode");u("len",A==="fraction"?1:c?E:p);var M=u("yref"),R=u("xref"),T=M==="paper",L=R==="paper",P,d,k,I="left";c?(k="middle",I=L?"left":"right",P=L?1.02:1,d=.5):(k=T?"bottom":"top",I="center",P=.5,d=T?1.02:1),l.coerce(f,h,{x:{valType:"number",min:L?-2:0,max:L?3:1,dflt:P}},"x"),l.coerce(f,h,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:d}},"y"),u("xanchor",I),u("xpad"),u("yanchor",k),u("ypad"),l.noneOrAll(f,h,["x","y"]),u("outlinecolor"),u("outlinewidth"),u("bordercolor"),u("borderwidth"),u("bgcolor");var N=l.coerce(f,h,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");u("ticklabeloverflow",N.indexOf("inside")!==-1?"hide past domain":"hide past div"),i(f,h,u,"linear");var B=o.font,G={noAutotickangles:!0,outerTicks:!1,font:B};N.indexOf("inside")!==-1&&(G.bgColor="black"),v(f,h,u,"linear",G),w(f,h,u,"linear",G),C(f,h,u,"linear",G),u("title.text",o._dfltTitle.colorbar);var U=h.showticklabels?h.tickfont:B,H=l.extendFlat({},U,{color:B.color,size:l.bigFont(U.size)});l.coerceFont(u,"title.font",H),u("title.side",c?"top":"right")}},37848:function(D,O,t){var l=t(33428),S=t(49760),i=t(7316),C=t(24040),w=t(54460),v=t(86476),m=t(3400),a=m.strTranslate,n=t(92880).extendFlat,s=t(93972),o=t(43616),h=t(76308),f=t(81668),u=t(72736),b=t(94288).flipScale,p=t(28336),E=t(37668),g=t(94724),c=t(84284),y=c.LINE_SPACING,A=c.FROM_TL,M=c.FROM_BR,R=t(63964).cn;function T(N){var B=N._fullLayout,G=B._infolayer.selectAll("g."+R.colorbar).data(L(N),function(U){return U._id});G.enter().append("g").attr("class",function(U){return U._id}).classed(R.colorbar,!0),G.each(function(U){var H=l.select(this);m.ensureSingle(H,"rect",R.cbbg),m.ensureSingle(H,"g",R.cbfills),m.ensureSingle(H,"g",R.cblines),m.ensureSingle(H,"g",R.cbaxis,function(V){V.classed(R.crisp,!0)}),m.ensureSingle(H,"g",R.cbtitleunshift,function(V){V.append("g").classed(R.cbtitle,!0)}),m.ensureSingle(H,"rect",R.cboutline);var W=P(H,U,N);W&&W.then&&(N._promises||[]).push(W),N._context.edits.colorbarPosition&&d(H,U,N)}),G.exit().each(function(U){i.autoMargin(N,U._id)}).remove(),G.order()}function L(N){var B=N._fullLayout,G=N.calcdata,U=[],H,W,V,$;function Z(re){return n(re,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function q(){typeof $.calc=="function"?$.calc(N,V,H):(H._fillgradient=W.reversescale?b(W.colorscale):W.colorscale,H._zrange=[W[$.min],W[$.max]])}for(var ae=0;ae1){var We=Math.pow(10,Math.floor(Math.log(Ze)/Math.LN10));Be*=We*m.roundUp(Ze/We,[2,5,10]),(Math.abs(Te.start)/Te.size+1e-6)%1<2e-6&&(wt.tick0=0)}wt.dtick=Be}wt.domain=U?[lt+J/ee.h,lt+$e-J/ee.h]:[lt+Q/ee.w,lt+$e-Q/ee.w],wt.setScale(),N.attr("transform",a(Math.round(ee.l),Math.round(ee.t)));var Fe=N.select("."+R.cbtitleunshift).attr("transform",a(-Math.round(ee.l),-Math.round(ee.t))),Me=wt.ticklabelposition,we=wt.title.font.size,Re=N.select("."+R.cbaxis),Pe,Ve=0,Je=0;function ot(xt,Lt){var Xt={propContainer:wt,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:re._dfltTitle.colorbar,containerGroup:N.select("."+R.cbtitle)},dr=xt.charAt(0)==="h"?xt.substr(1):"h"+xt;N.selectAll("."+dr+",."+dr+"-math-group").remove(),f.draw(G,xt,n(Xt,Lt||{}))}function yt(){if(U&&et||!U&&!et){var xt,Lt;xe==="top"&&(xt=Q+ee.l+st*oe,Lt=J+ee.t+vt*(1-lt-$e)+3+we*.75),xe==="bottom"&&(xt=Q+ee.l+st*oe,Lt=J+ee.t+vt*(1-lt)-3-we*.25),xe==="right"&&(Lt=J+ee.t+vt*K+3+we*.75,xt=Q+ee.l+st*lt),ot(wt._id+"title",{attributes:{x:xt,y:Lt,"text-anchor":U?"start":"middle"}})}}function ut(){if(U&&!et||!U&&et){var xt=wt.position||0,Lt=wt._offset+wt._length/2,Xt,dr;if(xe==="right")dr=Lt,Xt=ee.l+st*xt+10+we*(wt.showticklabels?1:.5);else if(Xt=Lt,xe==="bottom"&&(dr=ee.t+vt*xt+10+(Me.indexOf("inside")===-1?wt.tickfont.size:0)+(wt.ticks!=="intside"&&B.ticklen||0)),xe==="top"){var Tt=he.text.split("
").length;dr=ee.t+vt*xt+10-Ue-y*we*Tt}ot((U?"h":"v")+wt._id+"title",{avoid:{selection:l.select(G).selectAll("g."+wt._id+"tick"),side:xe,offsetTop:U?0:ee.t,offsetLeft:U?ee.l:0,maxShift:U?re.width:re.height},attributes:{x:Xt,y:dr,"text-anchor":"middle"},transform:{rotate:U?-90:0,offset:0}})}}function It(){if(!U&&!et||U&&et){var xt=N.select("."+R.cbtitle),Lt=xt.select("text"),Xt=[-Z/2,Z/2],dr=xt.select(".h"+wt._id+"title-math-group").node(),Tt=15.6;Lt.node()&&(Tt=parseInt(Lt.node().style.fontSize,10)*y);var Kt;if(dr?(Kt=o.bBox(dr),Je=Kt.width,Ve=Kt.height,Ve>Tt&&(Xt[1]-=(Ve-Tt)/2)):Lt.node()&&!Lt.classed(R.jsPlaceholder)&&(Kt=o.bBox(Lt.node()),Je=Kt.width,Ve=Kt.height),U){if(Ve){if(Ve+=5,xe==="top")wt.domain[1]-=Ve/ee.h,Xt[1]*=-1;else{wt.domain[0]+=Ve/ee.h;var qt=u.lineCount(Lt);Xt[1]+=(1-qt)*Tt}xt.attr("transform",a(Xt[0],Xt[1])),wt.setScale()}}else Je&&(xe==="right"&&(wt.domain[0]+=(Je+we/2)/ee.w),xt.attr("transform",a(Xt[0],Xt[1])),wt.setScale())}N.selectAll("."+R.cbfills+",."+R.cblines).attr("transform",U?a(0,Math.round(ee.h*(1-wt.domain[1]))):a(Math.round(ee.w*wt.domain[0]),0)),Re.attr("transform",U?a(0,Math.round(-ee.t)):a(Math.round(-ee.l),0));var br=N.select("."+R.cbfills).selectAll("rect."+R.cbfill).attr("style","").data(be);br.enter().append("rect").classed(R.cbfill,!0).attr("style",""),br.exit().remove();var sr=Ee.map(wt.c2p).map(Math.round).sort(function(zt,Ft){return zt-Ft});br.each(function(zt,Ft){var Wt=[Ft===0?Ee[0]:(be[Ft]+be[Ft-1])/2,Ft===be.length-1?Ee[1]:(be[Ft]+be[Ft+1])/2].map(wt.c2p).map(Math.round);U&&(Wt[1]=m.constrain(Wt[1]+(Wt[1]>Wt[0])?1:-1,sr[0],sr[1]));var jt=l.select(this).attr(U?"x":"y",at).attr(U?"y":"x",l.min(Wt)).attr(U?"width":"height",Math.max(Ue,2)).attr(U?"height":"width",Math.max(l.max(Wt)-l.min(Wt),2));if(B._fillgradient)o.gradient(jt,G,B._id,U?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var er=ke(zt).replace("e-","");jt.attr("fill",S(er).toHexString())}});var Ct=N.select("."+R.cblines).selectAll("path."+R.cbline).data(le.color&&le.width?Ie:[]);Ct.enter().append("path").classed(R.cbline,!0),Ct.exit().remove(),Ct.each(function(zt){var Ft=at,Wt=Math.round(wt.c2p(zt))+le.width/2%1;l.select(this).attr("d","M"+(U?Ft+","+Wt:Wt+","+Ft)+(U?"h":"v")+Ue).call(o.lineGroupStyle,le.width,Se(zt),le.dash)}),Re.selectAll("g."+wt._id+"tick,path").remove();var ht=at+Ue+(Z||0)/2-(B.ticks==="outside"?1:0),Mt=w.calcTicks(wt),Rt=w.getTickSigns(wt)[2];return w.drawTicks(G,wt,{vals:wt.ticks==="inside"?w.clipEnds(wt,Mt):Mt,layer:Re,path:w.makeTickPath(wt,ht,Rt),transFn:w.makeTransTickFn(wt)}),w.drawLabels(G,wt,{vals:Mt,layer:Re,transFn:w.makeTransTickLabelFn(wt),labelFns:w.makeLabelFns(wt,ht)})}function Vt(){var xt,Lt=Ue+Z/2;Me.indexOf("inside")===-1&&(xt=o.bBox(Re.node()),Lt+=U?xt.width:xt.height),Pe=Fe.select("text");var Xt=0,dr=U&&xe==="top",Tt=!U&&xe==="right",Kt=0;if(Pe.node()&&!Pe.classed(R.jsPlaceholder)){var qt,br=Fe.select(".h"+wt._id+"title-math-group").node();br&&(U&&et||!U&&!et)?(xt=o.bBox(br),Xt=xt.width,qt=xt.height):(xt=o.bBox(Fe.node()),Xt=xt.right-ee.l-(U?at:dt),qt=xt.bottom-ee.t-(U?dt:at),!U&&xe==="top"&&(Lt+=xt.height,Kt=xt.height)),Tt&&(Pe.attr("transform",a(Xt/2+we/2,0)),Xt*=2),Lt=Math.max(Lt,U?Xt:qt)}var sr=(U?Q:J)*2+Lt+q+Z/2,Ct=0;!U&&he.text&&fe==="bottom"&&K<=0&&(Ct=sr/2,sr+=Ct,Kt+=Ct),re._hColorbarMoveTitle=Ct,re._hColorbarMoveCBTitle=Kt;var ht=q+Z,Mt=(U?at:dt)-ht/2-(U?Q:0),Rt=(U?dt:at)-(U?ze:J+Kt-Ct);N.select("."+R.cbbg).attr("x",Mt).attr("y",Rt).attr(U?"width":"height",Math.max(sr-Ct,2)).attr(U?"height":"width",Math.max(ze+ht,2)).call(h.fill,ae).call(h.stroke,B.bordercolor).style("stroke-width",q);var zt=Tt?Math.max(Xt-10,0):0;N.selectAll("."+R.cboutline).attr("x",(U?at:dt+Q)+zt).attr("y",(U?dt+J-ze:at)+(dr?Ve:0)).attr(U?"width":"height",Math.max(Ue,2)).attr(U?"height":"width",Math.max(ze-(U?2*J+Ve:2*Q+zt),2)).call(h.stroke,B.outlinecolor).style({fill:"none","stroke-width":Z});var Ft=U?nt*sr:0,Wt=U?0:(1-mt)*sr-Kt;if(Ft=ce?ee.l-Ft:-Ft,Wt=ne?ee.t-Wt:-Wt,N.attr("transform",a(Ft,Wt)),!U&&(q||S(ae).getAlpha()&&!S.equals(re.paper_bgcolor,ae))){var jt=Re.selectAll("text"),er=jt[0].length,hr=N.select("."+R.cbbg).node(),vr=o.bBox(hr),pr=o.getTranslate(N),Ke=2;jt.each(function(wr,Sr){var yr=0,Xr=er-1;if(Sr===yr||Sr===Xr){var kr=o.bBox(this),Dr=o.getTranslate(this),bn;if(Sr===Xr){var un=kr.right+Dr.x,Fn=vr.right+pr.x+dt-q-Ke+oe;bn=Fn-un,bn>0&&(bn=0)}else if(Sr===yr){var On=kr.left+Dr.x,gr=vr.left+pr.x+dt+q+Ke;bn=gr-On,bn<0&&(bn=0)}bn&&(er<3?this.setAttribute("transform","translate("+bn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Xe={},Ut=A[ie],Bt=M[ie],Qt=A[fe],or=M[fe],fr=sr-Ue;U?(W==="pixels"?(Xe.y=K,Xe.t=ze*Qt,Xe.b=ze*or):(Xe.t=Xe.b=0,Xe.yt=K+H*Qt,Xe.yb=K-H*or),$==="pixels"?(Xe.x=oe,Xe.l=sr*Ut,Xe.r=sr*Bt):(Xe.l=fr*Ut,Xe.r=fr*Bt,Xe.xl=oe-V*Ut,Xe.xr=oe+V*Bt)):(W==="pixels"?(Xe.x=oe,Xe.l=ze*Ut,Xe.r=ze*Bt):(Xe.l=Xe.r=0,Xe.xl=oe+H*Ut,Xe.xr=oe-H*Bt),$==="pixels"?(Xe.y=1-K,Xe.t=sr*Qt,Xe.b=sr*or):(Xe.t=fr*Qt,Xe.b=fr*or,Xe.yt=K-V*Qt,Xe.yb=K+V*or));var ar=B.y<.5?"b":"t",Ht=B.x<.5?"l":"r";G._fullLayout._reservedMargin[B._id]={};var mr={r:re.width-Mt-Ft,l:Mt+Xe.r,b:re.height-Rt-Wt,t:Rt+Xe.b};ce&&ne?i.autoMargin(G,B._id,Xe):ce?G._fullLayout._reservedMargin[B._id][ar]=mr[ar]:ne||U?G._fullLayout._reservedMargin[B._id][Ht]=mr[Ht]:G._fullLayout._reservedMargin[B._id][ar]=mr[ar]}return m.syncOrAsync([i.previousPromises,yt,It,ut,i.previousPromises,Vt],G)}function d(N,B,G){var U=B.orientation==="v",H=G._fullLayout,W=H._size,V,$,Z;v.init({element:N.node(),gd:G,prepFn:function(){V=N.attr("transform"),s(N)},moveFn:function(q,ae){N.attr("transform",V+a(q,ae)),$=v.align((U?B._uFrac:B._vFrac)+q/W.w,U?B._thickFrac:B._lenFrac,0,1,B.xanchor),Z=v.align((U?B._vFrac:1-B._uFrac)-ae/W.h,U?B._lenFrac:B._thickFrac,0,1,B.yanchor);var ie=v.getCursor($,Z,B.xanchor,B.yanchor);s(N,ie)},doneFn:function(){if(s(N),$!==void 0&&Z!==void 0){var q={};q[B._propPrefix+"x"]=$,q[B._propPrefix+"y"]=Z,B._traceIndex!==void 0?C.call("_guiRestyle",G,q,B._traceIndex):C.call("_guiRelayout",G,q)}}})}function k(N,B,G){var U=B._levels,H=[],W=[],V,$,Z=U.end+U.size/100,q=U.size,ae=1.001*G[0]-.001*G[1],ie=1.001*G[1]-.001*G[0];for($=0;$<1e5&&(V=U.start+$*q,!(q>0?V>=Z:V<=Z));$++)V>ae&&V0?V>=Z:V<=Z));$++)V>G[0]&&Vp-u?u=p-(b-p):b-p=0?c=a.colorscale.sequential:c=a.colorscale.sequentialminus,h._sync("colorscale",c)}}},95504:function(D,O,t){var l=t(3400),S=t(94288).hasColorscale,i=t(94288).extractOpts;D.exports=function(w,v){function m(u,b){var p=u["_"+b];p!==void 0&&(u[b]=p)}function a(u,b){var p=b.container?l.nestedProperty(u,b.container).get():u;if(p)if(p.coloraxis)p._colorAx=v[p.coloraxis];else{var E=i(p),g=E.auto;(g||E.min===void 0)&&m(p,b.min),(g||E.max===void 0)&&m(p,b.max),E.autocolorscale&&m(p,"colorscale")}}for(var n=0;n=0;c--,y++){var A=p[c];g[y]=[1-A[0],A[1]]}return g}function f(p,E){E=E||{};for(var g=p.domain,c=p.range,y=c.length,A=new Array(y),M=0;M1.3333333333333333-m?v:m}},67416:function(D,O,t){var l=t(3400),S=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];D.exports=function(C,w,v,m){return v==="left"?C=0:v==="center"?C=1:v==="right"?C=2:C=l.constrain(Math.floor(C*3),0,2),m==="bottom"?w=0:m==="middle"?w=1:m==="top"?w=2:w=l.constrain(Math.floor(w*3),0,2),S[w][C]}},72760:function(D,O){O.selectMode=function(t){return t==="lasso"||t==="select"},O.drawMode=function(t){return t==="drawclosedpath"||t==="drawopenpath"||t==="drawline"||t==="drawrect"||t==="drawcircle"},O.openMode=function(t){return t==="drawline"||t==="drawopenpath"},O.rectMode=function(t){return t==="select"||t==="drawline"||t==="drawrect"||t==="drawcircle"},O.freeMode=function(t){return t==="lasso"||t==="drawclosedpath"||t==="drawopenpath"},O.selectingOrDrawing=function(t){return O.freeMode(t)||O.rectMode(t)}},86476:function(D,O,t){var l=t(29128),S=t(52264),i=t(89184),C=t(3400).removeElement,w=t(33816),v=D.exports={};v.align=t(78316),v.getCursor=t(67416);var m=t(2616);v.unhover=m.wrapped,v.unhoverRaw=m.raw,v.init=function(o){var h=o.gd,f=1,u=h._context.doubleClickDelay,b=o.element,p,E,g,c,y,A,M,R;h._mouseDownTime||(h._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=P,i?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=P,b.addEventListener("touchstart",P,{passive:!1})):b.ontouchstart=P;function T(I,N,B){return Math.abs(I)"u"&&typeof I.clientY>"u"&&(I.clientX=p,I.clientY=E),g=new Date().getTime(),g-h._mouseDownTimeu&&(f=Math.max(f-1,1)),h._dragged)o.doneFn&&o.doneFn();else if(o.clickFn&&o.clickFn(f,A),!R){var N;try{N=new MouseEvent("click",I)}catch{var B=n(I);N=document.createEvent("MouseEvents"),N.initMouseEvent("click",I.bubbles,I.cancelable,I.view,I.detail,I.screenX,I.screenY,B[0],B[1],I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget)}M.dispatchEvent(N)}h._dragging=!1,h._dragged=!1}};function a(){var s=document.createElement("div");s.className="dragcover";var o=s.style;return o.position="fixed",o.left=0,o.right=0,o.top=0,o.bottom=0,o.zIndex=999999999,o.background="none",document.body.appendChild(s),s}v.coverSlip=a;function n(s){return l(s.changedTouches?s.changedTouches[0]:s,document.body)}},2616:function(D,O,t){var l=t(95924),S=t(91200),i=t(52200).getGraphDiv,C=t(92456),w=D.exports={};w.wrapped=function(v,m,a){v=i(v),v._fullLayout&&S.clear(v._fullLayout._uid+C.HOVERID),w.raw(v,m,a)},w.raw=function(m,a){var n=m._fullLayout,s=m._hoverdata;a||(a={}),!(a.target&&!m._dragged&&l.triggerHandler(m,"plotly_beforehover",a)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),m._hoverdata=void 0,a.target&&s&&m.emit("plotly_unhover",{event:a,points:s}))}},98192:function(D,O){O.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},O.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(D,O,t){var l=t(33428),S=t(3400),i=S.numberFormat,C=t(38248),w=t(49760),v=t(24040),m=t(76308),a=t(8932),n=S.strTranslate,s=t(72736),o=t(9616),h=t(84284),f=h.LINE_SPACING,u=t(13448).DESELECTDIM,b=t(43028),p=t(7152),E=t(10624).appendArrayPointValue,g=D.exports={};g.font=function(Te,Ae,be,Ie){S.isPlainObject(Ae)&&(Ie=Ae.color,be=Ae.size,Ae=Ae.family),Ae&&Te.style("font-family",Ae),be+1&&Te.style("font-size",be+"px"),Ie&&Te.call(m.fill,Ie)},g.setPosition=function(Te,Ae,be){Te.attr("x",Ae).attr("y",be)},g.setSize=function(Te,Ae,be){Te.attr("width",Ae).attr("height",be)},g.setRect=function(Te,Ae,be,Ie,Ue){Te.call(g.setPosition,Ae,be).call(g.setSize,Ie,Ue)},g.translatePoint=function(Te,Ae,be,Ie){var Ue=be.c2p(Te.x),Ne=Ie.c2p(Te.y);if(C(Ue)&&C(Ne)&&Ae.node())Ae.node().nodeName==="text"?Ae.attr("x",Ue).attr("y",Ne):Ae.attr("transform",n(Ue,Ne));else return!1;return!0},g.translatePoints=function(Te,Ae,be){Te.each(function(Ie){var Ue=l.select(this);g.translatePoint(Ie,Ue,Ae,be)})},g.hideOutsideRangePoint=function(Te,Ae,be,Ie,Ue,Ne){Ae.attr("display",be.isPtWithinRange(Te,Ue)&&Ie.isPtWithinRange(Te,Ne)?null:"none")},g.hideOutsideRangePoints=function(Te,Ae){if(Ae._hasClipOnAxisFalse){var be=Ae.xaxis,Ie=Ae.yaxis;Te.each(function(Ue){var Ne=Ue[0].trace,ze=Ne.xcalendar,$e=Ne.ycalendar,st=v.traceIs(Ne,"bar-like")?".bartext":".point,.textpoint";Te.selectAll(st).each(function(vt){g.hideOutsideRangePoint(vt,l.select(this),be,Ie,ze,$e)})})}},g.crispRound=function(Te,Ae,be){return!Ae||!C(Ae)?be||0:Te._context.staticPlot?Ae:Ae<1?1:Math.round(Ae)},g.singleLineStyle=function(Te,Ae,be,Ie,Ue){Ae.style("fill","none");var Ne=(((Te||[])[0]||{}).trace||{}).line||{},ze=be||Ne.width||0,$e=Ue||Ne.dash||"";m.stroke(Ae,Ie||Ne.color),g.dashLine(Ae,$e,ze)},g.lineGroupStyle=function(Te,Ae,be,Ie){Te.style("fill","none").each(function(Ue){var Ne=(((Ue||[])[0]||{}).trace||{}).line||{},ze=Ae||Ne.width||0,$e=Ie||Ne.dash||"";l.select(this).call(m.stroke,be||Ne.color).call(g.dashLine,$e,ze)})},g.dashLine=function(Te,Ae,be){be=+be||0,Ae=g.dashStyle(Ae,be),Te.style({"stroke-dasharray":Ae,"stroke-width":be+"px"})},g.dashStyle=function(Te,Ae){Ae=+Ae||1;var be=Math.max(Ae,3);return Te==="solid"?Te="":Te==="dot"?Te=be+"px,"+be+"px":Te==="dash"?Te=3*be+"px,"+3*be+"px":Te==="longdash"?Te=5*be+"px,"+5*be+"px":Te==="dashdot"?Te=3*be+"px,"+be+"px,"+be+"px,"+be+"px":Te==="longdashdot"&&(Te=5*be+"px,"+2*be+"px,"+be+"px,"+2*be+"px"),Te};function c(Te,Ae,be,Ie){var Ue=Ae.fillpattern,Ne=Ae.fillgradient,ze=Ue&&g.getPatternAttr(Ue.shape,0,"");if(ze){var $e=g.getPatternAttr(Ue.bgcolor,0,null),st=g.getPatternAttr(Ue.fgcolor,0,null),vt=Ue.fgopacity,at=g.getPatternAttr(Ue.size,0,8),nt=g.getPatternAttr(Ue.solidity,0,.3),mt=Ae.uid;g.pattern(Te,"point",be,mt,ze,at,nt,void 0,Ue.fillmode,$e,st,vt)}else if(Ne&&Ne.type!=="none"){var rt=Ne.type,lt="scatterfill-"+Ae.uid;if(Ie&&(lt="legendfill-"+Ae.uid),!Ie&&(Ne.start!==void 0||Ne.stop!==void 0)){var dt,wt;rt==="horizontal"?(dt={x:Ne.start,y:0},wt={x:Ne.stop,y:0}):rt==="vertical"&&(dt={x:0,y:Ne.start},wt={x:0,y:Ne.stop}),dt.x=Ae._xA.c2p(dt.x===void 0?Ae._extremes.x.min[0].val:dt.x,!0),dt.y=Ae._yA.c2p(dt.y===void 0?Ae._extremes.y.min[0].val:dt.y,!0),wt.x=Ae._xA.c2p(wt.x===void 0?Ae._extremes.x.max[0].val:wt.x,!0),wt.y=Ae._yA.c2p(wt.y===void 0?Ae._extremes.y.max[0].val:wt.y,!0),Te.call(P,be,lt,"linear",Ne.colorscale,"fill",dt,wt,!0,!1)}else rt==="horizontal"&&(rt=rt+"reversed"),Te.call(g.gradient,be,lt,rt,Ne.colorscale,"fill")}else Ae.fillcolor&&Te.call(m.fill,Ae.fillcolor)}g.singleFillStyle=function(Te,Ae){var be=l.select(Te.node()),Ie=be.data(),Ue=((Ie[0]||[])[0]||{}).trace||{};c(Te,Ue,Ae,!1)},g.fillGroupStyle=function(Te,Ae,be){Te.style("stroke-width",0).each(function(Ie){var Ue=l.select(this);Ie[0].trace&&c(Ue,Ie[0].trace,Ae,be)})};var y=t(71984);g.symbolNames=[],g.symbolFuncs=[],g.symbolBackOffs=[],g.symbolNeedLines={},g.symbolNoDot={},g.symbolNoFill={},g.symbolList=[],Object.keys(y).forEach(function(Te){var Ae=y[Te],be=Ae.n;g.symbolList.push(be,String(be),Te,be+100,String(be+100),Te+"-open"),g.symbolNames[be]=Te,g.symbolFuncs[be]=Ae.f,g.symbolBackOffs[be]=Ae.backoff||0,Ae.needLine&&(g.symbolNeedLines[be]=!0),Ae.noDot?g.symbolNoDot[be]=!0:g.symbolList.push(be+200,String(be+200),Te+"-dot",be+300,String(be+300),Te+"-open-dot"),Ae.noFill&&(g.symbolNoFill[be]=!0)});var A=g.symbolNames.length,M="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";g.symbolNumber=function(Te){if(C(Te))Te=+Te;else if(typeof Te=="string"){var Ae=0;Te.indexOf("-open")>0&&(Ae=100,Te=Te.replace("-open","")),Te.indexOf("-dot")>0&&(Ae+=200,Te=Te.replace("-dot","")),Te=g.symbolNames.indexOf(Te),Te>=0&&(Te+=Ae)}return Te%100>=A||Te>=400?0:Math.floor(Math.max(Te,0))};function R(Te,Ae,be,Ie){var Ue=Te%100;return g.symbolFuncs[Ue](Ae,be,Ie)+(Te>=200?M:"")}var T=i("~f"),L={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};g.gradient=function(Te,Ae,be,Ie,Ue,Ne){var ze=L[Ie];return P(Te,Ae,be,ze.type,Ue,Ne,ze.start,ze.stop,!1,ze.reversed)};function P(Te,Ae,be,Ie,Ue,Ne,ze,$e,st,vt){var at=Ue.length,nt;Ie==="linear"?nt={node:"linearGradient",attrs:{x1:ze.x,y1:ze.y,x2:$e.x,y2:$e.y,gradientUnits:st?"userSpaceOnUse":"objectBoundingBox"},reversed:vt}:Ie==="radial"&&(nt={node:"radialGradient",reversed:vt});for(var mt=new Array(at),rt=0;rt=0&&Te.i===void 0&&(Te.i=Ne.i),Ae.style("opacity",Ie.selectedOpacityFn?Ie.selectedOpacityFn(Te):Te.mo===void 0?ze.opacity:Te.mo),Ie.ms2mrc){var st;Te.ms==="various"||ze.size==="various"?st=3:st=Ie.ms2mrc(Te.ms),Te.mrc=st,Ie.selectedSizeFn&&(st=Te.mrc=Ie.selectedSizeFn(Te));var vt=g.symbolNumber(Te.mx||ze.symbol)||0;Te.om=vt%200>=100;var at=ke(Te,be),nt=K(Te,be);Ae.attr("d",R(vt,st,at,nt))}var mt=!1,rt,lt,dt;if(Te.so)dt=$e.outlierwidth,lt=$e.outliercolor,rt=ze.outliercolor;else{var wt=($e||{}).width;dt=(Te.mlw+1||wt+1||(Te.trace?(Te.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Te?lt=Te.mlcc=Ie.lineScale(Te.mlc):S.isArrayOrTypedArray($e.color)?lt=m.defaultLine:lt=$e.color,S.isArrayOrTypedArray(ze.color)&&(rt=m.defaultLine,mt=!0),"mc"in Te?rt=Te.mcc=Ie.markerScale(Te.mc):rt=ze.color||ze.colors||"rgba(0,0,0,0)",Ie.selectedColorFn&&(rt=Ie.selectedColorFn(Te))}if(Te.om)Ae.call(m.stroke,rt).style({"stroke-width":(dt||1)+"px",fill:"none"});else{Ae.style("stroke-width",(Te.isBlank?0:dt)+"px");var et=ze.gradient,Be=Te.mgt;Be?mt=!0:Be=et&&et.type,S.isArrayOrTypedArray(Be)&&(Be=Be[0],L[Be]||(Be=0));var Ye=ze.pattern,Ze=Ye&&g.getPatternAttr(Ye.shape,Te.i,"");if(Be&&Be!=="none"){var We=Te.mgc;We?mt=!0:We=et.color;var Fe=be.uid;mt&&(Fe+="-"+Te.i),g.gradient(Ae,Ue,Fe,Be,[[0,We],[1,rt]],"fill")}else if(Ze){var Me=!1,we=Ye.fgcolor;!we&&Ne&&Ne.color&&(we=Ne.color,Me=!0);var Re=g.getPatternAttr(we,Te.i,Ne&&Ne.color||null),Pe=g.getPatternAttr(Ye.bgcolor,Te.i,null),Ve=Ye.fgopacity,Je=g.getPatternAttr(Ye.size,Te.i,8),ot=g.getPatternAttr(Ye.solidity,Te.i,.3);Me=Me||Te.mcc||S.isArrayOrTypedArray(Ye.shape)||S.isArrayOrTypedArray(Ye.bgcolor)||S.isArrayOrTypedArray(Ye.fgcolor)||S.isArrayOrTypedArray(Ye.size)||S.isArrayOrTypedArray(Ye.solidity);var yt=be.uid;Me&&(yt+="-"+Te.i),g.pattern(Ae,"point",Ue,yt,Ze,Je,ot,Te.mcc,Ye.fillmode,Pe,Re,Ve)}else S.isArrayOrTypedArray(rt)?m.fill(Ae,rt[Te.i]):m.fill(Ae,rt);dt&&m.stroke(Ae,lt)}},g.makePointStyleFns=function(Te){var Ae={},be=Te.marker;return Ae.markerScale=g.tryColorscale(be,""),Ae.lineScale=g.tryColorscale(be,"line"),v.traceIs(Te,"symbols")&&(Ae.ms2mrc=b.isBubble(Te)?p(Te):function(){return(be.size||6)/2}),Te.selectedpoints&&S.extendFlat(Ae,g.makeSelectedPointStyleFns(Te)),Ae},g.makeSelectedPointStyleFns=function(Te){var Ae={},be=Te.selected||{},Ie=Te.unselected||{},Ue=Te.marker||{},Ne=be.marker||{},ze=Ie.marker||{},$e=Ue.opacity,st=Ne.opacity,vt=ze.opacity,at=st!==void 0,nt=vt!==void 0;(S.isArrayOrTypedArray($e)||at||nt)&&(Ae.selectedOpacityFn=function(Ze){var We=Ze.mo===void 0?Ue.opacity:Ze.mo;return Ze.selected?at?st:We:nt?vt:u*We});var mt=Ue.color,rt=Ne.color,lt=ze.color;(rt||lt)&&(Ae.selectedColorFn=function(Ze){var We=Ze.mcc||mt;return Ze.selected?rt||We:lt||We});var dt=Ue.size,wt=Ne.size,et=ze.size,Be=wt!==void 0,Ye=et!==void 0;return v.traceIs(Te,"symbols")&&(Be||Ye)&&(Ae.selectedSizeFn=function(Ze){var We=Ze.mrc||dt/2;return Ze.selected?Be?wt/2:We:Ye?et/2:We}),Ae},g.makeSelectedTextStyleFns=function(Te){var Ae={},be=Te.selected||{},Ie=Te.unselected||{},Ue=Te.textfont||{},Ne=be.textfont||{},ze=Ie.textfont||{},$e=Ue.color,st=Ne.color,vt=ze.color;return Ae.selectedTextColorFn=function(at){var nt=at.tc||$e;return at.selected?st||nt:vt||(st?nt:m.addOpacity(nt,u))},Ae},g.selectedPointStyle=function(Te,Ae){if(!(!Te.size()||!Ae.selectedpoints)){var be=g.makeSelectedPointStyleFns(Ae),Ie=Ae.marker||{},Ue=[];be.selectedOpacityFn&&Ue.push(function(Ne,ze){Ne.style("opacity",be.selectedOpacityFn(ze))}),be.selectedColorFn&&Ue.push(function(Ne,ze){m.fill(Ne,be.selectedColorFn(ze))}),be.selectedSizeFn&&Ue.push(function(Ne,ze){var $e=ze.mx||Ie.symbol||0,st=be.selectedSizeFn(ze);Ne.attr("d",R(g.symbolNumber($e),st,ke(ze,Ae),K(ze,Ae))),ze.mrc2=st}),Ue.length&&Te.each(function(Ne){for(var ze=l.select(this),$e=0;$e0?be:0}g.textPointStyle=function(Te,Ae,be){if(Te.size()){var Ie;if(Ae.selectedpoints){var Ue=g.makeSelectedTextStyleFns(Ae);Ie=Ue.selectedTextColorFn}var Ne=Ae.texttemplate,ze=be._fullLayout;Te.each(function($e){var st=l.select(this),vt=Ne?S.extractOption($e,Ae,"txt","texttemplate"):S.extractOption($e,Ae,"tx","text");if(!vt&&vt!==0){st.remove();return}if(Ne){var at=Ae._module.formatLabels,nt=at?at($e,Ae,ze):{},mt={};E(mt,Ae,$e.i);var rt=Ae._meta||{};vt=S.texttemplateString(vt,nt,ze._d3locale,mt,$e,rt)}var lt=$e.tp||Ae.textposition,dt=I($e,Ae),wt=Ie?Ie($e):$e.tc||Ae.textfont.color;st.call(g.font,$e.tf||Ae.textfont.family,dt,wt).text(vt).call(s.convertToTspans,be).call(k,lt,dt,$e.mrc)})}},g.selectedTextStyle=function(Te,Ae){if(!(!Te.size()||!Ae.selectedpoints)){var be=g.makeSelectedTextStyleFns(Ae);Te.each(function(Ie){var Ue=l.select(this),Ne=be.selectedTextColorFn(Ie),ze=Ie.tp||Ae.textposition,$e=I(Ie,Ae);m.fill(Ue,Ne);var st=v.traceIs(Ae,"bar-like");k(Ue,ze,$e,Ie.mrc2||Ie.mrc,st)})}};var N=.5;g.smoothopen=function(Te,Ae){if(Te.length<3)return"M"+Te.join("L");var be="M"+Te[0],Ie=[],Ue;for(Ue=1;Ue=st||Ze>=at&&Ze<=st)&&(We<=nt&&We>=vt||We>=nt&&We<=vt)&&(Te=[Ze,We])}return Te}g.applyBackoff=q,g.makeTester=function(){var Te=S.ensureSingleById(l.select("body"),"svg","js-plotly-tester",function(be){be.attr(o.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ae=S.ensureSingle(Te,"path","js-reference-point",function(be){be.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});g.tester=Te,g.testref=Ae},g.savedBBoxes={};var ae=0,ie=1e4;g.bBox=function(Te,Ae,be){be||(be=fe(Te));var Ie;if(be){if(Ie=g.savedBBoxes[be],Ie)return S.extendFlat({},Ie)}else if(Te.childNodes.length===1){var Ue=Te.childNodes[0];if(be=fe(Ue),be){var Ne=+Ue.getAttribute("x")||0,ze=+Ue.getAttribute("y")||0,$e=Ue.getAttribute("transform");if(!$e){var st=g.bBox(Ue,!1,be);return Ne&&(st.left+=Ne,st.right+=Ne),ze&&(st.top+=ze,st.bottom+=ze),st}if(be+="~"+Ne+"~"+ze+"~"+$e,Ie=g.savedBBoxes[be],Ie)return S.extendFlat({},Ie)}}var vt,at;Ae?vt=Te:(at=g.tester.node(),vt=Te.cloneNode(!0),at.appendChild(vt)),l.select(vt).attr("transform",null).call(s.positionText,0,0);var nt=vt.getBoundingClientRect(),mt=g.testref.node().getBoundingClientRect();Ae||at.removeChild(vt);var rt={height:nt.height,width:nt.width,left:nt.left-mt.left,top:nt.top-mt.top,right:nt.right-mt.left,bottom:nt.bottom-mt.top};return ae>=ie&&(g.savedBBoxes={},ae=0),be&&(g.savedBBoxes[be]=rt),ae++,S.extendFlat({},rt)};function fe(Te){var Ae=Te.getAttribute("data-unformatted");if(Ae!==null)return Ae+Te.getAttribute("data-math")+Te.getAttribute("text-anchor")+Te.getAttribute("style")}g.setClipUrl=function(Te,Ae,be){Te.attr("clip-path",Q(Ae,be))};function Q(Te,Ae){if(!Te)return null;var be=Ae._context,Ie=be._exportedPlot?"":be._baseUrl||"";return Ie?"url('"+Ie+"#"+Te+"')":"url(#"+Te+")"}g.getTranslate=function(Te){var Ae=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,be=Te.attr?"attr":"getAttribute",Ie=Te[be]("transform")||"",Ue=Ie.replace(Ae,function(Ne,ze,$e){return[ze,$e].join(" ")}).split(" ");return{x:+Ue[0]||0,y:+Ue[1]||0}},g.setTranslate=function(Te,Ae,be){var Ie=/(\btranslate\(.*?\);?)/,Ue=Te.attr?"attr":"getAttribute",Ne=Te.attr?"attr":"setAttribute",ze=Te[Ue]("transform")||"";return Ae=Ae||0,be=be||0,ze=ze.replace(Ie,"").trim(),ze+=n(Ae,be),ze=ze.trim(),Te[Ne]("transform",ze),ze},g.getScale=function(Te){var Ae=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,be=Te.attr?"attr":"getAttribute",Ie=Te[be]("transform")||"",Ue=Ie.replace(Ae,function(Ne,ze,$e){return[ze,$e].join(" ")}).split(" ");return{x:+Ue[0]||1,y:+Ue[1]||1}},g.setScale=function(Te,Ae,be){var Ie=/(\bscale\(.*?\);?)/,Ue=Te.attr?"attr":"getAttribute",Ne=Te.attr?"attr":"setAttribute",ze=Te[Ue]("transform")||"";return Ae=Ae||1,be=be||1,ze=ze.replace(Ie,"").trim(),ze+="scale("+Ae+","+be+")",ze=ze.trim(),Te[Ne]("transform",ze),ze};var J=/\s*sc.*/;g.setPointGroupScale=function(Te,Ae,be){if(Ae=Ae||1,be=be||1,!!Te){var Ie=Ae===1&&be===1?"":"scale("+Ae+","+be+")";Te.each(function(){var Ue=(this.getAttribute("transform")||"").replace(J,"");Ue+=Ie,Ue=Ue.trim(),this.setAttribute("transform",Ue)})}};var oe=/translate\([^)]*\)\s*$/;g.setTextPointsScale=function(Te,Ae,be){Te&&Te.each(function(){var Ie,Ue=l.select(this),Ne=Ue.select("text");if(Ne.node()){var ze=parseFloat(Ne.attr("x")||0),$e=parseFloat(Ne.attr("y")||0),st=(Ue.attr("transform")||"").match(oe);Ae===1&&be===1?Ie=[]:Ie=[n(ze,$e),"scale("+Ae+","+be+")",n(-ze,-$e)],st&&Ie.push(st),Ue.attr("transform",Ie.join(""))}})};function K(Te,Ae){var be;return Te&&(be=Te.mf),be===void 0&&(be=Ae.marker&&Ae.marker.standoff||0),!Ae._geo&&!Ae._xA?-be:be}g.getMarkerStandoff=K;var ne=Math.atan2,ce=Math.cos,re=Math.sin;function ee(Te,Ae){var be=Ae[0],Ie=Ae[1];return[be*ce(Te)-Ie*re(Te),be*re(Te)+Ie*ce(Te)]}var de,le,he,xe,Ee,Se;function ke(Te,Ae){var be=Te.ma;be===void 0&&(be=Ae.marker.angle,(!be||S.isArrayOrTypedArray(be))&&(be=0));var Ie,Ue,Ne=Ae.marker.angleref;if(Ne==="previous"||Ne==="north"){if(Ae._geo){var ze=Ae._geo.project(Te.lonlat);Ie=ze[0],Ue=ze[1]}else{var $e=Ae._xA,st=Ae._yA;if($e&&st)Ie=$e.c2p(Te.x),Ue=st.c2p(Te.y);else return 90}if(Ae._geo){var vt=Te.lonlat[0],at=Te.lonlat[1],nt=Ae._geo.project([vt,at+1e-5]),mt=Ae._geo.project([vt+1e-5,at]),rt=ne(mt[1]-Ue,mt[0]-Ie),lt=ne(nt[1]-Ue,nt[0]-Ie),dt;if(Ne==="north")dt=be/180*Math.PI;else if(Ne==="previous"){var wt=vt/180*Math.PI,et=at/180*Math.PI,Be=de/180*Math.PI,Ye=le/180*Math.PI,Ze=Be-wt,We=ce(Ye)*re(Ze),Fe=re(Ye)*ce(et)-ce(Ye)*re(et)*ce(Ze);dt=-ne(We,Fe)-Math.PI,de=vt,le=at}var Me=ee(rt,[ce(dt),0]),we=ee(lt,[re(dt),0]);be=ne(Me[1]+we[1],Me[0]+we[0])/Math.PI*180,Ne==="previous"&&!(Se===Ae.uid&&Te.i===Ee+1)&&(be=null)}if(Ne==="previous"&&!Ae._geo)if(Se===Ae.uid&&Te.i===Ee+1&&C(Ie)&&C(Ue)){var Re=Ie-he,Pe=Ue-xe,Ve=Ae.line&&Ae.line.shape||"",Je=Ve.slice(Ve.length-1);Je==="h"&&(Pe=0),Je==="v"&&(Re=0),be+=ne(Pe,Re)/Math.PI*180+90}else be=null}return he=Ie,xe=Ue,Ee=Te.i,Se=Ae.uid,be}g.getMarkerAngle=ke},71984:function(D,O,t){var l=t(21984),S=t(33428).round,i="M0,0Z",C=Math.sqrt(2),w=Math.sqrt(3),v=Math.PI,m=Math.cos,a=Math.sin;D.exports={circle:{n:0,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c="M"+g+",0A"+g+","+g+" 0 1,1 0,-"+g+"A"+g+","+g+" 0 0,1 "+g+",0Z";return E?u(p,E,c):c}},square:{n:1,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"H-"+g+"V-"+g+"H"+g+"Z")}},diamond:{n:2,f:function(b,p,E){if(n(p))return i;var g=S(b*1.3,2);return u(p,E,"M"+g+",0L0,"+g+"L-"+g+",0L0,-"+g+"Z")}},cross:{n:3,f:function(b,p,E){if(n(p))return i;var g=S(b*.4,2),c=S(b*1.2,2);return u(p,E,"M"+c+","+g+"H"+g+"V"+c+"H-"+g+"V"+g+"H-"+c+"V-"+g+"H-"+g+"V-"+c+"H"+g+"V-"+g+"H"+c+"Z")}},x:{n:4,f:function(b,p,E){if(n(p))return i;var g=S(b*.8/C,2),c="l"+g+","+g,y="l"+g+",-"+g,A="l-"+g+",-"+g,M="l-"+g+","+g;return u(p,E,"M0,"+g+c+y+A+y+A+M+A+M+c+M+c+"Z")}},"triangle-up":{n:5,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),y=S(b,2);return u(p,E,"M-"+g+","+c+"H"+g+"L0,-"+y+"Z")}},"triangle-down":{n:6,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),y=S(b,2);return u(p,E,"M-"+g+",-"+c+"H"+g+"L0,"+y+"Z")}},"triangle-left":{n:7,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),y=S(b,2);return u(p,E,"M"+c+",-"+g+"V"+g+"L-"+y+",0Z")}},"triangle-right":{n:8,f:function(b,p,E){if(n(p))return i;var g=S(b*2/w,2),c=S(b/2,2),y=S(b,2);return u(p,E,"M-"+c+",-"+g+"V"+g+"L"+y+",0Z")}},"triangle-ne":{n:9,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M-"+c+",-"+g+"H"+g+"V"+c+"Z")}},"triangle-se":{n:10,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M"+g+",-"+c+"V"+g+"H-"+c+"Z")}},"triangle-sw":{n:11,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M"+c+","+g+"H-"+g+"V-"+c+"Z")}},"triangle-nw":{n:12,f:function(b,p,E){if(n(p))return i;var g=S(b*.6,2),c=S(b*1.2,2);return u(p,E,"M-"+g+","+c+"V-"+g+"H"+c+"Z")}},pentagon:{n:13,f:function(b,p,E){if(n(p))return i;var g=S(b*.951,2),c=S(b*.588,2),y=S(-b,2),A=S(b*-.309,2),M=S(b*.809,2);return u(p,E,"M"+g+","+A+"L"+c+","+M+"H-"+c+"L-"+g+","+A+"L0,"+y+"Z")}},hexagon:{n:14,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b/2,2),y=S(b*w/2,2);return u(p,E,"M"+y+",-"+c+"V"+c+"L0,"+g+"L-"+y+","+c+"V-"+c+"L0,-"+g+"Z")}},hexagon2:{n:15,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b/2,2),y=S(b*w/2,2);return u(p,E,"M-"+c+","+y+"H"+c+"L"+g+",0L"+c+",-"+y+"H-"+c+"L-"+g+",0Z")}},octagon:{n:16,f:function(b,p,E){if(n(p))return i;var g=S(b*.924,2),c=S(b*.383,2);return u(p,E,"M-"+c+",-"+g+"H"+c+"L"+g+",-"+c+"V"+c+"L"+c+","+g+"H-"+c+"L-"+g+","+c+"V-"+c+"Z")}},star:{n:17,f:function(b,p,E){if(n(p))return i;var g=b*1.4,c=S(g*.225,2),y=S(g*.951,2),A=S(g*.363,2),M=S(g*.588,2),R=S(-g,2),T=S(g*-.309,2),L=S(g*.118,2),P=S(g*.809,2),d=S(g*.382,2);return u(p,E,"M"+c+","+T+"H"+y+"L"+A+","+L+"L"+M+","+P+"L0,"+d+"L-"+M+","+P+"L-"+A+","+L+"L-"+y+","+T+"H-"+c+"L0,"+R+"Z")}},hexagram:{n:18,f:function(b,p,E){if(n(p))return i;var g=S(b*.66,2),c=S(b*.38,2),y=S(b*.76,2);return u(p,E,"M-"+y+",0l-"+c+",-"+g+"h"+y+"l"+c+",-"+g+"l"+c+","+g+"h"+y+"l-"+c+","+g+"l"+c+","+g+"h-"+y+"l-"+c+","+g+"l-"+c+",-"+g+"h-"+y+"Z")}},"star-triangle-up":{n:19,f:function(b,p,E){if(n(p))return i;var g=S(b*w*.8,2),c=S(b*.8,2),y=S(b*1.6,2),A=S(b*4,2),M="A "+A+","+A+" 0 0 1 ";return u(p,E,"M-"+g+","+c+M+g+","+c+M+"0,-"+y+M+"-"+g+","+c+"Z")}},"star-triangle-down":{n:20,f:function(b,p,E){if(n(p))return i;var g=S(b*w*.8,2),c=S(b*.8,2),y=S(b*1.6,2),A=S(b*4,2),M="A "+A+","+A+" 0 0 1 ";return u(p,E,"M"+g+",-"+c+M+"-"+g+",-"+c+M+"0,"+y+M+g+",-"+c+"Z")}},"star-square":{n:21,f:function(b,p,E){if(n(p))return i;var g=S(b*1.1,2),c=S(b*2,2),y="A "+c+","+c+" 0 0 1 ";return u(p,E,"M-"+g+",-"+g+y+"-"+g+","+g+y+g+","+g+y+g+",-"+g+y+"-"+g+",-"+g+"Z")}},"star-diamond":{n:22,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2),c=S(b*1.9,2),y="A "+c+","+c+" 0 0 1 ";return u(p,E,"M-"+g+",0"+y+"0,"+g+y+g+",0"+y+"0,-"+g+y+"-"+g+",0Z")}},"diamond-tall":{n:23,f:function(b,p,E){if(n(p))return i;var g=S(b*.7,2),c=S(b*1.4,2);return u(p,E,"M0,"+c+"L"+g+",0L0,-"+c+"L-"+g+",0Z")}},"diamond-wide":{n:24,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2),c=S(b*.7,2);return u(p,E,"M0,"+c+"L"+g+",0L0,-"+c+"L-"+g+",0Z")}},hourglass:{n:25,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"H-"+g+"L"+g+",-"+g+"H-"+g+"Z")},noDot:!0},bowtie:{n:26,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"V-"+g+"L-"+g+","+g+"V-"+g+"Z")},noDot:!0},"circle-cross":{n:27,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g+"M"+g+",0A"+g+","+g+" 0 1,1 0,-"+g+"A"+g+","+g+" 0 0,1 "+g+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b/C,2);return u(p,E,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c+"M"+g+",0A"+g+","+g+" 0 1,1 0,-"+g+"A"+g+","+g+" 0 0,1 "+g+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g+"M"+g+","+g+"H-"+g+"V-"+g+"H"+g+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"L-"+g+",-"+g+"M"+g+",-"+g+"L-"+g+","+g+"M"+g+","+g+"H-"+g+"V-"+g+"H"+g+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(b,p,E){if(n(p))return i;var g=S(b*1.3,2);return u(p,E,"M"+g+",0L0,"+g+"L-"+g+",0L0,-"+g+"ZM0,-"+g+"V"+g+"M-"+g+",0H"+g)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(b,p,E){if(n(p))return i;var g=S(b*1.3,2),c=S(b*.65,2);return u(p,E,"M"+g+",0L0,"+g+"L-"+g+",0L0,-"+g+"ZM-"+c+",-"+c+"L"+c+","+c+"M-"+c+","+c+"L"+c+",-"+c)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"L-"+g+",-"+g+"M"+g+",-"+g+"L-"+g+","+g)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*.85,2);return u(p,E,"M0,"+g+"V-"+g+"M"+g+",0H-"+g+"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(b,p,E){if(n(p))return i;var g=S(b/2,2),c=S(b,2);return u(p,E,"M"+g+","+c+"V-"+c+"M"+(g-c)+",-"+c+"V"+c+"M"+c+","+g+"H-"+c+"M-"+c+","+(g-c)+"H"+c)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),y=S(b*.8,2);return u(p,E,"M-"+g+","+y+"L0,0M"+g+","+y+"L0,0M0,-"+c+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),y=S(b*.8,2);return u(p,E,"M-"+g+",-"+y+"L0,0M"+g+",-"+y+"L0,0M0,"+c+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),y=S(b*.8,2);return u(p,E,"M"+y+","+g+"L0,0M"+y+",-"+g+"L0,0M-"+c+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(b,p,E){if(n(p))return i;var g=S(b*1.2,2),c=S(b*1.6,2),y=S(b*.8,2);return u(p,E,"M-"+y+","+g+"L0,0M-"+y+",-"+g+"L0,0M"+c+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2);return u(p,E,"M"+g+",0H-"+g)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(b,p,E){if(n(p))return i;var g=S(b*1.4,2);return u(p,E,"M0,"+g+"V-"+g)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+",-"+g+"L-"+g+","+g)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(b,p,E){if(n(p))return i;var g=S(b,2);return u(p,E,"M"+g+","+g+"L-"+g+",-"+g)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M0,0L-"+g+","+c+"H"+g+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M0,0L-"+g+",-"+c+"H"+g+"Z")},noDot:!0},"arrow-left":{n:47,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,0L"+g+",-"+c+"V"+c+"Z")},noDot:!0},"arrow-right":{n:48,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,0L-"+g+",-"+c+"V"+c+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M-"+g+",0H"+g+"M0,0L-"+g+","+c+"H"+g+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(b,p,E){if(n(p))return i;var g=S(b,2),c=S(b*2,2);return u(p,E,"M-"+g+",0H"+g+"M0,0L-"+g+",-"+c+"H"+g+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,-"+c+"V"+c+"M0,0L"+g+",-"+c+"V"+c+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(b,p,E){if(n(p))return i;var g=S(b*2,2),c=S(b,2);return u(p,E,"M0,-"+c+"V"+c+"M0,0L-"+g+",-"+c+"V"+c+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(b,p,E){if(n(p))return i;var g=v/2.5,c=2*b*m(g),y=2*b*a(g);return u(p,E,"M0,0L"+-c+","+y+"L"+c+","+y+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(b,p,E){if(n(p))return i;var g=v/4,c=2*b*m(g),y=2*b*a(g);return u(p,E,"M0,0L"+-c+","+y+"A "+2*b+","+2*b+" 0 0 1 "+c+","+y+"Z")},backoff:.4,noDot:!0}};function n(b){return b===null}var s,o,h,f;function u(b,p,E){if((!b||b%360===0)&&!p)return E;if(h===b&&f===p&&s===E)return o;h=b,f=p,s=E;function g(B,G){var U=m(B),H=a(B),W=G[0],V=G[1]+(p||0);return[W*U-V*H,W*H+V*U]}for(var c=b/180*v,y=0,A=0,M=l(E),R="",T=0;T0,b=m._context.staticPlot;a.each(function(p){var E=p[0].trace,g=E.error_x||{},c=E.error_y||{},y;E.ids&&(y=function(T){return T.id});var A=C.hasMarkers(E)&&E.marker.maxdisplayed>0;!c.visible&&!g.visible&&(p=[]);var M=l.select(this).selectAll("g.errorbar").data(p,y);if(M.exit().remove(),!!p.length){g.visible||M.selectAll("path.xerror").remove(),c.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var R=M.enter().append("g").classed("errorbar",!0);u&&R.style("opacity",0).transition().duration(s.duration).style("opacity",1),i.setClipUrl(M,n.layerClipId,m),M.each(function(T){var L=l.select(this),P=w(T,h,f);if(!(A&&!T.vis)){var d,k=L.select("path.yerror");if(c.visible&&S(P.x)&&S(P.yh)&&S(P.ys)){var I=c.width;d="M"+(P.x-I)+","+P.yh+"h"+2*I+"m-"+I+",0V"+P.ys,P.noYS||(d+="m-"+I+",0h"+2*I),o=!k.size(),o?k=L.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0):u&&(k=k.transition().duration(s.duration).ease(s.easing)),k.attr("d",d)}else k.remove();var N=L.select("path.xerror");if(g.visible&&S(P.y)&&S(P.xh)&&S(P.xs)){var B=(g.copy_ystyle?c:g).width;d="M"+P.xh+","+(P.y-B)+"v"+2*B+"m0,-"+B+"H"+P.xs,P.noXS||(d+="m0,-"+B+"v"+2*B),o=!N.size(),o?N=L.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0):u&&(N=N.transition().duration(s.duration).ease(s.easing)),N.attr("d",d)}else N.remove()}})}})};function w(v,m,a){var n={x:m.c2p(v.x),y:a.c2p(v.y)};return v.yh!==void 0&&(n.yh=a.c2p(v.yh),n.ys=a.c2p(v.ys),S(n.ys)||(n.noYS=!0,n.ys=a.c2p(v.ys,!0))),v.xh!==void 0&&(n.xh=m.c2p(v.xh),n.xs=m.c2p(v.xs),S(n.xs)||(n.noXS=!0,n.xs=m.c2p(v.xs,!0))),n}},92036:function(D,O,t){var l=t(33428),S=t(76308);D.exports=function(C){C.each(function(w){var v=w[0].trace,m=v.error_y||{},a=v.error_x||{},n=l.select(this);n.selectAll("path.yerror").style("stroke-width",m.thickness+"px").call(S.stroke,m.color),a.copy_ystyle&&(a=m),n.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(S.stroke,a.color)})}},55756:function(D,O,t){var l=t(25376),S=t(65460).hoverlabel,i=t(92880).extendFlat;D.exports={hoverlabel:{bgcolor:i({},S.bgcolor,{arrayOk:!0}),bordercolor:i({},S.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:i({},S.align,{arrayOk:!0}),namelength:i({},S.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(D,O,t){var l=t(3400),S=t(24040);D.exports=function(w){var v=w.calcdata,m=w._fullLayout;function a(f){return function(u){return l.coerceHoverinfo({hoverinfo:u},{_module:f._module},m)}}for(var n=0;n=0&&n.indexAe[0]._length||ot<0||ot>be[0]._length)return h.unhoverRaw(ne,ce)}if(ce.pointerX=Je+Ae[0]._offset,ce.pointerY=ot+be[0]._offset,"xval"in ce?mt=b.flat(le,ce.xval):mt=b.p2c(Ae,Je),"yval"in ce?rt=b.flat(le,ce.yval):rt=b.p2c(be,ot),!S(mt[0])||!S(rt[0]))return C.warn("Fx.hover failed",ce,ne),h.unhoverRaw(ne,ce)}var It=1/0;function Vt(gr,Br){for(dt=0;dtwe&&(at.splice(0,we),It=at[0].distance),Se&&vt!==0&&at.length===0){Me.distance=vt,Me.index=!1;var wn=et._module.hoverPoints(Me,We,Fe,"closest",{hoverLayer:he._hoverlayer});if(wn&&(wn=wn.filter(function(ma){return ma.spikeDistance<=vt})),wn&&wn.length){var Nn,Yn=wn.filter(function(ma){return ma.xa.showspikes&&ma.xa.spikesnap!=="hovered data"});if(Yn.length){var ga=Yn[0];S(ga.x0)&&S(ga.y0)&&(Nn=Lt(ga),(!Re.vLinePoint||Re.vLinePoint.spikeDistance>Nn.spikeDistance)&&(Re.vLinePoint=Nn))}var Ia=wn.filter(function(ma){return ma.ya.showspikes&&ma.ya.spikesnap!=="hovered data"});if(Ia.length){var Ma=Ia[0];S(Ma.x0)&&S(Ma.y0)&&(Nn=Lt(Ma),(!Re.hLinePoint||Re.hLinePoint.spikeDistance>Nn.spikeDistance)&&(Re.hLinePoint=Nn))}}}}}Vt();function xt(gr,Br,Zr){for(var Wr=null,fn=1/0,Tn,wn=0;wn0&&Math.abs(gr.distance)zt-1;pr--)vr(at[pr]);at=jt,Tt()}var Ke=ne._hoverdata,Xe=[],Ut=J(ne),Bt=oe(ne);for(lt=0;lt1||at.length>1)||$e==="closest"&&Pe&&at.length>1,bn=o.combine(he.plot_bgcolor||o.background,he.paper_bgcolor),un=B(at,{gd:ne,hovermode:$e,rotateLabels:Dr,bgColor:bn,container:he._hoverlayer,outerContainer:he._paper.node(),commonLabelOpts:he.hoverlabel,hoverdistance:he.hoverdistance}),Fn=un.hoverLabels;if(b.isUnifiedHover($e)||(U(Fn,Dr,he,un.commonLabelBoundingBox),V(Fn,Dr,he._invScaleX,he._invScaleY)),de&&de.tagName){var On=u.getComponentMethod("annotations","hasClickToShow")(ne,Xe);n(l.select(de),On?"pointer":"")}!de||ee||!q(ne,ce,Ke)||(Ke&&ne.emit("plotly_unhover",{event:ce,points:Ke}),ne.emit("plotly_hover",{event:ce,points:ne._hoverdata,xaxes:Ae,yaxes:be,xvals:mt,yvals:rt}))}function I(ne){return[ne.trace.index,ne.index,ne.x0,ne.y0,ne.name,ne.attr,ne.xa?ne.xa._id:"",ne.ya?ne.ya._id:""].join(",")}var N=/([\s\S]*)<\/extra>/;function B(ne,ce){var re=ce.gd,ee=re._fullLayout,de=ce.hovermode,le=ce.rotateLabels,he=ce.bgColor,xe=ce.container,Ee=ce.outerContainer,Se=ce.commonLabelOpts||{};if(ne.length===0)return[[]];var ke=ce.fontFamily||p.HOVERFONT,Te=ce.fontSize||p.HOVERFONTSIZE,Ae=ne[0],be=Ae.xa,Ie=Ae.ya,Ue=de.charAt(0),Ne=Ue+"Label",ze=Ae[Ne];if(ze===void 0&&be.type==="multicategory")for(var $e=0;$eee.width-Qt&&(or=ee.width-Qt),Wt.attr("d","M"+(Xe-or)+",0L"+(Xe-or+T)+","+Bt+T+"H"+Qt+"v"+Bt+(L*2+Ke.height)+"H"+-Qt+"V"+Bt+T+"H"+(Xe-or-T)+"Z"),Xe=or,Be.minX=Xe-Qt,Be.maxX=Xe+Qt,be.side==="top"?(Be.minY=Ut-(L*2+Ke.height),Be.maxY=Ut-L):(Be.minY=Ut+L,Be.maxY=Ut+(L*2+Ke.height))}else{var fr,ar,Ht;Ie.side==="right"?(fr="start",ar=1,Ht="",Xe=be._offset+be._length):(fr="end",ar=-1,Ht="-",Xe=be._offset),Ut=Ie._offset+(Ae.y0+Ae.y1)/2,jt.attr("text-anchor",fr),Wt.attr("d","M0,0L"+Ht+T+","+T+"V"+(L+Ke.height/2)+"h"+Ht+(L*2+Ke.width)+"V-"+(L+Ke.height/2)+"H"+Ht+T+"V-"+T+"Z"),Be.minY=Ut-(L+Ke.height/2),Be.maxY=Ut+(L+Ke.height/2),Ie.side==="right"?(Be.minX=Xe+T,Be.maxX=Xe+T+(L*2+Ke.width)):(Be.minX=Xe-T-(L*2+Ke.width),Be.maxX=Xe-T);var mr=Ke.height/2,wr=vt-Ke.top-mr,Sr="clip"+ee._uid+"commonlabel"+Ie._id,yr;if(Xe=0?Mt=br:sr+Vt=0?Mt=sr:Ct+Vt=0?Rt=Kt:qt+xt=0?Rt=qt:ht+xt=0,(Ft.idealAlign==="top"||!bn)&&un?(mr-=Sr/2,Ft.anchor="end"):bn?(mr+=Sr/2,Ft.anchor="start"):Ft.anchor="middle",Ft.crossPos=mr;else{if(Ft.pos=mr,bn=Ht+wr/2+Dr<=at,un=Ht-wr/2-Dr>=0,(Ft.idealAlign==="left"||!bn)&&un)Ht-=wr/2,Ft.anchor="end";else if(bn)Ht+=wr/2,Ft.anchor="start";else{Ft.anchor="middle";var Fn=Dr/2,On=Ht+Fn-at,gr=Ht-Fn;On>0&&(Ht-=On),gr<0&&(Ht+=-gr)}Ft.crossPos=Ht}Bt.attr("text-anchor",Ft.anchor),or&&Qt.attr("text-anchor",Ft.anchor),Wt.attr("transform",w(Ht,mr)+(le?v(c):""))}),{hoverLabels:zt,commonLabelBoundingBox:Be}}function G(ne,ce,re,ee,de,le){var he="",xe="";ne.nameOverride!==void 0&&(ne.name=ne.nameOverride),ne.name&&(ne.trace._meta&&(ne.name=C.templateString(ne.name,ne.trace._meta)),he=ie(ne.name,ne.nameLength));var Ee=re.charAt(0),Se=Ee==="x"?"y":"x";ne.zLabel!==void 0?(ne.xLabel!==void 0&&(xe+="x: "+ne.xLabel+"
"),ne.yLabel!==void 0&&(xe+="y: "+ne.yLabel+"
"),ne.trace.type!=="choropleth"&&ne.trace.type!=="choroplethmapbox"&&(xe+=(xe?"z: ":"")+ne.zLabel)):ce&&ne[Ee+"Label"]===de?xe=ne[Se+"Label"]||"":ne.xLabel===void 0?ne.yLabel!==void 0&&ne.trace.type!=="scattercarpet"&&(xe=ne.yLabel):ne.yLabel===void 0?xe=ne.xLabel:xe="("+ne.xLabel+", "+ne.yLabel+")",(ne.text||ne.text===0)&&!Array.isArray(ne.text)&&(xe+=(xe?"
":"")+ne.text),ne.extraText!==void 0&&(xe+=(xe?"
":"")+ne.extraText),le&&xe===""&&!ne.hovertemplate&&(he===""&&le.remove(),xe=he);var ke=ne.hovertemplate||!1;if(ke){var Te=ne.hovertemplateLabels||ne;ne[Ee+"Label"]!==de&&(Te[Ee+"other"]=Te[Ee+"Val"],Te[Ee+"otherLabel"]=Te[Ee+"Label"]),xe=C.hovertemplateString(ke,Te,ee._d3locale,ne.eventData[0]||{},ne.trace._meta),xe=xe.replace(N,function(Ae,be){return he=ie(be,ne.nameLength),""})}return[xe,he]}function U(ne,ce,re,ee){var de=ce?"xa":"ya",le=ce?"ya":"xa",he=0,xe=1,Ee=ne.size(),Se=new Array(Ee),ke=0,Te=ee.minX,Ae=ee.maxX,be=ee.minY,Ie=ee.maxY,Ue=function(We){return We*re._invScaleX},Ne=function(We){return We*re._invScaleY};ne.each(function(We){var Fe=We[de],Me=We[le],we=Fe._id.charAt(0)==="x",Re=Fe.range;ke===0&&Re&&Re[0]>Re[1]!==we&&(xe=-1);var Pe=0,Ve=we?re.width:re.height;if(re.hovermode==="x"||re.hovermode==="y"){var Je=H(We,ce),ot=We.anchor,yt=ot==="end"?-1:1,ut,It;if(ot==="middle")ut=We.crossPos+(we?Ne(Je.y-We.by/2):Ue(We.bx/2+We.tx2width/2)),It=ut+(we?Ne(We.by):Ue(We.bx));else if(we)ut=We.crossPos+Ne(T+Je.y)-Ne(We.by/2-T),It=ut+Ne(We.by);else{var Vt=Ue(yt*T+Je.x),xt=Vt+Ue(yt*We.bx);ut=We.crossPos+Math.min(Vt,xt),It=We.crossPos+Math.max(Vt,xt)}we?be!==void 0&&Ie!==void 0&&Math.min(It,Ie)-Math.max(ut,be)>1&&(Me.side==="left"?(Pe=Me._mainLinePosition,Ve=re.width):Ve=Me._mainLinePosition):Te!==void 0&&Ae!==void 0&&Math.min(It,Ae)-Math.max(ut,Te)>1&&(Me.side==="top"?(Pe=Me._mainLinePosition,Ve=re.height):Ve=Me._mainLinePosition)}Se[ke++]=[{datum:We,traceIndex:We.trace.index,dp:0,pos:We.pos,posref:We.posref,size:We.by*(we?A:1)/2,pmin:Pe,pmax:Ve}]}),Se.sort(function(We,Fe){return We[0].posref-Fe[0].posref||xe*(Fe[0].traceIndex-We[0].traceIndex)});var ze,$e,st,vt,at,nt,mt;function rt(We){var Fe=We[0],Me=We[We.length-1];if($e=Fe.pmin-Fe.pos-Fe.dp+Fe.size,st=Me.pos+Me.dp+Me.size-Fe.pmax,$e>.01){for(at=We.length-1;at>=0;at--)We[at].dp+=$e;ze=!1}if(!(st<.01)){if($e<-.01){for(at=We.length-1;at>=0;at--)We[at].dp-=st;ze=!1}if(ze){var we=0;for(vt=0;vtFe.pmax&&we++;for(vt=We.length-1;vt>=0&&!(we<=0);vt--)nt=We[vt],nt.pos>Fe.pmax-1&&(nt.del=!0,we--);for(vt=0;vt=0;at--)We[at].dp-=st;for(vt=We.length-1;vt>=0&&!(we<=0);vt--)nt=We[vt],nt.pos+nt.dp+nt.size>Fe.pmax&&(nt.del=!0,we--)}}}for(;!ze&&he<=Ee;){for(he++,ze=!0,vt=0;vt.01&&wt.pmin===et.pmin&&wt.pmax===et.pmax){for(at=dt.length-1;at>=0;at--)dt[at].dp+=$e;for(lt.push.apply(lt,dt),Se.splice(vt+1,1),mt=0,at=lt.length-1;at>=0;at--)mt+=lt[at].dp;for(st=mt/lt.length,at=lt.length-1;at>=0;at--)lt[at].dp-=st;ze=!1}else vt++}Se.forEach(rt)}for(vt=Se.length-1;vt>=0;vt--){var Be=Se[vt];for(at=Be.length-1;at>=0;at--){var Ye=Be[at],Ze=Ye.datum;Ze.offset=Ye.dp,Ze.del=Ye.del}}}function H(ne,ce){var re=0,ee=ne.offset;return ce&&(ee*=-R,re=ne.offset*M),{x:re,y:ee}}function W(ne){var ce={start:1,end:-1,middle:0}[ne.anchor],re=ce*(T+L),ee=re+ce*(ne.txwidth+L),de=ne.anchor==="middle";return de&&(re-=ne.tx2width/2,ee+=ne.txwidth/2+L),{alignShift:ce,textShiftX:re,text2ShiftX:ee}}function V(ne,ce,re,ee){var de=function(he){return he*re},le=function(he){return he*ee};ne.each(function(he){var xe=l.select(this);if(he.del)return xe.remove();var Ee=xe.select("text.nums"),Se=he.anchor,ke=Se==="end"?-1:1,Te=W(he),Ae=H(he,ce),be=Ae.x,Ie=Ae.y,Ue=Se==="middle";xe.select("path").attr("d",Ue?"M-"+de(he.bx/2+he.tx2width/2)+","+le(Ie-he.by/2)+"h"+de(he.bx)+"v"+le(he.by)+"h-"+de(he.bx)+"Z":"M0,0L"+de(ke*T+be)+","+le(T+Ie)+"v"+le(he.by/2-T)+"h"+de(ke*he.bx)+"v-"+le(he.by)+"H"+de(ke*T+be)+"V"+le(Ie-T)+"Z");var Ne=be+Te.textShiftX,ze=Ie+he.ty0-he.by/2+L,$e=he.textAlign||"auto";$e!=="auto"&&($e==="left"&&Se!=="start"?(Ee.attr("text-anchor","start"),Ne=Ue?-he.bx/2-he.tx2width/2+L:-he.bx-L):$e==="right"&&Se!=="end"&&(Ee.attr("text-anchor","end"),Ne=Ue?he.bx/2-he.tx2width/2-L:he.bx+L)),Ee.call(a.positionText,de(Ne),le(ze)),he.tx2width&&(xe.select("text.name").call(a.positionText,de(Te.text2ShiftX+Te.alignShift*L+be),le(Ie+he.ty0-he.by/2+L)),xe.select("rect").call(s.setRect,de(Te.text2ShiftX+(Te.alignShift-1)*he.tx2width/2+be),le(Ie-he.by/2-1),de(he.tx2width),le(he.by+2)))})}function $(ne,ce){var re=ne.index,ee=ne.trace||{},de=ne.cd[0],le=ne.cd[re]||{};function he(Ae){return Ae||S(Ae)&&Ae===0}var xe=Array.isArray(re)?function(Ae,be){var Ie=C.castOption(de,re,Ae);return he(Ie)?Ie:C.extractOption({},ee,"",be)}:function(Ae,be){return C.extractOption(le,ee,Ae,be)};function Ee(Ae,be,Ie){var Ue=xe(be,Ie);he(Ue)&&(ne[Ae]=Ue)}if(Ee("hoverinfo","hi","hoverinfo"),Ee("bgcolor","hbg","hoverlabel.bgcolor"),Ee("borderColor","hbc","hoverlabel.bordercolor"),Ee("fontFamily","htf","hoverlabel.font.family"),Ee("fontSize","hts","hoverlabel.font.size"),Ee("fontColor","htc","hoverlabel.font.color"),Ee("nameLength","hnl","hoverlabel.namelength"),Ee("textAlign","hta","hoverlabel.align"),ne.posref=ce==="y"||ce==="closest"&&ee.orientation==="h"?ne.xa._offset+(ne.x0+ne.x1)/2:ne.ya._offset+(ne.y0+ne.y1)/2,ne.x0=C.constrain(ne.x0,0,ne.xa._length),ne.x1=C.constrain(ne.x1,0,ne.xa._length),ne.y0=C.constrain(ne.y0,0,ne.ya._length),ne.y1=C.constrain(ne.y1,0,ne.ya._length),ne.xLabelVal!==void 0&&(ne.xLabel="xLabel"in ne?ne.xLabel:f.hoverLabelText(ne.xa,ne.xLabelVal,ee.xhoverformat),ne.xVal=ne.xa.c2d(ne.xLabelVal)),ne.yLabelVal!==void 0&&(ne.yLabel="yLabel"in ne?ne.yLabel:f.hoverLabelText(ne.ya,ne.yLabelVal,ee.yhoverformat),ne.yVal=ne.ya.c2d(ne.yLabelVal)),ne.zLabelVal!==void 0&&ne.zLabel===void 0&&(ne.zLabel=String(ne.zLabelVal)),!isNaN(ne.xerr)&&!(ne.xa.type==="log"&&ne.xerr<=0)){var Se=f.tickText(ne.xa,ne.xa.c2l(ne.xerr),"hover").text;ne.xerrneg!==void 0?ne.xLabel+=" +"+Se+" / -"+f.tickText(ne.xa,ne.xa.c2l(ne.xerrneg),"hover").text:ne.xLabel+=" ± "+Se,ce==="x"&&(ne.distance+=1)}if(!isNaN(ne.yerr)&&!(ne.ya.type==="log"&&ne.yerr<=0)){var ke=f.tickText(ne.ya,ne.ya.c2l(ne.yerr),"hover").text;ne.yerrneg!==void 0?ne.yLabel+=" +"+ke+" / -"+f.tickText(ne.ya,ne.ya.c2l(ne.yerrneg),"hover").text:ne.yLabel+=" ± "+ke,ce==="y"&&(ne.distance+=1)}var Te=ne.hoverinfo||ne.trace.hoverinfo;return Te&&Te!=="all"&&(Te=Array.isArray(Te)?Te:Te.split("+"),Te.indexOf("x")===-1&&(ne.xLabel=void 0),Te.indexOf("y")===-1&&(ne.yLabel=void 0),Te.indexOf("z")===-1&&(ne.zLabel=void 0),Te.indexOf("text")===-1&&(ne.text=void 0),Te.indexOf("name")===-1&&(ne.name=void 0)),ne}function Z(ne,ce,re){var ee=re.container,de=re.fullLayout,le=de._size,he=re.event,xe=!!ce.hLinePoint,Ee=!!ce.vLinePoint,Se,ke;if(ee.selectAll(".spikeline").remove(),!!(Ee||xe)){var Te=o.combine(de.plot_bgcolor,de.paper_bgcolor);if(xe){var Ae=ce.hLinePoint,be,Ie;Se=Ae&&Ae.xa,ke=Ae&&Ae.ya;var Ue=ke.spikesnap;Ue==="cursor"?(be=he.pointerX,Ie=he.pointerY):(be=Se._offset+Ae.x,Ie=ke._offset+Ae.y);var Ne=i.readability(Ae.color,Te)<1.5?o.contrast(Te):Ae.color,ze=ke.spikemode,$e=ke.spikethickness,st=ke.spikecolor||Ne,vt=f.getPxPosition(ne,ke),at,nt;if(ze.indexOf("toaxis")!==-1||ze.indexOf("across")!==-1){if(ze.indexOf("toaxis")!==-1&&(at=vt,nt=be),ze.indexOf("across")!==-1){var mt=ke._counterDomainMin,rt=ke._counterDomainMax;ke.anchor==="free"&&(mt=Math.min(mt,ke.position),rt=Math.max(rt,ke.position)),at=le.l+mt*le.w,nt=le.l+rt*le.w}ee.insert("line",":first-child").attr({x1:at,x2:nt,y1:Ie,y2:Ie,"stroke-width":$e,stroke:st,"stroke-dasharray":s.dashStyle(ke.spikedash,$e)}).classed("spikeline",!0).classed("crisp",!0),ee.insert("line",":first-child").attr({x1:at,x2:nt,y1:Ie,y2:Ie,"stroke-width":$e+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}ze.indexOf("marker")!==-1&&ee.insert("circle",":first-child").attr({cx:vt+(ke.side!=="right"?$e:-$e),cy:Ie,r:$e,fill:st}).classed("spikeline",!0)}if(Ee){var lt=ce.vLinePoint,dt,wt;Se=lt&<.xa,ke=lt&<.ya;var et=Se.spikesnap;et==="cursor"?(dt=he.pointerX,wt=he.pointerY):(dt=Se._offset+lt.x,wt=ke._offset+lt.y);var Be=i.readability(lt.color,Te)<1.5?o.contrast(Te):lt.color,Ye=Se.spikemode,Ze=Se.spikethickness,We=Se.spikecolor||Be,Fe=f.getPxPosition(ne,Se),Me,we;if(Ye.indexOf("toaxis")!==-1||Ye.indexOf("across")!==-1){if(Ye.indexOf("toaxis")!==-1&&(Me=Fe,we=wt),Ye.indexOf("across")!==-1){var Re=Se._counterDomainMin,Pe=Se._counterDomainMax;Se.anchor==="free"&&(Re=Math.min(Re,Se.position),Pe=Math.max(Pe,Se.position)),Me=le.t+(1-Pe)*le.h,we=le.t+(1-Re)*le.h}ee.insert("line",":first-child").attr({x1:dt,x2:dt,y1:Me,y2:we,"stroke-width":Ze,stroke:We,"stroke-dasharray":s.dashStyle(Se.spikedash,Ze)}).classed("spikeline",!0).classed("crisp",!0),ee.insert("line",":first-child").attr({x1:dt,x2:dt,y1:Me,y2:we,"stroke-width":Ze+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}Ye.indexOf("marker")!==-1&&ee.insert("circle",":first-child").attr({cx:dt,cy:Fe-(Se.side!=="top"?Ze:-Ze),r:Ze,fill:We}).classed("spikeline",!0)}}}function q(ne,ce,re){if(!re||re.length!==ne._hoverdata.length)return!0;for(var ee=re.length-1;ee>=0;ee--){var de=re[ee],le=ne._hoverdata[ee];if(de.curveNumber!==le.curveNumber||String(de.pointNumber)!==String(le.pointNumber)||String(de.pointNumbers)!==String(le.pointNumbers))return!0}return!1}function ae(ne,ce){return!0}function ie(ne,ce){return a.plainText(ne||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function fe(ne,ce){for(var re=ce.charAt(0),ee=[],de=[],le=[],he=0;he1)){delete f.grid;return}if(!E&&!g&&!c){var d=T("pattern")==="independent";d&&(E=!0)}R._hasSubplotGrid=E;var k=T("roworder"),I=k==="top to bottom",N=E?.2:.1,B=E?.3:.1,G,U;y&&f._splomGridDflt&&(G=f._splomGridDflt.xside,U=f._splomGridDflt.yside),R._domains={x:n("x",T,N,G,P),y:n("y",T,B,U,L,I)}}function n(h,f,u,b,p,E){var g=f(h+"gap",u),c=f("domain."+h);f(h+"side",b);for(var y=new Array(p),A=c[0],M=(c[1]-A)/(p-g),R=M*(1-g),T=0;T(n==="legend"?1:0));if(I===!1&&(o[n]=void 0),!(I===!1&&!f.uirevision)&&(b("uirevision",o.uirevision),I!==!1)){b("borderwidth");var N=b("orientation"),B=b("yref"),G=b("xref"),U=N==="h",H=B==="paper",W=G==="paper",V,$,Z,q="left";U?(V=0,l.getComponentMethod("rangeslider","isVisible")(s.xaxis)?H?($=1.1,Z="bottom"):($=1,Z="top"):H?($=-.1,Z="top"):($=0,Z="bottom")):($=1,Z="auto",W?V=1.02:(V=1,q="right")),S.coerce(f,u,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:V}},"x"),S.coerce(f,u,{y:{valType:"number",editType:"legend",min:H?-2:0,max:H?3:1,dflt:$}},"y"),b("traceorder",T),m.isGrouped(o[n])&&b("tracegroupgap"),b("entrywidth"),b("entrywidthmode"),b("indentation"),b("itemsizing"),b("itemwidth"),b("itemclick"),b("itemdoubleclick"),b("groupclick"),b("xanchor",q),b("yanchor",Z),b("valign"),S.noneOrAll(f,u,["x","y"]);var ae=b("title.text");if(ae){b("title.side",U?"left":"top");var ie=S.extendFlat({},p,{size:S.bigFont(p.size)});S.coerceFont(b,"title.font",ie)}}}}D.exports=function(s,o,h){var f,u=h.slice(),b=o.shapes;if(b)for(f=0;f1)}var ee=q.hiddenlabels||[];if(!Q&&(!q.showlegend||!J.length))return fe.selectAll("."+ae).remove(),q._topdefs.select("#"+ie).remove(),i.autoMargin(V,ae);var de=S.ensureSingle(fe,"g",ae,function(be){Q||be.attr("pointer-events","all")}),le=S.ensureSingleById(q._topdefs,"clipPath",ie,function(be){be.append("rect")}),he=S.ensureSingle(de,"rect","bg",function(be){be.attr("shape-rendering","crispEdges")});he.call(a.stroke,Z.bordercolor).call(a.fill,Z.bgcolor).style("stroke-width",Z.borderwidth+"px");var xe=S.ensureSingle(de,"g","scrollbox"),Ee=Z.title;Z._titleWidth=0,Z._titleHeight=0;var Se;Ee.text?(Se=S.ensureSingle(xe,"text",ae+"titletext"),Se.attr("text-anchor","start").call(m.font,Ee.font).text(Ee.text),k(Se,xe,V,Z,c)):xe.selectAll("."+ae+"titletext").remove();var ke=S.ensureSingle(de,"rect","scrollbar",function(be){be.attr(o.scrollBarEnterAttrs).call(a.fill,o.scrollBarColor)}),Te=xe.selectAll("g.groups").data(J);Te.enter().append("g").attr("class","groups"),Te.exit().remove();var Ae=Te.selectAll("g.traces").data(S.identity);Ae.enter().append("g").attr("class","traces"),Ae.exit().remove(),Ae.style("opacity",function(be){var Ie=be[0].trace;return C.traceIs(Ie,"pie-like")?ee.indexOf(be[0].label)!==-1?.5:1:Ie.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(L,V,Z)}).call(E,V,Z).each(function(){Q||l.select(this).call(d,V,ae)}),S.syncOrAsync([i.previousPromises,function(){return B(V,Te,Ae,Z)},function(){var be=q._size,Ie=Z.borderwidth,Ue=Z.xref==="paper",Ne=Z.yref==="paper";if(Ee.text&&A(Se,Z,Ie),!Q){var ze,$e;Ue?ze=be.l+be.w*Z.x-u[U(Z)]*Z._width:ze=q.width*Z.x-u[U(Z)]*Z._width,Ne?$e=be.t+be.h*(1-Z.y)-u[H(Z)]*Z._effHeight:$e=q.height*(1-Z.y)-u[H(Z)]*Z._effHeight;var st=G(V,ae,ze,$e);if(st)return;if(q.margin.autoexpand){var vt=ze,at=$e;ze=Ue?S.constrain(ze,0,q.width-Z._width):vt,$e=Ne?S.constrain($e,0,q.height-Z._effHeight):at,ze!==vt&&S.log("Constrain "+ae+".x to make legend fit inside graph"),$e!==at&&S.log("Constrain "+ae+".y to make legend fit inside graph")}m.setTranslate(de,ze,$e)}if(ke.on(".drag",null),de.on("wheel",null),Q||Z._height<=Z._maxHeight||V._context.staticPlot){var nt=Z._effHeight;Q&&(nt=Z._height),he.attr({width:Z._width-Ie,height:nt-Ie,x:Ie/2,y:Ie/2}),m.setTranslate(xe,0,0),le.select("rect").attr({width:Z._width-2*Ie,height:nt-2*Ie,x:Ie,y:Ie}),m.setClipUrl(xe,ie,V),m.setRect(ke,0,0,0,0),delete Z._scrollY}else{var mt=Math.max(o.scrollBarMinHeight,Z._effHeight*Z._effHeight/Z._height),rt=Z._effHeight-mt-2*o.scrollBarMargin,lt=Z._height-Z._effHeight,dt=rt/lt,wt=Math.min(Z._scrollY||0,lt);he.attr({width:Z._width-2*Ie+o.scrollBarWidth+o.scrollBarMargin,height:Z._effHeight-Ie,x:Ie/2,y:Ie/2}),le.select("rect").attr({width:Z._width-2*Ie+o.scrollBarWidth+o.scrollBarMargin,height:Z._effHeight-2*Ie,x:Ie,y:Ie+wt}),m.setClipUrl(xe,ie,V),we(wt,mt,dt),de.on("wheel",function(){wt=S.constrain(Z._scrollY+l.event.deltaY/rt*lt,0,lt),we(wt,mt,dt),wt!==0&&wt!==lt&&l.event.preventDefault()});var et,Be,Ye,Ze=function(ot,yt,ut){var It=(ut-yt)/dt+ot;return S.constrain(It,0,lt)},We=function(ot,yt,ut){var It=(yt-ut)/dt+ot;return S.constrain(It,0,lt)},Fe=l.behavior.drag().on("dragstart",function(){var ot=l.event.sourceEvent;ot.type==="touchstart"?et=ot.changedTouches[0].clientY:et=ot.clientY,Ye=wt}).on("drag",function(){var ot=l.event.sourceEvent;ot.buttons===2||ot.ctrlKey||(ot.type==="touchmove"?Be=ot.changedTouches[0].clientY:Be=ot.clientY,wt=Ze(Ye,et,Be),we(wt,mt,dt))});ke.call(Fe);var Me=l.behavior.drag().on("dragstart",function(){var ot=l.event.sourceEvent;ot.type==="touchstart"&&(et=ot.changedTouches[0].clientY,Ye=wt)}).on("drag",function(){var ot=l.event.sourceEvent;ot.type==="touchmove"&&(Be=ot.changedTouches[0].clientY,wt=We(Ye,et,Be),we(wt,mt,dt))});xe.call(Me)}function we(ot,yt,ut){Z._scrollY=V._fullLayout[ae]._scrollY=ot,m.setTranslate(xe,0,-ot),m.setRect(ke,Z._width,o.scrollBarMargin+ot*ut,o.scrollBarWidth,yt),le.select("rect").attr("y",Ie+ot)}if(V._context.edits.legendPosition){var Re,Pe,Ve,Je;de.classed("cursor-move",!0),v.init({element:de.node(),gd:V,prepFn:function(){var ot=m.getTranslate(de);Ve=ot.x,Je=ot.y},moveFn:function(ot,yt){var ut=Ve+ot,It=Je+yt;m.setTranslate(de,ut,It),Re=v.align(ut,Z._width,be.l,be.l+be.w,Z.xanchor),Pe=v.align(It+Z._height,-Z._height,be.t+be.h,be.t,Z.yanchor)},doneFn:function(){if(Re!==void 0&&Pe!==void 0){var ot={};ot[ae+".x"]=Re,ot[ae+".y"]=Pe,C.call("_guiRelayout",V,ot)}},clickFn:function(ot,yt){var ut=fe.selectAll("g.traces").filter(function(){var It=this.getBoundingClientRect();return yt.clientX>=It.left&&yt.clientX<=It.right&&yt.clientY>=It.top&&yt.clientY<=It.bottom});ut.size()>0&&T(V,de,ut,ot,yt)}})}}],V)}}function R(V,$,Z){var q=V[0],ae=q.width,ie=$.entrywidthmode,fe=q.trace.legendwidth||$.entrywidth;return ie==="fraction"?$._maxWidth*fe:Z+(fe||ae)}function T(V,$,Z,q,ae){var ie=Z.data()[0][0].trace,fe={event:ae,node:Z.node(),curveNumber:ie.index,expandedIndex:ie._expandedIndex,data:V.data,layout:V.layout,frames:V._transitionData._frames,config:V._context,fullData:V._fullData,fullLayout:V._fullLayout};ie._group&&(fe.group=ie._group),C.traceIs(ie,"pie-like")&&(fe.label=Z.datum()[0].label);var Q=w.triggerHandler(V,"plotly_legendclick",fe);if(q===1){if(Q===!1)return;$._clickTimeout=setTimeout(function(){V._fullLayout&&s(Z,V,q)},V._context.doubleClickDelay)}else if(q===2){$._clickTimeout&&clearTimeout($._clickTimeout),V._legendMouseDownTime=0;var J=w.triggerHandler(V,"plotly_legenddoubleclick",fe);J!==!1&&Q!==!1&&s(Z,V,q)}}function L(V,$,Z){var q=W(Z),ae=V.data()[0][0],ie=ae.trace,fe=C.traceIs(ie,"pie-like"),Q=!Z._inHover&&$._context.edits.legendText&&!fe,J=Z._maxNameLength,oe,K;ae.groupTitle?(oe=ae.groupTitle.text,K=ae.groupTitle.font):(K=Z.font,Z.entries?oe=ae.text:(oe=fe?ae.label:ie.name,ie._meta&&(oe=S.templateString(oe,ie._meta))));var ne=S.ensureSingle(V,"text",q+"text");ne.attr("text-anchor","start").call(m.font,K).text(Q?P(oe,J):oe);var ce=Z.indentation+Z.itemwidth+o.itemGap*2;n.positionText(ne,ce,0),Q?ne.call(n.makeEditable,{gd:$,text:oe}).call(k,V,$,Z).on("edit",function(re){this.text(P(re,J)).call(k,V,$,Z);var ee=ae.trace._fullInput||{},de={};if(C.hasTransform(ee,"groupby")){var le=C.getTransformIndices(ee,"groupby"),he=le[le.length-1],xe=S.keyedContainer(ee,"transforms["+he+"].styles","target","value.name");xe.set(ae.trace._group,re),de=xe.constructUpdate()}else de.name=re;return ee._isShape?C.call("_guiRelayout",$,"shapes["+ie.index+"].name",de.name):C.call("_guiRestyle",$,de,ie.index)}):k(ne,V,$,Z)}function P(V,$){var Z=Math.max(4,$);if(V&&V.trim().length>=Z/2)return V;V=V||"";for(var q=Z-V.length;q>0;q--)V+=" ";return V}function d(V,$,Z){var q=$._context.doubleClickDelay,ae,ie=1,fe=S.ensureSingle(V,"rect",Z+"toggle",function(Q){$._context.staticPlot||Q.style("cursor","pointer").attr("pointer-events","all"),Q.call(a.fill,"rgba(0,0,0,0)")});$._context.staticPlot||(fe.on("mousedown",function(){ae=new Date().getTime(),ae-$._legendMouseDownTimeq&&(ie=Math.max(ie-1,1)),T($,Q,V,ie,l.event)}}))}function k(V,$,Z,q,ae){q._inHover&&V.attr("data-notex",!0),n.convertToTspans(V,Z,function(){I($,Z,q,ae)})}function I(V,$,Z,q){var ae=V.data()[0][0];if(!Z._inHover&&ae&&!ae.trace.showlegend){V.remove();return}var ie=V.select("g[class*=math-group]"),fe=ie.node(),Q=W(Z);Z||(Z=$._fullLayout[Q]);var J=Z.borderwidth,oe;q===c?oe=Z.title.font:ae.groupTitle?oe=ae.groupTitle.font:oe=Z.font;var K=oe.size*f,ne,ce;if(fe){var re=m.bBox(fe);ne=re.height,ce=re.width,q===c?m.setTranslate(ie,J,J+ne*.75):m.setTranslate(ie,0,ne*.25)}else{var ee="."+Q+(q===c?"title":"")+"text",de=V.select(ee),le=n.lineCount(de),he=de.node();if(ne=K*le,ce=he?m.bBox(he).width:0,q===c)Z.title.side==="left"&&(ce+=o.itemGap*2),n.positionText(de,J+o.titlePad,J+K);else{var xe=o.itemGap*2+Z.indentation+Z.itemwidth;ae.groupTitle&&(xe=o.itemGap,ce-=Z.indentation+Z.itemwidth),n.positionText(de,xe,-K*((le-1)/2-.3))}}q===c?(Z._titleWidth=ce,Z._titleHeight=ne):(ae.lineHeight=K,ae.height=Math.max(ne,16)+3,ae.width=ce)}function N(V){var $=0,Z=0,q=V.title.side;return q&&(q.indexOf("left")!==-1&&($=V._titleWidth),q.indexOf("top")!==-1&&(Z=V._titleHeight)),[$,Z]}function B(V,$,Z,q){var ae=V._fullLayout,ie=W(q);q||(q=ae[ie]);var fe=ae._size,Q=g.isVertical(q),J=g.isGrouped(q),oe=q.entrywidthmode==="fraction",K=q.borderwidth,ne=2*K,ce=o.itemGap,re=q.indentation+q.itemwidth+ce*2,ee=2*(K+ce),de=H(q),le=q.y<0||q.y===0&&de==="top",he=q.y>1||q.y===1&&de==="bottom",xe=q.tracegroupgap,Ee={};q._maxHeight=Math.max(le||he?ae.height/2:fe.h,30);var Se=0;q._width=0,q._height=0;var ke=N(q);if(Q)Z.each(function(Ye){var Ze=Ye[0].height;m.setTranslate(this,K+ke[0],K+ke[1]+q._height+Ze/2+ce),q._height+=Ze,q._width=Math.max(q._width,Ye[0].width)}),Se=re+q._width,q._width+=ce+re+ne,q._height+=ee,J&&($.each(function(Ye,Ze){m.setTranslate(this,0,Ze*q.tracegroupgap)}),q._height+=(q._lgroupsLength-1)*q.tracegroupgap);else{var Te=U(q),Ae=q.x<0||q.x===0&&Te==="right",be=q.x>1||q.x===1&&Te==="left",Ie=he||le,Ue=ae.width/2;q._maxWidth=Math.max(Ae?Ie&&Te==="left"?fe.l+fe.w:Ue:be?Ie&&Te==="right"?fe.r+fe.w:Ue:fe.w,2*re);var Ne=0,ze=0;Z.each(function(Ye){var Ze=R(Ye,q,re);Ne=Math.max(Ne,Ze),ze+=Ze}),Se=null;var $e=0;if(J){var st=0,vt=0,at=0;$.each(function(){var Ye=0,Ze=0;l.select(this).selectAll("g.traces").each(function(Fe){var Me=R(Fe,q,re),we=Fe[0].height;m.setTranslate(this,ke[0],ke[1]+K+ce+we/2+Ze),Ze+=we,Ye=Math.max(Ye,Me),Ee[Fe[0].trace.legendgroup]=Ye});var We=Ye+ce;vt>0&&We+K+vt>q._maxWidth?($e=Math.max($e,vt),vt=0,at+=st+xe,st=Ze):st=Math.max(st,Ze),m.setTranslate(this,vt,at),vt+=We}),q._width=Math.max($e,vt)+K,q._height=at+st+ee}else{var nt=Z.size(),mt=ze+ne+(nt-1)*ce=q._maxWidth&&($e=Math.max($e,wt),lt=0,dt+=rt,q._height+=rt,rt=0),m.setTranslate(this,ke[0]+K+lt,ke[1]+K+dt+Ze/2+ce),wt=lt+We+ce,lt+=Fe,rt=Math.max(rt,Ze)}),mt?(q._width=lt+ne,q._height=rt+ee):(q._width=Math.max($e,wt)+ne,q._height+=rt+ee)}}q._width=Math.ceil(Math.max(q._width+ke[0],q._titleWidth+2*(K+o.titlePad))),q._height=Math.ceil(Math.max(q._height+ke[1],q._titleHeight+2*(K+o.itemGap))),q._effHeight=Math.min(q._height,q._maxHeight);var et=V._context.edits,Be=et.legendText||et.legendPosition;Z.each(function(Ye){var Ze=l.select(this).select("."+ie+"toggle"),We=Ye[0].height,Fe=Ye[0].trace.legendgroup,Me=R(Ye,q,re);J&&Fe!==""&&(Me=Ee[Fe]);var we=Be?re:Se||Me;!Q&&!oe&&(we+=ce/2),m.setRect(Ze,0,-We/2,we,We)})}function G(V,$,Z,q){var ae=V._fullLayout,ie=ae[$],fe=U(ie),Q=H(ie),J=ie.xref==="paper",oe=ie.yref==="paper";V._fullLayout._reservedMargin[$]={};var K=ie.y<.5?"b":"t",ne=ie.x<.5?"l":"r",ce={r:ae.width-Z,l:Z+ie._width,b:ae.height-q,t:q+ie._effHeight};if(J&&oe)return i.autoMargin(V,$,{x:ie.x,y:ie.y,l:ie._width*u[fe],r:ie._width*b[fe],b:ie._effHeight*b[Q],t:ie._effHeight*u[Q]});J?V._fullLayout._reservedMargin[$][K]=ce[K]:oe||ie.orientation==="v"?V._fullLayout._reservedMargin[$][ne]=ce[ne]:V._fullLayout._reservedMargin[$][K]=ce[K]}function U(V){return S.isRightAnchor(V)?"right":S.isCenterAnchor(V)?"center":"left"}function H(V){return S.isBottomAnchor(V)?"bottom":S.isMiddleAnchor(V)?"middle":"top"}function W(V){return V._id||"legend"}},35456:function(D,O,t){var l=t(24040),S=t(42451);D.exports=function(C,w,v){var m=w._inHover,a=S.isGrouped(w),n=S.isReversed(w),s={},o=[],h=!1,f={},u=0,b=0,p,E;function g(V,$,Z){if(w.visible!==!1&&!(v&&V!==w._id))if($===""||!S.isGrouped(w)){var q="~~i"+u;o.push(q),s[q]=[Z],u++}else o.indexOf($)===-1?(o.push($),h=!0,s[$]=[Z]):s[$].push(Z)}for(p=0;pI&&(k=I)}P[p][0]._groupMinRank=k,P[p][0]._preGroupSort=p}var N=function(V,$){return V[0]._groupMinRank-$[0]._groupMinRank||V[0]._preGroupSort-$[0]._preGroupSort},B=function(V,$){return V.trace.legendrank-$.trace.legendrank||V._preSort-$._preSort};for(P.forEach(function(V,$){V[0]._preGroupSort=$}),P.sort(N),p=0;p0)ne=J.width;else return 0;return L?K:Math.min(ne,oe)};A.each(function(Q){var J=l.select(this),oe=i.ensureSingle(J,"g","layers");oe.style("opacity",Q[0].trace.opacity);var K=R.indentation,ne=R.valign,ce=Q[0].lineHeight,re=Q[0].height;if(ne==="middle"&&K===0||!ce||!re)oe.attr("transform",null);else{var ee={top:1,bottom:-1}[ne],de=ee*(.5*(ce-re+3))||0,le=R.indentation;oe.attr("transform",C(le,de))}var he=oe.selectAll("g.legendfill").data([Q]);he.enter().append("g").classed("legendfill",!0);var xe=oe.selectAll("g.legendlines").data([Q]);xe.enter().append("g").classed("legendlines",!0);var Ee=oe.selectAll("g.legendsymbols").data([Q]);Ee.enter().append("g").classed("legendsymbols",!0),Ee.selectAll("g.legendpoints").data([Q]).enter().append("g").classed("legendpoints",!0)}).each(fe).each(G).each(H).each(U).each(V).each(ae).each(q).each(N).each(B).each($).each(Z);function N(Q){var J=g(Q),oe=J.showFill,K=J.showLine,ne=J.showGradientLine,ce=J.showGradientFill,re=J.anyFill,ee=J.anyLine,de=Q[0],le=de.trace,he,xe,Ee=m(le),Se=Ee.colorscale,ke=Ee.reversescale,Te=function($e){if($e.size())if(oe)w.fillGroupStyle($e,M,!0);else{var st="legendfill-"+le.uid;w.gradient($e,M,st,E(ke),Se,"fill")}},Ae=function($e){if($e.size()){var st="legendline-"+le.uid;w.lineGroupStyle($e),w.gradient($e,M,st,E(ke),Se,"stroke")}},be=a.hasMarkers(le)||!re?"M5,0":ee?"M5,-2":"M5,-3",Ie=l.select(this),Ue=Ie.select(".legendfill").selectAll("path").data(oe||ce?[Q]:[]);if(Ue.enter().append("path").classed("js-fill",!0),Ue.exit().remove(),Ue.attr("d",be+"h"+P+"v6h-"+P+"z").call(Te),K||ne){var Ne=I(void 0,le.line,b,f);xe=i.minExtend(le,{line:{width:Ne}}),he=[i.minExtend(de,{trace:xe})]}var ze=Ie.select(".legendlines").selectAll("path").data(K||ne?[he]:[]);ze.enter().append("path").classed("js-line",!0),ze.exit().remove(),ze.attr("d",be+(ne?"l"+P+",0.0001":"h"+P)).call(K?w.lineGroupStyle:Ae)}function B(Q){var J=g(Q),oe=J.anyFill,K=J.anyLine,ne=J.showLine,ce=J.showMarker,re=Q[0],ee=re.trace,de=!ce&&!K&&!oe&&a.hasText(ee),le,he;function xe(Ue,Ne,ze,$e){var st=i.nestedProperty(ee,Ue).get(),vt=i.isArrayOrTypedArray(st)&&Ne?Ne(st):st;if(L&&vt&&$e!==void 0&&(vt=$e),ze){if(vtze[1])return ze[1]}return vt}function Ee(Ue){return re._distinct&&re.index&&Ue[re.index]?Ue[re.index]:Ue[0]}if(ce||de||ne){var Se={},ke={};if(ce){Se.mc=xe("marker.color",Ee),Se.mx=xe("marker.symbol",Ee),Se.mo=xe("marker.opacity",i.mean,[.2,1]),Se.mlc=xe("marker.line.color",Ee),Se.mlw=xe("marker.line.width",i.mean,[0,5],u),ke.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Te=xe("marker.size",i.mean,[2,16],h);Se.ms=Te,ke.marker.size=Te}ne&&(ke.line={width:xe("line.width",Ee,[0,10],f)}),de&&(Se.tx="Aa",Se.tp=xe("textposition",Ee),Se.ts=10,Se.tc=xe("textfont.color",Ee),Se.tf=xe("textfont.family",Ee)),le=[i.minExtend(re,Se)],he=i.minExtend(ee,ke),he.selectedpoints=null,he.texttemplate=null}var Ae=l.select(this).select("g.legendpoints"),be=Ae.selectAll("path.scatterpts").data(ce?le:[]);be.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",k),be.exit().remove(),be.call(w.pointStyle,he,M),ce&&(le[0].mrc=3);var Ie=Ae.selectAll("g.pointtext").data(de?le:[]);Ie.enter().append("g").classed("pointtext",!0).append("text").attr("transform",k),Ie.exit().remove(),Ie.selectAll("text").call(w.textPointStyle,he,M)}function G(Q){var J=Q[0].trace,oe=J.type==="waterfall";if(Q[0]._distinct&&oe){var K=Q[0].trace[Q[0].dir].marker;return Q[0].mc=K.color,Q[0].mlw=K.line.width,Q[0].mlc=K.line.color,W(Q,this,"waterfall")}var ne=[];J.visible&&oe&&(ne=Q[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var ce=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ne);ce.enter().append("path").classed("legendwaterfall",!0).attr("transform",k).style("stroke-miterlimit",1),ce.exit().remove(),ce.each(function(re){var ee=l.select(this),de=J[re[0]].marker,le=I(void 0,de.line,p,u);ee.attr("d",re[1]).style("stroke-width",le+"px").call(v.fill,de.color),le&&ee.call(v.stroke,de.line.color)})}function U(Q){W(Q,this)}function H(Q){W(Q,this,"funnel")}function W(Q,J,oe){var K=Q[0].trace,ne=K.marker||{},ce=ne.line||{},re=ne.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",ee=oe?K.visible&&K.type===oe:S.traceIs(K,"bar"),de=l.select(J).select("g.legendpoints").selectAll("path.legend"+oe).data(ee?[Q]:[]);de.enter().append("path").classed("legend"+oe,!0).attr("d",re).attr("transform",k),de.exit().remove(),de.each(function(le){var he=l.select(this),xe=le[0],Ee=I(xe.mlw,ne.line,p,u);he.style("stroke-width",Ee+"px");var Se=xe.mcc;if(!R._inHover&&"mc"in xe){var ke=m(ne),Te=ke.mid;Te===void 0&&(Te=(ke.max+ke.min)/2),Se=w.tryColorscale(ne,"")(Te)}var Ae=Se||xe.mc||ne.color,be=ne.pattern,Ie=be&&w.getPatternAttr(be.shape,0,"");if(Ie){var Ue=w.getPatternAttr(be.bgcolor,0,null),Ne=w.getPatternAttr(be.fgcolor,0,null),ze=be.fgopacity,$e=c(be.size,8,10),st=c(be.solidity,.5,1),vt="legend-"+K.uid;he.call(w.pattern,"legend",M,vt,Ie,$e,st,Se,be.fillmode,Ue,Ne,ze)}else he.call(v.fill,Ae);Ee&&v.stroke(he,xe.mlc||ce.color)})}function V(Q){var J=Q[0].trace,oe=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(J.visible&&S.traceIs(J,"box-violin")?[Q]:[]);oe.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",k),oe.exit().remove(),oe.each(function(){var K=l.select(this);if((J.boxpoints==="all"||J.points==="all")&&v.opacity(J.fillcolor)===0&&v.opacity((J.line||{}).color)===0){var ne=i.minExtend(J,{marker:{size:L?h:i.constrain(J.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});oe.call(w.pointStyle,ne,M)}else{var ce=I(void 0,J.line,p,u);K.style("stroke-width",ce+"px").call(v.fill,J.fillcolor),ce&&v.stroke(K,J.line.color)}})}function $(Q){var J=Q[0].trace,oe=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(J.visible&&J.type==="candlestick"?[Q,Q]:[]);oe.enter().append("path").classed("legendcandle",!0).attr("d",function(K,ne){return ne?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",k).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(K,ne){var ce=l.select(this),re=J[ne?"increasing":"decreasing"],ee=I(void 0,re.line,p,u);ce.style("stroke-width",ee+"px").call(v.fill,re.fillcolor),ee&&v.stroke(ce,re.line.color)})}function Z(Q){var J=Q[0].trace,oe=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(J.visible&&J.type==="ohlc"?[Q,Q]:[]);oe.enter().append("path").classed("legendohlc",!0).attr("d",function(K,ne){return ne?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",k).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(K,ne){var ce=l.select(this),re=J[ne?"increasing":"decreasing"],ee=I(void 0,re.line,p,u);ce.style("fill","none").call(w.dashLine,re.line.dash,ee),ee&&v.stroke(ce,re.line.color)})}function q(Q){ie(Q,this,"pie")}function ae(Q){ie(Q,this,"funnelarea")}function ie(Q,J,oe){var K=Q[0],ne=K.trace,ce=oe?ne.visible&&ne.type===oe:S.traceIs(ne,oe),re=l.select(J).select("g.legendpoints").selectAll("path.legend"+oe).data(ce?[Q]:[]);if(re.enter().append("path").classed("legend"+oe,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",k),re.exit().remove(),re.size()){var ee=ne.marker||{},de=I(s(ee.line.width,K.pts),ee.line,p,u),le="pieLike",he=i.minExtend(ne,{marker:{line:{width:de}}},le),xe=i.minExtend(K,{trace:he},le);n(re,xe,he,M)}}function fe(Q){var J=Q[0].trace,oe,K=[];if(J.visible)switch(J.type){case"histogram2d":case"heatmap":K=[["M-15,-2V4H15V-2Z"]],oe=!0;break;case"choropleth":case"choroplethmapbox":K=[["M-6,-6V6H6V-6Z"]],oe=!0;break;case"densitymapbox":K=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],oe="radial";break;case"cone":K=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],oe=!1;break;case"streamtube":K=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],oe=!1;break;case"surface":K=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],oe=!0;break;case"mesh3d":K=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],oe=!1;break;case"volume":K=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],oe=!0;break;case"isosurface":K=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],oe=!1;break}var ne=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(K);ne.enter().append("path").classed("legend3dandfriends",!0).attr("transform",k).style("stroke-miterlimit",1),ne.exit().remove(),ne.each(function(ce,re){var ee=l.select(this),de=m(J),le=de.colorscale,he=de.reversescale,xe=function(Te){if(Te.size()){var Ae="legendfill-"+J.uid;w.gradient(Te,M,Ae,E(he,oe==="radial"),le,"fill")}},Ee;if(le){if(!oe){var ke=le.length;Ee=re===0?le[he?ke-1:0][1]:re===1?le[he?0:ke-1][1]:le[Math.floor((ke-1)/2)][1]}}else{var Se=J.vertexcolor||J.facecolor||J.color;Ee=i.isArrayOrTypedArray(Se)?Se[re]||Se[0]:Se}ee.attr("d",ce[0]),Ee?ee.call(v.fill,Ee):ee.call(xe)})}};function E(y,A){var M=A?"radial":"horizontal";return M+(y?"":"reversed")}function g(y){var A=y[0].trace,M=A.contours,R=a.hasLines(A),T=a.hasMarkers(A),L=A.visible&&A.fill&&A.fill!=="none",P=!1,d=!1;if(M){var k=M.coloring;k==="lines"?P=!0:R=k==="none"||k==="heatmap"||M.showlines,M.type==="constraint"?L=M._operation!=="=":(k==="fill"||k==="heatmap")&&(d=!0)}return{showMarker:T,showLine:R,showFill:L,showGradientLine:P,showGradientFill:d,anyLine:R||P,anyFill:L||d}}function c(y,A,M){return y&&i.isArrayOrTypedArray(y)?A:y>M?M:y}},66540:function(D,O,t){t(76052),D.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(D,O,t){var l=t(24040),S=t(7316),i=t(79811),C=t(9224),w=t(4016).eraseActiveShape,v=t(3400),m=v._,a=D.exports={};a.toImage={name:"toImage",title:function(y){var A=y._context.toImageButtonOptions||{},M=A.format||"png";return M==="png"?m(y,"Download plot as a png"):m(y,"Download plot")},icon:C.camera,click:function(y){var A=y._context.toImageButtonOptions,M={format:A.format||"png"};v.notifier(m(y,"Taking snapshot - this may take a few seconds"),"long"),M.format!=="svg"&&v.isIE()&&(v.notifier(m(y,"IE only supports svg. Changing format to svg."),"long"),M.format="svg"),["filename","width","height","scale"].forEach(function(R){R in A&&(M[R]=A[R])}),l.call("downloadImage",y,M).then(function(R){v.notifier(m(y,"Snapshot succeeded")+" - "+R,"long")}).catch(function(){v.notifier(m(y,"Sorry, there was a problem downloading your snapshot!"),"long")})}},a.sendDataToCloud={name:"sendDataToCloud",title:function(y){return m(y,"Edit in Chart Studio")},icon:C.disk,click:function(y){S.sendDataToCloud(y)}},a.editInChartStudio={name:"editInChartStudio",title:function(y){return m(y,"Edit in Chart Studio")},icon:C.pencil,click:function(y){S.sendDataToCloud(y)}},a.zoom2d={name:"zoom2d",_cat:"zoom",title:function(y){return m(y,"Zoom")},attr:"dragmode",val:"zoom",icon:C.zoombox,click:n},a.pan2d={name:"pan2d",_cat:"pan",title:function(y){return m(y,"Pan")},attr:"dragmode",val:"pan",icon:C.pan,click:n},a.select2d={name:"select2d",_cat:"select",title:function(y){return m(y,"Box Select")},attr:"dragmode",val:"select",icon:C.selectbox,click:n},a.lasso2d={name:"lasso2d",_cat:"lasso",title:function(y){return m(y,"Lasso Select")},attr:"dragmode",val:"lasso",icon:C.lasso,click:n},a.drawclosedpath={name:"drawclosedpath",title:function(y){return m(y,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:C.drawclosedpath,click:n},a.drawopenpath={name:"drawopenpath",title:function(y){return m(y,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:C.drawopenpath,click:n},a.drawline={name:"drawline",title:function(y){return m(y,"Draw line")},attr:"dragmode",val:"drawline",icon:C.drawline,click:n},a.drawrect={name:"drawrect",title:function(y){return m(y,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:C.drawrect,click:n},a.drawcircle={name:"drawcircle",title:function(y){return m(y,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:C.drawcircle,click:n},a.eraseshape={name:"eraseshape",title:function(y){return m(y,"Erase active shape")},icon:C.eraseshape,click:w},a.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(y){return m(y,"Zoom in")},attr:"zoom",val:"in",icon:C.zoom_plus,click:n},a.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(y){return m(y,"Zoom out")},attr:"zoom",val:"out",icon:C.zoom_minus,click:n},a.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(y){return m(y,"Autoscale")},attr:"zoom",val:"auto",icon:C.autoscale,click:n},a.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(y){return m(y,"Reset axes")},attr:"zoom",val:"reset",icon:C.home,click:n},a.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(y){return m(y,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:C.tooltip_basic,gravity:"ne",click:n},a.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(y){return m(y,"Compare data on hover")},attr:"hovermode",val:function(y){return y._fullLayout._isHoriz?"y":"x"},icon:C.tooltip_compare,gravity:"ne",click:n};function n(y,A){var M=A.currentTarget,R=M.getAttribute("data-attr"),T=M.getAttribute("data-val")||!0,L=y._fullLayout,P={},d=i.list(y,null,!0),k=L._cartesianSpikesEnabled,I,N;if(R==="zoom"){var B=T==="in"?.5:2,G=(1+B)/2,U=(1-B)/2,H;for(N=0;N1?(ie=["toggleHover"],fe=["resetViews"]):P?(ae=["zoomInGeo","zoomOutGeo"],ie=["hoverClosestGeo"],fe=["resetGeo"]):L?(ie=["hoverClosest3d"],fe=["resetCameraDefault3d","resetCameraLastSave3d"]):B?(ae=["zoomInMapbox","zoomOutMapbox"],ie=["toggleHover"],fe=["resetViewMapbox"]):I?ie=["hoverClosestGl2d"]:d?ie=["hoverClosestPie"]:H?(ie=["hoverClosestCartesian","hoverCompareCartesian"],fe=["resetViewSankey"]):ie=["toggleHover"],T&&(ie=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(h(E)||V)&&(ie=[]),(T||I)&&!W&&(ae=["zoomIn2d","zoomOut2d","autoScale2d"],fe[0]!=="resetViews"&&(fe=["resetScale2d"])),L?Q=["zoom3d","pan3d","orbitRotation","tableRotation"]:(T||I)&&!W||N?Q=["zoom2d","pan2d"]:B||P?Q=["pan2d"]:G&&(Q=["zoom2d"]),o(E)&&Q.push("select2d","lasso2d");var J=[],oe=function(re){J.indexOf(re)===-1&&ie.indexOf(re)!==-1&&J.push(re)};if(Array.isArray(M)){for(var K=[],ne=0;ne0);if(c){var y=a(o,h,f);E("x",y[0]),E("y",y[1]),l.noneOrAll(s,o,["x","y"]),E("xanchor"),E("yanchor"),l.coerceFont(E,"font",h.font);var A=E("bgcolor");E("activecolor",S.contrast(A,v.lightAmount,v.darkAmount)),E("bordercolor"),E("borderwidth")}};function m(n,s,o,h){var f=h.calendar;function u(E,g){return l.coerce(n,s,w.buttons,E,g)}var b=u("visible");if(b){var p=u("step");p!=="all"&&(f&&f!=="gregorian"&&(p==="month"||p==="year")?s.stepmode="backward":u("stepmode"),u("count")),u("label")}}function a(n,s,o){for(var h=o.filter(function(p){return s[p].anchor===n._id}),f=0,u=0;u=Ae.max)ke=le[Te+1];else if(Se=Ae.pmax)ke=le[Te+1];else if(Se0?L.touches[0].clientX:0}function b(L,P,d,k){if(P._context.staticPlot)return;var I=L.select("rect."+f.slideBoxClassName).node(),N=L.select("rect."+f.grabAreaMinClassName).node(),B=L.select("rect."+f.grabAreaMaxClassName).node();function G(){var U=l.event,H=U.target,W=u(U),V=W-L.node().getBoundingClientRect().left,$=k.d2p(d._rl[0]),Z=k.d2p(d._rl[1]),q=o.coverSlip();this.addEventListener("touchmove",ae),this.addEventListener("touchend",ie),q.addEventListener("mousemove",ae),q.addEventListener("mouseup",ie);function ae(fe){var Q=u(fe),J=+Q-W,oe,K,ne;switch(H){case I:if(ne="ew-resize",$+J>d._length||Z+J<0)return;oe=$+J,K=Z+J;break;case N:if(ne="col-resize",$+J>d._length)return;oe=$+J,K=Z;break;case B:if(ne="col-resize",Z+J<0)return;oe=$,K=Z+J;break;default:ne="ew-resize",oe=V,K=V+J;break}if(K=0;G--){var U=M.append("path").attr(T).style("opacity",G?.1:L).call(C.stroke,d).call(C.fill,P).call(w.dashLine,G?"solid":I,G?4+k:k);if(h(U,p,c),N){var H=v(p.layout,"selections",c);U.style({cursor:"move"});var W={element:U.node(),plotinfo:y,gd:p,editHelpers:H,isActiveSelection:!0},V=l(R,p);S(V,U,W)}else U.style("pointer-events",G?"all":"none");B[G]=U}var $=B[0],Z=B[1];Z.node().addEventListener("click",function(){return f(p,$)})}}function h(p,E,g){var c=g.xref+g.yref;w.setClipUrl(p,"clip"+E._fullLayout._uid+c,E)}function f(p,E){if(s(p)){var g=E.node(),c=+g.getAttribute("data-index");if(c>=0){if(c===p._fullLayout._activeSelectionIndex){b(p);return}p._fullLayout._activeSelectionIndex=c,p._fullLayout._deactivateSelection=b,n(p)}}}function u(p){if(s(p)){var E=p._fullLayout.selections.length-1;p._fullLayout._activeSelectionIndex=E,p._fullLayout._deactivateSelection=b,n(p)}}function b(p){if(s(p)){var E=p._fullLayout._activeSelectionIndex;E>=0&&(i(p),delete p._fullLayout._activeSelectionIndex,n(p))}}},34200:function(D,O,t){var l=t(98192).u,S=t(92880).extendFlat;D.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:S({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(D){D.exports=function(t,l,S){S("newselection.mode");var i=S("newselection.line.width");i&&(S("newselection.line.color"),S("newselection.line.dash")),S("activeselection.fillcolor"),S("activeselection.opacity")}},5968:function(D,O,t){var l=t(72760),S=l.selectMode,i=t(1936),C=i.clearOutline,w=t(9856),v=w.readPaths,m=w.writePaths,a=w.fixDatesForPaths;D.exports=function(s,o){if(s.length){var h=s[0][0];if(h){var f=h.getAttribute("d"),u=o.gd,b=u._fullLayout.newselection,p=o.plotinfo,E=p.xaxis,g=p.yaxis,c=o.isActiveSelection,y=o.dragmode,A=(u.layout||{}).selections||[];if(!S(y)&&c!==void 0){var M=u._fullLayout._activeSelectionIndex;if(M=0){Lt._fullLayout._deactivateShape(Lt);return}if(!yt){var On=Xt.clickmode;d.done(Xr).then(function(){if(d.clear(Xr),un===2){for(ar.remove(),Qt=0;Qt-1&&ie(Fn,Lt,we.xaxes,we.yaxes,we.subplot,we,ar),On==="event"&&Ye(Lt,void 0);v.click(Lt,Fn,qt.id)}).catch(T.error)}},we.doneFn=function(){Sr.remove(),d.done(Xr).then(function(){d.clear(Xr),!dr&&Bt&&we.selectionDefs&&(Bt.subtract=pr,we.selectionDefs.push(Bt),we.mergedPolygons.length=0,[].push.apply(we.mergedPolygons,Ut)),(dr||yt)&&re(we,dr),we.doneFnCompleted&&we.doneFnCompleted(kr),ut&&Ye(Lt,fr)}).catch(T.error)}}function ie(We,Fe,Me,we,Re,Pe,Ve){var Je=Fe._hoverdata,ot=Fe._fullLayout,yt=ot.clickmode,ut=yt.indexOf("event")>-1,It=[],Vt,xt,Lt,Xt,dr,Tt,Kt,qt,br,sr;if(he(Je)){K(We,Fe,Pe),Vt=de(Fe,Me,we,Re);var Ct=xe(Je,Vt),ht=Ct.pointNumbers.length>0;if(ht?Se(Vt,Ct):ke(Vt)&&(Kt=Ee(Ct))){for(Ve&&Ve.remove(),sr=0;sr=0}function ce(We){return We._fullLayout._activeSelectionIndex>=0}function re(We,Fe){var Me=We.dragmode,we=We.plotinfo,Re=We.gd;ne(Re)&&Re._fullLayout._deactivateShape(Re),ce(Re)&&Re._fullLayout._deactivateSelection(Re);var Pe=Re._fullLayout,Ve=Pe._zoomlayer,Je=o(Me),ot=f(Me);if(Je||ot){var yt=Ve.selectAll(".select-outline-"+we.id);if(yt&&Re._fullLayout._outlining){var ut;Je&&(ut=A(yt,We)),ut&&i.call("_guiRelayout",Re,{shapes:ut});var It;ot&&!q(We)&&(It=M(yt,We)),It&&(Re._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",Re,{selections:It}).then(function(){Fe&&R(Re)})),Re._fullLayout._outlining=!1}}we.selection={},we.selection.selectionDefs=We.selectionDefs=[],we.selection.mergedPolygons=We.mergedPolygons=[]}function ee(We){return We._id}function de(We,Fe,Me,we){if(!We.calcdata)return[];var Re=[],Pe=Fe.map(ee),Ve=Me.map(ee),Je,ot,yt;for(yt=0;yt0,Pe=Re?we[0]:Me;return Fe.selectedpoints?Fe.selectedpoints.indexOf(Pe)>-1:!1}function Se(We,Fe){var Me=[],we,Re,Pe,Ve;for(Ve=0;Ve0&&Me.push(we);if(Me.length===1&&(Pe=Me[0]===Fe.searchInfo,Pe&&(Re=Fe.searchInfo.cd[0].trace,Re.selectedpoints.length===Fe.pointNumbers.length))){for(Ve=0;Ve1||(Fe+=we.selectedpoints.length,Fe>1)))return!1;return Fe===1}function Te(We,Fe,Me){var we;for(we=0;we-1&&Fe;if(!Ve&&Fe){var un=nt(We,!0);if(un.length){var Fn=un[0].xref,On=un[0].yref;if(Fn&&On){var gr=lt(un),Br=wt([k(We,Fn,"x"),k(We,On,"y")]);Br(kr,gr)}}We._fullLayout._noEmitSelectedAtStart?We._fullLayout._noEmitSelectedAtStart=!1:bn&&Ye(We,kr),Vt._reselect=!1}if(!Ve&&Vt._deselect){var Zr=Vt._deselect;Je=Zr.xref,ot=Zr.yref,st(Je,ot,ut)||vt(We,Je,ot,we),bn&&(kr.points.length?Ye(We,kr):Ze(We)),Vt._deselect=!1}return{eventData:kr,selectionTesters:Me}}function $e(We){var Fe=We.calcdata;if(Fe)for(var Me=0;Me0?g+b:b;return{ppad:b,ppadplus:p?y:A,ppadminus:p?A:y}}else return{ppad:b}}function a(n,s,o,h,f){var u=n.type==="category"||n.type==="multicategory"?n.r2c:n.d2c;if(s!==void 0)return[u(s),u(o)];if(h){var b=1/0,p=-1/0,E=h.match(i.segmentRE),g,c,y,A,M;for(n.type==="date"&&(u=C.decodeDate(u)),g=0;gp&&(p=M)));if(p>=b)return[b,p]}}},85448:function(D){D.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(D,O,t){var l=t(3400),S=t(54460),i=t(51272),C=t(46056),w=t(65152);D.exports=function(n,s){i(n,s,{name:"shapes",handleItemDefaults:m})};function v(a,n){return a?"bottom":n.indexOf("top")!==-1?"top":n.indexOf("bottom")!==-1?"bottom":"middle"}function m(a,n,s){function o(Q,J){return l.coerce(a,n,C,Q,J)}n._isShape=!0;var h=o("visible");if(h){var f=o("showlegend");f&&(o("legend"),o("legendwidth"),o("legendgroup"),o("legendgrouptitle.text"),l.coerceFont(o,"legendgrouptitle.font"),o("legendrank"));var u=o("path"),b=u?"path":"rect",p=o("type",b),E=p!=="path";E&&delete n.path,o("editable"),o("layer"),o("opacity"),o("fillcolor"),o("fillrule");var g=o("line.width");g&&(o("line.color"),o("line.dash"));for(var c=o("xsizemode"),y=o("ysizemode"),A=["x","y"],M=0;M<2;M++){var R=A[M],T=R+"anchor",L=R==="x"?c:y,P={_fullLayout:s},d,k,I,N=S.coerceRef(a,n,P,R,void 0,"paper"),B=S.getRefType(N);if(B==="range"?(d=S.getFromId(P,N),d._shapeIndices.push(n._index),I=w.rangeToShapePosition(d),k=w.shapePositionToRange(d)):k=I=l.identity,E){var G=.25,U=.75,H=R+"0",W=R+"1",V=a[H],$=a[W];a[H]=k(a[H],!0),a[W]=k(a[W],!0),L==="pixel"?(o(H,0),o(W,10)):(S.coercePosition(n,P,o,N,H,G),S.coercePosition(n,P,o,N,W,U)),n[H]=I(n[H]),n[W]=I(n[W]),a[H]=V,a[W]=$}if(L==="pixel"){var Z=a[T];a[T]=k(a[T],!0),S.coercePosition(n,P,o,N,T,.25),n[T]=I(n[T]),a[T]=Z}}E&&l.noneOrAll(a,n,["x0","x1","y0","y1"]);var q=p==="line",ae,ie;if(E&&(ae=o("label.texttemplate")),ae||(ie=o("label.text")),ie||ae){o("label.textangle");var fe=o("label.textposition",q?"middle":"middle center");o("label.xanchor"),o("label.yanchor",v(q,fe)),o("label.padding"),l.coerceFont(o,"label.font",s.font)}}}},60728:function(D,O,t){var l=t(3400),S=t(54460),i=t(72736),C=t(43616),w=t(9856).readPaths,v=t(65152),m=v.getPathString,a=t(97728),n=t(84284).FROM_TL;D.exports=function(f,u,b,p){if(p.selectAll(".shape-label").remove(),!!(b.label.text||b.label.texttemplate)){var E;if(b.label.texttemplate){var g={};if(b.type!=="path"){var c=S.getFromId(f,b.xref),y=S.getFromId(f,b.yref);for(var A in a){var M=a[A](b,c,y);M!==void 0&&(g[A]=M)}}E=l.texttemplateStringForShapes(b.label.texttemplate,{},f._fullLayout._d3locale,g)}else E=b.label.text;var R={"data-index":u},T=b.label.font,L={"data-notex":1},P=p.append("g").attr(R).classed("shape-label",!0),d=P.append("text").attr(L).classed("shape-label-text",!0).text(E),k,I,N,B;if(b.path){var G=m(f,b),U=w(G,f);k=1/0,N=1/0,I=-1/0,B=-1/0;for(var H=0;H=h?p=f-b:p=b-f,-180/Math.PI*Math.atan2(p,E)}function o(h,f,u,b,p,E,g){var c=p.label.textposition,y=p.label.textangle,A=p.label.padding,M=p.type,R=Math.PI/180*E,T=Math.sin(R),L=Math.cos(R),P=p.label.xanchor,d=p.label.yanchor,k,I,N,B;if(M==="line"){c==="start"?(k=h,I=f):c==="end"?(k=u,I=b):(k=(h+u)/2,I=(f+b)/2),P==="auto"&&(c==="start"?y==="auto"?u>h?P="left":uh?P="right":uh?P="right":uh?P="left":u1&&!(be.length===2&&be[1][0]==="Z")&&(Q===0&&(be[0][0]="M"),k[fe]=be,U(),H())}}function le(be,Ie){if(be===2){fe=+Ie.srcElement.getAttribute("data-i"),Q=+Ie.srcElement.getAttribute("data-j");var Ue=k[fe];!E(Ue)&&!g(Ue)&&de()}}function he(be){ae=[];for(var Ie=0;IeU&&Me>H&&!Ze.shiftKey?h.getCursor(we/Fe,1-Re/Me):"move";f(k,Pe),st=Pe.split("-")[0]}}function mt(Ze){g(d)||(W&&(J=be(I.xanchor)),V&&(oe=Ie(I.yanchor)),I.type==="path"?xe=I.path:(ae=W?I.x0:be(I.x0),ie=V?I.y0:Ie(I.y0),fe=W?I.x1:be(I.x1),Q=V?I.y1:Ie(I.y1)),aeQ?(K=ie,ee="y0",ne=Q,de="y1"):(K=Q,ee="y1",ne=ie,de="y0"),nt(Ze),et(B,I),Ye(k,I,d),$e.moveFn=st==="move"?dt:wt,$e.altKey=Ze.altKey)}function rt(){g(d)||(f(k),Be(B),A(k,d,I),S.call("_guiRelayout",d,G.getUpdateObj()))}function lt(){g(d)||Be(B)}function dt(Ze,We){if(I.type==="path"){var Fe=function(Re){return Re},Me=Fe,we=Fe;W?q("xanchor",I.xanchor=Ue(J+Ze)):(Me=function(Pe){return Ue(be(Pe)+Ze)},Se&&Se.type==="date"&&(Me=b.encodeDate(Me))),V?q("yanchor",I.yanchor=Ne(oe+We)):(we=function(Pe){return Ne(Ie(Pe)+We)},Te&&Te.type==="date"&&(we=b.encodeDate(we))),q("path",I.path=R(xe,Me,we))}else W?q("xanchor",I.xanchor=Ue(J+Ze)):(q("x0",I.x0=Ue(ae+Ze)),q("x1",I.x1=Ue(fe+Ze))),V?q("yanchor",I.yanchor=Ne(oe+We)):(q("y0",I.y0=Ne(ie+We)),q("y1",I.y1=Ne(Q+We)));k.attr("d",p(d,I)),et(B,I),m(d,N,I,Ee)}function wt(Ze,We){if(Z){var Fe=function(Tt){return Tt},Me=Fe,we=Fe;W?q("xanchor",I.xanchor=Ue(J+Ze)):(Me=function(Kt){return Ue(be(Kt)+Ze)},Se&&Se.type==="date"&&(Me=b.encodeDate(Me))),V?q("yanchor",I.yanchor=Ne(oe+We)):(we=function(Kt){return Ne(Ie(Kt)+We)},Te&&Te.type==="date"&&(we=b.encodeDate(we))),q("path",I.path=R(xe,Me,we))}else if($){if(st==="resize-over-start-point"){var Re=ae+Ze,Pe=V?ie-We:ie+We;q("x0",I.x0=W?Re:Ue(Re)),q("y0",I.y0=V?Pe:Ne(Pe))}else if(st==="resize-over-end-point"){var Ve=fe+Ze,Je=V?Q-We:Q+We;q("x1",I.x1=W?Ve:Ue(Ve)),q("y1",I.y1=V?Je:Ne(Je))}}else{var ot=function(Tt){return st.indexOf(Tt)!==-1},yt=ot("n"),ut=ot("s"),It=ot("w"),Vt=ot("e"),xt=yt?K+We:K,Lt=ut?ne+We:ne,Xt=It?ce+Ze:ce,dr=Vt?re+Ze:re;V&&(yt&&(xt=K-We),ut&&(Lt=ne-We)),(!V&&Lt-xt>H||V&&xt-Lt>H)&&(q(ee,I[ee]=V?xt:Ne(xt)),q(de,I[de]=V?Lt:Ne(Lt))),dr-Xt>U&&(q(le,I[le]=W?Xt:Ue(Xt)),q(he,I[he]=W?dr:Ue(dr)))}k.attr("d",p(d,I)),et(B,I),m(d,N,I,Ee)}function et(Ze,We){(W||V)&&Fe();function Fe(){var Me=We.type!=="path",we=Ze.selectAll(".visual-cue").data([0]),Re=1;we.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Re}).classed("visual-cue",!0);var Pe=be(W?We.xanchor:i.midRange(Me?[We.x0,We.x1]:b.extractPathCoords(We.path,u.paramIsX))),Ve=Ie(V?We.yanchor:i.midRange(Me?[We.y0,We.y1]:b.extractPathCoords(We.path,u.paramIsY)));if(Pe=b.roundPositionForSharpStrokeRendering(Pe,Re),Ve=b.roundPositionForSharpStrokeRendering(Ve,Re),W&&V){var Je="M"+(Pe-1-Re)+","+(Ve-1-Re)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";we.attr("d",Je)}else if(W){var ot="M"+(Pe-1-Re)+","+(Ve-9-Re)+"v18 h2 v-18 Z";we.attr("d",ot)}else{var yt="M"+(Pe-9-Re)+","+(Ve-1-Re)+"h18 v2 h-18 Z";we.attr("d",yt)}}}function Be(Ze){Ze.selectAll(".visual-cue").remove()}function Ye(Ze,We,Fe){var Me=We.xref,we=We.yref,Re=C.getFromId(Fe,Me),Pe=C.getFromId(Fe,we),Ve="";Me!=="paper"&&!Re.autorange&&(Ve+=Me),we!=="paper"&&!Pe.autorange&&(Ve+=we),s.setClipUrl(Ze,Ve?"clip"+Fe._fullLayout._uid+Ve:null,Fe)}}function R(d,k,I){return d.replace(u.segmentRE,function(N){var B=0,G=N.charAt(0),U=u.paramIsX[G],H=u.paramIsY[G],W=u.numParams[G],V=N.substr(1).replace(u.paramRE,function($){return B>=W||(U[B]?$=k($):H[B]&&($=I($)),B++),$});return G+V})}function T(d,k){if(c(d)){var I=k.node(),N=+I.getAttribute("data-index");if(N>=0){if(N===d._fullLayout._activeShapeIndex){L(d);return}d._fullLayout._activeShapeIndex=N,d._fullLayout._deactivateShape=L,E(d)}}}function L(d){if(c(d)){var k=d._fullLayout._activeShapeIndex;k>=0&&(a(d),delete d._fullLayout._activeShapeIndex,E(d))}}function P(d){if(c(d)){a(d);var k=d._fullLayout._activeShapeIndex,I=(d.layout||{}).shapes||[];if(k0&&yg&&(y="X"),y});return u>g&&(c=c.replace(/[\s,]*X.*/,""),S.log("Ignoring extra params in segment "+f)),b+c})}},41592:function(D,O,t){var l=t(4016);D.exports={moduleType:"component",name:"shapes",layoutAttributes:t(46056),supplyLayoutDefaults:t(43712),supplyDrawNewShapeDefaults:t(65144),includeBasePlot:t(36632)("shapes"),calcAutorange:t(96084),draw:l.draw,drawOne:l.drawOne}},97728:function(D){function O(f,u){return u?u.d2l(f):f}function t(f,u){return u?u.l2d(f):f}function l(f){return f.x0}function S(f){return f.x1}function i(f){return f.y0}function C(f){return f.y1}function w(f,u){return O(f.x1,u)-O(f.x0,u)}function v(f,u,b){return O(f.y1,b)-O(f.y0,b)}function m(f,u){return Math.abs(w(f,u))}function a(f,u,b){return Math.abs(v(f,u,b))}function n(f,u,b){return f.type!=="line"?void 0:Math.sqrt(Math.pow(w(f,u),2)+Math.pow(v(f,u,b),2))}function s(f,u){return t((O(f.x1,u)+O(f.x0,u))/2,u)}function o(f,u,b){return t((O(f.y1,b)+O(f.y0,b))/2,b)}function h(f,u,b){return f.type!=="line"?void 0:v(f,u,b)/w(f,u)}D.exports={x0:l,x1:S,y0:i,y1:C,slope:h,dx:w,dy:v,width:m,height:a,length:n,xcenter:s,ycenter:o}},89861:function(D,O,t){var l=t(25376),S=t(66741),i=t(92880).extendDeepAll,C=t(67824).overrideAll,w=t(85656),v=t(31780).templatedArray,m=t(60876),a=v("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});D.exports=C(v("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(S({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},60876:function(D){D.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(D,O,t){var l=t(3400),S=t(51272),i=t(89861),C=t(60876),w=C.name,v=i.steps;D.exports=function(s,o){S(s,o,{name:w,handleItemDefaults:m})};function m(n,s,o){function h(y,A){return l.coerce(n,s,i,y,A)}for(var f=S(n,s,{name:"steps",handleItemDefaults:a}),u=0,b=0;b0?[0]:[]);Z.enter().append("g").classed(n.containerClassName,!0).style("cursor",W?null:"ew-resize");function q(Q){Q._commandObserver&&(Q._commandObserver.remove(),delete Q._commandObserver),S.autoMargin(H,u(Q))}if(Z.exit().each(function(){l.select(this).selectAll("g."+n.groupClassName).each(q)}).remove(),$.length!==0){var ae=Z.selectAll("g."+n.groupClassName).data($,p);ae.enter().append("g").classed(n.groupClassName,!0),ae.exit().each(q).remove();for(var ie=0;ie<$.length;ie++){var fe=$[ie];E(H,fe)}ae.each(function(Q){var J=l.select(this);d(Q),S.manageCommandObserver(H,Q,Q._visibleSteps,function(oe){var K=J.data()[0];K.active!==oe.index&&(K._dragging||T(H,J,K,oe.index,!1,!0))}),g(H,l.select(this),Q)})}};function u(U){return n.autoMarginIdRoot+U._index}function b(U,H){for(var W=U[n.name],V=[],$=0;$0&&(ae=ae.transition().duration(H.transition.duration).ease(H.transition.easing)),ae.attr("transform",v(q-n.gripWidth*.5,H._dims.currentValueTotalHeight))}}function I(U,H){var W=U._dims;return W.inputAreaStart+n.stepInset+(W.inputAreaLength-2*n.stepInset)*Math.min(1,Math.max(0,H))}function N(U,H){var W=U._dims;return Math.min(1,Math.max(0,(H-n.stepInset-W.inputAreaStart)/(W.inputAreaLength-2*n.stepInset-2*W.inputAreaStart)))}function B(U,H,W){var V=W._dims,$=w.ensureSingle(U,"rect",n.railTouchRectClass,function(Z){Z.call(L,H,U,W).style("pointer-events","all")});$.attr({width:V.inputAreaLength,height:Math.max(V.inputAreaWidth,n.tickOffset+W.ticklen+V.labelHeight)}).call(i.fill,W.bgcolor).attr("opacity",0),C.setTranslate($,0,V.currentValueTotalHeight)}function G(U,H){var W=H._dims,V=W.inputAreaLength-n.railInset*2,$=w.ensureSingle(U,"rect",n.railRectClass);$.attr({width:V,height:n.railWidth,rx:n.railRadius,ry:n.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,H.bordercolor).call(i.fill,H.bgcolor).style("stroke-width",H.borderwidth+"px"),C.setTranslate($,n.railInset,(W.inputAreaWidth-n.railWidth)*.5+W.currentValueTotalHeight)}},97544:function(D,O,t){var l=t(60876);D.exports={moduleType:"component",name:l.name,layoutAttributes:t(89861),supplyLayoutDefaults:t(8132),draw:t(79664)}},81668:function(D,O,t){var l=t(33428),S=t(38248),i=t(7316),C=t(24040),w=t(3400),v=w.strTranslate,m=t(43616),a=t(76308),n=t(72736),s=t(13448),o=t(84284).OPPOSITE_SIDE,h=/ [XY][0-9]* /;function f(u,b,p){var E=p.propContainer,g=p.propName,c=p.placeholder,y=p.traceIndex,A=p.avoid||{},M=p.attributes,R=p.transform,T=p.containerGroup,L=u._fullLayout,P=1,d=!1,k=E.title,I=(k&&k.text?k.text:"").trim(),N=k&&k.font?k.font:{},B=N.family,G=N.size,U=N.color,H;g==="title.text"?H="titleText":g.indexOf("axis")!==-1?H="axisTitleText":g.indexOf("colorbar"!==-1)&&(H="colorbarTitleText");var W=u._context.edits[H];I===""?P=0:I.replace(h," % ")===c.replace(h," % ")&&(P=.2,d=!0,W||(I="")),p._meta?I=w.templateString(I,p._meta):L._meta&&(I=w.templateString(I,L._meta));var V=I||W,$;T||(T=w.ensureSingle(L._infolayer,"g","g-"+b),$=L._hColorbarMoveTitle);var Z=T.selectAll("text").data(V?[0]:[]);if(Z.enter().append("text"),Z.text(I).attr("class",b),Z.exit().remove(),!V)return T;function q(Q){w.syncOrAsync([ae,ie],Q)}function ae(Q){var J;return!R&&$&&(R={}),R?(J="",R.rotate&&(J+="rotate("+[R.rotate,M.x,M.y]+")"),(R.offset||$)&&(J+=v(0,(R.offset||0)-($||0)))):J=null,Q.attr("transform",J),Q.style({"font-family":B,"font-size":l.round(G,2)+"px",fill:a.rgb(U),opacity:P*a.opacity(U),"font-weight":i.fontWeight}).attr(M).call(n.convertToTspans,u),i.previousPromises(u)}function ie(Q){var J=l.select(Q.node().parentNode);if(A&&A.selection&&A.side&&I){J.attr("transform",null);var oe=o[A.side],K=A.side==="left"||A.side==="top"?-1:1,ne=S(A.pad)?A.pad:2,ce=m.bBox(J.node()),re={t:0,b:0,l:0,r:0},ee=u._fullLayout._reservedMargin;for(var de in ee)for(var le in ee[de]){var he=ee[de][le];re[le]=Math.max(re[le],he)}var xe={left:re.l,top:re.t,right:L.width-re.r,bottom:L.height-re.b},Ee=A.maxShift||K*(xe[A.side]-ce[A.side]),Se=0;if(Ee<0)Se=Ee;else{var ke=A.offsetLeft||0,Te=A.offsetTop||0;ce.left-=ke,ce.right-=ke,ce.top-=Te,ce.bottom-=Te,A.selection.each(function(){var be=m.bBox(this);w.bBoxIntersect(ce,be,ne)&&(Se=Math.max(Se,K*(be[A.side]-ce[oe])+ne))}),Se=Math.min(Ee,Se),E._titleScoot=Math.abs(Se)}if(Se>0||Ee<0){var Ae={left:[-Se,0],right:[Se,0],top:[0,-Se],bottom:[0,Se]}[A.side];J.attr("transform",v(Ae[0],Ae[1]))}}}Z.call(q);function fe(){P=0,d=!0,Z.text(c).on("mouseover.opacity",function(){l.select(this).transition().duration(s.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(s.HIDE_PLACEHOLDER).style("opacity",0)})}return W&&(I?Z.on(".opacity",null):fe(),Z.call(n.makeEditable,{gd:u}).on("edit",function(Q){y!==void 0?C.call("_guiRestyle",u,g,Q,y):C.call("_guiRelayout",u,g,Q)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(q)}).on("input",function(Q){this.text(Q||" ").call(n.positionText,M.x,M.y)})),Z.classed("js-placeholder",d),T}D.exports={draw:f}},88444:function(D,O,t){var l=t(25376),S=t(22548),i=t(92880).extendFlat,C=t(67824).overrideAll,w=t(66741),v=t(31780).templatedArray,m=v("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});D.exports=C(v("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:S.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(D){D.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(D,O,t){var l=t(3400),S=t(51272),i=t(88444),C=t(73712),w=C.name,v=i.buttons;D.exports=function(s,o){var h={name:w,handleItemDefaults:m};S(s,o,h)};function m(n,s,o){function h(b,p){return l.coerce(n,s,i,b,p)}var f=S(n,s,{name:"buttons",handleItemDefaults:a}),u=h("visible",f.length>0);u&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),l.noneOrAll(n,s,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),l.coerceFont(h,"font",o.font),h("bgcolor",o.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function a(n,s){function o(f,u){return l.coerce(n,s,v,f,u)}var h=o("visible",n.method==="skip"||Array.isArray(n.args));h&&(o("method"),o("args"),o("args2"),o("label"),o("execute"))}},14420:function(D,O,t){var l=t(33428),S=t(7316),i=t(76308),C=t(43616),w=t(3400),v=t(72736),m=t(31780).arrayEditor,a=t(84284).LINE_SPACING,n=t(73712),s=t(37400);D.exports=function(N){var B=N._fullLayout,G=w.filterVisible(B[n.name]);function U(ie){S.autoMargin(N,P(ie))}var H=B._menulayer.selectAll("g."+n.containerClassName).data(G.length>0?[0]:[]);if(H.enter().append("g").classed(n.containerClassName,!0).style("cursor","pointer"),H.exit().each(function(){l.select(this).selectAll("g."+n.headerGroupClassName).each(U)}).remove(),G.length!==0){var W=H.selectAll("g."+n.headerGroupClassName).data(G,o);W.enter().append("g").classed(n.headerGroupClassName,!0);for(var V=w.ensureSingle(H,"g",n.dropdownButtonGroupClassName,function(ie){ie.style("pointer-events","all")}),$=0;$M,N=w.barLength+2*w.barPad,B=w.barWidth+2*w.barPad,G=f,U=b+p;U+B>h&&(U=h-B);var H=this.container.selectAll("rect.scrollbar-horizontal").data(I?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-horizontal",!0).call(S.fill,w.barColor),I?(this.hbar=H.attr({rx:w.barRadius,ry:w.barRadius,x:G,y:U,width:N,height:B}),this._hbarXMin=G+N/2,this._hbarTranslateMax=M-N):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var W=p>R,V=w.barWidth+2*w.barPad,$=w.barLength+2*w.barPad,Z=f+u,q=b;Z+V>o&&(Z=o-V);var ae=this.container.selectAll("rect.scrollbar-vertical").data(W?[0]:[]);ae.exit().on(".drag",null).remove(),ae.enter().append("rect").classed("scrollbar-vertical",!0).call(S.fill,w.barColor),W?(this.vbar=ae.attr({rx:w.barRadius,ry:w.barRadius,x:Z,y:q,width:V,height:$}),this._vbarYMin=q+$/2,this._vbarTranslateMax=R-$):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ie=this.id,fe=T-.5,Q=W?L+V+.5:L+.5,J=P-.5,oe=I?d+B+.5:d+.5,K=s._topdefs.selectAll("#"+ie).data(I||W?[0]:[]);if(K.exit().remove(),K.enter().append("clipPath").attr("id",ie).append("rect"),I||W?(this._clipRect=K.select("rect").attr({x:Math.floor(fe),y:Math.floor(J),width:Math.ceil(Q)-Math.floor(fe),height:Math.ceil(oe)-Math.floor(J)}),this.container.call(i.setClipUrl,ie,this.gd),this.bg.attr({x:f,y:b,width:u,height:p})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),I||W){var ne=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var ce=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));I&&this.hbar.on(".drag",null).call(ce),W&&this.vbar.on(".drag",null).call(ce)}this.setTranslate(a,n)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var m=this.translateX,a=this.translateY;this.hbar&&(m-=l.event.dx),this.vbar&&(a-=l.event.dy),this.setTranslate(m,a)},w.prototype._onBoxWheel=function(){var m=this.translateX,a=this.translateY;this.hbar&&(m+=l.event.deltaY),this.vbar&&(a+=l.event.deltaY),this.setTranslate(m,a)},w.prototype._onBarDrag=function(){var m=this.translateX,a=this.translateY;if(this.hbar){var n=m+this._hbarXMin,s=n+this._hbarTranslateMax,o=C.constrain(l.event.x,n,s),h=(o-n)/(s-n),f=this.position.w-this._box.w;m=h*f}if(this.vbar){var u=a+this._vbarYMin,b=u+this._vbarTranslateMax,p=C.constrain(l.event.y,u,b),E=(p-u)/(b-u),g=this.position.h-this._box.h;a=E*g}this.setTranslate(m,a)},w.prototype.setTranslate=function(m,a){var n=this.position.w-this._box.w,s=this.position.h-this._box.h;if(m=C.constrain(m||0,0,n),a=C.constrain(a||0,0,s),this.translateX=m,this.translateY=a,this.container.call(i.setTranslate,this._box.l-this.position.l-m,this._box.t-this.position.t-a),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+m-.5),y:Math.floor(this.position.t+a-.5)}),this.hbar){var o=m/n;this.hbar.call(i.setTranslate,m+o*this._hbarTranslateMax,a)}if(this.vbar){var h=a/s;this.vbar.call(i.setTranslate,m,a+h*this._vbarTranslateMax)}}},84284:function(D){D.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(D){D.exports={axisRefDescription:function(O,t,l){return["If set to a",O,"axis id (e.g. *"+O+"* or","*"+O+"2*), the `"+O+"` position refers to a",O,"coordinate. If set to *paper*, the `"+O+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+l+"). If set to a",O,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+O+"2 domain* refers to the domain of the second",O," axis and a",O,"position of 0.5 refers to the","point between the",t,"and the",l,"of the domain of the","second",O,"axis."].join(" ")}}},48164:function(D){D.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(D){D.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(D){D.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(D){D.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(D){D.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(D){D.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(D){D.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(D,O){O.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],O.STYLE=O.CSS_DECLARATIONS.map(function(t){return t.join(": ")+"; "}).join("")},9616:function(D,O){O.xmlns="http://www.w3.org/2000/xmlns/",O.svg="http://www.w3.org/2000/svg",O.xlink="http://www.w3.org/1999/xlink",O.svgAttrs={xmlns:O.svg,"xmlns:xlink":O.xlink}},64884:function(D,O,t){O.version=t(25788).version,t(88324),t(79288);for(var l=t(24040),S=O.register=l.register,i=t(22448),C=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(D,O){O.isLeftAnchor=function(l){return l.xanchor==="left"||l.xanchor==="auto"&&l.x<=.3333333333333333},O.isCenterAnchor=function(l){return l.xanchor==="center"||l.xanchor==="auto"&&l.x>.3333333333333333&&l.x<.6666666666666666},O.isRightAnchor=function(l){return l.xanchor==="right"||l.xanchor==="auto"&&l.x>=.6666666666666666},O.isTopAnchor=function(l){return l.yanchor==="top"||l.yanchor==="auto"&&l.y>=.6666666666666666},O.isMiddleAnchor=function(l){return l.yanchor==="middle"||l.yanchor==="auto"&&l.y>.3333333333333333&&l.y<.6666666666666666},O.isBottomAnchor=function(l){return l.yanchor==="bottom"||l.yanchor==="auto"&&l.y<=.3333333333333333}},11864:function(D,O,t){var l=t(20435),S=l.mod,i=l.modHalf,C=Math.PI,w=2*C;function v(E){return E/180*C}function m(E){return E/C*180}function a(E){return Math.abs(E[1]-E[0])>w-1e-14}function n(E,g){return i(g-E,w)}function s(E,g){return Math.abs(n(E,g))}function o(E,g){if(a(g))return!0;var c,y;g[0]y&&(y+=w);var A=S(E,w),M=A+w;return A>=c&&A<=y||M>=c&&M<=y}function h(E,g,c,y){if(!o(g,y))return!1;var A,M;return c[0]=A&&E<=M}function f(E,g,c,y,A,M,R){A=A||0,M=M||0;var T=a([c,y]),L,P,d,k,I;T?(L=0,P=C,d=w):c"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};n.uint8c=n.u1c,n.uint8=n.u1,n.int8=n.i1,n.uint16=n.u2,n.int16=n.i2,n.uint32=n.u4,n.int32=n.i4,n.float32=n.f4,n.float64=n.f8;function s(f){return f.constructor===ArrayBuffer}O.isArrayBuffer=s,O.decodeTypedArraySpec=function(f){var u=[],b=o(f),p=b.dtype,E=n[p];if(!E)throw new Error('Error in dtype: "'+p+'"');var g=E.BYTES_PER_ELEMENT,c=b.bdata;s(c)||(c=l(c));var y=b.shape===void 0?[c.byteLength/g]:(""+b.shape).split(",");y.reverse();var A=y.length,M,R,T=+y[0],L=g*T,P=0;if(A===1)u=new E(c);else if(A===2)for(M=+y[1],R=0;RE.max?b.set(p):b.set(+u)}},integer:{coerceFunction:function(u,b,p,E){u%1||!l(u)||E.min!==void 0&&uE.max?b.set(p):b.set(+u)}},string:{coerceFunction:function(u,b,p,E){if(typeof u!="string"){var g=typeof u=="number";E.strict===!0||!g?b.set(p):b.set(String(u))}else E.noBlank&&!u?b.set(p):b.set(u)}},color:{coerceFunction:function(u,b,p){S(u).isValid()?b.set(u):b.set(p)}},colorlist:{coerceFunction:function(u,b,p){function E(g){return S(g).isValid()}!Array.isArray(u)||!u.length?b.set(p):u.every(E)?b.set(u):b.set(p)}},colorscale:{coerceFunction:function(u,b,p){b.set(C.get(u,p))}},angle:{coerceFunction:function(u,b,p){u==="auto"?b.set("auto"):l(u)?b.set(n(+u,360)):b.set(p)}},subplotid:{coerceFunction:function(u,b,p,E){var g=E.regex||a(p);if(typeof u=="string"&&g.test(u)){b.set(u);return}b.set(p)},validateFunction:function(u,b){var p=b.dflt;return u===p?!0:typeof u!="string"?!1:!!a(p).test(u)}},flaglist:{coerceFunction:function(u,b,p,E){if((E.extras||[]).indexOf(u)!==-1){b.set(u);return}if(typeof u!="string"){b.set(p);return}for(var g=u.split("+"),c=0;c=c&&U<=y?U:v}if(typeof U!="string"&&typeof U!="number")return v;U=String(U);var Z=E(H),q=U.charAt(0);Z&&(q==="G"||q==="g")&&(U=U.substr(1),H="");var ae=Z&&H.substr(0,7)==="chinese",ie=U.match(ae?b:u);if(!ie)return v;var fe=ie[1],Q=ie[3]||"1",J=Number(ie[5]||1),oe=Number(ie[7]||0),K=Number(ie[9]||0),ne=Number(ie[11]||0);if(Z){if(fe.length===2)return v;fe=Number(fe);var ce;try{var re=h.getComponentMethod("calendars","getCal")(H);if(ae){var ee=Q.charAt(Q.length-1)==="i";Q=parseInt(Q,10),ce=re.newDate(fe,re.toMonthIndex(fe,Q,ee),J)}else ce=re.newDate(fe,Number(Q),J)}catch{return v}return ce?(ce.toJD()-o)*m+oe*a+K*n+ne*s:v}fe.length===2?fe=(Number(fe)+2e3-p)%100+p:fe=Number(fe),Q-=1;var de=new Date(Date.UTC(2e3,Q,J,oe,K));return de.setUTCFullYear(fe),de.getUTCMonth()!==Q||de.getUTCDate()!==J?v:de.getTime()+ne*s},c=O.MIN_MS=O.dateTime2ms("-9999"),y=O.MAX_MS=O.dateTime2ms("9999-12-31 23:59:59.9999"),O.isDateTime=function(U,H){return O.dateTime2ms(U,H)!==v};function A(U,H){return String(U+Math.pow(10,H)).substr(1)}var M=90*m,R=3*a,T=5*n;O.ms2DateTime=function(U,H,W){if(typeof U!="number"||!(U>=c&&U<=y))return v;H||(H=0);var V=Math.floor(C(U+.05,1)*10),$=Math.round(U-V/10),Z,q,ae,ie,fe,Q;if(E(W)){var J=Math.floor($/m)+o,oe=Math.floor(C(U,m));try{Z=h.getComponentMethod("calendars","getCal")(W).fromJD(J).formatDate("yyyy-mm-dd")}catch{Z=f("G%Y-%m-%d")(new Date($))}if(Z.charAt(0)==="-")for(;Z.length<11;)Z="-0"+Z.substr(1);else for(;Z.length<10;)Z="0"+Z;q=H=c+m&&U<=y-m))return v;var H=Math.floor(C(U+.05,1)*10),W=new Date(Math.round(U-H/10)),V=l("%Y-%m-%d")(W),$=W.getHours(),Z=W.getMinutes(),q=W.getSeconds(),ae=W.getUTCMilliseconds()*10+H;return L(V,$,Z,q,ae)};function L(U,H,W,V,$){if((H||W||V||$)&&(U+=" "+A(H,2)+":"+A(W,2),(V||$)&&(U+=":"+A(V,2),$))){for(var Z=4;$%10===0;)Z-=1,$/=10;U+="."+A($,Z)}return U}O.cleanDate=function(U,H,W){if(U===v)return H;if(O.isJSDate(U)||typeof U=="number"&&isFinite(U)){if(E(W))return i.error("JS Dates and milliseconds are incompatible with world calendars",U),H;if(U=O.ms2DateTimeLocal(+U),!U&&H!==void 0)return H}else if(!O.isDateTime(U,W))return i.error("unrecognized date",U),H;return U};var P=/%\d?f/g,d=/%h/g,k={1:"1",2:"1",3:"2",4:"2"};function I(U,H,W,V){U=U.replace(P,function(Z){var q=Math.min(+Z.charAt(1)||6,6),ae=(H/1e3%1+2).toFixed(q).substr(2).replace(/0+$/,"")||"0";return ae});var $=new Date(Math.floor(H+.05));if(U=U.replace(d,function(){return k[W("%q")($)]}),E(V))try{U=h.getComponentMethod("calendars","worldCalFmt")(U,H,V)}catch{return"Invalid"}return W(U)($)}var N=[59,59.9,59.99,59.999,59.9999];function B(U,H){var W=C(U+.05,m),V=A(Math.floor(W/a),2)+":"+A(C(Math.floor(W/n),60),2);if(H!=="M"){S(H)||(H=0);var $=Math.min(C(U/s,60),N[H]),Z=(100+$).toFixed(H).substr(1);H>0&&(Z=Z.replace(/0+$/,"").replace(/[\.]$/,"")),V+=":"+Z}return V}O.formatDate=function(U,H,W,V,$,Z){if($=E($)&&$,!H)if(W==="y")H=Z.year;else if(W==="m")H=Z.month;else if(W==="d")H=Z.dayMonth+` `+Z.year;else return B(U,W)+` -`+I(Z.dayMonthYear,U,V,$);return I(H,U,V,$)};var G=3*m;O.incrementMonth=function(U,H,W){W=E(W)&&W;var V=C(U,m);if(U=Math.round(U-V),W)try{var $=Math.round(U/m)+o,Z=h.getComponentMethod("calendars","getCal")(W),q=Z.fromJD($);return H%12?Z.add(q,H,"m"):Z.add(q,H/12,"y"),(q.toJD()-o)*m+V}catch{i.error("invalid ms "+U+" in calendar "+W)}var ae=new Date(U+G);return ae.setUTCMonth(ae.getUTCMonth()+H)+V-G},O.findExactDates=function(U,H){for(var W=0,V=0,$=0,Z=0,q,ae,ie=E(H)&&h.getComponentMethod("calendars","getCal")(H),fe=0;fe0&&B[G+1][0]<0)return G;return null}switch(T==="RUS"||T==="FJI"?P=function(B){var G;if(N(B)===null)G=B;else for(G=new Array(B.length),I=0;IG?U[H++]=[B[I][0]+360,B[I][1]]:I===G?(U[H++]=B[I],U[H++]=[B[I][0],-90]):U[H++]=B[I];var W=s.tester(U);W.pts.pop(),L.push(W)}:P=function(B){L.push(s.tester(B))},M.type){case"MultiPolygon":for(d=0;dL&&(L=k,R=d)}else R=M;return C.default(R).geometry.coordinates}function c(A){var M=window.PlotlyGeoAssets||{},R=[];function T(I){return new Promise(function(N,B){l.json(I,function(G,U){if(G){delete M[I];var H=G.status===404?'GeoJSON at URL "'+I+'" does not exist.':"Unexpected error while fetching from "+I;return B(new Error(H))}return M[I]=U,N(U)})})}function L(I){return new Promise(function(N,B){var G=0,U=setInterval(function(){if(M[I]&&M[I]!=="pending")return clearInterval(U),N(M[I]);if(G>100)return clearInterval(U),B("Unexpected error while fetching from "+I);G++},50)})}for(var P=0;P0&&(w.push(v),v=[])}return v.length>0&&w.push(v),w},O.makeLine=function(S){return S.length===1?{type:"LineString",coordinates:S[0]}:{type:"MultiLineString",coordinates:S}},O.makePolygon=function(S){if(S.length===1)return{type:"Polygon",coordinates:S};for(var i=new Array(S.length),C=0;C1||M<0||M>1?null:{x:m+b*M,y:a+g*M}}O.segmentDistance=function(a,n,s,o,h,f,u,b){if(S(a,n,s,o,h,f,u,b))return 0;var p=s-a,E=o-n,g=u-h,c=b-f,x=p*p+E*E,A=g*g+c*c,M=Math.min(i(p,E,x,h-a,f-n),i(p,E,x,u-a,b-n),i(g,c,A,a-h,n-f),i(g,c,A,s-h,o-f));return Math.sqrt(M)};function i(m,a,n,s,o){var h=s*m+o*a;if(h<0)return s*s+o*o;if(h>n){var f=s-m,u=o-a;return f*f+u*u}else{var b=s*a-o*m;return b*b/n}}var C,w,v;O.getTextLocation=function(a,n,s,o){if((a!==w||o!==v)&&(C={},w=a,v=o),C[s])return C[s];var h=a.getPointAtLength(l(s-o/2,n)),f=a.getPointAtLength(l(s+o/2,n)),u=Math.atan((f.y-h.y)/(f.x-h.x)),b=a.getPointAtLength(l(s,n)),p=(b.x*4+h.x+f.x)/6,E=(b.y*4+h.y+f.y)/6,g={x:p,y:E,theta:u};return C[s]=g,g},O.clearLocationCache=function(){w=null},O.getVisibleSegment=function(a,n,s){var o=n.left,h=n.right,f=n.top,u=n.bottom,b=0,p=a.getTotalLength(),E=p,g,c;function x(M){var R=a.getPointAtLength(M);M===0?g=R:M===p&&(c=R);var T=R.xh?R.x-h:0,L=R.yu?R.y-u:0;return Math.sqrt(T*T+L*L)}for(var A=x(b);A;){if(b+=A+s,b>E)return;A=x(b)}for(A=x(E);A;){if(E-=A+s,b>E)return;A=x(E)}return{min:b,max:E,len:E-b,total:p,isClosed:b===0&&E===p&&Math.abs(g.x-c.x)<.1&&Math.abs(g.y-c.y)<.1}},O.findPointOnPath=function(a,n,s,o){o=o||{};for(var h=o.pathLength||a.getTotalLength(),f=o.tolerance||.001,u=o.iterationLimit||30,b=a.getPointAtLength(0)[s]>a.getPointAtLength(h)[s]?-1:1,p=0,E=0,g=h,c,x,A;p0?g=c:E=c,p++}return x}},33040:function(D,O,t){var l=t(38248),S=t(49760),i=t(72160),C=t(8932),w=t(22548).defaultLine,v=t(38116).isArrayOrTypedArray,m=i(w),a=1;function n(u,b){var p=u;return p[3]*=b,p}function s(u){if(l(u))return m;var b=i(u);return b.length?b:m}function o(u){return l(u)?u:a}function h(u,b,p){var E=u.color;E&&E._inputArray&&(E=E._inputArray);var g=v(E),c=v(b),x=C.extractOpts(u),A=[],M,R,T,L,P;if(x.colorscale!==void 0?M=C.makeColorScaleFuncFromTrace(u):M=s,g?R=function(k,I){return k[I]===void 0?m:i(M(k[I]))}:R=s,c?T=function(k,I){return k[I]===void 0?a:o(k[I])}:T=o,g||c)for(var d=0;d1?(S*t+S*l)/S:t+l,C=String(i).length;if(C>16){var w=String(l).length,v=String(t).length;if(C>=v+w){var m=parseFloat(i).toPrecision(12);m.indexOf("e+")===-1&&(i=+m)}}return i}},3400:function(D,O,t){var l=t(33428),S=t(94336).E9,i=t(57624).E9,C=t(38248),w=t(39032),v=w.FP_SAFE,m=-v,a=w.BADNUM,n=D.exports={};n.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var s={};n.warnBadFormat=function(ne){var ce=String(ne);s[ce]||(s[ce]=1,n.warn('encountered bad format: "'+ce+'"'))},n.noFormat=function(ne){return String(ne)},n.numberFormat=function(ne){var ce;try{ce=i(n.adjustFormat(ne))}catch{return n.warnBadFormat(ne),n.noFormat}return ce},n.nestedProperty=t(22296),n.keyedContainer=t(37804),n.relativeAttr=t(23193),n.isPlainObject=t(63620),n.toLogRange=t(36896),n.relinkPrivateKeys=t(51528);var o=t(38116);n.isArrayBuffer=o.isArrayBuffer,n.isTypedArray=o.isTypedArray,n.isArrayOrTypedArray=o.isArrayOrTypedArray,n.isArray1D=o.isArray1D,n.ensureArray=o.ensureArray,n.concat=o.concat,n.maxRowLength=o.maxRowLength,n.minRowLength=o.minRowLength;var h=t(20435);n.mod=h.mod,n.modHalf=h.modHalf;var f=t(63064);n.valObjectMeta=f.valObjectMeta,n.coerce=f.coerce,n.coerce2=f.coerce2,n.coerceFont=f.coerceFont,n.coercePattern=f.coercePattern,n.coerceHoverinfo=f.coerceHoverinfo,n.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,n.validate=f.validate;var u=t(67555);n.dateTime2ms=u.dateTime2ms,n.isDateTime=u.isDateTime,n.ms2DateTime=u.ms2DateTime,n.ms2DateTimeLocal=u.ms2DateTimeLocal,n.cleanDate=u.cleanDate,n.isJSDate=u.isJSDate,n.formatDate=u.formatDate,n.incrementMonth=u.incrementMonth,n.dateTick0=u.dateTick0,n.dfltRange=u.dfltRange,n.findExactDates=u.findExactDates,n.MIN_MS=u.MIN_MS,n.MAX_MS=u.MAX_MS;var b=t(14952);n.findBin=b.findBin,n.sorterAsc=b.sorterAsc,n.sorterDes=b.sorterDes,n.distinctVals=b.distinctVals,n.roundUp=b.roundUp,n.sort=b.sort,n.findIndexOfMin=b.findIndexOfMin,n.sortObjectKeys=t(95376);var p=t(63084);n.aggNums=p.aggNums,n.len=p.len,n.mean=p.mean,n.median=p.median,n.midRange=p.midRange,n.variance=p.variance,n.stdev=p.stdev,n.interp=p.interp;var E=t(52248);n.init2dArray=E.init2dArray,n.transposeRagged=E.transposeRagged,n.dot=E.dot,n.translationMatrix=E.translationMatrix,n.rotationMatrix=E.rotationMatrix,n.rotationXYMatrix=E.rotationXYMatrix,n.apply3DTransform=E.apply3DTransform,n.apply2DTransform=E.apply2DTransform,n.apply2DTransform2=E.apply2DTransform2,n.convertCssMatrix=E.convertCssMatrix,n.inverseTransformMatrix=E.inverseTransformMatrix;var g=t(11864);n.deg2rad=g.deg2rad,n.rad2deg=g.rad2deg,n.angleDelta=g.angleDelta,n.angleDist=g.angleDist,n.isFullCircle=g.isFullCircle,n.isAngleInsideSector=g.isAngleInsideSector,n.isPtInsideSector=g.isPtInsideSector,n.pathArc=g.pathArc,n.pathSector=g.pathSector,n.pathAnnulus=g.pathAnnulus;var c=t(98308);n.isLeftAnchor=c.isLeftAnchor,n.isCenterAnchor=c.isCenterAnchor,n.isRightAnchor=c.isRightAnchor,n.isTopAnchor=c.isTopAnchor,n.isMiddleAnchor=c.isMiddleAnchor,n.isBottomAnchor=c.isBottomAnchor;var x=t(92348);n.segmentsIntersect=x.segmentsIntersect,n.segmentDistance=x.segmentDistance,n.getTextLocation=x.getTextLocation,n.clearLocationCache=x.clearLocationCache,n.getVisibleSegment=x.getVisibleSegment,n.findPointOnPath=x.findPointOnPath;var A=t(92880);n.extendFlat=A.extendFlat,n.extendDeep=A.extendDeep,n.extendDeepAll=A.extendDeepAll,n.extendDeepNoArrays=A.extendDeepNoArrays;var M=t(24248);n.log=M.log,n.warn=M.warn,n.error=M.error;var R=t(53756);n.counterRegex=R.counter;var T=t(91200);n.throttle=T.throttle,n.throttleDone=T.done,n.clearThrottle=T.clear;var L=t(52200);n.getGraphDiv=L.getGraphDiv,n.isPlotDiv=L.isPlotDiv,n.removeElement=L.removeElement,n.addStyleRule=L.addStyleRule,n.addRelatedStyleRule=L.addRelatedStyleRule,n.deleteRelatedStyleRule=L.deleteRelatedStyleRule,n.getFullTransformMatrix=L.getFullTransformMatrix,n.getElementTransformMatrix=L.getElementTransformMatrix,n.getElementAndAncestors=L.getElementAndAncestors,n.equalDomRects=L.equalDomRects,n.clearResponsive=t(75352),n.preserveDrawingBuffer=t(34296),n.makeTraceGroups=t(30988),n._=t(98356),n.notifier=t(41792),n.filterUnique=t(68944),n.filterVisible=t(43880),n.pushUnique=t(52416),n.increment=t(1396),n.cleanNumber=t(54037),n.ensureNumber=function(ce){return C(ce)?(ce=Number(ce),ce>v||ce=ce?!1:C(ne)&&ne>=0&&ne%1===0},n.noop=t(16628),n.identity=t(35536),n.repeat=function(ne,ce){for(var re=new Array(ce),ee=0;eere?Math.max(re,Math.min(ce,ne)):Math.max(ce,Math.min(re,ne))},n.bBoxIntersect=function(ne,ce,re){return re=re||0,ne.left<=ce.right+re&&ce.left<=ne.right+re&&ne.top<=ce.bottom+re&&ce.top<=ne.bottom+re},n.simpleMap=function(ne,ce,re,ee,de){for(var le=ne.length,he=new Array(le),xe=0;xe=Math.pow(2,re)?de>10?(n.warn("randstr failed uniqueness"),he):ne(ce,re,ee,(de||0)+1):he},n.OptionControl=function(ne,ce){ne||(ne={}),ce||(ce="opt");var re={};return re.optionList=[],re._newoption=function(ee){ee[ce]=ne,re[ee.name]=ee,re.optionList.push(ee)},re["_"+ce]=ne,re},n.smooth=function(ne,ce){if(ce=Math.round(ce)||0,ce<2)return ne;var re=ne.length,ee=2*re,de=2*ce-1,le=new Array(de),he=new Array(re),xe,Ee,Se,ke;for(xe=0;xe=ee&&(Se-=ee*Math.floor(Se/ee)),Se<0?Se=-1-Se:Se>=re&&(Se=ee-1-Se),ke+=ne[Se]*le[Ee];he[xe]=ke}return he},n.syncOrAsync=function(ne,ce,re){var ee,de;function le(){return n.syncOrAsync(ne,ce,re)}for(;ne.length;)if(de=ne.splice(0,1)[0],ee=de(ce),ee&&ee.then)return ee.then(le);return re&&re(ce)},n.stripTrailingSlash=function(ne){return ne.substr(-1)==="/"?ne.substr(0,ne.length-1):ne},n.noneOrAll=function(ne,ce,re){if(ne){var ee=!1,de=!0,le,he;for(le=0;le0?de:0})},n.fillArray=function(ne,ce,re,ee){if(ee=ee||n.identity,n.isArrayOrTypedArray(ne))for(var de=0;de1?de+he[1]:"";if(le&&(he.length>1||xe.length>4||re))for(;ee.test(xe);)xe=xe.replace(ee,"$1"+le+"$2");return xe+Ee},n.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var H=/^\w*$/;n.templateString=function(ne,ce){var re={};return ne.replace(n.TEMPLATE_STRING_REGEX,function(ee,de){var le;return H.test(de)?le=ce[de]:(re[de]=re[de]||n.nestedProperty(ce,de).get,le=re[de]()),n.isValidTextValue(le)?le:""})};var W={max:10,count:0,name:"hovertemplate"};n.hovertemplateString=function(){return ie.apply(W,arguments)};var V={max:10,count:0,name:"texttemplate"};n.texttemplateString=function(){return ie.apply(V,arguments)};var $=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Z(ne){var ce=ne.match($);return ce?{key:ce[1],op:ce[2],number:Number(ce[3])}:{key:ne,op:null,number:null}}var q={max:10,count:0,name:"texttemplate",parseMultDiv:!0};n.texttemplateStringForShapes=function(){return ie.apply(q,arguments)};var ae=/^[:|\|]/;function ie(ne,ce,re){var ee=this,de=arguments;ce||(ce={});var le={};return ne.replace(n.TEMPLATE_STRING_REGEX,function(he,xe,Ee){var Se=xe==="xother"||xe==="yother",ke=xe==="_xother"||xe==="_yother",Te=xe==="_xother_"||xe==="_yother_",Ae=xe==="xother_"||xe==="yother_",be=Se||ke||Ae||Te,Ie=xe;(ke||Te)&&(Ie=Ie.substring(1)),(Ae||Te)&&(Ie=Ie.substring(0,Ie.length-1));var Ue=null,Ne=null;if(ee.parseMultDiv){var ze=Z(Ie);Ie=ze.key,Ue=ze.op,Ne=ze.number}var $e;if(be){if($e=ce[Ie],$e===void 0)return""}else{var st,vt;for(vt=3;vt=fe&&he<=Q,Se=xe>=fe&&xe<=Q;if(Ee&&(ee=10*ee+he-fe),Se&&(de=10*de+xe-fe),!Ee||!Se){if(ee!==de)return ee-de;if(he!==xe)return he-xe}}return de-ee};var J=2e9;n.seedPseudoRandom=function(){J=2e9},n.pseudoRandom=function(){var ne=J;return J=(69069*J+1)%4294967296,Math.abs(J-ne)<429496729?n.pseudoRandom():J/4294967296},n.fillText=function(ne,ce,re){var ee=Array.isArray(re)?function(he){re.push(he)}:function(he){re.text=he},de=n.extractOption(ne,ce,"htx","hovertext");if(n.isValidTextValue(de))return ee(de);var le=n.extractOption(ne,ce,"tx","text");if(n.isValidTextValue(le))return ee(le)},n.isValidTextValue=function(ne){return ne||ne===0},n.formatPercent=function(ne,ce){ce=ce||0;for(var re=(Math.round(100*ne*Math.pow(10,ce))*Math.pow(.1,ce)).toFixed(ce)+"%",ee=0;ee1&&(Se=1):Se=0,n.strTranslate(de-Se*(re+he),le-Se*(ee+xe))+n.strScale(Se)+(Ee?"rotate("+Ee+(ce?"":" "+re+" "+ee)+")":"")},n.setTransormAndDisplay=function(ne,ce){ne.attr("transform",n.getTextTransform(ce)),ne.style("display",ce.scale?null:"none")},n.ensureUniformFontSize=function(ne,ce){var re=n.extendFlat({},ce);return re.size=Math.max(ce.size,ne._fullLayout.uniformtext.minsize||0),re},n.join2=function(ne,ce,re){var ee=ne.length;return ee>1?ne.slice(0,-1).join(ce)+re+ne[ee-1]:ne.join(ce)},n.bigFont=function(ne){return Math.round(1.2*ne)};var oe=n.getFirefoxVersion(),K=oe!==null&&oe<86;n.getPositionFromD3Event=function(){return K?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},63620:function(D){D.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}},37804:function(D,O,t){var l=t(22296),S=/^\w*$/,i=0,C=1,w=2,v=3,m=4;D.exports=function(n,s,o,h){o=o||"name",h=h||"value";var f,u,b,p={};s&&s.length?(b=l(n,s),u=b.get()):u=n,s=s||"";var E={};if(u)for(f=0;f2)return p[A]=p[A]|w,c.set(x,null);if(g){for(f=A;f1){var w=["LOG:"];for(C=0;C1){var v=[];for(C=0;C"),"long")}},i.warn=function(){var C;if(l.logging>0){var w=["WARN:"];for(C=0;C0){var v=[];for(C=0;C"),"stick")}},i.error=function(){var C;if(l.logging>0){var w=["ERROR:"];for(C=0;C0){var v=[];for(C=0;C"),"stick")}}},30988:function(D,O,t){var l=t(33428);D.exports=function(i,C,w){var v=i.selectAll("g."+w.replace(/\s/g,".")).data(C,function(a){return a[0].trace.uid});v.exit().remove(),v.enter().append("g").attr("class",w),v.order();var m=i.classed("rangeplot")?"nodeRangePlot3":"node3";return v.each(function(a){a[0][m]=l.select(this)}),v}},52248:function(D,O,t){var l=t(36524);O.init2dArray=function(S,i){for(var C=new Array(S),w=0;wS/2?l-Math.round(l/S)*S:l}D.exports={mod:O,modHalf:t}},22296:function(D,O,t){var l=t(38248),S=t(38116).isArrayOrTypedArray;D.exports=function(h,f){if(l(f))f=String(f);else if(typeof f!="string"||f.substr(f.length-4)==="[-1]")throw"bad property string";var u=f.split("."),b,p,E,g;for(g=0;g/g),u=0;ua||A===S||As||c&&f(g))}function b(g,c){var x=g[0],A=g[1];if(x===S||xa||A===S||As)return!1;var M=v.length,R=v[0][0],T=v[0][1],L=0,P,d,k,I,N;for(P=1;PMath.max(d,R)||A>Math.max(k,T)))if(Ao||Math.abs(l(b,f))>a)return!0;return!1},i.filter=function(w,v){var m=[w[0]],a=0,n=0;function s(h){w.push(h);var f=m.length,u=a;m.splice(n+1);for(var b=u+1;b1){var o=w.pop();s(o)}return{addPt:s,raw:w,filtered:m}}},5048:function(D,O,t){var l=t(16576),S=t(28624);D.exports=function(C,w,v){var m=C._fullLayout,a=!0;return m._glcanvas.each(function(n){if(n.regl){n.regl.preloadCachedCode(v);return}if(!(n.pick&&!m._has("parcoords"))){try{n.regl=S({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:C._context.plotGlPixelRatio||t.g.devicePixelRatio,extensions:w||[],cachedCode:v||{}})}catch{a=!1}n.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){C&&C.emit&&C.emit("plotly_webglcontextlost",{event:s,layer:n.key})},!1)}}),a||l({container:m._glcontainer.node()}),a}},34296:function(D,O,t){var l=t(38248),S=t(25928);D.exports=function(w){var v;if(w&&w.hasOwnProperty("userAgent")?v=w.userAgent:v=i(),typeof v!="string")return!0;var m=S({ua:{headers:{"user-agent":v}},tablet:!0,featureDetect:!1});if(!m)for(var a=v.split(" "),n=1;n-1;o--){var h=a[o];if(h.substr(0,8)==="Version/"){var f=h.substr(8).split(".")[0];if(l(f)&&(f=+f),f>=13)return!0}}}return m};function i(){var C;return typeof navigator<"u"&&(C=navigator.userAgent),C&&C.headers&&typeof C.headers["user-agent"]=="string"&&(C=C.headers["user-agent"]),C}},52416:function(D){D.exports=function(t,l){if(l instanceof RegExp){for(var S=l.toString(),i=0;iS.queueLength&&(w.undoQueue.queue.shift(),w.undoQueue.index--)},C.startSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!0,w.undoQueue.beginSequence=!0},C.stopSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!1,w.undoQueue.beginSequence=!1},C.undo=function(v){var m,a;if(!(v.undoQueue===void 0||isNaN(v.undoQueue.index)||v.undoQueue.index<=0)){for(v.undoQueue.index--,m=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,a=0;a=v.undoQueue.queue.length)){for(m=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,a=0;a1?(o[u-1]-o[0])/(u-1):1,E,g;for(p>=0?g=h?v:m:g=h?n:a,s+=p*w*(h?-1:1)*(p>=0?1:-1);f90&&S.log("Long binary search..."),f-1};function v(s,o){return so}function n(s,o){return s>=o}O.sorterAsc=function(s,o){return s-o},O.sorterDes=function(s,o){return o-s},O.distinctVals=function(s){var o=s.slice();o.sort(O.sorterAsc);var h;for(h=o.length-1;h>-1&&o[h]===C;h--);for(var f=o[h]-o[0]||1,u=f/(h||1)/1e4,b=[],p,E=0;E<=h;E++){var g=o[E],c=g-p;p===void 0?(b.push(g),p=g):c>u&&(f=Math.min(f,c),b.push(g),p=g)}return{vals:b,minDiff:f}},O.roundUp=function(s,o,h){for(var f=0,u=o.length-1,b,p=0,E=h?0:1,g=h?1:0,c=h?Math.ceil:Math.floor;f0&&(f=1),h&&f)return s.sort(o)}return f?s:s.reverse()},O.findIndexOfMin=function(s,o){o=o||i;for(var h=1/0,f,u=0;uw.length)&&(v=w.length),l(C)||(C=!1),S(w[0])){for(a=new Array(v),m=0;mi.length-1)return i[i.length-1];var w=C%1;return w*i[Math.ceil(C)]+(1-w)*i[Math.floor(C)]}},43080:function(D,O,t){var l=t(72160);function S(i){return i?l(i):[0,0,0,1]}D.exports=S},9188:function(D,O,t){var l=t(2264),S=t(43616),i=t(3400),C=null;function w(){if(C!==null)return C;C=!1;var v=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!v){var m=Array.from(l.CSS_DECLARATIONS).reverse(),a=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof a=="function")C=m.some(function(h){return a.apply(null,h)});else{var n=S.tester.append("image").attr("style",l.STYLE),s=window.getComputedStyle(n.node()),o=s.imageRendering;C=m.some(function(h){var f=h[1];return o===f||o===f.toLowerCase()}),n.remove()}}return C}D.exports=w},72736:function(D,O,t){var l=t(33428),S=t(3400),i=S.strTranslate,C=t(9616),w=t(84284).LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;O.convertToTspans=function(W,V,$){var Z=W.text(),q=!W.attr("data-notex")&&V&&V._context.typesetMath&&typeof MathJax<"u"&&Z.match(v),ae=l.select(W.node().parentNode);if(ae.empty())return;var ie=W.attr("class")?W.attr("class").split(" ")[0]:"text";ie+="-math",ae.selectAll("svg."+ie).remove(),ae.selectAll("g."+ie+"-group").remove(),W.style("display",null).attr({"data-unformatted":Z,"data-math":"N"});function fe(){ae.empty()||(ie=W.attr("class")+"-math",ae.select("svg."+ie).remove()),W.text("").style("white-space","pre");var Q=B(W.node(),Z);Q&&W.style("pointer-events","all"),O.positionText(W),$&&$.call(W)}return q?(V&&V._promises||[]).push(new Promise(function(Q){W.style("display","none");var J=parseInt(W.node().style.fontSize,10),oe={fontSize:J};o(q[2],oe,function(K,ne,ce){ae.selectAll("svg."+ie).remove(),ae.selectAll("g."+ie+"-group").remove();var re=K&&K.select("svg");if(!re||!re.node()){fe(),Q();return}var ee=ae.append("g").classed(ie+"-group",!0).attr({"pointer-events":"none","data-unformatted":Z,"data-math":"Y"});ee.node().appendChild(re.node()),ne&&ne.node()&&re.node().insertBefore(ne.node().cloneNode(!0),re.node().firstChild);var de=ce.width,le=ce.height;re.attr({class:ie,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var he=W.node().style.fill||"black",xe=re.select("g");xe.attr({fill:he,stroke:he});var Ee=xe.node().getBoundingClientRect(),Se=Ee.width,ke=Ee.height;(Se>de||ke>le)&&(re.style("overflow","hidden"),Ee=re.node().getBoundingClientRect(),Se=Ee.width,ke=Ee.height);var Te=+W.attr("x"),Ae=+W.attr("y"),be=J||W.node().getBoundingClientRect().height,Ie=-be/4;if(ie[0]==="y")ee.attr({transform:"rotate("+[-90,Te,Ae]+")"+i(-Se/2,Ie-ke/2)});else if(ie[0]==="l")Ae=Ie-ke/2;else if(ie[0]==="a"&&ie.indexOf("atitle")!==0)Te=0,Ae=Ie;else{var Ue=W.attr("text-anchor");Te=Te-Se*(Ue==="middle"?.5:Ue==="end"?1:0),Ae=Ae+Ie-ke/2}re.attr({x:Te,y:Ae}),$&&$.call(W,ee),Q(ee)})})):fe(),W};var m=/(<|<|<)/g,a=/(>|>|>)/g;function n(W){return W.replace(m,"\\lt ").replace(a,"\\gt ")}var s=[["$","$"],["\\(","\\)"]];function o(W,V,$){var Z=parseInt((MathJax.version||"").split(".")[0]);if(Z!==2&&Z!==3){S.warn("No MathJax version:",MathJax.version);return}var q,ae,ie,fe,Q=function(){return ae=S.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:s},displayAlign:"left"})},J=function(){ae=S.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=s},oe=function(){if(q=MathJax.Hub.config.menuSettings.renderer,q!=="SVG")return MathJax.Hub.setRenderer("SVG")},K=function(){q=MathJax.config.startup.output,q!=="svg"&&(MathJax.config.startup.output="svg")},ne=function(){var he="math-output-"+S.randstr({},64);fe=l.select("body").append("div").attr({id:he}).style({visibility:"hidden",position:"absolute","font-size":V.fontSize+"px"}).text(n(W));var xe=fe.node();return Z===2?MathJax.Hub.Typeset(xe):MathJax.typeset([xe])},ce=function(){var he=fe.select(Z===2?".MathJax_SVG":".MathJax"),xe=!he.empty()&&fe.select("svg").node();if(!xe)S.log("There was an error in the tex syntax.",W),$();else{var Ee=xe.getBoundingClientRect(),Se;Z===2?Se=l.select("body").select("#MathJax_SVG_glyphs"):Se=he.select("defs"),$(he,Se,Ee)}fe.remove()},re=function(){if(q!=="SVG")return MathJax.Hub.setRenderer(q)},ee=function(){q!=="svg"&&(MathJax.config.startup.output=q)},de=function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(ae)},le=function(){MathJax.config=ae};Z===2?MathJax.Hub.Queue(Q,oe,ne,ce,re,de):Z===3&&(J(),K(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){ne(),ce(),ee(),le()}))}var h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},f={sub:"0.3em",sup:"-0.6em"},u={sub:"-0.21em",sup:"0.42em"},b="​",p=["http:","https:","mailto:","",void 0,":"],E=O.NEWLINES=/(\r\n?|\n)/g,g=/(<[^<>]*>)/,c=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i;O.BR_TAG_ALL=//gi;var A=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,R=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function L(W,V){if(!W)return null;var $=W.match(V),Z=$&&($[3]||$[4]);return Z&&I(Z)}var P=/(^|;)\s*color:/;O.plainText=function(W,V){V=V||{};for(var $=V.len!==void 0&&V.len!==-1?V.len:1/0,Z=V.allowedTags!==void 0?V.allowedTags:["br"],q="...",ae=q.length,ie=W.split(g),fe=[],Q="",J=0,oe=0;oeae?fe.push(K.substr(0,ee-ae)+q):fe.push(K.substr(0,ee));break}Q=""}}return fe.join("")};var d={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},k=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function I(W){return W.replace(k,function(V,$){var Z;return $.charAt(0)==="#"?Z=N($.charAt(1)==="x"?parseInt($.substr(2),16):parseInt($.substr(1),10)):Z=d[$],Z||V})}O.convertEntities=I;function N(W){if(!(W>1114111)){var V=String.fromCodePoint;if(V)return V(W);var $=String.fromCharCode;return W<=65535?$(W):$((W>>10)+55232,W%1024+56320)}}function B(W,V){V=V.replace(E," ");var $=!1,Z=[],q,ae=-1;function ie(){ae++;var ke=document.createElementNS(C.svg,"tspan");l.select(ke).attr({class:"line",dy:ae*w+"em"}),W.appendChild(ke),q=ke;var Te=Z;if(Z=[{node:ke}],Te.length>1)for(var Ae=1;Ae.",V);return}var Te=Z.pop();ke!==Te.type&&S.log("Start tag <"+Te.type+"> doesnt match end tag <"+ke+">. Pretending it did match.",V),q=Z[Z.length-1].node}var oe=x.test(V);oe?ie():(q=W,Z=[{node:W}]);for(var K=V.split(g),ne=0;nev.ts+C){n();return}v.timer=setTimeout(function(){n(),v.timer=null},C)},O.done=function(S){var i=t[S];return!i||!i.timer?Promise.resolve():new Promise(function(C){var w=i.onDone;i.onDone=function(){w&&w(),C(),i.onDone=null}})},O.clear=function(S){if(S)l(t[S]),delete t[S];else for(var i in t)O.clear(i)};function l(S){S&&S.timer!==null&&(clearTimeout(S.timer),S.timer=null)}},36896:function(D,O,t){var l=t(38248);D.exports=function(i,C){if(i>0)return Math.log(i)/Math.LN10;var w=Math.log(Math.min(C[0],C[1]))/Math.LN10;return l(w)||(w=Math.log(Math.max(C[0],C[1]))/Math.LN10-6),w}},59972:function(D,O,t){var l=D.exports={},S=t(79552).locationmodeToLayer,i=t(55712).NO;l.getTopojsonName=function(C){return[C.scope.replace(/ /g,"-"),"_",C.resolution.toString(),"m"].join("")},l.getTopojsonPath=function(C,w){return C+w+".json"},l.getTopojsonFeatures=function(C,w){var v=S[C.locationmode],m=w.objects[v];return i(w,m).features}},11680:function(D){D.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(D){D.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(D,O,t){var l=t(24040);D.exports=function(i){for(var C=l.layoutArrayContainers,w=l.layoutArrayRegexes,v=i.split("[")[0],m,a,n=0;n0&&C.log("Clearing previous rejected promises from queue."),x._promises=[]},O.cleanLayout=function(x){var A,M;x||(x={}),x.xaxis1&&(x.xaxis||(x.xaxis=x.xaxis1),delete x.xaxis1),x.yaxis1&&(x.yaxis||(x.yaxis=x.yaxis1),delete x.yaxis1),x.scene1&&(x.scene||(x.scene=x.scene1),delete x.scene1);var R=(w.subplotsRegistry.cartesian||{}).attrRegex,T=(w.subplotsRegistry.polar||{}).attrRegex,L=(w.subplotsRegistry.ternary||{}).attrRegex,P=(w.subplotsRegistry.gl3d||{}).attrRegex,d=Object.keys(x);for(A=0;A3?(oe.x=1.02,oe.xanchor="left"):oe.x<-2&&(oe.x=-.02,oe.xanchor="right"),oe.y>3?(oe.y=1.02,oe.yanchor="bottom"):oe.y<-2&&(oe.y=-.02,oe.yanchor="top")),h(x),x.dragmode==="rotate"&&(x.dragmode="orbit"),m.clean(x),x.template&&x.template.layout&&O.cleanLayout(x.template.layout),x};function o(x,A){var M=x[A],R=A.charAt(0);M&&M!=="paper"&&(x[A]=a(M,R,!0))}function h(x){x&&((typeof x.title=="string"||typeof x.title=="number")&&(x.title={text:x.title}),A("titlefont","font"),A("titleposition","position"),A("titleside","side"),A("titleoffset","offset"));function A(M,R){var T=x[M],L=x.title&&x.title[R];T&&!L&&(x.title||(x.title={}),x.title[R]=x[M],delete x[M])}}O.cleanData=function(x){for(var A=0;A0)return x.substr(0,A)}O.hasParent=function(x,A){for(var M=g(A);M;){if(M in x)return!0;M=g(M)}return!1};var c=["x","y","z"];O.clearAxisTypes=function(x,A,M){for(var R=0;R1&&i.warn("Full array edits are incompatible with other edits",u);var A=o[""][""];if(m(A))s.set(null);else if(Array.isArray(A))s.set(A);else return i.warn("Unrecognized full array edit value",u,A),!0;return g?!1:(b(c,x),p(n),!0)}var M=Object.keys(o).map(Number).sort(C),R=s.get(),T=R||[],L=f(x,u).get(),P=[],d=-1,k=T.length,I,N,B,G,U,H,W,V;for(I=0;IT.length-(W?0:1)){i.warn("index out of range",u,B);continue}if(H!==void 0)U.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",u,B),m(H)?P.push(B):W?(H==="add"&&(H={}),T.splice(B,0,H),L&&L.splice(B,0,{})):i.warn("Unrecognized full object edit value",u,B,H),d===-1&&(d=B);else for(N=0;N=0;I--)T.splice(P[I],1),L&&L.splice(P[I],1);if(T.length?R||s.set(T):s.set(null),g)return!1;if(b(c,x),E!==S){var $;if(d===-1)$=M;else{for(k=Math.max(T.length,k),$=[],I=0;I=d));I++)$.push(B);for(I=d;I=Pe.data.length||yt<-Pe.data.length)throw new Error(Je+" must be valid indices for gd.data.");if(Ve.indexOf(yt,ot+1)>-1||yt>=0&&Ve.indexOf(-Pe.data.length+yt)>-1||yt<0&&Ve.indexOf(Pe.data.length+yt)>-1)throw new Error("each index in "+Je+" must be unique.")}}function $(Pe,Ve,Je){if(!Array.isArray(Pe.data))throw new Error("gd.data must be an array.");if(typeof Ve>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(Ve)||(Ve=[Ve]),V(Pe,Ve,"currentIndices"),typeof Je<"u"&&!Array.isArray(Je)&&(Je=[Je]),typeof Je<"u"&&V(Pe,Je,"newIndices"),typeof Je<"u"&&Ve.length!==Je.length)throw new Error("current and new indices must be of equal length.")}function Z(Pe,Ve,Je){var ot,yt;if(!Array.isArray(Pe.data))throw new Error("gd.data must be an array.");if(typeof Ve>"u")throw new Error("traces must be defined.");for(Array.isArray(Ve)||(Ve=[Ve]),ot=0;ot"u")throw new Error("indices must be an integer or array of integers");V(Pe,Je,"indices");for(var ut in Ve){if(!Array.isArray(Ve[ut])||Ve[ut].length!==Je.length)throw new Error("attribute "+ut+" must be an array of length equal to indices array length");if(yt&&(!(ut in ot)||!Array.isArray(ot[ut])||ot[ut].length!==Ve[ut].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function ae(Pe,Ve,Je,ot){var yt=C.isPlainObject(ot),ut=[],It,Vt,xt,Lt,Xt;Array.isArray(Je)||(Je=[Je]),Je=W(Je,Pe.data.length-1);for(var dr in Ve)for(var Tt=0;Tt=0&&Xt=0&&Xt"u")return Lt=O.redraw(Pe),m.add(Pe,yt,It,ut,Vt),Lt;Array.isArray(Je)||(Je=[Je]);try{$(Pe,ot,Je)}catch(Xt){throw Pe.data.splice(Pe.data.length-Ve.length,Ve.length),Xt}return m.startSequence(Pe),m.add(Pe,yt,It,ut,Vt),Lt=O.moveTraces(Pe,ot,Je),m.stopSequence(Pe),Lt}function K(Pe,Ve){Pe=C.getGraphDiv(Pe);var Je=[],ot=O.addTraces,yt=K,ut=[Pe,Je,Ve],It=[Pe,Ve],Vt,xt;if(typeof Ve>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Ve)||(Ve=[Ve]),V(Pe,Ve,"indices"),Ve=W(Ve,Pe.data.length-1),Ve.sort(C.sorterDes),Vt=0;Vt"u")for(Je=[],Lt=0;Lt-1&&ut.indexOf("grouptitlefont")===-1?Vt(ut,ut.replace("titlefont","title.font")):ut.indexOf("titleposition")>-1?Vt(ut,ut.replace("titleposition","title.position")):ut.indexOf("titleside")>-1?Vt(ut,ut.replace("titleside","title.side")):ut.indexOf("titleoffset")>-1&&Vt(ut,ut.replace("titleoffset","title.offset"));function Vt(xt,Lt){Pe[Lt]=Pe[xt],delete Pe[xt]}}function Ee(Pe,Ve,Je){Pe=C.getGraphDiv(Pe),A.clearPromiseQueue(Pe);var ot={};if(typeof Ve=="string")ot[Ve]=Je;else if(C.isPlainObject(Ve))ot=C.extendFlat({},Ve);else return C.warn("Relayout fail.",Ve,Je),Promise.reject();Object.keys(ot).length&&(Pe.changed=!0);var yt=Ie(Pe,ot),ut=yt.flags;ut.calc&&(Pe.calcdata=void 0);var It=[s.previousPromises];ut.layoutReplot?It.push(M.layoutReplot):Object.keys(ot).length&&(Se(Pe,ut,yt)||s.supplyDefaults(Pe),ut.legend&&It.push(M.doLegend),ut.layoutstyle&&It.push(M.layoutStyles),ut.axrange&&ke(It,yt.rangesAltered),ut.ticks&&It.push(M.doTicksRelayout),ut.modebar&&It.push(M.doModeBar),ut.camera&&It.push(M.doCamera),ut.colorbars&&It.push(M.doColorBars),It.push(k)),It.push(s.rehover,s.redrag,s.reselect),m.add(Pe,Ee,[Pe,yt.undoit],Ee,[Pe,yt.redoit]);var Vt=C.syncOrAsync(It,Pe);return(!Vt||!Vt.then)&&(Vt=Promise.resolve(Pe)),Vt.then(function(){return Pe.emit("plotly_relayout",yt.eventData),Pe})}function Se(Pe,Ve,Je){var ot=Pe._fullLayout;if(!Ve.axrange)return!1;for(var yt in Ve)if(yt!=="axrange"&&Ve[yt])return!1;var ut,It,Vt=function(Kt,Qt){return C.coerce(ut,It,f,Kt,Qt)},xt={};for(var Lt in Je.rangesAltered){var Xt=o.id2name(Lt);if(ut=Pe.layout[Xt],It=ot[Xt],h(ut,It,Vt,xt),It._matchGroup){for(var dr in It._matchGroup)if(dr!==Lt){var Tt=ot[o.id2name(dr)];Tt.autorange=It.autorange,Tt.range=It.range.slice(),Tt._input.range=It.range.slice()}}}return!0}function ke(Pe,Ve){var Je=Ve?function(ot){var yt=[],ut=!0;for(var It in Ve){var Vt=o.getFromId(ot,It);if(yt.push(It),(Vt.ticklabelposition||"").indexOf("inside")!==-1&&Vt._anchorAxis&&yt.push(Vt._anchorAxis._id),Vt._matchGroup)for(var xt in Vt._matchGroup)Ve[xt]||yt.push(xt)}return o.draw(ot,yt,{skipTitle:ut})}:function(ot){return o.draw(ot,"redraw")};Pe.push(g,M.doAutoRangeAndConstraints,Je,M.drawData,M.finalDraw)}var Te=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ae=/^[xyz]axis[0-9]*\.autorange$/,be=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Ie(Pe,Ve){var Je=Pe.layout,ot=Pe._fullLayout,yt=ot._guiEditing,ut=ee(ot._preGUI,yt),It=Object.keys(Ve),Vt=o.list(Pe),xt=C.extendDeepAll({},Ve),Lt={},Xt,dr,Tt;for(xe(Ve),It=Object.keys(Ve),dr=0;dr0&&typeof jt.parts[vr]!="string";)vr--;var mr=jt.parts[vr],Ze=jt.parts[vr-1]+"."+mr,Xe=jt.parts.slice(0,vr).join("."),Ut=w(Pe.layout,Xe).get(),Bt=w(ot,Xe).get(),qt=jt.get();if(er!==void 0){Ct[Wt]=er,ht[Wt]=mr==="reverse"?er:re(qt);var nr=n.getLayoutValObject(ot,jt.parts);if(nr&&nr.impliedEdits&&er!==null)for(var fr in nr.impliedEdits)At(C.relativeAttr(Wt,fr),nr.impliedEdits[fr]);if(["width","height"].indexOf(Wt)!==-1)if(er){At("autosize",null);var ir=Wt==="height"?"width":"height";At(ir,ot[ir])}else ot[Wt]=Pe._initialAutoSize[Wt];else if(Wt==="autosize")At("width",er?null:ot.width),At("height",er?null:ot.height);else if(Ze.match(Te))Ft(Ze),w(ot,Xe+"._inputRange").set(null);else if(Ze.match(Ae)){Ft(Ze),w(ot,Xe+"._inputRange").set(null);var Ht=w(ot,Xe).get();Ht._inputDomain&&(Ht._input.domain=Ht._inputDomain.slice())}else Ze.match(be)&&w(ot,Xe+"._inputDomain").set(null);if(mr==="type"){_t=Ut;var pr=Bt.type==="linear"&&er==="log",br=Bt.type==="log"&&er==="linear";if(pr||br){if(!_t||!_t.range)At(Xe+".autorange",!0);else if(Bt.autorange)pr&&(_t.range=_t.range[1]>_t.range[0]?[1,2]:[2,1]);else{var Tr=_t.range[0],gr=_t.range[1];pr?(Tr<=0&&gr<=0&&At(Xe+".autorange",!0),Tr<=0?Tr=gr/1e6:gr<=0&&(gr=Tr/1e6),At(Xe+".range[0]",Math.log(Tr)/Math.LN10),At(Xe+".range[1]",Math.log(gr)/Math.LN10)):(At(Xe+".range[0]",Math.pow(10,Tr)),At(Xe+".range[1]",Math.pow(10,gr)))}Array.isArray(ot._subplots.polar)&&ot._subplots.polar.length&&ot[jt.parts[0]]&&jt.parts[1]==="radialaxis"&&delete ot[jt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Pe,Bt,er,At),a.getComponentMethod("images","convertCoords")(Pe,Bt,er,At)}else At(Xe+".autorange",!0),At(Xe+".range",null);w(ot,Xe+"._inputRange").set(null)}else if(mr.match(T)){var Xr=w(ot,Wt).get(),Dr=(er||{}).type;(!Dr||Dr==="-")&&(Dr="linear"),a.getComponentMethod("annotations","convertCoords")(Pe,Xr,Dr,At),a.getComponentMethod("images","convertCoords")(Pe,Xr,Dr,At)}var Fr=x.containerArrayMatch(Wt);if(Fr){Xt=Fr.array,dr=Fr.index;var yn=Fr.property,un=nr||{editType:"calc"};dr!==""&&yn===""&&(x.isAddVal(er)?ht[Wt]=null:x.isRemoveVal(er)?ht[Wt]=(w(Je,Xt).get()||[])[dr]:C.warn("unrecognized full object value",Ve)),R.update(sr,un),Lt[Xt]||(Lt[Xt]={});var _n=Lt[Xt][dr];_n||(_n=Lt[Xt][dr]={}),_n[yn]=er,delete Ve[Wt]}else mr==="reverse"?(Ut.range?Ut.range.reverse():(At(Xe+".autorange",!0),Ut.range=[1,0]),Bt.autorange?sr.calc=!0:sr.plot=!0):(Wt==="dragmode"&&(er===!1&&qt!==!1||er!==!1&&qt===!1)||ot._has("scatter-like")&&ot._has("regl")&&Wt==="dragmode"&&(er==="lasso"||er==="select")&&!(qt==="lasso"||qt==="select")||ot._has("gl2d")?sr.plot=!0:nr?R.update(sr,nr):sr.calc=!0,jt.set(er))}}for(Xt in Lt){var On=x.applyContainerArrayChanges(Pe,ut(Je,Xt),Lt[Xt],sr,ut);On||(sr.plot=!0)}for(var Mr in Rt){_t=o.getFromId(Pe,Mr);var Rr=_t&&_t._constraintGroup;if(Rr){sr.calc=!0;for(var Zr in Rr)Rt[Zr]||(o.getFromId(Pe,Zr)._constraintShrinkable=!0)}}(Ue(Pe)||Ve.height||Ve.width)&&(sr.plot=!0);var Wr=ot.shapes;for(dr=0;dr1;)if(ot.pop(),Je=w(Ve,ot.join(".")+".uirevision").get(),Je!==void 0)return Je;return Ve.uirevision}function nt(Pe,Ve){for(var Je=0;Je=yt.length?yt[0]:yt[Lt]:yt}function Vt(Lt){return Array.isArray(ut)?Lt>=ut.length?ut[0]:ut[Lt]:ut}function xt(Lt,Xt){var dr=0;return function(){if(Lt&&++dr===Xt)return Lt()}}return new Promise(function(Lt,Xt){function dr(){if(ot._frameQueue.length!==0){for(;ot._frameQueue.length;){var mr=ot._frameQueue.pop();mr.onInterrupt&&mr.onInterrupt()}Pe.emit("plotly_animationinterrupted",[])}}function Tt(mr){if(mr.length!==0){for(var Ze=0;Zeot._timeToNext&&Qt()};mr()}var sr=0;function Ct(mr){return Array.isArray(yt)?sr>=yt.length?mr.transitionOpts=yt[sr]:mr.transitionOpts=yt[0]:mr.transitionOpts=yt,sr++,mr}var ht,At,Rt=[],_t=Ve==null,Ft=Array.isArray(Ve),Wt=!_t&&!Ft&&C.isPlainObject(Ve);if(Wt)Rt.push({type:"object",data:Ct(C.extendFlat({},Ve))});else if(_t||["string","number"].indexOf(typeof Ve)!==-1)for(ht=0;ht0&&hrhr)&&vr.push(At);Rt=vr}}Rt.length>0?Tt(Rt):(Pe.emit("plotly_animated"),Lt())})}function We(Pe,Ve,Je){if(Pe=C.getGraphDiv(Pe),Ve==null)return Promise.resolve();if(!C.isPlotDiv(Pe))throw new Error("This element is not a Plotly plot: "+Pe+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var ot,yt,ut,It,Vt=Pe._transitionData._frames,xt=Pe._transitionData._frameHash;if(!Array.isArray(Ve))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Ve);var Lt=Vt.length+Ve.length*2,Xt=[],dr={};for(ot=Ve.length-1;ot>=0;ot--)if(C.isPlainObject(Ve[ot])){var Tt=Ve[ot].name,Kt=(xt[Tt]||dr[Tt]||{}).name,Qt=Ve[ot].name,xr=xt[Kt]||dr[Kt];Kt&&Qt&&typeof Qt=="number"&&xr&&Ljt.index?-1:Wt.index=0;ot--){if(yt=Xt[ot].frame,typeof yt.name=="number"&&C.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!yt.name)for(;xt[yt.name="frame "+Pe._transitionData._counter++];);if(xt[yt.name]){for(ut=0;ut=0;Je--)ot=Ve[Je],ut.push({type:"delete",index:ot}),It.unshift({type:"insert",index:ot,value:yt[ot]});var Vt=s.modifyFrames,xt=s.modifyFrames,Lt=[Pe,It],Xt=[Pe,ut];return m&&m.add(Pe,Vt,Lt,xt,Xt),s.modifyFrames(Pe,ut)}function Me(Pe){Pe=C.getGraphDiv(Pe);var Ve=Pe._fullLayout||{},Je=Pe._fullData||[];return s.cleanPlot([],{},Je,Ve),s.purge(Pe),v.purge(Pe),Ve._container&&Ve._container.remove(),delete Pe._context,Pe}function we(Pe){var Ve=Pe._fullLayout,Je=Pe.getBoundingClientRect();if(!C.equalDomRects(Je,Ve._lastBBox)){var ot=Ve._invTransform=C.inverseTransformMatrix(C.getFullTransformMatrix(Pe));Ve._invScaleX=Math.sqrt(ot[0][0]*ot[0][0]+ot[0][1]*ot[0][1]+ot[0][2]*ot[0][2]),Ve._invScaleY=Math.sqrt(ot[1][0]*ot[1][0]+ot[1][1]*ot[1][1]+ot[1][2]*ot[1][2]),Ve._lastBBox=Je}}function Re(Pe){var Ve=l.select(Pe),Je=Pe._fullLayout;if(Je._calcInverseTransform=we,Je._calcInverseTransform(Pe),Je._container=Ve.selectAll(".plot-container").data([0]),Je._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Je._paperdiv=Je._container.selectAll(".svg-container").data([0]),Je._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Je._glcontainer=Je._paperdiv.selectAll(".gl-container").data([{}]),Je._glcontainer.enter().append("div").classed("gl-container",!0),Je._paperdiv.selectAll(".main-svg").remove(),Je._paperdiv.select(".modebar-container").remove(),Je._paper=Je._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Je._toppaper=Je._paperdiv.append("svg").classed("main-svg",!0),Je._modebardiv=Je._paperdiv.append("div"),delete Je._modeBar,Je._hoverpaper=Je._paperdiv.append("svg").classed("main-svg",!0),!Je._uid){var ot={};l.selectAll("defs").each(function(){this.id&&(ot[this.id.split("-")[1]]=1)}),Je._uid=C.randstr(ot)}Je._paperdiv.selectAll(".main-svg").attr(E.svgAttrs),Je._defs=Je._paper.append("defs").attr("id","defs-"+Je._uid),Je._clips=Je._defs.append("g").classed("clips",!0),Je._topdefs=Je._toppaper.append("defs").attr("id","topdefs-"+Je._uid),Je._topclips=Je._topdefs.append("g").classed("clips",!0),Je._bgLayer=Je._paper.append("g").classed("bglayer",!0),Je._draggers=Je._paper.append("g").classed("draglayer",!0);var yt=Je._paper.append("g").classed("layer-below",!0);Je._imageLowerLayer=yt.append("g").classed("imagelayer",!0),Je._shapeLowerLayer=yt.append("g").classed("shapelayer",!0),Je._cartesianlayer=Je._paper.append("g").classed("cartesianlayer",!0),Je._polarlayer=Je._paper.append("g").classed("polarlayer",!0),Je._smithlayer=Je._paper.append("g").classed("smithlayer",!0),Je._ternarylayer=Je._paper.append("g").classed("ternarylayer",!0),Je._geolayer=Je._paper.append("g").classed("geolayer",!0),Je._funnelarealayer=Je._paper.append("g").classed("funnelarealayer",!0),Je._pielayer=Je._paper.append("g").classed("pielayer",!0),Je._iciclelayer=Je._paper.append("g").classed("iciclelayer",!0),Je._treemaplayer=Je._paper.append("g").classed("treemaplayer",!0),Je._sunburstlayer=Je._paper.append("g").classed("sunburstlayer",!0),Je._indicatorlayer=Je._toppaper.append("g").classed("indicatorlayer",!0),Je._glimages=Je._paper.append("g").classed("glimages",!0);var ut=Je._toppaper.append("g").classed("layer-above",!0);Je._imageUpperLayer=ut.append("g").classed("imagelayer",!0),Je._shapeUpperLayer=ut.append("g").classed("shapelayer",!0),Je._selectionLayer=Je._toppaper.append("g").classed("selectionlayer",!0),Je._infolayer=Je._toppaper.append("g").classed("infolayer",!0),Je._menulayer=Je._toppaper.append("g").classed("menulayer",!0),Je._zoomlayer=Je._toppaper.append("g").classed("zoomlayer",!0),Je._hoverlayer=Je._hoverpaper.append("g").classed("hoverlayer",!0),Je._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Pe.emit("plotly_framework")}O.animate=Ke,O.addFrames=We,O.deleteFrames=Fe,O.addTraces=oe,O.deleteTraces=K,O.extendTraces=Q,O.moveTraces=ne,O.prependTraces=J,O.newPlot=H,O._doPlot=d,O.purge=Me,O.react=dt,O.redraw=U,O.relayout=Ee,O.restyle=ce,O.setPlotConfig=I,O.update=Ne,O._guiRelayout=ze(Ee),O._guiRestyle=ze(ce),O._guiUpdate=ze(Ne),O._storeDirectGUIEdit=le},20556:function(D){var O={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},t={};function l(S,i){for(var C in S){var w=S[C];w.valType?i[C]=w.dflt:(i[C]||(i[C]={}),l(w,i[C]))}}l(O,t),D.exports={configAttributes:O,dfltConfig:t}},73060:function(D,O,t){var l=t(24040),S=t(3400),i=t(45464),C=t(64859),w=t(16672),v=t(85656),m=t(20556).configAttributes,a=t(67824),n=S.extendDeepAll,s=S.isPlainObject,o=S.isArrayOrTypedArray,h=S.nestedProperty,f=S.valObjectMeta,u="_isSubplotObj",b="_isLinkedToArray",p="_arrayAttrRegexps",E="_deprecated",g=[u,b,p,E];O.IS_SUBPLOT_OBJ=u,O.IS_LINKED_TO_ARRAY=b,O.DEPRECATED=E,O.UNDERSCORE_ATTRS=g,O.get=function(){var G={};l.allTypes.forEach(function(H){G[H]=M(H)});var U={};return Object.keys(l.transformsRegistry).forEach(function(H){U[H]=T(H)}),{defs:{valObjects:f,metaKeys:g.concat(["description","role","editType","impliedEdits"]),editType:{traces:a.traces,layout:a.layout},impliedEdits:{}},traces:G,layout:R(),transforms:U,frames:L(),animation:P(v),config:P(m)}},O.crawl=function(G,U,H,W){var V=H||0;W=W||"",Object.keys(G).forEach(function($){var Z=G[$];if(g.indexOf($)===-1){var q=(W?W+".":"")+$;U(Z,$,G,V,q),!O.isValObject(Z)&&s(Z)&&$!=="impliedEdits"&&O.crawl(Z,U,V+1,q)}})},O.isValObject=function(G){return G&&G.valType!==void 0},O.findArrayAttributes=function(G){var U=[],H=[],W=[],V,$;function Z(J,oe,K,ne){H=H.slice(0,ne).concat([oe]),W=W.slice(0,ne).concat([J&&J._isLinkedToArray]);var ce=J&&(J.valType==="data_array"||J.arrayOk===!0)&&!(H[ne-1]==="colorbar"&&(oe==="ticktext"||oe==="tickvals"));ce&&q(V,0,"")}function q(J,oe,K){var ne=J[H[oe]],ce=K+H[oe];if(oe===H.length-1)o(ne)&&U.push($+ce);else if(W[oe]){if(Array.isArray(ne))for(var re=0;re=Z.length)return!1;V=(l.transformsRegistry[Z[q].type]||{}).attributes,$=V&&V[U[2]],W=3}else{var ae=G._module;if(ae||(ae=(l.modules[G.type||i.type.dflt]||{})._module),!ae)return!1;if(V=ae.attributes,$=V&&V[H],!$){var ie=ae.basePlotModule;ie&&ie.attributes&&($=ie.attributes[H])}$||($=i[H])}return x($,U,W)},O.getLayoutValObject=function(G,U){var H=c(G,U[0]);return x(H,U,1)};function c(G,U){var H,W,V,$,Z=G._basePlotModules;if(Z){var q;for(H=0;H=$.length)return!1;if(G.dimensions===2){if(H++,U.length===H)return G;var Z=U[H];if(!A(Z))return!1;G=$[V][Z]}else G=$[V]}else G=$}}return G}function A(G){return G===Math.round(G)&&G>=0}function M(G){var U,H;U=l.modules[G]._module,H=U.basePlotModule;var W={};W.type=null;var V=n({},i),$=n({},U.attributes);O.crawl($,function(ae,ie,fe,Q,J){h(V,J).set(void 0),ae===void 0&&h($,J).set(void 0)}),n(W,V),l.traceIs(G,"noOpacity")&&delete W.opacity,l.traceIs(G,"showLegend")||(delete W.showlegend,delete W.legendgroup),l.traceIs(G,"noHover")&&(delete W.hoverinfo,delete W.hoverlabel),U.selectPoints||delete W.selectedpoints,n(W,$),H.attributes&&n(W,H.attributes),W.type=G;var Z={meta:U.meta||{},categories:U.categories||{},animatable:!!U.animatable,type:G,attributes:P(W)};if(U.layoutAttributes){var q={};n(q,U.layoutAttributes),Z.layoutAttributes=P(q)}return U.animatable||O.crawl(Z,function(ae){O.isValObject(ae)&&"anim"in ae&&delete ae.anim}),Z}function R(){var G={},U,H;n(G,C);for(U in l.subplotsRegistry)if(H=l.subplotsRegistry[U],!!H.layoutAttributes)if(Array.isArray(H.attr))for(var W=0;W=s&&(n._input||{})._templateitemname;h&&(o=s);var f=a+"["+o+"]",u;function b(){u={},h&&(u[f]={},u[f][i]=h)}b();function p(x,A){u[x]=A}function E(x,A){h?l.nestedProperty(u[f],x).set(A):u[f+"."+x]=A}function g(){var x=u;return b(),x}function c(x,A){x&&E(x,A);var M=g();for(var R in M)l.nestedProperty(m,R).set(M[R])}return{modifyBase:p,modifyItem:E,getUpdateObj:g,applyUpdate:c}}},39172:function(D,O,t){var l=t(33428),S=t(24040),i=t(7316),C=t(3400),w=t(72736),v=t(73696),m=t(76308),a=t(43616),n=t(81668),s=t(45460),o=t(54460),h=t(84284),f=t(71888),u=f.enforce,b=f.clean,p=t(19280).doAutoRange,E="start",g="middle",c="end";O.layoutStyles=function(H){return C.syncOrAsync([i.doAutoMargin,A],H)};function x(H,W,V){for(var $=0;$=H[1]||Z[1]<=H[0])&&q[0]W[0])return!0}return!1}function A(H){var W=H._fullLayout,V=W._size,$=V.p,Z=o.list(H,"",!0),q,ae,ie,fe,Q,J;if(W._paperdiv.style({width:H._context.responsive&&W.autosize&&!H._context._hasZeroWidth&&!H.layout.width?"100%":W.width+"px",height:H._context.responsive&&W.autosize&&!H._context._hasZeroHeight&&!H.layout.height?"100%":W.height+"px"}).selectAll(".main-svg").call(a.setSize,W.width,W.height),H._context.setBackground(H,W.paper_bgcolor),O.drawMainTitle(H),s.manage(H),!W._has("cartesian"))return i.previousPromises(H);function oe(Me,we,Re){var Pe=Me._lw/2;if(Me._id.charAt(0)==="x"){if(we){if(Re==="top")return we._offset-$-Pe}else return V.t+V.h*(1-(Me.position||0))+Pe%1;return we._offset+we._length+$+Pe}if(we){if(Re==="right")return we._offset+we._length+$+Pe}else return V.l+V.w*(Me.position||0)+Pe%1;return we._offset-$-Pe}for(q=0;q0){k(H,q,Q,fe),ie.attr({x:ae,y:q,"text-anchor":$,dy:B(W.yanchor)}).call(w.positionText,ae,q);var J=(W.text.match(w.BR_TAG_ALL)||[]).length;if(J){var oe=h.LINE_SPACING*J+h.MID_SHIFT;W.y===0&&(oe=-oe),ie.selectAll(".line").each(function(){var K=+this.getAttribute("dy").slice(0,-2)-oe+"em";this.setAttribute("dy",K)})}}}};function L(H,W,V,$,Z){var q=W.yref==="paper"?H._fullLayout._size.h:H._fullLayout.height,ae=C.isTopAnchor(W)?$:$-Z,ie=V==="b"?q-ae:ae;return C.isTopAnchor(W)&&V==="t"||C.isBottomAnchor(W)&&V==="b"?!1:ie.5?"t":"b",ae=H._fullLayout.margin[q],ie=0;return W.yref==="paper"?ie=V+W.pad.t+W.pad.b:W.yref==="container"&&(ie=P(q,$,Z,H._fullLayout.height,V)+W.pad.t+W.pad.b),ie>ae?ie:0}function k(H,W,V,$){var Z="title.automargin",q=H._fullLayout.title,ae=q.y>.5?"t":"b",ie={x:q.x,y:q.y,t:0,b:0},fe={};q.yref==="paper"&&L(H,q,ae,W,$)?ie[ae]=V:q.yref==="container"&&(fe[ae]=V,H._fullLayout._reservedMargin[Z]=fe),i.allowAutoMargin(H,Z),i.autoMargin(H,Z,ie)}function I(H,W){var V=H.title,$=H._size,Z=0;switch(W===E?Z=V.pad.l:W===c&&(Z=-V.pad.r),V.xref){case"paper":return $.l+$.w*V.x+Z;case"container":default:return H.width*V.x+Z}}function N(H,W){var V=H.title,$=H._size,Z=0;if(W==="0em"||!W?Z=-V.pad.b:W===h.CAP_SHIFT+"em"&&(Z=V.pad.t),V.y==="auto")return $.t/2;switch(V.yref){case"paper":return $.t+$.h-$.h*V.y+Z;case"container":default:return H.height-H.height*V.y+Z}}function B(H){return H==="top"?h.CAP_SHIFT+.3+"em":H==="bottom"?"-0.3em":h.MID_SHIFT+"em"}function G(H){var W=H.title,V=g;return C.isRightAnchor(W)?V=c:C.isLeftAnchor(W)&&(V=E),V}function U(H){var W=H.title,V="0em";return C.isTopAnchor(W)?V=h.CAP_SHIFT+"em":C.isMiddleAnchor(W)&&(V=h.MID_SHIFT+"em"),V}O.doTraceStyle=function(H){var W=H.calcdata,V=[],$;for($=0;$U?M.push({code:"unused",traceType:I,templateCount:G,dataCount:U}):U>G&&M.push({code:"reused",traceType:I,templateCount:G,dataCount:U})}}function H(W,V){for(var $ in W)if($.charAt(0)!=="_"){var Z=W[$],q=f(W,$,V);S(Z)?(Array.isArray(W)&&Z._template===!1&&Z.templateitemname&&M.push({code:"missing",path:q,templateitemname:Z.templateitemname}),H(Z,q)):Array.isArray(Z)&&u(Z)&&H(Z,q)}}if(H({data:T,layout:R},""),M.length)return M.map(b)};function u(p){for(var E=0;E1&&M.push(h("object","layout"))),S.supplyDefaults(R);for(var P=R._fullData,d=T.length,k=0;kI.length&&A.push(h("unused",M,d.concat(I.length)));var W=I.length,V=Array.isArray(H);V&&(W=Math.min(W,H.length));var $,Z,q,ae,ie;if(N.dimensions===2)for(Z=0;ZI[Z].length&&A.push(h("unused",M,d.concat(Z,I[Z].length)));var fe=I[Z].length;for($=0;$<(V?Math.min(fe,H[Z].length):fe);$++)q=V?H[Z][$]:H,ae=k[Z][$],ie=I[Z][$],l.validate(ae,q)?ie!==ae&&ie!==+ae&&A.push(h("dynamic",M,d.concat(Z,$),ae,ie)):A.push(h("value",M,d.concat(Z,$),ae))}else A.push(h("array",M,d.concat(Z),k[Z]));else for(Z=0;Z0&&Math.round(b)===b)u=b;else return{vals:o}}for(var p=n.calendar,E=h==="start",g=h==="end",c=a[s+"period0"],x=i(c,p)||0,A=[],M=[],R=[],T=o.length,L=0;LP;)I=C(I,-u,p);for(;I<=P;)I=C(I,u,p);k=C(I,-u,p)}else{for(d=Math.round((P-x)/f),I=x+d*f;I>P;)I-=f;for(;I<=P;)I+=f;k=I-f}A[L]=E?k:g?I:(k+I)/2,M[L]=k,R[L]=I}return{vals:A,starts:M,ends:R}}},26720:function(D){D.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(D,O,t){var l=t(33428),S=t(38248),i=t(3400),C=t(39032).FP_SAFE,w=t(24040),v=t(43616),m=t(79811),a=m.getFromId,n=m.isLinked;D.exports={applyAutorangeOptions:d,getAutoRange:s,makePadFn:h,doAutoRange:p,findExtremes:E,concatExtremes:b};function s(k,I){var N,B,G=[],U=k._fullLayout,H=h(U,I,0),W=h(U,I,1),V=b(k,I),$=V.min,Z=V.max;if($.length===0||Z.length===0)return i.simpleMap(I.range,I.r2l);var q=$[0].val,ae=Z[0].val;for(N=1;N<$.length&&q===ae;N++)q=Math.min(q,$[N].val);for(N=1;N0&&(xe=ne-H(ee)-W(de),xe>ce?Ee/xe>re&&(le=ee,he=de,re=Ee/xe):Ee/ne>re&&(le={val:ee.val,nopad:1},he={val:de.val,nopad:1},re=Ee/ne));function Se(Ie,Ue){return Math.max(Ie,W(Ue))}if(q===ae){var ke=q-1,Te=q+1;if(oe)if(q===0)G=[0,1];else{var Ae=(q>0?Z:$).reduce(Se,0),be=q/(1-Math.min(.5,Ae/ne));G=q>0?[0,be]:[be,0]}else K?G=[Math.max(0,ke),Math.max(1,Te)]:G=[ke,Te]}else oe?(le.val>=0&&(le={val:0,nopad:1}),he.val<=0&&(he={val:0,nopad:1})):K&&(le.val-re*H(le)<0&&(le={val:0,nopad:1}),he.val<=0&&(he={val:1,nopad:1})),re=(he.val-le.val-o(I,ee.val,de.val))/(ne-H(le)-W(he)),G=[le.val-re*H(le),he.val+re*W(he)];return G=d(G,I),I.limitRange&&I.limitRange(),fe&&G.reverse(),i.simpleMap(G,I.l2r||Number)}function o(k,I,N){var B=0;if(k.rangebreaks)for(var G=k.locateBreaks(I,N),U=0;U0?N.ppadplus:N.ppadminus)||N.ppad||0),ee=ce((k._m>0?N.ppadminus:N.ppadplus)||N.ppad||0),de=ce(N.vpadplus||N.vpad),le=ce(N.vpadminus||N.vpad);if(!$){if(K=1/0,ne=-1/0,V)for(q=0;q0&&(K=ae),ae>ne&&ae-C&&(K=ae),ae>ne&&ae=Ee;q--)xe(q);return{min:B,max:G,opts:N}}function g(k,I,N,B){x(k,I,N,B,M)}function c(k,I,N,B){x(k,I,N,B,R)}function x(k,I,N,B,G){for(var U=B.tozero,H=B.extrapad,W=!0,V=0;V=N&&($.extrapad||!H)){W=!1;break}else G(I,$.val)&&$.pad<=N&&(H||!$.extrapad)&&(k.splice(V,1),V--)}if(W){var Z=U&&I===0;k.push({val:I,pad:Z?0:N,extrapad:Z?!1:H})}}function A(k){return S(k)&&Math.abs(k)=I}function T(k,I){var N=I.autorangeoptions;return N&&N.minallowed!==void 0&&P(I,N.minallowed,N.maxallowed)?N.minallowed:N&&N.clipmin!==void 0&&P(I,N.clipmin,N.clipmax)?Math.max(k,I.d2l(N.clipmin)):k}function L(k,I){var N=I.autorangeoptions;return N&&N.maxallowed!==void 0&&P(I,N.minallowed,N.maxallowed)?N.maxallowed:N&&N.clipmax!==void 0&&P(I,N.clipmin,N.clipmax)?Math.min(k,I.d2l(N.clipmax)):k}function P(k,I,N){return I!==void 0&&N!==void 0?(I=k.d2l(I),N=k.d2l(N),I=V&&(U=V,N=V),H<=V&&(H=V,B=V)}}return N=T(N,I),B=L(B,I),[N,B]}},76808:function(D){D.exports=function(t,l,S){var i,C;if(S){var w=l==="reversed"||l==="min reversed"||l==="max reversed";i=S[w?1:0],C=S[w?0:1]}var v=t("autorangeoptions.minallowed",C===null?i:void 0),m=t("autorangeoptions.maxallowed",i===null?C:void 0);v===void 0&&t("autorangeoptions.clipmin"),m===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}},54460:function(D,O,t){var l=t(33428),S=t(38248),i=t(7316),C=t(24040),w=t(3400),v=w.strTranslate,m=t(72736),a=t(81668),n=t(76308),s=t(43616),o=t(94724),h=t(98728),f=t(39032),u=f.ONEMAXYEAR,b=f.ONEAVGYEAR,p=f.ONEMINYEAR,E=f.ONEMAXQUARTER,g=f.ONEAVGQUARTER,c=f.ONEMINQUARTER,x=f.ONEMAXMONTH,A=f.ONEAVGMONTH,M=f.ONEMINMONTH,R=f.ONEWEEK,T=f.ONEDAY,L=T/2,P=f.ONEHOUR,d=f.ONEMIN,k=f.ONESEC,I=f.MINUS_SIGN,N=f.BADNUM,B={K:"zeroline"},G={K:"gridline",L:"path"},U={K:"minor-gridline",L:"path"},H={K:"tick",L:"path"},W={K:"tick",L:"text"},V={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},$=t(84284),Z=$.MID_SHIFT,q=$.CAP_SHIFT,ae=$.LINE_SPACING,ie=$.OPPOSITE_SIDE,fe=3,Q=D.exports={};Q.setConvert=t(78344);var J=t(52976),oe=t(79811),K=oe.idSort,ne=oe.isLinked;Q.id2name=oe.id2name,Q.name2id=oe.name2id,Q.cleanId=oe.cleanId,Q.list=oe.list,Q.listIds=oe.listIds,Q.getFromId=oe.getFromId,Q.getFromTrace=oe.getFromTrace;var ce=t(19280);Q.getAutoRange=ce.getAutoRange,Q.findExtremes=ce.findExtremes;var re=1e-4;function ee(Ze){var Xe=(Ze[1]-Ze[0])*re;return[Ze[0]-Xe,Ze[1]+Xe]}Q.coerceRef=function(Ze,Xe,Ut,Bt,qt,nr){var fr=Bt.charAt(Bt.length-1),ir=Ut._fullLayout._subplots[fr+"axis"],Ht=Bt+"ref",pr={};return qt||(qt=ir[0]||(typeof nr=="string"?nr:nr[0])),nr||(nr=qt),ir=ir.concat(ir.map(function(br){return br+" domain"})),pr[Ht]={valType:"enumerated",values:ir.concat(nr?typeof nr=="string"?[nr]:nr:[]),dflt:qt},w.coerce(Ze,Xe,pr,Ht)},Q.getRefType=function(Ze){return Ze===void 0?Ze:Ze==="paper"?"paper":Ze==="pixel"?"pixel":/( domain)$/.test(Ze)?"domain":"range"},Q.coercePosition=function(Ze,Xe,Ut,Bt,qt,nr){var fr,ir,Ht=Q.getRefType(Bt);if(Ht!=="range")fr=w.ensureNumber,ir=Ut(qt,nr);else{var pr=Q.getFromId(Xe,Bt);nr=pr.fraction2r(nr),ir=Ut(qt,nr),fr=pr.cleanPos}Ze[qt]=fr(ir)},Q.cleanPosition=function(Ze,Xe,Ut){var Bt=Ut==="paper"||Ut==="pixel"?w.ensureNumber:Q.getFromId(Xe,Ut).cleanPos;return Bt(Ze)},Q.redrawComponents=function(Ze,Xe){Xe=Xe||Q.listIds(Ze);var Ut=Ze._fullLayout;function Bt(qt,nr,fr,ir){for(var Ht=C.getComponentMethod(qt,nr),pr={},br=0;br2e-6||((Ut-Ze._forceTick0)/Ze._minDtick%1+1.000001)%1>2e-6)&&(Ze._minDtick=0))},Q.saveRangeInitial=function(Ze,Xe){for(var Ut=Q.list(Ze,"",!0),Bt=!1,qt=0;qtTr*.3||pr(Bt)||pr(qt))){var gr=Ut.dtick/2;Ze+=Ze+grfr){var ir=Number(Ut.substr(1));nr.exactYears>fr&&ir%12===0?Ze=Q.tickIncrement(Ze,"M6","reverse")+T*1.5:nr.exactMonths>fr?Ze=Q.tickIncrement(Ze,"M1","reverse")+T*15.5:Ze-=L;var Ht=Q.tickIncrement(Ze,Ut);if(Ht<=Bt)return Ht}return Ze}Q.prepMinorTicks=function(Ze,Xe,Ut){if(!Xe.minor.dtick){delete Ze.dtick;var Bt=Xe.dtick&&S(Xe._tmin),qt;if(Bt){var nr=Q.tickIncrement(Xe._tmin,Xe.dtick,!0);qt=[Xe._tmin,nr*.99+Xe._tmin*.01]}else{var fr=w.simpleMap(Xe.range,Xe.r2l);qt=[fr[0],.8*fr[0]+.2*fr[1]]}if(Ze.range=w.simpleMap(qt,Xe.l2r),Ze._isMinor=!0,Q.prepTicks(Ze,Ut),Bt){var ir=S(Xe.dtick),Ht=S(Ze.dtick),pr=ir?Xe.dtick:+Xe.dtick.substring(1),br=Ht?Ze.dtick:+Ze.dtick.substring(1);ir&&Ht?Se(pr,br)?pr===2*R&&br===2*T&&(Ze.dtick=R):pr===2*R&&br===3*T?Ze.dtick=R:pr===R&&!(Xe._input.minor||{}).nticks?Ze.dtick=T:ke(pr/br,2.5)?Ze.dtick=pr/2:Ze.dtick=pr:String(Xe.dtick).charAt(0)==="M"?Ht?Ze.dtick="M1":Se(pr,br)?pr>=12&&br===2&&(Ze.dtick="M3"):Ze.dtick=Xe.dtick:String(Ze.dtick).charAt(0)==="L"?String(Xe.dtick).charAt(0)==="L"?Se(pr,br)||(Ze.dtick=ke(pr/br,2.5)?Xe.dtick/2:Xe.dtick):Ze.dtick="D1":Ze.dtick==="D2"&&+Xe.dtick>1&&(Ze.dtick=1)}Ze.range=Xe.range}Xe.minor._tick0Init===void 0&&(Ze.tick0=Xe.tick0)};function Se(Ze,Xe){return Math.abs((Ze/Xe+.5)%1-.5)<.001}function ke(Ze,Xe){return Math.abs(Ze/Xe-1)<.001}Q.prepTicks=function(Ze,Xe){var Ut=w.simpleMap(Ze.range,Ze.r2l,void 0,void 0,Xe);if(Ze.tickmode==="auto"||!Ze.dtick){var Bt=Ze.nticks,qt;Bt||(Ze.type==="category"||Ze.type==="multicategory"?(qt=Ze.tickfont?w.bigFont(Ze.tickfont.size||12):15,Bt=Ze._length/qt):(qt=Ze._id.charAt(0)==="y"?40:80,Bt=w.constrain(Ze._length/qt,4,9)+1),Ze._name==="radialaxis"&&(Bt*=2)),Ze.minor&&Ze.minor.tickmode!=="array"||Ze.tickmode==="array"&&(Bt*=100),Ze._roughDTick=Math.abs(Ut[1]-Ut[0])/Bt,Q.autoTicks(Ze,Ze._roughDTick),Ze._minDtick>0&&Ze.dtick0?(nr=Bt-1,fr=Bt):(nr=Bt,fr=Bt);var ir=Ze[nr].value,Ht=Ze[fr].value,pr=Math.abs(Ht-ir),br=Ut||pr,Tr=0;br>=p?pr>=p&&pr<=u?Tr=pr:Tr=b:Ut===g&&br>=c?pr>=c&&pr<=E?Tr=pr:Tr=g:br>=M?pr>=M&&pr<=x?Tr=pr:Tr=A:Ut===R&&br>=R?Tr=R:br>=T?Tr=T:Ut===L&&br>=L?Tr=L:Ut===P&&br>=P&&(Tr=P);var gr;Tr>=pr&&(Tr=pr,gr=!0);var Xr=qt+Tr;if(Xe.rangebreaks&&Tr>0){for(var Dr=84,Fr=0,yn=0;ynR&&(Tr=pr)}(Tr>0||Bt===0)&&(Ze[Bt].periodX=qt+Tr/2)}}Q.calcTicks=function(Xe,Ut){for(var Bt=Xe.type,qt=Xe.calendar,nr=Xe.ticklabelstep,fr=Xe.ticklabelmode==="period",ir=w.simpleMap(Xe.range,Xe.r2l,void 0,void 0,Ut),Ht=ir[1]=(yn?0:1);un--){var _n=!un;un?(Xe._dtickInit=Xe.dtick,Xe._tick0Init=Xe.tick0):(Xe.minor._dtickInit=Xe.minor.dtick,Xe.minor._tick0Init=Xe.minor.tick0);var On=un?Xe:w.extendFlat({},Xe,Xe.minor);if(_n?Q.prepMinorTicks(On,Xe,Ut):Q.prepTicks(On,Ut),On.tickmode==="array"){un?(Dr=[],gr=Ne(Xe,!_n)):(Fr=[],Xr=Ne(Xe,!_n));continue}if(On.tickmode==="sync"){Dr=[],gr=Ue(Xe);continue}var Mr=ee(ir),Rr=Mr[0],Zr=Mr[1],Wr=S(On.dtick),fn=Bt==="log"&&!(Wr||On.dtick.charAt(0)==="L"),Tn=Q.tickFirst(On,Ut);if(un){if(Xe._tmin=Tn,Tn=Zr:Fn<=Zr;Fn=Q.tickIncrement(Fn,Aa,Ht,qt)){if(un&&Wn++,On.rangebreaks&&!Ht){if(Fn=br)break}if(Dr.length>Tr||Fn===Sn)break;Sn=Fn;var Ia={value:Fn};un?(fn&&Fn!==(Fn|0)&&(Ia.simpleLabel=!0),nr>1&&Wn%nr&&(Ia.skipLabel=!0),Dr.push(Ia)):(Ia.minor=!0,Fr.push(Ia))}}if(yn){var Ta=Xe.minor.ticks==="inside"&&Xe.ticks==="outside"||Xe.minor.ticks==="outside"&&Xe.ticks==="inside";if(!Ta){for(var ga=Dr.map(function(xn){return xn.value}),Cr=[],cn=0;cn-1;Rn--){if(Dr[Rn].drop){Dr.splice(Rn,1);continue}Dr[Rn].value=jt(Dr[Rn].value,Xe);var Qa=Xe.c2p(Dr[Rn].value);(Xn?Da>Qa-la:Dabr||Vrbr&&(Ar.periodX=br),Vrqt&&grb)Xe/=b,Bt=qt(10),Ze.dtick="M"+12*rt(Xe,Bt,ze);else if(nr>A)Xe/=A,Ze.dtick="M"+rt(Xe,1,$e);else if(nr>T){if(Ze.dtick=rt(Xe,T,Ze._hasDayOfWeekBreaks?[1,2,7,14]:vt),!Ut){var fr=Q.getTickFormat(Ze),ir=Ze.ticklabelmode==="period";ir&&(Ze._rawTick0=Ze.tick0),/%[uVW]/.test(fr)?Ze.tick0=w.dateTick0(Ze.calendar,2):Ze.tick0=w.dateTick0(Ze.calendar,1),ir&&(Ze._dowTick0=Ze.tick0)}}else nr>P?Ze.dtick=rt(Xe,P,$e):nr>d?Ze.dtick=rt(Xe,d,st):nr>k?Ze.dtick=rt(Xe,k,st):(Bt=qt(10),Ze.dtick=rt(Xe,Bt,ze))}else if(Ze.type==="log"){Ze.tick0=0;var Ht=w.simpleMap(Ze.range,Ze.r2l);if(Ze._isMinor&&(Xe*=1.5),Xe>.7)Ze.dtick=Math.ceil(Xe);else if(Math.abs(Ht[1]-Ht[0])<1){var pr=1.5*Math.abs((Ht[1]-Ht[0])/Xe);Xe=Math.abs(Math.pow(10,Ht[1])-Math.pow(10,Ht[0]))/pr,Bt=qt(10),Ze.dtick="L"+rt(Xe,Bt,ze)}else Ze.dtick=Xe>.3?"D2":"D1"}else Ze.type==="category"||Ze.type==="multicategory"?(Ze.tick0=0,Ze.dtick=Math.ceil(Math.max(Xe,1))):Wt(Ze)?(Ze.tick0=0,Bt=1,Ze.dtick=rt(Xe,Bt,mt)):(Ze.tick0=0,Bt=qt(10),Ze.dtick=rt(Xe,Bt,ze));if(Ze.dtick===0&&(Ze.dtick=1),!S(Ze.dtick)&&typeof Ze.dtick!="string"){var br=Ze.dtick;throw Ze.dtick=1,"ax.dtick error: "+String(br)}};function lt(Ze){var Xe=Ze.dtick;if(Ze._tickexponent=0,!S(Xe)&&typeof Xe!="string"&&(Xe=1),(Ze.type==="category"||Ze.type==="multicategory")&&(Ze._tickround=null),Ze.type==="date"){var Ut=Ze.r2l(Ze.tick0),Bt=Ze.l2r(Ut).replace(/(^-|i)/g,""),qt=Bt.length;if(String(Xe).charAt(0)==="M")qt>10||Bt.substr(5)!=="01-01"?Ze._tickround="d":Ze._tickround=+Xe.substr(1)%12===0?"y":"m";else if(Xe>=T&&qt<=10||Xe>=T*15)Ze._tickround="d";else if(Xe>=d&&qt<=16||Xe>=P)Ze._tickround="M";else if(Xe>=k&&qt<=19||Xe>=d)Ze._tickround="S";else{var nr=Ze.l2r(Ut+Xe).replace(/^-/,"").length;Ze._tickround=Math.max(qt,nr)-20,Ze._tickround<0&&(Ze._tickround=4)}}else if(S(Xe)||Xe.charAt(0)==="L"){var fr=Ze.range.map(Ze.r2d||Number);S(Xe)||(Xe=Number(Xe.substr(1))),Ze._tickround=2-Math.floor(Math.log(Xe)/Math.LN10+.01);var ir=Math.max(Math.abs(fr[0]),Math.abs(fr[1])),Ht=Math.floor(Math.log(ir)/Math.LN10+.01),pr=Ze.minexponent===void 0?3:Ze.minexponent;Math.abs(Ht)>pr&&(we(Ze.exponentformat)&&!Re(Ht)?Ze._tickexponent=3*Math.round((Ht-1)/3):Ze._tickexponent=Ht)}else Ze._tickround=null}Q.tickIncrement=function(Ze,Xe,Ut,Bt){var qt=Ut?-1:1;if(S(Xe))return w.increment(Ze,qt*Xe);var nr=Xe.charAt(0),fr=qt*Number(Xe.substr(1));if(nr==="M")return w.incrementMonth(Ze,fr,Bt);if(nr==="L")return Math.log(Math.pow(10,Ze)+fr)/Math.LN10;if(nr==="D"){var ir=Xe==="D2"?nt:at,Ht=Ze+qt*.01,pr=w.roundUp(w.mod(Ht,1),ir,Ut);return Math.floor(Ht)+Math.log(l.round(Math.pow(10,pr),1))/Math.LN10}throw"unrecognized dtick "+String(Xe)},Q.tickFirst=function(Ze,Xe){var Ut=Ze.r2l||Number,Bt=w.simpleMap(Ze.range,Ut,void 0,void 0,Xe),qt=Bt[1]=0&&un<=Ze._length?yn:null};if(nr&&w.isArrayOrTypedArray(Ze.ticktext)){var Tr=w.simpleMap(Ze.range,Ze.r2l),gr=(Math.abs(Tr[1]-Tr[0])-(Ze._lBreaks||0))/1e4;for(pr=0;pr"+ir;else{var pr=er(Ze),br=Ze._trueSide||Ze.side;(!pr&&br==="top"||pr&&br==="bottom")&&(fr+="
")}Xe.text=fr}function et(Ze,Xe,Ut,Bt,qt){var nr=Ze.dtick,fr=Xe.x,ir=Ze.tickformat,Ht=typeof nr=="string"&&nr.charAt(0);if(qt==="never"&&(qt=""),Bt&&Ht!=="L"&&(nr="L3",Ht="L"),ir||Ht==="L")Xe.text=Pe(Math.pow(10,fr),Ze,qt,Bt);else if(S(nr)||Ht==="D"&&w.mod(fr+.01,1)<.1){var pr=Math.round(fr),br=Math.abs(pr),Tr=Ze.exponentformat;Tr==="power"||we(Tr)&&Re(pr)?(pr===0?Xe.text=1:pr===1?Xe.text="10":Xe.text="10"+(pr>1?"":I)+br+"",Xe.fontSize*=1.25):(Tr==="e"||Tr==="E")&&br>2?Xe.text="1"+Tr+(pr>0?"+":I)+br:(Xe.text=Pe(Math.pow(10,fr),Ze,"","fakehover"),nr==="D1"&&Ze._id.charAt(0)==="y"&&(Xe.dy-=Xe.fontSize/6))}else if(Ht==="D")Xe.text=String(Math.round(Math.pow(10,w.mod(fr,1)))),Xe.fontSize*=.75;else throw"unrecognized dtick "+String(nr);if(Ze.dtick==="D1"){var gr=String(Xe.text).charAt(0);(gr==="0"||gr==="1")&&(Ze._id.charAt(0)==="y"?Xe.dx-=Xe.fontSize/4:(Xe.dy+=Xe.fontSize/2,Xe.dx+=(Ze.range[1]>Ze.range[0]?1:-1)*Xe.fontSize*(fr<0?.5:.25)))}}function Be(Ze,Xe){var Ut=Ze._categories[Math.round(Xe.x)];Ut===void 0&&(Ut=""),Xe.text=String(Ut)}function Ye(Ze,Xe,Ut){var Bt=Math.round(Xe.x),qt=Ze._categories[Bt]||[],nr=qt[1]===void 0?"":String(qt[1]),fr=qt[0]===void 0?"":String(qt[0]);Ut?Xe.text=fr+" - "+nr:(Xe.text=nr,Xe.text2=fr)}function Ke(Ze,Xe,Ut,Bt,qt){qt==="never"?qt="":Ze.showexponent==="all"&&Math.abs(Xe.x/Ze.dtick)<1e-6&&(qt="hide"),Xe.text=Pe(Xe.x,Ze,qt,Bt)}function We(Ze,Xe,Ut,Bt,qt){if(Ze.thetaunit==="radians"&&!Ut){var nr=Xe.x/180;if(nr===0)Xe.text="0";else{var fr=Fe(nr);if(fr[1]>=100)Xe.text=Pe(w.deg2rad(Xe.x),Ze,qt,Bt);else{var ir=Xe.x<0;fr[1]===1?fr[0]===1?Xe.text="π":Xe.text=fr[0]+"π":Xe.text=["",fr[0],"","⁄","",fr[1],"","π"].join(""),ir&&(Xe.text=I+Xe.text)}}}else Xe.text=Pe(Xe.x,Ze,qt,Bt)}function Fe(Ze){function Xe(ir,Ht){return Math.abs(ir-Ht)<=1e-6}function Ut(ir,Ht){return Xe(Ht,0)?ir:Ut(Ht,ir%Ht)}function Bt(ir){for(var Ht=1;!Xe(Math.round(ir*Ht)/Ht,ir);)Ht*=10;return Ht}var qt=Bt(Ze),nr=Ze*qt,fr=Math.abs(Ut(nr,qt));return[Math.round(nr/fr),Math.round(qt/fr)]}var Me=["f","p","n","μ","m","","k","M","G","T"];function we(Ze){return Ze==="SI"||Ze==="B"}function Re(Ze){return Ze>14||Ze<-15}function Pe(Ze,Xe,Ut,Bt){var qt=Ze<0,nr=Xe._tickround,fr=Ut||Xe.exponentformat||"B",ir=Xe._tickexponent,Ht=Q.getTickFormat(Xe),pr=Xe.separatethousands;if(Bt){var br={exponentformat:fr,minexponent:Xe.minexponent,dtick:Xe.showexponent==="none"?Xe.dtick:S(Ze)&&Math.abs(Ze)||1,range:Xe.showexponent==="none"?Xe.range.map(Xe.r2d):[0,Ze||1]};lt(br),nr=(Number(br._tickround)||0)+4,ir=br._tickexponent,Xe.hoverformat&&(Ht=Xe.hoverformat)}if(Ht)return Xe._numFormat(Ht)(Ze).replace(/-/g,I);var Tr=Math.pow(10,-nr)/2;if(fr==="none"&&(ir=0),Ze=Math.abs(Ze),Ze"+Dr+"":fr==="B"&&ir===9?Ze+="B":we(fr)&&(Ze+=Me[ir/3+5])}return qt?I+Ze:Ze}Q.getTickFormat=function(Ze){var Xe;function Ut(Ht){return typeof Ht!="string"?Ht:Number(Ht.replace("M",""))*A}function Bt(Ht,pr){var br=["L","D"];if(typeof Ht==typeof pr){if(typeof Ht=="number")return Ht-pr;var Tr=br.indexOf(Ht.charAt(0)),gr=br.indexOf(pr.charAt(0));return Tr===gr?Number(Ht.replace(/(L|D)/g,""))-Number(pr.replace(/(L|D)/g,"")):Tr-gr}else return typeof Ht=="number"?1:-1}function qt(Ht,pr,br){var Tr=br||function(Dr){return Dr},gr=pr[0],Xr=pr[1];return(!gr&&typeof gr!="number"||Tr(gr)<=Tr(Ht))&&(!Xr&&typeof Xr!="number"||Tr(Xr)>=Tr(Ht))}function nr(Ht,pr){var br=pr[0]===null,Tr=pr[1]===null,gr=Bt(Ht,pr[0])>=0,Xr=Bt(Ht,pr[1])<=0;return(br||gr)&&(Tr||Xr)}var fr,ir;if(Ze.tickformatstops&&Ze.tickformatstops.length>0)switch(Ze.type){case"date":case"linear":{for(Xe=0;Xe=0&&qt.unshift(qt.splice(br,1).shift())}});var ir={false:{left:0,right:0}};return w.syncOrAsync(qt.map(function(Ht){return function(){if(Ht){var pr=Q.getFromId(Ze,Ht);Ut||(Ut={}),Ut.axShifts=ir,Ut.overlayingShiftedAx=fr;var br=Q.drawOne(Ze,pr,Ut);return pr._shiftPusher&&vr(pr,pr._fullDepth||0,ir,!0),pr._r=pr.range.slice(),pr._rl=w.simpleMap(pr._r,pr.r2l),br}}}))},Q.drawOne=function(Ze,Xe,Ut){Ut=Ut||{};var Bt=Ut.axShifts||{},qt=Ut.overlayingShiftedAx||[],nr,fr,ir;Xe.setScale();var Ht=Ze._fullLayout,pr=Xe._id,br=pr.charAt(0),Tr=Q.counterLetter(pr),gr=Ht._plots[Xe._mainSubplot];if(!gr)return;if(Xe._shiftPusher=Xe.autoshift||qt.indexOf(Xe._id)!==-1||qt.indexOf(Xe.overlaying)!==-1,Xe._shiftPusher&Xe.anchor==="free"){var Xr=Xe.linewidth/2||0;Xe.ticks==="inside"&&(Xr+=Xe.ticklen),vr(Xe,Xr,Bt,!0),vr(Xe,Xe.shift||0,Bt,!1)}(Ut.skipTitle!==!0||Xe._shift===void 0)&&(Xe._shift=mr(Xe,Bt));var Dr=gr[br+"axislayer"],Fr=Xe._mainLinePosition,yn=Fr+=Xe._shift,un=Xe._mainMirrorPosition,_n=Xe._vals=Q.calcTicks(Xe),On=[Xe.mirror,yn,un].join("_");for(nr=0;nr<_n.length;nr++)_n[nr].axInfo=On;Xe._selections={},Xe._tickAngles&&(Xe._prevTickAngles=Xe._tickAngles),Xe._tickAngles={},Xe._depth=null;var Mr={};function Rr($r){var rn=pr+($r||"tick");return Mr[rn]||(Mr[rn]=ut(Xe,rn,yn)),Mr[rn]}if(Xe.visible){var Zr=Q.makeTransTickFn(Xe),Wr=Q.makeTransTickLabelFn(Xe),fn,Tn,Sn=Xe.ticks==="inside",Fn=Xe.ticks==="outside";if(Xe.tickson==="boundaries"){var Wn=Je(Xe,_n);Tn=Q.clipEnds(Xe,Wn),fn=Sn?Tn:Wn}else Tn=Q.clipEnds(Xe,_n),fn=Sn&&Xe.ticklabelmode!=="period"?Tn:_n;var ma=Xe._gridVals=Tn,Aa=yt(Xe,_n);if(!Ht._hasOnlyLargeSploms){var Ia=Xe._subplotsWith,Ta={};for(nr=0;nr0?Bn.bottom-Pn:0,zn))));var xa=0,Ra=0;if(Xe._shiftPusher&&(xa=Math.max(zn,Bn.height>0?$r==="l"?Pn-Bn.left:Bn.right-Pn:0),Xe.title.text!==Ht._dfltTitle[br]&&(Ra=(Xe._titleStandoff||0)+(Xe._titleScoot||0),$r==="l"&&(Ra+=Xt(Xe))),Xe._fullDepth=Math.max(xa,Ra)),Xe.automargin){Zn={x:0,y:0,r:0,l:0,t:0,b:0};var $a=[0,1],qi=typeof Xe._shift=="number"?Xe._shift:0;if(br==="x"){if($r==="b"?Zn[$r]=Xe._depth:(Zn[$r]=Xe._depth=Math.max(Bn.width>0?Pn-Bn.top:0,zn),$a.reverse()),Bn.width>0){var Di=Bn.right-(Xe._offset+Xe._length);Di>0&&(Zn.xr=1,Zn.r=Di);var Ks=Xe._offset-Bn.left;Ks>0&&(Zn.xl=0,Zn.l=Ks)}}else if($r==="l"?(Xe._depth=Math.max(Bn.height>0?Pn-Bn.left:0,zn),Zn[$r]=Xe._depth-qi):(Xe._depth=Math.max(Bn.height>0?Bn.right-Pn:0,zn),Zn[$r]=Xe._depth+qi,$a.reverse()),Bn.height>0){var Hs=Bn.bottom-(Xe._offset+Xe._length);Hs>0&&(Zn.yb=0,Zn.b=Hs);var os=Xe._offset-Bn.top;os>0&&(Zn.yt=1,Zn.t=os)}Zn[Tr]=Xe.anchor==="free"?Xe.position:Xe._anchorAxis.domain[$a[0]],Xe.title.text!==Ht._dfltTitle[br]&&(Zn[$r]+=Xt(Xe)+(Xe.title.standoff||0)),Xe.mirror&&Xe.anchor!=="free"&&($n={x:0,y:0,r:0,l:0,t:0,b:0},$n[rn]=Xe.linewidth,Xe.mirror&&Xe.mirror!==!0&&($n[rn]+=zn),Xe.mirror===!0||Xe.mirror==="ticks"?$n[Tr]=Xe._anchorAxis.domain[$a[1]]:(Xe.mirror==="all"||Xe.mirror==="allticks")&&($n[Tr]=[Xe._counterDomainMin,Xe._counterDomainMax][$a[1]]))}Qr&&(Oa=C.getComponentMethod("rangeslider","autoMarginOpts")(Ze,Xe)),typeof Xe.automargin=="string"&&(Ve(Zn,Xe.automargin),Ve($n,Xe.automargin)),i.autoMargin(Ze,sr(Xe),Zn),i.autoMargin(Ze,Ct(Xe),$n),i.autoMargin(Ze,ht(Xe),Oa)}),w.syncOrAsync(vn)}};function Ve(Ze,Xe){if(Ze){var Ut=Object.keys(V).reduce(function(Bt,qt){return Xe.indexOf(qt)!==-1&&V[qt].forEach(function(nr){Bt[nr]=1}),Bt},{});Object.keys(Ze).forEach(function(Bt){Ut[Bt]||(Bt.length===1?Ze[Bt]=0:delete Ze[Bt])})}}function Je(Ze,Xe){var Ut=[],Bt,qt=function(nr,fr){var ir=nr.xbnd[fr];ir!==null&&Ut.push(w.extendFlat({},nr,{x:ir}))};if(Xe.length){for(Bt=0;Bt60?-.5*Aa:Ze.side==="top"!==br?-Aa:0};else if(Wr==="y"){if(Tn=!br&&Zr==="left"||br&&Zr==="right",Mr=Tn?1:-1,br&&(Mr*=-1),un=gr,_n=Xr*Mr,On=0,!br&&Math.abs(fn)===90&&(fn===-90&&Zr==="left"||fn===90&&Zr==="right"?On=q:On=.5),br){var Sn=S(fn)?+fn:0;if(Sn!==0){var Fn=w.deg2rad(Sn);Rr=Math.abs(Math.sin(Fn))*q*Mr,On=0}}yn.xFn=function(Wn){return Wn.dx+Xe-(un+Wn.fontSize*On)*Mr+Rr*Wn.fontSize},yn.yFn=function(Wn){return Wn.dy+_n+Wn.fontSize*Z},yn.anchorFn=function(Wn,ma){return S(ma)&&Math.abs(ma)===90?"middle":Tn?"end":"start"},yn.heightFn=function(Wn,ma,Aa){return Ze.side==="right"&&(ma*=-1),ma<-30?-Aa:ma<30?-.5*Aa:0}}return yn};function xt(Ze){return[Ze.text,Ze.x,Ze.axInfo,Ze.font,Ze.fontSize,Ze.fontColor].join("_")}Q.drawTicks=function(Ze,Xe,Ut){Ut=Ut||{};var Bt=Xe._id+"tick",qt=[].concat(Xe.minor&&Xe.minor.ticks?Ut.vals.filter(function(fr){return fr.minor&&!fr.noTick}):[]).concat(Xe.ticks?Ut.vals.filter(function(fr){return!fr.minor&&!fr.noTick}):[]),nr=Ut.layer.selectAll("path."+Bt).data(qt,xt);nr.exit().remove(),nr.enter().append("path").classed(Bt,1).classed("ticks",1).classed("crisp",Ut.crisp!==!1).each(function(fr){return n.stroke(l.select(this),fr.minor?Xe.minor.tickcolor:Xe.tickcolor)}).style("stroke-width",function(fr){return s.crispRound(Ze,fr.minor?Xe.minor.tickwidth:Xe.tickwidth,1)+"px"}).attr("d",Ut.path).style("display",null),hr(Xe,[H]),nr.attr("transform",Ut.transFn)},Q.drawGrid=function(Ze,Xe,Ut){if(Ut=Ut||{},Xe.tickmode!=="sync"){var Bt=Xe._id+"grid",qt=Xe.minor&&Xe.minor.showgrid,nr=qt?Ut.vals.filter(function(un){return un.minor}):[],fr=Xe.showgrid?Ut.vals.filter(function(un){return!un.minor}):[],ir=Ut.counterAxis;if(ir&&Q.shouldShowZeroLine(Ze,Xe,ir))for(var Ht=Xe.tickmode==="array",pr=0;pr=0;Dr--){var Fr=Dr?gr:Xr;if(Fr){var yn=Fr.selectAll("path."+Bt).data(Dr?fr:nr,xt);yn.exit().remove(),yn.enter().append("path").classed(Bt,1).classed("crisp",Ut.crisp!==!1),yn.attr("transform",Ut.transFn).attr("d",Ut.path).each(function(un){return n.stroke(l.select(this),un.minor?Xe.minor.gridcolor:Xe.gridcolor||"#ddd")}).style("stroke-dasharray",function(un){return s.dashStyle(un.minor?Xe.minor.griddash:Xe.griddash,un.minor?Xe.minor.gridwidth:Xe.gridwidth)}).style("stroke-width",function(un){return(un.minor?Tr:Xe._gw)+"px"}).style("display",null),typeof Ut.path=="function"&&yn.attr("d",Ut.path)}}hr(Xe,[G,U])}},Q.drawZeroLine=function(Ze,Xe,Ut){Ut=Ut||Ut;var Bt=Xe._id+"zl",qt=Q.shouldShowZeroLine(Ze,Xe,Ut.counterAxis),nr=Ut.layer.selectAll("path."+Bt).data(qt?[{x:0,id:Xe._id}]:[]);nr.exit().remove(),nr.enter().append("path").classed(Bt,1).classed("zl",1).classed("crisp",Ut.crisp!==!1).each(function(){Ut.layer.selectAll("path").sort(function(fr,ir){return K(fr.id,ir.id)})}),nr.attr("transform",Ut.transFn).attr("d",Ut.path).call(n.stroke,Xe.zerolinecolor||n.defaultLine).style("stroke-width",s.crispRound(Ze,Xe.zerolinewidth,Xe._gw||1)+"px").style("display",null),hr(Xe,[B])},Q.drawLabels=function(Ze,Xe,Ut){Ut=Ut||{};var Bt=Ze._fullLayout,qt=Xe._id,nr=Ut.cls||qt+"tick",fr=Ut.vals.filter(function(Cr){return Cr.text}),ir=Ut.labelFns,Ht=Ut.secondary?0:Xe.tickangle,pr=(Xe._prevTickAngles||{})[nr],br=Ut.layer.selectAll("g."+nr).data(Xe.showticklabels?fr:[],xt),Tr=[];br.enter().append("g").classed(nr,1).append("text").attr("text-anchor","middle").each(function(Cr){var cn=l.select(this),nn=Ze._promises.length;cn.call(m.positionText,ir.xFn(Cr),ir.yFn(Cr)).call(s.font,Cr.font,Cr.fontSize,Cr.fontColor).text(Cr.text).call(m.convertToTspans,Ze),Ze._promises[nn]?Tr.push(Ze._promises.pop().then(function(){gr(cn,Ht)})):gr(cn,Ht)}),hr(Xe,[W]),br.exit().remove(),Ut.repositionOnUpdate&&br.each(function(Cr){l.select(this).select("text").call(m.positionText,ir.xFn(Cr),ir.yFn(Cr))});function gr(Cr,cn){Cr.each(function(nn){var wn=l.select(this),Jn=wn.select(".text-math-group"),In=ir.anchorFn(nn,cn),Rn=Ut.transFn.call(wn.node(),nn)+(S(cn)&&+cn!=0?" rotate("+cn+","+ir.xFn(nn)+","+(ir.yFn(nn)-nn.fontSize/2)+")":""),Xn=m.lineCount(wn),la=ae*nn.fontSize,Da=ir.heightFn(nn,S(cn)?+cn:0,(Xn-1)*la);if(Da&&(Rn+=v(0,Da)),Jn.empty()){var Qa=wn.select("text");Qa.attr({transform:Rn,"text-anchor":In}),Qa.style("opacity",1),Xe._adjustTickLabelsOverflow&&Xe._adjustTickLabelsOverflow()}else{var Pr=s.bBox(Jn.node()).width,Ur=Pr*{end:-.5,start:.5}[In];Jn.attr("transform",Rn+v(Ur,0))}})}Xe._adjustTickLabelsOverflow=function(){var Cr=Xe.ticklabeloverflow;if(!(!Cr||Cr==="allow")){var cn=Cr.indexOf("hide")!==-1,nn=Xe._id.charAt(0)==="x",wn=0,Jn=nn?Ze._fullLayout.width:Ze._fullLayout.height;if(Cr.indexOf("domain")!==-1){var In=w.simpleMap(Xe.range,Xe.r2l);wn=Xe.l2p(In[0])+Xe._offset,Jn=Xe.l2p(In[1])+Xe._offset}var Rn=Math.min(wn,Jn),Xn=Math.max(wn,Jn),la=Xe.side,Da=1/0,Qa=-1/0;br.each(function(Vr){var An=l.select(this),Hn=An.select(".text-math-group");if(Hn.empty()){var xn=s.bBox(An.node()),vn=0;nn?(xn.right>Xn||xn.leftXn||xn.top+(Xe.tickangle?0:Vr.fontSize/4)Xe["_visibleLabelMin_"+In._id]?Vr.style("display","none"):Xn.K==="tick"&&!Rn&&Vr.style("display",null)})})})})},gr(br,pr+1?pr:Ht);function Xr(){return Tr.length&&Promise.all(Tr)}var Dr=null;function Fr(){if(gr(br,Ht),fr.length&&Xe.autotickangles&&(Xe.type!=="log"||String(Xe.dtick).charAt(0)!=="D")){Dr=Xe.autotickangles[0];var Cr=0,cn=[],nn,wn=1;if(br.each(function(zn){Cr=Math.max(Cr,zn.fontSize);var Bn=Xe.l2p(zn.x),Zn=xr(this),$n=s.bBox(Zn.node());wn=Math.max(wn,m.lineCount(Zn)),cn.push({top:0,bottom:10,height:10,left:Bn-$n.width/2,right:Bn+$n.width/2+2,width:$n.width+2})}),(Xe.tickson==="boundaries"||Xe.showdividers)&&!Ut.secondary){var Jn=2;for(Xe.ticks&&(Jn+=Xe.tickwidth/2),nn=0;nnIa*Aa&&(Fn=Aa,fn[Wr]=Tn[Wr]=Wn[Wr])}var Ta=Math.abs(Fn-Sn);Ta-Mr>0?(Ta-=Mr,Mr*=1+Mr/Ta):Mr=0,Xe._id.charAt(0)!=="y"&&(Mr=-Mr),fn[Zr]=_n.p2r(_n.r2p(Tn[Zr])+Rr*Mr),_n.autorange==="min"||_n.autorange==="max reversed"?(fn[0]=null,_n._rangeInitial0=void 0,_n._rangeInitial1=void 0):(_n.autorange==="max"||_n.autorange==="min reversed")&&(fn[1]=null,_n._rangeInitial0=void 0,_n._rangeInitial1=void 0),Bt._insideTickLabelsUpdaterange[_n._name+".range"]=fn}var ga=w.syncOrAsync(yn);return ga&&ga.then&&Ze._promises.push(ga),ga};function Lt(Ze,Xe,Ut){var Bt=Xe._id+"divider",qt=Ut.vals,nr=Ut.layer.selectAll("path."+Bt).data(qt,xt);nr.exit().remove(),nr.enter().insert("path",":first-child").classed(Bt,1).classed("crisp",1).call(n.stroke,Xe.dividercolor).style("stroke-width",s.crispRound(Ze,Xe.dividerwidth,1)+"px"),nr.attr("transform",Ut.transFn).attr("d",Ut.path)}Q.getPxPosition=function(Ze,Xe){var Ut=Ze._fullLayout._size,Bt=Xe._id.charAt(0),qt=Xe.side,nr;if(Xe.anchor!=="free"?nr=Xe._anchorAxis:Bt==="x"?nr={_offset:Ut.t+(1-(Xe.position||0))*Ut.h,_length:0}:Bt==="y"&&(nr={_offset:Ut.l+(Xe.position||0)*Ut.w+Xe._shift,_length:0}),qt==="top"||qt==="left")return nr._offset;if(qt==="bottom"||qt==="right")return nr._offset+nr._length};function Xt(Ze){var Xe=Ze.title.font.size,Ut=(Ze.title.text.match(m.BR_TAG_ALL)||[]).length;return Ze.title.hasOwnProperty("standoff")?Ut?Xe*(q+Ut*ae):Xe*q:Ut?Xe*(Ut+1)*ae:Xe}function dr(Ze,Xe){var Ut=Ze._fullLayout,Bt=Xe._id,qt=Bt.charAt(0),nr=Xe.title.font.size,fr;if(Xe.title.hasOwnProperty("standoff"))fr=Xe._depth+Xe.title.standoff+Xt(Xe);else{var ir=er(Xe);if(Xe.type==="multicategory")fr=Xe._depth;else{var Ht=1.5*nr;ir&&(Ht=.5*nr,Xe.ticks==="outside"&&(Ht+=Xe.ticklen)),fr=10+Ht+(Xe.linewidth?Xe.linewidth-1:0)}ir||(qt==="x"?fr+=Xe.side==="top"?nr*(Xe.showticklabels?1:0):nr*(Xe.showticklabels?1.5:.5):fr+=Xe.side==="right"?nr*(Xe.showticklabels?1:.5):nr*(Xe.showticklabels?.5:0))}var pr=Q.getPxPosition(Ze,Xe),br,Tr,gr;qt==="x"?(Tr=Xe._offset+Xe._length/2,gr=Xe.side==="top"?pr-fr:pr+fr):(gr=Xe._offset+Xe._length/2,Tr=Xe.side==="right"?pr+fr:pr-fr,br={rotate:"-90",offset:0});var Xr;if(Xe.type!=="multicategory"){var Dr=Xe._selections[Xe._id+"tick"];if(Xr={selection:Dr,side:Xe.side},Dr&&Dr.node()&&Dr.node().parentNode){var Fr=s.getTranslate(Dr.node().parentNode);Xr.offsetLeft=Fr.x,Xr.offsetTop=Fr.y}Xe.title.hasOwnProperty("standoff")&&(Xr.pad=0)}return Xe._titleStandoff=fr,a.draw(Ze,Bt+"title",{propContainer:Xe,propName:Xe._name+".title.text",placeholder:Ut._dfltTitle[qt],avoid:Xr,transform:br,attributes:{x:Tr,y:gr,"text-anchor":"middle"}})}Q.shouldShowZeroLine=function(Ze,Xe,Ut){var Bt=w.simpleMap(Xe.range,Xe.r2l);return Bt[0]*Bt[1]<=0&&Xe.zeroline&&(Xe.type==="linear"||Xe.type==="-")&&!(Xe.rangebreaks&&Xe.maskBreaks(0)===N)&&(Tt(Xe,0)||!Kt(Ze,Xe,Ut,Bt)||Qt(Ze,Xe))},Q.clipEnds=function(Ze,Xe){return Xe.filter(function(Ut){return Tt(Ze,Ut.x)})};function Tt(Ze,Xe){var Ut=Ze.l2p(Xe);return Ut>1&&Ut1)for(qt=1;qt=qt.min&&Zec*2}function o(u){return Math.max(1,(u-1)/1e3)}function h(u,b){for(var p=u.length,E=o(p),g=0,c=0,x={},A=0;Ag*2}function f(u){return C(u[0])&&C(u[1])}},28336:function(D,O,t){var l=t(38248),S=t(24040),i=t(3400),C=t(31780),w=t(51272),v=t(94724),m=t(26332),a=t(25404),n=t(95936),s=t(42568),o=t(22416),h=t(42136),f=t(96312),u=t(78344),b=t(33816).WEEKDAY_PATTERN,p=t(33816).HOUR_PATTERN;D.exports=function(A,M,R,T,L){var P=T.letter,d=T.font||{},k=T.splomStash||{},I=R("visible",!T.visibleDflt),N=M._template||{},B=M.type||N.type||"-",G;if(B==="date"){var U=S.getComponentMethod("calendars","handleDefaults");U(A,M,"calendar",T.calendar),T.noTicklabelmode||(G=R("ticklabelmode"))}var H="";(!T.noTicklabelposition||B==="multicategory")&&(H=i.coerce(A,M,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:G==="period"?["outside","inside"]:P==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),T.noTicklabeloverflow||R("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":B==="category"||B==="multicategory"?"allow":"hide past div"),u(M,L),f(A,M,R,T),o(A,M,R,T),B!=="category"&&!T.noHover&&R("hoverformat");var W=R("color"),V=W!==v.color.dflt?W:d.color,$=k.label||L._dfltTitle[P];if(s(A,M,R,B,T),!I)return M;R("title.text",$),i.coerceFont(R,"title.font",{family:d.family,size:i.bigFont(d.size),color:V}),m(A,M,R,B);var Z=T.hasMinor;if(Z&&(C.newContainer(M,"minor"),m(A,M,R,B,{isMinor:!0})),n(A,M,R,B,T),a(A,M,R,T),Z){var q=T.isMinor;T.isMinor=!0,a(A,M,R,T),T.isMinor=q}h(A,M,R,{dfltColor:W,bgColor:T.bgColor,showGrid:T.showGrid,hasMinor:Z,attributes:v}),Z&&!M.minor.ticks&&!M.minor.showgrid&&delete M.minor,(M.showline||M.ticks)&&R("mirror");var ae=B==="multicategory";if(!T.noTickson&&(B==="category"||ae)&&(M.ticks||M.showgrid)){var ie;ae&&(ie="boundaries");var fe=R("tickson",ie);fe==="boundaries"&&delete M.ticklabelposition}if(ae){var Q=R("showdividers");Q&&(R("dividercolor"),R("dividerwidth"))}if(B==="date")if(w(A,M,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:E}),!M.rangebreaks.length)delete M.rangebreaks;else{for(var J=0;J=2){var P="",d,k;if(L.length===2){for(d=0;d<2;d++)if(k=c(L[d]),k){P=b;break}}var I=R("pattern",P);if(I===b)for(d=0;d<2;d++)k=c(L[d]),k&&(A.bounds[d]=L[d]=k-1);if(I)for(d=0;d<2;d++)switch(k=L[d],I){case b:if(!l(k)){A.enabled=!1;return}if(k=+k,k!==Math.floor(k)||k<0||k>=7){A.enabled=!1;return}A.bounds[d]=L[d]=k;break;case p:if(!l(k)){A.enabled=!1;return}if(k=+k,k<0||k>24){A.enabled=!1;return}A.bounds[d]=L[d]=k;break}if(M.autorange===!1){var N=M.range;if(N[0]N[1]){A.enabled=!1;return}}else if(L[0]>N[0]&&L[1]m?1:-1:+(C.substr(1)||1)-+(w.substr(1)||1)},O.ref2id=function(C){return/^[xyz]/.test(C)?C.split(" ")[0]:!1};function i(C,w){if(w&&w.length){for(var v=0;v0||l(a),s;n&&(s="array");var o=v("categoryorder",s),h;o==="array"&&(h=v("categoryarray")),!n&&o==="array"&&(o=w.categoryorder="trace"),o==="trace"?w._initialCategories=[]:o==="array"?w._initialCategories=h.slice():(h=S(w,m).sort(),o==="category ascending"?w._initialCategories=h:o==="category descending"&&(w._initialCategories=h.reverse()))}}},98728:function(D,O,t){var l=t(38248),S=t(3400),i=t(39032),C=i.ONEDAY,w=i.ONEWEEK;O.dtick=function(v,m){var a=m==="log",n=m==="date",s=m==="category",o=n?C:1;if(!v)return o;if(l(v))return v=Number(v),v<=0?o:s?Math.max(1,Math.round(v)):n?Math.max(.1,v):v;if(typeof v!="string"||!(n||a))return o;var h=v.charAt(0),f=v.substr(1);return f=l(f)?Number(f):0,f<=0||!(n&&h==="M"&&f===Math.round(f)||a&&h==="L"||a&&h==="D"&&(f===1||f===2))?o:v},O.tick0=function(v,m,a,n){if(m==="date")return S.cleanDate(v,S.dateTick0(a,n%w===0?1:0));if(!(n==="D1"||n==="D2"))return l(v)?Number(v):0}},33816:function(D,O,t){var l=t(53756).counter;D.exports={idRegex:{x:l("x","( domain)?"),y:l("y","( domain)?")},attrRegex:l("[xy]axis"),xAxisMatch:l("xaxis"),yAxisMatch:l("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(D,O,t){var l=t(3400),S=t(19280),i=t(79811).id2name,C=t(94724),w=t(21160),v=t(78344),m=t(39032).ALMOST_EQUAL,a=t(84284).FROM_BL;O.handleDefaults=function(p,E,g){var c=g.axIds,x=g.axHasImage,A=E._axisConstraintGroups=[],M=E._axisMatchGroups=[],R,T,L,P,d,k,I,N;for(R=0;RA?g.substr(A):c.substr(x))+M}function u(p,E){for(var g=E._size,c=g.h/g.w,x={},A=Object.keys(p),M=0;Mm*N&&!H)){for(A=0;AJ&&lefe&&(fe=le);var xe=(fe-ie)/(2*Q);d/=xe,ie=T.l2r(ie),fe=T.l2r(fe),T.range=T._input.range=Z=0){pr._fullLayout._deactivateShape(pr);return}var br=pr._fullLayout.clickmode;if(J(pr),ir===2&&!Ue&&Xe(),Ie)br.indexOf("select")>-1&&L(Ht,pr,vt,at,he.id,ut),br.indexOf("event")>-1&&o.click(pr,Ht,he.id);else if(ir===1&&Ue){var Tr=Te?ze:Ne,gr=Te==="s"||Ae==="w"?0:1,Xr=Tr._name+".range["+gr+"]",Dr=W(Tr,gr),Fr="left",yn="middle";if(Tr.fixedrange)return;Te?(yn=Te==="n"?"top":"bottom",Tr.side==="right"&&(Fr="right")):Ae==="e"&&(Fr="right"),pr._context.showAxisRangeEntryBoxes&&l.select(yt).call(a.makeEditable,{gd:pr,immediate:!0,background:pr._fullLayout.paper_bgcolor,text:String(Dr),fill:Tr.tickfont?Tr.tickfont.color:"#444",horizontalAlign:Fr,verticalAlign:yn}).on("edit",function(un){var _n=Tr.d2r(un);_n!==void 0&&v.call("_guiRelayout",pr,Xr,_n)})}}u.init(ut);var xt,Lt,Xt,dr,Tt,Kt,Qt,xr,sr,Ct;function ht(ir,Ht,pr){var br=yt.getBoundingClientRect();xt=Ht-br.left,Lt=pr-br.top,le._fullLayout._calcInverseTransform(le);var Tr=S.apply3DTransform(le._fullLayout._invTransform)(xt,Lt);xt=Tr[0],Lt=Tr[1],Xt={l:xt,r:xt,w:0,t:Lt,b:Lt,h:0},dr=le._hmpixcount?le._hmlumcount/le._hmpixcount:C(le._fullLayout.plot_bgcolor).getLuminance(),Tt="M0,0H"+rt+"V"+lt+"H0V0",Kt=!1,Qt="xy",Ct=!1,xr=ae(be,dr,nt,mt,Tt),sr=ie(be,nt,mt)}function At(ir,Ht){if(le._transitioningWithDuration)return!1;var pr=Math.max(0,Math.min(rt,Pe*ir+xt)),br=Math.max(0,Math.min(lt,Ve*Ht+Lt)),Tr=Math.abs(pr-xt),gr=Math.abs(br-Lt);Xt.l=Math.min(xt,pr),Xt.r=Math.max(xt,pr),Xt.t=Math.min(Lt,br),Xt.b=Math.max(Lt,br);function Xr(){Qt="",Xt.r=Xt.l,Xt.t=Xt.b,sr.attr("d","M0,0Z")}if(dt.isSubplotConstrained)Tr>I||gr>I?(Qt="xy",Tr/rt>gr/lt?(gr=Tr*lt/rt,Lt>br?Xt.t=Lt-gr:Xt.b=Lt+gr):(Tr=gr*rt/lt,xt>pr?Xt.l=xt-Tr:Xt.r=xt+Tr),sr.attr("d",ce(Xt))):Xr();else if(wt.isSubplotConstrained)if(Tr>I||gr>I){Qt="xy";var Dr=Math.min(Xt.l/rt,(lt-Xt.b)/lt),Fr=Math.max(Xt.r/rt,(lt-Xt.t)/lt);Xt.l=Dr*rt,Xt.r=Fr*rt,Xt.b=(1-Dr)*lt,Xt.t=(1-Fr)*lt,sr.attr("d",ce(Xt))}else Xr();else!Be||gr0){var un;if(wt.isSubplotConstrained||!et&&Be.length===1){for(un=0;un1&&(Xr.maxallowed!==void 0&&Ke===(Xr.range[0]1&&(Dr.maxallowed!==void 0&&We===(Dr.range[0]=0?Math.min(le,.9):1/(1/Math.max(le,-.3)+3.222))}function q(le,he,xe){return le?le==="nsew"?xe?"":he==="pan"?"move":"crosshair":le.toLowerCase()+"-resize":"pointer"}function ae(le,he,xe,Ee,Se){return le.append("path").attr("class","zoombox").style({fill:he>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(xe,Ee)).attr("d",Se+"Z")}function ie(le,he,xe){return le.append("path").attr("class","zoombox-corners").style({fill:n.background,stroke:n.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(he,xe)).attr("d","M0,0Z")}function fe(le,he,xe,Ee,Se,ke){le.attr("d",Ee+"M"+xe.l+","+xe.t+"v"+xe.h+"h"+xe.w+"v-"+xe.h+"h-"+xe.w+"Z"),Q(le,he,Se,ke)}function Q(le,he,xe,Ee){xe||(le.transition().style("fill",Ee>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),he.transition().style("opacity",1).duration(200))}function J(le){l.select(le).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function oe(le){N&&le.data&&le._context.showTips&&(S.notifier(S._(le,"Double-click to zoom back out"),"long"),N=!1)}function K(le,he){return"M"+(le.l-.5)+","+(he-I-.5)+"h-3v"+(2*I+1)+"h3ZM"+(le.r+.5)+","+(he-I-.5)+"h3v"+(2*I+1)+"h-3Z"}function ne(le,he){return"M"+(he-I-.5)+","+(le.t-.5)+"v-3h"+(2*I+1)+"v3ZM"+(he-I-.5)+","+(le.b+.5)+"v3h"+(2*I+1)+"v-3Z"}function ce(le){var he=Math.floor(Math.min(le.b-le.t,le.r-le.l,I)/2);return"M"+(le.l-3.5)+","+(le.t-.5+he)+"h3v"+-he+"h"+he+"v-3h-"+(he+3)+"ZM"+(le.r+3.5)+","+(le.t-.5+he)+"h-3v"+-he+"h"+-he+"v-3h"+(he+3)+"ZM"+(le.r+3.5)+","+(le.b+.5-he)+"h-3v"+he+"h"+-he+"v3h"+(he+3)+"ZM"+(le.l-3.5)+","+(le.b+.5-he)+"h3v"+he+"h"+he+"v3h-"+(he+3)+"Z"}function re(le,he,xe,Ee,Se){for(var ke=!1,Te={},Ae={},be,Ie,Ue,Ne,ze=(Se||{}).xaHash,$e=(Se||{}).yaHash,st=0;stR[1]-.000244140625&&(w.domain=u),S.noneOrAll(C.domain,w.domain,u),w.tickmode==="sync"&&(w.tickmode="auto")}return v("layer"),w}},42568:function(D,O,t){var l=t(85024);D.exports=function(i,C,w,v,m){m||(m={});var a=m.tickSuffixDflt,n=l(i),s=w("tickprefix");s&&w("showtickprefix",n);var o=w("ticksuffix",a);o&&w("showticksuffix",n)}},96312:function(D,O,t){var l=t(76808);D.exports=function(i,C,w,v){var m=C._template||{},a=C.type||m.type||"-";w("minallowed"),w("maxallowed");var n=w("range");if(!n){var s;!v.noInsiderange&&a!=="log"&&(s=w("insiderange"),s&&(s[0]===null||s[1]===null)&&(C.insiderange=!1,s=void 0),s&&(n=w("range",s)))}var o=C.getAutorangeDflt(n,v),h=w("autorange",o),f;n&&(n[0]===null&&n[1]===null||(n[0]===null||n[1]===null)&&(h==="reversed"||h===!0)||n[0]!==null&&(h==="min"||h==="max reversed")||n[1]!==null&&(h==="max"||h==="min reversed"))&&(n=void 0,delete C.range,C.autorange=!0,f=!0),f||(o=C.getAutorangeDflt(n,v),h=w("autorange",o)),h&&(l(w,h,n),(a==="linear"||a==="-")&&w("rangemode")),C.cleanRange()}},21160:function(D,O,t){var l=t(84284).FROM_BL;D.exports=function(i,C,w){w===void 0&&(w=l[i.constraintoward||"center"]);var v=[i.r2l(i.range[0]),i.r2l(i.range[1])],m=v[0]+(v[1]-v[0])*w;i.range=i._input.range=[i.l2r(m+(v[0]-m)*C),i.l2r(m+(v[1]-m)*C)],i.setScale()}},78344:function(D,O,t){var l=t(33428),S=t(94336).E9,i=t(3400),C=i.numberFormat,w=t(38248),v=i.cleanNumber,m=i.ms2DateTime,a=i.dateTime2ms,n=i.ensureNumber,s=i.isArrayOrTypedArray,o=t(39032),h=o.FP_SAFE,f=o.BADNUM,u=o.LOG_CLIP,b=o.ONEWEEK,p=o.ONEDAY,E=o.ONEHOUR,g=o.ONEMIN,c=o.ONESEC,x=t(79811),A=t(33816),M=A.HOUR_PATTERN,R=A.WEEKDAY_PATTERN;function T(P){return Math.pow(10,P)}function L(P){return P!=null}D.exports=function(d,k){k=k||{};var I=d._id||"x",N=I.charAt(0);function B(K,ne){if(K>0)return Math.log(K)/Math.LN10;if(K<=0&&ne&&d.range&&d.range.length===2){var ce=d.range[0],re=d.range[1];return .5*(ce+re-2*u*Math.abs(ce-re))}else return f}function G(K,ne,ce,re){if((re||{}).msUTC&&w(K))return+K;var ee=a(K,ce||d.calendar);if(ee===f)if(w(K)){K=+K;var de=Math.floor(i.mod(K+.05,1)*10),le=Math.round(K-de/10);ee=a(new Date(le))+de/10}else return f;return ee}function U(K,ne,ce){return m(K,ne,ce||d.calendar)}function H(K){return d._categories[Math.round(K)]}function W(K){if(L(K)){if(d._categoriesMap===void 0&&(d._categoriesMap={}),d._categoriesMap[K]!==void 0)return d._categoriesMap[K];d._categories.push(typeof K=="number"?String(K):K);var ne=d._categories.length-1;return d._categoriesMap[K]=ne,ne}return f}function V(K,ne){for(var ce=new Array(ne),re=0;red.range[1]&&(ce=!ce);for(var re=ce?-1:1,ee=re*K,de=0,le=0;lexe)de=le+1;else{de=ee<(he+xe)/2?le:le+1;break}}var Ee=d._B[de]||0;return isFinite(Ee)?ae(K,d._m2,Ee):0},Q=function(K){var ne=d._rangebreaks.length;if(!ne)return ie(K,d._m,d._b);for(var ce=0,re=0;red._rangebreaks[re].pmax&&(ce=re+1);return ie(K,d._m2,d._B[ce])}}d.c2l=d.type==="log"?B:n,d.l2c=d.type==="log"?T:n,d.l2p=fe,d.p2l=Q,d.c2p=d.type==="log"?function(K,ne){return fe(B(K,ne))}:fe,d.p2c=d.type==="log"?function(K){return T(Q(K))}:Q,["linear","-"].indexOf(d.type)!==-1?(d.d2r=d.r2d=d.d2c=d.r2c=d.d2l=d.r2l=v,d.c2d=d.c2r=d.l2d=d.l2r=n,d.d2p=d.r2p=function(K){return d.l2p(v(K))},d.p2d=d.p2r=Q,d.cleanPos=n):d.type==="log"?(d.d2r=d.d2l=function(K,ne){return B(v(K),ne)},d.r2d=d.r2c=function(K){return T(v(K))},d.d2c=d.r2l=v,d.c2d=d.l2r=n,d.c2r=B,d.l2d=T,d.d2p=function(K,ne){return d.l2p(d.d2r(K,ne))},d.p2d=function(K){return T(Q(K))},d.r2p=function(K){return d.l2p(v(K))},d.p2r=Q,d.cleanPos=n):d.type==="date"?(d.d2r=d.r2d=i.identity,d.d2c=d.r2c=d.d2l=d.r2l=G,d.c2d=d.c2r=d.l2d=d.l2r=U,d.d2p=d.r2p=function(K,ne,ce){return d.l2p(G(K,0,ce))},d.p2d=d.p2r=function(K,ne,ce){return U(Q(K),ne,ce)},d.cleanPos=function(K){return i.cleanDate(K,f,d.calendar)}):d.type==="category"?(d.d2c=d.d2l=W,d.r2d=d.c2d=d.l2d=H,d.d2r=d.d2l_noadd=Z,d.r2c=function(K){var ne=q(K);return ne!==void 0?ne:d.fraction2r(.5)},d.l2r=d.c2r=n,d.r2l=q,d.d2p=function(K){return d.l2p(d.r2c(K))},d.p2d=function(K){return H(Q(K))},d.r2p=d.d2p,d.p2r=Q,d.cleanPos=function(K){return typeof K=="string"&&K!==""?K:n(K)}):d.type==="multicategory"&&(d.r2d=d.c2d=d.l2d=H,d.d2r=d.d2l_noadd=Z,d.r2c=function(K){var ne=Z(K);return ne!==void 0?ne:d.fraction2r(.5)},d.r2c_just_indices=$,d.l2r=d.c2r=n,d.r2l=Z,d.d2p=function(K){return d.l2p(d.r2c(K))},d.p2d=function(K){return H(Q(K))},d.r2p=d.d2p,d.p2r=Q,d.cleanPos=function(K){return Array.isArray(K)||typeof K=="string"&&K!==""?K:n(K)},d.setupMultiCategory=function(K){var ne=d._traceIndices,ce,re,ee=d._matchGroup;if(ee&&d._categories.length===0){for(var de in ee)if(de!==I){var le=k[x.id2name(de)];ne=ne.concat(le._traceIndices)}}var he=[[0,{}],[0,{}]],xe=[];for(ce=0;cele[1]&&(re[de?0:1]=ce),re[0]===re[1]){var he=d.l2r(ne),xe=d.l2r(ce);if(ne!==void 0){var Ee=he+1;ce!==void 0&&(Ee=Math.min(Ee,xe)),re[de?1:0]=Ee}if(ce!==void 0){var Se=xe+1;ne!==void 0&&(Se=Math.max(Se,he)),re[de?0:1]=Se}}}},d.cleanRange=function(K,ne){d._cleanRange(K,ne),d.limitRange(K)},d._cleanRange=function(K,ne){ne||(ne={}),K||(K="range");var ce=i.nestedProperty(d,K).get(),re,ee;if(d.type==="date"?ee=i.dfltRange(d.calendar):N==="y"?ee=A.DFLTRANGEY:d._name==="realaxis"?ee=[0,1]:ee=ne.dfltRange||A.DFLTRANGEX,ee=ee.slice(),(d.rangemode==="tozero"||d.rangemode==="nonnegative")&&(ee[0]=0),!ce||ce.length!==2){i.nestedProperty(d,K).set(ee);return}var de=ce[0]===null,le=ce[1]===null;for(d.type==="date"&&!d.autorange&&(ce[0]=i.cleanDate(ce[0],f,d.calendar),ce[1]=i.cleanDate(ce[1],f,d.calendar)),re=0;re<2;re++)if(d.type==="date"){if(!i.isDateTime(ce[re],d.calendar)){d[K]=ee;break}if(d.r2l(ce[0])===d.r2l(ce[1])){var he=i.constrain(d.r2l(ce[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);ce[0]=d.l2r(he-1e3),ce[1]=d.l2r(he+1e3);break}}else{if(!w(ce[re]))if(!(de||le)&&w(ce[1-re]))ce[re]=ce[1-re]*(re?10:.1);else{d[K]=ee;break}if(ce[re]<-h?ce[re]=-h:ce[re]>h&&(ce[re]=h),ce[0]===ce[1]){var xe=Math.max(1,Math.abs(ce[0]*1e-6));ce[0]-=xe,ce[1]+=xe}}},d.setScale=function(K){var ne=k._size;if(d.overlaying){var ce=x.getFromId({_fullLayout:k},d.overlaying);d.domain=ce.domain}var re=K&&d._r?"_r":"range",ee=d.calendar;d.cleanRange(re);var de=d.r2l(d[re][0],ee),le=d.r2l(d[re][1],ee),he=N==="y";if(he?(d._offset=ne.t+(1-d.domain[1])*ne.h,d._length=ne.h*(d.domain[1]-d.domain[0]),d._m=d._length/(de-le),d._b=-d._m*le):(d._offset=ne.l+d.domain[0]*ne.w,d._length=ne.w*(d.domain[1]-d.domain[0]),d._m=d._length/(le-de),d._b=-d._m*de),d._rangebreaks=[],d._lBreaks=0,d._m2=0,d._B=[],d.rangebreaks){var xe,Ee;if(d._rangebreaks=d.locateBreaks(Math.min(de,le),Math.max(de,le)),d._rangebreaks.length){for(xe=0;xele&&(Se=!Se),Se&&d._rangebreaks.reverse();var ke=Se?-1:1;for(d._m2=ke*d._length/(Math.abs(le-de)-d._lBreaks),d._B.push(-d._m2*(he?le:de)),xe=0;xeee&&(ee+=7,deee&&(ee+=24,de=re&&de=re&&K=at.min&&(zeat.max&&(at.max=$e),st=!1)}st&&le.push({min:ze,max:$e})}};for(ce=0;ce rect").call(C.setTranslate,0,0).call(C.setScale,1,1),M.plot.call(C.setTranslate,R._offset,T._offset).call(C.setScale,1,1);var L=M.plot.selectAll(".scatterlayer .trace");L.selectAll(".point").call(C.setPointGroupScale,1,1),L.selectAll(".textpoint").call(C.setTextPointsScale,1,1),L.call(C.hideOutsideRangePoints,M)}function f(M,R){var T=M.plotinfo,L=T.xaxis,P=T.yaxis,d=L._length,k=P._length,I=!!M.xr1,N=!!M.yr1,B=[];if(I){var G=i.simpleMap(M.xr0,L.r2l),U=i.simpleMap(M.xr1,L.r2l),H=G[1]-G[0],W=U[1]-U[0];B[0]=(G[0]*(1-R)+R*U[0]-G[0])/(G[1]-G[0])*d,B[2]=d*(1-R+R*W/H),L.range[0]=L.l2r(G[0]*(1-R)+R*U[0]),L.range[1]=L.l2r(G[1]*(1-R)+R*U[1])}else B[0]=0,B[2]=d;if(N){var V=i.simpleMap(M.yr0,P.r2l),$=i.simpleMap(M.yr1,P.r2l),Z=V[1]-V[0],q=$[1]-$[0];B[1]=(V[1]*(1-R)+R*$[1]-V[1])/(V[0]-V[1])*k,B[3]=k*(1-R+R*q/Z),P.range[0]=L.l2r(V[0]*(1-R)+R*$[0]),P.range[1]=P.l2r(V[1]*(1-R)+R*$[1])}else B[1]=0,B[3]=k;w.drawOne(m,L,{skipTitle:!0}),w.drawOne(m,P,{skipTitle:!0}),w.redrawComponents(m,[L._id,P._id]);var ae=I?d/B[2]:1,ie=N?k/B[3]:1,fe=I?B[0]:0,Q=N?B[1]:0,J=I?B[0]/B[2]*d:0,oe=N?B[1]/B[3]*k:0,K=L._offset-J,ne=P._offset-oe;T.clipRect.call(C.setTranslate,fe,Q).call(C.setScale,1/ae,1/ie),T.plot.call(C.setTranslate,K,ne).call(C.setScale,ae,ie),C.setPointGroupScale(T.zoomScalePts,1/ae,1/ie),C.setTextPointsScale(T.zoomScaleTxt,1/ae,1/ie)}var u;s&&(u=s());function b(){for(var M={},R=0;Rn.duration?(b(),c=window.cancelAnimationFrame(A)):c=window.requestAnimationFrame(A)}return E=Date.now(),c=window.requestAnimationFrame(A),Promise.resolve()}},14944:function(D,O,t){var l=t(24040).traceIs,S=t(52976);D.exports=function(a,n,s,o){s("autotypenumbers",o.autotypenumbersDflt);var h=s("type",(o.splomStash||{}).type);h==="-"&&(i(n,o.data),n.type==="-"?n.type="linear":a.type=n.type)};function i(m,a){if(m.type==="-"){var n=m._id,s=n.charAt(0),o;n.indexOf("scene")!==-1&&(n=s);var h=C(a,n,s);if(h){if(h.type==="histogram"&&s==={v:"y",h:"x"}[h.orientation||"v"]){m.type="linear";return}var f=s+"calendar",u=h[f],b={noMultiCategory:!l(h,"cartesian")||l(h,"noMultiCategory")};if(h.type==="box"&&h._hasPreCompStats&&s==={h:"x",v:"y"}[h.orientation||"v"]&&(b.noMultiCategory=!0),b.autotypenumbers=m.autotypenumbers,v(h,s)){var p=w(h),E=[];for(o=0;o0&&(o["_"+n+"axes"]||{})[a])return o;if((o[n+"axis"]||n)===a){if(v(o,n))return o;if((o[n]||[]).length||o[n+"0"])return o}}}function w(m){return{v:"x",h:"y"}[m.orientation||"v"]}function v(m,a){var n=w(m),s=l(m,"box-violin"),o=l(m._fullInput||{},"candlestick");return s&&!o&&a===n&&m[n]===void 0&&m[n+"0"]===void 0}},62460:function(D,O,t){var l=t(24040),S=t(3400);O.manageCommandObserver=function(a,n,s,o){var h={},f=!0;n&&n._commandObserver&&(h=n._commandObserver),h.cache||(h.cache={}),h.lookupTable={};var u=O.hasSimpleAPICommandBindings(a,s,h.lookupTable);if(n&&n._commandObserver){if(u)return h;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,h}if(u){i(a,u,h.cache),h.check=function(){if(f){var g=i(a,u,h.cache);return g.changed&&o&&h.lookupTable[g.value]!==void 0&&(h.disable(),Promise.resolve(o({value:g.value,type:u.type,prop:u.prop,traces:u.traces,index:h.lookupTable[g.value]})).then(h.enable,h.enable)),g.changed}};for(var b=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],p=0;p0?".":"")+h;S.isPlainObject(f)?m(f,n,u,o+1):n(u,h,f)}})}},86968:function(D,O,t){var l=t(92880).extendFlat;O.u=function(S,i){S=S||{},i=i||{};var C={valType:"info_array",editType:S.editType,items:[{valType:"number",min:0,max:1,editType:S.editType},{valType:"number",min:0,max:1,editType:S.editType}],dflt:[0,1]};S.name&&S.name+"",S.trace,i.description&&""+i.description;var w={x:l({},C,{}),y:l({},C,{}),editType:S.editType};return S.noGridCell||(w.row={valType:"integer",min:0,dflt:0,editType:S.editType},w.column={valType:"integer",min:0,dflt:0,editType:S.editType}),w},O.Q=function(S,i,C,w){var v=w&&w.x||[0,1],m=w&&w.y||[0,1],a=i.grid;if(a){var n=C("domain.column");n!==void 0&&(n0&&W._module.calcGeoJSON(H,N)}if(!B){var V=this.updateProjection(I,N);if(V)return;(!this.viewInitial||this.scope!==G.scope)&&this.saveViewInitial(G)}this.scope=G.scope,this.updateBaseLayers(N,G),this.updateDims(N,G),this.updateFx(N,G),h.generalUpdatePerTraceModule(this.graphDiv,this,I,G);var $=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=$.selectAll(".point"),this.dataPoints.text=$.selectAll("text"),this.dataPaths.line=$.selectAll(".js-line");var Z=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Z.selectAll("path"),this._render()},L.updateProjection=function(I,N){var B=this.graphDiv,G=N[this.id],U=N._size,H=G.domain,W=G.projection,V=G.lonaxis,$=G.lataxis,Z=V._ax,q=$._ax,ae=this.projection=P(G),ie=[[U.l+U.w*H.x[0],U.t+U.h*(1-H.y[1])],[U.l+U.w*H.x[1],U.t+U.h*(1-H.y[0])]],fe=G.center||{},Q=W.rotation||{},J=V.range||[],oe=$.range||[];if(G.fitbounds){Z._length=ie[1][0]-ie[0][0],q._length=ie[1][1]-ie[0][1],Z.range=u(B,Z),q.range=u(B,q);var K=(Z.range[0]+Z.range[1])/2,ne=(q.range[0]+q.range[1])/2;if(G._isScoped)fe={lon:K,lat:ne};else if(G._isClipped){fe={lon:K,lat:ne},Q={lon:K,lat:ne,roll:Q.roll};var ce=W.type,re=x.lonaxisSpan[ce]/2||180,ee=x.lataxisSpan[ce]/2||90;J=[K-re,K+re],oe=[ne-ee,ne+ee]}else fe={lon:K,lat:ne},Q={lon:K,lat:Q.lat,roll:Q.roll}}ae.center([fe.lon-Q.lon,fe.lat-Q.lat]).rotate([-Q.lon,-Q.lat,Q.roll]).parallels(W.parallels);var de=k(J,oe);ae.fitExtent(ie,de);var le=this.bounds=ae.getBounds(de),he=this.fitScale=ae.scale(),xe=ae.translate();if(G.fitbounds){var Ee=ae.getBounds(k(Z.range,q.range)),Se=Math.min((le[1][0]-le[0][0])/(Ee[1][0]-Ee[0][0]),(le[1][1]-le[0][1])/(Ee[1][1]-Ee[0][1]));isFinite(Se)?ae.scale(Se*he):m.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ae.scale(W.scale*he);var ke=this.midPt=[(le[0][0]+le[1][0])/2,(le[0][1]+le[1][1])/2];if(ae.translate([xe[0]+(ke[0]-xe[0]),xe[1]+(ke[1]-xe[1])]).clipExtent(le),G._isAlbersUsa){var Te=ae([fe.lon,fe.lat]),Ae=ae.translate();ae.translate([Ae[0]-(Te[0]-Ae[0]),Ae[1]-(Te[1]-Ae[1])])}},L.updateBaseLayers=function(I,N){var B=this,G=B.topojson,U=B.layers,H=B.basePaths;function W(ie){return ie==="lonaxis"||ie==="lataxis"}function V(ie){return!!x.lineLayers[ie]}function $(ie){return!!x.fillLayers[ie]}var Z=this.hasChoropleth?x.layersForChoropleth:x.layers,q=Z.filter(function(ie){return V(ie)||$(ie)?N["show"+ie]:W(ie)?N[ie].showgrid:!0}),ae=B.framework.selectAll(".layer").data(q,String);ae.exit().each(function(ie){delete U[ie],delete H[ie],l.select(this).remove()}),ae.enter().append("g").attr("class",function(ie){return"layer "+ie}).each(function(ie){var fe=U[ie]=l.select(this);ie==="bg"?B.bgRect=fe.append("rect").style("pointer-events","all"):W(ie)?H[ie]=fe.append("path").style("fill","none"):ie==="backplot"?fe.append("g").classed("choroplethlayer",!0):ie==="frontplot"?fe.append("g").classed("scatterlayer",!0):V(ie)?H[ie]=fe.append("path").style("fill","none").style("stroke-miterlimit",2):$(ie)&&(H[ie]=fe.append("path").style("stroke","none"))}),ae.order(),ae.each(function(ie){var fe=H[ie],Q=x.layerNameToAdjective[ie];ie==="frame"?fe.datum(x.sphereSVG):V(ie)||$(ie)?fe.datum(R(G,G.objects[ie])):W(ie)&&fe.datum(d(ie,N,I)).call(n.stroke,N[ie].gridcolor).call(s.dashLine,N[ie].griddash,N[ie].gridwidth),V(ie)?fe.call(n.stroke,N[Q+"color"]).call(s.dashLine,"",N[Q+"width"]):$(ie)&&fe.call(n.fill,N[Q+"color"])})},L.updateDims=function(I,N){var B=this.bounds,G=(N.framewidth||0)/2,U=B[0][0]-G,H=B[0][1]-G,W=B[1][0]-U+G,V=B[1][1]-H+G;s.setRect(this.clipRect,U,H,W,V),this.bgRect.call(s.setRect,U,H,W,V).call(n.fill,N.bgcolor),this.xaxis._offset=U,this.xaxis._length=W,this.yaxis._offset=H,this.yaxis._length=V},L.updateFx=function(I,N){var B=this,G=B.graphDiv,U=B.bgRect,H=I.dragmode,W=I.clickmode;if(B.isStatic)return;function V(){var ae=B.viewInitial,ie={};for(var fe in ae)ie[B.id+"."+fe]=ae[fe];v.call("_guiRelayout",G,ie),G.emit("plotly_doubleclick",null)}function $(ae){return B.projection.invert([ae[0]+B.xaxis._offset,ae[1]+B.yaxis._offset])}var Z=function(ae,ie){if(ie.isRect){var fe=ae.range={};fe[B.id]=[$([ie.xmin,ie.ymin]),$([ie.xmax,ie.ymax])]}else{var Q=ae.lassoPoints={};Q[B.id]=ie.map($)}},q={element:B.bgRect.node(),gd:G,plotinfo:{id:B.id,xaxis:B.xaxis,yaxis:B.yaxis,fillRangeItems:Z},xaxes:[B.xaxis],yaxes:[B.yaxis],subplot:B.id,clickFn:function(ae){ae===2&&E(G)}};H==="pan"?(U.node().onmousedown=null,U.call(c(B,N)),U.on("dblclick.zoom",V),G._context._scrollZoom.geo||U.on("wheel.zoom",null)):(H==="select"||H==="lasso")&&(U.on(".zoom",null),q.prepFn=function(ae,ie,fe){p(ae,ie,fe,q,H)},b.init(q)),U.on("mousemove",function(){var ae=B.projection.invert(m.getPositionFromD3Event());if(!ae)return b.unhover(G,l.event);B.xaxis.p2c=function(){return ae[0]},B.yaxis.p2c=function(){return ae[1]},o.hover(G,l.event,B.id)}),U.on("mouseout",function(){G._dragging||b.unhover(G,l.event)}),U.on("click",function(){H!=="select"&&H!=="lasso"&&(W.indexOf("select")>-1&&g(l.event,G,[B.xaxis],[B.yaxis],B.id,q),W.indexOf("event")>-1&&o.click(G,l.event))})},L.makeFramework=function(){var I=this,N=I.graphDiv,B=N._fullLayout,G="clip"+B._uid+I.id;I.clipDef=B._clips.append("clipPath").attr("id",G),I.clipRect=I.clipDef.append("rect"),I.framework=l.select(I.container).append("g").attr("class","geo "+I.id).call(s.setClipUrl,G,N),I.project=function(U){var H=I.projection(U);return H?[H[0]-I.xaxis._offset,H[1]-I.yaxis._offset]:[null,null]},I.xaxis={_id:"x",c2p:function(U){return I.project(U)[0]}},I.yaxis={_id:"y",c2p:function(U){return I.project(U)[1]}},I.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},f.setConvert(I.mockAxis,B)},L.saveViewInitial=function(I){var N=I.center||{},B=I.projection,G=B.rotation||{};this.viewInitial={fitbounds:I.fitbounds,"projection.scale":B.scale};var U;I._isScoped?U={"center.lon":N.lon,"center.lat":N.lat}:I._isClipped?U={"projection.rotation.lon":G.lon,"projection.rotation.lat":G.lat}:U={"center.lon":N.lon,"center.lat":N.lat,"projection.rotation.lon":G.lon},m.extendFlat(this.viewInitial,U)},L.render=function(I){this._hasMarkerAngles&&I?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},L._render=function(){var I=this.projection,N=I.getPath(),B;function G(H){var W=I(H.lonlat);return W?a(W[0],W[1]):null}function U(H){return I.isLonLatOverEdges(H.lonlat)?"none":null}for(B in this.basePaths)this.basePaths[B].attr("d",N);for(B in this.dataPaths)this.dataPaths[B].attr("d",function(H){return N(H.geojson)});for(B in this.dataPoints)this.dataPoints[B].attr("display",U).attr("transform",G)};function P(I){var N=I.projection,B=N.type,G=x.projNames[B];G="geo"+m.titleCase(G);for(var U=S[G]||w[G],H=U(),W=I._isSatellite?Math.acos(1/N.distance)*180/Math.PI:I._isClipped?x.lonaxisSpan[B]/2:null,V=["center","rotate","parallels","clipExtent"],$=function(ae){return ae?H:[]},Z=0;ZQ}else return!1},H.getPath=function(){return i().projection(H)},H.getBounds=function(ae){return H.getPath().bounds(ae)},H.precision(x.precision),I._isSatellite&&H.tilt(N.tilt).distance(N.distance),W&&H.clipAngle(W-x.clipPad),H}function d(I,N,B){var G=1e-6,U=2.5,H=N[I],W=x.scopeDefaults[N.scope],V,$,Z;I==="lonaxis"?(V=W.lonaxisRange,$=W.lataxisRange,Z=function(ne,ce){return[ne,ce]}):I==="lataxis"&&(V=W.lataxisRange,$=W.lonaxisRange,Z=function(ne,ce){return[ce,ne]});var q={type:"linear",range:[V[0],V[1]-G],tick0:H.tick0,dtick:H.dtick};f.setConvert(q,B);var ae=f.calcTicks(q);!N.isScoped&&I==="lonaxis"&&ae.pop();for(var ie=ae.length,fe=new Array(ie),Q=0;Q0&&U<0&&(U+=360);var V=(U-G)/4;return{type:"Polygon",coordinates:[[[G,H],[G,W],[G+V,W],[G+2*V,W],[G+3*V,W],[U,W],[U,H],[U-V,H],[U-2*V,H],[U-3*V,H],[G,H]]]}}},10816:function(D,O,t){var l=t(84888).KY,S=t(3400).counterRegex,i=t(43520),C="geo",w=S(C),v={};v[C]={valType:"subplotid",dflt:C,editType:"calc"};function m(s){for(var o=s._fullLayout,h=s.calcdata,f=o._subplots[C],u=0;u0&&$<0&&($+=360);var Z=(V+$)/2,q;if(!g){var ae=c?p.projRotate:[Z,0,0];q=s("projection.rotation.lon",ae[0]),s("projection.rotation.lat",ae[1]),s("projection.rotation.roll",ae[2]),L=s("showcoastlines",!c&&T),L&&(s("coastlinecolor"),s("coastlinewidth")),L=s("showocean",T?void 0:!1),L&&s("oceancolor")}var ie,fe;if(g?(ie=-96.6,fe=38.7):(ie=c?Z:q,fe=(W[0]+W[1])/2),s("center.lon",ie),s("center.lat",fe),x&&(s("projection.tilt"),s("projection.distance")),A){var Q=p.projParallels||[0,60];s("projection.parallels",Q)}s("projection.scale"),L=s("showland",T?void 0:!1),L&&s("landcolor"),L=s("showlakes",T?void 0:!1),L&&s("lakecolor"),L=s("showrivers",T?void 0:!1),L&&(s("rivercolor"),s("riverwidth")),L=s("showcountries",c&&b!=="usa"&&T),L&&(s("countrycolor"),s("countrywidth")),(b==="usa"||b==="north america"&&u===50)&&(s("showsubunits",T),s("subunitcolor"),s("subunitwidth")),c||(L=s("showframe",T),L&&(s("framecolor"),s("framewidth"))),s("bgcolor");var J=s("fitbounds");J&&(delete n.projection.scale,c?(delete n.center.lon,delete n.center.lat):M?(delete n.center.lon,delete n.center.lat,delete n.projection.rotation.lon,delete n.projection.rotation.lat,delete n.lonaxis.range,delete n.lataxis.range):(delete n.center.lon,delete n.center.lat,delete n.projection.rotation.lon))}},79248:function(D,O,t){var l=t(33428),S=t(3400),i=t(24040),C=Math.PI/180,w=180/Math.PI,v={cursor:"pointer"},m={cursor:"auto"};function a(d,k){var I=d.projection,N;return k._isScoped?N=o:k._isClipped?N=f:N=h,N(d,I)}D.exports=a;function n(d,k){return l.behavior.zoom().translate(k.translate()).scale(k.scale())}function s(d,k,I){var N=d.id,B=d.graphDiv,G=B.layout,U=G[N],H=B._fullLayout,W=H[N],V={},$={};function Z(q,ae){V[N+"."+q]=S.nestedProperty(U,q).get(),i.call("_storeDirectGUIEdit",G,H._preGUI,V);var ie=S.nestedProperty(W,q);ie.get()!==ae&&(ie.set(ae),S.nestedProperty(U,q).set(ae),$[N+"."+q]=ae)}I(Z),Z("projection.scale",k.scale()/d.fitScale),Z("fitbounds",!1),B.emit("plotly_relayout",$)}function o(d,k){var I=n(d,k);function N(){l.select(this).style(v)}function B(){k.scale(l.event.scale).translate(l.event.translate),d.render(!0);var H=k.invert(d.midPt);d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":k.scale()/d.fitScale,"geo.center.lon":H[0],"geo.center.lat":H[1]})}function G(H){var W=k.invert(d.midPt);H("center.lon",W[0]),H("center.lat",W[1])}function U(){l.select(this).style(m),s(d,k,G)}return I.on("zoomstart",N).on("zoom",B).on("zoomend",U),I}function h(d,k){var I=n(d,k),N=2,B,G,U,H,W,V,$,Z,q;function ae(K){return k.invert(K)}function ie(K){var ne=ae(K);if(!ne)return!0;var ce=k(ne);return Math.abs(ce[0]-K[0])>N||Math.abs(ce[1]-K[1])>N}function fe(){l.select(this).style(v),B=l.mouse(this),G=k.rotate(),U=k.translate(),H=G,W=ae(B)}function Q(){if(V=l.mouse(this),ie(B)){I.scale(k.scale()),I.translate(k.translate());return}k.scale(l.event.scale),k.translate([U[0],l.event.translate[1]]),W?ae(V)&&(Z=ae(V),$=[H[0]+(Z[0]-W[0]),G[1],G[2]],k.rotate($),H=$):(B=V,W=ae(B)),q=!0,d.render(!0);var K=k.rotate(),ne=k.invert(d.midPt);d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":k.scale()/d.fitScale,"geo.center.lon":ne[0],"geo.center.lat":ne[1],"geo.projection.rotation.lon":-K[0]})}function J(){l.select(this).style(m),q&&s(d,k,oe)}function oe(K){var ne=k.rotate(),ce=k.invert(d.midPt);K("projection.rotation.lon",-ne[0]),K("center.lon",ce[0]),K("center.lat",ce[1])}return I.on("zoomstart",fe).on("zoom",Q).on("zoomend",J),I}function f(d,k){k.rotate(),k.scale();var I=n(d,k),N=P(I,"zoomstart","zoom","zoomend"),B=0,G=I.on,U;I.on("zoomstart",function(){l.select(this).style(v);var Z=l.mouse(this),q=k.rotate(),ae=q,ie=k.translate(),fe=b(q);U=u(k,Z),G.call(I,"zoom",function(){var Q=l.mouse(this);if(k.scale(l.event.scale),!U)Z=Q,U=u(k,Z);else if(u(k,Q)){k.rotate(q).translate(ie);var J=u(k,Q),oe=E(U,J),K=M(p(fe,oe)),ne=g(K,U,ae);(!isFinite(ne[0])||!isFinite(ne[1])||!isFinite(ne[2]))&&(ne=ae),k.rotate(ne),ae=ne}W(N.of(this,arguments))}),H(N.of(this,arguments))}).on("zoomend",function(){l.select(this).style(m),G.call(I,"zoom",null),V(N.of(this,arguments)),s(d,k,$)}).on("zoom.redraw",function(){d.render(!0);var Z=k.rotate();d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":k.scale()/d.fitScale,"geo.projection.rotation.lon":-Z[0],"geo.projection.rotation.lat":-Z[1]})});function H(Z){B++||Z({type:"zoomstart"})}function W(Z){Z({type:"zoom"})}function V(Z){--B||Z({type:"zoomend"})}function $(Z){var q=k.rotate();Z("projection.rotation.lon",-q[0]),Z("projection.rotation.lat",-q[1])}return l.rebind(I,N,"on")}function u(d,k){var I=d.invert(k);return I&&isFinite(I[0])&&isFinite(I[1])&&R(I)}function b(d){var k=.5*d[0]*C,I=.5*d[1]*C,N=.5*d[2]*C,B=Math.sin(k),G=Math.cos(k),U=Math.sin(I),H=Math.cos(I),W=Math.sin(N),V=Math.cos(N);return[G*H*V+B*U*W,B*H*V-G*U*W,G*U*V+B*H*W,G*H*W-B*U*V]}function p(d,k){var I=d[0],N=d[1],B=d[2],G=d[3],U=k[0],H=k[1],W=k[2],V=k[3];return[I*U-N*H-B*W-G*V,I*H+N*U+B*V-G*W,I*W-N*V+B*U+G*H,I*V+N*W-B*H+G*U]}function E(d,k){if(!(!d||!k)){var I=L(d,k),N=Math.sqrt(T(I,I)),B=.5*Math.acos(Math.max(-1,Math.min(1,T(d,k)))),G=Math.sin(B)/N;return N&&[Math.cos(B),I[2]*G,-I[1]*G,I[0]*G]}}function g(d,k,I){var N=A(k,2,d[0]);N=A(N,1,d[1]),N=A(N,0,d[2]-I[2]);var B=k[0],G=k[1],U=k[2],H=N[0],W=N[1],V=N[2],$=Math.atan2(G,B)*w,Z=Math.sqrt(B*B+G*G),q,ae;Math.abs(W)>Z?(ae=(W>0?90:-90)-$,q=0):(ae=Math.asin(W/Z)*w-$,q=Math.sqrt(Z*Z-W*W));var ie=180-ae-2*$,fe=(Math.atan2(V,H)-Math.atan2(U,q))*w,Q=(Math.atan2(V,H)-Math.atan2(U,-q))*w,J=c(I[0],I[1],ae,fe),oe=c(I[0],I[1],ie,Q);return J<=oe?[ae,fe,I[2]]:[ie,Q,I[2]]}function c(d,k,I,N){var B=x(I-d),G=x(N-k);return Math.sqrt(B*B+G*G)}function x(d){return(d%360+540)%360-180}function A(d,k,I){var N=I*C,B=d.slice(),G=k===0?1:0,U=k===2?1:2,H=Math.cos(N),W=Math.sin(N);return B[G]=d[G]*H-d[U]*W,B[U]=d[U]*H+d[G]*W,B}function M(d){return[Math.atan2(2*(d[0]*d[1]+d[2]*d[3]),1-2*(d[1]*d[1]+d[2]*d[2]))*w,Math.asin(Math.max(-1,Math.min(1,2*(d[0]*d[2]-d[3]*d[1]))))*w,Math.atan2(2*(d[0]*d[3]+d[1]*d[2]),1-2*(d[2]*d[2]+d[3]*d[3]))*w]}function R(d){var k=d[0]*C,I=d[1]*C,N=Math.cos(I);return[N*Math.cos(k),N*Math.sin(k),Math.sin(I)]}function T(d,k){for(var I=0,N=0,B=d.length;NMath.abs(L)?(o.boxEnd[1]=o.boxStart[1]+Math.abs(T)*B*(L>=0?1:-1),o.boxEnd[1]g[3]&&(o.boxEnd[1]=g[3],o.boxEnd[0]=o.boxStart[0]+(g[3]-o.boxStart[1])/Math.abs(B))):(o.boxEnd[0]=o.boxStart[0]+Math.abs(L)/B*(T>=0?1:-1),o.boxEnd[0]g[2]&&(o.boxEnd[0]=g[2],o.boxEnd[1]=o.boxStart[1]+(g[2]-o.boxStart[0])*Math.abs(B)))}else I&&(o.boxEnd[0]=o.boxStart[0]),N&&(o.boxEnd[1]=o.boxStart[1])}else o.boxEnabled?(T=o.boxStart[0]!==o.boxEnd[0],L=o.boxStart[1]!==o.boxEnd[1],T||L?(T&&(P(0,o.boxStart[0],o.boxEnd[0]),a.xaxis.autorange=!1),L&&(P(1,o.boxStart[1],o.boxEnd[1]),a.yaxis.autorange=!1),a.relayoutCallback()):a.glplot.setDirty(),o.boxEnabled=!1,o.boxInited=!1):o.boxInited&&(o.boxInited=!1);break;case"pan":o.boxEnabled=!1,o.boxInited=!1,b?(o.panning||(o.dragStart[0]=p,o.dragStart[1]=E),Math.abs(o.dragStart[0]-p)1;function b(p){if(!u){var E=l.validate(o[p],v[p]);if(E)return o[p]}}C(o,h,f,{type:a,attributes:v,handleDefaults:n,fullLayout:h,font:h.font,fullData:f,getDfltFromLayout:b,autotypenumbersDflt:h.autotypenumbers,paper_bgcolor:h.paper_bgcolor,calendar:h.calendar})};function n(s,o,h,f){for(var u=h("bgcolor"),b=S.combine(u,f.paper_bgcolor),p=["up","center","eye"],E=0;E.999)&&(M="turntable")}else M="turntable";h("dragmode",M),h("hovermode",f.getDfltFromLayout("hovermode"))}},346:function(D,O,t){var l=t(86140),S=t(86968).u,i=t(92880).extendFlat,C=t(3400).counterRegex;function w(v,m,a){return{x:{valType:"number",dflt:v,editType:"camera"},y:{valType:"number",dflt:m,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}D.exports={_arrayAttrRegexps:[C("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:S({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:l,yaxis:l,zaxis:l,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(D,O,t){var l=t(43080),S=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var C=i.prototype;C.merge=function(v){for(var m=0;m<3;++m){var a=v[S[m]];if(!a.visible){this.enabled[m]=!1,this.drawSides[m]=!1;continue}this.enabled[m]=a.showspikes,this.colors[m]=l(a.spikecolor),this.drawSides[m]=a.spikesides,this.lineWidth[m]=a.spikethickness}};function w(v){var m=new i;return m.merge(v),m}D.exports=w},87152:function(D,O,t){D.exports=w;var l=t(54460),S=t(3400),i=["xaxis","yaxis","zaxis"];function C(v){for(var m=new Array(3),a=0;a<3;++a){for(var n=v[a],s=new Array(n.length),o=0;o/g," "));s[o]=b,h.tickmode=f}}m.ticks=s;for(var o=0;o<3;++o){.5*(v.glplot.bounds[0][o]+v.glplot.bounds[1][o]);for(var p=0;p<2;++p)m.bounds[p][o]=v.glplot.bounds[p][o]}v.contourLevels=C(s)}},94424:function(D){function O(l,S){var i=[0,0,0,0],C,w;for(C=0;C<4;++C)for(w=0;w<4;++w)i[w]+=l[4*C+w]*S[C];return i}function t(l,S){var i=O(l.projection,O(l.view,O(l.model,[S[0],S[1],S[2],1])));return i}D.exports=t},98432:function(D,O,t){var l=t(67792).gl_plot3d,S=l.createCamera,i=l.createScene,C=t(5408),w=t(89184),v=t(24040),m=t(3400),a=m.preserveDrawingBuffer(),n=t(54460),s=t(93024),o=t(43080),h=t(16576),f=t(94424),u=t(44728),b=t(9020),p=t(87152),E=t(19280).applyAutorangeOptions,g,c,x=!1;function A(B,G){var U=document.createElement("div"),H=B.container;this.graphDiv=B.graphDiv;var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.style.position="absolute",W.style.top=W.style.left="0px",W.style.width=W.style.height="100%",W.style["z-index"]=20,W.style["pointer-events"]="none",U.appendChild(W),this.svgContainer=W,U.id=B.id,U.style.position="absolute",U.style.top=U.style.left="0px",U.style.width=U.style.height="100%",H.appendChild(U),this.fullLayout=G,this.id=B.id||"scene",this.fullSceneLayout=G[this.id],this.plotArgs=[[],{},{}],this.axesOptions=u(G,G[this.id]),this.spikeOptions=b(G[this.id]),this.container=U,this.staticMode=!!B.staticPlot,this.pixelRatio=this.pixelRatio||B.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=v.getComponentMethod("annotations3d","convert"),this.drawAnnotations=v.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var M=A.prototype;M.prepareOptions=function(){var B=this,G={canvas:B.canvas,gl:B.gl,glOptions:{preserveDrawingBuffer:a,premultipliedAlpha:!0,antialias:!0},container:B.container,axes:B.axesOptions,spikes:B.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:B.camera,pixelRatio:B.pixelRatio};if(B.staticMode){if(!c&&(g=document.createElement("canvas"),c=C({canvas:g,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!c))throw new Error("error creating static canvas/context for image server");G.gl=c,G.canvas=g}return G};var R=!0;M.tryCreatePlot=function(){var B=this,G=B.prepareOptions(),U=!0;try{B.glplot=i(G)}catch{if(B.staticMode||!R||a)U=!1;else{m.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{a=G.glOptions.preserveDrawingBuffer=!0,B.glplot=i(G)}catch{a=G.glOptions.preserveDrawingBuffer=!1,U=!1}}}return R=!1,U},M.initializeGLCamera=function(){var B=this,G=B.fullSceneLayout.camera,U=G.projection.type==="orthographic";B.camera=S(B.container,{center:[G.center.x,G.center.y,G.center.z],eye:[G.eye.x,G.eye.y,G.eye.z],up:[G.up.x,G.up.y,G.up.z],_ortho:U,zoomMin:.01,zoomMax:100,mode:"orbit"})},M.initializeGLPlot=function(){var B=this;B.initializeGLCamera();var G=B.tryCreatePlot();if(!G)return h(B);B.traces={},B.make4thDimension();var U=B.graphDiv,H=U.layout,W=function(){var $={};return B.isCameraChanged(H)&&($[B.id+".camera"]=B.getCamera()),B.isAspectChanged(H)&&($[B.id+".aspectratio"]=B.glplot.getAspectratio(),H[B.id].aspectmode!=="manual"&&(B.fullSceneLayout.aspectmode=H[B.id].aspectmode=$[B.id+".aspectmode"]="manual")),$},V=function($){if($.fullSceneLayout.dragmode!==!1){var Z=W();$.saveLayout(H),$.graphDiv.emit("plotly_relayout",Z)}};return B.glplot.canvas&&(B.glplot.canvas.addEventListener("mouseup",function(){V(B)}),B.glplot.canvas.addEventListener("touchstart",function(){x=!0}),B.glplot.canvas.addEventListener("wheel",function($){if(U._context._scrollZoom.gl3d){if(B.camera._ortho){var Z=$.deltaX>$.deltaY?1.1:.9090909090909091,q=B.glplot.getAspectratio();B.glplot.setAspectratio({x:Z*q.x,y:Z*q.y,z:Z*q.z})}V(B)}},w?{passive:!1}:!1),B.glplot.canvas.addEventListener("mousemove",function(){if(B.fullSceneLayout.dragmode!==!1&&B.camera.mouseListener.buttons!==0){var $=W();B.graphDiv.emit("plotly_relayouting",$)}}),B.staticMode||B.glplot.canvas.addEventListener("webglcontextlost",function($){U&&U.emit&&U.emit("plotly_webglcontextlost",{event:$,layer:B.id})},!1)),B.glplot.oncontextloss=function(){B.recoverContext()},B.glplot.onrender=function(){B.render()},!0},M.render=function(){var B=this,G=B.graphDiv,U,H=B.svgContainer,W=B.container.getBoundingClientRect();G._fullLayout._calcInverseTransform(G);var V=G._fullLayout._invScaleX,$=G._fullLayout._invScaleY,Z=W.width*V,q=W.height*$;H.setAttributeNS(null,"viewBox","0 0 "+Z+" "+q),H.setAttributeNS(null,"width",Z),H.setAttributeNS(null,"height",q),p(B),B.glplot.axes.update(B.axesOptions);for(var ae=Object.keys(B.traces),ie=null,fe=B.glplot.selection,Q=0;Q")):U.type==="isosurface"||U.type==="volume"?(ce.valueLabel=n.hoverLabelText(B._mockAxis,B._mockAxis.d2l(fe.traceCoordinate[3]),U.valuehoverformat),he.push("value: "+ce.valueLabel),fe.textLabel&&he.push(fe.textLabel),le=he.join("
")):le=fe.textLabel;var xe={x:fe.traceCoordinate[0],y:fe.traceCoordinate[1],z:fe.traceCoordinate[2],data:K._input,fullData:K,curveNumber:K.index,pointNumber:ne};s.appendArrayPointValue(xe,K,ne),U._module.eventData&&(xe=K._module.eventData(xe,fe,K,{},ne));var Ee={points:[xe]};if(B.fullSceneLayout.hovermode){var Se=[];s.loneHover({trace:K,x:(.5+.5*oe[0]/oe[3])*Z,y:(.5-.5*oe[1]/oe[3])*q,xLabel:ce.xLabel,yLabel:ce.yLabel,zLabel:ce.zLabel,text:le,name:ie.name,color:s.castHoverOption(K,ne,"bgcolor")||ie.color,borderColor:s.castHoverOption(K,ne,"bordercolor"),fontFamily:s.castHoverOption(K,ne,"font.family"),fontSize:s.castHoverOption(K,ne,"font.size"),fontColor:s.castHoverOption(K,ne,"font.color"),nameLength:s.castHoverOption(K,ne,"namelength"),textAlign:s.castHoverOption(K,ne,"align"),hovertemplate:m.castOption(K,ne,"hovertemplate"),hovertemplateLabels:m.extendFlat({},xe,ce),eventData:[xe]},{container:H,gd:G,inOut_bbox:Se}),xe.bbox=Se[0]}fe.distance<5&&(fe.buttons||x)?G.emit("plotly_click",Ee):G.emit("plotly_hover",Ee),this.oldEventData=Ee}else s.loneUnhover(H),this.oldEventData&&G.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;B.drawAnnotations(B)},M.recoverContext=function(){var B=this;B.glplot.dispose();var G=function(){if(B.glplot.gl.isContextLost()){requestAnimationFrame(G);return}if(!B.initializeGLPlot()){m.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}B.plot.apply(B,B.plotArgs)};requestAnimationFrame(G)};var T=["xaxis","yaxis","zaxis"];function L(B,G,U){for(var H=B.fullSceneLayout,W=0;W<3;W++){var V=T[W],$=V.charAt(0),Z=H[V],q=G[$],ae=G[$+"calendar"],ie=G["_"+$+"length"];if(!m.isArrayOrTypedArray(q))U[0][W]=Math.min(U[0][W],0),U[1][W]=Math.max(U[1][W],ie-1);else for(var fe,Q=0;Q<(ie||q.length);Q++)if(m.isArrayOrTypedArray(q[Q]))for(var J=0;JK[1][$])K[0][$]=-1,K[1][$]=1;else{var ke=K[1][$]-K[0][$];K[0][$]-=ke/32,K[1][$]+=ke/32}if(ce=[K[0][$],K[1][$]],ce=E(ce,q),K[0][$]=ce[0],K[1][$]=ce[1],q.isReversed()){var Te=K[0][$];K[0][$]=K[1][$],K[1][$]=Te}}else ce=q.range,K[0][$]=q.r2l(ce[0]),K[1][$]=q.r2l(ce[1]);K[0][$]===K[1][$]&&(K[0][$]-=1,K[1][$]+=1),q.range=[K[0][$],K[1][$]],q.limitRange(),H.glplot.setBounds($,{min:q.range[0]*J[$],max:q.range[1]*J[$]})}var Ae,be=ie.aspectmode;if(be==="cube")Ae=[1,1,1];else if(be==="manual"){var Ie=ie.aspectratio;Ae=[Ie.x,Ie.y,Ie.z]}else if(be==="auto"||be==="data"){var Ue=[1,1,1];for($=0;$<3;++$){q=ie[T[$]],ae=q.type;var Ne=ne[ae];Ue[$]=Math.pow(Ne.acc,1/Ne.count)/J[$]}be==="data"||Math.max.apply(null,Ue)/Math.min.apply(null,Ue)<=4?Ae=Ue:Ae=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ie.aspectratio.x=fe.aspectratio.x=Ae[0],ie.aspectratio.y=fe.aspectratio.y=Ae[1],ie.aspectratio.z=fe.aspectratio.z=Ae[2],H.glplot.setAspectratio(ie.aspectratio),H.viewInitial.aspectratio||(H.viewInitial.aspectratio={x:ie.aspectratio.x,y:ie.aspectratio.y,z:ie.aspectratio.z}),H.viewInitial.aspectmode||(H.viewInitial.aspectmode=ie.aspectmode);var ze=ie.domain||null,$e=G._size||null;if(ze&&$e){var st=H.container.style;st.position="absolute",st.left=$e.l+ze.x[0]*$e.w+"px",st.top=$e.t+(1-ze.y[1])*$e.h+"px",st.width=$e.w*(ze.x[1]-ze.x[0])+"px",st.height=$e.h*(ze.y[1]-ze.y[0])+"px"}H.glplot.redraw()}},M.destroy=function(){var B=this;B.glplot&&(B.camera.mouseListener.enabled=!1,B.container.removeEventListener("wheel",B.camera.wheelListener),B.camera=null,B.glplot.dispose(),B.container.parentNode.removeChild(B.container),B.glplot=null)};function d(B){return[[B.eye.x,B.eye.y,B.eye.z],[B.center.x,B.center.y,B.center.z],[B.up.x,B.up.y,B.up.z]]}function k(B){return{up:{x:B.up[0],y:B.up[1],z:B.up[2]},center:{x:B.center[0],y:B.center[1],z:B.center[2]},eye:{x:B.eye[0],y:B.eye[1],z:B.eye[2]},projection:{type:B._ortho===!0?"orthographic":"perspective"}}}M.getCamera=function(){var B=this;return B.camera.view.recalcMatrix(B.camera.view.lastT()),k(B.camera)},M.setViewport=function(B){var G=this,U=B.camera;G.camera.lookAt.apply(this,d(U)),G.glplot.setAspectratio(B.aspectratio);var H=U.projection.type==="orthographic",W=G.camera._ortho;H!==W&&(G.glplot.redraw(),G.glplot.clearRGBA(),G.glplot.dispose(),G.initializeGLPlot())},M.isCameraChanged=function(B){var G=this,U=G.getCamera(),H=m.nestedProperty(B,G.id+".camera"),W=H.get();function V(ae,ie,fe,Q){var J=["up","center","eye"],oe=["x","y","z"];return ie[J[fe]]&&ae[J[fe]][oe[Q]]===ie[J[fe]][oe[Q]]}var $=!1;if(W===void 0)$=!0;else{for(var Z=0;Z<3;Z++)for(var q=0;q<3;q++)if(!V(U,W,Z,q)){$=!0;break}(!W.projection||U.projection&&U.projection.type!==W.projection.type)&&($=!0)}return $},M.isAspectChanged=function(B){var G=this,U=G.glplot.getAspectratio(),H=m.nestedProperty(B,G.id+".aspectratio"),W=H.get();return W===void 0||W.x!==U.x||W.y!==U.y||W.z!==U.z},M.saveLayout=function(B){var G=this,U=G.fullLayout,H,W,V,$,Z,q,ae=G.isCameraChanged(B),ie=G.isAspectChanged(B),fe=ae||ie;if(fe){var Q={};if(ae&&(H=G.getCamera(),W=m.nestedProperty(B,G.id+".camera"),V=W.get(),Q[G.id+".camera"]=V),ie&&($=G.glplot.getAspectratio(),Z=m.nestedProperty(B,G.id+".aspectratio"),q=Z.get(),Q[G.id+".aspectratio"]=q),v.call("_storeDirectGUIEdit",B,U._preGUI,Q),ae){W.set(H);var J=m.nestedProperty(U,G.id+".camera");J.set(H)}if(ie){Z.set($);var oe=m.nestedProperty(U,G.id+".aspectratio");oe.set($),G.glplot.redraw()}}return fe},M.updateFx=function(B,G){var U=this,H=U.camera;if(H)if(B==="orbit")H.mode="orbit",H.keyBindingMode="rotate";else if(B==="turntable"){H.up=[0,0,1],H.mode="turntable",H.keyBindingMode="rotate";var W=U.graphDiv,V=W._fullLayout,$=U.fullSceneLayout.camera,Z=$.up.x,q=$.up.y,ae=$.up.z;if(ae/Math.sqrt(Z*Z+q*q+ae*ae)<.999){var ie=U.id+".camera.up",fe={x:0,y:0,z:1},Q={};Q[ie]=fe;var J=W.layout;v.call("_storeDirectGUIEdit",J,V._preGUI,Q),$.up=fe,m.nestedProperty(J,ie).set(fe)}}else H.keyBindingMode=B;U.fullSceneLayout.hovermode=G};function I(B,G,U){for(var H=0,W=U-1;H0)for(var Z=255/$,q=0;q<3;++q)B[V+q]=Math.min(Z*B[V+q],255)}}M.toImage=function(B){var G=this;B||(B="png"),G.staticMode&&G.container.appendChild(g),G.glplot.redraw();var U=G.glplot.gl,H=U.drawingBufferWidth,W=U.drawingBufferHeight;U.bindFramebuffer(U.FRAMEBUFFER,null);var V=new Uint8Array(H*W*4);U.readPixels(0,0,H,W,U.RGBA,U.UNSIGNED_BYTE,V),I(V,H,W),N(V,H,W);var $=document.createElement("canvas");$.width=H,$.height=W;var Z=$.getContext("2d",{willReadFrequently:!0}),q=Z.createImageData(H,W);q.data.set(V),Z.putImageData(q,0,0);var ae;switch(B){case"jpeg":ae=$.toDataURL("image/jpeg");break;case"webp":ae=$.toDataURL("image/webp");break;default:ae=$.toDataURL("image/png")}return G.staticMode&&G.container.removeChild(g),ae},M.setConvert=function(){for(var B=this,G=0;G<3;G++){var U=B.fullSceneLayout[T[G]];n.setConvert(U,B.fullLayout),U.setScale=m.noop}},M.make4thDimension=function(){var B=this,G=B.graphDiv,U=G._fullLayout;B._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},n.setConvert(B._mockAxis,U)},D.exports=A},52094:function(D){D.exports=function(t,l,S,i){i=i||t.length;for(var C=new Array(i),w=0;wOpenStreetMap contributors',C=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),v=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),m={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:C,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:C,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:v,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},a=l(m);D.exports={requiredVersion:S,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:m,styleValuesNonMapbox:a,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+S+"."].join(` +`+I(Z.dayMonthYear,U,V,$);return I(H,U,V,$)};var G=3*m;O.incrementMonth=function(U,H,W){W=E(W)&&W;var V=C(U,m);if(U=Math.round(U-V),W)try{var $=Math.round(U/m)+o,Z=h.getComponentMethod("calendars","getCal")(W),q=Z.fromJD($);return H%12?Z.add(q,H,"m"):Z.add(q,H/12,"y"),(q.toJD()-o)*m+V}catch{i.error("invalid ms "+U+" in calendar "+W)}var ae=new Date(U+G);return ae.setUTCMonth(ae.getUTCMonth()+H)+V-G},O.findExactDates=function(U,H){for(var W=0,V=0,$=0,Z=0,q,ae,ie=E(H)&&h.getComponentMethod("calendars","getCal")(H),fe=0;fe0&&B[G+1][0]<0)return G;return null}switch(T==="RUS"||T==="FJI"?P=function(B){var G;if(N(B)===null)G=B;else for(G=new Array(B.length),I=0;IG?U[H++]=[B[I][0]+360,B[I][1]]:I===G?(U[H++]=B[I],U[H++]=[B[I][0],-90]):U[H++]=B[I];var W=s.tester(U);W.pts.pop(),L.push(W)}:P=function(B){L.push(s.tester(B))},M.type){case"MultiPolygon":for(d=0;dL&&(L=k,R=d)}else R=M;return C.default(R).geometry.coordinates}function c(A){var M=window.PlotlyGeoAssets||{},R=[];function T(I){return new Promise(function(N,B){l.json(I,function(G,U){if(G){delete M[I];var H=G.status===404?'GeoJSON at URL "'+I+'" does not exist.':"Unexpected error while fetching from "+I;return B(new Error(H))}return M[I]=U,N(U)})})}function L(I){return new Promise(function(N,B){var G=0,U=setInterval(function(){if(M[I]&&M[I]!=="pending")return clearInterval(U),N(M[I]);if(G>100)return clearInterval(U),B("Unexpected error while fetching from "+I);G++},50)})}for(var P=0;P0&&(w.push(v),v=[])}return v.length>0&&w.push(v),w},O.makeLine=function(S){return S.length===1?{type:"LineString",coordinates:S[0]}:{type:"MultiLineString",coordinates:S}},O.makePolygon=function(S){if(S.length===1)return{type:"Polygon",coordinates:S};for(var i=new Array(S.length),C=0;C1||M<0||M>1?null:{x:m+b*M,y:a+g*M}}O.segmentDistance=function(a,n,s,o,h,f,u,b){if(S(a,n,s,o,h,f,u,b))return 0;var p=s-a,E=o-n,g=u-h,c=b-f,y=p*p+E*E,A=g*g+c*c,M=Math.min(i(p,E,y,h-a,f-n),i(p,E,y,u-a,b-n),i(g,c,A,a-h,n-f),i(g,c,A,s-h,o-f));return Math.sqrt(M)};function i(m,a,n,s,o){var h=s*m+o*a;if(h<0)return s*s+o*o;if(h>n){var f=s-m,u=o-a;return f*f+u*u}else{var b=s*a-o*m;return b*b/n}}var C,w,v;O.getTextLocation=function(a,n,s,o){if((a!==w||o!==v)&&(C={},w=a,v=o),C[s])return C[s];var h=a.getPointAtLength(l(s-o/2,n)),f=a.getPointAtLength(l(s+o/2,n)),u=Math.atan((f.y-h.y)/(f.x-h.x)),b=a.getPointAtLength(l(s,n)),p=(b.x*4+h.x+f.x)/6,E=(b.y*4+h.y+f.y)/6,g={x:p,y:E,theta:u};return C[s]=g,g},O.clearLocationCache=function(){w=null},O.getVisibleSegment=function(a,n,s){var o=n.left,h=n.right,f=n.top,u=n.bottom,b=0,p=a.getTotalLength(),E=p,g,c;function y(M){var R=a.getPointAtLength(M);M===0?g=R:M===p&&(c=R);var T=R.xh?R.x-h:0,L=R.yu?R.y-u:0;return Math.sqrt(T*T+L*L)}for(var A=y(b);A;){if(b+=A+s,b>E)return;A=y(b)}for(A=y(E);A;){if(E-=A+s,b>E)return;A=y(E)}return{min:b,max:E,len:E-b,total:p,isClosed:b===0&&E===p&&Math.abs(g.x-c.x)<.1&&Math.abs(g.y-c.y)<.1}},O.findPointOnPath=function(a,n,s,o){o=o||{};for(var h=o.pathLength||a.getTotalLength(),f=o.tolerance||.001,u=o.iterationLimit||30,b=a.getPointAtLength(0)[s]>a.getPointAtLength(h)[s]?-1:1,p=0,E=0,g=h,c,y,A;p0?g=c:E=c,p++}return y}},33040:function(D,O,t){var l=t(38248),S=t(49760),i=t(72160),C=t(8932),w=t(22548).defaultLine,v=t(38116).isArrayOrTypedArray,m=i(w),a=1;function n(u,b){var p=u;return p[3]*=b,p}function s(u){if(l(u))return m;var b=i(u);return b.length?b:m}function o(u){return l(u)?u:a}function h(u,b,p){var E=u.color;E&&E._inputArray&&(E=E._inputArray);var g=v(E),c=v(b),y=C.extractOpts(u),A=[],M,R,T,L,P;if(y.colorscale!==void 0?M=C.makeColorScaleFuncFromTrace(u):M=s,g?R=function(k,I){return k[I]===void 0?m:i(M(k[I]))}:R=s,c?T=function(k,I){return k[I]===void 0?a:o(k[I])}:T=o,g||c)for(var d=0;d1?(S*t+S*l)/S:t+l,C=String(i).length;if(C>16){var w=String(l).length,v=String(t).length;if(C>=v+w){var m=parseFloat(i).toPrecision(12);m.indexOf("e+")===-1&&(i=+m)}}return i}},3400:function(D,O,t){var l=t(33428),S=t(94336).E9,i=t(57624).E9,C=t(38248),w=t(39032),v=w.FP_SAFE,m=-v,a=w.BADNUM,n=D.exports={};n.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var s={};n.warnBadFormat=function(ne){var ce=String(ne);s[ce]||(s[ce]=1,n.warn('encountered bad format: "'+ce+'"'))},n.noFormat=function(ne){return String(ne)},n.numberFormat=function(ne){var ce;try{ce=i(n.adjustFormat(ne))}catch{return n.warnBadFormat(ne),n.noFormat}return ce},n.nestedProperty=t(22296),n.keyedContainer=t(37804),n.relativeAttr=t(23193),n.isPlainObject=t(63620),n.toLogRange=t(36896),n.relinkPrivateKeys=t(51528);var o=t(38116);n.isArrayBuffer=o.isArrayBuffer,n.isTypedArray=o.isTypedArray,n.isArrayOrTypedArray=o.isArrayOrTypedArray,n.isArray1D=o.isArray1D,n.ensureArray=o.ensureArray,n.concat=o.concat,n.maxRowLength=o.maxRowLength,n.minRowLength=o.minRowLength;var h=t(20435);n.mod=h.mod,n.modHalf=h.modHalf;var f=t(63064);n.valObjectMeta=f.valObjectMeta,n.coerce=f.coerce,n.coerce2=f.coerce2,n.coerceFont=f.coerceFont,n.coercePattern=f.coercePattern,n.coerceHoverinfo=f.coerceHoverinfo,n.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,n.validate=f.validate;var u=t(67555);n.dateTime2ms=u.dateTime2ms,n.isDateTime=u.isDateTime,n.ms2DateTime=u.ms2DateTime,n.ms2DateTimeLocal=u.ms2DateTimeLocal,n.cleanDate=u.cleanDate,n.isJSDate=u.isJSDate,n.formatDate=u.formatDate,n.incrementMonth=u.incrementMonth,n.dateTick0=u.dateTick0,n.dfltRange=u.dfltRange,n.findExactDates=u.findExactDates,n.MIN_MS=u.MIN_MS,n.MAX_MS=u.MAX_MS;var b=t(14952);n.findBin=b.findBin,n.sorterAsc=b.sorterAsc,n.sorterDes=b.sorterDes,n.distinctVals=b.distinctVals,n.roundUp=b.roundUp,n.sort=b.sort,n.findIndexOfMin=b.findIndexOfMin,n.sortObjectKeys=t(95376);var p=t(63084);n.aggNums=p.aggNums,n.len=p.len,n.mean=p.mean,n.median=p.median,n.midRange=p.midRange,n.variance=p.variance,n.stdev=p.stdev,n.interp=p.interp;var E=t(52248);n.init2dArray=E.init2dArray,n.transposeRagged=E.transposeRagged,n.dot=E.dot,n.translationMatrix=E.translationMatrix,n.rotationMatrix=E.rotationMatrix,n.rotationXYMatrix=E.rotationXYMatrix,n.apply3DTransform=E.apply3DTransform,n.apply2DTransform=E.apply2DTransform,n.apply2DTransform2=E.apply2DTransform2,n.convertCssMatrix=E.convertCssMatrix,n.inverseTransformMatrix=E.inverseTransformMatrix;var g=t(11864);n.deg2rad=g.deg2rad,n.rad2deg=g.rad2deg,n.angleDelta=g.angleDelta,n.angleDist=g.angleDist,n.isFullCircle=g.isFullCircle,n.isAngleInsideSector=g.isAngleInsideSector,n.isPtInsideSector=g.isPtInsideSector,n.pathArc=g.pathArc,n.pathSector=g.pathSector,n.pathAnnulus=g.pathAnnulus;var c=t(98308);n.isLeftAnchor=c.isLeftAnchor,n.isCenterAnchor=c.isCenterAnchor,n.isRightAnchor=c.isRightAnchor,n.isTopAnchor=c.isTopAnchor,n.isMiddleAnchor=c.isMiddleAnchor,n.isBottomAnchor=c.isBottomAnchor;var y=t(92348);n.segmentsIntersect=y.segmentsIntersect,n.segmentDistance=y.segmentDistance,n.getTextLocation=y.getTextLocation,n.clearLocationCache=y.clearLocationCache,n.getVisibleSegment=y.getVisibleSegment,n.findPointOnPath=y.findPointOnPath;var A=t(92880);n.extendFlat=A.extendFlat,n.extendDeep=A.extendDeep,n.extendDeepAll=A.extendDeepAll,n.extendDeepNoArrays=A.extendDeepNoArrays;var M=t(24248);n.log=M.log,n.warn=M.warn,n.error=M.error;var R=t(53756);n.counterRegex=R.counter;var T=t(91200);n.throttle=T.throttle,n.throttleDone=T.done,n.clearThrottle=T.clear;var L=t(52200);n.getGraphDiv=L.getGraphDiv,n.isPlotDiv=L.isPlotDiv,n.removeElement=L.removeElement,n.addStyleRule=L.addStyleRule,n.addRelatedStyleRule=L.addRelatedStyleRule,n.deleteRelatedStyleRule=L.deleteRelatedStyleRule,n.getFullTransformMatrix=L.getFullTransformMatrix,n.getElementTransformMatrix=L.getElementTransformMatrix,n.getElementAndAncestors=L.getElementAndAncestors,n.equalDomRects=L.equalDomRects,n.clearResponsive=t(75352),n.preserveDrawingBuffer=t(34296),n.makeTraceGroups=t(30988),n._=t(98356),n.notifier=t(41792),n.filterUnique=t(68944),n.filterVisible=t(43880),n.pushUnique=t(52416),n.increment=t(1396),n.cleanNumber=t(54037),n.ensureNumber=function(ce){return C(ce)?(ce=Number(ce),ce>v||ce=ce?!1:C(ne)&&ne>=0&&ne%1===0},n.noop=t(16628),n.identity=t(35536),n.repeat=function(ne,ce){for(var re=new Array(ce),ee=0;eere?Math.max(re,Math.min(ce,ne)):Math.max(ce,Math.min(re,ne))},n.bBoxIntersect=function(ne,ce,re){return re=re||0,ne.left<=ce.right+re&&ce.left<=ne.right+re&&ne.top<=ce.bottom+re&&ce.top<=ne.bottom+re},n.simpleMap=function(ne,ce,re,ee,de){for(var le=ne.length,he=new Array(le),xe=0;xe=Math.pow(2,re)?de>10?(n.warn("randstr failed uniqueness"),he):ne(ce,re,ee,(de||0)+1):he},n.OptionControl=function(ne,ce){ne||(ne={}),ce||(ce="opt");var re={};return re.optionList=[],re._newoption=function(ee){ee[ce]=ne,re[ee.name]=ee,re.optionList.push(ee)},re["_"+ce]=ne,re},n.smooth=function(ne,ce){if(ce=Math.round(ce)||0,ce<2)return ne;var re=ne.length,ee=2*re,de=2*ce-1,le=new Array(de),he=new Array(re),xe,Ee,Se,ke;for(xe=0;xe=ee&&(Se-=ee*Math.floor(Se/ee)),Se<0?Se=-1-Se:Se>=re&&(Se=ee-1-Se),ke+=ne[Se]*le[Ee];he[xe]=ke}return he},n.syncOrAsync=function(ne,ce,re){var ee,de;function le(){return n.syncOrAsync(ne,ce,re)}for(;ne.length;)if(de=ne.splice(0,1)[0],ee=de(ce),ee&&ee.then)return ee.then(le);return re&&re(ce)},n.stripTrailingSlash=function(ne){return ne.substr(-1)==="/"?ne.substr(0,ne.length-1):ne},n.noneOrAll=function(ne,ce,re){if(ne){var ee=!1,de=!0,le,he;for(le=0;le0?de:0})},n.fillArray=function(ne,ce,re,ee){if(ee=ee||n.identity,n.isArrayOrTypedArray(ne))for(var de=0;de1?de+he[1]:"";if(le&&(he.length>1||xe.length>4||re))for(;ee.test(xe);)xe=xe.replace(ee,"$1"+le+"$2");return xe+Ee},n.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var H=/^\w*$/;n.templateString=function(ne,ce){var re={};return ne.replace(n.TEMPLATE_STRING_REGEX,function(ee,de){var le;return H.test(de)?le=ce[de]:(re[de]=re[de]||n.nestedProperty(ce,de).get,le=re[de]()),n.isValidTextValue(le)?le:""})};var W={max:10,count:0,name:"hovertemplate"};n.hovertemplateString=function(){return ie.apply(W,arguments)};var V={max:10,count:0,name:"texttemplate"};n.texttemplateString=function(){return ie.apply(V,arguments)};var $=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Z(ne){var ce=ne.match($);return ce?{key:ce[1],op:ce[2],number:Number(ce[3])}:{key:ne,op:null,number:null}}var q={max:10,count:0,name:"texttemplate",parseMultDiv:!0};n.texttemplateStringForShapes=function(){return ie.apply(q,arguments)};var ae=/^[:|\|]/;function ie(ne,ce,re){var ee=this,de=arguments;ce||(ce={});var le={};return ne.replace(n.TEMPLATE_STRING_REGEX,function(he,xe,Ee){var Se=xe==="xother"||xe==="yother",ke=xe==="_xother"||xe==="_yother",Te=xe==="_xother_"||xe==="_yother_",Ae=xe==="xother_"||xe==="yother_",be=Se||ke||Ae||Te,Ie=xe;(ke||Te)&&(Ie=Ie.substring(1)),(Ae||Te)&&(Ie=Ie.substring(0,Ie.length-1));var Ue=null,Ne=null;if(ee.parseMultDiv){var ze=Z(Ie);Ie=ze.key,Ue=ze.op,Ne=ze.number}var $e;if(be){if($e=ce[Ie],$e===void 0)return""}else{var st,vt;for(vt=3;vt=fe&&he<=Q,Se=xe>=fe&&xe<=Q;if(Ee&&(ee=10*ee+he-fe),Se&&(de=10*de+xe-fe),!Ee||!Se){if(ee!==de)return ee-de;if(he!==xe)return he-xe}}return de-ee};var J=2e9;n.seedPseudoRandom=function(){J=2e9},n.pseudoRandom=function(){var ne=J;return J=(69069*J+1)%4294967296,Math.abs(J-ne)<429496729?n.pseudoRandom():J/4294967296},n.fillText=function(ne,ce,re){var ee=Array.isArray(re)?function(he){re.push(he)}:function(he){re.text=he},de=n.extractOption(ne,ce,"htx","hovertext");if(n.isValidTextValue(de))return ee(de);var le=n.extractOption(ne,ce,"tx","text");if(n.isValidTextValue(le))return ee(le)},n.isValidTextValue=function(ne){return ne||ne===0},n.formatPercent=function(ne,ce){ce=ce||0;for(var re=(Math.round(100*ne*Math.pow(10,ce))*Math.pow(.1,ce)).toFixed(ce)+"%",ee=0;ee1&&(Se=1):Se=0,n.strTranslate(de-Se*(re+he),le-Se*(ee+xe))+n.strScale(Se)+(Ee?"rotate("+Ee+(ce?"":" "+re+" "+ee)+")":"")},n.setTransormAndDisplay=function(ne,ce){ne.attr("transform",n.getTextTransform(ce)),ne.style("display",ce.scale?null:"none")},n.ensureUniformFontSize=function(ne,ce){var re=n.extendFlat({},ce);return re.size=Math.max(ce.size,ne._fullLayout.uniformtext.minsize||0),re},n.join2=function(ne,ce,re){var ee=ne.length;return ee>1?ne.slice(0,-1).join(ce)+re+ne[ee-1]:ne.join(ce)},n.bigFont=function(ne){return Math.round(1.2*ne)};var oe=n.getFirefoxVersion(),K=oe!==null&&oe<86;n.getPositionFromD3Event=function(){return K?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},63620:function(D){D.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}},37804:function(D,O,t){var l=t(22296),S=/^\w*$/,i=0,C=1,w=2,v=3,m=4;D.exports=function(n,s,o,h){o=o||"name",h=h||"value";var f,u,b,p={};s&&s.length?(b=l(n,s),u=b.get()):u=n,s=s||"";var E={};if(u)for(f=0;f2)return p[A]=p[A]|w,c.set(y,null);if(g){for(f=A;f1){var w=["LOG:"];for(C=0;C1){var v=[];for(C=0;C"),"long")}},i.warn=function(){var C;if(l.logging>0){var w=["WARN:"];for(C=0;C0){var v=[];for(C=0;C"),"stick")}},i.error=function(){var C;if(l.logging>0){var w=["ERROR:"];for(C=0;C0){var v=[];for(C=0;C"),"stick")}}},30988:function(D,O,t){var l=t(33428);D.exports=function(i,C,w){var v=i.selectAll("g."+w.replace(/\s/g,".")).data(C,function(a){return a[0].trace.uid});v.exit().remove(),v.enter().append("g").attr("class",w),v.order();var m=i.classed("rangeplot")?"nodeRangePlot3":"node3";return v.each(function(a){a[0][m]=l.select(this)}),v}},52248:function(D,O,t){var l=t(36524);O.init2dArray=function(S,i){for(var C=new Array(S),w=0;wS/2?l-Math.round(l/S)*S:l}D.exports={mod:O,modHalf:t}},22296:function(D,O,t){var l=t(38248),S=t(38116).isArrayOrTypedArray;D.exports=function(h,f){if(l(f))f=String(f);else if(typeof f!="string"||f.substr(f.length-4)==="[-1]")throw"bad property string";var u=f.split("."),b,p,E,g;for(g=0;g/g),u=0;ua||A===S||As||c&&f(g))}function b(g,c){var y=g[0],A=g[1];if(y===S||ya||A===S||As)return!1;var M=v.length,R=v[0][0],T=v[0][1],L=0,P,d,k,I,N;for(P=1;PMath.max(d,R)||A>Math.max(k,T)))if(Ao||Math.abs(l(b,f))>a)return!0;return!1},i.filter=function(w,v){var m=[w[0]],a=0,n=0;function s(h){w.push(h);var f=m.length,u=a;m.splice(n+1);for(var b=u+1;b1){var o=w.pop();s(o)}return{addPt:s,raw:w,filtered:m}}},5048:function(D,O,t){var l=t(16576),S=t(28624);D.exports=function(C,w,v){var m=C._fullLayout,a=!0;return m._glcanvas.each(function(n){if(n.regl){n.regl.preloadCachedCode(v);return}if(!(n.pick&&!m._has("parcoords"))){try{n.regl=S({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:C._context.plotGlPixelRatio||t.g.devicePixelRatio,extensions:w||[],cachedCode:v||{}})}catch{a=!1}n.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){C&&C.emit&&C.emit("plotly_webglcontextlost",{event:s,layer:n.key})},!1)}}),a||l({container:m._glcontainer.node()}),a}},34296:function(D,O,t){var l=t(38248),S=t(25928);D.exports=function(w){var v;if(w&&w.hasOwnProperty("userAgent")?v=w.userAgent:v=i(),typeof v!="string")return!0;var m=S({ua:{headers:{"user-agent":v}},tablet:!0,featureDetect:!1});if(!m)for(var a=v.split(" "),n=1;n-1;o--){var h=a[o];if(h.substr(0,8)==="Version/"){var f=h.substr(8).split(".")[0];if(l(f)&&(f=+f),f>=13)return!0}}}return m};function i(){var C;return typeof navigator<"u"&&(C=navigator.userAgent),C&&C.headers&&typeof C.headers["user-agent"]=="string"&&(C=C.headers["user-agent"]),C}},52416:function(D){D.exports=function(t,l){if(l instanceof RegExp){for(var S=l.toString(),i=0;iS.queueLength&&(w.undoQueue.queue.shift(),w.undoQueue.index--)},C.startSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!0,w.undoQueue.beginSequence=!0},C.stopSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!1,w.undoQueue.beginSequence=!1},C.undo=function(v){var m,a;if(!(v.undoQueue===void 0||isNaN(v.undoQueue.index)||v.undoQueue.index<=0)){for(v.undoQueue.index--,m=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,a=0;a=v.undoQueue.queue.length)){for(m=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,a=0;a1?(o[u-1]-o[0])/(u-1):1,E,g;for(p>=0?g=h?v:m:g=h?n:a,s+=p*w*(h?-1:1)*(p>=0?1:-1);f90&&S.log("Long binary search..."),f-1};function v(s,o){return so}function n(s,o){return s>=o}O.sorterAsc=function(s,o){return s-o},O.sorterDes=function(s,o){return o-s},O.distinctVals=function(s){var o=s.slice();o.sort(O.sorterAsc);var h;for(h=o.length-1;h>-1&&o[h]===C;h--);for(var f=o[h]-o[0]||1,u=f/(h||1)/1e4,b=[],p,E=0;E<=h;E++){var g=o[E],c=g-p;p===void 0?(b.push(g),p=g):c>u&&(f=Math.min(f,c),b.push(g),p=g)}return{vals:b,minDiff:f}},O.roundUp=function(s,o,h){for(var f=0,u=o.length-1,b,p=0,E=h?0:1,g=h?1:0,c=h?Math.ceil:Math.floor;f0&&(f=1),h&&f)return s.sort(o)}return f?s:s.reverse()},O.findIndexOfMin=function(s,o){o=o||i;for(var h=1/0,f,u=0;uw.length)&&(v=w.length),l(C)||(C=!1),S(w[0])){for(a=new Array(v),m=0;mi.length-1)return i[i.length-1];var w=C%1;return w*i[Math.ceil(C)]+(1-w)*i[Math.floor(C)]}},43080:function(D,O,t){var l=t(72160);function S(i){return i?l(i):[0,0,0,1]}D.exports=S},9188:function(D,O,t){var l=t(2264),S=t(43616),i=t(3400),C=null;function w(){if(C!==null)return C;C=!1;var v=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!v){var m=Array.from(l.CSS_DECLARATIONS).reverse(),a=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof a=="function")C=m.some(function(h){return a.apply(null,h)});else{var n=S.tester.append("image").attr("style",l.STYLE),s=window.getComputedStyle(n.node()),o=s.imageRendering;C=m.some(function(h){var f=h[1];return o===f||o===f.toLowerCase()}),n.remove()}}return C}D.exports=w},72736:function(D,O,t){var l=t(33428),S=t(3400),i=S.strTranslate,C=t(9616),w=t(84284).LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;O.convertToTspans=function(W,V,$){var Z=W.text(),q=!W.attr("data-notex")&&V&&V._context.typesetMath&&typeof MathJax<"u"&&Z.match(v),ae=l.select(W.node().parentNode);if(ae.empty())return;var ie=W.attr("class")?W.attr("class").split(" ")[0]:"text";ie+="-math",ae.selectAll("svg."+ie).remove(),ae.selectAll("g."+ie+"-group").remove(),W.style("display",null).attr({"data-unformatted":Z,"data-math":"N"});function fe(){ae.empty()||(ie=W.attr("class")+"-math",ae.select("svg."+ie).remove()),W.text("").style("white-space","pre");var Q=B(W.node(),Z);Q&&W.style("pointer-events","all"),O.positionText(W),$&&$.call(W)}return q?(V&&V._promises||[]).push(new Promise(function(Q){W.style("display","none");var J=parseInt(W.node().style.fontSize,10),oe={fontSize:J};o(q[2],oe,function(K,ne,ce){ae.selectAll("svg."+ie).remove(),ae.selectAll("g."+ie+"-group").remove();var re=K&&K.select("svg");if(!re||!re.node()){fe(),Q();return}var ee=ae.append("g").classed(ie+"-group",!0).attr({"pointer-events":"none","data-unformatted":Z,"data-math":"Y"});ee.node().appendChild(re.node()),ne&&ne.node()&&re.node().insertBefore(ne.node().cloneNode(!0),re.node().firstChild);var de=ce.width,le=ce.height;re.attr({class:ie,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var he=W.node().style.fill||"black",xe=re.select("g");xe.attr({fill:he,stroke:he});var Ee=xe.node().getBoundingClientRect(),Se=Ee.width,ke=Ee.height;(Se>de||ke>le)&&(re.style("overflow","hidden"),Ee=re.node().getBoundingClientRect(),Se=Ee.width,ke=Ee.height);var Te=+W.attr("x"),Ae=+W.attr("y"),be=J||W.node().getBoundingClientRect().height,Ie=-be/4;if(ie[0]==="y")ee.attr({transform:"rotate("+[-90,Te,Ae]+")"+i(-Se/2,Ie-ke/2)});else if(ie[0]==="l")Ae=Ie-ke/2;else if(ie[0]==="a"&&ie.indexOf("atitle")!==0)Te=0,Ae=Ie;else{var Ue=W.attr("text-anchor");Te=Te-Se*(Ue==="middle"?.5:Ue==="end"?1:0),Ae=Ae+Ie-ke/2}re.attr({x:Te,y:Ae}),$&&$.call(W,ee),Q(ee)})})):fe(),W};var m=/(<|<|<)/g,a=/(>|>|>)/g;function n(W){return W.replace(m,"\\lt ").replace(a,"\\gt ")}var s=[["$","$"],["\\(","\\)"]];function o(W,V,$){var Z=parseInt((MathJax.version||"").split(".")[0]);if(Z!==2&&Z!==3){S.warn("No MathJax version:",MathJax.version);return}var q,ae,ie,fe,Q=function(){return ae=S.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:s},displayAlign:"left"})},J=function(){ae=S.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=s},oe=function(){if(q=MathJax.Hub.config.menuSettings.renderer,q!=="SVG")return MathJax.Hub.setRenderer("SVG")},K=function(){q=MathJax.config.startup.output,q!=="svg"&&(MathJax.config.startup.output="svg")},ne=function(){var he="math-output-"+S.randstr({},64);fe=l.select("body").append("div").attr({id:he}).style({visibility:"hidden",position:"absolute","font-size":V.fontSize+"px"}).text(n(W));var xe=fe.node();return Z===2?MathJax.Hub.Typeset(xe):MathJax.typeset([xe])},ce=function(){var he=fe.select(Z===2?".MathJax_SVG":".MathJax"),xe=!he.empty()&&fe.select("svg").node();if(!xe)S.log("There was an error in the tex syntax.",W),$();else{var Ee=xe.getBoundingClientRect(),Se;Z===2?Se=l.select("body").select("#MathJax_SVG_glyphs"):Se=he.select("defs"),$(he,Se,Ee)}fe.remove()},re=function(){if(q!=="SVG")return MathJax.Hub.setRenderer(q)},ee=function(){q!=="svg"&&(MathJax.config.startup.output=q)},de=function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(ae)},le=function(){MathJax.config=ae};Z===2?MathJax.Hub.Queue(Q,oe,ne,ce,re,de):Z===3&&(J(),K(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){ne(),ce(),ee(),le()}))}var h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},f={sub:"0.3em",sup:"-0.6em"},u={sub:"-0.21em",sup:"0.42em"},b="​",p=["http:","https:","mailto:","",void 0,":"],E=O.NEWLINES=/(\r\n?|\n)/g,g=/(<[^<>]*>)/,c=/<(\/?)([^ >]*)(\s+(.*))?>/i,y=//i;O.BR_TAG_ALL=//gi;var A=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,R=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function L(W,V){if(!W)return null;var $=W.match(V),Z=$&&($[3]||$[4]);return Z&&I(Z)}var P=/(^|;)\s*color:/;O.plainText=function(W,V){V=V||{};for(var $=V.len!==void 0&&V.len!==-1?V.len:1/0,Z=V.allowedTags!==void 0?V.allowedTags:["br"],q="...",ae=q.length,ie=W.split(g),fe=[],Q="",J=0,oe=0;oeae?fe.push(K.substr(0,ee-ae)+q):fe.push(K.substr(0,ee));break}Q=""}}return fe.join("")};var d={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},k=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function I(W){return W.replace(k,function(V,$){var Z;return $.charAt(0)==="#"?Z=N($.charAt(1)==="x"?parseInt($.substr(2),16):parseInt($.substr(1),10)):Z=d[$],Z||V})}O.convertEntities=I;function N(W){if(!(W>1114111)){var V=String.fromCodePoint;if(V)return V(W);var $=String.fromCharCode;return W<=65535?$(W):$((W>>10)+55232,W%1024+56320)}}function B(W,V){V=V.replace(E," ");var $=!1,Z=[],q,ae=-1;function ie(){ae++;var ke=document.createElementNS(C.svg,"tspan");l.select(ke).attr({class:"line",dy:ae*w+"em"}),W.appendChild(ke),q=ke;var Te=Z;if(Z=[{node:ke}],Te.length>1)for(var Ae=1;Ae.",V);return}var Te=Z.pop();ke!==Te.type&&S.log("Start tag <"+Te.type+"> doesnt match end tag <"+ke+">. Pretending it did match.",V),q=Z[Z.length-1].node}var oe=y.test(V);oe?ie():(q=W,Z=[{node:W}]);for(var K=V.split(g),ne=0;nev.ts+C){n();return}v.timer=setTimeout(function(){n(),v.timer=null},C)},O.done=function(S){var i=t[S];return!i||!i.timer?Promise.resolve():new Promise(function(C){var w=i.onDone;i.onDone=function(){w&&w(),C(),i.onDone=null}})},O.clear=function(S){if(S)l(t[S]),delete t[S];else for(var i in t)O.clear(i)};function l(S){S&&S.timer!==null&&(clearTimeout(S.timer),S.timer=null)}},36896:function(D,O,t){var l=t(38248);D.exports=function(i,C){if(i>0)return Math.log(i)/Math.LN10;var w=Math.log(Math.min(C[0],C[1]))/Math.LN10;return l(w)||(w=Math.log(Math.max(C[0],C[1]))/Math.LN10-6),w}},59972:function(D,O,t){var l=D.exports={},S=t(79552).locationmodeToLayer,i=t(55712).NO;l.getTopojsonName=function(C){return[C.scope.replace(/ /g,"-"),"_",C.resolution.toString(),"m"].join("")},l.getTopojsonPath=function(C,w){return C+w+".json"},l.getTopojsonFeatures=function(C,w){var v=S[C.locationmode],m=w.objects[v];return i(w,m).features}},11680:function(D){D.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(D){D.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(D,O,t){var l=t(24040);D.exports=function(i){for(var C=l.layoutArrayContainers,w=l.layoutArrayRegexes,v=i.split("[")[0],m,a,n=0;n0&&C.log("Clearing previous rejected promises from queue."),y._promises=[]},O.cleanLayout=function(y){var A,M;y||(y={}),y.xaxis1&&(y.xaxis||(y.xaxis=y.xaxis1),delete y.xaxis1),y.yaxis1&&(y.yaxis||(y.yaxis=y.yaxis1),delete y.yaxis1),y.scene1&&(y.scene||(y.scene=y.scene1),delete y.scene1);var R=(w.subplotsRegistry.cartesian||{}).attrRegex,T=(w.subplotsRegistry.polar||{}).attrRegex,L=(w.subplotsRegistry.ternary||{}).attrRegex,P=(w.subplotsRegistry.gl3d||{}).attrRegex,d=Object.keys(y);for(A=0;A3?(oe.x=1.02,oe.xanchor="left"):oe.x<-2&&(oe.x=-.02,oe.xanchor="right"),oe.y>3?(oe.y=1.02,oe.yanchor="bottom"):oe.y<-2&&(oe.y=-.02,oe.yanchor="top")),h(y),y.dragmode==="rotate"&&(y.dragmode="orbit"),m.clean(y),y.template&&y.template.layout&&O.cleanLayout(y.template.layout),y};function o(y,A){var M=y[A],R=A.charAt(0);M&&M!=="paper"&&(y[A]=a(M,R,!0))}function h(y){y&&((typeof y.title=="string"||typeof y.title=="number")&&(y.title={text:y.title}),A("titlefont","font"),A("titleposition","position"),A("titleside","side"),A("titleoffset","offset"));function A(M,R){var T=y[M],L=y.title&&y.title[R];T&&!L&&(y.title||(y.title={}),y.title[R]=y[M],delete y[M])}}O.cleanData=function(y){for(var A=0;A0)return y.substr(0,A)}O.hasParent=function(y,A){for(var M=g(A);M;){if(M in y)return!0;M=g(M)}return!1};var c=["x","y","z"];O.clearAxisTypes=function(y,A,M){for(var R=0;R1&&i.warn("Full array edits are incompatible with other edits",u);var A=o[""][""];if(m(A))s.set(null);else if(Array.isArray(A))s.set(A);else return i.warn("Unrecognized full array edit value",u,A),!0;return g?!1:(b(c,y),p(n),!0)}var M=Object.keys(o).map(Number).sort(C),R=s.get(),T=R||[],L=f(y,u).get(),P=[],d=-1,k=T.length,I,N,B,G,U,H,W,V;for(I=0;IT.length-(W?0:1)){i.warn("index out of range",u,B);continue}if(H!==void 0)U.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",u,B),m(H)?P.push(B):W?(H==="add"&&(H={}),T.splice(B,0,H),L&&L.splice(B,0,{})):i.warn("Unrecognized full object edit value",u,B,H),d===-1&&(d=B);else for(N=0;N=0;I--)T.splice(P[I],1),L&&L.splice(P[I],1);if(T.length?R||s.set(T):s.set(null),g)return!1;if(b(c,y),E!==S){var $;if(d===-1)$=M;else{for(k=Math.max(T.length,k),$=[],I=0;I=d));I++)$.push(B);for(I=d;I=Pe.data.length||yt<-Pe.data.length)throw new Error(Je+" must be valid indices for gd.data.");if(Ve.indexOf(yt,ot+1)>-1||yt>=0&&Ve.indexOf(-Pe.data.length+yt)>-1||yt<0&&Ve.indexOf(Pe.data.length+yt)>-1)throw new Error("each index in "+Je+" must be unique.")}}function $(Pe,Ve,Je){if(!Array.isArray(Pe.data))throw new Error("gd.data must be an array.");if(typeof Ve>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(Ve)||(Ve=[Ve]),V(Pe,Ve,"currentIndices"),typeof Je<"u"&&!Array.isArray(Je)&&(Je=[Je]),typeof Je<"u"&&V(Pe,Je,"newIndices"),typeof Je<"u"&&Ve.length!==Je.length)throw new Error("current and new indices must be of equal length.")}function Z(Pe,Ve,Je){var ot,yt;if(!Array.isArray(Pe.data))throw new Error("gd.data must be an array.");if(typeof Ve>"u")throw new Error("traces must be defined.");for(Array.isArray(Ve)||(Ve=[Ve]),ot=0;ot"u")throw new Error("indices must be an integer or array of integers");V(Pe,Je,"indices");for(var ut in Ve){if(!Array.isArray(Ve[ut])||Ve[ut].length!==Je.length)throw new Error("attribute "+ut+" must be an array of length equal to indices array length");if(yt&&(!(ut in ot)||!Array.isArray(ot[ut])||ot[ut].length!==Ve[ut].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function ae(Pe,Ve,Je,ot){var yt=C.isPlainObject(ot),ut=[],It,Vt,xt,Lt,Xt;Array.isArray(Je)||(Je=[Je]),Je=W(Je,Pe.data.length-1);for(var dr in Ve)for(var Tt=0;Tt=0&&Xt=0&&Xt"u")return Lt=O.redraw(Pe),m.add(Pe,yt,It,ut,Vt),Lt;Array.isArray(Je)||(Je=[Je]);try{$(Pe,ot,Je)}catch(Xt){throw Pe.data.splice(Pe.data.length-Ve.length,Ve.length),Xt}return m.startSequence(Pe),m.add(Pe,yt,It,ut,Vt),Lt=O.moveTraces(Pe,ot,Je),m.stopSequence(Pe),Lt}function K(Pe,Ve){Pe=C.getGraphDiv(Pe);var Je=[],ot=O.addTraces,yt=K,ut=[Pe,Je,Ve],It=[Pe,Ve],Vt,xt;if(typeof Ve>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Ve)||(Ve=[Ve]),V(Pe,Ve,"indices"),Ve=W(Ve,Pe.data.length-1),Ve.sort(C.sorterDes),Vt=0;Vt"u")for(Je=[],Lt=0;Lt-1&&ut.indexOf("grouptitlefont")===-1?Vt(ut,ut.replace("titlefont","title.font")):ut.indexOf("titleposition")>-1?Vt(ut,ut.replace("titleposition","title.position")):ut.indexOf("titleside")>-1?Vt(ut,ut.replace("titleside","title.side")):ut.indexOf("titleoffset")>-1&&Vt(ut,ut.replace("titleoffset","title.offset"));function Vt(xt,Lt){Pe[Lt]=Pe[xt],delete Pe[xt]}}function Ee(Pe,Ve,Je){Pe=C.getGraphDiv(Pe),A.clearPromiseQueue(Pe);var ot={};if(typeof Ve=="string")ot[Ve]=Je;else if(C.isPlainObject(Ve))ot=C.extendFlat({},Ve);else return C.warn("Relayout fail.",Ve,Je),Promise.reject();Object.keys(ot).length&&(Pe.changed=!0);var yt=Ie(Pe,ot),ut=yt.flags;ut.calc&&(Pe.calcdata=void 0);var It=[s.previousPromises];ut.layoutReplot?It.push(M.layoutReplot):Object.keys(ot).length&&(Se(Pe,ut,yt)||s.supplyDefaults(Pe),ut.legend&&It.push(M.doLegend),ut.layoutstyle&&It.push(M.layoutStyles),ut.axrange&&ke(It,yt.rangesAltered),ut.ticks&&It.push(M.doTicksRelayout),ut.modebar&&It.push(M.doModeBar),ut.camera&&It.push(M.doCamera),ut.colorbars&&It.push(M.doColorBars),It.push(k)),It.push(s.rehover,s.redrag,s.reselect),m.add(Pe,Ee,[Pe,yt.undoit],Ee,[Pe,yt.redoit]);var Vt=C.syncOrAsync(It,Pe);return(!Vt||!Vt.then)&&(Vt=Promise.resolve(Pe)),Vt.then(function(){return Pe.emit("plotly_relayout",yt.eventData),Pe})}function Se(Pe,Ve,Je){var ot=Pe._fullLayout;if(!Ve.axrange)return!1;for(var yt in Ve)if(yt!=="axrange"&&Ve[yt])return!1;var ut,It,Vt=function(Kt,qt){return C.coerce(ut,It,f,Kt,qt)},xt={};for(var Lt in Je.rangesAltered){var Xt=o.id2name(Lt);if(ut=Pe.layout[Xt],It=ot[Xt],h(ut,It,Vt,xt),It._matchGroup){for(var dr in It._matchGroup)if(dr!==Lt){var Tt=ot[o.id2name(dr)];Tt.autorange=It.autorange,Tt.range=It.range.slice(),Tt._input.range=It.range.slice()}}}return!0}function ke(Pe,Ve){var Je=Ve?function(ot){var yt=[],ut=!0;for(var It in Ve){var Vt=o.getFromId(ot,It);if(yt.push(It),(Vt.ticklabelposition||"").indexOf("inside")!==-1&&Vt._anchorAxis&&yt.push(Vt._anchorAxis._id),Vt._matchGroup)for(var xt in Vt._matchGroup)Ve[xt]||yt.push(xt)}return o.draw(ot,yt,{skipTitle:ut})}:function(ot){return o.draw(ot,"redraw")};Pe.push(g,M.doAutoRangeAndConstraints,Je,M.drawData,M.finalDraw)}var Te=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ae=/^[xyz]axis[0-9]*\.autorange$/,be=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Ie(Pe,Ve){var Je=Pe.layout,ot=Pe._fullLayout,yt=ot._guiEditing,ut=ee(ot._preGUI,yt),It=Object.keys(Ve),Vt=o.list(Pe),xt=C.extendDeepAll({},Ve),Lt={},Xt,dr,Tt;for(xe(Ve),It=Object.keys(Ve),dr=0;dr0&&typeof jt.parts[vr]!="string";)vr--;var pr=jt.parts[vr],Ke=jt.parts[vr-1]+"."+pr,Xe=jt.parts.slice(0,vr).join("."),Ut=w(Pe.layout,Xe).get(),Bt=w(ot,Xe).get(),Qt=jt.get();if(er!==void 0){Ct[Wt]=er,ht[Wt]=pr==="reverse"?er:re(Qt);var or=n.getLayoutValObject(ot,jt.parts);if(or&&or.impliedEdits&&er!==null)for(var fr in or.impliedEdits)Mt(C.relativeAttr(Wt,fr),or.impliedEdits[fr]);if(["width","height"].indexOf(Wt)!==-1)if(er){Mt("autosize",null);var ar=Wt==="height"?"width":"height";Mt(ar,ot[ar])}else ot[Wt]=Pe._initialAutoSize[Wt];else if(Wt==="autosize")Mt("width",er?null:ot.width),Mt("height",er?null:ot.height);else if(Ke.match(Te))Ft(Ke),w(ot,Xe+"._inputRange").set(null);else if(Ke.match(Ae)){Ft(Ke),w(ot,Xe+"._inputRange").set(null);var Ht=w(ot,Xe).get();Ht._inputDomain&&(Ht._input.domain=Ht._inputDomain.slice())}else Ke.match(be)&&w(ot,Xe+"._inputDomain").set(null);if(pr==="type"){zt=Ut;var mr=Bt.type==="linear"&&er==="log",wr=Bt.type==="log"&&er==="linear";if(mr||wr){if(!zt||!zt.range)Mt(Xe+".autorange",!0);else if(Bt.autorange)mr&&(zt.range=zt.range[1]>zt.range[0]?[1,2]:[2,1]);else{var Sr=zt.range[0],yr=zt.range[1];mr?(Sr<=0&&yr<=0&&Mt(Xe+".autorange",!0),Sr<=0?Sr=yr/1e6:yr<=0&&(yr=Sr/1e6),Mt(Xe+".range[0]",Math.log(Sr)/Math.LN10),Mt(Xe+".range[1]",Math.log(yr)/Math.LN10)):(Mt(Xe+".range[0]",Math.pow(10,Sr)),Mt(Xe+".range[1]",Math.pow(10,yr)))}Array.isArray(ot._subplots.polar)&&ot._subplots.polar.length&&ot[jt.parts[0]]&&jt.parts[1]==="radialaxis"&&delete ot[jt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Pe,Bt,er,Mt),a.getComponentMethod("images","convertCoords")(Pe,Bt,er,Mt)}else Mt(Xe+".autorange",!0),Mt(Xe+".range",null);w(ot,Xe+"._inputRange").set(null)}else if(pr.match(T)){var Xr=w(ot,Wt).get(),kr=(er||{}).type;(!kr||kr==="-")&&(kr="linear"),a.getComponentMethod("annotations","convertCoords")(Pe,Xr,kr,Mt),a.getComponentMethod("images","convertCoords")(Pe,Xr,kr,Mt)}var Dr=y.containerArrayMatch(Wt);if(Dr){Xt=Dr.array,dr=Dr.index;var bn=Dr.property,un=or||{editType:"calc"};dr!==""&&bn===""&&(y.isAddVal(er)?ht[Wt]=null:y.isRemoveVal(er)?ht[Wt]=(w(Je,Xt).get()||[])[dr]:C.warn("unrecognized full object value",Ve)),R.update(sr,un),Lt[Xt]||(Lt[Xt]={});var Fn=Lt[Xt][dr];Fn||(Fn=Lt[Xt][dr]={}),Fn[bn]=er,delete Ve[Wt]}else pr==="reverse"?(Ut.range?Ut.range.reverse():(Mt(Xe+".autorange",!0),Ut.range=[1,0]),Bt.autorange?sr.calc=!0:sr.plot=!0):(Wt==="dragmode"&&(er===!1&&Qt!==!1||er!==!1&&Qt===!1)||ot._has("scatter-like")&&ot._has("regl")&&Wt==="dragmode"&&(er==="lasso"||er==="select")&&!(Qt==="lasso"||Qt==="select")||ot._has("gl2d")?sr.plot=!0:or?R.update(sr,or):sr.calc=!0,jt.set(er))}}for(Xt in Lt){var On=y.applyContainerArrayChanges(Pe,ut(Je,Xt),Lt[Xt],sr,ut);On||(sr.plot=!0)}for(var gr in Rt){zt=o.getFromId(Pe,gr);var Br=zt&&zt._constraintGroup;if(Br){sr.calc=!0;for(var Zr in Br)Rt[Zr]||(o.getFromId(Pe,Zr)._constraintShrinkable=!0)}}(Ue(Pe)||Ve.height||Ve.width)&&(sr.plot=!0);var Wr=ot.shapes;for(dr=0;dr1;)if(ot.pop(),Je=w(Ve,ot.join(".")+".uirevision").get(),Je!==void 0)return Je;return Ve.uirevision}function nt(Pe,Ve){for(var Je=0;Je=yt.length?yt[0]:yt[Lt]:yt}function Vt(Lt){return Array.isArray(ut)?Lt>=ut.length?ut[0]:ut[Lt]:ut}function xt(Lt,Xt){var dr=0;return function(){if(Lt&&++dr===Xt)return Lt()}}return new Promise(function(Lt,Xt){function dr(){if(ot._frameQueue.length!==0){for(;ot._frameQueue.length;){var pr=ot._frameQueue.pop();pr.onInterrupt&&pr.onInterrupt()}Pe.emit("plotly_animationinterrupted",[])}}function Tt(pr){if(pr.length!==0){for(var Ke=0;Keot._timeToNext&&qt()};pr()}var sr=0;function Ct(pr){return Array.isArray(yt)?sr>=yt.length?pr.transitionOpts=yt[sr]:pr.transitionOpts=yt[0]:pr.transitionOpts=yt,sr++,pr}var ht,Mt,Rt=[],zt=Ve==null,Ft=Array.isArray(Ve),Wt=!zt&&!Ft&&C.isPlainObject(Ve);if(Wt)Rt.push({type:"object",data:Ct(C.extendFlat({},Ve))});else if(zt||["string","number"].indexOf(typeof Ve)!==-1)for(ht=0;ht0&&hrhr)&&vr.push(Mt);Rt=vr}}Rt.length>0?Tt(Rt):(Pe.emit("plotly_animated"),Lt())})}function We(Pe,Ve,Je){if(Pe=C.getGraphDiv(Pe),Ve==null)return Promise.resolve();if(!C.isPlotDiv(Pe))throw new Error("This element is not a Plotly plot: "+Pe+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var ot,yt,ut,It,Vt=Pe._transitionData._frames,xt=Pe._transitionData._frameHash;if(!Array.isArray(Ve))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Ve);var Lt=Vt.length+Ve.length*2,Xt=[],dr={};for(ot=Ve.length-1;ot>=0;ot--)if(C.isPlainObject(Ve[ot])){var Tt=Ve[ot].name,Kt=(xt[Tt]||dr[Tt]||{}).name,qt=Ve[ot].name,br=xt[Kt]||dr[Kt];Kt&&qt&&typeof qt=="number"&&br&&Ljt.index?-1:Wt.index=0;ot--){if(yt=Xt[ot].frame,typeof yt.name=="number"&&C.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!yt.name)for(;xt[yt.name="frame "+Pe._transitionData._counter++];);if(xt[yt.name]){for(ut=0;ut=0;Je--)ot=Ve[Je],ut.push({type:"delete",index:ot}),It.unshift({type:"insert",index:ot,value:yt[ot]});var Vt=s.modifyFrames,xt=s.modifyFrames,Lt=[Pe,It],Xt=[Pe,ut];return m&&m.add(Pe,Vt,Lt,xt,Xt),s.modifyFrames(Pe,ut)}function Me(Pe){Pe=C.getGraphDiv(Pe);var Ve=Pe._fullLayout||{},Je=Pe._fullData||[];return s.cleanPlot([],{},Je,Ve),s.purge(Pe),v.purge(Pe),Ve._container&&Ve._container.remove(),delete Pe._context,Pe}function we(Pe){var Ve=Pe._fullLayout,Je=Pe.getBoundingClientRect();if(!C.equalDomRects(Je,Ve._lastBBox)){var ot=Ve._invTransform=C.inverseTransformMatrix(C.getFullTransformMatrix(Pe));Ve._invScaleX=Math.sqrt(ot[0][0]*ot[0][0]+ot[0][1]*ot[0][1]+ot[0][2]*ot[0][2]),Ve._invScaleY=Math.sqrt(ot[1][0]*ot[1][0]+ot[1][1]*ot[1][1]+ot[1][2]*ot[1][2]),Ve._lastBBox=Je}}function Re(Pe){var Ve=l.select(Pe),Je=Pe._fullLayout;if(Je._calcInverseTransform=we,Je._calcInverseTransform(Pe),Je._container=Ve.selectAll(".plot-container").data([0]),Je._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Je._paperdiv=Je._container.selectAll(".svg-container").data([0]),Je._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Je._glcontainer=Je._paperdiv.selectAll(".gl-container").data([{}]),Je._glcontainer.enter().append("div").classed("gl-container",!0),Je._paperdiv.selectAll(".main-svg").remove(),Je._paperdiv.select(".modebar-container").remove(),Je._paper=Je._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Je._toppaper=Je._paperdiv.append("svg").classed("main-svg",!0),Je._modebardiv=Je._paperdiv.append("div"),delete Je._modeBar,Je._hoverpaper=Je._paperdiv.append("svg").classed("main-svg",!0),!Je._uid){var ot={};l.selectAll("defs").each(function(){this.id&&(ot[this.id.split("-")[1]]=1)}),Je._uid=C.randstr(ot)}Je._paperdiv.selectAll(".main-svg").attr(E.svgAttrs),Je._defs=Je._paper.append("defs").attr("id","defs-"+Je._uid),Je._clips=Je._defs.append("g").classed("clips",!0),Je._topdefs=Je._toppaper.append("defs").attr("id","topdefs-"+Je._uid),Je._topclips=Je._topdefs.append("g").classed("clips",!0),Je._bgLayer=Je._paper.append("g").classed("bglayer",!0),Je._draggers=Je._paper.append("g").classed("draglayer",!0);var yt=Je._paper.append("g").classed("layer-below",!0);Je._imageLowerLayer=yt.append("g").classed("imagelayer",!0),Je._shapeLowerLayer=yt.append("g").classed("shapelayer",!0),Je._cartesianlayer=Je._paper.append("g").classed("cartesianlayer",!0),Je._polarlayer=Je._paper.append("g").classed("polarlayer",!0),Je._smithlayer=Je._paper.append("g").classed("smithlayer",!0),Je._ternarylayer=Je._paper.append("g").classed("ternarylayer",!0),Je._geolayer=Je._paper.append("g").classed("geolayer",!0),Je._funnelarealayer=Je._paper.append("g").classed("funnelarealayer",!0),Je._pielayer=Je._paper.append("g").classed("pielayer",!0),Je._iciclelayer=Je._paper.append("g").classed("iciclelayer",!0),Je._treemaplayer=Je._paper.append("g").classed("treemaplayer",!0),Je._sunburstlayer=Je._paper.append("g").classed("sunburstlayer",!0),Je._indicatorlayer=Je._toppaper.append("g").classed("indicatorlayer",!0),Je._glimages=Je._paper.append("g").classed("glimages",!0);var ut=Je._toppaper.append("g").classed("layer-above",!0);Je._imageUpperLayer=ut.append("g").classed("imagelayer",!0),Je._shapeUpperLayer=ut.append("g").classed("shapelayer",!0),Je._selectionLayer=Je._toppaper.append("g").classed("selectionlayer",!0),Je._infolayer=Je._toppaper.append("g").classed("infolayer",!0),Je._menulayer=Je._toppaper.append("g").classed("menulayer",!0),Je._zoomlayer=Je._toppaper.append("g").classed("zoomlayer",!0),Je._hoverlayer=Je._hoverpaper.append("g").classed("hoverlayer",!0),Je._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Pe.emit("plotly_framework")}O.animate=Ze,O.addFrames=We,O.deleteFrames=Fe,O.addTraces=oe,O.deleteTraces=K,O.extendTraces=Q,O.moveTraces=ne,O.prependTraces=J,O.newPlot=H,O._doPlot=d,O.purge=Me,O.react=dt,O.redraw=U,O.relayout=Ee,O.restyle=ce,O.setPlotConfig=I,O.update=Ne,O._guiRelayout=ze(Ee),O._guiRestyle=ze(ce),O._guiUpdate=ze(Ne),O._storeDirectGUIEdit=le},20556:function(D){var O={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},t={};function l(S,i){for(var C in S){var w=S[C];w.valType?i[C]=w.dflt:(i[C]||(i[C]={}),l(w,i[C]))}}l(O,t),D.exports={configAttributes:O,dfltConfig:t}},73060:function(D,O,t){var l=t(24040),S=t(3400),i=t(45464),C=t(64859),w=t(16672),v=t(85656),m=t(20556).configAttributes,a=t(67824),n=S.extendDeepAll,s=S.isPlainObject,o=S.isArrayOrTypedArray,h=S.nestedProperty,f=S.valObjectMeta,u="_isSubplotObj",b="_isLinkedToArray",p="_arrayAttrRegexps",E="_deprecated",g=[u,b,p,E];O.IS_SUBPLOT_OBJ=u,O.IS_LINKED_TO_ARRAY=b,O.DEPRECATED=E,O.UNDERSCORE_ATTRS=g,O.get=function(){var G={};l.allTypes.forEach(function(H){G[H]=M(H)});var U={};return Object.keys(l.transformsRegistry).forEach(function(H){U[H]=T(H)}),{defs:{valObjects:f,metaKeys:g.concat(["description","role","editType","impliedEdits"]),editType:{traces:a.traces,layout:a.layout},impliedEdits:{}},traces:G,layout:R(),transforms:U,frames:L(),animation:P(v),config:P(m)}},O.crawl=function(G,U,H,W){var V=H||0;W=W||"",Object.keys(G).forEach(function($){var Z=G[$];if(g.indexOf($)===-1){var q=(W?W+".":"")+$;U(Z,$,G,V,q),!O.isValObject(Z)&&s(Z)&&$!=="impliedEdits"&&O.crawl(Z,U,V+1,q)}})},O.isValObject=function(G){return G&&G.valType!==void 0},O.findArrayAttributes=function(G){var U=[],H=[],W=[],V,$;function Z(J,oe,K,ne){H=H.slice(0,ne).concat([oe]),W=W.slice(0,ne).concat([J&&J._isLinkedToArray]);var ce=J&&(J.valType==="data_array"||J.arrayOk===!0)&&!(H[ne-1]==="colorbar"&&(oe==="ticktext"||oe==="tickvals"));ce&&q(V,0,"")}function q(J,oe,K){var ne=J[H[oe]],ce=K+H[oe];if(oe===H.length-1)o(ne)&&U.push($+ce);else if(W[oe]){if(Array.isArray(ne))for(var re=0;re=Z.length)return!1;V=(l.transformsRegistry[Z[q].type]||{}).attributes,$=V&&V[U[2]],W=3}else{var ae=G._module;if(ae||(ae=(l.modules[G.type||i.type.dflt]||{})._module),!ae)return!1;if(V=ae.attributes,$=V&&V[H],!$){var ie=ae.basePlotModule;ie&&ie.attributes&&($=ie.attributes[H])}$||($=i[H])}return y($,U,W)},O.getLayoutValObject=function(G,U){var H=c(G,U[0]);return y(H,U,1)};function c(G,U){var H,W,V,$,Z=G._basePlotModules;if(Z){var q;for(H=0;H=$.length)return!1;if(G.dimensions===2){if(H++,U.length===H)return G;var Z=U[H];if(!A(Z))return!1;G=$[V][Z]}else G=$[V]}else G=$}}return G}function A(G){return G===Math.round(G)&&G>=0}function M(G){var U,H;U=l.modules[G]._module,H=U.basePlotModule;var W={};W.type=null;var V=n({},i),$=n({},U.attributes);O.crawl($,function(ae,ie,fe,Q,J){h(V,J).set(void 0),ae===void 0&&h($,J).set(void 0)}),n(W,V),l.traceIs(G,"noOpacity")&&delete W.opacity,l.traceIs(G,"showLegend")||(delete W.showlegend,delete W.legendgroup),l.traceIs(G,"noHover")&&(delete W.hoverinfo,delete W.hoverlabel),U.selectPoints||delete W.selectedpoints,n(W,$),H.attributes&&n(W,H.attributes),W.type=G;var Z={meta:U.meta||{},categories:U.categories||{},animatable:!!U.animatable,type:G,attributes:P(W)};if(U.layoutAttributes){var q={};n(q,U.layoutAttributes),Z.layoutAttributes=P(q)}return U.animatable||O.crawl(Z,function(ae){O.isValObject(ae)&&"anim"in ae&&delete ae.anim}),Z}function R(){var G={},U,H;n(G,C);for(U in l.subplotsRegistry)if(H=l.subplotsRegistry[U],!!H.layoutAttributes)if(Array.isArray(H.attr))for(var W=0;W=s&&(n._input||{})._templateitemname;h&&(o=s);var f=a+"["+o+"]",u;function b(){u={},h&&(u[f]={},u[f][i]=h)}b();function p(y,A){u[y]=A}function E(y,A){h?l.nestedProperty(u[f],y).set(A):u[f+"."+y]=A}function g(){var y=u;return b(),y}function c(y,A){y&&E(y,A);var M=g();for(var R in M)l.nestedProperty(m,R).set(M[R])}return{modifyBase:p,modifyItem:E,getUpdateObj:g,applyUpdate:c}}},39172:function(D,O,t){var l=t(33428),S=t(24040),i=t(7316),C=t(3400),w=t(72736),v=t(73696),m=t(76308),a=t(43616),n=t(81668),s=t(45460),o=t(54460),h=t(84284),f=t(71888),u=f.enforce,b=f.clean,p=t(19280).doAutoRange,E="start",g="middle",c="end";O.layoutStyles=function(H){return C.syncOrAsync([i.doAutoMargin,A],H)};function y(H,W,V){for(var $=0;$=H[1]||Z[1]<=H[0])&&q[0]W[0])return!0}return!1}function A(H){var W=H._fullLayout,V=W._size,$=V.p,Z=o.list(H,"",!0),q,ae,ie,fe,Q,J;if(W._paperdiv.style({width:H._context.responsive&&W.autosize&&!H._context._hasZeroWidth&&!H.layout.width?"100%":W.width+"px",height:H._context.responsive&&W.autosize&&!H._context._hasZeroHeight&&!H.layout.height?"100%":W.height+"px"}).selectAll(".main-svg").call(a.setSize,W.width,W.height),H._context.setBackground(H,W.paper_bgcolor),O.drawMainTitle(H),s.manage(H),!W._has("cartesian"))return i.previousPromises(H);function oe(Me,we,Re){var Pe=Me._lw/2;if(Me._id.charAt(0)==="x"){if(we){if(Re==="top")return we._offset-$-Pe}else return V.t+V.h*(1-(Me.position||0))+Pe%1;return we._offset+we._length+$+Pe}if(we){if(Re==="right")return we._offset+we._length+$+Pe}else return V.l+V.w*(Me.position||0)+Pe%1;return we._offset-$-Pe}for(q=0;q0){k(H,q,Q,fe),ie.attr({x:ae,y:q,"text-anchor":$,dy:B(W.yanchor)}).call(w.positionText,ae,q);var J=(W.text.match(w.BR_TAG_ALL)||[]).length;if(J){var oe=h.LINE_SPACING*J+h.MID_SHIFT;W.y===0&&(oe=-oe),ie.selectAll(".line").each(function(){var K=+this.getAttribute("dy").slice(0,-2)-oe+"em";this.setAttribute("dy",K)})}}}};function L(H,W,V,$,Z){var q=W.yref==="paper"?H._fullLayout._size.h:H._fullLayout.height,ae=C.isTopAnchor(W)?$:$-Z,ie=V==="b"?q-ae:ae;return C.isTopAnchor(W)&&V==="t"||C.isBottomAnchor(W)&&V==="b"?!1:ie.5?"t":"b",ae=H._fullLayout.margin[q],ie=0;return W.yref==="paper"?ie=V+W.pad.t+W.pad.b:W.yref==="container"&&(ie=P(q,$,Z,H._fullLayout.height,V)+W.pad.t+W.pad.b),ie>ae?ie:0}function k(H,W,V,$){var Z="title.automargin",q=H._fullLayout.title,ae=q.y>.5?"t":"b",ie={x:q.x,y:q.y,t:0,b:0},fe={};q.yref==="paper"&&L(H,q,ae,W,$)?ie[ae]=V:q.yref==="container"&&(fe[ae]=V,H._fullLayout._reservedMargin[Z]=fe),i.allowAutoMargin(H,Z),i.autoMargin(H,Z,ie)}function I(H,W){var V=H.title,$=H._size,Z=0;switch(W===E?Z=V.pad.l:W===c&&(Z=-V.pad.r),V.xref){case"paper":return $.l+$.w*V.x+Z;case"container":default:return H.width*V.x+Z}}function N(H,W){var V=H.title,$=H._size,Z=0;if(W==="0em"||!W?Z=-V.pad.b:W===h.CAP_SHIFT+"em"&&(Z=V.pad.t),V.y==="auto")return $.t/2;switch(V.yref){case"paper":return $.t+$.h-$.h*V.y+Z;case"container":default:return H.height-H.height*V.y+Z}}function B(H){return H==="top"?h.CAP_SHIFT+.3+"em":H==="bottom"?"-0.3em":h.MID_SHIFT+"em"}function G(H){var W=H.title,V=g;return C.isRightAnchor(W)?V=c:C.isLeftAnchor(W)&&(V=E),V}function U(H){var W=H.title,V="0em";return C.isTopAnchor(W)?V=h.CAP_SHIFT+"em":C.isMiddleAnchor(W)&&(V=h.MID_SHIFT+"em"),V}O.doTraceStyle=function(H){var W=H.calcdata,V=[],$;for($=0;$U?M.push({code:"unused",traceType:I,templateCount:G,dataCount:U}):U>G&&M.push({code:"reused",traceType:I,templateCount:G,dataCount:U})}}function H(W,V){for(var $ in W)if($.charAt(0)!=="_"){var Z=W[$],q=f(W,$,V);S(Z)?(Array.isArray(W)&&Z._template===!1&&Z.templateitemname&&M.push({code:"missing",path:q,templateitemname:Z.templateitemname}),H(Z,q)):Array.isArray(Z)&&u(Z)&&H(Z,q)}}if(H({data:T,layout:R},""),M.length)return M.map(b)};function u(p){for(var E=0;E1&&M.push(h("object","layout"))),S.supplyDefaults(R);for(var P=R._fullData,d=T.length,k=0;kI.length&&A.push(h("unused",M,d.concat(I.length)));var W=I.length,V=Array.isArray(H);V&&(W=Math.min(W,H.length));var $,Z,q,ae,ie;if(N.dimensions===2)for(Z=0;ZI[Z].length&&A.push(h("unused",M,d.concat(Z,I[Z].length)));var fe=I[Z].length;for($=0;$<(V?Math.min(fe,H[Z].length):fe);$++)q=V?H[Z][$]:H,ae=k[Z][$],ie=I[Z][$],l.validate(ae,q)?ie!==ae&&ie!==+ae&&A.push(h("dynamic",M,d.concat(Z,$),ae,ie)):A.push(h("value",M,d.concat(Z,$),ae))}else A.push(h("array",M,d.concat(Z),k[Z]));else for(Z=0;Z0&&Math.round(b)===b)u=b;else return{vals:o}}for(var p=n.calendar,E=h==="start",g=h==="end",c=a[s+"period0"],y=i(c,p)||0,A=[],M=[],R=[],T=o.length,L=0;LP;)I=C(I,-u,p);for(;I<=P;)I=C(I,u,p);k=C(I,-u,p)}else{for(d=Math.round((P-y)/f),I=y+d*f;I>P;)I-=f;for(;I<=P;)I+=f;k=I-f}A[L]=E?k:g?I:(k+I)/2,M[L]=k,R[L]=I}return{vals:A,starts:M,ends:R}}},26720:function(D){D.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(D,O,t){var l=t(33428),S=t(38248),i=t(3400),C=t(39032).FP_SAFE,w=t(24040),v=t(43616),m=t(79811),a=m.getFromId,n=m.isLinked;D.exports={applyAutorangeOptions:d,getAutoRange:s,makePadFn:h,doAutoRange:p,findExtremes:E,concatExtremes:b};function s(k,I){var N,B,G=[],U=k._fullLayout,H=h(U,I,0),W=h(U,I,1),V=b(k,I),$=V.min,Z=V.max;if($.length===0||Z.length===0)return i.simpleMap(I.range,I.r2l);var q=$[0].val,ae=Z[0].val;for(N=1;N<$.length&&q===ae;N++)q=Math.min(q,$[N].val);for(N=1;N0&&(xe=ne-H(ee)-W(de),xe>ce?Ee/xe>re&&(le=ee,he=de,re=Ee/xe):Ee/ne>re&&(le={val:ee.val,nopad:1},he={val:de.val,nopad:1},re=Ee/ne));function Se(Ie,Ue){return Math.max(Ie,W(Ue))}if(q===ae){var ke=q-1,Te=q+1;if(oe)if(q===0)G=[0,1];else{var Ae=(q>0?Z:$).reduce(Se,0),be=q/(1-Math.min(.5,Ae/ne));G=q>0?[0,be]:[be,0]}else K?G=[Math.max(0,ke),Math.max(1,Te)]:G=[ke,Te]}else oe?(le.val>=0&&(le={val:0,nopad:1}),he.val<=0&&(he={val:0,nopad:1})):K&&(le.val-re*H(le)<0&&(le={val:0,nopad:1}),he.val<=0&&(he={val:1,nopad:1})),re=(he.val-le.val-o(I,ee.val,de.val))/(ne-H(le)-W(he)),G=[le.val-re*H(le),he.val+re*W(he)];return G=d(G,I),I.limitRange&&I.limitRange(),fe&&G.reverse(),i.simpleMap(G,I.l2r||Number)}function o(k,I,N){var B=0;if(k.rangebreaks)for(var G=k.locateBreaks(I,N),U=0;U0?N.ppadplus:N.ppadminus)||N.ppad||0),ee=ce((k._m>0?N.ppadminus:N.ppadplus)||N.ppad||0),de=ce(N.vpadplus||N.vpad),le=ce(N.vpadminus||N.vpad);if(!$){if(K=1/0,ne=-1/0,V)for(q=0;q0&&(K=ae),ae>ne&&ae-C&&(K=ae),ae>ne&&ae=Ee;q--)xe(q);return{min:B,max:G,opts:N}}function g(k,I,N,B){y(k,I,N,B,M)}function c(k,I,N,B){y(k,I,N,B,R)}function y(k,I,N,B,G){for(var U=B.tozero,H=B.extrapad,W=!0,V=0;V=N&&($.extrapad||!H)){W=!1;break}else G(I,$.val)&&$.pad<=N&&(H||!$.extrapad)&&(k.splice(V,1),V--)}if(W){var Z=U&&I===0;k.push({val:I,pad:Z?0:N,extrapad:Z?!1:H})}}function A(k){return S(k)&&Math.abs(k)=I}function T(k,I){var N=I.autorangeoptions;return N&&N.minallowed!==void 0&&P(I,N.minallowed,N.maxallowed)?N.minallowed:N&&N.clipmin!==void 0&&P(I,N.clipmin,N.clipmax)?Math.max(k,I.d2l(N.clipmin)):k}function L(k,I){var N=I.autorangeoptions;return N&&N.maxallowed!==void 0&&P(I,N.minallowed,N.maxallowed)?N.maxallowed:N&&N.clipmax!==void 0&&P(I,N.clipmin,N.clipmax)?Math.min(k,I.d2l(N.clipmax)):k}function P(k,I,N){return I!==void 0&&N!==void 0?(I=k.d2l(I),N=k.d2l(N),I=V&&(U=V,N=V),H<=V&&(H=V,B=V)}}return N=T(N,I),B=L(B,I),[N,B]}},76808:function(D){D.exports=function(t,l,S){var i,C;if(S){var w=l==="reversed"||l==="min reversed"||l==="max reversed";i=S[w?1:0],C=S[w?0:1]}var v=t("autorangeoptions.minallowed",C===null?i:void 0),m=t("autorangeoptions.maxallowed",i===null?C:void 0);v===void 0&&t("autorangeoptions.clipmin"),m===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}},54460:function(D,O,t){var l=t(33428),S=t(38248),i=t(7316),C=t(24040),w=t(3400),v=w.strTranslate,m=t(72736),a=t(81668),n=t(76308),s=t(43616),o=t(94724),h=t(98728),f=t(39032),u=f.ONEMAXYEAR,b=f.ONEAVGYEAR,p=f.ONEMINYEAR,E=f.ONEMAXQUARTER,g=f.ONEAVGQUARTER,c=f.ONEMINQUARTER,y=f.ONEMAXMONTH,A=f.ONEAVGMONTH,M=f.ONEMINMONTH,R=f.ONEWEEK,T=f.ONEDAY,L=T/2,P=f.ONEHOUR,d=f.ONEMIN,k=f.ONESEC,I=f.MINUS_SIGN,N=f.BADNUM,B={K:"zeroline"},G={K:"gridline",L:"path"},U={K:"minor-gridline",L:"path"},H={K:"tick",L:"path"},W={K:"tick",L:"text"},V={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},$=t(84284),Z=$.MID_SHIFT,q=$.CAP_SHIFT,ae=$.LINE_SPACING,ie=$.OPPOSITE_SIDE,fe=3,Q=D.exports={};Q.setConvert=t(78344);var J=t(52976),oe=t(79811),K=oe.idSort,ne=oe.isLinked;Q.id2name=oe.id2name,Q.name2id=oe.name2id,Q.cleanId=oe.cleanId,Q.list=oe.list,Q.listIds=oe.listIds,Q.getFromId=oe.getFromId,Q.getFromTrace=oe.getFromTrace;var ce=t(19280);Q.getAutoRange=ce.getAutoRange,Q.findExtremes=ce.findExtremes;var re=1e-4;function ee(Ke){var Xe=(Ke[1]-Ke[0])*re;return[Ke[0]-Xe,Ke[1]+Xe]}Q.coerceRef=function(Ke,Xe,Ut,Bt,Qt,or){var fr=Bt.charAt(Bt.length-1),ar=Ut._fullLayout._subplots[fr+"axis"],Ht=Bt+"ref",mr={};return Qt||(Qt=ar[0]||(typeof or=="string"?or:or[0])),or||(or=Qt),ar=ar.concat(ar.map(function(wr){return wr+" domain"})),mr[Ht]={valType:"enumerated",values:ar.concat(or?typeof or=="string"?[or]:or:[]),dflt:Qt},w.coerce(Ke,Xe,mr,Ht)},Q.getRefType=function(Ke){return Ke===void 0?Ke:Ke==="paper"?"paper":Ke==="pixel"?"pixel":/( domain)$/.test(Ke)?"domain":"range"},Q.coercePosition=function(Ke,Xe,Ut,Bt,Qt,or){var fr,ar,Ht=Q.getRefType(Bt);if(Ht!=="range")fr=w.ensureNumber,ar=Ut(Qt,or);else{var mr=Q.getFromId(Xe,Bt);or=mr.fraction2r(or),ar=Ut(Qt,or),fr=mr.cleanPos}Ke[Qt]=fr(ar)},Q.cleanPosition=function(Ke,Xe,Ut){var Bt=Ut==="paper"||Ut==="pixel"?w.ensureNumber:Q.getFromId(Xe,Ut).cleanPos;return Bt(Ke)},Q.redrawComponents=function(Ke,Xe){Xe=Xe||Q.listIds(Ke);var Ut=Ke._fullLayout;function Bt(Qt,or,fr,ar){for(var Ht=C.getComponentMethod(Qt,or),mr={},wr=0;wr2e-6||((Ut-Ke._forceTick0)/Ke._minDtick%1+1.000001)%1>2e-6)&&(Ke._minDtick=0))},Q.saveRangeInitial=function(Ke,Xe){for(var Ut=Q.list(Ke,"",!0),Bt=!1,Qt=0;QtSr*.3||mr(Bt)||mr(Qt))){var yr=Ut.dtick/2;Ke+=Ke+yrfr){var ar=Number(Ut.substr(1));or.exactYears>fr&&ar%12===0?Ke=Q.tickIncrement(Ke,"M6","reverse")+T*1.5:or.exactMonths>fr?Ke=Q.tickIncrement(Ke,"M1","reverse")+T*15.5:Ke-=L;var Ht=Q.tickIncrement(Ke,Ut);if(Ht<=Bt)return Ht}return Ke}Q.prepMinorTicks=function(Ke,Xe,Ut){if(!Xe.minor.dtick){delete Ke.dtick;var Bt=Xe.dtick&&S(Xe._tmin),Qt;if(Bt){var or=Q.tickIncrement(Xe._tmin,Xe.dtick,!0);Qt=[Xe._tmin,or*.99+Xe._tmin*.01]}else{var fr=w.simpleMap(Xe.range,Xe.r2l);Qt=[fr[0],.8*fr[0]+.2*fr[1]]}if(Ke.range=w.simpleMap(Qt,Xe.l2r),Ke._isMinor=!0,Q.prepTicks(Ke,Ut),Bt){var ar=S(Xe.dtick),Ht=S(Ke.dtick),mr=ar?Xe.dtick:+Xe.dtick.substring(1),wr=Ht?Ke.dtick:+Ke.dtick.substring(1);ar&&Ht?Se(mr,wr)?mr===2*R&&wr===2*T&&(Ke.dtick=R):mr===2*R&&wr===3*T?Ke.dtick=R:mr===R&&!(Xe._input.minor||{}).nticks?Ke.dtick=T:ke(mr/wr,2.5)?Ke.dtick=mr/2:Ke.dtick=mr:String(Xe.dtick).charAt(0)==="M"?Ht?Ke.dtick="M1":Se(mr,wr)?mr>=12&&wr===2&&(Ke.dtick="M3"):Ke.dtick=Xe.dtick:String(Ke.dtick).charAt(0)==="L"?String(Xe.dtick).charAt(0)==="L"?Se(mr,wr)||(Ke.dtick=ke(mr/wr,2.5)?Xe.dtick/2:Xe.dtick):Ke.dtick="D1":Ke.dtick==="D2"&&+Xe.dtick>1&&(Ke.dtick=1)}Ke.range=Xe.range}Xe.minor._tick0Init===void 0&&(Ke.tick0=Xe.tick0)};function Se(Ke,Xe){return Math.abs((Ke/Xe+.5)%1-.5)<.001}function ke(Ke,Xe){return Math.abs(Ke/Xe-1)<.001}Q.prepTicks=function(Ke,Xe){var Ut=w.simpleMap(Ke.range,Ke.r2l,void 0,void 0,Xe);if(Ke.tickmode==="auto"||!Ke.dtick){var Bt=Ke.nticks,Qt;Bt||(Ke.type==="category"||Ke.type==="multicategory"?(Qt=Ke.tickfont?w.bigFont(Ke.tickfont.size||12):15,Bt=Ke._length/Qt):(Qt=Ke._id.charAt(0)==="y"?40:80,Bt=w.constrain(Ke._length/Qt,4,9)+1),Ke._name==="radialaxis"&&(Bt*=2)),Ke.minor&&Ke.minor.tickmode!=="array"||Ke.tickmode==="array"&&(Bt*=100),Ke._roughDTick=Math.abs(Ut[1]-Ut[0])/Bt,Q.autoTicks(Ke,Ke._roughDTick),Ke._minDtick>0&&Ke.dtick0?(or=Bt-1,fr=Bt):(or=Bt,fr=Bt);var ar=Ke[or].value,Ht=Ke[fr].value,mr=Math.abs(Ht-ar),wr=Ut||mr,Sr=0;wr>=p?mr>=p&&mr<=u?Sr=mr:Sr=b:Ut===g&&wr>=c?mr>=c&&mr<=E?Sr=mr:Sr=g:wr>=M?mr>=M&&mr<=y?Sr=mr:Sr=A:Ut===R&&wr>=R?Sr=R:wr>=T?Sr=T:Ut===L&&wr>=L?Sr=L:Ut===P&&wr>=P&&(Sr=P);var yr;Sr>=mr&&(Sr=mr,yr=!0);var Xr=Qt+Sr;if(Xe.rangebreaks&&Sr>0){for(var kr=84,Dr=0,bn=0;bnR&&(Sr=mr)}(Sr>0||Bt===0)&&(Ke[Bt].periodX=Qt+Sr/2)}}Q.calcTicks=function(Xe,Ut){for(var Bt=Xe.type,Qt=Xe.calendar,or=Xe.ticklabelstep,fr=Xe.ticklabelmode==="period",ar=w.simpleMap(Xe.range,Xe.r2l,void 0,void 0,Ut),Ht=ar[1]=(bn?0:1);un--){var Fn=!un;un?(Xe._dtickInit=Xe.dtick,Xe._tick0Init=Xe.tick0):(Xe.minor._dtickInit=Xe.minor.dtick,Xe.minor._tick0Init=Xe.minor.tick0);var On=un?Xe:w.extendFlat({},Xe,Xe.minor);if(Fn?Q.prepMinorTicks(On,Xe,Ut):Q.prepTicks(On,Ut),On.tickmode==="array"){un?(kr=[],yr=Ne(Xe,!Fn)):(Dr=[],Xr=Ne(Xe,!Fn));continue}if(On.tickmode==="sync"){kr=[],yr=Ue(Xe);continue}var gr=ee(ar),Br=gr[0],Zr=gr[1],Wr=S(On.dtick),fn=Bt==="log"&&!(Wr||On.dtick.charAt(0)==="L"),Tn=Q.tickFirst(On,Ut);if(un){if(Xe._tmin=Tn,Tn=Zr:Nn<=Zr;Nn=Q.tickIncrement(Nn,Ia,Ht,Qt)){if(un&&Yn++,On.rangebreaks&&!Ht){if(Nn=wr)break}if(kr.length>Sr||Nn===wn)break;wn=Nn;var Ma={value:Nn};un?(fn&&Nn!==(Nn|0)&&(Ma.simpleLabel=!0),or>1&&Yn%or&&(Ma.skipLabel=!0),kr.push(Ma)):(Ma.minor=!0,Dr.push(Ma))}}if(bn){var ma=Xe.minor.ticks==="inside"&&Xe.ticks==="outside"||Xe.minor.ticks==="outside"&&Xe.ticks==="inside";if(!ma){for(var Aa=kr.map(function(yn){return yn.value}),Mr=[],cn=0;cn-1;Rn--){if(kr[Rn].drop){kr.splice(Rn,1);continue}kr[Rn].value=jt(kr[Rn].value,Xe);var Qa=Xe.c2p(kr[Rn].value);(Xn?Da>Qa-la:Dawr||Vrwr&&(Ar.periodX=wr),VrQt&&yrb)Xe/=b,Bt=Qt(10),Ke.dtick="M"+12*rt(Xe,Bt,ze);else if(or>A)Xe/=A,Ke.dtick="M"+rt(Xe,1,$e);else if(or>T){if(Ke.dtick=rt(Xe,T,Ke._hasDayOfWeekBreaks?[1,2,7,14]:vt),!Ut){var fr=Q.getTickFormat(Ke),ar=Ke.ticklabelmode==="period";ar&&(Ke._rawTick0=Ke.tick0),/%[uVW]/.test(fr)?Ke.tick0=w.dateTick0(Ke.calendar,2):Ke.tick0=w.dateTick0(Ke.calendar,1),ar&&(Ke._dowTick0=Ke.tick0)}}else or>P?Ke.dtick=rt(Xe,P,$e):or>d?Ke.dtick=rt(Xe,d,st):or>k?Ke.dtick=rt(Xe,k,st):(Bt=Qt(10),Ke.dtick=rt(Xe,Bt,ze))}else if(Ke.type==="log"){Ke.tick0=0;var Ht=w.simpleMap(Ke.range,Ke.r2l);if(Ke._isMinor&&(Xe*=1.5),Xe>.7)Ke.dtick=Math.ceil(Xe);else if(Math.abs(Ht[1]-Ht[0])<1){var mr=1.5*Math.abs((Ht[1]-Ht[0])/Xe);Xe=Math.abs(Math.pow(10,Ht[1])-Math.pow(10,Ht[0]))/mr,Bt=Qt(10),Ke.dtick="L"+rt(Xe,Bt,ze)}else Ke.dtick=Xe>.3?"D2":"D1"}else Ke.type==="category"||Ke.type==="multicategory"?(Ke.tick0=0,Ke.dtick=Math.ceil(Math.max(Xe,1))):Wt(Ke)?(Ke.tick0=0,Bt=1,Ke.dtick=rt(Xe,Bt,mt)):(Ke.tick0=0,Bt=Qt(10),Ke.dtick=rt(Xe,Bt,ze));if(Ke.dtick===0&&(Ke.dtick=1),!S(Ke.dtick)&&typeof Ke.dtick!="string"){var wr=Ke.dtick;throw Ke.dtick=1,"ax.dtick error: "+String(wr)}};function lt(Ke){var Xe=Ke.dtick;if(Ke._tickexponent=0,!S(Xe)&&typeof Xe!="string"&&(Xe=1),(Ke.type==="category"||Ke.type==="multicategory")&&(Ke._tickround=null),Ke.type==="date"){var Ut=Ke.r2l(Ke.tick0),Bt=Ke.l2r(Ut).replace(/(^-|i)/g,""),Qt=Bt.length;if(String(Xe).charAt(0)==="M")Qt>10||Bt.substr(5)!=="01-01"?Ke._tickround="d":Ke._tickround=+Xe.substr(1)%12===0?"y":"m";else if(Xe>=T&&Qt<=10||Xe>=T*15)Ke._tickround="d";else if(Xe>=d&&Qt<=16||Xe>=P)Ke._tickround="M";else if(Xe>=k&&Qt<=19||Xe>=d)Ke._tickround="S";else{var or=Ke.l2r(Ut+Xe).replace(/^-/,"").length;Ke._tickround=Math.max(Qt,or)-20,Ke._tickround<0&&(Ke._tickround=4)}}else if(S(Xe)||Xe.charAt(0)==="L"){var fr=Ke.range.map(Ke.r2d||Number);S(Xe)||(Xe=Number(Xe.substr(1))),Ke._tickround=2-Math.floor(Math.log(Xe)/Math.LN10+.01);var ar=Math.max(Math.abs(fr[0]),Math.abs(fr[1])),Ht=Math.floor(Math.log(ar)/Math.LN10+.01),mr=Ke.minexponent===void 0?3:Ke.minexponent;Math.abs(Ht)>mr&&(we(Ke.exponentformat)&&!Re(Ht)?Ke._tickexponent=3*Math.round((Ht-1)/3):Ke._tickexponent=Ht)}else Ke._tickround=null}Q.tickIncrement=function(Ke,Xe,Ut,Bt){var Qt=Ut?-1:1;if(S(Xe))return w.increment(Ke,Qt*Xe);var or=Xe.charAt(0),fr=Qt*Number(Xe.substr(1));if(or==="M")return w.incrementMonth(Ke,fr,Bt);if(or==="L")return Math.log(Math.pow(10,Ke)+fr)/Math.LN10;if(or==="D"){var ar=Xe==="D2"?nt:at,Ht=Ke+Qt*.01,mr=w.roundUp(w.mod(Ht,1),ar,Ut);return Math.floor(Ht)+Math.log(l.round(Math.pow(10,mr),1))/Math.LN10}throw"unrecognized dtick "+String(Xe)},Q.tickFirst=function(Ke,Xe){var Ut=Ke.r2l||Number,Bt=w.simpleMap(Ke.range,Ut,void 0,void 0,Xe),Qt=Bt[1]=0&&un<=Ke._length?bn:null};if(or&&w.isArrayOrTypedArray(Ke.ticktext)){var Sr=w.simpleMap(Ke.range,Ke.r2l),yr=(Math.abs(Sr[1]-Sr[0])-(Ke._lBreaks||0))/1e4;for(mr=0;mr"+ar;else{var mr=er(Ke),wr=Ke._trueSide||Ke.side;(!mr&&wr==="top"||mr&&wr==="bottom")&&(fr+="
")}Xe.text=fr}function et(Ke,Xe,Ut,Bt,Qt){var or=Ke.dtick,fr=Xe.x,ar=Ke.tickformat,Ht=typeof or=="string"&&or.charAt(0);if(Qt==="never"&&(Qt=""),Bt&&Ht!=="L"&&(or="L3",Ht="L"),ar||Ht==="L")Xe.text=Pe(Math.pow(10,fr),Ke,Qt,Bt);else if(S(or)||Ht==="D"&&w.mod(fr+.01,1)<.1){var mr=Math.round(fr),wr=Math.abs(mr),Sr=Ke.exponentformat;Sr==="power"||we(Sr)&&Re(mr)?(mr===0?Xe.text=1:mr===1?Xe.text="10":Xe.text="10"+(mr>1?"":I)+wr+"",Xe.fontSize*=1.25):(Sr==="e"||Sr==="E")&&wr>2?Xe.text="1"+Sr+(mr>0?"+":I)+wr:(Xe.text=Pe(Math.pow(10,fr),Ke,"","fakehover"),or==="D1"&&Ke._id.charAt(0)==="y"&&(Xe.dy-=Xe.fontSize/6))}else if(Ht==="D")Xe.text=String(Math.round(Math.pow(10,w.mod(fr,1)))),Xe.fontSize*=.75;else throw"unrecognized dtick "+String(or);if(Ke.dtick==="D1"){var yr=String(Xe.text).charAt(0);(yr==="0"||yr==="1")&&(Ke._id.charAt(0)==="y"?Xe.dx-=Xe.fontSize/4:(Xe.dy+=Xe.fontSize/2,Xe.dx+=(Ke.range[1]>Ke.range[0]?1:-1)*Xe.fontSize*(fr<0?.5:.25)))}}function Be(Ke,Xe){var Ut=Ke._categories[Math.round(Xe.x)];Ut===void 0&&(Ut=""),Xe.text=String(Ut)}function Ye(Ke,Xe,Ut){var Bt=Math.round(Xe.x),Qt=Ke._categories[Bt]||[],or=Qt[1]===void 0?"":String(Qt[1]),fr=Qt[0]===void 0?"":String(Qt[0]);Ut?Xe.text=fr+" - "+or:(Xe.text=or,Xe.text2=fr)}function Ze(Ke,Xe,Ut,Bt,Qt){Qt==="never"?Qt="":Ke.showexponent==="all"&&Math.abs(Xe.x/Ke.dtick)<1e-6&&(Qt="hide"),Xe.text=Pe(Xe.x,Ke,Qt,Bt)}function We(Ke,Xe,Ut,Bt,Qt){if(Ke.thetaunit==="radians"&&!Ut){var or=Xe.x/180;if(or===0)Xe.text="0";else{var fr=Fe(or);if(fr[1]>=100)Xe.text=Pe(w.deg2rad(Xe.x),Ke,Qt,Bt);else{var ar=Xe.x<0;fr[1]===1?fr[0]===1?Xe.text="π":Xe.text=fr[0]+"π":Xe.text=["",fr[0],"","⁄","",fr[1],"","π"].join(""),ar&&(Xe.text=I+Xe.text)}}}else Xe.text=Pe(Xe.x,Ke,Qt,Bt)}function Fe(Ke){function Xe(ar,Ht){return Math.abs(ar-Ht)<=1e-6}function Ut(ar,Ht){return Xe(Ht,0)?ar:Ut(Ht,ar%Ht)}function Bt(ar){for(var Ht=1;!Xe(Math.round(ar*Ht)/Ht,ar);)Ht*=10;return Ht}var Qt=Bt(Ke),or=Ke*Qt,fr=Math.abs(Ut(or,Qt));return[Math.round(or/fr),Math.round(Qt/fr)]}var Me=["f","p","n","μ","m","","k","M","G","T"];function we(Ke){return Ke==="SI"||Ke==="B"}function Re(Ke){return Ke>14||Ke<-15}function Pe(Ke,Xe,Ut,Bt){var Qt=Ke<0,or=Xe._tickround,fr=Ut||Xe.exponentformat||"B",ar=Xe._tickexponent,Ht=Q.getTickFormat(Xe),mr=Xe.separatethousands;if(Bt){var wr={exponentformat:fr,minexponent:Xe.minexponent,dtick:Xe.showexponent==="none"?Xe.dtick:S(Ke)&&Math.abs(Ke)||1,range:Xe.showexponent==="none"?Xe.range.map(Xe.r2d):[0,Ke||1]};lt(wr),or=(Number(wr._tickround)||0)+4,ar=wr._tickexponent,Xe.hoverformat&&(Ht=Xe.hoverformat)}if(Ht)return Xe._numFormat(Ht)(Ke).replace(/-/g,I);var Sr=Math.pow(10,-or)/2;if(fr==="none"&&(ar=0),Ke=Math.abs(Ke),Ke"+kr+"":fr==="B"&&ar===9?Ke+="B":we(fr)&&(Ke+=Me[ar/3+5])}return Qt?I+Ke:Ke}Q.getTickFormat=function(Ke){var Xe;function Ut(Ht){return typeof Ht!="string"?Ht:Number(Ht.replace("M",""))*A}function Bt(Ht,mr){var wr=["L","D"];if(typeof Ht==typeof mr){if(typeof Ht=="number")return Ht-mr;var Sr=wr.indexOf(Ht.charAt(0)),yr=wr.indexOf(mr.charAt(0));return Sr===yr?Number(Ht.replace(/(L|D)/g,""))-Number(mr.replace(/(L|D)/g,"")):Sr-yr}else return typeof Ht=="number"?1:-1}function Qt(Ht,mr,wr){var Sr=wr||function(kr){return kr},yr=mr[0],Xr=mr[1];return(!yr&&typeof yr!="number"||Sr(yr)<=Sr(Ht))&&(!Xr&&typeof Xr!="number"||Sr(Xr)>=Sr(Ht))}function or(Ht,mr){var wr=mr[0]===null,Sr=mr[1]===null,yr=Bt(Ht,mr[0])>=0,Xr=Bt(Ht,mr[1])<=0;return(wr||yr)&&(Sr||Xr)}var fr,ar;if(Ke.tickformatstops&&Ke.tickformatstops.length>0)switch(Ke.type){case"date":case"linear":{for(Xe=0;Xe=0&&Qt.unshift(Qt.splice(wr,1).shift())}});var ar={false:{left:0,right:0}};return w.syncOrAsync(Qt.map(function(Ht){return function(){if(Ht){var mr=Q.getFromId(Ke,Ht);Ut||(Ut={}),Ut.axShifts=ar,Ut.overlayingShiftedAx=fr;var wr=Q.drawOne(Ke,mr,Ut);return mr._shiftPusher&&vr(mr,mr._fullDepth||0,ar,!0),mr._r=mr.range.slice(),mr._rl=w.simpleMap(mr._r,mr.r2l),wr}}}))},Q.drawOne=function(Ke,Xe,Ut){Ut=Ut||{};var Bt=Ut.axShifts||{},Qt=Ut.overlayingShiftedAx||[],or,fr,ar;Xe.setScale();var Ht=Ke._fullLayout,mr=Xe._id,wr=mr.charAt(0),Sr=Q.counterLetter(mr),yr=Ht._plots[Xe._mainSubplot];if(!yr)return;if(Xe._shiftPusher=Xe.autoshift||Qt.indexOf(Xe._id)!==-1||Qt.indexOf(Xe.overlaying)!==-1,Xe._shiftPusher&Xe.anchor==="free"){var Xr=Xe.linewidth/2||0;Xe.ticks==="inside"&&(Xr+=Xe.ticklen),vr(Xe,Xr,Bt,!0),vr(Xe,Xe.shift||0,Bt,!1)}(Ut.skipTitle!==!0||Xe._shift===void 0)&&(Xe._shift=pr(Xe,Bt));var kr=yr[wr+"axislayer"],Dr=Xe._mainLinePosition,bn=Dr+=Xe._shift,un=Xe._mainMirrorPosition,Fn=Xe._vals=Q.calcTicks(Xe),On=[Xe.mirror,bn,un].join("_");for(or=0;or0?zn.bottom-Pn:0,_n))));var xa=0,Ra=0;if(Xe._shiftPusher&&(xa=Math.max(_n,zn.height>0?$r==="l"?Pn-zn.left:zn.right-Pn:0),Xe.title.text!==Ht._dfltTitle[wr]&&(Ra=(Xe._titleStandoff||0)+(Xe._titleScoot||0),$r==="l"&&(Ra+=Xt(Xe))),Xe._fullDepth=Math.max(xa,Ra)),Xe.automargin){Zn={x:0,y:0,r:0,l:0,t:0,b:0};var $a=[0,1],qi=typeof Xe._shift=="number"?Xe._shift:0;if(wr==="x"){if($r==="b"?Zn[$r]=Xe._depth:(Zn[$r]=Xe._depth=Math.max(zn.width>0?Pn-zn.top:0,_n),$a.reverse()),zn.width>0){var Di=zn.right-(Xe._offset+Xe._length);Di>0&&(Zn.xr=1,Zn.r=Di);var Js=Xe._offset-zn.left;Js>0&&(Zn.xl=0,Zn.l=Js)}}else if($r==="l"?(Xe._depth=Math.max(zn.height>0?Pn-zn.left:0,_n),Zn[$r]=Xe._depth-qi):(Xe._depth=Math.max(zn.height>0?zn.right-Pn:0,_n),Zn[$r]=Xe._depth+qi,$a.reverse()),zn.height>0){var Hs=zn.bottom-(Xe._offset+Xe._length);Hs>0&&(Zn.yb=0,Zn.b=Hs);var ss=Xe._offset-zn.top;ss>0&&(Zn.yt=1,Zn.t=ss)}Zn[Sr]=Xe.anchor==="free"?Xe.position:Xe._anchorAxis.domain[$a[0]],Xe.title.text!==Ht._dfltTitle[wr]&&(Zn[$r]+=Xt(Xe)+(Xe.title.standoff||0)),Xe.mirror&&Xe.anchor!=="free"&&(Wn={x:0,y:0,r:0,l:0,t:0,b:0},Wn[rn]=Xe.linewidth,Xe.mirror&&Xe.mirror!==!0&&(Wn[rn]+=_n),Xe.mirror===!0||Xe.mirror==="ticks"?Wn[Sr]=Xe._anchorAxis.domain[$a[1]]:(Xe.mirror==="all"||Xe.mirror==="allticks")&&(Wn[Sr]=[Xe._counterDomainMin,Xe._counterDomainMax][$a[1]]))}Qr&&(Oa=C.getComponentMethod("rangeslider","autoMarginOpts")(Ke,Xe)),typeof Xe.automargin=="string"&&(Ve(Zn,Xe.automargin),Ve(Wn,Xe.automargin)),i.autoMargin(Ke,sr(Xe),Zn),i.autoMargin(Ke,Ct(Xe),Wn),i.autoMargin(Ke,ht(Xe),Oa)}),w.syncOrAsync(vn)}};function Ve(Ke,Xe){if(Ke){var Ut=Object.keys(V).reduce(function(Bt,Qt){return Xe.indexOf(Qt)!==-1&&V[Qt].forEach(function(or){Bt[or]=1}),Bt},{});Object.keys(Ke).forEach(function(Bt){Ut[Bt]||(Bt.length===1?Ke[Bt]=0:delete Ke[Bt])})}}function Je(Ke,Xe){var Ut=[],Bt,Qt=function(or,fr){var ar=or.xbnd[fr];ar!==null&&Ut.push(w.extendFlat({},or,{x:ar}))};if(Xe.length){for(Bt=0;Bt60?-.5*Ia:Ke.side==="top"!==wr?-Ia:0};else if(Wr==="y"){if(Tn=!wr&&Zr==="left"||wr&&Zr==="right",gr=Tn?1:-1,wr&&(gr*=-1),un=yr,Fn=Xr*gr,On=0,!wr&&Math.abs(fn)===90&&(fn===-90&&Zr==="left"||fn===90&&Zr==="right"?On=q:On=.5),wr){var wn=S(fn)?+fn:0;if(wn!==0){var Nn=w.deg2rad(wn);Br=Math.abs(Math.sin(Nn))*q*gr,On=0}}bn.xFn=function(Yn){return Yn.dx+Xe-(un+Yn.fontSize*On)*gr+Br*Yn.fontSize},bn.yFn=function(Yn){return Yn.dy+Fn+Yn.fontSize*Z},bn.anchorFn=function(Yn,ga){return S(ga)&&Math.abs(ga)===90?"middle":Tn?"end":"start"},bn.heightFn=function(Yn,ga,Ia){return Ke.side==="right"&&(ga*=-1),ga<-30?-Ia:ga<30?-.5*Ia:0}}return bn};function xt(Ke){return[Ke.text,Ke.x,Ke.axInfo,Ke.font,Ke.fontSize,Ke.fontColor].join("_")}Q.drawTicks=function(Ke,Xe,Ut){Ut=Ut||{};var Bt=Xe._id+"tick",Qt=[].concat(Xe.minor&&Xe.minor.ticks?Ut.vals.filter(function(fr){return fr.minor&&!fr.noTick}):[]).concat(Xe.ticks?Ut.vals.filter(function(fr){return!fr.minor&&!fr.noTick}):[]),or=Ut.layer.selectAll("path."+Bt).data(Qt,xt);or.exit().remove(),or.enter().append("path").classed(Bt,1).classed("ticks",1).classed("crisp",Ut.crisp!==!1).each(function(fr){return n.stroke(l.select(this),fr.minor?Xe.minor.tickcolor:Xe.tickcolor)}).style("stroke-width",function(fr){return s.crispRound(Ke,fr.minor?Xe.minor.tickwidth:Xe.tickwidth,1)+"px"}).attr("d",Ut.path).style("display",null),hr(Xe,[H]),or.attr("transform",Ut.transFn)},Q.drawGrid=function(Ke,Xe,Ut){if(Ut=Ut||{},Xe.tickmode!=="sync"){var Bt=Xe._id+"grid",Qt=Xe.minor&&Xe.minor.showgrid,or=Qt?Ut.vals.filter(function(un){return un.minor}):[],fr=Xe.showgrid?Ut.vals.filter(function(un){return!un.minor}):[],ar=Ut.counterAxis;if(ar&&Q.shouldShowZeroLine(Ke,Xe,ar))for(var Ht=Xe.tickmode==="array",mr=0;mr=0;kr--){var Dr=kr?yr:Xr;if(Dr){var bn=Dr.selectAll("path."+Bt).data(kr?fr:or,xt);bn.exit().remove(),bn.enter().append("path").classed(Bt,1).classed("crisp",Ut.crisp!==!1),bn.attr("transform",Ut.transFn).attr("d",Ut.path).each(function(un){return n.stroke(l.select(this),un.minor?Xe.minor.gridcolor:Xe.gridcolor||"#ddd")}).style("stroke-dasharray",function(un){return s.dashStyle(un.minor?Xe.minor.griddash:Xe.griddash,un.minor?Xe.minor.gridwidth:Xe.gridwidth)}).style("stroke-width",function(un){return(un.minor?Sr:Xe._gw)+"px"}).style("display",null),typeof Ut.path=="function"&&bn.attr("d",Ut.path)}}hr(Xe,[G,U])}},Q.drawZeroLine=function(Ke,Xe,Ut){Ut=Ut||Ut;var Bt=Xe._id+"zl",Qt=Q.shouldShowZeroLine(Ke,Xe,Ut.counterAxis),or=Ut.layer.selectAll("path."+Bt).data(Qt?[{x:0,id:Xe._id}]:[]);or.exit().remove(),or.enter().append("path").classed(Bt,1).classed("zl",1).classed("crisp",Ut.crisp!==!1).each(function(){Ut.layer.selectAll("path").sort(function(fr,ar){return K(fr.id,ar.id)})}),or.attr("transform",Ut.transFn).attr("d",Ut.path).call(n.stroke,Xe.zerolinecolor||n.defaultLine).style("stroke-width",s.crispRound(Ke,Xe.zerolinewidth,Xe._gw||1)+"px").style("display",null),hr(Xe,[B])},Q.drawLabels=function(Ke,Xe,Ut){Ut=Ut||{};var Bt=Ke._fullLayout,Qt=Xe._id,or=Ut.cls||Qt+"tick",fr=Ut.vals.filter(function(Mr){return Mr.text}),ar=Ut.labelFns,Ht=Ut.secondary?0:Xe.tickangle,mr=(Xe._prevTickAngles||{})[or],wr=Ut.layer.selectAll("g."+or).data(Xe.showticklabels?fr:[],xt),Sr=[];wr.enter().append("g").classed(or,1).append("text").attr("text-anchor","middle").each(function(Mr){var cn=l.select(this),nn=Ke._promises.length;cn.call(m.positionText,ar.xFn(Mr),ar.yFn(Mr)).call(s.font,Mr.font,Mr.fontSize,Mr.fontColor).text(Mr.text).call(m.convertToTspans,Ke),Ke._promises[nn]?Sr.push(Ke._promises.pop().then(function(){yr(cn,Ht)})):yr(cn,Ht)}),hr(Xe,[W]),wr.exit().remove(),Ut.repositionOnUpdate&&wr.each(function(Mr){l.select(this).select("text").call(m.positionText,ar.xFn(Mr),ar.yFn(Mr))});function yr(Mr,cn){Mr.each(function(nn){var Sn=l.select(this),Jn=Sn.select(".text-math-group"),In=ar.anchorFn(nn,cn),Rn=Ut.transFn.call(Sn.node(),nn)+(S(cn)&&+cn!=0?" rotate("+cn+","+ar.xFn(nn)+","+(ar.yFn(nn)-nn.fontSize/2)+")":""),Xn=m.lineCount(Sn),la=ae*nn.fontSize,Da=ar.heightFn(nn,S(cn)?+cn:0,(Xn-1)*la);if(Da&&(Rn+=v(0,Da)),Jn.empty()){var Qa=Sn.select("text");Qa.attr({transform:Rn,"text-anchor":In}),Qa.style("opacity",1),Xe._adjustTickLabelsOverflow&&Xe._adjustTickLabelsOverflow()}else{var Pr=s.bBox(Jn.node()).width,Ur=Pr*{end:-.5,start:.5}[In];Jn.attr("transform",Rn+v(Ur,0))}})}Xe._adjustTickLabelsOverflow=function(){var Mr=Xe.ticklabeloverflow;if(!(!Mr||Mr==="allow")){var cn=Mr.indexOf("hide")!==-1,nn=Xe._id.charAt(0)==="x",Sn=0,Jn=nn?Ke._fullLayout.width:Ke._fullLayout.height;if(Mr.indexOf("domain")!==-1){var In=w.simpleMap(Xe.range,Xe.r2l);Sn=Xe.l2p(In[0])+Xe._offset,Jn=Xe.l2p(In[1])+Xe._offset}var Rn=Math.min(Sn,Jn),Xn=Math.max(Sn,Jn),la=Xe.side,Da=1/0,Qa=-1/0;wr.each(function(Vr){var An=l.select(this),Hn=An.select(".text-math-group");if(Hn.empty()){var yn=s.bBox(An.node()),vn=0;nn?(yn.right>Xn||yn.leftXn||yn.top+(Xe.tickangle?0:Vr.fontSize/4)Xe["_visibleLabelMin_"+In._id]?Vr.style("display","none"):Xn.K==="tick"&&!Rn&&Vr.style("display",null)})})})})},yr(wr,mr+1?mr:Ht);function Xr(){return Sr.length&&Promise.all(Sr)}var kr=null;function Dr(){if(yr(wr,Ht),fr.length&&Xe.autotickangles&&(Xe.type!=="log"||String(Xe.dtick).charAt(0)!=="D")){kr=Xe.autotickangles[0];var Mr=0,cn=[],nn,Sn=1;if(wr.each(function(_n){Mr=Math.max(Mr,_n.fontSize);var zn=Xe.l2p(_n.x),Zn=br(this),Wn=s.bBox(Zn.node());Sn=Math.max(Sn,m.lineCount(Zn)),cn.push({top:0,bottom:10,height:10,left:zn-Wn.width/2,right:zn+Wn.width/2+2,width:Wn.width+2})}),(Xe.tickson==="boundaries"||Xe.showdividers)&&!Ut.secondary){var Jn=2;for(Xe.ticks&&(Jn+=Xe.tickwidth/2),nn=0;nnMa*Ia&&(Nn=Ia,fn[Wr]=Tn[Wr]=Yn[Wr])}var ma=Math.abs(Nn-wn);ma-gr>0?(ma-=gr,gr*=1+gr/ma):gr=0,Xe._id.charAt(0)!=="y"&&(gr=-gr),fn[Zr]=Fn.p2r(Fn.r2p(Tn[Zr])+Br*gr),Fn.autorange==="min"||Fn.autorange==="max reversed"?(fn[0]=null,Fn._rangeInitial0=void 0,Fn._rangeInitial1=void 0):(Fn.autorange==="max"||Fn.autorange==="min reversed")&&(fn[1]=null,Fn._rangeInitial0=void 0,Fn._rangeInitial1=void 0),Bt._insideTickLabelsUpdaterange[Fn._name+".range"]=fn}var Aa=w.syncOrAsync(bn);return Aa&&Aa.then&&Ke._promises.push(Aa),Aa};function Lt(Ke,Xe,Ut){var Bt=Xe._id+"divider",Qt=Ut.vals,or=Ut.layer.selectAll("path."+Bt).data(Qt,xt);or.exit().remove(),or.enter().insert("path",":first-child").classed(Bt,1).classed("crisp",1).call(n.stroke,Xe.dividercolor).style("stroke-width",s.crispRound(Ke,Xe.dividerwidth,1)+"px"),or.attr("transform",Ut.transFn).attr("d",Ut.path)}Q.getPxPosition=function(Ke,Xe){var Ut=Ke._fullLayout._size,Bt=Xe._id.charAt(0),Qt=Xe.side,or;if(Xe.anchor!=="free"?or=Xe._anchorAxis:Bt==="x"?or={_offset:Ut.t+(1-(Xe.position||0))*Ut.h,_length:0}:Bt==="y"&&(or={_offset:Ut.l+(Xe.position||0)*Ut.w+Xe._shift,_length:0}),Qt==="top"||Qt==="left")return or._offset;if(Qt==="bottom"||Qt==="right")return or._offset+or._length};function Xt(Ke){var Xe=Ke.title.font.size,Ut=(Ke.title.text.match(m.BR_TAG_ALL)||[]).length;return Ke.title.hasOwnProperty("standoff")?Ut?Xe*(q+Ut*ae):Xe*q:Ut?Xe*(Ut+1)*ae:Xe}function dr(Ke,Xe){var Ut=Ke._fullLayout,Bt=Xe._id,Qt=Bt.charAt(0),or=Xe.title.font.size,fr;if(Xe.title.hasOwnProperty("standoff"))fr=Xe._depth+Xe.title.standoff+Xt(Xe);else{var ar=er(Xe);if(Xe.type==="multicategory")fr=Xe._depth;else{var Ht=1.5*or;ar&&(Ht=.5*or,Xe.ticks==="outside"&&(Ht+=Xe.ticklen)),fr=10+Ht+(Xe.linewidth?Xe.linewidth-1:0)}ar||(Qt==="x"?fr+=Xe.side==="top"?or*(Xe.showticklabels?1:0):or*(Xe.showticklabels?1.5:.5):fr+=Xe.side==="right"?or*(Xe.showticklabels?1:.5):or*(Xe.showticklabels?.5:0))}var mr=Q.getPxPosition(Ke,Xe),wr,Sr,yr;Qt==="x"?(Sr=Xe._offset+Xe._length/2,yr=Xe.side==="top"?mr-fr:mr+fr):(yr=Xe._offset+Xe._length/2,Sr=Xe.side==="right"?mr+fr:mr-fr,wr={rotate:"-90",offset:0});var Xr;if(Xe.type!=="multicategory"){var kr=Xe._selections[Xe._id+"tick"];if(Xr={selection:kr,side:Xe.side},kr&&kr.node()&&kr.node().parentNode){var Dr=s.getTranslate(kr.node().parentNode);Xr.offsetLeft=Dr.x,Xr.offsetTop=Dr.y}Xe.title.hasOwnProperty("standoff")&&(Xr.pad=0)}return Xe._titleStandoff=fr,a.draw(Ke,Bt+"title",{propContainer:Xe,propName:Xe._name+".title.text",placeholder:Ut._dfltTitle[Qt],avoid:Xr,transform:wr,attributes:{x:Sr,y:yr,"text-anchor":"middle"}})}Q.shouldShowZeroLine=function(Ke,Xe,Ut){var Bt=w.simpleMap(Xe.range,Xe.r2l);return Bt[0]*Bt[1]<=0&&Xe.zeroline&&(Xe.type==="linear"||Xe.type==="-")&&!(Xe.rangebreaks&&Xe.maskBreaks(0)===N)&&(Tt(Xe,0)||!Kt(Ke,Xe,Ut,Bt)||qt(Ke,Xe))},Q.clipEnds=function(Ke,Xe){return Xe.filter(function(Ut){return Tt(Ke,Ut.x)})};function Tt(Ke,Xe){var Ut=Ke.l2p(Xe);return Ut>1&&Ut1)for(Qt=1;Qt=Qt.min&&Kec*2}function o(u){return Math.max(1,(u-1)/1e3)}function h(u,b){for(var p=u.length,E=o(p),g=0,c=0,y={},A=0;Ag*2}function f(u){return C(u[0])&&C(u[1])}},28336:function(D,O,t){var l=t(38248),S=t(24040),i=t(3400),C=t(31780),w=t(51272),v=t(94724),m=t(26332),a=t(25404),n=t(95936),s=t(42568),o=t(22416),h=t(42136),f=t(96312),u=t(78344),b=t(33816).WEEKDAY_PATTERN,p=t(33816).HOUR_PATTERN;D.exports=function(A,M,R,T,L){var P=T.letter,d=T.font||{},k=T.splomStash||{},I=R("visible",!T.visibleDflt),N=M._template||{},B=M.type||N.type||"-",G;if(B==="date"){var U=S.getComponentMethod("calendars","handleDefaults");U(A,M,"calendar",T.calendar),T.noTicklabelmode||(G=R("ticklabelmode"))}var H="";(!T.noTicklabelposition||B==="multicategory")&&(H=i.coerce(A,M,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:G==="period"?["outside","inside"]:P==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),T.noTicklabeloverflow||R("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":B==="category"||B==="multicategory"?"allow":"hide past div"),u(M,L),f(A,M,R,T),o(A,M,R,T),B!=="category"&&!T.noHover&&R("hoverformat");var W=R("color"),V=W!==v.color.dflt?W:d.color,$=k.label||L._dfltTitle[P];if(s(A,M,R,B,T),!I)return M;R("title.text",$),i.coerceFont(R,"title.font",{family:d.family,size:i.bigFont(d.size),color:V}),m(A,M,R,B);var Z=T.hasMinor;if(Z&&(C.newContainer(M,"minor"),m(A,M,R,B,{isMinor:!0})),n(A,M,R,B,T),a(A,M,R,T),Z){var q=T.isMinor;T.isMinor=!0,a(A,M,R,T),T.isMinor=q}h(A,M,R,{dfltColor:W,bgColor:T.bgColor,showGrid:T.showGrid,hasMinor:Z,attributes:v}),Z&&!M.minor.ticks&&!M.minor.showgrid&&delete M.minor,(M.showline||M.ticks)&&R("mirror");var ae=B==="multicategory";if(!T.noTickson&&(B==="category"||ae)&&(M.ticks||M.showgrid)){var ie;ae&&(ie="boundaries");var fe=R("tickson",ie);fe==="boundaries"&&delete M.ticklabelposition}if(ae){var Q=R("showdividers");Q&&(R("dividercolor"),R("dividerwidth"))}if(B==="date")if(w(A,M,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:E}),!M.rangebreaks.length)delete M.rangebreaks;else{for(var J=0;J=2){var P="",d,k;if(L.length===2){for(d=0;d<2;d++)if(k=c(L[d]),k){P=b;break}}var I=R("pattern",P);if(I===b)for(d=0;d<2;d++)k=c(L[d]),k&&(A.bounds[d]=L[d]=k-1);if(I)for(d=0;d<2;d++)switch(k=L[d],I){case b:if(!l(k)){A.enabled=!1;return}if(k=+k,k!==Math.floor(k)||k<0||k>=7){A.enabled=!1;return}A.bounds[d]=L[d]=k;break;case p:if(!l(k)){A.enabled=!1;return}if(k=+k,k<0||k>24){A.enabled=!1;return}A.bounds[d]=L[d]=k;break}if(M.autorange===!1){var N=M.range;if(N[0]N[1]){A.enabled=!1;return}}else if(L[0]>N[0]&&L[1]m?1:-1:+(C.substr(1)||1)-+(w.substr(1)||1)},O.ref2id=function(C){return/^[xyz]/.test(C)?C.split(" ")[0]:!1};function i(C,w){if(w&&w.length){for(var v=0;v0||l(a),s;n&&(s="array");var o=v("categoryorder",s),h;o==="array"&&(h=v("categoryarray")),!n&&o==="array"&&(o=w.categoryorder="trace"),o==="trace"?w._initialCategories=[]:o==="array"?w._initialCategories=h.slice():(h=S(w,m).sort(),o==="category ascending"?w._initialCategories=h:o==="category descending"&&(w._initialCategories=h.reverse()))}}},98728:function(D,O,t){var l=t(38248),S=t(3400),i=t(39032),C=i.ONEDAY,w=i.ONEWEEK;O.dtick=function(v,m){var a=m==="log",n=m==="date",s=m==="category",o=n?C:1;if(!v)return o;if(l(v))return v=Number(v),v<=0?o:s?Math.max(1,Math.round(v)):n?Math.max(.1,v):v;if(typeof v!="string"||!(n||a))return o;var h=v.charAt(0),f=v.substr(1);return f=l(f)?Number(f):0,f<=0||!(n&&h==="M"&&f===Math.round(f)||a&&h==="L"||a&&h==="D"&&(f===1||f===2))?o:v},O.tick0=function(v,m,a,n){if(m==="date")return S.cleanDate(v,S.dateTick0(a,n%w===0?1:0));if(!(n==="D1"||n==="D2"))return l(v)?Number(v):0}},33816:function(D,O,t){var l=t(53756).counter;D.exports={idRegex:{x:l("x","( domain)?"),y:l("y","( domain)?")},attrRegex:l("[xy]axis"),xAxisMatch:l("xaxis"),yAxisMatch:l("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(D,O,t){var l=t(3400),S=t(19280),i=t(79811).id2name,C=t(94724),w=t(21160),v=t(78344),m=t(39032).ALMOST_EQUAL,a=t(84284).FROM_BL;O.handleDefaults=function(p,E,g){var c=g.axIds,y=g.axHasImage,A=E._axisConstraintGroups=[],M=E._axisMatchGroups=[],R,T,L,P,d,k,I,N;for(R=0;RA?g.substr(A):c.substr(y))+M}function u(p,E){for(var g=E._size,c=g.h/g.w,y={},A=Object.keys(p),M=0;Mm*N&&!H)){for(A=0;AJ&&lefe&&(fe=le);var xe=(fe-ie)/(2*Q);d/=xe,ie=T.l2r(ie),fe=T.l2r(fe),T.range=T._input.range=Z=0){mr._fullLayout._deactivateShape(mr);return}var wr=mr._fullLayout.clickmode;if(J(mr),ar===2&&!Ue&&Xe(),Ie)wr.indexOf("select")>-1&&L(Ht,mr,vt,at,he.id,ut),wr.indexOf("event")>-1&&o.click(mr,Ht,he.id);else if(ar===1&&Ue){var Sr=Te?ze:Ne,yr=Te==="s"||Ae==="w"?0:1,Xr=Sr._name+".range["+yr+"]",kr=W(Sr,yr),Dr="left",bn="middle";if(Sr.fixedrange)return;Te?(bn=Te==="n"?"top":"bottom",Sr.side==="right"&&(Dr="right")):Ae==="e"&&(Dr="right"),mr._context.showAxisRangeEntryBoxes&&l.select(yt).call(a.makeEditable,{gd:mr,immediate:!0,background:mr._fullLayout.paper_bgcolor,text:String(kr),fill:Sr.tickfont?Sr.tickfont.color:"#444",horizontalAlign:Dr,verticalAlign:bn}).on("edit",function(un){var Fn=Sr.d2r(un);Fn!==void 0&&v.call("_guiRelayout",mr,Xr,Fn)})}}u.init(ut);var xt,Lt,Xt,dr,Tt,Kt,qt,br,sr,Ct;function ht(ar,Ht,mr){var wr=yt.getBoundingClientRect();xt=Ht-wr.left,Lt=mr-wr.top,le._fullLayout._calcInverseTransform(le);var Sr=S.apply3DTransform(le._fullLayout._invTransform)(xt,Lt);xt=Sr[0],Lt=Sr[1],Xt={l:xt,r:xt,w:0,t:Lt,b:Lt,h:0},dr=le._hmpixcount?le._hmlumcount/le._hmpixcount:C(le._fullLayout.plot_bgcolor).getLuminance(),Tt="M0,0H"+rt+"V"+lt+"H0V0",Kt=!1,qt="xy",Ct=!1,br=ae(be,dr,nt,mt,Tt),sr=ie(be,nt,mt)}function Mt(ar,Ht){if(le._transitioningWithDuration)return!1;var mr=Math.max(0,Math.min(rt,Pe*ar+xt)),wr=Math.max(0,Math.min(lt,Ve*Ht+Lt)),Sr=Math.abs(mr-xt),yr=Math.abs(wr-Lt);Xt.l=Math.min(xt,mr),Xt.r=Math.max(xt,mr),Xt.t=Math.min(Lt,wr),Xt.b=Math.max(Lt,wr);function Xr(){qt="",Xt.r=Xt.l,Xt.t=Xt.b,sr.attr("d","M0,0Z")}if(dt.isSubplotConstrained)Sr>I||yr>I?(qt="xy",Sr/rt>yr/lt?(yr=Sr*lt/rt,Lt>wr?Xt.t=Lt-yr:Xt.b=Lt+yr):(Sr=yr*rt/lt,xt>mr?Xt.l=xt-Sr:Xt.r=xt+Sr),sr.attr("d",ce(Xt))):Xr();else if(wt.isSubplotConstrained)if(Sr>I||yr>I){qt="xy";var kr=Math.min(Xt.l/rt,(lt-Xt.b)/lt),Dr=Math.max(Xt.r/rt,(lt-Xt.t)/lt);Xt.l=kr*rt,Xt.r=Dr*rt,Xt.b=(1-kr)*lt,Xt.t=(1-Dr)*lt,sr.attr("d",ce(Xt))}else Xr();else!Be||yr0){var un;if(wt.isSubplotConstrained||!et&&Be.length===1){for(un=0;un1&&(Xr.maxallowed!==void 0&&Ze===(Xr.range[0]1&&(kr.maxallowed!==void 0&&We===(kr.range[0]=0?Math.min(le,.9):1/(1/Math.max(le,-.3)+3.222))}function q(le,he,xe){return le?le==="nsew"?xe?"":he==="pan"?"move":"crosshair":le.toLowerCase()+"-resize":"pointer"}function ae(le,he,xe,Ee,Se){return le.append("path").attr("class","zoombox").style({fill:he>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(xe,Ee)).attr("d",Se+"Z")}function ie(le,he,xe){return le.append("path").attr("class","zoombox-corners").style({fill:n.background,stroke:n.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(he,xe)).attr("d","M0,0Z")}function fe(le,he,xe,Ee,Se,ke){le.attr("d",Ee+"M"+xe.l+","+xe.t+"v"+xe.h+"h"+xe.w+"v-"+xe.h+"h-"+xe.w+"Z"),Q(le,he,Se,ke)}function Q(le,he,xe,Ee){xe||(le.transition().style("fill",Ee>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),he.transition().style("opacity",1).duration(200))}function J(le){l.select(le).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function oe(le){N&&le.data&&le._context.showTips&&(S.notifier(S._(le,"Double-click to zoom back out"),"long"),N=!1)}function K(le,he){return"M"+(le.l-.5)+","+(he-I-.5)+"h-3v"+(2*I+1)+"h3ZM"+(le.r+.5)+","+(he-I-.5)+"h3v"+(2*I+1)+"h-3Z"}function ne(le,he){return"M"+(he-I-.5)+","+(le.t-.5)+"v-3h"+(2*I+1)+"v3ZM"+(he-I-.5)+","+(le.b+.5)+"v3h"+(2*I+1)+"v-3Z"}function ce(le){var he=Math.floor(Math.min(le.b-le.t,le.r-le.l,I)/2);return"M"+(le.l-3.5)+","+(le.t-.5+he)+"h3v"+-he+"h"+he+"v-3h-"+(he+3)+"ZM"+(le.r+3.5)+","+(le.t-.5+he)+"h-3v"+-he+"h"+-he+"v-3h"+(he+3)+"ZM"+(le.r+3.5)+","+(le.b+.5-he)+"h-3v"+he+"h"+-he+"v3h"+(he+3)+"ZM"+(le.l-3.5)+","+(le.b+.5-he)+"h3v"+he+"h"+he+"v3h-"+(he+3)+"Z"}function re(le,he,xe,Ee,Se){for(var ke=!1,Te={},Ae={},be,Ie,Ue,Ne,ze=(Se||{}).xaHash,$e=(Se||{}).yaHash,st=0;stR[1]-.000244140625&&(w.domain=u),S.noneOrAll(C.domain,w.domain,u),w.tickmode==="sync"&&(w.tickmode="auto")}return v("layer"),w}},42568:function(D,O,t){var l=t(85024);D.exports=function(i,C,w,v,m){m||(m={});var a=m.tickSuffixDflt,n=l(i),s=w("tickprefix");s&&w("showtickprefix",n);var o=w("ticksuffix",a);o&&w("showticksuffix",n)}},96312:function(D,O,t){var l=t(76808);D.exports=function(i,C,w,v){var m=C._template||{},a=C.type||m.type||"-";w("minallowed"),w("maxallowed");var n=w("range");if(!n){var s;!v.noInsiderange&&a!=="log"&&(s=w("insiderange"),s&&(s[0]===null||s[1]===null)&&(C.insiderange=!1,s=void 0),s&&(n=w("range",s)))}var o=C.getAutorangeDflt(n,v),h=w("autorange",o),f;n&&(n[0]===null&&n[1]===null||(n[0]===null||n[1]===null)&&(h==="reversed"||h===!0)||n[0]!==null&&(h==="min"||h==="max reversed")||n[1]!==null&&(h==="max"||h==="min reversed"))&&(n=void 0,delete C.range,C.autorange=!0,f=!0),f||(o=C.getAutorangeDflt(n,v),h=w("autorange",o)),h&&(l(w,h,n),(a==="linear"||a==="-")&&w("rangemode")),C.cleanRange()}},21160:function(D,O,t){var l=t(84284).FROM_BL;D.exports=function(i,C,w){w===void 0&&(w=l[i.constraintoward||"center"]);var v=[i.r2l(i.range[0]),i.r2l(i.range[1])],m=v[0]+(v[1]-v[0])*w;i.range=i._input.range=[i.l2r(m+(v[0]-m)*C),i.l2r(m+(v[1]-m)*C)],i.setScale()}},78344:function(D,O,t){var l=t(33428),S=t(94336).E9,i=t(3400),C=i.numberFormat,w=t(38248),v=i.cleanNumber,m=i.ms2DateTime,a=i.dateTime2ms,n=i.ensureNumber,s=i.isArrayOrTypedArray,o=t(39032),h=o.FP_SAFE,f=o.BADNUM,u=o.LOG_CLIP,b=o.ONEWEEK,p=o.ONEDAY,E=o.ONEHOUR,g=o.ONEMIN,c=o.ONESEC,y=t(79811),A=t(33816),M=A.HOUR_PATTERN,R=A.WEEKDAY_PATTERN;function T(P){return Math.pow(10,P)}function L(P){return P!=null}D.exports=function(d,k){k=k||{};var I=d._id||"x",N=I.charAt(0);function B(K,ne){if(K>0)return Math.log(K)/Math.LN10;if(K<=0&&ne&&d.range&&d.range.length===2){var ce=d.range[0],re=d.range[1];return .5*(ce+re-2*u*Math.abs(ce-re))}else return f}function G(K,ne,ce,re){if((re||{}).msUTC&&w(K))return+K;var ee=a(K,ce||d.calendar);if(ee===f)if(w(K)){K=+K;var de=Math.floor(i.mod(K+.05,1)*10),le=Math.round(K-de/10);ee=a(new Date(le))+de/10}else return f;return ee}function U(K,ne,ce){return m(K,ne,ce||d.calendar)}function H(K){return d._categories[Math.round(K)]}function W(K){if(L(K)){if(d._categoriesMap===void 0&&(d._categoriesMap={}),d._categoriesMap[K]!==void 0)return d._categoriesMap[K];d._categories.push(typeof K=="number"?String(K):K);var ne=d._categories.length-1;return d._categoriesMap[K]=ne,ne}return f}function V(K,ne){for(var ce=new Array(ne),re=0;red.range[1]&&(ce=!ce);for(var re=ce?-1:1,ee=re*K,de=0,le=0;lexe)de=le+1;else{de=ee<(he+xe)/2?le:le+1;break}}var Ee=d._B[de]||0;return isFinite(Ee)?ae(K,d._m2,Ee):0},Q=function(K){var ne=d._rangebreaks.length;if(!ne)return ie(K,d._m,d._b);for(var ce=0,re=0;red._rangebreaks[re].pmax&&(ce=re+1);return ie(K,d._m2,d._B[ce])}}d.c2l=d.type==="log"?B:n,d.l2c=d.type==="log"?T:n,d.l2p=fe,d.p2l=Q,d.c2p=d.type==="log"?function(K,ne){return fe(B(K,ne))}:fe,d.p2c=d.type==="log"?function(K){return T(Q(K))}:Q,["linear","-"].indexOf(d.type)!==-1?(d.d2r=d.r2d=d.d2c=d.r2c=d.d2l=d.r2l=v,d.c2d=d.c2r=d.l2d=d.l2r=n,d.d2p=d.r2p=function(K){return d.l2p(v(K))},d.p2d=d.p2r=Q,d.cleanPos=n):d.type==="log"?(d.d2r=d.d2l=function(K,ne){return B(v(K),ne)},d.r2d=d.r2c=function(K){return T(v(K))},d.d2c=d.r2l=v,d.c2d=d.l2r=n,d.c2r=B,d.l2d=T,d.d2p=function(K,ne){return d.l2p(d.d2r(K,ne))},d.p2d=function(K){return T(Q(K))},d.r2p=function(K){return d.l2p(v(K))},d.p2r=Q,d.cleanPos=n):d.type==="date"?(d.d2r=d.r2d=i.identity,d.d2c=d.r2c=d.d2l=d.r2l=G,d.c2d=d.c2r=d.l2d=d.l2r=U,d.d2p=d.r2p=function(K,ne,ce){return d.l2p(G(K,0,ce))},d.p2d=d.p2r=function(K,ne,ce){return U(Q(K),ne,ce)},d.cleanPos=function(K){return i.cleanDate(K,f,d.calendar)}):d.type==="category"?(d.d2c=d.d2l=W,d.r2d=d.c2d=d.l2d=H,d.d2r=d.d2l_noadd=Z,d.r2c=function(K){var ne=q(K);return ne!==void 0?ne:d.fraction2r(.5)},d.l2r=d.c2r=n,d.r2l=q,d.d2p=function(K){return d.l2p(d.r2c(K))},d.p2d=function(K){return H(Q(K))},d.r2p=d.d2p,d.p2r=Q,d.cleanPos=function(K){return typeof K=="string"&&K!==""?K:n(K)}):d.type==="multicategory"&&(d.r2d=d.c2d=d.l2d=H,d.d2r=d.d2l_noadd=Z,d.r2c=function(K){var ne=Z(K);return ne!==void 0?ne:d.fraction2r(.5)},d.r2c_just_indices=$,d.l2r=d.c2r=n,d.r2l=Z,d.d2p=function(K){return d.l2p(d.r2c(K))},d.p2d=function(K){return H(Q(K))},d.r2p=d.d2p,d.p2r=Q,d.cleanPos=function(K){return Array.isArray(K)||typeof K=="string"&&K!==""?K:n(K)},d.setupMultiCategory=function(K){var ne=d._traceIndices,ce,re,ee=d._matchGroup;if(ee&&d._categories.length===0){for(var de in ee)if(de!==I){var le=k[y.id2name(de)];ne=ne.concat(le._traceIndices)}}var he=[[0,{}],[0,{}]],xe=[];for(ce=0;cele[1]&&(re[de?0:1]=ce),re[0]===re[1]){var he=d.l2r(ne),xe=d.l2r(ce);if(ne!==void 0){var Ee=he+1;ce!==void 0&&(Ee=Math.min(Ee,xe)),re[de?1:0]=Ee}if(ce!==void 0){var Se=xe+1;ne!==void 0&&(Se=Math.max(Se,he)),re[de?0:1]=Se}}}},d.cleanRange=function(K,ne){d._cleanRange(K,ne),d.limitRange(K)},d._cleanRange=function(K,ne){ne||(ne={}),K||(K="range");var ce=i.nestedProperty(d,K).get(),re,ee;if(d.type==="date"?ee=i.dfltRange(d.calendar):N==="y"?ee=A.DFLTRANGEY:d._name==="realaxis"?ee=[0,1]:ee=ne.dfltRange||A.DFLTRANGEX,ee=ee.slice(),(d.rangemode==="tozero"||d.rangemode==="nonnegative")&&(ee[0]=0),!ce||ce.length!==2){i.nestedProperty(d,K).set(ee);return}var de=ce[0]===null,le=ce[1]===null;for(d.type==="date"&&!d.autorange&&(ce[0]=i.cleanDate(ce[0],f,d.calendar),ce[1]=i.cleanDate(ce[1],f,d.calendar)),re=0;re<2;re++)if(d.type==="date"){if(!i.isDateTime(ce[re],d.calendar)){d[K]=ee;break}if(d.r2l(ce[0])===d.r2l(ce[1])){var he=i.constrain(d.r2l(ce[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);ce[0]=d.l2r(he-1e3),ce[1]=d.l2r(he+1e3);break}}else{if(!w(ce[re]))if(!(de||le)&&w(ce[1-re]))ce[re]=ce[1-re]*(re?10:.1);else{d[K]=ee;break}if(ce[re]<-h?ce[re]=-h:ce[re]>h&&(ce[re]=h),ce[0]===ce[1]){var xe=Math.max(1,Math.abs(ce[0]*1e-6));ce[0]-=xe,ce[1]+=xe}}},d.setScale=function(K){var ne=k._size;if(d.overlaying){var ce=y.getFromId({_fullLayout:k},d.overlaying);d.domain=ce.domain}var re=K&&d._r?"_r":"range",ee=d.calendar;d.cleanRange(re);var de=d.r2l(d[re][0],ee),le=d.r2l(d[re][1],ee),he=N==="y";if(he?(d._offset=ne.t+(1-d.domain[1])*ne.h,d._length=ne.h*(d.domain[1]-d.domain[0]),d._m=d._length/(de-le),d._b=-d._m*le):(d._offset=ne.l+d.domain[0]*ne.w,d._length=ne.w*(d.domain[1]-d.domain[0]),d._m=d._length/(le-de),d._b=-d._m*de),d._rangebreaks=[],d._lBreaks=0,d._m2=0,d._B=[],d.rangebreaks){var xe,Ee;if(d._rangebreaks=d.locateBreaks(Math.min(de,le),Math.max(de,le)),d._rangebreaks.length){for(xe=0;xele&&(Se=!Se),Se&&d._rangebreaks.reverse();var ke=Se?-1:1;for(d._m2=ke*d._length/(Math.abs(le-de)-d._lBreaks),d._B.push(-d._m2*(he?le:de)),xe=0;xeee&&(ee+=7,deee&&(ee+=24,de=re&&de=re&&K=at.min&&(zeat.max&&(at.max=$e),st=!1)}st&&le.push({min:ze,max:$e})}};for(ce=0;ce rect").call(C.setTranslate,0,0).call(C.setScale,1,1),M.plot.call(C.setTranslate,R._offset,T._offset).call(C.setScale,1,1);var L=M.plot.selectAll(".scatterlayer .trace");L.selectAll(".point").call(C.setPointGroupScale,1,1),L.selectAll(".textpoint").call(C.setTextPointsScale,1,1),L.call(C.hideOutsideRangePoints,M)}function f(M,R){var T=M.plotinfo,L=T.xaxis,P=T.yaxis,d=L._length,k=P._length,I=!!M.xr1,N=!!M.yr1,B=[];if(I){var G=i.simpleMap(M.xr0,L.r2l),U=i.simpleMap(M.xr1,L.r2l),H=G[1]-G[0],W=U[1]-U[0];B[0]=(G[0]*(1-R)+R*U[0]-G[0])/(G[1]-G[0])*d,B[2]=d*(1-R+R*W/H),L.range[0]=L.l2r(G[0]*(1-R)+R*U[0]),L.range[1]=L.l2r(G[1]*(1-R)+R*U[1])}else B[0]=0,B[2]=d;if(N){var V=i.simpleMap(M.yr0,P.r2l),$=i.simpleMap(M.yr1,P.r2l),Z=V[1]-V[0],q=$[1]-$[0];B[1]=(V[1]*(1-R)+R*$[1]-V[1])/(V[0]-V[1])*k,B[3]=k*(1-R+R*q/Z),P.range[0]=L.l2r(V[0]*(1-R)+R*$[0]),P.range[1]=P.l2r(V[1]*(1-R)+R*$[1])}else B[1]=0,B[3]=k;w.drawOne(m,L,{skipTitle:!0}),w.drawOne(m,P,{skipTitle:!0}),w.redrawComponents(m,[L._id,P._id]);var ae=I?d/B[2]:1,ie=N?k/B[3]:1,fe=I?B[0]:0,Q=N?B[1]:0,J=I?B[0]/B[2]*d:0,oe=N?B[1]/B[3]*k:0,K=L._offset-J,ne=P._offset-oe;T.clipRect.call(C.setTranslate,fe,Q).call(C.setScale,1/ae,1/ie),T.plot.call(C.setTranslate,K,ne).call(C.setScale,ae,ie),C.setPointGroupScale(T.zoomScalePts,1/ae,1/ie),C.setTextPointsScale(T.zoomScaleTxt,1/ae,1/ie)}var u;s&&(u=s());function b(){for(var M={},R=0;Rn.duration?(b(),c=window.cancelAnimationFrame(A)):c=window.requestAnimationFrame(A)}return E=Date.now(),c=window.requestAnimationFrame(A),Promise.resolve()}},14944:function(D,O,t){var l=t(24040).traceIs,S=t(52976);D.exports=function(a,n,s,o){s("autotypenumbers",o.autotypenumbersDflt);var h=s("type",(o.splomStash||{}).type);h==="-"&&(i(n,o.data),n.type==="-"?n.type="linear":a.type=n.type)};function i(m,a){if(m.type==="-"){var n=m._id,s=n.charAt(0),o;n.indexOf("scene")!==-1&&(n=s);var h=C(a,n,s);if(h){if(h.type==="histogram"&&s==={v:"y",h:"x"}[h.orientation||"v"]){m.type="linear";return}var f=s+"calendar",u=h[f],b={noMultiCategory:!l(h,"cartesian")||l(h,"noMultiCategory")};if(h.type==="box"&&h._hasPreCompStats&&s==={h:"x",v:"y"}[h.orientation||"v"]&&(b.noMultiCategory=!0),b.autotypenumbers=m.autotypenumbers,v(h,s)){var p=w(h),E=[];for(o=0;o0&&(o["_"+n+"axes"]||{})[a])return o;if((o[n+"axis"]||n)===a){if(v(o,n))return o;if((o[n]||[]).length||o[n+"0"])return o}}}function w(m){return{v:"x",h:"y"}[m.orientation||"v"]}function v(m,a){var n=w(m),s=l(m,"box-violin"),o=l(m._fullInput||{},"candlestick");return s&&!o&&a===n&&m[n]===void 0&&m[n+"0"]===void 0}},62460:function(D,O,t){var l=t(24040),S=t(3400);O.manageCommandObserver=function(a,n,s,o){var h={},f=!0;n&&n._commandObserver&&(h=n._commandObserver),h.cache||(h.cache={}),h.lookupTable={};var u=O.hasSimpleAPICommandBindings(a,s,h.lookupTable);if(n&&n._commandObserver){if(u)return h;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,h}if(u){i(a,u,h.cache),h.check=function(){if(f){var g=i(a,u,h.cache);return g.changed&&o&&h.lookupTable[g.value]!==void 0&&(h.disable(),Promise.resolve(o({value:g.value,type:u.type,prop:u.prop,traces:u.traces,index:h.lookupTable[g.value]})).then(h.enable,h.enable)),g.changed}};for(var b=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],p=0;p0?".":"")+h;S.isPlainObject(f)?m(f,n,u,o+1):n(u,h,f)}})}},86968:function(D,O,t){var l=t(92880).extendFlat;O.u=function(S,i){S=S||{},i=i||{};var C={valType:"info_array",editType:S.editType,items:[{valType:"number",min:0,max:1,editType:S.editType},{valType:"number",min:0,max:1,editType:S.editType}],dflt:[0,1]};S.name&&S.name+"",S.trace,i.description&&""+i.description;var w={x:l({},C,{}),y:l({},C,{}),editType:S.editType};return S.noGridCell||(w.row={valType:"integer",min:0,dflt:0,editType:S.editType},w.column={valType:"integer",min:0,dflt:0,editType:S.editType}),w},O.Q=function(S,i,C,w){var v=w&&w.x||[0,1],m=w&&w.y||[0,1],a=i.grid;if(a){var n=C("domain.column");n!==void 0&&(n0&&W._module.calcGeoJSON(H,N)}if(!B){var V=this.updateProjection(I,N);if(V)return;(!this.viewInitial||this.scope!==G.scope)&&this.saveViewInitial(G)}this.scope=G.scope,this.updateBaseLayers(N,G),this.updateDims(N,G),this.updateFx(N,G),h.generalUpdatePerTraceModule(this.graphDiv,this,I,G);var $=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=$.selectAll(".point"),this.dataPoints.text=$.selectAll("text"),this.dataPaths.line=$.selectAll(".js-line");var Z=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Z.selectAll("path"),this._render()},L.updateProjection=function(I,N){var B=this.graphDiv,G=N[this.id],U=N._size,H=G.domain,W=G.projection,V=G.lonaxis,$=G.lataxis,Z=V._ax,q=$._ax,ae=this.projection=P(G),ie=[[U.l+U.w*H.x[0],U.t+U.h*(1-H.y[1])],[U.l+U.w*H.x[1],U.t+U.h*(1-H.y[0])]],fe=G.center||{},Q=W.rotation||{},J=V.range||[],oe=$.range||[];if(G.fitbounds){Z._length=ie[1][0]-ie[0][0],q._length=ie[1][1]-ie[0][1],Z.range=u(B,Z),q.range=u(B,q);var K=(Z.range[0]+Z.range[1])/2,ne=(q.range[0]+q.range[1])/2;if(G._isScoped)fe={lon:K,lat:ne};else if(G._isClipped){fe={lon:K,lat:ne},Q={lon:K,lat:ne,roll:Q.roll};var ce=W.type,re=y.lonaxisSpan[ce]/2||180,ee=y.lataxisSpan[ce]/2||90;J=[K-re,K+re],oe=[ne-ee,ne+ee]}else fe={lon:K,lat:ne},Q={lon:K,lat:Q.lat,roll:Q.roll}}ae.center([fe.lon-Q.lon,fe.lat-Q.lat]).rotate([-Q.lon,-Q.lat,Q.roll]).parallels(W.parallels);var de=k(J,oe);ae.fitExtent(ie,de);var le=this.bounds=ae.getBounds(de),he=this.fitScale=ae.scale(),xe=ae.translate();if(G.fitbounds){var Ee=ae.getBounds(k(Z.range,q.range)),Se=Math.min((le[1][0]-le[0][0])/(Ee[1][0]-Ee[0][0]),(le[1][1]-le[0][1])/(Ee[1][1]-Ee[0][1]));isFinite(Se)?ae.scale(Se*he):m.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ae.scale(W.scale*he);var ke=this.midPt=[(le[0][0]+le[1][0])/2,(le[0][1]+le[1][1])/2];if(ae.translate([xe[0]+(ke[0]-xe[0]),xe[1]+(ke[1]-xe[1])]).clipExtent(le),G._isAlbersUsa){var Te=ae([fe.lon,fe.lat]),Ae=ae.translate();ae.translate([Ae[0]-(Te[0]-Ae[0]),Ae[1]-(Te[1]-Ae[1])])}},L.updateBaseLayers=function(I,N){var B=this,G=B.topojson,U=B.layers,H=B.basePaths;function W(ie){return ie==="lonaxis"||ie==="lataxis"}function V(ie){return!!y.lineLayers[ie]}function $(ie){return!!y.fillLayers[ie]}var Z=this.hasChoropleth?y.layersForChoropleth:y.layers,q=Z.filter(function(ie){return V(ie)||$(ie)?N["show"+ie]:W(ie)?N[ie].showgrid:!0}),ae=B.framework.selectAll(".layer").data(q,String);ae.exit().each(function(ie){delete U[ie],delete H[ie],l.select(this).remove()}),ae.enter().append("g").attr("class",function(ie){return"layer "+ie}).each(function(ie){var fe=U[ie]=l.select(this);ie==="bg"?B.bgRect=fe.append("rect").style("pointer-events","all"):W(ie)?H[ie]=fe.append("path").style("fill","none"):ie==="backplot"?fe.append("g").classed("choroplethlayer",!0):ie==="frontplot"?fe.append("g").classed("scatterlayer",!0):V(ie)?H[ie]=fe.append("path").style("fill","none").style("stroke-miterlimit",2):$(ie)&&(H[ie]=fe.append("path").style("stroke","none"))}),ae.order(),ae.each(function(ie){var fe=H[ie],Q=y.layerNameToAdjective[ie];ie==="frame"?fe.datum(y.sphereSVG):V(ie)||$(ie)?fe.datum(R(G,G.objects[ie])):W(ie)&&fe.datum(d(ie,N,I)).call(n.stroke,N[ie].gridcolor).call(s.dashLine,N[ie].griddash,N[ie].gridwidth),V(ie)?fe.call(n.stroke,N[Q+"color"]).call(s.dashLine,"",N[Q+"width"]):$(ie)&&fe.call(n.fill,N[Q+"color"])})},L.updateDims=function(I,N){var B=this.bounds,G=(N.framewidth||0)/2,U=B[0][0]-G,H=B[0][1]-G,W=B[1][0]-U+G,V=B[1][1]-H+G;s.setRect(this.clipRect,U,H,W,V),this.bgRect.call(s.setRect,U,H,W,V).call(n.fill,N.bgcolor),this.xaxis._offset=U,this.xaxis._length=W,this.yaxis._offset=H,this.yaxis._length=V},L.updateFx=function(I,N){var B=this,G=B.graphDiv,U=B.bgRect,H=I.dragmode,W=I.clickmode;if(B.isStatic)return;function V(){var ae=B.viewInitial,ie={};for(var fe in ae)ie[B.id+"."+fe]=ae[fe];v.call("_guiRelayout",G,ie),G.emit("plotly_doubleclick",null)}function $(ae){return B.projection.invert([ae[0]+B.xaxis._offset,ae[1]+B.yaxis._offset])}var Z=function(ae,ie){if(ie.isRect){var fe=ae.range={};fe[B.id]=[$([ie.xmin,ie.ymin]),$([ie.xmax,ie.ymax])]}else{var Q=ae.lassoPoints={};Q[B.id]=ie.map($)}},q={element:B.bgRect.node(),gd:G,plotinfo:{id:B.id,xaxis:B.xaxis,yaxis:B.yaxis,fillRangeItems:Z},xaxes:[B.xaxis],yaxes:[B.yaxis],subplot:B.id,clickFn:function(ae){ae===2&&E(G)}};H==="pan"?(U.node().onmousedown=null,U.call(c(B,N)),U.on("dblclick.zoom",V),G._context._scrollZoom.geo||U.on("wheel.zoom",null)):(H==="select"||H==="lasso")&&(U.on(".zoom",null),q.prepFn=function(ae,ie,fe){p(ae,ie,fe,q,H)},b.init(q)),U.on("mousemove",function(){var ae=B.projection.invert(m.getPositionFromD3Event());if(!ae)return b.unhover(G,l.event);B.xaxis.p2c=function(){return ae[0]},B.yaxis.p2c=function(){return ae[1]},o.hover(G,l.event,B.id)}),U.on("mouseout",function(){G._dragging||b.unhover(G,l.event)}),U.on("click",function(){H!=="select"&&H!=="lasso"&&(W.indexOf("select")>-1&&g(l.event,G,[B.xaxis],[B.yaxis],B.id,q),W.indexOf("event")>-1&&o.click(G,l.event))})},L.makeFramework=function(){var I=this,N=I.graphDiv,B=N._fullLayout,G="clip"+B._uid+I.id;I.clipDef=B._clips.append("clipPath").attr("id",G),I.clipRect=I.clipDef.append("rect"),I.framework=l.select(I.container).append("g").attr("class","geo "+I.id).call(s.setClipUrl,G,N),I.project=function(U){var H=I.projection(U);return H?[H[0]-I.xaxis._offset,H[1]-I.yaxis._offset]:[null,null]},I.xaxis={_id:"x",c2p:function(U){return I.project(U)[0]}},I.yaxis={_id:"y",c2p:function(U){return I.project(U)[1]}},I.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},f.setConvert(I.mockAxis,B)},L.saveViewInitial=function(I){var N=I.center||{},B=I.projection,G=B.rotation||{};this.viewInitial={fitbounds:I.fitbounds,"projection.scale":B.scale};var U;I._isScoped?U={"center.lon":N.lon,"center.lat":N.lat}:I._isClipped?U={"projection.rotation.lon":G.lon,"projection.rotation.lat":G.lat}:U={"center.lon":N.lon,"center.lat":N.lat,"projection.rotation.lon":G.lon},m.extendFlat(this.viewInitial,U)},L.render=function(I){this._hasMarkerAngles&&I?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},L._render=function(){var I=this.projection,N=I.getPath(),B;function G(H){var W=I(H.lonlat);return W?a(W[0],W[1]):null}function U(H){return I.isLonLatOverEdges(H.lonlat)?"none":null}for(B in this.basePaths)this.basePaths[B].attr("d",N);for(B in this.dataPaths)this.dataPaths[B].attr("d",function(H){return N(H.geojson)});for(B in this.dataPoints)this.dataPoints[B].attr("display",U).attr("transform",G)};function P(I){var N=I.projection,B=N.type,G=y.projNames[B];G="geo"+m.titleCase(G);for(var U=S[G]||w[G],H=U(),W=I._isSatellite?Math.acos(1/N.distance)*180/Math.PI:I._isClipped?y.lonaxisSpan[B]/2:null,V=["center","rotate","parallels","clipExtent"],$=function(ae){return ae?H:[]},Z=0;ZQ}else return!1},H.getPath=function(){return i().projection(H)},H.getBounds=function(ae){return H.getPath().bounds(ae)},H.precision(y.precision),I._isSatellite&&H.tilt(N.tilt).distance(N.distance),W&&H.clipAngle(W-y.clipPad),H}function d(I,N,B){var G=1e-6,U=2.5,H=N[I],W=y.scopeDefaults[N.scope],V,$,Z;I==="lonaxis"?(V=W.lonaxisRange,$=W.lataxisRange,Z=function(ne,ce){return[ne,ce]}):I==="lataxis"&&(V=W.lataxisRange,$=W.lonaxisRange,Z=function(ne,ce){return[ce,ne]});var q={type:"linear",range:[V[0],V[1]-G],tick0:H.tick0,dtick:H.dtick};f.setConvert(q,B);var ae=f.calcTicks(q);!N.isScoped&&I==="lonaxis"&&ae.pop();for(var ie=ae.length,fe=new Array(ie),Q=0;Q0&&U<0&&(U+=360);var V=(U-G)/4;return{type:"Polygon",coordinates:[[[G,H],[G,W],[G+V,W],[G+2*V,W],[G+3*V,W],[U,W],[U,H],[U-V,H],[U-2*V,H],[U-3*V,H],[G,H]]]}}},10816:function(D,O,t){var l=t(84888).KY,S=t(3400).counterRegex,i=t(43520),C="geo",w=S(C),v={};v[C]={valType:"subplotid",dflt:C,editType:"calc"};function m(s){for(var o=s._fullLayout,h=s.calcdata,f=o._subplots[C],u=0;u0&&$<0&&($+=360);var Z=(V+$)/2,q;if(!g){var ae=c?p.projRotate:[Z,0,0];q=s("projection.rotation.lon",ae[0]),s("projection.rotation.lat",ae[1]),s("projection.rotation.roll",ae[2]),L=s("showcoastlines",!c&&T),L&&(s("coastlinecolor"),s("coastlinewidth")),L=s("showocean",T?void 0:!1),L&&s("oceancolor")}var ie,fe;if(g?(ie=-96.6,fe=38.7):(ie=c?Z:q,fe=(W[0]+W[1])/2),s("center.lon",ie),s("center.lat",fe),y&&(s("projection.tilt"),s("projection.distance")),A){var Q=p.projParallels||[0,60];s("projection.parallels",Q)}s("projection.scale"),L=s("showland",T?void 0:!1),L&&s("landcolor"),L=s("showlakes",T?void 0:!1),L&&s("lakecolor"),L=s("showrivers",T?void 0:!1),L&&(s("rivercolor"),s("riverwidth")),L=s("showcountries",c&&b!=="usa"&&T),L&&(s("countrycolor"),s("countrywidth")),(b==="usa"||b==="north america"&&u===50)&&(s("showsubunits",T),s("subunitcolor"),s("subunitwidth")),c||(L=s("showframe",T),L&&(s("framecolor"),s("framewidth"))),s("bgcolor");var J=s("fitbounds");J&&(delete n.projection.scale,c?(delete n.center.lon,delete n.center.lat):M?(delete n.center.lon,delete n.center.lat,delete n.projection.rotation.lon,delete n.projection.rotation.lat,delete n.lonaxis.range,delete n.lataxis.range):(delete n.center.lon,delete n.center.lat,delete n.projection.rotation.lon))}},79248:function(D,O,t){var l=t(33428),S=t(3400),i=t(24040),C=Math.PI/180,w=180/Math.PI,v={cursor:"pointer"},m={cursor:"auto"};function a(d,k){var I=d.projection,N;return k._isScoped?N=o:k._isClipped?N=f:N=h,N(d,I)}D.exports=a;function n(d,k){return l.behavior.zoom().translate(k.translate()).scale(k.scale())}function s(d,k,I){var N=d.id,B=d.graphDiv,G=B.layout,U=G[N],H=B._fullLayout,W=H[N],V={},$={};function Z(q,ae){V[N+"."+q]=S.nestedProperty(U,q).get(),i.call("_storeDirectGUIEdit",G,H._preGUI,V);var ie=S.nestedProperty(W,q);ie.get()!==ae&&(ie.set(ae),S.nestedProperty(U,q).set(ae),$[N+"."+q]=ae)}I(Z),Z("projection.scale",k.scale()/d.fitScale),Z("fitbounds",!1),B.emit("plotly_relayout",$)}function o(d,k){var I=n(d,k);function N(){l.select(this).style(v)}function B(){k.scale(l.event.scale).translate(l.event.translate),d.render(!0);var H=k.invert(d.midPt);d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":k.scale()/d.fitScale,"geo.center.lon":H[0],"geo.center.lat":H[1]})}function G(H){var W=k.invert(d.midPt);H("center.lon",W[0]),H("center.lat",W[1])}function U(){l.select(this).style(m),s(d,k,G)}return I.on("zoomstart",N).on("zoom",B).on("zoomend",U),I}function h(d,k){var I=n(d,k),N=2,B,G,U,H,W,V,$,Z,q;function ae(K){return k.invert(K)}function ie(K){var ne=ae(K);if(!ne)return!0;var ce=k(ne);return Math.abs(ce[0]-K[0])>N||Math.abs(ce[1]-K[1])>N}function fe(){l.select(this).style(v),B=l.mouse(this),G=k.rotate(),U=k.translate(),H=G,W=ae(B)}function Q(){if(V=l.mouse(this),ie(B)){I.scale(k.scale()),I.translate(k.translate());return}k.scale(l.event.scale),k.translate([U[0],l.event.translate[1]]),W?ae(V)&&(Z=ae(V),$=[H[0]+(Z[0]-W[0]),G[1],G[2]],k.rotate($),H=$):(B=V,W=ae(B)),q=!0,d.render(!0);var K=k.rotate(),ne=k.invert(d.midPt);d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":k.scale()/d.fitScale,"geo.center.lon":ne[0],"geo.center.lat":ne[1],"geo.projection.rotation.lon":-K[0]})}function J(){l.select(this).style(m),q&&s(d,k,oe)}function oe(K){var ne=k.rotate(),ce=k.invert(d.midPt);K("projection.rotation.lon",-ne[0]),K("center.lon",ce[0]),K("center.lat",ce[1])}return I.on("zoomstart",fe).on("zoom",Q).on("zoomend",J),I}function f(d,k){k.rotate(),k.scale();var I=n(d,k),N=P(I,"zoomstart","zoom","zoomend"),B=0,G=I.on,U;I.on("zoomstart",function(){l.select(this).style(v);var Z=l.mouse(this),q=k.rotate(),ae=q,ie=k.translate(),fe=b(q);U=u(k,Z),G.call(I,"zoom",function(){var Q=l.mouse(this);if(k.scale(l.event.scale),!U)Z=Q,U=u(k,Z);else if(u(k,Q)){k.rotate(q).translate(ie);var J=u(k,Q),oe=E(U,J),K=M(p(fe,oe)),ne=g(K,U,ae);(!isFinite(ne[0])||!isFinite(ne[1])||!isFinite(ne[2]))&&(ne=ae),k.rotate(ne),ae=ne}W(N.of(this,arguments))}),H(N.of(this,arguments))}).on("zoomend",function(){l.select(this).style(m),G.call(I,"zoom",null),V(N.of(this,arguments)),s(d,k,$)}).on("zoom.redraw",function(){d.render(!0);var Z=k.rotate();d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":k.scale()/d.fitScale,"geo.projection.rotation.lon":-Z[0],"geo.projection.rotation.lat":-Z[1]})});function H(Z){B++||Z({type:"zoomstart"})}function W(Z){Z({type:"zoom"})}function V(Z){--B||Z({type:"zoomend"})}function $(Z){var q=k.rotate();Z("projection.rotation.lon",-q[0]),Z("projection.rotation.lat",-q[1])}return l.rebind(I,N,"on")}function u(d,k){var I=d.invert(k);return I&&isFinite(I[0])&&isFinite(I[1])&&R(I)}function b(d){var k=.5*d[0]*C,I=.5*d[1]*C,N=.5*d[2]*C,B=Math.sin(k),G=Math.cos(k),U=Math.sin(I),H=Math.cos(I),W=Math.sin(N),V=Math.cos(N);return[G*H*V+B*U*W,B*H*V-G*U*W,G*U*V+B*H*W,G*H*W-B*U*V]}function p(d,k){var I=d[0],N=d[1],B=d[2],G=d[3],U=k[0],H=k[1],W=k[2],V=k[3];return[I*U-N*H-B*W-G*V,I*H+N*U+B*V-G*W,I*W-N*V+B*U+G*H,I*V+N*W-B*H+G*U]}function E(d,k){if(!(!d||!k)){var I=L(d,k),N=Math.sqrt(T(I,I)),B=.5*Math.acos(Math.max(-1,Math.min(1,T(d,k)))),G=Math.sin(B)/N;return N&&[Math.cos(B),I[2]*G,-I[1]*G,I[0]*G]}}function g(d,k,I){var N=A(k,2,d[0]);N=A(N,1,d[1]),N=A(N,0,d[2]-I[2]);var B=k[0],G=k[1],U=k[2],H=N[0],W=N[1],V=N[2],$=Math.atan2(G,B)*w,Z=Math.sqrt(B*B+G*G),q,ae;Math.abs(W)>Z?(ae=(W>0?90:-90)-$,q=0):(ae=Math.asin(W/Z)*w-$,q=Math.sqrt(Z*Z-W*W));var ie=180-ae-2*$,fe=(Math.atan2(V,H)-Math.atan2(U,q))*w,Q=(Math.atan2(V,H)-Math.atan2(U,-q))*w,J=c(I[0],I[1],ae,fe),oe=c(I[0],I[1],ie,Q);return J<=oe?[ae,fe,I[2]]:[ie,Q,I[2]]}function c(d,k,I,N){var B=y(I-d),G=y(N-k);return Math.sqrt(B*B+G*G)}function y(d){return(d%360+540)%360-180}function A(d,k,I){var N=I*C,B=d.slice(),G=k===0?1:0,U=k===2?1:2,H=Math.cos(N),W=Math.sin(N);return B[G]=d[G]*H-d[U]*W,B[U]=d[U]*H+d[G]*W,B}function M(d){return[Math.atan2(2*(d[0]*d[1]+d[2]*d[3]),1-2*(d[1]*d[1]+d[2]*d[2]))*w,Math.asin(Math.max(-1,Math.min(1,2*(d[0]*d[2]-d[3]*d[1]))))*w,Math.atan2(2*(d[0]*d[3]+d[1]*d[2]),1-2*(d[2]*d[2]+d[3]*d[3]))*w]}function R(d){var k=d[0]*C,I=d[1]*C,N=Math.cos(I);return[N*Math.cos(k),N*Math.sin(k),Math.sin(I)]}function T(d,k){for(var I=0,N=0,B=d.length;NMath.abs(L)?(o.boxEnd[1]=o.boxStart[1]+Math.abs(T)*B*(L>=0?1:-1),o.boxEnd[1]g[3]&&(o.boxEnd[1]=g[3],o.boxEnd[0]=o.boxStart[0]+(g[3]-o.boxStart[1])/Math.abs(B))):(o.boxEnd[0]=o.boxStart[0]+Math.abs(L)/B*(T>=0?1:-1),o.boxEnd[0]g[2]&&(o.boxEnd[0]=g[2],o.boxEnd[1]=o.boxStart[1]+(g[2]-o.boxStart[0])*Math.abs(B)))}else I&&(o.boxEnd[0]=o.boxStart[0]),N&&(o.boxEnd[1]=o.boxStart[1])}else o.boxEnabled?(T=o.boxStart[0]!==o.boxEnd[0],L=o.boxStart[1]!==o.boxEnd[1],T||L?(T&&(P(0,o.boxStart[0],o.boxEnd[0]),a.xaxis.autorange=!1),L&&(P(1,o.boxStart[1],o.boxEnd[1]),a.yaxis.autorange=!1),a.relayoutCallback()):a.glplot.setDirty(),o.boxEnabled=!1,o.boxInited=!1):o.boxInited&&(o.boxInited=!1);break;case"pan":o.boxEnabled=!1,o.boxInited=!1,b?(o.panning||(o.dragStart[0]=p,o.dragStart[1]=E),Math.abs(o.dragStart[0]-p)1;function b(p){if(!u){var E=l.validate(o[p],v[p]);if(E)return o[p]}}C(o,h,f,{type:a,attributes:v,handleDefaults:n,fullLayout:h,font:h.font,fullData:f,getDfltFromLayout:b,autotypenumbersDflt:h.autotypenumbers,paper_bgcolor:h.paper_bgcolor,calendar:h.calendar})};function n(s,o,h,f){for(var u=h("bgcolor"),b=S.combine(u,f.paper_bgcolor),p=["up","center","eye"],E=0;E.999)&&(M="turntable")}else M="turntable";h("dragmode",M),h("hovermode",f.getDfltFromLayout("hovermode"))}},346:function(D,O,t){var l=t(86140),S=t(86968).u,i=t(92880).extendFlat,C=t(3400).counterRegex;function w(v,m,a){return{x:{valType:"number",dflt:v,editType:"camera"},y:{valType:"number",dflt:m,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}D.exports={_arrayAttrRegexps:[C("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:S({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:l,yaxis:l,zaxis:l,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(D,O,t){var l=t(43080),S=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var C=i.prototype;C.merge=function(v){for(var m=0;m<3;++m){var a=v[S[m]];if(!a.visible){this.enabled[m]=!1,this.drawSides[m]=!1;continue}this.enabled[m]=a.showspikes,this.colors[m]=l(a.spikecolor),this.drawSides[m]=a.spikesides,this.lineWidth[m]=a.spikethickness}};function w(v){var m=new i;return m.merge(v),m}D.exports=w},87152:function(D,O,t){D.exports=w;var l=t(54460),S=t(3400),i=["xaxis","yaxis","zaxis"];function C(v){for(var m=new Array(3),a=0;a<3;++a){for(var n=v[a],s=new Array(n.length),o=0;o/g," "));s[o]=b,h.tickmode=f}}m.ticks=s;for(var o=0;o<3;++o){.5*(v.glplot.bounds[0][o]+v.glplot.bounds[1][o]);for(var p=0;p<2;++p)m.bounds[p][o]=v.glplot.bounds[p][o]}v.contourLevels=C(s)}},94424:function(D){function O(l,S){var i=[0,0,0,0],C,w;for(C=0;C<4;++C)for(w=0;w<4;++w)i[w]+=l[4*C+w]*S[C];return i}function t(l,S){var i=O(l.projection,O(l.view,O(l.model,[S[0],S[1],S[2],1])));return i}D.exports=t},98432:function(D,O,t){var l=t(67792).gl_plot3d,S=l.createCamera,i=l.createScene,C=t(5408),w=t(89184),v=t(24040),m=t(3400),a=m.preserveDrawingBuffer(),n=t(54460),s=t(93024),o=t(43080),h=t(16576),f=t(94424),u=t(44728),b=t(9020),p=t(87152),E=t(19280).applyAutorangeOptions,g,c,y=!1;function A(B,G){var U=document.createElement("div"),H=B.container;this.graphDiv=B.graphDiv;var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.style.position="absolute",W.style.top=W.style.left="0px",W.style.width=W.style.height="100%",W.style["z-index"]=20,W.style["pointer-events"]="none",U.appendChild(W),this.svgContainer=W,U.id=B.id,U.style.position="absolute",U.style.top=U.style.left="0px",U.style.width=U.style.height="100%",H.appendChild(U),this.fullLayout=G,this.id=B.id||"scene",this.fullSceneLayout=G[this.id],this.plotArgs=[[],{},{}],this.axesOptions=u(G,G[this.id]),this.spikeOptions=b(G[this.id]),this.container=U,this.staticMode=!!B.staticPlot,this.pixelRatio=this.pixelRatio||B.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=v.getComponentMethod("annotations3d","convert"),this.drawAnnotations=v.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var M=A.prototype;M.prepareOptions=function(){var B=this,G={canvas:B.canvas,gl:B.gl,glOptions:{preserveDrawingBuffer:a,premultipliedAlpha:!0,antialias:!0},container:B.container,axes:B.axesOptions,spikes:B.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:B.camera,pixelRatio:B.pixelRatio};if(B.staticMode){if(!c&&(g=document.createElement("canvas"),c=C({canvas:g,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!c))throw new Error("error creating static canvas/context for image server");G.gl=c,G.canvas=g}return G};var R=!0;M.tryCreatePlot=function(){var B=this,G=B.prepareOptions(),U=!0;try{B.glplot=i(G)}catch{if(B.staticMode||!R||a)U=!1;else{m.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{a=G.glOptions.preserveDrawingBuffer=!0,B.glplot=i(G)}catch{a=G.glOptions.preserveDrawingBuffer=!1,U=!1}}}return R=!1,U},M.initializeGLCamera=function(){var B=this,G=B.fullSceneLayout.camera,U=G.projection.type==="orthographic";B.camera=S(B.container,{center:[G.center.x,G.center.y,G.center.z],eye:[G.eye.x,G.eye.y,G.eye.z],up:[G.up.x,G.up.y,G.up.z],_ortho:U,zoomMin:.01,zoomMax:100,mode:"orbit"})},M.initializeGLPlot=function(){var B=this;B.initializeGLCamera();var G=B.tryCreatePlot();if(!G)return h(B);B.traces={},B.make4thDimension();var U=B.graphDiv,H=U.layout,W=function(){var $={};return B.isCameraChanged(H)&&($[B.id+".camera"]=B.getCamera()),B.isAspectChanged(H)&&($[B.id+".aspectratio"]=B.glplot.getAspectratio(),H[B.id].aspectmode!=="manual"&&(B.fullSceneLayout.aspectmode=H[B.id].aspectmode=$[B.id+".aspectmode"]="manual")),$},V=function($){if($.fullSceneLayout.dragmode!==!1){var Z=W();$.saveLayout(H),$.graphDiv.emit("plotly_relayout",Z)}};return B.glplot.canvas&&(B.glplot.canvas.addEventListener("mouseup",function(){V(B)}),B.glplot.canvas.addEventListener("touchstart",function(){y=!0}),B.glplot.canvas.addEventListener("wheel",function($){if(U._context._scrollZoom.gl3d){if(B.camera._ortho){var Z=$.deltaX>$.deltaY?1.1:.9090909090909091,q=B.glplot.getAspectratio();B.glplot.setAspectratio({x:Z*q.x,y:Z*q.y,z:Z*q.z})}V(B)}},w?{passive:!1}:!1),B.glplot.canvas.addEventListener("mousemove",function(){if(B.fullSceneLayout.dragmode!==!1&&B.camera.mouseListener.buttons!==0){var $=W();B.graphDiv.emit("plotly_relayouting",$)}}),B.staticMode||B.glplot.canvas.addEventListener("webglcontextlost",function($){U&&U.emit&&U.emit("plotly_webglcontextlost",{event:$,layer:B.id})},!1)),B.glplot.oncontextloss=function(){B.recoverContext()},B.glplot.onrender=function(){B.render()},!0},M.render=function(){var B=this,G=B.graphDiv,U,H=B.svgContainer,W=B.container.getBoundingClientRect();G._fullLayout._calcInverseTransform(G);var V=G._fullLayout._invScaleX,$=G._fullLayout._invScaleY,Z=W.width*V,q=W.height*$;H.setAttributeNS(null,"viewBox","0 0 "+Z+" "+q),H.setAttributeNS(null,"width",Z),H.setAttributeNS(null,"height",q),p(B),B.glplot.axes.update(B.axesOptions);for(var ae=Object.keys(B.traces),ie=null,fe=B.glplot.selection,Q=0;Q")):U.type==="isosurface"||U.type==="volume"?(ce.valueLabel=n.hoverLabelText(B._mockAxis,B._mockAxis.d2l(fe.traceCoordinate[3]),U.valuehoverformat),he.push("value: "+ce.valueLabel),fe.textLabel&&he.push(fe.textLabel),le=he.join("
")):le=fe.textLabel;var xe={x:fe.traceCoordinate[0],y:fe.traceCoordinate[1],z:fe.traceCoordinate[2],data:K._input,fullData:K,curveNumber:K.index,pointNumber:ne};s.appendArrayPointValue(xe,K,ne),U._module.eventData&&(xe=K._module.eventData(xe,fe,K,{},ne));var Ee={points:[xe]};if(B.fullSceneLayout.hovermode){var Se=[];s.loneHover({trace:K,x:(.5+.5*oe[0]/oe[3])*Z,y:(.5-.5*oe[1]/oe[3])*q,xLabel:ce.xLabel,yLabel:ce.yLabel,zLabel:ce.zLabel,text:le,name:ie.name,color:s.castHoverOption(K,ne,"bgcolor")||ie.color,borderColor:s.castHoverOption(K,ne,"bordercolor"),fontFamily:s.castHoverOption(K,ne,"font.family"),fontSize:s.castHoverOption(K,ne,"font.size"),fontColor:s.castHoverOption(K,ne,"font.color"),nameLength:s.castHoverOption(K,ne,"namelength"),textAlign:s.castHoverOption(K,ne,"align"),hovertemplate:m.castOption(K,ne,"hovertemplate"),hovertemplateLabels:m.extendFlat({},xe,ce),eventData:[xe]},{container:H,gd:G,inOut_bbox:Se}),xe.bbox=Se[0]}fe.distance<5&&(fe.buttons||y)?G.emit("plotly_click",Ee):G.emit("plotly_hover",Ee),this.oldEventData=Ee}else s.loneUnhover(H),this.oldEventData&&G.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;B.drawAnnotations(B)},M.recoverContext=function(){var B=this;B.glplot.dispose();var G=function(){if(B.glplot.gl.isContextLost()){requestAnimationFrame(G);return}if(!B.initializeGLPlot()){m.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}B.plot.apply(B,B.plotArgs)};requestAnimationFrame(G)};var T=["xaxis","yaxis","zaxis"];function L(B,G,U){for(var H=B.fullSceneLayout,W=0;W<3;W++){var V=T[W],$=V.charAt(0),Z=H[V],q=G[$],ae=G[$+"calendar"],ie=G["_"+$+"length"];if(!m.isArrayOrTypedArray(q))U[0][W]=Math.min(U[0][W],0),U[1][W]=Math.max(U[1][W],ie-1);else for(var fe,Q=0;Q<(ie||q.length);Q++)if(m.isArrayOrTypedArray(q[Q]))for(var J=0;JK[1][$])K[0][$]=-1,K[1][$]=1;else{var ke=K[1][$]-K[0][$];K[0][$]-=ke/32,K[1][$]+=ke/32}if(ce=[K[0][$],K[1][$]],ce=E(ce,q),K[0][$]=ce[0],K[1][$]=ce[1],q.isReversed()){var Te=K[0][$];K[0][$]=K[1][$],K[1][$]=Te}}else ce=q.range,K[0][$]=q.r2l(ce[0]),K[1][$]=q.r2l(ce[1]);K[0][$]===K[1][$]&&(K[0][$]-=1,K[1][$]+=1),q.range=[K[0][$],K[1][$]],q.limitRange(),H.glplot.setBounds($,{min:q.range[0]*J[$],max:q.range[1]*J[$]})}var Ae,be=ie.aspectmode;if(be==="cube")Ae=[1,1,1];else if(be==="manual"){var Ie=ie.aspectratio;Ae=[Ie.x,Ie.y,Ie.z]}else if(be==="auto"||be==="data"){var Ue=[1,1,1];for($=0;$<3;++$){q=ie[T[$]],ae=q.type;var Ne=ne[ae];Ue[$]=Math.pow(Ne.acc,1/Ne.count)/J[$]}be==="data"||Math.max.apply(null,Ue)/Math.min.apply(null,Ue)<=4?Ae=Ue:Ae=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ie.aspectratio.x=fe.aspectratio.x=Ae[0],ie.aspectratio.y=fe.aspectratio.y=Ae[1],ie.aspectratio.z=fe.aspectratio.z=Ae[2],H.glplot.setAspectratio(ie.aspectratio),H.viewInitial.aspectratio||(H.viewInitial.aspectratio={x:ie.aspectratio.x,y:ie.aspectratio.y,z:ie.aspectratio.z}),H.viewInitial.aspectmode||(H.viewInitial.aspectmode=ie.aspectmode);var ze=ie.domain||null,$e=G._size||null;if(ze&&$e){var st=H.container.style;st.position="absolute",st.left=$e.l+ze.x[0]*$e.w+"px",st.top=$e.t+(1-ze.y[1])*$e.h+"px",st.width=$e.w*(ze.x[1]-ze.x[0])+"px",st.height=$e.h*(ze.y[1]-ze.y[0])+"px"}H.glplot.redraw()}},M.destroy=function(){var B=this;B.glplot&&(B.camera.mouseListener.enabled=!1,B.container.removeEventListener("wheel",B.camera.wheelListener),B.camera=null,B.glplot.dispose(),B.container.parentNode.removeChild(B.container),B.glplot=null)};function d(B){return[[B.eye.x,B.eye.y,B.eye.z],[B.center.x,B.center.y,B.center.z],[B.up.x,B.up.y,B.up.z]]}function k(B){return{up:{x:B.up[0],y:B.up[1],z:B.up[2]},center:{x:B.center[0],y:B.center[1],z:B.center[2]},eye:{x:B.eye[0],y:B.eye[1],z:B.eye[2]},projection:{type:B._ortho===!0?"orthographic":"perspective"}}}M.getCamera=function(){var B=this;return B.camera.view.recalcMatrix(B.camera.view.lastT()),k(B.camera)},M.setViewport=function(B){var G=this,U=B.camera;G.camera.lookAt.apply(this,d(U)),G.glplot.setAspectratio(B.aspectratio);var H=U.projection.type==="orthographic",W=G.camera._ortho;H!==W&&(G.glplot.redraw(),G.glplot.clearRGBA(),G.glplot.dispose(),G.initializeGLPlot())},M.isCameraChanged=function(B){var G=this,U=G.getCamera(),H=m.nestedProperty(B,G.id+".camera"),W=H.get();function V(ae,ie,fe,Q){var J=["up","center","eye"],oe=["x","y","z"];return ie[J[fe]]&&ae[J[fe]][oe[Q]]===ie[J[fe]][oe[Q]]}var $=!1;if(W===void 0)$=!0;else{for(var Z=0;Z<3;Z++)for(var q=0;q<3;q++)if(!V(U,W,Z,q)){$=!0;break}(!W.projection||U.projection&&U.projection.type!==W.projection.type)&&($=!0)}return $},M.isAspectChanged=function(B){var G=this,U=G.glplot.getAspectratio(),H=m.nestedProperty(B,G.id+".aspectratio"),W=H.get();return W===void 0||W.x!==U.x||W.y!==U.y||W.z!==U.z},M.saveLayout=function(B){var G=this,U=G.fullLayout,H,W,V,$,Z,q,ae=G.isCameraChanged(B),ie=G.isAspectChanged(B),fe=ae||ie;if(fe){var Q={};if(ae&&(H=G.getCamera(),W=m.nestedProperty(B,G.id+".camera"),V=W.get(),Q[G.id+".camera"]=V),ie&&($=G.glplot.getAspectratio(),Z=m.nestedProperty(B,G.id+".aspectratio"),q=Z.get(),Q[G.id+".aspectratio"]=q),v.call("_storeDirectGUIEdit",B,U._preGUI,Q),ae){W.set(H);var J=m.nestedProperty(U,G.id+".camera");J.set(H)}if(ie){Z.set($);var oe=m.nestedProperty(U,G.id+".aspectratio");oe.set($),G.glplot.redraw()}}return fe},M.updateFx=function(B,G){var U=this,H=U.camera;if(H)if(B==="orbit")H.mode="orbit",H.keyBindingMode="rotate";else if(B==="turntable"){H.up=[0,0,1],H.mode="turntable",H.keyBindingMode="rotate";var W=U.graphDiv,V=W._fullLayout,$=U.fullSceneLayout.camera,Z=$.up.x,q=$.up.y,ae=$.up.z;if(ae/Math.sqrt(Z*Z+q*q+ae*ae)<.999){var ie=U.id+".camera.up",fe={x:0,y:0,z:1},Q={};Q[ie]=fe;var J=W.layout;v.call("_storeDirectGUIEdit",J,V._preGUI,Q),$.up=fe,m.nestedProperty(J,ie).set(fe)}}else H.keyBindingMode=B;U.fullSceneLayout.hovermode=G};function I(B,G,U){for(var H=0,W=U-1;H0)for(var Z=255/$,q=0;q<3;++q)B[V+q]=Math.min(Z*B[V+q],255)}}M.toImage=function(B){var G=this;B||(B="png"),G.staticMode&&G.container.appendChild(g),G.glplot.redraw();var U=G.glplot.gl,H=U.drawingBufferWidth,W=U.drawingBufferHeight;U.bindFramebuffer(U.FRAMEBUFFER,null);var V=new Uint8Array(H*W*4);U.readPixels(0,0,H,W,U.RGBA,U.UNSIGNED_BYTE,V),I(V,H,W),N(V,H,W);var $=document.createElement("canvas");$.width=H,$.height=W;var Z=$.getContext("2d",{willReadFrequently:!0}),q=Z.createImageData(H,W);q.data.set(V),Z.putImageData(q,0,0);var ae;switch(B){case"jpeg":ae=$.toDataURL("image/jpeg");break;case"webp":ae=$.toDataURL("image/webp");break;default:ae=$.toDataURL("image/png")}return G.staticMode&&G.container.removeChild(g),ae},M.setConvert=function(){for(var B=this,G=0;G<3;G++){var U=B.fullSceneLayout[T[G]];n.setConvert(U,B.fullLayout),U.setScale=m.noop}},M.make4thDimension=function(){var B=this,G=B.graphDiv,U=G._fullLayout;B._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},n.setConvert(B._mockAxis,U)},D.exports=A},52094:function(D){D.exports=function(t,l,S,i){i=i||t.length;for(var C=new Array(i),w=0;wOpenStreetMap contributors',C=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),v=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),m={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:C,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:C,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:v,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},a=l(m);D.exports={requiredVersion:S,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:m,styleValuesNonMapbox:a,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+S+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` `),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",a.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(D,O,t){var l=t(3400);D.exports=function(i,C){var w=i.split(" "),v=w[0],m=w[1],a=l.isArrayOrTypedArray(C)?l.mean(C):C,n=.5+a/100,s=1.5+a/100,o=["",""],h=[0,0];switch(v){case"top":o[0]="top",h[1]=-s;break;case"bottom":o[0]="bottom",h[1]=s;break}switch(m){case"left":o[1]="right",h[0]=-n;break;case"right":o[1]="left",h[0]=n;break}var f;return o[0]&&o[1]?f=o.join("-"):o[0]?f=o[0]:o[1]?f=o[1]:f="center",{anchor:f,offset:h}}},33688:function(D,O,t){var l=t(3480),S=t(3400),i=S.strTranslate,C=S.strScale,w=t(84888).KY,v=t(9616),m=t(33428),a=t(43616),n=t(72736),s=t(14440),o="mapbox",h=O.constants=t(47552);O.name=o,O.attr="subplot",O.idRoot=o,O.idRegex=O.attrRegex=S.counterRegex(o),O.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},O.layoutAttributes=t(5232),O.supplyLayoutDefaults=t(5976),O.plot=function(p){var E=p._fullLayout,g=p.calcdata,c=E._subplots[o];if(l.version!==h.requiredVersion)throw new Error(h.wrongVersionErrorMsg);var x=f(p,c);l.accessToken=x;for(var A=0;AG/2){var U=k.split("|").join("
");N.text(U).attr("data-unformatted",U).call(n.convertToTspans,b),B=a.bBox(N.node())}N.attr("transform",i(-3,-B.height+8)),I.insert("rect",".static-attribution").attr({x:-B.width-6,y:-B.height-3,width:B.width+6,height:B.height+3,fill:"rgba(255, 255, 255, 0.75)"});var H=1;B.width+6>G&&(H=G/(B.width+6));var W=[g.l+g.w*A.x[1],g.t+g.h*(1-A.y[0])];I.attr("transform",i(W[0],W[1])+C(H))}};function f(b,p){var E=b._fullLayout,g=b._context;if(g.mapboxAccessToken==="")return"";for(var c=[],x=[],A=!1,M=!1,R=0;R1&&S.warn(h.multipleTokensErrorMsg),c[0]):(x.length&&S.log(["Listed mapbox access token(s)",x.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function u(b){return typeof b=="string"&&(h.styleValuesMapbox.indexOf(b)!==-1||b.indexOf("mapbox://")===0||b.indexOf("stamen")===0)}O.updateFx=function(b){for(var p=b._fullLayout,E=p._subplots[o],g=0;g0){for(var h=0;h0}function a(s){var o={},h={};switch(s.type){case"circle":l.extendFlat(h,{"circle-radius":s.circle.radius,"circle-color":s.color,"circle-opacity":s.opacity});break;case"line":l.extendFlat(h,{"line-width":s.line.width,"line-color":s.color,"line-opacity":s.opacity,"line-dasharray":s.line.dash});break;case"fill":l.extendFlat(h,{"fill-color":s.color,"fill-outline-color":s.fill.outlinecolor,"fill-opacity":s.opacity});break;case"symbol":var f=s.symbol,u=i(f.textposition,f.iconsize);l.extendFlat(o,{"icon-image":f.icon+"-15","icon-size":f.iconsize/10,"text-field":f.text,"text-size":f.textfont.size,"text-anchor":u.anchor,"text-offset":u.offset,"symbol-placement":f.placement}),l.extendFlat(h,{"icon-color":s.color,"text-color":f.textfont.color,"text-opacity":s.opacity});break;case"raster":l.extendFlat(h,{"raster-fade-duration":0,"raster-opacity":s.opacity});break}return{layout:o,paint:h}}function n(s){var o=s.sourcetype,h=s.source,f={type:o},u;return o==="geojson"?u="data":o==="vector"?u=typeof h=="string"?"url":"tiles":o==="raster"?(u="tiles",f.tileSize=256):o==="image"&&(u="url",f.coordinates=s.coordinates),f[u]=h,s.sourceattribution&&(f.attribution=S(s.sourceattribution)),f}D.exports=function(o,h,f){var u=new w(o,h);return u.update(f),u}},5232:function(D,O,t){var l=t(3400),S=t(76308).defaultLine,i=t(86968).u,C=t(25376),w=t(52904).textposition,v=t(67824).overrideAll,m=t(31780).templatedArray,a=t(47552),n=C({});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var s=D.exports=v({_arrayAttrRegexps:[l.counterRegex("mapbox",".layers",!0)],domain:i({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:a.styleValuesMapbox.concat(a.styleValuesNonMapbox),dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:m("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:S},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:S}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:l.extendFlat({},w,{arrayOk:!1})}})},"plot","from-root");s.uirevision={valType:"any",editType:"none"}},5976:function(D,O,t){var l=t(3400),S=t(168),i=t(51272),C=t(5232);D.exports=function(a,n,s){S(a,n,s,{type:"mapbox",attributes:C,handleDefaults:w,partition:"y",accessToken:n._mapboxAccessToken})};function w(m,a,n,s){n("accesstoken",s.accessToken),n("style"),n("center.lon"),n("center.lat"),n("zoom"),n("bearing"),n("pitch");var o=n("bounds.west"),h=n("bounds.east"),f=n("bounds.south"),u=n("bounds.north");(o===void 0||h===void 0||f===void 0||u===void 0)&&delete a.bounds,i(m,a,{name:"layers",handleItemDefaults:v}),a._input=m}function v(m,a){function n(b,p){return l.coerce(m,a,C.layers,b,p)}var s=n("visible");if(s){var o=n("sourcetype"),h=o==="raster"||o==="image";n("source"),n("sourceattribution"),o==="vector"&&n("sourcelayer"),o==="image"&&n("coordinates");var f;h&&(f="raster");var u=n("type",f);h&&u!=="raster"&&(u=a.type="raster",l.log("Source types *raster* and *image* must drawn *raster* layer type.")),n("below"),n("color"),n("opacity"),n("minzoom"),n("maxzoom"),u==="circle"&&n("circle.radius"),u==="line"&&(n("line.width"),n("line.dash")),u==="fill"&&n("fill.outlinecolor"),u==="symbol"&&(n("symbol.icon"),n("symbol.iconsize"),n("symbol.text"),l.coerceFont(n,"symbol.textfont"),n("symbol.textposition"),n("symbol.placement"))}}},14440:function(D,O,t){var l=t(3480),S=t(3400),i=t(27144),C=t(24040),w=t(54460),v=t(86476),m=t(93024),a=t(72760),n=a.drawMode,s=a.selectMode,o=t(22676).prepSelect,h=t(22676).clearOutline,f=t(22676).clearSelectionsCache,u=t(22676).selectOnClick,b=t(47552),p=t(22360);function E(R,T){this.id=T,this.gd=R;var L=R._fullLayout,P=R._context;this.container=L._glcontainer.node(),this.isStatic=P.staticPlot,this.uid=L._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(L),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var g=E.prototype;g.plot=function(R,T,L){var P=this,d=T[P.id];P.map&&d.accesstoken!==P.accessToken&&(P.map.remove(),P.map=null,P.styleObj=null,P.traceHash={},P.layerList=[]);var k;P.map?k=new Promise(function(I,N){P.updateMap(R,T,I,N)}):k=new Promise(function(I,N){P.createMap(R,T,I,N)}),L.push(k)},g.createMap=function(R,T,L,P){var d=this,k=T[d.id],I=d.styleObj=x(k.style,T);d.accessToken=k.accesstoken;var N=k.bounds,B=N?[[N.west,N.south],[N.east,N.north]]:null,G=d.map=new l.Map({container:d.div,style:I.style,center:M(k.center),zoom:k.zoom,bearing:k.bearing,pitch:k.pitch,maxBounds:B,interactive:!d.isStatic,preserveDrawingBuffer:d.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new l.AttributionControl({compact:!0}));G._canvas.style.left="0px",G._canvas.style.top="0px",d.rejectOnError(P),d.isStatic||d.initFx(R,T);var U=[];U.push(new Promise(function(H){G.once("load",H)})),U=U.concat(i.fetchTraceGeoData(R)),Promise.all(U).then(function(){d.fillBelowLookup(R,T),d.updateData(R),d.updateLayout(T),d.resolveOnRender(L)}).catch(P)},g.updateMap=function(R,T,L,P){var d=this,k=d.map,I=T[this.id];d.rejectOnError(P);var N=[],B=x(I.style,T);JSON.stringify(d.styleObj)!==JSON.stringify(B)&&(d.styleObj=B,k.setStyle(B.style),d.traceHash={},N.push(new Promise(function(G){k.once("styledata",G)}))),N=N.concat(i.fetchTraceGeoData(R)),Promise.all(N).then(function(){d.fillBelowLookup(R,T),d.updateData(R),d.updateLayout(T),d.resolveOnRender(L)}).catch(P)},g.fillBelowLookup=function(R,T){var L=T[this.id],P=L.layers,d,k,I=this.belowLookup={},N=!1;for(d=0;d1)for(d=0;d<$.length;d++)W=$[d],W.indexOf("trace-")===0?(V=W.split("trace-")[1],this.traceHash[V]&&(this.traceHash[V].below=null)):W.indexOf("layout-")===0&&(V=W.split("layout-")[1],this.layerList[V]&&(this.layerList[V].below=null))}};var c={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};g.updateData=function(R){var T=this.traceHash,L,P,d,k,I=R.slice().sort(function(H,W){return c[H[0].trace.type]-c[W[0].trace.type]});for(d=0;d-1&&u(B.originalEvent,P,[L.xaxis],[L.yaxis],L.id,N),G.indexOf("event")>-1&&m.click(P,B.originalEvent)}}},g.updateFx=function(R){var T=this,L=T.map,P=T.gd;if(T.isStatic)return;function d(B){var G=T.map.unproject(B);return[G.lng,G.lat]}var k=R.dragmode,I;I=function(B,G){if(G.isRect){var U=B.range={};U[T.id]=[d([G.xmin,G.ymin]),d([G.xmax,G.ymax])]}else{var H=B.lassoPoints={};H[T.id]=G.map(d)}};var N=T.dragOptions;T.dragOptions=S.extendDeep(N||{},{dragmode:R.dragmode,element:T.div,gd:P,plotinfo:{id:T.id,domain:R[T.id].domain,xaxis:T.xaxis,yaxis:T.yaxis,fillRangeItems:I},xaxes:[T.xaxis],yaxes:[T.yaxis],subplot:T.id}),L.off("click",T.onClickInPanHandler),s(k)||n(k)?(L.dragPan.disable(),L.on("zoomstart",T.clearOutline),T.dragOptions.prepFn=function(B,G,U){o(B,G,U,T.dragOptions,k)},v.init(T.dragOptions)):(L.dragPan.enable(),L.off("zoomstart",T.clearOutline),T.div.onmousedown=null,T.div.ontouchstart=null,T.div.removeEventListener("touchstart",T.div._ontouchstart),T.onClickInPanHandler=T.onClickInPanFn(T.dragOptions),L.on("click",T.onClickInPanHandler))},g.updateFramework=function(R){var T=R[this.id].domain,L=R._size,P=this.div.style;P.width=L.w*(T.x[1]-T.x[0])+"px",P.height=L.h*(T.y[1]-T.y[0])+"px",P.left=L.l+T.x[0]*L.w+"px",P.top=L.t+(1-T.y[1])*L.h+"px",this.xaxis._offset=L.l+T.x[0]*L.w,this.xaxis._length=L.w*(T.x[1]-T.x[0]),this.yaxis._offset=L.t+(1-T.y[1])*L.h,this.yaxis._length=L.h*(T.y[1]-T.y[0])},g.updateLayers=function(R){var T=R[this.id],L=T.layers,P=this.layerList,d;if(L.length!==P.length){for(d=0;d=ne.width-20?(ee["text-anchor"]="start",ee.x=5):(ee["text-anchor"]="end",ee.x=ne._paper.attr("width")-7),ce.attr(ee);var de=ce.select(".js-link-to-tool"),le=ce.select(".js-link-spacer"),he=ce.select(".js-sourcelinks");K._context.showSources&&K._context.showSources(K),K._context.showLink&&R(K,de),le.text(de.text()&&he.text()?" - ":"")}};function R(K,ne){ne.text("");var ce=ne.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(K._context.linkText+" »");if(K._context.sendData)ce.on("click",function(){x.sendDataToCloud(K)});else{var re=window.location.pathname.split("/"),ee=window.location.search;ce.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ee})}}x.sendDataToCloud=function(K){var ne=(window.PLOTLYENV||{}).BASE_URL||K._context.plotlyServerURL;if(ne){K.emit("plotly_beforeexport");var ce=l.select(K).append("div").attr("id","hiddenform").style("display","none"),re=ce.append("form").attr({action:ne+"/external",method:"post",target:"_blank"}),ee=re.append("input").attr({type:"text",name:"data"});return ee.node().value=x.graphJson(K,!1,"keepdata"),re.node().submit(),ce.remove(),K.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],L=["year","month","dayMonth","dayMonthYear"];x.supplyDefaults=function(K,ne){var ce=ne&&ne.skipUpdateCalc,re=K._fullLayout||{};if(re._skipDefaults){delete re._skipDefaults;return}var ee=K._fullLayout={},de=K.layout||{},le=K._fullData||[],he=K._fullData=[],xe=K.data||[],Ee=K.calcdata||[],Se=K._context||{},ke;K._transitionData||x.createTransitionData(K),ee._dfltTitle={plot:c(K,"Click to enter Plot title"),x:c(K,"Click to enter X axis title"),y:c(K,"Click to enter Y axis title"),colorbar:c(K,"Click to enter Colorscale title"),annotation:c(K,"new text")},ee._traceWord=c(K,"trace");var Te=k(K,T);if(ee._mapboxAccessToken=Se.mapboxAccessToken,re._initialAutoSizeIsDone){var Ae=re.width,be=re.height;x.supplyLayoutGlobalDefaults(de,ee,Te),de.width||(ee.width=Ae),de.height||(ee.height=be),x.sanitizeMargins(ee)}else{x.supplyLayoutGlobalDefaults(de,ee,Te);var Ie=!de.width||!de.height,Ue=ee.autosize,Ne=Se.autosizable,ze=Ie&&(Ue||Ne);ze?x.plotAutoSize(K,de,ee):Ie&&x.sanitizeMargins(ee),!Ue&&Ie&&(de.width=ee.width,de.height=ee.height)}ee._d3locale=I(Te,ee.separators),ee._extraFormat=k(K,L),ee._initialAutoSizeIsDone=!0,ee._dataLength=xe.length,ee._modules=[],ee._visibleModules=[],ee._basePlotModules=[];var $e=ee._subplots=d(),st=ee._splomAxes={x:{},y:{}},vt=ee._splomSubplots={};ee._splomGridDflt={},ee._scatterStackOpts={},ee._firstScatter={},ee._alignmentOpts={},ee._colorAxes={},ee._requestRangeslider={},ee._traceUids=P(le,xe),ee._globalTransforms=(K._context||{}).globalTransforms,x.supplyDataDefaults(xe,he,de,ee);var at=Object.keys(st.x),nt=Object.keys(st.y);if(at.length>1&&nt.length>1){for(v.getComponentMethod("grid","sizeDefaults")(de,ee),ke=0;ke15&&nt.length>15&&ee.shapes.length===0&&ee.images.length===0,x.linkSubplots(he,ee,le,re),x.cleanPlot(he,ee,le,re);var wt=!!(re._has&&re._has("gl2d")),et=!!(ee._has&&ee._has("gl2d")),Be=!!(re._has&&re._has("cartesian")),Ye=!!(ee._has&&ee._has("cartesian")),Ke=Be||wt,We=Ye||et;Ke&&!We?re._bgLayer.remove():We&&!Ke&&(ee._shouldCreateBgLayer=!0),re._zoomlayer&&!K._dragging&&f({_fullLayout:re}),N(he,ee),g(ee,re),v.getComponentMethod("colorscale","crossTraceDefaults")(he,ee),ee._preGUI||(ee._preGUI={}),ee._tracePreGUI||(ee._tracePreGUI={});var Fe=ee._tracePreGUI,Me={},we;for(we in Fe)Me[we]="old";for(ke=0;ke0){var Se=1-2*de;le=Math.round(Se*le),he=Math.round(Se*he)}}var ke=x.layoutAttributes.width.min,Te=x.layoutAttributes.height.min;le1,be=!ce.height&&Math.abs(re.height-he)>1;(be||Ae)&&(Ae&&(re.width=le),be&&(re.height=he)),ne._initialAutoSize||(ne._initialAutoSize={width:le,height:he}),x.sanitizeMargins(re)},x.supplyLayoutModuleDefaults=function(K,ne,ce,re){var ee=v.componentsRegistry,de=ne._basePlotModules,le,he,xe,Ee=v.subplotsRegistry.cartesian;for(le in ee)xe=ee[le],xe.includeBasePlot&&xe.includeBasePlot(K,ne);de.length||de.push(Ee),ne._has("cartesian")&&(v.getComponentMethod("grid","contentDefaults")(K,ne),Ee.finalizeSubplots(K,ne));for(var Se in ne._subplots)ne._subplots[Se].sort(n.subplotSort);for(he=0;he1&&(ce.l/=Ue,ce.r/=Ue)}if(Te){var Ne=(ce.t+ce.b)/Te;Ne>1&&(ce.t/=Ne,ce.b/=Ne)}var ze=ce.xl!==void 0?ce.xl:ce.x,$e=ce.xr!==void 0?ce.xr:ce.x,st=ce.yt!==void 0?ce.yt:ce.y,vt=ce.yb!==void 0?ce.yb:ce.y;Ae[ne]={l:{val:ze,size:ce.l+Ie},r:{val:$e,size:ce.r+Ie},b:{val:vt,size:ce.b+Ie},t:{val:st,size:ce.t+Ie}},be[ne]=1}if(!re._replotting)return x.doAutoMargin(K)}};function Z(K){if("_redrawFromAutoMarginCount"in K._fullLayout)return!1;var ne=h.list(K,"",!0);for(var ce in ne)if(ne[ce].autoshift||ne[ce].shift)return!0;return!1}x.doAutoMargin=function(K){var ne=K._fullLayout,ce=ne.width,re=ne.height;ne._size||(ne._size={}),W(ne);var ee=ne._size,de=ne.margin,le={t:0,b:0,l:0,r:0},he=n.extendFlat({},ee),xe=de.l,Ee=de.r,Se=de.t,ke=de.b,Te=ne._pushmargin,Ae=ne._pushmarginIds,be=ne.minreducedwidth,Ie=ne.minreducedheight;if(de.autoexpand!==!1){for(var Ue in Te)Ae[Ue]||delete Te[Ue];var Ne=K._fullLayout._reservedMargin;for(var ze in Ne)for(var $e in Ne[ze]){var st=Ne[ze][$e];le[$e]=Math.max(le[$e],st)}Te.base={l:{val:0,size:xe},r:{val:1,size:Ee},t:{val:1,size:Se},b:{val:0,size:ke}};for(var vt in le){var at=0;for(var nt in Te)nt!=="base"&&C(Te[nt][vt].size)&&(at=Te[nt][vt].size>at?Te[nt][vt].size:at);var mt=Math.max(0,de[vt]-at);le[vt]=Math.max(0,le[vt]-mt)}for(var rt in Te){var lt=Te[rt].l||{},dt=Te[rt].b||{},wt=lt.val,et=lt.size,Be=dt.val,Ye=dt.size,Ke=ce-le.r-le.l,We=re-le.t-le.b;for(var Fe in Te){if(C(et)&&Te[Fe].r){var Me=Te[Fe].r.val,we=Te[Fe].r.size;if(Me>wt){var Re=(et*Me+(we-Ke)*wt)/(Me-wt),Pe=(we*(1-wt)+(et-Ke)*(1-Me))/(Me-wt);Re+Pe>xe+Ee&&(xe=Re,Ee=Pe)}}if(C(Ye)&&Te[Fe].t){var Ve=Te[Fe].t.val,Je=Te[Fe].t.size;if(Ve>Be){var ot=(Ye*Ve+(Je-We)*Be)/(Ve-Be),yt=(Je*(1-Be)+(Ye-We)*(1-Ve))/(Ve-Be);ot+yt>ke+Se&&(ke=ot,Se=yt)}}}}}var ut=n.constrain(ce-de.l-de.r,V,be),It=n.constrain(re-de.t-de.b,$,Ie),Vt=Math.max(0,ce-ut),xt=Math.max(0,re-It);if(Vt){var Lt=(xe+Ee)/Vt;Lt>1&&(xe/=Lt,Ee/=Lt)}if(xt){var Xt=(ke+Se)/xt;Xt>1&&(ke/=Xt,Se/=Xt)}if(ee.l=Math.round(xe)+le.l,ee.r=Math.round(Ee)+le.r,ee.t=Math.round(Se)+le.t,ee.b=Math.round(ke)+le.b,ee.p=Math.round(de.pad),ee.w=Math.round(ce)-ee.l-ee.r,ee.h=Math.round(re)-ee.t-ee.b,!ne._replotting&&(x.didMarginChange(he,ee)||Z(K))){"_redrawFromAutoMarginCount"in ne?ne._redrawFromAutoMarginCount++:ne._redrawFromAutoMarginCount=1;var dr=3*(1+Object.keys(Ae).length);if(ne._redrawFromAutoMarginCount1)return!0}return!1},x.graphJson=function(K,ne,ce,re,ee,de){(ee&&ne&&!K._fullData||ee&&!ne&&!K._fullLayout)&&x.supplyDefaults(K);var le=ee?K._fullData:K.data,he=ee?K._fullLayout:K.layout,xe=(K._transitionData||{})._frames;function Ee(Te,Ae){if(typeof Te=="function")return Ae?"_function_":null;if(n.isPlainObject(Te)){var be={},Ie;return Object.keys(Te).sort().forEach(function($e){if(["_","["].indexOf($e.charAt(0))===-1){if(typeof Te[$e]=="function"){Ae&&(be[$e]="_function");return}if(ce==="keepdata"){if($e.substr($e.length-3)==="src")return}else if(ce==="keepstream"){if(Ie=Te[$e+"src"],typeof Ie=="string"&&Ie.indexOf(":")>0&&!n.isPlainObject(Te.stream))return}else if(ce!=="keepall"&&(Ie=Te[$e+"src"],typeof Ie=="string"&&Ie.indexOf(":")>0))return;be[$e]=Ee(Te[$e],Ae)}}),be}var Ue=Array.isArray(Te),Ne=n.isTypedArray(Te);if((Ue||Ne)&&Te.dtype&&Te.shape){var ze=Te.bdata;return Ee({dtype:Te.dtype,shape:Te.shape,bdata:n.isArrayBuffer(ze)?w.encode(ze):ze},Ae)}return Ue?Te.map(function($e){return Ee($e,Ae)}):Ne?n.simpleMap(Te,n.identity):n.isJSDate(Te)?n.ms2DateTimeLocal(+Te):Te}var Se={data:(le||[]).map(function(Te){var Ae=Ee(Te);return ne&&delete Ae.fit,Ae})};if(!ne&&(Se.layout=Ee(he),ee)){var ke=he._size;Se.layout.computed={margin:{b:ke.b,l:ke.l,r:ke.r,t:ke.t}}}return xe&&(Se.frames=Ee(xe)),de&&(Se.config=Ee(K._context,!0)),re==="object"?Se:JSON.stringify(Se)},x.modifyFrames=function(K,ne){var ce,re,ee,de=K._transitionData._frames,le=K._transitionData._frameHash;for(ce=0;ce0&&(K._transitioningWithDuration=!0),K._transitionData._interruptCallbacks.push(function(){re=!0}),ce.redraw&&K._transitionData._interruptCallbacks.push(function(){return v.call("redraw",K)}),K._transitionData._interruptCallbacks.push(function(){K.emit("plotly_transitioninterrupted",[])});var Te=0,Ae=0;function be(){return Te++,function(){Ae++,!re&&Ae===Te&&he(ke)}}ce.runFn(be),setTimeout(be())})}function he(ke){if(K._transitionData)return de(K._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ce.redraw)return v.call("redraw",K)}).then(function(){K._transitioning=!1,K._transitioningWithDuration=!1,K.emit("plotly_transitioned",[])}).then(ke)}function xe(){if(K._transitionData)return K._transitioning=!1,ee(K._transitionData._interruptCallbacks)}var Ee=[x.previousPromises,xe,ce.prepareFn,x.rehover,x.reselect,le],Se=n.syncOrAsync(Ee,K);return(!Se||!Se.then)&&(Se=Promise.resolve()),Se.then(function(){return K})}x.doCalcdata=function(K,ne){var ce=h.list(K),re=K._fullData,ee=K._fullLayout,de,le,he,xe,Ee=new Array(re.length),Se=(K.calcdata||[]).slice();for(K.calcdata=Ee,ee._numBoxes=0,ee._numViolins=0,ee._violinScaleGroupStats={},K._hmpixcount=0,K._hmlumcount=0,ee._piecolormap={},ee._sunburstcolormap={},ee._treemapcolormap={},ee._iciclecolormap={},ee._funnelareacolormap={},he=0;he=0;xe--)if(vt[xe].enabled){de._indexToPoints=vt[xe]._indexToPoints;break}le&&le.calc&&(st=le.calc(K,de))}(!Array.isArray(st)||!st[0])&&(st=[{x:o,y:o}]),st[0].t||(st[0].t={}),st[0].trace=de,Ee[ze]=st}}for(J(ce,re,ee),he=0;he0?L:1/0},M=i(x,A),R=l.mod(M+1,x.length);return[x[M],x[R]]}function b(c){return Math.abs(c)>1e-10?c:0}function p(c,x,A){x=x||0,A=A||0;for(var M=c.length,R=new Array(M),T=0;TTe?(Ae=de,be=de*Te,Ne=(le-be)/K.h/2,Ie=[re[0],re[1]],Ue=[ee[0]+Ne,ee[1]-Ne]):(Ae=le/Te,be=le,Ne=(de-Ae)/K.w/2,Ie=[re[0]+Ne,re[1]-Ne],Ue=[ee[0],ee[1]]),J.xLength2=Ae,J.yLength2=be,J.xDomain2=Ie,J.yDomain2=Ue;var ze=J.xOffset2=K.l+K.w*Ie[0],$e=J.yOffset2=K.t+K.h*(1-Ue[1]),st=J.radius=Ae/Ee,vt=J.innerRadius=J.getHole(Q)*st,at=J.cx=ze-st*xe[0],nt=J.cy=$e+st*xe[3],mt=J.cxx=at-ze,rt=J.cyy=nt-$e,lt=ne.side,dt;lt==="counterclockwise"?(dt=lt,lt="top"):lt==="clockwise"&&(dt=lt,lt="bottom"),J.radialAxis=J.mockAxis(fe,Q,ne,{_id:"x",side:lt,_trueSide:dt,domain:[vt/K.w,st/K.w]}),J.angularAxis=J.mockAxis(fe,Q,ce,{side:"right",domain:[0,Math.PI],autorange:!1}),J.doAutoRange(fe,Q),J.updateAngularAxis(fe,Q),J.updateRadialAxis(fe,Q),J.updateRadialAxisTitle(fe,Q),J.xaxis=J.mockCartesianAxis(fe,Q,{_id:"x",domain:Ie}),J.yaxis=J.mockCartesianAxis(fe,Q,{_id:"y",domain:Ue});var wt=J.pathSubplot();J.clipPaths.forTraces.select("path").attr("d",wt).attr("transform",v(mt,rt)),oe.frontplot.attr("transform",v(ze,$e)).call(a.setClipUrl,J._hasClipOnAxisFalse?null:J.clipIds.forTraces,J.gd),oe.bg.attr("d",wt).attr("transform",v(at,nt)).call(m.fill,Q.bgcolor)},$.mockAxis=function(fe,Q,J,oe){var K=C.extendFlat({},J,oe);return h(K,Q,fe),K},$.mockCartesianAxis=function(fe,Q,J){var oe=this,K=oe.isSmith,ne=J._id,ce=C.extendFlat({type:"linear"},J);o(ce,fe);var re={x:[0,2],y:[1,3]};return ce.setRange=function(){var ee=oe.sectorBBox,de=re[ne],le=oe.radialAxis._rl,he=(le[1]-le[0])/(1-oe.getHole(Q));ce.range=[ee[de[0]]*he,ee[de[1]]*he]},ce.isPtWithinRange=ne==="x"&&!K?function(ee){return oe.isPtInside(ee)}:function(){return!0},ce.setRange(),ce.setScale(),ce},$.doAutoRange=function(fe,Q){var J=this,oe=J.gd,K=J.radialAxis,ne=J.getRadial(Q);f(oe,K);var ce=K.range;if(ne.range=ce.slice(),ne._input.range=ce.slice(),K._rl=[K.r2l(ce[0],null,"gregorian"),K.r2l(ce[1],null,"gregorian")],K.minallowed!==void 0){var re=K.r2l(K.minallowed);K._rl[0]>K._rl[1]?K._rl[1]=Math.max(K._rl[1],re):K._rl[0]=Math.max(K._rl[0],re)}if(K.maxallowed!==void 0){var ee=K.r2l(K.maxallowed);K._rl[0]90&&le<=270&&(he.tickangle=180);var Se=Ee?function(st){var vt=B(J,k([st.x,0]));return v(vt[0]-re,vt[1]-ee)}:function(st){return v(he.l2p(st.x)+ce,0)},ke=Ee?function(st){return N(J,st.x,-1/0,1/0)}:function(st){return J.pathArc(he.r2p(st.x)+ce)},Te=Z(de);if(J.radialTickLayout!==Te&&(K["radial-axis"].selectAll(".xtick").remove(),J.radialTickLayout=Te),xe){he.setScale();var Ae=0,be=Ee?(he.tickvals||[]).filter(function(st){return st>=0}).map(function(st){return s.tickText(he,st,!0,!1)}):s.calcTicks(he),Ie=Ee?be:s.clipEnds(he,be),Ue=s.getTickSigns(he)[2];Ee&&((he.ticks==="top"&&he.side==="bottom"||he.ticks==="bottom"&&he.side==="top")&&(Ue=-Ue),he.ticks==="top"&&he.side==="top"&&(Ae=-he.ticklen),he.ticks==="bottom"&&he.side==="bottom"&&(Ae=he.ticklen)),s.drawTicks(oe,he,{vals:be,layer:K["radial-axis"],path:s.makeTickPath(he,0,Ue),transFn:Se,crisp:!1}),s.drawGrid(oe,he,{vals:Ie,layer:K["radial-grid"],path:ke,transFn:C.noop,crisp:!1}),s.drawLabels(oe,he,{vals:be,layer:K["radial-axis"],transFn:Se,labelFns:s.makeLabelFns(he,Ae)})}var Ne=J.radialAxisAngle=J.vangles?W(ae(H(de.angle),J.vangles)):de.angle,ze=v(re,ee),$e=ze+w(-Ne);ie(K["radial-axis"],xe&&(de.showticklabels||de.ticks),{transform:$e}),ie(K["radial-grid"],xe&&de.showgrid,{transform:Ee?"":ze}),ie(K["radial-line"].select("line"),xe&&de.showline,{x1:Ee?-ne:ce,y1:0,x2:ne,y2:0,transform:$e}).attr("stroke-width",de.linewidth).call(m.stroke,de.linecolor)},$.updateRadialAxisTitle=function(fe,Q,J){if(!this.isSmith){var oe=this,K=oe.gd,ne=oe.radius,ce=oe.cx,re=oe.cy,ee=oe.getRadial(Q),de=oe.id+"title",le=0;if(ee.title){var he=a.bBox(oe.layers["radial-axis"].node()).height,xe=ee.title.font.size,Ee=ee.side;le=Ee==="top"?xe:Ee==="counterclockwise"?-(he+xe*.4):he+xe*.8}var Se=J!==void 0?J:oe.radialAxisAngle,ke=H(Se),Te=Math.cos(ke),Ae=Math.sin(ke),be=ce+ne/2*Te+le*Ae,Ie=re-ne/2*Ae+le*Te;oe.layers["radial-axis-title"]=E.draw(K,de,{propContainer:ee,propName:oe.id+".radialaxis.title",placeholder:G(K,"Click to enter radial axis title"),attributes:{x:be,y:Ie,"text-anchor":"middle"},transform:{rotate:-Se}})}},$.updateAngularAxis=function(fe,Q){var J=this,oe=J.gd,K=J.layers,ne=J.radius,ce=J.innerRadius,re=J.cx,ee=J.cy,de=J.getAngular(Q),le=J.angularAxis,he=J.isSmith;he||(J.fillViewInitialKey("angularaxis.rotation",de.rotation),le.setGeometry(),le.setScale());var xe=he?function(vt){var at=B(J,k([0,vt.x]));return Math.atan2(at[0]-re,at[1]-ee)-Math.PI/2}:function(vt){return le.t2g(vt.x)};le.type==="linear"&&le.thetaunit==="radians"&&(le.tick0=W(le.tick0),le.dtick=W(le.dtick));var Ee=function(vt){return v(re+ne*Math.cos(vt),ee-ne*Math.sin(vt))},Se=he?function(vt){var at=B(J,k([0,vt.x]));return v(at[0],at[1])}:function(vt){return Ee(xe(vt))},ke=he?function(vt){var at=B(J,k([0,vt.x])),nt=Math.atan2(at[0]-re,at[1]-ee)-Math.PI/2;return v(at[0],at[1])+w(-W(nt))}:function(vt){var at=xe(vt);return Ee(at)+w(-W(at))},Te=he?function(vt){return I(J,vt.x,0,1/0)}:function(vt){var at=xe(vt),nt=Math.cos(at),mt=Math.sin(at);return"M"+[re+ce*nt,ee-ce*mt]+"L"+[re+ne*nt,ee-ne*mt]},Ae=s.makeLabelFns(le,0),be=Ae.labelStandoff,Ie={};Ie.xFn=function(vt){var at=xe(vt);return Math.cos(at)*be},Ie.yFn=function(vt){var at=xe(vt),nt=Math.sin(at)>0?.2:1;return-Math.sin(at)*(be+vt.fontSize*nt)+Math.abs(Math.cos(at))*(vt.fontSize*T)},Ie.anchorFn=function(vt){var at=xe(vt),nt=Math.cos(at);return Math.abs(nt)<.1?"middle":nt>0?"start":"end"},Ie.heightFn=function(vt,at,nt){var mt=xe(vt);return-.5*(1+Math.sin(mt))*nt};var Ue=Z(de);J.angularTickLayout!==Ue&&(K["angular-axis"].selectAll("."+le._id+"tick").remove(),J.angularTickLayout=Ue);var Ne=he?[1/0].concat(le.tickvals||[]).map(function(vt){return s.tickText(le,vt,!0,!1)}):s.calcTicks(le);he&&(Ne[0].text="∞",Ne[0].fontSize*=1.75);var ze;if(Q.gridshape==="linear"?(ze=Ne.map(xe),C.angleDelta(ze[0],ze[1])<0&&(ze=ze.slice().reverse())):ze=null,J.vangles=ze,le.type==="category"&&(Ne=Ne.filter(function(vt){return C.isAngleInsideSector(xe(vt),J.sectorInRad)})),le.visible){var $e=le.ticks==="inside"?-1:1,st=(le.linewidth||1)/2;s.drawTicks(oe,le,{vals:Ne,layer:K["angular-axis"],path:"M"+$e*st+",0h"+$e*le.ticklen,transFn:ke,crisp:!1}),s.drawGrid(oe,le,{vals:Ne,layer:K["angular-grid"],path:Te,transFn:C.noop,crisp:!1}),s.drawLabels(oe,le,{vals:Ne,layer:K["angular-axis"],repositionOnUpdate:!0,transFn:Se,labelFns:Ie})}ie(K["angular-line"].select("path"),de.showline,{d:J.pathSubplot(),transform:v(re,ee)}).attr("stroke-width",de.linewidth).call(m.stroke,de.linecolor)},$.updateFx=function(fe,Q){if(!this.gd._context.staticPlot){var J=!this.isSmith;J&&(this.updateAngularDrag(fe),this.updateRadialDrag(fe,Q,0),this.updateRadialDrag(fe,Q,1)),this.updateHoverAndMainDrag(fe)}},$.updateHoverAndMainDrag=function(fe){var Q=this,J=Q.isSmith,oe=Q.gd,K=Q.layers,ne=fe._zoomlayer,ce=L.MINZOOM,re=L.OFFEDGE,ee=Q.radius,de=Q.innerRadius,le=Q.cx,he=Q.cy,xe=Q.cxx,Ee=Q.cyy,Se=Q.sectorInRad,ke=Q.vangles,Te=Q.radialAxis,Ae=P.clampTiny,be=P.findXYatLength,Ie=P.findEnclosingVertexAngles,Ue=L.cornerHalfWidth,Ne=L.cornerLen/2,ze,$e,st=u.makeDragger(K,"path","maindrag",fe.dragmode===!1?"none":"crosshair");l.select(st).attr("d",Q.pathSubplot()).attr("transform",v(le,he)),st.onmousemove=function(xt){p.hover(oe,xt,Q.id),oe._fullLayout._lasthover=st,oe._fullLayout._hoversubplot=Q.id},st.onmouseout=function(xt){oe._dragging||b.unhover(oe,xt)};var vt={element:st,gd:oe,subplot:Q.id,plotinfo:{id:Q.id,xaxis:Q.xaxis,yaxis:Q.yaxis},xaxes:[Q.xaxis],yaxes:[Q.yaxis]},at,nt,mt,rt,lt,dt,wt,et,Be;function Ye(xt,Lt){return Math.sqrt(xt*xt+Lt*Lt)}function Ke(xt,Lt){return Ye(xt-xe,Lt-Ee)}function We(xt,Lt){return Math.atan2(Ee-Lt,xt-xe)}function Fe(xt,Lt){return[xt*Math.cos(Lt),xt*Math.sin(-Lt)]}function Me(xt,Lt){if(xt===0)return Q.pathSector(2*Ue);var Xt=Ne/xt,dr=Lt-Xt,Tt=Lt+Xt,Kt=Math.max(0,Math.min(xt,ee)),Qt=Kt-Ue,xr=Kt+Ue;return"M"+Fe(Qt,dr)+"A"+[Qt,Qt]+" 0,0,0 "+Fe(Qt,Tt)+"L"+Fe(xr,Tt)+"A"+[xr,xr]+" 0,0,1 "+Fe(xr,dr)+"Z"}function we(xt,Lt,Xt){if(xt===0)return Q.pathSector(2*Ue);var dr=Fe(xt,Lt),Tt=Fe(xt,Xt),Kt=Ae((dr[0]+Tt[0])/2),Qt=Ae((dr[1]+Tt[1])/2),xr,sr;if(Kt&&Qt){var Ct=Qt/Kt,ht=-1/Ct,At=be(Ue,Ct,Kt,Qt);xr=be(Ne,ht,At[0][0],At[0][1]),sr=be(Ne,ht,At[1][0],At[1][1])}else{var Rt,_t;Qt?(Rt=Ne,_t=Ue):(Rt=Ue,_t=Ne),xr=[[Kt-Rt,Qt-_t],[Kt+Rt,Qt-_t]],sr=[[Kt-Rt,Qt+_t],[Kt+Rt,Qt+_t]]}return"M"+xr.join("L")+"L"+sr.reverse().join("L")+"Z"}function Re(){mt=null,rt=null,lt=Q.pathSubplot(),dt=!1;var xt=oe._fullLayout[Q.id];wt=S(xt.bgcolor).getLuminance(),et=u.makeZoombox(ne,wt,le,he,lt),et.attr("fill-rule","evenodd"),Be=u.makeCorners(ne,le,he),x(oe)}function Pe(xt,Lt){return Lt=Math.max(Math.min(Lt,ee),de),xtce?(xt-1&&xt===1&&c(Lt,oe,[Q.xaxis],[Q.yaxis],Q.id,vt),Xt.indexOf("event")>-1&&p.click(oe,Lt,Q.id)}vt.prepFn=function(xt,Lt,Xt){var dr=oe._fullLayout.dragmode,Tt=st.getBoundingClientRect();oe._fullLayout._calcInverseTransform(oe);var Kt=oe._fullLayout._invTransform;ze=oe._fullLayout._invScaleX,$e=oe._fullLayout._invScaleY;var Qt=C.apply3DTransform(Kt)(Lt-Tt.left,Xt-Tt.top);if(at=Qt[0],nt=Qt[1],ke){var xr=P.findPolygonOffset(ee,Se[0],Se[1],ke);at+=xe+xr[0],nt+=Ee+xr[1]}switch(dr){case"zoom":vt.clickFn=Vt,J||(ke?vt.moveFn=yt:vt.moveFn=Je,vt.doneFn=ut,Re());break;case"select":case"lasso":g(xt,Lt,Xt,vt,dr);break}},b.init(vt)},$.updateRadialDrag=function(fe,Q,J){var oe=this,K=oe.gd,ne=oe.layers,ce=oe.radius,re=oe.innerRadius,ee=oe.cx,de=oe.cy,le=oe.radialAxis,he=L.radialDragBoxSize,xe=he/2;if(!le.visible)return;var Ee=H(oe.radialAxisAngle),Se=le._rl,ke=Se[0],Te=Se[1],Ae=Se[J],be=.75*(Se[1]-Se[0])/(1-oe.getHole(Q))/ce,Ie,Ue,Ne;J?(Ie=ee+(ce+xe)*Math.cos(Ee),Ue=de-(ce+xe)*Math.sin(Ee),Ne="radialdrag"):(Ie=ee+(re-xe)*Math.cos(Ee),Ue=de-(re-xe)*Math.sin(Ee),Ne="radialdrag-inner");var ze=u.makeRectDragger(ne,Ne,"crosshair",-xe,-xe,he,he),$e={element:ze,gd:K};fe.dragmode===!1&&($e.dragmode=!1),ie(l.select(ze),le.visible&&re0!=(J?at>ke:at=90||K>90&&ne>=450?Ee=1:re<=0&&de<=0?Ee=0:Ee=Math.max(re,de),K<=180&&ne>=180||K>180&&ne>=540?le=-1:ce>=0&&ee>=0?le=0:le=Math.min(ce,ee),K<=270&&ne>=270||K>270&&ne>=630?he=-1:re>=0&&de>=0?he=0:he=Math.min(re,de),ne>=360?xe=1:ce<=0&&ee<=0?xe=0:xe=Math.max(ce,ee),[le,he,xe,Ee]}function ae(fe,Q){var J=function(K){return C.angleDist(fe,K)},oe=C.findIndexOfMin(Q,J);return Q[oe]}function ie(fe,Q,J){return Q?(fe.attr("display",null),fe.attr(J)):fe&&fe.attr("display","none"),fe}},57696:function(D,O,t){var l=t(3400),S=t(78344),i=l.deg2rad,C=l.rad2deg;D.exports=function(s,o,h){switch(S(s,h),s._id){case"x":case"radialaxis":w(s,o);break;case"angularaxis":a(s,o);break}};function w(n,s){var o=s._subplot;n.setGeometry=function(){var h=n._rl[0],f=n._rl[1],u=o.innerRadius,b=(o.radius-u)/(f-h),p=u/b,E=h>f?function(g){return g<=0}:function(g){return g>=0};n.c2g=function(g){var c=n.c2l(g)-h;return(E(c)?c:0)+p},n.g2c=function(g){return n.l2c(g+h-p)},n.g2p=function(g){return g*b},n.c2p=function(g){return n.g2p(n.c2g(g))}}}function v(n,s){return s==="degrees"?i(n):n}function m(n,s){return s==="degrees"?C(n):n}function a(n,s){var o=n.type;if(o==="linear"){var h=n.d2c,f=n.c2d;n.d2c=function(u,b){return v(h(u),b)},n.c2d=function(u,b){return f(m(u,b))}}n.makeCalcdata=function(u,b){var p=u[b],E=u._length,g,c,x=function(L){return n.d2c(L,u.thetaunit)};if(p)for(g=new Array(E),c=0;c0?1:0}function t(w){var v=w[0],m=w[1];if(!isFinite(v)||!isFinite(m))return[1,0];var a=(v+1)*(v+1)+m*m;return[(v*v+m*m-1)/a,2*m/a]}function l(w,v){var m=v[0],a=v[1];return[m*w.radius+w.cx,-a*w.radius+w.cy]}function S(w,v){return v*w.radius}function i(w,v,m,a){var n=l(w,t([m,v])),s=n[0],o=n[1],h=l(w,t([a,v])),f=h[0],u=h[1];if(v===0)return["M"+s+","+o,"L"+f+","+u].join(" ");var b=S(w,1/Math.abs(v));return["M"+s+","+o,"A"+b+","+b+" 0 0,"+(v<0?1:0)+" "+f+","+u].join(" ")}function C(w,v,m,a){var n=S(w,1/(v+1)),s=l(w,t([v,m])),o=s[0],h=s[1],f=l(w,t([v,a])),u=f[0],b=f[1];if(O(m)!==O(a)){var p=l(w,t([v,0])),E=p[0],g=p[1];return["M"+o+","+h,"A"+n+","+n+" 0 0,"+(00){for(var v=[],m=0;m=c&&(T.min=0,L.min=0,P.min=0,u.aaxis&&delete u.aaxis.min,u.baxis&&delete u.baxis.min,u.caxis&&delete u.caxis.min)}function f(u,b,p,E){var g=s[b._name];function c(d,k){return i.coerce(u,b,g,d,k)}c("uirevision",E.uirevision),b.type="linear";var x=c("color"),A=x!==g.color.dflt?x:p.font.color,M=b._name,R=M.charAt(0).toUpperCase(),T="Component "+R,L=c("title.text",T);b._hovertitle=L===T?L:R,i.coerceFont(c,"title.font",{family:p.font.family,size:i.bigFont(p.font.size),color:A}),c("min"),a(u,b,c,"linear"),v(u,b,c,"linear"),w(u,b,c,"linear",{noAutotickangles:!0}),m(u,b,c,{outerTicks:!0});var P=c("showticklabels");P&&(i.coerceFont(c,"tickfont",{family:p.font.family,size:p.font.size,color:A}),c("tickangle"),c("tickformat")),n(u,b,c,{dfltColor:x,bgColor:p.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:g}),c("hoverformat"),c("layer")}},24696:function(D,O,t){var l=t(33428),S=t(49760),i=t(24040),C=t(3400),w=C.strTranslate,v=C._,m=t(76308),a=t(43616),n=t(78344),s=t(92880).extendFlat,o=t(7316),h=t(54460),f=t(86476),u=t(93024),b=t(72760),p=b.freeMode,E=b.rectMode,g=t(81668),c=t(22676).prepSelect,x=t(22676).selectOnClick,A=t(22676).clearOutline,M=t(22676).clearSelectionsCache,R=t(33816);function T(W,V){this.id=W.id,this.graphDiv=W.graphDiv,this.init(V),this.makeFramework(V),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}D.exports=T;var L=T.prototype;L.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},L.plot=function(W,V){var $=this,Z=V[$.id],q=V._size;$._hasClipOnAxisFalse=!1;for(var ae=0;aeP*J?(le=J,de=le*P):(de=Q,le=de/P),he=ie*de/Q,xe=fe*le/J,re=V.l+V.w*q-de/2,ee=V.t+V.h*(1-ae)-le/2,$.x0=re,$.y0=ee,$.w=de,$.h=le,$.sum=oe,$.xaxis={type:"linear",range:[K+2*ce-oe,oe-K-2*ne],domain:[q-he/2,q+he/2],_id:"x"},n($.xaxis,$.graphDiv._fullLayout),$.xaxis.setScale(),$.xaxis.isPtWithinRange=function($e){return $e.a>=$.aaxis.range[0]&&$e.a<=$.aaxis.range[1]&&$e.b>=$.baxis.range[1]&&$e.b<=$.baxis.range[0]&&$e.c>=$.caxis.range[1]&&$e.c<=$.caxis.range[0]},$.yaxis={type:"linear",range:[K,oe-ne-ce],domain:[ae-xe/2,ae+xe/2],_id:"y"},n($.yaxis,$.graphDiv._fullLayout),$.yaxis.setScale(),$.yaxis.isPtWithinRange=function(){return!0};var Ee=$.yaxis.domain[0],Se=$.aaxis=s({},W.aaxis,{range:[K,oe-ne-ce],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Ee,Ee+xe*P],anchor:"free",position:0,_id:"y",_length:de});n(Se,$.graphDiv._fullLayout),Se.setScale();var ke=$.baxis=s({},W.baxis,{range:[oe-K-ce,ne],side:"bottom",domain:$.xaxis.domain,anchor:"free",position:0,_id:"x",_length:de});n(ke,$.graphDiv._fullLayout),ke.setScale();var Te=$.caxis=s({},W.caxis,{range:[oe-K-ne,ce],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Ee,Ee+xe*P],anchor:"free",position:0,_id:"y",_length:de});n(Te,$.graphDiv._fullLayout),Te.setScale();var Ae="M"+re+","+(ee+le)+"h"+de+"l-"+de/2+",-"+le+"Z";$.clipDef.select("path").attr("d",Ae),$.layers.plotbg.select("path").attr("d",Ae);var be="M0,"+le+"h"+de+"l-"+de/2+",-"+le+"Z";$.clipDefRelative.select("path").attr("d",be);var Ie=w(re,ee);$.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ie),$.clipDefRelative.select("path").attr("transform",null);var Ue=w(re-ke._offset,ee+le);$.layers.baxis.attr("transform",Ue),$.layers.bgrid.attr("transform",Ue);var Ne=w(re+de/2,ee)+"rotate(30)"+w(0,-Se._offset);$.layers.aaxis.attr("transform",Ne),$.layers.agrid.attr("transform",Ne);var ze=w(re+de/2,ee)+"rotate(-30)"+w(0,-Te._offset);$.layers.caxis.attr("transform",ze),$.layers.cgrid.attr("transform",ze),$.drawAxes(!0),$.layers.aline.select("path").attr("d",Se.showline?"M"+re+","+(ee+le)+"l"+de/2+",-"+le:"M0,0").call(m.stroke,Se.linecolor||"#000").style("stroke-width",(Se.linewidth||0)+"px"),$.layers.bline.select("path").attr("d",ke.showline?"M"+re+","+(ee+le)+"h"+de:"M0,0").call(m.stroke,ke.linecolor||"#000").style("stroke-width",(ke.linewidth||0)+"px"),$.layers.cline.select("path").attr("d",Te.showline?"M"+(re+de/2)+","+ee+"l"+de/2+","+le:"M0,0").call(m.stroke,Te.linecolor||"#000").style("stroke-width",(Te.linewidth||0)+"px"),$.graphDiv._context.staticPlot||$.initInteractions(),a.setClipUrl($.layers.frontplot,$._hasClipOnAxisFalse?null:$.clipId,$.graphDiv)},L.drawAxes=function(W){var V=this,$=V.graphDiv,Z=V.id.substr(7)+"title",q=V.layers,ae=V.aaxis,ie=V.baxis,fe=V.caxis;if(V.drawAx(ae),V.drawAx(ie),V.drawAx(fe),W){var Q=Math.max(ae.showticklabels?ae.tickfont.size/2:0,(fe.showticklabels?fe.tickfont.size*.75:0)+(fe.ticks==="outside"?fe.ticklen*.87:0)),J=(ie.showticklabels?ie.tickfont.size:0)+(ie.ticks==="outside"?ie.ticklen:0)+3;q["a-title"]=g.draw($,"a"+Z,{propContainer:ae,propName:V.id+".aaxis.title",placeholder:v($,"Click to enter Component A title"),attributes:{x:V.x0+V.w/2,y:V.y0-ae.title.font.size/3-Q,"text-anchor":"middle"}}),q["b-title"]=g.draw($,"b"+Z,{propContainer:ie,propName:V.id+".baxis.title",placeholder:v($,"Click to enter Component B title"),attributes:{x:V.x0-J,y:V.y0+V.h+ie.title.font.size*.83+J,"text-anchor":"middle"}}),q["c-title"]=g.draw($,"c"+Z,{propContainer:fe,propName:V.id+".caxis.title",placeholder:v($,"Click to enter Component C title"),attributes:{x:V.x0+V.w+J,y:V.y0+V.h+fe.title.font.size*.83+J,"text-anchor":"middle"}})}},L.drawAx=function(W){var V=this,$=V.graphDiv,Z=W._name,q=Z.charAt(0),ae=W._id,ie=V.layers[Z],fe=30,Q=q+"tickLayout",J=d(W);V[Q]!==J&&(ie.selectAll("."+ae+"tick").remove(),V[Q]=J),W.setScale();var oe=h.calcTicks(W),K=h.clipEnds(W,oe),ne=h.makeTransTickFn(W),ce=h.getTickSigns(W)[2],re=C.deg2rad(fe),ee=ce*(W.linewidth||1)/2,de=ce*W.ticklen,le=V.w,he=V.h,xe=q==="b"?"M0,"+ee+"l"+Math.sin(re)*de+","+Math.cos(re)*de:"M"+ee+",0l"+Math.cos(re)*de+","+-Math.sin(re)*de,Ee={a:"M0,0l"+he+",-"+le/2,b:"M0,0l-"+le/2+",-"+he,c:"M0,0l-"+he+","+le/2}[q];h.drawTicks($,W,{vals:W.ticks==="inside"?K:oe,layer:ie,path:xe,transFn:ne,crisp:!1}),h.drawGrid($,W,{vals:K,layer:V.layers[q+"grid"],path:Ee,transFn:ne,crisp:!1}),h.drawLabels($,W,{vals:oe,layer:ie,transFn:ne,labelFns:h.makeLabelFns(W,0,fe)})};function d(W){return W.ticks+String(W.ticklen)+String(W.showticklabels)}var k=R.MINZOOM/2+.87,I="m-0.87,.5h"+k+"v3h-"+(k+5.2)+"l"+(k/2+2.6)+",-"+(k*.87+4.5)+"l2.6,1.5l-"+k/2+","+k*.87+"Z",N="m0.87,.5h-"+k+"v3h"+(k+5.2)+"l-"+(k/2+2.6)+",-"+(k*.87+4.5)+"l-2.6,1.5l"+k/2+","+k*.87+"Z",B="m0,1l"+k/2+","+k*.87+"l2.6,-1.5l-"+(k/2+2.6)+",-"+(k*.87+4.5)+"l-"+(k/2+2.6)+","+(k*.87+4.5)+"l2.6,1.5l"+k/2+",-"+k*.87+"Z",G="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",U=!0;L.clearOutline=function(){M(this.dragOptions),A(this.dragOptions.gd)},L.initInteractions=function(){var W=this,V=W.layers.plotbg.select("path").node(),$=W.graphDiv,Z=$._fullLayout._zoomlayer,q,ae;this.dragOptions={element:V,gd:$,plotinfo:{id:W.id,domain:$._fullLayout[W.id].domain,xaxis:W.xaxis,yaxis:W.yaxis},subplot:W.id,prepFn:function(Ue,Ne,ze){W.dragOptions.xaxes=[W.xaxis],W.dragOptions.yaxes=[W.yaxis],q=$._fullLayout._invScaleX,ae=$._fullLayout._invScaleY;var $e=W.dragOptions.dragmode=$._fullLayout.dragmode;p($e)?W.dragOptions.minDrag=1:W.dragOptions.minDrag=void 0,$e==="zoom"?(W.dragOptions.moveFn=ke,W.dragOptions.clickFn=le,W.dragOptions.doneFn=Te,he(Ue,Ne,ze)):$e==="pan"?(W.dragOptions.moveFn=be,W.dragOptions.clickFn=le,W.dragOptions.doneFn=Ie,Ae(),W.clearOutline($)):(E($e)||p($e))&&c(Ue,Ne,ze,W.dragOptions,$e)}};var ie,fe,Q,J,oe,K,ne,ce,re,ee;function de(Ue){var Ne={};return Ne[W.id+".aaxis.min"]=Ue.a,Ne[W.id+".baxis.min"]=Ue.b,Ne[W.id+".caxis.min"]=Ue.c,Ne}function le(Ue,Ne){var ze=$._fullLayout.clickmode;H($),Ue===2&&($.emit("plotly_doubleclick",null),i.call("_guiRelayout",$,de({a:0,b:0,c:0}))),ze.indexOf("select")>-1&&Ue===1&&x(Ne,$,[W.xaxis],[W.yaxis],W.id,W.dragOptions),ze.indexOf("event")>-1&&u.click($,Ne,W.id)}function he(Ue,Ne,ze){var $e=V.getBoundingClientRect();ie=Ne-$e.left,fe=ze-$e.top,$._fullLayout._calcInverseTransform($);var st=$._fullLayout._invTransform,vt=C.apply3DTransform(st)(ie,fe);ie=vt[0],fe=vt[1],Q={a:W.aaxis.range[0],b:W.baxis.range[1],c:W.caxis.range[1]},oe=Q,J=W.aaxis.range[1]-Q.a,K=S(W.graphDiv._fullLayout[W.id].bgcolor).getLuminance(),ne="M0,"+W.h+"L"+W.w/2+", 0L"+W.w+","+W.h+"Z",ce=!1,re=Z.append("path").attr("class","zoombox").attr("transform",w(W.x0,W.y0)).style({fill:K>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",ne),ee=Z.append("path").attr("class","zoombox-corners").attr("transform",w(W.x0,W.y0)).style({fill:m.background,stroke:m.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),W.clearOutline($)}function xe(Ue,Ne){return 1-Ne/W.h}function Ee(Ue,Ne){return 1-(Ue+(W.h-Ne)/Math.sqrt(3))/W.w}function Se(Ue,Ne){return(Ue-(W.h-Ne)/Math.sqrt(3))/W.w}function ke(Ue,Ne){var ze=ie+Ue*q,$e=fe+Ne*ae,st=Math.max(0,Math.min(1,xe(ie,fe),xe(ze,$e))),vt=Math.max(0,Math.min(1,Ee(ie,fe),Ee(ze,$e))),at=Math.max(0,Math.min(1,Se(ie,fe),Se(ze,$e))),nt=(st/2+at)*W.w,mt=(1-st/2-vt)*W.w,rt=(nt+mt)/2,lt=mt-nt,dt=(1-st)*W.h,wt=dt-lt/P;lt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ee.transition().style("opacity",1).duration(200),ce=!0),$.emit("plotly_relayouting",de(oe))}function Te(){H($),oe!==Q&&(i.call("_guiRelayout",$,de(oe)),U&&$.data&&$._context.showTips&&(C.notifier(v($,"Double-click to zoom back out"),"long"),U=!1))}function Ae(){Q={a:W.aaxis.range[0],b:W.baxis.range[1],c:W.caxis.range[1]},oe=Q}function be(Ue,Ne){var ze=Ue/W.xaxis._m,$e=Ne/W.yaxis._m;oe={a:Q.a-$e,b:Q.b+(ze+$e)/2,c:Q.c-(ze-$e)/2};var st=[oe.a,oe.b,oe.c].sort(C.sorterAsc),vt={a:st.indexOf(oe.a),b:st.indexOf(oe.b),c:st.indexOf(oe.c)};st[0]<0&&(st[1]+st[0]/2<0?(st[2]+=st[0]+st[1],st[0]=st[1]=0):(st[2]+=st[0]/2,st[1]+=st[0]/2,st[0]=0),oe={a:st[vt.a],b:st[vt.b],c:st[vt.c]},Ne=(Q.a-oe.a)*W.yaxis._m,Ue=(Q.c-oe.c-Q.b+oe.b)*W.xaxis._m);var at=w(W.x0+Ue,W.y0+Ne);W.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",at);var nt=w(-Ue,-Ne);W.clipDefRelative.select("path").attr("transform",nt),W.aaxis.range=[oe.a,W.sum-oe.b-oe.c],W.baxis.range=[W.sum-oe.a-oe.c,oe.b],W.caxis.range=[W.sum-oe.a-oe.b,oe.c],W.drawAxes(!1),W._hasClipOnAxisFalse&&W.plotContainer.select(".scatterlayer").selectAll(".trace").call(a.hideOutsideRangePoints,W),$.emit("plotly_relayouting",de(oe))}function Ie(){i.call("_guiRelayout",$,de(oe))}V.onmousemove=function(Ue){u.hover($,Ue,W.id),$._fullLayout._lasthover=V,$._fullLayout._hoversubplot=W.id},V.onmouseout=function(Ue){$._dragging||f.unhover($,Ue)},f.init(this.dragOptions)};function H(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}},24040:function(D,O,t){var l=t(24248),S=t(16628),i=t(52416),C=t(63620),w=t(52200).addStyleRule,v=t(92880),m=t(45464),a=t(64859),n=v.extendFlat,s=v.extendDeepAll;O.modules={},O.allCategories={},O.allTypes=[],O.subplotsRegistry={},O.transformsRegistry={},O.componentsRegistry={},O.layoutArrayContainers=[],O.layoutArrayRegexes=[],O.traceLayoutAttributes={},O.localeRegistry={},O.apiMethodRegistry={},O.collectableSubplotTypes=null,O.register=function(M){if(O.collectableSubplotTypes=null,M)M&&!Array.isArray(M)&&(M=[M]);else throw new Error("No argument passed to Plotly.register.");for(var R=0;R-1}D.exports=function(a,n){var s,o=a.data,h=a.layout,f=C([],o),u=C({},h,w(n.tileClass)),b=a._context||{};if(n.width&&(u.width=n.width),n.height&&(u.height=n.height),n.tileClass==="thumbnail"||n.tileClass==="themes__thumb"){u.annotations=[];var p=Object.keys(u);for(s=0;s")!==-1?"":h.html(u).text()});return h.remove(),f}function s(o){return o.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}D.exports=function(h,f,u){var b=h._fullLayout,p=b._paper,E=b._toppaper,g=b.width,c=b.height,x;p.insert("rect",":first-child").call(i.setRect,0,0,g,c).call(C.fill,b.paper_bgcolor);var A=b._basePlotModules||[];for(x=0;x$+W||!l(V))}for(var q=0;q=0)return b}else if(typeof b=="string"&&(b=b.trim(),b.slice(-1)==="%"&&l(b.slice(0,-1))&&(b=+b.slice(0,-1),b>=0)))return b+"%"}function u(b,p,E,g,c,x){x=x||{};var A=x.moduleHasSelected!==!1,M=x.moduleHasUnselected!==!1,R=x.moduleHasConstrain!==!1,T=x.moduleHasCliponaxis!==!1,L=x.moduleHasTextangle!==!1,P=x.moduleHasInsideanchor!==!1,d=!!x.hasPathbar,k=Array.isArray(c)||c==="auto",I=k||c==="inside",N=k||c==="outside";if(I||N){var B=s(g,"textfont",E.font),G=S.extendFlat({},B),U=b.textfont&&b.textfont.color,H=!U;if(H&&delete G.color,s(g,"insidetextfont",G),d){var W=S.extendFlat({},B);H&&delete W.color,s(g,"pathbar.textfont",W)}N&&s(g,"outsidetextfont",B),A&&g("selected.textfont.color"),M&&g("unselected.textfont.color"),R&&g("constraintext"),T&&g("cliponaxis"),L&&g("textangle"),g("texttemplate")}I&&P&&g("insidetextanchor")}D.exports={supplyDefaults:o,crossTraceDefaults:h,handleText:u,validateCornerradius:f}},52160:function(D){D.exports=function(t,l,S){return t.x="xVal"in l?l.xVal:l.x,t.y="yVal"in l?l.yVal:l.y,l.xa&&(t.xaxis=l.xa),l.ya&&(t.yaxis=l.ya),S.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},60444:function(D,O,t){var l=t(38248),S=t(49760),i=t(3400).isArrayOrTypedArray;O.coerceString=function(C,w,v){if(typeof w=="string"){if(w||!C.noBlank)return w}else if((typeof w=="number"||w===!0)&&!C.strict)return String(w);return v!==void 0?v:C.dflt},O.coerceNumber=function(C,w,v){if(l(w)){w=+w;var m=C.min,a=C.max,n=m!==void 0&&wa;if(!n)return w}return v!==void 0?v:C.dflt},O.coerceColor=function(C,w,v){return S(w).isValid()?w:v!==void 0?v:C.dflt},O.coerceEnumerated=function(C,w,v){return C.coerceNumber&&(w=+w),C.values.indexOf(w)!==-1?w:v!==void 0?v:C.dflt},O.getValue=function(C,w){var v;return i(C)?w0?xe+=Ee:T<0&&(xe-=Ee)}return xe}function fe(he){var xe=T,Ee=he.b,Se=ie(he);return l.inbox(Ee-xe,Se-xe,A+(Se-xe)/(Se-Ee)-1)}function Q(he){var xe=T,Ee=he.b,Se=ie(he);return l.inbox(Ee-xe,Se-xe,M+(Se-xe)/(Se-Ee)-1)}var J=o[L+"a"],oe=o[P+"a"];I=Math.abs(J.r2c(J.range[1])-J.r2c(J.range[0]));function K(he){return(d(he)+k(he))/2}var ne=l.getDistanceFunction(u,d,k,K);if(l.getClosest(p,ne,o),o.index!==!1&&p[o.index].p!==m){B||(V=function(he){return Math.min(G(he),he.p-g.bargroupwidth/2)},$=function(he){return Math.max(U(he),he.p+g.bargroupwidth/2)});var ce=o.index,re=p[ce],ee=E.base?re.b+re.s:re.s;o[P+"0"]=o[P+"1"]=oe.c2p(re[P],!0),o[P+"LabelVal"]=ee;var de=g.extents[g.extents.round(re.p)];o[L+"0"]=J.c2p(c?V(re):de[0],!0),o[L+"1"]=J.c2p(c?$(re):de[1],!0);var le=re.orig_p!==void 0;return o[L+"LabelVal"]=le?re.orig_p:re.p,o.labelLabel=v(J,o[L+"LabelVal"],E[L+"hoverformat"]),o.valueLabel=v(oe,o[P+"LabelVal"],E[P+"hoverformat"]),o.baseLabel=v(oe,re.b,E[P+"hoverformat"]),o.spikeDistance=(Q(re)+ae(re))/2,o[L+"Spike"]=J.c2p(re.p,!0),C(re,E,o),o.hovertemplate=E.hovertemplate,o}}function s(o,h){var f=h.mcc||o.marker.color,u=h.mlcc||o.marker.line.color,b=w(o,h);if(i.opacity(f))return f;if(i.opacity(u)&&b)return u}D.exports={hoverPoints:a,hoverOnBars:n,getTraceColor:s}},51132:function(D,O,t){D.exports={attributes:t(20832),layoutAttributes:t(39324),supplyDefaults:t(31508).supplyDefaults,crossTraceDefaults:t(31508).crossTraceDefaults,supplyLayoutDefaults:t(37156),calc:t(71820),crossTraceCalc:t(96376).crossTraceCalc,colorbar:t(5528),arraysToCalcdata:t(84664),plot:t(98184).plot,style:t(60100).style,styleOnSelect:t(60100).styleOnSelect,hoverPoints:t(63400).hoverPoints,eventData:t(52160),selectPoints:t(45784),moduleType:"trace",name:"bar",basePlotModule:t(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(D){D.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(D,O,t){var l=t(24040),S=t(54460),i=t(3400),C=t(39324),w=t(31508).validateCornerradius;D.exports=function(v,m,a){function n(x,A){return i.coerce(v,m,C,x,A)}for(var s=!1,o=!1,h=!1,f={},u=n("barmode"),b=0;b0)-(q<0)}function R(q,ae){return q0}function d(q,ae,ie,fe,Q,J){var oe=ae.xaxis,K=ae.yaxis,ne=q._fullLayout,ce=q._context.staticPlot;Q||(Q={mode:ne.barmode,norm:ne.barmode,gap:ne.bargap,groupgap:ne.bargroupgap},o("bar",ne));var re=i.makeTraceGroups(fe,ie,"trace bars").each(function(ee){var de=l.select(this),le=ee[0].trace,he=ee[0].t,xe=le.type==="waterfall",Ee=le.type==="funnel",Se=le.type==="histogram",ke=le.type==="bar",Te=ke||Ee,Ae=0;xe&&le.connector.visible&&le.connector.mode==="between"&&(Ae=le.connector.line.width/2);var be=le.orientation==="h",Ie=P(Q),Ue=i.ensureSingle(de,"g","points"),Ne=A(le),ze=Ue.selectAll("g.point").data(i.identity,Ne);ze.enter().append("g").classed("point",!0),ze.exit().remove(),ze.each(function(st,vt){var at=l.select(this),nt=T(st,oe,K,be),mt=nt[0][0],rt=nt[0][1],lt=nt[1][0],dt=nt[1][1],wt=(be?rt-mt:dt-lt)===0;wt&&Te&&f.getLineWidth(le,st)&&(wt=!1),wt||(wt=!S(mt)||!S(rt)||!S(lt)||!S(dt)),st.isBlank=wt,wt&&(be?rt=mt:dt=lt),Ae&&!wt&&(be?(mt-=R(mt,rt)*Ae,rt+=R(mt,rt)*Ae):(lt-=R(lt,dt)*Ae,dt+=R(lt,dt)*Ae));var et,Be;if(le.type==="waterfall"){if(!wt){var Ye=le[st.dir].marker;et=Ye.line.width,Be=Ye.color}}else et=f.getLineWidth(le,st),Be=st.mc||le.marker.color;function Ke(ht){var At=l.round(et/2%1,2);return Q.gap===0&&Q.groupgap===0?l.round(Math.round(ht)-At,2):ht}function We(ht,At,Rt){return Rt&&ht===At?ht:Math.abs(ht-At)>=2?Ke(ht):ht>At?Math.ceil(ht):Math.floor(ht)}var Fe=w.opacity(Be),Me=Fe<1||et>.01?Ke:We;q._context.staticPlot||(mt=Me(mt,rt,be),rt=Me(rt,mt,be),lt=Me(lt,dt,!be),dt=Me(dt,lt,!be));var we=be?oe.c2p:K.c2p,Re;st.s0>0?Re=st._sMax:st.s0<0?Re=st._sMin:Re=st.s1>0?st._sMax:st._sMin;function Pe(ht,At){if(!ht)return 0;var Rt=Math.abs(be?dt-lt:rt-mt),_t=Math.abs(be?rt-mt:dt-lt),Ft=Me(Math.abs(we(Re,!0)-we(0,!0))),Wt=st.hasB?Math.min(Rt/2,_t/2):Math.min(Rt/2,Ft),jt;if(At==="%"){var er=Math.min(50,ht);jt=Rt*(er/100)}else jt=ht;return Me(Math.max(Math.min(jt,Wt),0))}var Ve=ke||Se?Pe(he.cornerradiusvalue,he.cornerradiusform):0,Je,ot,yt="M"+mt+","+lt+"V"+dt+"H"+rt+"V"+lt+"Z",ut=0;if(Ve&&st.s){var It=M(st.s0)===0||M(st.s)===M(st.s0)?st.s1:st.s0;if(ut=Me(st.hasB?0:Math.abs(we(Re,!0)-we(It,!0))),ut0?Math.sqrt(ut*(2*Ve-ut)):0,Tt=Vt>0?Math.max:Math.min;Je="M"+mt+","+lt+"V"+(dt-Xt*xt)+"H"+Tt(rt-(Ve-ut)*Vt,mt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+rt+","+(dt-Ve*xt-dr)+"V"+(lt+Ve*xt+dr)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+Tt(rt-(Ve-ut)*Vt,mt)+","+(lt+Xt*xt)+"Z"}else if(st.hasB)Je="M"+(mt+Ve*Vt)+","+lt+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+mt+","+(lt+Ve*xt)+"V"+(dt-Ve*xt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(mt+Ve*Vt)+","+dt+"H"+(rt-Ve*Vt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+rt+","+(dt-Ve*xt)+"V"+(lt+Ve*xt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(rt-Ve*Vt)+","+lt+"Z";else{ot=Math.abs(dt-lt)+ut;var Kt=ot0?Math.sqrt(ut*(2*Ve-ut)):0,xr=xt>0?Math.max:Math.min;Je="M"+(mt+Kt*Vt)+","+lt+"V"+xr(dt-(Ve-ut)*xt,lt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(mt+Ve*Vt-Qt)+","+dt+"H"+(rt-Ve*Vt+Qt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(rt-Kt*Vt)+","+xr(dt-(Ve-ut)*xt,lt)+"V"+lt+"Z"}}else Je=yt}else Je=yt;var sr=L(i.ensureSingle(at,"path"),ne,Q,J);if(sr.style("vector-effect",ce?"none":"non-scaling-stroke").attr("d",isNaN((rt-mt)*(dt-lt))||wt&&q._context.staticPlot?"M0,0Z":Je).call(v.setClipUrl,ae.layerClipId,q),!ne.uniformtext.mode&&Ie){var Ct=v.makePointStyleFns(le);v.singlePointStyle(st,sr,le,Ct,q)}k(q,ae,at,ee,vt,mt,rt,lt,dt,Ve,ut,Q,J),ae.layerClipId&&v.hideOutsideRangePoint(st,at.select("text"),oe,K,le.xcalendar,le.ycalendar)});var $e=le.cliponaxis===!1;v.setClipUrl(de,$e?null:ae.layerClipId,q)});m.getComponentMethod("errorbars","plot")(q,re,ae,Q)}function k(q,ae,ie,fe,Q,J,oe,K,ne,ce,re,ee,de){var le=ae.xaxis,he=ae.yaxis,xe=q._fullLayout,Ee;function Se(ot,yt,ut){var It=i.ensureSingle(ot,"text").text(yt).attr({class:"bartext bartext-"+Ee,"text-anchor":"middle","data-notex":1}).call(v.font,ut).call(C.convertToTspans,q);return It}var ke=fe[0].trace,Te=ke.orientation==="h",Ae=W(xe,fe,Q,le,he);Ee=V(ke,Q);var be=ee.mode==="stack"||ee.mode==="relative",Ie=fe[Q],Ue=!be||Ie._outmost,Ne=Ie.hasB,ze=ce&&ce-re>c;if(!Ae||Ee==="none"||(Ie.isBlank||J===oe||K===ne)&&(Ee==="auto"||Ee==="inside")){ie.select("text").remove();return}var $e=xe.font,st=h.getBarColor(fe[Q],ke),vt=h.getInsideTextFont(ke,Q,$e,st),at=h.getOutsideTextFont(ke,Q,$e),nt=ke.insidetextanchor||"end",mt=ie.datum();Te?le.type==="log"&&mt.s0<=0&&(le.range[0]0&&Ke>0,Me;ze?Ne?Me=I(dt-2*ce,wt,Ye,Ke,Te)||I(dt,wt-2*ce,Ye,Ke,Te):Te?Me=I(dt-(ce-re),wt,Ye,Ke,Te)||I(dt,wt-2*(ce-re),Ye,Ke,Te):Me=I(dt,wt-(ce-re),Ye,Ke,Te)||I(dt-2*(ce-re),wt,Ye,Ke,Te):Me=I(dt,wt,Ye,Ke,Te),Fe&&Me?Ee="inside":(Ee="outside",et.remove(),et=null)}else Ee="inside";if(!et){We=i.ensureUniformFontSize(q,Ee==="outside"?at:vt),et=Se(ie,Ae,We);var we=et.attr("transform");if(et.attr("transform",""),Be=v.bBox(et.node()),Ye=Be.width,Ke=Be.height,et.attr("transform",we),Ye<=0||Ke<=0){et.remove();return}}var Re=ke.textangle,Pe,Ve;Ee==="outside"?(Ve=ke.constraintext==="both"||ke.constraintext==="outside",Pe=H(J,oe,K,ne,Be,{isHorizontal:Te,constrained:Ve,angle:Re})):(Ve=ke.constraintext==="both"||ke.constraintext==="inside",Pe=G(J,oe,K,ne,Be,{isHorizontal:Te,constrained:Ve,angle:Re,anchor:nt,hasB:Ne,r:ce,overhead:re})),Pe.fontSize=We.size,s(ke.type==="histogram"?"bar":ke.type,Pe,xe),Ie.transform=Pe;var Je=L(et,xe,ee,de);i.setTransormAndDisplay(Je,Pe)}function I(q,ae,ie,fe,Q){if(q<0||ae<0)return!1;var J=ie<=q&&fe<=ae,oe=ie<=ae&&fe<=q,K=Q?q>=ie*(ae/fe):ae>=fe*(q/ie);return J||oe||K}function N(q){return q==="auto"?0:q}function B(q,ae){var ie=Math.PI/180*ae,fe=Math.abs(Math.sin(ie)),Q=Math.abs(Math.cos(ie));return{x:q.width*Q+q.height*fe,y:q.width*fe+q.height*Q}}function G(q,ae,ie,fe,Q,J){var oe=!!J.isHorizontal,K=!!J.constrained,ne=J.angle||0,ce=J.anchor,re=ce==="end",ee=ce==="start",de=J.leftToRight||0,le=(de+1)/2,he=1-le,xe=J.hasB,Ee=J.r,Se=J.overhead,ke=Q.width,Te=Q.height,Ae=Math.abs(ae-q),be=Math.abs(fe-ie),Ie=Ae>2*c&&be>2*c?c:0;Ae-=2*Ie,be-=2*Ie;var Ue=N(ne);ne==="auto"&&!(ke<=Ae&&Te<=be)&&(ke>Ae||Te>be)&&(!(ke>be||Te>Ae)||kec){var st=U(q,ae,ie,fe,Ne,Ee,Se,oe,xe);ze=st.scale,$e=st.pad}else ze=1,K&&(ze=Math.min(1,Ae/Ne.x,be/Ne.y)),$e=0;var vt=Q.left*he+Q.right*le,at=(Q.top+Q.bottom)/2,nt=(q+c)*he+(ae-c)*le,mt=(ie+fe)/2,rt=0,lt=0;if(ee||re){var dt=(oe?Ne.x:Ne.y)/2;Ee&&(re||xe)&&(Ie+=$e);var wt=oe?R(q,ae):R(ie,fe);oe?ee?(nt=q+wt*Ie,rt=-wt*dt):(nt=ae-wt*Ie,rt=wt*dt):ee?(mt=ie+wt*Ie,lt=-wt*dt):(mt=fe-wt*Ie,lt=wt*dt)}return{textX:vt,textY:at,targetX:nt,targetY:mt,anchorX:rt,anchorY:lt,scale:ze,rotate:Ue}}function U(q,ae,ie,fe,Q,J,oe,K,ne){var ce=Math.max(0,Math.abs(ae-q)-2*c),re=Math.max(0,Math.abs(fe-ie)-2*c),ee=J-c,de=oe?ee-Math.sqrt(ee*ee-(ee-oe)*(ee-oe)):ee,le=ne?ee*2:K?ee-oe:2*de,he=ne?ee*2:K?2*de:ee-oe,xe,Ee,Se,ke,Te;return Q.y/Q.x>=re/(ce-le)?ke=re/Q.y:Q.y/Q.x<=(re-he)/ce?ke=ce/Q.x:!ne&&K?(xe=Q.x*Q.x+Q.y*Q.y/4,Ee=-2*Q.x*(ce-ee)-Q.y*(re/2-ee),Se=(ce-ee)*(ce-ee)+(re/2-ee)*(re/2-ee)-ee*ee,ke=(-Ee+Math.sqrt(Ee*Ee-4*xe*Se))/(2*xe)):ne?(xe=(Q.x*Q.x+Q.y*Q.y)/4,Ee=-Q.x*(ce/2-ee)-Q.y*(re/2-ee),Se=(ce/2-ee)*(ce/2-ee)+(re/2-ee)*(re/2-ee)-ee*ee,ke=(-Ee+Math.sqrt(Ee*Ee-4*xe*Se))/(2*xe)):(xe=Q.x*Q.x/4+Q.y*Q.y,Ee=-Q.x*(ce/2-ee)-2*Q.y*(re-ee),Se=(ce/2-ee)*(ce/2-ee)+(re-ee)*(re-ee)-ee*ee,ke=(-Ee+Math.sqrt(Ee*Ee-4*xe*Se))/(2*xe)),ke=Math.min(1,ke),K?Te=Math.max(0,ee-Math.sqrt(Math.max(0,ee*ee-(ee-(re-Q.y*ke)/2)*(ee-(re-Q.y*ke)/2)))-oe):Te=Math.max(0,ee-Math.sqrt(Math.max(0,ee*ee-(ee-(ce-Q.x*ke)/2)*(ee-(ce-Q.x*ke)/2)))-oe),{scale:ke,pad:Te}}function H(q,ae,ie,fe,Q,J){var oe=!!J.isHorizontal,K=!!J.constrained,ne=J.angle||0,ce=Q.width,re=Q.height,ee=Math.abs(ae-q),de=Math.abs(fe-ie),le;oe?le=de>2*c?c:0:le=ee>2*c?c:0;var he=1;K&&(he=oe?Math.min(1,de/re):Math.min(1,ee/ce));var xe=N(ne),Ee=B(Q,xe),Se=(oe?Ee.x:Ee.y)/2,ke=(Q.left+Q.right)/2,Te=(Q.top+Q.bottom)/2,Ae=(q+ae)/2,be=(ie+fe)/2,Ie=0,Ue=0,Ne=oe?R(ae,q):R(ie,fe);return oe?(Ae=ae-Ne*le,Ie=Ne*Se):(be=fe+Ne*le,Ue=-Ne*Se),{textX:ke,textY:Te,targetX:Ae,targetY:be,anchorX:Ie,anchorY:Ue,scale:he,rotate:xe}}function W(q,ae,ie,fe,Q){var J=ae[0].trace,oe=J.texttemplate,K;return oe?K=$(q,ae,ie,fe,Q):J.textinfo?K=Z(ae,ie,fe,Q):K=f.getValue(J.text,ie),f.coerceString(p,K)}function V(q,ae){var ie=f.getValue(q.textposition,ae);return f.coerceEnumerated(E,ie)}function $(q,ae,ie,fe,Q){var J=ae[0].trace,oe=i.castOption(J,ie,"texttemplate");if(!oe)return"";var K=J.type==="histogram",ne=J.type==="waterfall",ce=J.type==="funnel",re=J.orientation==="h",ee,de,le,he;re?(ee="y",de=Q,le="x",he=fe):(ee="x",de=fe,le="y",he=Q);function xe(Ie){return a(de,de.c2l(Ie),!0).text}function Ee(Ie){return a(he,he.c2l(Ie),!0).text}var Se=ae[ie],ke={};ke.label=Se.p,ke.labelLabel=ke[ee+"Label"]=xe(Se.p);var Te=i.castOption(J,Se.i,"text");(Te===0||Te)&&(ke.text=Te),ke.value=Se.s,ke.valueLabel=ke[le+"Label"]=Ee(Se.s);var Ae={};g(Ae,J,Se.i),(K||Ae.x===void 0)&&(Ae.x=re?ke.value:ke.label),(K||Ae.y===void 0)&&(Ae.y=re?ke.label:ke.value),(K||Ae.xLabel===void 0)&&(Ae.xLabel=re?ke.valueLabel:ke.labelLabel),(K||Ae.yLabel===void 0)&&(Ae.yLabel=re?ke.labelLabel:ke.valueLabel),ne&&(ke.delta=+Se.rawS||Se.s,ke.deltaLabel=Ee(ke.delta),ke.final=Se.v,ke.finalLabel=Ee(ke.final),ke.initial=ke.final-ke.delta,ke.initialLabel=Ee(ke.initial)),ce&&(ke.value=Se.s,ke.valueLabel=Ee(ke.value),ke.percentInitial=Se.begR,ke.percentInitialLabel=i.formatPercent(Se.begR),ke.percentPrevious=Se.difR,ke.percentPreviousLabel=i.formatPercent(Se.difR),ke.percentTotal=Se.sumR,ke.percenTotalLabel=i.formatPercent(Se.sumR));var be=i.castOption(J,Se.i,"customdata");return be&&(ke.customdata=be),i.texttemplateString(oe,ke,q._d3locale,Ae,ke,J._meta||{})}function Z(q,ae,ie,fe){var Q=q[0].trace,J=Q.orientation==="h",oe=Q.type==="waterfall",K=Q.type==="funnel";function ne(be){var Ie=J?fe:ie;return a(Ie,be,!0).text}function ce(be){var Ie=J?ie:fe;return a(Ie,+be,!0).text}var re=Q.textinfo,ee=q[ae],de=re.split("+"),le=[],he,xe=function(be){return de.indexOf(be)!==-1};if(xe("label")&&le.push(ne(q[ae].p)),xe("text")&&(he=i.castOption(Q,ee.i,"text"),(he===0||he)&&le.push(he)),oe){var Ee=+ee.rawS||ee.s,Se=ee.v,ke=Se-Ee;xe("initial")&&le.push(ce(ke)),xe("delta")&&le.push(ce(Ee)),xe("final")&&le.push(ce(Se))}if(K){xe("value")&&le.push(ce(ee.s));var Te=0;xe("percent initial")&&Te++,xe("percent previous")&&Te++,xe("percent total")&&Te++;var Ae=Te>1;xe("percent initial")&&(he=i.formatPercent(ee.begR),Ae&&(he+=" of initial"),le.push(he)),xe("percent previous")&&(he=i.formatPercent(ee.difR),Ae&&(he+=" of previous"),le.push(he)),xe("percent total")&&(he=i.formatPercent(ee.sumR),Ae&&(he+=" of total"),le.push(he))}return le.join("
")}D.exports={plot:d,toMoveInsideBar:G}},45784:function(D){D.exports=function(l,S){var i=l.cd,C=l.xaxis,w=l.yaxis,v=i[0].trace,m=v.type==="funnel",a=v.orientation==="h",n=[],s;if(S===!1)for(s=0;s1||d.bargap===0&&d.bargroupgap===0&&!k[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),L.selectAll("g.points").each(function(k){var I=l.select(this),N=k[0].trace;f(I,N,T)}),w.getComponentMethod("errorbars","style")(L)}function f(T,L,P){i.pointStyle(T.selectAll("path"),L,P),u(T,L,P)}function u(T,L,P){T.selectAll("text").each(function(d){var k=l.select(this),I=C.ensureUniformFontSize(P,g(k,d,L,P));i.font(k,I)})}function b(T,L,P){var d=L[0].trace;d.selectedpoints?p(P,d,T):(f(P,d,T),w.getComponentMethod("errorbars","style")(P))}function p(T,L,P){i.selectedPointStyle(T.selectAll("path"),L),E(T.selectAll("text"),L,P)}function E(T,L,P){T.each(function(d){var k=l.select(this),I;if(d.selected){I=C.ensureUniformFontSize(P,g(k,d,L,P));var N=L.selected.textfont&&L.selected.textfont.color;N&&(I.color=N),i.font(k,I)}else i.selectedTextStyle(k,L)})}function g(T,L,P,d){var k=d._fullLayout.font,I=P.textfont;if(T.classed("bartext-inside")){var N=R(L,P);I=x(P,L.i,k,N)}else T.classed("bartext-outside")&&(I=A(P,L.i,k));return I}function c(T,L,P){return M(a,T.textfont,L,P)}function x(T,L,P,d){var k=c(T,L,P),I=T._input.textfont===void 0||T._input.textfont.color===void 0||Array.isArray(T.textfont.color)&&T.textfont.color[L]===void 0;return I&&(k={color:S.contrast(d),family:k.family,size:k.size}),M(n,T.insidetextfont,L,k)}function A(T,L,P){var d=c(T,L,P);return M(s,T.outsidetextfont,L,d)}function M(T,L,P,d){L=L||{};var k=o.getValue(L.family,P),I=o.getValue(L.size,P),N=o.getValue(L.color,P);return{family:o.coerceString(T.family,k,d.family),size:o.coerceNumber(T.size,I,d.size),color:o.coerceColor(T.color,N,d.color)}}function R(T,L){return L.type==="waterfall"?L[T.dir].marker.color:T.mcc||T.mc||L.marker.color}D.exports={style:h,styleTextPoints:u,styleOnSelect:b,getInsideTextFont:x,getOutsideTextFont:A,getBarColor:R,resizeText:v}},55592:function(D,O,t){var l=t(76308),S=t(94288).hasColorscale,i=t(27260),C=t(3400).coercePattern;D.exports=function(v,m,a,n,s){var o=a("marker.color",n),h=S(v,"marker");h&&i(v,m,s,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",l.defaultLine),S(v,"marker.line")&&i(v,m,s,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),C(a,"marker.pattern",o,h),a("selected.marker.color"),a("unselected.marker.color")}},82744:function(D,O,t){var l=t(33428),S=t(3400);function i(m,a,n){var s=m._fullLayout,o=s["_"+n+"Text_minsize"];if(o){var h=s.uniformtext.mode==="hide",f;switch(n){case"funnelarea":case"pie":case"sunburst":f="g.slice";break;case"treemap":case"icicle":f="g.slice, g.pathbar";break;default:f="g.points > g.point"}a.selectAll(f).each(function(u){var b=u.transform;if(b){b.scale=h&&b.hide?0:o/b.fontSize;var p=l.select(this).select("text");S.setTransormAndDisplay(p,b)}})}}function C(m,a,n){if(n.uniformtext.mode){var s=v(m),o=n.uniformtext.minsize,h=a.scale*a.fontSize;a.hide=hu.range[1]&&(A+=Math.PI);var M=function(P){return E(x,A,[P.rp0,P.rp1],[P.thetag0,P.thetag1],p)?g+Math.min(1,Math.abs(P.thetag1-P.thetag0)/c)-1+(P.rp1-x)/(P.rp1-P.rp0)-1:1/0};if(l.getClosest(o,M,a),a.index!==!1){var R=a.index,T=o[R];a.x0=a.x1=T.ct[0],a.y0=a.y1=T.ct[1];var L=S.extendFlat({},T,{r:T.s,theta:T.p});return C(T,h,a),w(L,h,f,a),a.hovertemplate=h.hovertemplate,a.color=i(h,T),a.xLabelVal=a.yLabelVal=void 0,T.s<0&&(a.idealAlign="left"),[a]}}},94456:function(D,O,t){D.exports={moduleType:"trace",name:"barpolar",basePlotModule:t(40872),categories:["polar","bar","showLegend"],attributes:t(78100),layoutAttributes:t(9320),supplyDefaults:t(70384),supplyLayoutDefaults:t(89580),calc:t(47056).calc,crossTraceCalc:t(47056).crossTraceCalc,plot:t(42040),colorbar:t(5528),formatLabels:t(22852),style:t(60100).style,styleOnSelect:t(60100).styleOnSelect,hoverPoints:t(68896),selectPoints:t(45784),meta:{}}},9320:function(D){D.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(D,O,t){var l=t(3400),S=t(9320);D.exports=function(i,C,w){var v={},m;function a(o,h){return l.coerce(i[m]||{},C[m],S,o,h)}for(var n=0;n0?(u=h,b=f):(u=f,b=h);var p=w.findEnclosingVertexAngles(u,m.vangles)[0],E=w.findEnclosingVertexAngles(b,m.vangles)[1],g=[p,(u+b)/2,E];return w.pathPolygonAnnulus(s,o,u,b,g,a,n)}:function(s,o,h,f){return i.pathAnnulus(s,o,h,f,a,n)}}},63188:function(D,O,t){var l=t(98304),S=t(52904),i=t(20832),C=t(22548),w=t(29736).axisHoverFormat,v=t(21776).Ks,m=t(92880).extendFlat,a=S.marker,n=a.line;D.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:S.xperiod,yperiod:S.yperiod,xperiod0:S.xperiod0,yperiod0:S.yperiod0,xperiodalignment:S.xperiodalignment,yperiodalignment:S.yperiodalignment,xhoverformat:w("x"),yhoverformat:w("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:m({},a.symbol,{arrayOk:!1,editType:"plot"}),opacity:m({},a.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:m({},a.angle,{arrayOk:!1,editType:"calc"}),size:m({},a.size,{arrayOk:!1,editType:"calc"}),color:m({},a.color,{arrayOk:!1,editType:"style"}),line:{color:m({},n.color,{arrayOk:!1,dflt:C.defaultLine,editType:"style"}),width:m({},n.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:l(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:S.selected.marker,editType:"style"},unselected:{marker:S.unselected.marker,editType:"style"},text:m({},S.text,{}),hovertext:m({},S.hovertext,{}),hovertemplate:v({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(D,O,t){var l=t(38248),S=t(54460),i=t(1220),C=t(3400),w=t(39032).BADNUM,v=C._;D.exports=function(A,M){var R=A._fullLayout,T=S.getFromId(A,M.xaxis||"x"),L=S.getFromId(A,M.yaxis||"y"),P=[],d=M.type==="violin"?"_numViolins":"_numBoxes",k,I,N,B,G,U,H;M.orientation==="h"?(N=T,B="x",G=L,U="y",H=!!M.yperiodalignment):(N=L,B="y",G=T,U="x",H=!!M.xperiodalignment);var W=m(M,U,G,R[d]),V=W[0],$=W[1],Z=C.distinctVals(V,G),q=Z.vals,ae=Z.minDiff/2,ie,fe,Q,J,oe,K,ne=(M.boxpoints||M.points)==="all"?C.identity:function(wt){return wt.vie.uf};if(M._hasPreCompStats){var ce=M[B],re=function(wt){return N.d2c((M[wt]||[])[k])},ee=1/0,de=-1/0;for(k=0;k=ie.q1&&ie.q3>=ie.med){var he=re("lowerfence");ie.lf=he!==w&&he<=ie.q1?he:b(ie,Q,J);var xe=re("upperfence");ie.uf=xe!==w&&xe>=ie.q3?xe:p(ie,Q,J);var Ee=re("mean");ie.mean=Ee!==w?Ee:J?C.mean(Q,J):(ie.q1+ie.q3)/2;var Se=re("sd");ie.sd=Ee!==w&&Se>=0?Se:J?C.stdev(Q,J,ie.mean):ie.q3-ie.q1,ie.lo=E(ie),ie.uo=g(ie);var ke=re("notchspan");ke=ke!==w&&ke>0?ke:c(ie,J),ie.ln=ie.med-ke,ie.un=ie.med+ke;var Te=ie.lf,Ae=ie.uf;M.boxpoints&&Q.length&&(Te=Math.min(Te,Q[0]),Ae=Math.max(Ae,Q[J-1])),M.notched&&(Te=Math.min(Te,ie.ln),Ae=Math.max(Ae,ie.un)),ie.min=Te,ie.max=Ae}else{C.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+ie.q1,"median = "+ie.med,"q3 = "+ie.q3].join(` -`));var be;ie.med!==w?be=ie.med:ie.q1!==w?ie.q3!==w?be=(ie.q1+ie.q3)/2:be=ie.q1:ie.q3!==w?be=ie.q3:be=0,ie.med=be,ie.q1=ie.q3=be,ie.lf=ie.uf=be,ie.mean=ie.sd=be,ie.ln=ie.un=be,ie.min=ie.max=be}ee=Math.min(ee,ie.min),de=Math.max(de,ie.max),ie.pts2=fe.filter(ne),P.push(ie)}}M._extremes[N._id]=S.findExtremes(N,[ee,de],{padded:!0})}else{var Ie=N.makeCalcdata(M,B),Ue=a(q,ae),Ne=q.length,ze=n(Ne);for(k=0;k=0&&$e0){if(ie={},ie.pos=ie[U]=q[k],fe=ie.pts=ze[k].sort(f),Q=ie[B]=fe.map(u),J=Q.length,ie.min=Q[0],ie.max=Q[J-1],ie.mean=C.mean(Q,J),ie.sd=C.stdev(Q,J,ie.mean)*M.sdmultiple,ie.med=C.interp(Q,.5),J%2&&(nt||mt)){var rt,lt;nt?(rt=Q.slice(0,J/2),lt=Q.slice(J/2+1)):mt&&(rt=Q.slice(0,J/2+1),lt=Q.slice(J/2)),ie.q1=C.interp(rt,.5),ie.q3=C.interp(lt,.5)}else ie.q1=C.interp(Q,.25),ie.q3=C.interp(Q,.75);ie.lf=b(ie,Q,J),ie.uf=p(ie,Q,J),ie.lo=E(ie),ie.uo=g(ie);var dt=c(ie,J);ie.ln=ie.med-dt,ie.un=ie.med+dt,st=Math.min(st,ie.ln),vt=Math.max(vt,ie.un),ie.pts2=fe.filter(ne),P.push(ie)}M.notched&&C.isTypedArray(Ie)&&(Ie=Array.from(Ie)),M._extremes[N._id]=S.findExtremes(N,M.notched?Ie.concat([st,vt]):Ie,{padded:!0})}return h(P,M),P.length>0?(P[0].t={num:R[d],dPos:ae,posLetter:U,valLetter:B,labels:{med:v(A,"median:"),min:v(A,"min:"),q1:v(A,"q1:"),q3:v(A,"q3:"),max:v(A,"max:"),mean:M.boxmean==="sd"||M.sizemode==="sd"?v(A,"mean ± σ:").replace("σ",M.sdmultiple===1?"σ":M.sdmultiple+"σ"):v(A,"mean:"),lf:v(A,"lower fence:"),uf:v(A,"upper fence:")}},R[d]++,P):[{t:{empty:!0}}]};function m(x,A,M,R){var T=A in x,L=A+"0"in x,P="d"+A in x;if(T||L&&P){var d=M.makeCalcdata(x,A),k=i(x,M,A,d).vals;return[k,d]}var I;L?I=x[A+"0"]:"name"in x&&(M.type==="category"||l(x.name)&&["linear","log"].indexOf(M.type)!==-1||C.isDateTime(x.name)&&M.type==="date")?I=x.name:I=R;for(var N=M.type==="multicategory"?M.r2c_just_indices(I):M.d2c(I,0,x[A+"calendar"]),B=x._length,G=new Array(B),U=0;U1,L=1-h[m+"gap"],P=1-h[m+"groupgap"];for(b=0;b0;if(N==="positive"?(ie=B*(I?1:.5),J=Q,fe=J=U):N==="negative"?(ie=J=U,fe=B*(I?1:.5),oe=Q):(ie=fe=B,J=oe=Q),de){var le=d.pointpos,he=d.jitter,xe=d.marker.size/2,Ee=0;le+he>=0&&(Ee=Q*(le+he),Ee>ie?(ee=!0,ce=xe,K=Ee):Ee>J&&(ce=xe,K=ie)),Ee<=ie&&(K=ie);var Se=0;le-he<=0&&(Se=-Q*(le-he),Se>fe?(ee=!0,re=xe,ne=Se):Se>oe&&(re=xe,ne=fe)),Se<=fe&&(ne=fe)}else K=ie,ne=fe;var ke=new Array(E.length);for(p=0;p0?(N="v",L>0?B=Math.min(d,P):B=Math.min(P)):L>0?(N="h",B=Math.min(d)):B=0;if(!B){f.visible=!1;return}f._length=B;var V=u("orientation",N);f._hasPreCompStats?V==="v"&&L===0?(u("x0",0),u("dx",1)):V==="h"&&T===0&&(u("y0",0),u("dy",1)):V==="v"&&L===0?u("x0"):V==="h"&&T===0&&u("y0");var $=S.getComponentMethod("calendars","handleTraceDefaults");$(h,f,["x","y"],b)}function s(h,f,u,b){var p=b.prefix,E=l.coerce2(h,f,m,"marker.outliercolor"),g=u("marker.line.outliercolor"),c="outliers";f._hasPreCompStats?c="all":(E||g)&&(c="suspectedoutliers");var x=u(p+"points",c);x?(u("jitter",x==="all"?.3:0),u("pointpos",x==="all"?-1.5:0),u("marker.symbol"),u("marker.opacity"),u("marker.size"),u("marker.angle"),u("marker.color",f.line.color),u("marker.line.color"),u("marker.line.width"),x==="suspectedoutliers"&&(u("marker.line.outliercolor",f.marker.color),u("marker.line.outlierwidth")),u("selected.marker.color"),u("unselected.marker.color"),u("selected.marker.size"),u("unselected.marker.size"),u("text"),u("hovertext")):delete f.marker;var A=u("hoveron");(A==="all"||A.indexOf("points")!==-1)&&u("hovertemplate"),l.coerceSelectionMarkerOpacity(f,u)}function o(h,f){var u,b;function p(c){return l.coerce(b._input,b,m,c)}for(var E=0;EM.lo&&(V.so=!0)}return T});A.enter().append("path").classed("point",!0),A.exit().remove(),A.call(i.translatePoints,u,b)}function n(s,o,h,f){var u=o.val,b=o.pos,p=!!b.rangebreaks,E=f.bPos,g=f.bPosPxOffset||0,c=h.boxmean||(h.meanline||{}).visible,x,A;Array.isArray(f.bdPos)?(x=f.bdPos[0],A=f.bdPos[1]):(x=f.bdPos,A=f.bdPos);var M=s.selectAll("path.mean").data(h.type==="box"&&h.boxmean||h.type==="violin"&&h.box.visible&&h.meanline.visible?S.identity:[]);M.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),M.exit().remove(),M.each(function(R){var T=b.c2l(R.pos+E,!0),L=b.l2p(T-x)+g,P=b.l2p(T+A)+g,d=p?(L+P)/2:b.l2p(T)+g,k=u.c2p(R.mean,!0),I=u.c2p(R.mean-R.sd,!0),N=u.c2p(R.mean+R.sd,!0);h.orientation==="h"?l.select(this).attr("d","M"+k+","+L+"V"+P+(c==="sd"?"m0,0L"+I+","+d+"L"+k+","+L+"L"+N+","+d+"Z":"")):l.select(this).attr("d","M"+L+","+k+"H"+P+(c==="sd"?"m0,0L"+d+","+I+"L"+L+","+k+"L"+d+","+N+"Z":""))})}D.exports={plot:v,plotBoxAndWhiskers:m,plotPoints:a,plotBoxMean:n}},8264:function(D){D.exports=function(t,l){var S=t.cd,i=t.xaxis,C=t.yaxis,w=[],v,m;if(l===!1)for(v=0;v=10)return null;for(var w=1/0,v=-1/0,m=i.length,a=0;a0?Math.floor:Math.ceil,H=B>0?Math.ceil:Math.floor,W=B>0?Math.min:Math.max,V=B>0?Math.max:Math.min,$=U(I+G),Z=H(N-G);h=k(I);var q=[[h]];for(v=$;v*B=0;C--)w[s-C]=t[o][C],v[s-C]=l[o][C];for(m.push({x:w,y:v,bicubic:a}),C=o,w=[],v=[];C>=0;C--)w[o-C]=t[C][0],v[o-C]=l[C][0];return m.push({x:w,y:v,bicubic:n}),m}},19216:function(D,O,t){var l=t(54460),S=t(92880).extendFlat;D.exports=function(C,w,v){var m,a,n,s,o,h,f,u,b,p,E,g,c,x,A=C["_"+w],M=C[w+"axis"],R=M._gridlines=[],T=M._minorgridlines=[],L=M._boundarylines=[],P=C["_"+v],d=C[v+"axis"];M.tickmode==="array"&&(M.tickvals=A.slice());var k=C._xctrl,I=C._yctrl,N=k[0].length,B=k.length,G=C._a.length,U=C._b.length;l.prepTicks(M),M.tickmode==="array"&&delete M.tickvals;var H=M.smoothing?3:1;function W($){var Z,q,ae,ie,fe,Q,J,oe,K,ne,ce,re,ee=[],de=[],le={};if(w==="b")for(q=C.b2j($),ae=Math.floor(Math.max(0,Math.min(U-2,q))),ie=q-ae,le.length=U,le.crossLength=G,le.xy=function(he){return C.evalxy([],he,q)},le.dxy=function(he,xe){return C.dxydi([],he,ae,xe,ie)},Z=0;Z0&&(K=C.dxydi([],Z-1,ae,0,ie),ee.push(fe[0]+K[0]/3),de.push(fe[1]+K[1]/3),ne=C.dxydi([],Z-1,ae,1,ie),ee.push(oe[0]-ne[0]/3),de.push(oe[1]-ne[1]/3)),ee.push(oe[0]),de.push(oe[1]),fe=oe;else for(Z=C.a2i($),Q=Math.floor(Math.max(0,Math.min(G-2,Z))),J=Z-Q,le.length=G,le.crossLength=U,le.xy=function(he){return C.evalxy([],Z,he)},le.dxy=function(he,xe){return C.dxydj([],Q,he,J,xe)},q=0;q0&&(ce=C.dxydj([],Q,q-1,J,0),ee.push(fe[0]+ce[0]/3),de.push(fe[1]+ce[1]/3),re=C.dxydj([],Q,q-1,J,1),ee.push(oe[0]-re[0]/3),de.push(oe[1]-re[1]/3)),ee.push(oe[0]),de.push(oe[1]),fe=oe;return le.axisLetter=w,le.axis=M,le.crossAxis=d,le.value=$,le.constvar=v,le.index=u,le.x=ee,le.y=de,le.smoothing=d.smoothing,le}function V($){var Z,q,ae,ie,fe,Q=[],J=[],oe={};if(oe.length=A.length,oe.crossLength=P.length,w==="b")for(ae=Math.max(0,Math.min(U-2,$)),fe=Math.min(1,Math.max(0,$-ae)),oe.xy=function(K){return C.evalxy([],K,$)},oe.dxy=function(K,ne){return C.dxydi([],K,ae,ne,fe)},Z=0;ZA.length-1)&&R.push(S(V(a),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(u=h;uA.length-1)&&!(E<0||E>A.length-1))for(g=A[n],c=A[E],m=0;mA[A.length-1])&&T.push(S(W(p),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&L.push(S(V(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&L.push(S(V(A.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(s=5e-15,o=[Math.floor((A[A.length-1]-M.tick0)/M.dtick*(1+s)),Math.ceil((A[0]-M.tick0)/M.dtick/(1+s))].sort(function($,Z){return $-Z}),h=o[0],f=o[1],u=h;u<=f;u++)b=M.tick0+M.dtick*u,R.push(S(W(b),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(u=h-1;uA[A.length-1])&&T.push(S(W(p),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&L.push(S(W(A[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&L.push(S(W(A[A.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}},14724:function(D,O,t){var l=t(54460),S=t(92880).extendFlat;D.exports=function(C,w){var v,m,a,n,s,o=w._labels=[],h=w._gridlines;for(v=0;vC.length&&(i=i.slice(0,C.length)):i=[],v=0;v90&&(f-=180,a=-a),{angle:f,flip:a,p:t.c2p(i,l,S),offsetMultplier:n}}},164:function(D,O,t){var l=t(33428),S=t(43616),i=t(87072),C=t(53416),w=t(15584),v=t(72736),m=t(3400),a=m.strRotate,n=m.strTranslate,s=t(84284);D.exports=function(c,x,A,M){var R=c._context.staticPlot,T=x.xaxis,L=x.yaxis,P=c._fullLayout,d=P._clips;m.makeTraceGroups(M,A,"trace").each(function(k){var I=l.select(this),N=k[0],B=N.trace,G=B.aaxis,U=B.baxis,H=m.ensureSingle(I,"g","minorlayer"),W=m.ensureSingle(I,"g","majorlayer"),V=m.ensureSingle(I,"g","boundarylayer"),$=m.ensureSingle(I,"g","labellayer");I.style("opacity",B.opacity),h(T,L,W,G,"a",G._gridlines,!0),h(T,L,W,U,"b",U._gridlines,!0),h(T,L,H,G,"a",G._minorgridlines,!0),h(T,L,H,U,"b",U._minorgridlines,!0),h(T,L,V,G,"a-boundary",G._boundarylines,R),h(T,L,V,U,"b-boundary",U._boundarylines,R);var Z=f(c,T,L,B,N,$,G._labels,"a-label"),q=f(c,T,L,B,N,$,U._labels,"b-label");u(c,$,B,N,T,L,Z,q),o(B,N,d,T,L)})};function o(g,c,x,A,M){var R,T,L,P,d=x.select("#"+g._clipPathId);d.size()||(d=x.append("clipPath").classed("carpetclip",!0));var k=m.ensureSingle(d,"path","carpetboundary"),I=c.clipsegments,N=[];for(P=0;P0?"start":"end","data-notex":1}).call(S.font,I.font).text(I.text).call(v.convertToTspans,g),W=S.bBox(this);H.attr("transform",n(B.p[0],B.p[1])+a(B.angle)+n(I.axis.labelpadding*U,W.height*.3)),d=Math.max(d,W.width+I.axis.labelpadding)}),P.exit().remove(),k.maxExtent=d,k}function u(g,c,x,A,M,R,T,L){var P,d,k,I,N=m.aggNums(Math.min,null,x.a),B=m.aggNums(Math.max,null,x.a),G=m.aggNums(Math.min,null,x.b),U=m.aggNums(Math.max,null,x.b);P=.5*(N+B),d=G,k=x.ab2xy(P,d,!0),I=x.dxyda_rough(P,d),T.angle===void 0&&m.extendFlat(T,w(x,M,R,k,x.dxydb_rough(P,d))),E(g,c,x,A,k,I,x.aaxis,M,R,T,"a-title"),P=N,d=.5*(G+U),k=x.ab2xy(P,d,!0),I=x.dxydb_rough(P,d),L.angle===void 0&&m.extendFlat(L,w(x,M,R,k,x.dxyda_rough(P,d))),E(g,c,x,A,k,I,x.baxis,M,R,L,"b-title")}var b=s.LINE_SPACING,p=(1-s.MID_SHIFT)/b+1;function E(g,c,x,A,M,R,T,L,P,d,k){var I=[];T.title.text&&I.push(T.title.text);var N=c.selectAll("text."+k).data(I),B=d.maxExtent;N.enter().append("text").classed(k,!0),N.each(function(){var G=w(x,L,P,M,R);["start","both"].indexOf(T.showticklabels)===-1&&(B=0);var U=T.title.font.size;B+=U+T.title.offset;var H=d.angle+(d.flip<0?180:0),W=(H-G.angle+450)%360,V=W>90&&W<270,$=l.select(this);$.text(T.title.text).call(v.convertToTspans,g),V&&(B=(-v.lineCount($)+p)*b*U-B),$.attr("transform",n(G.p[0],G.p[1])+a(G.angle)+n(0,B)).attr("text-anchor","middle").call(S.font,T.title.font)}),N.exit().remove()}},81e3:function(D,O,t){var l=t(24588),S=t(14952).findBin,i=t(30180),C=t(29056),w=t(26435),v=t(24464);D.exports=function(a){var n=a._a,s=a._b,o=n.length,h=s.length,f=a.aaxis,u=a.baxis,b=n[0],p=n[o-1],E=s[0],g=s[h-1],c=n[n.length-1]-n[0],x=s[s.length-1]-s[0],A=c*l.RELATIVE_CULL_TOLERANCE,M=x*l.RELATIVE_CULL_TOLERANCE;b-=A,p+=A,E-=M,g+=M,a.isVisible=function(R,T){return R>b&&RE&&Tp||Tg},a.setScale=function(){var R=a._x,T=a._y,L=i(a._xctrl,a._yctrl,R,T,f.smoothing,u.smoothing);a._xctrl=L[0],a._yctrl=L[1],a.evalxy=C([a._xctrl,a._yctrl],o,h,f.smoothing,u.smoothing),a.dxydi=w([a._xctrl,a._yctrl],f.smoothing,u.smoothing),a.dxydj=v([a._xctrl,a._yctrl],f.smoothing,u.smoothing)},a.i2a=function(R){var T=Math.max(0,Math.floor(R[0]),o-2),L=R[0]-T;return(1-L)*n[T]+L*n[T+1]},a.j2b=function(R){var T=Math.max(0,Math.floor(R[1]),o-2),L=R[1]-T;return(1-L)*s[T]+L*s[T+1]},a.ij2ab=function(R){return[a.i2a(R[0]),a.j2b(R[1])]},a.a2i=function(R){var T=Math.max(0,Math.min(S(R,n),o-2)),L=n[T],P=n[T+1];return Math.max(0,Math.min(o-1,T+(R-L)/(P-L)))},a.b2j=function(R){var T=Math.max(0,Math.min(S(R,s),h-2)),L=s[T],P=s[T+1];return Math.max(0,Math.min(h-1,T+(R-L)/(P-L)))},a.ab2ij=function(R){return[a.a2i(R[0]),a.b2j(R[1])]},a.i2c=function(R,T){return a.evalxy([],R,T)},a.ab2xy=function(R,T,L){if(!L&&(Rn[o-1]|Ts[h-1]))return[!1,!1];var P=a.a2i(R),d=a.b2j(T),k=a.evalxy([],P,d);if(L){var I=0,N=0,B=[],G,U,H,W;Rn[o-1]?(G=o-2,U=1,I=(R-n[o-1])/(n[o-1]-n[o-2])):(G=Math.max(0,Math.min(o-2,Math.floor(P))),U=P-G),Ts[h-1]?(H=h-2,W=1,N=(T-s[h-1])/(s[h-1]-s[h-2])):(H=Math.max(0,Math.min(h-2,Math.floor(d))),W=d-H),I&&(a.dxydi(B,G,H,U,W),k[0]+=B[0]*I,k[1]+=B[1]*I),N&&(a.dxydj(B,G,H,U,W),k[0]+=B[0]*N,k[1]+=B[1]*N)}return k},a.c2p=function(R,T,L){return[T.c2p(R[0]),L.c2p(R[1])]},a.p2x=function(R,T,L){return[T.p2c(R[0]),L.p2c(R[1])]},a.dadi=function(R){var T=Math.max(0,Math.min(n.length-2,R));return n[T+1]-n[T]},a.dbdj=function(R){var T=Math.max(0,Math.min(s.length-2,R));return s[T+1]-s[T]},a.dxyda=function(R,T,L,P){var d=a.dxydi(null,R,T,L,P),k=a.dadi(R,L);return[d[0]/k,d[1]/k]},a.dxydb=function(R,T,L,P){var d=a.dxydj(null,R,T,L,P),k=a.dbdj(T,P);return[d[0]/k,d[1]/k]},a.dxyda_rough=function(R,T,L){var P=c*(L||.1),d=a.ab2xy(R+P,T,!0),k=a.ab2xy(R-P,T,!0);return[(d[0]-k[0])*.5/P,(d[1]-k[1])*.5/P]},a.dxydb_rough=function(R,T,L){var P=x*(L||.1),d=a.ab2xy(R,T+P,!0),k=a.ab2xy(R,T-P,!0);return[(d[0]-k[0])*.5/P,(d[1]-k[1])*.5/P]},a.dpdx=function(R){return R._m},a.dpdy=function(R){return R._m}}},51512:function(D,O,t){var l=t(3400);D.exports=function(i,C,w){var v,m,a,n=[],s=[],o=i[0].length,h=i.length;function f(q,ae){var ie=0,fe,Q=0;return q>0&&(fe=i[ae][q-1])!==void 0&&(Q++,ie+=fe),q0&&(fe=i[ae-1][q])!==void 0&&(Q++,ie+=fe),ae0&&m0&&vP);return l.log("Smoother converged to",d,"after",I,"iterations"),i}},86411:function(D,O,t){var l=t(3400).isArray1D;D.exports=function(i,C,w){var v=w("x"),m=v&&v.length,a=w("y"),n=a&&a.length;if(!m&&!n)return!1;if(C._cheater=!v,(!m||l(v))&&(!n||l(a))){var s=m?v.length:1/0;n&&(s=Math.min(s,a.length)),C.a&&C.a.length&&(s=Math.min(s,C.a.length)),C.b&&C.b.length&&(s=Math.min(s,C.b.length)),C._length=s}else C._length=null;return!0}},83372:function(D,O,t){var l=t(21776).Ks,S=t(6096),i=t(49084),C=t(45464),w=t(22548).defaultLine,v=t(92880).extendFlat,m=S.marker.line;D.exports=v({locations:{valType:"data_array",editType:"calc"},locationmode:S.locationmode,z:{valType:"data_array",editType:"calc"},geojson:v({},S.geojson,{}),featureidkey:S.featureidkey,text:v({},S.text,{}),hovertext:v({},S.hovertext,{}),marker:{line:{color:v({},m.color,{dflt:w}),width:v({},m.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:S.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:S.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:v({},C.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:l(),showlegend:v({},C.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(D,O,t){var l=t(38248),S=t(39032).BADNUM,i=t(47128),C=t(20148),w=t(4500);function v(m){return m&&typeof m=="string"}D.exports=function(a,n){var s=n._length,o=new Array(s),h;n.geojson?h=function(E){return v(E)||l(E)}:h=v;for(var f=0;f")}}},54272:function(D,O,t){D.exports={attributes:t(83372),supplyDefaults:t(30972),colorbar:t(96288),calc:t(7924),calcGeoJSON:t(88364).calcGeoJSON,plot:t(88364).plot,style:t(7947).style,styleOnSelect:t(7947).styleOnSelect,hoverPoints:t(69224),eventData:t(52428),selectPoints:t(17328),moduleType:"trace",name:"choropleth",basePlotModule:t(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(D,O,t){var l=t(33428),S=t(3400),i=t(27144),C=t(59972).getTopojsonFeatures,w=t(19280).findExtremes,v=t(7947).style;function m(n,s,o){var h=s.layers.backplot.select(".choroplethlayer");S.makeTraceGroups(h,o,"trace choropleth").each(function(f){var u=l.select(this),b=u.selectAll("path.choroplethlocation").data(S.identity);b.enter().append("path").classed("choroplethlocation",!0),b.exit().remove(),v(n,f)})}function a(n,s){for(var o=n[0].trace,h=s[o.geo],f=h._subplot,u=o.locationmode,b=o._length,p=u==="geojson-id"?i.extractTraceFeature(n):C(o,f.topojson),E=[],g=[],c=0;c=0;C--){var w=i[C].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var v=C+1;v=0;a--)v.removeLayer(m[a][1])},w.dispose=function(){var v=this.subplot.map;this._removeLayers(),v.removeSource(this.sourceId)},D.exports=function(m,a){var n=a[0].trace,s=new C(m,n.uid),o=s.sourceId,h=l(a),f=s.below=m.belowLookup["trace-"+n.uid];return m.map.addSource(o,{type:"geojson",data:h.geojson}),s._addLayers(h,f),a[0].trace._glTrace=s,s}},86040:function(D,O,t){var l=t(49084),S=t(29736).axisHoverFormat,i=t(21776).Ks,C=t(52948),w=t(45464),v=t(92880).extendFlat,m={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:S("u",1),vhoverformat:S("v",1),whoverformat:S("w",1),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),showlegend:v({},w.showlegend,{dflt:!1})};v(m,l("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var a=["opacity","lightposition","lighting"];a.forEach(function(n){m[n]=C[n]}),m.hoverinfo=v({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),m.transforms=void 0,D.exports=m},83344:function(D,O,t){var l=t(47128);D.exports=function(i,C){for(var w=C.u,v=C.v,m=C.w,a=Math.min(C.x.length,C.y.length,C.z.length,w.length,v.length,m.length),n=-1/0,s=1/0,o=0;ow.level||w.starts.length&&C===w.level)}break;case"constraint":if(l.prefixBoundary=!1,l.edgepaths.length)return;var v=l.x.length,m=l.y.length,a=-1/0,n=1/0;for(i=0;i":s>a&&(l.prefixBoundary=!0);break;case"<":(sa||l.starts.length&&h===n)&&(l.prefixBoundary=!0);break;case"][":o=Math.min(s[0],s[1]),h=Math.max(s[0],s[1]),oa&&(l.prefixBoundary=!0);break}break}}},55296:function(D,O,t){var l=t(8932),S=t(41076),i=t(46960);function C(w,v,m){var a=v.contours,n=v.line,s=a.size||1,o=a.coloring,h=S(v,{isColorbar:!0});if(o==="heatmap"){var f=l.extractOpts(v);m._fillgradient=f.reversescale?l.flipScale(f.colorscale):f.colorscale,m._zrange=[f.min,f.max]}else o==="fill"&&(m._fillcolor=h);m._line={color:o==="lines"?h:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},m._levels={start:a.start,end:i(a),size:s}}D.exports={min:"zmin",max:"zmax",calc:C}},93252:function(D){D.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(D,O,t){var l=t(38248),S=t(17428),i=t(76308),C=i.addOpacity,w=i.opacity,v=t(69104),m=t(3400).isArrayOrTypedArray,a=v.CONSTRAINT_REDUCTION,n=v.COMPARISON_OPS2;D.exports=function(h,f,u,b,p,E){var g=f.contours,c,x,A,M=u("contours.operation");if(g._operation=a[M],s(u,g),M==="="?c=g.showlines=!0:(c=u("contours.showlines"),A=u("fillcolor",C((h.line||{}).color||p,.5))),c){var R=A&&w(A)?C(f.fillcolor,1):p;x=u("line.color",R),u("line.width",2),u("line.dash")}u("line.smoothing"),S(u,b,x,E)};function s(o,h){var f;n.indexOf(h.operation)===-1?(o("contours.value",[0,1]),m(h.value)?h.value.length>2?h.value=h.value.slice(2):h.length===0?h.value=[0,1]:h.length<2?(f=parseFloat(h.value[0]),h.value=[f,f+1]):h.value=[parseFloat(h.value[0]),parseFloat(h.value[1])]:l(h.value)&&(f=parseFloat(h.value),h.value=[f,f+1])):(o("contours.value",0),l(h.value)||(m(h.value)?h.value=parseFloat(h.value[0]):h.value=0))}},3212:function(D,O,t){var l=t(69104),S=t(38248);D.exports={"[]":C("[]"),"][":C("]["),">":w(">"),"<":w("<"),"=":w("=")};function i(v,m){var a=Array.isArray(m),n;function s(o){return S(o)?+o:null}return l.COMPARISON_OPS2.indexOf(v)!==-1?n=s(a?m[0]:m):l.INTERVAL_OPS.indexOf(v)!==-1?n=a?[s(m[0]),s(m[1])]:[s(m),s(m)]:l.SET_OPS.indexOf(v)!==-1&&(n=a?m.map(s):[s(m)]),n}function C(v){return function(m){m=i(v,m);var a=Math.min(m[0],m[1]),n=Math.max(m[0],m[1]);return{start:a,end:n,size:n-a}}}function w(v){return function(m){return m=i(v,m),{start:m,end:1/0,size:1/0}}}},84952:function(D){D.exports=function(t,l,S,i){var C=i("contours.start"),w=i("contours.end"),v=C===!1||w===!1,m=S("contours.size"),a;v?a=l.autocontour=!0:a=S("autocontour",!1),(a||!m)&&S("ncontours")}},82172:function(D,O,t){var l=t(3400);D.exports=function(i,C){var w,v,m,a=function(o){return o.reverse()},n=function(o){return o};switch(C){case"=":case"<":return i;case">":for(i.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),v=i[0],w=0;w1e3){l.warn("Too many contours, clipping at 1000",w);break}return s}},46960:function(D){D.exports=function(t){return t.end+t.size/1e6}},88748:function(D,O,t){var l=t(3400),S=t(93252);D.exports=function(n,s,o){var h,f,u,b,p;for(s=s||.01,o=o||.01,u=0;u20?(u=S.CHOOSESADDLE[u][(b[0]||b[1])<0?0:1],a.crossings[f]=S.SADDLEREMAINDER[u]):delete a.crossings[f],b=S.NEWDELTA[u],!b){l.log("Found bad marching index:",u,n,a.level);break}p.push(m(a,n,b)),n[0]+=b[0],n[1]+=b[1],f=n.join(","),i(p[p.length-1],p[p.length-2],o,h)&&p.pop();var M=b[0]&&(n[0]<0||n[0]>g-2)||b[1]&&(n[1]<0||n[1]>E-2),R=n[0]===c[0]&&n[1]===c[1]&&b[0]===x[0]&&b[1]===x[1];if(R||s&&M)break;u=a.crossings[f]}A===1e4&&l.log("Infinite loop in contour?");var T=i(p[0],p[p.length-1],o,h),L=0,P=.2*a.smoothing,d=[],k=0,I,N,B,G,U,H,W,V,$,Z,q;for(A=1;A=k;A--)if(I=d[A],I=k&&I+d[N]V&&$--,a.edgepaths[$]=q.concat(p,Z));break}Q||(a.edgepaths[V]=p.concat(Z))}for(V=0;V20&&n?a===208||a===1114?o=s[0]===0?1:-1:h=s[1]===0?1:-1:S.BOTTOMSTART.indexOf(a)!==-1?h=1:S.LEFTSTART.indexOf(a)!==-1?o=1:S.TOPSTART.indexOf(a)!==-1?h=-1:o=-1,[o,h]}function m(a,n,s){var o=n[0]+Math.max(s[0],0),h=n[1]+Math.max(s[1],0),f=a.z[h][o],u=a.xaxis,b=a.yaxis;if(s[1]){var p=(a.level-f)/(a.z[h][o+1]-f),E=(p!==1?(1-p)*u.c2l(a.x[o]):0)+(p!==0?p*u.c2l(a.x[o+1]):0);return[u.c2p(u.l2c(E),!0),b.c2p(a.y[h],!0),o+p,h]}else{var g=(a.level-f)/(a.z[h+1][o]-f),c=(g!==1?(1-g)*b.c2l(a.y[h]):0)+(g!==0?g*b.c2l(a.y[h+1]):0);return[u.c2p(a.x[o],!0),b.c2p(b.l2c(c),!0),o,h+g]}}},38200:function(D,O,t){var l=t(76308),S=t(55512);D.exports=function(C,w,v,m,a){a||(a={}),a.isContour=!0;var n=S(C,w,v,m,a);return n&&n.forEach(function(s){var o=s.trace;o.contours.type==="constraint"&&(o.fillcolor&&l.opacity(o.fillcolor)?s.color=l.addOpacity(o.fillcolor,1):o.contours.showlines&&l.opacity(o.line.color)&&(s.color=l.addOpacity(o.line.color,1)))}),n}},66240:function(D,O,t){D.exports={attributes:t(67104),supplyDefaults:t(57004),calc:t(20688),plot:t(23676).plot,style:t(52440),colorbar:t(55296),hoverPoints:t(38200),moduleType:"trace",name:"contour",basePlotModule:t(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(D,O,t){var l=t(3400);D.exports=function(i,C,w,v){v||(v={});var m=i("contours.showlabels");if(m){var a=C.font;l.coerceFont(i,"contours.labelfont",{family:a.family,size:a.size,color:w}),i("contours.labelformat")}v.hasHover!==!1&&i("zhoverformat")}},41076:function(D,O,t){var l=t(33428),S=t(8932),i=t(46960);D.exports=function(w){var v=w.contours,m=v.start,a=i(v),n=v.size||1,s=Math.floor((a-m)/n)+1,o=v.coloring==="lines"?0:1,h=S.extractOpts(w);isFinite(n)||(n=1,s=1);var f=h.reversescale?S.flipScale(h.colorscale):h.colorscale,u=f.length,b=new Array(u),p=new Array(u),E,g,c=h.min,x=h.max;if(v.coloring==="heatmap"){for(g=0;g=x)&&(m<=c&&(m=c),a>=x&&(a=x),s=Math.floor((a-m)/n)+1,o=0),g=0;gc&&(b.unshift(c),p.unshift(p[0])),b[b.length-1]i?0:1)+(C[0][1]>i?0:2)+(C[1][1]>i?0:4)+(C[1][0]>i?0:8);if(w===5||w===10){var v=(C[0][0]+C[0][1]+C[1][0]+C[1][1])/4;return i>v?w===5?713:1114:w===5?104:208}return w===15?0:w}},23676:function(D,O,t){var l=t(33428),S=t(3400),i=t(43616),C=t(8932),w=t(72736),v=t(54460),m=t(78344),a=t(41420),n=t(72424),s=t(88748),o=t(61512),h=t(82172),f=t(56008),u=t(93252),b=u.LABELOPTIMIZER;O.plot=function(T,L,P,d){var k=L.xaxis,I=L.yaxis;S.makeTraceGroups(d,P,"contour").each(function(N){var B=l.select(this),G=N[0],U=G.trace,H=G.x,W=G.y,V=U.contours,$=o(V,L,G),Z=S.ensureSingle(B,"g","heatmapcoloring"),q=[];V.coloring==="heatmap"&&(q=[N]),a(T,L,q,Z),n($),s($);var ae=k.c2p(H[0],!0),ie=k.c2p(H[H.length-1],!0),fe=I.c2p(W[0],!0),Q=I.c2p(W[W.length-1],!0),J=[[ae,Q],[ie,Q],[ie,fe],[ae,fe]],oe=$;V.type==="constraint"&&(oe=h($,V._operation)),p(B,J,V),E(B,oe,J,V),c(B,$,T,G,V),A(B,L,T,G,J)})};function p(R,T,L){var P=S.ensureSingle(R,"g","contourbg"),d=P.selectAll("path").data(L.coloring==="fill"?[0]:[]);d.enter().append("path"),d.exit().remove(),d.attr("d","M"+T.join("L")+"Z").style("stroke","none")}function E(R,T,L,P){var d=P.coloring==="fill"||P.type==="constraint"&&P._operation!=="=",k="M"+L.join("L")+"Z";d&&f(T,P);var I=S.ensureSingle(R,"g","contourfill"),N=I.selectAll("path").data(d?T:[]);N.enter().append("path"),N.exit().remove(),N.each(function(B){var G=(B.prefixBoundary?k:"")+g(B,L);G?l.select(this).attr("d",G).style("stroke","none"):l.select(this).remove()})}function g(R,T){var L="",P=0,d=R.edgepaths.map(function(ae,ie){return ie}),k=!0,I,N,B,G,U,H;function W(ae){return Math.abs(ae[1]-T[0][1])<.01}function V(ae){return Math.abs(ae[1]-T[2][1])<.01}function $(ae){return Math.abs(ae[0]-T[0][0])<.01}function Z(ae){return Math.abs(ae[0]-T[2][0])<.01}for(;d.length;){for(H=i.smoothopen(R.edgepaths[P],R.smoothing),L+=k?H:H.replace(/^M/,"L"),d.splice(d.indexOf(P),1),I=R.edgepaths[P][R.edgepaths[P].length-1],G=-1,B=0;B<4;B++){if(!I){S.log("Missing end?",P,R);break}for(W(I)&&!Z(I)?N=T[1]:$(I)?N=T[0]:V(I)?N=T[3]:Z(I)&&(N=T[2]),U=0;U=0&&(N=q,G=U):Math.abs(I[1]-N[1])<.01?Math.abs(I[1]-q[1])<.01&&(q[0]-I[0])*(N[0]-q[0])>=0&&(N=q,G=U):S.log("endpt to newendpt is not vert. or horz.",I,N,q)}if(I=N,G>=0)break;L+="L"+N}if(G===R.edgepaths.length){S.log("unclosed perimeter path");break}P=G,k=d.indexOf(P)===-1,k&&(P=d[0],L+="Z")}for(P=0;Pb.MAXCOST*2)break;W&&(N/=2),I=G-N/2,B=I+N*1.5}if(H<=b.MAXCOST)return U};function x(R,T,L,P){var d=T.width/2,k=T.height/2,I=R.x,N=R.y,B=R.theta,G=Math.cos(B)*d,U=Math.sin(B)*d,H=(I>P.center?P.right-I:I-P.left)/(G+Math.abs(Math.sin(B)*k)),W=(N>P.middle?P.bottom-N:N-P.top)/(Math.abs(U)+Math.cos(B)*k);if(H<1||W<1)return 1/0;var V=b.EDGECOST*(1/(H-1)+1/(W-1));V+=b.ANGLECOST*B*B;for(var $=I-G,Z=N-U,q=I+G,ae=N+U,ie=0;iem.end&&(m.start=m.end=(m.start+m.end)/2),w._input.contours||(w._input.contours={}),S.extendFlat(w._input.contours,{start:m.start,end:m.end,size:m.size}),w._input.autocontour=!0}else if(m.type!=="constraint"){var o=m.start,h=m.end,f=w._input.contours;if(o>h&&(m.start=f.start=h,h=m.end=f.end=o,o=m.start),!(m.size>0)){var u;o===h?u=1:u=i(o,h,w.ncontours).dtick,f.size=m.size=u}}};function i(C,w,v){var m={type:"linear",range:[C,w]};return l.autoTicks(m,(w-C)/(v||15)),m}},52440:function(D,O,t){var l=t(33428),S=t(43616),i=t(41648),C=t(41076);D.exports=function(v){var m=l.select(v).selectAll("g.contour");m.style("opacity",function(a){return a[0].trace.opacity}),m.each(function(a){var n=l.select(this),s=a[0].trace,o=s.contours,h=s.line,f=o.size||1,u=o.start,b=o.type==="constraint",p=!b&&o.coloring==="lines",E=!b&&o.coloring==="fill",g=p||E?C(s):null;n.selectAll("g.contourlevel").each(function(A){l.select(this).selectAll("path").call(S.lineGroupStyle,h.width,p?g(A.level):h.color,h.dash)});var c=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(A){S.font(l.select(this),{family:c.family,size:c.size,color:c.color||(p?g(A.level):h.color)})}),b)n.selectAll("g.contourfill path").style("fill",s.fillcolor);else if(E){var x;n.selectAll("g.contourfill path").style("fill",function(A){return x===void 0&&(x=A.level),g(A.level+.5*f)}),x===void 0&&(x=u),n.selectAll("g.contourbg path").style("fill",g(x-.5*f))}}),i(v)}},97680:function(D,O,t){var l=t(27260),S=t(17428);D.exports=function(C,w,v,m,a){var n=v("contours.coloring"),s,o="";n==="fill"&&(s=v("contours.showlines")),s!==!1&&(n!=="lines"&&(o=v("line.color","#000")),v("line.width",.5),v("line.dash")),n!=="none"&&(C.showlegend!==!0&&(w.showlegend=!1),w._dfltShowLegend=!1,l(C,w,m,v,{prefix:"",cLetter:"z"})),v("line.smoothing"),S(v,m,o,a)}},37960:function(D,O,t){var l=t(83328),S=t(67104),i=t(49084),C=t(92880).extendFlat,w=S.contours;D.exports=C({carpet:{valType:"string",editType:"calc"},z:l.z,a:l.x,a0:l.x0,da:l.dx,b:l.y,b0:l.y0,db:l.dy,text:l.text,hovertext:l.hovertext,transpose:l.transpose,atype:l.xtype,btype:l.ytype,fillcolor:S.fillcolor,autocontour:S.autocontour,ncontours:S.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:S.line.color,width:S.line.width,dash:S.line.dash,smoothing:S.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(D,O,t){var l=t(47128),S=t(3400),i=t(2872),C=t(26136),w=t(70448),v=t(11240),m=t(35744),a=t(3252),n=t(50948),s=t(54444);D.exports=function(f,u){var b=u._carpetTrace=n(f,u);if(!(!b||!b.visible||b.visible==="legendonly")){if(!u.a||!u.b){var p=f.data[b.index],E=f.data[u.index];E.a||(E.a=p.a),E.b||(E.b=p.b),a(E,u,u._defaultColor,f._fullLayout)}var g=o(f,u);return s(u,u._z),g}};function o(h,f){var u=f._carpetTrace,b=u.aaxis,p=u.baxis,E,g,c,x,A,M,R;b._minDtick=0,p._minDtick=0,S.isArray1D(f.z)&&i(f,b,p,"a","b",["z"]),E=f._a=f._a||f.a,x=f._b=f._b||f.b,E=E?b.makeCalcdata(f,"_a"):[],x=x?p.makeCalcdata(f,"_b"):[],g=f.a0||0,c=f.da||1,A=f.b0||0,M=f.db||1,R=f._z=C(f._z||f.z,f.transpose),f._emptypoints=v(R),w(R,f._emptypoints);var T=S.maxRowLength(R),L=f.xtype==="scaled"?"":E,P=m(f,L,g,c,T,b),d=f.ytype==="scaled"?"":x,k=m(f,d,A,M,R.length,p),I={a:P,b:k,z:R};return f.contours.type==="levels"&&f.contours.coloring!=="none"&&l(h,f,{vals:R,containerStr:"",cLetter:"z"}),[I]}},3252:function(D,O,t){var l=t(3400),S=t(51264),i=t(37960),C=t(95536),w=t(84952),v=t(97680);D.exports=function(a,n,s,o){function h(p,E){return l.coerce(a,n,i,p,E)}function f(p){return l.coerce2(a,n,i,p)}if(h("carpet"),a.a&&a.b){var u=S(a,n,h,o,"a","b");if(!u){n.visible=!1;return}h("text");var b=h("contours.type")==="constraint";b?C(a,n,h,o,s,{hasHover:!1}):(w(a,n,h,f),v(a,n,h,o,{hasHover:!1}))}else n._defaultColor=s,n._length=null}},40448:function(D,O,t){D.exports={attributes:t(37960),supplyDefaults:t(3252),colorbar:t(55296),calc:t(30572),plot:t(94440),style:t(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:t(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(D,O,t){var l=t(33428),S=t(87072),i=t(53416),C=t(43616),w=t(3400),v=t(72424),m=t(88748),a=t(23676),n=t(93252),s=t(82172),o=t(61512),h=t(56008),f=t(50948),u=t(77712);D.exports=function(L,P,d,k){var I=P.xaxis,N=P.yaxis;w.makeTraceGroups(k,d,"contour").each(function(B){var G=l.select(this),U=B[0],H=U.trace,W=H._carpetTrace=f(L,H),V=L.calcdata[W.index][0];if(!W.visible||W.visible==="legendonly")return;var $=U.a,Z=U.b,q=H.contours,ae=o(q,P,U),ie=q.type==="constraint",fe=q._operation,Q=ie?fe==="="?"lines":"fill":q.coloring;function J(Ee){var Se=W.ab2xy(Ee[0],Ee[1],!0);return[I.c2p(Se[0]),N.c2p(Se[1])]}var oe=[[$[0],Z[Z.length-1]],[$[$.length-1],Z[Z.length-1]],[$[$.length-1],Z[0]],[$[0],Z[0]]];v(ae);var K=($[$.length-1]-$[0])*1e-8,ne=(Z[Z.length-1]-Z[0])*1e-8;m(ae,K,ne);var ce=ae;q.type==="constraint"&&(ce=s(ae,fe)),b(ae,J);var re,ee,de,le,he=[];for(le=V.clipsegments.length-1;le>=0;le--)re=V.clipsegments[le],ee=S([],re.x,I.c2p),de=S([],re.y,N.c2p),ee.reverse(),de.reverse(),he.push(i(ee,de,re.bicubic));var xe="M"+he.join("L")+"Z";A(G,V.clipsegments,I,N,ie,Q),M(H,G,I,N,ce,oe,J,W,V,Q,xe),p(G,ae,L,U,q,P,W),C.setClipUrl(G,W._clipPathId,L)})};function b(T,L){var P,d,k,I,N,B,G,U,H;for(P=0;Pae&&(d.max=ae),d.len=d.max-d.min}function g(T,L,P){var d=T.getPointAtLength(L),k=T.getPointAtLength(P),I=k.x-d.x,N=k.y-d.y,B=Math.sqrt(I*I+N*N);return[I/B,N/B]}function c(T){var L=Math.sqrt(T[0]*T[0]+T[1]*T[1]);return[T[0]/L,T[1]/L]}function x(T,L){var P=Math.abs(T[0]*L[0]+T[1]*L[1]),d=Math.sqrt(1-P*P);return d/P}function A(T,L,P,d,k,I){var N,B,G,U,H=w.ensureSingle(T,"g","contourbg"),W=H.selectAll("path").data(I==="fill"&&!k?[0]:[]);W.enter().append("path"),W.exit().remove();var V=[];for(U=0;U=0&&($=ee,q=ae):Math.abs(V[1]-$[1])=0&&($=ee,q=ae):w.log("endpt to newendpt is not vert. or horz.",V,$,ee)}if(q>=0)break;U+=ce(V,$),V=$}if(q===L.edgepaths.length){w.log("unclosed perimeter path");break}G=q,W=H.indexOf(G)===-1,W&&(G=H[0],U+=ce(V,$)+"Z",V=null)}for(G=0;G0?+p[u]:0),f.push({type:"Feature",geometry:{type:"Point",coordinates:x},properties:A})}}var R=C.extractOpts(n),T=R.reversescale?C.flipScale(R.colorscale):R.colorscale,L=T[0][1],P=i.opacity(L)<1?L:i.addOpacity(L,0),d=["interpolate",["linear"],["heatmap-density"],0,P];for(u=1;u=0;m--)w.removeLayer(v[m][1])},C.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},D.exports=function(v,m){var a=m[0].trace,n=new i(v,a.uid),s=n.sourceId,o=l(m),h=n.below=v.belowLookup["trace-"+a.uid];return v.map.addSource(s,{type:"geojson",data:o.geojson}),n._addLayers(o,h),n}},74248:function(D,O,t){var l=t(3400);D.exports=function(i,C){for(var w=0;w"),o.color=C(f,p),[o]}};function C(w,v){var m=w.marker,a=v.mc||m.color,n=v.mlc||m.line.color,s=v.mlw||m.line.width;if(l(a))return a;if(l(n)&&s)return n}},94704:function(D,O,t){D.exports={attributes:t(20088),layoutAttributes:t(7076),supplyDefaults:t(45432).supplyDefaults,crossTraceDefaults:t(45432).crossTraceDefaults,supplyLayoutDefaults:t(11631),calc:t(23096),crossTraceCalc:t(4804),plot:t(42200),style:t(44544).style,hoverPoints:t(31488),eventData:t(34580),selectPoints:t(45784),moduleType:"trace",name:"funnel",basePlotModule:t(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(D){D.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(D,O,t){var l=t(3400),S=t(7076);D.exports=function(i,C,w){var v=!1;function m(s,o){return l.coerce(i,C,S,s,o)}for(var a=0;a path").each(function(p){if(!p.isBlank){var E=b.marker;l.select(this).call(i.fill,p.mc||E.color).call(i.stroke,p.mlc||E.line.color).call(S.dashLine,E.line.dash,p.mlw||E.line.width).style("opacity",b.selectedpoints&&!p.selected?C:1)}}),m(u,b,n),u.selectAll(".regions").each(function(){l.select(this).selectAll("path").style("stroke-width",0).call(i.fill,b.connector.fillcolor)}),u.selectAll(".lines").each(function(){var p=b.connector.line;S.lineGroupStyle(l.select(this).selectAll("path"),p.width,p.color,p.dash)})})}D.exports={style:a}},22332:function(D,O,t){var l=t(74996),S=t(45464),i=t(86968).u,C=t(21776).Ks,w=t(21776).Gw,v=t(92880).extendFlat;D.exports={labels:l.labels,label0:l.label0,dlabel:l.dlabel,values:l.values,marker:{colors:l.marker.colors,line:{color:v({},l.marker.line.color,{dflt:null}),width:v({},l.marker.line.width,{dflt:1}),editType:"calc"},pattern:l.marker.pattern,editType:"calc"},text:l.text,hovertext:l.hovertext,scalegroup:v({},l.scalegroup,{}),textinfo:v({},l.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:v({},S.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:C({},{keys:["label","color","value","text","percent"]}),textposition:v({},l.textposition,{values:["inside","none"],dflt:"inside"}),textfont:l.textfont,insidetextfont:l.insidetextfont,title:{text:l.title.text,font:l.title.font,position:v({},l.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(D,O,t){var l=t(7316);O.name="funnelarea",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},54e3:function(D,O,t){var l=t(45768);function S(C,w){return l.calc(C,w)}function i(C){l.crossTraceCalc(C,{type:"funnelarea"})}D.exports={calc:S,crossTraceCalc:i}},92688:function(D,O,t){var l=t(3400),S=t(22332),i=t(86968).Q,C=t(31508).handleText,w=t(74174).handleLabelsAndValues,v=t(74174).handleMarkerDefaults;D.exports=function(a,n,s,o){function h(M,R){return l.coerce(a,n,S,M,R)}var f=h("labels"),u=h("values"),b=w(f,u),p=b.len;if(n._hasLabels=b.hasLabels,n._hasValues=b.hasValues,!n._hasLabels&&n._hasValues&&(h("label0"),h("dlabel")),!p){n.visible=!1;return}n._length=p,v(a,n,o,h),h("scalegroup");var E=h("text"),g=h("texttemplate"),c;if(g||(c=h("textinfo",Array.isArray(E)?"text+percent":"percent")),h("hovertext"),h("hovertemplate"),g||c&&c!=="none"){var x=h("textposition");C(a,n,o,h,x,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else c==="none"&&h("textposition","none");i(n,o,h);var A=h("title.text");A&&(h("title.position"),l.coerceFont(h,"title.font",o.font)),h("aspectratio"),h("baseratio")}},62396:function(D,O,t){D.exports={moduleType:"trace",name:"funnelarea",basePlotModule:t(91248),categories:["pie-like","funnelarea","showLegend"],attributes:t(22332),layoutAttributes:t(61280),supplyDefaults:t(92688),supplyLayoutDefaults:t(35384),calc:t(54e3).calc,crossTraceCalc:t(54e3).crossTraceCalc,plot:t(39472),style:t(62096),styleOne:t(10528),meta:{}}},61280:function(D,O,t){var l=t(85204).hiddenlabels;D.exports={hiddenlabels:l,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(D,O,t){var l=t(3400),S=t(61280);D.exports=function(C,w){function v(m,a){return l.coerce(C,w,S,m,a)}v("hiddenlabels"),v("funnelareacolorway",w.colorway),v("extendfunnelareacolors")}},39472:function(D,O,t){var l=t(33428),S=t(43616),i=t(3400),C=i.strScale,w=i.strTranslate,v=t(72736),m=t(98184),a=m.toMoveInsideBar,n=t(82744),s=n.recordMinTextSize,o=n.clearMinTextSize,h=t(69656),f=t(37820),u=f.attachFxHandlers,b=f.determineInsideTextFont,p=f.layoutAreas,E=f.prerenderTitles,g=f.positionTitleOutside,c=f.formatSliceLabel;D.exports=function(T,L){var P=T._context.staticPlot,d=T._fullLayout;o("funnelarea",d),E(L,T),p(L,d._size),i.makeTraceGroups(d._funnelarealayer,L,"trace").each(function(k){var I=l.select(this),N=k[0],B=N.trace;M(k),I.each(function(){var G=l.select(this).selectAll("g.slice").data(k);G.enter().append("g").classed("slice",!0),G.exit().remove(),G.each(function(H,W){if(H.hidden){l.select(this).selectAll("path,g").remove();return}H.pointNumber=H.i,H.curveNumber=B.index;var V=N.cx,$=N.cy,Z=l.select(this),q=Z.selectAll("path.surface").data([H]);q.enter().append("path").classed("surface",!0).style({"pointer-events":P?"none":"all"}),Z.call(u,T,k);var ae="M"+(V+H.TR[0])+","+($+H.TR[1])+x(H.TR,H.BR)+x(H.BR,H.BL)+x(H.BL,H.TL)+"Z";q.attr("d",ae),c(T,H,N);var ie=h.castOption(B.textposition,H.pts),fe=Z.selectAll("g.slicetext").data(H.text&&ie!=="none"?[0]:[]);fe.enter().append("g").classed("slicetext",!0),fe.exit().remove(),fe.each(function(){var Q=i.ensureSingle(l.select(this),"text","",function(de){de.attr("data-notex",1)}),J=i.ensureUniformFontSize(T,b(B,H,d.font));Q.text(H.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(S.font,J).call(v.convertToTspans,T);var oe=S.bBox(Q.node()),K,ne,ce,re=Math.min(H.BL[1],H.BR[1])+$,ee=Math.max(H.TL[1],H.TR[1])+$;ne=Math.max(H.TL[0],H.BL[0])+V,ce=Math.min(H.TR[0],H.BR[0])+V,K=a(ne,ce,re,ee,oe,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),K.fontSize=J.size,s(B.type,K,d),k[W].transform=K,i.setTransormAndDisplay(Q,K)})});var U=l.select(this).selectAll("g.titletext").data(B.title.text?[0]:[]);U.enter().append("g").classed("titletext",!0),U.exit().remove(),U.each(function(){var H=i.ensureSingle(l.select(this),"text","",function($){$.attr("data-notex",1)}),W=B.title.text;B._meta&&(W=i.templateString(W,B._meta)),H.text(W).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(S.font,B.title.font).call(v.convertToTspans,T);var V=g(N,d._size);H.attr("transform",w(V.x,V.y)+C(Math.min(1,V.scale))+w(V.tx,V.ty))})})})};function x(R,T){var L=T[0]-R[0],P=T[1]-R[1];return"l"+L+","+P}function A(R,T){return[.5*(R[0]+T[0]),.5*(R[1]+T[1])]}function M(R){if(!R.length)return;var T=R[0],L=T.trace,P=L.aspectratio,d=L.baseratio;d>.999&&(d=.999);var k=Math.pow(d,2),I=T.vTotal,N=I*k/(1-k),B=I,G=N/I;function U(){var le=Math.sqrt(G);return{x:le,y:-le}}function H(){var le=U();return[le.x,le.y]}var W,V=[];V.push(H());var $,Z;for($=R.length-1;$>-1;$--)if(Z=R[$],!Z.hidden){var q=Z.v/B;G+=q,V.push(H())}var ae=1/0,ie=-1/0;for($=0;$-1;$--)if(Z=R[$],!Z.hidden){re+=1;var ee=V[re][0],de=V[re][1];Z.TL=[-ee,de],Z.TR=[ee,de],Z.BL=ne,Z.BR=ce,Z.pxmid=A(Z.TR,Z.BR),ne=Z.TL,ce=Z.TR}}},62096:function(D,O,t){var l=t(33428),S=t(10528),i=t(82744).resizeText;D.exports=function(w){var v=w._fullLayout._funnelarealayer.selectAll(".trace");i(w,v,"funnelarea"),v.each(function(m){var a=m[0],n=a.trace,s=l.select(this);s.style({opacity:n.opacity}),s.selectAll("path.surface").each(function(o){l.select(this).call(S,o,n,w)})})}},83328:function(D,O,t){var l=t(52904),S=t(45464),i=t(25376),C=t(29736).axisHoverFormat,w=t(21776).Ks,v=t(21776).Gw,m=t(49084),a=t(92880).extendFlat;D.exports=a({z:{valType:"data_array",editType:"calc"},x:a({},l.x,{impliedEdits:{xtype:"array"}}),x0:a({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:a({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:a({},l.y,{impliedEdits:{ytype:"array"}}),y0:a({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:a({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:a({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:a({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:a({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:a({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:a({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:a({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:C("x"),yhoverformat:C("y"),zhoverformat:C("z",1),hovertemplate:w(),texttemplate:v({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:a({},S.showlegend,{dflt:!1})},{transforms:void 0},m("",{cLetter:"z",autoColorDflt:!1}))},19512:function(D,O,t){var l=t(24040),S=t(3400),i=t(54460),C=t(1220),w=t(55480),v=t(47128),m=t(2872),a=t(26136),n=t(70448),s=t(11240),o=t(35744),h=t(39032).BADNUM;D.exports=function(p,E){var g=i.getFromId(p,E.xaxis||"x"),c=i.getFromId(p,E.yaxis||"y"),x=l.traceIs(E,"contour"),A=l.traceIs(E,"histogram"),M=l.traceIs(E,"gl2d"),R=x?"best":E.zsmooth,T,L,P,d,k,I,N,B,G,U,H;if(g._minDtick=0,c._minDtick=0,A)H=w(p,E),d=H.orig_x,T=H.x,L=H.x0,P=H.dx,B=H.orig_y,k=H.y,I=H.y0,N=H.dy,G=H.z;else{var W=E.z;S.isArray1D(W)?(m(E,g,c,"x","y",["z"]),T=E._x,k=E._y,W=E._z):(d=E.x?g.makeCalcdata(E,"x"):[],B=E.y?c.makeCalcdata(E,"y"):[],T=C(E,g,"x",d).vals,k=C(E,c,"y",B).vals,E._x=T,E._y=k),L=E.x0,P=E.dx,I=E.y0,N=E.dy,G=a(W,E,g,c)}(g.rangebreaks||c.rangebreaks)&&(G=u(T,k,G),A||(T=f(T),k=f(k),E._x=T,E._y=k)),!A&&(x||E.connectgaps)&&(E._emptypoints=s(G),n(G,E._emptypoints));function V(oe){R=E._input.zsmooth=E.zsmooth=!1,S.warn('cannot use zsmooth: "fast": '+oe)}function $(oe){if(oe.length>1){var K=(oe[oe.length-1]-oe[0])/(oe.length-1),ne=Math.abs(K/100);for(U=0;Une)return!1}return!0}E._islinear=!1,g.type==="log"||c.type==="log"?R==="fast"&&V("log axis found"):$(T)?$(k)?E._islinear=!0:R==="fast"&&V("y scale is not linear"):R==="fast"&&V("x scale is not linear");var Z=S.maxRowLength(G),q=E.xtype==="scaled"?"":T,ae=o(E,q,L,P,Z,g),ie=E.ytype==="scaled"?"":k,fe=o(E,ie,I,N,G.length,c);M||(E._extremes[g._id]=i.findExtremes(g,ae),E._extremes[c._id]=i.findExtremes(c,fe));var Q={x:ae,y:fe,z:G,text:E._text||E.text,hovertext:E._hovertext||E.hovertext};if(E.xperiodalignment&&d&&(Q.orig_x=d),E.yperiodalignment&&B&&(Q.orig_y=B),q&&q.length===ae.length-1&&(Q.xCenter=q),ie&&ie.length===fe.length-1&&(Q.yCenter=ie),A&&(Q.xRanges=H.xRanges,Q.yRanges=H.yRanges,Q.pts=H.pts),x||v(p,E,{vals:G,cLetter:"z"}),x&&E.contours&&E.contours.coloring==="heatmap"){var J={type:E.type==="contour"?"heatmap":"histogram2d",xcalendar:E.xcalendar,ycalendar:E.ycalendar};Q.xfill=o(J,q,L,P,Z,g),Q.yfill=o(J,ie,I,N,G.length,c)}return[Q]};function f(b){for(var p=[],E=b.length,g=0;g=0;b--)u=v[b],h=u[0],f=u[1],p=((w[[h-1,f]]||n)[2]+(w[[h+1,f]]||n)[2]+(w[[h,f-1]]||n)[2]+(w[[h,f+1]]||n)[2])/20,p&&(E[u]=[h,f,p],v.splice(b,1),g=!0);if(!g)throw"findEmpties iterated with no new neighbors";for(u in E)w[u]=E[u],C.push(E[u])}return C.sort(function(c,x){return x[2]-c[2]})}},55512:function(D,O,t){var l=t(93024),S=t(3400),i=S.isArrayOrTypedArray,C=t(54460),w=t(8932).extractOpts;D.exports=function(m,a,n,s,o){o||(o={});var h=o.isContour,f=m.cd[0],u=f.trace,b=m.xa,p=m.ya,E=f.x,g=f.y,c=f.z,x=f.xCenter,A=f.yCenter,M=f.zmask,R=u.zhoverformat,T=E,L=g,P,d,k,I;if(m.index!==!1){try{k=Math.round(m.index[1]),I=Math.round(m.index[0])}catch{S.error("Error hovering on heatmap, pointNumber must be [row,col], found:",m.index);return}if(k<0||k>=c[0].length||I<0||I>c.length)return}else{if(l.inbox(a-E[0],a-E[E.length-1],0)>0||l.inbox(n-g[0],n-g[g.length-1],0)>0)return;if(h){var N;for(T=[2*E[0]-E[1]],N=1;NS;s++)n=w(m,a,C(n));return n>S&&l.log("interp2d didn't converge quickly",n),m};function w(v,m,a){var n=0,s,o,h,f,u,b,p,E,g,c,x,A,M;for(f=0;fA&&(n=Math.max(n,Math.abs(v[o][h]-x)/(M-A))))}return n}},39096:function(D,O,t){var l=t(3400);D.exports=function(i,C){i("texttemplate");var w=l.extendFlat({},C.font,{color:"auto",size:"auto"});l.coerceFont(i,"textfont",w)}},35744:function(D,O,t){var l=t(24040),S=t(3400).isArrayOrTypedArray;D.exports=function(C,w,v,m,a,n){var s=[],o=l.traceIs(C,"contour"),h=l.traceIs(C,"histogram"),f=l.traceIs(C,"gl2d"),u,b,p,E=S(w)&&w.length>1;if(E&&!h&&n.type!=="category"){var g=w.length;if(g<=a){if(o||f)s=Array.from(w).slice(0,a);else if(a===1)n.type==="log"?s=[.5*w[0],2*w[0]]:s=[w[0]-.5,w[0]+.5];else if(n.type==="log"){for(s=[Math.pow(w[0],1.5)/Math.pow(w[1],.5)],p=1;p0;)ne=d.c2p(V[de]),de--;for(ne0;)ee=k.c2p($[de]),de--;ee=d._length||ne<=0||re>=k._length||ee<=0;if(Te){var Ae=N.selectAll("image").data([]);Ae.exit().remove(),c(N);return}var be,Ie;xe==="fast"?(be=Q,Ie=fe):(be=Se,Ie=ke);var Ue=document.createElement("canvas");Ue.width=be,Ue.height=Ie;var Ne=Ue.getContext("2d",{willReadFrequently:!0}),ze=o(G,{noNumericCheck:!0,returnArray:!0}),$e,st;xe==="fast"?($e=J?function(fn){return Q-1-fn}:v.identity,st=oe?function(fn){return fe-1-fn}:v.identity):($e=function(fn){return v.constrain(Math.round(d.c2p(V[fn])-K),0,Se)},st=function(fn){return v.constrain(Math.round(k.c2p($[fn])-re),0,ke)});var vt=st(0),at=[vt,vt],nt=J?0:1,mt=oe?0:1,rt=0,lt=0,dt=0,wt=0,et,Be,Ye,Ke,We;function Fe(fn,Tn){if(fn!==void 0){var Sn=ze(fn);return Sn[0]=Math.round(Sn[0]),Sn[1]=Math.round(Sn[1]),Sn[2]=Math.round(Sn[2]),rt+=Tn,lt+=Sn[0]*Tn,dt+=Sn[1]*Tn,wt+=Sn[2]*Tn,Sn}return[0,0,0,0]}function Me(fn,Tn,Sn,Fn){var Wn=fn[Sn.bin0];if(Wn===void 0)return Fe(void 0,1);var ma=fn[Sn.bin1],Aa=Tn[Sn.bin0],Ia=Tn[Sn.bin1],Ta=ma-Wn||0,ga=Aa-Wn||0,Cr;return ma===void 0?Ia===void 0?Cr=0:Aa===void 0?Cr=2*(Ia-Wn):Cr=(2*Ia-Aa-Wn)*2/3:Ia===void 0?Aa===void 0?Cr=0:Cr=(2*Wn-ma-Aa)*2/3:Aa===void 0?Cr=(2*Ia-ma-Wn)*2/3:Cr=Ia+Wn-ma-Aa,Fe(Wn+Sn.frac*Ta+Fn.frac*(ga+Sn.frac*Cr))}if(xe!=="default"){var we=0,Re;try{Re=new Uint8Array(be*Ie*4)}catch{Re=new Array(be*Ie*4)}if(xe==="smooth"){var Pe=Z||V,Ve=q||$,Je=new Array(Pe.length),ot=new Array(Ve.length),yt=new Array(Se),ut=Z?A:x,It=q?A:x,Vt,xt,Lt;for(de=0;demr||mr>k._length))for(le=jt;leXe||Xe>d._length)){var Ut=a({x:Ze,y:vr},G,R._fullLayout);Ut.x=Ze,Ut.y=vr;var Bt=B.z[de][le];Bt===void 0?(Ut.z="",Ut.zLabel=""):(Ut.z=Bt,Ut.zLabel=w.tickText(At,Bt,"hover").text);var qt=B.text&&B.text[de]&&B.text[de][le];(qt===void 0||qt===!1)&&(qt=""),Ut.text=qt;var nr=v.texttemplateString(Ct,Ut,R._fullLayout._d3locale,Ut,G._meta||{});if(nr){var fr=nr.split("
"),ir=fr.length,Ht=0;for(he=0;he0&&(a=!0);for(var h=0;hv){var m=v-C[S];return C[S]=v,m}}else return C[S]=v,v;return 0},max:function(S,i,C,w){var v=w[i];if(l(v))if(v=Number(v),l(C[S])){if(C[S]L&&LC){var k=P===S?1:6,I=P===S?"M12":"M1";return function(N,B){var G=E.c2d(N,S,g),U=G.indexOf("-",k);U>0&&(G=G.substr(0,U));var H=E.d2c(G,0,g);if(Hm?f>C?f>S*1.1?S:f>i*1.1?i:C:f>w?w:f>v?v:m:Math.pow(10,Math.floor(Math.log(f)/Math.LN10))}function o(f,u,b,p,E,g){if(p&&f>C){var c=h(u,E,g),x=h(b,E,g),A=f===S?0:1;return c[A]!==x[A]}return Math.floor(b/f)-Math.floor(u/f)>.1}function h(f,u,b){var p=u.c2d(f,S,b).split("-");return p[0]===""&&(p.unshift(),p[0]="-"+p[0]),p}},35852:function(D,O,t){var l=t(38248),S=t(3400),i=t(24040),C=t(54460),w=t(84664),v=t(16964),m=t(10648),a=t(2e3),n=t(67712);function s(b,p){var E=[],g=[],c=p.orientation==="h",x=C.getFromId(b,c?p.yaxis:p.xaxis),A=c?"y":"x",M={x:"y",y:"x"}[A],R=p[A+"calendar"],T=p.cumulative,L,P=o(b,p,x,A),d=P[0],k=P[1],I=typeof d.size=="string",N=[],B=I?N:d,G=[],U=[],H=[],W=0,V=p.histnorm,$=p.histfunc,Z=V.indexOf("density")!==-1,q,ae,ie;T.enabled&&Z&&(V=V.replace(/ ?density$/,""),Z=!1);var fe=$==="max"||$==="min",Q=fe?null:0,J=v.count,oe=m[V],K=!1,ne=function(Ne){return x.r2c(Ne,0,R)},ce;for(S.isArrayOrTypedArray(p[M])&&$!=="count"&&(ce=p[M],K=$==="avg",J=v[$]),L=ne(d.start),ae=ne(d.end)+(L-C.tickIncrement(L,d.size,!1,R))/1e6;L=0&&ie=be;L--)if(g[L]){Ie=L;break}for(L=be;L<=Ie;L++)if(l(E[L])&&l(g[L])){var Ue={p:E[L],s:g[L],b:0};T.enabled||(Ue.pts=H[L],le?Ue.ph0=Ue.ph1=H[L].length?k[H[L][0]]:E[L]:(p._computePh=!0,Ue.ph0=ke(N[L]),Ue.ph1=ke(N[L+1],!0))),Ae.push(Ue)}return Ae.length===1&&(Ae[0].width1=C.tickIncrement(Ae[0].p,d.size,!1,R)-Ae[0].p),w(Ae,p),S.isArrayOrTypedArray(p.selectedpoints)&&S.tagSelected(Ae,p,Ee),Ae}function o(b,p,E,g,c){var x=g+"bins",A=b._fullLayout,M=p["_"+g+"bingroup"],R=A._histogramBinOpts[M],T=A.barmode==="overlay",L,P,d,k,I,N,B,G=function(Se){return E.r2c(Se,0,k)},U=function(Se){return E.c2r(Se,0,k)},H=E.type==="date"?function(Se){return Se||Se===0?S.cleanDate(Se,null,k):null}:function(Se){return l(Se)?Number(Se):null};function W(Se,ke,Te){ke[Se+"Found"]?(ke[Se]=H(ke[Se]),ke[Se]===null&&(ke[Se]=Te[Se])):(N[Se]=ke[Se]=Te[Se],S.nestedProperty(P[0],x+"."+Se).set(Te[Se]))}if(p["_"+g+"autoBinFinished"])delete p["_"+g+"autoBinFinished"];else{P=R.traces;var V=[],$=!0,Z=!1,q=!1;for(L=0;L"u"){if(c)return[ie,I,!0];ie=h(b,p,E,g,x)}B=d.cumulative||{},B.enabled&&B.currentbin!=="include"&&(B.direction==="decreasing"?ie.start=U(C.tickIncrement(G(ie.start),ie.size,!0,k)):ie.end=U(C.tickIncrement(G(ie.end),ie.size,!1,k))),R.size=ie.size,R.sizeFound||(N.size=ie.size,S.nestedProperty(P[0],x+".size").set(ie.size)),W("start",R,ie),W("end",R,ie)}I=p["_"+g+"pos0"],delete p["_"+g+"pos0"];var Q=p._input[x]||{},J=S.extendFlat({},R),oe=R.start,K=E.r2l(Q.start),ne=K!==void 0;if((R.startFound||ne)&&K!==E.r2l(oe)){var ce=ne?K:S.aggNums(Math.min,null,I),re={type:E.type==="category"||E.type==="multicategory"?"linear":E.type,r2l:E.r2l,dtick:R.size,tick0:oe,calendar:k,range:[ce,C.tickIncrement(ce,R.size,!1,k)].map(E.l2r)},ee=C.tickFirst(re);ee>E.r2l(ce)&&(ee=C.tickIncrement(ee,R.size,!0,k)),J.start=E.l2r(ee),ne||S.nestedProperty(p,x+".start").set(J.start)}var de=R.end,le=E.r2l(Q.end),he=le!==void 0;if((R.endFound||he)&&le!==E.r2l(de)){var xe=he?le:S.aggNums(Math.max,null,I);J.end=E.l2r(xe),he||S.nestedProperty(p,x+".start").set(J.end)}var Ee="autobin"+g;return p._input[Ee]===!1&&(p._input[x]=S.extendFlat({},p[x]||{}),delete p._input[Ee],delete p[Ee]),[J,I]}function h(b,p,E,g,c){var x=b._fullLayout,A=f(b,p),M=!1,R=1/0,T=[p],L,P,d;for(L=0;L=0;g--)M(g);else if(p==="increasing"){for(g=1;g=0;g--)b[g]+=b[g+1];E==="exclude"&&(b.push(0),b.shift())}}D.exports={calc:s,calcAllAutoBins:o}},73316:function(D){D.exports={eventDataKeys:["binNumber"]}},80536:function(D,O,t){var l=t(3400),S=t(79811),i=t(24040).traceIs,C=t(20011),w=t(31508).validateCornerradius,v=l.nestedProperty,m=t(71888).getAxisGroup,a=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],n=["x","y"];D.exports=function(o,h){var f=h._histogramBinOpts={},u=[],b={},p=[],E,g,c,x,A,M,R;function T(ie,fe){return l.coerce(E._input,E,E._module.attributes,ie,fe)}function L(ie){return ie.orientation==="v"?"x":"y"}function P(ie,fe){var Q=S.getFromTrace({_fullLayout:h},ie,fe);return Q.type}function d(ie,fe,Q){var J=ie.uid+"__"+Q;fe||(fe=J);var oe=P(ie,Q),K=ie[Q+"calendar"]||"",ne=f[fe],ce=!0;ne&&(oe===ne.axType&&K===ne.calendar?(ce=!1,ne.traces.push(ie),ne.dirs.push(Q)):(fe=J,oe!==ne.axType&&l.warn(["Attempted to group the bins of trace",ie.index,"set on a","type:"+oe,"axis","with bins on","type:"+ne.axType,"axis."].join(" ")),K!==ne.calendar&&l.warn(["Attempted to group the bins of trace",ie.index,"set with a",K,"calendar","with bins",ne.calendar?"on a "+ne.calendar+" calendar":"w/o a set calendar"].join(" ")))),ce&&(f[fe]={traces:[ie],dirs:[Q],axType:oe,calendar:ie[Q+"calendar"]||""}),ie["_"+Q+"bingroup"]=fe}for(A=0;AG&&k.splice(G,k.length-G),B.length>G&&B.splice(G,B.length-G);var U=[],H=[],W=[],V=typeof d.size=="string",$=typeof N.size=="string",Z=[],q=[],ae=V?Z:d,ie=$?q:N,fe=0,Q=[],J=[],oe=f.histnorm,K=f.histfunc,ne=oe.indexOf("density")!==-1,ce=K==="max"||K==="min",re=ce?null:0,ee=i.count,de=C[oe],le=!1,he=[],xe=[],Ee="z"in f?f.z:"marker"in f&&Array.isArray(f.marker.color)?f.marker.color:"";Ee&&K!=="count"&&(le=K==="avg",ee=i[K]);var Se=d.size,ke=g(d.start),Te=g(d.end)+(ke-S.tickIncrement(ke,Se,!1,p))/1e6;for(M=ke;M=0&&T=0&&L-1,flipY:H.tiling.flip.indexOf("y")>-1,orientation:H.tiling.orientation,pad:{inner:H.tiling.pad},maxDepth:H._maxDepth}),q=Z.descendants(),ae=1/0,ie=-1/0;q.forEach(function(K){var ne=K.depth;ne>=H._maxDepth?(K.x0=K.x1=(K.x0+K.x1)/2,K.y0=K.y1=(K.y0+K.y1)/2):(ae=Math.min(ae,ne),ie=Math.max(ie,ne))}),p=p.data(q,a.getPtId),H._maxVisibleLayers=isFinite(ie)?ie-ae+1:0,p.enter().append("g").classed("slice",!0),P(p,o,N,[g,c],M),p.order();var fe=null;if(L&&I){var Q=a.getPtId(I);p.each(function(K){fe===null&&a.getPtId(K)===Q&&(fe={x0:K.x0,x1:K.x1,y0:K.y0,y1:K.y1})})}var J=function(){return fe||{x0:0,x1:g,y0:0,y1:c}},oe=p;return L&&(oe=oe.transition().each("end",function(){var K=l.select(this);a.setSliceCursor(K,f,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),oe.each(function(K){K._x0=x(K.x0),K._x1=x(K.x1),K._y0=A(K.y0),K._y1=A(K.y1),K._hoverX=x(K.x1-H.tiling.pad),K._hoverY=A($?K.y1-H.tiling.pad/2:K.y0+H.tiling.pad/2);var ne=l.select(this),ce=S.ensureSingle(ne,"path","surface",function(le){le.style("pointer-events",B?"none":"all")});L?ce.transition().attrTween("d",function(le){var he=d(le,o,J(),[g,c],{orientation:H.tiling.orientation,flipX:H.tiling.flip.indexOf("x")>-1,flipY:H.tiling.flip.indexOf("y")>-1});return function(xe){return M(he(xe))}}):ce.attr("d",M),ne.call(n,b,f,u,{styleOne:v,eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,f,{isTransitioning:f._transitioning}),ce.call(v,K,H,f,{hovered:!1}),K.x0===K.x1||K.y0===K.y1?K._text="":K._text=s(K,b,H,u,G)||"";var re=S.ensureSingle(ne,"g","slicetext"),ee=S.ensureSingle(re,"text","",function(le){le.attr("data-notex",1)}),de=S.ensureUniformFontSize(f,a.determineTextFont(H,K,G.font));ee.text(K._text||" ").classed("slicetext",!0).attr("text-anchor",V?"end":W?"start":"middle").call(i.font,de).call(C.convertToTspans,f),K.textBB=i.bBox(ee.node()),K.transform=R(K,{fontSize:de.size}),K.transform.fontSize=de.size,L?ee.transition().attrTween("transform",function(le){var he=k(le,o,J(),[g,c]);return function(xe){return T(he(xe))}}):ee.attr("transform",T(K))}),fe}},29044:function(D,O,t){D.exports={moduleType:"trace",name:"icicle",basePlotModule:t(59564),categories:[],animatable:!0,attributes:t(97376),layoutAttributes:t(90676),supplyDefaults:t(7045),supplyLayoutDefaults:t(4304),calc:t(73876).r,crossTraceCalc:t(73876).q,plot:t(38364),style:t(47192).style,colorbar:t(5528),meta:{}}},90676:function(D){D.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(D,O,t){var l=t(3400),S=t(90676);D.exports=function(C,w){function v(m,a){return l.coerce(C,w,S,m,a)}v("iciclecolorway",w.colorway),v("extendiciclecolors")}},25132:function(D,O,t){var l=t(74148),S=t(83024);D.exports=function(C,w,v){var m=v.flipX,a=v.flipY,n=v.orientation==="h",s=v.maxDepth,o=w[0],h=w[1];s&&(o=(C.height+1)*w[0]/Math.min(C.height+1,s),h=(C.height+1)*w[1]/Math.min(C.height+1,s));var f=l.partition().padding(v.pad.inner).size(n?[w[1],o]:[w[0],h])(C);return(n||m||a)&&S(f,w,{swapXY:n,flipX:m,flipY:a}),f}},38364:function(D,O,t){var l=t(95808),S=t(67880);D.exports=function(C,w,v,m){return l(C,w,v,m,{type:"icicle",drawDescendants:S})}},47192:function(D,O,t){var l=t(33428),S=t(76308),i=t(3400),C=t(82744).resizeText,w=t(60404);function v(a){var n=a._fullLayout._iciclelayer.selectAll(".trace");C(a,n,"icicle"),n.each(function(s){var o=l.select(this),h=s[0],f=h.trace;o.style("opacity",f.opacity),o.selectAll("path.surface").each(function(u){l.select(this).call(m,u,f,a)})})}function m(a,n,s,o){var h=n.data.data,f=!n.children,u=h.i,b=i.castOption(s,u,"marker.line.color")||S.defaultLine,p=i.castOption(s,u,"marker.line.width")||0;a.call(w,n,s,o).style("stroke-width",p).call(S.stroke,b).style("opacity",f?s.leaf.opacity:null)}D.exports={style:v,styleOne:m}},95188:function(D,O,t){for(var l=t(45464),S=t(21776).Ks,i=t(92880).extendFlat,C=t(47797).colormodel,w=["rgb","rgba","rgba256","hsl","hsla"],v=[],m=[],a=0;a0||l.inbox(a-n.y0,a-(n.y0+n.h*s.dy),0)>0)){var f=Math.floor((m-n.x0)/s.dx),u=Math.floor(Math.abs(a-n.y0)/s.dy),b;if(s._hasZ?b=n.z[u][f]:s._hasSource&&(b=s._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(f,u,1,1).data),!!b){var p=n.hi||s.hoverinfo,E;if(p){var g=p.split("+");g.indexOf("all")!==-1&&(g=["color"]),g.indexOf("color")!==-1&&(E=!0)}var c=C.colormodel[s.colormodel],x=c.colormodel||s.colormodel,A=x.length,M=s._scaler(b),R=c.suffix,T=[];(s.hovertemplate||E)&&(T.push("["+[M[0]+R[0],M[1]+R[1],M[2]+R[2]].join(", ")),A===4&&T.push(", "+M[3]+R[3]),T.push("]"),T=T.join(""),v.extraText=x.toUpperCase()+": "+T);var L;i(s.hovertext)&&i(s.hovertext[u])?L=s.hovertext[u][f]:i(s.text)&&i(s.text[u])&&(L=s.text[u][f]);var P=h.c2p(n.y0+(u+.5)*s.dy),d=n.x0+(f+.5)*s.dx,k=n.y0+(u+.5)*s.dy,I="["+b.slice(0,s.colormodel.length).join(", ")+"]";return[S.extendFlat(v,{index:[u,f],x0:o.c2p(n.x0+f*s.dx),x1:o.c2p(n.x0+(f+1)*s.dx),y0:P,y1:P,color:M,xVal:d,xLabelVal:d,yVal:k,yLabelVal:k,zLabelVal:I,text:L,hovertemplateLabels:{zLabel:I,colorLabel:T,"color[0]Label":M[0]+R[0],"color[1]Label":M[1]+R[1],"color[2]Label":M[2]+R[2],"color[3]Label":M[3]+R[3]}})]}}}},48928:function(D,O,t){D.exports={attributes:t(95188),supplyDefaults:t(13188),calc:t(93336),plot:t(63715),style:t(28576),hoverPoints:t(24892),eventData:t(79972),moduleType:"trace",name:"image",basePlotModule:t(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(D,O,t){var l=t(33428),S=t(3400),i=S.strTranslate,C=t(9616),w=t(47797),v=t(9188),m=t(2264).STYLE;D.exports=function(n,s,o,h){var f=s.xaxis,u=s.yaxis,b=!n._context._exportedPlot&&v();S.makeTraceGroups(h,o,"im").each(function(p){var E=l.select(this),g=p[0],c=g.trace,x=(c.zsmooth==="fast"||c.zsmooth===!1&&b)&&!c._hasZ&&c._hasSource&&f.type==="linear"&&u.type==="linear";c._realImage=x;var A=g.z,M=g.x0,R=g.y0,T=g.w,L=g.h,P=c.dx,d=c.dy,k,I,N,B,G,U;for(U=0;k===void 0&&U0;)I=f.c2p(M+U*P),U--;for(U=0;B===void 0&&U0;)G=u.c2p(R+U*d),U--;if(IQ[0];if(J||oe){var K=k+W/2,ne=B+V/2;ie+="transform:"+i(K+"px",ne+"px")+"scale("+(J?-1:1)+","+(oe?-1:1)+")"+i(-K+"px",-ne+"px")+";"}}ae.attr("style",ie);var ce=new Promise(function(re){if(c._hasZ)re();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===T&&c._canvas.el.height===L&&c._canvas.source===c.source)re();else{var ee=document.createElement("canvas");ee.width=T,ee.height=L;var de=ee.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var le=c._image;le.onload=function(){de.drawImage(le,0,0),c._canvas={el:ee,source:c.source},re()},le.setAttribute("src",c.source)}}).then(function(){var re,ee;if(c._hasZ)ee=q(function(he,xe){var Ee=A[xe][he];return S.isTypedArray(Ee)&&(Ee=Array.from(Ee)),Ee}),re=ee.toDataURL("image/png");else if(c._hasSource)if(x)re=c.source;else{var de=c._canvas.el.getContext("2d",{willReadFrequently:!0}),le=de.getImageData(0,0,T,L).data;ee=q(function(he,xe){var Ee=4*(xe*T+he);return[le[Ee],le[Ee+1],le[Ee+2],le[Ee+3]]}),re=ee.toDataURL("image/png")}ae.attr({"xlink:href":re,height:V,width:W,x:k,y:B})});n._promises.push(ce)})}},28576:function(D,O,t){var l=t(33428);D.exports=function(i){l.select(i).selectAll(".im image").style("opacity",function(C){return C[0].trace.opacity})}},89864:function(D,O,t){var l=t(92880).extendFlat,S=t(92880).extendDeep,i=t(67824).overrideAll,C=t(25376),w=t(22548),v=t(86968).u,m=t(94724),a=t(31780).templatedArray,n=t(48164),s=t(29736).descriptionOnlyNumbers,o=C({editType:"plot",colorEditType:"plot"}),h={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:w.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},f={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},u=a("step",S({},h,{range:f}));D.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:v({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:l({},o,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:s("value")},font:l({},o,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:s("value")},increasing:{symbol:{valType:"string",dflt:n.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:n.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:n.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:n.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:l({},o,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:S({},h,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:w.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:i({range:f,visible:l({},m.visible,{dflt:!0}),tickmode:m.minor.tickmode,nticks:m.nticks,tick0:m.tick0,dtick:m.dtick,tickvals:m.tickvals,ticktext:m.ticktext,ticks:l({},m.ticks,{dflt:"outside"}),ticklen:m.ticklen,tickwidth:m.tickwidth,tickcolor:m.tickcolor,ticklabelstep:m.ticklabelstep,showticklabels:m.showticklabels,labelalias:m.labelalias,tickfont:C({}),tickangle:m.tickangle,tickformat:m.tickformat,tickformatstops:m.tickformatstops,tickprefix:m.tickprefix,showtickprefix:m.showtickprefix,ticksuffix:m.ticksuffix,showticksuffix:m.showticksuffix,separatethousands:m.separatethousands,exponentformat:m.exponentformat,minexponent:m.minexponent,showexponent:m.showexponent,editType:"plot"},"plot"),steps:u,threshold:{line:{color:l({},h.line.color,{}),width:l({},h.line.width,{dflt:1}),editType:"plot"},thickness:l({},h.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(D,O,t){var l=t(7316);O.name="indicator",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},79136:function(D){function O(t,l){var S=[],i=l.value;typeof l._lastValue!="number"&&(l._lastValue=l.value);var C=l._lastValue,w=C;return l._hasDelta&&typeof l.delta.reference=="number"&&(w=l.delta.reference),S[0]={y:i,lastY:C,delta:i-w,relativeDelta:(i-w)/w},S}D.exports={calc:O}},12096:function(D){D.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(D,O,t){var l=t(3400),S=t(89864),i=t(86968).Q,C=t(31780),w=t(51272),v=t(12096),m=t(26332),a=t(25404),n=t(95936),s=t(42568);function o(f,u,b,p){function E(G,U){return l.coerce(f,u,S,G,U)}i(u,p,E),E("mode"),u._hasNumber=u.mode.indexOf("number")!==-1,u._hasDelta=u.mode.indexOf("delta")!==-1,u._hasGauge=u.mode.indexOf("gauge")!==-1;var g=E("value");u._range=[0,typeof g=="number"?1.5*g:1];var c=new Array(2),x;u._hasNumber&&(E("number.valueformat"),E("number.font.color",p.font.color),E("number.font.family",p.font.family),E("number.font.size"),u.number.font.size===void 0&&(u.number.font.size=v.defaultNumberFontSize,c[0]=!0),E("number.prefix"),E("number.suffix"),x=u.number.font.size);var A;u._hasDelta&&(E("delta.font.color",p.font.color),E("delta.font.family",p.font.family),E("delta.font.size"),u.delta.font.size===void 0&&(u.delta.font.size=(u._hasNumber?.5:1)*(x||v.defaultNumberFontSize),c[1]=!0),E("delta.reference",u.value),E("delta.relative"),E("delta.valueformat",u.delta.relative?"2%":""),E("delta.increasing.symbol"),E("delta.increasing.color"),E("delta.decreasing.symbol"),E("delta.decreasing.color"),E("delta.position"),E("delta.prefix"),E("delta.suffix"),A=u.delta.font.size),u._scaleNumbers=(!u._hasNumber||c[0])&&(!u._hasDelta||c[1])||!1,E("title.font.color",p.font.color),E("title.font.family",p.font.family),E("title.font.size",.25*(x||A||v.defaultNumberFontSize)),E("title.text");var M,R,T,L;function P(G,U){return l.coerce(M,R,S.gauge,G,U)}function d(G,U){return l.coerce(T,L,S.gauge.axis,G,U)}if(u._hasGauge){M=f.gauge,M||(M={}),R=C.newContainer(u,"gauge"),P("shape");var k=u._isBullet=u.gauge.shape==="bullet";k||E("title.align","center");var I=u._isAngular=u.gauge.shape==="angular";I||E("align","center"),P("bgcolor",p.paper_bgcolor),P("borderwidth"),P("bordercolor"),P("bar.color"),P("bar.line.color"),P("bar.line.width");var N=v.valueThickness*(u.gauge.shape==="bullet"?.5:1);P("bar.thickness",N),w(M,R,{name:"steps",handleItemDefaults:h}),P("threshold.value"),P("threshold.thickness"),P("threshold.line.width"),P("threshold.line.color"),T={},M&&(T=M.axis||{}),L=C.newContainer(R,"axis"),d("visible"),u._range=d("range",u._range);var B={noAutotickangles:!0,outerTicks:!0};m(T,L,d,"linear"),s(T,L,d,"linear",B),n(T,L,d,"linear",B),a(T,L,d,B)}else E("title.align","center"),E("align","center"),u._isAngular=u._isBullet=!1;u._length=null}function h(f,u){function b(p,E){return l.coerce(f,u,S.gauge.steps,p,E)}b("color"),b("line.color"),b("line.width"),b("range"),b("thickness")}D.exports={supplyDefaults:o}},43480:function(D,O,t){D.exports={moduleType:"trace",name:"indicator",basePlotModule:t(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:t(89864),supplyDefaults:t(20424).supplyDefaults,calc:t(79136).calc,plot:t(97864),meta:{}}},97864:function(D,O,t){var l=t(33428),S=t(67756).qy,i=t(67756).Gz,C=t(3400),w=C.strScale,v=C.strTranslate,m=C.rad2deg,a=t(84284).MID_SHIFT,n=t(43616),s=t(12096),o=t(72736),h=t(54460),f=t(28336),u=t(37668),b=t(94724),p=t(76308),E={left:"start",center:"middle",right:"end"},g={left:0,center:.5,right:1},c=/[yzafpnµmkMGTPEZY]/;function x(B){return B&&B.duration>0}D.exports=function(G,U,H,W){var V=G._fullLayout,$;x(H)&&W&&($=W()),C.makeTraceGroups(V._indicatorlayer,U,"trace").each(function(Z){var q=Z[0],ae=q.trace,ie=l.select(this),fe=ae._hasGauge,Q=ae._isAngular,J=ae._isBullet,oe=ae.domain,K={w:V._size.w*(oe.x[1]-oe.x[0]),h:V._size.h*(oe.y[1]-oe.y[0]),l:V._size.l+V._size.w*oe.x[0],r:V._size.r+V._size.w*(1-oe.x[1]),t:V._size.t+V._size.h*(1-oe.y[1]),b:V._size.b+V._size.h*oe.y[0]},ne=K.l+K.w/2,ce=K.t+K.h/2,re=Math.min(K.w/2,K.h),ee=s.innerRadius*re,de,le,he,xe=ae.align||"center";if(le=ce,!fe)de=K.l+g[xe]*K.w,he=function(ze){return d(ze,K.w,K.h)};else if(Q&&(de=ne,le=ce+re/2,he=function(ze){return k(ze,.9*ee)}),J){var Ee=s.bulletPadding,Se=1-s.bulletNumberDomainSize+Ee;de=K.l+(Se+(1-Se)*g[xe])*K.w,he=function(ze){return d(ze,(s.bulletNumberDomainSize-Ee)*K.w,K.h)}}R(G,ie,Z,{numbersX:de,numbersY:le,numbersScaler:he,transitionOpts:H,onComplete:$});var ke,Te;fe&&(ke={range:ae.gauge.axis.range,color:ae.gauge.bgcolor,line:{color:ae.gauge.bordercolor,width:0},thickness:1},Te={range:ae.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ae.gauge.bordercolor,width:ae.gauge.borderwidth},thickness:1});var Ae=ie.selectAll("g.angular").data(Q?Z:[]);Ae.exit().remove();var be=ie.selectAll("g.angularaxis").data(Q?Z:[]);be.exit().remove(),Q&&M(G,ie,Z,{radius:re,innerRadius:ee,gauge:Ae,layer:be,size:K,gaugeBg:ke,gaugeOutline:Te,transitionOpts:H,onComplete:$});var Ie=ie.selectAll("g.bullet").data(J?Z:[]);Ie.exit().remove();var Ue=ie.selectAll("g.bulletaxis").data(J?Z:[]);Ue.exit().remove(),J&&A(G,ie,Z,{gauge:Ie,layer:Ue,size:K,gaugeBg:ke,gaugeOutline:Te,transitionOpts:H,onComplete:$});var Ne=ie.selectAll("text.title").data(Z);Ne.exit().remove(),Ne.enter().append("text").classed("title",!0),Ne.attr("text-anchor",function(){return J?E.right:E[ae.title.align]}).text(ae.title.text).call(n.font,ae.title.font).call(o.convertToTspans,G),Ne.attr("transform",function(){var ze=K.l+K.w*g[ae.title.align],$e,st=s.titlePadding,vt=n.bBox(Ne.node());if(fe){if(Q)if(ae.gauge.axis.visible){var at=n.bBox(be.node());$e=at.top-st-vt.bottom}else $e=K.t+K.h/2-re/2-vt.bottom-st;J&&($e=le-(vt.top+vt.bottom)/2,ze=K.l-s.bulletPadding*K.w)}else $e=ae._numbersTop-st-vt.bottom;return v(ze,$e)})})};function A(B,G,U,H){var W=U[0].trace,V=H.gauge,$=H.layer,Z=H.gaugeBg,q=H.gaugeOutline,ae=H.size,ie=W.domain,fe=H.transitionOpts,Q=H.onComplete,J,oe,K,ne,ce;V.enter().append("g").classed("bullet",!0),V.attr("transform",v(ae.l,ae.t)),$.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),$.selectAll("g.xbulletaxistick,path,text").remove();var re=ae.h,ee=W.gauge.bar.thickness*re,de=ie.x[0],le=ie.x[0]+(ie.x[1]-ie.x[0])*(W._hasNumber||W._hasDelta?1-s.bulletNumberDomainSize:1);J=P(B,W.gauge.axis),J._id="xbulletaxis",J.domain=[de,le],J.setScale(),oe=h.calcTicks(J),K=h.makeTransTickFn(J),ne=h.getTickSigns(J)[2],ce=ae.t+ae.h,J.visible&&(h.drawTicks(B,J,{vals:J.ticks==="inside"?h.clipEnds(J,oe):oe,layer:$,path:h.makeTickPath(J,ce,ne),transFn:K}),h.drawLabels(B,J,{vals:oe,layer:$,transFn:K,labelFns:h.makeLabelFns(J,ce)}));function he(be){be.attr("width",function(Ie){return Math.max(0,J.c2p(Ie.range[1])-J.c2p(Ie.range[0]))}).attr("x",function(Ie){return J.c2p(Ie.range[0])}).attr("y",function(Ie){return .5*(1-Ie.thickness)*re}).attr("height",function(Ie){return Ie.thickness*re})}var xe=[Z].concat(W.gauge.steps),Ee=V.selectAll("g.bg-bullet").data(xe);Ee.enter().append("g").classed("bg-bullet",!0).append("rect"),Ee.select("rect").call(he).call(T),Ee.exit().remove();var Se=V.selectAll("g.value-bullet").data([W.gauge.bar]);Se.enter().append("g").classed("value-bullet",!0).append("rect"),Se.select("rect").attr("height",ee).attr("y",(re-ee)/2).call(T),x(fe)?Se.select("rect").transition().duration(fe.duration).ease(fe.easing).each("end",function(){Q&&Q()}).each("interrupt",function(){Q&&Q()}).attr("width",Math.max(0,J.c2p(Math.min(W.gauge.axis.range[1],U[0].y)))):Se.select("rect").attr("width",typeof U[0].y=="number"?Math.max(0,J.c2p(Math.min(W.gauge.axis.range[1],U[0].y))):0),Se.exit().remove();var ke=U.filter(function(){return W.gauge.threshold.value||W.gauge.threshold.value===0}),Te=V.selectAll("g.threshold-bullet").data(ke);Te.enter().append("g").classed("threshold-bullet",!0).append("line"),Te.select("line").attr("x1",J.c2p(W.gauge.threshold.value)).attr("x2",J.c2p(W.gauge.threshold.value)).attr("y1",(1-W.gauge.threshold.thickness)/2*re).attr("y2",(1-(1-W.gauge.threshold.thickness)/2)*re).call(p.stroke,W.gauge.threshold.line.color).style("stroke-width",W.gauge.threshold.line.width),Te.exit().remove();var Ae=V.selectAll("g.gauge-outline").data([q]);Ae.enter().append("g").classed("gauge-outline",!0).append("rect"),Ae.select("rect").call(he).call(T),Ae.exit().remove()}function M(B,G,U,H){var W=U[0].trace,V=H.size,$=H.radius,Z=H.innerRadius,q=H.gaugeBg,ae=H.gaugeOutline,ie=[V.l+V.w/2,V.t+V.h/2+$/2],fe=H.gauge,Q=H.layer,J=H.transitionOpts,oe=H.onComplete,K=Math.PI/2;function ne(nt){var mt=W.gauge.axis.range[0],rt=W.gauge.axis.range[1],lt=(nt-mt)/(rt-mt)*Math.PI-K;return lt<-K?-K:lt>K?K:lt}function ce(nt){return l.svg.arc().innerRadius((Z+$)/2-nt/2*($-Z)).outerRadius((Z+$)/2+nt/2*($-Z)).startAngle(-K)}function re(nt){nt.attr("d",function(mt){return ce(mt.thickness).startAngle(ne(mt.range[0])).endAngle(ne(mt.range[1]))()})}var ee,de,le,he;fe.enter().append("g").classed("angular",!0),fe.attr("transform",v(ie[0],ie[1])),Q.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),Q.selectAll("g.xangularaxistick,path,text").remove(),ee=P(B,W.gauge.axis),ee.type="linear",ee.range=W.gauge.axis.range,ee._id="xangularaxis",ee.ticklabeloverflow="allow",ee.setScale();var xe=function(nt){return(ee.range[0]-nt.x)/(ee.range[1]-ee.range[0])*Math.PI+Math.PI},Ee={},Se=h.makeLabelFns(ee,0),ke=Se.labelStandoff;Ee.xFn=function(nt){var mt=xe(nt);return Math.cos(mt)*ke},Ee.yFn=function(nt){var mt=xe(nt),rt=Math.sin(mt)>0?.2:1;return-Math.sin(mt)*(ke+nt.fontSize*rt)+Math.abs(Math.cos(mt))*(nt.fontSize*a)},Ee.anchorFn=function(nt){var mt=xe(nt),rt=Math.cos(mt);return Math.abs(rt)<.1?"middle":rt>0?"start":"end"},Ee.heightFn=function(nt,mt,rt){var lt=xe(nt);return-.5*(1+Math.sin(lt))*rt};var Te=function(nt){return v(ie[0]+$*Math.cos(nt),ie[1]-$*Math.sin(nt))};le=function(nt){return Te(xe(nt))};var Ae=function(nt){var mt=xe(nt);return Te(mt)+"rotate("+-m(mt)+")"};if(de=h.calcTicks(ee),he=h.getTickSigns(ee)[2],ee.visible){he=ee.ticks==="inside"?-1:1;var be=(ee.linewidth||1)/2;h.drawTicks(B,ee,{vals:de,layer:Q,path:"M"+he*be+",0h"+he*ee.ticklen,transFn:Ae}),h.drawLabels(B,ee,{vals:de,layer:Q,transFn:le,labelFns:Ee})}var Ie=[q].concat(W.gauge.steps),Ue=fe.selectAll("g.bg-arc").data(Ie);Ue.enter().append("g").classed("bg-arc",!0).append("path"),Ue.select("path").call(re).call(T),Ue.exit().remove();var Ne=ce(W.gauge.bar.thickness),ze=fe.selectAll("g.value-arc").data([W.gauge.bar]);ze.enter().append("g").classed("value-arc",!0).append("path");var $e=ze.select("path");x(J)?($e.transition().duration(J.duration).ease(J.easing).each("end",function(){oe&&oe()}).each("interrupt",function(){oe&&oe()}).attrTween("d",L(Ne,ne(U[0].lastY),ne(U[0].y))),W._lastValue=U[0].y):$e.attr("d",typeof U[0].y=="number"?Ne.endAngle(ne(U[0].y)):"M0,0Z"),$e.call(T),ze.exit().remove(),Ie=[];var st=W.gauge.threshold.value;(st||st===0)&&Ie.push({range:[st,st],color:W.gauge.threshold.color,line:{color:W.gauge.threshold.line.color,width:W.gauge.threshold.line.width},thickness:W.gauge.threshold.thickness});var vt=fe.selectAll("g.threshold-arc").data(Ie);vt.enter().append("g").classed("threshold-arc",!0).append("path"),vt.select("path").call(re).call(T),vt.exit().remove();var at=fe.selectAll("g.gauge-outline").data([ae]);at.enter().append("g").classed("gauge-outline",!0).append("path"),at.select("path").call(re).call(T),at.exit().remove()}function R(B,G,U,H){var W=U[0].trace,V=H.numbersX,$=H.numbersY,Z=W.align||"center",q=E[Z],ae=H.transitionOpts,ie=H.onComplete,fe=C.ensureSingle(G,"g","numbers"),Q,J,oe,K=[];W._hasNumber&&K.push("number"),W._hasDelta&&(K.push("delta"),W.delta.position==="left"&&K.reverse());var ne=fe.selectAll("text").data(K);ne.enter().append("text"),ne.attr("text-anchor",function(){return q}).attr("class",function(Te){return Te}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),ne.exit().remove();function ce(Te,Ae,be,Ie){if(Te.match("s")&&be>=0!=Ie>=0&&!Ae(be).slice(-1).match(c)&&!Ae(Ie).slice(-1).match(c)){var Ue=Te.slice().replace("s","f").replace(/\d+/,function(ze){return parseInt(ze)-1}),Ne=P(B,{tickformat:Ue});return function(ze){return Math.abs(ze)<1?h.tickText(Ne,ze).text:Ae(ze)}}else return Ae}function re(){var Te=P(B,{tickformat:W.number.valueformat},W._range);Te.setScale(),h.prepTicks(Te);var Ae=function(ze){return h.tickText(Te,ze).text},be=W.number.suffix,Ie=W.number.prefix,Ue=fe.select("text.number");function Ne(){var ze=typeof U[0].y=="number"?Ie+Ae(U[0].y)+be:"-";Ue.text(ze).call(n.font,W.number.font).call(o.convertToTspans,B)}return x(ae)?Ue.transition().duration(ae.duration).ease(ae.easing).each("end",function(){Ne(),ie&&ie()}).each("interrupt",function(){Ne(),ie&&ie()}).attrTween("text",function(){var ze=l.select(this),$e=i(U[0].lastY,U[0].y);W._lastValue=U[0].y;var st=ce(W.number.valueformat,Ae,U[0].lastY,U[0].y);return function(vt){ze.text(Ie+st($e(vt))+be)}}):Ne(),Q=I(Ie+Ae(U[0].y)+be,W.number.font,q,B),Ue}function ee(){var Te=P(B,{tickformat:W.delta.valueformat},W._range);Te.setScale(),h.prepTicks(Te);var Ae=function(vt){return h.tickText(Te,vt).text},be=W.delta.suffix,Ie=W.delta.prefix,Ue=function(vt){var at=W.delta.relative?vt.relativeDelta:vt.delta;return at},Ne=function(vt,at){return vt===0||typeof vt!="number"||isNaN(vt)?"-":(vt>0?W.delta.increasing.symbol:W.delta.decreasing.symbol)+Ie+at(vt)+be},ze=function(vt){return vt.delta>=0?W.delta.increasing.color:W.delta.decreasing.color};W._deltaLastValue===void 0&&(W._deltaLastValue=Ue(U[0]));var $e=fe.select("text.delta");$e.call(n.font,W.delta.font).call(p.fill,ze({delta:W._deltaLastValue}));function st(){$e.text(Ne(Ue(U[0]),Ae)).call(p.fill,ze(U[0])).call(o.convertToTspans,B)}return x(ae)?$e.transition().duration(ae.duration).ease(ae.easing).tween("text",function(){var vt=l.select(this),at=Ue(U[0]),nt=W._deltaLastValue,mt=ce(W.delta.valueformat,Ae,nt,at),rt=i(nt,at);return W._deltaLastValue=at,function(lt){vt.text(Ne(rt(lt),mt)),vt.call(p.fill,ze({delta:rt(lt)}))}}).each("end",function(){st(),ie&&ie()}).each("interrupt",function(){st(),ie&&ie()}):st(),J=I(Ne(Ue(U[0]),Ae),W.delta.font,q,B),$e}var de=W.mode+W.align,le;if(W._hasDelta&&(le=ee(),de+=W.delta.position+W.delta.font.size+W.delta.font.family+W.delta.valueformat,de+=W.delta.increasing.symbol+W.delta.decreasing.symbol,oe=J),W._hasNumber&&(re(),de+=W.number.font.size+W.number.font.family+W.number.valueformat+W.number.suffix+W.number.prefix,oe=Q),W._hasDelta&&W._hasNumber){var he=[(Q.left+Q.right)/2,(Q.top+Q.bottom)/2],xe=[(J.left+J.right)/2,(J.top+J.bottom)/2],Ee,Se,ke=.75*W.delta.font.size;W.delta.position==="left"&&(Ee=N(W,"deltaPos",0,-1*(Q.width*g[W.align]+J.width*(1-g[W.align])+ke),de,Math.min),Se=he[1]-xe[1],oe={width:Q.width+J.width+ke,height:Math.max(Q.height,J.height),left:J.left+Ee,right:Q.right,top:Math.min(Q.top,J.top+Se),bottom:Math.max(Q.bottom,J.bottom+Se)}),W.delta.position==="right"&&(Ee=N(W,"deltaPos",0,Q.width*(1-g[W.align])+J.width*g[W.align]+ke,de,Math.max),Se=he[1]-xe[1],oe={width:Q.width+J.width+ke,height:Math.max(Q.height,J.height),left:Q.left,right:J.right+Ee,top:Math.min(Q.top,J.top+Se),bottom:Math.max(Q.bottom,J.bottom+Se)}),W.delta.position==="bottom"&&(Ee=null,Se=J.height,oe={width:Math.max(Q.width,J.width),height:Q.height+J.height,left:Math.min(Q.left,J.left),right:Math.max(Q.right,J.right),top:Q.bottom-Q.height,bottom:Q.bottom+J.height}),W.delta.position==="top"&&(Ee=null,Se=Q.top,oe={width:Math.max(Q.width,J.width),height:Q.height+J.height,left:Math.min(Q.left,J.left),right:Math.max(Q.right,J.right),top:Q.bottom-Q.height-J.height,bottom:Q.bottom}),le.attr({dx:Ee,dy:Se})}(W._hasNumber||W._hasDelta)&&fe.attr("transform",function(){var Te=H.numbersScaler(oe);de+=Te[2];var Ae=N(W,"numbersScale",1,Te[0],de,Math.min),be;W._scaleNumbers||(Ae=1),W._isAngular?be=$-Ae*oe.bottom:be=$-Ae*(oe.top+oe.bottom)/2,W._numbersTop=Ae*oe.top+be;var Ie=oe[Z];Z==="center"&&(Ie=(oe.left+oe.right)/2);var Ue=V-Ae*Ie;return Ue=N(W,"numbersTranslate",0,Ue,de,Math.max),v(Ue,be)+w(Ae)})}function T(B){B.each(function(G){p.stroke(l.select(this),G.line.color)}).each(function(G){p.fill(l.select(this),G.color)}).style("stroke-width",function(G){return G.line.width})}function L(B,G,U){return function(){var H=S(G,U);return function(W){return B.endAngle(H(W))()}}}function P(B,G,U){var H=B._fullLayout,W=C.extendFlat({type:"linear",ticks:"outside",range:U,showline:!0},G),V={type:"linear",_id:"x"+G._id},$={letter:"x",font:H.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function Z(q,ae){return C.coerce(W,V,b,q,ae)}return f(W,V,Z,$,H),u(W,V,Z,$),V}function d(B,G,U){var H=Math.min(G/B.width,U/B.height);return[H,B,G+"x"+U]}function k(B,G){var U=Math.sqrt(B.width/2*(B.width/2)+B.height*B.height),H=G/U;return[H,B,G]}function I(B,G,U,H){var W=document.createElementNS("http://www.w3.org/2000/svg","text"),V=l.select(W);return V.text(B).attr("x",0).attr("y",0).attr("text-anchor",U).attr("data-unformatted",B).call(o.convertToTspans,H).call(n.font,G),n.bBox(V.node())}function N(B,G,U,H,W,V){var $="_cache"+G;B[$]&&B[$].key===W||(B[$]={key:W,value:U});var Z=C.aggNums(V,null,[B[$].value,H],2);return B[$].value=Z,Z}},50048:function(D,O,t){var l=t(49084),S=t(29736).axisHoverFormat,i=t(21776).Ks,C=t(52948),w=t(45464),v=t(92880).extendFlat,m=t(67824).overrideAll;function a(o){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function n(o){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var s=D.exports=m(v({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:a(),y:a(),z:a()},caps:{x:n(),y:n(),z:n()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),valuehoverformat:S("value",1),showlegend:v({},w.showlegend,{dflt:!1})},l("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:C.opacity,lightposition:C.lightposition,lighting:C.lighting,flatshading:C.flatshading,contour:C.contour,hoverinfo:v({},w.hoverinfo)}),"calc","nested");s.flatshading.dflt=!0,s.lighting.facenormalsepsilon.dflt=0,s.x.editType=s.y.editType=s.z.editType=s.value.editType="calc+clearAxisTypes",s.transforms=void 0},62624:function(D,O,t){var l=t(47128),S=t(3832).processGrid,i=t(3832).filter;D.exports=function(w,v){v._len=Math.min(v.x.length,v.y.length,v.z.length,v.value.length),v._x=i(v.x,v._len),v._y=i(v.y,v._len),v._z=i(v.z,v._len),v._value=i(v.value,v._len);var m=S(v);v._gridFill=m.fill,v._Xs=m.Xs,v._Ys=m.Ys,v._Zs=m.Zs,v._len=m.len;for(var a=1/0,n=-1/0,s=0;s0;b--){var p=Math.min(u[b],u[b-1]),E=Math.max(u[b],u[b-1]);if(E>p&&p-1}function ee(Ke,We){return Ke===null?We:Ke}function de(Ke,We,Fe){ae();var Me=[We],we=[Fe];if(K>=1)Me=[We],we=[Fe];else if(K>0){var Re=ce(We,Fe);Me=Re.xyzv,we=Re.abc}for(var Pe=0;Pe-1?Fe[Je]:q(ot,yt,ut);Vt>-1?Ve[Je]=Vt:Ve[Je]=fe(ot,yt,ut,ee(Ke,It))}Q(Ve[0],Ve[1],Ve[2])}}function le(Ke,We,Fe){var Me=function(we,Re,Pe){de(Ke,[We[we],We[Re],We[Pe]],[Fe[we],Fe[Re],Fe[Pe]])};Me(0,1,2),Me(2,3,0)}function he(Ke,We,Fe){var Me=function(we,Re,Pe){de(Ke,[We[we],We[Re],We[Pe]],[Fe[we],Fe[Re],Fe[Pe]])};Me(0,1,2),Me(3,0,1),Me(2,3,0),Me(1,2,3)}function xe(Ke,We,Fe,Me){var we=Ke[3];weMe&&(we=Me);for(var Re=(Ke[3]-we)/(Ke[3]-We[3]+1e-9),Pe=[],Ve=0;Ve<4;Ve++)Pe[Ve]=(1-Re)*Ke[Ve]+Re*We[Ve];return Pe}function Ee(Ke,We,Fe){return Ke>=We&&Ke<=Fe}function Se(Ke){var We=.001*(H-U);return Ke>=U-We&&Ke<=H+We}function ke(Ke){for(var We=[],Fe=0;Fe<4;Fe++){var Me=Ke[Fe];We.push([f._x[Me],f._y[Me],f._z[Me],f._value[Me]])}return We}var Te=3;function Ae(Ke,We,Fe,Me,we,Re){Re||(Re=1),Fe=[-1,-1,-1];var Pe=!1,Ve=[Ee(We[0][3],Me,we),Ee(We[1][3],Me,we),Ee(We[2][3],Me,we)];if(!Ve[0]&&!Ve[1]&&!Ve[2])return!1;var Je=function(yt,ut,It){return Se(ut[0][3])&&Se(ut[1][3])&&Se(ut[2][3])?(de(yt,ut,It),!0):ReVe?[B,Re]:[Re,G];rt(We,Je[0],Je[1])}}var ot=[[Math.min(U,G),Math.max(U,G)],[Math.min(B,H),Math.max(B,H)]];["x","y","z"].forEach(function(yt){for(var ut=[],It=0;It0&&(Tt.push(xr.id),yt==="x"?Kt.push([xr.distRatio,0,0]):yt==="y"?Kt.push([0,xr.distRatio,0]):Kt.push([0,0,xr.distRatio]))}else yt==="x"?dr=et(1,P-1):yt==="y"?dr=et(1,d-1):dr=et(1,k-1);Tt.length>0&&(yt==="x"?ut[Vt]=lt(Ke,Tt,xt,Lt,Kt,ut[Vt]):yt==="y"?ut[Vt]=dt(Ke,Tt,xt,Lt,Kt,ut[Vt]):ut[Vt]=wt(Ke,Tt,xt,Lt,Kt,ut[Vt]),Vt++),dr.length>0&&(yt==="x"?ut[Vt]=st(Ke,dr,xt,Lt,ut[Vt]):yt==="y"?ut[Vt]=vt(Ke,dr,xt,Lt,ut[Vt]):ut[Vt]=at(Ke,dr,xt,Lt,ut[Vt]),Vt++)}var sr=f.caps[yt];sr.show&&sr.fill&&(ne(sr.fill),yt==="x"?ut[Vt]=st(Ke,[0,P-1],xt,Lt,ut[Vt]):yt==="y"?ut[Vt]=vt(Ke,[0,d-1],xt,Lt,ut[Vt]):ut[Vt]=at(Ke,[0,k-1],xt,Lt,ut[Vt]),Vt++)}}),x===0&&ie(),f._meshX=W,f._meshY=V,f._meshZ=$,f._meshIntensity=Z,f._Xs=R,f._Ys=T,f._Zs=L}return Ye(),f}function h(f,u){var b=f.glplot.gl,p=l({gl:b}),E=new a(f,p,u.uid);return p._trace=E,E.update(u),f.glplot.add(p),E}D.exports={findNearestOnAxis:m,generateIsoMeshes:o,createIsosurfaceTrace:h}},70548:function(D,O,t){var l=t(3400),S=t(24040),i=t(50048),C=t(27260);function w(m,a,n,s){function o(h,f){return l.coerce(m,a,i,h,f)}v(m,a,n,s,o)}function v(m,a,n,s,o){var h=o("isomin"),f=o("isomax");f!=null&&h!==void 0&&h!==null&&h>f&&(a.isomin=null,a.isomax=null);var u=o("x"),b=o("y"),p=o("z"),E=o("value");if(!u||!u.length||!b||!b.length||!p||!p.length||!E||!E.length){a.visible=!1;return}var g=S.getComponentMethod("calendars","handleTraceDefaults");g(m,a,["x","y","z"],s),o("valuehoverformat"),["x","y","z"].forEach(function(M){o(M+"hoverformat");var R="caps."+M,T=o(R+".show");T&&o(R+".fill");var L="slices."+M,P=o(L+".show");P&&(o(L+".fill"),o(L+".locations"))});var c=o("spaceframe.show");c&&o("spaceframe.fill");var x=o("surface.show");x&&(o("surface.count"),o("surface.fill"),o("surface.pattern"));var A=o("contour.show");A&&(o("contour.color"),o("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(M){o(M)}),C(m,a,s,o,{prefix:"",cLetter:"c"}),a._length=null}D.exports={supplyDefaults:w,supplyIsoDefaults:v}},6296:function(D,O,t){D.exports={attributes:t(50048),supplyDefaults:t(70548).supplyDefaults,calc:t(62624),colorbar:{min:"cmin",max:"cmax"},plot:t(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:t(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(D,O,t){var l=t(49084),S=t(29736).axisHoverFormat,i=t(21776).Ks,C=t(16716),w=t(45464),v=t(92880).extendFlat;D.exports=v({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},l("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:C.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:v({},C.contours.x.show,{}),color:C.contours.x.color,width:C.contours.x.width,editType:"calc"},lightposition:{x:v({},C.lightposition.x,{dflt:1e5}),y:v({},C.lightposition.y,{dflt:1e5}),z:v({},C.lightposition.z,{dflt:0}),editType:"calc"},lighting:v({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},C.lighting),hoverinfo:v({},w.hoverinfo,{editType:"calc"}),showlegend:v({},w.showlegend,{dflt:!1})})},1876:function(D,O,t){var l=t(47128);D.exports=function(i,C){C.intensity&&l(i,C,{vals:C.intensity,containerStr:"",cLetter:"c"})}},576:function(D,O,t){var l=t(67792).gl_mesh3d,S=t(67792).delaunay_triangulate,i=t(67792).alpha_shape,C=t(67792).convex_hull,w=t(33040).parseColorScale,v=t(3400).isArrayOrTypedArray,m=t(43080),a=t(8932).extractOpts,n=t(52094);function s(g,c,x){this.scene=g,this.uid=x,this.mesh=c,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var o=s.prototype;o.handlePick=function(g){if(g.object===this.mesh){var c=g.index=g.data.index;g.data._cellCenter?g.traceCoordinate=g.data.dataCoordinate:g.traceCoordinate=[this.data.x[c],this.data.y[c],this.data.z[c]];var x=this.data.hovertext||this.data.text;return v(x)&&x[c]!==void 0?g.textLabel=x[c]:x&&(g.textLabel=x),!0}};function h(g){for(var c=[],x=g.length,A=0;A=c-.5)return!1;return!0}o.update=function(g){var c=this.scene,x=c.fullSceneLayout;this.data=g;var A=g.x.length,M=n(f(x.xaxis,g.x,c.dataScale[0],g.xcalendar),f(x.yaxis,g.y,c.dataScale[1],g.ycalendar),f(x.zaxis,g.z,c.dataScale[2],g.zcalendar)),R;if(g.i&&g.j&&g.k){if(g.i.length!==g.j.length||g.j.length!==g.k.length||!p(g.i,A)||!p(g.j,A)||!p(g.k,A))return;R=n(u(g.i),u(g.j),u(g.k))}else g.alphahull===0?R=C(M):g.alphahull>0?R=i(g.alphahull,M):R=b(g.delaunayaxis,M);var T={positions:M,cells:R,lightPosition:[g.lightposition.x,g.lightposition.y,g.lightposition.z],ambient:g.lighting.ambient,diffuse:g.lighting.diffuse,specular:g.lighting.specular,roughness:g.lighting.roughness,fresnel:g.lighting.fresnel,vertexNormalsEpsilon:g.lighting.vertexnormalsepsilon,faceNormalsEpsilon:g.lighting.facenormalsepsilon,opacity:g.opacity,contourEnable:g.contour.show,contourColor:m(g.contour.color).slice(0,3),contourWidth:g.contour.width,useFacetNormals:g.flatshading};if(g.intensity){var L=a(g);this.color="#fff";var P=g.intensitymode;T[P+"Intensity"]=g.intensity,T[P+"IntensityBounds"]=[L.min,L.max],T.colormap=w(g)}else g.vertexcolor?(this.color=g.vertexcolor[0],T.vertexColors=h(g.vertexcolor)):g.facecolor?(this.color=g.facecolor[0],T.cellColors=h(g.facecolor)):(this.color=g.color,T.meshColor=m(g.color));this.mesh.update(T)},o.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function E(g,c){var x=g.glplot.gl,A=l({gl:x}),M=new s(g,A,c.uid);return A._trace=M,M.update(c),g.glplot.add(A),M}D.exports=E},74212:function(D,O,t){var l=t(24040),S=t(3400),i=t(27260),C=t(52948);D.exports=function(v,m,a,n){function s(b,p){return S.coerce(v,m,C,b,p)}function o(b){var p=b.map(function(E){var g=s(E);return g&&S.isArrayOrTypedArray(g)?g:null});return p.every(function(E){return E&&E.length===p[0].length})&&p}var h=o(["x","y","z"]);if(!h){m.visible=!1;return}if(o(["i","j","k"]),m.i&&(!m.j||!m.k)||m.j&&(!m.k||!m.i)||m.k&&(!m.i||!m.j)){m.visible=!1;return}var f=l.getComponentMethod("calendars","handleTraceDefaults");f(v,m,["x","y","z"],n),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(b){s(b)});var u=s("contour.show");u&&(s("contour.color"),s("contour.width")),"intensity"in v?(s("intensity"),s("intensitymode"),i(v,m,n,s,{prefix:"",cLetter:"c"})):(m.showscale=!1,"facecolor"in v?s("facecolor"):"vertexcolor"in v?s("vertexcolor"):s("color",a)),s("text"),s("hovertext"),s("hovertemplate"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),m._length=null}},7404:function(D,O,t){D.exports={attributes:t(52948),supplyDefaults:t(74212),calc:t(1876),colorbar:{min:"cmin",max:"cmax"},plot:t(576),moduleType:"trace",name:"mesh3d",basePlotModule:t(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(D,O,t){var l=t(3400).extendFlat,S=t(52904),i=t(29736).axisHoverFormat,C=t(98192).u,w=t(55756),v=t(48164),m=v.INCREASING.COLOR,a=v.DECREASING.COLOR,n=S.line;function s(o){return{line:{color:l({},n.color,{dflt:o}),width:n.width,dash:C,editType:"style"},editType:"style"}}D.exports={xperiod:S.xperiod,xperiod0:S.xperiod0,xperiodalignment:S.xperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:l({},n.width,{}),dash:l({},C,{}),editType:"style"},increasing:s(m),decreasing:s(a),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:l({},w.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}})}},42812:function(D,O,t){var l=t(3400),S=l._,i=t(54460),C=t(1220),w=t(39032).BADNUM;function v(s,o){var h=i.getFromId(s,o.xaxis),f=i.getFromId(s,o.yaxis),u=n(s,h,o),b=o._minDiff;o._minDiff=null;var p=o._origX;o._origX=null;var E=o._xcalc;o._xcalc=null;var g=a(s,o,p,E,f,m);return o._extremes[h._id]=i.findExtremes(h,E,{vpad:b/2}),g.length?(l.extendFlat(g[0].t,{wHover:b/2,tickLen:u}),g):[{t:{empty:!0}}]}function m(s,o,h,f){return{o:s,h:o,l:h,c:f}}function a(s,o,h,f,u,b){for(var p=u.makeCalcdata(o,"open"),E=u.makeCalcdata(o,"high"),g=u.makeCalcdata(o,"low"),c=u.makeCalcdata(o,"close"),x=l.isArrayOrTypedArray(o.text),A=l.isArrayOrTypedArray(o.hovertext),M=!0,R=null,T=!!o.xperiodalignment,L=[],P=0;PR):M=B>k,R=B;var G=b(k,I,N,B);G.pos=d,G.yc=(k+B)/2,G.i=P,G.dir=M?"increasing":"decreasing",G.x=G.pos,G.y=[N,I],T&&(G.orig_p=h[P]),x&&(G.tx=o.text[P]),A&&(G.htx=o.hovertext[P]),L.push(G)}else L.push({pos:d,empty:!0})}return o._extremes[u._id]=i.findExtremes(u,l.concat(g,E),{padded:!0}),L.length&&(L[0].t={labels:{open:S(s,"open:")+" ",high:S(s,"high:")+" ",low:S(s,"low:")+" ",close:S(s,"close:")+" "}}),L}function n(s,o,h){var f=h._minDiff;if(!f){var u=s._fullData,b=[];f=1/0;var p;for(p=0;p"+c.labels[B]+l.hoverLabelText(E,G,g.yhoverformat)):(H=S.extendFlat({},A),H.y0=H.y1=U,H.yLabelVal=G,H.yLabel=c.labels[B]+l.hoverLabelText(E,G,g.yhoverformat),H.name="",x.push(H),I[G]=H)}return x}function o(h,f,u,b){var p=h.cd,E=h.ya,g=p[0].trace,c=p[0].t,x=n(h,f,u,b);if(!x)return[];var A=x.index,M=p[A],R=x.index=M.i,T=M.dir;function L(G){return c.labels[G]+l.hoverLabelText(E,g[G][R],g.yhoverformat)}var P=M.hi||g.hoverinfo,d=P.split("+"),k=P==="all",I=k||d.indexOf("y")!==-1,N=k||d.indexOf("text")!==-1,B=I?[L("open"),L("high"),L("low"),L("close")+" "+m[T]]:[];return N&&w(M,g,B),x.extraText=B.join("
"),x.y0=x.y1=E.c2p(M.yc,!0),[x]}D.exports={hoverPoints:a,hoverSplit:s,hoverOnPoints:o}},65456:function(D,O,t){D.exports={moduleType:"trace",name:"ohlc",basePlotModule:t(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:t(20279),supplyDefaults:t(23860),calc:t(42812).calc,plot:t(36664),style:t(14008),hoverPoints:t(18720).hoverPoints,selectPoints:t(97384)}},52744:function(D,O,t){var l=t(24040),S=t(3400);D.exports=function(C,w,v,m){var a=v("x"),n=v("open"),s=v("high"),o=v("low"),h=v("close");v("hoverlabel.split");var f=l.getComponentMethod("calendars","handleTraceDefaults");if(f(C,w,["x"],m),!!(n&&s&&o&&h)){var u=Math.min(n.length,s.length,o.length,h.length);return a&&(u=Math.min(u,S.minRowLength(a))),w._length=u,u}}},36664:function(D,O,t){var l=t(33428),S=t(3400);D.exports=function(C,w,v,m){var a=w.yaxis,n=w.xaxis,s=!!n.rangebreaks;S.makeTraceGroups(m,v,"trace ohlc").each(function(o){var h=l.select(this),f=o[0],u=f.t,b=f.trace;if(b.visible!==!0||u.empty){h.remove();return}var p=u.tickLen,E=h.selectAll("path").data(S.identity);E.enter().append("path"),E.exit().remove(),E.attr("d",function(g){if(g.empty)return"M0,0Z";var c=n.c2p(g.pos-p,!0),x=n.c2p(g.pos+p,!0),A=s?(c+x)/2:n.c2p(g.pos,!0),M=a.c2p(g.o,!0),R=a.c2p(g.h,!0),T=a.c2p(g.l,!0),L=a.c2p(g.c,!0);return"M"+c+","+M+"H"+A+"M"+A+","+R+"V"+T+"M"+x+","+L+"H"+A})})}},97384:function(D){D.exports=function(t,l){var S=t.cd,i=t.xaxis,C=t.yaxis,w=[],v,m=S[0].t.bPos||0;if(l===!1)for(v=0;v=g.length||c[g[x]]!==void 0)return!1;c[g[x]]=!0}return!0}},76671:function(D,O,t){var l=t(3400),S=t(94288).hasColorscale,i=t(27260),C=t(86968).Q,w=t(51272),v=t(72140),m=t(26284),a=t(38116).isTypedArraySpec;function n(o,h,f,u,b){b("line.shape"),b("line.hovertemplate");var p=b("line.color",u.colorway[0]);if(S(o,"line")&&l.isArrayOrTypedArray(p)){if(p.length)return b("line.colorscale"),i(o,h,u,b,{prefix:"line.",cLetter:"c"}),p.length;h.line.color=f}return 1/0}function s(o,h){function f(x,A){return l.coerce(o,h,v.dimensions,x,A)}var u=f("values"),b=f("visible");if(u&&u.length||(b=h.visible=!1),b){f("label"),f("displayindex",h._index);var p=o.categoryarray,E=l.isArrayOrTypedArray(p)&&p.length>0||a(p),g;E&&(g="array");var c=f("categoryorder",g);c==="array"?(f("categoryarray"),f("ticktext")):(delete o.categoryarray,delete o.ticktext),!E&&c==="array"&&(h.categoryorder="trace")}}D.exports=function(h,f,u,b){function p(A,M){return l.coerce(h,f,v,A,M)}var E=w(h,f,{name:"dimensions",handleItemDefaults:s}),g=n(h,f,u,b,p);C(f,b,p),(!Array.isArray(E)||!E.length)&&(f.visible=!1),m(f,E,"values",g),p("hoveron"),p("hovertemplate"),p("arrangement"),p("bundlecolors"),p("sortpaths"),p("counts");var c={family:b.font.family,size:Math.round(b.font.size),color:b.font.color};l.coerceFont(p,"labelfont",c);var x={family:b.font.family,size:Math.round(b.font.size/1.2),color:b.font.color};l.coerceFont(p,"tickfont",x)}},22020:function(D,O,t){D.exports={attributes:t(72140),supplyDefaults:t(76671),calc:t(69136),plot:t(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:t(91800),categories:["noOpacity"],meta:{}}},51036:function(D,O,t){var l=t(33428),S=t(67756).Gz,i=t(36424),C=t(93024),w=t(3400),v=w.strTranslate,m=t(43616),a=t(49760),n=t(72736);function s(K,ne,ce,re){var ee=ne._context.staticPlot,de=K.map(ie.bind(0,ne,ce)),le=re.selectAll("g.parcatslayer").data([null]);le.enter().append("g").attr("class","parcatslayer").style("pointer-events",ee?"none":"all");var he=le.selectAll("g.trace.parcats").data(de,o),xe=he.enter().append("g").attr("class","trace parcats");he.attr("transform",function($e){return v($e.x,$e.y)}),xe.append("g").attr("class","paths");var Ee=he.select("g.paths"),Se=Ee.selectAll("path.path").data(function($e){return $e.paths},o);Se.attr("fill",function($e){return $e.model.color});var ke=Se.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function($e){return $e.model.color}).attr("fill-opacity",0);c(ke),Se.attr("d",function($e){return $e.svgD}),ke.empty()||Se.sort(f),Se.exit().remove(),Se.on("mouseover",u).on("mouseout",b).on("click",g),xe.append("g").attr("class","dimensions");var Te=he.select("g.dimensions"),Ae=Te.selectAll("g.dimension").data(function($e){return $e.dimensions},o);Ae.enter().append("g").attr("class","dimension"),Ae.attr("transform",function($e){return v($e.x,0)}),Ae.exit().remove();var be=Ae.selectAll("g.category").data(function($e){return $e.categories},o),Ie=be.enter().append("g").attr("class","category");be.attr("transform",function($e){return v(0,$e.y)}),Ie.append("rect").attr("class","catrect").attr("pointer-events","none"),be.select("rect.catrect").attr("fill","none").attr("width",function($e){return $e.width}).attr("height",function($e){return $e.height}),M(Ie);var Ue=be.selectAll("rect.bandrect").data(function($e){return $e.bands},o);Ue.each(function(){w.raiseToTop(this)}),Ue.attr("fill",function($e){return $e.color});var Ne=Ue.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function($e){return $e.color}).attr("fill-opacity",0);Ue.attr("fill",function($e){return $e.color}).attr("width",function($e){return $e.width}).attr("height",function($e){return $e.height}).attr("y",function($e){return $e.y}).attr("cursor",function($e){return $e.parcatsViewModel.arrangement==="fixed"?"default":$e.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),T(Ne),Ue.exit().remove(),Ie.append("text").attr("class","catlabel").attr("pointer-events","none");var ze=ne._fullLayout.paper_bgcolor;be.select("text.catlabel").attr("text-anchor",function($e){return h($e)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",n.makeTextShadow(ze)).style("fill","rgb(0, 0, 0)").attr("x",function($e){return h($e)?$e.width+5:-5}).attr("y",function($e){return $e.height/2}).text(function($e){return $e.model.categoryLabel}).each(function($e){m.font(l.select(this),$e.parcatsViewModel.categorylabelfont),n.convertToTspans(l.select(this),ne)}),Ie.append("text").attr("class","dimlabel"),be.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function($e){return $e.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function($e){return $e.width/2}).attr("y",-5).text(function($e,st){return st===0?$e.parcatsViewModel.model.dimensions[$e.model.dimensionInd].dimensionLabel:null}).each(function($e){m.font(l.select(this),$e.parcatsViewModel.labelfont)}),be.selectAll("rect.bandrect").on("mouseover",U).on("mouseout",H),be.exit().remove(),Ae.call(l.behavior.drag().origin(function($e){return{x:$e.x,y:0}}).on("dragstart",W).on("drag",V).on("dragend",$)),he.each(function($e){$e.traceSelection=l.select(this),$e.pathSelection=l.select(this).selectAll("g.paths").selectAll("path.path"),$e.dimensionSelection=l.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),he.exit().remove()}D.exports=function(K,ne,ce,re){s(ce,K,re,ne)};function o(K){return K.key}function h(K){var ne=K.parcatsViewModel.dimensions.length,ce=K.parcatsViewModel.dimensions[ne-1].model.dimensionInd;return K.model.dimensionInd===ce}function f(K,ne){return K.model.rawColor>ne.model.rawColor?1:K.model.rawColor"),at=l.mouse(ee)[0];C.loneHover({trace:de,x:be-he.left+xe.left,y:Ie-he.top+xe.top,text:vt,color:K.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Ue,idealAlign:at1&&Ee.displayInd===xe.dimensions.length-1?(Te=le.left,Ae="left"):(Te=le.left+le.width,Ae="right");var be=he.model.count,Ie=he.model.categoryLabel,Ue=be/he.parcatsViewModel.model.count,Ne={countLabel:be,categoryLabel:Ie,probabilityLabel:Ue.toFixed(3)},ze=[];he.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ze.push(["Count:",Ne.countLabel].join(" ")),he.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ze.push(["P("+Ne.categoryLabel+"):",Ne.probabilityLabel].join(" "));var $e=ze.join("
");return{trace:Se,x:re*(Te-ne.left),y:ee*(ke-ne.top),text:$e,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:Ae,hovertemplate:Se.hovertemplate,hovertemplateLabels:Ne,eventData:[{data:Se._input,fullData:Se,count:be,category:Ie,probability:Ue}]}}function B(K,ne,ce){var re=[];return l.select(ce.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var ee=this;re.push(N(K,ne,ee))}),re}function G(K,ne,ce){K._fullLayout._calcInverseTransform(K);var re=K._fullLayout._invScaleX,ee=K._fullLayout._invScaleY,de=ce.getBoundingClientRect(),le=l.select(ce).datum(),he=le.categoryViewModel,xe=he.parcatsViewModel,Ee=xe.model.dimensions[he.model.dimensionInd],Se=xe.trace,ke=de.y+de.height/2,Te,Ae;xe.dimensions.length>1&&Ee.displayInd===xe.dimensions.length-1?(Te=de.left,Ae="left"):(Te=de.left+de.width,Ae="right");var be=he.model.categoryLabel,Ie=le.parcatsViewModel.model.count,Ue=0;le.categoryViewModel.bands.forEach(function(lt){lt.color===le.color&&(Ue+=lt.count)});var Ne=he.model.count,ze=0;xe.pathSelection.each(function(lt){lt.model.color===le.color&&(ze+=lt.model.count)});var $e=Ue/Ie,st=Ue/ze,vt=Ue/Ne,at={countLabel:Ie,categoryLabel:be,probabilityLabel:$e.toFixed(3)},nt=[];he.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&nt.push(["Count:",at.countLabel].join(" ")),he.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(nt.push("P(color ∩ "+be+"): "+at.probabilityLabel),nt.push("P("+be+" | color): "+st.toFixed(3)),nt.push("P(color | "+be+"): "+vt.toFixed(3)));var mt=nt.join("
"),rt=a.mostReadable(le.color,["black","white"]);return{trace:Se,x:re*(Te-ne.left),y:ee*(ke-ne.top),text:mt,color:le.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:rt,fontSize:10,idealAlign:Ae,hovertemplate:Se.hovertemplate,hovertemplateLabels:at,eventData:[{data:Se._input,fullData:Se,category:be,count:Ie,probability:$e,categorycount:Ne,colorcount:ze,bandcolorcount:Ue}]}}function U(K){if(!K.parcatsViewModel.dragDimension&&K.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var ne=l.mouse(this)[1];if(ne<-1)return;var ce=K.parcatsViewModel.graphDiv,re=ce._fullLayout,ee=re._paperdiv.node().getBoundingClientRect(),de=K.parcatsViewModel.hoveron,le=this;if(de==="color"?(d(le),I(le,"plotly_hover",l.event)):(P(le),k(le,"plotly_hover",l.event)),K.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var he;de==="category"?he=N(ce,ee,le):de==="color"?he=G(ce,ee,le):de==="dimension"&&(he=B(ce,ee,le)),he&&C.loneHover(he,{container:re._hoverlayer.node(),outerContainer:re._paper.node(),gd:ce})}}}function H(K){var ne=K.parcatsViewModel;if(!ne.dragDimension&&(c(ne.pathSelection),M(ne.dimensionSelection.selectAll("g.category")),T(ne.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),C.loneUnhover(ne.graphDiv._fullLayout._hoverlayer.node()),ne.pathSelection.sort(f),ne.hoverinfoItems.indexOf("skip")===-1)){var ce=K.parcatsViewModel.hoveron,re=this;ce==="color"?I(re,"plotly_unhover",l.event):k(re,"plotly_unhover",l.event)}}function W(K){K.parcatsViewModel.arrangement!=="fixed"&&(K.dragDimensionDisplayInd=K.model.displayInd,K.initialDragDimensionDisplayInds=K.parcatsViewModel.model.dimensions.map(function(ne){return ne.displayInd}),K.dragHasMoved=!1,K.dragCategoryDisplayInd=null,l.select(this).selectAll("g.category").select("rect.catrect").each(function(ne){var ce=l.mouse(this)[0],re=l.mouse(this)[1];-2<=ce&&ce<=ne.width+2&&-2<=re&&re<=ne.height+2&&(K.dragCategoryDisplayInd=ne.model.displayInd,K.initialDragCategoryDisplayInds=K.model.categories.map(function(ee){return ee.displayInd}),ne.model.dragY=ne.y,w.raiseToTop(this.parentNode),l.select(this.parentNode).selectAll("rect.bandrect").each(function(ee){ee.ySe.y+Se.height/2&&(de.model.displayInd=Se.model.displayInd,Se.model.displayInd=he),K.dragCategoryDisplayInd=de.model.displayInd}if(K.dragCategoryDisplayInd===null||K.parcatsViewModel.arrangement==="freeform"){ee.model.dragX=l.event.x;var ke=K.parcatsViewModel.dimensions[ce],Te=K.parcatsViewModel.dimensions[re];ke!==void 0&&ee.model.dragXTe.x&&(ee.model.displayInd=Te.model.displayInd,Te.model.displayInd=K.dragDimensionDisplayInd),K.dragDimensionDisplayInd=ee.model.displayInd}J(K.parcatsViewModel),Q(K.parcatsViewModel),ae(K.parcatsViewModel),q(K.parcatsViewModel)}}function $(K){if(K.parcatsViewModel.arrangement!=="fixed"&&K.dragDimensionDisplayInd!==null){l.select(this).selectAll("text").attr("font-weight","normal");var ne={},ce=Z(K.parcatsViewModel),re=K.parcatsViewModel.model.dimensions.map(function(Te){return Te.displayInd}),ee=K.initialDragDimensionDisplayInds.some(function(Te,Ae){return Te!==re[Ae]});ee&&re.forEach(function(Te,Ae){var be=K.parcatsViewModel.model.dimensions[Ae].containerInd;ne["dimensions["+be+"].displayindex"]=Te});var de=!1;if(K.dragCategoryDisplayInd!==null){var le=K.model.categories.map(function(Te){return Te.displayInd});if(de=K.initialDragCategoryDisplayInds.some(function(Te,Ae){return Te!==le[Ae]}),de){var he=K.model.categories.slice().sort(function(Te,Ae){return Te.displayInd-Ae.displayInd}),xe=he.map(function(Te){return Te.categoryValue}),Ee=he.map(function(Te){return Te.categoryLabel});ne["dimensions["+K.model.containerInd+"].categoryarray"]=[xe],ne["dimensions["+K.model.containerInd+"].ticktext"]=[Ee],ne["dimensions["+K.model.containerInd+"].categoryorder"]="array"}}if(K.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!K.dragHasMoved&&K.potentialClickBand&&(K.parcatsViewModel.hoveron==="color"?I(K.potentialClickBand,"plotly_click",l.event.sourceEvent):k(K.potentialClickBand,"plotly_click",l.event.sourceEvent)),K.model.dragX=null,K.dragCategoryDisplayInd!==null){var Se=K.parcatsViewModel.dimensions[K.dragDimensionDisplayInd].categories[K.dragCategoryDisplayInd];Se.model.dragY=null,K.dragCategoryDisplayInd=null}K.dragDimensionDisplayInd=null,K.parcatsViewModel.dragDimension=null,K.dragHasMoved=null,K.potentialClickBand=null,J(K.parcatsViewModel),Q(K.parcatsViewModel);var ke=l.transition().duration(300).ease("cubic-in-out");ke.each(function(){ae(K.parcatsViewModel,!0),q(K.parcatsViewModel,!0)}).each("end",function(){(ee||de)&&i.restyle(K.parcatsViewModel.graphDiv,ne,[ce])})}}function Z(K){for(var ne,ce=K.graphDiv._fullData,re=0;re=0;xe--)Ee+="C"+le[xe]+","+(ne[xe+1]+re)+" "+de[xe]+","+(ne[xe]+re)+" "+(K[xe]+ce[xe])+","+(ne[xe]+re),Ee+="l-"+ce[xe]+",0 ";return Ee+="Z",Ee}function Q(K){var ne=K.dimensions,ce=K.model,re=ne.map(function(et){return et.categories.map(function(Be){return Be.y})}),ee=K.model.dimensions.map(function(et){return et.categories.map(function(Be){return Be.displayInd})}),de=K.model.dimensions.map(function(et){return et.displayInd}),le=K.dimensions.map(function(et){return et.model.dimensionInd}),he=ne.map(function(et){return et.x}),xe=ne.map(function(et){return et.width}),Ee=[];for(var Se in ce.paths)ce.paths.hasOwnProperty(Se)&&Ee.push(ce.paths[Se]);function ke(et){var Be=et.categoryInds.map(function(Ke,We){return ee[We][Ke]}),Ye=le.map(function(Ke){return Be[Ke]});return Ye}Ee.sort(function(et,Be){var Ye=ke(et),Ke=ke(Be);return K.sortpaths==="backward"&&(Ye.reverse(),Ke.reverse()),Ye.push(et.valueInds[0]),Ke.push(Be.valueInds[0]),K.bundlecolors&&(Ye.unshift(et.rawColor),Ke.unshift(Be.rawColor)),YeKe?1:0});for(var Te=new Array(Ee.length),Ae=ne[0].model.count,be=ne[0].categories.map(function(et){return et.height}).reduce(function(et,Be){return et+Be}),Ie=0;Ie0?Ne=be*(Ue.count/Ae):Ne=0;for(var ze=new Array(re.length),$e=0;$e1?le=(K.width-2*ce-re)/(ee-1):le=0,he=ce,xe=he+le*de;var Ee=[],Se=K.model.maxCats,ke=ne.categories.length,Te=8,Ae=ne.count,be=K.height-Te*(Se-1),Ie,Ue,Ne,ze,$e,st=(Se-ke)*Te/2,vt=ne.categories.map(function(at){return{displayInd:at.displayInd,categoryInd:at.categoryInd}});for(vt.sort(function(at,nt){return at.displayInd-nt.displayInd}),$e=0;$e0?Ie=Ue.count/Ae*be:Ie=0,Ne={key:Ue.valueInds[0],model:Ue,width:re,height:Ie,y:Ue.dragY!==null?Ue.dragY:st,bands:[],parcatsViewModel:K},st=st+Ie+Te,Ee.push(Ne);return{key:ne.dimensionInd,x:ne.dragX!==null?ne.dragX:xe,y:0,width:re,model:ne,categories:Ee,parcatsViewModel:K,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(D,O,t){var l=t(51036);D.exports=function(i,C,w,v){var m=i._fullLayout,a=m._paper,n=m._size;l(i,a,C,{width:n.w,height:n.h,margin:{t:n.t,r:n.r,b:n.b,l:n.l}},w,v)}},82296:function(D,O,t){var l=t(49084),S=t(94724),i=t(25376),C=t(86968).u,w=t(92880).extendFlat,v=t(31780).templatedArray;D.exports={domain:C({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:v("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},S.tickvals,{editType:"plot"}),ticktext:w({},S.ticktext,{editType:"plot"}),tickformat:w({},S.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},l("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(D,O,t){var l=t(30140),S=t(33428),i=t(71688).keyFun,C=t(71688).repeat,w=t(3400).sorterAsc,v=t(3400).strTranslate,m=l.bar.snapRatio;function a($,Z){return $*(1-m)+Z*m}var n=l.bar.snapClose;function s($,Z){return $*(1-n)+Z*n}function o($,Z,q,ae){if(h(q,ae))return q;var ie=$?-1:1,fe=0,Q=Z.length-1;if(ie<0){var J=fe;fe=Q,Q=J}for(var oe=Z[fe],K=oe,ne=fe;ie*ne=Z[q][0]&&$<=Z[q][1])return!0;return!1}function f($){$.attr("x",-l.bar.captureWidth/2).attr("width",l.bar.captureWidth)}function u($){$.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function b($){if(!$.brush.filterSpecified)return"0,"+$.height;for(var Z=p($.brush.filter.getConsolidated(),$.height),q=[0],ae,ie,fe,Q=Z.length?Z[0][0]:null,J=0;J$[1]+q||Z<$[0]-q))return Z>=.9*$[1]+.1*$[0]?"n":Z<=.9*$[0]+.1*$[1]?"s":"ns"}function g(){S.select(document.body).style("cursor",null)}function c($){$.attr("stroke-dasharray",b)}function x($,Z){var q=S.select($).selectAll(".highlight, .highlight-shadow"),ae=Z?q.transition().duration(l.bar.snapDuration).each("end",Z):q;c(ae)}function A($,Z){var q=$.brush,ae=q.filterSpecified,ie=NaN,fe={},Q;if(ae){var J=$.height,oe=q.filter.getConsolidated(),K=p(oe,J),ne=NaN,ce=NaN,re=NaN;for(Q=0;Q<=K.length;Q++){var ee=K[Q];if(ee&&ee[0]<=Z&&Z<=ee[1]){ne=Q;break}else if(ce=Q?Q-1:NaN,ee&&ee[0]>Z){re=Q;break}}if(ie=ne,isNaN(ie)&&(isNaN(ce)||isNaN(re)?ie=isNaN(ce)?re:ce:ie=Z-K[ce][1]=Ee[0]&&xe<=Ee[1]){fe.clickableOrdinalRange=Ee;break}}}return fe}function M($,Z){S.event.sourceEvent.stopPropagation();var q=Z.height-S.mouse($)[1]-2*l.verticalPadding,ae=Z.unitToPaddedPx.invert(q),ie=Z.brush,fe=A(Z,q),Q=fe.interval,J=ie.svgBrush;if(J.wasDragged=!1,J.grabbingBar=fe.region==="ns",J.grabbingBar){var oe=Q.map(Z.unitToPaddedPx);J.grabPoint=q-oe[0]-l.verticalPadding,J.barLength=oe[1]-oe[0]}J.clickableOrdinalRange=fe.clickableOrdinalRange,J.stayingIntervals=Z.multiselect&&ie.filterSpecified?ie.filter.getConsolidated():[],Q&&(J.stayingIntervals=J.stayingIntervals.filter(function(K){return K[0]!==Q[0]&&K[1]!==Q[1]})),J.startExtent=fe.region?Q[fe.region==="s"?1:0]:ae,Z.parent.inBrushDrag=!0,J.brushStartCallback()}function R($,Z){S.event.sourceEvent.stopPropagation();var q=Z.height-S.mouse($)[1]-2*l.verticalPadding,ae=Z.brush.svgBrush;ae.wasDragged=!0,ae._dragging=!0,ae.grabbingBar?ae.newExtent=[q-ae.grabPoint,q+ae.barLength-ae.grabPoint].map(Z.unitToPaddedPx.invert):ae.newExtent=[ae.startExtent,Z.unitToPaddedPx.invert(q)].sort(w),Z.brush.filterSpecified=!0,ae.extent=ae.stayingIntervals.concat([ae.newExtent]),ae.brushCallback(Z),x($.parentNode)}function T($,Z){var q=Z.brush,ae=q.filter,ie=q.svgBrush;ie._dragging||(L($,Z),R($,Z),Z.brush.svgBrush.wasDragged=!1),ie._dragging=!1;var fe=S.event;fe.sourceEvent.stopPropagation();var Q=ie.grabbingBar;if(ie.grabbingBar=!1,ie.grabLocation=void 0,Z.parent.inBrushDrag=!1,g(),!ie.wasDragged){ie.wasDragged=void 0,ie.clickableOrdinalRange?q.filterSpecified&&Z.multiselect?ie.extent.push(ie.clickableOrdinalRange):(ie.extent=[ie.clickableOrdinalRange],q.filterSpecified=!0):Q?(ie.extent=ie.stayingIntervals,ie.extent.length===0&&B(q)):B(q),ie.brushCallback(Z),x($.parentNode),ie.brushEndCallback(q.filterSpecified?ae.getConsolidated():[]);return}var J=function(){ae.set(ae.getConsolidated())};if(Z.ordinal){var oe=Z.unitTickvals;oe[oe.length-1]ie.newExtent[0];ie.extent=ie.stayingIntervals.concat(K?[ie.newExtent]:[]),ie.extent.length||B(q),ie.brushCallback(Z),K?x($.parentNode,J):(J(),x($.parentNode))}else J();ie.brushEndCallback(q.filterSpecified?ae.getConsolidated():[])}function L($,Z){var q=Z.height-S.mouse($)[1]-2*l.verticalPadding,ae=A(Z,q),ie="crosshair";ae.clickableOrdinalRange?ie="pointer":ae.region&&(ie=ae.region+"-resize"),S.select(document.body).style("cursor",ie)}function P($){$.on("mousemove",function(Z){S.event.preventDefault(),Z.parent.inBrushDrag||L(this,Z)}).on("mouseleave",function(Z){Z.parent.inBrushDrag||g()}).call(S.behavior.drag().on("dragstart",function(Z){M(this,Z)}).on("drag",function(Z){R(this,Z)}).on("dragend",function(Z){T(this,Z)}))}function d($,Z){return $[0]-Z[0]}function k($,Z,q){var ae=q._context.staticPlot,ie=$.selectAll(".background").data(C);ie.enter().append("rect").classed("background",!0).call(f).call(u).style("pointer-events",ae?"none":"auto").attr("transform",v(0,l.verticalPadding)),ie.call(P).attr("height",function(J){return J.height-l.verticalPadding});var fe=$.selectAll(".highlight-shadow").data(C);fe.enter().append("line").classed("highlight-shadow",!0).attr("x",-l.bar.width/2).attr("stroke-width",l.bar.width+l.bar.strokeWidth).attr("stroke",Z).attr("opacity",l.bar.strokeOpacity).attr("stroke-linecap","butt"),fe.attr("y1",function(J){return J.height}).call(c);var Q=$.selectAll(".highlight").data(C);Q.enter().append("line").classed("highlight",!0).attr("x",-l.bar.width/2).attr("stroke-width",l.bar.width-l.bar.strokeWidth).attr("stroke",l.bar.fillColor).attr("opacity",l.bar.fillOpacity).attr("stroke-linecap","butt"),Q.attr("y1",function(J){return J.height}).call(c)}function I($,Z,q){var ae=$.selectAll("."+l.cn.axisBrush).data(C,i);ae.enter().append("g").classed(l.cn.axisBrush,!0),k(ae,Z,q)}function N($){return $.svgBrush.extent.map(function(Z){return Z.slice()})}function B($){$.filterSpecified=!1,$.svgBrush.extent=[[-1/0,1/0]]}function G($){return function(q){var ae=q.brush,ie=N(ae),fe=ie.slice();ae.filter.set(fe),$()}}function U($){for(var Z=$.slice(),q=[],ae,ie=Z.shift();ie;){for(ae=ie.slice();(ie=Z.shift())&&ie[0]<=ae[1];)ae[1]=Math.max(ae[1],ie[1]);q.push(ae)}return q.length===1&&q[0][0]>q[0][1]&&(q=[]),q}function H(){var $=[],Z,q;return{set:function(ae){$=ae.map(function(ie){return ie.slice().sort(w)}).sort(d),$.length===1&&$[0][0]===-1/0&&$[0][1]===1/0&&($=[[0,-1]]),Z=U($),q=$.reduce(function(ie,fe){return[Math.min(ie[0],fe[0]),Math.max(ie[1],fe[1])]},[1/0,-1/0])},get:function(){return $.slice()},getConsolidated:function(){return Z},getBounds:function(){return q}}}function W($,Z,q,ae,ie,fe){var Q=H();return Q.set(q),{filter:Q,filterSpecified:Z,svgBrush:{extent:[],brushStartCallback:ae,brushCallback:G(ie),brushEndCallback:fe}}}function V($,Z){if(Array.isArray($[0])?($=$.map(function(ae){return ae.sort(w)}),Z.multiselect?$=U($.sort(d)):$=[$[0]]):$=[$.sort(w)],Z.tickvals){var q=Z.tickvals.slice().sort(w);if($=$.map(function(ae){var ie=[o(0,q,ae[0],[]),o(1,q,ae[1],[])];if(ie[1]>ie[0])return ie}).filter(function(ae){return ae}),!$.length)return}return $.length>1?$:$[0]}D.exports={makeBrush:W,ensureAxisBrush:I,cleanRanges:V}},61664:function(D,O,t){D.exports={attributes:t(82296),supplyDefaults:t(60664),calc:t(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:t(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(D,O,t){var l=t(33428),S=t(84888)._M,i=t(24196),C=t(9616);O.name="parcoords",O.plot=function(w){var v=S(w.calcdata,"parcoords")[0];v.length&&i(w,v)},O.clean=function(w,v,m,a){var n=a._has&&a._has("parcoords"),s=v._has&&v._has("parcoords");n&&!s&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())},O.toSVG=function(w){var v=w._fullLayout._glimages,m=l.select(w).selectAll(".svg-container"),a=m.filter(function(s,o){return o===m.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var s=this,o=s.toDataURL("image/png"),h=v.append("svg:image");h.attr({xmlns:C.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:s.style.width,height:s.style.height})}a.each(n),window.setTimeout(function(){l.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(D,O,t){var l=t(3400).isArrayOrTypedArray,S=t(8932),i=t(71688).wrap;D.exports=function(v,m){var a,n;return S.hasColorscale(m,"line")&&l(m.line.color)?(a=m.line.color,n=S.extractOpts(m.line).colorscale,S.calc(v,m,{vals:a,containerStr:"line",cLetter:"c"})):(a=C(m._length),n=[[0,m.line.color],[1,m.line.color]]),i({lineColor:a,cscale:n})};function C(w){for(var v=new Array(w),m=0;mn&&(l.log("parcoords traces support up to "+n+" dimensions at the moment"),c.splice(n));var x=w(u,b,{name:"dimensions",layout:E,handleItemDefaults:h}),A=o(u,b,p,E,g);C(b,E,g),(!Array.isArray(x)||!x.length)&&(b.visible=!1),s(b,x,"values",A);var M={family:E.font.family,size:Math.round(E.font.size/1.2),color:E.font.color};l.coerceFont(g,"labelfont",M),l.coerceFont(g,"tickfont",M),l.coerceFont(g,"rangefont",M),g("labelangle"),g("labelside"),g("unselected.line.color"),g("unselected.line.opacity")}},95724:function(D,O,t){var l=t(3400).isTypedArray;O.convertTypedArray=function(S){return l(S)?Array.prototype.slice.call(S):S},O.isOrdinal=function(S){return!!S.tickvals},O.isVisible=function(S){return S.visible||!("visible"in S)}},29928:function(D,O,t){var l=t(61664);l.plot=t(24196),D.exports=l},51352:function(D,O,t){var l=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(D,O,t){var l=t(3400);D.exports=function(i,C){var w=i.split(" "),v=w[0],m=w[1],a=l.isArrayOrTypedArray(C)?l.mean(C):C,n=.5+a/100,s=1.5+a/100,o=["",""],h=[0,0];switch(v){case"top":o[0]="top",h[1]=-s;break;case"bottom":o[0]="bottom",h[1]=s;break}switch(m){case"left":o[1]="right",h[0]=-n;break;case"right":o[1]="left",h[0]=n;break}var f;return o[0]&&o[1]?f=o.join("-"):o[0]?f=o[0]:o[1]?f=o[1]:f="center",{anchor:f,offset:h}}},33688:function(D,O,t){var l=t(3480),S=t(3400),i=S.strTranslate,C=S.strScale,w=t(84888).KY,v=t(9616),m=t(33428),a=t(43616),n=t(72736),s=t(14440),o="mapbox",h=O.constants=t(47552);O.name=o,O.attr="subplot",O.idRoot=o,O.idRegex=O.attrRegex=S.counterRegex(o),O.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},O.layoutAttributes=t(5232),O.supplyLayoutDefaults=t(5976),O.plot=function(p){var E=p._fullLayout,g=p.calcdata,c=E._subplots[o];if(l.version!==h.requiredVersion)throw new Error(h.wrongVersionErrorMsg);var y=f(p,c);l.accessToken=y;for(var A=0;AG/2){var U=k.split("|").join("
");N.text(U).attr("data-unformatted",U).call(n.convertToTspans,b),B=a.bBox(N.node())}N.attr("transform",i(-3,-B.height+8)),I.insert("rect",".static-attribution").attr({x:-B.width-6,y:-B.height-3,width:B.width+6,height:B.height+3,fill:"rgba(255, 255, 255, 0.75)"});var H=1;B.width+6>G&&(H=G/(B.width+6));var W=[g.l+g.w*A.x[1],g.t+g.h*(1-A.y[0])];I.attr("transform",i(W[0],W[1])+C(H))}};function f(b,p){var E=b._fullLayout,g=b._context;if(g.mapboxAccessToken==="")return"";for(var c=[],y=[],A=!1,M=!1,R=0;R1&&S.warn(h.multipleTokensErrorMsg),c[0]):(y.length&&S.log(["Listed mapbox access token(s)",y.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function u(b){return typeof b=="string"&&(h.styleValuesMapbox.indexOf(b)!==-1||b.indexOf("mapbox://")===0||b.indexOf("stamen")===0)}O.updateFx=function(b){for(var p=b._fullLayout,E=p._subplots[o],g=0;g0){for(var h=0;h0}function a(s){var o={},h={};switch(s.type){case"circle":l.extendFlat(h,{"circle-radius":s.circle.radius,"circle-color":s.color,"circle-opacity":s.opacity});break;case"line":l.extendFlat(h,{"line-width":s.line.width,"line-color":s.color,"line-opacity":s.opacity,"line-dasharray":s.line.dash});break;case"fill":l.extendFlat(h,{"fill-color":s.color,"fill-outline-color":s.fill.outlinecolor,"fill-opacity":s.opacity});break;case"symbol":var f=s.symbol,u=i(f.textposition,f.iconsize);l.extendFlat(o,{"icon-image":f.icon+"-15","icon-size":f.iconsize/10,"text-field":f.text,"text-size":f.textfont.size,"text-anchor":u.anchor,"text-offset":u.offset,"symbol-placement":f.placement}),l.extendFlat(h,{"icon-color":s.color,"text-color":f.textfont.color,"text-opacity":s.opacity});break;case"raster":l.extendFlat(h,{"raster-fade-duration":0,"raster-opacity":s.opacity});break}return{layout:o,paint:h}}function n(s){var o=s.sourcetype,h=s.source,f={type:o},u;return o==="geojson"?u="data":o==="vector"?u=typeof h=="string"?"url":"tiles":o==="raster"?(u="tiles",f.tileSize=256):o==="image"&&(u="url",f.coordinates=s.coordinates),f[u]=h,s.sourceattribution&&(f.attribution=S(s.sourceattribution)),f}D.exports=function(o,h,f){var u=new w(o,h);return u.update(f),u}},5232:function(D,O,t){var l=t(3400),S=t(76308).defaultLine,i=t(86968).u,C=t(25376),w=t(52904).textposition,v=t(67824).overrideAll,m=t(31780).templatedArray,a=t(47552),n=C({});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var s=D.exports=v({_arrayAttrRegexps:[l.counterRegex("mapbox",".layers",!0)],domain:i({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:a.styleValuesMapbox.concat(a.styleValuesNonMapbox),dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:m("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:S},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:S}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:l.extendFlat({},w,{arrayOk:!1})}})},"plot","from-root");s.uirevision={valType:"any",editType:"none"}},5976:function(D,O,t){var l=t(3400),S=t(168),i=t(51272),C=t(5232);D.exports=function(a,n,s){S(a,n,s,{type:"mapbox",attributes:C,handleDefaults:w,partition:"y",accessToken:n._mapboxAccessToken})};function w(m,a,n,s){n("accesstoken",s.accessToken),n("style"),n("center.lon"),n("center.lat"),n("zoom"),n("bearing"),n("pitch");var o=n("bounds.west"),h=n("bounds.east"),f=n("bounds.south"),u=n("bounds.north");(o===void 0||h===void 0||f===void 0||u===void 0)&&delete a.bounds,i(m,a,{name:"layers",handleItemDefaults:v}),a._input=m}function v(m,a){function n(b,p){return l.coerce(m,a,C.layers,b,p)}var s=n("visible");if(s){var o=n("sourcetype"),h=o==="raster"||o==="image";n("source"),n("sourceattribution"),o==="vector"&&n("sourcelayer"),o==="image"&&n("coordinates");var f;h&&(f="raster");var u=n("type",f);h&&u!=="raster"&&(u=a.type="raster",l.log("Source types *raster* and *image* must drawn *raster* layer type.")),n("below"),n("color"),n("opacity"),n("minzoom"),n("maxzoom"),u==="circle"&&n("circle.radius"),u==="line"&&(n("line.width"),n("line.dash")),u==="fill"&&n("fill.outlinecolor"),u==="symbol"&&(n("symbol.icon"),n("symbol.iconsize"),n("symbol.text"),l.coerceFont(n,"symbol.textfont"),n("symbol.textposition"),n("symbol.placement"))}}},14440:function(D,O,t){var l=t(3480),S=t(3400),i=t(27144),C=t(24040),w=t(54460),v=t(86476),m=t(93024),a=t(72760),n=a.drawMode,s=a.selectMode,o=t(22676).prepSelect,h=t(22676).clearOutline,f=t(22676).clearSelectionsCache,u=t(22676).selectOnClick,b=t(47552),p=t(22360);function E(R,T){this.id=T,this.gd=R;var L=R._fullLayout,P=R._context;this.container=L._glcontainer.node(),this.isStatic=P.staticPlot,this.uid=L._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(L),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var g=E.prototype;g.plot=function(R,T,L){var P=this,d=T[P.id];P.map&&d.accesstoken!==P.accessToken&&(P.map.remove(),P.map=null,P.styleObj=null,P.traceHash={},P.layerList=[]);var k;P.map?k=new Promise(function(I,N){P.updateMap(R,T,I,N)}):k=new Promise(function(I,N){P.createMap(R,T,I,N)}),L.push(k)},g.createMap=function(R,T,L,P){var d=this,k=T[d.id],I=d.styleObj=y(k.style,T);d.accessToken=k.accesstoken;var N=k.bounds,B=N?[[N.west,N.south],[N.east,N.north]]:null,G=d.map=new l.Map({container:d.div,style:I.style,center:M(k.center),zoom:k.zoom,bearing:k.bearing,pitch:k.pitch,maxBounds:B,interactive:!d.isStatic,preserveDrawingBuffer:d.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new l.AttributionControl({compact:!0}));G._canvas.style.left="0px",G._canvas.style.top="0px",d.rejectOnError(P),d.isStatic||d.initFx(R,T);var U=[];U.push(new Promise(function(H){G.once("load",H)})),U=U.concat(i.fetchTraceGeoData(R)),Promise.all(U).then(function(){d.fillBelowLookup(R,T),d.updateData(R),d.updateLayout(T),d.resolveOnRender(L)}).catch(P)},g.updateMap=function(R,T,L,P){var d=this,k=d.map,I=T[this.id];d.rejectOnError(P);var N=[],B=y(I.style,T);JSON.stringify(d.styleObj)!==JSON.stringify(B)&&(d.styleObj=B,k.setStyle(B.style),d.traceHash={},N.push(new Promise(function(G){k.once("styledata",G)}))),N=N.concat(i.fetchTraceGeoData(R)),Promise.all(N).then(function(){d.fillBelowLookup(R,T),d.updateData(R),d.updateLayout(T),d.resolveOnRender(L)}).catch(P)},g.fillBelowLookup=function(R,T){var L=T[this.id],P=L.layers,d,k,I=this.belowLookup={},N=!1;for(d=0;d1)for(d=0;d<$.length;d++)W=$[d],W.indexOf("trace-")===0?(V=W.split("trace-")[1],this.traceHash[V]&&(this.traceHash[V].below=null)):W.indexOf("layout-")===0&&(V=W.split("layout-")[1],this.layerList[V]&&(this.layerList[V].below=null))}};var c={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};g.updateData=function(R){var T=this.traceHash,L,P,d,k,I=R.slice().sort(function(H,W){return c[H[0].trace.type]-c[W[0].trace.type]});for(d=0;d-1&&u(B.originalEvent,P,[L.xaxis],[L.yaxis],L.id,N),G.indexOf("event")>-1&&m.click(P,B.originalEvent)}}},g.updateFx=function(R){var T=this,L=T.map,P=T.gd;if(T.isStatic)return;function d(B){var G=T.map.unproject(B);return[G.lng,G.lat]}var k=R.dragmode,I;I=function(B,G){if(G.isRect){var U=B.range={};U[T.id]=[d([G.xmin,G.ymin]),d([G.xmax,G.ymax])]}else{var H=B.lassoPoints={};H[T.id]=G.map(d)}};var N=T.dragOptions;T.dragOptions=S.extendDeep(N||{},{dragmode:R.dragmode,element:T.div,gd:P,plotinfo:{id:T.id,domain:R[T.id].domain,xaxis:T.xaxis,yaxis:T.yaxis,fillRangeItems:I},xaxes:[T.xaxis],yaxes:[T.yaxis],subplot:T.id}),L.off("click",T.onClickInPanHandler),s(k)||n(k)?(L.dragPan.disable(),L.on("zoomstart",T.clearOutline),T.dragOptions.prepFn=function(B,G,U){o(B,G,U,T.dragOptions,k)},v.init(T.dragOptions)):(L.dragPan.enable(),L.off("zoomstart",T.clearOutline),T.div.onmousedown=null,T.div.ontouchstart=null,T.div.removeEventListener("touchstart",T.div._ontouchstart),T.onClickInPanHandler=T.onClickInPanFn(T.dragOptions),L.on("click",T.onClickInPanHandler))},g.updateFramework=function(R){var T=R[this.id].domain,L=R._size,P=this.div.style;P.width=L.w*(T.x[1]-T.x[0])+"px",P.height=L.h*(T.y[1]-T.y[0])+"px",P.left=L.l+T.x[0]*L.w+"px",P.top=L.t+(1-T.y[1])*L.h+"px",this.xaxis._offset=L.l+T.x[0]*L.w,this.xaxis._length=L.w*(T.x[1]-T.x[0]),this.yaxis._offset=L.t+(1-T.y[1])*L.h,this.yaxis._length=L.h*(T.y[1]-T.y[0])},g.updateLayers=function(R){var T=R[this.id],L=T.layers,P=this.layerList,d;if(L.length!==P.length){for(d=0;d=ne.width-20?(ee["text-anchor"]="start",ee.x=5):(ee["text-anchor"]="end",ee.x=ne._paper.attr("width")-7),ce.attr(ee);var de=ce.select(".js-link-to-tool"),le=ce.select(".js-link-spacer"),he=ce.select(".js-sourcelinks");K._context.showSources&&K._context.showSources(K),K._context.showLink&&R(K,de),le.text(de.text()&&he.text()?" - ":"")}};function R(K,ne){ne.text("");var ce=ne.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(K._context.linkText+" »");if(K._context.sendData)ce.on("click",function(){y.sendDataToCloud(K)});else{var re=window.location.pathname.split("/"),ee=window.location.search;ce.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ee})}}y.sendDataToCloud=function(K){var ne=(window.PLOTLYENV||{}).BASE_URL||K._context.plotlyServerURL;if(ne){K.emit("plotly_beforeexport");var ce=l.select(K).append("div").attr("id","hiddenform").style("display","none"),re=ce.append("form").attr({action:ne+"/external",method:"post",target:"_blank"}),ee=re.append("input").attr({type:"text",name:"data"});return ee.node().value=y.graphJson(K,!1,"keepdata"),re.node().submit(),ce.remove(),K.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],L=["year","month","dayMonth","dayMonthYear"];y.supplyDefaults=function(K,ne){var ce=ne&&ne.skipUpdateCalc,re=K._fullLayout||{};if(re._skipDefaults){delete re._skipDefaults;return}var ee=K._fullLayout={},de=K.layout||{},le=K._fullData||[],he=K._fullData=[],xe=K.data||[],Ee=K.calcdata||[],Se=K._context||{},ke;K._transitionData||y.createTransitionData(K),ee._dfltTitle={plot:c(K,"Click to enter Plot title"),x:c(K,"Click to enter X axis title"),y:c(K,"Click to enter Y axis title"),colorbar:c(K,"Click to enter Colorscale title"),annotation:c(K,"new text")},ee._traceWord=c(K,"trace");var Te=k(K,T);if(ee._mapboxAccessToken=Se.mapboxAccessToken,re._initialAutoSizeIsDone){var Ae=re.width,be=re.height;y.supplyLayoutGlobalDefaults(de,ee,Te),de.width||(ee.width=Ae),de.height||(ee.height=be),y.sanitizeMargins(ee)}else{y.supplyLayoutGlobalDefaults(de,ee,Te);var Ie=!de.width||!de.height,Ue=ee.autosize,Ne=Se.autosizable,ze=Ie&&(Ue||Ne);ze?y.plotAutoSize(K,de,ee):Ie&&y.sanitizeMargins(ee),!Ue&&Ie&&(de.width=ee.width,de.height=ee.height)}ee._d3locale=I(Te,ee.separators),ee._extraFormat=k(K,L),ee._initialAutoSizeIsDone=!0,ee._dataLength=xe.length,ee._modules=[],ee._visibleModules=[],ee._basePlotModules=[];var $e=ee._subplots=d(),st=ee._splomAxes={x:{},y:{}},vt=ee._splomSubplots={};ee._splomGridDflt={},ee._scatterStackOpts={},ee._firstScatter={},ee._alignmentOpts={},ee._colorAxes={},ee._requestRangeslider={},ee._traceUids=P(le,xe),ee._globalTransforms=(K._context||{}).globalTransforms,y.supplyDataDefaults(xe,he,de,ee);var at=Object.keys(st.x),nt=Object.keys(st.y);if(at.length>1&&nt.length>1){for(v.getComponentMethod("grid","sizeDefaults")(de,ee),ke=0;ke15&&nt.length>15&&ee.shapes.length===0&&ee.images.length===0,y.linkSubplots(he,ee,le,re),y.cleanPlot(he,ee,le,re);var wt=!!(re._has&&re._has("gl2d")),et=!!(ee._has&&ee._has("gl2d")),Be=!!(re._has&&re._has("cartesian")),Ye=!!(ee._has&&ee._has("cartesian")),Ze=Be||wt,We=Ye||et;Ze&&!We?re._bgLayer.remove():We&&!Ze&&(ee._shouldCreateBgLayer=!0),re._zoomlayer&&!K._dragging&&f({_fullLayout:re}),N(he,ee),g(ee,re),v.getComponentMethod("colorscale","crossTraceDefaults")(he,ee),ee._preGUI||(ee._preGUI={}),ee._tracePreGUI||(ee._tracePreGUI={});var Fe=ee._tracePreGUI,Me={},we;for(we in Fe)Me[we]="old";for(ke=0;ke0){var Se=1-2*de;le=Math.round(Se*le),he=Math.round(Se*he)}}var ke=y.layoutAttributes.width.min,Te=y.layoutAttributes.height.min;le1,be=!ce.height&&Math.abs(re.height-he)>1;(be||Ae)&&(Ae&&(re.width=le),be&&(re.height=he)),ne._initialAutoSize||(ne._initialAutoSize={width:le,height:he}),y.sanitizeMargins(re)},y.supplyLayoutModuleDefaults=function(K,ne,ce,re){var ee=v.componentsRegistry,de=ne._basePlotModules,le,he,xe,Ee=v.subplotsRegistry.cartesian;for(le in ee)xe=ee[le],xe.includeBasePlot&&xe.includeBasePlot(K,ne);de.length||de.push(Ee),ne._has("cartesian")&&(v.getComponentMethod("grid","contentDefaults")(K,ne),Ee.finalizeSubplots(K,ne));for(var Se in ne._subplots)ne._subplots[Se].sort(n.subplotSort);for(he=0;he1&&(ce.l/=Ue,ce.r/=Ue)}if(Te){var Ne=(ce.t+ce.b)/Te;Ne>1&&(ce.t/=Ne,ce.b/=Ne)}var ze=ce.xl!==void 0?ce.xl:ce.x,$e=ce.xr!==void 0?ce.xr:ce.x,st=ce.yt!==void 0?ce.yt:ce.y,vt=ce.yb!==void 0?ce.yb:ce.y;Ae[ne]={l:{val:ze,size:ce.l+Ie},r:{val:$e,size:ce.r+Ie},b:{val:vt,size:ce.b+Ie},t:{val:st,size:ce.t+Ie}},be[ne]=1}if(!re._replotting)return y.doAutoMargin(K)}};function Z(K){if("_redrawFromAutoMarginCount"in K._fullLayout)return!1;var ne=h.list(K,"",!0);for(var ce in ne)if(ne[ce].autoshift||ne[ce].shift)return!0;return!1}y.doAutoMargin=function(K){var ne=K._fullLayout,ce=ne.width,re=ne.height;ne._size||(ne._size={}),W(ne);var ee=ne._size,de=ne.margin,le={t:0,b:0,l:0,r:0},he=n.extendFlat({},ee),xe=de.l,Ee=de.r,Se=de.t,ke=de.b,Te=ne._pushmargin,Ae=ne._pushmarginIds,be=ne.minreducedwidth,Ie=ne.minreducedheight;if(de.autoexpand!==!1){for(var Ue in Te)Ae[Ue]||delete Te[Ue];var Ne=K._fullLayout._reservedMargin;for(var ze in Ne)for(var $e in Ne[ze]){var st=Ne[ze][$e];le[$e]=Math.max(le[$e],st)}Te.base={l:{val:0,size:xe},r:{val:1,size:Ee},t:{val:1,size:Se},b:{val:0,size:ke}};for(var vt in le){var at=0;for(var nt in Te)nt!=="base"&&C(Te[nt][vt].size)&&(at=Te[nt][vt].size>at?Te[nt][vt].size:at);var mt=Math.max(0,de[vt]-at);le[vt]=Math.max(0,le[vt]-mt)}for(var rt in Te){var lt=Te[rt].l||{},dt=Te[rt].b||{},wt=lt.val,et=lt.size,Be=dt.val,Ye=dt.size,Ze=ce-le.r-le.l,We=re-le.t-le.b;for(var Fe in Te){if(C(et)&&Te[Fe].r){var Me=Te[Fe].r.val,we=Te[Fe].r.size;if(Me>wt){var Re=(et*Me+(we-Ze)*wt)/(Me-wt),Pe=(we*(1-wt)+(et-Ze)*(1-Me))/(Me-wt);Re+Pe>xe+Ee&&(xe=Re,Ee=Pe)}}if(C(Ye)&&Te[Fe].t){var Ve=Te[Fe].t.val,Je=Te[Fe].t.size;if(Ve>Be){var ot=(Ye*Ve+(Je-We)*Be)/(Ve-Be),yt=(Je*(1-Be)+(Ye-We)*(1-Ve))/(Ve-Be);ot+yt>ke+Se&&(ke=ot,Se=yt)}}}}}var ut=n.constrain(ce-de.l-de.r,V,be),It=n.constrain(re-de.t-de.b,$,Ie),Vt=Math.max(0,ce-ut),xt=Math.max(0,re-It);if(Vt){var Lt=(xe+Ee)/Vt;Lt>1&&(xe/=Lt,Ee/=Lt)}if(xt){var Xt=(ke+Se)/xt;Xt>1&&(ke/=Xt,Se/=Xt)}if(ee.l=Math.round(xe)+le.l,ee.r=Math.round(Ee)+le.r,ee.t=Math.round(Se)+le.t,ee.b=Math.round(ke)+le.b,ee.p=Math.round(de.pad),ee.w=Math.round(ce)-ee.l-ee.r,ee.h=Math.round(re)-ee.t-ee.b,!ne._replotting&&(y.didMarginChange(he,ee)||Z(K))){"_redrawFromAutoMarginCount"in ne?ne._redrawFromAutoMarginCount++:ne._redrawFromAutoMarginCount=1;var dr=3*(1+Object.keys(Ae).length);if(ne._redrawFromAutoMarginCount1)return!0}return!1},y.graphJson=function(K,ne,ce,re,ee,de){(ee&&ne&&!K._fullData||ee&&!ne&&!K._fullLayout)&&y.supplyDefaults(K);var le=ee?K._fullData:K.data,he=ee?K._fullLayout:K.layout,xe=(K._transitionData||{})._frames;function Ee(Te,Ae){if(typeof Te=="function")return Ae?"_function_":null;if(n.isPlainObject(Te)){var be={},Ie;return Object.keys(Te).sort().forEach(function($e){if(["_","["].indexOf($e.charAt(0))===-1){if(typeof Te[$e]=="function"){Ae&&(be[$e]="_function");return}if(ce==="keepdata"){if($e.substr($e.length-3)==="src")return}else if(ce==="keepstream"){if(Ie=Te[$e+"src"],typeof Ie=="string"&&Ie.indexOf(":")>0&&!n.isPlainObject(Te.stream))return}else if(ce!=="keepall"&&(Ie=Te[$e+"src"],typeof Ie=="string"&&Ie.indexOf(":")>0))return;be[$e]=Ee(Te[$e],Ae)}}),be}var Ue=Array.isArray(Te),Ne=n.isTypedArray(Te);if((Ue||Ne)&&Te.dtype&&Te.shape){var ze=Te.bdata;return Ee({dtype:Te.dtype,shape:Te.shape,bdata:n.isArrayBuffer(ze)?w.encode(ze):ze},Ae)}return Ue?Te.map(function($e){return Ee($e,Ae)}):Ne?n.simpleMap(Te,n.identity):n.isJSDate(Te)?n.ms2DateTimeLocal(+Te):Te}var Se={data:(le||[]).map(function(Te){var Ae=Ee(Te);return ne&&delete Ae.fit,Ae})};if(!ne&&(Se.layout=Ee(he),ee)){var ke=he._size;Se.layout.computed={margin:{b:ke.b,l:ke.l,r:ke.r,t:ke.t}}}return xe&&(Se.frames=Ee(xe)),de&&(Se.config=Ee(K._context,!0)),re==="object"?Se:JSON.stringify(Se)},y.modifyFrames=function(K,ne){var ce,re,ee,de=K._transitionData._frames,le=K._transitionData._frameHash;for(ce=0;ce0&&(K._transitioningWithDuration=!0),K._transitionData._interruptCallbacks.push(function(){re=!0}),ce.redraw&&K._transitionData._interruptCallbacks.push(function(){return v.call("redraw",K)}),K._transitionData._interruptCallbacks.push(function(){K.emit("plotly_transitioninterrupted",[])});var Te=0,Ae=0;function be(){return Te++,function(){Ae++,!re&&Ae===Te&&he(ke)}}ce.runFn(be),setTimeout(be())})}function he(ke){if(K._transitionData)return de(K._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ce.redraw)return v.call("redraw",K)}).then(function(){K._transitioning=!1,K._transitioningWithDuration=!1,K.emit("plotly_transitioned",[])}).then(ke)}function xe(){if(K._transitionData)return K._transitioning=!1,ee(K._transitionData._interruptCallbacks)}var Ee=[y.previousPromises,xe,ce.prepareFn,y.rehover,y.reselect,le],Se=n.syncOrAsync(Ee,K);return(!Se||!Se.then)&&(Se=Promise.resolve()),Se.then(function(){return K})}y.doCalcdata=function(K,ne){var ce=h.list(K),re=K._fullData,ee=K._fullLayout,de,le,he,xe,Ee=new Array(re.length),Se=(K.calcdata||[]).slice();for(K.calcdata=Ee,ee._numBoxes=0,ee._numViolins=0,ee._violinScaleGroupStats={},K._hmpixcount=0,K._hmlumcount=0,ee._piecolormap={},ee._sunburstcolormap={},ee._treemapcolormap={},ee._iciclecolormap={},ee._funnelareacolormap={},he=0;he=0;xe--)if(vt[xe].enabled){de._indexToPoints=vt[xe]._indexToPoints;break}le&&le.calc&&(st=le.calc(K,de))}(!Array.isArray(st)||!st[0])&&(st=[{x:o,y:o}]),st[0].t||(st[0].t={}),st[0].trace=de,Ee[ze]=st}}for(J(ce,re,ee),he=0;he0?L:1/0},M=i(y,A),R=l.mod(M+1,y.length);return[y[M],y[R]]}function b(c){return Math.abs(c)>1e-10?c:0}function p(c,y,A){y=y||0,A=A||0;for(var M=c.length,R=new Array(M),T=0;TTe?(Ae=de,be=de*Te,Ne=(le-be)/K.h/2,Ie=[re[0],re[1]],Ue=[ee[0]+Ne,ee[1]-Ne]):(Ae=le/Te,be=le,Ne=(de-Ae)/K.w/2,Ie=[re[0]+Ne,re[1]-Ne],Ue=[ee[0],ee[1]]),J.xLength2=Ae,J.yLength2=be,J.xDomain2=Ie,J.yDomain2=Ue;var ze=J.xOffset2=K.l+K.w*Ie[0],$e=J.yOffset2=K.t+K.h*(1-Ue[1]),st=J.radius=Ae/Ee,vt=J.innerRadius=J.getHole(Q)*st,at=J.cx=ze-st*xe[0],nt=J.cy=$e+st*xe[3],mt=J.cxx=at-ze,rt=J.cyy=nt-$e,lt=ne.side,dt;lt==="counterclockwise"?(dt=lt,lt="top"):lt==="clockwise"&&(dt=lt,lt="bottom"),J.radialAxis=J.mockAxis(fe,Q,ne,{_id:"x",side:lt,_trueSide:dt,domain:[vt/K.w,st/K.w]}),J.angularAxis=J.mockAxis(fe,Q,ce,{side:"right",domain:[0,Math.PI],autorange:!1}),J.doAutoRange(fe,Q),J.updateAngularAxis(fe,Q),J.updateRadialAxis(fe,Q),J.updateRadialAxisTitle(fe,Q),J.xaxis=J.mockCartesianAxis(fe,Q,{_id:"x",domain:Ie}),J.yaxis=J.mockCartesianAxis(fe,Q,{_id:"y",domain:Ue});var wt=J.pathSubplot();J.clipPaths.forTraces.select("path").attr("d",wt).attr("transform",v(mt,rt)),oe.frontplot.attr("transform",v(ze,$e)).call(a.setClipUrl,J._hasClipOnAxisFalse?null:J.clipIds.forTraces,J.gd),oe.bg.attr("d",wt).attr("transform",v(at,nt)).call(m.fill,Q.bgcolor)},$.mockAxis=function(fe,Q,J,oe){var K=C.extendFlat({},J,oe);return h(K,Q,fe),K},$.mockCartesianAxis=function(fe,Q,J){var oe=this,K=oe.isSmith,ne=J._id,ce=C.extendFlat({type:"linear"},J);o(ce,fe);var re={x:[0,2],y:[1,3]};return ce.setRange=function(){var ee=oe.sectorBBox,de=re[ne],le=oe.radialAxis._rl,he=(le[1]-le[0])/(1-oe.getHole(Q));ce.range=[ee[de[0]]*he,ee[de[1]]*he]},ce.isPtWithinRange=ne==="x"&&!K?function(ee){return oe.isPtInside(ee)}:function(){return!0},ce.setRange(),ce.setScale(),ce},$.doAutoRange=function(fe,Q){var J=this,oe=J.gd,K=J.radialAxis,ne=J.getRadial(Q);f(oe,K);var ce=K.range;if(ne.range=ce.slice(),ne._input.range=ce.slice(),K._rl=[K.r2l(ce[0],null,"gregorian"),K.r2l(ce[1],null,"gregorian")],K.minallowed!==void 0){var re=K.r2l(K.minallowed);K._rl[0]>K._rl[1]?K._rl[1]=Math.max(K._rl[1],re):K._rl[0]=Math.max(K._rl[0],re)}if(K.maxallowed!==void 0){var ee=K.r2l(K.maxallowed);K._rl[0]90&&le<=270&&(he.tickangle=180);var Se=Ee?function(st){var vt=B(J,k([st.x,0]));return v(vt[0]-re,vt[1]-ee)}:function(st){return v(he.l2p(st.x)+ce,0)},ke=Ee?function(st){return N(J,st.x,-1/0,1/0)}:function(st){return J.pathArc(he.r2p(st.x)+ce)},Te=Z(de);if(J.radialTickLayout!==Te&&(K["radial-axis"].selectAll(".xtick").remove(),J.radialTickLayout=Te),xe){he.setScale();var Ae=0,be=Ee?(he.tickvals||[]).filter(function(st){return st>=0}).map(function(st){return s.tickText(he,st,!0,!1)}):s.calcTicks(he),Ie=Ee?be:s.clipEnds(he,be),Ue=s.getTickSigns(he)[2];Ee&&((he.ticks==="top"&&he.side==="bottom"||he.ticks==="bottom"&&he.side==="top")&&(Ue=-Ue),he.ticks==="top"&&he.side==="top"&&(Ae=-he.ticklen),he.ticks==="bottom"&&he.side==="bottom"&&(Ae=he.ticklen)),s.drawTicks(oe,he,{vals:be,layer:K["radial-axis"],path:s.makeTickPath(he,0,Ue),transFn:Se,crisp:!1}),s.drawGrid(oe,he,{vals:Ie,layer:K["radial-grid"],path:ke,transFn:C.noop,crisp:!1}),s.drawLabels(oe,he,{vals:be,layer:K["radial-axis"],transFn:Se,labelFns:s.makeLabelFns(he,Ae)})}var Ne=J.radialAxisAngle=J.vangles?W(ae(H(de.angle),J.vangles)):de.angle,ze=v(re,ee),$e=ze+w(-Ne);ie(K["radial-axis"],xe&&(de.showticklabels||de.ticks),{transform:$e}),ie(K["radial-grid"],xe&&de.showgrid,{transform:Ee?"":ze}),ie(K["radial-line"].select("line"),xe&&de.showline,{x1:Ee?-ne:ce,y1:0,x2:ne,y2:0,transform:$e}).attr("stroke-width",de.linewidth).call(m.stroke,de.linecolor)},$.updateRadialAxisTitle=function(fe,Q,J){if(!this.isSmith){var oe=this,K=oe.gd,ne=oe.radius,ce=oe.cx,re=oe.cy,ee=oe.getRadial(Q),de=oe.id+"title",le=0;if(ee.title){var he=a.bBox(oe.layers["radial-axis"].node()).height,xe=ee.title.font.size,Ee=ee.side;le=Ee==="top"?xe:Ee==="counterclockwise"?-(he+xe*.4):he+xe*.8}var Se=J!==void 0?J:oe.radialAxisAngle,ke=H(Se),Te=Math.cos(ke),Ae=Math.sin(ke),be=ce+ne/2*Te+le*Ae,Ie=re-ne/2*Ae+le*Te;oe.layers["radial-axis-title"]=E.draw(K,de,{propContainer:ee,propName:oe.id+".radialaxis.title",placeholder:G(K,"Click to enter radial axis title"),attributes:{x:be,y:Ie,"text-anchor":"middle"},transform:{rotate:-Se}})}},$.updateAngularAxis=function(fe,Q){var J=this,oe=J.gd,K=J.layers,ne=J.radius,ce=J.innerRadius,re=J.cx,ee=J.cy,de=J.getAngular(Q),le=J.angularAxis,he=J.isSmith;he||(J.fillViewInitialKey("angularaxis.rotation",de.rotation),le.setGeometry(),le.setScale());var xe=he?function(vt){var at=B(J,k([0,vt.x]));return Math.atan2(at[0]-re,at[1]-ee)-Math.PI/2}:function(vt){return le.t2g(vt.x)};le.type==="linear"&&le.thetaunit==="radians"&&(le.tick0=W(le.tick0),le.dtick=W(le.dtick));var Ee=function(vt){return v(re+ne*Math.cos(vt),ee-ne*Math.sin(vt))},Se=he?function(vt){var at=B(J,k([0,vt.x]));return v(at[0],at[1])}:function(vt){return Ee(xe(vt))},ke=he?function(vt){var at=B(J,k([0,vt.x])),nt=Math.atan2(at[0]-re,at[1]-ee)-Math.PI/2;return v(at[0],at[1])+w(-W(nt))}:function(vt){var at=xe(vt);return Ee(at)+w(-W(at))},Te=he?function(vt){return I(J,vt.x,0,1/0)}:function(vt){var at=xe(vt),nt=Math.cos(at),mt=Math.sin(at);return"M"+[re+ce*nt,ee-ce*mt]+"L"+[re+ne*nt,ee-ne*mt]},Ae=s.makeLabelFns(le,0),be=Ae.labelStandoff,Ie={};Ie.xFn=function(vt){var at=xe(vt);return Math.cos(at)*be},Ie.yFn=function(vt){var at=xe(vt),nt=Math.sin(at)>0?.2:1;return-Math.sin(at)*(be+vt.fontSize*nt)+Math.abs(Math.cos(at))*(vt.fontSize*T)},Ie.anchorFn=function(vt){var at=xe(vt),nt=Math.cos(at);return Math.abs(nt)<.1?"middle":nt>0?"start":"end"},Ie.heightFn=function(vt,at,nt){var mt=xe(vt);return-.5*(1+Math.sin(mt))*nt};var Ue=Z(de);J.angularTickLayout!==Ue&&(K["angular-axis"].selectAll("."+le._id+"tick").remove(),J.angularTickLayout=Ue);var Ne=he?[1/0].concat(le.tickvals||[]).map(function(vt){return s.tickText(le,vt,!0,!1)}):s.calcTicks(le);he&&(Ne[0].text="∞",Ne[0].fontSize*=1.75);var ze;if(Q.gridshape==="linear"?(ze=Ne.map(xe),C.angleDelta(ze[0],ze[1])<0&&(ze=ze.slice().reverse())):ze=null,J.vangles=ze,le.type==="category"&&(Ne=Ne.filter(function(vt){return C.isAngleInsideSector(xe(vt),J.sectorInRad)})),le.visible){var $e=le.ticks==="inside"?-1:1,st=(le.linewidth||1)/2;s.drawTicks(oe,le,{vals:Ne,layer:K["angular-axis"],path:"M"+$e*st+",0h"+$e*le.ticklen,transFn:ke,crisp:!1}),s.drawGrid(oe,le,{vals:Ne,layer:K["angular-grid"],path:Te,transFn:C.noop,crisp:!1}),s.drawLabels(oe,le,{vals:Ne,layer:K["angular-axis"],repositionOnUpdate:!0,transFn:Se,labelFns:Ie})}ie(K["angular-line"].select("path"),de.showline,{d:J.pathSubplot(),transform:v(re,ee)}).attr("stroke-width",de.linewidth).call(m.stroke,de.linecolor)},$.updateFx=function(fe,Q){if(!this.gd._context.staticPlot){var J=!this.isSmith;J&&(this.updateAngularDrag(fe),this.updateRadialDrag(fe,Q,0),this.updateRadialDrag(fe,Q,1)),this.updateHoverAndMainDrag(fe)}},$.updateHoverAndMainDrag=function(fe){var Q=this,J=Q.isSmith,oe=Q.gd,K=Q.layers,ne=fe._zoomlayer,ce=L.MINZOOM,re=L.OFFEDGE,ee=Q.radius,de=Q.innerRadius,le=Q.cx,he=Q.cy,xe=Q.cxx,Ee=Q.cyy,Se=Q.sectorInRad,ke=Q.vangles,Te=Q.radialAxis,Ae=P.clampTiny,be=P.findXYatLength,Ie=P.findEnclosingVertexAngles,Ue=L.cornerHalfWidth,Ne=L.cornerLen/2,ze,$e,st=u.makeDragger(K,"path","maindrag",fe.dragmode===!1?"none":"crosshair");l.select(st).attr("d",Q.pathSubplot()).attr("transform",v(le,he)),st.onmousemove=function(xt){p.hover(oe,xt,Q.id),oe._fullLayout._lasthover=st,oe._fullLayout._hoversubplot=Q.id},st.onmouseout=function(xt){oe._dragging||b.unhover(oe,xt)};var vt={element:st,gd:oe,subplot:Q.id,plotinfo:{id:Q.id,xaxis:Q.xaxis,yaxis:Q.yaxis},xaxes:[Q.xaxis],yaxes:[Q.yaxis]},at,nt,mt,rt,lt,dt,wt,et,Be;function Ye(xt,Lt){return Math.sqrt(xt*xt+Lt*Lt)}function Ze(xt,Lt){return Ye(xt-xe,Lt-Ee)}function We(xt,Lt){return Math.atan2(Ee-Lt,xt-xe)}function Fe(xt,Lt){return[xt*Math.cos(Lt),xt*Math.sin(-Lt)]}function Me(xt,Lt){if(xt===0)return Q.pathSector(2*Ue);var Xt=Ne/xt,dr=Lt-Xt,Tt=Lt+Xt,Kt=Math.max(0,Math.min(xt,ee)),qt=Kt-Ue,br=Kt+Ue;return"M"+Fe(qt,dr)+"A"+[qt,qt]+" 0,0,0 "+Fe(qt,Tt)+"L"+Fe(br,Tt)+"A"+[br,br]+" 0,0,1 "+Fe(br,dr)+"Z"}function we(xt,Lt,Xt){if(xt===0)return Q.pathSector(2*Ue);var dr=Fe(xt,Lt),Tt=Fe(xt,Xt),Kt=Ae((dr[0]+Tt[0])/2),qt=Ae((dr[1]+Tt[1])/2),br,sr;if(Kt&&qt){var Ct=qt/Kt,ht=-1/Ct,Mt=be(Ue,Ct,Kt,qt);br=be(Ne,ht,Mt[0][0],Mt[0][1]),sr=be(Ne,ht,Mt[1][0],Mt[1][1])}else{var Rt,zt;qt?(Rt=Ne,zt=Ue):(Rt=Ue,zt=Ne),br=[[Kt-Rt,qt-zt],[Kt+Rt,qt-zt]],sr=[[Kt-Rt,qt+zt],[Kt+Rt,qt+zt]]}return"M"+br.join("L")+"L"+sr.reverse().join("L")+"Z"}function Re(){mt=null,rt=null,lt=Q.pathSubplot(),dt=!1;var xt=oe._fullLayout[Q.id];wt=S(xt.bgcolor).getLuminance(),et=u.makeZoombox(ne,wt,le,he,lt),et.attr("fill-rule","evenodd"),Be=u.makeCorners(ne,le,he),y(oe)}function Pe(xt,Lt){return Lt=Math.max(Math.min(Lt,ee),de),xtce?(xt-1&&xt===1&&c(Lt,oe,[Q.xaxis],[Q.yaxis],Q.id,vt),Xt.indexOf("event")>-1&&p.click(oe,Lt,Q.id)}vt.prepFn=function(xt,Lt,Xt){var dr=oe._fullLayout.dragmode,Tt=st.getBoundingClientRect();oe._fullLayout._calcInverseTransform(oe);var Kt=oe._fullLayout._invTransform;ze=oe._fullLayout._invScaleX,$e=oe._fullLayout._invScaleY;var qt=C.apply3DTransform(Kt)(Lt-Tt.left,Xt-Tt.top);if(at=qt[0],nt=qt[1],ke){var br=P.findPolygonOffset(ee,Se[0],Se[1],ke);at+=xe+br[0],nt+=Ee+br[1]}switch(dr){case"zoom":vt.clickFn=Vt,J||(ke?vt.moveFn=yt:vt.moveFn=Je,vt.doneFn=ut,Re());break;case"select":case"lasso":g(xt,Lt,Xt,vt,dr);break}},b.init(vt)},$.updateRadialDrag=function(fe,Q,J){var oe=this,K=oe.gd,ne=oe.layers,ce=oe.radius,re=oe.innerRadius,ee=oe.cx,de=oe.cy,le=oe.radialAxis,he=L.radialDragBoxSize,xe=he/2;if(!le.visible)return;var Ee=H(oe.radialAxisAngle),Se=le._rl,ke=Se[0],Te=Se[1],Ae=Se[J],be=.75*(Se[1]-Se[0])/(1-oe.getHole(Q))/ce,Ie,Ue,Ne;J?(Ie=ee+(ce+xe)*Math.cos(Ee),Ue=de-(ce+xe)*Math.sin(Ee),Ne="radialdrag"):(Ie=ee+(re-xe)*Math.cos(Ee),Ue=de-(re-xe)*Math.sin(Ee),Ne="radialdrag-inner");var ze=u.makeRectDragger(ne,Ne,"crosshair",-xe,-xe,he,he),$e={element:ze,gd:K};fe.dragmode===!1&&($e.dragmode=!1),ie(l.select(ze),le.visible&&re0!=(J?at>ke:at=90||K>90&&ne>=450?Ee=1:re<=0&&de<=0?Ee=0:Ee=Math.max(re,de),K<=180&&ne>=180||K>180&&ne>=540?le=-1:ce>=0&&ee>=0?le=0:le=Math.min(ce,ee),K<=270&&ne>=270||K>270&&ne>=630?he=-1:re>=0&&de>=0?he=0:he=Math.min(re,de),ne>=360?xe=1:ce<=0&&ee<=0?xe=0:xe=Math.max(ce,ee),[le,he,xe,Ee]}function ae(fe,Q){var J=function(K){return C.angleDist(fe,K)},oe=C.findIndexOfMin(Q,J);return Q[oe]}function ie(fe,Q,J){return Q?(fe.attr("display",null),fe.attr(J)):fe&&fe.attr("display","none"),fe}},57696:function(D,O,t){var l=t(3400),S=t(78344),i=l.deg2rad,C=l.rad2deg;D.exports=function(s,o,h){switch(S(s,h),s._id){case"x":case"radialaxis":w(s,o);break;case"angularaxis":a(s,o);break}};function w(n,s){var o=s._subplot;n.setGeometry=function(){var h=n._rl[0],f=n._rl[1],u=o.innerRadius,b=(o.radius-u)/(f-h),p=u/b,E=h>f?function(g){return g<=0}:function(g){return g>=0};n.c2g=function(g){var c=n.c2l(g)-h;return(E(c)?c:0)+p},n.g2c=function(g){return n.l2c(g+h-p)},n.g2p=function(g){return g*b},n.c2p=function(g){return n.g2p(n.c2g(g))}}}function v(n,s){return s==="degrees"?i(n):n}function m(n,s){return s==="degrees"?C(n):n}function a(n,s){var o=n.type;if(o==="linear"){var h=n.d2c,f=n.c2d;n.d2c=function(u,b){return v(h(u),b)},n.c2d=function(u,b){return f(m(u,b))}}n.makeCalcdata=function(u,b){var p=u[b],E=u._length,g,c,y=function(L){return n.d2c(L,u.thetaunit)};if(p)for(g=new Array(E),c=0;c0?1:0}function t(w){var v=w[0],m=w[1];if(!isFinite(v)||!isFinite(m))return[1,0];var a=(v+1)*(v+1)+m*m;return[(v*v+m*m-1)/a,2*m/a]}function l(w,v){var m=v[0],a=v[1];return[m*w.radius+w.cx,-a*w.radius+w.cy]}function S(w,v){return v*w.radius}function i(w,v,m,a){var n=l(w,t([m,v])),s=n[0],o=n[1],h=l(w,t([a,v])),f=h[0],u=h[1];if(v===0)return["M"+s+","+o,"L"+f+","+u].join(" ");var b=S(w,1/Math.abs(v));return["M"+s+","+o,"A"+b+","+b+" 0 0,"+(v<0?1:0)+" "+f+","+u].join(" ")}function C(w,v,m,a){var n=S(w,1/(v+1)),s=l(w,t([v,m])),o=s[0],h=s[1],f=l(w,t([v,a])),u=f[0],b=f[1];if(O(m)!==O(a)){var p=l(w,t([v,0])),E=p[0],g=p[1];return["M"+o+","+h,"A"+n+","+n+" 0 0,"+(00){for(var v=[],m=0;m=c&&(T.min=0,L.min=0,P.min=0,u.aaxis&&delete u.aaxis.min,u.baxis&&delete u.baxis.min,u.caxis&&delete u.caxis.min)}function f(u,b,p,E){var g=s[b._name];function c(d,k){return i.coerce(u,b,g,d,k)}c("uirevision",E.uirevision),b.type="linear";var y=c("color"),A=y!==g.color.dflt?y:p.font.color,M=b._name,R=M.charAt(0).toUpperCase(),T="Component "+R,L=c("title.text",T);b._hovertitle=L===T?L:R,i.coerceFont(c,"title.font",{family:p.font.family,size:i.bigFont(p.font.size),color:A}),c("min"),a(u,b,c,"linear"),v(u,b,c,"linear"),w(u,b,c,"linear",{noAutotickangles:!0}),m(u,b,c,{outerTicks:!0});var P=c("showticklabels");P&&(i.coerceFont(c,"tickfont",{family:p.font.family,size:p.font.size,color:A}),c("tickangle"),c("tickformat")),n(u,b,c,{dfltColor:y,bgColor:p.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:g}),c("hoverformat"),c("layer")}},24696:function(D,O,t){var l=t(33428),S=t(49760),i=t(24040),C=t(3400),w=C.strTranslate,v=C._,m=t(76308),a=t(43616),n=t(78344),s=t(92880).extendFlat,o=t(7316),h=t(54460),f=t(86476),u=t(93024),b=t(72760),p=b.freeMode,E=b.rectMode,g=t(81668),c=t(22676).prepSelect,y=t(22676).selectOnClick,A=t(22676).clearOutline,M=t(22676).clearSelectionsCache,R=t(33816);function T(W,V){this.id=W.id,this.graphDiv=W.graphDiv,this.init(V),this.makeFramework(V),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}D.exports=T;var L=T.prototype;L.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},L.plot=function(W,V){var $=this,Z=V[$.id],q=V._size;$._hasClipOnAxisFalse=!1;for(var ae=0;aeP*J?(le=J,de=le*P):(de=Q,le=de/P),he=ie*de/Q,xe=fe*le/J,re=V.l+V.w*q-de/2,ee=V.t+V.h*(1-ae)-le/2,$.x0=re,$.y0=ee,$.w=de,$.h=le,$.sum=oe,$.xaxis={type:"linear",range:[K+2*ce-oe,oe-K-2*ne],domain:[q-he/2,q+he/2],_id:"x"},n($.xaxis,$.graphDiv._fullLayout),$.xaxis.setScale(),$.xaxis.isPtWithinRange=function($e){return $e.a>=$.aaxis.range[0]&&$e.a<=$.aaxis.range[1]&&$e.b>=$.baxis.range[1]&&$e.b<=$.baxis.range[0]&&$e.c>=$.caxis.range[1]&&$e.c<=$.caxis.range[0]},$.yaxis={type:"linear",range:[K,oe-ne-ce],domain:[ae-xe/2,ae+xe/2],_id:"y"},n($.yaxis,$.graphDiv._fullLayout),$.yaxis.setScale(),$.yaxis.isPtWithinRange=function(){return!0};var Ee=$.yaxis.domain[0],Se=$.aaxis=s({},W.aaxis,{range:[K,oe-ne-ce],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Ee,Ee+xe*P],anchor:"free",position:0,_id:"y",_length:de});n(Se,$.graphDiv._fullLayout),Se.setScale();var ke=$.baxis=s({},W.baxis,{range:[oe-K-ce,ne],side:"bottom",domain:$.xaxis.domain,anchor:"free",position:0,_id:"x",_length:de});n(ke,$.graphDiv._fullLayout),ke.setScale();var Te=$.caxis=s({},W.caxis,{range:[oe-K-ne,ce],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Ee,Ee+xe*P],anchor:"free",position:0,_id:"y",_length:de});n(Te,$.graphDiv._fullLayout),Te.setScale();var Ae="M"+re+","+(ee+le)+"h"+de+"l-"+de/2+",-"+le+"Z";$.clipDef.select("path").attr("d",Ae),$.layers.plotbg.select("path").attr("d",Ae);var be="M0,"+le+"h"+de+"l-"+de/2+",-"+le+"Z";$.clipDefRelative.select("path").attr("d",be);var Ie=w(re,ee);$.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ie),$.clipDefRelative.select("path").attr("transform",null);var Ue=w(re-ke._offset,ee+le);$.layers.baxis.attr("transform",Ue),$.layers.bgrid.attr("transform",Ue);var Ne=w(re+de/2,ee)+"rotate(30)"+w(0,-Se._offset);$.layers.aaxis.attr("transform",Ne),$.layers.agrid.attr("transform",Ne);var ze=w(re+de/2,ee)+"rotate(-30)"+w(0,-Te._offset);$.layers.caxis.attr("transform",ze),$.layers.cgrid.attr("transform",ze),$.drawAxes(!0),$.layers.aline.select("path").attr("d",Se.showline?"M"+re+","+(ee+le)+"l"+de/2+",-"+le:"M0,0").call(m.stroke,Se.linecolor||"#000").style("stroke-width",(Se.linewidth||0)+"px"),$.layers.bline.select("path").attr("d",ke.showline?"M"+re+","+(ee+le)+"h"+de:"M0,0").call(m.stroke,ke.linecolor||"#000").style("stroke-width",(ke.linewidth||0)+"px"),$.layers.cline.select("path").attr("d",Te.showline?"M"+(re+de/2)+","+ee+"l"+de/2+","+le:"M0,0").call(m.stroke,Te.linecolor||"#000").style("stroke-width",(Te.linewidth||0)+"px"),$.graphDiv._context.staticPlot||$.initInteractions(),a.setClipUrl($.layers.frontplot,$._hasClipOnAxisFalse?null:$.clipId,$.graphDiv)},L.drawAxes=function(W){var V=this,$=V.graphDiv,Z=V.id.substr(7)+"title",q=V.layers,ae=V.aaxis,ie=V.baxis,fe=V.caxis;if(V.drawAx(ae),V.drawAx(ie),V.drawAx(fe),W){var Q=Math.max(ae.showticklabels?ae.tickfont.size/2:0,(fe.showticklabels?fe.tickfont.size*.75:0)+(fe.ticks==="outside"?fe.ticklen*.87:0)),J=(ie.showticklabels?ie.tickfont.size:0)+(ie.ticks==="outside"?ie.ticklen:0)+3;q["a-title"]=g.draw($,"a"+Z,{propContainer:ae,propName:V.id+".aaxis.title",placeholder:v($,"Click to enter Component A title"),attributes:{x:V.x0+V.w/2,y:V.y0-ae.title.font.size/3-Q,"text-anchor":"middle"}}),q["b-title"]=g.draw($,"b"+Z,{propContainer:ie,propName:V.id+".baxis.title",placeholder:v($,"Click to enter Component B title"),attributes:{x:V.x0-J,y:V.y0+V.h+ie.title.font.size*.83+J,"text-anchor":"middle"}}),q["c-title"]=g.draw($,"c"+Z,{propContainer:fe,propName:V.id+".caxis.title",placeholder:v($,"Click to enter Component C title"),attributes:{x:V.x0+V.w+J,y:V.y0+V.h+fe.title.font.size*.83+J,"text-anchor":"middle"}})}},L.drawAx=function(W){var V=this,$=V.graphDiv,Z=W._name,q=Z.charAt(0),ae=W._id,ie=V.layers[Z],fe=30,Q=q+"tickLayout",J=d(W);V[Q]!==J&&(ie.selectAll("."+ae+"tick").remove(),V[Q]=J),W.setScale();var oe=h.calcTicks(W),K=h.clipEnds(W,oe),ne=h.makeTransTickFn(W),ce=h.getTickSigns(W)[2],re=C.deg2rad(fe),ee=ce*(W.linewidth||1)/2,de=ce*W.ticklen,le=V.w,he=V.h,xe=q==="b"?"M0,"+ee+"l"+Math.sin(re)*de+","+Math.cos(re)*de:"M"+ee+",0l"+Math.cos(re)*de+","+-Math.sin(re)*de,Ee={a:"M0,0l"+he+",-"+le/2,b:"M0,0l-"+le/2+",-"+he,c:"M0,0l-"+he+","+le/2}[q];h.drawTicks($,W,{vals:W.ticks==="inside"?K:oe,layer:ie,path:xe,transFn:ne,crisp:!1}),h.drawGrid($,W,{vals:K,layer:V.layers[q+"grid"],path:Ee,transFn:ne,crisp:!1}),h.drawLabels($,W,{vals:oe,layer:ie,transFn:ne,labelFns:h.makeLabelFns(W,0,fe)})};function d(W){return W.ticks+String(W.ticklen)+String(W.showticklabels)}var k=R.MINZOOM/2+.87,I="m-0.87,.5h"+k+"v3h-"+(k+5.2)+"l"+(k/2+2.6)+",-"+(k*.87+4.5)+"l2.6,1.5l-"+k/2+","+k*.87+"Z",N="m0.87,.5h-"+k+"v3h"+(k+5.2)+"l-"+(k/2+2.6)+",-"+(k*.87+4.5)+"l-2.6,1.5l"+k/2+","+k*.87+"Z",B="m0,1l"+k/2+","+k*.87+"l2.6,-1.5l-"+(k/2+2.6)+",-"+(k*.87+4.5)+"l-"+(k/2+2.6)+","+(k*.87+4.5)+"l2.6,1.5l"+k/2+",-"+k*.87+"Z",G="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",U=!0;L.clearOutline=function(){M(this.dragOptions),A(this.dragOptions.gd)},L.initInteractions=function(){var W=this,V=W.layers.plotbg.select("path").node(),$=W.graphDiv,Z=$._fullLayout._zoomlayer,q,ae;this.dragOptions={element:V,gd:$,plotinfo:{id:W.id,domain:$._fullLayout[W.id].domain,xaxis:W.xaxis,yaxis:W.yaxis},subplot:W.id,prepFn:function(Ue,Ne,ze){W.dragOptions.xaxes=[W.xaxis],W.dragOptions.yaxes=[W.yaxis],q=$._fullLayout._invScaleX,ae=$._fullLayout._invScaleY;var $e=W.dragOptions.dragmode=$._fullLayout.dragmode;p($e)?W.dragOptions.minDrag=1:W.dragOptions.minDrag=void 0,$e==="zoom"?(W.dragOptions.moveFn=ke,W.dragOptions.clickFn=le,W.dragOptions.doneFn=Te,he(Ue,Ne,ze)):$e==="pan"?(W.dragOptions.moveFn=be,W.dragOptions.clickFn=le,W.dragOptions.doneFn=Ie,Ae(),W.clearOutline($)):(E($e)||p($e))&&c(Ue,Ne,ze,W.dragOptions,$e)}};var ie,fe,Q,J,oe,K,ne,ce,re,ee;function de(Ue){var Ne={};return Ne[W.id+".aaxis.min"]=Ue.a,Ne[W.id+".baxis.min"]=Ue.b,Ne[W.id+".caxis.min"]=Ue.c,Ne}function le(Ue,Ne){var ze=$._fullLayout.clickmode;H($),Ue===2&&($.emit("plotly_doubleclick",null),i.call("_guiRelayout",$,de({a:0,b:0,c:0}))),ze.indexOf("select")>-1&&Ue===1&&y(Ne,$,[W.xaxis],[W.yaxis],W.id,W.dragOptions),ze.indexOf("event")>-1&&u.click($,Ne,W.id)}function he(Ue,Ne,ze){var $e=V.getBoundingClientRect();ie=Ne-$e.left,fe=ze-$e.top,$._fullLayout._calcInverseTransform($);var st=$._fullLayout._invTransform,vt=C.apply3DTransform(st)(ie,fe);ie=vt[0],fe=vt[1],Q={a:W.aaxis.range[0],b:W.baxis.range[1],c:W.caxis.range[1]},oe=Q,J=W.aaxis.range[1]-Q.a,K=S(W.graphDiv._fullLayout[W.id].bgcolor).getLuminance(),ne="M0,"+W.h+"L"+W.w/2+", 0L"+W.w+","+W.h+"Z",ce=!1,re=Z.append("path").attr("class","zoombox").attr("transform",w(W.x0,W.y0)).style({fill:K>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",ne),ee=Z.append("path").attr("class","zoombox-corners").attr("transform",w(W.x0,W.y0)).style({fill:m.background,stroke:m.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),W.clearOutline($)}function xe(Ue,Ne){return 1-Ne/W.h}function Ee(Ue,Ne){return 1-(Ue+(W.h-Ne)/Math.sqrt(3))/W.w}function Se(Ue,Ne){return(Ue-(W.h-Ne)/Math.sqrt(3))/W.w}function ke(Ue,Ne){var ze=ie+Ue*q,$e=fe+Ne*ae,st=Math.max(0,Math.min(1,xe(ie,fe),xe(ze,$e))),vt=Math.max(0,Math.min(1,Ee(ie,fe),Ee(ze,$e))),at=Math.max(0,Math.min(1,Se(ie,fe),Se(ze,$e))),nt=(st/2+at)*W.w,mt=(1-st/2-vt)*W.w,rt=(nt+mt)/2,lt=mt-nt,dt=(1-st)*W.h,wt=dt-lt/P;lt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ee.transition().style("opacity",1).duration(200),ce=!0),$.emit("plotly_relayouting",de(oe))}function Te(){H($),oe!==Q&&(i.call("_guiRelayout",$,de(oe)),U&&$.data&&$._context.showTips&&(C.notifier(v($,"Double-click to zoom back out"),"long"),U=!1))}function Ae(){Q={a:W.aaxis.range[0],b:W.baxis.range[1],c:W.caxis.range[1]},oe=Q}function be(Ue,Ne){var ze=Ue/W.xaxis._m,$e=Ne/W.yaxis._m;oe={a:Q.a-$e,b:Q.b+(ze+$e)/2,c:Q.c-(ze-$e)/2};var st=[oe.a,oe.b,oe.c].sort(C.sorterAsc),vt={a:st.indexOf(oe.a),b:st.indexOf(oe.b),c:st.indexOf(oe.c)};st[0]<0&&(st[1]+st[0]/2<0?(st[2]+=st[0]+st[1],st[0]=st[1]=0):(st[2]+=st[0]/2,st[1]+=st[0]/2,st[0]=0),oe={a:st[vt.a],b:st[vt.b],c:st[vt.c]},Ne=(Q.a-oe.a)*W.yaxis._m,Ue=(Q.c-oe.c-Q.b+oe.b)*W.xaxis._m);var at=w(W.x0+Ue,W.y0+Ne);W.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",at);var nt=w(-Ue,-Ne);W.clipDefRelative.select("path").attr("transform",nt),W.aaxis.range=[oe.a,W.sum-oe.b-oe.c],W.baxis.range=[W.sum-oe.a-oe.c,oe.b],W.caxis.range=[W.sum-oe.a-oe.b,oe.c],W.drawAxes(!1),W._hasClipOnAxisFalse&&W.plotContainer.select(".scatterlayer").selectAll(".trace").call(a.hideOutsideRangePoints,W),$.emit("plotly_relayouting",de(oe))}function Ie(){i.call("_guiRelayout",$,de(oe))}V.onmousemove=function(Ue){u.hover($,Ue,W.id),$._fullLayout._lasthover=V,$._fullLayout._hoversubplot=W.id},V.onmouseout=function(Ue){$._dragging||f.unhover($,Ue)},f.init(this.dragOptions)};function H(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}},24040:function(D,O,t){var l=t(24248),S=t(16628),i=t(52416),C=t(63620),w=t(52200).addStyleRule,v=t(92880),m=t(45464),a=t(64859),n=v.extendFlat,s=v.extendDeepAll;O.modules={},O.allCategories={},O.allTypes=[],O.subplotsRegistry={},O.transformsRegistry={},O.componentsRegistry={},O.layoutArrayContainers=[],O.layoutArrayRegexes=[],O.traceLayoutAttributes={},O.localeRegistry={},O.apiMethodRegistry={},O.collectableSubplotTypes=null,O.register=function(M){if(O.collectableSubplotTypes=null,M)M&&!Array.isArray(M)&&(M=[M]);else throw new Error("No argument passed to Plotly.register.");for(var R=0;R-1}D.exports=function(a,n){var s,o=a.data,h=a.layout,f=C([],o),u=C({},h,w(n.tileClass)),b=a._context||{};if(n.width&&(u.width=n.width),n.height&&(u.height=n.height),n.tileClass==="thumbnail"||n.tileClass==="themes__thumb"){u.annotations=[];var p=Object.keys(u);for(s=0;s")!==-1?"":h.html(u).text()});return h.remove(),f}function s(o){return o.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}D.exports=function(h,f,u){var b=h._fullLayout,p=b._paper,E=b._toppaper,g=b.width,c=b.height,y;p.insert("rect",":first-child").call(i.setRect,0,0,g,c).call(C.fill,b.paper_bgcolor);var A=b._basePlotModules||[];for(y=0;y$+W||!l(V))}for(var q=0;q=0)return b}else if(typeof b=="string"&&(b=b.trim(),b.slice(-1)==="%"&&l(b.slice(0,-1))&&(b=+b.slice(0,-1),b>=0)))return b+"%"}function u(b,p,E,g,c,y){y=y||{};var A=y.moduleHasSelected!==!1,M=y.moduleHasUnselected!==!1,R=y.moduleHasConstrain!==!1,T=y.moduleHasCliponaxis!==!1,L=y.moduleHasTextangle!==!1,P=y.moduleHasInsideanchor!==!1,d=!!y.hasPathbar,k=Array.isArray(c)||c==="auto",I=k||c==="inside",N=k||c==="outside";if(I||N){var B=s(g,"textfont",E.font),G=S.extendFlat({},B),U=b.textfont&&b.textfont.color,H=!U;if(H&&delete G.color,s(g,"insidetextfont",G),d){var W=S.extendFlat({},B);H&&delete W.color,s(g,"pathbar.textfont",W)}N&&s(g,"outsidetextfont",B),A&&g("selected.textfont.color"),M&&g("unselected.textfont.color"),R&&g("constraintext"),T&&g("cliponaxis"),L&&g("textangle"),g("texttemplate")}I&&P&&g("insidetextanchor")}D.exports={supplyDefaults:o,crossTraceDefaults:h,handleText:u,validateCornerradius:f}},52160:function(D){D.exports=function(t,l,S){return t.x="xVal"in l?l.xVal:l.x,t.y="yVal"in l?l.yVal:l.y,l.xa&&(t.xaxis=l.xa),l.ya&&(t.yaxis=l.ya),S.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},60444:function(D,O,t){var l=t(38248),S=t(49760),i=t(3400).isArrayOrTypedArray;O.coerceString=function(C,w,v){if(typeof w=="string"){if(w||!C.noBlank)return w}else if((typeof w=="number"||w===!0)&&!C.strict)return String(w);return v!==void 0?v:C.dflt},O.coerceNumber=function(C,w,v){if(l(w)){w=+w;var m=C.min,a=C.max,n=m!==void 0&&wa;if(!n)return w}return v!==void 0?v:C.dflt},O.coerceColor=function(C,w,v){return S(w).isValid()?w:v!==void 0?v:C.dflt},O.coerceEnumerated=function(C,w,v){return C.coerceNumber&&(w=+w),C.values.indexOf(w)!==-1?w:v!==void 0?v:C.dflt},O.getValue=function(C,w){var v;return i(C)?w0?xe+=Ee:T<0&&(xe-=Ee)}return xe}function fe(he){var xe=T,Ee=he.b,Se=ie(he);return l.inbox(Ee-xe,Se-xe,A+(Se-xe)/(Se-Ee)-1)}function Q(he){var xe=T,Ee=he.b,Se=ie(he);return l.inbox(Ee-xe,Se-xe,M+(Se-xe)/(Se-Ee)-1)}var J=o[L+"a"],oe=o[P+"a"];I=Math.abs(J.r2c(J.range[1])-J.r2c(J.range[0]));function K(he){return(d(he)+k(he))/2}var ne=l.getDistanceFunction(u,d,k,K);if(l.getClosest(p,ne,o),o.index!==!1&&p[o.index].p!==m){B||(V=function(he){return Math.min(G(he),he.p-g.bargroupwidth/2)},$=function(he){return Math.max(U(he),he.p+g.bargroupwidth/2)});var ce=o.index,re=p[ce],ee=E.base?re.b+re.s:re.s;o[P+"0"]=o[P+"1"]=oe.c2p(re[P],!0),o[P+"LabelVal"]=ee;var de=g.extents[g.extents.round(re.p)];o[L+"0"]=J.c2p(c?V(re):de[0],!0),o[L+"1"]=J.c2p(c?$(re):de[1],!0);var le=re.orig_p!==void 0;return o[L+"LabelVal"]=le?re.orig_p:re.p,o.labelLabel=v(J,o[L+"LabelVal"],E[L+"hoverformat"]),o.valueLabel=v(oe,o[P+"LabelVal"],E[P+"hoverformat"]),o.baseLabel=v(oe,re.b,E[P+"hoverformat"]),o.spikeDistance=(Q(re)+ae(re))/2,o[L+"Spike"]=J.c2p(re.p,!0),C(re,E,o),o.hovertemplate=E.hovertemplate,o}}function s(o,h){var f=h.mcc||o.marker.color,u=h.mlcc||o.marker.line.color,b=w(o,h);if(i.opacity(f))return f;if(i.opacity(u)&&b)return u}D.exports={hoverPoints:a,hoverOnBars:n,getTraceColor:s}},51132:function(D,O,t){D.exports={attributes:t(20832),layoutAttributes:t(39324),supplyDefaults:t(31508).supplyDefaults,crossTraceDefaults:t(31508).crossTraceDefaults,supplyLayoutDefaults:t(37156),calc:t(71820),crossTraceCalc:t(96376).crossTraceCalc,colorbar:t(5528),arraysToCalcdata:t(84664),plot:t(98184).plot,style:t(60100).style,styleOnSelect:t(60100).styleOnSelect,hoverPoints:t(63400).hoverPoints,eventData:t(52160),selectPoints:t(45784),moduleType:"trace",name:"bar",basePlotModule:t(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(D){D.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(D,O,t){var l=t(24040),S=t(54460),i=t(3400),C=t(39324),w=t(31508).validateCornerradius;D.exports=function(v,m,a){function n(y,A){return i.coerce(v,m,C,y,A)}for(var s=!1,o=!1,h=!1,f={},u=n("barmode"),b=0;b0)-(q<0)}function R(q,ae){return q0}function d(q,ae,ie,fe,Q,J){var oe=ae.xaxis,K=ae.yaxis,ne=q._fullLayout,ce=q._context.staticPlot;Q||(Q={mode:ne.barmode,norm:ne.barmode,gap:ne.bargap,groupgap:ne.bargroupgap},o("bar",ne));var re=i.makeTraceGroups(fe,ie,"trace bars").each(function(ee){var de=l.select(this),le=ee[0].trace,he=ee[0].t,xe=le.type==="waterfall",Ee=le.type==="funnel",Se=le.type==="histogram",ke=le.type==="bar",Te=ke||Ee,Ae=0;xe&&le.connector.visible&&le.connector.mode==="between"&&(Ae=le.connector.line.width/2);var be=le.orientation==="h",Ie=P(Q),Ue=i.ensureSingle(de,"g","points"),Ne=A(le),ze=Ue.selectAll("g.point").data(i.identity,Ne);ze.enter().append("g").classed("point",!0),ze.exit().remove(),ze.each(function(st,vt){var at=l.select(this),nt=T(st,oe,K,be),mt=nt[0][0],rt=nt[0][1],lt=nt[1][0],dt=nt[1][1],wt=(be?rt-mt:dt-lt)===0;wt&&Te&&f.getLineWidth(le,st)&&(wt=!1),wt||(wt=!S(mt)||!S(rt)||!S(lt)||!S(dt)),st.isBlank=wt,wt&&(be?rt=mt:dt=lt),Ae&&!wt&&(be?(mt-=R(mt,rt)*Ae,rt+=R(mt,rt)*Ae):(lt-=R(lt,dt)*Ae,dt+=R(lt,dt)*Ae));var et,Be;if(le.type==="waterfall"){if(!wt){var Ye=le[st.dir].marker;et=Ye.line.width,Be=Ye.color}}else et=f.getLineWidth(le,st),Be=st.mc||le.marker.color;function Ze(ht){var Mt=l.round(et/2%1,2);return Q.gap===0&&Q.groupgap===0?l.round(Math.round(ht)-Mt,2):ht}function We(ht,Mt,Rt){return Rt&&ht===Mt?ht:Math.abs(ht-Mt)>=2?Ze(ht):ht>Mt?Math.ceil(ht):Math.floor(ht)}var Fe=w.opacity(Be),Me=Fe<1||et>.01?Ze:We;q._context.staticPlot||(mt=Me(mt,rt,be),rt=Me(rt,mt,be),lt=Me(lt,dt,!be),dt=Me(dt,lt,!be));var we=be?oe.c2p:K.c2p,Re;st.s0>0?Re=st._sMax:st.s0<0?Re=st._sMin:Re=st.s1>0?st._sMax:st._sMin;function Pe(ht,Mt){if(!ht)return 0;var Rt=Math.abs(be?dt-lt:rt-mt),zt=Math.abs(be?rt-mt:dt-lt),Ft=Me(Math.abs(we(Re,!0)-we(0,!0))),Wt=st.hasB?Math.min(Rt/2,zt/2):Math.min(Rt/2,Ft),jt;if(Mt==="%"){var er=Math.min(50,ht);jt=Rt*(er/100)}else jt=ht;return Me(Math.max(Math.min(jt,Wt),0))}var Ve=ke||Se?Pe(he.cornerradiusvalue,he.cornerradiusform):0,Je,ot,yt="M"+mt+","+lt+"V"+dt+"H"+rt+"V"+lt+"Z",ut=0;if(Ve&&st.s){var It=M(st.s0)===0||M(st.s)===M(st.s0)?st.s1:st.s0;if(ut=Me(st.hasB?0:Math.abs(we(Re,!0)-we(It,!0))),ut0?Math.sqrt(ut*(2*Ve-ut)):0,Tt=Vt>0?Math.max:Math.min;Je="M"+mt+","+lt+"V"+(dt-Xt*xt)+"H"+Tt(rt-(Ve-ut)*Vt,mt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+rt+","+(dt-Ve*xt-dr)+"V"+(lt+Ve*xt+dr)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+Tt(rt-(Ve-ut)*Vt,mt)+","+(lt+Xt*xt)+"Z"}else if(st.hasB)Je="M"+(mt+Ve*Vt)+","+lt+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+mt+","+(lt+Ve*xt)+"V"+(dt-Ve*xt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(mt+Ve*Vt)+","+dt+"H"+(rt-Ve*Vt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+rt+","+(dt-Ve*xt)+"V"+(lt+Ve*xt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(rt-Ve*Vt)+","+lt+"Z";else{ot=Math.abs(dt-lt)+ut;var Kt=ot0?Math.sqrt(ut*(2*Ve-ut)):0,br=xt>0?Math.max:Math.min;Je="M"+(mt+Kt*Vt)+","+lt+"V"+br(dt-(Ve-ut)*xt,lt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(mt+Ve*Vt-qt)+","+dt+"H"+(rt-Ve*Vt+qt)+"A "+Ve+","+Ve+" 0 0 "+Lt+" "+(rt-Kt*Vt)+","+br(dt-(Ve-ut)*xt,lt)+"V"+lt+"Z"}}else Je=yt}else Je=yt;var sr=L(i.ensureSingle(at,"path"),ne,Q,J);if(sr.style("vector-effect",ce?"none":"non-scaling-stroke").attr("d",isNaN((rt-mt)*(dt-lt))||wt&&q._context.staticPlot?"M0,0Z":Je).call(v.setClipUrl,ae.layerClipId,q),!ne.uniformtext.mode&&Ie){var Ct=v.makePointStyleFns(le);v.singlePointStyle(st,sr,le,Ct,q)}k(q,ae,at,ee,vt,mt,rt,lt,dt,Ve,ut,Q,J),ae.layerClipId&&v.hideOutsideRangePoint(st,at.select("text"),oe,K,le.xcalendar,le.ycalendar)});var $e=le.cliponaxis===!1;v.setClipUrl(de,$e?null:ae.layerClipId,q)});m.getComponentMethod("errorbars","plot")(q,re,ae,Q)}function k(q,ae,ie,fe,Q,J,oe,K,ne,ce,re,ee,de){var le=ae.xaxis,he=ae.yaxis,xe=q._fullLayout,Ee;function Se(ot,yt,ut){var It=i.ensureSingle(ot,"text").text(yt).attr({class:"bartext bartext-"+Ee,"text-anchor":"middle","data-notex":1}).call(v.font,ut).call(C.convertToTspans,q);return It}var ke=fe[0].trace,Te=ke.orientation==="h",Ae=W(xe,fe,Q,le,he);Ee=V(ke,Q);var be=ee.mode==="stack"||ee.mode==="relative",Ie=fe[Q],Ue=!be||Ie._outmost,Ne=Ie.hasB,ze=ce&&ce-re>c;if(!Ae||Ee==="none"||(Ie.isBlank||J===oe||K===ne)&&(Ee==="auto"||Ee==="inside")){ie.select("text").remove();return}var $e=xe.font,st=h.getBarColor(fe[Q],ke),vt=h.getInsideTextFont(ke,Q,$e,st),at=h.getOutsideTextFont(ke,Q,$e),nt=ke.insidetextanchor||"end",mt=ie.datum();Te?le.type==="log"&&mt.s0<=0&&(le.range[0]0&&Ze>0,Me;ze?Ne?Me=I(dt-2*ce,wt,Ye,Ze,Te)||I(dt,wt-2*ce,Ye,Ze,Te):Te?Me=I(dt-(ce-re),wt,Ye,Ze,Te)||I(dt,wt-2*(ce-re),Ye,Ze,Te):Me=I(dt,wt-(ce-re),Ye,Ze,Te)||I(dt-2*(ce-re),wt,Ye,Ze,Te):Me=I(dt,wt,Ye,Ze,Te),Fe&&Me?Ee="inside":(Ee="outside",et.remove(),et=null)}else Ee="inside";if(!et){We=i.ensureUniformFontSize(q,Ee==="outside"?at:vt),et=Se(ie,Ae,We);var we=et.attr("transform");if(et.attr("transform",""),Be=v.bBox(et.node()),Ye=Be.width,Ze=Be.height,et.attr("transform",we),Ye<=0||Ze<=0){et.remove();return}}var Re=ke.textangle,Pe,Ve;Ee==="outside"?(Ve=ke.constraintext==="both"||ke.constraintext==="outside",Pe=H(J,oe,K,ne,Be,{isHorizontal:Te,constrained:Ve,angle:Re})):(Ve=ke.constraintext==="both"||ke.constraintext==="inside",Pe=G(J,oe,K,ne,Be,{isHorizontal:Te,constrained:Ve,angle:Re,anchor:nt,hasB:Ne,r:ce,overhead:re})),Pe.fontSize=We.size,s(ke.type==="histogram"?"bar":ke.type,Pe,xe),Ie.transform=Pe;var Je=L(et,xe,ee,de);i.setTransormAndDisplay(Je,Pe)}function I(q,ae,ie,fe,Q){if(q<0||ae<0)return!1;var J=ie<=q&&fe<=ae,oe=ie<=ae&&fe<=q,K=Q?q>=ie*(ae/fe):ae>=fe*(q/ie);return J||oe||K}function N(q){return q==="auto"?0:q}function B(q,ae){var ie=Math.PI/180*ae,fe=Math.abs(Math.sin(ie)),Q=Math.abs(Math.cos(ie));return{x:q.width*Q+q.height*fe,y:q.width*fe+q.height*Q}}function G(q,ae,ie,fe,Q,J){var oe=!!J.isHorizontal,K=!!J.constrained,ne=J.angle||0,ce=J.anchor,re=ce==="end",ee=ce==="start",de=J.leftToRight||0,le=(de+1)/2,he=1-le,xe=J.hasB,Ee=J.r,Se=J.overhead,ke=Q.width,Te=Q.height,Ae=Math.abs(ae-q),be=Math.abs(fe-ie),Ie=Ae>2*c&&be>2*c?c:0;Ae-=2*Ie,be-=2*Ie;var Ue=N(ne);ne==="auto"&&!(ke<=Ae&&Te<=be)&&(ke>Ae||Te>be)&&(!(ke>be||Te>Ae)||kec){var st=U(q,ae,ie,fe,Ne,Ee,Se,oe,xe);ze=st.scale,$e=st.pad}else ze=1,K&&(ze=Math.min(1,Ae/Ne.x,be/Ne.y)),$e=0;var vt=Q.left*he+Q.right*le,at=(Q.top+Q.bottom)/2,nt=(q+c)*he+(ae-c)*le,mt=(ie+fe)/2,rt=0,lt=0;if(ee||re){var dt=(oe?Ne.x:Ne.y)/2;Ee&&(re||xe)&&(Ie+=$e);var wt=oe?R(q,ae):R(ie,fe);oe?ee?(nt=q+wt*Ie,rt=-wt*dt):(nt=ae-wt*Ie,rt=wt*dt):ee?(mt=ie+wt*Ie,lt=-wt*dt):(mt=fe-wt*Ie,lt=wt*dt)}return{textX:vt,textY:at,targetX:nt,targetY:mt,anchorX:rt,anchorY:lt,scale:ze,rotate:Ue}}function U(q,ae,ie,fe,Q,J,oe,K,ne){var ce=Math.max(0,Math.abs(ae-q)-2*c),re=Math.max(0,Math.abs(fe-ie)-2*c),ee=J-c,de=oe?ee-Math.sqrt(ee*ee-(ee-oe)*(ee-oe)):ee,le=ne?ee*2:K?ee-oe:2*de,he=ne?ee*2:K?2*de:ee-oe,xe,Ee,Se,ke,Te;return Q.y/Q.x>=re/(ce-le)?ke=re/Q.y:Q.y/Q.x<=(re-he)/ce?ke=ce/Q.x:!ne&&K?(xe=Q.x*Q.x+Q.y*Q.y/4,Ee=-2*Q.x*(ce-ee)-Q.y*(re/2-ee),Se=(ce-ee)*(ce-ee)+(re/2-ee)*(re/2-ee)-ee*ee,ke=(-Ee+Math.sqrt(Ee*Ee-4*xe*Se))/(2*xe)):ne?(xe=(Q.x*Q.x+Q.y*Q.y)/4,Ee=-Q.x*(ce/2-ee)-Q.y*(re/2-ee),Se=(ce/2-ee)*(ce/2-ee)+(re/2-ee)*(re/2-ee)-ee*ee,ke=(-Ee+Math.sqrt(Ee*Ee-4*xe*Se))/(2*xe)):(xe=Q.x*Q.x/4+Q.y*Q.y,Ee=-Q.x*(ce/2-ee)-2*Q.y*(re-ee),Se=(ce/2-ee)*(ce/2-ee)+(re-ee)*(re-ee)-ee*ee,ke=(-Ee+Math.sqrt(Ee*Ee-4*xe*Se))/(2*xe)),ke=Math.min(1,ke),K?Te=Math.max(0,ee-Math.sqrt(Math.max(0,ee*ee-(ee-(re-Q.y*ke)/2)*(ee-(re-Q.y*ke)/2)))-oe):Te=Math.max(0,ee-Math.sqrt(Math.max(0,ee*ee-(ee-(ce-Q.x*ke)/2)*(ee-(ce-Q.x*ke)/2)))-oe),{scale:ke,pad:Te}}function H(q,ae,ie,fe,Q,J){var oe=!!J.isHorizontal,K=!!J.constrained,ne=J.angle||0,ce=Q.width,re=Q.height,ee=Math.abs(ae-q),de=Math.abs(fe-ie),le;oe?le=de>2*c?c:0:le=ee>2*c?c:0;var he=1;K&&(he=oe?Math.min(1,de/re):Math.min(1,ee/ce));var xe=N(ne),Ee=B(Q,xe),Se=(oe?Ee.x:Ee.y)/2,ke=(Q.left+Q.right)/2,Te=(Q.top+Q.bottom)/2,Ae=(q+ae)/2,be=(ie+fe)/2,Ie=0,Ue=0,Ne=oe?R(ae,q):R(ie,fe);return oe?(Ae=ae-Ne*le,Ie=Ne*Se):(be=fe+Ne*le,Ue=-Ne*Se),{textX:ke,textY:Te,targetX:Ae,targetY:be,anchorX:Ie,anchorY:Ue,scale:he,rotate:xe}}function W(q,ae,ie,fe,Q){var J=ae[0].trace,oe=J.texttemplate,K;return oe?K=$(q,ae,ie,fe,Q):J.textinfo?K=Z(ae,ie,fe,Q):K=f.getValue(J.text,ie),f.coerceString(p,K)}function V(q,ae){var ie=f.getValue(q.textposition,ae);return f.coerceEnumerated(E,ie)}function $(q,ae,ie,fe,Q){var J=ae[0].trace,oe=i.castOption(J,ie,"texttemplate");if(!oe)return"";var K=J.type==="histogram",ne=J.type==="waterfall",ce=J.type==="funnel",re=J.orientation==="h",ee,de,le,he;re?(ee="y",de=Q,le="x",he=fe):(ee="x",de=fe,le="y",he=Q);function xe(Ie){return a(de,de.c2l(Ie),!0).text}function Ee(Ie){return a(he,he.c2l(Ie),!0).text}var Se=ae[ie],ke={};ke.label=Se.p,ke.labelLabel=ke[ee+"Label"]=xe(Se.p);var Te=i.castOption(J,Se.i,"text");(Te===0||Te)&&(ke.text=Te),ke.value=Se.s,ke.valueLabel=ke[le+"Label"]=Ee(Se.s);var Ae={};g(Ae,J,Se.i),(K||Ae.x===void 0)&&(Ae.x=re?ke.value:ke.label),(K||Ae.y===void 0)&&(Ae.y=re?ke.label:ke.value),(K||Ae.xLabel===void 0)&&(Ae.xLabel=re?ke.valueLabel:ke.labelLabel),(K||Ae.yLabel===void 0)&&(Ae.yLabel=re?ke.labelLabel:ke.valueLabel),ne&&(ke.delta=+Se.rawS||Se.s,ke.deltaLabel=Ee(ke.delta),ke.final=Se.v,ke.finalLabel=Ee(ke.final),ke.initial=ke.final-ke.delta,ke.initialLabel=Ee(ke.initial)),ce&&(ke.value=Se.s,ke.valueLabel=Ee(ke.value),ke.percentInitial=Se.begR,ke.percentInitialLabel=i.formatPercent(Se.begR),ke.percentPrevious=Se.difR,ke.percentPreviousLabel=i.formatPercent(Se.difR),ke.percentTotal=Se.sumR,ke.percenTotalLabel=i.formatPercent(Se.sumR));var be=i.castOption(J,Se.i,"customdata");return be&&(ke.customdata=be),i.texttemplateString(oe,ke,q._d3locale,Ae,ke,J._meta||{})}function Z(q,ae,ie,fe){var Q=q[0].trace,J=Q.orientation==="h",oe=Q.type==="waterfall",K=Q.type==="funnel";function ne(be){var Ie=J?fe:ie;return a(Ie,be,!0).text}function ce(be){var Ie=J?ie:fe;return a(Ie,+be,!0).text}var re=Q.textinfo,ee=q[ae],de=re.split("+"),le=[],he,xe=function(be){return de.indexOf(be)!==-1};if(xe("label")&&le.push(ne(q[ae].p)),xe("text")&&(he=i.castOption(Q,ee.i,"text"),(he===0||he)&&le.push(he)),oe){var Ee=+ee.rawS||ee.s,Se=ee.v,ke=Se-Ee;xe("initial")&&le.push(ce(ke)),xe("delta")&&le.push(ce(Ee)),xe("final")&&le.push(ce(Se))}if(K){xe("value")&&le.push(ce(ee.s));var Te=0;xe("percent initial")&&Te++,xe("percent previous")&&Te++,xe("percent total")&&Te++;var Ae=Te>1;xe("percent initial")&&(he=i.formatPercent(ee.begR),Ae&&(he+=" of initial"),le.push(he)),xe("percent previous")&&(he=i.formatPercent(ee.difR),Ae&&(he+=" of previous"),le.push(he)),xe("percent total")&&(he=i.formatPercent(ee.sumR),Ae&&(he+=" of total"),le.push(he))}return le.join("
")}D.exports={plot:d,toMoveInsideBar:G}},45784:function(D){D.exports=function(l,S){var i=l.cd,C=l.xaxis,w=l.yaxis,v=i[0].trace,m=v.type==="funnel",a=v.orientation==="h",n=[],s;if(S===!1)for(s=0;s1||d.bargap===0&&d.bargroupgap===0&&!k[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),L.selectAll("g.points").each(function(k){var I=l.select(this),N=k[0].trace;f(I,N,T)}),w.getComponentMethod("errorbars","style")(L)}function f(T,L,P){i.pointStyle(T.selectAll("path"),L,P),u(T,L,P)}function u(T,L,P){T.selectAll("text").each(function(d){var k=l.select(this),I=C.ensureUniformFontSize(P,g(k,d,L,P));i.font(k,I)})}function b(T,L,P){var d=L[0].trace;d.selectedpoints?p(P,d,T):(f(P,d,T),w.getComponentMethod("errorbars","style")(P))}function p(T,L,P){i.selectedPointStyle(T.selectAll("path"),L),E(T.selectAll("text"),L,P)}function E(T,L,P){T.each(function(d){var k=l.select(this),I;if(d.selected){I=C.ensureUniformFontSize(P,g(k,d,L,P));var N=L.selected.textfont&&L.selected.textfont.color;N&&(I.color=N),i.font(k,I)}else i.selectedTextStyle(k,L)})}function g(T,L,P,d){var k=d._fullLayout.font,I=P.textfont;if(T.classed("bartext-inside")){var N=R(L,P);I=y(P,L.i,k,N)}else T.classed("bartext-outside")&&(I=A(P,L.i,k));return I}function c(T,L,P){return M(a,T.textfont,L,P)}function y(T,L,P,d){var k=c(T,L,P),I=T._input.textfont===void 0||T._input.textfont.color===void 0||Array.isArray(T.textfont.color)&&T.textfont.color[L]===void 0;return I&&(k={color:S.contrast(d),family:k.family,size:k.size}),M(n,T.insidetextfont,L,k)}function A(T,L,P){var d=c(T,L,P);return M(s,T.outsidetextfont,L,d)}function M(T,L,P,d){L=L||{};var k=o.getValue(L.family,P),I=o.getValue(L.size,P),N=o.getValue(L.color,P);return{family:o.coerceString(T.family,k,d.family),size:o.coerceNumber(T.size,I,d.size),color:o.coerceColor(T.color,N,d.color)}}function R(T,L){return L.type==="waterfall"?L[T.dir].marker.color:T.mcc||T.mc||L.marker.color}D.exports={style:h,styleTextPoints:u,styleOnSelect:b,getInsideTextFont:y,getOutsideTextFont:A,getBarColor:R,resizeText:v}},55592:function(D,O,t){var l=t(76308),S=t(94288).hasColorscale,i=t(27260),C=t(3400).coercePattern;D.exports=function(v,m,a,n,s){var o=a("marker.color",n),h=S(v,"marker");h&&i(v,m,s,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",l.defaultLine),S(v,"marker.line")&&i(v,m,s,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),C(a,"marker.pattern",o,h),a("selected.marker.color"),a("unselected.marker.color")}},82744:function(D,O,t){var l=t(33428),S=t(3400);function i(m,a,n){var s=m._fullLayout,o=s["_"+n+"Text_minsize"];if(o){var h=s.uniformtext.mode==="hide",f;switch(n){case"funnelarea":case"pie":case"sunburst":f="g.slice";break;case"treemap":case"icicle":f="g.slice, g.pathbar";break;default:f="g.points > g.point"}a.selectAll(f).each(function(u){var b=u.transform;if(b){b.scale=h&&b.hide?0:o/b.fontSize;var p=l.select(this).select("text");S.setTransormAndDisplay(p,b)}})}}function C(m,a,n){if(n.uniformtext.mode){var s=v(m),o=n.uniformtext.minsize,h=a.scale*a.fontSize;a.hide=hu.range[1]&&(A+=Math.PI);var M=function(P){return E(y,A,[P.rp0,P.rp1],[P.thetag0,P.thetag1],p)?g+Math.min(1,Math.abs(P.thetag1-P.thetag0)/c)-1+(P.rp1-y)/(P.rp1-P.rp0)-1:1/0};if(l.getClosest(o,M,a),a.index!==!1){var R=a.index,T=o[R];a.x0=a.x1=T.ct[0],a.y0=a.y1=T.ct[1];var L=S.extendFlat({},T,{r:T.s,theta:T.p});return C(T,h,a),w(L,h,f,a),a.hovertemplate=h.hovertemplate,a.color=i(h,T),a.xLabelVal=a.yLabelVal=void 0,T.s<0&&(a.idealAlign="left"),[a]}}},94456:function(D,O,t){D.exports={moduleType:"trace",name:"barpolar",basePlotModule:t(40872),categories:["polar","bar","showLegend"],attributes:t(78100),layoutAttributes:t(9320),supplyDefaults:t(70384),supplyLayoutDefaults:t(89580),calc:t(47056).calc,crossTraceCalc:t(47056).crossTraceCalc,plot:t(42040),colorbar:t(5528),formatLabels:t(22852),style:t(60100).style,styleOnSelect:t(60100).styleOnSelect,hoverPoints:t(68896),selectPoints:t(45784),meta:{}}},9320:function(D){D.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(D,O,t){var l=t(3400),S=t(9320);D.exports=function(i,C,w){var v={},m;function a(o,h){return l.coerce(i[m]||{},C[m],S,o,h)}for(var n=0;n0?(u=h,b=f):(u=f,b=h);var p=w.findEnclosingVertexAngles(u,m.vangles)[0],E=w.findEnclosingVertexAngles(b,m.vangles)[1],g=[p,(u+b)/2,E];return w.pathPolygonAnnulus(s,o,u,b,g,a,n)}:function(s,o,h,f){return i.pathAnnulus(s,o,h,f,a,n)}}},63188:function(D,O,t){var l=t(98304),S=t(52904),i=t(20832),C=t(22548),w=t(29736).axisHoverFormat,v=t(21776).Ks,m=t(92880).extendFlat,a=S.marker,n=a.line;D.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:S.xperiod,yperiod:S.yperiod,xperiod0:S.xperiod0,yperiod0:S.yperiod0,xperiodalignment:S.xperiodalignment,yperiodalignment:S.yperiodalignment,xhoverformat:w("x"),yhoverformat:w("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:m({},a.symbol,{arrayOk:!1,editType:"plot"}),opacity:m({},a.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:m({},a.angle,{arrayOk:!1,editType:"calc"}),size:m({},a.size,{arrayOk:!1,editType:"calc"}),color:m({},a.color,{arrayOk:!1,editType:"style"}),line:{color:m({},n.color,{arrayOk:!1,dflt:C.defaultLine,editType:"style"}),width:m({},n.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:l(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:S.selected.marker,editType:"style"},unselected:{marker:S.unselected.marker,editType:"style"},text:m({},S.text,{}),hovertext:m({},S.hovertext,{}),hovertemplate:v({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(D,O,t){var l=t(38248),S=t(54460),i=t(1220),C=t(3400),w=t(39032).BADNUM,v=C._;D.exports=function(A,M){var R=A._fullLayout,T=S.getFromId(A,M.xaxis||"x"),L=S.getFromId(A,M.yaxis||"y"),P=[],d=M.type==="violin"?"_numViolins":"_numBoxes",k,I,N,B,G,U,H;M.orientation==="h"?(N=T,B="x",G=L,U="y",H=!!M.yperiodalignment):(N=L,B="y",G=T,U="x",H=!!M.xperiodalignment);var W=m(M,U,G,R[d]),V=W[0],$=W[1],Z=C.distinctVals(V,G),q=Z.vals,ae=Z.minDiff/2,ie,fe,Q,J,oe,K,ne=(M.boxpoints||M.points)==="all"?C.identity:function(wt){return wt.vie.uf};if(M._hasPreCompStats){var ce=M[B],re=function(wt){return N.d2c((M[wt]||[])[k])},ee=1/0,de=-1/0;for(k=0;k=ie.q1&&ie.q3>=ie.med){var he=re("lowerfence");ie.lf=he!==w&&he<=ie.q1?he:b(ie,Q,J);var xe=re("upperfence");ie.uf=xe!==w&&xe>=ie.q3?xe:p(ie,Q,J);var Ee=re("mean");ie.mean=Ee!==w?Ee:J?C.mean(Q,J):(ie.q1+ie.q3)/2;var Se=re("sd");ie.sd=Ee!==w&&Se>=0?Se:J?C.stdev(Q,J,ie.mean):ie.q3-ie.q1,ie.lo=E(ie),ie.uo=g(ie);var ke=re("notchspan");ke=ke!==w&&ke>0?ke:c(ie,J),ie.ln=ie.med-ke,ie.un=ie.med+ke;var Te=ie.lf,Ae=ie.uf;M.boxpoints&&Q.length&&(Te=Math.min(Te,Q[0]),Ae=Math.max(Ae,Q[J-1])),M.notched&&(Te=Math.min(Te,ie.ln),Ae=Math.max(Ae,ie.un)),ie.min=Te,ie.max=Ae}else{C.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+ie.q1,"median = "+ie.med,"q3 = "+ie.q3].join(` +`));var be;ie.med!==w?be=ie.med:ie.q1!==w?ie.q3!==w?be=(ie.q1+ie.q3)/2:be=ie.q1:ie.q3!==w?be=ie.q3:be=0,ie.med=be,ie.q1=ie.q3=be,ie.lf=ie.uf=be,ie.mean=ie.sd=be,ie.ln=ie.un=be,ie.min=ie.max=be}ee=Math.min(ee,ie.min),de=Math.max(de,ie.max),ie.pts2=fe.filter(ne),P.push(ie)}}M._extremes[N._id]=S.findExtremes(N,[ee,de],{padded:!0})}else{var Ie=N.makeCalcdata(M,B),Ue=a(q,ae),Ne=q.length,ze=n(Ne);for(k=0;k=0&&$e0){if(ie={},ie.pos=ie[U]=q[k],fe=ie.pts=ze[k].sort(f),Q=ie[B]=fe.map(u),J=Q.length,ie.min=Q[0],ie.max=Q[J-1],ie.mean=C.mean(Q,J),ie.sd=C.stdev(Q,J,ie.mean)*M.sdmultiple,ie.med=C.interp(Q,.5),J%2&&(nt||mt)){var rt,lt;nt?(rt=Q.slice(0,J/2),lt=Q.slice(J/2+1)):mt&&(rt=Q.slice(0,J/2+1),lt=Q.slice(J/2)),ie.q1=C.interp(rt,.5),ie.q3=C.interp(lt,.5)}else ie.q1=C.interp(Q,.25),ie.q3=C.interp(Q,.75);ie.lf=b(ie,Q,J),ie.uf=p(ie,Q,J),ie.lo=E(ie),ie.uo=g(ie);var dt=c(ie,J);ie.ln=ie.med-dt,ie.un=ie.med+dt,st=Math.min(st,ie.ln),vt=Math.max(vt,ie.un),ie.pts2=fe.filter(ne),P.push(ie)}M.notched&&C.isTypedArray(Ie)&&(Ie=Array.from(Ie)),M._extremes[N._id]=S.findExtremes(N,M.notched?Ie.concat([st,vt]):Ie,{padded:!0})}return h(P,M),P.length>0?(P[0].t={num:R[d],dPos:ae,posLetter:U,valLetter:B,labels:{med:v(A,"median:"),min:v(A,"min:"),q1:v(A,"q1:"),q3:v(A,"q3:"),max:v(A,"max:"),mean:M.boxmean==="sd"||M.sizemode==="sd"?v(A,"mean ± σ:").replace("σ",M.sdmultiple===1?"σ":M.sdmultiple+"σ"):v(A,"mean:"),lf:v(A,"lower fence:"),uf:v(A,"upper fence:")}},R[d]++,P):[{t:{empty:!0}}]};function m(y,A,M,R){var T=A in y,L=A+"0"in y,P="d"+A in y;if(T||L&&P){var d=M.makeCalcdata(y,A),k=i(y,M,A,d).vals;return[k,d]}var I;L?I=y[A+"0"]:"name"in y&&(M.type==="category"||l(y.name)&&["linear","log"].indexOf(M.type)!==-1||C.isDateTime(y.name)&&M.type==="date")?I=y.name:I=R;for(var N=M.type==="multicategory"?M.r2c_just_indices(I):M.d2c(I,0,y[A+"calendar"]),B=y._length,G=new Array(B),U=0;U1,L=1-h[m+"gap"],P=1-h[m+"groupgap"];for(b=0;b0;if(N==="positive"?(ie=B*(I?1:.5),J=Q,fe=J=U):N==="negative"?(ie=J=U,fe=B*(I?1:.5),oe=Q):(ie=fe=B,J=oe=Q),de){var le=d.pointpos,he=d.jitter,xe=d.marker.size/2,Ee=0;le+he>=0&&(Ee=Q*(le+he),Ee>ie?(ee=!0,ce=xe,K=Ee):Ee>J&&(ce=xe,K=ie)),Ee<=ie&&(K=ie);var Se=0;le-he<=0&&(Se=-Q*(le-he),Se>fe?(ee=!0,re=xe,ne=Se):Se>oe&&(re=xe,ne=fe)),Se<=fe&&(ne=fe)}else K=ie,ne=fe;var ke=new Array(E.length);for(p=0;p0?(N="v",L>0?B=Math.min(d,P):B=Math.min(P)):L>0?(N="h",B=Math.min(d)):B=0;if(!B){f.visible=!1;return}f._length=B;var V=u("orientation",N);f._hasPreCompStats?V==="v"&&L===0?(u("x0",0),u("dx",1)):V==="h"&&T===0&&(u("y0",0),u("dy",1)):V==="v"&&L===0?u("x0"):V==="h"&&T===0&&u("y0");var $=S.getComponentMethod("calendars","handleTraceDefaults");$(h,f,["x","y"],b)}function s(h,f,u,b){var p=b.prefix,E=l.coerce2(h,f,m,"marker.outliercolor"),g=u("marker.line.outliercolor"),c="outliers";f._hasPreCompStats?c="all":(E||g)&&(c="suspectedoutliers");var y=u(p+"points",c);y?(u("jitter",y==="all"?.3:0),u("pointpos",y==="all"?-1.5:0),u("marker.symbol"),u("marker.opacity"),u("marker.size"),u("marker.angle"),u("marker.color",f.line.color),u("marker.line.color"),u("marker.line.width"),y==="suspectedoutliers"&&(u("marker.line.outliercolor",f.marker.color),u("marker.line.outlierwidth")),u("selected.marker.color"),u("unselected.marker.color"),u("selected.marker.size"),u("unselected.marker.size"),u("text"),u("hovertext")):delete f.marker;var A=u("hoveron");(A==="all"||A.indexOf("points")!==-1)&&u("hovertemplate"),l.coerceSelectionMarkerOpacity(f,u)}function o(h,f){var u,b;function p(c){return l.coerce(b._input,b,m,c)}for(var E=0;EM.lo&&(V.so=!0)}return T});A.enter().append("path").classed("point",!0),A.exit().remove(),A.call(i.translatePoints,u,b)}function n(s,o,h,f){var u=o.val,b=o.pos,p=!!b.rangebreaks,E=f.bPos,g=f.bPosPxOffset||0,c=h.boxmean||(h.meanline||{}).visible,y,A;Array.isArray(f.bdPos)?(y=f.bdPos[0],A=f.bdPos[1]):(y=f.bdPos,A=f.bdPos);var M=s.selectAll("path.mean").data(h.type==="box"&&h.boxmean||h.type==="violin"&&h.box.visible&&h.meanline.visible?S.identity:[]);M.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),M.exit().remove(),M.each(function(R){var T=b.c2l(R.pos+E,!0),L=b.l2p(T-y)+g,P=b.l2p(T+A)+g,d=p?(L+P)/2:b.l2p(T)+g,k=u.c2p(R.mean,!0),I=u.c2p(R.mean-R.sd,!0),N=u.c2p(R.mean+R.sd,!0);h.orientation==="h"?l.select(this).attr("d","M"+k+","+L+"V"+P+(c==="sd"?"m0,0L"+I+","+d+"L"+k+","+L+"L"+N+","+d+"Z":"")):l.select(this).attr("d","M"+L+","+k+"H"+P+(c==="sd"?"m0,0L"+d+","+I+"L"+L+","+k+"L"+d+","+N+"Z":""))})}D.exports={plot:v,plotBoxAndWhiskers:m,plotPoints:a,plotBoxMean:n}},8264:function(D){D.exports=function(t,l){var S=t.cd,i=t.xaxis,C=t.yaxis,w=[],v,m;if(l===!1)for(v=0;v=10)return null;for(var w=1/0,v=-1/0,m=i.length,a=0;a0?Math.floor:Math.ceil,H=B>0?Math.ceil:Math.floor,W=B>0?Math.min:Math.max,V=B>0?Math.max:Math.min,$=U(I+G),Z=H(N-G);h=k(I);var q=[[h]];for(v=$;v*B=0;C--)w[s-C]=t[o][C],v[s-C]=l[o][C];for(m.push({x:w,y:v,bicubic:a}),C=o,w=[],v=[];C>=0;C--)w[o-C]=t[C][0],v[o-C]=l[C][0];return m.push({x:w,y:v,bicubic:n}),m}},19216:function(D,O,t){var l=t(54460),S=t(92880).extendFlat;D.exports=function(C,w,v){var m,a,n,s,o,h,f,u,b,p,E,g,c,y,A=C["_"+w],M=C[w+"axis"],R=M._gridlines=[],T=M._minorgridlines=[],L=M._boundarylines=[],P=C["_"+v],d=C[v+"axis"];M.tickmode==="array"&&(M.tickvals=A.slice());var k=C._xctrl,I=C._yctrl,N=k[0].length,B=k.length,G=C._a.length,U=C._b.length;l.prepTicks(M),M.tickmode==="array"&&delete M.tickvals;var H=M.smoothing?3:1;function W($){var Z,q,ae,ie,fe,Q,J,oe,K,ne,ce,re,ee=[],de=[],le={};if(w==="b")for(q=C.b2j($),ae=Math.floor(Math.max(0,Math.min(U-2,q))),ie=q-ae,le.length=U,le.crossLength=G,le.xy=function(he){return C.evalxy([],he,q)},le.dxy=function(he,xe){return C.dxydi([],he,ae,xe,ie)},Z=0;Z0&&(K=C.dxydi([],Z-1,ae,0,ie),ee.push(fe[0]+K[0]/3),de.push(fe[1]+K[1]/3),ne=C.dxydi([],Z-1,ae,1,ie),ee.push(oe[0]-ne[0]/3),de.push(oe[1]-ne[1]/3)),ee.push(oe[0]),de.push(oe[1]),fe=oe;else for(Z=C.a2i($),Q=Math.floor(Math.max(0,Math.min(G-2,Z))),J=Z-Q,le.length=G,le.crossLength=U,le.xy=function(he){return C.evalxy([],Z,he)},le.dxy=function(he,xe){return C.dxydj([],Q,he,J,xe)},q=0;q0&&(ce=C.dxydj([],Q,q-1,J,0),ee.push(fe[0]+ce[0]/3),de.push(fe[1]+ce[1]/3),re=C.dxydj([],Q,q-1,J,1),ee.push(oe[0]-re[0]/3),de.push(oe[1]-re[1]/3)),ee.push(oe[0]),de.push(oe[1]),fe=oe;return le.axisLetter=w,le.axis=M,le.crossAxis=d,le.value=$,le.constvar=v,le.index=u,le.x=ee,le.y=de,le.smoothing=d.smoothing,le}function V($){var Z,q,ae,ie,fe,Q=[],J=[],oe={};if(oe.length=A.length,oe.crossLength=P.length,w==="b")for(ae=Math.max(0,Math.min(U-2,$)),fe=Math.min(1,Math.max(0,$-ae)),oe.xy=function(K){return C.evalxy([],K,$)},oe.dxy=function(K,ne){return C.dxydi([],K,ae,ne,fe)},Z=0;ZA.length-1)&&R.push(S(V(a),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(u=h;uA.length-1)&&!(E<0||E>A.length-1))for(g=A[n],c=A[E],m=0;mA[A.length-1])&&T.push(S(W(p),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&L.push(S(V(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&L.push(S(V(A.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(s=5e-15,o=[Math.floor((A[A.length-1]-M.tick0)/M.dtick*(1+s)),Math.ceil((A[0]-M.tick0)/M.dtick/(1+s))].sort(function($,Z){return $-Z}),h=o[0],f=o[1],u=h;u<=f;u++)b=M.tick0+M.dtick*u,R.push(S(W(b),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(u=h-1;uA[A.length-1])&&T.push(S(W(p),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&L.push(S(W(A[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&L.push(S(W(A[A.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}},14724:function(D,O,t){var l=t(54460),S=t(92880).extendFlat;D.exports=function(C,w){var v,m,a,n,s,o=w._labels=[],h=w._gridlines;for(v=0;vC.length&&(i=i.slice(0,C.length)):i=[],v=0;v90&&(f-=180,a=-a),{angle:f,flip:a,p:t.c2p(i,l,S),offsetMultplier:n}}},164:function(D,O,t){var l=t(33428),S=t(43616),i=t(87072),C=t(53416),w=t(15584),v=t(72736),m=t(3400),a=m.strRotate,n=m.strTranslate,s=t(84284);D.exports=function(c,y,A,M){var R=c._context.staticPlot,T=y.xaxis,L=y.yaxis,P=c._fullLayout,d=P._clips;m.makeTraceGroups(M,A,"trace").each(function(k){var I=l.select(this),N=k[0],B=N.trace,G=B.aaxis,U=B.baxis,H=m.ensureSingle(I,"g","minorlayer"),W=m.ensureSingle(I,"g","majorlayer"),V=m.ensureSingle(I,"g","boundarylayer"),$=m.ensureSingle(I,"g","labellayer");I.style("opacity",B.opacity),h(T,L,W,G,"a",G._gridlines,!0),h(T,L,W,U,"b",U._gridlines,!0),h(T,L,H,G,"a",G._minorgridlines,!0),h(T,L,H,U,"b",U._minorgridlines,!0),h(T,L,V,G,"a-boundary",G._boundarylines,R),h(T,L,V,U,"b-boundary",U._boundarylines,R);var Z=f(c,T,L,B,N,$,G._labels,"a-label"),q=f(c,T,L,B,N,$,U._labels,"b-label");u(c,$,B,N,T,L,Z,q),o(B,N,d,T,L)})};function o(g,c,y,A,M){var R,T,L,P,d=y.select("#"+g._clipPathId);d.size()||(d=y.append("clipPath").classed("carpetclip",!0));var k=m.ensureSingle(d,"path","carpetboundary"),I=c.clipsegments,N=[];for(P=0;P0?"start":"end","data-notex":1}).call(S.font,I.font).text(I.text).call(v.convertToTspans,g),W=S.bBox(this);H.attr("transform",n(B.p[0],B.p[1])+a(B.angle)+n(I.axis.labelpadding*U,W.height*.3)),d=Math.max(d,W.width+I.axis.labelpadding)}),P.exit().remove(),k.maxExtent=d,k}function u(g,c,y,A,M,R,T,L){var P,d,k,I,N=m.aggNums(Math.min,null,y.a),B=m.aggNums(Math.max,null,y.a),G=m.aggNums(Math.min,null,y.b),U=m.aggNums(Math.max,null,y.b);P=.5*(N+B),d=G,k=y.ab2xy(P,d,!0),I=y.dxyda_rough(P,d),T.angle===void 0&&m.extendFlat(T,w(y,M,R,k,y.dxydb_rough(P,d))),E(g,c,y,A,k,I,y.aaxis,M,R,T,"a-title"),P=N,d=.5*(G+U),k=y.ab2xy(P,d,!0),I=y.dxydb_rough(P,d),L.angle===void 0&&m.extendFlat(L,w(y,M,R,k,y.dxyda_rough(P,d))),E(g,c,y,A,k,I,y.baxis,M,R,L,"b-title")}var b=s.LINE_SPACING,p=(1-s.MID_SHIFT)/b+1;function E(g,c,y,A,M,R,T,L,P,d,k){var I=[];T.title.text&&I.push(T.title.text);var N=c.selectAll("text."+k).data(I),B=d.maxExtent;N.enter().append("text").classed(k,!0),N.each(function(){var G=w(y,L,P,M,R);["start","both"].indexOf(T.showticklabels)===-1&&(B=0);var U=T.title.font.size;B+=U+T.title.offset;var H=d.angle+(d.flip<0?180:0),W=(H-G.angle+450)%360,V=W>90&&W<270,$=l.select(this);$.text(T.title.text).call(v.convertToTspans,g),V&&(B=(-v.lineCount($)+p)*b*U-B),$.attr("transform",n(G.p[0],G.p[1])+a(G.angle)+n(0,B)).attr("text-anchor","middle").call(S.font,T.title.font)}),N.exit().remove()}},81e3:function(D,O,t){var l=t(24588),S=t(14952).findBin,i=t(30180),C=t(29056),w=t(26435),v=t(24464);D.exports=function(a){var n=a._a,s=a._b,o=n.length,h=s.length,f=a.aaxis,u=a.baxis,b=n[0],p=n[o-1],E=s[0],g=s[h-1],c=n[n.length-1]-n[0],y=s[s.length-1]-s[0],A=c*l.RELATIVE_CULL_TOLERANCE,M=y*l.RELATIVE_CULL_TOLERANCE;b-=A,p+=A,E-=M,g+=M,a.isVisible=function(R,T){return R>b&&RE&&Tp||Tg},a.setScale=function(){var R=a._x,T=a._y,L=i(a._xctrl,a._yctrl,R,T,f.smoothing,u.smoothing);a._xctrl=L[0],a._yctrl=L[1],a.evalxy=C([a._xctrl,a._yctrl],o,h,f.smoothing,u.smoothing),a.dxydi=w([a._xctrl,a._yctrl],f.smoothing,u.smoothing),a.dxydj=v([a._xctrl,a._yctrl],f.smoothing,u.smoothing)},a.i2a=function(R){var T=Math.max(0,Math.floor(R[0]),o-2),L=R[0]-T;return(1-L)*n[T]+L*n[T+1]},a.j2b=function(R){var T=Math.max(0,Math.floor(R[1]),o-2),L=R[1]-T;return(1-L)*s[T]+L*s[T+1]},a.ij2ab=function(R){return[a.i2a(R[0]),a.j2b(R[1])]},a.a2i=function(R){var T=Math.max(0,Math.min(S(R,n),o-2)),L=n[T],P=n[T+1];return Math.max(0,Math.min(o-1,T+(R-L)/(P-L)))},a.b2j=function(R){var T=Math.max(0,Math.min(S(R,s),h-2)),L=s[T],P=s[T+1];return Math.max(0,Math.min(h-1,T+(R-L)/(P-L)))},a.ab2ij=function(R){return[a.a2i(R[0]),a.b2j(R[1])]},a.i2c=function(R,T){return a.evalxy([],R,T)},a.ab2xy=function(R,T,L){if(!L&&(Rn[o-1]|Ts[h-1]))return[!1,!1];var P=a.a2i(R),d=a.b2j(T),k=a.evalxy([],P,d);if(L){var I=0,N=0,B=[],G,U,H,W;Rn[o-1]?(G=o-2,U=1,I=(R-n[o-1])/(n[o-1]-n[o-2])):(G=Math.max(0,Math.min(o-2,Math.floor(P))),U=P-G),Ts[h-1]?(H=h-2,W=1,N=(T-s[h-1])/(s[h-1]-s[h-2])):(H=Math.max(0,Math.min(h-2,Math.floor(d))),W=d-H),I&&(a.dxydi(B,G,H,U,W),k[0]+=B[0]*I,k[1]+=B[1]*I),N&&(a.dxydj(B,G,H,U,W),k[0]+=B[0]*N,k[1]+=B[1]*N)}return k},a.c2p=function(R,T,L){return[T.c2p(R[0]),L.c2p(R[1])]},a.p2x=function(R,T,L){return[T.p2c(R[0]),L.p2c(R[1])]},a.dadi=function(R){var T=Math.max(0,Math.min(n.length-2,R));return n[T+1]-n[T]},a.dbdj=function(R){var T=Math.max(0,Math.min(s.length-2,R));return s[T+1]-s[T]},a.dxyda=function(R,T,L,P){var d=a.dxydi(null,R,T,L,P),k=a.dadi(R,L);return[d[0]/k,d[1]/k]},a.dxydb=function(R,T,L,P){var d=a.dxydj(null,R,T,L,P),k=a.dbdj(T,P);return[d[0]/k,d[1]/k]},a.dxyda_rough=function(R,T,L){var P=c*(L||.1),d=a.ab2xy(R+P,T,!0),k=a.ab2xy(R-P,T,!0);return[(d[0]-k[0])*.5/P,(d[1]-k[1])*.5/P]},a.dxydb_rough=function(R,T,L){var P=y*(L||.1),d=a.ab2xy(R,T+P,!0),k=a.ab2xy(R,T-P,!0);return[(d[0]-k[0])*.5/P,(d[1]-k[1])*.5/P]},a.dpdx=function(R){return R._m},a.dpdy=function(R){return R._m}}},51512:function(D,O,t){var l=t(3400);D.exports=function(i,C,w){var v,m,a,n=[],s=[],o=i[0].length,h=i.length;function f(q,ae){var ie=0,fe,Q=0;return q>0&&(fe=i[ae][q-1])!==void 0&&(Q++,ie+=fe),q0&&(fe=i[ae-1][q])!==void 0&&(Q++,ie+=fe),ae0&&m0&&vP);return l.log("Smoother converged to",d,"after",I,"iterations"),i}},86411:function(D,O,t){var l=t(3400).isArray1D;D.exports=function(i,C,w){var v=w("x"),m=v&&v.length,a=w("y"),n=a&&a.length;if(!m&&!n)return!1;if(C._cheater=!v,(!m||l(v))&&(!n||l(a))){var s=m?v.length:1/0;n&&(s=Math.min(s,a.length)),C.a&&C.a.length&&(s=Math.min(s,C.a.length)),C.b&&C.b.length&&(s=Math.min(s,C.b.length)),C._length=s}else C._length=null;return!0}},83372:function(D,O,t){var l=t(21776).Ks,S=t(6096),i=t(49084),C=t(45464),w=t(22548).defaultLine,v=t(92880).extendFlat,m=S.marker.line;D.exports=v({locations:{valType:"data_array",editType:"calc"},locationmode:S.locationmode,z:{valType:"data_array",editType:"calc"},geojson:v({},S.geojson,{}),featureidkey:S.featureidkey,text:v({},S.text,{}),hovertext:v({},S.hovertext,{}),marker:{line:{color:v({},m.color,{dflt:w}),width:v({},m.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:S.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:S.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:v({},C.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:l(),showlegend:v({},C.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(D,O,t){var l=t(38248),S=t(39032).BADNUM,i=t(47128),C=t(20148),w=t(4500);function v(m){return m&&typeof m=="string"}D.exports=function(a,n){var s=n._length,o=new Array(s),h;n.geojson?h=function(E){return v(E)||l(E)}:h=v;for(var f=0;f")}}},54272:function(D,O,t){D.exports={attributes:t(83372),supplyDefaults:t(30972),colorbar:t(96288),calc:t(7924),calcGeoJSON:t(88364).calcGeoJSON,plot:t(88364).plot,style:t(7947).style,styleOnSelect:t(7947).styleOnSelect,hoverPoints:t(69224),eventData:t(52428),selectPoints:t(17328),moduleType:"trace",name:"choropleth",basePlotModule:t(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(D,O,t){var l=t(33428),S=t(3400),i=t(27144),C=t(59972).getTopojsonFeatures,w=t(19280).findExtremes,v=t(7947).style;function m(n,s,o){var h=s.layers.backplot.select(".choroplethlayer");S.makeTraceGroups(h,o,"trace choropleth").each(function(f){var u=l.select(this),b=u.selectAll("path.choroplethlocation").data(S.identity);b.enter().append("path").classed("choroplethlocation",!0),b.exit().remove(),v(n,f)})}function a(n,s){for(var o=n[0].trace,h=s[o.geo],f=h._subplot,u=o.locationmode,b=o._length,p=u==="geojson-id"?i.extractTraceFeature(n):C(o,f.topojson),E=[],g=[],c=0;c=0;C--){var w=i[C].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var v=C+1;v=0;a--)v.removeLayer(m[a][1])},w.dispose=function(){var v=this.subplot.map;this._removeLayers(),v.removeSource(this.sourceId)},D.exports=function(m,a){var n=a[0].trace,s=new C(m,n.uid),o=s.sourceId,h=l(a),f=s.below=m.belowLookup["trace-"+n.uid];return m.map.addSource(o,{type:"geojson",data:h.geojson}),s._addLayers(h,f),a[0].trace._glTrace=s,s}},86040:function(D,O,t){var l=t(49084),S=t(29736).axisHoverFormat,i=t(21776).Ks,C=t(52948),w=t(45464),v=t(92880).extendFlat,m={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:S("u",1),vhoverformat:S("v",1),whoverformat:S("w",1),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),showlegend:v({},w.showlegend,{dflt:!1})};v(m,l("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var a=["opacity","lightposition","lighting"];a.forEach(function(n){m[n]=C[n]}),m.hoverinfo=v({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),m.transforms=void 0,D.exports=m},83344:function(D,O,t){var l=t(47128);D.exports=function(i,C){for(var w=C.u,v=C.v,m=C.w,a=Math.min(C.x.length,C.y.length,C.z.length,w.length,v.length,m.length),n=-1/0,s=1/0,o=0;ow.level||w.starts.length&&C===w.level)}break;case"constraint":if(l.prefixBoundary=!1,l.edgepaths.length)return;var v=l.x.length,m=l.y.length,a=-1/0,n=1/0;for(i=0;i":s>a&&(l.prefixBoundary=!0);break;case"<":(sa||l.starts.length&&h===n)&&(l.prefixBoundary=!0);break;case"][":o=Math.min(s[0],s[1]),h=Math.max(s[0],s[1]),oa&&(l.prefixBoundary=!0);break}break}}},55296:function(D,O,t){var l=t(8932),S=t(41076),i=t(46960);function C(w,v,m){var a=v.contours,n=v.line,s=a.size||1,o=a.coloring,h=S(v,{isColorbar:!0});if(o==="heatmap"){var f=l.extractOpts(v);m._fillgradient=f.reversescale?l.flipScale(f.colorscale):f.colorscale,m._zrange=[f.min,f.max]}else o==="fill"&&(m._fillcolor=h);m._line={color:o==="lines"?h:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},m._levels={start:a.start,end:i(a),size:s}}D.exports={min:"zmin",max:"zmax",calc:C}},93252:function(D){D.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(D,O,t){var l=t(38248),S=t(17428),i=t(76308),C=i.addOpacity,w=i.opacity,v=t(69104),m=t(3400).isArrayOrTypedArray,a=v.CONSTRAINT_REDUCTION,n=v.COMPARISON_OPS2;D.exports=function(h,f,u,b,p,E){var g=f.contours,c,y,A,M=u("contours.operation");if(g._operation=a[M],s(u,g),M==="="?c=g.showlines=!0:(c=u("contours.showlines"),A=u("fillcolor",C((h.line||{}).color||p,.5))),c){var R=A&&w(A)?C(f.fillcolor,1):p;y=u("line.color",R),u("line.width",2),u("line.dash")}u("line.smoothing"),S(u,b,y,E)};function s(o,h){var f;n.indexOf(h.operation)===-1?(o("contours.value",[0,1]),m(h.value)?h.value.length>2?h.value=h.value.slice(2):h.length===0?h.value=[0,1]:h.length<2?(f=parseFloat(h.value[0]),h.value=[f,f+1]):h.value=[parseFloat(h.value[0]),parseFloat(h.value[1])]:l(h.value)&&(f=parseFloat(h.value),h.value=[f,f+1])):(o("contours.value",0),l(h.value)||(m(h.value)?h.value=parseFloat(h.value[0]):h.value=0))}},3212:function(D,O,t){var l=t(69104),S=t(38248);D.exports={"[]":C("[]"),"][":C("]["),">":w(">"),"<":w("<"),"=":w("=")};function i(v,m){var a=Array.isArray(m),n;function s(o){return S(o)?+o:null}return l.COMPARISON_OPS2.indexOf(v)!==-1?n=s(a?m[0]:m):l.INTERVAL_OPS.indexOf(v)!==-1?n=a?[s(m[0]),s(m[1])]:[s(m),s(m)]:l.SET_OPS.indexOf(v)!==-1&&(n=a?m.map(s):[s(m)]),n}function C(v){return function(m){m=i(v,m);var a=Math.min(m[0],m[1]),n=Math.max(m[0],m[1]);return{start:a,end:n,size:n-a}}}function w(v){return function(m){return m=i(v,m),{start:m,end:1/0,size:1/0}}}},84952:function(D){D.exports=function(t,l,S,i){var C=i("contours.start"),w=i("contours.end"),v=C===!1||w===!1,m=S("contours.size"),a;v?a=l.autocontour=!0:a=S("autocontour",!1),(a||!m)&&S("ncontours")}},82172:function(D,O,t){var l=t(3400);D.exports=function(i,C){var w,v,m,a=function(o){return o.reverse()},n=function(o){return o};switch(C){case"=":case"<":return i;case">":for(i.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),v=i[0],w=0;w1e3){l.warn("Too many contours, clipping at 1000",w);break}return s}},46960:function(D){D.exports=function(t){return t.end+t.size/1e6}},88748:function(D,O,t){var l=t(3400),S=t(93252);D.exports=function(n,s,o){var h,f,u,b,p;for(s=s||.01,o=o||.01,u=0;u20?(u=S.CHOOSESADDLE[u][(b[0]||b[1])<0?0:1],a.crossings[f]=S.SADDLEREMAINDER[u]):delete a.crossings[f],b=S.NEWDELTA[u],!b){l.log("Found bad marching index:",u,n,a.level);break}p.push(m(a,n,b)),n[0]+=b[0],n[1]+=b[1],f=n.join(","),i(p[p.length-1],p[p.length-2],o,h)&&p.pop();var M=b[0]&&(n[0]<0||n[0]>g-2)||b[1]&&(n[1]<0||n[1]>E-2),R=n[0]===c[0]&&n[1]===c[1]&&b[0]===y[0]&&b[1]===y[1];if(R||s&&M)break;u=a.crossings[f]}A===1e4&&l.log("Infinite loop in contour?");var T=i(p[0],p[p.length-1],o,h),L=0,P=.2*a.smoothing,d=[],k=0,I,N,B,G,U,H,W,V,$,Z,q;for(A=1;A=k;A--)if(I=d[A],I=k&&I+d[N]V&&$--,a.edgepaths[$]=q.concat(p,Z));break}Q||(a.edgepaths[V]=p.concat(Z))}for(V=0;V20&&n?a===208||a===1114?o=s[0]===0?1:-1:h=s[1]===0?1:-1:S.BOTTOMSTART.indexOf(a)!==-1?h=1:S.LEFTSTART.indexOf(a)!==-1?o=1:S.TOPSTART.indexOf(a)!==-1?h=-1:o=-1,[o,h]}function m(a,n,s){var o=n[0]+Math.max(s[0],0),h=n[1]+Math.max(s[1],0),f=a.z[h][o],u=a.xaxis,b=a.yaxis;if(s[1]){var p=(a.level-f)/(a.z[h][o+1]-f),E=(p!==1?(1-p)*u.c2l(a.x[o]):0)+(p!==0?p*u.c2l(a.x[o+1]):0);return[u.c2p(u.l2c(E),!0),b.c2p(a.y[h],!0),o+p,h]}else{var g=(a.level-f)/(a.z[h+1][o]-f),c=(g!==1?(1-g)*b.c2l(a.y[h]):0)+(g!==0?g*b.c2l(a.y[h+1]):0);return[u.c2p(a.x[o],!0),b.c2p(b.l2c(c),!0),o,h+g]}}},38200:function(D,O,t){var l=t(76308),S=t(55512);D.exports=function(C,w,v,m,a){a||(a={}),a.isContour=!0;var n=S(C,w,v,m,a);return n&&n.forEach(function(s){var o=s.trace;o.contours.type==="constraint"&&(o.fillcolor&&l.opacity(o.fillcolor)?s.color=l.addOpacity(o.fillcolor,1):o.contours.showlines&&l.opacity(o.line.color)&&(s.color=l.addOpacity(o.line.color,1)))}),n}},66240:function(D,O,t){D.exports={attributes:t(67104),supplyDefaults:t(57004),calc:t(20688),plot:t(23676).plot,style:t(52440),colorbar:t(55296),hoverPoints:t(38200),moduleType:"trace",name:"contour",basePlotModule:t(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(D,O,t){var l=t(3400);D.exports=function(i,C,w,v){v||(v={});var m=i("contours.showlabels");if(m){var a=C.font;l.coerceFont(i,"contours.labelfont",{family:a.family,size:a.size,color:w}),i("contours.labelformat")}v.hasHover!==!1&&i("zhoverformat")}},41076:function(D,O,t){var l=t(33428),S=t(8932),i=t(46960);D.exports=function(w){var v=w.contours,m=v.start,a=i(v),n=v.size||1,s=Math.floor((a-m)/n)+1,o=v.coloring==="lines"?0:1,h=S.extractOpts(w);isFinite(n)||(n=1,s=1);var f=h.reversescale?S.flipScale(h.colorscale):h.colorscale,u=f.length,b=new Array(u),p=new Array(u),E,g,c=h.min,y=h.max;if(v.coloring==="heatmap"){for(g=0;g=y)&&(m<=c&&(m=c),a>=y&&(a=y),s=Math.floor((a-m)/n)+1,o=0),g=0;gc&&(b.unshift(c),p.unshift(p[0])),b[b.length-1]i?0:1)+(C[0][1]>i?0:2)+(C[1][1]>i?0:4)+(C[1][0]>i?0:8);if(w===5||w===10){var v=(C[0][0]+C[0][1]+C[1][0]+C[1][1])/4;return i>v?w===5?713:1114:w===5?104:208}return w===15?0:w}},23676:function(D,O,t){var l=t(33428),S=t(3400),i=t(43616),C=t(8932),w=t(72736),v=t(54460),m=t(78344),a=t(41420),n=t(72424),s=t(88748),o=t(61512),h=t(82172),f=t(56008),u=t(93252),b=u.LABELOPTIMIZER;O.plot=function(T,L,P,d){var k=L.xaxis,I=L.yaxis;S.makeTraceGroups(d,P,"contour").each(function(N){var B=l.select(this),G=N[0],U=G.trace,H=G.x,W=G.y,V=U.contours,$=o(V,L,G),Z=S.ensureSingle(B,"g","heatmapcoloring"),q=[];V.coloring==="heatmap"&&(q=[N]),a(T,L,q,Z),n($),s($);var ae=k.c2p(H[0],!0),ie=k.c2p(H[H.length-1],!0),fe=I.c2p(W[0],!0),Q=I.c2p(W[W.length-1],!0),J=[[ae,Q],[ie,Q],[ie,fe],[ae,fe]],oe=$;V.type==="constraint"&&(oe=h($,V._operation)),p(B,J,V),E(B,oe,J,V),c(B,$,T,G,V),A(B,L,T,G,J)})};function p(R,T,L){var P=S.ensureSingle(R,"g","contourbg"),d=P.selectAll("path").data(L.coloring==="fill"?[0]:[]);d.enter().append("path"),d.exit().remove(),d.attr("d","M"+T.join("L")+"Z").style("stroke","none")}function E(R,T,L,P){var d=P.coloring==="fill"||P.type==="constraint"&&P._operation!=="=",k="M"+L.join("L")+"Z";d&&f(T,P);var I=S.ensureSingle(R,"g","contourfill"),N=I.selectAll("path").data(d?T:[]);N.enter().append("path"),N.exit().remove(),N.each(function(B){var G=(B.prefixBoundary?k:"")+g(B,L);G?l.select(this).attr("d",G).style("stroke","none"):l.select(this).remove()})}function g(R,T){var L="",P=0,d=R.edgepaths.map(function(ae,ie){return ie}),k=!0,I,N,B,G,U,H;function W(ae){return Math.abs(ae[1]-T[0][1])<.01}function V(ae){return Math.abs(ae[1]-T[2][1])<.01}function $(ae){return Math.abs(ae[0]-T[0][0])<.01}function Z(ae){return Math.abs(ae[0]-T[2][0])<.01}for(;d.length;){for(H=i.smoothopen(R.edgepaths[P],R.smoothing),L+=k?H:H.replace(/^M/,"L"),d.splice(d.indexOf(P),1),I=R.edgepaths[P][R.edgepaths[P].length-1],G=-1,B=0;B<4;B++){if(!I){S.log("Missing end?",P,R);break}for(W(I)&&!Z(I)?N=T[1]:$(I)?N=T[0]:V(I)?N=T[3]:Z(I)&&(N=T[2]),U=0;U=0&&(N=q,G=U):Math.abs(I[1]-N[1])<.01?Math.abs(I[1]-q[1])<.01&&(q[0]-I[0])*(N[0]-q[0])>=0&&(N=q,G=U):S.log("endpt to newendpt is not vert. or horz.",I,N,q)}if(I=N,G>=0)break;L+="L"+N}if(G===R.edgepaths.length){S.log("unclosed perimeter path");break}P=G,k=d.indexOf(P)===-1,k&&(P=d[0],L+="Z")}for(P=0;Pb.MAXCOST*2)break;W&&(N/=2),I=G-N/2,B=I+N*1.5}if(H<=b.MAXCOST)return U};function y(R,T,L,P){var d=T.width/2,k=T.height/2,I=R.x,N=R.y,B=R.theta,G=Math.cos(B)*d,U=Math.sin(B)*d,H=(I>P.center?P.right-I:I-P.left)/(G+Math.abs(Math.sin(B)*k)),W=(N>P.middle?P.bottom-N:N-P.top)/(Math.abs(U)+Math.cos(B)*k);if(H<1||W<1)return 1/0;var V=b.EDGECOST*(1/(H-1)+1/(W-1));V+=b.ANGLECOST*B*B;for(var $=I-G,Z=N-U,q=I+G,ae=N+U,ie=0;iem.end&&(m.start=m.end=(m.start+m.end)/2),w._input.contours||(w._input.contours={}),S.extendFlat(w._input.contours,{start:m.start,end:m.end,size:m.size}),w._input.autocontour=!0}else if(m.type!=="constraint"){var o=m.start,h=m.end,f=w._input.contours;if(o>h&&(m.start=f.start=h,h=m.end=f.end=o,o=m.start),!(m.size>0)){var u;o===h?u=1:u=i(o,h,w.ncontours).dtick,f.size=m.size=u}}};function i(C,w,v){var m={type:"linear",range:[C,w]};return l.autoTicks(m,(w-C)/(v||15)),m}},52440:function(D,O,t){var l=t(33428),S=t(43616),i=t(41648),C=t(41076);D.exports=function(v){var m=l.select(v).selectAll("g.contour");m.style("opacity",function(a){return a[0].trace.opacity}),m.each(function(a){var n=l.select(this),s=a[0].trace,o=s.contours,h=s.line,f=o.size||1,u=o.start,b=o.type==="constraint",p=!b&&o.coloring==="lines",E=!b&&o.coloring==="fill",g=p||E?C(s):null;n.selectAll("g.contourlevel").each(function(A){l.select(this).selectAll("path").call(S.lineGroupStyle,h.width,p?g(A.level):h.color,h.dash)});var c=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(A){S.font(l.select(this),{family:c.family,size:c.size,color:c.color||(p?g(A.level):h.color)})}),b)n.selectAll("g.contourfill path").style("fill",s.fillcolor);else if(E){var y;n.selectAll("g.contourfill path").style("fill",function(A){return y===void 0&&(y=A.level),g(A.level+.5*f)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",g(y-.5*f))}}),i(v)}},97680:function(D,O,t){var l=t(27260),S=t(17428);D.exports=function(C,w,v,m,a){var n=v("contours.coloring"),s,o="";n==="fill"&&(s=v("contours.showlines")),s!==!1&&(n!=="lines"&&(o=v("line.color","#000")),v("line.width",.5),v("line.dash")),n!=="none"&&(C.showlegend!==!0&&(w.showlegend=!1),w._dfltShowLegend=!1,l(C,w,m,v,{prefix:"",cLetter:"z"})),v("line.smoothing"),S(v,m,o,a)}},37960:function(D,O,t){var l=t(83328),S=t(67104),i=t(49084),C=t(92880).extendFlat,w=S.contours;D.exports=C({carpet:{valType:"string",editType:"calc"},z:l.z,a:l.x,a0:l.x0,da:l.dx,b:l.y,b0:l.y0,db:l.dy,text:l.text,hovertext:l.hovertext,transpose:l.transpose,atype:l.xtype,btype:l.ytype,fillcolor:S.fillcolor,autocontour:S.autocontour,ncontours:S.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:S.line.color,width:S.line.width,dash:S.line.dash,smoothing:S.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(D,O,t){var l=t(47128),S=t(3400),i=t(2872),C=t(26136),w=t(70448),v=t(11240),m=t(35744),a=t(3252),n=t(50948),s=t(54444);D.exports=function(f,u){var b=u._carpetTrace=n(f,u);if(!(!b||!b.visible||b.visible==="legendonly")){if(!u.a||!u.b){var p=f.data[b.index],E=f.data[u.index];E.a||(E.a=p.a),E.b||(E.b=p.b),a(E,u,u._defaultColor,f._fullLayout)}var g=o(f,u);return s(u,u._z),g}};function o(h,f){var u=f._carpetTrace,b=u.aaxis,p=u.baxis,E,g,c,y,A,M,R;b._minDtick=0,p._minDtick=0,S.isArray1D(f.z)&&i(f,b,p,"a","b",["z"]),E=f._a=f._a||f.a,y=f._b=f._b||f.b,E=E?b.makeCalcdata(f,"_a"):[],y=y?p.makeCalcdata(f,"_b"):[],g=f.a0||0,c=f.da||1,A=f.b0||0,M=f.db||1,R=f._z=C(f._z||f.z,f.transpose),f._emptypoints=v(R),w(R,f._emptypoints);var T=S.maxRowLength(R),L=f.xtype==="scaled"?"":E,P=m(f,L,g,c,T,b),d=f.ytype==="scaled"?"":y,k=m(f,d,A,M,R.length,p),I={a:P,b:k,z:R};return f.contours.type==="levels"&&f.contours.coloring!=="none"&&l(h,f,{vals:R,containerStr:"",cLetter:"z"}),[I]}},3252:function(D,O,t){var l=t(3400),S=t(51264),i=t(37960),C=t(95536),w=t(84952),v=t(97680);D.exports=function(a,n,s,o){function h(p,E){return l.coerce(a,n,i,p,E)}function f(p){return l.coerce2(a,n,i,p)}if(h("carpet"),a.a&&a.b){var u=S(a,n,h,o,"a","b");if(!u){n.visible=!1;return}h("text");var b=h("contours.type")==="constraint";b?C(a,n,h,o,s,{hasHover:!1}):(w(a,n,h,f),v(a,n,h,o,{hasHover:!1}))}else n._defaultColor=s,n._length=null}},40448:function(D,O,t){D.exports={attributes:t(37960),supplyDefaults:t(3252),colorbar:t(55296),calc:t(30572),plot:t(94440),style:t(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:t(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(D,O,t){var l=t(33428),S=t(87072),i=t(53416),C=t(43616),w=t(3400),v=t(72424),m=t(88748),a=t(23676),n=t(93252),s=t(82172),o=t(61512),h=t(56008),f=t(50948),u=t(77712);D.exports=function(L,P,d,k){var I=P.xaxis,N=P.yaxis;w.makeTraceGroups(k,d,"contour").each(function(B){var G=l.select(this),U=B[0],H=U.trace,W=H._carpetTrace=f(L,H),V=L.calcdata[W.index][0];if(!W.visible||W.visible==="legendonly")return;var $=U.a,Z=U.b,q=H.contours,ae=o(q,P,U),ie=q.type==="constraint",fe=q._operation,Q=ie?fe==="="?"lines":"fill":q.coloring;function J(Ee){var Se=W.ab2xy(Ee[0],Ee[1],!0);return[I.c2p(Se[0]),N.c2p(Se[1])]}var oe=[[$[0],Z[Z.length-1]],[$[$.length-1],Z[Z.length-1]],[$[$.length-1],Z[0]],[$[0],Z[0]]];v(ae);var K=($[$.length-1]-$[0])*1e-8,ne=(Z[Z.length-1]-Z[0])*1e-8;m(ae,K,ne);var ce=ae;q.type==="constraint"&&(ce=s(ae,fe)),b(ae,J);var re,ee,de,le,he=[];for(le=V.clipsegments.length-1;le>=0;le--)re=V.clipsegments[le],ee=S([],re.x,I.c2p),de=S([],re.y,N.c2p),ee.reverse(),de.reverse(),he.push(i(ee,de,re.bicubic));var xe="M"+he.join("L")+"Z";A(G,V.clipsegments,I,N,ie,Q),M(H,G,I,N,ce,oe,J,W,V,Q,xe),p(G,ae,L,U,q,P,W),C.setClipUrl(G,W._clipPathId,L)})};function b(T,L){var P,d,k,I,N,B,G,U,H;for(P=0;Pae&&(d.max=ae),d.len=d.max-d.min}function g(T,L,P){var d=T.getPointAtLength(L),k=T.getPointAtLength(P),I=k.x-d.x,N=k.y-d.y,B=Math.sqrt(I*I+N*N);return[I/B,N/B]}function c(T){var L=Math.sqrt(T[0]*T[0]+T[1]*T[1]);return[T[0]/L,T[1]/L]}function y(T,L){var P=Math.abs(T[0]*L[0]+T[1]*L[1]),d=Math.sqrt(1-P*P);return d/P}function A(T,L,P,d,k,I){var N,B,G,U,H=w.ensureSingle(T,"g","contourbg"),W=H.selectAll("path").data(I==="fill"&&!k?[0]:[]);W.enter().append("path"),W.exit().remove();var V=[];for(U=0;U=0&&($=ee,q=ae):Math.abs(V[1]-$[1])=0&&($=ee,q=ae):w.log("endpt to newendpt is not vert. or horz.",V,$,ee)}if(q>=0)break;U+=ce(V,$),V=$}if(q===L.edgepaths.length){w.log("unclosed perimeter path");break}G=q,W=H.indexOf(G)===-1,W&&(G=H[0],U+=ce(V,$)+"Z",V=null)}for(G=0;G0?+p[u]:0),f.push({type:"Feature",geometry:{type:"Point",coordinates:y},properties:A})}}var R=C.extractOpts(n),T=R.reversescale?C.flipScale(R.colorscale):R.colorscale,L=T[0][1],P=i.opacity(L)<1?L:i.addOpacity(L,0),d=["interpolate",["linear"],["heatmap-density"],0,P];for(u=1;u=0;m--)w.removeLayer(v[m][1])},C.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},D.exports=function(v,m){var a=m[0].trace,n=new i(v,a.uid),s=n.sourceId,o=l(m),h=n.below=v.belowLookup["trace-"+a.uid];return v.map.addSource(s,{type:"geojson",data:o.geojson}),n._addLayers(o,h),n}},74248:function(D,O,t){var l=t(3400);D.exports=function(i,C){for(var w=0;w"),o.color=C(f,p),[o]}};function C(w,v){var m=w.marker,a=v.mc||m.color,n=v.mlc||m.line.color,s=v.mlw||m.line.width;if(l(a))return a;if(l(n)&&s)return n}},94704:function(D,O,t){D.exports={attributes:t(20088),layoutAttributes:t(7076),supplyDefaults:t(45432).supplyDefaults,crossTraceDefaults:t(45432).crossTraceDefaults,supplyLayoutDefaults:t(11631),calc:t(23096),crossTraceCalc:t(4804),plot:t(42200),style:t(44544).style,hoverPoints:t(31488),eventData:t(34580),selectPoints:t(45784),moduleType:"trace",name:"funnel",basePlotModule:t(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(D){D.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(D,O,t){var l=t(3400),S=t(7076);D.exports=function(i,C,w){var v=!1;function m(s,o){return l.coerce(i,C,S,s,o)}for(var a=0;a path").each(function(p){if(!p.isBlank){var E=b.marker;l.select(this).call(i.fill,p.mc||E.color).call(i.stroke,p.mlc||E.line.color).call(S.dashLine,E.line.dash,p.mlw||E.line.width).style("opacity",b.selectedpoints&&!p.selected?C:1)}}),m(u,b,n),u.selectAll(".regions").each(function(){l.select(this).selectAll("path").style("stroke-width",0).call(i.fill,b.connector.fillcolor)}),u.selectAll(".lines").each(function(){var p=b.connector.line;S.lineGroupStyle(l.select(this).selectAll("path"),p.width,p.color,p.dash)})})}D.exports={style:a}},22332:function(D,O,t){var l=t(74996),S=t(45464),i=t(86968).u,C=t(21776).Ks,w=t(21776).Gw,v=t(92880).extendFlat;D.exports={labels:l.labels,label0:l.label0,dlabel:l.dlabel,values:l.values,marker:{colors:l.marker.colors,line:{color:v({},l.marker.line.color,{dflt:null}),width:v({},l.marker.line.width,{dflt:1}),editType:"calc"},pattern:l.marker.pattern,editType:"calc"},text:l.text,hovertext:l.hovertext,scalegroup:v({},l.scalegroup,{}),textinfo:v({},l.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:v({},S.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:C({},{keys:["label","color","value","text","percent"]}),textposition:v({},l.textposition,{values:["inside","none"],dflt:"inside"}),textfont:l.textfont,insidetextfont:l.insidetextfont,title:{text:l.title.text,font:l.title.font,position:v({},l.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(D,O,t){var l=t(7316);O.name="funnelarea",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},54e3:function(D,O,t){var l=t(45768);function S(C,w){return l.calc(C,w)}function i(C){l.crossTraceCalc(C,{type:"funnelarea"})}D.exports={calc:S,crossTraceCalc:i}},92688:function(D,O,t){var l=t(3400),S=t(22332),i=t(86968).Q,C=t(31508).handleText,w=t(74174).handleLabelsAndValues,v=t(74174).handleMarkerDefaults;D.exports=function(a,n,s,o){function h(M,R){return l.coerce(a,n,S,M,R)}var f=h("labels"),u=h("values"),b=w(f,u),p=b.len;if(n._hasLabels=b.hasLabels,n._hasValues=b.hasValues,!n._hasLabels&&n._hasValues&&(h("label0"),h("dlabel")),!p){n.visible=!1;return}n._length=p,v(a,n,o,h),h("scalegroup");var E=h("text"),g=h("texttemplate"),c;if(g||(c=h("textinfo",Array.isArray(E)?"text+percent":"percent")),h("hovertext"),h("hovertemplate"),g||c&&c!=="none"){var y=h("textposition");C(a,n,o,h,y,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else c==="none"&&h("textposition","none");i(n,o,h);var A=h("title.text");A&&(h("title.position"),l.coerceFont(h,"title.font",o.font)),h("aspectratio"),h("baseratio")}},62396:function(D,O,t){D.exports={moduleType:"trace",name:"funnelarea",basePlotModule:t(91248),categories:["pie-like","funnelarea","showLegend"],attributes:t(22332),layoutAttributes:t(61280),supplyDefaults:t(92688),supplyLayoutDefaults:t(35384),calc:t(54e3).calc,crossTraceCalc:t(54e3).crossTraceCalc,plot:t(39472),style:t(62096),styleOne:t(10528),meta:{}}},61280:function(D,O,t){var l=t(85204).hiddenlabels;D.exports={hiddenlabels:l,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(D,O,t){var l=t(3400),S=t(61280);D.exports=function(C,w){function v(m,a){return l.coerce(C,w,S,m,a)}v("hiddenlabels"),v("funnelareacolorway",w.colorway),v("extendfunnelareacolors")}},39472:function(D,O,t){var l=t(33428),S=t(43616),i=t(3400),C=i.strScale,w=i.strTranslate,v=t(72736),m=t(98184),a=m.toMoveInsideBar,n=t(82744),s=n.recordMinTextSize,o=n.clearMinTextSize,h=t(69656),f=t(37820),u=f.attachFxHandlers,b=f.determineInsideTextFont,p=f.layoutAreas,E=f.prerenderTitles,g=f.positionTitleOutside,c=f.formatSliceLabel;D.exports=function(T,L){var P=T._context.staticPlot,d=T._fullLayout;o("funnelarea",d),E(L,T),p(L,d._size),i.makeTraceGroups(d._funnelarealayer,L,"trace").each(function(k){var I=l.select(this),N=k[0],B=N.trace;M(k),I.each(function(){var G=l.select(this).selectAll("g.slice").data(k);G.enter().append("g").classed("slice",!0),G.exit().remove(),G.each(function(H,W){if(H.hidden){l.select(this).selectAll("path,g").remove();return}H.pointNumber=H.i,H.curveNumber=B.index;var V=N.cx,$=N.cy,Z=l.select(this),q=Z.selectAll("path.surface").data([H]);q.enter().append("path").classed("surface",!0).style({"pointer-events":P?"none":"all"}),Z.call(u,T,k);var ae="M"+(V+H.TR[0])+","+($+H.TR[1])+y(H.TR,H.BR)+y(H.BR,H.BL)+y(H.BL,H.TL)+"Z";q.attr("d",ae),c(T,H,N);var ie=h.castOption(B.textposition,H.pts),fe=Z.selectAll("g.slicetext").data(H.text&&ie!=="none"?[0]:[]);fe.enter().append("g").classed("slicetext",!0),fe.exit().remove(),fe.each(function(){var Q=i.ensureSingle(l.select(this),"text","",function(de){de.attr("data-notex",1)}),J=i.ensureUniformFontSize(T,b(B,H,d.font));Q.text(H.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(S.font,J).call(v.convertToTspans,T);var oe=S.bBox(Q.node()),K,ne,ce,re=Math.min(H.BL[1],H.BR[1])+$,ee=Math.max(H.TL[1],H.TR[1])+$;ne=Math.max(H.TL[0],H.BL[0])+V,ce=Math.min(H.TR[0],H.BR[0])+V,K=a(ne,ce,re,ee,oe,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),K.fontSize=J.size,s(B.type,K,d),k[W].transform=K,i.setTransormAndDisplay(Q,K)})});var U=l.select(this).selectAll("g.titletext").data(B.title.text?[0]:[]);U.enter().append("g").classed("titletext",!0),U.exit().remove(),U.each(function(){var H=i.ensureSingle(l.select(this),"text","",function($){$.attr("data-notex",1)}),W=B.title.text;B._meta&&(W=i.templateString(W,B._meta)),H.text(W).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(S.font,B.title.font).call(v.convertToTspans,T);var V=g(N,d._size);H.attr("transform",w(V.x,V.y)+C(Math.min(1,V.scale))+w(V.tx,V.ty))})})})};function y(R,T){var L=T[0]-R[0],P=T[1]-R[1];return"l"+L+","+P}function A(R,T){return[.5*(R[0]+T[0]),.5*(R[1]+T[1])]}function M(R){if(!R.length)return;var T=R[0],L=T.trace,P=L.aspectratio,d=L.baseratio;d>.999&&(d=.999);var k=Math.pow(d,2),I=T.vTotal,N=I*k/(1-k),B=I,G=N/I;function U(){var le=Math.sqrt(G);return{x:le,y:-le}}function H(){var le=U();return[le.x,le.y]}var W,V=[];V.push(H());var $,Z;for($=R.length-1;$>-1;$--)if(Z=R[$],!Z.hidden){var q=Z.v/B;G+=q,V.push(H())}var ae=1/0,ie=-1/0;for($=0;$-1;$--)if(Z=R[$],!Z.hidden){re+=1;var ee=V[re][0],de=V[re][1];Z.TL=[-ee,de],Z.TR=[ee,de],Z.BL=ne,Z.BR=ce,Z.pxmid=A(Z.TR,Z.BR),ne=Z.TL,ce=Z.TR}}},62096:function(D,O,t){var l=t(33428),S=t(10528),i=t(82744).resizeText;D.exports=function(w){var v=w._fullLayout._funnelarealayer.selectAll(".trace");i(w,v,"funnelarea"),v.each(function(m){var a=m[0],n=a.trace,s=l.select(this);s.style({opacity:n.opacity}),s.selectAll("path.surface").each(function(o){l.select(this).call(S,o,n,w)})})}},83328:function(D,O,t){var l=t(52904),S=t(45464),i=t(25376),C=t(29736).axisHoverFormat,w=t(21776).Ks,v=t(21776).Gw,m=t(49084),a=t(92880).extendFlat;D.exports=a({z:{valType:"data_array",editType:"calc"},x:a({},l.x,{impliedEdits:{xtype:"array"}}),x0:a({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:a({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:a({},l.y,{impliedEdits:{ytype:"array"}}),y0:a({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:a({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:a({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:a({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:a({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:a({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:a({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:a({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:C("x"),yhoverformat:C("y"),zhoverformat:C("z",1),hovertemplate:w(),texttemplate:v({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:a({},S.showlegend,{dflt:!1})},{transforms:void 0},m("",{cLetter:"z",autoColorDflt:!1}))},19512:function(D,O,t){var l=t(24040),S=t(3400),i=t(54460),C=t(1220),w=t(55480),v=t(47128),m=t(2872),a=t(26136),n=t(70448),s=t(11240),o=t(35744),h=t(39032).BADNUM;D.exports=function(p,E){var g=i.getFromId(p,E.xaxis||"x"),c=i.getFromId(p,E.yaxis||"y"),y=l.traceIs(E,"contour"),A=l.traceIs(E,"histogram"),M=l.traceIs(E,"gl2d"),R=y?"best":E.zsmooth,T,L,P,d,k,I,N,B,G,U,H;if(g._minDtick=0,c._minDtick=0,A)H=w(p,E),d=H.orig_x,T=H.x,L=H.x0,P=H.dx,B=H.orig_y,k=H.y,I=H.y0,N=H.dy,G=H.z;else{var W=E.z;S.isArray1D(W)?(m(E,g,c,"x","y",["z"]),T=E._x,k=E._y,W=E._z):(d=E.x?g.makeCalcdata(E,"x"):[],B=E.y?c.makeCalcdata(E,"y"):[],T=C(E,g,"x",d).vals,k=C(E,c,"y",B).vals,E._x=T,E._y=k),L=E.x0,P=E.dx,I=E.y0,N=E.dy,G=a(W,E,g,c)}(g.rangebreaks||c.rangebreaks)&&(G=u(T,k,G),A||(T=f(T),k=f(k),E._x=T,E._y=k)),!A&&(y||E.connectgaps)&&(E._emptypoints=s(G),n(G,E._emptypoints));function V(oe){R=E._input.zsmooth=E.zsmooth=!1,S.warn('cannot use zsmooth: "fast": '+oe)}function $(oe){if(oe.length>1){var K=(oe[oe.length-1]-oe[0])/(oe.length-1),ne=Math.abs(K/100);for(U=0;Une)return!1}return!0}E._islinear=!1,g.type==="log"||c.type==="log"?R==="fast"&&V("log axis found"):$(T)?$(k)?E._islinear=!0:R==="fast"&&V("y scale is not linear"):R==="fast"&&V("x scale is not linear");var Z=S.maxRowLength(G),q=E.xtype==="scaled"?"":T,ae=o(E,q,L,P,Z,g),ie=E.ytype==="scaled"?"":k,fe=o(E,ie,I,N,G.length,c);M||(E._extremes[g._id]=i.findExtremes(g,ae),E._extremes[c._id]=i.findExtremes(c,fe));var Q={x:ae,y:fe,z:G,text:E._text||E.text,hovertext:E._hovertext||E.hovertext};if(E.xperiodalignment&&d&&(Q.orig_x=d),E.yperiodalignment&&B&&(Q.orig_y=B),q&&q.length===ae.length-1&&(Q.xCenter=q),ie&&ie.length===fe.length-1&&(Q.yCenter=ie),A&&(Q.xRanges=H.xRanges,Q.yRanges=H.yRanges,Q.pts=H.pts),y||v(p,E,{vals:G,cLetter:"z"}),y&&E.contours&&E.contours.coloring==="heatmap"){var J={type:E.type==="contour"?"heatmap":"histogram2d",xcalendar:E.xcalendar,ycalendar:E.ycalendar};Q.xfill=o(J,q,L,P,Z,g),Q.yfill=o(J,ie,I,N,G.length,c)}return[Q]};function f(b){for(var p=[],E=b.length,g=0;g=0;b--)u=v[b],h=u[0],f=u[1],p=((w[[h-1,f]]||n)[2]+(w[[h+1,f]]||n)[2]+(w[[h,f-1]]||n)[2]+(w[[h,f+1]]||n)[2])/20,p&&(E[u]=[h,f,p],v.splice(b,1),g=!0);if(!g)throw"findEmpties iterated with no new neighbors";for(u in E)w[u]=E[u],C.push(E[u])}return C.sort(function(c,y){return y[2]-c[2]})}},55512:function(D,O,t){var l=t(93024),S=t(3400),i=S.isArrayOrTypedArray,C=t(54460),w=t(8932).extractOpts;D.exports=function(m,a,n,s,o){o||(o={});var h=o.isContour,f=m.cd[0],u=f.trace,b=m.xa,p=m.ya,E=f.x,g=f.y,c=f.z,y=f.xCenter,A=f.yCenter,M=f.zmask,R=u.zhoverformat,T=E,L=g,P,d,k,I;if(m.index!==!1){try{k=Math.round(m.index[1]),I=Math.round(m.index[0])}catch{S.error("Error hovering on heatmap, pointNumber must be [row,col], found:",m.index);return}if(k<0||k>=c[0].length||I<0||I>c.length)return}else{if(l.inbox(a-E[0],a-E[E.length-1],0)>0||l.inbox(n-g[0],n-g[g.length-1],0)>0)return;if(h){var N;for(T=[2*E[0]-E[1]],N=1;NS;s++)n=w(m,a,C(n));return n>S&&l.log("interp2d didn't converge quickly",n),m};function w(v,m,a){var n=0,s,o,h,f,u,b,p,E,g,c,y,A,M;for(f=0;fA&&(n=Math.max(n,Math.abs(v[o][h]-y)/(M-A))))}return n}},39096:function(D,O,t){var l=t(3400);D.exports=function(i,C){i("texttemplate");var w=l.extendFlat({},C.font,{color:"auto",size:"auto"});l.coerceFont(i,"textfont",w)}},35744:function(D,O,t){var l=t(24040),S=t(3400).isArrayOrTypedArray;D.exports=function(C,w,v,m,a,n){var s=[],o=l.traceIs(C,"contour"),h=l.traceIs(C,"histogram"),f=l.traceIs(C,"gl2d"),u,b,p,E=S(w)&&w.length>1;if(E&&!h&&n.type!=="category"){var g=w.length;if(g<=a){if(o||f)s=Array.from(w).slice(0,a);else if(a===1)n.type==="log"?s=[.5*w[0],2*w[0]]:s=[w[0]-.5,w[0]+.5];else if(n.type==="log"){for(s=[Math.pow(w[0],1.5)/Math.pow(w[1],.5)],p=1;p0;)ne=d.c2p(V[de]),de--;for(ne0;)ee=k.c2p($[de]),de--;ee=d._length||ne<=0||re>=k._length||ee<=0;if(Te){var Ae=N.selectAll("image").data([]);Ae.exit().remove(),c(N);return}var be,Ie;xe==="fast"?(be=Q,Ie=fe):(be=Se,Ie=ke);var Ue=document.createElement("canvas");Ue.width=be,Ue.height=Ie;var Ne=Ue.getContext("2d",{willReadFrequently:!0}),ze=o(G,{noNumericCheck:!0,returnArray:!0}),$e,st;xe==="fast"?($e=J?function(fn){return Q-1-fn}:v.identity,st=oe?function(fn){return fe-1-fn}:v.identity):($e=function(fn){return v.constrain(Math.round(d.c2p(V[fn])-K),0,Se)},st=function(fn){return v.constrain(Math.round(k.c2p($[fn])-re),0,ke)});var vt=st(0),at=[vt,vt],nt=J?0:1,mt=oe?0:1,rt=0,lt=0,dt=0,wt=0,et,Be,Ye,Ze,We;function Fe(fn,Tn){if(fn!==void 0){var wn=ze(fn);return wn[0]=Math.round(wn[0]),wn[1]=Math.round(wn[1]),wn[2]=Math.round(wn[2]),rt+=Tn,lt+=wn[0]*Tn,dt+=wn[1]*Tn,wt+=wn[2]*Tn,wn}return[0,0,0,0]}function Me(fn,Tn,wn,Nn){var Yn=fn[wn.bin0];if(Yn===void 0)return Fe(void 0,1);var ga=fn[wn.bin1],Ia=Tn[wn.bin0],Ma=Tn[wn.bin1],ma=ga-Yn||0,Aa=Ia-Yn||0,Mr;return ga===void 0?Ma===void 0?Mr=0:Ia===void 0?Mr=2*(Ma-Yn):Mr=(2*Ma-Ia-Yn)*2/3:Ma===void 0?Ia===void 0?Mr=0:Mr=(2*Yn-ga-Ia)*2/3:Ia===void 0?Mr=(2*Ma-ga-Yn)*2/3:Mr=Ma+Yn-ga-Ia,Fe(Yn+wn.frac*ma+Nn.frac*(Aa+wn.frac*Mr))}if(xe!=="default"){var we=0,Re;try{Re=new Uint8Array(be*Ie*4)}catch{Re=new Array(be*Ie*4)}if(xe==="smooth"){var Pe=Z||V,Ve=q||$,Je=new Array(Pe.length),ot=new Array(Ve.length),yt=new Array(Se),ut=Z?A:y,It=q?A:y,Vt,xt,Lt;for(de=0;depr||pr>k._length))for(le=jt;leXe||Xe>d._length)){var Ut=a({x:Ke,y:vr},G,R._fullLayout);Ut.x=Ke,Ut.y=vr;var Bt=B.z[de][le];Bt===void 0?(Ut.z="",Ut.zLabel=""):(Ut.z=Bt,Ut.zLabel=w.tickText(Mt,Bt,"hover").text);var Qt=B.text&&B.text[de]&&B.text[de][le];(Qt===void 0||Qt===!1)&&(Qt=""),Ut.text=Qt;var or=v.texttemplateString(Ct,Ut,R._fullLayout._d3locale,Ut,G._meta||{});if(or){var fr=or.split("
"),ar=fr.length,Ht=0;for(he=0;he0&&(a=!0);for(var h=0;hv){var m=v-C[S];return C[S]=v,m}}else return C[S]=v,v;return 0},max:function(S,i,C,w){var v=w[i];if(l(v))if(v=Number(v),l(C[S])){if(C[S]L&&LC){var k=P===S?1:6,I=P===S?"M12":"M1";return function(N,B){var G=E.c2d(N,S,g),U=G.indexOf("-",k);U>0&&(G=G.substr(0,U));var H=E.d2c(G,0,g);if(Hm?f>C?f>S*1.1?S:f>i*1.1?i:C:f>w?w:f>v?v:m:Math.pow(10,Math.floor(Math.log(f)/Math.LN10))}function o(f,u,b,p,E,g){if(p&&f>C){var c=h(u,E,g),y=h(b,E,g),A=f===S?0:1;return c[A]!==y[A]}return Math.floor(b/f)-Math.floor(u/f)>.1}function h(f,u,b){var p=u.c2d(f,S,b).split("-");return p[0]===""&&(p.unshift(),p[0]="-"+p[0]),p}},35852:function(D,O,t){var l=t(38248),S=t(3400),i=t(24040),C=t(54460),w=t(84664),v=t(16964),m=t(10648),a=t(2e3),n=t(67712);function s(b,p){var E=[],g=[],c=p.orientation==="h",y=C.getFromId(b,c?p.yaxis:p.xaxis),A=c?"y":"x",M={x:"y",y:"x"}[A],R=p[A+"calendar"],T=p.cumulative,L,P=o(b,p,y,A),d=P[0],k=P[1],I=typeof d.size=="string",N=[],B=I?N:d,G=[],U=[],H=[],W=0,V=p.histnorm,$=p.histfunc,Z=V.indexOf("density")!==-1,q,ae,ie;T.enabled&&Z&&(V=V.replace(/ ?density$/,""),Z=!1);var fe=$==="max"||$==="min",Q=fe?null:0,J=v.count,oe=m[V],K=!1,ne=function(Ne){return y.r2c(Ne,0,R)},ce;for(S.isArrayOrTypedArray(p[M])&&$!=="count"&&(ce=p[M],K=$==="avg",J=v[$]),L=ne(d.start),ae=ne(d.end)+(L-C.tickIncrement(L,d.size,!1,R))/1e6;L=0&&ie=be;L--)if(g[L]){Ie=L;break}for(L=be;L<=Ie;L++)if(l(E[L])&&l(g[L])){var Ue={p:E[L],s:g[L],b:0};T.enabled||(Ue.pts=H[L],le?Ue.ph0=Ue.ph1=H[L].length?k[H[L][0]]:E[L]:(p._computePh=!0,Ue.ph0=ke(N[L]),Ue.ph1=ke(N[L+1],!0))),Ae.push(Ue)}return Ae.length===1&&(Ae[0].width1=C.tickIncrement(Ae[0].p,d.size,!1,R)-Ae[0].p),w(Ae,p),S.isArrayOrTypedArray(p.selectedpoints)&&S.tagSelected(Ae,p,Ee),Ae}function o(b,p,E,g,c){var y=g+"bins",A=b._fullLayout,M=p["_"+g+"bingroup"],R=A._histogramBinOpts[M],T=A.barmode==="overlay",L,P,d,k,I,N,B,G=function(Se){return E.r2c(Se,0,k)},U=function(Se){return E.c2r(Se,0,k)},H=E.type==="date"?function(Se){return Se||Se===0?S.cleanDate(Se,null,k):null}:function(Se){return l(Se)?Number(Se):null};function W(Se,ke,Te){ke[Se+"Found"]?(ke[Se]=H(ke[Se]),ke[Se]===null&&(ke[Se]=Te[Se])):(N[Se]=ke[Se]=Te[Se],S.nestedProperty(P[0],y+"."+Se).set(Te[Se]))}if(p["_"+g+"autoBinFinished"])delete p["_"+g+"autoBinFinished"];else{P=R.traces;var V=[],$=!0,Z=!1,q=!1;for(L=0;L"u"){if(c)return[ie,I,!0];ie=h(b,p,E,g,y)}B=d.cumulative||{},B.enabled&&B.currentbin!=="include"&&(B.direction==="decreasing"?ie.start=U(C.tickIncrement(G(ie.start),ie.size,!0,k)):ie.end=U(C.tickIncrement(G(ie.end),ie.size,!1,k))),R.size=ie.size,R.sizeFound||(N.size=ie.size,S.nestedProperty(P[0],y+".size").set(ie.size)),W("start",R,ie),W("end",R,ie)}I=p["_"+g+"pos0"],delete p["_"+g+"pos0"];var Q=p._input[y]||{},J=S.extendFlat({},R),oe=R.start,K=E.r2l(Q.start),ne=K!==void 0;if((R.startFound||ne)&&K!==E.r2l(oe)){var ce=ne?K:S.aggNums(Math.min,null,I),re={type:E.type==="category"||E.type==="multicategory"?"linear":E.type,r2l:E.r2l,dtick:R.size,tick0:oe,calendar:k,range:[ce,C.tickIncrement(ce,R.size,!1,k)].map(E.l2r)},ee=C.tickFirst(re);ee>E.r2l(ce)&&(ee=C.tickIncrement(ee,R.size,!0,k)),J.start=E.l2r(ee),ne||S.nestedProperty(p,y+".start").set(J.start)}var de=R.end,le=E.r2l(Q.end),he=le!==void 0;if((R.endFound||he)&&le!==E.r2l(de)){var xe=he?le:S.aggNums(Math.max,null,I);J.end=E.l2r(xe),he||S.nestedProperty(p,y+".start").set(J.end)}var Ee="autobin"+g;return p._input[Ee]===!1&&(p._input[y]=S.extendFlat({},p[y]||{}),delete p._input[Ee],delete p[Ee]),[J,I]}function h(b,p,E,g,c){var y=b._fullLayout,A=f(b,p),M=!1,R=1/0,T=[p],L,P,d;for(L=0;L=0;g--)M(g);else if(p==="increasing"){for(g=1;g=0;g--)b[g]+=b[g+1];E==="exclude"&&(b.push(0),b.shift())}}D.exports={calc:s,calcAllAutoBins:o}},73316:function(D){D.exports={eventDataKeys:["binNumber"]}},80536:function(D,O,t){var l=t(3400),S=t(79811),i=t(24040).traceIs,C=t(20011),w=t(31508).validateCornerradius,v=l.nestedProperty,m=t(71888).getAxisGroup,a=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],n=["x","y"];D.exports=function(o,h){var f=h._histogramBinOpts={},u=[],b={},p=[],E,g,c,y,A,M,R;function T(ie,fe){return l.coerce(E._input,E,E._module.attributes,ie,fe)}function L(ie){return ie.orientation==="v"?"x":"y"}function P(ie,fe){var Q=S.getFromTrace({_fullLayout:h},ie,fe);return Q.type}function d(ie,fe,Q){var J=ie.uid+"__"+Q;fe||(fe=J);var oe=P(ie,Q),K=ie[Q+"calendar"]||"",ne=f[fe],ce=!0;ne&&(oe===ne.axType&&K===ne.calendar?(ce=!1,ne.traces.push(ie),ne.dirs.push(Q)):(fe=J,oe!==ne.axType&&l.warn(["Attempted to group the bins of trace",ie.index,"set on a","type:"+oe,"axis","with bins on","type:"+ne.axType,"axis."].join(" ")),K!==ne.calendar&&l.warn(["Attempted to group the bins of trace",ie.index,"set with a",K,"calendar","with bins",ne.calendar?"on a "+ne.calendar+" calendar":"w/o a set calendar"].join(" ")))),ce&&(f[fe]={traces:[ie],dirs:[Q],axType:oe,calendar:ie[Q+"calendar"]||""}),ie["_"+Q+"bingroup"]=fe}for(A=0;AG&&k.splice(G,k.length-G),B.length>G&&B.splice(G,B.length-G);var U=[],H=[],W=[],V=typeof d.size=="string",$=typeof N.size=="string",Z=[],q=[],ae=V?Z:d,ie=$?q:N,fe=0,Q=[],J=[],oe=f.histnorm,K=f.histfunc,ne=oe.indexOf("density")!==-1,ce=K==="max"||K==="min",re=ce?null:0,ee=i.count,de=C[oe],le=!1,he=[],xe=[],Ee="z"in f?f.z:"marker"in f&&Array.isArray(f.marker.color)?f.marker.color:"";Ee&&K!=="count"&&(le=K==="avg",ee=i[K]);var Se=d.size,ke=g(d.start),Te=g(d.end)+(ke-S.tickIncrement(ke,Se,!1,p))/1e6;for(M=ke;M=0&&T=0&&L-1,flipY:H.tiling.flip.indexOf("y")>-1,orientation:H.tiling.orientation,pad:{inner:H.tiling.pad},maxDepth:H._maxDepth}),q=Z.descendants(),ae=1/0,ie=-1/0;q.forEach(function(K){var ne=K.depth;ne>=H._maxDepth?(K.x0=K.x1=(K.x0+K.x1)/2,K.y0=K.y1=(K.y0+K.y1)/2):(ae=Math.min(ae,ne),ie=Math.max(ie,ne))}),p=p.data(q,a.getPtId),H._maxVisibleLayers=isFinite(ie)?ie-ae+1:0,p.enter().append("g").classed("slice",!0),P(p,o,N,[g,c],M),p.order();var fe=null;if(L&&I){var Q=a.getPtId(I);p.each(function(K){fe===null&&a.getPtId(K)===Q&&(fe={x0:K.x0,x1:K.x1,y0:K.y0,y1:K.y1})})}var J=function(){return fe||{x0:0,x1:g,y0:0,y1:c}},oe=p;return L&&(oe=oe.transition().each("end",function(){var K=l.select(this);a.setSliceCursor(K,f,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),oe.each(function(K){K._x0=y(K.x0),K._x1=y(K.x1),K._y0=A(K.y0),K._y1=A(K.y1),K._hoverX=y(K.x1-H.tiling.pad),K._hoverY=A($?K.y1-H.tiling.pad/2:K.y0+H.tiling.pad/2);var ne=l.select(this),ce=S.ensureSingle(ne,"path","surface",function(le){le.style("pointer-events",B?"none":"all")});L?ce.transition().attrTween("d",function(le){var he=d(le,o,J(),[g,c],{orientation:H.tiling.orientation,flipX:H.tiling.flip.indexOf("x")>-1,flipY:H.tiling.flip.indexOf("y")>-1});return function(xe){return M(he(xe))}}):ce.attr("d",M),ne.call(n,b,f,u,{styleOne:v,eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,f,{isTransitioning:f._transitioning}),ce.call(v,K,H,f,{hovered:!1}),K.x0===K.x1||K.y0===K.y1?K._text="":K._text=s(K,b,H,u,G)||"";var re=S.ensureSingle(ne,"g","slicetext"),ee=S.ensureSingle(re,"text","",function(le){le.attr("data-notex",1)}),de=S.ensureUniformFontSize(f,a.determineTextFont(H,K,G.font));ee.text(K._text||" ").classed("slicetext",!0).attr("text-anchor",V?"end":W?"start":"middle").call(i.font,de).call(C.convertToTspans,f),K.textBB=i.bBox(ee.node()),K.transform=R(K,{fontSize:de.size}),K.transform.fontSize=de.size,L?ee.transition().attrTween("transform",function(le){var he=k(le,o,J(),[g,c]);return function(xe){return T(he(xe))}}):ee.attr("transform",T(K))}),fe}},29044:function(D,O,t){D.exports={moduleType:"trace",name:"icicle",basePlotModule:t(59564),categories:[],animatable:!0,attributes:t(97376),layoutAttributes:t(90676),supplyDefaults:t(7045),supplyLayoutDefaults:t(4304),calc:t(73876).r,crossTraceCalc:t(73876).q,plot:t(38364),style:t(47192).style,colorbar:t(5528),meta:{}}},90676:function(D){D.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(D,O,t){var l=t(3400),S=t(90676);D.exports=function(C,w){function v(m,a){return l.coerce(C,w,S,m,a)}v("iciclecolorway",w.colorway),v("extendiciclecolors")}},25132:function(D,O,t){var l=t(74148),S=t(83024);D.exports=function(C,w,v){var m=v.flipX,a=v.flipY,n=v.orientation==="h",s=v.maxDepth,o=w[0],h=w[1];s&&(o=(C.height+1)*w[0]/Math.min(C.height+1,s),h=(C.height+1)*w[1]/Math.min(C.height+1,s));var f=l.partition().padding(v.pad.inner).size(n?[w[1],o]:[w[0],h])(C);return(n||m||a)&&S(f,w,{swapXY:n,flipX:m,flipY:a}),f}},38364:function(D,O,t){var l=t(95808),S=t(67880);D.exports=function(C,w,v,m){return l(C,w,v,m,{type:"icicle",drawDescendants:S})}},47192:function(D,O,t){var l=t(33428),S=t(76308),i=t(3400),C=t(82744).resizeText,w=t(60404);function v(a){var n=a._fullLayout._iciclelayer.selectAll(".trace");C(a,n,"icicle"),n.each(function(s){var o=l.select(this),h=s[0],f=h.trace;o.style("opacity",f.opacity),o.selectAll("path.surface").each(function(u){l.select(this).call(m,u,f,a)})})}function m(a,n,s,o){var h=n.data.data,f=!n.children,u=h.i,b=i.castOption(s,u,"marker.line.color")||S.defaultLine,p=i.castOption(s,u,"marker.line.width")||0;a.call(w,n,s,o).style("stroke-width",p).call(S.stroke,b).style("opacity",f?s.leaf.opacity:null)}D.exports={style:v,styleOne:m}},95188:function(D,O,t){for(var l=t(45464),S=t(21776).Ks,i=t(92880).extendFlat,C=t(47797).colormodel,w=["rgb","rgba","rgba256","hsl","hsla"],v=[],m=[],a=0;a0||l.inbox(a-n.y0,a-(n.y0+n.h*s.dy),0)>0)){var f=Math.floor((m-n.x0)/s.dx),u=Math.floor(Math.abs(a-n.y0)/s.dy),b;if(s._hasZ?b=n.z[u][f]:s._hasSource&&(b=s._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(f,u,1,1).data),!!b){var p=n.hi||s.hoverinfo,E;if(p){var g=p.split("+");g.indexOf("all")!==-1&&(g=["color"]),g.indexOf("color")!==-1&&(E=!0)}var c=C.colormodel[s.colormodel],y=c.colormodel||s.colormodel,A=y.length,M=s._scaler(b),R=c.suffix,T=[];(s.hovertemplate||E)&&(T.push("["+[M[0]+R[0],M[1]+R[1],M[2]+R[2]].join(", ")),A===4&&T.push(", "+M[3]+R[3]),T.push("]"),T=T.join(""),v.extraText=y.toUpperCase()+": "+T);var L;i(s.hovertext)&&i(s.hovertext[u])?L=s.hovertext[u][f]:i(s.text)&&i(s.text[u])&&(L=s.text[u][f]);var P=h.c2p(n.y0+(u+.5)*s.dy),d=n.x0+(f+.5)*s.dx,k=n.y0+(u+.5)*s.dy,I="["+b.slice(0,s.colormodel.length).join(", ")+"]";return[S.extendFlat(v,{index:[u,f],x0:o.c2p(n.x0+f*s.dx),x1:o.c2p(n.x0+(f+1)*s.dx),y0:P,y1:P,color:M,xVal:d,xLabelVal:d,yVal:k,yLabelVal:k,zLabelVal:I,text:L,hovertemplateLabels:{zLabel:I,colorLabel:T,"color[0]Label":M[0]+R[0],"color[1]Label":M[1]+R[1],"color[2]Label":M[2]+R[2],"color[3]Label":M[3]+R[3]}})]}}}},48928:function(D,O,t){D.exports={attributes:t(95188),supplyDefaults:t(13188),calc:t(93336),plot:t(63715),style:t(28576),hoverPoints:t(24892),eventData:t(79972),moduleType:"trace",name:"image",basePlotModule:t(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(D,O,t){var l=t(33428),S=t(3400),i=S.strTranslate,C=t(9616),w=t(47797),v=t(9188),m=t(2264).STYLE;D.exports=function(n,s,o,h){var f=s.xaxis,u=s.yaxis,b=!n._context._exportedPlot&&v();S.makeTraceGroups(h,o,"im").each(function(p){var E=l.select(this),g=p[0],c=g.trace,y=(c.zsmooth==="fast"||c.zsmooth===!1&&b)&&!c._hasZ&&c._hasSource&&f.type==="linear"&&u.type==="linear";c._realImage=y;var A=g.z,M=g.x0,R=g.y0,T=g.w,L=g.h,P=c.dx,d=c.dy,k,I,N,B,G,U;for(U=0;k===void 0&&U0;)I=f.c2p(M+U*P),U--;for(U=0;B===void 0&&U0;)G=u.c2p(R+U*d),U--;if(IQ[0];if(J||oe){var K=k+W/2,ne=B+V/2;ie+="transform:"+i(K+"px",ne+"px")+"scale("+(J?-1:1)+","+(oe?-1:1)+")"+i(-K+"px",-ne+"px")+";"}}ae.attr("style",ie);var ce=new Promise(function(re){if(c._hasZ)re();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===T&&c._canvas.el.height===L&&c._canvas.source===c.source)re();else{var ee=document.createElement("canvas");ee.width=T,ee.height=L;var de=ee.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var le=c._image;le.onload=function(){de.drawImage(le,0,0),c._canvas={el:ee,source:c.source},re()},le.setAttribute("src",c.source)}}).then(function(){var re,ee;if(c._hasZ)ee=q(function(he,xe){var Ee=A[xe][he];return S.isTypedArray(Ee)&&(Ee=Array.from(Ee)),Ee}),re=ee.toDataURL("image/png");else if(c._hasSource)if(y)re=c.source;else{var de=c._canvas.el.getContext("2d",{willReadFrequently:!0}),le=de.getImageData(0,0,T,L).data;ee=q(function(he,xe){var Ee=4*(xe*T+he);return[le[Ee],le[Ee+1],le[Ee+2],le[Ee+3]]}),re=ee.toDataURL("image/png")}ae.attr({"xlink:href":re,height:V,width:W,x:k,y:B})});n._promises.push(ce)})}},28576:function(D,O,t){var l=t(33428);D.exports=function(i){l.select(i).selectAll(".im image").style("opacity",function(C){return C[0].trace.opacity})}},89864:function(D,O,t){var l=t(92880).extendFlat,S=t(92880).extendDeep,i=t(67824).overrideAll,C=t(25376),w=t(22548),v=t(86968).u,m=t(94724),a=t(31780).templatedArray,n=t(48164),s=t(29736).descriptionOnlyNumbers,o=C({editType:"plot",colorEditType:"plot"}),h={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:w.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},f={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},u=a("step",S({},h,{range:f}));D.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:v({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:l({},o,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:s("value")},font:l({},o,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:s("value")},increasing:{symbol:{valType:"string",dflt:n.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:n.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:n.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:n.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:l({},o,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:S({},h,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:w.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:i({range:f,visible:l({},m.visible,{dflt:!0}),tickmode:m.minor.tickmode,nticks:m.nticks,tick0:m.tick0,dtick:m.dtick,tickvals:m.tickvals,ticktext:m.ticktext,ticks:l({},m.ticks,{dflt:"outside"}),ticklen:m.ticklen,tickwidth:m.tickwidth,tickcolor:m.tickcolor,ticklabelstep:m.ticklabelstep,showticklabels:m.showticklabels,labelalias:m.labelalias,tickfont:C({}),tickangle:m.tickangle,tickformat:m.tickformat,tickformatstops:m.tickformatstops,tickprefix:m.tickprefix,showtickprefix:m.showtickprefix,ticksuffix:m.ticksuffix,showticksuffix:m.showticksuffix,separatethousands:m.separatethousands,exponentformat:m.exponentformat,minexponent:m.minexponent,showexponent:m.showexponent,editType:"plot"},"plot"),steps:u,threshold:{line:{color:l({},h.line.color,{}),width:l({},h.line.width,{dflt:1}),editType:"plot"},thickness:l({},h.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(D,O,t){var l=t(7316);O.name="indicator",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},79136:function(D){function O(t,l){var S=[],i=l.value;typeof l._lastValue!="number"&&(l._lastValue=l.value);var C=l._lastValue,w=C;return l._hasDelta&&typeof l.delta.reference=="number"&&(w=l.delta.reference),S[0]={y:i,lastY:C,delta:i-w,relativeDelta:(i-w)/w},S}D.exports={calc:O}},12096:function(D){D.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(D,O,t){var l=t(3400),S=t(89864),i=t(86968).Q,C=t(31780),w=t(51272),v=t(12096),m=t(26332),a=t(25404),n=t(95936),s=t(42568);function o(f,u,b,p){function E(G,U){return l.coerce(f,u,S,G,U)}i(u,p,E),E("mode"),u._hasNumber=u.mode.indexOf("number")!==-1,u._hasDelta=u.mode.indexOf("delta")!==-1,u._hasGauge=u.mode.indexOf("gauge")!==-1;var g=E("value");u._range=[0,typeof g=="number"?1.5*g:1];var c=new Array(2),y;u._hasNumber&&(E("number.valueformat"),E("number.font.color",p.font.color),E("number.font.family",p.font.family),E("number.font.size"),u.number.font.size===void 0&&(u.number.font.size=v.defaultNumberFontSize,c[0]=!0),E("number.prefix"),E("number.suffix"),y=u.number.font.size);var A;u._hasDelta&&(E("delta.font.color",p.font.color),E("delta.font.family",p.font.family),E("delta.font.size"),u.delta.font.size===void 0&&(u.delta.font.size=(u._hasNumber?.5:1)*(y||v.defaultNumberFontSize),c[1]=!0),E("delta.reference",u.value),E("delta.relative"),E("delta.valueformat",u.delta.relative?"2%":""),E("delta.increasing.symbol"),E("delta.increasing.color"),E("delta.decreasing.symbol"),E("delta.decreasing.color"),E("delta.position"),E("delta.prefix"),E("delta.suffix"),A=u.delta.font.size),u._scaleNumbers=(!u._hasNumber||c[0])&&(!u._hasDelta||c[1])||!1,E("title.font.color",p.font.color),E("title.font.family",p.font.family),E("title.font.size",.25*(y||A||v.defaultNumberFontSize)),E("title.text");var M,R,T,L;function P(G,U){return l.coerce(M,R,S.gauge,G,U)}function d(G,U){return l.coerce(T,L,S.gauge.axis,G,U)}if(u._hasGauge){M=f.gauge,M||(M={}),R=C.newContainer(u,"gauge"),P("shape");var k=u._isBullet=u.gauge.shape==="bullet";k||E("title.align","center");var I=u._isAngular=u.gauge.shape==="angular";I||E("align","center"),P("bgcolor",p.paper_bgcolor),P("borderwidth"),P("bordercolor"),P("bar.color"),P("bar.line.color"),P("bar.line.width");var N=v.valueThickness*(u.gauge.shape==="bullet"?.5:1);P("bar.thickness",N),w(M,R,{name:"steps",handleItemDefaults:h}),P("threshold.value"),P("threshold.thickness"),P("threshold.line.width"),P("threshold.line.color"),T={},M&&(T=M.axis||{}),L=C.newContainer(R,"axis"),d("visible"),u._range=d("range",u._range);var B={noAutotickangles:!0,outerTicks:!0};m(T,L,d,"linear"),s(T,L,d,"linear",B),n(T,L,d,"linear",B),a(T,L,d,B)}else E("title.align","center"),E("align","center"),u._isAngular=u._isBullet=!1;u._length=null}function h(f,u){function b(p,E){return l.coerce(f,u,S.gauge.steps,p,E)}b("color"),b("line.color"),b("line.width"),b("range"),b("thickness")}D.exports={supplyDefaults:o}},43480:function(D,O,t){D.exports={moduleType:"trace",name:"indicator",basePlotModule:t(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:t(89864),supplyDefaults:t(20424).supplyDefaults,calc:t(79136).calc,plot:t(97864),meta:{}}},97864:function(D,O,t){var l=t(33428),S=t(67756).qy,i=t(67756).Gz,C=t(3400),w=C.strScale,v=C.strTranslate,m=C.rad2deg,a=t(84284).MID_SHIFT,n=t(43616),s=t(12096),o=t(72736),h=t(54460),f=t(28336),u=t(37668),b=t(94724),p=t(76308),E={left:"start",center:"middle",right:"end"},g={left:0,center:.5,right:1},c=/[yzafpnµmkMGTPEZY]/;function y(B){return B&&B.duration>0}D.exports=function(G,U,H,W){var V=G._fullLayout,$;y(H)&&W&&($=W()),C.makeTraceGroups(V._indicatorlayer,U,"trace").each(function(Z){var q=Z[0],ae=q.trace,ie=l.select(this),fe=ae._hasGauge,Q=ae._isAngular,J=ae._isBullet,oe=ae.domain,K={w:V._size.w*(oe.x[1]-oe.x[0]),h:V._size.h*(oe.y[1]-oe.y[0]),l:V._size.l+V._size.w*oe.x[0],r:V._size.r+V._size.w*(1-oe.x[1]),t:V._size.t+V._size.h*(1-oe.y[1]),b:V._size.b+V._size.h*oe.y[0]},ne=K.l+K.w/2,ce=K.t+K.h/2,re=Math.min(K.w/2,K.h),ee=s.innerRadius*re,de,le,he,xe=ae.align||"center";if(le=ce,!fe)de=K.l+g[xe]*K.w,he=function(ze){return d(ze,K.w,K.h)};else if(Q&&(de=ne,le=ce+re/2,he=function(ze){return k(ze,.9*ee)}),J){var Ee=s.bulletPadding,Se=1-s.bulletNumberDomainSize+Ee;de=K.l+(Se+(1-Se)*g[xe])*K.w,he=function(ze){return d(ze,(s.bulletNumberDomainSize-Ee)*K.w,K.h)}}R(G,ie,Z,{numbersX:de,numbersY:le,numbersScaler:he,transitionOpts:H,onComplete:$});var ke,Te;fe&&(ke={range:ae.gauge.axis.range,color:ae.gauge.bgcolor,line:{color:ae.gauge.bordercolor,width:0},thickness:1},Te={range:ae.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ae.gauge.bordercolor,width:ae.gauge.borderwidth},thickness:1});var Ae=ie.selectAll("g.angular").data(Q?Z:[]);Ae.exit().remove();var be=ie.selectAll("g.angularaxis").data(Q?Z:[]);be.exit().remove(),Q&&M(G,ie,Z,{radius:re,innerRadius:ee,gauge:Ae,layer:be,size:K,gaugeBg:ke,gaugeOutline:Te,transitionOpts:H,onComplete:$});var Ie=ie.selectAll("g.bullet").data(J?Z:[]);Ie.exit().remove();var Ue=ie.selectAll("g.bulletaxis").data(J?Z:[]);Ue.exit().remove(),J&&A(G,ie,Z,{gauge:Ie,layer:Ue,size:K,gaugeBg:ke,gaugeOutline:Te,transitionOpts:H,onComplete:$});var Ne=ie.selectAll("text.title").data(Z);Ne.exit().remove(),Ne.enter().append("text").classed("title",!0),Ne.attr("text-anchor",function(){return J?E.right:E[ae.title.align]}).text(ae.title.text).call(n.font,ae.title.font).call(o.convertToTspans,G),Ne.attr("transform",function(){var ze=K.l+K.w*g[ae.title.align],$e,st=s.titlePadding,vt=n.bBox(Ne.node());if(fe){if(Q)if(ae.gauge.axis.visible){var at=n.bBox(be.node());$e=at.top-st-vt.bottom}else $e=K.t+K.h/2-re/2-vt.bottom-st;J&&($e=le-(vt.top+vt.bottom)/2,ze=K.l-s.bulletPadding*K.w)}else $e=ae._numbersTop-st-vt.bottom;return v(ze,$e)})})};function A(B,G,U,H){var W=U[0].trace,V=H.gauge,$=H.layer,Z=H.gaugeBg,q=H.gaugeOutline,ae=H.size,ie=W.domain,fe=H.transitionOpts,Q=H.onComplete,J,oe,K,ne,ce;V.enter().append("g").classed("bullet",!0),V.attr("transform",v(ae.l,ae.t)),$.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),$.selectAll("g.xbulletaxistick,path,text").remove();var re=ae.h,ee=W.gauge.bar.thickness*re,de=ie.x[0],le=ie.x[0]+(ie.x[1]-ie.x[0])*(W._hasNumber||W._hasDelta?1-s.bulletNumberDomainSize:1);J=P(B,W.gauge.axis),J._id="xbulletaxis",J.domain=[de,le],J.setScale(),oe=h.calcTicks(J),K=h.makeTransTickFn(J),ne=h.getTickSigns(J)[2],ce=ae.t+ae.h,J.visible&&(h.drawTicks(B,J,{vals:J.ticks==="inside"?h.clipEnds(J,oe):oe,layer:$,path:h.makeTickPath(J,ce,ne),transFn:K}),h.drawLabels(B,J,{vals:oe,layer:$,transFn:K,labelFns:h.makeLabelFns(J,ce)}));function he(be){be.attr("width",function(Ie){return Math.max(0,J.c2p(Ie.range[1])-J.c2p(Ie.range[0]))}).attr("x",function(Ie){return J.c2p(Ie.range[0])}).attr("y",function(Ie){return .5*(1-Ie.thickness)*re}).attr("height",function(Ie){return Ie.thickness*re})}var xe=[Z].concat(W.gauge.steps),Ee=V.selectAll("g.bg-bullet").data(xe);Ee.enter().append("g").classed("bg-bullet",!0).append("rect"),Ee.select("rect").call(he).call(T),Ee.exit().remove();var Se=V.selectAll("g.value-bullet").data([W.gauge.bar]);Se.enter().append("g").classed("value-bullet",!0).append("rect"),Se.select("rect").attr("height",ee).attr("y",(re-ee)/2).call(T),y(fe)?Se.select("rect").transition().duration(fe.duration).ease(fe.easing).each("end",function(){Q&&Q()}).each("interrupt",function(){Q&&Q()}).attr("width",Math.max(0,J.c2p(Math.min(W.gauge.axis.range[1],U[0].y)))):Se.select("rect").attr("width",typeof U[0].y=="number"?Math.max(0,J.c2p(Math.min(W.gauge.axis.range[1],U[0].y))):0),Se.exit().remove();var ke=U.filter(function(){return W.gauge.threshold.value||W.gauge.threshold.value===0}),Te=V.selectAll("g.threshold-bullet").data(ke);Te.enter().append("g").classed("threshold-bullet",!0).append("line"),Te.select("line").attr("x1",J.c2p(W.gauge.threshold.value)).attr("x2",J.c2p(W.gauge.threshold.value)).attr("y1",(1-W.gauge.threshold.thickness)/2*re).attr("y2",(1-(1-W.gauge.threshold.thickness)/2)*re).call(p.stroke,W.gauge.threshold.line.color).style("stroke-width",W.gauge.threshold.line.width),Te.exit().remove();var Ae=V.selectAll("g.gauge-outline").data([q]);Ae.enter().append("g").classed("gauge-outline",!0).append("rect"),Ae.select("rect").call(he).call(T),Ae.exit().remove()}function M(B,G,U,H){var W=U[0].trace,V=H.size,$=H.radius,Z=H.innerRadius,q=H.gaugeBg,ae=H.gaugeOutline,ie=[V.l+V.w/2,V.t+V.h/2+$/2],fe=H.gauge,Q=H.layer,J=H.transitionOpts,oe=H.onComplete,K=Math.PI/2;function ne(nt){var mt=W.gauge.axis.range[0],rt=W.gauge.axis.range[1],lt=(nt-mt)/(rt-mt)*Math.PI-K;return lt<-K?-K:lt>K?K:lt}function ce(nt){return l.svg.arc().innerRadius((Z+$)/2-nt/2*($-Z)).outerRadius((Z+$)/2+nt/2*($-Z)).startAngle(-K)}function re(nt){nt.attr("d",function(mt){return ce(mt.thickness).startAngle(ne(mt.range[0])).endAngle(ne(mt.range[1]))()})}var ee,de,le,he;fe.enter().append("g").classed("angular",!0),fe.attr("transform",v(ie[0],ie[1])),Q.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),Q.selectAll("g.xangularaxistick,path,text").remove(),ee=P(B,W.gauge.axis),ee.type="linear",ee.range=W.gauge.axis.range,ee._id="xangularaxis",ee.ticklabeloverflow="allow",ee.setScale();var xe=function(nt){return(ee.range[0]-nt.x)/(ee.range[1]-ee.range[0])*Math.PI+Math.PI},Ee={},Se=h.makeLabelFns(ee,0),ke=Se.labelStandoff;Ee.xFn=function(nt){var mt=xe(nt);return Math.cos(mt)*ke},Ee.yFn=function(nt){var mt=xe(nt),rt=Math.sin(mt)>0?.2:1;return-Math.sin(mt)*(ke+nt.fontSize*rt)+Math.abs(Math.cos(mt))*(nt.fontSize*a)},Ee.anchorFn=function(nt){var mt=xe(nt),rt=Math.cos(mt);return Math.abs(rt)<.1?"middle":rt>0?"start":"end"},Ee.heightFn=function(nt,mt,rt){var lt=xe(nt);return-.5*(1+Math.sin(lt))*rt};var Te=function(nt){return v(ie[0]+$*Math.cos(nt),ie[1]-$*Math.sin(nt))};le=function(nt){return Te(xe(nt))};var Ae=function(nt){var mt=xe(nt);return Te(mt)+"rotate("+-m(mt)+")"};if(de=h.calcTicks(ee),he=h.getTickSigns(ee)[2],ee.visible){he=ee.ticks==="inside"?-1:1;var be=(ee.linewidth||1)/2;h.drawTicks(B,ee,{vals:de,layer:Q,path:"M"+he*be+",0h"+he*ee.ticklen,transFn:Ae}),h.drawLabels(B,ee,{vals:de,layer:Q,transFn:le,labelFns:Ee})}var Ie=[q].concat(W.gauge.steps),Ue=fe.selectAll("g.bg-arc").data(Ie);Ue.enter().append("g").classed("bg-arc",!0).append("path"),Ue.select("path").call(re).call(T),Ue.exit().remove();var Ne=ce(W.gauge.bar.thickness),ze=fe.selectAll("g.value-arc").data([W.gauge.bar]);ze.enter().append("g").classed("value-arc",!0).append("path");var $e=ze.select("path");y(J)?($e.transition().duration(J.duration).ease(J.easing).each("end",function(){oe&&oe()}).each("interrupt",function(){oe&&oe()}).attrTween("d",L(Ne,ne(U[0].lastY),ne(U[0].y))),W._lastValue=U[0].y):$e.attr("d",typeof U[0].y=="number"?Ne.endAngle(ne(U[0].y)):"M0,0Z"),$e.call(T),ze.exit().remove(),Ie=[];var st=W.gauge.threshold.value;(st||st===0)&&Ie.push({range:[st,st],color:W.gauge.threshold.color,line:{color:W.gauge.threshold.line.color,width:W.gauge.threshold.line.width},thickness:W.gauge.threshold.thickness});var vt=fe.selectAll("g.threshold-arc").data(Ie);vt.enter().append("g").classed("threshold-arc",!0).append("path"),vt.select("path").call(re).call(T),vt.exit().remove();var at=fe.selectAll("g.gauge-outline").data([ae]);at.enter().append("g").classed("gauge-outline",!0).append("path"),at.select("path").call(re).call(T),at.exit().remove()}function R(B,G,U,H){var W=U[0].trace,V=H.numbersX,$=H.numbersY,Z=W.align||"center",q=E[Z],ae=H.transitionOpts,ie=H.onComplete,fe=C.ensureSingle(G,"g","numbers"),Q,J,oe,K=[];W._hasNumber&&K.push("number"),W._hasDelta&&(K.push("delta"),W.delta.position==="left"&&K.reverse());var ne=fe.selectAll("text").data(K);ne.enter().append("text"),ne.attr("text-anchor",function(){return q}).attr("class",function(Te){return Te}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),ne.exit().remove();function ce(Te,Ae,be,Ie){if(Te.match("s")&&be>=0!=Ie>=0&&!Ae(be).slice(-1).match(c)&&!Ae(Ie).slice(-1).match(c)){var Ue=Te.slice().replace("s","f").replace(/\d+/,function(ze){return parseInt(ze)-1}),Ne=P(B,{tickformat:Ue});return function(ze){return Math.abs(ze)<1?h.tickText(Ne,ze).text:Ae(ze)}}else return Ae}function re(){var Te=P(B,{tickformat:W.number.valueformat},W._range);Te.setScale(),h.prepTicks(Te);var Ae=function(ze){return h.tickText(Te,ze).text},be=W.number.suffix,Ie=W.number.prefix,Ue=fe.select("text.number");function Ne(){var ze=typeof U[0].y=="number"?Ie+Ae(U[0].y)+be:"-";Ue.text(ze).call(n.font,W.number.font).call(o.convertToTspans,B)}return y(ae)?Ue.transition().duration(ae.duration).ease(ae.easing).each("end",function(){Ne(),ie&&ie()}).each("interrupt",function(){Ne(),ie&&ie()}).attrTween("text",function(){var ze=l.select(this),$e=i(U[0].lastY,U[0].y);W._lastValue=U[0].y;var st=ce(W.number.valueformat,Ae,U[0].lastY,U[0].y);return function(vt){ze.text(Ie+st($e(vt))+be)}}):Ne(),Q=I(Ie+Ae(U[0].y)+be,W.number.font,q,B),Ue}function ee(){var Te=P(B,{tickformat:W.delta.valueformat},W._range);Te.setScale(),h.prepTicks(Te);var Ae=function(vt){return h.tickText(Te,vt).text},be=W.delta.suffix,Ie=W.delta.prefix,Ue=function(vt){var at=W.delta.relative?vt.relativeDelta:vt.delta;return at},Ne=function(vt,at){return vt===0||typeof vt!="number"||isNaN(vt)?"-":(vt>0?W.delta.increasing.symbol:W.delta.decreasing.symbol)+Ie+at(vt)+be},ze=function(vt){return vt.delta>=0?W.delta.increasing.color:W.delta.decreasing.color};W._deltaLastValue===void 0&&(W._deltaLastValue=Ue(U[0]));var $e=fe.select("text.delta");$e.call(n.font,W.delta.font).call(p.fill,ze({delta:W._deltaLastValue}));function st(){$e.text(Ne(Ue(U[0]),Ae)).call(p.fill,ze(U[0])).call(o.convertToTspans,B)}return y(ae)?$e.transition().duration(ae.duration).ease(ae.easing).tween("text",function(){var vt=l.select(this),at=Ue(U[0]),nt=W._deltaLastValue,mt=ce(W.delta.valueformat,Ae,nt,at),rt=i(nt,at);return W._deltaLastValue=at,function(lt){vt.text(Ne(rt(lt),mt)),vt.call(p.fill,ze({delta:rt(lt)}))}}).each("end",function(){st(),ie&&ie()}).each("interrupt",function(){st(),ie&&ie()}):st(),J=I(Ne(Ue(U[0]),Ae),W.delta.font,q,B),$e}var de=W.mode+W.align,le;if(W._hasDelta&&(le=ee(),de+=W.delta.position+W.delta.font.size+W.delta.font.family+W.delta.valueformat,de+=W.delta.increasing.symbol+W.delta.decreasing.symbol,oe=J),W._hasNumber&&(re(),de+=W.number.font.size+W.number.font.family+W.number.valueformat+W.number.suffix+W.number.prefix,oe=Q),W._hasDelta&&W._hasNumber){var he=[(Q.left+Q.right)/2,(Q.top+Q.bottom)/2],xe=[(J.left+J.right)/2,(J.top+J.bottom)/2],Ee,Se,ke=.75*W.delta.font.size;W.delta.position==="left"&&(Ee=N(W,"deltaPos",0,-1*(Q.width*g[W.align]+J.width*(1-g[W.align])+ke),de,Math.min),Se=he[1]-xe[1],oe={width:Q.width+J.width+ke,height:Math.max(Q.height,J.height),left:J.left+Ee,right:Q.right,top:Math.min(Q.top,J.top+Se),bottom:Math.max(Q.bottom,J.bottom+Se)}),W.delta.position==="right"&&(Ee=N(W,"deltaPos",0,Q.width*(1-g[W.align])+J.width*g[W.align]+ke,de,Math.max),Se=he[1]-xe[1],oe={width:Q.width+J.width+ke,height:Math.max(Q.height,J.height),left:Q.left,right:J.right+Ee,top:Math.min(Q.top,J.top+Se),bottom:Math.max(Q.bottom,J.bottom+Se)}),W.delta.position==="bottom"&&(Ee=null,Se=J.height,oe={width:Math.max(Q.width,J.width),height:Q.height+J.height,left:Math.min(Q.left,J.left),right:Math.max(Q.right,J.right),top:Q.bottom-Q.height,bottom:Q.bottom+J.height}),W.delta.position==="top"&&(Ee=null,Se=Q.top,oe={width:Math.max(Q.width,J.width),height:Q.height+J.height,left:Math.min(Q.left,J.left),right:Math.max(Q.right,J.right),top:Q.bottom-Q.height-J.height,bottom:Q.bottom}),le.attr({dx:Ee,dy:Se})}(W._hasNumber||W._hasDelta)&&fe.attr("transform",function(){var Te=H.numbersScaler(oe);de+=Te[2];var Ae=N(W,"numbersScale",1,Te[0],de,Math.min),be;W._scaleNumbers||(Ae=1),W._isAngular?be=$-Ae*oe.bottom:be=$-Ae*(oe.top+oe.bottom)/2,W._numbersTop=Ae*oe.top+be;var Ie=oe[Z];Z==="center"&&(Ie=(oe.left+oe.right)/2);var Ue=V-Ae*Ie;return Ue=N(W,"numbersTranslate",0,Ue,de,Math.max),v(Ue,be)+w(Ae)})}function T(B){B.each(function(G){p.stroke(l.select(this),G.line.color)}).each(function(G){p.fill(l.select(this),G.color)}).style("stroke-width",function(G){return G.line.width})}function L(B,G,U){return function(){var H=S(G,U);return function(W){return B.endAngle(H(W))()}}}function P(B,G,U){var H=B._fullLayout,W=C.extendFlat({type:"linear",ticks:"outside",range:U,showline:!0},G),V={type:"linear",_id:"x"+G._id},$={letter:"x",font:H.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function Z(q,ae){return C.coerce(W,V,b,q,ae)}return f(W,V,Z,$,H),u(W,V,Z,$),V}function d(B,G,U){var H=Math.min(G/B.width,U/B.height);return[H,B,G+"x"+U]}function k(B,G){var U=Math.sqrt(B.width/2*(B.width/2)+B.height*B.height),H=G/U;return[H,B,G]}function I(B,G,U,H){var W=document.createElementNS("http://www.w3.org/2000/svg","text"),V=l.select(W);return V.text(B).attr("x",0).attr("y",0).attr("text-anchor",U).attr("data-unformatted",B).call(o.convertToTspans,H).call(n.font,G),n.bBox(V.node())}function N(B,G,U,H,W,V){var $="_cache"+G;B[$]&&B[$].key===W||(B[$]={key:W,value:U});var Z=C.aggNums(V,null,[B[$].value,H],2);return B[$].value=Z,Z}},50048:function(D,O,t){var l=t(49084),S=t(29736).axisHoverFormat,i=t(21776).Ks,C=t(52948),w=t(45464),v=t(92880).extendFlat,m=t(67824).overrideAll;function a(o){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function n(o){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var s=D.exports=m(v({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:a(),y:a(),z:a()},caps:{x:n(),y:n(),z:n()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),valuehoverformat:S("value",1),showlegend:v({},w.showlegend,{dflt:!1})},l("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:C.opacity,lightposition:C.lightposition,lighting:C.lighting,flatshading:C.flatshading,contour:C.contour,hoverinfo:v({},w.hoverinfo)}),"calc","nested");s.flatshading.dflt=!0,s.lighting.facenormalsepsilon.dflt=0,s.x.editType=s.y.editType=s.z.editType=s.value.editType="calc+clearAxisTypes",s.transforms=void 0},62624:function(D,O,t){var l=t(47128),S=t(3832).processGrid,i=t(3832).filter;D.exports=function(w,v){v._len=Math.min(v.x.length,v.y.length,v.z.length,v.value.length),v._x=i(v.x,v._len),v._y=i(v.y,v._len),v._z=i(v.z,v._len),v._value=i(v.value,v._len);var m=S(v);v._gridFill=m.fill,v._Xs=m.Xs,v._Ys=m.Ys,v._Zs=m.Zs,v._len=m.len;for(var a=1/0,n=-1/0,s=0;s0;b--){var p=Math.min(u[b],u[b-1]),E=Math.max(u[b],u[b-1]);if(E>p&&p-1}function ee(Ze,We){return Ze===null?We:Ze}function de(Ze,We,Fe){ae();var Me=[We],we=[Fe];if(K>=1)Me=[We],we=[Fe];else if(K>0){var Re=ce(We,Fe);Me=Re.xyzv,we=Re.abc}for(var Pe=0;Pe-1?Fe[Je]:q(ot,yt,ut);Vt>-1?Ve[Je]=Vt:Ve[Je]=fe(ot,yt,ut,ee(Ze,It))}Q(Ve[0],Ve[1],Ve[2])}}function le(Ze,We,Fe){var Me=function(we,Re,Pe){de(Ze,[We[we],We[Re],We[Pe]],[Fe[we],Fe[Re],Fe[Pe]])};Me(0,1,2),Me(2,3,0)}function he(Ze,We,Fe){var Me=function(we,Re,Pe){de(Ze,[We[we],We[Re],We[Pe]],[Fe[we],Fe[Re],Fe[Pe]])};Me(0,1,2),Me(3,0,1),Me(2,3,0),Me(1,2,3)}function xe(Ze,We,Fe,Me){var we=Ze[3];weMe&&(we=Me);for(var Re=(Ze[3]-we)/(Ze[3]-We[3]+1e-9),Pe=[],Ve=0;Ve<4;Ve++)Pe[Ve]=(1-Re)*Ze[Ve]+Re*We[Ve];return Pe}function Ee(Ze,We,Fe){return Ze>=We&&Ze<=Fe}function Se(Ze){var We=.001*(H-U);return Ze>=U-We&&Ze<=H+We}function ke(Ze){for(var We=[],Fe=0;Fe<4;Fe++){var Me=Ze[Fe];We.push([f._x[Me],f._y[Me],f._z[Me],f._value[Me]])}return We}var Te=3;function Ae(Ze,We,Fe,Me,we,Re){Re||(Re=1),Fe=[-1,-1,-1];var Pe=!1,Ve=[Ee(We[0][3],Me,we),Ee(We[1][3],Me,we),Ee(We[2][3],Me,we)];if(!Ve[0]&&!Ve[1]&&!Ve[2])return!1;var Je=function(yt,ut,It){return Se(ut[0][3])&&Se(ut[1][3])&&Se(ut[2][3])?(de(yt,ut,It),!0):ReVe?[B,Re]:[Re,G];rt(We,Je[0],Je[1])}}var ot=[[Math.min(U,G),Math.max(U,G)],[Math.min(B,H),Math.max(B,H)]];["x","y","z"].forEach(function(yt){for(var ut=[],It=0;It0&&(Tt.push(br.id),yt==="x"?Kt.push([br.distRatio,0,0]):yt==="y"?Kt.push([0,br.distRatio,0]):Kt.push([0,0,br.distRatio]))}else yt==="x"?dr=et(1,P-1):yt==="y"?dr=et(1,d-1):dr=et(1,k-1);Tt.length>0&&(yt==="x"?ut[Vt]=lt(Ze,Tt,xt,Lt,Kt,ut[Vt]):yt==="y"?ut[Vt]=dt(Ze,Tt,xt,Lt,Kt,ut[Vt]):ut[Vt]=wt(Ze,Tt,xt,Lt,Kt,ut[Vt]),Vt++),dr.length>0&&(yt==="x"?ut[Vt]=st(Ze,dr,xt,Lt,ut[Vt]):yt==="y"?ut[Vt]=vt(Ze,dr,xt,Lt,ut[Vt]):ut[Vt]=at(Ze,dr,xt,Lt,ut[Vt]),Vt++)}var sr=f.caps[yt];sr.show&&sr.fill&&(ne(sr.fill),yt==="x"?ut[Vt]=st(Ze,[0,P-1],xt,Lt,ut[Vt]):yt==="y"?ut[Vt]=vt(Ze,[0,d-1],xt,Lt,ut[Vt]):ut[Vt]=at(Ze,[0,k-1],xt,Lt,ut[Vt]),Vt++)}}),y===0&&ie(),f._meshX=W,f._meshY=V,f._meshZ=$,f._meshIntensity=Z,f._Xs=R,f._Ys=T,f._Zs=L}return Ye(),f}function h(f,u){var b=f.glplot.gl,p=l({gl:b}),E=new a(f,p,u.uid);return p._trace=E,E.update(u),f.glplot.add(p),E}D.exports={findNearestOnAxis:m,generateIsoMeshes:o,createIsosurfaceTrace:h}},70548:function(D,O,t){var l=t(3400),S=t(24040),i=t(50048),C=t(27260);function w(m,a,n,s){function o(h,f){return l.coerce(m,a,i,h,f)}v(m,a,n,s,o)}function v(m,a,n,s,o){var h=o("isomin"),f=o("isomax");f!=null&&h!==void 0&&h!==null&&h>f&&(a.isomin=null,a.isomax=null);var u=o("x"),b=o("y"),p=o("z"),E=o("value");if(!u||!u.length||!b||!b.length||!p||!p.length||!E||!E.length){a.visible=!1;return}var g=S.getComponentMethod("calendars","handleTraceDefaults");g(m,a,["x","y","z"],s),o("valuehoverformat"),["x","y","z"].forEach(function(M){o(M+"hoverformat");var R="caps."+M,T=o(R+".show");T&&o(R+".fill");var L="slices."+M,P=o(L+".show");P&&(o(L+".fill"),o(L+".locations"))});var c=o("spaceframe.show");c&&o("spaceframe.fill");var y=o("surface.show");y&&(o("surface.count"),o("surface.fill"),o("surface.pattern"));var A=o("contour.show");A&&(o("contour.color"),o("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(M){o(M)}),C(m,a,s,o,{prefix:"",cLetter:"c"}),a._length=null}D.exports={supplyDefaults:w,supplyIsoDefaults:v}},6296:function(D,O,t){D.exports={attributes:t(50048),supplyDefaults:t(70548).supplyDefaults,calc:t(62624),colorbar:{min:"cmin",max:"cmax"},plot:t(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:t(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(D,O,t){var l=t(49084),S=t(29736).axisHoverFormat,i=t(21776).Ks,C=t(16716),w=t(45464),v=t(92880).extendFlat;D.exports=v({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},l("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:C.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:v({},C.contours.x.show,{}),color:C.contours.x.color,width:C.contours.x.width,editType:"calc"},lightposition:{x:v({},C.lightposition.x,{dflt:1e5}),y:v({},C.lightposition.y,{dflt:1e5}),z:v({},C.lightposition.z,{dflt:0}),editType:"calc"},lighting:v({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},C.lighting),hoverinfo:v({},w.hoverinfo,{editType:"calc"}),showlegend:v({},w.showlegend,{dflt:!1})})},1876:function(D,O,t){var l=t(47128);D.exports=function(i,C){C.intensity&&l(i,C,{vals:C.intensity,containerStr:"",cLetter:"c"})}},576:function(D,O,t){var l=t(67792).gl_mesh3d,S=t(67792).delaunay_triangulate,i=t(67792).alpha_shape,C=t(67792).convex_hull,w=t(33040).parseColorScale,v=t(3400).isArrayOrTypedArray,m=t(43080),a=t(8932).extractOpts,n=t(52094);function s(g,c,y){this.scene=g,this.uid=y,this.mesh=c,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var o=s.prototype;o.handlePick=function(g){if(g.object===this.mesh){var c=g.index=g.data.index;g.data._cellCenter?g.traceCoordinate=g.data.dataCoordinate:g.traceCoordinate=[this.data.x[c],this.data.y[c],this.data.z[c]];var y=this.data.hovertext||this.data.text;return v(y)&&y[c]!==void 0?g.textLabel=y[c]:y&&(g.textLabel=y),!0}};function h(g){for(var c=[],y=g.length,A=0;A=c-.5)return!1;return!0}o.update=function(g){var c=this.scene,y=c.fullSceneLayout;this.data=g;var A=g.x.length,M=n(f(y.xaxis,g.x,c.dataScale[0],g.xcalendar),f(y.yaxis,g.y,c.dataScale[1],g.ycalendar),f(y.zaxis,g.z,c.dataScale[2],g.zcalendar)),R;if(g.i&&g.j&&g.k){if(g.i.length!==g.j.length||g.j.length!==g.k.length||!p(g.i,A)||!p(g.j,A)||!p(g.k,A))return;R=n(u(g.i),u(g.j),u(g.k))}else g.alphahull===0?R=C(M):g.alphahull>0?R=i(g.alphahull,M):R=b(g.delaunayaxis,M);var T={positions:M,cells:R,lightPosition:[g.lightposition.x,g.lightposition.y,g.lightposition.z],ambient:g.lighting.ambient,diffuse:g.lighting.diffuse,specular:g.lighting.specular,roughness:g.lighting.roughness,fresnel:g.lighting.fresnel,vertexNormalsEpsilon:g.lighting.vertexnormalsepsilon,faceNormalsEpsilon:g.lighting.facenormalsepsilon,opacity:g.opacity,contourEnable:g.contour.show,contourColor:m(g.contour.color).slice(0,3),contourWidth:g.contour.width,useFacetNormals:g.flatshading};if(g.intensity){var L=a(g);this.color="#fff";var P=g.intensitymode;T[P+"Intensity"]=g.intensity,T[P+"IntensityBounds"]=[L.min,L.max],T.colormap=w(g)}else g.vertexcolor?(this.color=g.vertexcolor[0],T.vertexColors=h(g.vertexcolor)):g.facecolor?(this.color=g.facecolor[0],T.cellColors=h(g.facecolor)):(this.color=g.color,T.meshColor=m(g.color));this.mesh.update(T)},o.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function E(g,c){var y=g.glplot.gl,A=l({gl:y}),M=new s(g,A,c.uid);return A._trace=M,M.update(c),g.glplot.add(A),M}D.exports=E},74212:function(D,O,t){var l=t(24040),S=t(3400),i=t(27260),C=t(52948);D.exports=function(v,m,a,n){function s(b,p){return S.coerce(v,m,C,b,p)}function o(b){var p=b.map(function(E){var g=s(E);return g&&S.isArrayOrTypedArray(g)?g:null});return p.every(function(E){return E&&E.length===p[0].length})&&p}var h=o(["x","y","z"]);if(!h){m.visible=!1;return}if(o(["i","j","k"]),m.i&&(!m.j||!m.k)||m.j&&(!m.k||!m.i)||m.k&&(!m.i||!m.j)){m.visible=!1;return}var f=l.getComponentMethod("calendars","handleTraceDefaults");f(v,m,["x","y","z"],n),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(b){s(b)});var u=s("contour.show");u&&(s("contour.color"),s("contour.width")),"intensity"in v?(s("intensity"),s("intensitymode"),i(v,m,n,s,{prefix:"",cLetter:"c"})):(m.showscale=!1,"facecolor"in v?s("facecolor"):"vertexcolor"in v?s("vertexcolor"):s("color",a)),s("text"),s("hovertext"),s("hovertemplate"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),m._length=null}},7404:function(D,O,t){D.exports={attributes:t(52948),supplyDefaults:t(74212),calc:t(1876),colorbar:{min:"cmin",max:"cmax"},plot:t(576),moduleType:"trace",name:"mesh3d",basePlotModule:t(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(D,O,t){var l=t(3400).extendFlat,S=t(52904),i=t(29736).axisHoverFormat,C=t(98192).u,w=t(55756),v=t(48164),m=v.INCREASING.COLOR,a=v.DECREASING.COLOR,n=S.line;function s(o){return{line:{color:l({},n.color,{dflt:o}),width:n.width,dash:C,editType:"style"},editType:"style"}}D.exports={xperiod:S.xperiod,xperiod0:S.xperiod0,xperiodalignment:S.xperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:l({},n.width,{}),dash:l({},C,{}),editType:"style"},increasing:s(m),decreasing:s(a),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:l({},w.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}})}},42812:function(D,O,t){var l=t(3400),S=l._,i=t(54460),C=t(1220),w=t(39032).BADNUM;function v(s,o){var h=i.getFromId(s,o.xaxis),f=i.getFromId(s,o.yaxis),u=n(s,h,o),b=o._minDiff;o._minDiff=null;var p=o._origX;o._origX=null;var E=o._xcalc;o._xcalc=null;var g=a(s,o,p,E,f,m);return o._extremes[h._id]=i.findExtremes(h,E,{vpad:b/2}),g.length?(l.extendFlat(g[0].t,{wHover:b/2,tickLen:u}),g):[{t:{empty:!0}}]}function m(s,o,h,f){return{o:s,h:o,l:h,c:f}}function a(s,o,h,f,u,b){for(var p=u.makeCalcdata(o,"open"),E=u.makeCalcdata(o,"high"),g=u.makeCalcdata(o,"low"),c=u.makeCalcdata(o,"close"),y=l.isArrayOrTypedArray(o.text),A=l.isArrayOrTypedArray(o.hovertext),M=!0,R=null,T=!!o.xperiodalignment,L=[],P=0;PR):M=B>k,R=B;var G=b(k,I,N,B);G.pos=d,G.yc=(k+B)/2,G.i=P,G.dir=M?"increasing":"decreasing",G.x=G.pos,G.y=[N,I],T&&(G.orig_p=h[P]),y&&(G.tx=o.text[P]),A&&(G.htx=o.hovertext[P]),L.push(G)}else L.push({pos:d,empty:!0})}return o._extremes[u._id]=i.findExtremes(u,l.concat(g,E),{padded:!0}),L.length&&(L[0].t={labels:{open:S(s,"open:")+" ",high:S(s,"high:")+" ",low:S(s,"low:")+" ",close:S(s,"close:")+" "}}),L}function n(s,o,h){var f=h._minDiff;if(!f){var u=s._fullData,b=[];f=1/0;var p;for(p=0;p"+c.labels[B]+l.hoverLabelText(E,G,g.yhoverformat)):(H=S.extendFlat({},A),H.y0=H.y1=U,H.yLabelVal=G,H.yLabel=c.labels[B]+l.hoverLabelText(E,G,g.yhoverformat),H.name="",y.push(H),I[G]=H)}return y}function o(h,f,u,b){var p=h.cd,E=h.ya,g=p[0].trace,c=p[0].t,y=n(h,f,u,b);if(!y)return[];var A=y.index,M=p[A],R=y.index=M.i,T=M.dir;function L(G){return c.labels[G]+l.hoverLabelText(E,g[G][R],g.yhoverformat)}var P=M.hi||g.hoverinfo,d=P.split("+"),k=P==="all",I=k||d.indexOf("y")!==-1,N=k||d.indexOf("text")!==-1,B=I?[L("open"),L("high"),L("low"),L("close")+" "+m[T]]:[];return N&&w(M,g,B),y.extraText=B.join("
"),y.y0=y.y1=E.c2p(M.yc,!0),[y]}D.exports={hoverPoints:a,hoverSplit:s,hoverOnPoints:o}},65456:function(D,O,t){D.exports={moduleType:"trace",name:"ohlc",basePlotModule:t(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:t(20279),supplyDefaults:t(23860),calc:t(42812).calc,plot:t(36664),style:t(14008),hoverPoints:t(18720).hoverPoints,selectPoints:t(97384)}},52744:function(D,O,t){var l=t(24040),S=t(3400);D.exports=function(C,w,v,m){var a=v("x"),n=v("open"),s=v("high"),o=v("low"),h=v("close");v("hoverlabel.split");var f=l.getComponentMethod("calendars","handleTraceDefaults");if(f(C,w,["x"],m),!!(n&&s&&o&&h)){var u=Math.min(n.length,s.length,o.length,h.length);return a&&(u=Math.min(u,S.minRowLength(a))),w._length=u,u}}},36664:function(D,O,t){var l=t(33428),S=t(3400);D.exports=function(C,w,v,m){var a=w.yaxis,n=w.xaxis,s=!!n.rangebreaks;S.makeTraceGroups(m,v,"trace ohlc").each(function(o){var h=l.select(this),f=o[0],u=f.t,b=f.trace;if(b.visible!==!0||u.empty){h.remove();return}var p=u.tickLen,E=h.selectAll("path").data(S.identity);E.enter().append("path"),E.exit().remove(),E.attr("d",function(g){if(g.empty)return"M0,0Z";var c=n.c2p(g.pos-p,!0),y=n.c2p(g.pos+p,!0),A=s?(c+y)/2:n.c2p(g.pos,!0),M=a.c2p(g.o,!0),R=a.c2p(g.h,!0),T=a.c2p(g.l,!0),L=a.c2p(g.c,!0);return"M"+c+","+M+"H"+A+"M"+A+","+R+"V"+T+"M"+y+","+L+"H"+A})})}},97384:function(D){D.exports=function(t,l){var S=t.cd,i=t.xaxis,C=t.yaxis,w=[],v,m=S[0].t.bPos||0;if(l===!1)for(v=0;v=g.length||c[g[y]]!==void 0)return!1;c[g[y]]=!0}return!0}},76671:function(D,O,t){var l=t(3400),S=t(94288).hasColorscale,i=t(27260),C=t(86968).Q,w=t(51272),v=t(72140),m=t(26284),a=t(38116).isTypedArraySpec;function n(o,h,f,u,b){b("line.shape"),b("line.hovertemplate");var p=b("line.color",u.colorway[0]);if(S(o,"line")&&l.isArrayOrTypedArray(p)){if(p.length)return b("line.colorscale"),i(o,h,u,b,{prefix:"line.",cLetter:"c"}),p.length;h.line.color=f}return 1/0}function s(o,h){function f(y,A){return l.coerce(o,h,v.dimensions,y,A)}var u=f("values"),b=f("visible");if(u&&u.length||(b=h.visible=!1),b){f("label"),f("displayindex",h._index);var p=o.categoryarray,E=l.isArrayOrTypedArray(p)&&p.length>0||a(p),g;E&&(g="array");var c=f("categoryorder",g);c==="array"?(f("categoryarray"),f("ticktext")):(delete o.categoryarray,delete o.ticktext),!E&&c==="array"&&(h.categoryorder="trace")}}D.exports=function(h,f,u,b){function p(A,M){return l.coerce(h,f,v,A,M)}var E=w(h,f,{name:"dimensions",handleItemDefaults:s}),g=n(h,f,u,b,p);C(f,b,p),(!Array.isArray(E)||!E.length)&&(f.visible=!1),m(f,E,"values",g),p("hoveron"),p("hovertemplate"),p("arrangement"),p("bundlecolors"),p("sortpaths"),p("counts");var c={family:b.font.family,size:Math.round(b.font.size),color:b.font.color};l.coerceFont(p,"labelfont",c);var y={family:b.font.family,size:Math.round(b.font.size/1.2),color:b.font.color};l.coerceFont(p,"tickfont",y)}},22020:function(D,O,t){D.exports={attributes:t(72140),supplyDefaults:t(76671),calc:t(69136),plot:t(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:t(91800),categories:["noOpacity"],meta:{}}},51036:function(D,O,t){var l=t(33428),S=t(67756).Gz,i=t(36424),C=t(93024),w=t(3400),v=w.strTranslate,m=t(43616),a=t(49760),n=t(72736);function s(K,ne,ce,re){var ee=ne._context.staticPlot,de=K.map(ie.bind(0,ne,ce)),le=re.selectAll("g.parcatslayer").data([null]);le.enter().append("g").attr("class","parcatslayer").style("pointer-events",ee?"none":"all");var he=le.selectAll("g.trace.parcats").data(de,o),xe=he.enter().append("g").attr("class","trace parcats");he.attr("transform",function($e){return v($e.x,$e.y)}),xe.append("g").attr("class","paths");var Ee=he.select("g.paths"),Se=Ee.selectAll("path.path").data(function($e){return $e.paths},o);Se.attr("fill",function($e){return $e.model.color});var ke=Se.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function($e){return $e.model.color}).attr("fill-opacity",0);c(ke),Se.attr("d",function($e){return $e.svgD}),ke.empty()||Se.sort(f),Se.exit().remove(),Se.on("mouseover",u).on("mouseout",b).on("click",g),xe.append("g").attr("class","dimensions");var Te=he.select("g.dimensions"),Ae=Te.selectAll("g.dimension").data(function($e){return $e.dimensions},o);Ae.enter().append("g").attr("class","dimension"),Ae.attr("transform",function($e){return v($e.x,0)}),Ae.exit().remove();var be=Ae.selectAll("g.category").data(function($e){return $e.categories},o),Ie=be.enter().append("g").attr("class","category");be.attr("transform",function($e){return v(0,$e.y)}),Ie.append("rect").attr("class","catrect").attr("pointer-events","none"),be.select("rect.catrect").attr("fill","none").attr("width",function($e){return $e.width}).attr("height",function($e){return $e.height}),M(Ie);var Ue=be.selectAll("rect.bandrect").data(function($e){return $e.bands},o);Ue.each(function(){w.raiseToTop(this)}),Ue.attr("fill",function($e){return $e.color});var Ne=Ue.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function($e){return $e.color}).attr("fill-opacity",0);Ue.attr("fill",function($e){return $e.color}).attr("width",function($e){return $e.width}).attr("height",function($e){return $e.height}).attr("y",function($e){return $e.y}).attr("cursor",function($e){return $e.parcatsViewModel.arrangement==="fixed"?"default":$e.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),T(Ne),Ue.exit().remove(),Ie.append("text").attr("class","catlabel").attr("pointer-events","none");var ze=ne._fullLayout.paper_bgcolor;be.select("text.catlabel").attr("text-anchor",function($e){return h($e)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",n.makeTextShadow(ze)).style("fill","rgb(0, 0, 0)").attr("x",function($e){return h($e)?$e.width+5:-5}).attr("y",function($e){return $e.height/2}).text(function($e){return $e.model.categoryLabel}).each(function($e){m.font(l.select(this),$e.parcatsViewModel.categorylabelfont),n.convertToTspans(l.select(this),ne)}),Ie.append("text").attr("class","dimlabel"),be.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function($e){return $e.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function($e){return $e.width/2}).attr("y",-5).text(function($e,st){return st===0?$e.parcatsViewModel.model.dimensions[$e.model.dimensionInd].dimensionLabel:null}).each(function($e){m.font(l.select(this),$e.parcatsViewModel.labelfont)}),be.selectAll("rect.bandrect").on("mouseover",U).on("mouseout",H),be.exit().remove(),Ae.call(l.behavior.drag().origin(function($e){return{x:$e.x,y:0}}).on("dragstart",W).on("drag",V).on("dragend",$)),he.each(function($e){$e.traceSelection=l.select(this),$e.pathSelection=l.select(this).selectAll("g.paths").selectAll("path.path"),$e.dimensionSelection=l.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),he.exit().remove()}D.exports=function(K,ne,ce,re){s(ce,K,re,ne)};function o(K){return K.key}function h(K){var ne=K.parcatsViewModel.dimensions.length,ce=K.parcatsViewModel.dimensions[ne-1].model.dimensionInd;return K.model.dimensionInd===ce}function f(K,ne){return K.model.rawColor>ne.model.rawColor?1:K.model.rawColor"),at=l.mouse(ee)[0];C.loneHover({trace:de,x:be-he.left+xe.left,y:Ie-he.top+xe.top,text:vt,color:K.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Ue,idealAlign:at1&&Ee.displayInd===xe.dimensions.length-1?(Te=le.left,Ae="left"):(Te=le.left+le.width,Ae="right");var be=he.model.count,Ie=he.model.categoryLabel,Ue=be/he.parcatsViewModel.model.count,Ne={countLabel:be,categoryLabel:Ie,probabilityLabel:Ue.toFixed(3)},ze=[];he.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ze.push(["Count:",Ne.countLabel].join(" ")),he.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ze.push(["P("+Ne.categoryLabel+"):",Ne.probabilityLabel].join(" "));var $e=ze.join("
");return{trace:Se,x:re*(Te-ne.left),y:ee*(ke-ne.top),text:$e,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:Ae,hovertemplate:Se.hovertemplate,hovertemplateLabels:Ne,eventData:[{data:Se._input,fullData:Se,count:be,category:Ie,probability:Ue}]}}function B(K,ne,ce){var re=[];return l.select(ce.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var ee=this;re.push(N(K,ne,ee))}),re}function G(K,ne,ce){K._fullLayout._calcInverseTransform(K);var re=K._fullLayout._invScaleX,ee=K._fullLayout._invScaleY,de=ce.getBoundingClientRect(),le=l.select(ce).datum(),he=le.categoryViewModel,xe=he.parcatsViewModel,Ee=xe.model.dimensions[he.model.dimensionInd],Se=xe.trace,ke=de.y+de.height/2,Te,Ae;xe.dimensions.length>1&&Ee.displayInd===xe.dimensions.length-1?(Te=de.left,Ae="left"):(Te=de.left+de.width,Ae="right");var be=he.model.categoryLabel,Ie=le.parcatsViewModel.model.count,Ue=0;le.categoryViewModel.bands.forEach(function(lt){lt.color===le.color&&(Ue+=lt.count)});var Ne=he.model.count,ze=0;xe.pathSelection.each(function(lt){lt.model.color===le.color&&(ze+=lt.model.count)});var $e=Ue/Ie,st=Ue/ze,vt=Ue/Ne,at={countLabel:Ie,categoryLabel:be,probabilityLabel:$e.toFixed(3)},nt=[];he.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&nt.push(["Count:",at.countLabel].join(" ")),he.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(nt.push("P(color ∩ "+be+"): "+at.probabilityLabel),nt.push("P("+be+" | color): "+st.toFixed(3)),nt.push("P(color | "+be+"): "+vt.toFixed(3)));var mt=nt.join("
"),rt=a.mostReadable(le.color,["black","white"]);return{trace:Se,x:re*(Te-ne.left),y:ee*(ke-ne.top),text:mt,color:le.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:rt,fontSize:10,idealAlign:Ae,hovertemplate:Se.hovertemplate,hovertemplateLabels:at,eventData:[{data:Se._input,fullData:Se,category:be,count:Ie,probability:$e,categorycount:Ne,colorcount:ze,bandcolorcount:Ue}]}}function U(K){if(!K.parcatsViewModel.dragDimension&&K.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var ne=l.mouse(this)[1];if(ne<-1)return;var ce=K.parcatsViewModel.graphDiv,re=ce._fullLayout,ee=re._paperdiv.node().getBoundingClientRect(),de=K.parcatsViewModel.hoveron,le=this;if(de==="color"?(d(le),I(le,"plotly_hover",l.event)):(P(le),k(le,"plotly_hover",l.event)),K.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var he;de==="category"?he=N(ce,ee,le):de==="color"?he=G(ce,ee,le):de==="dimension"&&(he=B(ce,ee,le)),he&&C.loneHover(he,{container:re._hoverlayer.node(),outerContainer:re._paper.node(),gd:ce})}}}function H(K){var ne=K.parcatsViewModel;if(!ne.dragDimension&&(c(ne.pathSelection),M(ne.dimensionSelection.selectAll("g.category")),T(ne.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),C.loneUnhover(ne.graphDiv._fullLayout._hoverlayer.node()),ne.pathSelection.sort(f),ne.hoverinfoItems.indexOf("skip")===-1)){var ce=K.parcatsViewModel.hoveron,re=this;ce==="color"?I(re,"plotly_unhover",l.event):k(re,"plotly_unhover",l.event)}}function W(K){K.parcatsViewModel.arrangement!=="fixed"&&(K.dragDimensionDisplayInd=K.model.displayInd,K.initialDragDimensionDisplayInds=K.parcatsViewModel.model.dimensions.map(function(ne){return ne.displayInd}),K.dragHasMoved=!1,K.dragCategoryDisplayInd=null,l.select(this).selectAll("g.category").select("rect.catrect").each(function(ne){var ce=l.mouse(this)[0],re=l.mouse(this)[1];-2<=ce&&ce<=ne.width+2&&-2<=re&&re<=ne.height+2&&(K.dragCategoryDisplayInd=ne.model.displayInd,K.initialDragCategoryDisplayInds=K.model.categories.map(function(ee){return ee.displayInd}),ne.model.dragY=ne.y,w.raiseToTop(this.parentNode),l.select(this.parentNode).selectAll("rect.bandrect").each(function(ee){ee.ySe.y+Se.height/2&&(de.model.displayInd=Se.model.displayInd,Se.model.displayInd=he),K.dragCategoryDisplayInd=de.model.displayInd}if(K.dragCategoryDisplayInd===null||K.parcatsViewModel.arrangement==="freeform"){ee.model.dragX=l.event.x;var ke=K.parcatsViewModel.dimensions[ce],Te=K.parcatsViewModel.dimensions[re];ke!==void 0&&ee.model.dragXTe.x&&(ee.model.displayInd=Te.model.displayInd,Te.model.displayInd=K.dragDimensionDisplayInd),K.dragDimensionDisplayInd=ee.model.displayInd}J(K.parcatsViewModel),Q(K.parcatsViewModel),ae(K.parcatsViewModel),q(K.parcatsViewModel)}}function $(K){if(K.parcatsViewModel.arrangement!=="fixed"&&K.dragDimensionDisplayInd!==null){l.select(this).selectAll("text").attr("font-weight","normal");var ne={},ce=Z(K.parcatsViewModel),re=K.parcatsViewModel.model.dimensions.map(function(Te){return Te.displayInd}),ee=K.initialDragDimensionDisplayInds.some(function(Te,Ae){return Te!==re[Ae]});ee&&re.forEach(function(Te,Ae){var be=K.parcatsViewModel.model.dimensions[Ae].containerInd;ne["dimensions["+be+"].displayindex"]=Te});var de=!1;if(K.dragCategoryDisplayInd!==null){var le=K.model.categories.map(function(Te){return Te.displayInd});if(de=K.initialDragCategoryDisplayInds.some(function(Te,Ae){return Te!==le[Ae]}),de){var he=K.model.categories.slice().sort(function(Te,Ae){return Te.displayInd-Ae.displayInd}),xe=he.map(function(Te){return Te.categoryValue}),Ee=he.map(function(Te){return Te.categoryLabel});ne["dimensions["+K.model.containerInd+"].categoryarray"]=[xe],ne["dimensions["+K.model.containerInd+"].ticktext"]=[Ee],ne["dimensions["+K.model.containerInd+"].categoryorder"]="array"}}if(K.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!K.dragHasMoved&&K.potentialClickBand&&(K.parcatsViewModel.hoveron==="color"?I(K.potentialClickBand,"plotly_click",l.event.sourceEvent):k(K.potentialClickBand,"plotly_click",l.event.sourceEvent)),K.model.dragX=null,K.dragCategoryDisplayInd!==null){var Se=K.parcatsViewModel.dimensions[K.dragDimensionDisplayInd].categories[K.dragCategoryDisplayInd];Se.model.dragY=null,K.dragCategoryDisplayInd=null}K.dragDimensionDisplayInd=null,K.parcatsViewModel.dragDimension=null,K.dragHasMoved=null,K.potentialClickBand=null,J(K.parcatsViewModel),Q(K.parcatsViewModel);var ke=l.transition().duration(300).ease("cubic-in-out");ke.each(function(){ae(K.parcatsViewModel,!0),q(K.parcatsViewModel,!0)}).each("end",function(){(ee||de)&&i.restyle(K.parcatsViewModel.graphDiv,ne,[ce])})}}function Z(K){for(var ne,ce=K.graphDiv._fullData,re=0;re=0;xe--)Ee+="C"+le[xe]+","+(ne[xe+1]+re)+" "+de[xe]+","+(ne[xe]+re)+" "+(K[xe]+ce[xe])+","+(ne[xe]+re),Ee+="l-"+ce[xe]+",0 ";return Ee+="Z",Ee}function Q(K){var ne=K.dimensions,ce=K.model,re=ne.map(function(et){return et.categories.map(function(Be){return Be.y})}),ee=K.model.dimensions.map(function(et){return et.categories.map(function(Be){return Be.displayInd})}),de=K.model.dimensions.map(function(et){return et.displayInd}),le=K.dimensions.map(function(et){return et.model.dimensionInd}),he=ne.map(function(et){return et.x}),xe=ne.map(function(et){return et.width}),Ee=[];for(var Se in ce.paths)ce.paths.hasOwnProperty(Se)&&Ee.push(ce.paths[Se]);function ke(et){var Be=et.categoryInds.map(function(Ze,We){return ee[We][Ze]}),Ye=le.map(function(Ze){return Be[Ze]});return Ye}Ee.sort(function(et,Be){var Ye=ke(et),Ze=ke(Be);return K.sortpaths==="backward"&&(Ye.reverse(),Ze.reverse()),Ye.push(et.valueInds[0]),Ze.push(Be.valueInds[0]),K.bundlecolors&&(Ye.unshift(et.rawColor),Ze.unshift(Be.rawColor)),YeZe?1:0});for(var Te=new Array(Ee.length),Ae=ne[0].model.count,be=ne[0].categories.map(function(et){return et.height}).reduce(function(et,Be){return et+Be}),Ie=0;Ie0?Ne=be*(Ue.count/Ae):Ne=0;for(var ze=new Array(re.length),$e=0;$e1?le=(K.width-2*ce-re)/(ee-1):le=0,he=ce,xe=he+le*de;var Ee=[],Se=K.model.maxCats,ke=ne.categories.length,Te=8,Ae=ne.count,be=K.height-Te*(Se-1),Ie,Ue,Ne,ze,$e,st=(Se-ke)*Te/2,vt=ne.categories.map(function(at){return{displayInd:at.displayInd,categoryInd:at.categoryInd}});for(vt.sort(function(at,nt){return at.displayInd-nt.displayInd}),$e=0;$e0?Ie=Ue.count/Ae*be:Ie=0,Ne={key:Ue.valueInds[0],model:Ue,width:re,height:Ie,y:Ue.dragY!==null?Ue.dragY:st,bands:[],parcatsViewModel:K},st=st+Ie+Te,Ee.push(Ne);return{key:ne.dimensionInd,x:ne.dragX!==null?ne.dragX:xe,y:0,width:re,model:ne,categories:Ee,parcatsViewModel:K,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(D,O,t){var l=t(51036);D.exports=function(i,C,w,v){var m=i._fullLayout,a=m._paper,n=m._size;l(i,a,C,{width:n.w,height:n.h,margin:{t:n.t,r:n.r,b:n.b,l:n.l}},w,v)}},82296:function(D,O,t){var l=t(49084),S=t(94724),i=t(25376),C=t(86968).u,w=t(92880).extendFlat,v=t(31780).templatedArray;D.exports={domain:C({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:v("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},S.tickvals,{editType:"plot"}),ticktext:w({},S.ticktext,{editType:"plot"}),tickformat:w({},S.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},l("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(D,O,t){var l=t(30140),S=t(33428),i=t(71688).keyFun,C=t(71688).repeat,w=t(3400).sorterAsc,v=t(3400).strTranslate,m=l.bar.snapRatio;function a($,Z){return $*(1-m)+Z*m}var n=l.bar.snapClose;function s($,Z){return $*(1-n)+Z*n}function o($,Z,q,ae){if(h(q,ae))return q;var ie=$?-1:1,fe=0,Q=Z.length-1;if(ie<0){var J=fe;fe=Q,Q=J}for(var oe=Z[fe],K=oe,ne=fe;ie*ne=Z[q][0]&&$<=Z[q][1])return!0;return!1}function f($){$.attr("x",-l.bar.captureWidth/2).attr("width",l.bar.captureWidth)}function u($){$.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function b($){if(!$.brush.filterSpecified)return"0,"+$.height;for(var Z=p($.brush.filter.getConsolidated(),$.height),q=[0],ae,ie,fe,Q=Z.length?Z[0][0]:null,J=0;J$[1]+q||Z<$[0]-q))return Z>=.9*$[1]+.1*$[0]?"n":Z<=.9*$[0]+.1*$[1]?"s":"ns"}function g(){S.select(document.body).style("cursor",null)}function c($){$.attr("stroke-dasharray",b)}function y($,Z){var q=S.select($).selectAll(".highlight, .highlight-shadow"),ae=Z?q.transition().duration(l.bar.snapDuration).each("end",Z):q;c(ae)}function A($,Z){var q=$.brush,ae=q.filterSpecified,ie=NaN,fe={},Q;if(ae){var J=$.height,oe=q.filter.getConsolidated(),K=p(oe,J),ne=NaN,ce=NaN,re=NaN;for(Q=0;Q<=K.length;Q++){var ee=K[Q];if(ee&&ee[0]<=Z&&Z<=ee[1]){ne=Q;break}else if(ce=Q?Q-1:NaN,ee&&ee[0]>Z){re=Q;break}}if(ie=ne,isNaN(ie)&&(isNaN(ce)||isNaN(re)?ie=isNaN(ce)?re:ce:ie=Z-K[ce][1]=Ee[0]&&xe<=Ee[1]){fe.clickableOrdinalRange=Ee;break}}}return fe}function M($,Z){S.event.sourceEvent.stopPropagation();var q=Z.height-S.mouse($)[1]-2*l.verticalPadding,ae=Z.unitToPaddedPx.invert(q),ie=Z.brush,fe=A(Z,q),Q=fe.interval,J=ie.svgBrush;if(J.wasDragged=!1,J.grabbingBar=fe.region==="ns",J.grabbingBar){var oe=Q.map(Z.unitToPaddedPx);J.grabPoint=q-oe[0]-l.verticalPadding,J.barLength=oe[1]-oe[0]}J.clickableOrdinalRange=fe.clickableOrdinalRange,J.stayingIntervals=Z.multiselect&&ie.filterSpecified?ie.filter.getConsolidated():[],Q&&(J.stayingIntervals=J.stayingIntervals.filter(function(K){return K[0]!==Q[0]&&K[1]!==Q[1]})),J.startExtent=fe.region?Q[fe.region==="s"?1:0]:ae,Z.parent.inBrushDrag=!0,J.brushStartCallback()}function R($,Z){S.event.sourceEvent.stopPropagation();var q=Z.height-S.mouse($)[1]-2*l.verticalPadding,ae=Z.brush.svgBrush;ae.wasDragged=!0,ae._dragging=!0,ae.grabbingBar?ae.newExtent=[q-ae.grabPoint,q+ae.barLength-ae.grabPoint].map(Z.unitToPaddedPx.invert):ae.newExtent=[ae.startExtent,Z.unitToPaddedPx.invert(q)].sort(w),Z.brush.filterSpecified=!0,ae.extent=ae.stayingIntervals.concat([ae.newExtent]),ae.brushCallback(Z),y($.parentNode)}function T($,Z){var q=Z.brush,ae=q.filter,ie=q.svgBrush;ie._dragging||(L($,Z),R($,Z),Z.brush.svgBrush.wasDragged=!1),ie._dragging=!1;var fe=S.event;fe.sourceEvent.stopPropagation();var Q=ie.grabbingBar;if(ie.grabbingBar=!1,ie.grabLocation=void 0,Z.parent.inBrushDrag=!1,g(),!ie.wasDragged){ie.wasDragged=void 0,ie.clickableOrdinalRange?q.filterSpecified&&Z.multiselect?ie.extent.push(ie.clickableOrdinalRange):(ie.extent=[ie.clickableOrdinalRange],q.filterSpecified=!0):Q?(ie.extent=ie.stayingIntervals,ie.extent.length===0&&B(q)):B(q),ie.brushCallback(Z),y($.parentNode),ie.brushEndCallback(q.filterSpecified?ae.getConsolidated():[]);return}var J=function(){ae.set(ae.getConsolidated())};if(Z.ordinal){var oe=Z.unitTickvals;oe[oe.length-1]ie.newExtent[0];ie.extent=ie.stayingIntervals.concat(K?[ie.newExtent]:[]),ie.extent.length||B(q),ie.brushCallback(Z),K?y($.parentNode,J):(J(),y($.parentNode))}else J();ie.brushEndCallback(q.filterSpecified?ae.getConsolidated():[])}function L($,Z){var q=Z.height-S.mouse($)[1]-2*l.verticalPadding,ae=A(Z,q),ie="crosshair";ae.clickableOrdinalRange?ie="pointer":ae.region&&(ie=ae.region+"-resize"),S.select(document.body).style("cursor",ie)}function P($){$.on("mousemove",function(Z){S.event.preventDefault(),Z.parent.inBrushDrag||L(this,Z)}).on("mouseleave",function(Z){Z.parent.inBrushDrag||g()}).call(S.behavior.drag().on("dragstart",function(Z){M(this,Z)}).on("drag",function(Z){R(this,Z)}).on("dragend",function(Z){T(this,Z)}))}function d($,Z){return $[0]-Z[0]}function k($,Z,q){var ae=q._context.staticPlot,ie=$.selectAll(".background").data(C);ie.enter().append("rect").classed("background",!0).call(f).call(u).style("pointer-events",ae?"none":"auto").attr("transform",v(0,l.verticalPadding)),ie.call(P).attr("height",function(J){return J.height-l.verticalPadding});var fe=$.selectAll(".highlight-shadow").data(C);fe.enter().append("line").classed("highlight-shadow",!0).attr("x",-l.bar.width/2).attr("stroke-width",l.bar.width+l.bar.strokeWidth).attr("stroke",Z).attr("opacity",l.bar.strokeOpacity).attr("stroke-linecap","butt"),fe.attr("y1",function(J){return J.height}).call(c);var Q=$.selectAll(".highlight").data(C);Q.enter().append("line").classed("highlight",!0).attr("x",-l.bar.width/2).attr("stroke-width",l.bar.width-l.bar.strokeWidth).attr("stroke",l.bar.fillColor).attr("opacity",l.bar.fillOpacity).attr("stroke-linecap","butt"),Q.attr("y1",function(J){return J.height}).call(c)}function I($,Z,q){var ae=$.selectAll("."+l.cn.axisBrush).data(C,i);ae.enter().append("g").classed(l.cn.axisBrush,!0),k(ae,Z,q)}function N($){return $.svgBrush.extent.map(function(Z){return Z.slice()})}function B($){$.filterSpecified=!1,$.svgBrush.extent=[[-1/0,1/0]]}function G($){return function(q){var ae=q.brush,ie=N(ae),fe=ie.slice();ae.filter.set(fe),$()}}function U($){for(var Z=$.slice(),q=[],ae,ie=Z.shift();ie;){for(ae=ie.slice();(ie=Z.shift())&&ie[0]<=ae[1];)ae[1]=Math.max(ae[1],ie[1]);q.push(ae)}return q.length===1&&q[0][0]>q[0][1]&&(q=[]),q}function H(){var $=[],Z,q;return{set:function(ae){$=ae.map(function(ie){return ie.slice().sort(w)}).sort(d),$.length===1&&$[0][0]===-1/0&&$[0][1]===1/0&&($=[[0,-1]]),Z=U($),q=$.reduce(function(ie,fe){return[Math.min(ie[0],fe[0]),Math.max(ie[1],fe[1])]},[1/0,-1/0])},get:function(){return $.slice()},getConsolidated:function(){return Z},getBounds:function(){return q}}}function W($,Z,q,ae,ie,fe){var Q=H();return Q.set(q),{filter:Q,filterSpecified:Z,svgBrush:{extent:[],brushStartCallback:ae,brushCallback:G(ie),brushEndCallback:fe}}}function V($,Z){if(Array.isArray($[0])?($=$.map(function(ae){return ae.sort(w)}),Z.multiselect?$=U($.sort(d)):$=[$[0]]):$=[$.sort(w)],Z.tickvals){var q=Z.tickvals.slice().sort(w);if($=$.map(function(ae){var ie=[o(0,q,ae[0],[]),o(1,q,ae[1],[])];if(ie[1]>ie[0])return ie}).filter(function(ae){return ae}),!$.length)return}return $.length>1?$:$[0]}D.exports={makeBrush:W,ensureAxisBrush:I,cleanRanges:V}},61664:function(D,O,t){D.exports={attributes:t(82296),supplyDefaults:t(60664),calc:t(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:t(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(D,O,t){var l=t(33428),S=t(84888)._M,i=t(24196),C=t(9616);O.name="parcoords",O.plot=function(w){var v=S(w.calcdata,"parcoords")[0];v.length&&i(w,v)},O.clean=function(w,v,m,a){var n=a._has&&a._has("parcoords"),s=v._has&&v._has("parcoords");n&&!s&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())},O.toSVG=function(w){var v=w._fullLayout._glimages,m=l.select(w).selectAll(".svg-container"),a=m.filter(function(s,o){return o===m.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var s=this,o=s.toDataURL("image/png"),h=v.append("svg:image");h.attr({xmlns:C.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:s.style.width,height:s.style.height})}a.each(n),window.setTimeout(function(){l.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(D,O,t){var l=t(3400).isArrayOrTypedArray,S=t(8932),i=t(71688).wrap;D.exports=function(v,m){var a,n;return S.hasColorscale(m,"line")&&l(m.line.color)?(a=m.line.color,n=S.extractOpts(m.line).colorscale,S.calc(v,m,{vals:a,containerStr:"line",cLetter:"c"})):(a=C(m._length),n=[[0,m.line.color],[1,m.line.color]]),i({lineColor:a,cscale:n})};function C(w){for(var v=new Array(w),m=0;mn&&(l.log("parcoords traces support up to "+n+" dimensions at the moment"),c.splice(n));var y=w(u,b,{name:"dimensions",layout:E,handleItemDefaults:h}),A=o(u,b,p,E,g);C(b,E,g),(!Array.isArray(y)||!y.length)&&(b.visible=!1),s(b,y,"values",A);var M={family:E.font.family,size:Math.round(E.font.size/1.2),color:E.font.color};l.coerceFont(g,"labelfont",M),l.coerceFont(g,"tickfont",M),l.coerceFont(g,"rangefont",M),g("labelangle"),g("labelside"),g("unselected.line.color"),g("unselected.line.opacity")}},95724:function(D,O,t){var l=t(3400).isTypedArray;O.convertTypedArray=function(S){return l(S)?Array.prototype.slice.call(S):S},O.isOrdinal=function(S){return!!S.tickvals},O.isVisible=function(S){return S.visible||!("visible"in S)}},29928:function(D,O,t){var l=t(61664);l.plot=t(24196),D.exports=l},51352:function(D,O,t){var l=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` `),S=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),i=t(30140).maxDimensionCount,C=t(3400),w=1e-6,v=2048,m=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function s(T){T.read({x:0,y:0,width:1,height:1,data:m})}function o(T,L,P,d,k){var I=T._gl;I.enable(I.SCISSOR_TEST),I.scissor(L,P,d,k),T.clear({color:[0,0,0,0],depth:1})}function h(T,L,P,d,k,I){var N=I.key;function B(G){var U=Math.min(d,k-G*d);G===0&&(window.cancelAnimationFrame(P.currentRafs[N]),delete P.currentRafs[N],o(T,I.scissorX,I.scissorY,I.scissorWidth,I.viewBoxSize[1])),!P.clearOnly&&(I.count=2*U,I.offset=2*G*d,L(I),G*d+U>>8*L)%256/255}function p(T,L,P){for(var d=new Array(T*(i+4)),k=0,I=0;ISe&&(Se=ce[le].dim1.canvasX,xe=le);de===0&&o(k,0,0,U.canvasWidth,U.canvasHeight);var ke=Q(P);for(le=0;lele._length&&(Ie=Ie.slice(0,le._length));var Ue=le.tickvals,Ne;function ze(nt,mt){return{val:nt,text:Ne[mt]}}function $e(nt,mt){return nt.val-mt.val}if(i(Ue)&&Ue.length){S.isTypedArray(Ue)&&(Ue=Array.from(Ue)),Ne=le.ticktext,!i(Ne)||!Ne.length?Ne=Ue.map(C(le.tickformat)):Ne.length>Ue.length?Ne=Ne.slice(0,Ue.length):Ue.length>Ne.length&&(Ue=Ue.slice(0,Ne.length));for(var st=1;st=mt||wt>=rt)return;var et=at.lineLayer.readPixel(dt,rt-1-wt),Be=et[3]!==0,Ye=Be?et[2]+256*(et[1]+256*et[0]):null,Ke={x:dt,y:wt,clientX:nt.clientX,clientY:nt.clientY,dataIndex:at.model.key,curveNumber:Ye};Ye!==xe&&(Be?J.hover(Ke):J.unhover&&J.unhover(Ke),xe=Ye)}}),he.style("opacity",function(at){return at.pick?0:1}),ne.style("background","rgba(255, 255, 255, 0)");var Se=ne.selectAll("."+E.cn.parcoords).data(le,f);Se.exit().remove(),Se.enter().append("g").classed(E.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),Se.attr("transform",function(at){return a(at.model.translateX,at.model.translateY)});var ke=Se.selectAll("."+E.cn.parcoordsControlView).data(u,f);ke.enter().append("g").classed(E.cn.parcoordsControlView,!0),ke.attr("transform",function(at){return a(at.model.pad.l,at.model.pad.t)});var Te=ke.selectAll("."+E.cn.yAxis).data(function(at){return at.dimensions},f);Te.enter().append("g").classed(E.cn.yAxis,!0),ke.each(function(at){V(Te,at,re)}),he.each(function(at){if(at.viewModel){!at.lineLayer||J?at.lineLayer=c(this,at):at.lineLayer.update(at),(at.key||at.key===0)&&(at.viewModel[at.key]=at.lineLayer);var nt=!at.context||J;at.lineLayer.render(at.viewModel.panels,nt)}}),Te.attr("transform",function(at){return a(at.xScale(at.xIndex),0)}),Te.call(l.behavior.drag().origin(function(at){return at}).on("drag",function(at){var nt=at.parent;de.linePickActive(!1),at.x=Math.max(-E.overdrag,Math.min(at.model.width+E.overdrag,l.event.x)),at.canvasX=at.x*at.model.canvasPixelRatio,Te.sort(function(mt,rt){return mt.x-rt.x}).each(function(mt,rt){mt.xIndex=rt,mt.x=at===mt?mt.x:mt.xScale(mt.xIndex),mt.canvasX=mt.x*mt.model.canvasPixelRatio}),V(Te,nt,re),Te.filter(function(mt){return Math.abs(at.xIndex-mt.xIndex)!==0}).attr("transform",function(mt){return a(mt.xScale(mt.xIndex),0)}),l.select(this).attr("transform",a(at.x,0)),Te.each(function(mt,rt,lt){lt===at.parent.key&&(nt.dimensions[rt]=mt)}),nt.contextLayer&&nt.contextLayer.render(nt.panels,!1,!N(nt)),nt.focusLayer.render&&nt.focusLayer.render(nt.panels)}).on("dragend",function(at){var nt=at.parent;at.x=at.xScale(at.xIndex),at.canvasX=at.x*at.model.canvasPixelRatio,V(Te,nt,re),l.select(this).attr("transform",function(mt){return a(mt.x,0)}),nt.contextLayer&&nt.contextLayer.render(nt.panels,!1,!N(nt)),nt.focusLayer&&nt.focusLayer.render(nt.panels),nt.pickLayer&&nt.pickLayer.render(nt.panels,!0),de.linePickActive(!0),J&&J.axesMoved&&J.axesMoved(nt.key,nt.dimensions.map(function(mt){return mt.crossfilterDimensionIndex}))})),Te.exit().remove();var Ae=Te.selectAll("."+E.cn.axisOverlays).data(u,f);Ae.enter().append("g").classed(E.cn.axisOverlays,!0),Ae.selectAll("."+E.cn.axis).remove();var be=Ae.selectAll("."+E.cn.axis).data(u,f);be.enter().append("g").classed(E.cn.axis,!0),be.each(function(at){var nt=at.model.height/at.model.tickDistance,mt=at.domainScale,rt=mt.domain();l.select(this).call(l.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(nt,at.tickFormat).tickValues(at.ordinal?rt:null).tickFormat(function(lt){return p.isOrdinal(at)?lt:Z(at.model.dimensions[at.visibleIndex],lt)}).scale(mt)),s.font(be.selectAll("text"),at.model.tickFont)}),be.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),be.selectAll("text").style("text-shadow",n.makeTextShadow(ee)).style("cursor","default");var Ie=Ae.selectAll("."+E.cn.axisHeading).data(u,f);Ie.enter().append("g").classed(E.cn.axisHeading,!0);var Ue=Ie.selectAll("."+E.cn.axisTitle).data(u,f);Ue.enter().append("text").classed(E.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",oe?"none":"auto"),Ue.text(function(at){return at.label}).each(function(at){var nt=l.select(this);s.font(nt,at.model.labelFont),n.convertToTspans(nt,ie)}).attr("transform",function(at){var nt=W(at.model.labelAngle,at.model.labelSide),mt=E.axisTitleOffset;return(nt.dir>0?"":a(0,2*mt+at.model.height))+m(nt.degrees)+a(-mt*nt.dx,-mt*nt.dy)}).attr("text-anchor",function(at){var nt=W(at.model.labelAngle,at.model.labelSide),mt=Math.abs(nt.dx),rt=Math.abs(nt.dy);return 2*mt>rt?nt.dir*nt.dx<0?"start":"end":"middle"});var Ne=Ae.selectAll("."+E.cn.axisExtent).data(u,f);Ne.enter().append("g").classed(E.cn.axisExtent,!0);var ze=Ne.selectAll("."+E.cn.axisExtentTop).data(u,f);ze.enter().append("g").classed(E.cn.axisExtentTop,!0),ze.attr("transform",a(0,-E.axisExtentOffset));var $e=ze.selectAll("."+E.cn.axisExtentTopText).data(u,f);$e.enter().append("text").classed(E.cn.axisExtentTopText,!0).call(U),$e.text(function(at){return q(at,!0)}).each(function(at){s.font(l.select(this),at.model.rangeFont)});var st=Ne.selectAll("."+E.cn.axisExtentBottom).data(u,f);st.enter().append("g").classed(E.cn.axisExtentBottom,!0),st.attr("transform",function(at){return a(0,at.model.height+E.axisExtentOffset)});var vt=st.selectAll("."+E.cn.axisExtentBottomText).data(u,f);vt.enter().append("text").classed(E.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(U),vt.text(function(at){return q(at,!1)}).each(function(at){s.font(l.select(this),at.model.rangeFont)}),g.ensureAxisBrush(Ae,ee,ie)}},24196:function(D,O,t){var l=t(36336),S=t(5048),i=t(95724).isVisible,C={};function w(a,n,s){var o=n.indexOf(s),h=a.indexOf(o);return h===-1&&(h+=n.length),h}function v(a,n){return function(o,h){return w(a,n,o)-w(a,n,h)}}var m=D.exports=function(n,s){var o=n._fullLayout,h=S(n,[],C);if(h){var f={},u={},b={},p={},E=o._size;s.forEach(function(M,R){var T=M[0].trace;b[R]=T.index;var L=p[R]=T._fullInput.index;f[R]=n.data[L].dimensions,u[R]=n.data[L].dimensions.slice()});var g=function(M,R,T){var L=u[M][R],P=T.map(function(G){return G.slice()}),d="dimensions["+R+"].constraintrange",k=o._tracePreGUI[n._fullData[b[M]]._fullInput.uid];if(k[d]===void 0){var I=L.constraintrange;k[d]=I||null}var N=n._fullData[b[M]].dimensions[R];P.length?(P.length===1&&(P=P[0]),L.constraintrange=P,N.constraintrange=P.slice(),P=[P]):(delete L.constraintrange,delete N.constraintrange,P=null);var B={};B[d]=P,n.emit("plotly_restyle",[B,[p[M]]])},c=function(M){n.emit("plotly_hover",M)},x=function(M){n.emit("plotly_unhover",M)},A=function(M,R){var T=v(R,u[M].filter(i));f[M].sort(T),u[M].filter(function(L){return!i(L)}).sort(function(L){return u[M].indexOf(L)}).forEach(function(L){f[M].splice(f[M].indexOf(L),1),f[M].splice(u[M].indexOf(L),0,L)}),n.emit("plotly_restyle",[{dimensions:[f[M]]},[p[M]]])};l(n,s,{width:E.w,height:E.h,margin:{t:E.t,r:E.r,b:E.b,l:E.l}},{filterChanged:g,hover:c,unhover:x,axesMoved:A})}};m.reglPrecompiled=C},74996:function(D,O,t){var l=t(45464),S=t(86968).u,i=t(25376),C=t(22548),w=t(21776).Ks,v=t(21776).Gw,m=t(92880).extendFlat,a=t(98192).c,n=i({editType:"plot",arrayOk:!0,colorEditType:"plot"});D.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:C.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:a,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:m({},l.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:w({},{keys:["label","color","value","percent","text"]}),texttemplate:v({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:m({},n,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:m({},n,{}),outsidetextfont:m({},n,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:m({},n,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:S({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:m({},n,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(D,O,t){var l=t(7316);O.name="pie",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},45768:function(D,O,t){var l=t(38248),S=t(49760),i=t(76308),C={};function w(n,s){var o=[],h=n._fullLayout,f=h.hiddenlabels||[],u=s.labels,b=s.marker.colors||[],p=s.values,E=s._length,g=s._hasValues&&E,c,x;if(s.dlabel)for(u=new Array(E),c=0;c=0});var I=s.type==="funnelarea"?T:s.sort;return I&&o.sort(function(N,B){return B.v-N.v}),o[0]&&(o[0].vTotal=R),o}function v(n){return function(o,h){return!o||(o=S(o),!o.isValid())?!1:(o=i.addOpacity(o,o.getAlpha()),n[h]||(n[h]=o),o)}}function m(n,s){var o=(s||{}).type;o||(o="pie");var h=n._fullLayout,f=n.calcdata,u=h[o+"colorway"],b=h["_"+o+"colormap"];h["extend"+o+"colors"]&&(u=a(u,C));for(var p=0,E=0;E0){b=!0;break}}b||(u=0)}return{hasLabels:h,hasValues:f,len:u}}function a(s,o,h,f,u){var b=f("marker.line.width");b&&f("marker.line.color",u?void 0:h.paper_bgcolor);var p=f("marker.colors");v(f,"marker.pattern",p),s.marker&&!o.marker.pattern.fgcolor&&(o.marker.pattern.fgcolor=s.marker.colors),o.marker.pattern.bgcolor||(o.marker.pattern.bgcolor=h.paper_bgcolor)}function n(s,o,h,f){function u(k,I){return S.coerce(s,o,i,k,I)}var b=u("labels"),p=u("values"),E=m(b,p),g=E.len;if(o._hasLabels=E.hasLabels,o._hasValues=E.hasValues,!o._hasLabels&&o._hasValues&&(u("label0"),u("dlabel")),!g){o.visible=!1;return}o._length=g,a(s,o,f,u,!0),u("scalegroup");var c=u("text"),x=u("texttemplate"),A;if(x||(A=u("textinfo",S.isArrayOrTypedArray(c)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),x||A&&A!=="none"){var M=u("textposition");w(s,o,f,u,M,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var R=Array.isArray(M)||M==="auto",T=R||M==="outside";T&&u("automargin"),(M==="inside"||M==="auto"||Array.isArray(M))&&u("insidetextorientation")}else A==="none"&&u("textposition","none");C(o,f,u);var L=u("hole"),P=u("title.text");if(P){var d=u("title.position",L?"middle center":"top center");!L&&d==="middle center"&&(o.title.position="top center"),S.coerceFont(u,"title.font",f.font)}u("sort"),u("direction"),u("rotation"),u("pull")}D.exports={handleLabelsAndValues:m,handleMarkerDefaults:a,supplyDefaults:n}},53644:function(D,O,t){var l=t(10624).appendArrayMultiPointValues;D.exports=function(i,C){var w={curveNumber:C.index,pointNumbers:i.pts,data:C._input,fullData:C,label:i.label,color:i.color,value:i.v,percent:i.percent,text:i.text,bbox:i.bbox,v:i.v};return i.pts.length===1&&(w.pointNumber=w.i=i.pts[0]),l(w,C,i.pts),C.type==="funnelarea"&&(delete w.v,delete w.i),w}},21552:function(D,O,t){var l=t(43616),S=t(76308);D.exports=function(C,w,v,m){var a=v.marker.pattern;a&&a.shape?l.pointStyle(C,v,m,w):S.fill(C,w.color)}},69656:function(D,O,t){var l=t(3400);function S(i){return i.indexOf("e")!==-1?i.replace(/[.]?0+e/,"e"):i.indexOf(".")!==-1?i.replace(/[.]?0+$/,""):i}O.formatPiePercent=function(C,w){var v=S((C*100).toPrecision(3));return l.numSeparate(v,w)+"%"},O.formatPieValue=function(C,w){var v=S(C.toPrecision(10));return l.numSeparate(v,w)},O.getFirstFilled=function(C,w){if(l.isArrayOrTypedArray(C))for(var v=0;v0&&(st+=mt*ze.pxmid[0],vt+=mt*ze.pxmid[1])}ze.cxFinal=st,ze.cyFinal=vt;function rt(Ke,We,Fe,Me){var we=Me*(We[0]-Ke[0]),Re=Me*(We[1]-Ke[1]);return"a"+Me*le.r+","+Me*le.r+" 0 "+ze.largeArc+(Fe?" 1 ":" 0 ")+we+","+Re}var lt=he.hole;if(ze.v===le.vTotal){var dt="M"+(st+ze.px0[0])+","+(vt+ze.px0[1])+rt(ze.px0,ze.pxmid,!0,1)+rt(ze.pxmid,ze.px0,!0,1)+"Z";lt?nt.attr("d","M"+(st+lt*ze.px0[0])+","+(vt+lt*ze.px0[1])+rt(ze.px0,ze.pxmid,!1,lt)+rt(ze.pxmid,ze.px0,!1,lt)+"Z"+dt):nt.attr("d",dt)}else{var wt=rt(ze.px0,ze.px1,!0,1);if(lt){var et=1-lt;nt.attr("d","M"+(st+lt*ze.px1[0])+","+(vt+lt*ze.px1[1])+rt(ze.px1,ze.px0,!1,lt)+"l"+et*ze.px0[0]+","+et*ze.px0[1]+wt+"Z")}else nt.attr("d","M"+st+","+vt+"l"+ze.px0[0]+","+ze.px0[1]+wt+"Z")}fe(J,ze,le);var Be=u.castOption(he.textposition,ze.pts),Ye=at.selectAll("g.slicetext").data(ze.text&&Be!=="none"?[0]:[]);Ye.enter().append("g").classed("slicetext",!0),Ye.exit().remove(),Ye.each(function(){var Ke=v.ensureSingle(l.select(this),"text","",function(Je){Je.attr("data-notex",1)}),We=v.ensureUniformFontSize(J,Be==="outside"?x(he,ze,ne.font):A(he,ze,ne.font));Ke.text(ze.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(w.font,We).call(n.convertToTspans,J);var Fe=w.bBox(Ke.node()),Me;if(Be==="outside")Me=B(Fe,ze);else if(Me=R(Fe,ze,le),Be==="auto"&&Me.scale<1){var we=v.ensureUniformFontSize(J,he.outsidetextfont);Ke.call(w.font,we),Fe=w.bBox(Ke.node()),Me=B(Fe,ze)}var Re=Me.textPosAngle,Pe=Re===void 0?ze.pxmid:ie(le.r,Re);if(Me.targetX=st+Pe[0]*Me.rCenter+(Me.x||0),Me.targetY=vt+Pe[1]*Me.rCenter+(Me.y||0),Q(Me,Fe),Me.outside){var Ve=Me.targetY;ze.yLabelMin=Ve-Fe.height/2,ze.yLabelMid=Ve,ze.yLabelMax=Ve+Fe.height/2,ze.labelExtraX=0,ze.labelExtraY=0,Se=!0}Me.fontSize=We.size,o(he.type,Me,ne),ee[$e].transform=Me,v.setTransormAndDisplay(Ke,Me)})});var ke=l.select(this).selectAll("g.titletext").data(he.title.text?[0]:[]);if(ke.enter().append("g").classed("titletext",!0),ke.exit().remove(),ke.each(function(){var ze=v.ensureSingle(l.select(this),"text","",function(vt){vt.attr("data-notex",1)}),$e=he.title.text;he._meta&&($e=v.templateString($e,he._meta)),ze.text($e).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(w.font,he.title.font).call(n.convertToTspans,J);var st;he.title.position==="middle center"?st=G(le):st=U(le,ce),ze.attr("transform",a(st.x,st.y)+m(Math.min(1,st.scale))+a(st.tx,st.ty))}),Se&&$(Ee,he),g(xe,he),Se&&he.automargin){var Te=w.bBox(de.node()),Ae=he.domain,be=ce.w*(Ae.x[1]-Ae.x[0]),Ie=ce.h*(Ae.y[1]-Ae.y[0]),Ue=(.5*be-le.r)/ce.w,Ne=(.5*Ie-le.r)/ce.h;S.autoMargin(J,"pie."+he.uid+".automargin",{xl:Ae.x[0]-Ue,xr:Ae.x[1]+Ue,yb:Ae.y[0]-Ne,yt:Ae.y[1]+Ne,l:Math.max(le.cx-le.r-Te.left,0),r:Math.max(Te.right-(le.cx+le.r),0),b:Math.max(Te.bottom-(le.cy+le.r),0),t:Math.max(le.cy-le.r-Te.top,0),pad:5})}})});setTimeout(function(){re.selectAll("tspan").each(function(){var ee=l.select(this);ee.attr("dy")&&ee.attr("dy",ee.attr("dy"))})},0)}function g(J,oe){J.each(function(K){var ne=l.select(this);if(!K.labelExtraX&&!K.labelExtraY){ne.select("path.textline").remove();return}var ce=ne.select("g.slicetext text");K.transform.targetX+=K.labelExtraX,K.transform.targetY+=K.labelExtraY,v.setTransormAndDisplay(ce,K.transform);var re=K.cxFinal+K.pxmid[0],ee=K.cyFinal+K.pxmid[1],de="M"+re+","+ee,le=(K.yLabelMax-K.yLabelMin)*(K.pxmid[0]<0?-1:1)/4;if(K.labelExtraX){var he=K.labelExtraX*K.pxmid[1]/K.pxmid[0],xe=K.yLabelMid+K.labelExtraY-(K.cyFinal+K.pxmid[1]);Math.abs(he)>Math.abs(xe)?de+="l"+xe*K.pxmid[0]/K.pxmid[1]+","+xe+"H"+(re+K.labelExtraX+le):de+="l"+K.labelExtraX+","+he+"v"+(xe-he)+"h"+le}else de+="V"+(K.yLabelMid+K.labelExtraY)+"h"+le;v.ensureSingle(ne,"path","textline").call(C.stroke,oe.outsidetextfont.color).attr({"stroke-width":Math.min(2,oe.outsidetextfont.size/8),d:de,fill:"none"})})}function c(J,oe,K){var ne=K[0],ce=ne.cx,re=ne.cy,ee=ne.trace,de=ee.type==="funnelarea";"_hasHoverLabel"in ee||(ee._hasHoverLabel=!1),"_hasHoverEvent"in ee||(ee._hasHoverEvent=!1),J.on("mouseover",function(le){var he=oe._fullLayout,xe=oe._fullData[ee.index];if(!(oe._dragging||he.hovermode===!1)){var Ee=xe.hoverinfo;if(Array.isArray(Ee)&&(Ee=i.castHoverinfo({hoverinfo:[u.castOption(Ee,le.pts)],_module:ee._module},he,0)),Ee==="all"&&(Ee="label+text+value+percent+name"),xe.hovertemplate||Ee!=="none"&&Ee!=="skip"&&Ee){var Se=le.rInscribed||0,ke=ce+le.pxmid[0]*(1-Se),Te=re+le.pxmid[1]*(1-Se),Ae=he.separators,be=[];if(Ee&&Ee.indexOf("label")!==-1&&be.push(le.label),le.text=u.castOption(xe.hovertext||xe.text,le.pts),Ee&&Ee.indexOf("text")!==-1){var Ie=le.text;v.isValidTextValue(Ie)&&be.push(Ie)}le.value=le.v,le.valueLabel=u.formatPieValue(le.v,Ae),Ee&&Ee.indexOf("value")!==-1&&be.push(le.valueLabel),le.percent=le.v/ne.vTotal,le.percentLabel=u.formatPiePercent(le.percent,Ae),Ee&&Ee.indexOf("percent")!==-1&&be.push(le.percentLabel);var Ue=xe.hoverlabel,Ne=Ue.font,ze=[];i.loneHover({trace:ee,x0:ke-Se*ne.r,x1:ke+Se*ne.r,y:Te,_x0:de?ce+le.TL[0]:ke-Se*ne.r,_x1:de?ce+le.TR[0]:ke+Se*ne.r,_y0:de?re+le.TL[1]:Te-Se*ne.r,_y1:de?re+le.BL[1]:Te+Se*ne.r,text:be.join("
"),name:xe.hovertemplate||Ee.indexOf("name")!==-1?xe.name:void 0,idealAlign:le.pxmid[0]<0?"left":"right",color:u.castOption(Ue.bgcolor,le.pts)||le.color,borderColor:u.castOption(Ue.bordercolor,le.pts),fontFamily:u.castOption(Ne.family,le.pts),fontSize:u.castOption(Ne.size,le.pts),fontColor:u.castOption(Ne.color,le.pts),nameLength:u.castOption(Ue.namelength,le.pts),textAlign:u.castOption(Ue.align,le.pts),hovertemplate:u.castOption(xe.hovertemplate,le.pts),hovertemplateLabels:le,eventData:[b(le,xe)]},{container:he._hoverlayer.node(),outerContainer:he._paper.node(),gd:oe,inOut_bbox:ze}),le.bbox=ze[0],ee._hasHoverLabel=!0}ee._hasHoverEvent=!0,oe.emit("plotly_hover",{points:[b(le,xe)],event:l.event})}}),J.on("mouseout",function(le){var he=oe._fullLayout,xe=oe._fullData[ee.index],Ee=l.select(this).datum();ee._hasHoverEvent&&(le.originalEvent=l.event,oe.emit("plotly_unhover",{points:[b(Ee,xe)],event:l.event}),ee._hasHoverEvent=!1),ee._hasHoverLabel&&(i.loneUnhover(he._hoverlayer.node()),ee._hasHoverLabel=!1)}),J.on("click",function(le){var he=oe._fullLayout,xe=oe._fullData[ee.index];oe._dragging||he.hovermode===!1||(oe._hoverdata=[b(le,xe)],i.click(oe,l.event))})}function x(J,oe,K){var ne=u.castOption(J.outsidetextfont.color,oe.pts)||u.castOption(J.textfont.color,oe.pts)||K.color,ce=u.castOption(J.outsidetextfont.family,oe.pts)||u.castOption(J.textfont.family,oe.pts)||K.family,re=u.castOption(J.outsidetextfont.size,oe.pts)||u.castOption(J.textfont.size,oe.pts)||K.size;return{color:ne,family:ce,size:re}}function A(J,oe,K){var ne=u.castOption(J.insidetextfont.color,oe.pts);!ne&&J._input.textfont&&(ne=u.castOption(J._input.textfont.color,oe.pts));var ce=u.castOption(J.insidetextfont.family,oe.pts)||u.castOption(J.textfont.family,oe.pts)||K.family,re=u.castOption(J.insidetextfont.size,oe.pts)||u.castOption(J.textfont.size,oe.pts)||K.size;return{color:ne||C.contrast(oe.color),family:ce,size:re}}function M(J,oe){for(var K,ne,ce=0;ce=-4;Ue-=2)Ie(Math.PI*Ue,"tan");for(Ue=4;Ue>=-4;Ue-=2)Ie(Math.PI*(Ue+1),"tan")}if(Ee||ke){for(Ue=4;Ue>=-4;Ue-=2)Ie(Math.PI*(Ue+1.5),"rad");for(Ue=4;Ue>=-4;Ue-=2)Ie(Math.PI*(Ue+.5),"rad")}}if(de||Te||Ee){var Ne=Math.sqrt(J.width*J.width+J.height*J.height);if(be={scale:ce*ne*2/Ne,rCenter:1-ce,rotate:0},be.textPosAngle=(oe.startangle+oe.stopangle)/2,be.scale>=1)return be;Ae.push(be)}(Te||ke)&&(be=L(J,ne,ee,le,he),be.textPosAngle=(oe.startangle+oe.stopangle)/2,Ae.push(be)),(Te||Se)&&(be=P(J,ne,ee,le,he),be.textPosAngle=(oe.startangle+oe.stopangle)/2,Ae.push(be));for(var ze=0,$e=0,st=0;st=1)break}return Ae[ze]}function T(J,oe){var K=J.startangle,ne=J.stopangle;return K>oe&&oe>ne||K0?1:-1)/2,y:re/(1+K*K/(ne*ne)),outside:!0}}function G(J){var oe=Math.sqrt(J.titleBox.width*J.titleBox.width+J.titleBox.height*J.titleBox.height);return{x:J.cx,y:J.cy,scale:J.trace.hole*J.r*2/oe,tx:0,ty:-J.titleBox.height/2+J.trace.title.font.size}}function U(J,oe){var K=1,ne=1,ce,re=J.trace,ee={x:J.cx,y:J.cy},de={tx:0,ty:0};de.ty+=re.title.font.size,ce=V(re),re.title.position.indexOf("top")!==-1?(ee.y-=(1+ce)*J.r,de.ty-=J.titleBox.height):re.title.position.indexOf("bottom")!==-1&&(ee.y+=(1+ce)*J.r);var le=H(J.r,J.trace.aspectratio),he=oe.w*(re.domain.x[1]-re.domain.x[0])/2;return re.title.position.indexOf("left")!==-1?(he=he+le,ee.x-=(1+ce)*le,de.tx+=J.titleBox.width/2):re.title.position.indexOf("center")!==-1?he*=2:re.title.position.indexOf("right")!==-1&&(he=he+le,ee.x+=(1+ce)*le,de.tx-=J.titleBox.width/2),K=he/J.titleBox.width,ne=W(J,oe)/J.titleBox.height,{x:ee.x,y:ee.y,scale:Math.min(K,ne),tx:de.tx,ty:de.ty}}function H(J,oe){return J/(oe===void 0?1:oe)}function W(J,oe){var K=J.trace,ne=oe.h*(K.domain.y[1]-K.domain.y[0]);return Math.min(J.titleBox.height,ne/2)}function V(J){var oe=J.pull;if(!oe)return 0;var K;if(v.isArrayOrTypedArray(oe))for(oe=0,K=0;Koe&&(oe=J.pull[K]);return oe}function $(J,oe){var K,ne,ce,re,ee,de,le,he,xe,Ee,Se,ke,Te;function Ae(Ne,ze){return Ne.pxmid[1]-ze.pxmid[1]}function be(Ne,ze){return ze.pxmid[1]-Ne.pxmid[1]}function Ie(Ne,ze){ze||(ze={});var $e=ze.labelExtraY+(ne?ze.yLabelMax:ze.yLabelMin),st=ne?Ne.yLabelMin:Ne.yLabelMax,vt=ne?Ne.yLabelMax:Ne.yLabelMin,at=Ne.cyFinal+ee(Ne.px0[1],Ne.px1[1]),nt=$e-st,mt,rt,lt,dt,wt,et;if(nt*le>0&&(Ne.labelExtraY=nt),!!v.isArrayOrTypedArray(oe.pull))for(rt=0;rt=(u.castOption(oe.pull,lt.pts)||0))&&((Ne.pxmid[1]-lt.pxmid[1])*le>0?(dt=lt.cyFinal+ee(lt.px0[1],lt.px1[1]),nt=dt-st-Ne.labelExtraY,nt*le>0&&(Ne.labelExtraY+=nt)):(vt+Ne.labelExtraY-at)*le>0&&(mt=3*de*Math.abs(rt-Ee.indexOf(Ne)),wt=lt.cxFinal+re(lt.px0[0],lt.px1[0]),et=wt+mt-(Ne.cxFinal+Ne.pxmid[0])-Ne.labelExtraX,et*de>0&&(Ne.labelExtraX+=et)))}for(ne=0;ne<2;ne++)for(ce=ne?Ae:be,ee=ne?Math.max:Math.min,le=ne?1:-1,K=0;K<2;K++){for(re=K?Math.max:Math.min,de=K?1:-1,he=J[ne][K],he.sort(ce),xe=J[1-ne][K],Ee=xe.concat(he),ke=[],Se=0;Se1?(he=K.r,xe=he/ce.aspectratio):(xe=K.r,he=xe*ce.aspectratio),he*=(1+ce.baseratio)/2,le=he*xe}ee=Math.min(ee,le/K.vTotal)}for(ne=0;neoe.vTotal/2?1:0,he.halfangle=Math.PI*Math.min(he.v/oe.vTotal,.5),he.ring=1-ne.hole,he.rInscribed=N(he,oe))}function ie(J,oe){return[J*Math.sin(oe),-J*Math.cos(oe)]}function fe(J,oe,K){var ne=J._fullLayout,ce=K.trace,re=ce.texttemplate,ee=ce.textinfo;if(!re&&ee&&ee!=="none"){var de=ee.split("+"),le=function(ze){return de.indexOf(ze)!==-1},he=le("label"),xe=le("text"),Ee=le("value"),Se=le("percent"),ke=ne.separators,Te;if(Te=he?[oe.label]:[],xe){var Ae=u.getFirstFilled(ce.text,oe.pts);p(Ae)&&Te.push(Ae)}Ee&&Te.push(u.formatPieValue(oe.v,ke)),Se&&Te.push(u.formatPiePercent(oe.v/K.vTotal,ke)),oe.text=Te.join("
")}function be(ze){return{label:ze.label,value:ze.v,valueLabel:u.formatPieValue(ze.v,ne.separators),percent:ze.v/K.vTotal,percentLabel:u.formatPiePercent(ze.v/K.vTotal,ne.separators),color:ze.color,text:ze.text,customdata:v.castOption(ce,ze.i,"customdata")}}if(re){var Ie=v.castOption(ce,oe.i,"texttemplate");if(!Ie)oe.text="";else{var Ue=be(oe),Ne=u.getFirstFilled(ce.text,oe.pts);(p(Ne)||Ne==="")&&(Ue.text=Ne),oe.text=v.texttemplateString(Ie,Ue,J._fullLayout._d3locale,Ue,ce._meta||{})}}}function Q(J,oe){var K=J.rotate*Math.PI/180,ne=Math.cos(K),ce=Math.sin(K),re=(oe.left+oe.right)/2,ee=(oe.top+oe.bottom)/2;J.textX=re*ne-ee*ce,J.textY=re*ce+ee*ne,J.noCenter=!0}D.exports={plot:E,formatSliceLabel:fe,transformInsideText:R,determineInsideTextFont:A,positionTitleOutside:U,prerenderTitles:M,layoutAreas:Z,attachFxHandlers:c,computeTransform:Q}},22152:function(D,O,t){var l=t(33428),S=t(10528),i=t(82744).resizeText;D.exports=function(w){var v=w._fullLayout._pielayer.selectAll(".trace");i(w,v,"pie"),v.each(function(m){var a=m[0],n=a.trace,s=l.select(this);s.style({opacity:n.opacity}),s.selectAll("path.surface").each(function(o){l.select(this).call(S,o,n,w)})})}},10528:function(D,O,t){var l=t(76308),S=t(69656).castOption,i=t(21552);D.exports=function(w,v,m,a){var n=m.marker.line,s=S(n.color,v.pts)||l.defaultLine,o=S(n.width,v.pts)||0;w.call(i,v,m,a).style("stroke-width",o).call(l.stroke,s)}},35484:function(D,O,t){var l=t(52904);D.exports={x:l.x,y:l.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:l.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},11072:function(D,O,t){var l=t(67792).gl_pointcloud2d,S=t(3400).isArrayOrTypedArray,i=t(43080),C=t(19280).findExtremes,w=t(44928);function v(n,s){this.scene=n,this.uid=s,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=l(n.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var m=v.prototype;m.handlePick=function(n){var s=this.idToIndex[n.pointId];return{trace:this,dataCoord:n.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[s*2],this.pickXYData[s*2+1]]:[this.pickXData[s],this.pickYData[s]],textLabel:S(this.textLabels)?this.textLabels[s]:this.textLabels,color:this.color,name:this.name,pointIndex:s,hoverinfo:this.hoverinfo}},m.update=function(n){this.index=n.index,this.textLabels=n.text,this.name=n.name,this.hoverinfo=n.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(n),this.color=w(n,{})},m.updateFast=function(n){var s=this.xData=this.pickXData=n.x,o=this.yData=this.pickYData=n.y,h=this.pickXYData=n.xy,f=n.xbounds&&n.ybounds,u=n.indices,b,p,E,g=this.bounds,c,x,A;if(h){if(E=h,b=h.length>>>1,f)g[0]=n.xbounds[0],g[2]=n.xbounds[1],g[1]=n.ybounds[0],g[3]=n.ybounds[1];else for(A=0;Ag[2]&&(g[2]=c),xg[3]&&(g[3]=x);if(u)p=u;else for(p=new Int32Array(b),A=0;Ag[2]&&(g[2]=c),xg[3]&&(g[3]=x);this.idToIndex=p,this.pointcloudOptions.idToIndex=p,this.pointcloudOptions.positions=E;var M=i(n.marker.color),R=i(n.marker.border.color),T=n.opacity*n.marker.opacity;M[3]*=T,this.pointcloudOptions.color=M;var L=n.marker.blend;if(L===null){var P=100;L=s.lengthR&&(R=o.source[c]),o.target[c]>R&&(R=o.target[c]);var T=R+1;n.node._count=T;var L,P=n.node.groups,d={};for(c=0;c0&&w(U,T)&&w(H,T)&&!(d.hasOwnProperty(U)&&d.hasOwnProperty(H)&&d[U]===d[H])){d.hasOwnProperty(H)&&(H=d[H]),d.hasOwnProperty(U)&&(U=d[U]),U=+U,H=+H,p[U]=p[H]=!0;var W="";o.label&&o.label[c]&&(W=o.label[c]);var V=null;W&&E.hasOwnProperty(W)&&(V=E[W]),h.push({pointNumber:c,label:W,color:f?o.color[c]:o.color,hovercolor:u?o.hovercolor[c]:o.hovercolor,customdata:b?o.customdata[c]:o.customdata,concentrationscale:V,source:U,target:H,value:+G}),B.source.push(U),B.target.push(H)}}var $=T+P.length,Z=C(s.color),q=C(s.customdata),ae=[];for(c=0;c<$;c++)if(p[c]){var ie=s.label[c];ae.push({group:c>T-1,childrenNodes:[],pointNumber:c,label:ie,color:Z?s.color[c]:s.color,customdata:q?s.customdata[c]:s.customdata})}var fe=!1;return a($,B.source,B.target)&&(fe=!0),{circular:fe,links:h,nodes:ae,groups:P,groupLookup:d}}function a(n,s,o){for(var h=S.init2dArray(n,0),f=0;f1})}D.exports=function(s,o){var h=m(o);return i({circular:h.circular,_nodes:h.nodes,_links:h.links,_groups:h.groups,_groupLookup:h.groupLookup})}},11820:function(D){D.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},47140:function(D,O,t){var l=t(3400),S=t(41440),i=t(76308),C=t(49760),w=t(86968).Q,v=t(16132),m=t(31780),a=t(51272);D.exports=function(o,h,f,u){function b(N,B){return l.coerce(o,h,S,N,B)}var p=l.extendDeep(u.hoverlabel,o.hoverlabel),E=o.node,g=m.newContainer(h,"node");function c(N,B){return l.coerce(E,g,S.node,N,B)}c("label"),c("groups"),c("x"),c("y"),c("pad"),c("thickness"),c("line.color"),c("line.width"),c("hoverinfo",o.hoverinfo),v(E,g,c,p),c("hovertemplate"),c("align");var x=u.colorway,A=function(N){return x[N%x.length]};c("color",g.label.map(function(N,B){return i.addOpacity(A(B),.8)})),c("customdata");var M=o.link||{},R=m.newContainer(h,"link");function T(N,B){return l.coerce(M,R,S.link,N,B)}T("label"),T("arrowlen"),T("source"),T("target"),T("value"),T("line.color"),T("line.width"),T("hoverinfo",o.hoverinfo),v(M,R,T,p),T("hovertemplate");var L=C(u.paper_bgcolor).getLuminance()<.333,P=L?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",d=T("color",P);function k(N){var B=C(N);if(!B.isValid())return N;var G=B.getAlpha();return G<=.8?B.setAlpha(G+.2):B=L?B.brighten():B.darken(),B.toRgbString()}T("hovercolor",Array.isArray(d)?d.map(k):k(d)),T("customdata"),a(M,R,{name:"colorscales",handleItemDefaults:n}),w(h,u,b),b("orientation"),b("valueformat"),b("valuesuffix");var I;g.x.length&&g.y.length&&(I="freeform"),b("arrangement",I),l.coerceFont(b,"textfont",l.extendFlat({},u.font)),h._length=null};function n(s,o){function h(f,u){return l.coerce(s,o,S.link.colorscales,f,u)}h("label"),h("cmin"),h("cmax"),h("colorscale")}},45499:function(D,O,t){D.exports={attributes:t(41440),supplyDefaults:t(47140),calc:t(48068),plot:t(59596),moduleType:"trace",name:"sankey",basePlotModule:t(10760),selectPoints:t(81128),categories:["noOpacity"],meta:{}}},59596:function(D,O,t){var l=t(33428),S=t(3400),i=S.numberFormat,C=t(83248),w=t(93024),v=t(76308),m=t(11820).cn,a=S._;function n(x){return x!==""}function s(x,A){return x.filter(function(M){return M.key===A.traceId})}function o(x,A){l.select(x).select("path").style("fill-opacity",A),l.select(x).select("rect").style("fill-opacity",A)}function h(x){l.select(x).select("text.name").style("fill","black")}function f(x){return function(A){return x.node.sourceLinks.indexOf(A.link)!==-1||x.node.targetLinks.indexOf(A.link)!==-1}}function u(x){return function(A){return A.node.sourceLinks.indexOf(x.link)!==-1||A.node.targetLinks.indexOf(x.link)!==-1}}function b(x,A,M){A&&M&&s(M,A).selectAll("."+m.sankeyLink).filter(f(A)).call(E.bind(0,A,M,!1))}function p(x,A,M){A&&M&&s(M,A).selectAll("."+m.sankeyLink).filter(f(A)).call(g.bind(0,A,M,!1))}function E(x,A,M,R){R.style("fill",function(T){if(!T.link.concentrationscale)return T.tinyColorHoverHue}).style("fill-opacity",function(T){if(!T.link.concentrationscale)return T.tinyColorHoverAlpha}),R.each(function(T){var L=T.link.label;L!==""&&s(A,x).selectAll("."+m.sankeyLink).filter(function(P){return P.link.label===L}).style("fill",function(P){if(!P.link.concentrationscale)return P.tinyColorHoverHue}).style("fill-opacity",function(P){if(!P.link.concentrationscale)return P.tinyColorHoverAlpha})}),M&&s(A,x).selectAll("."+m.sankeyNode).filter(u(x)).call(b)}function g(x,A,M,R){R.style("fill",function(T){return T.tinyColorHue}).style("fill-opacity",function(T){return T.tinyColorAlpha}),R.each(function(T){var L=T.link.label;L!==""&&s(A,x).selectAll("."+m.sankeyLink).filter(function(P){return P.link.label===L}).style("fill",function(P){return P.tinyColorHue}).style("fill-opacity",function(P){return P.tinyColorAlpha})}),M&&s(A,x).selectAll(m.sankeyNode).filter(u(x)).call(p)}function c(x,A){var M=x.hoverlabel||{},R=S.nestedProperty(M,A).get();return Array.isArray(R)?!1:R}D.exports=function(A,M){for(var R=A._fullLayout,T=R._paper,L=R._size,P=0;P"),color:c(Q,"bgcolor")||v.addOpacity(ce.color,1),borderColor:c(Q,"bordercolor"),fontFamily:c(Q,"font.family"),fontSize:c(Q,"font.size"),fontColor:c(Q,"font.color"),nameLength:c(Q,"namelength"),textAlign:c(Q,"align"),idealAlign:l.event.x"),color:c(Q,"bgcolor")||fe.tinyColorHue,borderColor:c(Q,"bordercolor"),fontFamily:c(Q,"font.family"),fontSize:c(Q,"font.size"),fontColor:c(Q,"font.color"),nameLength:c(Q,"namelength"),textAlign:c(Q,"align"),idealAlign:"left",hovertemplate:Q.hovertemplate,hovertemplateLabels:ee,eventData:[fe.node]},{container:R._hoverlayer.node(),outerContainer:R._paper.node(),gd:A});o(he,.85),h(he)}}},ae=function(ie,fe,Q){A._fullLayout.hovermode!==!1&&(l.select(ie).call(p,fe,Q),fe.node.trace.node.hoverinfo!=="skip"&&(fe.node.fullData=fe.node.trace,A.emit("plotly_unhover",{event:l.event,points:[fe.node]})),w.loneUnhover(R._hoverlayer.node()))};C(A,T,M,{width:L.w,height:L.h,margin:{t:L.t,r:L.r,b:L.b,l:L.l}},{linkEvents:{hover:I,follow:W,unhover:V,select:k},nodeEvents:{hover:Z,follow:q,unhover:ae,select:$}})}},83248:function(D,O,t){var l=t(49812),S=t(67756).Gz,i=t(33428),C=t(26800),w=t(48932),v=t(11820),m=t(49760),a=t(76308),n=t(43616),s=t(3400),o=s.strTranslate,h=s.strRotate,f=t(71688),u=f.keyFun,b=f.repeat,p=f.unwrap,E=t(72736),g=t(24040),c=t(84284),x=c.CAP_SHIFT,A=c.LINE_SPACING,M=3;function R(oe,K,ne){var ce=p(K),re=ce.trace,ee=re.domain,de=re.orientation==="h",le=re.node.pad,he=re.node.thickness,xe={justify:C.sankeyJustify,left:C.sankeyLeft,right:C.sankeyRight,center:C.sankeyCenter}[re.node.align],Ee=oe.width*(ee.x[1]-ee.x[0]),Se=oe.height*(ee.y[1]-ee.y[0]),ke=ce._nodes,Te=ce._links,Ae=ce.circular,be;Ae?be=w.sankeyCircular().circularLinkGap(0):be=C.sankey(),be.iterations(v.sankeyIterations).size(de?[Ee,Se]:[Se,Ee]).nodeWidth(he).nodePadding(le).nodeId(function(et){return et.pointNumber}).nodeAlign(xe).nodes(ke).links(Te);var Ie=be();be.nodePadding()=We||(Ke=We-Ye.y0,Ke>1e-6&&(Ye.y0+=Ke,Ye.y1+=Ke)),We=Ye.y1+le})}function rt(et){var Be=et.map(function(Re,Pe){return{x0:Re.x0,index:Pe}}).sort(function(Re,Pe){return Re.x0-Pe.x0}),Ye=[],Ke=-1,We,Fe=-1/0,Me;for(Ue=0;UeFe+he&&(Ke+=1,We=we.x0),Fe=we.x0,Ye[Ke]||(Ye[Ke]=[]),Ye[Ke].push(we),Me=We-we.x0,we.x0+=Me,we.x1+=Me}return Ye}if(re.node.x.length&&re.node.y.length){for(Ue=0;Ue0?"L"+re.targetX+" "+re.targetY:"")+"Z":ne="M "+(re.targetX-K)+" "+(re.targetY-ce)+" L"+(re.rightInnerExtent-K)+" "+(re.targetY-ce)+"A"+(re.rightLargeArcRadius+ce)+" "+(re.rightSmallArcRadius+ce)+" 0 0 0 "+(re.rightFullExtent-ce-K)+" "+(re.targetY+re.rightSmallArcRadius)+"L"+(re.rightFullExtent-ce-K)+" "+re.verticalRightInnerExtent+"A"+(re.rightLargeArcRadius+ce)+" "+(re.rightLargeArcRadius+ce)+" 0 0 0 "+(re.rightInnerExtent-K)+" "+(re.verticalFullExtent+ce)+"L"+re.leftInnerExtent+" "+(re.verticalFullExtent+ce)+"A"+(re.leftLargeArcRadius+ce)+" "+(re.leftLargeArcRadius+ce)+" 0 0 0 "+(re.leftFullExtent+ce)+" "+re.verticalLeftInnerExtent+"L"+(re.leftFullExtent+ce)+" "+(re.sourceY+re.leftSmallArcRadius)+"A"+(re.leftLargeArcRadius+ce)+" "+(re.leftSmallArcRadius+ce)+" 0 0 0 "+re.leftInnerExtent+" "+(re.sourceY-ce)+"L"+re.sourceX+" "+(re.sourceY-ce)+"L"+re.sourceX+" "+(re.sourceY+ce)+"L"+re.leftInnerExtent+" "+(re.sourceY+ce)+"A"+(re.leftLargeArcRadius-ce)+" "+(re.leftSmallArcRadius-ce)+" 0 0 1 "+(re.leftFullExtent-ce)+" "+(re.sourceY+re.leftSmallArcRadius)+"L"+(re.leftFullExtent-ce)+" "+re.verticalLeftInnerExtent+"A"+(re.leftLargeArcRadius-ce)+" "+(re.leftLargeArcRadius-ce)+" 0 0 1 "+re.leftInnerExtent+" "+(re.verticalFullExtent-ce)+"L"+(re.rightInnerExtent-K)+" "+(re.verticalFullExtent-ce)+"A"+(re.rightLargeArcRadius-ce)+" "+(re.rightLargeArcRadius-ce)+" 0 0 1 "+(re.rightFullExtent+ce-K)+" "+re.verticalRightInnerExtent+"L"+(re.rightFullExtent+ce-K)+" "+(re.targetY+re.rightSmallArcRadius)+"A"+(re.rightLargeArcRadius-ce)+" "+(re.rightSmallArcRadius-ce)+" 0 0 1 "+(re.rightInnerExtent-K)+" "+(re.targetY+ce)+"L"+(re.targetX-K)+" "+(re.targetY+ce)+(K>0?"L"+re.targetX+" "+re.targetY:"")+"Z",ne}function P(){var oe=.5;function K(ne){var ce=ne.linkArrowLength;if(ne.link.circular)return L(ne.link,ce);var re=Math.abs((ne.link.target.x0-ne.link.source.x1)/2);ce>re&&(ce=re);var ee=ne.link.source.x1,de=ne.link.target.x0-ce,le=S(ee,de),he=le(oe),xe=le(1-oe),Ee=ne.link.y0-ne.link.width/2,Se=ne.link.y0+ne.link.width/2,ke=ne.link.y1-ne.link.width/2,Te=ne.link.y1+ne.link.width/2,Ae="M"+ee+","+Ee,be="C"+he+","+Ee+" "+xe+","+ke+" "+de+","+ke,Ie="C"+xe+","+Te+" "+he+","+Se+" "+ee+","+Se,Ue=ce>0?"L"+(de+ce)+","+(ke+ne.link.width/2):"";return Ue+="L"+de+","+Te,Ae+be+Ue+Ie+"Z"}return K}function d(oe,K){var ne=m(K.color),ce=v.nodePadAcross,re=oe.nodePad/2;K.dx=K.x1-K.x0,K.dy=K.y1-K.y0;var ee=K.dx,de=Math.max(.5,K.dy),le="node_"+K.pointNumber;return K.group&&(le=s.randstr()),K.trace=oe.trace,K.curveNumber=oe.trace.index,{index:K.pointNumber,key:le,partOfGroup:K.partOfGroup||!1,group:K.group,traceId:oe.key,trace:oe.trace,node:K,nodePad:oe.nodePad,nodeLineColor:oe.nodeLineColor,nodeLineWidth:oe.nodeLineWidth,textFont:oe.textFont,size:oe.horizontal?oe.height:oe.width,visibleWidth:Math.ceil(ee),visibleHeight:de,zoneX:-ce,zoneY:-re,zoneWidth:ee+2*ce,zoneHeight:de+2*re,labelY:oe.horizontal?K.dy/2+1:K.dx/2+1,left:K.originalLayer===1,sizeAcross:oe.width,forceLayouts:oe.forceLayouts,horizontal:oe.horizontal,darkBackground:ne.getBrightness()<=128,tinyColorHue:a.tinyRGB(ne),tinyColorAlpha:ne.getAlpha(),valueFormat:oe.valueFormat,valueSuffix:oe.valueSuffix,sankey:oe.sankey,graph:oe.graph,arrangement:oe.arrangement,uniqueNodeLabelPathId:[oe.guid,oe.key,le].join("_"),interactionState:oe.interactionState,figure:oe}}function k(oe){oe.attr("transform",function(K){return o(K.node.x0.toFixed(3),K.node.y0.toFixed(3))})}function I(oe){oe.call(k)}function N(oe,K){oe.call(I),K.attr("d",P())}function B(oe){oe.attr("width",function(K){return K.node.x1-K.node.x0}).attr("height",function(K){return K.visibleHeight})}function G(oe){return oe.link.width>1||oe.linkLineWidth>0}function U(oe){var K=o(oe.translateX,oe.translateY);return K+(oe.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function H(oe,K,ne){oe.on(".basic",null).on("mouseover.basic",function(ce){!ce.interactionState.dragInProgress&&!ce.partOfGroup&&(ne.hover(this,ce,K),ce.interactionState.hovered=[this,ce])}).on("mousemove.basic",function(ce){!ce.interactionState.dragInProgress&&!ce.partOfGroup&&(ne.follow(this,ce),ce.interactionState.hovered=[this,ce])}).on("mouseout.basic",function(ce){!ce.interactionState.dragInProgress&&!ce.partOfGroup&&(ne.unhover(this,ce,K),ce.interactionState.hovered=!1)}).on("click.basic",function(ce){ce.interactionState.hovered&&(ne.unhover(this,ce,K),ce.interactionState.hovered=!1),!ce.interactionState.dragInProgress&&!ce.partOfGroup&&ne.select(this,ce,K)})}function W(oe,K,ne,ce){var re=i.behavior.drag().origin(function(ee){return{x:ee.node.x0+ee.visibleWidth/2,y:ee.node.y0+ee.visibleHeight/2}}).on("dragstart",function(ee){if(ee.arrangement!=="fixed"&&(s.ensureSingle(ce._fullLayout._infolayer,"g","dragcover",function(le){ce._fullLayout._dragCover=le}),s.raiseToTop(this),ee.interactionState.dragInProgress=ee.node,ie(ee.node),ee.interactionState.hovered&&(ne.nodeEvents.unhover.apply(0,ee.interactionState.hovered),ee.interactionState.hovered=!1),ee.arrangement==="snap")){var de=ee.traceId+"|"+ee.key;ee.forceLayouts[de]?ee.forceLayouts[de].alpha(1):V(oe,de,ee),$(oe,K,ee,de,ce)}}).on("drag",function(ee){if(ee.arrangement!=="fixed"){var de=i.event.x,le=i.event.y;ee.arrangement==="snap"?(ee.node.x0=de-ee.visibleWidth/2,ee.node.x1=de+ee.visibleWidth/2,ee.node.y0=le-ee.visibleHeight/2,ee.node.y1=le+ee.visibleHeight/2):(ee.arrangement==="freeform"&&(ee.node.x0=de-ee.visibleWidth/2,ee.node.x1=de+ee.visibleWidth/2),le=Math.max(0,Math.min(ee.size-ee.visibleHeight/2,le)),ee.node.y0=le-ee.visibleHeight/2,ee.node.y1=le+ee.visibleHeight/2),ie(ee.node),ee.arrangement!=="snap"&&(ee.sankey.update(ee.graph),N(oe.filter(fe(ee)),K))}}).on("dragend",function(ee){if(ee.arrangement!=="fixed"){ee.interactionState.dragInProgress=!1;for(var de=0;de0)window.requestAnimationFrame(ee);else{var he=ne.node.originalX;ne.node.x0=he-ne.visibleWidth/2,ne.node.x1=he+ne.visibleWidth/2,q(ne,re)}})}function Z(oe,K,ne,ce){return function(){for(var ee=0,de=0;de0&&ce.forceLayouts[K].alpha(0)}}function q(oe,K){for(var ne=[],ce=[],re=0;reU&&k[W].gap;)W--;for($=k[W].s,H=k.length-1;H>W;H--)k[H].s=$;for(;UB[p]&&p=0;f--){var u=w[f];if(u.type==="scatter"&&u.xaxis===o.xaxis&&u.yaxis===o.yaxis){u.opacity=void 0;break}}}}}},18800:function(D,O,t){var l=t(3400),S=t(24040),i=t(52904),C=t(88200),w=t(43028),v=t(43980),m=t(31147),a=t(43912),n=t(74428),s=t(66828),o=t(11731),h=t(124),f=t(70840),u=t(3400).coercePattern;D.exports=function(p,E,g,c){function x(k,I){return l.coerce(p,E,i,k,I)}var A=v(p,E,c,x);if(A||(E.visible=!1),!!E.visible){m(p,E,c,x),x("xhoverformat"),x("yhoverformat");var M=a(p,E,c,x);c.scattermode==="group"&&E.orientation===void 0&&x("orientation","v");var R=!M&&A=Math.min(ie,fe)&&p<=Math.max(ie,fe)?0:1/0}var Q=Math.max(3,ae.mrc||0),J=1-1/Q,oe=Math.abs(u.c2p(ae.x)-p);return oe=Math.min(ie,fe)&&E<=Math.max(ie,fe)?0:1/0}var Q=Math.max(3,ae.mrc||0),J=1-1/Q,oe=Math.abs(b.c2p(ae.y)-E);return oene!=Ee>=ne&&(le=ee[re-1][0],he=ee[re][0],Ee-xe&&(de=le+(he-le)*(ne-xe)/(Ee-xe),Q=Math.min(Q,de),J=Math.max(J,de)));return Q=Math.max(Q,0),J=Math.min(J,u._length),{x0:Q,x1:J,y0:ne,y1:ne}}if(c.indexOf("fills")!==-1&&f._fillElement){var $=W(f._fillElement)&&!W(f._fillExclusionElement);if($){var Z=V(f._polygons);Z===null&&(Z={x0:g[0],x1:g[0],y0:g[1],y1:g[1]});var q=w.defaultLine;return w.opacity(f.fillcolor)?q=f.fillcolor:w.opacity((f.line||{}).color)&&(q=f.line.color),l.extendFlat(a,{distance:a.maxHoverDistance,x0:Z.x0,x1:Z.x1,y0:Z.y0,y1:Z.y1,color:q,hovertemplate:!1}),delete a.index,f.text&&!l.isArrayOrTypedArray(f.text)?a.text=String(f.text):a.text=f.name,[a]}}}},65875:function(D,O,t){var l=t(43028);D.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:t(52904),layoutAttributes:t(55308),supplyDefaults:t(18800),crossTraceDefaults:t(35036),supplyLayoutDefaults:t(59748),calc:t(16356).calc,crossTraceCalc:t(96664),arraysToCalcdata:t(20148),plot:t(96504),colorbar:t(5528),formatLabels:t(76688),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(98723),selectPoints:t(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:t(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(D){D.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(D,O,t){var l=t(3400),S=t(55308);D.exports=function(i,C){function w(m,a){return l.coerce(i,C,S,m,a)}var v=C.barmode==="group";C.scattermode==="group"&&w("scattergap",v?C.bargap:.2)}},66828:function(D,O,t){var l=t(3400).isArrayOrTypedArray,S=t(94288).hasColorscale,i=t(27260);D.exports=function(w,v,m,a,n,s){s||(s={});var o=(w.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),n("line.color",m),S(w,"line"))i(w,v,a,n,{prefix:"line.",cLetter:"c"});else{var h=(l(o)?!1:o)||m;n("line.color",h)}n("line.width"),s.noDash||n("line.dash"),s.backoff&&n("line.backoff")}},52340:function(D,O,t){var l=t(43616),S=t(39032),i=S.BADNUM,C=S.LOG_CLIP,w=C+.5,v=C-.5,m=t(3400),a=m.segmentsIntersect,n=m.constrain,s=t(88200);D.exports=function(h,f){var u=f.trace||{},b=f.xaxis,p=f.yaxis,E=b.type==="log",g=p.type==="log",c=b._length,x=p._length,A=f.backoff,M=u.marker,R=f.connectGaps,T=f.baseTolerance,L=f.shape,P=L==="linear",d=u.fill&&u.fill!=="none",k=[],I=s.minTolerance,N=h.length,B=new Array(N),G=0,U,H,W,V,$,Z,q,ae,ie,fe,Q,J,oe,K,ne,ce;function re(yt){var ut=h[yt];if(!ut)return!1;var It=f.linearized?b.l2p(ut.x):b.c2p(ut.x),Vt=f.linearized?p.l2p(ut.y):p.c2p(ut.y);if(It===i){if(E&&(It=b.c2p(ut.x,!0)),It===i)return!1;g&&Vt===i&&(It*=Math.abs(b._m*x*(b._m>0?w:v)/(p._m*c*(p._m>0?w:v)))),It*=1e3}if(Vt===i){if(g&&(Vt=p.c2p(ut.y,!0)),Vt===i)return!1;Vt*=1e3}return[It,Vt]}function ee(yt,ut,It,Vt){var xt=It-yt,Lt=Vt-ut,Xt=.5-yt,dr=.5-ut,Tt=xt*xt+Lt*Lt,Kt=xt*Xt+Lt*dr;if(Kt>0&&Kt1||Math.abs(Xt.y-It[0][1])>1)&&(Xt=[Xt.x,Xt.y],Vt&&xe(Xt,yt)ke||yt[1]Ae)return[n(yt[0],Se,ke),n(yt[1],Te,Ae)]}function nt(yt,ut){if(yt[0]===ut[0]&&(yt[0]===Se||yt[0]===ke)||yt[1]===ut[1]&&(yt[1]===Te||yt[1]===Ae))return!0}function mt(yt,ut){var It=[],Vt=at(yt),xt=at(ut);return Vt&&xt&&nt(Vt,xt)||(Vt&&It.push(Vt),xt&&It.push(xt)),It}function rt(yt,ut,It){return function(Vt,xt){var Lt=at(Vt),Xt=at(xt),dr=[];if(Lt&&Xt&&nt(Lt,Xt))return dr;Lt&&dr.push(Lt),Xt&&dr.push(Xt);var Tt=2*m.constrain((Vt[yt]+xt[yt])/2,ut,It)-((Lt||Vt)[yt]+(Xt||xt)[yt]);if(Tt){var Kt;Lt&&Xt?Kt=Tt>0==Lt[yt]>Xt[yt]?Lt:Xt:Kt=Lt||Xt,Kt[yt]+=Tt}return dr}}var lt;L==="linear"||L==="spline"?lt=vt:L==="hv"||L==="vh"?lt=mt:L==="hvh"?lt=rt(0,Se,ke):L==="vhv"&&(lt=rt(1,Te,Ae));function dt(yt,ut){var It=ut[0]-yt[0],Vt=(ut[1]-yt[1])/It,xt=(yt[1]*ut[0]-ut[1]*yt[0])/It;return xt>0?[Vt>0?Se:ke,Ae]:[Vt>0?ke:Se,Te]}function wt(yt){var ut=yt[0],It=yt[1],Vt=ut===B[G-1][0],xt=It===B[G-1][1];if(!(Vt&&xt))if(G>1){var Lt=ut===B[G-2][0],Xt=It===B[G-2][1];Vt&&(ut===Se||ut===ke)&&Lt?Xt?G--:B[G-1]=yt:xt&&(It===Te||It===Ae)&&Xt?Lt?G--:B[G-1]=yt:B[G++]=yt}else B[G++]=yt}function et(yt){B[G-1][0]!==yt[0]&&B[G-1][1]!==yt[1]&&wt([Ne,ze]),wt(yt),$e=null,Ne=ze=0}var Be=m.isArrayOrTypedArray(M);function Ye(yt){if(yt&&A&&(yt.i=U,yt.d=h,yt.trace=u,yt.marker=Be?M[yt.i]:M,yt.backoff=A),de=yt[0]/c,le=yt[1]/x,Ie=yt[0]ke?ke:0,Ue=yt[1]Ae?Ae:0,Ie||Ue){if(!G)B[G++]=[Ie||yt[0],Ue||yt[1]];else if($e){var ut=lt($e,yt);ut.length>1&&(et(ut[0]),B[G++]=ut[1])}else st=lt(B[G-1],yt)[0],B[G++]=st;var It=B[G-1];Ie&&Ue&&(It[0]!==Ie||It[1]!==Ue)?($e&&(Ne!==Ie&&ze!==Ue?wt(Ne&&ze?dt($e,yt):[Ne||Ie,ze||Ue]):Ne&&ze&&wt([Ne,ze])),wt([Ie,Ue])):Ne-Ie&&ze-Ue&&wt([Ie||Ne,Ue||ze]),$e=yt,Ne=Ie,ze=Ue}else $e&&et(lt($e,yt)[0]),B[G++]=yt}for(U=0;Uhe(Z,Ke))break;W=Z,oe=ie[0]*ae[0]+ie[1]*ae[1],oe>Q?(Q=oe,V=Z,q=!1):oe=h.length||!Z)break;Ye(Z),H=Z}}$e&&wt([Ne||$e[0],ze||$e[1]]),k.push(B.slice(0,G))}var We=L.slice(L.length-1);if(A&&We!=="h"&&We!=="v"){for(var Fe=!1,Me=-1,we=[],Re=0;Re=0?a=f:(a=f=h,h++),a0?Math.max(s,m):0}}},5528:function(D){D.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(D,O,t){var l=t(76308),S=t(94288).hasColorscale,i=t(27260),C=t(43028);D.exports=function(v,m,a,n,s,o){var h=C.isBubble(v),f=(v.line||{}).color,u;if(o=o||{},f&&(a=f),s("marker.symbol"),s("marker.opacity",h?.7:1),s("marker.size"),o.noAngle||(s("marker.angle"),o.noAngleRef||s("marker.angleref"),o.noStandOff||s("marker.standoff")),s("marker.color",a),S(v,"marker")&&i(v,m,n,s,{prefix:"marker.",cLetter:"c"}),o.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),o.noLine||(f&&!Array.isArray(f)&&m.marker.color!==f?u=f:h?u=l.background:u=l.defaultLine,s("marker.line.color",u),S(v,"marker.line")&&i(v,m,n,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",h?1:0)),h&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),o.gradient){var b=s("marker.gradient.type");b!=="none"&&s("marker.gradient.color")}}},31147:function(D,O,t){var l=t(3400).dateTick0,S=t(39032),i=S.ONEWEEK;function C(w,v){return w%i===0?l(v,1):l(v,0)}D.exports=function(v,m,a,n,s){if(s||(s={x:!0,y:!0}),s.x){var o=n("xperiod");o&&(n("xperiod0",C(o,m.xcalendar)),n("xperiodalignment"))}if(s.y){var h=n("yperiod");h&&(n("yperiod0",C(h,m.ycalendar)),n("yperiodalignment"))}}},96504:function(D,O,t){var l=t(33428),S=t(24040),i=t(3400),C=i.ensureSingle,w=i.identity,v=t(43616),m=t(43028),a=t(52340),n=t(14328),s=t(92065).tester;D.exports=function(b,p,E,g,c,x){var A,M,R=!c,T=!!c&&c.duration>0,L=n(b,p,E);if(A=g.selectAll("g.trace").data(L,function(d){return d[0].trace.uid}),A.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),A.order(),o(b,A,p),T){x&&(M=x());var P=l.transition().duration(c.duration).ease(c.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()});P.each(function(){g.selectAll("g.trace").each(function(d,k){h(b,k,p,d,L,this,c)})})}else A.each(function(d,k){h(b,k,p,d,L,this,c)});R&&A.exit().remove(),g.selectAll("path:not([d])").remove()};function o(u,b,p){b.each(function(E){var g=C(l.select(this),"g","fills");v.setClipUrl(g,p.layerClipId,u);var c=E[0].trace,x=[];c._ownfill&&x.push("_ownFill"),c._nexttrace&&x.push("_nextFill");var A=g.selectAll("g").data(x,w);A.enter().append("g"),A.exit().each(function(M){c[M]=null}).remove(),A.order().each(function(M){c[M]=C(l.select(this),"path","js-fill")})})}function h(u,b,p,E,g,c,x){var A=u._context.staticPlot,M;f(u,b,p,E,g);var R=!!x&&x.duration>0;function T(wt){return R?wt.transition():wt}var L=p.xaxis,P=p.yaxis,d=E[0].trace,k=d.line,I=l.select(c),N=C(I,"g","errorbars"),B=C(I,"g","lines"),G=C(I,"g","points"),U=C(I,"g","text");if(S.getComponentMethod("errorbars","plot")(u,N,p,x),d.visible!==!0)return;T(I).style("opacity",d.opacity);var H,W,V=d.fill.charAt(d.fill.length-1);V!=="x"&&V!=="y"&&(V="");var $,Z;V==="y"?($=1,Z=P.c2p(0,!0)):V==="x"&&($=0,Z=L.c2p(0,!0)),E[0][p.isRangePlot?"nodeRangePlot3":"node3"]=I;var q="",ae=[],ie=d._prevtrace,fe=null,Q=null;ie&&(q=ie._prevRevpath||"",W=ie._nextFill,ae=ie._ownPolygons,fe=ie._fillsegments,Q=ie._fillElement);var J,oe,K="",ne="",ce,re,ee,de,le,he,xe=[];d._polygons=[];var Ee=[],Se=[],ke=i.noop;if(H=d._ownFill,m.hasLines(d)||d.fill!=="none"){W&&W.datum(E),["hv","vh","hvh","vhv"].indexOf(k.shape)!==-1?(ce=v.steps(k.shape),re=v.steps(k.shape.split("").reverse().join(""))):k.shape==="spline"?ce=re=function(wt){var et=wt[wt.length-1];return wt.length>1&&wt[0][0]===et[0]&&wt[0][1]===et[1]?v.smoothclosed(wt.slice(1),k.smoothing):v.smoothopen(wt,k.smoothing)}:ce=re=function(wt){return"M"+wt.join("L")},ee=function(wt){return re(wt.reverse())},Se=a(E,{xaxis:L,yaxis:P,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(k.width||1,3)/4,shape:k.shape,backoff:k.backoff,simplify:k.simplify,fill:d.fill}),Ee=new Array(Se.length);var Te=0;for(M=0;M=A[0]&&I.x<=A[1]&&I.y>=M[0]&&I.y<=M[1]}),P=Math.ceil(L.length/T),d=0;g.forEach(function(I,N){var B=I[0].trace;m.hasMarkers(B)&&B.marker.maxdisplayed>0&&N0){var p=a.c2l(u);a._lowerLogErrorBound||(a._lowerLogErrorBound=p),a._lowerErrorBound=Math.min(a._lowerLogErrorBound,p)}}else s[o]=[-h[0]*m,h[1]*m]}return s}function i(w){for(var v=0;v-1?-1:I.indexOf("right")>-1?1:0}function x(I){return I==null?0:I.indexOf("top")>-1?-1:I.indexOf("bottom")>-1?1:0}function A(I){var N=0,B=0,G=[N,B];if(Array.isArray(I))for(var U=0;U=0){var Z=E(V.position,V.delaunayColor,V.delaunayAxis);Z.opacity=I.opacity,this.delaunayMesh?this.delaunayMesh.update(Z):(Z.gl=N,this.delaunayMesh=C(Z),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},p.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function k(I,N){var B=new b(I,N.uid);return B.update(N),B}D.exports=k},83484:function(D,O,t){var l=t(24040),S=t(3400),i=t(43028),C=t(74428),w=t(66828),v=t(124),m=t(91592);D.exports=function(s,o,h,f){function u(M,R){return S.coerce(s,o,m,M,R)}var b=a(s,o,u,f);if(!b){o.visible=!1;return}u("text"),u("hovertext"),u("hovertemplate"),u("xhoverformat"),u("yhoverformat"),u("zhoverformat"),u("mode"),i.hasMarkers(o)&&C(s,o,h,f,u,{noSelect:!0,noAngle:!0}),i.hasLines(o)&&(u("connectgaps"),w(s,o,h,f,u)),i.hasText(o)&&(u("texttemplate"),v(s,o,f,u,{noSelect:!0}));var p=(o.line||{}).color,E=(o.marker||{}).color;u("surfaceaxis")>=0&&u("surfacecolor",p||E);for(var g=["x","y","z"],c=0;c<3;++c){var x="projection."+g[c];u(x+".show")&&(u(x+".opacity"),u(x+".scale"))}var A=l.getComponentMethod("errorbars","supplyDefaults");A(s,o,p||E||h,{axis:"z"}),A(s,o,p||E||h,{axis:"y",inherit:"z"}),A(s,o,p||E||h,{axis:"x",inherit:"z"})};function a(n,s,o,h){var f=0,u=o("x"),b=o("y"),p=o("z"),E=l.getComponentMethod("calendars","handleTraceDefaults");return E(n,s,["x","y","z"],h),u&&b&&p&&(f=Math.min(u.length,b.length,p.length),s._length=s._xlength=s._ylength=s._zlength=f),f}},3296:function(D,O,t){D.exports={plot:t(41064),attributes:t(91592),markerSymbols:t(87792),supplyDefaults:t(83484),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:t(41484),moduleType:"trace",name:"scatter3d",basePlotModule:t(12536),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},90372:function(D,O,t){var l=t(98304),S=t(52904),i=t(45464),C=t(21776).Ks,w=t(21776).Gw,v=t(49084),m=t(92880).extendFlat,a=S.marker,n=S.line,s=a.line;D.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:m({},S.mode,{dflt:"markers"}),text:m({},S.text,{}),texttemplate:w({editType:"plot"},{keys:["a","b","text"]}),hovertext:m({},S.hovertext,{}),line:{color:n.color,width:n.width,dash:n.dash,backoff:n.backoff,shape:m({},n.shape,{values:["linear","spline"]}),smoothing:n.smoothing,editType:"calc"},connectgaps:S.connectgaps,fill:m({},S.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:l(),marker:m({symbol:a.symbol,opacity:a.opacity,maxdisplayed:a.maxdisplayed,angle:a.angle,angleref:a.angleref,standoff:a.standoff,size:a.size,sizeref:a.sizeref,sizemin:a.sizemin,sizemode:a.sizemode,line:m({width:s.width,editType:"calc"},v("marker.line")),gradient:a.gradient,editType:"calc"},v("marker")),textfont:S.textfont,textposition:S.textposition,selected:S.selected,unselected:S.unselected,hoverinfo:m({},i.hoverinfo,{flags:["a","b","text","name"]}),hoveron:S.hoveron,hovertemplate:C()}},48228:function(D,O,t){var l=t(38248),S=t(90136),i=t(20148),C=t(4500),w=t(16356).calcMarkerSize,v=t(50948);D.exports=function(a,n){var s=n._carpetTrace=v(a,n);if(!(!s||!s.visible||s.visible==="legendonly")){var o;n.xaxis=s.xaxis,n.yaxis=s.yaxis;var h=n._length,f=new Array(h),u,b,p=!1;for(o=0;o0?T=M.labelprefix.replace(/ = $/,""):T=M._hovertitle,g.push(T+": "+R.toFixed(3)+M.labelsuffix)}if(!b.hovertemplate){var x=u.hi||b.hoverinfo,A=x.split("+");A.indexOf("all")!==-1&&(A=["a","b","text"]),A.indexOf("a")!==-1&&c(p.aaxis,u.a),A.indexOf("b")!==-1&&c(p.baxis,u.b),g.push("y: "+n.yLabel),A.indexOf("text")!==-1&&S(u,b,g),n.extraText=g.join("
")}return a}},4184:function(D,O,t){D.exports={attributes:t(90372),supplyDefaults:t(6176),colorbar:t(5528),formatLabels:t(52364),calc:t(48228),plot:t(20036),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(58960),selectPoints:t(91560),eventData:t(89307),moduleType:"trace",name:"scattercarpet",basePlotModule:t(57952),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},20036:function(D,O,t){var l=t(96504),S=t(54460),i=t(43616);D.exports=function(w,v,m,a){var n,s,o,h=m[0][0].carpet,f=S.getFromId(w,h.xaxis||"x"),u=S.getFromId(w,h.yaxis||"y"),b={xaxis:f,yaxis:u,plot:v.plot};for(n=0;n")}},36952:function(D,O,t){D.exports={attributes:t(6096),supplyDefaults:t(86188),colorbar:t(5528),formatLabels:t(56696),calc:t(25212),calcGeoJSON:t(48691).calcGeoJSON,plot:t(48691).plot,style:t(25064),styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(64292),eventData:t(58544),selectPoints:t(8796),moduleType:"trace",name:"scattergeo",basePlotModule:t(10816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},48691:function(D,O,t){var l=t(33428),S=t(3400),i=t(59972).getTopojsonFeatures,C=t(44808),w=t(27144),v=t(19280).findExtremes,m=t(39032).BADNUM,a=t(16356).calcMarkerSize,n=t(43028),s=t(25064);function o(f,u,b){var p=u.layers.frontplot.select(".scatterlayer"),E=S.makeTraceGroups(p,b,"trace scattergeo");function g(c,x){c.lonlat[0]===m&&l.select(x).remove()}E.selectAll("*").remove(),E.each(function(c){var x=l.select(this),A=c[0].trace;if(n.hasLines(A)||A.fill!=="none"){var M=C.calcTraceToLineCoords(c),R=A.fill!=="none"?C.makePolygon(M):C.makeLine(M);x.selectAll("path.js-line").data([{geojson:R,trace:A}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}n.hasMarkers(A)&&x.selectAll("path.point").data(S.identity).enter().append("path").classed("point",!0).each(function(T){g(T,this)}),n.hasText(A)&&x.selectAll("g").data(S.identity).enter().append("g").append("text").each(function(T){g(T,this)}),s(f,c)})}function h(f,u){var b=f[0].trace,p=u[b.geo],E=p._subplot,g=b._length,c,x;if(S.isArrayOrTypedArray(b.locations)){var A=b.locationmode,M=A==="geojson-id"?w.extractTraceFeature(f):i(b,E.topojson);for(c=0;c=u,P=T*2,d={},k,I=A.makeCalcdata(c,"x"),N=M.makeCalcdata(c,"y"),B=w(c,A,"x",I),G=w(c,M,"y",N),U=B.vals,H=G.vals;c._x=U,c._y=H,c.xperiodalignment&&(c._origX=I,c._xStarts=B.starts,c._xEnds=B.ends),c.yperiodalignment&&(c._origY=N,c._yStarts=G.starts,c._yEnds=G.ends);var W=new Array(P),V=new Array(T);for(k=0;k1&&S.extendFlat(R.line,o.linePositions(E,c,x)),R.errorX||R.errorY){var T=o.errorBarPositions(E,c,x,A,M);R.errorX&&S.extendFlat(R.errorX,T.x),R.errorY&&S.extendFlat(R.errorY,T.y)}return R.text&&(S.extendFlat(R.text,{positions:x},o.textPosition(E,c,R.text,R.marker)),S.extendFlat(R.textSel,{positions:x},o.textPosition(E,c,R.text,R.markerSel)),S.extendFlat(R.textUnsel,{positions:x},o.textPosition(E,c,R.text,R.markerUnsel))),R}},67072:function(D){var O=20;D.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:O,SYMBOL_STROKE:O/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},84236:function(D,O,t){var l=t(38248),S=t(20472),i=t(72160),C=t(24040),w=t(3400),v=w.isArrayOrTypedArray,m=t(43616),a=t(79811),n=t(33040).formatColor,s=t(43028),o=t(7152),h=t(80088),f=t(67072),u=t(13448).DESELECTDIM,b={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},p=t(10624).appendArrayPointValue;function E(G,U){var H,W={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},V=G._context.plotGlPixelRatio;if(U.visible!==!0)return W;if(s.hasText(U)&&(W.text=g(G,U),W.textSel=A(G,U,U.selected),W.textUnsel=A(G,U,U.unselected)),s.hasMarkers(U)&&(W.marker=c(G,U),W.markerSel=x(G,U,U.selected),W.markerUnsel=x(G,U,U.unselected),!U.unselected&&v(U.marker.opacity))){var $=U.marker.opacity;for(W.markerUnsel.opacity=new Array($.length),H=0;H<$.length;H++)W.markerUnsel.opacity[H]=u*$[H]}if(s.hasLines(U)){W.line={overlay:!0,thickness:U.line.width*V,color:U.line.color,opacity:U.opacity};var Z=(f.DASHES[U.line.dash]||[1]).slice();for(H=0;Hf.TOO_MANY_POINTS||s.hasMarkers(U)?"rect":"round";if(ie&&U.connectgaps){var Q=$[0],J=$[1];for(Z=0;Z<$.length;Z+=2)isNaN($[Z])||isNaN($[Z+1])?($[Z]=Q,$[Z+1]=J):(Q=$[Z],J=$[Z+1])}return{join:fe,positions:$}}function N(G,U,H,W,V){var $=C.getComponentMethod("errorbars","makeComputeError"),Z=a.getFromId(G,U.xaxis,"x"),q=a.getFromId(G,U.yaxis,"y"),ae=H.length/2,ie={};function fe(Q,J){var oe=J._id.charAt(0),K=U["error_"+oe];if(K&&K.visible&&(J.type==="linear"||J.type==="log")){for(var ne=$(K),ce={x:0,y:1}[oe],re={x:[0,1,2,3],y:[2,3,0,1]}[oe],ee=new Float64Array(4*ae),de=1/0,le=-1/0,he=0,xe=0;he1?ae[Z]:ae[0]:ae,oe=v(ie)?ie.length>1?ie[Z]:ie[0]:ie,K=b[J],ne=b[oe],ce=fe?fe/.8+1:0,re=-ne*ce-ne*.5;$.offset[Z]=[K*ce/Q,re/Q]}}return $}D.exports={style:E,markerStyle:c,markerSelection:x,linePositions:I,errorBarPositions:N,textPosition:B}},80220:function(D,O,t){var l=t(3400),S=t(24040),i=t(80088),C=t(2876),w=t(88200),v=t(43028),m=t(43980),a=t(31147),n=t(74428),s=t(66828),o=t(70840),h=t(124);D.exports=function(u,b,p,E){function g(P,d){return l.coerce(u,b,C,P,d)}var c=u.marker?i.isOpenSymbol(u.marker.symbol):!1,x=v.isBubble(u),A=m(u,b,E,g);if(!A){b.visible=!1;return}a(u,b,E,g),g("xhoverformat"),g("yhoverformat");var M=A100},O.isDotSymbol=function(S){return typeof S=="string"?l.DOT_RE.test(S):S>200}},41272:function(D,O,t){var l=t(24040),S=t(3400),i=t(44928);function C(v,m,a,n){var s=v.cd,o=s[0].t,h=s[0].trace,f=v.xa,u=v.ya,b=o.x,p=o.y,E=f.c2p(m),g=u.c2p(a),c=v.distance,x;if(o.tree){var A=f.p2c(E-c),M=f.p2c(E+c),R=u.p2c(g-c),T=u.p2c(g+c);n==="x"?x=o.tree.range(Math.min(A,M),Math.min(u._rl[0],u._rl[1]),Math.max(A,M),Math.max(u._rl[0],u._rl[1])):x=o.tree.range(Math.min(A,M),Math.min(R,T),Math.max(A,M),Math.max(R,T))}else x=o.ids;var L,P,d,k,I,N,B,G,U,H=c;if(n==="x"){var W=!!h.xperiodalignment,V=!!h.yperiodalignment;for(I=0;I=Math.min($,Z)&&E<=Math.max($,Z)?0:1/0}if(N=Math.min(q,ae)&&g<=Math.max(q,ae)?0:1/0}U=Math.sqrt(N*N+B*B),P=x[I]}}}else for(I=x.length-1;I>-1;I--)L=x[I],d=b[L],k=p[L],N=f.c2p(d)-E,B=u.c2p(k)-g,G=Math.sqrt(N*N+B*B),Gc.glText.length){var d=L-c.glText.length;for(M=0;Mde&&(isNaN(ee[le])||isNaN(ee[le+1]));)le-=2;re.positions=ee.slice(de,le+2)}return re}),c.line2d.update(c.lineOptions)),c.error2d){var N=(c.errorXOptions||[]).concat(c.errorYOptions||[]);c.error2d.update(N)}c.scatter2d&&c.scatter2d.update(c.markerOptions),c.fillOrder=w.repeat(null,L),c.fill2d&&(c.fillOptions=c.fillOptions.map(function(re,ee){var de=E[ee];if(!(!re||!de||!de[0]||!de[0].trace)){var le=de[0],he=le.trace,xe=le.t,Ee=c.lineOptions[ee],Se,ke,Te=[];he._ownfill&&Te.push(ee),he._nexttrace&&Te.push(ee+1),Te.length&&(c.fillOrder[ee]=Te);var Ae=[],be=Ee&&Ee.positions||xe.positions,Ie,Ue;if(he.fill==="tozeroy"){for(Ie=0;IeIe&&isNaN(be[Ue+1]);)Ue-=2;be[Ie+1]!==0&&(Ae=[be[Ie],0]),Ae=Ae.concat(be.slice(Ie,Ue+2)),be[Ue+1]!==0&&(Ae=Ae.concat([be[Ue],0]))}else if(he.fill==="tozerox"){for(Ie=0;IeIe&&isNaN(be[Ue]);)Ue-=2;be[Ie]!==0&&(Ae=[0,be[Ie+1]]),Ae=Ae.concat(be.slice(Ie,Ue+2)),be[Ue]!==0&&(Ae=Ae.concat([0,be[Ue+1]]))}else if(he.fill==="toself"||he.fill==="tonext"){for(Ae=[],Se=0,re.splitNull=!0,ke=0;ke-1;for(M=0;M=0?Math.floor((s+180)/360):Math.ceil((s-180)/360),M=A*360,R=s-M;function T(U){var H=U.lonlat;if(H[0]===w||c&&E.indexOf(U.i+1)===-1)return 1/0;var W=S.modHalf(H[0],360),V=H[1],$=p.project([W,V]),Z=$.x-u.c2p([R,V]),q=$.y-b.c2p([W,o]),ae=Math.max(3,U.mrc||0);return Math.max(Math.sqrt(Z*Z+q*q)-ae,1-3/ae)}if(l.getClosest(h,T,n),n.index!==!1){var L=h[n.index],P=L.lonlat,d=[S.modHalf(P[0],360)+M,P[1]],k=u.c2p(d),I=b.c2p(d),N=L.mrc||1;n.x0=k-N,n.x1=k+N,n.y0=I-N,n.y1=I+N;var B={};B[f.subplot]={_subplot:p};var G=f._module.formatLabels(L,f,B);return n.lonLabel=G.lonLabel,n.latLabel=G.latLabel,n.color=i(f,L),n.extraText=a(f,L,h[0].t.labels),n.hovertemplate=f.hovertemplate,[n]}}function a(n,s,o){if(n.hovertemplate)return;var h=s.hi||n.hoverinfo,f=h.split("+"),u=f.indexOf("all")!==-1,b=f.indexOf("lon")!==-1,p=f.indexOf("lat")!==-1,E=s.lonlat,g=[];function c(x){return x+"°"}return u||b&&p?g.push("("+c(E[1])+", "+c(E[0])+")"):b?g.push(o.lon+c(E[0])):p&&g.push(o.lat+c(E[1])),(u||f.indexOf("text")!==-1)&&C(s,n,g),g.join("
")}D.exports={hoverPoints:m,getExtraText:a}},11572:function(D,O,t){D.exports={attributes:t(31512),supplyDefaults:t(15752),colorbar:t(5528),formatLabels:t(11960),calc:t(25212),plot:t(9660),hoverPoints:t(63312).hoverPoints,eventData:t(37920),selectPoints:t(404),styleOnSelect:function(l,S){if(S){var i=S[0].trace;i._glTrace.update(S)}},moduleType:"trace",name:"scattermapbox",basePlotModule:t(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(D,O,t){var l=t(3400),S=t(59392),i=t(47552).traceLayerPrefix,C={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function w(m,a,n,s){this.type="scattermapbox",this.subplot=m,this.uid=a,this.clusterEnabled=n,this.isHidden=s,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:i+a+"-fill",line:i+a+"-line",circle:i+a+"-circle",symbol:i+a+"-symbol",cluster:i+a+"-cluster",clusterCount:i+a+"-cluster-count"},this.below=null}var v=w.prototype;v.addSource=function(m,a,n){var s={type:"geojson",data:a.geojson};n&&n.enabled&&l.extendFlat(s,{cluster:!0,clusterMaxZoom:n.maxzoom});var o=this.subplot.map.getSource(this.sourceIds[m]);o?o.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[m],s)},v.setSourceData=function(m,a){this.subplot.map.getSource(this.sourceIds[m]).setData(a.geojson)},v.addLayer=function(m,a,n){var s={type:a.type,id:this.layerIds[m],source:this.sourceIds[m],layout:a.layout,paint:a.paint};a.filter&&(s.filter=a.filter);for(var o=this.layerIds[m],h,f=this.subplot.getMapLayers(),u=0;u=0;k--){var I=d[k];o.removeLayer(p.layerIds[I])}P||o.removeSource(p.sourceIds.circle)}function c(P){for(var d=C.nonCluster,k=0;k=0;k--){var I=d[k];o.removeLayer(p.layerIds[I]),P||o.removeSource(p.sourceIds[I])}}function A(P){b?g(P):x(P)}function M(P){u?E(P):c(P)}function R(){for(var P=u?C.cluster:C.nonCluster,d=0;d=0;s--){var o=n[s];a.removeLayer(this.layerIds[o]),a.removeSource(this.sourceIds[o])}},D.exports=function(a,n){var s=n[0].trace,o=s.cluster&&s.cluster.enabled,h=s.visible!==!0,f=new w(a,s.uid,o,h),u=S(a.gd,n),b=f.below=a.belowLookup["trace-"+s.uid],p,E,g;if(o)for(f.addSource("circle",u.circle,s.cluster),p=0;p")}}D.exports={hoverPoints:S,makeHoverPointText:i}},76924:function(D,O,t){D.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:t(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:t(8319),supplyDefaults:t(85968).supplyDefaults,colorbar:t(5528),formatLabels:t(22852),calc:t(58320),plot:t(43456),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(8504).hoverPoints,selectPoints:t(91560),meta:{}}},43456:function(D,O,t){var l=t(96504),S=t(39032).BADNUM;D.exports=function(C,w,v){for(var m=w.layers.frontplot.select("g.scatterlayer"),a=w.xaxis,n=w.yaxis,s={xaxis:a,yaxis:n,plot:w.framework,layerClipId:w._hasClipOnAxisFalse?w.clipIds.forTraces:null},o=w.radialAxis,h=w.angularAxis,f=0;f=m&&(R.marker.cluster=c.tree),R.marker&&(R.markerSel.positions=R.markerUnsel.positions=R.marker.positions=d),R.line&&d.length>1&&v.extendFlat(R.line,w.linePositions(s,g,d)),R.text&&(v.extendFlat(R.text,{positions:d},w.textPosition(s,g,R.text,R.marker)),v.extendFlat(R.textSel,{positions:d},w.textPosition(s,g,R.text,R.markerSel)),v.extendFlat(R.textUnsel,{positions:d},w.textPosition(s,g,R.text,R.markerUnsel))),R.fill&&!b.fill2d&&(b.fill2d=!0),R.marker&&!b.scatter2d&&(b.scatter2d=!0),R.line&&!b.line2d&&(b.line2d=!0),R.text&&!b.glText&&(b.glText=!0),b.lineOptions.push(R.line),b.fillOptions.push(R.fill),b.markerOptions.push(R.marker),b.markerSelectedOptions.push(R.markerSel),b.markerUnselectedOptions.push(R.markerUnsel),b.textOptions.push(R.text),b.textSelectedOptions.push(R.textSel),b.textUnselectedOptions.push(R.textUnsel),b.selectBatch.push([]),b.unselectBatch.push([]),c.x=k,c.y=I,c.rawx=k,c.rawy=I,c.r=A,c.theta=M,c.positions=d,c._scene=b,c.index=b.count,b.count++}}),i(s,o,h)}},D.exports.reglPrecompiled=a},69496:function(D,O,t){var l=t(21776).Ks,S=t(21776).Gw,i=t(92880).extendFlat,C=t(98304),w=t(52904),v=t(45464),m=w.line;D.exports={mode:w.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:w.text,texttemplate:S({editType:"plot"},{keys:["real","imag","text"]}),hovertext:w.hovertext,line:{color:m.color,width:m.width,dash:m.dash,backoff:m.backoff,shape:i({},m.shape,{values:["linear","spline"]}),smoothing:m.smoothing,editType:"calc"},connectgaps:w.connectgaps,marker:w.marker,cliponaxis:i({},w.cliponaxis,{dflt:!1}),textposition:w.textposition,textfont:w.textfont,fill:i({},w.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:C(),hoverinfo:i({},v.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:w.hoveron,hovertemplate:l(),selected:w.selected,unselected:w.unselected}},47507:function(D,O,t){var l=t(38248),S=t(39032).BADNUM,i=t(90136),C=t(20148),w=t(4500),v=t(16356).calcMarkerSize;D.exports=function(a,n){for(var s=a._fullLayout,o=n.subplot,h=s[o].realaxis,f=s[o].imaginaryaxis,u=h.makeCalcdata(n,"real"),b=f.makeCalcdata(n,"imag"),p=n._length,E=new Array(p),g=0;g")}}D.exports={hoverPoints:S,makeHoverPointText:i}},95443:function(D,O,t){D.exports={moduleType:"trace",name:"scattersmith",basePlotModule:t(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:t(69496),supplyDefaults:t(76716),colorbar:t(5528),formatLabels:t(49504),calc:t(47507),plot:t(34927),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(25292).hoverPoints,selectPoints:t(91560),meta:{}}},34927:function(D,O,t){var l=t(96504),S=t(39032).BADNUM,i=t(36416),C=i.smith;D.exports=function(v,m,a){for(var n=m.layers.frontplot.select("g.scatterlayer"),s=m.xaxis,o=m.yaxis,h={xaxis:s,yaxis:o,plot:m.framework,layerClipId:m._hasClipOnAxisFalse?m.clipIds.forTraces:null},f=0;f"),a.hovertemplate=u.hovertemplate,m}},34864:function(D,O,t){D.exports={attributes:t(5896),supplyDefaults:t(84256),colorbar:t(5528),formatLabels:t(90404),calc:t(34335),plot:t(88776),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(26596),selectPoints:t(91560),eventData:t(97476),moduleType:"trace",name:"scatterternary",basePlotModule:t(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(D,O,t){var l=t(96504);D.exports=function(i,C,w){var v=C.plotContainer;v.select(".scatterlayer").selectAll("*").remove();for(var m=C.xaxis,a=C.yaxis,n={xaxis:m,yaxis:a,plot:v,layerClipId:C._hasClipOnAxisFalse?C.clipIdRelative:null},s=C.layers.frontplot.select("g.scatterlayer"),o=0;os,k;for(d?k=p.sizeAvg||Math.max(p.size,3):k=i(f,b),A=0;Ax&&p||c-1,U=C(p)||!!s.selectedpoints||G,H=!0;if(U){var W=s._length;if(s.selectedpoints){h.selectBatch=s.selectedpoints;var V=s.selectedpoints,$={};for(c=0;c1&&(P=a[o-1],k=n[o-1],N=s[o-1]),h=0;hP?"-":"+")+"x"),A=A.replace("y",(d>k?"-":"+")+"y"),A=A.replace("z",(I>N?"-":"+")+"z");var H=function(){o=0,B=[],G=[],U=[]};(!o||o2?p=u.slice(1,b-1):b===2?p=[(u[0]+u[1])/2]:p=u,p}function o(u){var b=u.length;return b===1?[.5,.5]:[u[1]-u[0],u[b-1]-u[b-2]]}function h(u,b){var p=u.fullSceneLayout,E=u.dataScale,g=b._len,c={};function x(fe,Q){var J=p[Q],oe=E[m[Q]];return i.simpleMap(fe,function(K){return J.d2l(K)*oe})}if(c.vectors=v(x(b._u,"xaxis"),x(b._v,"yaxis"),x(b._w,"zaxis"),g),!g)return{positions:[],cells:[]};var A=x(b._Xs,"xaxis"),M=x(b._Ys,"yaxis"),R=x(b._Zs,"zaxis");c.meshgrid=[A,M,R],c.gridFill=b._gridFill;var T=b._slen;if(T)c.startingPositions=v(x(b._startsX,"xaxis"),x(b._startsY,"yaxis"),x(b._startsZ,"zaxis"));else{for(var L=M[0],P=s(A),d=s(R),k=new Array(P.length*d.length),I=0,N=0;N=0},k,I,N;E?(k=Math.min(p.length,c.length),I=function(K){return P(p[K])&&d(K)},N=function(K){return String(p[K])}):(k=Math.min(g.length,c.length),I=function(K){return P(g[K])&&d(K)},N=function(K){return String(g[K])}),A&&(k=Math.min(k,x.length));for(var B=0;B1){for(var $=i.randstr(),Z=0;Z>>8*L)%256/255}function p(T,L,P){for(var d=new Array(T*(i+4)),k=0,I=0;ISe&&(Se=ce[le].dim1.canvasX,xe=le);de===0&&o(k,0,0,U.canvasWidth,U.canvasHeight);var ke=Q(P);for(le=0;lele._length&&(Ie=Ie.slice(0,le._length));var Ue=le.tickvals,Ne;function ze(nt,mt){return{val:nt,text:Ne[mt]}}function $e(nt,mt){return nt.val-mt.val}if(i(Ue)&&Ue.length){S.isTypedArray(Ue)&&(Ue=Array.from(Ue)),Ne=le.ticktext,!i(Ne)||!Ne.length?Ne=Ue.map(C(le.tickformat)):Ne.length>Ue.length?Ne=Ne.slice(0,Ue.length):Ue.length>Ne.length&&(Ue=Ue.slice(0,Ne.length));for(var st=1;st=mt||wt>=rt)return;var et=at.lineLayer.readPixel(dt,rt-1-wt),Be=et[3]!==0,Ye=Be?et[2]+256*(et[1]+256*et[0]):null,Ze={x:dt,y:wt,clientX:nt.clientX,clientY:nt.clientY,dataIndex:at.model.key,curveNumber:Ye};Ye!==xe&&(Be?J.hover(Ze):J.unhover&&J.unhover(Ze),xe=Ye)}}),he.style("opacity",function(at){return at.pick?0:1}),ne.style("background","rgba(255, 255, 255, 0)");var Se=ne.selectAll("."+E.cn.parcoords).data(le,f);Se.exit().remove(),Se.enter().append("g").classed(E.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),Se.attr("transform",function(at){return a(at.model.translateX,at.model.translateY)});var ke=Se.selectAll("."+E.cn.parcoordsControlView).data(u,f);ke.enter().append("g").classed(E.cn.parcoordsControlView,!0),ke.attr("transform",function(at){return a(at.model.pad.l,at.model.pad.t)});var Te=ke.selectAll("."+E.cn.yAxis).data(function(at){return at.dimensions},f);Te.enter().append("g").classed(E.cn.yAxis,!0),ke.each(function(at){V(Te,at,re)}),he.each(function(at){if(at.viewModel){!at.lineLayer||J?at.lineLayer=c(this,at):at.lineLayer.update(at),(at.key||at.key===0)&&(at.viewModel[at.key]=at.lineLayer);var nt=!at.context||J;at.lineLayer.render(at.viewModel.panels,nt)}}),Te.attr("transform",function(at){return a(at.xScale(at.xIndex),0)}),Te.call(l.behavior.drag().origin(function(at){return at}).on("drag",function(at){var nt=at.parent;de.linePickActive(!1),at.x=Math.max(-E.overdrag,Math.min(at.model.width+E.overdrag,l.event.x)),at.canvasX=at.x*at.model.canvasPixelRatio,Te.sort(function(mt,rt){return mt.x-rt.x}).each(function(mt,rt){mt.xIndex=rt,mt.x=at===mt?mt.x:mt.xScale(mt.xIndex),mt.canvasX=mt.x*mt.model.canvasPixelRatio}),V(Te,nt,re),Te.filter(function(mt){return Math.abs(at.xIndex-mt.xIndex)!==0}).attr("transform",function(mt){return a(mt.xScale(mt.xIndex),0)}),l.select(this).attr("transform",a(at.x,0)),Te.each(function(mt,rt,lt){lt===at.parent.key&&(nt.dimensions[rt]=mt)}),nt.contextLayer&&nt.contextLayer.render(nt.panels,!1,!N(nt)),nt.focusLayer.render&&nt.focusLayer.render(nt.panels)}).on("dragend",function(at){var nt=at.parent;at.x=at.xScale(at.xIndex),at.canvasX=at.x*at.model.canvasPixelRatio,V(Te,nt,re),l.select(this).attr("transform",function(mt){return a(mt.x,0)}),nt.contextLayer&&nt.contextLayer.render(nt.panels,!1,!N(nt)),nt.focusLayer&&nt.focusLayer.render(nt.panels),nt.pickLayer&&nt.pickLayer.render(nt.panels,!0),de.linePickActive(!0),J&&J.axesMoved&&J.axesMoved(nt.key,nt.dimensions.map(function(mt){return mt.crossfilterDimensionIndex}))})),Te.exit().remove();var Ae=Te.selectAll("."+E.cn.axisOverlays).data(u,f);Ae.enter().append("g").classed(E.cn.axisOverlays,!0),Ae.selectAll("."+E.cn.axis).remove();var be=Ae.selectAll("."+E.cn.axis).data(u,f);be.enter().append("g").classed(E.cn.axis,!0),be.each(function(at){var nt=at.model.height/at.model.tickDistance,mt=at.domainScale,rt=mt.domain();l.select(this).call(l.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(nt,at.tickFormat).tickValues(at.ordinal?rt:null).tickFormat(function(lt){return p.isOrdinal(at)?lt:Z(at.model.dimensions[at.visibleIndex],lt)}).scale(mt)),s.font(be.selectAll("text"),at.model.tickFont)}),be.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),be.selectAll("text").style("text-shadow",n.makeTextShadow(ee)).style("cursor","default");var Ie=Ae.selectAll("."+E.cn.axisHeading).data(u,f);Ie.enter().append("g").classed(E.cn.axisHeading,!0);var Ue=Ie.selectAll("."+E.cn.axisTitle).data(u,f);Ue.enter().append("text").classed(E.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",oe?"none":"auto"),Ue.text(function(at){return at.label}).each(function(at){var nt=l.select(this);s.font(nt,at.model.labelFont),n.convertToTspans(nt,ie)}).attr("transform",function(at){var nt=W(at.model.labelAngle,at.model.labelSide),mt=E.axisTitleOffset;return(nt.dir>0?"":a(0,2*mt+at.model.height))+m(nt.degrees)+a(-mt*nt.dx,-mt*nt.dy)}).attr("text-anchor",function(at){var nt=W(at.model.labelAngle,at.model.labelSide),mt=Math.abs(nt.dx),rt=Math.abs(nt.dy);return 2*mt>rt?nt.dir*nt.dx<0?"start":"end":"middle"});var Ne=Ae.selectAll("."+E.cn.axisExtent).data(u,f);Ne.enter().append("g").classed(E.cn.axisExtent,!0);var ze=Ne.selectAll("."+E.cn.axisExtentTop).data(u,f);ze.enter().append("g").classed(E.cn.axisExtentTop,!0),ze.attr("transform",a(0,-E.axisExtentOffset));var $e=ze.selectAll("."+E.cn.axisExtentTopText).data(u,f);$e.enter().append("text").classed(E.cn.axisExtentTopText,!0).call(U),$e.text(function(at){return q(at,!0)}).each(function(at){s.font(l.select(this),at.model.rangeFont)});var st=Ne.selectAll("."+E.cn.axisExtentBottom).data(u,f);st.enter().append("g").classed(E.cn.axisExtentBottom,!0),st.attr("transform",function(at){return a(0,at.model.height+E.axisExtentOffset)});var vt=st.selectAll("."+E.cn.axisExtentBottomText).data(u,f);vt.enter().append("text").classed(E.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(U),vt.text(function(at){return q(at,!1)}).each(function(at){s.font(l.select(this),at.model.rangeFont)}),g.ensureAxisBrush(Ae,ee,ie)}},24196:function(D,O,t){var l=t(36336),S=t(5048),i=t(95724).isVisible,C={};function w(a,n,s){var o=n.indexOf(s),h=a.indexOf(o);return h===-1&&(h+=n.length),h}function v(a,n){return function(o,h){return w(a,n,o)-w(a,n,h)}}var m=D.exports=function(n,s){var o=n._fullLayout,h=S(n,[],C);if(h){var f={},u={},b={},p={},E=o._size;s.forEach(function(M,R){var T=M[0].trace;b[R]=T.index;var L=p[R]=T._fullInput.index;f[R]=n.data[L].dimensions,u[R]=n.data[L].dimensions.slice()});var g=function(M,R,T){var L=u[M][R],P=T.map(function(G){return G.slice()}),d="dimensions["+R+"].constraintrange",k=o._tracePreGUI[n._fullData[b[M]]._fullInput.uid];if(k[d]===void 0){var I=L.constraintrange;k[d]=I||null}var N=n._fullData[b[M]].dimensions[R];P.length?(P.length===1&&(P=P[0]),L.constraintrange=P,N.constraintrange=P.slice(),P=[P]):(delete L.constraintrange,delete N.constraintrange,P=null);var B={};B[d]=P,n.emit("plotly_restyle",[B,[p[M]]])},c=function(M){n.emit("plotly_hover",M)},y=function(M){n.emit("plotly_unhover",M)},A=function(M,R){var T=v(R,u[M].filter(i));f[M].sort(T),u[M].filter(function(L){return!i(L)}).sort(function(L){return u[M].indexOf(L)}).forEach(function(L){f[M].splice(f[M].indexOf(L),1),f[M].splice(u[M].indexOf(L),0,L)}),n.emit("plotly_restyle",[{dimensions:[f[M]]},[p[M]]])};l(n,s,{width:E.w,height:E.h,margin:{t:E.t,r:E.r,b:E.b,l:E.l}},{filterChanged:g,hover:c,unhover:y,axesMoved:A})}};m.reglPrecompiled=C},74996:function(D,O,t){var l=t(45464),S=t(86968).u,i=t(25376),C=t(22548),w=t(21776).Ks,v=t(21776).Gw,m=t(92880).extendFlat,a=t(98192).c,n=i({editType:"plot",arrayOk:!0,colorEditType:"plot"});D.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:C.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:a,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:m({},l.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:w({},{keys:["label","color","value","percent","text"]}),texttemplate:v({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:m({},n,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:m({},n,{}),outsidetextfont:m({},n,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:m({},n,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:S({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:m({},n,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(D,O,t){var l=t(7316);O.name="pie",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},45768:function(D,O,t){var l=t(38248),S=t(49760),i=t(76308),C={};function w(n,s){var o=[],h=n._fullLayout,f=h.hiddenlabels||[],u=s.labels,b=s.marker.colors||[],p=s.values,E=s._length,g=s._hasValues&&E,c,y;if(s.dlabel)for(u=new Array(E),c=0;c=0});var I=s.type==="funnelarea"?T:s.sort;return I&&o.sort(function(N,B){return B.v-N.v}),o[0]&&(o[0].vTotal=R),o}function v(n){return function(o,h){return!o||(o=S(o),!o.isValid())?!1:(o=i.addOpacity(o,o.getAlpha()),n[h]||(n[h]=o),o)}}function m(n,s){var o=(s||{}).type;o||(o="pie");var h=n._fullLayout,f=n.calcdata,u=h[o+"colorway"],b=h["_"+o+"colormap"];h["extend"+o+"colors"]&&(u=a(u,C));for(var p=0,E=0;E0){b=!0;break}}b||(u=0)}return{hasLabels:h,hasValues:f,len:u}}function a(s,o,h,f,u){var b=f("marker.line.width");b&&f("marker.line.color",u?void 0:h.paper_bgcolor);var p=f("marker.colors");v(f,"marker.pattern",p),s.marker&&!o.marker.pattern.fgcolor&&(o.marker.pattern.fgcolor=s.marker.colors),o.marker.pattern.bgcolor||(o.marker.pattern.bgcolor=h.paper_bgcolor)}function n(s,o,h,f){function u(k,I){return S.coerce(s,o,i,k,I)}var b=u("labels"),p=u("values"),E=m(b,p),g=E.len;if(o._hasLabels=E.hasLabels,o._hasValues=E.hasValues,!o._hasLabels&&o._hasValues&&(u("label0"),u("dlabel")),!g){o.visible=!1;return}o._length=g,a(s,o,f,u,!0),u("scalegroup");var c=u("text"),y=u("texttemplate"),A;if(y||(A=u("textinfo",S.isArrayOrTypedArray(c)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),y||A&&A!=="none"){var M=u("textposition");w(s,o,f,u,M,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var R=Array.isArray(M)||M==="auto",T=R||M==="outside";T&&u("automargin"),(M==="inside"||M==="auto"||Array.isArray(M))&&u("insidetextorientation")}else A==="none"&&u("textposition","none");C(o,f,u);var L=u("hole"),P=u("title.text");if(P){var d=u("title.position",L?"middle center":"top center");!L&&d==="middle center"&&(o.title.position="top center"),S.coerceFont(u,"title.font",f.font)}u("sort"),u("direction"),u("rotation"),u("pull")}D.exports={handleLabelsAndValues:m,handleMarkerDefaults:a,supplyDefaults:n}},53644:function(D,O,t){var l=t(10624).appendArrayMultiPointValues;D.exports=function(i,C){var w={curveNumber:C.index,pointNumbers:i.pts,data:C._input,fullData:C,label:i.label,color:i.color,value:i.v,percent:i.percent,text:i.text,bbox:i.bbox,v:i.v};return i.pts.length===1&&(w.pointNumber=w.i=i.pts[0]),l(w,C,i.pts),C.type==="funnelarea"&&(delete w.v,delete w.i),w}},21552:function(D,O,t){var l=t(43616),S=t(76308);D.exports=function(C,w,v,m){var a=v.marker.pattern;a&&a.shape?l.pointStyle(C,v,m,w):S.fill(C,w.color)}},69656:function(D,O,t){var l=t(3400);function S(i){return i.indexOf("e")!==-1?i.replace(/[.]?0+e/,"e"):i.indexOf(".")!==-1?i.replace(/[.]?0+$/,""):i}O.formatPiePercent=function(C,w){var v=S((C*100).toPrecision(3));return l.numSeparate(v,w)+"%"},O.formatPieValue=function(C,w){var v=S(C.toPrecision(10));return l.numSeparate(v,w)},O.getFirstFilled=function(C,w){if(l.isArrayOrTypedArray(C))for(var v=0;v0&&(st+=mt*ze.pxmid[0],vt+=mt*ze.pxmid[1])}ze.cxFinal=st,ze.cyFinal=vt;function rt(Ze,We,Fe,Me){var we=Me*(We[0]-Ze[0]),Re=Me*(We[1]-Ze[1]);return"a"+Me*le.r+","+Me*le.r+" 0 "+ze.largeArc+(Fe?" 1 ":" 0 ")+we+","+Re}var lt=he.hole;if(ze.v===le.vTotal){var dt="M"+(st+ze.px0[0])+","+(vt+ze.px0[1])+rt(ze.px0,ze.pxmid,!0,1)+rt(ze.pxmid,ze.px0,!0,1)+"Z";lt?nt.attr("d","M"+(st+lt*ze.px0[0])+","+(vt+lt*ze.px0[1])+rt(ze.px0,ze.pxmid,!1,lt)+rt(ze.pxmid,ze.px0,!1,lt)+"Z"+dt):nt.attr("d",dt)}else{var wt=rt(ze.px0,ze.px1,!0,1);if(lt){var et=1-lt;nt.attr("d","M"+(st+lt*ze.px1[0])+","+(vt+lt*ze.px1[1])+rt(ze.px1,ze.px0,!1,lt)+"l"+et*ze.px0[0]+","+et*ze.px0[1]+wt+"Z")}else nt.attr("d","M"+st+","+vt+"l"+ze.px0[0]+","+ze.px0[1]+wt+"Z")}fe(J,ze,le);var Be=u.castOption(he.textposition,ze.pts),Ye=at.selectAll("g.slicetext").data(ze.text&&Be!=="none"?[0]:[]);Ye.enter().append("g").classed("slicetext",!0),Ye.exit().remove(),Ye.each(function(){var Ze=v.ensureSingle(l.select(this),"text","",function(Je){Je.attr("data-notex",1)}),We=v.ensureUniformFontSize(J,Be==="outside"?y(he,ze,ne.font):A(he,ze,ne.font));Ze.text(ze.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(w.font,We).call(n.convertToTspans,J);var Fe=w.bBox(Ze.node()),Me;if(Be==="outside")Me=B(Fe,ze);else if(Me=R(Fe,ze,le),Be==="auto"&&Me.scale<1){var we=v.ensureUniformFontSize(J,he.outsidetextfont);Ze.call(w.font,we),Fe=w.bBox(Ze.node()),Me=B(Fe,ze)}var Re=Me.textPosAngle,Pe=Re===void 0?ze.pxmid:ie(le.r,Re);if(Me.targetX=st+Pe[0]*Me.rCenter+(Me.x||0),Me.targetY=vt+Pe[1]*Me.rCenter+(Me.y||0),Q(Me,Fe),Me.outside){var Ve=Me.targetY;ze.yLabelMin=Ve-Fe.height/2,ze.yLabelMid=Ve,ze.yLabelMax=Ve+Fe.height/2,ze.labelExtraX=0,ze.labelExtraY=0,Se=!0}Me.fontSize=We.size,o(he.type,Me,ne),ee[$e].transform=Me,v.setTransormAndDisplay(Ze,Me)})});var ke=l.select(this).selectAll("g.titletext").data(he.title.text?[0]:[]);if(ke.enter().append("g").classed("titletext",!0),ke.exit().remove(),ke.each(function(){var ze=v.ensureSingle(l.select(this),"text","",function(vt){vt.attr("data-notex",1)}),$e=he.title.text;he._meta&&($e=v.templateString($e,he._meta)),ze.text($e).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(w.font,he.title.font).call(n.convertToTspans,J);var st;he.title.position==="middle center"?st=G(le):st=U(le,ce),ze.attr("transform",a(st.x,st.y)+m(Math.min(1,st.scale))+a(st.tx,st.ty))}),Se&&$(Ee,he),g(xe,he),Se&&he.automargin){var Te=w.bBox(de.node()),Ae=he.domain,be=ce.w*(Ae.x[1]-Ae.x[0]),Ie=ce.h*(Ae.y[1]-Ae.y[0]),Ue=(.5*be-le.r)/ce.w,Ne=(.5*Ie-le.r)/ce.h;S.autoMargin(J,"pie."+he.uid+".automargin",{xl:Ae.x[0]-Ue,xr:Ae.x[1]+Ue,yb:Ae.y[0]-Ne,yt:Ae.y[1]+Ne,l:Math.max(le.cx-le.r-Te.left,0),r:Math.max(Te.right-(le.cx+le.r),0),b:Math.max(Te.bottom-(le.cy+le.r),0),t:Math.max(le.cy-le.r-Te.top,0),pad:5})}})});setTimeout(function(){re.selectAll("tspan").each(function(){var ee=l.select(this);ee.attr("dy")&&ee.attr("dy",ee.attr("dy"))})},0)}function g(J,oe){J.each(function(K){var ne=l.select(this);if(!K.labelExtraX&&!K.labelExtraY){ne.select("path.textline").remove();return}var ce=ne.select("g.slicetext text");K.transform.targetX+=K.labelExtraX,K.transform.targetY+=K.labelExtraY,v.setTransormAndDisplay(ce,K.transform);var re=K.cxFinal+K.pxmid[0],ee=K.cyFinal+K.pxmid[1],de="M"+re+","+ee,le=(K.yLabelMax-K.yLabelMin)*(K.pxmid[0]<0?-1:1)/4;if(K.labelExtraX){var he=K.labelExtraX*K.pxmid[1]/K.pxmid[0],xe=K.yLabelMid+K.labelExtraY-(K.cyFinal+K.pxmid[1]);Math.abs(he)>Math.abs(xe)?de+="l"+xe*K.pxmid[0]/K.pxmid[1]+","+xe+"H"+(re+K.labelExtraX+le):de+="l"+K.labelExtraX+","+he+"v"+(xe-he)+"h"+le}else de+="V"+(K.yLabelMid+K.labelExtraY)+"h"+le;v.ensureSingle(ne,"path","textline").call(C.stroke,oe.outsidetextfont.color).attr({"stroke-width":Math.min(2,oe.outsidetextfont.size/8),d:de,fill:"none"})})}function c(J,oe,K){var ne=K[0],ce=ne.cx,re=ne.cy,ee=ne.trace,de=ee.type==="funnelarea";"_hasHoverLabel"in ee||(ee._hasHoverLabel=!1),"_hasHoverEvent"in ee||(ee._hasHoverEvent=!1),J.on("mouseover",function(le){var he=oe._fullLayout,xe=oe._fullData[ee.index];if(!(oe._dragging||he.hovermode===!1)){var Ee=xe.hoverinfo;if(Array.isArray(Ee)&&(Ee=i.castHoverinfo({hoverinfo:[u.castOption(Ee,le.pts)],_module:ee._module},he,0)),Ee==="all"&&(Ee="label+text+value+percent+name"),xe.hovertemplate||Ee!=="none"&&Ee!=="skip"&&Ee){var Se=le.rInscribed||0,ke=ce+le.pxmid[0]*(1-Se),Te=re+le.pxmid[1]*(1-Se),Ae=he.separators,be=[];if(Ee&&Ee.indexOf("label")!==-1&&be.push(le.label),le.text=u.castOption(xe.hovertext||xe.text,le.pts),Ee&&Ee.indexOf("text")!==-1){var Ie=le.text;v.isValidTextValue(Ie)&&be.push(Ie)}le.value=le.v,le.valueLabel=u.formatPieValue(le.v,Ae),Ee&&Ee.indexOf("value")!==-1&&be.push(le.valueLabel),le.percent=le.v/ne.vTotal,le.percentLabel=u.formatPiePercent(le.percent,Ae),Ee&&Ee.indexOf("percent")!==-1&&be.push(le.percentLabel);var Ue=xe.hoverlabel,Ne=Ue.font,ze=[];i.loneHover({trace:ee,x0:ke-Se*ne.r,x1:ke+Se*ne.r,y:Te,_x0:de?ce+le.TL[0]:ke-Se*ne.r,_x1:de?ce+le.TR[0]:ke+Se*ne.r,_y0:de?re+le.TL[1]:Te-Se*ne.r,_y1:de?re+le.BL[1]:Te+Se*ne.r,text:be.join("
"),name:xe.hovertemplate||Ee.indexOf("name")!==-1?xe.name:void 0,idealAlign:le.pxmid[0]<0?"left":"right",color:u.castOption(Ue.bgcolor,le.pts)||le.color,borderColor:u.castOption(Ue.bordercolor,le.pts),fontFamily:u.castOption(Ne.family,le.pts),fontSize:u.castOption(Ne.size,le.pts),fontColor:u.castOption(Ne.color,le.pts),nameLength:u.castOption(Ue.namelength,le.pts),textAlign:u.castOption(Ue.align,le.pts),hovertemplate:u.castOption(xe.hovertemplate,le.pts),hovertemplateLabels:le,eventData:[b(le,xe)]},{container:he._hoverlayer.node(),outerContainer:he._paper.node(),gd:oe,inOut_bbox:ze}),le.bbox=ze[0],ee._hasHoverLabel=!0}ee._hasHoverEvent=!0,oe.emit("plotly_hover",{points:[b(le,xe)],event:l.event})}}),J.on("mouseout",function(le){var he=oe._fullLayout,xe=oe._fullData[ee.index],Ee=l.select(this).datum();ee._hasHoverEvent&&(le.originalEvent=l.event,oe.emit("plotly_unhover",{points:[b(Ee,xe)],event:l.event}),ee._hasHoverEvent=!1),ee._hasHoverLabel&&(i.loneUnhover(he._hoverlayer.node()),ee._hasHoverLabel=!1)}),J.on("click",function(le){var he=oe._fullLayout,xe=oe._fullData[ee.index];oe._dragging||he.hovermode===!1||(oe._hoverdata=[b(le,xe)],i.click(oe,l.event))})}function y(J,oe,K){var ne=u.castOption(J.outsidetextfont.color,oe.pts)||u.castOption(J.textfont.color,oe.pts)||K.color,ce=u.castOption(J.outsidetextfont.family,oe.pts)||u.castOption(J.textfont.family,oe.pts)||K.family,re=u.castOption(J.outsidetextfont.size,oe.pts)||u.castOption(J.textfont.size,oe.pts)||K.size;return{color:ne,family:ce,size:re}}function A(J,oe,K){var ne=u.castOption(J.insidetextfont.color,oe.pts);!ne&&J._input.textfont&&(ne=u.castOption(J._input.textfont.color,oe.pts));var ce=u.castOption(J.insidetextfont.family,oe.pts)||u.castOption(J.textfont.family,oe.pts)||K.family,re=u.castOption(J.insidetextfont.size,oe.pts)||u.castOption(J.textfont.size,oe.pts)||K.size;return{color:ne||C.contrast(oe.color),family:ce,size:re}}function M(J,oe){for(var K,ne,ce=0;ce=-4;Ue-=2)Ie(Math.PI*Ue,"tan");for(Ue=4;Ue>=-4;Ue-=2)Ie(Math.PI*(Ue+1),"tan")}if(Ee||ke){for(Ue=4;Ue>=-4;Ue-=2)Ie(Math.PI*(Ue+1.5),"rad");for(Ue=4;Ue>=-4;Ue-=2)Ie(Math.PI*(Ue+.5),"rad")}}if(de||Te||Ee){var Ne=Math.sqrt(J.width*J.width+J.height*J.height);if(be={scale:ce*ne*2/Ne,rCenter:1-ce,rotate:0},be.textPosAngle=(oe.startangle+oe.stopangle)/2,be.scale>=1)return be;Ae.push(be)}(Te||ke)&&(be=L(J,ne,ee,le,he),be.textPosAngle=(oe.startangle+oe.stopangle)/2,Ae.push(be)),(Te||Se)&&(be=P(J,ne,ee,le,he),be.textPosAngle=(oe.startangle+oe.stopangle)/2,Ae.push(be));for(var ze=0,$e=0,st=0;st=1)break}return Ae[ze]}function T(J,oe){var K=J.startangle,ne=J.stopangle;return K>oe&&oe>ne||K0?1:-1)/2,y:re/(1+K*K/(ne*ne)),outside:!0}}function G(J){var oe=Math.sqrt(J.titleBox.width*J.titleBox.width+J.titleBox.height*J.titleBox.height);return{x:J.cx,y:J.cy,scale:J.trace.hole*J.r*2/oe,tx:0,ty:-J.titleBox.height/2+J.trace.title.font.size}}function U(J,oe){var K=1,ne=1,ce,re=J.trace,ee={x:J.cx,y:J.cy},de={tx:0,ty:0};de.ty+=re.title.font.size,ce=V(re),re.title.position.indexOf("top")!==-1?(ee.y-=(1+ce)*J.r,de.ty-=J.titleBox.height):re.title.position.indexOf("bottom")!==-1&&(ee.y+=(1+ce)*J.r);var le=H(J.r,J.trace.aspectratio),he=oe.w*(re.domain.x[1]-re.domain.x[0])/2;return re.title.position.indexOf("left")!==-1?(he=he+le,ee.x-=(1+ce)*le,de.tx+=J.titleBox.width/2):re.title.position.indexOf("center")!==-1?he*=2:re.title.position.indexOf("right")!==-1&&(he=he+le,ee.x+=(1+ce)*le,de.tx-=J.titleBox.width/2),K=he/J.titleBox.width,ne=W(J,oe)/J.titleBox.height,{x:ee.x,y:ee.y,scale:Math.min(K,ne),tx:de.tx,ty:de.ty}}function H(J,oe){return J/(oe===void 0?1:oe)}function W(J,oe){var K=J.trace,ne=oe.h*(K.domain.y[1]-K.domain.y[0]);return Math.min(J.titleBox.height,ne/2)}function V(J){var oe=J.pull;if(!oe)return 0;var K;if(v.isArrayOrTypedArray(oe))for(oe=0,K=0;Koe&&(oe=J.pull[K]);return oe}function $(J,oe){var K,ne,ce,re,ee,de,le,he,xe,Ee,Se,ke,Te;function Ae(Ne,ze){return Ne.pxmid[1]-ze.pxmid[1]}function be(Ne,ze){return ze.pxmid[1]-Ne.pxmid[1]}function Ie(Ne,ze){ze||(ze={});var $e=ze.labelExtraY+(ne?ze.yLabelMax:ze.yLabelMin),st=ne?Ne.yLabelMin:Ne.yLabelMax,vt=ne?Ne.yLabelMax:Ne.yLabelMin,at=Ne.cyFinal+ee(Ne.px0[1],Ne.px1[1]),nt=$e-st,mt,rt,lt,dt,wt,et;if(nt*le>0&&(Ne.labelExtraY=nt),!!v.isArrayOrTypedArray(oe.pull))for(rt=0;rt=(u.castOption(oe.pull,lt.pts)||0))&&((Ne.pxmid[1]-lt.pxmid[1])*le>0?(dt=lt.cyFinal+ee(lt.px0[1],lt.px1[1]),nt=dt-st-Ne.labelExtraY,nt*le>0&&(Ne.labelExtraY+=nt)):(vt+Ne.labelExtraY-at)*le>0&&(mt=3*de*Math.abs(rt-Ee.indexOf(Ne)),wt=lt.cxFinal+re(lt.px0[0],lt.px1[0]),et=wt+mt-(Ne.cxFinal+Ne.pxmid[0])-Ne.labelExtraX,et*de>0&&(Ne.labelExtraX+=et)))}for(ne=0;ne<2;ne++)for(ce=ne?Ae:be,ee=ne?Math.max:Math.min,le=ne?1:-1,K=0;K<2;K++){for(re=K?Math.max:Math.min,de=K?1:-1,he=J[ne][K],he.sort(ce),xe=J[1-ne][K],Ee=xe.concat(he),ke=[],Se=0;Se1?(he=K.r,xe=he/ce.aspectratio):(xe=K.r,he=xe*ce.aspectratio),he*=(1+ce.baseratio)/2,le=he*xe}ee=Math.min(ee,le/K.vTotal)}for(ne=0;neoe.vTotal/2?1:0,he.halfangle=Math.PI*Math.min(he.v/oe.vTotal,.5),he.ring=1-ne.hole,he.rInscribed=N(he,oe))}function ie(J,oe){return[J*Math.sin(oe),-J*Math.cos(oe)]}function fe(J,oe,K){var ne=J._fullLayout,ce=K.trace,re=ce.texttemplate,ee=ce.textinfo;if(!re&&ee&&ee!=="none"){var de=ee.split("+"),le=function(ze){return de.indexOf(ze)!==-1},he=le("label"),xe=le("text"),Ee=le("value"),Se=le("percent"),ke=ne.separators,Te;if(Te=he?[oe.label]:[],xe){var Ae=u.getFirstFilled(ce.text,oe.pts);p(Ae)&&Te.push(Ae)}Ee&&Te.push(u.formatPieValue(oe.v,ke)),Se&&Te.push(u.formatPiePercent(oe.v/K.vTotal,ke)),oe.text=Te.join("
")}function be(ze){return{label:ze.label,value:ze.v,valueLabel:u.formatPieValue(ze.v,ne.separators),percent:ze.v/K.vTotal,percentLabel:u.formatPiePercent(ze.v/K.vTotal,ne.separators),color:ze.color,text:ze.text,customdata:v.castOption(ce,ze.i,"customdata")}}if(re){var Ie=v.castOption(ce,oe.i,"texttemplate");if(!Ie)oe.text="";else{var Ue=be(oe),Ne=u.getFirstFilled(ce.text,oe.pts);(p(Ne)||Ne==="")&&(Ue.text=Ne),oe.text=v.texttemplateString(Ie,Ue,J._fullLayout._d3locale,Ue,ce._meta||{})}}}function Q(J,oe){var K=J.rotate*Math.PI/180,ne=Math.cos(K),ce=Math.sin(K),re=(oe.left+oe.right)/2,ee=(oe.top+oe.bottom)/2;J.textX=re*ne-ee*ce,J.textY=re*ce+ee*ne,J.noCenter=!0}D.exports={plot:E,formatSliceLabel:fe,transformInsideText:R,determineInsideTextFont:A,positionTitleOutside:U,prerenderTitles:M,layoutAreas:Z,attachFxHandlers:c,computeTransform:Q}},22152:function(D,O,t){var l=t(33428),S=t(10528),i=t(82744).resizeText;D.exports=function(w){var v=w._fullLayout._pielayer.selectAll(".trace");i(w,v,"pie"),v.each(function(m){var a=m[0],n=a.trace,s=l.select(this);s.style({opacity:n.opacity}),s.selectAll("path.surface").each(function(o){l.select(this).call(S,o,n,w)})})}},10528:function(D,O,t){var l=t(76308),S=t(69656).castOption,i=t(21552);D.exports=function(w,v,m,a){var n=m.marker.line,s=S(n.color,v.pts)||l.defaultLine,o=S(n.width,v.pts)||0;w.call(i,v,m,a).style("stroke-width",o).call(l.stroke,s)}},35484:function(D,O,t){var l=t(52904);D.exports={x:l.x,y:l.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:l.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},11072:function(D,O,t){var l=t(67792).gl_pointcloud2d,S=t(3400).isArrayOrTypedArray,i=t(43080),C=t(19280).findExtremes,w=t(44928);function v(n,s){this.scene=n,this.uid=s,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=l(n.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var m=v.prototype;m.handlePick=function(n){var s=this.idToIndex[n.pointId];return{trace:this,dataCoord:n.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[s*2],this.pickXYData[s*2+1]]:[this.pickXData[s],this.pickYData[s]],textLabel:S(this.textLabels)?this.textLabels[s]:this.textLabels,color:this.color,name:this.name,pointIndex:s,hoverinfo:this.hoverinfo}},m.update=function(n){this.index=n.index,this.textLabels=n.text,this.name=n.name,this.hoverinfo=n.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(n),this.color=w(n,{})},m.updateFast=function(n){var s=this.xData=this.pickXData=n.x,o=this.yData=this.pickYData=n.y,h=this.pickXYData=n.xy,f=n.xbounds&&n.ybounds,u=n.indices,b,p,E,g=this.bounds,c,y,A;if(h){if(E=h,b=h.length>>>1,f)g[0]=n.xbounds[0],g[2]=n.xbounds[1],g[1]=n.ybounds[0],g[3]=n.ybounds[1];else for(A=0;Ag[2]&&(g[2]=c),yg[3]&&(g[3]=y);if(u)p=u;else for(p=new Int32Array(b),A=0;Ag[2]&&(g[2]=c),yg[3]&&(g[3]=y);this.idToIndex=p,this.pointcloudOptions.idToIndex=p,this.pointcloudOptions.positions=E;var M=i(n.marker.color),R=i(n.marker.border.color),T=n.opacity*n.marker.opacity;M[3]*=T,this.pointcloudOptions.color=M;var L=n.marker.blend;if(L===null){var P=100;L=s.lengthR&&(R=o.source[c]),o.target[c]>R&&(R=o.target[c]);var T=R+1;n.node._count=T;var L,P=n.node.groups,d={};for(c=0;c0&&w(U,T)&&w(H,T)&&!(d.hasOwnProperty(U)&&d.hasOwnProperty(H)&&d[U]===d[H])){d.hasOwnProperty(H)&&(H=d[H]),d.hasOwnProperty(U)&&(U=d[U]),U=+U,H=+H,p[U]=p[H]=!0;var W="";o.label&&o.label[c]&&(W=o.label[c]);var V=null;W&&E.hasOwnProperty(W)&&(V=E[W]),h.push({pointNumber:c,label:W,color:f?o.color[c]:o.color,hovercolor:u?o.hovercolor[c]:o.hovercolor,customdata:b?o.customdata[c]:o.customdata,concentrationscale:V,source:U,target:H,value:+G}),B.source.push(U),B.target.push(H)}}var $=T+P.length,Z=C(s.color),q=C(s.customdata),ae=[];for(c=0;c<$;c++)if(p[c]){var ie=s.label[c];ae.push({group:c>T-1,childrenNodes:[],pointNumber:c,label:ie,color:Z?s.color[c]:s.color,customdata:q?s.customdata[c]:s.customdata})}var fe=!1;return a($,B.source,B.target)&&(fe=!0),{circular:fe,links:h,nodes:ae,groups:P,groupLookup:d}}function a(n,s,o){for(var h=S.init2dArray(n,0),f=0;f1})}D.exports=function(s,o){var h=m(o);return i({circular:h.circular,_nodes:h.nodes,_links:h.links,_groups:h.groups,_groupLookup:h.groupLookup})}},11820:function(D){D.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},47140:function(D,O,t){var l=t(3400),S=t(41440),i=t(76308),C=t(49760),w=t(86968).Q,v=t(16132),m=t(31780),a=t(51272);D.exports=function(o,h,f,u){function b(N,B){return l.coerce(o,h,S,N,B)}var p=l.extendDeep(u.hoverlabel,o.hoverlabel),E=o.node,g=m.newContainer(h,"node");function c(N,B){return l.coerce(E,g,S.node,N,B)}c("label"),c("groups"),c("x"),c("y"),c("pad"),c("thickness"),c("line.color"),c("line.width"),c("hoverinfo",o.hoverinfo),v(E,g,c,p),c("hovertemplate"),c("align");var y=u.colorway,A=function(N){return y[N%y.length]};c("color",g.label.map(function(N,B){return i.addOpacity(A(B),.8)})),c("customdata");var M=o.link||{},R=m.newContainer(h,"link");function T(N,B){return l.coerce(M,R,S.link,N,B)}T("label"),T("arrowlen"),T("source"),T("target"),T("value"),T("line.color"),T("line.width"),T("hoverinfo",o.hoverinfo),v(M,R,T,p),T("hovertemplate");var L=C(u.paper_bgcolor).getLuminance()<.333,P=L?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",d=T("color",P);function k(N){var B=C(N);if(!B.isValid())return N;var G=B.getAlpha();return G<=.8?B.setAlpha(G+.2):B=L?B.brighten():B.darken(),B.toRgbString()}T("hovercolor",Array.isArray(d)?d.map(k):k(d)),T("customdata"),a(M,R,{name:"colorscales",handleItemDefaults:n}),w(h,u,b),b("orientation"),b("valueformat"),b("valuesuffix");var I;g.x.length&&g.y.length&&(I="freeform"),b("arrangement",I),l.coerceFont(b,"textfont",l.extendFlat({},u.font)),h._length=null};function n(s,o){function h(f,u){return l.coerce(s,o,S.link.colorscales,f,u)}h("label"),h("cmin"),h("cmax"),h("colorscale")}},45499:function(D,O,t){D.exports={attributes:t(41440),supplyDefaults:t(47140),calc:t(48068),plot:t(59596),moduleType:"trace",name:"sankey",basePlotModule:t(10760),selectPoints:t(81128),categories:["noOpacity"],meta:{}}},59596:function(D,O,t){var l=t(33428),S=t(3400),i=S.numberFormat,C=t(83248),w=t(93024),v=t(76308),m=t(11820).cn,a=S._;function n(y){return y!==""}function s(y,A){return y.filter(function(M){return M.key===A.traceId})}function o(y,A){l.select(y).select("path").style("fill-opacity",A),l.select(y).select("rect").style("fill-opacity",A)}function h(y){l.select(y).select("text.name").style("fill","black")}function f(y){return function(A){return y.node.sourceLinks.indexOf(A.link)!==-1||y.node.targetLinks.indexOf(A.link)!==-1}}function u(y){return function(A){return A.node.sourceLinks.indexOf(y.link)!==-1||A.node.targetLinks.indexOf(y.link)!==-1}}function b(y,A,M){A&&M&&s(M,A).selectAll("."+m.sankeyLink).filter(f(A)).call(E.bind(0,A,M,!1))}function p(y,A,M){A&&M&&s(M,A).selectAll("."+m.sankeyLink).filter(f(A)).call(g.bind(0,A,M,!1))}function E(y,A,M,R){R.style("fill",function(T){if(!T.link.concentrationscale)return T.tinyColorHoverHue}).style("fill-opacity",function(T){if(!T.link.concentrationscale)return T.tinyColorHoverAlpha}),R.each(function(T){var L=T.link.label;L!==""&&s(A,y).selectAll("."+m.sankeyLink).filter(function(P){return P.link.label===L}).style("fill",function(P){if(!P.link.concentrationscale)return P.tinyColorHoverHue}).style("fill-opacity",function(P){if(!P.link.concentrationscale)return P.tinyColorHoverAlpha})}),M&&s(A,y).selectAll("."+m.sankeyNode).filter(u(y)).call(b)}function g(y,A,M,R){R.style("fill",function(T){return T.tinyColorHue}).style("fill-opacity",function(T){return T.tinyColorAlpha}),R.each(function(T){var L=T.link.label;L!==""&&s(A,y).selectAll("."+m.sankeyLink).filter(function(P){return P.link.label===L}).style("fill",function(P){return P.tinyColorHue}).style("fill-opacity",function(P){return P.tinyColorAlpha})}),M&&s(A,y).selectAll(m.sankeyNode).filter(u(y)).call(p)}function c(y,A){var M=y.hoverlabel||{},R=S.nestedProperty(M,A).get();return Array.isArray(R)?!1:R}D.exports=function(A,M){for(var R=A._fullLayout,T=R._paper,L=R._size,P=0;P"),color:c(Q,"bgcolor")||v.addOpacity(ce.color,1),borderColor:c(Q,"bordercolor"),fontFamily:c(Q,"font.family"),fontSize:c(Q,"font.size"),fontColor:c(Q,"font.color"),nameLength:c(Q,"namelength"),textAlign:c(Q,"align"),idealAlign:l.event.x"),color:c(Q,"bgcolor")||fe.tinyColorHue,borderColor:c(Q,"bordercolor"),fontFamily:c(Q,"font.family"),fontSize:c(Q,"font.size"),fontColor:c(Q,"font.color"),nameLength:c(Q,"namelength"),textAlign:c(Q,"align"),idealAlign:"left",hovertemplate:Q.hovertemplate,hovertemplateLabels:ee,eventData:[fe.node]},{container:R._hoverlayer.node(),outerContainer:R._paper.node(),gd:A});o(he,.85),h(he)}}},ae=function(ie,fe,Q){A._fullLayout.hovermode!==!1&&(l.select(ie).call(p,fe,Q),fe.node.trace.node.hoverinfo!=="skip"&&(fe.node.fullData=fe.node.trace,A.emit("plotly_unhover",{event:l.event,points:[fe.node]})),w.loneUnhover(R._hoverlayer.node()))};C(A,T,M,{width:L.w,height:L.h,margin:{t:L.t,r:L.r,b:L.b,l:L.l}},{linkEvents:{hover:I,follow:W,unhover:V,select:k},nodeEvents:{hover:Z,follow:q,unhover:ae,select:$}})}},83248:function(D,O,t){var l=t(49812),S=t(67756).Gz,i=t(33428),C=t(26800),w=t(48932),v=t(11820),m=t(49760),a=t(76308),n=t(43616),s=t(3400),o=s.strTranslate,h=s.strRotate,f=t(71688),u=f.keyFun,b=f.repeat,p=f.unwrap,E=t(72736),g=t(24040),c=t(84284),y=c.CAP_SHIFT,A=c.LINE_SPACING,M=3;function R(oe,K,ne){var ce=p(K),re=ce.trace,ee=re.domain,de=re.orientation==="h",le=re.node.pad,he=re.node.thickness,xe={justify:C.sankeyJustify,left:C.sankeyLeft,right:C.sankeyRight,center:C.sankeyCenter}[re.node.align],Ee=oe.width*(ee.x[1]-ee.x[0]),Se=oe.height*(ee.y[1]-ee.y[0]),ke=ce._nodes,Te=ce._links,Ae=ce.circular,be;Ae?be=w.sankeyCircular().circularLinkGap(0):be=C.sankey(),be.iterations(v.sankeyIterations).size(de?[Ee,Se]:[Se,Ee]).nodeWidth(he).nodePadding(le).nodeId(function(et){return et.pointNumber}).nodeAlign(xe).nodes(ke).links(Te);var Ie=be();be.nodePadding()=We||(Ze=We-Ye.y0,Ze>1e-6&&(Ye.y0+=Ze,Ye.y1+=Ze)),We=Ye.y1+le})}function rt(et){var Be=et.map(function(Re,Pe){return{x0:Re.x0,index:Pe}}).sort(function(Re,Pe){return Re.x0-Pe.x0}),Ye=[],Ze=-1,We,Fe=-1/0,Me;for(Ue=0;UeFe+he&&(Ze+=1,We=we.x0),Fe=we.x0,Ye[Ze]||(Ye[Ze]=[]),Ye[Ze].push(we),Me=We-we.x0,we.x0+=Me,we.x1+=Me}return Ye}if(re.node.x.length&&re.node.y.length){for(Ue=0;Ue0?"L"+re.targetX+" "+re.targetY:"")+"Z":ne="M "+(re.targetX-K)+" "+(re.targetY-ce)+" L"+(re.rightInnerExtent-K)+" "+(re.targetY-ce)+"A"+(re.rightLargeArcRadius+ce)+" "+(re.rightSmallArcRadius+ce)+" 0 0 0 "+(re.rightFullExtent-ce-K)+" "+(re.targetY+re.rightSmallArcRadius)+"L"+(re.rightFullExtent-ce-K)+" "+re.verticalRightInnerExtent+"A"+(re.rightLargeArcRadius+ce)+" "+(re.rightLargeArcRadius+ce)+" 0 0 0 "+(re.rightInnerExtent-K)+" "+(re.verticalFullExtent+ce)+"L"+re.leftInnerExtent+" "+(re.verticalFullExtent+ce)+"A"+(re.leftLargeArcRadius+ce)+" "+(re.leftLargeArcRadius+ce)+" 0 0 0 "+(re.leftFullExtent+ce)+" "+re.verticalLeftInnerExtent+"L"+(re.leftFullExtent+ce)+" "+(re.sourceY+re.leftSmallArcRadius)+"A"+(re.leftLargeArcRadius+ce)+" "+(re.leftSmallArcRadius+ce)+" 0 0 0 "+re.leftInnerExtent+" "+(re.sourceY-ce)+"L"+re.sourceX+" "+(re.sourceY-ce)+"L"+re.sourceX+" "+(re.sourceY+ce)+"L"+re.leftInnerExtent+" "+(re.sourceY+ce)+"A"+(re.leftLargeArcRadius-ce)+" "+(re.leftSmallArcRadius-ce)+" 0 0 1 "+(re.leftFullExtent-ce)+" "+(re.sourceY+re.leftSmallArcRadius)+"L"+(re.leftFullExtent-ce)+" "+re.verticalLeftInnerExtent+"A"+(re.leftLargeArcRadius-ce)+" "+(re.leftLargeArcRadius-ce)+" 0 0 1 "+re.leftInnerExtent+" "+(re.verticalFullExtent-ce)+"L"+(re.rightInnerExtent-K)+" "+(re.verticalFullExtent-ce)+"A"+(re.rightLargeArcRadius-ce)+" "+(re.rightLargeArcRadius-ce)+" 0 0 1 "+(re.rightFullExtent+ce-K)+" "+re.verticalRightInnerExtent+"L"+(re.rightFullExtent+ce-K)+" "+(re.targetY+re.rightSmallArcRadius)+"A"+(re.rightLargeArcRadius-ce)+" "+(re.rightSmallArcRadius-ce)+" 0 0 1 "+(re.rightInnerExtent-K)+" "+(re.targetY+ce)+"L"+(re.targetX-K)+" "+(re.targetY+ce)+(K>0?"L"+re.targetX+" "+re.targetY:"")+"Z",ne}function P(){var oe=.5;function K(ne){var ce=ne.linkArrowLength;if(ne.link.circular)return L(ne.link,ce);var re=Math.abs((ne.link.target.x0-ne.link.source.x1)/2);ce>re&&(ce=re);var ee=ne.link.source.x1,de=ne.link.target.x0-ce,le=S(ee,de),he=le(oe),xe=le(1-oe),Ee=ne.link.y0-ne.link.width/2,Se=ne.link.y0+ne.link.width/2,ke=ne.link.y1-ne.link.width/2,Te=ne.link.y1+ne.link.width/2,Ae="M"+ee+","+Ee,be="C"+he+","+Ee+" "+xe+","+ke+" "+de+","+ke,Ie="C"+xe+","+Te+" "+he+","+Se+" "+ee+","+Se,Ue=ce>0?"L"+(de+ce)+","+(ke+ne.link.width/2):"";return Ue+="L"+de+","+Te,Ae+be+Ue+Ie+"Z"}return K}function d(oe,K){var ne=m(K.color),ce=v.nodePadAcross,re=oe.nodePad/2;K.dx=K.x1-K.x0,K.dy=K.y1-K.y0;var ee=K.dx,de=Math.max(.5,K.dy),le="node_"+K.pointNumber;return K.group&&(le=s.randstr()),K.trace=oe.trace,K.curveNumber=oe.trace.index,{index:K.pointNumber,key:le,partOfGroup:K.partOfGroup||!1,group:K.group,traceId:oe.key,trace:oe.trace,node:K,nodePad:oe.nodePad,nodeLineColor:oe.nodeLineColor,nodeLineWidth:oe.nodeLineWidth,textFont:oe.textFont,size:oe.horizontal?oe.height:oe.width,visibleWidth:Math.ceil(ee),visibleHeight:de,zoneX:-ce,zoneY:-re,zoneWidth:ee+2*ce,zoneHeight:de+2*re,labelY:oe.horizontal?K.dy/2+1:K.dx/2+1,left:K.originalLayer===1,sizeAcross:oe.width,forceLayouts:oe.forceLayouts,horizontal:oe.horizontal,darkBackground:ne.getBrightness()<=128,tinyColorHue:a.tinyRGB(ne),tinyColorAlpha:ne.getAlpha(),valueFormat:oe.valueFormat,valueSuffix:oe.valueSuffix,sankey:oe.sankey,graph:oe.graph,arrangement:oe.arrangement,uniqueNodeLabelPathId:[oe.guid,oe.key,le].join("_"),interactionState:oe.interactionState,figure:oe}}function k(oe){oe.attr("transform",function(K){return o(K.node.x0.toFixed(3),K.node.y0.toFixed(3))})}function I(oe){oe.call(k)}function N(oe,K){oe.call(I),K.attr("d",P())}function B(oe){oe.attr("width",function(K){return K.node.x1-K.node.x0}).attr("height",function(K){return K.visibleHeight})}function G(oe){return oe.link.width>1||oe.linkLineWidth>0}function U(oe){var K=o(oe.translateX,oe.translateY);return K+(oe.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function H(oe,K,ne){oe.on(".basic",null).on("mouseover.basic",function(ce){!ce.interactionState.dragInProgress&&!ce.partOfGroup&&(ne.hover(this,ce,K),ce.interactionState.hovered=[this,ce])}).on("mousemove.basic",function(ce){!ce.interactionState.dragInProgress&&!ce.partOfGroup&&(ne.follow(this,ce),ce.interactionState.hovered=[this,ce])}).on("mouseout.basic",function(ce){!ce.interactionState.dragInProgress&&!ce.partOfGroup&&(ne.unhover(this,ce,K),ce.interactionState.hovered=!1)}).on("click.basic",function(ce){ce.interactionState.hovered&&(ne.unhover(this,ce,K),ce.interactionState.hovered=!1),!ce.interactionState.dragInProgress&&!ce.partOfGroup&&ne.select(this,ce,K)})}function W(oe,K,ne,ce){var re=i.behavior.drag().origin(function(ee){return{x:ee.node.x0+ee.visibleWidth/2,y:ee.node.y0+ee.visibleHeight/2}}).on("dragstart",function(ee){if(ee.arrangement!=="fixed"&&(s.ensureSingle(ce._fullLayout._infolayer,"g","dragcover",function(le){ce._fullLayout._dragCover=le}),s.raiseToTop(this),ee.interactionState.dragInProgress=ee.node,ie(ee.node),ee.interactionState.hovered&&(ne.nodeEvents.unhover.apply(0,ee.interactionState.hovered),ee.interactionState.hovered=!1),ee.arrangement==="snap")){var de=ee.traceId+"|"+ee.key;ee.forceLayouts[de]?ee.forceLayouts[de].alpha(1):V(oe,de,ee),$(oe,K,ee,de,ce)}}).on("drag",function(ee){if(ee.arrangement!=="fixed"){var de=i.event.x,le=i.event.y;ee.arrangement==="snap"?(ee.node.x0=de-ee.visibleWidth/2,ee.node.x1=de+ee.visibleWidth/2,ee.node.y0=le-ee.visibleHeight/2,ee.node.y1=le+ee.visibleHeight/2):(ee.arrangement==="freeform"&&(ee.node.x0=de-ee.visibleWidth/2,ee.node.x1=de+ee.visibleWidth/2),le=Math.max(0,Math.min(ee.size-ee.visibleHeight/2,le)),ee.node.y0=le-ee.visibleHeight/2,ee.node.y1=le+ee.visibleHeight/2),ie(ee.node),ee.arrangement!=="snap"&&(ee.sankey.update(ee.graph),N(oe.filter(fe(ee)),K))}}).on("dragend",function(ee){if(ee.arrangement!=="fixed"){ee.interactionState.dragInProgress=!1;for(var de=0;de0)window.requestAnimationFrame(ee);else{var he=ne.node.originalX;ne.node.x0=he-ne.visibleWidth/2,ne.node.x1=he+ne.visibleWidth/2,q(ne,re)}})}function Z(oe,K,ne,ce){return function(){for(var ee=0,de=0;de0&&ce.forceLayouts[K].alpha(0)}}function q(oe,K){for(var ne=[],ce=[],re=0;reU&&k[W].gap;)W--;for($=k[W].s,H=k.length-1;H>W;H--)k[H].s=$;for(;UB[p]&&p=0;f--){var u=w[f];if(u.type==="scatter"&&u.xaxis===o.xaxis&&u.yaxis===o.yaxis){u.opacity=void 0;break}}}}}},18800:function(D,O,t){var l=t(3400),S=t(24040),i=t(52904),C=t(88200),w=t(43028),v=t(43980),m=t(31147),a=t(43912),n=t(74428),s=t(66828),o=t(11731),h=t(124),f=t(70840),u=t(3400).coercePattern;D.exports=function(p,E,g,c){function y(k,I){return l.coerce(p,E,i,k,I)}var A=v(p,E,c,y);if(A||(E.visible=!1),!!E.visible){m(p,E,c,y),y("xhoverformat"),y("yhoverformat");var M=a(p,E,c,y);c.scattermode==="group"&&E.orientation===void 0&&y("orientation","v");var R=!M&&A=Math.min(ie,fe)&&p<=Math.max(ie,fe)?0:1/0}var Q=Math.max(3,ae.mrc||0),J=1-1/Q,oe=Math.abs(u.c2p(ae.x)-p);return oe=Math.min(ie,fe)&&E<=Math.max(ie,fe)?0:1/0}var Q=Math.max(3,ae.mrc||0),J=1-1/Q,oe=Math.abs(b.c2p(ae.y)-E);return oene!=Ee>=ne&&(le=ee[re-1][0],he=ee[re][0],Ee-xe&&(de=le+(he-le)*(ne-xe)/(Ee-xe),Q=Math.min(Q,de),J=Math.max(J,de)));return Q=Math.max(Q,0),J=Math.min(J,u._length),{x0:Q,x1:J,y0:ne,y1:ne}}if(c.indexOf("fills")!==-1&&f._fillElement){var $=W(f._fillElement)&&!W(f._fillExclusionElement);if($){var Z=V(f._polygons);Z===null&&(Z={x0:g[0],x1:g[0],y0:g[1],y1:g[1]});var q=w.defaultLine;return w.opacity(f.fillcolor)?q=f.fillcolor:w.opacity((f.line||{}).color)&&(q=f.line.color),l.extendFlat(a,{distance:a.maxHoverDistance,x0:Z.x0,x1:Z.x1,y0:Z.y0,y1:Z.y1,color:q,hovertemplate:!1}),delete a.index,f.text&&!l.isArrayOrTypedArray(f.text)?a.text=String(f.text):a.text=f.name,[a]}}}},65875:function(D,O,t){var l=t(43028);D.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:t(52904),layoutAttributes:t(55308),supplyDefaults:t(18800),crossTraceDefaults:t(35036),supplyLayoutDefaults:t(59748),calc:t(16356).calc,crossTraceCalc:t(96664),arraysToCalcdata:t(20148),plot:t(96504),colorbar:t(5528),formatLabels:t(76688),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(98723),selectPoints:t(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:t(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(D){D.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(D,O,t){var l=t(3400),S=t(55308);D.exports=function(i,C){function w(m,a){return l.coerce(i,C,S,m,a)}var v=C.barmode==="group";C.scattermode==="group"&&w("scattergap",v?C.bargap:.2)}},66828:function(D,O,t){var l=t(3400).isArrayOrTypedArray,S=t(94288).hasColorscale,i=t(27260);D.exports=function(w,v,m,a,n,s){s||(s={});var o=(w.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),n("line.color",m),S(w,"line"))i(w,v,a,n,{prefix:"line.",cLetter:"c"});else{var h=(l(o)?!1:o)||m;n("line.color",h)}n("line.width"),s.noDash||n("line.dash"),s.backoff&&n("line.backoff")}},52340:function(D,O,t){var l=t(43616),S=t(39032),i=S.BADNUM,C=S.LOG_CLIP,w=C+.5,v=C-.5,m=t(3400),a=m.segmentsIntersect,n=m.constrain,s=t(88200);D.exports=function(h,f){var u=f.trace||{},b=f.xaxis,p=f.yaxis,E=b.type==="log",g=p.type==="log",c=b._length,y=p._length,A=f.backoff,M=u.marker,R=f.connectGaps,T=f.baseTolerance,L=f.shape,P=L==="linear",d=u.fill&&u.fill!=="none",k=[],I=s.minTolerance,N=h.length,B=new Array(N),G=0,U,H,W,V,$,Z,q,ae,ie,fe,Q,J,oe,K,ne,ce;function re(yt){var ut=h[yt];if(!ut)return!1;var It=f.linearized?b.l2p(ut.x):b.c2p(ut.x),Vt=f.linearized?p.l2p(ut.y):p.c2p(ut.y);if(It===i){if(E&&(It=b.c2p(ut.x,!0)),It===i)return!1;g&&Vt===i&&(It*=Math.abs(b._m*y*(b._m>0?w:v)/(p._m*c*(p._m>0?w:v)))),It*=1e3}if(Vt===i){if(g&&(Vt=p.c2p(ut.y,!0)),Vt===i)return!1;Vt*=1e3}return[It,Vt]}function ee(yt,ut,It,Vt){var xt=It-yt,Lt=Vt-ut,Xt=.5-yt,dr=.5-ut,Tt=xt*xt+Lt*Lt,Kt=xt*Xt+Lt*dr;if(Kt>0&&Kt1||Math.abs(Xt.y-It[0][1])>1)&&(Xt=[Xt.x,Xt.y],Vt&&xe(Xt,yt)ke||yt[1]Ae)return[n(yt[0],Se,ke),n(yt[1],Te,Ae)]}function nt(yt,ut){if(yt[0]===ut[0]&&(yt[0]===Se||yt[0]===ke)||yt[1]===ut[1]&&(yt[1]===Te||yt[1]===Ae))return!0}function mt(yt,ut){var It=[],Vt=at(yt),xt=at(ut);return Vt&&xt&&nt(Vt,xt)||(Vt&&It.push(Vt),xt&&It.push(xt)),It}function rt(yt,ut,It){return function(Vt,xt){var Lt=at(Vt),Xt=at(xt),dr=[];if(Lt&&Xt&&nt(Lt,Xt))return dr;Lt&&dr.push(Lt),Xt&&dr.push(Xt);var Tt=2*m.constrain((Vt[yt]+xt[yt])/2,ut,It)-((Lt||Vt)[yt]+(Xt||xt)[yt]);if(Tt){var Kt;Lt&&Xt?Kt=Tt>0==Lt[yt]>Xt[yt]?Lt:Xt:Kt=Lt||Xt,Kt[yt]+=Tt}return dr}}var lt;L==="linear"||L==="spline"?lt=vt:L==="hv"||L==="vh"?lt=mt:L==="hvh"?lt=rt(0,Se,ke):L==="vhv"&&(lt=rt(1,Te,Ae));function dt(yt,ut){var It=ut[0]-yt[0],Vt=(ut[1]-yt[1])/It,xt=(yt[1]*ut[0]-ut[1]*yt[0])/It;return xt>0?[Vt>0?Se:ke,Ae]:[Vt>0?ke:Se,Te]}function wt(yt){var ut=yt[0],It=yt[1],Vt=ut===B[G-1][0],xt=It===B[G-1][1];if(!(Vt&&xt))if(G>1){var Lt=ut===B[G-2][0],Xt=It===B[G-2][1];Vt&&(ut===Se||ut===ke)&&Lt?Xt?G--:B[G-1]=yt:xt&&(It===Te||It===Ae)&&Xt?Lt?G--:B[G-1]=yt:B[G++]=yt}else B[G++]=yt}function et(yt){B[G-1][0]!==yt[0]&&B[G-1][1]!==yt[1]&&wt([Ne,ze]),wt(yt),$e=null,Ne=ze=0}var Be=m.isArrayOrTypedArray(M);function Ye(yt){if(yt&&A&&(yt.i=U,yt.d=h,yt.trace=u,yt.marker=Be?M[yt.i]:M,yt.backoff=A),de=yt[0]/c,le=yt[1]/y,Ie=yt[0]ke?ke:0,Ue=yt[1]Ae?Ae:0,Ie||Ue){if(!G)B[G++]=[Ie||yt[0],Ue||yt[1]];else if($e){var ut=lt($e,yt);ut.length>1&&(et(ut[0]),B[G++]=ut[1])}else st=lt(B[G-1],yt)[0],B[G++]=st;var It=B[G-1];Ie&&Ue&&(It[0]!==Ie||It[1]!==Ue)?($e&&(Ne!==Ie&&ze!==Ue?wt(Ne&&ze?dt($e,yt):[Ne||Ie,ze||Ue]):Ne&&ze&&wt([Ne,ze])),wt([Ie,Ue])):Ne-Ie&&ze-Ue&&wt([Ie||Ne,Ue||ze]),$e=yt,Ne=Ie,ze=Ue}else $e&&et(lt($e,yt)[0]),B[G++]=yt}for(U=0;Uhe(Z,Ze))break;W=Z,oe=ie[0]*ae[0]+ie[1]*ae[1],oe>Q?(Q=oe,V=Z,q=!1):oe=h.length||!Z)break;Ye(Z),H=Z}}$e&&wt([Ne||$e[0],ze||$e[1]]),k.push(B.slice(0,G))}var We=L.slice(L.length-1);if(A&&We!=="h"&&We!=="v"){for(var Fe=!1,Me=-1,we=[],Re=0;Re=0?a=f:(a=f=h,h++),a0?Math.max(s,m):0}}},5528:function(D){D.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(D,O,t){var l=t(76308),S=t(94288).hasColorscale,i=t(27260),C=t(43028);D.exports=function(v,m,a,n,s,o){var h=C.isBubble(v),f=(v.line||{}).color,u;if(o=o||{},f&&(a=f),s("marker.symbol"),s("marker.opacity",h?.7:1),s("marker.size"),o.noAngle||(s("marker.angle"),o.noAngleRef||s("marker.angleref"),o.noStandOff||s("marker.standoff")),s("marker.color",a),S(v,"marker")&&i(v,m,n,s,{prefix:"marker.",cLetter:"c"}),o.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),o.noLine||(f&&!Array.isArray(f)&&m.marker.color!==f?u=f:h?u=l.background:u=l.defaultLine,s("marker.line.color",u),S(v,"marker.line")&&i(v,m,n,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",h?1:0)),h&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),o.gradient){var b=s("marker.gradient.type");b!=="none"&&s("marker.gradient.color")}}},31147:function(D,O,t){var l=t(3400).dateTick0,S=t(39032),i=S.ONEWEEK;function C(w,v){return w%i===0?l(v,1):l(v,0)}D.exports=function(v,m,a,n,s){if(s||(s={x:!0,y:!0}),s.x){var o=n("xperiod");o&&(n("xperiod0",C(o,m.xcalendar)),n("xperiodalignment"))}if(s.y){var h=n("yperiod");h&&(n("yperiod0",C(h,m.ycalendar)),n("yperiodalignment"))}}},96504:function(D,O,t){var l=t(33428),S=t(24040),i=t(3400),C=i.ensureSingle,w=i.identity,v=t(43616),m=t(43028),a=t(52340),n=t(14328),s=t(92065).tester;D.exports=function(b,p,E,g,c,y){var A,M,R=!c,T=!!c&&c.duration>0,L=n(b,p,E);if(A=g.selectAll("g.trace").data(L,function(d){return d[0].trace.uid}),A.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),A.order(),o(b,A,p),T){y&&(M=y());var P=l.transition().duration(c.duration).ease(c.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()});P.each(function(){g.selectAll("g.trace").each(function(d,k){h(b,k,p,d,L,this,c)})})}else A.each(function(d,k){h(b,k,p,d,L,this,c)});R&&A.exit().remove(),g.selectAll("path:not([d])").remove()};function o(u,b,p){b.each(function(E){var g=C(l.select(this),"g","fills");v.setClipUrl(g,p.layerClipId,u);var c=E[0].trace,y=[];c._ownfill&&y.push("_ownFill"),c._nexttrace&&y.push("_nextFill");var A=g.selectAll("g").data(y,w);A.enter().append("g"),A.exit().each(function(M){c[M]=null}).remove(),A.order().each(function(M){c[M]=C(l.select(this),"path","js-fill")})})}function h(u,b,p,E,g,c,y){var A=u._context.staticPlot,M;f(u,b,p,E,g);var R=!!y&&y.duration>0;function T(wt){return R?wt.transition():wt}var L=p.xaxis,P=p.yaxis,d=E[0].trace,k=d.line,I=l.select(c),N=C(I,"g","errorbars"),B=C(I,"g","lines"),G=C(I,"g","points"),U=C(I,"g","text");if(S.getComponentMethod("errorbars","plot")(u,N,p,y),d.visible!==!0)return;T(I).style("opacity",d.opacity);var H,W,V=d.fill.charAt(d.fill.length-1);V!=="x"&&V!=="y"&&(V="");var $,Z;V==="y"?($=1,Z=P.c2p(0,!0)):V==="x"&&($=0,Z=L.c2p(0,!0)),E[0][p.isRangePlot?"nodeRangePlot3":"node3"]=I;var q="",ae=[],ie=d._prevtrace,fe=null,Q=null;ie&&(q=ie._prevRevpath||"",W=ie._nextFill,ae=ie._ownPolygons,fe=ie._fillsegments,Q=ie._fillElement);var J,oe,K="",ne="",ce,re,ee,de,le,he,xe=[];d._polygons=[];var Ee=[],Se=[],ke=i.noop;if(H=d._ownFill,m.hasLines(d)||d.fill!=="none"){W&&W.datum(E),["hv","vh","hvh","vhv"].indexOf(k.shape)!==-1?(ce=v.steps(k.shape),re=v.steps(k.shape.split("").reverse().join(""))):k.shape==="spline"?ce=re=function(wt){var et=wt[wt.length-1];return wt.length>1&&wt[0][0]===et[0]&&wt[0][1]===et[1]?v.smoothclosed(wt.slice(1),k.smoothing):v.smoothopen(wt,k.smoothing)}:ce=re=function(wt){return"M"+wt.join("L")},ee=function(wt){return re(wt.reverse())},Se=a(E,{xaxis:L,yaxis:P,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(k.width||1,3)/4,shape:k.shape,backoff:k.backoff,simplify:k.simplify,fill:d.fill}),Ee=new Array(Se.length);var Te=0;for(M=0;M=A[0]&&I.x<=A[1]&&I.y>=M[0]&&I.y<=M[1]}),P=Math.ceil(L.length/T),d=0;g.forEach(function(I,N){var B=I[0].trace;m.hasMarkers(B)&&B.marker.maxdisplayed>0&&N0){var p=a.c2l(u);a._lowerLogErrorBound||(a._lowerLogErrorBound=p),a._lowerErrorBound=Math.min(a._lowerLogErrorBound,p)}}else s[o]=[-h[0]*m,h[1]*m]}return s}function i(w){for(var v=0;v-1?-1:I.indexOf("right")>-1?1:0}function y(I){return I==null?0:I.indexOf("top")>-1?-1:I.indexOf("bottom")>-1?1:0}function A(I){var N=0,B=0,G=[N,B];if(Array.isArray(I))for(var U=0;U=0){var Z=E(V.position,V.delaunayColor,V.delaunayAxis);Z.opacity=I.opacity,this.delaunayMesh?this.delaunayMesh.update(Z):(Z.gl=N,this.delaunayMesh=C(Z),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},p.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function k(I,N){var B=new b(I,N.uid);return B.update(N),B}D.exports=k},83484:function(D,O,t){var l=t(24040),S=t(3400),i=t(43028),C=t(74428),w=t(66828),v=t(124),m=t(91592);D.exports=function(s,o,h,f){function u(M,R){return S.coerce(s,o,m,M,R)}var b=a(s,o,u,f);if(!b){o.visible=!1;return}u("text"),u("hovertext"),u("hovertemplate"),u("xhoverformat"),u("yhoverformat"),u("zhoverformat"),u("mode"),i.hasMarkers(o)&&C(s,o,h,f,u,{noSelect:!0,noAngle:!0}),i.hasLines(o)&&(u("connectgaps"),w(s,o,h,f,u)),i.hasText(o)&&(u("texttemplate"),v(s,o,f,u,{noSelect:!0}));var p=(o.line||{}).color,E=(o.marker||{}).color;u("surfaceaxis")>=0&&u("surfacecolor",p||E);for(var g=["x","y","z"],c=0;c<3;++c){var y="projection."+g[c];u(y+".show")&&(u(y+".opacity"),u(y+".scale"))}var A=l.getComponentMethod("errorbars","supplyDefaults");A(s,o,p||E||h,{axis:"z"}),A(s,o,p||E||h,{axis:"y",inherit:"z"}),A(s,o,p||E||h,{axis:"x",inherit:"z"})};function a(n,s,o,h){var f=0,u=o("x"),b=o("y"),p=o("z"),E=l.getComponentMethod("calendars","handleTraceDefaults");return E(n,s,["x","y","z"],h),u&&b&&p&&(f=Math.min(u.length,b.length,p.length),s._length=s._xlength=s._ylength=s._zlength=f),f}},3296:function(D,O,t){D.exports={plot:t(41064),attributes:t(91592),markerSymbols:t(87792),supplyDefaults:t(83484),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:t(41484),moduleType:"trace",name:"scatter3d",basePlotModule:t(12536),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},90372:function(D,O,t){var l=t(98304),S=t(52904),i=t(45464),C=t(21776).Ks,w=t(21776).Gw,v=t(49084),m=t(92880).extendFlat,a=S.marker,n=S.line,s=a.line;D.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:m({},S.mode,{dflt:"markers"}),text:m({},S.text,{}),texttemplate:w({editType:"plot"},{keys:["a","b","text"]}),hovertext:m({},S.hovertext,{}),line:{color:n.color,width:n.width,dash:n.dash,backoff:n.backoff,shape:m({},n.shape,{values:["linear","spline"]}),smoothing:n.smoothing,editType:"calc"},connectgaps:S.connectgaps,fill:m({},S.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:l(),marker:m({symbol:a.symbol,opacity:a.opacity,maxdisplayed:a.maxdisplayed,angle:a.angle,angleref:a.angleref,standoff:a.standoff,size:a.size,sizeref:a.sizeref,sizemin:a.sizemin,sizemode:a.sizemode,line:m({width:s.width,editType:"calc"},v("marker.line")),gradient:a.gradient,editType:"calc"},v("marker")),textfont:S.textfont,textposition:S.textposition,selected:S.selected,unselected:S.unselected,hoverinfo:m({},i.hoverinfo,{flags:["a","b","text","name"]}),hoveron:S.hoveron,hovertemplate:C()}},48228:function(D,O,t){var l=t(38248),S=t(90136),i=t(20148),C=t(4500),w=t(16356).calcMarkerSize,v=t(50948);D.exports=function(a,n){var s=n._carpetTrace=v(a,n);if(!(!s||!s.visible||s.visible==="legendonly")){var o;n.xaxis=s.xaxis,n.yaxis=s.yaxis;var h=n._length,f=new Array(h),u,b,p=!1;for(o=0;o0?T=M.labelprefix.replace(/ = $/,""):T=M._hovertitle,g.push(T+": "+R.toFixed(3)+M.labelsuffix)}if(!b.hovertemplate){var y=u.hi||b.hoverinfo,A=y.split("+");A.indexOf("all")!==-1&&(A=["a","b","text"]),A.indexOf("a")!==-1&&c(p.aaxis,u.a),A.indexOf("b")!==-1&&c(p.baxis,u.b),g.push("y: "+n.yLabel),A.indexOf("text")!==-1&&S(u,b,g),n.extraText=g.join("
")}return a}},4184:function(D,O,t){D.exports={attributes:t(90372),supplyDefaults:t(6176),colorbar:t(5528),formatLabels:t(52364),calc:t(48228),plot:t(20036),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(58960),selectPoints:t(91560),eventData:t(89307),moduleType:"trace",name:"scattercarpet",basePlotModule:t(57952),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},20036:function(D,O,t){var l=t(96504),S=t(54460),i=t(43616);D.exports=function(w,v,m,a){var n,s,o,h=m[0][0].carpet,f=S.getFromId(w,h.xaxis||"x"),u=S.getFromId(w,h.yaxis||"y"),b={xaxis:f,yaxis:u,plot:v.plot};for(n=0;n")}},36952:function(D,O,t){D.exports={attributes:t(6096),supplyDefaults:t(86188),colorbar:t(5528),formatLabels:t(56696),calc:t(25212),calcGeoJSON:t(48691).calcGeoJSON,plot:t(48691).plot,style:t(25064),styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(64292),eventData:t(58544),selectPoints:t(8796),moduleType:"trace",name:"scattergeo",basePlotModule:t(10816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},48691:function(D,O,t){var l=t(33428),S=t(3400),i=t(59972).getTopojsonFeatures,C=t(44808),w=t(27144),v=t(19280).findExtremes,m=t(39032).BADNUM,a=t(16356).calcMarkerSize,n=t(43028),s=t(25064);function o(f,u,b){var p=u.layers.frontplot.select(".scatterlayer"),E=S.makeTraceGroups(p,b,"trace scattergeo");function g(c,y){c.lonlat[0]===m&&l.select(y).remove()}E.selectAll("*").remove(),E.each(function(c){var y=l.select(this),A=c[0].trace;if(n.hasLines(A)||A.fill!=="none"){var M=C.calcTraceToLineCoords(c),R=A.fill!=="none"?C.makePolygon(M):C.makeLine(M);y.selectAll("path.js-line").data([{geojson:R,trace:A}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}n.hasMarkers(A)&&y.selectAll("path.point").data(S.identity).enter().append("path").classed("point",!0).each(function(T){g(T,this)}),n.hasText(A)&&y.selectAll("g").data(S.identity).enter().append("g").append("text").each(function(T){g(T,this)}),s(f,c)})}function h(f,u){var b=f[0].trace,p=u[b.geo],E=p._subplot,g=b._length,c,y;if(S.isArrayOrTypedArray(b.locations)){var A=b.locationmode,M=A==="geojson-id"?w.extractTraceFeature(f):i(b,E.topojson);for(c=0;c=u,P=T*2,d={},k,I=A.makeCalcdata(c,"x"),N=M.makeCalcdata(c,"y"),B=w(c,A,"x",I),G=w(c,M,"y",N),U=B.vals,H=G.vals;c._x=U,c._y=H,c.xperiodalignment&&(c._origX=I,c._xStarts=B.starts,c._xEnds=B.ends),c.yperiodalignment&&(c._origY=N,c._yStarts=G.starts,c._yEnds=G.ends);var W=new Array(P),V=new Array(T);for(k=0;k1&&S.extendFlat(R.line,o.linePositions(E,c,y)),R.errorX||R.errorY){var T=o.errorBarPositions(E,c,y,A,M);R.errorX&&S.extendFlat(R.errorX,T.x),R.errorY&&S.extendFlat(R.errorY,T.y)}return R.text&&(S.extendFlat(R.text,{positions:y},o.textPosition(E,c,R.text,R.marker)),S.extendFlat(R.textSel,{positions:y},o.textPosition(E,c,R.text,R.markerSel)),S.extendFlat(R.textUnsel,{positions:y},o.textPosition(E,c,R.text,R.markerUnsel))),R}},67072:function(D){var O=20;D.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:O,SYMBOL_STROKE:O/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},84236:function(D,O,t){var l=t(38248),S=t(20472),i=t(72160),C=t(24040),w=t(3400),v=w.isArrayOrTypedArray,m=t(43616),a=t(79811),n=t(33040).formatColor,s=t(43028),o=t(7152),h=t(80088),f=t(67072),u=t(13448).DESELECTDIM,b={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},p=t(10624).appendArrayPointValue;function E(G,U){var H,W={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},V=G._context.plotGlPixelRatio;if(U.visible!==!0)return W;if(s.hasText(U)&&(W.text=g(G,U),W.textSel=A(G,U,U.selected),W.textUnsel=A(G,U,U.unselected)),s.hasMarkers(U)&&(W.marker=c(G,U),W.markerSel=y(G,U,U.selected),W.markerUnsel=y(G,U,U.unselected),!U.unselected&&v(U.marker.opacity))){var $=U.marker.opacity;for(W.markerUnsel.opacity=new Array($.length),H=0;H<$.length;H++)W.markerUnsel.opacity[H]=u*$[H]}if(s.hasLines(U)){W.line={overlay:!0,thickness:U.line.width*V,color:U.line.color,opacity:U.opacity};var Z=(f.DASHES[U.line.dash]||[1]).slice();for(H=0;Hf.TOO_MANY_POINTS||s.hasMarkers(U)?"rect":"round";if(ie&&U.connectgaps){var Q=$[0],J=$[1];for(Z=0;Z<$.length;Z+=2)isNaN($[Z])||isNaN($[Z+1])?($[Z]=Q,$[Z+1]=J):(Q=$[Z],J=$[Z+1])}return{join:fe,positions:$}}function N(G,U,H,W,V){var $=C.getComponentMethod("errorbars","makeComputeError"),Z=a.getFromId(G,U.xaxis,"x"),q=a.getFromId(G,U.yaxis,"y"),ae=H.length/2,ie={};function fe(Q,J){var oe=J._id.charAt(0),K=U["error_"+oe];if(K&&K.visible&&(J.type==="linear"||J.type==="log")){for(var ne=$(K),ce={x:0,y:1}[oe],re={x:[0,1,2,3],y:[2,3,0,1]}[oe],ee=new Float64Array(4*ae),de=1/0,le=-1/0,he=0,xe=0;he1?ae[Z]:ae[0]:ae,oe=v(ie)?ie.length>1?ie[Z]:ie[0]:ie,K=b[J],ne=b[oe],ce=fe?fe/.8+1:0,re=-ne*ce-ne*.5;$.offset[Z]=[K*ce/Q,re/Q]}}return $}D.exports={style:E,markerStyle:c,markerSelection:y,linePositions:I,errorBarPositions:N,textPosition:B}},80220:function(D,O,t){var l=t(3400),S=t(24040),i=t(80088),C=t(2876),w=t(88200),v=t(43028),m=t(43980),a=t(31147),n=t(74428),s=t(66828),o=t(70840),h=t(124);D.exports=function(u,b,p,E){function g(P,d){return l.coerce(u,b,C,P,d)}var c=u.marker?i.isOpenSymbol(u.marker.symbol):!1,y=v.isBubble(u),A=m(u,b,E,g);if(!A){b.visible=!1;return}a(u,b,E,g),g("xhoverformat"),g("yhoverformat");var M=A100},O.isDotSymbol=function(S){return typeof S=="string"?l.DOT_RE.test(S):S>200}},41272:function(D,O,t){var l=t(24040),S=t(3400),i=t(44928);function C(v,m,a,n){var s=v.cd,o=s[0].t,h=s[0].trace,f=v.xa,u=v.ya,b=o.x,p=o.y,E=f.c2p(m),g=u.c2p(a),c=v.distance,y;if(o.tree){var A=f.p2c(E-c),M=f.p2c(E+c),R=u.p2c(g-c),T=u.p2c(g+c);n==="x"?y=o.tree.range(Math.min(A,M),Math.min(u._rl[0],u._rl[1]),Math.max(A,M),Math.max(u._rl[0],u._rl[1])):y=o.tree.range(Math.min(A,M),Math.min(R,T),Math.max(A,M),Math.max(R,T))}else y=o.ids;var L,P,d,k,I,N,B,G,U,H=c;if(n==="x"){var W=!!h.xperiodalignment,V=!!h.yperiodalignment;for(I=0;I=Math.min($,Z)&&E<=Math.max($,Z)?0:1/0}if(N=Math.min(q,ae)&&g<=Math.max(q,ae)?0:1/0}U=Math.sqrt(N*N+B*B),P=y[I]}}}else for(I=y.length-1;I>-1;I--)L=y[I],d=b[L],k=p[L],N=f.c2p(d)-E,B=u.c2p(k)-g,G=Math.sqrt(N*N+B*B),Gc.glText.length){var d=L-c.glText.length;for(M=0;Mde&&(isNaN(ee[le])||isNaN(ee[le+1]));)le-=2;re.positions=ee.slice(de,le+2)}return re}),c.line2d.update(c.lineOptions)),c.error2d){var N=(c.errorXOptions||[]).concat(c.errorYOptions||[]);c.error2d.update(N)}c.scatter2d&&c.scatter2d.update(c.markerOptions),c.fillOrder=w.repeat(null,L),c.fill2d&&(c.fillOptions=c.fillOptions.map(function(re,ee){var de=E[ee];if(!(!re||!de||!de[0]||!de[0].trace)){var le=de[0],he=le.trace,xe=le.t,Ee=c.lineOptions[ee],Se,ke,Te=[];he._ownfill&&Te.push(ee),he._nexttrace&&Te.push(ee+1),Te.length&&(c.fillOrder[ee]=Te);var Ae=[],be=Ee&&Ee.positions||xe.positions,Ie,Ue;if(he.fill==="tozeroy"){for(Ie=0;IeIe&&isNaN(be[Ue+1]);)Ue-=2;be[Ie+1]!==0&&(Ae=[be[Ie],0]),Ae=Ae.concat(be.slice(Ie,Ue+2)),be[Ue+1]!==0&&(Ae=Ae.concat([be[Ue],0]))}else if(he.fill==="tozerox"){for(Ie=0;IeIe&&isNaN(be[Ue]);)Ue-=2;be[Ie]!==0&&(Ae=[0,be[Ie+1]]),Ae=Ae.concat(be.slice(Ie,Ue+2)),be[Ue]!==0&&(Ae=Ae.concat([0,be[Ue+1]]))}else if(he.fill==="toself"||he.fill==="tonext"){for(Ae=[],Se=0,re.splitNull=!0,ke=0;ke-1;for(M=0;M=0?Math.floor((s+180)/360):Math.ceil((s-180)/360),M=A*360,R=s-M;function T(U){var H=U.lonlat;if(H[0]===w||c&&E.indexOf(U.i+1)===-1)return 1/0;var W=S.modHalf(H[0],360),V=H[1],$=p.project([W,V]),Z=$.x-u.c2p([R,V]),q=$.y-b.c2p([W,o]),ae=Math.max(3,U.mrc||0);return Math.max(Math.sqrt(Z*Z+q*q)-ae,1-3/ae)}if(l.getClosest(h,T,n),n.index!==!1){var L=h[n.index],P=L.lonlat,d=[S.modHalf(P[0],360)+M,P[1]],k=u.c2p(d),I=b.c2p(d),N=L.mrc||1;n.x0=k-N,n.x1=k+N,n.y0=I-N,n.y1=I+N;var B={};B[f.subplot]={_subplot:p};var G=f._module.formatLabels(L,f,B);return n.lonLabel=G.lonLabel,n.latLabel=G.latLabel,n.color=i(f,L),n.extraText=a(f,L,h[0].t.labels),n.hovertemplate=f.hovertemplate,[n]}}function a(n,s,o){if(n.hovertemplate)return;var h=s.hi||n.hoverinfo,f=h.split("+"),u=f.indexOf("all")!==-1,b=f.indexOf("lon")!==-1,p=f.indexOf("lat")!==-1,E=s.lonlat,g=[];function c(y){return y+"°"}return u||b&&p?g.push("("+c(E[1])+", "+c(E[0])+")"):b?g.push(o.lon+c(E[0])):p&&g.push(o.lat+c(E[1])),(u||f.indexOf("text")!==-1)&&C(s,n,g),g.join("
")}D.exports={hoverPoints:m,getExtraText:a}},11572:function(D,O,t){D.exports={attributes:t(31512),supplyDefaults:t(15752),colorbar:t(5528),formatLabels:t(11960),calc:t(25212),plot:t(9660),hoverPoints:t(63312).hoverPoints,eventData:t(37920),selectPoints:t(404),styleOnSelect:function(l,S){if(S){var i=S[0].trace;i._glTrace.update(S)}},moduleType:"trace",name:"scattermapbox",basePlotModule:t(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(D,O,t){var l=t(3400),S=t(59392),i=t(47552).traceLayerPrefix,C={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function w(m,a,n,s){this.type="scattermapbox",this.subplot=m,this.uid=a,this.clusterEnabled=n,this.isHidden=s,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:i+a+"-fill",line:i+a+"-line",circle:i+a+"-circle",symbol:i+a+"-symbol",cluster:i+a+"-cluster",clusterCount:i+a+"-cluster-count"},this.below=null}var v=w.prototype;v.addSource=function(m,a,n){var s={type:"geojson",data:a.geojson};n&&n.enabled&&l.extendFlat(s,{cluster:!0,clusterMaxZoom:n.maxzoom});var o=this.subplot.map.getSource(this.sourceIds[m]);o?o.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[m],s)},v.setSourceData=function(m,a){this.subplot.map.getSource(this.sourceIds[m]).setData(a.geojson)},v.addLayer=function(m,a,n){var s={type:a.type,id:this.layerIds[m],source:this.sourceIds[m],layout:a.layout,paint:a.paint};a.filter&&(s.filter=a.filter);for(var o=this.layerIds[m],h,f=this.subplot.getMapLayers(),u=0;u=0;k--){var I=d[k];o.removeLayer(p.layerIds[I])}P||o.removeSource(p.sourceIds.circle)}function c(P){for(var d=C.nonCluster,k=0;k=0;k--){var I=d[k];o.removeLayer(p.layerIds[I]),P||o.removeSource(p.sourceIds[I])}}function A(P){b?g(P):y(P)}function M(P){u?E(P):c(P)}function R(){for(var P=u?C.cluster:C.nonCluster,d=0;d=0;s--){var o=n[s];a.removeLayer(this.layerIds[o]),a.removeSource(this.sourceIds[o])}},D.exports=function(a,n){var s=n[0].trace,o=s.cluster&&s.cluster.enabled,h=s.visible!==!0,f=new w(a,s.uid,o,h),u=S(a.gd,n),b=f.below=a.belowLookup["trace-"+s.uid],p,E,g;if(o)for(f.addSource("circle",u.circle,s.cluster),p=0;p")}}D.exports={hoverPoints:S,makeHoverPointText:i}},76924:function(D,O,t){D.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:t(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:t(8319),supplyDefaults:t(85968).supplyDefaults,colorbar:t(5528),formatLabels:t(22852),calc:t(58320),plot:t(43456),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(8504).hoverPoints,selectPoints:t(91560),meta:{}}},43456:function(D,O,t){var l=t(96504),S=t(39032).BADNUM;D.exports=function(C,w,v){for(var m=w.layers.frontplot.select("g.scatterlayer"),a=w.xaxis,n=w.yaxis,s={xaxis:a,yaxis:n,plot:w.framework,layerClipId:w._hasClipOnAxisFalse?w.clipIds.forTraces:null},o=w.radialAxis,h=w.angularAxis,f=0;f=m&&(R.marker.cluster=c.tree),R.marker&&(R.markerSel.positions=R.markerUnsel.positions=R.marker.positions=d),R.line&&d.length>1&&v.extendFlat(R.line,w.linePositions(s,g,d)),R.text&&(v.extendFlat(R.text,{positions:d},w.textPosition(s,g,R.text,R.marker)),v.extendFlat(R.textSel,{positions:d},w.textPosition(s,g,R.text,R.markerSel)),v.extendFlat(R.textUnsel,{positions:d},w.textPosition(s,g,R.text,R.markerUnsel))),R.fill&&!b.fill2d&&(b.fill2d=!0),R.marker&&!b.scatter2d&&(b.scatter2d=!0),R.line&&!b.line2d&&(b.line2d=!0),R.text&&!b.glText&&(b.glText=!0),b.lineOptions.push(R.line),b.fillOptions.push(R.fill),b.markerOptions.push(R.marker),b.markerSelectedOptions.push(R.markerSel),b.markerUnselectedOptions.push(R.markerUnsel),b.textOptions.push(R.text),b.textSelectedOptions.push(R.textSel),b.textUnselectedOptions.push(R.textUnsel),b.selectBatch.push([]),b.unselectBatch.push([]),c.x=k,c.y=I,c.rawx=k,c.rawy=I,c.r=A,c.theta=M,c.positions=d,c._scene=b,c.index=b.count,b.count++}}),i(s,o,h)}},D.exports.reglPrecompiled=a},69496:function(D,O,t){var l=t(21776).Ks,S=t(21776).Gw,i=t(92880).extendFlat,C=t(98304),w=t(52904),v=t(45464),m=w.line;D.exports={mode:w.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:w.text,texttemplate:S({editType:"plot"},{keys:["real","imag","text"]}),hovertext:w.hovertext,line:{color:m.color,width:m.width,dash:m.dash,backoff:m.backoff,shape:i({},m.shape,{values:["linear","spline"]}),smoothing:m.smoothing,editType:"calc"},connectgaps:w.connectgaps,marker:w.marker,cliponaxis:i({},w.cliponaxis,{dflt:!1}),textposition:w.textposition,textfont:w.textfont,fill:i({},w.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:C(),hoverinfo:i({},v.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:w.hoveron,hovertemplate:l(),selected:w.selected,unselected:w.unselected}},47507:function(D,O,t){var l=t(38248),S=t(39032).BADNUM,i=t(90136),C=t(20148),w=t(4500),v=t(16356).calcMarkerSize;D.exports=function(a,n){for(var s=a._fullLayout,o=n.subplot,h=s[o].realaxis,f=s[o].imaginaryaxis,u=h.makeCalcdata(n,"real"),b=f.makeCalcdata(n,"imag"),p=n._length,E=new Array(p),g=0;g")}}D.exports={hoverPoints:S,makeHoverPointText:i}},95443:function(D,O,t){D.exports={moduleType:"trace",name:"scattersmith",basePlotModule:t(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:t(69496),supplyDefaults:t(76716),colorbar:t(5528),formatLabels:t(49504),calc:t(47507),plot:t(34927),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(25292).hoverPoints,selectPoints:t(91560),meta:{}}},34927:function(D,O,t){var l=t(96504),S=t(39032).BADNUM,i=t(36416),C=i.smith;D.exports=function(v,m,a){for(var n=m.layers.frontplot.select("g.scatterlayer"),s=m.xaxis,o=m.yaxis,h={xaxis:s,yaxis:o,plot:m.framework,layerClipId:m._hasClipOnAxisFalse?m.clipIds.forTraces:null},f=0;f"),a.hovertemplate=u.hovertemplate,m}},34864:function(D,O,t){D.exports={attributes:t(5896),supplyDefaults:t(84256),colorbar:t(5528),formatLabels:t(90404),calc:t(34335),plot:t(88776),style:t(49224).style,styleOnSelect:t(49224).styleOnSelect,hoverPoints:t(26596),selectPoints:t(91560),eventData:t(97476),moduleType:"trace",name:"scatterternary",basePlotModule:t(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(D,O,t){var l=t(96504);D.exports=function(i,C,w){var v=C.plotContainer;v.select(".scatterlayer").selectAll("*").remove();for(var m=C.xaxis,a=C.yaxis,n={xaxis:m,yaxis:a,plot:v,layerClipId:C._hasClipOnAxisFalse?C.clipIdRelative:null},s=C.layers.frontplot.select("g.scatterlayer"),o=0;os,k;for(d?k=p.sizeAvg||Math.max(p.size,3):k=i(f,b),A=0;Ay&&p||c-1,U=C(p)||!!s.selectedpoints||G,H=!0;if(U){var W=s._length;if(s.selectedpoints){h.selectBatch=s.selectedpoints;var V=s.selectedpoints,$={};for(c=0;c1&&(P=a[o-1],k=n[o-1],N=s[o-1]),h=0;hP?"-":"+")+"x"),A=A.replace("y",(d>k?"-":"+")+"y"),A=A.replace("z",(I>N?"-":"+")+"z");var H=function(){o=0,B=[],G=[],U=[]};(!o||o2?p=u.slice(1,b-1):b===2?p=[(u[0]+u[1])/2]:p=u,p}function o(u){var b=u.length;return b===1?[.5,.5]:[u[1]-u[0],u[b-1]-u[b-2]]}function h(u,b){var p=u.fullSceneLayout,E=u.dataScale,g=b._len,c={};function y(fe,Q){var J=p[Q],oe=E[m[Q]];return i.simpleMap(fe,function(K){return J.d2l(K)*oe})}if(c.vectors=v(y(b._u,"xaxis"),y(b._v,"yaxis"),y(b._w,"zaxis"),g),!g)return{positions:[],cells:[]};var A=y(b._Xs,"xaxis"),M=y(b._Ys,"yaxis"),R=y(b._Zs,"zaxis");c.meshgrid=[A,M,R],c.gridFill=b._gridFill;var T=b._slen;if(T)c.startingPositions=v(y(b._startsX,"xaxis"),y(b._startsY,"yaxis"),y(b._startsZ,"zaxis"));else{for(var L=M[0],P=s(A),d=s(R),k=new Array(P.length*d.length),I=0,N=0;N=0},k,I,N;E?(k=Math.min(p.length,c.length),I=function(K){return P(p[K])&&d(K)},N=function(K){return String(p[K])}):(k=Math.min(g.length,c.length),I=function(K){return P(g[K])&&d(K)},N=function(K){return String(g[K])}),A&&(k=Math.min(k,y.length));for(var B=0;B1){for(var $=i.randstr(),Z=0;Z=0){w.i=n.i;var h=v.marker;h.pattern?(!h.colors||!h.pattern.shape)&&(h.color=o,w.color=o):(h.color=o,w.color=o),l.pointStyle(C,v,m,w)}else S.fill(C,o)}},45716:function(D,O,t){var l=t(33428),S=t(24040),i=t(10624).appendArrayPointValue,C=t(93024),w=t(3400),v=t(95924),m=t(78176),a=t(69656),n=a.formatPieValue;D.exports=function(h,f,u,b,p){var E=b[0],g=E.trace,c=E.hierarchy,x=g.type==="sunburst",A=g.type==="treemap"||g.type==="icicle";"_hasHoverLabel"in g||(g._hasHoverLabel=!1),"_hasHoverEvent"in g||(g._hasHoverEvent=!1);var M=function(L){var P=u._fullLayout;if(!(u._dragging||P.hovermode===!1)){var d=u._fullData[g.index],k=L.data.data,I=k.i,N=m.isHierarchyRoot(L),B=m.getParent(c,L),G=m.getValue(L),U=function(ee){return w.castOption(d,I,ee)},H=U("hovertemplate"),W=C.castHoverinfo(d,P,I),V=P.separators,$;if(H||W&&W!=="none"&&W!=="skip"){var Z,q;x&&(Z=E.cx+L.pxmid[0]*(1-L.rInscribed),q=E.cy+L.pxmid[1]*(1-L.rInscribed)),A&&(Z=L._hoverX,q=L._hoverY);var ae={},ie=[],fe=[],Q=function(ee){return ie.indexOf(ee)!==-1};W&&(ie=W==="all"?d._module.attributes.hoverinfo.flags:W.split("+")),ae.label=k.label,Q("label")&&ae.label&&fe.push(ae.label),k.hasOwnProperty("v")&&(ae.value=k.v,ae.valueLabel=n(ae.value,V),Q("value")&&fe.push(ae.valueLabel)),ae.currentPath=L.currentPath=m.getPath(L.data),Q("current path")&&!N&&fe.push(ae.currentPath);var J,oe=[],K=function(){oe.indexOf(J)===-1&&(fe.push(J),oe.push(J))};ae.percentParent=L.percentParent=G/m.getValue(B),ae.parent=L.parentString=m.getPtLabel(B),Q("percent parent")&&(J=m.formatPercent(ae.percentParent,V)+" of "+ae.parent,K()),ae.percentEntry=L.percentEntry=G/m.getValue(f),ae.entry=L.entry=m.getPtLabel(f),Q("percent entry")&&!N&&!L.onPathbar&&(J=m.formatPercent(ae.percentEntry,V)+" of "+ae.entry,K()),ae.percentRoot=L.percentRoot=G/m.getValue(c),ae.root=L.root=m.getPtLabel(c),Q("percent root")&&!N&&(J=m.formatPercent(ae.percentRoot,V)+" of "+ae.root,K()),ae.text=U("hovertext")||U("text"),Q("text")&&(J=ae.text,w.isValidTextValue(J)&&fe.push(J)),$=[s(L,d,p.eventDataKeys)];var ne={trace:d,y:q,_x0:L._x0,_x1:L._x1,_y0:L._y0,_y1:L._y1,text:fe.join("
"),name:H||Q("name")?d.name:void 0,color:U("hoverlabel.bgcolor")||k.color,borderColor:U("hoverlabel.bordercolor"),fontFamily:U("hoverlabel.font.family"),fontSize:U("hoverlabel.font.size"),fontColor:U("hoverlabel.font.color"),nameLength:U("hoverlabel.namelength"),textAlign:U("hoverlabel.align"),hovertemplate:H,hovertemplateLabels:ae,eventData:$};x&&(ne.x0=Z-L.rInscribed*L.rpx1,ne.x1=Z+L.rInscribed*L.rpx1,ne.idealAlign=L.pxmid[0]<0?"left":"right"),A&&(ne.x=Z,ne.idealAlign=Z<0?"left":"right");var ce=[];C.loneHover(ne,{container:P._hoverlayer.node(),outerContainer:P._paper.node(),gd:u,inOut_bbox:ce}),$[0].bbox=ce[0],g._hasHoverLabel=!0}if(A){var re=h.select("path.surface");p.styleOne(re,L,d,u,{hovered:!0})}g._hasHoverEvent=!0,u.emit("plotly_hover",{points:$||[s(L,d,p.eventDataKeys)],event:l.event})}},R=function(L){var P=u._fullLayout,d=u._fullData[g.index],k=l.select(this).datum();if(g._hasHoverEvent&&(L.originalEvent=l.event,u.emit("plotly_unhover",{points:[s(k,d,p.eventDataKeys)],event:l.event}),g._hasHoverEvent=!1),g._hasHoverLabel&&(C.loneUnhover(P._hoverlayer.node()),g._hasHoverLabel=!1),A){var I=h.select("path.surface");p.styleOne(I,k,d,u,{hovered:!1})}},T=function(L){var P=u._fullLayout,d=u._fullData[g.index],k=x&&(m.isHierarchyRoot(L)||m.isLeaf(L)),I=m.getPtId(L),N=m.isEntry(L)?m.findEntryWithChild(c,I):m.findEntryWithLevel(c,I),B=m.getPtId(N),G={points:[s(L,d,p.eventDataKeys)],event:l.event};k||(G.nextLevel=B);var U=v.triggerHandler(u,"plotly_"+g.type+"click",G);if(U!==!1&&P.hovermode&&(u._hoverdata=[s(L,d,p.eventDataKeys)],C.click(u,l.event)),!k&&U!==!1&&!u._dragging&&!u._transitioning){S.call("_storeDirectGUIEdit",d,P._tracePreGUI[d.uid],{level:d.level});var H={data:[{level:B}],traces:[g.index]},W={frame:{redraw:!1,duration:p.transitionTime},transition:{duration:p.transitionTime,easing:p.transitionEasing},mode:"immediate",fromcurrent:!0};C.loneUnhover(P._hoverlayer.node()),S.call("animate",u,H,W)}};h.on("mouseover",M),h.on("mouseout",R),h.on("click",T)};function s(o,h,f){for(var u=o.data.data,b={curveNumber:h.index,pointNumber:u.i,data:h._input,fullData:h},p=0;p0)},O.getMaxDepth=function(a){return a.maxdepth>=0?a.maxdepth:1/0},O.isHeader=function(a,n){return!(O.isLeaf(a)||a.depth===n._maxDepth-1)};function m(a){return a.data.data.pid}O.getParent=function(a,n){return O.findEntryWithLevel(a,m(n))},O.listPath=function(a,n){var s=a.parent;if(!s)return[];var o=n?[s.data[n]]:[s];return O.listPath(s,n).concat(o)},O.getPath=function(a){return O.listPath(a,"label").join("/")+"/"},O.formatValue=C.formatPieValue,O.formatPercent=function(a,n){var s=l.formatPercent(a,0);return s==="0%"&&(s=C.formatPiePercent(a,n)),s}},5621:function(D,O,t){D.exports={moduleType:"trace",name:"sunburst",basePlotModule:t(54904),categories:[],animatable:!0,attributes:t(424),layoutAttributes:t(84920),supplyDefaults:t(25244),supplyLayoutDefaults:t(28732),calc:t(3776).calc,crossTraceCalc:t(3776).crossTraceCalc,plot:t(96488).plot,style:t(85676).style,colorbar:t(5528),meta:{}}},84920:function(D){D.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(D,O,t){var l=t(3400),S=t(84920);D.exports=function(C,w){function v(m,a){return l.coerce(C,w,S,m,a)}v("sunburstcolorway",w.colorway),v("extendsunburstcolors")}},96488:function(D,O,t){var l=t(33428),S=t(74148),i=t(67756).qy,C=t(43616),w=t(3400),v=t(72736),m=t(82744),a=m.recordMinTextSize,n=m.clearMinTextSize,s=t(37820),o=t(69656).getRotationAngle,h=s.computeTransform,f=s.transformInsideText,u=t(85676).styleOne,b=t(60100).resizeText,p=t(45716),E=t(27328),g=t(78176);O.plot=function(T,L,P,d){var k=T._fullLayout,I=k._sunburstlayer,N,B,G=!P,U=!k.uniformtext.mode&&g.hasTransition(P);if(n("sunburst",k),N=I.selectAll("g.trace.sunburst").data(L,function(W){return W[0].trace.uid}),N.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),N.order(),U){d&&(B=d());var H=l.transition().duration(P.duration).ease(P.easing).each("end",function(){B&&B()}).each("interrupt",function(){B&&B()});H.each(function(){I.selectAll("g.trace").each(function(W){c(T,W,this,P)})})}else N.each(function(W){c(T,W,this,P)}),k.uniformtext.mode&&b(T,k._sunburstlayer.selectAll(".trace"),"sunburst");G&&N.exit().remove()};function c(T,L,P,d){var k=T._context.staticPlot,I=T._fullLayout,N=!I.uniformtext.mode&&g.hasTransition(d),B=l.select(P),G=B.selectAll("g.slice"),U=L[0],H=U.trace,W=U.hierarchy,V=g.findEntryWithLevel(W,H.level),$=g.getMaxDepth(H),Z=I._size,q=H.domain,ae=Z.w*(q.x[1]-q.x[0]),ie=Z.h*(q.y[1]-q.y[0]),fe=.5*Math.min(ae,ie),Q=U.cx=Z.l+Z.w*(q.x[1]+q.x[0])/2,J=U.cy=Z.t+Z.h*(1-q.y[0])-ie/2;if(!V)return G.remove();var oe=null,K={};N&&G.each(function($e){K[g.getPtId($e)]={rpx0:$e.rpx0,rpx1:$e.rpx1,x0:$e.x0,x1:$e.x1,transform:$e.transform},!oe&&g.isEntry($e)&&(oe=$e)});var ne=x(V).descendants(),ce=V.height+1,re=0,ee=$;U.hasMultipleRoots&&g.isHierarchyRoot(V)&&(ne=ne.slice(1),ce-=1,re=1,ee+=1),ne=ne.filter(function($e){return $e.y1<=ee});var de=o(H.rotation);de&&ne.forEach(function($e){$e.x0+=de,$e.x1+=de});var le=Math.min(ce,$),he=function($e){return($e-re)/le*fe},xe=function($e,st){return[$e*Math.cos(st),-$e*Math.sin(st)]},Ee=function($e){return w.pathAnnulus($e.rpx0,$e.rpx1,$e.x0,$e.x1,Q,J)},Se=function($e){return Q+M($e)[0]*($e.transform.rCenter||0)+($e.transform.x||0)},ke=function($e){return J+M($e)[1]*($e.transform.rCenter||0)+($e.transform.y||0)};G=G.data(ne,g.getPtId),G.enter().append("g").classed("slice",!0),N?G.exit().transition().each(function(){var $e=l.select(this),st=$e.select("path.surface");st.transition().attrTween("d",function(at){var nt=Ie(at);return function(mt){return Ee(nt(mt))}});var vt=$e.select("g.slicetext");vt.attr("opacity",0)}).remove():G.exit().remove(),G.order();var Te=null;if(N&&oe){var Ae=g.getPtId(oe);G.each(function($e){Te===null&&g.getPtId($e)===Ae&&(Te=$e.x1)})}var be=G;N&&(be=be.transition().each("end",function(){var $e=l.select(this);g.setSliceCursor($e,T,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),be.each(function($e){var st=l.select(this),vt=w.ensureSingle(st,"path","surface",function(dt){dt.style("pointer-events",k?"none":"all")});$e.rpx0=he($e.y0),$e.rpx1=he($e.y1),$e.xmid=($e.x0+$e.x1)/2,$e.pxmid=xe($e.rpx1,$e.xmid),$e.midangle=-($e.xmid-Math.PI/2),$e.startangle=-($e.x0-Math.PI/2),$e.stopangle=-($e.x1-Math.PI/2),$e.halfangle=.5*Math.min(w.angleDelta($e.x0,$e.x1)||Math.PI,Math.PI),$e.ring=1-$e.rpx0/$e.rpx1,$e.rInscribed=A($e),N?vt.transition().attrTween("d",function(dt){var wt=Ue(dt);return function(et){return Ee(wt(et))}}):vt.attr("d",Ee),st.call(p,V,T,L,{eventDataKeys:E.eventDataKeys,transitionTime:E.CLICK_TRANSITION_TIME,transitionEasing:E.CLICK_TRANSITION_EASING}).call(g.setSliceCursor,T,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:T._transitioning}),vt.call(u,$e,H,T);var at=w.ensureSingle(st,"g","slicetext"),nt=w.ensureSingle(at,"text","",function(dt){dt.attr("data-notex",1)}),mt=w.ensureUniformFontSize(T,g.determineTextFont(H,$e,I.font));nt.text(O.formatSliceLabel($e,V,H,L,I)).classed("slicetext",!0).attr("text-anchor","middle").call(C.font,mt).call(v.convertToTspans,T);var rt=C.bBox(nt.node());$e.transform=f(rt,$e,U),$e.transform.targetX=Se($e),$e.transform.targetY=ke($e);var lt=function(dt,wt){var et=dt.transform;return h(et,wt),et.fontSize=mt.size,a(H.type,et,I),w.getTextTransform(et)};N?nt.transition().attrTween("transform",function(dt){var wt=Ne(dt);return function(et){return lt(wt(et),rt)}}):nt.attr("transform",lt($e,rt))});function Ie($e){var st=g.getPtId($e),vt=K[st],at=K[g.getPtId(V)],nt;if(at){var mt=($e.x1>at.x1?2*Math.PI:0)+de;nt=$e.rpx1Te?2*Math.PI:0)+de;vt={x0:nt,x1:nt}}else vt={rpx0:fe,rpx1:fe},w.extendFlat(vt,ze($e));else vt={rpx0:0,rpx1:0};else vt={x0:de,x1:de};return i(vt,at)}function Ne($e){var st=K[g.getPtId($e)],vt,at=$e.transform;if(st)vt=st;else if(vt={rpx1:$e.rpx1,transform:{textPosAngle:at.textPosAngle,scale:0,rotate:at.rotate,rCenter:at.rCenter,x:at.x,y:at.y}},oe)if($e.parent)if(Te){var nt=$e.x1>Te?2*Math.PI:0;vt.x0=vt.x1=nt}else w.extendFlat(vt,ze($e));else vt.x0=vt.x1=de;else vt.x0=vt.x1=de;var mt=i(vt.transform.textPosAngle,$e.transform.textPosAngle),rt=i(vt.rpx1,$e.rpx1),lt=i(vt.x0,$e.x0),dt=i(vt.x1,$e.x1),wt=i(vt.transform.scale,at.scale),et=i(vt.transform.rotate,at.rotate),Be=at.rCenter===0?3:vt.transform.rCenter===0?1/3:1,Ye=i(vt.transform.rCenter,at.rCenter),Ke=function(We){return Ye(Math.pow(We,Be))};return function(We){var Fe=rt(We),Me=lt(We),we=dt(We),Re=Ke(We),Pe=xe(Fe,(Me+we)/2),Ve=mt(We),Je={pxmid:Pe,rpx1:Fe,transform:{textPosAngle:Ve,rCenter:Re,x:at.x,y:at.y}};return a(H.type,at,I),{transform:{targetX:Se(Je),targetY:ke(Je),scale:wt(We),rotate:et(We),rCenter:Re}}}}function ze($e){var st=$e.parent,vt=K[g.getPtId(st)],at={};if(vt){var nt=st.children,mt=nt.indexOf($e),rt=nt.length,lt=i(vt.x0,vt.x1);at.x0=lt(mt/rt),at.x1=lt(mt/rt)}else at.x0=at.x1=0;return at}}function x(T){return S.partition().size([2*Math.PI,T.height+1])(T)}O.formatSliceLabel=function(T,L,P,d,k){var I=P.texttemplate,N=P.textinfo;if(!I&&(!N||N==="none"))return"";var B=k.separators,G=d[0],U=T.data.data,H=G.hierarchy,W=g.isHierarchyRoot(T),V=g.getParent(H,T),$=g.getValue(T);if(!I){var Z=N.split("+"),q=function(re){return Z.indexOf(re)!==-1},ae=[],ie;if(q("label")&&U.label&&ae.push(U.label),U.hasOwnProperty("v")&&q("value")&&ae.push(g.formatValue(U.v,B)),!W){q("current path")&&ae.push(g.getPath(T.data));var fe=0;q("percent parent")&&fe++,q("percent entry")&&fe++,q("percent root")&&fe++;var Q=fe>1;if(fe){var J,oe=function(re){ie=g.formatPercent(J,B),Q&&(ie+=" of "+re),ae.push(ie)};q("percent parent")&&!W&&(J=$/g.getValue(V),oe("parent")),q("percent entry")&&(J=$/g.getValue(L),oe("entry")),q("percent root")&&(J=$/g.getValue(H),oe("root"))}}return q("text")&&(ie=w.castOption(P,U.i,"text"),w.isValidTextValue(ie)&&ae.push(ie)),ae.join("
")}var K=w.castOption(P,U.i,"texttemplate");if(!K)return"";var ne={};U.label&&(ne.label=U.label),U.hasOwnProperty("v")&&(ne.value=U.v,ne.valueLabel=g.formatValue(U.v,B)),ne.currentPath=g.getPath(T.data),W||(ne.percentParent=$/g.getValue(V),ne.percentParentLabel=g.formatPercent(ne.percentParent,B),ne.parent=g.getPtLabel(V)),ne.percentEntry=$/g.getValue(L),ne.percentEntryLabel=g.formatPercent(ne.percentEntry,B),ne.entry=g.getPtLabel(L),ne.percentRoot=$/g.getValue(H),ne.percentRootLabel=g.formatPercent(ne.percentRoot,B),ne.root=g.getPtLabel(H),U.hasOwnProperty("color")&&(ne.color=U.color);var ce=w.castOption(P,U.i,"text");return(w.isValidTextValue(ce)||ce==="")&&(ne.text=ce),ne.customdata=w.castOption(P,U.i,"customdata"),w.texttemplateString(K,ne,k._d3locale,ne,P._meta||{})};function A(T){return T.rpx0===0&&w.isFullCircle([T.x0,T.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(T.halfangle)),T.ring/2))}function M(T){return R(T.rpx1,T.transform.textPosAngle)}function R(T,L){return[T*Math.sin(L),-T*Math.cos(L)]}},85676:function(D,O,t){var l=t(33428),S=t(76308),i=t(3400),C=t(82744).resizeText,w=t(60404);function v(a){var n=a._fullLayout._sunburstlayer.selectAll(".trace");C(a,n,"sunburst"),n.each(function(s){var o=l.select(this),h=s[0],f=h.trace;o.style("opacity",f.opacity),o.selectAll("path.surface").each(function(u){l.select(this).call(m,u,f,a)})})}function m(a,n,s,o){var h=n.data.data,f=!n.children,u=h.i,b=i.castOption(s,u,"marker.line.color")||S.defaultLine,p=i.castOption(s,u,"marker.line.width")||0;a.call(w,n,s,o).style("stroke-width",p).call(S.stroke,b).style("opacity",f?s.leaf.opacity:null)}D.exports={style:v,styleOne:m}},16716:function(D,O,t){var l=t(76308),S=t(49084),i=t(29736).axisHoverFormat,C=t(21776).Ks,w=t(45464),v=t(92880).extendFlat,m=t(67824).overrideAll;function a(o){return{valType:"boolean",dflt:!1}}function n(o){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:a(),y:a(),z:a()},color:{valType:"color",dflt:l.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:l.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var s=D.exports=m(v({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:C(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},S("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:n(),y:n(),z:n()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:v({},S.zauto,{}),zmin:v({},S.zmin,{}),zmax:v({},S.zmax,{})},hoverinfo:v({},w.hoverinfo),showlegend:v({},w.showlegend,{dflt:!1})}),"calc","nested");s.x.editType=s.y.editType=s.z.editType="calc+clearAxisTypes",s.transforms=void 0},56576:function(D,O,t){var l=t(47128);D.exports=function(i,C){C.surfacecolor?l(i,C,{vals:C.surfacecolor,containerStr:"",cLetter:"c"}):l(i,C,{vals:C.z,containerStr:"",cLetter:"c"})}},79164:function(D,O,t){var l=t(67792).gl_surface3d,S=t(67792).ndarray,i=t(67792).ndarray_linear_interpolate.d2,C=t(70448),w=t(11240),v=t(3400).isArrayOrTypedArray,m=t(33040).parseColorScale,a=t(43080),n=t(8932).extractOpts;function s(d,k,I){this.scene=d,this.uid=I,this.surface=k,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var o=s.prototype;o.getXat=function(d,k,I,N){var B=v(this.data.x)?v(this.data.x[0])?this.data.x[k][d]:this.data.x[d]:d;return I===void 0?B:N.d2l(B,0,I)},o.getYat=function(d,k,I,N){var B=v(this.data.y)?v(this.data.y[0])?this.data.y[k][d]:this.data.y[k]:k;return I===void 0?B:N.d2l(B,0,I)},o.getZat=function(d,k,I,N){var B=this.data.z[k][d];return B===null&&this.data.connectgaps&&this.data._interpolatedZ&&(B=this.data._interpolatedZ[k][d]),I===void 0?B:N.d2l(B,0,I)},o.handlePick=function(d){if(d.object===this.surface){var k=(d.data.index[0]-1)/this.dataScaleX-1,I=(d.data.index[1]-1)/this.dataScaleY-1,N=Math.max(Math.min(Math.round(k),this.data.z[0].length-1),0),B=Math.max(Math.min(Math.round(I),this.data._ylength-1),0);d.index=[N,B],d.traceCoordinate=[this.getXat(N,B),this.getYat(N,B),this.getZat(N,B)],d.dataCoordinate=[this.getXat(N,B,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(N,B,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(N,B,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var G=0;G<3;G++){var U=d.dataCoordinate[G];U!=null&&(d.dataCoordinate[G]*=this.scene.dataScale[G])}var H=this.data.hovertext||this.data.text;return v(H)&&H[B]&&H[B][N]!==void 0?d.textLabel=H[B][N]:H?d.textLabel=H:d.textLabel="",d.data.dataCoordinate=d.dataCoordinate.slice(),this.surface.highlight(d.data),this.scene.glplot.spikes.position=d.dataCoordinate,!0}};function h(d){var k=d[0].rgb,I=d[d.length-1].rgb;return k[0]===I[0]&&k[1]===I[1]&&k[2]===I[2]&&k[3]===I[3]}var f=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function u(d,k){if(d0){I=f[N];break}return I}function E(d,k){if(!(d<1||k<1)){for(var I=b(d),N=b(k),B=1,G=0;GA;)N--,N/=p(N),N++,N1?B:1};function M(d,k,I){var N=I[8]+I[2]*k[0]+I[5]*k[1];return d[0]=(I[6]+I[0]*k[0]+I[3]*k[1])/N,d[1]=(I[7]+I[1]*k[0]+I[4]*k[1])/N,d}function R(d,k,I){return T(d,k,M,I),d}function T(d,k,I,N){for(var B=[0,0],G=d.shape[0],U=d.shape[1],H=0;H0&&this.contourStart[N]!==null&&this.contourEnd[N]!==null&&this.contourEnd[N]>this.contourStart[N]))for(k[N]=!0,B=this.contourStart[N];Bq&&(this.minValues[V]=q),this.maxValues[V]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(D,O,t){var l=t(23536),S=t(92880).extendFlat,i=t(38248),C=t(38116).isTypedArray,w=t(38116).isArrayOrTypedArray;D.exports=function(b,p){var E=a(p.cells.values),g=function(q){return q.slice(p.header.values.length,q.length)},c=a(p.header.values);c.length&&!c[0].length&&(c[0]=[""],c=a(c));var x=c.concat(g(E).map(function(){return n((c[0]||[""]).length)})),A=p.domain,M=Math.floor(b._fullLayout._size.w*(A.x[1]-A.x[0])),R=Math.floor(b._fullLayout._size.h*(A.y[1]-A.y[0])),T=p.header.values.length?x[0].map(function(){return p.header.height}):[l.emptyHeaderHeight],L=E.length?E[0].map(function(){return p.cells.height}):[],P=T.reduce(m,0),d=R-P,k=d+l.uplift,I=h(L,k),N=h(T,P),B=o(N,[]),G=o(I,B),U={},H=p._fullInput.columnorder;w(H)&&(H=Array.from(H)),H=H.concat(g(E.map(function(q,ae){return ae})));var W=x.map(function(q,ae){var ie=w(p.columnwidth)?p.columnwidth[Math.min(ae,p.columnwidth.length-1)]:p.columnwidth;return i(ie)?Number(ie):1}),V=W.reduce(m,0);W=W.map(function(q){return q/V*M});var $=Math.max(v(p.header.line.width),v(p.cells.line.width)),Z={key:p.uid+b._context.staticPlot,translateX:A.x[0]*b._fullLayout._size.w,translateY:b._fullLayout._size.h*(1-A.y[1]),size:b._fullLayout._size,width:M,maxLineWidth:$,height:R,columnOrder:H,groupHeight:R,rowBlocks:G,headerRowBlocks:B,scrollY:0,cells:S({},p.cells,{values:E}),headerCells:S({},p.header,{values:x}),gdColumns:x.map(function(q){return q[0]}),gdColumnsOriginalOrder:x.map(function(q){return q[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:x.map(function(q,ae){var ie=U[q];U[q]=(ie||0)+1;var fe=q+"__"+U[q];return{key:fe,label:q,specIndex:ae,xIndex:H[ae],xScale:s,x:void 0,calcdata:void 0,columnWidth:W[ae]}})};return Z.columns.forEach(function(q){q.calcdata=Z,q.x=s(q)}),Z};function v(u){if(w(u)){for(var b=0,p=0;p=b||R===u.length-1)&&(p[g]=x,x.key=M++,x.firstRowIndex=A,x.lastRowIndex=R,x=f(),g+=c,A=R+1,c=0);return p}function f(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}},53056:function(D,O,t){var l=t(92880).extendFlat;O.splitToPanels=function(i){var C=[0,0],w=l({},i,{key:"header",type:"header",page:0,prevPages:C,currentRepaint:[null,null],dragHandle:!0,values:i.calcdata.headerCells.values[i.specIndex],rowBlocks:i.calcdata.headerRowBlocks,calcdata:l({},i.calcdata,{cells:i.calcdata.headerCells})}),v=l({},i,{key:"cells1",type:"cells",page:0,prevPages:C,currentRepaint:[null,null],dragHandle:!1,values:i.calcdata.cells.values[i.specIndex],rowBlocks:i.calcdata.rowBlocks}),m=l({},i,{key:"cells2",type:"cells",page:1,prevPages:C,currentRepaint:[null,null],dragHandle:!1,values:i.calcdata.cells.values[i.specIndex],rowBlocks:i.calcdata.rowBlocks});return[v,m,w]},O.splitToCells=function(i){var C=S(i);return(i.values||[]).slice(C[0],C[1]).map(function(w,v){var m=typeof w=="string"&&w.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:v+m,key:C[0]+v,column:i,calcdata:i.calcdata,page:i.page,rowBlocks:i.rowBlocks,value:w}})};function S(i){var C=i.rowBlocks[i.page],w=C?C.rows[0].rowIndex:0,v=C?w+C.rows.length:0;return[w,v]}},53212:function(D,O,t){var l=t(3400),S=t(60520),i=t(86968).Q;function C(w,v){for(var m=w.columnorder||[],a=w.header.values.length,n=m.slice(0,a),s=n.slice().sort(function(f,u){return f-u}),o=n.map(function(f){return s.indexOf(f)}),h=o.length;h/i),be=!Te||Ae;xe.mayHaveMarkup=Te&&ke.match(/[<&>]/);var Ie=I(ke);xe.latex=Ie;var Ue=Ie?"":G(xe.calcdata.cells.prefix,Ee,Se)||"",Ne=Ie?"":G(xe.calcdata.cells.suffix,Ee,Se)||"",ze=Ie?null:G(xe.calcdata.cells.format,Ee,Se)||null,$e=Ue+(ze?C(ze)(xe.value):xe.value)+Ne,st;xe.wrappingNeeded=!xe.wrapped&&!be&&!Ie&&(st=N($e)),xe.cellHeightMayIncrease=Ae||Ie||xe.mayHaveMarkup||(st===void 0?N($e):st),xe.needsConvertToTspans=xe.mayHaveMarkup||xe.wrappingNeeded||xe.latex;var vt;if(xe.wrappingNeeded){var at=l.wrapSplitCharacter===" "?$e.replace(/xe&&he.push(Ee),xe+=Te}return he}function Z(ee,de,le){var he=E(de)[0];if(he!==void 0){var xe=he.rowBlocks,Ee=he.calcdata,Se=oe(xe,xe.length),ke=he.calcdata.groupHeight-V(he),Te=Ee.scrollY=Math.max(0,Math.min(Se-ke,Ee.scrollY)),Ae=$(xe,Te,ke);Ae.length===1&&(Ae[0]===xe.length-1?Ae.unshift(Ae[0]-1):Ae.push(Ae[0]+1)),Ae[0]%2&&Ae.reverse(),de.each(function(be,Ie){be.page=Ae[Ie],be.scrollY=Te}),de.attr("transform",function(be){var Ie=oe(be.rowBlocks,be.page)-be.scrollY;return n(0,Ie)}),ee&&(ae(ee,le,de,Ae,he.prevPages,he,0),ae(ee,le,de,Ae,he.prevPages,he,1),g(le,ee))}}function q(ee,de,le,he){return function(Ee){var Se=Ee.calcdata?Ee.calcdata:Ee,ke=de.filter(function(Ie){return Se.key===Ie.key}),Te=le||Se.scrollbarState.dragMultiplier,Ae=Se.scrollY;Se.scrollY=he===void 0?Se.scrollY+Te*S.event.dy:he;var be=ke.selectAll("."+l.cn.yColumn).selectAll("."+l.cn.columnBlock).filter(H);return Z(ee,be,ke),Se.scrollY===Ae}}function ae(ee,de,le,he,xe,Ee,Se){var ke=he[Se]!==xe[Se];ke&&(clearTimeout(Ee.currentRepaint[Se]),Ee.currentRepaint[Se]=setTimeout(function(){var Te=le.filter(function(Ae,be){return be===Se&&he[be]!==xe[be]});c(ee,de,Te,le),xe[Se]=he[Se]}))}function ie(ee,de,le,he){return function(){var Ee=S.select(de.parentNode);Ee.each(function(Se){var ke=Se.fragments;Ee.selectAll("tspan.line").each(function($e,st){ke[st].width=this.getComputedTextLength()});var Te=ke[ke.length-1].width,Ae=ke.slice(0,-1),be=[],Ie,Ue,Ne=0,ze=Se.column.columnWidth-2*l.cellPad;for(Se.value="";Ae.length;)Ie=Ae.shift(),Ue=Ie.width+Te,Ne+Ue>ze&&(Se.value+=be.join(l.wrapSpacer)+l.lineBreaker,be=[],Ne=0),be.push(Ie.text),Ne+=Ue;Ne&&(Se.value+=be.join(l.wrapSpacer)),Se.wrapped=!0}),Ee.selectAll("tspan.line").remove(),k(Ee.select("."+l.cn.cellText),le,ee,he),S.select(de.parentNode.parentNode).call(J)}}function fe(ee,de,le,he,xe){return function(){if(!xe.settledY){var Se=S.select(de.parentNode),ke=ce(xe),Te=xe.key-ke.firstRowIndex,Ae=ke.rows[Te].rowHeight,be=xe.cellHeightMayIncrease?de.parentNode.getBoundingClientRect().height+2*l.cellPad:Ae,Ie=Math.max(be,Ae),Ue=Ie-ke.rows[Te].rowHeight;Ue&&(ke.rows[Te].rowHeight=Ie,ee.selectAll("."+l.cn.columnCell).call(J),Z(null,ee.filter(H),0),g(le,he,!0)),Se.attr("transform",function(){var Ne=this,ze=Ne.parentNode,$e=ze.getBoundingClientRect(),st=S.select(Ne.parentNode).select("."+l.cn.cellRect).node().getBoundingClientRect(),vt=Ne.transform.baseVal.consolidate(),at=st.top-$e.top+(vt?vt.matrix.f:l.cellPad);return n(Q(xe,S.select(Ne.parentNode).select("."+l.cn.cellTextHolder).node().getBoundingClientRect().width),at)}),xe.settledY=!0}}}function Q(ee,de){switch(ee.align){case"left":return l.cellPad;case"right":return ee.column.columnWidth-(de||0)-l.cellPad;case"center":return(ee.column.columnWidth-(de||0))/2;default:return l.cellPad}}function J(ee){ee.attr("transform",function(de){var le=de.rowBlocks[0].auxiliaryBlocks.reduce(function(Se,ke){return Se+K(ke,1/0)},0),he=ce(de),xe=K(he,de.key),Ee=xe+le;return n(0,Ee)}).selectAll("."+l.cn.cellRect).attr("height",function(de){return re(ce(de),de.key).rowHeight})}function oe(ee,de){for(var le=0,he=de-1;he>=0;he--)le+=ne(ee[he]);return le}function K(ee,de){for(var le=0,he=0;he","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:a({},w.textfont,{}),editType:"calc"},text:w.text,textinfo:v.textinfo,texttemplate:S({editType:"plot"},{keys:m.eventDataKeys.concat(["label","value"])}),hovertext:w.hovertext,hoverinfo:v.hoverinfo,hovertemplate:l({},{keys:m.eventDataKeys}),textfont:w.textfont,insidetextfont:w.insidetextfont,outsidetextfont:a({},w.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:w.sort,root:v.root,domain:C({name:"treemap",trace:!0,editType:"calc"})}},79516:function(D,O,t){var l=t(7316);O.name="treemap",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},97840:function(D,O,t){var l=t(3776);O.r=function(S,i){return l.calc(S,i)},O.q=function(S){return l._runCrossTraceCalc("treemap",S)}},32984:function(D){D.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(D,O,t){var l=t(3400),S=t(40516),i=t(76308),C=t(86968).Q,w=t(31508).handleText,v=t(78048).TEXTPAD,m=t(74174).handleMarkerDefaults,a=t(8932),n=a.hasColorscale,s=a.handleDefaults;D.exports=function(h,f,u,b){function p(d,k){return l.coerce(h,f,S,d,k)}var E=p("labels"),g=p("parents");if(!E||!E.length||!g||!g.length){f.visible=!1;return}var c=p("values");c&&c.length?p("branchvalues"):p("count"),p("level"),p("maxdepth");var x=p("tiling.packing");x==="squarify"&&p("tiling.squarifyratio"),p("tiling.flip"),p("tiling.pad");var A=p("text");p("texttemplate"),f.texttemplate||p("textinfo",l.isArrayOrTypedArray(A)?"text+label":"label"),p("hovertext"),p("hovertemplate");var M=p("pathbar.visible"),R="auto";w(h,f,b,p,R,{hasPathbar:M,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),p("textposition");var T=f.textposition.indexOf("bottom")!==-1;m(h,f,b,p);var L=f._hasColorscale=n(h,"marker","colors")||(h.marker||{}).coloraxis;L?s(h,f,b,p,{prefix:"marker.",cLetter:"c"}):p("marker.depthfade",!(f.marker.colors||[]).length);var P=f.textfont.size*2;p("marker.pad.t",T?P/4:P),p("marker.pad.l",P/4),p("marker.pad.r",P/4),p("marker.pad.b",T?P:P/4),p("marker.cornerradius"),f._hovered={marker:{line:{width:2,color:i.contrast(b.paper_bgcolor)}}},M&&(p("pathbar.thickness",f.pathbar.textfont.size+2*v),p("pathbar.side"),p("pathbar.edgeshape")),p("sort"),p("root.color"),C(f,b,p),f._length=null}},95808:function(D,O,t){var l=t(33428),S=t(78176),i=t(82744),C=i.clearMinTextSize,w=t(60100).resizeText,v=t(52960);D.exports=function(a,n,s,o,h){var f=h.type,u=h.drawDescendants,b=a._fullLayout,p=b["_"+f+"layer"],E,g,c=!s;if(C(f,b),E=p.selectAll("g.trace."+f).data(n,function(A){return A[0].trace.uid}),E.enter().append("g").classed("trace",!0).classed(f,!0),E.order(),!b.uniformtext.mode&&S.hasTransition(s)){o&&(g=o());var x=l.transition().duration(s.duration).ease(s.easing).each("end",function(){g&&g()}).each("interrupt",function(){g&&g()});x.each(function(){p.selectAll("g.trace").each(function(A){v(a,A,this,s,u)})})}else E.each(function(A){v(a,A,this,s,u)}),b.uniformtext.mode&&w(a,p.selectAll(".trace"),f);c&&E.exit().remove()}},27336:function(D,O,t){var l=t(33428),S=t(3400),i=t(43616),C=t(72736),w=t(13832),v=t(66192).styleOne,m=t(32984),a=t(78176),n=t(45716),s=!0;D.exports=function(h,f,u,b,p){var E=p.barDifY,g=p.width,c=p.height,x=p.viewX,A=p.viewY,M=p.pathSlice,R=p.toMoveInsideSlice,T=p.strTransform,L=p.hasTransition,P=p.handleSlicesExit,d=p.makeUpdateSliceInterpolator,k=p.makeUpdateTextInterpolator,I={},N=h._context.staticPlot,B=h._fullLayout,G=f[0],U=G.trace,H=G.hierarchy,W=g/U._entryDepth,V=a.listPath(u.data,"id"),$=w(H.copy(),[g,c],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();$=$.filter(function(q){var ae=V.indexOf(q.data.id);return ae===-1?!1:(q.x0=W*ae,q.x1=W*(ae+1),q.y0=E,q.y1=E+c,q.onPathbar=!0,!0)}),$.reverse(),b=b.data($,a.getPtId),b.enter().append("g").classed("pathbar",!0),P(b,s,I,[g,c],M),b.order();var Z=b;L&&(Z=Z.transition().each("end",function(){var q=l.select(this);a.setSliceCursor(q,h,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Z.each(function(q){q._x0=x(q.x0),q._x1=x(q.x1),q._y0=A(q.y0),q._y1=A(q.y1),q._hoverX=x(q.x1-Math.min(g,c)/2),q._hoverY=A(q.y1-c/2);var ae=l.select(this),ie=S.ensureSingle(ae,"path","surface",function(oe){oe.style("pointer-events",N?"none":"all")});L?ie.transition().attrTween("d",function(oe){var K=d(oe,s,I,[g,c]);return function(ne){return M(K(ne))}}):ie.attr("d",M),ae.call(n,u,h,f,{styleOne:v,eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,h,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:h._transitioning}),ie.call(v,q,U,h,{hovered:!1}),q._text=(a.getPtLabel(q)||"").split("
").join(" ")||"";var fe=S.ensureSingle(ae,"g","slicetext"),Q=S.ensureSingle(fe,"text","",function(oe){oe.attr("data-notex",1)}),J=S.ensureUniformFontSize(h,a.determineTextFont(U,q,B.font,{onPathbar:!0}));Q.text(q._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,J).call(C.convertToTspans,h),q.textBB=i.bBox(Q.node()),q.transform=R(q,{fontSize:J.size,onPathbar:!0}),q.transform.fontSize=J.size,L?Q.transition().attrTween("transform",function(oe){var K=k(oe,s,I,[g,c]);return function(ne){return T(K(ne))}}):Q.attr("transform",T(q))})}},76477:function(D,O,t){var l=t(33428),S=t(3400),i=t(43616),C=t(72736),w=t(13832),v=t(66192).styleOne,m=t(32984),a=t(78176),n=t(45716),s=t(96488).formatSliceLabel,o=!1;D.exports=function(f,u,b,p,E){var g=E.width,c=E.height,x=E.viewX,A=E.viewY,M=E.pathSlice,R=E.toMoveInsideSlice,T=E.strTransform,L=E.hasTransition,P=E.handleSlicesExit,d=E.makeUpdateSliceInterpolator,k=E.makeUpdateTextInterpolator,I=E.prevEntry,N={},B=f._context.staticPlot,G=f._fullLayout,U=u[0],H=U.trace,W=H.textposition.indexOf("left")!==-1,V=H.textposition.indexOf("right")!==-1,$=H.textposition.indexOf("bottom")!==-1,Z=!$&&!H.marker.pad.t||$&&!H.marker.pad.b,q=w(b,[g,c],{packing:H.tiling.packing,squarifyratio:H.tiling.squarifyratio,flipX:H.tiling.flip.indexOf("x")>-1,flipY:H.tiling.flip.indexOf("y")>-1,pad:{inner:H.tiling.pad,top:H.marker.pad.t,left:H.marker.pad.l,right:H.marker.pad.r,bottom:H.marker.pad.b}}),ae=q.descendants(),ie=1/0,fe=-1/0;ae.forEach(function(ne){var ce=ne.depth;ce>=H._maxDepth?(ne.x0=ne.x1=(ne.x0+ne.x1)/2,ne.y0=ne.y1=(ne.y0+ne.y1)/2):(ie=Math.min(ie,ce),fe=Math.max(fe,ce))}),p=p.data(ae,a.getPtId),H._maxVisibleLayers=isFinite(fe)?fe-ie+1:0,p.enter().append("g").classed("slice",!0),P(p,o,N,[g,c],M),p.order();var Q=null;if(L&&I){var J=a.getPtId(I);p.each(function(ne){Q===null&&a.getPtId(ne)===J&&(Q={x0:ne.x0,x1:ne.x1,y0:ne.y0,y1:ne.y1})})}var oe=function(){return Q||{x0:0,x1:g,y0:0,y1:c}},K=p;return L&&(K=K.transition().each("end",function(){var ne=l.select(this);a.setSliceCursor(ne,f,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),K.each(function(ne){var ce=a.isHeader(ne,H);ne._x0=x(ne.x0),ne._x1=x(ne.x1),ne._y0=A(ne.y0),ne._y1=A(ne.y1),ne._hoverX=x(ne.x1-H.marker.pad.r),ne._hoverY=A($?ne.y1-H.marker.pad.b/2:ne.y0+H.marker.pad.t/2);var re=l.select(this),ee=S.ensureSingle(re,"path","surface",function(Se){Se.style("pointer-events",B?"none":"all")});L?ee.transition().attrTween("d",function(Se){var ke=d(Se,o,oe(),[g,c]);return function(Te){return M(ke(Te))}}):ee.attr("d",M),re.call(n,b,f,u,{styleOne:v,eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,f,{isTransitioning:f._transitioning}),ee.call(v,ne,H,f,{hovered:!1}),ne.x0===ne.x1||ne.y0===ne.y1?ne._text="":ce?ne._text=Z?"":a.getPtLabel(ne)||"":ne._text=s(ne,b,H,u,G)||"";var de=S.ensureSingle(re,"g","slicetext"),le=S.ensureSingle(de,"text","",function(Se){Se.attr("data-notex",1)}),he=S.ensureUniformFontSize(f,a.determineTextFont(H,ne,G.font)),xe=ne._text||" ",Ee=ce&&xe.indexOf("
")===-1;le.text(xe).classed("slicetext",!0).attr("text-anchor",V?"end":W||Ee?"start":"middle").call(i.font,he).call(C.convertToTspans,f),ne.textBB=i.bBox(le.node()),ne.transform=R(ne,{fontSize:he.size,isHeader:ce}),ne.transform.fontSize=he.size,L?le.transition().attrTween("transform",function(Se){var ke=k(Se,o,oe(),[g,c]);return function(Te){return T(ke(Te))}}):le.attr("transform",T(ne))}),Q}},83024:function(D){D.exports=function O(t,l,S){var i;S.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),S.flipX&&(i=t.x0,t.x0=l[0]-t.x1,t.x1=l[0]-i),S.flipY&&(i=t.y0,t.y0=l[1]-t.y1,t.y1=l[1]-i);var C=t.children;if(C)for(var w=0;w-1?V+q:-(Z+q):0,ie={x0:$,x1:$,y0:ae,y1:ae+Z},fe=function(Be,Ye,Ke){var We=A.tiling.pad,Fe=function(Pe){return Pe-We<=Ye.x0},Me=function(Pe){return Pe+We>=Ye.x1},we=function(Pe){return Pe-We<=Ye.y0},Re=function(Pe){return Pe+We>=Ye.y1};return Be.x0===Ye.x0&&Be.x1===Ye.x1&&Be.y0===Ye.y0&&Be.y1===Ye.y1?{x0:Be.x0,x1:Be.x1,y0:Be.y0,y1:Be.y1}:{x0:Fe(Be.x0-We)?0:Me(Be.x0-We)?Ke[0]:Be.x0,x1:Fe(Be.x1+We)?0:Me(Be.x1+We)?Ke[0]:Be.x1,y0:we(Be.y0-We)?0:Re(Be.y0-We)?Ke[1]:Be.y0,y1:we(Be.y1+We)?0:Re(Be.y1+We)?Ke[1]:Be.y1}},Q=null,J={},oe={},K=null,ne=function(Be,Ye){return Ye?J[h(Be)]:oe[h(Be)]},ce=function(Be,Ye,Ke,We){if(Ye)return J[h(T)]||ie;var Fe=oe[A.level]||Ke;return G(Be)?fe(Be,Fe,We):{}};x.hasMultipleRoots&&I&&B++,A._maxDepth=B,A._backgroundColor=c.paper_bgcolor,A._entryDepth=L.data.depth,A._atRootLevel=I;var re=-W/2+U.l+U.w*(H.x[1]+H.x[0])/2,ee=-V/2+U.t+U.h*(1-(H.y[1]+H.y[0])/2),de=function(Be){return re+Be},le=function(Be){return ee+Be},he=le(0),xe=de(0),Ee=function(Be){return xe+Be},Se=function(Be){return he+Be};function ke(Be,Ye){return Be+","+Ye}var Te=Ee(0),Ae=function(Be){Be.x=Math.max(Te,Be.x)},be=A.pathbar.edgeshape,Ie=function(Be){var Ye=Ee(Math.max(Math.min(Be.x0,Be.x0),0)),Ke=Ee(Math.min(Math.max(Be.x1,Be.x1),$)),We=Se(Be.y0),Fe=Se(Be.y1),Me=Z/2,we={},Re={};we.x=Ye,Re.x=Ke,we.y=Re.y=(We+Fe)/2;var Pe={x:Ye,y:We},Ve={x:Ke,y:We},Je={x:Ke,y:Fe},ot={x:Ye,y:Fe};return be===">"?(Pe.x-=Me,Ve.x-=Me,Je.x-=Me,ot.x-=Me):be==="/"?(Je.x-=Me,ot.x-=Me,we.x-=Me/2,Re.x-=Me/2):be==="\\"?(Pe.x-=Me,Ve.x-=Me,we.x-=Me/2,Re.x-=Me/2):be==="<"&&(we.x-=Me,Re.x-=Me),Ae(Pe),Ae(ot),Ae(we),Ae(Ve),Ae(Je),Ae(Re),"M"+ke(Pe.x,Pe.y)+"L"+ke(Ve.x,Ve.y)+"L"+ke(Re.x,Re.y)+"L"+ke(Je.x,Je.y)+"L"+ke(ot.x,ot.y)+"L"+ke(we.x,we.y)+"Z"},Ue=A[R?"tiling":"marker"].pad,Ne=function(Be){return A.textposition.indexOf(Be)!==-1},ze=Ne("top"),$e=Ne("left"),st=Ne("right"),vt=Ne("bottom"),at=function(Be){var Ye=de(Be.x0),Ke=de(Be.x1),We=le(Be.y0),Fe=le(Be.y1),Me=Ke-Ye,we=Fe-We;if(!Me||!we)return"";var Re=A.marker.cornerradius||0,Pe=Math.min(Re,Me/2,we/2);Pe&&Be.data&&Be.data.data&&Be.data.data.label&&(ze&&(Pe=Math.min(Pe,Ue.t)),$e&&(Pe=Math.min(Pe,Ue.l)),st&&(Pe=Math.min(Pe,Ue.r)),vt&&(Pe=Math.min(Pe,Ue.b)));var Ve=function(Je,ot){return Pe?"a"+ke(Pe,Pe)+" 0 0 1 "+ke(Je,ot):""};return"M"+ke(Ye,We+Pe)+Ve(Pe,-Pe)+"L"+ke(Ke-Pe,We)+Ve(Pe,Pe)+"L"+ke(Ke,Fe-Pe)+Ve(-Pe,Pe)+"L"+ke(Ye+Pe,Fe)+Ve(-Pe,-Pe)+"Z"},nt=function(Be,Ye){var Ke=Be.x0,We=Be.x1,Fe=Be.y0,Me=Be.y1,we=Be.textBB,Re=ze||Ye.isHeader&&!vt,Pe=Re?"start":vt?"end":"middle",Ve=Ne("right"),Je=Ne("left")||Ye.onPathbar,ot=Je?-1:Ve?1:0;if(Ye.isHeader){if(Ke+=(R?Ue:Ue.l)-w,We-=(R?Ue:Ue.r)-w,Ke>=We){var yt=(Ke+We)/2;Ke=yt,We=yt}var ut;vt?(ut=Me-(R?Ue:Ue.b),Fe0)for(var P=0;P0){var M=m.xa,R=m.ya,T,L,P,d,k;u.orientation==="h"?(k=a,T="y",P=R,L="x",d=M):(k=n,T="x",P=M,L="y",d=R);var I=f[m.index];if(k>=I.span[0]&&k<=I.span[1]){var N=S.extendFlat({},m),B=d.c2p(k,!0),G=w.getKdeValue(I,u,k),U=w.getPositionOnKdePath(I,u,B),H=P._offset,W=P._length;N[T+"0"]=U[0],N[T+"1"]=U[1],N[L+"0"]=N[L+"1"]=B,N[L+"Label"]=L+": "+i.hoverLabelText(d,k,u[L+"hoverformat"])+", "+f[0].t.labels.kde+" "+G.toFixed(3);for(var V=0,$=0;$")),f.color=v(b,A),[f]};function v(m,a){var n=m[a.dir].marker,s=n.color,o=n.line.color,h=n.line.width;if(S(s))return s;if(S(o)&&h)return o}},95952:function(D,O,t){D.exports={attributes:t(65776),layoutAttributes:t(91352),supplyDefaults:t(24224).supplyDefaults,crossTraceDefaults:t(24224).crossTraceDefaults,supplyLayoutDefaults:t(59464),calc:t(73540),crossTraceCalc:t(50152),plot:t(64488),style:t(12252).style,hoverPoints:t(94196),eventData:t(53256),selectPoints:t(45784),moduleType:"trace",name:"waterfall",basePlotModule:t(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(D){D.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(D,O,t){var l=t(3400),S=t(91352);D.exports=function(i,C,w){var v=!1;function m(s,o){return l.coerce(i,C,S,s,o)}for(var a=0;a0&&(c?k+="M"+P[0]+","+d[1]+"V"+d[0]:k+="M"+P[1]+","+d[0]+"H"+P[0]),x!=="between"&&(R.isSum||T path").each(function(p){if(!p.isBlank){var E=b[p.dir].marker;l.select(this).call(i.fill,E.color).call(i.stroke,E.line.color).call(S.dashLine,E.line.dash,E.line.width).style("opacity",b.selectedpoints&&!p.selected?C:1)}}),m(u,b,n),u.selectAll(".lines").each(function(){var p=b.connector.line;S.lineGroupStyle(l.select(this).selectAll("path"),p.width,p.color,p.dash)})})}D.exports={style:a}},84224:function(D,O,t){var l=t(54460),S=t(3400),i=t(73060),C=t(60468).W,w=t(39032).BADNUM;O.moduleType="transform",O.name="aggregate";var v=O.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},m=v.aggregations;O.supplyDefaults=function(f,u){var b={},p;function E(I,N){return S.coerce(f,b,v,I,N)}var g=E("enabled");if(!g)return b;var c=i.findArrayAttributes(u),x={};for(p=0;pA&&(A=L,M=T)}}return A?E(M):w};case"rms":return function(g,c){for(var x=0,A=0,M=0;M":return function(x){return g(x)>c};case">=":return function(x){return g(x)>=c};case"[]":return function(x){var A=g(x);return A>=c[0]&&A<=c[1]};case"()":return function(x){var A=g(x);return A>c[0]&&A=c[0]&&Ac[0]&&A<=c[1]};case"][":return function(x){var A=g(x);return A<=c[0]||A>=c[1]};case")(":return function(x){var A=g(x);return Ac[1]};case"](":return function(x){var A=g(x);return A<=c[0]||A>c[1]};case")[":return function(x){var A=g(x);return A=c[1]};case"{}":return function(x){return c.indexOf(g(x))!==-1};case"}{":return function(x){return c.indexOf(g(x))===-1}}}},32028:function(D,O,t){var l=t(3400),S=t(73060),i=t(7316),C=t(60468).W;O.moduleType="transform",O.name="groupby",O.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},O.supplyDefaults=function(v,m,a){var n,s={};function o(E,g){return l.coerce(v,s,O.attributes,E,g)}var h=o("enabled");if(!h)return s;o("groups"),o("nameformat",a._dataLength>1?"%{group} (%{trace})":"%{group}");var f=v.styles,u=s.styles=[];if(f)for(n=0;n=0){w.i=n.i;var h=v.marker;h.pattern?(!h.colors||!h.pattern.shape)&&(h.color=o,w.color=o):(h.color=o,w.color=o),l.pointStyle(C,v,m,w)}else S.fill(C,o)}},45716:function(D,O,t){var l=t(33428),S=t(24040),i=t(10624).appendArrayPointValue,C=t(93024),w=t(3400),v=t(95924),m=t(78176),a=t(69656),n=a.formatPieValue;D.exports=function(h,f,u,b,p){var E=b[0],g=E.trace,c=E.hierarchy,y=g.type==="sunburst",A=g.type==="treemap"||g.type==="icicle";"_hasHoverLabel"in g||(g._hasHoverLabel=!1),"_hasHoverEvent"in g||(g._hasHoverEvent=!1);var M=function(L){var P=u._fullLayout;if(!(u._dragging||P.hovermode===!1)){var d=u._fullData[g.index],k=L.data.data,I=k.i,N=m.isHierarchyRoot(L),B=m.getParent(c,L),G=m.getValue(L),U=function(ee){return w.castOption(d,I,ee)},H=U("hovertemplate"),W=C.castHoverinfo(d,P,I),V=P.separators,$;if(H||W&&W!=="none"&&W!=="skip"){var Z,q;y&&(Z=E.cx+L.pxmid[0]*(1-L.rInscribed),q=E.cy+L.pxmid[1]*(1-L.rInscribed)),A&&(Z=L._hoverX,q=L._hoverY);var ae={},ie=[],fe=[],Q=function(ee){return ie.indexOf(ee)!==-1};W&&(ie=W==="all"?d._module.attributes.hoverinfo.flags:W.split("+")),ae.label=k.label,Q("label")&&ae.label&&fe.push(ae.label),k.hasOwnProperty("v")&&(ae.value=k.v,ae.valueLabel=n(ae.value,V),Q("value")&&fe.push(ae.valueLabel)),ae.currentPath=L.currentPath=m.getPath(L.data),Q("current path")&&!N&&fe.push(ae.currentPath);var J,oe=[],K=function(){oe.indexOf(J)===-1&&(fe.push(J),oe.push(J))};ae.percentParent=L.percentParent=G/m.getValue(B),ae.parent=L.parentString=m.getPtLabel(B),Q("percent parent")&&(J=m.formatPercent(ae.percentParent,V)+" of "+ae.parent,K()),ae.percentEntry=L.percentEntry=G/m.getValue(f),ae.entry=L.entry=m.getPtLabel(f),Q("percent entry")&&!N&&!L.onPathbar&&(J=m.formatPercent(ae.percentEntry,V)+" of "+ae.entry,K()),ae.percentRoot=L.percentRoot=G/m.getValue(c),ae.root=L.root=m.getPtLabel(c),Q("percent root")&&!N&&(J=m.formatPercent(ae.percentRoot,V)+" of "+ae.root,K()),ae.text=U("hovertext")||U("text"),Q("text")&&(J=ae.text,w.isValidTextValue(J)&&fe.push(J)),$=[s(L,d,p.eventDataKeys)];var ne={trace:d,y:q,_x0:L._x0,_x1:L._x1,_y0:L._y0,_y1:L._y1,text:fe.join("
"),name:H||Q("name")?d.name:void 0,color:U("hoverlabel.bgcolor")||k.color,borderColor:U("hoverlabel.bordercolor"),fontFamily:U("hoverlabel.font.family"),fontSize:U("hoverlabel.font.size"),fontColor:U("hoverlabel.font.color"),nameLength:U("hoverlabel.namelength"),textAlign:U("hoverlabel.align"),hovertemplate:H,hovertemplateLabels:ae,eventData:$};y&&(ne.x0=Z-L.rInscribed*L.rpx1,ne.x1=Z+L.rInscribed*L.rpx1,ne.idealAlign=L.pxmid[0]<0?"left":"right"),A&&(ne.x=Z,ne.idealAlign=Z<0?"left":"right");var ce=[];C.loneHover(ne,{container:P._hoverlayer.node(),outerContainer:P._paper.node(),gd:u,inOut_bbox:ce}),$[0].bbox=ce[0],g._hasHoverLabel=!0}if(A){var re=h.select("path.surface");p.styleOne(re,L,d,u,{hovered:!0})}g._hasHoverEvent=!0,u.emit("plotly_hover",{points:$||[s(L,d,p.eventDataKeys)],event:l.event})}},R=function(L){var P=u._fullLayout,d=u._fullData[g.index],k=l.select(this).datum();if(g._hasHoverEvent&&(L.originalEvent=l.event,u.emit("plotly_unhover",{points:[s(k,d,p.eventDataKeys)],event:l.event}),g._hasHoverEvent=!1),g._hasHoverLabel&&(C.loneUnhover(P._hoverlayer.node()),g._hasHoverLabel=!1),A){var I=h.select("path.surface");p.styleOne(I,k,d,u,{hovered:!1})}},T=function(L){var P=u._fullLayout,d=u._fullData[g.index],k=y&&(m.isHierarchyRoot(L)||m.isLeaf(L)),I=m.getPtId(L),N=m.isEntry(L)?m.findEntryWithChild(c,I):m.findEntryWithLevel(c,I),B=m.getPtId(N),G={points:[s(L,d,p.eventDataKeys)],event:l.event};k||(G.nextLevel=B);var U=v.triggerHandler(u,"plotly_"+g.type+"click",G);if(U!==!1&&P.hovermode&&(u._hoverdata=[s(L,d,p.eventDataKeys)],C.click(u,l.event)),!k&&U!==!1&&!u._dragging&&!u._transitioning){S.call("_storeDirectGUIEdit",d,P._tracePreGUI[d.uid],{level:d.level});var H={data:[{level:B}],traces:[g.index]},W={frame:{redraw:!1,duration:p.transitionTime},transition:{duration:p.transitionTime,easing:p.transitionEasing},mode:"immediate",fromcurrent:!0};C.loneUnhover(P._hoverlayer.node()),S.call("animate",u,H,W)}};h.on("mouseover",M),h.on("mouseout",R),h.on("click",T)};function s(o,h,f){for(var u=o.data.data,b={curveNumber:h.index,pointNumber:u.i,data:h._input,fullData:h},p=0;p0)},O.getMaxDepth=function(a){return a.maxdepth>=0?a.maxdepth:1/0},O.isHeader=function(a,n){return!(O.isLeaf(a)||a.depth===n._maxDepth-1)};function m(a){return a.data.data.pid}O.getParent=function(a,n){return O.findEntryWithLevel(a,m(n))},O.listPath=function(a,n){var s=a.parent;if(!s)return[];var o=n?[s.data[n]]:[s];return O.listPath(s,n).concat(o)},O.getPath=function(a){return O.listPath(a,"label").join("/")+"/"},O.formatValue=C.formatPieValue,O.formatPercent=function(a,n){var s=l.formatPercent(a,0);return s==="0%"&&(s=C.formatPiePercent(a,n)),s}},5621:function(D,O,t){D.exports={moduleType:"trace",name:"sunburst",basePlotModule:t(54904),categories:[],animatable:!0,attributes:t(424),layoutAttributes:t(84920),supplyDefaults:t(25244),supplyLayoutDefaults:t(28732),calc:t(3776).calc,crossTraceCalc:t(3776).crossTraceCalc,plot:t(96488).plot,style:t(85676).style,colorbar:t(5528),meta:{}}},84920:function(D){D.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(D,O,t){var l=t(3400),S=t(84920);D.exports=function(C,w){function v(m,a){return l.coerce(C,w,S,m,a)}v("sunburstcolorway",w.colorway),v("extendsunburstcolors")}},96488:function(D,O,t){var l=t(33428),S=t(74148),i=t(67756).qy,C=t(43616),w=t(3400),v=t(72736),m=t(82744),a=m.recordMinTextSize,n=m.clearMinTextSize,s=t(37820),o=t(69656).getRotationAngle,h=s.computeTransform,f=s.transformInsideText,u=t(85676).styleOne,b=t(60100).resizeText,p=t(45716),E=t(27328),g=t(78176);O.plot=function(T,L,P,d){var k=T._fullLayout,I=k._sunburstlayer,N,B,G=!P,U=!k.uniformtext.mode&&g.hasTransition(P);if(n("sunburst",k),N=I.selectAll("g.trace.sunburst").data(L,function(W){return W[0].trace.uid}),N.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),N.order(),U){d&&(B=d());var H=l.transition().duration(P.duration).ease(P.easing).each("end",function(){B&&B()}).each("interrupt",function(){B&&B()});H.each(function(){I.selectAll("g.trace").each(function(W){c(T,W,this,P)})})}else N.each(function(W){c(T,W,this,P)}),k.uniformtext.mode&&b(T,k._sunburstlayer.selectAll(".trace"),"sunburst");G&&N.exit().remove()};function c(T,L,P,d){var k=T._context.staticPlot,I=T._fullLayout,N=!I.uniformtext.mode&&g.hasTransition(d),B=l.select(P),G=B.selectAll("g.slice"),U=L[0],H=U.trace,W=U.hierarchy,V=g.findEntryWithLevel(W,H.level),$=g.getMaxDepth(H),Z=I._size,q=H.domain,ae=Z.w*(q.x[1]-q.x[0]),ie=Z.h*(q.y[1]-q.y[0]),fe=.5*Math.min(ae,ie),Q=U.cx=Z.l+Z.w*(q.x[1]+q.x[0])/2,J=U.cy=Z.t+Z.h*(1-q.y[0])-ie/2;if(!V)return G.remove();var oe=null,K={};N&&G.each(function($e){K[g.getPtId($e)]={rpx0:$e.rpx0,rpx1:$e.rpx1,x0:$e.x0,x1:$e.x1,transform:$e.transform},!oe&&g.isEntry($e)&&(oe=$e)});var ne=y(V).descendants(),ce=V.height+1,re=0,ee=$;U.hasMultipleRoots&&g.isHierarchyRoot(V)&&(ne=ne.slice(1),ce-=1,re=1,ee+=1),ne=ne.filter(function($e){return $e.y1<=ee});var de=o(H.rotation);de&&ne.forEach(function($e){$e.x0+=de,$e.x1+=de});var le=Math.min(ce,$),he=function($e){return($e-re)/le*fe},xe=function($e,st){return[$e*Math.cos(st),-$e*Math.sin(st)]},Ee=function($e){return w.pathAnnulus($e.rpx0,$e.rpx1,$e.x0,$e.x1,Q,J)},Se=function($e){return Q+M($e)[0]*($e.transform.rCenter||0)+($e.transform.x||0)},ke=function($e){return J+M($e)[1]*($e.transform.rCenter||0)+($e.transform.y||0)};G=G.data(ne,g.getPtId),G.enter().append("g").classed("slice",!0),N?G.exit().transition().each(function(){var $e=l.select(this),st=$e.select("path.surface");st.transition().attrTween("d",function(at){var nt=Ie(at);return function(mt){return Ee(nt(mt))}});var vt=$e.select("g.slicetext");vt.attr("opacity",0)}).remove():G.exit().remove(),G.order();var Te=null;if(N&&oe){var Ae=g.getPtId(oe);G.each(function($e){Te===null&&g.getPtId($e)===Ae&&(Te=$e.x1)})}var be=G;N&&(be=be.transition().each("end",function(){var $e=l.select(this);g.setSliceCursor($e,T,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),be.each(function($e){var st=l.select(this),vt=w.ensureSingle(st,"path","surface",function(dt){dt.style("pointer-events",k?"none":"all")});$e.rpx0=he($e.y0),$e.rpx1=he($e.y1),$e.xmid=($e.x0+$e.x1)/2,$e.pxmid=xe($e.rpx1,$e.xmid),$e.midangle=-($e.xmid-Math.PI/2),$e.startangle=-($e.x0-Math.PI/2),$e.stopangle=-($e.x1-Math.PI/2),$e.halfangle=.5*Math.min(w.angleDelta($e.x0,$e.x1)||Math.PI,Math.PI),$e.ring=1-$e.rpx0/$e.rpx1,$e.rInscribed=A($e),N?vt.transition().attrTween("d",function(dt){var wt=Ue(dt);return function(et){return Ee(wt(et))}}):vt.attr("d",Ee),st.call(p,V,T,L,{eventDataKeys:E.eventDataKeys,transitionTime:E.CLICK_TRANSITION_TIME,transitionEasing:E.CLICK_TRANSITION_EASING}).call(g.setSliceCursor,T,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:T._transitioning}),vt.call(u,$e,H,T);var at=w.ensureSingle(st,"g","slicetext"),nt=w.ensureSingle(at,"text","",function(dt){dt.attr("data-notex",1)}),mt=w.ensureUniformFontSize(T,g.determineTextFont(H,$e,I.font));nt.text(O.formatSliceLabel($e,V,H,L,I)).classed("slicetext",!0).attr("text-anchor","middle").call(C.font,mt).call(v.convertToTspans,T);var rt=C.bBox(nt.node());$e.transform=f(rt,$e,U),$e.transform.targetX=Se($e),$e.transform.targetY=ke($e);var lt=function(dt,wt){var et=dt.transform;return h(et,wt),et.fontSize=mt.size,a(H.type,et,I),w.getTextTransform(et)};N?nt.transition().attrTween("transform",function(dt){var wt=Ne(dt);return function(et){return lt(wt(et),rt)}}):nt.attr("transform",lt($e,rt))});function Ie($e){var st=g.getPtId($e),vt=K[st],at=K[g.getPtId(V)],nt;if(at){var mt=($e.x1>at.x1?2*Math.PI:0)+de;nt=$e.rpx1Te?2*Math.PI:0)+de;vt={x0:nt,x1:nt}}else vt={rpx0:fe,rpx1:fe},w.extendFlat(vt,ze($e));else vt={rpx0:0,rpx1:0};else vt={x0:de,x1:de};return i(vt,at)}function Ne($e){var st=K[g.getPtId($e)],vt,at=$e.transform;if(st)vt=st;else if(vt={rpx1:$e.rpx1,transform:{textPosAngle:at.textPosAngle,scale:0,rotate:at.rotate,rCenter:at.rCenter,x:at.x,y:at.y}},oe)if($e.parent)if(Te){var nt=$e.x1>Te?2*Math.PI:0;vt.x0=vt.x1=nt}else w.extendFlat(vt,ze($e));else vt.x0=vt.x1=de;else vt.x0=vt.x1=de;var mt=i(vt.transform.textPosAngle,$e.transform.textPosAngle),rt=i(vt.rpx1,$e.rpx1),lt=i(vt.x0,$e.x0),dt=i(vt.x1,$e.x1),wt=i(vt.transform.scale,at.scale),et=i(vt.transform.rotate,at.rotate),Be=at.rCenter===0?3:vt.transform.rCenter===0?1/3:1,Ye=i(vt.transform.rCenter,at.rCenter),Ze=function(We){return Ye(Math.pow(We,Be))};return function(We){var Fe=rt(We),Me=lt(We),we=dt(We),Re=Ze(We),Pe=xe(Fe,(Me+we)/2),Ve=mt(We),Je={pxmid:Pe,rpx1:Fe,transform:{textPosAngle:Ve,rCenter:Re,x:at.x,y:at.y}};return a(H.type,at,I),{transform:{targetX:Se(Je),targetY:ke(Je),scale:wt(We),rotate:et(We),rCenter:Re}}}}function ze($e){var st=$e.parent,vt=K[g.getPtId(st)],at={};if(vt){var nt=st.children,mt=nt.indexOf($e),rt=nt.length,lt=i(vt.x0,vt.x1);at.x0=lt(mt/rt),at.x1=lt(mt/rt)}else at.x0=at.x1=0;return at}}function y(T){return S.partition().size([2*Math.PI,T.height+1])(T)}O.formatSliceLabel=function(T,L,P,d,k){var I=P.texttemplate,N=P.textinfo;if(!I&&(!N||N==="none"))return"";var B=k.separators,G=d[0],U=T.data.data,H=G.hierarchy,W=g.isHierarchyRoot(T),V=g.getParent(H,T),$=g.getValue(T);if(!I){var Z=N.split("+"),q=function(re){return Z.indexOf(re)!==-1},ae=[],ie;if(q("label")&&U.label&&ae.push(U.label),U.hasOwnProperty("v")&&q("value")&&ae.push(g.formatValue(U.v,B)),!W){q("current path")&&ae.push(g.getPath(T.data));var fe=0;q("percent parent")&&fe++,q("percent entry")&&fe++,q("percent root")&&fe++;var Q=fe>1;if(fe){var J,oe=function(re){ie=g.formatPercent(J,B),Q&&(ie+=" of "+re),ae.push(ie)};q("percent parent")&&!W&&(J=$/g.getValue(V),oe("parent")),q("percent entry")&&(J=$/g.getValue(L),oe("entry")),q("percent root")&&(J=$/g.getValue(H),oe("root"))}}return q("text")&&(ie=w.castOption(P,U.i,"text"),w.isValidTextValue(ie)&&ae.push(ie)),ae.join("
")}var K=w.castOption(P,U.i,"texttemplate");if(!K)return"";var ne={};U.label&&(ne.label=U.label),U.hasOwnProperty("v")&&(ne.value=U.v,ne.valueLabel=g.formatValue(U.v,B)),ne.currentPath=g.getPath(T.data),W||(ne.percentParent=$/g.getValue(V),ne.percentParentLabel=g.formatPercent(ne.percentParent,B),ne.parent=g.getPtLabel(V)),ne.percentEntry=$/g.getValue(L),ne.percentEntryLabel=g.formatPercent(ne.percentEntry,B),ne.entry=g.getPtLabel(L),ne.percentRoot=$/g.getValue(H),ne.percentRootLabel=g.formatPercent(ne.percentRoot,B),ne.root=g.getPtLabel(H),U.hasOwnProperty("color")&&(ne.color=U.color);var ce=w.castOption(P,U.i,"text");return(w.isValidTextValue(ce)||ce==="")&&(ne.text=ce),ne.customdata=w.castOption(P,U.i,"customdata"),w.texttemplateString(K,ne,k._d3locale,ne,P._meta||{})};function A(T){return T.rpx0===0&&w.isFullCircle([T.x0,T.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(T.halfangle)),T.ring/2))}function M(T){return R(T.rpx1,T.transform.textPosAngle)}function R(T,L){return[T*Math.sin(L),-T*Math.cos(L)]}},85676:function(D,O,t){var l=t(33428),S=t(76308),i=t(3400),C=t(82744).resizeText,w=t(60404);function v(a){var n=a._fullLayout._sunburstlayer.selectAll(".trace");C(a,n,"sunburst"),n.each(function(s){var o=l.select(this),h=s[0],f=h.trace;o.style("opacity",f.opacity),o.selectAll("path.surface").each(function(u){l.select(this).call(m,u,f,a)})})}function m(a,n,s,o){var h=n.data.data,f=!n.children,u=h.i,b=i.castOption(s,u,"marker.line.color")||S.defaultLine,p=i.castOption(s,u,"marker.line.width")||0;a.call(w,n,s,o).style("stroke-width",p).call(S.stroke,b).style("opacity",f?s.leaf.opacity:null)}D.exports={style:v,styleOne:m}},16716:function(D,O,t){var l=t(76308),S=t(49084),i=t(29736).axisHoverFormat,C=t(21776).Ks,w=t(45464),v=t(92880).extendFlat,m=t(67824).overrideAll;function a(o){return{valType:"boolean",dflt:!1}}function n(o){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:a(),y:a(),z:a()},color:{valType:"color",dflt:l.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:l.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var s=D.exports=m(v({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:C(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},S("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:n(),y:n(),z:n()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:v({},S.zauto,{}),zmin:v({},S.zmin,{}),zmax:v({},S.zmax,{})},hoverinfo:v({},w.hoverinfo),showlegend:v({},w.showlegend,{dflt:!1})}),"calc","nested");s.x.editType=s.y.editType=s.z.editType="calc+clearAxisTypes",s.transforms=void 0},56576:function(D,O,t){var l=t(47128);D.exports=function(i,C){C.surfacecolor?l(i,C,{vals:C.surfacecolor,containerStr:"",cLetter:"c"}):l(i,C,{vals:C.z,containerStr:"",cLetter:"c"})}},79164:function(D,O,t){var l=t(67792).gl_surface3d,S=t(67792).ndarray,i=t(67792).ndarray_linear_interpolate.d2,C=t(70448),w=t(11240),v=t(3400).isArrayOrTypedArray,m=t(33040).parseColorScale,a=t(43080),n=t(8932).extractOpts;function s(d,k,I){this.scene=d,this.uid=I,this.surface=k,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var o=s.prototype;o.getXat=function(d,k,I,N){var B=v(this.data.x)?v(this.data.x[0])?this.data.x[k][d]:this.data.x[d]:d;return I===void 0?B:N.d2l(B,0,I)},o.getYat=function(d,k,I,N){var B=v(this.data.y)?v(this.data.y[0])?this.data.y[k][d]:this.data.y[k]:k;return I===void 0?B:N.d2l(B,0,I)},o.getZat=function(d,k,I,N){var B=this.data.z[k][d];return B===null&&this.data.connectgaps&&this.data._interpolatedZ&&(B=this.data._interpolatedZ[k][d]),I===void 0?B:N.d2l(B,0,I)},o.handlePick=function(d){if(d.object===this.surface){var k=(d.data.index[0]-1)/this.dataScaleX-1,I=(d.data.index[1]-1)/this.dataScaleY-1,N=Math.max(Math.min(Math.round(k),this.data.z[0].length-1),0),B=Math.max(Math.min(Math.round(I),this.data._ylength-1),0);d.index=[N,B],d.traceCoordinate=[this.getXat(N,B),this.getYat(N,B),this.getZat(N,B)],d.dataCoordinate=[this.getXat(N,B,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(N,B,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(N,B,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var G=0;G<3;G++){var U=d.dataCoordinate[G];U!=null&&(d.dataCoordinate[G]*=this.scene.dataScale[G])}var H=this.data.hovertext||this.data.text;return v(H)&&H[B]&&H[B][N]!==void 0?d.textLabel=H[B][N]:H?d.textLabel=H:d.textLabel="",d.data.dataCoordinate=d.dataCoordinate.slice(),this.surface.highlight(d.data),this.scene.glplot.spikes.position=d.dataCoordinate,!0}};function h(d){var k=d[0].rgb,I=d[d.length-1].rgb;return k[0]===I[0]&&k[1]===I[1]&&k[2]===I[2]&&k[3]===I[3]}var f=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function u(d,k){if(d0){I=f[N];break}return I}function E(d,k){if(!(d<1||k<1)){for(var I=b(d),N=b(k),B=1,G=0;GA;)N--,N/=p(N),N++,N1?B:1};function M(d,k,I){var N=I[8]+I[2]*k[0]+I[5]*k[1];return d[0]=(I[6]+I[0]*k[0]+I[3]*k[1])/N,d[1]=(I[7]+I[1]*k[0]+I[4]*k[1])/N,d}function R(d,k,I){return T(d,k,M,I),d}function T(d,k,I,N){for(var B=[0,0],G=d.shape[0],U=d.shape[1],H=0;H0&&this.contourStart[N]!==null&&this.contourEnd[N]!==null&&this.contourEnd[N]>this.contourStart[N]))for(k[N]=!0,B=this.contourStart[N];Bq&&(this.minValues[V]=q),this.maxValues[V]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(D,O,t){var l=t(23536),S=t(92880).extendFlat,i=t(38248),C=t(38116).isTypedArray,w=t(38116).isArrayOrTypedArray;D.exports=function(b,p){var E=a(p.cells.values),g=function(q){return q.slice(p.header.values.length,q.length)},c=a(p.header.values);c.length&&!c[0].length&&(c[0]=[""],c=a(c));var y=c.concat(g(E).map(function(){return n((c[0]||[""]).length)})),A=p.domain,M=Math.floor(b._fullLayout._size.w*(A.x[1]-A.x[0])),R=Math.floor(b._fullLayout._size.h*(A.y[1]-A.y[0])),T=p.header.values.length?y[0].map(function(){return p.header.height}):[l.emptyHeaderHeight],L=E.length?E[0].map(function(){return p.cells.height}):[],P=T.reduce(m,0),d=R-P,k=d+l.uplift,I=h(L,k),N=h(T,P),B=o(N,[]),G=o(I,B),U={},H=p._fullInput.columnorder;w(H)&&(H=Array.from(H)),H=H.concat(g(E.map(function(q,ae){return ae})));var W=y.map(function(q,ae){var ie=w(p.columnwidth)?p.columnwidth[Math.min(ae,p.columnwidth.length-1)]:p.columnwidth;return i(ie)?Number(ie):1}),V=W.reduce(m,0);W=W.map(function(q){return q/V*M});var $=Math.max(v(p.header.line.width),v(p.cells.line.width)),Z={key:p.uid+b._context.staticPlot,translateX:A.x[0]*b._fullLayout._size.w,translateY:b._fullLayout._size.h*(1-A.y[1]),size:b._fullLayout._size,width:M,maxLineWidth:$,height:R,columnOrder:H,groupHeight:R,rowBlocks:G,headerRowBlocks:B,scrollY:0,cells:S({},p.cells,{values:E}),headerCells:S({},p.header,{values:y}),gdColumns:y.map(function(q){return q[0]}),gdColumnsOriginalOrder:y.map(function(q){return q[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:y.map(function(q,ae){var ie=U[q];U[q]=(ie||0)+1;var fe=q+"__"+U[q];return{key:fe,label:q,specIndex:ae,xIndex:H[ae],xScale:s,x:void 0,calcdata:void 0,columnWidth:W[ae]}})};return Z.columns.forEach(function(q){q.calcdata=Z,q.x=s(q)}),Z};function v(u){if(w(u)){for(var b=0,p=0;p=b||R===u.length-1)&&(p[g]=y,y.key=M++,y.firstRowIndex=A,y.lastRowIndex=R,y=f(),g+=c,A=R+1,c=0);return p}function f(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}},53056:function(D,O,t){var l=t(92880).extendFlat;O.splitToPanels=function(i){var C=[0,0],w=l({},i,{key:"header",type:"header",page:0,prevPages:C,currentRepaint:[null,null],dragHandle:!0,values:i.calcdata.headerCells.values[i.specIndex],rowBlocks:i.calcdata.headerRowBlocks,calcdata:l({},i.calcdata,{cells:i.calcdata.headerCells})}),v=l({},i,{key:"cells1",type:"cells",page:0,prevPages:C,currentRepaint:[null,null],dragHandle:!1,values:i.calcdata.cells.values[i.specIndex],rowBlocks:i.calcdata.rowBlocks}),m=l({},i,{key:"cells2",type:"cells",page:1,prevPages:C,currentRepaint:[null,null],dragHandle:!1,values:i.calcdata.cells.values[i.specIndex],rowBlocks:i.calcdata.rowBlocks});return[v,m,w]},O.splitToCells=function(i){var C=S(i);return(i.values||[]).slice(C[0],C[1]).map(function(w,v){var m=typeof w=="string"&&w.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:v+m,key:C[0]+v,column:i,calcdata:i.calcdata,page:i.page,rowBlocks:i.rowBlocks,value:w}})};function S(i){var C=i.rowBlocks[i.page],w=C?C.rows[0].rowIndex:0,v=C?w+C.rows.length:0;return[w,v]}},53212:function(D,O,t){var l=t(3400),S=t(60520),i=t(86968).Q;function C(w,v){for(var m=w.columnorder||[],a=w.header.values.length,n=m.slice(0,a),s=n.slice().sort(function(f,u){return f-u}),o=n.map(function(f){return s.indexOf(f)}),h=o.length;h/i),be=!Te||Ae;xe.mayHaveMarkup=Te&&ke.match(/[<&>]/);var Ie=I(ke);xe.latex=Ie;var Ue=Ie?"":G(xe.calcdata.cells.prefix,Ee,Se)||"",Ne=Ie?"":G(xe.calcdata.cells.suffix,Ee,Se)||"",ze=Ie?null:G(xe.calcdata.cells.format,Ee,Se)||null,$e=Ue+(ze?C(ze)(xe.value):xe.value)+Ne,st;xe.wrappingNeeded=!xe.wrapped&&!be&&!Ie&&(st=N($e)),xe.cellHeightMayIncrease=Ae||Ie||xe.mayHaveMarkup||(st===void 0?N($e):st),xe.needsConvertToTspans=xe.mayHaveMarkup||xe.wrappingNeeded||xe.latex;var vt;if(xe.wrappingNeeded){var at=l.wrapSplitCharacter===" "?$e.replace(/
xe&&he.push(Ee),xe+=Te}return he}function Z(ee,de,le){var he=E(de)[0];if(he!==void 0){var xe=he.rowBlocks,Ee=he.calcdata,Se=oe(xe,xe.length),ke=he.calcdata.groupHeight-V(he),Te=Ee.scrollY=Math.max(0,Math.min(Se-ke,Ee.scrollY)),Ae=$(xe,Te,ke);Ae.length===1&&(Ae[0]===xe.length-1?Ae.unshift(Ae[0]-1):Ae.push(Ae[0]+1)),Ae[0]%2&&Ae.reverse(),de.each(function(be,Ie){be.page=Ae[Ie],be.scrollY=Te}),de.attr("transform",function(be){var Ie=oe(be.rowBlocks,be.page)-be.scrollY;return n(0,Ie)}),ee&&(ae(ee,le,de,Ae,he.prevPages,he,0),ae(ee,le,de,Ae,he.prevPages,he,1),g(le,ee))}}function q(ee,de,le,he){return function(Ee){var Se=Ee.calcdata?Ee.calcdata:Ee,ke=de.filter(function(Ie){return Se.key===Ie.key}),Te=le||Se.scrollbarState.dragMultiplier,Ae=Se.scrollY;Se.scrollY=he===void 0?Se.scrollY+Te*S.event.dy:he;var be=ke.selectAll("."+l.cn.yColumn).selectAll("."+l.cn.columnBlock).filter(H);return Z(ee,be,ke),Se.scrollY===Ae}}function ae(ee,de,le,he,xe,Ee,Se){var ke=he[Se]!==xe[Se];ke&&(clearTimeout(Ee.currentRepaint[Se]),Ee.currentRepaint[Se]=setTimeout(function(){var Te=le.filter(function(Ae,be){return be===Se&&he[be]!==xe[be]});c(ee,de,Te,le),xe[Se]=he[Se]}))}function ie(ee,de,le,he){return function(){var Ee=S.select(de.parentNode);Ee.each(function(Se){var ke=Se.fragments;Ee.selectAll("tspan.line").each(function($e,st){ke[st].width=this.getComputedTextLength()});var Te=ke[ke.length-1].width,Ae=ke.slice(0,-1),be=[],Ie,Ue,Ne=0,ze=Se.column.columnWidth-2*l.cellPad;for(Se.value="";Ae.length;)Ie=Ae.shift(),Ue=Ie.width+Te,Ne+Ue>ze&&(Se.value+=be.join(l.wrapSpacer)+l.lineBreaker,be=[],Ne=0),be.push(Ie.text),Ne+=Ue;Ne&&(Se.value+=be.join(l.wrapSpacer)),Se.wrapped=!0}),Ee.selectAll("tspan.line").remove(),k(Ee.select("."+l.cn.cellText),le,ee,he),S.select(de.parentNode.parentNode).call(J)}}function fe(ee,de,le,he,xe){return function(){if(!xe.settledY){var Se=S.select(de.parentNode),ke=ce(xe),Te=xe.key-ke.firstRowIndex,Ae=ke.rows[Te].rowHeight,be=xe.cellHeightMayIncrease?de.parentNode.getBoundingClientRect().height+2*l.cellPad:Ae,Ie=Math.max(be,Ae),Ue=Ie-ke.rows[Te].rowHeight;Ue&&(ke.rows[Te].rowHeight=Ie,ee.selectAll("."+l.cn.columnCell).call(J),Z(null,ee.filter(H),0),g(le,he,!0)),Se.attr("transform",function(){var Ne=this,ze=Ne.parentNode,$e=ze.getBoundingClientRect(),st=S.select(Ne.parentNode).select("."+l.cn.cellRect).node().getBoundingClientRect(),vt=Ne.transform.baseVal.consolidate(),at=st.top-$e.top+(vt?vt.matrix.f:l.cellPad);return n(Q(xe,S.select(Ne.parentNode).select("."+l.cn.cellTextHolder).node().getBoundingClientRect().width),at)}),xe.settledY=!0}}}function Q(ee,de){switch(ee.align){case"left":return l.cellPad;case"right":return ee.column.columnWidth-(de||0)-l.cellPad;case"center":return(ee.column.columnWidth-(de||0))/2;default:return l.cellPad}}function J(ee){ee.attr("transform",function(de){var le=de.rowBlocks[0].auxiliaryBlocks.reduce(function(Se,ke){return Se+K(ke,1/0)},0),he=ce(de),xe=K(he,de.key),Ee=xe+le;return n(0,Ee)}).selectAll("."+l.cn.cellRect).attr("height",function(de){return re(ce(de),de.key).rowHeight})}function oe(ee,de){for(var le=0,he=de-1;he>=0;he--)le+=ne(ee[he]);return le}function K(ee,de){for(var le=0,he=0;he","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:a({},w.textfont,{}),editType:"calc"},text:w.text,textinfo:v.textinfo,texttemplate:S({editType:"plot"},{keys:m.eventDataKeys.concat(["label","value"])}),hovertext:w.hovertext,hoverinfo:v.hoverinfo,hovertemplate:l({},{keys:m.eventDataKeys}),textfont:w.textfont,insidetextfont:w.insidetextfont,outsidetextfont:a({},w.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:w.sort,root:v.root,domain:C({name:"treemap",trace:!0,editType:"calc"})}},79516:function(D,O,t){var l=t(7316);O.name="treemap",O.plot=function(S,i,C,w){l.plotBasePlot(O.name,S,i,C,w)},O.clean=function(S,i,C,w){l.cleanBasePlot(O.name,S,i,C,w)}},97840:function(D,O,t){var l=t(3776);O.r=function(S,i){return l.calc(S,i)},O.q=function(S){return l._runCrossTraceCalc("treemap",S)}},32984:function(D){D.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(D,O,t){var l=t(3400),S=t(40516),i=t(76308),C=t(86968).Q,w=t(31508).handleText,v=t(78048).TEXTPAD,m=t(74174).handleMarkerDefaults,a=t(8932),n=a.hasColorscale,s=a.handleDefaults;D.exports=function(h,f,u,b){function p(d,k){return l.coerce(h,f,S,d,k)}var E=p("labels"),g=p("parents");if(!E||!E.length||!g||!g.length){f.visible=!1;return}var c=p("values");c&&c.length?p("branchvalues"):p("count"),p("level"),p("maxdepth");var y=p("tiling.packing");y==="squarify"&&p("tiling.squarifyratio"),p("tiling.flip"),p("tiling.pad");var A=p("text");p("texttemplate"),f.texttemplate||p("textinfo",l.isArrayOrTypedArray(A)?"text+label":"label"),p("hovertext"),p("hovertemplate");var M=p("pathbar.visible"),R="auto";w(h,f,b,p,R,{hasPathbar:M,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),p("textposition");var T=f.textposition.indexOf("bottom")!==-1;m(h,f,b,p);var L=f._hasColorscale=n(h,"marker","colors")||(h.marker||{}).coloraxis;L?s(h,f,b,p,{prefix:"marker.",cLetter:"c"}):p("marker.depthfade",!(f.marker.colors||[]).length);var P=f.textfont.size*2;p("marker.pad.t",T?P/4:P),p("marker.pad.l",P/4),p("marker.pad.r",P/4),p("marker.pad.b",T?P:P/4),p("marker.cornerradius"),f._hovered={marker:{line:{width:2,color:i.contrast(b.paper_bgcolor)}}},M&&(p("pathbar.thickness",f.pathbar.textfont.size+2*v),p("pathbar.side"),p("pathbar.edgeshape")),p("sort"),p("root.color"),C(f,b,p),f._length=null}},95808:function(D,O,t){var l=t(33428),S=t(78176),i=t(82744),C=i.clearMinTextSize,w=t(60100).resizeText,v=t(52960);D.exports=function(a,n,s,o,h){var f=h.type,u=h.drawDescendants,b=a._fullLayout,p=b["_"+f+"layer"],E,g,c=!s;if(C(f,b),E=p.selectAll("g.trace."+f).data(n,function(A){return A[0].trace.uid}),E.enter().append("g").classed("trace",!0).classed(f,!0),E.order(),!b.uniformtext.mode&&S.hasTransition(s)){o&&(g=o());var y=l.transition().duration(s.duration).ease(s.easing).each("end",function(){g&&g()}).each("interrupt",function(){g&&g()});y.each(function(){p.selectAll("g.trace").each(function(A){v(a,A,this,s,u)})})}else E.each(function(A){v(a,A,this,s,u)}),b.uniformtext.mode&&w(a,p.selectAll(".trace"),f);c&&E.exit().remove()}},27336:function(D,O,t){var l=t(33428),S=t(3400),i=t(43616),C=t(72736),w=t(13832),v=t(66192).styleOne,m=t(32984),a=t(78176),n=t(45716),s=!0;D.exports=function(h,f,u,b,p){var E=p.barDifY,g=p.width,c=p.height,y=p.viewX,A=p.viewY,M=p.pathSlice,R=p.toMoveInsideSlice,T=p.strTransform,L=p.hasTransition,P=p.handleSlicesExit,d=p.makeUpdateSliceInterpolator,k=p.makeUpdateTextInterpolator,I={},N=h._context.staticPlot,B=h._fullLayout,G=f[0],U=G.trace,H=G.hierarchy,W=g/U._entryDepth,V=a.listPath(u.data,"id"),$=w(H.copy(),[g,c],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();$=$.filter(function(q){var ae=V.indexOf(q.data.id);return ae===-1?!1:(q.x0=W*ae,q.x1=W*(ae+1),q.y0=E,q.y1=E+c,q.onPathbar=!0,!0)}),$.reverse(),b=b.data($,a.getPtId),b.enter().append("g").classed("pathbar",!0),P(b,s,I,[g,c],M),b.order();var Z=b;L&&(Z=Z.transition().each("end",function(){var q=l.select(this);a.setSliceCursor(q,h,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Z.each(function(q){q._x0=y(q.x0),q._x1=y(q.x1),q._y0=A(q.y0),q._y1=A(q.y1),q._hoverX=y(q.x1-Math.min(g,c)/2),q._hoverY=A(q.y1-c/2);var ae=l.select(this),ie=S.ensureSingle(ae,"path","surface",function(oe){oe.style("pointer-events",N?"none":"all")});L?ie.transition().attrTween("d",function(oe){var K=d(oe,s,I,[g,c]);return function(ne){return M(K(ne))}}):ie.attr("d",M),ae.call(n,u,h,f,{styleOne:v,eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,h,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:h._transitioning}),ie.call(v,q,U,h,{hovered:!1}),q._text=(a.getPtLabel(q)||"").split("
").join(" ")||"";var fe=S.ensureSingle(ae,"g","slicetext"),Q=S.ensureSingle(fe,"text","",function(oe){oe.attr("data-notex",1)}),J=S.ensureUniformFontSize(h,a.determineTextFont(U,q,B.font,{onPathbar:!0}));Q.text(q._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,J).call(C.convertToTspans,h),q.textBB=i.bBox(Q.node()),q.transform=R(q,{fontSize:J.size,onPathbar:!0}),q.transform.fontSize=J.size,L?Q.transition().attrTween("transform",function(oe){var K=k(oe,s,I,[g,c]);return function(ne){return T(K(ne))}}):Q.attr("transform",T(q))})}},76477:function(D,O,t){var l=t(33428),S=t(3400),i=t(43616),C=t(72736),w=t(13832),v=t(66192).styleOne,m=t(32984),a=t(78176),n=t(45716),s=t(96488).formatSliceLabel,o=!1;D.exports=function(f,u,b,p,E){var g=E.width,c=E.height,y=E.viewX,A=E.viewY,M=E.pathSlice,R=E.toMoveInsideSlice,T=E.strTransform,L=E.hasTransition,P=E.handleSlicesExit,d=E.makeUpdateSliceInterpolator,k=E.makeUpdateTextInterpolator,I=E.prevEntry,N={},B=f._context.staticPlot,G=f._fullLayout,U=u[0],H=U.trace,W=H.textposition.indexOf("left")!==-1,V=H.textposition.indexOf("right")!==-1,$=H.textposition.indexOf("bottom")!==-1,Z=!$&&!H.marker.pad.t||$&&!H.marker.pad.b,q=w(b,[g,c],{packing:H.tiling.packing,squarifyratio:H.tiling.squarifyratio,flipX:H.tiling.flip.indexOf("x")>-1,flipY:H.tiling.flip.indexOf("y")>-1,pad:{inner:H.tiling.pad,top:H.marker.pad.t,left:H.marker.pad.l,right:H.marker.pad.r,bottom:H.marker.pad.b}}),ae=q.descendants(),ie=1/0,fe=-1/0;ae.forEach(function(ne){var ce=ne.depth;ce>=H._maxDepth?(ne.x0=ne.x1=(ne.x0+ne.x1)/2,ne.y0=ne.y1=(ne.y0+ne.y1)/2):(ie=Math.min(ie,ce),fe=Math.max(fe,ce))}),p=p.data(ae,a.getPtId),H._maxVisibleLayers=isFinite(fe)?fe-ie+1:0,p.enter().append("g").classed("slice",!0),P(p,o,N,[g,c],M),p.order();var Q=null;if(L&&I){var J=a.getPtId(I);p.each(function(ne){Q===null&&a.getPtId(ne)===J&&(Q={x0:ne.x0,x1:ne.x1,y0:ne.y0,y1:ne.y1})})}var oe=function(){return Q||{x0:0,x1:g,y0:0,y1:c}},K=p;return L&&(K=K.transition().each("end",function(){var ne=l.select(this);a.setSliceCursor(ne,f,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),K.each(function(ne){var ce=a.isHeader(ne,H);ne._x0=y(ne.x0),ne._x1=y(ne.x1),ne._y0=A(ne.y0),ne._y1=A(ne.y1),ne._hoverX=y(ne.x1-H.marker.pad.r),ne._hoverY=A($?ne.y1-H.marker.pad.b/2:ne.y0+H.marker.pad.t/2);var re=l.select(this),ee=S.ensureSingle(re,"path","surface",function(Se){Se.style("pointer-events",B?"none":"all")});L?ee.transition().attrTween("d",function(Se){var ke=d(Se,o,oe(),[g,c]);return function(Te){return M(ke(Te))}}):ee.attr("d",M),re.call(n,b,f,u,{styleOne:v,eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,f,{isTransitioning:f._transitioning}),ee.call(v,ne,H,f,{hovered:!1}),ne.x0===ne.x1||ne.y0===ne.y1?ne._text="":ce?ne._text=Z?"":a.getPtLabel(ne)||"":ne._text=s(ne,b,H,u,G)||"";var de=S.ensureSingle(re,"g","slicetext"),le=S.ensureSingle(de,"text","",function(Se){Se.attr("data-notex",1)}),he=S.ensureUniformFontSize(f,a.determineTextFont(H,ne,G.font)),xe=ne._text||" ",Ee=ce&&xe.indexOf("
")===-1;le.text(xe).classed("slicetext",!0).attr("text-anchor",V?"end":W||Ee?"start":"middle").call(i.font,he).call(C.convertToTspans,f),ne.textBB=i.bBox(le.node()),ne.transform=R(ne,{fontSize:he.size,isHeader:ce}),ne.transform.fontSize=he.size,L?le.transition().attrTween("transform",function(Se){var ke=k(Se,o,oe(),[g,c]);return function(Te){return T(ke(Te))}}):le.attr("transform",T(ne))}),Q}},83024:function(D){D.exports=function O(t,l,S){var i;S.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),S.flipX&&(i=t.x0,t.x0=l[0]-t.x1,t.x1=l[0]-i),S.flipY&&(i=t.y0,t.y0=l[1]-t.y1,t.y1=l[1]-i);var C=t.children;if(C)for(var w=0;w-1?V+q:-(Z+q):0,ie={x0:$,x1:$,y0:ae,y1:ae+Z},fe=function(Be,Ye,Ze){var We=A.tiling.pad,Fe=function(Pe){return Pe-We<=Ye.x0},Me=function(Pe){return Pe+We>=Ye.x1},we=function(Pe){return Pe-We<=Ye.y0},Re=function(Pe){return Pe+We>=Ye.y1};return Be.x0===Ye.x0&&Be.x1===Ye.x1&&Be.y0===Ye.y0&&Be.y1===Ye.y1?{x0:Be.x0,x1:Be.x1,y0:Be.y0,y1:Be.y1}:{x0:Fe(Be.x0-We)?0:Me(Be.x0-We)?Ze[0]:Be.x0,x1:Fe(Be.x1+We)?0:Me(Be.x1+We)?Ze[0]:Be.x1,y0:we(Be.y0-We)?0:Re(Be.y0-We)?Ze[1]:Be.y0,y1:we(Be.y1+We)?0:Re(Be.y1+We)?Ze[1]:Be.y1}},Q=null,J={},oe={},K=null,ne=function(Be,Ye){return Ye?J[h(Be)]:oe[h(Be)]},ce=function(Be,Ye,Ze,We){if(Ye)return J[h(T)]||ie;var Fe=oe[A.level]||Ze;return G(Be)?fe(Be,Fe,We):{}};y.hasMultipleRoots&&I&&B++,A._maxDepth=B,A._backgroundColor=c.paper_bgcolor,A._entryDepth=L.data.depth,A._atRootLevel=I;var re=-W/2+U.l+U.w*(H.x[1]+H.x[0])/2,ee=-V/2+U.t+U.h*(1-(H.y[1]+H.y[0])/2),de=function(Be){return re+Be},le=function(Be){return ee+Be},he=le(0),xe=de(0),Ee=function(Be){return xe+Be},Se=function(Be){return he+Be};function ke(Be,Ye){return Be+","+Ye}var Te=Ee(0),Ae=function(Be){Be.x=Math.max(Te,Be.x)},be=A.pathbar.edgeshape,Ie=function(Be){var Ye=Ee(Math.max(Math.min(Be.x0,Be.x0),0)),Ze=Ee(Math.min(Math.max(Be.x1,Be.x1),$)),We=Se(Be.y0),Fe=Se(Be.y1),Me=Z/2,we={},Re={};we.x=Ye,Re.x=Ze,we.y=Re.y=(We+Fe)/2;var Pe={x:Ye,y:We},Ve={x:Ze,y:We},Je={x:Ze,y:Fe},ot={x:Ye,y:Fe};return be===">"?(Pe.x-=Me,Ve.x-=Me,Je.x-=Me,ot.x-=Me):be==="/"?(Je.x-=Me,ot.x-=Me,we.x-=Me/2,Re.x-=Me/2):be==="\\"?(Pe.x-=Me,Ve.x-=Me,we.x-=Me/2,Re.x-=Me/2):be==="<"&&(we.x-=Me,Re.x-=Me),Ae(Pe),Ae(ot),Ae(we),Ae(Ve),Ae(Je),Ae(Re),"M"+ke(Pe.x,Pe.y)+"L"+ke(Ve.x,Ve.y)+"L"+ke(Re.x,Re.y)+"L"+ke(Je.x,Je.y)+"L"+ke(ot.x,ot.y)+"L"+ke(we.x,we.y)+"Z"},Ue=A[R?"tiling":"marker"].pad,Ne=function(Be){return A.textposition.indexOf(Be)!==-1},ze=Ne("top"),$e=Ne("left"),st=Ne("right"),vt=Ne("bottom"),at=function(Be){var Ye=de(Be.x0),Ze=de(Be.x1),We=le(Be.y0),Fe=le(Be.y1),Me=Ze-Ye,we=Fe-We;if(!Me||!we)return"";var Re=A.marker.cornerradius||0,Pe=Math.min(Re,Me/2,we/2);Pe&&Be.data&&Be.data.data&&Be.data.data.label&&(ze&&(Pe=Math.min(Pe,Ue.t)),$e&&(Pe=Math.min(Pe,Ue.l)),st&&(Pe=Math.min(Pe,Ue.r)),vt&&(Pe=Math.min(Pe,Ue.b)));var Ve=function(Je,ot){return Pe?"a"+ke(Pe,Pe)+" 0 0 1 "+ke(Je,ot):""};return"M"+ke(Ye,We+Pe)+Ve(Pe,-Pe)+"L"+ke(Ze-Pe,We)+Ve(Pe,Pe)+"L"+ke(Ze,Fe-Pe)+Ve(-Pe,Pe)+"L"+ke(Ye+Pe,Fe)+Ve(-Pe,-Pe)+"Z"},nt=function(Be,Ye){var Ze=Be.x0,We=Be.x1,Fe=Be.y0,Me=Be.y1,we=Be.textBB,Re=ze||Ye.isHeader&&!vt,Pe=Re?"start":vt?"end":"middle",Ve=Ne("right"),Je=Ne("left")||Ye.onPathbar,ot=Je?-1:Ve?1:0;if(Ye.isHeader){if(Ze+=(R?Ue:Ue.l)-w,We-=(R?Ue:Ue.r)-w,Ze>=We){var yt=(Ze+We)/2;Ze=yt,We=yt}var ut;vt?(ut=Me-(R?Ue:Ue.b),Fe0)for(var P=0;P0){var M=m.xa,R=m.ya,T,L,P,d,k;u.orientation==="h"?(k=a,T="y",P=R,L="x",d=M):(k=n,T="x",P=M,L="y",d=R);var I=f[m.index];if(k>=I.span[0]&&k<=I.span[1]){var N=S.extendFlat({},m),B=d.c2p(k,!0),G=w.getKdeValue(I,u,k),U=w.getPositionOnKdePath(I,u,B),H=P._offset,W=P._length;N[T+"0"]=U[0],N[T+"1"]=U[1],N[L+"0"]=N[L+"1"]=B,N[L+"Label"]=L+": "+i.hoverLabelText(d,k,u[L+"hoverformat"])+", "+f[0].t.labels.kde+" "+G.toFixed(3);for(var V=0,$=0;$")),f.color=v(b,A),[f]};function v(m,a){var n=m[a.dir].marker,s=n.color,o=n.line.color,h=n.line.width;if(S(s))return s;if(S(o)&&h)return o}},95952:function(D,O,t){D.exports={attributes:t(65776),layoutAttributes:t(91352),supplyDefaults:t(24224).supplyDefaults,crossTraceDefaults:t(24224).crossTraceDefaults,supplyLayoutDefaults:t(59464),calc:t(73540),crossTraceCalc:t(50152),plot:t(64488),style:t(12252).style,hoverPoints:t(94196),eventData:t(53256),selectPoints:t(45784),moduleType:"trace",name:"waterfall",basePlotModule:t(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(D){D.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(D,O,t){var l=t(3400),S=t(91352);D.exports=function(i,C,w){var v=!1;function m(s,o){return l.coerce(i,C,S,s,o)}for(var a=0;a0&&(c?k+="M"+P[0]+","+d[1]+"V"+d[0]:k+="M"+P[1]+","+d[0]+"H"+P[0]),y!=="between"&&(R.isSum||T path").each(function(p){if(!p.isBlank){var E=b[p.dir].marker;l.select(this).call(i.fill,E.color).call(i.stroke,E.line.color).call(S.dashLine,E.line.dash,E.line.width).style("opacity",b.selectedpoints&&!p.selected?C:1)}}),m(u,b,n),u.selectAll(".lines").each(function(){var p=b.connector.line;S.lineGroupStyle(l.select(this).selectAll("path"),p.width,p.color,p.dash)})})}D.exports={style:a}},84224:function(D,O,t){var l=t(54460),S=t(3400),i=t(73060),C=t(60468).W,w=t(39032).BADNUM;O.moduleType="transform",O.name="aggregate";var v=O.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},m=v.aggregations;O.supplyDefaults=function(f,u){var b={},p;function E(I,N){return S.coerce(f,b,v,I,N)}var g=E("enabled");if(!g)return b;var c=i.findArrayAttributes(u),y={};for(p=0;pA&&(A=L,M=T)}}return A?E(M):w};case"rms":return function(g,c){for(var y=0,A=0,M=0;M":return function(y){return g(y)>c};case">=":return function(y){return g(y)>=c};case"[]":return function(y){var A=g(y);return A>=c[0]&&A<=c[1]};case"()":return function(y){var A=g(y);return A>c[0]&&A=c[0]&&Ac[0]&&A<=c[1]};case"][":return function(y){var A=g(y);return A<=c[0]||A>=c[1]};case")(":return function(y){var A=g(y);return Ac[1]};case"](":return function(y){var A=g(y);return A<=c[0]||A>c[1]};case")[":return function(y){var A=g(y);return A=c[1]};case"{}":return function(y){return c.indexOf(g(y))!==-1};case"}{":return function(y){return c.indexOf(g(y))===-1}}}},32028:function(D,O,t){var l=t(3400),S=t(73060),i=t(7316),C=t(60468).W;O.moduleType="transform",O.name="groupby",O.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},O.supplyDefaults=function(v,m,a){var n,s={};function o(E,g){return l.coerce(v,s,O.attributes,E,g)}var h=o("enabled");if(!h)return s;o("groups"),o("nameformat",a._dataLength>1?"%{group} (%{trace})":"%{group}");var f=v.styles,u=s.styles=[];if(f)for(n=0;n * @license MIT -*/function n(Me,we){if(!(Me instanceof we))throw new TypeError("Cannot call a class as a function")}function s(Me,we){for(var Re=0;Re"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(Me){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Re){return Re.__proto__||Object.getPrototypeOf(Re)},g(Me)}function c(Me){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},c(Me)}var x=a(3910),A=a(3187),M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;m.lW=P,m.h2=50;var R=2147483647;P.TYPED_ARRAY_SUPPORT=T(),!P.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function T(){try{var Me=new Uint8Array(1),we={foo:function(){return 42}};return Object.setPrototypeOf(we,Uint8Array.prototype),Object.setPrototypeOf(Me,we),Me.foo()===42}catch{return!1}}Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.buffer}}),Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.byteOffset}});function L(Me){if(Me>R)throw new RangeError('The value "'+Me+'" is invalid for option "size"');var we=new Uint8Array(Me);return Object.setPrototypeOf(we,P.prototype),we}function P(Me,we,Re){if(typeof Me=="number"){if(typeof we=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(Me)}return d(Me,we,Re)}P.poolSize=8192;function d(Me,we,Re){if(typeof Me=="string")return B(Me,we);if(ArrayBuffer.isView(Me))return U(Me);if(Me==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(Me));if(Be(Me,ArrayBuffer)||Me&&Be(Me.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Be(Me,SharedArrayBuffer)||Me&&Be(Me.buffer,SharedArrayBuffer)))return H(Me,we,Re);if(typeof Me=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Pe=Me.valueOf&&Me.valueOf();if(Pe!=null&&Pe!==Me)return P.from(Pe,we,Re);var Ve=W(Me);if(Ve)return Ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Me[Symbol.toPrimitive]=="function")return P.from(Me[Symbol.toPrimitive]("string"),we,Re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(Me))}P.from=function(Me,we,Re){return d(Me,we,Re)},Object.setPrototypeOf(P.prototype,Uint8Array.prototype),Object.setPrototypeOf(P,Uint8Array);function k(Me){if(typeof Me!="number")throw new TypeError('"size" argument must be of type number');if(Me<0)throw new RangeError('The value "'+Me+'" is invalid for option "size"')}function I(Me,we,Re){return k(Me),Me<=0?L(Me):we!==void 0?typeof Re=="string"?L(Me).fill(we,Re):L(Me).fill(we):L(Me)}P.alloc=function(Me,we,Re){return I(Me,we,Re)};function N(Me){return k(Me),L(Me<0?0:V(Me)|0)}P.allocUnsafe=function(Me){return N(Me)},P.allocUnsafeSlow=function(Me){return N(Me)};function B(Me,we){if((typeof we!="string"||we==="")&&(we="utf8"),!P.isEncoding(we))throw new TypeError("Unknown encoding: "+we);var Re=$(Me,we)|0,Pe=L(Re),Ve=Pe.write(Me,we);return Ve!==Re&&(Pe=Pe.slice(0,Ve)),Pe}function G(Me){for(var we=Me.length<0?0:V(Me.length)|0,Re=L(we),Pe=0;Pe=R)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return Me|0}P.isBuffer=function(we){return we!=null&&we._isBuffer===!0&&we!==P.prototype},P.compare=function(we,Re){if(Be(we,Uint8Array)&&(we=P.from(we,we.offset,we.byteLength)),Be(Re,Uint8Array)&&(Re=P.from(Re,Re.offset,Re.byteLength)),!P.isBuffer(we)||!P.isBuffer(Re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(we===Re)return 0;for(var Pe=we.length,Ve=Re.length,Je=0,ot=Math.min(Pe,Ve);JeVe.length?(P.isBuffer(ot)||(ot=P.from(ot)),ot.copy(Ve,Je)):Uint8Array.prototype.set.call(Ve,ot,Je);else if(P.isBuffer(ot))ot.copy(Ve,Je);else throw new TypeError('"list" argument must be an Array of Buffers');Je+=ot.length}return Ve};function $(Me,we){if(P.isBuffer(Me))return Me.length;if(ArrayBuffer.isView(Me)||Be(Me,ArrayBuffer))return Me.byteLength;if(typeof Me!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+c(Me));var Re=Me.length,Pe=arguments.length>2&&arguments[2]===!0;if(!Pe&&Re===0)return 0;for(var Ve=!1;;)switch(we){case"ascii":case"latin1":case"binary":return Re;case"utf8":case"utf-8":return rt(Me).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re*2;case"hex":return Re>>>1;case"base64":return wt(Me).length;default:if(Ve)return Pe?-1:rt(Me).length;we=(""+we).toLowerCase(),Ve=!0}}P.byteLength=$;function Z(Me,we,Re){var Pe=!1;if((we===void 0||we<0)&&(we=0),we>this.length||((Re===void 0||Re>this.length)&&(Re=this.length),Re<=0)||(Re>>>=0,we>>>=0,Re<=we))return"";for(Me||(Me="utf8");;)switch(Me){case"hex":return he(this,we,Re);case"utf8":case"utf-8":return ce(this,we,Re);case"ascii":return de(this,we,Re);case"latin1":case"binary":return le(this,we,Re);case"base64":return ne(this,we,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,we,Re);default:if(Pe)throw new TypeError("Unknown encoding: "+Me);Me=(Me+"").toLowerCase(),Pe=!0}}P.prototype._isBuffer=!0;function q(Me,we,Re){var Pe=Me[we];Me[we]=Me[Re],Me[Re]=Pe}P.prototype.swap16=function(){var we=this.length;if(we%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Re=0;ReRe&&(we+=" ... "),""},M&&(P.prototype[M]=P.prototype.inspect),P.prototype.compare=function(we,Re,Pe,Ve,Je){if(Be(we,Uint8Array)&&(we=P.from(we,we.offset,we.byteLength)),!P.isBuffer(we))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+c(we));if(Re===void 0&&(Re=0),Pe===void 0&&(Pe=we?we.length:0),Ve===void 0&&(Ve=0),Je===void 0&&(Je=this.length),Re<0||Pe>we.length||Ve<0||Je>this.length)throw new RangeError("out of range index");if(Ve>=Je&&Re>=Pe)return 0;if(Ve>=Je)return-1;if(Re>=Pe)return 1;if(Re>>>=0,Pe>>>=0,Ve>>>=0,Je>>>=0,this===we)return 0;for(var ot=Je-Ve,yt=Pe-Re,ut=Math.min(ot,yt),It=this.slice(Ve,Je),Vt=we.slice(Re,Pe),xt=0;xt2147483647?Re=2147483647:Re<-2147483648&&(Re=-2147483648),Re=+Re,Ye(Re)&&(Re=Ve?0:Me.length-1),Re<0&&(Re=Me.length+Re),Re>=Me.length){if(Ve)return-1;Re=Me.length-1}else if(Re<0)if(Ve)Re=0;else return-1;if(typeof we=="string"&&(we=P.from(we,Pe)),P.isBuffer(we))return we.length===0?-1:ie(Me,we,Re,Pe,Ve);if(typeof we=="number")return we=we&255,typeof Uint8Array.prototype.indexOf=="function"?Ve?Uint8Array.prototype.indexOf.call(Me,we,Re):Uint8Array.prototype.lastIndexOf.call(Me,we,Re):ie(Me,[we],Re,Pe,Ve);throw new TypeError("val must be string, number or Buffer")}function ie(Me,we,Re,Pe,Ve){var Je=1,ot=Me.length,yt=we.length;if(Pe!==void 0&&(Pe=String(Pe).toLowerCase(),Pe==="ucs2"||Pe==="ucs-2"||Pe==="utf16le"||Pe==="utf-16le")){if(Me.length<2||we.length<2)return-1;Je=2,ot/=2,yt/=2,Re/=2}function ut(Xt,dr){return Je===1?Xt[dr]:Xt.readUInt16BE(dr*Je)}var It;if(Ve){var Vt=-1;for(It=Re;Itot&&(Re=ot-yt),It=Re;It>=0;It--){for(var xt=!0,Lt=0;LtVe&&(Pe=Ve)):Pe=Ve;var Je=we.length;Pe>Je/2&&(Pe=Je/2);var ot;for(ot=0;ot>>0,isFinite(Pe)?(Pe=Pe>>>0,Ve===void 0&&(Ve="utf8")):(Ve=Pe,Pe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Je=this.length-Re;if((Pe===void 0||Pe>Je)&&(Pe=Je),we.length>0&&(Pe<0||Re<0)||Re>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ve||(Ve="utf8");for(var ot=!1;;)switch(Ve){case"hex":return fe(this,we,Re,Pe);case"utf8":case"utf-8":return Q(this,we,Re,Pe);case"ascii":case"latin1":case"binary":return J(this,we,Re,Pe);case"base64":return oe(this,we,Re,Pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,we,Re,Pe);default:if(ot)throw new TypeError("Unknown encoding: "+Ve);Ve=(""+Ve).toLowerCase(),ot=!0}},P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(Me,we,Re){return we===0&&Re===Me.length?x.fromByteArray(Me):x.fromByteArray(Me.slice(we,Re))}function ce(Me,we,Re){Re=Math.min(Me.length,Re);for(var Pe=[],Ve=we;Ve239?4:Je>223?3:Je>191?2:1;if(Ve+yt<=Re){var ut=void 0,It=void 0,Vt=void 0,xt=void 0;switch(yt){case 1:Je<128&&(ot=Je);break;case 2:ut=Me[Ve+1],(ut&192)===128&&(xt=(Je&31)<<6|ut&63,xt>127&&(ot=xt));break;case 3:ut=Me[Ve+1],It=Me[Ve+2],(ut&192)===128&&(It&192)===128&&(xt=(Je&15)<<12|(ut&63)<<6|It&63,xt>2047&&(xt<55296||xt>57343)&&(ot=xt));break;case 4:ut=Me[Ve+1],It=Me[Ve+2],Vt=Me[Ve+3],(ut&192)===128&&(It&192)===128&&(Vt&192)===128&&(xt=(Je&15)<<18|(ut&63)<<12|(It&63)<<6|Vt&63,xt>65535&&xt<1114112&&(ot=xt))}}ot===null?(ot=65533,yt=1):ot>65535&&(ot-=65536,Pe.push(ot>>>10&1023|55296),ot=56320|ot&1023),Pe.push(ot),Ve+=yt}return ee(Pe)}var re=4096;function ee(Me){var we=Me.length;if(we<=re)return String.fromCharCode.apply(String,Me);for(var Re="",Pe=0;PePe)&&(Re=Pe);for(var Ve="",Je=we;JePe&&(we=Pe),Re<0?(Re+=Pe,Re<0&&(Re=0)):Re>Pe&&(Re=Pe),ReRe)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUintLE=P.prototype.readUIntLE=function(we,Re,Pe){we=we>>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=this[we],Je=1,ot=0;++ot>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=this[we+--Re],Je=1;Re>0&&(Je*=256);)Ve+=this[we+--Re]*Je;return Ve},P.prototype.readUint8=P.prototype.readUInt8=function(we,Re){return we=we>>>0,Re||Ee(we,1,this.length),this[we]},P.prototype.readUint16LE=P.prototype.readUInt16LE=function(we,Re){return we=we>>>0,Re||Ee(we,2,this.length),this[we]|this[we+1]<<8},P.prototype.readUint16BE=P.prototype.readUInt16BE=function(we,Re){return we=we>>>0,Re||Ee(we,2,this.length),this[we]<<8|this[we+1]},P.prototype.readUint32LE=P.prototype.readUInt32LE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),(this[we]|this[we+1]<<8|this[we+2]<<16)+this[we+3]*16777216},P.prototype.readUint32BE=P.prototype.readUInt32BE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),this[we]*16777216+(this[we+1]<<16|this[we+2]<<8|this[we+3])},P.prototype.readBigUInt64LE=We(function(we){we=we>>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=Re+this[++we]*Math.pow(2,8)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,24),Je=this[++we]+this[++we]*Math.pow(2,8)+this[++we]*Math.pow(2,16)+Pe*Math.pow(2,24);return BigInt(Ve)+(BigInt(Je)<>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=Re*Math.pow(2,24)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,8)+this[++we],Je=this[++we]*Math.pow(2,24)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,8)+Pe;return(BigInt(Ve)<>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=this[we],Je=1,ot=0;++ot=Je&&(Ve-=Math.pow(2,8*Re)),Ve},P.prototype.readIntBE=function(we,Re,Pe){we=we>>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=Re,Je=1,ot=this[we+--Ve];Ve>0&&(Je*=256);)ot+=this[we+--Ve]*Je;return Je*=128,ot>=Je&&(ot-=Math.pow(2,8*Re)),ot},P.prototype.readInt8=function(we,Re){return we=we>>>0,Re||Ee(we,1,this.length),this[we]&128?(255-this[we]+1)*-1:this[we]},P.prototype.readInt16LE=function(we,Re){we=we>>>0,Re||Ee(we,2,this.length);var Pe=this[we]|this[we+1]<<8;return Pe&32768?Pe|4294901760:Pe},P.prototype.readInt16BE=function(we,Re){we=we>>>0,Re||Ee(we,2,this.length);var Pe=this[we+1]|this[we]<<8;return Pe&32768?Pe|4294901760:Pe},P.prototype.readInt32LE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),this[we]|this[we+1]<<8|this[we+2]<<16|this[we+3]<<24},P.prototype.readInt32BE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),this[we]<<24|this[we+1]<<16|this[we+2]<<8|this[we+3]},P.prototype.readBigInt64LE=We(function(we){we=we>>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=this[we+4]+this[we+5]*Math.pow(2,8)+this[we+6]*Math.pow(2,16)+(Pe<<24);return(BigInt(Ve)<>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=(Re<<24)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,8)+this[++we];return(BigInt(Ve)<>>0,Re||Ee(we,4,this.length),A.read(this,we,!0,23,4)},P.prototype.readFloatBE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),A.read(this,we,!1,23,4)},P.prototype.readDoubleLE=function(we,Re){return we=we>>>0,Re||Ee(we,8,this.length),A.read(this,we,!0,52,8)},P.prototype.readDoubleBE=function(we,Re){return we=we>>>0,Re||Ee(we,8,this.length),A.read(this,we,!1,52,8)};function Se(Me,we,Re,Pe,Ve,Je){if(!P.isBuffer(Me))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>Ve||weMe.length)throw new RangeError("Index out of range")}P.prototype.writeUintLE=P.prototype.writeUIntLE=function(we,Re,Pe,Ve){if(we=+we,Re=Re>>>0,Pe=Pe>>>0,!Ve){var Je=Math.pow(2,8*Pe)-1;Se(this,we,Re,Pe,Je,0)}var ot=1,yt=0;for(this[Re]=we&255;++yt>>0,Pe=Pe>>>0,!Ve){var Je=Math.pow(2,8*Pe)-1;Se(this,we,Re,Pe,Je,0)}var ot=Pe-1,yt=1;for(this[Re+ot]=we&255;--ot>=0&&(yt*=256);)this[Re+ot]=we/yt&255;return Re+Pe},P.prototype.writeUint8=P.prototype.writeUInt8=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,1,255,0),this[Re]=we&255,Re+1},P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,65535,0),this[Re]=we&255,this[Re+1]=we>>>8,Re+2},P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,65535,0),this[Re]=we>>>8,this[Re+1]=we&255,Re+2},P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,4294967295,0),this[Re+3]=we>>>24,this[Re+2]=we>>>16,this[Re+1]=we>>>8,this[Re]=we&255,Re+4},P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,4294967295,0),this[Re]=we>>>24,this[Re+1]=we>>>16,this[Re+2]=we>>>8,this[Re+3]=we&255,Re+4};function ke(Me,we,Re,Pe,Ve){st(we,Pe,Ve,Me,Re,7);var Je=Number(we&BigInt(4294967295));Me[Re++]=Je,Je=Je>>8,Me[Re++]=Je,Je=Je>>8,Me[Re++]=Je,Je=Je>>8,Me[Re++]=Je;var ot=Number(we>>BigInt(32)&BigInt(4294967295));return Me[Re++]=ot,ot=ot>>8,Me[Re++]=ot,ot=ot>>8,Me[Re++]=ot,ot=ot>>8,Me[Re++]=ot,Re}function Te(Me,we,Re,Pe,Ve){st(we,Pe,Ve,Me,Re,7);var Je=Number(we&BigInt(4294967295));Me[Re+7]=Je,Je=Je>>8,Me[Re+6]=Je,Je=Je>>8,Me[Re+5]=Je,Je=Je>>8,Me[Re+4]=Je;var ot=Number(we>>BigInt(32)&BigInt(4294967295));return Me[Re+3]=ot,ot=ot>>8,Me[Re+2]=ot,ot=ot>>8,Me[Re+1]=ot,ot=ot>>8,Me[Re]=ot,Re+8}P.prototype.writeBigUInt64LE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ke(this,we,Re,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeBigUInt64BE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Te(this,we,Re,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeIntLE=function(we,Re,Pe,Ve){if(we=+we,Re=Re>>>0,!Ve){var Je=Math.pow(2,8*Pe-1);Se(this,we,Re,Pe,Je-1,-Je)}var ot=0,yt=1,ut=0;for(this[Re]=we&255;++ot>0)-ut&255;return Re+Pe},P.prototype.writeIntBE=function(we,Re,Pe,Ve){if(we=+we,Re=Re>>>0,!Ve){var Je=Math.pow(2,8*Pe-1);Se(this,we,Re,Pe,Je-1,-Je)}var ot=Pe-1,yt=1,ut=0;for(this[Re+ot]=we&255;--ot>=0&&(yt*=256);)we<0&&ut===0&&this[Re+ot+1]!==0&&(ut=1),this[Re+ot]=(we/yt>>0)-ut&255;return Re+Pe},P.prototype.writeInt8=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,1,127,-128),we<0&&(we=255+we+1),this[Re]=we&255,Re+1},P.prototype.writeInt16LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,32767,-32768),this[Re]=we&255,this[Re+1]=we>>>8,Re+2},P.prototype.writeInt16BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,32767,-32768),this[Re]=we>>>8,this[Re+1]=we&255,Re+2},P.prototype.writeInt32LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,2147483647,-2147483648),this[Re]=we&255,this[Re+1]=we>>>8,this[Re+2]=we>>>16,this[Re+3]=we>>>24,Re+4},P.prototype.writeInt32BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,2147483647,-2147483648),we<0&&(we=4294967295+we+1),this[Re]=we>>>24,this[Re+1]=we>>>16,this[Re+2]=we>>>8,this[Re+3]=we&255,Re+4},P.prototype.writeBigInt64LE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ke(this,we,Re,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),P.prototype.writeBigInt64BE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Te(this,we,Re,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(Me,we,Re,Pe,Ve,Je){if(Re+Pe>Me.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("Index out of range")}function be(Me,we,Re,Pe,Ve){return we=+we,Re=Re>>>0,Ve||Ae(Me,we,Re,4),A.write(Me,we,Re,Pe,23,4),Re+4}P.prototype.writeFloatLE=function(we,Re,Pe){return be(this,we,Re,!0,Pe)},P.prototype.writeFloatBE=function(we,Re,Pe){return be(this,we,Re,!1,Pe)};function Ie(Me,we,Re,Pe,Ve){return we=+we,Re=Re>>>0,Ve||Ae(Me,we,Re,8),A.write(Me,we,Re,Pe,52,8),Re+8}P.prototype.writeDoubleLE=function(we,Re,Pe){return Ie(this,we,Re,!0,Pe)},P.prototype.writeDoubleBE=function(we,Re,Pe){return Ie(this,we,Re,!1,Pe)},P.prototype.copy=function(we,Re,Pe,Ve){if(!P.isBuffer(we))throw new TypeError("argument should be a Buffer");if(Pe||(Pe=0),!Ve&&Ve!==0&&(Ve=this.length),Re>=we.length&&(Re=we.length),Re||(Re=0),Ve>0&&Ve=this.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("sourceEnd out of bounds");Ve>this.length&&(Ve=this.length),we.length-Re>>0,Pe=Pe===void 0?this.length:Pe>>>0,we||(we=0);var ot;if(typeof we=="number")for(ot=Re;otMath.pow(2,32)?Ve=ze(String(Re)):typeof Re=="bigint"&&(Ve=String(Re),(Re>Math.pow(BigInt(2),BigInt(32))||Re<-Math.pow(BigInt(2),BigInt(32)))&&(Ve=ze(Ve)),Ve+="n"),Pe+=" It must be ".concat(we,". Received ").concat(Ve),Pe},RangeError);function ze(Me){for(var we="",Re=Me.length,Pe=Me[0]==="-"?1:0;Re>=Pe+4;Re-=3)we="_".concat(Me.slice(Re-3,Re)).concat(we);return"".concat(Me.slice(0,Re)).concat(we)}function $e(Me,we,Re){vt(we,"offset"),(Me[we]===void 0||Me[we+Re]===void 0)&&at(we,Me.length-(Re+1))}function st(Me,we,Re,Pe,Ve,Je){if(Me>Re||Me3?we===0||we===BigInt(0)?yt=">= 0".concat(ot," and < 2").concat(ot," ** ").concat((Je+1)*8).concat(ot):yt=">= -(2".concat(ot," ** ").concat((Je+1)*8-1).concat(ot,") and < 2 ** ")+"".concat((Je+1)*8-1).concat(ot):yt=">= ".concat(we).concat(ot," and <= ").concat(Re).concat(ot),new Ue.ERR_OUT_OF_RANGE("value",yt,Me)}$e(Pe,Ve,Je)}function vt(Me,we){if(typeof Me!="number")throw new Ue.ERR_INVALID_ARG_TYPE(we,"number",Me)}function at(Me,we,Re){throw Math.floor(Me)!==Me?(vt(Me,Re),new Ue.ERR_OUT_OF_RANGE(Re||"offset","an integer",Me)):we<0?new Ue.ERR_BUFFER_OUT_OF_BOUNDS:new Ue.ERR_OUT_OF_RANGE(Re||"offset",">= ".concat(Re?1:0," and <= ").concat(we),Me)}var nt=/[^+/0-9A-Za-z-_]/g;function mt(Me){if(Me=Me.split("=")[0],Me=Me.trim().replace(nt,""),Me.length<2)return"";for(;Me.length%4!==0;)Me=Me+"=";return Me}function rt(Me,we){we=we||1/0;for(var Re,Pe=Me.length,Ve=null,Je=[],ot=0;ot55295&&Re<57344){if(!Ve){if(Re>56319){(we-=3)>-1&&Je.push(239,191,189);continue}else if(ot+1===Pe){(we-=3)>-1&&Je.push(239,191,189);continue}Ve=Re;continue}if(Re<56320){(we-=3)>-1&&Je.push(239,191,189),Ve=Re;continue}Re=(Ve-55296<<10|Re-56320)+65536}else Ve&&(we-=3)>-1&&Je.push(239,191,189);if(Ve=null,Re<128){if((we-=1)<0)break;Je.push(Re)}else if(Re<2048){if((we-=2)<0)break;Je.push(Re>>6|192,Re&63|128)}else if(Re<65536){if((we-=3)<0)break;Je.push(Re>>12|224,Re>>6&63|128,Re&63|128)}else if(Re<1114112){if((we-=4)<0)break;Je.push(Re>>18|240,Re>>12&63|128,Re>>6&63|128,Re&63|128)}else throw new Error("Invalid code point")}return Je}function lt(Me){for(var we=[],Re=0;Re>8,Ve=Re%256,Je.push(Ve),Je.push(Pe);return Je}function wt(Me){return x.toByteArray(mt(Me))}function et(Me,we,Re,Pe){var Ve;for(Ve=0;Ve=we.length||Ve>=Me.length);++Ve)we[Ve+Re]=Me[Ve];return Ve}function Be(Me,we){return Me instanceof we||Me!=null&&Me.constructor!=null&&Me.constructor.name!=null&&Me.constructor.name===we.name}function Ye(Me){return Me!==Me}var Ke=function(){for(var Me="0123456789abcdef",we=new Array(256),Re=0;Re<16;++Re)for(var Pe=Re*16,Ve=0;Ve<16;++Ve)we[Pe+Ve]=Me[Re]+Me[Ve];return we}();function We(Me){return typeof BigInt>"u"?Fe:Me}function Fe(){throw new Error("BigInt not supported")}},2321:function(v){v.exports=s,v.exports.isMobile=s,v.exports.default=s;var m=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,n=/android|ipad|playbook|silk/i;function s(o){o||(o={});var h=o.ua;if(!h&&typeof navigator<"u"&&(h=navigator.userAgent),h&&h.headers&&typeof h.headers["user-agent"]=="string"&&(h=h.headers["user-agent"]),typeof h!="string")return!1;var f=m.test(h)&&!a.test(h)||!!o.tablet&&n.test(h);return!f&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&h.indexOf("Macintosh")!==-1&&h.indexOf("Safari")!==-1&&(f=!0),f}},3910:function(v,m){m.byteLength=b,m.toByteArray=E,m.fromByteArray=x;for(var a=[],n=[],s=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,f=o.length;h0)throw new Error("Invalid string. Length must be a multiple of 4");var R=A.indexOf("=");R===-1&&(R=M);var T=R===M?0:4-R%4;return[R,T]}function b(A){var M=u(A),R=M[0],T=M[1];return(R+T)*3/4-T}function p(A,M,R){return(M+R)*3/4-R}function E(A){var M,R=u(A),T=R[0],L=R[1],P=new s(p(A,T,L)),d=0,k=L>0?T-4:T,I;for(I=0;I>16&255,P[d++]=M>>8&255,P[d++]=M&255;return L===2&&(M=n[A.charCodeAt(I)]<<2|n[A.charCodeAt(I+1)]>>4,P[d++]=M&255),L===1&&(M=n[A.charCodeAt(I)]<<10|n[A.charCodeAt(I+1)]<<4|n[A.charCodeAt(I+2)]>>2,P[d++]=M>>8&255,P[d++]=M&255),P}function g(A){return a[A>>18&63]+a[A>>12&63]+a[A>>6&63]+a[A&63]}function c(A,M,R){for(var T,L=[],P=M;Pk?k:d+P));return T===1?(M=A[R-1],L.push(a[M>>2]+a[M<<4&63]+"==")):T===2&&(M=(A[R-2]<<8)+A[R-1],L.push(a[M>>10]+a[M>>4&63]+a[M<<2&63]+"=")),L.join("")}},3187:function(v,m){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */m.read=function(a,n,s,o,h){var f,u,b=h*8-o-1,p=(1<>1,g=-7,c=s?h-1:0,x=s?-1:1,A=a[n+c];for(c+=x,f=A&(1<<-g)-1,A>>=-g,g+=b;g>0;f=f*256+a[n+c],c+=x,g-=8);for(u=f&(1<<-g)-1,f>>=-g,g+=o;g>0;u=u*256+a[n+c],c+=x,g-=8);if(f===0)f=1-E;else{if(f===p)return u?NaN:(A?-1:1)*(1/0);u=u+Math.pow(2,o),f=f-E}return(A?-1:1)*u*Math.pow(2,f-o)},m.write=function(a,n,s,o,h,f){var u,b,p,E=f*8-h-1,g=(1<>1,x=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=o?0:f-1,M=o?1:-1,R=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(b=isNaN(n)?1:0,u=g):(u=Math.floor(Math.log(n)/Math.LN2),n*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+c>=1?n+=x/p:n+=x*Math.pow(2,1-c),n*p>=2&&(u++,p/=2),u+c>=g?(b=0,u=g):u+c>=1?(b=(n*p-1)*Math.pow(2,h),u=u+c):(b=n*Math.pow(2,c-1)*Math.pow(2,h),u=0));h>=8;a[s+A]=b&255,A+=M,b/=256,h-=8);for(u=u<0;a[s+A]=u&255,A+=M,u/=256,E-=8);a[s+A-M]|=R*128}},1152:function(v,m,a){v.exports=u;var n=a(3440),s=a(7774),o=a(9298);function h(b,p){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(E){return b[E]}),this._mode=p,this._active=b[p],this._active||(this._mode="turntable",this._active=b.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=h.prototype;f.flush=function(b){for(var p=this._controllerList,E=0;E"u"?a(5346):WeakMap,s=a(5827),o=a(2944),h=new n;function f(u){var b=h.get(u),p=b&&(b._triangleBuffer.handle||b._triangleBuffer.buffer);if(!p||!u.isBuffer(p)){var E=s(u,new Float32Array([-1,-1,-1,4,4,-1]));b=o(u,[{buffer:E,type:u.FLOAT,size:2}]),b._triangleBuffer=E,h.set(u,b)}b.bind(),u.drawArrays(u.TRIANGLES,0,3),b.unbind()}v.exports=f},8008:function(v,m,a){var n=a(4930);v.exports=s;function s(o,h,f){h=typeof h=="number"?h:1,f=f||": ";var u=o.split(/\r?\n/),b=String(u.length+h-1).length;return u.map(function(p,E){var g=E+h,c=String(g).length,x=n(g,b-c);return x+f+p}).join(` -`)}},2153:function(v,m,a){v.exports=o;var n=a(417);function s(h,f){for(var u=new Array(f+1),b=0;b0?c=c.ushln(g):g<0&&(x=x.ushln(-g)),f(c,x)}},234:function(v,m,a){var n=a(3218);v.exports=s;function s(o){return Array.isArray(o)&&o.length===2&&n(o[0])&&n(o[1])}},4275:function(v,m,a){var n=a(1928);v.exports=s;function s(o){return o.cmp(new n(0))}},9958:function(v,m,a){var n=a(4275);v.exports=s;function s(o){var h=o.length,f=o.words,u=0;if(h===1)u=f[0];else if(h===2)u=f[0]+f[1]*67108864;else for(var b=0;b20?52:u+32}},3218:function(v,m,a){a(1928),v.exports=n;function n(s){return s&&typeof s=="object"&&!!s.words}},5514:function(v,m,a){var n=a(1928),s=a(8362);v.exports=o;function o(h){var f=s.exponent(h);return f<52?new n(h):new n(h*Math.pow(2,52-f)).ushln(f-52)}},8524:function(v,m,a){var n=a(5514),s=a(4275);v.exports=o;function o(h,f){var u=s(h),b=s(f);if(u===0)return[n(0),n(1)];if(b===0)return[n(0),n(0)];b<0&&(h=h.neg(),f=f.neg());var p=h.gcd(f);return p.cmpn(1)?[h.div(p),f.div(p)]:[h,f]}},2813:function(v,m,a){var n=a(1928);v.exports=s;function s(o){return new n(o)}},3962:function(v,m,a){var n=a(8524);v.exports=s;function s(o,h){return n(o[0].mul(h[0]),o[1].mul(h[1]))}},4951:function(v,m,a){var n=a(4275);v.exports=s;function s(o){return n(o[0])*n(o[1])}},4354:function(v,m,a){var n=a(8524);v.exports=s;function s(o,h){return n(o[0].mul(h[1]).sub(o[1].mul(h[0])),o[1].mul(h[1]))}},7999:function(v,m,a){var n=a(9958),s=a(1112);v.exports=o;function o(h){var f=h[0],u=h[1];if(f.cmpn(0)===0)return 0;var b=f.abs().divmod(u.abs()),p=b.div,E=n(p),g=b.mod,c=f.negative!==u.negative?-1:1;if(g.cmpn(0)===0)return c*E;if(E){var x=s(E)+4,A=n(g.ushln(x).divRound(u));return c*(E+A*Math.pow(2,-x))}else{var M=u.bitLength()-g.bitLength()+53,A=n(g.ushln(M).divRound(u));return M<1023?c*A*Math.pow(2,-M):(A*=Math.pow(2,-1023),c*A*Math.pow(2,1023-M))}}},5070:function(v){function m(f,u,b,p,E){for(var g=E+1;p<=E;){var c=p+E>>>1,x=f[c],A=b!==void 0?b(x,u):x-u;A>=0?(g=c,E=c-1):p=c+1}return g}function a(f,u,b,p,E){for(var g=E+1;p<=E;){var c=p+E>>>1,x=f[c],A=b!==void 0?b(x,u):x-u;A>0?(g=c,E=c-1):p=c+1}return g}function n(f,u,b,p,E){for(var g=p-1;p<=E;){var c=p+E>>>1,x=f[c],A=b!==void 0?b(x,u):x-u;A<0?(g=c,p=c+1):E=c-1}return g}function s(f,u,b,p,E){for(var g=p-1;p<=E;){var c=p+E>>>1,x=f[c],A=b!==void 0?b(x,u):x-u;A<=0?(g=c,p=c+1):E=c-1}return g}function o(f,u,b,p,E){for(;p<=E;){var g=p+E>>>1,c=f[g],x=b!==void 0?b(c,u):c-u;if(x===0)return g;x<=0?p=g+1:E=g-1}return-1}function h(f,u,b,p,E,g){return typeof b=="function"?g(f,u,b,p===void 0?0:p|0,E===void 0?f.length-1:E|0):g(f,u,void 0,b===void 0?0:b|0,p===void 0?f.length-1:p|0)}v.exports={ge:function(f,u,b,p,E){return h(f,u,b,p,E,m)},gt:function(f,u,b,p,E){return h(f,u,b,p,E,a)},lt:function(f,u,b,p,E){return h(f,u,b,p,E,n)},le:function(f,u,b,p,E){return h(f,u,b,p,E,s)},eq:function(f,u,b,p,E){return h(f,u,b,p,E,o)}}},2288:function(v,m){"use restrict";var a=32;m.INT_BITS=a,m.INT_MAX=2147483647,m.INT_MIN=-1<0)-(o<0)},m.abs=function(o){var h=o>>a-1;return(o^h)-h},m.min=function(o,h){return h^(o^h)&-(o65535)<<4,o>>>=h,f=(o>255)<<3,o>>>=f,h|=f,f=(o>15)<<2,o>>>=f,h|=f,f=(o>3)<<1,o>>>=f,h|=f,h|o>>1},m.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},m.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function n(o){var h=32;return o&=-o,o&&h--,o&65535&&(h-=16),o&16711935&&(h-=8),o&252645135&&(h-=4),o&858993459&&(h-=2),o&1431655765&&(h-=1),h}m.countTrailingZeros=n,m.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},m.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},m.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var s=new Array(256);(function(o){for(var h=0;h<256;++h){var f=h,u=h,b=7;for(f>>>=1;f;f>>>=1)u<<=1,u|=f&1,--b;o[h]=u<>>8&255]<<16|s[o>>>16&255]<<8|s[o>>>24&255]},m.interleave2=function(o,h){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,h&=65535,h=(h|h<<8)&16711935,h=(h|h<<4)&252645135,h=(h|h<<2)&858993459,h=(h|h<<1)&1431655765,o|h<<1},m.deinterleave2=function(o,h){return o=o>>>h&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},m.interleave3=function(o,h,f){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,o|=h<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,o|f<<2},m.deinterleave3=function(o,h){return o=o>>>h&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},m.nextCombination=function(o){var h=o|o-1;return h+1|(~h&-~h)-1>>>n(o)+1}},1928:function(v,m,a){v=a.nmd(v),function(n,s){function o(W,V){if(!W)throw new Error(V||"Assertion failed")}function h(W,V){W.super_=V;var $=function(){};$.prototype=V.prototype,W.prototype=new $,W.prototype.constructor=W}function f(W,V,$){if(f.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&((V==="le"||V==="be")&&($=V,V=10),this._init(W||0,V||10,$||"be"))}typeof n=="object"?n.exports=f:s.BN=f,f.BN=f,f.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=a(6601).Buffer}catch{}f.isBN=function(V){return V instanceof f?!0:V!==null&&typeof V=="object"&&V.constructor.wordSize===f.wordSize&&Array.isArray(V.words)},f.max=function(V,$){return V.cmp($)>0?V:$},f.min=function(V,$){return V.cmp($)<0?V:$},f.prototype._init=function(V,$,Z){if(typeof V=="number")return this._initNumber(V,$,Z);if(typeof V=="object")return this._initArray(V,$,Z);$==="hex"&&($=16),o($===($|0)&&$>=2&&$<=36),V=V.toString().replace(/\s+/g,"");var q=0;V[0]==="-"&&(q++,this.negative=1),q=0;q-=3)ie=V[q]|V[q-1]<<8|V[q-2]<<16,this.words[ae]|=ie<>>26-fe&67108863,fe+=24,fe>=26&&(fe-=26,ae++);else if(Z==="le")for(q=0,ae=0;q>>26-fe&67108863,fe+=24,fe>=26&&(fe-=26,ae++);return this.strip()};function b(W,V){var $=W.charCodeAt(V);return $>=65&&$<=70?$-55:$>=97&&$<=102?$-87:$-48&15}function p(W,V,$){var Z=b(W,$);return $-1>=V&&(Z|=b(W,$-1)<<4),Z}f.prototype._parseHex=function(V,$,Z){this.length=Math.ceil((V.length-$)/6),this.words=new Array(this.length);for(var q=0;q=$;q-=2)fe=p(V,$,q)<=18?(ae-=18,ie+=1,this.words[ie]|=fe>>>26):ae+=8;else{var Q=V.length-$;for(q=Q%2===0?$+1:$;q=18?(ae-=18,ie+=1,this.words[ie]|=fe>>>26):ae+=8}this.strip()};function E(W,V,$,Z){for(var q=0,ae=Math.min(W.length,$),ie=V;ie=49?q+=fe-49+10:fe>=17?q+=fe-17+10:q+=fe}return q}f.prototype._parseBase=function(V,$,Z){this.words=[0],this.length=1;for(var q=0,ae=1;ae<=67108863;ae*=$)q++;q--,ae=ae/$|0;for(var ie=V.length-Z,fe=ie%q,Q=Math.min(ie,ie-fe)+Z,J=0,oe=Z;oe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(V,$){V=V||10,$=$|0||1;var Z;if(V===16||V==="hex"){Z="";for(var q=0,ae=0,ie=0;ie>>24-q&16777215,ae!==0||ie!==this.length-1?Z=g[6-Q.length]+Q+Z:Z=Q+Z,q+=2,q>=26&&(q-=26,ie--)}for(ae!==0&&(Z=ae.toString(16)+Z);Z.length%$!==0;)Z="0"+Z;return this.negative!==0&&(Z="-"+Z),Z}if(V===(V|0)&&V>=2&&V<=36){var J=c[V],oe=x[V];Z="";var K=this.clone();for(K.negative=0;!K.isZero();){var ne=K.modn(oe).toString(V);K=K.idivn(oe),K.isZero()?Z=ne+Z:Z=g[J-ne.length]+ne+Z}for(this.isZero()&&(Z="0"+Z);Z.length%$!==0;)Z="0"+Z;return this.negative!==0&&(Z="-"+Z),Z}o(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var V=this.words[0];return this.length===2?V+=this.words[1]*67108864:this.length===3&&this.words[2]===1?V+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-V:V},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(V,$){return o(typeof u<"u"),this.toArrayLike(u,V,$)},f.prototype.toArray=function(V,$){return this.toArrayLike(Array,V,$)},f.prototype.toArrayLike=function(V,$,Z){var q=this.byteLength(),ae=Z||Math.max(1,q);o(q<=ae,"byte array longer than desired length"),o(ae>0,"Requested array length <= 0"),this.strip();var ie=$==="le",fe=new V(ae),Q,J,oe=this.clone();if(ie){for(J=0;!oe.isZero();J++)Q=oe.andln(255),oe.iushrn(8),fe[J]=Q;for(;J=4096&&(Z+=13,$>>>=13),$>=64&&(Z+=7,$>>>=7),$>=8&&(Z+=4,$>>>=4),$>=2&&(Z+=2,$>>>=2),Z+$},f.prototype._zeroBits=function(V){if(V===0)return 26;var $=V,Z=0;return $&8191||(Z+=13,$>>>=13),$&127||(Z+=7,$>>>=7),$&15||(Z+=4,$>>>=4),$&3||(Z+=2,$>>>=2),$&1||Z++,Z},f.prototype.bitLength=function(){var V=this.words[this.length-1],$=this._countBits(V);return(this.length-1)*26+$};function A(W){for(var V=new Array(W.bitLength()),$=0;$>>q}return V}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var V=0,$=0;$V.length?this.clone().ior(V):V.clone().ior(this)},f.prototype.uor=function(V){return this.length>V.length?this.clone().iuor(V):V.clone().iuor(this)},f.prototype.iuand=function(V){var $;this.length>V.length?$=V:$=this;for(var Z=0;Z<$.length;Z++)this.words[Z]=this.words[Z]&V.words[Z];return this.length=$.length,this.strip()},f.prototype.iand=function(V){return o((this.negative|V.negative)===0),this.iuand(V)},f.prototype.and=function(V){return this.length>V.length?this.clone().iand(V):V.clone().iand(this)},f.prototype.uand=function(V){return this.length>V.length?this.clone().iuand(V):V.clone().iuand(this)},f.prototype.iuxor=function(V){var $,Z;this.length>V.length?($=this,Z=V):($=V,Z=this);for(var q=0;qV.length?this.clone().ixor(V):V.clone().ixor(this)},f.prototype.uxor=function(V){return this.length>V.length?this.clone().iuxor(V):V.clone().iuxor(this)},f.prototype.inotn=function(V){o(typeof V=="number"&&V>=0);var $=Math.ceil(V/26)|0,Z=V%26;this._expand($),Z>0&&$--;for(var q=0;q<$;q++)this.words[q]=~this.words[q]&67108863;return Z>0&&(this.words[q]=~this.words[q]&67108863>>26-Z),this.strip()},f.prototype.notn=function(V){return this.clone().inotn(V)},f.prototype.setn=function(V,$){o(typeof V=="number"&&V>=0);var Z=V/26|0,q=V%26;return this._expand(Z+1),$?this.words[Z]=this.words[Z]|1<V.length?(Z=this,q=V):(Z=V,q=this);for(var ae=0,ie=0;ie>>26;for(;ae!==0&&ie>>26;if(this.length=Z.length,ae!==0)this.words[this.length]=ae,this.length++;else if(Z!==this)for(;ieV.length?this.clone().iadd(V):V.clone().iadd(this)},f.prototype.isub=function(V){if(V.negative!==0){V.negative=0;var $=this.iadd(V);return V.negative=1,$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(V),this.negative=1,this._normSign();var Z=this.cmp(V);if(Z===0)return this.negative=0,this.length=1,this.words[0]=0,this;var q,ae;Z>0?(q=this,ae=V):(q=V,ae=this);for(var ie=0,fe=0;fe>26,this.words[fe]=$&67108863;for(;ie!==0&&fe>26,this.words[fe]=$&67108863;if(ie===0&&fe>>26,K=Q&67108863,ne=Math.min(J,V.length-1),ce=Math.max(0,J-W.length+1);ce<=ne;ce++){var re=J-ce|0;q=W.words[re]|0,ae=V.words[ce]|0,ie=q*ae+K,oe+=ie/67108864|0,K=ie&67108863}$.words[J]=K|0,Q=oe|0}return Q!==0?$.words[J]=Q|0:$.length--,$.strip()}var R=function(V,$,Z){var q=V.words,ae=$.words,ie=Z.words,fe=0,Q,J,oe,K=q[0]|0,ne=K&8191,ce=K>>>13,re=q[1]|0,ee=re&8191,de=re>>>13,le=q[2]|0,he=le&8191,xe=le>>>13,Ee=q[3]|0,Se=Ee&8191,ke=Ee>>>13,Te=q[4]|0,Ae=Te&8191,be=Te>>>13,Ie=q[5]|0,Ue=Ie&8191,Ne=Ie>>>13,ze=q[6]|0,$e=ze&8191,st=ze>>>13,vt=q[7]|0,at=vt&8191,nt=vt>>>13,mt=q[8]|0,rt=mt&8191,lt=mt>>>13,dt=q[9]|0,wt=dt&8191,et=dt>>>13,Be=ae[0]|0,Ye=Be&8191,Ke=Be>>>13,We=ae[1]|0,Fe=We&8191,Me=We>>>13,we=ae[2]|0,Re=we&8191,Pe=we>>>13,Ve=ae[3]|0,Je=Ve&8191,ot=Ve>>>13,yt=ae[4]|0,ut=yt&8191,It=yt>>>13,Vt=ae[5]|0,xt=Vt&8191,Lt=Vt>>>13,Xt=ae[6]|0,dr=Xt&8191,Tt=Xt>>>13,Kt=ae[7]|0,Qt=Kt&8191,xr=Kt>>>13,sr=ae[8]|0,Ct=sr&8191,ht=sr>>>13,At=ae[9]|0,Rt=At&8191,_t=At>>>13;Z.negative=V.negative^$.negative,Z.length=19,Q=Math.imul(ne,Ye),J=Math.imul(ne,Ke),J=J+Math.imul(ce,Ye)|0,oe=Math.imul(ce,Ke);var Ft=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,Q=Math.imul(ee,Ye),J=Math.imul(ee,Ke),J=J+Math.imul(de,Ye)|0,oe=Math.imul(de,Ke),Q=Q+Math.imul(ne,Fe)|0,J=J+Math.imul(ne,Me)|0,J=J+Math.imul(ce,Fe)|0,oe=oe+Math.imul(ce,Me)|0;var Wt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,Q=Math.imul(he,Ye),J=Math.imul(he,Ke),J=J+Math.imul(xe,Ye)|0,oe=Math.imul(xe,Ke),Q=Q+Math.imul(ee,Fe)|0,J=J+Math.imul(ee,Me)|0,J=J+Math.imul(de,Fe)|0,oe=oe+Math.imul(de,Me)|0,Q=Q+Math.imul(ne,Re)|0,J=J+Math.imul(ne,Pe)|0,J=J+Math.imul(ce,Re)|0,oe=oe+Math.imul(ce,Pe)|0;var jt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(jt>>>26)|0,jt&=67108863,Q=Math.imul(Se,Ye),J=Math.imul(Se,Ke),J=J+Math.imul(ke,Ye)|0,oe=Math.imul(ke,Ke),Q=Q+Math.imul(he,Fe)|0,J=J+Math.imul(he,Me)|0,J=J+Math.imul(xe,Fe)|0,oe=oe+Math.imul(xe,Me)|0,Q=Q+Math.imul(ee,Re)|0,J=J+Math.imul(ee,Pe)|0,J=J+Math.imul(de,Re)|0,oe=oe+Math.imul(de,Pe)|0,Q=Q+Math.imul(ne,Je)|0,J=J+Math.imul(ne,ot)|0,J=J+Math.imul(ce,Je)|0,oe=oe+Math.imul(ce,ot)|0;var er=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(er>>>26)|0,er&=67108863,Q=Math.imul(Ae,Ye),J=Math.imul(Ae,Ke),J=J+Math.imul(be,Ye)|0,oe=Math.imul(be,Ke),Q=Q+Math.imul(Se,Fe)|0,J=J+Math.imul(Se,Me)|0,J=J+Math.imul(ke,Fe)|0,oe=oe+Math.imul(ke,Me)|0,Q=Q+Math.imul(he,Re)|0,J=J+Math.imul(he,Pe)|0,J=J+Math.imul(xe,Re)|0,oe=oe+Math.imul(xe,Pe)|0,Q=Q+Math.imul(ee,Je)|0,J=J+Math.imul(ee,ot)|0,J=J+Math.imul(de,Je)|0,oe=oe+Math.imul(de,ot)|0,Q=Q+Math.imul(ne,ut)|0,J=J+Math.imul(ne,It)|0,J=J+Math.imul(ce,ut)|0,oe=oe+Math.imul(ce,It)|0;var hr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(hr>>>26)|0,hr&=67108863,Q=Math.imul(Ue,Ye),J=Math.imul(Ue,Ke),J=J+Math.imul(Ne,Ye)|0,oe=Math.imul(Ne,Ke),Q=Q+Math.imul(Ae,Fe)|0,J=J+Math.imul(Ae,Me)|0,J=J+Math.imul(be,Fe)|0,oe=oe+Math.imul(be,Me)|0,Q=Q+Math.imul(Se,Re)|0,J=J+Math.imul(Se,Pe)|0,J=J+Math.imul(ke,Re)|0,oe=oe+Math.imul(ke,Pe)|0,Q=Q+Math.imul(he,Je)|0,J=J+Math.imul(he,ot)|0,J=J+Math.imul(xe,Je)|0,oe=oe+Math.imul(xe,ot)|0,Q=Q+Math.imul(ee,ut)|0,J=J+Math.imul(ee,It)|0,J=J+Math.imul(de,ut)|0,oe=oe+Math.imul(de,It)|0,Q=Q+Math.imul(ne,xt)|0,J=J+Math.imul(ne,Lt)|0,J=J+Math.imul(ce,xt)|0,oe=oe+Math.imul(ce,Lt)|0;var vr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(vr>>>26)|0,vr&=67108863,Q=Math.imul($e,Ye),J=Math.imul($e,Ke),J=J+Math.imul(st,Ye)|0,oe=Math.imul(st,Ke),Q=Q+Math.imul(Ue,Fe)|0,J=J+Math.imul(Ue,Me)|0,J=J+Math.imul(Ne,Fe)|0,oe=oe+Math.imul(Ne,Me)|0,Q=Q+Math.imul(Ae,Re)|0,J=J+Math.imul(Ae,Pe)|0,J=J+Math.imul(be,Re)|0,oe=oe+Math.imul(be,Pe)|0,Q=Q+Math.imul(Se,Je)|0,J=J+Math.imul(Se,ot)|0,J=J+Math.imul(ke,Je)|0,oe=oe+Math.imul(ke,ot)|0,Q=Q+Math.imul(he,ut)|0,J=J+Math.imul(he,It)|0,J=J+Math.imul(xe,ut)|0,oe=oe+Math.imul(xe,It)|0,Q=Q+Math.imul(ee,xt)|0,J=J+Math.imul(ee,Lt)|0,J=J+Math.imul(de,xt)|0,oe=oe+Math.imul(de,Lt)|0,Q=Q+Math.imul(ne,dr)|0,J=J+Math.imul(ne,Tt)|0,J=J+Math.imul(ce,dr)|0,oe=oe+Math.imul(ce,Tt)|0;var mr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(mr>>>26)|0,mr&=67108863,Q=Math.imul(at,Ye),J=Math.imul(at,Ke),J=J+Math.imul(nt,Ye)|0,oe=Math.imul(nt,Ke),Q=Q+Math.imul($e,Fe)|0,J=J+Math.imul($e,Me)|0,J=J+Math.imul(st,Fe)|0,oe=oe+Math.imul(st,Me)|0,Q=Q+Math.imul(Ue,Re)|0,J=J+Math.imul(Ue,Pe)|0,J=J+Math.imul(Ne,Re)|0,oe=oe+Math.imul(Ne,Pe)|0,Q=Q+Math.imul(Ae,Je)|0,J=J+Math.imul(Ae,ot)|0,J=J+Math.imul(be,Je)|0,oe=oe+Math.imul(be,ot)|0,Q=Q+Math.imul(Se,ut)|0,J=J+Math.imul(Se,It)|0,J=J+Math.imul(ke,ut)|0,oe=oe+Math.imul(ke,It)|0,Q=Q+Math.imul(he,xt)|0,J=J+Math.imul(he,Lt)|0,J=J+Math.imul(xe,xt)|0,oe=oe+Math.imul(xe,Lt)|0,Q=Q+Math.imul(ee,dr)|0,J=J+Math.imul(ee,Tt)|0,J=J+Math.imul(de,dr)|0,oe=oe+Math.imul(de,Tt)|0,Q=Q+Math.imul(ne,Qt)|0,J=J+Math.imul(ne,xr)|0,J=J+Math.imul(ce,Qt)|0,oe=oe+Math.imul(ce,xr)|0;var Ze=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,Q=Math.imul(rt,Ye),J=Math.imul(rt,Ke),J=J+Math.imul(lt,Ye)|0,oe=Math.imul(lt,Ke),Q=Q+Math.imul(at,Fe)|0,J=J+Math.imul(at,Me)|0,J=J+Math.imul(nt,Fe)|0,oe=oe+Math.imul(nt,Me)|0,Q=Q+Math.imul($e,Re)|0,J=J+Math.imul($e,Pe)|0,J=J+Math.imul(st,Re)|0,oe=oe+Math.imul(st,Pe)|0,Q=Q+Math.imul(Ue,Je)|0,J=J+Math.imul(Ue,ot)|0,J=J+Math.imul(Ne,Je)|0,oe=oe+Math.imul(Ne,ot)|0,Q=Q+Math.imul(Ae,ut)|0,J=J+Math.imul(Ae,It)|0,J=J+Math.imul(be,ut)|0,oe=oe+Math.imul(be,It)|0,Q=Q+Math.imul(Se,xt)|0,J=J+Math.imul(Se,Lt)|0,J=J+Math.imul(ke,xt)|0,oe=oe+Math.imul(ke,Lt)|0,Q=Q+Math.imul(he,dr)|0,J=J+Math.imul(he,Tt)|0,J=J+Math.imul(xe,dr)|0,oe=oe+Math.imul(xe,Tt)|0,Q=Q+Math.imul(ee,Qt)|0,J=J+Math.imul(ee,xr)|0,J=J+Math.imul(de,Qt)|0,oe=oe+Math.imul(de,xr)|0,Q=Q+Math.imul(ne,Ct)|0,J=J+Math.imul(ne,ht)|0,J=J+Math.imul(ce,Ct)|0,oe=oe+Math.imul(ce,ht)|0;var Xe=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Q=Math.imul(wt,Ye),J=Math.imul(wt,Ke),J=J+Math.imul(et,Ye)|0,oe=Math.imul(et,Ke),Q=Q+Math.imul(rt,Fe)|0,J=J+Math.imul(rt,Me)|0,J=J+Math.imul(lt,Fe)|0,oe=oe+Math.imul(lt,Me)|0,Q=Q+Math.imul(at,Re)|0,J=J+Math.imul(at,Pe)|0,J=J+Math.imul(nt,Re)|0,oe=oe+Math.imul(nt,Pe)|0,Q=Q+Math.imul($e,Je)|0,J=J+Math.imul($e,ot)|0,J=J+Math.imul(st,Je)|0,oe=oe+Math.imul(st,ot)|0,Q=Q+Math.imul(Ue,ut)|0,J=J+Math.imul(Ue,It)|0,J=J+Math.imul(Ne,ut)|0,oe=oe+Math.imul(Ne,It)|0,Q=Q+Math.imul(Ae,xt)|0,J=J+Math.imul(Ae,Lt)|0,J=J+Math.imul(be,xt)|0,oe=oe+Math.imul(be,Lt)|0,Q=Q+Math.imul(Se,dr)|0,J=J+Math.imul(Se,Tt)|0,J=J+Math.imul(ke,dr)|0,oe=oe+Math.imul(ke,Tt)|0,Q=Q+Math.imul(he,Qt)|0,J=J+Math.imul(he,xr)|0,J=J+Math.imul(xe,Qt)|0,oe=oe+Math.imul(xe,xr)|0,Q=Q+Math.imul(ee,Ct)|0,J=J+Math.imul(ee,ht)|0,J=J+Math.imul(de,Ct)|0,oe=oe+Math.imul(de,ht)|0,Q=Q+Math.imul(ne,Rt)|0,J=J+Math.imul(ne,_t)|0,J=J+Math.imul(ce,Rt)|0,oe=oe+Math.imul(ce,_t)|0;var Ut=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,Q=Math.imul(wt,Fe),J=Math.imul(wt,Me),J=J+Math.imul(et,Fe)|0,oe=Math.imul(et,Me),Q=Q+Math.imul(rt,Re)|0,J=J+Math.imul(rt,Pe)|0,J=J+Math.imul(lt,Re)|0,oe=oe+Math.imul(lt,Pe)|0,Q=Q+Math.imul(at,Je)|0,J=J+Math.imul(at,ot)|0,J=J+Math.imul(nt,Je)|0,oe=oe+Math.imul(nt,ot)|0,Q=Q+Math.imul($e,ut)|0,J=J+Math.imul($e,It)|0,J=J+Math.imul(st,ut)|0,oe=oe+Math.imul(st,It)|0,Q=Q+Math.imul(Ue,xt)|0,J=J+Math.imul(Ue,Lt)|0,J=J+Math.imul(Ne,xt)|0,oe=oe+Math.imul(Ne,Lt)|0,Q=Q+Math.imul(Ae,dr)|0,J=J+Math.imul(Ae,Tt)|0,J=J+Math.imul(be,dr)|0,oe=oe+Math.imul(be,Tt)|0,Q=Q+Math.imul(Se,Qt)|0,J=J+Math.imul(Se,xr)|0,J=J+Math.imul(ke,Qt)|0,oe=oe+Math.imul(ke,xr)|0,Q=Q+Math.imul(he,Ct)|0,J=J+Math.imul(he,ht)|0,J=J+Math.imul(xe,Ct)|0,oe=oe+Math.imul(xe,ht)|0,Q=Q+Math.imul(ee,Rt)|0,J=J+Math.imul(ee,_t)|0,J=J+Math.imul(de,Rt)|0,oe=oe+Math.imul(de,_t)|0;var Bt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,Q=Math.imul(wt,Re),J=Math.imul(wt,Pe),J=J+Math.imul(et,Re)|0,oe=Math.imul(et,Pe),Q=Q+Math.imul(rt,Je)|0,J=J+Math.imul(rt,ot)|0,J=J+Math.imul(lt,Je)|0,oe=oe+Math.imul(lt,ot)|0,Q=Q+Math.imul(at,ut)|0,J=J+Math.imul(at,It)|0,J=J+Math.imul(nt,ut)|0,oe=oe+Math.imul(nt,It)|0,Q=Q+Math.imul($e,xt)|0,J=J+Math.imul($e,Lt)|0,J=J+Math.imul(st,xt)|0,oe=oe+Math.imul(st,Lt)|0,Q=Q+Math.imul(Ue,dr)|0,J=J+Math.imul(Ue,Tt)|0,J=J+Math.imul(Ne,dr)|0,oe=oe+Math.imul(Ne,Tt)|0,Q=Q+Math.imul(Ae,Qt)|0,J=J+Math.imul(Ae,xr)|0,J=J+Math.imul(be,Qt)|0,oe=oe+Math.imul(be,xr)|0,Q=Q+Math.imul(Se,Ct)|0,J=J+Math.imul(Se,ht)|0,J=J+Math.imul(ke,Ct)|0,oe=oe+Math.imul(ke,ht)|0,Q=Q+Math.imul(he,Rt)|0,J=J+Math.imul(he,_t)|0,J=J+Math.imul(xe,Rt)|0,oe=oe+Math.imul(xe,_t)|0;var qt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(qt>>>26)|0,qt&=67108863,Q=Math.imul(wt,Je),J=Math.imul(wt,ot),J=J+Math.imul(et,Je)|0,oe=Math.imul(et,ot),Q=Q+Math.imul(rt,ut)|0,J=J+Math.imul(rt,It)|0,J=J+Math.imul(lt,ut)|0,oe=oe+Math.imul(lt,It)|0,Q=Q+Math.imul(at,xt)|0,J=J+Math.imul(at,Lt)|0,J=J+Math.imul(nt,xt)|0,oe=oe+Math.imul(nt,Lt)|0,Q=Q+Math.imul($e,dr)|0,J=J+Math.imul($e,Tt)|0,J=J+Math.imul(st,dr)|0,oe=oe+Math.imul(st,Tt)|0,Q=Q+Math.imul(Ue,Qt)|0,J=J+Math.imul(Ue,xr)|0,J=J+Math.imul(Ne,Qt)|0,oe=oe+Math.imul(Ne,xr)|0,Q=Q+Math.imul(Ae,Ct)|0,J=J+Math.imul(Ae,ht)|0,J=J+Math.imul(be,Ct)|0,oe=oe+Math.imul(be,ht)|0,Q=Q+Math.imul(Se,Rt)|0,J=J+Math.imul(Se,_t)|0,J=J+Math.imul(ke,Rt)|0,oe=oe+Math.imul(ke,_t)|0;var nr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(nr>>>26)|0,nr&=67108863,Q=Math.imul(wt,ut),J=Math.imul(wt,It),J=J+Math.imul(et,ut)|0,oe=Math.imul(et,It),Q=Q+Math.imul(rt,xt)|0,J=J+Math.imul(rt,Lt)|0,J=J+Math.imul(lt,xt)|0,oe=oe+Math.imul(lt,Lt)|0,Q=Q+Math.imul(at,dr)|0,J=J+Math.imul(at,Tt)|0,J=J+Math.imul(nt,dr)|0,oe=oe+Math.imul(nt,Tt)|0,Q=Q+Math.imul($e,Qt)|0,J=J+Math.imul($e,xr)|0,J=J+Math.imul(st,Qt)|0,oe=oe+Math.imul(st,xr)|0,Q=Q+Math.imul(Ue,Ct)|0,J=J+Math.imul(Ue,ht)|0,J=J+Math.imul(Ne,Ct)|0,oe=oe+Math.imul(Ne,ht)|0,Q=Q+Math.imul(Ae,Rt)|0,J=J+Math.imul(Ae,_t)|0,J=J+Math.imul(be,Rt)|0,oe=oe+Math.imul(be,_t)|0;var fr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(fr>>>26)|0,fr&=67108863,Q=Math.imul(wt,xt),J=Math.imul(wt,Lt),J=J+Math.imul(et,xt)|0,oe=Math.imul(et,Lt),Q=Q+Math.imul(rt,dr)|0,J=J+Math.imul(rt,Tt)|0,J=J+Math.imul(lt,dr)|0,oe=oe+Math.imul(lt,Tt)|0,Q=Q+Math.imul(at,Qt)|0,J=J+Math.imul(at,xr)|0,J=J+Math.imul(nt,Qt)|0,oe=oe+Math.imul(nt,xr)|0,Q=Q+Math.imul($e,Ct)|0,J=J+Math.imul($e,ht)|0,J=J+Math.imul(st,Ct)|0,oe=oe+Math.imul(st,ht)|0,Q=Q+Math.imul(Ue,Rt)|0,J=J+Math.imul(Ue,_t)|0,J=J+Math.imul(Ne,Rt)|0,oe=oe+Math.imul(Ne,_t)|0;var ir=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(ir>>>26)|0,ir&=67108863,Q=Math.imul(wt,dr),J=Math.imul(wt,Tt),J=J+Math.imul(et,dr)|0,oe=Math.imul(et,Tt),Q=Q+Math.imul(rt,Qt)|0,J=J+Math.imul(rt,xr)|0,J=J+Math.imul(lt,Qt)|0,oe=oe+Math.imul(lt,xr)|0,Q=Q+Math.imul(at,Ct)|0,J=J+Math.imul(at,ht)|0,J=J+Math.imul(nt,Ct)|0,oe=oe+Math.imul(nt,ht)|0,Q=Q+Math.imul($e,Rt)|0,J=J+Math.imul($e,_t)|0,J=J+Math.imul(st,Rt)|0,oe=oe+Math.imul(st,_t)|0;var Ht=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,Q=Math.imul(wt,Qt),J=Math.imul(wt,xr),J=J+Math.imul(et,Qt)|0,oe=Math.imul(et,xr),Q=Q+Math.imul(rt,Ct)|0,J=J+Math.imul(rt,ht)|0,J=J+Math.imul(lt,Ct)|0,oe=oe+Math.imul(lt,ht)|0,Q=Q+Math.imul(at,Rt)|0,J=J+Math.imul(at,_t)|0,J=J+Math.imul(nt,Rt)|0,oe=oe+Math.imul(nt,_t)|0;var pr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(pr>>>26)|0,pr&=67108863,Q=Math.imul(wt,Ct),J=Math.imul(wt,ht),J=J+Math.imul(et,Ct)|0,oe=Math.imul(et,ht),Q=Q+Math.imul(rt,Rt)|0,J=J+Math.imul(rt,_t)|0,J=J+Math.imul(lt,Rt)|0,oe=oe+Math.imul(lt,_t)|0;var br=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(br>>>26)|0,br&=67108863,Q=Math.imul(wt,Rt),J=Math.imul(wt,_t),J=J+Math.imul(et,Rt)|0,oe=Math.imul(et,_t);var Tr=(fe+Q|0)+((J&8191)<<13)|0;return fe=(oe+(J>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,ie[0]=Ft,ie[1]=Wt,ie[2]=jt,ie[3]=er,ie[4]=hr,ie[5]=vr,ie[6]=mr,ie[7]=Ze,ie[8]=Xe,ie[9]=Ut,ie[10]=Bt,ie[11]=qt,ie[12]=nr,ie[13]=fr,ie[14]=ir,ie[15]=Ht,ie[16]=pr,ie[17]=br,ie[18]=Tr,fe!==0&&(ie[19]=fe,Z.length++),Z};Math.imul||(R=M);function T(W,V,$){$.negative=V.negative^W.negative,$.length=W.length+V.length;for(var Z=0,q=0,ae=0;ae<$.length-1;ae++){var ie=q;q=0;for(var fe=Z&67108863,Q=Math.min(ae,V.length-1),J=Math.max(0,ae-W.length+1);J<=Q;J++){var oe=ae-J,K=W.words[oe]|0,ne=V.words[J]|0,ce=K*ne,re=ce&67108863;ie=ie+(ce/67108864|0)|0,re=re+fe|0,fe=re&67108863,ie=ie+(re>>>26)|0,q+=ie>>>26,ie&=67108863}$.words[ae]=fe,Z=ie,ie=q}return Z!==0?$.words[ae]=Z:$.length--,$.strip()}function L(W,V,$){var Z=new P;return Z.mulp(W,V,$)}f.prototype.mulTo=function(V,$){var Z,q=this.length+V.length;return this.length===10&&V.length===10?Z=R(this,V,$):q<63?Z=M(this,V,$):q<1024?Z=T(this,V,$):Z=L(this,V,$),Z};function P(W,V){this.x=W,this.y=V}P.prototype.makeRBT=function(V){for(var $=new Array(V),Z=f.prototype._countBits(V)-1,q=0;q>=1;return q},P.prototype.permute=function(V,$,Z,q,ae,ie){for(var fe=0;fe>>1)ae++;return 1<>>13,Z[2*ie+1]=ae&8191,ae=ae>>>13;for(ie=2*$;ie>=26,$+=q/67108864|0,$+=ae>>>26,this.words[Z]=ae&67108863}return $!==0&&(this.words[Z]=$,this.length++),this},f.prototype.muln=function(V){return this.clone().imuln(V)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(V){var $=A(V);if($.length===0)return new f(1);for(var Z=this,q=0;q<$.length&&$[q]===0;q++,Z=Z.sqr());if(++q<$.length)for(var ae=Z.sqr();q<$.length;q++,ae=ae.sqr())$[q]!==0&&(Z=Z.mul(ae));return Z},f.prototype.iushln=function(V){o(typeof V=="number"&&V>=0);var $=V%26,Z=(V-$)/26,q=67108863>>>26-$<<26-$,ae;if($!==0){var ie=0;for(ae=0;ae>>26-$}ie&&(this.words[ae]=ie,this.length++)}if(Z!==0){for(ae=this.length-1;ae>=0;ae--)this.words[ae+Z]=this.words[ae];for(ae=0;ae=0);var q;$?q=($-$%26)/26:q=0;var ae=V%26,ie=Math.min((V-ae)/26,this.length),fe=67108863^67108863>>>ae<ie)for(this.length-=ie,J=0;J=0&&(oe!==0||J>=q);J--){var K=this.words[J]|0;this.words[J]=oe<<26-ae|K>>>ae,oe=K&fe}return Q&&oe!==0&&(Q.words[Q.length++]=oe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(V,$,Z){return o(this.negative===0),this.iushrn(V,$,Z)},f.prototype.shln=function(V){return this.clone().ishln(V)},f.prototype.ushln=function(V){return this.clone().iushln(V)},f.prototype.shrn=function(V){return this.clone().ishrn(V)},f.prototype.ushrn=function(V){return this.clone().iushrn(V)},f.prototype.testn=function(V){o(typeof V=="number"&&V>=0);var $=V%26,Z=(V-$)/26,q=1<<$;if(this.length<=Z)return!1;var ae=this.words[Z];return!!(ae&q)},f.prototype.imaskn=function(V){o(typeof V=="number"&&V>=0);var $=V%26,Z=(V-$)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=Z)return this;if($!==0&&Z++,this.length=Math.min(Z,this.length),$!==0){var q=67108863^67108863>>>$<<$;this.words[this.length-1]&=q}return this.strip()},f.prototype.maskn=function(V){return this.clone().imaskn(V)},f.prototype.iaddn=function(V){return o(typeof V=="number"),o(V<67108864),V<0?this.isubn(-V):this.negative!==0?this.length===1&&(this.words[0]|0)=67108864;$++)this.words[$]-=67108864,$===this.length-1?this.words[$+1]=1:this.words[$+1]++;return this.length=Math.max(this.length,$+1),this},f.prototype.isubn=function(V){if(o(typeof V=="number"),o(V<67108864),V<0)return this.iaddn(-V);if(this.negative!==0)return this.negative=0,this.iaddn(V),this.negative=1,this;if(this.words[0]-=V,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var $=0;$>26)-(Q/67108864|0),this.words[ae+Z]=ie&67108863}for(;ae>26,this.words[ae+Z]=ie&67108863;if(fe===0)return this.strip();for(o(fe===-1),fe=0,ae=0;ae>26,this.words[ae]=ie&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(V,$){var Z=this.length-V.length,q=this.clone(),ae=V,ie=ae.words[ae.length-1]|0,fe=this._countBits(ie);Z=26-fe,Z!==0&&(ae=ae.ushln(Z),q.iushln(Z),ie=ae.words[ae.length-1]|0);var Q=q.length-ae.length,J;if($!=="mod"){J=new f(null),J.length=Q+1,J.words=new Array(J.length);for(var oe=0;oe=0;ne--){var ce=(q.words[ae.length+ne]|0)*67108864+(q.words[ae.length+ne-1]|0);for(ce=Math.min(ce/ie|0,67108863),q._ishlnsubmul(ae,ce,ne);q.negative!==0;)ce--,q.negative=0,q._ishlnsubmul(ae,1,ne),q.isZero()||(q.negative^=1);J&&(J.words[ne]=ce)}return J&&J.strip(),q.strip(),$!=="div"&&Z!==0&&q.iushrn(Z),{div:J||null,mod:q}},f.prototype.divmod=function(V,$,Z){if(o(!V.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var q,ae,ie;return this.negative!==0&&V.negative===0?(ie=this.neg().divmod(V,$),$!=="mod"&&(q=ie.div.neg()),$!=="div"&&(ae=ie.mod.neg(),Z&&ae.negative!==0&&ae.iadd(V)),{div:q,mod:ae}):this.negative===0&&V.negative!==0?(ie=this.divmod(V.neg(),$),$!=="mod"&&(q=ie.div.neg()),{div:q,mod:ie.mod}):this.negative&V.negative?(ie=this.neg().divmod(V.neg(),$),$!=="div"&&(ae=ie.mod.neg(),Z&&ae.negative!==0&&ae.isub(V)),{div:ie.div,mod:ae}):V.length>this.length||this.cmp(V)<0?{div:new f(0),mod:this}:V.length===1?$==="div"?{div:this.divn(V.words[0]),mod:null}:$==="mod"?{div:null,mod:new f(this.modn(V.words[0]))}:{div:this.divn(V.words[0]),mod:new f(this.modn(V.words[0]))}:this._wordDiv(V,$)},f.prototype.div=function(V){return this.divmod(V,"div",!1).div},f.prototype.mod=function(V){return this.divmod(V,"mod",!1).mod},f.prototype.umod=function(V){return this.divmod(V,"mod",!0).mod},f.prototype.divRound=function(V){var $=this.divmod(V);if($.mod.isZero())return $.div;var Z=$.div.negative!==0?$.mod.isub(V):$.mod,q=V.ushrn(1),ae=V.andln(1),ie=Z.cmp(q);return ie<0||ae===1&&ie===0?$.div:$.div.negative!==0?$.div.isubn(1):$.div.iaddn(1)},f.prototype.modn=function(V){o(V<=67108863);for(var $=(1<<26)%V,Z=0,q=this.length-1;q>=0;q--)Z=($*Z+(this.words[q]|0))%V;return Z},f.prototype.idivn=function(V){o(V<=67108863);for(var $=0,Z=this.length-1;Z>=0;Z--){var q=(this.words[Z]|0)+$*67108864;this.words[Z]=q/V|0,$=q%V}return this.strip()},f.prototype.divn=function(V){return this.clone().idivn(V)},f.prototype.egcd=function(V){o(V.negative===0),o(!V.isZero());var $=this,Z=V.clone();$.negative!==0?$=$.umod(V):$=$.clone();for(var q=new f(1),ae=new f(0),ie=new f(0),fe=new f(1),Q=0;$.isEven()&&Z.isEven();)$.iushrn(1),Z.iushrn(1),++Q;for(var J=Z.clone(),oe=$.clone();!$.isZero();){for(var K=0,ne=1;!($.words[0]&ne)&&K<26;++K,ne<<=1);if(K>0)for($.iushrn(K);K-- >0;)(q.isOdd()||ae.isOdd())&&(q.iadd(J),ae.isub(oe)),q.iushrn(1),ae.iushrn(1);for(var ce=0,re=1;!(Z.words[0]&re)&&ce<26;++ce,re<<=1);if(ce>0)for(Z.iushrn(ce);ce-- >0;)(ie.isOdd()||fe.isOdd())&&(ie.iadd(J),fe.isub(oe)),ie.iushrn(1),fe.iushrn(1);$.cmp(Z)>=0?($.isub(Z),q.isub(ie),ae.isub(fe)):(Z.isub($),ie.isub(q),fe.isub(ae))}return{a:ie,b:fe,gcd:Z.iushln(Q)}},f.prototype._invmp=function(V){o(V.negative===0),o(!V.isZero());var $=this,Z=V.clone();$.negative!==0?$=$.umod(V):$=$.clone();for(var q=new f(1),ae=new f(0),ie=Z.clone();$.cmpn(1)>0&&Z.cmpn(1)>0;){for(var fe=0,Q=1;!($.words[0]&Q)&&fe<26;++fe,Q<<=1);if(fe>0)for($.iushrn(fe);fe-- >0;)q.isOdd()&&q.iadd(ie),q.iushrn(1);for(var J=0,oe=1;!(Z.words[0]&oe)&&J<26;++J,oe<<=1);if(J>0)for(Z.iushrn(J);J-- >0;)ae.isOdd()&&ae.iadd(ie),ae.iushrn(1);$.cmp(Z)>=0?($.isub(Z),q.isub(ae)):(Z.isub($),ae.isub(q))}var K;return $.cmpn(1)===0?K=q:K=ae,K.cmpn(0)<0&&K.iadd(V),K},f.prototype.gcd=function(V){if(this.isZero())return V.abs();if(V.isZero())return this.abs();var $=this.clone(),Z=V.clone();$.negative=0,Z.negative=0;for(var q=0;$.isEven()&&Z.isEven();q++)$.iushrn(1),Z.iushrn(1);do{for(;$.isEven();)$.iushrn(1);for(;Z.isEven();)Z.iushrn(1);var ae=$.cmp(Z);if(ae<0){var ie=$;$=Z,Z=ie}else if(ae===0||Z.cmpn(1)===0)break;$.isub(Z)}while(!0);return Z.iushln(q)},f.prototype.invm=function(V){return this.egcd(V).a.umod(V)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(V){return this.words[0]&V},f.prototype.bincn=function(V){o(typeof V=="number");var $=V%26,Z=(V-$)/26,q=1<<$;if(this.length<=Z)return this._expand(Z+1),this.words[Z]|=q,this;for(var ae=q,ie=Z;ae!==0&&ie>>26,fe&=67108863,this.words[ie]=fe}return ae!==0&&(this.words[ie]=ae,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(V){var $=V<0;if(this.negative!==0&&!$)return-1;if(this.negative===0&&$)return 1;this.strip();var Z;if(this.length>1)Z=1;else{$&&(V=-V),o(V<=67108863,"Number is too big");var q=this.words[0]|0;Z=q===V?0:qV.length)return 1;if(this.length=0;Z--){var q=this.words[Z]|0,ae=V.words[Z]|0;if(q!==ae){qae&&($=1);break}}return $},f.prototype.gtn=function(V){return this.cmpn(V)===1},f.prototype.gt=function(V){return this.cmp(V)===1},f.prototype.gten=function(V){return this.cmpn(V)>=0},f.prototype.gte=function(V){return this.cmp(V)>=0},f.prototype.ltn=function(V){return this.cmpn(V)===-1},f.prototype.lt=function(V){return this.cmp(V)===-1},f.prototype.lten=function(V){return this.cmpn(V)<=0},f.prototype.lte=function(V){return this.cmp(V)<=0},f.prototype.eqn=function(V){return this.cmpn(V)===0},f.prototype.eq=function(V){return this.cmp(V)===0},f.red=function(V){return new U(V)},f.prototype.toRed=function(V){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),V.convertTo(this)._forceRed(V)},f.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(V){return this.red=V,this},f.prototype.forceRed=function(V){return o(!this.red,"Already a number in reduction context"),this._forceRed(V)},f.prototype.redAdd=function(V){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,V)},f.prototype.redIAdd=function(V){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,V)},f.prototype.redSub=function(V){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,V)},f.prototype.redISub=function(V){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,V)},f.prototype.redShl=function(V){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,V)},f.prototype.redMul=function(V){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,V),this.red.mul(this,V)},f.prototype.redIMul=function(V){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,V),this.red.imul(this,V)},f.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(V){return o(this.red&&!V.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,V)};var d={k256:null,p224:null,p192:null,p25519:null};function k(W,V){this.name=W,this.p=new f(V,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var V=new f(null);return V.words=new Array(Math.ceil(this.n/13)),V},k.prototype.ireduce=function(V){var $=V,Z;do this.split($,this.tmp),$=this.imulK($),$=$.iadd(this.tmp),Z=$.bitLength();while(Z>this.n);var q=Z0?$.isub(this.p):$.strip!==void 0?$.strip():$._strip(),$},k.prototype.split=function(V,$){V.iushrn(this.n,0,$)},k.prototype.imulK=function(V){return V.imul(this.k)};function I(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}h(I,k),I.prototype.split=function(V,$){for(var Z=4194303,q=Math.min(V.length,9),ae=0;ae>>22,ie=fe}ie>>>=22,V.words[ae-10]=ie,ie===0&&V.length>10?V.length-=10:V.length-=9},I.prototype.imulK=function(V){V.words[V.length]=0,V.words[V.length+1]=0,V.length+=2;for(var $=0,Z=0;Z>>=26,V.words[Z]=ae,$=q}return $!==0&&(V.words[V.length++]=$),V},f._prime=function(V){if(d[V])return d[V];var $;if(V==="k256")$=new I;else if(V==="p224")$=new N;else if(V==="p192")$=new B;else if(V==="p25519")$=new G;else throw new Error("Unknown prime "+V);return d[V]=$,$};function U(W){if(typeof W=="string"){var V=f._prime(W);this.m=V.p,this.prime=V}else o(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}U.prototype._verify1=function(V){o(V.negative===0,"red works only with positives"),o(V.red,"red works only with red numbers")},U.prototype._verify2=function(V,$){o((V.negative|$.negative)===0,"red works only with positives"),o(V.red&&V.red===$.red,"red works only with red numbers")},U.prototype.imod=function(V){return this.prime?this.prime.ireduce(V)._forceRed(this):V.umod(this.m)._forceRed(this)},U.prototype.neg=function(V){return V.isZero()?V.clone():this.m.sub(V)._forceRed(this)},U.prototype.add=function(V,$){this._verify2(V,$);var Z=V.add($);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z._forceRed(this)},U.prototype.iadd=function(V,$){this._verify2(V,$);var Z=V.iadd($);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z},U.prototype.sub=function(V,$){this._verify2(V,$);var Z=V.sub($);return Z.cmpn(0)<0&&Z.iadd(this.m),Z._forceRed(this)},U.prototype.isub=function(V,$){this._verify2(V,$);var Z=V.isub($);return Z.cmpn(0)<0&&Z.iadd(this.m),Z},U.prototype.shl=function(V,$){return this._verify1(V),this.imod(V.ushln($))},U.prototype.imul=function(V,$){return this._verify2(V,$),this.imod(V.imul($))},U.prototype.mul=function(V,$){return this._verify2(V,$),this.imod(V.mul($))},U.prototype.isqr=function(V){return this.imul(V,V.clone())},U.prototype.sqr=function(V){return this.mul(V,V)},U.prototype.sqrt=function(V){if(V.isZero())return V.clone();var $=this.m.andln(3);if(o($%2===1),$===3){var Z=this.m.add(new f(1)).iushrn(2);return this.pow(V,Z)}for(var q=this.m.subn(1),ae=0;!q.isZero()&&q.andln(1)===0;)ae++,q.iushrn(1);o(!q.isZero());var ie=new f(1).toRed(this),fe=ie.redNeg(),Q=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new f(2*J*J).toRed(this);this.pow(J,Q).cmp(fe)!==0;)J.redIAdd(fe);for(var oe=this.pow(J,q),K=this.pow(V,q.addn(1).iushrn(1)),ne=this.pow(V,q),ce=ae;ne.cmp(ie)!==0;){for(var re=ne,ee=0;re.cmp(ie)!==0;ee++)re=re.redSqr();o(ee=0;ae--){for(var oe=$.words[ae],K=J-1;K>=0;K--){var ne=oe>>K&1;if(ie!==q[0]&&(ie=this.sqr(ie)),ne===0&&fe===0){Q=0;continue}fe<<=1,fe|=ne,Q++,!(Q!==Z&&(ae!==0||K!==0))&&(ie=this.mul(ie,q[fe]),Q=0,fe=0)}J=26}return ie},U.prototype.convertTo=function(V){var $=V.umod(this.m);return $===V?$.clone():$},U.prototype.convertFrom=function(V){var $=V.clone();return $.red=null,$},f.mont=function(V){return new H(V)};function H(W){U.call(this,W),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}h(H,U),H.prototype.convertTo=function(V){return this.imod(V.ushln(this.shift))},H.prototype.convertFrom=function(V){var $=this.imod(V.mul(this.rinv));return $.red=null,$},H.prototype.imul=function(V,$){if(V.isZero()||$.isZero())return V.words[0]=0,V.length=1,V;var Z=V.imul($),q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ae=Z.isub(q).iushrn(this.shift),ie=ae;return ae.cmp(this.m)>=0?ie=ae.isub(this.m):ae.cmpn(0)<0&&(ie=ae.iadd(this.m)),ie._forceRed(this)},H.prototype.mul=function(V,$){if(V.isZero()||$.isZero())return new f(0)._forceRed(this);var Z=V.mul($),q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ae=Z.isub(q).iushrn(this.shift),ie=ae;return ae.cmp(this.m)>=0?ie=ae.isub(this.m):ae.cmpn(0)<0&&(ie=ae.iadd(this.m)),ie._forceRed(this)},H.prototype.invm=function(V){var $=this.imod(V._invmp(this.m).mul(this.r2));return $._forceRed(this)}}(v,this)},2692:function(v){v.exports=m;function m(a){var n,s,o,h=a.length,f=0;for(n=0;n>>1;if(!(P<=0)){var d,k=n.mallocDouble(2*P*T),I=n.mallocInt32(T);if(T=f(x,P,k,I),T>0){if(P===1&&R)s.init(T),d=s.sweepComplete(P,M,0,T,k,I,0,T,k,I);else{var N=n.mallocDouble(2*P*L),B=n.mallocInt32(L);L=f(A,P,N,B),L>0&&(s.init(T+L),P===1?d=s.sweepBipartite(P,M,0,T,k,I,0,L,N,B):d=o(P,M,R,T,k,I,L,N,B),n.free(N),n.free(B))}n.free(k),n.free(I)}return d}}}var b;function p(x,A){b.push([x,A])}function E(x){return b=[],u(x,x,p,!0),b}function g(x,A){return b=[],u(x,A,p,!1),b}function c(x,A,M){switch(arguments.length){case 1:return E(x);case 2:return typeof A=="function"?u(x,x,A,!0):g(x,A);case 3:return u(x,A,M,!1);default:throw new Error("box-intersect: Invalid arguments")}}},7333:function(v,m){function a(){function o(u,b,p,E,g,c,x,A,M,R,T){for(var L=2*u,P=E,d=L*E;PM-A?o(u,b,p,E,g,c,x,A,M,R,T):h(u,b,p,E,g,c,x,A,M,R,T)}return f}function n(){function o(p,E,g,c,x,A,M,R,T,L,P){for(var d=2*p,k=c,I=d*c;kL-T?c?o(p,E,g,x,A,M,R,T,L,P,d):h(p,E,g,x,A,M,R,T,L,P,d):c?f(p,E,g,x,A,M,R,T,L,P,d):u(p,E,g,x,A,M,R,T,L,P,d)}return b}function s(o){return o?a():n()}m.partial=s(!1),m.full=s(!0)},2337:function(v,m,a){v.exports=W;var n=a(5306),s=a(2288),o=a(7333),h=o.partial,f=o.full,u=a(1390),b=a(2464),p=a(122),E=128,g=1<<22,c=1<<22,x=p("!(lo>=p0)&&!(p1>=hi)"),A=p("lo===p0"),M=p("lo0;){oe-=1;var ce=oe*P,re=I[ce],ee=I[ce+1],de=I[ce+2],le=I[ce+3],he=I[ce+4],xe=I[ce+5],Ee=oe*d,Se=N[Ee],ke=N[Ee+1],Te=xe&1,Ae=!!(xe&16),be=ae,Ie=ie,Ue=Q,Ne=J;if(Te&&(be=Q,Ie=J,Ue=ae,Ne=ie),!(xe&2&&(de=M(V,re,ee,de,be,Ie,ke),ee>=de))&&!(xe&4&&(ee=R(V,re,ee,de,be,Ie,Se),ee>=de))){var ze=de-ee,$e=he-le;if(Ae){if(V*ze*(ze+$e)p&&g[L+b]>R;--T,L-=x){for(var P=L,d=L+x,k=0;k>>1,R=2*u,T=M,L=g[R*M+b];x=N?(T=I,L=N):k>=G?(T=d,L=k):(T=B,L=G):N>=G?(T=I,L=N):G>=k?(T=d,L=k):(T=B,L=G);for(var W=R*(A-1),V=R*T,U=0;U=p0)&&!(p1>=hi)":b};function a(p){return m[p]}function n(p,E,g,c,x,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=x[T+d];if(N===M)if(P===I)P+=1,L+=R;else{for(var B=0;R>B;++B){var G=x[T+B];x[T+B]=x[L],x[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function s(p,E,g,c,x,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=x[T+d];if(NB;++B){var G=x[T+B];x[T+B]=x[L],x[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function o(p,E,g,c,x,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=x[T+k];if(N<=M)if(P===I)P+=1,L+=R;else{for(var B=0;R>B;++B){var G=x[T+B];x[T+B]=x[L],x[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function h(p,E,g,c,x,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=x[T+k];if(N<=M)if(P===I)P+=1,L+=R;else{for(var B=0;R>B;++B){var G=x[T+B];x[T+B]=x[L],x[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function f(p,E,g,c,x,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=x[T+d],B=x[T+k];if(N<=M&&M<=B)if(P===I)P+=1,L+=R;else{for(var G=0;R>G;++G){var U=x[T+G];x[T+G]=x[L],x[L++]=U}var H=A[I];A[I]=A[P],A[P++]=H}}return P}function u(p,E,g,c,x,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=x[T+d],B=x[T+k];if(NG;++G){var U=x[T+G];x[T+G]=x[L],x[L++]=U}var H=A[I];A[I]=A[P],A[P++]=H}}return P}function b(p,E,g,c,x,A,M,R){for(var T=2*p,L=T*g,P=L,d=g,k=E,I=p+E,N=g;c>N;++N,L+=T){var B=x[L+k],G=x[L+I];if(!(B>=M)&&!(R>=G))if(d===N)d+=1,P+=T;else{for(var U=0;T>U;++U){var H=x[L+U];x[L+U]=x[P],x[P++]=H}var W=A[N];A[N]=A[d],A[d++]=W}}return d}},309:function(v){v.exports=a;var m=32;function a(E,g){g<=4*m?n(0,g-1,E):p(0,g-1,E)}function n(E,g,c){for(var x=2*(E+1),A=E+1;A<=g;++A){for(var M=c[x++],R=c[x++],T=A,L=x-2;T-- >E;){var P=c[L-2],d=c[L-1];if(Pc[g+1]:!0}function b(E,g,c,x){E*=2;var A=x[E];return A>1,T=R-x,L=R+x,P=A,d=T,k=R,I=L,N=M,B=E+1,G=g-1,U=0;u(P,d,c)&&(U=P,P=d,d=U),u(I,N,c)&&(U=I,I=N,N=U),u(P,k,c)&&(U=P,P=k,k=U),u(d,k,c)&&(U=d,d=k,k=U),u(P,I,c)&&(U=P,P=I,I=U),u(k,I,c)&&(U=k,k=I,I=U),u(d,N,c)&&(U=d,d=N,N=U),u(d,k,c)&&(U=d,d=k,k=U),u(I,N,c)&&(U=I,I=N,N=U);for(var H=c[2*d],W=c[2*d+1],V=c[2*I],$=c[2*I+1],Z=2*P,q=2*k,ae=2*N,ie=2*A,fe=2*R,Q=2*M,J=0;J<2;++J){var oe=c[Z+J],K=c[q+J],ne=c[ae+J];c[ie+J]=oe,c[fe+J]=K,c[Q+J]=ne}o(T,E,c),o(L,g,c);for(var ce=B;ce<=G;++ce)if(b(ce,H,W,c))ce!==B&&s(ce,B,c),++B;else if(!b(ce,V,$,c))for(;;)if(b(G,V,$,c)){b(G,H,W,c)?(h(ce,B,G,c),++B,--G):(s(ce,G,c),--G);break}else{if(--G>>1;o(x,K);for(var ne=0,ce=0,fe=0;fe=h)re=re-h|0,M(p,E,ce--,re);else if(re>=0)M(u,b,ne--,re);else if(re<=-h){re=-re-h|0;for(var ee=0;ee>>1;o(x,K);for(var ne=0,ce=0,re=0,fe=0;fe>1===x[2*fe+3]>>1&&(de=2,fe+=1),ee<0){for(var le=-(ee>>1)-1,he=0;he>1)-1;de===0?M(u,b,ne--,le):de===1?M(p,E,ce--,le):de===2&&M(g,c,re--,le)}}}function P(k,I,N,B,G,U,H,W,V,$,Z,q){var ae=0,ie=2*k,fe=I,Q=I+k,J=1,oe=1;B?oe=h:J=h;for(var K=G;K>>1;o(x,ee);for(var de=0,K=0;K=h?(he=!B,ne-=h):(he=!!B,ne-=1),he)R(u,b,de++,ne);else{var xe=q[ne],Ee=ie*ne,Se=Z[Ee+I+1],ke=Z[Ee+I+1+k];e:for(var Te=0;Te>>1;o(x,ne);for(var ce=0,Q=0;Q=h)u[ce++]=J-h;else{J-=1;var ee=Z[J],de=ae*J,le=$[de+I+1],he=$[de+I+1+k];e:for(var xe=0;xe=0;--xe)if(u[xe]===J){for(var Te=xe+1;Te0;){for(var x=u.pop(),E=u.pop(),A=-1,M=-1,g=p[E],T=1;T=0||(f.flip(E,x),s(h,f,u,A,E,M),s(h,f,u,E,M,A),s(h,f,u,M,x,A),s(h,f,u,x,A,M))}}},7098:function(v,m,a){var n=a(5070);v.exports=b;function s(p,E,g,c,x,A,M){this.cells=p,this.neighbor=E,this.flags=c,this.constraint=g,this.active=x,this.next=A,this.boundary=M}var o=s.prototype;function h(p,E){return p[0]-E[0]||p[1]-E[1]||p[2]-E[2]}o.locate=function(){var p=[0,0,0];return function(E,g,c){var x=E,A=g,M=c;return g0||M.length>0;){for(;A.length>0;){var d=A.pop();if(R[d]!==-x){R[d]=x,T[d];for(var k=0;k<3;++k){var I=P[3*d+k];I>=0&&R[I]===0&&(L[3*d+k]?M.push(I):(A.push(I),R[I]=x))}}}var N=M;M=A,A=N,M.length=0,x=-x}var B=u(T,R,E);return g?B.concat(c.boundary):B}},9971:function(v,m,a){var n=a(5070),s=a(417)[3],o=0,h=1,f=2;v.exports=M;function u(R,T,L,P,d){this.a=R,this.b=T,this.idx=L,this.lowerIds=P,this.upperIds=d}function b(R,T,L,P){this.a=R,this.b=T,this.type=L,this.idx=P}function p(R,T){var L=R.a[0]-T.a[0]||R.a[1]-T.a[1]||R.type-T.type;return L||R.type!==o&&(L=s(R.a,R.b,T.b),L)?L:R.idx-T.idx}function E(R,T){return s(R.a,R.b,T)}function g(R,T,L,P,d){for(var k=n.lt(T,P,E),I=n.gt(T,P,E),N=k;N1&&s(L[G[H-2]],L[G[H-1]],P)>0;)R.push([G[H-1],G[H-2],d]),H-=1;G.length=H,G.push(d);for(var U=B.upperIds,H=U.length;H>1&&s(L[U[H-2]],L[U[H-1]],P)<0;)R.push([U[H-2],U[H-1],d]),H-=1;U.length=H,U.push(d)}}function c(R,T){var L;return R.a[0]B[0]&&d.push(new b(B,N,f,k),new b(N,B,h,k))}d.sort(p);for(var G=d[0].a[0]-(1+Math.abs(d[0].a[0]))*Math.pow(2,-52),U=[new u([G,1],[G,0],-1,[],[])],H=[],k=0,W=d.length;k=0}}(),o.removeTriangle=function(u,b,p){var E=this.stars;h(E[u],b,p),h(E[b],p,u),h(E[p],u,b)},o.addTriangle=function(u,b,p){var E=this.stars;E[u].push(b,p),E[b].push(p,u),E[p].push(u,b)},o.opposite=function(u,b){for(var p=this.stars[b],E=1,g=p.length;E=0;--V){var oe=H[V];$=oe[0];var K=G[$],ne=K[0],ce=K[1],re=B[ne],ee=B[ce];if((re[0]-ee[0]||re[1]-ee[1])<0){var de=ne;ne=ce,ce=de}K[0]=ne;var le=K[1]=oe[1],he;for(W&&(he=K[2]);V>0&&H[V-1][0]===$;){var oe=H[--V],xe=oe[1];W?G.push([le,xe,he]):G.push([le,xe]),le=xe}W?G.push([le,ce,he]):G.push([le,ce])}return Z}function T(B,G,U){for(var H=G.length,W=new n(H),V=[],$=0;$G[2]?1:0)}function d(B,G,U){if(B.length!==0){if(G)for(var H=0;H0||$.length>0}function N(B,G,U){var H;if(U){H=G;for(var W=new Array(G.length),V=0;VR+1)throw new Error(A+" map requires nshades to be at least size "+x.length);Array.isArray(b.alpha)?b.alpha.length!==2?T=[1,1]:T=b.alpha.slice():typeof b.alpha=="number"?T=[b.alpha,b.alpha]:T=[1,1],p=x.map(function(N){return Math.round(N.index*R)}),T[0]=Math.min(Math.max(T[0],0),1),T[1]=Math.min(Math.max(T[1],0),1);var P=x.map(function(N,B){var G=x[B].index,U=x[B].rgb.slice();return U.length===4&&U[3]>=0&&U[3]<=1||(U[3]=T[0]+(T[1]-T[0])*G),U}),d=[];for(L=0;L=0}function b(p,E,g,c){var x=n(E,g,c);if(x===0){var A=s(n(p,E,g)),M=s(n(p,E,c));if(A===M){if(A===0){var R=u(p,E,g),T=u(p,E,c);return R===T?0:R?1:-1}return 0}else{if(M===0)return A>0||u(p,E,c)?-1:1;if(A===0)return M>0||u(p,E,g)?1:-1}return s(M-A)}var L=n(p,E,g);if(L>0)return x>0&&n(p,E,c)>0?1:-1;if(L<0)return x>0||n(p,E,c)>0?1:-1;var P=n(p,E,c);return P>0||u(p,E,g)?1:-1}},7538:function(v){v.exports=function(a){return a<0?-1:a>0?1:0}},9209:function(v){v.exports=n;var m=Math.min;function a(s,o){return s-o}function n(s,o){var h=s.length,f=s.length-o.length;if(f)return f;switch(h){case 0:return 0;case 1:return s[0]-o[0];case 2:return s[0]+s[1]-o[0]-o[1]||m(s[0],s[1])-m(o[0],o[1]);case 3:var u=s[0]+s[1],b=o[0]+o[1];if(f=u+s[2]-(b+o[2]),f)return f;var p=m(s[0],s[1]),E=m(o[0],o[1]);return m(p,s[2])-m(E,o[2])||m(p+s[2],u)-m(E+o[2],b);case 4:var g=s[0],c=s[1],x=s[2],A=s[3],M=o[0],R=o[1],T=o[2],L=o[3];return g+c+x+A-(M+R+T+L)||m(g,c,x,A)-m(M,R,T,L,M)||m(g+c,g+x,g+A,c+x,c+A,x+A)-m(M+R,M+T,M+L,R+T,R+L,T+L)||m(g+c+x,g+c+A,g+x+A,c+x+A)-m(M+R+T,M+R+L,M+T+L,R+T+L);default:for(var P=s.slice().sort(a),d=o.slice().sort(a),k=0;ka[s][0]&&(s=o);return ns?[[s],[n]]:[[n]]}},8722:function(v,m,a){v.exports=s;var n=a(3266);function s(o){var h=n(o),f=h.length;if(f<=2)return[];for(var u=new Array(f),b=h[f-1],p=0;p=b[M]&&(A+=1);c[x]=A}}return u}function f(u,b){try{return n(u,!0)}catch{var p=s(u);if(p.length<=b)return[];var E=o(u,p),g=n(E,!0);return h(g,p)}}},9680:function(v){function m(n,s,o,h,f,u){var b=6*f*f-6*f,p=3*f*f-4*f+1,E=-6*f*f+6*f,g=3*f*f-2*f;if(n.length){u||(u=new Array(n.length));for(var c=n.length-1;c>=0;--c)u[c]=b*n[c]+p*s[c]+E*o[c]+g*h[c];return u}return b*n+p*s+E*o[c]+g*h}function a(n,s,o,h,f,u){var b=f-1,p=f*f,E=b*b,g=(1+2*f)*E,c=f*E,x=p*(3-2*f),A=p*b;if(n.length){u||(u=new Array(n.length));for(var M=n.length-1;M>=0;--M)u[M]=g*n[M]+c*s[M]+x*o[M]+A*h[M];return u}return g*n+c*s+x*o+A*h}v.exports=a,v.exports.derivative=m},4419:function(v,m,a){var n=a(2183),s=a(1215);v.exports=u;function o(b,p){this.point=b,this.index=p}function h(b,p){for(var E=b.point,g=p.point,c=E.length,x=0;x=2)return!1;U[W]=V}return!0}):G=G.filter(function(U){for(var H=0;H<=g;++H){var W=k[U[H]];if(W<0)return!1;U[H]=W}return!0}),g&1)for(var A=0;A>>31},v.exports.exponent=function(o){var h=v.exports.hi(o);return(h<<1>>>21)-1023},v.exports.fraction=function(o){var h=v.exports.lo(o),f=v.exports.hi(o),u=f&(1<<20)-1;return f&2146435072&&(u+=1048576),[h,u]},v.exports.denormalized=function(o){var h=v.exports.hi(o);return!(h&2146435072)}},3094:function(v){function m(s,o,h){var f=s[h]|0;if(f<=0)return[];var u=new Array(f),b;if(h===s.length-1)for(b=0;b"u"&&(o=0),typeof s){case"number":if(s>0)return a(s|0,o);break;case"object":if(typeof s.length=="number")return m(s,o,0);break}return[]}v.exports=n},8348:function(v,m,a){v.exports=s;var n=a(1215);function s(o,h){var f=o.length;if(typeof h!="number"){h=0;for(var u=0;u=g-1)for(var L=A.length-1,d=p-E[g-1],P=0;P=g-1){var T=A.length-1;p-E[g-1];for(var L=0;L=0;--g)if(p[--E])return!1;return!0},f.jump=function(p){var E=this.lastT(),g=this.dimension;if(!(p0;--P)c.push(o(R[P-1],T[P-1],arguments[P])),x.push(0)}},f.push=function(p){var E=this.lastT(),g=this.dimension;if(!(p1e-6?1/M:0;this._time.push(p);for(var d=g;d>0;--d){var k=o(T[d-1],L[d-1],arguments[d]);c.push(k),x.push((k-c[A++])*P)}}},f.set=function(p){var E=this.dimension;if(!(p0;--R)g.push(o(A[R-1],M[R-1],arguments[R])),c.push(0)}},f.move=function(p){var E=this.lastT(),g=this.dimension;if(!(p<=E||arguments.length!==g+1)){var c=this._state,x=this._velocity,A=c.length-this.dimension,M=this.bounds,R=M[0],T=M[1],L=p-E,P=L>1e-6?1/L:0;this._time.push(p);for(var d=g;d>0;--d){var k=arguments[d];c.push(o(R[d-1],T[d-1],c[A++]+k)),x.push(k*P)}}},f.idle=function(p){var E=this.lastT();if(!(p=0;--P)c.push(o(R[P],T[P],c[A]+L*x[A])),x.push(0),A+=1}};function u(p){for(var E=new Array(p),g=0;g=0;--B){var d=k[B];I[B]<=0?k[B]=new n(d._color,d.key,d.value,k[B+1],d.right,d._count+1):k[B]=new n(d._color,d.key,d.value,d.left,k[B+1],d._count+1)}for(var B=k.length-1;B>1;--B){var G=k[B-1],d=k[B];if(G._color===a||d._color===a)break;var U=k[B-2];if(U.left===G)if(G.left===d){var H=U.right;if(H&&H._color===m)G._color=a,U.right=o(a,H),U._color=m,B-=1;else{if(U._color=m,U.left=G.right,G._color=a,G.right=U,k[B-2]=G,k[B-1]=d,h(U),h(G),B>=3){var W=k[B-3];W.left===U?W.left=G:W.right=G}break}}else{var H=U.right;if(H&&H._color===m)G._color=a,U.right=o(a,H),U._color=m,B-=1;else{if(G.right=d.left,U._color=m,U.left=d.right,d._color=a,d.left=G,d.right=U,k[B-2]=d,k[B-1]=G,h(U),h(G),h(d),B>=3){var W=k[B-3];W.left===U?W.left=d:W.right=d}break}}else if(G.right===d){var H=U.left;if(H&&H._color===m)G._color=a,U.left=o(a,H),U._color=m,B-=1;else{if(U._color=m,U.right=G.left,G._color=a,G.left=U,k[B-2]=G,k[B-1]=d,h(U),h(G),B>=3){var W=k[B-3];W.right===U?W.right=G:W.left=G}break}}else{var H=U.left;if(H&&H._color===m)G._color=a,U.left=o(a,H),U._color=m,B-=1;else{if(G.left=d.right,U._color=m,U.right=d.left,d._color=a,d.right=G,d.left=U,k[B-2]=d,k[B-1]=G,h(U),h(G),h(d),B>=3){var W=k[B-3];W.right===U?W.right=d:W.left=d}break}}}return k[0]._color=a,new f(P,k[0])};function b(T,L){if(L.left){var P=b(T,L.left);if(P)return P}var P=T(L.key,L.value);if(P)return P;if(L.right)return b(T,L.right)}function p(T,L,P,d){var k=L(T,d.key);if(k<=0){if(d.left){var I=p(T,L,P,d.left);if(I)return I}var I=P(d.key,d.value);if(I)return I}if(d.right)return p(T,L,P,d.right)}function E(T,L,P,d,k){var I=P(T,k.key),N=P(L,k.key),B;if(I<=0&&(k.left&&(B=E(T,L,P,d,k.left),B)||N>0&&(B=d(k.key,k.value),B)))return B;if(N>0&&k.right)return E(T,L,P,d,k.right)}u.forEach=function(L,P,d){if(this.root)switch(arguments.length){case 1:return b(L,this.root);case 2:return p(P,this._compare,L,this.root);case 3:return this._compare(P,d)>=0?void 0:E(P,d,this._compare,L,this.root)}},Object.defineProperty(u,"begin",{get:function(){for(var T=[],L=this.root;L;)T.push(L),L=L.left;return new g(this,T)}}),Object.defineProperty(u,"end",{get:function(){for(var T=[],L=this.root;L;)T.push(L),L=L.right;return new g(this,T)}}),u.at=function(T){if(T<0)return new g(this,[]);for(var L=this.root,P=[];;){if(P.push(L),L.left){if(T=L.right._count)break;L=L.right}else break}return new g(this,[])},u.ge=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I<=0&&(k=d.length),I<=0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.gt=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I<0&&(k=d.length),I<0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.lt=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I>0&&(k=d.length),I<=0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.le=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I>=0&&(k=d.length),I<0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.find=function(T){for(var L=this._compare,P=this.root,d=[];P;){var k=L(T,P.key);if(d.push(P),k===0)return new g(this,d);k<=0?P=P.left:P=P.right}return new g(this,[])},u.remove=function(T){var L=this.find(T);return L?L.remove():this},u.get=function(T){for(var L=this._compare,P=this.root;P;){var d=L(T,P.key);if(d===0)return P.value;d<=0?P=P.left:P=P.right}};function g(T,L){this.tree=T,this._stack=L}var c=g.prototype;Object.defineProperty(c,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(c,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),c.clone=function(){return new g(this.tree,this._stack.slice())};function x(T,L){T.key=L.key,T.value=L.value,T.left=L.left,T.right=L.right,T._color=L._color,T._count=L._count}function A(T){for(var L,P,d,k,I=T.length-1;I>=0;--I){if(L=T[I],I===0){L._color=a;return}if(P=T[I-1],P.left===L){if(d=P.right,d.right&&d.right._color===m){if(d=P.right=s(d),k=d.right=s(d.right),P.right=d.left,d.left=P,d.right=k,d._color=P._color,L._color=a,P._color=a,k._color=a,h(P),h(d),I>1){var N=T[I-2];N.left===P?N.left=d:N.right=d}T[I-1]=d;return}else if(d.left&&d.left._color===m){if(d=P.right=s(d),k=d.left=s(d.left),P.right=k.left,d.left=k.right,k.left=P,k.right=d,k._color=P._color,P._color=a,d._color=a,L._color=a,h(P),h(d),h(k),I>1){var N=T[I-2];N.left===P?N.left=k:N.right=k}T[I-1]=k;return}if(d._color===a)if(P._color===m){P._color=a,P.right=o(m,d);return}else{P.right=o(m,d);continue}else{if(d=s(d),P.right=d.left,d.left=P,d._color=P._color,P._color=m,h(P),h(d),I>1){var N=T[I-2];N.left===P?N.left=d:N.right=d}T[I-1]=d,T[I]=P,I+11){var N=T[I-2];N.right===P?N.right=d:N.left=d}T[I-1]=d;return}else if(d.right&&d.right._color===m){if(d=P.left=s(d),k=d.right=s(d.right),P.left=k.right,d.right=k.left,k.right=P,k.left=d,k._color=P._color,P._color=a,d._color=a,L._color=a,h(P),h(d),h(k),I>1){var N=T[I-2];N.right===P?N.right=k:N.left=k}T[I-1]=k;return}if(d._color===a)if(P._color===m){P._color=a,P.left=o(m,d);return}else{P.left=o(m,d);continue}else{if(d=s(d),P.left=d.right,d.right=P,d._color=P._color,P._color=m,h(P),h(d),I>1){var N=T[I-2];N.right===P?N.right=d:N.left=d}T[I-1]=d,T[I]=P,I+1=0;--d){var P=T[d];P.left===T[d+1]?L[d]=new n(P._color,P.key,P.value,L[d+1],P.right,P._count):L[d]=new n(P._color,P.key,P.value,P.left,L[d+1],P._count)}if(P=L[L.length-1],P.left&&P.right){var k=L.length;for(P=P.left;P.right;)L.push(P),P=P.right;var I=L[k-1];L.push(new n(P._color,I.key,I.value,P.left,P.right,P._count)),L[k-1].key=P.key,L[k-1].value=P.value;for(var d=L.length-2;d>=k;--d)P=L[d],L[d]=new n(P._color,P.key,P.value,P.left,L[d+1],P._count);L[k-1].left=L[k]}if(P=L[L.length-1],P._color===m){var N=L[L.length-2];N.left===P?N.left=null:N.right===P&&(N.right=null),L.pop();for(var d=0;d0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(c,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(c,"index",{get:function(){var T=0,L=this._stack;if(L.length===0){var P=this.tree.root;return P?P._count:0}else L[L.length-1].left&&(T=L[L.length-1].left._count);for(var d=L.length-2;d>=0;--d)L[d+1]===L[d].right&&(++T,L[d].left&&(T+=L[d].left._count));return T},enumerable:!0}),c.next=function(){var T=this._stack;if(T.length!==0){var L=T[T.length-1];if(L.right)for(L=L.right;L;)T.push(L),L=L.left;else for(T.pop();T.length>0&&T[T.length-1].right===L;)L=T[T.length-1],T.pop()}},Object.defineProperty(c,"hasNext",{get:function(){var T=this._stack;if(T.length===0)return!1;if(T[T.length-1].right)return!0;for(var L=T.length-1;L>0;--L)if(T[L-1].left===T[L])return!0;return!1}}),c.update=function(T){var L=this._stack;if(L.length===0)throw new Error("Can't update empty node!");var P=new Array(L.length),d=L[L.length-1];P[P.length-1]=new n(d._color,d.key,T,d.left,d.right,d._count);for(var k=L.length-2;k>=0;--k)d=L[k],d.left===L[k+1]?P[k]=new n(d._color,d.key,d.value,P[k+1],d.right,d._count):P[k]=new n(d._color,d.key,d.value,d.left,P[k+1],d._count);return new f(this.tree._compare,P[0])},c.prev=function(){var T=this._stack;if(T.length!==0){var L=T[T.length-1];if(L.left)for(L=L.left;L;)T.push(L),L=L.right;else for(T.pop();T.length>0&&T[T.length-1].left===L;)L=T[T.length-1],T.pop()}},Object.defineProperty(c,"hasPrev",{get:function(){var T=this._stack;if(T.length===0)return!1;if(T[T.length-1].left)return!0;for(var L=T.length-1;L>0;--L)if(T[L-1].right===T[L])return!0;return!1}});function M(T,L){return TL?1:0}function R(T){return new f(T||M,null)}},7453:function(v,m,a){v.exports=d;var n=a(9557),s=a(1681),o=a(1011),h=a(2864),f=a(8468),u=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function b(k,I){return k[0]=I[0],k[1]=I[1],k[2]=I[2],k}function p(k){this.gl=k,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=o(k)}var E=p.prototype;E.update=function(k){k=k||{};function I(ie,fe,Q){if(Q in k){var J=k[Q],oe=this[Q],K;(ie?Array.isArray(J)&&Array.isArray(J[0]):Array.isArray(J))?this[Q]=K=[fe(J[0]),fe(J[1]),fe(J[2])]:this[Q]=K=[fe(J),fe(J),fe(J)];for(var ne=0;ne<3;++ne)if(K[ne]!==oe[ne])return!0}return!1}var N=I.bind(this,!1,Number),B=I.bind(this,!1,Boolean),G=I.bind(this,!1,String),U=I.bind(this,!0,function(ie){if(Array.isArray(ie)){if(ie.length===3)return[+ie[0],+ie[1],+ie[2],1];if(ie.length===4)return[+ie[0],+ie[1],+ie[2],+ie[3]]}return[0,0,0,1]}),H,W=!1,V=!1;if("bounds"in k)for(var $=k.bounds,Z=0;Z<2;++Z)for(var q=0;q<3;++q)$[Z][q]!==this.bounds[Z][q]&&(V=!0),this.bounds[Z][q]=$[Z][q];if("ticks"in k){H=k.ticks,W=!0,this.autoTicks=!1;for(var Z=0;Z<3;++Z)this.tickSpacing[Z]=0}else N("tickSpacing")&&(this.autoTicks=!0,V=!0);if(this._firstInit&&("ticks"in k||"tickSpacing"in k||(this.autoTicks=!0),V=!0,W=!0,this._firstInit=!1),V&&this.autoTicks&&(H=f.create(this.bounds,this.tickSpacing),W=!0),W){for(var Z=0;Z<3;++Z)H[Z].sort(function(fe,Q){return fe.x-Q.x});f.equal(H,this.ticks)?W=!1:this.ticks=H}B("tickEnable"),G("tickFont")&&(W=!0),N("tickSize"),N("tickAngle"),N("tickPad"),U("tickColor");var ae=G("labels");G("labelFont")&&(ae=!0),B("labelEnable"),N("labelSize"),N("labelPad"),U("labelColor"),B("lineEnable"),B("lineMirror"),N("lineWidth"),U("lineColor"),B("lineTickEnable"),B("lineTickMirror"),N("lineTickLength"),N("lineTickWidth"),U("lineTickColor"),B("gridEnable"),N("gridWidth"),U("gridColor"),B("zeroEnable"),U("zeroLineColor"),N("zeroLineWidth"),B("backgroundEnable"),U("backgroundColor"),this._text?this._text&&(ae||W)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&W&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=s(this.gl,this.bounds,this.ticks))};function g(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var c=[new g,new g,new g];function x(k,I,N,B,G){for(var U=k.primalOffset,H=k.primalMinor,W=k.mirrorOffset,V=k.mirrorMinor,$=B[I],Z=0;Z<3;++Z)if(I!==Z){var q=U,ae=W,ie=H,fe=V;$&1<0?(ie[Z]=-1,fe[Z]=0):(ie[Z]=0,fe[Z]=1)}}var A=[0,0,0],M={model:u,view:u,projection:u,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(k){};var R=0,T=[0,0,0],L=[0,0,0],P=[0,0,0];E.draw=function(k){k=k||M;for(var oe=this.gl,I=k.model||u,N=k.view||u,B=k.projection||u,G=this.bounds,U=k._ortho||!1,H=h(I,N,B,G,U),W=H.cubeEdges,V=H.axis,$=N[12],Z=N[13],q=N[14],ae=N[15],ie=U?2:1,fe=ie*this.pixelRatio*(B[3]*$+B[7]*Z+B[11]*q+B[15]*ae)/oe.drawingBufferHeight,Q=0;Q<3;++Q)this.lastCubeProps.cubeEdges[Q]=W[Q],this.lastCubeProps.axis[Q]=V[Q];for(var J=c,Q=0;Q<3;++Q)x(c[Q],Q,this.bounds,W,V);for(var oe=this.gl,K=A,Q=0;Q<3;++Q)this.backgroundEnable[Q]?K[Q]=V[Q]:K[Q]=0;this._background.draw(I,N,B,G,K,this.backgroundColor),this._lines.bind(I,N,B,this);for(var Q=0;Q<3;++Q){var ne=[0,0,0];V[Q]>0?ne[Q]=G[1][Q]:ne[Q]=G[0][Q];for(var ce=0;ce<2;++ce){var re=(Q+1+ce)%3,ee=(Q+1+(ce^1))%3;this.gridEnable[re]&&this._lines.drawGrid(re,ee,this.bounds,ne,this.gridColor[re],this.gridWidth[re]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var re=(Q+1+ce)%3,ee=(Q+1+(ce^1))%3;this.zeroEnable[ee]&&Math.min(G[0][ee],G[1][ee])<=0&&Math.max(G[0][ee],G[1][ee])>=0&&this._lines.drawZero(re,ee,this.bounds,ne,this.zeroLineColor[ee],this.zeroLineWidth[ee]*this.pixelRatio)}}for(var Q=0;Q<3;++Q){this.lineEnable[Q]&&this._lines.drawAxisLine(Q,this.bounds,J[Q].primalOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio),this.lineMirror[Q]&&this._lines.drawAxisLine(Q,this.bounds,J[Q].mirrorOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio);for(var de=b(T,J[Q].primalMinor),le=b(L,J[Q].mirrorMinor),he=this.lineTickLength,ce=0;ce<3;++ce){var xe=fe/I[5*ce];de[ce]*=he[ce]*xe,le[ce]*=he[ce]*xe}this.lineTickEnable[Q]&&this._lines.drawAxisTicks(Q,J[Q].primalOffset,de,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio),this.lineTickMirror[Q]&&this._lines.drawAxisTicks(Q,J[Q].mirrorOffset,le,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio)}this._lines.unbind(),this._text.bind(I,N,B,this.pixelRatio);var Ee,Se=.5,ke,Te;function Ae($e){Te=[0,0,0],Te[$e]=1}function be($e,st,vt){var at=($e+1)%3,nt=($e+2)%3,mt=st[at],rt=st[nt],lt=vt[at],dt=vt[nt];if(mt>0&&dt>0){Ae(at);return}else if(mt>0&&dt<0){Ae(at);return}else if(mt<0&&dt>0){Ae(at);return}else if(mt<0&&dt<0){Ae(at);return}else if(rt>0&<>0){Ae(nt);return}else if(rt>0&<<0){Ae(nt);return}else if(rt<0&<>0){Ae(nt);return}else if(rt<0&<<0){Ae(nt);return}}for(var Q=0;Q<3;++Q){for(var Ie=J[Q].primalMinor,Ue=J[Q].mirrorMinor,Ne=b(P,J[Q].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Q]&&(Ne[ce]+=fe*Ie[ce]*Math.max(this.lineTickLength[ce],0)/I[5*ce]);var ze=[0,0,0];if(ze[Q]=1,this.tickEnable[Q]){this.tickAngle[Q]===-3600?(this.tickAngle[Q]=0,this.tickAlign[Q]="auto"):this.tickAlign[Q]=-1,ke=1,Ee=[this.tickAlign[Q],Se,ke],Ee[0]==="auto"?Ee[0]=R:Ee[0]=parseInt(""+Ee[0]),Te=[0,0,0],be(Q,Ie,Ue);for(var ce=0;ce<3;++ce)Ne[ce]+=fe*Ie[ce]*this.tickPad[ce]/I[5*ce];this._text.drawTicks(Q,this.tickSize[Q],this.tickAngle[Q],Ne,this.tickColor[Q],ze,Te,Ee)}if(this.labelEnable[Q]){ke=0,Te=[0,0,0],this.labels[Q].length>4&&(Ae(Q),ke=1),Ee=[this.labelAlign[Q],Se,ke],Ee[0]==="auto"?Ee[0]=R:Ee[0]=parseInt(""+Ee[0]);for(var ce=0;ce<3;++ce)Ne[ce]+=fe*Ie[ce]*this.labelPad[ce]/I[5*ce];Ne[Q]+=.5*(G[0][Q]+G[1][Q]),this._text.drawLabel(Q,this.labelSize[Q],this.labelAngle[Q],Ne,this.labelColor[Q],[0,0,0],Te,Ee)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function d(k,I){var N=new p(k);return N.update(I),N}},1011:function(v,m,a){v.exports=u;var n=a(5827),s=a(2944),o=a(1943).bg;function h(b,p,E,g){this.gl=b,this.buffer=p,this.vao=E,this.shader=g}var f=h.prototype;f.draw=function(b,p,E,g,c,x){for(var A=!1,M=0;M<3;++M)A=A||c[M];if(A){var R=this.gl;R.enable(R.POLYGON_OFFSET_FILL),R.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,view:p,projection:E,bounds:g,enable:c,colors:x},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),R.disable(R.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function u(b){for(var p=[],E=[],g=0,c=0;c<3;++c)for(var x=(c+1)%3,A=(c+2)%3,M=[0,0,0],R=[0,0,0],T=-1;T<=1;T+=2){E.push(g,g+2,g+1,g+1,g+2,g+3),M[c]=T,R[c]=T;for(var L=-1;L<=1;L+=2){M[x]=L;for(var P=-1;P<=1;P+=2)M[A]=P,p.push(M[0],M[1],M[2],R[0],R[1],R[2]),g+=1}var d=x;x=A,A=d}var k=n(b,new Float32Array(p)),I=n(b,new Uint16Array(E),b.ELEMENT_ARRAY_BUFFER),N=s(b,[{buffer:k,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:k,type:b.FLOAT,size:3,offset:12,stride:24}],I),B=o(b);return B.attributes.position.location=0,B.attributes.normal.location=1,new h(b,k,N,B)}},2864:function(v,m,a){v.exports=T;var n=a(2288),s=a(104),o=a(4670),h=a(417),f=new Array(16),u=new Array(8),b=new Array(8),p=new Array(3),E=[0,0,0];(function(){for(var L=0;L<8;++L)u[L]=[1,1,1,1],b[L]=[1,1,1]})();function g(L,P,d){for(var k=0;k<4;++k){L[k]=d[12+k];for(var I=0;I<3;++I)L[k]+=P[I]*d[4*I+k]}}var c=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function x(L){for(var P=0;Pae&&(H|=1<<$);continue}for(var fe=0;fe<2;++fe){var Q=fe<<$,J=Q+(fe<ae){H|=1<<$;continue}}}for(var ne=7^H,ce=-1,B=0;B<8;++B)B===H||B===ne||(ce<0||b[ce][1]>b[B][1])&&(ce=B);for(var re=-1,B=0;B<3;++B){var ee=ce^1<b[de][0]&&(de=ee)}}var le=A;le[0]=le[1]=le[2]=0,le[n.log2(re^ce)]=ce&re,le[n.log2(ce^de)]=ce&de;var he=de^7;he===H||he===ne?(he=re^7,le[n.log2(de^he)]=he&de):le[n.log2(re^he)]=he&re;for(var xe=M,Ee=H,$=0;$<3;++$)Ee&1<<$?xe[$]=-1:xe[$]=1;return R}},1681:function(v,m,a){v.exports=A;var n=a(5827),s=a(2944),o=a(1943).j,h=[0,0,0],f=[0,0,0],u=[0,0,0],b=[0,0,0],p=[1,1];function E(M){return M[0]=M[1]=M[2]=0,M}function g(M,R){return M[0]=R[0],M[1]=R[1],M[2]=R[2],M}function c(M,R,T,L,P,d,k,I){this.gl=M,this.vertBuffer=R,this.vao=T,this.shader=L,this.tickCount=P,this.tickOffset=d,this.gridCount=k,this.gridOffset=I}var x=c.prototype;x.bind=function(M,R,T){this.shader.bind(),this.shader.uniforms.model=M,this.shader.uniforms.view=R,this.shader.uniforms.projection=T,p[0]=this.gl.drawingBufferWidth,p[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=p,this.vao.bind()},x.unbind=function(){this.vao.unbind()},x.drawAxisLine=function(M,R,T,L,P){var d=E(f);this.shader.uniforms.majorAxis=f,d[M]=R[1][M]-R[0][M],this.shader.uniforms.minorAxis=d;var k=g(b,T);k[M]+=R[0][M],this.shader.uniforms.offset=k,this.shader.uniforms.lineWidth=P,this.shader.uniforms.color=L;var I=E(u);I[(M+2)%3]=1,this.shader.uniforms.screenAxis=I,this.vao.draw(this.gl.TRIANGLES,6);var I=E(u);I[(M+1)%3]=1,this.shader.uniforms.screenAxis=I,this.vao.draw(this.gl.TRIANGLES,6)},x.drawAxisTicks=function(M,R,T,L,P){if(this.tickCount[M]){var d=E(h);d[M]=1,this.shader.uniforms.majorAxis=d,this.shader.uniforms.offset=R,this.shader.uniforms.minorAxis=T,this.shader.uniforms.color=L,this.shader.uniforms.lineWidth=P;var k=E(u);k[M]=1,this.shader.uniforms.screenAxis=k,this.vao.draw(this.gl.TRIANGLES,this.tickCount[M],this.tickOffset[M])}},x.drawGrid=function(M,R,T,L,P,d){if(this.gridCount[M]){var k=E(f);k[R]=T[1][R]-T[0][R],this.shader.uniforms.minorAxis=k;var I=g(b,L);I[R]+=T[0][R],this.shader.uniforms.offset=I;var N=E(h);N[M]=1,this.shader.uniforms.majorAxis=N;var B=E(u);B[M]=1,this.shader.uniforms.screenAxis=B,this.shader.uniforms.lineWidth=d,this.shader.uniforms.color=P,this.vao.draw(this.gl.TRIANGLES,this.gridCount[M],this.gridOffset[M])}},x.drawZero=function(M,R,T,L,P,d){var k=E(f);this.shader.uniforms.majorAxis=k,k[M]=T[1][M]-T[0][M],this.shader.uniforms.minorAxis=k;var I=g(b,L);I[M]+=T[0][M],this.shader.uniforms.offset=I;var N=E(u);N[R]=1,this.shader.uniforms.screenAxis=N,this.shader.uniforms.lineWidth=d,this.shader.uniforms.color=P,this.vao.draw(this.gl.TRIANGLES,6)},x.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()};function A(M,R,T){var L=[],P=[0,0,0],d=[0,0,0],k=[0,0,0],I=[0,0,0];L.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var N=0;N<3;++N){for(var U=L.length/3|0,B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(Me){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Re){return Re.__proto__||Object.getPrototypeOf(Re)},g(Me)}function c(Me){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},c(Me)}var y=a(3910),A=a(3187),M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;m.lW=P,m.h2=50;var R=2147483647;P.TYPED_ARRAY_SUPPORT=T(),!P.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function T(){try{var Me=new Uint8Array(1),we={foo:function(){return 42}};return Object.setPrototypeOf(we,Uint8Array.prototype),Object.setPrototypeOf(Me,we),Me.foo()===42}catch{return!1}}Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.buffer}}),Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.byteOffset}});function L(Me){if(Me>R)throw new RangeError('The value "'+Me+'" is invalid for option "size"');var we=new Uint8Array(Me);return Object.setPrototypeOf(we,P.prototype),we}function P(Me,we,Re){if(typeof Me=="number"){if(typeof we=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(Me)}return d(Me,we,Re)}P.poolSize=8192;function d(Me,we,Re){if(typeof Me=="string")return B(Me,we);if(ArrayBuffer.isView(Me))return U(Me);if(Me==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(Me));if(Be(Me,ArrayBuffer)||Me&&Be(Me.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Be(Me,SharedArrayBuffer)||Me&&Be(Me.buffer,SharedArrayBuffer)))return H(Me,we,Re);if(typeof Me=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Pe=Me.valueOf&&Me.valueOf();if(Pe!=null&&Pe!==Me)return P.from(Pe,we,Re);var Ve=W(Me);if(Ve)return Ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Me[Symbol.toPrimitive]=="function")return P.from(Me[Symbol.toPrimitive]("string"),we,Re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(Me))}P.from=function(Me,we,Re){return d(Me,we,Re)},Object.setPrototypeOf(P.prototype,Uint8Array.prototype),Object.setPrototypeOf(P,Uint8Array);function k(Me){if(typeof Me!="number")throw new TypeError('"size" argument must be of type number');if(Me<0)throw new RangeError('The value "'+Me+'" is invalid for option "size"')}function I(Me,we,Re){return k(Me),Me<=0?L(Me):we!==void 0?typeof Re=="string"?L(Me).fill(we,Re):L(Me).fill(we):L(Me)}P.alloc=function(Me,we,Re){return I(Me,we,Re)};function N(Me){return k(Me),L(Me<0?0:V(Me)|0)}P.allocUnsafe=function(Me){return N(Me)},P.allocUnsafeSlow=function(Me){return N(Me)};function B(Me,we){if((typeof we!="string"||we==="")&&(we="utf8"),!P.isEncoding(we))throw new TypeError("Unknown encoding: "+we);var Re=$(Me,we)|0,Pe=L(Re),Ve=Pe.write(Me,we);return Ve!==Re&&(Pe=Pe.slice(0,Ve)),Pe}function G(Me){for(var we=Me.length<0?0:V(Me.length)|0,Re=L(we),Pe=0;Pe=R)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return Me|0}P.isBuffer=function(we){return we!=null&&we._isBuffer===!0&&we!==P.prototype},P.compare=function(we,Re){if(Be(we,Uint8Array)&&(we=P.from(we,we.offset,we.byteLength)),Be(Re,Uint8Array)&&(Re=P.from(Re,Re.offset,Re.byteLength)),!P.isBuffer(we)||!P.isBuffer(Re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(we===Re)return 0;for(var Pe=we.length,Ve=Re.length,Je=0,ot=Math.min(Pe,Ve);JeVe.length?(P.isBuffer(ot)||(ot=P.from(ot)),ot.copy(Ve,Je)):Uint8Array.prototype.set.call(Ve,ot,Je);else if(P.isBuffer(ot))ot.copy(Ve,Je);else throw new TypeError('"list" argument must be an Array of Buffers');Je+=ot.length}return Ve};function $(Me,we){if(P.isBuffer(Me))return Me.length;if(ArrayBuffer.isView(Me)||Be(Me,ArrayBuffer))return Me.byteLength;if(typeof Me!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+c(Me));var Re=Me.length,Pe=arguments.length>2&&arguments[2]===!0;if(!Pe&&Re===0)return 0;for(var Ve=!1;;)switch(we){case"ascii":case"latin1":case"binary":return Re;case"utf8":case"utf-8":return rt(Me).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re*2;case"hex":return Re>>>1;case"base64":return wt(Me).length;default:if(Ve)return Pe?-1:rt(Me).length;we=(""+we).toLowerCase(),Ve=!0}}P.byteLength=$;function Z(Me,we,Re){var Pe=!1;if((we===void 0||we<0)&&(we=0),we>this.length||((Re===void 0||Re>this.length)&&(Re=this.length),Re<=0)||(Re>>>=0,we>>>=0,Re<=we))return"";for(Me||(Me="utf8");;)switch(Me){case"hex":return he(this,we,Re);case"utf8":case"utf-8":return ce(this,we,Re);case"ascii":return de(this,we,Re);case"latin1":case"binary":return le(this,we,Re);case"base64":return ne(this,we,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,we,Re);default:if(Pe)throw new TypeError("Unknown encoding: "+Me);Me=(Me+"").toLowerCase(),Pe=!0}}P.prototype._isBuffer=!0;function q(Me,we,Re){var Pe=Me[we];Me[we]=Me[Re],Me[Re]=Pe}P.prototype.swap16=function(){var we=this.length;if(we%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Re=0;ReRe&&(we+=" ... "),""},M&&(P.prototype[M]=P.prototype.inspect),P.prototype.compare=function(we,Re,Pe,Ve,Je){if(Be(we,Uint8Array)&&(we=P.from(we,we.offset,we.byteLength)),!P.isBuffer(we))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+c(we));if(Re===void 0&&(Re=0),Pe===void 0&&(Pe=we?we.length:0),Ve===void 0&&(Ve=0),Je===void 0&&(Je=this.length),Re<0||Pe>we.length||Ve<0||Je>this.length)throw new RangeError("out of range index");if(Ve>=Je&&Re>=Pe)return 0;if(Ve>=Je)return-1;if(Re>=Pe)return 1;if(Re>>>=0,Pe>>>=0,Ve>>>=0,Je>>>=0,this===we)return 0;for(var ot=Je-Ve,yt=Pe-Re,ut=Math.min(ot,yt),It=this.slice(Ve,Je),Vt=we.slice(Re,Pe),xt=0;xt2147483647?Re=2147483647:Re<-2147483648&&(Re=-2147483648),Re=+Re,Ye(Re)&&(Re=Ve?0:Me.length-1),Re<0&&(Re=Me.length+Re),Re>=Me.length){if(Ve)return-1;Re=Me.length-1}else if(Re<0)if(Ve)Re=0;else return-1;if(typeof we=="string"&&(we=P.from(we,Pe)),P.isBuffer(we))return we.length===0?-1:ie(Me,we,Re,Pe,Ve);if(typeof we=="number")return we=we&255,typeof Uint8Array.prototype.indexOf=="function"?Ve?Uint8Array.prototype.indexOf.call(Me,we,Re):Uint8Array.prototype.lastIndexOf.call(Me,we,Re):ie(Me,[we],Re,Pe,Ve);throw new TypeError("val must be string, number or Buffer")}function ie(Me,we,Re,Pe,Ve){var Je=1,ot=Me.length,yt=we.length;if(Pe!==void 0&&(Pe=String(Pe).toLowerCase(),Pe==="ucs2"||Pe==="ucs-2"||Pe==="utf16le"||Pe==="utf-16le")){if(Me.length<2||we.length<2)return-1;Je=2,ot/=2,yt/=2,Re/=2}function ut(Xt,dr){return Je===1?Xt[dr]:Xt.readUInt16BE(dr*Je)}var It;if(Ve){var Vt=-1;for(It=Re;Itot&&(Re=ot-yt),It=Re;It>=0;It--){for(var xt=!0,Lt=0;LtVe&&(Pe=Ve)):Pe=Ve;var Je=we.length;Pe>Je/2&&(Pe=Je/2);var ot;for(ot=0;ot>>0,isFinite(Pe)?(Pe=Pe>>>0,Ve===void 0&&(Ve="utf8")):(Ve=Pe,Pe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Je=this.length-Re;if((Pe===void 0||Pe>Je)&&(Pe=Je),we.length>0&&(Pe<0||Re<0)||Re>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ve||(Ve="utf8");for(var ot=!1;;)switch(Ve){case"hex":return fe(this,we,Re,Pe);case"utf8":case"utf-8":return Q(this,we,Re,Pe);case"ascii":case"latin1":case"binary":return J(this,we,Re,Pe);case"base64":return oe(this,we,Re,Pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,we,Re,Pe);default:if(ot)throw new TypeError("Unknown encoding: "+Ve);Ve=(""+Ve).toLowerCase(),ot=!0}},P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(Me,we,Re){return we===0&&Re===Me.length?y.fromByteArray(Me):y.fromByteArray(Me.slice(we,Re))}function ce(Me,we,Re){Re=Math.min(Me.length,Re);for(var Pe=[],Ve=we;Ve239?4:Je>223?3:Je>191?2:1;if(Ve+yt<=Re){var ut=void 0,It=void 0,Vt=void 0,xt=void 0;switch(yt){case 1:Je<128&&(ot=Je);break;case 2:ut=Me[Ve+1],(ut&192)===128&&(xt=(Je&31)<<6|ut&63,xt>127&&(ot=xt));break;case 3:ut=Me[Ve+1],It=Me[Ve+2],(ut&192)===128&&(It&192)===128&&(xt=(Je&15)<<12|(ut&63)<<6|It&63,xt>2047&&(xt<55296||xt>57343)&&(ot=xt));break;case 4:ut=Me[Ve+1],It=Me[Ve+2],Vt=Me[Ve+3],(ut&192)===128&&(It&192)===128&&(Vt&192)===128&&(xt=(Je&15)<<18|(ut&63)<<12|(It&63)<<6|Vt&63,xt>65535&&xt<1114112&&(ot=xt))}}ot===null?(ot=65533,yt=1):ot>65535&&(ot-=65536,Pe.push(ot>>>10&1023|55296),ot=56320|ot&1023),Pe.push(ot),Ve+=yt}return ee(Pe)}var re=4096;function ee(Me){var we=Me.length;if(we<=re)return String.fromCharCode.apply(String,Me);for(var Re="",Pe=0;PePe)&&(Re=Pe);for(var Ve="",Je=we;JePe&&(we=Pe),Re<0?(Re+=Pe,Re<0&&(Re=0)):Re>Pe&&(Re=Pe),ReRe)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUintLE=P.prototype.readUIntLE=function(we,Re,Pe){we=we>>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=this[we],Je=1,ot=0;++ot>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=this[we+--Re],Je=1;Re>0&&(Je*=256);)Ve+=this[we+--Re]*Je;return Ve},P.prototype.readUint8=P.prototype.readUInt8=function(we,Re){return we=we>>>0,Re||Ee(we,1,this.length),this[we]},P.prototype.readUint16LE=P.prototype.readUInt16LE=function(we,Re){return we=we>>>0,Re||Ee(we,2,this.length),this[we]|this[we+1]<<8},P.prototype.readUint16BE=P.prototype.readUInt16BE=function(we,Re){return we=we>>>0,Re||Ee(we,2,this.length),this[we]<<8|this[we+1]},P.prototype.readUint32LE=P.prototype.readUInt32LE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),(this[we]|this[we+1]<<8|this[we+2]<<16)+this[we+3]*16777216},P.prototype.readUint32BE=P.prototype.readUInt32BE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),this[we]*16777216+(this[we+1]<<16|this[we+2]<<8|this[we+3])},P.prototype.readBigUInt64LE=We(function(we){we=we>>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=Re+this[++we]*Math.pow(2,8)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,24),Je=this[++we]+this[++we]*Math.pow(2,8)+this[++we]*Math.pow(2,16)+Pe*Math.pow(2,24);return BigInt(Ve)+(BigInt(Je)<>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=Re*Math.pow(2,24)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,8)+this[++we],Je=this[++we]*Math.pow(2,24)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,8)+Pe;return(BigInt(Ve)<>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=this[we],Je=1,ot=0;++ot=Je&&(Ve-=Math.pow(2,8*Re)),Ve},P.prototype.readIntBE=function(we,Re,Pe){we=we>>>0,Re=Re>>>0,Pe||Ee(we,Re,this.length);for(var Ve=Re,Je=1,ot=this[we+--Ve];Ve>0&&(Je*=256);)ot+=this[we+--Ve]*Je;return Je*=128,ot>=Je&&(ot-=Math.pow(2,8*Re)),ot},P.prototype.readInt8=function(we,Re){return we=we>>>0,Re||Ee(we,1,this.length),this[we]&128?(255-this[we]+1)*-1:this[we]},P.prototype.readInt16LE=function(we,Re){we=we>>>0,Re||Ee(we,2,this.length);var Pe=this[we]|this[we+1]<<8;return Pe&32768?Pe|4294901760:Pe},P.prototype.readInt16BE=function(we,Re){we=we>>>0,Re||Ee(we,2,this.length);var Pe=this[we+1]|this[we]<<8;return Pe&32768?Pe|4294901760:Pe},P.prototype.readInt32LE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),this[we]|this[we+1]<<8|this[we+2]<<16|this[we+3]<<24},P.prototype.readInt32BE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),this[we]<<24|this[we+1]<<16|this[we+2]<<8|this[we+3]},P.prototype.readBigInt64LE=We(function(we){we=we>>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=this[we+4]+this[we+5]*Math.pow(2,8)+this[we+6]*Math.pow(2,16)+(Pe<<24);return(BigInt(Ve)<>>0,vt(we,"offset");var Re=this[we],Pe=this[we+7];(Re===void 0||Pe===void 0)&&at(we,this.length-8);var Ve=(Re<<24)+this[++we]*Math.pow(2,16)+this[++we]*Math.pow(2,8)+this[++we];return(BigInt(Ve)<>>0,Re||Ee(we,4,this.length),A.read(this,we,!0,23,4)},P.prototype.readFloatBE=function(we,Re){return we=we>>>0,Re||Ee(we,4,this.length),A.read(this,we,!1,23,4)},P.prototype.readDoubleLE=function(we,Re){return we=we>>>0,Re||Ee(we,8,this.length),A.read(this,we,!0,52,8)},P.prototype.readDoubleBE=function(we,Re){return we=we>>>0,Re||Ee(we,8,this.length),A.read(this,we,!1,52,8)};function Se(Me,we,Re,Pe,Ve,Je){if(!P.isBuffer(Me))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>Ve||weMe.length)throw new RangeError("Index out of range")}P.prototype.writeUintLE=P.prototype.writeUIntLE=function(we,Re,Pe,Ve){if(we=+we,Re=Re>>>0,Pe=Pe>>>0,!Ve){var Je=Math.pow(2,8*Pe)-1;Se(this,we,Re,Pe,Je,0)}var ot=1,yt=0;for(this[Re]=we&255;++yt>>0,Pe=Pe>>>0,!Ve){var Je=Math.pow(2,8*Pe)-1;Se(this,we,Re,Pe,Je,0)}var ot=Pe-1,yt=1;for(this[Re+ot]=we&255;--ot>=0&&(yt*=256);)this[Re+ot]=we/yt&255;return Re+Pe},P.prototype.writeUint8=P.prototype.writeUInt8=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,1,255,0),this[Re]=we&255,Re+1},P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,65535,0),this[Re]=we&255,this[Re+1]=we>>>8,Re+2},P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,65535,0),this[Re]=we>>>8,this[Re+1]=we&255,Re+2},P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,4294967295,0),this[Re+3]=we>>>24,this[Re+2]=we>>>16,this[Re+1]=we>>>8,this[Re]=we&255,Re+4},P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,4294967295,0),this[Re]=we>>>24,this[Re+1]=we>>>16,this[Re+2]=we>>>8,this[Re+3]=we&255,Re+4};function ke(Me,we,Re,Pe,Ve){st(we,Pe,Ve,Me,Re,7);var Je=Number(we&BigInt(4294967295));Me[Re++]=Je,Je=Je>>8,Me[Re++]=Je,Je=Je>>8,Me[Re++]=Je,Je=Je>>8,Me[Re++]=Je;var ot=Number(we>>BigInt(32)&BigInt(4294967295));return Me[Re++]=ot,ot=ot>>8,Me[Re++]=ot,ot=ot>>8,Me[Re++]=ot,ot=ot>>8,Me[Re++]=ot,Re}function Te(Me,we,Re,Pe,Ve){st(we,Pe,Ve,Me,Re,7);var Je=Number(we&BigInt(4294967295));Me[Re+7]=Je,Je=Je>>8,Me[Re+6]=Je,Je=Je>>8,Me[Re+5]=Je,Je=Je>>8,Me[Re+4]=Je;var ot=Number(we>>BigInt(32)&BigInt(4294967295));return Me[Re+3]=ot,ot=ot>>8,Me[Re+2]=ot,ot=ot>>8,Me[Re+1]=ot,ot=ot>>8,Me[Re]=ot,Re+8}P.prototype.writeBigUInt64LE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ke(this,we,Re,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeBigUInt64BE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Te(this,we,Re,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeIntLE=function(we,Re,Pe,Ve){if(we=+we,Re=Re>>>0,!Ve){var Je=Math.pow(2,8*Pe-1);Se(this,we,Re,Pe,Je-1,-Je)}var ot=0,yt=1,ut=0;for(this[Re]=we&255;++ot>0)-ut&255;return Re+Pe},P.prototype.writeIntBE=function(we,Re,Pe,Ve){if(we=+we,Re=Re>>>0,!Ve){var Je=Math.pow(2,8*Pe-1);Se(this,we,Re,Pe,Je-1,-Je)}var ot=Pe-1,yt=1,ut=0;for(this[Re+ot]=we&255;--ot>=0&&(yt*=256);)we<0&&ut===0&&this[Re+ot+1]!==0&&(ut=1),this[Re+ot]=(we/yt>>0)-ut&255;return Re+Pe},P.prototype.writeInt8=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,1,127,-128),we<0&&(we=255+we+1),this[Re]=we&255,Re+1},P.prototype.writeInt16LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,32767,-32768),this[Re]=we&255,this[Re+1]=we>>>8,Re+2},P.prototype.writeInt16BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,2,32767,-32768),this[Re]=we>>>8,this[Re+1]=we&255,Re+2},P.prototype.writeInt32LE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,2147483647,-2147483648),this[Re]=we&255,this[Re+1]=we>>>8,this[Re+2]=we>>>16,this[Re+3]=we>>>24,Re+4},P.prototype.writeInt32BE=function(we,Re,Pe){return we=+we,Re=Re>>>0,Pe||Se(this,we,Re,4,2147483647,-2147483648),we<0&&(we=4294967295+we+1),this[Re]=we>>>24,this[Re+1]=we>>>16,this[Re+2]=we>>>8,this[Re+3]=we&255,Re+4},P.prototype.writeBigInt64LE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ke(this,we,Re,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),P.prototype.writeBigInt64BE=We(function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Te(this,we,Re,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(Me,we,Re,Pe,Ve,Je){if(Re+Pe>Me.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("Index out of range")}function be(Me,we,Re,Pe,Ve){return we=+we,Re=Re>>>0,Ve||Ae(Me,we,Re,4),A.write(Me,we,Re,Pe,23,4),Re+4}P.prototype.writeFloatLE=function(we,Re,Pe){return be(this,we,Re,!0,Pe)},P.prototype.writeFloatBE=function(we,Re,Pe){return be(this,we,Re,!1,Pe)};function Ie(Me,we,Re,Pe,Ve){return we=+we,Re=Re>>>0,Ve||Ae(Me,we,Re,8),A.write(Me,we,Re,Pe,52,8),Re+8}P.prototype.writeDoubleLE=function(we,Re,Pe){return Ie(this,we,Re,!0,Pe)},P.prototype.writeDoubleBE=function(we,Re,Pe){return Ie(this,we,Re,!1,Pe)},P.prototype.copy=function(we,Re,Pe,Ve){if(!P.isBuffer(we))throw new TypeError("argument should be a Buffer");if(Pe||(Pe=0),!Ve&&Ve!==0&&(Ve=this.length),Re>=we.length&&(Re=we.length),Re||(Re=0),Ve>0&&Ve=this.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("sourceEnd out of bounds");Ve>this.length&&(Ve=this.length),we.length-Re>>0,Pe=Pe===void 0?this.length:Pe>>>0,we||(we=0);var ot;if(typeof we=="number")for(ot=Re;otMath.pow(2,32)?Ve=ze(String(Re)):typeof Re=="bigint"&&(Ve=String(Re),(Re>Math.pow(BigInt(2),BigInt(32))||Re<-Math.pow(BigInt(2),BigInt(32)))&&(Ve=ze(Ve)),Ve+="n"),Pe+=" It must be ".concat(we,". Received ").concat(Ve),Pe},RangeError);function ze(Me){for(var we="",Re=Me.length,Pe=Me[0]==="-"?1:0;Re>=Pe+4;Re-=3)we="_".concat(Me.slice(Re-3,Re)).concat(we);return"".concat(Me.slice(0,Re)).concat(we)}function $e(Me,we,Re){vt(we,"offset"),(Me[we]===void 0||Me[we+Re]===void 0)&&at(we,Me.length-(Re+1))}function st(Me,we,Re,Pe,Ve,Je){if(Me>Re||Me= 0".concat(ot," and < 2").concat(ot," ** ").concat((Je+1)*8).concat(ot):yt=">= -(2".concat(ot," ** ").concat((Je+1)*8-1).concat(ot,") and < 2 ** ")+"".concat((Je+1)*8-1).concat(ot),new Ue.ERR_OUT_OF_RANGE("value",yt,Me)}$e(Pe,Ve,Je)}function vt(Me,we){if(typeof Me!="number")throw new Ue.ERR_INVALID_ARG_TYPE(we,"number",Me)}function at(Me,we,Re){throw Math.floor(Me)!==Me?(vt(Me,Re),new Ue.ERR_OUT_OF_RANGE("offset","an integer",Me)):we<0?new Ue.ERR_BUFFER_OUT_OF_BOUNDS:new Ue.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(we),Me)}var nt=/[^+/0-9A-Za-z-_]/g;function mt(Me){if(Me=Me.split("=")[0],Me=Me.trim().replace(nt,""),Me.length<2)return"";for(;Me.length%4!==0;)Me=Me+"=";return Me}function rt(Me,we){we=we||1/0;for(var Re,Pe=Me.length,Ve=null,Je=[],ot=0;ot55295&&Re<57344){if(!Ve){if(Re>56319){(we-=3)>-1&&Je.push(239,191,189);continue}else if(ot+1===Pe){(we-=3)>-1&&Je.push(239,191,189);continue}Ve=Re;continue}if(Re<56320){(we-=3)>-1&&Je.push(239,191,189),Ve=Re;continue}Re=(Ve-55296<<10|Re-56320)+65536}else Ve&&(we-=3)>-1&&Je.push(239,191,189);if(Ve=null,Re<128){if((we-=1)<0)break;Je.push(Re)}else if(Re<2048){if((we-=2)<0)break;Je.push(Re>>6|192,Re&63|128)}else if(Re<65536){if((we-=3)<0)break;Je.push(Re>>12|224,Re>>6&63|128,Re&63|128)}else if(Re<1114112){if((we-=4)<0)break;Je.push(Re>>18|240,Re>>12&63|128,Re>>6&63|128,Re&63|128)}else throw new Error("Invalid code point")}return Je}function lt(Me){for(var we=[],Re=0;Re>8,Ve=Re%256,Je.push(Ve),Je.push(Pe);return Je}function wt(Me){return y.toByteArray(mt(Me))}function et(Me,we,Re,Pe){var Ve;for(Ve=0;Ve=we.length||Ve>=Me.length);++Ve)we[Ve+Re]=Me[Ve];return Ve}function Be(Me,we){return Me instanceof we||Me!=null&&Me.constructor!=null&&Me.constructor.name!=null&&Me.constructor.name===we.name}function Ye(Me){return Me!==Me}var Ze=function(){for(var Me="0123456789abcdef",we=new Array(256),Re=0;Re<16;++Re)for(var Pe=Re*16,Ve=0;Ve<16;++Ve)we[Pe+Ve]=Me[Re]+Me[Ve];return we}();function We(Me){return typeof BigInt>"u"?Fe:Me}function Fe(){throw new Error("BigInt not supported")}},2321:function(v){v.exports=s,v.exports.isMobile=s,v.exports.default=s;var m=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,n=/android|ipad|playbook|silk/i;function s(o){o||(o={});var h=o.ua;if(!h&&typeof navigator<"u"&&(h=navigator.userAgent),h&&h.headers&&typeof h.headers["user-agent"]=="string"&&(h=h.headers["user-agent"]),typeof h!="string")return!1;var f=m.test(h)&&!a.test(h)||!!o.tablet&&n.test(h);return!f&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&h.indexOf("Macintosh")!==-1&&h.indexOf("Safari")!==-1&&(f=!0),f}},3910:function(v,m){m.byteLength=b,m.toByteArray=E,m.fromByteArray=y;for(var a=[],n=[],s=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,f=o.length;h0)throw new Error("Invalid string. Length must be a multiple of 4");var R=A.indexOf("=");R===-1&&(R=M);var T=R===M?0:4-R%4;return[R,T]}function b(A){var M=u(A),R=M[0],T=M[1];return(R+T)*3/4-T}function p(A,M,R){return(M+R)*3/4-R}function E(A){var M,R=u(A),T=R[0],L=R[1],P=new s(p(A,T,L)),d=0,k=L>0?T-4:T,I;for(I=0;I>16&255,P[d++]=M>>8&255,P[d++]=M&255;return L===2&&(M=n[A.charCodeAt(I)]<<2|n[A.charCodeAt(I+1)]>>4,P[d++]=M&255),L===1&&(M=n[A.charCodeAt(I)]<<10|n[A.charCodeAt(I+1)]<<4|n[A.charCodeAt(I+2)]>>2,P[d++]=M>>8&255,P[d++]=M&255),P}function g(A){return a[A>>18&63]+a[A>>12&63]+a[A>>6&63]+a[A&63]}function c(A,M,R){for(var T,L=[],P=M;Pk?k:d+P));return T===1?(M=A[R-1],L.push(a[M>>2]+a[M<<4&63]+"==")):T===2&&(M=(A[R-2]<<8)+A[R-1],L.push(a[M>>10]+a[M>>4&63]+a[M<<2&63]+"=")),L.join("")}},3187:function(v,m){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */m.read=function(a,n,s,o,h){var f,u,b=h*8-o-1,p=(1<>1,g=-7,c=s?h-1:0,y=s?-1:1,A=a[n+c];for(c+=y,f=A&(1<<-g)-1,A>>=-g,g+=b;g>0;f=f*256+a[n+c],c+=y,g-=8);for(u=f&(1<<-g)-1,f>>=-g,g+=o;g>0;u=u*256+a[n+c],c+=y,g-=8);if(f===0)f=1-E;else{if(f===p)return u?NaN:(A?-1:1)*(1/0);u=u+Math.pow(2,o),f=f-E}return(A?-1:1)*u*Math.pow(2,f-o)},m.write=function(a,n,s,o,h,f){var u,b,p,E=f*8-h-1,g=(1<>1,y=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=o?0:f-1,M=o?1:-1,R=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(b=isNaN(n)?1:0,u=g):(u=Math.floor(Math.log(n)/Math.LN2),n*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+c>=1?n+=y/p:n+=y*Math.pow(2,1-c),n*p>=2&&(u++,p/=2),u+c>=g?(b=0,u=g):u+c>=1?(b=(n*p-1)*Math.pow(2,h),u=u+c):(b=n*Math.pow(2,c-1)*Math.pow(2,h),u=0));h>=8;a[s+A]=b&255,A+=M,b/=256,h-=8);for(u=u<0;a[s+A]=u&255,A+=M,u/=256,E-=8);a[s+A-M]|=R*128}},1152:function(v,m,a){v.exports=u;var n=a(3440),s=a(7774),o=a(9298);function h(b,p){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(E){return b[E]}),this._mode=p,this._active=b[p],this._active||(this._mode="turntable",this._active=b.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=h.prototype;f.flush=function(b){for(var p=this._controllerList,E=0;E"u"?a(5346):WeakMap,s=a(5827),o=a(2944),h=new n;function f(u){var b=h.get(u),p=b&&(b._triangleBuffer.handle||b._triangleBuffer.buffer);if(!p||!u.isBuffer(p)){var E=s(u,new Float32Array([-1,-1,-1,4,4,-1]));b=o(u,[{buffer:E,type:u.FLOAT,size:2}]),b._triangleBuffer=E,h.set(u,b)}b.bind(),u.drawArrays(u.TRIANGLES,0,3),b.unbind()}v.exports=f},8008:function(v,m,a){var n=a(4930);v.exports=s;function s(o,h,f){h=typeof h=="number"?h:1,f=f||": ";var u=o.split(/\r?\n/),b=String(u.length+h-1).length;return u.map(function(p,E){var g=E+h,c=String(g).length,y=n(g,b-c);return y+f+p}).join(` +`)}},2153:function(v,m,a){v.exports=o;var n=a(417);function s(h,f){for(var u=new Array(f+1),b=0;b0?c=c.ushln(g):g<0&&(y=y.ushln(-g)),f(c,y)}},234:function(v,m,a){var n=a(3218);v.exports=s;function s(o){return Array.isArray(o)&&o.length===2&&n(o[0])&&n(o[1])}},4275:function(v,m,a){var n=a(1928);v.exports=s;function s(o){return o.cmp(new n(0))}},9958:function(v,m,a){var n=a(4275);v.exports=s;function s(o){var h=o.length,f=o.words,u=0;if(h===1)u=f[0];else if(h===2)u=f[0]+f[1]*67108864;else for(var b=0;b20?52:u+32}},3218:function(v,m,a){a(1928),v.exports=n;function n(s){return s&&typeof s=="object"&&!!s.words}},5514:function(v,m,a){var n=a(1928),s=a(8362);v.exports=o;function o(h){var f=s.exponent(h);return f<52?new n(h):new n(h*Math.pow(2,52-f)).ushln(f-52)}},8524:function(v,m,a){var n=a(5514),s=a(4275);v.exports=o;function o(h,f){var u=s(h),b=s(f);if(u===0)return[n(0),n(1)];if(b===0)return[n(0),n(0)];b<0&&(h=h.neg(),f=f.neg());var p=h.gcd(f);return p.cmpn(1)?[h.div(p),f.div(p)]:[h,f]}},2813:function(v,m,a){var n=a(1928);v.exports=s;function s(o){return new n(o)}},3962:function(v,m,a){var n=a(8524);v.exports=s;function s(o,h){return n(o[0].mul(h[0]),o[1].mul(h[1]))}},4951:function(v,m,a){var n=a(4275);v.exports=s;function s(o){return n(o[0])*n(o[1])}},4354:function(v,m,a){var n=a(8524);v.exports=s;function s(o,h){return n(o[0].mul(h[1]).sub(o[1].mul(h[0])),o[1].mul(h[1]))}},7999:function(v,m,a){var n=a(9958),s=a(1112);v.exports=o;function o(h){var f=h[0],u=h[1];if(f.cmpn(0)===0)return 0;var b=f.abs().divmod(u.abs()),p=b.div,E=n(p),g=b.mod,c=f.negative!==u.negative?-1:1;if(g.cmpn(0)===0)return c*E;if(E){var y=s(E)+4,A=n(g.ushln(y).divRound(u));return c*(E+A*Math.pow(2,-y))}else{var M=u.bitLength()-g.bitLength()+53,A=n(g.ushln(M).divRound(u));return M<1023?c*A*Math.pow(2,-M):(A*=Math.pow(2,-1023),c*A*Math.pow(2,1023-M))}}},5070:function(v){function m(f,u,b,p,E){for(var g=E+1;p<=E;){var c=p+E>>>1,y=f[c],A=b!==void 0?b(y,u):y-u;A>=0?(g=c,E=c-1):p=c+1}return g}function a(f,u,b,p,E){for(var g=E+1;p<=E;){var c=p+E>>>1,y=f[c],A=b!==void 0?b(y,u):y-u;A>0?(g=c,E=c-1):p=c+1}return g}function n(f,u,b,p,E){for(var g=p-1;p<=E;){var c=p+E>>>1,y=f[c],A=b!==void 0?b(y,u):y-u;A<0?(g=c,p=c+1):E=c-1}return g}function s(f,u,b,p,E){for(var g=p-1;p<=E;){var c=p+E>>>1,y=f[c],A=b!==void 0?b(y,u):y-u;A<=0?(g=c,p=c+1):E=c-1}return g}function o(f,u,b,p,E){for(;p<=E;){var g=p+E>>>1,c=f[g],y=b!==void 0?b(c,u):c-u;if(y===0)return g;y<=0?p=g+1:E=g-1}return-1}function h(f,u,b,p,E,g){return typeof b=="function"?g(f,u,b,p===void 0?0:p|0,E===void 0?f.length-1:E|0):g(f,u,void 0,b===void 0?0:b|0,p===void 0?f.length-1:p|0)}v.exports={ge:function(f,u,b,p,E){return h(f,u,b,p,E,m)},gt:function(f,u,b,p,E){return h(f,u,b,p,E,a)},lt:function(f,u,b,p,E){return h(f,u,b,p,E,n)},le:function(f,u,b,p,E){return h(f,u,b,p,E,s)},eq:function(f,u,b,p,E){return h(f,u,b,p,E,o)}}},2288:function(v,m){"use restrict";var a=32;m.INT_BITS=a,m.INT_MAX=2147483647,m.INT_MIN=-1<0)-(o<0)},m.abs=function(o){var h=o>>a-1;return(o^h)-h},m.min=function(o,h){return h^(o^h)&-(o65535)<<4,o>>>=h,f=(o>255)<<3,o>>>=f,h|=f,f=(o>15)<<2,o>>>=f,h|=f,f=(o>3)<<1,o>>>=f,h|=f,h|o>>1},m.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},m.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function n(o){var h=32;return o&=-o,o&&h--,o&65535&&(h-=16),o&16711935&&(h-=8),o&252645135&&(h-=4),o&858993459&&(h-=2),o&1431655765&&(h-=1),h}m.countTrailingZeros=n,m.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},m.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},m.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var s=new Array(256);(function(o){for(var h=0;h<256;++h){var f=h,u=h,b=7;for(f>>>=1;f;f>>>=1)u<<=1,u|=f&1,--b;o[h]=u<>>8&255]<<16|s[o>>>16&255]<<8|s[o>>>24&255]},m.interleave2=function(o,h){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,h&=65535,h=(h|h<<8)&16711935,h=(h|h<<4)&252645135,h=(h|h<<2)&858993459,h=(h|h<<1)&1431655765,o|h<<1},m.deinterleave2=function(o,h){return o=o>>>h&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},m.interleave3=function(o,h,f){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,o|=h<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,o|f<<2},m.deinterleave3=function(o,h){return o=o>>>h&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},m.nextCombination=function(o){var h=o|o-1;return h+1|(~h&-~h)-1>>>n(o)+1}},1928:function(v,m,a){v=a.nmd(v),function(n,s){function o(W,V){if(!W)throw new Error(V||"Assertion failed")}function h(W,V){W.super_=V;var $=function(){};$.prototype=V.prototype,W.prototype=new $,W.prototype.constructor=W}function f(W,V,$){if(f.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&((V==="le"||V==="be")&&($=V,V=10),this._init(W||0,V||10,$||"be"))}typeof n=="object"?n.exports=f:s.BN=f,f.BN=f,f.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=a(6601).Buffer}catch{}f.isBN=function(V){return V instanceof f?!0:V!==null&&typeof V=="object"&&V.constructor.wordSize===f.wordSize&&Array.isArray(V.words)},f.max=function(V,$){return V.cmp($)>0?V:$},f.min=function(V,$){return V.cmp($)<0?V:$},f.prototype._init=function(V,$,Z){if(typeof V=="number")return this._initNumber(V,$,Z);if(typeof V=="object")return this._initArray(V,$,Z);$==="hex"&&($=16),o($===($|0)&&$>=2&&$<=36),V=V.toString().replace(/\s+/g,"");var q=0;V[0]==="-"&&(q++,this.negative=1),q=0;q-=3)ie=V[q]|V[q-1]<<8|V[q-2]<<16,this.words[ae]|=ie<>>26-fe&67108863,fe+=24,fe>=26&&(fe-=26,ae++);else if(Z==="le")for(q=0,ae=0;q>>26-fe&67108863,fe+=24,fe>=26&&(fe-=26,ae++);return this.strip()};function b(W,V){var $=W.charCodeAt(V);return $>=65&&$<=70?$-55:$>=97&&$<=102?$-87:$-48&15}function p(W,V,$){var Z=b(W,$);return $-1>=V&&(Z|=b(W,$-1)<<4),Z}f.prototype._parseHex=function(V,$,Z){this.length=Math.ceil((V.length-$)/6),this.words=new Array(this.length);for(var q=0;q=$;q-=2)fe=p(V,$,q)<=18?(ae-=18,ie+=1,this.words[ie]|=fe>>>26):ae+=8;else{var Q=V.length-$;for(q=Q%2===0?$+1:$;q=18?(ae-=18,ie+=1,this.words[ie]|=fe>>>26):ae+=8}this.strip()};function E(W,V,$,Z){for(var q=0,ae=Math.min(W.length,$),ie=V;ie=49?q+=fe-49+10:fe>=17?q+=fe-17+10:q+=fe}return q}f.prototype._parseBase=function(V,$,Z){this.words=[0],this.length=1;for(var q=0,ae=1;ae<=67108863;ae*=$)q++;q--,ae=ae/$|0;for(var ie=V.length-Z,fe=ie%q,Q=Math.min(ie,ie-fe)+Z,J=0,oe=Z;oe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(V,$){V=V||10,$=$|0||1;var Z;if(V===16||V==="hex"){Z="";for(var q=0,ae=0,ie=0;ie>>24-q&16777215,ae!==0||ie!==this.length-1?Z=g[6-Q.length]+Q+Z:Z=Q+Z,q+=2,q>=26&&(q-=26,ie--)}for(ae!==0&&(Z=ae.toString(16)+Z);Z.length%$!==0;)Z="0"+Z;return this.negative!==0&&(Z="-"+Z),Z}if(V===(V|0)&&V>=2&&V<=36){var J=c[V],oe=y[V];Z="";var K=this.clone();for(K.negative=0;!K.isZero();){var ne=K.modn(oe).toString(V);K=K.idivn(oe),K.isZero()?Z=ne+Z:Z=g[J-ne.length]+ne+Z}for(this.isZero()&&(Z="0"+Z);Z.length%$!==0;)Z="0"+Z;return this.negative!==0&&(Z="-"+Z),Z}o(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var V=this.words[0];return this.length===2?V+=this.words[1]*67108864:this.length===3&&this.words[2]===1?V+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-V:V},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(V,$){return o(typeof u<"u"),this.toArrayLike(u,V,$)},f.prototype.toArray=function(V,$){return this.toArrayLike(Array,V,$)},f.prototype.toArrayLike=function(V,$,Z){var q=this.byteLength(),ae=Z||Math.max(1,q);o(q<=ae,"byte array longer than desired length"),o(ae>0,"Requested array length <= 0"),this.strip();var ie=$==="le",fe=new V(ae),Q,J,oe=this.clone();if(ie){for(J=0;!oe.isZero();J++)Q=oe.andln(255),oe.iushrn(8),fe[J]=Q;for(;J=4096&&(Z+=13,$>>>=13),$>=64&&(Z+=7,$>>>=7),$>=8&&(Z+=4,$>>>=4),$>=2&&(Z+=2,$>>>=2),Z+$},f.prototype._zeroBits=function(V){if(V===0)return 26;var $=V,Z=0;return $&8191||(Z+=13,$>>>=13),$&127||(Z+=7,$>>>=7),$&15||(Z+=4,$>>>=4),$&3||(Z+=2,$>>>=2),$&1||Z++,Z},f.prototype.bitLength=function(){var V=this.words[this.length-1],$=this._countBits(V);return(this.length-1)*26+$};function A(W){for(var V=new Array(W.bitLength()),$=0;$>>q}return V}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var V=0,$=0;$V.length?this.clone().ior(V):V.clone().ior(this)},f.prototype.uor=function(V){return this.length>V.length?this.clone().iuor(V):V.clone().iuor(this)},f.prototype.iuand=function(V){var $;this.length>V.length?$=V:$=this;for(var Z=0;Z<$.length;Z++)this.words[Z]=this.words[Z]&V.words[Z];return this.length=$.length,this.strip()},f.prototype.iand=function(V){return o((this.negative|V.negative)===0),this.iuand(V)},f.prototype.and=function(V){return this.length>V.length?this.clone().iand(V):V.clone().iand(this)},f.prototype.uand=function(V){return this.length>V.length?this.clone().iuand(V):V.clone().iuand(this)},f.prototype.iuxor=function(V){var $,Z;this.length>V.length?($=this,Z=V):($=V,Z=this);for(var q=0;qV.length?this.clone().ixor(V):V.clone().ixor(this)},f.prototype.uxor=function(V){return this.length>V.length?this.clone().iuxor(V):V.clone().iuxor(this)},f.prototype.inotn=function(V){o(typeof V=="number"&&V>=0);var $=Math.ceil(V/26)|0,Z=V%26;this._expand($),Z>0&&$--;for(var q=0;q<$;q++)this.words[q]=~this.words[q]&67108863;return Z>0&&(this.words[q]=~this.words[q]&67108863>>26-Z),this.strip()},f.prototype.notn=function(V){return this.clone().inotn(V)},f.prototype.setn=function(V,$){o(typeof V=="number"&&V>=0);var Z=V/26|0,q=V%26;return this._expand(Z+1),$?this.words[Z]=this.words[Z]|1<V.length?(Z=this,q=V):(Z=V,q=this);for(var ae=0,ie=0;ie>>26;for(;ae!==0&&ie>>26;if(this.length=Z.length,ae!==0)this.words[this.length]=ae,this.length++;else if(Z!==this)for(;ieV.length?this.clone().iadd(V):V.clone().iadd(this)},f.prototype.isub=function(V){if(V.negative!==0){V.negative=0;var $=this.iadd(V);return V.negative=1,$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(V),this.negative=1,this._normSign();var Z=this.cmp(V);if(Z===0)return this.negative=0,this.length=1,this.words[0]=0,this;var q,ae;Z>0?(q=this,ae=V):(q=V,ae=this);for(var ie=0,fe=0;fe>26,this.words[fe]=$&67108863;for(;ie!==0&&fe>26,this.words[fe]=$&67108863;if(ie===0&&fe>>26,K=Q&67108863,ne=Math.min(J,V.length-1),ce=Math.max(0,J-W.length+1);ce<=ne;ce++){var re=J-ce|0;q=W.words[re]|0,ae=V.words[ce]|0,ie=q*ae+K,oe+=ie/67108864|0,K=ie&67108863}$.words[J]=K|0,Q=oe|0}return Q!==0?$.words[J]=Q|0:$.length--,$.strip()}var R=function(V,$,Z){var q=V.words,ae=$.words,ie=Z.words,fe=0,Q,J,oe,K=q[0]|0,ne=K&8191,ce=K>>>13,re=q[1]|0,ee=re&8191,de=re>>>13,le=q[2]|0,he=le&8191,xe=le>>>13,Ee=q[3]|0,Se=Ee&8191,ke=Ee>>>13,Te=q[4]|0,Ae=Te&8191,be=Te>>>13,Ie=q[5]|0,Ue=Ie&8191,Ne=Ie>>>13,ze=q[6]|0,$e=ze&8191,st=ze>>>13,vt=q[7]|0,at=vt&8191,nt=vt>>>13,mt=q[8]|0,rt=mt&8191,lt=mt>>>13,dt=q[9]|0,wt=dt&8191,et=dt>>>13,Be=ae[0]|0,Ye=Be&8191,Ze=Be>>>13,We=ae[1]|0,Fe=We&8191,Me=We>>>13,we=ae[2]|0,Re=we&8191,Pe=we>>>13,Ve=ae[3]|0,Je=Ve&8191,ot=Ve>>>13,yt=ae[4]|0,ut=yt&8191,It=yt>>>13,Vt=ae[5]|0,xt=Vt&8191,Lt=Vt>>>13,Xt=ae[6]|0,dr=Xt&8191,Tt=Xt>>>13,Kt=ae[7]|0,qt=Kt&8191,br=Kt>>>13,sr=ae[8]|0,Ct=sr&8191,ht=sr>>>13,Mt=ae[9]|0,Rt=Mt&8191,zt=Mt>>>13;Z.negative=V.negative^$.negative,Z.length=19,Q=Math.imul(ne,Ye),J=Math.imul(ne,Ze),J=J+Math.imul(ce,Ye)|0,oe=Math.imul(ce,Ze);var Ft=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,Q=Math.imul(ee,Ye),J=Math.imul(ee,Ze),J=J+Math.imul(de,Ye)|0,oe=Math.imul(de,Ze),Q=Q+Math.imul(ne,Fe)|0,J=J+Math.imul(ne,Me)|0,J=J+Math.imul(ce,Fe)|0,oe=oe+Math.imul(ce,Me)|0;var Wt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,Q=Math.imul(he,Ye),J=Math.imul(he,Ze),J=J+Math.imul(xe,Ye)|0,oe=Math.imul(xe,Ze),Q=Q+Math.imul(ee,Fe)|0,J=J+Math.imul(ee,Me)|0,J=J+Math.imul(de,Fe)|0,oe=oe+Math.imul(de,Me)|0,Q=Q+Math.imul(ne,Re)|0,J=J+Math.imul(ne,Pe)|0,J=J+Math.imul(ce,Re)|0,oe=oe+Math.imul(ce,Pe)|0;var jt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(jt>>>26)|0,jt&=67108863,Q=Math.imul(Se,Ye),J=Math.imul(Se,Ze),J=J+Math.imul(ke,Ye)|0,oe=Math.imul(ke,Ze),Q=Q+Math.imul(he,Fe)|0,J=J+Math.imul(he,Me)|0,J=J+Math.imul(xe,Fe)|0,oe=oe+Math.imul(xe,Me)|0,Q=Q+Math.imul(ee,Re)|0,J=J+Math.imul(ee,Pe)|0,J=J+Math.imul(de,Re)|0,oe=oe+Math.imul(de,Pe)|0,Q=Q+Math.imul(ne,Je)|0,J=J+Math.imul(ne,ot)|0,J=J+Math.imul(ce,Je)|0,oe=oe+Math.imul(ce,ot)|0;var er=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(er>>>26)|0,er&=67108863,Q=Math.imul(Ae,Ye),J=Math.imul(Ae,Ze),J=J+Math.imul(be,Ye)|0,oe=Math.imul(be,Ze),Q=Q+Math.imul(Se,Fe)|0,J=J+Math.imul(Se,Me)|0,J=J+Math.imul(ke,Fe)|0,oe=oe+Math.imul(ke,Me)|0,Q=Q+Math.imul(he,Re)|0,J=J+Math.imul(he,Pe)|0,J=J+Math.imul(xe,Re)|0,oe=oe+Math.imul(xe,Pe)|0,Q=Q+Math.imul(ee,Je)|0,J=J+Math.imul(ee,ot)|0,J=J+Math.imul(de,Je)|0,oe=oe+Math.imul(de,ot)|0,Q=Q+Math.imul(ne,ut)|0,J=J+Math.imul(ne,It)|0,J=J+Math.imul(ce,ut)|0,oe=oe+Math.imul(ce,It)|0;var hr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(hr>>>26)|0,hr&=67108863,Q=Math.imul(Ue,Ye),J=Math.imul(Ue,Ze),J=J+Math.imul(Ne,Ye)|0,oe=Math.imul(Ne,Ze),Q=Q+Math.imul(Ae,Fe)|0,J=J+Math.imul(Ae,Me)|0,J=J+Math.imul(be,Fe)|0,oe=oe+Math.imul(be,Me)|0,Q=Q+Math.imul(Se,Re)|0,J=J+Math.imul(Se,Pe)|0,J=J+Math.imul(ke,Re)|0,oe=oe+Math.imul(ke,Pe)|0,Q=Q+Math.imul(he,Je)|0,J=J+Math.imul(he,ot)|0,J=J+Math.imul(xe,Je)|0,oe=oe+Math.imul(xe,ot)|0,Q=Q+Math.imul(ee,ut)|0,J=J+Math.imul(ee,It)|0,J=J+Math.imul(de,ut)|0,oe=oe+Math.imul(de,It)|0,Q=Q+Math.imul(ne,xt)|0,J=J+Math.imul(ne,Lt)|0,J=J+Math.imul(ce,xt)|0,oe=oe+Math.imul(ce,Lt)|0;var vr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(vr>>>26)|0,vr&=67108863,Q=Math.imul($e,Ye),J=Math.imul($e,Ze),J=J+Math.imul(st,Ye)|0,oe=Math.imul(st,Ze),Q=Q+Math.imul(Ue,Fe)|0,J=J+Math.imul(Ue,Me)|0,J=J+Math.imul(Ne,Fe)|0,oe=oe+Math.imul(Ne,Me)|0,Q=Q+Math.imul(Ae,Re)|0,J=J+Math.imul(Ae,Pe)|0,J=J+Math.imul(be,Re)|0,oe=oe+Math.imul(be,Pe)|0,Q=Q+Math.imul(Se,Je)|0,J=J+Math.imul(Se,ot)|0,J=J+Math.imul(ke,Je)|0,oe=oe+Math.imul(ke,ot)|0,Q=Q+Math.imul(he,ut)|0,J=J+Math.imul(he,It)|0,J=J+Math.imul(xe,ut)|0,oe=oe+Math.imul(xe,It)|0,Q=Q+Math.imul(ee,xt)|0,J=J+Math.imul(ee,Lt)|0,J=J+Math.imul(de,xt)|0,oe=oe+Math.imul(de,Lt)|0,Q=Q+Math.imul(ne,dr)|0,J=J+Math.imul(ne,Tt)|0,J=J+Math.imul(ce,dr)|0,oe=oe+Math.imul(ce,Tt)|0;var pr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(pr>>>26)|0,pr&=67108863,Q=Math.imul(at,Ye),J=Math.imul(at,Ze),J=J+Math.imul(nt,Ye)|0,oe=Math.imul(nt,Ze),Q=Q+Math.imul($e,Fe)|0,J=J+Math.imul($e,Me)|0,J=J+Math.imul(st,Fe)|0,oe=oe+Math.imul(st,Me)|0,Q=Q+Math.imul(Ue,Re)|0,J=J+Math.imul(Ue,Pe)|0,J=J+Math.imul(Ne,Re)|0,oe=oe+Math.imul(Ne,Pe)|0,Q=Q+Math.imul(Ae,Je)|0,J=J+Math.imul(Ae,ot)|0,J=J+Math.imul(be,Je)|0,oe=oe+Math.imul(be,ot)|0,Q=Q+Math.imul(Se,ut)|0,J=J+Math.imul(Se,It)|0,J=J+Math.imul(ke,ut)|0,oe=oe+Math.imul(ke,It)|0,Q=Q+Math.imul(he,xt)|0,J=J+Math.imul(he,Lt)|0,J=J+Math.imul(xe,xt)|0,oe=oe+Math.imul(xe,Lt)|0,Q=Q+Math.imul(ee,dr)|0,J=J+Math.imul(ee,Tt)|0,J=J+Math.imul(de,dr)|0,oe=oe+Math.imul(de,Tt)|0,Q=Q+Math.imul(ne,qt)|0,J=J+Math.imul(ne,br)|0,J=J+Math.imul(ce,qt)|0,oe=oe+Math.imul(ce,br)|0;var Ke=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,Q=Math.imul(rt,Ye),J=Math.imul(rt,Ze),J=J+Math.imul(lt,Ye)|0,oe=Math.imul(lt,Ze),Q=Q+Math.imul(at,Fe)|0,J=J+Math.imul(at,Me)|0,J=J+Math.imul(nt,Fe)|0,oe=oe+Math.imul(nt,Me)|0,Q=Q+Math.imul($e,Re)|0,J=J+Math.imul($e,Pe)|0,J=J+Math.imul(st,Re)|0,oe=oe+Math.imul(st,Pe)|0,Q=Q+Math.imul(Ue,Je)|0,J=J+Math.imul(Ue,ot)|0,J=J+Math.imul(Ne,Je)|0,oe=oe+Math.imul(Ne,ot)|0,Q=Q+Math.imul(Ae,ut)|0,J=J+Math.imul(Ae,It)|0,J=J+Math.imul(be,ut)|0,oe=oe+Math.imul(be,It)|0,Q=Q+Math.imul(Se,xt)|0,J=J+Math.imul(Se,Lt)|0,J=J+Math.imul(ke,xt)|0,oe=oe+Math.imul(ke,Lt)|0,Q=Q+Math.imul(he,dr)|0,J=J+Math.imul(he,Tt)|0,J=J+Math.imul(xe,dr)|0,oe=oe+Math.imul(xe,Tt)|0,Q=Q+Math.imul(ee,qt)|0,J=J+Math.imul(ee,br)|0,J=J+Math.imul(de,qt)|0,oe=oe+Math.imul(de,br)|0,Q=Q+Math.imul(ne,Ct)|0,J=J+Math.imul(ne,ht)|0,J=J+Math.imul(ce,Ct)|0,oe=oe+Math.imul(ce,ht)|0;var Xe=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Q=Math.imul(wt,Ye),J=Math.imul(wt,Ze),J=J+Math.imul(et,Ye)|0,oe=Math.imul(et,Ze),Q=Q+Math.imul(rt,Fe)|0,J=J+Math.imul(rt,Me)|0,J=J+Math.imul(lt,Fe)|0,oe=oe+Math.imul(lt,Me)|0,Q=Q+Math.imul(at,Re)|0,J=J+Math.imul(at,Pe)|0,J=J+Math.imul(nt,Re)|0,oe=oe+Math.imul(nt,Pe)|0,Q=Q+Math.imul($e,Je)|0,J=J+Math.imul($e,ot)|0,J=J+Math.imul(st,Je)|0,oe=oe+Math.imul(st,ot)|0,Q=Q+Math.imul(Ue,ut)|0,J=J+Math.imul(Ue,It)|0,J=J+Math.imul(Ne,ut)|0,oe=oe+Math.imul(Ne,It)|0,Q=Q+Math.imul(Ae,xt)|0,J=J+Math.imul(Ae,Lt)|0,J=J+Math.imul(be,xt)|0,oe=oe+Math.imul(be,Lt)|0,Q=Q+Math.imul(Se,dr)|0,J=J+Math.imul(Se,Tt)|0,J=J+Math.imul(ke,dr)|0,oe=oe+Math.imul(ke,Tt)|0,Q=Q+Math.imul(he,qt)|0,J=J+Math.imul(he,br)|0,J=J+Math.imul(xe,qt)|0,oe=oe+Math.imul(xe,br)|0,Q=Q+Math.imul(ee,Ct)|0,J=J+Math.imul(ee,ht)|0,J=J+Math.imul(de,Ct)|0,oe=oe+Math.imul(de,ht)|0,Q=Q+Math.imul(ne,Rt)|0,J=J+Math.imul(ne,zt)|0,J=J+Math.imul(ce,Rt)|0,oe=oe+Math.imul(ce,zt)|0;var Ut=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,Q=Math.imul(wt,Fe),J=Math.imul(wt,Me),J=J+Math.imul(et,Fe)|0,oe=Math.imul(et,Me),Q=Q+Math.imul(rt,Re)|0,J=J+Math.imul(rt,Pe)|0,J=J+Math.imul(lt,Re)|0,oe=oe+Math.imul(lt,Pe)|0,Q=Q+Math.imul(at,Je)|0,J=J+Math.imul(at,ot)|0,J=J+Math.imul(nt,Je)|0,oe=oe+Math.imul(nt,ot)|0,Q=Q+Math.imul($e,ut)|0,J=J+Math.imul($e,It)|0,J=J+Math.imul(st,ut)|0,oe=oe+Math.imul(st,It)|0,Q=Q+Math.imul(Ue,xt)|0,J=J+Math.imul(Ue,Lt)|0,J=J+Math.imul(Ne,xt)|0,oe=oe+Math.imul(Ne,Lt)|0,Q=Q+Math.imul(Ae,dr)|0,J=J+Math.imul(Ae,Tt)|0,J=J+Math.imul(be,dr)|0,oe=oe+Math.imul(be,Tt)|0,Q=Q+Math.imul(Se,qt)|0,J=J+Math.imul(Se,br)|0,J=J+Math.imul(ke,qt)|0,oe=oe+Math.imul(ke,br)|0,Q=Q+Math.imul(he,Ct)|0,J=J+Math.imul(he,ht)|0,J=J+Math.imul(xe,Ct)|0,oe=oe+Math.imul(xe,ht)|0,Q=Q+Math.imul(ee,Rt)|0,J=J+Math.imul(ee,zt)|0,J=J+Math.imul(de,Rt)|0,oe=oe+Math.imul(de,zt)|0;var Bt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,Q=Math.imul(wt,Re),J=Math.imul(wt,Pe),J=J+Math.imul(et,Re)|0,oe=Math.imul(et,Pe),Q=Q+Math.imul(rt,Je)|0,J=J+Math.imul(rt,ot)|0,J=J+Math.imul(lt,Je)|0,oe=oe+Math.imul(lt,ot)|0,Q=Q+Math.imul(at,ut)|0,J=J+Math.imul(at,It)|0,J=J+Math.imul(nt,ut)|0,oe=oe+Math.imul(nt,It)|0,Q=Q+Math.imul($e,xt)|0,J=J+Math.imul($e,Lt)|0,J=J+Math.imul(st,xt)|0,oe=oe+Math.imul(st,Lt)|0,Q=Q+Math.imul(Ue,dr)|0,J=J+Math.imul(Ue,Tt)|0,J=J+Math.imul(Ne,dr)|0,oe=oe+Math.imul(Ne,Tt)|0,Q=Q+Math.imul(Ae,qt)|0,J=J+Math.imul(Ae,br)|0,J=J+Math.imul(be,qt)|0,oe=oe+Math.imul(be,br)|0,Q=Q+Math.imul(Se,Ct)|0,J=J+Math.imul(Se,ht)|0,J=J+Math.imul(ke,Ct)|0,oe=oe+Math.imul(ke,ht)|0,Q=Q+Math.imul(he,Rt)|0,J=J+Math.imul(he,zt)|0,J=J+Math.imul(xe,Rt)|0,oe=oe+Math.imul(xe,zt)|0;var Qt=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,Q=Math.imul(wt,Je),J=Math.imul(wt,ot),J=J+Math.imul(et,Je)|0,oe=Math.imul(et,ot),Q=Q+Math.imul(rt,ut)|0,J=J+Math.imul(rt,It)|0,J=J+Math.imul(lt,ut)|0,oe=oe+Math.imul(lt,It)|0,Q=Q+Math.imul(at,xt)|0,J=J+Math.imul(at,Lt)|0,J=J+Math.imul(nt,xt)|0,oe=oe+Math.imul(nt,Lt)|0,Q=Q+Math.imul($e,dr)|0,J=J+Math.imul($e,Tt)|0,J=J+Math.imul(st,dr)|0,oe=oe+Math.imul(st,Tt)|0,Q=Q+Math.imul(Ue,qt)|0,J=J+Math.imul(Ue,br)|0,J=J+Math.imul(Ne,qt)|0,oe=oe+Math.imul(Ne,br)|0,Q=Q+Math.imul(Ae,Ct)|0,J=J+Math.imul(Ae,ht)|0,J=J+Math.imul(be,Ct)|0,oe=oe+Math.imul(be,ht)|0,Q=Q+Math.imul(Se,Rt)|0,J=J+Math.imul(Se,zt)|0,J=J+Math.imul(ke,Rt)|0,oe=oe+Math.imul(ke,zt)|0;var or=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(or>>>26)|0,or&=67108863,Q=Math.imul(wt,ut),J=Math.imul(wt,It),J=J+Math.imul(et,ut)|0,oe=Math.imul(et,It),Q=Q+Math.imul(rt,xt)|0,J=J+Math.imul(rt,Lt)|0,J=J+Math.imul(lt,xt)|0,oe=oe+Math.imul(lt,Lt)|0,Q=Q+Math.imul(at,dr)|0,J=J+Math.imul(at,Tt)|0,J=J+Math.imul(nt,dr)|0,oe=oe+Math.imul(nt,Tt)|0,Q=Q+Math.imul($e,qt)|0,J=J+Math.imul($e,br)|0,J=J+Math.imul(st,qt)|0,oe=oe+Math.imul(st,br)|0,Q=Q+Math.imul(Ue,Ct)|0,J=J+Math.imul(Ue,ht)|0,J=J+Math.imul(Ne,Ct)|0,oe=oe+Math.imul(Ne,ht)|0,Q=Q+Math.imul(Ae,Rt)|0,J=J+Math.imul(Ae,zt)|0,J=J+Math.imul(be,Rt)|0,oe=oe+Math.imul(be,zt)|0;var fr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(fr>>>26)|0,fr&=67108863,Q=Math.imul(wt,xt),J=Math.imul(wt,Lt),J=J+Math.imul(et,xt)|0,oe=Math.imul(et,Lt),Q=Q+Math.imul(rt,dr)|0,J=J+Math.imul(rt,Tt)|0,J=J+Math.imul(lt,dr)|0,oe=oe+Math.imul(lt,Tt)|0,Q=Q+Math.imul(at,qt)|0,J=J+Math.imul(at,br)|0,J=J+Math.imul(nt,qt)|0,oe=oe+Math.imul(nt,br)|0,Q=Q+Math.imul($e,Ct)|0,J=J+Math.imul($e,ht)|0,J=J+Math.imul(st,Ct)|0,oe=oe+Math.imul(st,ht)|0,Q=Q+Math.imul(Ue,Rt)|0,J=J+Math.imul(Ue,zt)|0,J=J+Math.imul(Ne,Rt)|0,oe=oe+Math.imul(Ne,zt)|0;var ar=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(ar>>>26)|0,ar&=67108863,Q=Math.imul(wt,dr),J=Math.imul(wt,Tt),J=J+Math.imul(et,dr)|0,oe=Math.imul(et,Tt),Q=Q+Math.imul(rt,qt)|0,J=J+Math.imul(rt,br)|0,J=J+Math.imul(lt,qt)|0,oe=oe+Math.imul(lt,br)|0,Q=Q+Math.imul(at,Ct)|0,J=J+Math.imul(at,ht)|0,J=J+Math.imul(nt,Ct)|0,oe=oe+Math.imul(nt,ht)|0,Q=Q+Math.imul($e,Rt)|0,J=J+Math.imul($e,zt)|0,J=J+Math.imul(st,Rt)|0,oe=oe+Math.imul(st,zt)|0;var Ht=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,Q=Math.imul(wt,qt),J=Math.imul(wt,br),J=J+Math.imul(et,qt)|0,oe=Math.imul(et,br),Q=Q+Math.imul(rt,Ct)|0,J=J+Math.imul(rt,ht)|0,J=J+Math.imul(lt,Ct)|0,oe=oe+Math.imul(lt,ht)|0,Q=Q+Math.imul(at,Rt)|0,J=J+Math.imul(at,zt)|0,J=J+Math.imul(nt,Rt)|0,oe=oe+Math.imul(nt,zt)|0;var mr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(mr>>>26)|0,mr&=67108863,Q=Math.imul(wt,Ct),J=Math.imul(wt,ht),J=J+Math.imul(et,Ct)|0,oe=Math.imul(et,ht),Q=Q+Math.imul(rt,Rt)|0,J=J+Math.imul(rt,zt)|0,J=J+Math.imul(lt,Rt)|0,oe=oe+Math.imul(lt,zt)|0;var wr=(fe+Q|0)+((J&8191)<<13)|0;fe=(oe+(J>>>13)|0)+(wr>>>26)|0,wr&=67108863,Q=Math.imul(wt,Rt),J=Math.imul(wt,zt),J=J+Math.imul(et,Rt)|0,oe=Math.imul(et,zt);var Sr=(fe+Q|0)+((J&8191)<<13)|0;return fe=(oe+(J>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,ie[0]=Ft,ie[1]=Wt,ie[2]=jt,ie[3]=er,ie[4]=hr,ie[5]=vr,ie[6]=pr,ie[7]=Ke,ie[8]=Xe,ie[9]=Ut,ie[10]=Bt,ie[11]=Qt,ie[12]=or,ie[13]=fr,ie[14]=ar,ie[15]=Ht,ie[16]=mr,ie[17]=wr,ie[18]=Sr,fe!==0&&(ie[19]=fe,Z.length++),Z};Math.imul||(R=M);function T(W,V,$){$.negative=V.negative^W.negative,$.length=W.length+V.length;for(var Z=0,q=0,ae=0;ae<$.length-1;ae++){var ie=q;q=0;for(var fe=Z&67108863,Q=Math.min(ae,V.length-1),J=Math.max(0,ae-W.length+1);J<=Q;J++){var oe=ae-J,K=W.words[oe]|0,ne=V.words[J]|0,ce=K*ne,re=ce&67108863;ie=ie+(ce/67108864|0)|0,re=re+fe|0,fe=re&67108863,ie=ie+(re>>>26)|0,q+=ie>>>26,ie&=67108863}$.words[ae]=fe,Z=ie,ie=q}return Z!==0?$.words[ae]=Z:$.length--,$.strip()}function L(W,V,$){var Z=new P;return Z.mulp(W,V,$)}f.prototype.mulTo=function(V,$){var Z,q=this.length+V.length;return this.length===10&&V.length===10?Z=R(this,V,$):q<63?Z=M(this,V,$):q<1024?Z=T(this,V,$):Z=L(this,V,$),Z};function P(W,V){this.x=W,this.y=V}P.prototype.makeRBT=function(V){for(var $=new Array(V),Z=f.prototype._countBits(V)-1,q=0;q>=1;return q},P.prototype.permute=function(V,$,Z,q,ae,ie){for(var fe=0;fe>>1)ae++;return 1<>>13,Z[2*ie+1]=ae&8191,ae=ae>>>13;for(ie=2*$;ie>=26,$+=q/67108864|0,$+=ae>>>26,this.words[Z]=ae&67108863}return $!==0&&(this.words[Z]=$,this.length++),this},f.prototype.muln=function(V){return this.clone().imuln(V)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(V){var $=A(V);if($.length===0)return new f(1);for(var Z=this,q=0;q<$.length&&$[q]===0;q++,Z=Z.sqr());if(++q<$.length)for(var ae=Z.sqr();q<$.length;q++,ae=ae.sqr())$[q]!==0&&(Z=Z.mul(ae));return Z},f.prototype.iushln=function(V){o(typeof V=="number"&&V>=0);var $=V%26,Z=(V-$)/26,q=67108863>>>26-$<<26-$,ae;if($!==0){var ie=0;for(ae=0;ae>>26-$}ie&&(this.words[ae]=ie,this.length++)}if(Z!==0){for(ae=this.length-1;ae>=0;ae--)this.words[ae+Z]=this.words[ae];for(ae=0;ae=0);var q;$?q=($-$%26)/26:q=0;var ae=V%26,ie=Math.min((V-ae)/26,this.length),fe=67108863^67108863>>>ae<ie)for(this.length-=ie,J=0;J=0&&(oe!==0||J>=q);J--){var K=this.words[J]|0;this.words[J]=oe<<26-ae|K>>>ae,oe=K&fe}return Q&&oe!==0&&(Q.words[Q.length++]=oe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(V,$,Z){return o(this.negative===0),this.iushrn(V,$,Z)},f.prototype.shln=function(V){return this.clone().ishln(V)},f.prototype.ushln=function(V){return this.clone().iushln(V)},f.prototype.shrn=function(V){return this.clone().ishrn(V)},f.prototype.ushrn=function(V){return this.clone().iushrn(V)},f.prototype.testn=function(V){o(typeof V=="number"&&V>=0);var $=V%26,Z=(V-$)/26,q=1<<$;if(this.length<=Z)return!1;var ae=this.words[Z];return!!(ae&q)},f.prototype.imaskn=function(V){o(typeof V=="number"&&V>=0);var $=V%26,Z=(V-$)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=Z)return this;if($!==0&&Z++,this.length=Math.min(Z,this.length),$!==0){var q=67108863^67108863>>>$<<$;this.words[this.length-1]&=q}return this.strip()},f.prototype.maskn=function(V){return this.clone().imaskn(V)},f.prototype.iaddn=function(V){return o(typeof V=="number"),o(V<67108864),V<0?this.isubn(-V):this.negative!==0?this.length===1&&(this.words[0]|0)=67108864;$++)this.words[$]-=67108864,$===this.length-1?this.words[$+1]=1:this.words[$+1]++;return this.length=Math.max(this.length,$+1),this},f.prototype.isubn=function(V){if(o(typeof V=="number"),o(V<67108864),V<0)return this.iaddn(-V);if(this.negative!==0)return this.negative=0,this.iaddn(V),this.negative=1,this;if(this.words[0]-=V,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var $=0;$>26)-(Q/67108864|0),this.words[ae+Z]=ie&67108863}for(;ae>26,this.words[ae+Z]=ie&67108863;if(fe===0)return this.strip();for(o(fe===-1),fe=0,ae=0;ae>26,this.words[ae]=ie&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(V,$){var Z=this.length-V.length,q=this.clone(),ae=V,ie=ae.words[ae.length-1]|0,fe=this._countBits(ie);Z=26-fe,Z!==0&&(ae=ae.ushln(Z),q.iushln(Z),ie=ae.words[ae.length-1]|0);var Q=q.length-ae.length,J;if($!=="mod"){J=new f(null),J.length=Q+1,J.words=new Array(J.length);for(var oe=0;oe=0;ne--){var ce=(q.words[ae.length+ne]|0)*67108864+(q.words[ae.length+ne-1]|0);for(ce=Math.min(ce/ie|0,67108863),q._ishlnsubmul(ae,ce,ne);q.negative!==0;)ce--,q.negative=0,q._ishlnsubmul(ae,1,ne),q.isZero()||(q.negative^=1);J&&(J.words[ne]=ce)}return J&&J.strip(),q.strip(),$!=="div"&&Z!==0&&q.iushrn(Z),{div:J||null,mod:q}},f.prototype.divmod=function(V,$,Z){if(o(!V.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var q,ae,ie;return this.negative!==0&&V.negative===0?(ie=this.neg().divmod(V,$),$!=="mod"&&(q=ie.div.neg()),$!=="div"&&(ae=ie.mod.neg(),Z&&ae.negative!==0&&ae.iadd(V)),{div:q,mod:ae}):this.negative===0&&V.negative!==0?(ie=this.divmod(V.neg(),$),$!=="mod"&&(q=ie.div.neg()),{div:q,mod:ie.mod}):this.negative&V.negative?(ie=this.neg().divmod(V.neg(),$),$!=="div"&&(ae=ie.mod.neg(),Z&&ae.negative!==0&&ae.isub(V)),{div:ie.div,mod:ae}):V.length>this.length||this.cmp(V)<0?{div:new f(0),mod:this}:V.length===1?$==="div"?{div:this.divn(V.words[0]),mod:null}:$==="mod"?{div:null,mod:new f(this.modn(V.words[0]))}:{div:this.divn(V.words[0]),mod:new f(this.modn(V.words[0]))}:this._wordDiv(V,$)},f.prototype.div=function(V){return this.divmod(V,"div",!1).div},f.prototype.mod=function(V){return this.divmod(V,"mod",!1).mod},f.prototype.umod=function(V){return this.divmod(V,"mod",!0).mod},f.prototype.divRound=function(V){var $=this.divmod(V);if($.mod.isZero())return $.div;var Z=$.div.negative!==0?$.mod.isub(V):$.mod,q=V.ushrn(1),ae=V.andln(1),ie=Z.cmp(q);return ie<0||ae===1&&ie===0?$.div:$.div.negative!==0?$.div.isubn(1):$.div.iaddn(1)},f.prototype.modn=function(V){o(V<=67108863);for(var $=(1<<26)%V,Z=0,q=this.length-1;q>=0;q--)Z=($*Z+(this.words[q]|0))%V;return Z},f.prototype.idivn=function(V){o(V<=67108863);for(var $=0,Z=this.length-1;Z>=0;Z--){var q=(this.words[Z]|0)+$*67108864;this.words[Z]=q/V|0,$=q%V}return this.strip()},f.prototype.divn=function(V){return this.clone().idivn(V)},f.prototype.egcd=function(V){o(V.negative===0),o(!V.isZero());var $=this,Z=V.clone();$.negative!==0?$=$.umod(V):$=$.clone();for(var q=new f(1),ae=new f(0),ie=new f(0),fe=new f(1),Q=0;$.isEven()&&Z.isEven();)$.iushrn(1),Z.iushrn(1),++Q;for(var J=Z.clone(),oe=$.clone();!$.isZero();){for(var K=0,ne=1;!($.words[0]&ne)&&K<26;++K,ne<<=1);if(K>0)for($.iushrn(K);K-- >0;)(q.isOdd()||ae.isOdd())&&(q.iadd(J),ae.isub(oe)),q.iushrn(1),ae.iushrn(1);for(var ce=0,re=1;!(Z.words[0]&re)&&ce<26;++ce,re<<=1);if(ce>0)for(Z.iushrn(ce);ce-- >0;)(ie.isOdd()||fe.isOdd())&&(ie.iadd(J),fe.isub(oe)),ie.iushrn(1),fe.iushrn(1);$.cmp(Z)>=0?($.isub(Z),q.isub(ie),ae.isub(fe)):(Z.isub($),ie.isub(q),fe.isub(ae))}return{a:ie,b:fe,gcd:Z.iushln(Q)}},f.prototype._invmp=function(V){o(V.negative===0),o(!V.isZero());var $=this,Z=V.clone();$.negative!==0?$=$.umod(V):$=$.clone();for(var q=new f(1),ae=new f(0),ie=Z.clone();$.cmpn(1)>0&&Z.cmpn(1)>0;){for(var fe=0,Q=1;!($.words[0]&Q)&&fe<26;++fe,Q<<=1);if(fe>0)for($.iushrn(fe);fe-- >0;)q.isOdd()&&q.iadd(ie),q.iushrn(1);for(var J=0,oe=1;!(Z.words[0]&oe)&&J<26;++J,oe<<=1);if(J>0)for(Z.iushrn(J);J-- >0;)ae.isOdd()&&ae.iadd(ie),ae.iushrn(1);$.cmp(Z)>=0?($.isub(Z),q.isub(ae)):(Z.isub($),ae.isub(q))}var K;return $.cmpn(1)===0?K=q:K=ae,K.cmpn(0)<0&&K.iadd(V),K},f.prototype.gcd=function(V){if(this.isZero())return V.abs();if(V.isZero())return this.abs();var $=this.clone(),Z=V.clone();$.negative=0,Z.negative=0;for(var q=0;$.isEven()&&Z.isEven();q++)$.iushrn(1),Z.iushrn(1);do{for(;$.isEven();)$.iushrn(1);for(;Z.isEven();)Z.iushrn(1);var ae=$.cmp(Z);if(ae<0){var ie=$;$=Z,Z=ie}else if(ae===0||Z.cmpn(1)===0)break;$.isub(Z)}while(!0);return Z.iushln(q)},f.prototype.invm=function(V){return this.egcd(V).a.umod(V)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(V){return this.words[0]&V},f.prototype.bincn=function(V){o(typeof V=="number");var $=V%26,Z=(V-$)/26,q=1<<$;if(this.length<=Z)return this._expand(Z+1),this.words[Z]|=q,this;for(var ae=q,ie=Z;ae!==0&&ie>>26,fe&=67108863,this.words[ie]=fe}return ae!==0&&(this.words[ie]=ae,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(V){var $=V<0;if(this.negative!==0&&!$)return-1;if(this.negative===0&&$)return 1;this.strip();var Z;if(this.length>1)Z=1;else{$&&(V=-V),o(V<=67108863,"Number is too big");var q=this.words[0]|0;Z=q===V?0:qV.length)return 1;if(this.length=0;Z--){var q=this.words[Z]|0,ae=V.words[Z]|0;if(q!==ae){qae&&($=1);break}}return $},f.prototype.gtn=function(V){return this.cmpn(V)===1},f.prototype.gt=function(V){return this.cmp(V)===1},f.prototype.gten=function(V){return this.cmpn(V)>=0},f.prototype.gte=function(V){return this.cmp(V)>=0},f.prototype.ltn=function(V){return this.cmpn(V)===-1},f.prototype.lt=function(V){return this.cmp(V)===-1},f.prototype.lten=function(V){return this.cmpn(V)<=0},f.prototype.lte=function(V){return this.cmp(V)<=0},f.prototype.eqn=function(V){return this.cmpn(V)===0},f.prototype.eq=function(V){return this.cmp(V)===0},f.red=function(V){return new U(V)},f.prototype.toRed=function(V){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),V.convertTo(this)._forceRed(V)},f.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(V){return this.red=V,this},f.prototype.forceRed=function(V){return o(!this.red,"Already a number in reduction context"),this._forceRed(V)},f.prototype.redAdd=function(V){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,V)},f.prototype.redIAdd=function(V){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,V)},f.prototype.redSub=function(V){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,V)},f.prototype.redISub=function(V){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,V)},f.prototype.redShl=function(V){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,V)},f.prototype.redMul=function(V){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,V),this.red.mul(this,V)},f.prototype.redIMul=function(V){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,V),this.red.imul(this,V)},f.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(V){return o(this.red&&!V.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,V)};var d={k256:null,p224:null,p192:null,p25519:null};function k(W,V){this.name=W,this.p=new f(V,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var V=new f(null);return V.words=new Array(Math.ceil(this.n/13)),V},k.prototype.ireduce=function(V){var $=V,Z;do this.split($,this.tmp),$=this.imulK($),$=$.iadd(this.tmp),Z=$.bitLength();while(Z>this.n);var q=Z0?$.isub(this.p):$.strip!==void 0?$.strip():$._strip(),$},k.prototype.split=function(V,$){V.iushrn(this.n,0,$)},k.prototype.imulK=function(V){return V.imul(this.k)};function I(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}h(I,k),I.prototype.split=function(V,$){for(var Z=4194303,q=Math.min(V.length,9),ae=0;ae>>22,ie=fe}ie>>>=22,V.words[ae-10]=ie,ie===0&&V.length>10?V.length-=10:V.length-=9},I.prototype.imulK=function(V){V.words[V.length]=0,V.words[V.length+1]=0,V.length+=2;for(var $=0,Z=0;Z>>=26,V.words[Z]=ae,$=q}return $!==0&&(V.words[V.length++]=$),V},f._prime=function(V){if(d[V])return d[V];var $;if(V==="k256")$=new I;else if(V==="p224")$=new N;else if(V==="p192")$=new B;else if(V==="p25519")$=new G;else throw new Error("Unknown prime "+V);return d[V]=$,$};function U(W){if(typeof W=="string"){var V=f._prime(W);this.m=V.p,this.prime=V}else o(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}U.prototype._verify1=function(V){o(V.negative===0,"red works only with positives"),o(V.red,"red works only with red numbers")},U.prototype._verify2=function(V,$){o((V.negative|$.negative)===0,"red works only with positives"),o(V.red&&V.red===$.red,"red works only with red numbers")},U.prototype.imod=function(V){return this.prime?this.prime.ireduce(V)._forceRed(this):V.umod(this.m)._forceRed(this)},U.prototype.neg=function(V){return V.isZero()?V.clone():this.m.sub(V)._forceRed(this)},U.prototype.add=function(V,$){this._verify2(V,$);var Z=V.add($);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z._forceRed(this)},U.prototype.iadd=function(V,$){this._verify2(V,$);var Z=V.iadd($);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z},U.prototype.sub=function(V,$){this._verify2(V,$);var Z=V.sub($);return Z.cmpn(0)<0&&Z.iadd(this.m),Z._forceRed(this)},U.prototype.isub=function(V,$){this._verify2(V,$);var Z=V.isub($);return Z.cmpn(0)<0&&Z.iadd(this.m),Z},U.prototype.shl=function(V,$){return this._verify1(V),this.imod(V.ushln($))},U.prototype.imul=function(V,$){return this._verify2(V,$),this.imod(V.imul($))},U.prototype.mul=function(V,$){return this._verify2(V,$),this.imod(V.mul($))},U.prototype.isqr=function(V){return this.imul(V,V.clone())},U.prototype.sqr=function(V){return this.mul(V,V)},U.prototype.sqrt=function(V){if(V.isZero())return V.clone();var $=this.m.andln(3);if(o($%2===1),$===3){var Z=this.m.add(new f(1)).iushrn(2);return this.pow(V,Z)}for(var q=this.m.subn(1),ae=0;!q.isZero()&&q.andln(1)===0;)ae++,q.iushrn(1);o(!q.isZero());var ie=new f(1).toRed(this),fe=ie.redNeg(),Q=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new f(2*J*J).toRed(this);this.pow(J,Q).cmp(fe)!==0;)J.redIAdd(fe);for(var oe=this.pow(J,q),K=this.pow(V,q.addn(1).iushrn(1)),ne=this.pow(V,q),ce=ae;ne.cmp(ie)!==0;){for(var re=ne,ee=0;re.cmp(ie)!==0;ee++)re=re.redSqr();o(ee=0;ae--){for(var oe=$.words[ae],K=J-1;K>=0;K--){var ne=oe>>K&1;if(ie!==q[0]&&(ie=this.sqr(ie)),ne===0&&fe===0){Q=0;continue}fe<<=1,fe|=ne,Q++,!(Q!==Z&&(ae!==0||K!==0))&&(ie=this.mul(ie,q[fe]),Q=0,fe=0)}J=26}return ie},U.prototype.convertTo=function(V){var $=V.umod(this.m);return $===V?$.clone():$},U.prototype.convertFrom=function(V){var $=V.clone();return $.red=null,$},f.mont=function(V){return new H(V)};function H(W){U.call(this,W),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}h(H,U),H.prototype.convertTo=function(V){return this.imod(V.ushln(this.shift))},H.prototype.convertFrom=function(V){var $=this.imod(V.mul(this.rinv));return $.red=null,$},H.prototype.imul=function(V,$){if(V.isZero()||$.isZero())return V.words[0]=0,V.length=1,V;var Z=V.imul($),q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ae=Z.isub(q).iushrn(this.shift),ie=ae;return ae.cmp(this.m)>=0?ie=ae.isub(this.m):ae.cmpn(0)<0&&(ie=ae.iadd(this.m)),ie._forceRed(this)},H.prototype.mul=function(V,$){if(V.isZero()||$.isZero())return new f(0)._forceRed(this);var Z=V.mul($),q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ae=Z.isub(q).iushrn(this.shift),ie=ae;return ae.cmp(this.m)>=0?ie=ae.isub(this.m):ae.cmpn(0)<0&&(ie=ae.iadd(this.m)),ie._forceRed(this)},H.prototype.invm=function(V){var $=this.imod(V._invmp(this.m).mul(this.r2));return $._forceRed(this)}}(v,this)},2692:function(v){v.exports=m;function m(a){var n,s,o,h=a.length,f=0;for(n=0;n>>1;if(!(P<=0)){var d,k=n.mallocDouble(2*P*T),I=n.mallocInt32(T);if(T=f(y,P,k,I),T>0){if(P===1&&R)s.init(T),d=s.sweepComplete(P,M,0,T,k,I,0,T,k,I);else{var N=n.mallocDouble(2*P*L),B=n.mallocInt32(L);L=f(A,P,N,B),L>0&&(s.init(T+L),P===1?d=s.sweepBipartite(P,M,0,T,k,I,0,L,N,B):d=o(P,M,R,T,k,I,L,N,B),n.free(N),n.free(B))}n.free(k),n.free(I)}return d}}}var b;function p(y,A){b.push([y,A])}function E(y){return b=[],u(y,y,p,!0),b}function g(y,A){return b=[],u(y,A,p,!1),b}function c(y,A,M){switch(arguments.length){case 1:return E(y);case 2:return typeof A=="function"?u(y,y,A,!0):g(y,A);case 3:return u(y,A,M,!1);default:throw new Error("box-intersect: Invalid arguments")}}},7333:function(v,m){function a(){function o(u,b,p,E,g,c,y,A,M,R,T){for(var L=2*u,P=E,d=L*E;PM-A?o(u,b,p,E,g,c,y,A,M,R,T):h(u,b,p,E,g,c,y,A,M,R,T)}return f}function n(){function o(p,E,g,c,y,A,M,R,T,L,P){for(var d=2*p,k=c,I=d*c;kL-T?c?o(p,E,g,y,A,M,R,T,L,P,d):h(p,E,g,y,A,M,R,T,L,P,d):c?f(p,E,g,y,A,M,R,T,L,P,d):u(p,E,g,y,A,M,R,T,L,P,d)}return b}function s(o){return o?a():n()}m.partial=s(!1),m.full=s(!0)},2337:function(v,m,a){v.exports=W;var n=a(5306),s=a(2288),o=a(7333),h=o.partial,f=o.full,u=a(1390),b=a(2464),p=a(122),E=128,g=1<<22,c=1<<22,y=p("!(lo>=p0)&&!(p1>=hi)"),A=p("lo===p0"),M=p("lo0;){oe-=1;var ce=oe*P,re=I[ce],ee=I[ce+1],de=I[ce+2],le=I[ce+3],he=I[ce+4],xe=I[ce+5],Ee=oe*d,Se=N[Ee],ke=N[Ee+1],Te=xe&1,Ae=!!(xe&16),be=ae,Ie=ie,Ue=Q,Ne=J;if(Te&&(be=Q,Ie=J,Ue=ae,Ne=ie),!(xe&2&&(de=M(V,re,ee,de,be,Ie,ke),ee>=de))&&!(xe&4&&(ee=R(V,re,ee,de,be,Ie,Se),ee>=de))){var ze=de-ee,$e=he-le;if(Ae){if(V*ze*(ze+$e)p&&g[L+b]>R;--T,L-=y){for(var P=L,d=L+y,k=0;k>>1,R=2*u,T=M,L=g[R*M+b];y=N?(T=I,L=N):k>=G?(T=d,L=k):(T=B,L=G):N>=G?(T=I,L=N):G>=k?(T=d,L=k):(T=B,L=G);for(var W=R*(A-1),V=R*T,U=0;U=p0)&&!(p1>=hi)":b};function a(p){return m[p]}function n(p,E,g,c,y,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=y[T+d];if(N===M)if(P===I)P+=1,L+=R;else{for(var B=0;R>B;++B){var G=y[T+B];y[T+B]=y[L],y[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function s(p,E,g,c,y,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=y[T+d];if(NB;++B){var G=y[T+B];y[T+B]=y[L],y[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function o(p,E,g,c,y,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=y[T+k];if(N<=M)if(P===I)P+=1,L+=R;else{for(var B=0;R>B;++B){var G=y[T+B];y[T+B]=y[L],y[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function h(p,E,g,c,y,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=y[T+k];if(N<=M)if(P===I)P+=1,L+=R;else{for(var B=0;R>B;++B){var G=y[T+B];y[T+B]=y[L],y[L++]=G}var U=A[I];A[I]=A[P],A[P++]=U}}return P}function f(p,E,g,c,y,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=y[T+d],B=y[T+k];if(N<=M&&M<=B)if(P===I)P+=1,L+=R;else{for(var G=0;R>G;++G){var U=y[T+G];y[T+G]=y[L],y[L++]=U}var H=A[I];A[I]=A[P],A[P++]=H}}return P}function u(p,E,g,c,y,A,M){for(var R=2*p,T=R*g,L=T,P=g,d=E,k=p+E,I=g;c>I;++I,T+=R){var N=y[T+d],B=y[T+k];if(NG;++G){var U=y[T+G];y[T+G]=y[L],y[L++]=U}var H=A[I];A[I]=A[P],A[P++]=H}}return P}function b(p,E,g,c,y,A,M,R){for(var T=2*p,L=T*g,P=L,d=g,k=E,I=p+E,N=g;c>N;++N,L+=T){var B=y[L+k],G=y[L+I];if(!(B>=M)&&!(R>=G))if(d===N)d+=1,P+=T;else{for(var U=0;T>U;++U){var H=y[L+U];y[L+U]=y[P],y[P++]=H}var W=A[N];A[N]=A[d],A[d++]=W}}return d}},309:function(v){v.exports=a;var m=32;function a(E,g){g<=4*m?n(0,g-1,E):p(0,g-1,E)}function n(E,g,c){for(var y=2*(E+1),A=E+1;A<=g;++A){for(var M=c[y++],R=c[y++],T=A,L=y-2;T-- >E;){var P=c[L-2],d=c[L-1];if(Pc[g+1]:!0}function b(E,g,c,y){E*=2;var A=y[E];return A>1,T=R-y,L=R+y,P=A,d=T,k=R,I=L,N=M,B=E+1,G=g-1,U=0;u(P,d,c)&&(U=P,P=d,d=U),u(I,N,c)&&(U=I,I=N,N=U),u(P,k,c)&&(U=P,P=k,k=U),u(d,k,c)&&(U=d,d=k,k=U),u(P,I,c)&&(U=P,P=I,I=U),u(k,I,c)&&(U=k,k=I,I=U),u(d,N,c)&&(U=d,d=N,N=U),u(d,k,c)&&(U=d,d=k,k=U),u(I,N,c)&&(U=I,I=N,N=U);for(var H=c[2*d],W=c[2*d+1],V=c[2*I],$=c[2*I+1],Z=2*P,q=2*k,ae=2*N,ie=2*A,fe=2*R,Q=2*M,J=0;J<2;++J){var oe=c[Z+J],K=c[q+J],ne=c[ae+J];c[ie+J]=oe,c[fe+J]=K,c[Q+J]=ne}o(T,E,c),o(L,g,c);for(var ce=B;ce<=G;++ce)if(b(ce,H,W,c))ce!==B&&s(ce,B,c),++B;else if(!b(ce,V,$,c))for(;;)if(b(G,V,$,c)){b(G,H,W,c)?(h(ce,B,G,c),++B,--G):(s(ce,G,c),--G);break}else{if(--G>>1;o(y,K);for(var ne=0,ce=0,fe=0;fe=h)re=re-h|0,M(p,E,ce--,re);else if(re>=0)M(u,b,ne--,re);else if(re<=-h){re=-re-h|0;for(var ee=0;ee>>1;o(y,K);for(var ne=0,ce=0,re=0,fe=0;fe>1===y[2*fe+3]>>1&&(de=2,fe+=1),ee<0){for(var le=-(ee>>1)-1,he=0;he>1)-1;de===0?M(u,b,ne--,le):de===1?M(p,E,ce--,le):de===2&&M(g,c,re--,le)}}}function P(k,I,N,B,G,U,H,W,V,$,Z,q){var ae=0,ie=2*k,fe=I,Q=I+k,J=1,oe=1;B?oe=h:J=h;for(var K=G;K>>1;o(y,ee);for(var de=0,K=0;K=h?(he=!B,ne-=h):(he=!!B,ne-=1),he)R(u,b,de++,ne);else{var xe=q[ne],Ee=ie*ne,Se=Z[Ee+I+1],ke=Z[Ee+I+1+k];e:for(var Te=0;Te>>1;o(y,ne);for(var ce=0,Q=0;Q=h)u[ce++]=J-h;else{J-=1;var ee=Z[J],de=ae*J,le=$[de+I+1],he=$[de+I+1+k];e:for(var xe=0;xe=0;--xe)if(u[xe]===J){for(var Te=xe+1;Te0;){for(var y=u.pop(),E=u.pop(),A=-1,M=-1,g=p[E],T=1;T=0||(f.flip(E,y),s(h,f,u,A,E,M),s(h,f,u,E,M,A),s(h,f,u,M,y,A),s(h,f,u,y,A,M))}}},7098:function(v,m,a){var n=a(5070);v.exports=b;function s(p,E,g,c,y,A,M){this.cells=p,this.neighbor=E,this.flags=c,this.constraint=g,this.active=y,this.next=A,this.boundary=M}var o=s.prototype;function h(p,E){return p[0]-E[0]||p[1]-E[1]||p[2]-E[2]}o.locate=function(){var p=[0,0,0];return function(E,g,c){var y=E,A=g,M=c;return g0||M.length>0;){for(;A.length>0;){var d=A.pop();if(R[d]!==-y){R[d]=y,T[d];for(var k=0;k<3;++k){var I=P[3*d+k];I>=0&&R[I]===0&&(L[3*d+k]?M.push(I):(A.push(I),R[I]=y))}}}var N=M;M=A,A=N,M.length=0,y=-y}var B=u(T,R,E);return g?B.concat(c.boundary):B}},9971:function(v,m,a){var n=a(5070),s=a(417)[3],o=0,h=1,f=2;v.exports=M;function u(R,T,L,P,d){this.a=R,this.b=T,this.idx=L,this.lowerIds=P,this.upperIds=d}function b(R,T,L,P){this.a=R,this.b=T,this.type=L,this.idx=P}function p(R,T){var L=R.a[0]-T.a[0]||R.a[1]-T.a[1]||R.type-T.type;return L||R.type!==o&&(L=s(R.a,R.b,T.b),L)?L:R.idx-T.idx}function E(R,T){return s(R.a,R.b,T)}function g(R,T,L,P,d){for(var k=n.lt(T,P,E),I=n.gt(T,P,E),N=k;N1&&s(L[G[H-2]],L[G[H-1]],P)>0;)R.push([G[H-1],G[H-2],d]),H-=1;G.length=H,G.push(d);for(var U=B.upperIds,H=U.length;H>1&&s(L[U[H-2]],L[U[H-1]],P)<0;)R.push([U[H-2],U[H-1],d]),H-=1;U.length=H,U.push(d)}}function c(R,T){var L;return R.a[0]B[0]&&d.push(new b(B,N,f,k),new b(N,B,h,k))}d.sort(p);for(var G=d[0].a[0]-(1+Math.abs(d[0].a[0]))*Math.pow(2,-52),U=[new u([G,1],[G,0],-1,[],[])],H=[],k=0,W=d.length;k=0}}(),o.removeTriangle=function(u,b,p){var E=this.stars;h(E[u],b,p),h(E[b],p,u),h(E[p],u,b)},o.addTriangle=function(u,b,p){var E=this.stars;E[u].push(b,p),E[b].push(p,u),E[p].push(u,b)},o.opposite=function(u,b){for(var p=this.stars[b],E=1,g=p.length;E=0;--V){var oe=H[V];$=oe[0];var K=G[$],ne=K[0],ce=K[1],re=B[ne],ee=B[ce];if((re[0]-ee[0]||re[1]-ee[1])<0){var de=ne;ne=ce,ce=de}K[0]=ne;var le=K[1]=oe[1],he;for(W&&(he=K[2]);V>0&&H[V-1][0]===$;){var oe=H[--V],xe=oe[1];W?G.push([le,xe,he]):G.push([le,xe]),le=xe}W?G.push([le,ce,he]):G.push([le,ce])}return Z}function T(B,G,U){for(var H=G.length,W=new n(H),V=[],$=0;$G[2]?1:0)}function d(B,G,U){if(B.length!==0){if(G)for(var H=0;H0||$.length>0}function N(B,G,U){var H;if(U){H=G;for(var W=new Array(G.length),V=0;VR+1)throw new Error(A+" map requires nshades to be at least size "+y.length);Array.isArray(b.alpha)?b.alpha.length!==2?T=[1,1]:T=b.alpha.slice():typeof b.alpha=="number"?T=[b.alpha,b.alpha]:T=[1,1],p=y.map(function(N){return Math.round(N.index*R)}),T[0]=Math.min(Math.max(T[0],0),1),T[1]=Math.min(Math.max(T[1],0),1);var P=y.map(function(N,B){var G=y[B].index,U=y[B].rgb.slice();return U.length===4&&U[3]>=0&&U[3]<=1||(U[3]=T[0]+(T[1]-T[0])*G),U}),d=[];for(L=0;L=0}function b(p,E,g,c){var y=n(E,g,c);if(y===0){var A=s(n(p,E,g)),M=s(n(p,E,c));if(A===M){if(A===0){var R=u(p,E,g),T=u(p,E,c);return R===T?0:R?1:-1}return 0}else{if(M===0)return A>0||u(p,E,c)?-1:1;if(A===0)return M>0||u(p,E,g)?1:-1}return s(M-A)}var L=n(p,E,g);if(L>0)return y>0&&n(p,E,c)>0?1:-1;if(L<0)return y>0||n(p,E,c)>0?1:-1;var P=n(p,E,c);return P>0||u(p,E,g)?1:-1}},7538:function(v){v.exports=function(a){return a<0?-1:a>0?1:0}},9209:function(v){v.exports=n;var m=Math.min;function a(s,o){return s-o}function n(s,o){var h=s.length,f=s.length-o.length;if(f)return f;switch(h){case 0:return 0;case 1:return s[0]-o[0];case 2:return s[0]+s[1]-o[0]-o[1]||m(s[0],s[1])-m(o[0],o[1]);case 3:var u=s[0]+s[1],b=o[0]+o[1];if(f=u+s[2]-(b+o[2]),f)return f;var p=m(s[0],s[1]),E=m(o[0],o[1]);return m(p,s[2])-m(E,o[2])||m(p+s[2],u)-m(E+o[2],b);case 4:var g=s[0],c=s[1],y=s[2],A=s[3],M=o[0],R=o[1],T=o[2],L=o[3];return g+c+y+A-(M+R+T+L)||m(g,c,y,A)-m(M,R,T,L,M)||m(g+c,g+y,g+A,c+y,c+A,y+A)-m(M+R,M+T,M+L,R+T,R+L,T+L)||m(g+c+y,g+c+A,g+y+A,c+y+A)-m(M+R+T,M+R+L,M+T+L,R+T+L);default:for(var P=s.slice().sort(a),d=o.slice().sort(a),k=0;ka[s][0]&&(s=o);return ns?[[s],[n]]:[[n]]}},8722:function(v,m,a){v.exports=s;var n=a(3266);function s(o){var h=n(o),f=h.length;if(f<=2)return[];for(var u=new Array(f),b=h[f-1],p=0;p=b[M]&&(A+=1);c[y]=A}}return u}function f(u,b){try{return n(u,!0)}catch{var p=s(u);if(p.length<=b)return[];var E=o(u,p),g=n(E,!0);return h(g,p)}}},9680:function(v){function m(n,s,o,h,f,u){var b=6*f*f-6*f,p=3*f*f-4*f+1,E=-6*f*f+6*f,g=3*f*f-2*f;if(n.length){u||(u=new Array(n.length));for(var c=n.length-1;c>=0;--c)u[c]=b*n[c]+p*s[c]+E*o[c]+g*h[c];return u}return b*n+p*s+E*o[c]+g*h}function a(n,s,o,h,f,u){var b=f-1,p=f*f,E=b*b,g=(1+2*f)*E,c=f*E,y=p*(3-2*f),A=p*b;if(n.length){u||(u=new Array(n.length));for(var M=n.length-1;M>=0;--M)u[M]=g*n[M]+c*s[M]+y*o[M]+A*h[M];return u}return g*n+c*s+y*o+A*h}v.exports=a,v.exports.derivative=m},4419:function(v,m,a){var n=a(2183),s=a(1215);v.exports=u;function o(b,p){this.point=b,this.index=p}function h(b,p){for(var E=b.point,g=p.point,c=E.length,y=0;y=2)return!1;U[W]=V}return!0}):G=G.filter(function(U){for(var H=0;H<=g;++H){var W=k[U[H]];if(W<0)return!1;U[H]=W}return!0}),g&1)for(var A=0;A>>31},v.exports.exponent=function(o){var h=v.exports.hi(o);return(h<<1>>>21)-1023},v.exports.fraction=function(o){var h=v.exports.lo(o),f=v.exports.hi(o),u=f&(1<<20)-1;return f&2146435072&&(u+=1048576),[h,u]},v.exports.denormalized=function(o){var h=v.exports.hi(o);return!(h&2146435072)}},3094:function(v){function m(s,o,h){var f=s[h]|0;if(f<=0)return[];var u=new Array(f),b;if(h===s.length-1)for(b=0;b"u"&&(o=0),typeof s){case"number":if(s>0)return a(s|0,o);break;case"object":if(typeof s.length=="number")return m(s,o,0);break}return[]}v.exports=n},8348:function(v,m,a){v.exports=s;var n=a(1215);function s(o,h){var f=o.length;if(typeof h!="number"){h=0;for(var u=0;u=g-1)for(var L=A.length-1,d=p-E[g-1],P=0;P=g-1){var T=A.length-1;p-E[g-1];for(var L=0;L=0;--g)if(p[--E])return!1;return!0},f.jump=function(p){var E=this.lastT(),g=this.dimension;if(!(p0;--P)c.push(o(R[P-1],T[P-1],arguments[P])),y.push(0)}},f.push=function(p){var E=this.lastT(),g=this.dimension;if(!(p1e-6?1/M:0;this._time.push(p);for(var d=g;d>0;--d){var k=o(T[d-1],L[d-1],arguments[d]);c.push(k),y.push((k-c[A++])*P)}}},f.set=function(p){var E=this.dimension;if(!(p0;--R)g.push(o(A[R-1],M[R-1],arguments[R])),c.push(0)}},f.move=function(p){var E=this.lastT(),g=this.dimension;if(!(p<=E||arguments.length!==g+1)){var c=this._state,y=this._velocity,A=c.length-this.dimension,M=this.bounds,R=M[0],T=M[1],L=p-E,P=L>1e-6?1/L:0;this._time.push(p);for(var d=g;d>0;--d){var k=arguments[d];c.push(o(R[d-1],T[d-1],c[A++]+k)),y.push(k*P)}}},f.idle=function(p){var E=this.lastT();if(!(p=0;--P)c.push(o(R[P],T[P],c[A]+L*y[A])),y.push(0),A+=1}};function u(p){for(var E=new Array(p),g=0;g=0;--B){var d=k[B];I[B]<=0?k[B]=new n(d._color,d.key,d.value,k[B+1],d.right,d._count+1):k[B]=new n(d._color,d.key,d.value,d.left,k[B+1],d._count+1)}for(var B=k.length-1;B>1;--B){var G=k[B-1],d=k[B];if(G._color===a||d._color===a)break;var U=k[B-2];if(U.left===G)if(G.left===d){var H=U.right;if(H&&H._color===m)G._color=a,U.right=o(a,H),U._color=m,B-=1;else{if(U._color=m,U.left=G.right,G._color=a,G.right=U,k[B-2]=G,k[B-1]=d,h(U),h(G),B>=3){var W=k[B-3];W.left===U?W.left=G:W.right=G}break}}else{var H=U.right;if(H&&H._color===m)G._color=a,U.right=o(a,H),U._color=m,B-=1;else{if(G.right=d.left,U._color=m,U.left=d.right,d._color=a,d.left=G,d.right=U,k[B-2]=d,k[B-1]=G,h(U),h(G),h(d),B>=3){var W=k[B-3];W.left===U?W.left=d:W.right=d}break}}else if(G.right===d){var H=U.left;if(H&&H._color===m)G._color=a,U.left=o(a,H),U._color=m,B-=1;else{if(U._color=m,U.right=G.left,G._color=a,G.left=U,k[B-2]=G,k[B-1]=d,h(U),h(G),B>=3){var W=k[B-3];W.right===U?W.right=G:W.left=G}break}}else{var H=U.left;if(H&&H._color===m)G._color=a,U.left=o(a,H),U._color=m,B-=1;else{if(G.left=d.right,U._color=m,U.right=d.left,d._color=a,d.right=G,d.left=U,k[B-2]=d,k[B-1]=G,h(U),h(G),h(d),B>=3){var W=k[B-3];W.right===U?W.right=d:W.left=d}break}}}return k[0]._color=a,new f(P,k[0])};function b(T,L){if(L.left){var P=b(T,L.left);if(P)return P}var P=T(L.key,L.value);if(P)return P;if(L.right)return b(T,L.right)}function p(T,L,P,d){var k=L(T,d.key);if(k<=0){if(d.left){var I=p(T,L,P,d.left);if(I)return I}var I=P(d.key,d.value);if(I)return I}if(d.right)return p(T,L,P,d.right)}function E(T,L,P,d,k){var I=P(T,k.key),N=P(L,k.key),B;if(I<=0&&(k.left&&(B=E(T,L,P,d,k.left),B)||N>0&&(B=d(k.key,k.value),B)))return B;if(N>0&&k.right)return E(T,L,P,d,k.right)}u.forEach=function(L,P,d){if(this.root)switch(arguments.length){case 1:return b(L,this.root);case 2:return p(P,this._compare,L,this.root);case 3:return this._compare(P,d)>=0?void 0:E(P,d,this._compare,L,this.root)}},Object.defineProperty(u,"begin",{get:function(){for(var T=[],L=this.root;L;)T.push(L),L=L.left;return new g(this,T)}}),Object.defineProperty(u,"end",{get:function(){for(var T=[],L=this.root;L;)T.push(L),L=L.right;return new g(this,T)}}),u.at=function(T){if(T<0)return new g(this,[]);for(var L=this.root,P=[];;){if(P.push(L),L.left){if(T=L.right._count)break;L=L.right}else break}return new g(this,[])},u.ge=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I<=0&&(k=d.length),I<=0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.gt=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I<0&&(k=d.length),I<0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.lt=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I>0&&(k=d.length),I<=0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.le=function(T){for(var L=this._compare,P=this.root,d=[],k=0;P;){var I=L(T,P.key);d.push(P),I>=0&&(k=d.length),I<0?P=P.left:P=P.right}return d.length=k,new g(this,d)},u.find=function(T){for(var L=this._compare,P=this.root,d=[];P;){var k=L(T,P.key);if(d.push(P),k===0)return new g(this,d);k<=0?P=P.left:P=P.right}return new g(this,[])},u.remove=function(T){var L=this.find(T);return L?L.remove():this},u.get=function(T){for(var L=this._compare,P=this.root;P;){var d=L(T,P.key);if(d===0)return P.value;d<=0?P=P.left:P=P.right}};function g(T,L){this.tree=T,this._stack=L}var c=g.prototype;Object.defineProperty(c,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(c,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),c.clone=function(){return new g(this.tree,this._stack.slice())};function y(T,L){T.key=L.key,T.value=L.value,T.left=L.left,T.right=L.right,T._color=L._color,T._count=L._count}function A(T){for(var L,P,d,k,I=T.length-1;I>=0;--I){if(L=T[I],I===0){L._color=a;return}if(P=T[I-1],P.left===L){if(d=P.right,d.right&&d.right._color===m){if(d=P.right=s(d),k=d.right=s(d.right),P.right=d.left,d.left=P,d.right=k,d._color=P._color,L._color=a,P._color=a,k._color=a,h(P),h(d),I>1){var N=T[I-2];N.left===P?N.left=d:N.right=d}T[I-1]=d;return}else if(d.left&&d.left._color===m){if(d=P.right=s(d),k=d.left=s(d.left),P.right=k.left,d.left=k.right,k.left=P,k.right=d,k._color=P._color,P._color=a,d._color=a,L._color=a,h(P),h(d),h(k),I>1){var N=T[I-2];N.left===P?N.left=k:N.right=k}T[I-1]=k;return}if(d._color===a)if(P._color===m){P._color=a,P.right=o(m,d);return}else{P.right=o(m,d);continue}else{if(d=s(d),P.right=d.left,d.left=P,d._color=P._color,P._color=m,h(P),h(d),I>1){var N=T[I-2];N.left===P?N.left=d:N.right=d}T[I-1]=d,T[I]=P,I+11){var N=T[I-2];N.right===P?N.right=d:N.left=d}T[I-1]=d;return}else if(d.right&&d.right._color===m){if(d=P.left=s(d),k=d.right=s(d.right),P.left=k.right,d.right=k.left,k.right=P,k.left=d,k._color=P._color,P._color=a,d._color=a,L._color=a,h(P),h(d),h(k),I>1){var N=T[I-2];N.right===P?N.right=k:N.left=k}T[I-1]=k;return}if(d._color===a)if(P._color===m){P._color=a,P.left=o(m,d);return}else{P.left=o(m,d);continue}else{if(d=s(d),P.left=d.right,d.right=P,d._color=P._color,P._color=m,h(P),h(d),I>1){var N=T[I-2];N.right===P?N.right=d:N.left=d}T[I-1]=d,T[I]=P,I+1=0;--d){var P=T[d];P.left===T[d+1]?L[d]=new n(P._color,P.key,P.value,L[d+1],P.right,P._count):L[d]=new n(P._color,P.key,P.value,P.left,L[d+1],P._count)}if(P=L[L.length-1],P.left&&P.right){var k=L.length;for(P=P.left;P.right;)L.push(P),P=P.right;var I=L[k-1];L.push(new n(P._color,I.key,I.value,P.left,P.right,P._count)),L[k-1].key=P.key,L[k-1].value=P.value;for(var d=L.length-2;d>=k;--d)P=L[d],L[d]=new n(P._color,P.key,P.value,P.left,L[d+1],P._count);L[k-1].left=L[k]}if(P=L[L.length-1],P._color===m){var N=L[L.length-2];N.left===P?N.left=null:N.right===P&&(N.right=null),L.pop();for(var d=0;d0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(c,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(c,"index",{get:function(){var T=0,L=this._stack;if(L.length===0){var P=this.tree.root;return P?P._count:0}else L[L.length-1].left&&(T=L[L.length-1].left._count);for(var d=L.length-2;d>=0;--d)L[d+1]===L[d].right&&(++T,L[d].left&&(T+=L[d].left._count));return T},enumerable:!0}),c.next=function(){var T=this._stack;if(T.length!==0){var L=T[T.length-1];if(L.right)for(L=L.right;L;)T.push(L),L=L.left;else for(T.pop();T.length>0&&T[T.length-1].right===L;)L=T[T.length-1],T.pop()}},Object.defineProperty(c,"hasNext",{get:function(){var T=this._stack;if(T.length===0)return!1;if(T[T.length-1].right)return!0;for(var L=T.length-1;L>0;--L)if(T[L-1].left===T[L])return!0;return!1}}),c.update=function(T){var L=this._stack;if(L.length===0)throw new Error("Can't update empty node!");var P=new Array(L.length),d=L[L.length-1];P[P.length-1]=new n(d._color,d.key,T,d.left,d.right,d._count);for(var k=L.length-2;k>=0;--k)d=L[k],d.left===L[k+1]?P[k]=new n(d._color,d.key,d.value,P[k+1],d.right,d._count):P[k]=new n(d._color,d.key,d.value,d.left,P[k+1],d._count);return new f(this.tree._compare,P[0])},c.prev=function(){var T=this._stack;if(T.length!==0){var L=T[T.length-1];if(L.left)for(L=L.left;L;)T.push(L),L=L.right;else for(T.pop();T.length>0&&T[T.length-1].left===L;)L=T[T.length-1],T.pop()}},Object.defineProperty(c,"hasPrev",{get:function(){var T=this._stack;if(T.length===0)return!1;if(T[T.length-1].left)return!0;for(var L=T.length-1;L>0;--L)if(T[L-1].right===T[L])return!0;return!1}});function M(T,L){return TL?1:0}function R(T){return new f(T||M,null)}},7453:function(v,m,a){v.exports=d;var n=a(9557),s=a(1681),o=a(1011),h=a(2864),f=a(8468),u=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function b(k,I){return k[0]=I[0],k[1]=I[1],k[2]=I[2],k}function p(k){this.gl=k,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=o(k)}var E=p.prototype;E.update=function(k){k=k||{};function I(ie,fe,Q){if(Q in k){var J=k[Q],oe=this[Q],K;(ie?Array.isArray(J)&&Array.isArray(J[0]):Array.isArray(J))?this[Q]=K=[fe(J[0]),fe(J[1]),fe(J[2])]:this[Q]=K=[fe(J),fe(J),fe(J)];for(var ne=0;ne<3;++ne)if(K[ne]!==oe[ne])return!0}return!1}var N=I.bind(this,!1,Number),B=I.bind(this,!1,Boolean),G=I.bind(this,!1,String),U=I.bind(this,!0,function(ie){if(Array.isArray(ie)){if(ie.length===3)return[+ie[0],+ie[1],+ie[2],1];if(ie.length===4)return[+ie[0],+ie[1],+ie[2],+ie[3]]}return[0,0,0,1]}),H,W=!1,V=!1;if("bounds"in k)for(var $=k.bounds,Z=0;Z<2;++Z)for(var q=0;q<3;++q)$[Z][q]!==this.bounds[Z][q]&&(V=!0),this.bounds[Z][q]=$[Z][q];if("ticks"in k){H=k.ticks,W=!0,this.autoTicks=!1;for(var Z=0;Z<3;++Z)this.tickSpacing[Z]=0}else N("tickSpacing")&&(this.autoTicks=!0,V=!0);if(this._firstInit&&("ticks"in k||"tickSpacing"in k||(this.autoTicks=!0),V=!0,W=!0,this._firstInit=!1),V&&this.autoTicks&&(H=f.create(this.bounds,this.tickSpacing),W=!0),W){for(var Z=0;Z<3;++Z)H[Z].sort(function(fe,Q){return fe.x-Q.x});f.equal(H,this.ticks)?W=!1:this.ticks=H}B("tickEnable"),G("tickFont")&&(W=!0),N("tickSize"),N("tickAngle"),N("tickPad"),U("tickColor");var ae=G("labels");G("labelFont")&&(ae=!0),B("labelEnable"),N("labelSize"),N("labelPad"),U("labelColor"),B("lineEnable"),B("lineMirror"),N("lineWidth"),U("lineColor"),B("lineTickEnable"),B("lineTickMirror"),N("lineTickLength"),N("lineTickWidth"),U("lineTickColor"),B("gridEnable"),N("gridWidth"),U("gridColor"),B("zeroEnable"),U("zeroLineColor"),N("zeroLineWidth"),B("backgroundEnable"),U("backgroundColor"),this._text?this._text&&(ae||W)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&W&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=s(this.gl,this.bounds,this.ticks))};function g(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var c=[new g,new g,new g];function y(k,I,N,B,G){for(var U=k.primalOffset,H=k.primalMinor,W=k.mirrorOffset,V=k.mirrorMinor,$=B[I],Z=0;Z<3;++Z)if(I!==Z){var q=U,ae=W,ie=H,fe=V;$&1<0?(ie[Z]=-1,fe[Z]=0):(ie[Z]=0,fe[Z]=1)}}var A=[0,0,0],M={model:u,view:u,projection:u,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(k){};var R=0,T=[0,0,0],L=[0,0,0],P=[0,0,0];E.draw=function(k){k=k||M;for(var oe=this.gl,I=k.model||u,N=k.view||u,B=k.projection||u,G=this.bounds,U=k._ortho||!1,H=h(I,N,B,G,U),W=H.cubeEdges,V=H.axis,$=N[12],Z=N[13],q=N[14],ae=N[15],ie=U?2:1,fe=ie*this.pixelRatio*(B[3]*$+B[7]*Z+B[11]*q+B[15]*ae)/oe.drawingBufferHeight,Q=0;Q<3;++Q)this.lastCubeProps.cubeEdges[Q]=W[Q],this.lastCubeProps.axis[Q]=V[Q];for(var J=c,Q=0;Q<3;++Q)y(c[Q],Q,this.bounds,W,V);for(var oe=this.gl,K=A,Q=0;Q<3;++Q)this.backgroundEnable[Q]?K[Q]=V[Q]:K[Q]=0;this._background.draw(I,N,B,G,K,this.backgroundColor),this._lines.bind(I,N,B,this);for(var Q=0;Q<3;++Q){var ne=[0,0,0];V[Q]>0?ne[Q]=G[1][Q]:ne[Q]=G[0][Q];for(var ce=0;ce<2;++ce){var re=(Q+1+ce)%3,ee=(Q+1+(ce^1))%3;this.gridEnable[re]&&this._lines.drawGrid(re,ee,this.bounds,ne,this.gridColor[re],this.gridWidth[re]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var re=(Q+1+ce)%3,ee=(Q+1+(ce^1))%3;this.zeroEnable[ee]&&Math.min(G[0][ee],G[1][ee])<=0&&Math.max(G[0][ee],G[1][ee])>=0&&this._lines.drawZero(re,ee,this.bounds,ne,this.zeroLineColor[ee],this.zeroLineWidth[ee]*this.pixelRatio)}}for(var Q=0;Q<3;++Q){this.lineEnable[Q]&&this._lines.drawAxisLine(Q,this.bounds,J[Q].primalOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio),this.lineMirror[Q]&&this._lines.drawAxisLine(Q,this.bounds,J[Q].mirrorOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio);for(var de=b(T,J[Q].primalMinor),le=b(L,J[Q].mirrorMinor),he=this.lineTickLength,ce=0;ce<3;++ce){var xe=fe/I[5*ce];de[ce]*=he[ce]*xe,le[ce]*=he[ce]*xe}this.lineTickEnable[Q]&&this._lines.drawAxisTicks(Q,J[Q].primalOffset,de,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio),this.lineTickMirror[Q]&&this._lines.drawAxisTicks(Q,J[Q].mirrorOffset,le,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio)}this._lines.unbind(),this._text.bind(I,N,B,this.pixelRatio);var Ee,Se=.5,ke,Te;function Ae($e){Te=[0,0,0],Te[$e]=1}function be($e,st,vt){var at=($e+1)%3,nt=($e+2)%3,mt=st[at],rt=st[nt],lt=vt[at],dt=vt[nt];if(mt>0&&dt>0){Ae(at);return}else if(mt>0&&dt<0){Ae(at);return}else if(mt<0&&dt>0){Ae(at);return}else if(mt<0&&dt<0){Ae(at);return}else if(rt>0&<>0){Ae(nt);return}else if(rt>0&<<0){Ae(nt);return}else if(rt<0&<>0){Ae(nt);return}else if(rt<0&<<0){Ae(nt);return}}for(var Q=0;Q<3;++Q){for(var Ie=J[Q].primalMinor,Ue=J[Q].mirrorMinor,Ne=b(P,J[Q].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Q]&&(Ne[ce]+=fe*Ie[ce]*Math.max(this.lineTickLength[ce],0)/I[5*ce]);var ze=[0,0,0];if(ze[Q]=1,this.tickEnable[Q]){this.tickAngle[Q]===-3600?(this.tickAngle[Q]=0,this.tickAlign[Q]="auto"):this.tickAlign[Q]=-1,ke=1,Ee=[this.tickAlign[Q],Se,ke],Ee[0]==="auto"?Ee[0]=R:Ee[0]=parseInt(""+Ee[0]),Te=[0,0,0],be(Q,Ie,Ue);for(var ce=0;ce<3;++ce)Ne[ce]+=fe*Ie[ce]*this.tickPad[ce]/I[5*ce];this._text.drawTicks(Q,this.tickSize[Q],this.tickAngle[Q],Ne,this.tickColor[Q],ze,Te,Ee)}if(this.labelEnable[Q]){ke=0,Te=[0,0,0],this.labels[Q].length>4&&(Ae(Q),ke=1),Ee=[this.labelAlign[Q],Se,ke],Ee[0]==="auto"?Ee[0]=R:Ee[0]=parseInt(""+Ee[0]);for(var ce=0;ce<3;++ce)Ne[ce]+=fe*Ie[ce]*this.labelPad[ce]/I[5*ce];Ne[Q]+=.5*(G[0][Q]+G[1][Q]),this._text.drawLabel(Q,this.labelSize[Q],this.labelAngle[Q],Ne,this.labelColor[Q],[0,0,0],Te,Ee)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function d(k,I){var N=new p(k);return N.update(I),N}},1011:function(v,m,a){v.exports=u;var n=a(5827),s=a(2944),o=a(1943).bg;function h(b,p,E,g){this.gl=b,this.buffer=p,this.vao=E,this.shader=g}var f=h.prototype;f.draw=function(b,p,E,g,c,y){for(var A=!1,M=0;M<3;++M)A=A||c[M];if(A){var R=this.gl;R.enable(R.POLYGON_OFFSET_FILL),R.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,view:p,projection:E,bounds:g,enable:c,colors:y},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),R.disable(R.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function u(b){for(var p=[],E=[],g=0,c=0;c<3;++c)for(var y=(c+1)%3,A=(c+2)%3,M=[0,0,0],R=[0,0,0],T=-1;T<=1;T+=2){E.push(g,g+2,g+1,g+1,g+2,g+3),M[c]=T,R[c]=T;for(var L=-1;L<=1;L+=2){M[y]=L;for(var P=-1;P<=1;P+=2)M[A]=P,p.push(M[0],M[1],M[2],R[0],R[1],R[2]),g+=1}var d=y;y=A,A=d}var k=n(b,new Float32Array(p)),I=n(b,new Uint16Array(E),b.ELEMENT_ARRAY_BUFFER),N=s(b,[{buffer:k,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:k,type:b.FLOAT,size:3,offset:12,stride:24}],I),B=o(b);return B.attributes.position.location=0,B.attributes.normal.location=1,new h(b,k,N,B)}},2864:function(v,m,a){v.exports=T;var n=a(2288),s=a(104),o=a(4670),h=a(417),f=new Array(16),u=new Array(8),b=new Array(8),p=new Array(3),E=[0,0,0];(function(){for(var L=0;L<8;++L)u[L]=[1,1,1,1],b[L]=[1,1,1]})();function g(L,P,d){for(var k=0;k<4;++k){L[k]=d[12+k];for(var I=0;I<3;++I)L[k]+=P[I]*d[4*I+k]}}var c=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function y(L){for(var P=0;Pae&&(H|=1<<$);continue}for(var fe=0;fe<2;++fe){var Q=fe<<$,J=Q+(fe<ae){H|=1<<$;continue}}}for(var ne=7^H,ce=-1,B=0;B<8;++B)B===H||B===ne||(ce<0||b[ce][1]>b[B][1])&&(ce=B);for(var re=-1,B=0;B<3;++B){var ee=ce^1<b[de][0]&&(de=ee)}}var le=A;le[0]=le[1]=le[2]=0,le[n.log2(re^ce)]=ce&re,le[n.log2(ce^de)]=ce&de;var he=de^7;he===H||he===ne?(he=re^7,le[n.log2(de^he)]=he&de):le[n.log2(re^he)]=he&re;for(var xe=M,Ee=H,$=0;$<3;++$)Ee&1<<$?xe[$]=-1:xe[$]=1;return R}},1681:function(v,m,a){v.exports=A;var n=a(5827),s=a(2944),o=a(1943).j,h=[0,0,0],f=[0,0,0],u=[0,0,0],b=[0,0,0],p=[1,1];function E(M){return M[0]=M[1]=M[2]=0,M}function g(M,R){return M[0]=R[0],M[1]=R[1],M[2]=R[2],M}function c(M,R,T,L,P,d,k,I){this.gl=M,this.vertBuffer=R,this.vao=T,this.shader=L,this.tickCount=P,this.tickOffset=d,this.gridCount=k,this.gridOffset=I}var y=c.prototype;y.bind=function(M,R,T){this.shader.bind(),this.shader.uniforms.model=M,this.shader.uniforms.view=R,this.shader.uniforms.projection=T,p[0]=this.gl.drawingBufferWidth,p[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=p,this.vao.bind()},y.unbind=function(){this.vao.unbind()},y.drawAxisLine=function(M,R,T,L,P){var d=E(f);this.shader.uniforms.majorAxis=f,d[M]=R[1][M]-R[0][M],this.shader.uniforms.minorAxis=d;var k=g(b,T);k[M]+=R[0][M],this.shader.uniforms.offset=k,this.shader.uniforms.lineWidth=P,this.shader.uniforms.color=L;var I=E(u);I[(M+2)%3]=1,this.shader.uniforms.screenAxis=I,this.vao.draw(this.gl.TRIANGLES,6);var I=E(u);I[(M+1)%3]=1,this.shader.uniforms.screenAxis=I,this.vao.draw(this.gl.TRIANGLES,6)},y.drawAxisTicks=function(M,R,T,L,P){if(this.tickCount[M]){var d=E(h);d[M]=1,this.shader.uniforms.majorAxis=d,this.shader.uniforms.offset=R,this.shader.uniforms.minorAxis=T,this.shader.uniforms.color=L,this.shader.uniforms.lineWidth=P;var k=E(u);k[M]=1,this.shader.uniforms.screenAxis=k,this.vao.draw(this.gl.TRIANGLES,this.tickCount[M],this.tickOffset[M])}},y.drawGrid=function(M,R,T,L,P,d){if(this.gridCount[M]){var k=E(f);k[R]=T[1][R]-T[0][R],this.shader.uniforms.minorAxis=k;var I=g(b,L);I[R]+=T[0][R],this.shader.uniforms.offset=I;var N=E(h);N[M]=1,this.shader.uniforms.majorAxis=N;var B=E(u);B[M]=1,this.shader.uniforms.screenAxis=B,this.shader.uniforms.lineWidth=d,this.shader.uniforms.color=P,this.vao.draw(this.gl.TRIANGLES,this.gridCount[M],this.gridOffset[M])}},y.drawZero=function(M,R,T,L,P,d){var k=E(f);this.shader.uniforms.majorAxis=k,k[M]=T[1][M]-T[0][M],this.shader.uniforms.minorAxis=k;var I=g(b,L);I[M]+=T[0][M],this.shader.uniforms.offset=I;var N=E(u);N[R]=1,this.shader.uniforms.screenAxis=N,this.shader.uniforms.lineWidth=d,this.shader.uniforms.color=P,this.vao.draw(this.gl.TRIANGLES,6)},y.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()};function A(M,R,T){var L=[],P=[0,0,0],d=[0,0,0],k=[0,0,0],I=[0,0,0];L.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var N=0;N<3;++N){for(var U=L.length/3|0,B=0;B=0;--ee){var de=oe[re[ee]];P.push(J*de[0],-J*de[1],V)}}for(var k=[0,0,0],I=[0,0,0],N=[0,0,0],B=[0,0,0],G=1.25,U={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},H=0;H<3;++H){N[H]=P.length/b|0,d(.5*(A[0][H]+A[1][H]),M[H],R[H],12,G,U),B[H]=(P.length/b|0)-N[H],k[H]=P.length/b|0;for(var W=0;W=0&&(b=f.length-u-1);var p=Math.pow(10,b),E=Math.round(o*h*p),g=E+"";if(g.indexOf("e")>=0)return g;var c=E/p,x=E%p;E<0?(c=-Math.ceil(c)|0,x=-x|0):(c=Math.floor(c)|0,x=x|0);var A=""+c;if(E<0&&(A="-"+A),b){for(var M=""+x;M.length=o[0][u];--p)b.push({x:p*h[u],text:a(h[u],p)});f.push(b)}return f}function s(o,h){for(var f=0;f<3;++f){if(o[f].length!==h[f].length)return!1;for(var u=0;uA)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return c.bufferSubData(x,T,R),A}function p(c,x){for(var A=n.malloc(c.length,x),M=c.length,R=0;R=0;--M){if(x[M]!==A)return!1;A*=c[M]}return!0}u.update=function(c,x){if(typeof x!="number"&&(x=-1),this.bind(),typeof c=="object"&&typeof c.shape<"u"){var A=c.dtype;if(h.indexOf(A)<0&&(A="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var M=gl.getExtension("OES_element_index_uint");M&&A!=="uint16"?A="uint32":A="uint16"}if(A===c.dtype&&E(c.shape,c.stride))c.offset===0&&c.data.length===c.shape[0]?this.length=b(this.gl,this.type,this.length,this.usage,c.data,x):this.length=b(this.gl,this.type,this.length,this.usage,c.data.subarray(c.offset,c.shape[0]),x);else{var R=n.malloc(c.size,A),T=o(R,c.shape);s.assign(T,c),x<0?this.length=b(this.gl,this.type,this.length,this.usage,R,x):this.length=b(this.gl,this.type,this.length,this.usage,R.subarray(0,c.size),x),n.free(R)}}else if(Array.isArray(c)){var L;this.type===this.gl.ELEMENT_ARRAY_BUFFER?L=p(c,"uint16"):L=p(c,"float32"),x<0?this.length=b(this.gl,this.type,this.length,this.usage,L,x):this.length=b(this.gl,this.type,this.length,this.usage,L.subarray(0,c.length),x),n.free(L)}else if(typeof c=="object"&&typeof c.length=="number")this.length=b(this.gl,this.type,this.length,this.usage,c,x);else if(typeof c=="number"||c===void 0){if(x>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");c=c|0,c<=0&&(c=1),this.gl.bufferData(this.type,c|0,this.usage),this.length=c}else throw new Error("gl-buffer: Invalid data type")};function g(c,x,A,M){if(A=A||c.ARRAY_BUFFER,M=M||c.DYNAMIC_DRAW,A!==c.ARRAY_BUFFER&&A!==c.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(M!==c.DYNAMIC_DRAW&&M!==c.STATIC_DRAW&&M!==c.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var R=c.createBuffer(),T=new f(c,A,R,0,M);return T.update(x),T}v.exports=g},1140:function(v,m,a){var n=a(2858);v.exports=function(o,h){var f=o.positions,u=o.vectors,b={positions:[],vertexIntensity:[],vertexIntensityBounds:o.vertexIntensityBounds,vectors:[],cells:[],coneOffset:o.coneOffset,colormap:o.colormap};if(o.positions.length===0)return h&&(h[0]=[0,0,0],h[1]=[0,0,0]),b;for(var p=0,E=1/0,g=-1/0,c=1/0,x=-1/0,A=1/0,M=-1/0,R=null,T=null,L=[],P=1/0,d=!1,k=0;kp&&(p=n.length(N)),k){var B=2*n.distance(R,I)/(n.length(T)+n.length(N));B?(P=Math.min(P,B),d=!1):d=!0}d||(R=I,T=N),L.push(N)}var G=[E,c,A],U=[g,x,M];h&&(h[0]=G,h[1]=U),p===0&&(p=1);var H=1/p;isFinite(P)||(P=1),b.vectorScale=P;var W=o.coneSize||.5;o.absoluteConeSize&&(W=o.absoluteConeSize*H),b.coneScale=W;for(var k=0,V=0;k=1},c.isTransparent=function(){return this.opacity<1},c.pickSlots=1,c.setPickBase=function(L){this.pickId=L};function x(L){for(var P=p({colormap:L,nshades:256,format:"rgba"}),d=new Uint8Array(256*4),k=0;k<256;++k){for(var I=P[k],N=0;N<3;++N)d[4*k+N]=I[N];d[4*k+3]=I[3]*255}return b(d,[256,256,4],[4,0,1])}function A(L){for(var P=L.length,d=new Array(P),k=0;k0){var $=this.triShader;$.bind(),$.uniforms=G,this.triangleVAO.bind(),P.drawArrays(P.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},c.drawPick=function(L){L=L||{};for(var P=this.gl,d=L.model||E,k=L.view||E,I=L.projection||E,N=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],B=0;B<3;++B)N[0][B]=Math.max(N[0][B],this.clipBounds[0][B]),N[1][B]=Math.min(N[1][B],this.clipBounds[1][B]);this._model=[].slice.call(d),this._view=[].slice.call(k),this._projection=[].slice.call(I),this._resolution=[P.drawingBufferWidth,P.drawingBufferHeight];var G={model:d,view:k,projection:I,clipBounds:N,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},U=this.pickShader;U.bind(),U.uniforms=G,this.triangleCount>0&&(this.triangleVAO.bind(),P.drawArrays(P.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},c.pick=function(L){if(!L||L.id!==this.pickId)return null;var P=L.value[0]+256*L.value[1]+65536*L.value[2],d=this.cells[P],k=this.positions[d[1]].slice(0,3),I={position:k,dataCoordinate:k,index:Math.floor(d[1]/48)};return this.traceType==="cone"?I.index=Math.floor(d[1]/48):this.traceType==="streamtube"&&(I.intensity=this.intensity[d[1]],I.velocity=this.vectors[d[1]].slice(0,3),I.divergence=this.vectors[d[1]][3],I.index=P),I},c.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function M(L,P){var d=n(L,P.meshShader.vertex,P.meshShader.fragment,null,P.meshShader.attributes);return d.attributes.position.location=0,d.attributes.color.location=2,d.attributes.uv.location=3,d.attributes.vector.location=4,d}function R(L,P){var d=n(L,P.pickShader.vertex,P.pickShader.fragment,null,P.pickShader.attributes);return d.attributes.position.location=0,d.attributes.id.location=1,d.attributes.vector.location=4,d}function T(L,P,d){var k=d.shaders;arguments.length===1&&(P=L,L=P.gl);var I=M(L,k),N=R(L,k),B=h(L,b(new Uint8Array([255,255,255,255]),[1,1,4]));B.generateMipmap(),B.minFilter=L.LINEAR_MIPMAP_LINEAR,B.magFilter=L.LINEAR;var G=s(L),U=s(L),H=s(L),W=s(L),V=s(L),$=o(L,[{buffer:G,type:L.FLOAT,size:4},{buffer:V,type:L.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:H,type:L.FLOAT,size:4},{buffer:W,type:L.FLOAT,size:2},{buffer:U,type:L.FLOAT,size:4}]),Z=new g(L,B,I,N,G,U,V,H,W,$,d.traceType||"cone");return Z.update(P),Z}v.exports=T},7234:function(v,m,a){var n=a(6832),s=n([`precision highp float; +}`]);m.bg=function(E){return s(E,b,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},9557:function(v,m,a){v.exports=y;var n=a(5827),s=a(2944),o=a(875),h=a(1943).f,f=window||l.global||{},u=f.__TEXT_CACHE||{};f.__TEXT_CACHE={};var b=3;function p(A,M,R,T){this.gl=A,this.shader=M,this.buffer=R,this.vao=T,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var E=p.prototype,g=[0,0];E.bind=function(A,M,R,T){this.vao.bind(),this.shader.bind();var L=this.shader.uniforms;L.model=A,L.view=M,L.projection=R,L.pixelScale=T,g[0]=this.gl.drawingBufferWidth,g[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=g},E.unbind=function(){this.vao.unbind()},E.update=function(A,M,R,T,L){var P=[];function d(V,$,Z,q,ae,ie){var fe=u[Z];fe||(fe=u[Z]={});var Q=fe[$];Q||(Q=fe[$]=c($,{triangles:!0,font:Z,textAlign:"center",textBaseline:"middle",lineSpacing:ae,styletags:ie}));for(var J=(q||12)/12,oe=Q.positions,K=Q.cells,ne=0,ce=K.length;ne=0;--ee){var de=oe[re[ee]];P.push(J*de[0],-J*de[1],V)}}for(var k=[0,0,0],I=[0,0,0],N=[0,0,0],B=[0,0,0],G=1.25,U={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},H=0;H<3;++H){N[H]=P.length/b|0,d(.5*(A[0][H]+A[1][H]),M[H],R[H],12,G,U),B[H]=(P.length/b|0)-N[H],k[H]=P.length/b|0;for(var W=0;W=0&&(b=f.length-u-1);var p=Math.pow(10,b),E=Math.round(o*h*p),g=E+"";if(g.indexOf("e")>=0)return g;var c=E/p,y=E%p;E<0?(c=-Math.ceil(c)|0,y=-y|0):(c=Math.floor(c)|0,y=y|0);var A=""+c;if(E<0&&(A="-"+A),b){for(var M=""+y;M.length=o[0][u];--p)b.push({x:p*h[u],text:a(h[u],p)});f.push(b)}return f}function s(o,h){for(var f=0;f<3;++f){if(o[f].length!==h[f].length)return!1;for(var u=0;uA)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return c.bufferSubData(y,T,R),A}function p(c,y){for(var A=n.malloc(c.length,y),M=c.length,R=0;R=0;--M){if(y[M]!==A)return!1;A*=c[M]}return!0}u.update=function(c,y){if(typeof y!="number"&&(y=-1),this.bind(),typeof c=="object"&&typeof c.shape<"u"){var A=c.dtype;if(h.indexOf(A)<0&&(A="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var M=gl.getExtension("OES_element_index_uint");M&&A!=="uint16"?A="uint32":A="uint16"}if(A===c.dtype&&E(c.shape,c.stride))c.offset===0&&c.data.length===c.shape[0]?this.length=b(this.gl,this.type,this.length,this.usage,c.data,y):this.length=b(this.gl,this.type,this.length,this.usage,c.data.subarray(c.offset,c.shape[0]),y);else{var R=n.malloc(c.size,A),T=o(R,c.shape);s.assign(T,c),y<0?this.length=b(this.gl,this.type,this.length,this.usage,R,y):this.length=b(this.gl,this.type,this.length,this.usage,R.subarray(0,c.size),y),n.free(R)}}else if(Array.isArray(c)){var L;this.type===this.gl.ELEMENT_ARRAY_BUFFER?L=p(c,"uint16"):L=p(c,"float32"),y<0?this.length=b(this.gl,this.type,this.length,this.usage,L,y):this.length=b(this.gl,this.type,this.length,this.usage,L.subarray(0,c.length),y),n.free(L)}else if(typeof c=="object"&&typeof c.length=="number")this.length=b(this.gl,this.type,this.length,this.usage,c,y);else if(typeof c=="number"||c===void 0){if(y>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");c=c|0,c<=0&&(c=1),this.gl.bufferData(this.type,c|0,this.usage),this.length=c}else throw new Error("gl-buffer: Invalid data type")};function g(c,y,A,M){if(A=A||c.ARRAY_BUFFER,M=M||c.DYNAMIC_DRAW,A!==c.ARRAY_BUFFER&&A!==c.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(M!==c.DYNAMIC_DRAW&&M!==c.STATIC_DRAW&&M!==c.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var R=c.createBuffer(),T=new f(c,A,R,0,M);return T.update(y),T}v.exports=g},1140:function(v,m,a){var n=a(2858);v.exports=function(o,h){var f=o.positions,u=o.vectors,b={positions:[],vertexIntensity:[],vertexIntensityBounds:o.vertexIntensityBounds,vectors:[],cells:[],coneOffset:o.coneOffset,colormap:o.colormap};if(o.positions.length===0)return h&&(h[0]=[0,0,0],h[1]=[0,0,0]),b;for(var p=0,E=1/0,g=-1/0,c=1/0,y=-1/0,A=1/0,M=-1/0,R=null,T=null,L=[],P=1/0,d=!1,k=0;kp&&(p=n.length(N)),k){var B=2*n.distance(R,I)/(n.length(T)+n.length(N));B?(P=Math.min(P,B),d=!1):d=!0}d||(R=I,T=N),L.push(N)}var G=[E,c,A],U=[g,y,M];h&&(h[0]=G,h[1]=U),p===0&&(p=1);var H=1/p;isFinite(P)||(P=1),b.vectorScale=P;var W=o.coneSize||.5;o.absoluteConeSize&&(W=o.absoluteConeSize*H),b.coneScale=W;for(var k=0,V=0;k=1},c.isTransparent=function(){return this.opacity<1},c.pickSlots=1,c.setPickBase=function(L){this.pickId=L};function y(L){for(var P=p({colormap:L,nshades:256,format:"rgba"}),d=new Uint8Array(256*4),k=0;k<256;++k){for(var I=P[k],N=0;N<3;++N)d[4*k+N]=I[N];d[4*k+3]=I[3]*255}return b(d,[256,256,4],[4,0,1])}function A(L){for(var P=L.length,d=new Array(P),k=0;k0){var $=this.triShader;$.bind(),$.uniforms=G,this.triangleVAO.bind(),P.drawArrays(P.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},c.drawPick=function(L){L=L||{};for(var P=this.gl,d=L.model||E,k=L.view||E,I=L.projection||E,N=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],B=0;B<3;++B)N[0][B]=Math.max(N[0][B],this.clipBounds[0][B]),N[1][B]=Math.min(N[1][B],this.clipBounds[1][B]);this._model=[].slice.call(d),this._view=[].slice.call(k),this._projection=[].slice.call(I),this._resolution=[P.drawingBufferWidth,P.drawingBufferHeight];var G={model:d,view:k,projection:I,clipBounds:N,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},U=this.pickShader;U.bind(),U.uniforms=G,this.triangleCount>0&&(this.triangleVAO.bind(),P.drawArrays(P.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},c.pick=function(L){if(!L||L.id!==this.pickId)return null;var P=L.value[0]+256*L.value[1]+65536*L.value[2],d=this.cells[P],k=this.positions[d[1]].slice(0,3),I={position:k,dataCoordinate:k,index:Math.floor(d[1]/48)};return this.traceType==="cone"?I.index=Math.floor(d[1]/48):this.traceType==="streamtube"&&(I.intensity=this.intensity[d[1]],I.velocity=this.vectors[d[1]].slice(0,3),I.divergence=this.vectors[d[1]][3],I.index=P),I},c.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function M(L,P){var d=n(L,P.meshShader.vertex,P.meshShader.fragment,null,P.meshShader.attributes);return d.attributes.position.location=0,d.attributes.color.location=2,d.attributes.uv.location=3,d.attributes.vector.location=4,d}function R(L,P){var d=n(L,P.pickShader.vertex,P.pickShader.fragment,null,P.pickShader.attributes);return d.attributes.position.location=0,d.attributes.id.location=1,d.attributes.vector.location=4,d}function T(L,P,d){var k=d.shaders;arguments.length===1&&(P=L,L=P.gl);var I=M(L,k),N=R(L,k),B=h(L,b(new Uint8Array([255,255,255,255]),[1,1,4]));B.generateMipmap(),B.minFilter=L.LINEAR_MIPMAP_LINEAR,B.magFilter=L.LINEAR;var G=s(L),U=s(L),H=s(L),W=s(L),V=s(L),$=o(L,[{buffer:G,type:L.FLOAT,size:4},{buffer:V,type:L.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:H,type:L.FLOAT,size:4},{buffer:W,type:L.FLOAT,size:2},{buffer:U,type:L.FLOAT,size:4}]),Z=new g(L,B,I,N,G,U,V,H,W,$,d.traceType||"cone");return Z.update(P),Z}v.exports=T},7234:function(v,m,a){var n=a(6832),s=n([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -900,7 +900,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);m.meshShader={vertex:s,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},m.pickShader={vertex:h,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},1950:function(v){v.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},6603:function(v,m,a){var n=a(1950);v.exports=function(o){return n[o]}},3110:function(v,m,a){v.exports=g;var n=a(5827),s=a(2944),o=a(7667),h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(c,x,A,M){this.gl=c,this.shader=M,this.buffer=x,this.vao=A,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var u=f.prototype;u.isOpaque=function(){return!this.hasAlpha},u.isTransparent=function(){return this.hasAlpha},u.drawTransparent=u.draw=function(c){var x=this.gl,A=this.shader.uniforms;this.shader.bind();var M=A.view=c.view||h,R=A.projection=c.projection||h;A.model=c.model||h,A.clipBounds=this.clipBounds,A.opacity=this.opacity;var T=M[12],L=M[13],P=M[14],d=M[15],k=c._ortho||!1,I=k?2:1,N=I*this.pixelRatio*(R[3]*T+R[7]*L+R[11]*P+R[15]*d)/x.drawingBufferHeight;this.vao.bind();for(var B=0;B<3;++B)x.lineWidth(this.lineWidth[B]*this.pixelRatio),A.capSize=this.capSize[B]*N,this.lineCount[B]&&x.drawArrays(x.LINES,this.lineOffset[B],this.lineCount[B]);this.vao.unbind()};function b(c,x){for(var A=0;A<3;++A)c[0][A]=Math.min(c[0][A],x[A]),c[1][A]=Math.max(c[1][A],x[A])}var p=function(){for(var c=new Array(3),x=0;x<3;++x){for(var A=[],M=1;M<=2;++M)for(var R=-1;R<=1;R+=2){var T=(M+x)%3,L=[0,0,0];L[T]=R,A.push(L)}c[x]=A}return c}();function E(c,x,A,M){for(var R=p[M],T=0;T0){var G=k.slice();G[P]+=N[1][P],R.push(k[0],k[1],k[2],B[0],B[1],B[2],B[3],0,0,0,G[0],G[1],G[2],B[0],B[1],B[2],B[3],0,0,0),b(this.bounds,G),L+=2+E(R,G,B,P)}}}this.lineCount[P]=L-this.lineOffset[P]}this.buffer.update(R)}},u.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function g(c){var x=c.gl,A=n(x),M=s(x,[{buffer:A,type:x.FLOAT,size:3,offset:0,stride:40},{buffer:A,type:x.FLOAT,size:4,offset:12,stride:40},{buffer:A,type:x.FLOAT,size:3,offset:28,stride:40}]),R=o(x);R.attributes.position.location=0,R.attributes.color.location=1,R.attributes.offset.location=2;var T=new f(x,A,M,R);return T.update(c),T}},7667:function(v,m,a){var n=a(6832),s=a(5158),o=n([`precision highp float; +}`]);m.meshShader={vertex:s,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},m.pickShader={vertex:h,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},1950:function(v){v.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},6603:function(v,m,a){var n=a(1950);v.exports=function(o){return n[o]}},3110:function(v,m,a){v.exports=g;var n=a(5827),s=a(2944),o=a(7667),h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(c,y,A,M){this.gl=c,this.shader=M,this.buffer=y,this.vao=A,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var u=f.prototype;u.isOpaque=function(){return!this.hasAlpha},u.isTransparent=function(){return this.hasAlpha},u.drawTransparent=u.draw=function(c){var y=this.gl,A=this.shader.uniforms;this.shader.bind();var M=A.view=c.view||h,R=A.projection=c.projection||h;A.model=c.model||h,A.clipBounds=this.clipBounds,A.opacity=this.opacity;var T=M[12],L=M[13],P=M[14],d=M[15],k=c._ortho||!1,I=k?2:1,N=I*this.pixelRatio*(R[3]*T+R[7]*L+R[11]*P+R[15]*d)/y.drawingBufferHeight;this.vao.bind();for(var B=0;B<3;++B)y.lineWidth(this.lineWidth[B]*this.pixelRatio),A.capSize=this.capSize[B]*N,this.lineCount[B]&&y.drawArrays(y.LINES,this.lineOffset[B],this.lineCount[B]);this.vao.unbind()};function b(c,y){for(var A=0;A<3;++A)c[0][A]=Math.min(c[0][A],y[A]),c[1][A]=Math.max(c[1][A],y[A])}var p=function(){for(var c=new Array(3),y=0;y<3;++y){for(var A=[],M=1;M<=2;++M)for(var R=-1;R<=1;R+=2){var T=(M+y)%3,L=[0,0,0];L[T]=R,A.push(L)}c[y]=A}return c}();function E(c,y,A,M){for(var R=p[M],T=0;T0){var G=k.slice();G[P]+=N[1][P],R.push(k[0],k[1],k[2],B[0],B[1],B[2],B[3],0,0,0,G[0],G[1],G[2],B[0],B[1],B[2],B[3],0,0,0),b(this.bounds,G),L+=2+E(R,G,B,P)}}}this.lineCount[P]=L-this.lineOffset[P]}this.buffer.update(R)}},u.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function g(c){var y=c.gl,A=n(y),M=s(y,[{buffer:A,type:y.FLOAT,size:3,offset:0,stride:40},{buffer:A,type:y.FLOAT,size:4,offset:12,stride:40},{buffer:A,type:y.FLOAT,size:3,offset:28,stride:40}]),R=o(y);R.attributes.position.location=0,R.attributes.color.location=1,R.attributes.offset.location=2;var T=new f(y,A,M,R);return T.update(c),T}},7667:function(v,m,a){var n=a(6832),s=a(5158),o=n([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -951,13 +951,13 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);v.exports=function(f){return s(f,o,h,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},4234:function(v,m,a){var n=a(8931);v.exports=L;var s=null,o,h,f,u;function b(P){var d=P.getParameter(P.FRAMEBUFFER_BINDING),k=P.getParameter(P.RENDERBUFFER_BINDING),I=P.getParameter(P.TEXTURE_BINDING_2D);return[d,k,I]}function p(P,d){P.bindFramebuffer(P.FRAMEBUFFER,d[0]),P.bindRenderbuffer(P.RENDERBUFFER,d[1]),P.bindTexture(P.TEXTURE_2D,d[2])}function E(P,d){var k=P.getParameter(d.MAX_COLOR_ATTACHMENTS_WEBGL);s=new Array(k+1);for(var I=0;I<=k;++I){for(var N=new Array(k),B=0;B1&&U.drawBuffersWEBGL(s[G]);var Z=k.getExtension("WEBGL_depth_texture");Z?H?P.depth=c(k,N,B,Z.UNSIGNED_INT_24_8_WEBGL,k.DEPTH_STENCIL,k.DEPTH_STENCIL_ATTACHMENT):W&&(P.depth=c(k,N,B,k.UNSIGNED_SHORT,k.DEPTH_COMPONENT,k.DEPTH_ATTACHMENT)):W&&H?P._depth_rb=x(k,N,B,k.DEPTH_STENCIL,k.DEPTH_STENCIL_ATTACHMENT):W?P._depth_rb=x(k,N,B,k.DEPTH_COMPONENT16,k.DEPTH_ATTACHMENT):H&&(P._depth_rb=x(k,N,B,k.STENCIL_INDEX,k.STENCIL_ATTACHMENT));var q=k.checkFramebufferStatus(k.FRAMEBUFFER);if(q!==k.FRAMEBUFFER_COMPLETE){P._destroyed=!0,k.bindFramebuffer(k.FRAMEBUFFER,null),k.deleteFramebuffer(P.handle),P.handle=null,P.depth&&(P.depth.dispose(),P.depth=null),P._depth_rb&&(k.deleteRenderbuffer(P._depth_rb),P._depth_rb=null);for(var $=0;$N||k<0||k>N)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");P._shape[0]=d,P._shape[1]=k;for(var B=b(I),G=0;GB||k<0||k>B)throw new Error("gl-fbo: Parameters are too large for FBO");I=I||{};var G=1;if("color"in I){if(G=Math.max(I.color|0,0),G<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(G>1)if(N){if(G>P.getParameter(N.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+G+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var U=P.UNSIGNED_BYTE,H=P.getExtension("OES_texture_float");if(I.float&&G>0){if(!H)throw new Error("gl-fbo: Context does not support floating point textures");U=P.FLOAT}else I.preferFloat&&G>0&&H&&(U=P.FLOAT);var W=!0;"depth"in I&&(W=!!I.depth);var V=!1;return"stencil"in I&&(V=!!I.stencil),new M(P,d,k,U,G,W,V,N)}},3530:function(v,m,a){var n=a(8974).sprintf,s=a(6603),o=a(9365),h=a(8008);v.exports=f;function f(u,b,p){var E=o(b)||"of unknown name (see npm glsl-shader-name)",g="unknown type";p!==void 0&&(g=p===s.FRAGMENT_SHADER?"fragment":"vertex");for(var c=n(`Error compiling %s shader %s: -`,g,E),x=n("%s%s",c,u),A=u.split(` +}`]);v.exports=function(f){return s(f,o,h,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},4234:function(v,m,a){var n=a(8931);v.exports=L;var s=null,o,h,f,u;function b(P){var d=P.getParameter(P.FRAMEBUFFER_BINDING),k=P.getParameter(P.RENDERBUFFER_BINDING),I=P.getParameter(P.TEXTURE_BINDING_2D);return[d,k,I]}function p(P,d){P.bindFramebuffer(P.FRAMEBUFFER,d[0]),P.bindRenderbuffer(P.RENDERBUFFER,d[1]),P.bindTexture(P.TEXTURE_2D,d[2])}function E(P,d){var k=P.getParameter(d.MAX_COLOR_ATTACHMENTS_WEBGL);s=new Array(k+1);for(var I=0;I<=k;++I){for(var N=new Array(k),B=0;B1&&U.drawBuffersWEBGL(s[G]);var Z=k.getExtension("WEBGL_depth_texture");Z?H?P.depth=c(k,N,B,Z.UNSIGNED_INT_24_8_WEBGL,k.DEPTH_STENCIL,k.DEPTH_STENCIL_ATTACHMENT):W&&(P.depth=c(k,N,B,k.UNSIGNED_SHORT,k.DEPTH_COMPONENT,k.DEPTH_ATTACHMENT)):W&&H?P._depth_rb=y(k,N,B,k.DEPTH_STENCIL,k.DEPTH_STENCIL_ATTACHMENT):W?P._depth_rb=y(k,N,B,k.DEPTH_COMPONENT16,k.DEPTH_ATTACHMENT):H&&(P._depth_rb=y(k,N,B,k.STENCIL_INDEX,k.STENCIL_ATTACHMENT));var q=k.checkFramebufferStatus(k.FRAMEBUFFER);if(q!==k.FRAMEBUFFER_COMPLETE){P._destroyed=!0,k.bindFramebuffer(k.FRAMEBUFFER,null),k.deleteFramebuffer(P.handle),P.handle=null,P.depth&&(P.depth.dispose(),P.depth=null),P._depth_rb&&(k.deleteRenderbuffer(P._depth_rb),P._depth_rb=null);for(var $=0;$N||k<0||k>N)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");P._shape[0]=d,P._shape[1]=k;for(var B=b(I),G=0;GB||k<0||k>B)throw new Error("gl-fbo: Parameters are too large for FBO");I=I||{};var G=1;if("color"in I){if(G=Math.max(I.color|0,0),G<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(G>1)if(N){if(G>P.getParameter(N.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+G+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var U=P.UNSIGNED_BYTE,H=P.getExtension("OES_texture_float");if(I.float&&G>0){if(!H)throw new Error("gl-fbo: Context does not support floating point textures");U=P.FLOAT}else I.preferFloat&&G>0&&H&&(U=P.FLOAT);var W=!0;"depth"in I&&(W=!!I.depth);var V=!1;return"stencil"in I&&(V=!!I.stencil),new M(P,d,k,U,G,W,V,N)}},3530:function(v,m,a){var n=a(8974).sprintf,s=a(6603),o=a(9365),h=a(8008);v.exports=f;function f(u,b,p){var E=o(b)||"of unknown name (see npm glsl-shader-name)",g="unknown type";p!==void 0&&(g=p===s.FRAGMENT_SHADER?"fragment":"vertex");for(var c=n(`Error compiling %s shader %s: +`,g,E),y=n("%s%s",c,u),A=u.split(` `),M={},R=0;R>G*8&255;this.pickOffset=A,R.bind();var U=R.uniforms;U.viewTransform=c,U.pickOffset=x,U.shape=this.shape;var H=R.attributes;return this.positionBuffer.bind(),H.position.pointer(),this.weightBuffer.bind(),H.weight.pointer(P.UNSIGNED_BYTE,!1),this.idBuffer.bind(),H.pickId.pointer(P.UNSIGNED_BYTE,!1),P.drawArrays(P.TRIANGLES,0,L),A+this.shape[0]*this.shape[1]}}}(),p.pick=function(c,x,A){var M=this.pickOffset,R=this.shape[0]*this.shape[1];if(A=M+R)return null;var T=A-M,L=this.xData,P=this.yData;return{object:this,pointId:T,dataCoord:[L[T%this.shape[0]],P[T/this.shape[0]|0]]}},p.update=function(c){c=c||{};var x=c.shape||[0,0],A=c.x||s(x[0]),M=c.y||s(x[1]),R=c.z||new Float32Array(x[0]*x[1]),T=c.zsmooth!==!1;this.xData=A,this.yData=M;var L=c.colorLevels||[0],P=c.colorValues||[0,0,0,1],d=L.length,k=this.bounds,I,N,B,G;T?(I=k[0]=A[0],N=k[1]=M[0],B=k[2]=A[A.length-1],G=k[3]=M[M.length-1]):(I=k[0]=A[0]+(A[1]-A[0])/2,N=k[1]=M[0]+(M[1]-M[0])/2,B=k[2]=A[A.length-1]+(A[A.length-1]-A[A.length-2])/2,G=k[3]=M[M.length-1]+(M[M.length-1]-M[M.length-2])/2);var U=1/(B-I),H=1/(G-N),W=x[0],V=x[1];this.shape=[W,V];var $=(T?(W-1)*(V-1):W*V)*(E.length>>>1);this.numVertices=$;for(var Z=o.mallocUint8($*4),q=o.mallocFloat32($*2),ae=o.mallocUint8($*2),ie=o.mallocUint32($),fe=0,Q=T?W-1:W,J=T?V-1:V,oe=0;oe>G*8&255;this.pickOffset=A,R.bind();var U=R.uniforms;U.viewTransform=c,U.pickOffset=y,U.shape=this.shape;var H=R.attributes;return this.positionBuffer.bind(),H.position.pointer(),this.weightBuffer.bind(),H.weight.pointer(P.UNSIGNED_BYTE,!1),this.idBuffer.bind(),H.pickId.pointer(P.UNSIGNED_BYTE,!1),P.drawArrays(P.TRIANGLES,0,L),A+this.shape[0]*this.shape[1]}}}(),p.pick=function(c,y,A){var M=this.pickOffset,R=this.shape[0]*this.shape[1];if(A=M+R)return null;var T=A-M,L=this.xData,P=this.yData;return{object:this,pointId:T,dataCoord:[L[T%this.shape[0]],P[T/this.shape[0]|0]]}},p.update=function(c){c=c||{};var y=c.shape||[0,0],A=c.x||s(y[0]),M=c.y||s(y[1]),R=c.z||new Float32Array(y[0]*y[1]),T=c.zsmooth!==!1;this.xData=A,this.yData=M;var L=c.colorLevels||[0],P=c.colorValues||[0,0,0,1],d=L.length,k=this.bounds,I,N,B,G;T?(I=k[0]=A[0],N=k[1]=M[0],B=k[2]=A[A.length-1],G=k[3]=M[M.length-1]):(I=k[0]=A[0]+(A[1]-A[0])/2,N=k[1]=M[0]+(M[1]-M[0])/2,B=k[2]=A[A.length-1]+(A[A.length-1]-A[A.length-2])/2,G=k[3]=M[M.length-1]+(M[M.length-1]-M[M.length-2])/2);var U=1/(B-I),H=1/(G-N),W=y[0],V=y[1];this.shape=[W,V];var $=(T?(W-1)*(V-1):W*V)*(E.length>>>1);this.numVertices=$;for(var Z=o.mallocUint8($*4),q=o.mallocFloat32($*2),ae=o.mallocUint8($*2),ie=o.mallocUint32($),fe=0,Q=T?W-1:W,J=T?V-1:V,oe=0;oe0){for(var Q=0;Q<24;++Q)B.push(B[B.length-12]);W+=2,ae=!0}continue e}V[0][I]=Math.min(V[0][I],ie[I],fe[I]),V[1][I]=Math.max(V[1][I],ie[I],fe[I])}var J,oe;Array.isArray(Z[0])?(J=Z.length>k-1?Z[k-1]:Z.length>0?Z[Z.length-1]:[0,0,0,1],oe=Z.length>k?Z[k]:Z.length>0?Z[Z.length-1]:[0,0,0,1]):J=oe=Z,J.length===3&&(J=[J[0],J[1],J[2],1]),oe.length===3&&(oe=[oe[0],oe[1],oe[2],1]),!this.hasAlpha&&J[3]<1&&(this.hasAlpha=!0);var K;Array.isArray(q)?K=q.length>k-1?q[k-1]:q.length>0?q[q.length-1]:[0,0,0,1]:K=q;var ne=H;if(H+=A(ie,fe),ae){for(I=0;I<2;++I)B.push(ie[0],ie[1],ie[2],fe[0],fe[1],fe[2],ne,K,J[0],J[1],J[2],J[3]);W+=2,ae=!1}B.push(ie[0],ie[1],ie[2],fe[0],fe[1],fe[2],ne,K,J[0],J[1],J[2],J[3],ie[0],ie[1],ie[2],fe[0],fe[1],fe[2],ne,-K,J[0],J[1],J[2],J[3],fe[0],fe[1],fe[2],ie[0],ie[1],ie[2],H,-K,oe[0],oe[1],oe[2],oe[3],fe[0],fe[1],fe[2],ie[0],ie[1],ie[2],H,K,oe[0],oe[1],oe[2],oe[3]),W+=4}}if(this.buffer.update(B),G.push(H),U.push($[$.length-1].slice()),this.bounds=V,this.vertexCount=W,this.points=U,this.arcLength=G,"dashes"in d){var ce=d.dashes,re=ce.slice();for(re.unshift(0),k=1;k1.0001)return null;I+=k[R]}return Math.abs(I-1)>.001?null:[T,u(p,k),k]}},2056:function(v,m,a){var n=a(6832),s=n([`precision highp float; +}`]),u=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];m.createShader=function(b){return s(b,o,h,null,u)},m.createPickShader=function(b){return s(b,o,f,null,u)}},6086:function(v,m,a){v.exports=P;var n=a(5827),s=a(2944),o=a(8931),h=new Uint8Array(4),f=new Float32Array(h.buffer);function u(d,k,I,N){return h[0]=N,h[1]=I,h[2]=k,h[3]=d,f[0]}var b=a(5070),p=a(5050),E=a(248),g=E.createShader,c=E.createPickShader,y=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function A(d,k){for(var I=0,N=0;N<3;++N){var B=d[N]-k[N];I+=B*B}return Math.sqrt(I)}function M(d){for(var k=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],I=0;I<3;++I)k[0][I]=Math.max(d[0][I],k[0][I]),k[1][I]=Math.min(d[1][I],k[1][I]);return k}function R(d,k,I,N){this.arcLength=d,this.position=k,this.index=I,this.dataCoordinate=N}function T(d,k,I,N,B,G){this.gl=d,this.shader=k,this.pickShader=I,this.buffer=N,this.vao=B,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=G,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var L=T.prototype;L.isTransparent=function(){return this.hasAlpha},L.isOpaque=function(){return!this.hasAlpha},L.pickSlots=1,L.setPickBase=function(d){this.pickId=d},L.drawTransparent=L.draw=function(d){if(this.vertexCount){var k=this.gl,I=this.shader,N=this.vao;I.bind(),I.uniforms={model:d.model||y,view:d.view||y,projection:d.projection||y,clipBounds:M(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[k.drawingBufferWidth,k.drawingBufferHeight],pixelRatio:this.pixelRatio},N.bind(),N.draw(k.TRIANGLE_STRIP,this.vertexCount),N.unbind()}},L.drawPick=function(d){if(this.vertexCount){var k=this.gl,I=this.pickShader,N=this.vao;I.bind(),I.uniforms={model:d.model||y,view:d.view||y,projection:d.projection||y,pickId:this.pickId,clipBounds:M(this.clipBounds),screenShape:[k.drawingBufferWidth,k.drawingBufferHeight],pixelRatio:this.pixelRatio},N.bind(),N.draw(k.TRIANGLE_STRIP,this.vertexCount),N.unbind()}},L.update=function(d){var k,I;this.dirty=!0;var N=!!d.connectGaps;"dashScale"in d&&(this.dashScale=d.dashScale),this.hasAlpha=!1,"opacity"in d&&(this.opacity=+d.opacity,this.opacity<1&&(this.hasAlpha=!0));var B=[],G=[],U=[],H=0,W=0,V=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],$=d.position||d.positions;if($){var Z=d.color||d.colors||[0,0,0,1],q=d.lineWidth||1,ae=!1;e:for(k=1;k<$.length;++k){var ie=$[k-1],fe=$[k];for(G.push(H),U.push(ie.slice()),I=0;I<3;++I){if(isNaN(ie[I])||isNaN(fe[I])||!isFinite(ie[I])||!isFinite(fe[I])){if(!N&&B.length>0){for(var Q=0;Q<24;++Q)B.push(B[B.length-12]);W+=2,ae=!0}continue e}V[0][I]=Math.min(V[0][I],ie[I],fe[I]),V[1][I]=Math.max(V[1][I],ie[I],fe[I])}var J,oe;Array.isArray(Z[0])?(J=Z.length>k-1?Z[k-1]:Z.length>0?Z[Z.length-1]:[0,0,0,1],oe=Z.length>k?Z[k]:Z.length>0?Z[Z.length-1]:[0,0,0,1]):J=oe=Z,J.length===3&&(J=[J[0],J[1],J[2],1]),oe.length===3&&(oe=[oe[0],oe[1],oe[2],1]),!this.hasAlpha&&J[3]<1&&(this.hasAlpha=!0);var K;Array.isArray(q)?K=q.length>k-1?q[k-1]:q.length>0?q[q.length-1]:[0,0,0,1]:K=q;var ne=H;if(H+=A(ie,fe),ae){for(I=0;I<2;++I)B.push(ie[0],ie[1],ie[2],fe[0],fe[1],fe[2],ne,K,J[0],J[1],J[2],J[3]);W+=2,ae=!1}B.push(ie[0],ie[1],ie[2],fe[0],fe[1],fe[2],ne,K,J[0],J[1],J[2],J[3],ie[0],ie[1],ie[2],fe[0],fe[1],fe[2],ne,-K,J[0],J[1],J[2],J[3],fe[0],fe[1],fe[2],ie[0],ie[1],ie[2],H,-K,oe[0],oe[1],oe[2],oe[3],fe[0],fe[1],fe[2],ie[0],ie[1],ie[2],H,K,oe[0],oe[1],oe[2],oe[3]),W+=4}}if(this.buffer.update(B),G.push(H),U.push($[$.length-1].slice()),this.bounds=V,this.vertexCount=W,this.points=U,this.arcLength=G,"dashes"in d){var ce=d.dashes,re=ce.slice();for(re.unshift(0),k=1;k1.0001)return null;I+=k[R]}return Math.abs(I-1)>.001?null:[T,u(p,k),k]}},2056:function(v,m,a){var n=a(6832),s=n([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1544,7 +1544,7 @@ uniform mat4 model, view, projection; void main() { gl_Position = projection * view * model * vec4(position, 1.0); -}`]),x=n([`precision highp float; +}`]),y=n([`precision highp float; #define GLSLIFY 1 uniform vec3 contourColor; @@ -1552,7 +1552,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);m.meshShader={vertex:s,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},m.wireShader={vertex:h,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},m.pointShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},m.pickShader={vertex:p,fragment:E,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},m.pointPickShader={vertex:g,fragment:E,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},m.contourShader={vertex:c,fragment:x,attributes:[{name:"position",type:"vec3"}]}},8116:function(v,m,a){var n=1e-6,s=1e-6,o=a(5158),h=a(5827),f=a(2944),u=a(8931),b=a(115),p=a(104),E=a(7437),g=a(5050),c=a(9156),x=a(7212),A=a(5306),M=a(2056),R=a(4340),T=M.meshShader,L=M.wireShader,P=M.pointShader,d=M.pickShader,k=M.pointPickShader,I=M.contourShader,N=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function B(Q,J,oe,K,ne,ce,re,ee,de,le,he,xe,Ee,Se,ke,Te,Ae,be,Ie,Ue,Ne,ze,$e,st,vt,at,nt){this.gl=Q,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=J,this.dirty=!0,this.triShader=oe,this.lineShader=K,this.pointShader=ne,this.pickShader=ce,this.pointPickShader=re,this.contourShader=ee,this.trianglePositions=de,this.triangleColors=he,this.triangleNormals=Ee,this.triangleUVs=xe,this.triangleIds=le,this.triangleVAO=Se,this.triangleCount=0,this.lineWidth=1,this.edgePositions=ke,this.edgeColors=Ae,this.edgeUVs=be,this.edgeIds=Te,this.edgeVAO=Ie,this.edgeCount=0,this.pointPositions=Ue,this.pointColors=ze,this.pointUVs=$e,this.pointSizes=st,this.pointIds=Ne,this.pointVAO=vt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=at,this.contourVAO=nt,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=N,this._view=N,this._projection=N,this._resolution=[1,1]}var G=B.prototype;G.isOpaque=function(){return!this.hasAlpha},G.isTransparent=function(){return this.hasAlpha},G.pickSlots=1,G.setPickBase=function(Q){this.pickId=Q};function U(Q,J){if(!J||!J.length)return 1;for(var oe=0;oeQ&&oe>0){var K=(J[oe][0]-Q)/(J[oe][0]-J[oe-1][0]);return J[oe][1]*(1-K)+K*J[oe-1][1]}}return 1}function H(Q,J){for(var oe=c({colormap:Q,nshades:256,format:"rgba"}),K=new Uint8Array(256*4),ne=0;ne<256;++ne){for(var ce=oe[ne],re=0;re<3;++re)K[4*ne+re]=ce[re];J?K[4*ne+3]=255*U(ne/255,J):K[4*ne+3]=255*ce[3]}return g(K,[256,256,4],[4,0,1])}function W(Q){for(var J=Q.length,oe=new Array(J),K=0;K0){var Ee=this.triShader;Ee.bind(),Ee.uniforms=ee,this.triangleVAO.bind(),J.drawArrays(J.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ee=this.lineShader;Ee.bind(),Ee.uniforms=ee,this.edgeVAO.bind(),J.lineWidth(this.lineWidth*this.pixelRatio),J.drawArrays(J.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Ee=this.pointShader;Ee.bind(),Ee.uniforms=ee,this.pointVAO.bind(),J.drawArrays(J.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ee=this.contourShader;Ee.bind(),Ee.uniforms=ee,this.contourVAO.bind(),J.drawArrays(J.LINES,0,this.contourCount),this.contourVAO.unbind()}},G.drawPick=function(Q){Q=Q||{};for(var J=this.gl,oe=Q.model||N,K=Q.view||N,ne=Q.projection||N,ce=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],re=0;re<3;++re)ce[0][re]=Math.max(ce[0][re],this.clipBounds[0][re]),ce[1][re]=Math.min(ce[1][re],this.clipBounds[1][re]);this._model=[].slice.call(oe),this._view=[].slice.call(K),this._projection=[].slice.call(ne),this._resolution=[J.drawingBufferWidth,J.drawingBufferHeight];var ee={model:oe,view:K,projection:ne,clipBounds:ce,pickId:this.pickId/255},de=this.pickShader;if(de.bind(),de.uniforms=ee,this.triangleCount>0&&(this.triangleVAO.bind(),J.drawArrays(J.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),J.lineWidth(this.lineWidth*this.pixelRatio),J.drawArrays(J.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var de=this.pointPickShader;de.bind(),de.uniforms=ee,this.pointVAO.bind(),J.drawArrays(J.POINTS,0,this.pointCount),this.pointVAO.unbind()}},G.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;for(var J=Q.value[0]+256*Q.value[1]+65536*Q.value[2],oe=this.cells[J],K=this.positions,ne=new Array(oe.length),ce=0;ceQ&&oe>0){var K=(J[oe][0]-Q)/(J[oe][0]-J[oe-1][0]);return J[oe][1]*(1-K)+K*J[oe-1][1]}}return 1}function H(Q,J){for(var oe=c({colormap:Q,nshades:256,format:"rgba"}),K=new Uint8Array(256*4),ne=0;ne<256;++ne){for(var ce=oe[ne],re=0;re<3;++re)K[4*ne+re]=ce[re];J?K[4*ne+3]=255*U(ne/255,J):K[4*ne+3]=255*ce[3]}return g(K,[256,256,4],[4,0,1])}function W(Q){for(var J=Q.length,oe=new Array(J),K=0;K0){var Ee=this.triShader;Ee.bind(),Ee.uniforms=ee,this.triangleVAO.bind(),J.drawArrays(J.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ee=this.lineShader;Ee.bind(),Ee.uniforms=ee,this.edgeVAO.bind(),J.lineWidth(this.lineWidth*this.pixelRatio),J.drawArrays(J.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Ee=this.pointShader;Ee.bind(),Ee.uniforms=ee,this.pointVAO.bind(),J.drawArrays(J.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ee=this.contourShader;Ee.bind(),Ee.uniforms=ee,this.contourVAO.bind(),J.drawArrays(J.LINES,0,this.contourCount),this.contourVAO.unbind()}},G.drawPick=function(Q){Q=Q||{};for(var J=this.gl,oe=Q.model||N,K=Q.view||N,ne=Q.projection||N,ce=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],re=0;re<3;++re)ce[0][re]=Math.max(ce[0][re],this.clipBounds[0][re]),ce[1][re]=Math.min(ce[1][re],this.clipBounds[1][re]);this._model=[].slice.call(oe),this._view=[].slice.call(K),this._projection=[].slice.call(ne),this._resolution=[J.drawingBufferWidth,J.drawingBufferHeight];var ee={model:oe,view:K,projection:ne,clipBounds:ce,pickId:this.pickId/255},de=this.pickShader;if(de.bind(),de.uniforms=ee,this.triangleCount>0&&(this.triangleVAO.bind(),J.drawArrays(J.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),J.lineWidth(this.lineWidth*this.pixelRatio),J.drawArrays(J.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var de=this.pointPickShader;de.bind(),de.uniforms=ee,this.pointVAO.bind(),J.drawArrays(J.POINTS,0,this.pointCount),this.pointVAO.unbind()}},G.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;for(var J=Q.value[0]+256*Q.value[1]+65536*Q.value[2],oe=this.cells[J],K=this.positions,ne=new Array(oe.length),ce=0;ceT[ae]&&(M.uniforms.dataAxis=E,M.uniforms.screenOffset=g,M.uniforms.color=G[x],M.uniforms.angle=U[x],L.drawArrays(L.TRIANGLES,T[ae],T[ie]-T[ae]))),H[x]&&q&&(g[x^1]-=fe*I*W[x],M.uniforms.dataAxis=c,M.uniforms.screenOffset=g,M.uniforms.color=V[x],M.uniforms.angle=$[x],L.drawArrays(L.TRIANGLES,Z,q)),g[x^1]=fe*P[2+(x^1)]-1,N[x+2]&&(g[x^1]+=fe*I*B[x+2],aeT[ae]&&(M.uniforms.dataAxis=E,M.uniforms.screenOffset=g,M.uniforms.color=G[x+2],M.uniforms.angle=U[x+2],L.drawArrays(L.TRIANGLES,T[ae],T[ie]-T[ae]))),H[x+2]&&q&&(g[x^1]+=fe*I*W[x+2],M.uniforms.dataAxis=c,M.uniforms.screenOffset=g,M.uniforms.color=V[x+2],M.uniforms.angle=$[x+2],L.drawArrays(L.TRIANGLES,Z,q))}}(),b.drawTitle=function(){var E=[0,0],g=[0,0];return function(){var c=this.plot,x=this.shader,A=c.gl,M=c.screenBox,R=c.titleCenter,T=c.titleAngle,L=c.titleColor,P=c.pixelRatio;if(this.titleCount){for(var d=0;d<2;++d)g[d]=2*(R[d]*P-M[d])/(M[2+d]-M[d])-1;x.bind(),x.uniforms.dataAxis=E,x.uniforms.screenOffset=g,x.uniforms.angle=T,x.uniforms.color=L,A.drawArrays(A.TRIANGLES,this.titleOffset,this.titleCount)}}}(),b.bind=function(){var E=[0,0],g=[0,0],c=[0,0];return function(){var x=this.plot,A=this.shader,M=x._tickBounds,R=x.dataBox,T=x.screenBox,L=x.viewBox;A.bind();for(var P=0;P<2;++P){var d=M[P],k=M[P+2],I=k-d,N=.5*(R[P+2]+R[P]),B=R[P+2]-R[P],G=L[P],U=L[P+2],H=U-G,W=T[P],V=T[P+2],$=V-W;g[P]=2*I/B*H/$,E[P]=2*(d-N)/B*H/$}c[1]=2*x.pixelRatio/(T[3]-T[1]),c[0]=c[1]*(T[3]-T[1])/(T[2]-T[0]),A.uniforms.dataScale=g,A.uniforms.dataShift=E,A.uniforms.textScale=c,this.vbo.bind(),A.attributes.textCoordinate.pointer()}}(),b.update=function(E){var g=[],c=E.ticks,x=E.bounds,A,M,R,T,L;for(L=0;L<2;++L){var P=[Math.floor(g.length/3)],d=[-1/0],k=c[L];for(A=0;A=0))){var H=x[U]-M[U]*(x[U+2]-x[U])/(M[U+2]-M[U]);U===0?L.drawLine(H,x[1],H,x[3],G[U],B[U]):L.drawLine(x[0],H,x[2],H,G[U],B[U])}}for(var U=0;U=0;--c)this.objects[c].dispose();this.objects.length=0;for(var c=this.overlays.length-1;c>=0;--c)this.overlays[c].dispose();this.overlays.length=0,this.gl=null},b.addObject=function(c){this.objects.indexOf(c)<0&&(this.objects.push(c),this.setDirty())},b.removeObject=function(c){for(var x=this.objects,A=0;AMath.abs(d))c.rotate(N,0,0,-P*k*Math.PI*T.rotateSpeed/window.innerWidth);else if(!T._ortho){var B=-T.zoomSpeed*I*d/window.innerHeight*(N-c.lastT())/20;c.pan(N,0,0,A*(Math.exp(B)-1))}}},!0)},T.enableMouseListeners(),T}},8245:function(v,m,a){var n=a(6832),s=a(5158),o=n([`precision mediump float; +`])}},5613:function(v,m,a){v.exports=p;var n=a(5827),s=a(5158),o=a(6946),h=a(5070),f=a(2709);function u(E,g,c){this.plot=E,this.vbo=g,this.shader=c,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var b=u.prototype;b.drawTicks=function(){var E=[0,0],g=[0,0],c=[0,0];return function(y){var A=this.plot,M=this.shader,R=this.tickX[y],T=this.tickOffset[y],L=A.gl,P=A.viewBox,d=A.dataBox,k=A.screenBox,I=A.pixelRatio,N=A.tickEnable,B=A.tickPad,G=A.tickColor,U=A.tickAngle,H=A.labelEnable,W=A.labelPad,V=A.labelColor,$=A.labelAngle,Z=this.labelOffset[y],q=this.labelCount[y],ae=h.lt(R,d[y]),ie=h.le(R,d[y+2]);E[0]=E[1]=0,E[y]=1,g[y]=(P[2+y]+P[y])/(k[2+y]-k[y])-1;var fe=2/k[2+(y^1)]-k[y^1];g[y^1]=fe*P[y^1]-1,N[y]&&(g[y^1]-=fe*I*B[y],aeT[ae]&&(M.uniforms.dataAxis=E,M.uniforms.screenOffset=g,M.uniforms.color=G[y],M.uniforms.angle=U[y],L.drawArrays(L.TRIANGLES,T[ae],T[ie]-T[ae]))),H[y]&&q&&(g[y^1]-=fe*I*W[y],M.uniforms.dataAxis=c,M.uniforms.screenOffset=g,M.uniforms.color=V[y],M.uniforms.angle=$[y],L.drawArrays(L.TRIANGLES,Z,q)),g[y^1]=fe*P[2+(y^1)]-1,N[y+2]&&(g[y^1]+=fe*I*B[y+2],aeT[ae]&&(M.uniforms.dataAxis=E,M.uniforms.screenOffset=g,M.uniforms.color=G[y+2],M.uniforms.angle=U[y+2],L.drawArrays(L.TRIANGLES,T[ae],T[ie]-T[ae]))),H[y+2]&&q&&(g[y^1]+=fe*I*W[y+2],M.uniforms.dataAxis=c,M.uniforms.screenOffset=g,M.uniforms.color=V[y+2],M.uniforms.angle=$[y+2],L.drawArrays(L.TRIANGLES,Z,q))}}(),b.drawTitle=function(){var E=[0,0],g=[0,0];return function(){var c=this.plot,y=this.shader,A=c.gl,M=c.screenBox,R=c.titleCenter,T=c.titleAngle,L=c.titleColor,P=c.pixelRatio;if(this.titleCount){for(var d=0;d<2;++d)g[d]=2*(R[d]*P-M[d])/(M[2+d]-M[d])-1;y.bind(),y.uniforms.dataAxis=E,y.uniforms.screenOffset=g,y.uniforms.angle=T,y.uniforms.color=L,A.drawArrays(A.TRIANGLES,this.titleOffset,this.titleCount)}}}(),b.bind=function(){var E=[0,0],g=[0,0],c=[0,0];return function(){var y=this.plot,A=this.shader,M=y._tickBounds,R=y.dataBox,T=y.screenBox,L=y.viewBox;A.bind();for(var P=0;P<2;++P){var d=M[P],k=M[P+2],I=k-d,N=.5*(R[P+2]+R[P]),B=R[P+2]-R[P],G=L[P],U=L[P+2],H=U-G,W=T[P],V=T[P+2],$=V-W;g[P]=2*I/B*H/$,E[P]=2*(d-N)/B*H/$}c[1]=2*y.pixelRatio/(T[3]-T[1]),c[0]=c[1]*(T[3]-T[1])/(T[2]-T[0]),A.uniforms.dataScale=g,A.uniforms.dataShift=E,A.uniforms.textScale=c,this.vbo.bind(),A.attributes.textCoordinate.pointer()}}(),b.update=function(E){var g=[],c=E.ticks,y=E.bounds,A,M,R,T,L;for(L=0;L<2;++L){var P=[Math.floor(g.length/3)],d=[-1/0],k=c[L];for(A=0;A=0))){var H=y[U]-M[U]*(y[U+2]-y[U])/(M[U+2]-M[U]);U===0?L.drawLine(H,y[1],H,y[3],G[U],B[U]):L.drawLine(y[0],H,y[2],H,G[U],B[U])}}for(var U=0;U=0;--c)this.objects[c].dispose();this.objects.length=0;for(var c=this.overlays.length-1;c>=0;--c)this.overlays[c].dispose();this.overlays.length=0,this.gl=null},b.addObject=function(c){this.objects.indexOf(c)<0&&(this.objects.push(c),this.setDirty())},b.removeObject=function(c){for(var y=this.objects,A=0;AMath.abs(d))c.rotate(N,0,0,-P*k*Math.PI*T.rotateSpeed/window.innerWidth);else if(!T._ortho){var B=-T.zoomSpeed*I*d/window.innerHeight*(N-c.lastT())/20;c.pan(N,0,0,A*(Math.exp(B)-1))}}},!0)},T.enableMouseListeners(),T}},8245:function(v,m,a){var n=a(6832),s=a(5158),o=n([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1650,7 +1650,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);v.exports=function(f){return s(f,o,h,null,[{name:"position",type:"vec2"}])}},1059:function(v,m,a){var n=a(4296),s=a(7453),o=a(2771),h=a(6496),f=a(2611),u=a(4234),b=a(8126),p=a(6145),E=a(1120),g=a(5268),c=a(8245),x=a(2321)({tablet:!0,featureDetect:!0});v.exports={createScene:L,createCamera:n};function A(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function M(d,k){var I=null;try{I=d.getContext("webgl",k),I||(I=d.getContext("experimental-webgl",k))}catch{return null}return I}function R(d){var k=Math.round(Math.log(Math.abs(d))/Math.log(10));if(k<0){var I=Math.round(Math.pow(10,-k));return Math.ceil(d*I)/I}else if(k>0){var I=Math.round(Math.pow(10,k));return Math.ceil(d/I)*I}return Math.ceil(d)}function T(d){return typeof d=="boolean"?d:!0}function L(d){d=d||{},d.camera=d.camera||{};var k=d.canvas;if(!k)if(k=document.createElement("canvas"),d.container){var I=d.container;I.appendChild(k)}else document.body.appendChild(k);var N=d.gl;if(N||(d.glOptions&&(x=!!d.glOptions.preserveDrawingBuffer),N=M(k,d.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:x})),!N)throw new Error("webgl not supported");var B=d.bounds||[[-10,-10,-10],[10,10,10]],G=new A,U=u(N,N.drawingBufferWidth,N.drawingBufferHeight,{preferFloat:!x}),H=c(N),W=d.cameraObject&&d.cameraObject._ortho===!0||d.camera.projection&&d.camera.projection.type==="orthographic"||!1,V={eye:d.camera.eye||[2,0,0],center:d.camera.center||[0,0,0],up:d.camera.up||[0,1,0],zoomMin:d.camera.zoomMax||.1,zoomMax:d.camera.zoomMin||100,mode:d.camera.mode||"turntable",_ortho:W},$=d.axes||{},Z=s(N,$);Z.enable=!$.disable;var q=d.spikes||{},ae=h(N,q),ie=[],fe=[],Q=[],J=[],oe=!0,re=!0,K=new Array(16),ne=new Array(16),ce={view:null,projection:K,model:ne,_ortho:!1},re=!0,ee=[N.drawingBufferWidth,N.drawingBufferHeight],de=d.cameraObject||n(k,V),le={gl:N,contextLost:!1,pixelRatio:d.pixelRatio||1,canvas:k,selection:G,camera:de,axes:Z,axesPixels:null,spikes:ae,bounds:B,objects:ie,shape:ee,aspect:d.aspectRatio||[1,1,1],pickRadius:d.pickRadius||10,zNear:d.zNear||.01,zFar:d.zFar||1e3,fovy:d.fovy||Math.PI/4,clearColor:d.clearColor||[0,0,0,0],autoResize:T(d.autoResize),autoBounds:T(d.autoBounds),autoScale:!!d.autoScale,autoCenter:T(d.autoCenter),clipToBounds:T(d.clipToBounds),snapToData:!!d.snapToData,onselect:d.onselect||null,onrender:d.onrender||null,onclick:d.onclick||null,cameraParams:ce,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Ue){this.aspect[0]=Ue.x,this.aspect[1]=Ue.y,this.aspect[2]=Ue.z,re=!0},setBounds:function(Ue,Ne){this.bounds[0][Ue]=Ne.min,this.bounds[1][Ue]=Ne.max},setClearColor:function(Ue){this.clearColor=Ue},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},he=[N.drawingBufferWidth/le.pixelRatio|0,N.drawingBufferHeight/le.pixelRatio|0];function xe(){if(!le._stopped&&le.autoResize){var Ue=k.parentNode,Ne=1,ze=1;Ue&&Ue!==document.body?(Ne=Ue.clientWidth,ze=Ue.clientHeight):(Ne=window.innerWidth,ze=window.innerHeight);var $e=Math.ceil(Ne*le.pixelRatio)|0,st=Math.ceil(ze*le.pixelRatio)|0;if($e!==k.width||st!==k.height){k.width=$e,k.height=st;var vt=k.style;vt.position=vt.position||"absolute",vt.left="0px",vt.top="0px",vt.width=Ne+"px",vt.height=ze+"px",oe=!0}}}le.autoResize&&xe(),window.addEventListener("resize",xe);function Ee(){for(var Ue=ie.length,Ne=J.length,ze=0;ze0&&Q[Ne-1]===0;)Q.pop(),J.pop().dispose()}le.update=function(Ue){le._stopped||(oe=!0,re=!0)},le.add=function(Ue){le._stopped||(Ue.axes=Z,ie.push(Ue),fe.push(-1),oe=!0,re=!0,Ee())},le.remove=function(Ue){if(!le._stopped){var Ne=ie.indexOf(Ue);Ne<0||(ie.splice(Ne,1),fe.pop(),oe=!0,re=!0,Ee())}},le.dispose=function(){if(!le._stopped&&(le._stopped=!0,window.removeEventListener("resize",xe),k.removeEventListener("webglcontextlost",Se),le.mouseListener.enabled=!1,!le.contextLost)){Z.dispose(),ae.dispose();for(var Ue=0;UeG.distance)continue;for(var rt=0;rt0){var I=Math.round(Math.pow(10,k));return Math.ceil(d/I)*I}return Math.ceil(d)}function T(d){return typeof d=="boolean"?d:!0}function L(d){d=d||{},d.camera=d.camera||{};var k=d.canvas;if(!k)if(k=document.createElement("canvas"),d.container){var I=d.container;I.appendChild(k)}else document.body.appendChild(k);var N=d.gl;if(N||(d.glOptions&&(y=!!d.glOptions.preserveDrawingBuffer),N=M(k,d.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:y})),!N)throw new Error("webgl not supported");var B=d.bounds||[[-10,-10,-10],[10,10,10]],G=new A,U=u(N,N.drawingBufferWidth,N.drawingBufferHeight,{preferFloat:!y}),H=c(N),W=d.cameraObject&&d.cameraObject._ortho===!0||d.camera.projection&&d.camera.projection.type==="orthographic"||!1,V={eye:d.camera.eye||[2,0,0],center:d.camera.center||[0,0,0],up:d.camera.up||[0,1,0],zoomMin:d.camera.zoomMax||.1,zoomMax:d.camera.zoomMin||100,mode:d.camera.mode||"turntable",_ortho:W},$=d.axes||{},Z=s(N,$);Z.enable=!$.disable;var q=d.spikes||{},ae=h(N,q),ie=[],fe=[],Q=[],J=[],oe=!0,re=!0,K=new Array(16),ne=new Array(16),ce={view:null,projection:K,model:ne,_ortho:!1},re=!0,ee=[N.drawingBufferWidth,N.drawingBufferHeight],de=d.cameraObject||n(k,V),le={gl:N,contextLost:!1,pixelRatio:d.pixelRatio||1,canvas:k,selection:G,camera:de,axes:Z,axesPixels:null,spikes:ae,bounds:B,objects:ie,shape:ee,aspect:d.aspectRatio||[1,1,1],pickRadius:d.pickRadius||10,zNear:d.zNear||.01,zFar:d.zFar||1e3,fovy:d.fovy||Math.PI/4,clearColor:d.clearColor||[0,0,0,0],autoResize:T(d.autoResize),autoBounds:T(d.autoBounds),autoScale:!!d.autoScale,autoCenter:T(d.autoCenter),clipToBounds:T(d.clipToBounds),snapToData:!!d.snapToData,onselect:d.onselect||null,onrender:d.onrender||null,onclick:d.onclick||null,cameraParams:ce,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Ue){this.aspect[0]=Ue.x,this.aspect[1]=Ue.y,this.aspect[2]=Ue.z,re=!0},setBounds:function(Ue,Ne){this.bounds[0][Ue]=Ne.min,this.bounds[1][Ue]=Ne.max},setClearColor:function(Ue){this.clearColor=Ue},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},he=[N.drawingBufferWidth/le.pixelRatio|0,N.drawingBufferHeight/le.pixelRatio|0];function xe(){if(!le._stopped&&le.autoResize){var Ue=k.parentNode,Ne=1,ze=1;Ue&&Ue!==document.body?(Ne=Ue.clientWidth,ze=Ue.clientHeight):(Ne=window.innerWidth,ze=window.innerHeight);var $e=Math.ceil(Ne*le.pixelRatio)|0,st=Math.ceil(ze*le.pixelRatio)|0;if($e!==k.width||st!==k.height){k.width=$e,k.height=st;var vt=k.style;vt.position=vt.position||"absolute",vt.left="0px",vt.top="0px",vt.width=Ne+"px",vt.height=ze+"px",oe=!0}}}le.autoResize&&xe(),window.addEventListener("resize",xe);function Ee(){for(var Ue=ie.length,Ne=J.length,ze=0;ze0&&Q[Ne-1]===0;)Q.pop(),J.pop().dispose()}le.update=function(Ue){le._stopped||(oe=!0,re=!0)},le.add=function(Ue){le._stopped||(Ue.axes=Z,ie.push(Ue),fe.push(-1),oe=!0,re=!0,Ee())},le.remove=function(Ue){if(!le._stopped){var Ne=ie.indexOf(Ue);Ne<0||(ie.splice(Ne,1),fe.pop(),oe=!0,re=!0,Ee())}},le.dispose=function(){if(!le._stopped&&(le._stopped=!0,window.removeEventListener("resize",xe),k.removeEventListener("webglcontextlost",Se),le.mouseListener.enabled=!1,!le.contextLost)){Z.dispose(),ae.dispose();for(var Ue=0;UeG.distance)continue;for(var rt=0;rt>>1,A=E.positions instanceof Float32Array,M=E.idToIndex instanceof Int32Array&&E.idToIndex.length>=x,R=E.positions,T=A?R:o.mallocFloat32(R.length),L=M?E.idToIndex:o.mallocInt32(x);if(A||T.set(R),!M)for(T.set(R),g=0;g>>1,A;for(A=0;A=g[0]&&M<=g[2]&&R>=g[1]&&R<=g[3]&&c++}return c}u.unifiedDraw=function(){var E=[1,0,0,0,1,0,0,0,1],g=[0,0,0,0];return function(c){var x=c!==void 0,A=x?this.pickShader:this.shader,M=this.plot.gl,R=this.plot.dataBox;if(this.pointCount===0)return c;var T=R[2]-R[0],L=R[3]-R[1],P=b(this.points,R),d=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(P,.33333)));E[0]=2/T,E[4]=2/L,E[6]=-2*R[0]/T-1,E[7]=-2*R[1]/L-1,this.offsetBuffer.bind(),A.bind(),A.attributes.position.pointer(),A.uniforms.matrix=E,A.uniforms.color=this.color,A.uniforms.borderColor=this.borderColor,A.uniforms.pointCloud=d<5,A.uniforms.pointSize=d,A.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),x&&(g[0]=c&255,g[1]=c>>8&255,g[2]=c>>16&255,g[3]=c>>24&255,this.pickBuffer.bind(),A.attributes.pickId.pointer(M.UNSIGNED_BYTE),A.uniforms.pickOffset=g,this.pickOffset=c);var k=M.getParameter(M.BLEND),I=M.getParameter(M.DITHER);return k&&!this.blend&&M.disable(M.BLEND),I&&M.disable(M.DITHER),M.drawArrays(M.POINTS,0,this.pointCount),k&&!this.blend&&M.enable(M.BLEND),I&&M.enable(M.DITHER),c+this.pointCount}}(),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(E,g,c){var x=this.pickOffset,A=this.pointCount;if(c=x+A)return null;var M=c-x,R=this.points;return{object:this,pointId:M,dataCoord:[R[2*M],R[2*M+1]]}};function p(E,g){var c=E.gl,x=s(c),A=s(c),M=n(c,h.pointVertex,h.pointFragment),R=n(c,h.pickVertex,h.pickFragment),T=new f(E,x,A,M,R);return T.update(g),E.addObject(T),T}},6093:function(v){v.exports=m;function m(a,n,s,o){var h=n[0],f=n[1],u=n[2],b=n[3],p=s[0],E=s[1],g=s[2],c=s[3],x,A,M,R,T;return A=h*p+f*E+u*g+b*c,A<0&&(A=-A,p=-p,E=-E,g=-g,c=-c),1-A>1e-6?(x=Math.acos(A),M=Math.sin(x),R=Math.sin((1-o)*x)/M,T=Math.sin(o*x)/M):(R=1-o,T=o),a[0]=R*h+T*p,a[1]=R*f+T*E,a[2]=R*u+T*g,a[3]=R*b+T*c,a}},8240:function(v){v.exports=function(m){return!m&&m!==0?"":m.toString()}},4123:function(v,m,a){var n=a(875);v.exports=o;var s={};function o(h,f,u){var b=s[f];if(b||(b=s[f]={}),h in b)return b[h];var p={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};p.triangles=!0;var E=n(h,p);p.triangles=!1;var g=n(h,p),c,x;if(u&&u!==1){for(c=0;c>>1,A=E.positions instanceof Float32Array,M=E.idToIndex instanceof Int32Array&&E.idToIndex.length>=y,R=E.positions,T=A?R:o.mallocFloat32(R.length),L=M?E.idToIndex:o.mallocInt32(y);if(A||T.set(R),!M)for(T.set(R),g=0;g>>1,A;for(A=0;A=g[0]&&M<=g[2]&&R>=g[1]&&R<=g[3]&&c++}return c}u.unifiedDraw=function(){var E=[1,0,0,0,1,0,0,0,1],g=[0,0,0,0];return function(c){var y=c!==void 0,A=y?this.pickShader:this.shader,M=this.plot.gl,R=this.plot.dataBox;if(this.pointCount===0)return c;var T=R[2]-R[0],L=R[3]-R[1],P=b(this.points,R),d=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(P,.33333)));E[0]=2/T,E[4]=2/L,E[6]=-2*R[0]/T-1,E[7]=-2*R[1]/L-1,this.offsetBuffer.bind(),A.bind(),A.attributes.position.pointer(),A.uniforms.matrix=E,A.uniforms.color=this.color,A.uniforms.borderColor=this.borderColor,A.uniforms.pointCloud=d<5,A.uniforms.pointSize=d,A.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),y&&(g[0]=c&255,g[1]=c>>8&255,g[2]=c>>16&255,g[3]=c>>24&255,this.pickBuffer.bind(),A.attributes.pickId.pointer(M.UNSIGNED_BYTE),A.uniforms.pickOffset=g,this.pickOffset=c);var k=M.getParameter(M.BLEND),I=M.getParameter(M.DITHER);return k&&!this.blend&&M.disable(M.BLEND),I&&M.disable(M.DITHER),M.drawArrays(M.POINTS,0,this.pointCount),k&&!this.blend&&M.enable(M.BLEND),I&&M.enable(M.DITHER),c+this.pointCount}}(),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(E,g,c){var y=this.pickOffset,A=this.pointCount;if(c=y+A)return null;var M=c-y,R=this.points;return{object:this,pointId:M,dataCoord:[R[2*M],R[2*M+1]]}};function p(E,g){var c=E.gl,y=s(c),A=s(c),M=n(c,h.pointVertex,h.pointFragment),R=n(c,h.pickVertex,h.pickFragment),T=new f(E,y,A,M,R);return T.update(g),E.addObject(T),T}},6093:function(v){v.exports=m;function m(a,n,s,o){var h=n[0],f=n[1],u=n[2],b=n[3],p=s[0],E=s[1],g=s[2],c=s[3],y,A,M,R,T;return A=h*p+f*E+u*g+b*c,A<0&&(A=-A,p=-p,E=-E,g=-g,c=-c),1-A>1e-6?(y=Math.acos(A),M=Math.sin(y),R=Math.sin((1-o)*y)/M,T=Math.sin(o*y)/M):(R=1-o,T=o),a[0]=R*h+T*p,a[1]=R*f+T*E,a[2]=R*u+T*g,a[3]=R*b+T*c,a}},8240:function(v){v.exports=function(m){return!m&&m!==0?"":m.toString()}},4123:function(v,m,a){var n=a(875);v.exports=o;var s={};function o(h,f,u){var b=s[f];if(b||(b=s[f]={}),h in b)return b[h];var p={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};p.triangles=!0;var E=n(h,p);p.triangles=!1;var g=n(h,p),c,y;if(u&&u!==1){for(c=0;c1?1:Q}function M(Q,J,oe,K,ne,ce,re,ee,de,le,he,xe){this.gl=Q,this.pixelRatio=1,this.shader=J,this.orthoShader=oe,this.projectShader=K,this.pointBuffer=ne,this.colorBuffer=ce,this.glyphBuffer=re,this.idBuffer=ee,this.vao=de,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=le,this.pickOrthoShader=he,this.pickProjectShader=xe,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var R=M.prototype;R.pickSlots=1,R.setPickBase=function(Q){this.pickId=Q},R.isTransparent=function(){if(this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&this.projectHasAlpha)return!0;return!1},R.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&!this.projectHasAlpha)return!0;return!1};var T=[0,0],L=[0,0,0],P=[0,0,0],d=[0,0,0,1],k=[0,0,0,1],I=E.slice(),N=[0,0,0],B=[[0,0,0],[0,0,0]];function G(Q){return Q[0]=Q[1]=Q[2]=0,Q}function U(Q,J){return Q[0]=J[0],Q[1]=J[1],Q[2]=J[2],Q[3]=1,Q}function H(Q,J,oe,K){return Q[0]=J[0],Q[1]=J[1],Q[2]=J[2],Q[oe]=K,Q}function W(Q){for(var J=B,oe=0;oe<2;++oe)for(var K=0;K<3;++K)J[oe][K]=Math.max(Math.min(Q[oe][K],1e8),-1e8);return J}function V(Q,J,oe,K){var ne=J.axesProject,ce=J.gl,re=Q.uniforms,ee=oe.model||E,de=oe.view||E,le=oe.projection||E,he=J.axesBounds,xe=W(J.clipBounds),Ee;J.axes&&J.axes.lastCubeProps?Ee=J.axes.lastCubeProps.axis:Ee=[1,1,1],T[0]=2/ce.drawingBufferWidth,T[1]=2/ce.drawingBufferHeight,Q.bind(),re.view=de,re.projection=le,re.screenSize=T,re.highlightId=J.highlightId,re.highlightScale=J.highlightScale,re.clipBounds=xe,re.pickGroup=J.pickId/255,re.pixelRatio=K;for(var Se=0;Se<3;++Se)if(ne[Se]){re.scale=J.projectScale[Se],re.opacity=J.projectOpacity[Se];for(var ke=I,Te=0;Te<16;++Te)ke[Te]=0;for(var Te=0;Te<4;++Te)ke[5*Te]=1;ke[5*Se]=0,Ee[Se]<0?ke[12+Se]=he[0][Se]:ke[12+Se]=he[1][Se],f(ke,ee,ke),re.model=ke;var Ae=(Se+1)%3,be=(Se+2)%3,Ie=G(L),Ue=G(P);Ie[Ae]=1,Ue[be]=1;var Ne=c(le,de,ee,U(d,Ie)),ze=c(le,de,ee,U(k,Ue));if(Math.abs(Ne[1])>Math.abs(ze[1])){var $e=Ne;Ne=ze,ze=$e,$e=Ie,Ie=Ue,Ue=$e;var st=Ae;Ae=be,be=st}Ne[0]<0&&(Ie[Ae]=-1),ze[1]>0&&(Ue[be]=-1);for(var vt=0,at=0,Te=0;Te<4;++Te)vt+=Math.pow(ee[4*Ae+Te],2),at+=Math.pow(ee[4*be+Te],2);Ie[Ae]/=Math.sqrt(vt),Ue[be]/=Math.sqrt(at),re.axes[0]=Ie,re.axes[1]=Ue,re.fragClipBounds[0]=H(N,xe[0],Se,-1e8),re.fragClipBounds[1]=H(N,xe[1],Se,1e8),J.vao.bind(),J.vao.draw(ce.TRIANGLES,J.vertexCount),J.lineWidth>0&&(ce.lineWidth(J.lineWidth*K),J.vao.draw(ce.LINES,J.lineVertexCount,J.vertexCount)),J.vao.unbind()}}var $=[-1e8,-1e8,-1e8],Z=[1e8,1e8,1e8],q=[$,Z];function ae(Q,J,oe,K,ne,ce,re){var ee=oe.gl;if((ce===oe.projectHasAlpha||re)&&V(J,oe,K,ne),ce===oe.hasAlpha||re){Q.bind();var de=Q.uniforms;de.model=K.model||E,de.view=K.view||E,de.projection=K.projection||E,T[0]=2/ee.drawingBufferWidth,T[1]=2/ee.drawingBufferHeight,de.screenSize=T,de.highlightId=oe.highlightId,de.highlightScale=oe.highlightScale,de.fragClipBounds=q,de.clipBounds=oe.axes.bounds,de.opacity=oe.opacity,de.pickGroup=oe.pickId/255,de.pixelRatio=ne,oe.vao.bind(),oe.vao.draw(ee.TRIANGLES,oe.vertexCount),oe.lineWidth>0&&(ee.lineWidth(oe.lineWidth*ne),oe.vao.draw(ee.LINES,oe.lineVertexCount,oe.vertexCount)),oe.vao.unbind()}}R.draw=function(Q){var J=this.useOrtho?this.orthoShader:this.shader;ae(J,this.projectShader,this,Q,this.pixelRatio,!1,!1)},R.drawTransparent=function(Q){var J=this.useOrtho?this.orthoShader:this.shader;ae(J,this.projectShader,this,Q,this.pixelRatio,!0,!1)},R.drawPick=function(Q){var J=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ae(J,this.pickProjectShader,this,Q,1,!0,!0)},R.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var J=Q.value[2]+(Q.value[1]<<8)+(Q.value[0]<<16);if(J>=this.pointCount||J<0)return null;var oe=this.points[J],K=this._selectResult;K.index=J;for(var ne=0;ne<3;++ne)K.position[ne]=K.dataCoordinate[ne]=oe[ne];return K},R.highlight=function(Q){if(!Q)this.highlightId=[1,1,1,1];else{var J=Q.index,oe=J&255,K=J>>8&255,ne=J>>16&255;this.highlightId=[oe/255,K/255,ne/255,0]}};function ie(Q,J,oe,K){var ne;Array.isArray(Q)?J0){var wt=0,et=be,Be=[0,0,0,1],Ye=[0,0,0,1],Ke=Array.isArray(Ee)&&Array.isArray(Ee[0]),We=Array.isArray(Te)&&Array.isArray(Te[0]);e:for(var K=0;K0?1-at[0][0]:Je<0?1+at[1][0]:1,ot*=ot>0?1-at[0][1]:ot<0?1+at[1][1]:1;for(var yt=[Je,ot],Lt=st.cells||[],Xt=st.positions||[],ze=0;ze1?1:Q}function M(Q,J,oe,K,ne,ce,re,ee,de,le,he,xe){this.gl=Q,this.pixelRatio=1,this.shader=J,this.orthoShader=oe,this.projectShader=K,this.pointBuffer=ne,this.colorBuffer=ce,this.glyphBuffer=re,this.idBuffer=ee,this.vao=de,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=le,this.pickOrthoShader=he,this.pickProjectShader=xe,this.points=[],this._selectResult=new y(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var R=M.prototype;R.pickSlots=1,R.setPickBase=function(Q){this.pickId=Q},R.isTransparent=function(){if(this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&this.projectHasAlpha)return!0;return!1},R.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&!this.projectHasAlpha)return!0;return!1};var T=[0,0],L=[0,0,0],P=[0,0,0],d=[0,0,0,1],k=[0,0,0,1],I=E.slice(),N=[0,0,0],B=[[0,0,0],[0,0,0]];function G(Q){return Q[0]=Q[1]=Q[2]=0,Q}function U(Q,J){return Q[0]=J[0],Q[1]=J[1],Q[2]=J[2],Q[3]=1,Q}function H(Q,J,oe,K){return Q[0]=J[0],Q[1]=J[1],Q[2]=J[2],Q[oe]=K,Q}function W(Q){for(var J=B,oe=0;oe<2;++oe)for(var K=0;K<3;++K)J[oe][K]=Math.max(Math.min(Q[oe][K],1e8),-1e8);return J}function V(Q,J,oe,K){var ne=J.axesProject,ce=J.gl,re=Q.uniforms,ee=oe.model||E,de=oe.view||E,le=oe.projection||E,he=J.axesBounds,xe=W(J.clipBounds),Ee;J.axes&&J.axes.lastCubeProps?Ee=J.axes.lastCubeProps.axis:Ee=[1,1,1],T[0]=2/ce.drawingBufferWidth,T[1]=2/ce.drawingBufferHeight,Q.bind(),re.view=de,re.projection=le,re.screenSize=T,re.highlightId=J.highlightId,re.highlightScale=J.highlightScale,re.clipBounds=xe,re.pickGroup=J.pickId/255,re.pixelRatio=K;for(var Se=0;Se<3;++Se)if(ne[Se]){re.scale=J.projectScale[Se],re.opacity=J.projectOpacity[Se];for(var ke=I,Te=0;Te<16;++Te)ke[Te]=0;for(var Te=0;Te<4;++Te)ke[5*Te]=1;ke[5*Se]=0,Ee[Se]<0?ke[12+Se]=he[0][Se]:ke[12+Se]=he[1][Se],f(ke,ee,ke),re.model=ke;var Ae=(Se+1)%3,be=(Se+2)%3,Ie=G(L),Ue=G(P);Ie[Ae]=1,Ue[be]=1;var Ne=c(le,de,ee,U(d,Ie)),ze=c(le,de,ee,U(k,Ue));if(Math.abs(Ne[1])>Math.abs(ze[1])){var $e=Ne;Ne=ze,ze=$e,$e=Ie,Ie=Ue,Ue=$e;var st=Ae;Ae=be,be=st}Ne[0]<0&&(Ie[Ae]=-1),ze[1]>0&&(Ue[be]=-1);for(var vt=0,at=0,Te=0;Te<4;++Te)vt+=Math.pow(ee[4*Ae+Te],2),at+=Math.pow(ee[4*be+Te],2);Ie[Ae]/=Math.sqrt(vt),Ue[be]/=Math.sqrt(at),re.axes[0]=Ie,re.axes[1]=Ue,re.fragClipBounds[0]=H(N,xe[0],Se,-1e8),re.fragClipBounds[1]=H(N,xe[1],Se,1e8),J.vao.bind(),J.vao.draw(ce.TRIANGLES,J.vertexCount),J.lineWidth>0&&(ce.lineWidth(J.lineWidth*K),J.vao.draw(ce.LINES,J.lineVertexCount,J.vertexCount)),J.vao.unbind()}}var $=[-1e8,-1e8,-1e8],Z=[1e8,1e8,1e8],q=[$,Z];function ae(Q,J,oe,K,ne,ce,re){var ee=oe.gl;if((ce===oe.projectHasAlpha||re)&&V(J,oe,K,ne),ce===oe.hasAlpha||re){Q.bind();var de=Q.uniforms;de.model=K.model||E,de.view=K.view||E,de.projection=K.projection||E,T[0]=2/ee.drawingBufferWidth,T[1]=2/ee.drawingBufferHeight,de.screenSize=T,de.highlightId=oe.highlightId,de.highlightScale=oe.highlightScale,de.fragClipBounds=q,de.clipBounds=oe.axes.bounds,de.opacity=oe.opacity,de.pickGroup=oe.pickId/255,de.pixelRatio=ne,oe.vao.bind(),oe.vao.draw(ee.TRIANGLES,oe.vertexCount),oe.lineWidth>0&&(ee.lineWidth(oe.lineWidth*ne),oe.vao.draw(ee.LINES,oe.lineVertexCount,oe.vertexCount)),oe.vao.unbind()}}R.draw=function(Q){var J=this.useOrtho?this.orthoShader:this.shader;ae(J,this.projectShader,this,Q,this.pixelRatio,!1,!1)},R.drawTransparent=function(Q){var J=this.useOrtho?this.orthoShader:this.shader;ae(J,this.projectShader,this,Q,this.pixelRatio,!0,!1)},R.drawPick=function(Q){var J=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ae(J,this.pickProjectShader,this,Q,1,!0,!0)},R.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var J=Q.value[2]+(Q.value[1]<<8)+(Q.value[0]<<16);if(J>=this.pointCount||J<0)return null;var oe=this.points[J],K=this._selectResult;K.index=J;for(var ne=0;ne<3;++ne)K.position[ne]=K.dataCoordinate[ne]=oe[ne];return K},R.highlight=function(Q){if(!Q)this.highlightId=[1,1,1,1];else{var J=Q.index,oe=J&255,K=J>>8&255,ne=J>>16&255;this.highlightId=[oe/255,K/255,ne/255,0]}};function ie(Q,J,oe,K){var ne;Array.isArray(Q)?J0){var wt=0,et=be,Be=[0,0,0,1],Ye=[0,0,0,1],Ze=Array.isArray(Ee)&&Array.isArray(Ee[0]),We=Array.isArray(Te)&&Array.isArray(Te[0]);e:for(var K=0;K0?1-at[0][0]:Je<0?1+at[1][0]:1,ot*=ot>0?1-at[0][1]:ot<0?1+at[1][1]:1;for(var yt=[Je,ot],Lt=st.cells||[],Xt=st.positions||[],ze=0;ze0){var G=E*L;A.drawBox(P-G,d-G,k+G,d+G,x),A.drawBox(P-G,I-G,k+G,I+G,x),A.drawBox(P-G,d-G,P+G,I+G,x),A.drawBox(k-G,d-G,k+G,I+G,x)}}}},f.update=function(b){b=b||{},this.innerFill=!!b.innerFill,this.outerFill=!!b.outerFill,this.innerColor=(b.innerColor||[0,0,0,.5]).slice(),this.outerColor=(b.outerColor||[0,0,0,.5]).slice(),this.borderColor=(b.borderColor||[0,0,0,1]).slice(),this.borderWidth=b.borderWidth||0,this.selectBox=(b.selectBox||this.selectBox).slice()},f.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)};function u(b,p){var E=b.gl,g=s(E,[0,0,0,1,1,0,1,1]),c=n(E,o.boxVertex,o.boxFragment),x=new h(b,g,c);return x.update(p),b.addOverlay(x),x}},2611:function(v,m,a){v.exports=E;var n=a(4234),s=a(5306),o=a(5050),h=a(2288).nextPow2,f=function(g,c,x){for(var A=1e8,M=-1,R=-1,T=g.shape[0],L=g.shape[1],P=0;Pthis.buffer.length){s.free(this.buffer);for(var A=this.buffer=s.mallocUint8(h(x*c*4)),M=0;MA)for(c=A;cx)for(c=x;c=0){for(var W=H.type.charAt(H.type.length-1)|0,V=new Array(W),$=0;$=0;)Z+=1;G[U]=Z}var q=new Array(A.length);function ae(){T.program=h.program(L,T._vref,T._fref,B,G);for(var ie=0;ie=0){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new n("","Invalid data type for attribute "+T+": "+L);f(p,E,P[0],c,d,x,T)}else if(L.indexOf("mat")>=0){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new n("","Invalid data type for attribute "+T+": "+L);u(p,E,P,c,d,x,T)}else throw new n("","Unknown data type for attribute "+T+": "+L);break}}return x}},9016:function(v,m,a){var n=a(3984),s=a(9068);v.exports=f;function o(u){return function(){return u}}function h(u,b){for(var p=new Array(u),E=0;E4)throw new s("","Invalid data type");switch(Z.charAt(0)){case"b":case"i":u["uniform"+q+"iv"](E[G],U);break;case"v":u["uniform"+q+"fv"](E[G],U);break;default:throw new s("","Unrecognized data type for vector "+name+": "+Z)}}else if(Z.indexOf("mat")===0&&Z.length===4){if(q=Z.charCodeAt(Z.length-1)-48,q<2||q>4)throw new s("","Invalid uniform dimension type for matrix "+name+": "+Z);u["uniformMatrix"+q+"fv"](E[G],!1,U);break}else throw new s("","Unknown uniform data type for "+name+": "+Z)}}}}}function x(L,P){if(typeof P!="object")return[[L,P]];var d=[];for(var k in P){var I=P[k],N=L;parseInt(k)+""===k?N+="["+k+"]":N+="."+k,typeof I=="object"?d.push.apply(d,x(N,I)):d.push([N,I])}return d}function A(L){switch(L){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var P=L.indexOf("vec");if(0<=P&&P<=1&&L.length===4+P){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new s("","Invalid data type");return L.charAt(0)==="b"?h(d,!1):h(d,0)}else if(L.indexOf("mat")===0&&L.length===4){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new s("","Invalid uniform dimension type for matrix "+name+": "+L);return h(d*d,0)}else throw new s("","Unknown uniform data type for "+name+": "+L)}}function M(L,P,d){if(typeof d=="object"){var k=R(d);Object.defineProperty(L,P,{get:o(k),set:c(d),enumerable:!0,configurable:!1})}else E[d]?Object.defineProperty(L,P,{get:g(d),set:c(d),enumerable:!0,configurable:!1}):L[P]=A(p[d].type)}function R(L){var P;if(Array.isArray(L)){P=new Array(L.length);for(var d=0;d1){p[0]in u||(u[p[0]]=[]),u=u[p[0]];for(var E=1;E1)for(var x=0;x"u"?a(4037):WeakMap,h=new o,f=0;function u(M,R,T,L,P,d,k){this.id=M,this.src=R,this.type=T,this.shader=L,this.count=d,this.programs=[],this.cache=k}u.prototype.dispose=function(){if(--this.count===0){for(var M=this.cache,R=M.gl,T=this.programs,L=0,P=T.length;L0){var G=E*L;A.drawBox(P-G,d-G,k+G,d+G,y),A.drawBox(P-G,I-G,k+G,I+G,y),A.drawBox(P-G,d-G,P+G,I+G,y),A.drawBox(k-G,d-G,k+G,I+G,y)}}}},f.update=function(b){b=b||{},this.innerFill=!!b.innerFill,this.outerFill=!!b.outerFill,this.innerColor=(b.innerColor||[0,0,0,.5]).slice(),this.outerColor=(b.outerColor||[0,0,0,.5]).slice(),this.borderColor=(b.borderColor||[0,0,0,1]).slice(),this.borderWidth=b.borderWidth||0,this.selectBox=(b.selectBox||this.selectBox).slice()},f.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)};function u(b,p){var E=b.gl,g=s(E,[0,0,0,1,1,0,1,1]),c=n(E,o.boxVertex,o.boxFragment),y=new h(b,g,c);return y.update(p),b.addOverlay(y),y}},2611:function(v,m,a){v.exports=E;var n=a(4234),s=a(5306),o=a(5050),h=a(2288).nextPow2,f=function(g,c,y){for(var A=1e8,M=-1,R=-1,T=g.shape[0],L=g.shape[1],P=0;Pthis.buffer.length){s.free(this.buffer);for(var A=this.buffer=s.mallocUint8(h(y*c*4)),M=0;MA)for(c=A;cy)for(c=y;c=0){for(var W=H.type.charAt(H.type.length-1)|0,V=new Array(W),$=0;$=0;)Z+=1;G[U]=Z}var q=new Array(A.length);function ae(){T.program=h.program(L,T._vref,T._fref,B,G);for(var ie=0;ie=0){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new n("","Invalid data type for attribute "+T+": "+L);f(p,E,P[0],c,d,y,T)}else if(L.indexOf("mat")>=0){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new n("","Invalid data type for attribute "+T+": "+L);u(p,E,P,c,d,y,T)}else throw new n("","Unknown data type for attribute "+T+": "+L);break}}return y}},9016:function(v,m,a){var n=a(3984),s=a(9068);v.exports=f;function o(u){return function(){return u}}function h(u,b){for(var p=new Array(u),E=0;E4)throw new s("","Invalid data type");switch(Z.charAt(0)){case"b":case"i":u["uniform"+q+"iv"](E[G],U);break;case"v":u["uniform"+q+"fv"](E[G],U);break;default:throw new s("","Unrecognized data type for vector "+name+": "+Z)}}else if(Z.indexOf("mat")===0&&Z.length===4){if(q=Z.charCodeAt(Z.length-1)-48,q<2||q>4)throw new s("","Invalid uniform dimension type for matrix "+name+": "+Z);u["uniformMatrix"+q+"fv"](E[G],!1,U);break}else throw new s("","Unknown uniform data type for "+name+": "+Z)}}}}}function y(L,P){if(typeof P!="object")return[[L,P]];var d=[];for(var k in P){var I=P[k],N=L;parseInt(k)+""===k?N+="["+k+"]":N+="."+k,typeof I=="object"?d.push.apply(d,y(N,I)):d.push([N,I])}return d}function A(L){switch(L){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var P=L.indexOf("vec");if(0<=P&&P<=1&&L.length===4+P){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new s("","Invalid data type");return L.charAt(0)==="b"?h(d,!1):h(d,0)}else if(L.indexOf("mat")===0&&L.length===4){var d=L.charCodeAt(L.length-1)-48;if(d<2||d>4)throw new s("","Invalid uniform dimension type for matrix "+name+": "+L);return h(d*d,0)}else throw new s("","Unknown uniform data type for "+name+": "+L)}}function M(L,P,d){if(typeof d=="object"){var k=R(d);Object.defineProperty(L,P,{get:o(k),set:c(d),enumerable:!0,configurable:!1})}else E[d]?Object.defineProperty(L,P,{get:g(d),set:c(d),enumerable:!0,configurable:!1}):L[P]=A(p[d].type)}function R(L){var P;if(Array.isArray(L)){P=new Array(L.length);for(var d=0;d1){p[0]in u||(u[p[0]]=[]),u=u[p[0]];for(var E=1;E1)for(var y=0;y"u"?a(4037):WeakMap,h=new o,f=0;function u(M,R,T,L,P,d,k){this.id=M,this.src=R,this.type=T,this.shader=L,this.count=d,this.programs=[],this.cache=k}u.prototype.dispose=function(){if(--this.count===0){for(var M=this.cache,R=M.gl,T=this.programs,L=0,P=T.length;L0)for(var Q=0;QM)return T-1}return T},b=function(A,M,R){return AR?R:A},p=function(A,M,R){var T=M.vectors,L=M.meshgrid,P=A[0],d=A[1],k=A[2],I=L[0].length,N=L[1].length,B=L[2].length,G=u(L[0],P),U=u(L[1],d),H=u(L[2],k),W=G+1,V=U+1,$=H+1;if(G=b(G,0,I-1),W=b(W,0,I-1),U=b(U,0,N-1),V=b(V,0,N-1),H=b(H,0,B-1),$=b($,0,B-1),G<0||U<0||H<0||W>I-1||V>N-1||$>B-1)return n.create();var Z=L[0][G],q=L[0][W],ae=L[1][U],ie=L[1][V],fe=L[2][H],Q=L[2][$],J=(P-Z)/(q-Z),oe=(d-ae)/(ie-ae),K=(k-fe)/(Q-fe);isFinite(J)||(J=.5),isFinite(oe)||(oe=.5),isFinite(K)||(K=.5);var ne,ce,re,ee,de,le;switch(R.reversedX&&(G=I-1-G,W=I-1-W),R.reversedY&&(U=N-1-U,V=N-1-V),R.reversedZ&&(H=B-1-H,$=B-1-$),R.filled){case 5:de=H,le=$,re=U*B,ee=V*B,ne=G*B*N,ce=W*B*N;break;case 4:de=H,le=$,ne=G*B,ce=W*B,re=U*B*I,ee=V*B*I;break;case 3:re=U,ee=V,de=H*N,le=$*N,ne=G*N*B,ce=W*N*B;break;case 2:re=U,ee=V,ne=G*N,ce=W*N,de=H*N*I,le=$*N*I;break;case 1:ne=G,ce=W,de=H*I,le=$*I,re=U*I*B,ee=V*I*B;break;default:ne=G,ce=W,re=U*I,ee=V*I,de=H*I*N,le=$*I*N;break}var he=T[ne+re+de],xe=T[ne+re+le],Ee=T[ne+ee+de],Se=T[ne+ee+le],ke=T[ce+re+de],Te=T[ce+re+le],Ae=T[ce+ee+de],be=T[ce+ee+le],Ie=n.create(),Ue=n.create(),Ne=n.create(),ze=n.create();n.lerp(Ie,he,ke,J),n.lerp(Ue,xe,Te,J),n.lerp(Ne,Ee,Ae,J),n.lerp(ze,Se,be,J);var $e=n.create(),st=n.create();n.lerp($e,Ie,Ne,oe),n.lerp(st,Ue,ze,oe);var vt=n.create();return n.lerp(vt,$e,st,K),vt},E=function(A){var M=1/0;A.sort(function(P,d){return P-d});for(var R=A.length,T=1;TW||beV||Ie$)},q=n.distance(M[0],M[1]),ae=10*q/T,ie=ae*ae,fe=1,Q=0,J=R.length;J>1&&(fe=g(R));for(var oe=0;oeQ&&(Q=he),de.push(he),B.push({points:ne,velocities:ce,divergences:de});for(var xe=0;xeie&&n.scale(Ee,Ee,ae/Math.sqrt(Se)),n.add(Ee,Ee,K),re=I(Ee),n.squaredDistance(ee,Ee)-ie>-1e-4*ie){ne.push(Ee),ee=Ee,ce.push(re);var le=N(Ee,re),he=n.length(le);isFinite(he)&&he>Q&&(Q=he),de.push(he)}K=Ee}}var ke=f(B,A.colormap,Q,fe);return P?ke.tubeScale=P:(Q===0&&(Q=1),ke.tubeScale=L*.5*fe/Q),ke};var c=a(9578),x=a(1140).createMesh;v.exports.createTubeMesh=function(A,M){return x(A,M,{shaders:c,traceType:"streamtube"})}},9054:function(v,m,a){var n=a(5158),s=a(6832),o=s([`precision highp float; +}`]);m.meshShader={vertex:s,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},m.pickShader={vertex:h,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7307:function(v,m,a){var n=a(2858),s=a(4020),o=["xyz","xzy","yxz","yzx","zxy","zyx"],h=function(A,M,R,T){for(var L=A.points,P=A.velocities,d=A.divergences,k=[],I=[],N=[],B=[],G=[],U=[],H=0,W=0,V=s.create(),$=s.create(),Z=8,q=0;q0)for(var Q=0;QM)return T-1}return T},b=function(A,M,R){return AR?R:A},p=function(A,M,R){var T=M.vectors,L=M.meshgrid,P=A[0],d=A[1],k=A[2],I=L[0].length,N=L[1].length,B=L[2].length,G=u(L[0],P),U=u(L[1],d),H=u(L[2],k),W=G+1,V=U+1,$=H+1;if(G=b(G,0,I-1),W=b(W,0,I-1),U=b(U,0,N-1),V=b(V,0,N-1),H=b(H,0,B-1),$=b($,0,B-1),G<0||U<0||H<0||W>I-1||V>N-1||$>B-1)return n.create();var Z=L[0][G],q=L[0][W],ae=L[1][U],ie=L[1][V],fe=L[2][H],Q=L[2][$],J=(P-Z)/(q-Z),oe=(d-ae)/(ie-ae),K=(k-fe)/(Q-fe);isFinite(J)||(J=.5),isFinite(oe)||(oe=.5),isFinite(K)||(K=.5);var ne,ce,re,ee,de,le;switch(R.reversedX&&(G=I-1-G,W=I-1-W),R.reversedY&&(U=N-1-U,V=N-1-V),R.reversedZ&&(H=B-1-H,$=B-1-$),R.filled){case 5:de=H,le=$,re=U*B,ee=V*B,ne=G*B*N,ce=W*B*N;break;case 4:de=H,le=$,ne=G*B,ce=W*B,re=U*B*I,ee=V*B*I;break;case 3:re=U,ee=V,de=H*N,le=$*N,ne=G*N*B,ce=W*N*B;break;case 2:re=U,ee=V,ne=G*N,ce=W*N,de=H*N*I,le=$*N*I;break;case 1:ne=G,ce=W,de=H*I,le=$*I,re=U*I*B,ee=V*I*B;break;default:ne=G,ce=W,re=U*I,ee=V*I,de=H*I*N,le=$*I*N;break}var he=T[ne+re+de],xe=T[ne+re+le],Ee=T[ne+ee+de],Se=T[ne+ee+le],ke=T[ce+re+de],Te=T[ce+re+le],Ae=T[ce+ee+de],be=T[ce+ee+le],Ie=n.create(),Ue=n.create(),Ne=n.create(),ze=n.create();n.lerp(Ie,he,ke,J),n.lerp(Ue,xe,Te,J),n.lerp(Ne,Ee,Ae,J),n.lerp(ze,Se,be,J);var $e=n.create(),st=n.create();n.lerp($e,Ie,Ne,oe),n.lerp(st,Ue,ze,oe);var vt=n.create();return n.lerp(vt,$e,st,K),vt},E=function(A){var M=1/0;A.sort(function(P,d){return P-d});for(var R=A.length,T=1;TW||beV||Ie$)},q=n.distance(M[0],M[1]),ae=10*q/T,ie=ae*ae,fe=1,Q=0,J=R.length;J>1&&(fe=g(R));for(var oe=0;oeQ&&(Q=he),de.push(he),B.push({points:ne,velocities:ce,divergences:de});for(var xe=0;xeie&&n.scale(Ee,Ee,ae/Math.sqrt(Se)),n.add(Ee,Ee,K),re=I(Ee),n.squaredDistance(ee,Ee)-ie>-1e-4*ie){ne.push(Ee),ee=Ee,ce.push(re);var le=N(Ee,re),he=n.length(le);isFinite(he)&&he>Q&&(Q=he),de.push(he)}K=Ee}}var ke=f(B,A.colormap,Q,fe);return P?ke.tubeScale=P:(Q===0&&(Q=1),ke.tubeScale=L*.5*fe/Q),ke};var c=a(9578),y=a(1140).createMesh;v.exports.createTubeMesh=function(A,M){return y(A,M,{shaders:c,traceType:"streamtube"})}},9054:function(v,m,a){var n=a(5158),s=a(6832),o=s([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -2507,36 +2507,36 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);m.createShader=function(b){var p=n(b,o,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},m.createPickShader=function(b){var p=n(b,o,u,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},m.createContourShader=function(b){var p=n(b,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},m.createPickContourShader=function(b){var p=n(b,f,u,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},3754:function(v,m,a){v.exports=ce;var n=a(2288),s=a(5827),o=a(2944),h=a(8931),f=a(5306),u=a(9156),b=a(7498),p=a(7382),E=a(5050),g=a(4162),c=a(104),x=a(7437),A=a(5070),M=a(9144),R=a(9054),T=R.createShader,L=R.createContourShader,P=R.createPickShader,d=R.createPickContourShader,k=4*10,I=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],N=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],B=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var re=0;re<3;++re){var ee=B[re],de=(re+1)%3,le=(re+2)%3;ee[de+0]=1,ee[le+3]=1,ee[re+6]=1}})();function G(re,ee,de,le,he){this.position=re,this.index=ee,this.uv=de,this.level=le,this.dataCoordinate=he}var U=256;function H(re,ee,de,le,he,xe,Ee,Se,ke,Te,Ae,be,Ie,Ue,Ne){this.gl=re,this.shape=ee,this.bounds=de,this.objectOffset=Ne,this.intensityBounds=[],this._shader=le,this._pickShader=he,this._coordinateBuffer=xe,this._vao=Ee,this._colorMap=Se,this._contourShader=ke,this._contourPickShader=Te,this._contourBuffer=Ae,this._contourVAO=be,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new G([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Ie,this._dynamicVAO=Ue,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[E(f.mallocFloat(1024),[0,0]),E(f.mallocFloat(1024),[0,0]),E(f.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var W=H.prototype;W.genColormap=function(re,ee){var de=!1,le=p([u({colormap:re,nshades:U,format:"rgba"}).map(function(he,xe){var Ee=ee?V(xe/255,ee):he[3];return Ee<1&&(de=!0),[he[0],he[1],he[2],255*Ee]})]);return b.divseq(le,255),this.hasAlphaScale=de,le},W.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},W.isOpaque=function(){return!this.isTransparent()},W.pickSlots=1,W.setPickBase=function(re){this.pickId=re};function V(re,ee){if(!ee||!ee.length)return 1;for(var de=0;dere&&de>0){var le=(ee[de][0]-re)/(ee[de][0]-ee[de-1][0]);return ee[de][1]*(1-le)+le*ee[de-1][1]}}return 1}var $=[0,0,0],Z={showSurface:!1,showContour:!1,projections:[I.slice(),I.slice(),I.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function q(re,ee){var de,le,he,xe=ee.axes&&ee.axes.lastCubeProps.axis||$,Ee=ee.showSurface,Se=ee.showContour;for(de=0;de<3;++de)for(Ee=Ee||ee.surfaceProject[de],le=0;le<3;++le)Se=Se||ee.contourProject[de][le];for(de=0;de<3;++de){var ke=Z.projections[de];for(le=0;le<16;++le)ke[le]=0;for(le=0;le<4;++le)ke[5*le]=1;ke[5*de]=0,ke[12+de]=ee.axesBounds[+(xe[de]>0)][de],c(ke,re.model,ke);var Te=Z.clipBounds[de];for(he=0;he<2;++he)for(le=0;le<3;++le)Te[he][le]=re.clipBounds[he][le];Te[0][de]=-1e8,Te[1][de]=1e8}return Z.showSurface=Ee,Z.showContour=Se,Z}var ae={model:I,view:I,projection:I,inverseModel:I.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},ie=I.slice(),fe=[1,0,0,0,1,0,0,0,1];function Q(re,ee){re=re||{};var de=this.gl;de.disable(de.CULL_FACE),this._colorMap.bind(0);var le=ae;le.model=re.model||I,le.view=re.view||I,le.projection=re.projection||I,le.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],le.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],le.objectOffset=this.objectOffset,le.contourColor=this.contourColor[0],le.inverseModel=x(le.inverseModel,le.model);for(var he=0;he<2;++he)for(var xe=le.clipBounds[he],Ee=0;Ee<3;++Ee)xe[Ee]=Math.min(Math.max(this.clipBounds[he][Ee],-1e8),1e8);le.kambient=this.ambientLight,le.kdiffuse=this.diffuseLight,le.kspecular=this.specularLight,le.roughness=this.roughness,le.fresnel=this.fresnel,le.opacity=this.opacity,le.height=0,le.permutation=fe,le.vertexColor=this.vertexColor;var Se=ie;for(c(Se,le.view,le.model),c(Se,le.projection,Se),x(Se,Se),he=0;he<3;++he)le.eyePosition[he]=Se[12+he]/Se[15];var ke=Se[15];for(he=0;he<3;++he)ke+=this.lightPosition[he]*Se[4*he+3];for(he=0;he<3;++he){var Te=Se[12+he];for(Ee=0;Ee<3;++Ee)Te+=Se[4*Ee+he]*this.lightPosition[Ee];le.lightPosition[he]=Te/ke}var Ae=q(le,this);if(Ae.showSurface){for(this._shader.bind(),this._shader.uniforms=le,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(de.TRIANGLES,this._vertexCount),he=0;he<3;++he)!this.surfaceProject[he]||!this.vertexCount||(this._shader.uniforms.model=Ae.projections[he],this._shader.uniforms.clipBounds=Ae.clipBounds[he],this._vao.draw(de.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ae.showContour){var be=this._contourShader;le.kambient=1,le.kdiffuse=0,le.kspecular=0,le.opacity=1,be.bind(),be.uniforms=le;var Ie=this._contourVAO;for(Ie.bind(),he=0;he<3;++he)for(be.uniforms.permutation=B[he],de.lineWidth(this.contourWidth[he]*this.pixelRatio),Ee=0;Ee>4)/16)/255,he=Math.floor(le),xe=le-he,Ee=ee[1]*(re.value[1]+(re.value[2]&15)/16)/255,Se=Math.floor(Ee),ke=Ee-Se;he+=1,Se+=1;var Te=de.position;Te[0]=Te[1]=Te[2]=0;for(var Ae=0;Ae<2;++Ae)for(var be=Ae?xe:1-xe,Ie=0;Ie<2;++Ie)for(var Ue=Ie?ke:1-ke,Ne=he+Ae,ze=Se+Ie,$e=be*Ue,st=0;st<3;++st)Te[st]+=this._field[st].get(Ne,ze)*$e;for(var vt=this._pickResult.level,at=0;at<3;++at)if(vt[at]=A.le(this.contourLevels[at],Te[at]),vt[at]<0)this.contourLevels[at].length>0&&(vt[at]=0);else if(vt[at]Math.abs(mt-Te[at])&&(vt[at]+=1)}for(de.index[0]=xe<.5?he:he+1,de.index[1]=ke<.5?Se:Se+1,de.uv[0]=le/ee[0],de.uv[1]=Ee/ee[1],st=0;st<3;++st)de.dataCoordinate[st]=this._field[st].get(de.index[0],de.index[1]);return de},W.padField=function(re,ee){var de=ee.shape.slice(),le=re.shape.slice();b.assign(re.lo(1,1).hi(de[0],de[1]),ee),b.assign(re.lo(1).hi(de[0],1),ee.hi(de[0],1)),b.assign(re.lo(1,le[1]-1).hi(de[0],1),ee.lo(0,de[1]-1).hi(de[0],1)),b.assign(re.lo(0,1).hi(1,de[1]),ee.hi(1)),b.assign(re.lo(le[0]-1,1).hi(1,de[1]),ee.lo(de[0]-1)),re.set(0,0,ee.get(0,0)),re.set(0,le[1]-1,ee.get(0,de[1]-1)),re.set(le[0]-1,0,ee.get(de[0]-1,0)),re.set(le[0]-1,le[1]-1,ee.get(de[0]-1,de[1]-1))};function oe(re,ee){return Array.isArray(re)?[ee(re[0]),ee(re[1]),ee(re[2])]:[ee(re),ee(re),ee(re)]}function K(re){return Array.isArray(re)?re.length===3?[re[0],re[1],re[2],1]:[re[0],re[1],re[2],re[3]]:[0,0,0,1]}function ne(re){if(Array.isArray(re)){if(Array.isArray(re))return[K(re[0]),K(re[1]),K(re[2])];var ee=K(re);return[ee.slice(),ee.slice(),ee.slice()]}}W.update=function(re){re=re||{},this.objectOffset=re.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in re&&(this.contourWidth=oe(re.contourWidth,Number)),"showContour"in re&&(this.showContour=oe(re.showContour,Boolean)),"showSurface"in re&&(this.showSurface=!!re.showSurface),"contourTint"in re&&(this.contourTint=oe(re.contourTint,Boolean)),"contourColor"in re&&(this.contourColor=ne(re.contourColor)),"contourProject"in re&&(this.contourProject=oe(re.contourProject,function(Bt){return oe(Bt,Boolean)})),"surfaceProject"in re&&(this.surfaceProject=re.surfaceProject),"dynamicColor"in re&&(this.dynamicColor=ne(re.dynamicColor)),"dynamicTint"in re&&(this.dynamicTint=oe(re.dynamicTint,Number)),"dynamicWidth"in re&&(this.dynamicWidth=oe(re.dynamicWidth,Number)),"opacity"in re&&(this.opacity=re.opacity),"opacityscale"in re&&(this.opacityscale=re.opacityscale),"colorBounds"in re&&(this.colorBounds=re.colorBounds),"vertexColor"in re&&(this.vertexColor=re.vertexColor?1:0),"colormap"in re&&this._colorMap.setPixels(this.genColormap(re.colormap,this.opacityscale));var ee=re.field||re.coords&&re.coords[2]||null,de=!1;if(ee||(this._field[2].shape[0]||this._field[2].shape[2]?ee=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ee=this._field[2].hi(0,0)),"field"in re||"coords"in re){var le=(ee.shape[0]+2)*(ee.shape[1]+2);le>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(n.nextPow2(le))),this._field[2]=E(this._field[2].data,[ee.shape[0]+2,ee.shape[1]+2]),this.padField(this._field[2],ee),this.shape=ee.shape.slice();for(var he=this.shape,xe=0;xe<2;++xe)this._field[2].size>this._field[xe].data.length&&(f.freeFloat(this._field[xe].data),this._field[xe].data=f.mallocFloat(this._field[2].size)),this._field[xe]=E(this._field[xe].data,[he[0]+2,he[1]+2]);if(re.coords){var Ee=re.coords;if(!Array.isArray(Ee)||Ee.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(xe=0;xe<2;++xe){var Se=Ee[xe];for(Ie=0;Ie<2;++Ie)if(Se.shape[Ie]!==he[Ie])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[xe],Se)}}else if(re.ticks){var ke=re.ticks;if(!Array.isArray(ke)||ke.length!==2)throw new Error("gl-surface: invalid ticks");for(xe=0;xe<2;++xe){var Te=ke[xe];if((Array.isArray(Te)||Te.length)&&(Te=E(Te)),Te.shape[0]!==he[xe])throw new Error("gl-surface: invalid tick length");var Ae=E(Te.data,he);Ae.stride[xe]=Te.stride[0],Ae.stride[xe^1]=0,this.padField(this._field[xe],Ae)}}else{for(xe=0;xe<2;++xe){var be=[0,0];be[xe]=1,this._field[xe]=E(this._field[xe].data,[he[0]+2,he[1]+2],be,0)}this._field[0].set(0,0,0);for(var Ie=0;Ie0){for(var Xe=0;Xe<5;++Xe)Lt.pop();we-=1}continue e}}}Kt.push(we)}this._contourOffsets[Xt]=Tt,this._contourCounts[Xt]=Kt}var Ut=f.mallocFloat(Lt.length);for(xe=0;xeG||N<0||N>G)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[I,N],k.bind(),B.texImage2D(B.TEXTURE_2D,0,k.format,I,N,0,k.format,k.type,null),k._mipLevels=[0],k}function c(k,I,N,B,G,U){this.gl=k,this.handle=I,this.format=G,this.type=U,this._shape=[N,B],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,W=[this._wrapS,this._wrapT];Object.defineProperties(W,[{get:function(){return H._wrapS},set:function($){return H.wrapS=$}},{get:function(){return H._wrapT},set:function($){return H.wrapT=$}}]),this._wrapVector=W;var V=[this._shape[0],this._shape[1]];Object.defineProperties(V,[{get:function(){return H._shape[0]},set:function($){return H.width=$}},{get:function(){return H._shape[1]},set:function($){return H.height=$}}]),this._shapeVector=V}var x=c.prototype;Object.defineProperties(x,{minFilter:{get:function(){return this._minFilter},set:function(k){this.bind();var I=this.gl;if(this.type===I.FLOAT&&h.indexOf(k)>=0&&(I.getExtension("OES_texture_float_linear")||(k=I.NEAREST)),f.indexOf(k)<0)throw new Error("gl-texture2d: Unknown filter mode "+k);return I.texParameteri(I.TEXTURE_2D,I.TEXTURE_MIN_FILTER,k),this._minFilter=k}},magFilter:{get:function(){return this._magFilter},set:function(k){this.bind();var I=this.gl;if(this.type===I.FLOAT&&h.indexOf(k)>=0&&(I.getExtension("OES_texture_float_linear")||(k=I.NEAREST)),f.indexOf(k)<0)throw new Error("gl-texture2d: Unknown filter mode "+k);return I.texParameteri(I.TEXTURE_2D,I.TEXTURE_MAG_FILTER,k),this._magFilter=k}},mipSamples:{get:function(){return this._anisoSamples},set:function(k){var I=this._anisoSamples;if(this._anisoSamples=Math.max(k,1)|0,I!==this._anisoSamples){var N=this.gl.getExtension("EXT_texture_filter_anisotropic");N&&this.gl.texParameterf(this.gl.TEXTURE_2D,N.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(k){if(this.bind(),u.indexOf(k)<0)throw new Error("gl-texture2d: Unknown wrap mode "+k);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,k),this._wrapS=k}},wrapT:{get:function(){return this._wrapT},set:function(k){if(this.bind(),u.indexOf(k)<0)throw new Error("gl-texture2d: Unknown wrap mode "+k);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,k),this._wrapT=k}},wrap:{get:function(){return this._wrapVector},set:function(k){if(Array.isArray(k)||(k=[k,k]),k.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var I=0;I<2;++I)if(u.indexOf(k[I])<0)throw new Error("gl-texture2d: Unknown wrap mode "+k);this._wrapS=k[0],this._wrapT=k[1];var N=this.gl;return this.bind(),N.texParameteri(N.TEXTURE_2D,N.TEXTURE_WRAP_S,this._wrapS),N.texParameteri(N.TEXTURE_2D,N.TEXTURE_WRAP_T,this._wrapT),k}},shape:{get:function(){return this._shapeVector},set:function(k){if(!Array.isArray(k))k=[k|0,k|0];else if(k.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return g(this,k[0]|0,k[1]|0),[k[0]|0,k[1]|0]}},width:{get:function(){return this._shape[0]},set:function(k){return k=k|0,g(this,k,this._shape[1]),k}},height:{get:function(){return this._shape[1]},set:function(k){return k=k|0,g(this,this._shape[0],k),k}}}),x.bind=function(k){var I=this.gl;return k!==void 0&&I.activeTexture(I.TEXTURE0+(k|0)),I.bindTexture(I.TEXTURE_2D,this.handle),k!==void 0?k|0:I.getParameter(I.ACTIVE_TEXTURE)-I.TEXTURE0},x.dispose=function(){this.gl.deleteTexture(this.handle)},x.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var k=Math.min(this._shape[0],this._shape[1]),I=0;k>0;++I,k>>>=1)this._mipLevels.indexOf(I)<0&&this._mipLevels.push(I)},x.setPixels=function(k,I,N,B){var G=this.gl;this.bind(),Array.isArray(I)?(B=N,N=I[1]|0,I=I[0]|0):(I=I||0,N=N||0),B=B||0;var U=p(k)?k:k.raw;if(U){var H=this._mipLevels.indexOf(B)<0;H?(G.texImage2D(G.TEXTURE_2D,0,this.format,this.format,this.type,U),this._mipLevels.push(B)):G.texSubImage2D(G.TEXTURE_2D,B,I,N,this.format,this.type,U)}else if(k.shape&&k.stride&&k.data){if(k.shape.length<2||I+k.shape[1]>this._shape[1]>>>B||N+k.shape[0]>this._shape[0]>>>B||I<0||N<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");M(G,I,N,B,this.format,this.type,this._mipLevels,k)}else throw new Error("gl-texture2d: Unsupported data type")};function A(k,I){return k.length===3?I[2]===1&&I[1]===k[0]*k[2]&&I[0]===k[2]:I[0]===1&&I[1]===k[0]}function M(k,I,N,B,G,U,H,W){var V=W.dtype,$=W.shape.slice();if($.length<2||$.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var Z=0,q=0,ae=A($,W.stride.slice());if(V==="float32"?Z=k.FLOAT:V==="float64"?(Z=k.FLOAT,ae=!1,V="float32"):V==="uint8"?Z=k.UNSIGNED_BYTE:(Z=k.UNSIGNED_BYTE,ae=!1,V="uint8"),$.length===2)q=k.LUMINANCE,$=[$[0],$[1],1],W=n(W.data,$,[W.stride[0],W.stride[1],1],W.offset);else if($.length===3){if($[2]===1)q=k.ALPHA;else if($[2]===2)q=k.LUMINANCE_ALPHA;else if($[2]===3)q=k.RGB;else if($[2]===4)q=k.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((q===k.LUMINANCE||q===k.ALPHA)&&(G===k.LUMINANCE||G===k.ALPHA)&&(q=G),q!==G)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ie=W.size,fe=H.indexOf(B)<0;if(fe&&H.push(B),Z===U&&ae)W.offset===0&&W.data.length===ie?fe?k.texImage2D(k.TEXTURE_2D,B,G,$[0],$[1],0,G,U,W.data):k.texSubImage2D(k.TEXTURE_2D,B,I,N,$[0],$[1],G,U,W.data):fe?k.texImage2D(k.TEXTURE_2D,B,G,$[0],$[1],0,G,U,W.data.subarray(W.offset,W.offset+ie)):k.texSubImage2D(k.TEXTURE_2D,B,I,N,$[0],$[1],G,U,W.data.subarray(W.offset,W.offset+ie));else{var Q;U===k.FLOAT?Q=o.mallocFloat32(ie):Q=o.mallocUint8(ie);var J=n(Q,$,[$[2],$[2]*$[0],1]);Z===k.FLOAT&&U===k.UNSIGNED_BYTE?E(J,W):s.assign(J,W),fe?k.texImage2D(k.TEXTURE_2D,B,G,$[0],$[1],0,G,U,Q.subarray(0,ie)):k.texSubImage2D(k.TEXTURE_2D,B,I,N,$[0],$[1],G,U,Q.subarray(0,ie)),U===k.FLOAT?o.freeFloat32(Q):o.freeUint8(Q)}}function R(k){var I=k.createTexture();return k.bindTexture(k.TEXTURE_2D,I),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE),I}function T(k,I,N,B,G){var U=k.getParameter(k.MAX_TEXTURE_SIZE);if(I<0||I>U||N<0||N>U)throw new Error("gl-texture2d: Invalid texture shape");if(G===k.FLOAT&&!k.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var H=R(k);return k.texImage2D(k.TEXTURE_2D,0,B,I,N,0,B,G,null),new c(k,H,I,N,B,G)}function L(k,I,N,B,G,U){var H=R(k);return k.texImage2D(k.TEXTURE_2D,0,G,G,U,I),new c(k,H,N,B,G,U)}function P(k,I){var N=I.dtype,B=I.shape.slice(),G=k.getParameter(k.MAX_TEXTURE_SIZE);if(B[0]<0||B[0]>G||B[1]<0||B[1]>G)throw new Error("gl-texture2d: Invalid texture size");var U=A(B,I.stride.slice()),H=0;N==="float32"?H=k.FLOAT:N==="float64"?(H=k.FLOAT,U=!1,N="float32"):N==="uint8"?H=k.UNSIGNED_BYTE:(H=k.UNSIGNED_BYTE,U=!1,N="uint8");var W=0;if(B.length===2)W=k.LUMINANCE,B=[B[0],B[1],1],I=n(I.data,B,[I.stride[0],I.stride[1],1],I.offset);else if(B.length===3)if(B[2]===1)W=k.ALPHA;else if(B[2]===2)W=k.LUMINANCE_ALPHA;else if(B[2]===3)W=k.RGB;else if(B[2]===4)W=k.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");H===k.FLOAT&&!k.getExtension("OES_texture_float")&&(H=k.UNSIGNED_BYTE,U=!1);var V,$,Z=I.size;if(U)I.offset===0&&I.data.length===Z?V=I.data:V=I.data.subarray(I.offset,I.offset+Z);else{var q=[B[2],B[2]*B[0],1];$=o.malloc(Z,N);var ae=n($,B,q,0);(N==="float32"||N==="float64")&&H===k.UNSIGNED_BYTE?E(ae,I):s.assign(ae,I),V=$.subarray(0,Z)}var ie=R(k);return k.texImage2D(k.TEXTURE_2D,0,W,B[0],B[1],0,W,H,V),U||o.free($),new c(k,ie,B[0],B[1],W,H)}function d(k){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(h||b(k),typeof arguments[1]=="number")return T(k,arguments[1],arguments[2],arguments[3]||k.RGBA,arguments[4]||k.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return T(k,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||k.RGBA,arguments[3]||k.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var I=arguments[1],N=p(I)?I:I.raw;if(N)return L(k,N,I.width|0,I.height|0,arguments[2]||k.RGBA,arguments[3]||k.UNSIGNED_BYTE);if(I.shape&&I.data&&I.stride)return P(k,I)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},3056:function(v){function m(a,n,s){n?n.bind():a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);var o=a.getParameter(a.MAX_VERTEX_ATTRIBS)|0;if(s){if(s.length>o)throw new Error("gl-vao: Too many vertex attributes");for(var h=0;h1?0:Math.acos(E)}},8827:function(v){v.exports=m;function m(a,n){return a[0]=Math.ceil(n[0]),a[1]=Math.ceil(n[1]),a[2]=Math.ceil(n[2]),a}},7622:function(v){v.exports=m;function m(a){var n=new Float32Array(3);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n}},8782:function(v){v.exports=m;function m(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a}},8501:function(v){v.exports=m;function m(){var a=new Float32Array(3);return a[0]=0,a[1]=0,a[2]=0,a}},903:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[0],b=s[1],p=s[2];return a[0]=h*p-f*b,a[1]=f*u-o*p,a[2]=o*b-h*u,a}},5981:function(v,m,a){v.exports=a(8288)},8288:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2];return Math.sqrt(s*s+o*o+h*h)}},8629:function(v,m,a){v.exports=a(7979)},7979:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]/s[0],a[1]=n[1]/s[1],a[2]=n[2]/s[2],a}},9305:function(v){v.exports=m;function m(a,n){return a[0]*n[0]+a[1]*n[1]+a[2]*n[2]}},154:function(v){v.exports=1e-6},4932:function(v,m,a){v.exports=s;var n=a(154);function s(o,h){var f=o[0],u=o[1],b=o[2],p=h[0],E=h[1],g=h[2];return Math.abs(f-p)<=n*Math.max(1,Math.abs(f),Math.abs(p))&&Math.abs(u-E)<=n*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(b-g)<=n*Math.max(1,Math.abs(b),Math.abs(g))}},5777:function(v){v.exports=m;function m(a,n){return a[0]===n[0]&&a[1]===n[1]&&a[2]===n[2]}},3306:function(v){v.exports=m;function m(a,n){return a[0]=Math.floor(n[0]),a[1]=Math.floor(n[1]),a[2]=Math.floor(n[2]),a}},7447:function(v,m,a){v.exports=s;var n=a(8501)();function s(o,h,f,u,b,p){var E,g;for(h||(h=3),f||(f=0),u?g=Math.min(u*h+f,o.length):g=o.length,E=f;E0&&(f=1/Math.sqrt(f),a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f),a}},6660:function(v){v.exports=m;function m(a,n){n=n||1;var s=Math.random()*2*Math.PI,o=Math.random()*2-1,h=Math.sqrt(1-o*o)*n;return a[0]=Math.cos(s)*h,a[1]=Math.sin(s)*h,a[2]=o*n,a}},392:function(v){v.exports=m;function m(a,n,s,o){var h=s[1],f=s[2],u=n[1]-h,b=n[2]-f,p=Math.sin(o),E=Math.cos(o);return a[0]=n[0],a[1]=h+u*E-b*p,a[2]=f+u*p+b*E,a}},3222:function(v){v.exports=m;function m(a,n,s,o){var h=s[0],f=s[2],u=n[0]-h,b=n[2]-f,p=Math.sin(o),E=Math.cos(o);return a[0]=h+b*p+u*E,a[1]=n[1],a[2]=f+b*E-u*p,a}},3388:function(v){v.exports=m;function m(a,n,s,o){var h=s[0],f=s[1],u=n[0]-h,b=n[1]-f,p=Math.sin(o),E=Math.cos(o);return a[0]=h+u*E-b*p,a[1]=f+u*p+b*E,a[2]=n[2],a}},1624:function(v){v.exports=m;function m(a,n){return a[0]=Math.round(n[0]),a[1]=Math.round(n[1]),a[2]=Math.round(n[2]),a}},5685:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]*s,a[1]=n[1]*s,a[2]=n[2]*s,a}},6722:function(v){v.exports=m;function m(a,n,s,o){return a[0]=n[0]+s[0]*o,a[1]=n[1]+s[1]*o,a[2]=n[2]+s[2]*o,a}},831:function(v){v.exports=m;function m(a,n,s,o){return a[0]=n,a[1]=s,a[2]=o,a}},5294:function(v,m,a){v.exports=a(6403)},3303:function(v,m,a){v.exports=a(4337)},6403:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2];return s*s+o*o+h*h}},4337:function(v){v.exports=m;function m(a){var n=a[0],s=a[1],o=a[2];return n*n+s*s+o*o}},8921:function(v,m,a){v.exports=a(911)},911:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]-s[0],a[1]=n[1]-s[1],a[2]=n[2]-s[2],a}},9908:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2];return a[0]=o*s[0]+h*s[3]+f*s[6],a[1]=o*s[1]+h*s[4]+f*s[7],a[2]=o*s[2]+h*s[5]+f*s[8],a}},3255:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[3]*o+s[7]*h+s[11]*f+s[15];return u=u||1,a[0]=(s[0]*o+s[4]*h+s[8]*f+s[12])/u,a[1]=(s[1]*o+s[5]*h+s[9]*f+s[13])/u,a[2]=(s[2]*o+s[6]*h+s[10]*f+s[14])/u,a}},6568:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[0],b=s[1],p=s[2],E=s[3],g=E*o+b*f-p*h,c=E*h+p*o-u*f,x=E*f+u*h-b*o,A=-u*o-b*h-p*f;return a[0]=g*E+A*-u+c*-p-x*-b,a[1]=c*E+A*-b+x*-u-g*-p,a[2]=x*E+A*-p+g*-b-c*-u,a}},3433:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]+s[0],a[1]=n[1]+s[1],a[2]=n[2]+s[2],a[3]=n[3]+s[3],a}},1413:function(v){v.exports=m;function m(a){var n=new Float32Array(4);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n}},3470:function(v){v.exports=m;function m(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a}},5313:function(v){v.exports=m;function m(){var a=new Float32Array(4);return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a}},5446:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2],f=n[3]-a[3];return Math.sqrt(s*s+o*o+h*h+f*f)}},205:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]/s[0],a[1]=n[1]/s[1],a[2]=n[2]/s[2],a[3]=n[3]/s[3],a}},4242:function(v){v.exports=m;function m(a,n){return a[0]*n[0]+a[1]*n[1]+a[2]*n[2]+a[3]*n[3]}},5680:function(v){v.exports=m;function m(a,n,s,o){var h=new Float32Array(4);return h[0]=a,h[1]=n,h[2]=s,h[3]=o,h}},4020:function(v,m,a){v.exports={create:a(5313),clone:a(1413),fromValues:a(5680),copy:a(3470),set:a(6453),add:a(3433),subtract:a(2705),multiply:a(746),divide:a(205),min:a(2170),max:a(3030),scale:a(5510),scaleAndAdd:a(4224),distance:a(5446),squaredDistance:a(1542),length:a(8177),squaredLength:a(9037),negate:a(6459),inverse:a(8057),normalize:a(381),dot:a(4242),lerp:a(8746),random:a(3770),transformMat4:a(6342),transformQuat:a(5022)}},8057:function(v){v.exports=m;function m(a,n){return a[0]=1/n[0],a[1]=1/n[1],a[2]=1/n[2],a[3]=1/n[3],a}},8177:function(v){v.exports=m;function m(a){var n=a[0],s=a[1],o=a[2],h=a[3];return Math.sqrt(n*n+s*s+o*o+h*h)}},8746:function(v){v.exports=m;function m(a,n,s,o){var h=n[0],f=n[1],u=n[2],b=n[3];return a[0]=h+o*(s[0]-h),a[1]=f+o*(s[1]-f),a[2]=u+o*(s[2]-u),a[3]=b+o*(s[3]-b),a}},3030:function(v){v.exports=m;function m(a,n,s){return a[0]=Math.max(n[0],s[0]),a[1]=Math.max(n[1],s[1]),a[2]=Math.max(n[2],s[2]),a[3]=Math.max(n[3],s[3]),a}},2170:function(v){v.exports=m;function m(a,n,s){return a[0]=Math.min(n[0],s[0]),a[1]=Math.min(n[1],s[1]),a[2]=Math.min(n[2],s[2]),a[3]=Math.min(n[3],s[3]),a}},746:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]*s[0],a[1]=n[1]*s[1],a[2]=n[2]*s[2],a[3]=n[3]*s[3],a}},6459:function(v){v.exports=m;function m(a,n){return a[0]=-n[0],a[1]=-n[1],a[2]=-n[2],a[3]=-n[3],a}},381:function(v){v.exports=m;function m(a,n){var s=n[0],o=n[1],h=n[2],f=n[3],u=s*s+o*o+h*h+f*f;return u>0&&(u=1/Math.sqrt(u),a[0]=s*u,a[1]=o*u,a[2]=h*u,a[3]=f*u),a}},3770:function(v,m,a){var n=a(381),s=a(5510);v.exports=o;function o(h,f){return f=f||1,h[0]=Math.random(),h[1]=Math.random(),h[2]=Math.random(),h[3]=Math.random(),n(h,h),s(h,h,f),h}},5510:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]*s,a[1]=n[1]*s,a[2]=n[2]*s,a[3]=n[3]*s,a}},4224:function(v){v.exports=m;function m(a,n,s,o){return a[0]=n[0]+s[0]*o,a[1]=n[1]+s[1]*o,a[2]=n[2]+s[2]*o,a[3]=n[3]+s[3]*o,a}},6453:function(v){v.exports=m;function m(a,n,s,o,h){return a[0]=n,a[1]=s,a[2]=o,a[3]=h,a}},1542:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2],f=n[3]-a[3];return s*s+o*o+h*h+f*f}},9037:function(v){v.exports=m;function m(a){var n=a[0],s=a[1],o=a[2],h=a[3];return n*n+s*s+o*o+h*h}},2705:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]-s[0],a[1]=n[1]-s[1],a[2]=n[2]-s[2],a[3]=n[3]-s[3],a}},6342:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=n[3];return a[0]=s[0]*o+s[4]*h+s[8]*f+s[12]*u,a[1]=s[1]*o+s[5]*h+s[9]*f+s[13]*u,a[2]=s[2]*o+s[6]*h+s[10]*f+s[14]*u,a[3]=s[3]*o+s[7]*h+s[11]*f+s[15]*u,a}},5022:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[0],b=s[1],p=s[2],E=s[3],g=E*o+b*f-p*h,c=E*h+p*o-u*f,x=E*f+u*h-b*o,A=-u*o-b*h-p*f;return a[0]=g*E+A*-u+c*-p-x*-b,a[1]=c*E+A*-b+x*-u-g*-p,a[2]=x*E+A*-p+g*-b-c*-u,a[3]=n[3],a}},9365:function(v,m,a){var n=a(8096),s=a(7896);v.exports=o;function o(h){for(var f=Array.isArray(h)?h:n(h),u=0;u0)continue;st=Ne.slice(0,1).join("")}return re(st),ae+=st.length,V=V.slice(st.length),V.length}while(!0)}function Ae(){return/[^a-fA-F0-9]/.test(H)?(re(V.join("")),U=u,B):(V.push(H),W=H,B+1)}function be(){return H==="."||/[eE]/.test(H)?(V.push(H),U=A,W=H,B+1):H==="x"&&V.length===1&&V[0]==="0"?(U=d,V.push(H),W=H,B+1):/[^\d]/.test(H)?(re(V.join("")),U=u,B):(V.push(H),W=H,B+1)}function Ie(){return H==="f"&&(V.push(H),W=H,B+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(W)?(V.push(H),W=H,B+1):/[^\d]/.test(H)?(re(V.join("")),U=u,B):(V.push(H),W=H,B+1)}function Ue(){if(/[^\d\w_]/.test(H)){var Ne=V.join("");return ce[Ne]?U=T:ne[Ne]?U=R:U=M,re(V.join("")),U=u,B}return V.push(H),W=H,B+1}}},3585:function(v,m,a){var n=a(9525);n=n.slice().filter(function(s){return!/^(gl\_|texture)/.test(s)}),v.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(v){v.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(v,m,a){var n=a(399);v.exports=n.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(v){v.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(v){v.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(v,m,a){var n=a(3193);v.exports=s;function s(o,h){var f=n(h),u=[];return u=u.concat(f(o)),u=u.concat(f(null)),u}},6832:function(v){v.exports=function(m){typeof m=="string"&&(m=[m]);for(var a=[].slice.call(arguments,1),n=[],s=0;s0;){x=P.pop();for(var d=x.adjacent,k=0;k<=M;++k){var I=d[k];if(!(!I.boundary||I.lastVisited<=-R)){for(var N=I.vertices,B=0;B<=M;++B){var G=N[B];G<0?T[B]=A:T[B]=L[G]}var U=this.orient();if(U>0)return I;I.lastVisited=-R,U===0&&P.push(I)}}}return null},g.walk=function(x,A){var M=this.vertices.length-1,R=this.dimension,T=this.vertices,L=this.tuple,P=A?this.interior.length*Math.random()|0:this.interior.length-1,d=this.interior[P];e:for(;!d.boundary;){for(var k=d.vertices,I=d.adjacent,N=0;N<=R;++N)L[N]=T[k[N]];d.lastVisited=M;for(var N=0;N<=R;++N){var B=I[N];if(!(B.lastVisited>=M)){var G=L[N];L[N]=x;var U=this.orient();if(L[N]=G,U<0){d=B;continue e}else B.boundary?B.lastVisited=-M:B.lastVisited=M}}return}return d},g.addPeaks=function(x,A){var M=this.vertices.length-1,R=this.dimension,T=this.vertices,L=this.tuple,P=this.interior,d=this.simplices,k=[A];A.lastVisited=M,A.vertices[A.vertices.indexOf(-1)]=M,A.boundary=!1,P.push(A);for(var I=[];k.length>0;){var A=k.pop(),N=A.vertices,B=A.adjacent,G=N.indexOf(M);if(!(G<0)){for(var U=0;U<=R;++U)if(U!==G){var H=B[U];if(!(!H.boundary||H.lastVisited>=M)){var W=H.vertices;if(H.lastVisited!==-M){for(var V=0,$=0;$<=R;++$)W[$]<0?(V=$,L[$]=x):L[$]=T[W[$]];var Z=this.orient();if(Z>0){W[V]=M,H.boundary=!1,P.push(H),k.push(H),H.lastVisited=M;continue}else H.lastVisited=-M}var q=H.adjacent,ae=N.slice(),ie=B.slice(),fe=new o(ae,ie,!0);d.push(fe);var Q=q.indexOf(A);if(!(Q<0)){q[Q]=fe,ie[G]=H,ae[U]=-1,ie[U]=A,B[U]=fe,fe.flip();for(var $=0;$<=R;++$){var J=ae[$];if(!(J<0||J===M)){for(var oe=new Array(R-1),K=0,ne=0;ne<=R;++ne){var ce=ae[ne];ce<0||ne===$||(oe[K++]=ce)}I.push(new h(oe,fe,$))}}}}}}}I.sort(f);for(var U=0;U+1=0?P[k++]=d[N]:I=N&1;if(I===(x&1)){var B=P[0];P[0]=P[1],P[1]=B}A.push(P)}}return A};function c(x,A){var M=x.length;if(M===0)throw new Error("Must have at least d+1 points");var R=x[0].length;if(M<=R)throw new Error("Must input at least d+1 points");var T=x.slice(0,R+1),L=n.apply(void 0,T);if(L===0)throw new Error("Input not in general position");for(var P=new Array(R+1),d=0;d<=R;++d)P[d]=d;L<0&&(P[0]=1,P[1]=0);for(var k=new o(P,new Array(R+1),!1),I=k.adjacent,N=new Array(R+2),d=0;d<=R;++d){for(var B=P.slice(),G=0;G<=R;++G)G===d&&(B[G]=-1);var U=B[0];B[0]=B[1],B[1]=U;var H=new o(B,new Array(R+1),!0);I[d]=H,N[d]=H}N[R+1]=k;for(var d=0;d<=R;++d)for(var B=I[d].vertices,W=I[d].adjacent,G=0;G<=R;++G){var V=B[G];if(V<0){W[G]=k;continue}for(var $=0;$<=R;++$)I[$].vertices.indexOf(V)<0&&(W[G]=I[$])}for(var Z=new E(R,T,N),q=!!A,d=R+1;d3*(N+1)?E(this,I):this.left.insert(I):this.left=L([I]);else if(I[0]>this.mid)this.right?4*(this.right.count+1)>3*(N+1)?E(this,I):this.right.insert(I):this.right=L([I]);else{var B=n.ge(this.leftPoints,I,R),G=n.ge(this.rightPoints,I,T);this.leftPoints.splice(B,0,I),this.rightPoints.splice(G,0,I)}},u.remove=function(I){var N=this.count-this.leftPoints;if(I[1]3*(N-1))return g(this,I);var G=this.left.remove(I);return G===h?(this.left=null,this.count-=1,o):(G===o&&(this.count-=1),G)}else if(I[0]>this.mid){if(!this.right)return s;var U=this.left?this.left.count:0;if(4*U>3*(N-1))return g(this,I);var G=this.right.remove(I);return G===h?(this.right=null,this.count-=1,o):(G===o&&(this.count-=1),G)}else{if(this.count===1)return this.leftPoints[0]===I?h:s;if(this.leftPoints.length===1&&this.leftPoints[0]===I){if(this.left&&this.right){for(var H=this,W=this.left;W.right;)H=W,W=W.right;if(H===this)W.right=this.right;else{var V=this.left,G=this.right;H.count-=W.count,H.right=W.left,W.left=V,W.right=G}b(this,W),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return o}for(var V=n.ge(this.leftPoints,I,R);V=0&&I[G][1]>=N;--G){var U=B(I[G]);if(U)return U}}function A(I,N){for(var B=0;Bthis.mid){if(this.right){var B=this.right.queryPoint(I,N);if(B)return B}return x(this.rightPoints,I,N)}else return A(this.leftPoints,N)},u.queryInterval=function(I,N,B){if(Ithis.mid&&this.right){var G=this.right.queryInterval(I,N,B);if(G)return G}return Nthis.mid?x(this.rightPoints,I,B):A(this.leftPoints,B)};function M(I,N){return I-N}function R(I,N){var B=I[0]-N[0];return B||I[1]-N[1]}function T(I,N){var B=I[1]-N[1];return B||I[0]-N[0]}function L(I){if(I.length===0)return null;for(var N=[],B=0;B>1],U=[],H=[],W=[],B=0;Bre&&de>0){var le=(ee[de][0]-re)/(ee[de][0]-ee[de-1][0]);return ee[de][1]*(1-le)+le*ee[de-1][1]}}return 1}var $=[0,0,0],Z={showSurface:!1,showContour:!1,projections:[I.slice(),I.slice(),I.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function q(re,ee){var de,le,he,xe=ee.axes&&ee.axes.lastCubeProps.axis||$,Ee=ee.showSurface,Se=ee.showContour;for(de=0;de<3;++de)for(Ee=Ee||ee.surfaceProject[de],le=0;le<3;++le)Se=Se||ee.contourProject[de][le];for(de=0;de<3;++de){var ke=Z.projections[de];for(le=0;le<16;++le)ke[le]=0;for(le=0;le<4;++le)ke[5*le]=1;ke[5*de]=0,ke[12+de]=ee.axesBounds[+(xe[de]>0)][de],c(ke,re.model,ke);var Te=Z.clipBounds[de];for(he=0;he<2;++he)for(le=0;le<3;++le)Te[he][le]=re.clipBounds[he][le];Te[0][de]=-1e8,Te[1][de]=1e8}return Z.showSurface=Ee,Z.showContour=Se,Z}var ae={model:I,view:I,projection:I,inverseModel:I.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},ie=I.slice(),fe=[1,0,0,0,1,0,0,0,1];function Q(re,ee){re=re||{};var de=this.gl;de.disable(de.CULL_FACE),this._colorMap.bind(0);var le=ae;le.model=re.model||I,le.view=re.view||I,le.projection=re.projection||I,le.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],le.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],le.objectOffset=this.objectOffset,le.contourColor=this.contourColor[0],le.inverseModel=y(le.inverseModel,le.model);for(var he=0;he<2;++he)for(var xe=le.clipBounds[he],Ee=0;Ee<3;++Ee)xe[Ee]=Math.min(Math.max(this.clipBounds[he][Ee],-1e8),1e8);le.kambient=this.ambientLight,le.kdiffuse=this.diffuseLight,le.kspecular=this.specularLight,le.roughness=this.roughness,le.fresnel=this.fresnel,le.opacity=this.opacity,le.height=0,le.permutation=fe,le.vertexColor=this.vertexColor;var Se=ie;for(c(Se,le.view,le.model),c(Se,le.projection,Se),y(Se,Se),he=0;he<3;++he)le.eyePosition[he]=Se[12+he]/Se[15];var ke=Se[15];for(he=0;he<3;++he)ke+=this.lightPosition[he]*Se[4*he+3];for(he=0;he<3;++he){var Te=Se[12+he];for(Ee=0;Ee<3;++Ee)Te+=Se[4*Ee+he]*this.lightPosition[Ee];le.lightPosition[he]=Te/ke}var Ae=q(le,this);if(Ae.showSurface){for(this._shader.bind(),this._shader.uniforms=le,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(de.TRIANGLES,this._vertexCount),he=0;he<3;++he)!this.surfaceProject[he]||!this.vertexCount||(this._shader.uniforms.model=Ae.projections[he],this._shader.uniforms.clipBounds=Ae.clipBounds[he],this._vao.draw(de.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ae.showContour){var be=this._contourShader;le.kambient=1,le.kdiffuse=0,le.kspecular=0,le.opacity=1,be.bind(),be.uniforms=le;var Ie=this._contourVAO;for(Ie.bind(),he=0;he<3;++he)for(be.uniforms.permutation=B[he],de.lineWidth(this.contourWidth[he]*this.pixelRatio),Ee=0;Ee>4)/16)/255,he=Math.floor(le),xe=le-he,Ee=ee[1]*(re.value[1]+(re.value[2]&15)/16)/255,Se=Math.floor(Ee),ke=Ee-Se;he+=1,Se+=1;var Te=de.position;Te[0]=Te[1]=Te[2]=0;for(var Ae=0;Ae<2;++Ae)for(var be=Ae?xe:1-xe,Ie=0;Ie<2;++Ie)for(var Ue=Ie?ke:1-ke,Ne=he+Ae,ze=Se+Ie,$e=be*Ue,st=0;st<3;++st)Te[st]+=this._field[st].get(Ne,ze)*$e;for(var vt=this._pickResult.level,at=0;at<3;++at)if(vt[at]=A.le(this.contourLevels[at],Te[at]),vt[at]<0)this.contourLevels[at].length>0&&(vt[at]=0);else if(vt[at]Math.abs(mt-Te[at])&&(vt[at]+=1)}for(de.index[0]=xe<.5?he:he+1,de.index[1]=ke<.5?Se:Se+1,de.uv[0]=le/ee[0],de.uv[1]=Ee/ee[1],st=0;st<3;++st)de.dataCoordinate[st]=this._field[st].get(de.index[0],de.index[1]);return de},W.padField=function(re,ee){var de=ee.shape.slice(),le=re.shape.slice();b.assign(re.lo(1,1).hi(de[0],de[1]),ee),b.assign(re.lo(1).hi(de[0],1),ee.hi(de[0],1)),b.assign(re.lo(1,le[1]-1).hi(de[0],1),ee.lo(0,de[1]-1).hi(de[0],1)),b.assign(re.lo(0,1).hi(1,de[1]),ee.hi(1)),b.assign(re.lo(le[0]-1,1).hi(1,de[1]),ee.lo(de[0]-1)),re.set(0,0,ee.get(0,0)),re.set(0,le[1]-1,ee.get(0,de[1]-1)),re.set(le[0]-1,0,ee.get(de[0]-1,0)),re.set(le[0]-1,le[1]-1,ee.get(de[0]-1,de[1]-1))};function oe(re,ee){return Array.isArray(re)?[ee(re[0]),ee(re[1]),ee(re[2])]:[ee(re),ee(re),ee(re)]}function K(re){return Array.isArray(re)?re.length===3?[re[0],re[1],re[2],1]:[re[0],re[1],re[2],re[3]]:[0,0,0,1]}function ne(re){if(Array.isArray(re)){if(Array.isArray(re))return[K(re[0]),K(re[1]),K(re[2])];var ee=K(re);return[ee.slice(),ee.slice(),ee.slice()]}}W.update=function(re){re=re||{},this.objectOffset=re.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in re&&(this.contourWidth=oe(re.contourWidth,Number)),"showContour"in re&&(this.showContour=oe(re.showContour,Boolean)),"showSurface"in re&&(this.showSurface=!!re.showSurface),"contourTint"in re&&(this.contourTint=oe(re.contourTint,Boolean)),"contourColor"in re&&(this.contourColor=ne(re.contourColor)),"contourProject"in re&&(this.contourProject=oe(re.contourProject,function(Bt){return oe(Bt,Boolean)})),"surfaceProject"in re&&(this.surfaceProject=re.surfaceProject),"dynamicColor"in re&&(this.dynamicColor=ne(re.dynamicColor)),"dynamicTint"in re&&(this.dynamicTint=oe(re.dynamicTint,Number)),"dynamicWidth"in re&&(this.dynamicWidth=oe(re.dynamicWidth,Number)),"opacity"in re&&(this.opacity=re.opacity),"opacityscale"in re&&(this.opacityscale=re.opacityscale),"colorBounds"in re&&(this.colorBounds=re.colorBounds),"vertexColor"in re&&(this.vertexColor=re.vertexColor?1:0),"colormap"in re&&this._colorMap.setPixels(this.genColormap(re.colormap,this.opacityscale));var ee=re.field||re.coords&&re.coords[2]||null,de=!1;if(ee||(this._field[2].shape[0]||this._field[2].shape[2]?ee=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ee=this._field[2].hi(0,0)),"field"in re||"coords"in re){var le=(ee.shape[0]+2)*(ee.shape[1]+2);le>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(n.nextPow2(le))),this._field[2]=E(this._field[2].data,[ee.shape[0]+2,ee.shape[1]+2]),this.padField(this._field[2],ee),this.shape=ee.shape.slice();for(var he=this.shape,xe=0;xe<2;++xe)this._field[2].size>this._field[xe].data.length&&(f.freeFloat(this._field[xe].data),this._field[xe].data=f.mallocFloat(this._field[2].size)),this._field[xe]=E(this._field[xe].data,[he[0]+2,he[1]+2]);if(re.coords){var Ee=re.coords;if(!Array.isArray(Ee)||Ee.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(xe=0;xe<2;++xe){var Se=Ee[xe];for(Ie=0;Ie<2;++Ie)if(Se.shape[Ie]!==he[Ie])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[xe],Se)}}else if(re.ticks){var ke=re.ticks;if(!Array.isArray(ke)||ke.length!==2)throw new Error("gl-surface: invalid ticks");for(xe=0;xe<2;++xe){var Te=ke[xe];if((Array.isArray(Te)||Te.length)&&(Te=E(Te)),Te.shape[0]!==he[xe])throw new Error("gl-surface: invalid tick length");var Ae=E(Te.data,he);Ae.stride[xe]=Te.stride[0],Ae.stride[xe^1]=0,this.padField(this._field[xe],Ae)}}else{for(xe=0;xe<2;++xe){var be=[0,0];be[xe]=1,this._field[xe]=E(this._field[xe].data,[he[0]+2,he[1]+2],be,0)}this._field[0].set(0,0,0);for(var Ie=0;Ie0){for(var Xe=0;Xe<5;++Xe)Lt.pop();we-=1}continue e}}}Kt.push(we)}this._contourOffsets[Xt]=Tt,this._contourCounts[Xt]=Kt}var Ut=f.mallocFloat(Lt.length);for(xe=0;xeG||N<0||N>G)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[I,N],k.bind(),B.texImage2D(B.TEXTURE_2D,0,k.format,I,N,0,k.format,k.type,null),k._mipLevels=[0],k}function c(k,I,N,B,G,U){this.gl=k,this.handle=I,this.format=G,this.type=U,this._shape=[N,B],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,W=[this._wrapS,this._wrapT];Object.defineProperties(W,[{get:function(){return H._wrapS},set:function($){return H.wrapS=$}},{get:function(){return H._wrapT},set:function($){return H.wrapT=$}}]),this._wrapVector=W;var V=[this._shape[0],this._shape[1]];Object.defineProperties(V,[{get:function(){return H._shape[0]},set:function($){return H.width=$}},{get:function(){return H._shape[1]},set:function($){return H.height=$}}]),this._shapeVector=V}var y=c.prototype;Object.defineProperties(y,{minFilter:{get:function(){return this._minFilter},set:function(k){this.bind();var I=this.gl;if(this.type===I.FLOAT&&h.indexOf(k)>=0&&(I.getExtension("OES_texture_float_linear")||(k=I.NEAREST)),f.indexOf(k)<0)throw new Error("gl-texture2d: Unknown filter mode "+k);return I.texParameteri(I.TEXTURE_2D,I.TEXTURE_MIN_FILTER,k),this._minFilter=k}},magFilter:{get:function(){return this._magFilter},set:function(k){this.bind();var I=this.gl;if(this.type===I.FLOAT&&h.indexOf(k)>=0&&(I.getExtension("OES_texture_float_linear")||(k=I.NEAREST)),f.indexOf(k)<0)throw new Error("gl-texture2d: Unknown filter mode "+k);return I.texParameteri(I.TEXTURE_2D,I.TEXTURE_MAG_FILTER,k),this._magFilter=k}},mipSamples:{get:function(){return this._anisoSamples},set:function(k){var I=this._anisoSamples;if(this._anisoSamples=Math.max(k,1)|0,I!==this._anisoSamples){var N=this.gl.getExtension("EXT_texture_filter_anisotropic");N&&this.gl.texParameterf(this.gl.TEXTURE_2D,N.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(k){if(this.bind(),u.indexOf(k)<0)throw new Error("gl-texture2d: Unknown wrap mode "+k);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,k),this._wrapS=k}},wrapT:{get:function(){return this._wrapT},set:function(k){if(this.bind(),u.indexOf(k)<0)throw new Error("gl-texture2d: Unknown wrap mode "+k);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,k),this._wrapT=k}},wrap:{get:function(){return this._wrapVector},set:function(k){if(Array.isArray(k)||(k=[k,k]),k.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var I=0;I<2;++I)if(u.indexOf(k[I])<0)throw new Error("gl-texture2d: Unknown wrap mode "+k);this._wrapS=k[0],this._wrapT=k[1];var N=this.gl;return this.bind(),N.texParameteri(N.TEXTURE_2D,N.TEXTURE_WRAP_S,this._wrapS),N.texParameteri(N.TEXTURE_2D,N.TEXTURE_WRAP_T,this._wrapT),k}},shape:{get:function(){return this._shapeVector},set:function(k){if(!Array.isArray(k))k=[k|0,k|0];else if(k.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return g(this,k[0]|0,k[1]|0),[k[0]|0,k[1]|0]}},width:{get:function(){return this._shape[0]},set:function(k){return k=k|0,g(this,k,this._shape[1]),k}},height:{get:function(){return this._shape[1]},set:function(k){return k=k|0,g(this,this._shape[0],k),k}}}),y.bind=function(k){var I=this.gl;return k!==void 0&&I.activeTexture(I.TEXTURE0+(k|0)),I.bindTexture(I.TEXTURE_2D,this.handle),k!==void 0?k|0:I.getParameter(I.ACTIVE_TEXTURE)-I.TEXTURE0},y.dispose=function(){this.gl.deleteTexture(this.handle)},y.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var k=Math.min(this._shape[0],this._shape[1]),I=0;k>0;++I,k>>>=1)this._mipLevels.indexOf(I)<0&&this._mipLevels.push(I)},y.setPixels=function(k,I,N,B){var G=this.gl;this.bind(),Array.isArray(I)?(B=N,N=I[1]|0,I=I[0]|0):(I=I||0,N=N||0),B=B||0;var U=p(k)?k:k.raw;if(U){var H=this._mipLevels.indexOf(B)<0;H?(G.texImage2D(G.TEXTURE_2D,0,this.format,this.format,this.type,U),this._mipLevels.push(B)):G.texSubImage2D(G.TEXTURE_2D,B,I,N,this.format,this.type,U)}else if(k.shape&&k.stride&&k.data){if(k.shape.length<2||I+k.shape[1]>this._shape[1]>>>B||N+k.shape[0]>this._shape[0]>>>B||I<0||N<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");M(G,I,N,B,this.format,this.type,this._mipLevels,k)}else throw new Error("gl-texture2d: Unsupported data type")};function A(k,I){return k.length===3?I[2]===1&&I[1]===k[0]*k[2]&&I[0]===k[2]:I[0]===1&&I[1]===k[0]}function M(k,I,N,B,G,U,H,W){var V=W.dtype,$=W.shape.slice();if($.length<2||$.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var Z=0,q=0,ae=A($,W.stride.slice());if(V==="float32"?Z=k.FLOAT:V==="float64"?(Z=k.FLOAT,ae=!1,V="float32"):V==="uint8"?Z=k.UNSIGNED_BYTE:(Z=k.UNSIGNED_BYTE,ae=!1,V="uint8"),$.length===2)q=k.LUMINANCE,$=[$[0],$[1],1],W=n(W.data,$,[W.stride[0],W.stride[1],1],W.offset);else if($.length===3){if($[2]===1)q=k.ALPHA;else if($[2]===2)q=k.LUMINANCE_ALPHA;else if($[2]===3)q=k.RGB;else if($[2]===4)q=k.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((q===k.LUMINANCE||q===k.ALPHA)&&(G===k.LUMINANCE||G===k.ALPHA)&&(q=G),q!==G)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ie=W.size,fe=H.indexOf(B)<0;if(fe&&H.push(B),Z===U&&ae)W.offset===0&&W.data.length===ie?fe?k.texImage2D(k.TEXTURE_2D,B,G,$[0],$[1],0,G,U,W.data):k.texSubImage2D(k.TEXTURE_2D,B,I,N,$[0],$[1],G,U,W.data):fe?k.texImage2D(k.TEXTURE_2D,B,G,$[0],$[1],0,G,U,W.data.subarray(W.offset,W.offset+ie)):k.texSubImage2D(k.TEXTURE_2D,B,I,N,$[0],$[1],G,U,W.data.subarray(W.offset,W.offset+ie));else{var Q;U===k.FLOAT?Q=o.mallocFloat32(ie):Q=o.mallocUint8(ie);var J=n(Q,$,[$[2],$[2]*$[0],1]);Z===k.FLOAT&&U===k.UNSIGNED_BYTE?E(J,W):s.assign(J,W),fe?k.texImage2D(k.TEXTURE_2D,B,G,$[0],$[1],0,G,U,Q.subarray(0,ie)):k.texSubImage2D(k.TEXTURE_2D,B,I,N,$[0],$[1],G,U,Q.subarray(0,ie)),U===k.FLOAT?o.freeFloat32(Q):o.freeUint8(Q)}}function R(k){var I=k.createTexture();return k.bindTexture(k.TEXTURE_2D,I),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE),I}function T(k,I,N,B,G){var U=k.getParameter(k.MAX_TEXTURE_SIZE);if(I<0||I>U||N<0||N>U)throw new Error("gl-texture2d: Invalid texture shape");if(G===k.FLOAT&&!k.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var H=R(k);return k.texImage2D(k.TEXTURE_2D,0,B,I,N,0,B,G,null),new c(k,H,I,N,B,G)}function L(k,I,N,B,G,U){var H=R(k);return k.texImage2D(k.TEXTURE_2D,0,G,G,U,I),new c(k,H,N,B,G,U)}function P(k,I){var N=I.dtype,B=I.shape.slice(),G=k.getParameter(k.MAX_TEXTURE_SIZE);if(B[0]<0||B[0]>G||B[1]<0||B[1]>G)throw new Error("gl-texture2d: Invalid texture size");var U=A(B,I.stride.slice()),H=0;N==="float32"?H=k.FLOAT:N==="float64"?(H=k.FLOAT,U=!1,N="float32"):N==="uint8"?H=k.UNSIGNED_BYTE:(H=k.UNSIGNED_BYTE,U=!1,N="uint8");var W=0;if(B.length===2)W=k.LUMINANCE,B=[B[0],B[1],1],I=n(I.data,B,[I.stride[0],I.stride[1],1],I.offset);else if(B.length===3)if(B[2]===1)W=k.ALPHA;else if(B[2]===2)W=k.LUMINANCE_ALPHA;else if(B[2]===3)W=k.RGB;else if(B[2]===4)W=k.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");H===k.FLOAT&&!k.getExtension("OES_texture_float")&&(H=k.UNSIGNED_BYTE,U=!1);var V,$,Z=I.size;if(U)I.offset===0&&I.data.length===Z?V=I.data:V=I.data.subarray(I.offset,I.offset+Z);else{var q=[B[2],B[2]*B[0],1];$=o.malloc(Z,N);var ae=n($,B,q,0);(N==="float32"||N==="float64")&&H===k.UNSIGNED_BYTE?E(ae,I):s.assign(ae,I),V=$.subarray(0,Z)}var ie=R(k);return k.texImage2D(k.TEXTURE_2D,0,W,B[0],B[1],0,W,H,V),U||o.free($),new c(k,ie,B[0],B[1],W,H)}function d(k){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(h||b(k),typeof arguments[1]=="number")return T(k,arguments[1],arguments[2],arguments[3]||k.RGBA,arguments[4]||k.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return T(k,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||k.RGBA,arguments[3]||k.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var I=arguments[1],N=p(I)?I:I.raw;if(N)return L(k,N,I.width|0,I.height|0,arguments[2]||k.RGBA,arguments[3]||k.UNSIGNED_BYTE);if(I.shape&&I.data&&I.stride)return P(k,I)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},3056:function(v){function m(a,n,s){n?n.bind():a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);var o=a.getParameter(a.MAX_VERTEX_ATTRIBS)|0;if(s){if(s.length>o)throw new Error("gl-vao: Too many vertex attributes");for(var h=0;h1?0:Math.acos(E)}},8827:function(v){v.exports=m;function m(a,n){return a[0]=Math.ceil(n[0]),a[1]=Math.ceil(n[1]),a[2]=Math.ceil(n[2]),a}},7622:function(v){v.exports=m;function m(a){var n=new Float32Array(3);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n}},8782:function(v){v.exports=m;function m(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a}},8501:function(v){v.exports=m;function m(){var a=new Float32Array(3);return a[0]=0,a[1]=0,a[2]=0,a}},903:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[0],b=s[1],p=s[2];return a[0]=h*p-f*b,a[1]=f*u-o*p,a[2]=o*b-h*u,a}},5981:function(v,m,a){v.exports=a(8288)},8288:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2];return Math.sqrt(s*s+o*o+h*h)}},8629:function(v,m,a){v.exports=a(7979)},7979:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]/s[0],a[1]=n[1]/s[1],a[2]=n[2]/s[2],a}},9305:function(v){v.exports=m;function m(a,n){return a[0]*n[0]+a[1]*n[1]+a[2]*n[2]}},154:function(v){v.exports=1e-6},4932:function(v,m,a){v.exports=s;var n=a(154);function s(o,h){var f=o[0],u=o[1],b=o[2],p=h[0],E=h[1],g=h[2];return Math.abs(f-p)<=n*Math.max(1,Math.abs(f),Math.abs(p))&&Math.abs(u-E)<=n*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(b-g)<=n*Math.max(1,Math.abs(b),Math.abs(g))}},5777:function(v){v.exports=m;function m(a,n){return a[0]===n[0]&&a[1]===n[1]&&a[2]===n[2]}},3306:function(v){v.exports=m;function m(a,n){return a[0]=Math.floor(n[0]),a[1]=Math.floor(n[1]),a[2]=Math.floor(n[2]),a}},7447:function(v,m,a){v.exports=s;var n=a(8501)();function s(o,h,f,u,b,p){var E,g;for(h||(h=3),f||(f=0),u?g=Math.min(u*h+f,o.length):g=o.length,E=f;E0&&(f=1/Math.sqrt(f),a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f),a}},6660:function(v){v.exports=m;function m(a,n){n=n||1;var s=Math.random()*2*Math.PI,o=Math.random()*2-1,h=Math.sqrt(1-o*o)*n;return a[0]=Math.cos(s)*h,a[1]=Math.sin(s)*h,a[2]=o*n,a}},392:function(v){v.exports=m;function m(a,n,s,o){var h=s[1],f=s[2],u=n[1]-h,b=n[2]-f,p=Math.sin(o),E=Math.cos(o);return a[0]=n[0],a[1]=h+u*E-b*p,a[2]=f+u*p+b*E,a}},3222:function(v){v.exports=m;function m(a,n,s,o){var h=s[0],f=s[2],u=n[0]-h,b=n[2]-f,p=Math.sin(o),E=Math.cos(o);return a[0]=h+b*p+u*E,a[1]=n[1],a[2]=f+b*E-u*p,a}},3388:function(v){v.exports=m;function m(a,n,s,o){var h=s[0],f=s[1],u=n[0]-h,b=n[1]-f,p=Math.sin(o),E=Math.cos(o);return a[0]=h+u*E-b*p,a[1]=f+u*p+b*E,a[2]=n[2],a}},1624:function(v){v.exports=m;function m(a,n){return a[0]=Math.round(n[0]),a[1]=Math.round(n[1]),a[2]=Math.round(n[2]),a}},5685:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]*s,a[1]=n[1]*s,a[2]=n[2]*s,a}},6722:function(v){v.exports=m;function m(a,n,s,o){return a[0]=n[0]+s[0]*o,a[1]=n[1]+s[1]*o,a[2]=n[2]+s[2]*o,a}},831:function(v){v.exports=m;function m(a,n,s,o){return a[0]=n,a[1]=s,a[2]=o,a}},5294:function(v,m,a){v.exports=a(6403)},3303:function(v,m,a){v.exports=a(4337)},6403:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2];return s*s+o*o+h*h}},4337:function(v){v.exports=m;function m(a){var n=a[0],s=a[1],o=a[2];return n*n+s*s+o*o}},8921:function(v,m,a){v.exports=a(911)},911:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]-s[0],a[1]=n[1]-s[1],a[2]=n[2]-s[2],a}},9908:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2];return a[0]=o*s[0]+h*s[3]+f*s[6],a[1]=o*s[1]+h*s[4]+f*s[7],a[2]=o*s[2]+h*s[5]+f*s[8],a}},3255:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[3]*o+s[7]*h+s[11]*f+s[15];return u=u||1,a[0]=(s[0]*o+s[4]*h+s[8]*f+s[12])/u,a[1]=(s[1]*o+s[5]*h+s[9]*f+s[13])/u,a[2]=(s[2]*o+s[6]*h+s[10]*f+s[14])/u,a}},6568:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[0],b=s[1],p=s[2],E=s[3],g=E*o+b*f-p*h,c=E*h+p*o-u*f,y=E*f+u*h-b*o,A=-u*o-b*h-p*f;return a[0]=g*E+A*-u+c*-p-y*-b,a[1]=c*E+A*-b+y*-u-g*-p,a[2]=y*E+A*-p+g*-b-c*-u,a}},3433:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]+s[0],a[1]=n[1]+s[1],a[2]=n[2]+s[2],a[3]=n[3]+s[3],a}},1413:function(v){v.exports=m;function m(a){var n=new Float32Array(4);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n}},3470:function(v){v.exports=m;function m(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a}},5313:function(v){v.exports=m;function m(){var a=new Float32Array(4);return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a}},5446:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2],f=n[3]-a[3];return Math.sqrt(s*s+o*o+h*h+f*f)}},205:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]/s[0],a[1]=n[1]/s[1],a[2]=n[2]/s[2],a[3]=n[3]/s[3],a}},4242:function(v){v.exports=m;function m(a,n){return a[0]*n[0]+a[1]*n[1]+a[2]*n[2]+a[3]*n[3]}},5680:function(v){v.exports=m;function m(a,n,s,o){var h=new Float32Array(4);return h[0]=a,h[1]=n,h[2]=s,h[3]=o,h}},4020:function(v,m,a){v.exports={create:a(5313),clone:a(1413),fromValues:a(5680),copy:a(3470),set:a(6453),add:a(3433),subtract:a(2705),multiply:a(746),divide:a(205),min:a(2170),max:a(3030),scale:a(5510),scaleAndAdd:a(4224),distance:a(5446),squaredDistance:a(1542),length:a(8177),squaredLength:a(9037),negate:a(6459),inverse:a(8057),normalize:a(381),dot:a(4242),lerp:a(8746),random:a(3770),transformMat4:a(6342),transformQuat:a(5022)}},8057:function(v){v.exports=m;function m(a,n){return a[0]=1/n[0],a[1]=1/n[1],a[2]=1/n[2],a[3]=1/n[3],a}},8177:function(v){v.exports=m;function m(a){var n=a[0],s=a[1],o=a[2],h=a[3];return Math.sqrt(n*n+s*s+o*o+h*h)}},8746:function(v){v.exports=m;function m(a,n,s,o){var h=n[0],f=n[1],u=n[2],b=n[3];return a[0]=h+o*(s[0]-h),a[1]=f+o*(s[1]-f),a[2]=u+o*(s[2]-u),a[3]=b+o*(s[3]-b),a}},3030:function(v){v.exports=m;function m(a,n,s){return a[0]=Math.max(n[0],s[0]),a[1]=Math.max(n[1],s[1]),a[2]=Math.max(n[2],s[2]),a[3]=Math.max(n[3],s[3]),a}},2170:function(v){v.exports=m;function m(a,n,s){return a[0]=Math.min(n[0],s[0]),a[1]=Math.min(n[1],s[1]),a[2]=Math.min(n[2],s[2]),a[3]=Math.min(n[3],s[3]),a}},746:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]*s[0],a[1]=n[1]*s[1],a[2]=n[2]*s[2],a[3]=n[3]*s[3],a}},6459:function(v){v.exports=m;function m(a,n){return a[0]=-n[0],a[1]=-n[1],a[2]=-n[2],a[3]=-n[3],a}},381:function(v){v.exports=m;function m(a,n){var s=n[0],o=n[1],h=n[2],f=n[3],u=s*s+o*o+h*h+f*f;return u>0&&(u=1/Math.sqrt(u),a[0]=s*u,a[1]=o*u,a[2]=h*u,a[3]=f*u),a}},3770:function(v,m,a){var n=a(381),s=a(5510);v.exports=o;function o(h,f){return f=f||1,h[0]=Math.random(),h[1]=Math.random(),h[2]=Math.random(),h[3]=Math.random(),n(h,h),s(h,h,f),h}},5510:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]*s,a[1]=n[1]*s,a[2]=n[2]*s,a[3]=n[3]*s,a}},4224:function(v){v.exports=m;function m(a,n,s,o){return a[0]=n[0]+s[0]*o,a[1]=n[1]+s[1]*o,a[2]=n[2]+s[2]*o,a[3]=n[3]+s[3]*o,a}},6453:function(v){v.exports=m;function m(a,n,s,o,h){return a[0]=n,a[1]=s,a[2]=o,a[3]=h,a}},1542:function(v){v.exports=m;function m(a,n){var s=n[0]-a[0],o=n[1]-a[1],h=n[2]-a[2],f=n[3]-a[3];return s*s+o*o+h*h+f*f}},9037:function(v){v.exports=m;function m(a){var n=a[0],s=a[1],o=a[2],h=a[3];return n*n+s*s+o*o+h*h}},2705:function(v){v.exports=m;function m(a,n,s){return a[0]=n[0]-s[0],a[1]=n[1]-s[1],a[2]=n[2]-s[2],a[3]=n[3]-s[3],a}},6342:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=n[3];return a[0]=s[0]*o+s[4]*h+s[8]*f+s[12]*u,a[1]=s[1]*o+s[5]*h+s[9]*f+s[13]*u,a[2]=s[2]*o+s[6]*h+s[10]*f+s[14]*u,a[3]=s[3]*o+s[7]*h+s[11]*f+s[15]*u,a}},5022:function(v){v.exports=m;function m(a,n,s){var o=n[0],h=n[1],f=n[2],u=s[0],b=s[1],p=s[2],E=s[3],g=E*o+b*f-p*h,c=E*h+p*o-u*f,y=E*f+u*h-b*o,A=-u*o-b*h-p*f;return a[0]=g*E+A*-u+c*-p-y*-b,a[1]=c*E+A*-b+y*-u-g*-p,a[2]=y*E+A*-p+g*-b-c*-u,a[3]=n[3],a}},9365:function(v,m,a){var n=a(8096),s=a(7896);v.exports=o;function o(h){for(var f=Array.isArray(h)?h:n(h),u=0;u0)continue;st=Ne.slice(0,1).join("")}return re(st),ae+=st.length,V=V.slice(st.length),V.length}while(!0)}function Ae(){return/[^a-fA-F0-9]/.test(H)?(re(V.join("")),U=u,B):(V.push(H),W=H,B+1)}function be(){return H==="."||/[eE]/.test(H)?(V.push(H),U=A,W=H,B+1):H==="x"&&V.length===1&&V[0]==="0"?(U=d,V.push(H),W=H,B+1):/[^\d]/.test(H)?(re(V.join("")),U=u,B):(V.push(H),W=H,B+1)}function Ie(){return H==="f"&&(V.push(H),W=H,B+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(W)?(V.push(H),W=H,B+1):/[^\d]/.test(H)?(re(V.join("")),U=u,B):(V.push(H),W=H,B+1)}function Ue(){if(/[^\d\w_]/.test(H)){var Ne=V.join("");return ce[Ne]?U=T:ne[Ne]?U=R:U=M,re(V.join("")),U=u,B}return V.push(H),W=H,B+1}}},3585:function(v,m,a){var n=a(9525);n=n.slice().filter(function(s){return!/^(gl\_|texture)/.test(s)}),v.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(v){v.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(v,m,a){var n=a(399);v.exports=n.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(v){v.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(v){v.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(v,m,a){var n=a(3193);v.exports=s;function s(o,h){var f=n(h),u=[];return u=u.concat(f(o)),u=u.concat(f(null)),u}},6832:function(v){v.exports=function(m){typeof m=="string"&&(m=[m]);for(var a=[].slice.call(arguments,1),n=[],s=0;s0;){y=P.pop();for(var d=y.adjacent,k=0;k<=M;++k){var I=d[k];if(!(!I.boundary||I.lastVisited<=-R)){for(var N=I.vertices,B=0;B<=M;++B){var G=N[B];G<0?T[B]=A:T[B]=L[G]}var U=this.orient();if(U>0)return I;I.lastVisited=-R,U===0&&P.push(I)}}}return null},g.walk=function(y,A){var M=this.vertices.length-1,R=this.dimension,T=this.vertices,L=this.tuple,P=A?this.interior.length*Math.random()|0:this.interior.length-1,d=this.interior[P];e:for(;!d.boundary;){for(var k=d.vertices,I=d.adjacent,N=0;N<=R;++N)L[N]=T[k[N]];d.lastVisited=M;for(var N=0;N<=R;++N){var B=I[N];if(!(B.lastVisited>=M)){var G=L[N];L[N]=y;var U=this.orient();if(L[N]=G,U<0){d=B;continue e}else B.boundary?B.lastVisited=-M:B.lastVisited=M}}return}return d},g.addPeaks=function(y,A){var M=this.vertices.length-1,R=this.dimension,T=this.vertices,L=this.tuple,P=this.interior,d=this.simplices,k=[A];A.lastVisited=M,A.vertices[A.vertices.indexOf(-1)]=M,A.boundary=!1,P.push(A);for(var I=[];k.length>0;){var A=k.pop(),N=A.vertices,B=A.adjacent,G=N.indexOf(M);if(!(G<0)){for(var U=0;U<=R;++U)if(U!==G){var H=B[U];if(!(!H.boundary||H.lastVisited>=M)){var W=H.vertices;if(H.lastVisited!==-M){for(var V=0,$=0;$<=R;++$)W[$]<0?(V=$,L[$]=y):L[$]=T[W[$]];var Z=this.orient();if(Z>0){W[V]=M,H.boundary=!1,P.push(H),k.push(H),H.lastVisited=M;continue}else H.lastVisited=-M}var q=H.adjacent,ae=N.slice(),ie=B.slice(),fe=new o(ae,ie,!0);d.push(fe);var Q=q.indexOf(A);if(!(Q<0)){q[Q]=fe,ie[G]=H,ae[U]=-1,ie[U]=A,B[U]=fe,fe.flip();for(var $=0;$<=R;++$){var J=ae[$];if(!(J<0||J===M)){for(var oe=new Array(R-1),K=0,ne=0;ne<=R;++ne){var ce=ae[ne];ce<0||ne===$||(oe[K++]=ce)}I.push(new h(oe,fe,$))}}}}}}}I.sort(f);for(var U=0;U+1=0?P[k++]=d[N]:I=N&1;if(I===(y&1)){var B=P[0];P[0]=P[1],P[1]=B}A.push(P)}}return A};function c(y,A){var M=y.length;if(M===0)throw new Error("Must have at least d+1 points");var R=y[0].length;if(M<=R)throw new Error("Must input at least d+1 points");var T=y.slice(0,R+1),L=n.apply(void 0,T);if(L===0)throw new Error("Input not in general position");for(var P=new Array(R+1),d=0;d<=R;++d)P[d]=d;L<0&&(P[0]=1,P[1]=0);for(var k=new o(P,new Array(R+1),!1),I=k.adjacent,N=new Array(R+2),d=0;d<=R;++d){for(var B=P.slice(),G=0;G<=R;++G)G===d&&(B[G]=-1);var U=B[0];B[0]=B[1],B[1]=U;var H=new o(B,new Array(R+1),!0);I[d]=H,N[d]=H}N[R+1]=k;for(var d=0;d<=R;++d)for(var B=I[d].vertices,W=I[d].adjacent,G=0;G<=R;++G){var V=B[G];if(V<0){W[G]=k;continue}for(var $=0;$<=R;++$)I[$].vertices.indexOf(V)<0&&(W[G]=I[$])}for(var Z=new E(R,T,N),q=!!A,d=R+1;d3*(N+1)?E(this,I):this.left.insert(I):this.left=L([I]);else if(I[0]>this.mid)this.right?4*(this.right.count+1)>3*(N+1)?E(this,I):this.right.insert(I):this.right=L([I]);else{var B=n.ge(this.leftPoints,I,R),G=n.ge(this.rightPoints,I,T);this.leftPoints.splice(B,0,I),this.rightPoints.splice(G,0,I)}},u.remove=function(I){var N=this.count-this.leftPoints;if(I[1]3*(N-1))return g(this,I);var G=this.left.remove(I);return G===h?(this.left=null,this.count-=1,o):(G===o&&(this.count-=1),G)}else if(I[0]>this.mid){if(!this.right)return s;var U=this.left?this.left.count:0;if(4*U>3*(N-1))return g(this,I);var G=this.right.remove(I);return G===h?(this.right=null,this.count-=1,o):(G===o&&(this.count-=1),G)}else{if(this.count===1)return this.leftPoints[0]===I?h:s;if(this.leftPoints.length===1&&this.leftPoints[0]===I){if(this.left&&this.right){for(var H=this,W=this.left;W.right;)H=W,W=W.right;if(H===this)W.right=this.right;else{var V=this.left,G=this.right;H.count-=W.count,H.right=W.left,W.left=V,W.right=G}b(this,W),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return o}for(var V=n.ge(this.leftPoints,I,R);V=0&&I[G][1]>=N;--G){var U=B(I[G]);if(U)return U}}function A(I,N){for(var B=0;Bthis.mid){if(this.right){var B=this.right.queryPoint(I,N);if(B)return B}return y(this.rightPoints,I,N)}else return A(this.leftPoints,N)},u.queryInterval=function(I,N,B){if(Ithis.mid&&this.right){var G=this.right.queryInterval(I,N,B);if(G)return G}return Nthis.mid?y(this.rightPoints,I,B):A(this.leftPoints,B)};function M(I,N){return I-N}function R(I,N){var B=I[0]-N[0];return B||I[1]-N[1]}function T(I,N){var B=I[1]-N[1];return B||I[0]-N[0]}function L(I){if(I.length===0)return null;for(var N=[],B=0;B>1],U=[],H=[],W=[],B=0;B * @license MIT -*/v.exports=function(n){return n!=null&&(m(n)||a(n)||!!n._isBuffer)};function m(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function a(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&m(n.slice(0,0))}},3596:function(v){v.exports=function(m){for(var a=m.length,n,s=0;s13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},3578:function(v){function m(a,n,s){return a*(1-s)+n*s}v.exports=m},7191:function(v,m,a){var n=a(4690),s=a(9823),o=a(7332),h=a(7787),f=a(7437),u=a(2142),b={length:a(4693),normalize:a(899),dot:a(9305),cross:a(903)},p=s(),E=s(),g=[0,0,0,0],c=[[0,0,0],[0,0,0],[0,0,0]],x=[0,0,0];v.exports=function(L,P,d,k,I,N){if(P||(P=[0,0,0]),d||(d=[0,0,0]),k||(k=[0,0,0]),I||(I=[0,0,0,1]),N||(N=[0,0,0,1]),!n(p,L)||(o(E,p),E[3]=0,E[7]=0,E[11]=0,E[15]=1,Math.abs(h(E)<1e-8)))return!1;var B=p[3],G=p[7],U=p[11],H=p[12],W=p[13],V=p[14],$=p[15];if(B!==0||G!==0||U!==0){g[0]=B,g[1]=G,g[2]=U,g[3]=$;var Z=f(E,E);if(!Z)return!1;u(E,E),A(I,g,E)}else I[0]=I[1]=I[2]=0,I[3]=1;if(P[0]=H,P[1]=W,P[2]=V,M(c,p),d[0]=b.length(c[0]),b.normalize(c[0],c[0]),k[0]=b.dot(c[0],c[1]),R(c[1],c[1],c[0],1,-k[0]),d[1]=b.length(c[1]),b.normalize(c[1],c[1]),k[0]/=d[1],k[1]=b.dot(c[0],c[2]),R(c[2],c[2],c[0],1,-k[1]),k[2]=b.dot(c[1],c[2]),R(c[2],c[2],c[1],1,-k[2]),d[2]=b.length(c[2]),b.normalize(c[2],c[2]),k[1]/=d[2],k[2]/=d[2],b.cross(x,c[1],c[2]),b.dot(c[0],x)<0)for(var q=0;q<3;q++)d[q]*=-1,c[q][0]*=-1,c[q][1]*=-1,c[q][2]*=-1;return N[0]=.5*Math.sqrt(Math.max(1+c[0][0]-c[1][1]-c[2][2],0)),N[1]=.5*Math.sqrt(Math.max(1-c[0][0]+c[1][1]-c[2][2],0)),N[2]=.5*Math.sqrt(Math.max(1-c[0][0]-c[1][1]+c[2][2],0)),N[3]=.5*Math.sqrt(Math.max(1+c[0][0]+c[1][1]+c[2][2],0)),c[2][1]>c[1][2]&&(N[0]=-N[0]),c[0][2]>c[2][0]&&(N[1]=-N[1]),c[1][0]>c[0][1]&&(N[2]=-N[2]),!0};function A(T,L,P){var d=L[0],k=L[1],I=L[2],N=L[3];return T[0]=P[0]*d+P[4]*k+P[8]*I+P[12]*N,T[1]=P[1]*d+P[5]*k+P[9]*I+P[13]*N,T[2]=P[2]*d+P[6]*k+P[10]*I+P[14]*N,T[3]=P[3]*d+P[7]*k+P[11]*I+P[15]*N,T}function M(T,L){T[0][0]=L[0],T[0][1]=L[1],T[0][2]=L[2],T[1][0]=L[4],T[1][1]=L[5],T[1][2]=L[6],T[2][0]=L[8],T[2][1]=L[9],T[2][2]=L[10]}function R(T,L,P,d,k){T[0]=L[0]*d+P[0]*k,T[1]=L[1]*d+P[1]*k,T[2]=L[2]*d+P[2]*k}},4690:function(v){v.exports=function(a,n){var s=n[15];if(s===0)return!1;for(var o=1/s,h=0;h<16;h++)a[h]=n[h]*o;return!0}},7649:function(v,m,a){var n=a(1868),s=a(1102),o=a(7191),h=a(7787),f=a(1116),u=g(),b=g(),p=g();v.exports=E;function E(A,M,R,T){if(h(M)===0||h(R)===0)return!1;var L=o(M,u.translate,u.scale,u.skew,u.perspective,u.quaternion),P=o(R,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!L||!P?!1:(n(p.translate,u.translate,b.translate,T),n(p.skew,u.skew,b.skew,T),n(p.scale,u.scale,b.scale,T),n(p.perspective,u.perspective,b.perspective,T),f(p.quaternion,u.quaternion,b.quaternion,T),s(A,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function g(){return{translate:c(),scale:c(1),skew:c(),perspective:x(),quaternion:x()}}function c(A){return[A||0,A||0,A||0]}function x(){return[0,0,0,1]}},1102:function(v,m,a){var n={identity:a(9947),translate:a(998),multiply:a(104),create:a(9823),scale:a(3668),fromRotationTranslation:a(7280)};n.create();var s=n.create();v.exports=function(h,f,u,b,p,E){return n.identity(h),n.fromRotationTranslation(h,E,f),h[3]=p[0],h[7]=p[1],h[11]=p[2],h[15]=p[3],n.identity(s),b[2]!==0&&(s[9]=b[2],n.multiply(h,h,s)),b[1]!==0&&(s[9]=0,s[8]=b[1],n.multiply(h,h,s)),b[0]!==0&&(s[8]=0,s[4]=b[0],n.multiply(h,h,s)),n.scale(h,h,u),h}},9298:function(v,m,a){var n=a(5070),s=a(7649),o=a(7437),h=a(6109),f=a(7115),u=a(5240),b=a(3012),p=a(998);a(3668);var E=a(899),g=[0,0,0];v.exports=M;function c(R){this._components=R.slice(),this._time=[0],this.prevMatrix=R.slice(),this.nextMatrix=R.slice(),this.computedMatrix=R.slice(),this.computedInverse=R.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var x=c.prototype;x.recalcMatrix=function(R){var T=this._time,L=n.le(T,R),P=this.computedMatrix;if(!(L<0)){var d=this._components;if(L===T.length-1)for(var k=16*L,I=0;I<16;++I)P[I]=d[k++];else{for(var N=T[L+1]-T[L],k=16*L,B=this.prevMatrix,G=!0,I=0;I<16;++I)B[I]=d[k++];for(var U=this.nextMatrix,I=0;I<16;++I)U[I]=d[k++],G=G&&B[I]===U[I];if(N<1e-6||G)for(var I=0;I<16;++I)P[I]=B[I];else s(P,B,U,(R-T[L])/N)}var H=this.computedUp;H[0]=P[1],H[1]=P[5],H[2]=P[9],E(H,H);var W=this.computedInverse;o(W,P);var V=this.computedEye,$=W[15];V[0]=W[12]/$,V[1]=W[13]/$,V[2]=W[14]/$;for(var Z=this.computedCenter,q=Math.exp(this.computedRadius[0]),I=0;I<3;++I)Z[I]=V[I]-P[2+4*I]*q}},x.idle=function(R){if(!(R1&&n(o[b[c-2]],o[b[c-1]],g)<=0;)c-=1,b.pop();for(b.push(E),c=p.length;c>1&&n(o[p[c-2]],o[p[c-1]],g)>=0;)c-=1,p.pop();p.push(E)}for(var x=new Array(p.length+b.length-2),A=0,f=0,M=b.length;f0;--R)x[A++]=p[R];return x}},6145:function(v,m,a){v.exports=s;var n=a(4110);function s(o,h){h||(h=o,o=window);var f=0,u=0,b=0,p={shift:!1,alt:!1,control:!1,meta:!1},E=!1;function g(I){var N=!1;return"altKey"in I&&(N=N||I.altKey!==p.alt,p.alt=!!I.altKey),"shiftKey"in I&&(N=N||I.shiftKey!==p.shift,p.shift=!!I.shiftKey),"ctrlKey"in I&&(N=N||I.ctrlKey!==p.control,p.control=!!I.ctrlKey),"metaKey"in I&&(N=N||I.metaKey!==p.meta,p.meta=!!I.metaKey),N}function c(I,N){var B=n.x(N),G=n.y(N);"buttons"in N&&(I=N.buttons|0),(I!==f||B!==u||G!==b||g(N))&&(f=I|0,u=B||0,b=G||0,h&&h(f,u,b,p))}function x(I){c(0,I)}function A(){(f||u||b||p.shift||p.alt||p.meta||p.control)&&(u=b=0,f=0,p.shift=p.alt=p.control=p.meta=!1,h&&h(0,0,0,p))}function M(I){g(I)&&h&&h(f,u,b,p)}function R(I){n.buttons(I)===0?c(0,I):c(f,I)}function T(I){c(f|n.buttons(I),I)}function L(I){c(f&~n.buttons(I),I)}function P(){E||(E=!0,o.addEventListener("mousemove",R),o.addEventListener("mousedown",T),o.addEventListener("mouseup",L),o.addEventListener("mouseleave",x),o.addEventListener("mouseenter",x),o.addEventListener("mouseout",x),o.addEventListener("mouseover",x),o.addEventListener("blur",A),o.addEventListener("keyup",M),o.addEventListener("keydown",M),o.addEventListener("keypress",M),o!==window&&(window.addEventListener("blur",A),window.addEventListener("keyup",M),window.addEventListener("keydown",M),window.addEventListener("keypress",M)))}function d(){E&&(E=!1,o.removeEventListener("mousemove",R),o.removeEventListener("mousedown",T),o.removeEventListener("mouseup",L),o.removeEventListener("mouseleave",x),o.removeEventListener("mouseenter",x),o.removeEventListener("mouseout",x),o.removeEventListener("mouseover",x),o.removeEventListener("blur",A),o.removeEventListener("keyup",M),o.removeEventListener("keydown",M),o.removeEventListener("keypress",M),o!==window&&(window.removeEventListener("blur",A),window.removeEventListener("keyup",M),window.removeEventListener("keydown",M),window.removeEventListener("keypress",M)))}P();var k={element:o};return Object.defineProperties(k,{enabled:{get:function(){return E},set:function(I){I?P():d()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return u},enumerable:!0},y:{get:function(){return b},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),k}},2565:function(v){var m={left:0,top:0};v.exports=a;function a(s,o,h){o=o||s.currentTarget||s.srcElement,Array.isArray(h)||(h=[0,0]);var f=s.clientX||0,u=s.clientY||0,b=n(o);return h[0]=f-b.left,h[1]=u-b.top,h}function n(s){return s===window||s===document||s===document.body?m:s.getBoundingClientRect()}},4110:function(v,m){function a(h){if(typeof h=="object"){if("buttons"in h)return h.buttons;if("which"in h){var f=h.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(ie=1,J[K++]=p(P[N],A,M,R),N+=Z,T>0)for(ae=1,B=P[N],ne=J[K]=p(B,A,M,R),ee=J[K+ce],he=J[K+de],Se=J[K+xe],(ne!==ee||ne!==he||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,ee,he,Se,A,M,R),ke=oe[K]=fe++),K+=1,N+=Z,ae=2;ae0)for(ae=1,B=P[N],ne=J[K]=p(B,A,M,R),ee=J[K+ce],he=J[K+de],Se=J[K+xe],(ne!==ee||ne!==he||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,ee,he,Se,A,M,R),ke=oe[K]=fe++,Se!==he&&b(oe[K+de],ke,W,$,he,Se,A,M,R)),K+=1,N+=Z,ae=2;ae0){if(ae=1,J[K++]=p(P[N],A,M,R),N+=Z,L>0)for(ie=1,B=P[N],ne=J[K]=p(B,A,M,R),he=J[K+de],ee=J[K+ce],Se=J[K+xe],(ne!==he||ne!==ee||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,he,ee,Se,A,M,R),ke=oe[K]=fe++),K+=1,N+=Z,ie=2;ie0)for(ie=1,B=P[N],ne=J[K]=p(B,A,M,R),he=J[K+de],ee=J[K+ce],Se=J[K+xe],(ne!==he||ne!==ee||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,he,ee,Se,A,M,R),ke=oe[K]=fe++,Se!==he&&b(oe[K+de],ke,$,U,Se,he,A,M,R)),K+=1,N+=Z,ie=2;ie 0"),typeof f.vertex!="function"&&u("Must specify vertex creation function"),typeof f.cell!="function"&&u("Must specify cell creation function"),typeof f.phase!="function"&&u("Must specify phase function");for(var g=f.getters||[],c=new Array(p),x=0;x=0?c[x]=!0:c[x]=!1;return o(f.vertex,f.cell,f.phase,E,b,c)}},9144:function(v,m,a){var n=a(3094),s={zero:function(M,R,T,L){var P=M[0],d=T[0];L|=0;var k=0,I=d;for(k=0;k2&&k[1]>2&&L(d.pick(-1,-1).lo(1,1).hi(k[0]-2,k[1]-2),P.pick(-1,-1,0).lo(1,1).hi(k[0]-2,k[1]-2),P.pick(-1,-1,1).lo(1,1).hi(k[0]-2,k[1]-2)),k[1]>2&&(T(d.pick(0,-1).lo(1).hi(k[1]-2),P.pick(0,-1,1).lo(1).hi(k[1]-2)),R(P.pick(0,-1,0).lo(1).hi(k[1]-2))),k[1]>2&&(T(d.pick(k[0]-1,-1).lo(1).hi(k[1]-2),P.pick(k[0]-1,-1,1).lo(1).hi(k[1]-2)),R(P.pick(k[0]-1,-1,0).lo(1).hi(k[1]-2))),k[0]>2&&(T(d.pick(-1,0).lo(1).hi(k[0]-2),P.pick(-1,0,0).lo(1).hi(k[0]-2)),R(P.pick(-1,0,1).lo(1).hi(k[0]-2))),k[0]>2&&(T(d.pick(-1,k[1]-1).lo(1).hi(k[0]-2),P.pick(-1,k[1]-1,0).lo(1).hi(k[0]-2)),R(P.pick(-1,k[1]-1,1).lo(1).hi(k[0]-2))),P.set(0,0,0,0),P.set(0,0,1,0),P.set(k[0]-1,0,0,0),P.set(k[0]-1,0,1,0),P.set(0,k[1]-1,0,0),P.set(0,k[1]-1,1,0),P.set(k[0]-1,k[1]-1,0,0),P.set(k[0]-1,k[1]-1,1,0),P}}function A(M){var R=M.join(),k=p[R];if(k)return k;for(var T=M.length,L=[E,g],P=1;P<=T;++P)L.push(c(P));var d=x,k=d.apply(void 0,L);return p[R]=k,k}v.exports=function(R,T,L){if(Array.isArray(L)||(typeof L=="string"?L=n(T.dimension,L):L=n(T.dimension,"clamp")),T.size===0)return R;if(T.dimension===0)return R.set(0),R;var P=A(L);return P(R,T)}},3581:function(v){function m(h,f){var u=Math.floor(f),b=f-u,p=0<=u&&u0;){W<64?(T=W,W=0):(T=64,W-=64);for(var V=p[1]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),c=U+W*d+V*k,M=H+W*N+V*B;var $=0,Z=0,q=0,ae=I,ie=d-P*I,fe=k-T*d,Q=G,J=N-P*G,oe=B-T*N;for(q=0;q0;){B<64?(T=B,B=0):(T=64,B-=64);for(var G=p[0]|0;G>0;){G<64?(R=G,G=0):(R=64,G-=64),c=I+B*P+G*L,M=N+B*k+G*d;var U=0,H=0,W=P,V=L-T*P,$=k,Z=d-T*k;for(H=0;H0;){H<64?(L=H,H=0):(L=64,H-=64);for(var W=p[0]|0;W>0;){W<64?(R=W,W=0):(R=64,W-=64);for(var V=p[1]|0;V>0;){V<64?(T=V,V=0):(T=64,V-=64),c=G+H*k+W*P+V*d,M=U+H*B+W*I+V*N;var $=0,Z=0,q=0,ae=k,ie=P-L*k,fe=d-R*P,Q=B,J=I-L*B,oe=N-R*I;for(q=0;qx;){$=0,Z=U-T;t:for(W=0;Wae)break t;Z+=I,$+=N}for($=U,Z=U-T,W=0;W>1,V=W-G,$=W+G,Z=U,q=V,ae=W,ie=$,fe=H,Q=A+1,J=M-1,oe=!0,K,ne,ce,re,ee,de,le,he,xe,Ee=0,Se=0,ke=0,Te,Ae,be,Ie,Ue,Ne,ze,$e,st,vt,at,nt,mt,rt,lt,dt,wt=k,et=g(wt),Be=g(wt);Ae=L*Z,be=L*q,dt=T;e:for(Te=0;Te0){ne=Z,Z=q,q=ne;break e}if(ke<0)break e;dt+=N}Ae=L*ie,be=L*fe,dt=T;e:for(Te=0;Te0){ne=ie,ie=fe,fe=ne;break e}if(ke<0)break e;dt+=N}Ae=L*Z,be=L*ae,dt=T;e:for(Te=0;Te0){ne=Z,Z=ae,ae=ne;break e}if(ke<0)break e;dt+=N}Ae=L*q,be=L*ae,dt=T;e:for(Te=0;Te0){ne=q,q=ae,ae=ne;break e}if(ke<0)break e;dt+=N}Ae=L*Z,be=L*ie,dt=T;e:for(Te=0;Te0){ne=Z,Z=ie,ie=ne;break e}if(ke<0)break e;dt+=N}Ae=L*ae,be=L*ie,dt=T;e:for(Te=0;Te0){ne=ae,ae=ie,ie=ne;break e}if(ke<0)break e;dt+=N}Ae=L*q,be=L*fe,dt=T;e:for(Te=0;Te0){ne=q,q=fe,fe=ne;break e}if(ke<0)break e;dt+=N}Ae=L*q,be=L*ae,dt=T;e:for(Te=0;Te0){ne=q,q=ae,ae=ne;break e}if(ke<0)break e;dt+=N}Ae=L*ie,be=L*fe,dt=T;e:for(Te=0;Te0){ne=ie,ie=fe,fe=ne;break e}if(ke<0)break e;dt+=N}for(Ae=L*Z,be=L*q,Ie=L*ae,Ue=L*ie,Ne=L*fe,ze=L*U,$e=L*W,st=L*H,lt=0,dt=T,Te=0;Te0)J--;else if(ke<0){for(Ae=L*de,be=L*Q,Ie=L*J,dt=T,Te=0;Te0)for(;;){le=T+J*L,lt=0;e:for(Te=0;Te0){if(--JH){e:for(;;){for(le=T+Q*L,lt=0,dt=T,Te=0;Te1&&x?M(c,x[0],x[1]):M(c)}var b={"uint32,1,0":function(E,g){return function(c){var x=c.data,A=c.offset|0,M=c.shape,R=c.stride,T=R[0]|0,L=M[0]|0,P=R[1]|0,d=M[1]|0,k=P,I=P,N=1;L<=32?E(0,L-1,x,A,T,P,L,d,k,I,N):g(0,L-1,x,A,T,P,L,d,k,I,N)}}};function p(E,g){var c=[g,E].join(","),x=b[c],A=h(E,g),M=u(E,g,A);return x(A,M)}v.exports=p},8729:function(v,m,a){var n=a(8139),s={};function o(h){var f=h.order,u=h.dtype,b=[f,u],p=b.join(":"),E=s[p];return E||(s[p]=E=n(f,u)),E(h),h}v.exports=o},5050:function(v,m,a){var n=a(4780),s=typeof Float64Array<"u";function o(g,c){return g[0]-c[0]}function h(){var g=this.stride,c=new Array(g.length),x;for(x=0;x=0&&(P=T|0,L+=k*P,d-=P),new A(this.data,d,k,L)},M.step=function(T){var L=this.shape[0],P=this.stride[0],d=this.offset,k=0,I=Math.ceil;return typeof T=="number"&&(k=T|0,k<0?(d+=P*(L-1),L=I(-L/k)):L=I(L/k),P*=k),new A(this.data,L,P,d)},M.transpose=function(T){T=T===void 0?0:T|0;var L=this.shape,P=this.stride;return new A(this.data,L[T],P[T],this.offset)},M.pick=function(T){var L=[],P=[],d=this.offset;typeof T=="number"&&T>=0?d=d+this.stride[0]*T|0:(L.push(this.shape[0]),P.push(this.stride[0]));var k=c[L.length+1];return k(this.data,L,P,d)},function(T,L,P,d){return new A(T,L[0],P[0],d)}},2:function(g,c,x){function A(R,T,L,P,d,k){this.data=R,this.shape=[T,L],this.stride=[P,d],this.offset=k|0}var M=A.prototype;return M.dtype=g,M.dimension=2,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(M,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),M.set=function(T,L,P){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*L,P):this.data[this.offset+this.stride[0]*T+this.stride[1]*L]=P},M.get=function(T,L){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*L):this.data[this.offset+this.stride[0]*T+this.stride[1]*L]},M.index=function(T,L){return this.offset+this.stride[0]*T+this.stride[1]*L},M.hi=function(T,L){return new A(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof L!="number"||L<0?this.shape[1]:L|0,this.stride[0],this.stride[1],this.offset)},M.lo=function(T,L){var P=this.offset,d=0,k=this.shape[0],I=this.shape[1],N=this.stride[0],B=this.stride[1];return typeof T=="number"&&T>=0&&(d=T|0,P+=N*d,k-=d),typeof L=="number"&&L>=0&&(d=L|0,P+=B*d,I-=d),new A(this.data,k,I,N,B,P)},M.step=function(T,L){var P=this.shape[0],d=this.shape[1],k=this.stride[0],I=this.stride[1],N=this.offset,B=0,G=Math.ceil;return typeof T=="number"&&(B=T|0,B<0?(N+=k*(P-1),P=G(-P/B)):P=G(P/B),k*=B),typeof L=="number"&&(B=L|0,B<0?(N+=I*(d-1),d=G(-d/B)):d=G(d/B),I*=B),new A(this.data,P,d,k,I,N)},M.transpose=function(T,L){T=T===void 0?0:T|0,L=L===void 0?1:L|0;var P=this.shape,d=this.stride;return new A(this.data,P[T],P[L],d[T],d[L],this.offset)},M.pick=function(T,L){var P=[],d=[],k=this.offset;typeof T=="number"&&T>=0?k=k+this.stride[0]*T|0:(P.push(this.shape[0]),d.push(this.stride[0])),typeof L=="number"&&L>=0?k=k+this.stride[1]*L|0:(P.push(this.shape[1]),d.push(this.stride[1]));var I=c[P.length+1];return I(this.data,P,d,k)},function(T,L,P,d){return new A(T,L[0],L[1],P[0],P[1],d)}},3:function(g,c,x){function A(R,T,L,P,d,k,I,N){this.data=R,this.shape=[T,L,P],this.stride=[d,k,I],this.offset=N|0}var M=A.prototype;return M.dtype=g,M.dimension=3,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(M,"order",{get:function(){var T=Math.abs(this.stride[0]),L=Math.abs(this.stride[1]),P=Math.abs(this.stride[2]);return T>L?L>P?[2,1,0]:T>P?[1,2,0]:[1,0,2]:T>P?[2,0,1]:P>L?[0,1,2]:[0,2,1]}}),M.set=function(T,L,P,d){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P,d):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P]=d},M.get=function(T,L,P){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P]},M.index=function(T,L,P){return this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P},M.hi=function(T,L,P){return new A(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof L!="number"||L<0?this.shape[1]:L|0,typeof P!="number"||P<0?this.shape[2]:P|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},M.lo=function(T,L,P){var d=this.offset,k=0,I=this.shape[0],N=this.shape[1],B=this.shape[2],G=this.stride[0],U=this.stride[1],H=this.stride[2];return typeof T=="number"&&T>=0&&(k=T|0,d+=G*k,I-=k),typeof L=="number"&&L>=0&&(k=L|0,d+=U*k,N-=k),typeof P=="number"&&P>=0&&(k=P|0,d+=H*k,B-=k),new A(this.data,I,N,B,G,U,H,d)},M.step=function(T,L,P){var d=this.shape[0],k=this.shape[1],I=this.shape[2],N=this.stride[0],B=this.stride[1],G=this.stride[2],U=this.offset,H=0,W=Math.ceil;return typeof T=="number"&&(H=T|0,H<0?(U+=N*(d-1),d=W(-d/H)):d=W(d/H),N*=H),typeof L=="number"&&(H=L|0,H<0?(U+=B*(k-1),k=W(-k/H)):k=W(k/H),B*=H),typeof P=="number"&&(H=P|0,H<0?(U+=G*(I-1),I=W(-I/H)):I=W(I/H),G*=H),new A(this.data,d,k,I,N,B,G,U)},M.transpose=function(T,L,P){T=T===void 0?0:T|0,L=L===void 0?1:L|0,P=P===void 0?2:P|0;var d=this.shape,k=this.stride;return new A(this.data,d[T],d[L],d[P],k[T],k[L],k[P],this.offset)},M.pick=function(T,L,P){var d=[],k=[],I=this.offset;typeof T=="number"&&T>=0?I=I+this.stride[0]*T|0:(d.push(this.shape[0]),k.push(this.stride[0])),typeof L=="number"&&L>=0?I=I+this.stride[1]*L|0:(d.push(this.shape[1]),k.push(this.stride[1])),typeof P=="number"&&P>=0?I=I+this.stride[2]*P|0:(d.push(this.shape[2]),k.push(this.stride[2]));var N=c[d.length+1];return N(this.data,d,k,I)},function(T,L,P,d){return new A(T,L[0],L[1],L[2],P[0],P[1],P[2],d)}},4:function(g,c,x){function A(R,T,L,P,d,k,I,N,B,G){this.data=R,this.shape=[T,L,P,d],this.stride=[k,I,N,B],this.offset=G|0}var M=A.prototype;return M.dtype=g,M.dimension=4,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(M,"order",{get:x}),M.set=function(T,L,P,d,k){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d,k):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d]=k},M.get=function(T,L,P,d){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d]},M.index=function(T,L,P,d){return this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d},M.hi=function(T,L,P,d){return new A(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof L!="number"||L<0?this.shape[1]:L|0,typeof P!="number"||P<0?this.shape[2]:P|0,typeof d!="number"||d<0?this.shape[3]:d|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},M.lo=function(T,L,P,d){var k=this.offset,I=0,N=this.shape[0],B=this.shape[1],G=this.shape[2],U=this.shape[3],H=this.stride[0],W=this.stride[1],V=this.stride[2],$=this.stride[3];return typeof T=="number"&&T>=0&&(I=T|0,k+=H*I,N-=I),typeof L=="number"&&L>=0&&(I=L|0,k+=W*I,B-=I),typeof P=="number"&&P>=0&&(I=P|0,k+=V*I,G-=I),typeof d=="number"&&d>=0&&(I=d|0,k+=$*I,U-=I),new A(this.data,N,B,G,U,H,W,V,$,k)},M.step=function(T,L,P,d){var k=this.shape[0],I=this.shape[1],N=this.shape[2],B=this.shape[3],G=this.stride[0],U=this.stride[1],H=this.stride[2],W=this.stride[3],V=this.offset,$=0,Z=Math.ceil;return typeof T=="number"&&($=T|0,$<0?(V+=G*(k-1),k=Z(-k/$)):k=Z(k/$),G*=$),typeof L=="number"&&($=L|0,$<0?(V+=U*(I-1),I=Z(-I/$)):I=Z(I/$),U*=$),typeof P=="number"&&($=P|0,$<0?(V+=H*(N-1),N=Z(-N/$)):N=Z(N/$),H*=$),typeof d=="number"&&($=d|0,$<0?(V+=W*(B-1),B=Z(-B/$)):B=Z(B/$),W*=$),new A(this.data,k,I,N,B,G,U,H,W,V)},M.transpose=function(T,L,P,d){T=T===void 0?0:T|0,L=L===void 0?1:L|0,P=P===void 0?2:P|0,d=d===void 0?3:d|0;var k=this.shape,I=this.stride;return new A(this.data,k[T],k[L],k[P],k[d],I[T],I[L],I[P],I[d],this.offset)},M.pick=function(T,L,P,d){var k=[],I=[],N=this.offset;typeof T=="number"&&T>=0?N=N+this.stride[0]*T|0:(k.push(this.shape[0]),I.push(this.stride[0])),typeof L=="number"&&L>=0?N=N+this.stride[1]*L|0:(k.push(this.shape[1]),I.push(this.stride[1])),typeof P=="number"&&P>=0?N=N+this.stride[2]*P|0:(k.push(this.shape[2]),I.push(this.stride[2])),typeof d=="number"&&d>=0?N=N+this.stride[3]*d|0:(k.push(this.shape[3]),I.push(this.stride[3]));var B=c[k.length+1];return B(this.data,k,I,N)},function(T,L,P,d){return new A(T,L[0],L[1],L[2],L[3],P[0],P[1],P[2],P[3],d)}},5:function(c,x,A){function M(T,L,P,d,k,I,N,B,G,U,H,W){this.data=T,this.shape=[L,P,d,k,I],this.stride=[N,B,G,U,H],this.offset=W|0}var R=M.prototype;return R.dtype=c,R.dimension=5,Object.defineProperty(R,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(R,"order",{get:A}),R.set=function(L,P,d,k,I,N){return c==="generic"?this.data.set(this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I,N):this.data[this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I]=N},R.get=function(L,P,d,k,I){return c==="generic"?this.data.get(this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I):this.data[this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I]},R.index=function(L,P,d,k,I){return this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I},R.hi=function(L,P,d,k,I){return new M(this.data,typeof L!="number"||L<0?this.shape[0]:L|0,typeof P!="number"||P<0?this.shape[1]:P|0,typeof d!="number"||d<0?this.shape[2]:d|0,typeof k!="number"||k<0?this.shape[3]:k|0,typeof I!="number"||I<0?this.shape[4]:I|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},R.lo=function(L,P,d,k,I){var N=this.offset,B=0,G=this.shape[0],U=this.shape[1],H=this.shape[2],W=this.shape[3],V=this.shape[4],$=this.stride[0],Z=this.stride[1],q=this.stride[2],ae=this.stride[3],ie=this.stride[4];return typeof L=="number"&&L>=0&&(B=L|0,N+=$*B,G-=B),typeof P=="number"&&P>=0&&(B=P|0,N+=Z*B,U-=B),typeof d=="number"&&d>=0&&(B=d|0,N+=q*B,H-=B),typeof k=="number"&&k>=0&&(B=k|0,N+=ae*B,W-=B),typeof I=="number"&&I>=0&&(B=I|0,N+=ie*B,V-=B),new M(this.data,G,U,H,W,V,$,Z,q,ae,ie,N)},R.step=function(L,P,d,k,I){var N=this.shape[0],B=this.shape[1],G=this.shape[2],U=this.shape[3],H=this.shape[4],W=this.stride[0],V=this.stride[1],$=this.stride[2],Z=this.stride[3],q=this.stride[4],ae=this.offset,ie=0,fe=Math.ceil;return typeof L=="number"&&(ie=L|0,ie<0?(ae+=W*(N-1),N=fe(-N/ie)):N=fe(N/ie),W*=ie),typeof P=="number"&&(ie=P|0,ie<0?(ae+=V*(B-1),B=fe(-B/ie)):B=fe(B/ie),V*=ie),typeof d=="number"&&(ie=d|0,ie<0?(ae+=$*(G-1),G=fe(-G/ie)):G=fe(G/ie),$*=ie),typeof k=="number"&&(ie=k|0,ie<0?(ae+=Z*(U-1),U=fe(-U/ie)):U=fe(U/ie),Z*=ie),typeof I=="number"&&(ie=I|0,ie<0?(ae+=q*(H-1),H=fe(-H/ie)):H=fe(H/ie),q*=ie),new M(this.data,N,B,G,U,H,W,V,$,Z,q,ae)},R.transpose=function(L,P,d,k,I){L=L===void 0?0:L|0,P=P===void 0?1:P|0,d=d===void 0?2:d|0,k=k===void 0?3:k|0,I=I===void 0?4:I|0;var N=this.shape,B=this.stride;return new M(this.data,N[L],N[P],N[d],N[k],N[I],B[L],B[P],B[d],B[k],B[I],this.offset)},R.pick=function(L,P,d,k,I){var N=[],B=[],G=this.offset;typeof L=="number"&&L>=0?G=G+this.stride[0]*L|0:(N.push(this.shape[0]),B.push(this.stride[0])),typeof P=="number"&&P>=0?G=G+this.stride[1]*P|0:(N.push(this.shape[1]),B.push(this.stride[1])),typeof d=="number"&&d>=0?G=G+this.stride[2]*d|0:(N.push(this.shape[2]),B.push(this.stride[2])),typeof k=="number"&&k>=0?G=G+this.stride[3]*k|0:(N.push(this.shape[3]),B.push(this.stride[3])),typeof I=="number"&&I>=0?G=G+this.stride[4]*I|0:(N.push(this.shape[4]),B.push(this.stride[4]));var U=x[N.length+1];return U(this.data,N,B,G)},function(L,P,d,k){return new M(L,P[0],P[1],P[2],P[3],P[4],d[0],d[1],d[2],d[3],d[4],k)}}};function u(g,c){var x=c===-1?"T":String(c),A=f[x];return c===-1?A(g):c===0?A(g,p[g][0]):A(g,p[g],h)}function b(g){if(n(g))return"buffer";if(s)switch(Object.prototype.toString.call(g)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(g)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function E(g,c,x,A){if(g===void 0){var d=p.array[0];return d([])}else typeof g=="number"&&(g=[g]);c===void 0&&(c=[g.length]);var M=c.length;if(x===void 0){x=new Array(M);for(var R=M-1,T=1;R>=0;--R)x[R]=T,T*=c[R]}if(A===void 0){A=0;for(var R=0;R>>0;v.exports=h;function h(f,u){if(isNaN(f)||isNaN(u))return NaN;if(f===u)return f;if(f===0)return u<0?-s:s;var b=n.hi(f),p=n.lo(f);return u>f==f>0?p===o?(b+=1,p=0):p+=1:p===0?(p=o,b-=1):p-=1,n.pack(p,b)}},115:function(v,m){var a=1e-6,n=1e-6;m.vertexNormals=function(s,o,h){for(var f=o.length,u=new Array(f),b=h===void 0?a:h,p=0;pb)for(var N=u[c],B=1/Math.sqrt(P*k),I=0;I<3;++I){var G=(I+1)%3,U=(I+2)%3;N[I]+=B*(d[G]*L[U]-d[U]*L[G])}}for(var p=0;pb)for(var B=1/Math.sqrt(H),I=0;I<3;++I)N[I]*=B;else for(var I=0;I<3;++I)N[I]=0}return u},m.faceNormals=function(s,o,h){for(var f=s.length,u=new Array(f),b=h===void 0?n:h,p=0;pb?R=1/Math.sqrt(R):R=0;for(var c=0;c<3;++c)M[c]*=R;u[p]=M}return u}},567:function(v){v.exports=m;function m(a,n,s,o,h,f,u,b,p,E){var g=n+f+E;if(c>0){var c=Math.sqrt(g+1);a[0]=.5*(u-p)/c,a[1]=.5*(b-o)/c,a[2]=.5*(s-f)/c,a[3]=.5*c}else{var x=Math.max(n,f,E),c=Math.sqrt(2*x-g+1);n>=x?(a[0]=.5*c,a[1]=.5*(h+s)/c,a[2]=.5*(b+o)/c,a[3]=.5*(u-p)/c):f>=x?(a[0]=.5*(s+h)/c,a[1]=.5*c,a[2]=.5*(p+u)/c,a[3]=.5*(b-o)/c):(a[0]=.5*(o+b)/c,a[1]=.5*(u+p)/c,a[2]=.5*c,a[3]=.5*(s-h)/c)}return a}},7774:function(v,m,a){v.exports=c;var n=a(8444),s=a(3012),o=a(5950),h=a(7437),f=a(567);function u(x,A,M){return Math.sqrt(Math.pow(x,2)+Math.pow(A,2)+Math.pow(M,2))}function b(x,A,M,R){return Math.sqrt(Math.pow(x,2)+Math.pow(A,2)+Math.pow(M,2)+Math.pow(R,2))}function p(x,A){var M=A[0],R=A[1],T=A[2],L=A[3],P=b(M,R,T,L);P>1e-6?(x[0]=M/P,x[1]=R/P,x[2]=T/P,x[3]=L/P):(x[0]=x[1]=x[2]=0,x[3]=1)}function E(x,A,M){this.radius=n([M]),this.center=n(A),this.rotation=n(x),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var g=E.prototype;g.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},g.recalcMatrix=function(x){this.radius.curve(x),this.center.curve(x),this.rotation.curve(x);var A=this.computedRotation;p(A,A);var M=this.computedMatrix;o(M,A);var R=this.computedCenter,T=this.computedEye,L=this.computedUp,P=Math.exp(this.computedRadius[0]);T[0]=R[0]+P*M[2],T[1]=R[1]+P*M[6],T[2]=R[2]+P*M[10],L[0]=M[1],L[1]=M[5],L[2]=M[9];for(var d=0;d<3;++d){for(var k=0,I=0;I<3;++I)k+=M[d+4*I]*T[I];M[12+d]=-k}},g.getMatrix=function(x,A){this.recalcMatrix(x);var M=this.computedMatrix;if(A){for(var R=0;R<16;++R)A[R]=M[R];return A}return M},g.idle=function(x){this.center.idle(x),this.radius.idle(x),this.rotation.idle(x)},g.flush=function(x){this.center.flush(x),this.radius.flush(x),this.rotation.flush(x)},g.pan=function(x,A,M,R){A=A||0,M=M||0,R=R||0,this.recalcMatrix(x);var T=this.computedMatrix,L=T[1],P=T[5],d=T[9],k=u(L,P,d);L/=k,P/=k,d/=k;var I=T[0],N=T[4],B=T[8],G=I*L+N*P+B*d;I-=L*G,N-=P*G,B-=d*G;var U=u(I,N,B);I/=U,N/=U,B/=U,T[2],T[6],T[10];var H=I*A+L*M,W=N*A+P*M,V=B*A+d*M;this.center.move(x,H,W,V);var $=Math.exp(this.computedRadius[0]);$=Math.max(1e-4,$+R),this.radius.set(x,Math.log($))},g.rotate=function(x,A,M,R){this.recalcMatrix(x),A=A||0,M=M||0;var T=this.computedMatrix,L=T[0],P=T[4],d=T[8],k=T[1],I=T[5],N=T[9],B=T[2],G=T[6],U=T[10],H=A*L+M*k,W=A*P+M*I,V=A*d+M*N,$=-(G*V-U*W),Z=-(U*H-B*V),q=-(B*W-G*H),ae=Math.sqrt(Math.max(0,1-Math.pow($,2)-Math.pow(Z,2)-Math.pow(q,2))),ie=b($,Z,q,ae);ie>1e-6?($/=ie,Z/=ie,q/=ie,ae/=ie):($=Z=q=0,ae=1);var fe=this.computedRotation,Q=fe[0],J=fe[1],oe=fe[2],K=fe[3],ne=Q*ae+K*$+J*q-oe*Z,ce=J*ae+K*Z+oe*$-Q*q,re=oe*ae+K*q+Q*Z-J*$,ee=K*ae-Q*$-J*Z-oe*q;if(R){$=B,Z=G,q=U;var de=Math.sin(R)/u($,Z,q);$*=de,Z*=de,q*=de,ae=Math.cos(A),ne=ne*ae+ee*$+ce*q-re*Z,ce=ce*ae+ee*Z+re*$-ne*q,re=re*ae+ee*q+ne*Z-ce*$,ee=ee*ae-ne*$-ce*Z-re*q}var le=b(ne,ce,re,ee);le>1e-6?(ne/=le,ce/=le,re/=le,ee/=le):(ne=ce=re=0,ee=1),this.rotation.set(x,ne,ce,re,ee)},g.lookAt=function(x,A,M,R){this.recalcMatrix(x),M=M||this.computedCenter,A=A||this.computedEye,R=R||this.computedUp;var T=this.computedMatrix;s(T,A,M,R);var L=this.computedRotation;f(L,T[0],T[1],T[2],T[4],T[5],T[6],T[8],T[9],T[10]),p(L,L),this.rotation.set(x,L[0],L[1],L[2],L[3]);for(var P=0,d=0;d<3;++d)P+=Math.pow(M[d]-A[d],2);this.radius.set(x,.5*Math.log(Math.max(P,1e-6))),this.center.set(x,M[0],M[1],M[2])},g.translate=function(x,A,M,R){this.center.move(x,A||0,M||0,R||0)},g.setMatrix=function(x,A){var M=this.computedRotation;f(M,A[0],A[1],A[2],A[4],A[5],A[6],A[8],A[9],A[10]),p(M,M),this.rotation.set(x,M[0],M[1],M[2],M[3]);var R=this.computedMatrix;h(R,A);var T=R[15];if(Math.abs(T)>1e-6){var L=R[12]/T,P=R[13]/T,d=R[14]/T;this.recalcMatrix(x);var k=Math.exp(this.computedRadius[0]);this.center.set(x,L-R[2]*k,P-R[6]*k,d-R[10]*k),this.radius.idle(x)}else this.center.idle(x),this.radius.idle(x)},g.setDistance=function(x,A){A>0&&this.radius.set(x,Math.log(A))},g.setDistanceLimits=function(x,A){x>0?x=Math.log(x):x=-1/0,A>0?A=Math.log(A):A=1/0,A=Math.max(A,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=A},g.getDistanceLimits=function(x){var A=this.radius.bounds;return x?(x[0]=Math.exp(A[0][0]),x[1]=Math.exp(A[1][0]),x):[Math.exp(A[0][0]),Math.exp(A[1][0])]},g.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},g.fromJSON=function(x){var A=this.lastT(),M=x.center;M&&this.center.set(A,M[0],M[1],M[2]);var R=x.rotation;R&&this.rotation.set(A,R[0],R[1],R[2],R[3]);var T=x.distance;T&&T>0&&this.radius.set(A,Math.log(T)),this.setDistanceLimits(x.zoomMin,x.zoomMax)};function c(x){x=x||{};var A=x.center||[0,0,0],M=x.rotation||[0,0,0,1],R=x.radius||1;A=[].slice.call(A,0,3),M=[].slice.call(M,0,4),p(M,M);var T=new E(M,A,Math.log(R));return T.setDistanceLimits(x.zoomMin,x.zoomMax),("eye"in x||"up"in x)&&T.lookAt(0,x.eye,x.center,x.up),T}},4930:function(v,m,a){/*! +*/v.exports=function(n){return n!=null&&(m(n)||a(n)||!!n._isBuffer)};function m(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function a(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&m(n.slice(0,0))}},3596:function(v){v.exports=function(m){for(var a=m.length,n,s=0;s13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},3578:function(v){function m(a,n,s){return a*(1-s)+n*s}v.exports=m},7191:function(v,m,a){var n=a(4690),s=a(9823),o=a(7332),h=a(7787),f=a(7437),u=a(2142),b={length:a(4693),normalize:a(899),dot:a(9305),cross:a(903)},p=s(),E=s(),g=[0,0,0,0],c=[[0,0,0],[0,0,0],[0,0,0]],y=[0,0,0];v.exports=function(L,P,d,k,I,N){if(P||(P=[0,0,0]),d||(d=[0,0,0]),k||(k=[0,0,0]),I||(I=[0,0,0,1]),N||(N=[0,0,0,1]),!n(p,L)||(o(E,p),E[3]=0,E[7]=0,E[11]=0,E[15]=1,Math.abs(h(E)<1e-8)))return!1;var B=p[3],G=p[7],U=p[11],H=p[12],W=p[13],V=p[14],$=p[15];if(B!==0||G!==0||U!==0){g[0]=B,g[1]=G,g[2]=U,g[3]=$;var Z=f(E,E);if(!Z)return!1;u(E,E),A(I,g,E)}else I[0]=I[1]=I[2]=0,I[3]=1;if(P[0]=H,P[1]=W,P[2]=V,M(c,p),d[0]=b.length(c[0]),b.normalize(c[0],c[0]),k[0]=b.dot(c[0],c[1]),R(c[1],c[1],c[0],1,-k[0]),d[1]=b.length(c[1]),b.normalize(c[1],c[1]),k[0]/=d[1],k[1]=b.dot(c[0],c[2]),R(c[2],c[2],c[0],1,-k[1]),k[2]=b.dot(c[1],c[2]),R(c[2],c[2],c[1],1,-k[2]),d[2]=b.length(c[2]),b.normalize(c[2],c[2]),k[1]/=d[2],k[2]/=d[2],b.cross(y,c[1],c[2]),b.dot(c[0],y)<0)for(var q=0;q<3;q++)d[q]*=-1,c[q][0]*=-1,c[q][1]*=-1,c[q][2]*=-1;return N[0]=.5*Math.sqrt(Math.max(1+c[0][0]-c[1][1]-c[2][2],0)),N[1]=.5*Math.sqrt(Math.max(1-c[0][0]+c[1][1]-c[2][2],0)),N[2]=.5*Math.sqrt(Math.max(1-c[0][0]-c[1][1]+c[2][2],0)),N[3]=.5*Math.sqrt(Math.max(1+c[0][0]+c[1][1]+c[2][2],0)),c[2][1]>c[1][2]&&(N[0]=-N[0]),c[0][2]>c[2][0]&&(N[1]=-N[1]),c[1][0]>c[0][1]&&(N[2]=-N[2]),!0};function A(T,L,P){var d=L[0],k=L[1],I=L[2],N=L[3];return T[0]=P[0]*d+P[4]*k+P[8]*I+P[12]*N,T[1]=P[1]*d+P[5]*k+P[9]*I+P[13]*N,T[2]=P[2]*d+P[6]*k+P[10]*I+P[14]*N,T[3]=P[3]*d+P[7]*k+P[11]*I+P[15]*N,T}function M(T,L){T[0][0]=L[0],T[0][1]=L[1],T[0][2]=L[2],T[1][0]=L[4],T[1][1]=L[5],T[1][2]=L[6],T[2][0]=L[8],T[2][1]=L[9],T[2][2]=L[10]}function R(T,L,P,d,k){T[0]=L[0]*d+P[0]*k,T[1]=L[1]*d+P[1]*k,T[2]=L[2]*d+P[2]*k}},4690:function(v){v.exports=function(a,n){var s=n[15];if(s===0)return!1;for(var o=1/s,h=0;h<16;h++)a[h]=n[h]*o;return!0}},7649:function(v,m,a){var n=a(1868),s=a(1102),o=a(7191),h=a(7787),f=a(1116),u=g(),b=g(),p=g();v.exports=E;function E(A,M,R,T){if(h(M)===0||h(R)===0)return!1;var L=o(M,u.translate,u.scale,u.skew,u.perspective,u.quaternion),P=o(R,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!L||!P?!1:(n(p.translate,u.translate,b.translate,T),n(p.skew,u.skew,b.skew,T),n(p.scale,u.scale,b.scale,T),n(p.perspective,u.perspective,b.perspective,T),f(p.quaternion,u.quaternion,b.quaternion,T),s(A,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function g(){return{translate:c(),scale:c(1),skew:c(),perspective:y(),quaternion:y()}}function c(A){return[A||0,A||0,A||0]}function y(){return[0,0,0,1]}},1102:function(v,m,a){var n={identity:a(9947),translate:a(998),multiply:a(104),create:a(9823),scale:a(3668),fromRotationTranslation:a(7280)};n.create();var s=n.create();v.exports=function(h,f,u,b,p,E){return n.identity(h),n.fromRotationTranslation(h,E,f),h[3]=p[0],h[7]=p[1],h[11]=p[2],h[15]=p[3],n.identity(s),b[2]!==0&&(s[9]=b[2],n.multiply(h,h,s)),b[1]!==0&&(s[9]=0,s[8]=b[1],n.multiply(h,h,s)),b[0]!==0&&(s[8]=0,s[4]=b[0],n.multiply(h,h,s)),n.scale(h,h,u),h}},9298:function(v,m,a){var n=a(5070),s=a(7649),o=a(7437),h=a(6109),f=a(7115),u=a(5240),b=a(3012),p=a(998);a(3668);var E=a(899),g=[0,0,0];v.exports=M;function c(R){this._components=R.slice(),this._time=[0],this.prevMatrix=R.slice(),this.nextMatrix=R.slice(),this.computedMatrix=R.slice(),this.computedInverse=R.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var y=c.prototype;y.recalcMatrix=function(R){var T=this._time,L=n.le(T,R),P=this.computedMatrix;if(!(L<0)){var d=this._components;if(L===T.length-1)for(var k=16*L,I=0;I<16;++I)P[I]=d[k++];else{for(var N=T[L+1]-T[L],k=16*L,B=this.prevMatrix,G=!0,I=0;I<16;++I)B[I]=d[k++];for(var U=this.nextMatrix,I=0;I<16;++I)U[I]=d[k++],G=G&&B[I]===U[I];if(N<1e-6||G)for(var I=0;I<16;++I)P[I]=B[I];else s(P,B,U,(R-T[L])/N)}var H=this.computedUp;H[0]=P[1],H[1]=P[5],H[2]=P[9],E(H,H);var W=this.computedInverse;o(W,P);var V=this.computedEye,$=W[15];V[0]=W[12]/$,V[1]=W[13]/$,V[2]=W[14]/$;for(var Z=this.computedCenter,q=Math.exp(this.computedRadius[0]),I=0;I<3;++I)Z[I]=V[I]-P[2+4*I]*q}},y.idle=function(R){if(!(R1&&n(o[b[c-2]],o[b[c-1]],g)<=0;)c-=1,b.pop();for(b.push(E),c=p.length;c>1&&n(o[p[c-2]],o[p[c-1]],g)>=0;)c-=1,p.pop();p.push(E)}for(var y=new Array(p.length+b.length-2),A=0,f=0,M=b.length;f0;--R)y[A++]=p[R];return y}},6145:function(v,m,a){v.exports=s;var n=a(4110);function s(o,h){h||(h=o,o=window);var f=0,u=0,b=0,p={shift:!1,alt:!1,control:!1,meta:!1},E=!1;function g(I){var N=!1;return"altKey"in I&&(N=N||I.altKey!==p.alt,p.alt=!!I.altKey),"shiftKey"in I&&(N=N||I.shiftKey!==p.shift,p.shift=!!I.shiftKey),"ctrlKey"in I&&(N=N||I.ctrlKey!==p.control,p.control=!!I.ctrlKey),"metaKey"in I&&(N=N||I.metaKey!==p.meta,p.meta=!!I.metaKey),N}function c(I,N){var B=n.x(N),G=n.y(N);"buttons"in N&&(I=N.buttons|0),(I!==f||B!==u||G!==b||g(N))&&(f=I|0,u=B||0,b=G||0,h&&h(f,u,b,p))}function y(I){c(0,I)}function A(){(f||u||b||p.shift||p.alt||p.meta||p.control)&&(u=b=0,f=0,p.shift=p.alt=p.control=p.meta=!1,h&&h(0,0,0,p))}function M(I){g(I)&&h&&h(f,u,b,p)}function R(I){n.buttons(I)===0?c(0,I):c(f,I)}function T(I){c(f|n.buttons(I),I)}function L(I){c(f&~n.buttons(I),I)}function P(){E||(E=!0,o.addEventListener("mousemove",R),o.addEventListener("mousedown",T),o.addEventListener("mouseup",L),o.addEventListener("mouseleave",y),o.addEventListener("mouseenter",y),o.addEventListener("mouseout",y),o.addEventListener("mouseover",y),o.addEventListener("blur",A),o.addEventListener("keyup",M),o.addEventListener("keydown",M),o.addEventListener("keypress",M),o!==window&&(window.addEventListener("blur",A),window.addEventListener("keyup",M),window.addEventListener("keydown",M),window.addEventListener("keypress",M)))}function d(){E&&(E=!1,o.removeEventListener("mousemove",R),o.removeEventListener("mousedown",T),o.removeEventListener("mouseup",L),o.removeEventListener("mouseleave",y),o.removeEventListener("mouseenter",y),o.removeEventListener("mouseout",y),o.removeEventListener("mouseover",y),o.removeEventListener("blur",A),o.removeEventListener("keyup",M),o.removeEventListener("keydown",M),o.removeEventListener("keypress",M),o!==window&&(window.removeEventListener("blur",A),window.removeEventListener("keyup",M),window.removeEventListener("keydown",M),window.removeEventListener("keypress",M)))}P();var k={element:o};return Object.defineProperties(k,{enabled:{get:function(){return E},set:function(I){I?P():d()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return u},enumerable:!0},y:{get:function(){return b},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),k}},2565:function(v){var m={left:0,top:0};v.exports=a;function a(s,o,h){o=o||s.currentTarget||s.srcElement,Array.isArray(h)||(h=[0,0]);var f=s.clientX||0,u=s.clientY||0,b=n(o);return h[0]=f-b.left,h[1]=u-b.top,h}function n(s){return s===window||s===document||s===document.body?m:s.getBoundingClientRect()}},4110:function(v,m){function a(h){if(typeof h=="object"){if("buttons"in h)return h.buttons;if("which"in h){var f=h.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(ie=1,J[K++]=p(P[N],A,M,R),N+=Z,T>0)for(ae=1,B=P[N],ne=J[K]=p(B,A,M,R),ee=J[K+ce],he=J[K+de],Se=J[K+xe],(ne!==ee||ne!==he||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,ee,he,Se,A,M,R),ke=oe[K]=fe++),K+=1,N+=Z,ae=2;ae0)for(ae=1,B=P[N],ne=J[K]=p(B,A,M,R),ee=J[K+ce],he=J[K+de],Se=J[K+xe],(ne!==ee||ne!==he||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,ee,he,Se,A,M,R),ke=oe[K]=fe++,Se!==he&&b(oe[K+de],ke,W,$,he,Se,A,M,R)),K+=1,N+=Z,ae=2;ae0){if(ae=1,J[K++]=p(P[N],A,M,R),N+=Z,L>0)for(ie=1,B=P[N],ne=J[K]=p(B,A,M,R),he=J[K+de],ee=J[K+ce],Se=J[K+xe],(ne!==he||ne!==ee||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,he,ee,Se,A,M,R),ke=oe[K]=fe++),K+=1,N+=Z,ie=2;ie0)for(ie=1,B=P[N],ne=J[K]=p(B,A,M,R),he=J[K+de],ee=J[K+ce],Se=J[K+xe],(ne!==he||ne!==ee||ne!==Se)&&(U=P[N+G],W=P[N+H],$=P[N+V],u(ae,ie,B,U,W,$,ne,he,ee,Se,A,M,R),ke=oe[K]=fe++,Se!==he&&b(oe[K+de],ke,$,U,Se,he,A,M,R)),K+=1,N+=Z,ie=2;ie 0"),typeof f.vertex!="function"&&u("Must specify vertex creation function"),typeof f.cell!="function"&&u("Must specify cell creation function"),typeof f.phase!="function"&&u("Must specify phase function");for(var g=f.getters||[],c=new Array(p),y=0;y=0?c[y]=!0:c[y]=!1;return o(f.vertex,f.cell,f.phase,E,b,c)}},9144:function(v,m,a){var n=a(3094),s={zero:function(M,R,T,L){var P=M[0],d=T[0];L|=0;var k=0,I=d;for(k=0;k2&&k[1]>2&&L(d.pick(-1,-1).lo(1,1).hi(k[0]-2,k[1]-2),P.pick(-1,-1,0).lo(1,1).hi(k[0]-2,k[1]-2),P.pick(-1,-1,1).lo(1,1).hi(k[0]-2,k[1]-2)),k[1]>2&&(T(d.pick(0,-1).lo(1).hi(k[1]-2),P.pick(0,-1,1).lo(1).hi(k[1]-2)),R(P.pick(0,-1,0).lo(1).hi(k[1]-2))),k[1]>2&&(T(d.pick(k[0]-1,-1).lo(1).hi(k[1]-2),P.pick(k[0]-1,-1,1).lo(1).hi(k[1]-2)),R(P.pick(k[0]-1,-1,0).lo(1).hi(k[1]-2))),k[0]>2&&(T(d.pick(-1,0).lo(1).hi(k[0]-2),P.pick(-1,0,0).lo(1).hi(k[0]-2)),R(P.pick(-1,0,1).lo(1).hi(k[0]-2))),k[0]>2&&(T(d.pick(-1,k[1]-1).lo(1).hi(k[0]-2),P.pick(-1,k[1]-1,0).lo(1).hi(k[0]-2)),R(P.pick(-1,k[1]-1,1).lo(1).hi(k[0]-2))),P.set(0,0,0,0),P.set(0,0,1,0),P.set(k[0]-1,0,0,0),P.set(k[0]-1,0,1,0),P.set(0,k[1]-1,0,0),P.set(0,k[1]-1,1,0),P.set(k[0]-1,k[1]-1,0,0),P.set(k[0]-1,k[1]-1,1,0),P}}function A(M){var R=M.join(),k=p[R];if(k)return k;for(var T=M.length,L=[E,g],P=1;P<=T;++P)L.push(c(P));var d=y,k=d.apply(void 0,L);return p[R]=k,k}v.exports=function(R,T,L){if(Array.isArray(L)||(typeof L=="string"?L=n(T.dimension,L):L=n(T.dimension,"clamp")),T.size===0)return R;if(T.dimension===0)return R.set(0),R;var P=A(L);return P(R,T)}},3581:function(v){function m(h,f){var u=Math.floor(f),b=f-u,p=0<=u&&u0;){W<64?(T=W,W=0):(T=64,W-=64);for(var V=p[1]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),c=U+W*d+V*k,M=H+W*N+V*B;var $=0,Z=0,q=0,ae=I,ie=d-P*I,fe=k-T*d,Q=G,J=N-P*G,oe=B-T*N;for(q=0;q0;){B<64?(T=B,B=0):(T=64,B-=64);for(var G=p[0]|0;G>0;){G<64?(R=G,G=0):(R=64,G-=64),c=I+B*P+G*L,M=N+B*k+G*d;var U=0,H=0,W=P,V=L-T*P,$=k,Z=d-T*k;for(H=0;H0;){H<64?(L=H,H=0):(L=64,H-=64);for(var W=p[0]|0;W>0;){W<64?(R=W,W=0):(R=64,W-=64);for(var V=p[1]|0;V>0;){V<64?(T=V,V=0):(T=64,V-=64),c=G+H*k+W*P+V*d,M=U+H*B+W*I+V*N;var $=0,Z=0,q=0,ae=k,ie=P-L*k,fe=d-R*P,Q=B,J=I-L*B,oe=N-R*I;for(q=0;qy;){$=0,Z=U-T;t:for(W=0;Wae)break t;Z+=I,$+=N}for($=U,Z=U-T,W=0;W>1,V=W-G,$=W+G,Z=U,q=V,ae=W,ie=$,fe=H,Q=A+1,J=M-1,oe=!0,K,ne,ce,re,ee,de,le,he,xe,Ee=0,Se=0,ke=0,Te,Ae,be,Ie,Ue,Ne,ze,$e,st,vt,at,nt,mt,rt,lt,dt,wt=k,et=g(wt),Be=g(wt);Ae=L*Z,be=L*q,dt=T;e:for(Te=0;Te0){ne=Z,Z=q,q=ne;break e}if(ke<0)break e;dt+=N}Ae=L*ie,be=L*fe,dt=T;e:for(Te=0;Te0){ne=ie,ie=fe,fe=ne;break e}if(ke<0)break e;dt+=N}Ae=L*Z,be=L*ae,dt=T;e:for(Te=0;Te0){ne=Z,Z=ae,ae=ne;break e}if(ke<0)break e;dt+=N}Ae=L*q,be=L*ae,dt=T;e:for(Te=0;Te0){ne=q,q=ae,ae=ne;break e}if(ke<0)break e;dt+=N}Ae=L*Z,be=L*ie,dt=T;e:for(Te=0;Te0){ne=Z,Z=ie,ie=ne;break e}if(ke<0)break e;dt+=N}Ae=L*ae,be=L*ie,dt=T;e:for(Te=0;Te0){ne=ae,ae=ie,ie=ne;break e}if(ke<0)break e;dt+=N}Ae=L*q,be=L*fe,dt=T;e:for(Te=0;Te0){ne=q,q=fe,fe=ne;break e}if(ke<0)break e;dt+=N}Ae=L*q,be=L*ae,dt=T;e:for(Te=0;Te0){ne=q,q=ae,ae=ne;break e}if(ke<0)break e;dt+=N}Ae=L*ie,be=L*fe,dt=T;e:for(Te=0;Te0){ne=ie,ie=fe,fe=ne;break e}if(ke<0)break e;dt+=N}for(Ae=L*Z,be=L*q,Ie=L*ae,Ue=L*ie,Ne=L*fe,ze=L*U,$e=L*W,st=L*H,lt=0,dt=T,Te=0;Te0)J--;else if(ke<0){for(Ae=L*de,be=L*Q,Ie=L*J,dt=T,Te=0;Te0)for(;;){le=T+J*L,lt=0;e:for(Te=0;Te0){if(--JH){e:for(;;){for(le=T+Q*L,lt=0,dt=T,Te=0;Te1&&y?M(c,y[0],y[1]):M(c)}var b={"uint32,1,0":function(E,g){return function(c){var y=c.data,A=c.offset|0,M=c.shape,R=c.stride,T=R[0]|0,L=M[0]|0,P=R[1]|0,d=M[1]|0,k=P,I=P,N=1;L<=32?E(0,L-1,y,A,T,P,L,d,k,I,N):g(0,L-1,y,A,T,P,L,d,k,I,N)}}};function p(E,g){var c=[g,E].join(","),y=b[c],A=h(E,g),M=u(E,g,A);return y(A,M)}v.exports=p},8729:function(v,m,a){var n=a(8139),s={};function o(h){var f=h.order,u=h.dtype,b=[f,u],p=b.join(":"),E=s[p];return E||(s[p]=E=n(f,u)),E(h),h}v.exports=o},5050:function(v,m,a){var n=a(4780),s=typeof Float64Array<"u";function o(g,c){return g[0]-c[0]}function h(){var g=this.stride,c=new Array(g.length),y;for(y=0;y=0&&(P=T|0,L+=k*P,d-=P),new A(this.data,d,k,L)},M.step=function(T){var L=this.shape[0],P=this.stride[0],d=this.offset,k=0,I=Math.ceil;return typeof T=="number"&&(k=T|0,k<0?(d+=P*(L-1),L=I(-L/k)):L=I(L/k),P*=k),new A(this.data,L,P,d)},M.transpose=function(T){T=T===void 0?0:T|0;var L=this.shape,P=this.stride;return new A(this.data,L[T],P[T],this.offset)},M.pick=function(T){var L=[],P=[],d=this.offset;typeof T=="number"&&T>=0?d=d+this.stride[0]*T|0:(L.push(this.shape[0]),P.push(this.stride[0]));var k=c[L.length+1];return k(this.data,L,P,d)},function(T,L,P,d){return new A(T,L[0],P[0],d)}},2:function(g,c,y){function A(R,T,L,P,d,k){this.data=R,this.shape=[T,L],this.stride=[P,d],this.offset=k|0}var M=A.prototype;return M.dtype=g,M.dimension=2,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(M,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),M.set=function(T,L,P){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*L,P):this.data[this.offset+this.stride[0]*T+this.stride[1]*L]=P},M.get=function(T,L){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*L):this.data[this.offset+this.stride[0]*T+this.stride[1]*L]},M.index=function(T,L){return this.offset+this.stride[0]*T+this.stride[1]*L},M.hi=function(T,L){return new A(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof L!="number"||L<0?this.shape[1]:L|0,this.stride[0],this.stride[1],this.offset)},M.lo=function(T,L){var P=this.offset,d=0,k=this.shape[0],I=this.shape[1],N=this.stride[0],B=this.stride[1];return typeof T=="number"&&T>=0&&(d=T|0,P+=N*d,k-=d),typeof L=="number"&&L>=0&&(d=L|0,P+=B*d,I-=d),new A(this.data,k,I,N,B,P)},M.step=function(T,L){var P=this.shape[0],d=this.shape[1],k=this.stride[0],I=this.stride[1],N=this.offset,B=0,G=Math.ceil;return typeof T=="number"&&(B=T|0,B<0?(N+=k*(P-1),P=G(-P/B)):P=G(P/B),k*=B),typeof L=="number"&&(B=L|0,B<0?(N+=I*(d-1),d=G(-d/B)):d=G(d/B),I*=B),new A(this.data,P,d,k,I,N)},M.transpose=function(T,L){T=T===void 0?0:T|0,L=L===void 0?1:L|0;var P=this.shape,d=this.stride;return new A(this.data,P[T],P[L],d[T],d[L],this.offset)},M.pick=function(T,L){var P=[],d=[],k=this.offset;typeof T=="number"&&T>=0?k=k+this.stride[0]*T|0:(P.push(this.shape[0]),d.push(this.stride[0])),typeof L=="number"&&L>=0?k=k+this.stride[1]*L|0:(P.push(this.shape[1]),d.push(this.stride[1]));var I=c[P.length+1];return I(this.data,P,d,k)},function(T,L,P,d){return new A(T,L[0],L[1],P[0],P[1],d)}},3:function(g,c,y){function A(R,T,L,P,d,k,I,N){this.data=R,this.shape=[T,L,P],this.stride=[d,k,I],this.offset=N|0}var M=A.prototype;return M.dtype=g,M.dimension=3,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(M,"order",{get:function(){var T=Math.abs(this.stride[0]),L=Math.abs(this.stride[1]),P=Math.abs(this.stride[2]);return T>L?L>P?[2,1,0]:T>P?[1,2,0]:[1,0,2]:T>P?[2,0,1]:P>L?[0,1,2]:[0,2,1]}}),M.set=function(T,L,P,d){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P,d):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P]=d},M.get=function(T,L,P){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P]},M.index=function(T,L,P){return this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P},M.hi=function(T,L,P){return new A(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof L!="number"||L<0?this.shape[1]:L|0,typeof P!="number"||P<0?this.shape[2]:P|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},M.lo=function(T,L,P){var d=this.offset,k=0,I=this.shape[0],N=this.shape[1],B=this.shape[2],G=this.stride[0],U=this.stride[1],H=this.stride[2];return typeof T=="number"&&T>=0&&(k=T|0,d+=G*k,I-=k),typeof L=="number"&&L>=0&&(k=L|0,d+=U*k,N-=k),typeof P=="number"&&P>=0&&(k=P|0,d+=H*k,B-=k),new A(this.data,I,N,B,G,U,H,d)},M.step=function(T,L,P){var d=this.shape[0],k=this.shape[1],I=this.shape[2],N=this.stride[0],B=this.stride[1],G=this.stride[2],U=this.offset,H=0,W=Math.ceil;return typeof T=="number"&&(H=T|0,H<0?(U+=N*(d-1),d=W(-d/H)):d=W(d/H),N*=H),typeof L=="number"&&(H=L|0,H<0?(U+=B*(k-1),k=W(-k/H)):k=W(k/H),B*=H),typeof P=="number"&&(H=P|0,H<0?(U+=G*(I-1),I=W(-I/H)):I=W(I/H),G*=H),new A(this.data,d,k,I,N,B,G,U)},M.transpose=function(T,L,P){T=T===void 0?0:T|0,L=L===void 0?1:L|0,P=P===void 0?2:P|0;var d=this.shape,k=this.stride;return new A(this.data,d[T],d[L],d[P],k[T],k[L],k[P],this.offset)},M.pick=function(T,L,P){var d=[],k=[],I=this.offset;typeof T=="number"&&T>=0?I=I+this.stride[0]*T|0:(d.push(this.shape[0]),k.push(this.stride[0])),typeof L=="number"&&L>=0?I=I+this.stride[1]*L|0:(d.push(this.shape[1]),k.push(this.stride[1])),typeof P=="number"&&P>=0?I=I+this.stride[2]*P|0:(d.push(this.shape[2]),k.push(this.stride[2]));var N=c[d.length+1];return N(this.data,d,k,I)},function(T,L,P,d){return new A(T,L[0],L[1],L[2],P[0],P[1],P[2],d)}},4:function(g,c,y){function A(R,T,L,P,d,k,I,N,B,G){this.data=R,this.shape=[T,L,P,d],this.stride=[k,I,N,B],this.offset=G|0}var M=A.prototype;return M.dtype=g,M.dimension=4,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(M,"order",{get:y}),M.set=function(T,L,P,d,k){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d,k):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d]=k},M.get=function(T,L,P,d){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d):this.data[this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d]},M.index=function(T,L,P,d){return this.offset+this.stride[0]*T+this.stride[1]*L+this.stride[2]*P+this.stride[3]*d},M.hi=function(T,L,P,d){return new A(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof L!="number"||L<0?this.shape[1]:L|0,typeof P!="number"||P<0?this.shape[2]:P|0,typeof d!="number"||d<0?this.shape[3]:d|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},M.lo=function(T,L,P,d){var k=this.offset,I=0,N=this.shape[0],B=this.shape[1],G=this.shape[2],U=this.shape[3],H=this.stride[0],W=this.stride[1],V=this.stride[2],$=this.stride[3];return typeof T=="number"&&T>=0&&(I=T|0,k+=H*I,N-=I),typeof L=="number"&&L>=0&&(I=L|0,k+=W*I,B-=I),typeof P=="number"&&P>=0&&(I=P|0,k+=V*I,G-=I),typeof d=="number"&&d>=0&&(I=d|0,k+=$*I,U-=I),new A(this.data,N,B,G,U,H,W,V,$,k)},M.step=function(T,L,P,d){var k=this.shape[0],I=this.shape[1],N=this.shape[2],B=this.shape[3],G=this.stride[0],U=this.stride[1],H=this.stride[2],W=this.stride[3],V=this.offset,$=0,Z=Math.ceil;return typeof T=="number"&&($=T|0,$<0?(V+=G*(k-1),k=Z(-k/$)):k=Z(k/$),G*=$),typeof L=="number"&&($=L|0,$<0?(V+=U*(I-1),I=Z(-I/$)):I=Z(I/$),U*=$),typeof P=="number"&&($=P|0,$<0?(V+=H*(N-1),N=Z(-N/$)):N=Z(N/$),H*=$),typeof d=="number"&&($=d|0,$<0?(V+=W*(B-1),B=Z(-B/$)):B=Z(B/$),W*=$),new A(this.data,k,I,N,B,G,U,H,W,V)},M.transpose=function(T,L,P,d){T=T===void 0?0:T|0,L=L===void 0?1:L|0,P=P===void 0?2:P|0,d=d===void 0?3:d|0;var k=this.shape,I=this.stride;return new A(this.data,k[T],k[L],k[P],k[d],I[T],I[L],I[P],I[d],this.offset)},M.pick=function(T,L,P,d){var k=[],I=[],N=this.offset;typeof T=="number"&&T>=0?N=N+this.stride[0]*T|0:(k.push(this.shape[0]),I.push(this.stride[0])),typeof L=="number"&&L>=0?N=N+this.stride[1]*L|0:(k.push(this.shape[1]),I.push(this.stride[1])),typeof P=="number"&&P>=0?N=N+this.stride[2]*P|0:(k.push(this.shape[2]),I.push(this.stride[2])),typeof d=="number"&&d>=0?N=N+this.stride[3]*d|0:(k.push(this.shape[3]),I.push(this.stride[3]));var B=c[k.length+1];return B(this.data,k,I,N)},function(T,L,P,d){return new A(T,L[0],L[1],L[2],L[3],P[0],P[1],P[2],P[3],d)}},5:function(c,y,A){function M(T,L,P,d,k,I,N,B,G,U,H,W){this.data=T,this.shape=[L,P,d,k,I],this.stride=[N,B,G,U,H],this.offset=W|0}var R=M.prototype;return R.dtype=c,R.dimension=5,Object.defineProperty(R,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(R,"order",{get:A}),R.set=function(L,P,d,k,I,N){return c==="generic"?this.data.set(this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I,N):this.data[this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I]=N},R.get=function(L,P,d,k,I){return c==="generic"?this.data.get(this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I):this.data[this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I]},R.index=function(L,P,d,k,I){return this.offset+this.stride[0]*L+this.stride[1]*P+this.stride[2]*d+this.stride[3]*k+this.stride[4]*I},R.hi=function(L,P,d,k,I){return new M(this.data,typeof L!="number"||L<0?this.shape[0]:L|0,typeof P!="number"||P<0?this.shape[1]:P|0,typeof d!="number"||d<0?this.shape[2]:d|0,typeof k!="number"||k<0?this.shape[3]:k|0,typeof I!="number"||I<0?this.shape[4]:I|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},R.lo=function(L,P,d,k,I){var N=this.offset,B=0,G=this.shape[0],U=this.shape[1],H=this.shape[2],W=this.shape[3],V=this.shape[4],$=this.stride[0],Z=this.stride[1],q=this.stride[2],ae=this.stride[3],ie=this.stride[4];return typeof L=="number"&&L>=0&&(B=L|0,N+=$*B,G-=B),typeof P=="number"&&P>=0&&(B=P|0,N+=Z*B,U-=B),typeof d=="number"&&d>=0&&(B=d|0,N+=q*B,H-=B),typeof k=="number"&&k>=0&&(B=k|0,N+=ae*B,W-=B),typeof I=="number"&&I>=0&&(B=I|0,N+=ie*B,V-=B),new M(this.data,G,U,H,W,V,$,Z,q,ae,ie,N)},R.step=function(L,P,d,k,I){var N=this.shape[0],B=this.shape[1],G=this.shape[2],U=this.shape[3],H=this.shape[4],W=this.stride[0],V=this.stride[1],$=this.stride[2],Z=this.stride[3],q=this.stride[4],ae=this.offset,ie=0,fe=Math.ceil;return typeof L=="number"&&(ie=L|0,ie<0?(ae+=W*(N-1),N=fe(-N/ie)):N=fe(N/ie),W*=ie),typeof P=="number"&&(ie=P|0,ie<0?(ae+=V*(B-1),B=fe(-B/ie)):B=fe(B/ie),V*=ie),typeof d=="number"&&(ie=d|0,ie<0?(ae+=$*(G-1),G=fe(-G/ie)):G=fe(G/ie),$*=ie),typeof k=="number"&&(ie=k|0,ie<0?(ae+=Z*(U-1),U=fe(-U/ie)):U=fe(U/ie),Z*=ie),typeof I=="number"&&(ie=I|0,ie<0?(ae+=q*(H-1),H=fe(-H/ie)):H=fe(H/ie),q*=ie),new M(this.data,N,B,G,U,H,W,V,$,Z,q,ae)},R.transpose=function(L,P,d,k,I){L=L===void 0?0:L|0,P=P===void 0?1:P|0,d=d===void 0?2:d|0,k=k===void 0?3:k|0,I=I===void 0?4:I|0;var N=this.shape,B=this.stride;return new M(this.data,N[L],N[P],N[d],N[k],N[I],B[L],B[P],B[d],B[k],B[I],this.offset)},R.pick=function(L,P,d,k,I){var N=[],B=[],G=this.offset;typeof L=="number"&&L>=0?G=G+this.stride[0]*L|0:(N.push(this.shape[0]),B.push(this.stride[0])),typeof P=="number"&&P>=0?G=G+this.stride[1]*P|0:(N.push(this.shape[1]),B.push(this.stride[1])),typeof d=="number"&&d>=0?G=G+this.stride[2]*d|0:(N.push(this.shape[2]),B.push(this.stride[2])),typeof k=="number"&&k>=0?G=G+this.stride[3]*k|0:(N.push(this.shape[3]),B.push(this.stride[3])),typeof I=="number"&&I>=0?G=G+this.stride[4]*I|0:(N.push(this.shape[4]),B.push(this.stride[4]));var U=y[N.length+1];return U(this.data,N,B,G)},function(L,P,d,k){return new M(L,P[0],P[1],P[2],P[3],P[4],d[0],d[1],d[2],d[3],d[4],k)}}};function u(g,c){var y=c===-1?"T":String(c),A=f[y];return c===-1?A(g):c===0?A(g,p[g][0]):A(g,p[g],h)}function b(g){if(n(g))return"buffer";if(s)switch(Object.prototype.toString.call(g)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(g)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function E(g,c,y,A){if(g===void 0){var d=p.array[0];return d([])}else typeof g=="number"&&(g=[g]);c===void 0&&(c=[g.length]);var M=c.length;if(y===void 0){y=new Array(M);for(var R=M-1,T=1;R>=0;--R)y[R]=T,T*=c[R]}if(A===void 0){A=0;for(var R=0;R>>0;v.exports=h;function h(f,u){if(isNaN(f)||isNaN(u))return NaN;if(f===u)return f;if(f===0)return u<0?-s:s;var b=n.hi(f),p=n.lo(f);return u>f==f>0?p===o?(b+=1,p=0):p+=1:p===0?(p=o,b-=1):p-=1,n.pack(p,b)}},115:function(v,m){var a=1e-6,n=1e-6;m.vertexNormals=function(s,o,h){for(var f=o.length,u=new Array(f),b=h===void 0?a:h,p=0;pb)for(var N=u[c],B=1/Math.sqrt(P*k),I=0;I<3;++I){var G=(I+1)%3,U=(I+2)%3;N[I]+=B*(d[G]*L[U]-d[U]*L[G])}}for(var p=0;pb)for(var B=1/Math.sqrt(H),I=0;I<3;++I)N[I]*=B;else for(var I=0;I<3;++I)N[I]=0}return u},m.faceNormals=function(s,o,h){for(var f=s.length,u=new Array(f),b=h===void 0?n:h,p=0;pb?R=1/Math.sqrt(R):R=0;for(var c=0;c<3;++c)M[c]*=R;u[p]=M}return u}},567:function(v){v.exports=m;function m(a,n,s,o,h,f,u,b,p,E){var g=n+f+E;if(c>0){var c=Math.sqrt(g+1);a[0]=.5*(u-p)/c,a[1]=.5*(b-o)/c,a[2]=.5*(s-f)/c,a[3]=.5*c}else{var y=Math.max(n,f,E),c=Math.sqrt(2*y-g+1);n>=y?(a[0]=.5*c,a[1]=.5*(h+s)/c,a[2]=.5*(b+o)/c,a[3]=.5*(u-p)/c):f>=y?(a[0]=.5*(s+h)/c,a[1]=.5*c,a[2]=.5*(p+u)/c,a[3]=.5*(b-o)/c):(a[0]=.5*(o+b)/c,a[1]=.5*(u+p)/c,a[2]=.5*c,a[3]=.5*(s-h)/c)}return a}},7774:function(v,m,a){v.exports=c;var n=a(8444),s=a(3012),o=a(5950),h=a(7437),f=a(567);function u(y,A,M){return Math.sqrt(Math.pow(y,2)+Math.pow(A,2)+Math.pow(M,2))}function b(y,A,M,R){return Math.sqrt(Math.pow(y,2)+Math.pow(A,2)+Math.pow(M,2)+Math.pow(R,2))}function p(y,A){var M=A[0],R=A[1],T=A[2],L=A[3],P=b(M,R,T,L);P>1e-6?(y[0]=M/P,y[1]=R/P,y[2]=T/P,y[3]=L/P):(y[0]=y[1]=y[2]=0,y[3]=1)}function E(y,A,M){this.radius=n([M]),this.center=n(A),this.rotation=n(y),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var g=E.prototype;g.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},g.recalcMatrix=function(y){this.radius.curve(y),this.center.curve(y),this.rotation.curve(y);var A=this.computedRotation;p(A,A);var M=this.computedMatrix;o(M,A);var R=this.computedCenter,T=this.computedEye,L=this.computedUp,P=Math.exp(this.computedRadius[0]);T[0]=R[0]+P*M[2],T[1]=R[1]+P*M[6],T[2]=R[2]+P*M[10],L[0]=M[1],L[1]=M[5],L[2]=M[9];for(var d=0;d<3;++d){for(var k=0,I=0;I<3;++I)k+=M[d+4*I]*T[I];M[12+d]=-k}},g.getMatrix=function(y,A){this.recalcMatrix(y);var M=this.computedMatrix;if(A){for(var R=0;R<16;++R)A[R]=M[R];return A}return M},g.idle=function(y){this.center.idle(y),this.radius.idle(y),this.rotation.idle(y)},g.flush=function(y){this.center.flush(y),this.radius.flush(y),this.rotation.flush(y)},g.pan=function(y,A,M,R){A=A||0,M=M||0,R=R||0,this.recalcMatrix(y);var T=this.computedMatrix,L=T[1],P=T[5],d=T[9],k=u(L,P,d);L/=k,P/=k,d/=k;var I=T[0],N=T[4],B=T[8],G=I*L+N*P+B*d;I-=L*G,N-=P*G,B-=d*G;var U=u(I,N,B);I/=U,N/=U,B/=U,T[2],T[6],T[10];var H=I*A+L*M,W=N*A+P*M,V=B*A+d*M;this.center.move(y,H,W,V);var $=Math.exp(this.computedRadius[0]);$=Math.max(1e-4,$+R),this.radius.set(y,Math.log($))},g.rotate=function(y,A,M,R){this.recalcMatrix(y),A=A||0,M=M||0;var T=this.computedMatrix,L=T[0],P=T[4],d=T[8],k=T[1],I=T[5],N=T[9],B=T[2],G=T[6],U=T[10],H=A*L+M*k,W=A*P+M*I,V=A*d+M*N,$=-(G*V-U*W),Z=-(U*H-B*V),q=-(B*W-G*H),ae=Math.sqrt(Math.max(0,1-Math.pow($,2)-Math.pow(Z,2)-Math.pow(q,2))),ie=b($,Z,q,ae);ie>1e-6?($/=ie,Z/=ie,q/=ie,ae/=ie):($=Z=q=0,ae=1);var fe=this.computedRotation,Q=fe[0],J=fe[1],oe=fe[2],K=fe[3],ne=Q*ae+K*$+J*q-oe*Z,ce=J*ae+K*Z+oe*$-Q*q,re=oe*ae+K*q+Q*Z-J*$,ee=K*ae-Q*$-J*Z-oe*q;if(R){$=B,Z=G,q=U;var de=Math.sin(R)/u($,Z,q);$*=de,Z*=de,q*=de,ae=Math.cos(A),ne=ne*ae+ee*$+ce*q-re*Z,ce=ce*ae+ee*Z+re*$-ne*q,re=re*ae+ee*q+ne*Z-ce*$,ee=ee*ae-ne*$-ce*Z-re*q}var le=b(ne,ce,re,ee);le>1e-6?(ne/=le,ce/=le,re/=le,ee/=le):(ne=ce=re=0,ee=1),this.rotation.set(y,ne,ce,re,ee)},g.lookAt=function(y,A,M,R){this.recalcMatrix(y),M=M||this.computedCenter,A=A||this.computedEye,R=R||this.computedUp;var T=this.computedMatrix;s(T,A,M,R);var L=this.computedRotation;f(L,T[0],T[1],T[2],T[4],T[5],T[6],T[8],T[9],T[10]),p(L,L),this.rotation.set(y,L[0],L[1],L[2],L[3]);for(var P=0,d=0;d<3;++d)P+=Math.pow(M[d]-A[d],2);this.radius.set(y,.5*Math.log(Math.max(P,1e-6))),this.center.set(y,M[0],M[1],M[2])},g.translate=function(y,A,M,R){this.center.move(y,A||0,M||0,R||0)},g.setMatrix=function(y,A){var M=this.computedRotation;f(M,A[0],A[1],A[2],A[4],A[5],A[6],A[8],A[9],A[10]),p(M,M),this.rotation.set(y,M[0],M[1],M[2],M[3]);var R=this.computedMatrix;h(R,A);var T=R[15];if(Math.abs(T)>1e-6){var L=R[12]/T,P=R[13]/T,d=R[14]/T;this.recalcMatrix(y);var k=Math.exp(this.computedRadius[0]);this.center.set(y,L-R[2]*k,P-R[6]*k,d-R[10]*k),this.radius.idle(y)}else this.center.idle(y),this.radius.idle(y)},g.setDistance=function(y,A){A>0&&this.radius.set(y,Math.log(A))},g.setDistanceLimits=function(y,A){y>0?y=Math.log(y):y=-1/0,A>0?A=Math.log(A):A=1/0,A=Math.max(A,y),this.radius.bounds[0][0]=y,this.radius.bounds[1][0]=A},g.getDistanceLimits=function(y){var A=this.radius.bounds;return y?(y[0]=Math.exp(A[0][0]),y[1]=Math.exp(A[1][0]),y):[Math.exp(A[0][0]),Math.exp(A[1][0])]},g.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},g.fromJSON=function(y){var A=this.lastT(),M=y.center;M&&this.center.set(A,M[0],M[1],M[2]);var R=y.rotation;R&&this.rotation.set(A,R[0],R[1],R[2],R[3]);var T=y.distance;T&&T>0&&this.radius.set(A,Math.log(T)),this.setDistanceLimits(y.zoomMin,y.zoomMax)};function c(y){y=y||{};var A=y.center||[0,0,0],M=y.rotation||[0,0,0,1],R=y.radius||1;A=[].slice.call(A,0,3),M=[].slice.call(M,0,4),p(M,M);var T=new E(M,A,Math.log(R));return T.setDistanceLimits(y.zoomMin,y.zoomMax),("eye"in y||"up"in y)&&T.lookAt(0,y.eye,y.center,y.up),T}},4930:function(v,m,a){/*! * pad-left * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. -*/var n=a(6184);v.exports=function(o,h,f){return f=typeof f<"u"?f+"":" ",n(f,h)+o}},4405:function(v){v.exports=function(a,n){n||(n=[0,""]),a=String(a);var s=parseFloat(a,10);return n[0]=s,n[1]=a.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}},4166:function(v,m,a){v.exports=s;var n=a(9398);function s(o,h){for(var f=h.length|0,u=o.length,b=[new Array(f),new Array(f)],p=0;p0){I=b[G][d][0],B=G;break}N=I[B^1];for(var U=0;U<2;++U)for(var H=b[U][d],W=0;W0&&(I=V,N=$,B=U)}return k||I&&c(I,B),N}function A(P,d){var k=b[d][P][0],I=[P];c(k,d);for(var N=k[d^1];;){for(;N!==P;)I.push(N),N=x(I[I.length-2],N,!1);if(b[0][P].length+b[1][P].length===0)break;var B=I[I.length-1],G=P,U=I[1],H=x(B,G,!0);if(n(h[B],h[G],h[U],h[H])<0)break;I.push(P),N=x(B,G)}return I}function M(P,d){return d[1]===d[d.length-1]}for(var p=0;p0;){b[0][p].length;var L=A(p,R);M(T,L)?T.push.apply(T,L):(T.length>0&&g.push(T),T=L)}T.length>0&&g.push(T)}return g}},3959:function(v,m,a){v.exports=s;var n=a(8348);function s(o,h){for(var f=n(o,h.length),u=new Array(h.length),b=new Array(h.length),p=[],E=0;E0;){var c=p.pop();u[c]=!1;for(var x=f[c],E=0;E0}T=T.filter(L);for(var P=T.length,d=new Array(P),k=new Array(P),R=0;R0;){var de=ce.pop(),le=ae[de];u(le,function(ke,Te){return ke-Te});var he=le.length,xe=re[de],Ee;if(xe===0){var H=T[de];Ee=[H]}for(var R=0;R=0)&&(re[Se]=xe^1,ce.push(Se),xe===0)){var H=T[Se];ne(H)||(H.reverse(),Ee.push(H))}}xe===0&&ee.push(Ee)}return ee}},211:function(v,m,a){v.exports=x;var n=a(417)[3],s=a(4385),o=a(9014),h=a(5070);function f(){return!0}function u(A){return function(M,R){var T=A[M];return T?!!T.queryPoint(R,f):!1}}function b(A){for(var M={},R=0;R0&&M[T]===R[0])L=A[T-1];else return 1;for(var P=1;L;){var d=L.key,k=n(R,d[0],d[1]);if(d[0][0]0)P=-1,L=L.right;else return 0;else if(k>0)L=L.left;else if(k<0)P=1,L=L.right;else return 0}return P}}function E(A){return 1}function g(A){return function(R){return A(R[0],R[1])?0:1}}function c(A,M){return function(T){return A(T[0],T[1])?0:M(T)}}function x(A){for(var M=A.length,R=[],T=[],L=0;L=E?(d=1,I=E+2*x+M):(d=-x/E,I=x*d+M)):(d=0,A>=0?(k=0,I=M):-A>=c?(k=1,I=c+2*A+M):(k=-A/c,I=A*k+M));else if(k<0)k=0,x>=0?(d=0,I=M):-x>=E?(d=1,I=E+2*x+M):(d=-x/E,I=x*d+M);else{var N=1/P;d*=N,k*=N,I=d*(E*d+g*k+2*x)+k*(g*d+c*k+2*A)+M}else{var B,G,U,H;d<0?(B=g+x,G=c+A,G>B?(U=G-B,H=E-2*g+c,U>=H?(d=1,k=0,I=E+2*x+M):(d=U/H,k=1-d,I=d*(E*d+g*k+2*x)+k*(g*d+c*k+2*A)+M)):(d=0,G<=0?(k=1,I=c+2*A+M):A>=0?(k=0,I=M):(k=-A/c,I=A*k+M))):k<0?(B=g+A,G=E+x,G>B?(U=G-B,H=E-2*g+c,U>=H?(k=1,d=0,I=c+2*A+M):(k=U/H,d=1-k,I=d*(E*d+g*k+2*x)+k*(g*d+c*k+2*A)+M)):(k=0,G<=0?(d=1,I=E+2*x+M):x>=0?(d=0,I=M):(d=-x/E,I=x*d+M))):(U=c+A-g-x,U<=0?(d=0,k=1,I=c+2*A+M):(H=E-2*g+c,U>=H?(d=1,k=0,I=E+2*x+M):(d=U/H,k=1-d,I=d*(E*d+g*k+2*x)+k*(g*d+c*k+2*A)+M)))}for(var W=1-d-k,p=0;p0){var c=f[b-1];if(n(E,c)===0&&o(c)!==g){b-=1;continue}}f[b++]=E}}return f.length=b,f}},6184:function(v){/*! +*/var n=a(6184);v.exports=function(o,h,f){return f=typeof f<"u"?f+"":" ",n(f,h)+o}},4405:function(v){v.exports=function(a,n){n||(n=[0,""]),a=String(a);var s=parseFloat(a,10);return n[0]=s,n[1]=a.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}},4166:function(v,m,a){v.exports=s;var n=a(9398);function s(o,h){for(var f=h.length|0,u=o.length,b=[new Array(f),new Array(f)],p=0;p0){I=b[G][d][0],B=G;break}N=I[B^1];for(var U=0;U<2;++U)for(var H=b[U][d],W=0;W0&&(I=V,N=$,B=U)}return k||I&&c(I,B),N}function A(P,d){var k=b[d][P][0],I=[P];c(k,d);for(var N=k[d^1];;){for(;N!==P;)I.push(N),N=y(I[I.length-2],N,!1);if(b[0][P].length+b[1][P].length===0)break;var B=I[I.length-1],G=P,U=I[1],H=y(B,G,!0);if(n(h[B],h[G],h[U],h[H])<0)break;I.push(P),N=y(B,G)}return I}function M(P,d){return d[1]===d[d.length-1]}for(var p=0;p0;){b[0][p].length;var L=A(p,R);M(T,L)?T.push.apply(T,L):(T.length>0&&g.push(T),T=L)}T.length>0&&g.push(T)}return g}},3959:function(v,m,a){v.exports=s;var n=a(8348);function s(o,h){for(var f=n(o,h.length),u=new Array(h.length),b=new Array(h.length),p=[],E=0;E0;){var c=p.pop();u[c]=!1;for(var y=f[c],E=0;E0}T=T.filter(L);for(var P=T.length,d=new Array(P),k=new Array(P),R=0;R0;){var de=ce.pop(),le=ae[de];u(le,function(ke,Te){return ke-Te});var he=le.length,xe=re[de],Ee;if(xe===0){var H=T[de];Ee=[H]}for(var R=0;R=0)&&(re[Se]=xe^1,ce.push(Se),xe===0)){var H=T[Se];ne(H)||(H.reverse(),Ee.push(H))}}xe===0&&ee.push(Ee)}return ee}},211:function(v,m,a){v.exports=y;var n=a(417)[3],s=a(4385),o=a(9014),h=a(5070);function f(){return!0}function u(A){return function(M,R){var T=A[M];return T?!!T.queryPoint(R,f):!1}}function b(A){for(var M={},R=0;R0&&M[T]===R[0])L=A[T-1];else return 1;for(var P=1;L;){var d=L.key,k=n(R,d[0],d[1]);if(d[0][0]0)P=-1,L=L.right;else return 0;else if(k>0)L=L.left;else if(k<0)P=1,L=L.right;else return 0}return P}}function E(A){return 1}function g(A){return function(R){return A(R[0],R[1])?0:1}}function c(A,M){return function(T){return A(T[0],T[1])?0:M(T)}}function y(A){for(var M=A.length,R=[],T=[],L=0;L=E?(d=1,I=E+2*y+M):(d=-y/E,I=y*d+M)):(d=0,A>=0?(k=0,I=M):-A>=c?(k=1,I=c+2*A+M):(k=-A/c,I=A*k+M));else if(k<0)k=0,y>=0?(d=0,I=M):-y>=E?(d=1,I=E+2*y+M):(d=-y/E,I=y*d+M);else{var N=1/P;d*=N,k*=N,I=d*(E*d+g*k+2*y)+k*(g*d+c*k+2*A)+M}else{var B,G,U,H;d<0?(B=g+y,G=c+A,G>B?(U=G-B,H=E-2*g+c,U>=H?(d=1,k=0,I=E+2*y+M):(d=U/H,k=1-d,I=d*(E*d+g*k+2*y)+k*(g*d+c*k+2*A)+M)):(d=0,G<=0?(k=1,I=c+2*A+M):A>=0?(k=0,I=M):(k=-A/c,I=A*k+M))):k<0?(B=g+A,G=E+y,G>B?(U=G-B,H=E-2*g+c,U>=H?(k=1,d=0,I=c+2*A+M):(k=U/H,d=1-k,I=d*(E*d+g*k+2*y)+k*(g*d+c*k+2*A)+M)):(k=0,G<=0?(d=1,I=E+2*y+M):y>=0?(d=0,I=M):(d=-y/E,I=y*d+M))):(U=c+A-g-y,U<=0?(d=0,k=1,I=c+2*A+M):(H=E-2*g+c,U>=H?(d=1,k=0,I=E+2*y+M):(d=U/H,k=1-d,I=d*(E*d+g*k+2*y)+k*(g*d+c*k+2*A)+M)))}for(var W=1-d-k,p=0;p0){var c=f[b-1];if(n(E,c)===0&&o(c)!==g){b-=1;continue}}f[b++]=E}}return f.length=b,f}},6184:function(v){/*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. -*/var m="",a;v.exports=n;function n(s,o){if(typeof s!="string")throw new TypeError("expected a string");if(o===1)return s;if(o===2)return s+s;var h=s.length*o;if(a!==s||typeof a>"u")a=s,m="";else if(m.length>=h)return m.substr(0,h);for(;h>m.length&&o>1;)o&1&&(m+=s),o>>=1,s+=s;return m+=s,m=m.substr(0,h),m}},8161:function(v,m,a){v.exports=a.g.performance&&a.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(v){v.exports=m;function m(a){for(var n=a.length,s=a[a.length-1],o=n,h=n-2;h>=0;--h){var f=s,u=a[h];s=f+u;var b=s-f,p=u-b;p&&(a[--o]=s,s=p)}for(var E=0,h=o;h0){if(G<=0)return U;H=B+G}else if(B<0){if(G>=0)return U;H=-(B+G)}else return U;var W=b*H;return U>=W||U<=-W?U:A(k,I,N)},function(k,I,N,B){var G=k[0]-B[0],U=I[0]-B[0],H=N[0]-B[0],W=k[1]-B[1],V=I[1]-B[1],$=N[1]-B[1],Z=k[2]-B[2],q=I[2]-B[2],ae=N[2]-B[2],ie=U*$,fe=H*V,Q=H*W,J=G*$,oe=G*V,K=U*W,ne=Z*(ie-fe)+q*(Q-J)+ae*(oe-K),ce=(Math.abs(ie)+Math.abs(fe))*Math.abs(Z)+(Math.abs(Q)+Math.abs(J))*Math.abs(q)+(Math.abs(oe)+Math.abs(K))*Math.abs(ae),re=p*ce;return ne>re||-ne>re?ne:M(k,I,N,B)}];function T(d){var k=R[d.length];return k||(k=R[d.length]=x(d.length)),k.apply(void 0,d)}function L(d,k,I,N,B,G,U){return function(W,V,$,Z,q){switch(arguments.length){case 0:case 1:return 0;case 2:return N(W,V);case 3:return B(W,V,$);case 4:return G(W,V,$,Z);case 5:return U(W,V,$,Z,q)}for(var ae=new Array(arguments.length),ie=0;ie0&&E>0||p<0&&E<0)return!1;var g=n(u,h,f),c=n(b,h,f);return g>0&&c>0||g<0&&c<0?!1:p===0&&E===0&&g===0&&c===0?s(h,f,u,b):!0}},4078:function(v){v.exports=a;function m(n,s){var o=n+s,h=o-n,f=o-h,u=s-h,b=n-f,p=b+u;return p?[p,o]:[o]}function a(n,s){var o=n.length|0,h=s.length|0;if(o===1&&h===1)return m(n[0],-s[0]);var f=o+h,u=new Array(f),b=0,p=0,E=0,g=Math.abs,c=n[p],x=g(c),A=-s[E],M=g(A),R,T;x=h?(R=c,p+=1,p=h?(R=c,p+=1,p"u"&&(R=f(x));var T=x.length;if(T===0||R<1)return{cells:[],vertexIds:[],vertexWeights:[]};var L=u(A,+M),P=b(x,R),d=p(P,A,L,+M),k=E(P,A.length|0),I=h(R)(x,P.data,k,L),N=g(P),B=[].slice.call(d.data,0,d.shape[0]);return s.free(L),s.free(P.data),s.free(d.data),s.free(k),{cells:I,vertexIds:N,vertexWeights:B}}},1168:function(v){v.exports=a;var m=[function(){function s(o,h,f,u){for(var b=o.length,p=[],E=0;E>1,A=f[2*x+1];if(A===E)return x;E>1,A=f[2*x+1];if(A===E)return x;E>1,A=f[2*x+1];if(A===E)return x;E0)-(o<0)},m.abs=function(o){var h=o>>a-1;return(o^h)-h},m.min=function(o,h){return h^(o^h)&-(o65535)<<4,o>>>=h,f=(o>255)<<3,o>>>=f,h|=f,f=(o>15)<<2,o>>>=f,h|=f,f=(o>3)<<1,o>>>=f,h|=f,h|o>>1},m.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},m.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function n(o){var h=32;return o&=-o,o&&h--,o&65535&&(h-=16),o&16711935&&(h-=8),o&252645135&&(h-=4),o&858993459&&(h-=2),o&1431655765&&(h-=1),h}m.countTrailingZeros=n,m.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},m.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},m.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var s=new Array(256);(function(o){for(var h=0;h<256;++h){var f=h,u=h,b=7;for(f>>>=1;f;f>>>=1)u<<=1,u|=f&1,--b;o[h]=u<>>8&255]<<16|s[o>>>16&255]<<8|s[o>>>24&255]},m.interleave2=function(o,h){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,h&=65535,h=(h|h<<8)&16711935,h=(h|h<<4)&252645135,h=(h|h<<2)&858993459,h=(h|h<<1)&1431655765,o|h<<1},m.deinterleave2=function(o,h){return o=o>>>h&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},m.interleave3=function(o,h,f){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,o|=h<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,o|f<<2},m.deinterleave3=function(o,h){return o=o>>>h&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},m.nextCombination=function(o){var h=o|o-1;return h+1|(~h&-~h)-1>>>n(o)+1}},6656:function(v,m,a){"use restrict";var n=a(9392),s=a(9521);function o(d){for(var k=0,I=Math.max,N=0,B=d.length;N>1,U=u(d[G],k);U<=0?(U===0&&(B=G),I=G+1):U>0&&(N=G-1)}return B}m.findCell=g;function c(d,k){for(var I=new Array(d.length),N=0,B=I.length;N=d.length||u(d[ae],G)!==0););}return I}m.incidence=c;function x(d,k){if(!k)return c(E(M(d,0)),d);for(var I=new Array(k),N=0;N>>V&1&&W.push(B[V]);k.push(W)}return p(k)}m.explode=A;function M(d,k){if(k<0)return[];for(var I=[],N=(1<>1:(Q>>1)-1}function N(Q){for(var J=k(Q);;){var oe=J,K=2*Q+1,ne=2*(Q+1),ce=Q;if(K0;){var oe=I(Q);if(oe>=0){var K=k(oe);if(J0){var Q=W[0];return d(0,Z-1),Z-=1,N(0),Q}return-1}function U(Q,J){var oe=W[Q];return x[oe]===J?Q:(x[oe]=-1/0,B(Q),G(),x[oe]=J,Z+=1,B(Z-1))}function H(Q){if(!A[Q]){A[Q]=!0;var J=g[Q],oe=c[Q];g[oe]>=0&&(g[oe]=J),c[J]>=0&&(c[J]=oe),V[J]>=0&&U(V[J],P(J)),V[oe]>=0&&U(V[oe],P(oe))}}for(var W=[],V=new Array(p),M=0;M>1;M>=0;--M)N(M);for(;;){var q=G();if(q<0||x[q]>b)break;H(q)}for(var ae=[],M=0;M=0&&oe>=0&&J!==oe){var K=V[J],ne=V[oe];K!==ne&&fe.push([K,ne])}}),s.unique(s.normalize(fe)),{positions:ae,edges:fe}}},6638:function(v,m,a){v.exports=o;var n=a(417);function s(h,f){var u,b;if(f[0][0]f[1][0])u=f[1],b=f[0];else{var p=Math.min(h[0][1],h[1][1]),E=Math.max(h[0][1],h[1][1]),g=Math.min(f[0][1],f[1][1]),c=Math.max(f[0][1],f[1][1]);return Ec?p-c:E-c}var x,A;h[0][1]f[1][0])u=f[1],b=f[0];else return s(f,h);var p,E;if(h[0][0]h[1][0])p=h[1],E=h[0];else return-s(h,f);var g=n(u,b,E),c=n(u,b,p);if(g<0){if(c<=0)return g}else if(g>0){if(c>=0)return g}else if(c)return c;if(g=n(E,p,b),c=n(E,p,u),g<0){if(c<=0)return g}else if(g>0){if(c>=0)return g}else if(c)return c;return b[0]-E[0]}},4385:function(v,m,a){v.exports=c;var n=a(5070),s=a(7080),o=a(417),h=a(6638);function f(x,A,M){this.slabs=x,this.coordinates=A,this.horizontal=M}var u=f.prototype;function b(x,A){return x.y-A}function p(x,A){for(var M=null;x;){var R=x.key,T,L;R[0][0]0)if(A[0]!==R[1][0])M=x,x=x.right;else{var d=p(x.right,A);if(d)return d;x=x.left}else{if(A[0]!==R[1][0])return x;var d=p(x.right,A);if(d)return d;x=x.left}}return M}u.castUp=function(x){var A=n.le(this.coordinates,x[0]);if(A<0)return-1;this.slabs[A];var M=p(this.slabs[A],x),R=-1;if(M&&(R=M.value),this.coordinates[A]===x[0]){var T=null;if(M&&(T=M.key),A>0){var L=p(this.slabs[A-1],x);L&&(T?h(L.key,T)>0&&(T=L.key,R=L.value):(R=L.value,T=L.key))}var P=this.horizontal[A];if(P.length>0){var d=n.ge(P,x[1],b);if(d=P.length)return R;k=P[d]}}if(k.start)if(T){var I=o(T[0],T[1],[x[0],k.y]);T[0][0]>T[1][0]&&(I=-I),I>0&&(R=k.index)}else R=k.index;else k.y!==x[1]&&(R=k.index)}}}return R};function E(x,A,M,R){this.y=x,this.index=A,this.start=M,this.closed=R}function g(x,A,M,R){this.x=x,this.segment=A,this.create=M,this.index=R}function c(x){for(var A=x.length,M=2*A,R=new Array(M),T=0;T1&&(A=1);for(var M=1-A,R=p.length,T=new Array(R),L=0;L0||x>0&&T<0){var L=h(A,T,M,x);g.push(L),c.push(L.slice())}T<0?c.push(M.slice()):T>0?g.push(M.slice()):(g.push(M.slice()),c.push(M.slice())),x=T}return{positive:g,negative:c}}function u(p,E){for(var g=[],c=o(p[p.length-1],E),x=p[p.length-1],A=p[0],M=0;M0||c>0&&R<0)&&g.push(h(x,R,A,c)),R>=0&&g.push(A.slice()),c=R}return g}function b(p,E){for(var g=[],c=o(p[p.length-1],E),x=p[p.length-1],A=p[0],M=0;M0||c>0&&R<0)&&g.push(h(x,R,A,c)),R<=0&&g.push(A.slice()),c=R}return g}},8974:function(v,m,a){var n;(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(p){return f(b(p),arguments)}function h(p,E){return o.apply(null,[p].concat(E||[]))}function f(p,E){var g=1,c=p.length,x,A="",M,R,T,L,P,d,k,I;for(M=0;M=0),T.type){case"b":x=parseInt(x,10).toString(2);break;case"c":x=String.fromCharCode(parseInt(x,10));break;case"d":case"i":x=parseInt(x,10);break;case"j":x=JSON.stringify(x,null,T.width?parseInt(T.width):0);break;case"e":x=T.precision?parseFloat(x).toExponential(T.precision):parseFloat(x).toExponential();break;case"f":x=T.precision?parseFloat(x).toFixed(T.precision):parseFloat(x);break;case"g":x=T.precision?String(Number(x.toPrecision(T.precision))):parseFloat(x);break;case"o":x=(parseInt(x,10)>>>0).toString(8);break;case"s":x=String(x),x=T.precision?x.substring(0,T.precision):x;break;case"t":x=String(!!x),x=T.precision?x.substring(0,T.precision):x;break;case"T":x=Object.prototype.toString.call(x).slice(8,-1).toLowerCase(),x=T.precision?x.substring(0,T.precision):x;break;case"u":x=parseInt(x,10)>>>0;break;case"v":x=x.valueOf(),x=T.precision?x.substring(0,T.precision):x;break;case"x":x=(parseInt(x,10)>>>0).toString(16);break;case"X":x=(parseInt(x,10)>>>0).toString(16).toUpperCase();break}s.json.test(T.type)?A+=x:(s.number.test(T.type)&&(!k||T.sign)?(I=k?"+":"-",x=x.toString().replace(s.sign,"")):I="",P=T.pad_char?T.pad_char==="0"?"0":T.pad_char.charAt(1):" ",d=T.width-(I+x).length,L=T.width&&d>0?P.repeat(d):"",A+=T.align?I+x+L:P==="0"?I+L+x:L+I+x)}return A}var u=Object.create(null);function b(p){if(u[p])return u[p];for(var E=p,g,c=[],x=0;E;){if((g=s.text.exec(E))!==null)c.push(g[0]);else if((g=s.modulo.exec(E))!==null)c.push("%");else if((g=s.placeholder.exec(E))!==null){if(g[2]){x|=1;var A=[],M=g[2],R=[];if((R=s.key.exec(M))!==null)for(A.push(R[1]);(M=M.substring(R[0].length))!=="";)if((R=s.key_access.exec(M))!==null)A.push(R[1]);else if((R=s.index_access.exec(M))!==null)A.push(R[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");g[2]=A}else x|=2;if(x===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");c.push({placeholder:g[0],param_no:g[1],keys:g[2],sign:g[3],pad_char:g[4],align:g[5],width:g[6],precision:g[7],type:g[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");E=E.substring(g[0].length)}return u[p]=c}m.sprintf=o,m.vsprintf=h,typeof window<"u"&&(window.sprintf=o,window.vsprintf=h,n=(function(){return{sprintf:o,vsprintf:h}}).call(m,a,m,v),n!==void 0&&(v.exports=n))})()},4162:function(v,m,a){v.exports=b;var n=a(9284),s=a(9584),o={"2d":function(p,E,g){var c=p({order:E,scalarArguments:3,getters:g==="generic"?[0]:void 0,phase:function(A,M,R,T){return A>T|0},vertex:function(A,M,R,T,L,P,d,k,I,N,B,G,U){var H=(d<<0)+(k<<1)+(I<<2)+(N<<3)|0;if(!(H===0||H===15))switch(H){case 0:B.push([A-.5,M-.5]);break;case 1:B.push([A-.25-.25*(T+R-2*U)/(R-T),M-.25-.25*(L+R-2*U)/(R-L)]);break;case 2:B.push([A-.75-.25*(-T-R+2*U)/(T-R),M-.25-.25*(P+T-2*U)/(T-P)]);break;case 3:B.push([A-.5,M-.5-.5*(L+R+P+T-4*U)/(R-L+T-P)]);break;case 4:B.push([A-.25-.25*(P+L-2*U)/(L-P),M-.75-.25*(-L-R+2*U)/(L-R)]);break;case 5:B.push([A-.5-.5*(T+R+P+L-4*U)/(R-T+L-P),M-.5]);break;case 6:B.push([A-.5-.25*(-T-R+P+L)/(T-R+L-P),M-.5-.25*(-L-R+P+T)/(L-R+T-P)]);break;case 7:B.push([A-.75-.25*(P+L-2*U)/(L-P),M-.75-.25*(P+T-2*U)/(T-P)]);break;case 8:B.push([A-.75-.25*(-P-L+2*U)/(P-L),M-.75-.25*(-P-T+2*U)/(P-T)]);break;case 9:B.push([A-.5-.25*(T+R+-P-L)/(R-T+P-L),M-.5-.25*(L+R+-P-T)/(R-L+P-T)]);break;case 10:B.push([A-.5-.5*(-T-R+-P-L+4*U)/(T-R+P-L),M-.5]);break;case 11:B.push([A-.25-.25*(-P-L+2*U)/(P-L),M-.75-.25*(L+R-2*U)/(R-L)]);break;case 12:B.push([A-.5,M-.5-.5*(-L-R+-P-T+4*U)/(L-R+P-T)]);break;case 13:B.push([A-.75-.25*(T+R-2*U)/(R-T),M-.25-.25*(-P-T+2*U)/(P-T)]);break;case 14:B.push([A-.25-.25*(-T-R+2*U)/(T-R),M-.25-.25*(-L-R+2*U)/(L-R)]);break;case 15:B.push([A-.5,M-.5]);break}},cell:function(A,M,R,T,L,P,d,k,I){L?k.push([A,M]):k.push([M,A])}});return function(x,A){var M=[],R=[];return c(x,M,R,A),{positions:M,cells:R}}}};function h(p,E){var g=p.length+"d",c=o[g];if(c)return c(n,p,E)}function f(p,E){for(var g=s(p,E),c=g.length,x=new Array(c),A=new Array(c),M=0;M0&&(R+=.02);for(var L=new Float32Array(M),P=0,d=-.5*R,T=0;TMath.max(T,L)?P[2]=1:T>Math.max(R,L)?P[0]=1:P[1]=1;for(var d=0,k=0,I=0;I<3;++I)d+=M[I]*M[I],k+=P[I]*M[I];for(var I=0;I<3;++I)P[I]-=k/d*M[I];return f(P,P),P}function g(M,R,T,L,P,d,k,I){this.center=n(T),this.up=n(L),this.right=n(P),this.radius=n([d]),this.angle=n([k,I]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(M,R),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var N=0;N<16;++N)this.computedMatrix[N]=.5;this.recalcMatrix(0)}var c=g.prototype;c.setDistanceLimits=function(M,R){M>0?M=Math.log(M):M=-1/0,R>0?R=Math.log(R):R=1/0,R=Math.max(R,M),this.radius.bounds[0][0]=M,this.radius.bounds[1][0]=R},c.getDistanceLimits=function(M){var R=this.radius.bounds[0];return M?(M[0]=Math.exp(R[0][0]),M[1]=Math.exp(R[1][0]),M):[Math.exp(R[0][0]),Math.exp(R[1][0])]},c.recalcMatrix=function(M){this.center.curve(M),this.up.curve(M),this.right.curve(M),this.radius.curve(M),this.angle.curve(M);for(var R=this.computedUp,T=this.computedRight,L=0,P=0,d=0;d<3;++d)P+=R[d]*T[d],L+=R[d]*R[d];for(var k=Math.sqrt(L),I=0,d=0;d<3;++d)T[d]-=R[d]*P/L,I+=T[d]*T[d],R[d]/=k;for(var N=Math.sqrt(I),d=0;d<3;++d)T[d]/=N;var B=this.computedToward;h(B,R,T),f(B,B);for(var G=Math.exp(this.computedRadius[0]),U=this.computedAngle[0],H=this.computedAngle[1],W=Math.cos(U),V=Math.sin(U),$=Math.cos(H),Z=Math.sin(H),q=this.computedCenter,ae=W*$,ie=V*$,fe=Z,Q=-W*Z,J=-V*Z,oe=$,K=this.computedEye,ne=this.computedMatrix,d=0;d<3;++d){var ce=ae*T[d]+ie*B[d]+fe*R[d];ne[4*d+1]=Q*T[d]+J*B[d]+oe*R[d],ne[4*d+2]=ce,ne[4*d+3]=0}var re=ne[1],ee=ne[5],de=ne[9],le=ne[2],he=ne[6],xe=ne[10],Ee=ee*xe-de*he,Se=de*le-re*xe,ke=re*he-ee*le,Te=b(Ee,Se,ke);Ee/=Te,Se/=Te,ke/=Te,ne[0]=Ee,ne[4]=Se,ne[8]=ke;for(var d=0;d<3;++d)K[d]=q[d]+ne[2+4*d]*G;for(var d=0;d<3;++d){for(var I=0,Ae=0;Ae<3;++Ae)I+=ne[d+4*Ae]*K[Ae];ne[12+d]=-I}ne[15]=1},c.getMatrix=function(M,R){this.recalcMatrix(M);var T=this.computedMatrix;if(R){for(var L=0;L<16;++L)R[L]=T[L];return R}return T};var x=[0,0,0];c.rotate=function(M,R,T,L){if(this.angle.move(M,R,T),L){this.recalcMatrix(M);var P=this.computedMatrix;x[0]=P[2],x[1]=P[6],x[2]=P[10];for(var d=this.computedUp,k=this.computedRight,I=this.computedToward,N=0;N<3;++N)P[4*N]=d[N],P[4*N+1]=k[N],P[4*N+2]=I[N];o(P,P,L,x);for(var N=0;N<3;++N)d[N]=P[4*N],k[N]=P[4*N+1];this.up.set(M,d[0],d[1],d[2]),this.right.set(M,k[0],k[1],k[2])}},c.pan=function(M,R,T,L){R=R||0,T=T||0,L=L||0,this.recalcMatrix(M);var P=this.computedMatrix;Math.exp(this.computedRadius[0]);var d=P[1],k=P[5],I=P[9],N=b(d,k,I);d/=N,k/=N,I/=N;var B=P[0],G=P[4],U=P[8],H=B*d+G*k+U*I;B-=d*H,G-=k*H,U-=I*H;var W=b(B,G,U);B/=W,G/=W,U/=W;var V=B*R+d*T,$=G*R+k*T,Z=U*R+I*T;this.center.move(M,V,$,Z);var q=Math.exp(this.computedRadius[0]);q=Math.max(1e-4,q+L),this.radius.set(M,Math.log(q))},c.translate=function(M,R,T,L){this.center.move(M,R||0,T||0,L||0)},c.setMatrix=function(M,R,T,L){var P=1;typeof T=="number"&&(P=T|0),(P<0||P>3)&&(P=1);var d=(P+2)%3;R||(this.recalcMatrix(M),R=this.computedMatrix);var k=R[P],I=R[P+4],N=R[P+8];if(L){var G=Math.abs(k),U=Math.abs(I),H=Math.abs(N),W=Math.max(G,U,H);G===W?(k=k<0?-1:1,I=N=0):H===W?(N=N<0?-1:1,k=I=0):(I=I<0?-1:1,k=N=0)}else{var B=b(k,I,N);k/=B,I/=B,N/=B}var V=R[d],$=R[d+4],Z=R[d+8],q=V*k+$*I+Z*N;V-=k*q,$-=I*q,Z-=N*q;var ae=b(V,$,Z);V/=ae,$/=ae,Z/=ae;var ie=I*Z-N*$,fe=N*V-k*Z,Q=k*$-I*V,J=b(ie,fe,Q);ie/=J,fe/=J,Q/=J,this.center.jump(M,Ne,ze,$e),this.radius.idle(M),this.up.jump(M,k,I,N),this.right.jump(M,V,$,Z);var oe,K;if(P===2){var ne=R[1],ce=R[5],re=R[9],ee=ne*V+ce*$+re*Z,de=ne*ie+ce*fe+re*Q;Ee<0?oe=-Math.PI/2:oe=Math.PI/2,K=Math.atan2(de,ee)}else{var le=R[2],he=R[6],xe=R[10],Ee=le*k+he*I+xe*N,Se=le*V+he*$+xe*Z,ke=le*ie+he*fe+xe*Q;oe=Math.asin(p(Ee)),K=Math.atan2(ke,Se)}this.angle.jump(M,K,oe),this.recalcMatrix(M);var Te=R[2],Ae=R[6],be=R[10],Ie=this.computedMatrix;s(Ie,R);var Ue=Ie[15],Ne=Ie[12]/Ue,ze=Ie[13]/Ue,$e=Ie[14]/Ue,st=Math.exp(this.computedRadius[0]);this.center.jump(M,Ne-Te*st,ze-Ae*st,$e-be*st)},c.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},c.idle=function(M){this.center.idle(M),this.up.idle(M),this.right.idle(M),this.radius.idle(M),this.angle.idle(M)},c.flush=function(M){this.center.flush(M),this.up.flush(M),this.right.flush(M),this.radius.flush(M),this.angle.flush(M)},c.setDistance=function(M,R){R>0&&this.radius.set(M,Math.log(R))},c.lookAt=function(M,R,T,L){this.recalcMatrix(M),R=R||this.computedEye,T=T||this.computedCenter,L=L||this.computedUp;var P=L[0],d=L[1],k=L[2],I=b(P,d,k);if(!(I<1e-6)){P/=I,d/=I,k/=I;var N=R[0]-T[0],B=R[1]-T[1],G=R[2]-T[2],U=b(N,B,G);if(!(U<1e-6)){N/=U,B/=U,G/=U;var H=this.computedRight,W=H[0],V=H[1],$=H[2],Z=P*W+d*V+k*$;W-=Z*P,V-=Z*d,$-=Z*k;var q=b(W,V,$);if(!(q<.01&&(W=d*G-k*B,V=k*N-P*G,$=P*B-d*N,q=b(W,V,$),q<1e-6))){W/=q,V/=q,$/=q,this.up.set(M,P,d,k),this.right.set(M,W,V,$),this.center.set(M,T[0],T[1],T[2]),this.radius.set(M,Math.log(U));var ae=d*$-k*V,ie=k*W-P*$,fe=P*V-d*W,Q=b(ae,ie,fe);ae/=Q,ie/=Q,fe/=Q;var J=P*N+d*B+k*G,oe=W*N+V*B+$*G,K=ae*N+ie*B+fe*G,ne=Math.asin(p(J)),ce=Math.atan2(K,oe),re=this.angle._state,ee=re[re.length-1],de=re[re.length-2];ee=ee%(2*Math.PI);var le=Math.abs(ee+2*Math.PI-ce),he=Math.abs(ee-ce),xe=Math.abs(ee-2*Math.PI-ce);le0?$.pop():new ArrayBuffer(W)}m.mallocArrayBuffer=x;function A(H){return new Uint8Array(x(H),0,H)}m.mallocUint8=A;function M(H){return new Uint16Array(x(2*H),0,H)}m.mallocUint16=M;function R(H){return new Uint32Array(x(4*H),0,H)}m.mallocUint32=R;function T(H){return new Int8Array(x(H),0,H)}m.mallocInt8=T;function L(H){return new Int16Array(x(2*H),0,H)}m.mallocInt16=L;function P(H){return new Int32Array(x(4*H),0,H)}m.mallocInt32=P;function d(H){return new Float32Array(x(4*H),0,H)}m.mallocFloat32=m.mallocFloat=d;function k(H){return new Float64Array(x(8*H),0,H)}m.mallocFloat64=m.mallocDouble=k;function I(H){return h?new Uint8ClampedArray(x(H),0,H):A(H)}m.mallocUint8Clamped=I;function N(H){return f?new BigUint64Array(x(8*H),0,H):null}m.mallocBigUint64=N;function B(H){return u?new BigInt64Array(x(8*H),0,H):null}m.mallocBigInt64=B;function G(H){return new DataView(x(H),0,H)}m.mallocDataView=G;function U(H){H=n.nextPow2(H);var W=n.log2(H),V=E[W];return V.length>0?V.pop():new o(H)}m.mallocBuffer=U,m.clearCache=function(){for(var W=0;W<32;++W)b.UINT8[W].length=0,b.UINT16[W].length=0,b.UINT32[W].length=0,b.INT8[W].length=0,b.INT16[W].length=0,b.INT32[W].length=0,b.FLOAT[W].length=0,b.DOUBLE[W].length=0,b.BIGUINT64[W].length=0,b.BIGINT64[W].length=0,b.UINT8C[W].length=0,p[W].length=0,E[W].length=0}},1731:function(v){"use restrict";v.exports=m;function m(n){this.roots=new Array(n),this.ranks=new Array(n);for(var s=0;s",$="",Z=V.length,q=$.length,ae=U[0]===x||U[0]===R,ie=0,fe=-q;ie>-1&&(ie=H.indexOf(V,ie),!(ie===-1||(fe=H.indexOf($,ie+Z),fe===-1)||fe<=ie));){for(var Q=ie;Q=fe)W[Q]=null,H=H.substr(0,Q)+" "+H.substr(Q+1);else if(W[Q]!==null){var J=W[Q].indexOf(U[0]);J===-1?W[Q]+=U:ae&&(W[Q]=W[Q].substr(0,J+1)+(1+parseInt(W[Q][J+1]))+W[Q].substr(J+2))}var oe=ie+Z,K=H.substr(oe,fe-oe),ne=K.indexOf(V);ne!==-1?ie=ne:ie=fe+q}return W}function P(G,U,H){for(var W=U.textAlign||"start",V=U.textBaseline||"alphabetic",$=[1<<30,1<<30],Z=[0,0],q=G.length,ae=0;ae/g,` +*/var m="",a;v.exports=n;function n(s,o){if(typeof s!="string")throw new TypeError("expected a string");if(o===1)return s;if(o===2)return s+s;var h=s.length*o;if(a!==s||typeof a>"u")a=s,m="";else if(m.length>=h)return m.substr(0,h);for(;h>m.length&&o>1;)o&1&&(m+=s),o>>=1,s+=s;return m+=s,m=m.substr(0,h),m}},8161:function(v,m,a){v.exports=a.g.performance&&a.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(v){v.exports=m;function m(a){for(var n=a.length,s=a[a.length-1],o=n,h=n-2;h>=0;--h){var f=s,u=a[h];s=f+u;var b=s-f,p=u-b;p&&(a[--o]=s,s=p)}for(var E=0,h=o;h0){if(G<=0)return U;H=B+G}else if(B<0){if(G>=0)return U;H=-(B+G)}else return U;var W=b*H;return U>=W||U<=-W?U:A(k,I,N)},function(k,I,N,B){var G=k[0]-B[0],U=I[0]-B[0],H=N[0]-B[0],W=k[1]-B[1],V=I[1]-B[1],$=N[1]-B[1],Z=k[2]-B[2],q=I[2]-B[2],ae=N[2]-B[2],ie=U*$,fe=H*V,Q=H*W,J=G*$,oe=G*V,K=U*W,ne=Z*(ie-fe)+q*(Q-J)+ae*(oe-K),ce=(Math.abs(ie)+Math.abs(fe))*Math.abs(Z)+(Math.abs(Q)+Math.abs(J))*Math.abs(q)+(Math.abs(oe)+Math.abs(K))*Math.abs(ae),re=p*ce;return ne>re||-ne>re?ne:M(k,I,N,B)}];function T(d){var k=R[d.length];return k||(k=R[d.length]=y(d.length)),k.apply(void 0,d)}function L(d,k,I,N,B,G,U){return function(W,V,$,Z,q){switch(arguments.length){case 0:case 1:return 0;case 2:return N(W,V);case 3:return B(W,V,$);case 4:return G(W,V,$,Z);case 5:return U(W,V,$,Z,q)}for(var ae=new Array(arguments.length),ie=0;ie0&&E>0||p<0&&E<0)return!1;var g=n(u,h,f),c=n(b,h,f);return g>0&&c>0||g<0&&c<0?!1:p===0&&E===0&&g===0&&c===0?s(h,f,u,b):!0}},4078:function(v){v.exports=a;function m(n,s){var o=n+s,h=o-n,f=o-h,u=s-h,b=n-f,p=b+u;return p?[p,o]:[o]}function a(n,s){var o=n.length|0,h=s.length|0;if(o===1&&h===1)return m(n[0],-s[0]);var f=o+h,u=new Array(f),b=0,p=0,E=0,g=Math.abs,c=n[p],y=g(c),A=-s[E],M=g(A),R,T;y=h?(R=c,p+=1,p=h?(R=c,p+=1,p"u"&&(R=f(y));var T=y.length;if(T===0||R<1)return{cells:[],vertexIds:[],vertexWeights:[]};var L=u(A,+M),P=b(y,R),d=p(P,A,L,+M),k=E(P,A.length|0),I=h(R)(y,P.data,k,L),N=g(P),B=[].slice.call(d.data,0,d.shape[0]);return s.free(L),s.free(P.data),s.free(d.data),s.free(k),{cells:I,vertexIds:N,vertexWeights:B}}},1168:function(v){v.exports=a;var m=[function(){function s(o,h,f,u){for(var b=o.length,p=[],E=0;E>1,A=f[2*y+1];if(A===E)return y;E>1,A=f[2*y+1];if(A===E)return y;E>1,A=f[2*y+1];if(A===E)return y;E0)-(o<0)},m.abs=function(o){var h=o>>a-1;return(o^h)-h},m.min=function(o,h){return h^(o^h)&-(o65535)<<4,o>>>=h,f=(o>255)<<3,o>>>=f,h|=f,f=(o>15)<<2,o>>>=f,h|=f,f=(o>3)<<1,o>>>=f,h|=f,h|o>>1},m.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},m.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function n(o){var h=32;return o&=-o,o&&h--,o&65535&&(h-=16),o&16711935&&(h-=8),o&252645135&&(h-=4),o&858993459&&(h-=2),o&1431655765&&(h-=1),h}m.countTrailingZeros=n,m.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},m.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},m.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var s=new Array(256);(function(o){for(var h=0;h<256;++h){var f=h,u=h,b=7;for(f>>>=1;f;f>>>=1)u<<=1,u|=f&1,--b;o[h]=u<>>8&255]<<16|s[o>>>16&255]<<8|s[o>>>24&255]},m.interleave2=function(o,h){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,h&=65535,h=(h|h<<8)&16711935,h=(h|h<<4)&252645135,h=(h|h<<2)&858993459,h=(h|h<<1)&1431655765,o|h<<1},m.deinterleave2=function(o,h){return o=o>>>h&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},m.interleave3=function(o,h,f){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,o|=h<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,o|f<<2},m.deinterleave3=function(o,h){return o=o>>>h&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},m.nextCombination=function(o){var h=o|o-1;return h+1|(~h&-~h)-1>>>n(o)+1}},6656:function(v,m,a){"use restrict";var n=a(9392),s=a(9521);function o(d){for(var k=0,I=Math.max,N=0,B=d.length;N>1,U=u(d[G],k);U<=0?(U===0&&(B=G),I=G+1):U>0&&(N=G-1)}return B}m.findCell=g;function c(d,k){for(var I=new Array(d.length),N=0,B=I.length;N=d.length||u(d[ae],G)!==0););}return I}m.incidence=c;function y(d,k){if(!k)return c(E(M(d,0)),d);for(var I=new Array(k),N=0;N>>V&1&&W.push(B[V]);k.push(W)}return p(k)}m.explode=A;function M(d,k){if(k<0)return[];for(var I=[],N=(1<>1:(Q>>1)-1}function N(Q){for(var J=k(Q);;){var oe=J,K=2*Q+1,ne=2*(Q+1),ce=Q;if(K0;){var oe=I(Q);if(oe>=0){var K=k(oe);if(J0){var Q=W[0];return d(0,Z-1),Z-=1,N(0),Q}return-1}function U(Q,J){var oe=W[Q];return y[oe]===J?Q:(y[oe]=-1/0,B(Q),G(),y[oe]=J,Z+=1,B(Z-1))}function H(Q){if(!A[Q]){A[Q]=!0;var J=g[Q],oe=c[Q];g[oe]>=0&&(g[oe]=J),c[J]>=0&&(c[J]=oe),V[J]>=0&&U(V[J],P(J)),V[oe]>=0&&U(V[oe],P(oe))}}for(var W=[],V=new Array(p),M=0;M>1;M>=0;--M)N(M);for(;;){var q=G();if(q<0||y[q]>b)break;H(q)}for(var ae=[],M=0;M=0&&oe>=0&&J!==oe){var K=V[J],ne=V[oe];K!==ne&&fe.push([K,ne])}}),s.unique(s.normalize(fe)),{positions:ae,edges:fe}}},6638:function(v,m,a){v.exports=o;var n=a(417);function s(h,f){var u,b;if(f[0][0]f[1][0])u=f[1],b=f[0];else{var p=Math.min(h[0][1],h[1][1]),E=Math.max(h[0][1],h[1][1]),g=Math.min(f[0][1],f[1][1]),c=Math.max(f[0][1],f[1][1]);return Ec?p-c:E-c}var y,A;h[0][1]f[1][0])u=f[1],b=f[0];else return s(f,h);var p,E;if(h[0][0]h[1][0])p=h[1],E=h[0];else return-s(h,f);var g=n(u,b,E),c=n(u,b,p);if(g<0){if(c<=0)return g}else if(g>0){if(c>=0)return g}else if(c)return c;if(g=n(E,p,b),c=n(E,p,u),g<0){if(c<=0)return g}else if(g>0){if(c>=0)return g}else if(c)return c;return b[0]-E[0]}},4385:function(v,m,a){v.exports=c;var n=a(5070),s=a(7080),o=a(417),h=a(6638);function f(y,A,M){this.slabs=y,this.coordinates=A,this.horizontal=M}var u=f.prototype;function b(y,A){return y.y-A}function p(y,A){for(var M=null;y;){var R=y.key,T,L;R[0][0]0)if(A[0]!==R[1][0])M=y,y=y.right;else{var d=p(y.right,A);if(d)return d;y=y.left}else{if(A[0]!==R[1][0])return y;var d=p(y.right,A);if(d)return d;y=y.left}}return M}u.castUp=function(y){var A=n.le(this.coordinates,y[0]);if(A<0)return-1;this.slabs[A];var M=p(this.slabs[A],y),R=-1;if(M&&(R=M.value),this.coordinates[A]===y[0]){var T=null;if(M&&(T=M.key),A>0){var L=p(this.slabs[A-1],y);L&&(T?h(L.key,T)>0&&(T=L.key,R=L.value):(R=L.value,T=L.key))}var P=this.horizontal[A];if(P.length>0){var d=n.ge(P,y[1],b);if(d=P.length)return R;k=P[d]}}if(k.start)if(T){var I=o(T[0],T[1],[y[0],k.y]);T[0][0]>T[1][0]&&(I=-I),I>0&&(R=k.index)}else R=k.index;else k.y!==y[1]&&(R=k.index)}}}return R};function E(y,A,M,R){this.y=y,this.index=A,this.start=M,this.closed=R}function g(y,A,M,R){this.x=y,this.segment=A,this.create=M,this.index=R}function c(y){for(var A=y.length,M=2*A,R=new Array(M),T=0;T1&&(A=1);for(var M=1-A,R=p.length,T=new Array(R),L=0;L0||y>0&&T<0){var L=h(A,T,M,y);g.push(L),c.push(L.slice())}T<0?c.push(M.slice()):T>0?g.push(M.slice()):(g.push(M.slice()),c.push(M.slice())),y=T}return{positive:g,negative:c}}function u(p,E){for(var g=[],c=o(p[p.length-1],E),y=p[p.length-1],A=p[0],M=0;M0||c>0&&R<0)&&g.push(h(y,R,A,c)),R>=0&&g.push(A.slice()),c=R}return g}function b(p,E){for(var g=[],c=o(p[p.length-1],E),y=p[p.length-1],A=p[0],M=0;M0||c>0&&R<0)&&g.push(h(y,R,A,c)),R<=0&&g.push(A.slice()),c=R}return g}},8974:function(v,m,a){var n;(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(p){return f(b(p),arguments)}function h(p,E){return o.apply(null,[p].concat(E||[]))}function f(p,E){var g=1,c=p.length,y,A="",M,R,T,L,P,d,k,I;for(M=0;M=0),T.type){case"b":y=parseInt(y,10).toString(2);break;case"c":y=String.fromCharCode(parseInt(y,10));break;case"d":case"i":y=parseInt(y,10);break;case"j":y=JSON.stringify(y,null,T.width?parseInt(T.width):0);break;case"e":y=T.precision?parseFloat(y).toExponential(T.precision):parseFloat(y).toExponential();break;case"f":y=T.precision?parseFloat(y).toFixed(T.precision):parseFloat(y);break;case"g":y=T.precision?String(Number(y.toPrecision(T.precision))):parseFloat(y);break;case"o":y=(parseInt(y,10)>>>0).toString(8);break;case"s":y=String(y),y=T.precision?y.substring(0,T.precision):y;break;case"t":y=String(!!y),y=T.precision?y.substring(0,T.precision):y;break;case"T":y=Object.prototype.toString.call(y).slice(8,-1).toLowerCase(),y=T.precision?y.substring(0,T.precision):y;break;case"u":y=parseInt(y,10)>>>0;break;case"v":y=y.valueOf(),y=T.precision?y.substring(0,T.precision):y;break;case"x":y=(parseInt(y,10)>>>0).toString(16);break;case"X":y=(parseInt(y,10)>>>0).toString(16).toUpperCase();break}s.json.test(T.type)?A+=y:(s.number.test(T.type)&&(!k||T.sign)?(I=k?"+":"-",y=y.toString().replace(s.sign,"")):I="",P=T.pad_char?T.pad_char==="0"?"0":T.pad_char.charAt(1):" ",d=T.width-(I+y).length,L=T.width&&d>0?P.repeat(d):"",A+=T.align?I+y+L:P==="0"?I+L+y:L+I+y)}return A}var u=Object.create(null);function b(p){if(u[p])return u[p];for(var E=p,g,c=[],y=0;E;){if((g=s.text.exec(E))!==null)c.push(g[0]);else if((g=s.modulo.exec(E))!==null)c.push("%");else if((g=s.placeholder.exec(E))!==null){if(g[2]){y|=1;var A=[],M=g[2],R=[];if((R=s.key.exec(M))!==null)for(A.push(R[1]);(M=M.substring(R[0].length))!=="";)if((R=s.key_access.exec(M))!==null)A.push(R[1]);else if((R=s.index_access.exec(M))!==null)A.push(R[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");g[2]=A}else y|=2;if(y===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");c.push({placeholder:g[0],param_no:g[1],keys:g[2],sign:g[3],pad_char:g[4],align:g[5],width:g[6],precision:g[7],type:g[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");E=E.substring(g[0].length)}return u[p]=c}m.sprintf=o,m.vsprintf=h,typeof window<"u"&&(window.sprintf=o,window.vsprintf=h,n=(function(){return{sprintf:o,vsprintf:h}}).call(m,a,m,v),n!==void 0&&(v.exports=n))})()},4162:function(v,m,a){v.exports=b;var n=a(9284),s=a(9584),o={"2d":function(p,E,g){var c=p({order:E,scalarArguments:3,getters:g==="generic"?[0]:void 0,phase:function(A,M,R,T){return A>T|0},vertex:function(A,M,R,T,L,P,d,k,I,N,B,G,U){var H=(d<<0)+(k<<1)+(I<<2)+(N<<3)|0;if(!(H===0||H===15))switch(H){case 0:B.push([A-.5,M-.5]);break;case 1:B.push([A-.25-.25*(T+R-2*U)/(R-T),M-.25-.25*(L+R-2*U)/(R-L)]);break;case 2:B.push([A-.75-.25*(-T-R+2*U)/(T-R),M-.25-.25*(P+T-2*U)/(T-P)]);break;case 3:B.push([A-.5,M-.5-.5*(L+R+P+T-4*U)/(R-L+T-P)]);break;case 4:B.push([A-.25-.25*(P+L-2*U)/(L-P),M-.75-.25*(-L-R+2*U)/(L-R)]);break;case 5:B.push([A-.5-.5*(T+R+P+L-4*U)/(R-T+L-P),M-.5]);break;case 6:B.push([A-.5-.25*(-T-R+P+L)/(T-R+L-P),M-.5-.25*(-L-R+P+T)/(L-R+T-P)]);break;case 7:B.push([A-.75-.25*(P+L-2*U)/(L-P),M-.75-.25*(P+T-2*U)/(T-P)]);break;case 8:B.push([A-.75-.25*(-P-L+2*U)/(P-L),M-.75-.25*(-P-T+2*U)/(P-T)]);break;case 9:B.push([A-.5-.25*(T+R+-P-L)/(R-T+P-L),M-.5-.25*(L+R+-P-T)/(R-L+P-T)]);break;case 10:B.push([A-.5-.5*(-T-R+-P-L+4*U)/(T-R+P-L),M-.5]);break;case 11:B.push([A-.25-.25*(-P-L+2*U)/(P-L),M-.75-.25*(L+R-2*U)/(R-L)]);break;case 12:B.push([A-.5,M-.5-.5*(-L-R+-P-T+4*U)/(L-R+P-T)]);break;case 13:B.push([A-.75-.25*(T+R-2*U)/(R-T),M-.25-.25*(-P-T+2*U)/(P-T)]);break;case 14:B.push([A-.25-.25*(-T-R+2*U)/(T-R),M-.25-.25*(-L-R+2*U)/(L-R)]);break;case 15:B.push([A-.5,M-.5]);break}},cell:function(A,M,R,T,L,P,d,k,I){L?k.push([A,M]):k.push([M,A])}});return function(y,A){var M=[],R=[];return c(y,M,R,A),{positions:M,cells:R}}}};function h(p,E){var g=p.length+"d",c=o[g];if(c)return c(n,p,E)}function f(p,E){for(var g=s(p,E),c=g.length,y=new Array(c),A=new Array(c),M=0;M0&&(R+=.02);for(var L=new Float32Array(M),P=0,d=-.5*R,T=0;TMath.max(T,L)?P[2]=1:T>Math.max(R,L)?P[0]=1:P[1]=1;for(var d=0,k=0,I=0;I<3;++I)d+=M[I]*M[I],k+=P[I]*M[I];for(var I=0;I<3;++I)P[I]-=k/d*M[I];return f(P,P),P}function g(M,R,T,L,P,d,k,I){this.center=n(T),this.up=n(L),this.right=n(P),this.radius=n([d]),this.angle=n([k,I]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(M,R),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var N=0;N<16;++N)this.computedMatrix[N]=.5;this.recalcMatrix(0)}var c=g.prototype;c.setDistanceLimits=function(M,R){M>0?M=Math.log(M):M=-1/0,R>0?R=Math.log(R):R=1/0,R=Math.max(R,M),this.radius.bounds[0][0]=M,this.radius.bounds[1][0]=R},c.getDistanceLimits=function(M){var R=this.radius.bounds[0];return M?(M[0]=Math.exp(R[0][0]),M[1]=Math.exp(R[1][0]),M):[Math.exp(R[0][0]),Math.exp(R[1][0])]},c.recalcMatrix=function(M){this.center.curve(M),this.up.curve(M),this.right.curve(M),this.radius.curve(M),this.angle.curve(M);for(var R=this.computedUp,T=this.computedRight,L=0,P=0,d=0;d<3;++d)P+=R[d]*T[d],L+=R[d]*R[d];for(var k=Math.sqrt(L),I=0,d=0;d<3;++d)T[d]-=R[d]*P/L,I+=T[d]*T[d],R[d]/=k;for(var N=Math.sqrt(I),d=0;d<3;++d)T[d]/=N;var B=this.computedToward;h(B,R,T),f(B,B);for(var G=Math.exp(this.computedRadius[0]),U=this.computedAngle[0],H=this.computedAngle[1],W=Math.cos(U),V=Math.sin(U),$=Math.cos(H),Z=Math.sin(H),q=this.computedCenter,ae=W*$,ie=V*$,fe=Z,Q=-W*Z,J=-V*Z,oe=$,K=this.computedEye,ne=this.computedMatrix,d=0;d<3;++d){var ce=ae*T[d]+ie*B[d]+fe*R[d];ne[4*d+1]=Q*T[d]+J*B[d]+oe*R[d],ne[4*d+2]=ce,ne[4*d+3]=0}var re=ne[1],ee=ne[5],de=ne[9],le=ne[2],he=ne[6],xe=ne[10],Ee=ee*xe-de*he,Se=de*le-re*xe,ke=re*he-ee*le,Te=b(Ee,Se,ke);Ee/=Te,Se/=Te,ke/=Te,ne[0]=Ee,ne[4]=Se,ne[8]=ke;for(var d=0;d<3;++d)K[d]=q[d]+ne[2+4*d]*G;for(var d=0;d<3;++d){for(var I=0,Ae=0;Ae<3;++Ae)I+=ne[d+4*Ae]*K[Ae];ne[12+d]=-I}ne[15]=1},c.getMatrix=function(M,R){this.recalcMatrix(M);var T=this.computedMatrix;if(R){for(var L=0;L<16;++L)R[L]=T[L];return R}return T};var y=[0,0,0];c.rotate=function(M,R,T,L){if(this.angle.move(M,R,T),L){this.recalcMatrix(M);var P=this.computedMatrix;y[0]=P[2],y[1]=P[6],y[2]=P[10];for(var d=this.computedUp,k=this.computedRight,I=this.computedToward,N=0;N<3;++N)P[4*N]=d[N],P[4*N+1]=k[N],P[4*N+2]=I[N];o(P,P,L,y);for(var N=0;N<3;++N)d[N]=P[4*N],k[N]=P[4*N+1];this.up.set(M,d[0],d[1],d[2]),this.right.set(M,k[0],k[1],k[2])}},c.pan=function(M,R,T,L){R=R||0,T=T||0,L=L||0,this.recalcMatrix(M);var P=this.computedMatrix;Math.exp(this.computedRadius[0]);var d=P[1],k=P[5],I=P[9],N=b(d,k,I);d/=N,k/=N,I/=N;var B=P[0],G=P[4],U=P[8],H=B*d+G*k+U*I;B-=d*H,G-=k*H,U-=I*H;var W=b(B,G,U);B/=W,G/=W,U/=W;var V=B*R+d*T,$=G*R+k*T,Z=U*R+I*T;this.center.move(M,V,$,Z);var q=Math.exp(this.computedRadius[0]);q=Math.max(1e-4,q+L),this.radius.set(M,Math.log(q))},c.translate=function(M,R,T,L){this.center.move(M,R||0,T||0,L||0)},c.setMatrix=function(M,R,T,L){var P=1;typeof T=="number"&&(P=T|0),(P<0||P>3)&&(P=1);var d=(P+2)%3;R||(this.recalcMatrix(M),R=this.computedMatrix);var k=R[P],I=R[P+4],N=R[P+8];if(L){var G=Math.abs(k),U=Math.abs(I),H=Math.abs(N),W=Math.max(G,U,H);G===W?(k=k<0?-1:1,I=N=0):H===W?(N=N<0?-1:1,k=I=0):(I=I<0?-1:1,k=N=0)}else{var B=b(k,I,N);k/=B,I/=B,N/=B}var V=R[d],$=R[d+4],Z=R[d+8],q=V*k+$*I+Z*N;V-=k*q,$-=I*q,Z-=N*q;var ae=b(V,$,Z);V/=ae,$/=ae,Z/=ae;var ie=I*Z-N*$,fe=N*V-k*Z,Q=k*$-I*V,J=b(ie,fe,Q);ie/=J,fe/=J,Q/=J,this.center.jump(M,Ne,ze,$e),this.radius.idle(M),this.up.jump(M,k,I,N),this.right.jump(M,V,$,Z);var oe,K;if(P===2){var ne=R[1],ce=R[5],re=R[9],ee=ne*V+ce*$+re*Z,de=ne*ie+ce*fe+re*Q;Ee<0?oe=-Math.PI/2:oe=Math.PI/2,K=Math.atan2(de,ee)}else{var le=R[2],he=R[6],xe=R[10],Ee=le*k+he*I+xe*N,Se=le*V+he*$+xe*Z,ke=le*ie+he*fe+xe*Q;oe=Math.asin(p(Ee)),K=Math.atan2(ke,Se)}this.angle.jump(M,K,oe),this.recalcMatrix(M);var Te=R[2],Ae=R[6],be=R[10],Ie=this.computedMatrix;s(Ie,R);var Ue=Ie[15],Ne=Ie[12]/Ue,ze=Ie[13]/Ue,$e=Ie[14]/Ue,st=Math.exp(this.computedRadius[0]);this.center.jump(M,Ne-Te*st,ze-Ae*st,$e-be*st)},c.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},c.idle=function(M){this.center.idle(M),this.up.idle(M),this.right.idle(M),this.radius.idle(M),this.angle.idle(M)},c.flush=function(M){this.center.flush(M),this.up.flush(M),this.right.flush(M),this.radius.flush(M),this.angle.flush(M)},c.setDistance=function(M,R){R>0&&this.radius.set(M,Math.log(R))},c.lookAt=function(M,R,T,L){this.recalcMatrix(M),R=R||this.computedEye,T=T||this.computedCenter,L=L||this.computedUp;var P=L[0],d=L[1],k=L[2],I=b(P,d,k);if(!(I<1e-6)){P/=I,d/=I,k/=I;var N=R[0]-T[0],B=R[1]-T[1],G=R[2]-T[2],U=b(N,B,G);if(!(U<1e-6)){N/=U,B/=U,G/=U;var H=this.computedRight,W=H[0],V=H[1],$=H[2],Z=P*W+d*V+k*$;W-=Z*P,V-=Z*d,$-=Z*k;var q=b(W,V,$);if(!(q<.01&&(W=d*G-k*B,V=k*N-P*G,$=P*B-d*N,q=b(W,V,$),q<1e-6))){W/=q,V/=q,$/=q,this.up.set(M,P,d,k),this.right.set(M,W,V,$),this.center.set(M,T[0],T[1],T[2]),this.radius.set(M,Math.log(U));var ae=d*$-k*V,ie=k*W-P*$,fe=P*V-d*W,Q=b(ae,ie,fe);ae/=Q,ie/=Q,fe/=Q;var J=P*N+d*B+k*G,oe=W*N+V*B+$*G,K=ae*N+ie*B+fe*G,ne=Math.asin(p(J)),ce=Math.atan2(K,oe),re=this.angle._state,ee=re[re.length-1],de=re[re.length-2];ee=ee%(2*Math.PI);var le=Math.abs(ee+2*Math.PI-ce),he=Math.abs(ee-ce),xe=Math.abs(ee-2*Math.PI-ce);le0?$.pop():new ArrayBuffer(W)}m.mallocArrayBuffer=y;function A(H){return new Uint8Array(y(H),0,H)}m.mallocUint8=A;function M(H){return new Uint16Array(y(2*H),0,H)}m.mallocUint16=M;function R(H){return new Uint32Array(y(4*H),0,H)}m.mallocUint32=R;function T(H){return new Int8Array(y(H),0,H)}m.mallocInt8=T;function L(H){return new Int16Array(y(2*H),0,H)}m.mallocInt16=L;function P(H){return new Int32Array(y(4*H),0,H)}m.mallocInt32=P;function d(H){return new Float32Array(y(4*H),0,H)}m.mallocFloat32=m.mallocFloat=d;function k(H){return new Float64Array(y(8*H),0,H)}m.mallocFloat64=m.mallocDouble=k;function I(H){return h?new Uint8ClampedArray(y(H),0,H):A(H)}m.mallocUint8Clamped=I;function N(H){return f?new BigUint64Array(y(8*H),0,H):null}m.mallocBigUint64=N;function B(H){return u?new BigInt64Array(y(8*H),0,H):null}m.mallocBigInt64=B;function G(H){return new DataView(y(H),0,H)}m.mallocDataView=G;function U(H){H=n.nextPow2(H);var W=n.log2(H),V=E[W];return V.length>0?V.pop():new o(H)}m.mallocBuffer=U,m.clearCache=function(){for(var W=0;W<32;++W)b.UINT8[W].length=0,b.UINT16[W].length=0,b.UINT32[W].length=0,b.INT8[W].length=0,b.INT16[W].length=0,b.INT32[W].length=0,b.FLOAT[W].length=0,b.DOUBLE[W].length=0,b.BIGUINT64[W].length=0,b.BIGINT64[W].length=0,b.UINT8C[W].length=0,p[W].length=0,E[W].length=0}},1731:function(v){"use restrict";v.exports=m;function m(n){this.roots=new Array(n),this.ranks=new Array(n);for(var s=0;s",$="",Z=V.length,q=$.length,ae=U[0]===y||U[0]===R,ie=0,fe=-q;ie>-1&&(ie=H.indexOf(V,ie),!(ie===-1||(fe=H.indexOf($,ie+Z),fe===-1)||fe<=ie));){for(var Q=ie;Q=fe)W[Q]=null,H=H.substr(0,Q)+" "+H.substr(Q+1);else if(W[Q]!==null){var J=W[Q].indexOf(U[0]);J===-1?W[Q]+=U:ae&&(W[Q]=W[Q].substr(0,J+1)+(1+parseInt(W[Q][J+1]))+W[Q].substr(J+2))}var oe=ie+Z,K=H.substr(oe,fe-oe),ne=K.indexOf(V);ne!==-1?ie=ne:ie=fe+q}return W}function P(G,U,H){for(var W=U.textAlign||"start",V=U.textBaseline||"alphabetic",$=[1<<30,1<<30],Z=[0,0],q=G.length,ae=0;ae/g,` `):H=H.replace(/\/g," ");var Z="",q=[];for(ee=0;ee-1?parseInt($e[1+at]):0,rt=nt>-1?parseInt(st[1+nt]):0;mt!==rt&&(vt=vt.replace(ke(),"?px "),he*=Math.pow(.75,rt-mt),vt=vt.replace("?px ",ke())),le+=.25*J*(rt-mt)}if($.superscripts===!0){var lt=$e.indexOf(x),dt=st.indexOf(x),wt=lt>-1?parseInt($e[1+lt]):0,et=dt>-1?parseInt(st[1+dt]):0;wt!==et&&(vt=vt.replace(ke(),"?px "),he*=Math.pow(.75,et-wt),vt=vt.replace("?px ",ke())),le-=.25*J*(et-wt)}if($.bolds===!0){var Be=$e.indexOf(p)>-1,Ye=st.indexOf(p)>-1;!Be&&Ye&&(Ke?vt=vt.replace("italic ","italic bold "):vt="bold "+vt),Be&&!Ye&&(vt=vt.replace("bold ",""))}if($.italics===!0){var Ke=$e.indexOf(g)>-1,We=st.indexOf(g)>-1;!Ke&&We&&(vt="italic "+vt),Ke&&!We&&(vt=vt.replace("italic ",""))}U.font=vt}for(re=0;re0&&(V=W.size),W.lineSpacing&&W.lineSpacing>0&&($=W.lineSpacing),W.styletags&&W.styletags.breaklines&&(Z.breaklines=!!W.styletags.breaklines),W.styletags&&W.styletags.bolds&&(Z.bolds=!!W.styletags.bolds),W.styletags&&W.styletags.italics&&(Z.italics=!!W.styletags.italics),W.styletags&&W.styletags.subscripts&&(Z.subscripts=!!W.styletags.subscripts),W.styletags&&W.styletags.superscripts&&(Z.superscripts=!!W.styletags.superscripts)),H.font=[W.fontStyle,W.fontVariant,W.fontWeight,V+"px",W.font].filter(function(ae){return ae}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var q=d(U,H,G,V,$,Z);return N(q,W,V)}},5346:function(v){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function a(k){k.permitHostObjects___&&k.permitHostObjects___(a)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=a);var n=!1;if(typeof WeakMap=="function"){var s=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var o=new s,h=Object.freeze({});if(o.set(h,1),o.get(h)!==1)n=!0;else{v.exports=WeakMap;return}}}var f=Object.getOwnPropertyNames,u=Object.defineProperty,b=Object.isExtensible,p="weakmap:",E=p+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var g=new ArrayBuffer(25),c=new Uint8Array(g);crypto.getRandomValues(c),E=p+"rand:"+Array.prototype.map.call(c,function(k){return(k%36).toString(36)}).join("")+"___"}function x(k){return!(k.substr(0,p.length)==p&&k.substr(k.length-3)==="___")}if(u(Object,"getOwnPropertyNames",{value:function(I){return f(I).filter(x)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;u(Object,"getPropertyNames",{value:function(I){return A(I).filter(x)}})}function M(k){if(k!==Object(k))throw new TypeError("Not an object: "+k);var I=k[E];if(I&&I.key===k)return I;if(b(k)){I={key:k};try{return u(k,E,{value:I,writable:!1,enumerable:!1,configurable:!1}),I}catch{return}}}(function(){var k=Object.freeze;u(Object,"freeze",{value:function(G){return M(G),k(G)}});var I=Object.seal;u(Object,"seal",{value:function(G){return M(G),I(G)}});var N=Object.preventExtensions;u(Object,"preventExtensions",{value:function(G){return M(G),N(G)}})})();function R(k){return k.prototype=null,Object.freeze(k)}var T=!1;function L(){!T&&typeof console<"u"&&(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var P=0,d=function(){this instanceof d||L();var k=[],I=[],N=P++;function B(W,V){var $,Z=M(W);return Z?N in Z?Z[N]:V:($=k.indexOf(W),$>=0?I[$]:V)}function G(W){var V=M(W);return V?N in V:k.indexOf(W)>=0}function U(W,V){var $,Z=M(W);return Z?Z[N]=V:($=k.indexOf(W),$>=0?I[$]=V:($=k.length,I[$]=V,k[$]=W)),this}function H(W){var V=M(W),$,Z;return V?N in V&&delete V[N]:($=k.indexOf(W),$<0?!1:(Z=k.length-1,k[$]=void 0,I[$]=I[Z],k[$]=k[Z],k.length=Z,I.length=Z,!0))}return Object.create(d.prototype,{get___:{value:R(B)},has___:{value:R(G)},set___:{value:R(U)},delete___:{value:R(H)}})};d.prototype=Object.create(Object.prototype,{get:{value:function(I,N){return this.get___(I,N)},writable:!0,configurable:!0},has:{value:function(I){return this.has___(I)},writable:!0,configurable:!0},set:{value:function(I,N){return this.set___(I,N)},writable:!0,configurable:!0},delete:{value:function(I){return this.delete___(I)},writable:!0,configurable:!0}}),typeof s=="function"?function(){n&&typeof Proxy<"u"&&(Proxy=void 0);function k(){this instanceof d||L();var I=new s,N=void 0,B=!1;function G(V,$){return N?I.has(V)?I.get(V):N.get___(V,$):I.get(V,$)}function U(V){return I.has(V)||(N?N.has___(V):!1)}var H;n?H=function(V,$){return I.set(V,$),I.has(V)||(N||(N=new d),N.set(V,$)),this}:H=function(V,$){if(B)try{I.set(V,$)}catch{N||(N=new d),N.set___(V,$)}else I.set(V,$);return this};function W(V){var $=!!I.delete(V);return N&&N.delete___(V)||$}return Object.create(d.prototype,{get___:{value:R(G)},has___:{value:R(U)},set___:{value:R(H)},delete___:{value:R(W)},permitHostObjects___:{value:R(function(V){if(V===a)B=!0;else throw new Error("bogus call to permitHostObjects___")})}})}k.prototype=d.prototype,v.exports=k,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),v.exports=d)})()},9222:function(v,m,a){var n=a(7178);v.exports=s;function s(){var o={};return function(h){if((typeof h!="object"||h===null)&&typeof h!="function")throw new Error("Weakmap-shim: Key must be object");var f=h.valueOf(o);return f&&f.identity===o?f:n(h,o)}}},7178:function(v){v.exports=m;function m(a,n){var s={identity:n},o=a.valueOf;return Object.defineProperty(a,"valueOf",{value:function(h){return h!==n?o.apply(this,arguments):s},writable:!0}),s}},4037:function(v,m,a){var n=a(9222);v.exports=s;function s(){var o=n();return{get:function(h,f){var u=o(h);return u.hasOwnProperty("value")?u.value:f},set:function(h,f){return o(h).value=f,this},has:function(h){return"value"in o(h)},delete:function(h){return delete o(h).value}}}},6183:function(v){function m(){return function(f,u,b,p,E,g){var c=f[0],x=b[0],A=[0],M=x;p|=0;var R=0,T=x;for(R=0;R=0!=P>=0&&E.push(A[0]+.5+.5*(L+P)/(L-P))}p+=T,++A[0]}}}function a(){return m()}var n=a;function s(f){var u={};return function(p,E,g){var c=p.dtype,x=p.order,A=[c,x.join()].join(),M=u[A];return M||(u[A]=M=f([c,x])),M(p.shape.slice(0),p.data,p.stride,p.offset|0,E,g)}}function o(f){return s(n.bind(void 0,f))}function h(f){return o({funcName:f.funcName})}v.exports=h({funcName:"zeroCrossings"})},9584:function(v,m,a){v.exports=s;var n=a(6183);function s(o,h){var f=[];return h=+h||0,n(o.hi(o.shape[0]-1),f,h),f}},6601:function(){}},i={};function C(v){var m=i[v];if(m!==void 0)return m.exports;var a=i[v]={id:v,loaded:!1,exports:{}};return S[v].call(a.exports,a,a.exports,C),a.loaded=!0,a.exports}(function(){C.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){C.nmd=function(v){return v.paths=[],v.children||(v.children=[]),v}}();var w=C(7386);return w}()})},33576:function(D,O,t){/*! +`),Q=fe.length,J=Math.round(V*W),oe=W,K=W*2,ne=0,ce=Q*J+K;G.height-1?parseInt($e[1+at]):0,rt=nt>-1?parseInt(st[1+nt]):0;mt!==rt&&(vt=vt.replace(ke(),"?px "),he*=Math.pow(.75,rt-mt),vt=vt.replace("?px ",ke())),le+=.25*J*(rt-mt)}if($.superscripts===!0){var lt=$e.indexOf(y),dt=st.indexOf(y),wt=lt>-1?parseInt($e[1+lt]):0,et=dt>-1?parseInt(st[1+dt]):0;wt!==et&&(vt=vt.replace(ke(),"?px "),he*=Math.pow(.75,et-wt),vt=vt.replace("?px ",ke())),le-=.25*J*(et-wt)}if($.bolds===!0){var Be=$e.indexOf(p)>-1,Ye=st.indexOf(p)>-1;!Be&&Ye&&(Ze?vt=vt.replace("italic ","italic bold "):vt="bold "+vt),Be&&!Ye&&(vt=vt.replace("bold ",""))}if($.italics===!0){var Ze=$e.indexOf(g)>-1,We=st.indexOf(g)>-1;!Ze&&We&&(vt="italic "+vt),Ze&&!We&&(vt=vt.replace("italic ",""))}U.font=vt}for(re=0;re0&&(V=W.size),W.lineSpacing&&W.lineSpacing>0&&($=W.lineSpacing),W.styletags&&W.styletags.breaklines&&(Z.breaklines=!!W.styletags.breaklines),W.styletags&&W.styletags.bolds&&(Z.bolds=!!W.styletags.bolds),W.styletags&&W.styletags.italics&&(Z.italics=!!W.styletags.italics),W.styletags&&W.styletags.subscripts&&(Z.subscripts=!!W.styletags.subscripts),W.styletags&&W.styletags.superscripts&&(Z.superscripts=!!W.styletags.superscripts)),H.font=[W.fontStyle,W.fontVariant,W.fontWeight,V+"px",W.font].filter(function(ae){return ae}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var q=d(U,H,G,V,$,Z);return N(q,W,V)}},5346:function(v){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function a(k){k.permitHostObjects___&&k.permitHostObjects___(a)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=a);var n=!1;if(typeof WeakMap=="function"){var s=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var o=new s,h=Object.freeze({});if(o.set(h,1),o.get(h)!==1)n=!0;else{v.exports=WeakMap;return}}}var f=Object.getOwnPropertyNames,u=Object.defineProperty,b=Object.isExtensible,p="weakmap:",E=p+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var g=new ArrayBuffer(25),c=new Uint8Array(g);crypto.getRandomValues(c),E=p+"rand:"+Array.prototype.map.call(c,function(k){return(k%36).toString(36)}).join("")+"___"}function y(k){return!(k.substr(0,p.length)==p&&k.substr(k.length-3)==="___")}if(u(Object,"getOwnPropertyNames",{value:function(I){return f(I).filter(y)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;u(Object,"getPropertyNames",{value:function(I){return A(I).filter(y)}})}function M(k){if(k!==Object(k))throw new TypeError("Not an object: "+k);var I=k[E];if(I&&I.key===k)return I;if(b(k)){I={key:k};try{return u(k,E,{value:I,writable:!1,enumerable:!1,configurable:!1}),I}catch{return}}}(function(){var k=Object.freeze;u(Object,"freeze",{value:function(G){return M(G),k(G)}});var I=Object.seal;u(Object,"seal",{value:function(G){return M(G),I(G)}});var N=Object.preventExtensions;u(Object,"preventExtensions",{value:function(G){return M(G),N(G)}})})();function R(k){return k.prototype=null,Object.freeze(k)}var T=!1;function L(){!T&&typeof console<"u"&&(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var P=0,d=function(){this instanceof d||L();var k=[],I=[],N=P++;function B(W,V){var $,Z=M(W);return Z?N in Z?Z[N]:V:($=k.indexOf(W),$>=0?I[$]:V)}function G(W){var V=M(W);return V?N in V:k.indexOf(W)>=0}function U(W,V){var $,Z=M(W);return Z?Z[N]=V:($=k.indexOf(W),$>=0?I[$]=V:($=k.length,I[$]=V,k[$]=W)),this}function H(W){var V=M(W),$,Z;return V?N in V&&delete V[N]:($=k.indexOf(W),$<0?!1:(Z=k.length-1,k[$]=void 0,I[$]=I[Z],k[$]=k[Z],k.length=Z,I.length=Z,!0))}return Object.create(d.prototype,{get___:{value:R(B)},has___:{value:R(G)},set___:{value:R(U)},delete___:{value:R(H)}})};d.prototype=Object.create(Object.prototype,{get:{value:function(I,N){return this.get___(I,N)},writable:!0,configurable:!0},has:{value:function(I){return this.has___(I)},writable:!0,configurable:!0},set:{value:function(I,N){return this.set___(I,N)},writable:!0,configurable:!0},delete:{value:function(I){return this.delete___(I)},writable:!0,configurable:!0}}),typeof s=="function"?function(){n&&typeof Proxy<"u"&&(Proxy=void 0);function k(){this instanceof d||L();var I=new s,N=void 0,B=!1;function G(V,$){return N?I.has(V)?I.get(V):N.get___(V,$):I.get(V,$)}function U(V){return I.has(V)||(N?N.has___(V):!1)}var H;n?H=function(V,$){return I.set(V,$),I.has(V)||(N||(N=new d),N.set(V,$)),this}:H=function(V,$){if(B)try{I.set(V,$)}catch{N||(N=new d),N.set___(V,$)}else I.set(V,$);return this};function W(V){var $=!!I.delete(V);return N&&N.delete___(V)||$}return Object.create(d.prototype,{get___:{value:R(G)},has___:{value:R(U)},set___:{value:R(H)},delete___:{value:R(W)},permitHostObjects___:{value:R(function(V){if(V===a)B=!0;else throw new Error("bogus call to permitHostObjects___")})}})}k.prototype=d.prototype,v.exports=k,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),v.exports=d)})()},9222:function(v,m,a){var n=a(7178);v.exports=s;function s(){var o={};return function(h){if((typeof h!="object"||h===null)&&typeof h!="function")throw new Error("Weakmap-shim: Key must be object");var f=h.valueOf(o);return f&&f.identity===o?f:n(h,o)}}},7178:function(v){v.exports=m;function m(a,n){var s={identity:n},o=a.valueOf;return Object.defineProperty(a,"valueOf",{value:function(h){return h!==n?o.apply(this,arguments):s},writable:!0}),s}},4037:function(v,m,a){var n=a(9222);v.exports=s;function s(){var o=n();return{get:function(h,f){var u=o(h);return u.hasOwnProperty("value")?u.value:f},set:function(h,f){return o(h).value=f,this},has:function(h){return"value"in o(h)},delete:function(h){return delete o(h).value}}}},6183:function(v){function m(){return function(f,u,b,p,E,g){var c=f[0],y=b[0],A=[0],M=y;p|=0;var R=0,T=y;for(R=0;R=0!=P>=0&&E.push(A[0]+.5+.5*(L+P)/(L-P))}p+=T,++A[0]}}}function a(){return m()}var n=a;function s(f){var u={};return function(p,E,g){var c=p.dtype,y=p.order,A=[c,y.join()].join(),M=u[A];return M||(u[A]=M=f([c,y])),M(p.shape.slice(0),p.data,p.stride,p.offset|0,E,g)}}function o(f){return s(n.bind(void 0,f))}function h(f){return o({funcName:f.funcName})}v.exports=h({funcName:"zeroCrossings"})},9584:function(v,m,a){v.exports=s;var n=a(6183);function s(o,h){var f=[];return h=+h||0,n(o.hi(o.shape[0]-1),f,h),f}},6601:function(){}},i={};function C(v){var m=i[v];if(m!==void 0)return m.exports;var a=i[v]={id:v,loaded:!1,exports:{}};return S[v].call(a.exports,a,a.exports,C),a.loaded=!0,a.exports}(function(){C.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){C.nmd=function(v){return v.paths=[],v.children||(v.children=[]),v}}();var w=C(7386);return w}()})},33576:function(D,O,t){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function l(et,Be){if(!(et instanceof Be))throw new TypeError("Cannot call a class as a function")}function S(et,Be){for(var Ye=0;Ye"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return Be=a(Be),m(et,Ke()?Reflect.construct(Be,Ye||[],a(et).constructor):Be.apply(et,Ye))}function m(et,Be){if(Be&&(h(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(et)}function a(et){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ye){return Ye.__proto__||Object.getPrototypeOf(Ye)},a(et)}function n(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function s(et,Be){if(typeof Be!="function"&&Be!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(Be&&Be.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),Be&&o(et,Be)}function o(et,Be){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ke,We){return Ke.__proto__=We,Ke},o(et,Be)}function h(et){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},h(et)}var f=t(59968),u=t(35984),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=c,O.SlowBuffer=N,O.INSPECT_MAX_BYTES=50;var p=2147483647;O.kMaxLength=p,c.TYPED_ARRAY_SUPPORT=E(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function E(){try{var et=new Uint8Array(1),Be={foo:function(){return 42}};return Object.setPrototypeOf(Be,Uint8Array.prototype),Object.setPrototypeOf(et,Be),et.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function g(et){if(et>p)throw new RangeError('The value "'+et+'" is invalid for option "size"');var Be=new Uint8Array(et);return Object.setPrototypeOf(Be,c.prototype),Be}function c(et,Be,Ye){if(typeof et=="number"){if(typeof Be=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(et)}return x(et,Be,Ye)}c.poolSize=8192;function x(et,Be,Ye){if(typeof et=="string")return T(et,Be);if(ArrayBuffer.isView(et))return P(et);if(et==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(et));if(mt(et,ArrayBuffer)||et&&mt(et.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mt(et,SharedArrayBuffer)||et&&mt(et.buffer,SharedArrayBuffer)))return d(et,Be,Ye);if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ke=et.valueOf&&et.valueOf();if(Ke!=null&&Ke!==et)return c.from(Ke,Be,Ye);var We=k(et);if(We)return We;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof et[Symbol.toPrimitive]=="function")return c.from(et[Symbol.toPrimitive]("string"),Be,Ye);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(et))}c.from=function(et,Be,Ye){return x(et,Be,Ye)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function A(et){if(typeof et!="number")throw new TypeError('"size" argument must be of type number');if(et<0)throw new RangeError('The value "'+et+'" is invalid for option "size"')}function M(et,Be,Ye){return A(et),et<=0?g(et):Be!==void 0?typeof Ye=="string"?g(et).fill(Be,Ye):g(et).fill(Be):g(et)}c.alloc=function(et,Be,Ye){return M(et,Be,Ye)};function R(et){return A(et),g(et<0?0:I(et)|0)}c.allocUnsafe=function(et){return R(et)},c.allocUnsafeSlow=function(et){return R(et)};function T(et,Be){if((typeof Be!="string"||Be==="")&&(Be="utf8"),!c.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);var Ye=B(et,Be)|0,Ke=g(Ye),We=Ke.write(et,Be);return We!==Ye&&(Ke=Ke.slice(0,We)),Ke}function L(et){for(var Be=et.length<0?0:I(et.length)|0,Ye=g(Be),Ke=0;Ke=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return et|0}function N(et){return+et!=et&&(et=0),c.alloc(+et)}c.isBuffer=function(Be){return Be!=null&&Be._isBuffer===!0&&Be!==c.prototype},c.compare=function(Be,Ye){if(mt(Be,Uint8Array)&&(Be=c.from(Be,Be.offset,Be.byteLength)),mt(Ye,Uint8Array)&&(Ye=c.from(Ye,Ye.offset,Ye.byteLength)),!c.isBuffer(Be)||!c.isBuffer(Ye))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Be===Ye)return 0;for(var Ke=Be.length,We=Ye.length,Fe=0,Me=Math.min(Ke,We);FeWe.length?(c.isBuffer(Me)||(Me=c.from(Me)),Me.copy(We,Fe)):Uint8Array.prototype.set.call(We,Me,Fe);else if(c.isBuffer(Me))Me.copy(We,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=Me.length}return We};function B(et,Be){if(c.isBuffer(et))return et.length;if(ArrayBuffer.isView(et)||mt(et,ArrayBuffer))return et.byteLength;if(typeof et!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+h(et));var Ye=et.length,Ke=arguments.length>2&&arguments[2]===!0;if(!Ke&&Ye===0)return 0;for(var We=!1;;)switch(Be){case"ascii":case"latin1":case"binary":return Ye;case"utf8":case"utf-8":return $e(et).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye*2;case"hex":return Ye>>>1;case"base64":return at(et).length;default:if(We)return Ke?-1:$e(et).length;Be=(""+Be).toLowerCase(),We=!0}}c.byteLength=B;function G(et,Be,Ye){var Ke=!1;if((Be===void 0||Be<0)&&(Be=0),Be>this.length||((Ye===void 0||Ye>this.length)&&(Ye=this.length),Ye<=0)||(Ye>>>=0,Be>>>=0,Ye<=Be))return"";for(et||(et="utf8");;)switch(et){case"hex":return ne(this,Be,Ye);case"utf8":case"utf-8":return fe(this,Be,Ye);case"ascii":return oe(this,Be,Ye);case"latin1":case"binary":return K(this,Be,Ye);case"base64":return ie(this,Be,Ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,Be,Ye);default:if(Ke)throw new TypeError("Unknown encoding: "+et);et=(et+"").toLowerCase(),Ke=!0}}c.prototype._isBuffer=!0;function U(et,Be,Ye){var Ke=et[Be];et[Be]=et[Ye],et[Ye]=Ke}c.prototype.swap16=function(){var Be=this.length;if(Be%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ye=0;YeYe&&(Be+=" ... "),""},b&&(c.prototype[b]=c.prototype.inspect),c.prototype.compare=function(Be,Ye,Ke,We,Fe){if(mt(Be,Uint8Array)&&(Be=c.from(Be,Be.offset,Be.byteLength)),!c.isBuffer(Be))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+h(Be));if(Ye===void 0&&(Ye=0),Ke===void 0&&(Ke=Be?Be.length:0),We===void 0&&(We=0),Fe===void 0&&(Fe=this.length),Ye<0||Ke>Be.length||We<0||Fe>this.length)throw new RangeError("out of range index");if(We>=Fe&&Ye>=Ke)return 0;if(We>=Fe)return-1;if(Ye>=Ke)return 1;if(Ye>>>=0,Ke>>>=0,We>>>=0,Fe>>>=0,this===Be)return 0;for(var Me=Fe-We,we=Ke-Ye,Re=Math.min(Me,we),Pe=this.slice(We,Fe),Ve=Be.slice(Ye,Ke),Je=0;Je2147483647?Ye=2147483647:Ye<-2147483648&&(Ye=-2147483648),Ye=+Ye,rt(Ye)&&(Ye=We?0:et.length-1),Ye<0&&(Ye=et.length+Ye),Ye>=et.length){if(We)return-1;Ye=et.length-1}else if(Ye<0)if(We)Ye=0;else return-1;if(typeof Be=="string"&&(Be=c.from(Be,Ke)),c.isBuffer(Be))return Be.length===0?-1:W(et,Be,Ye,Ke,We);if(typeof Be=="number")return Be=Be&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(et,Be,Ye):Uint8Array.prototype.lastIndexOf.call(et,Be,Ye):W(et,[Be],Ye,Ke,We);throw new TypeError("val must be string, number or Buffer")}function W(et,Be,Ye,Ke,We){var Fe=1,Me=et.length,we=Be.length;if(Ke!==void 0&&(Ke=String(Ke).toLowerCase(),Ke==="ucs2"||Ke==="ucs-2"||Ke==="utf16le"||Ke==="utf-16le")){if(et.length<2||Be.length<2)return-1;Fe=2,Me/=2,we/=2,Ye/=2}function Re(yt,ut){return Fe===1?yt[ut]:yt.readUInt16BE(ut*Fe)}var Pe;if(We){var Ve=-1;for(Pe=Ye;PeMe&&(Ye=Me-we),Pe=Ye;Pe>=0;Pe--){for(var Je=!0,ot=0;otWe&&(Ke=We)):Ke=We;var Fe=Be.length;Ke>Fe/2&&(Ke=Fe/2);var Me;for(Me=0;Me>>0,isFinite(Ke)?(Ke=Ke>>>0,We===void 0&&(We="utf8")):(We=Ke,Ke=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-Ye;if((Ke===void 0||Ke>Fe)&&(Ke=Fe),Be.length>0&&(Ke<0||Ye<0)||Ye>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Me=!1;;)switch(We){case"hex":return V(this,Be,Ye,Ke);case"utf8":case"utf-8":return $(this,Be,Ye,Ke);case"ascii":case"latin1":case"binary":return Z(this,Be,Ye,Ke);case"base64":return q(this,Be,Ye,Ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,Be,Ye,Ke);default:if(Me)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Me=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(et,Be,Ye){return Be===0&&Ye===et.length?f.fromByteArray(et):f.fromByteArray(et.slice(Be,Ye))}function fe(et,Be,Ye){Ye=Math.min(et.length,Ye);for(var Ke=[],We=Be;We239?4:Fe>223?3:Fe>191?2:1;if(We+we<=Ye){var Re=void 0,Pe=void 0,Ve=void 0,Je=void 0;switch(we){case 1:Fe<128&&(Me=Fe);break;case 2:Re=et[We+1],(Re&192)===128&&(Je=(Fe&31)<<6|Re&63,Je>127&&(Me=Je));break;case 3:Re=et[We+1],Pe=et[We+2],(Re&192)===128&&(Pe&192)===128&&(Je=(Fe&15)<<12|(Re&63)<<6|Pe&63,Je>2047&&(Je<55296||Je>57343)&&(Me=Je));break;case 4:Re=et[We+1],Pe=et[We+2],Ve=et[We+3],(Re&192)===128&&(Pe&192)===128&&(Ve&192)===128&&(Je=(Fe&15)<<18|(Re&63)<<12|(Pe&63)<<6|Ve&63,Je>65535&&Je<1114112&&(Me=Je))}}Me===null?(Me=65533,we=1):Me>65535&&(Me-=65536,Ke.push(Me>>>10&1023|55296),Me=56320|Me&1023),Ke.push(Me),We+=we}return J(Ke)}var Q=4096;function J(et){var Be=et.length;if(Be<=Q)return String.fromCharCode.apply(String,et);for(var Ye="",Ke=0;KeKe)&&(Ye=Ke);for(var We="",Fe=Be;FeKe&&(Be=Ke),Ye<0?(Ye+=Ke,Ye<0&&(Ye=0)):Ye>Ke&&(Ye=Ke),YeYe)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(Be,Ye,Ke){Be=Be>>>0,Ye=Ye>>>0,Ke||re(Be,Ye,this.length);for(var We=this[Be],Fe=1,Me=0;++Me>>0,Ye=Ye>>>0,Ke||re(Be,Ye,this.length);for(var We=this[Be+--Ye],Fe=1;Ye>0&&(Fe*=256);)We+=this[Be+--Ye]*Fe;return We},c.prototype.readUint8=c.prototype.readUInt8=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,1,this.length),this[Be]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,2,this.length),this[Be]|this[Be+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,2,this.length),this[Be]<<8|this[Be+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),(this[Be]|this[Be+1]<<8|this[Be+2]<<16)+this[Be+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),this[Be]*16777216+(this[Be+1]<<16|this[Be+2]<<8|this[Be+3])},c.prototype.readBigUInt64LE=dt(function(Be){Be=Be>>>0,Ie(Be,"offset");var Ye=this[Be],Ke=this[Be+7];(Ye===void 0||Ke===void 0)&&Ue(Be,this.length-8);var We=Ye+this[++Be]*Math.pow(2,8)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,24),Fe=this[++Be]+this[++Be]*Math.pow(2,8)+this[++Be]*Math.pow(2,16)+Ke*Math.pow(2,24);return BigInt(We)+(BigInt(Fe)<>>0,Ie(Be,"offset");var Ye=this[Be],Ke=this[Be+7];(Ye===void 0||Ke===void 0)&&Ue(Be,this.length-8);var We=Ye*Math.pow(2,24)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,8)+this[++Be],Fe=this[++Be]*Math.pow(2,24)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,8)+Ke;return(BigInt(We)<>>0,Ye=Ye>>>0,Ke||re(Be,Ye,this.length);for(var We=this[Be],Fe=1,Me=0;++Me=Fe&&(We-=Math.pow(2,8*Ye)),We},c.prototype.readIntBE=function(Be,Ye,Ke){Be=Be>>>0,Ye=Ye>>>0,Ke||re(Be,Ye,this.length);for(var We=Ye,Fe=1,Me=this[Be+--We];We>0&&(Fe*=256);)Me+=this[Be+--We]*Fe;return Fe*=128,Me>=Fe&&(Me-=Math.pow(2,8*Ye)),Me},c.prototype.readInt8=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,1,this.length),this[Be]&128?(255-this[Be]+1)*-1:this[Be]},c.prototype.readInt16LE=function(Be,Ye){Be=Be>>>0,Ye||re(Be,2,this.length);var Ke=this[Be]|this[Be+1]<<8;return Ke&32768?Ke|4294901760:Ke},c.prototype.readInt16BE=function(Be,Ye){Be=Be>>>0,Ye||re(Be,2,this.length);var Ke=this[Be+1]|this[Be]<<8;return Ke&32768?Ke|4294901760:Ke},c.prototype.readInt32LE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),this[Be]|this[Be+1]<<8|this[Be+2]<<16|this[Be+3]<<24},c.prototype.readInt32BE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),this[Be]<<24|this[Be+1]<<16|this[Be+2]<<8|this[Be+3]},c.prototype.readBigInt64LE=dt(function(Be){Be=Be>>>0,Ie(Be,"offset");var Ye=this[Be],Ke=this[Be+7];(Ye===void 0||Ke===void 0)&&Ue(Be,this.length-8);var We=this[Be+4]+this[Be+5]*Math.pow(2,8)+this[Be+6]*Math.pow(2,16)+(Ke<<24);return(BigInt(We)<>>0,Ie(Be,"offset");var Ye=this[Be],Ke=this[Be+7];(Ye===void 0||Ke===void 0)&&Ue(Be,this.length-8);var We=(Ye<<24)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,8)+this[++Be];return(BigInt(We)<>>0,Ye||re(Be,4,this.length),u.read(this,Be,!0,23,4)},c.prototype.readFloatBE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),u.read(this,Be,!1,23,4)},c.prototype.readDoubleLE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,8,this.length),u.read(this,Be,!0,52,8)},c.prototype.readDoubleBE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,8,this.length),u.read(this,Be,!1,52,8)};function ee(et,Be,Ye,Ke,We,Fe){if(!c.isBuffer(et))throw new TypeError('"buffer" argument must be a Buffer instance');if(Be>We||Beet.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(Be,Ye,Ke,We){if(Be=+Be,Ye=Ye>>>0,Ke=Ke>>>0,!We){var Fe=Math.pow(2,8*Ke)-1;ee(this,Be,Ye,Ke,Fe,0)}var Me=1,we=0;for(this[Ye]=Be&255;++we>>0,Ke=Ke>>>0,!We){var Fe=Math.pow(2,8*Ke)-1;ee(this,Be,Ye,Ke,Fe,0)}var Me=Ke-1,we=1;for(this[Ye+Me]=Be&255;--Me>=0&&(we*=256);)this[Ye+Me]=Be/we&255;return Ye+Ke},c.prototype.writeUint8=c.prototype.writeUInt8=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,1,255,0),this[Ye]=Be&255,Ye+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,2,65535,0),this[Ye]=Be&255,this[Ye+1]=Be>>>8,Ye+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,2,65535,0),this[Ye]=Be>>>8,this[Ye+1]=Be&255,Ye+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,4,4294967295,0),this[Ye+3]=Be>>>24,this[Ye+2]=Be>>>16,this[Ye+1]=Be>>>8,this[Ye]=Be&255,Ye+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,4,4294967295,0),this[Ye]=Be>>>24,this[Ye+1]=Be>>>16,this[Ye+2]=Be>>>8,this[Ye+3]=Be&255,Ye+4};function de(et,Be,Ye,Ke,We){be(Be,Ke,We,et,Ye,7);var Fe=Number(Be&BigInt(4294967295));et[Ye++]=Fe,Fe=Fe>>8,et[Ye++]=Fe,Fe=Fe>>8,et[Ye++]=Fe,Fe=Fe>>8,et[Ye++]=Fe;var Me=Number(Be>>BigInt(32)&BigInt(4294967295));return et[Ye++]=Me,Me=Me>>8,et[Ye++]=Me,Me=Me>>8,et[Ye++]=Me,Me=Me>>8,et[Ye++]=Me,Ye}function le(et,Be,Ye,Ke,We){be(Be,Ke,We,et,Ye,7);var Fe=Number(Be&BigInt(4294967295));et[Ye+7]=Fe,Fe=Fe>>8,et[Ye+6]=Fe,Fe=Fe>>8,et[Ye+5]=Fe,Fe=Fe>>8,et[Ye+4]=Fe;var Me=Number(Be>>BigInt(32)&BigInt(4294967295));return et[Ye+3]=Me,Me=Me>>8,et[Ye+2]=Me,Me=Me>>8,et[Ye+1]=Me,Me=Me>>8,et[Ye]=Me,Ye+8}c.prototype.writeBigUInt64LE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return de(this,Be,Ye,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return le(this,Be,Ye,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(Be,Ye,Ke,We){if(Be=+Be,Ye=Ye>>>0,!We){var Fe=Math.pow(2,8*Ke-1);ee(this,Be,Ye,Ke,Fe-1,-Fe)}var Me=0,we=1,Re=0;for(this[Ye]=Be&255;++Me>0)-Re&255;return Ye+Ke},c.prototype.writeIntBE=function(Be,Ye,Ke,We){if(Be=+Be,Ye=Ye>>>0,!We){var Fe=Math.pow(2,8*Ke-1);ee(this,Be,Ye,Ke,Fe-1,-Fe)}var Me=Ke-1,we=1,Re=0;for(this[Ye+Me]=Be&255;--Me>=0&&(we*=256);)Be<0&&Re===0&&this[Ye+Me+1]!==0&&(Re=1),this[Ye+Me]=(Be/we>>0)-Re&255;return Ye+Ke},c.prototype.writeInt8=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,1,127,-128),Be<0&&(Be=255+Be+1),this[Ye]=Be&255,Ye+1},c.prototype.writeInt16LE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,2,32767,-32768),this[Ye]=Be&255,this[Ye+1]=Be>>>8,Ye+2},c.prototype.writeInt16BE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,2,32767,-32768),this[Ye]=Be>>>8,this[Ye+1]=Be&255,Ye+2},c.prototype.writeInt32LE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,4,2147483647,-2147483648),this[Ye]=Be&255,this[Ye+1]=Be>>>8,this[Ye+2]=Be>>>16,this[Ye+3]=Be>>>24,Ye+4},c.prototype.writeInt32BE=function(Be,Ye,Ke){return Be=+Be,Ye=Ye>>>0,Ke||ee(this,Be,Ye,4,2147483647,-2147483648),Be<0&&(Be=4294967295+Be+1),this[Ye]=Be>>>24,this[Ye+1]=Be>>>16,this[Ye+2]=Be>>>8,this[Ye+3]=Be&255,Ye+4},c.prototype.writeBigInt64LE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return de(this,Be,Ye,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return le(this,Be,Ye,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function he(et,Be,Ye,Ke,We,Fe){if(Ye+Ke>et.length)throw new RangeError("Index out of range");if(Ye<0)throw new RangeError("Index out of range")}function xe(et,Be,Ye,Ke,We){return Be=+Be,Ye=Ye>>>0,We||he(et,Be,Ye,4),u.write(et,Be,Ye,Ke,23,4),Ye+4}c.prototype.writeFloatLE=function(Be,Ye,Ke){return xe(this,Be,Ye,!0,Ke)},c.prototype.writeFloatBE=function(Be,Ye,Ke){return xe(this,Be,Ye,!1,Ke)};function Ee(et,Be,Ye,Ke,We){return Be=+Be,Ye=Ye>>>0,We||he(et,Be,Ye,8),u.write(et,Be,Ye,Ke,52,8),Ye+8}c.prototype.writeDoubleLE=function(Be,Ye,Ke){return Ee(this,Be,Ye,!0,Ke)},c.prototype.writeDoubleBE=function(Be,Ye,Ke){return Ee(this,Be,Ye,!1,Ke)},c.prototype.copy=function(Be,Ye,Ke,We){if(!c.isBuffer(Be))throw new TypeError("argument should be a Buffer");if(Ke||(Ke=0),!We&&We!==0&&(We=this.length),Ye>=Be.length&&(Ye=Be.length),Ye||(Ye=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Be.length-Ye>>0,Ke=Ke===void 0?this.length:Ke>>>0,Be||(Be=0);var Me;if(typeof Be=="number")for(Me=Ye;MeMath.pow(2,32)?We=Te(String(Ye)):typeof Ye=="bigint"&&(We=String(Ye),(Ye>Math.pow(BigInt(2),BigInt(32))||Ye<-Math.pow(BigInt(2),BigInt(32)))&&(We=Te(We)),We+="n"),Ke+=" It must be ".concat(Be,". Received ").concat(We),Ke},RangeError);function Te(et){for(var Be="",Ye=et.length,Ke=et[0]==="-"?1:0;Ye>=Ke+4;Ye-=3)Be="_".concat(et.slice(Ye-3,Ye)).concat(Be);return"".concat(et.slice(0,Ye)).concat(Be)}function Ae(et,Be,Ye){Ie(Be,"offset"),(et[Be]===void 0||et[Be+Ye]===void 0)&&Ue(Be,et.length-(Ye+1))}function be(et,Be,Ye,Ke,We,Fe){if(et>Ye||et3?Be===0||Be===BigInt(0)?we=">= 0".concat(Me," and < 2").concat(Me," ** ").concat((Fe+1)*8).concat(Me):we=">= -(2".concat(Me," ** ").concat((Fe+1)*8-1).concat(Me,") and < 2 ** ")+"".concat((Fe+1)*8-1).concat(Me):we=">= ".concat(Be).concat(Me," and <= ").concat(Ye).concat(Me),new Se.ERR_OUT_OF_RANGE("value",we,et)}Ae(Ke,We,Fe)}function Ie(et,Be){if(typeof et!="number")throw new Se.ERR_INVALID_ARG_TYPE(Be,"number",et)}function Ue(et,Be,Ye){throw Math.floor(et)!==et?(Ie(et,Ye),new Se.ERR_OUT_OF_RANGE(Ye||"offset","an integer",et)):Be<0?new Se.ERR_BUFFER_OUT_OF_BOUNDS:new Se.ERR_OUT_OF_RANGE(Ye||"offset",">= ".concat(Ye?1:0," and <= ").concat(Be),et)}var Ne=/[^+/0-9A-Za-z-_]/g;function ze(et){if(et=et.split("=")[0],et=et.trim().replace(Ne,""),et.length<2)return"";for(;et.length%4!==0;)et=et+"=";return et}function $e(et,Be){Be=Be||1/0;for(var Ye,Ke=et.length,We=null,Fe=[],Me=0;Me55295&&Ye<57344){if(!We){if(Ye>56319){(Be-=3)>-1&&Fe.push(239,191,189);continue}else if(Me+1===Ke){(Be-=3)>-1&&Fe.push(239,191,189);continue}We=Ye;continue}if(Ye<56320){(Be-=3)>-1&&Fe.push(239,191,189),We=Ye;continue}Ye=(We-55296<<10|Ye-56320)+65536}else We&&(Be-=3)>-1&&Fe.push(239,191,189);if(We=null,Ye<128){if((Be-=1)<0)break;Fe.push(Ye)}else if(Ye<2048){if((Be-=2)<0)break;Fe.push(Ye>>6|192,Ye&63|128)}else if(Ye<65536){if((Be-=3)<0)break;Fe.push(Ye>>12|224,Ye>>6&63|128,Ye&63|128)}else if(Ye<1114112){if((Be-=4)<0)break;Fe.push(Ye>>18|240,Ye>>12&63|128,Ye>>6&63|128,Ye&63|128)}else throw new Error("Invalid code point")}return Fe}function st(et){for(var Be=[],Ye=0;Ye>8,We=Ye%256,Fe.push(We),Fe.push(Ke);return Fe}function at(et){return f.toByteArray(ze(et))}function nt(et,Be,Ye,Ke){var We;for(We=0;We=Be.length||We>=et.length);++We)Be[We+Ye]=et[We];return We}function mt(et,Be){return et instanceof Be||et!=null&&et.constructor!=null&&et.constructor.name!=null&&et.constructor.name===Be.name}function rt(et){return et!==et}var lt=function(){for(var et="0123456789abcdef",Be=new Array(256),Ye=0;Ye<16;++Ye)for(var Ke=Ye*16,We=0;We<16;++We)Be[Ke+We]=et[Ye]+et[We];return Be}();function dt(et){return typeof BigInt>"u"?wt:et}function wt(){throw new Error("BigInt not supported")}},25928:function(D){D.exports=S,D.exports.isMobile=S,D.exports.default=S;var O=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,l=/android|ipad|playbook|silk/i;function S(i){i||(i={});var C=i.ua;if(!C&&typeof navigator<"u"&&(C=navigator.userAgent),C&&C.headers&&typeof C.headers["user-agent"]=="string"&&(C=C.headers["user-agent"]),typeof C!="string")return!1;var w=O.test(C)&&!t.test(C)||!!i.tablet&&l.test(C);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&C.indexOf("Macintosh")!==-1&&C.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(D,O,t){t.r(O),t.d(O,{sankeyCenter:function(){return s},sankeyCircular:function(){return k},sankeyJustify:function(){return n},sankeyLeft:function(){return m},sankeyRight:function(){return a}});var l=t(84706),S=t(34712),i=t(10132),C=t(6688),w=t.n(C);function v(Se){return Se.target.depth}function m(Se){return Se.depth}function a(Se,ke){return ke-1-Se.height}function n(Se,ke){return Se.sourceLinks.length?Se.depth:ke-1}function s(Se){return Se.targetLinks.length?Se.depth:Se.sourceLinks.length?(0,l.SY)(Se.sourceLinks,v)-1:0}function o(Se){return function(){return Se}}var h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Se){return typeof Se}:function(Se){return Se&&typeof Symbol=="function"&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se};function f(Se,ke){return b(Se.source,ke.source)||Se.index-ke.index}function u(Se,ke){return b(Se.target,ke.target)||Se.index-ke.index}function b(Se,ke){return Se.partOfCycle===ke.partOfCycle?Se.y0-ke.y0:Se.circularLinkType==="top"||ke.circularLinkType==="bottom"?-1:1}function p(Se){return Se.value}function E(Se){return(Se.y0+Se.y1)/2}function g(Se){return E(Se.source)}function c(Se){return E(Se.target)}function x(Se){return Se.index}function A(Se){return Se.nodes}function M(Se){return Se.links}function R(Se,ke){var Te=Se.get(ke);if(!Te)throw new Error("missing: "+ke);return Te}function T(Se,ke){return ke(Se)}var L=25,P=10,d=.3;function k(){var Se=0,ke=0,Te=1,Ae=1,be=24,Ie,Ue=x,Ne=n,ze=A,$e=M,st=32,vt=2,at,nt=null;function mt(){var Ke={nodes:ze.apply(null,arguments),links:$e.apply(null,arguments)};rt(Ke),I(Ke,Ue,nt),lt(Ke),et(Ke),N(Ke,Ue),Be(Ke,st,Ue),Ye(Ke);for(var We=4,Fe=0;Fe"u"?"undefined":h(we))!=="object"&&(we=Fe.source=R(We,we)),(typeof Re>"u"?"undefined":h(Re))!=="object"&&(Re=Fe.target=R(We,Re)),we.sourceLinks.push(Fe),Re.targetLinks.push(Fe)}),Ke}function lt(Ke){Ke.nodes.forEach(function(We){We.partOfCycle=!1,We.value=Math.max((0,l.oh)(We.sourceLinks,p),(0,l.oh)(We.targetLinks,p)),We.sourceLinks.forEach(function(Fe){Fe.circular&&(We.partOfCycle=!0,We.circularLinkType=Fe.circularLinkType)}),We.targetLinks.forEach(function(Fe){Fe.circular&&(We.partOfCycle=!0,We.circularLinkType=Fe.circularLinkType)})})}function dt(Ke){var We=0,Fe=0,Me=0,we=0,Re=(0,l.kv)(Ke.nodes,function(Pe){return Pe.column});return Ke.links.forEach(function(Pe){Pe.circular&&(Pe.circularLinkType=="top"?We=We+Pe.width:Fe=Fe+Pe.width,Pe.target.column==0&&(we=we+Pe.width),Pe.source.column==Re&&(Me=Me+Pe.width))}),We=We>0?We+L+P:We,Fe=Fe>0?Fe+L+P:Fe,Me=Me>0?Me+L+P:Me,we=we>0?we+L+P:we,{top:We,bottom:Fe,left:we,right:Me}}function wt(Ke,We){var Fe=(0,l.kv)(Ke.nodes,function(ot){return ot.column}),Me=Te-Se,we=Ae-ke,Re=Me+We.right+We.left,Pe=we+We.top+We.bottom,Ve=Me/Re,Je=we/Pe;return Se=Se*Ve+We.left,Te=We.right==0?Te:Te*Ve,ke=ke*Je+We.top,Ae=Ae*Je,Ke.nodes.forEach(function(ot){ot.x0=Se+ot.column*((Te-Se-be)/Fe),ot.x1=ot.x0+be}),Je}function et(Ke){var We,Fe,Me;for(We=Ke.nodes,Fe=[],Me=0;We.length;++Me,We=Fe,Fe=[])We.forEach(function(we){we.depth=Me,we.sourceLinks.forEach(function(Re){Fe.indexOf(Re.target)<0&&!Re.circular&&Fe.push(Re.target)})});for(We=Ke.nodes,Fe=[],Me=0;We.length;++Me,We=Fe,Fe=[])We.forEach(function(we){we.height=Me,we.targetLinks.forEach(function(Re){Fe.indexOf(Re.source)<0&&!Re.circular&&Fe.push(Re.source)})});Ke.nodes.forEach(function(we){we.column=Math.floor(Ne.call(null,we,Me))})}function Be(Ke,We,Fe){var Me=(0,S.UJ)().key(function(ot){return ot.column}).sortKeys(l.XE).entries(Ke.nodes).map(function(ot){return ot.values});Pe(Fe),Je();for(var we=1,Re=We;Re>0;--Re)Ve(we*=.99,Fe),Je();function Pe(ot){if(at){var yt=1/0;Me.forEach(function(xt){var Lt=Ae*at/(xt.length+1);yt=Lt0))if(xt==0&&Vt==1)Xt=Lt.y1-Lt.y0,Lt.y0=Ae/2-Xt/2,Lt.y1=Ae/2+Xt/2;else if(xt==ut-1&&Vt==1)Xt=Lt.y1-Lt.y0,Lt.y0=Ae/2-Xt/2,Lt.y1=Ae/2+Xt/2;else{var dr=0,Tt=(0,l.mo)(Lt.sourceLinks,c),Kt=(0,l.mo)(Lt.targetLinks,g);Tt&&Kt?dr=(Tt+Kt)/2:dr=Tt||Kt;var Qt=(dr-E(Lt))*ot;Lt.y0+=Qt,Lt.y1+=Qt}})})}function Je(){Me.forEach(function(ot){var yt,ut,It=ke,Vt=ot.length,xt;for(ot.sort(b),xt=0;xt0&&(yt.y0+=ut,yt.y1+=ut),It=yt.y1+Ie;if(ut=It-Ie-Ae,ut>0)for(It=yt.y0-=ut,yt.y1-=ut,xt=Vt-2;xt>=0;--xt)yt=ot[xt],ut=yt.y1+Ie-It,ut>0&&(yt.y0-=ut,yt.y1-=ut),It=yt.y0})}}function Ye(Ke){Ke.nodes.forEach(function(We){We.sourceLinks.sort(u),We.targetLinks.sort(f)}),Ke.nodes.forEach(function(We){var Fe=We.y0,Me=Fe,we=We.y1,Re=we;We.sourceLinks.forEach(function(Pe){Pe.circular?(Pe.y0=we-Pe.width/2,we=we-Pe.width):(Pe.y0=Fe+Pe.width/2,Fe+=Pe.width)}),We.targetLinks.forEach(function(Pe){Pe.circular?(Pe.y1=Re-Pe.width/2,Re=Re-Pe.width):(Pe.y1=Me+Pe.width/2,Me+=Pe.width)})})}return mt}function I(Se,ke,Te){var Ae=0;if(Te===null){for(var be=[],Ie=0;Ieke.source.column)}function U(Se,ke){var Te=0;Se.sourceLinks.forEach(function(be){Te=be.circular&&!xe(be,ke)?Te+1:Te});var Ae=0;return Se.targetLinks.forEach(function(be){Ae=be.circular&&!xe(be,ke)?Ae+1:Ae}),Te+Ae}function H(Se){var ke=Se.source.sourceLinks,Te=0;ke.forEach(function(Ie){Te=Ie.circular?Te+1:Te});var Ae=Se.target.targetLinks,be=0;return Ae.forEach(function(Ie){be=Ie.circular?be+1:be}),!(Te>1||be>1)}function W(Se,ke,Te){return Se.sort(Z),Se.forEach(function(Ae,be){var Ie=0;if(xe(Ae,Te)&&H(Ae))Ae.circularPathData.verticalBuffer=Ie+Ae.width/2;else{var Ue=0;for(Ue;UeIe?Ne:Ie}Ae.circularPathData.verticalBuffer=Ie+Ae.width/2}}),Se}function V(Se,ke,Te,Ae){var be=5,Ie=(0,l.SY)(Se.links,function(ze){return ze.source.y0});Se.links.forEach(function(ze){ze.circular&&(ze.circularPathData={})});var Ue=Se.links.filter(function(ze){return ze.circularLinkType=="top"});W(Ue,ke,Ae);var Ne=Se.links.filter(function(ze){return ze.circularLinkType=="bottom"});W(Ne,ke,Ae),Se.links.forEach(function(ze){if(ze.circular){if(ze.circularPathData.arcRadius=ze.width+P,ze.circularPathData.leftNodeBuffer=be,ze.circularPathData.rightNodeBuffer=be,ze.circularPathData.sourceWidth=ze.source.x1-ze.source.x0,ze.circularPathData.sourceX=ze.source.x0+ze.circularPathData.sourceWidth,ze.circularPathData.targetX=ze.target.x0,ze.circularPathData.sourceY=ze.y0,ze.circularPathData.targetY=ze.y1,xe(ze,Ae)&&H(ze))ze.circularPathData.leftSmallArcRadius=P+ze.width/2,ze.circularPathData.leftLargeArcRadius=P+ze.width/2,ze.circularPathData.rightSmallArcRadius=P+ze.width/2,ze.circularPathData.rightLargeArcRadius=P+ze.width/2,ze.circularLinkType=="bottom"?(ze.circularPathData.verticalFullExtent=ze.source.y1+L+ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.rightLargeArcRadius):(ze.circularPathData.verticalFullExtent=ze.source.y0-L-ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.rightLargeArcRadius);else{var $e=ze.source.column,st=ze.circularLinkType,vt=Se.links.filter(function(mt){return mt.source.column==$e&&mt.circularLinkType==st});ze.circularLinkType=="bottom"?vt.sort(ae):vt.sort(q);var at=0;vt.forEach(function(mt,rt){mt.circularLinkID==ze.circularLinkID&&(ze.circularPathData.leftSmallArcRadius=P+ze.width/2+at,ze.circularPathData.leftLargeArcRadius=P+ze.width/2+rt*ke+at),at=at+mt.width}),$e=ze.target.column,vt=Se.links.filter(function(mt){return mt.target.column==$e&&mt.circularLinkType==st}),ze.circularLinkType=="bottom"?vt.sort(fe):vt.sort(ie),at=0,vt.forEach(function(mt,rt){mt.circularLinkID==ze.circularLinkID&&(ze.circularPathData.rightSmallArcRadius=P+ze.width/2+at,ze.circularPathData.rightLargeArcRadius=P+ze.width/2+rt*ke+at),at=at+mt.width}),ze.circularLinkType=="bottom"?(ze.circularPathData.verticalFullExtent=Math.max(Te,ze.source.y1,ze.target.y1)+L+ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.rightLargeArcRadius):(ze.circularPathData.verticalFullExtent=Ie-L-ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.rightLargeArcRadius)}ze.circularPathData.leftInnerExtent=ze.circularPathData.sourceX+ze.circularPathData.leftNodeBuffer,ze.circularPathData.rightInnerExtent=ze.circularPathData.targetX-ze.circularPathData.rightNodeBuffer,ze.circularPathData.leftFullExtent=ze.circularPathData.sourceX+ze.circularPathData.leftLargeArcRadius+ze.circularPathData.leftNodeBuffer,ze.circularPathData.rightFullExtent=ze.circularPathData.targetX-ze.circularPathData.rightLargeArcRadius-ze.circularPathData.rightNodeBuffer}if(ze.circular)ze.path=$(ze);else{var nt=(0,i.ak)().source(function(mt){var rt=mt.source.x0+(mt.source.x1-mt.source.x0),lt=mt.y0;return[rt,lt]}).target(function(mt){var rt=mt.target.x0,lt=mt.y1;return[rt,lt]});ze.path=nt(ze)}})}function $(Se){var ke="";return Se.circularLinkType=="top"?ke="M"+Se.circularPathData.sourceX+" "+Se.circularPathData.sourceY+" L"+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.sourceY+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftSmallArcRadius+" 0 0 0 "+Se.circularPathData.leftFullExtent+" "+(Se.circularPathData.sourceY-Se.circularPathData.leftSmallArcRadius)+" L"+Se.circularPathData.leftFullExtent+" "+Se.circularPathData.verticalLeftInnerExtent+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftLargeArcRadius+" 0 0 0 "+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.verticalFullExtent+" L"+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.verticalFullExtent+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightLargeArcRadius+" 0 0 0 "+Se.circularPathData.rightFullExtent+" "+Se.circularPathData.verticalRightInnerExtent+" L"+Se.circularPathData.rightFullExtent+" "+(Se.circularPathData.targetY-Se.circularPathData.rightSmallArcRadius)+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightSmallArcRadius+" 0 0 0 "+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.targetY+" L"+Se.circularPathData.targetX+" "+Se.circularPathData.targetY:ke="M"+Se.circularPathData.sourceX+" "+Se.circularPathData.sourceY+" L"+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.sourceY+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftSmallArcRadius+" 0 0 1 "+Se.circularPathData.leftFullExtent+" "+(Se.circularPathData.sourceY+Se.circularPathData.leftSmallArcRadius)+" L"+Se.circularPathData.leftFullExtent+" "+Se.circularPathData.verticalLeftInnerExtent+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftLargeArcRadius+" 0 0 1 "+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.verticalFullExtent+" L"+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.verticalFullExtent+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightLargeArcRadius+" 0 0 1 "+Se.circularPathData.rightFullExtent+" "+Se.circularPathData.verticalRightInnerExtent+" L"+Se.circularPathData.rightFullExtent+" "+(Se.circularPathData.targetY+Se.circularPathData.rightSmallArcRadius)+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightSmallArcRadius+" 0 0 1 "+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.targetY+" L"+Se.circularPathData.targetX+" "+Se.circularPathData.targetY,ke}function Z(Se,ke){return Q(Se)==Q(ke)?Se.circularLinkType=="bottom"?ae(Se,ke):q(Se,ke):Q(ke)-Q(Se)}function q(Se,ke){return Se.y0-ke.y0}function ae(Se,ke){return ke.y0-Se.y0}function ie(Se,ke){return Se.y1-ke.y1}function fe(Se,ke){return ke.y1-Se.y1}function Q(Se){return Se.target.column-Se.source.column}function J(Se){return Se.target.x0-Se.source.x1}function oe(Se,ke){var Te=B(Se),Ae=J(ke)/Math.tan(Te),be=he(Se)=="up"?Se.y1+Ae:Se.y1-Ae;return be}function K(Se,ke){var Te=B(Se),Ae=J(ke)/Math.tan(Te),be=he(Se)=="up"?Se.y1-Ae:Se.y1+Ae;return be}function ne(Se,ke,Te,Ae){Se.links.forEach(function(be){if(!be.circular&&be.target.column-be.source.column>1){var Ie=be.source.column+1,Ue=be.target.column-1,Ne=1,ze=Ue-Ie+1;for(Ne=1;Ie<=Ue;Ie++,Ne++)Se.nodes.forEach(function($e){if($e.column==Ie){var st=Ne/(ze+1),vt=Math.pow(1-st,3),at=3*st*Math.pow(1-st,2),nt=3*Math.pow(st,2)*(1-st),mt=Math.pow(st,3),rt=vt*be.y0+at*be.y0+nt*be.y1+mt*be.y1,lt=rt-be.width/2,dt=rt+be.width/2,wt;lt>$e.y0&<<$e.y1?(wt=$e.y1-lt+10,wt=$e.circularLinkType=="bottom"?wt:-wt,$e=re($e,wt,ke,Te),Se.nodes.forEach(function(et){T(et,Ae)==T($e,Ae)||et.column!=$e.column||ce($e,et)&&re(et,wt,ke,Te)})):dt>$e.y0&&dt<$e.y1?(wt=dt-$e.y0+10,$e=re($e,wt,ke,Te),Se.nodes.forEach(function(et){T(et,Ae)==T($e,Ae)||et.column!=$e.column||et.y0<$e.y1&&et.y1>$e.y1&&re(et,wt,ke,Te)})):lt<$e.y0&&dt>$e.y1&&(wt=dt-$e.y0+10,$e=re($e,wt,ke,Te),Se.nodes.forEach(function(et){T(et,Ae)==T($e,Ae)||et.column!=$e.column||et.y0<$e.y1&&et.y1>$e.y1&&re(et,wt,ke,Te)}))}})}})}function ce(Se,ke){return Se.y0>ke.y0&&Se.y0ke.y0&&Se.y1ke.y1}function re(Se,ke,Te,Ae){return Se.y0+ke>=Te&&Se.y1+ke<=Ae&&(Se.y0=Se.y0+ke,Se.y1=Se.y1+ke,Se.targetLinks.forEach(function(be){be.y1=be.y1+ke}),Se.sourceLinks.forEach(function(be){be.y0=be.y0+ke})),Se}function ee(Se,ke,Te,Ae){Se.nodes.forEach(function(be){Ae&&be.y+(be.y1-be.y0)>ke&&(be.y=be.y-(be.y+(be.y1-be.y0)-ke));var Ie=Se.links.filter(function(ze){return T(ze.source,Te)==T(be,Te)}),Ue=Ie.length;Ue>1&&Ie.sort(function(ze,$e){if(!ze.circular&&!$e.circular){if(ze.target.column==$e.target.column)return ze.y1-$e.y1;if(le(ze,$e)){if(ze.target.column>$e.target.column){var st=K($e,ze);return ze.y1-st}if($e.target.column>ze.target.column){var vt=K(ze,$e);return vt-$e.y1}}else return ze.y1-$e.y1}if(ze.circular&&!$e.circular)return ze.circularLinkType=="top"?-1:1;if($e.circular&&!ze.circular)return $e.circularLinkType=="top"?1:-1;if(ze.circular&&$e.circular)return ze.circularLinkType===$e.circularLinkType&&ze.circularLinkType=="top"?ze.target.column===$e.target.column?ze.target.y1-$e.target.y1:$e.target.column-ze.target.column:ze.circularLinkType===$e.circularLinkType&&ze.circularLinkType=="bottom"?ze.target.column===$e.target.column?$e.target.y1-ze.target.y1:ze.target.column-$e.target.column:ze.circularLinkType=="top"?-1:1});var Ne=be.y0;Ie.forEach(function(ze){ze.y0=Ne+ze.width/2,Ne=Ne+ze.width}),Ie.forEach(function(ze,$e){if(ze.circularLinkType=="bottom"){var st=$e+1,vt=0;for(st;st1&&be.sort(function(Ne,ze){if(!Ne.circular&&!ze.circular){if(Ne.source.column==ze.source.column)return Ne.y0-ze.y0;if(le(Ne,ze)){if(ze.source.column0?"up":"down"}function xe(Se,ke){return T(Se.source,ke)==T(Se.target,ke)}function Ee(Se,ke,Te){var Ae=Se.nodes,be=Se.links,Ie=!1,Ue=!1;if(be.forEach(function(at){at.circularLinkType=="top"?Ie=!0:at.circularLinkType=="bottom"&&(Ue=!0)}),Ie==!1||Ue==!1){var Ne=(0,l.SY)(Ae,function(at){return at.y0}),ze=(0,l.kv)(Ae,function(at){return at.y1}),$e=ze-Ne,st=Te-ke,vt=st/$e;Ae.forEach(function(at){var nt=(at.y1-at.y0)*vt;at.y0=(at.y0-Ne)*vt,at.y1=at.y0+nt}),be.forEach(function(at){at.y0=(at.y0-Ne)*vt,at.y1=(at.y1-Ne)*vt,at.width=at.width*vt})}}},26800:function(D,O,t){t.r(O),t.d(O,{sankey:function(){return x},sankeyCenter:function(){return m},sankeyJustify:function(){return v},sankeyLeft:function(){return C},sankeyLinkHorizontal:function(){return T},sankeyRight:function(){return w}});var l=t(84706),S=t(34712);function i(L){return L.target.depth}function C(L){return L.depth}function w(L,P){return P-1-L.height}function v(L,P){return L.sourceLinks.length?L.depth:P-1}function m(L){return L.targetLinks.length?L.depth:L.sourceLinks.length?(0,l.SY)(L.sourceLinks,i)-1:0}function a(L){return function(){return L}}function n(L,P){return o(L.source,P.source)||L.index-P.index}function s(L,P){return o(L.target,P.target)||L.index-P.index}function o(L,P){return L.y0-P.y0}function h(L){return L.value}function f(L){return(L.y0+L.y1)/2}function u(L){return f(L.source)*L.value}function b(L){return f(L.target)*L.value}function p(L){return L.index}function E(L){return L.nodes}function g(L){return L.links}function c(L,P){var d=L.get(P);if(!d)throw new Error("missing: "+P);return d}function x(){var L=0,P=0,d=1,k=1,I=24,N=8,B=p,G=v,U=E,H=g,W=32,V=2/3;function $(){var Q={nodes:U.apply(null,arguments),links:H.apply(null,arguments)};return Z(Q),q(Q),ae(Q),ie(Q),fe(Q),Q}$.update=function(Q){return fe(Q),Q},$.nodeId=function(Q){return arguments.length?(B=typeof Q=="function"?Q:a(Q),$):B},$.nodeAlign=function(Q){return arguments.length?(G=typeof Q=="function"?Q:a(Q),$):G},$.nodeWidth=function(Q){return arguments.length?(I=+Q,$):I},$.nodePadding=function(Q){return arguments.length?(N=+Q,$):N},$.nodes=function(Q){return arguments.length?(U=typeof Q=="function"?Q:a(Q),$):U},$.links=function(Q){return arguments.length?(H=typeof Q=="function"?Q:a(Q),$):H},$.size=function(Q){return arguments.length?(L=P=0,d=+Q[0],k=+Q[1],$):[d-L,k-P]},$.extent=function(Q){return arguments.length?(L=+Q[0][0],d=+Q[1][0],P=+Q[0][1],k=+Q[1][1],$):[[L,P],[d,k]]},$.iterations=function(Q){return arguments.length?(W=+Q,$):W};function Z(Q){Q.nodes.forEach(function(oe,K){oe.index=K,oe.sourceLinks=[],oe.targetLinks=[]});var J=(0,S.kH)(Q.nodes,B);Q.links.forEach(function(oe,K){oe.index=K;var ne=oe.source,ce=oe.target;typeof ne!="object"&&(ne=oe.source=c(J,ne)),typeof ce!="object"&&(ce=oe.target=c(J,ce)),ne.sourceLinks.push(oe),ce.targetLinks.push(oe)})}function q(Q){Q.nodes.forEach(function(J){J.value=Math.max((0,l.oh)(J.sourceLinks,h),(0,l.oh)(J.targetLinks,h))})}function ae(Q){var J,oe,K;for(J=Q.nodes,oe=[],K=0;J.length;++K,J=oe,oe=[])J.forEach(function(ce){ce.depth=K,ce.sourceLinks.forEach(function(re){oe.indexOf(re.target)<0&&oe.push(re.target)})});for(J=Q.nodes,oe=[],K=0;J.length;++K,J=oe,oe=[])J.forEach(function(ce){ce.height=K,ce.targetLinks.forEach(function(re){oe.indexOf(re.source)<0&&oe.push(re.source)})});var ne=(d-L-I)/(K-1);Q.nodes.forEach(function(ce){ce.x1=(ce.x0=L+Math.max(0,Math.min(K-1,Math.floor(G.call(null,ce,K))))*ne)+I})}function ie(Q){var J=(0,S.UJ)().key(function(de){return de.x0}).sortKeys(l.XE).entries(Q.nodes).map(function(de){return de.values});ne(),ee();for(var oe=1,K=W;K>0;--K)re(oe*=.99),ee(),ce(oe),ee();function ne(){var de=(0,l.kv)(J,function(xe){return xe.length}),le=V*(k-P)/(de-1);N>le&&(N=le);var he=(0,l.SY)(J,function(xe){return(k-P-(xe.length-1)*N)/(0,l.oh)(xe,h)});J.forEach(function(xe){xe.forEach(function(Ee,Se){Ee.y1=(Ee.y0=Se)+Ee.value*he})}),Q.links.forEach(function(xe){xe.width=xe.value*he})}function ce(de){J.forEach(function(le){le.forEach(function(he){if(he.targetLinks.length){var xe=((0,l.oh)(he.targetLinks,u)/(0,l.oh)(he.targetLinks,h)-f(he))*de;he.y0+=xe,he.y1+=xe}})})}function re(de){J.slice().reverse().forEach(function(le){le.forEach(function(he){if(he.sourceLinks.length){var xe=((0,l.oh)(he.sourceLinks,b)/(0,l.oh)(he.sourceLinks,h)-f(he))*de;he.y0+=xe,he.y1+=xe}})})}function ee(){J.forEach(function(de){var le,he,xe=P,Ee=de.length,Se;for(de.sort(o),Se=0;Se0&&(le.y0+=he,le.y1+=he),xe=le.y1+N;if(he=xe-N-k,he>0)for(xe=le.y0-=he,le.y1-=he,Se=Ee-2;Se>=0;--Se)le=de[Se],he=le.y1+N-xe,he>0&&(le.y0-=he,le.y1-=he),xe=le.y0})}}function fe(Q){Q.nodes.forEach(function(J){J.sourceLinks.sort(s),J.targetLinks.sort(n)}),Q.nodes.forEach(function(J){var oe=J.y0,K=oe;J.sourceLinks.forEach(function(ne){ne.y0=oe+ne.width/2,oe+=ne.width}),J.targetLinks.forEach(function(ne){ne.y1=K+ne.width/2,K+=ne.width})})}return $}var A=t(10132);function M(L){return[L.source.x1,L.y0]}function R(L){return[L.target.x0,L.y1]}function T(){return(0,A.ak)().source(M).target(R)}},33428:function(D,O,t){var l,S;(function(){var i={version:"3.8.0"},C=[].slice,w=function(ve){return C.call(ve)},v=self.document;function m(ve){return ve&&(ve.ownerDocument||ve.document||ve).documentElement}function a(ve){return ve&&(ve.ownerDocument&&ve.ownerDocument.defaultView||ve.document&&ve||ve.defaultView)}if(v)try{w(v.documentElement.childNodes)[0].nodeType}catch{w=function(De){for(var je=De.length,it=new Array(je);je--;)it[je]=De[je];return it}}if(Date.now||(Date.now=function(){return+new Date}),v)try{v.createElement("DIV").style.setProperty("opacity",0,"")}catch{var n=this.Element.prototype,s=n.setAttribute,o=n.setAttributeNS,h=this.CSSStyleDeclaration.prototype,f=h.setProperty;n.setAttribute=function(De,je){s.call(this,De,je+"")},n.setAttributeNS=function(De,je,it){o.call(this,De,je,it+"")},h.setProperty=function(De,je,it){f.call(this,De,je+"",it)}}i.ascending=u;function u(ve,De){return veDe?1:ve>=De?0:NaN}i.descending=function(ve,De){return Deve?1:De>=ve?0:NaN},i.min=function(ve,De){var je=-1,it=ve.length,ct,gt;if(arguments.length===1){for(;++je=gt){ct=gt;break}for(;++jegt&&(ct=gt)}else{for(;++je=gt){ct=gt;break}for(;++jegt&&(ct=gt)}return ct},i.max=function(ve,De){var je=-1,it=ve.length,ct,gt;if(arguments.length===1){for(;++je=gt){ct=gt;break}for(;++ject&&(ct=gt)}else{for(;++je=gt){ct=gt;break}for(;++ject&&(ct=gt)}return ct},i.extent=function(ve,De){var je=-1,it=ve.length,ct,gt,Dt;if(arguments.length===1){for(;++je=gt){ct=Dt=gt;break}for(;++jegt&&(ct=gt),Dt=gt){ct=Dt=gt;break}for(;++jegt&&(ct=gt),Dt1)return Dt/(Yt-1)},i.deviation=function(){var ve=i.variance.apply(this,arguments);return ve&&Math.sqrt(ve)};function E(ve){return{left:function(De,je,it,ct){for(arguments.length<3&&(it=0),arguments.length<4&&(ct=De.length);it>>1;ve(De[gt],je)<0?it=gt+1:ct=gt}return it},right:function(De,je,it,ct){for(arguments.length<3&&(it=0),arguments.length<4&&(ct=De.length);it>>1;ve(De[gt],je)>0?ct=gt:it=gt+1}return it}}}var g=E(u);i.bisectLeft=g.left,i.bisect=i.bisectRight=g.right,i.bisector=function(ve){return E(ve.length===1?function(De,je){return u(ve(De),je)}:ve)},i.shuffle=function(ve,De,je){(it=arguments.length)<3&&(je=ve.length,it<2&&(De=0));for(var it=je-De,ct,gt;it;)gt=Math.random()*it--|0,ct=ve[it+De],ve[it+De]=ve[gt+De],ve[gt+De]=ct;return ve},i.permute=function(ve,De){for(var je=De.length,it=new Array(je);je--;)it[je]=ve[De[je]];return it},i.pairs=function(ve){for(var De=0,je=ve.length-1,it=ve[0],ct=new Array(je<0?0:je);De=0;)for(Dt=ve[De],je=Dt.length;--je>=0;)gt[--ct]=Dt[je];return gt};var x=Math.abs;i.range=function(ve,De,je){if(arguments.length<3&&(je=1,arguments.length<2&&(De=ve,ve=0)),(De-ve)/je===1/0)throw new Error("infinite range");var it=[],ct=A(x(je)),gt=-1,Dt;if(ve*=ct,De*=ct,je*=ct,je<0)for(;(Dt=ve+je*++gt)>De;)it.push(Dt/ct);else for(;(Dt=ve+je*++gt)=De.length)return ct?ct.call(ve,Yt):it?Yt.sort(it):Yt;for(var ar=-1,Ir=Yt.length,kr=De[Zt++],tn,dn,Or,Gr=new R,qr;++ar=De.length)return Et;var Zt=[],ar=je[Yt++];return Et.forEach(function(Ir,kr){Zt.push({key:Ir,values:Dt(kr,Yt)})}),ar?Zt.sort(function(Ir,kr){return ar(Ir.key,kr.key)}):Zt}return ve.map=function(Et,Yt){return gt(Yt,Et,0)},ve.entries=function(Et){return Dt(gt(i.map,Et,0),0)},ve.key=function(Et){return De.push(Et),ve},ve.sortKeys=function(Et){return je[De.length-1]=Et,ve},ve.sortValues=function(Et){return it=Et,ve},ve.rollup=function(Et){return ct=Et,ve},ve},i.set=function(ve){var De=new U;if(ve)for(var je=0,it=ve.length;je=0&&(it=ve.slice(je+1),ve=ve.slice(0,je)),ve)return arguments.length<2?this[ve].on(it):this[ve].on(it,De);if(arguments.length===2){if(De==null)for(ve in this)this.hasOwnProperty(ve)&&this[ve].on(it,null);return this}};function ae(ve){var De=[],je=new R;function it(){for(var ct=De,gt=-1,Dt=ct.length,Et;++gt=0&&(je=ve.slice(0,De))!=="xmlns"&&(ve=ve.slice(De+1)),xe.hasOwnProperty(je)?{space:xe[je],local:ve}:ve}},ee.attr=function(ve,De){if(arguments.length<2){if(typeof ve=="string"){var je=this.node();return ve=i.ns.qualify(ve),ve.local?je.getAttributeNS(ve.space,ve.local):je.getAttribute(ve)}for(De in ve)this.each(Ee(De,ve[De]));return this}return this.each(Ee(ve,De))};function Ee(ve,De){ve=i.ns.qualify(ve);function je(){this.removeAttribute(ve)}function it(){this.removeAttributeNS(ve.space,ve.local)}function ct(){this.setAttribute(ve,De)}function gt(){this.setAttributeNS(ve.space,ve.local,De)}function Dt(){var Yt=De.apply(this,arguments);Yt==null?this.removeAttribute(ve):this.setAttribute(ve,Yt)}function Et(){var Yt=De.apply(this,arguments);Yt==null?this.removeAttributeNS(ve.space,ve.local):this.setAttributeNS(ve.space,ve.local,Yt)}return De==null?ve.local?it:je:typeof De=="function"?ve.local?Et:Dt:ve.local?gt:ct}function Se(ve){return ve.trim().replace(/\s+/g," ")}ee.classed=function(ve,De){if(arguments.length<2){if(typeof ve=="string"){var je=this.node(),it=(ve=Te(ve)).length,ct=-1;if(De=je.classList){for(;++ct=0;)(gt=je[it])&&(ct&&ct!==gt.nextSibling&&ct.parentNode.insertBefore(gt,ct),ct=gt);return this},ee.sort=function(ve){ve=vt.apply(this,arguments);for(var De=-1,je=this.length;++De=De&&(De=ct+1);!(Yt=Dt[De])&&++De0&&(ve=ve.slice(0,ct));var Dt=dt.get(ve);Dt&&(ve=Dt,gt=et);function Et(){var ar=this[it];ar&&(this.removeEventListener(ve,ar,ar.$),delete this[it])}function Yt(){var ar=gt(De,w(arguments));Et.call(this),this.addEventListener(ve,this[it]=ar,ar.$=je),ar._=De}function Zt(){var ar=new RegExp("^__on([^.]+)"+i.requote(ve)+"$"),Ir;for(var kr in this)if(Ir=kr.match(ar)){var tn=this[kr];this.removeEventListener(Ir[1],tn,tn.$),delete this[kr]}}return ct?De?Yt:Et:De?Z:Zt}var dt=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});v&&dt.forEach(function(ve){"on"+ve in v&&dt.remove(ve)});function wt(ve,De){return function(je){var it=i.event;i.event=je,De[0]=this.__data__;try{ve.apply(this,De)}finally{i.event=it}}}function et(ve,De){var je=wt(ve,De);return function(it){var ct=this,gt=it.relatedTarget;(!gt||gt!==ct&&!(gt.compareDocumentPosition(ct)&8))&&je.call(ct,it)}}var Be,Ye=0;function Ke(ve){var De=".dragsuppress-"+ ++Ye,je="click"+De,it=i.select(a(ve)).on("touchmove"+De,ie).on("dragstart"+De,ie).on("selectstart"+De,ie);if(Be==null&&(Be="onselectstart"in ve?!1:V(ve.style,"userSelect")),Be){var ct=m(ve).style,gt=ct[Be];ct[Be]="none"}return function(Dt){if(it.on(De,null),Be&&(ct[Be]=gt),Dt){var Et=function(){it.on(je,null)};it.on(je,function(){ie(),Et()},!0),setTimeout(Et,0)}}}i.mouse=function(ve){return Fe(ve,fe())};var We=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(ve,De){De.changedTouches&&(De=De.changedTouches[0]);var je=ve.ownerSVGElement||ve;if(je.createSVGPoint){var it=je.createSVGPoint();if(We<0){var ct=a(ve);if(ct.scrollX||ct.scrollY){je=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var gt=je[0][0].getScreenCTM();We=!(gt.f||gt.e),je.remove()}}return We?(it.x=De.pageX,it.y=De.pageY):(it.x=De.clientX,it.y=De.clientY),it=it.matrixTransform(ve.getScreenCTM().inverse()),[it.x,it.y]}var Dt=ve.getBoundingClientRect();return[De.clientX-Dt.left-ve.clientLeft,De.clientY-Dt.top-ve.clientTop]}i.touch=function(ve,De,je){if(arguments.length<3&&(je=De,De=fe().changedTouches),De){for(var it=0,ct=De.length,gt;it1?ot:ve<-1?-ot:Math.asin(ve)}function xt(ve){return((ve=Math.exp(ve))-1/ve)/2}function Lt(ve){return((ve=Math.exp(ve))+1/ve)/2}function Xt(ve){return((ve=Math.exp(2*ve))-1)/(ve+1)}var dr=Math.SQRT2,Tt=2,Kt=4;i.interpolateZoom=function(ve,De){var je=ve[0],it=ve[1],ct=ve[2],gt=De[0],Dt=De[1],Et=De[2],Yt=gt-je,Zt=Dt-it,ar=Yt*Yt+Zt*Zt,Ir,kr;if(ar0&&(sa=sa.transition().duration(Dt)),sa.call(bn.event)}function ya(){Gr&&Gr.domain(Or.range().map(function(sa){return(sa-ve.x)/ve.k}).map(Or.invert)),gn&&gn.domain(qr.range().map(function(sa){return(sa-ve.y)/ve.k}).map(qr.invert))}function Ca(sa){Et++||sa({type:"zoomstart"})}function ai(sa){ya(),sa({type:"zoom",scale:ve.k,translate:[ve.x,ve.y]})}function Va(sa){--Et||(sa({type:"zoomend"}),je=null)}function ei(){var sa=this,si=dn.of(sa,arguments),Ua=0,bi=i.select(a(sa)).on(Zt,rs).on(ar,ns),so=an(i.mouse(sa)),Fi=Ke(sa);Gt.call(sa),Ca(si);function rs(){Ua=1,Sa(i.mouse(sa),so),ai(si)}function ns(){bi.on(Zt,null).on(ar,null),Fi(Ua),Va(si)}}function Oi(){var sa=this,si=dn.of(sa,arguments),Ua={},bi=0,so,Fi=".zoom-"+i.event.changedTouches[0].identifier,rs="touchmove"+Fi,ns="touchend"+Fi,us=[],lo=i.select(sa),ws=Ke(sa);Ga(),Ca(si),lo.on(Yt,null).on(kr,Ga);function ba(){var cs=i.touches(sa);return so=ve.k,cs.forEach(function(Wi){Wi.identifier in Ua&&(Ua[Wi.identifier]=an(Wi))}),cs}function Ga(){var cs=i.event.target;i.select(cs).on(rs,Ws).on(ns,qs),us.push(cs);for(var Wi=i.event.changedTouches,Wo=0,Bo=Wi.length;Wo1){var bo=Hl[0],Kc=Hl[1],wi=bo[0]-Kc[0],wo=bo[1]-Kc[1];bi=wi*wi+wo*wo}}function Ws(){var cs=i.touches(sa),Wi,Wo,Bo,Hl;Gt.call(sa);for(var cu=0,bo=cs.length;cu1?1:De,je=je<0?0:je>1?1:je,ct=je<=.5?je*(1+De):je+De-je*De,it=2*je-ct;function gt(Et){return Et>360?Et-=360:Et<0&&(Et+=360),Et<60?it+(ct-it)*Et/60:Et<180?ct:Et<240?it+(ct-it)*(240-Et)/60:it}function Dt(Et){return Math.round(gt(Et)*255)}return new fr(Dt(ve+120),Dt(ve),Dt(ve-120))}i.hcl=_t;function _t(ve,De,je){return this instanceof _t?(this.h=+ve,this.c=+De,void(this.l=+je)):arguments.length<2?ve instanceof _t?new _t(ve.h,ve.c,ve.l):ve instanceof jt?Ut(ve.l,ve.a,ve.b):Ut((ve=Xr((ve=i.rgb(ve)).r,ve.g,ve.b)).l,ve.a,ve.b):new _t(ve,De,je)}var Ft=_t.prototype=new Ct;Ft.brighter=function(ve){return new _t(this.h,this.c,Math.min(100,this.l+er*(arguments.length?ve:1)))},Ft.darker=function(ve){return new _t(this.h,this.c,Math.max(0,this.l-er*(arguments.length?ve:1)))},Ft.rgb=function(){return Wt(this.h,this.c,this.l).rgb()};function Wt(ve,De,je){return isNaN(ve)&&(ve=0),isNaN(De)&&(De=0),new jt(je,Math.cos(ve*=yt)*De,Math.sin(ve)*De)}i.lab=jt;function jt(ve,De,je){return this instanceof jt?(this.l=+ve,this.a=+De,void(this.b=+je)):arguments.length<2?ve instanceof jt?new jt(ve.l,ve.a,ve.b):ve instanceof _t?Wt(ve.h,ve.c,ve.l):Xr((ve=fr(ve)).r,ve.g,ve.b):new jt(ve,De,je)}var er=18,hr=.95047,vr=1,mr=1.08883,Ze=jt.prototype=new Ct;Ze.brighter=function(ve){return new jt(Math.min(100,this.l+er*(arguments.length?ve:1)),this.a,this.b)},Ze.darker=function(ve){return new jt(Math.max(0,this.l-er*(arguments.length?ve:1)),this.a,this.b)},Ze.rgb=function(){return Xe(this.l,this.a,this.b)};function Xe(ve,De,je){var it=(ve+16)/116,ct=it+De/500,gt=it-je/200;return ct=Bt(ct)*hr,it=Bt(it)*vr,gt=Bt(gt)*mr,new fr(nr(3.2404542*ct-1.5371385*it-.4985314*gt),nr(-.969266*ct+1.8760108*it+.041556*gt),nr(.0556434*ct-.2040259*it+1.0572252*gt))}function Ut(ve,De,je){return ve>0?new _t(Math.atan2(je,De)*ut,Math.sqrt(De*De+je*je),ve):new _t(NaN,NaN,ve)}function Bt(ve){return ve>.206893034?ve*ve*ve:(ve-.13793103448275862)/7.787037}function qt(ve){return ve>.008856?Math.pow(ve,.3333333333333333):7.787037*ve+.13793103448275862}function nr(ve){return Math.round(255*(ve<=.00304?12.92*ve:1.055*Math.pow(ve,.4166666666666667)-.055))}i.rgb=fr;function fr(ve,De,je){return this instanceof fr?(this.r=~~ve,this.g=~~De,void(this.b=~~je)):arguments.length<2?ve instanceof fr?new fr(ve.r,ve.g,ve.b):Tr(""+ve,fr,Rt):new fr(ve,De,je)}function ir(ve){return new fr(ve>>16,ve>>8&255,ve&255)}function Ht(ve){return ir(ve)+""}var pr=fr.prototype=new Ct;pr.brighter=function(ve){ve=Math.pow(.7,arguments.length?ve:1);var De=this.r,je=this.g,it=this.b,ct=30;return!De&&!je&&!it?new fr(ct,ct,ct):(De&&De>4,it=it>>4|it,ct=Yt&240,ct=ct>>4|ct,gt=Yt&15,gt=gt<<4|gt):ve.length===7&&(it=(Yt&16711680)>>16,ct=(Yt&65280)>>8,gt=Yt&255)),De(it,ct,gt))}function gr(ve,De,je){var it=Math.min(ve/=255,De/=255,je/=255),ct=Math.max(ve,De,je),gt=ct-it,Dt,Et,Yt=(ct+it)/2;return gt?(Et=Yt<.5?gt/(ct+it):gt/(2-ct-it),ve==ct?Dt=(De-je)/gt+(De0&&Yt<1?0:Dt),new ht(Dt,Et,Yt)}function Xr(ve,De,je){ve=Dr(ve),De=Dr(De),je=Dr(je);var it=qt((.4124564*ve+.3575761*De+.1804375*je)/hr),ct=qt((.2126729*ve+.7151522*De+.072175*je)/vr),gt=qt((.0193339*ve+.119192*De+.9503041*je)/mr);return jt(116*ct-16,500*(it-ct),200*(ct-gt))}function Dr(ve){return(ve/=255)<=.04045?ve/12.92:Math.pow((ve+.055)/1.055,2.4)}function Fr(ve){var De=parseFloat(ve);return ve.charAt(ve.length-1)==="%"?Math.round(De*2.55):De}var yn=i.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});yn.forEach(function(ve,De){yn.set(ve,ir(De))});function un(ve){return typeof ve=="function"?ve:function(){return ve}}i.functor=un,i.xhr=_n(H);function _n(ve){return function(De,je,it){return arguments.length===2&&typeof je=="function"&&(it=je,je=null),On(De,je,ve,it)}}function On(ve,De,je,it){var ct={},gt=i.dispatch("beforesend","progress","load","error"),Dt={},Et=new XMLHttpRequest,Yt=null;self.XDomainRequest&&!("withCredentials"in Et)&&/^(http(s)?:)?\/\//.test(ve)&&(Et=new XDomainRequest),"onload"in Et?Et.onload=Et.onerror=Zt:Et.onreadystatechange=function(){Et.readyState>3&&Zt()};function Zt(){var ar=Et.status,Ir;if(!ar&&Rr(Et)||ar>=200&&ar<300||ar===304){try{Ir=je.call(ct,Et)}catch(kr){gt.error.call(ct,kr);return}gt.load.call(ct,Ir)}else gt.error.call(ct,Et)}return Et.onprogress=function(ar){var Ir=i.event;i.event=ar;try{gt.progress.call(ct,Et)}finally{i.event=Ir}},ct.header=function(ar,Ir){return ar=(ar+"").toLowerCase(),arguments.length<2?Dt[ar]:(Ir==null?delete Dt[ar]:Dt[ar]=Ir+"",ct)},ct.mimeType=function(ar){return arguments.length?(De=ar==null?null:ar+"",ct):De},ct.responseType=function(ar){return arguments.length?(Yt=ar,ct):Yt},ct.response=function(ar){return je=ar,ct},["get","post"].forEach(function(ar){ct[ar]=function(){return ct.send.apply(ct,[ar].concat(w(arguments)))}}),ct.send=function(ar,Ir,kr){if(arguments.length===2&&typeof Ir=="function"&&(kr=Ir,Ir=null),Et.open(ar,ve,!0),De!=null&&!("accept"in Dt)&&(Dt.accept=De+",*/*"),Et.setRequestHeader)for(var tn in Dt)Et.setRequestHeader(tn,Dt[tn]);return De!=null&&Et.overrideMimeType&&Et.overrideMimeType(De),Yt!=null&&(Et.responseType=Yt),kr!=null&&ct.on("error",kr).on("load",function(dn){kr(null,dn)}),gt.beforesend.call(ct,Et),Et.send(Ir??null),ct},ct.abort=function(){return Et.abort(),ct},i.rebind(ct,gt,"on"),it==null?ct:ct.get(Mr(it))}function Mr(ve){return ve.length===1?function(De,je){ve(De==null?je:null)}:ve}function Rr(ve){var De=ve.responseType;return De&&De!=="text"?ve.response:ve.responseText}i.dsv=function(ve,De){var je=new RegExp('["'+ve+` -]`),it=ve.charCodeAt(0);function ct(Zt,ar,Ir){arguments.length<3&&(Ir=ar,ar=null);var kr=On(Zt,De,ar==null?gt:Dt(ar),Ir);return kr.row=function(tn){return arguments.length?kr.response((ar=tn)==null?gt:Dt(tn)):ar},kr}function gt(Zt){return ct.parse(Zt.responseText)}function Dt(Zt){return function(ar){return ct.parse(ar.responseText,Zt)}}ct.parse=function(Zt,ar){var Ir;return ct.parseRows(Zt,function(kr,tn){if(Ir)return Ir(kr,tn-1);var dn=function(Or){for(var Gr={},qr=kr.length,gn=0;gn=dn)return kr;if(gn)return gn=!1,Ir;var Kn=Or;if(Zt.charCodeAt(Kn)===34){for(var fa=Kn;fa++"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return Be=a(Be),m(et,Ze()?Reflect.construct(Be,[],a(et).constructor):Be.apply(et,Ye))}function m(et,Be){if(Be&&(h(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(et)}function a(et){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ye){return Ye.__proto__||Object.getPrototypeOf(Ye)},a(et)}function n(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function s(et,Be){if(typeof Be!="function"&&Be!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(Be&&Be.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),Be&&o(et,Be)}function o(et,Be){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ze,We){return Ze.__proto__=We,Ze},o(et,Be)}function h(et){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},h(et)}var f=t(59968),u=t(35984),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=c,O.SlowBuffer=N,O.INSPECT_MAX_BYTES=50;var p=2147483647;O.kMaxLength=p,c.TYPED_ARRAY_SUPPORT=E(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function E(){try{var et=new Uint8Array(1),Be={foo:function(){return 42}};return Object.setPrototypeOf(Be,Uint8Array.prototype),Object.setPrototypeOf(et,Be),et.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function g(et){if(et>p)throw new RangeError('The value "'+et+'" is invalid for option "size"');var Be=new Uint8Array(et);return Object.setPrototypeOf(Be,c.prototype),Be}function c(et,Be,Ye){if(typeof et=="number"){if(typeof Be=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(et)}return y(et,Be,Ye)}c.poolSize=8192;function y(et,Be,Ye){if(typeof et=="string")return T(et,Be);if(ArrayBuffer.isView(et))return P(et);if(et==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(et));if(mt(et,ArrayBuffer)||et&&mt(et.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mt(et,SharedArrayBuffer)||et&&mt(et.buffer,SharedArrayBuffer)))return d(et,Be,Ye);if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ze=et.valueOf&&et.valueOf();if(Ze!=null&&Ze!==et)return c.from(Ze,Be,Ye);var We=k(et);if(We)return We;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof et[Symbol.toPrimitive]=="function")return c.from(et[Symbol.toPrimitive]("string"),Be,Ye);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(et))}c.from=function(et,Be,Ye){return y(et,Be,Ye)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function A(et){if(typeof et!="number")throw new TypeError('"size" argument must be of type number');if(et<0)throw new RangeError('The value "'+et+'" is invalid for option "size"')}function M(et,Be,Ye){return A(et),et<=0?g(et):Be!==void 0?typeof Ye=="string"?g(et).fill(Be,Ye):g(et).fill(Be):g(et)}c.alloc=function(et,Be,Ye){return M(et,Be,Ye)};function R(et){return A(et),g(et<0?0:I(et)|0)}c.allocUnsafe=function(et){return R(et)},c.allocUnsafeSlow=function(et){return R(et)};function T(et,Be){if((typeof Be!="string"||Be==="")&&(Be="utf8"),!c.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);var Ye=B(et,Be)|0,Ze=g(Ye),We=Ze.write(et,Be);return We!==Ye&&(Ze=Ze.slice(0,We)),Ze}function L(et){for(var Be=et.length<0?0:I(et.length)|0,Ye=g(Be),Ze=0;Ze=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return et|0}function N(et){return+et!=et&&(et=0),c.alloc(+et)}c.isBuffer=function(Be){return Be!=null&&Be._isBuffer===!0&&Be!==c.prototype},c.compare=function(Be,Ye){if(mt(Be,Uint8Array)&&(Be=c.from(Be,Be.offset,Be.byteLength)),mt(Ye,Uint8Array)&&(Ye=c.from(Ye,Ye.offset,Ye.byteLength)),!c.isBuffer(Be)||!c.isBuffer(Ye))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Be===Ye)return 0;for(var Ze=Be.length,We=Ye.length,Fe=0,Me=Math.min(Ze,We);FeWe.length?(c.isBuffer(Me)||(Me=c.from(Me)),Me.copy(We,Fe)):Uint8Array.prototype.set.call(We,Me,Fe);else if(c.isBuffer(Me))Me.copy(We,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=Me.length}return We};function B(et,Be){if(c.isBuffer(et))return et.length;if(ArrayBuffer.isView(et)||mt(et,ArrayBuffer))return et.byteLength;if(typeof et!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+h(et));var Ye=et.length,Ze=arguments.length>2&&arguments[2]===!0;if(!Ze&&Ye===0)return 0;for(var We=!1;;)switch(Be){case"ascii":case"latin1":case"binary":return Ye;case"utf8":case"utf-8":return $e(et).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye*2;case"hex":return Ye>>>1;case"base64":return at(et).length;default:if(We)return Ze?-1:$e(et).length;Be=(""+Be).toLowerCase(),We=!0}}c.byteLength=B;function G(et,Be,Ye){var Ze=!1;if((Be===void 0||Be<0)&&(Be=0),Be>this.length||((Ye===void 0||Ye>this.length)&&(Ye=this.length),Ye<=0)||(Ye>>>=0,Be>>>=0,Ye<=Be))return"";for(et||(et="utf8");;)switch(et){case"hex":return ne(this,Be,Ye);case"utf8":case"utf-8":return fe(this,Be,Ye);case"ascii":return oe(this,Be,Ye);case"latin1":case"binary":return K(this,Be,Ye);case"base64":return ie(this,Be,Ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,Be,Ye);default:if(Ze)throw new TypeError("Unknown encoding: "+et);et=(et+"").toLowerCase(),Ze=!0}}c.prototype._isBuffer=!0;function U(et,Be,Ye){var Ze=et[Be];et[Be]=et[Ye],et[Ye]=Ze}c.prototype.swap16=function(){var Be=this.length;if(Be%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ye=0;YeYe&&(Be+=" ... "),""},b&&(c.prototype[b]=c.prototype.inspect),c.prototype.compare=function(Be,Ye,Ze,We,Fe){if(mt(Be,Uint8Array)&&(Be=c.from(Be,Be.offset,Be.byteLength)),!c.isBuffer(Be))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+h(Be));if(Ye===void 0&&(Ye=0),Ze===void 0&&(Ze=Be?Be.length:0),We===void 0&&(We=0),Fe===void 0&&(Fe=this.length),Ye<0||Ze>Be.length||We<0||Fe>this.length)throw new RangeError("out of range index");if(We>=Fe&&Ye>=Ze)return 0;if(We>=Fe)return-1;if(Ye>=Ze)return 1;if(Ye>>>=0,Ze>>>=0,We>>>=0,Fe>>>=0,this===Be)return 0;for(var Me=Fe-We,we=Ze-Ye,Re=Math.min(Me,we),Pe=this.slice(We,Fe),Ve=Be.slice(Ye,Ze),Je=0;Je2147483647?Ye=2147483647:Ye<-2147483648&&(Ye=-2147483648),Ye=+Ye,rt(Ye)&&(Ye=We?0:et.length-1),Ye<0&&(Ye=et.length+Ye),Ye>=et.length){if(We)return-1;Ye=et.length-1}else if(Ye<0)if(We)Ye=0;else return-1;if(typeof Be=="string"&&(Be=c.from(Be,Ze)),c.isBuffer(Be))return Be.length===0?-1:W(et,Be,Ye,Ze,We);if(typeof Be=="number")return Be=Be&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(et,Be,Ye):Uint8Array.prototype.lastIndexOf.call(et,Be,Ye):W(et,[Be],Ye,Ze,We);throw new TypeError("val must be string, number or Buffer")}function W(et,Be,Ye,Ze,We){var Fe=1,Me=et.length,we=Be.length;if(Ze!==void 0&&(Ze=String(Ze).toLowerCase(),Ze==="ucs2"||Ze==="ucs-2"||Ze==="utf16le"||Ze==="utf-16le")){if(et.length<2||Be.length<2)return-1;Fe=2,Me/=2,we/=2,Ye/=2}function Re(yt,ut){return Fe===1?yt[ut]:yt.readUInt16BE(ut*Fe)}var Pe;if(We){var Ve=-1;for(Pe=Ye;PeMe&&(Ye=Me-we),Pe=Ye;Pe>=0;Pe--){for(var Je=!0,ot=0;otWe&&(Ze=We)):Ze=We;var Fe=Be.length;Ze>Fe/2&&(Ze=Fe/2);var Me;for(Me=0;Me>>0,isFinite(Ze)?(Ze=Ze>>>0,We===void 0&&(We="utf8")):(We=Ze,Ze=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-Ye;if((Ze===void 0||Ze>Fe)&&(Ze=Fe),Be.length>0&&(Ze<0||Ye<0)||Ye>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Me=!1;;)switch(We){case"hex":return V(this,Be,Ye,Ze);case"utf8":case"utf-8":return $(this,Be,Ye,Ze);case"ascii":case"latin1":case"binary":return Z(this,Be,Ye,Ze);case"base64":return q(this,Be,Ye,Ze);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,Be,Ye,Ze);default:if(Me)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Me=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(et,Be,Ye){return Be===0&&Ye===et.length?f.fromByteArray(et):f.fromByteArray(et.slice(Be,Ye))}function fe(et,Be,Ye){Ye=Math.min(et.length,Ye);for(var Ze=[],We=Be;We239?4:Fe>223?3:Fe>191?2:1;if(We+we<=Ye){var Re=void 0,Pe=void 0,Ve=void 0,Je=void 0;switch(we){case 1:Fe<128&&(Me=Fe);break;case 2:Re=et[We+1],(Re&192)===128&&(Je=(Fe&31)<<6|Re&63,Je>127&&(Me=Je));break;case 3:Re=et[We+1],Pe=et[We+2],(Re&192)===128&&(Pe&192)===128&&(Je=(Fe&15)<<12|(Re&63)<<6|Pe&63,Je>2047&&(Je<55296||Je>57343)&&(Me=Je));break;case 4:Re=et[We+1],Pe=et[We+2],Ve=et[We+3],(Re&192)===128&&(Pe&192)===128&&(Ve&192)===128&&(Je=(Fe&15)<<18|(Re&63)<<12|(Pe&63)<<6|Ve&63,Je>65535&&Je<1114112&&(Me=Je))}}Me===null?(Me=65533,we=1):Me>65535&&(Me-=65536,Ze.push(Me>>>10&1023|55296),Me=56320|Me&1023),Ze.push(Me),We+=we}return J(Ze)}var Q=4096;function J(et){var Be=et.length;if(Be<=Q)return String.fromCharCode.apply(String,et);for(var Ye="",Ze=0;ZeZe)&&(Ye=Ze);for(var We="",Fe=Be;FeZe&&(Be=Ze),Ye<0?(Ye+=Ze,Ye<0&&(Ye=0)):Ye>Ze&&(Ye=Ze),YeYe)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(Be,Ye,Ze){Be=Be>>>0,Ye=Ye>>>0,Ze||re(Be,Ye,this.length);for(var We=this[Be],Fe=1,Me=0;++Me>>0,Ye=Ye>>>0,Ze||re(Be,Ye,this.length);for(var We=this[Be+--Ye],Fe=1;Ye>0&&(Fe*=256);)We+=this[Be+--Ye]*Fe;return We},c.prototype.readUint8=c.prototype.readUInt8=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,1,this.length),this[Be]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,2,this.length),this[Be]|this[Be+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,2,this.length),this[Be]<<8|this[Be+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),(this[Be]|this[Be+1]<<8|this[Be+2]<<16)+this[Be+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),this[Be]*16777216+(this[Be+1]<<16|this[Be+2]<<8|this[Be+3])},c.prototype.readBigUInt64LE=dt(function(Be){Be=Be>>>0,Ie(Be,"offset");var Ye=this[Be],Ze=this[Be+7];(Ye===void 0||Ze===void 0)&&Ue(Be,this.length-8);var We=Ye+this[++Be]*Math.pow(2,8)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,24),Fe=this[++Be]+this[++Be]*Math.pow(2,8)+this[++Be]*Math.pow(2,16)+Ze*Math.pow(2,24);return BigInt(We)+(BigInt(Fe)<>>0,Ie(Be,"offset");var Ye=this[Be],Ze=this[Be+7];(Ye===void 0||Ze===void 0)&&Ue(Be,this.length-8);var We=Ye*Math.pow(2,24)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,8)+this[++Be],Fe=this[++Be]*Math.pow(2,24)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,8)+Ze;return(BigInt(We)<>>0,Ye=Ye>>>0,Ze||re(Be,Ye,this.length);for(var We=this[Be],Fe=1,Me=0;++Me=Fe&&(We-=Math.pow(2,8*Ye)),We},c.prototype.readIntBE=function(Be,Ye,Ze){Be=Be>>>0,Ye=Ye>>>0,Ze||re(Be,Ye,this.length);for(var We=Ye,Fe=1,Me=this[Be+--We];We>0&&(Fe*=256);)Me+=this[Be+--We]*Fe;return Fe*=128,Me>=Fe&&(Me-=Math.pow(2,8*Ye)),Me},c.prototype.readInt8=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,1,this.length),this[Be]&128?(255-this[Be]+1)*-1:this[Be]},c.prototype.readInt16LE=function(Be,Ye){Be=Be>>>0,Ye||re(Be,2,this.length);var Ze=this[Be]|this[Be+1]<<8;return Ze&32768?Ze|4294901760:Ze},c.prototype.readInt16BE=function(Be,Ye){Be=Be>>>0,Ye||re(Be,2,this.length);var Ze=this[Be+1]|this[Be]<<8;return Ze&32768?Ze|4294901760:Ze},c.prototype.readInt32LE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),this[Be]|this[Be+1]<<8|this[Be+2]<<16|this[Be+3]<<24},c.prototype.readInt32BE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),this[Be]<<24|this[Be+1]<<16|this[Be+2]<<8|this[Be+3]},c.prototype.readBigInt64LE=dt(function(Be){Be=Be>>>0,Ie(Be,"offset");var Ye=this[Be],Ze=this[Be+7];(Ye===void 0||Ze===void 0)&&Ue(Be,this.length-8);var We=this[Be+4]+this[Be+5]*Math.pow(2,8)+this[Be+6]*Math.pow(2,16)+(Ze<<24);return(BigInt(We)<>>0,Ie(Be,"offset");var Ye=this[Be],Ze=this[Be+7];(Ye===void 0||Ze===void 0)&&Ue(Be,this.length-8);var We=(Ye<<24)+this[++Be]*Math.pow(2,16)+this[++Be]*Math.pow(2,8)+this[++Be];return(BigInt(We)<>>0,Ye||re(Be,4,this.length),u.read(this,Be,!0,23,4)},c.prototype.readFloatBE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,4,this.length),u.read(this,Be,!1,23,4)},c.prototype.readDoubleLE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,8,this.length),u.read(this,Be,!0,52,8)},c.prototype.readDoubleBE=function(Be,Ye){return Be=Be>>>0,Ye||re(Be,8,this.length),u.read(this,Be,!1,52,8)};function ee(et,Be,Ye,Ze,We,Fe){if(!c.isBuffer(et))throw new TypeError('"buffer" argument must be a Buffer instance');if(Be>We||Beet.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(Be,Ye,Ze,We){if(Be=+Be,Ye=Ye>>>0,Ze=Ze>>>0,!We){var Fe=Math.pow(2,8*Ze)-1;ee(this,Be,Ye,Ze,Fe,0)}var Me=1,we=0;for(this[Ye]=Be&255;++we>>0,Ze=Ze>>>0,!We){var Fe=Math.pow(2,8*Ze)-1;ee(this,Be,Ye,Ze,Fe,0)}var Me=Ze-1,we=1;for(this[Ye+Me]=Be&255;--Me>=0&&(we*=256);)this[Ye+Me]=Be/we&255;return Ye+Ze},c.prototype.writeUint8=c.prototype.writeUInt8=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,1,255,0),this[Ye]=Be&255,Ye+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,2,65535,0),this[Ye]=Be&255,this[Ye+1]=Be>>>8,Ye+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,2,65535,0),this[Ye]=Be>>>8,this[Ye+1]=Be&255,Ye+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,4,4294967295,0),this[Ye+3]=Be>>>24,this[Ye+2]=Be>>>16,this[Ye+1]=Be>>>8,this[Ye]=Be&255,Ye+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,4,4294967295,0),this[Ye]=Be>>>24,this[Ye+1]=Be>>>16,this[Ye+2]=Be>>>8,this[Ye+3]=Be&255,Ye+4};function de(et,Be,Ye,Ze,We){be(Be,Ze,We,et,Ye,7);var Fe=Number(Be&BigInt(4294967295));et[Ye++]=Fe,Fe=Fe>>8,et[Ye++]=Fe,Fe=Fe>>8,et[Ye++]=Fe,Fe=Fe>>8,et[Ye++]=Fe;var Me=Number(Be>>BigInt(32)&BigInt(4294967295));return et[Ye++]=Me,Me=Me>>8,et[Ye++]=Me,Me=Me>>8,et[Ye++]=Me,Me=Me>>8,et[Ye++]=Me,Ye}function le(et,Be,Ye,Ze,We){be(Be,Ze,We,et,Ye,7);var Fe=Number(Be&BigInt(4294967295));et[Ye+7]=Fe,Fe=Fe>>8,et[Ye+6]=Fe,Fe=Fe>>8,et[Ye+5]=Fe,Fe=Fe>>8,et[Ye+4]=Fe;var Me=Number(Be>>BigInt(32)&BigInt(4294967295));return et[Ye+3]=Me,Me=Me>>8,et[Ye+2]=Me,Me=Me>>8,et[Ye+1]=Me,Me=Me>>8,et[Ye]=Me,Ye+8}c.prototype.writeBigUInt64LE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return de(this,Be,Ye,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return le(this,Be,Ye,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(Be,Ye,Ze,We){if(Be=+Be,Ye=Ye>>>0,!We){var Fe=Math.pow(2,8*Ze-1);ee(this,Be,Ye,Ze,Fe-1,-Fe)}var Me=0,we=1,Re=0;for(this[Ye]=Be&255;++Me>0)-Re&255;return Ye+Ze},c.prototype.writeIntBE=function(Be,Ye,Ze,We){if(Be=+Be,Ye=Ye>>>0,!We){var Fe=Math.pow(2,8*Ze-1);ee(this,Be,Ye,Ze,Fe-1,-Fe)}var Me=Ze-1,we=1,Re=0;for(this[Ye+Me]=Be&255;--Me>=0&&(we*=256);)Be<0&&Re===0&&this[Ye+Me+1]!==0&&(Re=1),this[Ye+Me]=(Be/we>>0)-Re&255;return Ye+Ze},c.prototype.writeInt8=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,1,127,-128),Be<0&&(Be=255+Be+1),this[Ye]=Be&255,Ye+1},c.prototype.writeInt16LE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,2,32767,-32768),this[Ye]=Be&255,this[Ye+1]=Be>>>8,Ye+2},c.prototype.writeInt16BE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,2,32767,-32768),this[Ye]=Be>>>8,this[Ye+1]=Be&255,Ye+2},c.prototype.writeInt32LE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,4,2147483647,-2147483648),this[Ye]=Be&255,this[Ye+1]=Be>>>8,this[Ye+2]=Be>>>16,this[Ye+3]=Be>>>24,Ye+4},c.prototype.writeInt32BE=function(Be,Ye,Ze){return Be=+Be,Ye=Ye>>>0,Ze||ee(this,Be,Ye,4,2147483647,-2147483648),Be<0&&(Be=4294967295+Be+1),this[Ye]=Be>>>24,this[Ye+1]=Be>>>16,this[Ye+2]=Be>>>8,this[Ye+3]=Be&255,Ye+4},c.prototype.writeBigInt64LE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return de(this,Be,Ye,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=dt(function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return le(this,Be,Ye,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function he(et,Be,Ye,Ze,We,Fe){if(Ye+Ze>et.length)throw new RangeError("Index out of range");if(Ye<0)throw new RangeError("Index out of range")}function xe(et,Be,Ye,Ze,We){return Be=+Be,Ye=Ye>>>0,We||he(et,Be,Ye,4),u.write(et,Be,Ye,Ze,23,4),Ye+4}c.prototype.writeFloatLE=function(Be,Ye,Ze){return xe(this,Be,Ye,!0,Ze)},c.prototype.writeFloatBE=function(Be,Ye,Ze){return xe(this,Be,Ye,!1,Ze)};function Ee(et,Be,Ye,Ze,We){return Be=+Be,Ye=Ye>>>0,We||he(et,Be,Ye,8),u.write(et,Be,Ye,Ze,52,8),Ye+8}c.prototype.writeDoubleLE=function(Be,Ye,Ze){return Ee(this,Be,Ye,!0,Ze)},c.prototype.writeDoubleBE=function(Be,Ye,Ze){return Ee(this,Be,Ye,!1,Ze)},c.prototype.copy=function(Be,Ye,Ze,We){if(!c.isBuffer(Be))throw new TypeError("argument should be a Buffer");if(Ze||(Ze=0),!We&&We!==0&&(We=this.length),Ye>=Be.length&&(Ye=Be.length),Ye||(Ye=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Be.length-Ye>>0,Ze=Ze===void 0?this.length:Ze>>>0,Be||(Be=0);var Me;if(typeof Be=="number")for(Me=Ye;MeMath.pow(2,32)?We=Te(String(Ye)):typeof Ye=="bigint"&&(We=String(Ye),(Ye>Math.pow(BigInt(2),BigInt(32))||Ye<-Math.pow(BigInt(2),BigInt(32)))&&(We=Te(We)),We+="n"),Ze+=" It must be ".concat(Be,". Received ").concat(We),Ze},RangeError);function Te(et){for(var Be="",Ye=et.length,Ze=et[0]==="-"?1:0;Ye>=Ze+4;Ye-=3)Be="_".concat(et.slice(Ye-3,Ye)).concat(Be);return"".concat(et.slice(0,Ye)).concat(Be)}function Ae(et,Be,Ye){Ie(Be,"offset"),(et[Be]===void 0||et[Be+Ye]===void 0)&&Ue(Be,et.length-(Ye+1))}function be(et,Be,Ye,Ze,We,Fe){if(et>Ye||et= 0".concat(Me," and < 2").concat(Me," ** ").concat((Fe+1)*8).concat(Me):we=">= -(2".concat(Me," ** ").concat((Fe+1)*8-1).concat(Me,") and < 2 ** ")+"".concat((Fe+1)*8-1).concat(Me),new Se.ERR_OUT_OF_RANGE("value",we,et)}Ae(Ze,We,Fe)}function Ie(et,Be){if(typeof et!="number")throw new Se.ERR_INVALID_ARG_TYPE(Be,"number",et)}function Ue(et,Be,Ye){throw Math.floor(et)!==et?(Ie(et,Ye),new Se.ERR_OUT_OF_RANGE("offset","an integer",et)):Be<0?new Se.ERR_BUFFER_OUT_OF_BOUNDS:new Se.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(Be),et)}var Ne=/[^+/0-9A-Za-z-_]/g;function ze(et){if(et=et.split("=")[0],et=et.trim().replace(Ne,""),et.length<2)return"";for(;et.length%4!==0;)et=et+"=";return et}function $e(et,Be){Be=Be||1/0;for(var Ye,Ze=et.length,We=null,Fe=[],Me=0;Me55295&&Ye<57344){if(!We){if(Ye>56319){(Be-=3)>-1&&Fe.push(239,191,189);continue}else if(Me+1===Ze){(Be-=3)>-1&&Fe.push(239,191,189);continue}We=Ye;continue}if(Ye<56320){(Be-=3)>-1&&Fe.push(239,191,189),We=Ye;continue}Ye=(We-55296<<10|Ye-56320)+65536}else We&&(Be-=3)>-1&&Fe.push(239,191,189);if(We=null,Ye<128){if((Be-=1)<0)break;Fe.push(Ye)}else if(Ye<2048){if((Be-=2)<0)break;Fe.push(Ye>>6|192,Ye&63|128)}else if(Ye<65536){if((Be-=3)<0)break;Fe.push(Ye>>12|224,Ye>>6&63|128,Ye&63|128)}else if(Ye<1114112){if((Be-=4)<0)break;Fe.push(Ye>>18|240,Ye>>12&63|128,Ye>>6&63|128,Ye&63|128)}else throw new Error("Invalid code point")}return Fe}function st(et){for(var Be=[],Ye=0;Ye>8,We=Ye%256,Fe.push(We),Fe.push(Ze);return Fe}function at(et){return f.toByteArray(ze(et))}function nt(et,Be,Ye,Ze){var We;for(We=0;We=Be.length||We>=et.length);++We)Be[We+Ye]=et[We];return We}function mt(et,Be){return et instanceof Be||et!=null&&et.constructor!=null&&et.constructor.name!=null&&et.constructor.name===Be.name}function rt(et){return et!==et}var lt=function(){for(var et="0123456789abcdef",Be=new Array(256),Ye=0;Ye<16;++Ye)for(var Ze=Ye*16,We=0;We<16;++We)Be[Ze+We]=et[Ye]+et[We];return Be}();function dt(et){return typeof BigInt>"u"?wt:et}function wt(){throw new Error("BigInt not supported")}},25928:function(D){D.exports=S,D.exports.isMobile=S,D.exports.default=S;var O=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,l=/android|ipad|playbook|silk/i;function S(i){i||(i={});var C=i.ua;if(!C&&typeof navigator<"u"&&(C=navigator.userAgent),C&&C.headers&&typeof C.headers["user-agent"]=="string"&&(C=C.headers["user-agent"]),typeof C!="string")return!1;var w=O.test(C)&&!t.test(C)||!!i.tablet&&l.test(C);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&C.indexOf("Macintosh")!==-1&&C.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(D,O,t){t.r(O),t.d(O,{sankeyCenter:function(){return s},sankeyCircular:function(){return k},sankeyJustify:function(){return n},sankeyLeft:function(){return m},sankeyRight:function(){return a}});var l=t(84706),S=t(34712),i=t(10132),C=t(6688),w=t.n(C);function v(Se){return Se.target.depth}function m(Se){return Se.depth}function a(Se,ke){return ke-1-Se.height}function n(Se,ke){return Se.sourceLinks.length?Se.depth:ke-1}function s(Se){return Se.targetLinks.length?Se.depth:Se.sourceLinks.length?(0,l.SY)(Se.sourceLinks,v)-1:0}function o(Se){return function(){return Se}}var h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Se){return typeof Se}:function(Se){return Se&&typeof Symbol=="function"&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se};function f(Se,ke){return b(Se.source,ke.source)||Se.index-ke.index}function u(Se,ke){return b(Se.target,ke.target)||Se.index-ke.index}function b(Se,ke){return Se.partOfCycle===ke.partOfCycle?Se.y0-ke.y0:Se.circularLinkType==="top"||ke.circularLinkType==="bottom"?-1:1}function p(Se){return Se.value}function E(Se){return(Se.y0+Se.y1)/2}function g(Se){return E(Se.source)}function c(Se){return E(Se.target)}function y(Se){return Se.index}function A(Se){return Se.nodes}function M(Se){return Se.links}function R(Se,ke){var Te=Se.get(ke);if(!Te)throw new Error("missing: "+ke);return Te}function T(Se,ke){return ke(Se)}var L=25,P=10,d=.3;function k(){var Se=0,ke=0,Te=1,Ae=1,be=24,Ie,Ue=y,Ne=n,ze=A,$e=M,st=32,vt=2,at,nt=null;function mt(){var Ze={nodes:ze.apply(null,arguments),links:$e.apply(null,arguments)};rt(Ze),I(Ze,Ue,nt),lt(Ze),et(Ze),N(Ze,Ue),Be(Ze,st,Ue),Ye(Ze);for(var We=4,Fe=0;Fe"u"?"undefined":h(we))!=="object"&&(we=Fe.source=R(We,we)),(typeof Re>"u"?"undefined":h(Re))!=="object"&&(Re=Fe.target=R(We,Re)),we.sourceLinks.push(Fe),Re.targetLinks.push(Fe)}),Ze}function lt(Ze){Ze.nodes.forEach(function(We){We.partOfCycle=!1,We.value=Math.max((0,l.oh)(We.sourceLinks,p),(0,l.oh)(We.targetLinks,p)),We.sourceLinks.forEach(function(Fe){Fe.circular&&(We.partOfCycle=!0,We.circularLinkType=Fe.circularLinkType)}),We.targetLinks.forEach(function(Fe){Fe.circular&&(We.partOfCycle=!0,We.circularLinkType=Fe.circularLinkType)})})}function dt(Ze){var We=0,Fe=0,Me=0,we=0,Re=(0,l.kv)(Ze.nodes,function(Pe){return Pe.column});return Ze.links.forEach(function(Pe){Pe.circular&&(Pe.circularLinkType=="top"?We=We+Pe.width:Fe=Fe+Pe.width,Pe.target.column==0&&(we=we+Pe.width),Pe.source.column==Re&&(Me=Me+Pe.width))}),We=We>0?We+L+P:We,Fe=Fe>0?Fe+L+P:Fe,Me=Me>0?Me+L+P:Me,we=we>0?we+L+P:we,{top:We,bottom:Fe,left:we,right:Me}}function wt(Ze,We){var Fe=(0,l.kv)(Ze.nodes,function(ot){return ot.column}),Me=Te-Se,we=Ae-ke,Re=Me+We.right+We.left,Pe=we+We.top+We.bottom,Ve=Me/Re,Je=we/Pe;return Se=Se*Ve+We.left,Te=We.right==0?Te:Te*Ve,ke=ke*Je+We.top,Ae=Ae*Je,Ze.nodes.forEach(function(ot){ot.x0=Se+ot.column*((Te-Se-be)/Fe),ot.x1=ot.x0+be}),Je}function et(Ze){var We,Fe,Me;for(We=Ze.nodes,Fe=[],Me=0;We.length;++Me,We=Fe,Fe=[])We.forEach(function(we){we.depth=Me,we.sourceLinks.forEach(function(Re){Fe.indexOf(Re.target)<0&&!Re.circular&&Fe.push(Re.target)})});for(We=Ze.nodes,Fe=[],Me=0;We.length;++Me,We=Fe,Fe=[])We.forEach(function(we){we.height=Me,we.targetLinks.forEach(function(Re){Fe.indexOf(Re.source)<0&&!Re.circular&&Fe.push(Re.source)})});Ze.nodes.forEach(function(we){we.column=Math.floor(Ne.call(null,we,Me))})}function Be(Ze,We,Fe){var Me=(0,S.UJ)().key(function(ot){return ot.column}).sortKeys(l.XE).entries(Ze.nodes).map(function(ot){return ot.values});Pe(Fe),Je();for(var we=1,Re=We;Re>0;--Re)Ve(we*=.99,Fe),Je();function Pe(ot){if(at){var yt=1/0;Me.forEach(function(xt){var Lt=Ae*at/(xt.length+1);yt=Lt0))if(xt==0&&Vt==1)Xt=Lt.y1-Lt.y0,Lt.y0=Ae/2-Xt/2,Lt.y1=Ae/2+Xt/2;else if(xt==ut-1&&Vt==1)Xt=Lt.y1-Lt.y0,Lt.y0=Ae/2-Xt/2,Lt.y1=Ae/2+Xt/2;else{var dr=0,Tt=(0,l.mo)(Lt.sourceLinks,c),Kt=(0,l.mo)(Lt.targetLinks,g);Tt&&Kt?dr=(Tt+Kt)/2:dr=Tt||Kt;var qt=(dr-E(Lt))*ot;Lt.y0+=qt,Lt.y1+=qt}})})}function Je(){Me.forEach(function(ot){var yt,ut,It=ke,Vt=ot.length,xt;for(ot.sort(b),xt=0;xt0&&(yt.y0+=ut,yt.y1+=ut),It=yt.y1+Ie;if(ut=It-Ie-Ae,ut>0)for(It=yt.y0-=ut,yt.y1-=ut,xt=Vt-2;xt>=0;--xt)yt=ot[xt],ut=yt.y1+Ie-It,ut>0&&(yt.y0-=ut,yt.y1-=ut),It=yt.y0})}}function Ye(Ze){Ze.nodes.forEach(function(We){We.sourceLinks.sort(u),We.targetLinks.sort(f)}),Ze.nodes.forEach(function(We){var Fe=We.y0,Me=Fe,we=We.y1,Re=we;We.sourceLinks.forEach(function(Pe){Pe.circular?(Pe.y0=we-Pe.width/2,we=we-Pe.width):(Pe.y0=Fe+Pe.width/2,Fe+=Pe.width)}),We.targetLinks.forEach(function(Pe){Pe.circular?(Pe.y1=Re-Pe.width/2,Re=Re-Pe.width):(Pe.y1=Me+Pe.width/2,Me+=Pe.width)})})}return mt}function I(Se,ke,Te){var Ae=0;if(Te===null){for(var be=[],Ie=0;Ieke.source.column)}function U(Se,ke){var Te=0;Se.sourceLinks.forEach(function(be){Te=be.circular&&!xe(be,ke)?Te+1:Te});var Ae=0;return Se.targetLinks.forEach(function(be){Ae=be.circular&&!xe(be,ke)?Ae+1:Ae}),Te+Ae}function H(Se){var ke=Se.source.sourceLinks,Te=0;ke.forEach(function(Ie){Te=Ie.circular?Te+1:Te});var Ae=Se.target.targetLinks,be=0;return Ae.forEach(function(Ie){be=Ie.circular?be+1:be}),!(Te>1||be>1)}function W(Se,ke,Te){return Se.sort(Z),Se.forEach(function(Ae,be){var Ie=0;if(xe(Ae,Te)&&H(Ae))Ae.circularPathData.verticalBuffer=Ie+Ae.width/2;else{var Ue=0;for(Ue;UeIe?Ne:Ie}Ae.circularPathData.verticalBuffer=Ie+Ae.width/2}}),Se}function V(Se,ke,Te,Ae){var be=5,Ie=(0,l.SY)(Se.links,function(ze){return ze.source.y0});Se.links.forEach(function(ze){ze.circular&&(ze.circularPathData={})});var Ue=Se.links.filter(function(ze){return ze.circularLinkType=="top"});W(Ue,ke,Ae);var Ne=Se.links.filter(function(ze){return ze.circularLinkType=="bottom"});W(Ne,ke,Ae),Se.links.forEach(function(ze){if(ze.circular){if(ze.circularPathData.arcRadius=ze.width+P,ze.circularPathData.leftNodeBuffer=be,ze.circularPathData.rightNodeBuffer=be,ze.circularPathData.sourceWidth=ze.source.x1-ze.source.x0,ze.circularPathData.sourceX=ze.source.x0+ze.circularPathData.sourceWidth,ze.circularPathData.targetX=ze.target.x0,ze.circularPathData.sourceY=ze.y0,ze.circularPathData.targetY=ze.y1,xe(ze,Ae)&&H(ze))ze.circularPathData.leftSmallArcRadius=P+ze.width/2,ze.circularPathData.leftLargeArcRadius=P+ze.width/2,ze.circularPathData.rightSmallArcRadius=P+ze.width/2,ze.circularPathData.rightLargeArcRadius=P+ze.width/2,ze.circularLinkType=="bottom"?(ze.circularPathData.verticalFullExtent=ze.source.y1+L+ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.rightLargeArcRadius):(ze.circularPathData.verticalFullExtent=ze.source.y0-L-ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.rightLargeArcRadius);else{var $e=ze.source.column,st=ze.circularLinkType,vt=Se.links.filter(function(mt){return mt.source.column==$e&&mt.circularLinkType==st});ze.circularLinkType=="bottom"?vt.sort(ae):vt.sort(q);var at=0;vt.forEach(function(mt,rt){mt.circularLinkID==ze.circularLinkID&&(ze.circularPathData.leftSmallArcRadius=P+ze.width/2+at,ze.circularPathData.leftLargeArcRadius=P+ze.width/2+rt*ke+at),at=at+mt.width}),$e=ze.target.column,vt=Se.links.filter(function(mt){return mt.target.column==$e&&mt.circularLinkType==st}),ze.circularLinkType=="bottom"?vt.sort(fe):vt.sort(ie),at=0,vt.forEach(function(mt,rt){mt.circularLinkID==ze.circularLinkID&&(ze.circularPathData.rightSmallArcRadius=P+ze.width/2+at,ze.circularPathData.rightLargeArcRadius=P+ze.width/2+rt*ke+at),at=at+mt.width}),ze.circularLinkType=="bottom"?(ze.circularPathData.verticalFullExtent=Math.max(Te,ze.source.y1,ze.target.y1)+L+ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent-ze.circularPathData.rightLargeArcRadius):(ze.circularPathData.verticalFullExtent=Ie-L-ze.circularPathData.verticalBuffer,ze.circularPathData.verticalLeftInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.leftLargeArcRadius,ze.circularPathData.verticalRightInnerExtent=ze.circularPathData.verticalFullExtent+ze.circularPathData.rightLargeArcRadius)}ze.circularPathData.leftInnerExtent=ze.circularPathData.sourceX+ze.circularPathData.leftNodeBuffer,ze.circularPathData.rightInnerExtent=ze.circularPathData.targetX-ze.circularPathData.rightNodeBuffer,ze.circularPathData.leftFullExtent=ze.circularPathData.sourceX+ze.circularPathData.leftLargeArcRadius+ze.circularPathData.leftNodeBuffer,ze.circularPathData.rightFullExtent=ze.circularPathData.targetX-ze.circularPathData.rightLargeArcRadius-ze.circularPathData.rightNodeBuffer}if(ze.circular)ze.path=$(ze);else{var nt=(0,i.ak)().source(function(mt){var rt=mt.source.x0+(mt.source.x1-mt.source.x0),lt=mt.y0;return[rt,lt]}).target(function(mt){var rt=mt.target.x0,lt=mt.y1;return[rt,lt]});ze.path=nt(ze)}})}function $(Se){var ke="";return Se.circularLinkType=="top"?ke="M"+Se.circularPathData.sourceX+" "+Se.circularPathData.sourceY+" L"+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.sourceY+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftSmallArcRadius+" 0 0 0 "+Se.circularPathData.leftFullExtent+" "+(Se.circularPathData.sourceY-Se.circularPathData.leftSmallArcRadius)+" L"+Se.circularPathData.leftFullExtent+" "+Se.circularPathData.verticalLeftInnerExtent+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftLargeArcRadius+" 0 0 0 "+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.verticalFullExtent+" L"+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.verticalFullExtent+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightLargeArcRadius+" 0 0 0 "+Se.circularPathData.rightFullExtent+" "+Se.circularPathData.verticalRightInnerExtent+" L"+Se.circularPathData.rightFullExtent+" "+(Se.circularPathData.targetY-Se.circularPathData.rightSmallArcRadius)+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightSmallArcRadius+" 0 0 0 "+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.targetY+" L"+Se.circularPathData.targetX+" "+Se.circularPathData.targetY:ke="M"+Se.circularPathData.sourceX+" "+Se.circularPathData.sourceY+" L"+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.sourceY+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftSmallArcRadius+" 0 0 1 "+Se.circularPathData.leftFullExtent+" "+(Se.circularPathData.sourceY+Se.circularPathData.leftSmallArcRadius)+" L"+Se.circularPathData.leftFullExtent+" "+Se.circularPathData.verticalLeftInnerExtent+" A"+Se.circularPathData.leftLargeArcRadius+" "+Se.circularPathData.leftLargeArcRadius+" 0 0 1 "+Se.circularPathData.leftInnerExtent+" "+Se.circularPathData.verticalFullExtent+" L"+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.verticalFullExtent+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightLargeArcRadius+" 0 0 1 "+Se.circularPathData.rightFullExtent+" "+Se.circularPathData.verticalRightInnerExtent+" L"+Se.circularPathData.rightFullExtent+" "+(Se.circularPathData.targetY+Se.circularPathData.rightSmallArcRadius)+" A"+Se.circularPathData.rightLargeArcRadius+" "+Se.circularPathData.rightSmallArcRadius+" 0 0 1 "+Se.circularPathData.rightInnerExtent+" "+Se.circularPathData.targetY+" L"+Se.circularPathData.targetX+" "+Se.circularPathData.targetY,ke}function Z(Se,ke){return Q(Se)==Q(ke)?Se.circularLinkType=="bottom"?ae(Se,ke):q(Se,ke):Q(ke)-Q(Se)}function q(Se,ke){return Se.y0-ke.y0}function ae(Se,ke){return ke.y0-Se.y0}function ie(Se,ke){return Se.y1-ke.y1}function fe(Se,ke){return ke.y1-Se.y1}function Q(Se){return Se.target.column-Se.source.column}function J(Se){return Se.target.x0-Se.source.x1}function oe(Se,ke){var Te=B(Se),Ae=J(ke)/Math.tan(Te),be=he(Se)=="up"?Se.y1+Ae:Se.y1-Ae;return be}function K(Se,ke){var Te=B(Se),Ae=J(ke)/Math.tan(Te),be=he(Se)=="up"?Se.y1-Ae:Se.y1+Ae;return be}function ne(Se,ke,Te,Ae){Se.links.forEach(function(be){if(!be.circular&&be.target.column-be.source.column>1){var Ie=be.source.column+1,Ue=be.target.column-1,Ne=1,ze=Ue-Ie+1;for(Ne=1;Ie<=Ue;Ie++,Ne++)Se.nodes.forEach(function($e){if($e.column==Ie){var st=Ne/(ze+1),vt=Math.pow(1-st,3),at=3*st*Math.pow(1-st,2),nt=3*Math.pow(st,2)*(1-st),mt=Math.pow(st,3),rt=vt*be.y0+at*be.y0+nt*be.y1+mt*be.y1,lt=rt-be.width/2,dt=rt+be.width/2,wt;lt>$e.y0&<<$e.y1?(wt=$e.y1-lt+10,wt=$e.circularLinkType=="bottom"?wt:-wt,$e=re($e,wt,ke,Te),Se.nodes.forEach(function(et){T(et,Ae)==T($e,Ae)||et.column!=$e.column||ce($e,et)&&re(et,wt,ke,Te)})):dt>$e.y0&&dt<$e.y1?(wt=dt-$e.y0+10,$e=re($e,wt,ke,Te),Se.nodes.forEach(function(et){T(et,Ae)==T($e,Ae)||et.column!=$e.column||et.y0<$e.y1&&et.y1>$e.y1&&re(et,wt,ke,Te)})):lt<$e.y0&&dt>$e.y1&&(wt=dt-$e.y0+10,$e=re($e,wt,ke,Te),Se.nodes.forEach(function(et){T(et,Ae)==T($e,Ae)||et.column!=$e.column||et.y0<$e.y1&&et.y1>$e.y1&&re(et,wt,ke,Te)}))}})}})}function ce(Se,ke){return Se.y0>ke.y0&&Se.y0ke.y0&&Se.y1ke.y1}function re(Se,ke,Te,Ae){return Se.y0+ke>=Te&&Se.y1+ke<=Ae&&(Se.y0=Se.y0+ke,Se.y1=Se.y1+ke,Se.targetLinks.forEach(function(be){be.y1=be.y1+ke}),Se.sourceLinks.forEach(function(be){be.y0=be.y0+ke})),Se}function ee(Se,ke,Te,Ae){Se.nodes.forEach(function(be){Ae&&be.y+(be.y1-be.y0)>ke&&(be.y=be.y-(be.y+(be.y1-be.y0)-ke));var Ie=Se.links.filter(function(ze){return T(ze.source,Te)==T(be,Te)}),Ue=Ie.length;Ue>1&&Ie.sort(function(ze,$e){if(!ze.circular&&!$e.circular){if(ze.target.column==$e.target.column)return ze.y1-$e.y1;if(le(ze,$e)){if(ze.target.column>$e.target.column){var st=K($e,ze);return ze.y1-st}if($e.target.column>ze.target.column){var vt=K(ze,$e);return vt-$e.y1}}else return ze.y1-$e.y1}if(ze.circular&&!$e.circular)return ze.circularLinkType=="top"?-1:1;if($e.circular&&!ze.circular)return $e.circularLinkType=="top"?1:-1;if(ze.circular&&$e.circular)return ze.circularLinkType===$e.circularLinkType&&ze.circularLinkType=="top"?ze.target.column===$e.target.column?ze.target.y1-$e.target.y1:$e.target.column-ze.target.column:ze.circularLinkType===$e.circularLinkType&&ze.circularLinkType=="bottom"?ze.target.column===$e.target.column?$e.target.y1-ze.target.y1:ze.target.column-$e.target.column:ze.circularLinkType=="top"?-1:1});var Ne=be.y0;Ie.forEach(function(ze){ze.y0=Ne+ze.width/2,Ne=Ne+ze.width}),Ie.forEach(function(ze,$e){if(ze.circularLinkType=="bottom"){var st=$e+1,vt=0;for(st;st1&&be.sort(function(Ne,ze){if(!Ne.circular&&!ze.circular){if(Ne.source.column==ze.source.column)return Ne.y0-ze.y0;if(le(Ne,ze)){if(ze.source.column0?"up":"down"}function xe(Se,ke){return T(Se.source,ke)==T(Se.target,ke)}function Ee(Se,ke,Te){var Ae=Se.nodes,be=Se.links,Ie=!1,Ue=!1;if(be.forEach(function(at){at.circularLinkType=="top"?Ie=!0:at.circularLinkType=="bottom"&&(Ue=!0)}),Ie==!1||Ue==!1){var Ne=(0,l.SY)(Ae,function(at){return at.y0}),ze=(0,l.kv)(Ae,function(at){return at.y1}),$e=ze-Ne,st=Te-ke,vt=st/$e;Ae.forEach(function(at){var nt=(at.y1-at.y0)*vt;at.y0=(at.y0-Ne)*vt,at.y1=at.y0+nt}),be.forEach(function(at){at.y0=(at.y0-Ne)*vt,at.y1=(at.y1-Ne)*vt,at.width=at.width*vt})}}},26800:function(D,O,t){t.r(O),t.d(O,{sankey:function(){return y},sankeyCenter:function(){return m},sankeyJustify:function(){return v},sankeyLeft:function(){return C},sankeyLinkHorizontal:function(){return T},sankeyRight:function(){return w}});var l=t(84706),S=t(34712);function i(L){return L.target.depth}function C(L){return L.depth}function w(L,P){return P-1-L.height}function v(L,P){return L.sourceLinks.length?L.depth:P-1}function m(L){return L.targetLinks.length?L.depth:L.sourceLinks.length?(0,l.SY)(L.sourceLinks,i)-1:0}function a(L){return function(){return L}}function n(L,P){return o(L.source,P.source)||L.index-P.index}function s(L,P){return o(L.target,P.target)||L.index-P.index}function o(L,P){return L.y0-P.y0}function h(L){return L.value}function f(L){return(L.y0+L.y1)/2}function u(L){return f(L.source)*L.value}function b(L){return f(L.target)*L.value}function p(L){return L.index}function E(L){return L.nodes}function g(L){return L.links}function c(L,P){var d=L.get(P);if(!d)throw new Error("missing: "+P);return d}function y(){var L=0,P=0,d=1,k=1,I=24,N=8,B=p,G=v,U=E,H=g,W=32,V=2/3;function $(){var Q={nodes:U.apply(null,arguments),links:H.apply(null,arguments)};return Z(Q),q(Q),ae(Q),ie(Q),fe(Q),Q}$.update=function(Q){return fe(Q),Q},$.nodeId=function(Q){return arguments.length?(B=typeof Q=="function"?Q:a(Q),$):B},$.nodeAlign=function(Q){return arguments.length?(G=typeof Q=="function"?Q:a(Q),$):G},$.nodeWidth=function(Q){return arguments.length?(I=+Q,$):I},$.nodePadding=function(Q){return arguments.length?(N=+Q,$):N},$.nodes=function(Q){return arguments.length?(U=typeof Q=="function"?Q:a(Q),$):U},$.links=function(Q){return arguments.length?(H=typeof Q=="function"?Q:a(Q),$):H},$.size=function(Q){return arguments.length?(L=P=0,d=+Q[0],k=+Q[1],$):[d-L,k-P]},$.extent=function(Q){return arguments.length?(L=+Q[0][0],d=+Q[1][0],P=+Q[0][1],k=+Q[1][1],$):[[L,P],[d,k]]},$.iterations=function(Q){return arguments.length?(W=+Q,$):W};function Z(Q){Q.nodes.forEach(function(oe,K){oe.index=K,oe.sourceLinks=[],oe.targetLinks=[]});var J=(0,S.kH)(Q.nodes,B);Q.links.forEach(function(oe,K){oe.index=K;var ne=oe.source,ce=oe.target;typeof ne!="object"&&(ne=oe.source=c(J,ne)),typeof ce!="object"&&(ce=oe.target=c(J,ce)),ne.sourceLinks.push(oe),ce.targetLinks.push(oe)})}function q(Q){Q.nodes.forEach(function(J){J.value=Math.max((0,l.oh)(J.sourceLinks,h),(0,l.oh)(J.targetLinks,h))})}function ae(Q){var J,oe,K;for(J=Q.nodes,oe=[],K=0;J.length;++K,J=oe,oe=[])J.forEach(function(ce){ce.depth=K,ce.sourceLinks.forEach(function(re){oe.indexOf(re.target)<0&&oe.push(re.target)})});for(J=Q.nodes,oe=[],K=0;J.length;++K,J=oe,oe=[])J.forEach(function(ce){ce.height=K,ce.targetLinks.forEach(function(re){oe.indexOf(re.source)<0&&oe.push(re.source)})});var ne=(d-L-I)/(K-1);Q.nodes.forEach(function(ce){ce.x1=(ce.x0=L+Math.max(0,Math.min(K-1,Math.floor(G.call(null,ce,K))))*ne)+I})}function ie(Q){var J=(0,S.UJ)().key(function(de){return de.x0}).sortKeys(l.XE).entries(Q.nodes).map(function(de){return de.values});ne(),ee();for(var oe=1,K=W;K>0;--K)re(oe*=.99),ee(),ce(oe),ee();function ne(){var de=(0,l.kv)(J,function(xe){return xe.length}),le=V*(k-P)/(de-1);N>le&&(N=le);var he=(0,l.SY)(J,function(xe){return(k-P-(xe.length-1)*N)/(0,l.oh)(xe,h)});J.forEach(function(xe){xe.forEach(function(Ee,Se){Ee.y1=(Ee.y0=Se)+Ee.value*he})}),Q.links.forEach(function(xe){xe.width=xe.value*he})}function ce(de){J.forEach(function(le){le.forEach(function(he){if(he.targetLinks.length){var xe=((0,l.oh)(he.targetLinks,u)/(0,l.oh)(he.targetLinks,h)-f(he))*de;he.y0+=xe,he.y1+=xe}})})}function re(de){J.slice().reverse().forEach(function(le){le.forEach(function(he){if(he.sourceLinks.length){var xe=((0,l.oh)(he.sourceLinks,b)/(0,l.oh)(he.sourceLinks,h)-f(he))*de;he.y0+=xe,he.y1+=xe}})})}function ee(){J.forEach(function(de){var le,he,xe=P,Ee=de.length,Se;for(de.sort(o),Se=0;Se0&&(le.y0+=he,le.y1+=he),xe=le.y1+N;if(he=xe-N-k,he>0)for(xe=le.y0-=he,le.y1-=he,Se=Ee-2;Se>=0;--Se)le=de[Se],he=le.y1+N-xe,he>0&&(le.y0-=he,le.y1-=he),xe=le.y0})}}function fe(Q){Q.nodes.forEach(function(J){J.sourceLinks.sort(s),J.targetLinks.sort(n)}),Q.nodes.forEach(function(J){var oe=J.y0,K=oe;J.sourceLinks.forEach(function(ne){ne.y0=oe+ne.width/2,oe+=ne.width}),J.targetLinks.forEach(function(ne){ne.y1=K+ne.width/2,K+=ne.width})})}return $}var A=t(10132);function M(L){return[L.source.x1,L.y0]}function R(L){return[L.target.x0,L.y1]}function T(){return(0,A.ak)().source(M).target(R)}},33428:function(D,O,t){var l,S;(function(){var i={version:"3.8.0"},C=[].slice,w=function(ve){return C.call(ve)},v=self.document;function m(ve){return ve&&(ve.ownerDocument||ve.document||ve).documentElement}function a(ve){return ve&&(ve.ownerDocument&&ve.ownerDocument.defaultView||ve.document&&ve||ve.defaultView)}if(v)try{w(v.documentElement.childNodes)[0].nodeType}catch{w=function(De){for(var je=De.length,it=new Array(je);je--;)it[je]=De[je];return it}}if(Date.now||(Date.now=function(){return+new Date}),v)try{v.createElement("DIV").style.setProperty("opacity",0,"")}catch{var n=this.Element.prototype,s=n.setAttribute,o=n.setAttributeNS,h=this.CSSStyleDeclaration.prototype,f=h.setProperty;n.setAttribute=function(De,je){s.call(this,De,je+"")},n.setAttributeNS=function(De,je,it){o.call(this,De,je,it+"")},h.setProperty=function(De,je,it){f.call(this,De,je+"",it)}}i.ascending=u;function u(ve,De){return veDe?1:ve>=De?0:NaN}i.descending=function(ve,De){return Deve?1:De>=ve?0:NaN},i.min=function(ve,De){var je=-1,it=ve.length,ct,gt;if(arguments.length===1){for(;++je=gt){ct=gt;break}for(;++jegt&&(ct=gt)}else{for(;++je=gt){ct=gt;break}for(;++jegt&&(ct=gt)}return ct},i.max=function(ve,De){var je=-1,it=ve.length,ct,gt;if(arguments.length===1){for(;++je=gt){ct=gt;break}for(;++ject&&(ct=gt)}else{for(;++je=gt){ct=gt;break}for(;++ject&&(ct=gt)}return ct},i.extent=function(ve,De){var je=-1,it=ve.length,ct,gt,Dt;if(arguments.length===1){for(;++je=gt){ct=Dt=gt;break}for(;++jegt&&(ct=gt),Dt=gt){ct=Dt=gt;break}for(;++jegt&&(ct=gt),Dt1)return Dt/(Yt-1)},i.deviation=function(){var ve=i.variance.apply(this,arguments);return ve&&Math.sqrt(ve)};function E(ve){return{left:function(De,je,it,ct){for(arguments.length<3&&(it=0),arguments.length<4&&(ct=De.length);it>>1;ve(De[gt],je)<0?it=gt+1:ct=gt}return it},right:function(De,je,it,ct){for(arguments.length<3&&(it=0),arguments.length<4&&(ct=De.length);it>>1;ve(De[gt],je)>0?ct=gt:it=gt+1}return it}}}var g=E(u);i.bisectLeft=g.left,i.bisect=i.bisectRight=g.right,i.bisector=function(ve){return E(ve.length===1?function(De,je){return u(ve(De),je)}:ve)},i.shuffle=function(ve,De,je){(it=arguments.length)<3&&(je=ve.length,it<2&&(De=0));for(var it=je-De,ct,gt;it;)gt=Math.random()*it--|0,ct=ve[it+De],ve[it+De]=ve[gt+De],ve[gt+De]=ct;return ve},i.permute=function(ve,De){for(var je=De.length,it=new Array(je);je--;)it[je]=ve[De[je]];return it},i.pairs=function(ve){for(var De=0,je=ve.length-1,it=ve[0],ct=new Array(je<0?0:je);De=0;)for(Dt=ve[De],je=Dt.length;--je>=0;)gt[--ct]=Dt[je];return gt};var y=Math.abs;i.range=function(ve,De,je){if(arguments.length<3&&(je=1,arguments.length<2&&(De=ve,ve=0)),(De-ve)/je===1/0)throw new Error("infinite range");var it=[],ct=A(y(je)),gt=-1,Dt;if(ve*=ct,De*=ct,je*=ct,je<0)for(;(Dt=ve+je*++gt)>De;)it.push(Dt/ct);else for(;(Dt=ve+je*++gt)=De.length)return ct?ct.call(ve,Yt):it?Yt.sort(it):Yt;for(var nr=-1,Ir=Yt.length,Rr=De[Zt++],tn,dn,Or,Gr=new R,qr;++nr=De.length)return Et;var Zt=[],nr=je[Yt++];return Et.forEach(function(Ir,Rr){Zt.push({key:Ir,values:Dt(Rr,Yt)})}),nr?Zt.sort(function(Ir,Rr){return nr(Ir.key,Rr.key)}):Zt}return ve.map=function(Et,Yt){return gt(Yt,Et,0)},ve.entries=function(Et){return Dt(gt(i.map,Et,0),0)},ve.key=function(Et){return De.push(Et),ve},ve.sortKeys=function(Et){return je[De.length-1]=Et,ve},ve.sortValues=function(Et){return it=Et,ve},ve.rollup=function(Et){return ct=Et,ve},ve},i.set=function(ve){var De=new U;if(ve)for(var je=0,it=ve.length;je=0&&(it=ve.slice(je+1),ve=ve.slice(0,je)),ve)return arguments.length<2?this[ve].on(it):this[ve].on(it,De);if(arguments.length===2){if(De==null)for(ve in this)this.hasOwnProperty(ve)&&this[ve].on(it,null);return this}};function ae(ve){var De=[],je=new R;function it(){for(var ct=De,gt=-1,Dt=ct.length,Et;++gt=0&&(je=ve.slice(0,De))!=="xmlns"&&(ve=ve.slice(De+1)),xe.hasOwnProperty(je)?{space:xe[je],local:ve}:ve}},ee.attr=function(ve,De){if(arguments.length<2){if(typeof ve=="string"){var je=this.node();return ve=i.ns.qualify(ve),ve.local?je.getAttributeNS(ve.space,ve.local):je.getAttribute(ve)}for(De in ve)this.each(Ee(De,ve[De]));return this}return this.each(Ee(ve,De))};function Ee(ve,De){ve=i.ns.qualify(ve);function je(){this.removeAttribute(ve)}function it(){this.removeAttributeNS(ve.space,ve.local)}function ct(){this.setAttribute(ve,De)}function gt(){this.setAttributeNS(ve.space,ve.local,De)}function Dt(){var Yt=De.apply(this,arguments);Yt==null?this.removeAttribute(ve):this.setAttribute(ve,Yt)}function Et(){var Yt=De.apply(this,arguments);Yt==null?this.removeAttributeNS(ve.space,ve.local):this.setAttributeNS(ve.space,ve.local,Yt)}return De==null?ve.local?it:je:typeof De=="function"?ve.local?Et:Dt:ve.local?gt:ct}function Se(ve){return ve.trim().replace(/\s+/g," ")}ee.classed=function(ve,De){if(arguments.length<2){if(typeof ve=="string"){var je=this.node(),it=(ve=Te(ve)).length,ct=-1;if(De=je.classList){for(;++ct=0;)(gt=je[it])&&(ct&&ct!==gt.nextSibling&&ct.parentNode.insertBefore(gt,ct),ct=gt);return this},ee.sort=function(ve){ve=vt.apply(this,arguments);for(var De=-1,je=this.length;++De=De&&(De=ct+1);!(Yt=Dt[De])&&++De0&&(ve=ve.slice(0,ct));var Dt=dt.get(ve);Dt&&(ve=Dt,gt=et);function Et(){var nr=this[it];nr&&(this.removeEventListener(ve,nr,nr.$),delete this[it])}function Yt(){var nr=gt(De,w(arguments));Et.call(this),this.addEventListener(ve,this[it]=nr,nr.$=je),nr._=De}function Zt(){var nr=new RegExp("^__on([^.]+)"+i.requote(ve)+"$"),Ir;for(var Rr in this)if(Ir=Rr.match(nr)){var tn=this[Rr];this.removeEventListener(Ir[1],tn,tn.$),delete this[Rr]}}return ct?De?Yt:Et:De?Z:Zt}var dt=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});v&&dt.forEach(function(ve){"on"+ve in v&&dt.remove(ve)});function wt(ve,De){return function(je){var it=i.event;i.event=je,De[0]=this.__data__;try{ve.apply(this,De)}finally{i.event=it}}}function et(ve,De){var je=wt(ve,De);return function(it){var ct=this,gt=it.relatedTarget;(!gt||gt!==ct&&!(gt.compareDocumentPosition(ct)&8))&&je.call(ct,it)}}var Be,Ye=0;function Ze(ve){var De=".dragsuppress-"+ ++Ye,je="click"+De,it=i.select(a(ve)).on("touchmove"+De,ie).on("dragstart"+De,ie).on("selectstart"+De,ie);if(Be==null&&(Be="onselectstart"in ve?!1:V(ve.style,"userSelect")),Be){var ct=m(ve).style,gt=ct[Be];ct[Be]="none"}return function(Dt){if(it.on(De,null),Be&&(ct[Be]=gt),Dt){var Et=function(){it.on(je,null)};it.on(je,function(){ie(),Et()},!0),setTimeout(Et,0)}}}i.mouse=function(ve){return Fe(ve,fe())};var We=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(ve,De){De.changedTouches&&(De=De.changedTouches[0]);var je=ve.ownerSVGElement||ve;if(je.createSVGPoint){var it=je.createSVGPoint();if(We<0){var ct=a(ve);if(ct.scrollX||ct.scrollY){je=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var gt=je[0][0].getScreenCTM();We=!(gt.f||gt.e),je.remove()}}return We?(it.x=De.pageX,it.y=De.pageY):(it.x=De.clientX,it.y=De.clientY),it=it.matrixTransform(ve.getScreenCTM().inverse()),[it.x,it.y]}var Dt=ve.getBoundingClientRect();return[De.clientX-Dt.left-ve.clientLeft,De.clientY-Dt.top-ve.clientTop]}i.touch=function(ve,De,je){if(arguments.length<3&&(je=De,De=fe().changedTouches),De){for(var it=0,ct=De.length,gt;it1?ot:ve<-1?-ot:Math.asin(ve)}function xt(ve){return((ve=Math.exp(ve))-1/ve)/2}function Lt(ve){return((ve=Math.exp(ve))+1/ve)/2}function Xt(ve){return((ve=Math.exp(2*ve))-1)/(ve+1)}var dr=Math.SQRT2,Tt=2,Kt=4;i.interpolateZoom=function(ve,De){var je=ve[0],it=ve[1],ct=ve[2],gt=De[0],Dt=De[1],Et=De[2],Yt=gt-je,Zt=Dt-it,nr=Yt*Yt+Zt*Zt,Ir,Rr;if(nr0&&(sa=sa.transition().duration(Dt)),sa.call(xn.event)}function ya(){Gr&&Gr.domain(Or.range().map(function(sa){return(sa-ve.x)/ve.k}).map(Or.invert)),gn&&gn.domain(qr.range().map(function(sa){return(sa-ve.y)/ve.k}).map(qr.invert))}function Sa(sa){Et++||sa({type:"zoomstart"})}function ai(sa){ya(),sa({type:"zoom",scale:ve.k,translate:[ve.x,ve.y]})}function Va(sa){--Et||(sa({type:"zoomend"}),je=null)}function ei(){var sa=this,si=dn.of(sa,arguments),Ua=0,xi=i.select(a(sa)).on(Zt,ns).on(nr,as),so=an(i.mouse(sa)),Fi=Ze(sa);Gt.call(sa),Sa(si);function ns(){Ua=1,Ta(i.mouse(sa),so),ai(si)}function as(){xi.on(Zt,null).on(nr,null),Fi(Ua),Va(si)}}function Oi(){var sa=this,si=dn.of(sa,arguments),Ua={},xi=0,so,Fi=".zoom-"+i.event.changedTouches[0].identifier,ns="touchmove"+Fi,as="touchend"+Fi,cs=[],lo=i.select(sa),Ts=Ze(sa);Ga(),Sa(si),lo.on(Yt,null).on(Rr,Ga);function ba(){var fs=i.touches(sa);return so=ve.k,fs.forEach(function(Wi){Wi.identifier in Ua&&(Ua[Wi.identifier]=an(Wi))}),fs}function Ga(){var fs=i.event.target;i.select(fs).on(ns,Ws).on(as,el),cs.push(fs);for(var Wi=i.event.changedTouches,$o=0,No=Wi.length;$o1){var bo=Vl[0],Qc=Vl[1],bi=bo[0]-Qc[0],wo=bo[1]-Qc[1];xi=bi*bi+wo*wo}}function Ws(){var fs=i.touches(sa),Wi,$o,No,Vl;Gt.call(sa);for(var fu=0,bo=fs.length;fu1?1:De,je=je<0?0:je>1?1:je,ct=je<=.5?je*(1+De):je+De-je*De,it=2*je-ct;function gt(Et){return Et>360?Et-=360:Et<0&&(Et+=360),Et<60?it+(ct-it)*Et/60:Et<180?ct:Et<240?it+(ct-it)*(240-Et)/60:it}function Dt(Et){return Math.round(gt(Et)*255)}return new fr(Dt(ve+120),Dt(ve),Dt(ve-120))}i.hcl=zt;function zt(ve,De,je){return this instanceof zt?(this.h=+ve,this.c=+De,void(this.l=+je)):arguments.length<2?ve instanceof zt?new zt(ve.h,ve.c,ve.l):ve instanceof jt?Ut(ve.l,ve.a,ve.b):Ut((ve=Xr((ve=i.rgb(ve)).r,ve.g,ve.b)).l,ve.a,ve.b):new zt(ve,De,je)}var Ft=zt.prototype=new Ct;Ft.brighter=function(ve){return new zt(this.h,this.c,Math.min(100,this.l+er*(arguments.length?ve:1)))},Ft.darker=function(ve){return new zt(this.h,this.c,Math.max(0,this.l-er*(arguments.length?ve:1)))},Ft.rgb=function(){return Wt(this.h,this.c,this.l).rgb()};function Wt(ve,De,je){return isNaN(ve)&&(ve=0),isNaN(De)&&(De=0),new jt(je,Math.cos(ve*=yt)*De,Math.sin(ve)*De)}i.lab=jt;function jt(ve,De,je){return this instanceof jt?(this.l=+ve,this.a=+De,void(this.b=+je)):arguments.length<2?ve instanceof jt?new jt(ve.l,ve.a,ve.b):ve instanceof zt?Wt(ve.h,ve.c,ve.l):Xr((ve=fr(ve)).r,ve.g,ve.b):new jt(ve,De,je)}var er=18,hr=.95047,vr=1,pr=1.08883,Ke=jt.prototype=new Ct;Ke.brighter=function(ve){return new jt(Math.min(100,this.l+er*(arguments.length?ve:1)),this.a,this.b)},Ke.darker=function(ve){return new jt(Math.max(0,this.l-er*(arguments.length?ve:1)),this.a,this.b)},Ke.rgb=function(){return Xe(this.l,this.a,this.b)};function Xe(ve,De,je){var it=(ve+16)/116,ct=it+De/500,gt=it-je/200;return ct=Bt(ct)*hr,it=Bt(it)*vr,gt=Bt(gt)*pr,new fr(or(3.2404542*ct-1.5371385*it-.4985314*gt),or(-.969266*ct+1.8760108*it+.041556*gt),or(.0556434*ct-.2040259*it+1.0572252*gt))}function Ut(ve,De,je){return ve>0?new zt(Math.atan2(je,De)*ut,Math.sqrt(De*De+je*je),ve):new zt(NaN,NaN,ve)}function Bt(ve){return ve>.206893034?ve*ve*ve:(ve-.13793103448275862)/7.787037}function Qt(ve){return ve>.008856?Math.pow(ve,.3333333333333333):7.787037*ve+.13793103448275862}function or(ve){return Math.round(255*(ve<=.00304?12.92*ve:1.055*Math.pow(ve,.4166666666666667)-.055))}i.rgb=fr;function fr(ve,De,je){return this instanceof fr?(this.r=~~ve,this.g=~~De,void(this.b=~~je)):arguments.length<2?ve instanceof fr?new fr(ve.r,ve.g,ve.b):Sr(""+ve,fr,Rt):new fr(ve,De,je)}function ar(ve){return new fr(ve>>16,ve>>8&255,ve&255)}function Ht(ve){return ar(ve)+""}var mr=fr.prototype=new Ct;mr.brighter=function(ve){ve=Math.pow(.7,arguments.length?ve:1);var De=this.r,je=this.g,it=this.b,ct=30;return!De&&!je&&!it?new fr(ct,ct,ct):(De&&De>4,it=it>>4|it,ct=Yt&240,ct=ct>>4|ct,gt=Yt&15,gt=gt<<4|gt):ve.length===7&&(it=(Yt&16711680)>>16,ct=(Yt&65280)>>8,gt=Yt&255)),De(it,ct,gt))}function yr(ve,De,je){var it=Math.min(ve/=255,De/=255,je/=255),ct=Math.max(ve,De,je),gt=ct-it,Dt,Et,Yt=(ct+it)/2;return gt?(Et=Yt<.5?gt/(ct+it):gt/(2-ct-it),ve==ct?Dt=(De-je)/gt+(De0&&Yt<1?0:Dt),new ht(Dt,Et,Yt)}function Xr(ve,De,je){ve=kr(ve),De=kr(De),je=kr(je);var it=Qt((.4124564*ve+.3575761*De+.1804375*je)/hr),ct=Qt((.2126729*ve+.7151522*De+.072175*je)/vr),gt=Qt((.0193339*ve+.119192*De+.9503041*je)/pr);return jt(116*ct-16,500*(it-ct),200*(ct-gt))}function kr(ve){return(ve/=255)<=.04045?ve/12.92:Math.pow((ve+.055)/1.055,2.4)}function Dr(ve){var De=parseFloat(ve);return ve.charAt(ve.length-1)==="%"?Math.round(De*2.55):De}var bn=i.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});bn.forEach(function(ve,De){bn.set(ve,ar(De))});function un(ve){return typeof ve=="function"?ve:function(){return ve}}i.functor=un,i.xhr=Fn(H);function Fn(ve){return function(De,je,it){return arguments.length===2&&typeof je=="function"&&(it=je,je=null),On(De,je,ve,it)}}function On(ve,De,je,it){var ct={},gt=i.dispatch("beforesend","progress","load","error"),Dt={},Et=new XMLHttpRequest,Yt=null;self.XDomainRequest&&!("withCredentials"in Et)&&/^(http(s)?:)?\/\//.test(ve)&&(Et=new XDomainRequest),"onload"in Et?Et.onload=Et.onerror=Zt:Et.onreadystatechange=function(){Et.readyState>3&&Zt()};function Zt(){var nr=Et.status,Ir;if(!nr&&Br(Et)||nr>=200&&nr<300||nr===304){try{Ir=je.call(ct,Et)}catch(Rr){gt.error.call(ct,Rr);return}gt.load.call(ct,Ir)}else gt.error.call(ct,Et)}return Et.onprogress=function(nr){var Ir=i.event;i.event=nr;try{gt.progress.call(ct,Et)}finally{i.event=Ir}},ct.header=function(nr,Ir){return nr=(nr+"").toLowerCase(),arguments.length<2?Dt[nr]:(Ir==null?delete Dt[nr]:Dt[nr]=Ir+"",ct)},ct.mimeType=function(nr){return arguments.length?(De=nr==null?null:nr+"",ct):De},ct.responseType=function(nr){return arguments.length?(Yt=nr,ct):Yt},ct.response=function(nr){return je=nr,ct},["get","post"].forEach(function(nr){ct[nr]=function(){return ct.send.apply(ct,[nr].concat(w(arguments)))}}),ct.send=function(nr,Ir,Rr){if(arguments.length===2&&typeof Ir=="function"&&(Rr=Ir,Ir=null),Et.open(nr,ve,!0),De!=null&&!("accept"in Dt)&&(Dt.accept=De+",*/*"),Et.setRequestHeader)for(var tn in Dt)Et.setRequestHeader(tn,Dt[tn]);return De!=null&&Et.overrideMimeType&&Et.overrideMimeType(De),Yt!=null&&(Et.responseType=Yt),Rr!=null&&ct.on("error",Rr).on("load",function(dn){Rr(null,dn)}),gt.beforesend.call(ct,Et),Et.send(Ir??null),ct},ct.abort=function(){return Et.abort(),ct},i.rebind(ct,gt,"on"),it==null?ct:ct.get(gr(it))}function gr(ve){return ve.length===1?function(De,je){ve(De==null?je:null)}:ve}function Br(ve){var De=ve.responseType;return De&&De!=="text"?ve.response:ve.responseText}i.dsv=function(ve,De){var je=new RegExp('["'+ve+` +]`),it=ve.charCodeAt(0);function ct(Zt,nr,Ir){arguments.length<3&&(Ir=nr,nr=null);var Rr=On(Zt,De,nr==null?gt:Dt(nr),Ir);return Rr.row=function(tn){return arguments.length?Rr.response((nr=tn)==null?gt:Dt(tn)):nr},Rr}function gt(Zt){return ct.parse(Zt.responseText)}function Dt(Zt){return function(nr){return ct.parse(nr.responseText,Zt)}}ct.parse=function(Zt,nr){var Ir;return ct.parseRows(Zt,function(Rr,tn){if(Ir)return Ir(Rr,tn-1);var dn=function(Or){for(var Gr={},qr=Rr.length,gn=0;gn=dn)return Rr;if(gn)return gn=!1,Ir;var Kn=Or;if(Zt.charCodeAt(Kn)===34){for(var fa=Kn;fa++24?(isFinite(De)&&(clearTimeout(Tn),Tn=setTimeout(Wn,De)),fn=0):(fn=1,Sn(Wn))}i.timer.flush=function(){ma(),Aa()};function ma(){for(var ve=Date.now(),De=Zr;De;)ve>=De.t&&De.c(ve-De.t)&&(De.c=null),De=De.n;return ve}function Aa(){for(var ve,De=Zr,je=1/0;De;)De.c?(De.t=0;--Et)Or.push(ct[Zt[Ir[Et]][2]]);for(Et=+tn;Et1&&It(ve[je[it-2]],ve[je[it-1]],ve[ct])<=0;)--it;je[it++]=ct}return je.slice(0,it)}function Cr(ve,De){return ve[0]-De[0]||ve[1]-De[1]}i.geom.polygon=function(ve){return oe(ve,cn),ve};var cn=i.geom.polygon.prototype=[];cn.area=function(){for(var ve=-1,De=this.length,je,it=this[De-1],ct=0;++vewe)Et=Et.L;else if(Dt=De-vn(Et,je),Dt>we){if(!Et.R){it=Et;break}Et=Et.R}else{gt>-we?(it=Et.P,ct=Et):Dt>-we?(it=Et,ct=Et.N):it=ct=Et;break}var Yt=Ar(ve);if(Xn.insert(it,Yt),!(!it&&!ct)){if(it===ct){zn(it),ct=Ar(it.site),Xn.insert(Yt,ct),Yt.edge=ct.edge=xa(it.site,Yt.site),Pn(it),Pn(ct);return}if(!ct){Yt.edge=xa(it.site,Yt.site);return}zn(it),zn(ct);var Zt=it.site,ar=Zt.x,Ir=Zt.y,kr=ve.x-ar,tn=ve.y-Ir,dn=ct.site,Or=dn.x-ar,Gr=dn.y-Ir,qr=2*(kr*Gr-tn*Or),gn=kr*kr+tn*tn,bn=Or*Or+Gr*Gr,an={x:(Gr*gn-tn*bn)/qr+ar,y:(kr*bn-Or*gn)/qr+Ir};$a(ct.edge,Zt,dn,an),Yt.edge=xa(Zt,ve,null,an),ct.edge=xa(ve,dn,null,an),Pn(it),Pn(ct)}}function xn(ve,De){var je=ve.site,it=je.x,ct=je.y,gt=ct-De;if(!gt)return it;var Dt=ve.P;if(!Dt)return-1/0;je=Dt.site;var Et=je.x,Yt=je.y,Zt=Yt-De;if(!Zt)return Et;var ar=Et-it,Ir=1/gt-1/Zt,kr=ar/Zt;return Ir?(-kr+Math.sqrt(kr*kr-2*Ir*(ar*ar/(-2*Zt)-Yt+Zt/2+ct-gt/2)))/Ir+it:(it+Et)/2}function vn(ve,De){var je=ve.N;if(je)return xn(je,De);var it=ve.site;return it.y===De?it.x:1/0}function Lr(ve){this.site=ve,this.edges=[]}Lr.prototype.prepare=function(){for(var ve=this.edges,De=ve.length,je;De--;)je=ve[De].edge,(!je.b||!je.a)&&ve.splice(De,1);return ve.sort($r),ve.length};function Qr(ve){for(var De=ve[0][0],je=ve[1][0],it=ve[0][1],ct=ve[1][1],gt,Dt,Et,Yt,Zt=Rn,ar=Zt.length,Ir,kr,tn,dn,Or,Gr;ar--;)if(Ir=Zt[ar],!(!Ir||!Ir.prepare()))for(tn=Ir.edges,dn=tn.length,kr=0;krwe||x(Yt-Dt)>we)&&(tn.splice(kr,0,new qi(Ra(Ir.site,Gr,x(Et-De)we?{x:De,y:x(gt-De)we?{x:x(Dt-ct)we?{x:je,y:x(gt-je)we?{x:x(Dt-it)=-Re)){var kr=Yt*Yt+Zt*Zt,tn=ar*ar+Gr*Gr,dn=(Gr*kr-Zt*tn)/Ir,Or=(Yt*tn-ar*kr)/Ir,Gr=Or+Et,qr=Pr.pop()||new rn;qr.arc=ve,qr.site=ct,qr.x=dn+Dt,qr.y=Gr+Math.sqrt(dn*dn+Or*Or),qr.cy=Gr,ve.circle=qr;for(var gn=null,bn=Qa._;bn;)if(qr.y0)){if(Or/=tn,tn<0){if(Or0){if(Or>kr)return;Or>Ir&&(Ir=Or)}if(Or=je-Et,!(!tn&&Or<0)){if(Or/=tn,tn<0){if(Or>kr)return;Or>Ir&&(Ir=Or)}else if(tn>0){if(Or0)){if(Or/=dn,dn<0){if(Or0){if(Or>kr)return;Or>Ir&&(Ir=Or)}if(Or=it-Yt,!(!dn&&Or<0)){if(Or/=dn,dn<0){if(Or>kr)return;Or>Ir&&(Ir=Or)}else if(dn>0){if(Or0&&(ct.a={x:Et+Ir*tn,y:Yt+Ir*dn}),kr<1&&(ct.b={x:Et+kr*tn,y:Yt+kr*dn}),ct}}}}}}function Zn(ve){for(var De=In,je=Bn(ve[0][0],ve[0][1],ve[1][0],ve[1][1]),it=De.length,ct;it--;)ct=De[it],(!$n(ct,ve)||!je(ct)||x(ct.a.x-ct.b.x)=gt)return;if(ar>kr){if(!it)it={x:dn,y:Dt};else if(it.y>=Et)return;je={x:dn,y:Et}}else{if(!it)it={x:dn,y:Et};else if(it.y1)if(ar>kr){if(!it)it={x:(Dt-qr)/Gr,y:Dt};else if(it.y>=Et)return;je={x:(Et-qr)/Gr,y:Et}}else{if(!it)it={x:(Et-qr)/Gr,y:Et};else if(it.y=gt)return;je={x:gt,y:Gr*gt+qr}}else{if(!it)it={x:gt,y:Gr*gt+qr};else if(it.x=ar&&qr.x<=kr&&qr.y>=Ir&&qr.y<=tn?[[ar,tn],[kr,tn],[kr,Ir],[ar,Ir]]:[];gn.point=Yt[Or]}),Zt}function Et(Yt){return Yt.map(function(Zt,ar){return{x:Math.round(it(Zt,ar)/we)*we,y:Math.round(ct(Zt,ar)/we)*we,i:ar}})}return Dt.links=function(Yt){return ph(Et(Yt)).edges.filter(function(Zt){return Zt.l&&Zt.r}).map(function(Zt){return{source:Yt[Zt.l.i],target:Yt[Zt.r.i]}})},Dt.triangles=function(Yt){var Zt=[];return ph(Et(Yt)).cells.forEach(function(ar,Ir){for(var kr=ar.site,tn=ar.edges.sort($r),dn=-1,Or=tn.length,Gr,qr=tn[Or-1].edge,gn=qr.l===kr?qr.r:qr.l;++dnbn&&(bn=ar.x),ar.y>an&&(an=ar.y),tn.push(ar.x),dn.push(ar.y);else for(Or=0;Orbn&&(bn=Kn),fa>an&&(an=fa),tn.push(Kn),dn.push(fa)}var Sa=bn-qr,ua=an-gn;Sa>ua?an=gn+Sa:bn=qr+ua;function ya(Va,ei,Oi,Do,Hi,sa,si,Ua){if(!(isNaN(Oi)||isNaN(Do)))if(Va.leaf){var bi=Va.x,so=Va.y;if(bi!=null)if(x(bi-Oi)+x(so-Do)<.01)Ca(Va,ei,Oi,Do,Hi,sa,si,Ua);else{var Fi=Va.point;Va.x=Va.y=Va.point=null,Ca(Va,Fi,bi,so,Hi,sa,si,Ua),Ca(Va,ei,Oi,Do,Hi,sa,si,Ua)}else Va.x=Oi,Va.y=Do,Va.point=ei}else Ca(Va,ei,Oi,Do,Hi,sa,si,Ua)}function Ca(Va,ei,Oi,Do,Hi,sa,si,Ua){var bi=(Hi+si)*.5,so=(sa+Ua)*.5,Fi=Oi>=bi,rs=Do>=so,ns=rs<<1|Fi;Va.leaf=!1,Va=Va.nodes[ns]||(Va.nodes[ns]=Is()),Fi?Hi=bi:si=bi,rs?sa=so:Ua=so,ya(Va,ei,Oi,Do,Hi,sa,si,Ua)}var ai=Is();if(ai.add=function(Va){ya(ai,Va,+Ir(Va,++Or),+kr(Va,Or),qr,gn,bn,an)},ai.visit=function(Va){kc(Va,ai,qr,gn,bn,an)},ai.find=function(Va){return Cd(ai,Va[0],Va[1],qr,gn,bn,an)},Or=-1,De==null){for(;++Orgt||kr>Dt||tn=Kn,ua=je>=fa,ya=ua<<1|Sa,Ca=ya+4;yaje&&(gt=De.slice(je,gt),Et[Dt]?Et[Dt]+=gt:Et[++Dt]=gt),(it=it[0])===(ct=ct[0])?Et[Dt]?Et[Dt]+=ct:Et[++Dt]=ct:(Et[++Dt]=null,Yt.push({i:Dt,x:ko(it,ct)})),je=ss.lastIndex;return je=0&&!(it=i.interpolators[je](ve,De)););return it}i.interpolators=[function(ve,De){var je=typeof De;return(je==="string"?yn.has(De.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(De)?Po:jo:De instanceof Ct?Po:Array.isArray(De)?Js:je==="object"&&isNaN(De)?Dc:ko)(ve,De)}],i.interpolateArray=Js;function Js(ve,De){var je=[],it=[],ct=ve.length,gt=De.length,Dt=Math.min(ve.length,De.length),Et;for(Et=0;Et=0?ve.slice(0,De):ve,it=De>=0?ve.slice(De+1):"in";return je=Vs.get(je)||xv,it=t0.get(it)||H,zl(it(je.apply(null,C.call(arguments,1))))};function zl(ve){return function(De){return De<=0?0:De>=1?1:ve(De)}}function es(ve){return function(De){return 1-ve(1-De)}}function mh(ve){return function(De){return .5*(De<.5?ve(2*De):2-ve(2-2*De))}}function Cu(ve){return ve*ve}function Bl(ve){return ve*ve*ve}function yh(ve){if(ve<=0)return 0;if(ve>=1)return 1;var De=ve*ve,je=De*ve;return 4*(ve<.5?je:3*(ve-De)+je-.75)}function bv(ve){return function(De){return Math.pow(De,ve)}}function r0(ve){return 1-Math.cos(ve*ot)}function Md(ve){return Math.pow(2,10*(ve-1))}function n0(ve){return 1-Math.sqrt(1-ve*ve)}function a0(ve,De){var je;return arguments.length<2&&(De=.45),arguments.length?je=De/Ve*Math.asin(1/ve):(ve=1,je=De/4),function(it){return 1+ve*Math.pow(2,-10*it)*Math.sin((it-je)*Ve/De)}}function i0(ve){return ve||(ve=1.70158),function(De){return De*De*((ve+1)*De-ve)}}function xh(ve){return ve<.36363636363636365?7.5625*ve*ve:ve<.7272727272727273?7.5625*(ve-=.5454545454545454)*ve+.75:ve<.9090909090909091?7.5625*(ve-=.8181818181818182)*ve+.9375:7.5625*(ve-=.9545454545454546)*ve+.984375}i.interpolateHcl=o0;function o0(ve,De){ve=i.hcl(ve),De=i.hcl(De);var je=ve.h,it=ve.c,ct=ve.l,gt=De.h-je,Dt=De.c-it,Et=De.l-ct;return isNaN(Dt)&&(Dt=0,it=isNaN(it)?De.c:it),isNaN(gt)?(gt=0,je=isNaN(je)?De.h:je):gt>180?gt-=360:gt<-180&&(gt+=360),function(Yt){return Wt(je+gt*Yt,it+Dt*Yt,ct+Et*Yt)+""}}i.interpolateHsl=s0;function s0(ve,De){ve=i.hsl(ve),De=i.hsl(De);var je=ve.h,it=ve.s,ct=ve.l,gt=De.h-je,Dt=De.s-it,Et=De.l-ct;return isNaN(Dt)&&(Dt=0,it=isNaN(it)?De.s:it),isNaN(gt)?(gt=0,je=isNaN(je)?De.h:je):gt>180?gt-=360:gt<-180&&(gt+=360),function(Yt){return Rt(je+gt*Yt,it+Dt*Yt,ct+Et*Yt)+""}}i.interpolateLab=wv;function wv(ve,De){ve=i.lab(ve),De=i.lab(De);var je=ve.l,it=ve.a,ct=ve.b,gt=De.l-je,Dt=De.a-it,Et=De.b-ct;return function(Yt){return Xe(je+gt*Yt,it+Dt*Yt,ct+Et*Yt)+""}}i.interpolateRound=Tv;function Tv(ve,De){return De-=ve,function(je){return Math.round(ve+De*je)}}i.transform=function(ve){var De=v.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(je){if(je!=null){De.setAttribute("transform",je);var it=De.transform.baseVal.consolidate()}return new rc(it?it.matrix:Sv)})(ve)};function rc(ve){var De=[ve.a,ve.b],je=[ve.c,ve.d],it=Of(De),ct=Fc(De,je),gt=Of(Ff(je,De,-ct))||0;De[0]*je[1]180?De+=360:De-ve>180&&(ve+=360),it.push({i:je.push(nu(je)+"rotate(",null,")")-2,x:ko(ve,De)})):De&&je.push(nu(je)+"rotate("+De+")")}function Cv(ve,De,je,it){ve!==De?it.push({i:je.push(nu(je)+"skewX(",null,")")-2,x:ko(ve,De)}):De&&je.push(nu(je)+"skewX("+De+")")}function Mv(ve,De,je,it){if(ve[0]!==De[0]||ve[1]!==De[1]){var ct=je.push(nu(je)+"scale(",null,",",null,")");it.push({i:ct-4,x:ko(ve[0],De[0])},{i:ct-2,x:ko(ve[1],De[1])})}else(De[0]!==1||De[1]!==1)&&je.push(nu(je)+"scale("+De+")")}function Ed(ve,De){var je=[],it=[];return ve=i.transform(ve),De=i.transform(De),l0(ve.translate,De.translate,je,it),Ad(ve.rotate,De.rotate,je,it),Cv(ve.skew,De.skew,je,it),Mv(ve.scale,De.scale,je,it),ve=De=null,function(ct){for(var gt=-1,Dt=it.length,Et;++gt0?gt=an:(je.c=null,je.t=NaN,je=null,De.end({type:"end",alpha:gt=0})):an>0&&(De.start({type:"start",alpha:gt=an}),je=Fn(ve.tick)),ve):gt},ve.start=function(){var an,Kn=tn.length,fa=dn.length,Sa=it[0],ua=it[1],ya,Ca;for(an=0;an=0;)gt.push(ar=Zt[Yt]),ar.parent=Et,ar.depth=Et.depth+1;je&&(Et.value=0),Et.children=Zt}else je&&(Et.value=+je.call(it,Et,Et.depth)||0),delete Et.children;return js(ct,function(Ir){var kr,tn;ve&&(kr=Ir.children)&&kr.sort(ve),je&&(tn=Ir.parent)&&(tn.value+=Ir.value)}),Dt}return it.sort=function(ct){return arguments.length?(ve=ct,it):ve},it.children=function(ct){return arguments.length?(De=ct,it):De},it.value=function(ct){return arguments.length?(je=ct,it):je},it.revalue=function(ct){return je&&(Nc(ct,function(gt){gt.children&&(gt.value=0)}),js(ct,function(gt){var Dt;gt.children||(gt.value=+je.call(it,gt,gt.depth)||0),(Dt=gt.parent)&&(Dt.value+=gt.value)})),ct},it};function Bc(ve,De){return i.rebind(ve,De,"sort","children","value"),ve.nodes=ve,ve.links=c0,ve}function Nc(ve,De){for(var je=[ve];(ve=je.pop())!=null;)if(De(ve),(ct=ve.children)&&(it=ct.length))for(var it,ct;--it>=0;)je.push(ct[it])}function js(ve,De){for(var je=[ve],it=[];(ve=je.pop())!=null;)if(it.push(ve),(Dt=ve.children)&&(gt=Dt.length))for(var ct=-1,gt,Dt;++ctct&&(ct=Et),it.push(Et)}for(Dt=0;Dtit&&(je=De,it=ct);return je}function Ev(ve){return ve.reduce(ml,0)}function ml(ve,De){return ve+De[1]}i.layout.histogram=function(){var ve=!0,De=Number,je=ac,it=Pv;function ct(gt,kr){for(var Et=[],Yt=gt.map(De,this),Zt=je.call(this,Yt,kr),ar=it.call(this,Zt,Yt,kr),Ir,kr=-1,tn=Yt.length,dn=ar.length-1,Or=ve?1:1/tn,Gr;++kr0)for(kr=-1;++kr=Zt[0]&&Gr<=Zt[1]&&(Ir=Et[i.bisect(ar,Gr,1,dn)-1],Ir.y+=Or,Ir.push(gt[kr]));return Et}return ct.value=function(gt){return arguments.length?(De=gt,ct):De},ct.range=function(gt){return arguments.length?(je=un(gt),ct):je},ct.bins=function(gt){return arguments.length?(it=typeof gt=="number"?function(Dt){return Mh(Dt,gt)}:un(gt),ct):it},ct.frequency=function(gt){return arguments.length?(ve=!!gt,ct):ve},ct};function Pv(ve,De){return Mh(ve,Math.ceil(Math.log(De.length)/Math.LN2+1))}function Mh(ve,De){for(var je=-1,it=+ve[0],ct=(ve[1]-it)/De,gt=[];++je<=De;)gt[je]=ct*je+it;return gt}function ac(ve){return[i.min(ve),i.max(ve)]}i.layout.pack=function(){var ve=i.layout.hierarchy().sort(Au),De=0,je=[1,1],it;function ct(gt,Dt){var Et=ve.call(this,gt,Dt),Yt=Et[0],Zt=je[0],ar=je[1],Ir=it==null?Math.sqrt:typeof it=="function"?it:function(){return it};if(Yt.x=Yt.y=0,js(Yt,function(tn){tn.r=+Ir(tn.value)}),js(Yt,yl),De){var kr=De*(it?1:Math.max(2*Yt.r/Zt,2*Yt.r/ar))/2;js(Yt,function(tn){tn.r+=kr}),js(Yt,yl),js(Yt,function(tn){tn.r-=kr})}return Eu(Yt,Zt/2,ar/2,it?1:1/Math.max(2*Yt.r/Zt,2*Yt.r/ar)),Et}return ct.size=function(gt){return arguments.length?(je=gt,ct):je},ct.radius=function(gt){return arguments.length?(it=gt==null||typeof gt=="function"?gt:+gt,ct):it},ct.padding=function(gt){return arguments.length?(De=+gt,ct):De},Bc(ct,ve)};function Au(ve,De){return ve.value-De.value}function Dd(ve,De){var je=ve._pack_next;ve._pack_next=De,De._pack_prev=ve,De._pack_next=je,je._pack_prev=De}function Lo(ve,De){ve._pack_next=De,De._pack_prev=ve}function Bf(ve,De){var je=De.x-ve.x,it=De.y-ve.y,ct=ve.r+De.r;return .999*ct*ct>je*je+it*it}function yl(ve){if(!(De=ve.children)||!(kr=De.length))return;var De,je=1/0,it=-1/0,ct=1/0,gt=-1/0,Dt,Et,Yt,Zt,ar,Ir,kr;function tn(an){je=Math.min(an.x-an.r,je),it=Math.max(an.x+an.r,it),ct=Math.min(an.y-an.r,ct),gt=Math.max(an.y+an.r,gt)}if(De.forEach(au),Dt=De[0],Dt.x=-Dt.r,Dt.y=0,tn(Dt),kr>1&&(Et=De[1],Et.x=Et.r,Et.y=0,tn(Et),kr>2))for(Yt=De[2],xl(Dt,Et,Yt),tn(Yt),Dd(Dt,Yt),Dt._pack_prev=Yt,Dd(Yt,Et),Et=Dt._pack_next,Zt=3;ZtGr.x&&(Gr=Kn),Kn.depth>qr.depth&&(qr=Kn)});var gn=De(Or,Gr)/2-Or.x,bn=je[0]/(Gr.x+De(Gr,Or)/2+gn),an=je[1]/(qr.depth||1);Nc(tn,function(Kn){Kn.x=(Kn.x+gn)*bn,Kn.y=Kn.depth*an})}return kr}function gt(ar){for(var Ir={A:null,children:[ar]},kr=[Ir],tn;(tn=kr.pop())!=null;)for(var dn=tn.children,Or,Gr=0,qr=dn.length;Gr0&&(Nf(d0(Or,ar,kr),ar,Kn),qr+=Kn,gn+=Kn),bn+=Or.m,qr+=tn.m,an+=Gr.m,gn+=dn.m;Or&&!al(dn)&&(dn.t=Or,dn.m+=bn-gn),tn&&!bl(Gr)&&(Gr.t=tn,Gr.m+=qr-an,kr=ar)}return kr}function Zt(ar){ar.x*=je[0],ar.y=ar.depth*je[1]}return ct.separation=function(ar){return arguments.length?(De=ar,ct):De},ct.size=function(ar){return arguments.length?(it=(je=ar)==null?Zt:null,ct):it?null:je},ct.nodeSize=function(ar){return arguments.length?(it=(je=ar)==null?null:Zt,ct):it?je:null},Bc(ct,ve)};function iu(ve,De){return ve.parent==De.parent?1:2}function bl(ve){var De=ve.children;return De.length?De[0]:ve.t}function al(ve){var De=ve.children,je;return(je=De.length)?De[je-1]:ve.t}function Nf(ve,De,je){var it=je/(De.i-ve.i);De.c-=it,De.s+=je,ve.c+=it,De.z+=je,De.m+=je}function f0(ve){for(var De=0,je=0,it=ve.children,ct=it.length,gt;--ct>=0;)gt=it[ct],gt.z+=De,gt.m+=De,De+=gt.s+(je+=gt.c)}function d0(ve,De,je){return ve.a.parent===De.parent?ve.a:je}i.layout.cluster=function(){var ve=i.layout.hierarchy().sort(null).value(null),De=iu,je=[1,1],it=!1;function ct(gt,Dt){var Et=ve.call(this,gt,Dt),Yt=Et[0],Zt,ar=0;js(Yt,function(Or){var Gr=Or.children;Gr&&Gr.length?(Or.x=v0(Gr),Or.y=h0(Gr)):(Or.x=Zt?ar+=De(Or,Zt):0,Or.y=0,Zt=Or)});var Ir=Ah(Yt),kr=Lv(Yt),tn=Ir.x-De(Ir,kr)/2,dn=kr.x+De(kr,Ir)/2;return js(Yt,it?function(Or){Or.x=(Or.x-Yt.x)*je[0],Or.y=(Yt.y-Or.y)*je[1]}:function(Or){Or.x=(Or.x-tn)/(dn-tn)*je[0],Or.y=(1-(Yt.y?Or.y/Yt.y:1))*je[1]}),Et}return ct.separation=function(gt){return arguments.length?(De=gt,ct):De},ct.size=function(gt){return arguments.length?(it=(je=gt)==null,ct):it?null:je},ct.nodeSize=function(gt){return arguments.length?(it=(je=gt)!=null,ct):it?je:null},Bc(ct,ve)};function h0(ve){return 1+i.max(ve,function(De){return De.y})}function v0(ve){return ve.reduce(function(De,je){return De+je.x},0)/ve.length}function Ah(ve){var De=ve.children;return De&&De.length?Ah(De[0]):ve}function Lv(ve){var De=ve.children,je;return De&&(je=De.length)?Lv(De[je-1]):ve}i.layout.treemap=function(){var ve=i.layout.hierarchy(),De=Math.round,je=[1,1],it=null,ct=Vc,gt=!1,Dt,Et="squarify",Yt=.5*(1+Math.sqrt(5));function Zt(Or,Gr){for(var qr=-1,gn=Or.length,bn,an;++qr0;)gn.push(an=bn[ua-1]),gn.area+=an.area,Et!=="squarify"||(fa=kr(gn,Sa))<=Kn?(bn.pop(),Kn=fa):(gn.area-=gn.pop().area,tn(gn,Sa,qr,!1),Sa=Math.min(qr.dx,qr.dy),gn.length=gn.area=0,Kn=1/0);gn.length&&(tn(gn,Sa,qr,!0),gn.length=gn.area=0),Gr.forEach(ar)}}function Ir(Or){var Gr=Or.children;if(Gr&&Gr.length){var qr=ct(Or),gn=Gr.slice(),bn,an=[];for(Zt(gn,qr.dx*qr.dy/Or.value),an.area=0;bn=gn.pop();)an.push(bn),an.area+=bn.area,bn.z!=null&&(tn(an,bn.z?qr.dx:qr.dy,qr,!gn.length),an.length=an.area=0);Gr.forEach(Ir)}}function kr(Or,Gr){for(var qr=Or.area,gn,bn=0,an=1/0,Kn=-1,fa=Or.length;++Knbn&&(bn=gn));return qr*=qr,Gr*=Gr,qr?Math.max(Gr*bn*Yt/qr,qr/(Gr*an*Yt)):1/0}function tn(Or,Gr,qr,gn){var bn=-1,an=Or.length,Kn=qr.x,fa=qr.y,Sa=Gr?De(Or.area/Gr):0,ua;if(Gr==qr.dx){for((gn||Sa>qr.dy)&&(Sa=qr.dy);++bnqr.dx)&&(Sa=qr.dx);++bn1);return ve+De*it*Math.sqrt(-2*Math.log(gt)/gt)}},logNormal:function(){var ve=i.random.normal.apply(i,arguments);return function(){return Math.exp(ve())}},bates:function(ve){var De=i.random.irwinHall(ve);return function(){return De()/ve}},irwinHall:function(ve){return function(){for(var De=0,je=0;je2?Rv:Iv,Zt=it?_c:vl;return ct=Yt(ve,De,Zt,je),gt=Yt(De,ve,Zt,ls),Et}function Et(Yt){return ct(Yt)}return Et.invert=function(Yt){return gt(Yt)},Et.domain=function(Yt){return arguments.length?(ve=Yt.map(Number),Dt()):ve},Et.range=function(Yt){return arguments.length?(De=Yt,Dt()):De},Et.rangeRound=function(Yt){return Et.range(Yt).interpolate(Tv)},Et.clamp=function(Yt){return arguments.length?(it=Yt,Dt()):it},Et.interpolate=function(Yt){return arguments.length?(je=Yt,Dt()):je},Et.ticks=function(Yt){return wl(ve,Yt)},Et.tickFormat=function(Yt,Zt){return d3_scale_linearTickFormat(ve,Yt,Zt)},Et.nice=function(Yt){return Dv(ve,Yt),Dt()},Et.copy=function(){return kv(ve,De,je,it)},Dt()}function Eh(ve,De){return i.rebind(ve,De,"range","rangeRound","interpolate","clamp")}function Dv(ve,De){return Uf(ve,ou(Rs(ve,De)[2])),Uf(ve,ou(Rs(ve,De)[2])),ve}function Rs(ve,De){De==null&&(De=10);var je=Qs(ve),it=je[1]-je[0],ct=Math.pow(10,Math.floor(Math.log(it/De)/Math.LN10)),gt=De/it*ct;return gt<=.15?ct*=10:gt<=.35?ct*=5:gt<=.75&&(ct*=2),je[0]=Math.ceil(je[0]/ct)*ct,je[1]=Math.floor(je[1]/ct)*ct+ct*.5,je[2]=ct,je}function wl(ve,De){return i.range.apply(i,Rs(ve,De))}i.scale.log=function(){return Pu(i.scale.linear().domain([0,1]),10,!0,[1,10])};function Pu(ve,De,je,it){function ct(Et){return(je?Math.log(Et<0?0:Et):-Math.log(Et>0?0:-Et))/Math.log(De)}function gt(Et){return je?Math.pow(De,Et):-Math.pow(De,-Et)}function Dt(Et){return ve(ct(Et))}return Dt.invert=function(Et){return gt(ve.invert(Et))},Dt.domain=function(Et){return arguments.length?(je=Et[0]>=0,ve.domain((it=Et.map(Number)).map(ct)),Dt):it},Dt.base=function(Et){return arguments.length?(De=+Et,ve.domain(it.map(ct)),Dt):De},Dt.nice=function(){var Et=Uf(it.map(ct),je?Math:Gc);return ve.domain(Et),it=Et.map(gt),Dt},Dt.ticks=function(){var Et=Qs(it),Yt=[],Zt=Et[0],ar=Et[1],Ir=Math.floor(ct(Zt)),kr=Math.ceil(ct(ar)),tn=De%1?2:De;if(isFinite(kr-Ir)){if(je){for(;Ir0;dn--)Yt.push(gt(Ir)*dn);for(Ir=0;Yt[Ir]ar;kr--);Yt=Yt.slice(Ir,kr)}return Yt},Dt.copy=function(){return Pu(ve.copy(),De,je,it)},Eh(Dt,ve)}var Gc={floor:function(ve){return-Math.ceil(-ve)},ceil:function(ve){return-Math.floor(-ve)}};i.scale.pow=function(){return Od(i.scale.linear(),1,[0,1])};function Od(ve,De,je){var it=oc(De),ct=oc(1/De);function gt(Dt){return ve(it(Dt))}return gt.invert=function(Dt){return ct(ve.invert(Dt))},gt.domain=function(Dt){return arguments.length?(ve.domain((je=Dt.map(Number)).map(it)),gt):je},gt.ticks=function(Dt){return wl(je,Dt)},gt.tickFormat=function(Dt,Et){return d3_scale_linearTickFormat(je,Dt,Et)},gt.nice=function(Dt){return gt.domain(Dv(je,Dt))},gt.exponent=function(Dt){return arguments.length?(it=oc(De=Dt),ct=oc(1/De),ve.domain(je.map(it)),gt):De},gt.copy=function(){return Od(ve.copy(),De,je)},Eh(gt,ve)}function oc(ve){return function(De){return De<0?-Math.pow(-De,ve):Math.pow(De,ve)}}i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return sc([],{t:"range",a:[[]]})};function sc(ve,De){var je,it,ct;function gt(Et){return it[((je.get(Et)||(De.t==="range"?je.set(Et,ve.push(Et)):NaN))-1)%it.length]}function Dt(Et,Yt){return i.range(ve.length).map(function(Zt){return Et+Yt*Zt})}return gt.domain=function(Et){if(!arguments.length)return ve;ve=[],je=new R;for(var Yt=-1,Zt=Et.length,ar;++Yt0?je[gt-1]:ve[0],gtkr?0:1;if(ar=Je)return Yt(ar,dn)+(Zt?Yt(Zt,1-dn):"")+"Z";var Or,Gr,qr,gn,bn=0,an=0,Kn,fa,Sa,ua,ya,Ca,ai,Va,ei=[];if((gn=(+Dt.apply(this,arguments)||0)/2)&&(qr=it===Fd?Math.sqrt(Zt*Zt+ar*ar):+it.apply(this,arguments),dn||(an*=-1),ar&&(an=Vt(qr/ar*Math.sin(gn))),Zt&&(bn=Vt(qr/Zt*Math.sin(gn)))),ar){Kn=ar*Math.cos(Ir+an),fa=ar*Math.sin(Ir+an),Sa=ar*Math.cos(kr-an),ua=ar*Math.sin(kr-an);var Oi=Math.abs(kr-Ir-2*an)<=Pe?0:1;if(an&&jf(Kn,fa,Sa,ua)===dn^Oi){var Do=(Ir+kr)/2;Kn=ar*Math.cos(Do),fa=ar*Math.sin(Do),Sa=ua=null}}else Kn=fa=0;if(Zt){ya=Zt*Math.cos(kr-bn),Ca=Zt*Math.sin(kr-bn),ai=Zt*Math.cos(Ir+bn),Va=Zt*Math.sin(Ir+bn);var Hi=Math.abs(Ir-kr+2*bn)<=Pe?0:1;if(bn&&jf(ya,Ca,ai,Va)===1-dn^Hi){var sa=(Ir+kr)/2;ya=Zt*Math.cos(sa),Ca=Zt*Math.sin(sa),ai=Va=null}}else ya=Ca=0;if(tn>we&&(Or=Math.min(Math.abs(ar-Zt)/2,+je.apply(this,arguments)))>.001){Gr=Zt0?0:1}function Gf(ve,De,je,it,ct){var gt=ve[0]-De[0],Dt=ve[1]-De[1],Et=(ct?it:-it)/Math.sqrt(gt*gt+Dt*Dt),Yt=Et*Dt,Zt=-Et*gt,ar=ve[0]+Yt,Ir=ve[1]+Zt,kr=De[0]+Yt,tn=De[1]+Zt,dn=(ar+kr)/2,Or=(Ir+tn)/2,Gr=kr-ar,qr=tn-Ir,gn=Gr*Gr+qr*qr,bn=je-it,an=ar*tn-kr*Ir,Kn=(qr<0?-1:1)*Math.sqrt(Math.max(0,bn*bn*gn-an*an)),fa=(an*qr-Gr*Kn)/gn,Sa=(-an*Gr-qr*Kn)/gn,ua=(an*qr+Gr*Kn)/gn,ya=(-an*Gr+qr*Kn)/gn,Ca=fa-dn,ai=Sa-Or,Va=ua-dn,ei=ya-Or;return Ca*Ca+ai*ai>Va*Va+ei*ei&&(fa=ua,Sa=ya),[[fa-Yt,Sa-Zt],[fa*je/bn,Sa*je/bn]]}function Iu(){return!0}function Wf(ve){var De=Ia,je=Ta,it=Iu,ct=Go,gt=ct.key,Dt=.7;function Et(Yt){var Zt=[],ar=[],Ir=-1,kr=Yt.length,tn,dn=un(De),Or=un(je);function Gr(){Zt.push("M",ct(ve(ar),Dt))}for(;++Ir1?ve.join("L"):ve+"Z"}function Ul(ve){return ve.join("L")+"Z"}function Lh(ve){for(var De=0,je=ve.length,it=ve[0],ct=[it[0],",",it[1]];++De1&&ct.push("H",it[0]),ct.join("")}function lc(ve){for(var De=0,je=ve.length,it=ve[0],ct=[it[0],",",it[1]];++De1){Et=De[1],gt=ve[Yt],Yt++,it+="C"+(ct[0]+Dt[0])+","+(ct[1]+Dt[1])+","+(gt[0]-Et[0])+","+(gt[1]-Et[1])+","+gt[0]+","+gt[1];for(var Zt=2;Zt9&&(gt=je*3/Math.sqrt(gt),Dt[Et]=gt*it,Dt[Et+1]=gt*ct));for(Et=-1;++Et<=Yt;)gt=(ve[Math.min(Yt,Et+1)][0]-ve[Math.max(0,Et-1)][0])/(6*(1+Dt[Et]*Dt[Et])),De.push([gt||0,Dt[Et]*gt||0]);return De}function Nd(ve){return ve.length<3?Go(ve):ve[0]+bs(ve,Kf(ve))}i.svg.line.radial=function(){var ve=Wf(Bv);return ve.radius=ve.x,delete ve.x,ve.angle=ve.y,delete ve.y,ve};function Bv(ve){for(var De,je=-1,it=ve.length,ct,gt;++jePe)+",1 "+Ir}function Zt(ar,Ir,kr,tn){return"Q 0,0 "+tn}return gt.radius=function(ar){return arguments.length?(je=un(ar),gt):je},gt.source=function(ar){return arguments.length?(ve=un(ar),gt):ve},gt.target=function(ar){return arguments.length?(De=un(ar),gt):De},gt.startAngle=function(ar){return arguments.length?(it=un(ar),gt):it},gt.endAngle=function(ar){return arguments.length?(ct=un(ar),gt):ct},gt};function kh(ve){return ve.radius}i.svg.diagonal=function(){var ve=Rh,De=uc,je=Qf;function it(ct,gt){var Dt=ve.call(this,ct,gt),Et=De.call(this,ct,gt),Yt=(Dt.y+Et.y)/2,Zt=[Dt,{x:Dt.x,y:Yt},{x:Et.x,y:Yt},Et];return Zt=Zt.map(je),"M"+Zt[0]+"C"+Zt[1]+" "+Zt[2]+" "+Zt[3]}return it.source=function(ct){return arguments.length?(ve=un(ct),it):ve},it.target=function(ct){return arguments.length?(De=un(ct),it):De},it.projection=function(ct){return arguments.length?(je=ct,it):je},it};function Qf(ve){return[ve.x,ve.y]}i.svg.diagonal.radial=function(){var ve=i.svg.diagonal(),De=Qf,je=ve.projection;return ve.projection=function(it){return arguments.length?je(Nv(De=it)):De},ve};function Nv(ve){return function(){var De=ve.apply(this,arguments),je=De[0],it=De[1]-ot;return[je*Math.cos(it),je*Math.sin(it)]}}i.svg.symbol=function(){var ve=ft,De=qe;function je(it,ct){return(Mt.get(ve.call(this,it,ct))||St)(De.call(this,it,ct))}return je.type=function(it){return arguments.length?(ve=un(it),je):ve},je.size=function(it){return arguments.length?(De=un(it),je):De},je};function qe(){return 64}function ft(){return"circle"}function St(ve){var De=Math.sqrt(ve/Pe);return"M0,"+De+"A"+De+","+De+" 0 1,1 0,"+-De+"A"+De+","+De+" 0 1,1 0,"+De+"Z"}var Mt=i.map({circle:St,cross:function(ve){var De=Math.sqrt(ve/5)/2;return"M"+-3*De+","+-De+"H"+-De+"V"+-3*De+"H"+De+"V"+-De+"H"+3*De+"V"+De+"H"+De+"V"+3*De+"H"+-De+"V"+De+"H"+-3*De+"Z"},diamond:function(ve){var De=Math.sqrt(ve/(2*zt)),je=De*zt;return"M0,"+-De+"L"+je+",0 0,"+De+" "+-je+",0Z"},square:function(ve){var De=Math.sqrt(ve)/2;return"M"+-De+","+-De+"L"+De+","+-De+" "+De+","+De+" "+-De+","+De+"Z"},"triangle-down":function(ve){var De=Math.sqrt(ve/Nt),je=De*Nt/2;return"M0,"+je+"L"+De+","+-je+" "+-De+","+-je+"Z"},"triangle-up":function(ve){var De=Math.sqrt(ve/Nt),je=De*Nt/2;return"M0,"+-je+"L"+De+","+je+" "+-De+","+je+"Z"}});i.svg.symbolTypes=Mt.keys();var Nt=Math.sqrt(3),zt=Math.tan(30*yt);ee.transition=function(ve){for(var De=_r||++Er,je=Nn(ve),it=[],ct,gt,Dt=jr||{time:Date.now(),ease:yh,delay:0,duration:250},Et=-1,Yt=this.length;++Et0;)Ir[--gn].call(ve,qr);if(Gr>=1)return Dt.event&&Dt.event.end.call(ve,ve.__data__,De),--gt.count?delete gt[it]:delete ve[je],1}Dt||(Et=ct.time,Yt=Fn(kr,0,Et),Dt=gt[it]={tween:new R,time:Et,timer:Yt,delay:ct.delay,duration:ct.duration,ease:ct.ease,index:De},ct=null,++gt.count)}i.svg.axis=function(){var ve=i.scale.linear(),De=aa,je=6,it=6,ct=3,gt=[10],Dt=null,Et;function Yt(Zt){Zt.each(function(){var ar=i.select(this),Ir=this.__chart__||ve,kr=this.__chart__=ve.copy(),tn=Dt??(kr.ticks?kr.ticks.apply(kr,gt):kr.domain()),dn=Et??(kr.tickFormat?kr.tickFormat.apply(kr,gt):H),Or=ar.selectAll(".tick").data(tn,kr),Gr=Or.enter().insert("g",".domain").attr("class","tick").style("opacity",we),qr=i.transition(Or.exit()).style("opacity",we).remove(),gn=i.transition(Or.order()).style("opacity",1),bn=Math.max(je,0)+ct,an,Kn=jc(kr),fa=ar.selectAll(".domain").data([0]),Sa=(fa.enter().append("path").attr("class","domain"),i.transition(fa));Gr.append("line"),Gr.append("text");var ua=Gr.select("line"),ya=gn.select("line"),Ca=Or.select("text").text(dn),ai=Gr.select("text"),Va=gn.select("text"),ei=De==="top"||De==="left"?-1:1,Oi,Do,Hi,sa;if(De==="bottom"||De==="top"?(an=Xa,Oi="x",Hi="y",Do="x2",sa="y2",Ca.attr("dy",ei<0?"0em":".71em").style("text-anchor","middle"),Sa.attr("d","M"+Kn[0]+","+ei*it+"V0H"+Kn[1]+"V"+ei*it)):(an=Ja,Oi="y",Hi="x",Do="y2",sa="x2",Ca.attr("dy",".32em").style("text-anchor",ei<0?"end":"start"),Sa.attr("d","M"+ei*it+","+Kn[0]+"H0V"+Kn[1]+"H"+ei*it)),ua.attr(sa,ei*je),ai.attr(Hi,ei*bn),ya.attr(Do,0).attr(sa,ei*je),Va.attr(Oi,0).attr(Hi,ei*bn),kr.rangeBand){var si=kr,Ua=si.rangeBand()/2;Ir=kr=function(bi){return si(bi)+Ua}}else Ir.rangeBand?Ir=kr:qr.call(an,kr,Ir);Gr.call(an,Ir,kr),gn.call(an,kr,kr)})}return Yt.scale=function(Zt){return arguments.length?(ve=Zt,Yt):ve},Yt.orient=function(Zt){return arguments.length?(De=Zt in Ya?Zt+"":aa,Yt):De},Yt.ticks=function(){return arguments.length?(gt=w(arguments),Yt):gt},Yt.tickValues=function(Zt){return arguments.length?(Dt=Zt,Yt):Dt},Yt.tickFormat=function(Zt){return arguments.length?(Et=Zt,Yt):Et},Yt.tickSize=function(Zt){var ar=arguments.length;return ar?(je=+Zt,it=+arguments[ar-1],Yt):je},Yt.innerTickSize=function(Zt){return arguments.length?(je=+Zt,Yt):je},Yt.outerTickSize=function(Zt){return arguments.length?(it=+Zt,Yt):it},Yt.tickPadding=function(Zt){return arguments.length?(ct=+Zt,Yt):ct},Yt.tickSubdivide=function(){return arguments.length&&Yt},Yt};var aa="bottom",Ya={top:1,right:1,bottom:1,left:1};function Xa(ve,De,je){ve.attr("transform",function(it){var ct=De(it);return"translate("+(isFinite(ct)?ct:je(it))+",0)"})}function Ja(ve,De,je){ve.attr("transform",function(it){var ct=De(it);return"translate(0,"+(isFinite(ct)?ct:je(it))+")"})}i.svg.brush=function(){var ve=Q(ar,"brushstart","brush","brushend"),De=null,je=null,it=[0,0],ct=[0,0],gt,Dt,Et=!0,Yt=!0,Zt=xi[0];function ar(Or){Or.each(function(){var Gr=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",dn).on("touchstart.brush",dn),qr=Gr.selectAll(".background").data([0]);qr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Gr.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var gn=Gr.selectAll(".resize").data(Zt,H);gn.exit().remove(),gn.enter().append("g").attr("class",function(fa){return"resize "+fa}).style("cursor",function(fa){return ri[fa]}).append("rect").attr("x",function(fa){return/[ew]$/.test(fa)?-3:null}).attr("y",function(fa){return/^[ns]/.test(fa)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),gn.style("display",ar.empty()?"none":null);var bn=i.transition(Gr),an=i.transition(qr),Kn;De&&(Kn=jc(De),an.attr("x",Kn[0]).attr("width",Kn[1]-Kn[0]),kr(bn)),je&&(Kn=jc(je),an.attr("y",Kn[0]).attr("height",Kn[1]-Kn[0]),tn(bn)),Ir(bn)})}ar.event=function(Or){Or.each(function(){var Gr=ve.of(this,arguments),qr={x:it,y:ct,i:gt,j:Dt},gn=this.__chart__||qr;this.__chart__=qr,_r?i.select(this).transition().each("start.brush",function(){gt=gn.i,Dt=gn.j,it=gn.x,ct=gn.y,Gr({type:"brushstart"})}).tween("brush:brush",function(){var bn=Js(it,qr.x),an=Js(ct,qr.y);return gt=Dt=null,function(Kn){it=qr.x=bn(Kn),ct=qr.y=an(Kn),Gr({type:"brush",mode:"resize"})}}).each("end.brush",function(){gt=qr.i,Dt=qr.j,Gr({type:"brush",mode:"resize"}),Gr({type:"brushend"})}):(Gr({type:"brushstart"}),Gr({type:"brush",mode:"resize"}),Gr({type:"brushend"}))})};function Ir(Or){Or.selectAll(".resize").attr("transform",function(Gr){return"translate("+it[+/e$/.test(Gr)]+","+ct[+/^s/.test(Gr)]+")"})}function kr(Or){Or.select(".extent").attr("x",it[0]),Or.selectAll(".extent,.n>rect,.s>rect").attr("width",it[1]-it[0])}function tn(Or){Or.select(".extent").attr("y",ct[0]),Or.selectAll(".extent,.e>rect,.w>rect").attr("height",ct[1]-ct[0])}function dn(){var Or=this,Gr=i.select(i.event.target),qr=ve.of(Or,arguments),gn=i.select(Or),bn=Gr.datum(),an=!/^(n|s)$/.test(bn)&&De,Kn=!/^(e|w)$/.test(bn)&&je,fa=Gr.classed("extent"),Sa=Ke(Or),ua,ya=i.mouse(Or),Ca,ai=i.select(a(Or)).on("keydown.brush",Oi).on("keyup.brush",Do);if(i.event.changedTouches?ai.on("touchmove.brush",Hi).on("touchend.brush",si):ai.on("mousemove.brush",Hi).on("mouseup.brush",si),gn.interrupt().selectAll("*").interrupt(),fa)ya[0]=it[0]-ya[0],ya[1]=ct[0]-ya[1];else if(bn){var Va=+/w$/.test(bn),ei=+/^n/.test(bn);Ca=[it[1-Va]-ya[0],ct[1-ei]-ya[1]],ya[0]=it[Va],ya[1]=ct[ei]}else i.event.altKey&&(ua=ya.slice());gn.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",Gr.style("cursor")),qr({type:"brushstart"}),Hi();function Oi(){i.event.keyCode==32&&(fa||(ua=null,ya[0]-=it[1],ya[1]-=ct[1],fa=2),ie())}function Do(){i.event.keyCode==32&&fa==2&&(ya[0]+=it[1],ya[1]+=ct[1],fa=0,ie())}function Hi(){var Ua=i.mouse(Or),bi=!1;Ca&&(Ua[0]+=Ca[0],Ua[1]+=Ca[1]),fa||(i.event.altKey?(ua||(ua=[(it[0]+it[1])/2,(ct[0]+ct[1])/2]),ya[0]=it[+(Ua[0]"u"&&(z=1e-6);var X,ue,ge,Le,_e;for(ge=_,_e=0;_e<8;_e++){if(Le=this.sampleCurveX(ge)-_,Math.abs(Le)ue)return ue;for(;XLe?X=ge:ue=ge,ge=(ue-X)*.5+X}return ge},m.prototype.solve=function(_,z){return this.sampleCurveY(this.solveCurveX(_,z))};var a=n;function n(_,z){this.x=_,this.y=z}n.prototype={clone:function(){return new n(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,z){return this.clone()._rotateAround(_,z)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var z=_.x-this.x,X=_.y-this.y;return z*z+X*X},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,z){return Math.atan2(this.x*z-this.y*_,this.x*_+this.y*z)},_matMult:function(_){var z=_[0]*this.x+_[1]*this.y,X=_[2]*this.x+_[3]*this.y;return this.x=z,this.y=X,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var z=Math.cos(_),X=Math.sin(_),ue=z*this.x-X*this.y,ge=X*this.x+z*this.y;return this.x=ue,this.y=ge,this},_rotateAround:function(_,z){var X=Math.cos(_),ue=Math.sin(_),ge=z.x+X*(this.x-z.x)-ue*(this.y-z.y),Le=z.y+ue*(this.x-z.x)+X*(this.y-z.y);return this.x=ge,this.y=Le,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(_){return _ instanceof n?_:Array.isArray(_)?new n(_[0],_[1]):_};var s=typeof self<"u"?self:{};function o(_,z){if(Array.isArray(_)){if(!Array.isArray(z)||_.length!==z.length)return!1;for(var X=0;X<_.length;X++)if(!o(_[X],z[X]))return!1;return!0}if(typeof _=="object"&&_!==null&&z!==null){if(typeof z!="object")return!1;var ue=Object.keys(_);if(ue.length!==Object.keys(z).length)return!1;for(var ge in _)if(!o(_[ge],z[ge]))return!1;return!0}return _===z}var h=Math.pow(2,53)-1;function f(_){if(_<=0)return 0;if(_>=1)return 1;var z=_*_,X=z*_;return 4*(_<.5?X:3*(_-z)+X-.75)}function u(_,z,X,ue){var ge=new v(_,z,X,ue);return function(Le){return ge.solve(Le)}}var b=u(.25,.1,.25,1);function p(_,z,X){return Math.min(X,Math.max(z,_))}function E(_,z,X){var ue=X-z,ge=((_-z)%ue+ue)%ue+z;return ge===z?X:ge}function g(_,z,X){if(!_.length)return X(null,[]);var ue=_.length,ge=new Array(_.length),Le=null;_.forEach(function(_e,tt){z(_e,function(bt,Pt){bt&&(Le=bt),ge[tt]=Pt,--ue===0&&X(Le,ge)})})}function c(_){var z=[];for(var X in _)z.push(_[X]);return z}function x(_,z){var X=[];for(var ue in _)ue in z||X.push(ue);return X}function A(_){for(var z=[],X=arguments.length-1;X-- >0;)z[X]=arguments[X+1];for(var ue=0,ge=z;ue>z/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}return _()}function P(_){return _<=1?1:Math.pow(2,Math.ceil(Math.log(_)/Math.LN2))}function d(_){return _?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_):!1}function k(_,z){_.forEach(function(X){z[X]&&(z[X]=z[X].bind(z))})}function I(_,z){return _.indexOf(z,_.length-z.length)!==-1}function N(_,z,X){var ue={};for(var ge in _)ue[ge]=z.call(X||this,_[ge],ge,_);return ue}function B(_,z,X){var ue={};for(var ge in _)z.call(X||this,_[ge],ge,_)&&(ue[ge]=_[ge]);return ue}function G(_){return Array.isArray(_)?_.map(G):typeof _=="object"&&_?N(_,G):_}function U(_,z){for(var X=0;X<_.length;X++)if(z.indexOf(_[X])>=0)return!0;return!1}var H={};function W(_){H[_]||(typeof console<"u"&&console.warn(_),H[_]=!0)}function V(_,z,X){return(X.y-_.y)*(z.x-_.x)>(z.y-_.y)*(X.x-_.x)}function $(_){for(var z=0,X=0,ue=_.length,ge=ue-1,Le=void 0,_e=void 0;X@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,X={};if(_.replace(z,function(ge,Le,_e,tt){var bt=_e||tt;return X[Le]=bt?bt.toLowerCase():!0,""}),X["max-age"]){var ue=parseInt(X["max-age"],10);isNaN(ue)?delete X["max-age"]:X["max-age"]=ue}return X}var ie=null;function fe(_){if(ie==null){var z=_.navigator?_.navigator.userAgent:null;ie=!!_.safari||!!(z&&(/\b(iPad|iPhone|iPod)\b/.test(z)||z.match("Safari")&&!z.match("Chrome")))}return ie}function Q(_){try{var z=s[_];return z.setItem("_mapbox_test_",1),z.removeItem("_mapbox_test_"),!0}catch{return!1}}function J(_){return s.btoa(encodeURIComponent(_).replace(/%([0-9A-F]{2})/g,function(z,X){return String.fromCharCode(+("0x"+X))}))}function oe(_){return decodeURIComponent(s.atob(_).split("").map(function(z){return"%"+("00"+z.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var K=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now.bind(Date),ne=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame||s.msRequestAnimationFrame,ce=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame||s.msCancelAnimationFrame,re,ee,de={now:K,frame:function(z){var X=ne(z);return{cancel:function(){return ce(X)}}},getImageData:function(z,X){X===void 0&&(X=0);var ue=s.document.createElement("canvas"),ge=ue.getContext("2d");if(!ge)throw new Error("failed to create canvas 2d context");return ue.width=z.width,ue.height=z.height,ge.drawImage(z,0,0,z.width,z.height),ge.getImageData(-X,-X,z.width+2*X,z.height+2*X)},resolveURL:function(z){return re||(re=s.document.createElement("a")),re.href=z,re.href},hardwareConcurrency:s.navigator&&s.navigator.hardwareConcurrency||4,get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return s.matchMedia?(ee==null&&(ee=s.matchMedia("(prefers-reduced-motion: reduce)")),ee.matches):!1}},le={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"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},he={supported:!1,testSupport:Te},xe,Ee=!1,Se,ke=!1;s.document&&(Se=s.document.createElement("img"),Se.onload=function(){xe&&Ae(xe),xe=null,ke=!0},Se.onerror=function(){Ee=!0,xe=null},Se.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Te(_){Ee||!Se||(ke?Ae(_):xe=_)}function Ae(_){var z=_.createTexture();_.bindTexture(_.TEXTURE_2D,z);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,Se),_.isContextLost())return;he.supported=!0}catch{}_.deleteTexture(z),Ee=!0}var be="01";function Ie(){for(var _="1",z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",X="",ue=0;ue<10;ue++)X+=z[Math.floor(Math.random()*62)];var ge=12*60*60*1e3,Le=[_,be,X].join(""),_e=Date.now()+ge;return{token:Le,tokenExpiresAt:_e}}var Ue=function(z,X){this._transformRequestFn=z,this._customAccessToken=X,this._createSkuToken()};Ue.prototype._createSkuToken=function(){var z=Ie();this._skuToken=z.token,this._skuTokenExpiresAt=z.tokenExpiresAt},Ue.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ue.prototype.transformRequest=function(z,X){return this._transformRequestFn?this._transformRequestFn(z,X)||{url:z}:{url:z}},Ue.prototype.normalizeStyleURL=function(z,X){if(!Ne(z))return z;var ue=nt(z);return ue.path="/styles/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||X)},Ue.prototype.normalizeGlyphsURL=function(z,X){if(!Ne(z))return z;var ue=nt(z);return ue.path="/fonts/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||X)},Ue.prototype.normalizeSourceURL=function(z,X){if(!Ne(z))return z;var ue=nt(z);return ue.path="/v4/"+ue.authority+".json",ue.params.push("secure"),this._makeAPIURL(ue,this._customAccessToken||X)},Ue.prototype.normalizeSpriteURL=function(z,X,ue,ge){var Le=nt(z);return Ne(z)?(Le.path="/styles/v1"+Le.path+"/sprite"+X+ue,this._makeAPIURL(Le,this._customAccessToken||ge)):(Le.path+=""+X+ue,mt(Le))},Ue.prototype.normalizeTileURL=function(z,X){if(this._isSkuTokenExpired()&&this._createSkuToken(),z&&!Ne(z))return z;var ue=nt(z),ge=/(\.(png|jpg)\d*)(?=$)/,Le=/^.+\/v4\//,_e=de.devicePixelRatio>=2||X===512?"@2x":"",tt=he.supported?".webp":"$1";ue.path=ue.path.replace(ge,""+_e+tt),ue.path=ue.path.replace(Le,"/"),ue.path="/v4"+ue.path;var bt=this._customAccessToken||vt(ue.params)||le.ACCESS_TOKEN;return le.REQUIRE_ACCESS_TOKEN&&bt&&this._skuToken&&ue.params.push("sku="+this._skuToken),this._makeAPIURL(ue,bt)},Ue.prototype.canonicalizeTileURL=function(z,X){var ue="/v4/",ge=/\.[\w]+$/,Le=nt(z);if(!Le.path.match(/(^\/v4\/)/)||!Le.path.match(ge))return z;var _e="mapbox://tiles/";_e+=Le.path.replace(ue,"");var tt=Le.params;return X&&(tt=tt.filter(function(bt){return!bt.match(/^access_token=/)})),tt.length&&(_e+="?"+tt.join("&")),_e},Ue.prototype.canonicalizeTileset=function(z,X){for(var ue=X?Ne(X):!1,ge=[],Le=0,_e=z.tiles||[];Le<_e.length;Le+=1){var tt=_e[Le];$e(tt)?ge.push(this.canonicalizeTileURL(tt,ue)):ge.push(tt)}return ge},Ue.prototype._makeAPIURL=function(z,X){var ue="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",ge=nt(le.API_URL);if(z.protocol=ge.protocol,z.authority=ge.authority,z.protocol==="http"){var Le=z.params.indexOf("secure");Le>=0&&z.params.splice(Le,1)}if(ge.path!=="/"&&(z.path=""+ge.path+z.path),!le.REQUIRE_ACCESS_TOKEN)return mt(z);if(X=X||le.ACCESS_TOKEN,!X)throw new Error("An API access token is required to use Mapbox GL. "+ue);if(X[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ue);return z.params=z.params.filter(function(_e){return _e.indexOf("access_token")===-1}),z.params.push("access_token="+X),mt(z)};function Ne(_){return _.indexOf("mapbox:")===0}var ze=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function $e(_){return ze.test(_)}function st(_){return _.indexOf("sku=")>0&&$e(_)}function vt(_){for(var z=0,X=_;z=1&&s.localStorage.setItem(X,JSON.stringify(this.eventData))}catch{W("Unable to write to LocalStorage")}},dt.prototype.processRequests=function(z){},dt.prototype.postEvent=function(z,X,ue,ge){var Le=this;if(le.EVENTS_URL){var _e=nt(le.EVENTS_URL);_e.params.push("access_token="+(ge||le.ACCESS_TOKEN||""));var tt={event:this.type,created:new Date(z).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:be,userId:this.anonId},bt=X?A(tt,X):tt,Pt={url:mt(_e),headers:{"Content-Type":"text/plain"},body:JSON.stringify([bt])};this.pendingRequest=jt(Pt,function(Ot){Le.pendingRequest=null,ue(Ot),Le.saveEventData(),Le.processRequests(ge)})}},dt.prototype.queueRequest=function(z,X){this.queue.push(z),this.processRequests(X)};var wt=function(_){function z(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.postMapLoadEvent=function(ue,ge,Le,_e){this.skuToken=Le,(le.EVENTS_URL&&_e||le.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(tt){return Ne(tt)||$e(tt)}))&&this.queueRequest({id:ge,timestamp:Date.now()},_e)},z.prototype.processRequests=function(ue){var ge=this;if(!(this.pendingRequest||this.queue.length===0)){var Le=this.queue.shift(),_e=Le.id,tt=Le.timestamp;_e&&this.success[_e]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=L()),this.postEvent(tt,{skuToken:this.skuToken},function(bt){bt||_e&&(ge.success[_e]=!0)},ue))}},z}(dt),et=function(_){function z(X){_.call(this,"appUserTurnstile"),this._customAccessToken=X}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.postTurnstileEvent=function(ue,ge){le.EVENTS_URL&&le.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(Le){return Ne(Le)||$e(Le)})&&this.queueRequest(Date.now(),ge)},z.prototype.processRequests=function(ue){var ge=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var Le=lt(le.ACCESS_TOKEN),_e=Le?Le.u:le.ACCESS_TOKEN,tt=_e!==this.eventData.tokenU;d(this.anonId)||(this.anonId=L(),tt=!0);var bt=this.queue.shift();if(this.eventData.lastSuccess){var Pt=new Date(this.eventData.lastSuccess),Ot=new Date(bt),Jt=(bt-this.eventData.lastSuccess)/(24*60*60*1e3);tt=tt||Jt>=1||Jt<-1||Pt.getDate()!==Ot.getDate()}else tt=!0;if(!tt)return this.processRequests();this.postEvent(bt,{"enabled.telemetry":!1},function(or){or||(ge.eventData.lastSuccess=bt,ge.eventData.tokenU=_e)},ue)}},z}(dt),Be=new et,Ye=Be.postTurnstileEvent.bind(Be),Ke=new wt,We=Ke.postMapLoadEvent.bind(Ke),Fe="mapbox-tiles",Me=500,we=50,Re=1e3*60*7,Pe;function Ve(){s.caches&&!Pe&&(Pe=s.caches.open(Fe))}var Je;function ot(_,z){if(Je===void 0)try{new Response(new ReadableStream),Je=!0}catch{Je=!1}Je?z(_.body):_.blob().then(z)}function yt(_,z,X){if(Ve(),!!Pe){var ue={status:z.status,statusText:z.statusText,headers:new s.Headers};z.headers.forEach(function(_e,tt){return ue.headers.set(tt,_e)});var ge=ae(z.headers.get("Cache-Control")||"");if(!ge["no-store"]){ge["max-age"]&&ue.headers.set("Expires",new Date(X+ge["max-age"]*1e3).toUTCString());var Le=new Date(ue.headers.get("Expires")).getTime()-X;LeDate.now()&&!X["no-cache"]}var xt=1/0;function Lt(_){xt++,xt>we&&(_.getActor().send("enforceCacheSizeLimit",Me),xt=0)}function Xt(_){Ve(),Pe&&Pe.then(function(z){z.keys().then(function(X){for(var ue=0;ue=200&&X.status<300||X.status===0)&&X.response!==null){var ge=X.response;if(_.type==="json")try{ge=JSON.parse(X.response)}catch(Le){return z(Le)}z(null,ge,X.getResponseHeader("Cache-Control"),X.getResponseHeader("Expires"))}else z(new sr(X.statusText,X.status,_.url))},X.send(_.body),{cancel:function(){return X.abort()}}}var _t=function(_,z){if(!ht(_.url)){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return At(_,z);if(q()&&self.worker&&self.worker.actor){var X=!0;return self.worker.actor.send("getResource",_,z,void 0,X)}}return Rt(_,z)},Ft=function(_,z){return _t(A(_,{type:"json"}),z)},Wt=function(_,z){return _t(A(_,{type:"arrayBuffer"}),z)},jt=function(_,z){return _t(A(_,{method:"POST"}),z)};function er(_){var z=s.document.createElement("a");return z.href=_,z.protocol===s.document.location.protocol&&z.host===s.document.location.host}var hr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function vr(_,z,X,ue){var ge=new s.Image,Le=s.URL;ge.onload=function(){z(null,ge),Le.revokeObjectURL(ge.src),ge.onload=null,s.requestAnimationFrame(function(){ge.src=hr})},ge.onerror=function(){return z(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 _e=new s.Blob([new Uint8Array(_)],{type:"image/png"});ge.cacheControl=X,ge.expires=ue,ge.src=_.byteLength?Le.createObjectURL(_e):hr}function mr(_,z){var X=new s.Blob([new Uint8Array(_)],{type:"image/png"});s.createImageBitmap(X).then(function(ue){z(null,ue)}).catch(function(ue){z(new Error("Could not load image because of "+ue.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Ze,Xe,Ut=function(){Ze=[],Xe=0};Ut();var Bt=function(_,z){if(he.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),Xe>=le.MAX_PARALLEL_IMAGE_REQUESTS){var X={requestParameters:_,callback:z,cancelled:!1,cancel:function(){this.cancelled=!0}};return Ze.push(X),X}Xe++;var ue=!1,ge=function(){if(!ue)for(ue=!0,Xe--;Ze.length&&Xe0||this._oneTimeListeners&&this._oneTimeListeners[z]&&this._oneTimeListeners[z].length>0||this._eventedParent&&this._eventedParent.listens(z)},pr.prototype.setEventedParent=function(z,X){return this._eventedParent=z,this._eventedParentData=X,this};var br=8,Tr={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"}},gr={"*":{type:"source"}},Xr=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Dr={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:"*"}},Fr={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:"*"}},yn={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:"*"}},un={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"}},_n={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"}}},On={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"}}},Mr={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"}},Rr=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Zr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Wr={"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"}},fn={"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"}},Tn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Sn={"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"}},Fn={"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"}},Wn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Aa={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Ta={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},ga={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Cr={type:"array",value:"*",minimum:1},cn={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}},nn=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],wn={"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"}},Jn={"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"}},In={"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"}},Rn={"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"}},Xn={"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"}},la={"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"}},Da={"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"}},Qa={"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"}},Pr={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Ur={"*":{type:"string"}},Ar={$version:br,$root:Tr,sources:gr,source:Xr,source_vector:Dr,source_raster:Fr,source_raster_dem:yn,source_geojson:un,source_video:_n,source_image:On,layer:Mr,layout:Rr,layout_background:Zr,layout_fill:Wr,layout_circle:fn,layout_heatmap:Tn,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Sn,layout_symbol:Fn,layout_raster:Wn,layout_hillshade:ma,filter:Aa,filter_operator:Ia,geometry_type:Ta,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:ga,expression:Cr,light:cn,paint:nn,paint_fill:wn,"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:Jn,paint_circle:In,paint_heatmap:Rn,paint_symbol:Xn,paint_raster:la,paint_hillshade:Da,paint_background:Qa,transition:Pr,"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:Ur},Vr=function(z,X,ue,ge){this.message=(z?z+": ":"")+ue,ge&&(this.identifier=ge),X!=null&&X.__line__&&(this.line=X.__line__)};function An(_){var z=_.key,X=_.value;return X?[new Vr(z,X,"constants have been deprecated as of v8")]:[]}function Hn(_){for(var z=[],X=arguments.length-1;X-- >0;)z[X]=arguments[X+1];for(var ue=0,ge=z;ue":_.itemType.kind==="value"?"array":"array<"+z+">"}else return _.kind}var Ks=[$r,rn,Pn,zn,Bn,Ra,Zn,qi($n),$a];function Hs(_,z){if(z.kind==="error")return null;if(_.kind==="array"){if(z.kind==="array"&&(z.N===0&&z.itemType.kind==="value"||!Hs(_.itemType,z.itemType))&&(typeof _.N!="number"||_.N===z.N))return null}else{if(_.kind===z.kind)return null;if(_.kind==="value")for(var X=0,ue=Ks;X255?255:Pt}function ge(Pt){return Pt<0?0:Pt>1?1:Pt}function Le(Pt){return Pt[Pt.length-1]==="%"?ue(parseFloat(Pt)/100*255):ue(parseInt(Pt))}function _e(Pt){return Pt[Pt.length-1]==="%"?ge(parseFloat(Pt)/100):ge(parseFloat(Pt))}function tt(Pt,Ot,Jt){return Jt<0?Jt+=1:Jt>1&&(Jt-=1),Jt*6<1?Pt+(Ot-Pt)*Jt*6:Jt*2<1?Ot:Jt*3<2?Pt+(Ot-Pt)*(2/3-Jt)*6:Pt}function bt(Pt){var Ot=Pt.replace(/ /g,"").toLowerCase();if(Ot in X)return X[Ot].slice();if(Ot[0]==="#"){if(Ot.length===4){var Jt=parseInt(Ot.substr(1),16);return Jt>=0&&Jt<=4095?[(Jt&3840)>>4|(Jt&3840)>>8,Jt&240|(Jt&240)>>4,Jt&15|(Jt&15)<<4,1]:null}else if(Ot.length===7){var Jt=parseInt(Ot.substr(1),16);return Jt>=0&&Jt<=16777215?[(Jt&16711680)>>16,(Jt&65280)>>8,Jt&255,1]:null}return null}var or=Ot.indexOf("("),rr=Ot.indexOf(")");if(or!==-1&&rr+1===Ot.length){var wr=Ot.substr(0,or),Nr=Ot.substr(or+1,rr-(or+1)).split(","),pn=1;switch(wr){case"rgba":if(Nr.length!==4)return null;pn=_e(Nr.pop());case"rgb":return Nr.length!==3?null:[Le(Nr[0]),Le(Nr[1]),Le(Nr[2]),pn];case"hsla":if(Nr.length!==4)return null;pn=_e(Nr.pop());case"hsl":if(Nr.length!==3)return null;var on=(parseFloat(Nr[0])%360+360)%360/360,Dn=_e(Nr[1]),Cn=_e(Nr[2]),kn=Cn<=.5?Cn*(Dn+1):Cn+Dn-Cn*Dn,jn=Cn*2-kn;return[ue(tt(jn,kn,on+1/3)*255),ue(tt(jn,kn,on)*255),ue(tt(jn,kn,on-1/3)*255),pn];default:return null}}return null}try{z.parseCSSColor=bt}catch{}}),yv=ph.parseCSSColor,Ei=function(z,X,ue,ge){ge===void 0&&(ge=1),this.r=z,this.g=X,this.b=ue,this.a=ge};Ei.parse=function(z){if(z){if(z instanceof Ei)return z;if(typeof z=="string"){var X=yv(z);if(X)return new Ei(X[0]/255*X[3],X[1]/255*X[3],X[2]/255*X[3],X[3])}}},Ei.prototype.toString=function(){var z=this.toArray(),X=z[0],ue=z[1],ge=z[2],Le=z[3];return"rgba("+Math.round(X)+","+Math.round(ue)+","+Math.round(ge)+","+Le+")"},Ei.prototype.toArray=function(){var z=this,X=z.r,ue=z.g,ge=z.b,Le=z.a;return Le===0?[0,0,0,0]:[X*255/Le,ue*255/Le,ge*255/Le,Le]},Ei.black=new Ei(0,0,0,1),Ei.white=new Ei(1,1,1,1),Ei.transparent=new Ei(0,0,0,0),Ei.red=new Ei(1,0,0,1);var Df=function(z,X,ue){z?this.sensitivity=X?"variant":"case":this.sensitivity=X?"accent":"base",this.locale=ue,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Df.prototype.compare=function(z,X){return this.collator.compare(z,X)},Df.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var gh=function(z,X,ue,ge,Le){this.text=z,this.image=X,this.scale=ue,this.fontStack=ge,this.textColor=Le},qo=function(z){this.sections=z};qo.fromString=function(z){return new qo([new gh(z,null,null,null,null)])},qo.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(z){return z.text.length!==0||z.image&&z.image.name.length!==0})},qo.factory=function(z){return z instanceof qo?z:qo.fromString(z)},qo.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(z){return z.text}).join("")},qo.prototype.serialize=function(){for(var z=["format"],X=0,ue=this.sections;X=0&&_<=255&&typeof z=="number"&&z>=0&&z<=255&&typeof X=="number"&&X>=0&&X<=255)){var ge=typeof ue=="number"?[_,z,X,ue]:[_,z,X];return"Invalid rgba value ["+ge.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ue>"u"||typeof ue=="number"&&ue>=0&&ue<=1?null:"Invalid rgba value ["+[_,z,X,ue].join(", ")+"]: 'a' must be between 0 and 1."}function Cd(_){if(_===null)return!0;if(typeof _=="string")return!0;if(typeof _=="boolean")return!0;if(typeof _=="number")return!0;if(_ instanceof Ei)return!0;if(_ instanceof Df)return!0;if(_ instanceof qo)return!0;if(_ instanceof Is)return!0;if(Array.isArray(_)){for(var z=0,X=_;z2){var tt=z[1];if(typeof tt!="string"||!(tt in Oc)||tt==="object")return X.error('The item type argument of "array" must be one of string, number, boolean',1);_e=Oc[tt],ue++}else _e=$n;var bt;if(z.length>3){if(z[2]!==null&&(typeof z[2]!="number"||z[2]<0||z[2]!==Math.floor(z[2])))return X.error('The length argument to "array" must be a positive integer literal',2);bt=z[2],ue++}ge=qi(_e,bt)}else ge=Oc[Le];for(var Pt=[];ue1)&&X.push(ge)}}return X.concat(this.args.map(function(Le){return Le.serialize()}))};var ls=function(z){this.type=Ra,this.sections=z};ls.parse=function(z,X){if(z.length<2)return X.error("Expected at least one argument.");var ue=z[1];if(!Array.isArray(ue)&&typeof ue=="object")return X.error("First argument must be an image or text section.");for(var ge=[],Le=!1,_e=1;_e<=z.length-1;++_e){var tt=z[_e];if(Le&&typeof tt=="object"&&!Array.isArray(tt)){Le=!1;var bt=null;if(tt["font-scale"]&&(bt=X.parse(tt["font-scale"],1,rn),!bt))return null;var Pt=null;if(tt["text-font"]&&(Pt=X.parse(tt["text-font"],1,qi(Pn)),!Pt))return null;var Ot=null;if(tt["text-color"]&&(Ot=X.parse(tt["text-color"],1,Bn),!Ot))return null;var Jt=ge[ge.length-1];Jt.scale=bt,Jt.font=Pt,Jt.textColor=Ot}else{var or=X.parse(z[_e],1,$n);if(!or)return null;var rr=or.type.kind;if(rr!=="string"&&rr!=="value"&&rr!=="null"&&rr!=="resolvedImage")return X.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Le=!0,ge.push({content:or,scale:null,font:null,textColor:null})}}return new ls(ge)},ls.prototype.evaluate=function(z){var X=function(ue){var ge=ue.content.evaluate(z);return Po(ge)===$a?new gh("",ge,null,null,null):new gh(Dc(ge),null,ue.scale?ue.scale.evaluate(z):null,ue.font?ue.font.evaluate(z).join(","):null,ue.textColor?ue.textColor.evaluate(z):null)};return new qo(this.sections.map(X))},ls.prototype.eachChild=function(z){for(var X=0,ue=this.sections;X-1),ue},Js.prototype.eachChild=function(z){z(this.input)},Js.prototype.outputDefined=function(){return!1},Js.prototype.serialize=function(){return["image",this.input.serialize()]};var xv={"to-boolean":zn,"to-color":Bn,"to-number":rn,"to-string":Pn},Vs=function(z,X){this.type=z,this.args=X};Vs.parse=function(z,X){if(z.length<2)return X.error("Expected at least one argument.");var ue=z[0];if((ue==="to-boolean"||ue==="to-string")&&z.length!==2)return X.error("Expected one argument.");for(var ge=xv[ue],Le=[],_e=1;_e4?ue="Invalid rbga value "+JSON.stringify(X)+": expected an array containing either three or four numeric values.":ue=kc(X[0],X[1],X[2],X[3]),!ue))return new Ei(X[0]/255,X[1]/255,X[2]/255,X[3])}throw new jo(ue||"Could not parse color from value '"+(typeof X=="string"?X:String(JSON.stringify(X)))+"'")}else if(this.type.kind==="number"){for(var bt=null,Pt=0,Ot=this.args;Pt=z[2]||_[1]<=z[1]||_[3]>=z[3])}function n0(_,z){var X=bv(_[0]),ue=r0(_[1]),ge=Math.pow(2,z.z);return[Math.round(X*ge*Bl),Math.round(ue*ge*Bl)]}function a0(_,z,X){var ue=_[0]-z[0],ge=_[1]-z[1],Le=_[0]-X[0],_e=_[1]-X[1];return ue*_e-Le*ge===0&&ue*Le<=0&&ge*_e<=0}function i0(_,z,X){return z[1]>_[1]!=X[1]>_[1]&&_[0]<(X[0]-z[0])*(_[1]-z[1])/(X[1]-z[1])+z[0]}function xh(_,z){for(var X=!1,ue=0,ge=z.length;ue0&&Jt<0||Ot<0&&Jt>0}function Tv(_,z,X,ue){var ge=[z[0]-_[0],z[1]-_[1]],Le=[ue[0]-X[0],ue[1]-X[1]];return s0(Le,ge)===0?!1:!!(wv(_,z,X,ue)&&wv(X,ue,_,z))}function rc(_,z,X){for(var ue=0,ge=X;ueX[2]){var ge=ue*.5,Le=_[0]-X[0]>ge?-ue:X[0]-_[0]>ge?ue:0;Le===0&&(Le=_[0]-X[2]>ge?-ue:X[2]-_[0]>ge?ue:0),_[0]+=Le}yh(z,_)}function l0(_){_[0]=_[1]=1/0,_[2]=_[3]=-1/0}function Ad(_,z,X,ue){for(var ge=Math.pow(2,ue.z)*Bl,Le=[ue.x*Bl,ue.y*Bl],_e=[],tt=0,bt=_;tt=0)return!1;var X=!0;return _.eachChild(function(ue){X&&!_f(ue,z)&&(X=!1)}),X}var Mu=function(z,X){this.type=X.type,this.name=z,this.boundExpression=X};Mu.parse=function(z,X){if(z.length!==2||typeof z[1]!="string")return X.error("'var' expression requires exactly one string literal argument.");var ue=z[1];return X.scope.has(ue)?new Mu(ue,X.scope.get(ue)):X.error('Unknown variable "'+ue+'". Make sure "'+ue+'" has been bound in an enclosing "let" expression before using it.',1)},Mu.prototype.evaluate=function(z){return this.boundExpression.evaluate(z)},Mu.prototype.eachChild=function(){},Mu.prototype.outputDefined=function(){return!1},Mu.prototype.serialize=function(){return["var",this.name]};var Nl=function(z,X,ue,ge,Le){X===void 0&&(X=[]),ge===void 0&&(ge=new Qr),Le===void 0&&(Le=[]),this.registry=z,this.path=X,this.key=X.map(function(_e){return"["+_e+"]"}).join(""),this.scope=ge,this.errors=Le,this.expectedType=ue};Nl.prototype.parse=function(z,X,ue,ge,Le){return Le===void 0&&(Le={}),X?this.concat(X,ue,ge)._parse(z,Le):this._parse(z,Le)},Nl.prototype._parse=function(z,X){(z===null||typeof z=="string"||typeof z=="boolean"||typeof z=="number")&&(z=["literal",z]);function ue(Ot,Jt,or){return or==="assert"?new ss(Jt,[Ot]):or==="coerce"?new Vs(Jt,[Ot]):Ot}if(Array.isArray(z)){if(z.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ge=z[0];if(typeof ge!="string")return this.error("Expression name must be a string, but found "+typeof ge+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Le=this.registry[ge];if(Le){var _e=Le.parse(z,this);if(!_e)return null;if(this.expectedType){var tt=this.expectedType,bt=_e.type;if((tt.kind==="string"||tt.kind==="number"||tt.kind==="boolean"||tt.kind==="object"||tt.kind==="array")&&bt.kind==="value")_e=ue(_e,tt,X.typeAnnotation||"assert");else if((tt.kind==="color"||tt.kind==="formatted"||tt.kind==="resolvedImage")&&(bt.kind==="value"||bt.kind==="string"))_e=ue(_e,tt,X.typeAnnotation||"coerce");else if(this.checkSubtype(tt,bt))return null}if(!(_e instanceof ko)&&_e.type.kind!=="resolvedImage"&&bh(_e)){var Pt=new zl;try{_e=new ko(_e.type,_e.evaluate(Pt))}catch(Ot){return this.error(Ot.message),null}}return _e}return this.error('Unknown expression "'+ge+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof z>"u"?this.error("'undefined' value invalid. Use null instead."):typeof z=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof z+" instead.")},Nl.prototype.concat=function(z,X,ue){var ge=typeof z=="number"?this.path.concat(z):this.path,Le=ue?this.scope.concat(ue):this.scope;return new Nl(this.registry,ge,X||null,Le,this.errors)},Nl.prototype.error=function(z){for(var X=[],ue=arguments.length-1;ue-- >0;)X[ue]=arguments[ue+1];var ge=""+this.key+X.map(function(Le){return"["+Le+"]"}).join("");this.errors.push(new Lr(ge,z))},Nl.prototype.checkSubtype=function(z,X){var ue=Hs(z,X);return ue&&this.error(ue),ue};function bh(_){if(_ instanceof Mu)return bh(_.boundExpression);if(_ instanceof es&&_.name==="error")return!1;if(_ instanceof Cu)return!1;if(_ instanceof vl)return!1;var z=_ instanceof Vs||_ instanceof ss,X=!0;return _.eachChild(function(ue){z?X=X&&bh(ue):X=X&&ue instanceof ko}),X?_c(_)&&_f(_,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function zc(_,z){for(var X=_.length-1,ue=0,ge=X,Le=0,_e,tt;ue<=ge;)if(Le=Math.floor((ue+ge)/2),_e=_[Le],tt=_[Le+1],_e<=z){if(Le===X||zz)ge=Le-1;else throw new jo("Input is not a number.");return 0}var pl=function(z,X,ue){this.type=z,this.input=X,this.labels=[],this.outputs=[];for(var ge=0,Le=ue;ge=tt)return X.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Pt);var Jt=X.parse(bt,Ot,Le);if(!Jt)return null;Le=Le||Jt.type,ge.push([tt,Jt])}return new pl(Le,ue,ge)},pl.prototype.evaluate=function(z){var X=this.labels,ue=this.outputs;if(X.length===1)return ue[0].evaluate(z);var ge=this.input.evaluate(z);if(ge<=X[0])return ue[0].evaluate(z);var Le=X.length;if(ge>=X[Le-1])return ue[Le-1].evaluate(z);var _e=zc(X,ge);return ue[_e].evaluate(z)},pl.prototype.eachChild=function(z){z(this.input);for(var X=0,ue=this.outputs;X0&&z.push(this.labels[X]),z.push(this.outputs[X].serialize());return z};function To(_,z,X){return _*(1-X)+z*X}function wh(_,z,X){return new Ei(To(_.r,z.r,X),To(_.g,z.g,X),To(_.b,z.b,X),To(_.a,z.a,X))}function u0(_,z,X){return _.map(function(ue,ge){return To(ue,z[ge],X)})}var Pd=Object.freeze({__proto__:null,number:To,color:wh,array:u0}),Bc=.95047,Nc=1,js=1.08883,Ld=4/29,Uc=6/29,Id=3*Uc*Uc,c0=Uc*Uc*Uc,Av=Math.PI/180,Th=180/Math.PI;function Sh(_){return _>c0?Math.pow(_,.3333333333333333):_/Id+Ld}function Ch(_){return _>Uc?_*_*_:Id*(_-Ld)}function Hc(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,.4166666666666667)-.055)}function Rd(_){return _/=255,_<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function zf(_){var z=Rd(_.r),X=Rd(_.g),ue=Rd(_.b),ge=Sh((.4124564*z+.3575761*X+.1804375*ue)/Bc),Le=Sh((.2126729*z+.7151522*X+.072175*ue)/Nc),_e=Sh((.0193339*z+.119192*X+.9503041*ue)/js);return{l:116*Le-16,a:500*(ge-Le),b:200*(Le-_e),alpha:_.a}}function kd(_){var z=(_.l+16)/116,X=isNaN(_.a)?z:z+_.a/500,ue=isNaN(_.b)?z:z-_.b/200;return z=Nc*Ch(z),X=Bc*Ch(X),ue=js*Ch(ue),new Ei(Hc(3.2404542*X-1.5371385*z-.4985314*ue),Hc(-.969266*X+1.8760108*z+.041556*ue),Hc(.0556434*X-.2040259*z+1.0572252*ue),_.alpha)}function eo(_,z,X){return{l:To(_.l,z.l,X),a:To(_.a,z.a,X),b:To(_.b,z.b,X),alpha:To(_.alpha,z.alpha,X)}}function Ev(_){var z=zf(_),X=z.l,ue=z.a,ge=z.b,Le=Math.atan2(ge,ue)*Th;return{h:Le<0?Le+360:Le,c:Math.sqrt(ue*ue+ge*ge),l:X,alpha:_.a}}function ml(_){var z=_.h*Av,X=_.c,ue=_.l;return kd({l:ue,a:Math.cos(z)*X,b:Math.sin(z)*X,alpha:_.alpha})}function Pv(_,z,X){var ue=z-_;return _+X*(ue>180||ue<-180?ue-360*Math.round(ue/360):ue)}function Mh(_,z,X){return{h:Pv(_.h,z.h,X),c:To(_.c,z.c,X),l:To(_.l,z.l,X),alpha:To(_.alpha,z.alpha,X)}}var ac={forward:zf,reverse:kd,interpolate:eo},Au={forward:Ev,reverse:ml,interpolate:Mh},Dd=Object.freeze({__proto__:null,lab:ac,hcl:Au}),Lo=function(z,X,ue,ge,Le){this.type=z,this.operator=X,this.interpolation=ue,this.input=ge,this.labels=[],this.outputs=[];for(var _e=0,tt=Le;_e1}))return X.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ge={name:"cubic-bezier",controlPoints:bt}}else return X.error("Unknown interpolation type "+String(ge[0]),1,0);if(z.length-1<4)return X.error("Expected at least 4 arguments, but found only "+(z.length-1)+".");if((z.length-1)%2!==0)return X.error("Expected an even number of arguments.");if(Le=X.parse(Le,2,rn),!Le)return null;var Pt=[],Ot=null;ue==="interpolate-hcl"||ue==="interpolate-lab"?Ot=Bn:X.expectedType&&X.expectedType.kind!=="value"&&(Ot=X.expectedType);for(var Jt=0;Jt<_e.length;Jt+=2){var or=_e[Jt],rr=_e[Jt+1],wr=Jt+3,Nr=Jt+4;if(typeof or!="number")return X.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',wr);if(Pt.length&&Pt[Pt.length-1][0]>=or)return X.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',wr);var pn=X.parse(rr,Nr,Ot);if(!pn)return null;Ot=Ot||pn.type,Pt.push([or,pn])}return Ot.kind!=="number"&&Ot.kind!=="color"&&!(Ot.kind==="array"&&Ot.itemType.kind==="number"&&typeof Ot.N=="number")?X.error("Type "+Di(Ot)+" is not interpolatable."):new Lo(Ot,ue,ge,Le,Pt)},Lo.prototype.evaluate=function(z){var X=this.labels,ue=this.outputs;if(X.length===1)return ue[0].evaluate(z);var ge=this.input.evaluate(z);if(ge<=X[0])return ue[0].evaluate(z);var Le=X.length;if(ge>=X[Le-1])return ue[Le-1].evaluate(z);var _e=zc(X,ge),tt=X[_e],bt=X[_e+1],Pt=Lo.interpolationFactor(this.interpolation,ge,tt,bt),Ot=ue[_e].evaluate(z),Jt=ue[_e+1].evaluate(z);return this.operator==="interpolate"?Pd[this.type.kind.toLowerCase()](Ot,Jt,Pt):this.operator==="interpolate-hcl"?Au.reverse(Au.interpolate(Au.forward(Ot),Au.forward(Jt),Pt)):ac.reverse(ac.interpolate(ac.forward(Ot),ac.forward(Jt),Pt))},Lo.prototype.eachChild=function(z){z(this.input);for(var X=0,ue=this.outputs;X=ue.length)throw new jo("Array index out of bounds: "+X+" > "+(ue.length-1)+".");if(X!==Math.floor(X))throw new jo("Array index must be an integer, but found "+X+" instead.");return ue[X]},ic.prototype.eachChild=function(z){z(this.index),z(this.input)},ic.prototype.outputDefined=function(){return!1},ic.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Eu=function(z,X){this.type=zn,this.needle=z,this.haystack=X};Eu.parse=function(z,X){if(z.length!==3)return X.error("Expected 2 arguments, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1,$n),ge=X.parse(z[2],2,$n);return!ue||!ge?null:os(ue.type,[zn,Pn,rn,$r,$n])?new Eu(ue,ge):X.error("Expected first argument to be of type boolean, string, number or null, but found "+Di(ue.type)+" instead")},Eu.prototype.evaluate=function(z){var X=this.needle.evaluate(z),ue=this.haystack.evaluate(z);if(!ue)return!1;if(!Rc(X,["boolean","string","number","null"]))throw new jo("Expected first argument to be of type boolean, string, number or null, but found "+Di(Po(X))+" instead.");if(!Rc(ue,["string","array"]))throw new jo("Expected second argument to be of type array or string, but found "+Di(Po(ue))+" instead.");return ue.indexOf(X)>=0},Eu.prototype.eachChild=function(z){z(this.needle),z(this.haystack)},Eu.prototype.outputDefined=function(){return!0},Eu.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var xl=function(z,X,ue){this.type=rn,this.needle=z,this.haystack=X,this.fromIndex=ue};xl.parse=function(z,X){if(z.length<=2||z.length>=5)return X.error("Expected 3 or 4 arguments, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1,$n),ge=X.parse(z[2],2,$n);if(!ue||!ge)return null;if(!os(ue.type,[zn,Pn,rn,$r,$n]))return X.error("Expected first argument to be of type boolean, string, number or null, but found "+Di(ue.type)+" instead");if(z.length===4){var Le=X.parse(z[3],3,rn);return Le?new xl(ue,ge,Le):null}else return new xl(ue,ge)},xl.prototype.evaluate=function(z){var X=this.needle.evaluate(z),ue=this.haystack.evaluate(z);if(!Rc(X,["boolean","string","number","null"]))throw new jo("Expected first argument to be of type boolean, string, number or null, but found "+Di(Po(X))+" instead.");if(!Rc(ue,["string","array"]))throw new jo("Expected second argument to be of type array or string, but found "+Di(Po(ue))+" instead.");if(this.fromIndex){var ge=this.fromIndex.evaluate(z);return ue.indexOf(X,ge)}return ue.indexOf(X)},xl.prototype.eachChild=function(z){z(this.needle),z(this.haystack),this.fromIndex&&z(this.fromIndex)},xl.prototype.outputDefined=function(){return!1},xl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var z=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),z]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var iu=function(z,X,ue,ge,Le,_e){this.inputType=z,this.type=X,this.input=ue,this.cases=ge,this.outputs=Le,this.otherwise=_e};iu.parse=function(z,X){if(z.length<5)return X.error("Expected at least 4 arguments, but found only "+(z.length-1)+".");if(z.length%2!==1)return X.error("Expected an even number of arguments.");var ue,ge;X.expectedType&&X.expectedType.kind!=="value"&&(ge=X.expectedType);for(var Le={},_e=[],tt=2;ttNumber.MAX_SAFE_INTEGER)return Ot.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof rr=="number"&&Math.floor(rr)!==rr)return Ot.error("Numeric branch labels must be integer values.");if(!ue)ue=Po(rr);else if(Ot.checkSubtype(ue,Po(rr)))return null;if(typeof Le[String(rr)]<"u")return Ot.error("Branch labels must be unique.");Le[String(rr)]=_e.length}var wr=X.parse(Pt,tt,ge);if(!wr)return null;ge=ge||wr.type,_e.push(wr)}var Nr=X.parse(z[1],1,$n);if(!Nr)return null;var pn=X.parse(z[z.length-1],z.length-1,ge);return!pn||Nr.type.kind!=="value"&&X.concat(1).checkSubtype(ue,Nr.type)?null:new iu(ue,ge,Nr,Le,_e,pn)},iu.prototype.evaluate=function(z){var X=this.input.evaluate(z),ue=Po(X)===this.inputType&&this.outputs[this.cases[X]]||this.otherwise;return ue.evaluate(z)},iu.prototype.eachChild=function(z){z(this.input),this.outputs.forEach(z),z(this.otherwise)},iu.prototype.outputDefined=function(){return this.outputs.every(function(z){return z.outputDefined()})&&this.otherwise.outputDefined()},iu.prototype.serialize=function(){for(var z=this,X=["match",this.input.serialize()],ue=Object.keys(this.cases).sort(),ge=[],Le={},_e=0,tt=ue;_e=5)return X.error("Expected 3 or 4 arguments, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1,$n),ge=X.parse(z[2],2,rn);if(!ue||!ge)return null;if(!os(ue.type,[qi($n),Pn,$n]))return X.error("Expected first argument to be of type array or string, but found "+Di(ue.type)+" instead");if(z.length===4){var Le=X.parse(z[3],3,rn);return Le?new al(ue.type,ue,ge,Le):null}else return new al(ue.type,ue,ge)},al.prototype.evaluate=function(z){var X=this.input.evaluate(z),ue=this.beginIndex.evaluate(z);if(!Rc(X,["string","array"]))throw new jo("Expected first argument to be of type array or string, but found "+Di(Po(X))+" instead.");if(this.endIndex){var ge=this.endIndex.evaluate(z);return X.slice(ue,ge)}return X.slice(ue)},al.prototype.eachChild=function(z){z(this.input),z(this.beginIndex),this.endIndex&&z(this.endIndex)},al.prototype.outputDefined=function(){return!1},al.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var z=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),z]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Nf(_,z){return _==="=="||_==="!="?z.kind==="boolean"||z.kind==="string"||z.kind==="number"||z.kind==="null"||z.kind==="value":z.kind==="string"||z.kind==="number"||z.kind==="value"}function f0(_,z,X){return z===X}function d0(_,z,X){return z!==X}function h0(_,z,X){return zX}function Ah(_,z,X){return z<=X}function Lv(_,z,X){return z>=X}function Vc(_,z,X,ue){return ue.compare(z,X)===0}function ts(_,z,X,ue){return!Vc(_,z,X,ue)}function Qs(_,z,X,ue){return ue.compare(z,X)<0}function jc(_,z,X,ue){return ue.compare(z,X)>0}function Iv(_,z,X,ue){return ue.compare(z,X)<=0}function Uf(_,z,X,ue){return ue.compare(z,X)>=0}function ou(_,z,X){var ue=_!=="=="&&_!=="!=";return function(){function ge(Le,_e,tt){this.type=zn,this.lhs=Le,this.rhs=_e,this.collator=tt,this.hasUntypedArgument=Le.type.kind==="value"||_e.type.kind==="value"}return ge.parse=function(_e,tt){if(_e.length!==3&&_e.length!==4)return tt.error("Expected two or three arguments.");var bt=_e[0],Pt=tt.parse(_e[1],1,$n);if(!Pt)return null;if(!Nf(bt,Pt.type))return tt.concat(1).error('"'+bt+`" comparisons are not supported for type '`+Di(Pt.type)+"'.");var Ot=tt.parse(_e[2],2,$n);if(!Ot)return null;if(!Nf(bt,Ot.type))return tt.concat(2).error('"'+bt+`" comparisons are not supported for type '`+Di(Ot.type)+"'.");if(Pt.type.kind!==Ot.type.kind&&Pt.type.kind!=="value"&&Ot.type.kind!=="value")return tt.error("Cannot compare types '"+Di(Pt.type)+"' and '"+Di(Ot.type)+"'.");ue&&(Pt.type.kind==="value"&&Ot.type.kind!=="value"?Pt=new ss(Ot.type,[Pt]):Pt.type.kind!=="value"&&Ot.type.kind==="value"&&(Ot=new ss(Pt.type,[Ot])));var Jt=null;if(_e.length===4){if(Pt.type.kind!=="string"&&Ot.type.kind!=="string"&&Pt.type.kind!=="value"&&Ot.type.kind!=="value")return tt.error("Cannot use collator to compare non-string types.");if(Jt=tt.parse(_e[3],3,xa),!Jt)return null}return new ge(Pt,Ot,Jt)},ge.prototype.evaluate=function(_e){var tt=this.lhs.evaluate(_e),bt=this.rhs.evaluate(_e);if(ue&&this.hasUntypedArgument){var Pt=Po(tt),Ot=Po(bt);if(Pt.kind!==Ot.kind||!(Pt.kind==="string"||Pt.kind==="number"))throw new jo('Expected arguments for "'+_+'" to be (string, string) or (number, number), but found ('+Pt.kind+", "+Ot.kind+") instead.")}if(this.collator&&!ue&&this.hasUntypedArgument){var Jt=Po(tt),or=Po(bt);if(Jt.kind!=="string"||or.kind!=="string")return z(_e,tt,bt)}return this.collator?X(_e,tt,bt,this.collator.evaluate(_e)):z(_e,tt,bt)},ge.prototype.eachChild=function(_e){_e(this.lhs),_e(this.rhs),this.collator&&_e(this.collator)},ge.prototype.outputDefined=function(){return!0},ge.prototype.serialize=function(){var _e=[_];return this.eachChild(function(tt){_e.push(tt.serialize())}),_e},ge}()}var p0=ou("==",f0,Vc),Rv=ou("!=",d0,ts),kv=ou("<",h0,Qs),Eh=ou(">",v0,jc),Dv=ou("<=",Ah,Iv),Rs=ou(">=",Lv,Uf),wl=function(z,X,ue,ge,Le){this.type=Pn,this.number=z,this.locale=X,this.currency=ue,this.minFractionDigits=ge,this.maxFractionDigits=Le};wl.parse=function(z,X){if(z.length!==3)return X.error("Expected two arguments.");var ue=X.parse(z[1],1,rn);if(!ue)return null;var ge=z[2];if(typeof ge!="object"||Array.isArray(ge))return X.error("NumberFormat options argument must be an object.");var Le=null;if(ge.locale&&(Le=X.parse(ge.locale,1,Pn),!Le))return null;var _e=null;if(ge.currency&&(_e=X.parse(ge.currency,1,Pn),!_e))return null;var tt=null;if(ge["min-fraction-digits"]&&(tt=X.parse(ge["min-fraction-digits"],1,rn),!tt))return null;var bt=null;return ge["max-fraction-digits"]&&(bt=X.parse(ge["max-fraction-digits"],1,rn),!bt)?null:new wl(ue,Le,_e,tt,bt)},wl.prototype.evaluate=function(z){return new Intl.NumberFormat(this.locale?this.locale.evaluate(z):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(z):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(z):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(z):void 0}).format(this.number.evaluate(z))},wl.prototype.eachChild=function(z){z(this.number),this.locale&&z(this.locale),this.currency&&z(this.currency),this.minFractionDigits&&z(this.minFractionDigits),this.maxFractionDigits&&z(this.maxFractionDigits)},wl.prototype.outputDefined=function(){return!1},wl.prototype.serialize=function(){var z={};return this.locale&&(z.locale=this.locale.serialize()),this.currency&&(z.currency=this.currency.serialize()),this.minFractionDigits&&(z["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(z["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),z]};var Pu=function(z){this.type=rn,this.input=z};Pu.parse=function(z,X){if(z.length!==2)return X.error("Expected 1 argument, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1);return ue?ue.type.kind!=="array"&&ue.type.kind!=="string"&&ue.type.kind!=="value"?X.error("Expected argument of type string or array, but found "+Di(ue.type)+" instead."):new Pu(ue):null},Pu.prototype.evaluate=function(z){var X=this.input.evaluate(z);if(typeof X=="string")return X.length;if(Array.isArray(X))return X.length;throw new jo("Expected value to be of type string or array, but found "+Di(Po(X))+" instead.")},Pu.prototype.eachChild=function(z){z(this.input)},Pu.prototype.outputDefined=function(){return!1},Pu.prototype.serialize=function(){var z=["length"];return this.eachChild(function(X){z.push(X.serialize())}),z};var Gc={"==":p0,"!=":Rv,">":Eh,"<":kv,">=":Rs,"<=":Dv,array:ss,at:ic,boolean:ss,case:bl,coalesce:yl,collator:Cu,format:ls,image:Js,in:Eu,"index-of":xl,interpolate:Lo,"interpolate-hcl":Lo,"interpolate-lab":Lo,length:Pu,let:au,literal:ko,match:iu,number:ss,"number-format":wl,object:ss,slice:al,step:pl,string:ss,"to-boolean":Vs,"to-color":Vs,"to-number":Vs,"to-string":Vs,var:Mu,within:vl};function Od(_,z){var X=z[0],ue=z[1],ge=z[2],Le=z[3];X=X.evaluate(_),ue=ue.evaluate(_),ge=ge.evaluate(_);var _e=Le?Le.evaluate(_):1,tt=kc(X,ue,ge,_e);if(tt)throw new jo(tt);return new Ei(X/255*_e,ue/255*_e,ge/255*_e,_e)}function oc(_,z){return _ in z}function sc(_,z){var X=z[_];return typeof X>"u"?null:X}function Ov(_,z,X,ue){for(;X<=ue;){var ge=X+ue>>1;if(z[ge]===_)return!0;z[ge]>_?ue=ge-1:X=ge+1}return!1}function su(_){return{type:_}}es.register(Gc,{error:[Oa,[Pn],function(_,z){var X=z[0];throw new jo(X.evaluate(_))}],typeof:[Pn,[$n],function(_,z){var X=z[0];return Di(Po(X.evaluate(_)))}],"to-rgba":[qi(rn,4),[Bn],function(_,z){var X=z[0];return X.evaluate(_).toArray()}],rgb:[Bn,[rn,rn,rn],Od],rgba:[Bn,[rn,rn,rn,rn],Od],has:{type:zn,overloads:[[[Pn],function(_,z){var X=z[0];return oc(X.evaluate(_),_.properties())}],[[Pn,Zn],function(_,z){var X=z[0],ue=z[1];return oc(X.evaluate(_),ue.evaluate(_))}]]},get:{type:$n,overloads:[[[Pn],function(_,z){var X=z[0];return sc(X.evaluate(_),_.properties())}],[[Pn,Zn],function(_,z){var X=z[0],ue=z[1];return sc(X.evaluate(_),ue.evaluate(_))}]]},"feature-state":[$n,[Pn],function(_,z){var X=z[0];return sc(X.evaluate(_),_.featureState||{})}],properties:[Zn,[],function(_){return _.properties()}],"geometry-type":[Pn,[],function(_){return _.geometryType()}],id:[$n,[],function(_){return _.id()}],zoom:[rn,[],function(_){return _.globals.zoom}],"heatmap-density":[rn,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[rn,[],function(_){return _.globals.lineProgress||0}],accumulated:[$n,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[rn,su(rn),function(_,z){for(var X=0,ue=0,ge=z;ue":[zn,[Pn,$n],function(_,z){var X=z[0],ue=z[1],ge=_.properties()[X.value],Le=ue.value;return typeof ge==typeof Le&&ge>Le}],"filter-id->":[zn,[$n],function(_,z){var X=z[0],ue=_.id(),ge=X.value;return typeof ue==typeof ge&&ue>ge}],"filter-<=":[zn,[Pn,$n],function(_,z){var X=z[0],ue=z[1],ge=_.properties()[X.value],Le=ue.value;return typeof ge==typeof Le&&ge<=Le}],"filter-id-<=":[zn,[$n],function(_,z){var X=z[0],ue=_.id(),ge=X.value;return typeof ue==typeof ge&&ue<=ge}],"filter->=":[zn,[Pn,$n],function(_,z){var X=z[0],ue=z[1],ge=_.properties()[X.value],Le=ue.value;return typeof ge==typeof Le&&ge>=Le}],"filter-id->=":[zn,[$n],function(_,z){var X=z[0],ue=_.id(),ge=X.value;return typeof ue==typeof ge&&ue>=ge}],"filter-has":[zn,[$n],function(_,z){var X=z[0];return X.value in _.properties()}],"filter-has-id":[zn,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[zn,[qi(Pn)],function(_,z){var X=z[0];return X.value.indexOf(_.geometryType())>=0}],"filter-id-in":[zn,[qi($n)],function(_,z){var X=z[0];return X.value.indexOf(_.id())>=0}],"filter-in-small":[zn,[Pn,qi($n)],function(_,z){var X=z[0],ue=z[1];return ue.value.indexOf(_.properties()[X.value])>=0}],"filter-in-large":[zn,[Pn,qi($n)],function(_,z){var X=z[0],ue=z[1];return Ov(_.properties()[X.value],ue.value,0,ue.value.length-1)}],all:{type:zn,overloads:[[[zn,zn],function(_,z){var X=z[0],ue=z[1];return X.evaluate(_)&&ue.evaluate(_)}],[su(zn),function(_,z){for(var X=0,ue=z;X-1}function $c(_){return!!_.expression&&_.expression.interpolated}function Yi(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function Yc(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Fd(_){return _}function Fv(_,z){var X=z.type==="color",ue=_.stops&&typeof _.stops[0][0]=="object",ge=ue||_.property!==void 0,Le=ue||!ge,_e=_.type||($c(z)?"exponential":"interval");if(X&&(_=Hn({},_),_.stops&&(_.stops=_.stops.map(function(ca){return[ca[0],Ei.parse(ca[1])]})),_.default?_.default=Ei.parse(_.default):_.default=Ei.parse(z.default)),_.colorSpace&&_.colorSpace!=="rgb"&&!Dd[_.colorSpace])throw new Error("Unknown color space: "+_.colorSpace);var tt,bt,Pt;if(_e==="exponential")tt=Ph;else if(_e==="interval")tt=_d;else if(_e==="categorical"){tt=Vf,bt=Object.create(null);for(var Ot=0,Jt=_.stops;Ot=_.stops[ue-1][0])return _.stops[ue-1][1];var ge=zc(_.stops.map(function(Le){return Le[0]}),X);return _.stops[ge][1]}function Ph(_,z,X){var ue=_.base!==void 0?_.base:1;if(Yi(X)!=="number")return Xc(_.default,z.default);var ge=_.stops.length;if(ge===1||X<=_.stops[0][0])return _.stops[0][1];if(X>=_.stops[ge-1][0])return _.stops[ge-1][1];var Le=zc(_.stops.map(function(Jt){return Jt[0]}),X),_e=Gf(X,ue,_.stops[Le][0],_.stops[Le+1][0]),tt=_.stops[Le][1],bt=_.stops[Le+1][1],Pt=Pd[z.type]||Fd;if(_.colorSpace&&_.colorSpace!=="rgb"){var Ot=Dd[_.colorSpace];Pt=function(Jt,or){return Ot.reverse(Ot.interpolate(Ot.forward(Jt),Ot.forward(or),_e))}}return typeof tt.evaluate=="function"?{evaluate:function(){for(var or=[],rr=arguments.length;rr--;)or[rr]=arguments[rr];var wr=tt.evaluate.apply(void 0,or),Nr=bt.evaluate.apply(void 0,or);if(!(wr===void 0||Nr===void 0))return Pt(wr,Nr,_e)}}:Pt(tt,bt,_e)}function jf(_,z,X){return z.type==="color"?X=Ei.parse(X):z.type==="formatted"?X=qo.fromString(X.toString()):z.type==="resolvedImage"?X=Is.fromString(X.toString()):Yi(X)!==z.type&&(z.type!=="enum"||!z.values[X])&&(X=void 0),Xc(X,_.default,z.default)}function Gf(_,z,X,ue){var ge=ue-X,Le=_-X;return ge===0?0:z===1?Le/ge:(Math.pow(z,Le)-1)/(Math.pow(z,ge)-1)}var Iu=function(z,X){this.expression=z,this._warningHistory={},this._evaluator=new zl,this._defaultValue=X?_v(X):null,this._enumValues=X&&X.type==="enum"?X.values:null};Iu.prototype.evaluateWithoutErrorHandling=function(z,X,ue,ge,Le,_e){return this._evaluator.globals=z,this._evaluator.feature=X,this._evaluator.featureState=ue,this._evaluator.canonical=ge,this._evaluator.availableImages=Le||null,this._evaluator.formattedSection=_e,this.expression.evaluate(this._evaluator)},Iu.prototype.evaluate=function(z,X,ue,ge,Le,_e){this._evaluator.globals=z,this._evaluator.feature=X||null,this._evaluator.featureState=ue||null,this._evaluator.canonical=ge,this._evaluator.availableImages=Le||null,this._evaluator.formattedSection=_e||null;try{var tt=this.expression.evaluate(this._evaluator);if(tt==null||typeof tt=="number"&&tt!==tt)return this._defaultValue;if(this._enumValues&&!(tt in this._enumValues))throw new jo("Expected value to be one of "+Object.keys(this._enumValues).map(function(bt){return JSON.stringify(bt)}).join(", ")+", but found "+JSON.stringify(tt)+" instead.");return tt}catch(bt){return this._warningHistory[bt.message]||(this._warningHistory[bt.message]=!0,typeof console<"u"&&console.warn(bt.message)),this._defaultValue}};function Wf(_){return Array.isArray(_)&&_.length>0&&typeof _[0]=="string"&&_[0]in Gc}function Ru(_,z){var X=new Nl(Gc,[],z?g0(z):void 0),ue=X.parse(_,void 0,void 0,void 0,z&&z.type==="string"?{typeAnnotation:"coerce"}:void 0);return ue?Wc(new Iu(ue,z)):Lu(X.errors)}var Go=function(z,X){this.kind=z,this._styleExpression=X,this.isStateDependent=z!=="constant"&&!nc(X.expression)};Go.prototype.evaluateWithoutErrorHandling=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluateWithoutErrorHandling(z,X,ue,ge,Le,_e)},Go.prototype.evaluate=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluate(z,X,ue,ge,Le,_e)};var Ul=function(z,X,ue,ge){this.kind=z,this.zoomStops=ue,this._styleExpression=X,this.isStateDependent=z!=="camera"&&!nc(X.expression),this.interpolationType=ge};Ul.prototype.evaluateWithoutErrorHandling=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluateWithoutErrorHandling(z,X,ue,ge,Le,_e)},Ul.prototype.evaluate=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluate(z,X,ue,ge,Le,_e)},Ul.prototype.interpolationFactor=function(z,X,ue){return this.interpolationType?Lo.interpolationFactor(this.interpolationType,z,X,ue):0};function Lh(_,z){if(_=Ru(_,z),_.result==="error")return _;var X=_.value.expression,ue=_c(X);if(!ue&&!lu(z))return Lu([new Lr("","data expressions not supported")]);var ge=_f(X,["zoom"]);if(!ge&&!Hf(z))return Lu([new Lr("","zoom expressions not supported")]);var Le=$f(X);if(!Le&&!ge)return Lu([new Lr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Le instanceof Lr)return Lu([Le]);if(Le instanceof Lo&&!$c(z))return Lu([new Lr("",'"interpolate" expressions cannot be used with this property')]);if(!Le)return Wc(ue?new Go("constant",_.value):new Go("source",_.value));var _e=Le instanceof Lo?Le.interpolation:void 0;return Wc(ue?new Ul("camera",_.value,Le.labels,_e):new Ul("composite",_.value,Le.labels,_e))}var lc=function(z,X){this._parameters=z,this._specification=X,Hn(this,Fv(this._parameters,this._specification))};lc.deserialize=function(z){return new lc(z._parameters,z._specification)},lc.serialize=function(z){return{_parameters:z._parameters,_specification:z._specification}};function zd(_,z){if(Yc(_))return new lc(_,z);if(Wf(_)){var X=Lh(_,z);if(X.result==="error")throw new Error(X.value.map(function(ge){return ge.key+": "+ge.message}).join(", "));return X.value}else{var ue=_;return typeof _=="string"&&z.type==="color"&&(ue=Ei.parse(_)),{kind:"constant",evaluate:function(){return ue}}}}function $f(_){var z=null;if(_ instanceof au)z=$f(_.result);else if(_ instanceof yl)for(var X=0,ue=_.args;Xue.maximum?[new Vr(z,X,X+" is greater than the maximum value "+ue.maximum)]:[]}function zv(_){var z=_.valueSpec,X=xn(_.value.type),ue,ge={},Le,_e,tt=X!=="categorical"&&_.value.property===void 0,bt=!tt,Pt=Yi(_.value.stops)==="array"&&Yi(_.value.stops[0])==="array"&&Yi(_.value.stops[0][0])==="object",Ot=bs({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:Jt,default:wr}});return X==="identity"&&tt&&Ot.push(new Vr(_.key,_.value,'missing required property "property"')),X!=="identity"&&!_.value.stops&&Ot.push(new Vr(_.key,_.value,'missing required property "stops"')),X==="exponential"&&_.valueSpec.expression&&!$c(_.valueSpec)&&Ot.push(new Vr(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(bt&&!lu(_.valueSpec)?Ot.push(new Vr(_.key,_.value,"property functions not supported")):tt&&!Hf(_.valueSpec)&&Ot.push(new Vr(_.key,_.value,"zoom functions not supported"))),(X==="categorical"||Pt)&&_.value.property===void 0&&Ot.push(new Vr(_.key,_.value,'"property" property is required')),Ot;function Jt(Nr){if(X==="identity")return[new Vr(Nr.key,Nr.value,'identity function may not have a "stops" property')];var pn=[],on=Nr.value;return pn=pn.concat(Yf({key:Nr.key,value:on,valueSpec:Nr.valueSpec,style:Nr.style,styleSpec:Nr.styleSpec,arrayElementValidator:or})),Yi(on)==="array"&&on.length===0&&pn.push(new Vr(Nr.key,on,"array must have at least one stop")),pn}function or(Nr){var pn=[],on=Nr.value,Dn=Nr.key;if(Yi(on)!=="array")return[new Vr(Dn,on,"array expected, "+Yi(on)+" found")];if(on.length!==2)return[new Vr(Dn,on,"array length 2 expected, length "+on.length+" found")];if(Pt){if(Yi(on[0])!=="object")return[new Vr(Dn,on,"object expected, "+Yi(on[0])+" found")];if(on[0].zoom===void 0)return[new Vr(Dn,on,"object stop key must have zoom")];if(on[0].value===void 0)return[new Vr(Dn,on,"object stop key must have value")];if(_e&&_e>xn(on[0].zoom))return[new Vr(Dn,on[0].zoom,"stop zoom values must appear in ascending order")];xn(on[0].zoom)!==_e&&(_e=xn(on[0].zoom),Le=void 0,ge={}),pn=pn.concat(bs({key:Dn+"[0]",value:on[0],valueSpec:{zoom:{}},style:Nr.style,styleSpec:Nr.styleSpec,objectElementValidators:{zoom:Zc,value:rr}}))}else pn=pn.concat(rr({key:Dn+"[0]",value:on[0],valueSpec:{},style:Nr.style,styleSpec:Nr.styleSpec},on));return Wf(vn(on[1]))?pn.concat([new Vr(Dn+"[1]",on[1],"expressions are not allowed in function stops.")]):pn.concat(_r({key:Dn+"[1]",value:on[1],valueSpec:z,style:Nr.style,styleSpec:Nr.styleSpec}))}function rr(Nr,pn){var on=Yi(Nr.value),Dn=xn(Nr.value),Cn=Nr.value!==null?Nr.value:pn;if(!ue)ue=on;else if(on!==ue)return[new Vr(Nr.key,Cn,on+" stop domain type must match previous stop domain type "+ue)];if(on!=="number"&&on!=="string"&&on!=="boolean")return[new Vr(Nr.key,Cn,"stop domain value must be a number, string, or boolean")];if(on!=="number"&&X!=="categorical"){var kn="number expected, "+on+" found";return lu(z)&&X===void 0&&(kn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Vr(Nr.key,Cn,kn)]}return X==="categorical"&&on==="number"&&(!isFinite(Dn)||Math.floor(Dn)!==Dn)?[new Vr(Nr.key,Cn,"integer expected, found "+Dn)]:X!=="categorical"&&on==="number"&&Le!==void 0&&Dn=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var z=0,X=_.slice(1);zz?1:0}function Zf(_){if(!Array.isArray(_))return!1;if(_[0]==="within")return!0;for(var z=1;z<_.length;z++)if(Zf(_[z]))return!0;return!1}function Kf(_){if(!_)return!0;var z=_[0];if(_.length<=1)return z!=="any";var X=z==="=="?Nd(_[1],_[2],"=="):z==="!="?uc(Nd(_[1],_[2],"==")):z==="<"||z===">"||z==="<="||z===">="?Nd(_[1],_[2],z):z==="any"?Bv(_.slice(1)):z==="all"?["all"].concat(_.slice(1).map(Kf)):z==="none"?["all"].concat(_.slice(1).map(Kf).map(uc)):z==="in"?Jf(_[1],_.slice(2)):z==="!in"?uc(Jf(_[1],_.slice(2))):z==="has"?Rh(_[1]):z==="!has"?uc(Rh(_[1])):z==="within"?_:!0;return X}function Nd(_,z,X){switch(_){case"$type":return["filter-type-"+X,z];case"$id":return["filter-id-"+X,z];default:return["filter-"+X,_,z]}}function Bv(_){return["any"].concat(_.map(Kf))}function Jf(_,z){if(z.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",z]];case"$id":return["filter-id-in",["literal",z]];default:return z.length>200&&!z.some(function(X){return typeof X!=typeof z[0]})?["filter-in-large",_,["literal",z.sort(Ih)]]:["filter-in-small",_,["literal",z]]}}function Rh(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function uc(_){return["!",_]}function kh(_){return Bd(vn(_.value))?ku(Hn({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Qf(_)}function Qf(_){var z=_.value,X=_.key;if(Yi(z)!=="array")return[new Vr(X,z,"array expected, "+Yi(z)+" found")];var ue=_.styleSpec,ge,Le=[];if(z.length<1)return[new Vr(X,z,"filter array must have at least 1 element")];switch(Le=Le.concat(Xf({key:X+"[0]",value:z[0],valueSpec:ue.filter_operator,style:_.style,styleSpec:_.styleSpec})),xn(z[0])){case"<":case"<=":case">":case">=":z.length>=2&&xn(z[1])==="$type"&&Le.push(new Vr(X,z,'"$type" cannot be use with operator "'+z[0]+'"'));case"==":case"!=":z.length!==3&&Le.push(new Vr(X,z,'filter array for operator "'+z[0]+'" must have 3 elements'));case"in":case"!in":z.length>=2&&(ge=Yi(z[1]),ge!=="string"&&Le.push(new Vr(X+"[1]",z[1],"string expected, "+ge+" found")));for(var _e=2;_e=Ot[rr+0]&&ue>=Ot[rr+1])?(_e[or]=!0,Le.push(Pt[or])):_e[or]=!1}}},Xi.prototype._forEachCell=function(_,z,X,ue,ge,Le,_e,tt){for(var bt=this._convertToCellCoord(_),Pt=this._convertToCellCoord(z),Ot=this._convertToCellCoord(X),Jt=this._convertToCellCoord(ue),or=bt;or<=Ot;or++)for(var rr=Pt;rr<=Jt;rr++){var wr=this.d*rr+or;if(!(tt&&!tt(this._convertFromCellCoord(or),this._convertFromCellCoord(rr),this._convertFromCellCoord(or+1),this._convertFromCellCoord(rr+1)))&&ge.call(this,_,z,X,ue,wr,Le,_e,tt))return}},Xi.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},Xi.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},Xi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,z=xi+this.cells.length+1+1,X=0,ue=0;ue=0)){var Jt=_[Ot];Pt[Ot]=De[bt].shallow.indexOf(Ot)>=0?Jt:Dt(Jt,z)}_ instanceof Error&&(Pt.message=_.message)}if(Pt.$name)throw new Error("$name property is reserved for worker serialization logic.");return bt!=="Object"&&(Pt.$name=bt),Pt}throw new Error("can't serialize object of type "+typeof _)}function Et(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||ct(_)||gt(_)||ArrayBuffer.isView(_)||_ instanceof Io)return _;if(Array.isArray(_))return _.map(Et);if(typeof _=="object"){var z=_.$name||"Object",X=De[z],ue=X.klass;if(!ue)throw new Error("can't deserialize unregistered class "+z);if(ue.deserialize)return ue.deserialize(_);for(var ge=Object.create(ue.prototype),Le=0,_e=Object.keys(_);Le<_e.length;Le+=1){var tt=_e[Le];if(tt!=="$name"){var bt=_[tt];ge[tt]=De[z].shallow.indexOf(tt)>=0?bt:Et(bt)}}return ge}throw new Error("can't deserialize object of type "+typeof _)}var Yt=function(){this.first=!0};Yt.prototype.update=function(z,X){var ue=Math.floor(z);return this.first?(this.first=!1,this.lastIntegerZoom=ue,this.lastIntegerZoomTime=0,this.lastZoom=z,this.lastFloorZoom=ue,!0):(this.lastFloorZoom>ue?(this.lastIntegerZoom=ue+1,this.lastIntegerZoomTime=X):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function ar(_){for(var z=0,X=_;z=65097&&_<=65103)||Zt["CJK Compatibility Ideographs"](_)||Zt["CJK Compatibility"](_)||Zt["CJK Radicals Supplement"](_)||Zt["CJK Strokes"](_)||Zt["CJK Symbols and Punctuation"](_)&&!(_>=12296&&_<=12305)&&!(_>=12308&&_<=12319)&&_!==12336||Zt["CJK Unified Ideographs Extension A"](_)||Zt["CJK Unified Ideographs"](_)||Zt["Enclosed CJK Letters and Months"](_)||Zt["Hangul Compatibility Jamo"](_)||Zt["Hangul Jamo Extended-A"](_)||Zt["Hangul Jamo Extended-B"](_)||Zt["Hangul Jamo"](_)||Zt["Hangul Syllables"](_)||Zt.Hiragana(_)||Zt["Ideographic Description Characters"](_)||Zt.Kanbun(_)||Zt["Kangxi Radicals"](_)||Zt["Katakana Phonetic Extensions"](_)||Zt.Katakana(_)&&_!==12540||Zt["Halfwidth and Fullwidth Forms"](_)&&_!==65288&&_!==65289&&_!==65293&&!(_>=65306&&_<=65310)&&_!==65339&&_!==65341&&_!==65343&&!(_>=65371&&_<=65503)&&_!==65507&&!(_>=65512&&_<=65519)||Zt["Small Form Variants"](_)&&!(_>=65112&&_<=65118)&&!(_>=65123&&_<=65126)||Zt["Unified Canadian Aboriginal Syllabics"](_)||Zt["Unified Canadian Aboriginal Syllabics Extended"](_)||Zt["Vertical Forms"](_)||Zt["Yijing Hexagram Symbols"](_)||Zt["Yi Syllables"](_)||Zt["Yi Radicals"](_))}function Or(_){return!!(Zt["Latin-1 Supplement"](_)&&(_===167||_===169||_===174||_===177||_===188||_===189||_===190||_===215||_===247)||Zt["General Punctuation"](_)&&(_===8214||_===8224||_===8225||_===8240||_===8241||_===8251||_===8252||_===8258||_===8263||_===8264||_===8265||_===8273)||Zt["Letterlike Symbols"](_)||Zt["Number Forms"](_)||Zt["Miscellaneous Technical"](_)&&(_>=8960&&_<=8967||_>=8972&&_<=8991||_>=8996&&_<=9e3||_===9003||_>=9085&&_<=9114||_>=9150&&_<=9165||_===9167||_>=9169&&_<=9179||_>=9186&&_<=9215)||Zt["Control Pictures"](_)&&_!==9251||Zt["Optical Character Recognition"](_)||Zt["Enclosed Alphanumerics"](_)||Zt["Geometric Shapes"](_)||Zt["Miscellaneous Symbols"](_)&&!(_>=9754&&_<=9759)||Zt["Miscellaneous Symbols and Arrows"](_)&&(_>=11026&&_<=11055||_>=11088&&_<=11097||_>=11192&&_<=11243)||Zt["CJK Symbols and Punctuation"](_)||Zt.Katakana(_)||Zt["Private Use Area"](_)||Zt["CJK Compatibility Forms"](_)||Zt["Small Form Variants"](_)||Zt["Halfwidth and Fullwidth Forms"](_)||_===8734||_===8756||_===8757||_>=9984&&_<=10087||_>=10102&&_<=10131||_===65532||_===65533)}function Gr(_){return!(dn(_)||Or(_))}function qr(_){return Zt.Arabic(_)||Zt["Arabic Supplement"](_)||Zt["Arabic Extended-A"](_)||Zt["Arabic Presentation Forms-A"](_)||Zt["Arabic Presentation Forms-B"](_)}function gn(_){return _>=1424&&_<=2303||Zt["Arabic Presentation Forms-A"](_)||Zt["Arabic Presentation Forms-B"](_)}function bn(_,z){return!(!z&&gn(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Zt.Khmer(_))}function an(_){for(var z=0,X=_;z-1&&(ua=fa.error),Sa&&Sa(_)};function ai(){Va.fire(new ir("pluginStateChange",{pluginStatus:ua,pluginURL:ya}))}var Va=new pr,ei=function(){return ua},Oi=function(_){return _({pluginStatus:ua,pluginURL:ya}),Va.on("pluginStateChange",_),_},Do=function(_,z,X){if(X===void 0&&(X=!1),ua===fa.deferred||ua===fa.loading||ua===fa.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");ya=de.resolveURL(_),ua=fa.deferred,Sa=z,ai(),X||Hi()},Hi=function(){if(ua!==fa.deferred||!ya)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ua=fa.loading,ai(),ya&&Wt({url:ya},function(_){_?Ca(_):(ua=fa.loaded,ai())})},sa={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ua===fa.loaded||sa.applyArabicShaping!=null},isLoading:function(){return ua===fa.loading},setState:function(z){ua=z.pluginStatus,ya=z.pluginURL},isParsed:function(){return sa.applyArabicShaping!=null&&sa.processBidirectionalText!=null&&sa.processStyledBidirectionalText!=null},getPluginURL:function(){return ya}},si=function(){!sa.isLoading()&&!sa.isLoaded()&&ei()==="deferred"&&Hi()},Ua=function(z,X){this.zoom=z,X?(this.now=X.now,this.fadeDuration=X.fadeDuration,this.zoomHistory=X.zoomHistory,this.transition=X.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yt,this.transition={})};Ua.prototype.isSupportedScript=function(z){return Kn(z,sa.isLoaded())},Ua.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Ua.prototype.getCrossfadeParameters=function(){var z=this.zoom,X=z-Math.floor(z),ue=this.crossFadingFactor();return z>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:X+(1-X)*ue}:{fromScale:.5,toScale:1,t:1-(1-ue)*X}};var bi=function(z,X){this.property=z,this.value=X,this.expression=zd(X===void 0?z.specification.default:X,z.specification)};bi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},bi.prototype.possiblyEvaluate=function(z,X,ue){return this.property.possiblyEvaluate(this,z,X,ue)};var so=function(z){this.property=z,this.value=new bi(z,void 0)};so.prototype.transitioned=function(z,X){return new rs(this.property,this.value,X,A({},z.transition,this.transition),z.now)},so.prototype.untransitioned=function(){return new rs(this.property,this.value,null,{},0)};var Fi=function(z){this._properties=z,this._values=Object.create(z.defaultTransitionablePropertyValues)};Fi.prototype.getValue=function(z){return G(this._values[z].value.value)},Fi.prototype.setValue=function(z,X){this._values.hasOwnProperty(z)||(this._values[z]=new so(this._values[z].property)),this._values[z].value=new bi(this._values[z].property,X===null?void 0:G(X))},Fi.prototype.getTransition=function(z){return G(this._values[z].transition)},Fi.prototype.setTransition=function(z,X){this._values.hasOwnProperty(z)||(this._values[z]=new so(this._values[z].property)),this._values[z].transition=G(X)||void 0},Fi.prototype.serialize=function(){for(var z={},X=0,ue=Object.keys(this._values);Xthis.end)return this.prior=null,Le;if(this.value.isDataDriven())return this.prior=null,Le;if(ge_e.zoomHistory.lastIntegerZoom?{from:ue,to:ge}:{from:Le,to:ge}},z.prototype.interpolate=function(ue){return ue},z}(Ga),qs=function(z){this.specification=z};qs.prototype.possiblyEvaluate=function(z,X,ue,ge){if(z.value!==void 0)if(z.expression.kind==="constant"){var Le=z.expression.evaluate(X,null,{},ue,ge);return this._calculate(Le,Le,Le,X)}else return this._calculate(z.expression.evaluate(new Ua(Math.floor(X.zoom-1),X)),z.expression.evaluate(new Ua(Math.floor(X.zoom),X)),z.expression.evaluate(new Ua(Math.floor(X.zoom+1),X)),X)},qs.prototype._calculate=function(z,X,ue,ge){var Le=ge.zoom;return Le>ge.zoomHistory.lastIntegerZoom?{from:z,to:X}:{from:ue,to:X}},qs.prototype.interpolate=function(z){return z};var cs=function(z){this.specification=z};cs.prototype.possiblyEvaluate=function(z,X,ue,ge){return!!z.expression.evaluate(X,null,{},ue,ge)},cs.prototype.interpolate=function(){return!1};var Wi=function(z){this.properties=z,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var X in z){var ue=z[X];ue.specification.overridable&&this.overridableProperties.push(X);var ge=this.defaultPropertyValues[X]=new bi(ue,void 0),Le=this.defaultTransitionablePropertyValues[X]=new so(ue);this.defaultTransitioningPropertyValues[X]=Le.untransitioned(),this.defaultPossiblyEvaluatedValues[X]=ge.possiblyEvaluate({})}};je("DataDrivenProperty",Ga),je("DataConstantProperty",ba),je("CrossFadedDataDrivenProperty",Ws),je("CrossFadedProperty",qs),je("ColorRampProperty",cs);var Wo="-transition",Bo=function(_){function z(X,ue){if(_.call(this),this.id=X.id,this.type=X.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},X.type!=="custom"&&(X=X,this.metadata=X.metadata,this.minzoom=X.minzoom,this.maxzoom=X.maxzoom,X.type!=="background"&&(this.source=X.source,this.sourceLayer=X["source-layer"],this.filter=X.filter),ue.layout&&(this._unevaluatedLayout=new us(ue.layout)),ue.paint)){this._transitionablePaint=new Fi(ue.paint);for(var ge in X.paint)this.setPaintProperty(ge,X.paint[ge],{validate:!1});for(var Le in X.layout)this.setLayoutProperty(Le,X.layout[Le],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ws(ue.paint)}}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},z.prototype.getLayoutProperty=function(ue){return ue==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ue)},z.prototype.setLayoutProperty=function(ue,ge,Le){if(Le===void 0&&(Le={}),ge!=null){var _e="layers."+this.id+".layout."+ue;if(this._validate(Xa,_e,ue,ge,Le))return}if(ue==="visibility"){this.visibility=ge;return}this._unevaluatedLayout.setValue(ue,ge)},z.prototype.getPaintProperty=function(ue){return I(ue,Wo)?this._transitionablePaint.getTransition(ue.slice(0,-Wo.length)):this._transitionablePaint.getValue(ue)},z.prototype.setPaintProperty=function(ue,ge,Le){if(Le===void 0&&(Le={}),ge!=null){var _e="layers."+this.id+".paint."+ue;if(this._validate(Ya,_e,ue,ge,Le))return!1}if(I(ue,Wo))return this._transitionablePaint.setTransition(ue.slice(0,-Wo.length),ge||void 0),!1;var tt=this._transitionablePaint._values[ue],bt=tt.property.specification["property-type"]==="cross-faded-data-driven",Pt=tt.value.isDataDriven(),Ot=tt.value;this._transitionablePaint.setValue(ue,ge),this._handleSpecialPaintPropertyUpdate(ue);var Jt=this._transitionablePaint._values[ue].value,or=Jt.isDataDriven();return or||Pt||bt||this._handleOverridablePaintPropertyUpdate(ue,Ot,Jt)},z.prototype._handleSpecialPaintPropertyUpdate=function(ue){},z.prototype._handleOverridablePaintPropertyUpdate=function(ue,ge,Le){return!1},z.prototype.isHidden=function(ue){return this.minzoom&&ue=this.maxzoom?!0:this.visibility==="none"},z.prototype.updateTransitions=function(ue){this._transitioningPaint=this._transitionablePaint.transitioned(ue,this._transitioningPaint)},z.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},z.prototype.recalculate=function(ue,ge){ue.getCrossfadeParameters&&(this._crossfadeParameters=ue.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ue,void 0,ge)),this.paint=this._transitioningPaint.possiblyEvaluate(ue,void 0,ge)},z.prototype.serialize=function(){var ue={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&&(ue.layout=ue.layout||{},ue.layout.visibility=this.visibility),B(ue,function(ge,Le){return ge!==void 0&&!(Le==="layout"&&!Object.keys(ge).length)&&!(Le==="paint"&&!Object.keys(ge).length)})},z.prototype._validate=function(ue,ge,Le,_e,tt){return tt===void 0&&(tt={}),tt&&tt.validate===!1?!1:Ja(this,ue.call(Un,{key:ge,layerType:this.type,objectKey:Le,value:_e,styleSpec:Ar,style:{glyphs:!0,sprite:!0}}))},z.prototype.is3D=function(){return!1},z.prototype.isTileClipped=function(){return!1},z.prototype.hasOffscreenPass=function(){return!1},z.prototype.resize=function(){},z.prototype.isStateDependent=function(){for(var ue in this.paint._values){var ge=this.paint.get(ue);if(!(!(ge instanceof lo)||!lu(ge.property.specification))&&(ge.value.kind==="source"||ge.value.kind==="composite")&&ge.value.isStateDependent)return!0}return!1},z}(pr),Hl={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},cu=function(z,X){this._structArray=z,this._pos1=X*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},bo=128,Kc=5,wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};wi.serialize=function(z,X){return z._trim(),X&&(z.isTransferred=!0,X.push(z.arrayBuffer)),{length:z.length,arrayBuffer:z.arrayBuffer}},wi.deserialize=function(z){var X=Object.create(this.prototype);return X.arrayBuffer=z.arrayBuffer,X.length=z.length,X.capacity=z.arrayBuffer.byteLength/X.bytesPerElement,X._refreshViews(),X},wi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(z){this.reserve(z),this.length=z},wi.prototype.reserve=function(z){if(z>this.capacity){this.capacity=Math.max(z,Math.floor(this.capacity*Kc),bo),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var X=this.uint8;this._refreshViews(),X&&this.uint8.set(X)}},wi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function wo(_,z){z===void 0&&(z=1);var X=0,ue=0,ge=_.map(function(_e){var tt=y0(_e.type),bt=X=Kb(X,Math.max(z,tt)),Pt=_e.components||1;return ue=Math.max(ue,tt),X+=tt*Pt,{name:_e.name,type:_e.type,components:Pt,offset:bt}}),Le=Kb(X,Math.max(ue,z));return{members:ge,size:Le,alignment:z}}function y0(_){return Hl[_].BYTES_PER_ELEMENT}function Kb(_,z){return Math.ceil(_/z)*z}var Dh=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge){var Le=this.length;return this.resize(Le+1),this.emplace(Le,ue,ge)},z.prototype.emplace=function(ue,ge,Le){var _e=ue*2;return this.int16[_e+0]=ge,this.int16[_e+1]=Le,ue},z}(wi);Dh.prototype.bytesPerElement=4,je("StructArrayLayout2i4",Dh);var Xy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e){var tt=this.length;return this.resize(tt+1),this.emplace(tt,ue,ge,Le,_e)},z.prototype.emplace=function(ue,ge,Le,_e,tt){var bt=ue*4;return this.int16[bt+0]=ge,this.int16[bt+1]=Le,this.int16[bt+2]=_e,this.int16[bt+3]=tt,ue},z}(wi);Xy.prototype.bytesPerElement=8,je("StructArrayLayout4i8",Xy);var Ud=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,ge,Le,_e,tt,bt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=ue*6;return this.int16[Ot+0]=ge,this.int16[Ot+1]=Le,this.int16[Ot+2]=_e,this.int16[Ot+3]=tt,this.int16[Ot+4]=bt,this.int16[Ot+5]=Pt,ue},z}(wi);Ud.prototype.bytesPerElement=12,je("StructArrayLayout2i4i12",Ud);var Uv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,ge,Le,_e,tt,bt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=ue*4,Jt=ue*8;return this.int16[Ot+0]=ge,this.int16[Ot+1]=Le,this.uint8[Jt+4]=_e,this.uint8[Jt+5]=tt,this.uint8[Jt+6]=bt,this.uint8[Jt+7]=Pt,ue},z}(wi);Uv.prototype.bytesPerElement=8,je("StructArrayLayout2i4ub8",Uv);var Hv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge){var Le=this.length;return this.resize(Le+1),this.emplace(Le,ue,ge)},z.prototype.emplace=function(ue,ge,Le){var _e=ue*2;return this.float32[_e+0]=ge,this.float32[_e+1]=Le,ue},z}(wi);Hv.prototype.bytesPerElement=8,je("StructArrayLayout2f8",Hv);var Tl=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or){var rr=this.length;return this.resize(rr+1),this.emplace(rr,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr){var wr=ue*10;return this.uint16[wr+0]=ge,this.uint16[wr+1]=Le,this.uint16[wr+2]=_e,this.uint16[wr+3]=tt,this.uint16[wr+4]=bt,this.uint16[wr+5]=Pt,this.uint16[wr+6]=Ot,this.uint16[wr+7]=Jt,this.uint16[wr+8]=or,this.uint16[wr+9]=rr,ue},z}(wi);Tl.prototype.bytesPerElement=20,je("StructArrayLayout10ui20",Tl);var Hd=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr){var Nr=this.length;return this.resize(Nr+1),this.emplace(Nr,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr){var pn=ue*12;return this.int16[pn+0]=ge,this.int16[pn+1]=Le,this.int16[pn+2]=_e,this.int16[pn+3]=tt,this.uint16[pn+4]=bt,this.uint16[pn+5]=Pt,this.uint16[pn+6]=Ot,this.uint16[pn+7]=Jt,this.int16[pn+8]=or,this.int16[pn+9]=rr,this.int16[pn+10]=wr,this.int16[pn+11]=Nr,ue},z}(wi);Hd.prototype.bytesPerElement=24,je("StructArrayLayout4i4ui4i24",Hd);var Zy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*3;return this.float32[tt+0]=ge,this.float32[tt+1]=Le,this.float32[tt+2]=_e,ue},z}(wi);Zy.prototype.bytesPerElement=12,je("StructArrayLayout3f12",Zy);var Ky=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue){var ge=this.length;return this.resize(ge+1),this.emplace(ge,ue)},z.prototype.emplace=function(ue,ge){var Le=ue*1;return this.uint32[Le+0]=ge,ue},z}(wi);Ky.prototype.bytesPerElement=4,je("StructArrayLayout1ul4",Ky);var x0=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.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)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt){var or=this.length;return this.resize(or+1),this.emplace(or,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or){var rr=ue*10,wr=ue*5;return this.int16[rr+0]=ge,this.int16[rr+1]=Le,this.int16[rr+2]=_e,this.int16[rr+3]=tt,this.int16[rr+4]=bt,this.int16[rr+5]=Pt,this.uint32[wr+3]=Ot,this.uint16[rr+8]=Jt,this.uint16[rr+9]=or,ue},z}(wi);x0.prototype.bytesPerElement=20,je("StructArrayLayout6i1ul2ui20",x0);var Eg=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,ge,Le,_e,tt,bt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=ue*6;return this.int16[Ot+0]=ge,this.int16[Ot+1]=Le,this.int16[Ot+2]=_e,this.int16[Ot+3]=tt,this.int16[Ot+4]=bt,this.int16[Ot+5]=Pt,ue},z}(wi);Eg.prototype.bytesPerElement=12,je("StructArrayLayout2i2i2i12",Eg);var qf=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt){var bt=this.length;return this.resize(bt+1),this.emplace(bt,ue,ge,Le,_e,tt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt){var Pt=ue*4,Ot=ue*8;return this.float32[Pt+0]=ge,this.float32[Pt+1]=Le,this.float32[Pt+2]=_e,this.int16[Ot+6]=tt,this.int16[Ot+7]=bt,ue},z}(wi);qf.prototype.bytesPerElement=16,je("StructArrayLayout2f1f2i16",qf);var Vl=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e){var tt=this.length;return this.resize(tt+1),this.emplace(tt,ue,ge,Le,_e)},z.prototype.emplace=function(ue,ge,Le,_e,tt){var bt=ue*12,Pt=ue*3;return this.uint8[bt+0]=ge,this.uint8[bt+1]=Le,this.float32[Pt+1]=_e,this.float32[Pt+2]=tt,ue},z}(wi);Vl.prototype.bytesPerElement=12,je("StructArrayLayout2ub2f12",Vl);var ed=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*3;return this.uint16[tt+0]=ge,this.uint16[tt+1]=Le,this.uint16[tt+2]=_e,ue},z}(wi);ed.prototype.bytesPerElement=6,je("StructArrayLayout3ui6",ed);var b0=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.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)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on,Dn,Cn){var kn=this.length;return this.resize(kn+1),this.emplace(kn,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on,Dn,Cn)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on,Dn,Cn,kn){var jn=ue*24,ta=ue*12,ha=ue*48;return this.int16[jn+0]=ge,this.int16[jn+1]=Le,this.uint16[jn+2]=_e,this.uint16[jn+3]=tt,this.uint32[ta+2]=bt,this.uint32[ta+3]=Pt,this.uint32[ta+4]=Ot,this.uint16[jn+10]=Jt,this.uint16[jn+11]=or,this.uint16[jn+12]=rr,this.float32[ta+7]=wr,this.float32[ta+8]=Nr,this.uint8[ha+36]=pn,this.uint8[ha+37]=on,this.uint8[ha+38]=Dn,this.uint32[ta+10]=Cn,this.int16[jn+22]=kn,ue},z}(wi);b0.prototype.bytesPerElement=48,je("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",b0);var Pg=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.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)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on,Dn,Cn,kn,jn,ta,ha,ca,Ba,Pa,za,ii,Na,ja){var fi=this.length;return this.resize(fi+1),this.emplace(fi,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on,Dn,Cn,kn,jn,ta,ha,ca,Ba,Pa,za,ii,Na,ja)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on,Dn,Cn,kn,jn,ta,ha,ca,Ba,Pa,za,ii,Na,ja,fi){var ni=ue*34,zi=ue*17;return this.int16[ni+0]=ge,this.int16[ni+1]=Le,this.int16[ni+2]=_e,this.int16[ni+3]=tt,this.int16[ni+4]=bt,this.int16[ni+5]=Pt,this.int16[ni+6]=Ot,this.int16[ni+7]=Jt,this.uint16[ni+8]=or,this.uint16[ni+9]=rr,this.uint16[ni+10]=wr,this.uint16[ni+11]=Nr,this.uint16[ni+12]=pn,this.uint16[ni+13]=on,this.uint16[ni+14]=Dn,this.uint16[ni+15]=Cn,this.uint16[ni+16]=kn,this.uint16[ni+17]=jn,this.uint16[ni+18]=ta,this.uint16[ni+19]=ha,this.uint16[ni+20]=ca,this.uint16[ni+21]=Ba,this.uint16[ni+22]=Pa,this.uint32[zi+12]=za,this.float32[zi+13]=ii,this.float32[zi+14]=Na,this.float32[zi+15]=ja,this.float32[zi+16]=fi,ue},z}(wi);Pg.prototype.bytesPerElement=68,je("StructArrayLayout8i15ui1ul4f68",Pg);var Vv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue){var ge=this.length;return this.resize(ge+1),this.emplace(ge,ue)},z.prototype.emplace=function(ue,ge){var Le=ue*1;return this.float32[Le+0]=ge,ue},z}(wi);Vv.prototype.bytesPerElement=4,je("StructArrayLayout1f4",Vv);var Jy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*3;return this.int16[tt+0]=ge,this.int16[tt+1]=Le,this.int16[tt+2]=_e,ue},z}(wi);Jy.prototype.bytesPerElement=6,je("StructArrayLayout3i6",Jy);var Vd=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*2,bt=ue*4;return this.uint32[tt+0]=ge,this.uint16[bt+2]=Le,this.uint16[bt+3]=_e,ue},z}(wi);Vd.prototype.bytesPerElement=8,je("StructArrayLayout1ul2ui8",Vd);var w0=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge){var Le=this.length;return this.resize(Le+1),this.emplace(Le,ue,ge)},z.prototype.emplace=function(ue,ge,Le){var _e=ue*2;return this.uint16[_e+0]=ge,this.uint16[_e+1]=Le,ue},z}(wi);w0.prototype.bytesPerElement=4,je("StructArrayLayout2ui4",w0);var jv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue){var ge=this.length;return this.resize(ge+1),this.emplace(ge,ue)},z.prototype.emplace=function(ue,ge){var Le=ue*1;return this.uint16[Le+0]=ge,ue},z}(wi);jv.prototype.bytesPerElement=2,je("StructArrayLayout1ui2",jv);var Oh=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e){var tt=this.length;return this.resize(tt+1),this.emplace(tt,ue,ge,Le,_e)},z.prototype.emplace=function(ue,ge,Le,_e,tt){var bt=ue*4;return this.float32[bt+0]=ge,this.float32[bt+1]=Le,this.float32[bt+2]=_e,this.float32[bt+3]=tt,ue},z}(wi);Oh.prototype.bytesPerElement=16,je("StructArrayLayout4f16",Oh);var Jb=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={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 X.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},X.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},X.x1.get=function(){return this._structArray.int16[this._pos2+2]},X.y1.get=function(){return this._structArray.int16[this._pos2+3]},X.x2.get=function(){return this._structArray.int16[this._pos2+4]},X.y2.get=function(){return this._structArray.int16[this._pos2+5]},X.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},X.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},X.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},X.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(z.prototype,X),z}(cu);Jb.prototype.size=20;var Qy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new Jb(this,ue)},z}(x0);je("CollisionBoxArray",Qy);var Fh=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={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 X.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},X.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},X.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},X.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},X.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},X.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},X.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},X.segment.get=function(){return this._structArray.uint16[this._pos2+10]},X.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},X.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},X.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},X.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},X.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},X.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},X.placedOrientation.set=function(ue){this._structArray.uint8[this._pos1+37]=ue},X.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},X.hidden.set=function(ue){this._structArray.uint8[this._pos1+38]=ue},X.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},X.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+10]=ue},X.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(z.prototype,X),z}(cu);Fh.prototype.size=48;var qy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new Fh(this,ue)},z}(b0);je("PlacedSymbolArray",qy);var Gv=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={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 X.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},X.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},X.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},X.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},X.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},X.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},X.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},X.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},X.key.get=function(){return this._structArray.uint16[this._pos2+8]},X.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},X.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},X.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},X.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},X.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},X.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},X.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},X.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},X.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},X.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},X.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},X.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},X.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},X.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},X.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},X.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+12]=ue},X.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},X.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},X.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},X.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(z.prototype,X),z}(cu);Gv.prototype.size=68;var Qb=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new Gv(this,ue)},z}(Pg);je("SymbolInstanceArray",Qb);var qb=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.getoffsetX=function(ue){return this.float32[ue*1+0]},z}(Vv);je("GlyphOffsetArray",qb);var cc=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.getx=function(ue){return this.int16[ue*3+0]},z.prototype.gety=function(ue){return this.int16[ue*3+1]},z.prototype.gettileUnitDistanceFromAnchor=function(ue){return this.int16[ue*3+2]},z}(Jy);je("SymbolLineVertexArray",cc);var ew=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return X.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},X.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},X.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(z.prototype,X),z}(cu);ew.prototype.size=8;var tw=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new ew(this,ue)},z}(Vd);je("FeatureIndexArray",tw);var lS=wo([{name:"a_pos",components:2,type:"Int16"}],4),rw=lS.members,fs=function(z){z===void 0&&(z=[]),this.segments=z};fs.prototype.prepareSegment=function(z,X,ue,ge){var Le=this.segments[this.segments.length-1];return z>fs.MAX_VERTEX_ARRAY_LENGTH&&W("Max vertices per segment is "+fs.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+z),(!Le||Le.vertexLength+z>fs.MAX_VERTEX_ARRAY_LENGTH||Le.sortKey!==ge)&&(Le={vertexOffset:X.length,primitiveOffset:ue.length,vertexLength:0,primitiveLength:0},ge!==void 0&&(Le.sortKey=ge),this.segments.push(Le)),Le},fs.prototype.get=function(){return this.segments},fs.prototype.destroy=function(){for(var z=0,X=this.segments;z>>16)*bt&65535)<<16)&4294967295,Ot=Ot<<15|Ot>>>17,Ot=(Ot&65535)*Pt+(((Ot>>>16)*Pt&65535)<<16)&4294967295,_e^=Ot,_e=_e<<13|_e>>>19,tt=(_e&65535)*5+(((_e>>>16)*5&65535)<<16)&4294967295,_e=(tt&65535)+27492+(((tt>>>16)+58964&65535)<<16);switch(Ot=0,ge){case 3:Ot^=(X.charCodeAt(Jt+2)&255)<<16;case 2:Ot^=(X.charCodeAt(Jt+1)&255)<<8;case 1:Ot^=X.charCodeAt(Jt)&255,Ot=(Ot&65535)*bt+(((Ot>>>16)*bt&65535)<<16)&4294967295,Ot=Ot<<15|Ot>>>17,Ot=(Ot&65535)*Pt+(((Ot>>>16)*Pt&65535)<<16)&4294967295,_e^=Ot}return _e^=X.length,_e^=_e>>>16,_e=(_e&65535)*2246822507+(((_e>>>16)*2246822507&65535)<<16)&4294967295,_e^=_e>>>13,_e=(_e&65535)*3266489909+(((_e>>>16)*3266489909&65535)<<16)&4294967295,_e^=_e>>>16,_e>>>0}_.exports=z}),se=C(function(_){function z(X,ue){for(var ge=X.length,Le=ue^ge,_e=0,tt;ge>=4;)tt=X.charCodeAt(_e)&255|(X.charCodeAt(++_e)&255)<<8|(X.charCodeAt(++_e)&255)<<16|(X.charCodeAt(++_e)&255)<<24,tt=(tt&65535)*1540483477+(((tt>>>16)*1540483477&65535)<<16),tt^=tt>>>24,tt=(tt&65535)*1540483477+(((tt>>>16)*1540483477&65535)<<16),Le=(Le&65535)*1540483477+(((Le>>>16)*1540483477&65535)<<16)^tt,ge-=4,++_e;switch(ge){case 3:Le^=(X.charCodeAt(_e+2)&255)<<16;case 2:Le^=(X.charCodeAt(_e+1)&255)<<8;case 1:Le^=X.charCodeAt(_e)&255,Le=(Le&65535)*1540483477+(((Le>>>16)*1540483477&65535)<<16)}return Le^=Le>>>13,Le=(Le&65535)*1540483477+(((Le>>>16)*1540483477&65535)<<16),Le^=Le>>>15,Le>>>0}_.exports=z}),ye=me,He=me,Qe=se;ye.murmur3=He,ye.murmur2=Qe;var pt=function(){this.ids=[],this.positions=[],this.indexed=!1};pt.prototype.add=function(z,X,ue,ge){this.ids.push($t(z)),this.positions.push(X,ue,ge)},pt.prototype.getPositions=function(z){for(var X=$t(z),ue=0,ge=this.ids.length-1;ue>1;this.ids[Le]>=X?ge=Le:ue=Le+1}for(var _e=[];this.ids[ue]===X;){var tt=this.positions[3*ue],bt=this.positions[3*ue+1],Pt=this.positions[3*ue+2];_e.push({index:tt,start:bt,end:Pt}),ue++}return _e},pt.serialize=function(z,X){var ue=new Float64Array(z.ids),ge=new Uint32Array(z.positions);return tr(ue,ge,0,ue.length-1),X&&X.push(ue.buffer,ge.buffer),{ids:ue,positions:ge}},pt.deserialize=function(z){var X=new pt;return X.ids=z.ids,X.positions=z.positions,X.indexed=!0,X};var kt=Math.pow(2,53)-1;function $t(_){var z=+_;return!isNaN(z)&&z<=kt?z:ye(String(_))}function tr(_,z,X,ue){for(;X>1],Le=X-1,_e=ue+1;;){do Le++;while(_[Le]ge);if(Le>=_e)break;cr(_,Le,_e),cr(z,3*Le,3*_e),cr(z,3*Le+1,3*_e+1),cr(z,3*Le+2,3*_e+2)}_e-X_e.x+1||bt<_e.y||bt>_e.y+1)&&W("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return X}function fo(_,z){return{type:_.type,id:_.id,properties:_.properties,geometry:z?Pi(_):[]}}function Si(_,z,X,ue,ge){_.emplaceBack(z*2+(ue+1)/2,X*2+(ge+1)/2)}var no=function(z){this.zoom=z.zoom,this.overscaling=z.overscaling,this.layers=z.layers,this.layerIds=this.layers.map(function(X){return X.id}),this.index=z.index,this.hasPattern=!1,this.layoutVertexArray=new Dh,this.indexArray=new ed,this.segments=new fs,this.programConfigurations=new Ea(z.layers,z.zoom),this.stateDependentLayerIds=this.layers.filter(function(X){return X.isStateDependent()}).map(function(X){return X.id})};no.prototype.populate=function(z,X,ue){var ge=this.layers[0],Le=[],_e=null;ge.type==="circle"&&(_e=ge.layout.get("circle-sort-key"));for(var tt=0,bt=z;tt=Ha||or<0||or>=Ha)){var rr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,z.sortKey),wr=rr.vertexLength;Si(this.layoutVertexArray,Jt,or,-1,-1),Si(this.layoutVertexArray,Jt,or,1,-1),Si(this.layoutVertexArray,Jt,or,1,1),Si(this.layoutVertexArray,Jt,or,-1,1),this.indexArray.emplaceBack(wr,wr+1,wr+2),this.indexArray.emplaceBack(wr,wr+3,wr+2),rr.vertexLength+=4,rr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,z,ue,{},ge)},je("CircleBucket",no,{omit:["layers"]});function ui(_,z){for(var X=0;X<_.length;X++)if(Sl(z,_[X]))return!0;for(var ue=0;ue=3){for(var Le=0;Le1){if(Fu(_,z))return!0;for(var ue=0;ue1?_.distSqr(X):_.distSqr(X.sub(z)._mult(ge)._add(z))}function Qc(_,z){for(var X=!1,ue,ge,Le,_e=0;_e<_.length;_e++){ue=_[_e];for(var tt=0,bt=ue.length-1;ttz.y!=Le.y>z.y&&z.x<(Le.x-ge.x)*(z.y-ge.y)/(Le.y-ge.y)+ge.x&&(X=!X)}return X}function Sl(_,z){for(var X=!1,ue=0,ge=_.length-1;ue<_.length;ge=ue++){var Le=_[ue],_e=_[ge];Le.y>z.y!=_e.y>z.y&&z.x<(_e.x-Le.x)*(z.y-Le.y)/(_e.y-Le.y)+Le.x&&(X=!X)}return X}function qc(_,z,X,ue,ge){for(var Le=0,_e=_;Le<_e.length;Le+=1){var tt=_e[Le];if(z<=tt.x&&X<=tt.y&&ue>=tt.x&&ge>=tt.y)return!0}var bt=[new a(z,X),new a(z,ge),new a(ue,ge),new a(ue,X)];if(_.length>2)for(var Pt=0,Ot=bt;Ptge.x&&z.x>ge.x||_.yge.y&&z.y>ge.y)return!1;var Le=V(_,z,X[0]);return Le!==V(_,z,X[1])||Le!==V(_,z,X[2])||Le!==V(_,z,X[3])}function Cl(_,z,X){var ue=z.paint.get(_).value;return ue.kind==="constant"?ue.value:X.programConfigurations.get(z.id).getMaxValue(_)}function dc(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function td(_,z,X,ue,ge){if(!z[0]&&!z[1])return _;var Le=a.convert(z)._mult(ge);X==="viewport"&&Le._rotate(-ue);for(var _e=[],tt=0;tt<_.length;tt++){var bt=_[tt];_e.push(bt.sub(Le))}return _e}var hc=new Wi({"circle-sort-key":new Ga(Ar.layout_circle["circle-sort-key"])}),Lg=new Wi({"circle-radius":new Ga(Ar.paint_circle["circle-radius"]),"circle-color":new Ga(Ar.paint_circle["circle-color"]),"circle-blur":new Ga(Ar.paint_circle["circle-blur"]),"circle-opacity":new Ga(Ar.paint_circle["circle-opacity"]),"circle-translate":new ba(Ar.paint_circle["circle-translate"]),"circle-translate-anchor":new ba(Ar.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new ba(Ar.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new ba(Ar.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Ga(Ar.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Ga(Ar.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Ga(Ar.paint_circle["circle-stroke-opacity"])}),Wv={paint:Lg,layout:hc},ks=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var _=arguments,z=0,X=arguments.length;X--;)z+=_[X]*_[X];return Math.sqrt(z)});function Ig(){var _=new ks(4);return ks!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_}function T0(_,z,X){var ue=z[0],ge=z[1],Le=z[2],_e=z[3],tt=Math.sin(X),bt=Math.cos(X);return _[0]=ue*bt+Le*tt,_[1]=ge*bt+_e*tt,_[2]=ue*-tt+Le*bt,_[3]=ge*-tt+_e*bt,_}function il(){var _=new ks(9);return ks!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_}function $v(_,z){var X=Math.sin(z),ue=Math.cos(z);return _[0]=ue,_[1]=X,_[2]=0,_[3]=-X,_[4]=ue,_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}function Rg(){var _=new ks(16);return ks!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_}function kg(_){var z=new ks(16);return z[0]=_[0],z[1]=_[1],z[2]=_[2],z[3]=_[3],z[4]=_[4],z[5]=_[5],z[6]=_[6],z[7]=_[7],z[8]=_[8],z[9]=_[9],z[10]=_[10],z[11]=_[11],z[12]=_[12],z[13]=_[13],z[14]=_[14],z[15]=_[15],z}function Dg(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function Yv(_,z){var X=z[0],ue=z[1],ge=z[2],Le=z[3],_e=z[4],tt=z[5],bt=z[6],Pt=z[7],Ot=z[8],Jt=z[9],or=z[10],rr=z[11],wr=z[12],Nr=z[13],pn=z[14],on=z[15],Dn=X*tt-ue*_e,Cn=X*bt-ge*_e,kn=X*Pt-Le*_e,jn=ue*bt-ge*tt,ta=ue*Pt-Le*tt,ha=ge*Pt-Le*bt,ca=Ot*Nr-Jt*wr,Ba=Ot*pn-or*wr,Pa=Ot*on-rr*wr,za=Jt*pn-or*Nr,ii=Jt*on-rr*Nr,Na=or*on-rr*pn,ja=Dn*Na-Cn*ii+kn*za+jn*Pa-ta*Ba+ha*ca;return ja?(ja=1/ja,_[0]=(tt*Na-bt*ii+Pt*za)*ja,_[1]=(ge*ii-ue*Na-Le*za)*ja,_[2]=(Nr*ha-pn*ta+on*jn)*ja,_[3]=(or*ta-Jt*ha-rr*jn)*ja,_[4]=(bt*Pa-_e*Na-Pt*Ba)*ja,_[5]=(X*Na-ge*Pa+Le*Ba)*ja,_[6]=(pn*kn-wr*ha-on*Cn)*ja,_[7]=(Ot*ha-or*kn+rr*Cn)*ja,_[8]=(_e*ii-tt*Pa+Pt*ca)*ja,_[9]=(ue*Pa-X*ii-Le*ca)*ja,_[10]=(wr*ta-Nr*kn+on*Dn)*ja,_[11]=(Jt*kn-Ot*ta-rr*Dn)*ja,_[12]=(tt*Ba-_e*za-bt*ca)*ja,_[13]=(X*za-ue*Ba+ge*ca)*ja,_[14]=(Nr*Cn-wr*jn-pn*Dn)*ja,_[15]=(Ot*jn-Jt*Cn+or*Dn)*ja,_):null}function Xv(_,z,X){var ue=z[0],ge=z[1],Le=z[2],_e=z[3],tt=z[4],bt=z[5],Pt=z[6],Ot=z[7],Jt=z[8],or=z[9],rr=z[10],wr=z[11],Nr=z[12],pn=z[13],on=z[14],Dn=z[15],Cn=X[0],kn=X[1],jn=X[2],ta=X[3];return _[0]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[1]=Cn*ge+kn*bt+jn*or+ta*pn,_[2]=Cn*Le+kn*Pt+jn*rr+ta*on,_[3]=Cn*_e+kn*Ot+jn*wr+ta*Dn,Cn=X[4],kn=X[5],jn=X[6],ta=X[7],_[4]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[5]=Cn*ge+kn*bt+jn*or+ta*pn,_[6]=Cn*Le+kn*Pt+jn*rr+ta*on,_[7]=Cn*_e+kn*Ot+jn*wr+ta*Dn,Cn=X[8],kn=X[9],jn=X[10],ta=X[11],_[8]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[9]=Cn*ge+kn*bt+jn*or+ta*pn,_[10]=Cn*Le+kn*Pt+jn*rr+ta*on,_[11]=Cn*_e+kn*Ot+jn*wr+ta*Dn,Cn=X[12],kn=X[13],jn=X[14],ta=X[15],_[12]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[13]=Cn*ge+kn*bt+jn*or+ta*pn,_[14]=Cn*Le+kn*Pt+jn*rr+ta*on,_[15]=Cn*_e+kn*Ot+jn*wr+ta*Dn,_}function $o(_,z,X){var ue=X[0],ge=X[1],Le=X[2],_e,tt,bt,Pt,Ot,Jt,or,rr,wr,Nr,pn,on;return z===_?(_[12]=z[0]*ue+z[4]*ge+z[8]*Le+z[12],_[13]=z[1]*ue+z[5]*ge+z[9]*Le+z[13],_[14]=z[2]*ue+z[6]*ge+z[10]*Le+z[14],_[15]=z[3]*ue+z[7]*ge+z[11]*Le+z[15]):(_e=z[0],tt=z[1],bt=z[2],Pt=z[3],Ot=z[4],Jt=z[5],or=z[6],rr=z[7],wr=z[8],Nr=z[9],pn=z[10],on=z[11],_[0]=_e,_[1]=tt,_[2]=bt,_[3]=Pt,_[4]=Ot,_[5]=Jt,_[6]=or,_[7]=rr,_[8]=wr,_[9]=Nr,_[10]=pn,_[11]=on,_[12]=_e*ue+Ot*ge+wr*Le+z[12],_[13]=tt*ue+Jt*ge+Nr*Le+z[13],_[14]=bt*ue+or*ge+pn*Le+z[14],_[15]=Pt*ue+rr*ge+on*Le+z[15]),_}function Gl(_,z,X){var ue=X[0],ge=X[1],Le=X[2];return _[0]=z[0]*ue,_[1]=z[1]*ue,_[2]=z[2]*ue,_[3]=z[3]*ue,_[4]=z[4]*ge,_[5]=z[5]*ge,_[6]=z[6]*ge,_[7]=z[7]*ge,_[8]=z[8]*Le,_[9]=z[9]*Le,_[10]=z[10]*Le,_[11]=z[11]*Le,_[12]=z[12],_[13]=z[13],_[14]=z[14],_[15]=z[15],_}function Wl(_,z,X){var ue=Math.sin(X),ge=Math.cos(X),Le=z[4],_e=z[5],tt=z[6],bt=z[7],Pt=z[8],Ot=z[9],Jt=z[10],or=z[11];return z!==_&&(_[0]=z[0],_[1]=z[1],_[2]=z[2],_[3]=z[3],_[12]=z[12],_[13]=z[13],_[14]=z[14],_[15]=z[15]),_[4]=Le*ge+Pt*ue,_[5]=_e*ge+Ot*ue,_[6]=tt*ge+Jt*ue,_[7]=bt*ge+or*ue,_[8]=Pt*ge-Le*ue,_[9]=Ot*ge-_e*ue,_[10]=Jt*ge-tt*ue,_[11]=or*ge-bt*ue,_}function Og(_,z,X){var ue=Math.sin(X),ge=Math.cos(X),Le=z[0],_e=z[1],tt=z[2],bt=z[3],Pt=z[4],Ot=z[5],Jt=z[6],or=z[7];return z!==_&&(_[8]=z[8],_[9]=z[9],_[10]=z[10],_[11]=z[11],_[12]=z[12],_[13]=z[13],_[14]=z[14],_[15]=z[15]),_[0]=Le*ge+Pt*ue,_[1]=_e*ge+Ot*ue,_[2]=tt*ge+Jt*ue,_[3]=bt*ge+or*ue,_[4]=Pt*ge-Le*ue,_[5]=Ot*ge-_e*ue,_[6]=Jt*ge-tt*ue,_[7]=or*ge-bt*ue,_}function e1(_,z,X,ue,ge){var Le=1/Math.tan(z/2),_e;return _[0]=Le/X,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=Le,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=-1,_[12]=0,_[13]=0,_[15]=0,ge!=null&&ge!==1/0?(_e=1/(ue-ge),_[10]=(ge+ue)*_e,_[14]=2*ge*ue*_e):(_[10]=-1,_[14]=-2*ue),_}function uS(_,z,X,ue,ge,Le,_e){var tt=1/(z-X),bt=1/(ue-ge),Pt=1/(Le-_e);return _[0]=-2*tt,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*bt,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*Pt,_[11]=0,_[12]=(z+X)*tt,_[13]=(ge+ue)*bt,_[14]=(_e+Le)*Pt,_[15]=1,_}var cS=Xv;function S0(){var _=new ks(3);return ks!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0),_}function fS(_){var z=new ks(3);return z[0]=_[0],z[1]=_[1],z[2]=_[2],z}function Fg(_,z,X){return _[0]=z[0]+X[0],_[1]=z[1]+X[1],_[2]=z[2]+X[2],_}function dS(_,z,X){return _[0]=z[0]-X[0],_[1]=z[1]-X[1],_[2]=z[2]-X[2],_}function hS(_,z,X){return _[0]=z[0]*X,_[1]=z[1]*X,_[2]=z[2]*X,_}function t1(_,z){var X=z[0],ue=z[1],ge=z[2],Le=X*X+ue*ue+ge*ge;return Le>0&&(Le=1/Math.sqrt(Le)),_[0]=z[0]*Le,_[1]=z[1]*Le,_[2]=z[2]*Le,_}function Ez(_,z){return _[0]*z[0]+_[1]*z[1]+_[2]*z[2]}function Pz(_,z,X){var ue=z[0],ge=z[1],Le=z[2],_e=X[0],tt=X[1],bt=X[2];return _[0]=ge*bt-Le*tt,_[1]=Le*_e-ue*bt,_[2]=ue*tt-ge*_e,_}function Lz(_,z,X){var ue=z[0],ge=z[1],Le=z[2];return _[0]=ue*X[0]+ge*X[3]+Le*X[6],_[1]=ue*X[1]+ge*X[4]+Le*X[7],_[2]=ue*X[2]+ge*X[5]+Le*X[8],_}var Iz=dS;(function(){var _=S0();return function(z,X,ue,ge,Le,_e){var tt,bt;for(X||(X=3),ue||(ue=0),ge?bt=Math.min(ge*X+ue,z.length):bt=z.length,tt=ue;tt_.width||ge.height>_.height||X.x>_.width-ge.width||X.y>_.height-ge.height)throw new RangeError("out of range source coordinates for image copy");if(ge.width>z.width||ge.height>z.height||ue.x>z.width-ge.width||ue.y>z.height-ge.height)throw new RangeError("out of range destination coordinates for image copy");for(var _e=_.data,tt=z.data,bt=0;bt80*X){tt=Pt=_[0],bt=Ot=_[1];for(var wr=X;wrPt&&(Pt=Jt),or>Ot&&(Ot=or);rr=Math.max(Pt-tt,Ot-bt),rr=rr!==0?1/rr:0}return r1(Le,_e,X,tt,bt,rr),_e}function H6(_,z,X,ue,ge){var Le,_e;if(ge===xS(_,z,X,ue)>0)for(Le=z;Le=z;Le-=ue)_e=G6(Le,_[Le],_[Le+1],_e);return _e&&iw(_e,_e.next)&&(a1(_e),_e=_e.next),_e}function Zv(_,z){if(!_)return _;z||(z=_);var X=_,ue;do if(ue=!1,!X.steiner&&(iw(X,X.next)||ds(X.prev,X,X.next)===0)){if(a1(X),X=z=X.prev,X===X.next)break;ue=!0}else X=X.next;while(ue||X!==z);return z}function r1(_,z,X,ue,ge,Le,_e){if(_){!_e&&Le&&nB(_,ue,ge,Le);for(var tt=_,bt,Pt;_.prev!==_.next;){if(bt=_.prev,Pt=_.next,Le?Zz(_,ue,ge,Le):Xz(_)){z.push(bt.i/X),z.push(_.i/X),z.push(Pt.i/X),a1(_),_=Pt.next,tt=Pt.next;continue}if(_=Pt,_===tt){_e?_e===1?(_=Kz(Zv(_),z,X),r1(_,z,X,ue,ge,Le,2)):_e===2&&Jz(_,z,X,ue,ge,Le):r1(Zv(_),z,X,ue,ge,Le,1);break}}}}function Xz(_){var z=_.prev,X=_,ue=_.next;if(ds(z,X,ue)>=0)return!1;for(var ge=_.next.next;ge!==_.prev;){if(_g(z.x,z.y,X.x,X.y,ue.x,ue.y,ge.x,ge.y)&&ds(ge.prev,ge,ge.next)>=0)return!1;ge=ge.next}return!0}function Zz(_,z,X,ue){var ge=_.prev,Le=_,_e=_.next;if(ds(ge,Le,_e)>=0)return!1;for(var tt=ge.xLe.x?ge.x>_e.x?ge.x:_e.x:Le.x>_e.x?Le.x:_e.x,Ot=ge.y>Le.y?ge.y>_e.y?ge.y:_e.y:Le.y>_e.y?Le.y:_e.y,Jt=mS(tt,bt,z,X,ue),or=mS(Pt,Ot,z,X,ue),rr=_.prevZ,wr=_.nextZ;rr&&rr.z>=Jt&&wr&&wr.z<=or;){if(rr!==_.prev&&rr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,rr.x,rr.y)&&ds(rr.prev,rr,rr.next)>=0||(rr=rr.prevZ,wr!==_.prev&&wr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,wr.x,wr.y)&&ds(wr.prev,wr,wr.next)>=0))return!1;wr=wr.nextZ}for(;rr&&rr.z>=Jt;){if(rr!==_.prev&&rr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,rr.x,rr.y)&&ds(rr.prev,rr,rr.next)>=0)return!1;rr=rr.prevZ}for(;wr&&wr.z<=or;){if(wr!==_.prev&&wr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,wr.x,wr.y)&&ds(wr.prev,wr,wr.next)>=0)return!1;wr=wr.nextZ}return!0}function Kz(_,z,X){var ue=_;do{var ge=ue.prev,Le=ue.next.next;!iw(ge,Le)&&V6(ge,ue,ue.next,Le)&&n1(ge,Le)&&n1(Le,ge)&&(z.push(ge.i/X),z.push(ue.i/X),z.push(Le.i/X),a1(ue),a1(ue.next),ue=_=Le),ue=ue.next}while(ue!==_);return Zv(ue)}function Jz(_,z,X,ue,ge,Le){var _e=_;do{for(var tt=_e.next.next;tt!==_e.prev;){if(_e.i!==tt.i&&oB(_e,tt)){var bt=j6(_e,tt);_e=Zv(_e,_e.next),bt=Zv(bt,bt.next),r1(_e,z,X,ue,ge,Le),r1(bt,z,X,ue,ge,Le);return}tt=tt.next}_e=_e.next}while(_e!==_)}function Qz(_,z,X,ue){var ge=[],Le,_e,tt,bt,Pt;for(Le=0,_e=z.length;Le<_e;Le++)tt=z[Le]*ue,bt=Le<_e-1?z[Le+1]*ue:_.length,Pt=H6(_,tt,bt,ue,!1),Pt===Pt.next&&(Pt.steiner=!0),ge.push(iB(Pt));for(ge.sort(qz),Le=0;Le=X.next.y&&X.next.y!==X.y){var tt=X.x+(ge-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(tt<=ue&&tt>Le){if(Le=tt,tt===ue){if(ge===X.y)return X;if(ge===X.next.y)return X.next}_e=X.x=X.x&&X.x>=Pt&&ue!==X.x&&_g(ge_e.x||X.x===_e.x&&rB(_e,X)))&&(_e=X,Jt=or)),X=X.next;while(X!==bt);return _e}function rB(_,z){return ds(_.prev,_,z.prev)<0&&ds(z.next,_,_.next)<0}function nB(_,z,X,ue){var ge=_;do ge.z===null&&(ge.z=mS(ge.x,ge.y,z,X,ue)),ge.prevZ=ge.prev,ge.nextZ=ge.next,ge=ge.next;while(ge!==_);ge.prevZ.nextZ=null,ge.prevZ=null,aB(ge)}function aB(_){var z,X,ue,ge,Le,_e,tt,bt,Pt=1;do{for(X=_,_=null,Le=null,_e=0;X;){for(_e++,ue=X,tt=0,z=0;z0||bt>0&&ue;)tt!==0&&(bt===0||!ue||X.z<=ue.z)?(ge=X,X=X.nextZ,tt--):(ge=ue,ue=ue.nextZ,bt--),Le?Le.nextZ=ge:_=ge,ge.prevZ=Le,Le=ge;X=ue}Le.nextZ=null,Pt*=2}while(_e>1);return _}function mS(_,z,X,ue,ge){return _=32767*(_-X)*ge,z=32767*(z-ue)*ge,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,z=(z|z<<8)&16711935,z=(z|z<<4)&252645135,z=(z|z<<2)&858993459,z=(z|z<<1)&1431655765,_|z<<1}function iB(_){var z=_,X=_;do(z.x=0&&(_-_e)*(ue-tt)-(X-_e)*(z-tt)>=0&&(X-_e)*(Le-tt)-(ge-_e)*(ue-tt)>=0}function oB(_,z){return _.next.i!==z.i&&_.prev.i!==z.i&&!sB(_,z)&&(n1(_,z)&&n1(z,_)&&lB(_,z)&&(ds(_.prev,_,z.prev)||ds(_,z.prev,z))||iw(_,z)&&ds(_.prev,_,_.next)>0&&ds(z.prev,z,z.next)>0)}function ds(_,z,X){return(z.y-_.y)*(X.x-z.x)-(z.x-_.x)*(X.y-z.y)}function iw(_,z){return _.x===z.x&&_.y===z.y}function V6(_,z,X,ue){var ge=sw(ds(_,z,X)),Le=sw(ds(_,z,ue)),_e=sw(ds(X,ue,_)),tt=sw(ds(X,ue,z));return!!(ge!==Le&&_e!==tt||ge===0&&ow(_,X,z)||Le===0&&ow(_,ue,z)||_e===0&&ow(X,_,ue)||tt===0&&ow(X,z,ue))}function ow(_,z,X){return z.x<=Math.max(_.x,X.x)&&z.x>=Math.min(_.x,X.x)&&z.y<=Math.max(_.y,X.y)&&z.y>=Math.min(_.y,X.y)}function sw(_){return _>0?1:_<0?-1:0}function sB(_,z){var X=_;do{if(X.i!==_.i&&X.next.i!==_.i&&X.i!==z.i&&X.next.i!==z.i&&V6(X,X.next,_,z))return!0;X=X.next}while(X!==_);return!1}function n1(_,z){return ds(_.prev,_,_.next)<0?ds(_,z,_.next)>=0&&ds(_,_.prev,z)>=0:ds(_,z,_.prev)<0||ds(_,_.next,z)<0}function lB(_,z){var X=_,ue=!1,ge=(_.x+z.x)/2,Le=(_.y+z.y)/2;do X.y>Le!=X.next.y>Le&&X.next.y!==X.y&&ge<(X.next.x-X.x)*(Le-X.y)/(X.next.y-X.y)+X.x&&(ue=!ue),X=X.next;while(X!==_);return ue}function j6(_,z){var X=new yS(_.i,_.x,_.y),ue=new yS(z.i,z.x,z.y),ge=_.next,Le=z.prev;return _.next=z,z.prev=_,X.next=ge,ge.prev=X,ue.next=X,X.prev=ue,Le.next=ue,ue.prev=Le,ue}function G6(_,z,X,ue){var ge=new yS(_,z,X);return ue?(ge.next=ue.next,ge.prev=ue,ue.next.prev=ge,ue.next=ge):(ge.prev=ge,ge.next=ge),ge}function a1(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function yS(_,z,X){this.i=_,this.x=z,this.y=X,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}aw.deviation=function(_,z,X,ue){var ge=z&&z.length,Le=ge?z[0]*X:_.length,_e=Math.abs(xS(_,0,Le,X));if(ge)for(var tt=0,bt=z.length;tt0&&(ue+=_[ge-1].length,X.holes.push(ue))}return X},gS.default=Yz;function uB(_,z,X,ue,ge){W6(_,z,X||0,ue||_.length-1,ge||cB)}function W6(_,z,X,ue,ge){for(;ue>X;){if(ue-X>600){var Le=ue-X+1,_e=z-X+1,tt=Math.log(Le),bt=.5*Math.exp(2*tt/3),Pt=.5*Math.sqrt(tt*bt*(Le-bt)/Le)*(_e-Le/2<0?-1:1),Ot=Math.max(X,Math.floor(z-_e*bt/Le+Pt)),Jt=Math.min(ue,Math.floor(z+(Le-_e)*bt/Le+Pt));W6(_,z,Ot,Jt,ge)}var or=_[z],rr=X,wr=ue;for(i1(_,X,z),ge(_[ue],or)>0&&i1(_,X,ue);rr0;)wr--}ge(_[X],or)===0?i1(_,X,wr):(wr++,i1(_,wr,ue)),wr<=z&&(X=wr+1),z<=wr&&(ue=wr-1)}}function i1(_,z,X){var ue=_[z];_[z]=_[X],_[X]=ue}function cB(_,z){return _z?1:0}function bS(_,z){var X=_.length;if(X<=1)return[_];for(var ue=[],ge,Le,_e=0;_e1)for(var bt=0;bt>3}if(ue--,X===1||X===2)ge+=_.readSVarint(),Le+=_.readSVarint(),X===1&&(tt&&_e.push(tt),tt=[]),tt.push(new a(ge,Le));else if(X===7)tt&&tt.push(tt[0].clone());else throw new Error("unknown command "+X)}return tt&&_e.push(tt),_e},zg.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var z=_.readVarint()+_.pos,X=1,ue=0,ge=0,Le=0,_e=1/0,tt=-1/0,bt=1/0,Pt=-1/0;_.pos>3}if(ue--,X===1||X===2)ge+=_.readSVarint(),Le+=_.readSVarint(),ge<_e&&(_e=ge),ge>tt&&(tt=ge),LePt&&(Pt=Le);else if(X!==7)throw new Error("unknown command "+X)}return[_e,bt,tt,Pt]},zg.prototype.toGeoJSON=function(_,z,X){var ue=this.extent*Math.pow(2,X),ge=this.extent*_,Le=this.extent*z,_e=this.loadGeometry(),tt=zg.types[this.type],bt,Pt;function Ot(rr){for(var wr=0;wr>3;z=ue===1?_.readString():ue===2?_.readFloat():ue===3?_.readDouble():ue===4?_.readVarint64():ue===5?_.readVarint():ue===6?_.readSVarint():ue===7?_.readBoolean():null}return z}X6.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var z=this._pbf.readVarint()+this._pbf.pos;return new $6(this._pbf,z,this.extent,this._keys,this._values)};var MB=AB;function AB(_,z){this.layers=_.readFields(EB,{},z)}function EB(_,z,X){if(_===3){var ue=new Y6(X,X.readVarint()+X.pos);ue.length&&(z[ue.name]=ue)}}var PB=MB,LB=$6,IB=Y6,Bg={VectorTile:PB,VectorTileFeature:LB,VectorTileLayer:IB},RB=Bg.VectorTileFeature.types,kB=500,SS=Math.pow(2,13);function o1(_,z,X,ue,ge,Le,_e,tt){_.emplaceBack(z,X,Math.floor(ue*SS)*2+_e,ge*SS*2,Le*SS*2,Math.round(tt))}var nd=function(z){this.zoom=z.zoom,this.overscaling=z.overscaling,this.layers=z.layers,this.layerIds=this.layers.map(function(X){return X.id}),this.index=z.index,this.hasPattern=!1,this.layoutVertexArray=new Ud,this.indexArray=new ed,this.programConfigurations=new Ea(z.layers,z.zoom),this.segments=new fs,this.stateDependentLayerIds=this.layers.filter(function(X){return X.isStateDependent()}).map(function(X){return X.id})};nd.prototype.populate=function(z,X,ue){this.features=[],this.hasPattern=wS("fill-extrusion",this.layers,X);for(var ge=0,Le=z;ge=1){var kn=pn[Dn-1];if(!DB(Cn,kn)){rr.vertexLength+4>fs.MAX_VERTEX_ARRAY_LENGTH&&(rr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var jn=Cn.sub(kn)._perp()._unit(),ta=kn.dist(Cn);on+ta>32768&&(on=0),o1(this.layoutVertexArray,Cn.x,Cn.y,jn.x,jn.y,0,0,on),o1(this.layoutVertexArray,Cn.x,Cn.y,jn.x,jn.y,0,1,on),on+=ta,o1(this.layoutVertexArray,kn.x,kn.y,jn.x,jn.y,0,0,on),o1(this.layoutVertexArray,kn.x,kn.y,jn.x,jn.y,0,1,on);var ha=rr.vertexLength;this.indexArray.emplaceBack(ha,ha+2,ha+1),this.indexArray.emplaceBack(ha+1,ha+2,ha+3),rr.vertexLength+=4,rr.primitiveLength+=2}}}}if(rr.vertexLength+Pt>fs.MAX_VERTEX_ARRAY_LENGTH&&(rr=this.segments.prepareSegment(Pt,this.layoutVertexArray,this.indexArray)),RB[z.type]==="Polygon"){for(var ca=[],Ba=[],Pa=rr.vertexLength,za=0,ii=bt;zaHa)||_.y===z.y&&(_.y<0||_.y>Ha)}function OB(_){return _.every(function(z){return z.x<0})||_.every(function(z){return z.x>Ha})||_.every(function(z){return z.y<0})||_.every(function(z){return z.y>Ha})}var FB=new Wi({"fill-extrusion-opacity":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ga(Ar["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ws(Ar["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ga(Ar["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ga(Ar["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),_B={paint:FB},zB=function(_){function z(X){_.call(this,X,_B)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.createBucket=function(ue){return new nd(ue)},z.prototype.queryRadius=function(){return dc(this.paint.get("fill-extrusion-translate"))},z.prototype.is3D=function(){return!0},z.prototype.queryIntersectsFeature=function(ue,ge,Le,_e,tt,bt,Pt,Ot){var Jt=td(ue,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),bt.angle,Pt),or=this.paint.get("fill-extrusion-height").evaluate(ge,Le),rr=this.paint.get("fill-extrusion-base").evaluate(ge,Le),wr=UB(Jt,Ot,bt,0),Nr=NB(_e,rr,or,Ot),pn=Nr[0],on=Nr[1];return BB(pn,on,wr)},z}(Bo);function s1(_,z){return _.x*z.x+_.y*z.y}function Z6(_,z){if(_.length===1){for(var X=0,ue=z[X++],ge;!ge||ue.equals(ge);)if(ge=z[X++],!ge)return 1/0;for(;X=2&&z[Pt-1].equals(z[Pt-2]);)Pt--;for(var Ot=0;Ot0;if(ca&&Dn>Ot){var Pa=rr.dist(wr);if(Pa>2*Jt){var za=rr.sub(rr.sub(wr)._mult(Jt/Pa)._round());this.updateDistance(wr,za),this.addCurrentVertex(za,pn,0,0,or),wr=za}}var ii=wr&&Nr,Na=ii?ue:bt?"butt":ge;if(ii&&Na==="round"&&(ta<_e?Na="miter":ta<=2&&(Na="fakeround")),Na==="miter"&&ta>Le&&(Na="bevel"),Na==="bevel"&&(ta>2&&(Na="flipbevel"),ta100)Cn=on.mult(-1);else{var ja=ta*pn.add(on).mag()/pn.sub(on).mag();Cn._perp()._mult(ja*(Ba?-1:1))}this.addCurrentVertex(rr,Cn,0,0,or),this.addCurrentVertex(rr,Cn.mult(-1),0,0,or)}else if(Na==="bevel"||Na==="fakeround"){var fi=-Math.sqrt(ta*ta-1),ni=Ba?fi:0,zi=Ba?0:fi;if(wr&&this.addCurrentVertex(rr,pn,ni,zi,or),Na==="fakeround")for(var io=Math.round(ha*180/Math.PI/XB),Bi=1;Bi2*Jt){var ps=rr.add(Nr.sub(rr)._mult(Jt/Os)._round());this.updateDistance(rr,ps),this.addCurrentVertex(ps,on,0,0,or),rr=ps}}}}},Ml.prototype.addCurrentVertex=function(z,X,ue,ge,Le,_e){_e===void 0&&(_e=!1);var tt=X.x+X.y*ue,bt=X.y-X.x*ue,Pt=-X.x+X.y*ge,Ot=-X.y-X.x*ge;this.addHalfVertex(z,tt,bt,_e,!1,ue,Le),this.addHalfVertex(z,Pt,Ot,_e,!0,-ge,Le),this.distance>Q6/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(z,X,ue,ge,Le,_e))},Ml.prototype.addHalfVertex=function(z,X,ue,ge,Le,_e,tt){var bt=z.x,Pt=z.y,Ot=this.lineClips?this.scaledDistance*(Q6-1):this.scaledDistance,Jt=Ot*J6;if(this.layoutVertexArray.emplaceBack((bt<<1)+(ge?1:0),(Pt<<1)+(Le?1:0),Math.round(K6*X)+128,Math.round(K6*ue)+128,(_e===0?0:_e<0?-1:1)+1|(Jt&63)<<2,Jt>>6),this.lineClips){var or=this.scaledDistance-this.lineClips.start,rr=this.lineClips.end-this.lineClips.start,wr=or/rr;this.layoutVertexArray2.emplaceBack(wr,this.lineClipsArray.length)}var Nr=tt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Nr),tt.primitiveLength++),Le?this.e2=Nr:this.e1=Nr},Ml.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ml.prototype.updateDistance=function(z,X){this.distance+=z.dist(X),this.updateScaledDistance()},je("LineBucket",Ml,{omit:["layers","patternFeatures"]});var KB=new Wi({"line-cap":new ba(Ar.layout_line["line-cap"]),"line-join":new Ga(Ar.layout_line["line-join"]),"line-miter-limit":new ba(Ar.layout_line["line-miter-limit"]),"line-round-limit":new ba(Ar.layout_line["line-round-limit"]),"line-sort-key":new Ga(Ar.layout_line["line-sort-key"])}),JB=new Wi({"line-opacity":new Ga(Ar.paint_line["line-opacity"]),"line-color":new Ga(Ar.paint_line["line-color"]),"line-translate":new ba(Ar.paint_line["line-translate"]),"line-translate-anchor":new ba(Ar.paint_line["line-translate-anchor"]),"line-width":new Ga(Ar.paint_line["line-width"]),"line-gap-width":new Ga(Ar.paint_line["line-gap-width"]),"line-offset":new Ga(Ar.paint_line["line-offset"]),"line-blur":new Ga(Ar.paint_line["line-blur"]),"line-dasharray":new qs(Ar.paint_line["line-dasharray"]),"line-pattern":new Ws(Ar.paint_line["line-pattern"]),"line-gradient":new cs(Ar.paint_line["line-gradient"])}),q6={paint:JB,layout:KB},QB=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.possiblyEvaluate=function(ue,ge){return ge=new Ua(Math.floor(ge.zoom),{now:ge.now,fadeDuration:ge.fadeDuration,zoomHistory:ge.zoomHistory,transition:ge.transition}),_.prototype.possiblyEvaluate.call(this,ue,ge)},z.prototype.evaluate=function(ue,ge,Le,_e){return ge=A({},ge,{zoom:Math.floor(ge.zoom)}),_.prototype.evaluate.call(this,ue,ge,Le,_e)},z}(Ga),eE=new QB(q6.paint.properties["line-width"].specification);eE.useIntegerZoom=!0;var qB=function(_){function z(X){_.call(this,X,q6),this.gradientVersion=0}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._handleSpecialPaintPropertyUpdate=function(ue){if(ue==="line-gradient"){var ge=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=ge._styleExpression.expression instanceof pl,this.gradientVersion=(this.gradientVersion+1)%h}},z.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},z.prototype.recalculate=function(ue,ge){_.prototype.recalculate.call(this,ue,ge),this.paint._values["line-floorwidth"]=eE.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ue)},z.prototype.createBucket=function(ue){return new Ml(ue)},z.prototype.queryRadius=function(ue){var ge=ue,Le=tE(Cl("line-width",this,ge),Cl("line-gap-width",this,ge)),_e=Cl("line-offset",this,ge);return Le/2+Math.abs(_e)+dc(this.paint.get("line-translate"))},z.prototype.queryIntersectsFeature=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=td(ue,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),bt.angle,Pt),Jt=Pt/2*tE(this.paint.get("line-width").evaluate(ge,Le),this.paint.get("line-gap-width").evaluate(ge,Le)),or=this.paint.get("line-offset").evaluate(ge,Le);return or&&(_e=eN(_e,or*Pt)),Ts(Ot,_e,Jt)},z.prototype.isTileClipped=function(){return!0},z}(Bo);function tE(_,z){return z>0?z+2*_:_}function eN(_,z){for(var X=[],ue=new a(0,0),ge=0;ge<_.length;ge++){for(var Le=_[ge],_e=[],tt=0;tt":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function lN(_){for(var z="",X=0;X<_.length;X++){var ue=_.charCodeAt(X+1)||null,ge=_.charCodeAt(X-1)||null,Le=(!ue||!Gr(ue)||l1[_[X+1]])&&(!ge||!Gr(ge)||l1[_[X-1]]);Le&&l1[_[X]]?z+=l1[_[X]]:z+=_[X]}return z}var $s=24,uN=function(_,z,X,ue,ge){var Le,_e,tt=ge*8-ue-1,bt=(1<>1,Ot=-7,Jt=X?ge-1:0,or=X?-1:1,rr=_[z+Jt];for(Jt+=or,Le=rr&(1<<-Ot)-1,rr>>=-Ot,Ot+=tt;Ot>0;Le=Le*256+_[z+Jt],Jt+=or,Ot-=8);for(_e=Le&(1<<-Ot)-1,Le>>=-Ot,Ot+=ue;Ot>0;_e=_e*256+_[z+Jt],Jt+=or,Ot-=8);if(Le===0)Le=1-Pt;else{if(Le===bt)return _e?NaN:(rr?-1:1)*(1/0);_e=_e+Math.pow(2,ue),Le=Le-Pt}return(rr?-1:1)*_e*Math.pow(2,Le-ue)},cN=function(_,z,X,ue,ge,Le){var _e,tt,bt,Pt=Le*8-ge-1,Ot=(1<>1,or=ge===23?Math.pow(2,-24)-Math.pow(2,-77):0,rr=ue?0:Le-1,wr=ue?1:-1,Nr=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(tt=isNaN(z)?1:0,_e=Ot):(_e=Math.floor(Math.log(z)/Math.LN2),z*(bt=Math.pow(2,-_e))<1&&(_e--,bt*=2),_e+Jt>=1?z+=or/bt:z+=or*Math.pow(2,1-Jt),z*bt>=2&&(_e++,bt/=2),_e+Jt>=Ot?(tt=0,_e=Ot):_e+Jt>=1?(tt=(z*bt-1)*Math.pow(2,ge),_e=_e+Jt):(tt=z*Math.pow(2,Jt-1)*Math.pow(2,ge),_e=0));ge>=8;_[X+rr]=tt&255,rr+=wr,tt/=256,ge-=8);for(_e=_e<0;_[X+rr]=_e&255,rr+=wr,_e/=256,Pt-=8);_[X+rr-wr]|=Nr*128},lw={read:uN,write:cN},uw=go;function go(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}go.Varint=0,go.Fixed64=1,go.Bytes=2,go.Fixed32=5;var CS=65536*65536,nE=1/CS,fN=12,aE=typeof TextDecoder>"u"?null:new TextDecoder("utf8");go.prototype={destroy:function(){this.buf=null},readFields:function(_,z,X){for(X=X||this.length;this.pos>3,Le=this.pos;this.type=ue&7,_(ge,z,this),this.pos===Le&&this.skip(ue)}return z},readMessage:function(_,z){return this.readFields(_,z,this.readVarint()+this.pos)},readFixed32:function(){var _=cw(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=oE(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=cw(this.buf,this.pos)+cw(this.buf,this.pos+4)*CS;return this.pos+=8,_},readSFixed64:function(){var _=cw(this.buf,this.pos)+oE(this.buf,this.pos+4)*CS;return this.pos+=8,_},readFloat:function(){var _=lw.read(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=lw.read(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var z=this.buf,X,ue;return ue=z[this.pos++],X=ue&127,ue<128||(ue=z[this.pos++],X|=(ue&127)<<7,ue<128)||(ue=z[this.pos++],X|=(ue&127)<<14,ue<128)||(ue=z[this.pos++],X|=(ue&127)<<21,ue<128)?X:(ue=z[this.pos],X|=(ue&15)<<28,dN(X,_,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2===1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,z=this.pos;return this.pos=_,_-z>=fN&&aE?AN(this.buf,z,_):MN(this.buf,z,_)},readBytes:function(){var _=this.readVarint()+this.pos,z=this.buf.subarray(this.pos,_);return this.pos=_,z},readPackedVarint:function(_,z){if(this.type!==go.Bytes)return _.push(this.readVarint(z));var X=zh(this);for(_=_||[];this.pos127;);else if(z===go.Bytes)this.pos=this.readVarint()+this.pos;else if(z===go.Fixed32)this.pos+=4;else if(z===go.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+z)},writeTag:function(_,z){this.writeVarint(_<<3|z)},realloc:function(_){for(var z=this.length||16;z268435455||_<0){hN(_,this);return}this.realloc(4),this.buf[this.pos++]=_&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=_>>>7&127)))},writeSVarint:function(_){this.writeVarint(_<0?-_*2-1:_*2)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(_.length*4),this.pos++;var z=this.pos;this.pos=EN(this.buf,_,this.pos);var X=this.pos-z;X>=128&&iE(z,X,this),this.pos=z-1,this.writeVarint(X),this.pos+=X},writeFloat:function(_){this.realloc(4),lw.write(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),lw.write(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var z=_.length;this.writeVarint(z),this.realloc(z);for(var X=0;X=128&&iE(X,ue,this),this.pos=X-1,this.writeVarint(ue),this.pos+=ue},writeMessage:function(_,z,X){this.writeTag(_,go.Bytes),this.writeRawMessage(z,X)},writePackedVarint:function(_,z){z.length&&this.writeMessage(_,gN,z)},writePackedSVarint:function(_,z){z.length&&this.writeMessage(_,mN,z)},writePackedBoolean:function(_,z){z.length&&this.writeMessage(_,bN,z)},writePackedFloat:function(_,z){z.length&&this.writeMessage(_,yN,z)},writePackedDouble:function(_,z){z.length&&this.writeMessage(_,xN,z)},writePackedFixed32:function(_,z){z.length&&this.writeMessage(_,wN,z)},writePackedSFixed32:function(_,z){z.length&&this.writeMessage(_,TN,z)},writePackedFixed64:function(_,z){z.length&&this.writeMessage(_,SN,z)},writePackedSFixed64:function(_,z){z.length&&this.writeMessage(_,CN,z)},writeBytesField:function(_,z){this.writeTag(_,go.Bytes),this.writeBytes(z)},writeFixed32Field:function(_,z){this.writeTag(_,go.Fixed32),this.writeFixed32(z)},writeSFixed32Field:function(_,z){this.writeTag(_,go.Fixed32),this.writeSFixed32(z)},writeFixed64Field:function(_,z){this.writeTag(_,go.Fixed64),this.writeFixed64(z)},writeSFixed64Field:function(_,z){this.writeTag(_,go.Fixed64),this.writeSFixed64(z)},writeVarintField:function(_,z){this.writeTag(_,go.Varint),this.writeVarint(z)},writeSVarintField:function(_,z){this.writeTag(_,go.Varint),this.writeSVarint(z)},writeStringField:function(_,z){this.writeTag(_,go.Bytes),this.writeString(z)},writeFloatField:function(_,z){this.writeTag(_,go.Fixed32),this.writeFloat(z)},writeDoubleField:function(_,z){this.writeTag(_,go.Fixed64),this.writeDouble(z)},writeBooleanField:function(_,z){this.writeVarintField(_,!!z)}};function dN(_,z,X){var ue=X.buf,ge,Le;if(Le=ue[X.pos++],ge=(Le&112)>>4,Le<128||(Le=ue[X.pos++],ge|=(Le&127)<<3,Le<128)||(Le=ue[X.pos++],ge|=(Le&127)<<10,Le<128)||(Le=ue[X.pos++],ge|=(Le&127)<<17,Le<128)||(Le=ue[X.pos++],ge|=(Le&127)<<24,Le<128)||(Le=ue[X.pos++],ge|=(Le&1)<<31,Le<128))return Ng(_,ge,z);throw new Error("Expected varint not more than 10 bytes")}function zh(_){return _.type===go.Bytes?_.readVarint()+_.pos:_.pos+1}function Ng(_,z,X){return X?z*4294967296+(_>>>0):(z>>>0)*4294967296+(_>>>0)}function hN(_,z){var X,ue;if(_>=0?(X=_%4294967296|0,ue=_/4294967296|0):(X=~(-_%4294967296),ue=~(-_/4294967296),X^4294967295?X=X+1|0:(X=0,ue=ue+1|0)),_>=18446744073709552e3||_<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");z.realloc(10),vN(X,ue,z),pN(ue,z)}function vN(_,z,X){X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos]=_&127}function pN(_,z){var X=(_&7)<<4;z.buf[z.pos++]|=X|((_>>>=3)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127)))))}function iE(_,z,X){var ue=z<=16383?1:z<=2097151?2:z<=268435455?3:Math.floor(Math.log(z)/(Math.LN2*7));X.realloc(ue);for(var ge=X.pos-1;ge>=_;ge--)X.buf[ge+ue]=X.buf[ge]}function gN(_,z){for(var X=0;X<_.length;X++)z.writeVarint(_[X])}function mN(_,z){for(var X=0;X<_.length;X++)z.writeSVarint(_[X])}function yN(_,z){for(var X=0;X<_.length;X++)z.writeFloat(_[X])}function xN(_,z){for(var X=0;X<_.length;X++)z.writeDouble(_[X])}function bN(_,z){for(var X=0;X<_.length;X++)z.writeBoolean(_[X])}function wN(_,z){for(var X=0;X<_.length;X++)z.writeFixed32(_[X])}function TN(_,z){for(var X=0;X<_.length;X++)z.writeSFixed32(_[X])}function SN(_,z){for(var X=0;X<_.length;X++)z.writeFixed64(_[X])}function CN(_,z){for(var X=0;X<_.length;X++)z.writeSFixed64(_[X])}function cw(_,z){return(_[z]|_[z+1]<<8|_[z+2]<<16)+_[z+3]*16777216}function Ug(_,z,X){_[X]=z,_[X+1]=z>>>8,_[X+2]=z>>>16,_[X+3]=z>>>24}function oE(_,z){return(_[z]|_[z+1]<<8|_[z+2]<<16)+(_[z+3]<<24)}function MN(_,z,X){for(var ue="",ge=z;ge239?4:Le>223?3:Le>191?2:1;if(ge+tt>X)break;var bt,Pt,Ot;tt===1?Le<128&&(_e=Le):tt===2?(bt=_[ge+1],(bt&192)===128&&(_e=(Le&31)<<6|bt&63,_e<=127&&(_e=null))):tt===3?(bt=_[ge+1],Pt=_[ge+2],(bt&192)===128&&(Pt&192)===128&&(_e=(Le&15)<<12|(bt&63)<<6|Pt&63,(_e<=2047||_e>=55296&&_e<=57343)&&(_e=null))):tt===4&&(bt=_[ge+1],Pt=_[ge+2],Ot=_[ge+3],(bt&192)===128&&(Pt&192)===128&&(Ot&192)===128&&(_e=(Le&15)<<18|(bt&63)<<12|(Pt&63)<<6|Ot&63,(_e<=65535||_e>=1114112)&&(_e=null))),_e===null?(_e=65533,tt=1):_e>65535&&(_e-=65536,ue+=String.fromCharCode(_e>>>10&1023|55296),_e=56320|_e&1023),ue+=String.fromCharCode(_e),ge+=tt}return ue}function AN(_,z,X){return aE.decode(_.subarray(z,X))}function EN(_,z,X){for(var ue=0,ge,Le;ue55295&&ge<57344)if(Le)if(ge<56320){_[X++]=239,_[X++]=191,_[X++]=189,Le=ge;continue}else ge=Le-55296<<10|ge-56320|65536,Le=null;else{ge>56319||ue+1===z.length?(_[X++]=239,_[X++]=191,_[X++]=189):Le=ge;continue}else Le&&(_[X++]=239,_[X++]=191,_[X++]=189,Le=null);ge<128?_[X++]=ge:(ge<2048?_[X++]=ge>>6|192:(ge<65536?_[X++]=ge>>12|224:(_[X++]=ge>>18|240,_[X++]=ge>>12&63|128),_[X++]=ge>>6&63|128),_[X++]=ge&63|128)}return X}var MS=3;function PN(_,z,X){_===1&&X.readMessage(LN,z)}function LN(_,z,X){if(_===3){var ue=X.readMessage(IN,{}),ge=ue.id,Le=ue.bitmap,_e=ue.width,tt=ue.height,bt=ue.left,Pt=ue.top,Ot=ue.advance;z.push({id:ge,bitmap:new C0({width:_e+2*MS,height:tt+2*MS},Le),metrics:{width:_e,height:tt,left:bt,top:Pt,advance:Ot}})}}function IN(_,z,X){_===1?z.id=X.readVarint():_===2?z.bitmap=X.readBytes():_===3?z.width=X.readVarint():_===4?z.height=X.readVarint():_===5?z.left=X.readSVarint():_===6?z.top=X.readSVarint():_===7&&(z.advance=X.readVarint())}function RN(_){return new uw(_).readFields(PN,[])}var sE=MS;function lE(_){for(var z=0,X=0,ue=0,ge=_;ue=0;rr--){var wr=tt[rr];if(!(or.w>wr.w||or.h>wr.h)){if(or.x=wr.x,or.y=wr.y,Pt=Math.max(Pt,or.y+or.h),bt=Math.max(bt,or.x+or.w),or.w===wr.w&&or.h===wr.h){var Nr=tt.pop();rr=0&&ge>=z&&jd[this.text.charCodeAt(ge)];ge--)ue--;this.text=this.text.substring(z,ue),this.sectionIndex=this.sectionIndex.slice(z,ue)},ol.prototype.substring=function(z,X){var ue=new ol;return ue.text=this.text.substring(z,X),ue.sectionIndex=this.sectionIndex.slice(z,X),ue.sections=this.sections,ue},ol.prototype.toString=function(){return this.text},ol.prototype.getMaxScale=function(){var z=this;return this.sectionIndex.reduce(function(X,ue){return Math.max(X,z.sections[ue].scale)},0)},ol.prototype.addTextSection=function(z,X){this.text+=z.text,this.sections.push(Hg.forText(z.scale,z.fontStack||X));for(var ue=this.sections.length-1,ge=0;ge=cE?null:++this.imageSectionID:(this.imageSectionID=uE,this.imageSectionID)};function DN(_,z){for(var X=[],ue=_.text,ge=0,Le=0,_e=z;Le<_e.length;Le+=1){var tt=_e[Le];X.push(_.substring(ge,tt)),ge=tt}return ge=0,Ot=0,Jt=0;Jt<_.length();Jt++){var or=_.getSection(Jt),rr=_.getCharCode(Jt);if(jd[rr]||(Ot+=fE(rr,or,ue,ge,z,_e)),Jt<_.length()-1){var wr=tn(rr);(du[rr]||wr||or.imageName)&&tt.push(hE(Jt+1,Ot,bt,tt,FN(rr,_.getCharCode(Jt+1),wr&&Pt),!1))}}return vE(hE(_.length(),Ot,bt,tt,0,!0))}function ES(_){var z=.5,X=.5;switch(_){case"right":case"top-right":case"bottom-right":z=1;break;case"left":case"top-left":case"bottom-left":z=0;break}switch(_){case"bottom":case"bottom-right":case"bottom-left":X=1;break;case"top":case"top-right":case"top-left":X=0;break}return{horizontalAlign:z,verticalAlign:X}}function _N(_,z,X,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt){for(var or=0,rr=f1,wr=0,Nr=0,pn=tt==="right"?1:tt==="left"?0:.5,on=0,Dn=0,Cn=ge;Dn0&&ps>Ba&&(Ba=ps)}else{var Ni=X[za.fontStack],Li=Ni&&Ni[Na];if(Li&&Li.rect)ni=Li.rect,fi=Li.metrics;else{var ho=z[za.fontStack],mo=ho&&ho[Na];if(!mo)continue;fi=mo.metrics}ja=(jn-za.scale)*$s}Bi?(_.verticalizable=!0,ca.push({glyph:Na,imageName:zi,x:or,y:rr+ja,vertical:Bi,scale:za.scale,fontStack:za.fontStack,sectionIndex:ii,metrics:fi,rect:ni}),or+=io*za.scale+Pt):(ca.push({glyph:Na,imageName:zi,x:or,y:rr+ja,vertical:Bi,scale:za.scale,fontStack:za.fontStack,sectionIndex:ii,metrics:fi,rect:ni}),or+=fi.advance*za.scale+Pt)}if(ca.length!==0){var sl=or-Pt;wr=Math.max(sl,wr),zN(ca,0,ca.length-1,pn,Ba)}or=0;var ll=Le*jn+Ba;ha.lineOffset=Math.max(Ba,ta),rr+=ll,Nr=Math.max(ll,Nr),++on}var Fs=rr-f1,Al=ES(_e),El=Al.horizontalAlign,Ss=Al.verticalAlign;BN(_.positionedLines,pn,El,Ss,wr,Nr,Le,Fs,ge.length),_.top+=-Ss*Fs,_.bottom=_.top+Fs,_.left+=-El*wr,_.right=_.left+wr}function zN(_,z,X,ue,ge){if(!(!ue&&!ge))for(var Le=_[X],_e=Le.metrics.advance*Le.scale,tt=(_[X].x+_e)*ue,bt=z;bt<=X;bt++)_[bt].x-=tt,_[bt].y+=ge}function BN(_,z,X,ue,ge,Le,_e,tt,bt){var Pt=(z-X)*ge,Ot=0;Le!==_e?Ot=-tt*ue-f1:Ot=(-ue*bt+.5)*_e;for(var Jt=0,or=_;Jt-X/2;){if(_e--,_e<0)return!1;tt-=_[_e].dist(Le),Le=_[_e]}tt+=_[_e].dist(_[_e+1]),_e++;for(var bt=[],Pt=0;ttue;)Pt-=bt.shift().angleDelta;if(Pt>ge)return!1;_e++,tt+=Jt.dist(or)}return!0}function xE(_){for(var z=0,X=0;X<_.length-1;X++)z+=_[X].dist(_[X+1]);return z}function bE(_,z,X){return _?.6*z*X:0}function wE(_,z){return Math.max(_?_.right-_.left:0,z?z.right-z.left:0)}function HN(_,z,X,ue,ge,Le){for(var _e=bE(X,ge,Le),tt=wE(X,ue)*Le,bt=0,Pt=xE(_)/2,Ot=0;Ot<_.length-1;Ot++){var Jt=_[Ot],or=_[Ot+1],rr=Jt.dist(or);if(bt+rr>Pt){var wr=(Pt-bt)/rr,Nr=To(Jt.x,or.x,wr),pn=To(Jt.y,or.y,wr),on=new Vg(Nr,pn,or.angleTo(Jt),Ot);return on._round(),!_e||yE(_,on,tt,_e,z)?on:void 0}bt+=rr}}function VN(_,z,X,ue,ge,Le,_e,tt,bt){var Pt=bE(ue,Le,_e),Ot=wE(ue,ge),Jt=Ot*_e,or=_[0].x===0||_[0].x===bt||_[0].y===0||_[0].y===bt;z-Jt=0&&kn=0&&jn=0&&or+Pt<=Ot){var ta=new Vg(kn,jn,Dn,wr);ta._round(),(!ue||yE(_,ta,Le,ue,ge))&&rr.push(ta)}}Jt+=on}return!tt&&!rr.length&&!_e&&(rr=TE(_,Jt/2,X,ue,ge,Le,_e,!0,bt)),rr}function SE(_,z,X,ue,ge){for(var Le=[],_e=0;_e<_.length;_e++)for(var tt=_[_e],bt=void 0,Pt=0;Pt=ue&&Jt.x>=ue)&&(Ot.x>=ue?Ot=new a(ue,Ot.y+(Jt.y-Ot.y)*((ue-Ot.x)/(Jt.x-Ot.x)))._round():Jt.x>=ue&&(Jt=new a(ue,Ot.y+(Jt.y-Ot.y)*((ue-Ot.x)/(Jt.x-Ot.x)))._round()),!(Ot.y>=ge&&Jt.y>=ge)&&(Ot.y>=ge?Ot=new a(Ot.x+(Jt.x-Ot.x)*((ge-Ot.y)/(Jt.y-Ot.y)),ge)._round():Jt.y>=ge&&(Jt=new a(Ot.x+(Jt.x-Ot.x)*((ge-Ot.y)/(Jt.y-Ot.y)),ge)._round()),(!bt||!Ot.equals(bt[bt.length-1]))&&(bt=[Ot],Le.push(bt)),bt.push(Jt)))))}return Le}var jg=fu;function CE(_,z,X,ue){var ge=[],Le=_.image,_e=Le.pixelRatio,tt=Le.paddedRect.w-2*jg,bt=Le.paddedRect.h-2*jg,Pt=_.right-_.left,Ot=_.bottom-_.top,Jt=Le.stretchX||[[0,tt]],or=Le.stretchY||[[0,bt]],rr=function(Ni,Li){return Ni+Li[1]-Li[0]},wr=Jt.reduce(rr,0),Nr=or.reduce(rr,0),pn=tt-wr,on=bt-Nr,Dn=0,Cn=wr,kn=0,jn=Nr,ta=0,ha=pn,ca=0,Ba=on;if(Le.content&&ue){var Pa=Le.content;Dn=hw(Jt,0,Pa[0]),kn=hw(or,0,Pa[1]),Cn=hw(Jt,Pa[0],Pa[2]),jn=hw(or,Pa[1],Pa[3]),ta=Pa[0]-Dn,ca=Pa[1]-kn,ha=Pa[2]-Pa[0]-Cn,Ba=Pa[3]-Pa[1]-jn}var za=function(Ni,Li,ho,mo){var Uo=vw(Ni.stretch-Dn,Cn,Pt,_.left),Yo=pw(Ni.fixed-ta,ha,Ni.stretch,wr),Os=vw(Li.stretch-kn,jn,Ot,_.top),ps=pw(Li.fixed-ca,Ba,Li.stretch,Nr),sl=vw(ho.stretch-Dn,Cn,Pt,_.left),ll=pw(ho.fixed-ta,ha,ho.stretch,wr),Fs=vw(mo.stretch-kn,jn,Ot,_.top),Al=pw(mo.fixed-ca,Ba,mo.stretch,Nr),El=new a(Uo,Os),Ss=new a(sl,Os),Pl=new a(sl,Fs),zu=new a(Uo,Fs),Uh=new a(Yo/_e,ps/_e),Qv=new a(ll/_e,Al/_e),qv=z*Math.PI/180;if(qv){var ep=Math.sin(qv),Jg=Math.cos(qv),ef=[Jg,-ep,ep,Jg];El._matMult(ef),Ss._matMult(ef),zu._matMult(ef),Pl._matMult(ef)}var ww=Ni.stretch+Ni.fixed,_S=ho.stretch+ho.fixed,Tw=Li.stretch+Li.fixed,zS=mo.stretch+mo.fixed,vc={x:Le.paddedRect.x+jg+ww,y:Le.paddedRect.y+jg+Tw,w:_S-ww,h:zS-Tw},Qg=ha/_e/Pt,Sw=Ba/_e/Ot;return{tl:El,tr:Ss,bl:zu,br:Pl,tex:vc,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Uh,pixelOffsetBR:Qv,minFontScaleX:Qg,minFontScaleY:Sw,isSDF:X}};if(!ue||!Le.stretchX&&!Le.stretchY)ge.push(za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:tt+1},{fixed:0,stretch:bt+1}));else for(var ii=ME(Jt,pn,wr),Na=ME(or,on,Nr),ja=0;ja0&&(wr=Math.max(10,wr),this.circleDiameter=wr)}else{var Nr=_e.top*tt-bt,pn=_e.bottom*tt+bt,on=_e.left*tt-bt,Dn=_e.right*tt+bt,Cn=_e.collisionPadding;if(Cn&&(on-=Cn[0]*tt,Nr-=Cn[1]*tt,Dn+=Cn[2]*tt,pn+=Cn[3]*tt),Ot){var kn=new a(on,Nr),jn=new a(Dn,Nr),ta=new a(on,pn),ha=new a(Dn,pn),ca=Ot*Math.PI/180;kn._rotate(ca),jn._rotate(ca),ta._rotate(ca),ha._rotate(ca),on=Math.min(kn.x,jn.x,ta.x,ha.x),Dn=Math.max(kn.x,jn.x,ta.x,ha.x),Nr=Math.min(kn.y,jn.y,ta.y,ha.y),pn=Math.max(kn.y,jn.y,ta.y,ha.y)}z.emplaceBack(X.x,X.y,on,Nr,Dn,pn,ue,ge,Le)}this.boxEndIndex=z.length},Gg=function(z,X){if(z===void 0&&(z=[]),X===void 0&&(X=GN),this.data=z,this.length=this.data.length,this.compare=X,this.length>0)for(var ue=(this.length>>1)-1;ue>=0;ue--)this._down(ue)};Gg.prototype.push=function(z){this.data.push(z),this.length++,this._up(this.length-1)},Gg.prototype.pop=function(){if(this.length!==0){var z=this.data[0],X=this.data.pop();return this.length--,this.length>0&&(this.data[0]=X,this._down(0)),z}},Gg.prototype.peek=function(){return this.data[0]},Gg.prototype._up=function(z){for(var X=this,ue=X.data,ge=X.compare,Le=ue[z];z>0;){var _e=z-1>>1,tt=ue[_e];if(ge(Le,tt)>=0)break;ue[z]=tt,z=_e}ue[z]=Le},Gg.prototype._down=function(z){for(var X=this,ue=X.data,ge=X.compare,Le=this.length>>1,_e=ue[z];z=0)break;ue[z]=bt,z=tt}ue[z]=_e};function GN(_,z){return _z?1:0}function WN(_,z,X){z===void 0&&(z=1),X===void 0&&(X=!1);for(var ue=1/0,ge=1/0,Le=-1/0,_e=-1/0,tt=_[0],bt=0;btLe)&&(Le=Pt.x),(!bt||Pt.y>_e)&&(_e=Pt.y)}var Ot=Le-ue,Jt=_e-ge,or=Math.min(Ot,Jt),rr=or/2,wr=new Gg([],$N);if(or===0)return new a(ue,ge);for(var Nr=ue;Nron.d||!on.d)&&(on=Cn,X&&console.log("found best %d after %d probes",Math.round(1e4*Cn.d)/1e4,Dn)),!(Cn.max-on.d<=z)&&(rr=Cn.h/2,wr.push(new Wg(Cn.p.x-rr,Cn.p.y-rr,rr,_)),wr.push(new Wg(Cn.p.x+rr,Cn.p.y-rr,rr,_)),wr.push(new Wg(Cn.p.x-rr,Cn.p.y+rr,rr,_)),wr.push(new Wg(Cn.p.x+rr,Cn.p.y+rr,rr,_)),Dn+=4)}return X&&(console.log("num probes: "+Dn),console.log("best distance: "+on.d)),on.p}function $N(_,z){return z.max-_.max}function Wg(_,z,X,ue){this.p=new a(_,z),this.h=X,this.d=YN(this.p,ue),this.max=this.d+this.h*Math.SQRT2}function YN(_,z){for(var X=!1,ue=1/0,ge=0;ge_.y!=Ot.y>_.y&&_.x<(Ot.x-Pt.x)*(_.y-Pt.y)/(Ot.y-Pt.y)+Pt.x&&(X=!X),ue=Math.min(ue,_h(_,Pt,Ot))}return(X?1:-1)*Math.sqrt(ue)}function XN(_){for(var z=0,X=0,ue=0,ge=_[0],Le=0,_e=ge.length,tt=_e-1;Le<_e;tt=Le++){var bt=ge[Le],Pt=ge[tt],Ot=bt.x*Pt.y-Pt.x*bt.y;X+=(bt.x+Pt.x)*Ot,ue+=(bt.y+Pt.y)*Ot,z+=Ot*3}return new Wg(X/z,ue/z,0,_)}var $g=7,LS=Number.POSITIVE_INFINITY;function AE(_,z){function X(ge,Le){var _e=0,tt=0;Le<0&&(Le=0);var bt=Le/Math.sqrt(2);switch(ge){case"top-right":case"top-left":tt=bt-$g;break;case"bottom-right":case"bottom-left":tt=-bt+$g;break;case"bottom":tt=-Le+$g;break;case"top":tt=Le-$g;break}switch(ge){case"top-right":case"bottom-right":_e=-bt;break;case"top-left":case"bottom-left":_e=bt;break;case"left":_e=Le;break;case"right":_e=-Le;break}return[_e,tt]}function ue(ge,Le,_e){var tt=0,bt=0;switch(Le=Math.abs(Le),_e=Math.abs(_e),ge){case"top-right":case"top-left":case"top":bt=_e-$g;break;case"bottom-right":case"bottom-left":case"bottom":bt=-_e+$g;break}switch(ge){case"top-right":case"bottom-right":case"right":tt=-Le;break;case"top-left":case"bottom-left":case"left":tt=Le;break}return[tt,bt]}return z[1]!==LS?ue(_,z[0],z[1]):X(_,z[0])}function ZN(_,z,X,ue,ge,Le,_e){_.createArrays();var tt=512*_.overscaling;_.tilePixelRatio=Ha/tt,_.compareText={},_.iconsNeedLinear=!1;var bt=_.layers[0].layout,Pt=_.layers[0]._unevaluatedLayout._values,Ot={};if(_.textSizeData.kind==="composite"){var Jt=_.textSizeData,or=Jt.minZoom,rr=Jt.maxZoom;Ot.compositeTextSizes=[Pt["text-size"].possiblyEvaluate(new Ua(or),_e),Pt["text-size"].possiblyEvaluate(new Ua(rr),_e)]}if(_.iconSizeData.kind==="composite"){var wr=_.iconSizeData,Nr=wr.minZoom,pn=wr.maxZoom;Ot.compositeIconSizes=[Pt["icon-size"].possiblyEvaluate(new Ua(Nr),_e),Pt["icon-size"].possiblyEvaluate(new Ua(pn),_e)]}Ot.layoutTextSize=Pt["text-size"].possiblyEvaluate(new Ua(_.zoom+1),_e),Ot.layoutIconSize=Pt["icon-size"].possiblyEvaluate(new Ua(_.zoom+1),_e),Ot.textMaxSize=Pt["text-size"].possiblyEvaluate(new Ua(18));for(var on=bt.get("text-line-height")*$s,Dn=bt.get("text-rotation-alignment")==="map"&&bt.get("symbol-placement")!=="point",Cn=bt.get("text-keep-upright"),kn=bt.get("text-size"),jn=function(){var ca=ha[ta],Ba=bt.get("text-font").evaluate(ca,{},_e).join(","),Pa=kn.evaluate(ca,{},_e),za=Ot.layoutTextSize.evaluate(ca,{},_e),ii=Ot.layoutIconSize.evaluate(ca,{},_e),Na={horizontal:{},vertical:void 0},ja=ca.text,fi=[0,0];if(ja){var ni=ja.toString(),zi=bt.get("text-letter-spacing").evaluate(ca,{},_e)*$s,io=Ir(ni)?zi:0,Bi=bt.get("text-anchor").evaluate(ca,{},_e),Ni=bt.get("text-variable-anchor");if(!Ni){var Li=bt.get("text-radial-offset").evaluate(ca,{},_e);Li?fi=AE(Bi,[Li*$s,LS]):fi=bt.get("text-offset").evaluate(ca,{},_e).map(function(Uh){return Uh*$s})}var ho=Dn?"center":bt.get("text-justify").evaluate(ca,{},_e),mo=bt.get("symbol-placement"),Uo=mo==="point"?bt.get("text-max-width").evaluate(ca,{},_e)*$s:0,Yo=function(){_.allowVerticalPlacement&&ar(ni)&&(Na.vertical=dw(ja,z,X,ge,Ba,Uo,on,Bi,"left",io,fi,_u.vertical,!0,mo,za,Pa))};if(!Dn&&Ni){for(var Os=ho==="auto"?Ni.map(function(Uh){return IS(Uh)}):[ho],ps=!1,sl=0;sl=Ha||ef.y<0||ef.y>=Ha||JN(_,ef,Jg,X,ue,ge,Na,_.layers[0],_.collisionBoxArray,z.index,z.sourceLayerIndex,_.index,on,jn,ca,bt,Cn,ta,Ba,rr,z,Le,Pt,Ot,_e)};if(Pa==="line")for(var fi=0,ni=SE(z.geometry,0,0,Ha,Ha);fi1){var Os=HN(Yo,ha,X.vertical||wr,ue,Nr,Dn);Os&&ja(Yo,Os)}}else if(z.type==="Polygon")for(var ps=0,sl=bS(z.geometry,0);psKv&&W(_.layerIds[0]+': Value for "text-size" is >= '+d1+'. Reduce your "text-size".')):pn.kind==="composite"&&(on=[ad*rr.compositeTextSizes[0].evaluate(_e,{},wr),ad*rr.compositeTextSizes[1].evaluate(_e,{},wr)],(on[0]>Kv||on[1]>Kv)&&W(_.layerIds[0]+': Value for "text-size" is >= '+d1+'. Reduce your "text-size".')),_.addSymbols(_.text,Nr,on,tt,Le,_e,Pt,z,bt.lineStartIndex,bt.lineLength,or,wr);for(var Dn=0,Cn=Ot;DnKv&&W(_.layerIds[0]+': Value for "icon-size" is >= '+d1+'. Reduce your "icon-size".')):El.kind==="composite"&&(Ss=[ad*jn.compositeIconSizes[0].evaluate(kn,{},ha),ad*jn.compositeIconSizes[1].evaluate(kn,{},ha)],(Ss[0]>Kv||Ss[1]>Kv)&&W(_.layerIds[0]+': Value for "icon-size" is >= '+d1+'. Reduce your "icon-size".')),_.addSymbols(_.icon,Fs,Ss,Cn,Dn,kn,!1,z,Pa.lineStartIndex,Pa.lineLength,-1,ha),Bi=_.icon.placedSymbolArray.length-1,Al&&(ni=Al.length*4,_.addSymbols(_.icon,Al,Ss,Cn,Dn,kn,_u.vertical,z,Pa.lineStartIndex,Pa.lineLength,-1,ha),Ni=_.icon.placedSymbolArray.length-1)}for(var Pl in ue.horizontal){var zu=ue.horizontal[Pl];if(!za){ho=ye(zu.text);var Uh=tt.layout.get("text-rotate").evaluate(kn,{},ha);za=new gw(bt,z,Pt,Ot,Jt,zu,or,rr,wr,Uh)}var Qv=zu.positionedLines.length===1;if(zi+=EE(_,z,zu,Le,tt,wr,kn,Nr,Pa,ue.vertical?_u.horizontal:_u.horizontalOnly,Qv?Object.keys(ue.horizontal):[Pl],Li,Bi,jn,ha),Qv)break}ue.vertical&&(io+=EE(_,z,ue.vertical,Le,tt,wr,kn,Nr,Pa,_u.vertical,["vertical"],Li,Ni,jn,ha));var qv=za?za.boxStartIndex:_.collisionBoxArray.length,ep=za?za.boxEndIndex:_.collisionBoxArray.length,Jg=Na?Na.boxStartIndex:_.collisionBoxArray.length,ef=Na?Na.boxEndIndex:_.collisionBoxArray.length,ww=ii?ii.boxStartIndex:_.collisionBoxArray.length,_S=ii?ii.boxEndIndex:_.collisionBoxArray.length,Tw=ja?ja.boxStartIndex:_.collisionBoxArray.length,zS=ja?ja.boxEndIndex:_.collisionBoxArray.length,vc=-1,Qg=function(p1,GE){return p1&&p1.circleDiameter?Math.max(p1.circleDiameter,GE):GE};vc=Qg(za,vc),vc=Qg(Na,vc),vc=Qg(ii,vc),vc=Qg(ja,vc);var Sw=vc>-1?1:0;Sw&&(vc*=ca/$s),_.glyphOffsetArray.length>=ao.MAX_GLYPHS&&W("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),kn.sortKey!==void 0&&_.addToSortKeyRanges(_.symbolInstances.length,kn.sortKey),_.symbolInstances.emplaceBack(z.x,z.y,Li.right>=0?Li.right:-1,Li.center>=0?Li.center:-1,Li.left>=0?Li.left:-1,Li.vertical||-1,Bi,Ni,ho,qv,ep,Jg,ef,ww,_S,Tw,zS,Pt,zi,io,fi,ni,Sw,0,or,mo,Uo,vc)}function QN(_,z,X,ue){var ge=_.compareText;if(!(z in ge))ge[z]=[];else for(var Le=ge[z],_e=Le.length-1;_e>=0;_e--)if(ue.dist(Le[_e])0)&&(_e.value.kind!=="constant"||_e.value.value.length>0),Ot=bt.value.kind!=="constant"||!!bt.value.value||Object.keys(bt.parameters).length>0,Jt=Le.get("symbol-sort-key");if(this.features=[],!(!Pt&&!Ot)){for(var or=X.iconDependencies,rr=X.glyphDependencies,wr=X.availableImages,Nr=new Ua(this.zoom),pn=0,on=z;pn=0;for(var io=0,Bi=Ba.sections;io=0;bt--)_e[bt]={x:X[bt].x,y:X[bt].y,tileUnitDistanceFromAnchor:Le},bt>0&&(Le+=X[bt-1].dist(X[bt]));for(var Pt=0;Pt0},ao.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ao.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ao.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ao.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ao.prototype.addIndicesForPlacedSymbol=function(z,X){for(var ue=z.placedSymbolArray.get(X),ge=ue.vertexStartIndex+ue.numGlyphs*4,Le=ue.vertexStartIndex;Le1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(z),this.sortedAngle=z,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ue=0,ge=this.symbolInstanceIndexes;ue=0&&Pt.indexOf(tt)===bt&&X.addIndicesForPlacedSymbol(X.text,tt)}),_e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,_e.verticalPlacedTextSymbolIndex),_e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,_e.placedIconSymbolIndex),_e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,_e.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},je("SymbolBucket",ao,{omit:["layers","collisionBoxArray","features","compareText"]}),ao.MAX_GLYPHS=65535,ao.addDynamicAttributes=RS;function rU(_,z){return z.replace(/{([^{}]+)}/g,function(X,ue){return ue in _?String(_[ue]):""})}var nU=new Wi({"symbol-placement":new ba(Ar.layout_symbol["symbol-placement"]),"symbol-spacing":new ba(Ar.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ba(Ar.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ga(Ar.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ba(Ar.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ba(Ar.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ba(Ar.layout_symbol["icon-ignore-placement"]),"icon-optional":new ba(Ar.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ba(Ar.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ga(Ar.layout_symbol["icon-size"]),"icon-text-fit":new ba(Ar.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ba(Ar.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ga(Ar.layout_symbol["icon-image"]),"icon-rotate":new Ga(Ar.layout_symbol["icon-rotate"]),"icon-padding":new ba(Ar.layout_symbol["icon-padding"]),"icon-keep-upright":new ba(Ar.layout_symbol["icon-keep-upright"]),"icon-offset":new Ga(Ar.layout_symbol["icon-offset"]),"icon-anchor":new Ga(Ar.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ba(Ar.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ba(Ar.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ba(Ar.layout_symbol["text-rotation-alignment"]),"text-field":new Ga(Ar.layout_symbol["text-field"]),"text-font":new Ga(Ar.layout_symbol["text-font"]),"text-size":new Ga(Ar.layout_symbol["text-size"]),"text-max-width":new Ga(Ar.layout_symbol["text-max-width"]),"text-line-height":new ba(Ar.layout_symbol["text-line-height"]),"text-letter-spacing":new Ga(Ar.layout_symbol["text-letter-spacing"]),"text-justify":new Ga(Ar.layout_symbol["text-justify"]),"text-radial-offset":new Ga(Ar.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ba(Ar.layout_symbol["text-variable-anchor"]),"text-anchor":new Ga(Ar.layout_symbol["text-anchor"]),"text-max-angle":new ba(Ar.layout_symbol["text-max-angle"]),"text-writing-mode":new ba(Ar.layout_symbol["text-writing-mode"]),"text-rotate":new Ga(Ar.layout_symbol["text-rotate"]),"text-padding":new ba(Ar.layout_symbol["text-padding"]),"text-keep-upright":new ba(Ar.layout_symbol["text-keep-upright"]),"text-transform":new Ga(Ar.layout_symbol["text-transform"]),"text-offset":new Ga(Ar.layout_symbol["text-offset"]),"text-allow-overlap":new ba(Ar.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ba(Ar.layout_symbol["text-ignore-placement"]),"text-optional":new ba(Ar.layout_symbol["text-optional"])}),aU=new Wi({"icon-opacity":new Ga(Ar.paint_symbol["icon-opacity"]),"icon-color":new Ga(Ar.paint_symbol["icon-color"]),"icon-halo-color":new Ga(Ar.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ga(Ar.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ga(Ar.paint_symbol["icon-halo-blur"]),"icon-translate":new ba(Ar.paint_symbol["icon-translate"]),"icon-translate-anchor":new ba(Ar.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ga(Ar.paint_symbol["text-opacity"]),"text-color":new Ga(Ar.paint_symbol["text-color"],{runtimeType:Bn,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new Ga(Ar.paint_symbol["text-halo-color"]),"text-halo-width":new Ga(Ar.paint_symbol["text-halo-width"]),"text-halo-blur":new Ga(Ar.paint_symbol["text-halo-blur"]),"text-translate":new ba(Ar.paint_symbol["text-translate"]),"text-translate-anchor":new ba(Ar.paint_symbol["text-translate-anchor"])}),kS={paint:aU,layout:nU},Xg=function(z){this.type=z.property.overrides?z.property.overrides.runtimeType:$r,this.defaultValue=z};Xg.prototype.evaluate=function(z){if(z.formattedSection){var X=this.defaultValue.property.overrides;if(X&&X.hasOverride(z.formattedSection))return X.getOverride(z.formattedSection)}return z.feature&&z.featureState?this.defaultValue.evaluate(z.feature,z.featureState):this.defaultValue.property.specification.default},Xg.prototype.eachChild=function(z){if(!this.defaultValue.isConstant()){var X=this.defaultValue.value;z(X._styleExpression.expression)}},Xg.prototype.outputDefined=function(){return!1},Xg.prototype.serialize=function(){return null},je("FormatSectionOverride",Xg,{omit:["defaultValue"]});var iU=function(_){function z(X){_.call(this,X,kS)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.recalculate=function(ue,ge){if(_.prototype.recalculate.call(this,ue,ge),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Le=this.layout.get("text-writing-mode");if(Le){for(var _e=[],tt=0,bt=Le;tt",targetMapId:ge,sourceMapId:_e.mapId})}}},Zg.prototype.receive=function(z){var X=z.data,ue=X.id;if(ue&&!(X.targetMapId&&this.mapId!==X.targetMapId))if(X.type===""){delete this.tasks[ue];var ge=this.cancelCallbacks[ue];delete this.cancelCallbacks[ue],ge&&ge()}else q()||X.mustQueue?(this.tasks[ue]=X,this.taskQueue.push(ue),this.invoker.trigger()):this.processTask(ue,X)},Zg.prototype.process=function(){if(this.taskQueue.length){var z=this.taskQueue.shift(),X=this.tasks[z];delete this.tasks[z],this.taskQueue.length&&this.invoker.trigger(),X&&this.processTask(z,X)}},Zg.prototype.processTask=function(z,X){var ue=this;if(X.type===""){var ge=this.callbacks[z];delete this.callbacks[z],ge&&(X.error?ge(Et(X.error)):ge(null,Et(X.data)))}else{var Le=!1,_e=fe(this.globalScope)?void 0:[],tt=X.hasCallback?function(or,rr){Le=!0,delete ue.cancelCallbacks[z],ue.target.postMessage({id:z,type:"",sourceMapId:ue.mapId,error:or?Dt(or):null,data:Dt(rr,_e)},_e)}:function(or){Le=!0},bt=null,Pt=Et(X.data);if(this.parent[X.type])bt=this.parent[X.type](X.sourceMapId,Pt,tt);else if(this.parent.getWorkerSource){var Ot=X.type.split("."),Jt=this.parent.getWorkerSource(X.sourceMapId,Ot[0],Pt.source);bt=Jt[Ot[1]](Pt,tt)}else tt(new Error("Could not find function "+X.type));!Le&&bt&&bt.cancel&&(this.cancelCallbacks[z]=bt.cancel)}},Zg.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function gU(_,z,X){z=Math.pow(2,X)-z-1;var ue=DE(_*256,z*256,X),ge=DE((_+1)*256,(z+1)*256,X);return ue[0]+","+ue[1]+","+ge[0]+","+ge[1]}function DE(_,z,X){var ue=2*Math.PI*6378137/256/Math.pow(2,X),ge=_*ue-2*Math.PI*6378137/2,Le=z*ue-2*Math.PI*6378137/2;return[ge,Le]}var hs=function(z,X){z&&(X?this.setSouthWest(z).setNorthEast(X):z.length===4?this.setSouthWest([z[0],z[1]]).setNorthEast([z[2],z[3]]):this.setSouthWest(z[0]).setNorthEast(z[1]))};hs.prototype.setNorthEast=function(z){return this._ne=z instanceof So?new So(z.lng,z.lat):So.convert(z),this},hs.prototype.setSouthWest=function(z){return this._sw=z instanceof So?new So(z.lng,z.lat):So.convert(z),this},hs.prototype.extend=function(z){var X=this._sw,ue=this._ne,ge,Le;if(z instanceof So)ge=z,Le=z;else if(z instanceof hs){if(ge=z._sw,Le=z._ne,!ge||!Le)return this}else{if(Array.isArray(z))if(z.length===4||z.every(Array.isArray)){var _e=z;return this.extend(hs.convert(_e))}else{var tt=z;return this.extend(So.convert(tt))}return this}return!X&&!ue?(this._sw=new So(ge.lng,ge.lat),this._ne=new So(Le.lng,Le.lat)):(X.lng=Math.min(ge.lng,X.lng),X.lat=Math.min(ge.lat,X.lat),ue.lng=Math.max(Le.lng,ue.lng),ue.lat=Math.max(Le.lat,ue.lat)),this},hs.prototype.getCenter=function(){return new So((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},hs.prototype.getSouthWest=function(){return this._sw},hs.prototype.getNorthEast=function(){return this._ne},hs.prototype.getNorthWest=function(){return new So(this.getWest(),this.getNorth())},hs.prototype.getSouthEast=function(){return new So(this.getEast(),this.getSouth())},hs.prototype.getWest=function(){return this._sw.lng},hs.prototype.getSouth=function(){return this._sw.lat},hs.prototype.getEast=function(){return this._ne.lng},hs.prototype.getNorth=function(){return this._ne.lat},hs.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},hs.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},hs.prototype.isEmpty=function(){return!(this._sw&&this._ne)},hs.prototype.contains=function(z){var X=So.convert(z),ue=X.lng,ge=X.lat,Le=this._sw.lat<=ge&&ge<=this._ne.lat,_e=this._sw.lng<=ue&&ue<=this._ne.lng;return this._sw.lng>this._ne.lng&&(_e=this._sw.lng>=ue&&ue>=this._ne.lng),Le&&_e},hs.convert=function(z){return!z||z instanceof hs?z:new hs(z)};var OE=63710088e-1,So=function(z,X){if(isNaN(z)||isNaN(X))throw new Error("Invalid LngLat object: ("+z+", "+X+")");if(this.lng=+z,this.lat=+X,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};So.prototype.wrap=function(){return new So(E(this.lng,-180,180),this.lat)},So.prototype.toArray=function(){return[this.lng,this.lat]},So.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},So.prototype.distanceTo=function(z){var X=Math.PI/180,ue=this.lat*X,ge=z.lat*X,Le=Math.sin(ue)*Math.sin(ge)+Math.cos(ue)*Math.cos(ge)*Math.cos((z.lng-this.lng)*X),_e=OE*Math.acos(Math.min(Le,1));return _e},So.prototype.toBounds=function(z){z===void 0&&(z=0);var X=40075017,ue=360*z/X,ge=ue/Math.cos(Math.PI/180*this.lat);return new hs(new So(this.lng-ge,this.lat-ue),new So(this.lng+ge,this.lat+ue))},So.convert=function(z){if(z instanceof So)return z;if(Array.isArray(z)&&(z.length===2||z.length===3))return new So(Number(z[0]),Number(z[1]));if(!Array.isArray(z)&&typeof z=="object"&&z!==null)return new So(Number("lng"in z?z.lng:z.lon),Number(z.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var FE=2*Math.PI*OE;function _E(_){return FE*Math.cos(_*Math.PI/180)}function zE(_){return(180+_)/360}function BE(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function NE(_,z){return _/_E(z)}function mU(_){return _*360-180}function OS(_){var z=180-_*360;return 360/Math.PI*Math.atan(Math.exp(z*Math.PI/180))-90}function yU(_,z){return _*_E(OS(z))}function xU(_){return 1/Math.cos(_*Math.PI/180)}var A0=function(z,X,ue){ue===void 0&&(ue=0),this.x=+z,this.y=+X,this.z=+ue};A0.fromLngLat=function(z,X){X===void 0&&(X=0);var ue=So.convert(z);return new A0(zE(ue.lng),BE(ue.lat),NE(X,ue.lat))},A0.prototype.toLngLat=function(){return new So(mU(this.x),OS(this.y))},A0.prototype.toAltitude=function(){return yU(this.z,this.y)},A0.prototype.meterInMercatorCoordinateUnits=function(){return 1/FE*xU(OS(this.y))};var E0=function(z,X,ue){this.z=z,this.x=X,this.y=ue,this.key=v1(0,z,z,X,ue)};E0.prototype.equals=function(z){return this.z===z.z&&this.x===z.x&&this.y===z.y},E0.prototype.url=function(z,X){var ue=gU(this.x,this.y,this.z),ge=bU(this.z,this.x,this.y);return z[(this.x+this.y)%z.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(X==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",ge).replace("{bbox-epsg-3857}",ue)},E0.prototype.getTilePoint=function(z){var X=Math.pow(2,this.z);return new a((z.x*X-this.x)*Ha,(z.y*X-this.y)*Ha)},E0.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var UE=function(z,X){this.wrap=z,this.canonical=X,this.key=v1(z,X.z,X.z,X.x,X.y)},vs=function(z,X,ue,ge,Le){this.overscaledZ=z,this.wrap=X,this.canonical=new E0(ue,+ge,+Le),this.key=v1(X,z,ue,ge,Le)};vs.prototype.equals=function(z){return this.overscaledZ===z.overscaledZ&&this.wrap===z.wrap&&this.canonical.equals(z.canonical)},vs.prototype.scaledTo=function(z){var X=this.canonical.z-z;return z>this.canonical.z?new vs(z,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new vs(z,this.wrap,z,this.canonical.x>>X,this.canonical.y>>X)},vs.prototype.calculateScaledKey=function(z,X){var ue=this.canonical.z-z;return z>this.canonical.z?v1(this.wrap*+X,z,this.canonical.z,this.canonical.x,this.canonical.y):v1(this.wrap*+X,z,z,this.canonical.x>>ue,this.canonical.y>>ue)},vs.prototype.isChildOf=function(z){if(z.wrap!==this.wrap)return!1;var X=this.canonical.z-z.canonical.z;return z.overscaledZ===0||z.overscaledZ>X&&z.canonical.y===this.canonical.y>>X},vs.prototype.children=function(z){if(this.overscaledZ>=z)return[new vs(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var X=this.canonical.z+1,ue=this.canonical.x*2,ge=this.canonical.y*2;return[new vs(X,this.wrap,X,ue,ge),new vs(X,this.wrap,X,ue+1,ge),new vs(X,this.wrap,X,ue,ge+1),new vs(X,this.wrap,X,ue+1,ge+1)]},vs.prototype.isLessThan=function(z){return this.wrapz.wrap?!1:this.overscaledZz.overscaledZ?!1:this.canonical.xz.canonical.x?!1:this.canonical.y0;Le--)ge=1<=this.dim+1||X<-1||X>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(X+1)*this.stride+(z+1)},Bh.prototype._unpackMapbox=function(z,X,ue){return(z*256*256+X*256+ue)/10-1e4},Bh.prototype._unpackTerrarium=function(z,X,ue){return z*256+X+ue/256-32768},Bh.prototype.getPixels=function(){return new $l({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Bh.prototype.backfillBorder=function(z,X,ue){if(this.dim!==z.dim)throw new Error("dem dimension mismatch");var ge=X*this.dim,Le=X*this.dim+this.dim,_e=ue*this.dim,tt=ue*this.dim+this.dim;switch(X){case-1:ge=Le-1;break;case 1:Le=ge+1;break}switch(ue){case-1:_e=tt-1;break;case 1:tt=_e+1;break}for(var bt=-X*this.dim,Pt=-ue*this.dim,Ot=_e;Ot=0&&Jt[3]>=0&&bt.insert(tt,Jt[0],Jt[1],Jt[2],Jt[3])}},Nh.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Bg.VectorTile(new uw(this.rawTileData)).layers,this.sourceLayerCoder=new xw(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Nh.prototype.query=function(z,X,ue,ge){var Le=this;this.loadVTLayers();for(var _e=z.params||{},tt=Ha/z.tileSize/z.scale,bt=Du(_e.filter),Pt=z.queryGeometry,Ot=z.queryPadding*tt,Jt=VE(Pt),or=this.grid.query(Jt.minX-Ot,Jt.minY-Ot,Jt.maxX+Ot,Jt.maxY+Ot),rr=VE(z.cameraQueryGeometry),wr=this.grid3D.query(rr.minX-Ot,rr.minY-Ot,rr.maxX+Ot,rr.maxY+Ot,function(ta,ha,ca,Ba){return qc(z.cameraQueryGeometry,ta-Ot,ha-Ot,ca+Ot,Ba+Ot)}),Nr=0,pn=wr;Nrge)Le=!1;else if(!X)Le=!0;else if(this.expirationTime=br.maxzoom)&&br.visibility!=="none"){o(pr,this.zoom,Rt);var Tr=hr[br.id]=br.createBucket({index:er.bucketLayerIDs.length,layers:pr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ut,sourceID:this.source});Tr.populate(Bt,vr,this.tileID.canonical),er.bucketLayerIDs.push(pr.map(function(Mr){return Mr.id}))}}}}var gr,Xr,Dr,Fr,yn=i.mapObject(vr.glyphDependencies,function(Mr){return Object.keys(Mr).map(Number)});Object.keys(yn).length?_t.send("getGlyphs",{uid:this.uid,stacks:yn},function(Mr,Rr){gr||(gr=Mr,Xr=Rr,On.call(Wt))}):Xr={};var un=Object.keys(vr.iconDependencies);un.length?_t.send("getImages",{icons:un,source:this.source,tileID:this.tileID,type:"icons"},function(Mr,Rr){gr||(gr=Mr,Dr=Rr,On.call(Wt))}):Dr={};var _n=Object.keys(vr.patternDependencies);_n.length?_t.send("getImages",{icons:_n,source:this.source,tileID:this.tileID,type:"patterns"},function(Mr,Rr){gr||(gr=Mr,Fr=Rr,On.call(Wt))}):Fr={},On.call(this);function On(){if(gr)return Ft(gr);if(Xr&&Dr&&Fr){var Mr=new n(Xr),Rr=new i.ImageAtlas(Dr,Fr);for(var Zr in hr){var Wr=hr[Zr];Wr instanceof i.SymbolBucket?(o(Wr.layers,this.zoom,Rt),i.performSymbolLayout(Wr,Xr,Mr.positions,Dr,Rr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Wr.hasPattern&&(Wr instanceof i.LineBucket||Wr instanceof i.FillBucket||Wr instanceof i.FillExtrusionBucket)&&(o(Wr.layers,this.zoom,Rt),Wr.addFeatures(vr,this.tileID.canonical,Rr.patternPositions))}this.status="done",Ft(null,{buckets:i.values(hr).filter(function(fn){return!fn.isEmpty()}),featureIndex:er,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Mr.image,imageAtlas:Rr,glyphMap:this.returnDependencies?Xr:null,iconMap:this.returnDependencies?Dr:null,glyphPositions:this.returnDependencies?Mr.positions:null})}}};function o(Ct,ht,At){for(var Rt=new i.EvaluationParameters(ht),_t=0,Ft=Ct;_t=0!=!!ht&&Ct.reverse()}var x=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,A=function(ht){this._feature=ht,this.extent=i.EXTENT,this.type=ht.type,this.properties=ht.tags,"id"in ht&&!isNaN(ht.id)&&(this.id=parseInt(ht.id,10))};A.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ht=[],At=0,Rt=this._feature.geometry;At"u"&&(Rt.push(jt),er=Rt.length-1,Ft[jt]=er),ht.writeVarint(er);var hr=At.properties[jt],vr=typeof hr;vr!=="string"&&vr!=="boolean"&&vr!=="number"&&(hr=JSON.stringify(hr));var mr=vr+":"+hr,Ze=Wt[mr];typeof Ze>"u"&&(_t.push(hr),Ze=_t.length-1,Wt[mr]=Ze),ht.writeVarint(Ze)}}function $(Ct,ht){return(ht<<3)+(Ct&7)}function Z(Ct){return Ct<<1^Ct>>31}function q(Ct,ht){for(var At=Ct.loadGeometry(),Rt=Ct.type,_t=0,Ft=0,Wt=At.length,jt=0;jt>1;fe(Ct,ht,Wt,Rt,_t,Ft%2),ie(Ct,ht,At,Rt,Wt-1,Ft+1),ie(Ct,ht,At,Wt+1,_t,Ft+1)}}function fe(Ct,ht,At,Rt,_t,Ft){for(;_t>Rt;){if(_t-Rt>600){var Wt=_t-Rt+1,jt=At-Rt+1,er=Math.log(Wt),hr=.5*Math.exp(2*er/3),vr=.5*Math.sqrt(er*hr*(Wt-hr)/Wt)*(jt-Wt/2<0?-1:1),mr=Math.max(Rt,Math.floor(At-jt*hr/Wt+vr)),Ze=Math.min(_t,Math.floor(At+(Wt-jt)*hr/Wt+vr));fe(Ct,ht,At,mr,Ze,Ft)}var Xe=ht[2*At+Ft],Ut=Rt,Bt=_t;for(Q(Ct,ht,Rt,At),ht[2*_t+Ft]>Xe&&Q(Ct,ht,Rt,_t);UtXe;)Bt--}ht[2*Rt+Ft]===Xe?Q(Ct,ht,Rt,Bt):(Bt++,Q(Ct,ht,Bt,_t)),Bt<=At&&(Rt=Bt+1),At<=Bt&&(_t=Bt-1)}}function Q(Ct,ht,At,Rt){J(Ct,At,Rt),J(ht,2*At,2*Rt),J(ht,2*At+1,2*Rt+1)}function J(Ct,ht,At){var Rt=Ct[ht];Ct[ht]=Ct[At],Ct[At]=Rt}function oe(Ct,ht,At,Rt,_t,Ft,Wt){for(var jt=[0,Ct.length-1,0],er=[],hr,vr;jt.length;){var mr=jt.pop(),Ze=jt.pop(),Xe=jt.pop();if(Ze-Xe<=Wt){for(var Ut=Xe;Ut<=Ze;Ut++)hr=ht[2*Ut],vr=ht[2*Ut+1],hr>=At&&hr<=_t&&vr>=Rt&&vr<=Ft&&er.push(Ct[Ut]);continue}var Bt=Math.floor((Xe+Ze)/2);hr=ht[2*Bt],vr=ht[2*Bt+1],hr>=At&&hr<=_t&&vr>=Rt&&vr<=Ft&&er.push(Ct[Bt]);var qt=(mr+1)%2;(mr===0?At<=hr:Rt<=vr)&&(jt.push(Xe),jt.push(Bt-1),jt.push(qt)),(mr===0?_t>=hr:Ft>=vr)&&(jt.push(Bt+1),jt.push(Ze),jt.push(qt))}return er}function K(Ct,ht,At,Rt,_t,Ft){for(var Wt=[0,Ct.length-1,0],jt=[],er=_t*_t;Wt.length;){var hr=Wt.pop(),vr=Wt.pop(),mr=Wt.pop();if(vr-mr<=Ft){for(var Ze=mr;Ze<=vr;Ze++)ne(ht[2*Ze],ht[2*Ze+1],At,Rt)<=er&&jt.push(Ct[Ze]);continue}var Xe=Math.floor((mr+vr)/2),Ut=ht[2*Xe],Bt=ht[2*Xe+1];ne(Ut,Bt,At,Rt)<=er&&jt.push(Ct[Xe]);var qt=(hr+1)%2;(hr===0?At-_t<=Ut:Rt-_t<=Bt)&&(Wt.push(mr),Wt.push(Xe-1),Wt.push(qt)),(hr===0?At+_t>=Ut:Rt+_t>=Bt)&&(Wt.push(Xe+1),Wt.push(vr),Wt.push(qt))}return jt}function ne(Ct,ht,At,Rt){var _t=Ct-At,Ft=ht-Rt;return _t*_t+Ft*Ft}var ce=function(Ct){return Ct[0]},re=function(Ct){return Ct[1]},ee=function(ht,At,Rt,_t,Ft){At===void 0&&(At=ce),Rt===void 0&&(Rt=re),_t===void 0&&(_t=64),Ft===void 0&&(Ft=Float64Array),this.nodeSize=_t,this.points=ht;for(var Wt=ht.length<65536?Uint16Array:Uint32Array,jt=this.ids=new Wt(ht.length),er=this.coords=new Ft(ht.length*2),hr=0;hr=_t;vr--){var mr=+Date.now();er=this._cluster(er,vr),this.trees[vr]=new ee(er,Ue,Ne,Wt,Float32Array),Rt&&console.log("z%d: %d clusters in %dms",vr,er.length,+Date.now()-mr)}return Rt&&console.timeEnd("total time"),this},le.prototype.getClusters=function(ht,At){var Rt=((ht[0]+180)%360+360)%360-180,_t=Math.max(-90,Math.min(90,ht[1])),Ft=ht[2]===180?180:((ht[2]+180)%360+360)%360-180,Wt=Math.max(-90,Math.min(90,ht[3]));if(ht[2]-ht[0]>=360)Rt=-180,Ft=180;else if(Rt>Ft){var jt=this.getClusters([Rt,_t,180,Wt],At),er=this.getClusters([-180,_t,Ft,Wt],At);return jt.concat(er)}for(var hr=this.trees[this._limitZoom(At)],vr=hr.range(ke(Rt),Te(Wt),ke(Ft),Te(_t)),mr=[],Ze=0,Xe=vr;ZeAt&&(Bt+=ir.numPoints||1)}if(Bt>=er){for(var Ht=mr.x*Ut,pr=mr.y*Ut,br=jt&&Ut>1?this._map(mr,!0):null,Tr=(vr<<5)+(At+1)+this.points.length,gr=0,Xr=Xe;gr1)for(var un=0,_n=Xe;un<_n.length;un+=1){var On=_n[un],Mr=Ze.points[On];Mr.zoom<=At||(Mr.zoom=At,Rt.push(Mr))}}}return Rt},le.prototype._getOriginId=function(ht){return ht-this.points.length>>5},le.prototype._getOriginZoom=function(ht){return(ht-this.points.length)%32},le.prototype._map=function(ht,At){if(ht.numPoints)return At?Ie({},ht.properties):ht.properties;var Rt=this.points[ht.index].properties,_t=this.options.map(Rt);return At&&_t===Rt?Ie({},_t):_t};function he(Ct,ht,At,Rt,_t){return{x:Ct,y:ht,zoom:1/0,id:At,parentId:-1,numPoints:Rt,properties:_t}}function xe(Ct,ht){var At=Ct.geometry.coordinates,Rt=At[0],_t=At[1];return{x:ke(Rt),y:Te(_t),zoom:1/0,index:ht,parentId:-1}}function Ee(Ct){return{type:"Feature",id:Ct.id,properties:Se(Ct),geometry:{type:"Point",coordinates:[Ae(Ct.x),be(Ct.y)]}}}function Se(Ct){var ht=Ct.numPoints,At=ht>=1e4?Math.round(ht/1e3)+"k":ht>=1e3?Math.round(ht/100)/10+"k":ht;return Ie(Ie({},Ct.properties),{cluster:!0,cluster_id:Ct.id,point_count:ht,point_count_abbreviated:At})}function ke(Ct){return Ct/360+.5}function Te(Ct){var ht=Math.sin(Ct*Math.PI/180),At=.5-.25*Math.log((1+ht)/(1-ht))/Math.PI;return At<0?0:At>1?1:At}function Ae(Ct){return(Ct-.5)*360}function be(Ct){var ht=(180-Ct*360)*Math.PI/180;return 360*Math.atan(Math.exp(ht))/Math.PI-90}function Ie(Ct,ht){for(var At in ht)Ct[At]=ht[At];return Ct}function Ue(Ct){return Ct.x}function Ne(Ct){return Ct.y}function ze(Ct,ht,At,Rt){for(var _t=Rt,Ft=At-ht>>1,Wt=At-ht,jt,er=Ct[ht],hr=Ct[ht+1],vr=Ct[At],mr=Ct[At+1],Ze=ht+3;Ze_t)jt=Ze,_t=Xe;else if(Xe===_t){var Ut=Math.abs(Ze-Ft);UtRt&&(jt-ht>3&&ze(Ct,ht,jt,Rt),Ct[jt+2]=_t,At-jt>3&&ze(Ct,jt,At,Rt))}function $e(Ct,ht,At,Rt,_t,Ft){var Wt=_t-At,jt=Ft-Rt;if(Wt!==0||jt!==0){var er=((Ct-At)*Wt+(ht-Rt)*jt)/(Wt*Wt+jt*jt);er>1?(At=_t,Rt=Ft):er>0&&(At+=Wt*er,Rt+=jt*er)}return Wt=Ct-At,jt=ht-Rt,Wt*Wt+jt*jt}function st(Ct,ht,At,Rt){var _t={id:typeof Ct>"u"?null:Ct,type:ht,geometry:At,tags:Rt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return vt(_t),_t}function vt(Ct){var ht=Ct.geometry,At=Ct.type;if(At==="Point"||At==="MultiPoint"||At==="LineString")at(Ct,ht);else if(At==="Polygon"||At==="MultiLineString")for(var Rt=0;Rt0&&(Rt?Wt+=(_t*hr-er*Ft)/2:Wt+=Math.sqrt(Math.pow(er-_t,2)+Math.pow(hr-Ft,2))),_t=er,Ft=hr}var vr=ht.length-3;ht[2]=1,ze(ht,0,vr,At),ht[vr+2]=1,ht.size=Math.abs(Wt),ht.start=0,ht.end=ht.size}function dt(Ct,ht,At,Rt){for(var _t=0;_t1?1:At}function Be(Ct,ht,At,Rt,_t,Ft,Wt,jt){if(At/=ht,Rt/=ht,Ft>=At&&Wt=Rt)return null;for(var er=[],hr=0;hr=At&&Ut=Rt)continue;var Bt=[];if(Ze==="Point"||Ze==="MultiPoint")Ye(mr,Bt,At,Rt,_t);else if(Ze==="LineString")Ke(mr,Bt,At,Rt,_t,!1,jt.lineMetrics);else if(Ze==="MultiLineString")Fe(mr,Bt,At,Rt,_t,!1);else if(Ze==="Polygon")Fe(mr,Bt,At,Rt,_t,!0);else if(Ze==="MultiPolygon")for(var qt=0;qt=At&&Wt<=Rt&&(ht.push(Ct[Ft]),ht.push(Ct[Ft+1]),ht.push(Ct[Ft+2]))}}function Ke(Ct,ht,At,Rt,_t,Ft,Wt){for(var jt=We(Ct),er=_t===0?we:Re,hr=Ct.start,vr,mr,Ze=0;ZeAt&&(mr=er(jt,Xe,Ut,qt,nr,At),Wt&&(jt.start=hr+vr*mr)):fr>Rt?ir=At&&(mr=er(jt,Xe,Ut,qt,nr,At),Ht=!0),ir>Rt&&fr<=Rt&&(mr=er(jt,Xe,Ut,qt,nr,Rt),Ht=!0),!Ft&&Ht&&(Wt&&(jt.end=hr+vr*mr),ht.push(jt),jt=We(Ct)),Wt&&(hr+=vr)}var pr=Ct.length-3;Xe=Ct[pr],Ut=Ct[pr+1],Bt=Ct[pr+2],fr=_t===0?Xe:Ut,fr>=At&&fr<=Rt&&Me(jt,Xe,Ut,Bt),pr=jt.length-3,Ft&&pr>=3&&(jt[pr]!==jt[0]||jt[pr+1]!==jt[1])&&Me(jt,jt[0],jt[1],jt[2]),jt.length&&ht.push(jt)}function We(Ct){var ht=[];return ht.size=Ct.size,ht.start=Ct.start,ht.end=Ct.end,ht}function Fe(Ct,ht,At,Rt,_t,Ft){for(var Wt=0;WtWt.maxX&&(Wt.maxX=vr),mr>Wt.maxY&&(Wt.maxY=mr)}return Wt}function It(Ct,ht,At,Rt){var _t=ht.geometry,Ft=ht.type,Wt=[];if(Ft==="Point"||Ft==="MultiPoint")for(var jt=0;jt<_t.length;jt+=3)Wt.push(_t[jt]),Wt.push(_t[jt+1]),Ct.numPoints++,Ct.numSimplified++;else if(Ft==="LineString")Vt(Wt,_t,Ct,At,!1,!1);else if(Ft==="MultiLineString"||Ft==="Polygon")for(jt=0;jt<_t.length;jt++)Vt(Wt,_t[jt],Ct,At,Ft==="Polygon",jt===0);else if(Ft==="MultiPolygon")for(var er=0;er<_t.length;er++){var hr=_t[er];for(jt=0;jt0&&ht.size<(_t?Wt:Rt)){At.numPoints+=ht.length/3;return}for(var jt=[],er=0;erWt)&&(At.numSimplified++,jt.push(ht[er]),jt.push(ht[er+1])),At.numPoints++;_t&&xt(jt,Ft),Ct.push(jt)}function xt(Ct,ht){for(var At=0,Rt=0,_t=Ct.length,Ft=_t-2;Rt<_t;Ft=Rt,Rt+=2)At+=(Ct[Rt]-Ct[Ft])*(Ct[Rt+1]+Ct[Ft+1]);if(At>0===ht)for(Rt=0,_t=Ct.length;Rt<_t/2;Rt+=2){var Wt=Ct[Rt],jt=Ct[Rt+1];Ct[Rt]=Ct[_t-2-Rt],Ct[Rt+1]=Ct[_t-1-Rt],Ct[_t-2-Rt]=Wt,Ct[_t-1-Rt]=jt}}function Lt(Ct,ht){return new Xt(Ct,ht)}function Xt(Ct,ht){ht=this.options=Tt(Object.create(this.options),ht);var At=ht.debug;if(At&&console.time("preprocess data"),ht.maxZoom<0||ht.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(ht.promoteId&&ht.generateId)throw new Error("promoteId and generateId cannot be used together.");var Rt=nt(Ct,ht);this.tiles={},this.tileCoords=[],At&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ht.indexMaxZoom,ht.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Rt=Pe(Rt,ht),Rt.length&&this.splitTile(Rt,0,0,0),At&&(Rt.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)))}Xt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Xt.prototype.splitTile=function(Ct,ht,At,Rt,_t,Ft,Wt){for(var jt=[Ct,ht,At,Rt],er=this.options,hr=er.debug;jt.length;){Rt=jt.pop(),At=jt.pop(),ht=jt.pop(),Ct=jt.pop();var vr=1<1&&console.time("creation"),Ze=this.tiles[mr]=ut(Ct,ht,At,Rt,er),this.tileCoords.push({z:ht,x:At,y:Rt}),hr)){hr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ht,At,Rt,Ze.numFeatures,Ze.numPoints,Ze.numSimplified),console.timeEnd("creation"));var Xe="z"+ht;this.stats[Xe]=(this.stats[Xe]||0)+1,this.total++}if(Ze.source=Ct,_t){if(ht===er.maxZoom||ht===_t)continue;var Ut=1<<_t-ht;if(At!==Math.floor(Ft/Ut)||Rt!==Math.floor(Wt/Ut))continue}else if(ht===er.indexMaxZoom||Ze.numPoints<=er.indexMaxPoints)continue;if(Ze.source=null,Ct.length!==0){hr>1&&console.time("clipping");var Bt=.5*er.buffer/er.extent,qt=.5-Bt,nr=.5+Bt,fr=1+Bt,ir,Ht,pr,br,Tr,gr;ir=Ht=pr=br=null,Tr=Be(Ct,vr,At-Bt,At+nr,0,Ze.minX,Ze.maxX,er),gr=Be(Ct,vr,At+qt,At+fr,0,Ze.minX,Ze.maxX,er),Ct=null,Tr&&(ir=Be(Tr,vr,Rt-Bt,Rt+nr,1,Ze.minY,Ze.maxY,er),Ht=Be(Tr,vr,Rt+qt,Rt+fr,1,Ze.minY,Ze.maxY,er),Tr=null),gr&&(pr=Be(gr,vr,Rt-Bt,Rt+nr,1,Ze.minY,Ze.maxY,er),br=Be(gr,vr,Rt+qt,Rt+fr,1,Ze.minY,Ze.maxY,er),gr=null),hr>1&&console.timeEnd("clipping"),jt.push(ir||[],ht+1,At*2,Rt*2),jt.push(Ht||[],ht+1,At*2,Rt*2+1),jt.push(pr||[],ht+1,At*2+1,Rt*2),jt.push(br||[],ht+1,At*2+1,Rt*2+1)}}},Xt.prototype.getTile=function(Ct,ht,At){var Rt=this.options,_t=Rt.extent,Ft=Rt.debug;if(Ct<0||Ct>24)return null;var Wt=1<1&&console.log("drilling down to z%d-%d-%d",Ct,ht,At);for(var er=Ct,hr=ht,vr=At,mr;!mr&&er>0;)er--,hr=Math.floor(hr/2),vr=Math.floor(vr/2),mr=this.tiles[dr(er,hr,vr)];return!mr||!mr.source?null:(Ft>1&&console.log("found parent tile z%d-%d-%d",er,hr,vr),Ft>1&&console.time("drilling down"),this.splitTile(mr.source,er,hr,vr,Ct,ht,At),Ft>1&&console.timeEnd("drilling down"),this.tiles[jt]?ot(this.tiles[jt],_t):null)};function dr(Ct,ht,At){return((1<=0?0:pe.button},w.remove=function(pe){pe.parentNode&&pe.parentNode.removeChild(pe)};function u(pe,te,me){var se,ye,He,Qe=i.browser.devicePixelRatio>1?"@2x":"",pt=i.getJSON(te.transformRequest(te.normalizeSpriteURL(pe,Qe,".json"),i.ResourceType.SpriteJSON),function(tr,cr){pt=null,He||(He=tr,se=cr,$t())}),kt=i.getImage(te.transformRequest(te.normalizeSpriteURL(pe,Qe,".png"),i.ResourceType.SpriteImage),function(tr,cr){kt=null,He||(He=tr,ye=cr,$t())});function $t(){if(He)me(He);else if(se&&ye){var tr=i.browser.getImageData(ye),cr={};for(var ur in se){var Br=se[ur],Jr=Br.width,Kr=Br.height,Yr=Br.x,en=Br.y,mn=Br.sdf,Vn=Br.pixelRatio,Yn=Br.stretchX,ra=Br.stretchY,na=Br.content,Qn=new i.RGBAImage({width:Jr,height:Kr});i.RGBAImage.copy(tr,Qn,{x:Yr,y:en},{x:0,y:0},{width:Jr,height:Kr}),cr[ur]={data:Qn,pixelRatio:Vn,sdf:mn,stretchX:Yn,stretchY:ra,content:na}}me(null,cr)}}return{cancel:function(){pt&&(pt.cancel(),pt=null),kt&&(kt.cancel(),kt=null)}}}function b(pe){var te=pe.userImage;if(te&&te.render){var me=te.render();if(me)return pe.data.replace(new Uint8Array(te.data.buffer)),!0}return!1}var p=1,E=function(pe){function te(){pe.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.isLoaded=function(){return this.loaded},te.prototype.setLoaded=function(se){if(this.loaded!==se&&(this.loaded=se,se)){for(var ye=0,He=this.requestors;ye=0?1.2:1))}M.prototype.draw=function(pe){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(pe,this.buffer,this.middle);for(var te=this.ctx.getImageData(0,0,this.size,this.size),me=new Uint8ClampedArray(this.size*this.size),se=0;se65535){tr(new Error("glyphs > 65535 not supported"));return}if(Br.ranges[Kr]){tr(null,{stack:cr,id:ur,glyph:Jr});return}var Yr=Br.requests[Kr];Yr||(Yr=Br.requests[Kr]=[],L.loadGlyphRange(cr,Kr,se.url,se.requestManager,function(en,mn){if(mn){for(var Vn in mn)se._doesCharSupportLocalGlyph(+Vn)||(Br.glyphs[+Vn]=mn[+Vn]);Br.ranges[Kr]=!0}for(var Yn=0,ra=Yr;Yn1&&($t=te[++kt]);var cr=Math.abs(tr-$t.left),ur=Math.abs(tr-$t.right),Br=Math.min(cr,ur),Jr=void 0,Kr=He/se*(ye+1);if($t.isDash){var Yr=ye-Math.abs(Kr);Jr=Math.sqrt(Br*Br+Yr*Yr)}else Jr=ye-Math.sqrt(Br*Br+Kr*Kr);this.data[pt+tr]=Math.max(0,Math.min(255,Jr+128))}},N.prototype.addRegularDash=function(te){for(var me=te.length-1;me>=0;--me){var se=te[me],ye=te[me+1];se.zeroLength?te.splice(me,1):ye&&ye.isDash===se.isDash&&(ye.left=se.left,te.splice(me,1))}var He=te[0],Qe=te[te.length-1];He.isDash===Qe.isDash&&(He.left=Qe.left-this.width,Qe.right=He.right+this.width);for(var pt=this.width*this.nextRow,kt=0,$t=te[kt],tr=0;tr1&&($t=te[++kt]);var cr=Math.abs(tr-$t.left),ur=Math.abs(tr-$t.right),Br=Math.min(cr,ur),Jr=$t.isDash?Br:-Br;this.data[pt+tr]=Math.max(0,Math.min(255,Jr+128))}},N.prototype.addDash=function(te,me){var se=me?7:0,ye=2*se+1;if(this.nextRow+ye>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var He=0,Qe=0;Qe=se.minX&&te.x=se.minY&&te.y0&&(tr[new i.OverscaledTileID(se.overscaledZ,pt,ye.z,Qe,ye.y-1).key]={backfilled:!1},tr[new i.OverscaledTileID(se.overscaledZ,se.wrap,ye.z,ye.x,ye.y-1).key]={backfilled:!1},tr[new i.OverscaledTileID(se.overscaledZ,$t,ye.z,kt,ye.y-1).key]={backfilled:!1}),ye.y+10&&(He.resourceTiming=se._resourceTiming,se._resourceTiming=[]),se.fire(new i.Event("data",He))})},te.prototype.onAdd=function(se){this.map=se,this.load()},te.prototype.setData=function(se){var ye=this;return this._data=se,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(He){if(He){ye.fire(new i.ErrorEvent(He));return}var Qe={dataType:"source",sourceDataType:"content"};ye._collectResourceTiming&&ye._resourceTiming&&ye._resourceTiming.length>0&&(Qe.resourceTiming=ye._resourceTiming,ye._resourceTiming=[]),ye.fire(new i.Event("data",Qe))}),this},te.prototype.getClusterExpansionZoom=function(se,ye){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:se,source:this.id},ye),this},te.prototype.getClusterChildren=function(se,ye){return this.actor.send("geojson.getClusterChildren",{clusterId:se,source:this.id},ye),this},te.prototype.getClusterLeaves=function(se,ye,He,Qe){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:se,limit:ye,offset:He},Qe),this},te.prototype._updateWorkerData=function(se){var ye=this;this._loaded=!1;var He=i.extend({},this.workerOptions),Qe=this._data;typeof Qe=="string"?(He.request=this.map._requestManager.transformRequest(i.browser.resolveURL(Qe),i.ResourceType.Source),He.request.collectResourceTiming=this._collectResourceTiming):He.data=JSON.stringify(Qe),this.actor.send(this.type+".loadData",He,function(pt,kt){ye._removed||kt&&kt.abandoned||(ye._loaded=!0,kt&&kt.resourceTiming&&kt.resourceTiming[ye.id]&&(ye._resourceTiming=kt.resourceTiming[ye.id].slice(0)),ye.actor.send(ye.type+".coalesce",{source:He.source},null),se(pt))})},te.prototype.loaded=function(){return this._loaded},te.prototype.loadTile=function(se,ye){var He=this,Qe=se.actor?"reloadTile":"loadTile";se.actor=this.actor;var pt={type:this.type,uid:se.uid,tileID:se.tileID,zoom:se.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};se.request=this.actor.send(Qe,pt,function(kt,$t){return delete se.request,se.unloadVectorData(),se.aborted?ye(null):kt?ye(kt):(se.loadVectorData($t,He.map.painter,Qe==="reloadTile"),ye(null))})},te.prototype.abortTile=function(se){se.request&&(se.request.cancel(),delete se.request),se.aborted=!0},te.prototype.unloadTile=function(se){se.unloadVectorData(),this.actor.send("removeTile",{uid:se.uid,type:this.type,source:this.id})},te.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},te.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},te.prototype.hasTransition=function(){return!1},te}(i.Evented),Z=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(pe){function te(me,se,ye,He){pe.call(this),this.id=me,this.dispatcher=ye,this.coordinates=se.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(He),this.options=se}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.load=function(se,ye){var He=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(Qe,pt){He._loaded=!0,Qe?He.fire(new i.ErrorEvent(Qe)):pt&&(He.image=pt,se&&(He.coordinates=se),ye&&ye(),He._finishLoading())})},te.prototype.loaded=function(){return this._loaded},te.prototype.updateImage=function(se){var ye=this;return!this.image||!se.url?this:(this.options.url=se.url,this.load(se.coordinates,function(){ye.texture=null}),this)},te.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},te.prototype.onAdd=function(se){this.map=se,this.load()},te.prototype.setCoordinates=function(se){var ye=this;this.coordinates=se;var He=se.map(i.MercatorCoordinate.fromLngLat);this.tileID=ae(He),this.minzoom=this.maxzoom=this.tileID.z;var Qe=He.map(function(pt){return ye.tileID.getTilePoint(pt)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(Qe[0].x,Qe[0].y,0,0),this._boundsArray.emplaceBack(Qe[1].x,Qe[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(Qe[3].x,Qe[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(Qe[2].x,Qe[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},te.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var se=this.map.painter.context,ye=se.gl;this.boundsBuffer||(this.boundsBuffer=se.createVertexBuffer(this._boundsArray,Z.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(se,this.image,ye.RGBA),this.texture.bind(ye.LINEAR,ye.CLAMP_TO_EDGE));for(var He in this.tiles){var Qe=this.tiles[He];Qe.state!=="loaded"&&(Qe.state="loaded",Qe.texture=this.texture)}}},te.prototype.loadTile=function(se,ye){this.tileID&&this.tileID.equals(se.tileID.canonical)?(this.tiles[String(se.tileID.wrap)]=se,se.buckets={},ye(null)):(se.state="errored",ye(null))},te.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},te.prototype.hasTransition=function(){return!1},te}(i.Evented);function ae(pe){for(var te=1/0,me=1/0,se=-1/0,ye=-1/0,He=0,Qe=pe;Heye.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ye.start(0)+" and "+ye.end(0)+"-second mark."))):this.video.currentTime=se}},te.prototype.getVideo=function(){return this.video},te.prototype.onAdd=function(se){this.map||(this.map=se,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},te.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var se=this.map.painter.context,ye=se.gl;this.boundsBuffer||(this.boundsBuffer=se.createVertexBuffer(this._boundsArray,Z.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ye.LINEAR,ye.CLAMP_TO_EDGE),ye.texSubImage2D(ye.TEXTURE_2D,0,0,0,ye.RGBA,ye.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(se,this.video,ye.RGBA),this.texture.bind(ye.LINEAR,ye.CLAMP_TO_EDGE));for(var He in this.tiles){var Qe=this.tiles[He];Qe.state!=="loaded"&&(Qe.state="loaded",Qe.texture=this.texture)}}},te.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},te.prototype.hasTransition=function(){return this.video&&!this.video.paused},te}(q),fe=function(pe){function te(me,se,ye,He){pe.call(this,me,se,ye,He),se.coordinates?(!Array.isArray(se.coordinates)||se.coordinates.length!==4||se.coordinates.some(function(Qe){return!Array.isArray(Qe)||Qe.length!==2||Qe.some(function(pt){return typeof pt!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,null,'missing required property "coordinates"'))),se.animate&&typeof se.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,null,'optional "animate" property must be a boolean value'))),se.canvas?typeof se.canvas!="string"&&!(se.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,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 i.ErrorEvent(new i.ValidationError("sources."+me,null,'missing required property "canvas"'))),this.options=se,this.animate=se.animate!==void 0?se.animate:!0}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},te.prototype.getCanvas=function(){return this.canvas},te.prototype.onAdd=function(se){this.map=se,this.load(),this.canvas&&this.animate&&this.play()},te.prototype.onRemove=function(){this.pause()},te.prototype.prepare=function(){var se=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,se=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,se=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ye=this.map.painter.context,He=ye.gl;this.boundsBuffer||(this.boundsBuffer=ye.createVertexBuffer(this._boundsArray,Z.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(se||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(ye,this.canvas,He.RGBA,{premultiply:!0});for(var Qe in this.tiles){var pt=this.tiles[Qe];pt.state!=="loaded"&&(pt.state="loaded",pt.texture=this.texture)}}},te.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},te.prototype.hasTransition=function(){return this._playing},te.prototype._hasInvalidDimensions=function(){for(var se=0,ye=[this.canvas.width,this.canvas.height];sethis.max){var pt=this._getAndRemoveByKey(this.order[0]);pt&&this.onRemove(pt)}return this},xe.prototype.has=function(te){return te.wrapped().key in this.data},xe.prototype.getAndRemove=function(te){return this.has(te)?this._getAndRemoveByKey(te.wrapped().key):null},xe.prototype._getAndRemoveByKey=function(te){var me=this.data[te].shift();return me.timeout&&clearTimeout(me.timeout),this.data[te].length===0&&delete this.data[te],this.order.splice(this.order.indexOf(te),1),me.value},xe.prototype.getByKey=function(te){var me=this.data[te];return me?me[0].value:null},xe.prototype.get=function(te){if(!this.has(te))return null;var me=this.data[te.wrapped().key][0];return me.value},xe.prototype.remove=function(te,me){if(!this.has(te))return this;var se=te.wrapped().key,ye=me===void 0?0:this.data[se].indexOf(me),He=this.data[se][ye];return this.data[se].splice(ye,1),He.timeout&&clearTimeout(He.timeout),this.data[se].length===0&&delete this.data[se],this.onRemove(He.value),this.order.splice(this.order.indexOf(se),1),this},xe.prototype.setMaxSize=function(te){for(this.max=te;this.order.length>this.max;){var me=this._getAndRemoveByKey(this.order[0]);me&&this.onRemove(me)}return this},xe.prototype.filter=function(te){var me=[];for(var se in this.data)for(var ye=0,He=this.data[se];ye1||(Math.abs(cr)>1&&(Math.abs(cr+Br)===1?cr+=Br:Math.abs(cr-Br)===1&&(cr-=Br)),!(!tr.dem||!$t.dem)&&($t.dem.backfillBorder(tr.dem,cr,ur),$t.neighboringTiles&&$t.neighboringTiles[Jr]&&($t.neighboringTiles[Jr].backfilled=!0)))}},te.prototype.getTile=function(se){return this.getTileByID(se.key)},te.prototype.getTileByID=function(se){return this._tiles[se]},te.prototype._retainLoadedChildren=function(se,ye,He,Qe){for(var pt in this._tiles){var kt=this._tiles[pt];if(!(Qe[pt]||!kt.hasData()||kt.tileID.overscaledZ<=ye||kt.tileID.overscaledZ>He)){for(var $t=kt.tileID;kt&&kt.tileID.overscaledZ>ye+1;){var tr=kt.tileID.scaledTo(kt.tileID.overscaledZ-1);kt=this._tiles[tr.key],kt&&kt.hasData()&&($t=tr)}for(var cr=$t;cr.overscaledZ>ye;)if(cr=cr.scaledTo(cr.overscaledZ-1),se[cr.key]){Qe[$t.key]=$t;break}}}},te.prototype.findLoadedParent=function(se,ye){if(se.key in this._loadedParentTiles){var He=this._loadedParentTiles[se.key];return He&&He.tileID.overscaledZ>=ye?He:null}for(var Qe=se.overscaledZ-1;Qe>=ye;Qe--){var pt=se.scaledTo(Qe),kt=this._getLoadedTile(pt);if(kt)return kt}},te.prototype._getLoadedTile=function(se){var ye=this._tiles[se.key];if(ye&&ye.hasData())return ye;var He=this._cache.getByKey(se.wrapped().key);return He},te.prototype.updateCacheSize=function(se){var ye=Math.ceil(se.width/this._source.tileSize)+1,He=Math.ceil(se.height/this._source.tileSize)+1,Qe=ye*He,pt=5,kt=Math.floor(Qe*pt),$t=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,kt):kt;this._cache.setMaxSize($t)},te.prototype.handleWrapJump=function(se){var ye=this._prevLng===void 0?se:this._prevLng,He=se-ye,Qe=He/360,pt=Math.round(Qe);if(this._prevLng=se,pt){var kt={};for(var $t in this._tiles){var tr=this._tiles[$t];tr.tileID=tr.tileID.unwrapTo(tr.tileID.wrap+pt),kt[tr.tileID.key]=tr}this._tiles=kt;for(var cr in this._timers)clearTimeout(this._timers[cr]),delete this._timers[cr];for(var ur in this._tiles){var Br=this._tiles[ur];this._setTileReloadTimer(ur,Br)}}},te.prototype.update=function(se){var ye=this;if(this.transform=se,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(se),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var He;this.used?this._source.tileID?He=se.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(wa){return new i.OverscaledTileID(wa.canonical.z,wa.wrap,wa.canonical.z,wa.canonical.x,wa.canonical.y)}):(He=se.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(He=He.filter(function(wa){return ye._source.hasTile(wa)}))):He=[];var Qe=se.coveringZoomLevel(this._source),pt=Math.max(Qe-te.maxOverzooming,this._source.minzoom),kt=Math.max(Qe+te.maxUnderzooming,this._source.minzoom),$t=this._updateRetainedTiles(He,Qe);if(er(this._source.type)){for(var tr={},cr={},ur=Object.keys($t),Br=0,Jr=ur;Brthis._source.maxzoom){var mn=Yr.children(this._source.maxzoom)[0],Vn=this.getTile(mn);if(Vn&&Vn.hasData()){He[mn.key]=mn;continue}}else{var Yn=Yr.children(this._source.maxzoom);if(He[Yn[0].key]&&He[Yn[1].key]&&He[Yn[2].key]&&He[Yn[3].key])continue}for(var ra=en.wasRequested(),na=Yr.overscaledZ-1;na>=pt;--na){var Qn=Yr.scaledTo(na);if(Qe[Qn.key]||(Qe[Qn.key]=!0,en=this.getTile(Qn),!en&&ra&&(en=this._addTile(Qn)),en&&(He[Qn.key]=Qn,ra=en.wasRequested(),en.hasData())))break}}}return He},te.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var se in this._tiles){for(var ye=[],He=void 0,Qe=this._tiles[se].tileID;Qe.overscaledZ>0;){if(Qe.key in this._loadedParentTiles){He=this._loadedParentTiles[Qe.key];break}ye.push(Qe.key);var pt=Qe.scaledTo(Qe.overscaledZ-1);if(He=this._getLoadedTile(pt),He)break;Qe=pt}for(var kt=0,$t=ye;kt<$t.length;kt+=1){var tr=$t[kt];this._loadedParentTiles[tr]=He}}},te.prototype._addTile=function(se){var ye=this._tiles[se.key];if(ye)return ye;ye=this._cache.getAndRemove(se),ye&&(this._setTileReloadTimer(se.key,ye),ye.tileID=se,this._state.initializeTileState(ye,this.map?this.map.painter:null),this._cacheTimers[se.key]&&(clearTimeout(this._cacheTimers[se.key]),delete this._cacheTimers[se.key],this._setTileReloadTimer(se.key,ye)));var He=!!ye;return He||(ye=new i.Tile(se,this._source.tileSize*se.overscaleFactor()),this._loadTile(ye,this._tileLoaded.bind(this,ye,se.key,ye.state))),ye?(ye.uses++,this._tiles[se.key]=ye,He||this._source.fire(new i.Event("dataloading",{tile:ye,coord:ye.tileID,dataType:"source"})),ye):null},te.prototype._setTileReloadTimer=function(se,ye){var He=this;se in this._timers&&(clearTimeout(this._timers[se]),delete this._timers[se]);var Qe=ye.getExpiryTimeout();Qe&&(this._timers[se]=setTimeout(function(){He._reloadTile(se,"expired"),delete He._timers[se]},Qe))},te.prototype._removeTile=function(se){var ye=this._tiles[se];ye&&(ye.uses--,delete this._tiles[se],this._timers[se]&&(clearTimeout(this._timers[se]),delete this._timers[se]),!(ye.uses>0)&&(ye.hasData()&&ye.state!=="reloading"?this._cache.add(ye.tileID,ye,ye.getExpiryTimeout()):(ye.aborted=!0,this._abortTile(ye),this._unloadTile(ye))))},te.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var se in this._tiles)this._removeTile(se);this._cache.reset()},te.prototype.tilesIn=function(se,ye,He){var Qe=this,pt=[],kt=this.transform;if(!kt)return pt;for(var $t=He?kt.getCameraQueryGeometry(se):se,tr=se.map(function(na){return kt.pointCoordinate(na)}),cr=$t.map(function(na){return kt.pointCoordinate(na)}),ur=this.getIds(),Br=1/0,Jr=1/0,Kr=-1/0,Yr=-1/0,en=0,mn=cr;en=0&&_a[1].y+wa>=0){var Ea=tr.map(function(Ci){return ia.getTilePoint(Ci)}),ti=cr.map(function(Ci){return ia.getTilePoint(Ci)});pt.push({tile:Qn,tileID:ia,queryGeometry:Ea,cameraQueryGeometry:ti,scale:da})}}},ra=0;ra=i.browser.now())return!0}return!1},te.prototype.setFeatureState=function(se,ye,He){se=se||"_geojsonTileLayer",this._state.updateState(se,ye,He)},te.prototype.removeFeatureState=function(se,ye,He){se=se||"_geojsonTileLayer",this._state.removeFeatureState(se,ye,He)},te.prototype.getFeatureState=function(se,ye){return se=se||"_geojsonTileLayer",this._state.getState(se,ye)},te.prototype.setDependencies=function(se,ye,He){var Qe=this._tiles[se];Qe&&Qe.setDependencies(ye,He)},te.prototype.reloadTilesForDependencies=function(se,ye){for(var He in this._tiles){var Qe=this._tiles[He];Qe.hasDependency(se,ye)&&this._reloadTile(He,"reloading")}this._cache.filter(function(pt){return!pt.hasDependency(se,ye)})},te}(i.Evented);Wt.maxOverzooming=10,Wt.maxUnderzooming=3;function jt(pe,te){var me=Math.abs(pe.wrap*2)-+(pe.wrap<0),se=Math.abs(te.wrap*2)-+(te.wrap<0);return pe.overscaledZ-te.overscaledZ||se-me||te.canonical.y-pe.canonical.y||te.canonical.x-pe.canonical.x}function er(pe){return pe==="raster"||pe==="image"||pe==="video"}function hr(){return new i.window.Worker(fs.workerUrl)}var vr="mapboxgl_preloaded_worker_pool",mr=function(){this.active={}};mr.prototype.acquire=function(te){if(!this.workers)for(this.workers=[];this.workers.length0?(ye-Qe)/pt:0;return this.points[He].mult(1-kt).add(this.points[me].mult(kt))};var Mr=function(te,me,se){var ye=this.boxCells=[],He=this.circleCells=[];this.xCellCount=Math.ceil(te/se),this.yCellCount=Math.ceil(me/se);for(var Qe=0;Qethis.width||ye<0||me>this.height)return He?!1:[];var pt=[];if(te<=0&&me<=0&&this.width<=se&&this.height<=ye){if(He)return!0;for(var kt=0;kt0:pt}},Mr.prototype._queryCircle=function(te,me,se,ye,He){var Qe=te-se,pt=te+se,kt=me-se,$t=me+se;if(pt<0||Qe>this.width||$t<0||kt>this.height)return ye?!1:[];var tr=[],cr={hitTest:ye,circle:{x:te,y:me,radius:se},seenUids:{box:{},circle:{}}};return this._forEachCell(Qe,kt,pt,$t,this._queryCellCircle,tr,cr,He),ye?tr.length>0:tr},Mr.prototype.query=function(te,me,se,ye,He){return this._query(te,me,se,ye,!1,He)},Mr.prototype.hitTest=function(te,me,se,ye,He){return this._query(te,me,se,ye,!0,He)},Mr.prototype.hitTestCircle=function(te,me,se,ye){return this._queryCircle(te,me,se,!0,ye)},Mr.prototype._queryCell=function(te,me,se,ye,He,Qe,pt,kt){var $t=pt.seenUids,tr=this.boxCells[He];if(tr!==null)for(var cr=this.bboxes,ur=0,Br=tr;ur=cr[Kr+0]&&ye>=cr[Kr+1]&&(!kt||kt(this.boxKeys[Jr]))){if(pt.hitTest)return Qe.push(!0),!0;Qe.push({key:this.boxKeys[Jr],x1:cr[Kr],y1:cr[Kr+1],x2:cr[Kr+2],y2:cr[Kr+3]})}}}var Yr=this.circleCells[He];if(Yr!==null)for(var en=this.circles,mn=0,Vn=Yr;mnpt*pt+kt*kt},Mr.prototype._circleAndRectCollide=function(te,me,se,ye,He,Qe,pt){var kt=(Qe-ye)/2,$t=Math.abs(te-(ye+kt));if($t>kt+se)return!1;var tr=(pt-He)/2,cr=Math.abs(me-(He+tr));if(cr>tr+se)return!1;if($t<=kt||cr<=tr)return!0;var ur=$t-kt,Br=cr-tr;return ur*ur+Br*Br<=se*se};function Rr(pe,te,me,se,ye){var He=i.create();return te?(i.scale(He,He,[1/ye,1/ye,1]),me||i.rotateZ(He,He,se.angle)):i.multiply(He,se.labelPlaneMatrix,pe),He}function Zr(pe,te,me,se,ye){if(te){var He=i.clone(pe);return i.scale(He,He,[ye,ye,1]),me||i.rotateZ(He,He,-se.angle),He}else return se.glCoordMatrix}function Wr(pe,te){var me=[pe.x,pe.y,0,1];Cr(me,me,te);var se=me[3];return{point:new i.Point(me[0]/se,me[1]/se),signedDistanceFromCamera:se}}function fn(pe,te){return .5+.5*(pe/te)}function Tn(pe,te){var me=pe[0]/pe[3],se=pe[1]/pe[3],ye=me>=-te[0]&&me<=te[0]&&se>=-te[1]&&se<=te[1];return ye}function Sn(pe,te,me,se,ye,He,Qe,pt){var kt=se?pe.textSizeData:pe.iconSizeData,$t=i.evaluateSizeForZoom(kt,me.transform.zoom),tr=[256/me.width*2+1,256/me.height*2+1],cr=se?pe.text.dynamicLayoutVertexArray:pe.icon.dynamicLayoutVertexArray;cr.clear();for(var ur=pe.lineVertexArray,Br=se?pe.text.placedSymbolArray:pe.icon.placedSymbolArray,Jr=me.transform.width/me.transform.height,Kr=!1,Yr=0;YrHe)return{useVertical:!0}}return(pe===i.WritingMode.vertical?te.yme.x)?{needsFlipping:!0}:null}function ma(pe,te,me,se,ye,He,Qe,pt,kt,$t,tr,cr,ur,Br){var Jr=te/24,Kr=pe.lineOffsetX*Jr,Yr=pe.lineOffsetY*Jr,en;if(pe.numGlyphs>1){var mn=pe.glyphStartIndex+pe.numGlyphs,Vn=pe.lineStartIndex,Yn=pe.lineStartIndex+pe.lineLength,ra=Fn(Jr,pt,Kr,Yr,me,tr,cr,pe,kt,He,ur);if(!ra)return{notEnoughRoom:!0};var na=Wr(ra.first.point,Qe).point,Qn=Wr(ra.last.point,Qe).point;if(se&&!me){var ia=Wn(pe.writingMode,na,Qn,Br);if(ia)return ia}en=[ra.first];for(var da=pe.glyphStartIndex+1;da0?ti.point:Aa(cr,Ea,wa,1,ye),hi=Wn(pe.writingMode,wa,Ci,Br);if(hi)return hi}var Ha=Ia(Jr*pt.getoffsetX(pe.glyphStartIndex),Kr,Yr,me,tr,cr,pe.segment,pe.lineStartIndex,pe.lineStartIndex+pe.lineLength,kt,He,ur);if(!Ha)return{notEnoughRoom:!0};en=[Ha]}for(var mi=0,li=en;mi0?1:-1,Jr=0;se&&(Br*=-1,Jr=Math.PI),Br<0&&(Jr+=Math.PI);for(var Kr=Br>0?pt+Qe:pt+Qe+1,Yr=ye,en=ye,mn=0,Vn=0,Yn=Math.abs(ur),ra=[];mn+Vn<=Yn;){if(Kr+=Br,Kr=kt)return null;if(en=Yr,ra.push(Yr),Yr=cr[Kr],Yr===void 0){var na=new i.Point($t.getx(Kr),$t.gety(Kr)),Qn=Wr(na,tr);if(Qn.signedDistanceFromCamera>0)Yr=cr[Kr]=Qn.point;else{var ia=Kr-Br,da=mn===0?He:new i.Point($t.getx(ia),$t.gety(ia));Yr=Aa(da,na,en,Yn-mn+1,tr)}}mn+=Vn,Vn=en.dist(Yr)}var wa=(Yn-mn)/Vn,_a=Yr.sub(en),Ea=_a.mult(wa)._add(en);Ea._add(_a._unit()._perp()._mult(me*Br));var ti=Jr+Math.atan2(Yr.y-en.y,Yr.x-en.x);return ra.push(Ea),{point:Ea,angle:ti,path:ra}}var Ta=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ga(pe,te){for(var me=0;me=1;_i--)li.push(Ha.path[_i]);for(var Pi=1;Pi0){for(var ui=li[0].clone(),Ai=li[0].clone(),No=1;No=ti.x&&Ai.x<=Ci.x&&ui.y>=ti.y&&Ai.y<=Ci.y?no=[li]:Ai.xCi.x||Ai.yCi.y?no=[]:no=i.clipLine([li],ti.x,ti.y,Ci.x,Ci.y)}for(var Ts=0,Ou=no;Ts=this.screenRightBoundary||yethis.screenBottomBoundary},nn.prototype.isInsideGrid=function(te,me,se,ye){return se>=0&&te=0&&me0){var Yn;return this.prevPlacement&&this.prevPlacement.variableOffsets[ur.crossTileID]&&this.prevPlacement.placements[ur.crossTileID]&&this.prevPlacement.placements[ur.crossTileID].text&&(Yn=this.prevPlacement.variableOffsets[ur.crossTileID].anchor),this.variableOffsets[ur.crossTileID]={textOffset:Yr,width:se,height:ye,anchor:te,textBoxScale:He,prevAnchor:Yn},this.markUsedJustification(Br,te,ur,Jr),Br.allowVerticalPlacement&&(this.markUsedOrientation(Br,Jr,ur),this.placedOrientations[ur.crossTileID]=Jr),{shift:en,placedGlyphBoxes:mn}}},Ur.prototype.placeLayerBucketPart=function(te,me,se){var ye=this,He=te.parameters,Qe=He.bucket,pt=He.layout,kt=He.posMatrix,$t=He.textLabelPlaneMatrix,tr=He.labelToScreenMatrix,cr=He.textPixelRatio,ur=He.holdingForFade,Br=He.collisionBoxArray,Jr=He.partiallyEvaluatedTextSize,Kr=He.collisionGroup,Yr=pt.get("text-optional"),en=pt.get("icon-optional"),mn=pt.get("text-allow-overlap"),Vn=pt.get("icon-allow-overlap"),Yn=pt.get("text-rotation-alignment")==="map",ra=pt.get("text-pitch-alignment")==="map",na=pt.get("icon-text-fit")!=="none",Qn=pt.get("symbol-z-order")==="viewport-y",ia=mn&&(Vn||!Qe.hasIconData()||en),da=Vn&&(mn||!Qe.hasTextData()||Yr);!Qe.collisionArrays&&Br&&Qe.deserializeCollisionBoxes(Br);var wa=function(Ha,mi){if(!me[Ha.crossTileID]){if(ur){ye.placements[Ha.crossTileID]=new Rn(!1,!1,!1);return}var li=!1,_i=!1,Pi=!0,fo=null,Si={box:null,offscreen:null},no={box:null,offscreen:null},ui=null,Ai=null,No=null,Ts=0,Ou=0,Fu=0;mi.textFeatureIndex?Ts=mi.textFeatureIndex:Ha.useRuntimeCollisionCircles&&(Ts=Ha.featureIndex),mi.verticalTextFeatureIndex&&(Ou=mi.verticalTextFeatureIndex);var fc=mi.textBox;if(fc){var Jc=function($o){var Gl=i.WritingMode.horizontal;if(Qe.allowVerticalPlacement&&!$o&&ye.prevPlacement){var Wl=ye.prevPlacement.placedOrientations[Ha.crossTileID];Wl&&(ye.placedOrientations[Ha.crossTileID]=Wl,Gl=Wl,ye.markUsedOrientation(Qe,Gl,Ha))}return Gl},_h=function($o,Gl){if(Qe.allowVerticalPlacement&&Ha.numVerticalGlyphVertices>0&&mi.verticalTextBox)for(var Wl=0,Og=Qe.writingModes;Wl0&&(jl=jl.filter(function($o){return $o!==Cl.anchor}),jl.unshift(Cl.anchor))}var dc=function($o,Gl,Wl){for(var Og=$o.x2-$o.x1,e1=$o.y2-$o.y1,uS=Ha.textBoxScale,cS=na&&!Vn?Gl:null,S0={box:[],offscreen:!1},fS=mn?jl.length*2:jl.length,Fg=0;Fg=jl.length,t1=ye.attemptAnchorPlacement(dS,$o,Og,e1,uS,Yn,ra,cr,kt,Kr,hS,Ha,Qe,Wl,cS);if(t1&&(S0=t1.placedGlyphBoxes,S0&&S0.box&&S0.box.length)){li=!0,fo=t1.shift;break}}return S0},td=function(){return dc(fc,mi.iconBox,i.WritingMode.horizontal)},hc=function(){var $o=mi.verticalTextBox,Gl=Si&&Si.box&&Si.box.length;return Qe.allowVerticalPlacement&&!Gl&&Ha.numVerticalGlyphVertices>0&&$o?dc($o,mi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};_h(td,hc),Si&&(li=Si.box,Pi=Si.offscreen);var Lg=Jc(Si&&Si.box);if(!li&&ye.prevPlacement){var Wv=ye.prevPlacement.variableOffsets[Ha.crossTileID];Wv&&(ye.variableOffsets[Ha.crossTileID]=Wv,ye.markUsedJustification(Qe,Wv.anchor,Ha,Lg))}}else{var Qc=function($o,Gl){var Wl=ye.collisionIndex.placeCollisionBox($o,mn,cr,kt,Kr.predicate);return Wl&&Wl.box&&Wl.box.length&&(ye.markUsedOrientation(Qe,Gl,Ha),ye.placedOrientations[Ha.crossTileID]=Gl),Wl},Sl=function(){return Qc(fc,i.WritingMode.horizontal)},qc=function(){var $o=mi.verticalTextBox;return Qe.allowVerticalPlacement&&Ha.numVerticalGlyphVertices>0&&$o?Qc($o,i.WritingMode.vertical):{box:null,offscreen:null}};_h(Sl,qc),Jc(Si&&Si.box&&Si.box.length)}}if(ui=Si,li=ui&&ui.box&&ui.box.length>0,Pi=ui&&ui.offscreen,Ha.useRuntimeCollisionCircles){var ks=Qe.text.placedSymbolArray.get(Ha.centerJustifiedTextSymbolIndex),Ig=i.evaluateSizeForFeature(Qe.textSizeData,Jr,ks),T0=pt.get("text-padding"),il=Ha.collisionCircleDiameter;Ai=ye.collisionIndex.placeCollisionCircles(mn,ks,Qe.lineVertexArray,Qe.glyphOffsetArray,Ig,kt,$t,tr,se,ra,Kr.predicate,il,T0),li=mn||Ai.circles.length>0&&!Ai.collisionDetected,Pi=Pi&&Ai.offscreen}if(mi.iconFeatureIndex&&(Fu=mi.iconFeatureIndex),mi.iconBox){var $v=function($o){var Gl=na&&fo?Pr($o,fo.x,fo.y,Yn,ra,ye.transform.angle):$o;return ye.collisionIndex.placeCollisionBox(Gl,Vn,cr,kt,Kr.predicate)};no&&no.box&&no.box.length&&mi.verticalIconBox?(No=$v(mi.verticalIconBox),_i=No.box.length>0):(No=$v(mi.iconBox),_i=No.box.length>0),Pi=Pi&&No.offscreen}var Rg=Yr||Ha.numHorizontalGlyphVertices===0&&Ha.numVerticalGlyphVertices===0,kg=en||Ha.numIconVertices===0;if(!Rg&&!kg?_i=li=_i&&li:kg?Rg||(_i=_i&&li):li=_i&&li,li&&ui&&ui.box&&(no&&no.box&&Ou?ye.collisionIndex.insertCollisionBox(ui.box,pt.get("text-ignore-placement"),Qe.bucketInstanceId,Ou,Kr.ID):ye.collisionIndex.insertCollisionBox(ui.box,pt.get("text-ignore-placement"),Qe.bucketInstanceId,Ts,Kr.ID)),_i&&No&&ye.collisionIndex.insertCollisionBox(No.box,pt.get("icon-ignore-placement"),Qe.bucketInstanceId,Fu,Kr.ID),Ai&&(li&&ye.collisionIndex.insertCollisionCircles(Ai.circles,pt.get("text-ignore-placement"),Qe.bucketInstanceId,Ts,Kr.ID),se)){var Dg=Qe.bucketInstanceId,Yv=ye.collisionCircleArrays[Dg];Yv===void 0&&(Yv=ye.collisionCircleArrays[Dg]=new Xn);for(var Xv=0;Xv=0;--Ea){var ti=_a[Ea];wa(Qe.symbolInstances.get(ti),Qe.collisionArrays[ti])}else for(var Ci=te.symbolInstanceStart;Ci=0&&(Qe>=0&&tr!==Qe?te.text.placedSymbolArray.get(tr).crossTileID=0:te.text.placedSymbolArray.get(tr).crossTileID=se.crossTileID)}},Ur.prototype.markUsedOrientation=function(te,me,se){for(var ye=me===i.WritingMode.horizontal||me===i.WritingMode.horizontalOnly?me:0,He=me===i.WritingMode.vertical?me:0,Qe=[se.leftJustifiedTextSymbolIndex,se.centerJustifiedTextSymbolIndex,se.rightJustifiedTextSymbolIndex],pt=0,kt=Qe;pt0||ra>0,wa=Vn.numIconVertices>0,_a=ye.placedOrientations[Vn.crossTileID],Ea=_a===i.WritingMode.vertical,ti=_a===i.WritingMode.horizontal||_a===i.WritingMode.horizontalOnly;if(da){var Ci=$r(ia.text),hi=Ea?rn:Ci;Jr(te.text,Yn,hi);var Ha=ti?rn:Ci;Jr(te.text,ra,Ha);var mi=ia.text.isHidden();[Vn.rightJustifiedTextSymbolIndex,Vn.centerJustifiedTextSymbolIndex,Vn.leftJustifiedTextSymbolIndex].forEach(function(Fu){Fu>=0&&(te.text.placedSymbolArray.get(Fu).hidden=mi||Ea?1:0)}),Vn.verticalPlacedTextSymbolIndex>=0&&(te.text.placedSymbolArray.get(Vn.verticalPlacedTextSymbolIndex).hidden=mi||ti?1:0);var li=ye.variableOffsets[Vn.crossTileID];li&&ye.markUsedJustification(te,li.anchor,Vn,_a);var _i=ye.placedOrientations[Vn.crossTileID];_i&&(ye.markUsedJustification(te,"left",Vn,_i),ye.markUsedOrientation(te,_i,Vn))}if(wa){var Pi=$r(ia.icon),fo=!(ur&&Vn.verticalPlacedIconSymbolIndex&&Ea);if(Vn.placedIconSymbolIndex>=0){var Si=fo?Pi:rn;Jr(te.icon,Vn.numIconVertices,Si),te.icon.placedSymbolArray.get(Vn.placedIconSymbolIndex).hidden=ia.icon.isHidden()}if(Vn.verticalPlacedIconSymbolIndex>=0){var no=fo?rn:Pi;Jr(te.icon,Vn.numVerticalIconVertices,no),te.icon.placedSymbolArray.get(Vn.verticalPlacedIconSymbolIndex).hidden=ia.icon.isHidden()}}if(te.hasIconCollisionBoxData()||te.hasTextCollisionBoxData()){var ui=te.collisionArrays[mn];if(ui){var Ai=new i.Point(0,0);if(ui.textBox||ui.verticalTextBox){var No=!0;if($t){var Ts=ye.variableOffsets[na];Ts?(Ai=Qa(Ts.anchor,Ts.width,Ts.height,Ts.textOffset,Ts.textBoxScale),tr&&Ai._rotate(cr?ye.transform.angle:-ye.transform.angle)):No=!1}ui.textBox&&Ar(te.textCollisionBox.collisionVertexArray,ia.text.placed,!No||Ea,Ai.x,Ai.y),ui.verticalTextBox&&Ar(te.textCollisionBox.collisionVertexArray,ia.text.placed,!No||ti,Ai.x,Ai.y)}var Ou=!!(!ti&&ui.verticalIconBox);ui.iconBox&&Ar(te.iconCollisionBox.collisionVertexArray,ia.icon.placed,Ou,ur?Ai.x:0,ur?Ai.y:0),ui.verticalIconBox&&Ar(te.iconCollisionBox.collisionVertexArray,ia.icon.placed,!Ou,ur?Ai.x:0,ur?Ai.y:0)}}},Yr=0;Yrte},Ur.prototype.setStale=function(){this.stale=!0};function Ar(pe,te,me,se,ye){pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0),pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0),pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0),pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0)}var Vr=Math.pow(2,25),An=Math.pow(2,24),Hn=Math.pow(2,17),xn=Math.pow(2,16),vn=Math.pow(2,9),Lr=Math.pow(2,8),Qr=Math.pow(2,1);function $r(pe){if(pe.opacity===0&&!pe.placed)return 0;if(pe.opacity===1&&pe.placed)return 4294967295;var te=pe.placed?1:0,me=Math.floor(pe.opacity*127);return me*Vr+te*An+me*Hn+te*xn+me*vn+te*Lr+me*Qr+te}var rn=0,Pn=function(te){this._sortAcrossTiles=te.layout.get("symbol-z-order")!=="viewport-y"&&te.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pn.prototype.continuePlacement=function(te,me,se,ye,He){for(var Qe=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var pt=te[this._currentPlacementIndex],kt=me[pt],$t=this.placement.collisionIndex.transform.zoom;if(kt.type==="symbol"&&(!kt.minzoom||kt.minzoom<=$t)&&(!kt.maxzoom||kt.maxzoom>$t)){this._inProgressLayer||(this._inProgressLayer=new Pn(kt));var tr=this._inProgressLayer.continuePlacement(se[kt.source],this.placement,this._showCollisionBoxes,kt,Qe);if(tr)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},zn.prototype.commit=function(te){return this.placement.commit(te),this.placement};var Bn=512/i.EXTENT/2,Zn=function(te,me,se){this.tileID=te,this.indexedSymbolInstances={},this.bucketInstanceId=se;for(var ye=0;yete.overscaledZ)for(var $t in kt){var tr=kt[$t];tr.tileID.isChildOf(te)&&tr.findMatches(me.symbolInstances,te,Qe)}else{var cr=te.scaledTo(Number(pt)),ur=kt[cr.key];ur&&ur.findMatches(me.symbolInstances,te,Qe)}}for(var Br=0;Br0)throw new Error("Unimplemented: "+Qe.map(function(pt){return pt.command}).join(", ")+".");return He.forEach(function(pt){pt.command!=="setTransition"&&ye[pt.command].apply(ye,pt.args)}),this.stylesheet=se,!0},te.prototype.addImage=function(se,ye){if(this.getImage(se))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(se,ye),this._afterImageUpdated(se)},te.prototype.updateImage=function(se,ye){this.imageManager.updateImage(se,ye)},te.prototype.getImage=function(se){return this.imageManager.getImage(se)},te.prototype.removeImage=function(se){if(!this.getImage(se))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(se),this._afterImageUpdated(se)},te.prototype._afterImageUpdated=function(se){this._availableImages=this.imageManager.listImages(),this._changedImages[se]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},te.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},te.prototype.addSource=function(se,ye,He){var Qe=this;if(He===void 0&&(He={}),this._checkLoaded(),this.sourceCaches[se]!==void 0)throw new Error("There is already a source with this ID");if(!ye.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ye).join(", ")+".");var pt=["vector","raster","geojson","video","image"],kt=pt.indexOf(ye.type)>=0;if(!(kt&&this._validate(i.validateStyle.source,"sources."+se,ye,null,He))){this.map&&this.map._collectResourceTiming&&(ye.collectResourceTiming=!0);var $t=this.sourceCaches[se]=new Wt(se,ye,this.dispatcher);$t.style=this,$t.setEventedParent(this,function(){return{isSourceLoaded:Qe.loaded(),source:$t.serialize(),sourceId:se}}),$t.onAdd(this.map),this._changed=!0}},te.prototype.removeSource=function(se){if(this._checkLoaded(),this.sourceCaches[se]===void 0)throw new Error("There is no source with this ID");for(var ye in this._layers)if(this._layers[ye].source===se)return this.fire(new i.ErrorEvent(new Error('Source "'+se+'" cannot be removed while layer "'+ye+'" is using it.')));var He=this.sourceCaches[se];delete this.sourceCaches[se],delete this._updatedSources[se],He.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:se})),He.setEventedParent(null),He.clearTiles(),He.onRemove&&He.onRemove(this.map),this._changed=!0},te.prototype.setGeoJSONSourceData=function(se,ye){this._checkLoaded();var He=this.sourceCaches[se].getSource();He.setData(ye),this._changed=!0},te.prototype.getSource=function(se){return this.sourceCaches[se]&&this.sourceCaches[se].getSource()},te.prototype.addLayer=function(se,ye,He){He===void 0&&(He={}),this._checkLoaded();var Qe=se.id;if(this.getLayer(Qe)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+Qe+'" already exists on this map')));return}var pt;if(se.type==="custom"){if(Ra(this,i.validateCustomStyleLayer(se)))return;pt=i.createStyleLayer(se)}else{if(typeof se.source=="object"&&(this.addSource(Qe,se.source),se=i.clone$1(se),se=i.extend(se,{source:Qe})),this._validate(i.validateStyle.layer,"layers."+Qe,se,{arrayIndex:-1},He))return;pt=i.createStyleLayer(se),this._validateLayer(pt),pt.setEventedParent(this,{layer:{id:Qe}}),this._serializedLayers[pt.id]=pt.serialize()}var kt=ye?this._order.indexOf(ye):this._order.length;if(ye&&kt===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ye+'" does not exist on this map.')));return}if(this._order.splice(kt,0,Qe),this._layerOrderChanged=!0,this._layers[Qe]=pt,this._removedLayers[Qe]&&pt.source&&pt.type!=="custom"){var $t=this._removedLayers[Qe];delete this._removedLayers[Qe],$t.type!==pt.type?this._updatedSources[pt.source]="clear":(this._updatedSources[pt.source]="reload",this.sourceCaches[pt.source].pause())}this._updateLayer(pt),pt.onAdd&&pt.onAdd(this.map)},te.prototype.moveLayer=function(se,ye){this._checkLoaded(),this._changed=!0;var He=this._layers[se];if(!He){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be moved.")));return}if(se!==ye){var Qe=this._order.indexOf(se);this._order.splice(Qe,1);var pt=ye?this._order.indexOf(ye):this._order.length;if(ye&&pt===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ye+'" does not exist on this map.')));return}this._order.splice(pt,0,se),this._layerOrderChanged=!0}},te.prototype.removeLayer=function(se){this._checkLoaded();var ye=this._layers[se];if(!ye){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be removed.")));return}ye.setEventedParent(null);var He=this._order.indexOf(se);this._order.splice(He,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[se]=ye,delete this._layers[se],delete this._serializedLayers[se],delete this._updatedLayers[se],delete this._updatedPaintProps[se],ye.onRemove&&ye.onRemove(this.map)},te.prototype.getLayer=function(se){return this._layers[se]},te.prototype.hasLayer=function(se){return se in this._layers},te.prototype.setLayerZoomRange=function(se,ye,He){this._checkLoaded();var Qe=this.getLayer(se);if(!Qe){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot have zoom extent.")));return}Qe.minzoom===ye&&Qe.maxzoom===He||(ye!=null&&(Qe.minzoom=ye),He!=null&&(Qe.maxzoom=He),this._updateLayer(Qe))},te.prototype.setFilter=function(se,ye,He){He===void 0&&(He={}),this._checkLoaded();var Qe=this.getLayer(se);if(!Qe){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(Qe.filter,ye)){if(ye==null){Qe.filter=void 0,this._updateLayer(Qe);return}this._validate(i.validateStyle.filter,"layers."+Qe.id+".filter",ye,null,He)||(Qe.filter=i.clone$1(ye),this._updateLayer(Qe))}},te.prototype.getFilter=function(se){return i.clone$1(this.getLayer(se).filter)},te.prototype.setLayoutProperty=function(se,ye,He,Qe){Qe===void 0&&(Qe={}),this._checkLoaded();var pt=this.getLayer(se);if(!pt){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(pt.getLayoutProperty(ye),He)||(pt.setLayoutProperty(ye,He,Qe),this._updateLayer(pt))},te.prototype.getLayoutProperty=function(se,ye){var He=this.getLayer(se);if(!He){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style.")));return}return He.getLayoutProperty(ye)},te.prototype.setPaintProperty=function(se,ye,He,Qe){Qe===void 0&&(Qe={}),this._checkLoaded();var pt=this.getLayer(se);if(!pt){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(pt.getPaintProperty(ye),He)){var kt=pt.setPaintProperty(ye,He,Qe);kt&&this._updateLayer(pt),this._changed=!0,this._updatedPaintProps[se]=!0}},te.prototype.getPaintProperty=function(se,ye){return this.getLayer(se).getPaintProperty(ye)},te.prototype.setFeatureState=function(se,ye){this._checkLoaded();var He=se.source,Qe=se.sourceLayer,pt=this.sourceCaches[He];if(pt===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+He+"' does not exist in the map's style.")));return}var kt=pt.getSource().type;if(kt==="geojson"&&Qe){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(kt==="vector"&&!Qe){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}se.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),pt.setFeatureState(Qe,se.id,ye)},te.prototype.removeFeatureState=function(se,ye){this._checkLoaded();var He=se.source,Qe=this.sourceCaches[He];if(Qe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+He+"' does not exist in the map's style.")));return}var pt=Qe.getSource().type,kt=pt==="vector"?se.sourceLayer:void 0;if(pt==="vector"&&!kt){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(ye&&typeof se.id!="string"&&typeof se.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Qe.removeFeatureState(kt,se.id,ye)},te.prototype.getFeatureState=function(se){this._checkLoaded();var ye=se.source,He=se.sourceLayer,Qe=this.sourceCaches[ye];if(Qe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ye+"' does not exist in the map's style.")));return}var pt=Qe.getSource().type;if(pt==="vector"&&!He){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return se.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Qe.getFeatureState(He,se.id)},te.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},te.prototype.serialize=function(){return i.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:i.mapObject(this.sourceCaches,function(se){return se.serialize()}),layers:this._serializeLayers(this._order)},function(se){return se!==void 0})},te.prototype._updateLayer=function(se){this._updatedLayers[se.id]=!0,se.source&&!this._updatedSources[se.source]&&this.sourceCaches[se.source].getSource().type!=="raster"&&(this._updatedSources[se.source]="reload",this.sourceCaches[se.source].pause()),this._changed=!0},te.prototype._flattenAndSortRenderedFeatures=function(se){for(var ye=this,He=function(ti){return ye._layers[ti].type==="fill-extrusion"},Qe={},pt=[],kt=this._order.length-1;kt>=0;kt--){var $t=this._order[kt];if(He($t)){Qe[$t]=kt;for(var tr=0,cr=se;tr=0;mn--){var Vn=this._order[mn];if(He(Vn))for(var Yn=pt.length-1;Yn>=0;Yn--){var ra=pt[Yn].feature;if(Qe[ra.layer.id]24?(isFinite(De)&&(clearTimeout(Tn),Tn=setTimeout(Yn,De)),fn=0):(fn=1,wn(Yn))}i.timer.flush=function(){ga(),Ia()};function ga(){for(var ve=Date.now(),De=Zr;De;)ve>=De.t&&De.c(ve-De.t)&&(De.c=null),De=De.n;return ve}function Ia(){for(var ve,De=Zr,je=1/0;De;)De.c?(De.t=0;--Et)Or.push(ct[Zt[Ir[Et]][2]]);for(Et=+tn;Et1&&It(ve[je[it-2]],ve[je[it-1]],ve[ct])<=0;)--it;je[it++]=ct}return je.slice(0,it)}function Mr(ve,De){return ve[0]-De[0]||ve[1]-De[1]}i.geom.polygon=function(ve){return oe(ve,cn),ve};var cn=i.geom.polygon.prototype=[];cn.area=function(){for(var ve=-1,De=this.length,je,it=this[De-1],ct=0;++vewe)Et=Et.L;else if(Dt=De-vn(Et,je),Dt>we){if(!Et.R){it=Et;break}Et=Et.R}else{gt>-we?(it=Et.P,ct=Et):Dt>-we?(it=Et,ct=Et.N):it=ct=Et;break}var Yt=Ar(ve);if(Xn.insert(it,Yt),!(!it&&!ct)){if(it===ct){_n(it),ct=Ar(it.site),Xn.insert(Yt,ct),Yt.edge=ct.edge=xa(it.site,Yt.site),Pn(it),Pn(ct);return}if(!ct){Yt.edge=xa(it.site,Yt.site);return}_n(it),_n(ct);var Zt=it.site,nr=Zt.x,Ir=Zt.y,Rr=ve.x-nr,tn=ve.y-Ir,dn=ct.site,Or=dn.x-nr,Gr=dn.y-Ir,qr=2*(Rr*Gr-tn*Or),gn=Rr*Rr+tn*tn,xn=Or*Or+Gr*Gr,an={x:(Gr*gn-tn*xn)/qr+nr,y:(Rr*xn-Or*gn)/qr+Ir};$a(ct.edge,Zt,dn,an),Yt.edge=xa(Zt,ve,null,an),ct.edge=xa(ve,dn,null,an),Pn(it),Pn(ct)}}function yn(ve,De){var je=ve.site,it=je.x,ct=je.y,gt=ct-De;if(!gt)return it;var Dt=ve.P;if(!Dt)return-1/0;je=Dt.site;var Et=je.x,Yt=je.y,Zt=Yt-De;if(!Zt)return Et;var nr=Et-it,Ir=1/gt-1/Zt,Rr=nr/Zt;return Ir?(-Rr+Math.sqrt(Rr*Rr-2*Ir*(nr*nr/(-2*Zt)-Yt+Zt/2+ct-gt/2)))/Ir+it:(it+Et)/2}function vn(ve,De){var je=ve.N;if(je)return yn(je,De);var it=ve.site;return it.y===De?it.x:1/0}function Lr(ve){this.site=ve,this.edges=[]}Lr.prototype.prepare=function(){for(var ve=this.edges,De=ve.length,je;De--;)je=ve[De].edge,(!je.b||!je.a)&&ve.splice(De,1);return ve.sort($r),ve.length};function Qr(ve){for(var De=ve[0][0],je=ve[1][0],it=ve[0][1],ct=ve[1][1],gt,Dt,Et,Yt,Zt=Rn,nr=Zt.length,Ir,Rr,tn,dn,Or,Gr;nr--;)if(Ir=Zt[nr],!(!Ir||!Ir.prepare()))for(tn=Ir.edges,dn=tn.length,Rr=0;Rrwe||y(Yt-Dt)>we)&&(tn.splice(Rr,0,new qi(Ra(Ir.site,Gr,y(Et-De)we?{x:De,y:y(gt-De)we?{x:y(Dt-ct)we?{x:je,y:y(gt-je)we?{x:y(Dt-it)=-Re)){var Rr=Yt*Yt+Zt*Zt,tn=nr*nr+Gr*Gr,dn=(Gr*Rr-Zt*tn)/Ir,Or=(Yt*tn-nr*Rr)/Ir,Gr=Or+Et,qr=Pr.pop()||new rn;qr.arc=ve,qr.site=ct,qr.x=dn+Dt,qr.y=Gr+Math.sqrt(dn*dn+Or*Or),qr.cy=Gr,ve.circle=qr;for(var gn=null,xn=Qa._;xn;)if(qr.y0)){if(Or/=tn,tn<0){if(Or0){if(Or>Rr)return;Or>Ir&&(Ir=Or)}if(Or=je-Et,!(!tn&&Or<0)){if(Or/=tn,tn<0){if(Or>Rr)return;Or>Ir&&(Ir=Or)}else if(tn>0){if(Or0)){if(Or/=dn,dn<0){if(Or0){if(Or>Rr)return;Or>Ir&&(Ir=Or)}if(Or=it-Yt,!(!dn&&Or<0)){if(Or/=dn,dn<0){if(Or>Rr)return;Or>Ir&&(Ir=Or)}else if(dn>0){if(Or0&&(ct.a={x:Et+Ir*tn,y:Yt+Ir*dn}),Rr<1&&(ct.b={x:Et+Rr*tn,y:Yt+Rr*dn}),ct}}}}}}function Zn(ve){for(var De=In,je=zn(ve[0][0],ve[0][1],ve[1][0],ve[1][1]),it=De.length,ct;it--;)ct=De[it],(!Wn(ct,ve)||!je(ct)||y(ct.a.x-ct.b.x)=gt)return;if(nr>Rr){if(!it)it={x:dn,y:Dt};else if(it.y>=Et)return;je={x:dn,y:Et}}else{if(!it)it={x:dn,y:Et};else if(it.y1)if(nr>Rr){if(!it)it={x:(Dt-qr)/Gr,y:Dt};else if(it.y>=Et)return;je={x:(Et-qr)/Gr,y:Et}}else{if(!it)it={x:(Et-qr)/Gr,y:Et};else if(it.y=gt)return;je={x:gt,y:Gr*gt+qr}}else{if(!it)it={x:gt,y:Gr*gt+qr};else if(it.x=nr&&qr.x<=Rr&&qr.y>=Ir&&qr.y<=tn?[[nr,tn],[Rr,tn],[Rr,Ir],[nr,Ir]]:[];gn.point=Yt[Or]}),Zt}function Et(Yt){return Yt.map(function(Zt,nr){return{x:Math.round(it(Zt,nr)/we)*we,y:Math.round(ct(Zt,nr)/we)*we,i:nr}})}return Dt.links=function(Yt){return mh(Et(Yt)).edges.filter(function(Zt){return Zt.l&&Zt.r}).map(function(Zt){return{source:Yt[Zt.l.i],target:Yt[Zt.r.i]}})},Dt.triangles=function(Yt){var Zt=[];return mh(Et(Yt)).cells.forEach(function(nr,Ir){for(var Rr=nr.site,tn=nr.edges.sort($r),dn=-1,Or=tn.length,Gr,qr=tn[Or-1].edge,gn=qr.l===Rr?qr.r:qr.l;++dnxn&&(xn=nr.x),nr.y>an&&(an=nr.y),tn.push(nr.x),dn.push(nr.y);else for(Or=0;Orxn&&(xn=Kn),fa>an&&(an=fa),tn.push(Kn),dn.push(fa)}var Ta=xn-qr,ua=an-gn;Ta>ua?an=gn+Ta:xn=qr+ua;function ya(Va,ei,Oi,Oo,Hi,sa,si,Ua){if(!(isNaN(Oi)||isNaN(Oo)))if(Va.leaf){var xi=Va.x,so=Va.y;if(xi!=null)if(y(xi-Oi)+y(so-Oo)<.01)Sa(Va,ei,Oi,Oo,Hi,sa,si,Ua);else{var Fi=Va.point;Va.x=Va.y=Va.point=null,Sa(Va,Fi,xi,so,Hi,sa,si,Ua),Sa(Va,ei,Oi,Oo,Hi,sa,si,Ua)}else Va.x=Oi,Va.y=Oo,Va.point=ei}else Sa(Va,ei,Oi,Oo,Hi,sa,si,Ua)}function Sa(Va,ei,Oi,Oo,Hi,sa,si,Ua){var xi=(Hi+si)*.5,so=(sa+Ua)*.5,Fi=Oi>=xi,ns=Oo>=so,as=ns<<1|Fi;Va.leaf=!1,Va=Va.nodes[as]||(Va.nodes[as]=Rs()),Fi?Hi=xi:si=xi,ns?sa=so:Ua=so,ya(Va,ei,Oi,Oo,Hi,sa,si,Ua)}var ai=Rs();if(ai.add=function(Va){ya(ai,Va,+Ir(Va,++Or),+Rr(Va,Or),qr,gn,xn,an)},ai.visit=function(Va){Oc(Va,ai,qr,gn,xn,an)},ai.find=function(Va){return Ed(ai,Va[0],Va[1],qr,gn,xn,an)},Or=-1,De==null){for(;++Orgt||Rr>Dt||tn=Kn,ua=je>=fa,ya=ua<<1|Ta,Sa=ya+4;yaje&&(gt=De.slice(je,gt),Et[Dt]?Et[Dt]+=gt:Et[++Dt]=gt),(it=it[0])===(ct=ct[0])?Et[Dt]?Et[Dt]+=ct:Et[++Dt]=ct:(Et[++Dt]=null,Yt.push({i:Dt,x:Do(it,ct)})),je=ls.lastIndex;return je=0&&!(it=i.interpolators[je](ve,De)););return it}i.interpolators=[function(ve,De){var je=typeof De;return(je==="string"?bn.has(De.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(De)?Lo:Go:De instanceof Ct?Lo:Array.isArray(De)?Qs:je==="object"&&isNaN(De)?Fc:Do)(ve,De)}],i.interpolateArray=Qs;function Qs(ve,De){var je=[],it=[],ct=ve.length,gt=De.length,Dt=Math.min(ve.length,De.length),Et;for(Et=0;Et=0?ve.slice(0,De):ve,it=De>=0?ve.slice(De+1):"in";return je=Vs.get(je)||xv,it=r0.get(it)||H,Bl(it(je.apply(null,C.call(arguments,1))))};function Bl(ve){return function(De){return De<=0?0:De>=1?1:ve(De)}}function ts(ve){return function(De){return 1-ve(1-De)}}function xh(ve){return function(De){return .5*(De<.5?ve(2*De):2-ve(2-2*De))}}function Mu(ve){return ve*ve}function Nl(ve){return ve*ve*ve}function bh(ve){if(ve<=0)return 0;if(ve>=1)return 1;var De=ve*ve,je=De*ve;return 4*(ve<.5?je:3*(ve-De)+je-.75)}function bv(ve){return function(De){return Math.pow(De,ve)}}function n0(ve){return 1-Math.cos(ve*ot)}function Pd(ve){return Math.pow(2,10*(ve-1))}function a0(ve){return 1-Math.sqrt(1-ve*ve)}function i0(ve,De){var je;return arguments.length<2&&(De=.45),arguments.length?je=De/Ve*Math.asin(1/ve):(ve=1,je=De/4),function(it){return 1+ve*Math.pow(2,-10*it)*Math.sin((it-je)*Ve/De)}}function o0(ve){return ve||(ve=1.70158),function(De){return De*De*((ve+1)*De-ve)}}function wh(ve){return ve<.36363636363636365?7.5625*ve*ve:ve<.7272727272727273?7.5625*(ve-=.5454545454545454)*ve+.75:ve<.9090909090909091?7.5625*(ve-=.8181818181818182)*ve+.9375:7.5625*(ve-=.9545454545454546)*ve+.984375}i.interpolateHcl=s0;function s0(ve,De){ve=i.hcl(ve),De=i.hcl(De);var je=ve.h,it=ve.c,ct=ve.l,gt=De.h-je,Dt=De.c-it,Et=De.l-ct;return isNaN(Dt)&&(Dt=0,it=isNaN(it)?De.c:it),isNaN(gt)?(gt=0,je=isNaN(je)?De.h:je):gt>180?gt-=360:gt<-180&&(gt+=360),function(Yt){return Wt(je+gt*Yt,it+Dt*Yt,ct+Et*Yt)+""}}i.interpolateHsl=l0;function l0(ve,De){ve=i.hsl(ve),De=i.hsl(De);var je=ve.h,it=ve.s,ct=ve.l,gt=De.h-je,Dt=De.s-it,Et=De.l-ct;return isNaN(Dt)&&(Dt=0,it=isNaN(it)?De.s:it),isNaN(gt)?(gt=0,je=isNaN(je)?De.h:je):gt>180?gt-=360:gt<-180&&(gt+=360),function(Yt){return Rt(je+gt*Yt,it+Dt*Yt,ct+Et*Yt)+""}}i.interpolateLab=wv;function wv(ve,De){ve=i.lab(ve),De=i.lab(De);var je=ve.l,it=ve.a,ct=ve.b,gt=De.l-je,Dt=De.a-it,Et=De.b-ct;return function(Yt){return Xe(je+gt*Yt,it+Dt*Yt,ct+Et*Yt)+""}}i.interpolateRound=Tv;function Tv(ve,De){return De-=ve,function(je){return Math.round(ve+De*je)}}i.transform=function(ve){var De=v.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(je){if(je!=null){De.setAttribute("transform",je);var it=De.transform.baseVal.consolidate()}return new nc(it?it.matrix:Sv)})(ve)};function nc(ve){var De=[ve.a,ve.b],je=[ve.c,ve.d],it=_f(De),ct=zc(De,je),gt=_f(zf(je,De,-ct))||0;De[0]*je[1]180?De+=360:De-ve>180&&(ve+=360),it.push({i:je.push(au(je)+"rotate(",null,")")-2,x:Do(ve,De)})):De&&je.push(au(je)+"rotate("+De+")")}function Cv(ve,De,je,it){ve!==De?it.push({i:je.push(au(je)+"skewX(",null,")")-2,x:Do(ve,De)}):De&&je.push(au(je)+"skewX("+De+")")}function Mv(ve,De,je,it){if(ve[0]!==De[0]||ve[1]!==De[1]){var ct=je.push(au(je)+"scale(",null,",",null,")");it.push({i:ct-4,x:Do(ve[0],De[0])},{i:ct-2,x:Do(ve[1],De[1])})}else(De[0]!==1||De[1]!==1)&&je.push(au(je)+"scale("+De+")")}function Id(ve,De){var je=[],it=[];return ve=i.transform(ve),De=i.transform(De),u0(ve.translate,De.translate,je,it),Ld(ve.rotate,De.rotate,je,it),Cv(ve.skew,De.skew,je,it),Mv(ve.scale,De.scale,je,it),ve=De=null,function(ct){for(var gt=-1,Dt=it.length,Et;++gt0?gt=an:(je.c=null,je.t=NaN,je=null,De.end({type:"end",alpha:gt=0})):an>0&&(De.start({type:"start",alpha:gt=an}),je=Nn(ve.tick)),ve):gt},ve.start=function(){var an,Kn=tn.length,fa=dn.length,Ta=it[0],ua=it[1],ya,Sa;for(an=0;an=0;)gt.push(nr=Zt[Yt]),nr.parent=Et,nr.depth=Et.depth+1;je&&(Et.value=0),Et.children=Zt}else je&&(Et.value=+je.call(it,Et,Et.depth)||0),delete Et.children;return js(ct,function(Ir){var Rr,tn;ve&&(Rr=Ir.children)&&Rr.sort(ve),je&&(tn=Ir.parent)&&(tn.value+=Ir.value)}),Dt}return it.sort=function(ct){return arguments.length?(ve=ct,it):ve},it.children=function(ct){return arguments.length?(De=ct,it):De},it.value=function(ct){return arguments.length?(je=ct,it):je},it.revalue=function(ct){return je&&(Hc(ct,function(gt){gt.children&&(gt.value=0)}),js(ct,function(gt){var Dt;gt.children||(gt.value=+je.call(it,gt,gt.depth)||0),(Dt=gt.parent)&&(Dt.value+=gt.value)})),ct},it};function Uc(ve,De){return i.rebind(ve,De,"sort","children","value"),ve.nodes=ve,ve.links=f0,ve}function Hc(ve,De){for(var je=[ve];(ve=je.pop())!=null;)if(De(ve),(ct=ve.children)&&(it=ct.length))for(var it,ct;--it>=0;)je.push(ct[it])}function js(ve,De){for(var je=[ve],it=[];(ve=je.pop())!=null;)if(it.push(ve),(Dt=ve.children)&&(gt=Dt.length))for(var ct=-1,gt,Dt;++ctct&&(ct=Et),it.push(Et)}for(Dt=0;Dtit&&(je=De,it=ct);return je}function Ev(ve){return ve.reduce(yl,0)}function yl(ve,De){return ve+De[1]}i.layout.histogram=function(){var ve=!0,De=Number,je=ic,it=Pv;function ct(gt,Rr){for(var Et=[],Yt=gt.map(De,this),Zt=je.call(this,Yt,Rr),nr=it.call(this,Zt,Yt,Rr),Ir,Rr=-1,tn=Yt.length,dn=nr.length-1,Or=ve?1:1/tn,Gr;++Rr0)for(Rr=-1;++Rr=Zt[0]&&Gr<=Zt[1]&&(Ir=Et[i.bisect(nr,Gr,1,dn)-1],Ir.y+=Or,Ir.push(gt[Rr]));return Et}return ct.value=function(gt){return arguments.length?(De=gt,ct):De},ct.range=function(gt){return arguments.length?(je=un(gt),ct):je},ct.bins=function(gt){return arguments.length?(it=typeof gt=="number"?function(Dt){return Eh(Dt,gt)}:un(gt),ct):it},ct.frequency=function(gt){return arguments.length?(ve=!!gt,ct):ve},ct};function Pv(ve,De){return Eh(ve,Math.ceil(Math.log(De.length)/Math.LN2+1))}function Eh(ve,De){for(var je=-1,it=+ve[0],ct=(ve[1]-it)/De,gt=[];++je<=De;)gt[je]=ct*je+it;return gt}function ic(ve){return[i.min(ve),i.max(ve)]}i.layout.pack=function(){var ve=i.layout.hierarchy().sort(Eu),De=0,je=[1,1],it;function ct(gt,Dt){var Et=ve.call(this,gt,Dt),Yt=Et[0],Zt=je[0],nr=je[1],Ir=it==null?Math.sqrt:typeof it=="function"?it:function(){return it};if(Yt.x=Yt.y=0,js(Yt,function(tn){tn.r=+Ir(tn.value)}),js(Yt,xl),De){var Rr=De*(it?1:Math.max(2*Yt.r/Zt,2*Yt.r/nr))/2;js(Yt,function(tn){tn.r+=Rr}),js(Yt,xl),js(Yt,function(tn){tn.r-=Rr})}return Pu(Yt,Zt/2,nr/2,it?1:1/Math.max(2*Yt.r/Zt,2*Yt.r/nr)),Et}return ct.size=function(gt){return arguments.length?(je=gt,ct):je},ct.radius=function(gt){return arguments.length?(it=gt==null||typeof gt=="function"?gt:+gt,ct):it},ct.padding=function(gt){return arguments.length?(De=+gt,ct):De},Uc(ct,ve)};function Eu(ve,De){return ve.value-De.value}function _d(ve,De){var je=ve._pack_next;ve._pack_next=De,De._pack_prev=ve,De._pack_next=je,je._pack_prev=De}function Io(ve,De){ve._pack_next=De,De._pack_prev=ve}function Uf(ve,De){var je=De.x-ve.x,it=De.y-ve.y,ct=ve.r+De.r;return .999*ct*ct>je*je+it*it}function xl(ve){if(!(De=ve.children)||!(Rr=De.length))return;var De,je=1/0,it=-1/0,ct=1/0,gt=-1/0,Dt,Et,Yt,Zt,nr,Ir,Rr;function tn(an){je=Math.min(an.x-an.r,je),it=Math.max(an.x+an.r,it),ct=Math.min(an.y-an.r,ct),gt=Math.max(an.y+an.r,gt)}if(De.forEach(iu),Dt=De[0],Dt.x=-Dt.r,Dt.y=0,tn(Dt),Rr>1&&(Et=De[1],Et.x=Et.r,Et.y=0,tn(Et),Rr>2))for(Yt=De[2],bl(Dt,Et,Yt),tn(Yt),_d(Dt,Yt),Dt._pack_prev=Yt,_d(Yt,Et),Et=Dt._pack_next,Zt=3;ZtGr.x&&(Gr=Kn),Kn.depth>qr.depth&&(qr=Kn)});var gn=De(Or,Gr)/2-Or.x,xn=je[0]/(Gr.x+De(Gr,Or)/2+gn),an=je[1]/(qr.depth||1);Hc(tn,function(Kn){Kn.x=(Kn.x+gn)*xn,Kn.y=Kn.depth*an})}return Rr}function gt(nr){for(var Ir={A:null,children:[nr]},Rr=[Ir],tn;(tn=Rr.pop())!=null;)for(var dn=tn.children,Or,Gr=0,qr=dn.length;Gr0&&(Hf(h0(Or,nr,Rr),nr,Kn),qr+=Kn,gn+=Kn),xn+=Or.m,qr+=tn.m,an+=Gr.m,gn+=dn.m;Or&&!il(dn)&&(dn.t=Or,dn.m+=xn-gn),tn&&!wl(Gr)&&(Gr.t=tn,Gr.m+=qr-an,Rr=nr)}return Rr}function Zt(nr){nr.x*=je[0],nr.y=nr.depth*je[1]}return ct.separation=function(nr){return arguments.length?(De=nr,ct):De},ct.size=function(nr){return arguments.length?(it=(je=nr)==null?Zt:null,ct):it?null:je},ct.nodeSize=function(nr){return arguments.length?(it=(je=nr)==null?null:Zt,ct):it?je:null},Uc(ct,ve)};function ou(ve,De){return ve.parent==De.parent?1:2}function wl(ve){var De=ve.children;return De.length?De[0]:ve.t}function il(ve){var De=ve.children,je;return(je=De.length)?De[je-1]:ve.t}function Hf(ve,De,je){var it=je/(De.i-ve.i);De.c-=it,De.s+=je,ve.c+=it,De.z+=je,De.m+=je}function d0(ve){for(var De=0,je=0,it=ve.children,ct=it.length,gt;--ct>=0;)gt=it[ct],gt.z+=De,gt.m+=De,De+=gt.s+(je+=gt.c)}function h0(ve,De,je){return ve.a.parent===De.parent?ve.a:je}i.layout.cluster=function(){var ve=i.layout.hierarchy().sort(null).value(null),De=ou,je=[1,1],it=!1;function ct(gt,Dt){var Et=ve.call(this,gt,Dt),Yt=Et[0],Zt,nr=0;js(Yt,function(Or){var Gr=Or.children;Gr&&Gr.length?(Or.x=p0(Gr),Or.y=v0(Gr)):(Or.x=Zt?nr+=De(Or,Zt):0,Or.y=0,Zt=Or)});var Ir=Ph(Yt),Rr=Lv(Yt),tn=Ir.x-De(Ir,Rr)/2,dn=Rr.x+De(Rr,Ir)/2;return js(Yt,it?function(Or){Or.x=(Or.x-Yt.x)*je[0],Or.y=(Yt.y-Or.y)*je[1]}:function(Or){Or.x=(Or.x-tn)/(dn-tn)*je[0],Or.y=(1-(Yt.y?Or.y/Yt.y:1))*je[1]}),Et}return ct.separation=function(gt){return arguments.length?(De=gt,ct):De},ct.size=function(gt){return arguments.length?(it=(je=gt)==null,ct):it?null:je},ct.nodeSize=function(gt){return arguments.length?(it=(je=gt)!=null,ct):it?je:null},Uc(ct,ve)};function v0(ve){return 1+i.max(ve,function(De){return De.y})}function p0(ve){return ve.reduce(function(De,je){return De+je.x},0)/ve.length}function Ph(ve){var De=ve.children;return De&&De.length?Ph(De[0]):ve}function Lv(ve){var De=ve.children,je;return De&&(je=De.length)?Lv(De[je-1]):ve}i.layout.treemap=function(){var ve=i.layout.hierarchy(),De=Math.round,je=[1,1],it=null,ct=Gc,gt=!1,Dt,Et="squarify",Yt=.5*(1+Math.sqrt(5));function Zt(Or,Gr){for(var qr=-1,gn=Or.length,xn,an;++qr0;)gn.push(an=xn[ua-1]),gn.area+=an.area,Et!=="squarify"||(fa=Rr(gn,Ta))<=Kn?(xn.pop(),Kn=fa):(gn.area-=gn.pop().area,tn(gn,Ta,qr,!1),Ta=Math.min(qr.dx,qr.dy),gn.length=gn.area=0,Kn=1/0);gn.length&&(tn(gn,Ta,qr,!0),gn.length=gn.area=0),Gr.forEach(nr)}}function Ir(Or){var Gr=Or.children;if(Gr&&Gr.length){var qr=ct(Or),gn=Gr.slice(),xn,an=[];for(Zt(gn,qr.dx*qr.dy/Or.value),an.area=0;xn=gn.pop();)an.push(xn),an.area+=xn.area,xn.z!=null&&(tn(an,xn.z?qr.dx:qr.dy,qr,!gn.length),an.length=an.area=0);Gr.forEach(Ir)}}function Rr(Or,Gr){for(var qr=Or.area,gn,xn=0,an=1/0,Kn=-1,fa=Or.length;++Knxn&&(xn=gn));return qr*=qr,Gr*=Gr,qr?Math.max(Gr*xn*Yt/qr,qr/(Gr*an*Yt)):1/0}function tn(Or,Gr,qr,gn){var xn=-1,an=Or.length,Kn=qr.x,fa=qr.y,Ta=Gr?De(Or.area/Gr):0,ua;if(Gr==qr.dx){for((gn||Ta>qr.dy)&&(Ta=qr.dy);++xnqr.dx)&&(Ta=qr.dx);++xn1);return ve+De*it*Math.sqrt(-2*Math.log(gt)/gt)}},logNormal:function(){var ve=i.random.normal.apply(i,arguments);return function(){return Math.exp(ve())}},bates:function(ve){var De=i.random.irwinHall(ve);return function(){return De()/ve}},irwinHall:function(ve){return function(){for(var De=0,je=0;je2?Rv:Iv,Zt=it?Bc:pl;return ct=Yt(ve,De,Zt,je),gt=Yt(De,ve,Zt,us),Et}function Et(Yt){return ct(Yt)}return Et.invert=function(Yt){return gt(Yt)},Et.domain=function(Yt){return arguments.length?(ve=Yt.map(Number),Dt()):ve},Et.range=function(Yt){return arguments.length?(De=Yt,Dt()):De},Et.rangeRound=function(Yt){return Et.range(Yt).interpolate(Tv)},Et.clamp=function(Yt){return arguments.length?(it=Yt,Dt()):it},Et.interpolate=function(Yt){return arguments.length?(je=Yt,Dt()):je},Et.ticks=function(Yt){return Tl(ve,Yt)},Et.tickFormat=function(Yt,Zt){return d3_scale_linearTickFormat(ve,Yt,Zt)},Et.nice=function(Yt){return Dv(ve,Yt),Dt()},Et.copy=function(){return kv(ve,De,je,it)},Dt()}function Lh(ve,De){return i.rebind(ve,De,"range","rangeRound","interpolate","clamp")}function Dv(ve,De){return Vf(ve,su(ks(ve,De)[2])),Vf(ve,su(ks(ve,De)[2])),ve}function ks(ve,De){De==null&&(De=10);var je=qs(ve),it=je[1]-je[0],ct=Math.pow(10,Math.floor(Math.log(it/De)/Math.LN10)),gt=De/it*ct;return gt<=.15?ct*=10:gt<=.35?ct*=5:gt<=.75&&(ct*=2),je[0]=Math.ceil(je[0]/ct)*ct,je[1]=Math.floor(je[1]/ct)*ct+ct*.5,je[2]=ct,je}function Tl(ve,De){return i.range.apply(i,ks(ve,De))}i.scale.log=function(){return Lu(i.scale.linear().domain([0,1]),10,!0,[1,10])};function Lu(ve,De,je,it){function ct(Et){return(je?Math.log(Et<0?0:Et):-Math.log(Et>0?0:-Et))/Math.log(De)}function gt(Et){return je?Math.pow(De,Et):-Math.pow(De,-Et)}function Dt(Et){return ve(ct(Et))}return Dt.invert=function(Et){return gt(ve.invert(Et))},Dt.domain=function(Et){return arguments.length?(je=Et[0]>=0,ve.domain((it=Et.map(Number)).map(ct)),Dt):it},Dt.base=function(Et){return arguments.length?(De=+Et,ve.domain(it.map(ct)),Dt):De},Dt.nice=function(){var Et=Vf(it.map(ct),je?Math:$c);return ve.domain(Et),it=Et.map(gt),Dt},Dt.ticks=function(){var Et=qs(it),Yt=[],Zt=Et[0],nr=Et[1],Ir=Math.floor(ct(Zt)),Rr=Math.ceil(ct(nr)),tn=De%1?2:De;if(isFinite(Rr-Ir)){if(je){for(;Ir0;dn--)Yt.push(gt(Ir)*dn);for(Ir=0;Yt[Ir]nr;Rr--);Yt=Yt.slice(Ir,Rr)}return Yt},Dt.copy=function(){return Lu(ve.copy(),De,je,it)},Lh(Dt,ve)}var $c={floor:function(ve){return-Math.ceil(-ve)},ceil:function(ve){return-Math.floor(-ve)}};i.scale.pow=function(){return zd(i.scale.linear(),1,[0,1])};function zd(ve,De,je){var it=sc(De),ct=sc(1/De);function gt(Dt){return ve(it(Dt))}return gt.invert=function(Dt){return ct(ve.invert(Dt))},gt.domain=function(Dt){return arguments.length?(ve.domain((je=Dt.map(Number)).map(it)),gt):je},gt.ticks=function(Dt){return Tl(je,Dt)},gt.tickFormat=function(Dt,Et){return d3_scale_linearTickFormat(je,Dt,Et)},gt.nice=function(Dt){return gt.domain(Dv(je,Dt))},gt.exponent=function(Dt){return arguments.length?(it=sc(De=Dt),ct=sc(1/De),ve.domain(je.map(it)),gt):De},gt.copy=function(){return zd(ve.copy(),De,je)},Lh(gt,ve)}function sc(ve){return function(De){return De<0?-Math.pow(-De,ve):Math.pow(De,ve)}}i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return lc([],{t:"range",a:[[]]})};function lc(ve,De){var je,it,ct;function gt(Et){return it[((je.get(Et)||(De.t==="range"?je.set(Et,ve.push(Et)):NaN))-1)%it.length]}function Dt(Et,Yt){return i.range(ve.length).map(function(Zt){return Et+Yt*Zt})}return gt.domain=function(Et){if(!arguments.length)return ve;ve=[],je=new R;for(var Yt=-1,Zt=Et.length,nr;++Yt0?je[gt-1]:ve[0],gtRr?0:1;if(nr=Je)return Yt(nr,dn)+(Zt?Yt(Zt,1-dn):"")+"Z";var Or,Gr,qr,gn,xn=0,an=0,Kn,fa,Ta,ua,ya,Sa,ai,Va,ei=[];if((gn=(+Dt.apply(this,arguments)||0)/2)&&(qr=it===Bd?Math.sqrt(Zt*Zt+nr*nr):+it.apply(this,arguments),dn||(an*=-1),nr&&(an=Vt(qr/nr*Math.sin(gn))),Zt&&(xn=Vt(qr/Zt*Math.sin(gn)))),nr){Kn=nr*Math.cos(Ir+an),fa=nr*Math.sin(Ir+an),Ta=nr*Math.cos(Rr-an),ua=nr*Math.sin(Rr-an);var Oi=Math.abs(Rr-Ir-2*an)<=Pe?0:1;if(an&&Wf(Kn,fa,Ta,ua)===dn^Oi){var Oo=(Ir+Rr)/2;Kn=nr*Math.cos(Oo),fa=nr*Math.sin(Oo),Ta=ua=null}}else Kn=fa=0;if(Zt){ya=Zt*Math.cos(Rr-xn),Sa=Zt*Math.sin(Rr-xn),ai=Zt*Math.cos(Ir+xn),Va=Zt*Math.sin(Ir+xn);var Hi=Math.abs(Ir-Rr+2*xn)<=Pe?0:1;if(xn&&Wf(ya,Sa,ai,Va)===1-dn^Hi){var sa=(Ir+Rr)/2;ya=Zt*Math.cos(sa),Sa=Zt*Math.sin(sa),ai=Va=null}}else ya=Sa=0;if(tn>we&&(Or=Math.min(Math.abs(nr-Zt)/2,+je.apply(this,arguments)))>.001){Gr=Zt0?0:1}function $f(ve,De,je,it,ct){var gt=ve[0]-De[0],Dt=ve[1]-De[1],Et=(ct?it:-it)/Math.sqrt(gt*gt+Dt*Dt),Yt=Et*Dt,Zt=-Et*gt,nr=ve[0]+Yt,Ir=ve[1]+Zt,Rr=De[0]+Yt,tn=De[1]+Zt,dn=(nr+Rr)/2,Or=(Ir+tn)/2,Gr=Rr-nr,qr=tn-Ir,gn=Gr*Gr+qr*qr,xn=je-it,an=nr*tn-Rr*Ir,Kn=(qr<0?-1:1)*Math.sqrt(Math.max(0,xn*xn*gn-an*an)),fa=(an*qr-Gr*Kn)/gn,Ta=(-an*Gr-qr*Kn)/gn,ua=(an*qr+Gr*Kn)/gn,ya=(-an*Gr+qr*Kn)/gn,Sa=fa-dn,ai=Ta-Or,Va=ua-dn,ei=ya-Or;return Sa*Sa+ai*ai>Va*Va+ei*ei&&(fa=ua,Ta=ya),[[fa-Yt,Ta-Zt],[fa*je/xn,Ta*je/xn]]}function Ru(){return!0}function Yf(ve){var De=Ma,je=ma,it=Ru,ct=Wo,gt=ct.key,Dt=.7;function Et(Yt){var Zt=[],nr=[],Ir=-1,Rr=Yt.length,tn,dn=un(De),Or=un(je);function Gr(){Zt.push("M",ct(ve(nr),Dt))}for(;++Ir1?ve.join("L"):ve+"Z"}function Hl(ve){return ve.join("L")+"Z"}function Rh(ve){for(var De=0,je=ve.length,it=ve[0],ct=[it[0],",",it[1]];++De1&&ct.push("H",it[0]),ct.join("")}function uc(ve){for(var De=0,je=ve.length,it=ve[0],ct=[it[0],",",it[1]];++De1){Et=De[1],gt=ve[Yt],Yt++,it+="C"+(ct[0]+Dt[0])+","+(ct[1]+Dt[1])+","+(gt[0]-Et[0])+","+(gt[1]-Et[1])+","+gt[0]+","+gt[1];for(var Zt=2;Zt9&&(gt=je*3/Math.sqrt(gt),Dt[Et]=gt*it,Dt[Et+1]=gt*ct));for(Et=-1;++Et<=Yt;)gt=(ve[Math.min(Yt,Et+1)][0]-ve[Math.max(0,Et-1)][0])/(6*(1+Dt[Et]*Dt[Et])),De.push([gt||0,Dt[Et]*gt||0]);return De}function Vd(ve){return ve.length<3?Wo(ve):ve[0]+ws(ve,Qf(ve))}i.svg.line.radial=function(){var ve=Yf(Bv);return ve.radius=ve.x,delete ve.x,ve.angle=ve.y,delete ve.y,ve};function Bv(ve){for(var De,je=-1,it=ve.length,ct,gt;++jePe)+",1 "+Ir}function Zt(nr,Ir,Rr,tn){return"Q 0,0 "+tn}return gt.radius=function(nr){return arguments.length?(je=un(nr),gt):je},gt.source=function(nr){return arguments.length?(ve=un(nr),gt):ve},gt.target=function(nr){return arguments.length?(De=un(nr),gt):De},gt.startAngle=function(nr){return arguments.length?(it=un(nr),gt):it},gt.endAngle=function(nr){return arguments.length?(ct=un(nr),gt):ct},gt};function Oh(ve){return ve.radius}i.svg.diagonal=function(){var ve=Dh,De=cc,je=ed;function it(ct,gt){var Dt=ve.call(this,ct,gt),Et=De.call(this,ct,gt),Yt=(Dt.y+Et.y)/2,Zt=[Dt,{x:Dt.x,y:Yt},{x:Et.x,y:Yt},Et];return Zt=Zt.map(je),"M"+Zt[0]+"C"+Zt[1]+" "+Zt[2]+" "+Zt[3]}return it.source=function(ct){return arguments.length?(ve=un(ct),it):ve},it.target=function(ct){return arguments.length?(De=un(ct),it):De},it.projection=function(ct){return arguments.length?(je=ct,it):je},it};function ed(ve){return[ve.x,ve.y]}i.svg.diagonal.radial=function(){var ve=i.svg.diagonal(),De=ed,je=ve.projection;return ve.projection=function(it){return arguments.length?je(Nv(De=it)):De},ve};function Nv(ve){return function(){var De=ve.apply(this,arguments),je=De[0],it=De[1]-ot;return[je*Math.cos(it),je*Math.sin(it)]}}i.svg.symbol=function(){var ve=ft,De=qe;function je(it,ct){return(At.get(ve.call(this,it,ct))||St)(De.call(this,it,ct))}return je.type=function(it){return arguments.length?(ve=un(it),je):ve},je.size=function(it){return arguments.length?(De=un(it),je):De},je};function qe(){return 64}function ft(){return"circle"}function St(ve){var De=Math.sqrt(ve/Pe);return"M0,"+De+"A"+De+","+De+" 0 1,1 0,"+-De+"A"+De+","+De+" 0 1,1 0,"+De+"Z"}var At=i.map({circle:St,cross:function(ve){var De=Math.sqrt(ve/5)/2;return"M"+-3*De+","+-De+"H"+-De+"V"+-3*De+"H"+De+"V"+-De+"H"+3*De+"V"+De+"H"+De+"V"+3*De+"H"+-De+"V"+De+"H"+-3*De+"Z"},diamond:function(ve){var De=Math.sqrt(ve/(2*_t)),je=De*_t;return"M0,"+-De+"L"+je+",0 0,"+De+" "+-je+",0Z"},square:function(ve){var De=Math.sqrt(ve)/2;return"M"+-De+","+-De+"L"+De+","+-De+" "+De+","+De+" "+-De+","+De+"Z"},"triangle-down":function(ve){var De=Math.sqrt(ve/Nt),je=De*Nt/2;return"M0,"+je+"L"+De+","+-je+" "+-De+","+-je+"Z"},"triangle-up":function(ve){var De=Math.sqrt(ve/Nt),je=De*Nt/2;return"M0,"+-je+"L"+De+","+je+" "+-De+","+je+"Z"}});i.svg.symbolTypes=At.keys();var Nt=Math.sqrt(3),_t=Math.tan(30*yt);ee.transition=function(ve){for(var De=Fr||++Er,je=Bn(ve),it=[],ct,gt,Dt=jr||{time:Date.now(),ease:bh,delay:0,duration:250},Et=-1,Yt=this.length;++Et0;)Ir[--gn].call(ve,qr);if(Gr>=1)return Dt.event&&Dt.event.end.call(ve,ve.__data__,De),--gt.count?delete gt[it]:delete ve[je],1}Dt||(Et=ct.time,Yt=Nn(Rr,0,Et),Dt=gt[it]={tween:new R,time:Et,timer:Yt,delay:ct.delay,duration:ct.duration,ease:ct.ease,index:De},ct=null,++gt.count)}i.svg.axis=function(){var ve=i.scale.linear(),De=aa,je=6,it=6,ct=3,gt=[10],Dt=null,Et;function Yt(Zt){Zt.each(function(){var nr=i.select(this),Ir=this.__chart__||ve,Rr=this.__chart__=ve.copy(),tn=Dt??(Rr.ticks?Rr.ticks.apply(Rr,gt):Rr.domain()),dn=Et??(Rr.tickFormat?Rr.tickFormat.apply(Rr,gt):H),Or=nr.selectAll(".tick").data(tn,Rr),Gr=Or.enter().insert("g",".domain").attr("class","tick").style("opacity",we),qr=i.transition(Or.exit()).style("opacity",we).remove(),gn=i.transition(Or.order()).style("opacity",1),xn=Math.max(je,0)+ct,an,Kn=Wc(Rr),fa=nr.selectAll(".domain").data([0]),Ta=(fa.enter().append("path").attr("class","domain"),i.transition(fa));Gr.append("line"),Gr.append("text");var ua=Gr.select("line"),ya=gn.select("line"),Sa=Or.select("text").text(dn),ai=Gr.select("text"),Va=gn.select("text"),ei=De==="top"||De==="left"?-1:1,Oi,Oo,Hi,sa;if(De==="bottom"||De==="top"?(an=Xa,Oi="x",Hi="y",Oo="x2",sa="y2",Sa.attr("dy",ei<0?"0em":".71em").style("text-anchor","middle"),Ta.attr("d","M"+Kn[0]+","+ei*it+"V0H"+Kn[1]+"V"+ei*it)):(an=Ja,Oi="y",Hi="x",Oo="y2",sa="x2",Sa.attr("dy",".32em").style("text-anchor",ei<0?"end":"start"),Ta.attr("d","M"+ei*it+","+Kn[0]+"H0V"+Kn[1]+"H"+ei*it)),ua.attr(sa,ei*je),ai.attr(Hi,ei*xn),ya.attr(Oo,0).attr(sa,ei*je),Va.attr(Oi,0).attr(Hi,ei*xn),Rr.rangeBand){var si=Rr,Ua=si.rangeBand()/2;Ir=Rr=function(xi){return si(xi)+Ua}}else Ir.rangeBand?Ir=Rr:qr.call(an,Rr,Ir);Gr.call(an,Ir,Rr),gn.call(an,Rr,Rr)})}return Yt.scale=function(Zt){return arguments.length?(ve=Zt,Yt):ve},Yt.orient=function(Zt){return arguments.length?(De=Zt in Ya?Zt+"":aa,Yt):De},Yt.ticks=function(){return arguments.length?(gt=w(arguments),Yt):gt},Yt.tickValues=function(Zt){return arguments.length?(Dt=Zt,Yt):Dt},Yt.tickFormat=function(Zt){return arguments.length?(Et=Zt,Yt):Et},Yt.tickSize=function(Zt){var nr=arguments.length;return nr?(je=+Zt,it=+arguments[nr-1],Yt):je},Yt.innerTickSize=function(Zt){return arguments.length?(je=+Zt,Yt):je},Yt.outerTickSize=function(Zt){return arguments.length?(it=+Zt,Yt):it},Yt.tickPadding=function(Zt){return arguments.length?(ct=+Zt,Yt):ct},Yt.tickSubdivide=function(){return arguments.length&&Yt},Yt};var aa="bottom",Ya={top:1,right:1,bottom:1,left:1};function Xa(ve,De,je){ve.attr("transform",function(it){var ct=De(it);return"translate("+(isFinite(ct)?ct:je(it))+",0)"})}function Ja(ve,De,je){ve.attr("transform",function(it){var ct=De(it);return"translate(0,"+(isFinite(ct)?ct:je(it))+")"})}i.svg.brush=function(){var ve=Q(nr,"brushstart","brush","brushend"),De=null,je=null,it=[0,0],ct=[0,0],gt,Dt,Et=!0,Yt=!0,Zt=yi[0];function nr(Or){Or.each(function(){var Gr=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",dn).on("touchstart.brush",dn),qr=Gr.selectAll(".background").data([0]);qr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Gr.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var gn=Gr.selectAll(".resize").data(Zt,H);gn.exit().remove(),gn.enter().append("g").attr("class",function(fa){return"resize "+fa}).style("cursor",function(fa){return ri[fa]}).append("rect").attr("x",function(fa){return/[ew]$/.test(fa)?-3:null}).attr("y",function(fa){return/^[ns]/.test(fa)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),gn.style("display",nr.empty()?"none":null);var xn=i.transition(Gr),an=i.transition(qr),Kn;De&&(Kn=Wc(De),an.attr("x",Kn[0]).attr("width",Kn[1]-Kn[0]),Rr(xn)),je&&(Kn=Wc(je),an.attr("y",Kn[0]).attr("height",Kn[1]-Kn[0]),tn(xn)),Ir(xn)})}nr.event=function(Or){Or.each(function(){var Gr=ve.of(this,arguments),qr={x:it,y:ct,i:gt,j:Dt},gn=this.__chart__||qr;this.__chart__=qr,Fr?i.select(this).transition().each("start.brush",function(){gt=gn.i,Dt=gn.j,it=gn.x,ct=gn.y,Gr({type:"brushstart"})}).tween("brush:brush",function(){var xn=Qs(it,qr.x),an=Qs(ct,qr.y);return gt=Dt=null,function(Kn){it=qr.x=xn(Kn),ct=qr.y=an(Kn),Gr({type:"brush",mode:"resize"})}}).each("end.brush",function(){gt=qr.i,Dt=qr.j,Gr({type:"brush",mode:"resize"}),Gr({type:"brushend"})}):(Gr({type:"brushstart"}),Gr({type:"brush",mode:"resize"}),Gr({type:"brushend"}))})};function Ir(Or){Or.selectAll(".resize").attr("transform",function(Gr){return"translate("+it[+/e$/.test(Gr)]+","+ct[+/^s/.test(Gr)]+")"})}function Rr(Or){Or.select(".extent").attr("x",it[0]),Or.selectAll(".extent,.n>rect,.s>rect").attr("width",it[1]-it[0])}function tn(Or){Or.select(".extent").attr("y",ct[0]),Or.selectAll(".extent,.e>rect,.w>rect").attr("height",ct[1]-ct[0])}function dn(){var Or=this,Gr=i.select(i.event.target),qr=ve.of(Or,arguments),gn=i.select(Or),xn=Gr.datum(),an=!/^(n|s)$/.test(xn)&&De,Kn=!/^(e|w)$/.test(xn)&&je,fa=Gr.classed("extent"),Ta=Ze(Or),ua,ya=i.mouse(Or),Sa,ai=i.select(a(Or)).on("keydown.brush",Oi).on("keyup.brush",Oo);if(i.event.changedTouches?ai.on("touchmove.brush",Hi).on("touchend.brush",si):ai.on("mousemove.brush",Hi).on("mouseup.brush",si),gn.interrupt().selectAll("*").interrupt(),fa)ya[0]=it[0]-ya[0],ya[1]=ct[0]-ya[1];else if(xn){var Va=+/w$/.test(xn),ei=+/^n/.test(xn);Sa=[it[1-Va]-ya[0],ct[1-ei]-ya[1]],ya[0]=it[Va],ya[1]=ct[ei]}else i.event.altKey&&(ua=ya.slice());gn.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",Gr.style("cursor")),qr({type:"brushstart"}),Hi();function Oi(){i.event.keyCode==32&&(fa||(ua=null,ya[0]-=it[1],ya[1]-=ct[1],fa=2),ie())}function Oo(){i.event.keyCode==32&&fa==2&&(ya[0]+=it[1],ya[1]+=ct[1],fa=0,ie())}function Hi(){var Ua=i.mouse(Or),xi=!1;Sa&&(Ua[0]+=Sa[0],Ua[1]+=Sa[1]),fa||(i.event.altKey?(ua||(ua=[(it[0]+it[1])/2,(ct[0]+ct[1])/2]),ya[0]=it[+(Ua[0]"u"&&(z=1e-6);var X,ue,ge,Le,_e;for(ge=_,_e=0;_e<8;_e++){if(Le=this.sampleCurveX(ge)-_,Math.abs(Le)ue)return ue;for(;XLe?X=ge:ue=ge,ge=(ue-X)*.5+X}return ge},m.prototype.solve=function(_,z){return this.sampleCurveY(this.solveCurveX(_,z))};var a=n;function n(_,z){this.x=_,this.y=z}n.prototype={clone:function(){return new n(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,z){return this.clone()._rotateAround(_,z)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var z=_.x-this.x,X=_.y-this.y;return z*z+X*X},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,z){return Math.atan2(this.x*z-this.y*_,this.x*_+this.y*z)},_matMult:function(_){var z=_[0]*this.x+_[1]*this.y,X=_[2]*this.x+_[3]*this.y;return this.x=z,this.y=X,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var z=Math.cos(_),X=Math.sin(_),ue=z*this.x-X*this.y,ge=X*this.x+z*this.y;return this.x=ue,this.y=ge,this},_rotateAround:function(_,z){var X=Math.cos(_),ue=Math.sin(_),ge=z.x+X*(this.x-z.x)-ue*(this.y-z.y),Le=z.y+ue*(this.x-z.x)+X*(this.y-z.y);return this.x=ge,this.y=Le,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(_){return _ instanceof n?_:Array.isArray(_)?new n(_[0],_[1]):_};var s=typeof self<"u"?self:{};function o(_,z){if(Array.isArray(_)){if(!Array.isArray(z)||_.length!==z.length)return!1;for(var X=0;X<_.length;X++)if(!o(_[X],z[X]))return!1;return!0}if(typeof _=="object"&&_!==null&&z!==null){if(typeof z!="object")return!1;var ue=Object.keys(_);if(ue.length!==Object.keys(z).length)return!1;for(var ge in _)if(!o(_[ge],z[ge]))return!1;return!0}return _===z}var h=Math.pow(2,53)-1;function f(_){if(_<=0)return 0;if(_>=1)return 1;var z=_*_,X=z*_;return 4*(_<.5?X:3*(_-z)+X-.75)}function u(_,z,X,ue){var ge=new v(_,z,X,ue);return function(Le){return ge.solve(Le)}}var b=u(.25,.1,.25,1);function p(_,z,X){return Math.min(X,Math.max(z,_))}function E(_,z,X){var ue=X-z,ge=((_-z)%ue+ue)%ue+z;return ge===z?X:ge}function g(_,z,X){if(!_.length)return X(null,[]);var ue=_.length,ge=new Array(_.length),Le=null;_.forEach(function(_e,tt){z(_e,function(bt,Pt){bt&&(Le=bt),ge[tt]=Pt,--ue===0&&X(Le,ge)})})}function c(_){var z=[];for(var X in _)z.push(_[X]);return z}function y(_,z){var X=[];for(var ue in _)ue in z||X.push(ue);return X}function A(_){for(var z=[],X=arguments.length-1;X-- >0;)z[X]=arguments[X+1];for(var ue=0,ge=z;ue>z/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}return _()}function P(_){return _<=1?1:Math.pow(2,Math.ceil(Math.log(_)/Math.LN2))}function d(_){return _?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_):!1}function k(_,z){_.forEach(function(X){z[X]&&(z[X]=z[X].bind(z))})}function I(_,z){return _.indexOf(z,_.length-z.length)!==-1}function N(_,z,X){var ue={};for(var ge in _)ue[ge]=z.call(X||this,_[ge],ge,_);return ue}function B(_,z,X){var ue={};for(var ge in _)z.call(X||this,_[ge],ge,_)&&(ue[ge]=_[ge]);return ue}function G(_){return Array.isArray(_)?_.map(G):typeof _=="object"&&_?N(_,G):_}function U(_,z){for(var X=0;X<_.length;X++)if(z.indexOf(_[X])>=0)return!0;return!1}var H={};function W(_){H[_]||(typeof console<"u"&&console.warn(_),H[_]=!0)}function V(_,z,X){return(X.y-_.y)*(z.x-_.x)>(z.y-_.y)*(X.x-_.x)}function $(_){for(var z=0,X=0,ue=_.length,ge=ue-1,Le=void 0,_e=void 0;X@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,X={};if(_.replace(z,function(ge,Le,_e,tt){var bt=_e||tt;return X[Le]=bt?bt.toLowerCase():!0,""}),X["max-age"]){var ue=parseInt(X["max-age"],10);isNaN(ue)?delete X["max-age"]:X["max-age"]=ue}return X}var ie=null;function fe(_){if(ie==null){var z=_.navigator?_.navigator.userAgent:null;ie=!!_.safari||!!(z&&(/\b(iPad|iPhone|iPod)\b/.test(z)||z.match("Safari")&&!z.match("Chrome")))}return ie}function Q(_){try{var z=s[_];return z.setItem("_mapbox_test_",1),z.removeItem("_mapbox_test_"),!0}catch{return!1}}function J(_){return s.btoa(encodeURIComponent(_).replace(/%([0-9A-F]{2})/g,function(z,X){return String.fromCharCode(+("0x"+X))}))}function oe(_){return decodeURIComponent(s.atob(_).split("").map(function(z){return"%"+("00"+z.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var K=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now.bind(Date),ne=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame||s.msRequestAnimationFrame,ce=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame||s.msCancelAnimationFrame,re,ee,de={now:K,frame:function(z){var X=ne(z);return{cancel:function(){return ce(X)}}},getImageData:function(z,X){X===void 0&&(X=0);var ue=s.document.createElement("canvas"),ge=ue.getContext("2d");if(!ge)throw new Error("failed to create canvas 2d context");return ue.width=z.width,ue.height=z.height,ge.drawImage(z,0,0,z.width,z.height),ge.getImageData(-X,-X,z.width+2*X,z.height+2*X)},resolveURL:function(z){return re||(re=s.document.createElement("a")),re.href=z,re.href},hardwareConcurrency:s.navigator&&s.navigator.hardwareConcurrency||4,get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return s.matchMedia?(ee==null&&(ee=s.matchMedia("(prefers-reduced-motion: reduce)")),ee.matches):!1}},le={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"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},he={supported:!1,testSupport:Te},xe,Ee=!1,Se,ke=!1;s.document&&(Se=s.document.createElement("img"),Se.onload=function(){xe&&Ae(xe),xe=null,ke=!0},Se.onerror=function(){Ee=!0,xe=null},Se.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Te(_){Ee||!Se||(ke?Ae(_):xe=_)}function Ae(_){var z=_.createTexture();_.bindTexture(_.TEXTURE_2D,z);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,Se),_.isContextLost())return;he.supported=!0}catch{}_.deleteTexture(z),Ee=!0}var be="01";function Ie(){for(var _="1",z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",X="",ue=0;ue<10;ue++)X+=z[Math.floor(Math.random()*62)];var ge=12*60*60*1e3,Le=[_,be,X].join(""),_e=Date.now()+ge;return{token:Le,tokenExpiresAt:_e}}var Ue=function(z,X){this._transformRequestFn=z,this._customAccessToken=X,this._createSkuToken()};Ue.prototype._createSkuToken=function(){var z=Ie();this._skuToken=z.token,this._skuTokenExpiresAt=z.tokenExpiresAt},Ue.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ue.prototype.transformRequest=function(z,X){return this._transformRequestFn?this._transformRequestFn(z,X)||{url:z}:{url:z}},Ue.prototype.normalizeStyleURL=function(z,X){if(!Ne(z))return z;var ue=nt(z);return ue.path="/styles/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||X)},Ue.prototype.normalizeGlyphsURL=function(z,X){if(!Ne(z))return z;var ue=nt(z);return ue.path="/fonts/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||X)},Ue.prototype.normalizeSourceURL=function(z,X){if(!Ne(z))return z;var ue=nt(z);return ue.path="/v4/"+ue.authority+".json",ue.params.push("secure"),this._makeAPIURL(ue,this._customAccessToken||X)},Ue.prototype.normalizeSpriteURL=function(z,X,ue,ge){var Le=nt(z);return Ne(z)?(Le.path="/styles/v1"+Le.path+"/sprite"+X+ue,this._makeAPIURL(Le,this._customAccessToken||ge)):(Le.path+=""+X+ue,mt(Le))},Ue.prototype.normalizeTileURL=function(z,X){if(this._isSkuTokenExpired()&&this._createSkuToken(),z&&!Ne(z))return z;var ue=nt(z),ge=/(\.(png|jpg)\d*)(?=$)/,Le=/^.+\/v4\//,_e=de.devicePixelRatio>=2||X===512?"@2x":"",tt=he.supported?".webp":"$1";ue.path=ue.path.replace(ge,""+_e+tt),ue.path=ue.path.replace(Le,"/"),ue.path="/v4"+ue.path;var bt=this._customAccessToken||vt(ue.params)||le.ACCESS_TOKEN;return le.REQUIRE_ACCESS_TOKEN&&bt&&this._skuToken&&ue.params.push("sku="+this._skuToken),this._makeAPIURL(ue,bt)},Ue.prototype.canonicalizeTileURL=function(z,X){var ue="/v4/",ge=/\.[\w]+$/,Le=nt(z);if(!Le.path.match(/(^\/v4\/)/)||!Le.path.match(ge))return z;var _e="mapbox://tiles/";_e+=Le.path.replace(ue,"");var tt=Le.params;return X&&(tt=tt.filter(function(bt){return!bt.match(/^access_token=/)})),tt.length&&(_e+="?"+tt.join("&")),_e},Ue.prototype.canonicalizeTileset=function(z,X){for(var ue=X?Ne(X):!1,ge=[],Le=0,_e=z.tiles||[];Le<_e.length;Le+=1){var tt=_e[Le];$e(tt)?ge.push(this.canonicalizeTileURL(tt,ue)):ge.push(tt)}return ge},Ue.prototype._makeAPIURL=function(z,X){var ue="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",ge=nt(le.API_URL);if(z.protocol=ge.protocol,z.authority=ge.authority,z.protocol==="http"){var Le=z.params.indexOf("secure");Le>=0&&z.params.splice(Le,1)}if(ge.path!=="/"&&(z.path=""+ge.path+z.path),!le.REQUIRE_ACCESS_TOKEN)return mt(z);if(X=X||le.ACCESS_TOKEN,!X)throw new Error("An API access token is required to use Mapbox GL. "+ue);if(X[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ue);return z.params=z.params.filter(function(_e){return _e.indexOf("access_token")===-1}),z.params.push("access_token="+X),mt(z)};function Ne(_){return _.indexOf("mapbox:")===0}var ze=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function $e(_){return ze.test(_)}function st(_){return _.indexOf("sku=")>0&&$e(_)}function vt(_){for(var z=0,X=_;z=1&&s.localStorage.setItem(X,JSON.stringify(this.eventData))}catch{W("Unable to write to LocalStorage")}},dt.prototype.processRequests=function(z){},dt.prototype.postEvent=function(z,X,ue,ge){var Le=this;if(le.EVENTS_URL){var _e=nt(le.EVENTS_URL);_e.params.push("access_token="+(ge||le.ACCESS_TOKEN||""));var tt={event:this.type,created:new Date(z).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:be,userId:this.anonId},bt=X?A(tt,X):tt,Pt={url:mt(_e),headers:{"Content-Type":"text/plain"},body:JSON.stringify([bt])};this.pendingRequest=jt(Pt,function(Ot){Le.pendingRequest=null,ue(Ot),Le.saveEventData(),Le.processRequests(ge)})}},dt.prototype.queueRequest=function(z,X){this.queue.push(z),this.processRequests(X)};var wt=function(_){function z(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.postMapLoadEvent=function(ue,ge,Le,_e){this.skuToken=Le,(le.EVENTS_URL&&_e||le.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(tt){return Ne(tt)||$e(tt)}))&&this.queueRequest({id:ge,timestamp:Date.now()},_e)},z.prototype.processRequests=function(ue){var ge=this;if(!(this.pendingRequest||this.queue.length===0)){var Le=this.queue.shift(),_e=Le.id,tt=Le.timestamp;_e&&this.success[_e]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=L()),this.postEvent(tt,{skuToken:this.skuToken},function(bt){bt||_e&&(ge.success[_e]=!0)},ue))}},z}(dt),et=function(_){function z(X){_.call(this,"appUserTurnstile"),this._customAccessToken=X}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.postTurnstileEvent=function(ue,ge){le.EVENTS_URL&&le.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(Le){return Ne(Le)||$e(Le)})&&this.queueRequest(Date.now(),ge)},z.prototype.processRequests=function(ue){var ge=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var Le=lt(le.ACCESS_TOKEN),_e=Le?Le.u:le.ACCESS_TOKEN,tt=_e!==this.eventData.tokenU;d(this.anonId)||(this.anonId=L(),tt=!0);var bt=this.queue.shift();if(this.eventData.lastSuccess){var Pt=new Date(this.eventData.lastSuccess),Ot=new Date(bt),Jt=(bt-this.eventData.lastSuccess)/(24*60*60*1e3);tt=tt||Jt>=1||Jt<-1||Pt.getDate()!==Ot.getDate()}else tt=!0;if(!tt)return this.processRequests();this.postEvent(bt,{"enabled.telemetry":!1},function(ir){ir||(ge.eventData.lastSuccess=bt,ge.eventData.tokenU=_e)},ue)}},z}(dt),Be=new et,Ye=Be.postTurnstileEvent.bind(Be),Ze=new wt,We=Ze.postMapLoadEvent.bind(Ze),Fe="mapbox-tiles",Me=500,we=50,Re=1e3*60*7,Pe;function Ve(){s.caches&&!Pe&&(Pe=s.caches.open(Fe))}var Je;function ot(_,z){if(Je===void 0)try{new Response(new ReadableStream),Je=!0}catch{Je=!1}Je?z(_.body):_.blob().then(z)}function yt(_,z,X){if(Ve(),!!Pe){var ue={status:z.status,statusText:z.statusText,headers:new s.Headers};z.headers.forEach(function(_e,tt){return ue.headers.set(tt,_e)});var ge=ae(z.headers.get("Cache-Control")||"");if(!ge["no-store"]){ge["max-age"]&&ue.headers.set("Expires",new Date(X+ge["max-age"]*1e3).toUTCString());var Le=new Date(ue.headers.get("Expires")).getTime()-X;LeDate.now()&&!X["no-cache"]}var xt=1/0;function Lt(_){xt++,xt>we&&(_.getActor().send("enforceCacheSizeLimit",Me),xt=0)}function Xt(_){Ve(),Pe&&Pe.then(function(z){z.keys().then(function(X){for(var ue=0;ue=200&&X.status<300||X.status===0)&&X.response!==null){var ge=X.response;if(_.type==="json")try{ge=JSON.parse(X.response)}catch(Le){return z(Le)}z(null,ge,X.getResponseHeader("Cache-Control"),X.getResponseHeader("Expires"))}else z(new sr(X.statusText,X.status,_.url))},X.send(_.body),{cancel:function(){return X.abort()}}}var zt=function(_,z){if(!ht(_.url)){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return Mt(_,z);if(q()&&self.worker&&self.worker.actor){var X=!0;return self.worker.actor.send("getResource",_,z,void 0,X)}}return Rt(_,z)},Ft=function(_,z){return zt(A(_,{type:"json"}),z)},Wt=function(_,z){return zt(A(_,{type:"arrayBuffer"}),z)},jt=function(_,z){return zt(A(_,{method:"POST"}),z)};function er(_){var z=s.document.createElement("a");return z.href=_,z.protocol===s.document.location.protocol&&z.host===s.document.location.host}var hr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function vr(_,z,X,ue){var ge=new s.Image,Le=s.URL;ge.onload=function(){z(null,ge),Le.revokeObjectURL(ge.src),ge.onload=null,s.requestAnimationFrame(function(){ge.src=hr})},ge.onerror=function(){return z(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 _e=new s.Blob([new Uint8Array(_)],{type:"image/png"});ge.cacheControl=X,ge.expires=ue,ge.src=_.byteLength?Le.createObjectURL(_e):hr}function pr(_,z){var X=new s.Blob([new Uint8Array(_)],{type:"image/png"});s.createImageBitmap(X).then(function(ue){z(null,ue)}).catch(function(ue){z(new Error("Could not load image because of "+ue.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Ke,Xe,Ut=function(){Ke=[],Xe=0};Ut();var Bt=function(_,z){if(he.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),Xe>=le.MAX_PARALLEL_IMAGE_REQUESTS){var X={requestParameters:_,callback:z,cancelled:!1,cancel:function(){this.cancelled=!0}};return Ke.push(X),X}Xe++;var ue=!1,ge=function(){if(!ue)for(ue=!0,Xe--;Ke.length&&Xe0||this._oneTimeListeners&&this._oneTimeListeners[z]&&this._oneTimeListeners[z].length>0||this._eventedParent&&this._eventedParent.listens(z)},mr.prototype.setEventedParent=function(z,X){return this._eventedParent=z,this._eventedParentData=X,this};var wr=8,Sr={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"}},yr={"*":{type:"source"}},Xr=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],kr={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:"*"}},Dr={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:"*"}},bn={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:"*"}},un={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"}},Fn={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"}}},On={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"}}},gr={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"}},Br=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Zr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Wr={"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"}},fn={"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"}},Tn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},wn={"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"}},Nn={"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"}},Yn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ia={type:"array",value:"*"},Ma={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ma={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Aa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Mr={type:"array",value:"*",minimum:1},cn={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}},nn=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Sn={"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"}},Jn={"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"}},In={"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"}},Rn={"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"}},Xn={"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"}},la={"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"}},Da={"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"}},Qa={"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"}},Pr={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Ur={"*":{type:"string"}},Ar={$version:wr,$root:Sr,sources:yr,source:Xr,source_vector:kr,source_raster:Dr,source_raster_dem:bn,source_geojson:un,source_video:Fn,source_image:On,layer:gr,layout:Br,layout_background:Zr,layout_fill:Wr,layout_circle:fn,layout_heatmap:Tn,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:wn,layout_symbol:Nn,layout_raster:Yn,layout_hillshade:ga,filter:Ia,filter_operator:Ma,geometry_type:ma,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:Aa,expression:Mr,light:cn,paint:nn,paint_fill:Sn,"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:Jn,paint_circle:In,paint_heatmap:Rn,paint_symbol:Xn,paint_raster:la,paint_hillshade:Da,paint_background:Qa,transition:Pr,"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:Ur},Vr=function(z,X,ue,ge){this.message=(z?z+": ":"")+ue,ge&&(this.identifier=ge),X!=null&&X.__line__&&(this.line=X.__line__)};function An(_){var z=_.key,X=_.value;return X?[new Vr(z,X,"constants have been deprecated as of v8")]:[]}function Hn(_){for(var z=[],X=arguments.length-1;X-- >0;)z[X]=arguments[X+1];for(var ue=0,ge=z;ue":_.itemType.kind==="value"?"array":"array<"+z+">"}else return _.kind}var Js=[$r,rn,Pn,_n,zn,Ra,Zn,qi(Wn),$a];function Hs(_,z){if(z.kind==="error")return null;if(_.kind==="array"){if(z.kind==="array"&&(z.N===0&&z.itemType.kind==="value"||!Hs(_.itemType,z.itemType))&&(typeof _.N!="number"||_.N===z.N))return null}else{if(_.kind===z.kind)return null;if(_.kind==="value")for(var X=0,ue=Js;X255?255:Pt}function ge(Pt){return Pt<0?0:Pt>1?1:Pt}function Le(Pt){return Pt[Pt.length-1]==="%"?ue(parseFloat(Pt)/100*255):ue(parseInt(Pt))}function _e(Pt){return Pt[Pt.length-1]==="%"?ge(parseFloat(Pt)/100):ge(parseFloat(Pt))}function tt(Pt,Ot,Jt){return Jt<0?Jt+=1:Jt>1&&(Jt-=1),Jt*6<1?Pt+(Ot-Pt)*Jt*6:Jt*2<1?Ot:Jt*3<2?Pt+(Ot-Pt)*(2/3-Jt)*6:Pt}function bt(Pt){var Ot=Pt.replace(/ /g,"").toLowerCase();if(Ot in X)return X[Ot].slice();if(Ot[0]==="#"){if(Ot.length===4){var Jt=parseInt(Ot.substr(1),16);return Jt>=0&&Jt<=4095?[(Jt&3840)>>4|(Jt&3840)>>8,Jt&240|(Jt&240)>>4,Jt&15|(Jt&15)<<4,1]:null}else if(Ot.length===7){var Jt=parseInt(Ot.substr(1),16);return Jt>=0&&Jt<=16777215?[(Jt&16711680)>>16,(Jt&65280)>>8,Jt&255,1]:null}return null}var ir=Ot.indexOf("("),rr=Ot.indexOf(")");if(ir!==-1&&rr+1===Ot.length){var Tr=Ot.substr(0,ir),Nr=Ot.substr(ir+1,rr-(ir+1)).split(","),pn=1;switch(Tr){case"rgba":if(Nr.length!==4)return null;pn=_e(Nr.pop());case"rgb":return Nr.length!==3?null:[Le(Nr[0]),Le(Nr[1]),Le(Nr[2]),pn];case"hsla":if(Nr.length!==4)return null;pn=_e(Nr.pop());case"hsl":if(Nr.length!==3)return null;var on=(parseFloat(Nr[0])%360+360)%360/360,Dn=_e(Nr[1]),Cn=_e(Nr[2]),kn=Cn<=.5?Cn*(Dn+1):Cn+Dn-Cn*Dn,jn=Cn*2-kn;return[ue(tt(jn,kn,on+1/3)*255),ue(tt(jn,kn,on)*255),ue(tt(jn,kn,on-1/3)*255),pn];default:return null}}return null}try{z.parseCSSColor=bt}catch{}}),yv=mh.parseCSSColor,Ei=function(z,X,ue,ge){ge===void 0&&(ge=1),this.r=z,this.g=X,this.b=ue,this.a=ge};Ei.parse=function(z){if(z){if(z instanceof Ei)return z;if(typeof z=="string"){var X=yv(z);if(X)return new Ei(X[0]/255*X[3],X[1]/255*X[3],X[2]/255*X[3],X[3])}}},Ei.prototype.toString=function(){var z=this.toArray(),X=z[0],ue=z[1],ge=z[2],Le=z[3];return"rgba("+Math.round(X)+","+Math.round(ue)+","+Math.round(ge)+","+Le+")"},Ei.prototype.toArray=function(){var z=this,X=z.r,ue=z.g,ge=z.b,Le=z.a;return Le===0?[0,0,0,0]:[X*255/Le,ue*255/Le,ge*255/Le,Le]},Ei.black=new Ei(0,0,0,1),Ei.white=new Ei(1,1,1,1),Ei.transparent=new Ei(0,0,0,0),Ei.red=new Ei(1,0,0,1);var Ff=function(z,X,ue){z?this.sensitivity=X?"variant":"case":this.sensitivity=X?"accent":"base",this.locale=ue,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Ff.prototype.compare=function(z,X){return this.collator.compare(z,X)},Ff.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var yh=function(z,X,ue,ge,Le){this.text=z,this.image=X,this.scale=ue,this.fontStack=ge,this.textColor=Le},es=function(z){this.sections=z};es.fromString=function(z){return new es([new yh(z,null,null,null,null)])},es.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(z){return z.text.length!==0||z.image&&z.image.name.length!==0})},es.factory=function(z){return z instanceof es?z:es.fromString(z)},es.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(z){return z.text}).join("")},es.prototype.serialize=function(){for(var z=["format"],X=0,ue=this.sections;X=0&&_<=255&&typeof z=="number"&&z>=0&&z<=255&&typeof X=="number"&&X>=0&&X<=255)){var ge=typeof ue=="number"?[_,z,X,ue]:[_,z,X];return"Invalid rgba value ["+ge.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ue>"u"||typeof ue=="number"&&ue>=0&&ue<=1?null:"Invalid rgba value ["+[_,z,X,ue].join(", ")+"]: 'a' must be between 0 and 1."}function Ed(_){if(_===null)return!0;if(typeof _=="string")return!0;if(typeof _=="boolean")return!0;if(typeof _=="number")return!0;if(_ instanceof Ei)return!0;if(_ instanceof Ff)return!0;if(_ instanceof es)return!0;if(_ instanceof Rs)return!0;if(Array.isArray(_)){for(var z=0,X=_;z2){var tt=z[1];if(typeof tt!="string"||!(tt in _c)||tt==="object")return X.error('The item type argument of "array" must be one of string, number, boolean',1);_e=_c[tt],ue++}else _e=Wn;var bt;if(z.length>3){if(z[2]!==null&&(typeof z[2]!="number"||z[2]<0||z[2]!==Math.floor(z[2])))return X.error('The length argument to "array" must be a positive integer literal',2);bt=z[2],ue++}ge=qi(_e,bt)}else ge=_c[Le];for(var Pt=[];ue1)&&X.push(ge)}}return X.concat(this.args.map(function(Le){return Le.serialize()}))};var us=function(z){this.type=Ra,this.sections=z};us.parse=function(z,X){if(z.length<2)return X.error("Expected at least one argument.");var ue=z[1];if(!Array.isArray(ue)&&typeof ue=="object")return X.error("First argument must be an image or text section.");for(var ge=[],Le=!1,_e=1;_e<=z.length-1;++_e){var tt=z[_e];if(Le&&typeof tt=="object"&&!Array.isArray(tt)){Le=!1;var bt=null;if(tt["font-scale"]&&(bt=X.parse(tt["font-scale"],1,rn),!bt))return null;var Pt=null;if(tt["text-font"]&&(Pt=X.parse(tt["text-font"],1,qi(Pn)),!Pt))return null;var Ot=null;if(tt["text-color"]&&(Ot=X.parse(tt["text-color"],1,zn),!Ot))return null;var Jt=ge[ge.length-1];Jt.scale=bt,Jt.font=Pt,Jt.textColor=Ot}else{var ir=X.parse(z[_e],1,Wn);if(!ir)return null;var rr=ir.type.kind;if(rr!=="string"&&rr!=="value"&&rr!=="null"&&rr!=="resolvedImage")return X.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Le=!0,ge.push({content:ir,scale:null,font:null,textColor:null})}}return new us(ge)},us.prototype.evaluate=function(z){var X=function(ue){var ge=ue.content.evaluate(z);return Lo(ge)===$a?new yh("",ge,null,null,null):new yh(Fc(ge),null,ue.scale?ue.scale.evaluate(z):null,ue.font?ue.font.evaluate(z).join(","):null,ue.textColor?ue.textColor.evaluate(z):null)};return new es(this.sections.map(X))},us.prototype.eachChild=function(z){for(var X=0,ue=this.sections;X-1),ue},Qs.prototype.eachChild=function(z){z(this.input)},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["image",this.input.serialize()]};var xv={"to-boolean":_n,"to-color":zn,"to-number":rn,"to-string":Pn},Vs=function(z,X){this.type=z,this.args=X};Vs.parse=function(z,X){if(z.length<2)return X.error("Expected at least one argument.");var ue=z[0];if((ue==="to-boolean"||ue==="to-string")&&z.length!==2)return X.error("Expected one argument.");for(var ge=xv[ue],Le=[],_e=1;_e4?ue="Invalid rbga value "+JSON.stringify(X)+": expected an array containing either three or four numeric values.":ue=Oc(X[0],X[1],X[2],X[3]),!ue))return new Ei(X[0]/255,X[1]/255,X[2]/255,X[3])}throw new Go(ue||"Could not parse color from value '"+(typeof X=="string"?X:String(JSON.stringify(X)))+"'")}else if(this.type.kind==="number"){for(var bt=null,Pt=0,Ot=this.args;Pt=z[2]||_[1]<=z[1]||_[3]>=z[3])}function a0(_,z){var X=bv(_[0]),ue=n0(_[1]),ge=Math.pow(2,z.z);return[Math.round(X*ge*Nl),Math.round(ue*ge*Nl)]}function i0(_,z,X){var ue=_[0]-z[0],ge=_[1]-z[1],Le=_[0]-X[0],_e=_[1]-X[1];return ue*_e-Le*ge===0&&ue*Le<=0&&ge*_e<=0}function o0(_,z,X){return z[1]>_[1]!=X[1]>_[1]&&_[0]<(X[0]-z[0])*(_[1]-z[1])/(X[1]-z[1])+z[0]}function wh(_,z){for(var X=!1,ue=0,ge=z.length;ue0&&Jt<0||Ot<0&&Jt>0}function Tv(_,z,X,ue){var ge=[z[0]-_[0],z[1]-_[1]],Le=[ue[0]-X[0],ue[1]-X[1]];return l0(Le,ge)===0?!1:!!(wv(_,z,X,ue)&&wv(X,ue,_,z))}function nc(_,z,X){for(var ue=0,ge=X;ueX[2]){var ge=ue*.5,Le=_[0]-X[0]>ge?-ue:X[0]-_[0]>ge?ue:0;Le===0&&(Le=_[0]-X[2]>ge?-ue:X[2]-_[0]>ge?ue:0),_[0]+=Le}bh(z,_)}function u0(_){_[0]=_[1]=1/0,_[2]=_[3]=-1/0}function Ld(_,z,X,ue){for(var ge=Math.pow(2,ue.z)*Nl,Le=[ue.x*Nl,ue.y*Nl],_e=[],tt=0,bt=_;tt=0)return!1;var X=!0;return _.eachChild(function(ue){X&&!Bf(ue,z)&&(X=!1)}),X}var Au=function(z,X){this.type=X.type,this.name=z,this.boundExpression=X};Au.parse=function(z,X){if(z.length!==2||typeof z[1]!="string")return X.error("'var' expression requires exactly one string literal argument.");var ue=z[1];return X.scope.has(ue)?new Au(ue,X.scope.get(ue)):X.error('Unknown variable "'+ue+'". Make sure "'+ue+'" has been bound in an enclosing "let" expression before using it.',1)},Au.prototype.evaluate=function(z){return this.boundExpression.evaluate(z)},Au.prototype.eachChild=function(){},Au.prototype.outputDefined=function(){return!1},Au.prototype.serialize=function(){return["var",this.name]};var Ul=function(z,X,ue,ge,Le){X===void 0&&(X=[]),ge===void 0&&(ge=new Qr),Le===void 0&&(Le=[]),this.registry=z,this.path=X,this.key=X.map(function(_e){return"["+_e+"]"}).join(""),this.scope=ge,this.errors=Le,this.expectedType=ue};Ul.prototype.parse=function(z,X,ue,ge,Le){return Le===void 0&&(Le={}),X?this.concat(X,ue,ge)._parse(z,Le):this._parse(z,Le)},Ul.prototype._parse=function(z,X){(z===null||typeof z=="string"||typeof z=="boolean"||typeof z=="number")&&(z=["literal",z]);function ue(Ot,Jt,ir){return ir==="assert"?new ls(Jt,[Ot]):ir==="coerce"?new Vs(Jt,[Ot]):Ot}if(Array.isArray(z)){if(z.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ge=z[0];if(typeof ge!="string")return this.error("Expression name must be a string, but found "+typeof ge+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Le=this.registry[ge];if(Le){var _e=Le.parse(z,this);if(!_e)return null;if(this.expectedType){var tt=this.expectedType,bt=_e.type;if((tt.kind==="string"||tt.kind==="number"||tt.kind==="boolean"||tt.kind==="object"||tt.kind==="array")&&bt.kind==="value")_e=ue(_e,tt,X.typeAnnotation||"assert");else if((tt.kind==="color"||tt.kind==="formatted"||tt.kind==="resolvedImage")&&(bt.kind==="value"||bt.kind==="string"))_e=ue(_e,tt,X.typeAnnotation||"coerce");else if(this.checkSubtype(tt,bt))return null}if(!(_e instanceof Do)&&_e.type.kind!=="resolvedImage"&&Th(_e)){var Pt=new Bl;try{_e=new Do(_e.type,_e.evaluate(Pt))}catch(Ot){return this.error(Ot.message),null}}return _e}return this.error('Unknown expression "'+ge+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof z>"u"?this.error("'undefined' value invalid. Use null instead."):typeof z=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof z+" instead.")},Ul.prototype.concat=function(z,X,ue){var ge=typeof z=="number"?this.path.concat(z):this.path,Le=ue?this.scope.concat(ue):this.scope;return new Ul(this.registry,ge,X||null,Le,this.errors)},Ul.prototype.error=function(z){for(var X=[],ue=arguments.length-1;ue-- >0;)X[ue]=arguments[ue+1];var ge=""+this.key+X.map(function(Le){return"["+Le+"]"}).join("");this.errors.push(new Lr(ge,z))},Ul.prototype.checkSubtype=function(z,X){var ue=Hs(z,X);return ue&&this.error(ue),ue};function Th(_){if(_ instanceof Au)return Th(_.boundExpression);if(_ instanceof ts&&_.name==="error")return!1;if(_ instanceof Mu)return!1;if(_ instanceof pl)return!1;var z=_ instanceof Vs||_ instanceof ls,X=!0;return _.eachChild(function(ue){z?X=X&&Th(ue):X=X&&ue instanceof Do}),X?Bc(_)&&Bf(_,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Nc(_,z){for(var X=_.length-1,ue=0,ge=X,Le=0,_e,tt;ue<=ge;)if(Le=Math.floor((ue+ge)/2),_e=_[Le],tt=_[Le+1],_e<=z){if(Le===X||zz)ge=Le-1;else throw new Go("Input is not a number.");return 0}var ml=function(z,X,ue){this.type=z,this.input=X,this.labels=[],this.outputs=[];for(var ge=0,Le=ue;ge=tt)return X.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Pt);var Jt=X.parse(bt,Ot,Le);if(!Jt)return null;Le=Le||Jt.type,ge.push([tt,Jt])}return new ml(Le,ue,ge)},ml.prototype.evaluate=function(z){var X=this.labels,ue=this.outputs;if(X.length===1)return ue[0].evaluate(z);var ge=this.input.evaluate(z);if(ge<=X[0])return ue[0].evaluate(z);var Le=X.length;if(ge>=X[Le-1])return ue[Le-1].evaluate(z);var _e=Nc(X,ge);return ue[_e].evaluate(z)},ml.prototype.eachChild=function(z){z(this.input);for(var X=0,ue=this.outputs;X0&&z.push(this.labels[X]),z.push(this.outputs[X].serialize());return z};function So(_,z,X){return _*(1-X)+z*X}function Sh(_,z,X){return new Ei(So(_.r,z.r,X),So(_.g,z.g,X),So(_.b,z.b,X),So(_.a,z.a,X))}function c0(_,z,X){return _.map(function(ue,ge){return So(ue,z[ge],X)})}var Rd=Object.freeze({__proto__:null,number:So,color:Sh,array:c0}),Uc=.95047,Hc=1,js=1.08883,kd=4/29,Vc=6/29,Dd=3*Vc*Vc,f0=Vc*Vc*Vc,Av=Math.PI/180,Ch=180/Math.PI;function Mh(_){return _>f0?Math.pow(_,.3333333333333333):_/Dd+kd}function Ah(_){return _>Vc?_*_*_:Dd*(_-kd)}function jc(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,.4166666666666667)-.055)}function Od(_){return _/=255,_<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function Nf(_){var z=Od(_.r),X=Od(_.g),ue=Od(_.b),ge=Mh((.4124564*z+.3575761*X+.1804375*ue)/Uc),Le=Mh((.2126729*z+.7151522*X+.072175*ue)/Hc),_e=Mh((.0193339*z+.119192*X+.9503041*ue)/js);return{l:116*Le-16,a:500*(ge-Le),b:200*(Le-_e),alpha:_.a}}function Fd(_){var z=(_.l+16)/116,X=isNaN(_.a)?z:z+_.a/500,ue=isNaN(_.b)?z:z-_.b/200;return z=Hc*Ah(z),X=Uc*Ah(X),ue=js*Ah(ue),new Ei(jc(3.2404542*X-1.5371385*z-.4985314*ue),jc(-.969266*X+1.8760108*z+.041556*ue),jc(.0556434*X-.2040259*z+1.0572252*ue),_.alpha)}function eo(_,z,X){return{l:So(_.l,z.l,X),a:So(_.a,z.a,X),b:So(_.b,z.b,X),alpha:So(_.alpha,z.alpha,X)}}function Ev(_){var z=Nf(_),X=z.l,ue=z.a,ge=z.b,Le=Math.atan2(ge,ue)*Ch;return{h:Le<0?Le+360:Le,c:Math.sqrt(ue*ue+ge*ge),l:X,alpha:_.a}}function yl(_){var z=_.h*Av,X=_.c,ue=_.l;return Fd({l:ue,a:Math.cos(z)*X,b:Math.sin(z)*X,alpha:_.alpha})}function Pv(_,z,X){var ue=z-_;return _+X*(ue>180||ue<-180?ue-360*Math.round(ue/360):ue)}function Eh(_,z,X){return{h:Pv(_.h,z.h,X),c:So(_.c,z.c,X),l:So(_.l,z.l,X),alpha:So(_.alpha,z.alpha,X)}}var ic={forward:Nf,reverse:Fd,interpolate:eo},Eu={forward:Ev,reverse:yl,interpolate:Eh},_d=Object.freeze({__proto__:null,lab:ic,hcl:Eu}),Io=function(z,X,ue,ge,Le){this.type=z,this.operator=X,this.interpolation=ue,this.input=ge,this.labels=[],this.outputs=[];for(var _e=0,tt=Le;_e1}))return X.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ge={name:"cubic-bezier",controlPoints:bt}}else return X.error("Unknown interpolation type "+String(ge[0]),1,0);if(z.length-1<4)return X.error("Expected at least 4 arguments, but found only "+(z.length-1)+".");if((z.length-1)%2!==0)return X.error("Expected an even number of arguments.");if(Le=X.parse(Le,2,rn),!Le)return null;var Pt=[],Ot=null;ue==="interpolate-hcl"||ue==="interpolate-lab"?Ot=zn:X.expectedType&&X.expectedType.kind!=="value"&&(Ot=X.expectedType);for(var Jt=0;Jt<_e.length;Jt+=2){var ir=_e[Jt],rr=_e[Jt+1],Tr=Jt+3,Nr=Jt+4;if(typeof ir!="number")return X.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',Tr);if(Pt.length&&Pt[Pt.length-1][0]>=ir)return X.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Tr);var pn=X.parse(rr,Nr,Ot);if(!pn)return null;Ot=Ot||pn.type,Pt.push([ir,pn])}return Ot.kind!=="number"&&Ot.kind!=="color"&&!(Ot.kind==="array"&&Ot.itemType.kind==="number"&&typeof Ot.N=="number")?X.error("Type "+Di(Ot)+" is not interpolatable."):new Io(Ot,ue,ge,Le,Pt)},Io.prototype.evaluate=function(z){var X=this.labels,ue=this.outputs;if(X.length===1)return ue[0].evaluate(z);var ge=this.input.evaluate(z);if(ge<=X[0])return ue[0].evaluate(z);var Le=X.length;if(ge>=X[Le-1])return ue[Le-1].evaluate(z);var _e=Nc(X,ge),tt=X[_e],bt=X[_e+1],Pt=Io.interpolationFactor(this.interpolation,ge,tt,bt),Ot=ue[_e].evaluate(z),Jt=ue[_e+1].evaluate(z);return this.operator==="interpolate"?Rd[this.type.kind.toLowerCase()](Ot,Jt,Pt):this.operator==="interpolate-hcl"?Eu.reverse(Eu.interpolate(Eu.forward(Ot),Eu.forward(Jt),Pt)):ic.reverse(ic.interpolate(ic.forward(Ot),ic.forward(Jt),Pt))},Io.prototype.eachChild=function(z){z(this.input);for(var X=0,ue=this.outputs;X=ue.length)throw new Go("Array index out of bounds: "+X+" > "+(ue.length-1)+".");if(X!==Math.floor(X))throw new Go("Array index must be an integer, but found "+X+" instead.");return ue[X]},oc.prototype.eachChild=function(z){z(this.index),z(this.input)},oc.prototype.outputDefined=function(){return!1},oc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Pu=function(z,X){this.type=_n,this.needle=z,this.haystack=X};Pu.parse=function(z,X){if(z.length!==3)return X.error("Expected 2 arguments, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1,Wn),ge=X.parse(z[2],2,Wn);return!ue||!ge?null:ss(ue.type,[_n,Pn,rn,$r,Wn])?new Pu(ue,ge):X.error("Expected first argument to be of type boolean, string, number or null, but found "+Di(ue.type)+" instead")},Pu.prototype.evaluate=function(z){var X=this.needle.evaluate(z),ue=this.haystack.evaluate(z);if(!ue)return!1;if(!Dc(X,["boolean","string","number","null"]))throw new Go("Expected first argument to be of type boolean, string, number or null, but found "+Di(Lo(X))+" instead.");if(!Dc(ue,["string","array"]))throw new Go("Expected second argument to be of type array or string, but found "+Di(Lo(ue))+" instead.");return ue.indexOf(X)>=0},Pu.prototype.eachChild=function(z){z(this.needle),z(this.haystack)},Pu.prototype.outputDefined=function(){return!0},Pu.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var bl=function(z,X,ue){this.type=rn,this.needle=z,this.haystack=X,this.fromIndex=ue};bl.parse=function(z,X){if(z.length<=2||z.length>=5)return X.error("Expected 3 or 4 arguments, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1,Wn),ge=X.parse(z[2],2,Wn);if(!ue||!ge)return null;if(!ss(ue.type,[_n,Pn,rn,$r,Wn]))return X.error("Expected first argument to be of type boolean, string, number or null, but found "+Di(ue.type)+" instead");if(z.length===4){var Le=X.parse(z[3],3,rn);return Le?new bl(ue,ge,Le):null}else return new bl(ue,ge)},bl.prototype.evaluate=function(z){var X=this.needle.evaluate(z),ue=this.haystack.evaluate(z);if(!Dc(X,["boolean","string","number","null"]))throw new Go("Expected first argument to be of type boolean, string, number or null, but found "+Di(Lo(X))+" instead.");if(!Dc(ue,["string","array"]))throw new Go("Expected second argument to be of type array or string, but found "+Di(Lo(ue))+" instead.");if(this.fromIndex){var ge=this.fromIndex.evaluate(z);return ue.indexOf(X,ge)}return ue.indexOf(X)},bl.prototype.eachChild=function(z){z(this.needle),z(this.haystack),this.fromIndex&&z(this.fromIndex)},bl.prototype.outputDefined=function(){return!1},bl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var z=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),z]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var ou=function(z,X,ue,ge,Le,_e){this.inputType=z,this.type=X,this.input=ue,this.cases=ge,this.outputs=Le,this.otherwise=_e};ou.parse=function(z,X){if(z.length<5)return X.error("Expected at least 4 arguments, but found only "+(z.length-1)+".");if(z.length%2!==1)return X.error("Expected an even number of arguments.");var ue,ge;X.expectedType&&X.expectedType.kind!=="value"&&(ge=X.expectedType);for(var Le={},_e=[],tt=2;ttNumber.MAX_SAFE_INTEGER)return Ot.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof rr=="number"&&Math.floor(rr)!==rr)return Ot.error("Numeric branch labels must be integer values.");if(!ue)ue=Lo(rr);else if(Ot.checkSubtype(ue,Lo(rr)))return null;if(typeof Le[String(rr)]<"u")return Ot.error("Branch labels must be unique.");Le[String(rr)]=_e.length}var Tr=X.parse(Pt,tt,ge);if(!Tr)return null;ge=ge||Tr.type,_e.push(Tr)}var Nr=X.parse(z[1],1,Wn);if(!Nr)return null;var pn=X.parse(z[z.length-1],z.length-1,ge);return!pn||Nr.type.kind!=="value"&&X.concat(1).checkSubtype(ue,Nr.type)?null:new ou(ue,ge,Nr,Le,_e,pn)},ou.prototype.evaluate=function(z){var X=this.input.evaluate(z),ue=Lo(X)===this.inputType&&this.outputs[this.cases[X]]||this.otherwise;return ue.evaluate(z)},ou.prototype.eachChild=function(z){z(this.input),this.outputs.forEach(z),z(this.otherwise)},ou.prototype.outputDefined=function(){return this.outputs.every(function(z){return z.outputDefined()})&&this.otherwise.outputDefined()},ou.prototype.serialize=function(){for(var z=this,X=["match",this.input.serialize()],ue=Object.keys(this.cases).sort(),ge=[],Le={},_e=0,tt=ue;_e=5)return X.error("Expected 3 or 4 arguments, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1,Wn),ge=X.parse(z[2],2,rn);if(!ue||!ge)return null;if(!ss(ue.type,[qi(Wn),Pn,Wn]))return X.error("Expected first argument to be of type array or string, but found "+Di(ue.type)+" instead");if(z.length===4){var Le=X.parse(z[3],3,rn);return Le?new il(ue.type,ue,ge,Le):null}else return new il(ue.type,ue,ge)},il.prototype.evaluate=function(z){var X=this.input.evaluate(z),ue=this.beginIndex.evaluate(z);if(!Dc(X,["string","array"]))throw new Go("Expected first argument to be of type array or string, but found "+Di(Lo(X))+" instead.");if(this.endIndex){var ge=this.endIndex.evaluate(z);return X.slice(ue,ge)}return X.slice(ue)},il.prototype.eachChild=function(z){z(this.input),z(this.beginIndex),this.endIndex&&z(this.endIndex)},il.prototype.outputDefined=function(){return!1},il.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var z=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),z]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Hf(_,z){return _==="=="||_==="!="?z.kind==="boolean"||z.kind==="string"||z.kind==="number"||z.kind==="null"||z.kind==="value":z.kind==="string"||z.kind==="number"||z.kind==="value"}function d0(_,z,X){return z===X}function h0(_,z,X){return z!==X}function v0(_,z,X){return zX}function Ph(_,z,X){return z<=X}function Lv(_,z,X){return z>=X}function Gc(_,z,X,ue){return ue.compare(z,X)===0}function rs(_,z,X,ue){return!Gc(_,z,X,ue)}function qs(_,z,X,ue){return ue.compare(z,X)<0}function Wc(_,z,X,ue){return ue.compare(z,X)>0}function Iv(_,z,X,ue){return ue.compare(z,X)<=0}function Vf(_,z,X,ue){return ue.compare(z,X)>=0}function su(_,z,X){var ue=_!=="=="&&_!=="!=";return function(){function ge(Le,_e,tt){this.type=_n,this.lhs=Le,this.rhs=_e,this.collator=tt,this.hasUntypedArgument=Le.type.kind==="value"||_e.type.kind==="value"}return ge.parse=function(_e,tt){if(_e.length!==3&&_e.length!==4)return tt.error("Expected two or three arguments.");var bt=_e[0],Pt=tt.parse(_e[1],1,Wn);if(!Pt)return null;if(!Hf(bt,Pt.type))return tt.concat(1).error('"'+bt+`" comparisons are not supported for type '`+Di(Pt.type)+"'.");var Ot=tt.parse(_e[2],2,Wn);if(!Ot)return null;if(!Hf(bt,Ot.type))return tt.concat(2).error('"'+bt+`" comparisons are not supported for type '`+Di(Ot.type)+"'.");if(Pt.type.kind!==Ot.type.kind&&Pt.type.kind!=="value"&&Ot.type.kind!=="value")return tt.error("Cannot compare types '"+Di(Pt.type)+"' and '"+Di(Ot.type)+"'.");ue&&(Pt.type.kind==="value"&&Ot.type.kind!=="value"?Pt=new ls(Ot.type,[Pt]):Pt.type.kind!=="value"&&Ot.type.kind==="value"&&(Ot=new ls(Pt.type,[Ot])));var Jt=null;if(_e.length===4){if(Pt.type.kind!=="string"&&Ot.type.kind!=="string"&&Pt.type.kind!=="value"&&Ot.type.kind!=="value")return tt.error("Cannot use collator to compare non-string types.");if(Jt=tt.parse(_e[3],3,xa),!Jt)return null}return new ge(Pt,Ot,Jt)},ge.prototype.evaluate=function(_e){var tt=this.lhs.evaluate(_e),bt=this.rhs.evaluate(_e);if(ue&&this.hasUntypedArgument){var Pt=Lo(tt),Ot=Lo(bt);if(Pt.kind!==Ot.kind||!(Pt.kind==="string"||Pt.kind==="number"))throw new Go('Expected arguments for "'+_+'" to be (string, string) or (number, number), but found ('+Pt.kind+", "+Ot.kind+") instead.")}if(this.collator&&!ue&&this.hasUntypedArgument){var Jt=Lo(tt),ir=Lo(bt);if(Jt.kind!=="string"||ir.kind!=="string")return z(_e,tt,bt)}return this.collator?X(_e,tt,bt,this.collator.evaluate(_e)):z(_e,tt,bt)},ge.prototype.eachChild=function(_e){_e(this.lhs),_e(this.rhs),this.collator&&_e(this.collator)},ge.prototype.outputDefined=function(){return!0},ge.prototype.serialize=function(){var _e=[_];return this.eachChild(function(tt){_e.push(tt.serialize())}),_e},ge}()}var g0=su("==",d0,Gc),Rv=su("!=",h0,rs),kv=su("<",v0,qs),Lh=su(">",p0,Wc),Dv=su("<=",Ph,Iv),ks=su(">=",Lv,Vf),Tl=function(z,X,ue,ge,Le){this.type=Pn,this.number=z,this.locale=X,this.currency=ue,this.minFractionDigits=ge,this.maxFractionDigits=Le};Tl.parse=function(z,X){if(z.length!==3)return X.error("Expected two arguments.");var ue=X.parse(z[1],1,rn);if(!ue)return null;var ge=z[2];if(typeof ge!="object"||Array.isArray(ge))return X.error("NumberFormat options argument must be an object.");var Le=null;if(ge.locale&&(Le=X.parse(ge.locale,1,Pn),!Le))return null;var _e=null;if(ge.currency&&(_e=X.parse(ge.currency,1,Pn),!_e))return null;var tt=null;if(ge["min-fraction-digits"]&&(tt=X.parse(ge["min-fraction-digits"],1,rn),!tt))return null;var bt=null;return ge["max-fraction-digits"]&&(bt=X.parse(ge["max-fraction-digits"],1,rn),!bt)?null:new Tl(ue,Le,_e,tt,bt)},Tl.prototype.evaluate=function(z){return new Intl.NumberFormat(this.locale?this.locale.evaluate(z):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(z):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(z):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(z):void 0}).format(this.number.evaluate(z))},Tl.prototype.eachChild=function(z){z(this.number),this.locale&&z(this.locale),this.currency&&z(this.currency),this.minFractionDigits&&z(this.minFractionDigits),this.maxFractionDigits&&z(this.maxFractionDigits)},Tl.prototype.outputDefined=function(){return!1},Tl.prototype.serialize=function(){var z={};return this.locale&&(z.locale=this.locale.serialize()),this.currency&&(z.currency=this.currency.serialize()),this.minFractionDigits&&(z["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(z["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),z]};var Lu=function(z){this.type=rn,this.input=z};Lu.parse=function(z,X){if(z.length!==2)return X.error("Expected 1 argument, but found "+(z.length-1)+" instead.");var ue=X.parse(z[1],1);return ue?ue.type.kind!=="array"&&ue.type.kind!=="string"&&ue.type.kind!=="value"?X.error("Expected argument of type string or array, but found "+Di(ue.type)+" instead."):new Lu(ue):null},Lu.prototype.evaluate=function(z){var X=this.input.evaluate(z);if(typeof X=="string")return X.length;if(Array.isArray(X))return X.length;throw new Go("Expected value to be of type string or array, but found "+Di(Lo(X))+" instead.")},Lu.prototype.eachChild=function(z){z(this.input)},Lu.prototype.outputDefined=function(){return!1},Lu.prototype.serialize=function(){var z=["length"];return this.eachChild(function(X){z.push(X.serialize())}),z};var $c={"==":g0,"!=":Rv,">":Lh,"<":kv,">=":ks,"<=":Dv,array:ls,at:oc,boolean:ls,case:wl,coalesce:xl,collator:Mu,format:us,image:Qs,in:Pu,"index-of":bl,interpolate:Io,"interpolate-hcl":Io,"interpolate-lab":Io,length:Lu,let:iu,literal:Do,match:ou,number:ls,"number-format":Tl,object:ls,slice:il,step:ml,string:ls,"to-boolean":Vs,"to-color":Vs,"to-number":Vs,"to-string":Vs,var:Au,within:pl};function zd(_,z){var X=z[0],ue=z[1],ge=z[2],Le=z[3];X=X.evaluate(_),ue=ue.evaluate(_),ge=ge.evaluate(_);var _e=Le?Le.evaluate(_):1,tt=Oc(X,ue,ge,_e);if(tt)throw new Go(tt);return new Ei(X/255*_e,ue/255*_e,ge/255*_e,_e)}function sc(_,z){return _ in z}function lc(_,z){var X=z[_];return typeof X>"u"?null:X}function Ov(_,z,X,ue){for(;X<=ue;){var ge=X+ue>>1;if(z[ge]===_)return!0;z[ge]>_?ue=ge-1:X=ge+1}return!1}function lu(_){return{type:_}}ts.register($c,{error:[Oa,[Pn],function(_,z){var X=z[0];throw new Go(X.evaluate(_))}],typeof:[Pn,[Wn],function(_,z){var X=z[0];return Di(Lo(X.evaluate(_)))}],"to-rgba":[qi(rn,4),[zn],function(_,z){var X=z[0];return X.evaluate(_).toArray()}],rgb:[zn,[rn,rn,rn],zd],rgba:[zn,[rn,rn,rn,rn],zd],has:{type:_n,overloads:[[[Pn],function(_,z){var X=z[0];return sc(X.evaluate(_),_.properties())}],[[Pn,Zn],function(_,z){var X=z[0],ue=z[1];return sc(X.evaluate(_),ue.evaluate(_))}]]},get:{type:Wn,overloads:[[[Pn],function(_,z){var X=z[0];return lc(X.evaluate(_),_.properties())}],[[Pn,Zn],function(_,z){var X=z[0],ue=z[1];return lc(X.evaluate(_),ue.evaluate(_))}]]},"feature-state":[Wn,[Pn],function(_,z){var X=z[0];return lc(X.evaluate(_),_.featureState||{})}],properties:[Zn,[],function(_){return _.properties()}],"geometry-type":[Pn,[],function(_){return _.geometryType()}],id:[Wn,[],function(_){return _.id()}],zoom:[rn,[],function(_){return _.globals.zoom}],"heatmap-density":[rn,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[rn,[],function(_){return _.globals.lineProgress||0}],accumulated:[Wn,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[rn,lu(rn),function(_,z){for(var X=0,ue=0,ge=z;ue":[_n,[Pn,Wn],function(_,z){var X=z[0],ue=z[1],ge=_.properties()[X.value],Le=ue.value;return typeof ge==typeof Le&&ge>Le}],"filter-id->":[_n,[Wn],function(_,z){var X=z[0],ue=_.id(),ge=X.value;return typeof ue==typeof ge&&ue>ge}],"filter-<=":[_n,[Pn,Wn],function(_,z){var X=z[0],ue=z[1],ge=_.properties()[X.value],Le=ue.value;return typeof ge==typeof Le&&ge<=Le}],"filter-id-<=":[_n,[Wn],function(_,z){var X=z[0],ue=_.id(),ge=X.value;return typeof ue==typeof ge&&ue<=ge}],"filter->=":[_n,[Pn,Wn],function(_,z){var X=z[0],ue=z[1],ge=_.properties()[X.value],Le=ue.value;return typeof ge==typeof Le&&ge>=Le}],"filter-id->=":[_n,[Wn],function(_,z){var X=z[0],ue=_.id(),ge=X.value;return typeof ue==typeof ge&&ue>=ge}],"filter-has":[_n,[Wn],function(_,z){var X=z[0];return X.value in _.properties()}],"filter-has-id":[_n,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[_n,[qi(Pn)],function(_,z){var X=z[0];return X.value.indexOf(_.geometryType())>=0}],"filter-id-in":[_n,[qi(Wn)],function(_,z){var X=z[0];return X.value.indexOf(_.id())>=0}],"filter-in-small":[_n,[Pn,qi(Wn)],function(_,z){var X=z[0],ue=z[1];return ue.value.indexOf(_.properties()[X.value])>=0}],"filter-in-large":[_n,[Pn,qi(Wn)],function(_,z){var X=z[0],ue=z[1];return Ov(_.properties()[X.value],ue.value,0,ue.value.length-1)}],all:{type:_n,overloads:[[[_n,_n],function(_,z){var X=z[0],ue=z[1];return X.evaluate(_)&&ue.evaluate(_)}],[lu(_n),function(_,z){for(var X=0,ue=z;X-1}function Xc(_){return!!_.expression&&_.expression.interpolated}function Yi(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function Zc(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Bd(_){return _}function Fv(_,z){var X=z.type==="color",ue=_.stops&&typeof _.stops[0][0]=="object",ge=ue||_.property!==void 0,Le=ue||!ge,_e=_.type||(Xc(z)?"exponential":"interval");if(X&&(_=Hn({},_),_.stops&&(_.stops=_.stops.map(function(ca){return[ca[0],Ei.parse(ca[1])]})),_.default?_.default=Ei.parse(_.default):_.default=Ei.parse(z.default)),_.colorSpace&&_.colorSpace!=="rgb"&&!_d[_.colorSpace])throw new Error("Unknown color space: "+_.colorSpace);var tt,bt,Pt;if(_e==="exponential")tt=Ih;else if(_e==="interval")tt=Nd;else if(_e==="categorical"){tt=Gf,bt=Object.create(null);for(var Ot=0,Jt=_.stops;Ot=_.stops[ue-1][0])return _.stops[ue-1][1];var ge=Nc(_.stops.map(function(Le){return Le[0]}),X);return _.stops[ge][1]}function Ih(_,z,X){var ue=_.base!==void 0?_.base:1;if(Yi(X)!=="number")return Kc(_.default,z.default);var ge=_.stops.length;if(ge===1||X<=_.stops[0][0])return _.stops[0][1];if(X>=_.stops[ge-1][0])return _.stops[ge-1][1];var Le=Nc(_.stops.map(function(Jt){return Jt[0]}),X),_e=$f(X,ue,_.stops[Le][0],_.stops[Le+1][0]),tt=_.stops[Le][1],bt=_.stops[Le+1][1],Pt=Rd[z.type]||Bd;if(_.colorSpace&&_.colorSpace!=="rgb"){var Ot=_d[_.colorSpace];Pt=function(Jt,ir){return Ot.reverse(Ot.interpolate(Ot.forward(Jt),Ot.forward(ir),_e))}}return typeof tt.evaluate=="function"?{evaluate:function(){for(var ir=[],rr=arguments.length;rr--;)ir[rr]=arguments[rr];var Tr=tt.evaluate.apply(void 0,ir),Nr=bt.evaluate.apply(void 0,ir);if(!(Tr===void 0||Nr===void 0))return Pt(Tr,Nr,_e)}}:Pt(tt,bt,_e)}function Wf(_,z,X){return z.type==="color"?X=Ei.parse(X):z.type==="formatted"?X=es.fromString(X.toString()):z.type==="resolvedImage"?X=Rs.fromString(X.toString()):Yi(X)!==z.type&&(z.type!=="enum"||!z.values[X])&&(X=void 0),Kc(X,_.default,z.default)}function $f(_,z,X,ue){var ge=ue-X,Le=_-X;return ge===0?0:z===1?Le/ge:(Math.pow(z,Le)-1)/(Math.pow(z,ge)-1)}var Ru=function(z,X){this.expression=z,this._warningHistory={},this._evaluator=new Bl,this._defaultValue=X?_v(X):null,this._enumValues=X&&X.type==="enum"?X.values:null};Ru.prototype.evaluateWithoutErrorHandling=function(z,X,ue,ge,Le,_e){return this._evaluator.globals=z,this._evaluator.feature=X,this._evaluator.featureState=ue,this._evaluator.canonical=ge,this._evaluator.availableImages=Le||null,this._evaluator.formattedSection=_e,this.expression.evaluate(this._evaluator)},Ru.prototype.evaluate=function(z,X,ue,ge,Le,_e){this._evaluator.globals=z,this._evaluator.feature=X||null,this._evaluator.featureState=ue||null,this._evaluator.canonical=ge,this._evaluator.availableImages=Le||null,this._evaluator.formattedSection=_e||null;try{var tt=this.expression.evaluate(this._evaluator);if(tt==null||typeof tt=="number"&&tt!==tt)return this._defaultValue;if(this._enumValues&&!(tt in this._enumValues))throw new Go("Expected value to be one of "+Object.keys(this._enumValues).map(function(bt){return JSON.stringify(bt)}).join(", ")+", but found "+JSON.stringify(tt)+" instead.");return tt}catch(bt){return this._warningHistory[bt.message]||(this._warningHistory[bt.message]=!0,typeof console<"u"&&console.warn(bt.message)),this._defaultValue}};function Yf(_){return Array.isArray(_)&&_.length>0&&typeof _[0]=="string"&&_[0]in $c}function ku(_,z){var X=new Ul($c,[],z?m0(z):void 0),ue=X.parse(_,void 0,void 0,void 0,z&&z.type==="string"?{typeAnnotation:"coerce"}:void 0);return ue?Yc(new Ru(ue,z)):Iu(X.errors)}var Wo=function(z,X){this.kind=z,this._styleExpression=X,this.isStateDependent=z!=="constant"&&!ac(X.expression)};Wo.prototype.evaluateWithoutErrorHandling=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluateWithoutErrorHandling(z,X,ue,ge,Le,_e)},Wo.prototype.evaluate=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluate(z,X,ue,ge,Le,_e)};var Hl=function(z,X,ue,ge){this.kind=z,this.zoomStops=ue,this._styleExpression=X,this.isStateDependent=z!=="camera"&&!ac(X.expression),this.interpolationType=ge};Hl.prototype.evaluateWithoutErrorHandling=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluateWithoutErrorHandling(z,X,ue,ge,Le,_e)},Hl.prototype.evaluate=function(z,X,ue,ge,Le,_e){return this._styleExpression.evaluate(z,X,ue,ge,Le,_e)},Hl.prototype.interpolationFactor=function(z,X,ue){return this.interpolationType?Io.interpolationFactor(this.interpolationType,z,X,ue):0};function Rh(_,z){if(_=ku(_,z),_.result==="error")return _;var X=_.value.expression,ue=Bc(X);if(!ue&&!uu(z))return Iu([new Lr("","data expressions not supported")]);var ge=Bf(X,["zoom"]);if(!ge&&!jf(z))return Iu([new Lr("","zoom expressions not supported")]);var Le=Xf(X);if(!Le&&!ge)return Iu([new Lr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Le instanceof Lr)return Iu([Le]);if(Le instanceof Io&&!Xc(z))return Iu([new Lr("",'"interpolate" expressions cannot be used with this property')]);if(!Le)return Yc(ue?new Wo("constant",_.value):new Wo("source",_.value));var _e=Le instanceof Io?Le.interpolation:void 0;return Yc(ue?new Hl("camera",_.value,Le.labels,_e):new Hl("composite",_.value,Le.labels,_e))}var uc=function(z,X){this._parameters=z,this._specification=X,Hn(this,Fv(this._parameters,this._specification))};uc.deserialize=function(z){return new uc(z._parameters,z._specification)},uc.serialize=function(z){return{_parameters:z._parameters,_specification:z._specification}};function Ud(_,z){if(Zc(_))return new uc(_,z);if(Yf(_)){var X=Rh(_,z);if(X.result==="error")throw new Error(X.value.map(function(ge){return ge.key+": "+ge.message}).join(", "));return X.value}else{var ue=_;return typeof _=="string"&&z.type==="color"&&(ue=Ei.parse(_)),{kind:"constant",evaluate:function(){return ue}}}}function Xf(_){var z=null;if(_ instanceof iu)z=Xf(_.result);else if(_ instanceof xl)for(var X=0,ue=_.args;Xue.maximum?[new Vr(z,X,X+" is greater than the maximum value "+ue.maximum)]:[]}function zv(_){var z=_.valueSpec,X=yn(_.value.type),ue,ge={},Le,_e,tt=X!=="categorical"&&_.value.property===void 0,bt=!tt,Pt=Yi(_.value.stops)==="array"&&Yi(_.value.stops[0])==="array"&&Yi(_.value.stops[0][0])==="object",Ot=ws({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:Jt,default:Tr}});return X==="identity"&&tt&&Ot.push(new Vr(_.key,_.value,'missing required property "property"')),X!=="identity"&&!_.value.stops&&Ot.push(new Vr(_.key,_.value,'missing required property "stops"')),X==="exponential"&&_.valueSpec.expression&&!Xc(_.valueSpec)&&Ot.push(new Vr(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(bt&&!uu(_.valueSpec)?Ot.push(new Vr(_.key,_.value,"property functions not supported")):tt&&!jf(_.valueSpec)&&Ot.push(new Vr(_.key,_.value,"zoom functions not supported"))),(X==="categorical"||Pt)&&_.value.property===void 0&&Ot.push(new Vr(_.key,_.value,'"property" property is required')),Ot;function Jt(Nr){if(X==="identity")return[new Vr(Nr.key,Nr.value,'identity function may not have a "stops" property')];var pn=[],on=Nr.value;return pn=pn.concat(Zf({key:Nr.key,value:on,valueSpec:Nr.valueSpec,style:Nr.style,styleSpec:Nr.styleSpec,arrayElementValidator:ir})),Yi(on)==="array"&&on.length===0&&pn.push(new Vr(Nr.key,on,"array must have at least one stop")),pn}function ir(Nr){var pn=[],on=Nr.value,Dn=Nr.key;if(Yi(on)!=="array")return[new Vr(Dn,on,"array expected, "+Yi(on)+" found")];if(on.length!==2)return[new Vr(Dn,on,"array length 2 expected, length "+on.length+" found")];if(Pt){if(Yi(on[0])!=="object")return[new Vr(Dn,on,"object expected, "+Yi(on[0])+" found")];if(on[0].zoom===void 0)return[new Vr(Dn,on,"object stop key must have zoom")];if(on[0].value===void 0)return[new Vr(Dn,on,"object stop key must have value")];if(_e&&_e>yn(on[0].zoom))return[new Vr(Dn,on[0].zoom,"stop zoom values must appear in ascending order")];yn(on[0].zoom)!==_e&&(_e=yn(on[0].zoom),Le=void 0,ge={}),pn=pn.concat(ws({key:Dn+"[0]",value:on[0],valueSpec:{zoom:{}},style:Nr.style,styleSpec:Nr.styleSpec,objectElementValidators:{zoom:Jc,value:rr}}))}else pn=pn.concat(rr({key:Dn+"[0]",value:on[0],valueSpec:{},style:Nr.style,styleSpec:Nr.styleSpec},on));return Yf(vn(on[1]))?pn.concat([new Vr(Dn+"[1]",on[1],"expressions are not allowed in function stops.")]):pn.concat(Fr({key:Dn+"[1]",value:on[1],valueSpec:z,style:Nr.style,styleSpec:Nr.styleSpec}))}function rr(Nr,pn){var on=Yi(Nr.value),Dn=yn(Nr.value),Cn=Nr.value!==null?Nr.value:pn;if(!ue)ue=on;else if(on!==ue)return[new Vr(Nr.key,Cn,on+" stop domain type must match previous stop domain type "+ue)];if(on!=="number"&&on!=="string"&&on!=="boolean")return[new Vr(Nr.key,Cn,"stop domain value must be a number, string, or boolean")];if(on!=="number"&&X!=="categorical"){var kn="number expected, "+on+" found";return uu(z)&&X===void 0&&(kn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Vr(Nr.key,Cn,kn)]}return X==="categorical"&&on==="number"&&(!isFinite(Dn)||Math.floor(Dn)!==Dn)?[new Vr(Nr.key,Cn,"integer expected, found "+Dn)]:X!=="categorical"&&on==="number"&&Le!==void 0&&Dn=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var z=0,X=_.slice(1);zz?1:0}function Jf(_){if(!Array.isArray(_))return!1;if(_[0]==="within")return!0;for(var z=1;z<_.length;z++)if(Jf(_[z]))return!0;return!1}function Qf(_){if(!_)return!0;var z=_[0];if(_.length<=1)return z!=="any";var X=z==="=="?Vd(_[1],_[2],"=="):z==="!="?cc(Vd(_[1],_[2],"==")):z==="<"||z===">"||z==="<="||z===">="?Vd(_[1],_[2],z):z==="any"?Bv(_.slice(1)):z==="all"?["all"].concat(_.slice(1).map(Qf)):z==="none"?["all"].concat(_.slice(1).map(Qf).map(cc)):z==="in"?qf(_[1],_.slice(2)):z==="!in"?cc(qf(_[1],_.slice(2))):z==="has"?Dh(_[1]):z==="!has"?cc(Dh(_[1])):z==="within"?_:!0;return X}function Vd(_,z,X){switch(_){case"$type":return["filter-type-"+X,z];case"$id":return["filter-id-"+X,z];default:return["filter-"+X,_,z]}}function Bv(_){return["any"].concat(_.map(Qf))}function qf(_,z){if(z.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",z]];case"$id":return["filter-id-in",["literal",z]];default:return z.length>200&&!z.some(function(X){return typeof X!=typeof z[0]})?["filter-in-large",_,["literal",z.sort(kh)]]:["filter-in-small",_,["literal",z]]}}function Dh(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function cc(_){return["!",_]}function Oh(_){return Hd(vn(_.value))?Du(Hn({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ed(_)}function ed(_){var z=_.value,X=_.key;if(Yi(z)!=="array")return[new Vr(X,z,"array expected, "+Yi(z)+" found")];var ue=_.styleSpec,ge,Le=[];if(z.length<1)return[new Vr(X,z,"filter array must have at least 1 element")];switch(Le=Le.concat(Kf({key:X+"[0]",value:z[0],valueSpec:ue.filter_operator,style:_.style,styleSpec:_.styleSpec})),yn(z[0])){case"<":case"<=":case">":case">=":z.length>=2&&yn(z[1])==="$type"&&Le.push(new Vr(X,z,'"$type" cannot be use with operator "'+z[0]+'"'));case"==":case"!=":z.length!==3&&Le.push(new Vr(X,z,'filter array for operator "'+z[0]+'" must have 3 elements'));case"in":case"!in":z.length>=2&&(ge=Yi(z[1]),ge!=="string"&&Le.push(new Vr(X+"[1]",z[1],"string expected, "+ge+" found")));for(var _e=2;_e=Ot[rr+0]&&ue>=Ot[rr+1])?(_e[ir]=!0,Le.push(Pt[ir])):_e[ir]=!1}}},Xi.prototype._forEachCell=function(_,z,X,ue,ge,Le,_e,tt){for(var bt=this._convertToCellCoord(_),Pt=this._convertToCellCoord(z),Ot=this._convertToCellCoord(X),Jt=this._convertToCellCoord(ue),ir=bt;ir<=Ot;ir++)for(var rr=Pt;rr<=Jt;rr++){var Tr=this.d*rr+ir;if(!(tt&&!tt(this._convertFromCellCoord(ir),this._convertFromCellCoord(rr),this._convertFromCellCoord(ir+1),this._convertFromCellCoord(rr+1)))&&ge.call(this,_,z,X,ue,Tr,Le,_e,tt))return}},Xi.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},Xi.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},Xi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,z=yi+this.cells.length+1+1,X=0,ue=0;ue=0)){var Jt=_[Ot];Pt[Ot]=De[bt].shallow.indexOf(Ot)>=0?Jt:Dt(Jt,z)}_ instanceof Error&&(Pt.message=_.message)}if(Pt.$name)throw new Error("$name property is reserved for worker serialization logic.");return bt!=="Object"&&(Pt.$name=bt),Pt}throw new Error("can't serialize object of type "+typeof _)}function Et(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||ct(_)||gt(_)||ArrayBuffer.isView(_)||_ instanceof Ro)return _;if(Array.isArray(_))return _.map(Et);if(typeof _=="object"){var z=_.$name||"Object",X=De[z],ue=X.klass;if(!ue)throw new Error("can't deserialize unregistered class "+z);if(ue.deserialize)return ue.deserialize(_);for(var ge=Object.create(ue.prototype),Le=0,_e=Object.keys(_);Le<_e.length;Le+=1){var tt=_e[Le];if(tt!=="$name"){var bt=_[tt];ge[tt]=De[z].shallow.indexOf(tt)>=0?bt:Et(bt)}}return ge}throw new Error("can't deserialize object of type "+typeof _)}var Yt=function(){this.first=!0};Yt.prototype.update=function(z,X){var ue=Math.floor(z);return this.first?(this.first=!1,this.lastIntegerZoom=ue,this.lastIntegerZoomTime=0,this.lastZoom=z,this.lastFloorZoom=ue,!0):(this.lastFloorZoom>ue?(this.lastIntegerZoom=ue+1,this.lastIntegerZoomTime=X):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function nr(_){for(var z=0,X=_;z=65097&&_<=65103)||Zt["CJK Compatibility Ideographs"](_)||Zt["CJK Compatibility"](_)||Zt["CJK Radicals Supplement"](_)||Zt["CJK Strokes"](_)||Zt["CJK Symbols and Punctuation"](_)&&!(_>=12296&&_<=12305)&&!(_>=12308&&_<=12319)&&_!==12336||Zt["CJK Unified Ideographs Extension A"](_)||Zt["CJK Unified Ideographs"](_)||Zt["Enclosed CJK Letters and Months"](_)||Zt["Hangul Compatibility Jamo"](_)||Zt["Hangul Jamo Extended-A"](_)||Zt["Hangul Jamo Extended-B"](_)||Zt["Hangul Jamo"](_)||Zt["Hangul Syllables"](_)||Zt.Hiragana(_)||Zt["Ideographic Description Characters"](_)||Zt.Kanbun(_)||Zt["Kangxi Radicals"](_)||Zt["Katakana Phonetic Extensions"](_)||Zt.Katakana(_)&&_!==12540||Zt["Halfwidth and Fullwidth Forms"](_)&&_!==65288&&_!==65289&&_!==65293&&!(_>=65306&&_<=65310)&&_!==65339&&_!==65341&&_!==65343&&!(_>=65371&&_<=65503)&&_!==65507&&!(_>=65512&&_<=65519)||Zt["Small Form Variants"](_)&&!(_>=65112&&_<=65118)&&!(_>=65123&&_<=65126)||Zt["Unified Canadian Aboriginal Syllabics"](_)||Zt["Unified Canadian Aboriginal Syllabics Extended"](_)||Zt["Vertical Forms"](_)||Zt["Yijing Hexagram Symbols"](_)||Zt["Yi Syllables"](_)||Zt["Yi Radicals"](_))}function Or(_){return!!(Zt["Latin-1 Supplement"](_)&&(_===167||_===169||_===174||_===177||_===188||_===189||_===190||_===215||_===247)||Zt["General Punctuation"](_)&&(_===8214||_===8224||_===8225||_===8240||_===8241||_===8251||_===8252||_===8258||_===8263||_===8264||_===8265||_===8273)||Zt["Letterlike Symbols"](_)||Zt["Number Forms"](_)||Zt["Miscellaneous Technical"](_)&&(_>=8960&&_<=8967||_>=8972&&_<=8991||_>=8996&&_<=9e3||_===9003||_>=9085&&_<=9114||_>=9150&&_<=9165||_===9167||_>=9169&&_<=9179||_>=9186&&_<=9215)||Zt["Control Pictures"](_)&&_!==9251||Zt["Optical Character Recognition"](_)||Zt["Enclosed Alphanumerics"](_)||Zt["Geometric Shapes"](_)||Zt["Miscellaneous Symbols"](_)&&!(_>=9754&&_<=9759)||Zt["Miscellaneous Symbols and Arrows"](_)&&(_>=11026&&_<=11055||_>=11088&&_<=11097||_>=11192&&_<=11243)||Zt["CJK Symbols and Punctuation"](_)||Zt.Katakana(_)||Zt["Private Use Area"](_)||Zt["CJK Compatibility Forms"](_)||Zt["Small Form Variants"](_)||Zt["Halfwidth and Fullwidth Forms"](_)||_===8734||_===8756||_===8757||_>=9984&&_<=10087||_>=10102&&_<=10131||_===65532||_===65533)}function Gr(_){return!(dn(_)||Or(_))}function qr(_){return Zt.Arabic(_)||Zt["Arabic Supplement"](_)||Zt["Arabic Extended-A"](_)||Zt["Arabic Presentation Forms-A"](_)||Zt["Arabic Presentation Forms-B"](_)}function gn(_){return _>=1424&&_<=2303||Zt["Arabic Presentation Forms-A"](_)||Zt["Arabic Presentation Forms-B"](_)}function xn(_,z){return!(!z&&gn(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Zt.Khmer(_))}function an(_){for(var z=0,X=_;z-1&&(ua=fa.error),Ta&&Ta(_)};function ai(){Va.fire(new ar("pluginStateChange",{pluginStatus:ua,pluginURL:ya}))}var Va=new mr,ei=function(){return ua},Oi=function(_){return _({pluginStatus:ua,pluginURL:ya}),Va.on("pluginStateChange",_),_},Oo=function(_,z,X){if(X===void 0&&(X=!1),ua===fa.deferred||ua===fa.loading||ua===fa.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");ya=de.resolveURL(_),ua=fa.deferred,Ta=z,ai(),X||Hi()},Hi=function(){if(ua!==fa.deferred||!ya)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ua=fa.loading,ai(),ya&&Wt({url:ya},function(_){_?Sa(_):(ua=fa.loaded,ai())})},sa={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ua===fa.loaded||sa.applyArabicShaping!=null},isLoading:function(){return ua===fa.loading},setState:function(z){ua=z.pluginStatus,ya=z.pluginURL},isParsed:function(){return sa.applyArabicShaping!=null&&sa.processBidirectionalText!=null&&sa.processStyledBidirectionalText!=null},getPluginURL:function(){return ya}},si=function(){!sa.isLoading()&&!sa.isLoaded()&&ei()==="deferred"&&Hi()},Ua=function(z,X){this.zoom=z,X?(this.now=X.now,this.fadeDuration=X.fadeDuration,this.zoomHistory=X.zoomHistory,this.transition=X.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yt,this.transition={})};Ua.prototype.isSupportedScript=function(z){return Kn(z,sa.isLoaded())},Ua.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Ua.prototype.getCrossfadeParameters=function(){var z=this.zoom,X=z-Math.floor(z),ue=this.crossFadingFactor();return z>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:X+(1-X)*ue}:{fromScale:.5,toScale:1,t:1-(1-ue)*X}};var xi=function(z,X){this.property=z,this.value=X,this.expression=Ud(X===void 0?z.specification.default:X,z.specification)};xi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},xi.prototype.possiblyEvaluate=function(z,X,ue){return this.property.possiblyEvaluate(this,z,X,ue)};var so=function(z){this.property=z,this.value=new xi(z,void 0)};so.prototype.transitioned=function(z,X){return new ns(this.property,this.value,X,A({},z.transition,this.transition),z.now)},so.prototype.untransitioned=function(){return new ns(this.property,this.value,null,{},0)};var Fi=function(z){this._properties=z,this._values=Object.create(z.defaultTransitionablePropertyValues)};Fi.prototype.getValue=function(z){return G(this._values[z].value.value)},Fi.prototype.setValue=function(z,X){this._values.hasOwnProperty(z)||(this._values[z]=new so(this._values[z].property)),this._values[z].value=new xi(this._values[z].property,X===null?void 0:G(X))},Fi.prototype.getTransition=function(z){return G(this._values[z].transition)},Fi.prototype.setTransition=function(z,X){this._values.hasOwnProperty(z)||(this._values[z]=new so(this._values[z].property)),this._values[z].transition=G(X)||void 0},Fi.prototype.serialize=function(){for(var z={},X=0,ue=Object.keys(this._values);Xthis.end)return this.prior=null,Le;if(this.value.isDataDriven())return this.prior=null,Le;if(ge_e.zoomHistory.lastIntegerZoom?{from:ue,to:ge}:{from:Le,to:ge}},z.prototype.interpolate=function(ue){return ue},z}(Ga),el=function(z){this.specification=z};el.prototype.possiblyEvaluate=function(z,X,ue,ge){if(z.value!==void 0)if(z.expression.kind==="constant"){var Le=z.expression.evaluate(X,null,{},ue,ge);return this._calculate(Le,Le,Le,X)}else return this._calculate(z.expression.evaluate(new Ua(Math.floor(X.zoom-1),X)),z.expression.evaluate(new Ua(Math.floor(X.zoom),X)),z.expression.evaluate(new Ua(Math.floor(X.zoom+1),X)),X)},el.prototype._calculate=function(z,X,ue,ge){var Le=ge.zoom;return Le>ge.zoomHistory.lastIntegerZoom?{from:z,to:X}:{from:ue,to:X}},el.prototype.interpolate=function(z){return z};var fs=function(z){this.specification=z};fs.prototype.possiblyEvaluate=function(z,X,ue,ge){return!!z.expression.evaluate(X,null,{},ue,ge)},fs.prototype.interpolate=function(){return!1};var Wi=function(z){this.properties=z,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var X in z){var ue=z[X];ue.specification.overridable&&this.overridableProperties.push(X);var ge=this.defaultPropertyValues[X]=new xi(ue,void 0),Le=this.defaultTransitionablePropertyValues[X]=new so(ue);this.defaultTransitioningPropertyValues[X]=Le.untransitioned(),this.defaultPossiblyEvaluatedValues[X]=ge.possiblyEvaluate({})}};je("DataDrivenProperty",Ga),je("DataConstantProperty",ba),je("CrossFadedDataDrivenProperty",Ws),je("CrossFadedProperty",el),je("ColorRampProperty",fs);var $o="-transition",No=function(_){function z(X,ue){if(_.call(this),this.id=X.id,this.type=X.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},X.type!=="custom"&&(X=X,this.metadata=X.metadata,this.minzoom=X.minzoom,this.maxzoom=X.maxzoom,X.type!=="background"&&(this.source=X.source,this.sourceLayer=X["source-layer"],this.filter=X.filter),ue.layout&&(this._unevaluatedLayout=new cs(ue.layout)),ue.paint)){this._transitionablePaint=new Fi(ue.paint);for(var ge in X.paint)this.setPaintProperty(ge,X.paint[ge],{validate:!1});for(var Le in X.layout)this.setLayoutProperty(Le,X.layout[Le],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ts(ue.paint)}}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},z.prototype.getLayoutProperty=function(ue){return ue==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ue)},z.prototype.setLayoutProperty=function(ue,ge,Le){if(Le===void 0&&(Le={}),ge!=null){var _e="layers."+this.id+".layout."+ue;if(this._validate(Xa,_e,ue,ge,Le))return}if(ue==="visibility"){this.visibility=ge;return}this._unevaluatedLayout.setValue(ue,ge)},z.prototype.getPaintProperty=function(ue){return I(ue,$o)?this._transitionablePaint.getTransition(ue.slice(0,-$o.length)):this._transitionablePaint.getValue(ue)},z.prototype.setPaintProperty=function(ue,ge,Le){if(Le===void 0&&(Le={}),ge!=null){var _e="layers."+this.id+".paint."+ue;if(this._validate(Ya,_e,ue,ge,Le))return!1}if(I(ue,$o))return this._transitionablePaint.setTransition(ue.slice(0,-$o.length),ge||void 0),!1;var tt=this._transitionablePaint._values[ue],bt=tt.property.specification["property-type"]==="cross-faded-data-driven",Pt=tt.value.isDataDriven(),Ot=tt.value;this._transitionablePaint.setValue(ue,ge),this._handleSpecialPaintPropertyUpdate(ue);var Jt=this._transitionablePaint._values[ue].value,ir=Jt.isDataDriven();return ir||Pt||bt||this._handleOverridablePaintPropertyUpdate(ue,Ot,Jt)},z.prototype._handleSpecialPaintPropertyUpdate=function(ue){},z.prototype._handleOverridablePaintPropertyUpdate=function(ue,ge,Le){return!1},z.prototype.isHidden=function(ue){return this.minzoom&&ue=this.maxzoom?!0:this.visibility==="none"},z.prototype.updateTransitions=function(ue){this._transitioningPaint=this._transitionablePaint.transitioned(ue,this._transitioningPaint)},z.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},z.prototype.recalculate=function(ue,ge){ue.getCrossfadeParameters&&(this._crossfadeParameters=ue.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ue,void 0,ge)),this.paint=this._transitioningPaint.possiblyEvaluate(ue,void 0,ge)},z.prototype.serialize=function(){var ue={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&&(ue.layout=ue.layout||{},ue.layout.visibility=this.visibility),B(ue,function(ge,Le){return ge!==void 0&&!(Le==="layout"&&!Object.keys(ge).length)&&!(Le==="paint"&&!Object.keys(ge).length)})},z.prototype._validate=function(ue,ge,Le,_e,tt){return tt===void 0&&(tt={}),tt&&tt.validate===!1?!1:Ja(this,ue.call(Un,{key:ge,layerType:this.type,objectKey:Le,value:_e,styleSpec:Ar,style:{glyphs:!0,sprite:!0}}))},z.prototype.is3D=function(){return!1},z.prototype.isTileClipped=function(){return!1},z.prototype.hasOffscreenPass=function(){return!1},z.prototype.resize=function(){},z.prototype.isStateDependent=function(){for(var ue in this.paint._values){var ge=this.paint.get(ue);if(!(!(ge instanceof lo)||!uu(ge.property.specification))&&(ge.value.kind==="source"||ge.value.kind==="composite")&&ge.value.isStateDependent)return!0}return!1},z}(mr),Vl={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},fu=function(z,X){this._structArray=z,this._pos1=X*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},bo=128,Qc=5,bi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};bi.serialize=function(z,X){return z._trim(),X&&(z.isTransferred=!0,X.push(z.arrayBuffer)),{length:z.length,arrayBuffer:z.arrayBuffer}},bi.deserialize=function(z){var X=Object.create(this.prototype);return X.arrayBuffer=z.arrayBuffer,X.length=z.length,X.capacity=z.arrayBuffer.byteLength/X.bytesPerElement,X._refreshViews(),X},bi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},bi.prototype.clear=function(){this.length=0},bi.prototype.resize=function(z){this.reserve(z),this.length=z},bi.prototype.reserve=function(z){if(z>this.capacity){this.capacity=Math.max(z,Math.floor(this.capacity*Qc),bo),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var X=this.uint8;this._refreshViews(),X&&this.uint8.set(X)}},bi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function wo(_,z){z===void 0&&(z=1);var X=0,ue=0,ge=_.map(function(_e){var tt=x0(_e.type),bt=X=jb(X,Math.max(z,tt)),Pt=_e.components||1;return ue=Math.max(ue,tt),X+=tt*Pt,{name:_e.name,type:_e.type,components:Pt,offset:bt}}),Le=jb(X,Math.max(ue,z));return{members:ge,size:Le,alignment:z}}function x0(_){return Vl[_].BYTES_PER_ELEMENT}function jb(_,z){return Math.ceil(_/z)*z}var Fh=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge){var Le=this.length;return this.resize(Le+1),this.emplace(Le,ue,ge)},z.prototype.emplace=function(ue,ge,Le){var _e=ue*2;return this.int16[_e+0]=ge,this.int16[_e+1]=Le,ue},z}(bi);Fh.prototype.bytesPerElement=4,je("StructArrayLayout2i4",Fh);var Zy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e){var tt=this.length;return this.resize(tt+1),this.emplace(tt,ue,ge,Le,_e)},z.prototype.emplace=function(ue,ge,Le,_e,tt){var bt=ue*4;return this.int16[bt+0]=ge,this.int16[bt+1]=Le,this.int16[bt+2]=_e,this.int16[bt+3]=tt,ue},z}(bi);Zy.prototype.bytesPerElement=8,je("StructArrayLayout4i8",Zy);var jd=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,ge,Le,_e,tt,bt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=ue*6;return this.int16[Ot+0]=ge,this.int16[Ot+1]=Le,this.int16[Ot+2]=_e,this.int16[Ot+3]=tt,this.int16[Ot+4]=bt,this.int16[Ot+5]=Pt,ue},z}(bi);jd.prototype.bytesPerElement=12,je("StructArrayLayout2i4i12",jd);var Uv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,ge,Le,_e,tt,bt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=ue*4,Jt=ue*8;return this.int16[Ot+0]=ge,this.int16[Ot+1]=Le,this.uint8[Jt+4]=_e,this.uint8[Jt+5]=tt,this.uint8[Jt+6]=bt,this.uint8[Jt+7]=Pt,ue},z}(bi);Uv.prototype.bytesPerElement=8,je("StructArrayLayout2i4ub8",Uv);var Hv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge){var Le=this.length;return this.resize(Le+1),this.emplace(Le,ue,ge)},z.prototype.emplace=function(ue,ge,Le){var _e=ue*2;return this.float32[_e+0]=ge,this.float32[_e+1]=Le,ue},z}(bi);Hv.prototype.bytesPerElement=8,je("StructArrayLayout2f8",Hv);var Sl=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir){var rr=this.length;return this.resize(rr+1),this.emplace(rr,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr){var Tr=ue*10;return this.uint16[Tr+0]=ge,this.uint16[Tr+1]=Le,this.uint16[Tr+2]=_e,this.uint16[Tr+3]=tt,this.uint16[Tr+4]=bt,this.uint16[Tr+5]=Pt,this.uint16[Tr+6]=Ot,this.uint16[Tr+7]=Jt,this.uint16[Tr+8]=ir,this.uint16[Tr+9]=rr,ue},z}(bi);Sl.prototype.bytesPerElement=20,je("StructArrayLayout10ui20",Sl);var Gd=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr){var Nr=this.length;return this.resize(Nr+1),this.emplace(Nr,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr){var pn=ue*12;return this.int16[pn+0]=ge,this.int16[pn+1]=Le,this.int16[pn+2]=_e,this.int16[pn+3]=tt,this.uint16[pn+4]=bt,this.uint16[pn+5]=Pt,this.uint16[pn+6]=Ot,this.uint16[pn+7]=Jt,this.int16[pn+8]=ir,this.int16[pn+9]=rr,this.int16[pn+10]=Tr,this.int16[pn+11]=Nr,ue},z}(bi);Gd.prototype.bytesPerElement=24,je("StructArrayLayout4i4ui4i24",Gd);var Ky=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*3;return this.float32[tt+0]=ge,this.float32[tt+1]=Le,this.float32[tt+2]=_e,ue},z}(bi);Ky.prototype.bytesPerElement=12,je("StructArrayLayout3f12",Ky);var Jy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue){var ge=this.length;return this.resize(ge+1),this.emplace(ge,ue)},z.prototype.emplace=function(ue,ge){var Le=ue*1;return this.uint32[Le+0]=ge,ue},z}(bi);Jy.prototype.bytesPerElement=4,je("StructArrayLayout1ul4",Jy);var b0=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.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)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt){var ir=this.length;return this.resize(ir+1),this.emplace(ir,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir){var rr=ue*10,Tr=ue*5;return this.int16[rr+0]=ge,this.int16[rr+1]=Le,this.int16[rr+2]=_e,this.int16[rr+3]=tt,this.int16[rr+4]=bt,this.int16[rr+5]=Pt,this.uint32[Tr+3]=Ot,this.uint16[rr+8]=Jt,this.uint16[rr+9]=ir,ue},z}(bi);b0.prototype.bytesPerElement=20,je("StructArrayLayout6i1ul2ui20",b0);var Eg=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,ge,Le,_e,tt,bt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=ue*6;return this.int16[Ot+0]=ge,this.int16[Ot+1]=Le,this.int16[Ot+2]=_e,this.int16[Ot+3]=tt,this.int16[Ot+4]=bt,this.int16[Ot+5]=Pt,ue},z}(bi);Eg.prototype.bytesPerElement=12,je("StructArrayLayout2i2i2i12",Eg);var td=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt){var bt=this.length;return this.resize(bt+1),this.emplace(bt,ue,ge,Le,_e,tt)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt){var Pt=ue*4,Ot=ue*8;return this.float32[Pt+0]=ge,this.float32[Pt+1]=Le,this.float32[Pt+2]=_e,this.int16[Ot+6]=tt,this.int16[Ot+7]=bt,ue},z}(bi);td.prototype.bytesPerElement=16,je("StructArrayLayout2f1f2i16",td);var jl=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e){var tt=this.length;return this.resize(tt+1),this.emplace(tt,ue,ge,Le,_e)},z.prototype.emplace=function(ue,ge,Le,_e,tt){var bt=ue*12,Pt=ue*3;return this.uint8[bt+0]=ge,this.uint8[bt+1]=Le,this.float32[Pt+1]=_e,this.float32[Pt+2]=tt,ue},z}(bi);jl.prototype.bytesPerElement=12,je("StructArrayLayout2ub2f12",jl);var rd=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*3;return this.uint16[tt+0]=ge,this.uint16[tt+1]=Le,this.uint16[tt+2]=_e,ue},z}(bi);rd.prototype.bytesPerElement=6,je("StructArrayLayout3ui6",rd);var w0=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.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)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on,Dn,Cn){var kn=this.length;return this.resize(kn+1),this.emplace(kn,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on,Dn,Cn)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on,Dn,Cn,kn){var jn=ue*24,ta=ue*12,ha=ue*48;return this.int16[jn+0]=ge,this.int16[jn+1]=Le,this.uint16[jn+2]=_e,this.uint16[jn+3]=tt,this.uint32[ta+2]=bt,this.uint32[ta+3]=Pt,this.uint32[ta+4]=Ot,this.uint16[jn+10]=Jt,this.uint16[jn+11]=ir,this.uint16[jn+12]=rr,this.float32[ta+7]=Tr,this.float32[ta+8]=Nr,this.uint8[ha+36]=pn,this.uint8[ha+37]=on,this.uint8[ha+38]=Dn,this.uint32[ta+10]=Cn,this.int16[jn+22]=kn,ue},z}(bi);w0.prototype.bytesPerElement=48,je("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",w0);var Pg=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.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)},z.prototype.emplaceBack=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on,Dn,Cn,kn,jn,ta,ha,ca,Ba,Pa,za,ii,Na,ja){var fi=this.length;return this.resize(fi+1),this.emplace(fi,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on,Dn,Cn,kn,jn,ta,ha,ca,Ba,Pa,za,ii,Na,ja)},z.prototype.emplace=function(ue,ge,Le,_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on,Dn,Cn,kn,jn,ta,ha,ca,Ba,Pa,za,ii,Na,ja,fi){var ni=ue*34,zi=ue*17;return this.int16[ni+0]=ge,this.int16[ni+1]=Le,this.int16[ni+2]=_e,this.int16[ni+3]=tt,this.int16[ni+4]=bt,this.int16[ni+5]=Pt,this.int16[ni+6]=Ot,this.int16[ni+7]=Jt,this.uint16[ni+8]=ir,this.uint16[ni+9]=rr,this.uint16[ni+10]=Tr,this.uint16[ni+11]=Nr,this.uint16[ni+12]=pn,this.uint16[ni+13]=on,this.uint16[ni+14]=Dn,this.uint16[ni+15]=Cn,this.uint16[ni+16]=kn,this.uint16[ni+17]=jn,this.uint16[ni+18]=ta,this.uint16[ni+19]=ha,this.uint16[ni+20]=ca,this.uint16[ni+21]=Ba,this.uint16[ni+22]=Pa,this.uint32[zi+12]=za,this.float32[zi+13]=ii,this.float32[zi+14]=Na,this.float32[zi+15]=ja,this.float32[zi+16]=fi,ue},z}(bi);Pg.prototype.bytesPerElement=68,je("StructArrayLayout8i15ui1ul4f68",Pg);var Vv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue){var ge=this.length;return this.resize(ge+1),this.emplace(ge,ue)},z.prototype.emplace=function(ue,ge){var Le=ue*1;return this.float32[Le+0]=ge,ue},z}(bi);Vv.prototype.bytesPerElement=4,je("StructArrayLayout1f4",Vv);var Qy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*3;return this.int16[tt+0]=ge,this.int16[tt+1]=Le,this.int16[tt+2]=_e,ue},z}(bi);Qy.prototype.bytesPerElement=6,je("StructArrayLayout3i6",Qy);var Wd=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le){var _e=this.length;return this.resize(_e+1),this.emplace(_e,ue,ge,Le)},z.prototype.emplace=function(ue,ge,Le,_e){var tt=ue*2,bt=ue*4;return this.uint32[tt+0]=ge,this.uint16[bt+2]=Le,this.uint16[bt+3]=_e,ue},z}(bi);Wd.prototype.bytesPerElement=8,je("StructArrayLayout1ul2ui8",Wd);var T0=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge){var Le=this.length;return this.resize(Le+1),this.emplace(Le,ue,ge)},z.prototype.emplace=function(ue,ge,Le){var _e=ue*2;return this.uint16[_e+0]=ge,this.uint16[_e+1]=Le,ue},z}(bi);T0.prototype.bytesPerElement=4,je("StructArrayLayout2ui4",T0);var jv=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue){var ge=this.length;return this.resize(ge+1),this.emplace(ge,ue)},z.prototype.emplace=function(ue,ge){var Le=ue*1;return this.uint16[Le+0]=ge,ue},z}(bi);jv.prototype.bytesPerElement=2,je("StructArrayLayout1ui2",jv);var _h=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},z.prototype.emplaceBack=function(ue,ge,Le,_e){var tt=this.length;return this.resize(tt+1),this.emplace(tt,ue,ge,Le,_e)},z.prototype.emplace=function(ue,ge,Le,_e,tt){var bt=ue*4;return this.float32[bt+0]=ge,this.float32[bt+1]=Le,this.float32[bt+2]=_e,this.float32[bt+3]=tt,ue},z}(bi);_h.prototype.bytesPerElement=16,je("StructArrayLayout4f16",_h);var Gb=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={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 X.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},X.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},X.x1.get=function(){return this._structArray.int16[this._pos2+2]},X.y1.get=function(){return this._structArray.int16[this._pos2+3]},X.x2.get=function(){return this._structArray.int16[this._pos2+4]},X.y2.get=function(){return this._structArray.int16[this._pos2+5]},X.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},X.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},X.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},X.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(z.prototype,X),z}(fu);Gb.prototype.size=20;var qy=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new Gb(this,ue)},z}(b0);je("CollisionBoxArray",qy);var zh=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={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 X.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},X.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},X.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},X.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},X.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},X.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},X.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},X.segment.get=function(){return this._structArray.uint16[this._pos2+10]},X.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},X.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},X.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},X.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},X.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},X.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},X.placedOrientation.set=function(ue){this._structArray.uint8[this._pos1+37]=ue},X.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},X.hidden.set=function(ue){this._structArray.uint8[this._pos1+38]=ue},X.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},X.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+10]=ue},X.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(z.prototype,X),z}(fu);zh.prototype.size=48;var e1=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new zh(this,ue)},z}(w0);je("PlacedSymbolArray",e1);var Gv=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={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 X.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},X.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},X.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},X.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},X.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},X.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},X.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},X.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},X.key.get=function(){return this._structArray.uint16[this._pos2+8]},X.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},X.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},X.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},X.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},X.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},X.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},X.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},X.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},X.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},X.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},X.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},X.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},X.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},X.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},X.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},X.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+12]=ue},X.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},X.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},X.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},X.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(z.prototype,X),z}(fu);Gv.prototype.size=68;var Wb=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new Gv(this,ue)},z}(Pg);je("SymbolInstanceArray",Wb);var $b=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.getoffsetX=function(ue){return this.float32[ue*1+0]},z}(Vv);je("GlyphOffsetArray",$b);var fc=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.getx=function(ue){return this.int16[ue*3+0]},z.prototype.gety=function(ue){return this.int16[ue*3+1]},z.prototype.gettileUnitDistanceFromAnchor=function(ue){return this.int16[ue*3+2]},z}(Qy);je("SymbolLineVertexArray",fc);var Yb=function(_){function z(){_.apply(this,arguments)}_&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z;var X={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return X.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},X.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},X.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(z.prototype,X),z}(fu);Yb.prototype.size=8;var Xb=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.get=function(ue){return new Yb(this,ue)},z}(Wd);je("FeatureIndexArray",Xb);var qT=wo([{name:"a_pos",components:2,type:"Int16"}],4),Zb=qT.members,ds=function(z){z===void 0&&(z=[]),this.segments=z};ds.prototype.prepareSegment=function(z,X,ue,ge){var Le=this.segments[this.segments.length-1];return z>ds.MAX_VERTEX_ARRAY_LENGTH&&W("Max vertices per segment is "+ds.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+z),(!Le||Le.vertexLength+z>ds.MAX_VERTEX_ARRAY_LENGTH||Le.sortKey!==ge)&&(Le={vertexOffset:X.length,primitiveOffset:ue.length,vertexLength:0,primitiveLength:0},ge!==void 0&&(Le.sortKey=ge),this.segments.push(Le)),Le},ds.prototype.get=function(){return this.segments},ds.prototype.destroy=function(){for(var z=0,X=this.segments;z>>16)*bt&65535)<<16)&4294967295,Ot=Ot<<15|Ot>>>17,Ot=(Ot&65535)*Pt+(((Ot>>>16)*Pt&65535)<<16)&4294967295,_e^=Ot,_e=_e<<13|_e>>>19,tt=(_e&65535)*5+(((_e>>>16)*5&65535)<<16)&4294967295,_e=(tt&65535)+27492+(((tt>>>16)+58964&65535)<<16);switch(Ot=0,ge){case 3:Ot^=(X.charCodeAt(Jt+2)&255)<<16;case 2:Ot^=(X.charCodeAt(Jt+1)&255)<<8;case 1:Ot^=X.charCodeAt(Jt)&255,Ot=(Ot&65535)*bt+(((Ot>>>16)*bt&65535)<<16)&4294967295,Ot=Ot<<15|Ot>>>17,Ot=(Ot&65535)*Pt+(((Ot>>>16)*Pt&65535)<<16)&4294967295,_e^=Ot}return _e^=X.length,_e^=_e>>>16,_e=(_e&65535)*2246822507+(((_e>>>16)*2246822507&65535)<<16)&4294967295,_e^=_e>>>13,_e=(_e&65535)*3266489909+(((_e>>>16)*3266489909&65535)<<16)&4294967295,_e^=_e>>>16,_e>>>0}_.exports=z}),se=C(function(_){function z(X,ue){for(var ge=X.length,Le=ue^ge,_e=0,tt;ge>=4;)tt=X.charCodeAt(_e)&255|(X.charCodeAt(++_e)&255)<<8|(X.charCodeAt(++_e)&255)<<16|(X.charCodeAt(++_e)&255)<<24,tt=(tt&65535)*1540483477+(((tt>>>16)*1540483477&65535)<<16),tt^=tt>>>24,tt=(tt&65535)*1540483477+(((tt>>>16)*1540483477&65535)<<16),Le=(Le&65535)*1540483477+(((Le>>>16)*1540483477&65535)<<16)^tt,ge-=4,++_e;switch(ge){case 3:Le^=(X.charCodeAt(_e+2)&255)<<16;case 2:Le^=(X.charCodeAt(_e+1)&255)<<8;case 1:Le^=X.charCodeAt(_e)&255,Le=(Le&65535)*1540483477+(((Le>>>16)*1540483477&65535)<<16)}return Le^=Le>>>13,Le=(Le&65535)*1540483477+(((Le>>>16)*1540483477&65535)<<16),Le^=Le>>>15,Le>>>0}_.exports=z}),ye=me,He=me,Qe=se;ye.murmur3=He,ye.murmur2=Qe;var pt=function(){this.ids=[],this.positions=[],this.indexed=!1};pt.prototype.add=function(z,X,ue,ge){this.ids.push($t(z)),this.positions.push(X,ue,ge)},pt.prototype.getPositions=function(z){for(var X=$t(z),ue=0,ge=this.ids.length-1;ue>1;this.ids[Le]>=X?ge=Le:ue=Le+1}for(var _e=[];this.ids[ue]===X;){var tt=this.positions[3*ue],bt=this.positions[3*ue+1],Pt=this.positions[3*ue+2];_e.push({index:tt,start:bt,end:Pt}),ue++}return _e},pt.serialize=function(z,X){var ue=new Float64Array(z.ids),ge=new Uint32Array(z.positions);return tr(ue,ge,0,ue.length-1),X&&X.push(ue.buffer,ge.buffer),{ids:ue,positions:ge}},pt.deserialize=function(z){var X=new pt;return X.ids=z.ids,X.positions=z.positions,X.indexed=!0,X};var kt=Math.pow(2,53)-1;function $t(_){var z=+_;return!isNaN(z)&&z<=kt?z:ye(String(_))}function tr(_,z,X,ue){for(;X>1],Le=X-1,_e=ue+1;;){do Le++;while(_[Le]ge);if(Le>=_e)break;cr(_,Le,_e),cr(z,3*Le,3*_e),cr(z,3*Le+1,3*_e+1),cr(z,3*Le+2,3*_e+2)}_e-X_e.x+1||bt<_e.y||bt>_e.y+1)&&W("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return X}function fo(_,z){return{type:_.type,id:_.id,properties:_.properties,geometry:z?Pi(_):[]}}function Ti(_,z,X,ue,ge){_.emplaceBack(z*2+(ue+1)/2,X*2+(ge+1)/2)}var no=function(z){this.zoom=z.zoom,this.overscaling=z.overscaling,this.layers=z.layers,this.layerIds=this.layers.map(function(X){return X.id}),this.index=z.index,this.hasPattern=!1,this.layoutVertexArray=new Fh,this.indexArray=new rd,this.segments=new ds,this.programConfigurations=new Ea(z.layers,z.zoom),this.stateDependentLayerIds=this.layers.filter(function(X){return X.isStateDependent()}).map(function(X){return X.id})};no.prototype.populate=function(z,X,ue){var ge=this.layers[0],Le=[],_e=null;ge.type==="circle"&&(_e=ge.layout.get("circle-sort-key"));for(var tt=0,bt=z;tt=Ha||ir<0||ir>=Ha)){var rr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,z.sortKey),Tr=rr.vertexLength;Ti(this.layoutVertexArray,Jt,ir,-1,-1),Ti(this.layoutVertexArray,Jt,ir,1,-1),Ti(this.layoutVertexArray,Jt,ir,1,1),Ti(this.layoutVertexArray,Jt,ir,-1,1),this.indexArray.emplaceBack(Tr,Tr+1,Tr+2),this.indexArray.emplaceBack(Tr,Tr+3,Tr+2),rr.vertexLength+=4,rr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,z,ue,{},ge)},je("CircleBucket",no,{omit:["layers"]});function ui(_,z){for(var X=0;X<_.length;X++)if(Cl(z,_[X]))return!0;for(var ue=0;ue=3){for(var Le=0;Le1){if(_u(_,z))return!0;for(var ue=0;ue1?_.distSqr(X):_.distSqr(X.sub(z)._mult(ge)._add(z))}function ef(_,z){for(var X=!1,ue,ge,Le,_e=0;_e<_.length;_e++){ue=_[_e];for(var tt=0,bt=ue.length-1;ttz.y!=Le.y>z.y&&z.x<(Le.x-ge.x)*(z.y-ge.y)/(Le.y-ge.y)+ge.x&&(X=!X)}return X}function Cl(_,z){for(var X=!1,ue=0,ge=_.length-1;ue<_.length;ge=ue++){var Le=_[ue],_e=_[ge];Le.y>z.y!=_e.y>z.y&&z.x<(_e.x-Le.x)*(z.y-Le.y)/(_e.y-Le.y)+Le.x&&(X=!X)}return X}function tf(_,z,X,ue,ge){for(var Le=0,_e=_;Le<_e.length;Le+=1){var tt=_e[Le];if(z<=tt.x&&X<=tt.y&&ue>=tt.x&&ge>=tt.y)return!0}var bt=[new a(z,X),new a(z,ge),new a(ue,ge),new a(ue,X)];if(_.length>2)for(var Pt=0,Ot=bt;Ptge.x&&z.x>ge.x||_.yge.y&&z.y>ge.y)return!1;var Le=V(_,z,X[0]);return Le!==V(_,z,X[1])||Le!==V(_,z,X[2])||Le!==V(_,z,X[3])}function Ml(_,z,X){var ue=z.paint.get(_).value;return ue.kind==="constant"?ue.value:X.programConfigurations.get(z.id).getMaxValue(_)}function hc(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function nd(_,z,X,ue,ge){if(!z[0]&&!z[1])return _;var Le=a.convert(z)._mult(ge);X==="viewport"&&Le._rotate(-ue);for(var _e=[],tt=0;tt<_.length;tt++){var bt=_[tt];_e.push(bt.sub(Le))}return _e}var vc=new Wi({"circle-sort-key":new Ga(Ar.layout_circle["circle-sort-key"])}),Lg=new Wi({"circle-radius":new Ga(Ar.paint_circle["circle-radius"]),"circle-color":new Ga(Ar.paint_circle["circle-color"]),"circle-blur":new Ga(Ar.paint_circle["circle-blur"]),"circle-opacity":new Ga(Ar.paint_circle["circle-opacity"]),"circle-translate":new ba(Ar.paint_circle["circle-translate"]),"circle-translate-anchor":new ba(Ar.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new ba(Ar.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new ba(Ar.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Ga(Ar.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Ga(Ar.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Ga(Ar.paint_circle["circle-stroke-opacity"])}),Wv={paint:Lg,layout:vc},Ds=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var _=arguments,z=0,X=arguments.length;X--;)z+=_[X]*_[X];return Math.sqrt(z)});function Ig(){var _=new Ds(4);return Ds!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_}function S0(_,z,X){var ue=z[0],ge=z[1],Le=z[2],_e=z[3],tt=Math.sin(X),bt=Math.cos(X);return _[0]=ue*bt+Le*tt,_[1]=ge*bt+_e*tt,_[2]=ue*-tt+Le*bt,_[3]=ge*-tt+_e*bt,_}function ol(){var _=new Ds(9);return Ds!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_}function $v(_,z){var X=Math.sin(z),ue=Math.cos(z);return _[0]=ue,_[1]=X,_[2]=0,_[3]=-X,_[4]=ue,_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}function Rg(){var _=new Ds(16);return Ds!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_}function kg(_){var z=new Ds(16);return z[0]=_[0],z[1]=_[1],z[2]=_[2],z[3]=_[3],z[4]=_[4],z[5]=_[5],z[6]=_[6],z[7]=_[7],z[8]=_[8],z[9]=_[9],z[10]=_[10],z[11]=_[11],z[12]=_[12],z[13]=_[13],z[14]=_[14],z[15]=_[15],z}function Dg(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function Yv(_,z){var X=z[0],ue=z[1],ge=z[2],Le=z[3],_e=z[4],tt=z[5],bt=z[6],Pt=z[7],Ot=z[8],Jt=z[9],ir=z[10],rr=z[11],Tr=z[12],Nr=z[13],pn=z[14],on=z[15],Dn=X*tt-ue*_e,Cn=X*bt-ge*_e,kn=X*Pt-Le*_e,jn=ue*bt-ge*tt,ta=ue*Pt-Le*tt,ha=ge*Pt-Le*bt,ca=Ot*Nr-Jt*Tr,Ba=Ot*pn-ir*Tr,Pa=Ot*on-rr*Tr,za=Jt*pn-ir*Nr,ii=Jt*on-rr*Nr,Na=ir*on-rr*pn,ja=Dn*Na-Cn*ii+kn*za+jn*Pa-ta*Ba+ha*ca;return ja?(ja=1/ja,_[0]=(tt*Na-bt*ii+Pt*za)*ja,_[1]=(ge*ii-ue*Na-Le*za)*ja,_[2]=(Nr*ha-pn*ta+on*jn)*ja,_[3]=(ir*ta-Jt*ha-rr*jn)*ja,_[4]=(bt*Pa-_e*Na-Pt*Ba)*ja,_[5]=(X*Na-ge*Pa+Le*Ba)*ja,_[6]=(pn*kn-Tr*ha-on*Cn)*ja,_[7]=(Ot*ha-ir*kn+rr*Cn)*ja,_[8]=(_e*ii-tt*Pa+Pt*ca)*ja,_[9]=(ue*Pa-X*ii-Le*ca)*ja,_[10]=(Tr*ta-Nr*kn+on*Dn)*ja,_[11]=(Jt*kn-Ot*ta-rr*Dn)*ja,_[12]=(tt*Ba-_e*za-bt*ca)*ja,_[13]=(X*za-ue*Ba+ge*ca)*ja,_[14]=(Nr*Cn-Tr*jn-pn*Dn)*ja,_[15]=(Ot*jn-Jt*Cn+ir*Dn)*ja,_):null}function Xv(_,z,X){var ue=z[0],ge=z[1],Le=z[2],_e=z[3],tt=z[4],bt=z[5],Pt=z[6],Ot=z[7],Jt=z[8],ir=z[9],rr=z[10],Tr=z[11],Nr=z[12],pn=z[13],on=z[14],Dn=z[15],Cn=X[0],kn=X[1],jn=X[2],ta=X[3];return _[0]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[1]=Cn*ge+kn*bt+jn*ir+ta*pn,_[2]=Cn*Le+kn*Pt+jn*rr+ta*on,_[3]=Cn*_e+kn*Ot+jn*Tr+ta*Dn,Cn=X[4],kn=X[5],jn=X[6],ta=X[7],_[4]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[5]=Cn*ge+kn*bt+jn*ir+ta*pn,_[6]=Cn*Le+kn*Pt+jn*rr+ta*on,_[7]=Cn*_e+kn*Ot+jn*Tr+ta*Dn,Cn=X[8],kn=X[9],jn=X[10],ta=X[11],_[8]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[9]=Cn*ge+kn*bt+jn*ir+ta*pn,_[10]=Cn*Le+kn*Pt+jn*rr+ta*on,_[11]=Cn*_e+kn*Ot+jn*Tr+ta*Dn,Cn=X[12],kn=X[13],jn=X[14],ta=X[15],_[12]=Cn*ue+kn*tt+jn*Jt+ta*Nr,_[13]=Cn*ge+kn*bt+jn*ir+ta*pn,_[14]=Cn*Le+kn*Pt+jn*rr+ta*on,_[15]=Cn*_e+kn*Ot+jn*Tr+ta*Dn,_}function Yo(_,z,X){var ue=X[0],ge=X[1],Le=X[2],_e,tt,bt,Pt,Ot,Jt,ir,rr,Tr,Nr,pn,on;return z===_?(_[12]=z[0]*ue+z[4]*ge+z[8]*Le+z[12],_[13]=z[1]*ue+z[5]*ge+z[9]*Le+z[13],_[14]=z[2]*ue+z[6]*ge+z[10]*Le+z[14],_[15]=z[3]*ue+z[7]*ge+z[11]*Le+z[15]):(_e=z[0],tt=z[1],bt=z[2],Pt=z[3],Ot=z[4],Jt=z[5],ir=z[6],rr=z[7],Tr=z[8],Nr=z[9],pn=z[10],on=z[11],_[0]=_e,_[1]=tt,_[2]=bt,_[3]=Pt,_[4]=Ot,_[5]=Jt,_[6]=ir,_[7]=rr,_[8]=Tr,_[9]=Nr,_[10]=pn,_[11]=on,_[12]=_e*ue+Ot*ge+Tr*Le+z[12],_[13]=tt*ue+Jt*ge+Nr*Le+z[13],_[14]=bt*ue+ir*ge+pn*Le+z[14],_[15]=Pt*ue+rr*ge+on*Le+z[15]),_}function Wl(_,z,X){var ue=X[0],ge=X[1],Le=X[2];return _[0]=z[0]*ue,_[1]=z[1]*ue,_[2]=z[2]*ue,_[3]=z[3]*ue,_[4]=z[4]*ge,_[5]=z[5]*ge,_[6]=z[6]*ge,_[7]=z[7]*ge,_[8]=z[8]*Le,_[9]=z[9]*Le,_[10]=z[10]*Le,_[11]=z[11]*Le,_[12]=z[12],_[13]=z[13],_[14]=z[14],_[15]=z[15],_}function $l(_,z,X){var ue=Math.sin(X),ge=Math.cos(X),Le=z[4],_e=z[5],tt=z[6],bt=z[7],Pt=z[8],Ot=z[9],Jt=z[10],ir=z[11];return z!==_&&(_[0]=z[0],_[1]=z[1],_[2]=z[2],_[3]=z[3],_[12]=z[12],_[13]=z[13],_[14]=z[14],_[15]=z[15]),_[4]=Le*ge+Pt*ue,_[5]=_e*ge+Ot*ue,_[6]=tt*ge+Jt*ue,_[7]=bt*ge+ir*ue,_[8]=Pt*ge-Le*ue,_[9]=Ot*ge-_e*ue,_[10]=Jt*ge-tt*ue,_[11]=ir*ge-bt*ue,_}function Og(_,z,X){var ue=Math.sin(X),ge=Math.cos(X),Le=z[0],_e=z[1],tt=z[2],bt=z[3],Pt=z[4],Ot=z[5],Jt=z[6],ir=z[7];return z!==_&&(_[8]=z[8],_[9]=z[9],_[10]=z[10],_[11]=z[11],_[12]=z[12],_[13]=z[13],_[14]=z[14],_[15]=z[15]),_[0]=Le*ge+Pt*ue,_[1]=_e*ge+Ot*ue,_[2]=tt*ge+Jt*ue,_[3]=bt*ge+ir*ue,_[4]=Pt*ge-Le*ue,_[5]=Ot*ge-_e*ue,_[6]=Jt*ge-tt*ue,_[7]=ir*ge-bt*ue,_}function t1(_,z,X,ue,ge){var Le=1/Math.tan(z/2),_e;return _[0]=Le/X,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=Le,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=-1,_[12]=0,_[13]=0,_[15]=0,ge!=null&&ge!==1/0?(_e=1/(ue-ge),_[10]=(ge+ue)*_e,_[14]=2*ge*ue*_e):(_[10]=-1,_[14]=-2*ue),_}function eS(_,z,X,ue,ge,Le,_e){var tt=1/(z-X),bt=1/(ue-ge),Pt=1/(Le-_e);return _[0]=-2*tt,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*bt,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*Pt,_[11]=0,_[12]=(z+X)*tt,_[13]=(ge+ue)*bt,_[14]=(_e+Le)*Pt,_[15]=1,_}var tS=Xv;function C0(){var _=new Ds(3);return Ds!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0),_}function rS(_){var z=new Ds(3);return z[0]=_[0],z[1]=_[1],z[2]=_[2],z}function Fg(_,z,X){return _[0]=z[0]+X[0],_[1]=z[1]+X[1],_[2]=z[2]+X[2],_}function nS(_,z,X){return _[0]=z[0]-X[0],_[1]=z[1]-X[1],_[2]=z[2]-X[2],_}function aS(_,z,X){return _[0]=z[0]*X,_[1]=z[1]*X,_[2]=z[2]*X,_}function r1(_,z){var X=z[0],ue=z[1],ge=z[2],Le=X*X+ue*ue+ge*ge;return Le>0&&(Le=1/Math.sqrt(Le)),_[0]=z[0]*Le,_[1]=z[1]*Le,_[2]=z[2]*Le,_}function uz(_,z){return _[0]*z[0]+_[1]*z[1]+_[2]*z[2]}function cz(_,z,X){var ue=z[0],ge=z[1],Le=z[2],_e=X[0],tt=X[1],bt=X[2];return _[0]=ge*bt-Le*tt,_[1]=Le*_e-ue*bt,_[2]=ue*tt-ge*_e,_}function fz(_,z,X){var ue=z[0],ge=z[1],Le=z[2];return _[0]=ue*X[0]+ge*X[3]+Le*X[6],_[1]=ue*X[1]+ge*X[4]+Le*X[7],_[2]=ue*X[2]+ge*X[5]+Le*X[8],_}var dz=nS;(function(){var _=C0();return function(z,X,ue,ge,Le,_e){var tt,bt;for(X||(X=3),ue||(ue=0),ge?bt=Math.min(ge*X+ue,z.length):bt=z.length,tt=ue;tt_.width||ge.height>_.height||X.x>_.width-ge.width||X.y>_.height-ge.height)throw new RangeError("out of range source coordinates for image copy");if(ge.width>z.width||ge.height>z.height||ue.x>z.width-ge.width||ue.y>z.height-ge.height)throw new RangeError("out of range destination coordinates for image copy");for(var _e=_.data,tt=z.data,bt=0;bt80*X){tt=Pt=_[0],bt=Ot=_[1];for(var Tr=X;TrPt&&(Pt=Jt),ir>Ot&&(Ot=ir);rr=Math.max(Pt-tt,Ot-bt),rr=rr!==0?1/rr:0}return n1(Le,_e,X,tt,bt,rr),_e}function k6(_,z,X,ue,ge){var Le,_e;if(ge===cS(_,z,X,ue)>0)for(Le=z;Le=z;Le-=ue)_e=F6(Le,_[Le],_[Le+1],_e);return _e&&Qb(_e,_e.next)&&(i1(_e),_e=_e.next),_e}function Zv(_,z){if(!_)return _;z||(z=_);var X=_,ue;do if(ue=!1,!X.steiner&&(Qb(X,X.next)||hs(X.prev,X,X.next)===0)){if(i1(X),X=z=X.prev,X===X.next)break;ue=!0}else X=X.next;while(ue||X!==z);return z}function n1(_,z,X,ue,ge,Le,_e){if(_){!_e&&Le&&Nz(_,ue,ge,Le);for(var tt=_,bt,Pt;_.prev!==_.next;){if(bt=_.prev,Pt=_.next,Le?Rz(_,ue,ge,Le):Iz(_)){z.push(bt.i/X),z.push(_.i/X),z.push(Pt.i/X),i1(_),_=Pt.next,tt=Pt.next;continue}if(_=Pt,_===tt){_e?_e===1?(_=kz(Zv(_),z,X),n1(_,z,X,ue,ge,Le,2)):_e===2&&Dz(_,z,X,ue,ge,Le):n1(Zv(_),z,X,ue,ge,Le,1);break}}}}function Iz(_){var z=_.prev,X=_,ue=_.next;if(hs(z,X,ue)>=0)return!1;for(var ge=_.next.next;ge!==_.prev;){if(_g(z.x,z.y,X.x,X.y,ue.x,ue.y,ge.x,ge.y)&&hs(ge.prev,ge,ge.next)>=0)return!1;ge=ge.next}return!0}function Rz(_,z,X,ue){var ge=_.prev,Le=_,_e=_.next;if(hs(ge,Le,_e)>=0)return!1;for(var tt=ge.xLe.x?ge.x>_e.x?ge.x:_e.x:Le.x>_e.x?Le.x:_e.x,Ot=ge.y>Le.y?ge.y>_e.y?ge.y:_e.y:Le.y>_e.y?Le.y:_e.y,Jt=lS(tt,bt,z,X,ue),ir=lS(Pt,Ot,z,X,ue),rr=_.prevZ,Tr=_.nextZ;rr&&rr.z>=Jt&&Tr&&Tr.z<=ir;){if(rr!==_.prev&&rr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,rr.x,rr.y)&&hs(rr.prev,rr,rr.next)>=0||(rr=rr.prevZ,Tr!==_.prev&&Tr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,Tr.x,Tr.y)&&hs(Tr.prev,Tr,Tr.next)>=0))return!1;Tr=Tr.nextZ}for(;rr&&rr.z>=Jt;){if(rr!==_.prev&&rr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,rr.x,rr.y)&&hs(rr.prev,rr,rr.next)>=0)return!1;rr=rr.prevZ}for(;Tr&&Tr.z<=ir;){if(Tr!==_.prev&&Tr!==_.next&&_g(ge.x,ge.y,Le.x,Le.y,_e.x,_e.y,Tr.x,Tr.y)&&hs(Tr.prev,Tr,Tr.next)>=0)return!1;Tr=Tr.nextZ}return!0}function kz(_,z,X){var ue=_;do{var ge=ue.prev,Le=ue.next.next;!Qb(ge,Le)&&D6(ge,ue,ue.next,Le)&&a1(ge,Le)&&a1(Le,ge)&&(z.push(ge.i/X),z.push(ue.i/X),z.push(Le.i/X),i1(ue),i1(ue.next),ue=_=Le),ue=ue.next}while(ue!==_);return Zv(ue)}function Dz(_,z,X,ue,ge,Le){var _e=_;do{for(var tt=_e.next.next;tt!==_e.prev;){if(_e.i!==tt.i&&Vz(_e,tt)){var bt=O6(_e,tt);_e=Zv(_e,_e.next),bt=Zv(bt,bt.next),n1(_e,z,X,ue,ge,Le),n1(bt,z,X,ue,ge,Le);return}tt=tt.next}_e=_e.next}while(_e!==_)}function Oz(_,z,X,ue){var ge=[],Le,_e,tt,bt,Pt;for(Le=0,_e=z.length;Le<_e;Le++)tt=z[Le]*ue,bt=Le<_e-1?z[Le+1]*ue:_.length,Pt=k6(_,tt,bt,ue,!1),Pt===Pt.next&&(Pt.steiner=!0),ge.push(Hz(Pt));for(ge.sort(Fz),Le=0;Le=X.next.y&&X.next.y!==X.y){var tt=X.x+(ge-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(tt<=ue&&tt>Le){if(Le=tt,tt===ue){if(ge===X.y)return X;if(ge===X.next.y)return X.next}_e=X.x=X.x&&X.x>=Pt&&ue!==X.x&&_g(ge_e.x||X.x===_e.x&&Bz(_e,X)))&&(_e=X,Jt=ir)),X=X.next;while(X!==bt);return _e}function Bz(_,z){return hs(_.prev,_,z.prev)<0&&hs(z.next,_,_.next)<0}function Nz(_,z,X,ue){var ge=_;do ge.z===null&&(ge.z=lS(ge.x,ge.y,z,X,ue)),ge.prevZ=ge.prev,ge.nextZ=ge.next,ge=ge.next;while(ge!==_);ge.prevZ.nextZ=null,ge.prevZ=null,Uz(ge)}function Uz(_){var z,X,ue,ge,Le,_e,tt,bt,Pt=1;do{for(X=_,_=null,Le=null,_e=0;X;){for(_e++,ue=X,tt=0,z=0;z0||bt>0&&ue;)tt!==0&&(bt===0||!ue||X.z<=ue.z)?(ge=X,X=X.nextZ,tt--):(ge=ue,ue=ue.nextZ,bt--),Le?Le.nextZ=ge:_=ge,ge.prevZ=Le,Le=ge;X=ue}Le.nextZ=null,Pt*=2}while(_e>1);return _}function lS(_,z,X,ue,ge){return _=32767*(_-X)*ge,z=32767*(z-ue)*ge,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,z=(z|z<<8)&16711935,z=(z|z<<4)&252645135,z=(z|z<<2)&858993459,z=(z|z<<1)&1431655765,_|z<<1}function Hz(_){var z=_,X=_;do(z.x=0&&(_-_e)*(ue-tt)-(X-_e)*(z-tt)>=0&&(X-_e)*(Le-tt)-(ge-_e)*(ue-tt)>=0}function Vz(_,z){return _.next.i!==z.i&&_.prev.i!==z.i&&!jz(_,z)&&(a1(_,z)&&a1(z,_)&&Gz(_,z)&&(hs(_.prev,_,z.prev)||hs(_,z.prev,z))||Qb(_,z)&&hs(_.prev,_,_.next)>0&&hs(z.prev,z,z.next)>0)}function hs(_,z,X){return(z.y-_.y)*(X.x-z.x)-(z.x-_.x)*(X.y-z.y)}function Qb(_,z){return _.x===z.x&&_.y===z.y}function D6(_,z,X,ue){var ge=ew(hs(_,z,X)),Le=ew(hs(_,z,ue)),_e=ew(hs(X,ue,_)),tt=ew(hs(X,ue,z));return!!(ge!==Le&&_e!==tt||ge===0&&qb(_,X,z)||Le===0&&qb(_,ue,z)||_e===0&&qb(X,_,ue)||tt===0&&qb(X,z,ue))}function qb(_,z,X){return z.x<=Math.max(_.x,X.x)&&z.x>=Math.min(_.x,X.x)&&z.y<=Math.max(_.y,X.y)&&z.y>=Math.min(_.y,X.y)}function ew(_){return _>0?1:_<0?-1:0}function jz(_,z){var X=_;do{if(X.i!==_.i&&X.next.i!==_.i&&X.i!==z.i&&X.next.i!==z.i&&D6(X,X.next,_,z))return!0;X=X.next}while(X!==_);return!1}function a1(_,z){return hs(_.prev,_,_.next)<0?hs(_,z,_.next)>=0&&hs(_,_.prev,z)>=0:hs(_,z,_.prev)<0||hs(_,_.next,z)<0}function Gz(_,z){var X=_,ue=!1,ge=(_.x+z.x)/2,Le=(_.y+z.y)/2;do X.y>Le!=X.next.y>Le&&X.next.y!==X.y&&ge<(X.next.x-X.x)*(Le-X.y)/(X.next.y-X.y)+X.x&&(ue=!ue),X=X.next;while(X!==_);return ue}function O6(_,z){var X=new uS(_.i,_.x,_.y),ue=new uS(z.i,z.x,z.y),ge=_.next,Le=z.prev;return _.next=z,z.prev=_,X.next=ge,ge.prev=X,ue.next=X,X.prev=ue,Le.next=ue,ue.prev=Le,ue}function F6(_,z,X,ue){var ge=new uS(_,z,X);return ue?(ge.next=ue.next,ge.prev=ue,ue.next.prev=ge,ue.next=ge):(ge.prev=ge,ge.next=ge),ge}function i1(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function uS(_,z,X){this.i=_,this.x=z,this.y=X,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Jb.deviation=function(_,z,X,ue){var ge=z&&z.length,Le=ge?z[0]*X:_.length,_e=Math.abs(cS(_,0,Le,X));if(ge)for(var tt=0,bt=z.length;tt0&&(ue+=_[ge-1].length,X.holes.push(ue))}return X},sS.default=Lz;function Wz(_,z,X,ue,ge){_6(_,z,X,ue||_.length-1,ge||$z)}function _6(_,z,X,ue,ge){for(;ue>X;){if(ue-X>600){var Le=ue-X+1,_e=z-X+1,tt=Math.log(Le),bt=.5*Math.exp(2*tt/3),Pt=.5*Math.sqrt(tt*bt*(Le-bt)/Le)*(_e-Le/2<0?-1:1),Ot=Math.max(X,Math.floor(z-_e*bt/Le+Pt)),Jt=Math.min(ue,Math.floor(z+(Le-_e)*bt/Le+Pt));_6(_,z,Ot,Jt,ge)}var ir=_[z],rr=X,Tr=ue;for(o1(_,X,z),ge(_[ue],ir)>0&&o1(_,X,ue);rr0;)Tr--}ge(_[X],ir)===0?o1(_,X,Tr):(Tr++,o1(_,Tr,ue)),Tr<=z&&(X=Tr+1),z<=Tr&&(ue=Tr-1)}}function o1(_,z,X){var ue=_[z];_[z]=_[X],_[X]=ue}function $z(_,z){return _z?1:0}function fS(_,z){var X=_.length;if(X<=1)return[_];for(var ue=[],ge,Le,_e=0;_e1)for(var bt=0;bt>3}if(ue--,X===1||X===2)ge+=_.readSVarint(),Le+=_.readSVarint(),X===1&&(tt&&_e.push(tt),tt=[]),tt.push(new a(ge,Le));else if(X===7)tt&&tt.push(tt[0].clone());else throw new Error("unknown command "+X)}return tt&&_e.push(tt),_e},zg.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var z=_.readVarint()+_.pos,X=1,ue=0,ge=0,Le=0,_e=1/0,tt=-1/0,bt=1/0,Pt=-1/0;_.pos>3}if(ue--,X===1||X===2)ge+=_.readSVarint(),Le+=_.readSVarint(),ge<_e&&(_e=ge),ge>tt&&(tt=ge),LePt&&(Pt=Le);else if(X!==7)throw new Error("unknown command "+X)}return[_e,bt,tt,Pt]},zg.prototype.toGeoJSON=function(_,z,X){var ue=this.extent*Math.pow(2,X),ge=this.extent*_,Le=this.extent*z,_e=this.loadGeometry(),tt=zg.types[this.type],bt,Pt;function Ot(rr){for(var Tr=0;Tr>3;z=ue===1?_.readString():ue===2?_.readFloat():ue===3?_.readDouble():ue===4?_.readVarint64():ue===5?_.readVarint():ue===6?_.readSVarint():ue===7?_.readBoolean():null}return z}N6.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var z=this._pbf.readVarint()+this._pbf.pos;return new z6(this._pbf,z,this.extent,this._keys,this._values)};var sB=lB;function lB(_,z){this.layers=_.readFields(uB,{},z)}function uB(_,z,X){if(_===3){var ue=new B6(X,X.readVarint()+X.pos);ue.length&&(z[ue.name]=ue)}}var cB=sB,fB=z6,dB=B6,Bg={VectorTile:cB,VectorTileFeature:fB,VectorTileLayer:dB},hB=Bg.VectorTileFeature.types,vB=500,vS=Math.pow(2,13);function s1(_,z,X,ue,ge,Le,_e,tt){_.emplaceBack(z,X,Math.floor(ue*vS)*2+_e,ge*vS*2,Le*vS*2,Math.round(tt))}var id=function(z){this.zoom=z.zoom,this.overscaling=z.overscaling,this.layers=z.layers,this.layerIds=this.layers.map(function(X){return X.id}),this.index=z.index,this.hasPattern=!1,this.layoutVertexArray=new jd,this.indexArray=new rd,this.programConfigurations=new Ea(z.layers,z.zoom),this.segments=new ds,this.stateDependentLayerIds=this.layers.filter(function(X){return X.isStateDependent()}).map(function(X){return X.id})};id.prototype.populate=function(z,X,ue){this.features=[],this.hasPattern=dS("fill-extrusion",this.layers,X);for(var ge=0,Le=z;ge=1){var kn=pn[Dn-1];if(!pB(Cn,kn)){rr.vertexLength+4>ds.MAX_VERTEX_ARRAY_LENGTH&&(rr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var jn=Cn.sub(kn)._perp()._unit(),ta=kn.dist(Cn);on+ta>32768&&(on=0),s1(this.layoutVertexArray,Cn.x,Cn.y,jn.x,jn.y,0,0,on),s1(this.layoutVertexArray,Cn.x,Cn.y,jn.x,jn.y,0,1,on),on+=ta,s1(this.layoutVertexArray,kn.x,kn.y,jn.x,jn.y,0,0,on),s1(this.layoutVertexArray,kn.x,kn.y,jn.x,jn.y,0,1,on);var ha=rr.vertexLength;this.indexArray.emplaceBack(ha,ha+2,ha+1),this.indexArray.emplaceBack(ha+1,ha+2,ha+3),rr.vertexLength+=4,rr.primitiveLength+=2}}}}if(rr.vertexLength+Pt>ds.MAX_VERTEX_ARRAY_LENGTH&&(rr=this.segments.prepareSegment(Pt,this.layoutVertexArray,this.indexArray)),hB[z.type]==="Polygon"){for(var ca=[],Ba=[],Pa=rr.vertexLength,za=0,ii=bt;zaHa)||_.y===z.y&&(_.y<0||_.y>Ha)}function gB(_){return _.every(function(z){return z.x<0})||_.every(function(z){return z.x>Ha})||_.every(function(z){return z.y<0})||_.every(function(z){return z.y>Ha})}var mB=new Wi({"fill-extrusion-opacity":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ga(Ar["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ws(Ar["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ga(Ar["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ga(Ar["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ba(Ar["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),yB={paint:mB},xB=function(_){function z(X){_.call(this,X,yB)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.createBucket=function(ue){return new id(ue)},z.prototype.queryRadius=function(){return hc(this.paint.get("fill-extrusion-translate"))},z.prototype.is3D=function(){return!0},z.prototype.queryIntersectsFeature=function(ue,ge,Le,_e,tt,bt,Pt,Ot){var Jt=nd(ue,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),bt.angle,Pt),ir=this.paint.get("fill-extrusion-height").evaluate(ge,Le),rr=this.paint.get("fill-extrusion-base").evaluate(ge,Le),Tr=TB(Jt,Ot,bt,0),Nr=wB(_e,rr,ir,Ot),pn=Nr[0],on=Nr[1];return bB(pn,on,Tr)},z}(No);function l1(_,z){return _.x*z.x+_.y*z.y}function U6(_,z){if(_.length===1){for(var X=0,ue=z[X++],ge;!ge||ue.equals(ge);)if(ge=z[X++],!ge)return 1/0;for(;X=2&&z[Pt-1].equals(z[Pt-2]);)Pt--;for(var Ot=0;Ot0;if(ca&&Dn>Ot){var Pa=rr.dist(Tr);if(Pa>2*Jt){var za=rr.sub(rr.sub(Tr)._mult(Jt/Pa)._round());this.updateDistance(Tr,za),this.addCurrentVertex(za,pn,0,0,ir),Tr=za}}var ii=Tr&&Nr,Na=ii?ue:bt?"butt":ge;if(ii&&Na==="round"&&(ta<_e?Na="miter":ta<=2&&(Na="fakeround")),Na==="miter"&&ta>Le&&(Na="bevel"),Na==="bevel"&&(ta>2&&(Na="flipbevel"),ta100)Cn=on.mult(-1);else{var ja=ta*pn.add(on).mag()/pn.sub(on).mag();Cn._perp()._mult(ja*(Ba?-1:1))}this.addCurrentVertex(rr,Cn,0,0,ir),this.addCurrentVertex(rr,Cn.mult(-1),0,0,ir)}else if(Na==="bevel"||Na==="fakeround"){var fi=-Math.sqrt(ta*ta-1),ni=Ba?fi:0,zi=Ba?0:fi;if(Tr&&this.addCurrentVertex(rr,pn,ni,zi,ir),Na==="fakeround")for(var io=Math.round(ha*180/Math.PI/IB),Bi=1;Bi2*Jt){var gs=rr.add(Nr.sub(rr)._mult(Jt/Fs)._round());this.updateDistance(rr,gs),this.addCurrentVertex(gs,on,0,0,ir),rr=gs}}}}},Al.prototype.addCurrentVertex=function(z,X,ue,ge,Le,_e){_e===void 0&&(_e=!1);var tt=X.x+X.y*ue,bt=X.y-X.x*ue,Pt=-X.x+X.y*ge,Ot=-X.y-X.x*ge;this.addHalfVertex(z,tt,bt,_e,!1,ue,Le),this.addHalfVertex(z,Pt,Ot,_e,!0,-ge,Le),this.distance>j6/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(z,X,ue,ge,Le,_e))},Al.prototype.addHalfVertex=function(z,X,ue,ge,Le,_e,tt){var bt=z.x,Pt=z.y,Ot=this.lineClips?this.scaledDistance*(j6-1):this.scaledDistance,Jt=Ot*V6;if(this.layoutVertexArray.emplaceBack((bt<<1)+(ge?1:0),(Pt<<1)+(Le?1:0),Math.round(H6*X)+128,Math.round(H6*ue)+128,(_e===0?0:_e<0?-1:1)+1|(Jt&63)<<2,Jt>>6),this.lineClips){var ir=this.scaledDistance-this.lineClips.start,rr=this.lineClips.end-this.lineClips.start,Tr=ir/rr;this.layoutVertexArray2.emplaceBack(Tr,this.lineClipsArray.length)}var Nr=tt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Nr),tt.primitiveLength++),Le?this.e2=Nr:this.e1=Nr},Al.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Al.prototype.updateDistance=function(z,X){this.distance+=z.dist(X),this.updateScaledDistance()},je("LineBucket",Al,{omit:["layers","patternFeatures"]});var kB=new Wi({"line-cap":new ba(Ar.layout_line["line-cap"]),"line-join":new Ga(Ar.layout_line["line-join"]),"line-miter-limit":new ba(Ar.layout_line["line-miter-limit"]),"line-round-limit":new ba(Ar.layout_line["line-round-limit"]),"line-sort-key":new Ga(Ar.layout_line["line-sort-key"])}),DB=new Wi({"line-opacity":new Ga(Ar.paint_line["line-opacity"]),"line-color":new Ga(Ar.paint_line["line-color"]),"line-translate":new ba(Ar.paint_line["line-translate"]),"line-translate-anchor":new ba(Ar.paint_line["line-translate-anchor"]),"line-width":new Ga(Ar.paint_line["line-width"]),"line-gap-width":new Ga(Ar.paint_line["line-gap-width"]),"line-offset":new Ga(Ar.paint_line["line-offset"]),"line-blur":new Ga(Ar.paint_line["line-blur"]),"line-dasharray":new el(Ar.paint_line["line-dasharray"]),"line-pattern":new Ws(Ar.paint_line["line-pattern"]),"line-gradient":new fs(Ar.paint_line["line-gradient"])}),G6={paint:DB,layout:kB},OB=function(_){function z(){_.apply(this,arguments)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.possiblyEvaluate=function(ue,ge){return ge=new Ua(Math.floor(ge.zoom),{now:ge.now,fadeDuration:ge.fadeDuration,zoomHistory:ge.zoomHistory,transition:ge.transition}),_.prototype.possiblyEvaluate.call(this,ue,ge)},z.prototype.evaluate=function(ue,ge,Le,_e){return ge=A({},ge,{zoom:Math.floor(ge.zoom)}),_.prototype.evaluate.call(this,ue,ge,Le,_e)},z}(Ga),W6=new OB(G6.paint.properties["line-width"].specification);W6.useIntegerZoom=!0;var FB=function(_){function z(X){_.call(this,X,G6),this.gradientVersion=0}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype._handleSpecialPaintPropertyUpdate=function(ue){if(ue==="line-gradient"){var ge=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=ge._styleExpression.expression instanceof ml,this.gradientVersion=(this.gradientVersion+1)%h}},z.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},z.prototype.recalculate=function(ue,ge){_.prototype.recalculate.call(this,ue,ge),this.paint._values["line-floorwidth"]=W6.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ue)},z.prototype.createBucket=function(ue){return new Al(ue)},z.prototype.queryRadius=function(ue){var ge=ue,Le=$6(Ml("line-width",this,ge),Ml("line-gap-width",this,ge)),_e=Ml("line-offset",this,ge);return Le/2+Math.abs(_e)+hc(this.paint.get("line-translate"))},z.prototype.queryIntersectsFeature=function(ue,ge,Le,_e,tt,bt,Pt){var Ot=nd(ue,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),bt.angle,Pt),Jt=Pt/2*$6(this.paint.get("line-width").evaluate(ge,Le),this.paint.get("line-gap-width").evaluate(ge,Le)),ir=this.paint.get("line-offset").evaluate(ge,Le);return ir&&(_e=_B(_e,ir*Pt)),Ss(Ot,_e,Jt)},z.prototype.isTileClipped=function(){return!0},z}(No);function $6(_,z){return z>0?z+2*_:_}function _B(_,z){for(var X=[],ue=new a(0,0),ge=0;ge<_.length;ge++){for(var Le=_[ge],_e=[],tt=0;tt":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function GB(_){for(var z="",X=0;X<_.length;X++){var ue=_.charCodeAt(X+1)||null,ge=_.charCodeAt(X-1)||null,Le=(!ue||!Gr(ue)||u1[_[X+1]])&&(!ge||!Gr(ge)||u1[_[X-1]]);Le&&u1[_[X]]?z+=u1[_[X]]:z+=_[X]}return z}var $s=24,WB=function(_,z,X,ue,ge){var Le,_e,tt=ge*8-ue-1,bt=(1<>1,Ot=-7,Jt=X?ge-1:0,ir=X?-1:1,rr=_[z+Jt];for(Jt+=ir,Le=rr&(1<<-Ot)-1,rr>>=-Ot,Ot+=tt;Ot>0;Le=Le*256+_[z+Jt],Jt+=ir,Ot-=8);for(_e=Le&(1<<-Ot)-1,Le>>=-Ot,Ot+=ue;Ot>0;_e=_e*256+_[z+Jt],Jt+=ir,Ot-=8);if(Le===0)Le=1-Pt;else{if(Le===bt)return _e?NaN:(rr?-1:1)*(1/0);_e=_e+Math.pow(2,ue),Le=Le-Pt}return(rr?-1:1)*_e*Math.pow(2,Le-ue)},$B=function(_,z,X,ue,ge,Le){var _e,tt,bt,Pt=Le*8-ge-1,Ot=(1<>1,ir=ge===23?Math.pow(2,-24)-Math.pow(2,-77):0,rr=ue?0:Le-1,Tr=ue?1:-1,Nr=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(tt=isNaN(z)?1:0,_e=Ot):(_e=Math.floor(Math.log(z)/Math.LN2),z*(bt=Math.pow(2,-_e))<1&&(_e--,bt*=2),_e+Jt>=1?z+=ir/bt:z+=ir*Math.pow(2,1-Jt),z*bt>=2&&(_e++,bt/=2),_e+Jt>=Ot?(tt=0,_e=Ot):_e+Jt>=1?(tt=(z*bt-1)*Math.pow(2,ge),_e=_e+Jt):(tt=z*Math.pow(2,Jt-1)*Math.pow(2,ge),_e=0));ge>=8;_[X+rr]=tt&255,rr+=Tr,tt/=256,ge-=8);for(_e=_e<0;_[X+rr]=_e&255,rr+=Tr,_e/=256,Pt-=8);_[X+rr-Tr]|=Nr*128},tw={read:WB,write:$B},rw=go;function go(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}go.Varint=0,go.Fixed64=1,go.Bytes=2,go.Fixed32=5;var pS=65536*65536,X6=1/pS,YB=12,Z6=typeof TextDecoder>"u"?null:new TextDecoder("utf8");go.prototype={destroy:function(){this.buf=null},readFields:function(_,z,X){for(X=X||this.length;this.pos>3,Le=this.pos;this.type=ue&7,_(ge,z,this),this.pos===Le&&this.skip(ue)}return z},readMessage:function(_,z){return this.readFields(_,z,this.readVarint()+this.pos)},readFixed32:function(){var _=nw(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=J6(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=nw(this.buf,this.pos)+nw(this.buf,this.pos+4)*pS;return this.pos+=8,_},readSFixed64:function(){var _=nw(this.buf,this.pos)+J6(this.buf,this.pos+4)*pS;return this.pos+=8,_},readFloat:function(){var _=tw.read(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=tw.read(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var z=this.buf,X,ue;return ue=z[this.pos++],X=ue&127,ue<128||(ue=z[this.pos++],X|=(ue&127)<<7,ue<128)||(ue=z[this.pos++],X|=(ue&127)<<14,ue<128)||(ue=z[this.pos++],X|=(ue&127)<<21,ue<128)?X:(ue=z[this.pos],X|=(ue&15)<<28,XB(X,_,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2===1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,z=this.pos;return this.pos=_,_-z>=YB&&Z6?lN(this.buf,z,_):sN(this.buf,z,_)},readBytes:function(){var _=this.readVarint()+this.pos,z=this.buf.subarray(this.pos,_);return this.pos=_,z},readPackedVarint:function(_,z){if(this.type!==go.Bytes)return _.push(this.readVarint(z));var X=Nh(this);for(_=_||[];this.pos127;);else if(z===go.Bytes)this.pos=this.readVarint()+this.pos;else if(z===go.Fixed32)this.pos+=4;else if(z===go.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+z)},writeTag:function(_,z){this.writeVarint(_<<3|z)},realloc:function(_){for(var z=this.length||16;z268435455||_<0){ZB(_,this);return}this.realloc(4),this.buf[this.pos++]=_&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=_>>>7&127)))},writeSVarint:function(_){this.writeVarint(_<0?-_*2-1:_*2)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(_.length*4),this.pos++;var z=this.pos;this.pos=uN(this.buf,_,this.pos);var X=this.pos-z;X>=128&&K6(z,X,this),this.pos=z-1,this.writeVarint(X),this.pos+=X},writeFloat:function(_){this.realloc(4),tw.write(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),tw.write(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var z=_.length;this.writeVarint(z),this.realloc(z);for(var X=0;X=128&&K6(X,ue,this),this.pos=X-1,this.writeVarint(ue),this.pos+=ue},writeMessage:function(_,z,X){this.writeTag(_,go.Bytes),this.writeRawMessage(z,X)},writePackedVarint:function(_,z){z.length&&this.writeMessage(_,QB,z)},writePackedSVarint:function(_,z){z.length&&this.writeMessage(_,qB,z)},writePackedBoolean:function(_,z){z.length&&this.writeMessage(_,rN,z)},writePackedFloat:function(_,z){z.length&&this.writeMessage(_,eN,z)},writePackedDouble:function(_,z){z.length&&this.writeMessage(_,tN,z)},writePackedFixed32:function(_,z){z.length&&this.writeMessage(_,nN,z)},writePackedSFixed32:function(_,z){z.length&&this.writeMessage(_,aN,z)},writePackedFixed64:function(_,z){z.length&&this.writeMessage(_,iN,z)},writePackedSFixed64:function(_,z){z.length&&this.writeMessage(_,oN,z)},writeBytesField:function(_,z){this.writeTag(_,go.Bytes),this.writeBytes(z)},writeFixed32Field:function(_,z){this.writeTag(_,go.Fixed32),this.writeFixed32(z)},writeSFixed32Field:function(_,z){this.writeTag(_,go.Fixed32),this.writeSFixed32(z)},writeFixed64Field:function(_,z){this.writeTag(_,go.Fixed64),this.writeFixed64(z)},writeSFixed64Field:function(_,z){this.writeTag(_,go.Fixed64),this.writeSFixed64(z)},writeVarintField:function(_,z){this.writeTag(_,go.Varint),this.writeVarint(z)},writeSVarintField:function(_,z){this.writeTag(_,go.Varint),this.writeSVarint(z)},writeStringField:function(_,z){this.writeTag(_,go.Bytes),this.writeString(z)},writeFloatField:function(_,z){this.writeTag(_,go.Fixed32),this.writeFloat(z)},writeDoubleField:function(_,z){this.writeTag(_,go.Fixed64),this.writeDouble(z)},writeBooleanField:function(_,z){this.writeVarintField(_,!!z)}};function XB(_,z,X){var ue=X.buf,ge,Le;if(Le=ue[X.pos++],ge=(Le&112)>>4,Le<128||(Le=ue[X.pos++],ge|=(Le&127)<<3,Le<128)||(Le=ue[X.pos++],ge|=(Le&127)<<10,Le<128)||(Le=ue[X.pos++],ge|=(Le&127)<<17,Le<128)||(Le=ue[X.pos++],ge|=(Le&127)<<24,Le<128)||(Le=ue[X.pos++],ge|=(Le&1)<<31,Le<128))return Ng(_,ge,z);throw new Error("Expected varint not more than 10 bytes")}function Nh(_){return _.type===go.Bytes?_.readVarint()+_.pos:_.pos+1}function Ng(_,z,X){return X?z*4294967296+(_>>>0):(z>>>0)*4294967296+(_>>>0)}function ZB(_,z){var X,ue;if(_>=0?(X=_%4294967296|0,ue=_/4294967296|0):(X=~(-_%4294967296),ue=~(-_/4294967296),X^4294967295?X=X+1|0:(X=0,ue=ue+1|0)),_>=18446744073709552e3||_<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");z.realloc(10),KB(X,ue,z),JB(ue,z)}function KB(_,z,X){X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos++]=_&127|128,_>>>=7,X.buf[X.pos]=_&127}function JB(_,z){var X=(_&7)<<4;z.buf[z.pos++]|=X|((_>>>=3)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127|((_>>>=7)?128:0),_&&(z.buf[z.pos++]=_&127)))))}function K6(_,z,X){var ue=z<=16383?1:z<=2097151?2:z<=268435455?3:Math.floor(Math.log(z)/(Math.LN2*7));X.realloc(ue);for(var ge=X.pos-1;ge>=_;ge--)X.buf[ge+ue]=X.buf[ge]}function QB(_,z){for(var X=0;X<_.length;X++)z.writeVarint(_[X])}function qB(_,z){for(var X=0;X<_.length;X++)z.writeSVarint(_[X])}function eN(_,z){for(var X=0;X<_.length;X++)z.writeFloat(_[X])}function tN(_,z){for(var X=0;X<_.length;X++)z.writeDouble(_[X])}function rN(_,z){for(var X=0;X<_.length;X++)z.writeBoolean(_[X])}function nN(_,z){for(var X=0;X<_.length;X++)z.writeFixed32(_[X])}function aN(_,z){for(var X=0;X<_.length;X++)z.writeSFixed32(_[X])}function iN(_,z){for(var X=0;X<_.length;X++)z.writeFixed64(_[X])}function oN(_,z){for(var X=0;X<_.length;X++)z.writeSFixed64(_[X])}function nw(_,z){return(_[z]|_[z+1]<<8|_[z+2]<<16)+_[z+3]*16777216}function Ug(_,z,X){_[X]=z,_[X+1]=z>>>8,_[X+2]=z>>>16,_[X+3]=z>>>24}function J6(_,z){return(_[z]|_[z+1]<<8|_[z+2]<<16)+(_[z+3]<<24)}function sN(_,z,X){for(var ue="",ge=z;ge239?4:Le>223?3:Le>191?2:1;if(ge+tt>X)break;var bt,Pt,Ot;tt===1?Le<128&&(_e=Le):tt===2?(bt=_[ge+1],(bt&192)===128&&(_e=(Le&31)<<6|bt&63,_e<=127&&(_e=null))):tt===3?(bt=_[ge+1],Pt=_[ge+2],(bt&192)===128&&(Pt&192)===128&&(_e=(Le&15)<<12|(bt&63)<<6|Pt&63,(_e<=2047||_e>=55296&&_e<=57343)&&(_e=null))):tt===4&&(bt=_[ge+1],Pt=_[ge+2],Ot=_[ge+3],(bt&192)===128&&(Pt&192)===128&&(Ot&192)===128&&(_e=(Le&15)<<18|(bt&63)<<12|(Pt&63)<<6|Ot&63,(_e<=65535||_e>=1114112)&&(_e=null))),_e===null?(_e=65533,tt=1):_e>65535&&(_e-=65536,ue+=String.fromCharCode(_e>>>10&1023|55296),_e=56320|_e&1023),ue+=String.fromCharCode(_e),ge+=tt}return ue}function lN(_,z,X){return Z6.decode(_.subarray(z,X))}function uN(_,z,X){for(var ue=0,ge,Le;ue55295&&ge<57344)if(Le)if(ge<56320){_[X++]=239,_[X++]=191,_[X++]=189,Le=ge;continue}else ge=Le-55296<<10|ge-56320|65536,Le=null;else{ge>56319||ue+1===z.length?(_[X++]=239,_[X++]=191,_[X++]=189):Le=ge;continue}else Le&&(_[X++]=239,_[X++]=191,_[X++]=189,Le=null);ge<128?_[X++]=ge:(ge<2048?_[X++]=ge>>6|192:(ge<65536?_[X++]=ge>>12|224:(_[X++]=ge>>18|240,_[X++]=ge>>12&63|128),_[X++]=ge>>6&63|128),_[X++]=ge&63|128)}return X}var gS=3;function cN(_,z,X){_===1&&X.readMessage(fN,z)}function fN(_,z,X){if(_===3){var ue=X.readMessage(dN,{}),ge=ue.id,Le=ue.bitmap,_e=ue.width,tt=ue.height,bt=ue.left,Pt=ue.top,Ot=ue.advance;z.push({id:ge,bitmap:new M0({width:_e+2*gS,height:tt+2*gS},Le),metrics:{width:_e,height:tt,left:bt,top:Pt,advance:Ot}})}}function dN(_,z,X){_===1?z.id=X.readVarint():_===2?z.bitmap=X.readBytes():_===3?z.width=X.readVarint():_===4?z.height=X.readVarint():_===5?z.left=X.readSVarint():_===6?z.top=X.readSVarint():_===7&&(z.advance=X.readVarint())}function hN(_){return new rw(_).readFields(cN,[])}var Q6=gS;function q6(_){for(var z=0,X=0,ue=0,ge=_;ue=0;rr--){var Tr=tt[rr];if(!(ir.w>Tr.w||ir.h>Tr.h)){if(ir.x=Tr.x,ir.y=Tr.y,Pt=Math.max(Pt,ir.y+ir.h),bt=Math.max(bt,ir.x+ir.w),ir.w===Tr.w&&ir.h===Tr.h){var Nr=tt.pop();rr=0&&ge>=z&&$d[this.text.charCodeAt(ge)];ge--)ue--;this.text=this.text.substring(z,ue),this.sectionIndex=this.sectionIndex.slice(z,ue)},sl.prototype.substring=function(z,X){var ue=new sl;return ue.text=this.text.substring(z,X),ue.sectionIndex=this.sectionIndex.slice(z,X),ue.sections=this.sections,ue},sl.prototype.toString=function(){return this.text},sl.prototype.getMaxScale=function(){var z=this;return this.sectionIndex.reduce(function(X,ue){return Math.max(X,z.sections[ue].scale)},0)},sl.prototype.addTextSection=function(z,X){this.text+=z.text,this.sections.push(Hg.forText(z.scale,z.fontStack||X));for(var ue=this.sections.length-1,ge=0;ge=tE?null:++this.imageSectionID:(this.imageSectionID=eE,this.imageSectionID)};function pN(_,z){for(var X=[],ue=_.text,ge=0,Le=0,_e=z;Le<_e.length;Le+=1){var tt=_e[Le];X.push(_.substring(ge,tt)),ge=tt}return ge=0,Ot=0,Jt=0;Jt<_.length();Jt++){var ir=_.getSection(Jt),rr=_.getCharCode(Jt);if($d[rr]||(Ot+=rE(rr,ir,ue,ge,z,_e)),Jt<_.length()-1){var Tr=tn(rr);(hu[rr]||Tr||ir.imageName)&&tt.push(aE(Jt+1,Ot,bt,tt,mN(rr,_.getCharCode(Jt+1),Tr&&Pt),!1))}}return iE(aE(_.length(),Ot,bt,tt,0,!0))}function yS(_){var z=.5,X=.5;switch(_){case"right":case"top-right":case"bottom-right":z=1;break;case"left":case"top-left":case"bottom-left":z=0;break}switch(_){case"bottom":case"bottom-right":case"bottom-left":X=1;break;case"top":case"top-right":case"top-left":X=0;break}return{horizontalAlign:z,verticalAlign:X}}function yN(_,z,X,ue,ge,Le,_e,tt,bt,Pt,Ot,Jt){for(var ir=0,rr=d1,Tr=0,Nr=0,pn=tt==="right"?1:tt==="left"?0:.5,on=0,Dn=0,Cn=ge;Dn0&&gs>Ba&&(Ba=gs)}else{var Ni=X[za.fontStack],Li=Ni&&Ni[Na];if(Li&&Li.rect)ni=Li.rect,fi=Li.metrics;else{var ho=z[za.fontStack],mo=ho&&ho[Na];if(!mo)continue;fi=mo.metrics}ja=(jn-za.scale)*$s}Bi?(_.verticalizable=!0,ca.push({glyph:Na,imageName:zi,x:ir,y:rr+ja,vertical:Bi,scale:za.scale,fontStack:za.fontStack,sectionIndex:ii,metrics:fi,rect:ni}),ir+=io*za.scale+Pt):(ca.push({glyph:Na,imageName:zi,x:ir,y:rr+ja,vertical:Bi,scale:za.scale,fontStack:za.fontStack,sectionIndex:ii,metrics:fi,rect:ni}),ir+=fi.advance*za.scale+Pt)}if(ca.length!==0){var ll=ir-Pt;Tr=Math.max(ll,Tr),xN(ca,0,ca.length-1,pn,Ba)}ir=0;var ul=Le*jn+Ba;ha.lineOffset=Math.max(Ba,ta),rr+=ul,Nr=Math.max(ul,Nr),++on}var _s=rr-d1,El=yS(_e),Pl=El.horizontalAlign,Cs=El.verticalAlign;bN(_.positionedLines,pn,Pl,Cs,Tr,Nr,Le,_s,ge.length),_.top+=-Cs*_s,_.bottom=_.top+_s,_.left+=-Pl*Tr,_.right=_.left+Tr}function xN(_,z,X,ue,ge){if(!(!ue&&!ge))for(var Le=_[X],_e=Le.metrics.advance*Le.scale,tt=(_[X].x+_e)*ue,bt=z;bt<=X;bt++)_[bt].x-=tt,_[bt].y+=ge}function bN(_,z,X,ue,ge,Le,_e,tt,bt){var Pt=(z-X)*ge,Ot=0;Le!==_e?Ot=-tt*ue-d1:Ot=(-ue*bt+.5)*_e;for(var Jt=0,ir=_;Jt-X/2;){if(_e--,_e<0)return!1;tt-=_[_e].dist(Le),Le=_[_e]}tt+=_[_e].dist(_[_e+1]),_e++;for(var bt=[],Pt=0;ttue;)Pt-=bt.shift().angleDelta;if(Pt>ge)return!1;_e++,tt+=Jt.dist(ir)}return!0}function cE(_){for(var z=0,X=0;X<_.length-1;X++)z+=_[X].dist(_[X+1]);return z}function fE(_,z,X){return _?.6*z*X:0}function dE(_,z){return Math.max(_?_.right-_.left:0,z?z.right-z.left:0)}function SN(_,z,X,ue,ge,Le){for(var _e=fE(X,ge,Le),tt=dE(X,ue)*Le,bt=0,Pt=cE(_)/2,Ot=0;Ot<_.length-1;Ot++){var Jt=_[Ot],ir=_[Ot+1],rr=Jt.dist(ir);if(bt+rr>Pt){var Tr=(Pt-bt)/rr,Nr=So(Jt.x,ir.x,Tr),pn=So(Jt.y,ir.y,Tr),on=new Vg(Nr,pn,ir.angleTo(Jt),Ot);return on._round(),!_e||uE(_,on,tt,_e,z)?on:void 0}bt+=rr}}function CN(_,z,X,ue,ge,Le,_e,tt,bt){var Pt=fE(ue,Le,_e),Ot=dE(ue,ge),Jt=Ot*_e,ir=_[0].x===0||_[0].x===bt||_[0].y===0||_[0].y===bt;z-Jt=0&&kn=0&&jn=0&&ir+Pt<=Ot){var ta=new Vg(kn,jn,Dn,Tr);ta._round(),(!ue||uE(_,ta,Le,ue,ge))&&rr.push(ta)}}Jt+=on}return!tt&&!rr.length&&!_e&&(rr=hE(_,Jt/2,X,ue,ge,Le,_e,!0,bt)),rr}function vE(_,z,X,ue,ge){for(var Le=[],_e=0;_e<_.length;_e++)for(var tt=_[_e],bt=void 0,Pt=0;Pt=ue&&Jt.x>=ue)&&(Ot.x>=ue?Ot=new a(ue,Ot.y+(Jt.y-Ot.y)*((ue-Ot.x)/(Jt.x-Ot.x)))._round():Jt.x>=ue&&(Jt=new a(ue,Ot.y+(Jt.y-Ot.y)*((ue-Ot.x)/(Jt.x-Ot.x)))._round()),!(Ot.y>=ge&&Jt.y>=ge)&&(Ot.y>=ge?Ot=new a(Ot.x+(Jt.x-Ot.x)*((ge-Ot.y)/(Jt.y-Ot.y)),ge)._round():Jt.y>=ge&&(Jt=new a(Ot.x+(Jt.x-Ot.x)*((ge-Ot.y)/(Jt.y-Ot.y)),ge)._round()),(!bt||!Ot.equals(bt[bt.length-1]))&&(bt=[Ot],Le.push(bt)),bt.push(Jt)))))}return Le}var jg=du;function pE(_,z,X,ue){var ge=[],Le=_.image,_e=Le.pixelRatio,tt=Le.paddedRect.w-2*jg,bt=Le.paddedRect.h-2*jg,Pt=_.right-_.left,Ot=_.bottom-_.top,Jt=Le.stretchX||[[0,tt]],ir=Le.stretchY||[[0,bt]],rr=function(Ni,Li){return Ni+Li[1]-Li[0]},Tr=Jt.reduce(rr,0),Nr=ir.reduce(rr,0),pn=tt-Tr,on=bt-Nr,Dn=0,Cn=Tr,kn=0,jn=Nr,ta=0,ha=pn,ca=0,Ba=on;if(Le.content&&ue){var Pa=Le.content;Dn=ow(Jt,0,Pa[0]),kn=ow(ir,0,Pa[1]),Cn=ow(Jt,Pa[0],Pa[2]),jn=ow(ir,Pa[1],Pa[3]),ta=Pa[0]-Dn,ca=Pa[1]-kn,ha=Pa[2]-Pa[0]-Cn,Ba=Pa[3]-Pa[1]-jn}var za=function(Ni,Li,ho,mo){var Ho=sw(Ni.stretch-Dn,Cn,Pt,_.left),Xo=lw(Ni.fixed-ta,ha,Ni.stretch,Tr),Fs=sw(Li.stretch-kn,jn,Ot,_.top),gs=lw(Li.fixed-ca,Ba,Li.stretch,Nr),ll=sw(ho.stretch-Dn,Cn,Pt,_.left),ul=lw(ho.fixed-ta,ha,ho.stretch,Tr),_s=sw(mo.stretch-kn,jn,Ot,_.top),El=lw(mo.fixed-ca,Ba,mo.stretch,Nr),Pl=new a(Ho,Fs),Cs=new a(ll,Fs),Ll=new a(ll,_s),Bu=new a(Ho,_s),Vh=new a(Xo/_e,gs/_e),Qv=new a(ul/_e,El/_e),qv=z*Math.PI/180;if(qv){var ep=Math.sin(qv),Jg=Math.cos(qv),rf=[Jg,-ep,ep,Jg];Pl._matMult(rf),Cs._matMult(rf),Bu._matMult(rf),Ll._matMult(rf)}var vw=Ni.stretch+Ni.fixed,ES=ho.stretch+ho.fixed,pw=Li.stretch+Li.fixed,PS=mo.stretch+mo.fixed,pc={x:Le.paddedRect.x+jg+vw,y:Le.paddedRect.y+jg+pw,w:ES-vw,h:PS-pw},Qg=ha/_e/Pt,gw=Ba/_e/Ot;return{tl:Pl,tr:Cs,bl:Bu,br:Ll,tex:pc,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Vh,pixelOffsetBR:Qv,minFontScaleX:Qg,minFontScaleY:gw,isSDF:X}};if(!ue||!Le.stretchX&&!Le.stretchY)ge.push(za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:tt+1},{fixed:0,stretch:bt+1}));else for(var ii=gE(Jt,pn,Tr),Na=gE(ir,on,Nr),ja=0;ja0&&(Tr=Math.max(10,Tr),this.circleDiameter=Tr)}else{var Nr=_e.top*tt-bt,pn=_e.bottom*tt+bt,on=_e.left*tt-bt,Dn=_e.right*tt+bt,Cn=_e.collisionPadding;if(Cn&&(on-=Cn[0]*tt,Nr-=Cn[1]*tt,Dn+=Cn[2]*tt,pn+=Cn[3]*tt),Ot){var kn=new a(on,Nr),jn=new a(Dn,Nr),ta=new a(on,pn),ha=new a(Dn,pn),ca=Ot*Math.PI/180;kn._rotate(ca),jn._rotate(ca),ta._rotate(ca),ha._rotate(ca),on=Math.min(kn.x,jn.x,ta.x,ha.x),Dn=Math.max(kn.x,jn.x,ta.x,ha.x),Nr=Math.min(kn.y,jn.y,ta.y,ha.y),pn=Math.max(kn.y,jn.y,ta.y,ha.y)}z.emplaceBack(X.x,X.y,on,Nr,Dn,pn,ue,ge,Le)}this.boxEndIndex=z.length},Gg=function(z,X){if(z===void 0&&(z=[]),X===void 0&&(X=AN),this.data=z,this.length=this.data.length,this.compare=X,this.length>0)for(var ue=(this.length>>1)-1;ue>=0;ue--)this._down(ue)};Gg.prototype.push=function(z){this.data.push(z),this.length++,this._up(this.length-1)},Gg.prototype.pop=function(){if(this.length!==0){var z=this.data[0],X=this.data.pop();return this.length--,this.length>0&&(this.data[0]=X,this._down(0)),z}},Gg.prototype.peek=function(){return this.data[0]},Gg.prototype._up=function(z){for(var X=this,ue=X.data,ge=X.compare,Le=ue[z];z>0;){var _e=z-1>>1,tt=ue[_e];if(ge(Le,tt)>=0)break;ue[z]=tt,z=_e}ue[z]=Le},Gg.prototype._down=function(z){for(var X=this,ue=X.data,ge=X.compare,Le=this.length>>1,_e=ue[z];z=0)break;ue[z]=bt,z=tt}ue[z]=_e};function AN(_,z){return _z?1:0}function EN(_,z,X){X===void 0&&(X=!1);for(var ue=1/0,ge=1/0,Le=-1/0,_e=-1/0,tt=_[0],bt=0;btLe)&&(Le=Pt.x),(!bt||Pt.y>_e)&&(_e=Pt.y)}var Ot=Le-ue,Jt=_e-ge,ir=Math.min(Ot,Jt),rr=ir/2,Tr=new Gg([],PN);if(ir===0)return new a(ue,ge);for(var Nr=ue;Nron.d||!on.d)&&(on=Cn,X&&console.log("found best %d after %d probes",Math.round(1e4*Cn.d)/1e4,Dn)),!(Cn.max-on.d<=z)&&(rr=Cn.h/2,Tr.push(new Wg(Cn.p.x-rr,Cn.p.y-rr,rr,_)),Tr.push(new Wg(Cn.p.x+rr,Cn.p.y-rr,rr,_)),Tr.push(new Wg(Cn.p.x-rr,Cn.p.y+rr,rr,_)),Tr.push(new Wg(Cn.p.x+rr,Cn.p.y+rr,rr,_)),Dn+=4)}return X&&(console.log("num probes: "+Dn),console.log("best distance: "+on.d)),on.p}function PN(_,z){return z.max-_.max}function Wg(_,z,X,ue){this.p=new a(_,z),this.h=X,this.d=LN(this.p,ue),this.max=this.d+this.h*Math.SQRT2}function LN(_,z){for(var X=!1,ue=1/0,ge=0;ge_.y!=Ot.y>_.y&&_.x<(Ot.x-Pt.x)*(_.y-Pt.y)/(Ot.y-Pt.y)+Pt.x&&(X=!X),ue=Math.min(ue,Bh(_,Pt,Ot))}return(X?1:-1)*Math.sqrt(ue)}function IN(_){for(var z=0,X=0,ue=0,ge=_[0],Le=0,_e=ge.length,tt=_e-1;Le<_e;tt=Le++){var bt=ge[Le],Pt=ge[tt],Ot=bt.x*Pt.y-Pt.x*bt.y;X+=(bt.x+Pt.x)*Ot,ue+=(bt.y+Pt.y)*Ot,z+=Ot*3}return new Wg(X/z,ue/z,0,_)}var $g=7,bS=Number.POSITIVE_INFINITY;function mE(_,z){function X(ge,Le){var _e=0,tt=0;Le<0&&(Le=0);var bt=Le/Math.sqrt(2);switch(ge){case"top-right":case"top-left":tt=bt-$g;break;case"bottom-right":case"bottom-left":tt=-bt+$g;break;case"bottom":tt=-Le+$g;break;case"top":tt=Le-$g;break}switch(ge){case"top-right":case"bottom-right":_e=-bt;break;case"top-left":case"bottom-left":_e=bt;break;case"left":_e=Le;break;case"right":_e=-Le;break}return[_e,tt]}function ue(ge,Le,_e){var tt=0,bt=0;switch(Le=Math.abs(Le),_e=Math.abs(_e),ge){case"top-right":case"top-left":case"top":bt=_e-$g;break;case"bottom-right":case"bottom-left":case"bottom":bt=-_e+$g;break}switch(ge){case"top-right":case"bottom-right":case"right":tt=-Le;break;case"top-left":case"bottom-left":case"left":tt=Le;break}return[tt,bt]}return z[1]!==bS?ue(_,z[0],z[1]):X(_,z[0])}function RN(_,z,X,ue,ge,Le,_e){_.createArrays();var tt=512*_.overscaling;_.tilePixelRatio=Ha/tt,_.compareText={},_.iconsNeedLinear=!1;var bt=_.layers[0].layout,Pt=_.layers[0]._unevaluatedLayout._values,Ot={};if(_.textSizeData.kind==="composite"){var Jt=_.textSizeData,ir=Jt.minZoom,rr=Jt.maxZoom;Ot.compositeTextSizes=[Pt["text-size"].possiblyEvaluate(new Ua(ir),_e),Pt["text-size"].possiblyEvaluate(new Ua(rr),_e)]}if(_.iconSizeData.kind==="composite"){var Tr=_.iconSizeData,Nr=Tr.minZoom,pn=Tr.maxZoom;Ot.compositeIconSizes=[Pt["icon-size"].possiblyEvaluate(new Ua(Nr),_e),Pt["icon-size"].possiblyEvaluate(new Ua(pn),_e)]}Ot.layoutTextSize=Pt["text-size"].possiblyEvaluate(new Ua(_.zoom+1),_e),Ot.layoutIconSize=Pt["icon-size"].possiblyEvaluate(new Ua(_.zoom+1),_e),Ot.textMaxSize=Pt["text-size"].possiblyEvaluate(new Ua(18));for(var on=bt.get("text-line-height")*$s,Dn=bt.get("text-rotation-alignment")==="map"&&bt.get("symbol-placement")!=="point",Cn=bt.get("text-keep-upright"),kn=bt.get("text-size"),jn=function(){var ca=ha[ta],Ba=bt.get("text-font").evaluate(ca,{},_e).join(","),Pa=kn.evaluate(ca,{},_e),za=Ot.layoutTextSize.evaluate(ca,{},_e),ii=Ot.layoutIconSize.evaluate(ca,{},_e),Na={horizontal:{},vertical:void 0},ja=ca.text,fi=[0,0];if(ja){var ni=ja.toString(),zi=bt.get("text-letter-spacing").evaluate(ca,{},_e)*$s,io=Ir(ni)?zi:0,Bi=bt.get("text-anchor").evaluate(ca,{},_e),Ni=bt.get("text-variable-anchor");if(!Ni){var Li=bt.get("text-radial-offset").evaluate(ca,{},_e);Li?fi=mE(Bi,[Li*$s,bS]):fi=bt.get("text-offset").evaluate(ca,{},_e).map(function(Vh){return Vh*$s})}var ho=Dn?"center":bt.get("text-justify").evaluate(ca,{},_e),mo=bt.get("symbol-placement"),Ho=mo==="point"?bt.get("text-max-width").evaluate(ca,{},_e)*$s:0,Xo=function(){_.allowVerticalPlacement&&nr(ni)&&(Na.vertical=iw(ja,z,X,ge,Ba,Ho,on,Bi,"left",io,fi,zu.vertical,!0,mo,za,Pa))};if(!Dn&&Ni){for(var Fs=ho==="auto"?Ni.map(function(Vh){return wS(Vh)}):[ho],gs=!1,ll=0;ll=Ha||rf.y<0||rf.y>=Ha||DN(_,rf,Jg,X,ue,ge,Na,_.layers[0],_.collisionBoxArray,z.index,z.sourceLayerIndex,_.index,on,jn,ca,bt,Cn,ta,Ba,rr,z,Le,Pt,Ot,_e)};if(Pa==="line")for(var fi=0,ni=vE(z.geometry,0,0,Ha,Ha);fi1){var Fs=SN(Xo,ha,X.vertical||Tr,ue,Nr,Dn);Fs&&ja(Xo,Fs)}}else if(z.type==="Polygon")for(var gs=0,ll=fS(z.geometry,0);gsKv&&W(_.layerIds[0]+': Value for "text-size" is >= '+h1+'. Reduce your "text-size".')):pn.kind==="composite"&&(on=[od*rr.compositeTextSizes[0].evaluate(_e,{},Tr),od*rr.compositeTextSizes[1].evaluate(_e,{},Tr)],(on[0]>Kv||on[1]>Kv)&&W(_.layerIds[0]+': Value for "text-size" is >= '+h1+'. Reduce your "text-size".')),_.addSymbols(_.text,Nr,on,tt,Le,_e,Pt,z,bt.lineStartIndex,bt.lineLength,ir,Tr);for(var Dn=0,Cn=Ot;DnKv&&W(_.layerIds[0]+': Value for "icon-size" is >= '+h1+'. Reduce your "icon-size".')):Pl.kind==="composite"&&(Cs=[od*jn.compositeIconSizes[0].evaluate(kn,{},ha),od*jn.compositeIconSizes[1].evaluate(kn,{},ha)],(Cs[0]>Kv||Cs[1]>Kv)&&W(_.layerIds[0]+': Value for "icon-size" is >= '+h1+'. Reduce your "icon-size".')),_.addSymbols(_.icon,_s,Cs,Cn,Dn,kn,!1,z,Pa.lineStartIndex,Pa.lineLength,-1,ha),Bi=_.icon.placedSymbolArray.length-1,El&&(ni=El.length*4,_.addSymbols(_.icon,El,Cs,Cn,Dn,kn,zu.vertical,z,Pa.lineStartIndex,Pa.lineLength,-1,ha),Ni=_.icon.placedSymbolArray.length-1)}for(var Ll in ue.horizontal){var Bu=ue.horizontal[Ll];if(!za){ho=ye(Bu.text);var Vh=tt.layout.get("text-rotate").evaluate(kn,{},ha);za=new uw(bt,z,Pt,Ot,Jt,Bu,ir,rr,Tr,Vh)}var Qv=Bu.positionedLines.length===1;if(zi+=yE(_,z,Bu,Le,tt,Tr,kn,Nr,Pa,ue.vertical?zu.horizontal:zu.horizontalOnly,Qv?Object.keys(ue.horizontal):[Ll],Li,Bi,jn,ha),Qv)break}ue.vertical&&(io+=yE(_,z,ue.vertical,Le,tt,Tr,kn,Nr,Pa,zu.vertical,["vertical"],Li,Ni,jn,ha));var qv=za?za.boxStartIndex:_.collisionBoxArray.length,ep=za?za.boxEndIndex:_.collisionBoxArray.length,Jg=Na?Na.boxStartIndex:_.collisionBoxArray.length,rf=Na?Na.boxEndIndex:_.collisionBoxArray.length,vw=ii?ii.boxStartIndex:_.collisionBoxArray.length,ES=ii?ii.boxEndIndex:_.collisionBoxArray.length,pw=ja?ja.boxStartIndex:_.collisionBoxArray.length,PS=ja?ja.boxEndIndex:_.collisionBoxArray.length,pc=-1,Qg=function(g1,FE){return g1&&g1.circleDiameter?Math.max(g1.circleDiameter,FE):FE};pc=Qg(za,pc),pc=Qg(Na,pc),pc=Qg(ii,pc),pc=Qg(ja,pc);var gw=pc>-1?1:0;gw&&(pc*=ca/$s),_.glyphOffsetArray.length>=ao.MAX_GLYPHS&&W("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),kn.sortKey!==void 0&&_.addToSortKeyRanges(_.symbolInstances.length,kn.sortKey),_.symbolInstances.emplaceBack(z.x,z.y,Li.right>=0?Li.right:-1,Li.center>=0?Li.center:-1,Li.left>=0?Li.left:-1,Li.vertical||-1,Bi,Ni,ho,qv,ep,Jg,rf,vw,ES,pw,PS,Pt,zi,io,fi,ni,gw,0,ir,mo,Ho,pc)}function ON(_,z,X,ue){var ge=_.compareText;if(!(z in ge))ge[z]=[];else for(var Le=ge[z],_e=Le.length-1;_e>=0;_e--)if(ue.dist(Le[_e])0)&&(_e.value.kind!=="constant"||_e.value.value.length>0),Ot=bt.value.kind!=="constant"||!!bt.value.value||Object.keys(bt.parameters).length>0,Jt=Le.get("symbol-sort-key");if(this.features=[],!(!Pt&&!Ot)){for(var ir=X.iconDependencies,rr=X.glyphDependencies,Tr=X.availableImages,Nr=new Ua(this.zoom),pn=0,on=z;pn=0;for(var io=0,Bi=Ba.sections;io=0;bt--)_e[bt]={x:X[bt].x,y:X[bt].y,tileUnitDistanceFromAnchor:Le},bt>0&&(Le+=X[bt-1].dist(X[bt]));for(var Pt=0;Pt0},ao.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ao.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ao.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ao.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ao.prototype.addIndicesForPlacedSymbol=function(z,X){for(var ue=z.placedSymbolArray.get(X),ge=ue.vertexStartIndex+ue.numGlyphs*4,Le=ue.vertexStartIndex;Le1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(z),this.sortedAngle=z,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ue=0,ge=this.symbolInstanceIndexes;ue=0&&Pt.indexOf(tt)===bt&&X.addIndicesForPlacedSymbol(X.text,tt)}),_e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,_e.verticalPlacedTextSymbolIndex),_e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,_e.placedIconSymbolIndex),_e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,_e.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},je("SymbolBucket",ao,{omit:["layers","collisionBoxArray","features","compareText"]}),ao.MAX_GLYPHS=65535,ao.addDynamicAttributes=TS;function BN(_,z){return z.replace(/{([^{}]+)}/g,function(X,ue){return ue in _?String(_[ue]):""})}var NN=new Wi({"symbol-placement":new ba(Ar.layout_symbol["symbol-placement"]),"symbol-spacing":new ba(Ar.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ba(Ar.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ga(Ar.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ba(Ar.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ba(Ar.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ba(Ar.layout_symbol["icon-ignore-placement"]),"icon-optional":new ba(Ar.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ba(Ar.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ga(Ar.layout_symbol["icon-size"]),"icon-text-fit":new ba(Ar.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ba(Ar.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ga(Ar.layout_symbol["icon-image"]),"icon-rotate":new Ga(Ar.layout_symbol["icon-rotate"]),"icon-padding":new ba(Ar.layout_symbol["icon-padding"]),"icon-keep-upright":new ba(Ar.layout_symbol["icon-keep-upright"]),"icon-offset":new Ga(Ar.layout_symbol["icon-offset"]),"icon-anchor":new Ga(Ar.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ba(Ar.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ba(Ar.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ba(Ar.layout_symbol["text-rotation-alignment"]),"text-field":new Ga(Ar.layout_symbol["text-field"]),"text-font":new Ga(Ar.layout_symbol["text-font"]),"text-size":new Ga(Ar.layout_symbol["text-size"]),"text-max-width":new Ga(Ar.layout_symbol["text-max-width"]),"text-line-height":new ba(Ar.layout_symbol["text-line-height"]),"text-letter-spacing":new Ga(Ar.layout_symbol["text-letter-spacing"]),"text-justify":new Ga(Ar.layout_symbol["text-justify"]),"text-radial-offset":new Ga(Ar.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ba(Ar.layout_symbol["text-variable-anchor"]),"text-anchor":new Ga(Ar.layout_symbol["text-anchor"]),"text-max-angle":new ba(Ar.layout_symbol["text-max-angle"]),"text-writing-mode":new ba(Ar.layout_symbol["text-writing-mode"]),"text-rotate":new Ga(Ar.layout_symbol["text-rotate"]),"text-padding":new ba(Ar.layout_symbol["text-padding"]),"text-keep-upright":new ba(Ar.layout_symbol["text-keep-upright"]),"text-transform":new Ga(Ar.layout_symbol["text-transform"]),"text-offset":new Ga(Ar.layout_symbol["text-offset"]),"text-allow-overlap":new ba(Ar.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ba(Ar.layout_symbol["text-ignore-placement"]),"text-optional":new ba(Ar.layout_symbol["text-optional"])}),UN=new Wi({"icon-opacity":new Ga(Ar.paint_symbol["icon-opacity"]),"icon-color":new Ga(Ar.paint_symbol["icon-color"]),"icon-halo-color":new Ga(Ar.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ga(Ar.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ga(Ar.paint_symbol["icon-halo-blur"]),"icon-translate":new ba(Ar.paint_symbol["icon-translate"]),"icon-translate-anchor":new ba(Ar.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ga(Ar.paint_symbol["text-opacity"]),"text-color":new Ga(Ar.paint_symbol["text-color"],{runtimeType:zn,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new Ga(Ar.paint_symbol["text-halo-color"]),"text-halo-width":new Ga(Ar.paint_symbol["text-halo-width"]),"text-halo-blur":new Ga(Ar.paint_symbol["text-halo-blur"]),"text-translate":new ba(Ar.paint_symbol["text-translate"]),"text-translate-anchor":new ba(Ar.paint_symbol["text-translate-anchor"])}),SS={paint:UN,layout:NN},Xg=function(z){this.type=z.property.overrides?z.property.overrides.runtimeType:$r,this.defaultValue=z};Xg.prototype.evaluate=function(z){if(z.formattedSection){var X=this.defaultValue.property.overrides;if(X&&X.hasOverride(z.formattedSection))return X.getOverride(z.formattedSection)}return z.feature&&z.featureState?this.defaultValue.evaluate(z.feature,z.featureState):this.defaultValue.property.specification.default},Xg.prototype.eachChild=function(z){if(!this.defaultValue.isConstant()){var X=this.defaultValue.value;z(X._styleExpression.expression)}},Xg.prototype.outputDefined=function(){return!1},Xg.prototype.serialize=function(){return null},je("FormatSectionOverride",Xg,{omit:["defaultValue"]});var HN=function(_){function z(X){_.call(this,X,SS)}return _&&(z.__proto__=_),z.prototype=Object.create(_&&_.prototype),z.prototype.constructor=z,z.prototype.recalculate=function(ue,ge){if(_.prototype.recalculate.call(this,ue,ge),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Le=this.layout.get("text-writing-mode");if(Le){for(var _e=[],tt=0,bt=Le;tt",targetMapId:ge,sourceMapId:_e.mapId})}}},Zg.prototype.receive=function(z){var X=z.data,ue=X.id;if(ue&&!(X.targetMapId&&this.mapId!==X.targetMapId))if(X.type===""){delete this.tasks[ue];var ge=this.cancelCallbacks[ue];delete this.cancelCallbacks[ue],ge&&ge()}else q()||X.mustQueue?(this.tasks[ue]=X,this.taskQueue.push(ue),this.invoker.trigger()):this.processTask(ue,X)},Zg.prototype.process=function(){if(this.taskQueue.length){var z=this.taskQueue.shift(),X=this.tasks[z];delete this.tasks[z],this.taskQueue.length&&this.invoker.trigger(),X&&this.processTask(z,X)}},Zg.prototype.processTask=function(z,X){var ue=this;if(X.type===""){var ge=this.callbacks[z];delete this.callbacks[z],ge&&(X.error?ge(Et(X.error)):ge(null,Et(X.data)))}else{var Le=!1,_e=fe(this.globalScope)?void 0:[],tt=X.hasCallback?function(ir,rr){Le=!0,delete ue.cancelCallbacks[z],ue.target.postMessage({id:z,type:"",sourceMapId:ue.mapId,error:ir?Dt(ir):null,data:Dt(rr,_e)},_e)}:function(ir){Le=!0},bt=null,Pt=Et(X.data);if(this.parent[X.type])bt=this.parent[X.type](X.sourceMapId,Pt,tt);else if(this.parent.getWorkerSource){var Ot=X.type.split("."),Jt=this.parent.getWorkerSource(X.sourceMapId,Ot[0],Pt.source);bt=Jt[Ot[1]](Pt,tt)}else tt(new Error("Could not find function "+X.type));!Le&&bt&&bt.cancel&&(this.cancelCallbacks[z]=bt.cancel)}},Zg.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function QN(_,z,X){z=Math.pow(2,X)-z-1;var ue=CE(_*256,z*256,X),ge=CE((_+1)*256,(z+1)*256,X);return ue[0]+","+ue[1]+","+ge[0]+","+ge[1]}function CE(_,z,X){var ue=2*Math.PI*6378137/256/Math.pow(2,X),ge=_*ue-2*Math.PI*6378137/2,Le=z*ue-2*Math.PI*6378137/2;return[ge,Le]}var vs=function(z,X){z&&(X?this.setSouthWest(z).setNorthEast(X):z.length===4?this.setSouthWest([z[0],z[1]]).setNorthEast([z[2],z[3]]):this.setSouthWest(z[0]).setNorthEast(z[1]))};vs.prototype.setNorthEast=function(z){return this._ne=z instanceof Co?new Co(z.lng,z.lat):Co.convert(z),this},vs.prototype.setSouthWest=function(z){return this._sw=z instanceof Co?new Co(z.lng,z.lat):Co.convert(z),this},vs.prototype.extend=function(z){var X=this._sw,ue=this._ne,ge,Le;if(z instanceof Co)ge=z,Le=z;else if(z instanceof vs){if(ge=z._sw,Le=z._ne,!ge||!Le)return this}else{if(Array.isArray(z))if(z.length===4||z.every(Array.isArray)){var _e=z;return this.extend(vs.convert(_e))}else{var tt=z;return this.extend(Co.convert(tt))}return this}return!X&&!ue?(this._sw=new Co(ge.lng,ge.lat),this._ne=new Co(Le.lng,Le.lat)):(X.lng=Math.min(ge.lng,X.lng),X.lat=Math.min(ge.lat,X.lat),ue.lng=Math.max(Le.lng,ue.lng),ue.lat=Math.max(Le.lat,ue.lat)),this},vs.prototype.getCenter=function(){return new Co((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},vs.prototype.getSouthWest=function(){return this._sw},vs.prototype.getNorthEast=function(){return this._ne},vs.prototype.getNorthWest=function(){return new Co(this.getWest(),this.getNorth())},vs.prototype.getSouthEast=function(){return new Co(this.getEast(),this.getSouth())},vs.prototype.getWest=function(){return this._sw.lng},vs.prototype.getSouth=function(){return this._sw.lat},vs.prototype.getEast=function(){return this._ne.lng},vs.prototype.getNorth=function(){return this._ne.lat},vs.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},vs.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},vs.prototype.isEmpty=function(){return!(this._sw&&this._ne)},vs.prototype.contains=function(z){var X=Co.convert(z),ue=X.lng,ge=X.lat,Le=this._sw.lat<=ge&&ge<=this._ne.lat,_e=this._sw.lng<=ue&&ue<=this._ne.lng;return this._sw.lng>this._ne.lng&&(_e=this._sw.lng>=ue&&ue>=this._ne.lng),Le&&_e},vs.convert=function(z){return!z||z instanceof vs?z:new vs(z)};var ME=63710088e-1,Co=function(z,X){if(isNaN(z)||isNaN(X))throw new Error("Invalid LngLat object: ("+z+", "+X+")");if(this.lng=+z,this.lat=+X,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Co.prototype.wrap=function(){return new Co(E(this.lng,-180,180),this.lat)},Co.prototype.toArray=function(){return[this.lng,this.lat]},Co.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Co.prototype.distanceTo=function(z){var X=Math.PI/180,ue=this.lat*X,ge=z.lat*X,Le=Math.sin(ue)*Math.sin(ge)+Math.cos(ue)*Math.cos(ge)*Math.cos((z.lng-this.lng)*X),_e=ME*Math.acos(Math.min(Le,1));return _e},Co.prototype.toBounds=function(z){z===void 0&&(z=0);var X=40075017,ue=360*z/X,ge=ue/Math.cos(Math.PI/180*this.lat);return new vs(new Co(this.lng-ge,this.lat-ue),new Co(this.lng+ge,this.lat+ue))},Co.convert=function(z){if(z instanceof Co)return z;if(Array.isArray(z)&&(z.length===2||z.length===3))return new Co(Number(z[0]),Number(z[1]));if(!Array.isArray(z)&&typeof z=="object"&&z!==null)return new Co(Number("lng"in z?z.lng:z.lon),Number(z.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var AE=2*Math.PI*ME;function EE(_){return AE*Math.cos(_*Math.PI/180)}function PE(_){return(180+_)/360}function LE(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function IE(_,z){return _/EE(z)}function qN(_){return _*360-180}function MS(_){var z=180-_*360;return 360/Math.PI*Math.atan(Math.exp(z*Math.PI/180))-90}function eU(_,z){return _*EE(MS(z))}function tU(_){return 1/Math.cos(_*Math.PI/180)}var E0=function(z,X,ue){ue===void 0&&(ue=0),this.x=+z,this.y=+X,this.z=+ue};E0.fromLngLat=function(z,X){X===void 0&&(X=0);var ue=Co.convert(z);return new E0(PE(ue.lng),LE(ue.lat),IE(X,ue.lat))},E0.prototype.toLngLat=function(){return new Co(qN(this.x),MS(this.y))},E0.prototype.toAltitude=function(){return eU(this.z,this.y)},E0.prototype.meterInMercatorCoordinateUnits=function(){return 1/AE*tU(MS(this.y))};var P0=function(z,X,ue){this.z=z,this.x=X,this.y=ue,this.key=p1(0,z,z,X,ue)};P0.prototype.equals=function(z){return this.z===z.z&&this.x===z.x&&this.y===z.y},P0.prototype.url=function(z,X){var ue=QN(this.x,this.y,this.z),ge=rU(this.z,this.x,this.y);return z[(this.x+this.y)%z.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(X==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",ge).replace("{bbox-epsg-3857}",ue)},P0.prototype.getTilePoint=function(z){var X=Math.pow(2,this.z);return new a((z.x*X-this.x)*Ha,(z.y*X-this.y)*Ha)},P0.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var RE=function(z,X){this.wrap=z,this.canonical=X,this.key=p1(z,X.z,X.z,X.x,X.y)},ps=function(z,X,ue,ge,Le){this.overscaledZ=z,this.wrap=X,this.canonical=new P0(ue,+ge,+Le),this.key=p1(X,z,ue,ge,Le)};ps.prototype.equals=function(z){return this.overscaledZ===z.overscaledZ&&this.wrap===z.wrap&&this.canonical.equals(z.canonical)},ps.prototype.scaledTo=function(z){var X=this.canonical.z-z;return z>this.canonical.z?new ps(z,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ps(z,this.wrap,z,this.canonical.x>>X,this.canonical.y>>X)},ps.prototype.calculateScaledKey=function(z,X){var ue=this.canonical.z-z;return z>this.canonical.z?p1(this.wrap*+X,z,this.canonical.z,this.canonical.x,this.canonical.y):p1(this.wrap*+X,z,z,this.canonical.x>>ue,this.canonical.y>>ue)},ps.prototype.isChildOf=function(z){if(z.wrap!==this.wrap)return!1;var X=this.canonical.z-z.canonical.z;return z.overscaledZ===0||z.overscaledZ>X&&z.canonical.y===this.canonical.y>>X},ps.prototype.children=function(z){if(this.overscaledZ>=z)return[new ps(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var X=this.canonical.z+1,ue=this.canonical.x*2,ge=this.canonical.y*2;return[new ps(X,this.wrap,X,ue,ge),new ps(X,this.wrap,X,ue+1,ge),new ps(X,this.wrap,X,ue,ge+1),new ps(X,this.wrap,X,ue+1,ge+1)]},ps.prototype.isLessThan=function(z){return this.wrapz.wrap?!1:this.overscaledZz.overscaledZ?!1:this.canonical.xz.canonical.x?!1:this.canonical.y0;Le--)ge=1<=this.dim+1||X<-1||X>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(X+1)*this.stride+(z+1)},Uh.prototype._unpackMapbox=function(z,X,ue){return(z*256*256+X*256+ue)/10-1e4},Uh.prototype._unpackTerrarium=function(z,X,ue){return z*256+X+ue/256-32768},Uh.prototype.getPixels=function(){return new Yl({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Uh.prototype.backfillBorder=function(z,X,ue){if(this.dim!==z.dim)throw new Error("dem dimension mismatch");var ge=X*this.dim,Le=X*this.dim+this.dim,_e=ue*this.dim,tt=ue*this.dim+this.dim;switch(X){case-1:ge=Le-1;break;case 1:Le=ge+1;break}switch(ue){case-1:_e=tt-1;break;case 1:tt=_e+1;break}for(var bt=-X*this.dim,Pt=-ue*this.dim,Ot=_e;Ot=0&&Jt[3]>=0&&bt.insert(tt,Jt[0],Jt[1],Jt[2],Jt[3])}},Hh.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Bg.VectorTile(new rw(this.rawTileData)).layers,this.sourceLayerCoder=new dw(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Hh.prototype.query=function(z,X,ue,ge){var Le=this;this.loadVTLayers();for(var _e=z.params||{},tt=Ha/z.tileSize/z.scale,bt=Ou(_e.filter),Pt=z.queryGeometry,Ot=z.queryPadding*tt,Jt=DE(Pt),ir=this.grid.query(Jt.minX-Ot,Jt.minY-Ot,Jt.maxX+Ot,Jt.maxY+Ot),rr=DE(z.cameraQueryGeometry),Tr=this.grid3D.query(rr.minX-Ot,rr.minY-Ot,rr.maxX+Ot,rr.maxY+Ot,function(ta,ha,ca,Ba){return tf(z.cameraQueryGeometry,ta-Ot,ha-Ot,ca+Ot,Ba+Ot)}),Nr=0,pn=Tr;Nrge)Le=!1;else if(!X)Le=!0;else if(this.expirationTime=wr.maxzoom)&&wr.visibility!=="none"){o(mr,this.zoom,Rt);var Sr=hr[wr.id]=wr.createBucket({index:er.bucketLayerIDs.length,layers:mr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ut,sourceID:this.source});Sr.populate(Bt,vr,this.tileID.canonical),er.bucketLayerIDs.push(mr.map(function(gr){return gr.id}))}}}}var yr,Xr,kr,Dr,bn=i.mapObject(vr.glyphDependencies,function(gr){return Object.keys(gr).map(Number)});Object.keys(bn).length?zt.send("getGlyphs",{uid:this.uid,stacks:bn},function(gr,Br){yr||(yr=gr,Xr=Br,On.call(Wt))}):Xr={};var un=Object.keys(vr.iconDependencies);un.length?zt.send("getImages",{icons:un,source:this.source,tileID:this.tileID,type:"icons"},function(gr,Br){yr||(yr=gr,kr=Br,On.call(Wt))}):kr={};var Fn=Object.keys(vr.patternDependencies);Fn.length?zt.send("getImages",{icons:Fn,source:this.source,tileID:this.tileID,type:"patterns"},function(gr,Br){yr||(yr=gr,Dr=Br,On.call(Wt))}):Dr={},On.call(this);function On(){if(yr)return Ft(yr);if(Xr&&kr&&Dr){var gr=new n(Xr),Br=new i.ImageAtlas(kr,Dr);for(var Zr in hr){var Wr=hr[Zr];Wr instanceof i.SymbolBucket?(o(Wr.layers,this.zoom,Rt),i.performSymbolLayout(Wr,Xr,gr.positions,kr,Br.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Wr.hasPattern&&(Wr instanceof i.LineBucket||Wr instanceof i.FillBucket||Wr instanceof i.FillExtrusionBucket)&&(o(Wr.layers,this.zoom,Rt),Wr.addFeatures(vr,this.tileID.canonical,Br.patternPositions))}this.status="done",Ft(null,{buckets:i.values(hr).filter(function(fn){return!fn.isEmpty()}),featureIndex:er,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:gr.image,imageAtlas:Br,glyphMap:this.returnDependencies?Xr:null,iconMap:this.returnDependencies?kr:null,glyphPositions:this.returnDependencies?gr.positions:null})}}};function o(Ct,ht,Mt){for(var Rt=new i.EvaluationParameters(ht),zt=0,Ft=Ct;zt=0!=!!ht&&Ct.reverse()}var y=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,A=function(ht){this._feature=ht,this.extent=i.EXTENT,this.type=ht.type,this.properties=ht.tags,"id"in ht&&!isNaN(ht.id)&&(this.id=parseInt(ht.id,10))};A.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ht=[],Mt=0,Rt=this._feature.geometry;Mt"u"&&(Rt.push(jt),er=Rt.length-1,Ft[jt]=er),ht.writeVarint(er);var hr=Mt.properties[jt],vr=typeof hr;vr!=="string"&&vr!=="boolean"&&vr!=="number"&&(hr=JSON.stringify(hr));var pr=vr+":"+hr,Ke=Wt[pr];typeof Ke>"u"&&(zt.push(hr),Ke=zt.length-1,Wt[pr]=Ke),ht.writeVarint(Ke)}}function $(Ct,ht){return(ht<<3)+(Ct&7)}function Z(Ct){return Ct<<1^Ct>>31}function q(Ct,ht){for(var Mt=Ct.loadGeometry(),Rt=Ct.type,zt=0,Ft=0,Wt=Mt.length,jt=0;jt>1;fe(Ct,ht,Wt,Rt,zt,Ft%2),ie(Ct,ht,Mt,Rt,Wt-1,Ft+1),ie(Ct,ht,Mt,Wt+1,zt,Ft+1)}}function fe(Ct,ht,Mt,Rt,zt,Ft){for(;zt>Rt;){if(zt-Rt>600){var Wt=zt-Rt+1,jt=Mt-Rt+1,er=Math.log(Wt),hr=.5*Math.exp(2*er/3),vr=.5*Math.sqrt(er*hr*(Wt-hr)/Wt)*(jt-Wt/2<0?-1:1),pr=Math.max(Rt,Math.floor(Mt-jt*hr/Wt+vr)),Ke=Math.min(zt,Math.floor(Mt+(Wt-jt)*hr/Wt+vr));fe(Ct,ht,Mt,pr,Ke,Ft)}var Xe=ht[2*Mt+Ft],Ut=Rt,Bt=zt;for(Q(Ct,ht,Rt,Mt),ht[2*zt+Ft]>Xe&&Q(Ct,ht,Rt,zt);UtXe;)Bt--}ht[2*Rt+Ft]===Xe?Q(Ct,ht,Rt,Bt):(Bt++,Q(Ct,ht,Bt,zt)),Bt<=Mt&&(Rt=Bt+1),Mt<=Bt&&(zt=Bt-1)}}function Q(Ct,ht,Mt,Rt){J(Ct,Mt,Rt),J(ht,2*Mt,2*Rt),J(ht,2*Mt+1,2*Rt+1)}function J(Ct,ht,Mt){var Rt=Ct[ht];Ct[ht]=Ct[Mt],Ct[Mt]=Rt}function oe(Ct,ht,Mt,Rt,zt,Ft,Wt){for(var jt=[0,Ct.length-1,0],er=[],hr,vr;jt.length;){var pr=jt.pop(),Ke=jt.pop(),Xe=jt.pop();if(Ke-Xe<=Wt){for(var Ut=Xe;Ut<=Ke;Ut++)hr=ht[2*Ut],vr=ht[2*Ut+1],hr>=Mt&&hr<=zt&&vr>=Rt&&vr<=Ft&&er.push(Ct[Ut]);continue}var Bt=Math.floor((Xe+Ke)/2);hr=ht[2*Bt],vr=ht[2*Bt+1],hr>=Mt&&hr<=zt&&vr>=Rt&&vr<=Ft&&er.push(Ct[Bt]);var Qt=(pr+1)%2;(pr===0?Mt<=hr:Rt<=vr)&&(jt.push(Xe),jt.push(Bt-1),jt.push(Qt)),(pr===0?zt>=hr:Ft>=vr)&&(jt.push(Bt+1),jt.push(Ke),jt.push(Qt))}return er}function K(Ct,ht,Mt,Rt,zt,Ft){for(var Wt=[0,Ct.length-1,0],jt=[],er=zt*zt;Wt.length;){var hr=Wt.pop(),vr=Wt.pop(),pr=Wt.pop();if(vr-pr<=Ft){for(var Ke=pr;Ke<=vr;Ke++)ne(ht[2*Ke],ht[2*Ke+1],Mt,Rt)<=er&&jt.push(Ct[Ke]);continue}var Xe=Math.floor((pr+vr)/2),Ut=ht[2*Xe],Bt=ht[2*Xe+1];ne(Ut,Bt,Mt,Rt)<=er&&jt.push(Ct[Xe]);var Qt=(hr+1)%2;(hr===0?Mt-zt<=Ut:Rt-zt<=Bt)&&(Wt.push(pr),Wt.push(Xe-1),Wt.push(Qt)),(hr===0?Mt+zt>=Ut:Rt+zt>=Bt)&&(Wt.push(Xe+1),Wt.push(vr),Wt.push(Qt))}return jt}function ne(Ct,ht,Mt,Rt){var zt=Ct-Mt,Ft=ht-Rt;return zt*zt+Ft*Ft}var ce=function(Ct){return Ct[0]},re=function(Ct){return Ct[1]},ee=function(ht,Mt,Rt,zt,Ft){Mt===void 0&&(Mt=ce),Rt===void 0&&(Rt=re),zt===void 0&&(zt=64),Ft===void 0&&(Ft=Float64Array),this.nodeSize=zt,this.points=ht;for(var Wt=ht.length<65536?Uint16Array:Uint32Array,jt=this.ids=new Wt(ht.length),er=this.coords=new Ft(ht.length*2),hr=0;hr=zt;vr--){var pr=+Date.now();er=this._cluster(er,vr),this.trees[vr]=new ee(er,Ue,Ne,Wt,Float32Array),Rt&&console.log("z%d: %d clusters in %dms",vr,er.length,+Date.now()-pr)}return Rt&&console.timeEnd("total time"),this},le.prototype.getClusters=function(ht,Mt){var Rt=((ht[0]+180)%360+360)%360-180,zt=Math.max(-90,Math.min(90,ht[1])),Ft=ht[2]===180?180:((ht[2]+180)%360+360)%360-180,Wt=Math.max(-90,Math.min(90,ht[3]));if(ht[2]-ht[0]>=360)Rt=-180,Ft=180;else if(Rt>Ft){var jt=this.getClusters([Rt,zt,180,Wt],Mt),er=this.getClusters([-180,zt,Ft,Wt],Mt);return jt.concat(er)}for(var hr=this.trees[this._limitZoom(Mt)],vr=hr.range(ke(Rt),Te(Wt),ke(Ft),Te(zt)),pr=[],Ke=0,Xe=vr;KeMt&&(Bt+=ar.numPoints||1)}if(Bt>=er){for(var Ht=pr.x*Ut,mr=pr.y*Ut,wr=jt&&Ut>1?this._map(pr,!0):null,Sr=(vr<<5)+(Mt+1)+this.points.length,yr=0,Xr=Xe;yr1)for(var un=0,Fn=Xe;un>5},le.prototype._getOriginZoom=function(ht){return(ht-this.points.length)%32},le.prototype._map=function(ht,Mt){if(ht.numPoints)return Mt?Ie({},ht.properties):ht.properties;var Rt=this.points[ht.index].properties,zt=this.options.map(Rt);return Mt&&zt===Rt?Ie({},zt):zt};function he(Ct,ht,Mt,Rt,zt){return{x:Ct,y:ht,zoom:1/0,id:Mt,parentId:-1,numPoints:Rt,properties:zt}}function xe(Ct,ht){var Mt=Ct.geometry.coordinates,Rt=Mt[0],zt=Mt[1];return{x:ke(Rt),y:Te(zt),zoom:1/0,index:ht,parentId:-1}}function Ee(Ct){return{type:"Feature",id:Ct.id,properties:Se(Ct),geometry:{type:"Point",coordinates:[Ae(Ct.x),be(Ct.y)]}}}function Se(Ct){var ht=Ct.numPoints,Mt=ht>=1e4?Math.round(ht/1e3)+"k":ht>=1e3?Math.round(ht/100)/10+"k":ht;return Ie(Ie({},Ct.properties),{cluster:!0,cluster_id:Ct.id,point_count:ht,point_count_abbreviated:Mt})}function ke(Ct){return Ct/360+.5}function Te(Ct){var ht=Math.sin(Ct*Math.PI/180),Mt=.5-.25*Math.log((1+ht)/(1-ht))/Math.PI;return Mt<0?0:Mt>1?1:Mt}function Ae(Ct){return(Ct-.5)*360}function be(Ct){var ht=(180-Ct*360)*Math.PI/180;return 360*Math.atan(Math.exp(ht))/Math.PI-90}function Ie(Ct,ht){for(var Mt in ht)Ct[Mt]=ht[Mt];return Ct}function Ue(Ct){return Ct.x}function Ne(Ct){return Ct.y}function ze(Ct,ht,Mt,Rt){for(var zt=Rt,Ft=Mt-ht>>1,Wt=Mt-ht,jt,er=Ct[ht],hr=Ct[ht+1],vr=Ct[Mt],pr=Ct[Mt+1],Ke=ht+3;Kezt)jt=Ke,zt=Xe;else if(Xe===zt){var Ut=Math.abs(Ke-Ft);UtRt&&(jt-ht>3&&ze(Ct,ht,jt,Rt),Ct[jt+2]=zt,Mt-jt>3&&ze(Ct,jt,Mt,Rt))}function $e(Ct,ht,Mt,Rt,zt,Ft){var Wt=zt-Mt,jt=Ft-Rt;if(Wt!==0||jt!==0){var er=((Ct-Mt)*Wt+(ht-Rt)*jt)/(Wt*Wt+jt*jt);er>1?(Mt=zt,Rt=Ft):er>0&&(Mt+=Wt*er,Rt+=jt*er)}return Wt=Ct-Mt,jt=ht-Rt,Wt*Wt+jt*jt}function st(Ct,ht,Mt,Rt){var zt={id:typeof Ct>"u"?null:Ct,type:ht,geometry:Mt,tags:Rt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return vt(zt),zt}function vt(Ct){var ht=Ct.geometry,Mt=Ct.type;if(Mt==="Point"||Mt==="MultiPoint"||Mt==="LineString")at(Ct,ht);else if(Mt==="Polygon"||Mt==="MultiLineString")for(var Rt=0;Rt0&&(Rt?Wt+=(zt*hr-er*Ft)/2:Wt+=Math.sqrt(Math.pow(er-zt,2)+Math.pow(hr-Ft,2))),zt=er,Ft=hr}var vr=ht.length-3;ht[2]=1,ze(ht,0,vr,Mt),ht[vr+2]=1,ht.size=Math.abs(Wt),ht.start=0,ht.end=ht.size}function dt(Ct,ht,Mt,Rt){for(var zt=0;zt1?1:Mt}function Be(Ct,ht,Mt,Rt,zt,Ft,Wt,jt){if(Mt/=ht,Rt/=ht,Ft>=Mt&&Wt=Rt)return null;for(var er=[],hr=0;hr=Mt&&Ut=Rt)continue;var Bt=[];if(Ke==="Point"||Ke==="MultiPoint")Ye(pr,Bt,Mt,Rt,zt);else if(Ke==="LineString")Ze(pr,Bt,Mt,Rt,zt,!1,jt.lineMetrics);else if(Ke==="MultiLineString")Fe(pr,Bt,Mt,Rt,zt,!1);else if(Ke==="Polygon")Fe(pr,Bt,Mt,Rt,zt,!0);else if(Ke==="MultiPolygon")for(var Qt=0;Qt=Mt&&Wt<=Rt&&(ht.push(Ct[Ft]),ht.push(Ct[Ft+1]),ht.push(Ct[Ft+2]))}}function Ze(Ct,ht,Mt,Rt,zt,Ft,Wt){for(var jt=We(Ct),er=zt===0?we:Re,hr=Ct.start,vr,pr,Ke=0;KeMt&&(pr=er(jt,Xe,Ut,Qt,or,Mt),Wt&&(jt.start=hr+vr*pr)):fr>Rt?ar=Mt&&(pr=er(jt,Xe,Ut,Qt,or,Mt),Ht=!0),ar>Rt&&fr<=Rt&&(pr=er(jt,Xe,Ut,Qt,or,Rt),Ht=!0),!Ft&&Ht&&(Wt&&(jt.end=hr+vr*pr),ht.push(jt),jt=We(Ct)),Wt&&(hr+=vr)}var mr=Ct.length-3;Xe=Ct[mr],Ut=Ct[mr+1],Bt=Ct[mr+2],fr=zt===0?Xe:Ut,fr>=Mt&&fr<=Rt&&Me(jt,Xe,Ut,Bt),mr=jt.length-3,Ft&&mr>=3&&(jt[mr]!==jt[0]||jt[mr+1]!==jt[1])&&Me(jt,jt[0],jt[1],jt[2]),jt.length&&ht.push(jt)}function We(Ct){var ht=[];return ht.size=Ct.size,ht.start=Ct.start,ht.end=Ct.end,ht}function Fe(Ct,ht,Mt,Rt,zt,Ft){for(var Wt=0;WtWt.maxX&&(Wt.maxX=vr),pr>Wt.maxY&&(Wt.maxY=pr)}return Wt}function It(Ct,ht,Mt,Rt){var zt=ht.geometry,Ft=ht.type,Wt=[];if(Ft==="Point"||Ft==="MultiPoint")for(var jt=0;jt0&&ht.size<(zt?Wt:Rt)){Mt.numPoints+=ht.length/3;return}for(var jt=[],er=0;erWt)&&(Mt.numSimplified++,jt.push(ht[er]),jt.push(ht[er+1])),Mt.numPoints++;zt&&xt(jt,Ft),Ct.push(jt)}function xt(Ct,ht){for(var Mt=0,Rt=0,zt=Ct.length,Ft=zt-2;Rt0===ht)for(Rt=0,zt=Ct.length;Rt24)throw new Error("maxZoom should be in the 0-24 range");if(ht.promoteId&&ht.generateId)throw new Error("promoteId and generateId cannot be used together.");var Rt=nt(Ct,ht);this.tiles={},this.tileCoords=[],Mt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ht.indexMaxZoom,ht.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Rt=Pe(Rt,ht),Rt.length&&this.splitTile(Rt,0,0,0),Mt&&(Rt.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)))}Xt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Xt.prototype.splitTile=function(Ct,ht,Mt,Rt,zt,Ft,Wt){for(var jt=[Ct,ht,Mt,Rt],er=this.options,hr=er.debug;jt.length;){Rt=jt.pop(),Mt=jt.pop(),ht=jt.pop(),Ct=jt.pop();var vr=1<1&&console.time("creation"),Ke=this.tiles[pr]=ut(Ct,ht,Mt,Rt,er),this.tileCoords.push({z:ht,x:Mt,y:Rt}),hr)){hr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ht,Mt,Rt,Ke.numFeatures,Ke.numPoints,Ke.numSimplified),console.timeEnd("creation"));var Xe="z"+ht;this.stats[Xe]=(this.stats[Xe]||0)+1,this.total++}if(Ke.source=Ct,zt){if(ht===er.maxZoom||ht===zt)continue;var Ut=1<1&&console.time("clipping");var Bt=.5*er.buffer/er.extent,Qt=.5-Bt,or=.5+Bt,fr=1+Bt,ar,Ht,mr,wr,Sr,yr;ar=Ht=mr=wr=null,Sr=Be(Ct,vr,Mt-Bt,Mt+or,0,Ke.minX,Ke.maxX,er),yr=Be(Ct,vr,Mt+Qt,Mt+fr,0,Ke.minX,Ke.maxX,er),Ct=null,Sr&&(ar=Be(Sr,vr,Rt-Bt,Rt+or,1,Ke.minY,Ke.maxY,er),Ht=Be(Sr,vr,Rt+Qt,Rt+fr,1,Ke.minY,Ke.maxY,er),Sr=null),yr&&(mr=Be(yr,vr,Rt-Bt,Rt+or,1,Ke.minY,Ke.maxY,er),wr=Be(yr,vr,Rt+Qt,Rt+fr,1,Ke.minY,Ke.maxY,er),yr=null),hr>1&&console.timeEnd("clipping"),jt.push(ar||[],ht+1,Mt*2,Rt*2),jt.push(Ht||[],ht+1,Mt*2,Rt*2+1),jt.push(mr||[],ht+1,Mt*2+1,Rt*2),jt.push(wr||[],ht+1,Mt*2+1,Rt*2+1)}}},Xt.prototype.getTile=function(Ct,ht,Mt){var Rt=this.options,zt=Rt.extent,Ft=Rt.debug;if(Ct<0||Ct>24)return null;var Wt=1<1&&console.log("drilling down to z%d-%d-%d",Ct,ht,Mt);for(var er=Ct,hr=ht,vr=Mt,pr;!pr&&er>0;)er--,hr=Math.floor(hr/2),vr=Math.floor(vr/2),pr=this.tiles[dr(er,hr,vr)];return!pr||!pr.source?null:(Ft>1&&console.log("found parent tile z%d-%d-%d",er,hr,vr),Ft>1&&console.time("drilling down"),this.splitTile(pr.source,er,hr,vr,Ct,ht,Mt),Ft>1&&console.timeEnd("drilling down"),this.tiles[jt]?ot(this.tiles[jt],zt):null)};function dr(Ct,ht,Mt){return((1<=0?0:pe.button},w.remove=function(pe){pe.parentNode&&pe.parentNode.removeChild(pe)};function u(pe,te,me){var se,ye,He,Qe=i.browser.devicePixelRatio>1?"@2x":"",pt=i.getJSON(te.transformRequest(te.normalizeSpriteURL(pe,Qe,".json"),i.ResourceType.SpriteJSON),function(tr,cr){pt=null,He||(He=tr,se=cr,$t())}),kt=i.getImage(te.transformRequest(te.normalizeSpriteURL(pe,Qe,".png"),i.ResourceType.SpriteImage),function(tr,cr){kt=null,He||(He=tr,ye=cr,$t())});function $t(){if(He)me(He);else if(se&&ye){var tr=i.browser.getImageData(ye),cr={};for(var ur in se){var zr=se[ur],Jr=zr.width,Kr=zr.height,Yr=zr.x,en=zr.y,mn=zr.sdf,Vn=zr.pixelRatio,$n=zr.stretchX,ra=zr.stretchY,na=zr.content,Qn=new i.RGBAImage({width:Jr,height:Kr});i.RGBAImage.copy(tr,Qn,{x:Yr,y:en},{x:0,y:0},{width:Jr,height:Kr}),cr[ur]={data:Qn,pixelRatio:Vn,sdf:mn,stretchX:$n,stretchY:ra,content:na}}me(null,cr)}}return{cancel:function(){pt&&(pt.cancel(),pt=null),kt&&(kt.cancel(),kt=null)}}}function b(pe){var te=pe.userImage;if(te&&te.render){var me=te.render();if(me)return pe.data.replace(new Uint8Array(te.data.buffer)),!0}return!1}var p=1,E=function(pe){function te(){pe.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.isLoaded=function(){return this.loaded},te.prototype.setLoaded=function(se){if(this.loaded!==se&&(this.loaded=se,se)){for(var ye=0,He=this.requestors;ye=0?1.2:1))}M.prototype.draw=function(pe){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(pe,this.buffer,this.middle);for(var te=this.ctx.getImageData(0,0,this.size,this.size),me=new Uint8ClampedArray(this.size*this.size),se=0;se65535){tr(new Error("glyphs > 65535 not supported"));return}if(zr.ranges[Kr]){tr(null,{stack:cr,id:ur,glyph:Jr});return}var Yr=zr.requests[Kr];Yr||(Yr=zr.requests[Kr]=[],L.loadGlyphRange(cr,Kr,se.url,se.requestManager,function(en,mn){if(mn){for(var Vn in mn)se._doesCharSupportLocalGlyph(+Vn)||(zr.glyphs[+Vn]=mn[+Vn]);zr.ranges[Kr]=!0}for(var $n=0,ra=Yr;$n1&&($t=te[++kt]);var cr=Math.abs(tr-$t.left),ur=Math.abs(tr-$t.right),zr=Math.min(cr,ur),Jr=void 0,Kr=He/se*(ye+1);if($t.isDash){var Yr=ye-Math.abs(Kr);Jr=Math.sqrt(zr*zr+Yr*Yr)}else Jr=ye-Math.sqrt(zr*zr+Kr*Kr);this.data[pt+tr]=Math.max(0,Math.min(255,Jr+128))}},N.prototype.addRegularDash=function(te){for(var me=te.length-1;me>=0;--me){var se=te[me],ye=te[me+1];se.zeroLength?te.splice(me,1):ye&&ye.isDash===se.isDash&&(ye.left=se.left,te.splice(me,1))}var He=te[0],Qe=te[te.length-1];He.isDash===Qe.isDash&&(He.left=Qe.left-this.width,Qe.right=He.right+this.width);for(var pt=this.width*this.nextRow,kt=0,$t=te[kt],tr=0;tr1&&($t=te[++kt]);var cr=Math.abs(tr-$t.left),ur=Math.abs(tr-$t.right),zr=Math.min(cr,ur),Jr=$t.isDash?zr:-zr;this.data[pt+tr]=Math.max(0,Math.min(255,Jr+128))}},N.prototype.addDash=function(te,me){var se=me?7:0,ye=2*se+1;if(this.nextRow+ye>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var He=0,Qe=0;Qe=se.minX&&te.x=se.minY&&te.y0&&(tr[new i.OverscaledTileID(se.overscaledZ,pt,ye.z,Qe,ye.y-1).key]={backfilled:!1},tr[new i.OverscaledTileID(se.overscaledZ,se.wrap,ye.z,ye.x,ye.y-1).key]={backfilled:!1},tr[new i.OverscaledTileID(se.overscaledZ,$t,ye.z,kt,ye.y-1).key]={backfilled:!1}),ye.y+10&&(He.resourceTiming=se._resourceTiming,se._resourceTiming=[]),se.fire(new i.Event("data",He))})},te.prototype.onAdd=function(se){this.map=se,this.load()},te.prototype.setData=function(se){var ye=this;return this._data=se,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(He){if(He){ye.fire(new i.ErrorEvent(He));return}var Qe={dataType:"source",sourceDataType:"content"};ye._collectResourceTiming&&ye._resourceTiming&&ye._resourceTiming.length>0&&(Qe.resourceTiming=ye._resourceTiming,ye._resourceTiming=[]),ye.fire(new i.Event("data",Qe))}),this},te.prototype.getClusterExpansionZoom=function(se,ye){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:se,source:this.id},ye),this},te.prototype.getClusterChildren=function(se,ye){return this.actor.send("geojson.getClusterChildren",{clusterId:se,source:this.id},ye),this},te.prototype.getClusterLeaves=function(se,ye,He,Qe){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:se,limit:ye,offset:He},Qe),this},te.prototype._updateWorkerData=function(se){var ye=this;this._loaded=!1;var He=i.extend({},this.workerOptions),Qe=this._data;typeof Qe=="string"?(He.request=this.map._requestManager.transformRequest(i.browser.resolveURL(Qe),i.ResourceType.Source),He.request.collectResourceTiming=this._collectResourceTiming):He.data=JSON.stringify(Qe),this.actor.send(this.type+".loadData",He,function(pt,kt){ye._removed||kt&&kt.abandoned||(ye._loaded=!0,kt&&kt.resourceTiming&&kt.resourceTiming[ye.id]&&(ye._resourceTiming=kt.resourceTiming[ye.id].slice(0)),ye.actor.send(ye.type+".coalesce",{source:He.source},null),se(pt))})},te.prototype.loaded=function(){return this._loaded},te.prototype.loadTile=function(se,ye){var He=this,Qe=se.actor?"reloadTile":"loadTile";se.actor=this.actor;var pt={type:this.type,uid:se.uid,tileID:se.tileID,zoom:se.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};se.request=this.actor.send(Qe,pt,function(kt,$t){return delete se.request,se.unloadVectorData(),se.aborted?ye(null):kt?ye(kt):(se.loadVectorData($t,He.map.painter,Qe==="reloadTile"),ye(null))})},te.prototype.abortTile=function(se){se.request&&(se.request.cancel(),delete se.request),se.aborted=!0},te.prototype.unloadTile=function(se){se.unloadVectorData(),this.actor.send("removeTile",{uid:se.uid,type:this.type,source:this.id})},te.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},te.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},te.prototype.hasTransition=function(){return!1},te}(i.Evented),Z=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(pe){function te(me,se,ye,He){pe.call(this),this.id=me,this.dispatcher=ye,this.coordinates=se.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(He),this.options=se}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.load=function(se,ye){var He=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(Qe,pt){He._loaded=!0,Qe?He.fire(new i.ErrorEvent(Qe)):pt&&(He.image=pt,se&&(He.coordinates=se),ye&&ye(),He._finishLoading())})},te.prototype.loaded=function(){return this._loaded},te.prototype.updateImage=function(se){var ye=this;return!this.image||!se.url?this:(this.options.url=se.url,this.load(se.coordinates,function(){ye.texture=null}),this)},te.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},te.prototype.onAdd=function(se){this.map=se,this.load()},te.prototype.setCoordinates=function(se){var ye=this;this.coordinates=se;var He=se.map(i.MercatorCoordinate.fromLngLat);this.tileID=ae(He),this.minzoom=this.maxzoom=this.tileID.z;var Qe=He.map(function(pt){return ye.tileID.getTilePoint(pt)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(Qe[0].x,Qe[0].y,0,0),this._boundsArray.emplaceBack(Qe[1].x,Qe[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(Qe[3].x,Qe[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(Qe[2].x,Qe[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},te.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var se=this.map.painter.context,ye=se.gl;this.boundsBuffer||(this.boundsBuffer=se.createVertexBuffer(this._boundsArray,Z.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(se,this.image,ye.RGBA),this.texture.bind(ye.LINEAR,ye.CLAMP_TO_EDGE));for(var He in this.tiles){var Qe=this.tiles[He];Qe.state!=="loaded"&&(Qe.state="loaded",Qe.texture=this.texture)}}},te.prototype.loadTile=function(se,ye){this.tileID&&this.tileID.equals(se.tileID.canonical)?(this.tiles[String(se.tileID.wrap)]=se,se.buckets={},ye(null)):(se.state="errored",ye(null))},te.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},te.prototype.hasTransition=function(){return!1},te}(i.Evented);function ae(pe){for(var te=1/0,me=1/0,se=-1/0,ye=-1/0,He=0,Qe=pe;Heye.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ye.start(0)+" and "+ye.end(0)+"-second mark."))):this.video.currentTime=se}},te.prototype.getVideo=function(){return this.video},te.prototype.onAdd=function(se){this.map||(this.map=se,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},te.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var se=this.map.painter.context,ye=se.gl;this.boundsBuffer||(this.boundsBuffer=se.createVertexBuffer(this._boundsArray,Z.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ye.LINEAR,ye.CLAMP_TO_EDGE),ye.texSubImage2D(ye.TEXTURE_2D,0,0,0,ye.RGBA,ye.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(se,this.video,ye.RGBA),this.texture.bind(ye.LINEAR,ye.CLAMP_TO_EDGE));for(var He in this.tiles){var Qe=this.tiles[He];Qe.state!=="loaded"&&(Qe.state="loaded",Qe.texture=this.texture)}}},te.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},te.prototype.hasTransition=function(){return this.video&&!this.video.paused},te}(q),fe=function(pe){function te(me,se,ye,He){pe.call(this,me,se,ye,He),se.coordinates?(!Array.isArray(se.coordinates)||se.coordinates.length!==4||se.coordinates.some(function(Qe){return!Array.isArray(Qe)||Qe.length!==2||Qe.some(function(pt){return typeof pt!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,null,'missing required property "coordinates"'))),se.animate&&typeof se.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,null,'optional "animate" property must be a boolean value'))),se.canvas?typeof se.canvas!="string"&&!(se.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+me,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 i.ErrorEvent(new i.ValidationError("sources."+me,null,'missing required property "canvas"'))),this.options=se,this.animate=se.animate!==void 0?se.animate:!0}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},te.prototype.getCanvas=function(){return this.canvas},te.prototype.onAdd=function(se){this.map=se,this.load(),this.canvas&&this.animate&&this.play()},te.prototype.onRemove=function(){this.pause()},te.prototype.prepare=function(){var se=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,se=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,se=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ye=this.map.painter.context,He=ye.gl;this.boundsBuffer||(this.boundsBuffer=ye.createVertexBuffer(this._boundsArray,Z.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(se||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(ye,this.canvas,He.RGBA,{premultiply:!0});for(var Qe in this.tiles){var pt=this.tiles[Qe];pt.state!=="loaded"&&(pt.state="loaded",pt.texture=this.texture)}}},te.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},te.prototype.hasTransition=function(){return this._playing},te.prototype._hasInvalidDimensions=function(){for(var se=0,ye=[this.canvas.width,this.canvas.height];sethis.max){var pt=this._getAndRemoveByKey(this.order[0]);pt&&this.onRemove(pt)}return this},xe.prototype.has=function(te){return te.wrapped().key in this.data},xe.prototype.getAndRemove=function(te){return this.has(te)?this._getAndRemoveByKey(te.wrapped().key):null},xe.prototype._getAndRemoveByKey=function(te){var me=this.data[te].shift();return me.timeout&&clearTimeout(me.timeout),this.data[te].length===0&&delete this.data[te],this.order.splice(this.order.indexOf(te),1),me.value},xe.prototype.getByKey=function(te){var me=this.data[te];return me?me[0].value:null},xe.prototype.get=function(te){if(!this.has(te))return null;var me=this.data[te.wrapped().key][0];return me.value},xe.prototype.remove=function(te,me){if(!this.has(te))return this;var se=te.wrapped().key,ye=me===void 0?0:this.data[se].indexOf(me),He=this.data[se][ye];return this.data[se].splice(ye,1),He.timeout&&clearTimeout(He.timeout),this.data[se].length===0&&delete this.data[se],this.onRemove(He.value),this.order.splice(this.order.indexOf(se),1),this},xe.prototype.setMaxSize=function(te){for(this.max=te;this.order.length>this.max;){var me=this._getAndRemoveByKey(this.order[0]);me&&this.onRemove(me)}return this},xe.prototype.filter=function(te){var me=[];for(var se in this.data)for(var ye=0,He=this.data[se];ye1||(Math.abs(cr)>1&&(Math.abs(cr+zr)===1?cr+=zr:Math.abs(cr-zr)===1&&(cr-=zr)),!(!tr.dem||!$t.dem)&&($t.dem.backfillBorder(tr.dem,cr,ur),$t.neighboringTiles&&$t.neighboringTiles[Jr]&&($t.neighboringTiles[Jr].backfilled=!0)))}},te.prototype.getTile=function(se){return this.getTileByID(se.key)},te.prototype.getTileByID=function(se){return this._tiles[se]},te.prototype._retainLoadedChildren=function(se,ye,He,Qe){for(var pt in this._tiles){var kt=this._tiles[pt];if(!(Qe[pt]||!kt.hasData()||kt.tileID.overscaledZ<=ye||kt.tileID.overscaledZ>He)){for(var $t=kt.tileID;kt&&kt.tileID.overscaledZ>ye+1;){var tr=kt.tileID.scaledTo(kt.tileID.overscaledZ-1);kt=this._tiles[tr.key],kt&&kt.hasData()&&($t=tr)}for(var cr=$t;cr.overscaledZ>ye;)if(cr=cr.scaledTo(cr.overscaledZ-1),se[cr.key]){Qe[$t.key]=$t;break}}}},te.prototype.findLoadedParent=function(se,ye){if(se.key in this._loadedParentTiles){var He=this._loadedParentTiles[se.key];return He&&He.tileID.overscaledZ>=ye?He:null}for(var Qe=se.overscaledZ-1;Qe>=ye;Qe--){var pt=se.scaledTo(Qe),kt=this._getLoadedTile(pt);if(kt)return kt}},te.prototype._getLoadedTile=function(se){var ye=this._tiles[se.key];if(ye&&ye.hasData())return ye;var He=this._cache.getByKey(se.wrapped().key);return He},te.prototype.updateCacheSize=function(se){var ye=Math.ceil(se.width/this._source.tileSize)+1,He=Math.ceil(se.height/this._source.tileSize)+1,Qe=ye*He,pt=5,kt=Math.floor(Qe*pt),$t=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,kt):kt;this._cache.setMaxSize($t)},te.prototype.handleWrapJump=function(se){var ye=this._prevLng===void 0?se:this._prevLng,He=se-ye,Qe=He/360,pt=Math.round(Qe);if(this._prevLng=se,pt){var kt={};for(var $t in this._tiles){var tr=this._tiles[$t];tr.tileID=tr.tileID.unwrapTo(tr.tileID.wrap+pt),kt[tr.tileID.key]=tr}this._tiles=kt;for(var cr in this._timers)clearTimeout(this._timers[cr]),delete this._timers[cr];for(var ur in this._tiles){var zr=this._tiles[ur];this._setTileReloadTimer(ur,zr)}}},te.prototype.update=function(se){var ye=this;if(this.transform=se,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(se),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var He;this.used?this._source.tileID?He=se.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(wa){return new i.OverscaledTileID(wa.canonical.z,wa.wrap,wa.canonical.z,wa.canonical.x,wa.canonical.y)}):(He=se.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(He=He.filter(function(wa){return ye._source.hasTile(wa)}))):He=[];var Qe=se.coveringZoomLevel(this._source),pt=Math.max(Qe-te.maxOverzooming,this._source.minzoom),kt=Math.max(Qe+te.maxUnderzooming,this._source.minzoom),$t=this._updateRetainedTiles(He,Qe);if(er(this._source.type)){for(var tr={},cr={},ur=Object.keys($t),zr=0,Jr=ur;zrthis._source.maxzoom){var mn=Yr.children(this._source.maxzoom)[0],Vn=this.getTile(mn);if(Vn&&Vn.hasData()){He[mn.key]=mn;continue}}else{var $n=Yr.children(this._source.maxzoom);if(He[$n[0].key]&&He[$n[1].key]&&He[$n[2].key]&&He[$n[3].key])continue}for(var ra=en.wasRequested(),na=Yr.overscaledZ-1;na>=pt;--na){var Qn=Yr.scaledTo(na);if(Qe[Qn.key]||(Qe[Qn.key]=!0,en=this.getTile(Qn),!en&&ra&&(en=this._addTile(Qn)),en&&(He[Qn.key]=Qn,ra=en.wasRequested(),en.hasData())))break}}}return He},te.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var se in this._tiles){for(var ye=[],He=void 0,Qe=this._tiles[se].tileID;Qe.overscaledZ>0;){if(Qe.key in this._loadedParentTiles){He=this._loadedParentTiles[Qe.key];break}ye.push(Qe.key);var pt=Qe.scaledTo(Qe.overscaledZ-1);if(He=this._getLoadedTile(pt),He)break;Qe=pt}for(var kt=0,$t=ye;kt<$t.length;kt+=1){var tr=$t[kt];this._loadedParentTiles[tr]=He}}},te.prototype._addTile=function(se){var ye=this._tiles[se.key];if(ye)return ye;ye=this._cache.getAndRemove(se),ye&&(this._setTileReloadTimer(se.key,ye),ye.tileID=se,this._state.initializeTileState(ye,this.map?this.map.painter:null),this._cacheTimers[se.key]&&(clearTimeout(this._cacheTimers[se.key]),delete this._cacheTimers[se.key],this._setTileReloadTimer(se.key,ye)));var He=!!ye;return He||(ye=new i.Tile(se,this._source.tileSize*se.overscaleFactor()),this._loadTile(ye,this._tileLoaded.bind(this,ye,se.key,ye.state))),ye?(ye.uses++,this._tiles[se.key]=ye,He||this._source.fire(new i.Event("dataloading",{tile:ye,coord:ye.tileID,dataType:"source"})),ye):null},te.prototype._setTileReloadTimer=function(se,ye){var He=this;se in this._timers&&(clearTimeout(this._timers[se]),delete this._timers[se]);var Qe=ye.getExpiryTimeout();Qe&&(this._timers[se]=setTimeout(function(){He._reloadTile(se,"expired"),delete He._timers[se]},Qe))},te.prototype._removeTile=function(se){var ye=this._tiles[se];ye&&(ye.uses--,delete this._tiles[se],this._timers[se]&&(clearTimeout(this._timers[se]),delete this._timers[se]),!(ye.uses>0)&&(ye.hasData()&&ye.state!=="reloading"?this._cache.add(ye.tileID,ye,ye.getExpiryTimeout()):(ye.aborted=!0,this._abortTile(ye),this._unloadTile(ye))))},te.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var se in this._tiles)this._removeTile(se);this._cache.reset()},te.prototype.tilesIn=function(se,ye,He){var Qe=this,pt=[],kt=this.transform;if(!kt)return pt;for(var $t=He?kt.getCameraQueryGeometry(se):se,tr=se.map(function(na){return kt.pointCoordinate(na)}),cr=$t.map(function(na){return kt.pointCoordinate(na)}),ur=this.getIds(),zr=1/0,Jr=1/0,Kr=-1/0,Yr=-1/0,en=0,mn=cr;en=0&&_a[1].y+wa>=0){var Ea=tr.map(function(Ci){return ia.getTilePoint(Ci)}),ti=cr.map(function(Ci){return ia.getTilePoint(Ci)});pt.push({tile:Qn,tileID:ia,queryGeometry:Ea,cameraQueryGeometry:ti,scale:da})}}},ra=0;ra=i.browser.now())return!0}return!1},te.prototype.setFeatureState=function(se,ye,He){se=se||"_geojsonTileLayer",this._state.updateState(se,ye,He)},te.prototype.removeFeatureState=function(se,ye,He){se=se||"_geojsonTileLayer",this._state.removeFeatureState(se,ye,He)},te.prototype.getFeatureState=function(se,ye){return se=se||"_geojsonTileLayer",this._state.getState(se,ye)},te.prototype.setDependencies=function(se,ye,He){var Qe=this._tiles[se];Qe&&Qe.setDependencies(ye,He)},te.prototype.reloadTilesForDependencies=function(se,ye){for(var He in this._tiles){var Qe=this._tiles[He];Qe.hasDependency(se,ye)&&this._reloadTile(He,"reloading")}this._cache.filter(function(pt){return!pt.hasDependency(se,ye)})},te}(i.Evented);Wt.maxOverzooming=10,Wt.maxUnderzooming=3;function jt(pe,te){var me=Math.abs(pe.wrap*2)-+(pe.wrap<0),se=Math.abs(te.wrap*2)-+(te.wrap<0);return pe.overscaledZ-te.overscaledZ||se-me||te.canonical.y-pe.canonical.y||te.canonical.x-pe.canonical.x}function er(pe){return pe==="raster"||pe==="image"||pe==="video"}function hr(){return new i.window.Worker(ds.workerUrl)}var vr="mapboxgl_preloaded_worker_pool",pr=function(){this.active={}};pr.prototype.acquire=function(te){if(!this.workers)for(this.workers=[];this.workers.length0?(ye-Qe)/pt:0;return this.points[He].mult(1-kt).add(this.points[me].mult(kt))};var gr=function(te,me,se){var ye=this.boxCells=[],He=this.circleCells=[];this.xCellCount=Math.ceil(te/se),this.yCellCount=Math.ceil(me/se);for(var Qe=0;Qethis.width||ye<0||me>this.height)return He?!1:[];var pt=[];if(te<=0&&me<=0&&this.width<=se&&this.height<=ye){if(He)return!0;for(var kt=0;kt0:pt}},gr.prototype._queryCircle=function(te,me,se,ye,He){var Qe=te-se,pt=te+se,kt=me-se,$t=me+se;if(pt<0||Qe>this.width||$t<0||kt>this.height)return ye?!1:[];var tr=[],cr={hitTest:ye,circle:{x:te,y:me,radius:se},seenUids:{box:{},circle:{}}};return this._forEachCell(Qe,kt,pt,$t,this._queryCellCircle,tr,cr,He),ye?tr.length>0:tr},gr.prototype.query=function(te,me,se,ye,He){return this._query(te,me,se,ye,!1,He)},gr.prototype.hitTest=function(te,me,se,ye,He){return this._query(te,me,se,ye,!0,He)},gr.prototype.hitTestCircle=function(te,me,se,ye){return this._queryCircle(te,me,se,!0,ye)},gr.prototype._queryCell=function(te,me,se,ye,He,Qe,pt,kt){var $t=pt.seenUids,tr=this.boxCells[He];if(tr!==null)for(var cr=this.bboxes,ur=0,zr=tr;ur=cr[Kr+0]&&ye>=cr[Kr+1]&&(!kt||kt(this.boxKeys[Jr]))){if(pt.hitTest)return Qe.push(!0),!0;Qe.push({key:this.boxKeys[Jr],x1:cr[Kr],y1:cr[Kr+1],x2:cr[Kr+2],y2:cr[Kr+3]})}}}var Yr=this.circleCells[He];if(Yr!==null)for(var en=this.circles,mn=0,Vn=Yr;mnpt*pt+kt*kt},gr.prototype._circleAndRectCollide=function(te,me,se,ye,He,Qe,pt){var kt=(Qe-ye)/2,$t=Math.abs(te-(ye+kt));if($t>kt+se)return!1;var tr=(pt-He)/2,cr=Math.abs(me-(He+tr));if(cr>tr+se)return!1;if($t<=kt||cr<=tr)return!0;var ur=$t-kt,zr=cr-tr;return ur*ur+zr*zr<=se*se};function Br(pe,te,me,se,ye){var He=i.create();return te?(i.scale(He,He,[1/ye,1/ye,1]),me||i.rotateZ(He,He,se.angle)):i.multiply(He,se.labelPlaneMatrix,pe),He}function Zr(pe,te,me,se,ye){if(te){var He=i.clone(pe);return i.scale(He,He,[ye,ye,1]),me||i.rotateZ(He,He,-se.angle),He}else return se.glCoordMatrix}function Wr(pe,te){var me=[pe.x,pe.y,0,1];Mr(me,me,te);var se=me[3];return{point:new i.Point(me[0]/se,me[1]/se),signedDistanceFromCamera:se}}function fn(pe,te){return .5+.5*(pe/te)}function Tn(pe,te){var me=pe[0]/pe[3],se=pe[1]/pe[3],ye=me>=-te[0]&&me<=te[0]&&se>=-te[1]&&se<=te[1];return ye}function wn(pe,te,me,se,ye,He,Qe,pt){var kt=se?pe.textSizeData:pe.iconSizeData,$t=i.evaluateSizeForZoom(kt,me.transform.zoom),tr=[256/me.width*2+1,256/me.height*2+1],cr=se?pe.text.dynamicLayoutVertexArray:pe.icon.dynamicLayoutVertexArray;cr.clear();for(var ur=pe.lineVertexArray,zr=se?pe.text.placedSymbolArray:pe.icon.placedSymbolArray,Jr=me.transform.width/me.transform.height,Kr=!1,Yr=0;YrHe)return{useVertical:!0}}return(pe===i.WritingMode.vertical?te.yme.x)?{needsFlipping:!0}:null}function ga(pe,te,me,se,ye,He,Qe,pt,kt,$t,tr,cr,ur,zr){var Jr=te/24,Kr=pe.lineOffsetX*Jr,Yr=pe.lineOffsetY*Jr,en;if(pe.numGlyphs>1){var mn=pe.glyphStartIndex+pe.numGlyphs,Vn=pe.lineStartIndex,$n=pe.lineStartIndex+pe.lineLength,ra=Nn(Jr,pt,Kr,Yr,me,tr,cr,pe,kt,He,ur);if(!ra)return{notEnoughRoom:!0};var na=Wr(ra.first.point,Qe).point,Qn=Wr(ra.last.point,Qe).point;if(se&&!me){var ia=Yn(pe.writingMode,na,Qn,zr);if(ia)return ia}en=[ra.first];for(var da=pe.glyphStartIndex+1;da0?ti.point:Ia(cr,Ea,wa,1,ye),di=Yn(pe.writingMode,wa,Ci,zr);if(di)return di}var Ha=Ma(Jr*pt.getoffsetX(pe.glyphStartIndex),Kr,Yr,me,tr,cr,pe.segment,pe.lineStartIndex,pe.lineStartIndex+pe.lineLength,kt,He,ur);if(!Ha)return{notEnoughRoom:!0};en=[Ha]}for(var gi=0,li=en;gi0?1:-1,Jr=0;se&&(zr*=-1,Jr=Math.PI),zr<0&&(Jr+=Math.PI);for(var Kr=zr>0?pt+Qe:pt+Qe+1,Yr=ye,en=ye,mn=0,Vn=0,$n=Math.abs(ur),ra=[];mn+Vn<=$n;){if(Kr+=zr,Kr=kt)return null;if(en=Yr,ra.push(Yr),Yr=cr[Kr],Yr===void 0){var na=new i.Point($t.getx(Kr),$t.gety(Kr)),Qn=Wr(na,tr);if(Qn.signedDistanceFromCamera>0)Yr=cr[Kr]=Qn.point;else{var ia=Kr-zr,da=mn===0?He:new i.Point($t.getx(ia),$t.gety(ia));Yr=Ia(da,na,en,$n-mn+1,tr)}}mn+=Vn,Vn=en.dist(Yr)}var wa=($n-mn)/Vn,_a=Yr.sub(en),Ea=_a.mult(wa)._add(en);Ea._add(_a._unit()._perp()._mult(me*zr));var ti=Jr+Math.atan2(Yr.y-en.y,Yr.x-en.x);return ra.push(Ea),{point:Ea,angle:ti,path:ra}}var ma=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Aa(pe,te){for(var me=0;me=1;_i--)li.push(Ha.path[_i]);for(var Pi=1;Pi0){for(var ui=li[0].clone(),Ai=li[0].clone(),Uo=1;Uo=ti.x&&Ai.x<=Ci.x&&ui.y>=ti.y&&Ai.y<=Ci.y?no=[li]:Ai.xCi.x||Ai.yCi.y?no=[]:no=i.clipLine([li],ti.x,ti.y,Ci.x,Ci.y)}for(var Ss=0,Fu=no;Ss=this.screenRightBoundary||yethis.screenBottomBoundary},nn.prototype.isInsideGrid=function(te,me,se,ye){return se>=0&&te=0&&me0){var $n;return this.prevPlacement&&this.prevPlacement.variableOffsets[ur.crossTileID]&&this.prevPlacement.placements[ur.crossTileID]&&this.prevPlacement.placements[ur.crossTileID].text&&($n=this.prevPlacement.variableOffsets[ur.crossTileID].anchor),this.variableOffsets[ur.crossTileID]={textOffset:Yr,width:se,height:ye,anchor:te,textBoxScale:He,prevAnchor:$n},this.markUsedJustification(zr,te,ur,Jr),zr.allowVerticalPlacement&&(this.markUsedOrientation(zr,Jr,ur),this.placedOrientations[ur.crossTileID]=Jr),{shift:en,placedGlyphBoxes:mn}}},Ur.prototype.placeLayerBucketPart=function(te,me,se){var ye=this,He=te.parameters,Qe=He.bucket,pt=He.layout,kt=He.posMatrix,$t=He.textLabelPlaneMatrix,tr=He.labelToScreenMatrix,cr=He.textPixelRatio,ur=He.holdingForFade,zr=He.collisionBoxArray,Jr=He.partiallyEvaluatedTextSize,Kr=He.collisionGroup,Yr=pt.get("text-optional"),en=pt.get("icon-optional"),mn=pt.get("text-allow-overlap"),Vn=pt.get("icon-allow-overlap"),$n=pt.get("text-rotation-alignment")==="map",ra=pt.get("text-pitch-alignment")==="map",na=pt.get("icon-text-fit")!=="none",Qn=pt.get("symbol-z-order")==="viewport-y",ia=mn&&(Vn||!Qe.hasIconData()||en),da=Vn&&(mn||!Qe.hasTextData()||Yr);!Qe.collisionArrays&&zr&&Qe.deserializeCollisionBoxes(zr);var wa=function(Ha,gi){if(!me[Ha.crossTileID]){if(ur){ye.placements[Ha.crossTileID]=new Rn(!1,!1,!1);return}var li=!1,_i=!1,Pi=!0,fo=null,Ti={box:null,offscreen:null},no={box:null,offscreen:null},ui=null,Ai=null,Uo=null,Ss=0,Fu=0,_u=0;gi.textFeatureIndex?Ss=gi.textFeatureIndex:Ha.useRuntimeCollisionCircles&&(Ss=Ha.featureIndex),gi.verticalTextFeatureIndex&&(Fu=gi.verticalTextFeatureIndex);var dc=gi.textBox;if(dc){var qc=function(Yo){var Wl=i.WritingMode.horizontal;if(Qe.allowVerticalPlacement&&!Yo&&ye.prevPlacement){var $l=ye.prevPlacement.placedOrientations[Ha.crossTileID];$l&&(ye.placedOrientations[Ha.crossTileID]=$l,Wl=$l,ye.markUsedOrientation(Qe,Wl,Ha))}return Wl},Bh=function(Yo,Wl){if(Qe.allowVerticalPlacement&&Ha.numVerticalGlyphVertices>0&&gi.verticalTextBox)for(var $l=0,Og=Qe.writingModes;$l0&&(Gl=Gl.filter(function(Yo){return Yo!==Ml.anchor}),Gl.unshift(Ml.anchor))}var hc=function(Yo,Wl,$l){for(var Og=Yo.x2-Yo.x1,t1=Yo.y2-Yo.y1,eS=Ha.textBoxScale,tS=na&&!Vn?Wl:null,C0={box:[],offscreen:!1},rS=mn?Gl.length*2:Gl.length,Fg=0;Fg=Gl.length,r1=ye.attemptAnchorPlacement(nS,Yo,Og,t1,eS,$n,ra,cr,kt,Kr,aS,Ha,Qe,$l,tS);if(r1&&(C0=r1.placedGlyphBoxes,C0&&C0.box&&C0.box.length)){li=!0,fo=r1.shift;break}}return C0},nd=function(){return hc(dc,gi.iconBox,i.WritingMode.horizontal)},vc=function(){var Yo=gi.verticalTextBox,Wl=Ti&&Ti.box&&Ti.box.length;return Qe.allowVerticalPlacement&&!Wl&&Ha.numVerticalGlyphVertices>0&&Yo?hc(Yo,gi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};Bh(nd,vc),Ti&&(li=Ti.box,Pi=Ti.offscreen);var Lg=qc(Ti&&Ti.box);if(!li&&ye.prevPlacement){var Wv=ye.prevPlacement.variableOffsets[Ha.crossTileID];Wv&&(ye.variableOffsets[Ha.crossTileID]=Wv,ye.markUsedJustification(Qe,Wv.anchor,Ha,Lg))}}else{var ef=function(Yo,Wl){var $l=ye.collisionIndex.placeCollisionBox(Yo,mn,cr,kt,Kr.predicate);return $l&&$l.box&&$l.box.length&&(ye.markUsedOrientation(Qe,Wl,Ha),ye.placedOrientations[Ha.crossTileID]=Wl),$l},Cl=function(){return ef(dc,i.WritingMode.horizontal)},tf=function(){var Yo=gi.verticalTextBox;return Qe.allowVerticalPlacement&&Ha.numVerticalGlyphVertices>0&&Yo?ef(Yo,i.WritingMode.vertical):{box:null,offscreen:null}};Bh(Cl,tf),qc(Ti&&Ti.box&&Ti.box.length)}}if(ui=Ti,li=ui&&ui.box&&ui.box.length>0,Pi=ui&&ui.offscreen,Ha.useRuntimeCollisionCircles){var Ds=Qe.text.placedSymbolArray.get(Ha.centerJustifiedTextSymbolIndex),Ig=i.evaluateSizeForFeature(Qe.textSizeData,Jr,Ds),S0=pt.get("text-padding"),ol=Ha.collisionCircleDiameter;Ai=ye.collisionIndex.placeCollisionCircles(mn,Ds,Qe.lineVertexArray,Qe.glyphOffsetArray,Ig,kt,$t,tr,se,ra,Kr.predicate,ol,S0),li=mn||Ai.circles.length>0&&!Ai.collisionDetected,Pi=Pi&&Ai.offscreen}if(gi.iconFeatureIndex&&(_u=gi.iconFeatureIndex),gi.iconBox){var $v=function(Yo){var Wl=na&&fo?Pr(Yo,fo.x,fo.y,$n,ra,ye.transform.angle):Yo;return ye.collisionIndex.placeCollisionBox(Wl,Vn,cr,kt,Kr.predicate)};no&&no.box&&no.box.length&&gi.verticalIconBox?(Uo=$v(gi.verticalIconBox),_i=Uo.box.length>0):(Uo=$v(gi.iconBox),_i=Uo.box.length>0),Pi=Pi&&Uo.offscreen}var Rg=Yr||Ha.numHorizontalGlyphVertices===0&&Ha.numVerticalGlyphVertices===0,kg=en||Ha.numIconVertices===0;if(!Rg&&!kg?_i=li=_i&&li:kg?Rg||(_i=_i&&li):li=_i&&li,li&&ui&&ui.box&&(no&&no.box&&Fu?ye.collisionIndex.insertCollisionBox(ui.box,pt.get("text-ignore-placement"),Qe.bucketInstanceId,Fu,Kr.ID):ye.collisionIndex.insertCollisionBox(ui.box,pt.get("text-ignore-placement"),Qe.bucketInstanceId,Ss,Kr.ID)),_i&&Uo&&ye.collisionIndex.insertCollisionBox(Uo.box,pt.get("icon-ignore-placement"),Qe.bucketInstanceId,_u,Kr.ID),Ai&&(li&&ye.collisionIndex.insertCollisionCircles(Ai.circles,pt.get("text-ignore-placement"),Qe.bucketInstanceId,Ss,Kr.ID),se)){var Dg=Qe.bucketInstanceId,Yv=ye.collisionCircleArrays[Dg];Yv===void 0&&(Yv=ye.collisionCircleArrays[Dg]=new Xn);for(var Xv=0;Xv=0;--Ea){var ti=_a[Ea];wa(Qe.symbolInstances.get(ti),Qe.collisionArrays[ti])}else for(var Ci=te.symbolInstanceStart;Ci=0&&(Qe>=0&&tr!==Qe?te.text.placedSymbolArray.get(tr).crossTileID=0:te.text.placedSymbolArray.get(tr).crossTileID=se.crossTileID)}},Ur.prototype.markUsedOrientation=function(te,me,se){for(var ye=me===i.WritingMode.horizontal||me===i.WritingMode.horizontalOnly?me:0,He=me===i.WritingMode.vertical?me:0,Qe=[se.leftJustifiedTextSymbolIndex,se.centerJustifiedTextSymbolIndex,se.rightJustifiedTextSymbolIndex],pt=0,kt=Qe;pt0||ra>0,wa=Vn.numIconVertices>0,_a=ye.placedOrientations[Vn.crossTileID],Ea=_a===i.WritingMode.vertical,ti=_a===i.WritingMode.horizontal||_a===i.WritingMode.horizontalOnly;if(da){var Ci=$r(ia.text),di=Ea?rn:Ci;Jr(te.text,$n,di);var Ha=ti?rn:Ci;Jr(te.text,ra,Ha);var gi=ia.text.isHidden();[Vn.rightJustifiedTextSymbolIndex,Vn.centerJustifiedTextSymbolIndex,Vn.leftJustifiedTextSymbolIndex].forEach(function(_u){_u>=0&&(te.text.placedSymbolArray.get(_u).hidden=gi||Ea?1:0)}),Vn.verticalPlacedTextSymbolIndex>=0&&(te.text.placedSymbolArray.get(Vn.verticalPlacedTextSymbolIndex).hidden=gi||ti?1:0);var li=ye.variableOffsets[Vn.crossTileID];li&&ye.markUsedJustification(te,li.anchor,Vn,_a);var _i=ye.placedOrientations[Vn.crossTileID];_i&&(ye.markUsedJustification(te,"left",Vn,_i),ye.markUsedOrientation(te,_i,Vn))}if(wa){var Pi=$r(ia.icon),fo=!(ur&&Vn.verticalPlacedIconSymbolIndex&&Ea);if(Vn.placedIconSymbolIndex>=0){var Ti=fo?Pi:rn;Jr(te.icon,Vn.numIconVertices,Ti),te.icon.placedSymbolArray.get(Vn.placedIconSymbolIndex).hidden=ia.icon.isHidden()}if(Vn.verticalPlacedIconSymbolIndex>=0){var no=fo?rn:Pi;Jr(te.icon,Vn.numVerticalIconVertices,no),te.icon.placedSymbolArray.get(Vn.verticalPlacedIconSymbolIndex).hidden=ia.icon.isHidden()}}if(te.hasIconCollisionBoxData()||te.hasTextCollisionBoxData()){var ui=te.collisionArrays[mn];if(ui){var Ai=new i.Point(0,0);if(ui.textBox||ui.verticalTextBox){var Uo=!0;if($t){var Ss=ye.variableOffsets[na];Ss?(Ai=Qa(Ss.anchor,Ss.width,Ss.height,Ss.textOffset,Ss.textBoxScale),tr&&Ai._rotate(cr?ye.transform.angle:-ye.transform.angle)):Uo=!1}ui.textBox&&Ar(te.textCollisionBox.collisionVertexArray,ia.text.placed,!Uo||Ea,Ai.x,Ai.y),ui.verticalTextBox&&Ar(te.textCollisionBox.collisionVertexArray,ia.text.placed,!Uo||ti,Ai.x,Ai.y)}var Fu=!!(!ti&&ui.verticalIconBox);ui.iconBox&&Ar(te.iconCollisionBox.collisionVertexArray,ia.icon.placed,Fu,ur?Ai.x:0,ur?Ai.y:0),ui.verticalIconBox&&Ar(te.iconCollisionBox.collisionVertexArray,ia.icon.placed,!Fu,ur?Ai.x:0,ur?Ai.y:0)}}},Yr=0;Yrte},Ur.prototype.setStale=function(){this.stale=!0};function Ar(pe,te,me,se,ye){pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0),pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0),pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0),pe.emplaceBack(te?1:0,me?1:0,se||0,ye||0)}var Vr=Math.pow(2,25),An=Math.pow(2,24),Hn=Math.pow(2,17),yn=Math.pow(2,16),vn=Math.pow(2,9),Lr=Math.pow(2,8),Qr=Math.pow(2,1);function $r(pe){if(pe.opacity===0&&!pe.placed)return 0;if(pe.opacity===1&&pe.placed)return 4294967295;var te=pe.placed?1:0,me=Math.floor(pe.opacity*127);return me*Vr+te*An+me*Hn+te*yn+me*vn+te*Lr+me*Qr+te}var rn=0,Pn=function(te){this._sortAcrossTiles=te.layout.get("symbol-z-order")!=="viewport-y"&&te.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pn.prototype.continuePlacement=function(te,me,se,ye,He){for(var Qe=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var pt=te[this._currentPlacementIndex],kt=me[pt],$t=this.placement.collisionIndex.transform.zoom;if(kt.type==="symbol"&&(!kt.minzoom||kt.minzoom<=$t)&&(!kt.maxzoom||kt.maxzoom>$t)){this._inProgressLayer||(this._inProgressLayer=new Pn(kt));var tr=this._inProgressLayer.continuePlacement(se[kt.source],this.placement,this._showCollisionBoxes,kt,Qe);if(tr)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},_n.prototype.commit=function(te){return this.placement.commit(te),this.placement};var zn=512/i.EXTENT/2,Zn=function(te,me,se){this.tileID=te,this.indexedSymbolInstances={},this.bucketInstanceId=se;for(var ye=0;yete.overscaledZ)for(var $t in kt){var tr=kt[$t];tr.tileID.isChildOf(te)&&tr.findMatches(me.symbolInstances,te,Qe)}else{var cr=te.scaledTo(Number(pt)),ur=kt[cr.key];ur&&ur.findMatches(me.symbolInstances,te,Qe)}}for(var zr=0;zr0)throw new Error("Unimplemented: "+Qe.map(function(pt){return pt.command}).join(", ")+".");return He.forEach(function(pt){pt.command!=="setTransition"&&ye[pt.command].apply(ye,pt.args)}),this.stylesheet=se,!0},te.prototype.addImage=function(se,ye){if(this.getImage(se))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(se,ye),this._afterImageUpdated(se)},te.prototype.updateImage=function(se,ye){this.imageManager.updateImage(se,ye)},te.prototype.getImage=function(se){return this.imageManager.getImage(se)},te.prototype.removeImage=function(se){if(!this.getImage(se))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(se),this._afterImageUpdated(se)},te.prototype._afterImageUpdated=function(se){this._availableImages=this.imageManager.listImages(),this._changedImages[se]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},te.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},te.prototype.addSource=function(se,ye,He){var Qe=this;if(He===void 0&&(He={}),this._checkLoaded(),this.sourceCaches[se]!==void 0)throw new Error("There is already a source with this ID");if(!ye.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ye).join(", ")+".");var pt=["vector","raster","geojson","video","image"],kt=pt.indexOf(ye.type)>=0;if(!(kt&&this._validate(i.validateStyle.source,"sources."+se,ye,null,He))){this.map&&this.map._collectResourceTiming&&(ye.collectResourceTiming=!0);var $t=this.sourceCaches[se]=new Wt(se,ye,this.dispatcher);$t.style=this,$t.setEventedParent(this,function(){return{isSourceLoaded:Qe.loaded(),source:$t.serialize(),sourceId:se}}),$t.onAdd(this.map),this._changed=!0}},te.prototype.removeSource=function(se){if(this._checkLoaded(),this.sourceCaches[se]===void 0)throw new Error("There is no source with this ID");for(var ye in this._layers)if(this._layers[ye].source===se)return this.fire(new i.ErrorEvent(new Error('Source "'+se+'" cannot be removed while layer "'+ye+'" is using it.')));var He=this.sourceCaches[se];delete this.sourceCaches[se],delete this._updatedSources[se],He.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:se})),He.setEventedParent(null),He.clearTiles(),He.onRemove&&He.onRemove(this.map),this._changed=!0},te.prototype.setGeoJSONSourceData=function(se,ye){this._checkLoaded();var He=this.sourceCaches[se].getSource();He.setData(ye),this._changed=!0},te.prototype.getSource=function(se){return this.sourceCaches[se]&&this.sourceCaches[se].getSource()},te.prototype.addLayer=function(se,ye,He){He===void 0&&(He={}),this._checkLoaded();var Qe=se.id;if(this.getLayer(Qe)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+Qe+'" already exists on this map')));return}var pt;if(se.type==="custom"){if(Ra(this,i.validateCustomStyleLayer(se)))return;pt=i.createStyleLayer(se)}else{if(typeof se.source=="object"&&(this.addSource(Qe,se.source),se=i.clone$1(se),se=i.extend(se,{source:Qe})),this._validate(i.validateStyle.layer,"layers."+Qe,se,{arrayIndex:-1},He))return;pt=i.createStyleLayer(se),this._validateLayer(pt),pt.setEventedParent(this,{layer:{id:Qe}}),this._serializedLayers[pt.id]=pt.serialize()}var kt=ye?this._order.indexOf(ye):this._order.length;if(ye&&kt===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ye+'" does not exist on this map.')));return}if(this._order.splice(kt,0,Qe),this._layerOrderChanged=!0,this._layers[Qe]=pt,this._removedLayers[Qe]&&pt.source&&pt.type!=="custom"){var $t=this._removedLayers[Qe];delete this._removedLayers[Qe],$t.type!==pt.type?this._updatedSources[pt.source]="clear":(this._updatedSources[pt.source]="reload",this.sourceCaches[pt.source].pause())}this._updateLayer(pt),pt.onAdd&&pt.onAdd(this.map)},te.prototype.moveLayer=function(se,ye){this._checkLoaded(),this._changed=!0;var He=this._layers[se];if(!He){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be moved.")));return}if(se!==ye){var Qe=this._order.indexOf(se);this._order.splice(Qe,1);var pt=ye?this._order.indexOf(ye):this._order.length;if(ye&&pt===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ye+'" does not exist on this map.')));return}this._order.splice(pt,0,se),this._layerOrderChanged=!0}},te.prototype.removeLayer=function(se){this._checkLoaded();var ye=this._layers[se];if(!ye){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be removed.")));return}ye.setEventedParent(null);var He=this._order.indexOf(se);this._order.splice(He,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[se]=ye,delete this._layers[se],delete this._serializedLayers[se],delete this._updatedLayers[se],delete this._updatedPaintProps[se],ye.onRemove&&ye.onRemove(this.map)},te.prototype.getLayer=function(se){return this._layers[se]},te.prototype.hasLayer=function(se){return se in this._layers},te.prototype.setLayerZoomRange=function(se,ye,He){this._checkLoaded();var Qe=this.getLayer(se);if(!Qe){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot have zoom extent.")));return}Qe.minzoom===ye&&Qe.maxzoom===He||(ye!=null&&(Qe.minzoom=ye),He!=null&&(Qe.maxzoom=He),this._updateLayer(Qe))},te.prototype.setFilter=function(se,ye,He){He===void 0&&(He={}),this._checkLoaded();var Qe=this.getLayer(se);if(!Qe){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(Qe.filter,ye)){if(ye==null){Qe.filter=void 0,this._updateLayer(Qe);return}this._validate(i.validateStyle.filter,"layers."+Qe.id+".filter",ye,null,He)||(Qe.filter=i.clone$1(ye),this._updateLayer(Qe))}},te.prototype.getFilter=function(se){return i.clone$1(this.getLayer(se).filter)},te.prototype.setLayoutProperty=function(se,ye,He,Qe){Qe===void 0&&(Qe={}),this._checkLoaded();var pt=this.getLayer(se);if(!pt){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(pt.getLayoutProperty(ye),He)||(pt.setLayoutProperty(ye,He,Qe),this._updateLayer(pt))},te.prototype.getLayoutProperty=function(se,ye){var He=this.getLayer(se);if(!He){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style.")));return}return He.getLayoutProperty(ye)},te.prototype.setPaintProperty=function(se,ye,He,Qe){Qe===void 0&&(Qe={}),this._checkLoaded();var pt=this.getLayer(se);if(!pt){this.fire(new i.ErrorEvent(new Error("The layer '"+se+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(pt.getPaintProperty(ye),He)){var kt=pt.setPaintProperty(ye,He,Qe);kt&&this._updateLayer(pt),this._changed=!0,this._updatedPaintProps[se]=!0}},te.prototype.getPaintProperty=function(se,ye){return this.getLayer(se).getPaintProperty(ye)},te.prototype.setFeatureState=function(se,ye){this._checkLoaded();var He=se.source,Qe=se.sourceLayer,pt=this.sourceCaches[He];if(pt===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+He+"' does not exist in the map's style.")));return}var kt=pt.getSource().type;if(kt==="geojson"&&Qe){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(kt==="vector"&&!Qe){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}se.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),pt.setFeatureState(Qe,se.id,ye)},te.prototype.removeFeatureState=function(se,ye){this._checkLoaded();var He=se.source,Qe=this.sourceCaches[He];if(Qe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+He+"' does not exist in the map's style.")));return}var pt=Qe.getSource().type,kt=pt==="vector"?se.sourceLayer:void 0;if(pt==="vector"&&!kt){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(ye&&typeof se.id!="string"&&typeof se.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Qe.removeFeatureState(kt,se.id,ye)},te.prototype.getFeatureState=function(se){this._checkLoaded();var ye=se.source,He=se.sourceLayer,Qe=this.sourceCaches[ye];if(Qe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ye+"' does not exist in the map's style.")));return}var pt=Qe.getSource().type;if(pt==="vector"&&!He){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return se.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Qe.getFeatureState(He,se.id)},te.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},te.prototype.serialize=function(){return i.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:i.mapObject(this.sourceCaches,function(se){return se.serialize()}),layers:this._serializeLayers(this._order)},function(se){return se!==void 0})},te.prototype._updateLayer=function(se){this._updatedLayers[se.id]=!0,se.source&&!this._updatedSources[se.source]&&this.sourceCaches[se.source].getSource().type!=="raster"&&(this._updatedSources[se.source]="reload",this.sourceCaches[se.source].pause()),this._changed=!0},te.prototype._flattenAndSortRenderedFeatures=function(se){for(var ye=this,He=function(ti){return ye._layers[ti].type==="fill-extrusion"},Qe={},pt=[],kt=this._order.length-1;kt>=0;kt--){var $t=this._order[kt];if(He($t)){Qe[$t]=kt;for(var tr=0,cr=se;tr=0;mn--){var Vn=this._order[mn];if(He(Vn))for(var $n=pt.length-1;$n>=0;$n--){var ra=pt[$n].feature;if(Qe[ra.layer.id] 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;}`,Md=`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; +vec3 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;}`,Pd=`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; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -2736,7 +2736,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,n0=`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; +}`,a0=`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; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -2752,20 +2752,20 @@ void main() { #pragma mapbox: initialize lowp float pixel_ratio_to vec2 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 ? a_pos -: 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;}`,a0=`#ifdef GL_ES +: 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;}`,i0=`#ifdef GL_ES precision highp float; #endif uniform 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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,i0="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;}",xh=`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; +}`,o0="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;}",wh=`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; #define PI 3.141592653589793 void 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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,o0="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;}",s0=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,s0="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;}",l0=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -2803,7 +2803,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,rc=` +}`,nc=` #define scale 0.015873016 attribute 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; #pragma mapbox: define lowp float blur @@ -2817,7 +2817,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float 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);}`,Fc=`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; +float 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);}`,zc=`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; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -2835,7 +2835,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Of=` +}`,_f=` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute 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; @@ -2860,7 +2860,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -float 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;}`,Ff=`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; +float 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;}`,zf=`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; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -2895,11 +2895,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float 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);}`,nu=`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); +float 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);}`,au=`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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,l0="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;}",Ad=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,u0="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;}",Ld=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -2930,7 +2930,7 @@ float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scal #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Ed=`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; +}`,Id=`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; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity @@ -2944,7 +2944,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 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 ? camera_to_anchor_distance/u_camera_to_center_distance : -u_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);}`,vl=`#define SDF_PX 8.0 +u_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);}`,pl=`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform 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; @@ -2967,7 +2967,7 @@ return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float ga #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,_c=`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; +}`,Bc=`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; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity @@ -2981,7 +2981,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 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 ? camera_to_anchor_distance/u_camera_to_center_distance : -u_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);}`,nc=eo(os,Rc),_f=eo(ph,yv),Mu=eo(Ei,Df),Nl=eo(gh,qo),bh=eo(Is,kc),zc=eo(Cd,Po),pl=eo(Dc,ko),To=eo(jo,Oc),wh=eo(ss,ls),u0=eo(Js,xv),Pd=eo(Vs,t0),Bc=eo(zl,es),Nc=eo(mh,Cu),js=eo(Bl,yh),Ld=eo(bv,r0),Uc=eo(Md,n0),Id=eo(a0,i0),c0=eo(xh,o0),Av=eo(s0,wv),Th=eo(Tv,rc),Sh=eo(Fc,Of),Ch=eo(Ff,Sv),Hc=eo(nu,l0),Rd=eo(Ad,Cv),zf=eo(Mv,Ed),kd=eo(vl,_c);function eo(pe,te){var me=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,se=te.match(/attribute ([\w]+) ([\w]+)/g),ye=pe.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),He=te.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Qe=He?He.concat(ye):ye,pt={};return pe=pe.replace(me,function(kt,$t,tr,cr,ur){return pt[ur]=!0,$t==="define"?` +u_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);}`,ac=eo(ss,Dc),Bf=eo(mh,yv),Au=eo(Ei,Ff),Ul=eo(yh,es),Th=eo(Rs,Oc),Nc=eo(Ed,Lo),ml=eo(Fc,Do),So=eo(Go,_c),Sh=eo(ls,us),c0=eo(Qs,xv),Rd=eo(Vs,r0),Uc=eo(Bl,ts),Hc=eo(xh,Mu),js=eo(Nl,bh),kd=eo(bv,n0),Vc=eo(Pd,a0),Dd=eo(i0,o0),f0=eo(wh,s0),Av=eo(l0,wv),Ch=eo(Tv,nc),Mh=eo(zc,_f),Ah=eo(zf,Sv),jc=eo(au,u0),Od=eo(Ld,Cv),Nf=eo(Mv,Id),Fd=eo(pl,Bc);function eo(pe,te){var me=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,se=te.match(/attribute ([\w]+) ([\w]+)/g),ye=pe.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),He=te.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Qe=He?He.concat(ye):ye,pt={};return pe=pe.replace(me,function(kt,$t,tr,cr,ur){return pt[ur]=!0,$t==="define"?` #ifndef HAS_UNIFORM_u_`+ur+` varying `+tr+" "+cr+" "+ur+`; #else @@ -2991,10 +2991,10 @@ uniform `+tr+" "+cr+" u_"+ur+`; #ifdef HAS_UNIFORM_u_`+ur+` `+tr+" "+cr+" "+ur+" = u_"+ur+`; #endif -`}),te=te.replace(me,function(kt,$t,tr,cr,ur){var Br=cr==="float"?"vec2":"vec4",Jr=ur.match(/color/)?"color":Br;return pt[ur]?$t==="define"?` +`}),te=te.replace(me,function(kt,$t,tr,cr,ur){var zr=cr==="float"?"vec2":"vec4",Jr=ur.match(/color/)?"color":zr;return pt[ur]?$t==="define"?` #ifndef HAS_UNIFORM_u_`+ur+` uniform lowp float u_`+ur+`_t; -attribute `+tr+" "+Br+" a_"+ur+`; +attribute `+tr+" "+zr+" a_"+ur+`; varying `+tr+" "+cr+" "+ur+`; #else uniform `+tr+" "+cr+" u_"+ur+`; @@ -3014,7 +3014,7 @@ uniform `+tr+" "+cr+" u_"+ur+`; `:$t==="define"?` #ifndef HAS_UNIFORM_u_`+ur+` uniform lowp float u_`+ur+`_t; -attribute `+tr+" "+Br+" a_"+ur+`; +attribute `+tr+" "+zr+" a_"+ur+`; #else uniform `+tr+" "+cr+" u_"+ur+`; #endif @@ -3030,15 +3030,15 @@ uniform `+tr+" "+cr+" u_"+ur+`; #else `+tr+" "+cr+" "+ur+" = u_"+ur+`; #endif -`}),{fragmentSource:pe,vertexSource:te,staticAttributes:se,staticUniforms:Qe}}var Ev=Object.freeze({__proto__:null,prelude:nc,background:_f,backgroundPattern:Mu,circle:Nl,clippingMask:bh,heatmap:zc,heatmapTexture:pl,collisionBox:To,collisionCircle:wh,debug:u0,fill:Pd,fillOutline:Bc,fillOutlinePattern:Nc,fillPattern:js,fillExtrusion:Ld,fillExtrusionPattern:Uc,hillshadePrepare:Id,hillshade:c0,line:Av,lineGradient:Th,linePattern:Sh,lineSDF:Ch,raster:Hc,symbolIcon:Rd,symbolSDF:zf,symbolTextAndIcon:kd}),ml=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};ml.prototype.bind=function(te,me,se,ye,He,Qe,pt,kt){this.context=te;for(var $t=this.boundPaintVertexBuffers.length!==ye.length,tr=0;!$t&&tr>16,pt>>16],u_pixel_coord_lower:[Qe&65535,pt&65535]}}function Au(pe,te,me,se){var ye=me.imageManager.getPattern(pe.from.toString()),He=me.imageManager.getPattern(pe.to.toString()),Qe=me.imageManager.getPixelSize(),pt=Qe.width,kt=Qe.height,$t=Math.pow(2,se.tileID.overscaledZ),tr=se.tileSize*Math.pow(2,me.transform.tileZoom)/$t,cr=tr*(se.tileID.canonical.x+se.tileID.wrap*$t),ur=tr*se.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ye.tl,u_pattern_br_a:ye.br,u_pattern_tl_b:He.tl,u_pattern_br_b:He.br,u_texsize:[pt,kt],u_mix:te.t,u_pattern_size_a:ye.displaySize,u_pattern_size_b:He.displaySize,u_scale_a:te.fromScale,u_scale_b:te.toScale,u_tile_units_to_pixels:1/wn(se,1,me.transform.tileZoom),u_pixel_coord_upper:[cr>>16,ur>>16],u_pixel_coord_lower:[cr&65535,ur&65535]}}var Dd=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_lightpos:new i.Uniform3f(pe,te.u_lightpos),u_lightintensity:new i.Uniform1f(pe,te.u_lightintensity),u_lightcolor:new i.Uniform3f(pe,te.u_lightcolor),u_vertical_gradient:new i.Uniform1f(pe,te.u_vertical_gradient),u_opacity:new i.Uniform1f(pe,te.u_opacity)}},Lo=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_lightpos:new i.Uniform3f(pe,te.u_lightpos),u_lightintensity:new i.Uniform1f(pe,te.u_lightintensity),u_lightcolor:new i.Uniform3f(pe,te.u_lightcolor),u_vertical_gradient:new i.Uniform1f(pe,te.u_vertical_gradient),u_height_factor:new i.Uniform1f(pe,te.u_height_factor),u_image:new i.Uniform1i(pe,te.u_image),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade),u_opacity:new i.Uniform1f(pe,te.u_opacity)}},Bf=function(pe,te,me,se){var ye=te.style.light,He=ye.properties.get("position"),Qe=[He.x,He.y,He.z],pt=i.create$1();ye.properties.get("anchor")==="viewport"&&i.fromRotation(pt,-te.transform.angle),i.transformMat3(Qe,Qe,pt);var kt=ye.properties.get("color");return{u_matrix:pe,u_lightpos:Qe,u_lightintensity:ye.properties.get("intensity"),u_lightcolor:[kt.r,kt.g,kt.b],u_vertical_gradient:+me,u_opacity:se}},yl=function(pe,te,me,se,ye,He,Qe){return i.extend(Bf(pe,te,me,se),ac(He,te,Qe),{u_height_factor:-Math.pow(2,ye.overscaledZ)/Qe.tileSize/8})},au=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},ic=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_image:new i.Uniform1i(pe,te.u_image),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade)}},Eu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_world:new i.Uniform2f(pe,te.u_world)}},xl=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_world:new i.Uniform2f(pe,te.u_world),u_image:new i.Uniform1i(pe,te.u_image),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade)}},iu=function(pe){return{u_matrix:pe}},bl=function(pe,te,me,se){return i.extend(iu(pe),ac(me,te,se))},al=function(pe,te){return{u_matrix:pe,u_world:te}},Nf=function(pe,te,me,se,ye){return i.extend(bl(pe,te,me,se),{u_world:ye})},f0=function(pe,te){return{u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(pe,te.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(pe,te.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},d0=function(pe,te,me,se){var ye=pe.transform,He,Qe;if(se.paint.get("circle-pitch-alignment")==="map"){var pt=wn(me,1,ye.zoom);He=!0,Qe=[pt,pt]}else He=!1,Qe=ye.pixelsToGLUnits;return{u_camera_to_center_distance:ye.cameraToCenterDistance,u_scale_with_map:+(se.paint.get("circle-pitch-scale")==="map"),u_matrix:pe.translatePosMatrix(te.posMatrix,me,se.paint.get("circle-translate"),se.paint.get("circle-translate-anchor")),u_pitch_with_map:+He,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:Qe}},h0=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(pe,te.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(pe,te.u_extrude_scale),u_overscale_factor:new i.Uniform1f(pe,te.u_overscale_factor)}},v0=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_inv_matrix:new i.UniformMatrix4f(pe,te.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(pe,te.u_viewport_size)}},Ah=function(pe,te,me){var se=wn(me,1,te.zoom),ye=Math.pow(2,te.zoom-me.tileID.overscaledZ),He=me.tileID.overscaleFactor();return{u_matrix:pe,u_camera_to_center_distance:te.cameraToCenterDistance,u_pixels_to_tile_units:se,u_extrude_scale:[te.pixelsToGLUnits[0]/(se*ye),te.pixelsToGLUnits[1]/(se*ye)],u_overscale_factor:He}},Lv=function(pe,te,me){return{u_matrix:pe,u_inv_matrix:te,u_camera_to_center_distance:me.cameraToCenterDistance,u_viewport_size:[me.width,me.height]}},Vc=function(pe,te){return{u_color:new i.UniformColor(pe,te.u_color),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_overlay:new i.Uniform1i(pe,te.u_overlay),u_overlay_scale:new i.Uniform1f(pe,te.u_overlay_scale)}},ts=function(pe,te,me){return me===void 0&&(me=1),{u_matrix:pe,u_color:te,u_overlay:0,u_overlay_scale:me}},Qs=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},jc=function(pe){return{u_matrix:pe}},Iv=function(pe,te){return{u_extrude_scale:new i.Uniform1f(pe,te.u_extrude_scale),u_intensity:new i.Uniform1f(pe,te.u_intensity),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},Uf=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_world:new i.Uniform2f(pe,te.u_world),u_image:new i.Uniform1i(pe,te.u_image),u_color_ramp:new i.Uniform1i(pe,te.u_color_ramp),u_opacity:new i.Uniform1f(pe,te.u_opacity)}},ou=function(pe,te,me,se){return{u_matrix:pe,u_extrude_scale:wn(te,1,me),u_intensity:se}},p0=function(pe,te,me,se){var ye=i.create();i.ortho(ye,0,pe.width,pe.height,0,0,1);var He=pe.context.gl;return{u_matrix:ye,u_world:[He.drawingBufferWidth,He.drawingBufferHeight],u_image:me,u_color_ramp:se,u_opacity:te.paint.get("heatmap-opacity")}},Rv=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_image:new i.Uniform1i(pe,te.u_image),u_latrange:new i.Uniform2f(pe,te.u_latrange),u_light:new i.Uniform2f(pe,te.u_light),u_shadow:new i.UniformColor(pe,te.u_shadow),u_highlight:new i.UniformColor(pe,te.u_highlight),u_accent:new i.UniformColor(pe,te.u_accent)}},kv=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_image:new i.Uniform1i(pe,te.u_image),u_dimension:new i.Uniform2f(pe,te.u_dimension),u_zoom:new i.Uniform1f(pe,te.u_zoom),u_unpack:new i.Uniform4f(pe,te.u_unpack)}},Eh=function(pe,te,me){var se=me.paint.get("hillshade-shadow-color"),ye=me.paint.get("hillshade-highlight-color"),He=me.paint.get("hillshade-accent-color"),Qe=me.paint.get("hillshade-illumination-direction")*(Math.PI/180);me.paint.get("hillshade-illumination-anchor")==="viewport"&&(Qe-=pe.transform.angle);var pt=!pe.options.moving;return{u_matrix:pe.transform.calculatePosMatrix(te.tileID.toUnwrapped(),pt),u_image:0,u_latrange:Rs(pe,te.tileID),u_light:[me.paint.get("hillshade-exaggeration"),Qe],u_shadow:se,u_highlight:ye,u_accent:He}},Dv=function(pe,te){var me=te.stride,se=i.create();return i.ortho(se,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(se,se,[0,-i.EXTENT,0]),{u_matrix:se,u_image:1,u_dimension:[me,me],u_zoom:pe.overscaledZ,u_unpack:te.getUnpackVector()}};function Rs(pe,te){var me=Math.pow(2,te.canonical.z),se=te.canonical.y;return[new i.MercatorCoordinate(0,se/me).toLngLat().lat,new i.MercatorCoordinate(0,(se+1)/me).toLngLat().lat]}var wl=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels)}},Pu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels),u_image:new i.Uniform1i(pe,te.u_image),u_image_height:new i.Uniform1f(pe,te.u_image_height)}},Gc=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_image:new i.Uniform1i(pe,te.u_image),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade)}},Od=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(pe,te.u_patternscale_a),u_patternscale_b:new i.Uniform2f(pe,te.u_patternscale_b),u_sdfgamma:new i.Uniform1f(pe,te.u_sdfgamma),u_image:new i.Uniform1i(pe,te.u_image),u_tex_y_a:new i.Uniform1f(pe,te.u_tex_y_a),u_tex_y_b:new i.Uniform1f(pe,te.u_tex_y_b),u_mix:new i.Uniform1f(pe,te.u_mix)}},oc=function(pe,te,me){var se=pe.transform;return{u_matrix:Lu(pe,te,me),u_ratio:1/wn(te,1,se.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/se.pixelsToGLUnits[0],1/se.pixelsToGLUnits[1]]}},sc=function(pe,te,me,se){return i.extend(oc(pe,te,me),{u_image:0,u_image_height:se})},Ov=function(pe,te,me,se){var ye=pe.transform,He=Wc(te,ye);return{u_matrix:Lu(pe,te,me),u_texsize:te.imageAtlasTexture.size,u_ratio:1/wn(te,1,ye.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[He,se.fromScale,se.toScale],u_fade:se.t,u_units_to_pixels:[1/ye.pixelsToGLUnits[0],1/ye.pixelsToGLUnits[1]]}},su=function(pe,te,me,se,ye){var He=pe.transform,Qe=pe.lineAtlas,pt=Wc(te,He),kt=me.layout.get("line-cap")==="round",$t=Qe.getDash(se.from,kt),tr=Qe.getDash(se.to,kt),cr=$t.width*ye.fromScale,ur=tr.width*ye.toScale;return i.extend(oc(pe,te,me),{u_patternscale_a:[pt/cr,-$t.height/2],u_patternscale_b:[pt/ur,-tr.height/2],u_sdfgamma:Qe.width/(Math.min(cr,ur)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:$t.y,u_tex_y_b:tr.y,u_mix:ye.t})};function Wc(pe,te){return 1/wn(pe,1,te.tileZoom)}function Lu(pe,te,me){return pe.translatePosMatrix(te.tileID.posMatrix,te,me.paint.get("line-translate"),me.paint.get("line-translate-anchor"))}var lu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_tl_parent:new i.Uniform2f(pe,te.u_tl_parent),u_scale_parent:new i.Uniform1f(pe,te.u_scale_parent),u_buffer_scale:new i.Uniform1f(pe,te.u_buffer_scale),u_fade_t:new i.Uniform1f(pe,te.u_fade_t),u_opacity:new i.Uniform1f(pe,te.u_opacity),u_image0:new i.Uniform1i(pe,te.u_image0),u_image1:new i.Uniform1i(pe,te.u_image1),u_brightness_low:new i.Uniform1f(pe,te.u_brightness_low),u_brightness_high:new i.Uniform1f(pe,te.u_brightness_high),u_saturation_factor:new i.Uniform1f(pe,te.u_saturation_factor),u_contrast_factor:new i.Uniform1f(pe,te.u_contrast_factor),u_spin_weights:new i.Uniform3f(pe,te.u_spin_weights)}},Hf=function(pe,te,me,se,ye){return{u_matrix:pe,u_tl_parent:te,u_scale_parent:me,u_buffer_scale:1,u_fade_t:se.mix,u_opacity:se.opacity*ye.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ye.paint.get("raster-brightness-min"),u_brightness_high:ye.paint.get("raster-brightness-max"),u_saturation_factor:Yc(ye.paint.get("raster-saturation")),u_contrast_factor:Yi(ye.paint.get("raster-contrast")),u_spin_weights:$c(ye.paint.get("raster-hue-rotate"))}};function $c(pe){pe*=Math.PI/180;var te=Math.sin(pe),me=Math.cos(pe);return[(2*me+1)/3,(-Math.sqrt(3)*te-me+1)/3,(Math.sqrt(3)*te-me+1)/3]}function Yi(pe){return pe>0?1/(1-pe):1+pe}function Yc(pe){return pe>0?1-1/(1.001-pe):-pe}var Fd=function(pe,te){return{u_is_size_zoom_constant:new i.Uniform1i(pe,te.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(pe,te.u_is_size_feature_constant),u_size_t:new i.Uniform1f(pe,te.u_size_t),u_size:new i.Uniform1f(pe,te.u_size),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pitch:new i.Uniform1f(pe,te.u_pitch),u_rotate_symbol:new i.Uniform1i(pe,te.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(pe,te.u_aspect_ratio),u_fade_change:new i.Uniform1f(pe,te.u_fade_change),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(pe,te.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(pe,te.u_coord_matrix),u_is_text:new i.Uniform1i(pe,te.u_is_text),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_texture:new i.Uniform1i(pe,te.u_texture)}},Fv=function(pe,te){return{u_is_size_zoom_constant:new i.Uniform1i(pe,te.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(pe,te.u_is_size_feature_constant),u_size_t:new i.Uniform1f(pe,te.u_size_t),u_size:new i.Uniform1f(pe,te.u_size),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pitch:new i.Uniform1f(pe,te.u_pitch),u_rotate_symbol:new i.Uniform1i(pe,te.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(pe,te.u_aspect_ratio),u_fade_change:new i.Uniform1f(pe,te.u_fade_change),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(pe,te.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(pe,te.u_coord_matrix),u_is_text:new i.Uniform1i(pe,te.u_is_text),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_texture:new i.Uniform1i(pe,te.u_texture),u_gamma_scale:new i.Uniform1f(pe,te.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(pe,te.u_is_halo)}},Xc=function(pe,te){return{u_is_size_zoom_constant:new i.Uniform1i(pe,te.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(pe,te.u_is_size_feature_constant),u_size_t:new i.Uniform1f(pe,te.u_size_t),u_size:new i.Uniform1f(pe,te.u_size),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pitch:new i.Uniform1f(pe,te.u_pitch),u_rotate_symbol:new i.Uniform1i(pe,te.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(pe,te.u_aspect_ratio),u_fade_change:new i.Uniform1f(pe,te.u_fade_change),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(pe,te.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(pe,te.u_coord_matrix),u_is_text:new i.Uniform1i(pe,te.u_is_text),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_texsize_icon:new i.Uniform2f(pe,te.u_texsize_icon),u_texture:new i.Uniform1i(pe,te.u_texture),u_texture_icon:new i.Uniform1i(pe,te.u_texture_icon),u_gamma_scale:new i.Uniform1f(pe,te.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(pe,te.u_is_halo)}},Vf=function(pe,te,me,se,ye,He,Qe,pt,kt,$t){var tr=ye.transform;return{u_is_size_zoom_constant:+(pe==="constant"||pe==="source"),u_is_size_feature_constant:+(pe==="constant"||pe==="camera"),u_size_t:te?te.uSizeT:0,u_size:te?te.uSize:0,u_camera_to_center_distance:tr.cameraToCenterDistance,u_pitch:tr.pitch/360*2*Math.PI,u_rotate_symbol:+me,u_aspect_ratio:tr.width/tr.height,u_fade_change:ye.options.fadeDuration?ye.symbolFadeChange:1,u_matrix:He,u_label_plane_matrix:Qe,u_coord_matrix:pt,u_is_text:+kt,u_pitch_with_map:+se,u_texsize:$t,u_texture:0}},_d=function(pe,te,me,se,ye,He,Qe,pt,kt,$t,tr){var cr=ye.transform;return i.extend(Vf(pe,te,me,se,ye,He,Qe,pt,kt,$t),{u_gamma_scale:se?Math.cos(cr._pitch)*cr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+tr})},Ph=function(pe,te,me,se,ye,He,Qe,pt,kt,$t){return i.extend(_d(pe,te,me,se,ye,He,Qe,pt,!0,kt,!0),{u_texsize_icon:$t,u_texture_icon:1})},jf=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_opacity:new i.Uniform1f(pe,te.u_opacity),u_color:new i.UniformColor(pe,te.u_color)}},Gf=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_opacity:new i.Uniform1f(pe,te.u_opacity),u_image:new i.Uniform1i(pe,te.u_image),u_pattern_tl_a:new i.Uniform2f(pe,te.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(pe,te.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(pe,te.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(pe,te.u_pattern_br_b),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_mix:new i.Uniform1f(pe,te.u_mix),u_pattern_size_a:new i.Uniform2f(pe,te.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(pe,te.u_pattern_size_b),u_scale_a:new i.Uniform1f(pe,te.u_scale_a),u_scale_b:new i.Uniform1f(pe,te.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(pe,te.u_tile_units_to_pixels)}},Iu=function(pe,te,me){return{u_matrix:pe,u_opacity:te,u_color:me}},Wf=function(pe,te,me,se,ye,He){return i.extend(Au(se,He,me,ye),{u_matrix:pe,u_opacity:te})},Ru={fillExtrusion:Dd,fillExtrusionPattern:Lo,fill:au,fillPattern:ic,fillOutline:Eu,fillOutlinePattern:xl,circle:f0,collisionBox:h0,collisionCircle:v0,debug:Vc,clippingMask:Qs,heatmap:Iv,heatmapTexture:Uf,hillshade:Rv,hillshadePrepare:kv,line:wl,lineGradient:Pu,linePattern:Gc,lineSDF:Od,raster:lu,symbolIcon:Fd,symbolSDF:Fv,symbolTextAndIcon:Xc,background:jf,backgroundPattern:Gf},Go;function Ul(pe,te,me,se,ye,He,Qe){for(var pt=pe.context,kt=pt.gl,$t=pe.useProgram("collisionBox"),tr=[],cr=0,ur=0,Br=0;Br0){var Yn=i.create(),ra=en;i.mul(Yn,Yr.placementInvProjMatrix,pe.transform.glCoordMatrix),i.mul(Yn,Yn,Yr.placementViewportMatrix),tr.push({circleArray:Vn,circleOffset:ur,transform:ra,invTransform:Yn}),cr+=Vn.length/4,ur=cr}mn&&$t.draw(pt,kt.LINES,dr.disabled,Qt.disabled,pe.colorModeForRenderPass(),_t.disabled,Ah(en,pe.transform,Kr),me.id,mn.layoutVertexBuffer,mn.indexBuffer,mn.segments,null,pe.transform.zoom,null,null,mn.collisionVertexBuffer)}}if(!(!Qe||!tr.length)){var na=pe.useProgram("collisionCircle"),Qn=new i.StructArrayLayout2f1f2i16;Qn.resize(cr*4),Qn._trim();for(var ia=0,da=0,wa=tr;da=0&&(Jr[Yr.associatedIconIndex]={shiftedAnchor:ti,angle:Ci})}}if(tr){Br.clear();for(var Ha=pe.icon.placedSymbolArray,mi=0;mi0){var Qe=i.browser.now(),pt=(Qe-pe.timeAdded)/He,kt=te?(Qe-te.timeAdded)/He:-1,$t=me.getSource(),tr=ye.coveringZoomLevel({tileSize:$t.tileSize,roundZoom:$t.roundZoom}),cr=!te||Math.abs(te.tileID.overscaledZ-tr)>Math.abs(pe.tileID.overscaledZ-tr),ur=cr&&pe.refreshedUponExpiration?1:i.clamp(cr?pt:1-kt,0,1);return pe.refreshedUponExpiration&&pt>=1&&(pe.refreshedUponExpiration=!1),te?{opacity:1,mix:1-ur}:{opacity:ur,mix:0}}else return{opacity:1,mix:0}}function uc(pe,te,me){var se=me.paint.get("background-color"),ye=me.paint.get("background-opacity");if(ye!==0){var He=pe.context,Qe=He.gl,pt=pe.transform,kt=pt.tileSize,$t=me.paint.get("background-pattern");if(!pe.isPatternMissing($t)){var tr=!$t&&se.a===1&&ye===1&&pe.opaquePassEnabledForLayer()?"opaque":"translucent";if(pe.renderPass===tr){var cr=Qt.disabled,ur=pe.depthModeForSublayer(0,tr==="opaque"?dr.ReadWrite:dr.ReadOnly),Br=pe.colorModeForRenderPass(),Jr=pe.useProgram($t?"backgroundPattern":"background"),Kr=pt.coveringTiles({tileSize:kt});$t&&(He.activeTexture.set(Qe.TEXTURE0),pe.imageManager.bind(pe.context));for(var Yr=me.getCrossfadeParameters(),en=0,mn=Kr;en "+me.overscaledZ);var en=Yr+" "+Br+"kb";lr(pe,en),Qe.draw(se,ye.TRIANGLES,pt,kt,ht.alphaBlended,_t.disabled,ts(He,i.Color.transparent,Kr),tr,pe.debugBuffer,pe.quadTriangleIndexBuffer,pe.debugSegments)}function lr(pe,te){pe.initDebugOverlayCanvas();var me=pe.debugOverlayCanvas,se=pe.context.gl,ye=pe.debugOverlayCanvas.getContext("2d");ye.clearRect(0,0,me.width,me.height),ye.shadowColor="white",ye.shadowBlur=2,ye.lineWidth=1.5,ye.strokeStyle="white",ye.textBaseline="top",ye.font="bold 36px Open Sans, sans-serif",ye.fillText(te,5,5),ye.strokeText(te,5,5),pe.debugOverlayTexture.update(me),pe.debugOverlayTexture.bind(se.LINEAR,se.CLAMP_TO_EDGE)}function Er(pe,te,me){var se=pe.context,ye=me.implementation;if(pe.renderPass==="offscreen"){var He=ye.prerender;He&&(pe.setCustomLayerDefaults(),se.setColorMode(pe.colorModeForRenderPass()),He.call(ye,se.gl,pe.transform.customLayerMatrix()),se.setDirty(),pe.setBaseState())}else if(pe.renderPass==="translucent"){pe.setCustomLayerDefaults(),se.setColorMode(pe.colorModeForRenderPass()),se.setStencilMode(Qt.disabled);var Qe=ye.renderingMode==="3d"?new dr(pe.context.gl.LEQUAL,dr.ReadWrite,pe.depthRangeFor3D):pe.depthModeForSublayer(0,dr.ReadOnly);se.setDepthMode(Qe),ye.render(se.gl,pe.transform.customLayerMatrix()),se.setDirty(),pe.setBaseState(),se.bindFramebuffer.set(null)}}var _r={symbol:zd,circle:zv,heatmap:ku,line:Bd,fill:uu,"fill-extrusion":Ih,hillshade:Kf,raster:Jf,background:uc,debug:yr,custom:Er},jr=function(te,me){this.context=new Ft(te),this.transform=me,this._tileTextures={},this.setup(),this.numSublayers=Wt.maxUnderzooming+Wt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new xa,this.gpuTimers={}};jr.prototype.resize=function(te,me){if(this.width=te*i.browser.devicePixelRatio,this.height=me*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var se=0,ye=this.style._order;se256&&this.clearStencil(),se.setColorMode(ht.disabled),se.setDepthMode(dr.disabled);var He=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Qe=0,pt=me;Qe256&&this.clearStencil();var te=this.nextStencilID++,me=this.context.gl;return new Qt({func:me.NOTEQUAL,mask:255},te,255,me.KEEP,me.KEEP,me.REPLACE)},jr.prototype.stencilModeForClipping=function(te){var me=this.context.gl;return new Qt({func:me.EQUAL,mask:255},this._tileClippingMaskIDs[te.key],0,me.KEEP,me.KEEP,me.REPLACE)},jr.prototype.stencilConfigForOverlap=function(te){var me,se=this.context.gl,ye=te.sort(function($t,tr){return tr.overscaledZ-$t.overscaledZ}),He=ye[ye.length-1].overscaledZ,Qe=ye[0].overscaledZ-He+1;if(Qe>1){this.currentStencilSource=void 0,this.nextStencilID+Qe>256&&this.clearStencil();for(var pt={},kt=0;kt=0;this.currentLayer--){var Yn=this.style._layers[ye[this.currentLayer]],ra=He[Yn.source],na=kt[Yn.source];this._renderTileClippingMasks(Yn,na),this.renderLayer(this,ra,Yn,na)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?me.pop():null},jr.prototype.isPatternMissing=function(te){if(!te)return!1;if(!te.from||!te.to)return!0;var me=this.imageManager.getPattern(te.from.toString()),se=this.imageManager.getPattern(te.to.toString());return!me||!se},jr.prototype.useProgram=function(te,me){this.cache=this.cache||{};var se=""+te+(me?me.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[se]||(this.cache[se]=new Mh(this.context,te,Ev[te],me,Ru[te],this._showOverdrawInspector)),this.cache[se]},jr.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()},jr.prototype.setBaseState=function(){var te=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(te.FUNC_ADD)},jr.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var te=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,te.RGBA)}},jr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var sn=function(te,me){this.points=te,this.planes=me};sn.fromInvProjectionMatrix=function(te,me,se){var ye=[[-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]],He=Math.pow(2,se),Qe=ye.map(function($t){return i.transformMat4([],$t,te)}).map(function($t){return i.scale$1([],$t,1/$t[3]/me*He)}),pt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],kt=pt.map(function($t){var tr=i.sub([],Qe[$t[0]],Qe[$t[1]]),cr=i.sub([],Qe[$t[2]],Qe[$t[1]]),ur=i.normalize([],i.cross([],tr,cr)),Br=-i.dot(ur,Qe[$t[1]]);return ur.concat(Br)});return new sn(Qe,kt)};var Mn=function(te,me){this.min=te,this.max=me,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Mn.prototype.quadrant=function(te){for(var me=[te%2===0,te<2],se=i.clone$2(this.min),ye=i.clone$2(this.max),He=0;He=0;if(Qe===0)return 0;Qe!==me.length&&(se=!1)}if(se)return 2;for(var kt=0;kt<3;kt++){for(var $t=Number.MAX_VALUE,tr=-Number.MAX_VALUE,cr=0;crthis.max[kt]-this.min[kt])return 0}return 1};var Nn=function(te,me,se,ye){if(te===void 0&&(te=0),me===void 0&&(me=0),se===void 0&&(se=0),ye===void 0&&(ye=0),isNaN(te)||te<0||isNaN(me)||me<0||isNaN(se)||se<0||isNaN(ye)||ye<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=te,this.bottom=me,this.left=se,this.right=ye};Nn.prototype.interpolate=function(te,me,se){return me.top!=null&&te.top!=null&&(this.top=i.number(te.top,me.top,se)),me.bottom!=null&&te.bottom!=null&&(this.bottom=i.number(te.bottom,me.bottom,se)),me.left!=null&&te.left!=null&&(this.left=i.number(te.left,me.left,se)),me.right!=null&&te.right!=null&&(this.right=i.number(te.right,me.right,se)),this},Nn.prototype.getCenter=function(te,me){var se=i.clamp((this.left+te-this.right)/2,0,te),ye=i.clamp((this.top+me-this.bottom)/2,0,me);return new i.Point(se,ye)},Nn.prototype.equals=function(te){return this.top===te.top&&this.bottom===te.bottom&&this.left===te.left&&this.right===te.right},Nn.prototype.clone=function(){return new Nn(this.top,this.bottom,this.left,this.right)},Nn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Un=function(te,me,se,ye,He){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=He===void 0?!0:He,this._minZoom=te||0,this._maxZoom=me||22,this._minPitch=se??0,this._maxPitch=ye??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Nn,this._posMatrixCache={},this._alignedPosMatrixCache={}},aa={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}};Un.prototype.clone=function(){var te=new Un(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return te.tileSize=this.tileSize,te.latRange=this.latRange,te.width=this.width,te.height=this.height,te._center=this._center,te.zoom=this.zoom,te.angle=this.angle,te._fov=this._fov,te._pitch=this._pitch,te._unmodified=this._unmodified,te._edgeInsets=this._edgeInsets.clone(),te._calcMatrices(),te},aa.minZoom.get=function(){return this._minZoom},aa.minZoom.set=function(pe){this._minZoom!==pe&&(this._minZoom=pe,this.zoom=Math.max(this.zoom,pe))},aa.maxZoom.get=function(){return this._maxZoom},aa.maxZoom.set=function(pe){this._maxZoom!==pe&&(this._maxZoom=pe,this.zoom=Math.min(this.zoom,pe))},aa.minPitch.get=function(){return this._minPitch},aa.minPitch.set=function(pe){this._minPitch!==pe&&(this._minPitch=pe,this.pitch=Math.max(this.pitch,pe))},aa.maxPitch.get=function(){return this._maxPitch},aa.maxPitch.set=function(pe){this._maxPitch!==pe&&(this._maxPitch=pe,this.pitch=Math.min(this.pitch,pe))},aa.renderWorldCopies.get=function(){return this._renderWorldCopies},aa.renderWorldCopies.set=function(pe){pe===void 0?pe=!0:pe===null&&(pe=!1),this._renderWorldCopies=pe},aa.worldSize.get=function(){return this.tileSize*this.scale},aa.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},aa.size.get=function(){return new i.Point(this.width,this.height)},aa.bearing.get=function(){return-this.angle/Math.PI*180},aa.bearing.set=function(pe){var te=-i.wrap(pe,-180,180)*Math.PI/180;this.angle!==te&&(this._unmodified=!1,this.angle=te,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},aa.pitch.get=function(){return this._pitch/Math.PI*180},aa.pitch.set=function(pe){var te=i.clamp(pe,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==te&&(this._unmodified=!1,this._pitch=te,this._calcMatrices())},aa.fov.get=function(){return this._fov/Math.PI*180},aa.fov.set=function(pe){pe=Math.max(.01,Math.min(60,pe)),this._fov!==pe&&(this._unmodified=!1,this._fov=pe/180*Math.PI,this._calcMatrices())},aa.zoom.get=function(){return this._zoom},aa.zoom.set=function(pe){var te=Math.min(Math.max(pe,this.minZoom),this.maxZoom);this._zoom!==te&&(this._unmodified=!1,this._zoom=te,this.scale=this.zoomScale(te),this.tileZoom=Math.floor(te),this.zoomFraction=te-this.tileZoom,this._constrain(),this._calcMatrices())},aa.center.get=function(){return this._center},aa.center.set=function(pe){pe.lat===this._center.lat&&pe.lng===this._center.lng||(this._unmodified=!1,this._center=pe,this._constrain(),this._calcMatrices())},aa.padding.get=function(){return this._edgeInsets.toJSON()},aa.padding.set=function(pe){this._edgeInsets.equals(pe)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,pe,1),this._calcMatrices())},aa.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Un.prototype.isPaddingEqual=function(te){return this._edgeInsets.equals(te)},Un.prototype.interpolatePadding=function(te,me,se){this._unmodified=!1,this._edgeInsets.interpolate(te,me,se),this._constrain(),this._calcMatrices()},Un.prototype.coveringZoomLevel=function(te){var me=(te.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/te.tileSize));return Math.max(0,me)},Un.prototype.getVisibleUnwrappedCoordinates=function(te){var me=[new i.UnwrappedTileID(0,te)];if(this._renderWorldCopies)for(var se=this.pointCoordinate(new i.Point(0,0)),ye=this.pointCoordinate(new i.Point(this.width,0)),He=this.pointCoordinate(new i.Point(this.width,this.height)),Qe=this.pointCoordinate(new i.Point(0,this.height)),pt=Math.floor(Math.min(se.x,ye.x,He.x,Qe.x)),kt=Math.floor(Math.max(se.x,ye.x,He.x,Qe.x)),$t=1,tr=pt-$t;tr<=kt+$t;tr++)tr!==0&&me.push(new i.UnwrappedTileID(tr,te));return me},Un.prototype.coveringTiles=function(te){var me=this.coveringZoomLevel(te),se=me;if(te.minzoom!==void 0&&mete.maxzoom&&(me=te.maxzoom);var ye=i.MercatorCoordinate.fromLngLat(this.center),He=Math.pow(2,me),Qe=[He*ye.x,He*ye.y,0],pt=sn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,me),kt=te.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(kt=me);var $t=3,tr=function(Ea){return{aabb:new Mn([Ea*He,0,0],[(Ea+1)*He,He,0]),zoom:0,x:0,y:0,wrap:Ea,fullyVisible:!1}},cr=[],ur=[],Br=me,Jr=te.reparseOverscaled?se:me;if(this._renderWorldCopies)for(var Kr=1;Kr<=3;Kr++)cr.push(tr(-Kr)),cr.push(tr(Kr));for(cr.push(tr(0));cr.length>0;){var Yr=cr.pop(),en=Yr.x,mn=Yr.y,Vn=Yr.fullyVisible;if(!Vn){var Yn=Yr.aabb.intersects(pt);if(Yn===0)continue;Vn=Yn===2}var ra=Yr.aabb.distanceX(Qe),na=Yr.aabb.distanceY(Qe),Qn=Math.max(Math.abs(ra),Math.abs(na)),ia=$t+(1<ia&&Yr.zoom>=kt){ur.push({tileID:new i.OverscaledTileID(Yr.zoom===Br?Jr:Yr.zoom,Yr.wrap,Yr.zoom,en,mn),distanceSq:i.sqrLen([Qe[0]-.5-en,Qe[1]-.5-mn])});continue}for(var da=0;da<4;da++){var wa=(en<<1)+da%2,_a=(mn<<1)+(da>>1);cr.push({aabb:Yr.aabb.quadrant(da),zoom:Yr.zoom+1,x:wa,y:_a,wrap:Yr.wrap,fullyVisible:Vn})}}return ur.sort(function(Ea,ti){return Ea.distanceSq-ti.distanceSq}).map(function(Ea){return Ea.tileID})},Un.prototype.resize=function(te,me){this.width=te,this.height=me,this.pixelsToGLUnits=[2/te,-2/me],this._constrain(),this._calcMatrices()},aa.unmodified.get=function(){return this._unmodified},Un.prototype.zoomScale=function(te){return Math.pow(2,te)},Un.prototype.scaleZoom=function(te){return Math.log(te)/Math.LN2},Un.prototype.project=function(te){var me=i.clamp(te.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(te.lng)*this.worldSize,i.mercatorYfromLat(me)*this.worldSize)},Un.prototype.unproject=function(te){return new i.MercatorCoordinate(te.x/this.worldSize,te.y/this.worldSize).toLngLat()},aa.point.get=function(){return this.project(this.center)},Un.prototype.setLocationAtPoint=function(te,me){var se=this.pointCoordinate(me),ye=this.pointCoordinate(this.centerPoint),He=this.locationCoordinate(te),Qe=new i.MercatorCoordinate(He.x-(se.x-ye.x),He.y-(se.y-ye.y));this.center=this.coordinateLocation(Qe),this._renderWorldCopies&&(this.center=this.center.wrap())},Un.prototype.locationPoint=function(te){return this.coordinatePoint(this.locationCoordinate(te))},Un.prototype.pointLocation=function(te){return this.coordinateLocation(this.pointCoordinate(te))},Un.prototype.locationCoordinate=function(te){return i.MercatorCoordinate.fromLngLat(te)},Un.prototype.coordinateLocation=function(te){return te.toLngLat()},Un.prototype.pointCoordinate=function(te){var me=0,se=[te.x,te.y,0,1],ye=[te.x,te.y,1,1];i.transformMat4(se,se,this.pixelMatrixInverse),i.transformMat4(ye,ye,this.pixelMatrixInverse);var He=se[3],Qe=ye[3],pt=se[0]/He,kt=ye[0]/Qe,$t=se[1]/He,tr=ye[1]/Qe,cr=se[2]/He,ur=ye[2]/Qe,Br=cr===ur?0:(me-cr)/(ur-cr);return new i.MercatorCoordinate(i.number(pt,kt,Br)/this.worldSize,i.number($t,tr,Br)/this.worldSize)},Un.prototype.coordinatePoint=function(te){var me=[te.x*this.worldSize,te.y*this.worldSize,0,1];return i.transformMat4(me,me,this.pixelMatrix),new i.Point(me[0]/me[3],me[1]/me[3])},Un.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Un.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Un.prototype.setMaxBounds=function(te){te?(this.lngRange=[te.getWest(),te.getEast()],this.latRange=[te.getSouth(),te.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Un.prototype.calculatePosMatrix=function(te,me){me===void 0&&(me=!1);var se=te.key,ye=me?this._alignedPosMatrixCache:this._posMatrixCache;if(ye[se])return ye[se];var He=te.canonical,Qe=this.worldSize/this.zoomScale(He.z),pt=He.x+Math.pow(2,He.z)*te.wrap,kt=i.identity(new Float64Array(16));return i.translate(kt,kt,[pt*Qe,He.y*Qe,0]),i.scale(kt,kt,[Qe/i.EXTENT,Qe/i.EXTENT,1]),i.multiply(kt,me?this.alignedProjMatrix:this.projMatrix,kt),ye[se]=new Float32Array(kt),ye[se]},Un.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Un.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var te=-90,me=90,se=-180,ye=180,He,Qe,pt,kt,$t=this.size,tr=this._unmodified;if(this.latRange){var cr=this.latRange;te=i.mercatorYfromLat(cr[1])*this.worldSize,me=i.mercatorYfromLat(cr[0])*this.worldSize,He=me-te<$t.y?$t.y/(me-te):0}if(this.lngRange){var ur=this.lngRange;se=i.mercatorXfromLng(ur[0])*this.worldSize,ye=i.mercatorXfromLng(ur[1])*this.worldSize,Qe=ye-se<$t.x?$t.x/(ye-se):0}var Br=this.point,Jr=Math.max(Qe||0,He||0);if(Jr){this.center=this.unproject(new i.Point(Qe?(ye+se)/2:Br.x,He?(me+te)/2:Br.y)),this.zoom+=this.scaleZoom(Jr),this._unmodified=tr,this._constraining=!1;return}if(this.latRange){var Kr=Br.y,Yr=$t.y/2;Kr-Yrme&&(kt=me-Yr)}if(this.lngRange){var en=Br.x,mn=$t.x/2;en-mnye&&(pt=ye-mn)}(pt!==void 0||kt!==void 0)&&(this.center=this.unproject(new i.Point(pt!==void 0?pt:Br.x,kt!==void 0?kt:Br.y))),this._unmodified=tr,this._constraining=!1}},Un.prototype._calcMatrices=function(){if(this.height){var te=this._fov/2,me=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(te)*this.height;var se=Math.PI/2+this._pitch,ye=this._fov*(.5+me.y/this.height),He=Math.sin(ye)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-se-ye,.01,Math.PI-.01)),Qe=this.point,pt=Qe.x,kt=Qe.y,$t=Math.cos(Math.PI/2-this._pitch)*He+this.cameraToCenterDistance,tr=$t*1.01,cr=this.height/50,ur=new Float64Array(16);i.perspective(ur,this._fov,this.width/this.height,cr,tr),ur[8]=-me.x*2/this.width,ur[9]=me.y*2/this.height,i.scale(ur,ur,[1,-1,1]),i.translate(ur,ur,[0,0,-this.cameraToCenterDistance]),i.rotateX(ur,ur,this._pitch),i.rotateZ(ur,ur,this.angle),i.translate(ur,ur,[-pt,-kt,0]),this.mercatorMatrix=i.scale([],ur,[this.worldSize,this.worldSize,this.worldSize]),i.scale(ur,ur,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=ur,this.invProjMatrix=i.invert([],this.projMatrix);var Br=this.width%2/2,Jr=this.height%2/2,Kr=Math.cos(this.angle),Yr=Math.sin(this.angle),en=pt-Math.round(pt)+Kr*Br+Yr*Jr,mn=kt-Math.round(kt)+Kr*Jr+Yr*Br,Vn=new Float64Array(ur);if(i.translate(Vn,Vn,[en>.5?en-1:en,mn>.5?mn-1:mn,0]),this.alignedProjMatrix=Vn,ur=i.create(),i.scale(ur,ur,[this.width/2,-this.height/2,1]),i.translate(ur,ur,[1,-1,0]),this.labelPlaneMatrix=ur,ur=i.create(),i.scale(ur,ur,[1,-1,1]),i.translate(ur,ur,[-1,-1,0]),i.scale(ur,ur,[2/this.width,2/this.height,1]),this.glCoordMatrix=ur,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),ur=i.invert(new Float64Array(16),this.pixelMatrix),!ur)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ur,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Un.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var te=this.pointCoordinate(new i.Point(0,0)),me=[te.x*this.worldSize,te.y*this.worldSize,0,1],se=i.transformMat4(me,me,this.pixelMatrix);return se[3]/this.cameraToCenterDistance},Un.prototype.getCameraPoint=function(){var te=this._pitch,me=Math.tan(te)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,me))},Un.prototype.getCameraQueryGeometry=function(te){var me=this.getCameraPoint();if(te.length===1)return[te[0],me];for(var se=me.x,ye=me.y,He=me.x,Qe=me.y,pt=0,kt=te;pt=3&&!te.some(function(se){return isNaN(se)})){var me=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(te[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+te[2],+te[1]],zoom:+te[0],bearing:me,pitch:+(te[4]||0)}),!0}return!1},Xa.prototype._updateHashUnthrottled=function(){var te=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,te)}catch{}};var Ja={linearity:.3,easing:i.bezier(0,0,.3,1)},ri=i.extend({deceleration:2500,maxSpeed:1400},Ja),xi=i.extend({deceleration:20,maxSpeed:1400},Ja),Xi=i.extend({deceleration:1e3,maxSpeed:360},Ja),Io=i.extend({deceleration:1e3,maxSpeed:90},Ja),ve=function(te){this._map=te,this.clear()};ve.prototype.clear=function(){this._inertiaBuffer=[]},ve.prototype.record=function(te){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:te})},ve.prototype._drainInertiaBuffer=function(){for(var te=this._inertiaBuffer,me=i.browser.now(),se=160;te.length>0&&me-te[0].time>se;)te.shift()},ve.prototype._onMoveEnd=function(te){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var me={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},se=0,ye=this._inertiaBuffer;se=this._clickTolerance||this._map.fire(new it(te.type,this._map,te))},Dt.prototype.dblclick=function(te){return this._firePreventable(new it(te.type,this._map,te))},Dt.prototype.mouseover=function(te){this._map.fire(new it(te.type,this._map,te))},Dt.prototype.mouseout=function(te){this._map.fire(new it(te.type,this._map,te))},Dt.prototype.touchstart=function(te){return this._firePreventable(new ct(te.type,this._map,te))},Dt.prototype.touchmove=function(te){this._map.fire(new ct(te.type,this._map,te))},Dt.prototype.touchend=function(te){this._map.fire(new ct(te.type,this._map,te))},Dt.prototype.touchcancel=function(te){this._map.fire(new ct(te.type,this._map,te))},Dt.prototype._firePreventable=function(te){if(this._map.fire(te),te.defaultPrevented)return{}},Dt.prototype.isEnabled=function(){return!0},Dt.prototype.isActive=function(){return!1},Dt.prototype.enable=function(){},Dt.prototype.disable=function(){};var Et=function(te){this._map=te};Et.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Et.prototype.mousemove=function(te){this._map.fire(new it(te.type,this._map,te))},Et.prototype.mousedown=function(){this._delayContextMenu=!0},Et.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new it("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Et.prototype.contextmenu=function(te){this._delayContextMenu?this._contextMenuEvent=te:this._map.fire(new it(te.type,this._map,te)),this._map.listens("contextmenu")&&te.preventDefault()},Et.prototype.isEnabled=function(){return!0},Et.prototype.isActive=function(){return!1},Et.prototype.enable=function(){},Et.prototype.disable=function(){};var Yt=function(te,me){this._map=te,this._el=te.getCanvasContainer(),this._container=te.getContainer(),this._clickTolerance=me.clickTolerance||1};Yt.prototype.isEnabled=function(){return!!this._enabled},Yt.prototype.isActive=function(){return!!this._active},Yt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Yt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yt.prototype.mousedown=function(te,me){this.isEnabled()&&te.shiftKey&&te.button===0&&(w.disableDrag(),this._startPos=this._lastPos=me,this._active=!0)},Yt.prototype.mousemoveWindow=function(te,me){if(this._active){var se=me;if(!(this._lastPos.equals(se)||!this._box&&se.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=te.timeStamp),se.length===this.numTouches&&(this.centroid=ar(me),this.touches=Zt(se,me)))},dn.prototype.touchmove=function(te,me,se){if(!(this.aborted||!this.centroid)){var ye=Zt(se,me);for(var He in this.touches){var Qe=this.touches[He],pt=ye[He];(!pt||pt.dist(Qe)>tn)&&(this.aborted=!0)}}},dn.prototype.touchend=function(te,me,se){if((!this.centroid||te.timeStamp-this.startTime>kr)&&(this.aborted=!0),se.length===0){var ye=!this.aborted&&this.centroid;if(this.reset(),ye)return ye}};var Or=function(te){this.singleTap=new dn(te),this.numTaps=te.numTaps,this.reset()};Or.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Or.prototype.touchstart=function(te,me,se){this.singleTap.touchstart(te,me,se)},Or.prototype.touchmove=function(te,me,se){this.singleTap.touchmove(te,me,se)},Or.prototype.touchend=function(te,me,se){var ye=this.singleTap.touchend(te,me,se);if(ye){var He=te.timeStamp-this.lastTime0&&(this._active=!0);var ye=Zt(se,me),He=new i.Point(0,0),Qe=new i.Point(0,0),pt=0;for(var kt in ye){var $t=ye[kt],tr=this._touches[kt];tr&&(He._add($t),Qe._add($t.sub(tr)),pt++,ye[kt]=$t)}if(this._touches=ye,!(ptMath.abs(pe.x)}var Ua=100,bi=function(pe){function te(){pe.apply(this,arguments)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.reset=function(){pe.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},te.prototype._start=function(se){this._lastPoints=se,si(se[0].sub(se[1]))&&(this._valid=!1)},te.prototype._move=function(se,ye,He){var Qe=se[0].sub(this._lastPoints[0]),pt=se[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Qe,pt,He.timeStamp),!!this._valid){this._lastPoints=se,this._active=!0;var kt=(Qe.y+pt.y)/2,$t=-.5;return{pitchDelta:kt*$t}}},te.prototype.gestureBeginsVertically=function(se,ye,He){if(this._valid!==void 0)return this._valid;var Qe=2,pt=se.mag()>=Qe,kt=ye.mag()>=Qe;if(!(!pt&&!kt)){if(!pt||!kt)return this._firstMove===void 0&&(this._firstMove=He),He-this._firstMove0==ye.y>0;return si(se)&&si(ye)&&$t}},te}(Ca),so={panStep:100,bearingStep:15,pitchStep:10},Fi=function(){var te=so;this._panStep=te.panStep,this._bearingStep=te.bearingStep,this._pitchStep=te.pitchStep,this._rotationDisabled=!1};Fi.prototype.reset=function(){this._active=!1},Fi.prototype.keydown=function(te){var me=this;if(!(te.altKey||te.ctrlKey||te.metaKey)){var se=0,ye=0,He=0,Qe=0,pt=0;switch(te.keyCode){case 61:case 107:case 171:case 187:se=1;break;case 189:case 109:case 173:se=-1;break;case 37:te.shiftKey?ye=-1:(te.preventDefault(),Qe=-1);break;case 39:te.shiftKey?ye=1:(te.preventDefault(),Qe=1);break;case 38:te.shiftKey?He=1:(te.preventDefault(),pt=-1);break;case 40:te.shiftKey?He=-1:(te.preventDefault(),pt=1);break;default:return}return this._rotationDisabled&&(ye=0,He=0),{cameraAnimation:function(kt){var $t=kt.getZoom();kt.easeTo({duration:300,easeId:"keyboardHandler",easing:rs,zoom:se?Math.round($t)+se*(te.shiftKey?2:1):$t,bearing:kt.getBearing()+ye*me._bearingStep,pitch:kt.getPitch()+He*me._pitchStep,offset:[-Qe*me._panStep,-pt*me._panStep],center:kt.getCenter()},{originalEvent:te})}}}},Fi.prototype.enable=function(){this._enabled=!0},Fi.prototype.disable=function(){this._enabled=!1,this.reset()},Fi.prototype.isEnabled=function(){return this._enabled},Fi.prototype.isActive=function(){return this._active},Fi.prototype.disableRotation=function(){this._rotationDisabled=!0},Fi.prototype.enableRotation=function(){this._rotationDisabled=!1};function rs(pe){return pe*(2-pe)}var ns=4.000244140625,us=1/100,lo=1/450,ws=2,ba=function(te,me){this._map=te,this._el=te.getCanvasContainer(),this._handler=me,this._delta=0,this._defaultZoomRate=us,this._wheelZoomRate=lo,i.bindAll(["_onTimeout"],this)};ba.prototype.setZoomRate=function(te){this._defaultZoomRate=te},ba.prototype.setWheelZoomRate=function(te){this._wheelZoomRate=te},ba.prototype.isEnabled=function(){return!!this._enabled},ba.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},ba.prototype.isZooming=function(){return!!this._zooming},ba.prototype.enable=function(te){this.isEnabled()||(this._enabled=!0,this._aroundCenter=te&&te.around==="center")},ba.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},ba.prototype.wheel=function(te){if(this.isEnabled()){var me=te.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?te.deltaY*40:te.deltaY,se=i.browser.now(),ye=se-(this._lastWheelEventTime||0);this._lastWheelEventTime=se,me!==0&&me%ns===0?this._type="wheel":me!==0&&Math.abs(me)<4?this._type="trackpad":ye>400?(this._type=null,this._lastValue=me,this._timeout=setTimeout(this._onTimeout,40,te)):this._type||(this._type=Math.abs(ye*me)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,me+=this._lastValue)),te.shiftKey&&me&&(me=me/4),this._type&&(this._lastWheelEvent=te,this._delta-=me,this._active||this._start(te)),te.preventDefault()}},ba.prototype._onTimeout=function(te){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(te)},ba.prototype._start=function(te){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 me=w.mousePos(this._el,te);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(me)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ba.prototype.renderFrame=function(){var te=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var me=this._map.transform;if(this._delta!==0){var se=this._type==="wheel"&&Math.abs(this._delta)>ns?this._wheelZoomRate:this._defaultZoomRate,ye=ws/(1+Math.exp(-Math.abs(this._delta*se)));this._delta<0&&ye!==0&&(ye=1/ye);var He=typeof this._targetZoom=="number"?me.zoomScale(this._targetZoom):me.scale;this._targetZoom=Math.min(me.maxZoom,Math.max(me.minZoom,me.scaleZoom(He*ye))),this._type==="wheel"&&(this._startZoom=me.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Qe=typeof this._targetZoom=="number"?this._targetZoom:me.zoom,pt=this._startZoom,kt=this._easing,$t=!1,tr;if(this._type==="wheel"&&pt&&kt){var cr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),ur=kt(cr);tr=i.number(pt,Qe,ur),cr<1?this._frameId||(this._frameId=!0):$t=!0}else tr=Qe,$t=!0;return this._active=!0,$t&&(this._active=!1,this._finishTimeout=setTimeout(function(){te._zooming=!1,te._handler._triggerRenderFrame(),delete te._targetZoom,delete te._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!$t,zoomDelta:tr-me.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ba.prototype._smoothOutEasing=function(te){var me=i.ease;if(this._prevEase){var se=this._prevEase,ye=(i.browser.now()-se.start)/se.duration,He=se.easing(ye+.01)-se.easing(ye),Qe=.27/Math.sqrt(He*He+1e-4)*.01,pt=Math.sqrt(.27*.27-Qe*Qe);me=i.bezier(Qe,pt,.25,1)}return this._prevEase={start:i.browser.now(),duration:te,easing:me},me},ba.prototype.reset=function(){this._active=!1};var Ga=function(te,me){this._clickZoom=te,this._tapZoom=me};Ga.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Ga.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Ga.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Ga.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ws=function(){this.reset()};Ws.prototype.reset=function(){this._active=!1},Ws.prototype.dblclick=function(te,me){return te.preventDefault(),{cameraAnimation:function(se){se.easeTo({duration:300,zoom:se.getZoom()+(te.shiftKey?-1:1),around:se.unproject(me)},{originalEvent:te})}}},Ws.prototype.enable=function(){this._enabled=!0},Ws.prototype.disable=function(){this._enabled=!1,this.reset()},Ws.prototype.isEnabled=function(){return this._enabled},Ws.prototype.isActive=function(){return this._active};var qs=function(){this._tap=new Or({numTouches:1,numTaps:1}),this.reset()};qs.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},qs.prototype.touchstart=function(te,me,se){this._swipePoint||(this._tapTime&&te.timeStamp-this._tapTime>Ir&&this.reset(),this._tapTime?se.length>0&&(this._swipePoint=me[0],this._swipeTouch=se[0].identifier):this._tap.touchstart(te,me,se))},qs.prototype.touchmove=function(te,me,se){if(!this._tapTime)this._tap.touchmove(te,me,se);else if(this._swipePoint){if(se[0].identifier!==this._swipeTouch)return;var ye=me[0],He=ye.y-this._swipePoint.y;return this._swipePoint=ye,te.preventDefault(),this._active=!0,{zoomDelta:He/128}}},qs.prototype.touchend=function(te,me,se){if(this._tapTime)this._swipePoint&&se.length===0&&this.reset();else{var ye=this._tap.touchend(te,me,se);ye&&(this._tapTime=te.timeStamp)}},qs.prototype.touchcancel=function(){this.reset()},qs.prototype.enable=function(){this._enabled=!0},qs.prototype.disable=function(){this._enabled=!1,this.reset()},qs.prototype.isEnabled=function(){return this._enabled},qs.prototype.isActive=function(){return this._active};var cs=function(te,me,se){this._el=te,this._mousePan=me,this._touchPan=se};cs.prototype.enable=function(te){this._inertiaOptions=te||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},cs.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},cs.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},cs.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Wi=function(te,me,se){this._pitchWithRotate=te.pitchWithRotate,this._mouseRotate=me,this._mousePitch=se};Wi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Wi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Wi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Wi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Wo=function(te,me,se,ye){this._el=te,this._touchZoom=me,this._touchRotate=se,this._tapDragZoom=ye,this._rotationDisabled=!1,this._enabled=!0};Wo.prototype.enable=function(te){this._touchZoom.enable(te),this._rotationDisabled||this._touchRotate.enable(te),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Wo.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Wo.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Wo.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Wo.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Wo.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Bo=function(pe){return pe.zoom||pe.drag||pe.pitch||pe.rotate},Hl=function(pe){function te(){pe.apply(this,arguments)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te}(i.Event);function cu(pe){return pe.panDelta&&pe.panDelta.mag()||pe.zoomDelta||pe.bearingDelta||pe.pitchDelta}var bo=function(te,me){this._map=te,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ve(te),this._bearingSnap=me.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(me),i.bindAll(["handleEvent","handleWindowEvent"],this);var se=this._el;this._listeners=[[se,"touchstart",{passive:!0}],[se,"touchmove",{passive:!1}],[se,"touchend",void 0],[se,"touchcancel",void 0],[se,"mousedown",void 0],[se,"mousemove",void 0],[se,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[se,"mouseover",void 0],[se,"mouseout",void 0],[se,"dblclick",void 0],[se,"click",void 0],[se,"keydown",{capture:!1}],[se,"keyup",void 0],[se,"wheel",{passive:!1}],[se,"contextmenu",void 0],[i.window,"blur",void 0]];for(var ye=0,He=this._listeners;yept?Math.min(2,ra):Math.max(.5,ra),Ea=Math.pow(_a,1-da),ti=Qe.unproject(Vn.add(Yn.mult(da*Ea)).mult(wa));Qe.setLocationAtPoint(Qe.renderWorldCopies?ti.wrap():ti,Yr)}He._fireMoveEvents(ye)},function(da){He._afterEase(ye,da)},se),this},te.prototype._prepareEase=function(se,ye,He){He===void 0&&(He={}),this._moving=!0,!ye&&!He.moving&&this.fire(new i.Event("movestart",se)),this._zooming&&!He.zooming&&this.fire(new i.Event("zoomstart",se)),this._rotating&&!He.rotating&&this.fire(new i.Event("rotatestart",se)),this._pitching&&!He.pitching&&this.fire(new i.Event("pitchstart",se))},te.prototype._fireMoveEvents=function(se){this.fire(new i.Event("move",se)),this._zooming&&this.fire(new i.Event("zoom",se)),this._rotating&&this.fire(new i.Event("rotate",se)),this._pitching&&this.fire(new i.Event("pitch",se))},te.prototype._afterEase=function(se,ye){if(!(this._easeId&&ye&&this._easeId===ye)){delete this._easeId;var He=this._zooming,Qe=this._rotating,pt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,He&&this.fire(new i.Event("zoomend",se)),Qe&&this.fire(new i.Event("rotateend",se)),pt&&this.fire(new i.Event("pitchend",se)),this.fire(new i.Event("moveend",se))}},te.prototype.flyTo=function(se,ye){var He=this;if(!se.essential&&i.browser.prefersReducedMotion){var Qe=i.pick(se,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Qe,ye)}this.stop(),se=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},se);var pt=this.transform,kt=this.getZoom(),$t=this.getBearing(),tr=this.getPitch(),cr=this.getPadding(),ur="zoom"in se?i.clamp(+se.zoom,pt.minZoom,pt.maxZoom):kt,Br="bearing"in se?this._normalizeBearing(se.bearing,$t):$t,Jr="pitch"in se?+se.pitch:tr,Kr="padding"in se?se.padding:pt.padding,Yr=pt.zoomScale(ur-kt),en=i.Point.convert(se.offset),mn=pt.centerPoint.add(en),Vn=pt.pointLocation(mn),Yn=i.LngLat.convert(se.center||Vn);this._normalizeCenter(Yn);var ra=pt.project(Vn),na=pt.project(Yn).sub(ra),Qn=se.curve,ia=Math.max(pt.width,pt.height),da=ia/Yr,wa=na.mag();if("minZoom"in se){var _a=i.clamp(Math.min(se.minZoom,kt,ur),pt.minZoom,pt.maxZoom),Ea=ia/pt.zoomScale(_a-kt);Qn=Math.sqrt(Ea/wa*2)}var ti=Qn*Qn;function Ci(ui){var Ai=(da*da-ia*ia+(ui?-1:1)*ti*ti*wa*wa)/(2*(ui?da:ia)*ti*wa);return Math.log(Math.sqrt(Ai*Ai+1)-Ai)}function hi(ui){return(Math.exp(ui)-Math.exp(-ui))/2}function Ha(ui){return(Math.exp(ui)+Math.exp(-ui))/2}function mi(ui){return hi(ui)/Ha(ui)}var li=Ci(0),_i=function(ui){return Ha(li)/Ha(li+Qn*ui)},Pi=function(ui){return ia*((Ha(li)*mi(li+Qn*ui)-hi(li))/ti)/wa},fo=(Ci(1)-li)/Qn;if(Math.abs(wa)<1e-6||!isFinite(fo)){if(Math.abs(ia-da)<1e-6)return this.easeTo(se,ye);var Si=dase.maxDuration&&(se.duration=0),this._zooming=!0,this._rotating=$t!==Br,this._pitching=Jr!==tr,this._padding=!pt.isPaddingEqual(Kr),this._prepareEase(ye,!1),this._ease(function(ui){var Ai=ui*fo,No=1/_i(Ai);pt.zoom=ui===1?ur:kt+pt.scaleZoom(No),He._rotating&&(pt.bearing=i.number($t,Br,ui)),He._pitching&&(pt.pitch=i.number(tr,Jr,ui)),He._padding&&(pt.interpolatePadding(cr,Kr,ui),mn=pt.centerPoint.add(en));var Ts=ui===1?Yn:pt.unproject(ra.add(na.mult(Pi(Ai))).mult(No));pt.setLocationAtPoint(pt.renderWorldCopies?Ts.wrap():Ts,mn),He._fireMoveEvents(ye)},function(){return He._afterEase(ye)},se),this},te.prototype.isEasing=function(){return!!this._easeFrameId},te.prototype.stop=function(){return this._stop()},te.prototype._stop=function(se,ye){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var He=this._onEaseEnd;delete this._onEaseEnd,He.call(this,ye)}if(!se){var Qe=this.handlers;Qe&&Qe.stop(!1)}return this},te.prototype._ease=function(se,ye,He){He.animate===!1||He.duration===0?(se(1),ye()):(this._easeStart=i.browser.now(),this._easeOptions=He,this._onEaseFrame=se,this._onEaseEnd=ye,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},te.prototype._renderFrameCallback=function(){var se=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(se)),se<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},te.prototype._normalizeBearing=function(se,ye){se=i.wrap(se,-180,180);var He=Math.abs(se-ye);return Math.abs(se-360-ye)180?-360:He<-180?360:0}},te}(i.Evented),wi=function(te){te===void 0&&(te={}),this.options=te,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};wi.prototype.getDefaultPosition=function(){return"bottom-right"},wi.prototype.onAdd=function(te){var me=this.options&&this.options.compact;return this._map=te,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),me&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),me===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},wi.prototype.onRemove=function(){w.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},wi.prototype._setElementTitle=function(te,me){var se=this._map._getUIString("AttributionControl."+me);te.title=se,te.setAttribute("aria-label",se)},wi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},wi.prototype._updateEditLink=function(){var te=this._editLink;te||(te=this._editLink=this._container.querySelector(".mapbox-improve-map"));var me=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(te){var se=me.reduce(function(ye,He,Qe){return He.value&&(ye+=He.key+"="+He.value+(Qe=0)return!1;return!0});var pt=te.join(" | ");pt!==this._attribHTML&&(this._attribHTML=pt,te.length?(this._innerContainer.innerHTML=pt,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},wi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var wo=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};wo.prototype.onAdd=function(te){this._map=te,this._container=w.create("div","mapboxgl-ctrl");var me=w.create("a","mapboxgl-ctrl-logo");return me.target="_blank",me.rel="noopener nofollow",me.href="https://www.mapbox.com/",me.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),me.setAttribute("rel","noopener nofollow"),this._container.appendChild(me),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},wo.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},wo.prototype.getDefaultPosition=function(){return"bottom-left"},wo.prototype._updateLogo=function(te){(!te||te.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},wo.prototype._logoRequired=function(){if(this._map.style){var te=this._map.style.sourceCaches;for(var me in te){var se=te[me].getSource();if(se.mapbox_logo)return!0}return!1}},wo.prototype._updateCompact=function(){var te=this._container.children;if(te.length){var me=te[0];this._map.getCanvasContainer().offsetWidth<250?me.classList.add("mapboxgl-compact"):me.classList.remove("mapboxgl-compact")}};var y0=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};y0.prototype.add=function(te){var me=++this._id,se=this._queue;return se.push({callback:te,id:me,cancelled:!1}),me},y0.prototype.remove=function(te){for(var me=this._currentlyRunning,se=me?this._queue.concat(me):this._queue,ye=0,He=se;yese.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(se.minPitch!=null&&se.maxPitch!=null&&se.minPitch>se.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(se.minPitch!=null&&se.minPitchHd)throw new Error("maxPitch must be less than or equal to "+Hd);var He=new Un(se.minZoom,se.maxZoom,se.minPitch,se.maxPitch,se.renderWorldCopies);if(pe.call(this,He,se),this._interactive=se.interactive,this._maxTileCacheSize=se.maxTileCacheSize,this._failIfMajorPerformanceCaveat=se.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=se.preserveDrawingBuffer,this._antialias=se.antialias,this._trackResize=se.trackResize,this._bearingSnap=se.bearingSnap,this._refreshExpiredTiles=se.refreshExpiredTiles,this._fadeDuration=se.fadeDuration,this._crossSourceCollisions=se.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=se.collectResourceTiming,this._renderTaskQueue=new y0,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Kb,se.locale),this._clickTolerance=se.clickTolerance,this._requestManager=new i.RequestManager(se.transformRequest,se.accessToken),typeof se.container=="string"){if(this._container=i.window.document.getElementById(se.container),!this._container)throw new Error("Container '"+se.container+"' not found.")}else if(se.container instanceof Xy)this._container=se.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(se.maxBounds&&this.setMaxBounds(se.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ye._update(!1)}),this.on("moveend",function(){return ye._update(!1)}),this.on("zoom",function(){return ye._update(!0)}),typeof i.window<"u"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new bo(this,se);var Qe=typeof se.hash=="string"&&se.hash||void 0;this._hash=se.hash&&new Xa(Qe).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:se.center,zoom:se.zoom,bearing:se.bearing,pitch:se.pitch}),se.bounds&&(this.resize(),this.fitBounds(se.bounds,i.extend({},se.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=se.localIdeographFontFamily,se.style&&this.setStyle(se.style,{localIdeographFontFamily:se.localIdeographFontFamily}),se.attributionControl&&this.addControl(new wi({customAttribution:se.customAttribution})),this.addControl(new wo,se.logoPosition),this.on("style.load",function(){ye.transform.unmodified&&ye.jumpTo(ye.style.stylesheet)}),this.on("data",function(pt){ye._update(pt.dataType==="style"),ye.fire(new i.Event(pt.dataType+"data",pt))}),this.on("dataloading",function(pt){ye.fire(new i.Event(pt.dataType+"dataloading",pt))})}pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te;var me={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return te.prototype._getMapId=function(){return this._mapId},te.prototype.addControl=function(ye,He){if(He===void 0&&(ye.getDefaultPosition?He=ye.getDefaultPosition():He="top-right"),!ye||!ye.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Qe=ye.onAdd(this);this._controls.push(ye);var pt=this._controlPositions[He];return He.indexOf("bottom")!==-1?pt.insertBefore(Qe,pt.firstChild):pt.appendChild(Qe),this},te.prototype.removeControl=function(ye){if(!ye||!ye.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var He=this._controls.indexOf(ye);return He>-1&&this._controls.splice(He,1),ye.onRemove(this),this},te.prototype.hasControl=function(ye){return this._controls.indexOf(ye)>-1},te.prototype.resize=function(ye){var He=this._containerDimensions(),Qe=He[0],pt=He[1];this._resizeCanvas(Qe,pt),this.transform.resize(Qe,pt),this.painter.resize(Qe,pt);var kt=!this._moving;return kt&&(this.stop(),this.fire(new i.Event("movestart",ye)).fire(new i.Event("move",ye))),this.fire(new i.Event("resize",ye)),kt&&this.fire(new i.Event("moveend",ye)),this},te.prototype.getBounds=function(){return this.transform.getBounds()},te.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},te.prototype.setMaxBounds=function(ye){return this.transform.setMaxBounds(i.LngLatBounds.convert(ye)),this._update()},te.prototype.setMinZoom=function(ye){if(ye=ye??Uv,ye>=Uv&&ye<=this.transform.maxZoom)return this.transform.minZoom=ye,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ye,this._update(),this.getZoom()>ye&&this.setZoom(ye),this;throw new Error("maxZoom must be greater than the current minZoom")},te.prototype.getMaxZoom=function(){return this.transform.maxZoom},te.prototype.setMinPitch=function(ye){if(ye=ye??Tl,ye=Tl&&ye<=this.transform.maxPitch)return this.transform.minPitch=ye,this._update(),this.getPitch()Hd)throw new Error("maxPitch must be less than or equal to "+Hd);if(ye>=this.transform.minPitch)return this.transform.maxPitch=ye,this._update(),this.getPitch()>ye&&this.setPitch(ye),this;throw new Error("maxPitch must be greater than the current minPitch")},te.prototype.getMaxPitch=function(){return this.transform.maxPitch},te.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},te.prototype.setRenderWorldCopies=function(ye){return this.transform.renderWorldCopies=ye,this._update()},te.prototype.project=function(ye){return this.transform.locationPoint(i.LngLat.convert(ye))},te.prototype.unproject=function(ye){return this.transform.pointLocation(i.Point.convert(ye))},te.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},te.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},te.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},te.prototype._createDelegatedListener=function(ye,He,Qe){var pt=this,kt;if(ye==="mouseenter"||ye==="mouseover"){var $t=!1,tr=function(Yr){var en=pt.getLayer(He)?pt.queryRenderedFeatures(Yr.point,{layers:[He]}):[];en.length?$t||($t=!0,Qe.call(pt,new it(ye,pt,Yr.originalEvent,{features:en}))):$t=!1},cr=function(){$t=!1};return{layer:He,listener:Qe,delegates:{mousemove:tr,mouseout:cr}}}else if(ye==="mouseleave"||ye==="mouseout"){var ur=!1,Br=function(Yr){var en=pt.getLayer(He)?pt.queryRenderedFeatures(Yr.point,{layers:[He]}):[];en.length?ur=!0:ur&&(ur=!1,Qe.call(pt,new it(ye,pt,Yr.originalEvent)))},Jr=function(Yr){ur&&(ur=!1,Qe.call(pt,new it(ye,pt,Yr.originalEvent)))};return{layer:He,listener:Qe,delegates:{mousemove:Br,mouseout:Jr}}}else{var Kr=function(Yr){var en=pt.getLayer(He)?pt.queryRenderedFeatures(Yr.point,{layers:[He]}):[];en.length&&(Yr.features=en,Qe.call(pt,Yr),delete Yr.features)};return{layer:He,listener:Qe,delegates:(kt={},kt[ye]=Kr,kt)}}},te.prototype.on=function(ye,He,Qe){if(Qe===void 0)return pe.prototype.on.call(this,ye,He);var pt=this._createDelegatedListener(ye,He,Qe);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ye]=this._delegatedListeners[ye]||[],this._delegatedListeners[ye].push(pt);for(var kt in pt.delegates)this.on(kt,pt.delegates[kt]);return this},te.prototype.once=function(ye,He,Qe){if(Qe===void 0)return pe.prototype.once.call(this,ye,He);var pt=this._createDelegatedListener(ye,He,Qe);for(var kt in pt.delegates)this.once(kt,pt.delegates[kt]);return this},te.prototype.off=function(ye,He,Qe){var pt=this;if(Qe===void 0)return pe.prototype.off.call(this,ye,He);var kt=function($t){for(var tr=$t[ye],cr=0;cr180;){var Qe=me.locationPoint(pe);if(Qe.x>=0&&Qe.y>=0&&Qe.x<=me.width&&Qe.y<=me.height)break;pe.lng>me.center.lng?pe.lng-=360:pe.lng+=360}return pe}var b0={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 Pg(pe,te,me){var se=pe.classList;for(var ye in b0)se.remove("mapboxgl-"+me+"-anchor-"+ye);se.add("mapboxgl-"+me+"-anchor-"+te)}var Vv=function(pe){function te(me,se){if(pe.call(this),(me instanceof i.window.HTMLElement||se)&&(me=i.extend({element:me},se)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=me&&me.anchor||"center",this._color=me&&me.color||"#3FB1CE",this._scale=me&&me.scale||1,this._draggable=me&&me.draggable||!1,this._clickTolerance=me&&me.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=me&&me.rotation||0,this._rotationAlignment=me&&me.rotationAlignment||"auto",this._pitchAlignment=me&&me.pitchAlignment&&me.pitchAlignment!=="auto"?me.pitchAlignment:this._rotationAlignment,!me||!me.element){this._defaultMarker=!0,this._element=w.create("div"),this._element.setAttribute("aria-label","Map marker");var ye=w.createNS("http://www.w3.org/2000/svg","svg"),He=41,Qe=27;ye.setAttributeNS(null,"display","block"),ye.setAttributeNS(null,"height",He+"px"),ye.setAttributeNS(null,"width",Qe+"px"),ye.setAttributeNS(null,"viewBox","0 0 "+Qe+" "+He);var pt=w.createNS("http://www.w3.org/2000/svg","g");pt.setAttributeNS(null,"stroke","none"),pt.setAttributeNS(null,"stroke-width","1"),pt.setAttributeNS(null,"fill","none"),pt.setAttributeNS(null,"fill-rule","evenodd");var kt=w.createNS("http://www.w3.org/2000/svg","g");kt.setAttributeNS(null,"fill-rule","nonzero");var $t=w.createNS("http://www.w3.org/2000/svg","g");$t.setAttributeNS(null,"transform","translate(3.0, 29.0)"),$t.setAttributeNS(null,"fill","#000000");for(var tr=[{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"}],cr=0,ur=tr;cr=ye}this._isDragging&&(this._pos=se.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},te.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),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},te.prototype._addDragHandler=function(se){this._element.contains(se.originalEvent.target)&&(se.preventDefault(),this._positionDelta=se.point.sub(this._pos).add(this._offset),this._pointerdownPos=se.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))},te.prototype.setDraggable=function(se){return this._draggable=!!se,this._map&&(se?(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},te.prototype.isDraggable=function(){return this._draggable},te.prototype.setRotation=function(se){return this._rotation=se||0,this._update(),this},te.prototype.getRotation=function(){return this._rotation},te.prototype.setRotationAlignment=function(se){return this._rotationAlignment=se||"auto",this._update(),this},te.prototype.getRotationAlignment=function(){return this._rotationAlignment},te.prototype.setPitchAlignment=function(se){return this._pitchAlignment=se&&se!=="auto"?se:this._rotationAlignment,this._update(),this},te.prototype.getPitchAlignment=function(){return this._pitchAlignment},te}(i.Evented),Jy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Vd;function w0(pe){Vd!==void 0?pe(Vd):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(te){Vd=te.state!=="denied",pe(Vd)}):(Vd=!!i.window.navigator.geolocation,pe(Vd))}var jv=0,Oh=!1,Jb=function(pe){function te(me){pe.call(this),this.options=i.extend({},Jy,me),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.onAdd=function(se){return this._map=se,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),w0(this._setupUI),this._container},te.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.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(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,jv=0,Oh=!1},te.prototype._isOutOfMapMaxBounds=function(se){var ye=this._map.getMaxBounds(),He=se.coords;return ye&&(He.longitudeye.getEast()||He.latitudeye.getNorth())},te.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},te.prototype._onSuccess=function(se){if(this._map){if(this._isOutOfMapMaxBounds(se)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",se)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=se,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(se),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(se),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",se)),this._finish()}},te.prototype._updateCamera=function(se){var ye=new i.LngLat(se.coords.longitude,se.coords.latitude),He=se.coords.accuracy,Qe=this._map.getBearing(),pt=i.extend({bearing:Qe},this.options.fitBoundsOptions);this._map.fitBounds(ye.toBounds(He),pt,{geolocateSource:!0})},te.prototype._updateMarker=function(se){if(se){var ye=new i.LngLat(se.coords.longitude,se.coords.latitude);this._accuracyCircleMarker.setLngLat(ye).addTo(this._map),this._userLocationDotMarker.setLngLat(ye).addTo(this._map),this._accuracy=se.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},te.prototype._updateCircleRadius=function(){var se=this._map._container.clientHeight/2,ye=this._map.unproject([0,se]),He=this._map.unproject([1,se]),Qe=ye.distanceTo(He),pt=Math.ceil(2*this._accuracy/Qe);this._circleElement.style.width=pt+"px",this._circleElement.style.height=pt+"px"},te.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},te.prototype._onError=function(se){if(this._map){if(this.options.trackUserLocation)if(se.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var ye=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ye,this._geolocateButton.setAttribute("aria-label",ye),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(se.code===3&&Oh)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",se)),this._finish()}},te.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},te.prototype._setupUI=function(se){var ye=this;if(this._container.addEventListener("contextmenu",function(pt){return pt.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",se===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var He=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=He,this._geolocateButton.setAttribute("aria-label",He)}else{var Qe=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Qe,this._geolocateButton.setAttribute("aria-label",Qe)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Vv(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vv({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(pt){var kt=pt.originalEvent&&pt.originalEvent.type==="resize";!pt.geolocateSource&&ye._watchState==="ACTIVE_LOCK"&&!kt&&(ye._watchState="BACKGROUND",ye._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ye._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ye.fire(new i.Event("trackuserlocationend")))})},te.prototype.trigger=function(){if(!this._setup)return i.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 i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":jv--,Oh=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),jv++;var se;jv>1?(se={maximumAge:6e5,timeout:0},Oh=!0):(se=this.options.positionOptions,Oh=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,se)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},te.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},te}(i.Evented),Qy={maxWidth:100,unit:"metric"},Fh=function(te){this.options=i.extend({},Qy,te),i.bindAll(["_onMove","setUnit"],this)};Fh.prototype.getDefaultPosition=function(){return"bottom-left"},Fh.prototype._onMove=function(){qy(this._map,this._container,this.options)},Fh.prototype.onAdd=function(te){return this._map=te,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",te.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Fh.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Fh.prototype.setUnit=function(te){this.options.unit=te,qy(this._map,this._container,this.options)};function qy(pe,te,me){var se=me&&me.maxWidth||100,ye=pe._container.clientHeight/2,He=pe.unproject([0,ye]),Qe=pe.unproject([se,ye]),pt=He.distanceTo(Qe);if(me&&me.unit==="imperial"){var kt=3.2808*pt;if(kt>5280){var $t=kt/5280;Gv(te,se,$t,pe._getUIString("ScaleControl.Miles"))}else Gv(te,se,kt,pe._getUIString("ScaleControl.Feet"))}else if(me&&me.unit==="nautical"){var tr=pt/1852;Gv(te,se,tr,pe._getUIString("ScaleControl.NauticalMiles"))}else pt>=1e3?Gv(te,se,pt/1e3,pe._getUIString("ScaleControl.Kilometers")):Gv(te,se,pt,pe._getUIString("ScaleControl.Meters"))}function Gv(pe,te,me,se){var ye=qb(me),He=ye/me;pe.style.width=te*He+"px",pe.innerHTML=ye+" "+se}function Qb(pe){var te=Math.pow(10,Math.ceil(-Math.log(pe)/Math.LN10));return Math.round(pe*te)/te}function qb(pe){var te=Math.pow(10,(""+Math.floor(pe)).length-1),me=pe/te;return me=me>=10?10:me>=5?5:me>=3?3:me>=2?2:me>=1?1:Qb(me),te*me}var cc=function(te){this._fullscreen=!1,te&&te.container&&(te.container instanceof i.window.HTMLElement?this._container=te.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};cc.prototype.onAdd=function(te){return this._map=te,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},cc.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},cc.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},cc.prototype._setupUI=function(){var te=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",te).setAttribute("aria-hidden",!0),te.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},cc.prototype._updateTitle=function(){var te=this._getTitle();this._fullscreenButton.setAttribute("aria-label",te),this._fullscreenButton.title=te},cc.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},cc.prototype._isFullscreen=function(){return this._fullscreen},cc.prototype._changeIcon=function(){var te=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;te===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},cc.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.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 ew={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tw=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),lS=function(pe){function te(me){pe.call(this),this.options=i.extend(Object.create(ew),me),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.addTo=function(se){return this._map&&this.remove(),this._map=se,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("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},te.prototype.isOpen=function(){return!!this._map},te.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.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 i.Event("close")),this},te.prototype.getLngLat=function(){return this._lngLat},te.prototype.setLngLat=function(se){return this._lngLat=i.LngLat.convert(se),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},te.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},te.prototype.getElement=function(){return this._container},te.prototype.setText=function(se){return this.setDOMContent(i.window.document.createTextNode(se))},te.prototype.setHTML=function(se){var ye=i.window.document.createDocumentFragment(),He=i.window.document.createElement("body"),Qe;for(He.innerHTML=se;Qe=He.firstChild,!!Qe;)ye.appendChild(Qe);return this.setDOMContent(ye)},te.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},te.prototype.setMaxWidth=function(se){return this.options.maxWidth=se,this._update(),this},te.prototype.setDOMContent=function(se){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(se),this._createCloseButton(),this._update(),this._focusFirstElement(),this},te.prototype.addClassName=function(se){this._container&&this._container.classList.add(se)},te.prototype.removeClassName=function(se){this._container&&this._container.classList.remove(se)},te.prototype.setOffset=function(se){return this.options.offset=se,this._update(),this},te.prototype.toggleClassName=function(se){if(this._container)return this._container.classList.toggle(se)},te.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("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))},te.prototype._onMouseUp=function(se){this._update(se.point)},te.prototype._onMouseMove=function(se){this._update(se.point)},te.prototype._onDrag=function(se){this._update(se.point)},te.prototype._update=function(se){var ye=this,He=this._lngLat||this._trackPointer;if(!(!this._map||!He||!this._content)&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Br){return ye._container.classList.add(Br)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ed(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!se))){var Qe=this._pos=this._trackPointer&&se?se:this._map.project(this._lngLat),pt=this.options.anchor,kt=rw(this.options.offset);if(!pt){var $t=this._container.offsetWidth,tr=this._container.offsetHeight,cr;Qe.y+kt.bottom.ythis._map.transform.height-tr?cr=["bottom"]:cr=[],Qe.x<$t/2?cr.push("left"):Qe.x>this._map.transform.width-$t/2&&cr.push("right"),cr.length===0?pt="bottom":pt=cr.join("-")}var ur=Qe.add(kt[pt]).round();w.setTransform(this._container,b0[pt]+" translate("+ur.x+"px,"+ur.y+"px)"),Pg(this._container,pt,"popup")}},te.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var se=this._container.querySelector(tw);se&&se.focus()}},te.prototype._onClose=function(){this.remove()},te}(i.Evented);function rw(pe){if(pe)if(typeof pe=="number"){var te=Math.round(Math.sqrt(.5*Math.pow(pe,2)));return{center:new i.Point(0,0),top:new i.Point(0,pe),"top-left":new i.Point(te,te),"top-right":new i.Point(-te,te),bottom:new i.Point(0,-pe),"bottom-left":new i.Point(te,-te),"bottom-right":new i.Point(-te,-te),left:new i.Point(pe,0),right:new i.Point(-pe,0)}}else if(pe instanceof i.Point||Array.isArray(pe)){var me=i.Point.convert(pe);return{center:me,top:me,"top-left":me,"top-right":me,bottom:me,"bottom-left":me,"bottom-right":me,left:me,right:me}}else return{center:i.Point.convert(pe.center||[0,0]),top:i.Point.convert(pe.top||[0,0]),"top-left":i.Point.convert(pe["top-left"]||[0,0]),"top-right":i.Point.convert(pe["top-right"]||[0,0]),bottom:i.Point.convert(pe.bottom||[0,0]),"bottom-left":i.Point.convert(pe["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(pe["bottom-right"]||[0,0]),left:i.Point.convert(pe.left||[0,0]),right:i.Point.convert(pe.right||[0,0])};else return rw(new i.Point(0,0))}var fs={version:i.version,supported:C,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ky,NavigationControl:qf,GeolocateControl:Jb,AttributionControl:wi,ScaleControl:Fh,FullscreenControl:cc,Popup:lS,Marker:Vv,Style:Ks,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Bt,clearPrewarmedResources:qt,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(pe){i.config.ACCESS_TOKEN=pe},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(pe){i.config.API_URL=pe},get workerCount(){return mr.workerCount},set workerCount(pe){mr.workerCount=pe},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(pe){i.config.MAX_PARALLEL_IMAGE_REQUESTS=pe},clearStorage:function(te){i.clearTileCache(te)},workerUrl:""};return fs}),l})},3108:function(D,O,t){D.exports=t(26099)},26099:function(D,O,t){var l=t(64928),S=t(32420),i=t(51160),C=t(76752),w=t(55616),v=t(31264),m=t(47520),a=t(18400),n=t(72512),s=t(76244),o=1073741824;D.exports=function(u,b){b||(b={}),u=m(u,"float64"),b=w(b,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var p=v(b.maxDepth,255),E=v(b.bounds,C(u,2));E[0]===E[2]&&E[2]++,E[1]===E[3]&&E[3]++;var g=h(u,E),c=u.length>>>1,x;b.dtype||(b.dtype="array"),typeof b.dtype=="string"?x=new(n(b.dtype))(c):b.dtype&&(x=b.dtype,Array.isArray(x)&&(x.length=c));for(var A=0;Ap||ie>o){for(var K=0;KUe||ce>Ne||re=de)&&be!==Ie){var ze=M[Ae];Ie===void 0&&(Ie=ze.length);for(var $e=be;$e=fe&&vt<=J&&at>=Q&&at<=oe&&he.push(st)}var nt=R[Ae],mt=nt[be*4+0],rt=nt[be*4+1],lt=nt[be*4+2],dt=nt[be*4+3],wt=Ee(nt,be+1),et=Te*.5,Be=Ae+1;xe(Se,ke,et,Be,mt,rt||lt||dt||wt),xe(Se,ke+et,et,Be,rt,lt||dt||wt),xe(Se+et,ke,et,Be,lt,dt||wt),xe(Se+et,ke+et,et,Be,dt,wt)}}}function Ee(Se,ke){for(var Te=null,Ae=0;Te===null;)if(Te=Se[ke*4+Ae],Ae++,Ae>Se.length)return null;return Te}return he}function H(V,$,Z,q,ae){for(var ie=[],fe=0;fe0){n+=Math.abs(v(a[0]));for(var s=1;s2){for(b=0;b=0))throw new Error("precision must be a positive number");var k=Math.pow(10,d||0);return Math.round(P*k)/k}O.round=f;function u(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P*k}O.radiansToLength=u;function b(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P/k}O.lengthToRadians=b;function p(P,d){return g(b(P,d))}O.lengthToDegrees=p;function E(P){var d=P%360;return d<0&&(d+=360),d}O.bearingToAzimuth=E;function g(P){var d=P%(2*Math.PI);return d*180/Math.PI}O.radiansToDegrees=g;function c(P){var d=P%360;return d*Math.PI/180}O.degreesToRadians=c;function x(P,d,k){if(d===void 0&&(d="kilometers"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("length must be a positive number");return u(b(P,d),k)}O.convertLength=x;function A(P,d,k){if(d===void 0&&(d="meters"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("area must be a positive number");var I=O.areaFactors[d];if(!I)throw new Error("invalid original units");var N=O.areaFactors[k];if(!N)throw new Error("invalid final units");return P/I*N}O.convertArea=A;function M(P){return!isNaN(P)&&P!==null&&!Array.isArray(P)}O.isNumber=M;function R(P){return!!P&&P.constructor===Object}O.isObject=R;function T(P){if(!P)throw new Error("bbox is required");if(!Array.isArray(P))throw new Error("bbox must be an Array");if(P.length!==4&&P.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");P.forEach(function(d){if(!M(d))throw new Error("bbox must only contain numbers")})}O.validateBBox=T;function L(P){if(!P)throw new Error("id is required");if(["string","number"].indexOf(typeof P)===-1)throw new Error("id must be a number or a string")}O.validateId=L},3256:function(D,O,t){Object.defineProperty(O,"__esModule",{value:!0});var l=t(46284);function S(c,x,A){if(c!==null)for(var M,R,T,L,P,d,k,I=0,N=0,B,G=c.type,U=G==="FeatureCollection",H=G==="Feature",W=U?c.features.length:1,V=0;Vd||U>k||H>I){P=N,d=M,k=U,I=H,T=0;return}var W=l.lineString([P,N],A.properties);if(x(W,M,R,H,T)===!1)return!1;T++,P=N})===!1)return!1}}})}function u(c,x,A){var M=A,R=!1;return f(c,function(T,L,P,d,k){R===!1&&A===void 0?M=T:M=x(M,T,L,P,d,k),R=!0}),M}function b(c,x){if(!c)throw new Error("geojson is required");o(c,function(A,M,R){if(A.geometry!==null){var T=A.geometry.type,L=A.geometry.coordinates;switch(T){case"LineString":if(x(A,M,R,0,0)===!1)return!1;break;case"Polygon":for(var P=0;Pw[0]&&(C[0]=w[0]),C[1]>w[1]&&(C[1]=w[1]),C[2]=0))throw new Error("precision must be a positive number");var k=Math.pow(10,d||0);return Math.round(P*k)/k}O.round=f;function u(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P*k}O.radiansToLength=u;function b(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P/k}O.lengthToRadians=b;function p(P,d){return g(b(P,d))}O.lengthToDegrees=p;function E(P){var d=P%360;return d<0&&(d+=360),d}O.bearingToAzimuth=E;function g(P){var d=P%(2*Math.PI);return d*180/Math.PI}O.radiansToDegrees=g;function c(P){var d=P%360;return d*Math.PI/180}O.degreesToRadians=c;function x(P,d,k){if(d===void 0&&(d="kilometers"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("length must be a positive number");return u(b(P,d),k)}O.convertLength=x;function A(P,d,k){if(d===void 0&&(d="meters"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("area must be a positive number");var I=O.areaFactors[d];if(!I)throw new Error("invalid original units");var N=O.areaFactors[k];if(!N)throw new Error("invalid final units");return P/I*N}O.convertArea=A;function M(P){return!isNaN(P)&&P!==null&&!Array.isArray(P)}O.isNumber=M;function R(P){return!!P&&P.constructor===Object}O.isObject=R;function T(P){if(!P)throw new Error("bbox is required");if(!Array.isArray(P))throw new Error("bbox must be an Array");if(P.length!==4&&P.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");P.forEach(function(d){if(!M(d))throw new Error("bbox must only contain numbers")})}O.validateBBox=T;function L(P){if(!P)throw new Error("id is required");if(["string","number"].indexOf(typeof P)===-1)throw new Error("id must be a number or a string")}O.validateId=L},84880:function(D,O,t){Object.defineProperty(O,"__esModule",{value:!0});var l=t(76796);function S(c,x,A){if(c!==null)for(var M,R,T,L,P,d,k,I=0,N=0,B,G=c.type,U=G==="FeatureCollection",H=G==="Feature",W=U?c.features.length:1,V=0;Vd||U>k||H>I){P=N,d=M,k=U,I=H,T=0;return}var W=l.lineString([P,N],A.properties);if(x(W,M,R,H,T)===!1)return!1;T++,P=N})===!1)return!1}}})}function u(c,x,A){var M=A,R=!1;return f(c,function(T,L,P,d,k){R===!1&&A===void 0?M=T:M=x(M,T,L,P,d,k),R=!0}),M}function b(c,x){if(!c)throw new Error("geojson is required");o(c,function(A,M,R){if(A.geometry!==null){var T=A.geometry.type,L=A.geometry.coordinates;switch(T){case"LineString":if(x(A,M,R,0,0)===!1)return!1;break;case"Polygon":for(var P=0;P=0))throw new Error("precision must be a positive number");var W=Math.pow(10,H||0);return Math.round(U*W)/W}O.round=f;function u(U,H){H===void 0&&(H="kilometers");var W=O.factors[H];if(!W)throw new Error(H+" units is invalid");return U*W}O.radiansToLength=u;function b(U,H){H===void 0&&(H="kilometers");var W=O.factors[H];if(!W)throw new Error(H+" units is invalid");return U/W}O.lengthToRadians=b;function p(U,H){return g(b(U,H))}O.lengthToDegrees=p;function E(U){var H=U%360;return H<0&&(H+=360),H}O.bearingToAzimuth=E;function g(U){var H=U%(2*Math.PI);return H*180/Math.PI}O.radiansToDegrees=g;function c(U){var H=U%360;return H*Math.PI/180}O.degreesToRadians=c;function x(U,H,W){if(H===void 0&&(H="kilometers"),W===void 0&&(W="kilometers"),!(U>=0))throw new Error("length must be a positive number");return u(b(U,H),W)}O.convertLength=x;function A(U,H,W){if(H===void 0&&(H="meters"),W===void 0&&(W="kilometers"),!(U>=0))throw new Error("area must be a positive number");var V=O.areaFactors[H];if(!V)throw new Error("invalid original units");var $=O.areaFactors[W];if(!$)throw new Error("invalid final units");return U/V*$}O.convertArea=A;function M(U){return!isNaN(U)&&U!==null&&!Array.isArray(U)&&!/^\s*$/.test(U)}O.isNumber=M;function R(U){return!!U&&U.constructor===Object}O.isObject=R;function T(U){if(!U)throw new Error("bbox is required");if(!Array.isArray(U))throw new Error("bbox must be an Array");if(U.length!==4&&U.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");U.forEach(function(H){if(!M(H))throw new Error("bbox must only contain numbers")})}O.validateBBox=T;function L(U){if(!U)throw new Error("id is required");if(["string","number"].indexOf(typeof U)===-1)throw new Error("id must be a number or a string")}O.validateId=L;function P(){throw new Error("method has been renamed to `radiansToDegrees`")}O.radians2degrees=P;function d(){throw new Error("method has been renamed to `degreesToRadians`")}O.degrees2radians=d;function k(){throw new Error("method has been renamed to `lengthToDegrees`")}O.distanceToDegrees=k;function I(){throw new Error("method has been renamed to `lengthToRadians`")}O.distanceToRadians=I;function N(){throw new Error("method has been renamed to `radiansToLength`")}O.radiansToDistance=N;function B(){throw new Error("method has been renamed to `bearingToAzimuth`")}O.bearingToAngle=B;function G(){throw new Error("method has been renamed to `convertLength`")}O.convertDistance=G},43752:function(D,O,t){Object.defineProperty(O,"__esModule",{value:!0});var l=t(49840);function S(c,x,A){if(c!==null)for(var M,R,T,L,P,d,k,I=0,N=0,B,G=c.type,U=G==="FeatureCollection",H=G==="Feature",W=U?c.features.length:1,V=0;Vd||U>k||H>I){P=N,d=M,k=U,I=H,T=0;return}var W=l.lineString([P,N],A.properties);if(x(W,M,R,H,T)===!1)return!1;T++,P=N})===!1)return!1}}})}function u(c,x,A){var M=A,R=!1;return f(c,function(T,L,P,d,k){R===!1&&A===void 0?M=T:M=x(M,T,L,P,d,k),R=!0}),M}function b(c,x){if(!c)throw new Error("geojson is required");o(c,function(A,M,R){if(A.geometry!==null){var T=A.geometry.type,L=A.geometry.coordinates;switch(T){case"LineString":if(x(A,M,R,0,0)===!1)return!1;break;case"Polygon":for(var P=0;PC&&(C=t[v]),t[v]>16,pt>>16],u_pixel_coord_lower:[Qe&65535,pt&65535]}}function Eu(pe,te,me,se){var ye=me.imageManager.getPattern(pe.from.toString()),He=me.imageManager.getPattern(pe.to.toString()),Qe=me.imageManager.getPixelSize(),pt=Qe.width,kt=Qe.height,$t=Math.pow(2,se.tileID.overscaledZ),tr=se.tileSize*Math.pow(2,me.transform.tileZoom)/$t,cr=tr*(se.tileID.canonical.x+se.tileID.wrap*$t),ur=tr*se.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ye.tl,u_pattern_br_a:ye.br,u_pattern_tl_b:He.tl,u_pattern_br_b:He.br,u_texsize:[pt,kt],u_mix:te.t,u_pattern_size_a:ye.displaySize,u_pattern_size_b:He.displaySize,u_scale_a:te.fromScale,u_scale_b:te.toScale,u_tile_units_to_pixels:1/Sn(se,1,me.transform.tileZoom),u_pixel_coord_upper:[cr>>16,ur>>16],u_pixel_coord_lower:[cr&65535,ur&65535]}}var _d=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_lightpos:new i.Uniform3f(pe,te.u_lightpos),u_lightintensity:new i.Uniform1f(pe,te.u_lightintensity),u_lightcolor:new i.Uniform3f(pe,te.u_lightcolor),u_vertical_gradient:new i.Uniform1f(pe,te.u_vertical_gradient),u_opacity:new i.Uniform1f(pe,te.u_opacity)}},Io=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_lightpos:new i.Uniform3f(pe,te.u_lightpos),u_lightintensity:new i.Uniform1f(pe,te.u_lightintensity),u_lightcolor:new i.Uniform3f(pe,te.u_lightcolor),u_vertical_gradient:new i.Uniform1f(pe,te.u_vertical_gradient),u_height_factor:new i.Uniform1f(pe,te.u_height_factor),u_image:new i.Uniform1i(pe,te.u_image),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade),u_opacity:new i.Uniform1f(pe,te.u_opacity)}},Uf=function(pe,te,me,se){var ye=te.style.light,He=ye.properties.get("position"),Qe=[He.x,He.y,He.z],pt=i.create$1();ye.properties.get("anchor")==="viewport"&&i.fromRotation(pt,-te.transform.angle),i.transformMat3(Qe,Qe,pt);var kt=ye.properties.get("color");return{u_matrix:pe,u_lightpos:Qe,u_lightintensity:ye.properties.get("intensity"),u_lightcolor:[kt.r,kt.g,kt.b],u_vertical_gradient:+me,u_opacity:se}},xl=function(pe,te,me,se,ye,He,Qe){return i.extend(Uf(pe,te,me,se),ic(He,te,Qe),{u_height_factor:-Math.pow(2,ye.overscaledZ)/Qe.tileSize/8})},iu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},oc=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_image:new i.Uniform1i(pe,te.u_image),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade)}},Pu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_world:new i.Uniform2f(pe,te.u_world)}},bl=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_world:new i.Uniform2f(pe,te.u_world),u_image:new i.Uniform1i(pe,te.u_image),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade)}},ou=function(pe){return{u_matrix:pe}},wl=function(pe,te,me,se){return i.extend(ou(pe),ic(me,te,se))},il=function(pe,te){return{u_matrix:pe,u_world:te}},Hf=function(pe,te,me,se,ye){return i.extend(wl(pe,te,me,se),{u_world:ye})},d0=function(pe,te){return{u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(pe,te.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(pe,te.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},h0=function(pe,te,me,se){var ye=pe.transform,He,Qe;if(se.paint.get("circle-pitch-alignment")==="map"){var pt=Sn(me,1,ye.zoom);He=!0,Qe=[pt,pt]}else He=!1,Qe=ye.pixelsToGLUnits;return{u_camera_to_center_distance:ye.cameraToCenterDistance,u_scale_with_map:+(se.paint.get("circle-pitch-scale")==="map"),u_matrix:pe.translatePosMatrix(te.posMatrix,me,se.paint.get("circle-translate"),se.paint.get("circle-translate-anchor")),u_pitch_with_map:+He,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:Qe}},v0=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(pe,te.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(pe,te.u_extrude_scale),u_overscale_factor:new i.Uniform1f(pe,te.u_overscale_factor)}},p0=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_inv_matrix:new i.UniformMatrix4f(pe,te.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(pe,te.u_viewport_size)}},Ph=function(pe,te,me){var se=Sn(me,1,te.zoom),ye=Math.pow(2,te.zoom-me.tileID.overscaledZ),He=me.tileID.overscaleFactor();return{u_matrix:pe,u_camera_to_center_distance:te.cameraToCenterDistance,u_pixels_to_tile_units:se,u_extrude_scale:[te.pixelsToGLUnits[0]/(se*ye),te.pixelsToGLUnits[1]/(se*ye)],u_overscale_factor:He}},Lv=function(pe,te,me){return{u_matrix:pe,u_inv_matrix:te,u_camera_to_center_distance:me.cameraToCenterDistance,u_viewport_size:[me.width,me.height]}},Gc=function(pe,te){return{u_color:new i.UniformColor(pe,te.u_color),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_overlay:new i.Uniform1i(pe,te.u_overlay),u_overlay_scale:new i.Uniform1f(pe,te.u_overlay_scale)}},rs=function(pe,te,me){return me===void 0&&(me=1),{u_matrix:pe,u_color:te,u_overlay:0,u_overlay_scale:me}},qs=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},Wc=function(pe){return{u_matrix:pe}},Iv=function(pe,te){return{u_extrude_scale:new i.Uniform1f(pe,te.u_extrude_scale),u_intensity:new i.Uniform1f(pe,te.u_intensity),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix)}},Vf=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_world:new i.Uniform2f(pe,te.u_world),u_image:new i.Uniform1i(pe,te.u_image),u_color_ramp:new i.Uniform1i(pe,te.u_color_ramp),u_opacity:new i.Uniform1f(pe,te.u_opacity)}},su=function(pe,te,me,se){return{u_matrix:pe,u_extrude_scale:Sn(te,1,me),u_intensity:se}},g0=function(pe,te,me,se){var ye=i.create();i.ortho(ye,0,pe.width,pe.height,0,0,1);var He=pe.context.gl;return{u_matrix:ye,u_world:[He.drawingBufferWidth,He.drawingBufferHeight],u_image:me,u_color_ramp:se,u_opacity:te.paint.get("heatmap-opacity")}},Rv=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_image:new i.Uniform1i(pe,te.u_image),u_latrange:new i.Uniform2f(pe,te.u_latrange),u_light:new i.Uniform2f(pe,te.u_light),u_shadow:new i.UniformColor(pe,te.u_shadow),u_highlight:new i.UniformColor(pe,te.u_highlight),u_accent:new i.UniformColor(pe,te.u_accent)}},kv=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_image:new i.Uniform1i(pe,te.u_image),u_dimension:new i.Uniform2f(pe,te.u_dimension),u_zoom:new i.Uniform1f(pe,te.u_zoom),u_unpack:new i.Uniform4f(pe,te.u_unpack)}},Lh=function(pe,te,me){var se=me.paint.get("hillshade-shadow-color"),ye=me.paint.get("hillshade-highlight-color"),He=me.paint.get("hillshade-accent-color"),Qe=me.paint.get("hillshade-illumination-direction")*(Math.PI/180);me.paint.get("hillshade-illumination-anchor")==="viewport"&&(Qe-=pe.transform.angle);var pt=!pe.options.moving;return{u_matrix:pe.transform.calculatePosMatrix(te.tileID.toUnwrapped(),pt),u_image:0,u_latrange:ks(pe,te.tileID),u_light:[me.paint.get("hillshade-exaggeration"),Qe],u_shadow:se,u_highlight:ye,u_accent:He}},Dv=function(pe,te){var me=te.stride,se=i.create();return i.ortho(se,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(se,se,[0,-i.EXTENT,0]),{u_matrix:se,u_image:1,u_dimension:[me,me],u_zoom:pe.overscaledZ,u_unpack:te.getUnpackVector()}};function ks(pe,te){var me=Math.pow(2,te.canonical.z),se=te.canonical.y;return[new i.MercatorCoordinate(0,se/me).toLngLat().lat,new i.MercatorCoordinate(0,(se+1)/me).toLngLat().lat]}var Tl=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels)}},Lu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels),u_image:new i.Uniform1i(pe,te.u_image),u_image_height:new i.Uniform1f(pe,te.u_image_height)}},$c=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_image:new i.Uniform1i(pe,te.u_image),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels),u_scale:new i.Uniform3f(pe,te.u_scale),u_fade:new i.Uniform1f(pe,te.u_fade)}},zd=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_ratio:new i.Uniform1f(pe,te.u_ratio),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(pe,te.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(pe,te.u_patternscale_a),u_patternscale_b:new i.Uniform2f(pe,te.u_patternscale_b),u_sdfgamma:new i.Uniform1f(pe,te.u_sdfgamma),u_image:new i.Uniform1i(pe,te.u_image),u_tex_y_a:new i.Uniform1f(pe,te.u_tex_y_a),u_tex_y_b:new i.Uniform1f(pe,te.u_tex_y_b),u_mix:new i.Uniform1f(pe,te.u_mix)}},sc=function(pe,te,me){var se=pe.transform;return{u_matrix:Iu(pe,te,me),u_ratio:1/Sn(te,1,se.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/se.pixelsToGLUnits[0],1/se.pixelsToGLUnits[1]]}},lc=function(pe,te,me,se){return i.extend(sc(pe,te,me),{u_image:0,u_image_height:se})},Ov=function(pe,te,me,se){var ye=pe.transform,He=Yc(te,ye);return{u_matrix:Iu(pe,te,me),u_texsize:te.imageAtlasTexture.size,u_ratio:1/Sn(te,1,ye.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[He,se.fromScale,se.toScale],u_fade:se.t,u_units_to_pixels:[1/ye.pixelsToGLUnits[0],1/ye.pixelsToGLUnits[1]]}},lu=function(pe,te,me,se,ye){var He=pe.transform,Qe=pe.lineAtlas,pt=Yc(te,He),kt=me.layout.get("line-cap")==="round",$t=Qe.getDash(se.from,kt),tr=Qe.getDash(se.to,kt),cr=$t.width*ye.fromScale,ur=tr.width*ye.toScale;return i.extend(sc(pe,te,me),{u_patternscale_a:[pt/cr,-$t.height/2],u_patternscale_b:[pt/ur,-tr.height/2],u_sdfgamma:Qe.width/(Math.min(cr,ur)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:$t.y,u_tex_y_b:tr.y,u_mix:ye.t})};function Yc(pe,te){return 1/Sn(pe,1,te.tileZoom)}function Iu(pe,te,me){return pe.translatePosMatrix(te.tileID.posMatrix,te,me.paint.get("line-translate"),me.paint.get("line-translate-anchor"))}var uu=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_tl_parent:new i.Uniform2f(pe,te.u_tl_parent),u_scale_parent:new i.Uniform1f(pe,te.u_scale_parent),u_buffer_scale:new i.Uniform1f(pe,te.u_buffer_scale),u_fade_t:new i.Uniform1f(pe,te.u_fade_t),u_opacity:new i.Uniform1f(pe,te.u_opacity),u_image0:new i.Uniform1i(pe,te.u_image0),u_image1:new i.Uniform1i(pe,te.u_image1),u_brightness_low:new i.Uniform1f(pe,te.u_brightness_low),u_brightness_high:new i.Uniform1f(pe,te.u_brightness_high),u_saturation_factor:new i.Uniform1f(pe,te.u_saturation_factor),u_contrast_factor:new i.Uniform1f(pe,te.u_contrast_factor),u_spin_weights:new i.Uniform3f(pe,te.u_spin_weights)}},jf=function(pe,te,me,se,ye){return{u_matrix:pe,u_tl_parent:te,u_scale_parent:me,u_buffer_scale:1,u_fade_t:se.mix,u_opacity:se.opacity*ye.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ye.paint.get("raster-brightness-min"),u_brightness_high:ye.paint.get("raster-brightness-max"),u_saturation_factor:Zc(ye.paint.get("raster-saturation")),u_contrast_factor:Yi(ye.paint.get("raster-contrast")),u_spin_weights:Xc(ye.paint.get("raster-hue-rotate"))}};function Xc(pe){pe*=Math.PI/180;var te=Math.sin(pe),me=Math.cos(pe);return[(2*me+1)/3,(-Math.sqrt(3)*te-me+1)/3,(Math.sqrt(3)*te-me+1)/3]}function Yi(pe){return pe>0?1/(1-pe):1+pe}function Zc(pe){return pe>0?1-1/(1.001-pe):-pe}var Bd=function(pe,te){return{u_is_size_zoom_constant:new i.Uniform1i(pe,te.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(pe,te.u_is_size_feature_constant),u_size_t:new i.Uniform1f(pe,te.u_size_t),u_size:new i.Uniform1f(pe,te.u_size),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pitch:new i.Uniform1f(pe,te.u_pitch),u_rotate_symbol:new i.Uniform1i(pe,te.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(pe,te.u_aspect_ratio),u_fade_change:new i.Uniform1f(pe,te.u_fade_change),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(pe,te.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(pe,te.u_coord_matrix),u_is_text:new i.Uniform1i(pe,te.u_is_text),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_texture:new i.Uniform1i(pe,te.u_texture)}},Fv=function(pe,te){return{u_is_size_zoom_constant:new i.Uniform1i(pe,te.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(pe,te.u_is_size_feature_constant),u_size_t:new i.Uniform1f(pe,te.u_size_t),u_size:new i.Uniform1f(pe,te.u_size),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pitch:new i.Uniform1f(pe,te.u_pitch),u_rotate_symbol:new i.Uniform1i(pe,te.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(pe,te.u_aspect_ratio),u_fade_change:new i.Uniform1f(pe,te.u_fade_change),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(pe,te.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(pe,te.u_coord_matrix),u_is_text:new i.Uniform1i(pe,te.u_is_text),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_texture:new i.Uniform1i(pe,te.u_texture),u_gamma_scale:new i.Uniform1f(pe,te.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(pe,te.u_is_halo)}},Kc=function(pe,te){return{u_is_size_zoom_constant:new i.Uniform1i(pe,te.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(pe,te.u_is_size_feature_constant),u_size_t:new i.Uniform1f(pe,te.u_size_t),u_size:new i.Uniform1f(pe,te.u_size),u_camera_to_center_distance:new i.Uniform1f(pe,te.u_camera_to_center_distance),u_pitch:new i.Uniform1f(pe,te.u_pitch),u_rotate_symbol:new i.Uniform1i(pe,te.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(pe,te.u_aspect_ratio),u_fade_change:new i.Uniform1f(pe,te.u_fade_change),u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(pe,te.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(pe,te.u_coord_matrix),u_is_text:new i.Uniform1i(pe,te.u_is_text),u_pitch_with_map:new i.Uniform1i(pe,te.u_pitch_with_map),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_texsize_icon:new i.Uniform2f(pe,te.u_texsize_icon),u_texture:new i.Uniform1i(pe,te.u_texture),u_texture_icon:new i.Uniform1i(pe,te.u_texture_icon),u_gamma_scale:new i.Uniform1f(pe,te.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(pe,te.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(pe,te.u_is_halo)}},Gf=function(pe,te,me,se,ye,He,Qe,pt,kt,$t){var tr=ye.transform;return{u_is_size_zoom_constant:+(pe==="constant"||pe==="source"),u_is_size_feature_constant:+(pe==="constant"||pe==="camera"),u_size_t:te?te.uSizeT:0,u_size:te?te.uSize:0,u_camera_to_center_distance:tr.cameraToCenterDistance,u_pitch:tr.pitch/360*2*Math.PI,u_rotate_symbol:+me,u_aspect_ratio:tr.width/tr.height,u_fade_change:ye.options.fadeDuration?ye.symbolFadeChange:1,u_matrix:He,u_label_plane_matrix:Qe,u_coord_matrix:pt,u_is_text:+kt,u_pitch_with_map:+se,u_texsize:$t,u_texture:0}},Nd=function(pe,te,me,se,ye,He,Qe,pt,kt,$t,tr){var cr=ye.transform;return i.extend(Gf(pe,te,me,se,ye,He,Qe,pt,kt,$t),{u_gamma_scale:se?Math.cos(cr._pitch)*cr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+tr})},Ih=function(pe,te,me,se,ye,He,Qe,pt,kt,$t){return i.extend(Nd(pe,te,me,se,ye,He,Qe,pt,!0,kt,!0),{u_texsize_icon:$t,u_texture_icon:1})},Wf=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_opacity:new i.Uniform1f(pe,te.u_opacity),u_color:new i.UniformColor(pe,te.u_color)}},$f=function(pe,te){return{u_matrix:new i.UniformMatrix4f(pe,te.u_matrix),u_opacity:new i.Uniform1f(pe,te.u_opacity),u_image:new i.Uniform1i(pe,te.u_image),u_pattern_tl_a:new i.Uniform2f(pe,te.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(pe,te.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(pe,te.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(pe,te.u_pattern_br_b),u_texsize:new i.Uniform2f(pe,te.u_texsize),u_mix:new i.Uniform1f(pe,te.u_mix),u_pattern_size_a:new i.Uniform2f(pe,te.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(pe,te.u_pattern_size_b),u_scale_a:new i.Uniform1f(pe,te.u_scale_a),u_scale_b:new i.Uniform1f(pe,te.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(pe,te.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(pe,te.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(pe,te.u_tile_units_to_pixels)}},Ru=function(pe,te,me){return{u_matrix:pe,u_opacity:te,u_color:me}},Yf=function(pe,te,me,se,ye,He){return i.extend(Eu(se,He,me,ye),{u_matrix:pe,u_opacity:te})},ku={fillExtrusion:_d,fillExtrusionPattern:Io,fill:iu,fillPattern:oc,fillOutline:Pu,fillOutlinePattern:bl,circle:d0,collisionBox:v0,collisionCircle:p0,debug:Gc,clippingMask:qs,heatmap:Iv,heatmapTexture:Vf,hillshade:Rv,hillshadePrepare:kv,line:Tl,lineGradient:Lu,linePattern:$c,lineSDF:zd,raster:uu,symbolIcon:Bd,symbolSDF:Fv,symbolTextAndIcon:Kc,background:Wf,backgroundPattern:$f},Wo;function Hl(pe,te,me,se,ye,He,Qe){for(var pt=pe.context,kt=pt.gl,$t=pe.useProgram("collisionBox"),tr=[],cr=0,ur=0,zr=0;zr0){var $n=i.create(),ra=en;i.mul($n,Yr.placementInvProjMatrix,pe.transform.glCoordMatrix),i.mul($n,$n,Yr.placementViewportMatrix),tr.push({circleArray:Vn,circleOffset:ur,transform:ra,invTransform:$n}),cr+=Vn.length/4,ur=cr}mn&&$t.draw(pt,kt.LINES,dr.disabled,qt.disabled,pe.colorModeForRenderPass(),zt.disabled,Ph(en,pe.transform,Kr),me.id,mn.layoutVertexBuffer,mn.indexBuffer,mn.segments,null,pe.transform.zoom,null,null,mn.collisionVertexBuffer)}}if(!(!Qe||!tr.length)){var na=pe.useProgram("collisionCircle"),Qn=new i.StructArrayLayout2f1f2i16;Qn.resize(cr*4),Qn._trim();for(var ia=0,da=0,wa=tr;da=0&&(Jr[Yr.associatedIconIndex]={shiftedAnchor:ti,angle:Ci})}}if(tr){zr.clear();for(var Ha=pe.icon.placedSymbolArray,gi=0;gi0){var Qe=i.browser.now(),pt=(Qe-pe.timeAdded)/He,kt=te?(Qe-te.timeAdded)/He:-1,$t=me.getSource(),tr=ye.coveringZoomLevel({tileSize:$t.tileSize,roundZoom:$t.roundZoom}),cr=!te||Math.abs(te.tileID.overscaledZ-tr)>Math.abs(pe.tileID.overscaledZ-tr),ur=cr&&pe.refreshedUponExpiration?1:i.clamp(cr?pt:1-kt,0,1);return pe.refreshedUponExpiration&&pt>=1&&(pe.refreshedUponExpiration=!1),te?{opacity:1,mix:1-ur}:{opacity:ur,mix:0}}else return{opacity:1,mix:0}}function cc(pe,te,me){var se=me.paint.get("background-color"),ye=me.paint.get("background-opacity");if(ye!==0){var He=pe.context,Qe=He.gl,pt=pe.transform,kt=pt.tileSize,$t=me.paint.get("background-pattern");if(!pe.isPatternMissing($t)){var tr=!$t&&se.a===1&&ye===1&&pe.opaquePassEnabledForLayer()?"opaque":"translucent";if(pe.renderPass===tr){var cr=qt.disabled,ur=pe.depthModeForSublayer(0,tr==="opaque"?dr.ReadWrite:dr.ReadOnly),zr=pe.colorModeForRenderPass(),Jr=pe.useProgram($t?"backgroundPattern":"background"),Kr=pt.coveringTiles({tileSize:kt});$t&&(He.activeTexture.set(Qe.TEXTURE0),pe.imageManager.bind(pe.context));for(var Yr=me.getCrossfadeParameters(),en=0,mn=Kr;en "+me.overscaledZ);var en=Yr+" "+zr+"kb";lr(pe,en),Qe.draw(se,ye.TRIANGLES,pt,kt,ht.alphaBlended,zt.disabled,rs(He,i.Color.transparent,Kr),tr,pe.debugBuffer,pe.quadTriangleIndexBuffer,pe.debugSegments)}function lr(pe,te){pe.initDebugOverlayCanvas();var me=pe.debugOverlayCanvas,se=pe.context.gl,ye=pe.debugOverlayCanvas.getContext("2d");ye.clearRect(0,0,me.width,me.height),ye.shadowColor="white",ye.shadowBlur=2,ye.lineWidth=1.5,ye.strokeStyle="white",ye.textBaseline="top",ye.font="bold 36px Open Sans, sans-serif",ye.fillText(te,5,5),ye.strokeText(te,5,5),pe.debugOverlayTexture.update(me),pe.debugOverlayTexture.bind(se.LINEAR,se.CLAMP_TO_EDGE)}function Er(pe,te,me){var se=pe.context,ye=me.implementation;if(pe.renderPass==="offscreen"){var He=ye.prerender;He&&(pe.setCustomLayerDefaults(),se.setColorMode(pe.colorModeForRenderPass()),He.call(ye,se.gl,pe.transform.customLayerMatrix()),se.setDirty(),pe.setBaseState())}else if(pe.renderPass==="translucent"){pe.setCustomLayerDefaults(),se.setColorMode(pe.colorModeForRenderPass()),se.setStencilMode(qt.disabled);var Qe=ye.renderingMode==="3d"?new dr(pe.context.gl.LEQUAL,dr.ReadWrite,pe.depthRangeFor3D):pe.depthModeForSublayer(0,dr.ReadOnly);se.setDepthMode(Qe),ye.render(se.gl,pe.transform.customLayerMatrix()),se.setDirty(),pe.setBaseState(),se.bindFramebuffer.set(null)}}var Fr={symbol:Ud,circle:zv,heatmap:Du,line:Hd,fill:cu,"fill-extrusion":kh,hillshade:Qf,raster:qf,background:cc,debug:xr,custom:Er},jr=function(te,me){this.context=new Ft(te),this.transform=me,this._tileTextures={},this.setup(),this.numSublayers=Wt.maxUnderzooming+Wt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new xa,this.gpuTimers={}};jr.prototype.resize=function(te,me){if(this.width=te*i.browser.devicePixelRatio,this.height=me*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var se=0,ye=this.style._order;se256&&this.clearStencil(),se.setColorMode(ht.disabled),se.setDepthMode(dr.disabled);var He=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Qe=0,pt=me;Qe256&&this.clearStencil();var te=this.nextStencilID++,me=this.context.gl;return new qt({func:me.NOTEQUAL,mask:255},te,255,me.KEEP,me.KEEP,me.REPLACE)},jr.prototype.stencilModeForClipping=function(te){var me=this.context.gl;return new qt({func:me.EQUAL,mask:255},this._tileClippingMaskIDs[te.key],0,me.KEEP,me.KEEP,me.REPLACE)},jr.prototype.stencilConfigForOverlap=function(te){var me,se=this.context.gl,ye=te.sort(function($t,tr){return tr.overscaledZ-$t.overscaledZ}),He=ye[ye.length-1].overscaledZ,Qe=ye[0].overscaledZ-He+1;if(Qe>1){this.currentStencilSource=void 0,this.nextStencilID+Qe>256&&this.clearStencil();for(var pt={},kt=0;kt=0;this.currentLayer--){var $n=this.style._layers[ye[this.currentLayer]],ra=He[$n.source],na=kt[$n.source];this._renderTileClippingMasks($n,na),this.renderLayer(this,ra,$n,na)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?me.pop():null},jr.prototype.isPatternMissing=function(te){if(!te)return!1;if(!te.from||!te.to)return!0;var me=this.imageManager.getPattern(te.from.toString()),se=this.imageManager.getPattern(te.to.toString());return!me||!se},jr.prototype.useProgram=function(te,me){this.cache=this.cache||{};var se=""+te+(me?me.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[se]||(this.cache[se]=new Eh(this.context,te,Ev[te],me,ku[te],this._showOverdrawInspector)),this.cache[se]},jr.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()},jr.prototype.setBaseState=function(){var te=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(te.FUNC_ADD)},jr.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var te=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,te.RGBA)}},jr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var sn=function(te,me){this.points=te,this.planes=me};sn.fromInvProjectionMatrix=function(te,me,se){var ye=[[-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]],He=Math.pow(2,se),Qe=ye.map(function($t){return i.transformMat4([],$t,te)}).map(function($t){return i.scale$1([],$t,1/$t[3]/me*He)}),pt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],kt=pt.map(function($t){var tr=i.sub([],Qe[$t[0]],Qe[$t[1]]),cr=i.sub([],Qe[$t[2]],Qe[$t[1]]),ur=i.normalize([],i.cross([],tr,cr)),zr=-i.dot(ur,Qe[$t[1]]);return ur.concat(zr)});return new sn(Qe,kt)};var Mn=function(te,me){this.min=te,this.max=me,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Mn.prototype.quadrant=function(te){for(var me=[te%2===0,te<2],se=i.clone$2(this.min),ye=i.clone$2(this.max),He=0;He=0;if(Qe===0)return 0;Qe!==me.length&&(se=!1)}if(se)return 2;for(var kt=0;kt<3;kt++){for(var $t=Number.MAX_VALUE,tr=-Number.MAX_VALUE,cr=0;crthis.max[kt]-this.min[kt])return 0}return 1};var Bn=function(te,me,se,ye){if(te===void 0&&(te=0),me===void 0&&(me=0),se===void 0&&(se=0),ye===void 0&&(ye=0),isNaN(te)||te<0||isNaN(me)||me<0||isNaN(se)||se<0||isNaN(ye)||ye<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=te,this.bottom=me,this.left=se,this.right=ye};Bn.prototype.interpolate=function(te,me,se){return me.top!=null&&te.top!=null&&(this.top=i.number(te.top,me.top,se)),me.bottom!=null&&te.bottom!=null&&(this.bottom=i.number(te.bottom,me.bottom,se)),me.left!=null&&te.left!=null&&(this.left=i.number(te.left,me.left,se)),me.right!=null&&te.right!=null&&(this.right=i.number(te.right,me.right,se)),this},Bn.prototype.getCenter=function(te,me){var se=i.clamp((this.left+te-this.right)/2,0,te),ye=i.clamp((this.top+me-this.bottom)/2,0,me);return new i.Point(se,ye)},Bn.prototype.equals=function(te){return this.top===te.top&&this.bottom===te.bottom&&this.left===te.left&&this.right===te.right},Bn.prototype.clone=function(){return new Bn(this.top,this.bottom,this.left,this.right)},Bn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Un=function(te,me,se,ye,He){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=He===void 0?!0:He,this._minZoom=te||0,this._maxZoom=me||22,this._minPitch=se??0,this._maxPitch=ye??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Bn,this._posMatrixCache={},this._alignedPosMatrixCache={}},aa={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}};Un.prototype.clone=function(){var te=new Un(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return te.tileSize=this.tileSize,te.latRange=this.latRange,te.width=this.width,te.height=this.height,te._center=this._center,te.zoom=this.zoom,te.angle=this.angle,te._fov=this._fov,te._pitch=this._pitch,te._unmodified=this._unmodified,te._edgeInsets=this._edgeInsets.clone(),te._calcMatrices(),te},aa.minZoom.get=function(){return this._minZoom},aa.minZoom.set=function(pe){this._minZoom!==pe&&(this._minZoom=pe,this.zoom=Math.max(this.zoom,pe))},aa.maxZoom.get=function(){return this._maxZoom},aa.maxZoom.set=function(pe){this._maxZoom!==pe&&(this._maxZoom=pe,this.zoom=Math.min(this.zoom,pe))},aa.minPitch.get=function(){return this._minPitch},aa.minPitch.set=function(pe){this._minPitch!==pe&&(this._minPitch=pe,this.pitch=Math.max(this.pitch,pe))},aa.maxPitch.get=function(){return this._maxPitch},aa.maxPitch.set=function(pe){this._maxPitch!==pe&&(this._maxPitch=pe,this.pitch=Math.min(this.pitch,pe))},aa.renderWorldCopies.get=function(){return this._renderWorldCopies},aa.renderWorldCopies.set=function(pe){pe===void 0?pe=!0:pe===null&&(pe=!1),this._renderWorldCopies=pe},aa.worldSize.get=function(){return this.tileSize*this.scale},aa.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},aa.size.get=function(){return new i.Point(this.width,this.height)},aa.bearing.get=function(){return-this.angle/Math.PI*180},aa.bearing.set=function(pe){var te=-i.wrap(pe,-180,180)*Math.PI/180;this.angle!==te&&(this._unmodified=!1,this.angle=te,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},aa.pitch.get=function(){return this._pitch/Math.PI*180},aa.pitch.set=function(pe){var te=i.clamp(pe,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==te&&(this._unmodified=!1,this._pitch=te,this._calcMatrices())},aa.fov.get=function(){return this._fov/Math.PI*180},aa.fov.set=function(pe){pe=Math.max(.01,Math.min(60,pe)),this._fov!==pe&&(this._unmodified=!1,this._fov=pe/180*Math.PI,this._calcMatrices())},aa.zoom.get=function(){return this._zoom},aa.zoom.set=function(pe){var te=Math.min(Math.max(pe,this.minZoom),this.maxZoom);this._zoom!==te&&(this._unmodified=!1,this._zoom=te,this.scale=this.zoomScale(te),this.tileZoom=Math.floor(te),this.zoomFraction=te-this.tileZoom,this._constrain(),this._calcMatrices())},aa.center.get=function(){return this._center},aa.center.set=function(pe){pe.lat===this._center.lat&&pe.lng===this._center.lng||(this._unmodified=!1,this._center=pe,this._constrain(),this._calcMatrices())},aa.padding.get=function(){return this._edgeInsets.toJSON()},aa.padding.set=function(pe){this._edgeInsets.equals(pe)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,pe,1),this._calcMatrices())},aa.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Un.prototype.isPaddingEqual=function(te){return this._edgeInsets.equals(te)},Un.prototype.interpolatePadding=function(te,me,se){this._unmodified=!1,this._edgeInsets.interpolate(te,me,se),this._constrain(),this._calcMatrices()},Un.prototype.coveringZoomLevel=function(te){var me=(te.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/te.tileSize));return Math.max(0,me)},Un.prototype.getVisibleUnwrappedCoordinates=function(te){var me=[new i.UnwrappedTileID(0,te)];if(this._renderWorldCopies)for(var se=this.pointCoordinate(new i.Point(0,0)),ye=this.pointCoordinate(new i.Point(this.width,0)),He=this.pointCoordinate(new i.Point(this.width,this.height)),Qe=this.pointCoordinate(new i.Point(0,this.height)),pt=Math.floor(Math.min(se.x,ye.x,He.x,Qe.x)),kt=Math.floor(Math.max(se.x,ye.x,He.x,Qe.x)),$t=1,tr=pt-$t;tr<=kt+$t;tr++)tr!==0&&me.push(new i.UnwrappedTileID(tr,te));return me},Un.prototype.coveringTiles=function(te){var me=this.coveringZoomLevel(te),se=me;if(te.minzoom!==void 0&&mete.maxzoom&&(me=te.maxzoom);var ye=i.MercatorCoordinate.fromLngLat(this.center),He=Math.pow(2,me),Qe=[He*ye.x,He*ye.y,0],pt=sn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,me),kt=te.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(kt=me);var $t=3,tr=function(Ea){return{aabb:new Mn([Ea*He,0,0],[(Ea+1)*He,He,0]),zoom:0,x:0,y:0,wrap:Ea,fullyVisible:!1}},cr=[],ur=[],zr=me,Jr=te.reparseOverscaled?se:me;if(this._renderWorldCopies)for(var Kr=1;Kr<=3;Kr++)cr.push(tr(-Kr)),cr.push(tr(Kr));for(cr.push(tr(0));cr.length>0;){var Yr=cr.pop(),en=Yr.x,mn=Yr.y,Vn=Yr.fullyVisible;if(!Vn){var $n=Yr.aabb.intersects(pt);if($n===0)continue;Vn=$n===2}var ra=Yr.aabb.distanceX(Qe),na=Yr.aabb.distanceY(Qe),Qn=Math.max(Math.abs(ra),Math.abs(na)),ia=$t+(1<ia&&Yr.zoom>=kt){ur.push({tileID:new i.OverscaledTileID(Yr.zoom===zr?Jr:Yr.zoom,Yr.wrap,Yr.zoom,en,mn),distanceSq:i.sqrLen([Qe[0]-.5-en,Qe[1]-.5-mn])});continue}for(var da=0;da<4;da++){var wa=(en<<1)+da%2,_a=(mn<<1)+(da>>1);cr.push({aabb:Yr.aabb.quadrant(da),zoom:Yr.zoom+1,x:wa,y:_a,wrap:Yr.wrap,fullyVisible:Vn})}}return ur.sort(function(Ea,ti){return Ea.distanceSq-ti.distanceSq}).map(function(Ea){return Ea.tileID})},Un.prototype.resize=function(te,me){this.width=te,this.height=me,this.pixelsToGLUnits=[2/te,-2/me],this._constrain(),this._calcMatrices()},aa.unmodified.get=function(){return this._unmodified},Un.prototype.zoomScale=function(te){return Math.pow(2,te)},Un.prototype.scaleZoom=function(te){return Math.log(te)/Math.LN2},Un.prototype.project=function(te){var me=i.clamp(te.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(te.lng)*this.worldSize,i.mercatorYfromLat(me)*this.worldSize)},Un.prototype.unproject=function(te){return new i.MercatorCoordinate(te.x/this.worldSize,te.y/this.worldSize).toLngLat()},aa.point.get=function(){return this.project(this.center)},Un.prototype.setLocationAtPoint=function(te,me){var se=this.pointCoordinate(me),ye=this.pointCoordinate(this.centerPoint),He=this.locationCoordinate(te),Qe=new i.MercatorCoordinate(He.x-(se.x-ye.x),He.y-(se.y-ye.y));this.center=this.coordinateLocation(Qe),this._renderWorldCopies&&(this.center=this.center.wrap())},Un.prototype.locationPoint=function(te){return this.coordinatePoint(this.locationCoordinate(te))},Un.prototype.pointLocation=function(te){return this.coordinateLocation(this.pointCoordinate(te))},Un.prototype.locationCoordinate=function(te){return i.MercatorCoordinate.fromLngLat(te)},Un.prototype.coordinateLocation=function(te){return te.toLngLat()},Un.prototype.pointCoordinate=function(te){var me=0,se=[te.x,te.y,0,1],ye=[te.x,te.y,1,1];i.transformMat4(se,se,this.pixelMatrixInverse),i.transformMat4(ye,ye,this.pixelMatrixInverse);var He=se[3],Qe=ye[3],pt=se[0]/He,kt=ye[0]/Qe,$t=se[1]/He,tr=ye[1]/Qe,cr=se[2]/He,ur=ye[2]/Qe,zr=cr===ur?0:(me-cr)/(ur-cr);return new i.MercatorCoordinate(i.number(pt,kt,zr)/this.worldSize,i.number($t,tr,zr)/this.worldSize)},Un.prototype.coordinatePoint=function(te){var me=[te.x*this.worldSize,te.y*this.worldSize,0,1];return i.transformMat4(me,me,this.pixelMatrix),new i.Point(me[0]/me[3],me[1]/me[3])},Un.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Un.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Un.prototype.setMaxBounds=function(te){te?(this.lngRange=[te.getWest(),te.getEast()],this.latRange=[te.getSouth(),te.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Un.prototype.calculatePosMatrix=function(te,me){me===void 0&&(me=!1);var se=te.key,ye=me?this._alignedPosMatrixCache:this._posMatrixCache;if(ye[se])return ye[se];var He=te.canonical,Qe=this.worldSize/this.zoomScale(He.z),pt=He.x+Math.pow(2,He.z)*te.wrap,kt=i.identity(new Float64Array(16));return i.translate(kt,kt,[pt*Qe,He.y*Qe,0]),i.scale(kt,kt,[Qe/i.EXTENT,Qe/i.EXTENT,1]),i.multiply(kt,me?this.alignedProjMatrix:this.projMatrix,kt),ye[se]=new Float32Array(kt),ye[se]},Un.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Un.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var te=-90,me=90,se=-180,ye=180,He,Qe,pt,kt,$t=this.size,tr=this._unmodified;if(this.latRange){var cr=this.latRange;te=i.mercatorYfromLat(cr[1])*this.worldSize,me=i.mercatorYfromLat(cr[0])*this.worldSize,He=me-te<$t.y?$t.y/(me-te):0}if(this.lngRange){var ur=this.lngRange;se=i.mercatorXfromLng(ur[0])*this.worldSize,ye=i.mercatorXfromLng(ur[1])*this.worldSize,Qe=ye-se<$t.x?$t.x/(ye-se):0}var zr=this.point,Jr=Math.max(Qe||0,He||0);if(Jr){this.center=this.unproject(new i.Point(Qe?(ye+se)/2:zr.x,He?(me+te)/2:zr.y)),this.zoom+=this.scaleZoom(Jr),this._unmodified=tr,this._constraining=!1;return}if(this.latRange){var Kr=zr.y,Yr=$t.y/2;Kr-Yrme&&(kt=me-Yr)}if(this.lngRange){var en=zr.x,mn=$t.x/2;en-mnye&&(pt=ye-mn)}(pt!==void 0||kt!==void 0)&&(this.center=this.unproject(new i.Point(pt!==void 0?pt:zr.x,kt!==void 0?kt:zr.y))),this._unmodified=tr,this._constraining=!1}},Un.prototype._calcMatrices=function(){if(this.height){var te=this._fov/2,me=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(te)*this.height;var se=Math.PI/2+this._pitch,ye=this._fov*(.5+me.y/this.height),He=Math.sin(ye)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-se-ye,.01,Math.PI-.01)),Qe=this.point,pt=Qe.x,kt=Qe.y,$t=Math.cos(Math.PI/2-this._pitch)*He+this.cameraToCenterDistance,tr=$t*1.01,cr=this.height/50,ur=new Float64Array(16);i.perspective(ur,this._fov,this.width/this.height,cr,tr),ur[8]=-me.x*2/this.width,ur[9]=me.y*2/this.height,i.scale(ur,ur,[1,-1,1]),i.translate(ur,ur,[0,0,-this.cameraToCenterDistance]),i.rotateX(ur,ur,this._pitch),i.rotateZ(ur,ur,this.angle),i.translate(ur,ur,[-pt,-kt,0]),this.mercatorMatrix=i.scale([],ur,[this.worldSize,this.worldSize,this.worldSize]),i.scale(ur,ur,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=ur,this.invProjMatrix=i.invert([],this.projMatrix);var zr=this.width%2/2,Jr=this.height%2/2,Kr=Math.cos(this.angle),Yr=Math.sin(this.angle),en=pt-Math.round(pt)+Kr*zr+Yr*Jr,mn=kt-Math.round(kt)+Kr*Jr+Yr*zr,Vn=new Float64Array(ur);if(i.translate(Vn,Vn,[en>.5?en-1:en,mn>.5?mn-1:mn,0]),this.alignedProjMatrix=Vn,ur=i.create(),i.scale(ur,ur,[this.width/2,-this.height/2,1]),i.translate(ur,ur,[1,-1,0]),this.labelPlaneMatrix=ur,ur=i.create(),i.scale(ur,ur,[1,-1,1]),i.translate(ur,ur,[-1,-1,0]),i.scale(ur,ur,[2/this.width,2/this.height,1]),this.glCoordMatrix=ur,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),ur=i.invert(new Float64Array(16),this.pixelMatrix),!ur)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ur,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Un.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var te=this.pointCoordinate(new i.Point(0,0)),me=[te.x*this.worldSize,te.y*this.worldSize,0,1],se=i.transformMat4(me,me,this.pixelMatrix);return se[3]/this.cameraToCenterDistance},Un.prototype.getCameraPoint=function(){var te=this._pitch,me=Math.tan(te)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,me))},Un.prototype.getCameraQueryGeometry=function(te){var me=this.getCameraPoint();if(te.length===1)return[te[0],me];for(var se=me.x,ye=me.y,He=me.x,Qe=me.y,pt=0,kt=te;pt=3&&!te.some(function(se){return isNaN(se)})){var me=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(te[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+te[2],+te[1]],zoom:+te[0],bearing:me,pitch:+(te[4]||0)}),!0}return!1},Xa.prototype._updateHashUnthrottled=function(){var te=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,te)}catch{}};var Ja={linearity:.3,easing:i.bezier(0,0,.3,1)},ri=i.extend({deceleration:2500,maxSpeed:1400},Ja),yi=i.extend({deceleration:20,maxSpeed:1400},Ja),Xi=i.extend({deceleration:1e3,maxSpeed:360},Ja),Ro=i.extend({deceleration:1e3,maxSpeed:90},Ja),ve=function(te){this._map=te,this.clear()};ve.prototype.clear=function(){this._inertiaBuffer=[]},ve.prototype.record=function(te){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:te})},ve.prototype._drainInertiaBuffer=function(){for(var te=this._inertiaBuffer,me=i.browser.now(),se=160;te.length>0&&me-te[0].time>se;)te.shift()},ve.prototype._onMoveEnd=function(te){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var me={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},se=0,ye=this._inertiaBuffer;se=this._clickTolerance||this._map.fire(new it(te.type,this._map,te))},Dt.prototype.dblclick=function(te){return this._firePreventable(new it(te.type,this._map,te))},Dt.prototype.mouseover=function(te){this._map.fire(new it(te.type,this._map,te))},Dt.prototype.mouseout=function(te){this._map.fire(new it(te.type,this._map,te))},Dt.prototype.touchstart=function(te){return this._firePreventable(new ct(te.type,this._map,te))},Dt.prototype.touchmove=function(te){this._map.fire(new ct(te.type,this._map,te))},Dt.prototype.touchend=function(te){this._map.fire(new ct(te.type,this._map,te))},Dt.prototype.touchcancel=function(te){this._map.fire(new ct(te.type,this._map,te))},Dt.prototype._firePreventable=function(te){if(this._map.fire(te),te.defaultPrevented)return{}},Dt.prototype.isEnabled=function(){return!0},Dt.prototype.isActive=function(){return!1},Dt.prototype.enable=function(){},Dt.prototype.disable=function(){};var Et=function(te){this._map=te};Et.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Et.prototype.mousemove=function(te){this._map.fire(new it(te.type,this._map,te))},Et.prototype.mousedown=function(){this._delayContextMenu=!0},Et.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new it("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Et.prototype.contextmenu=function(te){this._delayContextMenu?this._contextMenuEvent=te:this._map.fire(new it(te.type,this._map,te)),this._map.listens("contextmenu")&&te.preventDefault()},Et.prototype.isEnabled=function(){return!0},Et.prototype.isActive=function(){return!1},Et.prototype.enable=function(){},Et.prototype.disable=function(){};var Yt=function(te,me){this._map=te,this._el=te.getCanvasContainer(),this._container=te.getContainer(),this._clickTolerance=me.clickTolerance||1};Yt.prototype.isEnabled=function(){return!!this._enabled},Yt.prototype.isActive=function(){return!!this._active},Yt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Yt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yt.prototype.mousedown=function(te,me){this.isEnabled()&&te.shiftKey&&te.button===0&&(w.disableDrag(),this._startPos=this._lastPos=me,this._active=!0)},Yt.prototype.mousemoveWindow=function(te,me){if(this._active){var se=me;if(!(this._lastPos.equals(se)||!this._box&&se.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=te.timeStamp),se.length===this.numTouches&&(this.centroid=nr(me),this.touches=Zt(se,me)))},dn.prototype.touchmove=function(te,me,se){if(!(this.aborted||!this.centroid)){var ye=Zt(se,me);for(var He in this.touches){var Qe=this.touches[He],pt=ye[He];(!pt||pt.dist(Qe)>tn)&&(this.aborted=!0)}}},dn.prototype.touchend=function(te,me,se){if((!this.centroid||te.timeStamp-this.startTime>Rr)&&(this.aborted=!0),se.length===0){var ye=!this.aborted&&this.centroid;if(this.reset(),ye)return ye}};var Or=function(te){this.singleTap=new dn(te),this.numTaps=te.numTaps,this.reset()};Or.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Or.prototype.touchstart=function(te,me,se){this.singleTap.touchstart(te,me,se)},Or.prototype.touchmove=function(te,me,se){this.singleTap.touchmove(te,me,se)},Or.prototype.touchend=function(te,me,se){var ye=this.singleTap.touchend(te,me,se);if(ye){var He=te.timeStamp-this.lastTime0&&(this._active=!0);var ye=Zt(se,me),He=new i.Point(0,0),Qe=new i.Point(0,0),pt=0;for(var kt in ye){var $t=ye[kt],tr=this._touches[kt];tr&&(He._add($t),Qe._add($t.sub(tr)),pt++,ye[kt]=$t)}if(this._touches=ye,!(ptMath.abs(pe.x)}var Ua=100,xi=function(pe){function te(){pe.apply(this,arguments)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.reset=function(){pe.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},te.prototype._start=function(se){this._lastPoints=se,si(se[0].sub(se[1]))&&(this._valid=!1)},te.prototype._move=function(se,ye,He){var Qe=se[0].sub(this._lastPoints[0]),pt=se[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Qe,pt,He.timeStamp),!!this._valid){this._lastPoints=se,this._active=!0;var kt=(Qe.y+pt.y)/2,$t=-.5;return{pitchDelta:kt*$t}}},te.prototype.gestureBeginsVertically=function(se,ye,He){if(this._valid!==void 0)return this._valid;var Qe=2,pt=se.mag()>=Qe,kt=ye.mag()>=Qe;if(!(!pt&&!kt)){if(!pt||!kt)return this._firstMove===void 0&&(this._firstMove=He),He-this._firstMove0==ye.y>0;return si(se)&&si(ye)&&$t}},te}(Sa),so={panStep:100,bearingStep:15,pitchStep:10},Fi=function(){var te=so;this._panStep=te.panStep,this._bearingStep=te.bearingStep,this._pitchStep=te.pitchStep,this._rotationDisabled=!1};Fi.prototype.reset=function(){this._active=!1},Fi.prototype.keydown=function(te){var me=this;if(!(te.altKey||te.ctrlKey||te.metaKey)){var se=0,ye=0,He=0,Qe=0,pt=0;switch(te.keyCode){case 61:case 107:case 171:case 187:se=1;break;case 189:case 109:case 173:se=-1;break;case 37:te.shiftKey?ye=-1:(te.preventDefault(),Qe=-1);break;case 39:te.shiftKey?ye=1:(te.preventDefault(),Qe=1);break;case 38:te.shiftKey?He=1:(te.preventDefault(),pt=-1);break;case 40:te.shiftKey?He=-1:(te.preventDefault(),pt=1);break;default:return}return this._rotationDisabled&&(ye=0,He=0),{cameraAnimation:function(kt){var $t=kt.getZoom();kt.easeTo({duration:300,easeId:"keyboardHandler",easing:ns,zoom:se?Math.round($t)+se*(te.shiftKey?2:1):$t,bearing:kt.getBearing()+ye*me._bearingStep,pitch:kt.getPitch()+He*me._pitchStep,offset:[-Qe*me._panStep,-pt*me._panStep],center:kt.getCenter()},{originalEvent:te})}}}},Fi.prototype.enable=function(){this._enabled=!0},Fi.prototype.disable=function(){this._enabled=!1,this.reset()},Fi.prototype.isEnabled=function(){return this._enabled},Fi.prototype.isActive=function(){return this._active},Fi.prototype.disableRotation=function(){this._rotationDisabled=!0},Fi.prototype.enableRotation=function(){this._rotationDisabled=!1};function ns(pe){return pe*(2-pe)}var as=4.000244140625,cs=1/100,lo=1/450,Ts=2,ba=function(te,me){this._map=te,this._el=te.getCanvasContainer(),this._handler=me,this._delta=0,this._defaultZoomRate=cs,this._wheelZoomRate=lo,i.bindAll(["_onTimeout"],this)};ba.prototype.setZoomRate=function(te){this._defaultZoomRate=te},ba.prototype.setWheelZoomRate=function(te){this._wheelZoomRate=te},ba.prototype.isEnabled=function(){return!!this._enabled},ba.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},ba.prototype.isZooming=function(){return!!this._zooming},ba.prototype.enable=function(te){this.isEnabled()||(this._enabled=!0,this._aroundCenter=te&&te.around==="center")},ba.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},ba.prototype.wheel=function(te){if(this.isEnabled()){var me=te.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?te.deltaY*40:te.deltaY,se=i.browser.now(),ye=se-(this._lastWheelEventTime||0);this._lastWheelEventTime=se,me!==0&&me%as===0?this._type="wheel":me!==0&&Math.abs(me)<4?this._type="trackpad":ye>400?(this._type=null,this._lastValue=me,this._timeout=setTimeout(this._onTimeout,40,te)):this._type||(this._type=Math.abs(ye*me)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,me+=this._lastValue)),te.shiftKey&&me&&(me=me/4),this._type&&(this._lastWheelEvent=te,this._delta-=me,this._active||this._start(te)),te.preventDefault()}},ba.prototype._onTimeout=function(te){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(te)},ba.prototype._start=function(te){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 me=w.mousePos(this._el,te);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(me)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ba.prototype.renderFrame=function(){var te=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var me=this._map.transform;if(this._delta!==0){var se=this._type==="wheel"&&Math.abs(this._delta)>as?this._wheelZoomRate:this._defaultZoomRate,ye=Ts/(1+Math.exp(-Math.abs(this._delta*se)));this._delta<0&&ye!==0&&(ye=1/ye);var He=typeof this._targetZoom=="number"?me.zoomScale(this._targetZoom):me.scale;this._targetZoom=Math.min(me.maxZoom,Math.max(me.minZoom,me.scaleZoom(He*ye))),this._type==="wheel"&&(this._startZoom=me.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Qe=typeof this._targetZoom=="number"?this._targetZoom:me.zoom,pt=this._startZoom,kt=this._easing,$t=!1,tr;if(this._type==="wheel"&&pt&&kt){var cr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),ur=kt(cr);tr=i.number(pt,Qe,ur),cr<1?this._frameId||(this._frameId=!0):$t=!0}else tr=Qe,$t=!0;return this._active=!0,$t&&(this._active=!1,this._finishTimeout=setTimeout(function(){te._zooming=!1,te._handler._triggerRenderFrame(),delete te._targetZoom,delete te._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!$t,zoomDelta:tr-me.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ba.prototype._smoothOutEasing=function(te){var me=i.ease;if(this._prevEase){var se=this._prevEase,ye=(i.browser.now()-se.start)/se.duration,He=se.easing(ye+.01)-se.easing(ye),Qe=.27/Math.sqrt(He*He+1e-4)*.01,pt=Math.sqrt(.27*.27-Qe*Qe);me=i.bezier(Qe,pt,.25,1)}return this._prevEase={start:i.browser.now(),duration:te,easing:me},me},ba.prototype.reset=function(){this._active=!1};var Ga=function(te,me){this._clickZoom=te,this._tapZoom=me};Ga.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Ga.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Ga.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Ga.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ws=function(){this.reset()};Ws.prototype.reset=function(){this._active=!1},Ws.prototype.dblclick=function(te,me){return te.preventDefault(),{cameraAnimation:function(se){se.easeTo({duration:300,zoom:se.getZoom()+(te.shiftKey?-1:1),around:se.unproject(me)},{originalEvent:te})}}},Ws.prototype.enable=function(){this._enabled=!0},Ws.prototype.disable=function(){this._enabled=!1,this.reset()},Ws.prototype.isEnabled=function(){return this._enabled},Ws.prototype.isActive=function(){return this._active};var el=function(){this._tap=new Or({numTouches:1,numTaps:1}),this.reset()};el.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},el.prototype.touchstart=function(te,me,se){this._swipePoint||(this._tapTime&&te.timeStamp-this._tapTime>Ir&&this.reset(),this._tapTime?se.length>0&&(this._swipePoint=me[0],this._swipeTouch=se[0].identifier):this._tap.touchstart(te,me,se))},el.prototype.touchmove=function(te,me,se){if(!this._tapTime)this._tap.touchmove(te,me,se);else if(this._swipePoint){if(se[0].identifier!==this._swipeTouch)return;var ye=me[0],He=ye.y-this._swipePoint.y;return this._swipePoint=ye,te.preventDefault(),this._active=!0,{zoomDelta:He/128}}},el.prototype.touchend=function(te,me,se){if(this._tapTime)this._swipePoint&&se.length===0&&this.reset();else{var ye=this._tap.touchend(te,me,se);ye&&(this._tapTime=te.timeStamp)}},el.prototype.touchcancel=function(){this.reset()},el.prototype.enable=function(){this._enabled=!0},el.prototype.disable=function(){this._enabled=!1,this.reset()},el.prototype.isEnabled=function(){return this._enabled},el.prototype.isActive=function(){return this._active};var fs=function(te,me,se){this._el=te,this._mousePan=me,this._touchPan=se};fs.prototype.enable=function(te){this._inertiaOptions=te||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},fs.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},fs.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},fs.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Wi=function(te,me,se){this._pitchWithRotate=te.pitchWithRotate,this._mouseRotate=me,this._mousePitch=se};Wi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Wi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Wi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Wi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var $o=function(te,me,se,ye){this._el=te,this._touchZoom=me,this._touchRotate=se,this._tapDragZoom=ye,this._rotationDisabled=!1,this._enabled=!0};$o.prototype.enable=function(te){this._touchZoom.enable(te),this._rotationDisabled||this._touchRotate.enable(te),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},$o.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},$o.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},$o.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},$o.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},$o.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var No=function(pe){return pe.zoom||pe.drag||pe.pitch||pe.rotate},Vl=function(pe){function te(){pe.apply(this,arguments)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te}(i.Event);function fu(pe){return pe.panDelta&&pe.panDelta.mag()||pe.zoomDelta||pe.bearingDelta||pe.pitchDelta}var bo=function(te,me){this._map=te,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ve(te),this._bearingSnap=me.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(me),i.bindAll(["handleEvent","handleWindowEvent"],this);var se=this._el;this._listeners=[[se,"touchstart",{passive:!0}],[se,"touchmove",{passive:!1}],[se,"touchend",void 0],[se,"touchcancel",void 0],[se,"mousedown",void 0],[se,"mousemove",void 0],[se,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[se,"mouseover",void 0],[se,"mouseout",void 0],[se,"dblclick",void 0],[se,"click",void 0],[se,"keydown",{capture:!1}],[se,"keyup",void 0],[se,"wheel",{passive:!1}],[se,"contextmenu",void 0],[i.window,"blur",void 0]];for(var ye=0,He=this._listeners;yept?Math.min(2,ra):Math.max(.5,ra),Ea=Math.pow(_a,1-da),ti=Qe.unproject(Vn.add($n.mult(da*Ea)).mult(wa));Qe.setLocationAtPoint(Qe.renderWorldCopies?ti.wrap():ti,Yr)}He._fireMoveEvents(ye)},function(da){He._afterEase(ye,da)},se),this},te.prototype._prepareEase=function(se,ye,He){He===void 0&&(He={}),this._moving=!0,!ye&&!He.moving&&this.fire(new i.Event("movestart",se)),this._zooming&&!He.zooming&&this.fire(new i.Event("zoomstart",se)),this._rotating&&!He.rotating&&this.fire(new i.Event("rotatestart",se)),this._pitching&&!He.pitching&&this.fire(new i.Event("pitchstart",se))},te.prototype._fireMoveEvents=function(se){this.fire(new i.Event("move",se)),this._zooming&&this.fire(new i.Event("zoom",se)),this._rotating&&this.fire(new i.Event("rotate",se)),this._pitching&&this.fire(new i.Event("pitch",se))},te.prototype._afterEase=function(se,ye){if(!(this._easeId&&ye&&this._easeId===ye)){delete this._easeId;var He=this._zooming,Qe=this._rotating,pt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,He&&this.fire(new i.Event("zoomend",se)),Qe&&this.fire(new i.Event("rotateend",se)),pt&&this.fire(new i.Event("pitchend",se)),this.fire(new i.Event("moveend",se))}},te.prototype.flyTo=function(se,ye){var He=this;if(!se.essential&&i.browser.prefersReducedMotion){var Qe=i.pick(se,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Qe,ye)}this.stop(),se=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},se);var pt=this.transform,kt=this.getZoom(),$t=this.getBearing(),tr=this.getPitch(),cr=this.getPadding(),ur="zoom"in se?i.clamp(+se.zoom,pt.minZoom,pt.maxZoom):kt,zr="bearing"in se?this._normalizeBearing(se.bearing,$t):$t,Jr="pitch"in se?+se.pitch:tr,Kr="padding"in se?se.padding:pt.padding,Yr=pt.zoomScale(ur-kt),en=i.Point.convert(se.offset),mn=pt.centerPoint.add(en),Vn=pt.pointLocation(mn),$n=i.LngLat.convert(se.center||Vn);this._normalizeCenter($n);var ra=pt.project(Vn),na=pt.project($n).sub(ra),Qn=se.curve,ia=Math.max(pt.width,pt.height),da=ia/Yr,wa=na.mag();if("minZoom"in se){var _a=i.clamp(Math.min(se.minZoom,kt,ur),pt.minZoom,pt.maxZoom),Ea=ia/pt.zoomScale(_a-kt);Qn=Math.sqrt(Ea/wa*2)}var ti=Qn*Qn;function Ci(ui){var Ai=(da*da-ia*ia+(ui?-1:1)*ti*ti*wa*wa)/(2*(ui?da:ia)*ti*wa);return Math.log(Math.sqrt(Ai*Ai+1)-Ai)}function di(ui){return(Math.exp(ui)-Math.exp(-ui))/2}function Ha(ui){return(Math.exp(ui)+Math.exp(-ui))/2}function gi(ui){return di(ui)/Ha(ui)}var li=Ci(0),_i=function(ui){return Ha(li)/Ha(li+Qn*ui)},Pi=function(ui){return ia*((Ha(li)*gi(li+Qn*ui)-di(li))/ti)/wa},fo=(Ci(1)-li)/Qn;if(Math.abs(wa)<1e-6||!isFinite(fo)){if(Math.abs(ia-da)<1e-6)return this.easeTo(se,ye);var Ti=dase.maxDuration&&(se.duration=0),this._zooming=!0,this._rotating=$t!==zr,this._pitching=Jr!==tr,this._padding=!pt.isPaddingEqual(Kr),this._prepareEase(ye,!1),this._ease(function(ui){var Ai=ui*fo,Uo=1/_i(Ai);pt.zoom=ui===1?ur:kt+pt.scaleZoom(Uo),He._rotating&&(pt.bearing=i.number($t,zr,ui)),He._pitching&&(pt.pitch=i.number(tr,Jr,ui)),He._padding&&(pt.interpolatePadding(cr,Kr,ui),mn=pt.centerPoint.add(en));var Ss=ui===1?$n:pt.unproject(ra.add(na.mult(Pi(Ai))).mult(Uo));pt.setLocationAtPoint(pt.renderWorldCopies?Ss.wrap():Ss,mn),He._fireMoveEvents(ye)},function(){return He._afterEase(ye)},se),this},te.prototype.isEasing=function(){return!!this._easeFrameId},te.prototype.stop=function(){return this._stop()},te.prototype._stop=function(se,ye){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var He=this._onEaseEnd;delete this._onEaseEnd,He.call(this,ye)}if(!se){var Qe=this.handlers;Qe&&Qe.stop(!1)}return this},te.prototype._ease=function(se,ye,He){He.animate===!1||He.duration===0?(se(1),ye()):(this._easeStart=i.browser.now(),this._easeOptions=He,this._onEaseFrame=se,this._onEaseEnd=ye,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},te.prototype._renderFrameCallback=function(){var se=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(se)),se<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},te.prototype._normalizeBearing=function(se,ye){se=i.wrap(se,-180,180);var He=Math.abs(se-ye);return Math.abs(se-360-ye)180?-360:He<-180?360:0}},te}(i.Evented),bi=function(te){te===void 0&&(te={}),this.options=te,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(te){var me=this.options&&this.options.compact;return this._map=te,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),me&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),me===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){w.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(te,me){var se=this._map._getUIString("AttributionControl."+me);te.title=se,te.setAttribute("aria-label",se)},bi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bi.prototype._updateEditLink=function(){var te=this._editLink;te||(te=this._editLink=this._container.querySelector(".mapbox-improve-map"));var me=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(te){var se=me.reduce(function(ye,He,Qe){return He.value&&(ye+=He.key+"="+He.value+(Qe=0)return!1;return!0});var pt=te.join(" | ");pt!==this._attribHTML&&(this._attribHTML=pt,te.length?(this._innerContainer.innerHTML=pt,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var wo=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};wo.prototype.onAdd=function(te){this._map=te,this._container=w.create("div","mapboxgl-ctrl");var me=w.create("a","mapboxgl-ctrl-logo");return me.target="_blank",me.rel="noopener nofollow",me.href="https://www.mapbox.com/",me.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),me.setAttribute("rel","noopener nofollow"),this._container.appendChild(me),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},wo.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},wo.prototype.getDefaultPosition=function(){return"bottom-left"},wo.prototype._updateLogo=function(te){(!te||te.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},wo.prototype._logoRequired=function(){if(this._map.style){var te=this._map.style.sourceCaches;for(var me in te){var se=te[me].getSource();if(se.mapbox_logo)return!0}return!1}},wo.prototype._updateCompact=function(){var te=this._container.children;if(te.length){var me=te[0];this._map.getCanvasContainer().offsetWidth<250?me.classList.add("mapboxgl-compact"):me.classList.remove("mapboxgl-compact")}};var x0=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};x0.prototype.add=function(te){var me=++this._id,se=this._queue;return se.push({callback:te,id:me,cancelled:!1}),me},x0.prototype.remove=function(te){for(var me=this._currentlyRunning,se=me?this._queue.concat(me):this._queue,ye=0,He=se;yese.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(se.minPitch!=null&&se.maxPitch!=null&&se.minPitch>se.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(se.minPitch!=null&&se.minPitchGd)throw new Error("maxPitch must be less than or equal to "+Gd);var He=new Un(se.minZoom,se.maxZoom,se.minPitch,se.maxPitch,se.renderWorldCopies);if(pe.call(this,He,se),this._interactive=se.interactive,this._maxTileCacheSize=se.maxTileCacheSize,this._failIfMajorPerformanceCaveat=se.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=se.preserveDrawingBuffer,this._antialias=se.antialias,this._trackResize=se.trackResize,this._bearingSnap=se.bearingSnap,this._refreshExpiredTiles=se.refreshExpiredTiles,this._fadeDuration=se.fadeDuration,this._crossSourceCollisions=se.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=se.collectResourceTiming,this._renderTaskQueue=new x0,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},jb,se.locale),this._clickTolerance=se.clickTolerance,this._requestManager=new i.RequestManager(se.transformRequest,se.accessToken),typeof se.container=="string"){if(this._container=i.window.document.getElementById(se.container),!this._container)throw new Error("Container '"+se.container+"' not found.")}else if(se.container instanceof Zy)this._container=se.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(se.maxBounds&&this.setMaxBounds(se.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ye._update(!1)}),this.on("moveend",function(){return ye._update(!1)}),this.on("zoom",function(){return ye._update(!0)}),typeof i.window<"u"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new bo(this,se);var Qe=typeof se.hash=="string"&&se.hash||void 0;this._hash=se.hash&&new Xa(Qe).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:se.center,zoom:se.zoom,bearing:se.bearing,pitch:se.pitch}),se.bounds&&(this.resize(),this.fitBounds(se.bounds,i.extend({},se.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=se.localIdeographFontFamily,se.style&&this.setStyle(se.style,{localIdeographFontFamily:se.localIdeographFontFamily}),se.attributionControl&&this.addControl(new bi({customAttribution:se.customAttribution})),this.addControl(new wo,se.logoPosition),this.on("style.load",function(){ye.transform.unmodified&&ye.jumpTo(ye.style.stylesheet)}),this.on("data",function(pt){ye._update(pt.dataType==="style"),ye.fire(new i.Event(pt.dataType+"data",pt))}),this.on("dataloading",function(pt){ye.fire(new i.Event(pt.dataType+"dataloading",pt))})}pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te;var me={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return te.prototype._getMapId=function(){return this._mapId},te.prototype.addControl=function(ye,He){if(He===void 0&&(ye.getDefaultPosition?He=ye.getDefaultPosition():He="top-right"),!ye||!ye.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Qe=ye.onAdd(this);this._controls.push(ye);var pt=this._controlPositions[He];return He.indexOf("bottom")!==-1?pt.insertBefore(Qe,pt.firstChild):pt.appendChild(Qe),this},te.prototype.removeControl=function(ye){if(!ye||!ye.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var He=this._controls.indexOf(ye);return He>-1&&this._controls.splice(He,1),ye.onRemove(this),this},te.prototype.hasControl=function(ye){return this._controls.indexOf(ye)>-1},te.prototype.resize=function(ye){var He=this._containerDimensions(),Qe=He[0],pt=He[1];this._resizeCanvas(Qe,pt),this.transform.resize(Qe,pt),this.painter.resize(Qe,pt);var kt=!this._moving;return kt&&(this.stop(),this.fire(new i.Event("movestart",ye)).fire(new i.Event("move",ye))),this.fire(new i.Event("resize",ye)),kt&&this.fire(new i.Event("moveend",ye)),this},te.prototype.getBounds=function(){return this.transform.getBounds()},te.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},te.prototype.setMaxBounds=function(ye){return this.transform.setMaxBounds(i.LngLatBounds.convert(ye)),this._update()},te.prototype.setMinZoom=function(ye){if(ye=ye??Uv,ye>=Uv&&ye<=this.transform.maxZoom)return this.transform.minZoom=ye,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ye,this._update(),this.getZoom()>ye&&this.setZoom(ye),this;throw new Error("maxZoom must be greater than the current minZoom")},te.prototype.getMaxZoom=function(){return this.transform.maxZoom},te.prototype.setMinPitch=function(ye){if(ye=ye??Sl,ye=Sl&&ye<=this.transform.maxPitch)return this.transform.minPitch=ye,this._update(),this.getPitch()Gd)throw new Error("maxPitch must be less than or equal to "+Gd);if(ye>=this.transform.minPitch)return this.transform.maxPitch=ye,this._update(),this.getPitch()>ye&&this.setPitch(ye),this;throw new Error("maxPitch must be greater than the current minPitch")},te.prototype.getMaxPitch=function(){return this.transform.maxPitch},te.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},te.prototype.setRenderWorldCopies=function(ye){return this.transform.renderWorldCopies=ye,this._update()},te.prototype.project=function(ye){return this.transform.locationPoint(i.LngLat.convert(ye))},te.prototype.unproject=function(ye){return this.transform.pointLocation(i.Point.convert(ye))},te.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},te.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},te.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},te.prototype._createDelegatedListener=function(ye,He,Qe){var pt=this,kt;if(ye==="mouseenter"||ye==="mouseover"){var $t=!1,tr=function(Yr){var en=pt.getLayer(He)?pt.queryRenderedFeatures(Yr.point,{layers:[He]}):[];en.length?$t||($t=!0,Qe.call(pt,new it(ye,pt,Yr.originalEvent,{features:en}))):$t=!1},cr=function(){$t=!1};return{layer:He,listener:Qe,delegates:{mousemove:tr,mouseout:cr}}}else if(ye==="mouseleave"||ye==="mouseout"){var ur=!1,zr=function(Yr){var en=pt.getLayer(He)?pt.queryRenderedFeatures(Yr.point,{layers:[He]}):[];en.length?ur=!0:ur&&(ur=!1,Qe.call(pt,new it(ye,pt,Yr.originalEvent)))},Jr=function(Yr){ur&&(ur=!1,Qe.call(pt,new it(ye,pt,Yr.originalEvent)))};return{layer:He,listener:Qe,delegates:{mousemove:zr,mouseout:Jr}}}else{var Kr=function(Yr){var en=pt.getLayer(He)?pt.queryRenderedFeatures(Yr.point,{layers:[He]}):[];en.length&&(Yr.features=en,Qe.call(pt,Yr),delete Yr.features)};return{layer:He,listener:Qe,delegates:(kt={},kt[ye]=Kr,kt)}}},te.prototype.on=function(ye,He,Qe){if(Qe===void 0)return pe.prototype.on.call(this,ye,He);var pt=this._createDelegatedListener(ye,He,Qe);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ye]=this._delegatedListeners[ye]||[],this._delegatedListeners[ye].push(pt);for(var kt in pt.delegates)this.on(kt,pt.delegates[kt]);return this},te.prototype.once=function(ye,He,Qe){if(Qe===void 0)return pe.prototype.once.call(this,ye,He);var pt=this._createDelegatedListener(ye,He,Qe);for(var kt in pt.delegates)this.once(kt,pt.delegates[kt]);return this},te.prototype.off=function(ye,He,Qe){var pt=this;if(Qe===void 0)return pe.prototype.off.call(this,ye,He);var kt=function($t){for(var tr=$t[ye],cr=0;cr180;){var Qe=me.locationPoint(pe);if(Qe.x>=0&&Qe.y>=0&&Qe.x<=me.width&&Qe.y<=me.height)break;pe.lng>me.center.lng?pe.lng-=360:pe.lng+=360}return pe}var w0={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 Pg(pe,te,me){var se=pe.classList;for(var ye in w0)se.remove("mapboxgl-"+me+"-anchor-"+ye);se.add("mapboxgl-"+me+"-anchor-"+te)}var Vv=function(pe){function te(me,se){if(pe.call(this),(me instanceof i.window.HTMLElement||se)&&(me=i.extend({element:me},se)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=me&&me.anchor||"center",this._color=me&&me.color||"#3FB1CE",this._scale=me&&me.scale||1,this._draggable=me&&me.draggable||!1,this._clickTolerance=me&&me.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=me&&me.rotation||0,this._rotationAlignment=me&&me.rotationAlignment||"auto",this._pitchAlignment=me&&me.pitchAlignment&&me.pitchAlignment!=="auto"?me.pitchAlignment:this._rotationAlignment,!me||!me.element){this._defaultMarker=!0,this._element=w.create("div"),this._element.setAttribute("aria-label","Map marker");var ye=w.createNS("http://www.w3.org/2000/svg","svg"),He=41,Qe=27;ye.setAttributeNS(null,"display","block"),ye.setAttributeNS(null,"height",He+"px"),ye.setAttributeNS(null,"width",Qe+"px"),ye.setAttributeNS(null,"viewBox","0 0 "+Qe+" "+He);var pt=w.createNS("http://www.w3.org/2000/svg","g");pt.setAttributeNS(null,"stroke","none"),pt.setAttributeNS(null,"stroke-width","1"),pt.setAttributeNS(null,"fill","none"),pt.setAttributeNS(null,"fill-rule","evenodd");var kt=w.createNS("http://www.w3.org/2000/svg","g");kt.setAttributeNS(null,"fill-rule","nonzero");var $t=w.createNS("http://www.w3.org/2000/svg","g");$t.setAttributeNS(null,"transform","translate(3.0, 29.0)"),$t.setAttributeNS(null,"fill","#000000");for(var tr=[{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"}],cr=0,ur=tr;cr=ye}this._isDragging&&(this._pos=se.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},te.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),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},te.prototype._addDragHandler=function(se){this._element.contains(se.originalEvent.target)&&(se.preventDefault(),this._positionDelta=se.point.sub(this._pos).add(this._offset),this._pointerdownPos=se.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))},te.prototype.setDraggable=function(se){return this._draggable=!!se,this._map&&(se?(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},te.prototype.isDraggable=function(){return this._draggable},te.prototype.setRotation=function(se){return this._rotation=se||0,this._update(),this},te.prototype.getRotation=function(){return this._rotation},te.prototype.setRotationAlignment=function(se){return this._rotationAlignment=se||"auto",this._update(),this},te.prototype.getRotationAlignment=function(){return this._rotationAlignment},te.prototype.setPitchAlignment=function(se){return this._pitchAlignment=se&&se!=="auto"?se:this._rotationAlignment,this._update(),this},te.prototype.getPitchAlignment=function(){return this._pitchAlignment},te}(i.Evented),Qy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Wd;function T0(pe){Wd!==void 0?pe(Wd):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(te){Wd=te.state!=="denied",pe(Wd)}):(Wd=!!i.window.navigator.geolocation,pe(Wd))}var jv=0,_h=!1,Gb=function(pe){function te(me){pe.call(this),this.options=i.extend({},Qy,me),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.onAdd=function(se){return this._map=se,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),T0(this._setupUI),this._container},te.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.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(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,jv=0,_h=!1},te.prototype._isOutOfMapMaxBounds=function(se){var ye=this._map.getMaxBounds(),He=se.coords;return ye&&(He.longitudeye.getEast()||He.latitudeye.getNorth())},te.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},te.prototype._onSuccess=function(se){if(this._map){if(this._isOutOfMapMaxBounds(se)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",se)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=se,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(se),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(se),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",se)),this._finish()}},te.prototype._updateCamera=function(se){var ye=new i.LngLat(se.coords.longitude,se.coords.latitude),He=se.coords.accuracy,Qe=this._map.getBearing(),pt=i.extend({bearing:Qe},this.options.fitBoundsOptions);this._map.fitBounds(ye.toBounds(He),pt,{geolocateSource:!0})},te.prototype._updateMarker=function(se){if(se){var ye=new i.LngLat(se.coords.longitude,se.coords.latitude);this._accuracyCircleMarker.setLngLat(ye).addTo(this._map),this._userLocationDotMarker.setLngLat(ye).addTo(this._map),this._accuracy=se.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},te.prototype._updateCircleRadius=function(){var se=this._map._container.clientHeight/2,ye=this._map.unproject([0,se]),He=this._map.unproject([1,se]),Qe=ye.distanceTo(He),pt=Math.ceil(2*this._accuracy/Qe);this._circleElement.style.width=pt+"px",this._circleElement.style.height=pt+"px"},te.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},te.prototype._onError=function(se){if(this._map){if(this.options.trackUserLocation)if(se.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var ye=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ye,this._geolocateButton.setAttribute("aria-label",ye),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(se.code===3&&_h)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",se)),this._finish()}},te.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},te.prototype._setupUI=function(se){var ye=this;if(this._container.addEventListener("contextmenu",function(pt){return pt.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",se===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var He=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=He,this._geolocateButton.setAttribute("aria-label",He)}else{var Qe=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Qe,this._geolocateButton.setAttribute("aria-label",Qe)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Vv(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vv({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(pt){var kt=pt.originalEvent&&pt.originalEvent.type==="resize";!pt.geolocateSource&&ye._watchState==="ACTIVE_LOCK"&&!kt&&(ye._watchState="BACKGROUND",ye._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ye._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ye.fire(new i.Event("trackuserlocationend")))})},te.prototype.trigger=function(){if(!this._setup)return i.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 i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":jv--,_h=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),jv++;var se;jv>1?(se={maximumAge:6e5,timeout:0},_h=!0):(se=this.options.positionOptions,_h=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,se)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},te.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},te}(i.Evented),qy={maxWidth:100,unit:"metric"},zh=function(te){this.options=i.extend({},qy,te),i.bindAll(["_onMove","setUnit"],this)};zh.prototype.getDefaultPosition=function(){return"bottom-left"},zh.prototype._onMove=function(){e1(this._map,this._container,this.options)},zh.prototype.onAdd=function(te){return this._map=te,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",te.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},zh.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},zh.prototype.setUnit=function(te){this.options.unit=te,e1(this._map,this._container,this.options)};function e1(pe,te,me){var se=me&&me.maxWidth||100,ye=pe._container.clientHeight/2,He=pe.unproject([0,ye]),Qe=pe.unproject([se,ye]),pt=He.distanceTo(Qe);if(me&&me.unit==="imperial"){var kt=3.2808*pt;if(kt>5280){var $t=kt/5280;Gv(te,se,$t,pe._getUIString("ScaleControl.Miles"))}else Gv(te,se,kt,pe._getUIString("ScaleControl.Feet"))}else if(me&&me.unit==="nautical"){var tr=pt/1852;Gv(te,se,tr,pe._getUIString("ScaleControl.NauticalMiles"))}else pt>=1e3?Gv(te,se,pt/1e3,pe._getUIString("ScaleControl.Kilometers")):Gv(te,se,pt,pe._getUIString("ScaleControl.Meters"))}function Gv(pe,te,me,se){var ye=$b(me),He=ye/me;pe.style.width=te*He+"px",pe.innerHTML=ye+" "+se}function Wb(pe){var te=Math.pow(10,Math.ceil(-Math.log(pe)/Math.LN10));return Math.round(pe*te)/te}function $b(pe){var te=Math.pow(10,(""+Math.floor(pe)).length-1),me=pe/te;return me=me>=10?10:me>=5?5:me>=3?3:me>=2?2:me>=1?1:Wb(me),te*me}var fc=function(te){this._fullscreen=!1,te&&te.container&&(te.container instanceof i.window.HTMLElement?this._container=te.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};fc.prototype.onAdd=function(te){return this._map=te,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},fc.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},fc.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},fc.prototype._setupUI=function(){var te=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",te).setAttribute("aria-hidden",!0),te.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},fc.prototype._updateTitle=function(){var te=this._getTitle();this._fullscreenButton.setAttribute("aria-label",te),this._fullscreenButton.title=te},fc.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},fc.prototype._isFullscreen=function(){return this._fullscreen},fc.prototype._changeIcon=function(){var te=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;te===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},fc.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.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 Yb={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Xb=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),qT=function(pe){function te(me){pe.call(this),this.options=i.extend(Object.create(Yb),me),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return pe&&(te.__proto__=pe),te.prototype=Object.create(pe&&pe.prototype),te.prototype.constructor=te,te.prototype.addTo=function(se){return this._map&&this.remove(),this._map=se,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("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},te.prototype.isOpen=function(){return!!this._map},te.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.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 i.Event("close")),this},te.prototype.getLngLat=function(){return this._lngLat},te.prototype.setLngLat=function(se){return this._lngLat=i.LngLat.convert(se),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},te.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},te.prototype.getElement=function(){return this._container},te.prototype.setText=function(se){return this.setDOMContent(i.window.document.createTextNode(se))},te.prototype.setHTML=function(se){var ye=i.window.document.createDocumentFragment(),He=i.window.document.createElement("body"),Qe;for(He.innerHTML=se;Qe=He.firstChild,!!Qe;)ye.appendChild(Qe);return this.setDOMContent(ye)},te.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},te.prototype.setMaxWidth=function(se){return this.options.maxWidth=se,this._update(),this},te.prototype.setDOMContent=function(se){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(se),this._createCloseButton(),this._update(),this._focusFirstElement(),this},te.prototype.addClassName=function(se){this._container&&this._container.classList.add(se)},te.prototype.removeClassName=function(se){this._container&&this._container.classList.remove(se)},te.prototype.setOffset=function(se){return this.options.offset=se,this._update(),this},te.prototype.toggleClassName=function(se){if(this._container)return this._container.classList.toggle(se)},te.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("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))},te.prototype._onMouseUp=function(se){this._update(se.point)},te.prototype._onMouseMove=function(se){this._update(se.point)},te.prototype._onDrag=function(se){this._update(se.point)},te.prototype._update=function(se){var ye=this,He=this._lngLat||this._trackPointer;if(!(!this._map||!He||!this._content)&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(zr){return ye._container.classList.add(zr)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=rd(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!se))){var Qe=this._pos=this._trackPointer&&se?se:this._map.project(this._lngLat),pt=this.options.anchor,kt=Zb(this.options.offset);if(!pt){var $t=this._container.offsetWidth,tr=this._container.offsetHeight,cr;Qe.y+kt.bottom.ythis._map.transform.height-tr?cr=["bottom"]:cr=[],Qe.x<$t/2?cr.push("left"):Qe.x>this._map.transform.width-$t/2&&cr.push("right"),cr.length===0?pt="bottom":pt=cr.join("-")}var ur=Qe.add(kt[pt]).round();w.setTransform(this._container,w0[pt]+" translate("+ur.x+"px,"+ur.y+"px)"),Pg(this._container,pt,"popup")}},te.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var se=this._container.querySelector(Xb);se&&se.focus()}},te.prototype._onClose=function(){this.remove()},te}(i.Evented);function Zb(pe){if(pe)if(typeof pe=="number"){var te=Math.round(Math.sqrt(.5*Math.pow(pe,2)));return{center:new i.Point(0,0),top:new i.Point(0,pe),"top-left":new i.Point(te,te),"top-right":new i.Point(-te,te),bottom:new i.Point(0,-pe),"bottom-left":new i.Point(te,-te),"bottom-right":new i.Point(-te,-te),left:new i.Point(pe,0),right:new i.Point(-pe,0)}}else if(pe instanceof i.Point||Array.isArray(pe)){var me=i.Point.convert(pe);return{center:me,top:me,"top-left":me,"top-right":me,bottom:me,"bottom-left":me,"bottom-right":me,left:me,right:me}}else return{center:i.Point.convert(pe.center||[0,0]),top:i.Point.convert(pe.top||[0,0]),"top-left":i.Point.convert(pe["top-left"]||[0,0]),"top-right":i.Point.convert(pe["top-right"]||[0,0]),bottom:i.Point.convert(pe.bottom||[0,0]),"bottom-left":i.Point.convert(pe["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(pe["bottom-right"]||[0,0]),left:i.Point.convert(pe.left||[0,0]),right:i.Point.convert(pe.right||[0,0])};else return Zb(new i.Point(0,0))}var ds={version:i.version,supported:C,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Jy,NavigationControl:td,GeolocateControl:Gb,AttributionControl:bi,ScaleControl:zh,FullscreenControl:fc,Popup:qT,Marker:Vv,Style:Js,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Bt,clearPrewarmedResources:Qt,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(pe){i.config.ACCESS_TOKEN=pe},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(pe){i.config.API_URL=pe},get workerCount(){return pr.workerCount},set workerCount(pe){pr.workerCount=pe},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(pe){i.config.MAX_PARALLEL_IMAGE_REQUESTS=pe},clearStorage:function(te){i.clearTileCache(te)},workerUrl:""};return ds}),l})},3108:function(D,O,t){D.exports=t(26099)},26099:function(D,O,t){var l=t(64928),S=t(32420),i=t(51160),C=t(76752),w=t(55616),v=t(31264),m=t(47520),a=t(18400),n=t(72512),s=t(76244),o=1073741824;D.exports=function(u,b){b||(b={}),u=m(u,"float64"),b=w(b,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var p=v(b.maxDepth,255),E=v(b.bounds,C(u,2));E[0]===E[2]&&E[2]++,E[1]===E[3]&&E[3]++;var g=h(u,E),c=u.length>>>1,y;b.dtype||(b.dtype="array"),typeof b.dtype=="string"?y=new(n(b.dtype))(c):b.dtype&&(y=b.dtype,Array.isArray(y)&&(y.length=c));for(var A=0;Ap||ie>o){for(var K=0;KUe||ce>Ne||re=de)&&be!==Ie){var ze=M[Ae];Ie===void 0&&(Ie=ze.length);for(var $e=be;$e=fe&&vt<=J&&at>=Q&&at<=oe&&he.push(st)}var nt=R[Ae],mt=nt[be*4+0],rt=nt[be*4+1],lt=nt[be*4+2],dt=nt[be*4+3],wt=Ee(nt,be+1),et=Te*.5,Be=Ae+1;xe(Se,ke,et,Be,mt,rt||lt||dt||wt),xe(Se,ke+et,et,Be,rt,lt||dt||wt),xe(Se+et,ke,et,Be,lt,dt||wt),xe(Se+et,ke+et,et,Be,dt,wt)}}}function Ee(Se,ke){for(var Te=null,Ae=0;Te===null;)if(Te=Se[ke*4+Ae],Ae++,Ae>Se.length)return null;return Te}return he}function H(V,$,Z,q,ae){for(var ie=[],fe=0;fe0){n+=Math.abs(v(a[0]));for(var s=1;s2){for(b=0;b=0))throw new Error("precision must be a positive number");var k=Math.pow(10,d||0);return Math.round(P*k)/k}O.round=f;function u(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P*k}O.radiansToLength=u;function b(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P/k}O.lengthToRadians=b;function p(P,d){return g(b(P,d))}O.lengthToDegrees=p;function E(P){var d=P%360;return d<0&&(d+=360),d}O.bearingToAzimuth=E;function g(P){var d=P%(2*Math.PI);return d*180/Math.PI}O.radiansToDegrees=g;function c(P){var d=P%360;return d*Math.PI/180}O.degreesToRadians=c;function y(P,d,k){if(d===void 0&&(d="kilometers"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("length must be a positive number");return u(b(P,d),k)}O.convertLength=y;function A(P,d,k){if(d===void 0&&(d="meters"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("area must be a positive number");var I=O.areaFactors[d];if(!I)throw new Error("invalid original units");var N=O.areaFactors[k];if(!N)throw new Error("invalid final units");return P/I*N}O.convertArea=A;function M(P){return!isNaN(P)&&P!==null&&!Array.isArray(P)}O.isNumber=M;function R(P){return!!P&&P.constructor===Object}O.isObject=R;function T(P){if(!P)throw new Error("bbox is required");if(!Array.isArray(P))throw new Error("bbox must be an Array");if(P.length!==4&&P.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");P.forEach(function(d){if(!M(d))throw new Error("bbox must only contain numbers")})}O.validateBBox=T;function L(P){if(!P)throw new Error("id is required");if(["string","number"].indexOf(typeof P)===-1)throw new Error("id must be a number or a string")}O.validateId=L},3256:function(D,O,t){Object.defineProperty(O,"__esModule",{value:!0});var l=t(46284);function S(c,y,A){if(c!==null)for(var M,R,T,L,P,d,k,I=0,N=0,B,G=c.type,U=G==="FeatureCollection",H=G==="Feature",W=U?c.features.length:1,V=0;Vd||U>k||H>I){P=N,d=M,k=U,I=H,T=0;return}var W=l.lineString([P,N],A.properties);if(y(W,M,R,H,T)===!1)return!1;T++,P=N})===!1)return!1}}})}function u(c,y,A){var M=A,R=!1;return f(c,function(T,L,P,d,k){R===!1&&A===void 0?M=T:M=y(M,T,L,P,d,k),R=!0}),M}function b(c,y){if(!c)throw new Error("geojson is required");o(c,function(A,M,R){if(A.geometry!==null){var T=A.geometry.type,L=A.geometry.coordinates;switch(T){case"LineString":if(y(A,M,R,0,0)===!1)return!1;break;case"Polygon":for(var P=0;Pw[0]&&(C[0]=w[0]),C[1]>w[1]&&(C[1]=w[1]),C[2]=0))throw new Error("precision must be a positive number");var k=Math.pow(10,d||0);return Math.round(P*k)/k}O.round=f;function u(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P*k}O.radiansToLength=u;function b(P,d){d===void 0&&(d="kilometers");var k=O.factors[d];if(!k)throw new Error(d+" units is invalid");return P/k}O.lengthToRadians=b;function p(P,d){return g(b(P,d))}O.lengthToDegrees=p;function E(P){var d=P%360;return d<0&&(d+=360),d}O.bearingToAzimuth=E;function g(P){var d=P%(2*Math.PI);return d*180/Math.PI}O.radiansToDegrees=g;function c(P){var d=P%360;return d*Math.PI/180}O.degreesToRadians=c;function y(P,d,k){if(d===void 0&&(d="kilometers"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("length must be a positive number");return u(b(P,d),k)}O.convertLength=y;function A(P,d,k){if(d===void 0&&(d="meters"),k===void 0&&(k="kilometers"),!(P>=0))throw new Error("area must be a positive number");var I=O.areaFactors[d];if(!I)throw new Error("invalid original units");var N=O.areaFactors[k];if(!N)throw new Error("invalid final units");return P/I*N}O.convertArea=A;function M(P){return!isNaN(P)&&P!==null&&!Array.isArray(P)}O.isNumber=M;function R(P){return!!P&&P.constructor===Object}O.isObject=R;function T(P){if(!P)throw new Error("bbox is required");if(!Array.isArray(P))throw new Error("bbox must be an Array");if(P.length!==4&&P.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");P.forEach(function(d){if(!M(d))throw new Error("bbox must only contain numbers")})}O.validateBBox=T;function L(P){if(!P)throw new Error("id is required");if(["string","number"].indexOf(typeof P)===-1)throw new Error("id must be a number or a string")}O.validateId=L},84880:function(D,O,t){Object.defineProperty(O,"__esModule",{value:!0});var l=t(76796);function S(c,y,A){if(c!==null)for(var M,R,T,L,P,d,k,I=0,N=0,B,G=c.type,U=G==="FeatureCollection",H=G==="Feature",W=U?c.features.length:1,V=0;Vd||U>k||H>I){P=N,d=M,k=U,I=H,T=0;return}var W=l.lineString([P,N],A.properties);if(y(W,M,R,H,T)===!1)return!1;T++,P=N})===!1)return!1}}})}function u(c,y,A){var M=A,R=!1;return f(c,function(T,L,P,d,k){R===!1&&A===void 0?M=T:M=y(M,T,L,P,d,k),R=!0}),M}function b(c,y){if(!c)throw new Error("geojson is required");o(c,function(A,M,R){if(A.geometry!==null){var T=A.geometry.type,L=A.geometry.coordinates;switch(T){case"LineString":if(y(A,M,R,0,0)===!1)return!1;break;case"Polygon":for(var P=0;P=0))throw new Error("precision must be a positive number");var W=Math.pow(10,H||0);return Math.round(U*W)/W}O.round=f;function u(U,H){H===void 0&&(H="kilometers");var W=O.factors[H];if(!W)throw new Error(H+" units is invalid");return U*W}O.radiansToLength=u;function b(U,H){H===void 0&&(H="kilometers");var W=O.factors[H];if(!W)throw new Error(H+" units is invalid");return U/W}O.lengthToRadians=b;function p(U,H){return g(b(U,H))}O.lengthToDegrees=p;function E(U){var H=U%360;return H<0&&(H+=360),H}O.bearingToAzimuth=E;function g(U){var H=U%(2*Math.PI);return H*180/Math.PI}O.radiansToDegrees=g;function c(U){var H=U%360;return H*Math.PI/180}O.degreesToRadians=c;function y(U,H,W){if(H===void 0&&(H="kilometers"),W===void 0&&(W="kilometers"),!(U>=0))throw new Error("length must be a positive number");return u(b(U,H),W)}O.convertLength=y;function A(U,H,W){if(H===void 0&&(H="meters"),W===void 0&&(W="kilometers"),!(U>=0))throw new Error("area must be a positive number");var V=O.areaFactors[H];if(!V)throw new Error("invalid original units");var $=O.areaFactors[W];if(!$)throw new Error("invalid final units");return U/V*$}O.convertArea=A;function M(U){return!isNaN(U)&&U!==null&&!Array.isArray(U)&&!/^\s*$/.test(U)}O.isNumber=M;function R(U){return!!U&&U.constructor===Object}O.isObject=R;function T(U){if(!U)throw new Error("bbox is required");if(!Array.isArray(U))throw new Error("bbox must be an Array");if(U.length!==4&&U.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");U.forEach(function(H){if(!M(H))throw new Error("bbox must only contain numbers")})}O.validateBBox=T;function L(U){if(!U)throw new Error("id is required");if(["string","number"].indexOf(typeof U)===-1)throw new Error("id must be a number or a string")}O.validateId=L;function P(){throw new Error("method has been renamed to `radiansToDegrees`")}O.radians2degrees=P;function d(){throw new Error("method has been renamed to `degreesToRadians`")}O.degrees2radians=d;function k(){throw new Error("method has been renamed to `lengthToDegrees`")}O.distanceToDegrees=k;function I(){throw new Error("method has been renamed to `lengthToRadians`")}O.distanceToRadians=I;function N(){throw new Error("method has been renamed to `radiansToLength`")}O.radiansToDistance=N;function B(){throw new Error("method has been renamed to `bearingToAzimuth`")}O.bearingToAngle=B;function G(){throw new Error("method has been renamed to `convertLength`")}O.convertDistance=G},43752:function(D,O,t){Object.defineProperty(O,"__esModule",{value:!0});var l=t(49840);function S(c,y,A){if(c!==null)for(var M,R,T,L,P,d,k,I=0,N=0,B,G=c.type,U=G==="FeatureCollection",H=G==="Feature",W=U?c.features.length:1,V=0;Vd||U>k||H>I){P=N,d=M,k=U,I=H,T=0;return}var W=l.lineString([P,N],A.properties);if(y(W,M,R,H,T)===!1)return!1;T++,P=N})===!1)return!1}}})}function u(c,y,A){var M=A,R=!1;return f(c,function(T,L,P,d,k){R===!1&&A===void 0?M=T:M=y(M,T,L,P,d,k),R=!0}),M}function b(c,y){if(!c)throw new Error("geojson is required");o(c,function(A,M,R){if(A.geometry!==null){var T=A.geometry.type,L=A.geometry.coordinates;switch(T){case"LineString":if(y(A,M,R,0,0)===!1)return!1;break;case"Polygon":for(var P=0;PC&&(C=t[v]),t[v]1?ie-1:0),Q=1;Q1?ie-1:0),Q=1;Q1?ie-1:0),Q=1;Q1?ie-1:0),Q=1;Q"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(U,H,W){return o()?h=Reflect.construct:h=function($,Z,q){var ae=[null];ae.push.apply(ae,Z);var ie=Function.bind.apply($,ae),fe=new ie;return q&&u(fe,q.prototype),fe},h.apply(null,arguments)}function f(U){return Function.toString.call(U).indexOf("[native code]")!==-1}function u(U,H){return u=Object.setPrototypeOf||function(V,$){return V.__proto__=$,V},u(U,H)}function b(U){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},b(U)}function p(U){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(W){return typeof W}:p=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},p(U)}var E=t(35840),g=E.inspect,c=t(86832),x=c.codes.ERR_INVALID_ARG_TYPE;function A(U,H,W){return(W===void 0||W>U.length)&&(W=U.length),U.substring(W-H.length,W)===H}function M(U,H){if(H=Math.floor(H),U.length==0||H==0)return"";var W=U.length*H;for(H=Math.floor(Math.log(H)/Math.log(2));H;)U+=U,H--;return U+=U.substring(0,W-U.length),U}var R="",T="",L="",P="",d={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},k=10;function I(U){var H=Object.keys(U),W=Object.create(Object.getPrototypeOf(U));return H.forEach(function(V){W[V]=U[V]}),Object.defineProperty(W,"message",{value:U.message}),W}function N(U){return g(U,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B(U,H,W){var V="",$="",Z=0,q="",ae=!1,ie=N(U),fe=ie.split(` +`))}throw fe}};function Z(){for(var q=arguments.length,ae=new Array(q),ie=0;ie"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(U,H,W){return o()?h=Reflect.construct:h=function($,Z,q){var ae=[null];ae.push.apply(ae,Z);var ie=Function.bind.apply($,ae),fe=new ie;return q&&u(fe,q.prototype),fe},h.apply(null,arguments)}function f(U){return Function.toString.call(U).indexOf("[native code]")!==-1}function u(U,H){return u=Object.setPrototypeOf||function(V,$){return V.__proto__=$,V},u(U,H)}function b(U){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},b(U)}function p(U){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(W){return typeof W}:p=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},p(U)}var E=t(35840),g=E.inspect,c=t(86832),y=c.codes.ERR_INVALID_ARG_TYPE;function A(U,H,W){return(W===void 0||W>U.length)&&(W=U.length),U.substring(W-H.length,W)===H}function M(U,H){if(H=Math.floor(H),U.length==0||H==0)return"";var W=U.length*H;for(H=Math.floor(Math.log(H)/Math.log(2));H;)U+=U,H--;return U+=U.substring(0,W-U.length),U}var R="",T="",L="",P="",d={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},k=10;function I(U){var H=Object.keys(U),W=Object.create(Object.getPrototypeOf(U));return H.forEach(function(V){W[V]=U[V]}),Object.defineProperty(W,"message",{value:U.message}),W}function N(U){return g(U,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B(U,H,W){var V="",$="",Z=0,q="",ae=!1,ie=N(U),fe=ie.split(` `),Q=N(H).split(` `),J=0,oe="";if(W==="strictEqual"&&p(U)==="object"&&p(H)==="object"&&U!==null&&H!==null&&(W="strictEqualObject"),fe.length===1&&Q.length===1&&fe[0]!==Q[0]){var K=fe[0].length+Q[0].length;if(K<=k){if((p(U)!=="object"||U===null)&&(p(H)!=="object"||H===null)&&(U!==0||H!==0))return"".concat(d[W],` @@ -3071,7 +3071,7 @@ uniform `+tr+" "+cr+" u_"+ur+`; `).concat($,` `).concat(R,"...").concat(P).concat(V,` `)+"".concat(R,"...").concat(P)}return"".concat(he).concat(ae?xe:"",` -`).concat($).concat(V).concat(q).concat(oe)}var G=function(U){n(H,U);function H(W){var V;if(C(this,H),p(W)!=="object"||W===null)throw new x("options","Object",W);var $=W.message,Z=W.operator,q=W.stackStartFn,ae=W.actual,ie=W.expected,fe=Error.stackTraceLimit;if(Error.stackTraceLimit=0,$!=null)V=m(this,b(H).call(this,String($)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(R="\x1B[34m",T="\x1B[32m",P="\x1B[39m",L="\x1B[31m"):(R="",T="",P="",L="")),p(ae)==="object"&&ae!==null&&p(ie)==="object"&&ie!==null&&"stack"in ae&&ae instanceof Error&&"stack"in ie&&ie instanceof Error&&(ae=I(ae),ie=I(ie)),Z==="deepStrictEqual"||Z==="strictEqual")V=m(this,b(H).call(this,B(ae,ie,Z)));else if(Z==="notDeepStrictEqual"||Z==="notStrictEqual"){var Q=d[Z],J=N(ae).split(` +`).concat($).concat(V).concat(q).concat(oe)}var G=function(U){n(H,U);function H(W){var V;if(C(this,H),p(W)!=="object"||W===null)throw new y("options","Object",W);var $=W.message,Z=W.operator,q=W.stackStartFn,ae=W.actual,ie=W.expected,fe=Error.stackTraceLimit;if(Error.stackTraceLimit=0,$!=null)V=m(this,b(H).call(this,String($)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(R="\x1B[34m",T="\x1B[32m",P="\x1B[39m",L="\x1B[31m"):(R="",T="",P="",L="")),p(ae)==="object"&&ae!==null&&p(ie)==="object"&&ie!==null&&"stack"in ae&&ae instanceof Error&&"stack"in ie&&ie instanceof Error&&(ae=I(ae),ie=I(ie)),Z==="deepStrictEqual"||Z==="strictEqual")V=m(this,b(H).call(this,B(ae,ie,Z)));else if(Z==="notDeepStrictEqual"||Z==="notStrictEqual"){var Q=d[Z],J=N(ae).split(` `);if(Z==="notStrictEqual"&&p(ae)==="object"&&ae!==null&&(Q=d.notStrictEqualObject),J.length>30)for(J[26]="".concat(R,"...").concat(P);J.length>27;)J.pop();J.length===1?V=m(this,b(H).call(this,"".concat(Q," ").concat(J[0]))):V=m(this,b(H).call(this,"".concat(Q,` `).concat(J.join(` @@ -3084,12 +3084,12 @@ uniform `+tr+" "+cr+" u_"+ur+`; should equal -`):K=" ".concat(Z," ").concat(K)),V=m(this,b(H).call(this,"".concat(oe).concat(K)))}return Error.stackTraceLimit=fe,V.generatedMessage=!$,Object.defineProperty(a(V),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),V.code="ERR_ASSERTION",V.actual=ae,V.expected=ie,V.operator=Z,Error.captureStackTrace&&Error.captureStackTrace(a(V),q),V.stack,V.name="AssertionError",m(V)}return v(H,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(V,$){return g(this,S({},$,{customInspect:!1,depth:0}))}}]),H}(s(Error));D.exports=G},86832:function(D,O,t){function l(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(g){return typeof g}:l=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},l(p)}function S(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}function i(p,E){return E&&(l(E)==="object"||typeof E=="function")?E:C(p)}function C(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function w(p){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},w(p)}function v(p,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),E&&m(p,E)}function m(p,E){return m=Object.setPrototypeOf||function(c,x){return c.__proto__=x,c},m(p,E)}var a={},n,s;function o(p,E,g){g||(g=Error);function c(A,M,R){return typeof E=="string"?E:E(A,M,R)}var x=function(A){v(M,A);function M(R,T,L){var P;return S(this,M),P=i(this,w(M).call(this,c(R,T,L))),P.code=p,P}return M}(g);a[p]=x}function h(p,E){if(Array.isArray(p)){var g=p.length;return p=p.map(function(c){return String(c)}),g>2?"one of ".concat(E," ").concat(p.slice(0,g-1).join(", "),", or ")+p[g-1]:g===2?"one of ".concat(E," ").concat(p[0]," or ").concat(p[1]):"of ".concat(E," ").concat(p[0])}else return"of ".concat(E," ").concat(String(p))}function f(p,E,g){return p.substr(!g||g<0?0:+g,E.length)===E}function u(p,E,g){return(g===void 0||g>p.length)&&(g=p.length),p.substring(g-E.length,g)===E}function b(p,E,g){return typeof g!="number"&&(g=0),g+E.length>p.length?!1:p.indexOf(E,g)!==-1}o("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),o("ERR_INVALID_ARG_TYPE",function(p,E,g){n===void 0&&(n=t(45408)),n(typeof p=="string","'name' must be a string");var c;typeof E=="string"&&f(E,"not ")?(c="must not be",E=E.replace(/^not /,"")):c="must be";var x;if(u(p," argument"))x="The ".concat(p," ").concat(c," ").concat(h(E,"type"));else{var A=b(p,".")?"property":"argument";x='The "'.concat(p,'" ').concat(A," ").concat(c," ").concat(h(E,"type"))}return x+=". Received type ".concat(l(g)),x},TypeError),o("ERR_INVALID_ARG_VALUE",function(p,E){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";s===void 0&&(s=t(35840));var c=s.inspect(E);return c.length>128&&(c="".concat(c.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(g,". Received ").concat(c)},TypeError),o("ERR_INVALID_RETURN_VALUE",function(p,E,g){var c;return g&&g.constructor&&g.constructor.name?c="instance of ".concat(g.constructor.name):c="type ".concat(l(g)),"Expected ".concat(p,' to be returned from the "').concat(E,'"')+" function but got ".concat(c,".")},TypeError),o("ERR_MISSING_ARGS",function(){for(var p=arguments.length,E=new Array(p),g=0;g0,"At least one arg needs to be specified");var c="The ",x=E.length;switch(E=E.map(function(A){return'"'.concat(A,'"')}),x){case 1:c+="".concat(E[0]," argument");break;case 2:c+="".concat(E[0]," and ").concat(E[1]," arguments");break;default:c+=E.slice(0,x-1).join(", "),c+=", and ".concat(E[x-1]," arguments");break}return"".concat(c," must be specified")},TypeError),D.exports.codes=a},25116:function(D,O,t){function l(Ae,be){return C(Ae)||i(Ae,be)||S()}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(Ae,be){var Ie=[],Ue=!0,Ne=!1,ze=void 0;try{for(var $e=Ae[Symbol.iterator](),st;!(Ue=(st=$e.next()).done)&&(Ie.push(st.value),!(be&&Ie.length===be));Ue=!0);}catch(vt){Ne=!0,ze=vt}finally{try{!Ue&&$e.return!=null&&$e.return()}finally{if(Ne)throw ze}}return Ie}function C(Ae){if(Array.isArray(Ae))return Ae}function w(Ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(Ie){return typeof Ie}:w=function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},w(Ae)}var v=/a/g.flags!==void 0,m=function(be){var Ie=[];return be.forEach(function(Ue){return Ie.push(Ue)}),Ie},a=function(be){var Ie=[];return be.forEach(function(Ue,Ne){return Ie.push([Ne,Ue])}),Ie},n=Object.is?Object.is:t(39896),s=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},o=Number.isNaN?Number.isNaN:t(1560);function h(Ae){return Ae.call.bind(Ae)}var f=h(Object.prototype.hasOwnProperty),u=h(Object.prototype.propertyIsEnumerable),b=h(Object.prototype.toString),p=t(35840).types,E=p.isAnyArrayBuffer,g=p.isArrayBufferView,c=p.isDate,x=p.isMap,A=p.isRegExp,M=p.isSet,R=p.isNativeError,T=p.isBoxedPrimitive,L=p.isNumberObject,P=p.isStringObject,d=p.isBooleanObject,k=p.isBigIntObject,I=p.isSymbolObject,N=p.isFloat32Array,B=p.isFloat64Array;function G(Ae){if(Ae.length===0||Ae.length>10)return!0;for(var be=0;be57)return!0}return Ae.length===10&&Ae>=Math.pow(2,32)}function U(Ae){return Object.keys(Ae).filter(G).concat(s(Ae).filter(Object.prototype.propertyIsEnumerable.bind(Ae)))}/*! +`):K=" ".concat(Z," ").concat(K)),V=m(this,b(H).call(this,"".concat(oe).concat(K)))}return Error.stackTraceLimit=fe,V.generatedMessage=!$,Object.defineProperty(a(V),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),V.code="ERR_ASSERTION",V.actual=ae,V.expected=ie,V.operator=Z,Error.captureStackTrace&&Error.captureStackTrace(a(V),q),V.stack,V.name="AssertionError",m(V)}return v(H,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(V,$){return g(this,S({},$,{customInspect:!1,depth:0}))}}]),H}(s(Error));D.exports=G},86832:function(D,O,t){function l(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(g){return typeof g}:l=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},l(p)}function S(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}function i(p,E){return E&&(l(E)==="object"||typeof E=="function")?E:C(p)}function C(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function w(p){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},w(p)}function v(p,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),E&&m(p,E)}function m(p,E){return m=Object.setPrototypeOf||function(c,y){return c.__proto__=y,c},m(p,E)}var a={},n,s;function o(p,E,g){g||(g=Error);function c(A,M,R){return typeof E=="string"?E:E(A,M,R)}var y=function(A){v(M,A);function M(R,T,L){var P;return S(this,M),P=i(this,w(M).call(this,c(R,T,L))),P.code=p,P}return M}(g);a[p]=y}function h(p,E){if(Array.isArray(p)){var g=p.length;return p=p.map(function(c){return String(c)}),g>2?"one of ".concat(E," ").concat(p.slice(0,g-1).join(", "),", or ")+p[g-1]:g===2?"one of ".concat(E," ").concat(p[0]," or ").concat(p[1]):"of ".concat(E," ").concat(p[0])}else return"of ".concat(E," ").concat(String(p))}function f(p,E,g){return p.substr(0,E.length)===E}function u(p,E,g){return(g===void 0||g>p.length)&&(g=p.length),p.substring(g-E.length,g)===E}function b(p,E,g){return typeof g!="number"&&(g=0),g+E.length>p.length?!1:p.indexOf(E,g)!==-1}o("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),o("ERR_INVALID_ARG_TYPE",function(p,E,g){n===void 0&&(n=t(45408)),n(typeof p=="string","'name' must be a string");var c;typeof E=="string"&&f(E,"not ")?(c="must not be",E=E.replace(/^not /,"")):c="must be";var y;if(u(p," argument"))y="The ".concat(p," ").concat(c," ").concat(h(E,"type"));else{var A=b(p,".")?"property":"argument";y='The "'.concat(p,'" ').concat(A," ").concat(c," ").concat(h(E,"type"))}return y+=". Received type ".concat(l(g)),y},TypeError),o("ERR_INVALID_ARG_VALUE",function(p,E){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";s===void 0&&(s=t(35840));var c=s.inspect(E);return c.length>128&&(c="".concat(c.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(g,". Received ").concat(c)},TypeError),o("ERR_INVALID_RETURN_VALUE",function(p,E,g){var c;return g&&g.constructor&&g.constructor.name?c="instance of ".concat(g.constructor.name):c="type ".concat(l(g)),"Expected ".concat(p,' to be returned from the "').concat(E,'"')+" function but got ".concat(c,".")},TypeError),o("ERR_MISSING_ARGS",function(){for(var p=arguments.length,E=new Array(p),g=0;g0,"At least one arg needs to be specified");var c="The ",y=E.length;switch(E=E.map(function(A){return'"'.concat(A,'"')}),y){case 1:c+="".concat(E[0]," argument");break;case 2:c+="".concat(E[0]," and ").concat(E[1]," arguments");break;default:c+=E.slice(0,y-1).join(", "),c+=", and ".concat(E[y-1]," arguments");break}return"".concat(c," must be specified")},TypeError),D.exports.codes=a},25116:function(D,O,t){function l(Ae,be){return C(Ae)||i(Ae,be)||S()}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(Ae,be){var Ie=[],Ue=!0,Ne=!1,ze=void 0;try{for(var $e=Ae[Symbol.iterator](),st;!(Ue=(st=$e.next()).done)&&(Ie.push(st.value),!(be&&Ie.length===be));Ue=!0);}catch(vt){Ne=!0,ze=vt}finally{try{!Ue&&$e.return!=null&&$e.return()}finally{if(Ne)throw ze}}return Ie}function C(Ae){if(Array.isArray(Ae))return Ae}function w(Ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(Ie){return typeof Ie}:w=function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},w(Ae)}var v=/a/g.flags!==void 0,m=function(be){var Ie=[];return be.forEach(function(Ue){return Ie.push(Ue)}),Ie},a=function(be){var Ie=[];return be.forEach(function(Ue,Ne){return Ie.push([Ne,Ue])}),Ie},n=Object.is?Object.is:t(39896),s=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},o=Number.isNaN?Number.isNaN:t(1560);function h(Ae){return Ae.call.bind(Ae)}var f=h(Object.prototype.hasOwnProperty),u=h(Object.prototype.propertyIsEnumerable),b=h(Object.prototype.toString),p=t(35840).types,E=p.isAnyArrayBuffer,g=p.isArrayBufferView,c=p.isDate,y=p.isMap,A=p.isRegExp,M=p.isSet,R=p.isNativeError,T=p.isBoxedPrimitive,L=p.isNumberObject,P=p.isStringObject,d=p.isBooleanObject,k=p.isBigIntObject,I=p.isSymbolObject,N=p.isFloat32Array,B=p.isFloat64Array;function G(Ae){if(Ae.length===0||Ae.length>10)return!0;for(var be=0;be57)return!0}return Ae.length===10&&Ae>=Math.pow(2,32)}function U(Ae){return Object.keys(Ae).filter(G).concat(s(Ae).filter(Object.prototype.propertyIsEnumerable.bind(Ae)))}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function H(Ae,be){if(Ae===be)return 0;for(var Ie=Ae.length,Ue=be.length,Ne=0,ze=Math.min(Ie,Ue);Ne"u"?[]:new Uint8Array(256),i=0;i>2],s+=l[(m[a]&3)<<4|m[a+1]>>4],s+=l[(m[a+1]&15)<<2|m[a+2]>>6],s+=l[m[a+2]&63];return n%3===2?s=s.substring(0,s.length-1)+"=":n%3===1&&(s=s.substring(0,s.length-2)+"=="),s},w=function(v){var m=v.length*.75,a=v.length,n,s=0,o,h,f,u;v[v.length-1]==="="&&(m--,v[v.length-2]==="="&&m--);var b=new ArrayBuffer(m),p=new Uint8Array(b);for(n=0;n>4,p[s++]=(h&15)<<4|f>>2,p[s++]=(f&3)<<6|u&63;return b}},59968:function(D,O){O.byteLength=m,O.toByteArray=n,O.fromByteArray=h;for(var t=[],l=[],S=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,w=i.length;C0)throw new Error("Invalid string. Length must be a multiple of 4");var b=f.indexOf("=");b===-1&&(b=u);var p=b===u?0:4-b%4;return[b,p]}function m(f){var u=v(f),b=u[0],p=u[1];return(b+p)*3/4-p}function a(f,u,b){return(u+b)*3/4-b}function n(f){var u,b=v(f),p=b[0],E=b[1],g=new S(a(f,p,E)),c=0,x=E>0?p-4:p,A;for(A=0;A>16&255,g[c++]=u>>8&255,g[c++]=u&255;return E===2&&(u=l[f.charCodeAt(A)]<<2|l[f.charCodeAt(A+1)]>>4,g[c++]=u&255),E===1&&(u=l[f.charCodeAt(A)]<<10|l[f.charCodeAt(A+1)]<<4|l[f.charCodeAt(A+2)]>>2,g[c++]=u>>8&255,g[c++]=u&255),g}function s(f){return t[f>>18&63]+t[f>>12&63]+t[f>>6&63]+t[f&63]}function o(f,u,b){for(var p,E=[],g=u;gx?x:c+g));return p===1?(u=f[b-1],E.push(t[u>>2]+t[u<<4&63]+"==")):p===2&&(u=(f[b-2]<<8)+f[b-1],E.push(t[u>>10]+t[u>>4&63]+t[u<<2&63]+"=")),E.join("")}},64928:function(D){function O(w,v,m,a,n){for(var s=n+1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f>=0?(s=o,n=o-1):a=o+1}return s}function t(w,v,m,a,n){for(var s=n+1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f>0?(s=o,n=o-1):a=o+1}return s}function l(w,v,m,a,n){for(var s=a-1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f<0?(s=o,a=o+1):n=o-1}return s}function S(w,v,m,a,n){for(var s=a-1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f<=0?(s=o,a=o+1):n=o-1}return s}function i(w,v,m,a,n){for(;a<=n;){var s=a+n>>>1,o=w[s],h=m!==void 0?m(o,v):o-v;if(h===0)return s;h<=0?a=s+1:n=s-1}return-1}function C(w,v,m,a,n,s){return typeof m=="function"?s(w,v,m,a===void 0?0:a|0,n===void 0?w.length-1:n|0):s(w,v,void 0,m===void 0?0:m|0,a===void 0?w.length-1:a|0)}D.exports={ge:function(w,v,m,a,n){return C(w,v,m,a,n,O)},gt:function(w,v,m,a,n){return C(w,v,m,a,n,t)},lt:function(w,v,m,a,n){return C(w,v,m,a,n,l)},le:function(w,v,m,a,n){return C(w,v,m,a,n,S)},eq:function(w,v,m,a,n){return C(w,v,m,a,n,i)}}},308:function(D,O){"use restrict";var t=32;O.INT_BITS=t,O.INT_MAX=2147483647,O.INT_MIN=-1<0)-(i<0)},O.abs=function(i){var C=i>>t-1;return(i^C)-C},O.min=function(i,C){return C^(i^C)&-(i65535)<<4,i>>>=C,w=(i>255)<<3,i>>>=w,C|=w,w=(i>15)<<2,i>>>=w,C|=w,w=(i>3)<<1,i>>>=w,C|=w,C|i>>1},O.log10=function(i){return i>=1e9?9:i>=1e8?8:i>=1e7?7:i>=1e6?6:i>=1e5?5:i>=1e4?4:i>=1e3?3:i>=100?2:i>=10?1:0},O.popCount=function(i){return i=i-(i>>>1&1431655765),i=(i&858993459)+(i>>>2&858993459),(i+(i>>>4)&252645135)*16843009>>>24};function l(i){var C=32;return i&=-i,i&&C--,i&65535&&(C-=16),i&16711935&&(C-=8),i&252645135&&(C-=4),i&858993459&&(C-=2),i&1431655765&&(C-=1),C}O.countTrailingZeros=l,O.nextPow2=function(i){return i+=i===0,--i,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i+1},O.prevPow2=function(i){return i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i-(i>>>1)},O.parity=function(i){return i^=i>>>16,i^=i>>>8,i^=i>>>4,i&=15,27030>>>i&1};var S=new Array(256);(function(i){for(var C=0;C<256;++C){var w=C,v=C,m=7;for(w>>>=1;w;w>>>=1)v<<=1,v|=w&1,--m;i[C]=v<>>8&255]<<16|S[i>>>16&255]<<8|S[i>>>24&255]},O.interleave2=function(i,C){return i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,C&=65535,C=(C|C<<8)&16711935,C=(C|C<<4)&252645135,C=(C|C<<2)&858993459,C=(C|C<<1)&1431655765,i|C<<1},O.deinterleave2=function(i,C){return i=i>>>C&1431655765,i=(i|i>>>1)&858993459,i=(i|i>>>2)&252645135,i=(i|i>>>4)&16711935,i=(i|i>>>16)&65535,i<<16>>16},O.interleave3=function(i,C,w){return i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,C&=1023,C=(C|C<<16)&4278190335,C=(C|C<<8)&251719695,C=(C|C<<4)&3272356035,C=(C|C<<2)&1227133513,i|=C<<1,w&=1023,w=(w|w<<16)&4278190335,w=(w|w<<8)&251719695,w=(w|w<<4)&3272356035,w=(w|w<<2)&1227133513,i|w<<2},O.deinterleave3=function(i,C){return i=i>>>C&1227133513,i=(i|i>>>2)&3272356035,i=(i|i>>>4)&251719695,i=(i|i>>>8)&4278190335,i=(i|i>>>16)&1023,i<<22>>22},O.nextCombination=function(i){var C=i|i-1;return C+1|(~C&-~C)-1>>>l(i)+1}},29620:function(D,O,t){var l=t(32420);D.exports=i;var S=1e20;function i(v,m){m||(m={});var a=m.cutoff==null?.25:m.cutoff,n=m.radius==null?8:m.radius,s=m.channel||0,o,h,f,u,b,p,E,g,c,x,A;if(ArrayBuffer.isView(v)||Array.isArray(v)){if(!m.width||!m.height)throw Error("For raw data width and height should be provided by options");o=m.width,h=m.height,u=v,m.stride?p=m.stride:p=Math.floor(v.length/o/h)}else window.HTMLCanvasElement&&v instanceof window.HTMLCanvasElement?(g=v,E=g.getContext("2d"),o=g.width,h=g.height,c=E.getImageData(0,0,o,h),u=c.data,p=4):window.CanvasRenderingContext2D&&v instanceof window.CanvasRenderingContext2D?(g=v.canvas,E=v,o=g.width,h=g.height,c=E.getImageData(0,0,o,h),u=c.data,p=4):window.ImageData&&v instanceof window.ImageData&&(c=v,o=v.width,h=v.height,u=c.data,p=4);if(f=Math.max(o,h),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(b=u,u=Array(o*h),x=0,A=b.length;x-1?S(m):m}},57916:function(D,O,t){var l=t(8844),S=t(53664),i=t(14500),C=S("%TypeError%"),w=S("%Function.prototype.apply%"),v=S("%Function.prototype.call%"),m=S("%Reflect.apply%",!0)||l.call(v,w),a=S("%Object.defineProperty%",!0),n=S("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}D.exports=function(h){if(typeof h!="function")throw new C("a function is required");var f=m(l,v,arguments);return i(f,1+n(0,h.length-(arguments.length-1)),!0)};var s=function(){return m(l,w,arguments)};a?a(D.exports,"apply",{value:s}):D.exports.apply=s},32420:function(D){D.exports=O;function O(t,l,S){return lS?S:t:tl?l:t}},3808:function(D,O,t){var l=t(32420);D.exports=S,D.exports.to=S,D.exports.from=i;function S(C,w){w==null&&(w=!0);var v=C[0],m=C[1],a=C[2],n=C[3];n==null&&(n=w?1:255),w&&(v*=255,m*=255,a*=255,n*=255),v=l(v,0,255)&255,m=l(m,0,255)&255,a=l(a,0,255)&255,n=l(n,0,255)&255;var s=v*16777216+(m<<16)+(a<<8)+n;return s}function i(C,w){C=+C;var v=C>>>24,m=(C&16711680)>>>16,a=(C&65280)>>>8,n=C&255;return w===!1?[v,m,a,n]:[v/255,m/255,a/255,n/255]}},17592:function(D){D.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(D,O,t){var l=t(96824),S=t(32420),i=t(72512);D.exports=function(v,m){(m==="float"||!m)&&(m="array"),m==="uint"&&(m="uint8"),m==="uint_clamped"&&(m="uint8_clamped");var a=i(m),n=new a(4),s=m!=="uint8"&&m!=="uint8_clamped";return(!v.length||typeof v=="string")&&(v=l(v),v[0]/=255,v[1]/=255,v[2]/=255),C(v)?(n[0]=v[0],n[1]=v[1],n[2]=v[2],n[3]=v[3]!=null?v[3]:255,s&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(s?(n[0]=v[0],n[1]=v[1],n[2]=v[2],n[3]=v[3]!=null?v[3]:1):(n[0]=S(Math.floor(v[0]*255),0,255),n[1]=S(Math.floor(v[1]*255),0,255),n[2]=S(Math.floor(v[2]*255),0,255),n[3]=v[3]==null?255:S(Math.floor(v[3]*255),0,255)),n)};function C(w){return!!(w instanceof Uint8Array||w instanceof Uint8ClampedArray||Array.isArray(w)&&(w[0]>1||w[0]===0)&&(w[1]>1||w[1]===0)&&(w[2]>1||w[2]===0)&&(!w[3]||w[3]>1))}},96824:function(D,O,t){var l=t(95532),S=t(53576),i=t(32420);D.exports=function(w){var v,m=l(w);return m.space?(v=Array(3),v[0]=i(m.values[0],0,255),v[1]=i(m.values[1],0,255),v[2]=i(m.values[2],0,255),m.space[0]==="h"&&(v=S.rgb(v)),v.push(i(m.alpha,0,1)),v):[]}},95532:function(D,O,t){var l=t(17592);D.exports=i;var S={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function i(C){var w,v=[],m=1,a;if(typeof C=="string")if(C=C.toLowerCase(),l[C])v=l[C].slice(),a="rgb";else if(C==="transparent")m=0,a="rgb",v=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(C)){var n=C.slice(1),s=n.length,o=s<=4;m=1,o?(v=[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)],s===4&&(m=parseInt(n[3]+n[3],16)/255)):(v=[parseInt(n[0]+n[1],16),parseInt(n[2]+n[3],16),parseInt(n[4]+n[5],16)],s===8&&(m=parseInt(n[6]+n[7],16)/255)),v[0]||(v[0]=0),v[1]||(v[1]=0),v[2]||(v[2]=0),a="rgb"}else if(w=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(C)){var h=w[1],f=h==="rgb",n=h.replace(/a$/,"");a=n;var s=n==="cmyk"?4:n==="gray"?1:3;v=w[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,E){if(/%$/.test(p))return E===s?parseFloat(p)/100:n==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(n[E]==="h"){if(/deg$/.test(p))return parseFloat(p);if(S[p]!==void 0)return S[p]}return parseFloat(p)}),h===n&&v.push(1),m=f||v[s]===void 0?1:v[s],v=v.slice(0,s)}else C.length>10&&/[0-9](?:\s|\/)/.test(C)&&(v=C.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),a=C.match(/([a-z])/ig).join("").toLowerCase());else isNaN(C)?Array.isArray(C)||C.length?(v=[C[0],C[1],C[2]],a="rgb",m=C.length===4?C[3]:1):C instanceof Object&&(C.r!=null||C.red!=null||C.R!=null?(a="rgb",v=[C.r||C.red||C.R||0,C.g||C.green||C.G||0,C.b||C.blue||C.B||0]):(a="hsl",v=[C.h||C.hue||C.H||0,C.s||C.saturation||C.S||0,C.l||C.lightness||C.L||C.b||C.brightness]),m=C.a||C.alpha||C.opacity||1,C.opacity!=null&&(m/=100)):(a="rgb",v=[C>>>16,(C&65280)>>>8,C&255]);return{space:a,values:v,alpha:m}}},53576:function(D,O,t){var l=t(19336);D.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(S){var i=S[0]/360,C=S[1]/100,w=S[2]/100,v,m,a,n,s;if(C===0)return s=w*255,[s,s,s];w<.5?m=w*(1+C):m=w+C-w*C,v=2*w-m,n=[0,0,0];for(var o=0;o<3;o++)a=i+.3333333333333333*-(o-1),a<0?a++:a>1&&a--,6*a<1?s=v+(m-v)*6*a:2*a<1?s=m:3*a<2?s=v+(m-v)*(.6666666666666666-a)*6:s=v,n[o]=s*255;return n}},l.hsl=function(S){var i=S[0]/255,C=S[1]/255,w=S[2]/255,v=Math.min(i,C,w),m=Math.max(i,C,w),a=m-v,n,s,o;return m===v?n=0:i===m?n=(C-w)/a:C===m?n=2+(w-i)/a:w===m&&(n=4+(i-C)/a),n=Math.min(n*60,360),n<0&&(n+=360),o=(v+m)/2,m===v?s=0:o<=.5?s=a/(m+v):s=a/(2-m-v),[n,s*100,o*100]}},19336:function(D){D.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(D){D.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(D,O,t){D.exports={parse:t(46416),stringify:t(49395)}},8744:function(D,O,t){var l=t(30584);D.exports={isSize:function(i){return/^[\d\.]/.test(i)||i.indexOf("/")!==-1||l.indexOf(i)!==-1}}},46416:function(D,O,t){var l=t(92384),S=t(68194),i=t(3748),C=t(2904),w=t(47916),v=t(7294),m=t(39956),a=t(8744).isSize;D.exports=s;var n=s.cache={};function s(h){if(typeof h!="string")throw new Error("Font argument must be a string.");if(n[h])return n[h];if(h==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(h)!==-1)return n[h]={system:h};for(var f={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},u=m(h,/\s+/),b;b=u.shift();){if(S.indexOf(b)!==-1)return["style","variant","weight","stretch"].forEach(function(E){f[E]=b}),n[h]=f;if(w.indexOf(b)!==-1){f.style=b;continue}if(b==="normal"||b==="small-caps"){f.variant=b;continue}if(v.indexOf(b)!==-1){f.stretch=b;continue}if(C.indexOf(b)!==-1){f.weight=b;continue}if(a(b)){var p=m(b,"/");if(f.size=p[0],p[1]!=null?f.lineHeight=o(p[1]):u[0]==="/"&&(u.shift(),f.lineHeight=o(u.shift())),!u.length)throw new Error("Missing required font-family.");return f.family=m(u.join(" "),/\s*,\s*/).map(l),n[h]=f}throw new Error("Unknown or unsupported font token: "+b)}throw new Error("Missing required font-size.")}function o(h){var f=parseFloat(h);return f.toString()===h?f:h}},49395:function(D,O,t){var l=t(55616),S=t(8744).isSize,i=h(t(68194)),C=h(t(3748)),w=h(t(2904)),v=h(t(47916)),m=h(t(7294)),a={normal:1,"small-caps":1},n={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},s={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};D.exports=function(u){if(u=l(u,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),u.system)return u.system&&o(u.system,C),u.system;if(o(u.style,v),o(u.variant,a),o(u.weight,w),o(u.stretch,m),u.size==null&&(u.size=s.size),typeof u.size=="number"&&(u.size+="px"),!S)throw Error("Bad size value `"+u.size+"`");u.family||(u.family=s.family),Array.isArray(u.family)&&(u.family.length||(u.family=[s.family]),u.family=u.family.map(function(p){return n[p]?p:'"'+p+'"'}).join(", "));var b=[];return b.push(u.style),u.variant!==u.style&&b.push(u.variant),u.weight!==u.variant&&u.weight!==u.style&&b.push(u.weight),u.stretch!==u.weight&&u.stretch!==u.variant&&u.stretch!==u.style&&b.push(u.stretch),b.push(u.size+(u.lineHeight==null||u.lineHeight==="normal"||u.lineHeight+""=="1"?"":"/"+u.lineHeight)),b.push(u.family),b.filter(Boolean).join(" ")};function o(f,u){if(f&&!u[f]&&!i[f])throw Error("Unknown keyword `"+f+"`");return f}function h(f){for(var u={},b=0;bh?1:o>=h?0:NaN}function S(o){return o.length===1&&(o=i(o)),{left:function(h,f,u,b){for(u==null&&(u=0),b==null&&(b=h.length);u>>1;o(h[p],f)<0?u=p+1:b=p}return u},right:function(h,f,u,b){for(u==null&&(u=0),b==null&&(b=h.length);u>>1;o(h[p],f)>0?b=p:u=p+1}return u}}}function i(o){return function(h,f){return l(o(h),f)}}S(l);function C(o,h){var f=o.length,u=-1,b,p;if(h==null){for(;++u=b)for(p=b;++up&&(p=b)}else for(;++u=b)for(p=b;++up&&(p=b);return p}function w(o){return o===null?NaN:+o}function v(o,h){var f=o.length,u=f,b=-1,p,E=0;if(h==null)for(;++b=0;)for(E=o[h],f=E.length;--f>=0;)p[--b]=E[f];return p}function a(o,h){var f=o.length,u=-1,b,p;if(h==null){for(;++u=b)for(p=b;++ub&&(p=b)}else for(;++u=b)for(p=b;++ub&&(p=b);return p}function n(o,h,f){o=+o,h=+h,f=(b=arguments.length)<2?(h=o,o=0,1):b<3?1:+f;for(var u=-1,b=Math.max(0,Math.ceil((h-o)/f))|0,p=new Array(b);++u=h.length)return u!=null&&c.sort(u),b!=null?b(c):c;for(var R=-1,T=c.length,L=h[x++],P,d,k=C(),I,N=A();++Rh.length)return c;var A,M=f[x-1];return b!=null&&x>=h.length?A=c.entries():(A=[],c.each(function(R,T){A.push({key:T,values:g(R,x)})})),M!=null?A.sort(function(R,T){return M(R.key,T.key)}):A}return p={object:function(c){return E(c,0,v,m)},map:function(c){return E(c,0,a,n)},entries:function(c){return g(E(c,0,a,n),0)},key:function(c){return h.push(c),p},sortKeys:function(c){return f[h.length-1]=c,p},sortValues:function(c){return u=c,p},rollup:function(c){return b=c,p}}}function v(){return{}}function m(h,f,u){h[f]=u}function a(){return C()}function n(h,f,u){h.set(f,u)}function s(){}var o=C.prototype;s.prototype={constructor:s,has:o.has,add:function(h){return h+="",this[l+h]=h,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each}},49812:function(D,O,t){t.r(O),t.d(O,{forceCenter:function(){return l},forceCollide:function(){return k},forceLink:function(){return G},forceManyBody:function(){return $e},forceRadial:function(){return st},forceSimulation:function(){return ze},forceX:function(){return vt},forceY:function(){return at}});function l(nt,mt){var rt;nt==null&&(nt=0),mt==null&&(mt=0);function lt(){var dt,wt=rt.length,et,Be=0,Ye=0;for(dt=0;dt=(Fe=(Be+Ke)/2))?Be=Fe:Ke=Fe,(Ve=rt>=(Me=(Ye+We)/2))?Ye=Me:We=Me,dt=wt,!(wt=wt[Je=Ve<<1|Pe]))return dt[Je]=et,nt;if(we=+nt._x.call(null,wt.data),Re=+nt._y.call(null,wt.data),mt===we&&rt===Re)return et.next=wt,dt?dt[Je]=et:nt._root=et,nt;do dt=dt?dt[Je]=new Array(4):nt._root=new Array(4),(Pe=mt>=(Fe=(Be+Ke)/2))?Be=Fe:Ke=Fe,(Ve=rt>=(Me=(Ye+We)/2))?Ye=Me:We=Me;while((Je=Ve<<1|Pe)===(ot=(Re>=Me)<<1|we>=Fe));return dt[ot]=wt,dt[Je]=et,nt}function v(nt){var mt,rt,lt=nt.length,dt,wt,et=new Array(lt),Be=new Array(lt),Ye=1/0,Ke=1/0,We=-1/0,Fe=-1/0;for(rt=0;rtWe&&(We=dt),wtFe&&(Fe=wt));if(Ye>We||Ke>Fe)return this;for(this.cover(Ye,Ke).cover(We,Fe),rt=0;rtnt||nt>=dt||lt>mt||mt>=wt;)switch(Ke=(mtWe||(Be=Re.y0)>Fe||(Ye=Re.x1)=Je)<<1|nt>=Ve)&&(Re=Me[Me.length-1],Me[Me.length-1]=Me[Me.length-1-Pe],Me[Me.length-1-Pe]=Re)}else{var ot=nt-+this._x.call(null,we.data),yt=mt-+this._y.call(null,we.data),ut=ot*ot+yt*yt;if(ut=(Me=(et+Ye)/2))?et=Me:Ye=Me,(Pe=Fe>=(we=(Be+Ke)/2))?Be=we:Ke=we,mt=rt,!(rt=rt[Ve=Pe<<1|Re]))return this;if(!rt.length)break;(mt[Ve+1&3]||mt[Ve+2&3]||mt[Ve+3&3])&&(lt=mt,Je=Ve)}for(;rt.data!==nt;)if(dt=rt,!(rt=rt.next))return this;return(wt=rt.next)&&delete rt.next,dt?(wt?dt.next=wt:delete dt.next,this):mt?(wt?mt[Ve]=wt:delete mt[Ve],(rt=mt[0]||mt[1]||mt[2]||mt[3])&&rt===(mt[3]||mt[2]||mt[1]||mt[0])&&!rt.length&&(lt?lt[Je]=rt:this._root=rt),this):(this._root=wt,this)}function f(nt){for(var mt=0,rt=nt.length;mtFe.index){var dr=Me-xt.x-xt.vx,Tt=we-xt.y-xt.vy,Kt=dr*dr+Tt*Tt;KtMe+Xt||Itwe+Xt||VtYe.r&&(Ye.r=Ye[Ke].r)}function Be(){if(mt){var Ye,Ke=mt.length,We;for(rt=new Array(Ke),Ye=0;Ye=0&&(lt=rt.slice(dt+1),rt=rt.slice(0,dt)),rt&&!mt.hasOwnProperty(rt))throw new Error("unknown type: "+rt);return{type:rt,name:lt}})}W.prototype=H.prototype={constructor:W,on:function(nt,mt){var rt=this._,lt=V(nt+"",rt),dt,wt=-1,et=lt.length;if(arguments.length<2){for(;++wt0)for(var rt=new Array(dt),lt=0,dt,wt;lt=0&&nt._call.call(null,mt),nt=nt._next;--ae}function Se(){ne=(K=re.now())+ce,ae=ie=0;try{Ee()}finally{ae=0,Te(),ne=0}}function ke(){var nt=re.now(),mt=nt-K;mt>Q&&(ce-=mt,K=nt)}function Te(){for(var nt,mt=J,rt,lt=1/0;mt;)mt._call?(lt>mt._time&&(lt=mt._time),nt=mt,mt=mt._next):(rt=mt._next,mt._next=null,mt=nt?nt._next=rt:J=rt);oe=nt,Ae(lt)}function Ae(nt){if(!ae){ie&&(ie=clearTimeout(ie));var mt=nt-ne;mt>24?(nt<1/0&&(ie=setTimeout(Se,nt-re.now()-ce)),fe&&(fe=clearInterval(fe))):(fe||(K=re.now(),fe=setInterval(ke,Q)),ae=1,ee(Se))}}function be(nt){return nt.x}function Ie(nt){return nt.y}var Ue=10,Ne=Math.PI*(3-Math.sqrt(5));function ze(nt){var mt,rt=1,lt=.001,dt=1-Math.pow(lt,1/300),wt=0,et=.6,Be=(0,I.kH)(),Ye=xe(We),Ke=q("tick","end");nt==null&&(nt=[]);function We(){Fe(),Ke.call("tick",mt),rt1?(Pe==null?Be.remove(Re):Be.set(Re,we(Pe)),mt):Be.get(Re)},find:function(Re,Pe,Ve){var Je=0,ot=nt.length,yt,ut,It,Vt,xt;for(Ve==null?Ve=1/0:Ve*=Ve,Je=0;Je1?(Ke.on(Re,Pe),mt):Ke.on(Re)}}}function $e(){var nt,mt,rt,lt=S(-30),dt,wt=1,et=1/0,Be=.81;function Ye(Me){var we,Re=nt.length,Pe=M(nt,be,Ie).visitAfter(We);for(rt=Me,we=0;we=et)return;(Me.data!==mt||Me.next)&&(Ve===0&&(Ve=i(),yt+=Ve*Ve),Je===0&&(Je=i(),yt+=Je*Je),yt=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function S(A,M){if((R=(A=M?A.toExponential(M-1):A.toExponential()).indexOf("e"))<0)return null;var R,T=A.slice(0,R);return[T.length>1?T[0]+T.slice(2):T,+A.slice(R+1)]}function i(A){return A=S(Math.abs(A)),A?A[1]:NaN}function C(A,M){return function(R,T){for(var L=R.length,P=[],d=0,k=A[0],I=0;L>0&&k>0&&(I+k+1>T&&(k=Math.max(1,T-I)),P.push(R.substring(L-=k,L+k)),!((I+=k+1)>T));)k=A[d=(d+1)%A.length];return P.reverse().join(M)}}function w(A){return function(M){return M.replace(/[0-9]/g,function(R){return A[+R]})}}var v=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m(A){if(!(M=v.exec(A)))throw new Error("invalid format: "+A);var M;return new a({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}m.prototype=a.prototype;function a(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function n(A){e:for(var M=A.length,R=1,T=-1,L;R0&&(T=0);break}return T>0?A.slice(0,T)+A.slice(L+1):A}var s;function o(A,M){var R=S(A,M);if(!R)return A+"";var T=R[0],L=R[1],P=L-(s=Math.max(-8,Math.min(8,Math.floor(L/3)))*3)+1,d=T.length;return P===d?T:P>d?T+new Array(P-d+1).join("0"):P>0?T.slice(0,P)+"."+T.slice(P):"0."+new Array(1-P).join("0")+S(A,Math.max(0,M+P-1))[0]}function h(A,M){var R=S(A,M);if(!R)return A+"";var T=R[0],L=R[1];return L<0?"0."+new Array(-L).join("0")+T:T.length>L+1?T.slice(0,L+1)+"."+T.slice(L+1):T+new Array(L-T.length+2).join("0")}var f={"%":function(A,M){return(A*100).toFixed(M)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:l,e:function(A,M){return A.toExponential(M)},f:function(A,M){return A.toFixed(M)},g:function(A,M){return A.toPrecision(M)},o:function(A){return Math.round(A).toString(8)},p:function(A,M){return h(A*100,M)},r:h,s:o,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function u(A){return A}var b=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function E(A){var M=A.grouping===void 0||A.thousands===void 0?u:C(b.call(A.grouping,Number),A.thousands+""),R=A.currency===void 0?"":A.currency[0]+"",T=A.currency===void 0?"":A.currency[1]+"",L=A.decimal===void 0?".":A.decimal+"",P=A.numerals===void 0?u:w(b.call(A.numerals,String)),d=A.percent===void 0?"%":A.percent+"",k=A.minus===void 0?"-":A.minus+"",I=A.nan===void 0?"NaN":A.nan+"";function N(G){G=m(G);var U=G.fill,H=G.align,W=G.sign,V=G.symbol,$=G.zero,Z=G.width,q=G.comma,ae=G.precision,ie=G.trim,fe=G.type;fe==="n"?(q=!0,fe="g"):f[fe]||(ae===void 0&&(ae=12),ie=!0,fe="g"),($||U==="0"&&H==="=")&&($=!0,U="0",H="=");var Q=V==="$"?R:V==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",J=V==="$"?T:/[%p]/.test(fe)?d:"",oe=f[fe],K=/[defgprs%]/.test(fe);ae=ae===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,ae)):Math.max(0,Math.min(20,ae));function ne(ce){var re=Q,ee=J,de,le,he;if(fe==="c")ee=oe(ce)+ee,ce="";else{ce=+ce;var xe=ce<0||1/ce<0;if(ce=isNaN(ce)?I:oe(Math.abs(ce),ae),ie&&(ce=n(ce)),xe&&+ce==0&&W!=="+"&&(xe=!1),re=(xe?W==="("?W:k:W==="-"||W==="("?"":W)+re,ee=(fe==="s"?p[8+s/3]:"")+ee+(xe&&W==="("?")":""),K){for(de=-1,le=ce.length;++dehe||he>57){ee=(he===46?L+ce.slice(de+1):ce.slice(de))+ee,ce=ce.slice(0,de);break}}}q&&!$&&(ce=M(ce,1/0));var Ee=re.length+ce.length+ee.length,Se=Ee>1)+re+ce+ee+Se.slice(Ee);break;default:ce=Se+re+ce+ee;break}return P(ce)}return ne.toString=function(){return G+""},ne}function B(G,U){var H=N((G=m(G),G.type="f",G)),W=Math.max(-8,Math.min(8,Math.floor(i(U)/3)))*3,V=Math.pow(10,-W),$=p[8+W/3];return function(Z){return H(V*Z)+$}}return{format:N,formatPrefix:B}}var g,c;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(A){return g=E(A),c=g.format,g.formatPrefix,g}},87108:function(D,O,t){t.r(O),t.d(O,{geoAiry:function(){return $},geoAiryRaw:function(){return V},geoAitoff:function(){return q},geoAitoffRaw:function(){return Z},geoArmadillo:function(){return ie},geoArmadilloRaw:function(){return ae},geoAugust:function(){return Q},geoAugustRaw:function(){return fe},geoBaker:function(){return ne},geoBakerRaw:function(){return K},geoBerghaus:function(){return ee},geoBerghausRaw:function(){return re},geoBertin1953:function(){return Te},geoBertin1953Raw:function(){return ke},geoBoggs:function(){return st},geoBoggsRaw:function(){return $e},geoBonne:function(){return rt},geoBonneRaw:function(){return mt},geoBottomley:function(){return dt},geoBottomleyRaw:function(){return lt},geoBromley:function(){return et},geoBromleyRaw:function(){return wt},geoChamberlin:function(){return Pe},geoChamberlinAfrica:function(){return Re},geoChamberlinRaw:function(){return Me},geoCollignon:function(){return Je},geoCollignonRaw:function(){return Ve},geoCraig:function(){return yt},geoCraigRaw:function(){return ot},geoCraster:function(){return Vt},geoCrasterRaw:function(){return It},geoCylindricalEqualArea:function(){return Lt},geoCylindricalEqualAreaRaw:function(){return xt},geoCylindricalStereographic:function(){return dr},geoCylindricalStereographicRaw:function(){return Xt},geoEckert1:function(){return Kt},geoEckert1Raw:function(){return Tt},geoEckert2:function(){return xr},geoEckert2Raw:function(){return Qt},geoEckert3:function(){return Ct},geoEckert3Raw:function(){return sr},geoEckert4:function(){return At},geoEckert4Raw:function(){return ht},geoEckert5:function(){return _t},geoEckert5Raw:function(){return Rt},geoEckert6:function(){return Wt},geoEckert6Raw:function(){return Ft},geoEisenlohr:function(){return hr},geoEisenlohrRaw:function(){return er},geoFahey:function(){return Ze},geoFaheyRaw:function(){return mr},geoFoucaut:function(){return Ut},geoFoucautRaw:function(){return Xe},geoFoucautSinusoidal:function(){return qt},geoFoucautSinusoidalRaw:function(){return Bt},geoGilbert:function(){return pr},geoGingery:function(){return Xr},geoGingeryRaw:function(){return br},geoGinzburg4:function(){return yn},geoGinzburg4Raw:function(){return Fr},geoGinzburg5:function(){return _n},geoGinzburg5Raw:function(){return un},geoGinzburg6:function(){return Mr},geoGinzburg6Raw:function(){return On},geoGinzburg8:function(){return Zr},geoGinzburg8Raw:function(){return Rr},geoGinzburg9:function(){return fn},geoGinzburg9Raw:function(){return Wr},geoGringorten:function(){return ma},geoGringortenQuincuncial:function(){return p0},geoGringortenRaw:function(){return Sn},geoGuyou:function(){return wn},geoGuyouRaw:function(){return Cr},geoHammer:function(){return xe},geoHammerRaw:function(){return le},geoHammerRetroazimuthal:function(){return Xn},geoHammerRetroazimuthalRaw:function(){return In},geoHealpix:function(){return vn},geoHealpixRaw:function(){return Ar},geoHill:function(){return Qr},geoHillRaw:function(){return Lr},geoHomolosine:function(){return Zn},geoHomolosineRaw:function(){return Bn},geoHufnagel:function(){return Oa},geoHufnagelRaw:function(){return $n},geoHyperelliptical:function(){return qi},geoHyperellipticalRaw:function(){return $a},geoInterrupt:function(){return os},geoInterruptedBoggs:function(){return ph},geoInterruptedHomolosine:function(){return Ei},geoInterruptedMollweide:function(){return gh},geoInterruptedMollweideHemispheres:function(){return Is},geoInterruptedQuarticAuthalic:function(){return Mu},geoInterruptedSinuMollweide:function(){return Cd},geoInterruptedSinusoidal:function(){return Dc},geoKavrayskiy7:function(){return jo},geoKavrayskiy7Raw:function(){return ko},geoLagrange:function(){return ss},geoLagrangeRaw:function(){return Oc},geoLarrivee:function(){return xv},geoLarriveeRaw:function(){return Js},geoLaskowski:function(){return t0},geoLaskowskiRaw:function(){return Vs},geoLittrow:function(){return es},geoLittrowRaw:function(){return zl},geoLoximuthal:function(){return Cu},geoLoximuthalRaw:function(){return mh},geoMiller:function(){return yh},geoMillerRaw:function(){return Bl},geoModifiedStereographic:function(){return rc},geoModifiedStereographicAlaska:function(){return xh},geoModifiedStereographicGs48:function(){return o0},geoModifiedStereographicGs50:function(){return s0},geoModifiedStereographicLee:function(){return Tv},geoModifiedStereographicMiller:function(){return wv},geoModifiedStereographicRaw:function(){return bv},geoMollweide:function(){return Ue},geoMollweideRaw:function(){return Ie},geoMtFlatPolarParabolic:function(){return Sv},geoMtFlatPolarParabolicRaw:function(){return Ff},geoMtFlatPolarQuartic:function(){return l0},geoMtFlatPolarQuarticRaw:function(){return nu},geoMtFlatPolarSinusoidal:function(){return Cv},geoMtFlatPolarSinusoidalRaw:function(){return Ad},geoNaturalEarth:function(){return Mv.c},geoNaturalEarth2:function(){return vl},geoNaturalEarth2Raw:function(){return Ed},geoNaturalEarthRaw:function(){return Mv.g},geoNellHammer:function(){return nc},geoNellHammerRaw:function(){return _c},geoNicolosi:function(){return bh},geoNicolosiRaw:function(){return Nl},geoPatterson:function(){return Uc},geoPattersonRaw:function(){return Ld},geoPeirceQuincuncial:function(){return Rv},geoPierceQuincuncial:function(){return Rv},geoPolyconic:function(){return c0},geoPolyconicRaw:function(){return Id},geoPolyhedral:function(){return eo},geoPolyhedralButterfly:function(){return Bf},geoPolyhedralCollignon:function(){return ic},geoPolyhedralWaterman:function(){return Eu},geoProject:function(){return h0},geoQuantize:function(){return kv},geoQuincuncial:function(){return ou},geoRectangularPolyconic:function(){return Dv},geoRectangularPolyconicRaw:function(){return Eh},geoRobinson:function(){return Pu},geoRobinsonRaw:function(){return wl},geoSatellite:function(){return oc},geoSatelliteRaw:function(){return Od},geoSinuMollweide:function(){return zn},geoSinuMollweideRaw:function(){return Pn},geoSinusoidal:function(){return nt},geoSinusoidalRaw:function(){return at},geoStitch:function(){return Wf},geoTimes:function(){return Go},geoTimesRaw:function(){return Ru},geoTwoPointAzimuthal:function(){return zd},geoTwoPointAzimuthalRaw:function(){return Lh},geoTwoPointAzimuthalUsa:function(){return lc},geoTwoPointEquidistant:function(){return _v},geoTwoPointEquidistantRaw:function(){return $f},geoTwoPointEquidistantUsa:function(){return g0},geoVanDerGrinten:function(){return Yf},geoVanDerGrinten2:function(){return zv},geoVanDerGrinten2Raw:function(){return Zc},geoVanDerGrinten3:function(){return m0},geoVanDerGrinten3Raw:function(){return ku},geoVanDerGrinten4:function(){return Xf},geoVanDerGrinten4Raw:function(){return Gs},geoVanDerGrintenRaw:function(){return bs},geoWagner:function(){return Du},geoWagner4:function(){return Bv},geoWagner4Raw:function(){return Nd},geoWagner6:function(){return Rh},geoWagner6Raw:function(){return Jf},geoWagner7:function(){return Ih},geoWagnerRaw:function(){return uu},geoWiechel:function(){return kh},geoWiechelRaw:function(){return uc},geoWinkel3:function(){return Nv},geoWinkel3Raw:function(){return Qf}});var l=t(87952),S=Math.abs,i=Math.atan,C=Math.atan2,w=Math.cos,v=Math.exp,m=Math.floor,a=Math.log,n=Math.max,s=Math.min,o=Math.pow,h=Math.round,f=Math.sign||function(qe){return qe>0?1:qe<0?-1:0},u=Math.sin,b=Math.tan,p=1e-6,E=1e-12,g=Math.PI,c=g/2,x=g/4,A=Math.SQRT1_2,M=N(2),R=N(g),T=g*2,L=180/g,P=g/180;function d(qe){return qe?qe/Math.sin(qe):1}function k(qe){return qe>1?c:qe<-1?-c:Math.asin(qe)}function I(qe){return qe>1?0:qe<-1?g:Math.acos(qe)}function N(qe){return qe>0?Math.sqrt(qe):0}function B(qe){return qe=v(2*qe),(qe-1)/(qe+1)}function G(qe){return(v(qe)-v(-qe))/2}function U(qe){return(v(qe)+v(-qe))/2}function H(qe){return a(qe+N(qe*qe+1))}function W(qe){return a(qe+N(qe*qe-1))}function V(qe){var ft=b(qe/2),St=2*a(w(qe/2))/(ft*ft);function Mt(Nt,zt){var Gt=w(Nt),yr=w(zt),Sr=u(zt),lr=yr*Gt,Er=-((1-lr?a((1+lr)/2)/(1-lr):-.5)+St/(1+lr));return[Er*yr*u(Nt),Er*Sr]}return Mt.invert=function(Nt,zt){var Gt=N(Nt*Nt+zt*zt),yr=-qe/2,Sr=50,lr;if(!Gt)return[0,0];do{var Er=yr/2,_r=w(Er),jr=u(Er),sn=jr/_r,Mn=-a(S(_r));yr-=lr=(2/sn*Mn-St*sn-Gt)/(-Mn/(jr*jr)+1-St/(2*_r*_r))*(_r<0?.7:1)}while(S(lr)>p&&--Sr>0);var Nn=u(yr);return[C(Nt*Nn,Gt*w(yr)),k(zt*Nn/Gt)]},Mt}function $(){var qe=c,ft=(0,l.U)(V),St=ft(qe);return St.radius=function(Mt){return arguments.length?ft(qe=Mt*P):qe*L},St.scale(179.976).clipAngle(147)}function Z(qe,ft){var St=w(ft),Mt=d(I(St*w(qe/=2)));return[2*St*u(qe)*Mt,u(ft)*Mt]}Z.invert=function(qe,ft){if(!(qe*qe+4*ft*ft>g*g+p)){var St=qe,Mt=ft,Nt=25;do{var zt=u(St),Gt=u(St/2),yr=w(St/2),Sr=u(Mt),lr=w(Mt),Er=u(2*Mt),_r=Sr*Sr,jr=lr*lr,sn=Gt*Gt,Mn=1-jr*yr*yr,Nn=Mn?I(lr*yr)*N(Un=1/Mn):Un=0,Un,aa=2*Nn*lr*Gt-qe,Ya=Nn*Sr-ft,Xa=Un*(jr*sn+Nn*lr*yr*_r),Ja=Un*(.5*zt*Er-Nn*2*Sr*Gt),ri=Un*.25*(Er*Gt-Nn*Sr*jr*zt),xi=Un*(_r*yr+Nn*sn*lr),Xi=Ja*ri-xi*Xa;if(!Xi)break;var Io=(Ya*Ja-aa*xi)/Xi,ve=(aa*ri-Ya*Xa)/Xi;St-=Io,Mt-=ve}while((S(Io)>p||S(ve)>p)&&--Nt>0);return[St,Mt]}};function q(){return(0,l.c)(Z).scale(152.63)}function ae(qe){var ft=u(qe),St=w(qe),Mt=qe>=0?1:-1,Nt=b(Mt*qe),zt=(1+ft-St)/2;function Gt(yr,Sr){var lr=w(Sr),Er=w(yr/=2);return[(1+lr)*u(yr),(Mt*Sr>-C(Er,Nt)-.001?0:-Mt*10)+zt+u(Sr)*St-(1+lr)*ft*Er]}return Gt.invert=function(yr,Sr){var lr=0,Er=0,_r=50;do{var jr=w(lr),sn=u(lr),Mn=w(Er),Nn=u(Er),Un=1+Mn,aa=Un*sn-yr,Ya=zt+Nn*St-Un*ft*jr-Sr,Xa=Un*jr/2,Ja=-sn*Nn,ri=ft*Un*sn/2,xi=St*Mn+ft*jr*Nn,Xi=Ja*ri-xi*Xa,Io=(Ya*Ja-aa*xi)/Xi/2,ve=(aa*ri-Ya*Xa)/Xi;S(ve)>2&&(ve/=2),lr-=Io,Er-=ve}while((S(Io)>p||S(ve)>p)&&--_r>0);return Mt*Er>-C(w(lr),Nt)-.001?[lr*2,Er]:null},Gt}function ie(){var qe=20*P,ft=qe>=0?1:-1,St=b(ft*qe),Mt=(0,l.U)(ae),Nt=Mt(qe),zt=Nt.stream;return Nt.parallel=function(Gt){return arguments.length?(St=b((ft=(qe=Gt*P)>=0?1:-1)*qe),Mt(qe)):qe*L},Nt.stream=function(Gt){var yr=Nt.rotate(),Sr=zt(Gt),lr=(Nt.rotate([0,0]),zt(Gt)),Er=Nt.precision();return Nt.rotate(yr),Sr.sphere=function(){lr.polygonStart(),lr.lineStart();for(var _r=ft*-180;ft*_r<180;_r+=ft*90)lr.point(_r,ft*90);if(qe)for(;ft*(_r-=3*ft*Er)>=-180;)lr.point(_r,ft*-C(w(_r*P/2),St)*L);lr.lineEnd(),lr.polygonEnd()},Sr},Nt.scale(218.695).center([0,28.0974])}function fe(qe,ft){var St=b(ft/2),Mt=N(1-St*St),Nt=1+Mt*w(qe/=2),zt=u(qe)*Mt/Nt,Gt=St/Nt,yr=zt*zt,Sr=Gt*Gt;return[1.3333333333333333*zt*(3+yr-3*Sr),1.3333333333333333*Gt*(3+3*yr-Sr)]}fe.invert=function(qe,ft){if(qe*=.375,ft*=.375,!qe&&S(ft)>1)return null;var St=qe*qe,Mt=ft*ft,Nt=1+St+Mt,zt=N((Nt-N(Nt*Nt-4*ft*ft))/2),Gt=k(zt)/3,yr=zt?W(S(ft/zt))/3:H(S(qe))/3,Sr=w(Gt),lr=U(yr),Er=lr*lr-Sr*Sr;return[f(qe)*2*C(G(yr)*Sr,.25-Er),f(ft)*2*C(lr*u(Gt),.25+Er)]};function Q(){return(0,l.c)(fe).scale(66.1603)}var J=N(8),oe=a(1+M);function K(qe,ft){var St=S(ft);return StE&&--Mt>0);return[qe/(w(St)*(J-1/u(St))),f(ft)*St]};function ne(){return(0,l.c)(K).scale(112.314)}var ce=t(69020);function re(qe){var ft=2*g/qe;function St(Mt,Nt){var zt=(0,ce.O)(Mt,Nt);if(S(Mt)>c){var Gt=C(zt[1],zt[0]),yr=N(zt[0]*zt[0]+zt[1]*zt[1]),Sr=ft*h((Gt-c)/ft)+c,lr=C(u(Gt-=Sr),2-w(Gt));Gt=Sr+k(g/yr*u(lr))-lr,zt[0]=yr*w(Gt),zt[1]=yr*u(Gt)}return zt}return St.invert=function(Mt,Nt){var zt=N(Mt*Mt+Nt*Nt);if(zt>c){var Gt=C(Nt,Mt),yr=ft*h((Gt-c)/ft)+c,Sr=Gt>yr?-1:1,lr=zt*w(yr-Gt),Er=1/b(Sr*I((lr-g)/N(g*(g-2*lr)+zt*zt)));Gt=yr+2*i((Er+Sr*N(Er*Er-3))/3),Mt=zt*w(Gt),Nt=zt*u(Gt)}return ce.O.invert(Mt,Nt)},St}function ee(){var qe=5,ft=(0,l.U)(re),St=ft(qe),Mt=St.stream,Nt=.01,zt=-w(Nt*P),Gt=u(Nt*P);return St.lobes=function(yr){return arguments.length?ft(qe=+yr):qe},St.stream=function(yr){var Sr=St.rotate(),lr=Mt(yr),Er=(St.rotate([0,0]),Mt(yr));return St.rotate(Sr),lr.sphere=function(){Er.polygonStart(),Er.lineStart();for(var _r=0,jr=360/qe,sn=2*g/qe,Mn=90-180/qe,Nn=c;_r0&&S(Nt)>p);return Mt<0?NaN:St}function Se(qe,ft,St){return ft===void 0&&(ft=40),St===void 0&&(St=E),function(Mt,Nt,zt,Gt){var yr,Sr,lr;zt=zt===void 0?0:+zt,Gt=Gt===void 0?0:+Gt;for(var Er=0;Eryr){zt-=Sr/=2,Gt-=lr/=2;continue}yr=Mn;var Nn=(zt>0?-1:1)*St,Un=(Gt>0?-1:1)*St,aa=qe(zt+Nn,Gt),Ya=qe(zt,Gt+Un),Xa=(aa[0]-_r[0])/Nn,Ja=(aa[1]-_r[1])/Nn,ri=(Ya[0]-_r[0])/Un,xi=(Ya[1]-_r[1])/Un,Xi=xi*Xa-Ja*ri,Io=(S(Xi)<.5?.5:1)/Xi;if(Sr=(sn*ri-jr*xi)*Io,lr=(jr*Ja-sn*Xa)*Io,zt+=Sr,Gt+=lr,S(Sr)0&&(yr[1]*=1+Sr/1.5*yr[0]*yr[0]),yr}return Mt.invert=Se(Mt),Mt}function Te(){return(0,l.c)(ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ae(qe,ft){var St=qe*u(ft),Mt=30,Nt;do ft-=Nt=(ft+u(ft)-St)/(1+w(ft));while(S(Nt)>p&&--Mt>0);return ft/2}function be(qe,ft,St){function Mt(Nt,zt){return[qe*Nt*w(zt=Ae(St,zt)),ft*u(zt)]}return Mt.invert=function(Nt,zt){return zt=k(zt/ft),[Nt/(qe*w(zt)),k((2*zt+u(2*zt))/St)]},Mt}var Ie=be(M/c,M,g);function Ue(){return(0,l.c)(Ie).scale(169.529)}var Ne=2.00276,ze=1.11072;function $e(qe,ft){var St=Ae(g,ft);return[Ne*qe/(1/w(ft)+ze/w(St)),(ft+M*u(St))/Ne]}$e.invert=function(qe,ft){var St=Ne*ft,Mt=ft<0?-x:x,Nt=25,zt,Gt;do Gt=St-M*u(Mt),Mt-=zt=(u(2*Mt)+2*Mt-g*u(Gt))/(2*w(2*Mt)+2+g*w(Gt)*M*w(Mt));while(S(zt)>p&&--Nt>0);return Gt=St-M*u(Mt),[qe*(1/w(Gt)+ze/w(Mt))/Ne,Gt]};function st(){return(0,l.c)($e).scale(160.857)}function vt(qe){var ft=0,St=(0,l.U)(qe),Mt=St(ft);return Mt.parallel=function(Nt){return arguments.length?St(ft=Nt*P):ft*L},Mt}function at(qe,ft){return[qe*w(ft),ft]}at.invert=function(qe,ft){return[qe/w(ft),ft]};function nt(){return(0,l.c)(at).scale(152.63)}function mt(qe){if(!qe)return at;var ft=1/b(qe);function St(Mt,Nt){var zt=ft+qe-Nt,Gt=zt&&Mt*w(Nt)/zt;return[zt*u(Gt),ft-zt*w(Gt)]}return St.invert=function(Mt,Nt){var zt=N(Mt*Mt+(Nt=ft-Nt)*Nt),Gt=ft+qe-zt;return[zt/w(Gt)*C(Mt,Nt),Gt]},St}function rt(){return vt(mt).scale(123.082).center([0,26.1441]).parallel(45)}function lt(qe){function ft(St,Mt){var Nt=c-Mt,zt=Nt&&St*qe*u(Nt)/Nt;return[Nt*u(zt)/qe,c-Nt*w(zt)]}return ft.invert=function(St,Mt){var Nt=St*qe,zt=c-Mt,Gt=N(Nt*Nt+zt*zt),yr=C(Nt,zt);return[(Gt?Gt/u(Gt):1)*yr/qe,c-Gt]},ft}function dt(){var qe=.5,ft=(0,l.U)(lt),St=ft(qe);return St.fraction=function(Mt){return arguments.length?ft(qe=+Mt):qe},St.scale(158.837)}var wt=be(1,4/g,g);function et(){return(0,l.c)(wt).scale(152.63)}var Be=t(24052),Ye=t(92992);function Ke(qe,ft,St,Mt,Nt,zt){var Gt=w(zt),yr;if(S(qe)>1||S(zt)>1)yr=I(St*Nt+ft*Mt*Gt);else{var Sr=u(qe/2),lr=u(zt/2);yr=2*k(N(Sr*Sr+ft*Mt*lr*lr))}return S(yr)>p?[yr,C(Mt*u(zt),ft*Nt-St*Mt*Gt)]:[0,0]}function We(qe,ft,St){return I((qe*qe+ft*ft-St*St)/(2*qe*ft))}function Fe(qe){return qe-2*g*m((qe+g)/(2*g))}function Me(qe,ft,St){for(var Mt=[[qe[0],qe[1],u(qe[1]),w(qe[1])],[ft[0],ft[1],u(ft[1]),w(ft[1])],[St[0],St[1],u(St[1]),w(St[1])]],Nt=Mt[2],zt,Gt=0;Gt<3;++Gt,Nt=zt)zt=Mt[Gt],Nt.v=Ke(zt[1]-Nt[1],Nt[3],Nt[2],zt[3],zt[2],zt[0]-Nt[0]),Nt.point=[0,0];var yr=We(Mt[0].v[0],Mt[2].v[0],Mt[1].v[0]),Sr=We(Mt[0].v[0],Mt[1].v[0],Mt[2].v[0]),lr=g-yr;Mt[2].point[1]=0,Mt[0].point[0]=-(Mt[1].point[0]=Mt[0].v[0]/2);var Er=[Mt[2].point[0]=Mt[0].point[0]+Mt[2].v[0]*w(yr),2*(Mt[0].point[1]=Mt[1].point[1]=Mt[2].v[0]*u(yr))];function _r(jr,sn){var Mn=u(sn),Nn=w(sn),Un=new Array(3),aa;for(aa=0;aa<3;++aa){var Ya=Mt[aa];if(Un[aa]=Ke(sn-Ya[1],Ya[3],Ya[2],Nn,Mn,jr-Ya[0]),!Un[aa][0])return Ya.point;Un[aa][1]=Fe(Un[aa][1]-Ya.v[1])}var Xa=Er.slice();for(aa=0;aa<3;++aa){var Ja=aa==2?0:aa+1,ri=We(Mt[aa].v[0],Un[aa][0],Un[Ja][0]);Un[aa][1]<0&&(ri=-ri),aa?aa==1?(ri=Sr-ri,Xa[0]-=Un[aa][0]*w(ri),Xa[1]-=Un[aa][0]*u(ri)):(ri=lr-ri,Xa[0]+=Un[aa][0]*w(ri),Xa[1]+=Un[aa][0]*u(ri)):(Xa[0]+=Un[aa][0]*w(ri),Xa[1]-=Un[aa][0]*u(ri))}return Xa[0]/=3,Xa[1]/=3,Xa}return _r}function we(qe){return qe[0]*=P,qe[1]*=P,qe}function Re(){return Pe([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Pe(qe,ft,St){var Mt=(0,Be.c)({type:"MultiPoint",coordinates:[qe,ft,St]}),Nt=[-Mt[0],-Mt[1]],zt=(0,Ye.c)(Nt),Gt=Me(we(zt(qe)),we(zt(ft)),we(zt(St)));Gt.invert=Se(Gt);var yr=(0,l.c)(Gt).rotate(Nt),Sr=yr.center;return delete yr.rotate,yr.center=function(lr){return arguments.length?Sr(zt(lr)):zt.invert(Sr())},yr.clipAngle(90)}function Ve(qe,ft){var St=N(1-u(ft));return[2/R*qe*St,R*(1-St)]}Ve.invert=function(qe,ft){var St=(St=ft/R-1)*St;return[St>0?qe*N(g/St)/2:0,k(1-St)]};function Je(){return(0,l.c)(Ve).scale(95.6464).center([0,30])}function ot(qe){var ft=b(qe);function St(Mt,Nt){return[Mt,(Mt?Mt/u(Mt):1)*(u(Nt)*w(Mt)-ft*w(Nt))]}return St.invert=ft?function(Mt,Nt){Mt&&(Nt*=u(Mt)/Mt);var zt=w(Mt);return[Mt,2*C(N(zt*zt+ft*ft-Nt*Nt)-zt,ft-Nt)]}:function(Mt,Nt){return[Mt,k(Mt?Nt*b(Mt)/Mt:Nt)]},St}function yt(){return vt(ot).scale(249.828).clipAngle(90)}var ut=N(3);function It(qe,ft){return[ut*qe*(2*w(2*ft/3)-1)/R,ut*R*u(ft/3)]}It.invert=function(qe,ft){var St=3*k(ft/(ut*R));return[R*qe/(ut*(2*w(2*St/3)-1)),St]};function Vt(){return(0,l.c)(It).scale(156.19)}function xt(qe){var ft=w(qe);function St(Mt,Nt){return[Mt*ft,u(Nt)/ft]}return St.invert=function(Mt,Nt){return[Mt/ft,k(Nt*ft)]},St}function Lt(){return vt(xt).parallel(38.58).scale(195.044)}function Xt(qe){var ft=w(qe);function St(Mt,Nt){return[Mt*ft,(1+ft)*b(Nt/2)]}return St.invert=function(Mt,Nt){return[Mt/ft,i(Nt/(1+ft))*2]},St}function dr(){return vt(Xt).scale(124.75)}function Tt(qe,ft){var St=N(8/(3*g));return[St*qe*(1-S(ft)/g),St*ft]}Tt.invert=function(qe,ft){var St=N(8/(3*g)),Mt=ft/St;return[qe/(St*(1-S(Mt)/g)),Mt]};function Kt(){return(0,l.c)(Tt).scale(165.664)}function Qt(qe,ft){var St=N(4-3*u(S(ft)));return[2/N(6*g)*qe*St,f(ft)*N(2*g/3)*(2-St)]}Qt.invert=function(qe,ft){var St=2-S(ft)/N(2*g/3);return[qe*N(6*g)/(2*St),f(ft)*k((4-St*St)/3)]};function xr(){return(0,l.c)(Qt).scale(165.664)}function sr(qe,ft){var St=N(g*(4+g));return[2/St*qe*(1+N(1-4*ft*ft/(g*g))),4/St*ft]}sr.invert=function(qe,ft){var St=N(g*(4+g))/2;return[qe*St/(1+N(1-ft*ft*(4+g)/(4*g))),ft*St/2]};function Ct(){return(0,l.c)(sr).scale(180.739)}function ht(qe,ft){var St=(2+c)*u(ft);ft/=2;for(var Mt=0,Nt=1/0;Mt<10&&S(Nt)>p;Mt++){var zt=w(ft);ft-=Nt=(ft+u(ft)*(zt+2)-St)/(2*zt*(1+zt))}return[2/N(g*(4+g))*qe*(1+w(ft)),2*N(g/(4+g))*u(ft)]}ht.invert=function(qe,ft){var St=ft*N((4+g)/g)/2,Mt=k(St),Nt=w(Mt);return[qe/(2/N(g*(4+g))*(1+Nt)),k((Mt+St*(Nt+2))/(2+c))]};function At(){return(0,l.c)(ht).scale(180.739)}function Rt(qe,ft){return[qe*(1+w(ft))/N(2+g),2*ft/N(2+g)]}Rt.invert=function(qe,ft){var St=N(2+g),Mt=ft*St/2;return[St*qe/(1+w(Mt)),Mt]};function _t(){return(0,l.c)(Rt).scale(173.044)}function Ft(qe,ft){for(var St=(1+c)*u(ft),Mt=0,Nt=1/0;Mt<10&&S(Nt)>p;Mt++)ft-=Nt=(ft+u(ft)-St)/(1+w(ft));return St=N(2+g),[qe*(1+w(ft))/St,2*ft/St]}Ft.invert=function(qe,ft){var St=1+c,Mt=N(St/2);return[qe*2*Mt/(1+w(ft*=Mt)),k((ft+u(ft))/St)]};function Wt(){return(0,l.c)(Ft).scale(173.044)}var jt=3+2*M;function er(qe,ft){var St=u(qe/=2),Mt=w(qe),Nt=N(w(ft)),zt=w(ft/=2),Gt=u(ft)/(zt+M*Mt*Nt),yr=N(2/(1+Gt*Gt)),Sr=N((M*zt+(Mt+St)*Nt)/(M*zt+(Mt-St)*Nt));return[jt*(yr*(Sr-1/Sr)-2*a(Sr)),jt*(yr*Gt*(Sr+1/Sr)-2*i(Gt))]}er.invert=function(qe,ft){if(!(zt=fe.invert(qe/1.2,ft*1.065)))return null;var St=zt[0],Mt=zt[1],Nt=20,zt;qe/=jt,ft/=jt;do{var Gt=St/2,yr=Mt/2,Sr=u(Gt),lr=w(Gt),Er=u(yr),_r=w(yr),jr=w(Mt),sn=N(jr),Mn=Er/(_r+M*lr*sn),Nn=Mn*Mn,Un=N(2/(1+Nn)),aa=M*_r+(lr+Sr)*sn,Ya=M*_r+(lr-Sr)*sn,Xa=aa/Ya,Ja=N(Xa),ri=Ja-1/Ja,xi=Ja+1/Ja,Xi=Un*ri-2*a(Ja)-qe,Io=Un*Mn*xi-2*i(Mn)-ft,ve=Er&&A*sn*Sr*Nn/Er,De=(M*lr*_r+sn)/(2*(_r+M*lr*sn)*(_r+M*lr*sn)*sn),je=-.5*Mn*Un*Un*Un,it=je*ve,ct=je*De,gt=(gt=2*_r+M*sn*(lr-Sr))*gt*Ja,Dt=(M*lr*_r*sn+jr)/gt,Et=-(M*Sr*Er)/(sn*gt),Yt=ri*it-2*Dt/Ja+Un*(Dt+Dt/Xa),Zt=ri*ct-2*Et/Ja+Un*(Et+Et/Xa),ar=Mn*xi*it-2*ve/(1+Nn)+Un*xi*ve+Un*Mn*(Dt-Dt/Xa),Ir=Mn*xi*ct-2*De/(1+Nn)+Un*xi*De+Un*Mn*(Et-Et/Xa),kr=Zt*ar-Ir*Yt;if(!kr)break;var tn=(Io*Zt-Xi*Ir)/kr,dn=(Xi*ar-Io*Yt)/kr;St-=tn,Mt=n(-c,s(c,Mt-dn))}while((S(tn)>p||S(dn)>p)&&--Nt>0);return S(S(Mt)-c)Mt){var _r=N(Er),jr=C(lr,Sr),sn=St*h(jr/St),Mn=jr-sn,Nn=qe*w(Mn),Un=(qe*u(Mn)-Mn*u(Nn))/(c-Nn),aa=Tr(Mn,Un),Ya=(g-qe)/gr(aa,Nn,g);Sr=_r;var Xa=50,Ja;do Sr-=Ja=(qe+gr(aa,Nn,Sr)*Ya-_r)/(aa(Sr)*Ya);while(S(Ja)>p&&--Xa>0);lr=Mn*u(Sr),SrMt){var Sr=N(yr),lr=C(Gt,zt),Er=St*h(lr/St),_r=lr-Er;zt=Sr*w(_r),Gt=Sr*u(_r);for(var jr=zt-c,sn=u(zt),Mn=Gt/sn,Nn=ztp||S(Mn)>p)&&--Nn>0);return[_r,jr]},Sr}var Fr=Dr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function yn(){return(0,l.c)(Fr).scale(149.995)}var un=Dr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function _n(){return(0,l.c)(un).scale(153.93)}var On=Dr(5/6*g,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Mr(){return(0,l.c)(On).scale(130.945)}function Rr(qe,ft){var St=qe*qe,Mt=ft*ft;return[qe*(1-.162388*Mt)*(.87-952426e-9*St*St),ft*(1+Mt/12)]}Rr.invert=function(qe,ft){var St=qe,Mt=ft,Nt=50,zt;do{var Gt=Mt*Mt;Mt-=zt=(Mt*(1+Gt/12)-ft)/(1+Gt/4)}while(S(zt)>p&&--Nt>0);Nt=50,qe/=1-.162388*Gt;do{var yr=(yr=St*St)*yr;St-=zt=(St*(.87-952426e-9*yr)-qe)/(.87-.00476213*yr)}while(S(zt)>p&&--Nt>0);return[St,Mt]};function Zr(){return(0,l.c)(Rr).scale(131.747)}var Wr=Dr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function fn(){return(0,l.c)(Wr).scale(131.087)}function Tn(qe){var ft=qe(c,0)[0]-qe(-c,0)[0];function St(Mt,Nt){var zt=Mt>0?-.5:.5,Gt=qe(Mt+zt*g,Nt);return Gt[0]-=zt*ft,Gt}return qe.invert&&(St.invert=function(Mt,Nt){var zt=Mt>0?-.5:.5,Gt=qe.invert(Mt+zt*ft,Nt),yr=Gt[0]-zt*g;return yr<-g?yr+=2*g:yr>g&&(yr-=2*g),Gt[0]=yr,Gt}),St}function Sn(qe,ft){var St=f(qe),Mt=f(ft),Nt=w(ft),zt=w(qe)*Nt,Gt=u(qe)*Nt,yr=u(Mt*ft);qe=S(C(Gt,yr)),ft=k(zt),S(qe-c)>p&&(qe%=c);var Sr=Fn(qe>g/4?c-qe:qe,ft);return qe>g/4&&(yr=Sr[0],Sr[0]=-Sr[1],Sr[1]=-yr),Sr[0]*=St,Sr[1]*=-Mt,Sr}Sn.invert=function(qe,ft){S(qe)>1&&(qe=f(qe)*2-qe),S(ft)>1&&(ft=f(ft)*2-ft);var St=f(qe),Mt=f(ft),Nt=-St*qe,zt=-Mt*ft,Gt=zt/Nt<1,yr=Wn(Gt?zt:Nt,Gt?Nt:zt),Sr=yr[0],lr=yr[1],Er=w(lr);return Gt&&(Sr=-c-Sr),[St*(C(u(Sr)*Er,-u(lr))+g),Mt*k(w(Sr)*Er)]};function Fn(qe,ft){if(ft===c)return[0,0];var St=u(ft),Mt=St*St,Nt=Mt*Mt,zt=1+Nt,Gt=1+3*Nt,yr=1-Nt,Sr=k(1/N(zt)),lr=yr+Mt*zt*Sr,Er=(1-St)/lr,_r=N(Er),jr=Er*zt,sn=N(jr),Mn=_r*yr,Nn,Un;if(qe===0)return[0,-(Mn+Mt*sn)];var aa=w(ft),Ya=1/aa,Xa=2*St*aa,Ja=(-3*Mt+Sr*Gt)*Xa,ri=(-lr*aa-(1-St)*Ja)/(lr*lr),xi=.5*ri/_r,Xi=yr*xi-2*Mt*_r*Xa,Io=Mt*zt*ri+Er*Gt*Xa,ve=-Ya*Xa,De=-Ya*Io,je=-2*Ya*Xi,it=4*qe/g,ct;if(qe>.222*g||ft.175*g){if(Nn=(Mn+Mt*N(jr*(1+Nt)-Mn*Mn))/(1+Nt),qe>g/4)return[Nn,Nn];var gt=Nn,Dt=.5*Nn;Nn=.5*(Dt+gt),Un=50;do{var Et=N(jr-Nn*Nn),Yt=Nn*(je+ve*Et)+De*k(Nn/sn)-it;if(!Yt)break;Yt<0?Dt=Nn:gt=Nn,Nn=.5*(Dt+gt)}while(S(gt-Dt)>p&&--Un>0)}else{Nn=p,Un=25;do{var Zt=Nn*Nn,ar=N(jr-Zt),Ir=je+ve*ar,kr=Nn*Ir+De*k(Nn/sn)-it,tn=Ir+(De-ve*Zt)/ar;Nn-=ct=ar?kr/tn:0}while(S(ct)>p&&--Un>0)}return[Nn,-Mn-Mt*N(jr-Nn*Nn)]}function Wn(qe,ft){for(var St=0,Mt=1,Nt=.5,zt=50;;){var Gt=Nt*Nt,yr=N(Nt),Sr=k(1/N(1+Gt)),lr=1-Gt+Nt*(1+Gt)*Sr,Er=(1-yr)/lr,_r=N(Er),jr=Er*(1+Gt),sn=_r*(1-Gt),Mn=jr-qe*qe,Nn=N(Mn),Un=ft+sn+Nt*Nn;if(S(Mt-St)0?St=Nt:Mt=Nt,Nt=.5*(St+Mt)}if(!zt)return null;var aa=k(yr),Ya=w(aa),Xa=1/Ya,Ja=2*yr*Ya,ri=(-3*Nt+Sr*(1+3*Gt))*Ja,xi=(-lr*Ya-(1-yr)*ri)/(lr*lr),Xi=.5*xi/_r,Io=(1-Gt)*Xi-2*Nt*_r*Ja,ve=-2*Xa*Io,De=-Xa*Ja,je=-Xa*(Nt*(1+Gt)*xi+Er*(1+3*Gt)*Ja);return[g/4*(qe*(ve+De*Nn)+je*k(qe/N(jr))),aa]}function ma(){return(0,l.c)(Tn(Sn)).scale(239.75)}function Aa(qe,ft,St){var Mt,Nt,zt;return qe?(Mt=Ia(qe,St),ft?(Nt=Ia(ft,1-St),zt=Nt[1]*Nt[1]+St*Mt[0]*Mt[0]*Nt[0]*Nt[0],[[Mt[0]*Nt[2]/zt,Mt[1]*Mt[2]*Nt[0]*Nt[1]/zt],[Mt[1]*Nt[1]/zt,-Mt[0]*Mt[2]*Nt[0]*Nt[2]/zt],[Mt[2]*Nt[1]*Nt[2]/zt,-St*Mt[0]*Mt[1]*Nt[0]/zt]]):[[Mt[0],0],[Mt[1],0],[Mt[2],0]]):(Nt=Ia(ft,1-St),[[0,Nt[0]/Nt[1]],[1/Nt[1],0],[Nt[2]/Nt[1],0]])}function Ia(qe,ft){var St,Mt,Nt,zt,Gt;if(ft=1-p)return St=(1-ft)/4,Mt=U(qe),zt=B(qe),Nt=1/Mt,Gt=Mt*G(qe),[zt+St*(Gt-qe)/(Mt*Mt),Nt-St*zt*Nt*(Gt-qe),Nt+St*zt*Nt*(Gt+qe),2*i(v(qe))-c+St*(Gt-qe)/Mt];var yr=[1,0,0,0,0,0,0,0,0],Sr=[N(ft),0,0,0,0,0,0,0,0],lr=0;for(Mt=N(1-ft),Gt=1;S(Sr[lr]/yr[lr])>p&&lr<8;)St=yr[lr++],Sr[lr]=(St-Mt)/2,yr[lr]=(St+Mt)/2,Mt=N(St*Mt),Gt*=2;Nt=Gt*yr[lr]*qe;do zt=Sr[lr]*u(Mt=Nt)/yr[lr],Nt=(k(zt)+Nt)/2;while(--lr);return[u(Nt),zt=w(Nt),zt/w(Nt-Mt),Nt]}function Ta(qe,ft,St){var Mt=S(qe),Nt=S(ft),zt=G(Nt);if(Mt){var Gt=1/u(Mt),yr=1/(b(Mt)*b(Mt)),Sr=-(yr+St*(zt*zt*Gt*Gt)-1+St),lr=(St-1)*yr,Er=(-Sr+N(Sr*Sr-4*lr))/2;return[ga(i(1/N(Er)),St)*f(qe),ga(i(N((Er/yr-1)/St)),1-St)*f(ft)]}return[0,ga(i(zt),1-St)*f(ft)]}function ga(qe,ft){if(!ft)return qe;if(ft===1)return a(b(qe/2+x));for(var St=1,Mt=N(1-ft),Nt=N(ft),zt=0;S(Nt)>p;zt++){if(qe%g){var Gt=i(Mt*b(qe)/St);Gt<0&&(Gt+=g),qe+=Gt+~~(qe/g)*g}else qe+=qe;Nt=(St+Mt)/2,Mt=N(St*Mt),Nt=((St=Nt)-Mt)/2}return qe/(o(2,zt)*St)}function Cr(qe,ft){var St=(M-1)/(M+1),Mt=N(1-St*St),Nt=ga(c,Mt*Mt),zt=-1,Gt=a(b(g/4+S(ft)/2)),yr=v(zt*Gt)/N(St),Sr=cn(yr*w(zt*qe),yr*u(zt*qe)),lr=Ta(Sr[0],Sr[1],Mt*Mt);return[-lr[1],(ft>=0?1:-1)*(.5*Nt-lr[0])]}function cn(qe,ft){var St=qe*qe,Mt=ft+1,Nt=1-St-ft*ft;return[.5*((qe>=0?c:-c)-C(Nt,2*qe)),-.25*a(Nt*Nt+4*St)+.5*a(Mt*Mt+St)]}function nn(qe,ft){var St=ft[0]*ft[0]+ft[1]*ft[1];return[(qe[0]*ft[0]+qe[1]*ft[1])/St,(qe[1]*ft[0]-qe[0]*ft[1])/St]}Cr.invert=function(qe,ft){var St=(M-1)/(M+1),Mt=N(1-St*St),Nt=ga(c,Mt*Mt),zt=-1,Gt=Aa(.5*Nt-ft,-qe,Mt*Mt),yr=nn(Gt[0],Gt[1]),Sr=C(yr[1],yr[0])/zt;return[Sr,2*i(v(.5/zt*a(St*yr[0]*yr[0]+St*yr[1]*yr[1])))-c]};function wn(){return(0,l.c)(Tn(Cr)).scale(151.496)}var Jn=t(61780);function In(qe){var ft=u(qe),St=w(qe),Mt=Rn(qe);Mt.invert=Rn(-qe);function Nt(zt,Gt){var yr=Mt(zt,Gt);zt=yr[0],Gt=yr[1];var Sr=u(Gt),lr=w(Gt),Er=w(zt),_r=I(ft*Sr+St*lr*Er),jr=u(_r),sn=S(jr)>p?_r/jr:1;return[sn*St*u(zt),(S(zt)>c?sn:-sn)*(ft*lr-St*Sr*Er)]}return Nt.invert=function(zt,Gt){var yr=N(zt*zt+Gt*Gt),Sr=-u(yr),lr=w(yr),Er=yr*lr,_r=-Gt*Sr,jr=yr*ft,sn=N(Er*Er+_r*_r-jr*jr),Mn=C(Er*jr+_r*sn,_r*jr-Er*sn),Nn=(yr>c?-1:1)*C(zt*Sr,yr*w(Mn)*lr+Gt*u(Mn)*Sr);return Mt.invert(Nn,Mn)},Nt}function Rn(qe){var ft=u(qe),St=w(qe);return function(Mt,Nt){var zt=w(Nt),Gt=w(Mt)*zt,yr=u(Mt)*zt,Sr=u(Nt);return[C(yr,Gt*St-Sr*ft),k(Sr*St+Gt*ft)]}}function Xn(){var qe=0,ft=(0,l.U)(In),St=ft(qe),Mt=St.rotate,Nt=St.stream,zt=(0,Jn.c)();return St.parallel=function(Gt){if(!arguments.length)return qe*L;var yr=St.rotate();return ft(qe=Gt*P).rotate(yr)},St.rotate=function(Gt){return arguments.length?(Mt.call(St,[Gt[0],Gt[1]-qe*L]),zt.center([-Gt[0],-Gt[1]]),St):(Gt=Mt.call(St),Gt[1]+=qe*L,Gt)},St.stream=function(Gt){return Gt=Nt(Gt),Gt.sphere=function(){Gt.polygonStart();var yr=.01,Sr=zt.radius(90-yr)().coordinates[0],lr=Sr.length-1,Er=-1,_r;for(Gt.lineStart();++Er=0;)Gt.point((_r=Sr[Er])[0],_r[1]);Gt.lineEnd(),Gt.polygonEnd()},Gt},St.scale(79.4187).parallel(45).clipAngle(179.999)}var la=t(84706),Da=t(16016),Qa=3,Pr=k(1-1/Qa)*L,Ur=xt(0);function Ar(qe){var ft=Pr*P,St=Ve(g,ft)[0]-Ve(-g,ft)[0],Mt=Ur(0,ft)[1],Nt=Ve(0,ft)[1],zt=R-Nt,Gt=T/qe,yr=4/T,Sr=Mt+zt*zt*4/T;function lr(Er,_r){var jr,sn=S(_r);if(sn>ft){var Mn=s(qe-1,n(0,m((Er+g)/Gt)));Er+=g*(qe-1)/qe-Mn*Gt,jr=Ve(Er,sn),jr[0]=jr[0]*T/St-T*(qe-1)/(2*qe)+Mn*T/qe,jr[1]=Mt+(jr[1]-Nt)*4*zt/T,_r<0&&(jr[1]=-jr[1])}else jr=Ur(Er,_r);return jr[0]*=yr,jr[1]/=Sr,jr}return lr.invert=function(Er,_r){Er/=yr,_r*=Sr;var jr=S(_r);if(jr>Mt){var sn=s(qe-1,n(0,m((Er+g)/Gt)));Er=(Er+g*(qe-1)/qe-sn*Gt)*St/T;var Mn=Ve.invert(Er,.25*(jr-Mt)*T/zt+Nt);return Mn[0]-=g*(qe-1)/qe-sn*Gt,_r<0&&(Mn[1]=-Mn[1]),Mn}return Ur.invert(Er,_r)},lr}function Vr(qe,ft){return[qe,ft&1?90-p:Pr]}function An(qe,ft){return[qe,ft&1?-90+p:-Pr]}function Hn(qe){return[qe[0]*(1-p),qe[1]]}function xn(qe){var ft=[].concat((0,la.ik)(-180,180+qe/2,qe).map(Vr),(0,la.ik)(180,-180-qe/2,-qe).map(An));return{type:"Polygon",coordinates:[qe===180?ft.map(Hn):ft]}}function vn(){var qe=4,ft=(0,l.U)(Ar),St=ft(qe),Mt=St.stream;return St.lobes=function(Nt){return arguments.length?ft(qe=+Nt):qe},St.stream=function(Nt){var zt=St.rotate(),Gt=Mt(Nt),yr=(St.rotate([0,0]),Mt(Nt));return St.rotate(zt),Gt.sphere=function(){(0,Da.c)(xn(180/qe),yr)},Gt},St.scale(239.75)}function Lr(qe){var ft=1+qe,St=u(1/ft),Mt=k(St),Nt=2*N(g/(zt=g+4*Mt*ft)),zt,Gt=.5*Nt*(ft+N(qe*(2+qe))),yr=qe*qe,Sr=ft*ft;function lr(Er,_r){var jr=1-u(_r),sn,Mn;if(jr&&jr<2){var Nn=c-_r,Un=25,aa;do{var Ya=u(Nn),Xa=w(Nn),Ja=Mt+C(Ya,ft-Xa),ri=1+Sr-2*ft*Xa;Nn-=aa=(Nn-yr*Mt-ft*Ya+ri*Ja-.5*jr*zt)/(2*ft*Ya*Ja)}while(S(aa)>E&&--Un>0);sn=Nt*N(ri),Mn=Er*Ja/g}else sn=Nt*(qe+jr),Mn=Er*Mt/g;return[sn*u(Mn),Gt-sn*w(Mn)]}return lr.invert=function(Er,_r){var jr=Er*Er+(_r-=Gt)*_r,sn=(1+Sr-jr/(Nt*Nt))/(2*ft),Mn=I(sn),Nn=u(Mn),Un=Mt+C(Nn,ft-sn);return[k(Er/N(jr))*g/Un,k(1-2*(Mn-yr*Mt-ft*Nn+(1+Sr-2*ft*sn)*Un)/zt)]},lr}function Qr(){var qe=1,ft=(0,l.U)(Lr),St=ft(qe);return St.ratio=function(Mt){return arguments.length?ft(qe=+Mt):qe},St.scale(167.774).center([0,18.67])}var $r=.7109889596207567,rn=.0528035274542;function Pn(qe,ft){return ft>-$r?(qe=Ie(qe,ft),qe[1]+=rn,qe):at(qe,ft)}Pn.invert=function(qe,ft){return ft>-$r?Ie.invert(qe,ft-rn):at.invert(qe,ft)};function zn(){return(0,l.c)(Pn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Bn(qe,ft){return S(ft)>$r?(qe=Ie(qe,ft),qe[1]-=ft>0?rn:-rn,qe):at(qe,ft)}Bn.invert=function(qe,ft){return S(ft)>$r?Ie.invert(qe,ft+(ft>0?rn:-rn)):at.invert(qe,ft)};function Zn(){return(0,l.c)(Bn).scale(152.63)}function $n(qe,ft,St,Mt){var Nt=N(4*g/(2*St+(1+qe-ft/2)*u(2*St)+(qe+ft)/2*u(4*St)+ft/2*u(6*St))),zt=N(Mt*u(St)*N((1+qe*w(2*St)+ft*w(4*St))/(1+qe+ft))),Gt=St*Sr(1);function yr(_r){return N(1+qe*w(2*_r)+ft*w(4*_r))}function Sr(_r){var jr=_r*St;return(2*jr+(1+qe-ft/2)*u(2*jr)+(qe+ft)/2*u(4*jr)+ft/2*u(6*jr))/St}function lr(_r){return yr(_r)*u(_r)}var Er=function(_r,jr){var sn=St*Ee(Sr,Gt*u(jr)/St,jr/g);isNaN(sn)&&(sn=St*f(jr));var Mn=Nt*yr(sn);return[Mn*zt*_r/g*w(sn),Mn/zt*u(sn)]};return Er.invert=function(_r,jr){var sn=Ee(lr,jr*zt/Nt);return[_r*g/(w(sn)*Nt*zt*yr(sn)),k(St*Sr(sn/St)/Gt)]},St===0&&(Nt=N(Mt/g),Er=function(_r,jr){return[_r*Nt,u(jr)/Nt]},Er.invert=function(_r,jr){return[_r/Nt,k(jr*Nt)]}),Er}function Oa(){var qe=1,ft=0,St=45*P,Mt=2,Nt=(0,l.U)($n),zt=Nt(qe,ft,St,Mt);return zt.a=function(Gt){return arguments.length?Nt(qe=+Gt,ft,St,Mt):qe},zt.b=function(Gt){return arguments.length?Nt(qe,ft=+Gt,St,Mt):ft},zt.psiMax=function(Gt){return arguments.length?Nt(qe,ft,St=+Gt*P,Mt):St*L},zt.ratio=function(Gt){return arguments.length?Nt(qe,ft,St,Mt=+Gt):Mt},zt.scale(180.739)}function xa(qe,ft,St,Mt,Nt,zt,Gt,yr,Sr,lr,Er){if(Er.nanEncountered)return NaN;var _r,jr,sn,Mn,Nn,Un,aa,Ya,Xa,Ja;if(_r=St-ft,jr=qe(ft+_r*.25),sn=qe(St-_r*.25),isNaN(jr)){Er.nanEncountered=!0;return}if(isNaN(sn)){Er.nanEncountered=!0;return}return Mn=_r*(Mt+4*jr+Nt)/12,Nn=_r*(Nt+4*sn+zt)/12,Un=Mn+Nn,Ja=(Un-Gt)/15,lr>Sr?(Er.maxDepthCount++,Un+Ja):Math.abs(Ja)>1;do Sr[Un]>sn?Nn=Un:Mn=Un,Un=Mn+Nn>>1;while(Un>Mn);var aa=Sr[Un+1]-Sr[Un];return aa&&(aa=(sn-Sr[Un+1])/aa),(Un+1+aa)/Gt}var _r=2*Er(1)/g*zt/St,jr=function(sn,Mn){var Nn=Er(S(u(Mn))),Un=Mt(Nn)*sn;return Nn/=_r,[Un,Mn>=0?Nn:-Nn]};return jr.invert=function(sn,Mn){var Nn;return Mn*=_r,S(Mn)<1&&(Nn=f(Mn)*k(Nt(S(Mn))*zt)),[sn/Mt(S(Mn)),Nn]},jr}function qi(){var qe=0,ft=2.5,St=1.183136,Mt=(0,l.U)($a),Nt=Mt(qe,ft,St);return Nt.alpha=function(zt){return arguments.length?Mt(qe=+zt,ft,St):qe},Nt.k=function(zt){return arguments.length?Mt(qe,ft=+zt,St):ft},Nt.gamma=function(zt){return arguments.length?Mt(qe,ft,St=+zt):St},Nt.scale(152.63)}function Di(qe,ft){return S(qe[0]-ft[0])=0;--Sr)St=qe[1][Sr],Mt=St[0][0],Nt=St[0][1],zt=St[1][1],Gt=St[2][0],yr=St[2][1],ft.push(Ks([[Gt-p,yr-p],[Gt-p,zt+p],[Mt+p,zt+p],[Mt+p,Nt-p]],30));return{type:"Polygon",coordinates:[(0,la.Uf)(ft)]}}function os(qe,ft,St){var Mt,Nt;function zt(Sr,lr){for(var Er=lr<0?-1:1,_r=ft[+(lr<0)],jr=0,sn=_r.length-1;jr_r[jr][2][0];++jr);var Mn=qe(Sr-_r[jr][1][0],lr);return Mn[0]+=qe(_r[jr][1][0],Er*lr>Er*_r[jr][0][1]?_r[jr][0][1]:lr)[0],Mn}St?zt.invert=St(zt):qe.invert&&(zt.invert=function(Sr,lr){for(var Er=Nt[+(lr<0)],_r=ft[+(lr<0)],jr=0,sn=Er.length;jrMn&&(Nn=sn,sn=Mn,Mn=Nn),[[_r,sn],[jr,Mn]]})}),Gt):ft.map(function(lr){return lr.map(function(Er){return[[Er[0][0]*L,Er[0][1]*L],[Er[1][0]*L,Er[1][1]*L],[Er[2][0]*L,Er[2][1]*L]]})})},ft!=null&&Gt.lobes(ft),Gt}var Rc=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function ph(){return os($e,Rc).scale(160.857)}var yv=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ei(){return os(Bn,yv).scale(152.63)}var Df=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function gh(){return os(Ie,Df).scale(169.529)}var qo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Is(){return os(Ie,qo).scale(169.529).rotate([20,0])}var kc=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Cd(){return os(Pn,kc,Se).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Po=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Dc(){return os(at,Po).scale(152.63).rotate([-20,0])}function ko(qe,ft){return[3/T*qe*N(g*g/3-ft*ft),ft]}ko.invert=function(qe,ft){return[T/3*qe/N(g*g/3-ft*ft),ft]};function jo(){return(0,l.c)(ko).scale(158.837)}function Oc(qe){function ft(St,Mt){if(S(S(Mt)-c)2)return null;St/=2,Mt/=2;var zt=St*St,Gt=Mt*Mt,yr=2*Mt/(1+zt+Gt);return yr=o((1+yr)/(1-yr),1/qe),[C(2*St,1-zt-Gt)/qe,k((yr-1)/(yr+1))]},ft}function ss(){var qe=.5,ft=(0,l.U)(Oc),St=ft(qe);return St.spacing=function(Mt){return arguments.length?ft(qe=+Mt):qe},St.scale(124.75)}var ls=g/M;function Js(qe,ft){return[qe*(1+N(w(ft)))/2,ft/(w(ft/2)*w(qe/6))]}Js.invert=function(qe,ft){var St=S(qe),Mt=S(ft),Nt=p,zt=c;Mtp||S(Un)>p)&&--Nt>0);return Nt&&[St,Mt]};function t0(){return(0,l.c)(Vs).scale(139.98)}function zl(qe,ft){return[u(qe)/w(ft),b(ft)*w(qe)]}zl.invert=function(qe,ft){var St=qe*qe,Mt=ft*ft,Nt=Mt+1,zt=St+Nt,Gt=qe?A*N((zt-N(zt*zt-4*St))/St):1/N(Nt);return[k(qe*Gt),f(ft)*I(Gt)]};function es(){return(0,l.c)(zl).scale(144.049).clipAngle(89.999)}function mh(qe){var ft=w(qe),St=b(x+qe/2);function Mt(Nt,zt){var Gt=zt-qe,yr=S(Gt)=0;)Er=qe[lr],_r=Er[0]+yr*(sn=_r)-Sr*jr,jr=Er[1]+yr*jr+Sr*sn;return _r=yr*(sn=_r)-Sr*jr,jr=yr*jr+Sr*sn,[_r,jr]}return St.invert=function(Mt,Nt){var zt=20,Gt=Mt,yr=Nt;do{for(var Sr=ft,lr=qe[Sr],Er=lr[0],_r=lr[1],jr=0,sn=0,Mn;--Sr>=0;)lr=qe[Sr],jr=Er+Gt*(Mn=jr)-yr*sn,sn=_r+Gt*sn+yr*Mn,Er=lr[0]+Gt*(Mn=Er)-yr*_r,_r=lr[1]+Gt*_r+yr*Mn;jr=Er+Gt*(Mn=jr)-yr*sn,sn=_r+Gt*sn+yr*Mn,Er=Gt*(Mn=Er)-yr*_r-Mt,_r=Gt*_r+yr*Mn-Nt;var Nn=jr*jr+sn*sn,Un,aa;Gt-=Un=(Er*jr+_r*sn)/Nn,yr-=aa=(_r*jr-Er*sn)/Nn}while(S(Un)+S(aa)>p*p&&--zt>0);if(zt){var Ya=N(Gt*Gt+yr*yr),Xa=2*i(Ya*.5),Ja=u(Xa);return[C(Gt*Ja,Ya*w(Xa)),Ya?k(yr*Ja/Ya):0]}},St}var r0=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Md=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],n0=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],a0=[[.9245,0],[0,0],[.01943,0]],i0=[[.721316,0],[0,0],[-.00881625,-.00617325]];function xh(){return rc(r0,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function o0(){return rc(Md,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function s0(){return rc(n0,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function wv(){return rc(a0,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Tv(){return rc(i0,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function rc(qe,ft){var St=(0,l.c)(bv(qe)).rotate(ft).clipAngle(90),Mt=(0,Ye.c)(ft),Nt=St.center;return delete St.rotate,St.center=function(zt){return arguments.length?Nt(Mt(zt)):Mt.invert(Nt())},St}var Fc=N(6),Of=N(7);function Ff(qe,ft){var St=k(7*u(ft)/(3*Fc));return[Fc*qe*(2*w(2*St/3)-1)/Of,9*u(St/3)/Of]}Ff.invert=function(qe,ft){var St=3*k(ft*Of/9);return[qe*Of/(Fc*(2*w(2*St/3)-1)),k(u(St)*3*Fc/7)]};function Sv(){return(0,l.c)(Ff).scale(164.859)}function nu(qe,ft){for(var St=(1+A)*u(ft),Mt=ft,Nt=0,zt;Nt<25&&(Mt-=zt=(u(Mt/2)+u(Mt)-St)/(.5*w(Mt/2)+w(Mt)),!(S(zt)E&&--Mt>0);return zt=St*St,Gt=zt*zt,yr=zt*Gt,[qe/(.84719-.13063*zt+yr*yr*(-.04515+.05494*zt-.02326*Gt+.00331*yr)),St]};function vl(){return(0,l.c)(Ed).scale(175.295)}function _c(qe,ft){return[qe*(1+w(ft))/2,2*(ft-b(ft/2))]}_c.invert=function(qe,ft){for(var St=ft/2,Mt=0,Nt=1/0;Mt<10&&S(Nt)>p;++Mt){var zt=w(ft/2);ft-=Nt=(ft-b(ft/2)-St)/(1-.5/(zt*zt))}return[2*qe/(1+w(ft)),ft]};function nc(){return(0,l.c)(_c).scale(152.63)}var _f=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Mu(){return os(le(1/0),_f).rotate([20,0]).scale(152.63)}function Nl(qe,ft){var St=u(ft),Mt=w(ft),Nt=f(qe);if(qe===0||S(ft)===c)return[0,ft];if(ft===0)return[qe,0];if(S(qe)===c)return[qe*Mt,c*St];var zt=g/(2*qe)-2*qe/g,Gt=2*ft/g,yr=(1-Gt*Gt)/(St-Gt),Sr=zt*zt,lr=yr*yr,Er=1+Sr/lr,_r=1+lr/Sr,jr=(zt*St/yr-zt/2)/Er,sn=(lr*St/Sr+yr/2)/_r,Mn=jr*jr+Mt*Mt/Er,Nn=sn*sn-(lr*St*St/Sr+yr*St-1)/_r;return[c*(jr+N(Mn)*Nt),c*(sn+N(Nn<0?0:Nn)*f(-ft*zt)*Nt)]}Nl.invert=function(qe,ft){qe/=c,ft/=c;var St=qe*qe,Mt=ft*ft,Nt=St+Mt,zt=g*g;return[qe?(Nt-1+N((1-Nt)*(1-Nt)+4*St))/(2*qe)*c:0,Ee(function(Gt){return Nt*(g*u(Gt)-2*Gt)*g+4*Gt*Gt*(ft-u(Gt))+2*g*Gt-zt*ft},0)]};function bh(){return(0,l.c)(Nl).scale(127.267)}var zc=1.0148,pl=.23185,To=-.14499,wh=.02406,u0=zc,Pd=5*pl,Bc=7*To,Nc=9*wh,js=1.790857183;function Ld(qe,ft){var St=ft*ft;return[qe,ft*(zc+St*St*(pl+St*(To+wh*St)))]}Ld.invert=function(qe,ft){ft>js?ft=js:ft<-js&&(ft=-js);var St=ft,Mt;do{var Nt=St*St;St-=Mt=(St*(zc+Nt*Nt*(pl+Nt*(To+wh*Nt)))-ft)/(u0+Nt*Nt*(Pd+Nt*(Bc+Nc*Nt)))}while(S(Mt)>p);return[qe,St]};function Uc(){return(0,l.c)(Ld).scale(139.319)}function Id(qe,ft){if(S(ft)p&&--Nt>0);return Gt=b(Mt),[(S(ft)=0;)if(Mt=ft[yr],St[0]===Mt[0]&&St[1]===Mt[1]){if(zt)return[zt,St];zt=St}}}function Mh(qe){for(var ft=qe.length,St=[],Mt=qe[ft-1],Nt=0;Nt0?[-Mt[0],0]:[180-Mt[0],180])};var ft=Lo.map(function(St){return{face:St,project:qe(St)}});return[-1,0,0,1,0,1,4,5].forEach(function(St,Mt){var Nt=ft[St];Nt&&(Nt.children||(Nt.children=[])).push(ft[Mt])}),eo(ft[0],function(St,Mt){return ft[St<-g/2?Mt<0?6:4:St<0?Mt<0?2:0:StMt^sn>Mt&&St<(jr-lr)*(Mt-Er)/(sn-Er)+lr&&(Nt=!Nt)}return Nt}function h0(qe,ft){var St=ft.stream,Mt;if(!St)throw new Error("invalid projection");switch(qe&&qe.type){case"Feature":Mt=Ah;break;case"FeatureCollection":Mt=v0;break;default:Mt=Vc;break}return Mt(qe,St)}function v0(qe,ft){return{type:"FeatureCollection",features:qe.features.map(function(St){return Ah(St,ft)})}}function Ah(qe,ft){return{type:"Feature",id:qe.id,properties:qe.properties,geometry:Vc(qe.geometry,ft)}}function Lv(qe,ft){return{type:"GeometryCollection",geometries:qe.geometries.map(function(St){return Vc(St,ft)})}}function Vc(qe,ft){if(!qe)return null;if(qe.type==="GeometryCollection")return Lv(qe,ft);var St;switch(qe.type){case"Point":St=jc;break;case"MultiPoint":St=jc;break;case"LineString":St=Iv;break;case"MultiLineString":St=Iv;break;case"Polygon":St=Uf;break;case"MultiPolygon":St=Uf;break;case"Sphere":St=Uf;break;default:return null}return(0,Da.c)(qe,ft(St)),St.result()}var ts=[],Qs=[],jc={point:function(qe,ft){ts.push([qe,ft])},result:function(){var qe=ts.length?ts.length<2?{type:"Point",coordinates:ts[0]}:{type:"MultiPoint",coordinates:ts}:null;return ts=[],qe}},Iv={lineStart:Nf,point:function(qe,ft){ts.push([qe,ft])},lineEnd:function(){ts.length&&(Qs.push(ts),ts=[])},result:function(){var qe=Qs.length?Qs.length<2?{type:"LineString",coordinates:Qs[0]}:{type:"MultiLineString",coordinates:Qs}:null;return Qs=[],qe}},Uf={polygonStart:Nf,lineStart:Nf,point:function(qe,ft){ts.push([qe,ft])},lineEnd:function(){var qe=ts.length;if(qe){do ts.push(ts[0].slice());while(++qe<4);Qs.push(ts),ts=[]}},polygonEnd:Nf,result:function(){if(!Qs.length)return null;var qe=[],ft=[];return Qs.forEach(function(St){f0(St)?qe.push([St]):ft.push(St)}),ft.forEach(function(St){var Mt=St[0];qe.some(function(Nt){if(d0(Nt[0],Mt))return Nt.push(St),!0})||qe.push([St])}),Qs=[],qe.length?qe.length>1?{type:"MultiPolygon",coordinates:qe}:{type:"Polygon",coordinates:qe[0]}:null}};function ou(qe){var ft=qe(c,0)[0]-qe(-c,0)[0];function St(Mt,Nt){var zt=S(Mt)0?Mt-g:Mt+g,Nt),yr=(Gt[0]-Gt[1])*A,Sr=(Gt[0]+Gt[1])*A;if(zt)return[yr,Sr];var lr=ft*A,Er=yr>0^Sr>0?-1:1;return[Er*yr-f(Sr)*lr,Er*Sr-f(yr)*lr]}return qe.invert&&(St.invert=function(Mt,Nt){var zt=(Mt+Nt)*A,Gt=(Nt-Mt)*A,yr=S(zt)<.5*ft&&S(Gt)<.5*ft;if(!yr){var Sr=ft*A,lr=zt>0^Gt>0?-1:1,Er=-lr*Mt+(Gt>0?1:-1)*Sr,_r=-lr*Nt+(zt>0?1:-1)*Sr;zt=(-Er-_r)*A,Gt=(Er-_r)*A}var jr=qe.invert(zt,Gt);return yr||(jr[0]+=zt>0?g:-g),jr}),(0,l.c)(St).rotate([-90,-90,45]).clipAngle(179.999)}function p0(){return ou(Sn).scale(176.423)}function Rv(){return ou(Cr).scale(111.48)}function kv(qe,ft){if(!(0<=(ft=+ft)&&ft<=20))throw new Error("invalid digits");function St(lr){var Er=lr.length,_r=2,jr=new Array(Er);for(jr[0]=+lr[0].toFixed(ft),jr[1]=+lr[1].toFixed(ft);_r2||sn[0]!=Er[0]||sn[1]!=Er[1])&&(_r.push(sn),Er=sn)}return _r.length===1&&lr.length>1&&_r.push(St(lr[lr.length-1])),_r}function zt(lr){return lr.map(Nt)}function Gt(lr){if(lr==null)return lr;var Er;switch(lr.type){case"GeometryCollection":Er={type:"GeometryCollection",geometries:lr.geometries.map(Gt)};break;case"Point":Er={type:"Point",coordinates:St(lr.coordinates)};break;case"MultiPoint":Er={type:lr.type,coordinates:Mt(lr.coordinates)};break;case"LineString":Er={type:lr.type,coordinates:Nt(lr.coordinates)};break;case"MultiLineString":case"Polygon":Er={type:lr.type,coordinates:zt(lr.coordinates)};break;case"MultiPolygon":Er={type:"MultiPolygon",coordinates:lr.coordinates.map(zt)};break;default:return lr}return lr.bbox!=null&&(Er.bbox=lr.bbox),Er}function yr(lr){var Er={type:"Feature",properties:lr.properties,geometry:Gt(lr.geometry)};return lr.id!=null&&(Er.id=lr.id),lr.bbox!=null&&(Er.bbox=lr.bbox),Er}if(qe!=null)switch(qe.type){case"Feature":return yr(qe);case"FeatureCollection":{var Sr={type:"FeatureCollection",features:qe.features.map(yr)};return qe.bbox!=null&&(Sr.bbox=qe.bbox),Sr}default:return Gt(qe)}return qe}function Eh(qe){var ft=u(qe);function St(Mt,Nt){var zt=ft?b(Mt*ft/2)/ft:Mt/2;if(!Nt)return[2*zt,-qe];var Gt=2*i(zt*u(Nt)),yr=1/b(Nt);return[u(Gt)*yr,Nt+(1-w(Gt))*yr-qe]}return St.invert=function(Mt,Nt){if(S(Nt+=qe)p&&--yr>0);var jr=Mt*(lr=b(Gt)),sn=b(S(Nt)0?c:-c)*(Sr+Nt*(Er-Gt)/2+Nt*Nt*(Er-2*Sr+Gt)/2)]}wl.invert=function(qe,ft){var St=ft/c,Mt=St*90,Nt=s(18,S(Mt/5)),zt=n(0,m(Nt));do{var Gt=Rs[zt][1],yr=Rs[zt+1][1],Sr=Rs[s(19,zt+2)][1],lr=Sr-Gt,Er=Sr-2*yr+Gt,_r=2*(S(St)-yr)/lr,jr=Er/lr,sn=_r*(1-jr*_r*(1-2*jr*_r));if(sn>=0||zt===1){Mt=(ft>=0?5:-5)*(sn+Nt);var Mn=50,Nn;do Nt=s(18,S(Mt)/5),zt=m(Nt),sn=Nt-zt,Gt=Rs[zt][1],yr=Rs[zt+1][1],Sr=Rs[s(19,zt+2)][1],Mt-=(Nn=(ft>=0?c:-c)*(yr+sn*(Sr-Gt)/2+sn*sn*(Sr-2*yr+Gt)/2)-ft)*L;while(S(Nn)>E&&--Mn>0);break}}while(--zt>=0);var Un=Rs[zt][0],aa=Rs[zt+1][0],Ya=Rs[s(19,zt+2)][0];return[qe/(aa+sn*(Ya-Un)/2+sn*sn*(Ya-2*aa+Un)/2),Mt*P]};function Pu(){return(0,l.c)(wl).scale(152.63)}function Gc(qe){function ft(St,Mt){var Nt=w(Mt),zt=(qe-1)/(qe-Nt*w(St));return[zt*Nt*u(St),zt*u(Mt)]}return ft.invert=function(St,Mt){var Nt=St*St+Mt*Mt,zt=N(Nt),Gt=(qe-N(1-Nt*(qe+1)/(qe-1)))/((qe-1)/zt+zt/(qe-1));return[C(St*Gt,zt*N(1-Gt*Gt)),zt?k(Mt*Gt/zt):0]},ft}function Od(qe,ft){var St=Gc(qe);if(!ft)return St;var Mt=w(ft),Nt=u(ft);function zt(Gt,yr){var Sr=St(Gt,yr),lr=Sr[1],Er=lr*Nt/(qe-1)+Mt;return[Sr[0]*Mt/Er,lr/Er]}return zt.invert=function(Gt,yr){var Sr=(qe-1)/(qe-1-yr*Nt);return St.invert(Sr*Gt,Sr*yr*Mt)},zt}function oc(){var qe=2,ft=0,St=(0,l.U)(Od),Mt=St(qe,ft);return Mt.distance=function(Nt){return arguments.length?St(qe=+Nt,ft):qe},Mt.tilt=function(Nt){return arguments.length?St(qe,ft=Nt*P):ft*L},Mt.scale(432.147).clipAngle(I(1/qe)*L-1e-6)}var sc=1e-4,Ov=1e4,su=-180,Wc=su+sc,Lu=180,lu=Lu-sc,Hf=-90,$c=Hf+sc,Yi=90,Yc=Yi-sc;function Fd(qe){return qe.length>0}function Fv(qe){return Math.floor(qe*Ov)/Ov}function Xc(qe){return qe===Hf||qe===Yi?[0,qe]:[su,Fv(qe)]}function Vf(qe){var ft=qe[0],St=qe[1],Mt=!1;return ft<=Wc?(ft=su,Mt=!0):ft>=lu&&(ft=Lu,Mt=!0),St<=$c?(St=Hf,Mt=!0):St>=Yc&&(St=Yi,Mt=!0),Mt?[ft,St]:qe}function _d(qe){return qe.map(Vf)}function Ph(qe,ft,St){for(var Mt=0,Nt=qe.length;Mt=lu||Er<=$c||Er>=Yc){zt[Gt]=Vf(Sr);for(var _r=Gt+1;_rWc&&sn$c&&Mn=yr)break;St.push({index:-1,polygon:ft,ring:zt=zt.slice(_r-1)}),zt[0]=Xc(zt[0][1]),Gt=-1,yr=zt.length}}}}function jf(qe){var ft,St=qe.length,Mt={},Nt={},zt,Gt,yr,Sr,lr;for(ft=0;ft0?g-yr:yr)*L],lr=(0,l.c)(qe(Gt)).rotate(Sr),Er=(0,Ye.c)(Sr),_r=lr.center;return delete lr.rotate,lr.center=function(jr){return arguments.length?_r(Er(jr)):Er.invert(_r())},lr.clipAngle(90)}function Lh(qe){var ft=w(qe);function St(Mt,Nt){var zt=(0,Au.Y)(Mt,Nt);return zt[0]*=ft,zt}return St.invert=function(Mt,Nt){return Au.Y.invert(Mt/ft,Nt)},St}function lc(){return zd([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function zd(qe,ft){return Ul(Lh,qe,ft)}function $f(qe){if(!(qe*=2))return ce.O;var ft=-qe/2,St=-ft,Mt=qe*qe,Nt=b(St),zt=.5/u(St);function Gt(yr,Sr){var lr=I(w(Sr)*w(yr-ft)),Er=I(w(Sr)*w(yr-St)),_r=Sr<0?-1:1;return lr*=lr,Er*=Er,[(lr-Er)/(2*qe),_r*N(4*Mt*Er-(Mt-lr+Er)*(Mt-lr+Er))/(2*qe)]}return Gt.invert=function(yr,Sr){var lr=Sr*Sr,Er=w(N(lr+(jr=yr+ft)*jr)),_r=w(N(lr+(jr=yr+St)*jr)),jr,sn;return[C(sn=Er-_r,jr=(Er+_r)*Nt),(Sr<0?-1:1)*I(N(jr*jr+sn*sn)*zt)]},Gt}function g0(){return _v([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function _v(qe,ft){return Ul($f,qe,ft)}function bs(qe,ft){if(S(ft)p&&--yr>0);return[f(qe)*(N(Nt*Nt+4)+Nt)*g/4,c*Gt]};function Xf(){return(0,l.c)(Gs).scale(127.16)}function Bd(qe,ft,St,Mt,Nt){function zt(Gt,yr){var Sr=St*u(Mt*yr),lr=N(1-Sr*Sr),Er=N(2/(1+lr*w(Gt*=Nt)));return[qe*lr*Er*u(Gt),ft*Sr*Er]}return zt.invert=function(Gt,yr){var Sr=Gt/qe,lr=yr/ft,Er=N(Sr*Sr+lr*lr),_r=2*k(Er/2);return[C(Gt*b(_r),qe*Er)/Nt,Er&&k(yr*u(_r)/(ft*St*Er))/Mt]},zt}function uu(qe,ft,St,Mt){var Nt=g/3;qe=n(qe,p),ft=n(ft,p),qe=s(qe,c),ft=s(ft,g-p),St=n(St,0),St=s(St,100-p),Mt=n(Mt,p);var zt=St/100+1,Gt=Mt/100,yr=I(zt*w(Nt))/Nt,Sr=u(qe)/u(yr*c),lr=ft/g,Er=N(Gt*u(qe/2)/u(ft/2)),_r=Er/N(lr*Sr*yr),jr=1/(Er*N(lr*Sr*yr));return Bd(_r,jr,Sr,yr,lr)}function Du(){var qe=65*P,ft=60*P,St=20,Mt=200,Nt=(0,l.U)(uu),zt=Nt(qe,ft,St,Mt);return zt.poleline=function(Gt){return arguments.length?Nt(qe=+Gt*P,ft,St,Mt):qe*L},zt.parallels=function(Gt){return arguments.length?Nt(qe,ft=+Gt*P,St,Mt):ft*L},zt.inflation=function(Gt){return arguments.length?Nt(qe,ft,St=+Gt,Mt):St},zt.ratio=function(Gt){return arguments.length?Nt(qe,ft,St,Mt=+Gt):Mt},zt.scale(163.775)}function Ih(){return Du().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Zf=4*g+3*N(3),Kf=2*N(2*g*N(3)/Zf),Nd=be(Kf*N(3)/g,Kf,Zf/6);function Bv(){return(0,l.c)(Nd).scale(176.84)}function Jf(qe,ft){return[qe*N(1-3*ft*ft/(g*g)),ft]}Jf.invert=function(qe,ft){return[qe/N(1-3*ft*ft/(g*g)),ft]};function Rh(){return(0,l.c)(Jf).scale(152.63)}function uc(qe,ft){var St=w(ft),Mt=w(qe)*St,Nt=1-Mt,zt=w(qe=C(u(qe)*St,-u(ft))),Gt=u(qe);return St=N(1-Mt*Mt),[Gt*St-zt*Nt,-zt*St-Gt*Nt]}uc.invert=function(qe,ft){var St=(qe*qe+ft*ft)/-2,Mt=N(-St*(2+St)),Nt=ft*St+qe*Mt,zt=qe*St-ft*Mt,Gt=N(zt*zt+Nt*Nt);return[C(Mt*Nt,Gt*(1+St)),Gt?-k(Mt*zt/Gt):0]};function kh(){return(0,l.c)(uc).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function Qf(qe,ft){var St=Z(qe,ft);return[(St[0]+qe/c)/2,(St[1]+ft)/2]}Qf.invert=function(qe,ft){var St=qe,Mt=ft,Nt=25;do{var zt=w(Mt),Gt=u(Mt),yr=u(2*Mt),Sr=Gt*Gt,lr=zt*zt,Er=u(St),_r=w(St/2),jr=u(St/2),sn=jr*jr,Mn=1-lr*_r*_r,Nn=Mn?I(zt*_r)*N(Un=1/Mn):Un=0,Un,aa=.5*(2*Nn*zt*jr+St/c)-qe,Ya=.5*(Nn*Gt+Mt)-ft,Xa=.5*Un*(lr*sn+Nn*zt*_r*Sr)+.5/c,Ja=Un*(Er*yr/4-Nn*Gt*jr),ri=.125*Un*(yr*jr-Nn*Gt*lr*Er),xi=.5*Un*(Sr*_r+Nn*sn*zt)+.5,Xi=Ja*ri-xi*Xa,Io=(Ya*Ja-aa*xi)/Xi,ve=(aa*ri-Ya*Xa)/Xi;St-=Io,Mt-=ve}while((S(Io)>p||S(ve)>p)&&--Nt>0);return[St,Mt]};function Nv(){return(0,l.c)(Qf).scale(158.837)}},88728:function(D,O,t){t.d(O,{c:function(){return l}});function l(){return new S}function S(){this.reset()}S.prototype={constructor:S,reset:function(){this.s=this.t=0},add:function(w){C(i,w,this.t),C(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new S;function C(w,v,m){var a=w.s=v+m,n=a-v,s=a-n;w.t=v-s+(m-n)}},95384:function(D,O,t){t.d(O,{cp:function(){return E},mQ:function(){return w},oB:function(){return h}});var l=t(88728),S=t(64528),i=t(70932),C=t(16016),w=(0,l.c)(),v=(0,l.c)(),m,a,n,s,o,h={point:i.c,lineStart:i.c,lineEnd:i.c,polygonStart:function(){w.reset(),h.lineStart=f,h.lineEnd=u},polygonEnd:function(){var g=+w;v.add(g<0?S.kD+g:g),this.lineStart=this.lineEnd=this.point=i.c},sphere:function(){v.add(S.kD)}};function f(){h.point=b}function u(){p(m,a)}function b(g,c){h.point=p,m=g,a=c,g*=S.qw,c*=S.qw,n=g,s=(0,S.W8)(c=c/2+S.wL),o=(0,S.g$)(c)}function p(g,c){g*=S.qw,c*=S.qw,c=c/2+S.wL;var x=g-n,A=x>=0?1:-1,M=A*x,R=(0,S.W8)(c),T=(0,S.g$)(c),L=o*T,P=s*R+L*(0,S.W8)(M),d=L*A*(0,S.g$)(M);w.add((0,S.WE)(d,P)),n=g,s=R,o=T}function E(g){return v.reset(),(0,C.c)(g,h),v*2}},13696:function(D,O,t){t.d(O,{c:function(){return k}});var l=t(88728),S=t(95384),i=t(84220),C=t(64528),w=t(16016),v,m,a,n,s,o,h,f,u=(0,l.c)(),b,p,E={point:g,lineStart:x,lineEnd:A,polygonStart:function(){E.point=M,E.lineStart=R,E.lineEnd=T,u.reset(),S.oB.polygonStart()},polygonEnd:function(){S.oB.polygonEnd(),E.point=g,E.lineStart=x,E.lineEnd=A,S.mQ<0?(v=-(a=180),m=-(n=90)):u>C.Gg?n=90:u<-C.Gg&&(m=-90),p[0]=v,p[1]=a},sphere:function(){v=-(a=180),m=-(n=90)}};function g(I,N){b.push(p=[v=I,a=I]),Nn&&(n=N)}function c(I,N){var B=(0,i.ux)([I*C.qw,N*C.qw]);if(f){var G=(0,i.CW)(f,B),U=[G[1],-G[0],0],H=(0,i.CW)(U,G);(0,i.cJ)(H),H=(0,i.G)(H);var W=I-s,V=W>0?1:-1,$=H[0]*C.oh*V,Z,q=(0,C.a2)(W)>180;q^(V*s<$&&$n&&(n=Z)):($=($+360)%360-180,q^(V*s<$&&$n&&(n=N))),q?IL(v,a)&&(a=I):L(I,a)>L(v,a)&&(v=I):a>=v?(Ia&&(a=I)):I>s?L(v,I)>L(v,a)&&(a=I):L(I,a)>L(v,a)&&(v=I)}else b.push(p=[v=I,a=I]);Nn&&(n=N),f=B,s=I}function x(){E.point=c}function A(){p[0]=v,p[1]=a,E.point=g,f=null}function M(I,N){if(f){var B=I-s;u.add((0,C.a2)(B)>180?B+(B>0?360:-360):B)}else o=I,h=N;S.oB.point(I,N),c(I,N)}function R(){S.oB.lineStart()}function T(){M(o,h),S.oB.lineEnd(),(0,C.a2)(u)>C.Gg&&(v=-(a=180)),p[0]=v,p[1]=a,f=null}function L(I,N){return(N-=I)<0?N+360:N}function P(I,N){return I[0]-N[0]}function d(I,N){return I[0]<=I[1]?I[0]<=N&&N<=I[1]:NL(G[0],G[1])&&(G[1]=U[1]),L(U[0],G[1])>L(G[0],G[1])&&(G[0]=U[0])):H.push(G=U);for(W=-1/0,B=H.length-1,N=0,G=H[B];N<=B;G=U,++N)U=H[N],(V=L(G[1],U[0]))>W&&(W=V,v=U[0],a=G[1])}return b=p=null,v===1/0||m===1/0?[[NaN,NaN],[NaN,NaN]]:[[v,m],[a,n]]}},84220:function(D,O,t){t.d(O,{CW:function(){return w},Ez:function(){return C},G:function(){return S},cJ:function(){return a},mg:function(){return v},ux:function(){return i},wx:function(){return m}});var l=t(64528);function S(n){return[(0,l.WE)(n[1],n[0]),(0,l.qR)(n[2])]}function i(n){var s=n[0],o=n[1],h=(0,l.W8)(o);return[h*(0,l.W8)(s),h*(0,l.g$)(s),(0,l.g$)(o)]}function C(n,s){return n[0]*s[0]+n[1]*s[1]+n[2]*s[2]}function w(n,s){return[n[1]*s[2]-n[2]*s[1],n[2]*s[0]-n[0]*s[2],n[0]*s[1]-n[1]*s[0]]}function v(n,s){n[0]+=s[0],n[1]+=s[1],n[2]+=s[2]}function m(n,s){return[n[0]*s,n[1]*s,n[2]*s]}function a(n){var s=(0,l._I)(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=s,n[1]/=s,n[2]/=s}},24052:function(D,O,t){t.d(O,{c:function(){return B}});var l=t(64528),S=t(70932),i=t(16016),C,w,v,m,a,n,s,o,h,f,u,b,p,E,g,c,x={sphere:S.c,point:A,lineStart:R,lineEnd:P,polygonStart:function(){x.lineStart=d,x.lineEnd=k},polygonEnd:function(){x.lineStart=R,x.lineEnd=P}};function A(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U);M(H*(0,l.W8)(G),H*(0,l.g$)(G),(0,l.g$)(U))}function M(G,U,H){++C,v+=(G-v)/C,m+=(U-m)/C,a+=(H-a)/C}function R(){x.point=T}function T(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U);E=H*(0,l.W8)(G),g=H*(0,l.g$)(G),c=(0,l.g$)(U),x.point=L,M(E,g,c)}function L(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U),W=H*(0,l.W8)(G),V=H*(0,l.g$)(G),$=(0,l.g$)(U),Z=(0,l.WE)((0,l._I)((Z=g*$-c*V)*Z+(Z=c*W-E*$)*Z+(Z=E*V-g*W)*Z),E*W+g*V+c*$);w+=Z,n+=Z*(E+(E=W)),s+=Z*(g+(g=V)),o+=Z*(c+(c=$)),M(E,g,c)}function P(){x.point=A}function d(){x.point=I}function k(){N(b,p),x.point=A}function I(G,U){b=G,p=U,G*=l.qw,U*=l.qw,x.point=N;var H=(0,l.W8)(U);E=H*(0,l.W8)(G),g=H*(0,l.g$)(G),c=(0,l.g$)(U),M(E,g,c)}function N(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U),W=H*(0,l.W8)(G),V=H*(0,l.g$)(G),$=(0,l.g$)(U),Z=g*$-c*V,q=c*W-E*$,ae=E*V-g*W,ie=(0,l._I)(Z*Z+q*q+ae*ae),fe=(0,l.qR)(ie),Q=ie&&-fe/ie;h+=Q*Z,f+=Q*q,u+=Q*ae,w+=fe,n+=fe*(E+(E=W)),s+=fe*(g+(g=V)),o+=fe*(c+(c=$)),M(E,g,c)}function B(G){C=w=v=m=a=n=s=o=h=f=u=0,(0,i.c)(G,x);var U=h,H=f,W=u,V=U*U+H*H+W*W;return V0?hf)&&(h+=o*i.kD));for(var E,g=h;o>0?g>f:g0?S.pi:-S.pi,u=(0,S.a2)(o-m);(0,S.a2)(u-S.pi)0?S.or:-S.or),v.point(n,a),v.lineEnd(),v.lineStart(),v.point(f,a),v.point(o,a),s=0):n!==f&&u>=S.pi&&((0,S.a2)(m-n)S.Gg?(0,S.MQ)(((0,S.g$)(m)*(o=(0,S.W8)(n))*(0,S.g$)(a)-(0,S.g$)(n)*(s=(0,S.W8)(m))*(0,S.g$)(v))/(s*o*h)):(m+n)/2}function w(v,m,a,n){var s;if(v==null)s=a*S.or,n.point(-S.pi,s),n.point(0,s),n.point(S.pi,s),n.point(S.pi,0),n.point(S.pi,-s),n.point(0,-s),n.point(-S.pi,-s),n.point(-S.pi,0),n.point(-S.pi,s);else if((0,S.a2)(v[0]-m[0])>S.Gg){var o=v[0]1&&i.push(i.pop().concat(i.shift()))},result:function(){var w=i;return i=[],C=null,w}}}},2728:function(D,O,t){t.d(O,{c:function(){return v}});var l=t(84220),S=t(61780),i=t(64528),C=t(41860),w=t(14229);function v(m){var a=(0,i.W8)(m),n=6*i.qw,s=a>0,o=(0,i.a2)(a)>i.Gg;function h(E,g,c,x){(0,S.Q)(x,m,n,c,E,g)}function f(E,g){return(0,i.W8)(E)*(0,i.W8)(g)>a}function u(E){var g,c,x,A,M;return{lineStart:function(){A=x=!1,M=1},point:function(R,T){var L=[R,T],P,d=f(R,T),k=s?d?0:p(R,T):d?p(R+(R<0?i.pi:-i.pi),T):0;if(!g&&(A=x=d)&&E.lineStart(),d!==x&&(P=b(g,L),(!P||(0,C.c)(g,P)||(0,C.c)(L,P))&&(L[2]=1)),d!==x)M=0,d?(E.lineStart(),P=b(L,g),E.point(P[0],P[1])):(P=b(g,L),E.point(P[0],P[1],2),E.lineEnd()),g=P;else if(o&&g&&s^d){var I;!(k&c)&&(I=b(L,g,!0))&&(M=0,s?(E.lineStart(),E.point(I[0][0],I[0][1]),E.point(I[1][0],I[1][1]),E.lineEnd()):(E.point(I[1][0],I[1][1]),E.lineEnd(),E.lineStart(),E.point(I[0][0],I[0][1],3)))}d&&(!g||!(0,C.c)(g,L))&&E.point(L[0],L[1]),g=L,x=d,c=k},lineEnd:function(){x&&E.lineEnd(),g=null},clean:function(){return M|(A&&x)<<1}}}function b(E,g,c){var x=(0,l.ux)(E),A=(0,l.ux)(g),M=[1,0,0],R=(0,l.CW)(x,A),T=(0,l.Ez)(R,R),L=R[0],P=T-L*L;if(!P)return!c&&E;var d=a*T/P,k=-a*L/P,I=(0,l.CW)(M,R),N=(0,l.wx)(M,d),B=(0,l.wx)(R,k);(0,l.mg)(N,B);var G=I,U=(0,l.Ez)(N,G),H=(0,l.Ez)(G,G),W=U*U-H*((0,l.Ez)(N,N)-1);if(!(W<0)){var V=(0,i._I)(W),$=(0,l.wx)(G,(-U-V)/H);if((0,l.mg)($,N),$=(0,l.G)($),!c)return $;var Z=E[0],q=g[0],ae=E[1],ie=g[1],fe;q0^$[1]<((0,i.a2)($[0]-Z)i.pi^(Z<=$[0]&&$[0]<=q)){var K=(0,l.wx)(G,(-U+V)/H);return(0,l.mg)(K,N),[$,(0,l.G)(K)]}}}function p(E,g){var c=s?m:i.pi-m,x=0;return E<-c?x|=1:E>c&&(x|=2),g<-c?x|=4:g>c&&(x|=8),x}return(0,w.c)(f,u,h,s?[0,-m]:[-i.pi,m-i.pi])}},14229:function(D,O,t){t.d(O,{c:function(){return v}});var l=t(97208),S=t(32232),i=t(64528),C=t(58196),w=t(84706);function v(n,s,o,h){return function(f){var u=s(f),b=(0,l.c)(),p=s(b),E=!1,g,c,x,A={point:M,lineStart:T,lineEnd:L,polygonStart:function(){A.point=P,A.lineStart=d,A.lineEnd=k,c=[],g=[]},polygonEnd:function(){A.point=M,A.lineStart=T,A.lineEnd=L,c=(0,w.Uf)(c);var I=(0,C.c)(g,h);c.length?(E||(f.polygonStart(),E=!0),(0,S.c)(c,a,I,o,f)):I&&(E||(f.polygonStart(),E=!0),f.lineStart(),o(null,null,1,f),f.lineEnd()),E&&(f.polygonEnd(),E=!1),c=g=null},sphere:function(){f.polygonStart(),f.lineStart(),o(null,null,1,f),f.lineEnd(),f.polygonEnd()}};function M(I,N){n(I,N)&&f.point(I,N)}function R(I,N){u.point(I,N)}function T(){A.point=R,u.lineStart()}function L(){A.point=M,u.lineEnd()}function P(I,N){x.push([I,N]),p.point(I,N)}function d(){p.lineStart(),x=[]}function k(){P(x[0][0],x[0][1]),p.lineEnd();var I=p.clean(),N=b.result(),B,G=N.length,U,H,W;if(x.pop(),g.push(x),x=null,!!G){if(I&1){if(H=N[0],(U=H.length-1)>0){for(E||(f.polygonStart(),E=!0),f.lineStart(),B=0;B1&&I&2&&N.push(N.pop().concat(N.shift())),c.push(N.filter(m))}}return A}}function m(n){return n.length>1}function a(n,s){return((n=n.x)[0]<0?n[1]-i.or-i.Gg:i.or-n[1])-((s=s.x)[0]<0?s[1]-i.or-i.Gg:i.or-s[1])}},21676:function(D,O,t){t.d(O,{c:function(){return a}});var l=t(64528),S=t(97208);function i(n,s,o,h,f,u){var b=n[0],p=n[1],E=s[0],g=s[1],c=0,x=1,A=E-b,M=g-p,R;if(R=o-b,!(!A&&R>0)){if(R/=A,A<0){if(R0){if(R>x)return;R>c&&(c=R)}if(R=f-b,!(!A&&R<0)){if(R/=A,A<0){if(R>x)return;R>c&&(c=R)}else if(A>0){if(R0)){if(R/=M,M<0){if(R0){if(R>x)return;R>c&&(c=R)}if(R=u-p,!(!M&&R<0)){if(R/=M,M<0){if(R>x)return;R>c&&(c=R)}else if(M>0){if(R0&&(n[0]=b+c*A,n[1]=p+c*M),x<1&&(s[0]=b+x*A,s[1]=p+x*M),!0}}}}}var C=t(32232),w=t(84706),v=1e9,m=-v;function a(n,s,o,h){function f(g,c){return n<=g&&g<=o&&s<=c&&c<=h}function u(g,c,x,A){var M=0,R=0;if(g==null||(M=b(g,x))!==(R=b(c,x))||E(g,c)<0^x>0)do A.point(M===0||M===3?n:o,M>1?h:s);while((M=(M+x+4)%4)!==R);else A.point(c[0],c[1])}function b(g,c){return(0,l.a2)(g[0]-n)0?0:3:(0,l.a2)(g[0]-o)0?2:1:(0,l.a2)(g[1]-s)0?1:0:c>0?3:2}function p(g,c){return E(g.x,c.x)}function E(g,c){var x=b(g,1),A=b(c,1);return x!==A?x-A:x===0?c[1]-g[1]:x===1?g[0]-c[0]:x===2?g[1]-c[1]:c[0]-g[0]}return function(g){var c=g,x=(0,S.c)(),A,M,R,T,L,P,d,k,I,N,B,G={point:U,lineStart:$,lineEnd:Z,polygonStart:W,polygonEnd:V};function U(ae,ie){f(ae,ie)&&c.point(ae,ie)}function H(){for(var ae=0,ie=0,fe=M.length;ieh&&(re-ne)*(h-ce)>(ee-ce)*(n-ne)&&++ae:ee<=h&&(re-ne)*(h-ce)<(ee-ce)*(n-ne)&&--ae;return ae}function W(){c=x,A=[],M=[],B=!0}function V(){var ae=H(),ie=B&&ae,fe=(A=(0,w.Uf)(A)).length;(ie||fe)&&(g.polygonStart(),ie&&(g.lineStart(),u(null,null,1,g),g.lineEnd()),fe&&(0,C.c)(A,p,ae,u,g),g.polygonEnd()),c=g,A=M=R=null}function $(){G.point=q,M&&M.push(R=[]),N=!0,I=!1,d=k=NaN}function Z(){A&&(q(T,L),P&&I&&x.rejoin(),A.push(x.result())),G.point=U,I&&c.lineEnd()}function q(ae,ie){var fe=f(ae,ie);if(M&&R.push([ae,ie]),N)T=ae,L=ie,P=fe,N=!1,fe&&(c.lineStart(),c.point(ae,ie));else if(fe&&I)c.point(ae,ie);else{var Q=[d=Math.max(m,Math.min(v,d)),k=Math.max(m,Math.min(v,k))],J=[ae=Math.max(m,Math.min(v,ae)),ie=Math.max(m,Math.min(v,ie))];i(Q,J,n,s,o,h)?(I||(c.lineStart(),c.point(Q[0],Q[1])),c.point(J[0],J[1]),fe||c.lineEnd(),B=!1):fe&&(c.lineStart(),c.point(ae,ie),B=!1)}d=ae,k=ie,I=fe}return G}}},32232:function(D,O,t){t.d(O,{c:function(){return C}});var l=t(41860),S=t(64528);function i(v,m,a,n){this.x=v,this.z=m,this.o=a,this.e=n,this.v=!1,this.n=this.p=null}function C(v,m,a,n,s){var o=[],h=[],f,u;if(v.forEach(function(x){if(!((A=x.length-1)<=0)){var A,M=x[0],R=x[A],T;if((0,l.c)(M,R)){if(!M[2]&&!R[2]){for(s.lineStart(),f=0;f=0;--f)s.point((E=p[f])[0],E[1]);else n(g.x,g.p.x,-1,s);g=g.p}g=g.o,p=g.z,c=!c}while(!g.v);s.lineEnd()}}}function w(v){if(m=v.length){for(var m,a=0,n=v[0],s;++a0&&(fn=P(Mr[Tn],Mr[Tn-1]),fn>0&&Zr<=fn&&Wr<=fn&&(Zr+Wr-fn)*(1-Math.pow((Zr-Wr)/fn,2))o.Gg}).map(Ta)).concat((0,V.ik)((0,o.Km)(Tn/ma)*ma,fn,ma).filter(function(In){return(0,o.a2)(In%Ia)>o.Gg}).map(ga))}return wn.lines=function(){return Jn().map(function(In){return{type:"LineString",coordinates:In}})},wn.outline=function(){return{type:"Polygon",coordinates:[Cr(Wr).concat(cn(Sn).slice(1),Cr(Zr).reverse().slice(1),cn(Fn).reverse().slice(1))]}},wn.extent=function(In){return arguments.length?wn.extentMajor(In).extentMinor(In):wn.extentMinor()},wn.extentMajor=function(In){return arguments.length?(Wr=+In[0][0],Zr=+In[1][0],Fn=+In[0][1],Sn=+In[1][1],Wr>Zr&&(In=Wr,Wr=Zr,Zr=In),Fn>Sn&&(In=Fn,Fn=Sn,Sn=In),wn.precision(nn)):[[Wr,Fn],[Zr,Sn]]},wn.extentMinor=function(In){return arguments.length?(Rr=+In[0][0],Mr=+In[1][0],Tn=+In[0][1],fn=+In[1][1],Rr>Mr&&(In=Rr,Rr=Mr,Mr=In),Tn>fn&&(In=Tn,Tn=fn,fn=In),wn.precision(nn)):[[Rr,Tn],[Mr,fn]]},wn.step=function(In){return arguments.length?wn.stepMajor(In).stepMinor(In):wn.stepMinor()},wn.stepMajor=function(In){return arguments.length?(Aa=+In[0],Ia=+In[1],wn):[Aa,Ia]},wn.stepMinor=function(In){return arguments.length?(Wn=+In[0],ma=+In[1],wn):[Wn,ma]},wn.precision=function(In){return arguments.length?(nn=+In,Ta=$(Tn,fn,90),ga=Z(Rr,Mr,nn),Cr=$(Fn,Sn,90),cn=Z(Wr,Zr,nn),wn):nn},wn.extentMajor([[-180,-90+o.Gg],[180,90-o.Gg]]).extentMinor([[-180,-80-o.Gg],[180,80+o.Gg]])}function ae(){return q()()}var ie=t(27284),fe=t(7376),Q=(0,s.c)(),J=(0,s.c)(),oe,K,ne,ce,re={point:h.c,lineStart:h.c,lineEnd:h.c,polygonStart:function(){re.lineStart=ee,re.lineEnd=he},polygonEnd:function(){re.lineStart=re.lineEnd=re.point=h.c,Q.add((0,o.a2)(J)),J.reset()},result:function(){var Mr=Q/2;return Q.reset(),Mr}};function ee(){re.point=de}function de(Mr,Rr){re.point=le,oe=ne=Mr,K=ce=Rr}function le(Mr,Rr){J.add(ce*Mr-ne*Rr),ne=Mr,ce=Rr}function he(){le(oe,K)}var xe=re,Ee=t(73784),Se=0,ke=0,Te=0,Ae=0,be=0,Ie=0,Ue=0,Ne=0,ze=0,$e,st,vt,at,nt={point:mt,lineStart:rt,lineEnd:wt,polygonStart:function(){nt.lineStart=et,nt.lineEnd=Be},polygonEnd:function(){nt.point=mt,nt.lineStart=rt,nt.lineEnd=wt},result:function(){var Mr=ze?[Ue/ze,Ne/ze]:Ie?[Ae/Ie,be/Ie]:Te?[Se/Te,ke/Te]:[NaN,NaN];return Se=ke=Te=Ae=be=Ie=Ue=Ne=ze=0,Mr}};function mt(Mr,Rr){Se+=Mr,ke+=Rr,++Te}function rt(){nt.point=lt}function lt(Mr,Rr){nt.point=dt,mt(vt=Mr,at=Rr)}function dt(Mr,Rr){var Zr=Mr-vt,Wr=Rr-at,fn=(0,o._I)(Zr*Zr+Wr*Wr);Ae+=fn*(vt+Mr)/2,be+=fn*(at+Rr)/2,Ie+=fn,mt(vt=Mr,at=Rr)}function wt(){nt.point=mt}function et(){nt.point=Ye}function Be(){Ke($e,st)}function Ye(Mr,Rr){nt.point=Ke,mt($e=vt=Mr,st=at=Rr)}function Ke(Mr,Rr){var Zr=Mr-vt,Wr=Rr-at,fn=(0,o._I)(Zr*Zr+Wr*Wr);Ae+=fn*(vt+Mr)/2,be+=fn*(at+Rr)/2,Ie+=fn,fn=at*Mr-vt*Rr,Ue+=fn*(vt+Mr),Ne+=fn*(at+Rr),ze+=fn*3,mt(vt=Mr,at=Rr)}var We=nt;function Fe(Mr){this._context=Mr}Fe.prototype={_radius:4.5,pointRadius:function(Mr){return this._radius=Mr,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Mr,Rr){switch(this._point){case 0:{this._context.moveTo(Mr,Rr),this._point=1;break}case 1:{this._context.lineTo(Mr,Rr);break}default:{this._context.moveTo(Mr+this._radius,Rr),this._context.arc(Mr,Rr,this._radius,0,o.kD);break}}},result:h.c};var Me=(0,s.c)(),we,Re,Pe,Ve,Je,ot={point:h.c,lineStart:function(){ot.point=yt},lineEnd:function(){we&&ut(Re,Pe),ot.point=h.c},polygonStart:function(){we=!0},polygonEnd:function(){we=null},result:function(){var Mr=+Me;return Me.reset(),Mr}};function yt(Mr,Rr){ot.point=ut,Re=Ve=Mr,Pe=Je=Rr}function ut(Mr,Rr){Ve-=Mr,Je-=Rr,Me.add((0,o._I)(Ve*Ve+Je*Je)),Ve=Mr,Je=Rr}var It=ot;function Vt(){this._string=[]}Vt.prototype={_radius:4.5,_circle:xt(4.5),pointRadius:function(Mr){return(Mr=+Mr)!==this._radius&&(this._radius=Mr,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Mr,Rr){switch(this._point){case 0:{this._string.push("M",Mr,",",Rr),this._point=1;break}case 1:{this._string.push("L",Mr,",",Rr);break}default:{this._circle==null&&(this._circle=xt(this._radius)),this._string.push("M",Mr,",",Rr,this._circle);break}}},result:function(){if(this._string.length){var Mr=this._string.join("");return this._string=[],Mr}else return null}};function xt(Mr){return"m0,"+Mr+"a"+Mr+","+Mr+" 0 1,1 0,"+-2*Mr+"a"+Mr+","+Mr+" 0 1,1 0,"+2*Mr+"z"}function Lt(Mr,Rr){var Zr=4.5,Wr,fn;function Tn(Sn){return Sn&&(typeof Zr=="function"&&fn.pointRadius(+Zr.apply(this,arguments)),(0,f.c)(Sn,Wr(fn))),fn.result()}return Tn.area=function(Sn){return(0,f.c)(Sn,Wr(xe)),xe.result()},Tn.measure=function(Sn){return(0,f.c)(Sn,Wr(It)),It.result()},Tn.bounds=function(Sn){return(0,f.c)(Sn,Wr(Ee.c)),Ee.c.result()},Tn.centroid=function(Sn){return(0,f.c)(Sn,Wr(We)),We.result()},Tn.projection=function(Sn){return arguments.length?(Wr=Sn==null?(Mr=null,fe.c):(Mr=Sn).stream,Tn):Mr},Tn.context=function(Sn){return arguments.length?(fn=Sn==null?(Rr=null,new Vt):new Fe(Rr=Sn),typeof Zr!="function"&&fn.pointRadius(Zr),Tn):Rr},Tn.pointRadius=function(Sn){return arguments.length?(Zr=typeof Sn=="function"?Sn:(fn.pointRadius(+Sn),+Sn),Tn):Zr},Tn.projection(Mr).context(Rr)}var Xt=t(87952);function dr(Mr){var Rr=0,Zr=o.pi/3,Wr=(0,Xt.U)(Mr),fn=Wr(Rr,Zr);return fn.parallels=function(Tn){return arguments.length?Wr(Rr=Tn[0]*o.qw,Zr=Tn[1]*o.qw):[Rr*o.oh,Zr*o.oh]},fn}function Tt(Mr){var Rr=(0,o.W8)(Mr);function Zr(Wr,fn){return[Wr*Rr,(0,o.g$)(fn)/Rr]}return Zr.invert=function(Wr,fn){return[Wr/Rr,(0,o.qR)(fn*Rr)]},Zr}function Kt(Mr,Rr){var Zr=(0,o.g$)(Mr),Wr=(Zr+(0,o.g$)(Rr))/2;if((0,o.a2)(Wr)=.12&&nn<.234&&cn>=-.425&&cn<-.214?fn:nn>=.166&&nn<.234&&cn>=-.214&&cn<-.115?Sn:Zr).invert(Ta)},Aa.stream=function(Ta){return Mr&&Rr===Ta?Mr:Mr=Ct([Zr.stream(Rr=Ta),fn.stream(Ta),Sn.stream(Ta)])},Aa.precision=function(Ta){return arguments.length?(Zr.precision(Ta),fn.precision(Ta),Sn.precision(Ta),Ia()):Zr.precision()},Aa.scale=function(Ta){return arguments.length?(Zr.scale(Ta),fn.scale(Ta*.35),Sn.scale(Ta),Aa.translate(Zr.translate())):Zr.scale()},Aa.translate=function(Ta){if(!arguments.length)return Zr.translate();var ga=Zr.scale(),Cr=+Ta[0],cn=+Ta[1];return Wr=Zr.translate(Ta).clipExtent([[Cr-.455*ga,cn-.238*ga],[Cr+.455*ga,cn+.238*ga]]).stream(ma),Tn=fn.translate([Cr-.307*ga,cn+.201*ga]).clipExtent([[Cr-.425*ga+o.Gg,cn+.12*ga+o.Gg],[Cr-.214*ga-o.Gg,cn+.234*ga-o.Gg]]).stream(ma),Fn=Sn.translate([Cr-.205*ga,cn+.212*ga]).clipExtent([[Cr-.214*ga+o.Gg,cn+.166*ga+o.Gg],[Cr-.115*ga-o.Gg,cn+.234*ga-o.Gg]]).stream(ma),Ia()},Aa.fitExtent=function(Ta,ga){return(0,sr.QX)(Aa,Ta,ga)},Aa.fitSize=function(Ta,ga){return(0,sr.UV)(Aa,Ta,ga)},Aa.fitWidth=function(Ta,ga){return(0,sr.Qx)(Aa,Ta,ga)},Aa.fitHeight=function(Ta,ga){return(0,sr.OW)(Aa,Ta,ga)};function Ia(){return Mr=Rr=null,Aa}return Aa.scale(1070)}var At=t(54724),Rt=t(69020),_t=t(92992);function Ft(Mr,Rr){return[Mr,(0,o.Yz)((0,o.a6)((o.or+Rr)/2))]}Ft.invert=function(Mr,Rr){return[Mr,2*(0,o.MQ)((0,o.oN)(Rr))-o.or]};function Wt(){return jt(Ft).scale(961/o.kD)}function jt(Mr){var Rr=(0,Xt.c)(Mr),Zr=Rr.center,Wr=Rr.scale,fn=Rr.translate,Tn=Rr.clipExtent,Sn=null,Fn,Wn,ma;Rr.scale=function(Ia){return arguments.length?(Wr(Ia),Aa()):Wr()},Rr.translate=function(Ia){return arguments.length?(fn(Ia),Aa()):fn()},Rr.center=function(Ia){return arguments.length?(Zr(Ia),Aa()):Zr()},Rr.clipExtent=function(Ia){return arguments.length?(Ia==null?Sn=Fn=Wn=ma=null:(Sn=+Ia[0][0],Fn=+Ia[0][1],Wn=+Ia[1][0],ma=+Ia[1][1]),Aa()):Sn==null?null:[[Sn,Fn],[Wn,ma]]};function Aa(){var Ia=o.pi*Wr(),Ta=Rr((0,_t.c)(Rr.rotate()).invert([0,0]));return Tn(Sn==null?[[Ta[0]-Ia,Ta[1]-Ia],[Ta[0]+Ia,Ta[1]+Ia]]:Mr===Ft?[[Math.max(Ta[0]-Ia,Sn),Fn],[Math.min(Ta[0]+Ia,Wn),ma]]:[[Sn,Math.max(Ta[1]-Ia,Fn)],[Wn,Math.min(Ta[1]+Ia,ma)]])}return Aa()}function er(Mr){return(0,o.a6)((o.or+Mr)/2)}function hr(Mr,Rr){var Zr=(0,o.W8)(Mr),Wr=Mr===Rr?(0,o.g$)(Mr):(0,o.Yz)(Zr/(0,o.W8)(Rr))/(0,o.Yz)(er(Rr)/er(Mr)),fn=Zr*(0,o.g3)(er(Mr),Wr)/Wr;if(!Wr)return Ft;function Tn(Sn,Fn){fn>0?Fn<-o.or+o.Gg&&(Fn=-o.or+o.Gg):Fn>o.or-o.Gg&&(Fn=o.or-o.Gg);var Wn=fn/(0,o.g3)(er(Fn),Wr);return[Wn*(0,o.g$)(Wr*Sn),fn-Wn*(0,o.W8)(Wr*Sn)]}return Tn.invert=function(Sn,Fn){var Wn=fn-Fn,ma=(0,o.kq)(Wr)*(0,o._I)(Sn*Sn+Wn*Wn),Aa=(0,o.WE)(Sn,(0,o.a2)(Wn))*(0,o.kq)(Wn);return Wn*Wr<0&&(Aa-=o.pi*(0,o.kq)(Sn)*(0,o.kq)(Wn)),[Aa/Wr,2*(0,o.MQ)((0,o.g3)(fn/ma,1/Wr))-o.or]},Tn}function vr(){return dr(hr).scale(109.5).parallels([30,30])}var mr=t(69604);function Ze(Mr,Rr){var Zr=(0,o.W8)(Mr),Wr=Mr===Rr?(0,o.g$)(Mr):(Zr-(0,o.W8)(Rr))/(Rr-Mr),fn=Zr/Wr+Mr;if((0,o.a2)(Wr)2?Wr[2]+90:90]):(Wr=Zr(),[Wr[0],Wr[1],Wr[2]-90])},Zr([0,0,90]).scale(159.155)}},27284:function(D,O,t){t.d(O,{c:function(){return S}});var l=t(64528);function S(i,C){var w=i[0]*l.qw,v=i[1]*l.qw,m=C[0]*l.qw,a=C[1]*l.qw,n=(0,l.W8)(v),s=(0,l.g$)(v),o=(0,l.W8)(a),h=(0,l.g$)(a),f=n*(0,l.W8)(w),u=n*(0,l.g$)(w),b=o*(0,l.W8)(m),p=o*(0,l.g$)(m),E=2*(0,l.qR)((0,l._I)((0,l.SD)(a-v)+n*o*(0,l.SD)(m-w))),g=(0,l.g$)(E),c=E?function(x){var A=(0,l.g$)(x*=E)/g,M=(0,l.g$)(E-x)/g,R=M*f+A*b,T=M*u+A*p,L=M*s+A*h;return[(0,l.WE)(T,R)*l.oh,(0,l.WE)(L,(0,l._I)(R*R+T*T))*l.oh]}:function(){return[w*l.oh,v*l.oh]};return c.distance=E,c}},64528:function(D,O,t){t.d(O,{Gg:function(){return l},Km:function(){return f},MQ:function(){return s},SD:function(){return R},W8:function(){return h},WE:function(){return o},Yz:function(){return b},_I:function(){return c},a2:function(){return n},a6:function(){return x},a8:function(){return S},g$:function(){return E},g3:function(){return p},kD:function(){return v},kq:function(){return g},mE:function(){return A},oN:function(){return u},oh:function(){return m},or:function(){return C},pi:function(){return i},qR:function(){return M},qw:function(){return a},wL:function(){return w}});var l=1e-6,S=1e-12,i=Math.PI,C=i/2,w=i/4,v=i*2,m=180/i,a=i/180,n=Math.abs,s=Math.atan,o=Math.atan2,h=Math.cos,f=Math.ceil,u=Math.exp,b=Math.log,p=Math.pow,E=Math.sin,g=Math.sign||function(T){return T>0?1:T<0?-1:0},c=Math.sqrt,x=Math.tan;function A(T){return T>1?0:T<-1?i:Math.acos(T)}function M(T){return T>1?C:T<-1?-C:Math.asin(T)}function R(T){return(T=E(T/2))*T}},70932:function(D,O,t){t.d(O,{c:function(){return l}});function l(){}},73784:function(D,O,t){var l=t(70932),S=1/0,i=S,C=-S,w=C,v={point:m,lineStart:l.c,lineEnd:l.c,polygonStart:l.c,polygonEnd:l.c,result:function(){var a=[[S,i],[C,w]];return C=w=-(i=S=1/0),a}};function m(a,n){aC&&(C=a),nw&&(w=n)}O.c=v},41860:function(D,O,t){t.d(O,{c:function(){return S}});var l=t(64528);function S(i,C){return(0,l.a2)(i[0]-C[0])=0?1:-1,G=B*N,U=G>i.pi,H=M*k;if(C.add((0,i.WE)(H*B*(0,i.g$)(G),R*I+H*(0,i.W8)(G))),f+=U?N+B*i.kD:N,U^x>=n^P>=n){var W=(0,S.CW)((0,S.ux)(c),(0,S.ux)(L));(0,S.cJ)(W);var V=(0,S.CW)(h,W);(0,S.cJ)(V);var $=(U^N>=0?-1:1)*(0,i.qR)(V[2]);(s>$||s===$&&(W[0]||W[1]))&&(u+=U^N>=0?1:-1)}}return(f<-i.Gg||f4*R&&$--){var fe=k+H,Q=I+W,J=N+V,oe=(0,v._I)(fe*fe+Q*Q+J*J),K=(0,v.qR)(J/=oe),ne=(0,v.a2)((0,v.a2)(J)-1)R||(0,v.a2)((q*de+ae*le)/ie-.5)>.3||k*H+I*W+N*V2?he[2]%360*v.qw:0,de()):[I*v.oh,N*v.oh,B*v.oh]},re.angle=function(he){return arguments.length?(U=he%360*v.qw,de()):U*v.oh},re.reflectX=function(he){return arguments.length?(H=he?-1:1,de()):H<0},re.reflectY=function(he){return arguments.length?(W=he?-1:1,de()):W<0},re.precision=function(he){return arguments.length?(J=f(oe,Q=he*he),le()):(0,v._I)(Q)},re.fitExtent=function(he,xe){return(0,n.QX)(re,he,xe)},re.fitSize=function(he,xe){return(0,n.UV)(re,he,xe)},re.fitWidth=function(he,xe){return(0,n.Qx)(re,he,xe)},re.fitHeight=function(he,xe){return(0,n.OW)(re,he,xe)};function de(){var he=c(T,0,0,H,W,U).apply(null,R(d,k)),xe=(U?c:g)(T,L-he[0],P-he[1],H,W,U);return G=(0,m.O)(I,N,B),oe=(0,C.c)(R,xe),K=(0,C.c)(G,oe),J=f(oe,Q),le()}function le(){return ne=ce=null,re}return function(){return R=M.apply(this,arguments),re.invert=R.invert&&ee,de()}}},47984:function(D,O,t){t.d(O,{c:function(){return C},g:function(){return i}});var l=t(87952),S=t(64528);function i(w,v){var m=v*v,a=m*m;return[w*(.8707-.131979*m+a*(-.013791+a*(.003971*m-.001529*a))),v*(1.007226+m*(.015085+a*(-.044475+.028874*m-.005916*a)))]}i.invert=function(w,v){var m=v,a=25,n;do{var s=m*m,o=s*s;m-=n=(m*(1.007226+s*(.015085+o*(-.044475+.028874*s-.005916*o)))-v)/(1.007226+s*(.045255+o*(-.311325+.259866*s-.06507600000000001*o)))}while((0,S.a2)(n)>S.Gg&&--a>0);return[w/(.8707+(s=m*m)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),m]};function C(){return(0,l.c)(i).scale(175.295)}},4888:function(D,O,t){t.d(O,{c:function(){return w},t:function(){return C}});var l=t(64528),S=t(62280),i=t(87952);function C(v,m){return[(0,l.W8)(m)*(0,l.g$)(v),(0,l.g$)(m)]}C.invert=(0,S.g)(l.qR);function w(){return(0,i.c)(C).scale(249.5).clipAngle(90+l.Gg)}},92992:function(D,O,t){t.d(O,{O:function(){return C},c:function(){return a}});var l=t(68120),S=t(64528);function i(n,s){return[(0,S.a2)(n)>S.pi?n+Math.round(-n/S.kD)*S.kD:n,s]}i.invert=i;function C(n,s,o){return(n%=S.kD)?s||o?(0,l.c)(v(n),m(s,o)):v(n):s||o?m(s,o):i}function w(n){return function(s,o){return s+=n,[s>S.pi?s-S.kD:s<-S.pi?s+S.kD:s,o]}}function v(n){var s=w(n);return s.invert=w(-n),s}function m(n,s){var o=(0,S.W8)(n),h=(0,S.g$)(n),f=(0,S.W8)(s),u=(0,S.g$)(s);function b(p,E){var g=(0,S.W8)(E),c=(0,S.W8)(p)*g,x=(0,S.g$)(p)*g,A=(0,S.g$)(E),M=A*o+c*h;return[(0,S.WE)(x*f-M*u,c*o-A*h),(0,S.qR)(M*f+x*u)]}return b.invert=function(p,E){var g=(0,S.W8)(E),c=(0,S.W8)(p)*g,x=(0,S.g$)(p)*g,A=(0,S.g$)(E),M=A*f-x*u;return[(0,S.WE)(x*f+A*u,c*o+M*h),(0,S.qR)(M*o-c*h)]},b}function a(n){n=C(n[0]*S.qw,n[1]*S.qw,n.length>2?n[2]*S.qw:0);function s(o){return o=n(o[0]*S.qw,o[1]*S.qw),o[0]*=S.oh,o[1]*=S.oh,o}return s.invert=function(o){return o=n.invert(o[0]*S.qw,o[1]*S.qw),o[0]*=S.oh,o[1]*=S.oh,o},s}},16016:function(D,O,t){t.d(O,{c:function(){return v}});function l(m,a){m&&i.hasOwnProperty(m.type)&&i[m.type](m,a)}var S={Feature:function(m,a){l(m.geometry,a)},FeatureCollection:function(m,a){for(var n=m.features,s=-1,o=n.length;++s=0;)Me+=we[Re].value;Fe.value=Me}function s(){return this.eachAfter(n)}function o(Fe){var Me=this,we,Re=[Me],Pe,Ve,Je;do for(we=Re.reverse(),Re=[];Me=we.pop();)if(Fe(Me),Pe=Me.children,Pe)for(Ve=0,Je=Pe.length;Ve=0;--Pe)we.push(Re[Pe]);return this}function f(Fe){for(var Me=this,we=[Me],Re=[],Pe,Ve,Je;Me=we.pop();)if(Re.push(Me),Pe=Me.children,Pe)for(Ve=0,Je=Pe.length;Ve=0;)we+=Re[Pe].value;Me.value=we})}function b(Fe){return this.eachBefore(function(Me){Me.children&&Me.children.sort(Fe)})}function p(Fe){for(var Me=this,we=E(Me,Fe),Re=[Me];Me!==we;)Me=Me.parent,Re.push(Me);for(var Pe=Re.length;Fe!==we;)Re.splice(Pe,0,Fe),Fe=Fe.parent;return Re}function E(Fe,Me){if(Fe===Me)return Fe;var we=Fe.ancestors(),Re=Me.ancestors(),Pe=null;for(Fe=we.pop(),Me=Re.pop();Fe===Me;)Pe=Fe,Fe=we.pop(),Me=Re.pop();return Pe}function g(){for(var Fe=this,Me=[Fe];Fe=Fe.parent;)Me.push(Fe);return Me}function c(){var Fe=[];return this.each(function(Me){Fe.push(Me)}),Fe}function x(){var Fe=[];return this.eachBefore(function(Me){Me.children||Fe.push(Me)}),Fe}function A(){var Fe=this,Me=[];return Fe.each(function(we){we!==Fe&&Me.push({source:we.parent,target:we})}),Me}function M(Fe,Me){var we=new d(Fe),Re=+Fe.value&&(we.value=Fe.value),Pe,Ve=[we],Je,ot,yt,ut;for(Me==null&&(Me=T);Pe=Ve.pop();)if(Re&&(Pe.value=+Pe.data.value),(ot=Me(Pe.data))&&(ut=ot.length))for(Pe.children=new Array(ut),yt=ut-1;yt>=0;--yt)Ve.push(Je=Pe.children[yt]=new d(ot[yt])),Je.parent=Pe,Je.depth=Pe.depth+1;return we.eachBefore(P)}function R(){return M(this).eachBefore(L)}function T(Fe){return Fe.children}function L(Fe){Fe.data=Fe.data.data}function P(Fe){var Me=0;do Fe.height=Me;while((Fe=Fe.parent)&&Fe.height<++Me)}function d(Fe){this.data=Fe,this.depth=this.height=0,this.parent=null}d.prototype=M.prototype={constructor:d,count:s,each:o,eachAfter:f,eachBefore:h,sum:u,sort:b,path:p,ancestors:g,descendants:c,leaves:x,links:A,copy:R};var k=Array.prototype.slice;function I(Fe){for(var Me=Fe.length,we,Re;Me;)Re=Math.random()*Me--|0,we=Fe[Me],Fe[Me]=Fe[Re],Fe[Re]=we;return Fe}function N(Fe){for(var Me=0,we=(Fe=I(k.call(Fe))).length,Re=[],Pe,Ve;Me0&&we*we>Re*Re+Pe*Pe}function H(Fe,Me){for(var we=0;weyt?(Pe=(ut+yt-Ve)/(2*ut),ot=Math.sqrt(Math.max(0,yt/ut-Pe*Pe)),we.x=Fe.x-Pe*Re-ot*Je,we.y=Fe.y-Pe*Je+ot*Re):(Pe=(ut+Ve-yt)/(2*ut),ot=Math.sqrt(Math.max(0,Ve/ut-Pe*Pe)),we.x=Me.x+Pe*Re-ot*Je,we.y=Me.y+Pe*Je+ot*Re)):(we.x=Me.x+we.r,we.y=Me.y)}function ae(Fe,Me){var we=Fe.r+Me.r-1e-6,Re=Me.x-Fe.x,Pe=Me.y-Fe.y;return we>0&&we*we>Re*Re+Pe*Pe}function ie(Fe){var Me=Fe._,we=Fe.next._,Re=Me.r+we.r,Pe=(Me.x*we.r+we.x*Me.r)/Re,Ve=(Me.y*we.r+we.y*Me.r)/Re;return Pe*Pe+Ve*Ve}function fe(Fe){this._=Fe,this.next=null,this.previous=null}function Q(Fe){if(!(Pe=Fe.length))return 0;var Me,we,Re,Pe,Ve,Je,ot,yt,ut,It,Vt;if(Me=Fe[0],Me.x=0,Me.y=0,!(Pe>1))return Me.r;if(we=Fe[1],Me.x=-we.r,we.x=Me.r,we.y=0,!(Pe>2))return Me.r+we.r;q(we,Me,Re=Fe[2]),Me=new fe(Me),we=new fe(we),Re=new fe(Re),Me.next=Re.previous=we,we.next=Me.previous=Re,Re.next=we.previous=Me;e:for(ot=3;ot0)throw new Error("cycle");return ot}return we.id=function(Re){return arguments.length?(Fe=K(Re),we):Fe},we.parentId=function(Re){return arguments.length?(Me=K(Re),we):Me},we}function Ne(Fe,Me){return Fe.parent===Me.parent?1:2}function ze(Fe){var Me=Fe.children;return Me?Me[0]:Fe.t}function $e(Fe){var Me=Fe.children;return Me?Me[Me.length-1]:Fe.t}function st(Fe,Me,we){var Re=we/(Me.i-Fe.i);Me.c-=Re,Me.s+=we,Fe.c+=Re,Me.z+=we,Me.m+=we}function vt(Fe){for(var Me=0,we=0,Re=Fe.children,Pe=Re.length,Ve;--Pe>=0;)Ve=Re[Pe],Ve.z+=Me,Ve.m+=Me,Me+=Ve.s+(we+=Ve.c)}function at(Fe,Me,we){return Fe.a.parent===Me.parent?Fe.a:we}function nt(Fe,Me){this._=Fe,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Me}nt.prototype=Object.create(d.prototype);function mt(Fe){for(var Me=new nt(Fe,0),we,Re=[Me],Pe,Ve,Je,ot;we=Re.pop();)if(Ve=we._.children)for(we.children=new Array(ot=Ve.length),Je=ot-1;Je>=0;--Je)Re.push(Pe=we.children[Je]=new nt(Ve[Je],Je)),Pe.parent=we;return(Me.parent=new nt(null,0)).children=[Me],Me}function rt(){var Fe=Ne,Me=1,we=1,Re=null;function Pe(ut){var It=mt(ut);if(It.eachAfter(Ve),It.parent.m=-It.z,It.eachBefore(Je),Re)ut.eachBefore(yt);else{var Vt=ut,xt=ut,Lt=ut;ut.eachBefore(function(Qt){Qt.xxt.x&&(xt=Qt),Qt.depth>Lt.depth&&(Lt=Qt)});var Xt=Vt===xt?1:Fe(Vt,xt)/2,dr=Xt-Vt.x,Tt=Me/(xt.x+Xt+dr),Kt=we/(Lt.depth||1);ut.eachBefore(function(Qt){Qt.x=(Qt.x+dr)*Tt,Qt.y=Qt.depth*Kt})}return ut}function Ve(ut){var It=ut.children,Vt=ut.parent.children,xt=ut.i?Vt[ut.i-1]:null;if(It){vt(ut);var Lt=(It[0].z+It[It.length-1].z)/2;xt?(ut.z=xt.z+Fe(ut._,xt._),ut.m=ut.z-Lt):ut.z=Lt}else xt&&(ut.z=xt.z+Fe(ut._,xt._));ut.parent.A=ot(ut,xt,ut.parent.A||Vt[0])}function Je(ut){ut._.x=ut.z+ut.parent.m,ut.m+=ut.parent.m}function ot(ut,It,Vt){if(It){for(var xt=ut,Lt=ut,Xt=It,dr=xt.parent.children[0],Tt=xt.m,Kt=Lt.m,Qt=Xt.m,xr=dr.m,sr;Xt=$e(Xt),xt=ze(xt),Xt&&xt;)dr=ze(dr),Lt=$e(Lt),Lt.a=ut,sr=Xt.z+Qt-xt.z-Tt+Fe(Xt._,xt._),sr>0&&(st(at(Xt,ut,Vt),ut,sr),Tt+=sr,Kt+=sr),Qt+=Xt.m,Tt+=xt.m,xr+=dr.m,Kt+=Lt.m;Xt&&!$e(Lt)&&(Lt.t=Xt,Lt.m+=Qt-Kt),xt&&!ze(dr)&&(dr.t=xt,dr.m+=Tt-xr,Vt=ut)}return Vt}function yt(ut){ut.x*=Me,ut.y=ut.depth*we}return Pe.separation=function(ut){return arguments.length?(Fe=ut,Pe):Fe},Pe.size=function(ut){return arguments.length?(Re=!1,Me=+ut[0],we=+ut[1],Pe):Re?null:[Me,we]},Pe.nodeSize=function(ut){return arguments.length?(Re=!0,Me=+ut[0],we=+ut[1],Pe):Re?[Me,we]:null},Pe}function lt(Fe,Me,we,Re,Pe){for(var Ve=Fe.children,Je,ot=-1,yt=Ve.length,ut=Fe.value&&(Pe-we)/Fe.value;++otQt&&(Qt=ut),ht=Tt*Tt*Ct,xr=Math.max(Qt/ht,ht/Kt),xr>sr){Tt-=ut;break}sr=xr}Je.push(yt={value:Tt,dice:Lt1?Re:1)},we}(dt);function Be(){var Fe=et,Me=!1,we=1,Re=1,Pe=[0],Ve=ne,Je=ne,ot=ne,yt=ne,ut=ne;function It(xt){return xt.x0=xt.y0=0,xt.x1=we,xt.y1=Re,xt.eachBefore(Vt),Pe=[0],Me&&xt.eachBefore(xe),xt}function Vt(xt){var Lt=Pe[xt.depth],Xt=xt.x0+Lt,dr=xt.y0+Lt,Tt=xt.x1-Lt,Kt=xt.y1-Lt;Tt=xt-1){var Qt=Ve[Vt];Qt.x0=Xt,Qt.y0=dr,Qt.x1=Tt,Qt.y1=Kt;return}for(var xr=ut[Vt],sr=Lt/2+xr,Ct=Vt+1,ht=xt-1;Ct>>1;ut[At]Kt-dr){var Ft=(Xt*_t+Tt*Rt)/Lt;It(Vt,Ct,Rt,Xt,dr,Ft,Kt),It(Ct,xt,_t,Ft,dr,Tt,Kt)}else{var Wt=(dr*_t+Kt*Rt)/Lt;It(Vt,Ct,Rt,Xt,dr,Tt,Wt),It(Ct,xt,_t,Xt,Wt,Tt,Kt)}}}function Ke(Fe,Me,we,Re,Pe){(Fe.depth&1?lt:Ee)(Fe,Me,we,Re,Pe)}var We=function Fe(Me){function we(Re,Pe,Ve,Je,ot){if((yt=Re._squarify)&&yt.ratio===Me)for(var yt,ut,It,Vt,xt=-1,Lt,Xt=yt.length,dr=Re.value;++xt1?Re:1)},we}(dt)},10132:function(D,O,t){t.d(O,{ak:function(){return p}});var l=Math.PI,S=2*l,i=1e-6,C=S-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function v(){return new w}w.prototype=v.prototype={constructor:w,moveTo:function(E,g){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+g)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(E,g){this._+="L"+(this._x1=+E)+","+(this._y1=+g)},quadraticCurveTo:function(E,g,c,x){this._+="Q"+ +E+","+ +g+","+(this._x1=+c)+","+(this._y1=+x)},bezierCurveTo:function(E,g,c,x,A,M){this._+="C"+ +E+","+ +g+","+ +c+","+ +x+","+(this._x1=+A)+","+(this._y1=+M)},arcTo:function(E,g,c,x,A){E=+E,g=+g,c=+c,x=+x,A=+A;var M=this._x1,R=this._y1,T=c-E,L=x-g,P=M-E,d=R-g,k=P*P+d*d;if(A<0)throw new Error("negative radius: "+A);if(this._x1===null)this._+="M"+(this._x1=E)+","+(this._y1=g);else if(k>i)if(!(Math.abs(d*T-L*P)>i)||!A)this._+="L"+(this._x1=E)+","+(this._y1=g);else{var I=c-M,N=x-R,B=T*T+L*L,G=I*I+N*N,U=Math.sqrt(B),H=Math.sqrt(k),W=A*Math.tan((l-Math.acos((B+k-G)/(2*U*H)))/2),V=W/H,$=W/U;Math.abs(V-1)>i&&(this._+="L"+(E+V*P)+","+(g+V*d)),this._+="A"+A+","+A+",0,0,"+ +(d*I>P*N)+","+(this._x1=E+$*T)+","+(this._y1=g+$*L)}},arc:function(E,g,c,x,A,M){E=+E,g=+g,c=+c,M=!!M;var R=c*Math.cos(x),T=c*Math.sin(x),L=E+R,P=g+T,d=1^M,k=M?x-A:A-x;if(c<0)throw new Error("negative radius: "+c);this._x1===null?this._+="M"+L+","+P:(Math.abs(this._x1-L)>i||Math.abs(this._y1-P)>i)&&(this._+="L"+L+","+P),c&&(k<0&&(k=k%S+S),k>C?this._+="A"+c+","+c+",0,1,"+d+","+(E-R)+","+(g-T)+"A"+c+","+c+",0,1,"+d+","+(this._x1=L)+","+(this._y1=P):k>i&&(this._+="A"+c+","+c+",0,"+ +(k>=l)+","+d+","+(this._x1=E+c*Math.cos(A))+","+(this._y1=g+c*Math.sin(A))))},rect:function(E,g,c,x){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+g)+"h"+ +c+"v"+ +x+"h"+-c+"Z"},toString:function(){return this._}};var m=v,a=Array.prototype.slice;function n(E){return function(){return E}}function s(E){return E[0]}function o(E){return E[1]}function h(E){return E.source}function f(E){return E.target}function u(E){var g=h,c=f,x=s,A=o,M=null;function R(){var T,L=a.call(arguments),P=g.apply(this,L),d=c.apply(this,L);if(M||(M=T=m()),E(M,+x.apply(this,(L[0]=P,L)),+A.apply(this,L),+x.apply(this,(L[0]=d,L)),+A.apply(this,L)),T)return M=null,T+""||null}return R.source=function(T){return arguments.length?(g=T,R):g},R.target=function(T){return arguments.length?(c=T,R):c},R.x=function(T){return arguments.length?(x=typeof T=="function"?T:n(+T),R):x},R.y=function(T){return arguments.length?(A=typeof T=="function"?T:n(+T),R):A},R.context=function(T){return arguments.length?(M=T??null,R):M},R}function b(E,g,c,x,A){E.moveTo(g,c),E.bezierCurveTo(g=(g+x)/2,c,g,A,x,A)}function p(){return u(b)}},94336:function(D,O,t){t.d(O,{Yn:function(){return Ye},m_:function(){return s},E9:function(){return Ke}});var l=t(8208),S=t(58931),i=t(46192),C=t(68936),w=t(32171),v=t(53528);function m(Fe){if(0<=Fe.y&&Fe.y<100){var Me=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Me.setFullYear(Fe.y),Me}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function a(Fe){if(0<=Fe.y&&Fe.y<100){var Me=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Me.setUTCFullYear(Fe.y),Me}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function n(Fe,Me,we){return{y:Fe,m:Me,d:we,H:0,M:0,S:0,L:0}}function s(Fe){var Me=Fe.dateTime,we=Fe.date,Re=Fe.time,Pe=Fe.periods,Ve=Fe.days,Je=Fe.shortDays,ot=Fe.months,yt=Fe.shortMonths,ut=E(Pe),It=g(Pe),Vt=E(Ve),xt=g(Ve),Lt=E(Je),Xt=g(Je),dr=E(ot),Tt=g(ot),Kt=E(yt),Qt=g(yt),xr={a:Ze,A:Xe,b:Ut,B:Bt,c:null,d:q,e:q,f:J,H:ae,I:ie,j:fe,L:Q,m:oe,M:K,p:qt,q:nr,Q:wt,s:et,S:ne,u:ce,U:re,V:ee,w:de,W:le,x:null,X:null,y:he,Y:xe,Z:Ee,"%":dt},sr={a:fr,A:ir,b:Ht,B:pr,c:null,d:Se,e:Se,f:Ie,H:ke,I:Te,j:Ae,L:be,m:Ue,M:Ne,p:br,q:Tr,Q:wt,s:et,S:ze,u:$e,U:st,V:vt,w:at,W:nt,x:null,X:null,y:mt,Y:rt,Z:lt,"%":dt},Ct={a:Ft,A:Wt,b:jt,B:er,c:hr,d:I,e:I,f:W,H:B,I:B,j:N,L:H,m:k,M:G,p:_t,q:d,Q:$,s:Z,S:U,u:x,U:A,V:M,w:c,W:R,x:vr,X:mr,y:L,Y:T,Z:P,"%":V};xr.x=ht(we,xr),xr.X=ht(Re,xr),xr.c=ht(Me,xr),sr.x=ht(we,sr),sr.X=ht(Re,sr),sr.c=ht(Me,sr);function ht(gr,Xr){return function(Dr){var Fr=[],yn=-1,un=0,_n=gr.length,On,Mr,Rr;for(Dr instanceof Date||(Dr=new Date(+Dr));++yn<_n;)gr.charCodeAt(yn)===37&&(Fr.push(gr.slice(un,yn)),(Mr=o[On=gr.charAt(++yn)])!=null?On=gr.charAt(++yn):Mr=On==="e"?" ":"0",(Rr=Xr[On])&&(On=Rr(Dr,Mr)),Fr.push(On),un=yn+1);return Fr.push(gr.slice(un,yn)),Fr.join("")}}function At(gr,Xr){return function(Dr){var Fr=n(1900,void 0,1),yn=Rt(Fr,gr,Dr+="",0),un,_n;if(yn!=Dr.length)return null;if("Q"in Fr)return new Date(Fr.Q);if("s"in Fr)return new Date(Fr.s*1e3+("L"in Fr?Fr.L:0));if(Xr&&!("Z"in Fr)&&(Fr.Z=0),"p"in Fr&&(Fr.H=Fr.H%12+Fr.p*12),Fr.m===void 0&&(Fr.m="q"in Fr?Fr.q:0),"V"in Fr){if(Fr.V<1||Fr.V>53)return null;"w"in Fr||(Fr.w=1),"Z"in Fr?(un=a(n(Fr.y,0,1)),_n=un.getUTCDay(),un=_n>4||_n===0?l.ot.ceil(un):(0,l.ot)(un),un=S.c.offset(un,(Fr.V-1)*7),Fr.y=un.getUTCFullYear(),Fr.m=un.getUTCMonth(),Fr.d=un.getUTCDate()+(Fr.w+6)%7):(un=m(n(Fr.y,0,1)),_n=un.getDay(),un=_n>4||_n===0?i.qT.ceil(un):(0,i.qT)(un),un=C.c.offset(un,(Fr.V-1)*7),Fr.y=un.getFullYear(),Fr.m=un.getMonth(),Fr.d=un.getDate()+(Fr.w+6)%7)}else("W"in Fr||"U"in Fr)&&("w"in Fr||(Fr.w="u"in Fr?Fr.u%7:"W"in Fr?1:0),_n="Z"in Fr?a(n(Fr.y,0,1)).getUTCDay():m(n(Fr.y,0,1)).getDay(),Fr.m=0,Fr.d="W"in Fr?(Fr.w+6)%7+Fr.W*7-(_n+5)%7:Fr.w+Fr.U*7-(_n+6)%7);return"Z"in Fr?(Fr.H+=Fr.Z/100|0,Fr.M+=Fr.Z%100,a(Fr)):m(Fr)}}function Rt(gr,Xr,Dr,Fr){for(var yn=0,un=Xr.length,_n=Dr.length,On,Mr;yn=_n)return-1;if(On=Xr.charCodeAt(yn++),On===37){if(On=Xr.charAt(yn++),Mr=Ct[On in o?Xr.charAt(yn++):On],!Mr||(Fr=Mr(gr,Dr,Fr))<0)return-1}else if(On!=Dr.charCodeAt(Fr++))return-1}return Fr}function _t(gr,Xr,Dr){var Fr=ut.exec(Xr.slice(Dr));return Fr?(gr.p=It[Fr[0].toLowerCase()],Dr+Fr[0].length):-1}function Ft(gr,Xr,Dr){var Fr=Lt.exec(Xr.slice(Dr));return Fr?(gr.w=Xt[Fr[0].toLowerCase()],Dr+Fr[0].length):-1}function Wt(gr,Xr,Dr){var Fr=Vt.exec(Xr.slice(Dr));return Fr?(gr.w=xt[Fr[0].toLowerCase()],Dr+Fr[0].length):-1}function jt(gr,Xr,Dr){var Fr=Kt.exec(Xr.slice(Dr));return Fr?(gr.m=Qt[Fr[0].toLowerCase()],Dr+Fr[0].length):-1}function er(gr,Xr,Dr){var Fr=dr.exec(Xr.slice(Dr));return Fr?(gr.m=Tt[Fr[0].toLowerCase()],Dr+Fr[0].length):-1}function hr(gr,Xr,Dr){return Rt(gr,Me,Xr,Dr)}function vr(gr,Xr,Dr){return Rt(gr,we,Xr,Dr)}function mr(gr,Xr,Dr){return Rt(gr,Re,Xr,Dr)}function Ze(gr){return Je[gr.getDay()]}function Xe(gr){return Ve[gr.getDay()]}function Ut(gr){return yt[gr.getMonth()]}function Bt(gr){return ot[gr.getMonth()]}function qt(gr){return Pe[+(gr.getHours()>=12)]}function nr(gr){return 1+~~(gr.getMonth()/3)}function fr(gr){return Je[gr.getUTCDay()]}function ir(gr){return Ve[gr.getUTCDay()]}function Ht(gr){return yt[gr.getUTCMonth()]}function pr(gr){return ot[gr.getUTCMonth()]}function br(gr){return Pe[+(gr.getUTCHours()>=12)]}function Tr(gr){return 1+~~(gr.getUTCMonth()/3)}return{format:function(gr){var Xr=ht(gr+="",xr);return Xr.toString=function(){return gr},Xr},parse:function(gr){var Xr=At(gr+="",!1);return Xr.toString=function(){return gr},Xr},utcFormat:function(gr){var Xr=ht(gr+="",sr);return Xr.toString=function(){return gr},Xr},utcParse:function(gr){var Xr=At(gr+="",!0);return Xr.toString=function(){return gr},Xr}}}var o={"-":"",_:" ",0:"0"},h=/^\s*\d+/,f=/^%/,u=/[\\^$*+?|[\]().{}]/g;function b(Fe,Me,we){var Re=Fe<0?"-":"",Pe=(Re?-Fe:Fe)+"",Ve=Pe.length;return Re+(Ve68?1900:2e3),we+Re[0].length):-1}function P(Fe,Me,we){var Re=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Me.slice(we,we+6));return Re?(Fe.Z=Re[1]?0:-(Re[2]+(Re[3]||"00")),we+Re[0].length):-1}function d(Fe,Me,we){var Re=h.exec(Me.slice(we,we+1));return Re?(Fe.q=Re[0]*3-3,we+Re[0].length):-1}function k(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.m=Re[0]-1,we+Re[0].length):-1}function I(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.d=+Re[0],we+Re[0].length):-1}function N(Fe,Me,we){var Re=h.exec(Me.slice(we,we+3));return Re?(Fe.m=0,Fe.d=+Re[0],we+Re[0].length):-1}function B(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.H=+Re[0],we+Re[0].length):-1}function G(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.M=+Re[0],we+Re[0].length):-1}function U(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.S=+Re[0],we+Re[0].length):-1}function H(Fe,Me,we){var Re=h.exec(Me.slice(we,we+3));return Re?(Fe.L=+Re[0],we+Re[0].length):-1}function W(Fe,Me,we){var Re=h.exec(Me.slice(we,we+6));return Re?(Fe.L=Math.floor(Re[0]/1e3),we+Re[0].length):-1}function V(Fe,Me,we){var Re=f.exec(Me.slice(we,we+1));return Re?we+Re[0].length:-1}function $(Fe,Me,we){var Re=h.exec(Me.slice(we));return Re?(Fe.Q=+Re[0],we+Re[0].length):-1}function Z(Fe,Me,we){var Re=h.exec(Me.slice(we));return Re?(Fe.s=+Re[0],we+Re[0].length):-1}function q(Fe,Me){return b(Fe.getDate(),Me,2)}function ae(Fe,Me){return b(Fe.getHours(),Me,2)}function ie(Fe,Me){return b(Fe.getHours()%12||12,Me,2)}function fe(Fe,Me){return b(1+C.c.count((0,w.c)(Fe),Fe),Me,3)}function Q(Fe,Me){return b(Fe.getMilliseconds(),Me,3)}function J(Fe,Me){return Q(Fe,Me)+"000"}function oe(Fe,Me){return b(Fe.getMonth()+1,Me,2)}function K(Fe,Me){return b(Fe.getMinutes(),Me,2)}function ne(Fe,Me){return b(Fe.getSeconds(),Me,2)}function ce(Fe){var Me=Fe.getDay();return Me===0?7:Me}function re(Fe,Me){return b(i.uU.count((0,w.c)(Fe)-1,Fe),Me,2)}function ee(Fe,Me){var we=Fe.getDay();return Fe=we>=4||we===0?(0,i.kD)(Fe):i.kD.ceil(Fe),b(i.kD.count((0,w.c)(Fe),Fe)+((0,w.c)(Fe).getDay()===4),Me,2)}function de(Fe){return Fe.getDay()}function le(Fe,Me){return b(i.qT.count((0,w.c)(Fe)-1,Fe),Me,2)}function he(Fe,Me){return b(Fe.getFullYear()%100,Me,2)}function xe(Fe,Me){return b(Fe.getFullYear()%1e4,Me,4)}function Ee(Fe){var Me=Fe.getTimezoneOffset();return(Me>0?"-":(Me*=-1,"+"))+b(Me/60|0,"0",2)+b(Me%60,"0",2)}function Se(Fe,Me){return b(Fe.getUTCDate(),Me,2)}function ke(Fe,Me){return b(Fe.getUTCHours(),Me,2)}function Te(Fe,Me){return b(Fe.getUTCHours()%12||12,Me,2)}function Ae(Fe,Me){return b(1+S.c.count((0,v.c)(Fe),Fe),Me,3)}function be(Fe,Me){return b(Fe.getUTCMilliseconds(),Me,3)}function Ie(Fe,Me){return be(Fe,Me)+"000"}function Ue(Fe,Me){return b(Fe.getUTCMonth()+1,Me,2)}function Ne(Fe,Me){return b(Fe.getUTCMinutes(),Me,2)}function ze(Fe,Me){return b(Fe.getUTCSeconds(),Me,2)}function $e(Fe){var Me=Fe.getUTCDay();return Me===0?7:Me}function st(Fe,Me){return b(l.EV.count((0,v.c)(Fe)-1,Fe),Me,2)}function vt(Fe,Me){var we=Fe.getUTCDay();return Fe=we>=4||we===0?(0,l.yA)(Fe):l.yA.ceil(Fe),b(l.yA.count((0,v.c)(Fe),Fe)+((0,v.c)(Fe).getUTCDay()===4),Me,2)}function at(Fe){return Fe.getUTCDay()}function nt(Fe,Me){return b(l.ot.count((0,v.c)(Fe)-1,Fe),Me,2)}function mt(Fe,Me){return b(Fe.getUTCFullYear()%100,Me,2)}function rt(Fe,Me){return b(Fe.getUTCFullYear()%1e4,Me,4)}function lt(){return"+0000"}function dt(){return"%"}function wt(Fe){return+Fe}function et(Fe){return Math.floor(+Fe/1e3)}var Be,Ye,Ke;We({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"]});function We(Fe){return Be=s(Fe),Ye=Be.format,Be.parse,Ke=Be.utcFormat,Be.utcParse,Be}},68936:function(D,O,t){t.d(O,{m:function(){return C}});var l=t(81628),S=t(69792),i=(0,l.c)(function(w){w.setHours(0,0,0,0)},function(w,v){w.setDate(w.getDate()+v)},function(w,v){return(v-w-(v.getTimezoneOffset()-w.getTimezoneOffset())*S.iy)/S.SK},function(w){return w.getDate()-1});O.c=i;var C=i.range},69792:function(D,O,t){t.d(O,{KK:function(){return w},SK:function(){return C},cg:function(){return i},iy:function(){return S},yc:function(){return l}});var l=1e3,S=6e4,i=36e5,C=864e5,w=6048e5},73220:function(D,O,t){t.r(O),t.d(O,{timeDay:function(){return b.c},timeDays:function(){return b.m},timeFriday:function(){return p.iB},timeFridays:function(){return p.sJ},timeHour:function(){return f},timeHours:function(){return u},timeInterval:function(){return l.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return C},timeMinute:function(){return s},timeMinutes:function(){return o},timeMonday:function(){return p.qT},timeMondays:function(){return p.QP},timeMonth:function(){return g},timeMonths:function(){return c},timeSaturday:function(){return p.Wc},timeSaturdays:function(){return p.aI},timeSecond:function(){return m},timeSeconds:function(){return a},timeSunday:function(){return p.uU},timeSundays:function(){return p.Ab},timeThursday:function(){return p.kD},timeThursdays:function(){return p.eC},timeTuesday:function(){return p.Mf},timeTuesdays:function(){return p.Oc},timeWednesday:function(){return p.eg},timeWednesdays:function(){return p.sn},timeWeek:function(){return p.uU},timeWeeks:function(){return p.Ab},timeYear:function(){return x.c},timeYears:function(){return x.Q},utcDay:function(){return d.c},utcDays:function(){return d.o},utcFriday:function(){return k.od},utcFridays:function(){return k.iG},utcHour:function(){return L},utcHours:function(){return P},utcMillisecond:function(){return i},utcMilliseconds:function(){return C},utcMinute:function(){return M},utcMinutes:function(){return R},utcMonday:function(){return k.ot},utcMondays:function(){return k.iO},utcMonth:function(){return N},utcMonths:function(){return B},utcSaturday:function(){return k.Ad},utcSaturdays:function(){return k.K8},utcSecond:function(){return m},utcSeconds:function(){return a},utcSunday:function(){return k.EV},utcSundays:function(){return k.Wq},utcThursday:function(){return k.yA},utcThursdays:function(){return k.ob},utcTuesday:function(){return k.sG},utcTuesdays:function(){return k.kl},utcWednesday:function(){return k._6},utcWednesdays:function(){return k.W_},utcWeek:function(){return k.EV},utcWeeks:function(){return k.Wq},utcYear:function(){return G.c},utcYears:function(){return G.i}});var l=t(81628),S=(0,l.c)(function(){},function(U,H){U.setTime(+U+H)},function(U,H){return H-U});S.every=function(U){return U=Math.floor(U),!isFinite(U)||!(U>0)?null:U>1?(0,l.c)(function(H){H.setTime(Math.floor(H/U)*U)},function(H,W){H.setTime(+H+W*U)},function(H,W){return(W-H)/U}):S};var i=S,C=S.range,w=t(69792),v=(0,l.c)(function(U){U.setTime(U-U.getMilliseconds())},function(U,H){U.setTime(+U+H*w.yc)},function(U,H){return(H-U)/w.yc},function(U){return U.getUTCSeconds()}),m=v,a=v.range,n=(0,l.c)(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*w.yc)},function(U,H){U.setTime(+U+H*w.iy)},function(U,H){return(H-U)/w.iy},function(U){return U.getMinutes()}),s=n,o=n.range,h=(0,l.c)(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*w.yc-U.getMinutes()*w.iy)},function(U,H){U.setTime(+U+H*w.cg)},function(U,H){return(H-U)/w.cg},function(U){return U.getHours()}),f=h,u=h.range,b=t(68936),p=t(46192),E=(0,l.c)(function(U){U.setDate(1),U.setHours(0,0,0,0)},function(U,H){U.setMonth(U.getMonth()+H)},function(U,H){return H.getMonth()-U.getMonth()+(H.getFullYear()-U.getFullYear())*12},function(U){return U.getMonth()}),g=E,c=E.range,x=t(32171),A=(0,l.c)(function(U){U.setUTCSeconds(0,0)},function(U,H){U.setTime(+U+H*w.iy)},function(U,H){return(H-U)/w.iy},function(U){return U.getUTCMinutes()}),M=A,R=A.range,T=(0,l.c)(function(U){U.setUTCMinutes(0,0,0)},function(U,H){U.setTime(+U+H*w.cg)},function(U,H){return(H-U)/w.cg},function(U){return U.getUTCHours()}),L=T,P=T.range,d=t(58931),k=t(8208),I=(0,l.c)(function(U){U.setUTCDate(1),U.setUTCHours(0,0,0,0)},function(U,H){U.setUTCMonth(U.getUTCMonth()+H)},function(U,H){return H.getUTCMonth()-U.getUTCMonth()+(H.getUTCFullYear()-U.getUTCFullYear())*12},function(U){return U.getUTCMonth()}),N=I,B=I.range,G=t(53528)},81628:function(D,O,t){t.d(O,{c:function(){return i}});var l=new Date,S=new Date;function i(C,w,v,m){function a(n){return C(n=arguments.length===0?new Date:new Date(+n)),n}return a.floor=function(n){return C(n=new Date(+n)),n},a.ceil=function(n){return C(n=new Date(n-1)),w(n,1),C(n),n},a.round=function(n){var s=a(n),o=a.ceil(n);return n-s0))return h;do h.push(f=new Date(+n)),w(n,o),C(n);while(f=s)for(;C(s),!n(s);)s.setTime(s-1)},function(s,o){if(s>=s)if(o<0)for(;++o<=0;)for(;w(s,-1),!n(s););else for(;--o>=0;)for(;w(s,1),!n(s););})},v&&(a.count=function(n,s){return l.setTime(+n),S.setTime(+s),C(l),C(S),Math.floor(v(l,S))},a.every=function(n){return n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?a.filter(m?function(s){return m(s)%n===0}:function(s){return a.count(0,s)%n===0}):a}),a}},58931:function(D,O,t){t.d(O,{o:function(){return C}});var l=t(81628),S=t(69792),i=(0,l.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,v){w.setUTCDate(w.getUTCDate()+v)},function(w,v){return(v-w)/S.SK},function(w){return w.getUTCDate()-1});O.c=i;var C=i.range},8208:function(D,O,t){t.d(O,{Ad:function(){return s},EV:function(){return C},K8:function(){return E},W_:function(){return u},Wq:function(){return o},_6:function(){return m},iG:function(){return p},iO:function(){return h},kl:function(){return f},ob:function(){return b},od:function(){return n},ot:function(){return w},sG:function(){return v},yA:function(){return a}});var l=t(81628),S=t(69792);function i(g){return(0,l.c)(function(c){c.setUTCDate(c.getUTCDate()-(c.getUTCDay()+7-g)%7),c.setUTCHours(0,0,0,0)},function(c,x){c.setUTCDate(c.getUTCDate()+x*7)},function(c,x){return(x-c)/S.KK})}var C=i(0),w=i(1),v=i(2),m=i(3),a=i(4),n=i(5),s=i(6),o=C.range,h=w.range,f=v.range,u=m.range,b=a.range,p=n.range,E=s.range},53528:function(D,O,t){t.d(O,{i:function(){return i}});var l=t(81628),S=(0,l.c)(function(C){C.setUTCMonth(0,1),C.setUTCHours(0,0,0,0)},function(C,w){C.setUTCFullYear(C.getUTCFullYear()+w)},function(C,w){return w.getUTCFullYear()-C.getUTCFullYear()},function(C){return C.getUTCFullYear()});S.every=function(C){return!isFinite(C=Math.floor(C))||!(C>0)?null:(0,l.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/C)*C),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,v){w.setUTCFullYear(w.getUTCFullYear()+v*C)})},O.c=S;var i=S.range},46192:function(D,O,t){t.d(O,{Ab:function(){return o},Mf:function(){return v},Oc:function(){return f},QP:function(){return h},Wc:function(){return s},aI:function(){return E},eC:function(){return b},eg:function(){return m},iB:function(){return n},kD:function(){return a},qT:function(){return w},sJ:function(){return p},sn:function(){return u},uU:function(){return C}});var l=t(81628),S=t(69792);function i(g){return(0,l.c)(function(c){c.setDate(c.getDate()-(c.getDay()+7-g)%7),c.setHours(0,0,0,0)},function(c,x){c.setDate(c.getDate()+x*7)},function(c,x){return(x-c-(x.getTimezoneOffset()-c.getTimezoneOffset())*S.iy)/S.KK})}var C=i(0),w=i(1),v=i(2),m=i(3),a=i(4),n=i(5),s=i(6),o=C.range,h=w.range,f=v.range,u=m.range,b=a.range,p=n.range,E=s.range},32171:function(D,O,t){t.d(O,{Q:function(){return i}});var l=t(81628),S=(0,l.c)(function(C){C.setMonth(0,1),C.setHours(0,0,0,0)},function(C,w){C.setFullYear(C.getFullYear()+w)},function(C,w){return w.getFullYear()-C.getFullYear()},function(C){return C.getFullYear()});S.every=function(C){return!isFinite(C=Math.floor(C))||!(C>0)?null:(0,l.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/C)*C),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,v){w.setFullYear(w.getFullYear()+v*C)})},O.c=S;var i=S.range},64348:function(D,O,t){var l=t(39640)(),S=t(53664),i=l&&S("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var C=S("%SyntaxError%"),w=S("%TypeError%"),v=t(2304);D.exports=function(a,n,s){if(!a||typeof a!="object"&&typeof a!="function")throw new w("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,b=!!v&&v(a,n);if(i)i(a,n,{configurable:f===null&&b?b.configurable:!f,enumerable:o===null&&b?b.enumerable:!o,value:s,writable:h===null&&b?b.writable:!h});else if(u||!o&&!h&&!f)a[n]=s;else throw new C("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(D,O,t){var l=t(41820),S=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,C=Array.prototype.concat,w=Object.defineProperty,v=function(o){return typeof o=="function"&&i.call(o)==="[object Function]"},m=t(39640)(),a=w&&m,n=function(o,h,f,u){if(h in o){if(u===!0){if(o[h]===f)return}else if(!v(u)||!u())return}a?w(o,h,{configurable:!0,enumerable:!1,value:f,writable:!0}):o[h]=f},s=function(o,h){var f=arguments.length>2?arguments[2]:{},u=l(h);S&&(u=C.call(u,Object.getOwnPropertySymbols(h)));for(var b=0;ba*n){var u=(f-h)/a;v[o]=u*1e3}}return v}function i(C){for(var w=[],v=C[0];v<=C[1];v++)for(var m=String.fromCharCode(v),a=C[0];a"u"&&(i=0),typeof S){case"number":if(S>0)return t(S|0,i);break;case"object":if(typeof S.length=="number")return O(S,i,0);break}return[]}D.exports=l},28912:function(D){D.exports=O,D.exports.default=O;function O(B,G,U){U=U||2;var H=G&&G.length,W=H?G[0]*U:B.length,V=t(B,0,W,U,!0),$=[];if(!V||V.next===V.prev)return $;var Z,q,ae,ie,fe,Q,J;if(H&&(V=m(B,G,V,U)),B.length>80*U){Z=ae=B[0],q=ie=B[1];for(var oe=U;oeae&&(ae=fe),Q>ie&&(ie=Q);J=Math.max(ae-Z,ie-q),J=J!==0?1/J:0}return S(V,$,U,Z,q,J),$}function t(B,G,U,H,W){var V,$;if(W===N(B,G,U,H)>0)for(V=G;V=G;V-=H)$=d(V,B[V],B[V+1],$);return $&&c($,$.next)&&(k($),$=$.next),$}function l(B,G){if(!B)return B;G||(G=B);var U=B,H;do if(H=!1,!U.steiner&&(c(U,U.next)||g(U.prev,U,U.next)===0)){if(k(U),U=G=U.prev,U===U.next)break;H=!0}else U=U.next;while(H||U!==G);return G}function S(B,G,U,H,W,V,$){if(B){!$&&V&&h(B,H,W,V);for(var Z=B,q,ae;B.prev!==B.next;){if(q=B.prev,ae=B.next,V?C(B,H,W,V):i(B)){G.push(q.i/U),G.push(B.i/U),G.push(ae.i/U),k(B),B=ae.next,Z=ae.next;continue}if(B=ae,B===Z){$?$===1?(B=w(l(B),G,U),S(B,G,U,H,W,V,2)):$===2&&v(B,G,U,H,W,V):S(l(B),G,U,H,W,V,1);break}}}}function i(B){var G=B.prev,U=B,H=B.next;if(g(G,U,H)>=0)return!1;for(var W=B.next.next;W!==B.prev;){if(p(G.x,G.y,U.x,U.y,H.x,H.y,W.x,W.y)&&g(W.prev,W,W.next)>=0)return!1;W=W.next}return!0}function C(B,G,U,H){var W=B.prev,V=B,$=B.next;if(g(W,V,$)>=0)return!1;for(var Z=W.xV.x?W.x>$.x?W.x:$.x:V.x>$.x?V.x:$.x,ie=W.y>V.y?W.y>$.y?W.y:$.y:V.y>$.y?V.y:$.y,fe=u(Z,q,G,U,H),Q=u(ae,ie,G,U,H),J=B.prevZ,oe=B.nextZ;J&&J.z>=fe&&oe&&oe.z<=Q;){if(J!==B.prev&&J!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,J.x,J.y)&&g(J.prev,J,J.next)>=0||(J=J.prevZ,oe!==B.prev&&oe!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,oe.x,oe.y)&&g(oe.prev,oe,oe.next)>=0))return!1;oe=oe.nextZ}for(;J&&J.z>=fe;){if(J!==B.prev&&J!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,J.x,J.y)&&g(J.prev,J,J.next)>=0)return!1;J=J.prevZ}for(;oe&&oe.z<=Q;){if(oe!==B.prev&&oe!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,oe.x,oe.y)&&g(oe.prev,oe,oe.next)>=0)return!1;oe=oe.nextZ}return!0}function w(B,G,U){var H=B;do{var W=H.prev,V=H.next.next;!c(W,V)&&x(W,H,H.next,V)&&T(W,V)&&T(V,W)&&(G.push(W.i/U),G.push(H.i/U),G.push(V.i/U),k(H),k(H.next),H=B=V),H=H.next}while(H!==B);return l(H)}function v(B,G,U,H,W,V){var $=B;do{for(var Z=$.next.next;Z!==$.prev;){if($.i!==Z.i&&E($,Z)){var q=P($,Z);$=l($,$.next),q=l(q,q.next),S($,G,U,H,W,V),S(q,G,U,H,W,V);return}Z=Z.next}$=$.next}while($!==B)}function m(B,G,U,H){var W=[],V,$,Z,q,ae;for(V=0,$=G.length;V<$;V++)Z=G[V]*H,q=V<$-1?G[V+1]*H:B.length,ae=t(B,Z,q,H,!1),ae===ae.next&&(ae.steiner=!0),W.push(b(ae));for(W.sort(a),V=0;V=U.next.y&&U.next.y!==U.y){var Z=U.x+(W-U.y)*(U.next.x-U.x)/(U.next.y-U.y);if(Z<=H&&Z>V){if(V=Z,Z===H){if(W===U.y)return U;if(W===U.next.y)return U.next}$=U.x=U.x&&U.x>=ae&&H!==U.x&&p(W$.x||U.x===$.x&&o($,U)))&&($=U,fe=Q)),U=U.next;while(U!==q);return $}function o(B,G){return g(B.prev,B,G.prev)<0&&g(G.next,B,B.next)<0}function h(B,G,U,H){var W=B;do W.z===null&&(W.z=u(W.x,W.y,G,U,H)),W.prevZ=W.prev,W.nextZ=W.next,W=W.next;while(W!==B);W.prevZ.nextZ=null,W.prevZ=null,f(W)}function f(B){var G,U,H,W,V,$,Z,q,ae=1;do{for(U=B,B=null,V=null,$=0;U;){for($++,H=U,Z=0,G=0;G0||q>0&&H;)Z!==0&&(q===0||!H||U.z<=H.z)?(W=U,U=U.nextZ,Z--):(W=H,H=H.nextZ,q--),V?V.nextZ=W:B=W,W.prevZ=V,V=W;U=H}V.nextZ=null,ae*=2}while($>1);return B}function u(B,G,U,H,W){return B=32767*(B-U)*W,G=32767*(G-H)*W,B=(B|B<<8)&16711935,B=(B|B<<4)&252645135,B=(B|B<<2)&858993459,B=(B|B<<1)&1431655765,G=(G|G<<8)&16711935,G=(G|G<<4)&252645135,G=(G|G<<2)&858993459,G=(G|G<<1)&1431655765,B|G<<1}function b(B){var G=B,U=B;do(G.x=0&&(B-$)*(H-Z)-(U-$)*(G-Z)>=0&&(U-$)*(V-Z)-(W-$)*(H-Z)>=0}function E(B,G){return B.next.i!==G.i&&B.prev.i!==G.i&&!R(B,G)&&(T(B,G)&&T(G,B)&&L(B,G)&&(g(B.prev,B,G.prev)||g(B,G.prev,G))||c(B,G)&&g(B.prev,B,B.next)>0&&g(G.prev,G,G.next)>0)}function g(B,G,U){return(G.y-B.y)*(U.x-G.x)-(G.x-B.x)*(U.y-G.y)}function c(B,G){return B.x===G.x&&B.y===G.y}function x(B,G,U,H){var W=M(g(B,G,U)),V=M(g(B,G,H)),$=M(g(U,H,B)),Z=M(g(U,H,G));return!!(W!==V&&$!==Z||W===0&&A(B,U,G)||V===0&&A(B,H,G)||$===0&&A(U,B,H)||Z===0&&A(U,G,H))}function A(B,G,U){return G.x<=Math.max(B.x,U.x)&&G.x>=Math.min(B.x,U.x)&&G.y<=Math.max(B.y,U.y)&&G.y>=Math.min(B.y,U.y)}function M(B){return B>0?1:B<0?-1:0}function R(B,G){var U=B;do{if(U.i!==B.i&&U.next.i!==B.i&&U.i!==G.i&&U.next.i!==G.i&&x(U,U.next,B,G))return!0;U=U.next}while(U!==B);return!1}function T(B,G){return g(B.prev,B,B.next)<0?g(B,G,B.next)>=0&&g(B,B.prev,G)>=0:g(B,G,B.prev)<0||g(B,B.next,G)<0}function L(B,G){var U=B,H=!1,W=(B.x+G.x)/2,V=(B.y+G.y)/2;do U.y>V!=U.next.y>V&&U.next.y!==U.y&&W<(U.next.x-U.x)*(V-U.y)/(U.next.y-U.y)+U.x&&(H=!H),U=U.next;while(U!==B);return H}function P(B,G){var U=new I(B.i,B.x,B.y),H=new I(G.i,G.x,G.y),W=B.next,V=G.prev;return B.next=G,G.prev=B,U.next=W,W.prev=U,H.next=U,U.prev=H,V.next=H,H.prev=V,H}function d(B,G,U,H){var W=new I(B,G,U);return H?(W.next=H.next,W.prev=H,H.next.prev=W,H.next=W):(W.prev=W,W.next=W),W}function k(B){B.next.prev=B.prev,B.prev.next=B.next,B.prevZ&&(B.prevZ.nextZ=B.nextZ),B.nextZ&&(B.nextZ.prevZ=B.prevZ)}function I(B,G,U){this.i=B,this.x=G,this.y=U,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}O.deviation=function(B,G,U,H){var W=G&&G.length,V=W?G[0]*U:B.length,$=Math.abs(N(B,0,V,U));if(W)for(var Z=0,q=G.length;Z0&&(H+=B[W-1].length,U.holes.push(H))}return U}},6688:function(D,O,t){var l=t(78484);D.exports=function(i,C){var w=[],v=[],m=[],a={},n=[],s;function o(A){m[A]=!1,a.hasOwnProperty(A)&&Object.keys(a[A]).forEach(function(M){delete a[A][M],m[M]&&o(M)})}function h(A){var M=!1;v.push(A),m[A]=!0;var R,T;for(R=0;R=A})}function b(A){u(A);for(var M=i,R=l(M),T=R.components.filter(function(B){return B.length>1}),L=1/0,P,d=0;d=55296&&A<=56319&&(L+=f[++E])),L=u?s.call(u,b,L,g):L,p?(o.value=L,h(c,g,o)):c[g]=L,++g;x=g}}if(x===void 0)for(x=C(f.length),p&&(c=new p(x)),E=0;E0?1:-1}},96936:function(D,O,t){var l=t(85608),S=Math.abs,i=Math.floor;D.exports=function(C){return isNaN(C)?0:(C=Number(C),C===0||!isFinite(C)?C:l(C)*i(S(C)))}},81304:function(D,O,t){var l=t(96936),S=Math.max;D.exports=function(i){return S(0,l(i))}},14428:function(D,O,t){var l=t(34044),S=t(9252),i=Function.prototype.bind,C=Function.prototype.call,w=Object.keys,v=Object.prototype.propertyIsEnumerable;D.exports=function(m,a){return function(n,s){var o,h=arguments[2],f=arguments[3];return n=Object(S(n)),l(s),o=w(n),f&&o.sort(typeof f=="function"?i.call(f,n):void 0),typeof m!="function"&&(m=o[m]),C.call(m,o,function(u,b){return v.call(n,u)?C.call(s,h,n[u],u,n,b):a})}}},38452:function(D,O,t){D.exports=t(96276)()?Object.assign:t(81892)},96276:function(D){D.exports=function(){var O=Object.assign,t;return typeof O!="function"?!1:(t={foo:"raz"},O(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},81892:function(D,O,t){var l=t(54768),S=t(9252),i=Math.max;D.exports=function(C,w){var v,m,a=i(arguments.length,2),n;for(C=Object(S(C)),n=function(s){try{C[s]=w[s]}catch(o){v||(v=o)}},m=1;m-1}},29768:function(D){var O=Object.prototype.toString,t=O.call("");D.exports=function(l){return typeof l=="string"||l&&typeof l=="object"&&(l instanceof String||O.call(l)===t)||!1}},82252:function(D){var O=Object.create(null),t=Math.random;D.exports=function(){var l;do l=t().toString(36).slice(2);while(O[l]);return l}},52104:function(D,O,t){var l=t(69932),S=t(71056),i=t(21092),C=t(92664),w=t(85512),v=Object.defineProperty,m;m=D.exports=function(a,n){if(!(this instanceof m))throw new TypeError("Constructor requires 'new'");w.call(this,a),n?S.call(n,"key+value")?n="key+value":S.call(n,"key")?n="key":n="value":n="value",v(this,"__kind__",i("",n))},l&&l(m,w),delete m.prototype.constructor,m.prototype=Object.create(w.prototype,{_resolve:i(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),v(m.prototype,C.toStringTag,i("c","Array Iterator"))},76024:function(D,O,t){var l=t(60948),S=t(34044),i=t(29768),C=t(76252),w=Array.isArray,v=Function.prototype.call,m=Array.prototype.some;D.exports=function(a,n){var s,o=arguments[2],h,f,u,b,p,E,g;if(w(a)||l(a)?s="array":i(a)?s="string":a=C(a),S(n),f=function(){u=!0},s==="array"){m.call(a,function(c){return v.call(n,o,c,f),u});return}if(s==="string"){for(p=a.length,b=0;b=55296&&g<=56319&&(E+=a[++b])),v.call(n,o,E,f),!u);++b);return}for(h=a.next();!h.done;){if(v.call(n,o,h.value,f),u)return;h=a.next()}}},76252:function(D,O,t){var l=t(60948),S=t(29768),i=t(52104),C=t(80940),w=t(52891),v=t(92664).iterator;D.exports=function(m){return typeof w(m)[v]=="function"?m[v]():l(m)?new i(m):S(m)?new C(m):new i(m)}},85512:function(D,O,t){var l=t(41476),S=t(38452),i=t(34044),C=t(9252),w=t(21092),v=t(27940),m=t(92664),a=Object.defineProperty,n=Object.defineProperties,s;D.exports=s=function(o,h){if(!(this instanceof s))throw new TypeError("Constructor requires 'new'");n(this,{__list__:w("w",C(o)),__context__:w("w",h),__nextIndex__:w("w",0)}),h&&(i(h.on),h.on("_add",this._onAdd),h.on("_delete",this._onDelete),h.on("_clear",this._onClear))},delete s.prototype.constructor,n(s.prototype,S({_next:w(function(){var o;if(this.__list__){if(this.__redo__&&(o=this.__redo__.shift(),o!==void 0))return o;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){a(this,"__redo__",w("c",[o]));return}this.__redo__.forEach(function(h,f){h>=o&&(this.__redo__[f]=++h)},this),this.__redo__.push(o)}}),_onDelete:w(function(o){var h;o>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(h=this.__redo__.indexOf(o),h!==-1&&this.__redo__.splice(h,1),this.__redo__.forEach(function(f,u){f>o&&(this.__redo__[u]=--f)},this)))}),_onClear:w(function(){this.__redo__&&l.call(this.__redo__),this.__nextIndex__=0})}))),a(s.prototype,m.iterator,w(function(){return this}))},76368:function(D,O,t){var l=t(60948),S=t(42584),i=t(29768),C=t(92664).iterator,w=Array.isArray;D.exports=function(v){return S(v)?w(v)||i(v)||l(v)?!0:typeof v[C]=="function":!1}},80940:function(D,O,t){var l=t(69932),S=t(21092),i=t(92664),C=t(85512),w=Object.defineProperty,v;v=D.exports=function(m){if(!(this instanceof v))throw new TypeError("Constructor requires 'new'");m=String(m),C.call(this,m),w(this,"__length__",S("",m.length))},l&&l(v,C),delete v.prototype.constructor,v.prototype=Object.create(C.prototype,{_next:S(function(){if(this.__list__){if(this.__nextIndex__=55296&&n<=56319?a+this.__list__[this.__nextIndex__++]:a)})}),w(v.prototype,i.toStringTag,S("c","String Iterator"))},52891:function(D,O,t){var l=t(76368);D.exports=function(S){if(!l(S))throw new TypeError(S+" is not iterable");return S}},60964:function(D){function O(l,S){if(l==null)throw new TypeError("Cannot convert first argument to object");for(var i=Object(l),C=1;C0&&(L=A[0]),L instanceof Error)throw L;var P=new Error("Unhandled error."+(L?" ("+L.message+")":""));throw P.context=L,P}var d=T[x];if(d===void 0)return!1;if(typeof d=="function")t(d,this,A);else for(var k=d.length,I=f(d,k),M=0;M0&&L.length>R&&!L.warned){L.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=c,P.type=x,P.count=L.length,S(P)}return c}C.prototype.addListener=function(x,A){return a(this,x,A,!1)},C.prototype.on=C.prototype.addListener,C.prototype.prependListener=function(x,A){return a(this,x,A,!0)};function n(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(c,x,A){var M={fired:!1,wrapFn:void 0,target:c,type:x,listener:A},R=n.bind(M);return R.listener=A,M.wrapFn=R,R}C.prototype.once=function(x,A){return v(A),this.on(x,s(this,x,A)),this},C.prototype.prependOnceListener=function(x,A){return v(A),this.prependListener(x,s(this,x,A)),this},C.prototype.removeListener=function(x,A){var M,R,T,L,P;if(v(A),R=this._events,R===void 0)return this;if(M=R[x],M===void 0)return this;if(M===A||M.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete R[x],R.removeListener&&this.emit("removeListener",x,M.listener||A));else if(typeof M!="function"){for(T=-1,L=M.length-1;L>=0;L--)if(M[L]===A||M[L].listener===A){P=M[L].listener,T=L;break}if(T<0)return this;T===0?M.shift():u(M,T),M.length===1&&(R[x]=M[0]),R.removeListener!==void 0&&this.emit("removeListener",x,P||A)}return this},C.prototype.off=C.prototype.removeListener,C.prototype.removeAllListeners=function(x){var A,M,R;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[x]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[x]),this;if(arguments.length===0){var T=Object.keys(M),L;for(R=0;R=0;R--)this.removeListener(x,A[R]);return this};function o(c,x,A){var M=c._events;if(M===void 0)return[];var R=M[x];return R===void 0?[]:typeof R=="function"?A?[R.listener||R]:[R]:A?b(R):f(R,R.length)}C.prototype.listeners=function(x){return o(this,x,!0)},C.prototype.rawListeners=function(x){return o(this,x,!1)},C.listenerCount=function(c,x){return typeof c.listenerCount=="function"?c.listenerCount(x):h.call(c,x)},C.prototype.listenerCount=h;function h(c){var x=this._events;if(x!==void 0){var A=x[c];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}C.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function f(c,x){for(var A=new Array(x),M=0;Mw[0]-a[0]/2&&(u=a[0]/2,b+=a[1]);return v}},71920:function(D){D.exports=O,O.canvas=document.createElement("canvas"),O.cache={};function O(n,C){C||(C={}),(typeof n=="string"||Array.isArray(n))&&(C.family=n);var w=Array.isArray(C.family)?C.family.join(", "):C.family;if(!w)throw Error("`family` must be defined");var v=C.size||C.fontSize||C.em||48,m=C.weight||C.fontWeight||"",a=C.style||C.fontStyle||"",n=[a,m,v].join(" ")+"px "+w,s=C.origin||"top";if(O.cache[w]&&v<=O.cache[w].em)return t(O.cache[w],s);var o=C.canvas||O.canvas,h=o.getContext("2d"),f={upper:C.upper!==void 0?C.upper:"H",lower:C.lower!==void 0?C.lower:"x",descent:C.descent!==void 0?C.descent:"p",ascent:C.ascent!==void 0?C.ascent:"h",tittle:C.tittle!==void 0?C.tittle:"i",overshoot:C.overshoot!==void 0?C.overshoot:"O"},u=Math.ceil(v*1.5);o.height=u,o.width=u*.5,h.font=n;var b="H",p={top:0};h.clearRect(0,0,u,u),h.textBaseline="top",h.fillStyle="black",h.fillText(b,0,0);var E=l(h.getImageData(0,0,u,u));h.clearRect(0,0,u,u),h.textBaseline="bottom",h.fillText(b,0,u);var g=l(h.getImageData(0,0,u,u));p.lineHeight=p.bottom=u-g+E,h.clearRect(0,0,u,u),h.textBaseline="alphabetic",h.fillText(b,0,u);var c=l(h.getImageData(0,0,u,u)),x=u-c-1+E;p.baseline=p.alphabetic=x,h.clearRect(0,0,u,u),h.textBaseline="middle",h.fillText(b,0,u*.5);var A=l(h.getImageData(0,0,u,u));p.median=p.middle=u-A-1+E-u*.5,h.clearRect(0,0,u,u),h.textBaseline="hanging",h.fillText(b,0,u*.5);var M=l(h.getImageData(0,0,u,u));p.hanging=u-M-1+E-u*.5,h.clearRect(0,0,u,u),h.textBaseline="ideographic",h.fillText(b,0,u);var R=l(h.getImageData(0,0,u,u));if(p.ideographic=u-R-1+E,f.upper&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.upper,0,0),p.upper=l(h.getImageData(0,0,u,u)),p.capHeight=p.baseline-p.upper),f.lower&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.lower,0,0),p.lower=l(h.getImageData(0,0,u,u)),p.xHeight=p.baseline-p.lower),f.tittle&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.tittle,0,0),p.tittle=l(h.getImageData(0,0,u,u))),f.ascent&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.ascent,0,0),p.ascent=l(h.getImageData(0,0,u,u))),f.descent&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.descent,0,0),p.descent=S(h.getImageData(0,0,u,u))),f.overshoot){h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.overshoot,0,0);var T=S(h.getImageData(0,0,u,u));p.overshoot=T-x}for(var L in p)p[L]/=v;return p.em=v,O.cache[w]=p,t(p,s)}function t(i,C){var w={};typeof C=="string"&&(C=i[C]);for(var v in i)v!=="em"&&(w[v]=i[v]-C);return w}function l(i){for(var C=i.height,w=i.data,v=3;v0;v-=4)if(w[v]!==0)return Math.floor((v-3)*.25/C)}},46492:function(D,O,t){var l=t(90720),S=Object.prototype.toString,i=Object.prototype.hasOwnProperty,C=function(n,s,o){for(var h=0,f=n.length;h=3&&(h=o),S.call(n)==="[object Array]"?C(n,s,h):typeof n=="string"?w(n,s,h):v(n,s,h)};D.exports=m},74336:function(D){var O="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,l=Math.max,S="[object Function]",i=function(m,a){for(var n=[],s=0;s"u"&&!l.canvas)return null;var S=l.canvas||document.createElement("canvas");typeof l.width=="number"&&(S.width=l.width),typeof l.height=="number"&&(S.height=l.height);var i=l,C;try{var w=[t];t.indexOf("webgl")===0&&w.push("experimental-"+t);for(var v=0;v"u"||!o?l:o(Uint8Array),u={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":n&&o?o([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":n&&o?o(o([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map>"u"||!n||!o?l:o(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set>"u"||!n||!o?l:o(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":n&&o?o(""[Symbol.iterator]()):l,"%Symbol%":n?Symbol:l,"%SyntaxError%":S,"%ThrowTypeError%":a,"%TypedArray%":f,"%TypeError%":C,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};if(o)try{null.error}catch(I){var b=o(o(I));u["%Error.prototype%"]=b}var p=function I(N){var B;if(N==="%AsyncFunction%")B=w("async function () {}");else if(N==="%GeneratorFunction%")B=w("function* () {}");else if(N==="%AsyncGeneratorFunction%")B=w("async function* () {}");else if(N==="%AsyncGenerator%"){var G=I("%AsyncGeneratorFunction%");G&&(B=G.prototype)}else if(N==="%AsyncIteratorPrototype%"){var U=I("%AsyncGenerator%");U&&o&&(B=o(U.prototype))}return u[N]=B,B},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=t(8844),c=t(92064),x=g.call(Function.call,Array.prototype.concat),A=g.call(Function.apply,Array.prototype.splice),M=g.call(Function.call,String.prototype.replace),R=g.call(Function.call,String.prototype.slice),T=g.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,d=function(N){var B=R(N,0,1),G=R(N,-1);if(B==="%"&&G!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&B!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var U=[];return M(N,L,function(H,W,V,$){U[U.length]=V?M($,P,"$1"):W||H}),U},k=function(N,B){var G=N,U;if(c(E,G)&&(U=E[G],G="%"+U[0]+"%"),c(u,G)){var H=u[G];if(H===h&&(H=p(G)),typeof H>"u"&&!B)throw new C("intrinsic "+N+" exists, but is not available. Please file an issue!");return{alias:U,name:G,value:H}}throw new S("intrinsic "+N+" does not exist!")};D.exports=function(N,B){if(typeof N!="string"||N.length===0)throw new C("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new C('"allowMissing" argument must be a boolean');if(T(/^%?[^%]*%?$/,N)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=d(N),U=G.length>0?G[0]:"",H=k("%"+U+"%",B),W=H.name,V=H.value,$=!1,Z=H.alias;Z&&(U=Z[0],A(G,x([0,1],Z)));for(var q=1,ae=!0;q=G.length){var J=v(V,ie);ae=!!J,ae&&"get"in J&&!("originalValue"in J.get)?V=J.get:V=V[ie]}else ae=c(V,ie),V=V[ie];ae&&!$&&(u[W]=V)}}return V}},12408:function(D){D.exports=O;function O(t,l){var S=l[0],i=l[1],C=l[2],w=l[3],v=l[4],m=l[5],a=l[6],n=l[7],s=l[8],o=l[9],h=l[10],f=l[11],u=l[12],b=l[13],p=l[14],E=l[15];return t[0]=m*(h*E-f*p)-o*(a*E-n*p)+b*(a*f-n*h),t[1]=-(i*(h*E-f*p)-o*(C*E-w*p)+b*(C*f-w*h)),t[2]=i*(a*E-n*p)-m*(C*E-w*p)+b*(C*n-w*a),t[3]=-(i*(a*f-n*h)-m*(C*f-w*h)+o*(C*n-w*a)),t[4]=-(v*(h*E-f*p)-s*(a*E-n*p)+u*(a*f-n*h)),t[5]=S*(h*E-f*p)-s*(C*E-w*p)+u*(C*f-w*h),t[6]=-(S*(a*E-n*p)-v*(C*E-w*p)+u*(C*n-w*a)),t[7]=S*(a*f-n*h)-v*(C*f-w*h)+s*(C*n-w*a),t[8]=v*(o*E-f*b)-s*(m*E-n*b)+u*(m*f-n*o),t[9]=-(S*(o*E-f*b)-s*(i*E-w*b)+u*(i*f-w*o)),t[10]=S*(m*E-n*b)-v*(i*E-w*b)+u*(i*n-w*m),t[11]=-(S*(m*f-n*o)-v*(i*f-w*o)+s*(i*n-w*m)),t[12]=-(v*(o*p-h*b)-s*(m*p-a*b)+u*(m*h-a*o)),t[13]=S*(o*p-h*b)-s*(i*p-C*b)+u*(i*h-C*o),t[14]=-(S*(m*p-a*b)-v*(i*p-C*b)+u*(i*a-C*m)),t[15]=S*(m*h-a*o)-v*(i*h-C*o)+s*(i*a-C*m),t}},76860:function(D){D.exports=O;function O(t){var l=new Float32Array(16);return l[0]=t[0],l[1]=t[1],l[2]=t[2],l[3]=t[3],l[4]=t[4],l[5]=t[5],l[6]=t[6],l[7]=t[7],l[8]=t[8],l[9]=t[9],l[10]=t[10],l[11]=t[11],l[12]=t[12],l[13]=t[13],l[14]=t[14],l[15]=t[15],l}},64492:function(D){D.exports=O;function O(t,l){return t[0]=l[0],t[1]=l[1],t[2]=l[2],t[3]=l[3],t[4]=l[4],t[5]=l[5],t[6]=l[6],t[7]=l[7],t[8]=l[8],t[9]=l[9],t[10]=l[10],t[11]=l[11],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15],t}},54212:function(D){D.exports=O;function O(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},70800:function(D){D.exports=O;function O(t){var l=t[0],S=t[1],i=t[2],C=t[3],w=t[4],v=t[5],m=t[6],a=t[7],n=t[8],s=t[9],o=t[10],h=t[11],f=t[12],u=t[13],b=t[14],p=t[15],E=l*v-S*w,g=l*m-i*w,c=l*a-C*w,x=S*m-i*v,A=S*a-C*v,M=i*a-C*m,R=n*u-s*f,T=n*b-o*f,L=n*p-h*f,P=s*b-o*u,d=s*p-h*u,k=o*p-h*b;return E*k-g*d+c*P+x*L-A*T+M*R}},61784:function(D){D.exports=O;function O(t,l){var S=l[0],i=l[1],C=l[2],w=l[3],v=S+S,m=i+i,a=C+C,n=S*v,s=i*v,o=i*m,h=C*v,f=C*m,u=C*a,b=w*v,p=w*m,E=w*a;return t[0]=1-o-u,t[1]=s+E,t[2]=h-p,t[3]=0,t[4]=s-E,t[5]=1-n-u,t[6]=f+b,t[7]=0,t[8]=h+p,t[9]=f-b,t[10]=1-n-o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},91616:function(D){D.exports=O;function O(t,l,S){var i,C,w,v=S[0],m=S[1],a=S[2],n=Math.sqrt(v*v+m*m+a*a);return Math.abs(n)<1e-6?null:(n=1/n,v*=n,m*=n,a*=n,i=Math.sin(l),C=Math.cos(l),w=1-C,t[0]=v*v*w+C,t[1]=m*v*w+a*i,t[2]=a*v*w-m*i,t[3]=0,t[4]=v*m*w-a*i,t[5]=m*m*w+C,t[6]=a*m*w+v*i,t[7]=0,t[8]=v*a*w+m*i,t[9]=m*a*w-v*i,t[10]=a*a*w+C,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}},51944:function(D){D.exports=O;function O(t,l,S){var i=l[0],C=l[1],w=l[2],v=l[3],m=i+i,a=C+C,n=w+w,s=i*m,o=i*a,h=i*n,f=C*a,u=C*n,b=w*n,p=v*m,E=v*a,g=v*n;return t[0]=1-(f+b),t[1]=o+g,t[2]=h-E,t[3]=0,t[4]=o-g,t[5]=1-(s+b),t[6]=u+p,t[7]=0,t[8]=h+E,t[9]=u-p,t[10]=1-(s+f),t[11]=0,t[12]=S[0],t[13]=S[1],t[14]=S[2],t[15]=1,t}},69444:function(D){D.exports=O;function O(t,l){return t[0]=l[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},48268:function(D){D.exports=O;function O(t,l){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=l[0],t[13]=l[1],t[14]=l[2],t[15]=1,t}},21856:function(D){D.exports=O;function O(t,l){var S=Math.sin(l),i=Math.cos(l);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=S,t[7]=0,t[8]=0,t[9]=-S,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},79216:function(D){D.exports=O;function O(t,l){var S=Math.sin(l),i=Math.cos(l);return t[0]=i,t[1]=0,t[2]=-S,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=S,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},57736:function(D){D.exports=O;function O(t,l){var S=Math.sin(l),i=Math.cos(l);return t[0]=i,t[1]=S,t[2]=0,t[3]=0,t[4]=-S,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},38848:function(D){D.exports=O;function O(t,l,S,i,C,w,v){var m=1/(S-l),a=1/(C-i),n=1/(w-v);return t[0]=w*2*m,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=w*2*a,t[6]=0,t[7]=0,t[8]=(S+l)*m,t[9]=(C+i)*a,t[10]=(v+w)*n,t[11]=-1,t[12]=0,t[13]=0,t[14]=v*w*2*n,t[15]=0,t}},36635:function(D){D.exports=O;function O(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},36524:function(D,O,t){D.exports={create:t(54212),clone:t(76860),copy:t(64492),identity:t(36635),transpose:t(86520),invert:t(4308),adjoint:t(12408),determinant:t(70800),multiply:t(80944),translate:t(35176),scale:t(68152),rotate:t(30016),rotateX:t(15456),rotateY:t(64840),rotateZ:t(4192),fromRotation:t(91616),fromRotationTranslation:t(51944),fromScaling:t(69444),fromTranslation:t(48268),fromXRotation:t(21856),fromYRotation:t(79216),fromZRotation:t(57736),fromQuat:t(61784),frustum:t(38848),perspective:t(51296),perspectiveFromFieldOfView:t(63688),ortho:t(97688),lookAt:t(56508),str:t(89412)}},4308:function(D){D.exports=O;function O(t,l){var S=l[0],i=l[1],C=l[2],w=l[3],v=l[4],m=l[5],a=l[6],n=l[7],s=l[8],o=l[9],h=l[10],f=l[11],u=l[12],b=l[13],p=l[14],E=l[15],g=S*m-i*v,c=S*a-C*v,x=S*n-w*v,A=i*a-C*m,M=i*n-w*m,R=C*n-w*a,T=s*b-o*u,L=s*p-h*u,P=s*E-f*u,d=o*p-h*b,k=o*E-f*b,I=h*E-f*p,N=g*I-c*k+x*d+A*P-M*L+R*T;return N?(N=1/N,t[0]=(m*I-a*k+n*d)*N,t[1]=(C*k-i*I-w*d)*N,t[2]=(b*R-p*M+E*A)*N,t[3]=(h*M-o*R-f*A)*N,t[4]=(a*P-v*I-n*L)*N,t[5]=(S*I-C*P+w*L)*N,t[6]=(p*x-u*R-E*c)*N,t[7]=(s*R-h*x+f*c)*N,t[8]=(v*k-m*P+n*T)*N,t[9]=(i*P-S*k-w*T)*N,t[10]=(u*M-b*x+E*g)*N,t[11]=(o*x-s*M-f*g)*N,t[12]=(m*L-v*d-a*T)*N,t[13]=(S*d-i*L+C*T)*N,t[14]=(b*c-u*A-p*g)*N,t[15]=(s*A-o*c+h*g)*N,t):null}},56508:function(D,O,t){var l=t(36635);D.exports=S;function S(i,C,w,v){var m,a,n,s,o,h,f,u,b,p,E=C[0],g=C[1],c=C[2],x=v[0],A=v[1],M=v[2],R=w[0],T=w[1],L=w[2];return Math.abs(E-R)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(c-L)<1e-6?l(i):(f=E-R,u=g-T,b=c-L,p=1/Math.sqrt(f*f+u*u+b*b),f*=p,u*=p,b*=p,m=A*b-M*u,a=M*f-x*b,n=x*u-A*f,p=Math.sqrt(m*m+a*a+n*n),p?(p=1/p,m*=p,a*=p,n*=p):(m=0,a=0,n=0),s=u*n-b*a,o=b*m-f*n,h=f*a-u*m,p=Math.sqrt(s*s+o*o+h*h),p?(p=1/p,s*=p,o*=p,h*=p):(s=0,o=0,h=0),i[0]=m,i[1]=s,i[2]=f,i[3]=0,i[4]=a,i[5]=o,i[6]=u,i[7]=0,i[8]=n,i[9]=h,i[10]=b,i[11]=0,i[12]=-(m*E+a*g+n*c),i[13]=-(s*E+o*g+h*c),i[14]=-(f*E+u*g+b*c),i[15]=1,i)}},80944:function(D){D.exports=O;function O(t,l,S){var i=l[0],C=l[1],w=l[2],v=l[3],m=l[4],a=l[5],n=l[6],s=l[7],o=l[8],h=l[9],f=l[10],u=l[11],b=l[12],p=l[13],E=l[14],g=l[15],c=S[0],x=S[1],A=S[2],M=S[3];return t[0]=c*i+x*m+A*o+M*b,t[1]=c*C+x*a+A*h+M*p,t[2]=c*w+x*n+A*f+M*E,t[3]=c*v+x*s+A*u+M*g,c=S[4],x=S[5],A=S[6],M=S[7],t[4]=c*i+x*m+A*o+M*b,t[5]=c*C+x*a+A*h+M*p,t[6]=c*w+x*n+A*f+M*E,t[7]=c*v+x*s+A*u+M*g,c=S[8],x=S[9],A=S[10],M=S[11],t[8]=c*i+x*m+A*o+M*b,t[9]=c*C+x*a+A*h+M*p,t[10]=c*w+x*n+A*f+M*E,t[11]=c*v+x*s+A*u+M*g,c=S[12],x=S[13],A=S[14],M=S[15],t[12]=c*i+x*m+A*o+M*b,t[13]=c*C+x*a+A*h+M*p,t[14]=c*w+x*n+A*f+M*E,t[15]=c*v+x*s+A*u+M*g,t}},97688:function(D){D.exports=O;function O(t,l,S,i,C,w,v){var m=1/(l-S),a=1/(i-C),n=1/(w-v);return t[0]=-2*m,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*n,t[11]=0,t[12]=(l+S)*m,t[13]=(C+i)*a,t[14]=(v+w)*n,t[15]=1,t}},51296:function(D){D.exports=O;function O(t,l,S,i,C){var w=1/Math.tan(l/2),v=1/(i-C);return t[0]=w/S,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=w,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(C+i)*v,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*C*i*v,t[15]=0,t}},63688:function(D){D.exports=O;function O(t,l,S,i){var C=Math.tan(l.upDegrees*Math.PI/180),w=Math.tan(l.downDegrees*Math.PI/180),v=Math.tan(l.leftDegrees*Math.PI/180),m=Math.tan(l.rightDegrees*Math.PI/180),a=2/(v+m),n=2/(C+w);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=0,t[7]=0,t[8]=-((v-m)*a*.5),t[9]=(C-w)*n*.5,t[10]=i/(S-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*S/(S-i),t[15]=0,t}},30016:function(D){D.exports=O;function O(t,l,S,i){var C=i[0],w=i[1],v=i[2],m=Math.sqrt(C*C+w*w+v*v),a,n,s,o,h,f,u,b,p,E,g,c,x,A,M,R,T,L,P,d,k,I,N,B;return Math.abs(m)<1e-6?null:(m=1/m,C*=m,w*=m,v*=m,a=Math.sin(S),n=Math.cos(S),s=1-n,o=l[0],h=l[1],f=l[2],u=l[3],b=l[4],p=l[5],E=l[6],g=l[7],c=l[8],x=l[9],A=l[10],M=l[11],R=C*C*s+n,T=w*C*s+v*a,L=v*C*s-w*a,P=C*w*s-v*a,d=w*w*s+n,k=v*w*s+C*a,I=C*v*s+w*a,N=w*v*s-C*a,B=v*v*s+n,t[0]=o*R+b*T+c*L,t[1]=h*R+p*T+x*L,t[2]=f*R+E*T+A*L,t[3]=u*R+g*T+M*L,t[4]=o*P+b*d+c*k,t[5]=h*P+p*d+x*k,t[6]=f*P+E*d+A*k,t[7]=u*P+g*d+M*k,t[8]=o*I+b*N+c*B,t[9]=h*I+p*N+x*B,t[10]=f*I+E*N+A*B,t[11]=u*I+g*N+M*B,l!==t&&(t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t)}},15456:function(D){D.exports=O;function O(t,l,S){var i=Math.sin(S),C=Math.cos(S),w=l[4],v=l[5],m=l[6],a=l[7],n=l[8],s=l[9],o=l[10],h=l[11];return l!==t&&(t[0]=l[0],t[1]=l[1],t[2]=l[2],t[3]=l[3],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t[4]=w*C+n*i,t[5]=v*C+s*i,t[6]=m*C+o*i,t[7]=a*C+h*i,t[8]=n*C-w*i,t[9]=s*C-v*i,t[10]=o*C-m*i,t[11]=h*C-a*i,t}},64840:function(D){D.exports=O;function O(t,l,S){var i=Math.sin(S),C=Math.cos(S),w=l[0],v=l[1],m=l[2],a=l[3],n=l[8],s=l[9],o=l[10],h=l[11];return l!==t&&(t[4]=l[4],t[5]=l[5],t[6]=l[6],t[7]=l[7],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t[0]=w*C-n*i,t[1]=v*C-s*i,t[2]=m*C-o*i,t[3]=a*C-h*i,t[8]=w*i+n*C,t[9]=v*i+s*C,t[10]=m*i+o*C,t[11]=a*i+h*C,t}},4192:function(D){D.exports=O;function O(t,l,S){var i=Math.sin(S),C=Math.cos(S),w=l[0],v=l[1],m=l[2],a=l[3],n=l[4],s=l[5],o=l[6],h=l[7];return l!==t&&(t[8]=l[8],t[9]=l[9],t[10]=l[10],t[11]=l[11],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t[0]=w*C+n*i,t[1]=v*C+s*i,t[2]=m*C+o*i,t[3]=a*C+h*i,t[4]=n*C-w*i,t[5]=s*C-v*i,t[6]=o*C-m*i,t[7]=h*C-a*i,t}},68152:function(D){D.exports=O;function O(t,l,S){var i=S[0],C=S[1],w=S[2];return t[0]=l[0]*i,t[1]=l[1]*i,t[2]=l[2]*i,t[3]=l[3]*i,t[4]=l[4]*C,t[5]=l[5]*C,t[6]=l[6]*C,t[7]=l[7]*C,t[8]=l[8]*w,t[9]=l[9]*w,t[10]=l[10]*w,t[11]=l[11]*w,t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15],t}},89412:function(D){D.exports=O;function O(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}},35176:function(D){D.exports=O;function O(t,l,S){var i=S[0],C=S[1],w=S[2],v,m,a,n,s,o,h,f,u,b,p,E;return l===t?(t[12]=l[0]*i+l[4]*C+l[8]*w+l[12],t[13]=l[1]*i+l[5]*C+l[9]*w+l[13],t[14]=l[2]*i+l[6]*C+l[10]*w+l[14],t[15]=l[3]*i+l[7]*C+l[11]*w+l[15]):(v=l[0],m=l[1],a=l[2],n=l[3],s=l[4],o=l[5],h=l[6],f=l[7],u=l[8],b=l[9],p=l[10],E=l[11],t[0]=v,t[1]=m,t[2]=a,t[3]=n,t[4]=s,t[5]=o,t[6]=h,t[7]=f,t[8]=u,t[9]=b,t[10]=p,t[11]=E,t[12]=v*i+s*C+u*w+l[12],t[13]=m*i+o*C+b*w+l[13],t[14]=a*i+h*C+p*w+l[14],t[15]=n*i+f*C+E*w+l[15]),t}},86520:function(D){D.exports=O;function O(t,l){if(t===l){var S=l[1],i=l[2],C=l[3],w=l[6],v=l[7],m=l[11];t[1]=l[4],t[2]=l[8],t[3]=l[12],t[4]=S,t[6]=l[9],t[7]=l[13],t[8]=i,t[9]=w,t[11]=l[14],t[12]=C,t[13]=v,t[14]=m}else t[0]=l[0],t[1]=l[4],t[2]=l[8],t[3]=l[12],t[4]=l[1],t[5]=l[5],t[6]=l[9],t[7]=l[13],t[8]=l[2],t[9]=l[6],t[10]=l[10],t[11]=l[14],t[12]=l[3],t[13]=l[7],t[14]=l[11],t[15]=l[15];return t}},23352:function(D,O,t){var l=t(42771),S=t(55616),i=t(28624),C=t(55212),w=t(60463),v=t(72160),m=t(33888),a=t(14144),n=t(51160),s=t(58908),o=t(65819),h=t(23464),f=t(63768),u=t(50896),b=t(71920),p=t(47520),E=t(308),g=E.nextPow2,c=new w,x=!1;if(document.body){var A=document.body.appendChild(document.createElement("div"));A.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(A).fontStretch&&(x=!0),document.body.removeChild(A)}var M=function(L){R(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=C(L),this.shader=c.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),c.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(s(L)?L:{})};M.prototype.createShader=function(){var L=this.regl,P=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` + */function H(Ae,be){if(Ae===be)return 0;for(var Ie=Ae.length,Ue=be.length,Ne=0,ze=Math.min(Ie,Ue);Ne"u"?[]:new Uint8Array(256),i=0;i>2],s+=l[(m[a]&3)<<4|m[a+1]>>4],s+=l[(m[a+1]&15)<<2|m[a+2]>>6],s+=l[m[a+2]&63];return n%3===2?s=s.substring(0,s.length-1)+"=":n%3===1&&(s=s.substring(0,s.length-2)+"=="),s},w=function(v){var m=v.length*.75,a=v.length,n,s=0,o,h,f,u;v[v.length-1]==="="&&(m--,v[v.length-2]==="="&&m--);var b=new ArrayBuffer(m),p=new Uint8Array(b);for(n=0;n>4,p[s++]=(h&15)<<4|f>>2,p[s++]=(f&3)<<6|u&63;return b}},59968:function(D,O){O.byteLength=m,O.toByteArray=n,O.fromByteArray=h;for(var t=[],l=[],S=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,w=i.length;C0)throw new Error("Invalid string. Length must be a multiple of 4");var b=f.indexOf("=");b===-1&&(b=u);var p=b===u?0:4-b%4;return[b,p]}function m(f){var u=v(f),b=u[0],p=u[1];return(b+p)*3/4-p}function a(f,u,b){return(u+b)*3/4-b}function n(f){var u,b=v(f),p=b[0],E=b[1],g=new S(a(f,p,E)),c=0,y=E>0?p-4:p,A;for(A=0;A>16&255,g[c++]=u>>8&255,g[c++]=u&255;return E===2&&(u=l[f.charCodeAt(A)]<<2|l[f.charCodeAt(A+1)]>>4,g[c++]=u&255),E===1&&(u=l[f.charCodeAt(A)]<<10|l[f.charCodeAt(A+1)]<<4|l[f.charCodeAt(A+2)]>>2,g[c++]=u>>8&255,g[c++]=u&255),g}function s(f){return t[f>>18&63]+t[f>>12&63]+t[f>>6&63]+t[f&63]}function o(f,u,b){for(var p,E=[],g=u;gy?y:c+g));return p===1?(u=f[b-1],E.push(t[u>>2]+t[u<<4&63]+"==")):p===2&&(u=(f[b-2]<<8)+f[b-1],E.push(t[u>>10]+t[u>>4&63]+t[u<<2&63]+"=")),E.join("")}},64928:function(D){function O(w,v,m,a,n){for(var s=n+1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f>=0?(s=o,n=o-1):a=o+1}return s}function t(w,v,m,a,n){for(var s=n+1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f>0?(s=o,n=o-1):a=o+1}return s}function l(w,v,m,a,n){for(var s=a-1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f<0?(s=o,a=o+1):n=o-1}return s}function S(w,v,m,a,n){for(var s=a-1;a<=n;){var o=a+n>>>1,h=w[o],f=m!==void 0?m(h,v):h-v;f<=0?(s=o,a=o+1):n=o-1}return s}function i(w,v,m,a,n){for(;a<=n;){var s=a+n>>>1,o=w[s],h=m!==void 0?m(o,v):o-v;if(h===0)return s;h<=0?a=s+1:n=s-1}return-1}function C(w,v,m,a,n,s){return typeof m=="function"?s(w,v,m,a===void 0?0:a|0,n===void 0?w.length-1:n|0):s(w,v,void 0,m===void 0?0:m|0,a===void 0?w.length-1:a|0)}D.exports={ge:function(w,v,m,a,n){return C(w,v,m,a,n,O)},gt:function(w,v,m,a,n){return C(w,v,m,a,n,t)},lt:function(w,v,m,a,n){return C(w,v,m,a,n,l)},le:function(w,v,m,a,n){return C(w,v,m,a,n,S)},eq:function(w,v,m,a,n){return C(w,v,m,a,n,i)}}},308:function(D,O){"use restrict";var t=32;O.INT_BITS=t,O.INT_MAX=2147483647,O.INT_MIN=-1<0)-(i<0)},O.abs=function(i){var C=i>>t-1;return(i^C)-C},O.min=function(i,C){return C^(i^C)&-(i65535)<<4,i>>>=C,w=(i>255)<<3,i>>>=w,C|=w,w=(i>15)<<2,i>>>=w,C|=w,w=(i>3)<<1,i>>>=w,C|=w,C|i>>1},O.log10=function(i){return i>=1e9?9:i>=1e8?8:i>=1e7?7:i>=1e6?6:i>=1e5?5:i>=1e4?4:i>=1e3?3:i>=100?2:i>=10?1:0},O.popCount=function(i){return i=i-(i>>>1&1431655765),i=(i&858993459)+(i>>>2&858993459),(i+(i>>>4)&252645135)*16843009>>>24};function l(i){var C=32;return i&=-i,i&&C--,i&65535&&(C-=16),i&16711935&&(C-=8),i&252645135&&(C-=4),i&858993459&&(C-=2),i&1431655765&&(C-=1),C}O.countTrailingZeros=l,O.nextPow2=function(i){return i+=i===0,--i,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i+1},O.prevPow2=function(i){return i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i-(i>>>1)},O.parity=function(i){return i^=i>>>16,i^=i>>>8,i^=i>>>4,i&=15,27030>>>i&1};var S=new Array(256);(function(i){for(var C=0;C<256;++C){var w=C,v=C,m=7;for(w>>>=1;w;w>>>=1)v<<=1,v|=w&1,--m;i[C]=v<>>8&255]<<16|S[i>>>16&255]<<8|S[i>>>24&255]},O.interleave2=function(i,C){return i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,C&=65535,C=(C|C<<8)&16711935,C=(C|C<<4)&252645135,C=(C|C<<2)&858993459,C=(C|C<<1)&1431655765,i|C<<1},O.deinterleave2=function(i,C){return i=i>>>C&1431655765,i=(i|i>>>1)&858993459,i=(i|i>>>2)&252645135,i=(i|i>>>4)&16711935,i=(i|i>>>16)&65535,i<<16>>16},O.interleave3=function(i,C,w){return i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,C&=1023,C=(C|C<<16)&4278190335,C=(C|C<<8)&251719695,C=(C|C<<4)&3272356035,C=(C|C<<2)&1227133513,i|=C<<1,w&=1023,w=(w|w<<16)&4278190335,w=(w|w<<8)&251719695,w=(w|w<<4)&3272356035,w=(w|w<<2)&1227133513,i|w<<2},O.deinterleave3=function(i,C){return i=i>>>C&1227133513,i=(i|i>>>2)&3272356035,i=(i|i>>>4)&251719695,i=(i|i>>>8)&4278190335,i=(i|i>>>16)&1023,i<<22>>22},O.nextCombination=function(i){var C=i|i-1;return C+1|(~C&-~C)-1>>>l(i)+1}},29620:function(D,O,t){var l=t(32420);D.exports=i;var S=1e20;function i(v,m){m||(m={});var a=m.cutoff==null?.25:m.cutoff,n=m.radius==null?8:m.radius,s=m.channel||0,o,h,f,u,b,p,E,g,c,y,A;if(ArrayBuffer.isView(v)||Array.isArray(v)){if(!m.width||!m.height)throw Error("For raw data width and height should be provided by options");o=m.width,h=m.height,u=v,m.stride?p=m.stride:p=Math.floor(v.length/o/h)}else window.HTMLCanvasElement&&v instanceof window.HTMLCanvasElement?(g=v,E=g.getContext("2d"),o=g.width,h=g.height,c=E.getImageData(0,0,o,h),u=c.data,p=4):window.CanvasRenderingContext2D&&v instanceof window.CanvasRenderingContext2D?(g=v.canvas,E=v,o=g.width,h=g.height,c=E.getImageData(0,0,o,h),u=c.data,p=4):window.ImageData&&v instanceof window.ImageData&&(c=v,o=v.width,h=v.height,u=c.data,p=4);if(f=Math.max(o,h),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(b=u,u=Array(o*h),y=0,A=b.length;y-1?S(m):m}},57916:function(D,O,t){var l=t(8844),S=t(53664),i=t(14500),C=S("%TypeError%"),w=S("%Function.prototype.apply%"),v=S("%Function.prototype.call%"),m=S("%Reflect.apply%",!0)||l.call(v,w),a=S("%Object.defineProperty%",!0),n=S("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}D.exports=function(h){if(typeof h!="function")throw new C("a function is required");var f=m(l,v,arguments);return i(f,1+n(0,h.length-(arguments.length-1)),!0)};var s=function(){return m(l,w,arguments)};a?a(D.exports,"apply",{value:s}):D.exports.apply=s},32420:function(D){D.exports=O;function O(t,l,S){return lS?S:t:tl?l:t}},3808:function(D,O,t){var l=t(32420);D.exports=S,D.exports.to=S,D.exports.from=i;function S(C,w){w==null&&(w=!0);var v=C[0],m=C[1],a=C[2],n=C[3];n==null&&(n=w?1:255),w&&(v*=255,m*=255,a*=255,n*=255),v=l(v,0,255)&255,m=l(m,0,255)&255,a=l(a,0,255)&255,n=l(n,0,255)&255;var s=v*16777216+(m<<16)+(a<<8)+n;return s}function i(C,w){C=+C;var v=C>>>24,m=(C&16711680)>>>16,a=(C&65280)>>>8,n=C&255;return w===!1?[v,m,a,n]:[v/255,m/255,a/255,n/255]}},17592:function(D){D.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(D,O,t){var l=t(96824),S=t(32420),i=t(72512);D.exports=function(v,m){(m==="float"||!m)&&(m="array"),m==="uint"&&(m="uint8"),m==="uint_clamped"&&(m="uint8_clamped");var a=i(m),n=new a(4),s=m!=="uint8"&&m!=="uint8_clamped";return(!v.length||typeof v=="string")&&(v=l(v),v[0]/=255,v[1]/=255,v[2]/=255),C(v)?(n[0]=v[0],n[1]=v[1],n[2]=v[2],n[3]=v[3]!=null?v[3]:255,s&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(s?(n[0]=v[0],n[1]=v[1],n[2]=v[2],n[3]=v[3]!=null?v[3]:1):(n[0]=S(Math.floor(v[0]*255),0,255),n[1]=S(Math.floor(v[1]*255),0,255),n[2]=S(Math.floor(v[2]*255),0,255),n[3]=v[3]==null?255:S(Math.floor(v[3]*255),0,255)),n)};function C(w){return!!(w instanceof Uint8Array||w instanceof Uint8ClampedArray||Array.isArray(w)&&(w[0]>1||w[0]===0)&&(w[1]>1||w[1]===0)&&(w[2]>1||w[2]===0)&&(!w[3]||w[3]>1))}},96824:function(D,O,t){var l=t(95532),S=t(53576),i=t(32420);D.exports=function(w){var v,m=l(w);return m.space?(v=Array(3),v[0]=i(m.values[0],0,255),v[1]=i(m.values[1],0,255),v[2]=i(m.values[2],0,255),m.space[0]==="h"&&(v=S.rgb(v)),v.push(i(m.alpha,0,1)),v):[]}},95532:function(D,O,t){var l=t(17592);D.exports=i;var S={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function i(C){var w,v=[],m=1,a;if(typeof C=="string")if(C=C.toLowerCase(),l[C])v=l[C].slice(),a="rgb";else if(C==="transparent")m=0,a="rgb",v=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(C)){var n=C.slice(1),s=n.length,o=s<=4;m=1,o?(v=[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)],s===4&&(m=parseInt(n[3]+n[3],16)/255)):(v=[parseInt(n[0]+n[1],16),parseInt(n[2]+n[3],16),parseInt(n[4]+n[5],16)],s===8&&(m=parseInt(n[6]+n[7],16)/255)),v[0]||(v[0]=0),v[1]||(v[1]=0),v[2]||(v[2]=0),a="rgb"}else if(w=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(C)){var h=w[1],f=h==="rgb",n=h.replace(/a$/,"");a=n;var s=n==="cmyk"?4:n==="gray"?1:3;v=w[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,E){if(/%$/.test(p))return E===s?parseFloat(p)/100:n==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(n[E]==="h"){if(/deg$/.test(p))return parseFloat(p);if(S[p]!==void 0)return S[p]}return parseFloat(p)}),h===n&&v.push(1),m=f||v[s]===void 0?1:v[s],v=v.slice(0,s)}else C.length>10&&/[0-9](?:\s|\/)/.test(C)&&(v=C.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),a=C.match(/([a-z])/ig).join("").toLowerCase());else isNaN(C)?Array.isArray(C)||C.length?(v=[C[0],C[1],C[2]],a="rgb",m=C.length===4?C[3]:1):C instanceof Object&&(C.r!=null||C.red!=null||C.R!=null?(a="rgb",v=[C.r||C.red||C.R||0,C.g||C.green||C.G||0,C.b||C.blue||C.B||0]):(a="hsl",v=[C.h||C.hue||C.H||0,C.s||C.saturation||C.S||0,C.l||C.lightness||C.L||C.b||C.brightness]),m=C.a||C.alpha||C.opacity||1,C.opacity!=null&&(m/=100)):(a="rgb",v=[C>>>16,(C&65280)>>>8,C&255]);return{space:a,values:v,alpha:m}}},53576:function(D,O,t){var l=t(19336);D.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(S){var i=S[0]/360,C=S[1]/100,w=S[2]/100,v,m,a,n,s;if(C===0)return s=w*255,[s,s,s];w<.5?m=w*(1+C):m=w+C-w*C,v=2*w-m,n=[0,0,0];for(var o=0;o<3;o++)a=i+.3333333333333333*-(o-1),a<0?a++:a>1&&a--,6*a<1?s=v+(m-v)*6*a:2*a<1?s=m:3*a<2?s=v+(m-v)*(.6666666666666666-a)*6:s=v,n[o]=s*255;return n}},l.hsl=function(S){var i=S[0]/255,C=S[1]/255,w=S[2]/255,v=Math.min(i,C,w),m=Math.max(i,C,w),a=m-v,n,s,o;return m===v?n=0:i===m?n=(C-w)/a:C===m?n=2+(w-i)/a:w===m&&(n=4+(i-C)/a),n=Math.min(n*60,360),n<0&&(n+=360),o=(v+m)/2,m===v?s=0:o<=.5?s=a/(m+v):s=a/(2-m-v),[n,s*100,o*100]}},19336:function(D){D.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(D){D.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(D,O,t){D.exports={parse:t(46416),stringify:t(49395)}},8744:function(D,O,t){var l=t(30584);D.exports={isSize:function(i){return/^[\d\.]/.test(i)||i.indexOf("/")!==-1||l.indexOf(i)!==-1}}},46416:function(D,O,t){var l=t(92384),S=t(68194),i=t(3748),C=t(2904),w=t(47916),v=t(7294),m=t(39956),a=t(8744).isSize;D.exports=s;var n=s.cache={};function s(h){if(typeof h!="string")throw new Error("Font argument must be a string.");if(n[h])return n[h];if(h==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(h)!==-1)return n[h]={system:h};for(var f={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},u=m(h,/\s+/),b;b=u.shift();){if(S.indexOf(b)!==-1)return["style","variant","weight","stretch"].forEach(function(E){f[E]=b}),n[h]=f;if(w.indexOf(b)!==-1){f.style=b;continue}if(b==="normal"||b==="small-caps"){f.variant=b;continue}if(v.indexOf(b)!==-1){f.stretch=b;continue}if(C.indexOf(b)!==-1){f.weight=b;continue}if(a(b)){var p=m(b,"/");if(f.size=p[0],p[1]!=null?f.lineHeight=o(p[1]):u[0]==="/"&&(u.shift(),f.lineHeight=o(u.shift())),!u.length)throw new Error("Missing required font-family.");return f.family=m(u.join(" "),/\s*,\s*/).map(l),n[h]=f}throw new Error("Unknown or unsupported font token: "+b)}throw new Error("Missing required font-size.")}function o(h){var f=parseFloat(h);return f.toString()===h?f:h}},49395:function(D,O,t){var l=t(55616),S=t(8744).isSize,i=h(t(68194)),C=h(t(3748)),w=h(t(2904)),v=h(t(47916)),m=h(t(7294)),a={normal:1,"small-caps":1},n={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},s={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};D.exports=function(u){if(u=l(u,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),u.system)return u.system&&o(u.system,C),u.system;if(o(u.style,v),o(u.variant,a),o(u.weight,w),o(u.stretch,m),u.size==null&&(u.size=s.size),typeof u.size=="number"&&(u.size+="px"),!S)throw Error("Bad size value `"+u.size+"`");u.family||(u.family=s.family),Array.isArray(u.family)&&(u.family.length||(u.family=[s.family]),u.family=u.family.map(function(p){return n[p]?p:'"'+p+'"'}).join(", "));var b=[];return b.push(u.style),u.variant!==u.style&&b.push(u.variant),u.weight!==u.variant&&u.weight!==u.style&&b.push(u.weight),u.stretch!==u.weight&&u.stretch!==u.variant&&u.stretch!==u.style&&b.push(u.stretch),b.push(u.size+(u.lineHeight==null||u.lineHeight==="normal"||u.lineHeight+""=="1"?"":"/"+u.lineHeight)),b.push(u.family),b.filter(Boolean).join(" ")};function o(f,u){if(f&&!u[f]&&!i[f])throw Error("Unknown keyword `"+f+"`");return f}function h(f){for(var u={},b=0;bh?1:o>=h?0:NaN}function S(o){return o.length===1&&(o=i(o)),{left:function(h,f,u,b){for(u==null&&(u=0),b==null&&(b=h.length);u>>1;o(h[p],f)<0?u=p+1:b=p}return u},right:function(h,f,u,b){for(u==null&&(u=0),b==null&&(b=h.length);u>>1;o(h[p],f)>0?b=p:u=p+1}return u}}}function i(o){return function(h,f){return l(o(h),f)}}S(l);function C(o,h){var f=o.length,u=-1,b,p;if(h==null){for(;++u=b)for(p=b;++up&&(p=b)}else for(;++u=b)for(p=b;++up&&(p=b);return p}function w(o){return o===null?NaN:+o}function v(o,h){var f=o.length,u=f,b=-1,p,E=0;if(h==null)for(;++b=0;)for(E=o[h],f=E.length;--f>=0;)p[--b]=E[f];return p}function a(o,h){var f=o.length,u=-1,b,p;if(h==null){for(;++u=b)for(p=b;++ub&&(p=b)}else for(;++u=b)for(p=b;++ub&&(p=b);return p}function n(o,h,f){o=+o,h=+h,f=(b=arguments.length)<2?(h=o,o=0,1):b<3?1:+f;for(var u=-1,b=Math.max(0,Math.ceil((h-o)/f))|0,p=new Array(b);++u=h.length)return u!=null&&c.sort(u),b!=null?b(c):c;for(var R=-1,T=c.length,L=h[y++],P,d,k=C(),I,N=A();++Rh.length)return c;var A,M=f[y-1];return b!=null&&y>=h.length?A=c.entries():(A=[],c.each(function(R,T){A.push({key:T,values:g(R,y)})})),M!=null?A.sort(function(R,T){return M(R.key,T.key)}):A}return p={object:function(c){return E(c,0,v,m)},map:function(c){return E(c,0,a,n)},entries:function(c){return g(E(c,0,a,n),0)},key:function(c){return h.push(c),p},sortKeys:function(c){return f[h.length-1]=c,p},sortValues:function(c){return u=c,p},rollup:function(c){return b=c,p}}}function v(){return{}}function m(h,f,u){h[f]=u}function a(){return C()}function n(h,f,u){h.set(f,u)}function s(){}var o=C.prototype;s.prototype={constructor:s,has:o.has,add:function(h){return h+="",this[l+h]=h,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each}},49812:function(D,O,t){t.r(O),t.d(O,{forceCenter:function(){return l},forceCollide:function(){return k},forceLink:function(){return G},forceManyBody:function(){return $e},forceRadial:function(){return st},forceSimulation:function(){return ze},forceX:function(){return vt},forceY:function(){return at}});function l(nt,mt){var rt;nt==null&&(nt=0),mt==null&&(mt=0);function lt(){var dt,wt=rt.length,et,Be=0,Ye=0;for(dt=0;dt=(Fe=(Be+Ze)/2))?Be=Fe:Ze=Fe,(Ve=rt>=(Me=(Ye+We)/2))?Ye=Me:We=Me,dt=wt,!(wt=wt[Je=Ve<<1|Pe]))return dt[Je]=et,nt;if(we=+nt._x.call(null,wt.data),Re=+nt._y.call(null,wt.data),mt===we&&rt===Re)return et.next=wt,dt?dt[Je]=et:nt._root=et,nt;do dt=dt?dt[Je]=new Array(4):nt._root=new Array(4),(Pe=mt>=(Fe=(Be+Ze)/2))?Be=Fe:Ze=Fe,(Ve=rt>=(Me=(Ye+We)/2))?Ye=Me:We=Me;while((Je=Ve<<1|Pe)===(ot=(Re>=Me)<<1|we>=Fe));return dt[ot]=wt,dt[Je]=et,nt}function v(nt){var mt,rt,lt=nt.length,dt,wt,et=new Array(lt),Be=new Array(lt),Ye=1/0,Ze=1/0,We=-1/0,Fe=-1/0;for(rt=0;rtWe&&(We=dt),wtFe&&(Fe=wt));if(Ye>We||Ze>Fe)return this;for(this.cover(Ye,Ze).cover(We,Fe),rt=0;rtnt||nt>=dt||lt>mt||mt>=wt;)switch(Ze=(mtWe||(Be=Re.y0)>Fe||(Ye=Re.x1)=Je)<<1|nt>=Ve)&&(Re=Me[Me.length-1],Me[Me.length-1]=Me[Me.length-1-Pe],Me[Me.length-1-Pe]=Re)}else{var ot=nt-+this._x.call(null,we.data),yt=mt-+this._y.call(null,we.data),ut=ot*ot+yt*yt;if(ut=(Me=(et+Ye)/2))?et=Me:Ye=Me,(Pe=Fe>=(we=(Be+Ze)/2))?Be=we:Ze=we,mt=rt,!(rt=rt[Ve=Pe<<1|Re]))return this;if(!rt.length)break;(mt[Ve+1&3]||mt[Ve+2&3]||mt[Ve+3&3])&&(lt=mt,Je=Ve)}for(;rt.data!==nt;)if(dt=rt,!(rt=rt.next))return this;return(wt=rt.next)&&delete rt.next,dt?(wt?dt.next=wt:delete dt.next,this):mt?(wt?mt[Ve]=wt:delete mt[Ve],(rt=mt[0]||mt[1]||mt[2]||mt[3])&&rt===(mt[3]||mt[2]||mt[1]||mt[0])&&!rt.length&&(lt?lt[Je]=rt:this._root=rt),this):(this._root=wt,this)}function f(nt){for(var mt=0,rt=nt.length;mtFe.index){var dr=Me-xt.x-xt.vx,Tt=we-xt.y-xt.vy,Kt=dr*dr+Tt*Tt;KtMe+Xt||Itwe+Xt||VtYe.r&&(Ye.r=Ye[Ze].r)}function Be(){if(mt){var Ye,Ze=mt.length,We;for(rt=new Array(Ze),Ye=0;Ye=0&&(lt=rt.slice(dt+1),rt=rt.slice(0,dt)),rt&&!mt.hasOwnProperty(rt))throw new Error("unknown type: "+rt);return{type:rt,name:lt}})}W.prototype=H.prototype={constructor:W,on:function(nt,mt){var rt=this._,lt=V(nt+"",rt),dt,wt=-1,et=lt.length;if(arguments.length<2){for(;++wt0)for(var rt=new Array(dt),lt=0,dt,wt;lt=0&&nt._call.call(null,mt),nt=nt._next;--ae}function Se(){ne=(K=re.now())+ce,ae=ie=0;try{Ee()}finally{ae=0,Te(),ne=0}}function ke(){var nt=re.now(),mt=nt-K;mt>Q&&(ce-=mt,K=nt)}function Te(){for(var nt,mt=J,rt,lt=1/0;mt;)mt._call?(lt>mt._time&&(lt=mt._time),nt=mt,mt=mt._next):(rt=mt._next,mt._next=null,mt=nt?nt._next=rt:J=rt);oe=nt,Ae(lt)}function Ae(nt){if(!ae){ie&&(ie=clearTimeout(ie));var mt=nt-ne;mt>24?(nt<1/0&&(ie=setTimeout(Se,nt-re.now()-ce)),fe&&(fe=clearInterval(fe))):(fe||(K=re.now(),fe=setInterval(ke,Q)),ae=1,ee(Se))}}function be(nt){return nt.x}function Ie(nt){return nt.y}var Ue=10,Ne=Math.PI*(3-Math.sqrt(5));function ze(nt){var mt,rt=1,lt=.001,dt=1-Math.pow(lt,1/300),wt=0,et=.6,Be=(0,I.kH)(),Ye=xe(We),Ze=q("tick","end");nt==null&&(nt=[]);function We(){Fe(),Ze.call("tick",mt),rt1?(Pe==null?Be.remove(Re):Be.set(Re,we(Pe)),mt):Be.get(Re)},find:function(Re,Pe,Ve){var Je=0,ot=nt.length,yt,ut,It,Vt,xt;for(Ve==null?Ve=1/0:Ve*=Ve,Je=0;Je1?(Ze.on(Re,Pe),mt):Ze.on(Re)}}}function $e(){var nt,mt,rt,lt=S(-30),dt,wt=1,et=1/0,Be=.81;function Ye(Me){var we,Re=nt.length,Pe=M(nt,be,Ie).visitAfter(We);for(rt=Me,we=0;we=et)return;(Me.data!==mt||Me.next)&&(Ve===0&&(Ve=i(),yt+=Ve*Ve),Je===0&&(Je=i(),yt+=Je*Je),yt=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function S(A,M){if((R=(A=M?A.toExponential(M-1):A.toExponential()).indexOf("e"))<0)return null;var R,T=A.slice(0,R);return[T.length>1?T[0]+T.slice(2):T,+A.slice(R+1)]}function i(A){return A=S(Math.abs(A)),A?A[1]:NaN}function C(A,M){return function(R,T){for(var L=R.length,P=[],d=0,k=A[0],I=0;L>0&&k>0&&(I+k+1>T&&(k=Math.max(1,T-I)),P.push(R.substring(L-=k,L+k)),!((I+=k+1)>T));)k=A[d=(d+1)%A.length];return P.reverse().join(M)}}function w(A){return function(M){return M.replace(/[0-9]/g,function(R){return A[+R]})}}var v=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m(A){if(!(M=v.exec(A)))throw new Error("invalid format: "+A);var M;return new a({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}m.prototype=a.prototype;function a(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function n(A){e:for(var M=A.length,R=1,T=-1,L;R0&&(T=0);break}return T>0?A.slice(0,T)+A.slice(L+1):A}var s;function o(A,M){var R=S(A,M);if(!R)return A+"";var T=R[0],L=R[1],P=L-(s=Math.max(-8,Math.min(8,Math.floor(L/3)))*3)+1,d=T.length;return P===d?T:P>d?T+new Array(P-d+1).join("0"):P>0?T.slice(0,P)+"."+T.slice(P):"0."+new Array(1-P).join("0")+S(A,Math.max(0,M+P-1))[0]}function h(A,M){var R=S(A,M);if(!R)return A+"";var T=R[0],L=R[1];return L<0?"0."+new Array(-L).join("0")+T:T.length>L+1?T.slice(0,L+1)+"."+T.slice(L+1):T+new Array(L-T.length+2).join("0")}var f={"%":function(A,M){return(A*100).toFixed(M)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:l,e:function(A,M){return A.toExponential(M)},f:function(A,M){return A.toFixed(M)},g:function(A,M){return A.toPrecision(M)},o:function(A){return Math.round(A).toString(8)},p:function(A,M){return h(A*100,M)},r:h,s:o,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function u(A){return A}var b=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function E(A){var M=A.grouping===void 0||A.thousands===void 0?u:C(b.call(A.grouping,Number),A.thousands+""),R=A.currency===void 0?"":A.currency[0]+"",T=A.currency===void 0?"":A.currency[1]+"",L=A.decimal===void 0?".":A.decimal+"",P=A.numerals===void 0?u:w(b.call(A.numerals,String)),d=A.percent===void 0?"%":A.percent+"",k=A.minus===void 0?"-":A.minus+"",I=A.nan===void 0?"NaN":A.nan+"";function N(G){G=m(G);var U=G.fill,H=G.align,W=G.sign,V=G.symbol,$=G.zero,Z=G.width,q=G.comma,ae=G.precision,ie=G.trim,fe=G.type;fe==="n"?(q=!0,fe="g"):f[fe]||(ae===void 0&&(ae=12),ie=!0,fe="g"),($||U==="0"&&H==="=")&&($=!0,U="0",H="=");var Q=V==="$"?R:V==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",J=V==="$"?T:/[%p]/.test(fe)?d:"",oe=f[fe],K=/[defgprs%]/.test(fe);ae=ae===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,ae)):Math.max(0,Math.min(20,ae));function ne(ce){var re=Q,ee=J,de,le,he;if(fe==="c")ee=oe(ce)+ee,ce="";else{ce=+ce;var xe=ce<0||1/ce<0;if(ce=isNaN(ce)?I:oe(Math.abs(ce),ae),ie&&(ce=n(ce)),xe&&+ce==0&&W!=="+"&&(xe=!1),re=(xe?W==="("?W:k:W==="-"||W==="("?"":W)+re,ee=(fe==="s"?p[8+s/3]:"")+ee+(xe&&W==="("?")":""),K){for(de=-1,le=ce.length;++dehe||he>57){ee=(he===46?L+ce.slice(de+1):ce.slice(de))+ee,ce=ce.slice(0,de);break}}}q&&!$&&(ce=M(ce,1/0));var Ee=re.length+ce.length+ee.length,Se=Ee>1)+re+ce+ee+Se.slice(Ee);break;default:ce=Se+re+ce+ee;break}return P(ce)}return ne.toString=function(){return G+""},ne}function B(G,U){var H=N((G=m(G),G.type="f",G)),W=Math.max(-8,Math.min(8,Math.floor(i(U)/3)))*3,V=Math.pow(10,-W),$=p[8+W/3];return function(Z){return H(V*Z)+$}}return{format:N,formatPrefix:B}}var g,c;y({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function y(A){return g=E(A),c=g.format,g.formatPrefix,g}},87108:function(D,O,t){t.r(O),t.d(O,{geoAiry:function(){return $},geoAiryRaw:function(){return V},geoAitoff:function(){return q},geoAitoffRaw:function(){return Z},geoArmadillo:function(){return ie},geoArmadilloRaw:function(){return ae},geoAugust:function(){return Q},geoAugustRaw:function(){return fe},geoBaker:function(){return ne},geoBakerRaw:function(){return K},geoBerghaus:function(){return ee},geoBerghausRaw:function(){return re},geoBertin1953:function(){return Te},geoBertin1953Raw:function(){return ke},geoBoggs:function(){return st},geoBoggsRaw:function(){return $e},geoBonne:function(){return rt},geoBonneRaw:function(){return mt},geoBottomley:function(){return dt},geoBottomleyRaw:function(){return lt},geoBromley:function(){return et},geoBromleyRaw:function(){return wt},geoChamberlin:function(){return Pe},geoChamberlinAfrica:function(){return Re},geoChamberlinRaw:function(){return Me},geoCollignon:function(){return Je},geoCollignonRaw:function(){return Ve},geoCraig:function(){return yt},geoCraigRaw:function(){return ot},geoCraster:function(){return Vt},geoCrasterRaw:function(){return It},geoCylindricalEqualArea:function(){return Lt},geoCylindricalEqualAreaRaw:function(){return xt},geoCylindricalStereographic:function(){return dr},geoCylindricalStereographicRaw:function(){return Xt},geoEckert1:function(){return Kt},geoEckert1Raw:function(){return Tt},geoEckert2:function(){return br},geoEckert2Raw:function(){return qt},geoEckert3:function(){return Ct},geoEckert3Raw:function(){return sr},geoEckert4:function(){return Mt},geoEckert4Raw:function(){return ht},geoEckert5:function(){return zt},geoEckert5Raw:function(){return Rt},geoEckert6:function(){return Wt},geoEckert6Raw:function(){return Ft},geoEisenlohr:function(){return hr},geoEisenlohrRaw:function(){return er},geoFahey:function(){return Ke},geoFaheyRaw:function(){return pr},geoFoucaut:function(){return Ut},geoFoucautRaw:function(){return Xe},geoFoucautSinusoidal:function(){return Qt},geoFoucautSinusoidalRaw:function(){return Bt},geoGilbert:function(){return mr},geoGingery:function(){return Xr},geoGingeryRaw:function(){return wr},geoGinzburg4:function(){return bn},geoGinzburg4Raw:function(){return Dr},geoGinzburg5:function(){return Fn},geoGinzburg5Raw:function(){return un},geoGinzburg6:function(){return gr},geoGinzburg6Raw:function(){return On},geoGinzburg8:function(){return Zr},geoGinzburg8Raw:function(){return Br},geoGinzburg9:function(){return fn},geoGinzburg9Raw:function(){return Wr},geoGringorten:function(){return ga},geoGringortenQuincuncial:function(){return g0},geoGringortenRaw:function(){return wn},geoGuyou:function(){return Sn},geoGuyouRaw:function(){return Mr},geoHammer:function(){return xe},geoHammerRaw:function(){return le},geoHammerRetroazimuthal:function(){return Xn},geoHammerRetroazimuthalRaw:function(){return In},geoHealpix:function(){return vn},geoHealpixRaw:function(){return Ar},geoHill:function(){return Qr},geoHillRaw:function(){return Lr},geoHomolosine:function(){return Zn},geoHomolosineRaw:function(){return zn},geoHufnagel:function(){return Oa},geoHufnagelRaw:function(){return Wn},geoHyperelliptical:function(){return qi},geoHyperellipticalRaw:function(){return $a},geoInterrupt:function(){return ss},geoInterruptedBoggs:function(){return mh},geoInterruptedHomolosine:function(){return Ei},geoInterruptedMollweide:function(){return yh},geoInterruptedMollweideHemispheres:function(){return Rs},geoInterruptedQuarticAuthalic:function(){return Au},geoInterruptedSinuMollweide:function(){return Ed},geoInterruptedSinusoidal:function(){return Fc},geoKavrayskiy7:function(){return Go},geoKavrayskiy7Raw:function(){return Do},geoLagrange:function(){return ls},geoLagrangeRaw:function(){return _c},geoLarrivee:function(){return xv},geoLarriveeRaw:function(){return Qs},geoLaskowski:function(){return r0},geoLaskowskiRaw:function(){return Vs},geoLittrow:function(){return ts},geoLittrowRaw:function(){return Bl},geoLoximuthal:function(){return Mu},geoLoximuthalRaw:function(){return xh},geoMiller:function(){return bh},geoMillerRaw:function(){return Nl},geoModifiedStereographic:function(){return nc},geoModifiedStereographicAlaska:function(){return wh},geoModifiedStereographicGs48:function(){return s0},geoModifiedStereographicGs50:function(){return l0},geoModifiedStereographicLee:function(){return Tv},geoModifiedStereographicMiller:function(){return wv},geoModifiedStereographicRaw:function(){return bv},geoMollweide:function(){return Ue},geoMollweideRaw:function(){return Ie},geoMtFlatPolarParabolic:function(){return Sv},geoMtFlatPolarParabolicRaw:function(){return zf},geoMtFlatPolarQuartic:function(){return u0},geoMtFlatPolarQuarticRaw:function(){return au},geoMtFlatPolarSinusoidal:function(){return Cv},geoMtFlatPolarSinusoidalRaw:function(){return Ld},geoNaturalEarth:function(){return Mv.c},geoNaturalEarth2:function(){return pl},geoNaturalEarth2Raw:function(){return Id},geoNaturalEarthRaw:function(){return Mv.g},geoNellHammer:function(){return ac},geoNellHammerRaw:function(){return Bc},geoNicolosi:function(){return Th},geoNicolosiRaw:function(){return Ul},geoPatterson:function(){return Vc},geoPattersonRaw:function(){return kd},geoPeirceQuincuncial:function(){return Rv},geoPierceQuincuncial:function(){return Rv},geoPolyconic:function(){return f0},geoPolyconicRaw:function(){return Dd},geoPolyhedral:function(){return eo},geoPolyhedralButterfly:function(){return Uf},geoPolyhedralCollignon:function(){return oc},geoPolyhedralWaterman:function(){return Pu},geoProject:function(){return v0},geoQuantize:function(){return kv},geoQuincuncial:function(){return su},geoRectangularPolyconic:function(){return Dv},geoRectangularPolyconicRaw:function(){return Lh},geoRobinson:function(){return Lu},geoRobinsonRaw:function(){return Tl},geoSatellite:function(){return sc},geoSatelliteRaw:function(){return zd},geoSinuMollweide:function(){return _n},geoSinuMollweideRaw:function(){return Pn},geoSinusoidal:function(){return nt},geoSinusoidalRaw:function(){return at},geoStitch:function(){return Yf},geoTimes:function(){return Wo},geoTimesRaw:function(){return ku},geoTwoPointAzimuthal:function(){return Ud},geoTwoPointAzimuthalRaw:function(){return Rh},geoTwoPointAzimuthalUsa:function(){return uc},geoTwoPointEquidistant:function(){return _v},geoTwoPointEquidistantRaw:function(){return Xf},geoTwoPointEquidistantUsa:function(){return m0},geoVanDerGrinten:function(){return Zf},geoVanDerGrinten2:function(){return zv},geoVanDerGrinten2Raw:function(){return Jc},geoVanDerGrinten3:function(){return y0},geoVanDerGrinten3Raw:function(){return Du},geoVanDerGrinten4:function(){return Kf},geoVanDerGrinten4Raw:function(){return Gs},geoVanDerGrintenRaw:function(){return ws},geoWagner:function(){return Ou},geoWagner4:function(){return Bv},geoWagner4Raw:function(){return Vd},geoWagner6:function(){return Dh},geoWagner6Raw:function(){return qf},geoWagner7:function(){return kh},geoWagnerRaw:function(){return cu},geoWiechel:function(){return Oh},geoWiechelRaw:function(){return cc},geoWinkel3:function(){return Nv},geoWinkel3Raw:function(){return ed}});var l=t(87952),S=Math.abs,i=Math.atan,C=Math.atan2,w=Math.cos,v=Math.exp,m=Math.floor,a=Math.log,n=Math.max,s=Math.min,o=Math.pow,h=Math.round,f=Math.sign||function(qe){return qe>0?1:qe<0?-1:0},u=Math.sin,b=Math.tan,p=1e-6,E=1e-12,g=Math.PI,c=g/2,y=g/4,A=Math.SQRT1_2,M=N(2),R=N(g),T=g*2,L=180/g,P=g/180;function d(qe){return qe?qe/Math.sin(qe):1}function k(qe){return qe>1?c:qe<-1?-c:Math.asin(qe)}function I(qe){return qe>1?0:qe<-1?g:Math.acos(qe)}function N(qe){return qe>0?Math.sqrt(qe):0}function B(qe){return qe=v(2*qe),(qe-1)/(qe+1)}function G(qe){return(v(qe)-v(-qe))/2}function U(qe){return(v(qe)+v(-qe))/2}function H(qe){return a(qe+N(qe*qe+1))}function W(qe){return a(qe+N(qe*qe-1))}function V(qe){var ft=b(qe/2),St=2*a(w(qe/2))/(ft*ft);function At(Nt,_t){var Gt=w(Nt),xr=w(_t),Cr=u(_t),lr=xr*Gt,Er=-((1-lr?a((1+lr)/2)/(1-lr):-.5)+St/(1+lr));return[Er*xr*u(Nt),Er*Cr]}return At.invert=function(Nt,_t){var Gt=N(Nt*Nt+_t*_t),xr=-qe/2,Cr=50,lr;if(!Gt)return[0,0];do{var Er=xr/2,Fr=w(Er),jr=u(Er),sn=jr/Fr,Mn=-a(S(Fr));xr-=lr=(2/sn*Mn-St*sn-Gt)/(-Mn/(jr*jr)+1-St/(2*Fr*Fr))*(Fr<0?.7:1)}while(S(lr)>p&&--Cr>0);var Bn=u(xr);return[C(Nt*Bn,Gt*w(xr)),k(_t*Bn/Gt)]},At}function $(){var qe=c,ft=(0,l.U)(V),St=ft(qe);return St.radius=function(At){return arguments.length?ft(qe=At*P):qe*L},St.scale(179.976).clipAngle(147)}function Z(qe,ft){var St=w(ft),At=d(I(St*w(qe/=2)));return[2*St*u(qe)*At,u(ft)*At]}Z.invert=function(qe,ft){if(!(qe*qe+4*ft*ft>g*g+p)){var St=qe,At=ft,Nt=25;do{var _t=u(St),Gt=u(St/2),xr=w(St/2),Cr=u(At),lr=w(At),Er=u(2*At),Fr=Cr*Cr,jr=lr*lr,sn=Gt*Gt,Mn=1-jr*xr*xr,Bn=Mn?I(lr*xr)*N(Un=1/Mn):Un=0,Un,aa=2*Bn*lr*Gt-qe,Ya=Bn*Cr-ft,Xa=Un*(jr*sn+Bn*lr*xr*Fr),Ja=Un*(.5*_t*Er-Bn*2*Cr*Gt),ri=Un*.25*(Er*Gt-Bn*Cr*jr*_t),yi=Un*(Fr*xr+Bn*sn*lr),Xi=Ja*ri-yi*Xa;if(!Xi)break;var Ro=(Ya*Ja-aa*yi)/Xi,ve=(aa*ri-Ya*Xa)/Xi;St-=Ro,At-=ve}while((S(Ro)>p||S(ve)>p)&&--Nt>0);return[St,At]}};function q(){return(0,l.c)(Z).scale(152.63)}function ae(qe){var ft=u(qe),St=w(qe),At=qe>=0?1:-1,Nt=b(At*qe),_t=(1+ft-St)/2;function Gt(xr,Cr){var lr=w(Cr),Er=w(xr/=2);return[(1+lr)*u(xr),(At*Cr>-C(Er,Nt)-.001?0:-At*10)+_t+u(Cr)*St-(1+lr)*ft*Er]}return Gt.invert=function(xr,Cr){var lr=0,Er=0,Fr=50;do{var jr=w(lr),sn=u(lr),Mn=w(Er),Bn=u(Er),Un=1+Mn,aa=Un*sn-xr,Ya=_t+Bn*St-Un*ft*jr-Cr,Xa=Un*jr/2,Ja=-sn*Bn,ri=ft*Un*sn/2,yi=St*Mn+ft*jr*Bn,Xi=Ja*ri-yi*Xa,Ro=(Ya*Ja-aa*yi)/Xi/2,ve=(aa*ri-Ya*Xa)/Xi;S(ve)>2&&(ve/=2),lr-=Ro,Er-=ve}while((S(Ro)>p||S(ve)>p)&&--Fr>0);return At*Er>-C(w(lr),Nt)-.001?[lr*2,Er]:null},Gt}function ie(){var qe=20*P,ft=qe>=0?1:-1,St=b(ft*qe),At=(0,l.U)(ae),Nt=At(qe),_t=Nt.stream;return Nt.parallel=function(Gt){return arguments.length?(St=b((ft=(qe=Gt*P)>=0?1:-1)*qe),At(qe)):qe*L},Nt.stream=function(Gt){var xr=Nt.rotate(),Cr=_t(Gt),lr=(Nt.rotate([0,0]),_t(Gt)),Er=Nt.precision();return Nt.rotate(xr),Cr.sphere=function(){lr.polygonStart(),lr.lineStart();for(var Fr=ft*-180;ft*Fr<180;Fr+=ft*90)lr.point(Fr,ft*90);if(qe)for(;ft*(Fr-=3*ft*Er)>=-180;)lr.point(Fr,ft*-C(w(Fr*P/2),St)*L);lr.lineEnd(),lr.polygonEnd()},Cr},Nt.scale(218.695).center([0,28.0974])}function fe(qe,ft){var St=b(ft/2),At=N(1-St*St),Nt=1+At*w(qe/=2),_t=u(qe)*At/Nt,Gt=St/Nt,xr=_t*_t,Cr=Gt*Gt;return[1.3333333333333333*_t*(3+xr-3*Cr),1.3333333333333333*Gt*(3+3*xr-Cr)]}fe.invert=function(qe,ft){if(qe*=.375,ft*=.375,!qe&&S(ft)>1)return null;var St=qe*qe,At=ft*ft,Nt=1+St+At,_t=N((Nt-N(Nt*Nt-4*ft*ft))/2),Gt=k(_t)/3,xr=_t?W(S(ft/_t))/3:H(S(qe))/3,Cr=w(Gt),lr=U(xr),Er=lr*lr-Cr*Cr;return[f(qe)*2*C(G(xr)*Cr,.25-Er),f(ft)*2*C(lr*u(Gt),.25+Er)]};function Q(){return(0,l.c)(fe).scale(66.1603)}var J=N(8),oe=a(1+M);function K(qe,ft){var St=S(ft);return StE&&--At>0);return[qe/(w(St)*(J-1/u(St))),f(ft)*St]};function ne(){return(0,l.c)(K).scale(112.314)}var ce=t(69020);function re(qe){var ft=2*g/qe;function St(At,Nt){var _t=(0,ce.O)(At,Nt);if(S(At)>c){var Gt=C(_t[1],_t[0]),xr=N(_t[0]*_t[0]+_t[1]*_t[1]),Cr=ft*h((Gt-c)/ft)+c,lr=C(u(Gt-=Cr),2-w(Gt));Gt=Cr+k(g/xr*u(lr))-lr,_t[0]=xr*w(Gt),_t[1]=xr*u(Gt)}return _t}return St.invert=function(At,Nt){var _t=N(At*At+Nt*Nt);if(_t>c){var Gt=C(Nt,At),xr=ft*h((Gt-c)/ft)+c,Cr=Gt>xr?-1:1,lr=_t*w(xr-Gt),Er=1/b(Cr*I((lr-g)/N(g*(g-2*lr)+_t*_t)));Gt=xr+2*i((Er+Cr*N(Er*Er-3))/3),At=_t*w(Gt),Nt=_t*u(Gt)}return ce.O.invert(At,Nt)},St}function ee(){var qe=5,ft=(0,l.U)(re),St=ft(qe),At=St.stream,Nt=.01,_t=-w(Nt*P),Gt=u(Nt*P);return St.lobes=function(xr){return arguments.length?ft(qe=+xr):qe},St.stream=function(xr){var Cr=St.rotate(),lr=At(xr),Er=(St.rotate([0,0]),At(xr));return St.rotate(Cr),lr.sphere=function(){Er.polygonStart(),Er.lineStart();for(var Fr=0,jr=360/qe,sn=2*g/qe,Mn=90-180/qe,Bn=c;Fr0&&S(Nt)>p);return At<0?NaN:St}function Se(qe,ft,St){return ft===void 0&&(ft=40),St===void 0&&(St=E),function(At,Nt,_t,Gt){var xr,Cr,lr;_t=_t===void 0?0:+_t,Gt=Gt===void 0?0:+Gt;for(var Er=0;Erxr){_t-=Cr/=2,Gt-=lr/=2;continue}xr=Mn;var Bn=(_t>0?-1:1)*St,Un=(Gt>0?-1:1)*St,aa=qe(_t+Bn,Gt),Ya=qe(_t,Gt+Un),Xa=(aa[0]-Fr[0])/Bn,Ja=(aa[1]-Fr[1])/Bn,ri=(Ya[0]-Fr[0])/Un,yi=(Ya[1]-Fr[1])/Un,Xi=yi*Xa-Ja*ri,Ro=(S(Xi)<.5?.5:1)/Xi;if(Cr=(sn*ri-jr*yi)*Ro,lr=(jr*Ja-sn*Xa)*Ro,_t+=Cr,Gt+=lr,S(Cr)0&&(xr[1]*=1+Cr/1.5*xr[0]*xr[0]),xr}return At.invert=Se(At),At}function Te(){return(0,l.c)(ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ae(qe,ft){var St=qe*u(ft),At=30,Nt;do ft-=Nt=(ft+u(ft)-St)/(1+w(ft));while(S(Nt)>p&&--At>0);return ft/2}function be(qe,ft,St){function At(Nt,_t){return[qe*Nt*w(_t=Ae(St,_t)),ft*u(_t)]}return At.invert=function(Nt,_t){return _t=k(_t/ft),[Nt/(qe*w(_t)),k((2*_t+u(2*_t))/St)]},At}var Ie=be(M/c,M,g);function Ue(){return(0,l.c)(Ie).scale(169.529)}var Ne=2.00276,ze=1.11072;function $e(qe,ft){var St=Ae(g,ft);return[Ne*qe/(1/w(ft)+ze/w(St)),(ft+M*u(St))/Ne]}$e.invert=function(qe,ft){var St=Ne*ft,At=ft<0?-y:y,Nt=25,_t,Gt;do Gt=St-M*u(At),At-=_t=(u(2*At)+2*At-g*u(Gt))/(2*w(2*At)+2+g*w(Gt)*M*w(At));while(S(_t)>p&&--Nt>0);return Gt=St-M*u(At),[qe*(1/w(Gt)+ze/w(At))/Ne,Gt]};function st(){return(0,l.c)($e).scale(160.857)}function vt(qe){var ft=0,St=(0,l.U)(qe),At=St(ft);return At.parallel=function(Nt){return arguments.length?St(ft=Nt*P):ft*L},At}function at(qe,ft){return[qe*w(ft),ft]}at.invert=function(qe,ft){return[qe/w(ft),ft]};function nt(){return(0,l.c)(at).scale(152.63)}function mt(qe){if(!qe)return at;var ft=1/b(qe);function St(At,Nt){var _t=ft+qe-Nt,Gt=_t&&At*w(Nt)/_t;return[_t*u(Gt),ft-_t*w(Gt)]}return St.invert=function(At,Nt){var _t=N(At*At+(Nt=ft-Nt)*Nt),Gt=ft+qe-_t;return[_t/w(Gt)*C(At,Nt),Gt]},St}function rt(){return vt(mt).scale(123.082).center([0,26.1441]).parallel(45)}function lt(qe){function ft(St,At){var Nt=c-At,_t=Nt&&St*qe*u(Nt)/Nt;return[Nt*u(_t)/qe,c-Nt*w(_t)]}return ft.invert=function(St,At){var Nt=St*qe,_t=c-At,Gt=N(Nt*Nt+_t*_t),xr=C(Nt,_t);return[(Gt?Gt/u(Gt):1)*xr/qe,c-Gt]},ft}function dt(){var qe=.5,ft=(0,l.U)(lt),St=ft(qe);return St.fraction=function(At){return arguments.length?ft(qe=+At):qe},St.scale(158.837)}var wt=be(1,4/g,g);function et(){return(0,l.c)(wt).scale(152.63)}var Be=t(24052),Ye=t(92992);function Ze(qe,ft,St,At,Nt,_t){var Gt=w(_t),xr;if(S(qe)>1||S(_t)>1)xr=I(St*Nt+ft*At*Gt);else{var Cr=u(qe/2),lr=u(_t/2);xr=2*k(N(Cr*Cr+ft*At*lr*lr))}return S(xr)>p?[xr,C(At*u(_t),ft*Nt-St*At*Gt)]:[0,0]}function We(qe,ft,St){return I((qe*qe+ft*ft-St*St)/(2*qe*ft))}function Fe(qe){return qe-2*g*m((qe+g)/(2*g))}function Me(qe,ft,St){for(var At=[[qe[0],qe[1],u(qe[1]),w(qe[1])],[ft[0],ft[1],u(ft[1]),w(ft[1])],[St[0],St[1],u(St[1]),w(St[1])]],Nt=At[2],_t,Gt=0;Gt<3;++Gt,Nt=_t)_t=At[Gt],Nt.v=Ze(_t[1]-Nt[1],Nt[3],Nt[2],_t[3],_t[2],_t[0]-Nt[0]),Nt.point=[0,0];var xr=We(At[0].v[0],At[2].v[0],At[1].v[0]),Cr=We(At[0].v[0],At[1].v[0],At[2].v[0]),lr=g-xr;At[2].point[1]=0,At[0].point[0]=-(At[1].point[0]=At[0].v[0]/2);var Er=[At[2].point[0]=At[0].point[0]+At[2].v[0]*w(xr),2*(At[0].point[1]=At[1].point[1]=At[2].v[0]*u(xr))];function Fr(jr,sn){var Mn=u(sn),Bn=w(sn),Un=new Array(3),aa;for(aa=0;aa<3;++aa){var Ya=At[aa];if(Un[aa]=Ze(sn-Ya[1],Ya[3],Ya[2],Bn,Mn,jr-Ya[0]),!Un[aa][0])return Ya.point;Un[aa][1]=Fe(Un[aa][1]-Ya.v[1])}var Xa=Er.slice();for(aa=0;aa<3;++aa){var Ja=aa==2?0:aa+1,ri=We(At[aa].v[0],Un[aa][0],Un[Ja][0]);Un[aa][1]<0&&(ri=-ri),aa?aa==1?(ri=Cr-ri,Xa[0]-=Un[aa][0]*w(ri),Xa[1]-=Un[aa][0]*u(ri)):(ri=lr-ri,Xa[0]+=Un[aa][0]*w(ri),Xa[1]+=Un[aa][0]*u(ri)):(Xa[0]+=Un[aa][0]*w(ri),Xa[1]-=Un[aa][0]*u(ri))}return Xa[0]/=3,Xa[1]/=3,Xa}return Fr}function we(qe){return qe[0]*=P,qe[1]*=P,qe}function Re(){return Pe([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Pe(qe,ft,St){var At=(0,Be.c)({type:"MultiPoint",coordinates:[qe,ft,St]}),Nt=[-At[0],-At[1]],_t=(0,Ye.c)(Nt),Gt=Me(we(_t(qe)),we(_t(ft)),we(_t(St)));Gt.invert=Se(Gt);var xr=(0,l.c)(Gt).rotate(Nt),Cr=xr.center;return delete xr.rotate,xr.center=function(lr){return arguments.length?Cr(_t(lr)):_t.invert(Cr())},xr.clipAngle(90)}function Ve(qe,ft){var St=N(1-u(ft));return[2/R*qe*St,R*(1-St)]}Ve.invert=function(qe,ft){var St=(St=ft/R-1)*St;return[St>0?qe*N(g/St)/2:0,k(1-St)]};function Je(){return(0,l.c)(Ve).scale(95.6464).center([0,30])}function ot(qe){var ft=b(qe);function St(At,Nt){return[At,(At?At/u(At):1)*(u(Nt)*w(At)-ft*w(Nt))]}return St.invert=ft?function(At,Nt){At&&(Nt*=u(At)/At);var _t=w(At);return[At,2*C(N(_t*_t+ft*ft-Nt*Nt)-_t,ft-Nt)]}:function(At,Nt){return[At,k(At?Nt*b(At)/At:Nt)]},St}function yt(){return vt(ot).scale(249.828).clipAngle(90)}var ut=N(3);function It(qe,ft){return[ut*qe*(2*w(2*ft/3)-1)/R,ut*R*u(ft/3)]}It.invert=function(qe,ft){var St=3*k(ft/(ut*R));return[R*qe/(ut*(2*w(2*St/3)-1)),St]};function Vt(){return(0,l.c)(It).scale(156.19)}function xt(qe){var ft=w(qe);function St(At,Nt){return[At*ft,u(Nt)/ft]}return St.invert=function(At,Nt){return[At/ft,k(Nt*ft)]},St}function Lt(){return vt(xt).parallel(38.58).scale(195.044)}function Xt(qe){var ft=w(qe);function St(At,Nt){return[At*ft,(1+ft)*b(Nt/2)]}return St.invert=function(At,Nt){return[At/ft,i(Nt/(1+ft))*2]},St}function dr(){return vt(Xt).scale(124.75)}function Tt(qe,ft){var St=N(8/(3*g));return[St*qe*(1-S(ft)/g),St*ft]}Tt.invert=function(qe,ft){var St=N(8/(3*g)),At=ft/St;return[qe/(St*(1-S(At)/g)),At]};function Kt(){return(0,l.c)(Tt).scale(165.664)}function qt(qe,ft){var St=N(4-3*u(S(ft)));return[2/N(6*g)*qe*St,f(ft)*N(2*g/3)*(2-St)]}qt.invert=function(qe,ft){var St=2-S(ft)/N(2*g/3);return[qe*N(6*g)/(2*St),f(ft)*k((4-St*St)/3)]};function br(){return(0,l.c)(qt).scale(165.664)}function sr(qe,ft){var St=N(g*(4+g));return[2/St*qe*(1+N(1-4*ft*ft/(g*g))),4/St*ft]}sr.invert=function(qe,ft){var St=N(g*(4+g))/2;return[qe*St/(1+N(1-ft*ft*(4+g)/(4*g))),ft*St/2]};function Ct(){return(0,l.c)(sr).scale(180.739)}function ht(qe,ft){var St=(2+c)*u(ft);ft/=2;for(var At=0,Nt=1/0;At<10&&S(Nt)>p;At++){var _t=w(ft);ft-=Nt=(ft+u(ft)*(_t+2)-St)/(2*_t*(1+_t))}return[2/N(g*(4+g))*qe*(1+w(ft)),2*N(g/(4+g))*u(ft)]}ht.invert=function(qe,ft){var St=ft*N((4+g)/g)/2,At=k(St),Nt=w(At);return[qe/(2/N(g*(4+g))*(1+Nt)),k((At+St*(Nt+2))/(2+c))]};function Mt(){return(0,l.c)(ht).scale(180.739)}function Rt(qe,ft){return[qe*(1+w(ft))/N(2+g),2*ft/N(2+g)]}Rt.invert=function(qe,ft){var St=N(2+g),At=ft*St/2;return[St*qe/(1+w(At)),At]};function zt(){return(0,l.c)(Rt).scale(173.044)}function Ft(qe,ft){for(var St=(1+c)*u(ft),At=0,Nt=1/0;At<10&&S(Nt)>p;At++)ft-=Nt=(ft+u(ft)-St)/(1+w(ft));return St=N(2+g),[qe*(1+w(ft))/St,2*ft/St]}Ft.invert=function(qe,ft){var St=1+c,At=N(St/2);return[qe*2*At/(1+w(ft*=At)),k((ft+u(ft))/St)]};function Wt(){return(0,l.c)(Ft).scale(173.044)}var jt=3+2*M;function er(qe,ft){var St=u(qe/=2),At=w(qe),Nt=N(w(ft)),_t=w(ft/=2),Gt=u(ft)/(_t+M*At*Nt),xr=N(2/(1+Gt*Gt)),Cr=N((M*_t+(At+St)*Nt)/(M*_t+(At-St)*Nt));return[jt*(xr*(Cr-1/Cr)-2*a(Cr)),jt*(xr*Gt*(Cr+1/Cr)-2*i(Gt))]}er.invert=function(qe,ft){if(!(_t=fe.invert(qe/1.2,ft*1.065)))return null;var St=_t[0],At=_t[1],Nt=20,_t;qe/=jt,ft/=jt;do{var Gt=St/2,xr=At/2,Cr=u(Gt),lr=w(Gt),Er=u(xr),Fr=w(xr),jr=w(At),sn=N(jr),Mn=Er/(Fr+M*lr*sn),Bn=Mn*Mn,Un=N(2/(1+Bn)),aa=M*Fr+(lr+Cr)*sn,Ya=M*Fr+(lr-Cr)*sn,Xa=aa/Ya,Ja=N(Xa),ri=Ja-1/Ja,yi=Ja+1/Ja,Xi=Un*ri-2*a(Ja)-qe,Ro=Un*Mn*yi-2*i(Mn)-ft,ve=Er&&A*sn*Cr*Bn/Er,De=(M*lr*Fr+sn)/(2*(Fr+M*lr*sn)*(Fr+M*lr*sn)*sn),je=-.5*Mn*Un*Un*Un,it=je*ve,ct=je*De,gt=(gt=2*Fr+M*sn*(lr-Cr))*gt*Ja,Dt=(M*lr*Fr*sn+jr)/gt,Et=-(M*Cr*Er)/(sn*gt),Yt=ri*it-2*Dt/Ja+Un*(Dt+Dt/Xa),Zt=ri*ct-2*Et/Ja+Un*(Et+Et/Xa),nr=Mn*yi*it-2*ve/(1+Bn)+Un*yi*ve+Un*Mn*(Dt-Dt/Xa),Ir=Mn*yi*ct-2*De/(1+Bn)+Un*yi*De+Un*Mn*(Et-Et/Xa),Rr=Zt*nr-Ir*Yt;if(!Rr)break;var tn=(Ro*Zt-Xi*Ir)/Rr,dn=(Xi*nr-Ro*Yt)/Rr;St-=tn,At=n(-c,s(c,At-dn))}while((S(tn)>p||S(dn)>p)&&--Nt>0);return S(S(At)-c)At){var Fr=N(Er),jr=C(lr,Cr),sn=St*h(jr/St),Mn=jr-sn,Bn=qe*w(Mn),Un=(qe*u(Mn)-Mn*u(Bn))/(c-Bn),aa=Sr(Mn,Un),Ya=(g-qe)/yr(aa,Bn,g);Cr=Fr;var Xa=50,Ja;do Cr-=Ja=(qe+yr(aa,Bn,Cr)*Ya-Fr)/(aa(Cr)*Ya);while(S(Ja)>p&&--Xa>0);lr=Mn*u(Cr),CrAt){var Cr=N(xr),lr=C(Gt,_t),Er=St*h(lr/St),Fr=lr-Er;_t=Cr*w(Fr),Gt=Cr*u(Fr);for(var jr=_t-c,sn=u(_t),Mn=Gt/sn,Bn=_tp||S(Mn)>p)&&--Bn>0);return[Fr,jr]},Cr}var Dr=kr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function bn(){return(0,l.c)(Dr).scale(149.995)}var un=kr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Fn(){return(0,l.c)(un).scale(153.93)}var On=kr(5/6*g,-.62636,-.0344,0,1.3493,-.05524,0,.045);function gr(){return(0,l.c)(On).scale(130.945)}function Br(qe,ft){var St=qe*qe,At=ft*ft;return[qe*(1-.162388*At)*(.87-952426e-9*St*St),ft*(1+At/12)]}Br.invert=function(qe,ft){var St=qe,At=ft,Nt=50,_t;do{var Gt=At*At;At-=_t=(At*(1+Gt/12)-ft)/(1+Gt/4)}while(S(_t)>p&&--Nt>0);Nt=50,qe/=1-.162388*Gt;do{var xr=(xr=St*St)*xr;St-=_t=(St*(.87-952426e-9*xr)-qe)/(.87-.00476213*xr)}while(S(_t)>p&&--Nt>0);return[St,At]};function Zr(){return(0,l.c)(Br).scale(131.747)}var Wr=kr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function fn(){return(0,l.c)(Wr).scale(131.087)}function Tn(qe){var ft=qe(c,0)[0]-qe(-c,0)[0];function St(At,Nt){var _t=At>0?-.5:.5,Gt=qe(At+_t*g,Nt);return Gt[0]-=_t*ft,Gt}return qe.invert&&(St.invert=function(At,Nt){var _t=At>0?-.5:.5,Gt=qe.invert(At+_t*ft,Nt),xr=Gt[0]-_t*g;return xr<-g?xr+=2*g:xr>g&&(xr-=2*g),Gt[0]=xr,Gt}),St}function wn(qe,ft){var St=f(qe),At=f(ft),Nt=w(ft),_t=w(qe)*Nt,Gt=u(qe)*Nt,xr=u(At*ft);qe=S(C(Gt,xr)),ft=k(_t),S(qe-c)>p&&(qe%=c);var Cr=Nn(qe>g/4?c-qe:qe,ft);return qe>g/4&&(xr=Cr[0],Cr[0]=-Cr[1],Cr[1]=-xr),Cr[0]*=St,Cr[1]*=-At,Cr}wn.invert=function(qe,ft){S(qe)>1&&(qe=f(qe)*2-qe),S(ft)>1&&(ft=f(ft)*2-ft);var St=f(qe),At=f(ft),Nt=-St*qe,_t=-At*ft,Gt=_t/Nt<1,xr=Yn(Gt?_t:Nt,Gt?Nt:_t),Cr=xr[0],lr=xr[1],Er=w(lr);return Gt&&(Cr=-c-Cr),[St*(C(u(Cr)*Er,-u(lr))+g),At*k(w(Cr)*Er)]};function Nn(qe,ft){if(ft===c)return[0,0];var St=u(ft),At=St*St,Nt=At*At,_t=1+Nt,Gt=1+3*Nt,xr=1-Nt,Cr=k(1/N(_t)),lr=xr+At*_t*Cr,Er=(1-St)/lr,Fr=N(Er),jr=Er*_t,sn=N(jr),Mn=Fr*xr,Bn,Un;if(qe===0)return[0,-(Mn+At*sn)];var aa=w(ft),Ya=1/aa,Xa=2*St*aa,Ja=(-3*At+Cr*Gt)*Xa,ri=(-lr*aa-(1-St)*Ja)/(lr*lr),yi=.5*ri/Fr,Xi=xr*yi-2*At*Fr*Xa,Ro=At*_t*ri+Er*Gt*Xa,ve=-Ya*Xa,De=-Ya*Ro,je=-2*Ya*Xi,it=4*qe/g,ct;if(qe>.222*g||ft.175*g){if(Bn=(Mn+At*N(jr*(1+Nt)-Mn*Mn))/(1+Nt),qe>g/4)return[Bn,Bn];var gt=Bn,Dt=.5*Bn;Bn=.5*(Dt+gt),Un=50;do{var Et=N(jr-Bn*Bn),Yt=Bn*(je+ve*Et)+De*k(Bn/sn)-it;if(!Yt)break;Yt<0?Dt=Bn:gt=Bn,Bn=.5*(Dt+gt)}while(S(gt-Dt)>p&&--Un>0)}else{Bn=p,Un=25;do{var Zt=Bn*Bn,nr=N(jr-Zt),Ir=je+ve*nr,Rr=Bn*Ir+De*k(Bn/sn)-it,tn=Ir+(De-ve*Zt)/nr;Bn-=ct=nr?Rr/tn:0}while(S(ct)>p&&--Un>0)}return[Bn,-Mn-At*N(jr-Bn*Bn)]}function Yn(qe,ft){for(var St=0,At=1,Nt=.5,_t=50;;){var Gt=Nt*Nt,xr=N(Nt),Cr=k(1/N(1+Gt)),lr=1-Gt+Nt*(1+Gt)*Cr,Er=(1-xr)/lr,Fr=N(Er),jr=Er*(1+Gt),sn=Fr*(1-Gt),Mn=jr-qe*qe,Bn=N(Mn),Un=ft+sn+Nt*Bn;if(S(At-St)0?St=Nt:At=Nt,Nt=.5*(St+At)}if(!_t)return null;var aa=k(xr),Ya=w(aa),Xa=1/Ya,Ja=2*xr*Ya,ri=(-3*Nt+Cr*(1+3*Gt))*Ja,yi=(-lr*Ya-(1-xr)*ri)/(lr*lr),Xi=.5*yi/Fr,Ro=(1-Gt)*Xi-2*Nt*Fr*Ja,ve=-2*Xa*Ro,De=-Xa*Ja,je=-Xa*(Nt*(1+Gt)*yi+Er*(1+3*Gt)*Ja);return[g/4*(qe*(ve+De*Bn)+je*k(qe/N(jr))),aa]}function ga(){return(0,l.c)(Tn(wn)).scale(239.75)}function Ia(qe,ft,St){var At,Nt,_t;return qe?(At=Ma(qe,St),ft?(Nt=Ma(ft,1-St),_t=Nt[1]*Nt[1]+St*At[0]*At[0]*Nt[0]*Nt[0],[[At[0]*Nt[2]/_t,At[1]*At[2]*Nt[0]*Nt[1]/_t],[At[1]*Nt[1]/_t,-At[0]*At[2]*Nt[0]*Nt[2]/_t],[At[2]*Nt[1]*Nt[2]/_t,-St*At[0]*At[1]*Nt[0]/_t]]):[[At[0],0],[At[1],0],[At[2],0]]):(Nt=Ma(ft,1-St),[[0,Nt[0]/Nt[1]],[1/Nt[1],0],[Nt[2]/Nt[1],0]])}function Ma(qe,ft){var St,At,Nt,_t,Gt;if(ft=1-p)return St=(1-ft)/4,At=U(qe),_t=B(qe),Nt=1/At,Gt=At*G(qe),[_t+St*(Gt-qe)/(At*At),Nt-St*_t*Nt*(Gt-qe),Nt+St*_t*Nt*(Gt+qe),2*i(v(qe))-c+St*(Gt-qe)/At];var xr=[1,0,0,0,0,0,0,0,0],Cr=[N(ft),0,0,0,0,0,0,0,0],lr=0;for(At=N(1-ft),Gt=1;S(Cr[lr]/xr[lr])>p&&lr<8;)St=xr[lr++],Cr[lr]=(St-At)/2,xr[lr]=(St+At)/2,At=N(St*At),Gt*=2;Nt=Gt*xr[lr]*qe;do _t=Cr[lr]*u(At=Nt)/xr[lr],Nt=(k(_t)+Nt)/2;while(--lr);return[u(Nt),_t=w(Nt),_t/w(Nt-At),Nt]}function ma(qe,ft,St){var At=S(qe),Nt=S(ft),_t=G(Nt);if(At){var Gt=1/u(At),xr=1/(b(At)*b(At)),Cr=-(xr+St*(_t*_t*Gt*Gt)-1+St),lr=(St-1)*xr,Er=(-Cr+N(Cr*Cr-4*lr))/2;return[Aa(i(1/N(Er)),St)*f(qe),Aa(i(N((Er/xr-1)/St)),1-St)*f(ft)]}return[0,Aa(i(_t),1-St)*f(ft)]}function Aa(qe,ft){if(!ft)return qe;if(ft===1)return a(b(qe/2+y));for(var St=1,At=N(1-ft),Nt=N(ft),_t=0;S(Nt)>p;_t++){if(qe%g){var Gt=i(At*b(qe)/St);Gt<0&&(Gt+=g),qe+=Gt+~~(qe/g)*g}else qe+=qe;Nt=(St+At)/2,At=N(St*At),Nt=((St=Nt)-At)/2}return qe/(o(2,_t)*St)}function Mr(qe,ft){var St=(M-1)/(M+1),At=N(1-St*St),Nt=Aa(c,At*At),_t=-1,Gt=a(b(g/4+S(ft)/2)),xr=v(_t*Gt)/N(St),Cr=cn(xr*w(_t*qe),xr*u(_t*qe)),lr=ma(Cr[0],Cr[1],At*At);return[-lr[1],(ft>=0?1:-1)*(.5*Nt-lr[0])]}function cn(qe,ft){var St=qe*qe,At=ft+1,Nt=1-St-ft*ft;return[.5*((qe>=0?c:-c)-C(Nt,2*qe)),-.25*a(Nt*Nt+4*St)+.5*a(At*At+St)]}function nn(qe,ft){var St=ft[0]*ft[0]+ft[1]*ft[1];return[(qe[0]*ft[0]+qe[1]*ft[1])/St,(qe[1]*ft[0]-qe[0]*ft[1])/St]}Mr.invert=function(qe,ft){var St=(M-1)/(M+1),At=N(1-St*St),Nt=Aa(c,At*At),_t=-1,Gt=Ia(.5*Nt-ft,-qe,At*At),xr=nn(Gt[0],Gt[1]),Cr=C(xr[1],xr[0])/_t;return[Cr,2*i(v(.5/_t*a(St*xr[0]*xr[0]+St*xr[1]*xr[1])))-c]};function Sn(){return(0,l.c)(Tn(Mr)).scale(151.496)}var Jn=t(61780);function In(qe){var ft=u(qe),St=w(qe),At=Rn(qe);At.invert=Rn(-qe);function Nt(_t,Gt){var xr=At(_t,Gt);_t=xr[0],Gt=xr[1];var Cr=u(Gt),lr=w(Gt),Er=w(_t),Fr=I(ft*Cr+St*lr*Er),jr=u(Fr),sn=S(jr)>p?Fr/jr:1;return[sn*St*u(_t),(S(_t)>c?sn:-sn)*(ft*lr-St*Cr*Er)]}return Nt.invert=function(_t,Gt){var xr=N(_t*_t+Gt*Gt),Cr=-u(xr),lr=w(xr),Er=xr*lr,Fr=-Gt*Cr,jr=xr*ft,sn=N(Er*Er+Fr*Fr-jr*jr),Mn=C(Er*jr+Fr*sn,Fr*jr-Er*sn),Bn=(xr>c?-1:1)*C(_t*Cr,xr*w(Mn)*lr+Gt*u(Mn)*Cr);return At.invert(Bn,Mn)},Nt}function Rn(qe){var ft=u(qe),St=w(qe);return function(At,Nt){var _t=w(Nt),Gt=w(At)*_t,xr=u(At)*_t,Cr=u(Nt);return[C(xr,Gt*St-Cr*ft),k(Cr*St+Gt*ft)]}}function Xn(){var qe=0,ft=(0,l.U)(In),St=ft(qe),At=St.rotate,Nt=St.stream,_t=(0,Jn.c)();return St.parallel=function(Gt){if(!arguments.length)return qe*L;var xr=St.rotate();return ft(qe=Gt*P).rotate(xr)},St.rotate=function(Gt){return arguments.length?(At.call(St,[Gt[0],Gt[1]-qe*L]),_t.center([-Gt[0],-Gt[1]]),St):(Gt=At.call(St),Gt[1]+=qe*L,Gt)},St.stream=function(Gt){return Gt=Nt(Gt),Gt.sphere=function(){Gt.polygonStart();var xr=.01,Cr=_t.radius(90-xr)().coordinates[0],lr=Cr.length-1,Er=-1,Fr;for(Gt.lineStart();++Er=0;)Gt.point((Fr=Cr[Er])[0],Fr[1]);Gt.lineEnd(),Gt.polygonEnd()},Gt},St.scale(79.4187).parallel(45).clipAngle(179.999)}var la=t(84706),Da=t(16016),Qa=3,Pr=k(1-1/Qa)*L,Ur=xt(0);function Ar(qe){var ft=Pr*P,St=Ve(g,ft)[0]-Ve(-g,ft)[0],At=Ur(0,ft)[1],Nt=Ve(0,ft)[1],_t=R-Nt,Gt=T/qe,xr=4/T,Cr=At+_t*_t*4/T;function lr(Er,Fr){var jr,sn=S(Fr);if(sn>ft){var Mn=s(qe-1,n(0,m((Er+g)/Gt)));Er+=g*(qe-1)/qe-Mn*Gt,jr=Ve(Er,sn),jr[0]=jr[0]*T/St-T*(qe-1)/(2*qe)+Mn*T/qe,jr[1]=At+(jr[1]-Nt)*4*_t/T,Fr<0&&(jr[1]=-jr[1])}else jr=Ur(Er,Fr);return jr[0]*=xr,jr[1]/=Cr,jr}return lr.invert=function(Er,Fr){Er/=xr,Fr*=Cr;var jr=S(Fr);if(jr>At){var sn=s(qe-1,n(0,m((Er+g)/Gt)));Er=(Er+g*(qe-1)/qe-sn*Gt)*St/T;var Mn=Ve.invert(Er,.25*(jr-At)*T/_t+Nt);return Mn[0]-=g*(qe-1)/qe-sn*Gt,Fr<0&&(Mn[1]=-Mn[1]),Mn}return Ur.invert(Er,Fr)},lr}function Vr(qe,ft){return[qe,ft&1?90-p:Pr]}function An(qe,ft){return[qe,ft&1?-90+p:-Pr]}function Hn(qe){return[qe[0]*(1-p),qe[1]]}function yn(qe){var ft=[].concat((0,la.ik)(-180,180+qe/2,qe).map(Vr),(0,la.ik)(180,-180-qe/2,-qe).map(An));return{type:"Polygon",coordinates:[qe===180?ft.map(Hn):ft]}}function vn(){var qe=4,ft=(0,l.U)(Ar),St=ft(qe),At=St.stream;return St.lobes=function(Nt){return arguments.length?ft(qe=+Nt):qe},St.stream=function(Nt){var _t=St.rotate(),Gt=At(Nt),xr=(St.rotate([0,0]),At(Nt));return St.rotate(_t),Gt.sphere=function(){(0,Da.c)(yn(180/qe),xr)},Gt},St.scale(239.75)}function Lr(qe){var ft=1+qe,St=u(1/ft),At=k(St),Nt=2*N(g/(_t=g+4*At*ft)),_t,Gt=.5*Nt*(ft+N(qe*(2+qe))),xr=qe*qe,Cr=ft*ft;function lr(Er,Fr){var jr=1-u(Fr),sn,Mn;if(jr&&jr<2){var Bn=c-Fr,Un=25,aa;do{var Ya=u(Bn),Xa=w(Bn),Ja=At+C(Ya,ft-Xa),ri=1+Cr-2*ft*Xa;Bn-=aa=(Bn-xr*At-ft*Ya+ri*Ja-.5*jr*_t)/(2*ft*Ya*Ja)}while(S(aa)>E&&--Un>0);sn=Nt*N(ri),Mn=Er*Ja/g}else sn=Nt*(qe+jr),Mn=Er*At/g;return[sn*u(Mn),Gt-sn*w(Mn)]}return lr.invert=function(Er,Fr){var jr=Er*Er+(Fr-=Gt)*Fr,sn=(1+Cr-jr/(Nt*Nt))/(2*ft),Mn=I(sn),Bn=u(Mn),Un=At+C(Bn,ft-sn);return[k(Er/N(jr))*g/Un,k(1-2*(Mn-xr*At-ft*Bn+(1+Cr-2*ft*sn)*Un)/_t)]},lr}function Qr(){var qe=1,ft=(0,l.U)(Lr),St=ft(qe);return St.ratio=function(At){return arguments.length?ft(qe=+At):qe},St.scale(167.774).center([0,18.67])}var $r=.7109889596207567,rn=.0528035274542;function Pn(qe,ft){return ft>-$r?(qe=Ie(qe,ft),qe[1]+=rn,qe):at(qe,ft)}Pn.invert=function(qe,ft){return ft>-$r?Ie.invert(qe,ft-rn):at.invert(qe,ft)};function _n(){return(0,l.c)(Pn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function zn(qe,ft){return S(ft)>$r?(qe=Ie(qe,ft),qe[1]-=ft>0?rn:-rn,qe):at(qe,ft)}zn.invert=function(qe,ft){return S(ft)>$r?Ie.invert(qe,ft+(ft>0?rn:-rn)):at.invert(qe,ft)};function Zn(){return(0,l.c)(zn).scale(152.63)}function Wn(qe,ft,St,At){var Nt=N(4*g/(2*St+(1+qe-ft/2)*u(2*St)+(qe+ft)/2*u(4*St)+ft/2*u(6*St))),_t=N(At*u(St)*N((1+qe*w(2*St)+ft*w(4*St))/(1+qe+ft))),Gt=St*Cr(1);function xr(Fr){return N(1+qe*w(2*Fr)+ft*w(4*Fr))}function Cr(Fr){var jr=Fr*St;return(2*jr+(1+qe-ft/2)*u(2*jr)+(qe+ft)/2*u(4*jr)+ft/2*u(6*jr))/St}function lr(Fr){return xr(Fr)*u(Fr)}var Er=function(Fr,jr){var sn=St*Ee(Cr,Gt*u(jr)/St,jr/g);isNaN(sn)&&(sn=St*f(jr));var Mn=Nt*xr(sn);return[Mn*_t*Fr/g*w(sn),Mn/_t*u(sn)]};return Er.invert=function(Fr,jr){var sn=Ee(lr,jr*_t/Nt);return[Fr*g/(w(sn)*Nt*_t*xr(sn)),k(St*Cr(sn/St)/Gt)]},St===0&&(Nt=N(At/g),Er=function(Fr,jr){return[Fr*Nt,u(jr)/Nt]},Er.invert=function(Fr,jr){return[Fr/Nt,k(jr*Nt)]}),Er}function Oa(){var qe=1,ft=0,St=45*P,At=2,Nt=(0,l.U)(Wn),_t=Nt(qe,ft,St,At);return _t.a=function(Gt){return arguments.length?Nt(qe=+Gt,ft,St,At):qe},_t.b=function(Gt){return arguments.length?Nt(qe,ft=+Gt,St,At):ft},_t.psiMax=function(Gt){return arguments.length?Nt(qe,ft,St=+Gt*P,At):St*L},_t.ratio=function(Gt){return arguments.length?Nt(qe,ft,St,At=+Gt):At},_t.scale(180.739)}function xa(qe,ft,St,At,Nt,_t,Gt,xr,Cr,lr,Er){if(Er.nanEncountered)return NaN;var Fr,jr,sn,Mn,Bn,Un,aa,Ya,Xa,Ja;if(Fr=St-ft,jr=qe(ft+Fr*.25),sn=qe(St-Fr*.25),isNaN(jr)){Er.nanEncountered=!0;return}if(isNaN(sn)){Er.nanEncountered=!0;return}return Mn=Fr*(At+4*jr+Nt)/12,Bn=Fr*(Nt+4*sn+_t)/12,Un=Mn+Bn,Ja=(Un-Gt)/15,lr>Cr?(Er.maxDepthCount++,Un+Ja):Math.abs(Ja)>1;do Cr[Un]>sn?Bn=Un:Mn=Un,Un=Mn+Bn>>1;while(Un>Mn);var aa=Cr[Un+1]-Cr[Un];return aa&&(aa=(sn-Cr[Un+1])/aa),(Un+1+aa)/Gt}var Fr=2*Er(1)/g*_t/St,jr=function(sn,Mn){var Bn=Er(S(u(Mn))),Un=At(Bn)*sn;return Bn/=Fr,[Un,Mn>=0?Bn:-Bn]};return jr.invert=function(sn,Mn){var Bn;return Mn*=Fr,S(Mn)<1&&(Bn=f(Mn)*k(Nt(S(Mn))*_t)),[sn/At(S(Mn)),Bn]},jr}function qi(){var qe=0,ft=2.5,St=1.183136,At=(0,l.U)($a),Nt=At(qe,ft,St);return Nt.alpha=function(_t){return arguments.length?At(qe=+_t,ft,St):qe},Nt.k=function(_t){return arguments.length?At(qe,ft=+_t,St):ft},Nt.gamma=function(_t){return arguments.length?At(qe,ft,St=+_t):St},Nt.scale(152.63)}function Di(qe,ft){return S(qe[0]-ft[0])=0;--Cr)St=qe[1][Cr],At=St[0][0],Nt=St[0][1],_t=St[1][1],Gt=St[2][0],xr=St[2][1],ft.push(Js([[Gt-p,xr-p],[Gt-p,_t+p],[At+p,_t+p],[At+p,Nt-p]],30));return{type:"Polygon",coordinates:[(0,la.Uf)(ft)]}}function ss(qe,ft,St){var At,Nt;function _t(Cr,lr){for(var Er=lr<0?-1:1,Fr=ft[+(lr<0)],jr=0,sn=Fr.length-1;jrFr[jr][2][0];++jr);var Mn=qe(Cr-Fr[jr][1][0],lr);return Mn[0]+=qe(Fr[jr][1][0],Er*lr>Er*Fr[jr][0][1]?Fr[jr][0][1]:lr)[0],Mn}St?_t.invert=St(_t):qe.invert&&(_t.invert=function(Cr,lr){for(var Er=Nt[+(lr<0)],Fr=ft[+(lr<0)],jr=0,sn=Er.length;jrMn&&(Bn=sn,sn=Mn,Mn=Bn),[[Fr,sn],[jr,Mn]]})}),Gt):ft.map(function(lr){return lr.map(function(Er){return[[Er[0][0]*L,Er[0][1]*L],[Er[1][0]*L,Er[1][1]*L],[Er[2][0]*L,Er[2][1]*L]]})})},ft!=null&&Gt.lobes(ft),Gt}var Dc=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function mh(){return ss($e,Dc).scale(160.857)}var yv=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ei(){return ss(zn,yv).scale(152.63)}var Ff=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yh(){return ss(Ie,Ff).scale(169.529)}var es=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Rs(){return ss(Ie,es).scale(169.529).rotate([20,0])}var Oc=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Ed(){return ss(Pn,Oc,Se).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Lo=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Fc(){return ss(at,Lo).scale(152.63).rotate([-20,0])}function Do(qe,ft){return[3/T*qe*N(g*g/3-ft*ft),ft]}Do.invert=function(qe,ft){return[T/3*qe/N(g*g/3-ft*ft),ft]};function Go(){return(0,l.c)(Do).scale(158.837)}function _c(qe){function ft(St,At){if(S(S(At)-c)2)return null;St/=2,At/=2;var _t=St*St,Gt=At*At,xr=2*At/(1+_t+Gt);return xr=o((1+xr)/(1-xr),1/qe),[C(2*St,1-_t-Gt)/qe,k((xr-1)/(xr+1))]},ft}function ls(){var qe=.5,ft=(0,l.U)(_c),St=ft(qe);return St.spacing=function(At){return arguments.length?ft(qe=+At):qe},St.scale(124.75)}var us=g/M;function Qs(qe,ft){return[qe*(1+N(w(ft)))/2,ft/(w(ft/2)*w(qe/6))]}Qs.invert=function(qe,ft){var St=S(qe),At=S(ft),Nt=p,_t=c;Atp||S(Un)>p)&&--Nt>0);return Nt&&[St,At]};function r0(){return(0,l.c)(Vs).scale(139.98)}function Bl(qe,ft){return[u(qe)/w(ft),b(ft)*w(qe)]}Bl.invert=function(qe,ft){var St=qe*qe,At=ft*ft,Nt=At+1,_t=St+Nt,Gt=qe?A*N((_t-N(_t*_t-4*St))/St):1/N(Nt);return[k(qe*Gt),f(ft)*I(Gt)]};function ts(){return(0,l.c)(Bl).scale(144.049).clipAngle(89.999)}function xh(qe){var ft=w(qe),St=b(y+qe/2);function At(Nt,_t){var Gt=_t-qe,xr=S(Gt)=0;)Er=qe[lr],Fr=Er[0]+xr*(sn=Fr)-Cr*jr,jr=Er[1]+xr*jr+Cr*sn;return Fr=xr*(sn=Fr)-Cr*jr,jr=xr*jr+Cr*sn,[Fr,jr]}return St.invert=function(At,Nt){var _t=20,Gt=At,xr=Nt;do{for(var Cr=ft,lr=qe[Cr],Er=lr[0],Fr=lr[1],jr=0,sn=0,Mn;--Cr>=0;)lr=qe[Cr],jr=Er+Gt*(Mn=jr)-xr*sn,sn=Fr+Gt*sn+xr*Mn,Er=lr[0]+Gt*(Mn=Er)-xr*Fr,Fr=lr[1]+Gt*Fr+xr*Mn;jr=Er+Gt*(Mn=jr)-xr*sn,sn=Fr+Gt*sn+xr*Mn,Er=Gt*(Mn=Er)-xr*Fr-At,Fr=Gt*Fr+xr*Mn-Nt;var Bn=jr*jr+sn*sn,Un,aa;Gt-=Un=(Er*jr+Fr*sn)/Bn,xr-=aa=(Fr*jr-Er*sn)/Bn}while(S(Un)+S(aa)>p*p&&--_t>0);if(_t){var Ya=N(Gt*Gt+xr*xr),Xa=2*i(Ya*.5),Ja=u(Xa);return[C(Gt*Ja,Ya*w(Xa)),Ya?k(xr*Ja/Ya):0]}},St}var n0=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Pd=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],a0=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],i0=[[.9245,0],[0,0],[.01943,0]],o0=[[.721316,0],[0,0],[-.00881625,-.00617325]];function wh(){return nc(n0,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function s0(){return nc(Pd,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function l0(){return nc(a0,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function wv(){return nc(i0,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Tv(){return nc(o0,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function nc(qe,ft){var St=(0,l.c)(bv(qe)).rotate(ft).clipAngle(90),At=(0,Ye.c)(ft),Nt=St.center;return delete St.rotate,St.center=function(_t){return arguments.length?Nt(At(_t)):At.invert(Nt())},St}var zc=N(6),_f=N(7);function zf(qe,ft){var St=k(7*u(ft)/(3*zc));return[zc*qe*(2*w(2*St/3)-1)/_f,9*u(St/3)/_f]}zf.invert=function(qe,ft){var St=3*k(ft*_f/9);return[qe*_f/(zc*(2*w(2*St/3)-1)),k(u(St)*3*zc/7)]};function Sv(){return(0,l.c)(zf).scale(164.859)}function au(qe,ft){for(var St=(1+A)*u(ft),At=ft,Nt=0,_t;Nt<25&&(At-=_t=(u(At/2)+u(At)-St)/(.5*w(At/2)+w(At)),!(S(_t)E&&--At>0);return _t=St*St,Gt=_t*_t,xr=_t*Gt,[qe/(.84719-.13063*_t+xr*xr*(-.04515+.05494*_t-.02326*Gt+.00331*xr)),St]};function pl(){return(0,l.c)(Id).scale(175.295)}function Bc(qe,ft){return[qe*(1+w(ft))/2,2*(ft-b(ft/2))]}Bc.invert=function(qe,ft){for(var St=ft/2,At=0,Nt=1/0;At<10&&S(Nt)>p;++At){var _t=w(ft/2);ft-=Nt=(ft-b(ft/2)-St)/(1-.5/(_t*_t))}return[2*qe/(1+w(ft)),ft]};function ac(){return(0,l.c)(Bc).scale(152.63)}var Bf=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Au(){return ss(le(1/0),Bf).rotate([20,0]).scale(152.63)}function Ul(qe,ft){var St=u(ft),At=w(ft),Nt=f(qe);if(qe===0||S(ft)===c)return[0,ft];if(ft===0)return[qe,0];if(S(qe)===c)return[qe*At,c*St];var _t=g/(2*qe)-2*qe/g,Gt=2*ft/g,xr=(1-Gt*Gt)/(St-Gt),Cr=_t*_t,lr=xr*xr,Er=1+Cr/lr,Fr=1+lr/Cr,jr=(_t*St/xr-_t/2)/Er,sn=(lr*St/Cr+xr/2)/Fr,Mn=jr*jr+At*At/Er,Bn=sn*sn-(lr*St*St/Cr+xr*St-1)/Fr;return[c*(jr+N(Mn)*Nt),c*(sn+N(Bn<0?0:Bn)*f(-ft*_t)*Nt)]}Ul.invert=function(qe,ft){qe/=c,ft/=c;var St=qe*qe,At=ft*ft,Nt=St+At,_t=g*g;return[qe?(Nt-1+N((1-Nt)*(1-Nt)+4*St))/(2*qe)*c:0,Ee(function(Gt){return Nt*(g*u(Gt)-2*Gt)*g+4*Gt*Gt*(ft-u(Gt))+2*g*Gt-_t*ft},0)]};function Th(){return(0,l.c)(Ul).scale(127.267)}var Nc=1.0148,ml=.23185,So=-.14499,Sh=.02406,c0=Nc,Rd=5*ml,Uc=7*So,Hc=9*Sh,js=1.790857183;function kd(qe,ft){var St=ft*ft;return[qe,ft*(Nc+St*St*(ml+St*(So+Sh*St)))]}kd.invert=function(qe,ft){ft>js?ft=js:ft<-js&&(ft=-js);var St=ft,At;do{var Nt=St*St;St-=At=(St*(Nc+Nt*Nt*(ml+Nt*(So+Sh*Nt)))-ft)/(c0+Nt*Nt*(Rd+Nt*(Uc+Hc*Nt)))}while(S(At)>p);return[qe,St]};function Vc(){return(0,l.c)(kd).scale(139.319)}function Dd(qe,ft){if(S(ft)p&&--Nt>0);return Gt=b(At),[(S(ft)=0;)if(At=ft[xr],St[0]===At[0]&&St[1]===At[1]){if(_t)return[_t,St];_t=St}}}function Eh(qe){for(var ft=qe.length,St=[],At=qe[ft-1],Nt=0;Nt0?[-At[0],0]:[180-At[0],180])};var ft=Io.map(function(St){return{face:St,project:qe(St)}});return[-1,0,0,1,0,1,4,5].forEach(function(St,At){var Nt=ft[St];Nt&&(Nt.children||(Nt.children=[])).push(ft[At])}),eo(ft[0],function(St,At){return ft[St<-g/2?At<0?6:4:St<0?At<0?2:0:StAt^sn>At&&St<(jr-lr)*(At-Er)/(sn-Er)+lr&&(Nt=!Nt)}return Nt}function v0(qe,ft){var St=ft.stream,At;if(!St)throw new Error("invalid projection");switch(qe&&qe.type){case"Feature":At=Ph;break;case"FeatureCollection":At=p0;break;default:At=Gc;break}return At(qe,St)}function p0(qe,ft){return{type:"FeatureCollection",features:qe.features.map(function(St){return Ph(St,ft)})}}function Ph(qe,ft){return{type:"Feature",id:qe.id,properties:qe.properties,geometry:Gc(qe.geometry,ft)}}function Lv(qe,ft){return{type:"GeometryCollection",geometries:qe.geometries.map(function(St){return Gc(St,ft)})}}function Gc(qe,ft){if(!qe)return null;if(qe.type==="GeometryCollection")return Lv(qe,ft);var St;switch(qe.type){case"Point":St=Wc;break;case"MultiPoint":St=Wc;break;case"LineString":St=Iv;break;case"MultiLineString":St=Iv;break;case"Polygon":St=Vf;break;case"MultiPolygon":St=Vf;break;case"Sphere":St=Vf;break;default:return null}return(0,Da.c)(qe,ft(St)),St.result()}var rs=[],qs=[],Wc={point:function(qe,ft){rs.push([qe,ft])},result:function(){var qe=rs.length?rs.length<2?{type:"Point",coordinates:rs[0]}:{type:"MultiPoint",coordinates:rs}:null;return rs=[],qe}},Iv={lineStart:Hf,point:function(qe,ft){rs.push([qe,ft])},lineEnd:function(){rs.length&&(qs.push(rs),rs=[])},result:function(){var qe=qs.length?qs.length<2?{type:"LineString",coordinates:qs[0]}:{type:"MultiLineString",coordinates:qs}:null;return qs=[],qe}},Vf={polygonStart:Hf,lineStart:Hf,point:function(qe,ft){rs.push([qe,ft])},lineEnd:function(){var qe=rs.length;if(qe){do rs.push(rs[0].slice());while(++qe<4);qs.push(rs),rs=[]}},polygonEnd:Hf,result:function(){if(!qs.length)return null;var qe=[],ft=[];return qs.forEach(function(St){d0(St)?qe.push([St]):ft.push(St)}),ft.forEach(function(St){var At=St[0];qe.some(function(Nt){if(h0(Nt[0],At))return Nt.push(St),!0})||qe.push([St])}),qs=[],qe.length?qe.length>1?{type:"MultiPolygon",coordinates:qe}:{type:"Polygon",coordinates:qe[0]}:null}};function su(qe){var ft=qe(c,0)[0]-qe(-c,0)[0];function St(At,Nt){var _t=S(At)0?At-g:At+g,Nt),xr=(Gt[0]-Gt[1])*A,Cr=(Gt[0]+Gt[1])*A;if(_t)return[xr,Cr];var lr=ft*A,Er=xr>0^Cr>0?-1:1;return[Er*xr-f(Cr)*lr,Er*Cr-f(xr)*lr]}return qe.invert&&(St.invert=function(At,Nt){var _t=(At+Nt)*A,Gt=(Nt-At)*A,xr=S(_t)<.5*ft&&S(Gt)<.5*ft;if(!xr){var Cr=ft*A,lr=_t>0^Gt>0?-1:1,Er=-lr*At+(Gt>0?1:-1)*Cr,Fr=-lr*Nt+(_t>0?1:-1)*Cr;_t=(-Er-Fr)*A,Gt=(Er-Fr)*A}var jr=qe.invert(_t,Gt);return xr||(jr[0]+=_t>0?g:-g),jr}),(0,l.c)(St).rotate([-90,-90,45]).clipAngle(179.999)}function g0(){return su(wn).scale(176.423)}function Rv(){return su(Mr).scale(111.48)}function kv(qe,ft){if(!(0<=(ft=+ft)&&ft<=20))throw new Error("invalid digits");function St(lr){var Er=lr.length,Fr=2,jr=new Array(Er);for(jr[0]=+lr[0].toFixed(ft),jr[1]=+lr[1].toFixed(ft);Fr2||sn[0]!=Er[0]||sn[1]!=Er[1])&&(Fr.push(sn),Er=sn)}return Fr.length===1&&lr.length>1&&Fr.push(St(lr[lr.length-1])),Fr}function _t(lr){return lr.map(Nt)}function Gt(lr){if(lr==null)return lr;var Er;switch(lr.type){case"GeometryCollection":Er={type:"GeometryCollection",geometries:lr.geometries.map(Gt)};break;case"Point":Er={type:"Point",coordinates:St(lr.coordinates)};break;case"MultiPoint":Er={type:lr.type,coordinates:At(lr.coordinates)};break;case"LineString":Er={type:lr.type,coordinates:Nt(lr.coordinates)};break;case"MultiLineString":case"Polygon":Er={type:lr.type,coordinates:_t(lr.coordinates)};break;case"MultiPolygon":Er={type:"MultiPolygon",coordinates:lr.coordinates.map(_t)};break;default:return lr}return lr.bbox!=null&&(Er.bbox=lr.bbox),Er}function xr(lr){var Er={type:"Feature",properties:lr.properties,geometry:Gt(lr.geometry)};return lr.id!=null&&(Er.id=lr.id),lr.bbox!=null&&(Er.bbox=lr.bbox),Er}if(qe!=null)switch(qe.type){case"Feature":return xr(qe);case"FeatureCollection":{var Cr={type:"FeatureCollection",features:qe.features.map(xr)};return qe.bbox!=null&&(Cr.bbox=qe.bbox),Cr}default:return Gt(qe)}return qe}function Lh(qe){var ft=u(qe);function St(At,Nt){var _t=ft?b(At*ft/2)/ft:At/2;if(!Nt)return[2*_t,-qe];var Gt=2*i(_t*u(Nt)),xr=1/b(Nt);return[u(Gt)*xr,Nt+(1-w(Gt))*xr-qe]}return St.invert=function(At,Nt){if(S(Nt+=qe)p&&--xr>0);var jr=At*(lr=b(Gt)),sn=b(S(Nt)0?c:-c)*(Cr+Nt*(Er-Gt)/2+Nt*Nt*(Er-2*Cr+Gt)/2)]}Tl.invert=function(qe,ft){var St=ft/c,At=St*90,Nt=s(18,S(At/5)),_t=n(0,m(Nt));do{var Gt=ks[_t][1],xr=ks[_t+1][1],Cr=ks[s(19,_t+2)][1],lr=Cr-Gt,Er=Cr-2*xr+Gt,Fr=2*(S(St)-xr)/lr,jr=Er/lr,sn=Fr*(1-jr*Fr*(1-2*jr*Fr));if(sn>=0||_t===1){At=(ft>=0?5:-5)*(sn+Nt);var Mn=50,Bn;do Nt=s(18,S(At)/5),_t=m(Nt),sn=Nt-_t,Gt=ks[_t][1],xr=ks[_t+1][1],Cr=ks[s(19,_t+2)][1],At-=(Bn=(ft>=0?c:-c)*(xr+sn*(Cr-Gt)/2+sn*sn*(Cr-2*xr+Gt)/2)-ft)*L;while(S(Bn)>E&&--Mn>0);break}}while(--_t>=0);var Un=ks[_t][0],aa=ks[_t+1][0],Ya=ks[s(19,_t+2)][0];return[qe/(aa+sn*(Ya-Un)/2+sn*sn*(Ya-2*aa+Un)/2),At*P]};function Lu(){return(0,l.c)(Tl).scale(152.63)}function $c(qe){function ft(St,At){var Nt=w(At),_t=(qe-1)/(qe-Nt*w(St));return[_t*Nt*u(St),_t*u(At)]}return ft.invert=function(St,At){var Nt=St*St+At*At,_t=N(Nt),Gt=(qe-N(1-Nt*(qe+1)/(qe-1)))/((qe-1)/_t+_t/(qe-1));return[C(St*Gt,_t*N(1-Gt*Gt)),_t?k(At*Gt/_t):0]},ft}function zd(qe,ft){var St=$c(qe);if(!ft)return St;var At=w(ft),Nt=u(ft);function _t(Gt,xr){var Cr=St(Gt,xr),lr=Cr[1],Er=lr*Nt/(qe-1)+At;return[Cr[0]*At/Er,lr/Er]}return _t.invert=function(Gt,xr){var Cr=(qe-1)/(qe-1-xr*Nt);return St.invert(Cr*Gt,Cr*xr*At)},_t}function sc(){var qe=2,ft=0,St=(0,l.U)(zd),At=St(qe,ft);return At.distance=function(Nt){return arguments.length?St(qe=+Nt,ft):qe},At.tilt=function(Nt){return arguments.length?St(qe,ft=Nt*P):ft*L},At.scale(432.147).clipAngle(I(1/qe)*L-1e-6)}var lc=1e-4,Ov=1e4,lu=-180,Yc=lu+lc,Iu=180,uu=Iu-lc,jf=-90,Xc=jf+lc,Yi=90,Zc=Yi-lc;function Bd(qe){return qe.length>0}function Fv(qe){return Math.floor(qe*Ov)/Ov}function Kc(qe){return qe===jf||qe===Yi?[0,qe]:[lu,Fv(qe)]}function Gf(qe){var ft=qe[0],St=qe[1],At=!1;return ft<=Yc?(ft=lu,At=!0):ft>=uu&&(ft=Iu,At=!0),St<=Xc?(St=jf,At=!0):St>=Zc&&(St=Yi,At=!0),At?[ft,St]:qe}function Nd(qe){return qe.map(Gf)}function Ih(qe,ft,St){for(var At=0,Nt=qe.length;At=uu||Er<=Xc||Er>=Zc){_t[Gt]=Gf(Cr);for(var Fr=Gt+1;FrYc&&snXc&&Mn=xr)break;St.push({index:-1,polygon:ft,ring:_t=_t.slice(Fr-1)}),_t[0]=Kc(_t[0][1]),Gt=-1,xr=_t.length}}}}function Wf(qe){var ft,St=qe.length,At={},Nt={},_t,Gt,xr,Cr,lr;for(ft=0;ft0?g-xr:xr)*L],lr=(0,l.c)(qe(Gt)).rotate(Cr),Er=(0,Ye.c)(Cr),Fr=lr.center;return delete lr.rotate,lr.center=function(jr){return arguments.length?Fr(Er(jr)):Er.invert(Fr())},lr.clipAngle(90)}function Rh(qe){var ft=w(qe);function St(At,Nt){var _t=(0,Eu.Y)(At,Nt);return _t[0]*=ft,_t}return St.invert=function(At,Nt){return Eu.Y.invert(At/ft,Nt)},St}function uc(){return Ud([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Ud(qe,ft){return Hl(Rh,qe,ft)}function Xf(qe){if(!(qe*=2))return ce.O;var ft=-qe/2,St=-ft,At=qe*qe,Nt=b(St),_t=.5/u(St);function Gt(xr,Cr){var lr=I(w(Cr)*w(xr-ft)),Er=I(w(Cr)*w(xr-St)),Fr=Cr<0?-1:1;return lr*=lr,Er*=Er,[(lr-Er)/(2*qe),Fr*N(4*At*Er-(At-lr+Er)*(At-lr+Er))/(2*qe)]}return Gt.invert=function(xr,Cr){var lr=Cr*Cr,Er=w(N(lr+(jr=xr+ft)*jr)),Fr=w(N(lr+(jr=xr+St)*jr)),jr,sn;return[C(sn=Er-Fr,jr=(Er+Fr)*Nt),(Cr<0?-1:1)*I(N(jr*jr+sn*sn)*_t)]},Gt}function m0(){return _v([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function _v(qe,ft){return Hl(Xf,qe,ft)}function ws(qe,ft){if(S(ft)p&&--xr>0);return[f(qe)*(N(Nt*Nt+4)+Nt)*g/4,c*Gt]};function Kf(){return(0,l.c)(Gs).scale(127.16)}function Hd(qe,ft,St,At,Nt){function _t(Gt,xr){var Cr=St*u(At*xr),lr=N(1-Cr*Cr),Er=N(2/(1+lr*w(Gt*=Nt)));return[qe*lr*Er*u(Gt),ft*Cr*Er]}return _t.invert=function(Gt,xr){var Cr=Gt/qe,lr=xr/ft,Er=N(Cr*Cr+lr*lr),Fr=2*k(Er/2);return[C(Gt*b(Fr),qe*Er)/Nt,Er&&k(xr*u(Fr)/(ft*St*Er))/At]},_t}function cu(qe,ft,St,At){var Nt=g/3;qe=n(qe,p),ft=n(ft,p),qe=s(qe,c),ft=s(ft,g-p),St=n(St,0),St=s(St,100-p),At=n(At,p);var _t=St/100+1,Gt=At/100,xr=I(_t*w(Nt))/Nt,Cr=u(qe)/u(xr*c),lr=ft/g,Er=N(Gt*u(qe/2)/u(ft/2)),Fr=Er/N(lr*Cr*xr),jr=1/(Er*N(lr*Cr*xr));return Hd(Fr,jr,Cr,xr,lr)}function Ou(){var qe=65*P,ft=60*P,St=20,At=200,Nt=(0,l.U)(cu),_t=Nt(qe,ft,St,At);return _t.poleline=function(Gt){return arguments.length?Nt(qe=+Gt*P,ft,St,At):qe*L},_t.parallels=function(Gt){return arguments.length?Nt(qe,ft=+Gt*P,St,At):ft*L},_t.inflation=function(Gt){return arguments.length?Nt(qe,ft,St=+Gt,At):St},_t.ratio=function(Gt){return arguments.length?Nt(qe,ft,St,At=+Gt):At},_t.scale(163.775)}function kh(){return Ou().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Jf=4*g+3*N(3),Qf=2*N(2*g*N(3)/Jf),Vd=be(Qf*N(3)/g,Qf,Jf/6);function Bv(){return(0,l.c)(Vd).scale(176.84)}function qf(qe,ft){return[qe*N(1-3*ft*ft/(g*g)),ft]}qf.invert=function(qe,ft){return[qe/N(1-3*ft*ft/(g*g)),ft]};function Dh(){return(0,l.c)(qf).scale(152.63)}function cc(qe,ft){var St=w(ft),At=w(qe)*St,Nt=1-At,_t=w(qe=C(u(qe)*St,-u(ft))),Gt=u(qe);return St=N(1-At*At),[Gt*St-_t*Nt,-_t*St-Gt*Nt]}cc.invert=function(qe,ft){var St=(qe*qe+ft*ft)/-2,At=N(-St*(2+St)),Nt=ft*St+qe*At,_t=qe*St-ft*At,Gt=N(_t*_t+Nt*Nt);return[C(At*Nt,Gt*(1+St)),Gt?-k(At*_t/Gt):0]};function Oh(){return(0,l.c)(cc).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function ed(qe,ft){var St=Z(qe,ft);return[(St[0]+qe/c)/2,(St[1]+ft)/2]}ed.invert=function(qe,ft){var St=qe,At=ft,Nt=25;do{var _t=w(At),Gt=u(At),xr=u(2*At),Cr=Gt*Gt,lr=_t*_t,Er=u(St),Fr=w(St/2),jr=u(St/2),sn=jr*jr,Mn=1-lr*Fr*Fr,Bn=Mn?I(_t*Fr)*N(Un=1/Mn):Un=0,Un,aa=.5*(2*Bn*_t*jr+St/c)-qe,Ya=.5*(Bn*Gt+At)-ft,Xa=.5*Un*(lr*sn+Bn*_t*Fr*Cr)+.5/c,Ja=Un*(Er*xr/4-Bn*Gt*jr),ri=.125*Un*(xr*jr-Bn*Gt*lr*Er),yi=.5*Un*(Cr*Fr+Bn*sn*_t)+.5,Xi=Ja*ri-yi*Xa,Ro=(Ya*Ja-aa*yi)/Xi,ve=(aa*ri-Ya*Xa)/Xi;St-=Ro,At-=ve}while((S(Ro)>p||S(ve)>p)&&--Nt>0);return[St,At]};function Nv(){return(0,l.c)(ed).scale(158.837)}},88728:function(D,O,t){t.d(O,{c:function(){return l}});function l(){return new S}function S(){this.reset()}S.prototype={constructor:S,reset:function(){this.s=this.t=0},add:function(w){C(i,w,this.t),C(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new S;function C(w,v,m){var a=w.s=v+m,n=a-v,s=a-n;w.t=v-s+(m-n)}},95384:function(D,O,t){t.d(O,{cp:function(){return E},mQ:function(){return w},oB:function(){return h}});var l=t(88728),S=t(64528),i=t(70932),C=t(16016),w=(0,l.c)(),v=(0,l.c)(),m,a,n,s,o,h={point:i.c,lineStart:i.c,lineEnd:i.c,polygonStart:function(){w.reset(),h.lineStart=f,h.lineEnd=u},polygonEnd:function(){var g=+w;v.add(g<0?S.kD+g:g),this.lineStart=this.lineEnd=this.point=i.c},sphere:function(){v.add(S.kD)}};function f(){h.point=b}function u(){p(m,a)}function b(g,c){h.point=p,m=g,a=c,g*=S.qw,c*=S.qw,n=g,s=(0,S.W8)(c=c/2+S.wL),o=(0,S.g$)(c)}function p(g,c){g*=S.qw,c*=S.qw,c=c/2+S.wL;var y=g-n,A=y>=0?1:-1,M=A*y,R=(0,S.W8)(c),T=(0,S.g$)(c),L=o*T,P=s*R+L*(0,S.W8)(M),d=L*A*(0,S.g$)(M);w.add((0,S.WE)(d,P)),n=g,s=R,o=T}function E(g){return v.reset(),(0,C.c)(g,h),v*2}},13696:function(D,O,t){t.d(O,{c:function(){return k}});var l=t(88728),S=t(95384),i=t(84220),C=t(64528),w=t(16016),v,m,a,n,s,o,h,f,u=(0,l.c)(),b,p,E={point:g,lineStart:y,lineEnd:A,polygonStart:function(){E.point=M,E.lineStart=R,E.lineEnd=T,u.reset(),S.oB.polygonStart()},polygonEnd:function(){S.oB.polygonEnd(),E.point=g,E.lineStart=y,E.lineEnd=A,S.mQ<0?(v=-(a=180),m=-(n=90)):u>C.Gg?n=90:u<-C.Gg&&(m=-90),p[0]=v,p[1]=a},sphere:function(){v=-(a=180),m=-(n=90)}};function g(I,N){b.push(p=[v=I,a=I]),Nn&&(n=N)}function c(I,N){var B=(0,i.ux)([I*C.qw,N*C.qw]);if(f){var G=(0,i.CW)(f,B),U=[G[1],-G[0],0],H=(0,i.CW)(U,G);(0,i.cJ)(H),H=(0,i.G)(H);var W=I-s,V=W>0?1:-1,$=H[0]*C.oh*V,Z,q=(0,C.a2)(W)>180;q^(V*s<$&&$n&&(n=Z)):($=($+360)%360-180,q^(V*s<$&&$n&&(n=N))),q?IL(v,a)&&(a=I):L(I,a)>L(v,a)&&(v=I):a>=v?(Ia&&(a=I)):I>s?L(v,I)>L(v,a)&&(a=I):L(I,a)>L(v,a)&&(v=I)}else b.push(p=[v=I,a=I]);Nn&&(n=N),f=B,s=I}function y(){E.point=c}function A(){p[0]=v,p[1]=a,E.point=g,f=null}function M(I,N){if(f){var B=I-s;u.add((0,C.a2)(B)>180?B+(B>0?360:-360):B)}else o=I,h=N;S.oB.point(I,N),c(I,N)}function R(){S.oB.lineStart()}function T(){M(o,h),S.oB.lineEnd(),(0,C.a2)(u)>C.Gg&&(v=-(a=180)),p[0]=v,p[1]=a,f=null}function L(I,N){return(N-=I)<0?N+360:N}function P(I,N){return I[0]-N[0]}function d(I,N){return I[0]<=I[1]?I[0]<=N&&N<=I[1]:NL(G[0],G[1])&&(G[1]=U[1]),L(U[0],G[1])>L(G[0],G[1])&&(G[0]=U[0])):H.push(G=U);for(W=-1/0,B=H.length-1,N=0,G=H[B];N<=B;G=U,++N)U=H[N],(V=L(G[1],U[0]))>W&&(W=V,v=U[0],a=G[1])}return b=p=null,v===1/0||m===1/0?[[NaN,NaN],[NaN,NaN]]:[[v,m],[a,n]]}},84220:function(D,O,t){t.d(O,{CW:function(){return w},Ez:function(){return C},G:function(){return S},cJ:function(){return a},mg:function(){return v},ux:function(){return i},wx:function(){return m}});var l=t(64528);function S(n){return[(0,l.WE)(n[1],n[0]),(0,l.qR)(n[2])]}function i(n){var s=n[0],o=n[1],h=(0,l.W8)(o);return[h*(0,l.W8)(s),h*(0,l.g$)(s),(0,l.g$)(o)]}function C(n,s){return n[0]*s[0]+n[1]*s[1]+n[2]*s[2]}function w(n,s){return[n[1]*s[2]-n[2]*s[1],n[2]*s[0]-n[0]*s[2],n[0]*s[1]-n[1]*s[0]]}function v(n,s){n[0]+=s[0],n[1]+=s[1],n[2]+=s[2]}function m(n,s){return[n[0]*s,n[1]*s,n[2]*s]}function a(n){var s=(0,l._I)(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=s,n[1]/=s,n[2]/=s}},24052:function(D,O,t){t.d(O,{c:function(){return B}});var l=t(64528),S=t(70932),i=t(16016),C,w,v,m,a,n,s,o,h,f,u,b,p,E,g,c,y={sphere:S.c,point:A,lineStart:R,lineEnd:P,polygonStart:function(){y.lineStart=d,y.lineEnd=k},polygonEnd:function(){y.lineStart=R,y.lineEnd=P}};function A(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U);M(H*(0,l.W8)(G),H*(0,l.g$)(G),(0,l.g$)(U))}function M(G,U,H){++C,v+=(G-v)/C,m+=(U-m)/C,a+=(H-a)/C}function R(){y.point=T}function T(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U);E=H*(0,l.W8)(G),g=H*(0,l.g$)(G),c=(0,l.g$)(U),y.point=L,M(E,g,c)}function L(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U),W=H*(0,l.W8)(G),V=H*(0,l.g$)(G),$=(0,l.g$)(U),Z=(0,l.WE)((0,l._I)((Z=g*$-c*V)*Z+(Z=c*W-E*$)*Z+(Z=E*V-g*W)*Z),E*W+g*V+c*$);w+=Z,n+=Z*(E+(E=W)),s+=Z*(g+(g=V)),o+=Z*(c+(c=$)),M(E,g,c)}function P(){y.point=A}function d(){y.point=I}function k(){N(b,p),y.point=A}function I(G,U){b=G,p=U,G*=l.qw,U*=l.qw,y.point=N;var H=(0,l.W8)(U);E=H*(0,l.W8)(G),g=H*(0,l.g$)(G),c=(0,l.g$)(U),M(E,g,c)}function N(G,U){G*=l.qw,U*=l.qw;var H=(0,l.W8)(U),W=H*(0,l.W8)(G),V=H*(0,l.g$)(G),$=(0,l.g$)(U),Z=g*$-c*V,q=c*W-E*$,ae=E*V-g*W,ie=(0,l._I)(Z*Z+q*q+ae*ae),fe=(0,l.qR)(ie),Q=ie&&-fe/ie;h+=Q*Z,f+=Q*q,u+=Q*ae,w+=fe,n+=fe*(E+(E=W)),s+=fe*(g+(g=V)),o+=fe*(c+(c=$)),M(E,g,c)}function B(G){C=w=v=m=a=n=s=o=h=f=u=0,(0,i.c)(G,y);var U=h,H=f,W=u,V=U*U+H*H+W*W;return V0?hf)&&(h+=o*i.kD));for(var E,g=h;o>0?g>f:g0?S.pi:-S.pi,u=(0,S.a2)(o-m);(0,S.a2)(u-S.pi)0?S.or:-S.or),v.point(n,a),v.lineEnd(),v.lineStart(),v.point(f,a),v.point(o,a),s=0):n!==f&&u>=S.pi&&((0,S.a2)(m-n)S.Gg?(0,S.MQ)(((0,S.g$)(m)*(o=(0,S.W8)(n))*(0,S.g$)(a)-(0,S.g$)(n)*(s=(0,S.W8)(m))*(0,S.g$)(v))/(s*o*h)):(m+n)/2}function w(v,m,a,n){var s;if(v==null)s=a*S.or,n.point(-S.pi,s),n.point(0,s),n.point(S.pi,s),n.point(S.pi,0),n.point(S.pi,-s),n.point(0,-s),n.point(-S.pi,-s),n.point(-S.pi,0),n.point(-S.pi,s);else if((0,S.a2)(v[0]-m[0])>S.Gg){var o=v[0]1&&i.push(i.pop().concat(i.shift()))},result:function(){var w=i;return i=[],C=null,w}}}},2728:function(D,O,t){t.d(O,{c:function(){return v}});var l=t(84220),S=t(61780),i=t(64528),C=t(41860),w=t(14229);function v(m){var a=(0,i.W8)(m),n=6*i.qw,s=a>0,o=(0,i.a2)(a)>i.Gg;function h(E,g,c,y){(0,S.Q)(y,m,n,c,E,g)}function f(E,g){return(0,i.W8)(E)*(0,i.W8)(g)>a}function u(E){var g,c,y,A,M;return{lineStart:function(){A=y=!1,M=1},point:function(R,T){var L=[R,T],P,d=f(R,T),k=s?d?0:p(R,T):d?p(R+(R<0?i.pi:-i.pi),T):0;if(!g&&(A=y=d)&&E.lineStart(),d!==y&&(P=b(g,L),(!P||(0,C.c)(g,P)||(0,C.c)(L,P))&&(L[2]=1)),d!==y)M=0,d?(E.lineStart(),P=b(L,g),E.point(P[0],P[1])):(P=b(g,L),E.point(P[0],P[1],2),E.lineEnd()),g=P;else if(o&&g&&s^d){var I;!(k&c)&&(I=b(L,g,!0))&&(M=0,s?(E.lineStart(),E.point(I[0][0],I[0][1]),E.point(I[1][0],I[1][1]),E.lineEnd()):(E.point(I[1][0],I[1][1]),E.lineEnd(),E.lineStart(),E.point(I[0][0],I[0][1],3)))}d&&(!g||!(0,C.c)(g,L))&&E.point(L[0],L[1]),g=L,y=d,c=k},lineEnd:function(){y&&E.lineEnd(),g=null},clean:function(){return M|(A&&y)<<1}}}function b(E,g,c){var y=(0,l.ux)(E),A=(0,l.ux)(g),M=[1,0,0],R=(0,l.CW)(y,A),T=(0,l.Ez)(R,R),L=R[0],P=T-L*L;if(!P)return!c&&E;var d=a*T/P,k=-a*L/P,I=(0,l.CW)(M,R),N=(0,l.wx)(M,d),B=(0,l.wx)(R,k);(0,l.mg)(N,B);var G=I,U=(0,l.Ez)(N,G),H=(0,l.Ez)(G,G),W=U*U-H*((0,l.Ez)(N,N)-1);if(!(W<0)){var V=(0,i._I)(W),$=(0,l.wx)(G,(-U-V)/H);if((0,l.mg)($,N),$=(0,l.G)($),!c)return $;var Z=E[0],q=g[0],ae=E[1],ie=g[1],fe;q0^$[1]<((0,i.a2)($[0]-Z)i.pi^(Z<=$[0]&&$[0]<=q)){var K=(0,l.wx)(G,(-U+V)/H);return(0,l.mg)(K,N),[$,(0,l.G)(K)]}}}function p(E,g){var c=s?m:i.pi-m,y=0;return E<-c?y|=1:E>c&&(y|=2),g<-c?y|=4:g>c&&(y|=8),y}return(0,w.c)(f,u,h,s?[0,-m]:[-i.pi,m-i.pi])}},14229:function(D,O,t){t.d(O,{c:function(){return v}});var l=t(97208),S=t(32232),i=t(64528),C=t(58196),w=t(84706);function v(n,s,o,h){return function(f){var u=s(f),b=(0,l.c)(),p=s(b),E=!1,g,c,y,A={point:M,lineStart:T,lineEnd:L,polygonStart:function(){A.point=P,A.lineStart=d,A.lineEnd=k,c=[],g=[]},polygonEnd:function(){A.point=M,A.lineStart=T,A.lineEnd=L,c=(0,w.Uf)(c);var I=(0,C.c)(g,h);c.length?(E||(f.polygonStart(),E=!0),(0,S.c)(c,a,I,o,f)):I&&(E||(f.polygonStart(),E=!0),f.lineStart(),o(null,null,1,f),f.lineEnd()),E&&(f.polygonEnd(),E=!1),c=g=null},sphere:function(){f.polygonStart(),f.lineStart(),o(null,null,1,f),f.lineEnd(),f.polygonEnd()}};function M(I,N){n(I,N)&&f.point(I,N)}function R(I,N){u.point(I,N)}function T(){A.point=R,u.lineStart()}function L(){A.point=M,u.lineEnd()}function P(I,N){y.push([I,N]),p.point(I,N)}function d(){p.lineStart(),y=[]}function k(){P(y[0][0],y[0][1]),p.lineEnd();var I=p.clean(),N=b.result(),B,G=N.length,U,H,W;if(y.pop(),g.push(y),y=null,!!G){if(I&1){if(H=N[0],(U=H.length-1)>0){for(E||(f.polygonStart(),E=!0),f.lineStart(),B=0;B1&&I&2&&N.push(N.pop().concat(N.shift())),c.push(N.filter(m))}}return A}}function m(n){return n.length>1}function a(n,s){return((n=n.x)[0]<0?n[1]-i.or-i.Gg:i.or-n[1])-((s=s.x)[0]<0?s[1]-i.or-i.Gg:i.or-s[1])}},21676:function(D,O,t){t.d(O,{c:function(){return a}});var l=t(64528),S=t(97208);function i(n,s,o,h,f,u){var b=n[0],p=n[1],E=s[0],g=s[1],c=0,y=1,A=E-b,M=g-p,R;if(R=o-b,!(!A&&R>0)){if(R/=A,A<0){if(R0){if(R>y)return;R>c&&(c=R)}if(R=f-b,!(!A&&R<0)){if(R/=A,A<0){if(R>y)return;R>c&&(c=R)}else if(A>0){if(R0)){if(R/=M,M<0){if(R0){if(R>y)return;R>c&&(c=R)}if(R=u-p,!(!M&&R<0)){if(R/=M,M<0){if(R>y)return;R>c&&(c=R)}else if(M>0){if(R0&&(n[0]=b+c*A,n[1]=p+c*M),y<1&&(s[0]=b+y*A,s[1]=p+y*M),!0}}}}}var C=t(32232),w=t(84706),v=1e9,m=-v;function a(n,s,o,h){function f(g,c){return n<=g&&g<=o&&s<=c&&c<=h}function u(g,c,y,A){var M=0,R=0;if(g==null||(M=b(g,y))!==(R=b(c,y))||E(g,c)<0^y>0)do A.point(M===0||M===3?n:o,M>1?h:s);while((M=(M+y+4)%4)!==R);else A.point(c[0],c[1])}function b(g,c){return(0,l.a2)(g[0]-n)0?0:3:(0,l.a2)(g[0]-o)0?2:1:(0,l.a2)(g[1]-s)0?1:0:c>0?3:2}function p(g,c){return E(g.x,c.x)}function E(g,c){var y=b(g,1),A=b(c,1);return y!==A?y-A:y===0?c[1]-g[1]:y===1?g[0]-c[0]:y===2?g[1]-c[1]:c[0]-g[0]}return function(g){var c=g,y=(0,S.c)(),A,M,R,T,L,P,d,k,I,N,B,G={point:U,lineStart:$,lineEnd:Z,polygonStart:W,polygonEnd:V};function U(ae,ie){f(ae,ie)&&c.point(ae,ie)}function H(){for(var ae=0,ie=0,fe=M.length;ieh&&(re-ne)*(h-ce)>(ee-ce)*(n-ne)&&++ae:ee<=h&&(re-ne)*(h-ce)<(ee-ce)*(n-ne)&&--ae;return ae}function W(){c=y,A=[],M=[],B=!0}function V(){var ae=H(),ie=B&&ae,fe=(A=(0,w.Uf)(A)).length;(ie||fe)&&(g.polygonStart(),ie&&(g.lineStart(),u(null,null,1,g),g.lineEnd()),fe&&(0,C.c)(A,p,ae,u,g),g.polygonEnd()),c=g,A=M=R=null}function $(){G.point=q,M&&M.push(R=[]),N=!0,I=!1,d=k=NaN}function Z(){A&&(q(T,L),P&&I&&y.rejoin(),A.push(y.result())),G.point=U,I&&c.lineEnd()}function q(ae,ie){var fe=f(ae,ie);if(M&&R.push([ae,ie]),N)T=ae,L=ie,P=fe,N=!1,fe&&(c.lineStart(),c.point(ae,ie));else if(fe&&I)c.point(ae,ie);else{var Q=[d=Math.max(m,Math.min(v,d)),k=Math.max(m,Math.min(v,k))],J=[ae=Math.max(m,Math.min(v,ae)),ie=Math.max(m,Math.min(v,ie))];i(Q,J,n,s,o,h)?(I||(c.lineStart(),c.point(Q[0],Q[1])),c.point(J[0],J[1]),fe||c.lineEnd(),B=!1):fe&&(c.lineStart(),c.point(ae,ie),B=!1)}d=ae,k=ie,I=fe}return G}}},32232:function(D,O,t){t.d(O,{c:function(){return C}});var l=t(41860),S=t(64528);function i(v,m,a,n){this.x=v,this.z=m,this.o=a,this.e=n,this.v=!1,this.n=this.p=null}function C(v,m,a,n,s){var o=[],h=[],f,u;if(v.forEach(function(y){if(!((A=y.length-1)<=0)){var A,M=y[0],R=y[A],T;if((0,l.c)(M,R)){if(!M[2]&&!R[2]){for(s.lineStart(),f=0;f=0;--f)s.point((E=p[f])[0],E[1]);else n(g.x,g.p.x,-1,s);g=g.p}g=g.o,p=g.z,c=!c}while(!g.v);s.lineEnd()}}}function w(v){if(m=v.length){for(var m,a=0,n=v[0],s;++a0&&(fn=P(gr[Tn],gr[Tn-1]),fn>0&&Zr<=fn&&Wr<=fn&&(Zr+Wr-fn)*(1-Math.pow((Zr-Wr)/fn,2))o.Gg}).map(ma)).concat((0,V.ik)((0,o.Km)(Tn/ga)*ga,fn,ga).filter(function(In){return(0,o.a2)(In%Ma)>o.Gg}).map(Aa))}return Sn.lines=function(){return Jn().map(function(In){return{type:"LineString",coordinates:In}})},Sn.outline=function(){return{type:"Polygon",coordinates:[Mr(Wr).concat(cn(wn).slice(1),Mr(Zr).reverse().slice(1),cn(Nn).reverse().slice(1))]}},Sn.extent=function(In){return arguments.length?Sn.extentMajor(In).extentMinor(In):Sn.extentMinor()},Sn.extentMajor=function(In){return arguments.length?(Wr=+In[0][0],Zr=+In[1][0],Nn=+In[0][1],wn=+In[1][1],Wr>Zr&&(In=Wr,Wr=Zr,Zr=In),Nn>wn&&(In=Nn,Nn=wn,wn=In),Sn.precision(nn)):[[Wr,Nn],[Zr,wn]]},Sn.extentMinor=function(In){return arguments.length?(Br=+In[0][0],gr=+In[1][0],Tn=+In[0][1],fn=+In[1][1],Br>gr&&(In=Br,Br=gr,gr=In),Tn>fn&&(In=Tn,Tn=fn,fn=In),Sn.precision(nn)):[[Br,Tn],[gr,fn]]},Sn.step=function(In){return arguments.length?Sn.stepMajor(In).stepMinor(In):Sn.stepMinor()},Sn.stepMajor=function(In){return arguments.length?(Ia=+In[0],Ma=+In[1],Sn):[Ia,Ma]},Sn.stepMinor=function(In){return arguments.length?(Yn=+In[0],ga=+In[1],Sn):[Yn,ga]},Sn.precision=function(In){return arguments.length?(nn=+In,ma=$(Tn,fn,90),Aa=Z(Br,gr,nn),Mr=$(Nn,wn,90),cn=Z(Wr,Zr,nn),Sn):nn},Sn.extentMajor([[-180,-90+o.Gg],[180,90-o.Gg]]).extentMinor([[-180,-80-o.Gg],[180,80+o.Gg]])}function ae(){return q()()}var ie=t(27284),fe=t(7376),Q=(0,s.c)(),J=(0,s.c)(),oe,K,ne,ce,re={point:h.c,lineStart:h.c,lineEnd:h.c,polygonStart:function(){re.lineStart=ee,re.lineEnd=he},polygonEnd:function(){re.lineStart=re.lineEnd=re.point=h.c,Q.add((0,o.a2)(J)),J.reset()},result:function(){var gr=Q/2;return Q.reset(),gr}};function ee(){re.point=de}function de(gr,Br){re.point=le,oe=ne=gr,K=ce=Br}function le(gr,Br){J.add(ce*gr-ne*Br),ne=gr,ce=Br}function he(){le(oe,K)}var xe=re,Ee=t(73784),Se=0,ke=0,Te=0,Ae=0,be=0,Ie=0,Ue=0,Ne=0,ze=0,$e,st,vt,at,nt={point:mt,lineStart:rt,lineEnd:wt,polygonStart:function(){nt.lineStart=et,nt.lineEnd=Be},polygonEnd:function(){nt.point=mt,nt.lineStart=rt,nt.lineEnd=wt},result:function(){var gr=ze?[Ue/ze,Ne/ze]:Ie?[Ae/Ie,be/Ie]:Te?[Se/Te,ke/Te]:[NaN,NaN];return Se=ke=Te=Ae=be=Ie=Ue=Ne=ze=0,gr}};function mt(gr,Br){Se+=gr,ke+=Br,++Te}function rt(){nt.point=lt}function lt(gr,Br){nt.point=dt,mt(vt=gr,at=Br)}function dt(gr,Br){var Zr=gr-vt,Wr=Br-at,fn=(0,o._I)(Zr*Zr+Wr*Wr);Ae+=fn*(vt+gr)/2,be+=fn*(at+Br)/2,Ie+=fn,mt(vt=gr,at=Br)}function wt(){nt.point=mt}function et(){nt.point=Ye}function Be(){Ze($e,st)}function Ye(gr,Br){nt.point=Ze,mt($e=vt=gr,st=at=Br)}function Ze(gr,Br){var Zr=gr-vt,Wr=Br-at,fn=(0,o._I)(Zr*Zr+Wr*Wr);Ae+=fn*(vt+gr)/2,be+=fn*(at+Br)/2,Ie+=fn,fn=at*gr-vt*Br,Ue+=fn*(vt+gr),Ne+=fn*(at+Br),ze+=fn*3,mt(vt=gr,at=Br)}var We=nt;function Fe(gr){this._context=gr}Fe.prototype={_radius:4.5,pointRadius:function(gr){return this._radius=gr,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(gr,Br){switch(this._point){case 0:{this._context.moveTo(gr,Br),this._point=1;break}case 1:{this._context.lineTo(gr,Br);break}default:{this._context.moveTo(gr+this._radius,Br),this._context.arc(gr,Br,this._radius,0,o.kD);break}}},result:h.c};var Me=(0,s.c)(),we,Re,Pe,Ve,Je,ot={point:h.c,lineStart:function(){ot.point=yt},lineEnd:function(){we&&ut(Re,Pe),ot.point=h.c},polygonStart:function(){we=!0},polygonEnd:function(){we=null},result:function(){var gr=+Me;return Me.reset(),gr}};function yt(gr,Br){ot.point=ut,Re=Ve=gr,Pe=Je=Br}function ut(gr,Br){Ve-=gr,Je-=Br,Me.add((0,o._I)(Ve*Ve+Je*Je)),Ve=gr,Je=Br}var It=ot;function Vt(){this._string=[]}Vt.prototype={_radius:4.5,_circle:xt(4.5),pointRadius:function(gr){return(gr=+gr)!==this._radius&&(this._radius=gr,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(gr,Br){switch(this._point){case 0:{this._string.push("M",gr,",",Br),this._point=1;break}case 1:{this._string.push("L",gr,",",Br);break}default:{this._circle==null&&(this._circle=xt(this._radius)),this._string.push("M",gr,",",Br,this._circle);break}}},result:function(){if(this._string.length){var gr=this._string.join("");return this._string=[],gr}else return null}};function xt(gr){return"m0,"+gr+"a"+gr+","+gr+" 0 1,1 0,"+-2*gr+"a"+gr+","+gr+" 0 1,1 0,"+2*gr+"z"}function Lt(gr,Br){var Zr=4.5,Wr,fn;function Tn(wn){return wn&&(typeof Zr=="function"&&fn.pointRadius(+Zr.apply(this,arguments)),(0,f.c)(wn,Wr(fn))),fn.result()}return Tn.area=function(wn){return(0,f.c)(wn,Wr(xe)),xe.result()},Tn.measure=function(wn){return(0,f.c)(wn,Wr(It)),It.result()},Tn.bounds=function(wn){return(0,f.c)(wn,Wr(Ee.c)),Ee.c.result()},Tn.centroid=function(wn){return(0,f.c)(wn,Wr(We)),We.result()},Tn.projection=function(wn){return arguments.length?(Wr=wn==null?(gr=null,fe.c):(gr=wn).stream,Tn):gr},Tn.context=function(wn){return arguments.length?(fn=wn==null?(Br=null,new Vt):new Fe(Br=wn),typeof Zr!="function"&&fn.pointRadius(Zr),Tn):Br},Tn.pointRadius=function(wn){return arguments.length?(Zr=typeof wn=="function"?wn:(fn.pointRadius(+wn),+wn),Tn):Zr},Tn.projection(gr).context(Br)}var Xt=t(87952);function dr(gr){var Br=0,Zr=o.pi/3,Wr=(0,Xt.U)(gr),fn=Wr(Br,Zr);return fn.parallels=function(Tn){return arguments.length?Wr(Br=Tn[0]*o.qw,Zr=Tn[1]*o.qw):[Br*o.oh,Zr*o.oh]},fn}function Tt(gr){var Br=(0,o.W8)(gr);function Zr(Wr,fn){return[Wr*Br,(0,o.g$)(fn)/Br]}return Zr.invert=function(Wr,fn){return[Wr/Br,(0,o.qR)(fn*Br)]},Zr}function Kt(gr,Br){var Zr=(0,o.g$)(gr),Wr=(Zr+(0,o.g$)(Br))/2;if((0,o.a2)(Wr)=.12&&nn<.234&&cn>=-.425&&cn<-.214?fn:nn>=.166&&nn<.234&&cn>=-.214&&cn<-.115?wn:Zr).invert(ma)},Ia.stream=function(ma){return gr&&Br===ma?gr:gr=Ct([Zr.stream(Br=ma),fn.stream(ma),wn.stream(ma)])},Ia.precision=function(ma){return arguments.length?(Zr.precision(ma),fn.precision(ma),wn.precision(ma),Ma()):Zr.precision()},Ia.scale=function(ma){return arguments.length?(Zr.scale(ma),fn.scale(ma*.35),wn.scale(ma),Ia.translate(Zr.translate())):Zr.scale()},Ia.translate=function(ma){if(!arguments.length)return Zr.translate();var Aa=Zr.scale(),Mr=+ma[0],cn=+ma[1];return Wr=Zr.translate(ma).clipExtent([[Mr-.455*Aa,cn-.238*Aa],[Mr+.455*Aa,cn+.238*Aa]]).stream(ga),Tn=fn.translate([Mr-.307*Aa,cn+.201*Aa]).clipExtent([[Mr-.425*Aa+o.Gg,cn+.12*Aa+o.Gg],[Mr-.214*Aa-o.Gg,cn+.234*Aa-o.Gg]]).stream(ga),Nn=wn.translate([Mr-.205*Aa,cn+.212*Aa]).clipExtent([[Mr-.214*Aa+o.Gg,cn+.166*Aa+o.Gg],[Mr-.115*Aa-o.Gg,cn+.234*Aa-o.Gg]]).stream(ga),Ma()},Ia.fitExtent=function(ma,Aa){return(0,sr.QX)(Ia,ma,Aa)},Ia.fitSize=function(ma,Aa){return(0,sr.UV)(Ia,ma,Aa)},Ia.fitWidth=function(ma,Aa){return(0,sr.Qx)(Ia,ma,Aa)},Ia.fitHeight=function(ma,Aa){return(0,sr.OW)(Ia,ma,Aa)};function Ma(){return gr=Br=null,Ia}return Ia.scale(1070)}var Mt=t(54724),Rt=t(69020),zt=t(92992);function Ft(gr,Br){return[gr,(0,o.Yz)((0,o.a6)((o.or+Br)/2))]}Ft.invert=function(gr,Br){return[gr,2*(0,o.MQ)((0,o.oN)(Br))-o.or]};function Wt(){return jt(Ft).scale(961/o.kD)}function jt(gr){var Br=(0,Xt.c)(gr),Zr=Br.center,Wr=Br.scale,fn=Br.translate,Tn=Br.clipExtent,wn=null,Nn,Yn,ga;Br.scale=function(Ma){return arguments.length?(Wr(Ma),Ia()):Wr()},Br.translate=function(Ma){return arguments.length?(fn(Ma),Ia()):fn()},Br.center=function(Ma){return arguments.length?(Zr(Ma),Ia()):Zr()},Br.clipExtent=function(Ma){return arguments.length?(Ma==null?wn=Nn=Yn=ga=null:(wn=+Ma[0][0],Nn=+Ma[0][1],Yn=+Ma[1][0],ga=+Ma[1][1]),Ia()):wn==null?null:[[wn,Nn],[Yn,ga]]};function Ia(){var Ma=o.pi*Wr(),ma=Br((0,zt.c)(Br.rotate()).invert([0,0]));return Tn(wn==null?[[ma[0]-Ma,ma[1]-Ma],[ma[0]+Ma,ma[1]+Ma]]:gr===Ft?[[Math.max(ma[0]-Ma,wn),Nn],[Math.min(ma[0]+Ma,Yn),ga]]:[[wn,Math.max(ma[1]-Ma,Nn)],[Yn,Math.min(ma[1]+Ma,ga)]])}return Ia()}function er(gr){return(0,o.a6)((o.or+gr)/2)}function hr(gr,Br){var Zr=(0,o.W8)(gr),Wr=gr===Br?(0,o.g$)(gr):(0,o.Yz)(Zr/(0,o.W8)(Br))/(0,o.Yz)(er(Br)/er(gr)),fn=Zr*(0,o.g3)(er(gr),Wr)/Wr;if(!Wr)return Ft;function Tn(wn,Nn){fn>0?Nn<-o.or+o.Gg&&(Nn=-o.or+o.Gg):Nn>o.or-o.Gg&&(Nn=o.or-o.Gg);var Yn=fn/(0,o.g3)(er(Nn),Wr);return[Yn*(0,o.g$)(Wr*wn),fn-Yn*(0,o.W8)(Wr*wn)]}return Tn.invert=function(wn,Nn){var Yn=fn-Nn,ga=(0,o.kq)(Wr)*(0,o._I)(wn*wn+Yn*Yn),Ia=(0,o.WE)(wn,(0,o.a2)(Yn))*(0,o.kq)(Yn);return Yn*Wr<0&&(Ia-=o.pi*(0,o.kq)(wn)*(0,o.kq)(Yn)),[Ia/Wr,2*(0,o.MQ)((0,o.g3)(fn/ga,1/Wr))-o.or]},Tn}function vr(){return dr(hr).scale(109.5).parallels([30,30])}var pr=t(69604);function Ke(gr,Br){var Zr=(0,o.W8)(gr),Wr=gr===Br?(0,o.g$)(gr):(Zr-(0,o.W8)(Br))/(Br-gr),fn=Zr/Wr+gr;if((0,o.a2)(Wr)2?Wr[2]+90:90]):(Wr=Zr(),[Wr[0],Wr[1],Wr[2]-90])},Zr([0,0,90]).scale(159.155)}},27284:function(D,O,t){t.d(O,{c:function(){return S}});var l=t(64528);function S(i,C){var w=i[0]*l.qw,v=i[1]*l.qw,m=C[0]*l.qw,a=C[1]*l.qw,n=(0,l.W8)(v),s=(0,l.g$)(v),o=(0,l.W8)(a),h=(0,l.g$)(a),f=n*(0,l.W8)(w),u=n*(0,l.g$)(w),b=o*(0,l.W8)(m),p=o*(0,l.g$)(m),E=2*(0,l.qR)((0,l._I)((0,l.SD)(a-v)+n*o*(0,l.SD)(m-w))),g=(0,l.g$)(E),c=E?function(y){var A=(0,l.g$)(y*=E)/g,M=(0,l.g$)(E-y)/g,R=M*f+A*b,T=M*u+A*p,L=M*s+A*h;return[(0,l.WE)(T,R)*l.oh,(0,l.WE)(L,(0,l._I)(R*R+T*T))*l.oh]}:function(){return[w*l.oh,v*l.oh]};return c.distance=E,c}},64528:function(D,O,t){t.d(O,{Gg:function(){return l},Km:function(){return f},MQ:function(){return s},SD:function(){return R},W8:function(){return h},WE:function(){return o},Yz:function(){return b},_I:function(){return c},a2:function(){return n},a6:function(){return y},a8:function(){return S},g$:function(){return E},g3:function(){return p},kD:function(){return v},kq:function(){return g},mE:function(){return A},oN:function(){return u},oh:function(){return m},or:function(){return C},pi:function(){return i},qR:function(){return M},qw:function(){return a},wL:function(){return w}});var l=1e-6,S=1e-12,i=Math.PI,C=i/2,w=i/4,v=i*2,m=180/i,a=i/180,n=Math.abs,s=Math.atan,o=Math.atan2,h=Math.cos,f=Math.ceil,u=Math.exp,b=Math.log,p=Math.pow,E=Math.sin,g=Math.sign||function(T){return T>0?1:T<0?-1:0},c=Math.sqrt,y=Math.tan;function A(T){return T>1?0:T<-1?i:Math.acos(T)}function M(T){return T>1?C:T<-1?-C:Math.asin(T)}function R(T){return(T=E(T/2))*T}},70932:function(D,O,t){t.d(O,{c:function(){return l}});function l(){}},73784:function(D,O,t){var l=t(70932),S=1/0,i=S,C=-S,w=C,v={point:m,lineStart:l.c,lineEnd:l.c,polygonStart:l.c,polygonEnd:l.c,result:function(){var a=[[S,i],[C,w]];return C=w=-(i=S=1/0),a}};function m(a,n){aC&&(C=a),nw&&(w=n)}O.c=v},41860:function(D,O,t){t.d(O,{c:function(){return S}});var l=t(64528);function S(i,C){return(0,l.a2)(i[0]-C[0])=0?1:-1,G=B*N,U=G>i.pi,H=M*k;if(C.add((0,i.WE)(H*B*(0,i.g$)(G),R*I+H*(0,i.W8)(G))),f+=U?N+B*i.kD:N,U^y>=n^P>=n){var W=(0,S.CW)((0,S.ux)(c),(0,S.ux)(L));(0,S.cJ)(W);var V=(0,S.CW)(h,W);(0,S.cJ)(V);var $=(U^N>=0?-1:1)*(0,i.qR)(V[2]);(s>$||s===$&&(W[0]||W[1]))&&(u+=U^N>=0?1:-1)}}return(f<-i.Gg||f4*R&&$--){var fe=k+H,Q=I+W,J=N+V,oe=(0,v._I)(fe*fe+Q*Q+J*J),K=(0,v.qR)(J/=oe),ne=(0,v.a2)((0,v.a2)(J)-1)R||(0,v.a2)((q*de+ae*le)/ie-.5)>.3||k*H+I*W+N*V2?he[2]%360*v.qw:0,de()):[I*v.oh,N*v.oh,B*v.oh]},re.angle=function(he){return arguments.length?(U=he%360*v.qw,de()):U*v.oh},re.reflectX=function(he){return arguments.length?(H=he?-1:1,de()):H<0},re.reflectY=function(he){return arguments.length?(W=he?-1:1,de()):W<0},re.precision=function(he){return arguments.length?(J=f(oe,Q=he*he),le()):(0,v._I)(Q)},re.fitExtent=function(he,xe){return(0,n.QX)(re,he,xe)},re.fitSize=function(he,xe){return(0,n.UV)(re,he,xe)},re.fitWidth=function(he,xe){return(0,n.Qx)(re,he,xe)},re.fitHeight=function(he,xe){return(0,n.OW)(re,he,xe)};function de(){var he=c(T,0,0,H,W,U).apply(null,R(d,k)),xe=(U?c:g)(T,L-he[0],P-he[1],H,W,U);return G=(0,m.O)(I,N,B),oe=(0,C.c)(R,xe),K=(0,C.c)(G,oe),J=f(oe,Q),le()}function le(){return ne=ce=null,re}return function(){return R=M.apply(this,arguments),re.invert=R.invert&&ee,de()}}},47984:function(D,O,t){t.d(O,{c:function(){return C},g:function(){return i}});var l=t(87952),S=t(64528);function i(w,v){var m=v*v,a=m*m;return[w*(.8707-.131979*m+a*(-.013791+a*(.003971*m-.001529*a))),v*(1.007226+m*(.015085+a*(-.044475+.028874*m-.005916*a)))]}i.invert=function(w,v){var m=v,a=25,n;do{var s=m*m,o=s*s;m-=n=(m*(1.007226+s*(.015085+o*(-.044475+.028874*s-.005916*o)))-v)/(1.007226+s*(.045255+o*(-.311325+.259866*s-.06507600000000001*o)))}while((0,S.a2)(n)>S.Gg&&--a>0);return[w/(.8707+(s=m*m)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),m]};function C(){return(0,l.c)(i).scale(175.295)}},4888:function(D,O,t){t.d(O,{c:function(){return w},t:function(){return C}});var l=t(64528),S=t(62280),i=t(87952);function C(v,m){return[(0,l.W8)(m)*(0,l.g$)(v),(0,l.g$)(m)]}C.invert=(0,S.g)(l.qR);function w(){return(0,i.c)(C).scale(249.5).clipAngle(90+l.Gg)}},92992:function(D,O,t){t.d(O,{O:function(){return C},c:function(){return a}});var l=t(68120),S=t(64528);function i(n,s){return[(0,S.a2)(n)>S.pi?n+Math.round(-n/S.kD)*S.kD:n,s]}i.invert=i;function C(n,s,o){return(n%=S.kD)?s||o?(0,l.c)(v(n),m(s,o)):v(n):s||o?m(s,o):i}function w(n){return function(s,o){return s+=n,[s>S.pi?s-S.kD:s<-S.pi?s+S.kD:s,o]}}function v(n){var s=w(n);return s.invert=w(-n),s}function m(n,s){var o=(0,S.W8)(n),h=(0,S.g$)(n),f=(0,S.W8)(s),u=(0,S.g$)(s);function b(p,E){var g=(0,S.W8)(E),c=(0,S.W8)(p)*g,y=(0,S.g$)(p)*g,A=(0,S.g$)(E),M=A*o+c*h;return[(0,S.WE)(y*f-M*u,c*o-A*h),(0,S.qR)(M*f+y*u)]}return b.invert=function(p,E){var g=(0,S.W8)(E),c=(0,S.W8)(p)*g,y=(0,S.g$)(p)*g,A=(0,S.g$)(E),M=A*f-y*u;return[(0,S.WE)(y*f+A*u,c*o+M*h),(0,S.qR)(M*o-c*h)]},b}function a(n){n=C(n[0]*S.qw,n[1]*S.qw,n.length>2?n[2]*S.qw:0);function s(o){return o=n(o[0]*S.qw,o[1]*S.qw),o[0]*=S.oh,o[1]*=S.oh,o}return s.invert=function(o){return o=n.invert(o[0]*S.qw,o[1]*S.qw),o[0]*=S.oh,o[1]*=S.oh,o},s}},16016:function(D,O,t){t.d(O,{c:function(){return v}});function l(m,a){m&&i.hasOwnProperty(m.type)&&i[m.type](m,a)}var S={Feature:function(m,a){l(m.geometry,a)},FeatureCollection:function(m,a){for(var n=m.features,s=-1,o=n.length;++s=0;)Me+=we[Re].value;Fe.value=Me}function s(){return this.eachAfter(n)}function o(Fe){var Me=this,we,Re=[Me],Pe,Ve,Je;do for(we=Re.reverse(),Re=[];Me=we.pop();)if(Fe(Me),Pe=Me.children,Pe)for(Ve=0,Je=Pe.length;Ve=0;--Pe)we.push(Re[Pe]);return this}function f(Fe){for(var Me=this,we=[Me],Re=[],Pe,Ve,Je;Me=we.pop();)if(Re.push(Me),Pe=Me.children,Pe)for(Ve=0,Je=Pe.length;Ve=0;)we+=Re[Pe].value;Me.value=we})}function b(Fe){return this.eachBefore(function(Me){Me.children&&Me.children.sort(Fe)})}function p(Fe){for(var Me=this,we=E(Me,Fe),Re=[Me];Me!==we;)Me=Me.parent,Re.push(Me);for(var Pe=Re.length;Fe!==we;)Re.splice(Pe,0,Fe),Fe=Fe.parent;return Re}function E(Fe,Me){if(Fe===Me)return Fe;var we=Fe.ancestors(),Re=Me.ancestors(),Pe=null;for(Fe=we.pop(),Me=Re.pop();Fe===Me;)Pe=Fe,Fe=we.pop(),Me=Re.pop();return Pe}function g(){for(var Fe=this,Me=[Fe];Fe=Fe.parent;)Me.push(Fe);return Me}function c(){var Fe=[];return this.each(function(Me){Fe.push(Me)}),Fe}function y(){var Fe=[];return this.eachBefore(function(Me){Me.children||Fe.push(Me)}),Fe}function A(){var Fe=this,Me=[];return Fe.each(function(we){we!==Fe&&Me.push({source:we.parent,target:we})}),Me}function M(Fe,Me){var we=new d(Fe),Re=+Fe.value&&(we.value=Fe.value),Pe,Ve=[we],Je,ot,yt,ut;for(Me==null&&(Me=T);Pe=Ve.pop();)if(Re&&(Pe.value=+Pe.data.value),(ot=Me(Pe.data))&&(ut=ot.length))for(Pe.children=new Array(ut),yt=ut-1;yt>=0;--yt)Ve.push(Je=Pe.children[yt]=new d(ot[yt])),Je.parent=Pe,Je.depth=Pe.depth+1;return we.eachBefore(P)}function R(){return M(this).eachBefore(L)}function T(Fe){return Fe.children}function L(Fe){Fe.data=Fe.data.data}function P(Fe){var Me=0;do Fe.height=Me;while((Fe=Fe.parent)&&Fe.height<++Me)}function d(Fe){this.data=Fe,this.depth=this.height=0,this.parent=null}d.prototype=M.prototype={constructor:d,count:s,each:o,eachAfter:f,eachBefore:h,sum:u,sort:b,path:p,ancestors:g,descendants:c,leaves:y,links:A,copy:R};var k=Array.prototype.slice;function I(Fe){for(var Me=Fe.length,we,Re;Me;)Re=Math.random()*Me--|0,we=Fe[Me],Fe[Me]=Fe[Re],Fe[Re]=we;return Fe}function N(Fe){for(var Me=0,we=(Fe=I(k.call(Fe))).length,Re=[],Pe,Ve;Me0&&we*we>Re*Re+Pe*Pe}function H(Fe,Me){for(var we=0;weyt?(Pe=(ut+yt-Ve)/(2*ut),ot=Math.sqrt(Math.max(0,yt/ut-Pe*Pe)),we.x=Fe.x-Pe*Re-ot*Je,we.y=Fe.y-Pe*Je+ot*Re):(Pe=(ut+Ve-yt)/(2*ut),ot=Math.sqrt(Math.max(0,Ve/ut-Pe*Pe)),we.x=Me.x+Pe*Re-ot*Je,we.y=Me.y+Pe*Je+ot*Re)):(we.x=Me.x+we.r,we.y=Me.y)}function ae(Fe,Me){var we=Fe.r+Me.r-1e-6,Re=Me.x-Fe.x,Pe=Me.y-Fe.y;return we>0&&we*we>Re*Re+Pe*Pe}function ie(Fe){var Me=Fe._,we=Fe.next._,Re=Me.r+we.r,Pe=(Me.x*we.r+we.x*Me.r)/Re,Ve=(Me.y*we.r+we.y*Me.r)/Re;return Pe*Pe+Ve*Ve}function fe(Fe){this._=Fe,this.next=null,this.previous=null}function Q(Fe){if(!(Pe=Fe.length))return 0;var Me,we,Re,Pe,Ve,Je,ot,yt,ut,It,Vt;if(Me=Fe[0],Me.x=0,Me.y=0,!(Pe>1))return Me.r;if(we=Fe[1],Me.x=-we.r,we.x=Me.r,we.y=0,!(Pe>2))return Me.r+we.r;q(we,Me,Re=Fe[2]),Me=new fe(Me),we=new fe(we),Re=new fe(Re),Me.next=Re.previous=we,we.next=Me.previous=Re,Re.next=we.previous=Me;e:for(ot=3;ot0)throw new Error("cycle");return ot}return we.id=function(Re){return arguments.length?(Fe=K(Re),we):Fe},we.parentId=function(Re){return arguments.length?(Me=K(Re),we):Me},we}function Ne(Fe,Me){return Fe.parent===Me.parent?1:2}function ze(Fe){var Me=Fe.children;return Me?Me[0]:Fe.t}function $e(Fe){var Me=Fe.children;return Me?Me[Me.length-1]:Fe.t}function st(Fe,Me,we){var Re=we/(Me.i-Fe.i);Me.c-=Re,Me.s+=we,Fe.c+=Re,Me.z+=we,Me.m+=we}function vt(Fe){for(var Me=0,we=0,Re=Fe.children,Pe=Re.length,Ve;--Pe>=0;)Ve=Re[Pe],Ve.z+=Me,Ve.m+=Me,Me+=Ve.s+(we+=Ve.c)}function at(Fe,Me,we){return Fe.a.parent===Me.parent?Fe.a:we}function nt(Fe,Me){this._=Fe,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Me}nt.prototype=Object.create(d.prototype);function mt(Fe){for(var Me=new nt(Fe,0),we,Re=[Me],Pe,Ve,Je,ot;we=Re.pop();)if(Ve=we._.children)for(we.children=new Array(ot=Ve.length),Je=ot-1;Je>=0;--Je)Re.push(Pe=we.children[Je]=new nt(Ve[Je],Je)),Pe.parent=we;return(Me.parent=new nt(null,0)).children=[Me],Me}function rt(){var Fe=Ne,Me=1,we=1,Re=null;function Pe(ut){var It=mt(ut);if(It.eachAfter(Ve),It.parent.m=-It.z,It.eachBefore(Je),Re)ut.eachBefore(yt);else{var Vt=ut,xt=ut,Lt=ut;ut.eachBefore(function(qt){qt.xxt.x&&(xt=qt),qt.depth>Lt.depth&&(Lt=qt)});var Xt=Vt===xt?1:Fe(Vt,xt)/2,dr=Xt-Vt.x,Tt=Me/(xt.x+Xt+dr),Kt=we/(Lt.depth||1);ut.eachBefore(function(qt){qt.x=(qt.x+dr)*Tt,qt.y=qt.depth*Kt})}return ut}function Ve(ut){var It=ut.children,Vt=ut.parent.children,xt=ut.i?Vt[ut.i-1]:null;if(It){vt(ut);var Lt=(It[0].z+It[It.length-1].z)/2;xt?(ut.z=xt.z+Fe(ut._,xt._),ut.m=ut.z-Lt):ut.z=Lt}else xt&&(ut.z=xt.z+Fe(ut._,xt._));ut.parent.A=ot(ut,xt,ut.parent.A||Vt[0])}function Je(ut){ut._.x=ut.z+ut.parent.m,ut.m+=ut.parent.m}function ot(ut,It,Vt){if(It){for(var xt=ut,Lt=ut,Xt=It,dr=xt.parent.children[0],Tt=xt.m,Kt=Lt.m,qt=Xt.m,br=dr.m,sr;Xt=$e(Xt),xt=ze(xt),Xt&&xt;)dr=ze(dr),Lt=$e(Lt),Lt.a=ut,sr=Xt.z+qt-xt.z-Tt+Fe(Xt._,xt._),sr>0&&(st(at(Xt,ut,Vt),ut,sr),Tt+=sr,Kt+=sr),qt+=Xt.m,Tt+=xt.m,br+=dr.m,Kt+=Lt.m;Xt&&!$e(Lt)&&(Lt.t=Xt,Lt.m+=qt-Kt),xt&&!ze(dr)&&(dr.t=xt,dr.m+=Tt-br,Vt=ut)}return Vt}function yt(ut){ut.x*=Me,ut.y=ut.depth*we}return Pe.separation=function(ut){return arguments.length?(Fe=ut,Pe):Fe},Pe.size=function(ut){return arguments.length?(Re=!1,Me=+ut[0],we=+ut[1],Pe):Re?null:[Me,we]},Pe.nodeSize=function(ut){return arguments.length?(Re=!0,Me=+ut[0],we=+ut[1],Pe):Re?[Me,we]:null},Pe}function lt(Fe,Me,we,Re,Pe){for(var Ve=Fe.children,Je,ot=-1,yt=Ve.length,ut=Fe.value&&(Pe-we)/Fe.value;++otqt&&(qt=ut),ht=Tt*Tt*Ct,br=Math.max(qt/ht,ht/Kt),br>sr){Tt-=ut;break}sr=br}Je.push(yt={value:Tt,dice:Lt1?Re:1)},we}(dt);function Be(){var Fe=et,Me=!1,we=1,Re=1,Pe=[0],Ve=ne,Je=ne,ot=ne,yt=ne,ut=ne;function It(xt){return xt.x0=xt.y0=0,xt.x1=we,xt.y1=Re,xt.eachBefore(Vt),Pe=[0],Me&&xt.eachBefore(xe),xt}function Vt(xt){var Lt=Pe[xt.depth],Xt=xt.x0+Lt,dr=xt.y0+Lt,Tt=xt.x1-Lt,Kt=xt.y1-Lt;Tt=xt-1){var qt=Ve[Vt];qt.x0=Xt,qt.y0=dr,qt.x1=Tt,qt.y1=Kt;return}for(var br=ut[Vt],sr=Lt/2+br,Ct=Vt+1,ht=xt-1;Ct>>1;ut[Mt]Kt-dr){var Ft=(Xt*zt+Tt*Rt)/Lt;It(Vt,Ct,Rt,Xt,dr,Ft,Kt),It(Ct,xt,zt,Ft,dr,Tt,Kt)}else{var Wt=(dr*zt+Kt*Rt)/Lt;It(Vt,Ct,Rt,Xt,dr,Tt,Wt),It(Ct,xt,zt,Xt,Wt,Tt,Kt)}}}function Ze(Fe,Me,we,Re,Pe){(Fe.depth&1?lt:Ee)(Fe,Me,we,Re,Pe)}var We=function Fe(Me){function we(Re,Pe,Ve,Je,ot){if((yt=Re._squarify)&&yt.ratio===Me)for(var yt,ut,It,Vt,xt=-1,Lt,Xt=yt.length,dr=Re.value;++xt1?Re:1)},we}(dt)},10132:function(D,O,t){t.d(O,{ak:function(){return p}});var l=Math.PI,S=2*l,i=1e-6,C=S-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function v(){return new w}w.prototype=v.prototype={constructor:w,moveTo:function(E,g){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+g)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(E,g){this._+="L"+(this._x1=+E)+","+(this._y1=+g)},quadraticCurveTo:function(E,g,c,y){this._+="Q"+ +E+","+ +g+","+(this._x1=+c)+","+(this._y1=+y)},bezierCurveTo:function(E,g,c,y,A,M){this._+="C"+ +E+","+ +g+","+ +c+","+ +y+","+(this._x1=+A)+","+(this._y1=+M)},arcTo:function(E,g,c,y,A){E=+E,g=+g,c=+c,y=+y,A=+A;var M=this._x1,R=this._y1,T=c-E,L=y-g,P=M-E,d=R-g,k=P*P+d*d;if(A<0)throw new Error("negative radius: "+A);if(this._x1===null)this._+="M"+(this._x1=E)+","+(this._y1=g);else if(k>i)if(!(Math.abs(d*T-L*P)>i)||!A)this._+="L"+(this._x1=E)+","+(this._y1=g);else{var I=c-M,N=y-R,B=T*T+L*L,G=I*I+N*N,U=Math.sqrt(B),H=Math.sqrt(k),W=A*Math.tan((l-Math.acos((B+k-G)/(2*U*H)))/2),V=W/H,$=W/U;Math.abs(V-1)>i&&(this._+="L"+(E+V*P)+","+(g+V*d)),this._+="A"+A+","+A+",0,0,"+ +(d*I>P*N)+","+(this._x1=E+$*T)+","+(this._y1=g+$*L)}},arc:function(E,g,c,y,A,M){E=+E,g=+g,c=+c,M=!!M;var R=c*Math.cos(y),T=c*Math.sin(y),L=E+R,P=g+T,d=1^M,k=M?y-A:A-y;if(c<0)throw new Error("negative radius: "+c);this._x1===null?this._+="M"+L+","+P:(Math.abs(this._x1-L)>i||Math.abs(this._y1-P)>i)&&(this._+="L"+L+","+P),c&&(k<0&&(k=k%S+S),k>C?this._+="A"+c+","+c+",0,1,"+d+","+(E-R)+","+(g-T)+"A"+c+","+c+",0,1,"+d+","+(this._x1=L)+","+(this._y1=P):k>i&&(this._+="A"+c+","+c+",0,"+ +(k>=l)+","+d+","+(this._x1=E+c*Math.cos(A))+","+(this._y1=g+c*Math.sin(A))))},rect:function(E,g,c,y){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+g)+"h"+ +c+"v"+ +y+"h"+-c+"Z"},toString:function(){return this._}};var m=v,a=Array.prototype.slice;function n(E){return function(){return E}}function s(E){return E[0]}function o(E){return E[1]}function h(E){return E.source}function f(E){return E.target}function u(E){var g=h,c=f,y=s,A=o,M=null;function R(){var T,L=a.call(arguments),P=g.apply(this,L),d=c.apply(this,L);if(M||(M=T=m()),E(M,+y.apply(this,(L[0]=P,L)),+A.apply(this,L),+y.apply(this,(L[0]=d,L)),+A.apply(this,L)),T)return M=null,T+""||null}return R.source=function(T){return arguments.length?(g=T,R):g},R.target=function(T){return arguments.length?(c=T,R):c},R.x=function(T){return arguments.length?(y=typeof T=="function"?T:n(+T),R):y},R.y=function(T){return arguments.length?(A=typeof T=="function"?T:n(+T),R):A},R.context=function(T){return arguments.length?(M=T??null,R):M},R}function b(E,g,c,y,A){E.moveTo(g,c),E.bezierCurveTo(g=(g+y)/2,c,g,A,y,A)}function p(){return u(b)}},94336:function(D,O,t){t.d(O,{Yn:function(){return Ye},m_:function(){return s},E9:function(){return Ze}});var l=t(8208),S=t(58931),i=t(46192),C=t(68936),w=t(32171),v=t(53528);function m(Fe){if(0<=Fe.y&&Fe.y<100){var Me=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Me.setFullYear(Fe.y),Me}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function a(Fe){if(0<=Fe.y&&Fe.y<100){var Me=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Me.setUTCFullYear(Fe.y),Me}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function n(Fe,Me,we){return{y:Fe,m:Me,d:we,H:0,M:0,S:0,L:0}}function s(Fe){var Me=Fe.dateTime,we=Fe.date,Re=Fe.time,Pe=Fe.periods,Ve=Fe.days,Je=Fe.shortDays,ot=Fe.months,yt=Fe.shortMonths,ut=E(Pe),It=g(Pe),Vt=E(Ve),xt=g(Ve),Lt=E(Je),Xt=g(Je),dr=E(ot),Tt=g(ot),Kt=E(yt),qt=g(yt),br={a:Ke,A:Xe,b:Ut,B:Bt,c:null,d:q,e:q,f:J,H:ae,I:ie,j:fe,L:Q,m:oe,M:K,p:Qt,q:or,Q:wt,s:et,S:ne,u:ce,U:re,V:ee,w:de,W:le,x:null,X:null,y:he,Y:xe,Z:Ee,"%":dt},sr={a:fr,A:ar,b:Ht,B:mr,c:null,d:Se,e:Se,f:Ie,H:ke,I:Te,j:Ae,L:be,m:Ue,M:Ne,p:wr,q:Sr,Q:wt,s:et,S:ze,u:$e,U:st,V:vt,w:at,W:nt,x:null,X:null,y:mt,Y:rt,Z:lt,"%":dt},Ct={a:Ft,A:Wt,b:jt,B:er,c:hr,d:I,e:I,f:W,H:B,I:B,j:N,L:H,m:k,M:G,p:zt,q:d,Q:$,s:Z,S:U,u:y,U:A,V:M,w:c,W:R,x:vr,X:pr,y:L,Y:T,Z:P,"%":V};br.x=ht(we,br),br.X=ht(Re,br),br.c=ht(Me,br),sr.x=ht(we,sr),sr.X=ht(Re,sr),sr.c=ht(Me,sr);function ht(yr,Xr){return function(kr){var Dr=[],bn=-1,un=0,Fn=yr.length,On,gr,Br;for(kr instanceof Date||(kr=new Date(+kr));++bn53)return null;"w"in Dr||(Dr.w=1),"Z"in Dr?(un=a(n(Dr.y,0,1)),Fn=un.getUTCDay(),un=Fn>4||Fn===0?l.ot.ceil(un):(0,l.ot)(un),un=S.c.offset(un,(Dr.V-1)*7),Dr.y=un.getUTCFullYear(),Dr.m=un.getUTCMonth(),Dr.d=un.getUTCDate()+(Dr.w+6)%7):(un=m(n(Dr.y,0,1)),Fn=un.getDay(),un=Fn>4||Fn===0?i.qT.ceil(un):(0,i.qT)(un),un=C.c.offset(un,(Dr.V-1)*7),Dr.y=un.getFullYear(),Dr.m=un.getMonth(),Dr.d=un.getDate()+(Dr.w+6)%7)}else("W"in Dr||"U"in Dr)&&("w"in Dr||(Dr.w="u"in Dr?Dr.u%7:"W"in Dr?1:0),Fn="Z"in Dr?a(n(Dr.y,0,1)).getUTCDay():m(n(Dr.y,0,1)).getDay(),Dr.m=0,Dr.d="W"in Dr?(Dr.w+6)%7+Dr.W*7-(Fn+5)%7:Dr.w+Dr.U*7-(Fn+6)%7);return"Z"in Dr?(Dr.H+=Dr.Z/100|0,Dr.M+=Dr.Z%100,a(Dr)):m(Dr)}}function Rt(yr,Xr,kr,Dr){for(var bn=0,un=Xr.length,Fn=kr.length,On,gr;bn=Fn)return-1;if(On=Xr.charCodeAt(bn++),On===37){if(On=Xr.charAt(bn++),gr=Ct[On in o?Xr.charAt(bn++):On],!gr||(Dr=gr(yr,kr,Dr))<0)return-1}else if(On!=kr.charCodeAt(Dr++))return-1}return Dr}function zt(yr,Xr,kr){var Dr=ut.exec(Xr.slice(kr));return Dr?(yr.p=It[Dr[0].toLowerCase()],kr+Dr[0].length):-1}function Ft(yr,Xr,kr){var Dr=Lt.exec(Xr.slice(kr));return Dr?(yr.w=Xt[Dr[0].toLowerCase()],kr+Dr[0].length):-1}function Wt(yr,Xr,kr){var Dr=Vt.exec(Xr.slice(kr));return Dr?(yr.w=xt[Dr[0].toLowerCase()],kr+Dr[0].length):-1}function jt(yr,Xr,kr){var Dr=Kt.exec(Xr.slice(kr));return Dr?(yr.m=qt[Dr[0].toLowerCase()],kr+Dr[0].length):-1}function er(yr,Xr,kr){var Dr=dr.exec(Xr.slice(kr));return Dr?(yr.m=Tt[Dr[0].toLowerCase()],kr+Dr[0].length):-1}function hr(yr,Xr,kr){return Rt(yr,Me,Xr,kr)}function vr(yr,Xr,kr){return Rt(yr,we,Xr,kr)}function pr(yr,Xr,kr){return Rt(yr,Re,Xr,kr)}function Ke(yr){return Je[yr.getDay()]}function Xe(yr){return Ve[yr.getDay()]}function Ut(yr){return yt[yr.getMonth()]}function Bt(yr){return ot[yr.getMonth()]}function Qt(yr){return Pe[+(yr.getHours()>=12)]}function or(yr){return 1+~~(yr.getMonth()/3)}function fr(yr){return Je[yr.getUTCDay()]}function ar(yr){return Ve[yr.getUTCDay()]}function Ht(yr){return yt[yr.getUTCMonth()]}function mr(yr){return ot[yr.getUTCMonth()]}function wr(yr){return Pe[+(yr.getUTCHours()>=12)]}function Sr(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Xr=ht(yr+="",br);return Xr.toString=function(){return yr},Xr},parse:function(yr){var Xr=Mt(yr+="",!1);return Xr.toString=function(){return yr},Xr},utcFormat:function(yr){var Xr=ht(yr+="",sr);return Xr.toString=function(){return yr},Xr},utcParse:function(yr){var Xr=Mt(yr+="",!0);return Xr.toString=function(){return yr},Xr}}}var o={"-":"",_:" ",0:"0"},h=/^\s*\d+/,f=/^%/,u=/[\\^$*+?|[\]().{}]/g;function b(Fe,Me,we){var Re=Fe<0?"-":"",Pe=(Re?-Fe:Fe)+"",Ve=Pe.length;return Re+(Ve68?1900:2e3),we+Re[0].length):-1}function P(Fe,Me,we){var Re=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Me.slice(we,we+6));return Re?(Fe.Z=Re[1]?0:-(Re[2]+(Re[3]||"00")),we+Re[0].length):-1}function d(Fe,Me,we){var Re=h.exec(Me.slice(we,we+1));return Re?(Fe.q=Re[0]*3-3,we+Re[0].length):-1}function k(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.m=Re[0]-1,we+Re[0].length):-1}function I(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.d=+Re[0],we+Re[0].length):-1}function N(Fe,Me,we){var Re=h.exec(Me.slice(we,we+3));return Re?(Fe.m=0,Fe.d=+Re[0],we+Re[0].length):-1}function B(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.H=+Re[0],we+Re[0].length):-1}function G(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.M=+Re[0],we+Re[0].length):-1}function U(Fe,Me,we){var Re=h.exec(Me.slice(we,we+2));return Re?(Fe.S=+Re[0],we+Re[0].length):-1}function H(Fe,Me,we){var Re=h.exec(Me.slice(we,we+3));return Re?(Fe.L=+Re[0],we+Re[0].length):-1}function W(Fe,Me,we){var Re=h.exec(Me.slice(we,we+6));return Re?(Fe.L=Math.floor(Re[0]/1e3),we+Re[0].length):-1}function V(Fe,Me,we){var Re=f.exec(Me.slice(we,we+1));return Re?we+Re[0].length:-1}function $(Fe,Me,we){var Re=h.exec(Me.slice(we));return Re?(Fe.Q=+Re[0],we+Re[0].length):-1}function Z(Fe,Me,we){var Re=h.exec(Me.slice(we));return Re?(Fe.s=+Re[0],we+Re[0].length):-1}function q(Fe,Me){return b(Fe.getDate(),Me,2)}function ae(Fe,Me){return b(Fe.getHours(),Me,2)}function ie(Fe,Me){return b(Fe.getHours()%12||12,Me,2)}function fe(Fe,Me){return b(1+C.c.count((0,w.c)(Fe),Fe),Me,3)}function Q(Fe,Me){return b(Fe.getMilliseconds(),Me,3)}function J(Fe,Me){return Q(Fe,Me)+"000"}function oe(Fe,Me){return b(Fe.getMonth()+1,Me,2)}function K(Fe,Me){return b(Fe.getMinutes(),Me,2)}function ne(Fe,Me){return b(Fe.getSeconds(),Me,2)}function ce(Fe){var Me=Fe.getDay();return Me===0?7:Me}function re(Fe,Me){return b(i.uU.count((0,w.c)(Fe)-1,Fe),Me,2)}function ee(Fe,Me){var we=Fe.getDay();return Fe=we>=4||we===0?(0,i.kD)(Fe):i.kD.ceil(Fe),b(i.kD.count((0,w.c)(Fe),Fe)+((0,w.c)(Fe).getDay()===4),Me,2)}function de(Fe){return Fe.getDay()}function le(Fe,Me){return b(i.qT.count((0,w.c)(Fe)-1,Fe),Me,2)}function he(Fe,Me){return b(Fe.getFullYear()%100,Me,2)}function xe(Fe,Me){return b(Fe.getFullYear()%1e4,Me,4)}function Ee(Fe){var Me=Fe.getTimezoneOffset();return(Me>0?"-":(Me*=-1,"+"))+b(Me/60|0,"0",2)+b(Me%60,"0",2)}function Se(Fe,Me){return b(Fe.getUTCDate(),Me,2)}function ke(Fe,Me){return b(Fe.getUTCHours(),Me,2)}function Te(Fe,Me){return b(Fe.getUTCHours()%12||12,Me,2)}function Ae(Fe,Me){return b(1+S.c.count((0,v.c)(Fe),Fe),Me,3)}function be(Fe,Me){return b(Fe.getUTCMilliseconds(),Me,3)}function Ie(Fe,Me){return be(Fe,Me)+"000"}function Ue(Fe,Me){return b(Fe.getUTCMonth()+1,Me,2)}function Ne(Fe,Me){return b(Fe.getUTCMinutes(),Me,2)}function ze(Fe,Me){return b(Fe.getUTCSeconds(),Me,2)}function $e(Fe){var Me=Fe.getUTCDay();return Me===0?7:Me}function st(Fe,Me){return b(l.EV.count((0,v.c)(Fe)-1,Fe),Me,2)}function vt(Fe,Me){var we=Fe.getUTCDay();return Fe=we>=4||we===0?(0,l.yA)(Fe):l.yA.ceil(Fe),b(l.yA.count((0,v.c)(Fe),Fe)+((0,v.c)(Fe).getUTCDay()===4),Me,2)}function at(Fe){return Fe.getUTCDay()}function nt(Fe,Me){return b(l.ot.count((0,v.c)(Fe)-1,Fe),Me,2)}function mt(Fe,Me){return b(Fe.getUTCFullYear()%100,Me,2)}function rt(Fe,Me){return b(Fe.getUTCFullYear()%1e4,Me,4)}function lt(){return"+0000"}function dt(){return"%"}function wt(Fe){return+Fe}function et(Fe){return Math.floor(+Fe/1e3)}var Be,Ye,Ze;We({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"]});function We(Fe){return Be=s(Fe),Ye=Be.format,Be.parse,Ze=Be.utcFormat,Be.utcParse,Be}},68936:function(D,O,t){t.d(O,{m:function(){return C}});var l=t(81628),S=t(69792),i=(0,l.c)(function(w){w.setHours(0,0,0,0)},function(w,v){w.setDate(w.getDate()+v)},function(w,v){return(v-w-(v.getTimezoneOffset()-w.getTimezoneOffset())*S.iy)/S.SK},function(w){return w.getDate()-1});O.c=i;var C=i.range},69792:function(D,O,t){t.d(O,{KK:function(){return w},SK:function(){return C},cg:function(){return i},iy:function(){return S},yc:function(){return l}});var l=1e3,S=6e4,i=36e5,C=864e5,w=6048e5},73220:function(D,O,t){t.r(O),t.d(O,{timeDay:function(){return b.c},timeDays:function(){return b.m},timeFriday:function(){return p.iB},timeFridays:function(){return p.sJ},timeHour:function(){return f},timeHours:function(){return u},timeInterval:function(){return l.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return C},timeMinute:function(){return s},timeMinutes:function(){return o},timeMonday:function(){return p.qT},timeMondays:function(){return p.QP},timeMonth:function(){return g},timeMonths:function(){return c},timeSaturday:function(){return p.Wc},timeSaturdays:function(){return p.aI},timeSecond:function(){return m},timeSeconds:function(){return a},timeSunday:function(){return p.uU},timeSundays:function(){return p.Ab},timeThursday:function(){return p.kD},timeThursdays:function(){return p.eC},timeTuesday:function(){return p.Mf},timeTuesdays:function(){return p.Oc},timeWednesday:function(){return p.eg},timeWednesdays:function(){return p.sn},timeWeek:function(){return p.uU},timeWeeks:function(){return p.Ab},timeYear:function(){return y.c},timeYears:function(){return y.Q},utcDay:function(){return d.c},utcDays:function(){return d.o},utcFriday:function(){return k.od},utcFridays:function(){return k.iG},utcHour:function(){return L},utcHours:function(){return P},utcMillisecond:function(){return i},utcMilliseconds:function(){return C},utcMinute:function(){return M},utcMinutes:function(){return R},utcMonday:function(){return k.ot},utcMondays:function(){return k.iO},utcMonth:function(){return N},utcMonths:function(){return B},utcSaturday:function(){return k.Ad},utcSaturdays:function(){return k.K8},utcSecond:function(){return m},utcSeconds:function(){return a},utcSunday:function(){return k.EV},utcSundays:function(){return k.Wq},utcThursday:function(){return k.yA},utcThursdays:function(){return k.ob},utcTuesday:function(){return k.sG},utcTuesdays:function(){return k.kl},utcWednesday:function(){return k._6},utcWednesdays:function(){return k.W_},utcWeek:function(){return k.EV},utcWeeks:function(){return k.Wq},utcYear:function(){return G.c},utcYears:function(){return G.i}});var l=t(81628),S=(0,l.c)(function(){},function(U,H){U.setTime(+U+H)},function(U,H){return H-U});S.every=function(U){return U=Math.floor(U),!isFinite(U)||!(U>0)?null:U>1?(0,l.c)(function(H){H.setTime(Math.floor(H/U)*U)},function(H,W){H.setTime(+H+W*U)},function(H,W){return(W-H)/U}):S};var i=S,C=S.range,w=t(69792),v=(0,l.c)(function(U){U.setTime(U-U.getMilliseconds())},function(U,H){U.setTime(+U+H*w.yc)},function(U,H){return(H-U)/w.yc},function(U){return U.getUTCSeconds()}),m=v,a=v.range,n=(0,l.c)(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*w.yc)},function(U,H){U.setTime(+U+H*w.iy)},function(U,H){return(H-U)/w.iy},function(U){return U.getMinutes()}),s=n,o=n.range,h=(0,l.c)(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*w.yc-U.getMinutes()*w.iy)},function(U,H){U.setTime(+U+H*w.cg)},function(U,H){return(H-U)/w.cg},function(U){return U.getHours()}),f=h,u=h.range,b=t(68936),p=t(46192),E=(0,l.c)(function(U){U.setDate(1),U.setHours(0,0,0,0)},function(U,H){U.setMonth(U.getMonth()+H)},function(U,H){return H.getMonth()-U.getMonth()+(H.getFullYear()-U.getFullYear())*12},function(U){return U.getMonth()}),g=E,c=E.range,y=t(32171),A=(0,l.c)(function(U){U.setUTCSeconds(0,0)},function(U,H){U.setTime(+U+H*w.iy)},function(U,H){return(H-U)/w.iy},function(U){return U.getUTCMinutes()}),M=A,R=A.range,T=(0,l.c)(function(U){U.setUTCMinutes(0,0,0)},function(U,H){U.setTime(+U+H*w.cg)},function(U,H){return(H-U)/w.cg},function(U){return U.getUTCHours()}),L=T,P=T.range,d=t(58931),k=t(8208),I=(0,l.c)(function(U){U.setUTCDate(1),U.setUTCHours(0,0,0,0)},function(U,H){U.setUTCMonth(U.getUTCMonth()+H)},function(U,H){return H.getUTCMonth()-U.getUTCMonth()+(H.getUTCFullYear()-U.getUTCFullYear())*12},function(U){return U.getUTCMonth()}),N=I,B=I.range,G=t(53528)},81628:function(D,O,t){t.d(O,{c:function(){return i}});var l=new Date,S=new Date;function i(C,w,v,m){function a(n){return C(n=arguments.length===0?new Date:new Date(+n)),n}return a.floor=function(n){return C(n=new Date(+n)),n},a.ceil=function(n){return C(n=new Date(n-1)),w(n,1),C(n),n},a.round=function(n){var s=a(n),o=a.ceil(n);return n-s0))return h;do h.push(f=new Date(+n)),w(n,o),C(n);while(f=s)for(;C(s),!n(s);)s.setTime(s-1)},function(s,o){if(s>=s)if(o<0)for(;++o<=0;)for(;w(s,-1),!n(s););else for(;--o>=0;)for(;w(s,1),!n(s););})},v&&(a.count=function(n,s){return l.setTime(+n),S.setTime(+s),C(l),C(S),Math.floor(v(l,S))},a.every=function(n){return n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?a.filter(m?function(s){return m(s)%n===0}:function(s){return a.count(0,s)%n===0}):a}),a}},58931:function(D,O,t){t.d(O,{o:function(){return C}});var l=t(81628),S=t(69792),i=(0,l.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,v){w.setUTCDate(w.getUTCDate()+v)},function(w,v){return(v-w)/S.SK},function(w){return w.getUTCDate()-1});O.c=i;var C=i.range},8208:function(D,O,t){t.d(O,{Ad:function(){return s},EV:function(){return C},K8:function(){return E},W_:function(){return u},Wq:function(){return o},_6:function(){return m},iG:function(){return p},iO:function(){return h},kl:function(){return f},ob:function(){return b},od:function(){return n},ot:function(){return w},sG:function(){return v},yA:function(){return a}});var l=t(81628),S=t(69792);function i(g){return(0,l.c)(function(c){c.setUTCDate(c.getUTCDate()-(c.getUTCDay()+7-g)%7),c.setUTCHours(0,0,0,0)},function(c,y){c.setUTCDate(c.getUTCDate()+y*7)},function(c,y){return(y-c)/S.KK})}var C=i(0),w=i(1),v=i(2),m=i(3),a=i(4),n=i(5),s=i(6),o=C.range,h=w.range,f=v.range,u=m.range,b=a.range,p=n.range,E=s.range},53528:function(D,O,t){t.d(O,{i:function(){return i}});var l=t(81628),S=(0,l.c)(function(C){C.setUTCMonth(0,1),C.setUTCHours(0,0,0,0)},function(C,w){C.setUTCFullYear(C.getUTCFullYear()+w)},function(C,w){return w.getUTCFullYear()-C.getUTCFullYear()},function(C){return C.getUTCFullYear()});S.every=function(C){return!isFinite(C=Math.floor(C))||!(C>0)?null:(0,l.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/C)*C),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,v){w.setUTCFullYear(w.getUTCFullYear()+v*C)})},O.c=S;var i=S.range},46192:function(D,O,t){t.d(O,{Ab:function(){return o},Mf:function(){return v},Oc:function(){return f},QP:function(){return h},Wc:function(){return s},aI:function(){return E},eC:function(){return b},eg:function(){return m},iB:function(){return n},kD:function(){return a},qT:function(){return w},sJ:function(){return p},sn:function(){return u},uU:function(){return C}});var l=t(81628),S=t(69792);function i(g){return(0,l.c)(function(c){c.setDate(c.getDate()-(c.getDay()+7-g)%7),c.setHours(0,0,0,0)},function(c,y){c.setDate(c.getDate()+y*7)},function(c,y){return(y-c-(y.getTimezoneOffset()-c.getTimezoneOffset())*S.iy)/S.KK})}var C=i(0),w=i(1),v=i(2),m=i(3),a=i(4),n=i(5),s=i(6),o=C.range,h=w.range,f=v.range,u=m.range,b=a.range,p=n.range,E=s.range},32171:function(D,O,t){t.d(O,{Q:function(){return i}});var l=t(81628),S=(0,l.c)(function(C){C.setMonth(0,1),C.setHours(0,0,0,0)},function(C,w){C.setFullYear(C.getFullYear()+w)},function(C,w){return w.getFullYear()-C.getFullYear()},function(C){return C.getFullYear()});S.every=function(C){return!isFinite(C=Math.floor(C))||!(C>0)?null:(0,l.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/C)*C),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,v){w.setFullYear(w.getFullYear()+v*C)})},O.c=S;var i=S.range},64348:function(D,O,t){var l=t(39640)(),S=t(53664),i=l&&S("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var C=S("%SyntaxError%"),w=S("%TypeError%"),v=t(2304);D.exports=function(a,n,s){if(!a||typeof a!="object"&&typeof a!="function")throw new w("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,b=!!v&&v(a,n);if(i)i(a,n,{configurable:f===null&&b?b.configurable:!f,enumerable:o===null&&b?b.enumerable:!o,value:s,writable:h===null&&b?b.writable:!h});else if(u||!o&&!h&&!f)a[n]=s;else throw new C("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(D,O,t){var l=t(41820),S=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,C=Array.prototype.concat,w=Object.defineProperty,v=function(o){return typeof o=="function"&&i.call(o)==="[object Function]"},m=t(39640)(),a=w&&m,n=function(o,h,f,u){if(h in o){if(u===!0){if(o[h]===f)return}else if(!v(u)||!u())return}a?w(o,h,{configurable:!0,enumerable:!1,value:f,writable:!0}):o[h]=f},s=function(o,h){var f=arguments.length>2?arguments[2]:{},u=l(h);S&&(u=C.call(u,Object.getOwnPropertySymbols(h)));for(var b=0;ba*n){var u=(f-h)/a;v[o]=u*1e3}}return v}function i(C){for(var w=[],v=C[0];v<=C[1];v++)for(var m=String.fromCharCode(v),a=C[0];a"u"&&(i=0),typeof S){case"number":if(S>0)return t(S|0,i);break;case"object":if(typeof S.length=="number")return O(S,i,0);break}return[]}D.exports=l},28912:function(D){D.exports=O,D.exports.default=O;function O(B,G,U){U=U||2;var H=G&&G.length,W=H?G[0]*U:B.length,V=t(B,0,W,U,!0),$=[];if(!V||V.next===V.prev)return $;var Z,q,ae,ie,fe,Q,J;if(H&&(V=m(B,G,V,U)),B.length>80*U){Z=ae=B[0],q=ie=B[1];for(var oe=U;oeae&&(ae=fe),Q>ie&&(ie=Q);J=Math.max(ae-Z,ie-q),J=J!==0?1/J:0}return S(V,$,U,Z,q,J),$}function t(B,G,U,H,W){var V,$;if(W===N(B,G,U,H)>0)for(V=G;V=G;V-=H)$=d(V,B[V],B[V+1],$);return $&&c($,$.next)&&(k($),$=$.next),$}function l(B,G){if(!B)return B;G||(G=B);var U=B,H;do if(H=!1,!U.steiner&&(c(U,U.next)||g(U.prev,U,U.next)===0)){if(k(U),U=G=U.prev,U===U.next)break;H=!0}else U=U.next;while(H||U!==G);return G}function S(B,G,U,H,W,V,$){if(B){!$&&V&&h(B,H,W,V);for(var Z=B,q,ae;B.prev!==B.next;){if(q=B.prev,ae=B.next,V?C(B,H,W,V):i(B)){G.push(q.i/U),G.push(B.i/U),G.push(ae.i/U),k(B),B=ae.next,Z=ae.next;continue}if(B=ae,B===Z){$?$===1?(B=w(l(B),G,U),S(B,G,U,H,W,V,2)):$===2&&v(B,G,U,H,W,V):S(l(B),G,U,H,W,V,1);break}}}}function i(B){var G=B.prev,U=B,H=B.next;if(g(G,U,H)>=0)return!1;for(var W=B.next.next;W!==B.prev;){if(p(G.x,G.y,U.x,U.y,H.x,H.y,W.x,W.y)&&g(W.prev,W,W.next)>=0)return!1;W=W.next}return!0}function C(B,G,U,H){var W=B.prev,V=B,$=B.next;if(g(W,V,$)>=0)return!1;for(var Z=W.xV.x?W.x>$.x?W.x:$.x:V.x>$.x?V.x:$.x,ie=W.y>V.y?W.y>$.y?W.y:$.y:V.y>$.y?V.y:$.y,fe=u(Z,q,G,U,H),Q=u(ae,ie,G,U,H),J=B.prevZ,oe=B.nextZ;J&&J.z>=fe&&oe&&oe.z<=Q;){if(J!==B.prev&&J!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,J.x,J.y)&&g(J.prev,J,J.next)>=0||(J=J.prevZ,oe!==B.prev&&oe!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,oe.x,oe.y)&&g(oe.prev,oe,oe.next)>=0))return!1;oe=oe.nextZ}for(;J&&J.z>=fe;){if(J!==B.prev&&J!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,J.x,J.y)&&g(J.prev,J,J.next)>=0)return!1;J=J.prevZ}for(;oe&&oe.z<=Q;){if(oe!==B.prev&&oe!==B.next&&p(W.x,W.y,V.x,V.y,$.x,$.y,oe.x,oe.y)&&g(oe.prev,oe,oe.next)>=0)return!1;oe=oe.nextZ}return!0}function w(B,G,U){var H=B;do{var W=H.prev,V=H.next.next;!c(W,V)&&y(W,H,H.next,V)&&T(W,V)&&T(V,W)&&(G.push(W.i/U),G.push(H.i/U),G.push(V.i/U),k(H),k(H.next),H=B=V),H=H.next}while(H!==B);return l(H)}function v(B,G,U,H,W,V){var $=B;do{for(var Z=$.next.next;Z!==$.prev;){if($.i!==Z.i&&E($,Z)){var q=P($,Z);$=l($,$.next),q=l(q,q.next),S($,G,U,H,W,V),S(q,G,U,H,W,V);return}Z=Z.next}$=$.next}while($!==B)}function m(B,G,U,H){var W=[],V,$,Z,q,ae;for(V=0,$=G.length;V<$;V++)Z=G[V]*H,q=V<$-1?G[V+1]*H:B.length,ae=t(B,Z,q,H,!1),ae===ae.next&&(ae.steiner=!0),W.push(b(ae));for(W.sort(a),V=0;V=U.next.y&&U.next.y!==U.y){var Z=U.x+(W-U.y)*(U.next.x-U.x)/(U.next.y-U.y);if(Z<=H&&Z>V){if(V=Z,Z===H){if(W===U.y)return U;if(W===U.next.y)return U.next}$=U.x=U.x&&U.x>=ae&&H!==U.x&&p(W$.x||U.x===$.x&&o($,U)))&&($=U,fe=Q)),U=U.next;while(U!==q);return $}function o(B,G){return g(B.prev,B,G.prev)<0&&g(G.next,B,B.next)<0}function h(B,G,U,H){var W=B;do W.z===null&&(W.z=u(W.x,W.y,G,U,H)),W.prevZ=W.prev,W.nextZ=W.next,W=W.next;while(W!==B);W.prevZ.nextZ=null,W.prevZ=null,f(W)}function f(B){var G,U,H,W,V,$,Z,q,ae=1;do{for(U=B,B=null,V=null,$=0;U;){for($++,H=U,Z=0,G=0;G0||q>0&&H;)Z!==0&&(q===0||!H||U.z<=H.z)?(W=U,U=U.nextZ,Z--):(W=H,H=H.nextZ,q--),V?V.nextZ=W:B=W,W.prevZ=V,V=W;U=H}V.nextZ=null,ae*=2}while($>1);return B}function u(B,G,U,H,W){return B=32767*(B-U)*W,G=32767*(G-H)*W,B=(B|B<<8)&16711935,B=(B|B<<4)&252645135,B=(B|B<<2)&858993459,B=(B|B<<1)&1431655765,G=(G|G<<8)&16711935,G=(G|G<<4)&252645135,G=(G|G<<2)&858993459,G=(G|G<<1)&1431655765,B|G<<1}function b(B){var G=B,U=B;do(G.x=0&&(B-$)*(H-Z)-(U-$)*(G-Z)>=0&&(U-$)*(V-Z)-(W-$)*(H-Z)>=0}function E(B,G){return B.next.i!==G.i&&B.prev.i!==G.i&&!R(B,G)&&(T(B,G)&&T(G,B)&&L(B,G)&&(g(B.prev,B,G.prev)||g(B,G.prev,G))||c(B,G)&&g(B.prev,B,B.next)>0&&g(G.prev,G,G.next)>0)}function g(B,G,U){return(G.y-B.y)*(U.x-G.x)-(G.x-B.x)*(U.y-G.y)}function c(B,G){return B.x===G.x&&B.y===G.y}function y(B,G,U,H){var W=M(g(B,G,U)),V=M(g(B,G,H)),$=M(g(U,H,B)),Z=M(g(U,H,G));return!!(W!==V&&$!==Z||W===0&&A(B,U,G)||V===0&&A(B,H,G)||$===0&&A(U,B,H)||Z===0&&A(U,G,H))}function A(B,G,U){return G.x<=Math.max(B.x,U.x)&&G.x>=Math.min(B.x,U.x)&&G.y<=Math.max(B.y,U.y)&&G.y>=Math.min(B.y,U.y)}function M(B){return B>0?1:B<0?-1:0}function R(B,G){var U=B;do{if(U.i!==B.i&&U.next.i!==B.i&&U.i!==G.i&&U.next.i!==G.i&&y(U,U.next,B,G))return!0;U=U.next}while(U!==B);return!1}function T(B,G){return g(B.prev,B,B.next)<0?g(B,G,B.next)>=0&&g(B,B.prev,G)>=0:g(B,G,B.prev)<0||g(B,B.next,G)<0}function L(B,G){var U=B,H=!1,W=(B.x+G.x)/2,V=(B.y+G.y)/2;do U.y>V!=U.next.y>V&&U.next.y!==U.y&&W<(U.next.x-U.x)*(V-U.y)/(U.next.y-U.y)+U.x&&(H=!H),U=U.next;while(U!==B);return H}function P(B,G){var U=new I(B.i,B.x,B.y),H=new I(G.i,G.x,G.y),W=B.next,V=G.prev;return B.next=G,G.prev=B,U.next=W,W.prev=U,H.next=U,U.prev=H,V.next=H,H.prev=V,H}function d(B,G,U,H){var W=new I(B,G,U);return H?(W.next=H.next,W.prev=H,H.next.prev=W,H.next=W):(W.prev=W,W.next=W),W}function k(B){B.next.prev=B.prev,B.prev.next=B.next,B.prevZ&&(B.prevZ.nextZ=B.nextZ),B.nextZ&&(B.nextZ.prevZ=B.prevZ)}function I(B,G,U){this.i=B,this.x=G,this.y=U,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}O.deviation=function(B,G,U,H){var W=G&&G.length,V=W?G[0]*U:B.length,$=Math.abs(N(B,0,V,U));if(W)for(var Z=0,q=G.length;Z0&&(H+=B[W-1].length,U.holes.push(H))}return U}},6688:function(D,O,t){var l=t(78484);D.exports=function(i,C){var w=[],v=[],m=[],a={},n=[],s;function o(A){m[A]=!1,a.hasOwnProperty(A)&&Object.keys(a[A]).forEach(function(M){delete a[A][M],m[M]&&o(M)})}function h(A){var M=!1;v.push(A),m[A]=!0;var R,T;for(R=0;R=A})}function b(A){u(A);for(var M=i,R=l(M),T=R.components.filter(function(B){return B.length>1}),L=1/0,P,d=0;d=55296&&A<=56319&&(L+=f[++E])),L=u?s.call(u,b,L,g):L,p?(o.value=L,h(c,g,o)):c[g]=L,++g;y=g}}if(y===void 0)for(y=C(f.length),p&&(c=new p(y)),E=0;E0?1:-1}},96936:function(D,O,t){var l=t(85608),S=Math.abs,i=Math.floor;D.exports=function(C){return isNaN(C)?0:(C=Number(C),C===0||!isFinite(C)?C:l(C)*i(S(C)))}},81304:function(D,O,t){var l=t(96936),S=Math.max;D.exports=function(i){return S(0,l(i))}},14428:function(D,O,t){var l=t(34044),S=t(9252),i=Function.prototype.bind,C=Function.prototype.call,w=Object.keys,v=Object.prototype.propertyIsEnumerable;D.exports=function(m,a){return function(n,s){var o,h=arguments[2],f=arguments[3];return n=Object(S(n)),l(s),o=w(n),f&&o.sort(typeof f=="function"?i.call(f,n):void 0),typeof m!="function"&&(m=o[m]),C.call(m,o,function(u,b){return v.call(n,u)?C.call(s,h,n[u],u,n,b):a})}}},38452:function(D,O,t){D.exports=t(96276)()?Object.assign:t(81892)},96276:function(D){D.exports=function(){var O=Object.assign,t;return typeof O!="function"?!1:(t={foo:"raz"},O(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},81892:function(D,O,t){var l=t(54768),S=t(9252),i=Math.max;D.exports=function(C,w){var v,m,a=i(arguments.length,2),n;for(C=Object(S(C)),n=function(s){try{C[s]=w[s]}catch(o){v||(v=o)}},m=1;m-1}},29768:function(D){var O=Object.prototype.toString,t=O.call("");D.exports=function(l){return typeof l=="string"||l&&typeof l=="object"&&(l instanceof String||O.call(l)===t)||!1}},82252:function(D){var O=Object.create(null),t=Math.random;D.exports=function(){var l;do l=t().toString(36).slice(2);while(O[l]);return l}},52104:function(D,O,t){var l=t(69932),S=t(71056),i=t(21092),C=t(92664),w=t(85512),v=Object.defineProperty,m;m=D.exports=function(a,n){if(!(this instanceof m))throw new TypeError("Constructor requires 'new'");w.call(this,a),n?S.call(n,"key+value")?n="key+value":S.call(n,"key")?n="key":n="value":n="value",v(this,"__kind__",i("",n))},l&&l(m,w),delete m.prototype.constructor,m.prototype=Object.create(w.prototype,{_resolve:i(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),v(m.prototype,C.toStringTag,i("c","Array Iterator"))},76024:function(D,O,t){var l=t(60948),S=t(34044),i=t(29768),C=t(76252),w=Array.isArray,v=Function.prototype.call,m=Array.prototype.some;D.exports=function(a,n){var s,o=arguments[2],h,f,u,b,p,E,g;if(w(a)||l(a)?s="array":i(a)?s="string":a=C(a),S(n),f=function(){u=!0},s==="array"){m.call(a,function(c){return v.call(n,o,c,f),u});return}if(s==="string"){for(p=a.length,b=0;b=55296&&g<=56319&&(E+=a[++b])),v.call(n,o,E,f),!u);++b);return}for(h=a.next();!h.done;){if(v.call(n,o,h.value,f),u)return;h=a.next()}}},76252:function(D,O,t){var l=t(60948),S=t(29768),i=t(52104),C=t(80940),w=t(52891),v=t(92664).iterator;D.exports=function(m){return typeof w(m)[v]=="function"?m[v]():l(m)?new i(m):S(m)?new C(m):new i(m)}},85512:function(D,O,t){var l=t(41476),S=t(38452),i=t(34044),C=t(9252),w=t(21092),v=t(27940),m=t(92664),a=Object.defineProperty,n=Object.defineProperties,s;D.exports=s=function(o,h){if(!(this instanceof s))throw new TypeError("Constructor requires 'new'");n(this,{__list__:w("w",C(o)),__context__:w("w",h),__nextIndex__:w("w",0)}),h&&(i(h.on),h.on("_add",this._onAdd),h.on("_delete",this._onDelete),h.on("_clear",this._onClear))},delete s.prototype.constructor,n(s.prototype,S({_next:w(function(){var o;if(this.__list__){if(this.__redo__&&(o=this.__redo__.shift(),o!==void 0))return o;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){a(this,"__redo__",w("c",[o]));return}this.__redo__.forEach(function(h,f){h>=o&&(this.__redo__[f]=++h)},this),this.__redo__.push(o)}}),_onDelete:w(function(o){var h;o>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(h=this.__redo__.indexOf(o),h!==-1&&this.__redo__.splice(h,1),this.__redo__.forEach(function(f,u){f>o&&(this.__redo__[u]=--f)},this)))}),_onClear:w(function(){this.__redo__&&l.call(this.__redo__),this.__nextIndex__=0})}))),a(s.prototype,m.iterator,w(function(){return this}))},76368:function(D,O,t){var l=t(60948),S=t(42584),i=t(29768),C=t(92664).iterator,w=Array.isArray;D.exports=function(v){return S(v)?w(v)||i(v)||l(v)?!0:typeof v[C]=="function":!1}},80940:function(D,O,t){var l=t(69932),S=t(21092),i=t(92664),C=t(85512),w=Object.defineProperty,v;v=D.exports=function(m){if(!(this instanceof v))throw new TypeError("Constructor requires 'new'");m=String(m),C.call(this,m),w(this,"__length__",S("",m.length))},l&&l(v,C),delete v.prototype.constructor,v.prototype=Object.create(C.prototype,{_next:S(function(){if(this.__list__){if(this.__nextIndex__=55296&&n<=56319?a+this.__list__[this.__nextIndex__++]:a)})}),w(v.prototype,i.toStringTag,S("c","String Iterator"))},52891:function(D,O,t){var l=t(76368);D.exports=function(S){if(!l(S))throw new TypeError(S+" is not iterable");return S}},60964:function(D){function O(l,S){if(l==null)throw new TypeError("Cannot convert first argument to object");for(var i=Object(l),C=1;C0&&(L=A[0]),L instanceof Error)throw L;var P=new Error("Unhandled error."+(L?" ("+L.message+")":""));throw P.context=L,P}var d=T[y];if(d===void 0)return!1;if(typeof d=="function")t(d,this,A);else for(var k=d.length,I=f(d,k),M=0;M0&&L.length>R&&!L.warned){L.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=c,P.type=y,P.count=L.length,S(P)}return c}C.prototype.addListener=function(y,A){return a(this,y,A,!1)},C.prototype.on=C.prototype.addListener,C.prototype.prependListener=function(y,A){return a(this,y,A,!0)};function n(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(c,y,A){var M={fired:!1,wrapFn:void 0,target:c,type:y,listener:A},R=n.bind(M);return R.listener=A,M.wrapFn=R,R}C.prototype.once=function(y,A){return v(A),this.on(y,s(this,y,A)),this},C.prototype.prependOnceListener=function(y,A){return v(A),this.prependListener(y,s(this,y,A)),this},C.prototype.removeListener=function(y,A){var M,R,T,L,P;if(v(A),R=this._events,R===void 0)return this;if(M=R[y],M===void 0)return this;if(M===A||M.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete R[y],R.removeListener&&this.emit("removeListener",y,M.listener||A));else if(typeof M!="function"){for(T=-1,L=M.length-1;L>=0;L--)if(M[L]===A||M[L].listener===A){P=M[L].listener,T=L;break}if(T<0)return this;T===0?M.shift():u(M,T),M.length===1&&(R[y]=M[0]),R.removeListener!==void 0&&this.emit("removeListener",y,P||A)}return this},C.prototype.off=C.prototype.removeListener,C.prototype.removeAllListeners=function(y){var A,M,R;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[y]),this;if(arguments.length===0){var T=Object.keys(M),L;for(R=0;R=0;R--)this.removeListener(y,A[R]);return this};function o(c,y,A){var M=c._events;if(M===void 0)return[];var R=M[y];return R===void 0?[]:typeof R=="function"?A?[R.listener||R]:[R]:A?b(R):f(R,R.length)}C.prototype.listeners=function(y){return o(this,y,!0)},C.prototype.rawListeners=function(y){return o(this,y,!1)},C.listenerCount=function(c,y){return typeof c.listenerCount=="function"?c.listenerCount(y):h.call(c,y)},C.prototype.listenerCount=h;function h(c){var y=this._events;if(y!==void 0){var A=y[c];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}C.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function f(c,y){for(var A=new Array(y),M=0;Mw[0]-a[0]/2&&(u=a[0]/2,b+=a[1]);return v}},71920:function(D){D.exports=O,O.canvas=document.createElement("canvas"),O.cache={};function O(n,C){C||(C={}),(typeof n=="string"||Array.isArray(n))&&(C.family=n);var w=Array.isArray(C.family)?C.family.join(", "):C.family;if(!w)throw Error("`family` must be defined");var v=C.size||C.fontSize||C.em||48,m=C.weight||C.fontWeight||"",a=C.style||C.fontStyle||"",n=[a,m,v].join(" ")+"px "+w,s=C.origin||"top";if(O.cache[w]&&v<=O.cache[w].em)return t(O.cache[w],s);var o=C.canvas||O.canvas,h=o.getContext("2d"),f={upper:C.upper!==void 0?C.upper:"H",lower:C.lower!==void 0?C.lower:"x",descent:C.descent!==void 0?C.descent:"p",ascent:C.ascent!==void 0?C.ascent:"h",tittle:C.tittle!==void 0?C.tittle:"i",overshoot:C.overshoot!==void 0?C.overshoot:"O"},u=Math.ceil(v*1.5);o.height=u,o.width=u*.5,h.font=n;var b="H",p={top:0};h.clearRect(0,0,u,u),h.textBaseline="top",h.fillStyle="black",h.fillText(b,0,0);var E=l(h.getImageData(0,0,u,u));h.clearRect(0,0,u,u),h.textBaseline="bottom",h.fillText(b,0,u);var g=l(h.getImageData(0,0,u,u));p.lineHeight=p.bottom=u-g+E,h.clearRect(0,0,u,u),h.textBaseline="alphabetic",h.fillText(b,0,u);var c=l(h.getImageData(0,0,u,u)),y=u-c-1+E;p.baseline=p.alphabetic=y,h.clearRect(0,0,u,u),h.textBaseline="middle",h.fillText(b,0,u*.5);var A=l(h.getImageData(0,0,u,u));p.median=p.middle=u-A-1+E-u*.5,h.clearRect(0,0,u,u),h.textBaseline="hanging",h.fillText(b,0,u*.5);var M=l(h.getImageData(0,0,u,u));p.hanging=u-M-1+E-u*.5,h.clearRect(0,0,u,u),h.textBaseline="ideographic",h.fillText(b,0,u);var R=l(h.getImageData(0,0,u,u));if(p.ideographic=u-R-1+E,f.upper&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.upper,0,0),p.upper=l(h.getImageData(0,0,u,u)),p.capHeight=p.baseline-p.upper),f.lower&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.lower,0,0),p.lower=l(h.getImageData(0,0,u,u)),p.xHeight=p.baseline-p.lower),f.tittle&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.tittle,0,0),p.tittle=l(h.getImageData(0,0,u,u))),f.ascent&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.ascent,0,0),p.ascent=l(h.getImageData(0,0,u,u))),f.descent&&(h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.descent,0,0),p.descent=S(h.getImageData(0,0,u,u))),f.overshoot){h.clearRect(0,0,u,u),h.textBaseline="top",h.fillText(f.overshoot,0,0);var T=S(h.getImageData(0,0,u,u));p.overshoot=T-y}for(var L in p)p[L]/=v;return p.em=v,O.cache[w]=p,t(p,s)}function t(i,C){var w={};typeof C=="string"&&(C=i[C]);for(var v in i)v!=="em"&&(w[v]=i[v]-C);return w}function l(i){for(var C=i.height,w=i.data,v=3;v0;v-=4)if(w[v]!==0)return Math.floor((v-3)*.25/C)}},46492:function(D,O,t){var l=t(90720),S=Object.prototype.toString,i=Object.prototype.hasOwnProperty,C=function(n,s,o){for(var h=0,f=n.length;h=3&&(h=o),S.call(n)==="[object Array]"?C(n,s,h):typeof n=="string"?w(n,s,h):v(n,s,h)};D.exports=m},74336:function(D){var O="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,l=Math.max,S="[object Function]",i=function(m,a){for(var n=[],s=0;s"u"&&!l.canvas)return null;var S=l.canvas||document.createElement("canvas");typeof l.width=="number"&&(S.width=l.width),typeof l.height=="number"&&(S.height=l.height);var i=l,C;try{var w=[t];t.indexOf("webgl")===0&&w.push("experimental-"+t);for(var v=0;v"u"||!o?l:o(Uint8Array),u={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":n&&o?o([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":n&&o?o(o([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map>"u"||!n||!o?l:o(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set>"u"||!n||!o?l:o(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":n&&o?o(""[Symbol.iterator]()):l,"%Symbol%":n?Symbol:l,"%SyntaxError%":S,"%ThrowTypeError%":a,"%TypedArray%":f,"%TypeError%":C,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};if(o)try{null.error}catch(I){var b=o(o(I));u["%Error.prototype%"]=b}var p=function I(N){var B;if(N==="%AsyncFunction%")B=w("async function () {}");else if(N==="%GeneratorFunction%")B=w("function* () {}");else if(N==="%AsyncGeneratorFunction%")B=w("async function* () {}");else if(N==="%AsyncGenerator%"){var G=I("%AsyncGeneratorFunction%");G&&(B=G.prototype)}else if(N==="%AsyncIteratorPrototype%"){var U=I("%AsyncGenerator%");U&&o&&(B=o(U.prototype))}return u[N]=B,B},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=t(8844),c=t(92064),y=g.call(Function.call,Array.prototype.concat),A=g.call(Function.apply,Array.prototype.splice),M=g.call(Function.call,String.prototype.replace),R=g.call(Function.call,String.prototype.slice),T=g.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,d=function(N){var B=R(N,0,1),G=R(N,-1);if(B==="%"&&G!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&B!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var U=[];return M(N,L,function(H,W,V,$){U[U.length]=V?M($,P,"$1"):W||H}),U},k=function(N,B){var G=N,U;if(c(E,G)&&(U=E[G],G="%"+U[0]+"%"),c(u,G)){var H=u[G];if(H===h&&(H=p(G)),typeof H>"u"&&!B)throw new C("intrinsic "+N+" exists, but is not available. Please file an issue!");return{alias:U,name:G,value:H}}throw new S("intrinsic "+N+" does not exist!")};D.exports=function(N,B){if(typeof N!="string"||N.length===0)throw new C("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new C('"allowMissing" argument must be a boolean');if(T(/^%?[^%]*%?$/,N)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=d(N),U=G.length>0?G[0]:"",H=k("%"+U+"%",B),W=H.name,V=H.value,$=!1,Z=H.alias;Z&&(U=Z[0],A(G,y([0,1],Z)));for(var q=1,ae=!0;q=G.length){var J=v(V,ie);ae=!!J,ae&&"get"in J&&!("originalValue"in J.get)?V=J.get:V=V[ie]}else ae=c(V,ie),V=V[ie];ae&&!$&&(u[W]=V)}}return V}},12408:function(D){D.exports=O;function O(t,l){var S=l[0],i=l[1],C=l[2],w=l[3],v=l[4],m=l[5],a=l[6],n=l[7],s=l[8],o=l[9],h=l[10],f=l[11],u=l[12],b=l[13],p=l[14],E=l[15];return t[0]=m*(h*E-f*p)-o*(a*E-n*p)+b*(a*f-n*h),t[1]=-(i*(h*E-f*p)-o*(C*E-w*p)+b*(C*f-w*h)),t[2]=i*(a*E-n*p)-m*(C*E-w*p)+b*(C*n-w*a),t[3]=-(i*(a*f-n*h)-m*(C*f-w*h)+o*(C*n-w*a)),t[4]=-(v*(h*E-f*p)-s*(a*E-n*p)+u*(a*f-n*h)),t[5]=S*(h*E-f*p)-s*(C*E-w*p)+u*(C*f-w*h),t[6]=-(S*(a*E-n*p)-v*(C*E-w*p)+u*(C*n-w*a)),t[7]=S*(a*f-n*h)-v*(C*f-w*h)+s*(C*n-w*a),t[8]=v*(o*E-f*b)-s*(m*E-n*b)+u*(m*f-n*o),t[9]=-(S*(o*E-f*b)-s*(i*E-w*b)+u*(i*f-w*o)),t[10]=S*(m*E-n*b)-v*(i*E-w*b)+u*(i*n-w*m),t[11]=-(S*(m*f-n*o)-v*(i*f-w*o)+s*(i*n-w*m)),t[12]=-(v*(o*p-h*b)-s*(m*p-a*b)+u*(m*h-a*o)),t[13]=S*(o*p-h*b)-s*(i*p-C*b)+u*(i*h-C*o),t[14]=-(S*(m*p-a*b)-v*(i*p-C*b)+u*(i*a-C*m)),t[15]=S*(m*h-a*o)-v*(i*h-C*o)+s*(i*a-C*m),t}},76860:function(D){D.exports=O;function O(t){var l=new Float32Array(16);return l[0]=t[0],l[1]=t[1],l[2]=t[2],l[3]=t[3],l[4]=t[4],l[5]=t[5],l[6]=t[6],l[7]=t[7],l[8]=t[8],l[9]=t[9],l[10]=t[10],l[11]=t[11],l[12]=t[12],l[13]=t[13],l[14]=t[14],l[15]=t[15],l}},64492:function(D){D.exports=O;function O(t,l){return t[0]=l[0],t[1]=l[1],t[2]=l[2],t[3]=l[3],t[4]=l[4],t[5]=l[5],t[6]=l[6],t[7]=l[7],t[8]=l[8],t[9]=l[9],t[10]=l[10],t[11]=l[11],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15],t}},54212:function(D){D.exports=O;function O(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},70800:function(D){D.exports=O;function O(t){var l=t[0],S=t[1],i=t[2],C=t[3],w=t[4],v=t[5],m=t[6],a=t[7],n=t[8],s=t[9],o=t[10],h=t[11],f=t[12],u=t[13],b=t[14],p=t[15],E=l*v-S*w,g=l*m-i*w,c=l*a-C*w,y=S*m-i*v,A=S*a-C*v,M=i*a-C*m,R=n*u-s*f,T=n*b-o*f,L=n*p-h*f,P=s*b-o*u,d=s*p-h*u,k=o*p-h*b;return E*k-g*d+c*P+y*L-A*T+M*R}},61784:function(D){D.exports=O;function O(t,l){var S=l[0],i=l[1],C=l[2],w=l[3],v=S+S,m=i+i,a=C+C,n=S*v,s=i*v,o=i*m,h=C*v,f=C*m,u=C*a,b=w*v,p=w*m,E=w*a;return t[0]=1-o-u,t[1]=s+E,t[2]=h-p,t[3]=0,t[4]=s-E,t[5]=1-n-u,t[6]=f+b,t[7]=0,t[8]=h+p,t[9]=f-b,t[10]=1-n-o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},91616:function(D){D.exports=O;function O(t,l,S){var i,C,w,v=S[0],m=S[1],a=S[2],n=Math.sqrt(v*v+m*m+a*a);return Math.abs(n)<1e-6?null:(n=1/n,v*=n,m*=n,a*=n,i=Math.sin(l),C=Math.cos(l),w=1-C,t[0]=v*v*w+C,t[1]=m*v*w+a*i,t[2]=a*v*w-m*i,t[3]=0,t[4]=v*m*w-a*i,t[5]=m*m*w+C,t[6]=a*m*w+v*i,t[7]=0,t[8]=v*a*w+m*i,t[9]=m*a*w-v*i,t[10]=a*a*w+C,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}},51944:function(D){D.exports=O;function O(t,l,S){var i=l[0],C=l[1],w=l[2],v=l[3],m=i+i,a=C+C,n=w+w,s=i*m,o=i*a,h=i*n,f=C*a,u=C*n,b=w*n,p=v*m,E=v*a,g=v*n;return t[0]=1-(f+b),t[1]=o+g,t[2]=h-E,t[3]=0,t[4]=o-g,t[5]=1-(s+b),t[6]=u+p,t[7]=0,t[8]=h+E,t[9]=u-p,t[10]=1-(s+f),t[11]=0,t[12]=S[0],t[13]=S[1],t[14]=S[2],t[15]=1,t}},69444:function(D){D.exports=O;function O(t,l){return t[0]=l[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},48268:function(D){D.exports=O;function O(t,l){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=l[0],t[13]=l[1],t[14]=l[2],t[15]=1,t}},21856:function(D){D.exports=O;function O(t,l){var S=Math.sin(l),i=Math.cos(l);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=S,t[7]=0,t[8]=0,t[9]=-S,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},79216:function(D){D.exports=O;function O(t,l){var S=Math.sin(l),i=Math.cos(l);return t[0]=i,t[1]=0,t[2]=-S,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=S,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},57736:function(D){D.exports=O;function O(t,l){var S=Math.sin(l),i=Math.cos(l);return t[0]=i,t[1]=S,t[2]=0,t[3]=0,t[4]=-S,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},38848:function(D){D.exports=O;function O(t,l,S,i,C,w,v){var m=1/(S-l),a=1/(C-i),n=1/(w-v);return t[0]=w*2*m,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=w*2*a,t[6]=0,t[7]=0,t[8]=(S+l)*m,t[9]=(C+i)*a,t[10]=(v+w)*n,t[11]=-1,t[12]=0,t[13]=0,t[14]=v*w*2*n,t[15]=0,t}},36635:function(D){D.exports=O;function O(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},36524:function(D,O,t){D.exports={create:t(54212),clone:t(76860),copy:t(64492),identity:t(36635),transpose:t(86520),invert:t(4308),adjoint:t(12408),determinant:t(70800),multiply:t(80944),translate:t(35176),scale:t(68152),rotate:t(30016),rotateX:t(15456),rotateY:t(64840),rotateZ:t(4192),fromRotation:t(91616),fromRotationTranslation:t(51944),fromScaling:t(69444),fromTranslation:t(48268),fromXRotation:t(21856),fromYRotation:t(79216),fromZRotation:t(57736),fromQuat:t(61784),frustum:t(38848),perspective:t(51296),perspectiveFromFieldOfView:t(63688),ortho:t(97688),lookAt:t(56508),str:t(89412)}},4308:function(D){D.exports=O;function O(t,l){var S=l[0],i=l[1],C=l[2],w=l[3],v=l[4],m=l[5],a=l[6],n=l[7],s=l[8],o=l[9],h=l[10],f=l[11],u=l[12],b=l[13],p=l[14],E=l[15],g=S*m-i*v,c=S*a-C*v,y=S*n-w*v,A=i*a-C*m,M=i*n-w*m,R=C*n-w*a,T=s*b-o*u,L=s*p-h*u,P=s*E-f*u,d=o*p-h*b,k=o*E-f*b,I=h*E-f*p,N=g*I-c*k+y*d+A*P-M*L+R*T;return N?(N=1/N,t[0]=(m*I-a*k+n*d)*N,t[1]=(C*k-i*I-w*d)*N,t[2]=(b*R-p*M+E*A)*N,t[3]=(h*M-o*R-f*A)*N,t[4]=(a*P-v*I-n*L)*N,t[5]=(S*I-C*P+w*L)*N,t[6]=(p*y-u*R-E*c)*N,t[7]=(s*R-h*y+f*c)*N,t[8]=(v*k-m*P+n*T)*N,t[9]=(i*P-S*k-w*T)*N,t[10]=(u*M-b*y+E*g)*N,t[11]=(o*y-s*M-f*g)*N,t[12]=(m*L-v*d-a*T)*N,t[13]=(S*d-i*L+C*T)*N,t[14]=(b*c-u*A-p*g)*N,t[15]=(s*A-o*c+h*g)*N,t):null}},56508:function(D,O,t){var l=t(36635);D.exports=S;function S(i,C,w,v){var m,a,n,s,o,h,f,u,b,p,E=C[0],g=C[1],c=C[2],y=v[0],A=v[1],M=v[2],R=w[0],T=w[1],L=w[2];return Math.abs(E-R)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(c-L)<1e-6?l(i):(f=E-R,u=g-T,b=c-L,p=1/Math.sqrt(f*f+u*u+b*b),f*=p,u*=p,b*=p,m=A*b-M*u,a=M*f-y*b,n=y*u-A*f,p=Math.sqrt(m*m+a*a+n*n),p?(p=1/p,m*=p,a*=p,n*=p):(m=0,a=0,n=0),s=u*n-b*a,o=b*m-f*n,h=f*a-u*m,p=Math.sqrt(s*s+o*o+h*h),p?(p=1/p,s*=p,o*=p,h*=p):(s=0,o=0,h=0),i[0]=m,i[1]=s,i[2]=f,i[3]=0,i[4]=a,i[5]=o,i[6]=u,i[7]=0,i[8]=n,i[9]=h,i[10]=b,i[11]=0,i[12]=-(m*E+a*g+n*c),i[13]=-(s*E+o*g+h*c),i[14]=-(f*E+u*g+b*c),i[15]=1,i)}},80944:function(D){D.exports=O;function O(t,l,S){var i=l[0],C=l[1],w=l[2],v=l[3],m=l[4],a=l[5],n=l[6],s=l[7],o=l[8],h=l[9],f=l[10],u=l[11],b=l[12],p=l[13],E=l[14],g=l[15],c=S[0],y=S[1],A=S[2],M=S[3];return t[0]=c*i+y*m+A*o+M*b,t[1]=c*C+y*a+A*h+M*p,t[2]=c*w+y*n+A*f+M*E,t[3]=c*v+y*s+A*u+M*g,c=S[4],y=S[5],A=S[6],M=S[7],t[4]=c*i+y*m+A*o+M*b,t[5]=c*C+y*a+A*h+M*p,t[6]=c*w+y*n+A*f+M*E,t[7]=c*v+y*s+A*u+M*g,c=S[8],y=S[9],A=S[10],M=S[11],t[8]=c*i+y*m+A*o+M*b,t[9]=c*C+y*a+A*h+M*p,t[10]=c*w+y*n+A*f+M*E,t[11]=c*v+y*s+A*u+M*g,c=S[12],y=S[13],A=S[14],M=S[15],t[12]=c*i+y*m+A*o+M*b,t[13]=c*C+y*a+A*h+M*p,t[14]=c*w+y*n+A*f+M*E,t[15]=c*v+y*s+A*u+M*g,t}},97688:function(D){D.exports=O;function O(t,l,S,i,C,w,v){var m=1/(l-S),a=1/(i-C),n=1/(w-v);return t[0]=-2*m,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*n,t[11]=0,t[12]=(l+S)*m,t[13]=(C+i)*a,t[14]=(v+w)*n,t[15]=1,t}},51296:function(D){D.exports=O;function O(t,l,S,i,C){var w=1/Math.tan(l/2),v=1/(i-C);return t[0]=w/S,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=w,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(C+i)*v,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*C*i*v,t[15]=0,t}},63688:function(D){D.exports=O;function O(t,l,S,i){var C=Math.tan(l.upDegrees*Math.PI/180),w=Math.tan(l.downDegrees*Math.PI/180),v=Math.tan(l.leftDegrees*Math.PI/180),m=Math.tan(l.rightDegrees*Math.PI/180),a=2/(v+m),n=2/(C+w);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=0,t[7]=0,t[8]=-((v-m)*a*.5),t[9]=(C-w)*n*.5,t[10]=i/(S-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*S/(S-i),t[15]=0,t}},30016:function(D){D.exports=O;function O(t,l,S,i){var C=i[0],w=i[1],v=i[2],m=Math.sqrt(C*C+w*w+v*v),a,n,s,o,h,f,u,b,p,E,g,c,y,A,M,R,T,L,P,d,k,I,N,B;return Math.abs(m)<1e-6?null:(m=1/m,C*=m,w*=m,v*=m,a=Math.sin(S),n=Math.cos(S),s=1-n,o=l[0],h=l[1],f=l[2],u=l[3],b=l[4],p=l[5],E=l[6],g=l[7],c=l[8],y=l[9],A=l[10],M=l[11],R=C*C*s+n,T=w*C*s+v*a,L=v*C*s-w*a,P=C*w*s-v*a,d=w*w*s+n,k=v*w*s+C*a,I=C*v*s+w*a,N=w*v*s-C*a,B=v*v*s+n,t[0]=o*R+b*T+c*L,t[1]=h*R+p*T+y*L,t[2]=f*R+E*T+A*L,t[3]=u*R+g*T+M*L,t[4]=o*P+b*d+c*k,t[5]=h*P+p*d+y*k,t[6]=f*P+E*d+A*k,t[7]=u*P+g*d+M*k,t[8]=o*I+b*N+c*B,t[9]=h*I+p*N+y*B,t[10]=f*I+E*N+A*B,t[11]=u*I+g*N+M*B,l!==t&&(t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t)}},15456:function(D){D.exports=O;function O(t,l,S){var i=Math.sin(S),C=Math.cos(S),w=l[4],v=l[5],m=l[6],a=l[7],n=l[8],s=l[9],o=l[10],h=l[11];return l!==t&&(t[0]=l[0],t[1]=l[1],t[2]=l[2],t[3]=l[3],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t[4]=w*C+n*i,t[5]=v*C+s*i,t[6]=m*C+o*i,t[7]=a*C+h*i,t[8]=n*C-w*i,t[9]=s*C-v*i,t[10]=o*C-m*i,t[11]=h*C-a*i,t}},64840:function(D){D.exports=O;function O(t,l,S){var i=Math.sin(S),C=Math.cos(S),w=l[0],v=l[1],m=l[2],a=l[3],n=l[8],s=l[9],o=l[10],h=l[11];return l!==t&&(t[4]=l[4],t[5]=l[5],t[6]=l[6],t[7]=l[7],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t[0]=w*C-n*i,t[1]=v*C-s*i,t[2]=m*C-o*i,t[3]=a*C-h*i,t[8]=w*i+n*C,t[9]=v*i+s*C,t[10]=m*i+o*C,t[11]=a*i+h*C,t}},4192:function(D){D.exports=O;function O(t,l,S){var i=Math.sin(S),C=Math.cos(S),w=l[0],v=l[1],m=l[2],a=l[3],n=l[4],s=l[5],o=l[6],h=l[7];return l!==t&&(t[8]=l[8],t[9]=l[9],t[10]=l[10],t[11]=l[11],t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15]),t[0]=w*C+n*i,t[1]=v*C+s*i,t[2]=m*C+o*i,t[3]=a*C+h*i,t[4]=n*C-w*i,t[5]=s*C-v*i,t[6]=o*C-m*i,t[7]=h*C-a*i,t}},68152:function(D){D.exports=O;function O(t,l,S){var i=S[0],C=S[1],w=S[2];return t[0]=l[0]*i,t[1]=l[1]*i,t[2]=l[2]*i,t[3]=l[3]*i,t[4]=l[4]*C,t[5]=l[5]*C,t[6]=l[6]*C,t[7]=l[7]*C,t[8]=l[8]*w,t[9]=l[9]*w,t[10]=l[10]*w,t[11]=l[11]*w,t[12]=l[12],t[13]=l[13],t[14]=l[14],t[15]=l[15],t}},89412:function(D){D.exports=O;function O(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}},35176:function(D){D.exports=O;function O(t,l,S){var i=S[0],C=S[1],w=S[2],v,m,a,n,s,o,h,f,u,b,p,E;return l===t?(t[12]=l[0]*i+l[4]*C+l[8]*w+l[12],t[13]=l[1]*i+l[5]*C+l[9]*w+l[13],t[14]=l[2]*i+l[6]*C+l[10]*w+l[14],t[15]=l[3]*i+l[7]*C+l[11]*w+l[15]):(v=l[0],m=l[1],a=l[2],n=l[3],s=l[4],o=l[5],h=l[6],f=l[7],u=l[8],b=l[9],p=l[10],E=l[11],t[0]=v,t[1]=m,t[2]=a,t[3]=n,t[4]=s,t[5]=o,t[6]=h,t[7]=f,t[8]=u,t[9]=b,t[10]=p,t[11]=E,t[12]=v*i+s*C+u*w+l[12],t[13]=m*i+o*C+b*w+l[13],t[14]=a*i+h*C+p*w+l[14],t[15]=n*i+f*C+E*w+l[15]),t}},86520:function(D){D.exports=O;function O(t,l){if(t===l){var S=l[1],i=l[2],C=l[3],w=l[6],v=l[7],m=l[11];t[1]=l[4],t[2]=l[8],t[3]=l[12],t[4]=S,t[6]=l[9],t[7]=l[13],t[8]=i,t[9]=w,t[11]=l[14],t[12]=C,t[13]=v,t[14]=m}else t[0]=l[0],t[1]=l[4],t[2]=l[8],t[3]=l[12],t[4]=l[1],t[5]=l[5],t[6]=l[9],t[7]=l[13],t[8]=l[2],t[9]=l[6],t[10]=l[10],t[11]=l[14],t[12]=l[3],t[13]=l[7],t[14]=l[11],t[15]=l[15];return t}},23352:function(D,O,t){var l=t(42771),S=t(55616),i=t(28624),C=t(55212),w=t(60463),v=t(72160),m=t(33888),a=t(14144),n=t(51160),s=t(58908),o=t(65819),h=t(23464),f=t(63768),u=t(50896),b=t(71920),p=t(47520),E=t(308),g=E.nextPow2,c=new w,y=!1;if(document.body){var A=document.body.appendChild(document.createElement("div"));A.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(A).fontStretch&&(y=!0),document.body.removeChild(A)}var M=function(L){R(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=C(L),this.shader=c.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),c.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(s(L)?L:{})};M.prototype.createShader=function(){var L=this.regl,P=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -3163,20 +3163,20 @@ should equal // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),d={};return{regl:L,draw:P,atlas:d}},M.prototype.update=function(L){var P=this;if(typeof L=="string")L={text:L};else if(!L)return;L=S(L,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),L.opacity!=null&&(Array.isArray(L.opacity)?this.opacity=L.opacity.map(function(ze){return parseFloat(ze)}):this.opacity=parseFloat(L.opacity)),L.viewport!=null&&(this.viewport=n(L.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),L.kerning!=null&&(this.kerning=L.kerning),L.offset!=null&&(typeof L.offset=="number"&&(L.offset=[L.offset,0]),this.positionOffset=p(L.offset)),L.direction&&(this.direction=L.direction),L.range&&(this.range=L.range,this.scale=[1/(L.range[2]-L.range[0]),1/(L.range[3]-L.range[1])],this.translate=[-L.range[0],-L.range[1]]),L.scale&&(this.scale=L.scale),L.translate&&(this.translate=L.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!L.font&&(L.font=M.baseFontSize+"px sans-serif");var d=!1,k=!1;if(L.font&&(Array.isArray(L.font)?L.font:[L.font]).forEach(function(ze,$e){if(typeof ze=="string")try{ze=l.parse(ze)}catch{ze=l.parse(M.baseFontSize+"px "+ze)}else ze=l.parse(l.stringify(ze));var st=l.stringify({size:M.baseFontSize,family:ze.family,stretch:x?ze.stretch:void 0,variant:ze.variant,weight:ze.weight,style:ze.style}),vt=o(ze.size),at=Math.round(vt[0]*h(vt[1]));if(at!==P.fontSize[$e]&&(k=!0,P.fontSize[$e]=at),(!P.font[$e]||st!=P.font[$e].baseString)&&(d=!0,P.font[$e]=M.fonts[st],!P.font[$e])){var nt=ze.family.join(", "),mt=[ze.style];ze.style!=ze.variant&&mt.push(ze.variant),ze.variant!=ze.weight&&mt.push(ze.weight),x&&ze.weight!=ze.stretch&&mt.push(ze.stretch),P.font[$e]={baseString:st,family:nt,weight:ze.weight,stretch:ze.stretch,style:ze.style,variant:ze.variant,width:{},kerning:{},metrics:b(nt,{origin:"top",fontSize:M.baseFontSize,fontStyle:mt.join(" ")})},M.fonts[st]=P.font[$e]}}),(d||k)&&this.font.forEach(function(ze,$e){var st=l.stringify({size:P.fontSize[$e],family:ze.family,stretch:x?ze.stretch:void 0,variant:ze.variant,weight:ze.weight,style:ze.style});if(P.fontAtlas[$e]=P.shader.atlas[st],!P.fontAtlas[$e]){var vt=ze.metrics;P.shader.atlas[st]=P.fontAtlas[$e]={fontString:st,step:Math.ceil(P.fontSize[$e]*vt.bottom*.5)*2,em:P.fontSize[$e],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:P.regl.texture()}}L.text==null&&(L.text=P.text)}),typeof L.text=="string"&&L.position&&L.position.length>2){for(var I=Array(L.position.length*.5),N=0;N2){for(var U=!L.position[0].length,H=a.mallocFloat(this.count*2),W=0,V=0;W1?P.align[$e]:P.align[0]:P.align;if(typeof st=="number")return st;switch(st){case"right":case"end":return-ze;case"center":case"centre":case"middle":return-ze*.5}return 0})),this.baseline==null&&L.baseline==null&&(L.baseline=0),L.baseline!=null&&(this.baseline=L.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ze,$e){var st=(P.font[$e]||P.font[0]).metrics,vt=0;return vt+=st.bottom*.5,typeof ze=="number"?vt+=ze-st.baseline:vt+=-st[ze],vt*=-1,vt})),L.color!=null)if(L.color||(L.color="transparent"),typeof L.color=="string"||!isNaN(L.color))this.color=v(L.color,"uint8");else{var Ee;if(typeof L.color[0]=="number"&&L.color.length>this.counts.length){var Se=L.color.length;Ee=a.mallocUint8(Se);for(var ke=(L.color.subarray||L.color.slice).bind(L.color),Te=0;Te4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ie){var Ue=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ue);for(var Ne=0;Ne1?this.counts[Ne]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ne]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ne*4,Ne*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ne]:this.opacity,baseline:this.baselineOffset[Ne]!=null?this.baselineOffset[Ne]:this.baselineOffset[0],align:this.align?this.alignOffset[Ne]!=null?this.alignOffset[Ne]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ne]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ne*2,Ne*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},M.prototype.destroy=function(){},M.prototype.kerning=!0,M.prototype.position={constant:new Float32Array(2)},M.prototype.translate=null,M.prototype.scale=null,M.prototype.font=null,M.prototype.text="",M.prototype.positionOffset=[0,0],M.prototype.opacity=1,M.prototype.color=new Uint8Array([0,0,0,255]),M.prototype.alignOffset=[0,0],M.maxAtlasSize=1024,M.atlasCanvas=document.createElement("canvas"),M.atlasContext=M.atlasCanvas.getContext("2d",{alpha:!1}),M.baseFontSize=64,M.fonts={};function R(T){return typeof T=="function"&&T._gl&&T.prop&&T.texture&&T.buffer}D.exports=M},55212:function(D,O,t){var l=t(55616);D.exports=function(a){if(a?typeof a=="string"&&(a={container:a}):a={},i(a)?a={container:a}:C(a)?a={container:a}:w(a)?a={gl:a}:a=l(a,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),a.pixelRatio||(a.pixelRatio=t.g.pixelRatio||1),a.gl)return a.gl;if(a.canvas&&(a.container=a.canvas.parentNode),a.container){if(typeof a.container=="string"){var n=document.querySelector(a.container);if(!n)throw Error("Element "+a.container+" is not found");a.container=n}i(a.container)?(a.canvas=a.container,a.container=a.canvas.parentNode):a.canvas||(a.canvas=v(),a.container.appendChild(a.canvas),S(a))}else if(!a.canvas)if(typeof document<"u")a.container=document.body||document.documentElement,a.canvas=v(),a.container.appendChild(a.canvas),S(a);else throw Error("Not DOM environment. Use headless-gl.");return a.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(s){try{a.gl=a.canvas.getContext(s,a.attrs)}catch{}return a.gl}),a.gl};function S(m){if(m.container)if(m.container==document.body)document.body.style.width||(m.canvas.width=m.width||m.pixelRatio*t.g.innerWidth),document.body.style.height||(m.canvas.height=m.height||m.pixelRatio*t.g.innerHeight);else{var a=m.container.getBoundingClientRect();m.canvas.width=m.width||a.right-a.left,m.canvas.height=m.height||a.bottom-a.top}}function i(m){return typeof m.getContext=="function"&&"width"in m&&"height"in m}function C(m){return typeof m.nodeName=="string"&&typeof m.appendChild=="function"&&typeof m.getBoundingClientRect=="function"}function w(m){return typeof m.drawArrays=="function"||typeof m.drawElements=="function"}function v(){var m=document.createElement("canvas");return m.style.position="absolute",m.style.top=0,m.style.left=0,m}},26444:function(D){D.exports=function(O){typeof O=="string"&&(O=[O]);for(var t=[].slice.call(arguments,1),l=[],S=0;S */O.read=function(t,l,S,i,C){var w,v,m=C*8-i-1,a=(1<>1,s=-7,o=S?C-1:0,h=S?-1:1,f=t[l+o];for(o+=h,w=f&(1<<-s)-1,f>>=-s,s+=m;s>0;w=w*256+t[l+o],o+=h,s-=8);for(v=w&(1<<-s)-1,w>>=-s,s+=i;s>0;v=v*256+t[l+o],o+=h,s-=8);if(w===0)w=1-n;else{if(w===a)return v?NaN:(f?-1:1)*(1/0);v=v+Math.pow(2,i),w=w-n}return(f?-1:1)*v*Math.pow(2,w-i)},O.write=function(t,l,S,i,C,w){var v,m,a,n=w*8-C-1,s=(1<>1,h=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:w-1,u=i?1:-1,b=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(m=isNaN(l)?1:0,v=s):(v=Math.floor(Math.log(l)/Math.LN2),l*(a=Math.pow(2,-v))<1&&(v--,a*=2),v+o>=1?l+=h/a:l+=h*Math.pow(2,1-o),l*a>=2&&(v++,a/=2),v+o>=s?(m=0,v=s):v+o>=1?(m=(l*a-1)*Math.pow(2,C),v=v+o):(m=l*Math.pow(2,o-1)*Math.pow(2,C),v=0));C>=8;t[S+f]=m&255,f+=u,m/=256,C-=8);for(v=v<0;t[S+f]=v&255,f+=u,v/=256,n-=8);t[S+f-u]|=b*128}},6768:function(D){typeof Object.create=="function"?D.exports=function(t,l){l&&(t.super_=l,t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(t,l){if(l){t.super_=l;var S=function(){};S.prototype=l.prototype,t.prototype=new S,t.prototype.constructor=t}}},91148:function(D,O,t){var l=t(46672)(),S=t(99676),i=S("Object.prototype.toString"),C=function(a){return l&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:i(a)==="[object Arguments]"},w=function(a){return C(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&i(a)!=="[object Array]"&&i(a.callee)==="[object Function]"},v=function(){return C(arguments)}();C.isLegacyArguments=w,D.exports=v?C:w},24200:function(D){D.exports=!0},90720:function(D){var O=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,S;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw S}}),S={},t(function(){throw 42},null,l)}catch(E){E!==S&&(t=null)}else t=null;var i=/^\s*class\b/,C=function(g){try{var c=O.call(g);return i.test(c)}catch{return!1}},w=function(g){try{return C(g)?!1:(O.call(g),!0)}catch{return!1}},v=Object.prototype.toString,m="[object Object]",a="[object Function]",n="[object GeneratorFunction]",s="[object HTMLAllCollection]",o="[object HTML document.all class]",h="[object HTMLCollection]",f=typeof Symbol=="function"&&!!Symbol.toStringTag,u=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var p=document.all;v.call(p)===v.call(document.all)&&(b=function(g){if((u||!g)&&(typeof g>"u"||typeof g=="object"))try{var c=v.call(g);return(c===s||c===o||c===h||c===m)&&g("")==null}catch{}return!1})}D.exports=t?function(g){if(b(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{t(g,null,l)}catch(c){if(c!==S)return!1}return!C(g)&&w(g)}:function(g){if(b(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(f)return w(g);if(C(g))return!1;var c=v.call(g);return c!==a&&c!==n&&!/^\[object HTML/.test(c)?!1:w(g)}},84420:function(D,O,t){var l=Object.prototype.toString,S=Function.prototype.toString,i=/^\s*(?:function)?\*/,C=t(46672)(),w=Object.getPrototypeOf,v=function(){if(!C)return!1;try{return Function("return function*() {}")()}catch{}},m;D.exports=function(n){if(typeof n!="function")return!1;if(i.test(S.call(n)))return!0;if(!C){var s=l.call(n);return s==="[object GeneratorFunction]"}if(!w)return!1;if(typeof m>"u"){var o=v();m=o?w(o):!1}return w(n)===m}},96604:function(D){D.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},85992:function(D){D.exports=function(t){return t!==t}},1560:function(D,O,t){var l=t(57916),S=t(81288),i=t(85992),C=t(57740),w=t(59736),v=l(C(),Number);S(v,{getPolyfill:C,implementation:i,shim:w}),D.exports=v},57740:function(D,O,t){var l=t(85992);D.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},59736:function(D,O,t){var l=t(81288),S=t(57740);D.exports=function(){var C=S();return l(Number,{isNaN:C},{isNaN:function(){return Number.isNaN!==C}}),C}},18400:function(D){D.exports=function(O){var t=typeof O;return O!==null&&(t==="object"||t==="function")}},58908:function(D){var O=Object.prototype.toString;D.exports=function(t){var l;return O.call(t)==="[object Object]"&&(l=Object.getPrototypeOf(t),l===null||l===Object.getPrototypeOf({}))}},94576:function(D){D.exports=function(O){for(var t=O.length,l,S=0;S13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},53520:function(D){D.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},7728:function(D,O,t){var l=t(46492),S=t(63436),i=t(99676),C=i("Object.prototype.toString"),w=t(46672)(),v=t(2304),m=typeof globalThis>"u"?t.g:globalThis,a=S(),n=i("Array.prototype.indexOf",!0)||function(b,p){for(var E=0;E-1}return v?f(b):!1}},76244:function(D){D.exports=Math.log2||function(O){return Math.log(O)*Math.LOG2E}},62644:function(D,O,t){D.exports=S;var l=t(93784);function S(i,C){C||(C=i,i=window);var w=0,v=0,m=0,a={shift:!1,alt:!1,control:!1,meta:!1},n=!1;function s(A){var M=!1;return"altKey"in A&&(M=M||A.altKey!==a.alt,a.alt=!!A.altKey),"shiftKey"in A&&(M=M||A.shiftKey!==a.shift,a.shift=!!A.shiftKey),"ctrlKey"in A&&(M=M||A.ctrlKey!==a.control,a.control=!!A.ctrlKey),"metaKey"in A&&(M=M||A.metaKey!==a.meta,a.meta=!!A.metaKey),M}function o(A,M){var R=l.x(M),T=l.y(M);"buttons"in M&&(A=M.buttons|0),(A!==w||R!==v||T!==m||s(M))&&(w=A|0,v=R||0,m=T||0,C&&C(w,v,m,a))}function h(A){o(0,A)}function f(){(w||v||m||a.shift||a.alt||a.meta||a.control)&&(v=m=0,w=0,a.shift=a.alt=a.control=a.meta=!1,C&&C(0,0,0,a))}function u(A){s(A)&&C&&C(w,v,m,a)}function b(A){l.buttons(A)===0?o(0,A):o(w,A)}function p(A){o(w|l.buttons(A),A)}function E(A){o(w&~l.buttons(A),A)}function g(){n||(n=!0,i.addEventListener("mousemove",b),i.addEventListener("mousedown",p),i.addEventListener("mouseup",E),i.addEventListener("mouseleave",h),i.addEventListener("mouseenter",h),i.addEventListener("mouseout",h),i.addEventListener("mouseover",h),i.addEventListener("blur",f),i.addEventListener("keyup",u),i.addEventListener("keydown",u),i.addEventListener("keypress",u),i!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",u),window.addEventListener("keydown",u),window.addEventListener("keypress",u)))}function c(){n&&(n=!1,i.removeEventListener("mousemove",b),i.removeEventListener("mousedown",p),i.removeEventListener("mouseup",E),i.removeEventListener("mouseleave",h),i.removeEventListener("mouseenter",h),i.removeEventListener("mouseout",h),i.removeEventListener("mouseover",h),i.removeEventListener("blur",f),i.removeEventListener("keyup",u),i.removeEventListener("keydown",u),i.removeEventListener("keypress",u),i!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",u),window.removeEventListener("keydown",u),window.removeEventListener("keypress",u)))}g();var x={element:i};return Object.defineProperties(x,{enabled:{get:function(){return n},set:function(A){A?g():c()},enumerable:!0},buttons:{get:function(){return w},enumerable:!0},x:{get:function(){return v},enumerable:!0},y:{get:function(){return m},enumerable:!0},mods:{get:function(){return a},enumerable:!0}}),x}},29128:function(D){var O={left:0,top:0};D.exports=t;function t(S,i,C){i=i||S.currentTarget||S.srcElement,Array.isArray(C)||(C=[0,0]);var w=S.clientX||0,v=S.clientY||0,m=l(i);return C[0]=w-m.left,C[1]=v-m.top,C}function l(S){return S===window||S===document||S===document.body?O:S.getBoundingClientRect()}},93784:function(D,O){function t(C){if(typeof C=="object"){if("buttons"in C)return C.buttons;if("which"in C){var w=C.which;if(w===2)return 4;if(w===3)return 2;if(w>0)return 1<=0)return 1<2){for(var I=Array(L.position.length*.5),N=0;N2){for(var U=!L.position[0].length,H=a.mallocFloat(this.count*2),W=0,V=0;W1?P.align[$e]:P.align[0]:P.align;if(typeof st=="number")return st;switch(st){case"right":case"end":return-ze;case"center":case"centre":case"middle":return-ze*.5}return 0})),this.baseline==null&&L.baseline==null&&(L.baseline=0),L.baseline!=null&&(this.baseline=L.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ze,$e){var st=(P.font[$e]||P.font[0]).metrics,vt=0;return vt+=st.bottom*.5,typeof ze=="number"?vt+=ze-st.baseline:vt+=-st[ze],vt*=-1,vt})),L.color!=null)if(L.color||(L.color="transparent"),typeof L.color=="string"||!isNaN(L.color))this.color=v(L.color,"uint8");else{var Ee;if(typeof L.color[0]=="number"&&L.color.length>this.counts.length){var Se=L.color.length;Ee=a.mallocUint8(Se);for(var ke=(L.color.subarray||L.color.slice).bind(L.color),Te=0;Te4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ie){var Ue=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ue);for(var Ne=0;Ne1?this.counts[Ne]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ne]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ne*4,Ne*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ne]:this.opacity,baseline:this.baselineOffset[Ne]!=null?this.baselineOffset[Ne]:this.baselineOffset[0],align:this.align?this.alignOffset[Ne]!=null?this.alignOffset[Ne]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ne]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ne*2,Ne*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},M.prototype.destroy=function(){},M.prototype.kerning=!0,M.prototype.position={constant:new Float32Array(2)},M.prototype.translate=null,M.prototype.scale=null,M.prototype.font=null,M.prototype.text="",M.prototype.positionOffset=[0,0],M.prototype.opacity=1,M.prototype.color=new Uint8Array([0,0,0,255]),M.prototype.alignOffset=[0,0],M.maxAtlasSize=1024,M.atlasCanvas=document.createElement("canvas"),M.atlasContext=M.atlasCanvas.getContext("2d",{alpha:!1}),M.baseFontSize=64,M.fonts={};function R(T){return typeof T=="function"&&T._gl&&T.prop&&T.texture&&T.buffer}D.exports=M},55212:function(D,O,t){var l=t(55616);D.exports=function(a){if(a?typeof a=="string"&&(a={container:a}):a={},i(a)?a={container:a}:C(a)?a={container:a}:w(a)?a={gl:a}:a=l(a,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),a.pixelRatio||(a.pixelRatio=t.g.pixelRatio||1),a.gl)return a.gl;if(a.canvas&&(a.container=a.canvas.parentNode),a.container){if(typeof a.container=="string"){var n=document.querySelector(a.container);if(!n)throw Error("Element "+a.container+" is not found");a.container=n}i(a.container)?(a.canvas=a.container,a.container=a.canvas.parentNode):a.canvas||(a.canvas=v(),a.container.appendChild(a.canvas),S(a))}else if(!a.canvas)if(typeof document<"u")a.container=document.body||document.documentElement,a.canvas=v(),a.container.appendChild(a.canvas),S(a);else throw Error("Not DOM environment. Use headless-gl.");return a.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(s){try{a.gl=a.canvas.getContext(s,a.attrs)}catch{}return a.gl}),a.gl};function S(m){if(m.container)if(m.container==document.body)document.body.style.width||(m.canvas.width=m.width||m.pixelRatio*t.g.innerWidth),document.body.style.height||(m.canvas.height=m.height||m.pixelRatio*t.g.innerHeight);else{var a=m.container.getBoundingClientRect();m.canvas.width=m.width||a.right-a.left,m.canvas.height=m.height||a.bottom-a.top}}function i(m){return typeof m.getContext=="function"&&"width"in m&&"height"in m}function C(m){return typeof m.nodeName=="string"&&typeof m.appendChild=="function"&&typeof m.getBoundingClientRect=="function"}function w(m){return typeof m.drawArrays=="function"||typeof m.drawElements=="function"}function v(){var m=document.createElement("canvas");return m.style.position="absolute",m.style.top=0,m.style.left=0,m}},26444:function(D){D.exports=function(O){typeof O=="string"&&(O=[O]);for(var t=[].slice.call(arguments,1),l=[],S=0;S */O.read=function(t,l,S,i,C){var w,v,m=C*8-i-1,a=(1<>1,s=-7,o=S?C-1:0,h=S?-1:1,f=t[l+o];for(o+=h,w=f&(1<<-s)-1,f>>=-s,s+=m;s>0;w=w*256+t[l+o],o+=h,s-=8);for(v=w&(1<<-s)-1,w>>=-s,s+=i;s>0;v=v*256+t[l+o],o+=h,s-=8);if(w===0)w=1-n;else{if(w===a)return v?NaN:(f?-1:1)*(1/0);v=v+Math.pow(2,i),w=w-n}return(f?-1:1)*v*Math.pow(2,w-i)},O.write=function(t,l,S,i,C,w){var v,m,a,n=w*8-C-1,s=(1<>1,h=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:w-1,u=i?1:-1,b=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(m=isNaN(l)?1:0,v=s):(v=Math.floor(Math.log(l)/Math.LN2),l*(a=Math.pow(2,-v))<1&&(v--,a*=2),v+o>=1?l+=h/a:l+=h*Math.pow(2,1-o),l*a>=2&&(v++,a/=2),v+o>=s?(m=0,v=s):v+o>=1?(m=(l*a-1)*Math.pow(2,C),v=v+o):(m=l*Math.pow(2,o-1)*Math.pow(2,C),v=0));C>=8;t[S+f]=m&255,f+=u,m/=256,C-=8);for(v=v<0;t[S+f]=v&255,f+=u,v/=256,n-=8);t[S+f-u]|=b*128}},6768:function(D){typeof Object.create=="function"?D.exports=function(t,l){l&&(t.super_=l,t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(t,l){if(l){t.super_=l;var S=function(){};S.prototype=l.prototype,t.prototype=new S,t.prototype.constructor=t}}},91148:function(D,O,t){var l=t(46672)(),S=t(99676),i=S("Object.prototype.toString"),C=function(a){return l&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:i(a)==="[object Arguments]"},w=function(a){return C(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&i(a)!=="[object Array]"&&i(a.callee)==="[object Function]"},v=function(){return C(arguments)}();C.isLegacyArguments=w,D.exports=v?C:w},24200:function(D){D.exports=!0},90720:function(D){var O=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,S;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw S}}),S={},t(function(){throw 42},null,l)}catch(E){E!==S&&(t=null)}else t=null;var i=/^\s*class\b/,C=function(g){try{var c=O.call(g);return i.test(c)}catch{return!1}},w=function(g){try{return C(g)?!1:(O.call(g),!0)}catch{return!1}},v=Object.prototype.toString,m="[object Object]",a="[object Function]",n="[object GeneratorFunction]",s="[object HTMLAllCollection]",o="[object HTML document.all class]",h="[object HTMLCollection]",f=typeof Symbol=="function"&&!!Symbol.toStringTag,u=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var p=document.all;v.call(p)===v.call(document.all)&&(b=function(g){if((u||!g)&&(typeof g>"u"||typeof g=="object"))try{var c=v.call(g);return(c===s||c===o||c===h||c===m)&&g("")==null}catch{}return!1})}D.exports=t?function(g){if(b(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{t(g,null,l)}catch(c){if(c!==S)return!1}return!C(g)&&w(g)}:function(g){if(b(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(f)return w(g);if(C(g))return!1;var c=v.call(g);return c!==a&&c!==n&&!/^\[object HTML/.test(c)?!1:w(g)}},84420:function(D,O,t){var l=Object.prototype.toString,S=Function.prototype.toString,i=/^\s*(?:function)?\*/,C=t(46672)(),w=Object.getPrototypeOf,v=function(){if(!C)return!1;try{return Function("return function*() {}")()}catch{}},m;D.exports=function(n){if(typeof n!="function")return!1;if(i.test(S.call(n)))return!0;if(!C){var s=l.call(n);return s==="[object GeneratorFunction]"}if(!w)return!1;if(typeof m>"u"){var o=v();m=o?w(o):!1}return w(n)===m}},96604:function(D){D.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},85992:function(D){D.exports=function(t){return t!==t}},1560:function(D,O,t){var l=t(57916),S=t(81288),i=t(85992),C=t(57740),w=t(59736),v=l(C(),Number);S(v,{getPolyfill:C,implementation:i,shim:w}),D.exports=v},57740:function(D,O,t){var l=t(85992);D.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},59736:function(D,O,t){var l=t(81288),S=t(57740);D.exports=function(){var C=S();return l(Number,{isNaN:C},{isNaN:function(){return Number.isNaN!==C}}),C}},18400:function(D){D.exports=function(O){var t=typeof O;return O!==null&&(t==="object"||t==="function")}},58908:function(D){var O=Object.prototype.toString;D.exports=function(t){var l;return O.call(t)==="[object Object]"&&(l=Object.getPrototypeOf(t),l===null||l===Object.getPrototypeOf({}))}},94576:function(D){D.exports=function(O){for(var t=O.length,l,S=0;S13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},53520:function(D){D.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},7728:function(D,O,t){var l=t(46492),S=t(63436),i=t(99676),C=i("Object.prototype.toString"),w=t(46672)(),v=t(2304),m=typeof globalThis>"u"?t.g:globalThis,a=S(),n=i("Array.prototype.indexOf",!0)||function(b,p){for(var E=0;E-1}return v?f(b):!1}},76244:function(D){D.exports=Math.log2||function(O){return Math.log(O)*Math.LOG2E}},62644:function(D,O,t){D.exports=S;var l=t(93784);function S(i,C){C||(C=i,i=window);var w=0,v=0,m=0,a={shift:!1,alt:!1,control:!1,meta:!1},n=!1;function s(A){var M=!1;return"altKey"in A&&(M=M||A.altKey!==a.alt,a.alt=!!A.altKey),"shiftKey"in A&&(M=M||A.shiftKey!==a.shift,a.shift=!!A.shiftKey),"ctrlKey"in A&&(M=M||A.ctrlKey!==a.control,a.control=!!A.ctrlKey),"metaKey"in A&&(M=M||A.metaKey!==a.meta,a.meta=!!A.metaKey),M}function o(A,M){var R=l.x(M),T=l.y(M);"buttons"in M&&(A=M.buttons|0),(A!==w||R!==v||T!==m||s(M))&&(w=A|0,v=R||0,m=T||0,C&&C(w,v,m,a))}function h(A){o(0,A)}function f(){(w||v||m||a.shift||a.alt||a.meta||a.control)&&(v=m=0,w=0,a.shift=a.alt=a.control=a.meta=!1,C&&C(0,0,0,a))}function u(A){s(A)&&C&&C(w,v,m,a)}function b(A){l.buttons(A)===0?o(0,A):o(w,A)}function p(A){o(w|l.buttons(A),A)}function E(A){o(w&~l.buttons(A),A)}function g(){n||(n=!0,i.addEventListener("mousemove",b),i.addEventListener("mousedown",p),i.addEventListener("mouseup",E),i.addEventListener("mouseleave",h),i.addEventListener("mouseenter",h),i.addEventListener("mouseout",h),i.addEventListener("mouseover",h),i.addEventListener("blur",f),i.addEventListener("keyup",u),i.addEventListener("keydown",u),i.addEventListener("keypress",u),i!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",u),window.addEventListener("keydown",u),window.addEventListener("keypress",u)))}function c(){n&&(n=!1,i.removeEventListener("mousemove",b),i.removeEventListener("mousedown",p),i.removeEventListener("mouseup",E),i.removeEventListener("mouseleave",h),i.removeEventListener("mouseenter",h),i.removeEventListener("mouseout",h),i.removeEventListener("mouseover",h),i.removeEventListener("blur",f),i.removeEventListener("keyup",u),i.removeEventListener("keydown",u),i.removeEventListener("keypress",u),i!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",u),window.removeEventListener("keydown",u),window.removeEventListener("keypress",u)))}g();var y={element:i};return Object.defineProperties(y,{enabled:{get:function(){return n},set:function(A){A?g():c()},enumerable:!0},buttons:{get:function(){return w},enumerable:!0},x:{get:function(){return v},enumerable:!0},y:{get:function(){return m},enumerable:!0},mods:{get:function(){return a},enumerable:!0}}),y}},29128:function(D){var O={left:0,top:0};D.exports=t;function t(S,i,C){i=i||S.currentTarget||S.srcElement,Array.isArray(C)||(C=[0,0]);var w=S.clientX||0,v=S.clientY||0,m=l(i);return C[0]=w-m.left,C[1]=v-m.top,C}function l(S){return S===window||S===document||S===document.body?O:S.getBoundingClientRect()}},93784:function(D,O){function t(C){if(typeof C=="object"){if("buttons"in C)return C.buttons;if("which"in C){var w=C.which;if(w===2)return 4;if(w===3)return 2;if(w>0)return 1<=0)return 1<0&&a(s,A))}catch(M){f.call(new b(A),M)}}}function f(c){var x=this;x.triggered||(x.triggered=!0,x.def&&(x=x.def),x.msg=c,x.state=2,x.chain.length>0&&a(s,x))}function u(c,x,A,M){for(var R=0;R7&&(n.push(x.splice(0,7)),x.unshift("C"));break;case"S":var M=p,R=E;(a=="C"||a=="S")&&(M+=M-s,R+=R-o),x=["C",M,R,x[1],x[2],x[3],x[4]];break;case"T":a=="Q"||a=="T"?(u=p*2-u,b=E*2-b):(u=p,b=E),x=i(p,E,u,b,x[1],x[2]);break;case"Q":u=x[1],b=x[2],x=i(p,E,x[1],x[2],x[3],x[4]);break;case"L":x=S(p,E,x[1],x[2]);break;case"H":x=S(p,E,x[1],E);break;case"V":x=S(p,E,p,x[1]);break;case"Z":x=S(p,E,h,f);break}a=A,p=x[x.length-2],E=x[x.length-1],x.length>4?(s=x[x.length-4],o=x[x.length-3]):(s=p,o=E),n.push(x)}return n}function S(m,a,n,s){return["C",m,a,n,s,n,s]}function i(m,a,n,s,o,h){return["C",m/3+.6666666666666666*n,a/3+.6666666666666666*s,o/3+.6666666666666666*n,h/3+.6666666666666666*s,o,h]}function C(m,a,n,s,o,h,f,u,b,p){if(p)P=p[0],d=p[1],T=p[2],L=p[3];else{var E=w(m,a,-o);m=E.x,a=E.y,E=w(u,b,-o),u=E.x,b=E.y;var g=(m-u)/2,c=(a-b)/2,x=g*g/(n*n)+c*c/(s*s);x>1&&(x=Math.sqrt(x),n=x*n,s=x*s);var A=n*n,M=s*s,R=(h==f?-1:1)*Math.sqrt(Math.abs((A*M-A*c*c-M*g*g)/(A*c*c+M*g*g)));R==1/0&&(R=1);var T=R*n*c/s+(m+u)/2,L=R*-s*g/n+(a+b)/2,P=Math.asin(((a-L)/s).toFixed(9)),d=Math.asin(((b-L)/s).toFixed(9));P=md&&(P=P-O*2),!f&&d>P&&(d=d-O*2)}if(Math.abs(d-P)>t){var k=d,I=u,N=b;d=P+t*(f&&d>P?1:-1),u=T+n*Math.cos(d),b=L+s*Math.sin(d);var B=C(u,b,n,s,o,0,f,I,N,[d,k,T,L])}var G=Math.tan((d-P)/4),U=4/3*n*G,H=4/3*s*G,W=[2*m-(m+U*Math.sin(P)),2*a-(a-H*Math.cos(P)),u+U*Math.sin(d),b-H*Math.cos(d),u,b];if(p)return W;B&&(W=W.concat(B));for(var V=0;V0&&a(s,A))}catch(M){f.call(new b(A),M)}}}function f(c){var y=this;y.triggered||(y.triggered=!0,y.def&&(y=y.def),y.msg=c,y.state=2,y.chain.length>0&&a(s,y))}function u(c,y,A,M){for(var R=0;R7&&(n.push(y.splice(0,7)),y.unshift("C"));break;case"S":var M=p,R=E;(a=="C"||a=="S")&&(M+=M-s,R+=R-o),y=["C",M,R,y[1],y[2],y[3],y[4]];break;case"T":a=="Q"||a=="T"?(u=p*2-u,b=E*2-b):(u=p,b=E),y=i(p,E,u,b,y[1],y[2]);break;case"Q":u=y[1],b=y[2],y=i(p,E,y[1],y[2],y[3],y[4]);break;case"L":y=S(p,E,y[1],y[2]);break;case"H":y=S(p,E,y[1],E);break;case"V":y=S(p,E,p,y[1]);break;case"Z":y=S(p,E,h,f);break}a=A,p=y[y.length-2],E=y[y.length-1],y.length>4?(s=y[y.length-4],o=y[y.length-3]):(s=p,o=E),n.push(y)}return n}function S(m,a,n,s){return["C",m,a,n,s,n,s]}function i(m,a,n,s,o,h){return["C",m/3+.6666666666666666*n,a/3+.6666666666666666*s,o/3+.6666666666666666*n,h/3+.6666666666666666*s,o,h]}function C(m,a,n,s,o,h,f,u,b,p){if(p)P=p[0],d=p[1],T=p[2],L=p[3];else{var E=w(m,a,-o);m=E.x,a=E.y,E=w(u,b,-o),u=E.x,b=E.y;var g=(m-u)/2,c=(a-b)/2,y=g*g/(n*n)+c*c/(s*s);y>1&&(y=Math.sqrt(y),n=y*n,s=y*s);var A=n*n,M=s*s,R=(h==f?-1:1)*Math.sqrt(Math.abs((A*M-A*c*c-M*g*g)/(A*c*c+M*g*g)));R==1/0&&(R=1);var T=R*n*c/s+(m+u)/2,L=R*-s*g/n+(a+b)/2,P=Math.asin(((a-L)/s).toFixed(9)),d=Math.asin(((b-L)/s).toFixed(9));P=md&&(P=P-O*2),!f&&d>P&&(d=d-O*2)}if(Math.abs(d-P)>t){var k=d,I=u,N=b;d=P+t*(f&&d>P?1:-1),u=T+n*Math.cos(d),b=L+s*Math.sin(d);var B=C(u,b,n,s,o,0,f,I,N,[d,k,T,L])}var G=Math.tan((d-P)/4),U=4/3*n*G,H=4/3*s*G,W=[2*m-(m+U*Math.sin(P)),2*a-(a-H*Math.cos(P)),u+U*Math.sin(d),b-H*Math.cos(d),u,b];if(p)return W;B&&(W=W.concat(B));for(var V=0;V"u")return!1;for(var f in window)try{if(!s["$"+f]&&S.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),h=function(f){if(typeof window>"u"||!o)return n(f);try{return n(f)}catch{return!1}};l=function(u){var b=u!==null&&typeof u=="object",p=i.call(u)==="[object Function]",E=C(u),g=b&&i.call(u)==="[object String]",c=[];if(!b&&!p&&!E)throw new TypeError("Object.keys called on a non-object");var x=m&&p;if(g&&u.length>0&&!S.call(u,0))for(var A=0;A0)for(var M=0;M=0&&O.call(l.callee)==="[object Function]"),i}},32868:function(D){function O(S,i){if(typeof S!="string")return[S];var C=[S];typeof i=="string"||Array.isArray(i)?i={brackets:i}:i||(i={});var w=i.brackets?Array.isArray(i.brackets)?i.brackets:[i.brackets]:["{}","[]","()"],v=i.escape||"___",m=!!i.flat;w.forEach(function(s){var o=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),h=[];function f(u,b,p){var E=C.push(u.slice(s[0].length,-s[1].length))-1;return h.push(E),v+E+v}C.forEach(function(u,b){for(var p,E=0;u!=p;)if(p=u,u=u.replace(o,f),E++>1e4)throw Error("References have circular dependency. Please, check them.");C[b]=u}),h=h.reverse(),C=C.map(function(u){return h.forEach(function(b){u=u.replace(new RegExp("(\\"+v+b+"\\"+v+")","g"),s[0]+"$1"+s[1])}),u})});var a=new RegExp("\\"+v+"([0-9]+)\\"+v);function n(s,o,h){for(var f=[],u,b=0;u=a.exec(s);){if(b++>1e4)throw Error("Circular references in parenthesis");f.push(s.slice(0,u.index)),f.push(n(o[u[1]],o)),s=s.slice(u.index+u[0].length)}return f.push(s),f}return m?C:n(C[0],C)}function t(S,i){if(i&&i.flat){var C=i&&i.escape||"___",w=S[0],v;if(!w)return"";for(var m=new RegExp("\\"+C+"([0-9]+)\\"+C),a=0;w!=v;){if(a++>1e4)throw Error("Circular references in "+S);v=w,w=w.replace(m,n)}return w}return S.reduce(function s(o,h){return Array.isArray(h)&&(h=h.reduce(s,"")),o+h},"");function n(s,o){if(S[o]==null)throw Error("Reference "+o+"is undefined");return S[o]}}function l(S,i){return Array.isArray(S)?t(S,i):O(S,i)}l.parse=O,l.stringify=t,D.exports=l},51160:function(D,O,t){var l=t(55616);D.exports=S;function S(i){var C;return arguments.length>1&&(i=arguments),typeof i=="string"?i=i.split(/\s/).map(parseFloat):typeof i=="number"&&(i=[i]),i.length&&typeof i[0]=="number"?i.length===1?C={width:i[0],height:i[0],x:0,y:0}:i.length===2?C={width:i[0],height:i[1],x:0,y:0}:C={x:i[0],y:i[1],width:i[2]-i[0]||0,height:i[3]-i[1]||0}:i&&(i=l(i,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),C={x:i.left||0,y:i.top||0},i.width==null?i.right?C.width=i.right-C.x:C.width=0:C.width=i.width,i.height==null?i.bottom?C.height=i.bottom-C.y:C.height=0:C.height=i.height),C}},21984:function(D){D.exports=l;var O={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},t=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function l(C){var w=[];return C.replace(t,function(v,m,a){var n=m.toLowerCase();for(a=i(a),n=="m"&&a.length>2&&(w.push([m].concat(a.splice(0,2))),n="l",m=m=="m"?"l":"L");;){if(a.length==O[n])return a.unshift(m),w.push(a);if(a.lengthw!=f>w&&C<(h-s)*(w-o)/(f-o)+s;u&&(v=!v)}return v}},14756:function(D,O,t){/* +*/var O=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function S(C){if(C==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(C)}function i(){try{if(!Object.assign)return!1;var C=new String("abc");if(C[5]="de",Object.getOwnPropertyNames(C)[0]==="5")return!1;for(var w={},v=0;v<10;v++)w["_"+String.fromCharCode(v)]=v;var m=Object.getOwnPropertyNames(w).map(function(n){return w[n]});if(m.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(n){a[n]=n}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}D.exports=i()?Object.assign:function(C,w){for(var v,m=S(C),a,n=1;n"u")return!1;for(var f in window)try{if(!s["$"+f]&&S.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),h=function(f){if(typeof window>"u"||!o)return n(f);try{return n(f)}catch{return!1}};l=function(u){var b=u!==null&&typeof u=="object",p=i.call(u)==="[object Function]",E=C(u),g=b&&i.call(u)==="[object String]",c=[];if(!b&&!p&&!E)throw new TypeError("Object.keys called on a non-object");var y=m&&p;if(g&&u.length>0&&!S.call(u,0))for(var A=0;A0)for(var M=0;M=0&&O.call(l.callee)==="[object Function]"),i}},32868:function(D){function O(S,i){if(typeof S!="string")return[S];var C=[S];typeof i=="string"||Array.isArray(i)?i={brackets:i}:i||(i={});var w=i.brackets?Array.isArray(i.brackets)?i.brackets:[i.brackets]:["{}","[]","()"],v=i.escape||"___",m=!!i.flat;w.forEach(function(s){var o=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),h=[];function f(u,b,p){var E=C.push(u.slice(s[0].length,-s[1].length))-1;return h.push(E),v+E+v}C.forEach(function(u,b){for(var p,E=0;u!=p;)if(p=u,u=u.replace(o,f),E++>1e4)throw Error("References have circular dependency. Please, check them.");C[b]=u}),h=h.reverse(),C=C.map(function(u){return h.forEach(function(b){u=u.replace(new RegExp("(\\"+v+b+"\\"+v+")","g"),s[0]+"$1"+s[1])}),u})});var a=new RegExp("\\"+v+"([0-9]+)\\"+v);function n(s,o,h){for(var f=[],u,b=0;u=a.exec(s);){if(b++>1e4)throw Error("Circular references in parenthesis");f.push(s.slice(0,u.index)),f.push(n(o[u[1]],o)),s=s.slice(u.index+u[0].length)}return f.push(s),f}return m?C:n(C[0],C)}function t(S,i){if(i&&i.flat){var C=i&&i.escape||"___",w=S[0],v;if(!w)return"";for(var m=new RegExp("\\"+C+"([0-9]+)\\"+C),a=0;w!=v;){if(a++>1e4)throw Error("Circular references in "+S);v=w,w=w.replace(m,n)}return w}return S.reduce(function s(o,h){return Array.isArray(h)&&(h=h.reduce(s,"")),o+h},"");function n(s,o){if(S[o]==null)throw Error("Reference "+o+"is undefined");return S[o]}}function l(S,i){return Array.isArray(S)?t(S,i):O(S,i)}l.parse=O,l.stringify=t,D.exports=l},51160:function(D,O,t){var l=t(55616);D.exports=S;function S(i){var C;return arguments.length>1&&(i=arguments),typeof i=="string"?i=i.split(/\s/).map(parseFloat):typeof i=="number"&&(i=[i]),i.length&&typeof i[0]=="number"?i.length===1?C={width:i[0],height:i[0],x:0,y:0}:i.length===2?C={width:i[0],height:i[1],x:0,y:0}:C={x:i[0],y:i[1],width:i[2]-i[0]||0,height:i[3]-i[1]||0}:i&&(i=l(i,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),C={x:i.left||0,y:i.top||0},i.width==null?i.right?C.width=i.right-C.x:C.width=0:C.width=i.width,i.height==null?i.bottom?C.height=i.bottom-C.y:C.height=0:C.height=i.height),C}},21984:function(D){D.exports=l;var O={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},t=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function l(C){var w=[];return C.replace(t,function(v,m,a){var n=m.toLowerCase();for(a=i(a),n=="m"&&a.length>2&&(w.push([m].concat(a.splice(0,2))),n="l",m=m=="m"?"l":"L");;){if(a.length==O[n])return a.unshift(m),w.push(a);if(a.lengthw!=f>w&&C<(h-s)*(w-o)/(f-o)+s;u&&(v=!v)}return v}},14756:function(D,O,t){/* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT * @preserve Project Home: https://github.com/voidqk/polybooljs - */var l=t(7688),S=t(28648),i=t(72200),C=t(11403),w=t(82368),v=t(17792),m=!1,a=S(),n;n={buildLog:function(o){return o===!0?m=l():o===!1&&(m=!1),m===!1?!1:m.list},epsilon:function(o){return a.epsilon(o)},segments:function(o){var h=i(!0,a,m);return o.regions.forEach(h.addRegion),{segments:h.calculate(o.inverted),inverted:o.inverted}},combine:function(o,h){var f=i(!1,a,m);return{combined:f.calculate(o.segments,o.inverted,h.segments,h.inverted),inverted1:o.inverted,inverted2:h.inverted}},selectUnion:function(o){return{segments:w.union(o.combined,m),inverted:o.inverted1||o.inverted2}},selectIntersect:function(o){return{segments:w.intersect(o.combined,m),inverted:o.inverted1&&o.inverted2}},selectDifference:function(o){return{segments:w.difference(o.combined,m),inverted:o.inverted1&&!o.inverted2}},selectDifferenceRev:function(o){return{segments:w.differenceRev(o.combined,m),inverted:!o.inverted1&&o.inverted2}},selectXor:function(o){return{segments:w.xor(o.combined,m),inverted:o.inverted1!==o.inverted2}},polygon:function(o){return{regions:C(o.segments,a,m),inverted:o.inverted}},polygonFromGeoJSON:function(o){return v.toPolygon(n,o)},polygonToGeoJSON:function(o){return v.fromPolygon(n,a,o)},union:function(o,h){return s(o,h,n.selectUnion)},intersect:function(o,h){return s(o,h,n.selectIntersect)},difference:function(o,h){return s(o,h,n.selectDifference)},differenceRev:function(o,h){return s(o,h,n.selectDifferenceRev)},xor:function(o,h){return s(o,h,n.selectXor)}};function s(o,h,f){var u=n.segments(o),b=n.segments(h),p=n.combine(u,b),E=f(p);return n.polygon(E)}typeof window=="object"&&(window.PolyBool=n),D.exports=n},7688:function(D){function O(){var t,l=0,S=!1;function i(C,w){return t.list.push({type:C,data:w?JSON.parse(JSON.stringify(w)):void 0}),t}return t={list:[],segmentId:function(){return l++},checkIntersection:function(C,w){return i("check",{seg1:C,seg2:w})},segmentChop:function(C,w){return i("div_seg",{seg:C,pt:w}),i("chop",{seg:C,pt:w})},statusRemove:function(C){return i("pop_seg",{seg:C})},segmentUpdate:function(C){return i("seg_update",{seg:C})},segmentNew:function(C,w){return i("new_seg",{seg:C,primary:w})},segmentRemove:function(C){return i("rem_seg",{seg:C})},tempStatus:function(C,w,v){return i("temp_status",{seg:C,above:w,below:v})},rewind:function(C){return i("rewind",{seg:C})},status:function(C,w,v){return i("status",{seg:C,above:w,below:v})},vert:function(C){return C===S?t:(S=C,i("vert",{x:C}))},log:function(C){return typeof C!="string"&&(C=JSON.stringify(C,!1," ")),i("log",{txt:C})},reset:function(){return i("reset")},selected:function(C){return i("selected",{segs:C})},chainStart:function(C){return i("chain_start",{seg:C})},chainRemoveHead:function(C,w){return i("chain_rem_head",{index:C,pt:w})},chainRemoveTail:function(C,w){return i("chain_rem_tail",{index:C,pt:w})},chainNew:function(C,w){return i("chain_new",{pt1:C,pt2:w})},chainMatch:function(C){return i("chain_match",{index:C})},chainClose:function(C){return i("chain_close",{index:C})},chainAddHead:function(C,w){return i("chain_add_head",{index:C,pt:w})},chainAddTail:function(C,w){return i("chain_add_tail",{index:C,pt:w})},chainConnect:function(C,w){return i("chain_con",{index1:C,index2:w})},chainReverse:function(C){return i("chain_rev",{index:C})},chainJoin:function(C,w){return i("chain_join",{index1:C,index2:w})},done:function(){return i("done")}},t}D.exports=O},28648:function(D){function O(t){typeof t!="number"&&(t=1e-10);var l={epsilon:function(S){return typeof S=="number"&&(t=S),t},pointAboveOrOnLine:function(S,i,C){var w=i[0],v=i[1],m=C[0],a=C[1],n=S[0],s=S[1];return(m-w)*(s-v)-(a-v)*(n-w)>=-t},pointBetween:function(S,i,C){var w=S[1]-i[1],v=C[0]-i[0],m=S[0]-i[0],a=C[1]-i[1],n=m*v+w*a;if(n-t)},pointsSameX:function(S,i){return Math.abs(S[0]-i[0])t!=m-w>t&&(v-s)*(w-o)/(m-o)+s-C>t&&(a=!a),v=s,m=o}return a}};return l}D.exports=O},17792:function(D){var O={toPolygon:function(t,l){function S(w){if(w.length<=0)return t.segments({inverted:!1,regions:[]});function v(n){var s=n.slice(0,n.length-1);return t.segments({inverted:!1,regions:[s]})}for(var m=v(w[0]),a=1;a0})}function M(U,H){var W=U.seg,V=H.seg,$=W.start,Z=W.end,q=V.start,ae=V.end;w&&w.checkIntersection(W,V);var ie=C.linesIntersect($,Z,q,ae);if(ie===!1){if(!C.pointsCollinear($,Z,q)||C.pointsSame($,ae)||C.pointsSame(Z,q))return!1;var fe=C.pointsSame($,q),Q=C.pointsSame(Z,ae);if(fe&&Q)return H;var J=!fe&&C.pointBetween($,q,ae),oe=!Q&&C.pointBetween(Z,q,ae);if(fe)return oe?b(H,Z):b(U,ae),H;J&&(Q||(oe?b(H,Z):b(U,ae)),b(H,$))}else ie.alongA===0&&(ie.alongB===-1?b(U,q):ie.alongB===0?b(U,ie.pt):ie.alongB===1&&b(U,ae)),ie.alongB===0&&(ie.alongA===-1?b(H,$):ie.alongA===0?b(H,ie.pt):ie.alongA===1&&b(H,Z));return!1}for(var R=[];!a.isEmpty();){var T=a.getHead();if(w&&w.vert(T.pt[0]),T.isStart){let U=function(){if(P){var H=M(T,P);if(H)return H}return d?M(T,d):!1};w&&w.segmentNew(T.seg,T.primary);var L=A(T),P=L.before?L.before.ev:null,d=L.after?L.after.ev:null;w&&w.tempStatus(T.seg,P?P.seg:!1,d?d.seg:!1);var k=U();if(k){if(i){var I;T.seg.myFill.below===null?I=!0:I=T.seg.myFill.above!==T.seg.myFill.below,I&&(k.seg.myFill.above=!k.seg.myFill.above)}else k.seg.otherFill=T.seg.myFill;w&&w.segmentUpdate(k.seg),T.other.remove(),T.remove()}if(a.getHead()!==T){w&&w.rewind(T.seg);continue}if(i){var I;T.seg.myFill.below===null?I=!0:I=T.seg.myFill.above!==T.seg.myFill.below,d?T.seg.myFill.below=d.seg.myFill.above:T.seg.myFill.below=E,I?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var N;d?T.primary===d.primary?N=d.seg.otherFill.above:N=d.seg.myFill.above:N=T.primary?g:E,T.seg.otherFill={above:N,below:N}}w&&w.status(T.seg,P?P.seg:!1,d?d.seg:!1),T.other.status=L.insert(l.node({ev:T}))}else{var B=T.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(c.exists(B.prev)&&c.exists(B.next)&&M(B.prev.ev,B.next.ev),w&&w.statusRemove(B.ev.seg),B.remove(),!T.primary){var G=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=G}R.push(T.seg)}a.getHead().remove()}return w&&w.done(),R}return i?{addRegion:function(E){for(var g,c=E[E.length-1],x=0;x0&&!this.aborted;){var C=this.ifds_to_read.shift();C.offset&&this.scan_ifd(C.id,C.offset,S)}},l.prototype.read_uint16=function(S){var i=this.input;if(S+2>i.length)throw O("unexpected EOF","EBADDATA");return this.big_endian?i[S]*256+i[S+1]:i[S]+i[S+1]*256},l.prototype.read_uint32=function(S){var i=this.input;if(S+4>i.length)throw O("unexpected EOF","EBADDATA");return this.big_endian?i[S]*16777216+i[S+1]*65536+i[S+2]*256+i[S+3]:i[S]+i[S+1]*256+i[S+2]*65536+i[S+3]*16777216},l.prototype.is_subifd_link=function(S,i){return S===0&&i===34665||S===0&&i===34853||S===34665&&i===40965},l.prototype.exif_format_length=function(S){switch(S){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(S,i){var C;switch(S){case 1:case 2:return C=this.input[i],C;case 6:return C=this.input[i],C|(C&128)*33554430;case 3:return C=this.read_uint16(i),C;case 8:return C=this.read_uint16(i),C|(C&32768)*131070;case 4:return C=this.read_uint32(i),C;case 9:return C=this.read_uint32(i),C|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},l.prototype.scan_ifd=function(S,i,C){var w=this.read_uint16(i);i+=2;for(var v=0;vthis.input.length)throw O("unexpected EOF","EBADDATA");for(var u=[],b=h,p=0;p0&&(this.ifds_to_read.push({id:m,offset:u[0]}),f=!0);var g={is_big_endian:this.big_endian,ifd:S,tag:m,format:a,count:n,entry_offset:i+this.start,data_length:o,data_offset:h+this.start,value:u,is_subifd_link:f};if(C(g)===!1){this.aborted=!0;return}i+=12}S===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(i)})},D.exports.ExifParser=l,D.exports.get_orientation=function(S){var i=0;try{return new l(S,0,S.length).each(function(C){if(C.ifd===0&&C.tag===274&&Array.isArray(C.value))return i=C.value[0],!1}),i}catch{return-1}}},44600:function(D,O,t){var l=t(9696).eW,S=t(9696).eI;function i(o,h){if(o.length<4+h)return null;var f=S(o,h);return o.length>4&15,u=o[4]&15,b=o[5]>>4&15,p=l(o,6),E=8,g=0;gp.width||b.width===p.width&&b.height>p.height?b:p}),f=o.reduce(function(b,p){return b.height>p.height||b.height===p.height&&b.width>p.width?b:p}),u;return h.width>f.height||h.width===f.height&&h.height>f.width?u=h:u=f,u}D.exports.readSizeFromMeta=function(o){var h={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(n(o,h),!!h.sizes.length){var f=s(h.sizes),u=1;h.transforms.forEach(function(p){var E={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},g={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(p.type==="imir"&&(p.value===0?u=g[u]:(u=g[u],u=E[u],u=E[u])),p.type==="irot")for(var c=0;c1&&(u.variants=f.variants),f.orientation&&(u.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=m.length){var b=i(m,f.exif_location.offset),p=m.slice(f.exif_location.offset+b+4,f.exif_location.offset+f.exif_location.length),E=w.get_orientation(p);E>0&&(u.orientation=E)}return u}}}}}}},38728:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).Bz,C=l("BM");D.exports=function(w){if(!(w.length<26)&&S(w,0,C))return{width:i(w,18),height:i(w,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},5588:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).Bz,C=l("GIF87a"),w=l("GIF89a");D.exports=function(v){if(!(v.length<10)&&!(!S(v,0,C)&&!S(v,0,w)))return{width:i(v,6),height:i(v,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},41924:function(D,O,t){var l=t(9696).Bz,S=0,i=1,C=16;D.exports=function(w){var v=l(w,0),m=l(w,2),a=l(w,4);if(!(v!==S||m!==i||!a)){for(var n=[],s={width:0,height:0},o=0;os.width||f>s.height)&&(s=u)}return{width:s.width,height:s.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},87968:function(D,O,t){var l=t(9696).eW,S=t(9696).wR,i=t(9696).gS,C=t(11688),w=S("Exif\0\0");D.exports=function(v){if(!(v.length<2)&&!(v[0]!==255||v[1]!==216||v[2]!==255))for(var m=2;;){for(;;){if(v.length-m<2)return;if(v[m++]===255)break}for(var a=v[m++],n;a===255;)a=v[m++];if(208<=a&&a<=217||a===1)n=0;else if(192<=a&&a<=254){if(v.length-m<2)return;n=l(v,m)-2,m+=2}else return;if(a===217||a===218)return;var s;if(a===225&&n>=10&&i(v,m,w)&&(s=C.get_orientation(v.slice(m+6,m+n))),n>=5&&192<=a&&a<=207&&a!==196&&a!==200&&a!==204){if(v.length-m0&&(o.orientation=s),o}m+=n}}},37276:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).eI,C=l(`‰PNG\r + */var l=t(7688),S=t(28648),i=t(72200),C=t(11403),w=t(82368),v=t(17792),m=!1,a=S(),n;n={buildLog:function(o){return o===!0?m=l():o===!1&&(m=!1),m===!1?!1:m.list},epsilon:function(o){return a.epsilon(o)},segments:function(o){var h=i(!0,a,m);return o.regions.forEach(h.addRegion),{segments:h.calculate(o.inverted),inverted:o.inverted}},combine:function(o,h){var f=i(!1,a,m);return{combined:f.calculate(o.segments,o.inverted,h.segments,h.inverted),inverted1:o.inverted,inverted2:h.inverted}},selectUnion:function(o){return{segments:w.union(o.combined,m),inverted:o.inverted1||o.inverted2}},selectIntersect:function(o){return{segments:w.intersect(o.combined,m),inverted:o.inverted1&&o.inverted2}},selectDifference:function(o){return{segments:w.difference(o.combined,m),inverted:o.inverted1&&!o.inverted2}},selectDifferenceRev:function(o){return{segments:w.differenceRev(o.combined,m),inverted:!o.inverted1&&o.inverted2}},selectXor:function(o){return{segments:w.xor(o.combined,m),inverted:o.inverted1!==o.inverted2}},polygon:function(o){return{regions:C(o.segments,a,m),inverted:o.inverted}},polygonFromGeoJSON:function(o){return v.toPolygon(n,o)},polygonToGeoJSON:function(o){return v.fromPolygon(n,a,o)},union:function(o,h){return s(o,h,n.selectUnion)},intersect:function(o,h){return s(o,h,n.selectIntersect)},difference:function(o,h){return s(o,h,n.selectDifference)},differenceRev:function(o,h){return s(o,h,n.selectDifferenceRev)},xor:function(o,h){return s(o,h,n.selectXor)}};function s(o,h,f){var u=n.segments(o),b=n.segments(h),p=n.combine(u,b),E=f(p);return n.polygon(E)}typeof window=="object"&&(window.PolyBool=n),D.exports=n},7688:function(D){function O(){var t,l=0,S=!1;function i(C,w){return t.list.push({type:C,data:w?JSON.parse(JSON.stringify(w)):void 0}),t}return t={list:[],segmentId:function(){return l++},checkIntersection:function(C,w){return i("check",{seg1:C,seg2:w})},segmentChop:function(C,w){return i("div_seg",{seg:C,pt:w}),i("chop",{seg:C,pt:w})},statusRemove:function(C){return i("pop_seg",{seg:C})},segmentUpdate:function(C){return i("seg_update",{seg:C})},segmentNew:function(C,w){return i("new_seg",{seg:C,primary:w})},segmentRemove:function(C){return i("rem_seg",{seg:C})},tempStatus:function(C,w,v){return i("temp_status",{seg:C,above:w,below:v})},rewind:function(C){return i("rewind",{seg:C})},status:function(C,w,v){return i("status",{seg:C,above:w,below:v})},vert:function(C){return C===S?t:(S=C,i("vert",{x:C}))},log:function(C){return typeof C!="string"&&(C=JSON.stringify(C,!1," ")),i("log",{txt:C})},reset:function(){return i("reset")},selected:function(C){return i("selected",{segs:C})},chainStart:function(C){return i("chain_start",{seg:C})},chainRemoveHead:function(C,w){return i("chain_rem_head",{index:C,pt:w})},chainRemoveTail:function(C,w){return i("chain_rem_tail",{index:C,pt:w})},chainNew:function(C,w){return i("chain_new",{pt1:C,pt2:w})},chainMatch:function(C){return i("chain_match",{index:C})},chainClose:function(C){return i("chain_close",{index:C})},chainAddHead:function(C,w){return i("chain_add_head",{index:C,pt:w})},chainAddTail:function(C,w){return i("chain_add_tail",{index:C,pt:w})},chainConnect:function(C,w){return i("chain_con",{index1:C,index2:w})},chainReverse:function(C){return i("chain_rev",{index:C})},chainJoin:function(C,w){return i("chain_join",{index1:C,index2:w})},done:function(){return i("done")}},t}D.exports=O},28648:function(D){function O(t){typeof t!="number"&&(t=1e-10);var l={epsilon:function(S){return typeof S=="number"&&(t=S),t},pointAboveOrOnLine:function(S,i,C){var w=i[0],v=i[1],m=C[0],a=C[1],n=S[0],s=S[1];return(m-w)*(s-v)-(a-v)*(n-w)>=-t},pointBetween:function(S,i,C){var w=S[1]-i[1],v=C[0]-i[0],m=S[0]-i[0],a=C[1]-i[1],n=m*v+w*a;if(n-t)},pointsSameX:function(S,i){return Math.abs(S[0]-i[0])t!=m-w>t&&(v-s)*(w-o)/(m-o)+s-C>t&&(a=!a),v=s,m=o}return a}};return l}D.exports=O},17792:function(D){var O={toPolygon:function(t,l){function S(w){if(w.length<=0)return t.segments({inverted:!1,regions:[]});function v(n){var s=n.slice(0,n.length-1);return t.segments({inverted:!1,regions:[s]})}for(var m=v(w[0]),a=1;a0})}function M(U,H){var W=U.seg,V=H.seg,$=W.start,Z=W.end,q=V.start,ae=V.end;w&&w.checkIntersection(W,V);var ie=C.linesIntersect($,Z,q,ae);if(ie===!1){if(!C.pointsCollinear($,Z,q)||C.pointsSame($,ae)||C.pointsSame(Z,q))return!1;var fe=C.pointsSame($,q),Q=C.pointsSame(Z,ae);if(fe&&Q)return H;var J=!fe&&C.pointBetween($,q,ae),oe=!Q&&C.pointBetween(Z,q,ae);if(fe)return oe?b(H,Z):b(U,ae),H;J&&(Q||(oe?b(H,Z):b(U,ae)),b(H,$))}else ie.alongA===0&&(ie.alongB===-1?b(U,q):ie.alongB===0?b(U,ie.pt):ie.alongB===1&&b(U,ae)),ie.alongB===0&&(ie.alongA===-1?b(H,$):ie.alongA===0?b(H,ie.pt):ie.alongA===1&&b(H,Z));return!1}for(var R=[];!a.isEmpty();){var T=a.getHead();if(w&&w.vert(T.pt[0]),T.isStart){let U=function(){if(P){var H=M(T,P);if(H)return H}return d?M(T,d):!1};w&&w.segmentNew(T.seg,T.primary);var L=A(T),P=L.before?L.before.ev:null,d=L.after?L.after.ev:null;w&&w.tempStatus(T.seg,P?P.seg:!1,d?d.seg:!1);var k=U();if(k){if(i){var I;T.seg.myFill.below===null?I=!0:I=T.seg.myFill.above!==T.seg.myFill.below,I&&(k.seg.myFill.above=!k.seg.myFill.above)}else k.seg.otherFill=T.seg.myFill;w&&w.segmentUpdate(k.seg),T.other.remove(),T.remove()}if(a.getHead()!==T){w&&w.rewind(T.seg);continue}if(i){var I;T.seg.myFill.below===null?I=!0:I=T.seg.myFill.above!==T.seg.myFill.below,d?T.seg.myFill.below=d.seg.myFill.above:T.seg.myFill.below=E,I?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var N;d?T.primary===d.primary?N=d.seg.otherFill.above:N=d.seg.myFill.above:N=T.primary?g:E,T.seg.otherFill={above:N,below:N}}w&&w.status(T.seg,P?P.seg:!1,d?d.seg:!1),T.other.status=L.insert(l.node({ev:T}))}else{var B=T.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(c.exists(B.prev)&&c.exists(B.next)&&M(B.prev.ev,B.next.ev),w&&w.statusRemove(B.ev.seg),B.remove(),!T.primary){var G=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=G}R.push(T.seg)}a.getHead().remove()}return w&&w.done(),R}return i?{addRegion:function(E){for(var g,c=E[E.length-1],y=0;y0&&!this.aborted;){var C=this.ifds_to_read.shift();C.offset&&this.scan_ifd(C.id,C.offset,S)}},l.prototype.read_uint16=function(S){var i=this.input;if(S+2>i.length)throw O("unexpected EOF","EBADDATA");return this.big_endian?i[S]*256+i[S+1]:i[S]+i[S+1]*256},l.prototype.read_uint32=function(S){var i=this.input;if(S+4>i.length)throw O("unexpected EOF","EBADDATA");return this.big_endian?i[S]*16777216+i[S+1]*65536+i[S+2]*256+i[S+3]:i[S]+i[S+1]*256+i[S+2]*65536+i[S+3]*16777216},l.prototype.is_subifd_link=function(S,i){return S===0&&i===34665||S===0&&i===34853||S===34665&&i===40965},l.prototype.exif_format_length=function(S){switch(S){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(S,i){var C;switch(S){case 1:case 2:return C=this.input[i],C;case 6:return C=this.input[i],C|(C&128)*33554430;case 3:return C=this.read_uint16(i),C;case 8:return C=this.read_uint16(i),C|(C&32768)*131070;case 4:return C=this.read_uint32(i),C;case 9:return C=this.read_uint32(i),C|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},l.prototype.scan_ifd=function(S,i,C){var w=this.read_uint16(i);i+=2;for(var v=0;vthis.input.length)throw O("unexpected EOF","EBADDATA");for(var u=[],b=h,p=0;p0&&(this.ifds_to_read.push({id:m,offset:u[0]}),f=!0);var g={is_big_endian:this.big_endian,ifd:S,tag:m,format:a,count:n,entry_offset:i+this.start,data_length:o,data_offset:h+this.start,value:u,is_subifd_link:f};if(C(g)===!1){this.aborted=!0;return}i+=12}S===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(i)})},D.exports.ExifParser=l,D.exports.get_orientation=function(S){var i=0;try{return new l(S,0,S.length).each(function(C){if(C.ifd===0&&C.tag===274&&Array.isArray(C.value))return i=C.value[0],!1}),i}catch{return-1}}},44600:function(D,O,t){var l=t(9696).eW,S=t(9696).eI;function i(o,h){if(o.length<4+h)return null;var f=S(o,h);return o.length>4&15,u=o[4]&15,b=o[5]>>4&15,p=l(o,6),E=8,g=0;gp.width||b.width===p.width&&b.height>p.height?b:p}),f=o.reduce(function(b,p){return b.height>p.height||b.height===p.height&&b.width>p.width?b:p}),u;return h.width>f.height||h.width===f.height&&h.height>f.width?u=h:u=f,u}D.exports.readSizeFromMeta=function(o){var h={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(n(o,h),!!h.sizes.length){var f=s(h.sizes),u=1;h.transforms.forEach(function(p){var E={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},g={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(p.type==="imir"&&(p.value===0?u=g[u]:(u=g[u],u=E[u],u=E[u])),p.type==="irot")for(var c=0;c1&&(u.variants=f.variants),f.orientation&&(u.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=m.length){var b=i(m,f.exif_location.offset),p=m.slice(f.exif_location.offset+b+4,f.exif_location.offset+f.exif_location.length),E=w.get_orientation(p);E>0&&(u.orientation=E)}return u}}}}}}},38728:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).Bz,C=l("BM");D.exports=function(w){if(!(w.length<26)&&S(w,0,C))return{width:i(w,18),height:i(w,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},5588:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).Bz,C=l("GIF87a"),w=l("GIF89a");D.exports=function(v){if(!(v.length<10)&&!(!S(v,0,C)&&!S(v,0,w)))return{width:i(v,6),height:i(v,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},41924:function(D,O,t){var l=t(9696).Bz,S=0,i=1,C=16;D.exports=function(w){var v=l(w,0),m=l(w,2),a=l(w,4);if(!(v!==S||m!==i||!a)){for(var n=[],s={width:0,height:0},o=0;os.width||f>s.height)&&(s=u)}return{width:s.width,height:s.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},87968:function(D,O,t){var l=t(9696).eW,S=t(9696).wR,i=t(9696).gS,C=t(11688),w=S("Exif\0\0");D.exports=function(v){if(!(v.length<2)&&!(v[0]!==255||v[1]!==216||v[2]!==255))for(var m=2;;){for(;;){if(v.length-m<2)return;if(v[m++]===255)break}for(var a=v[m++],n;a===255;)a=v[m++];if(208<=a&&a<=217||a===1)n=0;else if(192<=a&&a<=254){if(v.length-m<2)return;n=l(v,m)-2,m+=2}else return;if(a===217||a===218)return;var s;if(a===225&&n>=10&&i(v,m,w)&&(s=C.get_orientation(v.slice(m+6,m+n))),n>=5&&192<=a&&a<=207&&a!==196&&a!==200&&a!==204){if(v.length-m0&&(o.orientation=s),o}m+=n}}},37276:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).eI,C=l(`‰PNG\r  -`),w=l("IHDR");D.exports=function(v){if(!(v.length<24)&&S(v,0,C)&&S(v,12,w))return{width:i(v,16),height:i(v,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},90328:function(D,O,t){var l=t(9696).wR,S=t(9696).gS,i=t(9696).eI,C=l("8BPS\0");D.exports=function(w){if(!(w.length<22)&&S(w,0,C))return{width:i(w,18),height:i(w,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},16024:function(D){function O(s){return s===32||s===9||s===13||s===10}function t(s){return typeof s=="number"&&isFinite(s)&&s>0}function l(s){var o=0,h=s.length;for(s[0]===239&&s[1]===187&&s[2]===191&&(o=3);o]*>/,i=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,C=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,w=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,v=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,m=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function a(s){var o=s.match(C),h=s.match(w),f=s.match(v);return{width:o&&(o[1]||o[2]),height:h&&(h[1]||h[2]),viewbox:f&&(f[1]||f[2])}}function n(s){return m.test(s)?s.match(m)[0]:"px"}D.exports=function(s){if(l(s)){for(var o="",h=0;h>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function s(o,h){return{width:(o[h+6]<<16|o[h+5]<<8|o[h+4])+1,height:(o[h+9]<o.length)){for(;h+8=10?f=f||a(o,h+8):p==="VP8L"&&E>=9?f=f||n(o,h+8):p==="VP8X"&&E>=10?f=f||s(o,h+8):p==="EXIF"&&(u=w.get_orientation(o.slice(h+8,h+8+E)),h=1/0),h+=8+E}if(f)return u>0&&(f.orientation=u),f}}}},87480:function(D,O,t){D.exports={avif:t(40528),bmp:t(38728),gif:t(5588),ico:t(41924),jpeg:t(87968),png:t(37276),psd:t(90328),svg:t(16024),tiff:t(98792),webp:t(20704)}},19480:function(D,O,t){var l=t(87480);function S(i){for(var C=Object.keys(l),w=0;w1)for(var p=1;p"u"?t.g:window,i=["moz","webkit"],C="AnimationFrame",w=S["request"+C],v=S["cancel"+C]||S["cancelRequest"+C],m=0;!w&&m0}function l(s){var o=0,h=s.length;for(s[0]===239&&s[1]===187&&s[2]===191&&(o=3);o]*>/,i=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,C=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,w=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,v=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,m=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function a(s){var o=s.match(C),h=s.match(w),f=s.match(v);return{width:o&&(o[1]||o[2]),height:h&&(h[1]||h[2]),viewbox:f&&(f[1]||f[2])}}function n(s){return m.test(s)?s.match(m)[0]:"px"}D.exports=function(s){if(l(s)){for(var o="",h=0;h>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function s(o,h){return{width:(o[h+6]<<16|o[h+5]<<8|o[h+4])+1,height:(o[h+9]<o.length)){for(;h+8=10?f=f||a(o,h+8):p==="VP8L"&&E>=9?f=f||n(o,h+8):p==="VP8X"&&E>=10?f=f||s(o,h+8):p==="EXIF"&&(u=w.get_orientation(o.slice(h+8,h+8+E)),h=1/0),h+=8+E}if(f)return u>0&&(f.orientation=u),f}}}},87480:function(D,O,t){D.exports={avif:t(40528),bmp:t(38728),gif:t(5588),ico:t(41924),jpeg:t(87968),png:t(37276),psd:t(90328),svg:t(16024),tiff:t(98792),webp:t(20704)}},19480:function(D,O,t){var l=t(87480);function S(i){for(var C=Object.keys(l),w=0;w1)for(var p=1;p"u"?t.g:window,i=["moz","webkit"],C="AnimationFrame",w=S["request"+C],v=S["cancel"+C]||S["cancelRequest"+C],m=0;!w&&m1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],b(k),k.after&&k.after(k))}function P(k){if(k){k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);var I=0,N=0;if(R.groups=M=k.map(function($,Z){var q=M[Z];if($)typeof $=="function"?$={after:$}:typeof $[0]=="number"&&($={positions:$});else return q;return $=C($,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),q||(M[Z]=q={id:Z,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},$=w({},A,$)),i(q,$,[{lineWidth:function(ae){return+ae*.5},capSize:function(ae){return+ae*.5},opacity:parseFloat,errors:function(ae){return ae=v(ae),N+=ae.length,ae},positions:function(ae,ie){return ae=v(ae,"float64"),ie.count=Math.floor(ae.length/2),ie.bounds=l(ae,2),ie.offset=I,I+=ie.count,ae}},{color:function(ae,ie){var fe=ie.count;if(ae||(ae="transparent"),!Array.isArray(ae)||typeof ae[0]=="number"){var Q=ae;ae=Array(fe);for(var J=0;J1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],b(k),k.after&&k.after(k))}function P(k){if(k){k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);var I=0,N=0;if(R.groups=M=k.map(function($,Z){var q=M[Z];if($)typeof $=="function"?$={after:$}:typeof $[0]=="number"&&($={positions:$});else return q;return $=C($,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),q||(M[Z]=q={id:Z,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},$=w({},A,$)),i(q,$,[{lineWidth:function(ae){return+ae*.5},capSize:function(ae){return+ae*.5},opacity:parseFloat,errors:function(ae){return ae=v(ae),N+=ae.length,ae},positions:function(ae,ie){return ae=v(ae,"float64"),ie.count=Math.floor(ae.length/2),ie.bounds=l(ae,2),ie.offset=I,I+=ie.count,ae}},{color:function(ae,ie){var fe=ie.count;if(ae||(ae="transparent"),!Array.isArray(ae)||typeof ae[0]=="number"){var Q=ae;ae=Array(fe);for(var J=0;J1&&T.opacity&&(A.regl._refresh(),T.fill&&T.triangles&&T.triangles.length>2&&A.shaders.fill(T),T.thickness&&(T.scale[0]*T.viewport.width>x.precisionThreshold||T.scale[1]*T.viewport.height>x.precisionThreshold||T.join==="rect"||!T.join&&(T.thickness<=2||T.count>=x.maxPoints)?A.shaders.rect(T):A.shaders.miter(T)))}),this},x.prototype.update=function(A){var M=this;if(A){A.length!=null?typeof A[0]=="number"&&(A=[{positions:A}]):Array.isArray(A)||(A=[A]);var R=this,T=R.regl,L=R.gl;if(A.forEach(function(N,B){var G=M.passes[B];if(N!==void 0){if(N===null){M.passes[B]=null;return}if(typeof N[0]=="number"&&(N={positions:N}),N=C(N,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),G||(M.passes[B]=G={id:B,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:T.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:T.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:T.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:T.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},N=i({},x.defaults,N)),N.thickness!=null&&(G.thickness=parseFloat(N.thickness)),N.opacity!=null&&(G.opacity=parseFloat(N.opacity)),N.miterLimit!=null&&(G.miterLimit=parseFloat(N.miterLimit)),N.overlay!=null&&(G.overlay=!!N.overlay,B=ee});ne=ne.slice(0,de),ne.push(ee)}for(var le=function(Pe){var Ve=q.slice(re*2,ne[Pe]*2).concat(ee?q.slice(ee*2):[]),Je=(G.hole||[]).map(function(yt){return yt-ee+(ne[Pe]-re)}),ot=v(Ve,Je);ot=ot.map(function(yt){return yt+re+(yt+red.length)&&(k=d.length);for(var I=0,N=new Array(k);I1&&T.opacity&&(A.regl._refresh(),T.fill&&T.triangles&&T.triangles.length>2&&A.shaders.fill(T),T.thickness&&(T.scale[0]*T.viewport.width>y.precisionThreshold||T.scale[1]*T.viewport.height>y.precisionThreshold||T.join==="rect"||!T.join&&(T.thickness<=2||T.count>=y.maxPoints)?A.shaders.rect(T):A.shaders.miter(T)))}),this},y.prototype.update=function(A){var M=this;if(A){A.length!=null?typeof A[0]=="number"&&(A=[{positions:A}]):Array.isArray(A)||(A=[A]);var R=this,T=R.regl,L=R.gl;if(A.forEach(function(N,B){var G=M.passes[B];if(N!==void 0){if(N===null){M.passes[B]=null;return}if(typeof N[0]=="number"&&(N={positions:N}),N=C(N,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),G||(M.passes[B]=G={id:B,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:T.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:T.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:T.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:T.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},N=i({},y.defaults,N)),N.thickness!=null&&(G.thickness=parseFloat(N.thickness)),N.opacity!=null&&(G.opacity=parseFloat(N.opacity)),N.miterLimit!=null&&(G.miterLimit=parseFloat(N.miterLimit)),N.overlay!=null&&(G.overlay=!!N.overlay,B=ee});ne=ne.slice(0,de),ne.push(ee)}for(var le=function(Pe){var Ve=q.slice(re*2,ne[Pe]*2).concat(ee?q.slice(ee*2):[]),Je=(G.hole||[]).map(function(yt){return yt-ee+(ne[Pe]-re)}),ot=v(Ve,Je);ot=ot.map(function(yt){return yt+re+(yt+red.length)&&(k=d.length);for(var I=0,N=new Array(k);INe)?Ie.tree=u(be,{bounds:at}):Ne&&Ne.length&&(Ie.tree=Ne),Ie.tree){var nt={primitive:"points",usage:"static",data:Ie.tree,type:"uint32"};Ie.elements?Ie.elements(nt):Ie.elements=U.elements(nt)}var mt=A.float32(be);ze({data:mt,usage:"dynamic"});var rt=A.fract32(be,mt);return $e({data:rt,usage:"dynamic"}),st({data:new Uint8Array(vt),type:"uint8",usage:"stream"}),be}},{marker:function(be,Ie,Ue){var Ne=Ie.activation;if(Ne.forEach(function(rt){return rt&&rt.destroy&&rt.destroy()}),Ne.length=0,!be||typeof be[0]=="number"){var ze=d.addMarker(be);Ne[ze]=!0}else{for(var $e=[],st=0,vt=Math.min(be.length,Ie.count);st=0)return B;var G;if(d instanceof Uint8Array||d instanceof Uint8ClampedArray)G=d;else{G=new Uint8Array(d.length);for(var U=0,H=d.length;UN*4&&(this.tooManyColors=!0),this.updatePalette(I),B.length===1?B[0]:B},T.prototype.updatePalette=function(d){if(!this.tooManyColors){var k=this.maxColors,I=this.paletteTexture,N=Math.ceil(d.length*.25/k);if(N>1){d=d.slice();for(var B=d.length*.25%k;BN)&&!(!E.lower&&I2?(c[0],c[2],b=c[1],p=c[3]):c.length?(b=c[0],p=c[1]):(c.x,b=c.y,c.x+c.width,p=c.y+c.height),x.length>2?(E=x[0],g=x[2],x[1],x[3]):x.length?(E=x[0],g=x[1]):(E=x.x,x.y,g=x.x+x.width,x.y+x.height),[E,b,g,p]}function o(h){if(typeof h=="number")return[h,h,h,h];if(h.length===2)return[h[0],h[1],h[0],h[1]];var f=v(h);return[f.x,f.y,f.x+f.width,f.y+f.height]}},28624:function(D){(function(O,t){D.exports=t()})(this,function(){function O(Tt,Kt){this.id=he++,this.type=Tt,this.data=Kt}function t(Tt){if(Tt.length===0)return[];var Kt=Tt.charAt(0),Qt=Tt.charAt(Tt.length-1);if(1"u"?1:window.devicePixelRatio,_t=!1,Ft={},Wt=function(er){},jt=function(){};if(typeof Kt=="string"?Qt=document.querySelector(Kt):typeof Kt=="object"&&(typeof Kt.nodeName=="string"&&typeof Kt.appendChild=="function"&&typeof Kt.getBoundingClientRect=="function"?Qt=Kt:typeof Kt.drawArrays=="function"||typeof Kt.drawElements=="function"?(Ct=Kt,sr=Ct.canvas):("gl"in Kt?Ct=Kt.gl:"canvas"in Kt?sr=m(Kt.canvas):"container"in Kt&&(xr=m(Kt.container)),"attributes"in Kt&&(Tt=Kt.attributes),"extensions"in Kt&&(ht=v(Kt.extensions)),"optionalExtensions"in Kt&&(At=v(Kt.optionalExtensions)),"onDone"in Kt&&(Wt=Kt.onDone),"profile"in Kt&&(_t=!!Kt.profile),"pixelRatio"in Kt&&(Rt=+Kt.pixelRatio),"cachedCode"in Kt&&(Ft=Kt.cachedCode))),Qt&&(Qt.nodeName.toLowerCase()==="canvas"?sr=Qt:xr=Qt),!Ct){if(!sr){if(Qt=C(xr||document.body,Wt,Rt),!Qt)return null;sr=Qt.canvas,jt=Qt.onDestroy}Tt.premultipliedAlpha===void 0&&(Tt.premultipliedAlpha=!0),Ct=w(sr,Tt)}return Ct?{gl:Ct,canvas:sr,container:xr,extensions:ht,optionalExtensions:At,pixelRatio:Rt,profile:_t,cachedCode:Ft,onDone:Wt,onDestroy:jt}:(jt(),Wt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function n(Tt,Kt){function Qt(ht){ht=ht.toLowerCase();var At;try{At=xr[ht]=Tt.getExtension(ht)}catch{}return!!At}for(var xr={},sr=0;sr>>=Kt,Qt=(255>>=Qt,Kt|=Qt,Qt=(15>>=Qt,Kt|=Qt,Qt=(3>>Qt>>1}function h(){function Tt(xr){e:{for(var sr=16;268435456>=sr;sr*=16)if(xr<=sr){xr=sr;break e}xr=0}return sr=Qt[o(xr)>>2],0>2].push(xr)}var Qt=s(8,function(){return[]});return{alloc:Tt,free:Kt,allocType:function(xr,sr){var Ct=null;switch(xr){case 5120:Ct=new Int8Array(Tt(sr),0,sr);break;case 5121:Ct=new Uint8Array(Tt(sr),0,sr);break;case 5122:Ct=new Int16Array(Tt(2*sr),0,sr);break;case 5123:Ct=new Uint16Array(Tt(2*sr),0,sr);break;case 5124:Ct=new Int32Array(Tt(4*sr),0,sr);break;case 5125:Ct=new Uint32Array(Tt(4*sr),0,sr);break;case 5126:Ct=new Float32Array(Tt(4*sr),0,sr);break;default:return null}return Ct.length!==sr?Ct.subarray(0,sr):Ct},freeType:function(xr){Kt(xr.buffer)}}}function f(Tt){return!!Tt&&typeof Tt=="object"&&Array.isArray(Tt.shape)&&Array.isArray(Tt.stride)&&typeof Tt.offset=="number"&&Tt.shape.length===Tt.stride.length&&(Array.isArray(Tt.data)||Ae(Tt.data))}function u(Tt,Kt,Qt,xr,sr,Ct){for(var ht=0;htjt&&(jt=Wt.buffer.byteLength,Xe===5123?jt>>=1:Xe===5125&&(jt>>=2)),Wt.vertCount=jt,jt=hr,0>hr&&(jt=4,hr=Wt.buffer.dimension,hr===1&&(jt=0),hr===2&&(jt=1),hr===3&&(jt=4)),Wt.primType=jt}function ht(Wt){xr.elementsCount--,delete At[Wt.id],Wt.buffer.destroy(),Wt.buffer=null}var At={},Rt=0,_t={uint8:5121,uint16:5123};Kt.oes_element_index_uint&&(_t.uint32=5125),sr.prototype.bind=function(){this.buffer.bind()};var Ft=[];return{create:function(Wt,jt){function er(mr){if(mr)if(typeof mr=="number")hr(mr),vr.primType=4,vr.vertCount=mr|0,vr.type=5121;else{var Ze=null,Xe=35044,Ut=-1,Bt=-1,qt=0,nr=0;Array.isArray(mr)||Ae(mr)||f(mr)?Ze=mr:("data"in mr&&(Ze=mr.data),"usage"in mr&&(Xe=ze[mr.usage]),"primitive"in mr&&(Ut=at[mr.primitive]),"count"in mr&&(Bt=mr.count|0),"type"in mr&&(nr=_t[mr.type]),"length"in mr?qt=mr.length|0:(qt=Bt,nr===5123||nr===5122?qt*=2:(nr===5125||nr===5124)&&(qt*=4))),Ct(vr,Ze,Xe,Ut,Bt,qt,nr)}else hr(),vr.primType=4,vr.vertCount=0,vr.type=5121;return er}var hr=Qt.create(null,34963,!0),vr=new sr(hr._buffer);return xr.elementsCount++,er(Wt),er._reglType="elements",er._elements=vr,er.subdata=function(mr,Ze){return hr.subdata(mr,Ze),er},er.destroy=function(){ht(vr)},er},createStream:function(Wt){var jt=Ft.pop();return jt||(jt=new sr(Qt.create(null,34963,!0,!1)._buffer)),Ct(jt,Wt,35040,-1,-1,0,0),jt},destroyStream:function(Wt){Ft.push(Wt)},getElements:function(Wt){return typeof Wt=="function"&&Wt._elements instanceof sr?Wt._elements:null},clear:function(){be(At).forEach(ht)}}}function A(Tt){for(var Kt=ke.allocType(5123,Tt.length),Qt=0;Qt>>31<<15,sr=(Ct<<1>>>24)-127,Ct=Ct>>13&1023;Kt[Qt]=-24>sr?xr:-14>sr?xr+(Ct+1024>>-14-sr):15>=Jn,nn.height>>=Jn,jt(nn,wn[Jn]),Cr.mipmask|=1<cn;++cn)Cr.images[cn]=null;return Cr}function qt(Cr){for(var cn=Cr.images,nn=0;nnCr){for(var cn=0;cn=--this.refCount&&Tr(this)}}),ht.profile&&(Ct.getTotalTextureSize=function(){var Cr=0;return Object.keys(Ia).forEach(function(cn){Cr+=Ia[cn].stats.size}),Cr}),{create2D:function(Cr,cn){function nn(Jn,In){var Rn=wn.texInfo;nr.call(Rn);var Xn=Bt();return typeof Jn=="number"?typeof In=="number"?Ze(Xn,Jn|0,In|0):Ze(Xn,Jn|0,Jn|0):Jn?(fr(Rn,Jn),Xe(Xn,Jn)):Ze(Xn,1,1),Rn.genMipmaps&&(Xn.mipmask=(Xn.width<<1)-1),wn.mipmask=Xn.mipmask,Rt(wn,Xn),wn.internalformat=Xn.internalformat,nn.width=Xn.width,nn.height=Xn.height,pr(wn),Ut(Xn,3553),ir(Rn,3553),br(),qt(Xn),ht.profile&&(wn.stats.size=I(wn.internalformat,wn.type,Xn.width,Xn.height,Rn.genMipmaps,!1)),nn.format=Zr[wn.internalformat],nn.type=Wr[wn.type],nn.mag=fn[Rn.magFilter],nn.min=Tn[Rn.minFilter],nn.wrapS=Sn[Rn.wrapS],nn.wrapT=Sn[Rn.wrapT],nn}var wn=new Ht(3553);return Ia[wn.id]=wn,Ct.textureCount++,nn(Cr,cn),nn.subimage=function(Jn,In,Rn,Xn){In|=0,Rn|=0,Xn|=0;var la=hr();return Rt(la,wn),la.width=0,la.height=0,jt(la,Jn),la.width=la.width||(wn.width>>Xn)-In,la.height=la.height||(wn.height>>Xn)-Rn,pr(wn),er(la,3553,In,Rn,Xn),br(),vr(la),nn},nn.resize=function(Jn,In){var Rn=Jn|0,Xn=In|0||Rn;if(Rn===wn.width&&Xn===wn.height)return nn;nn.width=wn.width=Rn,nn.height=wn.height=Xn,pr(wn);for(var la=0;wn.mipmask>>la;++la){var Da=Rn>>la,Qa=Xn>>la;if(!Da||!Qa)break;Tt.texImage2D(3553,la,wn.format,Da,Qa,0,wn.format,wn.type,null)}return br(),ht.profile&&(wn.stats.size=I(wn.internalformat,wn.type,Rn,Xn,!1,!1)),nn},nn._reglType="texture2d",nn._texture=wn,ht.profile&&(nn.stats=wn.stats),nn.destroy=function(){wn.decRef()},nn},createCube:function(Cr,cn,nn,wn,Jn,In){function Rn(Da,Qa,Pr,Ur,Ar,Vr){var An,Hn=Xn.texInfo;for(nr.call(Hn),An=0;6>An;++An)la[An]=Bt();if(typeof Da=="number"||!Da)for(Da=Da|0||1,An=0;6>An;++An)Ze(la[An],Da,Da);else if(typeof Da=="object")if(Qa)Xe(la[0],Da),Xe(la[1],Qa),Xe(la[2],Pr),Xe(la[3],Ur),Xe(la[4],Ar),Xe(la[5],Vr);else if(fr(Hn,Da),_t(Xn,Da),"faces"in Da)for(Da=Da.faces,An=0;6>An;++An)Rt(la[An],Xn),Xe(la[An],Da[An]);else for(An=0;6>An;++An)Xe(la[An],Da);for(Rt(Xn,la[0]),Xn.mipmask=Hn.genMipmaps?(la[0].width<<1)-1:la[0].mipmask,Xn.internalformat=la[0].internalformat,Rn.width=la[0].width,Rn.height=la[0].height,pr(Xn),An=0;6>An;++An)Ut(la[An],34069+An);for(ir(Hn,34067),br(),ht.profile&&(Xn.stats.size=I(Xn.internalformat,Xn.type,Rn.width,Rn.height,Hn.genMipmaps,!0)),Rn.format=Zr[Xn.internalformat],Rn.type=Wr[Xn.type],Rn.mag=fn[Hn.magFilter],Rn.min=Tn[Hn.minFilter],Rn.wrapS=Sn[Hn.wrapS],Rn.wrapT=Sn[Hn.wrapT],An=0;6>An;++An)qt(la[An]);return Rn}var Xn=new Ht(34067);Ia[Xn.id]=Xn,Ct.cubeCount++;var la=Array(6);return Rn(Cr,cn,nn,wn,Jn,In),Rn.subimage=function(Da,Qa,Pr,Ur,Ar){Pr|=0,Ur|=0,Ar|=0;var Vr=hr();return Rt(Vr,Xn),Vr.width=0,Vr.height=0,jt(Vr,Qa),Vr.width=Vr.width||(Xn.width>>Ar)-Pr,Vr.height=Vr.height||(Xn.height>>Ar)-Ur,pr(Xn),er(Vr,34069+Da,Pr,Ur,Ar),br(),vr(Vr),Rn},Rn.resize=function(Da){if(Da|=0,Da!==Xn.width){Rn.width=Xn.width=Da,Rn.height=Xn.height=Da,pr(Xn);for(var Qa=0;6>Qa;++Qa)for(var Pr=0;Xn.mipmask>>Pr;++Pr)Tt.texImage2D(34069+Qa,Pr,Xn.format,Da>>Pr,Da>>Pr,0,Xn.format,Xn.type,null);return br(),ht.profile&&(Xn.stats.size=I(Xn.internalformat,Xn.type,Rn.width,Rn.height,!1,!0)),Rn}},Rn._reglType="textureCube",Rn._texture=Xn,ht.profile&&(Rn.stats=Xn.stats),Rn.destroy=function(){Xn.decRef()},Rn},clear:function(){for(var Cr=0;Crwn;++wn)if(nn.mipmask&1<>wn,nn.height>>wn,0,nn.internalformat,nn.type,null);else for(var Jn=0;6>Jn;++Jn)Tt.texImage2D(34069+Jn,wn,nn.internalformat,nn.width>>wn,nn.height>>wn,0,nn.internalformat,nn.type,null);ir(nn.texInfo,nn.target)})},refresh:function(){for(var Cr=0;Crgr;++gr){for(un=0;unTr;++Tr)br[Tr].resize(gr);return pr.width=pr.height=gr,pr},_reglType:"framebufferCube",destroy:function(){br.forEach(function(Tr){Tr.destroy()})}})},clear:function(){be(ir).forEach(mr)},restore:function(){Ut.cur=null,Ut.next=null,Ut.dirty=!0,be(ir).forEach(function(Ht){Ht.framebuffer=Tt.createFramebuffer(),Ze(Ht)})}})}function G(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function U(Tt,Kt,Qt,xr,sr,Ct,ht){function At(Ze){if(Ze!==mr.currentVAO){var Xe=Kt.oes_vertex_array_object;Ze?Xe.bindVertexArrayOES(Ze.vao):Xe.bindVertexArrayOES(null),mr.currentVAO=Ze}}function Rt(Ze){if(Ze!==mr.currentVAO){if(Ze)Ze.bindAttrs();else{for(var Xe=Kt.angle_instanced_arrays,Ut=0;Ut=pr.byteLength?br.subdata(pr):(br.destroy(),Ut.buffers[fr]=null)),Ut.buffers[fr]||(br=Ut.buffers[fr]=sr.create(ir,34962,!1,!0)),Ht.buffer=sr.getBuffer(br),Ht.size=Ht.buffer.dimension|0,Ht.normalized=!1,Ht.type=Ht.buffer.dtype,Ht.offset=0,Ht.stride=0,Ht.divisor=0,Ht.state=1,Bt[fr]=1}else sr.getBuffer(ir)?(Ht.buffer=sr.getBuffer(ir),Ht.size=Ht.buffer.dimension|0,Ht.normalized=!1,Ht.type=Ht.buffer.dtype,Ht.offset=0,Ht.stride=0,Ht.divisor=0,Ht.state=1):sr.getBuffer(ir.buffer)?(Ht.buffer=sr.getBuffer(ir.buffer),Ht.size=(+ir.size||Ht.buffer.dimension)|0,Ht.normalized=!!ir.normalized||!1,Ht.type="type"in ir?Ne[ir.type]:Ht.buffer.dtype,Ht.offset=(ir.offset||0)|0,Ht.stride=(ir.stride||0)|0,Ht.divisor=(ir.divisor||0)|0,Ht.state=1):"x"in ir&&(Ht.x=+ir.x||0,Ht.y=+ir.y||0,Ht.z=+ir.z||0,Ht.w=+ir.w||0,Ht.state=2)}for(br=0;brhr&&(hr=vr.stats.uniformsCount)}),hr},Qt.getMaxAttributesCount=function(){var hr=0;return jt.forEach(function(vr){vr.stats.attributesCount>hr&&(hr=vr.stats.attributesCount)}),hr}),{clear:function(){var hr=Tt.deleteShader.bind(Tt);be(_t).forEach(hr),_t={},be(Ft).forEach(hr),Ft={},jt.forEach(function(vr){Tt.deleteProgram(vr.program)}),jt.length=0,Wt={},Qt.shaderCount=0},program:function(hr,vr,mr,Ze){var Xe=Wt[vr];Xe||(Xe=Wt[vr]={});var Ut=Xe[hr];if(Ut&&(Ut.refCount++,!Ze))return Ut;var Bt=new At(vr,hr);return Qt.shaderCount++,Rt(Bt,mr,Ze),Ut||(Xe[hr]=Bt),jt.push(Bt),le(Bt,{destroy:function(){if(Bt.refCount--,0>=Bt.refCount){Tt.deleteProgram(Bt.program);var qt=jt.indexOf(Bt);jt.splice(qt,1),Qt.shaderCount--}0>=Xe[Bt.vertId].refCount&&(Tt.deleteShader(Ft[Bt.vertId]),delete Ft[Bt.vertId],delete Wt[Bt.fragId][Bt.vertId]),Object.keys(Wt[Bt.fragId]).length||(Tt.deleteShader(_t[Bt.fragId]),delete _t[Bt.fragId],delete Wt[Bt.fragId])}})},restore:function(){_t={},Ft={};for(var hr=0;hr>2),xr=0;xr>5]|=(Tt.charCodeAt(xr/8)&255)<<24-xr%32;var Qt=8*Tt.length;Tt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var xr=Array(64),sr,Ct,ht,At,Rt,_t,Ft,Wt,jt,er,hr;for(Kt[Qt>>5]|=128<<24-Qt%32,Kt[(Qt+64>>9<<4)+15]=Qt,Wt=0;Wtjt;jt++){if(16>jt)xr[jt]=Kt[jt+Wt];else{er=jt,hr=xr[jt-2],hr=q(hr,17)^q(hr,19)^hr>>>10,hr=ae(hr,xr[jt-7]);var vr;vr=xr[jt-15],vr=q(vr,7)^q(vr,18)^vr>>>3,xr[er]=ae(ae(hr,vr),xr[jt-16])}er=At,er=q(er,6)^q(er,11)^q(er,25),er=ae(ae(ae(ae(Ft,er),At&Rt^~At&_t),ot[jt]),xr[jt]),Ft=Qt,Ft=q(Ft,2)^q(Ft,13)^q(Ft,22),hr=ae(Ft,Qt&sr^Qt&Ct^sr&Ct),Ft=_t,_t=Rt,Rt=At,At=ae(ht,er),ht=Ct,Ct=sr,sr=Qt,Qt=ae(er,hr)}Tt[0]=ae(Qt,Tt[0]),Tt[1]=ae(sr,Tt[1]),Tt[2]=ae(Ct,Tt[2]),Tt[3]=ae(ht,Tt[3]),Tt[4]=ae(At,Tt[4]),Tt[5]=ae(Rt,Tt[5]),Tt[6]=ae(_t,Tt[6]),Tt[7]=ae(Ft,Tt[7])}for(Kt="",xr=0;xr<32*Tt.length;xr+=8)Kt+=String.fromCharCode(Tt[xr>>5]>>>24-xr%32&255);return Kt}function $(Tt){for(var Kt="",Qt,xr=0;xr>>4&15)+"0123456789abcdef".charAt(Qt&15);return Kt}function Z(Tt){for(var Kt="",Qt=-1,xr,sr;++Qt=xr&&56320<=sr&&57343>=sr&&(xr=65536+((xr&1023)<<10)+(sr&1023),Qt++),127>=xr?Kt+=String.fromCharCode(xr):2047>=xr?Kt+=String.fromCharCode(192|xr>>>6&31,128|xr&63):65535>=xr?Kt+=String.fromCharCode(224|xr>>>12&15,128|xr>>>6&63,128|xr&63):2097151>=xr&&(Kt+=String.fromCharCode(240|xr>>>18&7,128|xr>>>12&63,128|xr>>>6&63,128|xr&63));return Kt}function q(Tt,Kt){return Tt>>>Kt|Tt<<32-Kt}function ae(Tt,Kt){var Qt=(Tt&65535)+(Kt&65535);return(Tt>>16)+(Kt>>16)+(Qt>>16)<<16|Qt&65535}function ie(Tt){return Array.prototype.slice.call(Tt)}function fe(Tt){return ie(Tt).join("")}function Q(Tt){function Kt(){var Ft=[],Wt=[];return le(function(){Ft.push.apply(Ft,ie(arguments))},{def:function(){var jt="v"+sr++;return Wt.push(jt),0Ne)?Ie.tree=u(be,{bounds:at}):Ne&&Ne.length&&(Ie.tree=Ne),Ie.tree){var nt={primitive:"points",usage:"static",data:Ie.tree,type:"uint32"};Ie.elements?Ie.elements(nt):Ie.elements=U.elements(nt)}var mt=A.float32(be);ze({data:mt,usage:"dynamic"});var rt=A.fract32(be,mt);return $e({data:rt,usage:"dynamic"}),st({data:new Uint8Array(vt),type:"uint8",usage:"stream"}),be}},{marker:function(be,Ie,Ue){var Ne=Ie.activation;if(Ne.forEach(function(rt){return rt&&rt.destroy&&rt.destroy()}),Ne.length=0,!be||typeof be[0]=="number"){var ze=d.addMarker(be);Ne[ze]=!0}else{for(var $e=[],st=0,vt=Math.min(be.length,Ie.count);st=0)return B;var G;if(d instanceof Uint8Array||d instanceof Uint8ClampedArray)G=d;else{G=new Uint8Array(d.length);for(var U=0,H=d.length;UN*4&&(this.tooManyColors=!0),this.updatePalette(I),B.length===1?B[0]:B},T.prototype.updatePalette=function(d){if(!this.tooManyColors){var k=this.maxColors,I=this.paletteTexture,N=Math.ceil(d.length*.25/k);if(N>1){d=d.slice();for(var B=d.length*.25%k;BN)&&!(!E.lower&&I2?(c[0],c[2],b=c[1],p=c[3]):c.length?(b=c[0],p=c[1]):(c.x,b=c.y,c.x+c.width,p=c.y+c.height),y.length>2?(E=y[0],g=y[2],y[1],y[3]):y.length?(E=y[0],g=y[1]):(E=y.x,y.y,g=y.x+y.width,y.y+y.height),[E,b,g,p]}function o(h){if(typeof h=="number")return[h,h,h,h];if(h.length===2)return[h[0],h[1],h[0],h[1]];var f=v(h);return[f.x,f.y,f.x+f.width,f.y+f.height]}},28624:function(D){(function(O,t){D.exports=t()})(this,function(){function O(Tt,Kt){this.id=he++,this.type=Tt,this.data=Kt}function t(Tt){if(Tt.length===0)return[];var Kt=Tt.charAt(0),qt=Tt.charAt(Tt.length-1);if(1"u"?1:window.devicePixelRatio,zt=!1,Ft={},Wt=function(er){},jt=function(){};if(typeof Kt=="string"?qt=document.querySelector(Kt):typeof Kt=="object"&&(typeof Kt.nodeName=="string"&&typeof Kt.appendChild=="function"&&typeof Kt.getBoundingClientRect=="function"?qt=Kt:typeof Kt.drawArrays=="function"||typeof Kt.drawElements=="function"?(Ct=Kt,sr=Ct.canvas):("gl"in Kt?Ct=Kt.gl:"canvas"in Kt?sr=m(Kt.canvas):"container"in Kt&&(br=m(Kt.container)),"attributes"in Kt&&(Tt=Kt.attributes),"extensions"in Kt&&(ht=v(Kt.extensions)),"optionalExtensions"in Kt&&(Mt=v(Kt.optionalExtensions)),"onDone"in Kt&&(Wt=Kt.onDone),"profile"in Kt&&(zt=!!Kt.profile),"pixelRatio"in Kt&&(Rt=+Kt.pixelRatio),"cachedCode"in Kt&&(Ft=Kt.cachedCode))),qt&&(qt.nodeName.toLowerCase()==="canvas"?sr=qt:br=qt),!Ct){if(!sr){if(qt=C(br||document.body,Wt,Rt),!qt)return null;sr=qt.canvas,jt=qt.onDestroy}Tt.premultipliedAlpha===void 0&&(Tt.premultipliedAlpha=!0),Ct=w(sr,Tt)}return Ct?{gl:Ct,canvas:sr,container:br,extensions:ht,optionalExtensions:Mt,pixelRatio:Rt,profile:zt,cachedCode:Ft,onDone:Wt,onDestroy:jt}:(jt(),Wt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function n(Tt,Kt){function qt(ht){ht=ht.toLowerCase();var Mt;try{Mt=br[ht]=Tt.getExtension(ht)}catch{}return!!Mt}for(var br={},sr=0;sr>>=Kt,qt=(255>>=qt,Kt|=qt,qt=(15>>=qt,Kt|=qt,qt=(3>>qt>>1}function h(){function Tt(br){e:{for(var sr=16;268435456>=sr;sr*=16)if(br<=sr){br=sr;break e}br=0}return sr=qt[o(br)>>2],0>2].push(br)}var qt=s(8,function(){return[]});return{alloc:Tt,free:Kt,allocType:function(br,sr){var Ct=null;switch(br){case 5120:Ct=new Int8Array(Tt(sr),0,sr);break;case 5121:Ct=new Uint8Array(Tt(sr),0,sr);break;case 5122:Ct=new Int16Array(Tt(2*sr),0,sr);break;case 5123:Ct=new Uint16Array(Tt(2*sr),0,sr);break;case 5124:Ct=new Int32Array(Tt(4*sr),0,sr);break;case 5125:Ct=new Uint32Array(Tt(4*sr),0,sr);break;case 5126:Ct=new Float32Array(Tt(4*sr),0,sr);break;default:return null}return Ct.length!==sr?Ct.subarray(0,sr):Ct},freeType:function(br){Kt(br.buffer)}}}function f(Tt){return!!Tt&&typeof Tt=="object"&&Array.isArray(Tt.shape)&&Array.isArray(Tt.stride)&&typeof Tt.offset=="number"&&Tt.shape.length===Tt.stride.length&&(Array.isArray(Tt.data)||Ae(Tt.data))}function u(Tt,Kt,qt,br,sr,Ct){for(var ht=0;htjt&&(jt=Wt.buffer.byteLength,Xe===5123?jt>>=1:Xe===5125&&(jt>>=2)),Wt.vertCount=jt,jt=hr,0>hr&&(jt=4,hr=Wt.buffer.dimension,hr===1&&(jt=0),hr===2&&(jt=1),hr===3&&(jt=4)),Wt.primType=jt}function ht(Wt){br.elementsCount--,delete Mt[Wt.id],Wt.buffer.destroy(),Wt.buffer=null}var Mt={},Rt=0,zt={uint8:5121,uint16:5123};Kt.oes_element_index_uint&&(zt.uint32=5125),sr.prototype.bind=function(){this.buffer.bind()};var Ft=[];return{create:function(Wt,jt){function er(pr){if(pr)if(typeof pr=="number")hr(pr),vr.primType=4,vr.vertCount=pr|0,vr.type=5121;else{var Ke=null,Xe=35044,Ut=-1,Bt=-1,Qt=0,or=0;Array.isArray(pr)||Ae(pr)||f(pr)?Ke=pr:("data"in pr&&(Ke=pr.data),"usage"in pr&&(Xe=ze[pr.usage]),"primitive"in pr&&(Ut=at[pr.primitive]),"count"in pr&&(Bt=pr.count|0),"type"in pr&&(or=zt[pr.type]),"length"in pr?Qt=pr.length|0:(Qt=Bt,or===5123||or===5122?Qt*=2:(or===5125||or===5124)&&(Qt*=4))),Ct(vr,Ke,Xe,Ut,Bt,Qt,or)}else hr(),vr.primType=4,vr.vertCount=0,vr.type=5121;return er}var hr=qt.create(null,34963,!0),vr=new sr(hr._buffer);return br.elementsCount++,er(Wt),er._reglType="elements",er._elements=vr,er.subdata=function(pr,Ke){return hr.subdata(pr,Ke),er},er.destroy=function(){ht(vr)},er},createStream:function(Wt){var jt=Ft.pop();return jt||(jt=new sr(qt.create(null,34963,!0,!1)._buffer)),Ct(jt,Wt,35040,-1,-1,0,0),jt},destroyStream:function(Wt){Ft.push(Wt)},getElements:function(Wt){return typeof Wt=="function"&&Wt._elements instanceof sr?Wt._elements:null},clear:function(){be(Mt).forEach(ht)}}}function A(Tt){for(var Kt=ke.allocType(5123,Tt.length),qt=0;qt>>31<<15,sr=(Ct<<1>>>24)-127,Ct=Ct>>13&1023;Kt[qt]=-24>sr?br:-14>sr?br+(Ct+1024>>-14-sr):15>=Jn,nn.height>>=Jn,jt(nn,Sn[Jn]),Mr.mipmask|=1<cn;++cn)Mr.images[cn]=null;return Mr}function Qt(Mr){for(var cn=Mr.images,nn=0;nnMr){for(var cn=0;cn=--this.refCount&&Sr(this)}}),ht.profile&&(Ct.getTotalTextureSize=function(){var Mr=0;return Object.keys(Ma).forEach(function(cn){Mr+=Ma[cn].stats.size}),Mr}),{create2D:function(Mr,cn){function nn(Jn,In){var Rn=Sn.texInfo;or.call(Rn);var Xn=Bt();return typeof Jn=="number"?typeof In=="number"?Ke(Xn,Jn|0,In|0):Ke(Xn,Jn|0,Jn|0):Jn?(fr(Rn,Jn),Xe(Xn,Jn)):Ke(Xn,1,1),Rn.genMipmaps&&(Xn.mipmask=(Xn.width<<1)-1),Sn.mipmask=Xn.mipmask,Rt(Sn,Xn),Sn.internalformat=Xn.internalformat,nn.width=Xn.width,nn.height=Xn.height,mr(Sn),Ut(Xn,3553),ar(Rn,3553),wr(),Qt(Xn),ht.profile&&(Sn.stats.size=I(Sn.internalformat,Sn.type,Xn.width,Xn.height,Rn.genMipmaps,!1)),nn.format=Zr[Sn.internalformat],nn.type=Wr[Sn.type],nn.mag=fn[Rn.magFilter],nn.min=Tn[Rn.minFilter],nn.wrapS=wn[Rn.wrapS],nn.wrapT=wn[Rn.wrapT],nn}var Sn=new Ht(3553);return Ma[Sn.id]=Sn,Ct.textureCount++,nn(Mr,cn),nn.subimage=function(Jn,In,Rn,Xn){In|=0,Rn|=0,Xn|=0;var la=hr();return Rt(la,Sn),la.width=0,la.height=0,jt(la,Jn),la.width=la.width||(Sn.width>>Xn)-In,la.height=la.height||(Sn.height>>Xn)-Rn,mr(Sn),er(la,3553,In,Rn,Xn),wr(),vr(la),nn},nn.resize=function(Jn,In){var Rn=Jn|0,Xn=In|0||Rn;if(Rn===Sn.width&&Xn===Sn.height)return nn;nn.width=Sn.width=Rn,nn.height=Sn.height=Xn,mr(Sn);for(var la=0;Sn.mipmask>>la;++la){var Da=Rn>>la,Qa=Xn>>la;if(!Da||!Qa)break;Tt.texImage2D(3553,la,Sn.format,Da,Qa,0,Sn.format,Sn.type,null)}return wr(),ht.profile&&(Sn.stats.size=I(Sn.internalformat,Sn.type,Rn,Xn,!1,!1)),nn},nn._reglType="texture2d",nn._texture=Sn,ht.profile&&(nn.stats=Sn.stats),nn.destroy=function(){Sn.decRef()},nn},createCube:function(Mr,cn,nn,Sn,Jn,In){function Rn(Da,Qa,Pr,Ur,Ar,Vr){var An,Hn=Xn.texInfo;for(or.call(Hn),An=0;6>An;++An)la[An]=Bt();if(typeof Da=="number"||!Da)for(Da=Da|0||1,An=0;6>An;++An)Ke(la[An],Da,Da);else if(typeof Da=="object")if(Qa)Xe(la[0],Da),Xe(la[1],Qa),Xe(la[2],Pr),Xe(la[3],Ur),Xe(la[4],Ar),Xe(la[5],Vr);else if(fr(Hn,Da),zt(Xn,Da),"faces"in Da)for(Da=Da.faces,An=0;6>An;++An)Rt(la[An],Xn),Xe(la[An],Da[An]);else for(An=0;6>An;++An)Xe(la[An],Da);for(Rt(Xn,la[0]),Xn.mipmask=Hn.genMipmaps?(la[0].width<<1)-1:la[0].mipmask,Xn.internalformat=la[0].internalformat,Rn.width=la[0].width,Rn.height=la[0].height,mr(Xn),An=0;6>An;++An)Ut(la[An],34069+An);for(ar(Hn,34067),wr(),ht.profile&&(Xn.stats.size=I(Xn.internalformat,Xn.type,Rn.width,Rn.height,Hn.genMipmaps,!0)),Rn.format=Zr[Xn.internalformat],Rn.type=Wr[Xn.type],Rn.mag=fn[Hn.magFilter],Rn.min=Tn[Hn.minFilter],Rn.wrapS=wn[Hn.wrapS],Rn.wrapT=wn[Hn.wrapT],An=0;6>An;++An)Qt(la[An]);return Rn}var Xn=new Ht(34067);Ma[Xn.id]=Xn,Ct.cubeCount++;var la=Array(6);return Rn(Mr,cn,nn,Sn,Jn,In),Rn.subimage=function(Da,Qa,Pr,Ur,Ar){Pr|=0,Ur|=0,Ar|=0;var Vr=hr();return Rt(Vr,Xn),Vr.width=0,Vr.height=0,jt(Vr,Qa),Vr.width=Vr.width||(Xn.width>>Ar)-Pr,Vr.height=Vr.height||(Xn.height>>Ar)-Ur,mr(Xn),er(Vr,34069+Da,Pr,Ur,Ar),wr(),vr(Vr),Rn},Rn.resize=function(Da){if(Da|=0,Da!==Xn.width){Rn.width=Xn.width=Da,Rn.height=Xn.height=Da,mr(Xn);for(var Qa=0;6>Qa;++Qa)for(var Pr=0;Xn.mipmask>>Pr;++Pr)Tt.texImage2D(34069+Qa,Pr,Xn.format,Da>>Pr,Da>>Pr,0,Xn.format,Xn.type,null);return wr(),ht.profile&&(Xn.stats.size=I(Xn.internalformat,Xn.type,Rn.width,Rn.height,!1,!0)),Rn}},Rn._reglType="textureCube",Rn._texture=Xn,ht.profile&&(Rn.stats=Xn.stats),Rn.destroy=function(){Xn.decRef()},Rn},clear:function(){for(var Mr=0;MrSn;++Sn)if(nn.mipmask&1<>Sn,nn.height>>Sn,0,nn.internalformat,nn.type,null);else for(var Jn=0;6>Jn;++Jn)Tt.texImage2D(34069+Jn,Sn,nn.internalformat,nn.width>>Sn,nn.height>>Sn,0,nn.internalformat,nn.type,null);ar(nn.texInfo,nn.target)})},refresh:function(){for(var Mr=0;Mryr;++yr){for(un=0;unSr;++Sr)wr[Sr].resize(yr);return mr.width=mr.height=yr,mr},_reglType:"framebufferCube",destroy:function(){wr.forEach(function(Sr){Sr.destroy()})}})},clear:function(){be(ar).forEach(pr)},restore:function(){Ut.cur=null,Ut.next=null,Ut.dirty=!0,be(ar).forEach(function(Ht){Ht.framebuffer=Tt.createFramebuffer(),Ke(Ht)})}})}function G(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function U(Tt,Kt,qt,br,sr,Ct,ht){function Mt(Ke){if(Ke!==pr.currentVAO){var Xe=Kt.oes_vertex_array_object;Ke?Xe.bindVertexArrayOES(Ke.vao):Xe.bindVertexArrayOES(null),pr.currentVAO=Ke}}function Rt(Ke){if(Ke!==pr.currentVAO){if(Ke)Ke.bindAttrs();else{for(var Xe=Kt.angle_instanced_arrays,Ut=0;Ut=mr.byteLength?wr.subdata(mr):(wr.destroy(),Ut.buffers[fr]=null)),Ut.buffers[fr]||(wr=Ut.buffers[fr]=sr.create(ar,34962,!1,!0)),Ht.buffer=sr.getBuffer(wr),Ht.size=Ht.buffer.dimension|0,Ht.normalized=!1,Ht.type=Ht.buffer.dtype,Ht.offset=0,Ht.stride=0,Ht.divisor=0,Ht.state=1,Bt[fr]=1}else sr.getBuffer(ar)?(Ht.buffer=sr.getBuffer(ar),Ht.size=Ht.buffer.dimension|0,Ht.normalized=!1,Ht.type=Ht.buffer.dtype,Ht.offset=0,Ht.stride=0,Ht.divisor=0,Ht.state=1):sr.getBuffer(ar.buffer)?(Ht.buffer=sr.getBuffer(ar.buffer),Ht.size=(+ar.size||Ht.buffer.dimension)|0,Ht.normalized=!!ar.normalized||!1,Ht.type="type"in ar?Ne[ar.type]:Ht.buffer.dtype,Ht.offset=(ar.offset||0)|0,Ht.stride=(ar.stride||0)|0,Ht.divisor=(ar.divisor||0)|0,Ht.state=1):"x"in ar&&(Ht.x=+ar.x||0,Ht.y=+ar.y||0,Ht.z=+ar.z||0,Ht.w=+ar.w||0,Ht.state=2)}for(wr=0;wrhr&&(hr=vr.stats.uniformsCount)}),hr},qt.getMaxAttributesCount=function(){var hr=0;return jt.forEach(function(vr){vr.stats.attributesCount>hr&&(hr=vr.stats.attributesCount)}),hr}),{clear:function(){var hr=Tt.deleteShader.bind(Tt);be(zt).forEach(hr),zt={},be(Ft).forEach(hr),Ft={},jt.forEach(function(vr){Tt.deleteProgram(vr.program)}),jt.length=0,Wt={},qt.shaderCount=0},program:function(hr,vr,pr,Ke){var Xe=Wt[vr];Xe||(Xe=Wt[vr]={});var Ut=Xe[hr];if(Ut&&(Ut.refCount++,!Ke))return Ut;var Bt=new Mt(vr,hr);return qt.shaderCount++,Rt(Bt,pr,Ke),Ut||(Xe[hr]=Bt),jt.push(Bt),le(Bt,{destroy:function(){if(Bt.refCount--,0>=Bt.refCount){Tt.deleteProgram(Bt.program);var Qt=jt.indexOf(Bt);jt.splice(Qt,1),qt.shaderCount--}0>=Xe[Bt.vertId].refCount&&(Tt.deleteShader(Ft[Bt.vertId]),delete Ft[Bt.vertId],delete Wt[Bt.fragId][Bt.vertId]),Object.keys(Wt[Bt.fragId]).length||(Tt.deleteShader(zt[Bt.fragId]),delete zt[Bt.fragId],delete Wt[Bt.fragId])}})},restore:function(){zt={},Ft={};for(var hr=0;hr>2),br=0;br>5]|=(Tt.charCodeAt(br/8)&255)<<24-br%32;var qt=8*Tt.length;Tt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var br=Array(64),sr,Ct,ht,Mt,Rt,zt,Ft,Wt,jt,er,hr;for(Kt[qt>>5]|=128<<24-qt%32,Kt[(qt+64>>9<<4)+15]=qt,Wt=0;Wtjt;jt++){if(16>jt)br[jt]=Kt[jt+Wt];else{er=jt,hr=br[jt-2],hr=q(hr,17)^q(hr,19)^hr>>>10,hr=ae(hr,br[jt-7]);var vr;vr=br[jt-15],vr=q(vr,7)^q(vr,18)^vr>>>3,br[er]=ae(ae(hr,vr),br[jt-16])}er=Mt,er=q(er,6)^q(er,11)^q(er,25),er=ae(ae(ae(ae(Ft,er),Mt&Rt^~Mt&zt),ot[jt]),br[jt]),Ft=qt,Ft=q(Ft,2)^q(Ft,13)^q(Ft,22),hr=ae(Ft,qt&sr^qt&Ct^sr&Ct),Ft=zt,zt=Rt,Rt=Mt,Mt=ae(ht,er),ht=Ct,Ct=sr,sr=qt,qt=ae(er,hr)}Tt[0]=ae(qt,Tt[0]),Tt[1]=ae(sr,Tt[1]),Tt[2]=ae(Ct,Tt[2]),Tt[3]=ae(ht,Tt[3]),Tt[4]=ae(Mt,Tt[4]),Tt[5]=ae(Rt,Tt[5]),Tt[6]=ae(zt,Tt[6]),Tt[7]=ae(Ft,Tt[7])}for(Kt="",br=0;br<32*Tt.length;br+=8)Kt+=String.fromCharCode(Tt[br>>5]>>>24-br%32&255);return Kt}function $(Tt){for(var Kt="",qt,br=0;br>>4&15)+"0123456789abcdef".charAt(qt&15);return Kt}function Z(Tt){for(var Kt="",qt=-1,br,sr;++qt=br&&56320<=sr&&57343>=sr&&(br=65536+((br&1023)<<10)+(sr&1023),qt++),127>=br?Kt+=String.fromCharCode(br):2047>=br?Kt+=String.fromCharCode(192|br>>>6&31,128|br&63):65535>=br?Kt+=String.fromCharCode(224|br>>>12&15,128|br>>>6&63,128|br&63):2097151>=br&&(Kt+=String.fromCharCode(240|br>>>18&7,128|br>>>12&63,128|br>>>6&63,128|br&63));return Kt}function q(Tt,Kt){return Tt>>>Kt|Tt<<32-Kt}function ae(Tt,Kt){var qt=(Tt&65535)+(Kt&65535);return(Tt>>16)+(Kt>>16)+(qt>>16)<<16|qt&65535}function ie(Tt){return Array.prototype.slice.call(Tt)}function fe(Tt){return ie(Tt).join("")}function Q(Tt){function Kt(){var Ft=[],Wt=[];return le(function(){Ft.push.apply(Ft,ie(arguments))},{def:function(){var jt="v"+sr++;return Wt.push(jt),0"+Ra+"?"+$r+".constant["+Ra+"]:0;"}).join(""),"}}else{","if(",Pn,"(",$r,".buffer)){",$n,"=",zn,".createStream(",34962,",",$r,".buffer);","}else{",$n,"=",zn,".getBuffer(",$r,".buffer);","}",Oa,'="type" in ',$r,"?",rn.glTypes,"[",$r,".type]:",$n,".dtype;",Bn.normalized,"=!!",$r,".normalized;"),Qr("size"),Qr("offset"),Qr("stride"),Qr("divisor"),Lr("}}"),Lr.exit("if(",Bn.isStream,"){",zn,".destroyStream(",$n,");","}"),Bn})}),An}function gr(Pr){var Ur=Pr.static,Ar=Pr.dynamic,Vr={};return Object.keys(Ur).forEach(function(An){var Hn=Ur[An];Vr[An]=ce(function(xn,vn){return typeof Hn=="number"||typeof Hn=="boolean"?""+Hn:xn.link(Hn)})}),Object.keys(Ar).forEach(function(An){var Hn=Ar[An];Vr[An]=re(Hn,function(xn,vn){return xn.invoke(vn,Hn)})}),Vr}function Xr(Pr,Ur,Ar,Vr,An){function Hn(Zn){var $n=vn[Zn];$n&&(Qr[Zn]=$n)}var xn=fr(Pr,Ur),Pn=qt(Pr),vn=nr(Pr,Pn),Lr=Ht(Pr),Qr=pr(Pr),$r=ir(Pr,An,xn);Hn("viewport"),Hn(mr("scissor.box"));var rn=0"u"?"Date.now()":"performance.now()"}function xn(Zn){zn=Ur.def(),Zn(zn,"=",Hn(),";"),typeof An=="string"?Zn($r,".count+=",An,";"):Zn($r,".count++;"),er&&(Vr?(Bn=Ur.def(),Zn(Bn,"=",Pn,".getNumPendingQueries();")):Zn(Pn,".beginQuery(",$r,");"))}function vn(Zn){Zn($r,".cpuTime+=",Hn(),"-",zn,";"),er&&(Vr?Zn(Pn,".pushScopeStats(",Bn,",",Pn,".getNumPendingQueries(),",$r,");"):Zn(Pn,".endQuery();"))}function Lr(Zn){var $n=Ur.def(rn,".profile");Ur(rn,".profile=",Zn,";"),Ur.exit(rn,".profile=",$n,";")}var Qr=Pr.shared,$r=Pr.stats,rn=Qr.current,Pn=Qr.timer;Ar=Ar.profile;var zn,Bn;if(Ar){if(ne(Ar)){Ar.enable?(xn(Ur),vn(Ur.exit),Lr("true")):Lr("false");return}Ar=Ar.append(Pr,Ur),Lr(Ar)}else Ar=Ur.def(rn,".profile");Qr=Pr.block(),xn(Qr),Ur("if(",Ar,"){",Qr,"}"),Pr=Pr.block(),vn(Pr),Ur.exit("if(",Ar,"){",Pr,"}")}function Mr(Pr,Ur,Ar,Vr,An){function Hn(Lr){switch(Lr){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function xn(Lr,Qr,$r){function rn(){Ur("if(!",Zn,".buffer){",zn,".enableVertexAttribArray(",Bn,");}");var Ra=$r.type,$a;$a=$r.size?Ur.def($r.size,"||",Qr):Qr,Ur("if(",Zn,".type!==",Ra,"||",Zn,".size!==",$a,"||",xa.map(function(qi){return Zn+"."+qi+"!=="+$r[qi]}).join("||"),"){",zn,".bindBuffer(",34962,",",$n,".buffer);",zn,".vertexAttribPointer(",[Bn,$a,Ra,$r.normalized,$r.stride,$r.offset],");",Zn,".type=",Ra,";",Zn,".size=",$a,";",xa.map(function(qi){return Zn+"."+qi+"="+$r[qi]+";"}).join(""),"}"),Cr&&(Ra=$r.divisor,Ur("if(",Zn,".divisor!==",Ra,"){",Pr.instancing,".vertexAttribDivisorANGLE(",[Bn,Ra],");",Zn,".divisor=",Ra,";}"))}function Pn(){Ur("if(",Zn,".buffer){",zn,".disableVertexAttribArray(",Bn,");",Zn,".buffer=null;","}if(",yt.map(function(Ra,$a){return Zn+"."+Ra+"!=="+Oa[$a]}).join("||"),"){",zn,".vertexAttrib4f(",Bn,",",Oa,");",yt.map(function(Ra,$a){return Zn+"."+Ra+"="+Oa[$a]+";"}).join(""),"}")}var zn=vn.gl,Bn=Ur.def(Lr,".location"),Zn=Ur.def(vn.attributes,"[",Bn,"]");Lr=$r.state;var $n=$r.buffer,Oa=[$r.x,$r.y,$r.z,$r.w],xa=["buffer","normalized","offset","stride"];Lr===1?rn():Lr===2?Pn():(Ur("if(",Lr,"===",1,"){"),rn(),Ur("}else{"),Pn(),Ur("}"))}var vn=Pr.shared;Vr.forEach(function(Lr){var Qr=Lr.name,$r=Ar.attributes[Qr],rn;if($r){if(!An($r))return;rn=$r.append(Pr,Ur)}else{if(!An(Xt))return;var Pn=Pr.scopeAttrib(Qr);rn={},Object.keys(new Ta).forEach(function(zn){rn[zn]=Ur.def(Pn,".",zn)})}xn(Pr.link(Lr),Hn(Lr.info.type),rn)})}function Rr(Pr,Ur,Ar,Vr,An,Hn){for(var xn=Pr.shared,vn=xn.gl,Lr,Qr=0;Qr>1)",Zn],");")}function $a(){Ar($n,".drawArraysInstancedANGLE(",[Pn,zn,Bn,Zn],");")}rn&&rn!=="null"?xa?Ra():(Ar("if(",rn,"){"),Ra(),Ar("}else{"),$a(),Ar("}")):$a()}function xn(){function Ra(){Ar(Lr+".drawElements("+[Pn,Bn,Oa,zn+"<<(("+Oa+"-5121)>>1)"]+");")}function $a(){Ar(Lr+".drawArrays("+[Pn,zn,Bn]+");")}rn&&rn!=="null"?xa?Ra():(Ar("if(",rn,"){"),Ra(),Ar("}else{"),$a(),Ar("}")):$a()}var vn=Pr.shared,Lr=vn.gl,Qr=vn.draw,$r=Vr.draw,rn=function(){var Ra=$r.elements,$a=Ur;return Ra?((Ra.contextDep&&Vr.contextDynamic||Ra.propDep)&&($a=Ar),Ra=Ra.append(Pr,$a),$r.elementsActive&&$a("if("+Ra+")"+Lr+".bindBuffer(34963,"+Ra+".buffer.buffer);")):(Ra=$a.def(),$a(Ra,"=",Qr,".","elements",";","if(",Ra,"){",Lr,".bindBuffer(",34963,",",Ra,".buffer.buffer);}","else if(",vn.vao,".currentVAO){",Ra,"=",Pr.shared.elements+".getElements("+vn.vao,".currentVAO.elements);",nn?"":"if("+Ra+")"+Lr+".bindBuffer(34963,"+Ra+".buffer.buffer);","}")),Ra}(),Pn=An("primitive"),zn=An("offset"),Bn=function(){var Ra=$r.count,$a=Ur;return Ra?((Ra.contextDep&&Vr.contextDynamic||Ra.propDep)&&($a=Ar),Ra=Ra.append(Pr,$a)):Ra=$a.def(Qr,".","count"),Ra}();if(typeof Bn=="number"){if(Bn===0)return}else Ar("if(",Bn,"){"),Ar.exit("}");var Zn,$n;Cr&&(Zn=An("instances"),$n=Pr.instancing);var Oa=rn+".type",xa=$r.elements&&ne($r.elements)&&!$r.vaoActive;Cr&&(typeof Zn!="number"||0<=Zn)?typeof Zn=="string"?(Ar("if(",Zn,">0){"),Hn(),Ar("}else if(",Zn,"<0){"),xn(),Ar("}")):Hn():xn()}function Wr(Pr,Ur,Ar,Vr,An){return Ur=Ut(),An=Ur.proc("body",An),Cr&&(Ur.instancing=An.def(Ur.shared.extensions,".angle_instanced_arrays")),Pr(Ur,An,Ar,Vr),Ur.compile().body}function fn(Pr,Ur,Ar,Vr){_n(Pr,Ur),Ar.useVAO?Ar.drawVAO?Ur(Pr.shared.vao,".setVAO(",Ar.drawVAO.append(Pr,Ur),");"):Ur(Pr.shared.vao,".setVAO(",Pr.shared.vao,".targetVAO);"):(Ur(Pr.shared.vao,".setVAO(null);"),Mr(Pr,Ur,Ar,Vr.attributes,function(){return!0})),Rr(Pr,Ur,Ar,Vr.uniforms,function(){return!0},!1),Zr(Pr,Ur,Ur,Ar)}function Tn(Pr,Ur){var Ar=Pr.proc("draw",1);_n(Pr,Ar),Dr(Pr,Ar,Ur.context),Fr(Pr,Ar,Ur.framebuffer),yn(Pr,Ar,Ur),un(Pr,Ar,Ur.state),On(Pr,Ar,Ur,!1,!0);var Vr=Ur.shader.progVar.append(Pr,Ar);if(Ar(Pr.shared.gl,".useProgram(",Vr,".program);"),Ur.shader.program)fn(Pr,Ar,Ur,Ur.shader.program);else{Ar(Pr.shared.vao,".setVAO(null);");var An=Pr.global.def("{}"),Hn=Ar.def(Vr,".id"),xn=Ar.def(An,"[",Hn,"]");Ar(Pr.cond(xn).then(xn,".call(this,a0);").else(xn,"=",An,"[",Hn,"]=",Pr.link(function(vn){return Wr(fn,Pr,Ur,vn,1)}),"(",Vr,");",xn,".call(this,a0);"))}0=--this.refCount&&ht(this)},sr.profile&&(xr.getTotalRenderbufferSize=function(){var Wt=0;return Object.keys(Ft).forEach(function(jt){Wt+=Ft[jt].stats.size}),Wt}),{create:function(Wt,jt){function er(vr,mr){var Ze=0,Xe=0,Ut=32854;if(typeof vr=="object"&&vr?("shape"in vr?(Xe=vr.shape,Ze=Xe[0]|0,Xe=Xe[1]|0):("radius"in vr&&(Ze=Xe=vr.radius|0),"width"in vr&&(Ze=vr.width|0),"height"in vr&&(Xe=vr.height|0)),"format"in vr&&(Ut=At[vr.format])):typeof vr=="number"?(Ze=vr|0,Xe=typeof mr=="number"?mr|0:Ze):vr||(Ze=Xe=1),Ze!==hr.width||Xe!==hr.height||Ut!==hr.format)return er.width=hr.width=Ze,er.height=hr.height=Xe,hr.format=Ut,Tt.bindRenderbuffer(36161,hr.renderbuffer),Tt.renderbufferStorage(36161,Ut,Ze,Xe),sr.profile&&(hr.stats.size=Re[hr.format]*hr.width*hr.height),er.format=Rt[hr.format],er}var hr=new Ct(Tt.createRenderbuffer());return Ft[hr.id]=hr,xr.renderbufferCount++,er(Wt,jt),er.resize=function(vr,mr){var Ze=vr|0,Xe=mr|0||Ze;return Ze===hr.width&&Xe===hr.height||(er.width=hr.width=Ze,er.height=hr.height=Xe,Tt.bindRenderbuffer(36161,hr.renderbuffer),Tt.renderbufferStorage(36161,hr.format,Ze,Xe),sr.profile&&(hr.stats.size=Re[hr.format]*hr.width*hr.height)),er},er._reglType="renderbuffer",er._renderbuffer=hr,sr.profile&&(er.stats=hr.stats),er.destroy=function(){hr.decRef()},er},clear:function(){be(Ft).forEach(ht)},restore:function(){be(Ft).forEach(function(Wt){Wt.renderbuffer=Tt.createRenderbuffer(),Tt.bindRenderbuffer(36161,Wt.renderbuffer),Tt.renderbufferStorage(36161,Wt.format,Wt.width,Wt.height)}),Tt.bindRenderbuffer(36161,null)}}},Ve=[];Ve[6408]=4,Ve[6407]=3;var Je=[];Je[5121]=1,Je[5126]=4,Je[36193]=2;var ot=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],yt=["x","y","z","w"],ut="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),It={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Vt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},xt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Lt={cw:2304,ccw:2305},Xt=new K(!1,!1,!1,function(){}),dr=function(Tt,Kt){function Qt(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function xr(Ft,Wt,jt){var er=ht.pop()||new Qt;er.startQueryIndex=Ft,er.endQueryIndex=Wt,er.sum=0,er.stats=jt,At.push(er)}if(!Kt.ext_disjoint_timer_query)return null;var sr=[],Ct=[],ht=[],At=[],Rt=[],_t=[];return{beginQuery:function(Ft){var Wt=sr.pop()||Kt.ext_disjoint_timer_query.createQueryEXT();Kt.ext_disjoint_timer_query.beginQueryEXT(35007,Wt),Ct.push(Wt),xr(Ct.length-1,Ct.length,Ft)},endQuery:function(){Kt.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:xr,update:function(){var Ft,Wt;if(Ft=Ct.length,Ft!==0){_t.length=Math.max(_t.length,Ft+1),Rt.length=Math.max(Rt.length,Ft+1),Rt[0]=0;var jt=_t[0]=0;for(Wt=Ft=0;Wt=On.length&&xr()}var Fn=de(On,Tn);On[Fn]=Sn}}}function _t(){var Tn=un.viewport,Sn=un.scissor_box;Tn[0]=Tn[1]=Sn[0]=Sn[1]=0,nr.viewportWidth=nr.framebufferWidth=nr.drawingBufferWidth=Tn[2]=Sn[2]=er.drawingBufferWidth,nr.viewportHeight=nr.framebufferHeight=nr.drawingBufferHeight=Tn[3]=Sn[3]=er.drawingBufferHeight}function Ft(){nr.tick+=1,nr.time=jt(),_t(),Fr.procs.poll()}function Wt(){gr.refresh(),_t(),Fr.procs.refresh(),Ut&&Ut.update()}function jt(){return(Se()-Bt)/1e3}if(Tt=a(Tt),!Tt)return null;var er=Tt.gl,hr=er.getContextAttributes();er.isContextLost();var vr=n(er,Tt);if(!vr)return null;var yn=i(),mr={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Ze=Tt.cachedCode||{},Xe=vr.extensions,Ut=dr(er,Xe),Bt=Se(),fr=er.drawingBufferWidth,qt=er.drawingBufferHeight,nr={tick:0,time:0,viewportWidth:fr,viewportHeight:qt,framebufferWidth:fr,framebufferHeight:qt,drawingBufferWidth:fr,drawingBufferHeight:qt,pixelRatio:Tt.pixelRatio},fr={elements:null,primitive:4,count:-1,offset:0,instances:-1},ir=Te(er,Xe),Ht=c(er,mr,Tt,function(Tn){return br.destroyBuffer(Tn)}),pr=x(er,Xe,Ht,mr),br=U(er,Xe,ir,mr,Ht,pr,fr),Tr=H(er,yn,mr,Tt),gr=N(er,Xe,ir,function(){Fr.procs.poll()},nr,mr,Tt),Xr=Pe(er,Xe,ir,mr,Tt),Dr=B(er,Xe,ir,gr,Xr,mr),Fr=ee(er,yn,Xe,ir,Ht,pr,gr,Dr,{},br,Tr,fr,nr,Ut,Ze,Tt),yn=W(er,Dr,Fr.procs.poll,nr),un=Fr.next,_n=er.canvas,On=[],Mr=[],Rr=[],Zr=[Tt.onDestroy],Wr=null;_n&&(_n.addEventListener("webglcontextlost",sr,!1),_n.addEventListener("webglcontextrestored",Ct,!1));var fn=Dr.setFBO=ht({framebuffer:xe.define.call(null,1,"framebuffer")});return Wt(),hr=le(ht,{clear:function(Tn){if("framebuffer"in Tn)if(Tn.framebuffer&&Tn.framebuffer_reglType==="framebufferCube")for(var Sn=0;6>Sn;++Sn)fn(le({framebuffer:Tn.framebuffer.faces[Sn]},Tn),At);else fn(Tn,At);else At(null,Tn)},prop:xe.define.bind(null,1),context:xe.define.bind(null,2),this:xe.define.bind(null,3),draw:ht({}),buffer:function(Tn){return Ht.create(Tn,34962,!1,!1)},elements:function(Tn){return pr.create(Tn,!1)},texture:gr.create2D,cube:gr.createCube,renderbuffer:Xr.create,framebuffer:Dr.create,framebufferCube:Dr.createCube,vao:br.createVAO,attributes:hr,frame:Rt,on:function(Tn,Sn){var Fn;switch(Tn){case"frame":return Rt(Sn);case"lost":Fn=Mr;break;case"restore":Fn=Rr;break;case"destroy":Fn=Zr}return Fn.push(Sn),{cancel:function(){for(var Wn=0;Wn */var l=t(33576),S=l.Buffer;function i(w,v){for(var m in w)v[m]=w[m]}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?D.exports=l:(i(l,O),O.Buffer=C);function C(w,v,m){return S(w,v,m)}C.prototype=Object.create(S.prototype),i(S,C),C.from=function(w,v,m){if(typeof w=="number")throw new TypeError("Argument must not be a number");return S(w,v,m)},C.alloc=function(w,v,m){if(typeof w!="number")throw new TypeError("Argument must be a number");var a=S(w);return v!==void 0?typeof m=="string"?a.fill(v,m):a.fill(v):a.fill(0),a},C.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return S(w)},C.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(w)}},14500:function(D,O,t){var l=t(53664),S=t(64348),i=t(39640)(),C=t(2304),w=l("%TypeError%"),v=l("%Math.floor%");D.exports=function(a,n){if(typeof a!="function")throw new w("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||v(n)!==n)throw new w("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],o=!0,h=!0;if("length"in a&&C){var f=C(a,"length");f&&!f.configurable&&(o=!1),f&&!f.writable&&(h=!1)}return(o||h||!s)&&(i?S(a,"length",n,!0,!0):S(a,"length",n)),a}},29936:function(D,O,t){D.exports=i;var l=t(61252).EventEmitter,S=t(6768);S(i,l),i.Readable=t(12348),i.Writable=t(11288),i.Duplex=t(15316),i.Transform=t(22477),i.PassThrough=t(27136),i.finished=t(15932),i.pipeline=t(38180),i.Stream=i;function i(){l.call(this)}i.prototype.pipe=function(C,w){var v=this;function m(u){C.writable&&C.write(u)===!1&&v.pause&&v.pause()}v.on("data",m);function a(){v.readable&&v.resume&&v.resume()}C.on("drain",a),!C._isStdio&&(!w||w.end!==!1)&&(v.on("end",s),v.on("close",o));var n=!1;function s(){n||(n=!0,C.end())}function o(){n||(n=!0,typeof C.destroy=="function"&&C.destroy())}function h(u){if(f(),l.listenerCount(this,"error")===0)throw u}v.on("error",h),C.on("error",h);function f(){v.removeListener("data",m),C.removeListener("drain",a),v.removeListener("end",s),v.removeListener("close",o),v.removeListener("error",h),C.removeListener("error",h),v.removeListener("end",f),v.removeListener("close",f),C.removeListener("close",f)}return v.on("end",f),v.on("close",f),C.on("close",f),C.emit("pipe",v),C}},92784:function(D){function O(v,m){v.prototype=Object.create(m.prototype),v.prototype.constructor=v,v.__proto__=m}var t={};function l(v,m,a){a||(a=Error);function n(o,h,f){return typeof m=="string"?m:m(o,h,f)}var s=function(o){O(h,o);function h(f,u,b){return o.call(this,n(f,u,b))||this}return h}(a);s.prototype.name=a.name,s.prototype.code=v,t[v]=s}function S(v,m){if(Array.isArray(v)){var a=v.length;return v=v.map(function(n){return String(n)}),a>2?"one of ".concat(m," ").concat(v.slice(0,a-1).join(", "),", or ")+v[a-1]:a===2?"one of ".concat(m," ").concat(v[0]," or ").concat(v[1]):"of ".concat(m," ").concat(v[0])}else return"of ".concat(m," ").concat(String(v))}function i(v,m,a){return v.substr(!a||a<0?0:+a,m.length)===m}function C(v,m,a){return(a===void 0||a>v.length)&&(a=v.length),v.substring(a-m.length,a)===m}function w(v,m,a){return typeof a!="number"&&(a=0),a+m.length>v.length?!1:v.indexOf(m,a)!==-1}l("ERR_INVALID_OPT_VALUE",function(v,m){return'The value "'+m+'" is invalid for option "'+v+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(v,m,a){var n;typeof m=="string"&&i(m,"not ")?(n="must not be",m=m.replace(/^not /,"")):n="must be";var s;if(C(v," argument"))s="The ".concat(v," ").concat(n," ").concat(S(m,"type"));else{var o=w(v,".")?"property":"argument";s='The "'.concat(v,'" ').concat(o," ").concat(n," ").concat(S(m,"type"))}return s+=". Received type ".concat(typeof a),s},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),D.exports.i=t},15316:function(D,O,t){var l=t(4168),S=Object.keys||function(o){var h=[];for(var f in o)h.push(f);return h};D.exports=a;var i=t(12348),C=t(11288);t(6768)(a,i);for(var w=S(C.prototype),v=0;v0)if(typeof ee!="string"&&!xe.objectMode&&Object.getPrototypeOf(ee)!==w.prototype&&(ee=m(ee)),le)xe.endEmitted?R(re,new c):I(re,xe,ee,!0);else if(xe.ended)R(re,new E);else{if(xe.destroyed)return!1;xe.reading=!1,xe.decoder&&!de?(ee=xe.decoder.write(ee),xe.objectMode||ee.length!==0?I(re,xe,ee,!1):$(re,xe)):I(re,xe,ee,!1)}else le||(xe.reading=!1,$(re,xe))}return!xe.ended&&(xe.length=B?re=B:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function U(re,ee){return re<=0||ee.length===0&&ee.ended?0:ee.objectMode?1:re!==re?ee.flowing&&ee.length?ee.buffer.head.data.length:ee.length:(re>ee.highWaterMark&&(ee.highWaterMark=G(re)),re<=ee.length?re:ee.ended?ee.length:(ee.needReadable=!0,0))}d.prototype.read=function(re){s("read",re),re=parseInt(re,10);var ee=this._readableState,de=re;if(re!==0&&(ee.emittedReadable=!1),re===0&&ee.needReadable&&((ee.highWaterMark!==0?ee.length>=ee.highWaterMark:ee.length>0)||ee.ended))return s("read: emitReadable",ee.length,ee.ended),ee.length===0&&ee.ended?K(this):W(this),null;if(re=U(re,ee),re===0&&ee.ended)return ee.length===0&&K(this),null;var le=ee.needReadable;s("need readable",le),(ee.length===0||ee.length-re0?he=oe(re,ee):he=null,he===null?(ee.needReadable=ee.length<=ee.highWaterMark,re=0):(ee.length-=re,ee.awaitDrain=0),ee.length===0&&(ee.ended||(ee.needReadable=!0),de!==re&&ee.ended&&K(this)),he!==null&&this.emit("data",he),he};function H(re,ee){if(s("onEofChunk"),!ee.ended){if(ee.decoder){var de=ee.decoder.end();de&&de.length&&(ee.buffer.push(de),ee.length+=ee.objectMode?1:de.length)}ee.ended=!0,ee.sync?W(re):(ee.needReadable=!1,ee.emittedReadable||(ee.emittedReadable=!0,V(re)))}}function W(re){var ee=re._readableState;s("emitReadable",ee.needReadable,ee.emittedReadable),ee.needReadable=!1,ee.emittedReadable||(s("emitReadable",ee.flowing),ee.emittedReadable=!0,l.nextTick(V,re))}function V(re){var ee=re._readableState;s("emitReadable_",ee.destroyed,ee.length,ee.ended),!ee.destroyed&&(ee.length||ee.ended)&&(re.emit("readable"),ee.emittedReadable=!1),ee.needReadable=!ee.flowing&&!ee.ended&&ee.length<=ee.highWaterMark,J(re)}function $(re,ee){ee.readingMore||(ee.readingMore=!0,l.nextTick(Z,re,ee))}function Z(re,ee){for(;!ee.reading&&!ee.ended&&(ee.length1&&ce(le.pipes,re)!==-1)&&!Te&&(s("false write response, pause",le.awaitDrain),le.awaitDrain++),de.pause())}function Ie($e){s("onerror",$e),ze(),re.removeListener("error",Ie),i(re,"error")===0&&R(re,$e)}L(re,"error",Ie);function Ue(){re.removeListener("finish",Ne),ze()}re.once("close",Ue);function Ne(){s("onfinish"),re.removeListener("close",Ue),ze()}re.once("finish",Ne);function ze(){s("unpipe"),de.unpipe(re)}return re.emit("pipe",de),le.flowing||(s("pipe resume"),de.resume()),re};function q(re){return function(){var de=re._readableState;s("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&i(re,"data")&&(de.flowing=!0,J(re))}}d.prototype.unpipe=function(re){var ee=this._readableState,de={hasUnpiped:!1};if(ee.pipesCount===0)return this;if(ee.pipesCount===1)return re&&re!==ee.pipes?this:(re||(re=ee.pipes),ee.pipes=null,ee.pipesCount=0,ee.flowing=!1,re&&re.emit("unpipe",this,de),this);if(!re){var le=ee.pipes,he=ee.pipesCount;ee.pipes=null,ee.pipesCount=0,ee.flowing=!1;for(var xe=0;xe0,le.flowing!==!1&&this.resume()):re==="readable"&&!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.flowing=!1,le.emittedReadable=!1,s("on readable",le.length,le.reading),le.length?W(this):le.reading||l.nextTick(ie,this)),de},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(re,ee){var de=C.prototype.removeListener.call(this,re,ee);return re==="readable"&&l.nextTick(ae,this),de},d.prototype.removeAllListeners=function(re){var ee=C.prototype.removeAllListeners.apply(this,arguments);return(re==="readable"||re===void 0)&&l.nextTick(ae,this),ee};function ae(re){var ee=re._readableState;ee.readableListening=re.listenerCount("readable")>0,ee.resumeScheduled&&!ee.paused?ee.flowing=!0:re.listenerCount("data")>0&&re.resume()}function ie(re){s("readable nexttick read 0"),re.read(0)}d.prototype.resume=function(){var re=this._readableState;return re.flowing||(s("resume"),re.flowing=!re.readableListening,fe(this,re)),re.paused=!1,this};function fe(re,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,l.nextTick(Q,re,ee))}function Q(re,ee){s("resume",ee.reading),ee.reading||re.read(0),ee.resumeScheduled=!1,re.emit("resume"),J(re),ee.flowing&&!ee.reading&&re.read(0)}d.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function J(re){var ee=re._readableState;for(s("flow",ee.flowing);ee.flowing&&re.read()!==null;);}d.prototype.wrap=function(re){var ee=this,de=this._readableState,le=!1;re.on("end",function(){if(s("wrapped end"),de.decoder&&!de.ended){var Ee=de.decoder.end();Ee&&Ee.length&&ee.push(Ee)}ee.push(null)}),re.on("data",function(Ee){if(s("wrapped data"),de.decoder&&(Ee=de.decoder.write(Ee)),!(de.objectMode&&Ee==null)&&!(!de.objectMode&&(!Ee||!Ee.length))){var Se=ee.push(Ee);Se||(le=!0,re.pause())}});for(var he in re)this[he]===void 0&&typeof re[he]=="function"&&(this[he]=function(Se){return function(){return re[Se].apply(re,arguments)}}(he));for(var xe=0;xe=ee.length?(ee.decoder?de=ee.buffer.join(""):ee.buffer.length===1?de=ee.buffer.first():de=ee.buffer.concat(ee.length),ee.buffer.clear()):de=ee.buffer.consume(re,ee.decoder),de}function K(re){var ee=re._readableState;s("endReadable",ee.endEmitted),ee.endEmitted||(ee.ended=!0,l.nextTick(ne,ee,re))}function ne(re,ee){if(s("endReadableNT",re.endEmitted,re.length),!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ee.readable=!1,ee.emit("end"),re.autoDestroy)){var de=ee._writableState;(!de||de.autoDestroy&&de.finished)&&ee.destroy()}}typeof Symbol=="function"&&(d.from=function(re,ee){return M===void 0&&(M=t(90555)),M(d,re,ee)});function ce(re,ee){for(var de=0,le=re.length;de-1))throw new A(oe);return this._writableState.defaultEncoding=oe,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function I(J,oe,K){return!J.objectMode&&J.decodeStrings!==!1&&typeof oe=="string"&&(oe=v.from(oe,K)),oe}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(J,oe,K,ne,ce,re){if(!K){var ee=I(oe,ne,ce);ne!==ee&&(K=!0,ce="buffer",ne=ee)}var de=oe.objectMode?1:ne.length;oe.length+=de;var le=oe.length0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(b){var p={data:b,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var p=this.head,E=""+p.data;p=p.next;)E+=b+p.data;return E}},{key:"concat",value:function(b){if(this.length===0)return a.alloc(0);for(var p=a.allocUnsafe(b>>>0),E=this.head,g=0;E;)h(E.data,p,g),g+=E.data.length,E=E.next;return p}},{key:"consume",value:function(b,p){var E;return bc.length?c.length:b;if(x===c.length?g+=c:g+=c.slice(0,b),b-=x,b===0){x===c.length?(++E,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=c.slice(x));break}++E}return this.length-=E,g}},{key:"_getBuffer",value:function(b){var p=a.allocUnsafe(b),E=this.head,g=1;for(E.data.copy(p),b-=E.data.length;E=E.next;){var c=E.data,x=b>c.length?c.length:b;if(c.copy(p,p.length-b,0,x),b-=x,b===0){x===c.length?(++g,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=c.slice(x));break}++g}return this.length-=g,p}},{key:o,value:function(b,p){return s(this,S({},p,{depth:0,customInspect:!1}))}}]),f}()},55324:function(D,O,t){var l=t(4168);function S(a,n){var s=this,o=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return o||h?(n?n(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,l.nextTick(v,this,a)):l.nextTick(v,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(f){!n&&f?s._writableState?s._writableState.errorEmitted?l.nextTick(C,s):(s._writableState.errorEmitted=!0,l.nextTick(i,s,f)):l.nextTick(i,s,f):n?(l.nextTick(C,s),n(f)):l.nextTick(C,s)}),this)}function i(a,n){v(a,n),C(a)}function C(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function w(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(a,n){a.emit("error",n)}function m(a,n){var s=a._readableState,o=a._writableState;s&&s.autoDestroy||o&&o.autoDestroy?a.destroy(n):a.emit("error",n)}D.exports={destroy:S,undestroy:w,errorOrDestroy:m}},15932:function(D,O,t){var l=t(92784).i.ERR_STREAM_PREMATURE_CLOSE;function S(v){var m=!1;return function(){if(!m){m=!0;for(var a=arguments.length,n=new Array(a),s=0;s0;return a(c,A,M,function(R){E||(E=R),R&&g.forEach(n),!A&&(g.forEach(n),p(E))})});return u.reduce(s)}D.exports=h},24888:function(D,O,t){var l=t(92784).i.ERR_INVALID_OPT_VALUE;function S(C,w,v){return C.highWaterMark!=null?C.highWaterMark:w?C[v]:null}function i(C,w,v,m){var a=S(w,m,v);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=m?v:"highWaterMark";throw new l(n,a)}return Math.floor(a)}return C.objectMode?16:16384}D.exports={getHighWaterMark:i}},4776:function(D,O,t){D.exports=t(61252).EventEmitter},86032:function(D,O,t){var l=t(30456).Buffer,S=l.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(g){if(!g)return"utf8";for(var c;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(c)return;g=(""+g).toLowerCase(),c=!0}}function C(g){var c=i(g);if(typeof c!="string"&&(l.isEncoding===S||!S(g)))throw new Error("Unknown encoding: "+g);return c||g}O.o=w;function w(g){this.encoding=C(g);var c;switch(this.encoding){case"utf16le":this.text=h,this.end=f,c=4;break;case"utf8":this.fillLast=n,c=4;break;case"base64":this.text=u,this.end=b,c=3;break;default:this.write=p,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(c)}w.prototype.write=function(g){if(g.length===0)return"";var c,x;if(this.lastNeed){if(c=this.fillLast(g),c===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function m(g,c,x){var A=c.length-1;if(A=0?(M>0&&(g.lastNeed=M-1),M):--A=0?(M>0&&(g.lastNeed=M-2),M):--A=0?(M>0&&(M===2?M=0:g.lastNeed=M-3),M):0))}function a(g,c,x){if((c[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&c.length>1){if((c[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&c.length>2&&(c[2]&192)!==128)return g.lastNeed=2,"�"}}function n(g){var c=this.lastTotal-this.lastNeed,x=a(this,g);if(x!==void 0)return x;if(this.lastNeed<=g.length)return g.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,c,0,g.length),this.lastNeed-=g.length}function s(g,c){var x=m(this,g,c);if(!this.lastNeed)return g.toString("utf8",c);this.lastTotal=x;var A=g.length-(x-this.lastNeed);return g.copy(this.lastChar,0,A),g.toString("utf8",c,A)}function o(g){var c=g&&g.length?this.write(g):"";return this.lastNeed?c+"�":c}function h(g,c){if((g.length-c)%2===0){var x=g.toString("utf16le",c);if(x){var A=x.charCodeAt(x.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",c,g.length-1)}function f(g){var c=g&&g.length?this.write(g):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,x)}return c}function u(g,c){var x=(g.length-c)%3;return x===0?g.toString("base64",c):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",c,g.length-x))}function b(g){var c=g&&g.length?this.write(g):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function p(g){return g.toString(this.encoding)}function E(g){return g&&g.length?this.write(g):""}},55619:function(D,O,t){var l=t(45408),S=t(86844)("stream-parser");D.exports=m;var i=-1,C=0,w=1,v=2;function m(g){var c=g&&typeof g._transform=="function",x=g&&typeof g._write=="function";if(!c&&!x)throw new Error("must pass a Writable or Transform stream in");S("extending Parser into stream"),g._bytes=n,g._skipBytes=s,c&&(g._passthrough=o),c?g._transform=f:g._write=h}function a(g){S("initializing parser stream"),g._parserBytesLeft=0,g._parserBuffers=[],g._parserBuffered=0,g._parserState=i,g._parserCallback=null,typeof g.push=="function"&&(g._parserOutput=g.push.bind(g)),g._parserInit=!0}function n(g,c){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(g)&&g>0,'can only buffer a finite number of bytes > 0, got "'+g+'"'),this._parserInit||a(this),S("buffering %o bytes",g),this._parserBytesLeft=g,this._parserCallback=c,this._parserState=C}function s(g,c){l(!this._parserCallback,'there is already a "callback" set!'),l(g>0,'can only skip > 0 bytes, got "'+g+'"'),this._parserInit||a(this),S("skipping %o bytes",g),this._parserBytesLeft=g,this._parserCallback=c,this._parserState=w}function o(g,c){l(!this._parserCallback,'There is already a "callback" set!'),l(g>0,'can only pass through > 0 bytes, got "'+g+'"'),this._parserInit||a(this),S("passing through %o bytes",g),this._parserBytesLeft=g,this._parserCallback=c,this._parserState=v}function h(g,c,x){this._parserInit||a(this),S("write(%o bytes)",g.length),typeof c=="function"&&(x=c),p(this,g,null,x)}function f(g,c,x){this._parserInit||a(this),S("transform(%o bytes)",g.length),typeof c!="function"&&(c=this._parserOutput),p(this,g,c,x)}function u(g,c,x,A){return g._parserBytesLeft<=0?A(new Error("got data but not currently parsing anything")):c.length<=g._parserBytesLeft?function(){return b(g,c,x,A)}:function(){var M=c.slice(0,g._parserBytesLeft);return b(g,M,x,function(R){if(R)return A(R);if(c.length>M.length)return function(){return u(g,c.slice(M.length),x,A)}})}}function b(g,c,x,A){if(g._parserBytesLeft-=c.length,S("%o bytes left for stream piece",g._parserBytesLeft),g._parserState===C?(g._parserBuffers.push(c),g._parserBuffered+=c.length):g._parserState===v&&x(c),g._parserBytesLeft===0){var M=g._parserCallback;if(M&&g._parserState===C&&g._parserBuffers.length>1&&(c=Buffer.concat(g._parserBuffers,g._parserBuffered)),g._parserState!==C&&(c=null),g._parserCallback=null,g._parserBuffered=0,g._parserState=i,g._parserBuffers.splice(0),M){var R=[];c&&R.push(c),x&&R.push(x);var T=M.length>R.length;T&&R.push(E(A));var L=M.apply(g,R);if(!T||A===L)return A}}else return A}var p=E(u);function E(g){return function(){for(var c=g.apply(this,arguments);typeof c=="function";)c=c();return c}}},86844:function(D,O,t){var l=t(4168);O=D.exports=t(89416),O.log=C,O.formatArgs=i,O.save=w,O.load=v,O.useColors=S,O.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:m(),O.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function S(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}O.formatters.j=function(a){try{return JSON.stringify(a)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}};function i(a){var n=this.useColors;if(a[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+a[0]+(n?"%c ":" ")+"+"+O.humanize(this.diff),!!n){var s="color: "+this.color;a.splice(1,0,s,"color: inherit");var o=0,h=0;a[0].replace(/%[a-zA-Z%]/g,function(f){f!=="%%"&&(o++,f==="%c"&&(h=o))}),a.splice(h,0,s)}}function C(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function w(a){try{a==null?O.storage.removeItem("debug"):O.storage.debug=a}catch{}}function v(){var a;try{a=O.storage.debug}catch{}return!a&&typeof l<"u"&&"env"in l&&(a=l.env.DEBUG),a}O.enable(v());function m(){try{return window.localStorage}catch{}}},89416:function(D,O,t){O=D.exports=i.debug=i.default=i,O.coerce=m,O.disable=w,O.enable=C,O.enabled=v,O.humanize=t(93744),O.names=[],O.skips=[],O.formatters={};var l;function S(a){var n=0,s;for(s in a)n=(n<<5)-n+a.charCodeAt(s),n|=0;return O.colors[Math.abs(n)%O.colors.length]}function i(a){function n(){if(n.enabled){var s=n,o=+new Date,h=o-(l||o);s.diff=h,s.prev=l,s.curr=o,l=o;for(var f=new Array(arguments.length),u=0;u0)return C(a);if(s==="number"&&isNaN(a)===!1)return n.long?v(a):w(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function C(a){if(a=String(a),!(a.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(n){var s=parseFloat(n[1]),o=(n[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"days":case"day":case"d":return s*S;case"hours":case"hour":case"hrs":case"hr":case"h":return s*l;case"minutes":case"minute":case"mins":case"min":case"m":return s*t;case"seconds":case"second":case"secs":case"sec":case"s":return s*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function w(a){return a>=S?Math.round(a/S)+"d":a>=l?Math.round(a/l)+"h":a>=t?Math.round(a/t)+"m":a>=O?Math.round(a/O)+"s":a+"ms"}function v(a){return m(a,S,"day")||m(a,l,"hour")||m(a,t,"minute")||m(a,O,"second")||a+" ms"}function m(a,n,s){if(!(a",'""',"''","``","“”","«»"]:(typeof w.ignore=="string"&&(w.ignore=[w.ignore]),w.ignore=w.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var v=l.parse(i,{flat:!0,brackets:w.ignore}),m=v[0],a=m.split(C);if(w.escape){for(var n=[],s=0;s0;){p=g[g.length-1];var c=t[p];if(w[p]=0&&m[p].push(v[A])}w[p]=x}else{if(i[p]===S[p]){for(var M=[],R=[],T=0,x=E.length-1;x>=0;--x){var L=E[x];if(C[L]=!1,M.push(L),R.push(m[L]),T+=m[L].length,v[L]=s.length,L===p){E.length=x;break}}s.push(M);for(var P=new Array(T),x=0;x1&&(u=1),u<-1&&(u=-1),f*Math.acos(u)},v=function(n,s,o,h,f,u,b,p,E,g,c,x){var A=Math.pow(f,2),M=Math.pow(u,2),R=Math.pow(c,2),T=Math.pow(x,2),L=A*M-A*T-M*R;L<0&&(L=0),L/=A*T+M*R,L=Math.sqrt(L)*(b===p?-1:1);var P=L*f/u*x,d=L*-u/f*c,k=g*P-E*d+(n+o)/2,I=E*P+g*d+(s+h)/2,N=(c-P)/f,B=(x-d)/u,G=(-c-P)/f,U=(-x-d)/u,H=w(1,0,N,B),W=w(N,B,G,U);return p===0&&W>0&&(W-=S),p===1&&W<0&&(W+=S),[k,I,H,W]},m=function(n){var s=n.px,o=n.py,h=n.cx,f=n.cy,u=n.rx,b=n.ry,p=n.xAxisRotation,E=p===void 0?0:p,g=n.largeArcFlag,c=g===void 0?0:g,x=n.sweepFlag,A=x===void 0?0:x,M=[];if(u===0||b===0)return[];var R=Math.sin(E*S/360),T=Math.cos(E*S/360),L=T*(s-h)/2+R*(o-f)/2,P=-R*(s-h)/2+T*(o-f)/2;if(L===0&&P===0)return[];u=Math.abs(u),b=Math.abs(b);var d=Math.pow(L,2)/Math.pow(u,2)+Math.pow(P,2)/Math.pow(b,2);d>1&&(u*=Math.sqrt(d),b*=Math.sqrt(d));var k=v(s,o,h,f,u,b,c,A,R,T,L,P),I=l(k,4),N=I[0],B=I[1],G=I[2],U=I[3],H=Math.abs(U)/(S/4);Math.abs(1-H)<1e-7&&(H=1);var W=Math.max(Math.ceil(H),1);U/=W;for(var V=0;Va[2]&&(a[2]=o[h+0]),o[h+1]>a[3]&&(a[3]=o[h+1]);return a}},41976:function(D,O,t){D.exports=S;var l=t(92848);function S(w){for(var v,m=[],a=0,n=0,s=0,o=0,h=null,f=null,u=0,b=0,p=0,E=w.length;p4?(a=g[g.length-4],n=g[g.length-3]):(a=u,n=b),m.push(g)}return m}function i(w,v,m,a){return["C",w,v,m,a,m,a]}function C(w,v,m,a,n,s){return["C",w/3+.6666666666666666*m,v/3+.6666666666666666*a,n/3+.6666666666666666*m,s/3+.6666666666666666*a,n,s]}},20472:function(D,O,t){var l=t(74840),S=t(21984),i=t(22235),C=t(53520),w=t(29620),v=document.createElement("canvas"),m=v.getContext("2d");D.exports=a;function a(o,h){if(!C(o))throw Error("Argument should be valid svg path string");h||(h={});var f,u;h.shape?(f=h.shape[0],u=h.shape[1]):(f=v.width=h.w||h.width||200,u=v.height=h.h||h.height||200);var b=Math.min(f,u),p=h.stroke||0,E=h.viewbox||h.viewBox||l(o),g=[f/(E[2]-E[0]),u/(E[3]-E[1])],c=Math.min(g[0]||0,g[1]||0)/2;if(m.fillStyle="black",m.fillRect(0,0,f,u),m.fillStyle="white",p&&(typeof p!="number"&&(p=1),p>0?m.strokeStyle="white":m.strokeStyle="black",m.lineWidth=Math.abs(p)),m.translate(f*.5,u*.5),m.scale(c,c),s()){var x=new Path2D(o);m.fill(x),p&&m.stroke(x)}else{var A=S(o);i(m,A),m.fill(),p&&m.stroke()}m.setTransform(1,0,0,1,0,0);var M=w(m,{cutoff:h.cutoff!=null?h.cutoff:.5,radius:h.radius!=null?h.radius:b*.5});return M}var n;function s(){if(n!=null)return n;var o=document.createElement("canvas").getContext("2d");if(o.canvas.width=o.canvas.height=1,!window.Path2D)return n=!1;var h=new Path2D("M0,0h1v1h-1v-1Z");o.fillStyle="black",o.fill(h);var f=o.getImageData(0,0,1,1);return n=f&&f.data&&f.data[3]===255}},49760:function(D,O,t){var l;(function(S){var i=/^\s+/,C=/\s+$/,w=0,v=S.round,m=S.min,a=S.max,n=S.random;function s(ee,de){if(ee=ee||"",de=de||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,de);var le=o(ee);this._originalInput=ee,this._r=le.r,this._g=le.g,this._b=le.b,this._a=le.a,this._roundA=v(100*this._a)/100,this._format=de.format||le.format,this._gradientType=de.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=le.ok,this._tc_id=w++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),de,le,he,xe,Ee,Se;return de=ee.r/255,le=ee.g/255,he=ee.b/255,de<=.03928?xe=de/12.92:xe=S.pow((de+.055)/1.055,2.4),le<=.03928?Ee=le/12.92:Ee=S.pow((le+.055)/1.055,2.4),he<=.03928?Se=he/12.92:Se=S.pow((he+.055)/1.055,2.4),.2126*xe+.7152*Ee+.0722*Se},setAlpha:function(ee){return this._a=V(ee),this._roundA=v(100*this._a)/100,this},toHsv:function(){var ee=b(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=b(this._r,this._g,this._b),de=v(ee.h*360),le=v(ee.s*100),he=v(ee.v*100);return this._a==1?"hsv("+de+", "+le+"%, "+he+"%)":"hsva("+de+", "+le+"%, "+he+"%, "+this._roundA+")"},toHsl:function(){var ee=f(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=f(this._r,this._g,this._b),de=v(ee.h*360),le=v(ee.s*100),he=v(ee.l*100);return this._a==1?"hsl("+de+", "+le+"%, "+he+"%)":"hsla("+de+", "+le+"%, "+he+"%, "+this._roundA+")"},toHex:function(ee){return E(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return g(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v($(this._r,255)*100)+"%",g:v($(this._g,255)*100)+"%",b:v($(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v($(this._r,255)*100)+"%, "+v($(this._g,255)*100)+"%, "+v($(this._b,255)*100)+"%)":"rgba("+v($(this._r,255)*100)+"%, "+v($(this._g,255)*100)+"%, "+v($(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var de="#"+c(this._r,this._g,this._b,this._a),le=de,he=this._gradientType?"GradientType = 1, ":"";if(ee){var xe=s(ee);le="#"+c(xe._r,xe._g,xe._b,xe._a)}return"progid:DXImageTransform.Microsoft.gradient("+he+"startColorstr="+de+",endColorstr="+le+")"},toString:function(ee){var de=!!ee;ee=ee||this._format;var le=!1,he=this._a<1&&this._a>=0,xe=!de&&he&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return xe?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(le=this.toRgbString()),ee==="prgb"&&(le=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(le=this.toHexString()),ee==="hex3"&&(le=this.toHexString(!0)),ee==="hex4"&&(le=this.toHex8String(!0)),ee==="hex8"&&(le=this.toHex8String()),ee==="name"&&(le=this.toName()),ee==="hsl"&&(le=this.toHslString()),ee==="hsv"&&(le=this.toHsvString()),le||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,de){var le=ee.apply(null,[this].concat([].slice.call(de)));return this._r=le._r,this._g=le._g,this._b=le._b,this.setAlpha(le._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(L,arguments)},desaturate:function(){return this._applyModification(x,arguments)},saturate:function(){return this._applyModification(A,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(ee,de){return ee.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(d,arguments)},monochromatic:function(){return this._applyCombination(G,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(ee,de){if(typeof ee=="object"){var le={};for(var he in ee)ee.hasOwnProperty(he)&&(he==="a"?le[he]=ee[he]:le[he]=Q(ee[he]));ee=le}return s(ee,de)};function o(ee){var de={r:0,g:0,b:0},le=1,he=null,xe=null,Ee=null,Se=!1,ke=!1;return typeof ee=="string"&&(ee=ce(ee)),typeof ee=="object"&&(ne(ee.r)&&ne(ee.g)&&ne(ee.b)?(de=h(ee.r,ee.g,ee.b),Se=!0,ke=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):ne(ee.h)&&ne(ee.s)&&ne(ee.v)?(he=Q(ee.s),xe=Q(ee.v),de=p(ee.h,he,xe),Se=!0,ke="hsv"):ne(ee.h)&&ne(ee.s)&&ne(ee.l)&&(he=Q(ee.s),Ee=Q(ee.l),de=u(ee.h,he,Ee),Se=!0,ke="hsl"),ee.hasOwnProperty("a")&&(le=ee.a)),le=V(le),{ok:Se,format:ee.format||ke,r:m(255,a(de.r,0)),g:m(255,a(de.g,0)),b:m(255,a(de.b,0)),a:le}}function h(ee,de,le){return{r:$(ee,255)*255,g:$(de,255)*255,b:$(le,255)*255}}function f(ee,de,le){ee=$(ee,255),de=$(de,255),le=$(le,255);var he=a(ee,de,le),xe=m(ee,de,le),Ee,Se,ke=(he+xe)/2;if(he==xe)Ee=Se=0;else{var Te=he-xe;switch(Se=ke>.5?Te/(2-he-xe):Te/(he+xe),he){case ee:Ee=(de-le)/Te+(de1&&(Ie-=1),Ie<.16666666666666666?Ae+(be-Ae)*6*Ie:Ie<.5?be:Ie<.6666666666666666?Ae+(be-Ae)*(.6666666666666666-Ie)*6:Ae}if(de===0)he=xe=Ee=le;else{var ke=le<.5?le*(1+de):le+de-le*de,Te=2*le-ke;he=Se(Te,ke,ee+.3333333333333333),xe=Se(Te,ke,ee),Ee=Se(Te,ke,ee-.3333333333333333)}return{r:he*255,g:xe*255,b:Ee*255}}function b(ee,de,le){ee=$(ee,255),de=$(de,255),le=$(le,255);var he=a(ee,de,le),xe=m(ee,de,le),Ee,Se,ke=he,Te=he-xe;if(Se=he===0?0:Te/he,he==xe)Ee=0;else{switch(he){case ee:Ee=(de-le)/Te+(de>1)+720)%360;--de;)he.h=(he.h+xe)%360,Ee.push(s(he));return Ee}function G(ee,de){de=de||6;for(var le=s(ee).toHsv(),he=le.h,xe=le.s,Ee=le.v,Se=[],ke=1/de;de--;)Se.push(s({h:he,s:xe,v:Ee})),Ee=(Ee+ke)%1;return Se}s.mix=function(ee,de,le){le=le===0?0:le||50;var he=s(ee).toRgb(),xe=s(de).toRgb(),Ee=le/100,Se={r:(xe.r-he.r)*Ee+he.r,g:(xe.g-he.g)*Ee+he.g,b:(xe.b-he.b)*Ee+he.b,a:(xe.a-he.a)*Ee+he.a};return s(Se)},s.readability=function(ee,de){var le=s(ee),he=s(de);return(S.max(le.getLuminance(),he.getLuminance())+.05)/(S.min(le.getLuminance(),he.getLuminance())+.05)},s.isReadable=function(ee,de,le){var he=s.readability(ee,de),xe,Ee;switch(Ee=!1,xe=re(le),xe.level+xe.size){case"AAsmall":case"AAAlarge":Ee=he>=4.5;break;case"AAlarge":Ee=he>=3;break;case"AAAsmall":Ee=he>=7;break}return Ee},s.mostReadable=function(ee,de,le){var he=null,xe=0,Ee,Se,ke,Te;le=le||{},Se=le.includeFallbackColors,ke=le.level,Te=le.size;for(var Ae=0;Aexe&&(xe=Ee,he=s(de[Ae]));return s.isReadable(ee,he,{level:ke,size:Te})||!Se?he:(le.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],le))};var U=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=s.hexNames=W(U);function W(ee){var de={};for(var le in ee)ee.hasOwnProperty(le)&&(de[ee[le]]=le);return de}function V(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function $(ee,de){ae(ee)&&(ee="100%");var le=ie(ee);return ee=m(de,a(0,parseFloat(ee))),le&&(ee=parseInt(ee*de,10)/100),S.abs(ee-de)<1e-6?1:ee%de/parseFloat(de)}function Z(ee){return m(1,a(0,ee))}function q(ee){return parseInt(ee,16)}function ae(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function ie(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function fe(ee){return ee.length==1?"0"+ee:""+ee}function Q(ee){return ee<=1&&(ee=ee*100+"%"),ee}function J(ee){return S.round(parseFloat(ee)*255).toString(16)}function oe(ee){return q(ee)/255}var K=function(){var ee="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",le="(?:"+de+")|(?:"+ee+")",he="[\\s|\\(]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")\\s*\\)?",xe="[\\s|\\(]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")\\s*\\)?";return{CSS_UNIT:new RegExp(le),rgb:new RegExp("rgb"+he),rgba:new RegExp("rgba"+xe),hsl:new RegExp("hsl"+he),hsla:new RegExp("hsla"+xe),hsv:new RegExp("hsv"+he),hsva:new RegExp("hsva"+xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ne(ee){return!!K.CSS_UNIT.exec(ee)}function ce(ee){ee=ee.replace(i,"").replace(C,"").toLowerCase();var de=!1;if(U[ee])ee=U[ee],de=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var le;return(le=K.rgb.exec(ee))?{r:le[1],g:le[2],b:le[3]}:(le=K.rgba.exec(ee))?{r:le[1],g:le[2],b:le[3],a:le[4]}:(le=K.hsl.exec(ee))?{h:le[1],s:le[2],l:le[3]}:(le=K.hsla.exec(ee))?{h:le[1],s:le[2],l:le[3],a:le[4]}:(le=K.hsv.exec(ee))?{h:le[1],s:le[2],v:le[3]}:(le=K.hsva.exec(ee))?{h:le[1],s:le[2],v:le[3],a:le[4]}:(le=K.hex8.exec(ee))?{r:q(le[1]),g:q(le[2]),b:q(le[3]),a:oe(le[4]),format:de?"name":"hex8"}:(le=K.hex6.exec(ee))?{r:q(le[1]),g:q(le[2]),b:q(le[3]),format:de?"name":"hex"}:(le=K.hex4.exec(ee))?{r:q(le[1]+""+le[1]),g:q(le[2]+""+le[2]),b:q(le[3]+""+le[3]),a:oe(le[4]+""+le[4]),format:de?"name":"hex8"}:(le=K.hex3.exec(ee))?{r:q(le[1]+""+le[1]),g:q(le[2]+""+le[2]),b:q(le[3]+""+le[3]),format:de?"name":"hex"}:!1}function re(ee){var de,le;return ee=ee||{level:"AA",size:"small"},de=(ee.level||"AA").toUpperCase(),le=(ee.size||"small").toLowerCase(),de!=="AA"&&de!=="AAA"&&(de="AA"),le!=="small"&&le!=="large"&&(le="small"),{level:de,size:le}}D.exports?D.exports=s:(l=(function(){return s}).call(O,t,O,D),l!==void 0&&(D.exports=l))})(Math)},37816:function(D){D.exports=l,D.exports.float32=D.exports.float=l,D.exports.fract32=D.exports.fract=t;var O=new Float32Array(1);function t(S,i){if(S.length){if(S instanceof Float32Array)return new Float32Array(S.length);i instanceof Float32Array||(i=l(S));for(var C=0,w=i.length;C":(C.length>100&&(C=C.slice(0,99)+"…"),C=C.replace(S,function(w){switch(w){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),C)}},7328:function(D,O,t){var l=t(81680),S={object:!0,function:!0,undefined:!0};D.exports=function(i){return l(i)?hasOwnProperty.call(S,typeof i):!1}},87396:function(D,O,t){var l=t(57980),S=t(85488);D.exports=function(i){return S(i)?i:l(i,"%v is not a plain function",arguments[1])}},85488:function(D,O,t){var l=t(73384),S=/^\s*class[\s{/}]/,i=Function.prototype.toString;D.exports=function(C){return!(!l(C)||S.test(i.call(C)))}},54612:function(D,O,t){var l=t(7328);D.exports=function(S){if(!l(S))return!1;try{return S.constructor?S.constructor.prototype===S:!1}catch{return!1}}},33940:function(D,O,t){var l=t(81680),S=t(7328),i=Object.prototype.toString;D.exports=function(C){if(!l(C))return null;if(S(C)){var w=C.toString;if(typeof w!="function"||w===i)return null}try{return""+C}catch{return null}}},18496:function(D,O,t){var l=t(57980),S=t(81680);D.exports=function(i){return S(i)?i:l(i,"Cannot use %v",arguments[1])}},81680:function(D){var O=void 0;D.exports=function(t){return t!==O&&t!==null}},14144:function(D,O,t){var l=t(308),S=t(10352),i=t(33576).Buffer;t.g.__TYPEDARRAY_POOL||(t.g.__TYPEDARRAY_POOL={UINT8:S([32,0]),UINT16:S([32,0]),UINT32:S([32,0]),BIGUINT64:S([32,0]),INT8:S([32,0]),INT16:S([32,0]),INT32:S([32,0]),BIGINT64:S([32,0]),FLOAT:S([32,0]),DOUBLE:S([32,0]),DATA:S([32,0]),UINT8C:S([32,0]),BUFFER:S([32,0])});var C=typeof Uint8ClampedArray<"u",w=typeof BigUint64Array<"u",v=typeof BigInt64Array<"u",m=t.g.__TYPEDARRAY_POOL;m.UINT8C||(m.UINT8C=S([32,0])),m.BIGUINT64||(m.BIGUINT64=S([32,0])),m.BIGINT64||(m.BIGINT64=S([32,0])),m.BUFFER||(m.BUFFER=S([32,0]));var a=m.DATA,n=m.BUFFER;O.free=function(d){if(i.isBuffer(d))n[l.log2(d.length)].push(d);else{if(Object.prototype.toString.call(d)!=="[object ArrayBuffer]"&&(d=d.buffer),!d)return;var k=d.length||d.byteLength,I=l.log2(k)|0;a[I].push(d)}};function s(P){if(P){var d=P.length||P.byteLength,k=l.log2(d);a[k].push(P)}}function o(P){s(P.buffer)}O.freeUint8=O.freeUint16=O.freeUint32=O.freeBigUint64=O.freeInt8=O.freeInt16=O.freeInt32=O.freeBigInt64=O.freeFloat32=O.freeFloat=O.freeFloat64=O.freeDouble=O.freeUint8Clamped=O.freeDataView=o,O.freeArrayBuffer=s,O.freeBuffer=function(d){n[l.log2(d.length)].push(d)},O.malloc=function(d,k){if(k===void 0||k==="arraybuffer")return h(d);switch(k){case"uint8":return f(d);case"uint16":return u(d);case"uint32":return b(d);case"int8":return p(d);case"int16":return E(d);case"int32":return g(d);case"float":case"float32":return c(d);case"double":case"float64":return x(d);case"uint8_clamped":return A(d);case"bigint64":return R(d);case"biguint64":return M(d);case"buffer":return L(d);case"data":case"dataview":return T(d);default:return null}return null};function h(d){var d=l.nextPow2(d),k=l.log2(d),I=a[k];return I.length>0?I.pop():new ArrayBuffer(d)}O.mallocArrayBuffer=h;function f(P){return new Uint8Array(h(P),0,P)}O.mallocUint8=f;function u(P){return new Uint16Array(h(2*P),0,P)}O.mallocUint16=u;function b(P){return new Uint32Array(h(4*P),0,P)}O.mallocUint32=b;function p(P){return new Int8Array(h(P),0,P)}O.mallocInt8=p;function E(P){return new Int16Array(h(2*P),0,P)}O.mallocInt16=E;function g(P){return new Int32Array(h(4*P),0,P)}O.mallocInt32=g;function c(P){return new Float32Array(h(4*P),0,P)}O.mallocFloat32=O.mallocFloat=c;function x(P){return new Float64Array(h(8*P),0,P)}O.mallocFloat64=O.mallocDouble=x;function A(P){return C?new Uint8ClampedArray(h(P),0,P):f(P)}O.mallocUint8Clamped=A;function M(P){return w?new BigUint64Array(h(8*P),0,P):null}O.mallocBigUint64=M;function R(P){return v?new BigInt64Array(h(8*P),0,P):null}O.mallocBigInt64=R;function T(P){return new DataView(h(P),0,P)}O.mallocDataView=T;function L(P){P=l.nextPow2(P);var d=l.log2(P),k=n[d];return k.length>0?k.pop():new i(P)}O.mallocBuffer=L,O.clearCache=function(){for(var d=0;d<32;++d)m.UINT8[d].length=0,m.UINT16[d].length=0,m.UINT32[d].length=0,m.INT8[d].length=0,m.INT16[d].length=0,m.INT32[d].length=0,m.FLOAT[d].length=0,m.DOUBLE[d].length=0,m.BIGUINT64[d].length=0,m.BIGINT64[d].length=0,m.UINT8C[d].length=0,a[d].length=0,n[d].length=0}},92384:function(D){var O=/[\'\"]/;D.exports=function(l){return l?(O.test(l.charAt(0))&&(l=l.substr(1)),O.test(l.charAt(l.length-1))&&(l=l.substr(0,l.length-1)),l):""}},45223:function(D){D.exports=function(t,l,S){Array.isArray(S)||(S=[].slice.call(arguments,2));for(var i=0,C=S.length;i"u"?!1:k.working?k(Ee):Ee instanceof Map}O.isMap=I;function N(Ee){return a(Ee)==="[object Set]"}N.working=typeof Set<"u"&&N(new Set);function B(Ee){return typeof Set>"u"?!1:N.working?N(Ee):Ee instanceof Set}O.isSet=B;function G(Ee){return a(Ee)==="[object WeakMap]"}G.working=typeof WeakMap<"u"&&G(new WeakMap);function U(Ee){return typeof WeakMap>"u"?!1:G.working?G(Ee):Ee instanceof WeakMap}O.isWeakMap=U;function H(Ee){return a(Ee)==="[object WeakSet]"}H.working=typeof WeakSet<"u"&&H(new WeakSet);function W(Ee){return H(Ee)}O.isWeakSet=W;function V(Ee){return a(Ee)==="[object ArrayBuffer]"}V.working=typeof ArrayBuffer<"u"&&V(new ArrayBuffer);function $(Ee){return typeof ArrayBuffer>"u"?!1:V.working?V(Ee):Ee instanceof ArrayBuffer}O.isArrayBuffer=$;function Z(Ee){return a(Ee)==="[object DataView]"}Z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Z(new DataView(new ArrayBuffer(1),0,1));function q(Ee){return typeof DataView>"u"?!1:Z.working?Z(Ee):Ee instanceof DataView}O.isDataView=q;var ae=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ie(Ee){return a(Ee)==="[object SharedArrayBuffer]"}function fe(Ee){return typeof ae>"u"?!1:(typeof ie.working>"u"&&(ie.working=ie(new ae)),ie.working?ie(Ee):Ee instanceof ae)}O.isSharedArrayBuffer=fe;function Q(Ee){return a(Ee)==="[object AsyncFunction]"}O.isAsyncFunction=Q;function J(Ee){return a(Ee)==="[object Map Iterator]"}O.isMapIterator=J;function oe(Ee){return a(Ee)==="[object Set Iterator]"}O.isSetIterator=oe;function K(Ee){return a(Ee)==="[object Generator]"}O.isGeneratorObject=K;function ne(Ee){return a(Ee)==="[object WebAssembly.Module]"}O.isWebAssemblyCompiledModule=ne;function ce(Ee){return u(Ee,n)}O.isNumberObject=ce;function re(Ee){return u(Ee,s)}O.isStringObject=re;function ee(Ee){return u(Ee,o)}O.isBooleanObject=ee;function de(Ee){return v&&u(Ee,h)}O.isBigIntObject=de;function le(Ee){return m&&u(Ee,f)}O.isSymbolObject=le;function he(Ee){return ce(Ee)||re(Ee)||ee(Ee)||de(Ee)||le(Ee)}O.isBoxedPrimitive=he;function xe(Ee){return typeof Uint8Array<"u"&&($(Ee)||fe(Ee))}O.isAnyArrayBuffer=xe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ee){Object.defineProperty(O,Ee,{enumerable:!1,value:function(){throw new Error(Ee+" is not supported in userland")}})})},35840:function(D,O,t){var l=t(4168),S=Object.getOwnPropertyDescriptors||function(ae){for(var ie=Object.keys(ae),fe={},Q=0;Q=Q)return K;switch(K){case"%s":return String(fe[ie++]);case"%d":return Number(fe[ie++]);case"%j":try{return JSON.stringify(fe[ie++])}catch{return"[Circular]"}default:return K}}),oe=fe[ie];ie"u")return function(){return O.deprecate(q,ae).apply(this,arguments)};var ie=!1;function fe(){if(!ie){if(l.throwDeprecation)throw new Error(ae);l.traceDeprecation?console.trace(ae):console.error(ae),ie=!0}return q.apply(this,arguments)}return fe};var C={},w=/^$/;if(l.env.NODE_DEBUG){var v=l.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),w=new RegExp("^"+v+"$","i")}O.debuglog=function(q){if(q=q.toUpperCase(),!C[q])if(w.test(q)){var ae=l.pid;C[q]=function(){var ie=O.format.apply(O,arguments);console.error("%s %d: %s",q,ae,ie)}}else C[q]=function(){};return C[q]};function m(q,ae){var ie={seen:[],stylize:n};return arguments.length>=3&&(ie.depth=arguments[2]),arguments.length>=4&&(ie.colors=arguments[3]),g(ae)?ie.showHidden=ae:ae&&O._extend(ie,ae),T(ie.showHidden)&&(ie.showHidden=!1),T(ie.depth)&&(ie.depth=2),T(ie.colors)&&(ie.colors=!1),T(ie.customInspect)&&(ie.customInspect=!0),ie.colors&&(ie.stylize=a),o(ie,q,ie.depth)}O.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(q,ae){var ie=m.styles[ae];return ie?"\x1B["+m.colors[ie][0]+"m"+q+"\x1B["+m.colors[ie][1]+"m":q}function n(q,ae){return q}function s(q){var ae={};return q.forEach(function(ie,fe){ae[ie]=!0}),ae}function o(q,ae,ie){if(q.customInspect&&ae&&I(ae.inspect)&&ae.inspect!==O.inspect&&!(ae.constructor&&ae.constructor.prototype===ae)){var fe=ae.inspect(ie,q);return M(fe)||(fe=o(q,fe,ie)),fe}var Q=h(q,ae);if(Q)return Q;var J=Object.keys(ae),oe=s(J);if(q.showHidden&&(J=Object.getOwnPropertyNames(ae)),k(ae)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return f(ae);if(J.length===0){if(I(ae)){var K=ae.name?": "+ae.name:"";return q.stylize("[Function"+K+"]","special")}if(L(ae))return q.stylize(RegExp.prototype.toString.call(ae),"regexp");if(d(ae))return q.stylize(Date.prototype.toString.call(ae),"date");if(k(ae))return f(ae)}var ne="",ce=!1,re=["{","}"];if(E(ae)&&(ce=!0,re=["[","]"]),I(ae)){var ee=ae.name?": "+ae.name:"";ne=" [Function"+ee+"]"}if(L(ae)&&(ne=" "+RegExp.prototype.toString.call(ae)),d(ae)&&(ne=" "+Date.prototype.toUTCString.call(ae)),k(ae)&&(ne=" "+f(ae)),J.length===0&&(!ce||ae.length==0))return re[0]+ne+re[1];if(ie<0)return L(ae)?q.stylize(RegExp.prototype.toString.call(ae),"regexp"):q.stylize("[Object]","special");q.seen.push(ae);var de;return ce?de=u(q,ae,ie,oe,J):de=J.map(function(le){return b(q,ae,ie,oe,le,ce)}),q.seen.pop(),p(de,ne,re)}function h(q,ae){if(T(ae))return q.stylize("undefined","undefined");if(M(ae)){var ie="'"+JSON.stringify(ae).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return q.stylize(ie,"string")}if(A(ae))return q.stylize(""+ae,"number");if(g(ae))return q.stylize(""+ae,"boolean");if(c(ae))return q.stylize("null","null")}function f(q){return"["+Error.prototype.toString.call(q)+"]"}function u(q,ae,ie,fe,Q){for(var J=[],oe=0,K=ae.length;oe"+Ra+"?"+$r+".constant["+Ra+"]:0;"}).join(""),"}}else{","if(",Pn,"(",$r,".buffer)){",Wn,"=",_n,".createStream(",34962,",",$r,".buffer);","}else{",Wn,"=",_n,".getBuffer(",$r,".buffer);","}",Oa,'="type" in ',$r,"?",rn.glTypes,"[",$r,".type]:",Wn,".dtype;",zn.normalized,"=!!",$r,".normalized;"),Qr("size"),Qr("offset"),Qr("stride"),Qr("divisor"),Lr("}}"),Lr.exit("if(",zn.isStream,"){",_n,".destroyStream(",Wn,");","}"),zn})}),An}function yr(Pr){var Ur=Pr.static,Ar=Pr.dynamic,Vr={};return Object.keys(Ur).forEach(function(An){var Hn=Ur[An];Vr[An]=ce(function(yn,vn){return typeof Hn=="number"||typeof Hn=="boolean"?""+Hn:yn.link(Hn)})}),Object.keys(Ar).forEach(function(An){var Hn=Ar[An];Vr[An]=re(Hn,function(yn,vn){return yn.invoke(vn,Hn)})}),Vr}function Xr(Pr,Ur,Ar,Vr,An){function Hn(Zn){var Wn=vn[Zn];Wn&&(Qr[Zn]=Wn)}var yn=fr(Pr,Ur),Pn=Qt(Pr),vn=or(Pr,Pn),Lr=Ht(Pr),Qr=mr(Pr),$r=ar(Pr,An,yn);Hn("viewport"),Hn(pr("scissor.box"));var rn=0"u"?"Date.now()":"performance.now()"}function yn(Zn){_n=Ur.def(),Zn(_n,"=",Hn(),";"),typeof An=="string"?Zn($r,".count+=",An,";"):Zn($r,".count++;"),er&&(Vr?(zn=Ur.def(),Zn(zn,"=",Pn,".getNumPendingQueries();")):Zn(Pn,".beginQuery(",$r,");"))}function vn(Zn){Zn($r,".cpuTime+=",Hn(),"-",_n,";"),er&&(Vr?Zn(Pn,".pushScopeStats(",zn,",",Pn,".getNumPendingQueries(),",$r,");"):Zn(Pn,".endQuery();"))}function Lr(Zn){var Wn=Ur.def(rn,".profile");Ur(rn,".profile=",Zn,";"),Ur.exit(rn,".profile=",Wn,";")}var Qr=Pr.shared,$r=Pr.stats,rn=Qr.current,Pn=Qr.timer;Ar=Ar.profile;var _n,zn;if(Ar){if(ne(Ar)){Ar.enable?(yn(Ur),vn(Ur.exit),Lr("true")):Lr("false");return}Ar=Ar.append(Pr,Ur),Lr(Ar)}else Ar=Ur.def(rn,".profile");Qr=Pr.block(),yn(Qr),Ur("if(",Ar,"){",Qr,"}"),Pr=Pr.block(),vn(Pr),Ur.exit("if(",Ar,"){",Pr,"}")}function gr(Pr,Ur,Ar,Vr,An){function Hn(Lr){switch(Lr){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function yn(Lr,Qr,$r){function rn(){Ur("if(!",Zn,".buffer){",_n,".enableVertexAttribArray(",zn,");}");var Ra=$r.type,$a;$a=$r.size?Ur.def($r.size,"||",Qr):Qr,Ur("if(",Zn,".type!==",Ra,"||",Zn,".size!==",$a,"||",xa.map(function(qi){return Zn+"."+qi+"!=="+$r[qi]}).join("||"),"){",_n,".bindBuffer(",34962,",",Wn,".buffer);",_n,".vertexAttribPointer(",[zn,$a,Ra,$r.normalized,$r.stride,$r.offset],");",Zn,".type=",Ra,";",Zn,".size=",$a,";",xa.map(function(qi){return Zn+"."+qi+"="+$r[qi]+";"}).join(""),"}"),Mr&&(Ra=$r.divisor,Ur("if(",Zn,".divisor!==",Ra,"){",Pr.instancing,".vertexAttribDivisorANGLE(",[zn,Ra],");",Zn,".divisor=",Ra,";}"))}function Pn(){Ur("if(",Zn,".buffer){",_n,".disableVertexAttribArray(",zn,");",Zn,".buffer=null;","}if(",yt.map(function(Ra,$a){return Zn+"."+Ra+"!=="+Oa[$a]}).join("||"),"){",_n,".vertexAttrib4f(",zn,",",Oa,");",yt.map(function(Ra,$a){return Zn+"."+Ra+"="+Oa[$a]+";"}).join(""),"}")}var _n=vn.gl,zn=Ur.def(Lr,".location"),Zn=Ur.def(vn.attributes,"[",zn,"]");Lr=$r.state;var Wn=$r.buffer,Oa=[$r.x,$r.y,$r.z,$r.w],xa=["buffer","normalized","offset","stride"];Lr===1?rn():Lr===2?Pn():(Ur("if(",Lr,"===",1,"){"),rn(),Ur("}else{"),Pn(),Ur("}"))}var vn=Pr.shared;Vr.forEach(function(Lr){var Qr=Lr.name,$r=Ar.attributes[Qr],rn;if($r){if(!An($r))return;rn=$r.append(Pr,Ur)}else{if(!An(Xt))return;var Pn=Pr.scopeAttrib(Qr);rn={},Object.keys(new ma).forEach(function(_n){rn[_n]=Ur.def(Pn,".",_n)})}yn(Pr.link(Lr),Hn(Lr.info.type),rn)})}function Br(Pr,Ur,Ar,Vr,An,Hn){for(var yn=Pr.shared,vn=yn.gl,Lr,Qr=0;Qr>1)",Zn],");")}function $a(){Ar(Wn,".drawArraysInstancedANGLE(",[Pn,_n,zn,Zn],");")}rn&&rn!=="null"?xa?Ra():(Ar("if(",rn,"){"),Ra(),Ar("}else{"),$a(),Ar("}")):$a()}function yn(){function Ra(){Ar(Lr+".drawElements("+[Pn,zn,Oa,_n+"<<(("+Oa+"-5121)>>1)"]+");")}function $a(){Ar(Lr+".drawArrays("+[Pn,_n,zn]+");")}rn&&rn!=="null"?xa?Ra():(Ar("if(",rn,"){"),Ra(),Ar("}else{"),$a(),Ar("}")):$a()}var vn=Pr.shared,Lr=vn.gl,Qr=vn.draw,$r=Vr.draw,rn=function(){var Ra=$r.elements,$a=Ur;return Ra?((Ra.contextDep&&Vr.contextDynamic||Ra.propDep)&&($a=Ar),Ra=Ra.append(Pr,$a),$r.elementsActive&&$a("if("+Ra+")"+Lr+".bindBuffer(34963,"+Ra+".buffer.buffer);")):(Ra=$a.def(),$a(Ra,"=",Qr,".","elements",";","if(",Ra,"){",Lr,".bindBuffer(",34963,",",Ra,".buffer.buffer);}","else if(",vn.vao,".currentVAO){",Ra,"=",Pr.shared.elements+".getElements("+vn.vao,".currentVAO.elements);",nn?"":"if("+Ra+")"+Lr+".bindBuffer(34963,"+Ra+".buffer.buffer);","}")),Ra}(),Pn=An("primitive"),_n=An("offset"),zn=function(){var Ra=$r.count,$a=Ur;return Ra?((Ra.contextDep&&Vr.contextDynamic||Ra.propDep)&&($a=Ar),Ra=Ra.append(Pr,$a)):Ra=$a.def(Qr,".","count"),Ra}();if(typeof zn=="number"){if(zn===0)return}else Ar("if(",zn,"){"),Ar.exit("}");var Zn,Wn;Mr&&(Zn=An("instances"),Wn=Pr.instancing);var Oa=rn+".type",xa=$r.elements&&ne($r.elements)&&!$r.vaoActive;Mr&&(typeof Zn!="number"||0<=Zn)?typeof Zn=="string"?(Ar("if(",Zn,">0){"),Hn(),Ar("}else if(",Zn,"<0){"),yn(),Ar("}")):Hn():yn()}function Wr(Pr,Ur,Ar,Vr,An){return Ur=Ut(),An=Ur.proc("body",An),Mr&&(Ur.instancing=An.def(Ur.shared.extensions,".angle_instanced_arrays")),Pr(Ur,An,Ar,Vr),Ur.compile().body}function fn(Pr,Ur,Ar,Vr){Fn(Pr,Ur),Ar.useVAO?Ar.drawVAO?Ur(Pr.shared.vao,".setVAO(",Ar.drawVAO.append(Pr,Ur),");"):Ur(Pr.shared.vao,".setVAO(",Pr.shared.vao,".targetVAO);"):(Ur(Pr.shared.vao,".setVAO(null);"),gr(Pr,Ur,Ar,Vr.attributes,function(){return!0})),Br(Pr,Ur,Ar,Vr.uniforms,function(){return!0},!1),Zr(Pr,Ur,Ur,Ar)}function Tn(Pr,Ur){var Ar=Pr.proc("draw",1);Fn(Pr,Ar),kr(Pr,Ar,Ur.context),Dr(Pr,Ar,Ur.framebuffer),bn(Pr,Ar,Ur),un(Pr,Ar,Ur.state),On(Pr,Ar,Ur,!1,!0);var Vr=Ur.shader.progVar.append(Pr,Ar);if(Ar(Pr.shared.gl,".useProgram(",Vr,".program);"),Ur.shader.program)fn(Pr,Ar,Ur,Ur.shader.program);else{Ar(Pr.shared.vao,".setVAO(null);");var An=Pr.global.def("{}"),Hn=Ar.def(Vr,".id"),yn=Ar.def(An,"[",Hn,"]");Ar(Pr.cond(yn).then(yn,".call(this,a0);").else(yn,"=",An,"[",Hn,"]=",Pr.link(function(vn){return Wr(fn,Pr,Ur,vn,1)}),"(",Vr,");",yn,".call(this,a0);"))}0=--this.refCount&&ht(this)},sr.profile&&(br.getTotalRenderbufferSize=function(){var Wt=0;return Object.keys(Ft).forEach(function(jt){Wt+=Ft[jt].stats.size}),Wt}),{create:function(Wt,jt){function er(vr,pr){var Ke=0,Xe=0,Ut=32854;if(typeof vr=="object"&&vr?("shape"in vr?(Xe=vr.shape,Ke=Xe[0]|0,Xe=Xe[1]|0):("radius"in vr&&(Ke=Xe=vr.radius|0),"width"in vr&&(Ke=vr.width|0),"height"in vr&&(Xe=vr.height|0)),"format"in vr&&(Ut=Mt[vr.format])):typeof vr=="number"?(Ke=vr|0,Xe=typeof pr=="number"?pr|0:Ke):vr||(Ke=Xe=1),Ke!==hr.width||Xe!==hr.height||Ut!==hr.format)return er.width=hr.width=Ke,er.height=hr.height=Xe,hr.format=Ut,Tt.bindRenderbuffer(36161,hr.renderbuffer),Tt.renderbufferStorage(36161,Ut,Ke,Xe),sr.profile&&(hr.stats.size=Re[hr.format]*hr.width*hr.height),er.format=Rt[hr.format],er}var hr=new Ct(Tt.createRenderbuffer());return Ft[hr.id]=hr,br.renderbufferCount++,er(Wt,jt),er.resize=function(vr,pr){var Ke=vr|0,Xe=pr|0||Ke;return Ke===hr.width&&Xe===hr.height||(er.width=hr.width=Ke,er.height=hr.height=Xe,Tt.bindRenderbuffer(36161,hr.renderbuffer),Tt.renderbufferStorage(36161,hr.format,Ke,Xe),sr.profile&&(hr.stats.size=Re[hr.format]*hr.width*hr.height)),er},er._reglType="renderbuffer",er._renderbuffer=hr,sr.profile&&(er.stats=hr.stats),er.destroy=function(){hr.decRef()},er},clear:function(){be(Ft).forEach(ht)},restore:function(){be(Ft).forEach(function(Wt){Wt.renderbuffer=Tt.createRenderbuffer(),Tt.bindRenderbuffer(36161,Wt.renderbuffer),Tt.renderbufferStorage(36161,Wt.format,Wt.width,Wt.height)}),Tt.bindRenderbuffer(36161,null)}}},Ve=[];Ve[6408]=4,Ve[6407]=3;var Je=[];Je[5121]=1,Je[5126]=4,Je[36193]=2;var ot=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],yt=["x","y","z","w"],ut="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),It={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Vt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},xt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Lt={cw:2304,ccw:2305},Xt=new K(!1,!1,!1,function(){}),dr=function(Tt,Kt){function qt(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function br(Ft,Wt,jt){var er=ht.pop()||new qt;er.startQueryIndex=Ft,er.endQueryIndex=Wt,er.sum=0,er.stats=jt,Mt.push(er)}if(!Kt.ext_disjoint_timer_query)return null;var sr=[],Ct=[],ht=[],Mt=[],Rt=[],zt=[];return{beginQuery:function(Ft){var Wt=sr.pop()||Kt.ext_disjoint_timer_query.createQueryEXT();Kt.ext_disjoint_timer_query.beginQueryEXT(35007,Wt),Ct.push(Wt),br(Ct.length-1,Ct.length,Ft)},endQuery:function(){Kt.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:br,update:function(){var Ft,Wt;if(Ft=Ct.length,Ft!==0){zt.length=Math.max(zt.length,Ft+1),Rt.length=Math.max(Rt.length,Ft+1),Rt[0]=0;var jt=zt[0]=0;for(Wt=Ft=0;Wt=On.length&&br()}var Nn=de(On,Tn);On[Nn]=wn}}}function zt(){var Tn=un.viewport,wn=un.scissor_box;Tn[0]=Tn[1]=wn[0]=wn[1]=0,or.viewportWidth=or.framebufferWidth=or.drawingBufferWidth=Tn[2]=wn[2]=er.drawingBufferWidth,or.viewportHeight=or.framebufferHeight=or.drawingBufferHeight=Tn[3]=wn[3]=er.drawingBufferHeight}function Ft(){or.tick+=1,or.time=jt(),zt(),Dr.procs.poll()}function Wt(){yr.refresh(),zt(),Dr.procs.refresh(),Ut&&Ut.update()}function jt(){return(Se()-Bt)/1e3}if(Tt=a(Tt),!Tt)return null;var er=Tt.gl,hr=er.getContextAttributes();er.isContextLost();var vr=n(er,Tt);if(!vr)return null;var bn=i(),pr={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Ke=Tt.cachedCode||{},Xe=vr.extensions,Ut=dr(er,Xe),Bt=Se(),fr=er.drawingBufferWidth,Qt=er.drawingBufferHeight,or={tick:0,time:0,viewportWidth:fr,viewportHeight:Qt,framebufferWidth:fr,framebufferHeight:Qt,drawingBufferWidth:fr,drawingBufferHeight:Qt,pixelRatio:Tt.pixelRatio},fr={elements:null,primitive:4,count:-1,offset:0,instances:-1},ar=Te(er,Xe),Ht=c(er,pr,Tt,function(Tn){return wr.destroyBuffer(Tn)}),mr=y(er,Xe,Ht,pr),wr=U(er,Xe,ar,pr,Ht,mr,fr),Sr=H(er,bn,pr,Tt),yr=N(er,Xe,ar,function(){Dr.procs.poll()},or,pr,Tt),Xr=Pe(er,Xe,ar,pr,Tt),kr=B(er,Xe,ar,yr,Xr,pr),Dr=ee(er,bn,Xe,ar,Ht,mr,yr,kr,{},wr,Sr,fr,or,Ut,Ke,Tt),bn=W(er,kr,Dr.procs.poll,or),un=Dr.next,Fn=er.canvas,On=[],gr=[],Br=[],Zr=[Tt.onDestroy],Wr=null;Fn&&(Fn.addEventListener("webglcontextlost",sr,!1),Fn.addEventListener("webglcontextrestored",Ct,!1));var fn=kr.setFBO=ht({framebuffer:xe.define.call(null,1,"framebuffer")});return Wt(),hr=le(ht,{clear:function(Tn){if("framebuffer"in Tn)if(Tn.framebuffer&&Tn.framebuffer_reglType==="framebufferCube")for(var wn=0;6>wn;++wn)fn(le({framebuffer:Tn.framebuffer.faces[wn]},Tn),Mt);else fn(Tn,Mt);else Mt(null,Tn)},prop:xe.define.bind(null,1),context:xe.define.bind(null,2),this:xe.define.bind(null,3),draw:ht({}),buffer:function(Tn){return Ht.create(Tn,34962,!1,!1)},elements:function(Tn){return mr.create(Tn,!1)},texture:yr.create2D,cube:yr.createCube,renderbuffer:Xr.create,framebuffer:kr.create,framebufferCube:kr.createCube,vao:wr.createVAO,attributes:hr,frame:Rt,on:function(Tn,wn){var Nn;switch(Tn){case"frame":return Rt(wn);case"lost":Nn=gr;break;case"restore":Nn=Br;break;case"destroy":Nn=Zr}return Nn.push(wn),{cancel:function(){for(var Yn=0;Yn */var l=t(33576),S=l.Buffer;function i(w,v){for(var m in w)v[m]=w[m]}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?D.exports=l:(i(l,O),O.Buffer=C);function C(w,v,m){return S(w,v,m)}C.prototype=Object.create(S.prototype),i(S,C),C.from=function(w,v,m){if(typeof w=="number")throw new TypeError("Argument must not be a number");return S(w,v,m)},C.alloc=function(w,v,m){if(typeof w!="number")throw new TypeError("Argument must be a number");var a=S(w);return v!==void 0?typeof m=="string"?a.fill(v,m):a.fill(v):a.fill(0),a},C.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return S(w)},C.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(w)}},14500:function(D,O,t){var l=t(53664),S=t(64348),i=t(39640)(),C=t(2304),w=l("%TypeError%"),v=l("%Math.floor%");D.exports=function(a,n){if(typeof a!="function")throw new w("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||v(n)!==n)throw new w("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],o=!0,h=!0;if("length"in a&&C){var f=C(a,"length");f&&!f.configurable&&(o=!1),f&&!f.writable&&(h=!1)}return(o||h||!s)&&(i?S(a,"length",n,!0,!0):S(a,"length",n)),a}},29936:function(D,O,t){D.exports=i;var l=t(61252).EventEmitter,S=t(6768);S(i,l),i.Readable=t(12348),i.Writable=t(11288),i.Duplex=t(15316),i.Transform=t(22477),i.PassThrough=t(27136),i.finished=t(15932),i.pipeline=t(38180),i.Stream=i;function i(){l.call(this)}i.prototype.pipe=function(C,w){var v=this;function m(u){C.writable&&C.write(u)===!1&&v.pause&&v.pause()}v.on("data",m);function a(){v.readable&&v.resume&&v.resume()}C.on("drain",a),!C._isStdio&&(!w||w.end!==!1)&&(v.on("end",s),v.on("close",o));var n=!1;function s(){n||(n=!0,C.end())}function o(){n||(n=!0,typeof C.destroy=="function"&&C.destroy())}function h(u){if(f(),l.listenerCount(this,"error")===0)throw u}v.on("error",h),C.on("error",h);function f(){v.removeListener("data",m),C.removeListener("drain",a),v.removeListener("end",s),v.removeListener("close",o),v.removeListener("error",h),C.removeListener("error",h),v.removeListener("end",f),v.removeListener("close",f),C.removeListener("close",f)}return v.on("end",f),v.on("close",f),C.on("close",f),C.emit("pipe",v),C}},92784:function(D){function O(v,m){v.prototype=Object.create(m.prototype),v.prototype.constructor=v,v.__proto__=m}var t={};function l(v,m,a){a||(a=Error);function n(o,h,f){return typeof m=="string"?m:m(o,h,f)}var s=function(o){O(h,o);function h(f,u,b){return o.call(this,n(f,u,b))||this}return h}(a);s.prototype.name=a.name,s.prototype.code=v,t[v]=s}function S(v,m){if(Array.isArray(v)){var a=v.length;return v=v.map(function(n){return String(n)}),a>2?"one of ".concat(m," ").concat(v.slice(0,a-1).join(", "),", or ")+v[a-1]:a===2?"one of ".concat(m," ").concat(v[0]," or ").concat(v[1]):"of ".concat(m," ").concat(v[0])}else return"of ".concat(m," ").concat(String(v))}function i(v,m,a){return v.substr(0,m.length)===m}function C(v,m,a){return(a===void 0||a>v.length)&&(a=v.length),v.substring(a-m.length,a)===m}function w(v,m,a){return typeof a!="number"&&(a=0),a+m.length>v.length?!1:v.indexOf(m,a)!==-1}l("ERR_INVALID_OPT_VALUE",function(v,m){return'The value "'+m+'" is invalid for option "'+v+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(v,m,a){var n;typeof m=="string"&&i(m,"not ")?(n="must not be",m=m.replace(/^not /,"")):n="must be";var s;if(C(v," argument"))s="The ".concat(v," ").concat(n," ").concat(S(m,"type"));else{var o=w(v,".")?"property":"argument";s='The "'.concat(v,'" ').concat(o," ").concat(n," ").concat(S(m,"type"))}return s+=". Received type ".concat(typeof a),s},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),D.exports.i=t},15316:function(D,O,t){var l=t(4168),S=Object.keys||function(o){var h=[];for(var f in o)h.push(f);return h};D.exports=a;var i=t(12348),C=t(11288);t(6768)(a,i);for(var w=S(C.prototype),v=0;v0)if(typeof ee!="string"&&!xe.objectMode&&Object.getPrototypeOf(ee)!==w.prototype&&(ee=m(ee)),le)xe.endEmitted?R(re,new c):I(re,xe,ee,!0);else if(xe.ended)R(re,new E);else{if(xe.destroyed)return!1;xe.reading=!1,xe.decoder&&!de?(ee=xe.decoder.write(ee),xe.objectMode||ee.length!==0?I(re,xe,ee,!1):$(re,xe)):I(re,xe,ee,!1)}else le||(xe.reading=!1,$(re,xe))}return!xe.ended&&(xe.length=B?re=B:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function U(re,ee){return re<=0||ee.length===0&&ee.ended?0:ee.objectMode?1:re!==re?ee.flowing&&ee.length?ee.buffer.head.data.length:ee.length:(re>ee.highWaterMark&&(ee.highWaterMark=G(re)),re<=ee.length?re:ee.ended?ee.length:(ee.needReadable=!0,0))}d.prototype.read=function(re){s("read",re),re=parseInt(re,10);var ee=this._readableState,de=re;if(re!==0&&(ee.emittedReadable=!1),re===0&&ee.needReadable&&((ee.highWaterMark!==0?ee.length>=ee.highWaterMark:ee.length>0)||ee.ended))return s("read: emitReadable",ee.length,ee.ended),ee.length===0&&ee.ended?K(this):W(this),null;if(re=U(re,ee),re===0&&ee.ended)return ee.length===0&&K(this),null;var le=ee.needReadable;s("need readable",le),(ee.length===0||ee.length-re0?he=oe(re,ee):he=null,he===null?(ee.needReadable=ee.length<=ee.highWaterMark,re=0):(ee.length-=re,ee.awaitDrain=0),ee.length===0&&(ee.ended||(ee.needReadable=!0),de!==re&&ee.ended&&K(this)),he!==null&&this.emit("data",he),he};function H(re,ee){if(s("onEofChunk"),!ee.ended){if(ee.decoder){var de=ee.decoder.end();de&&de.length&&(ee.buffer.push(de),ee.length+=ee.objectMode?1:de.length)}ee.ended=!0,ee.sync?W(re):(ee.needReadable=!1,ee.emittedReadable||(ee.emittedReadable=!0,V(re)))}}function W(re){var ee=re._readableState;s("emitReadable",ee.needReadable,ee.emittedReadable),ee.needReadable=!1,ee.emittedReadable||(s("emitReadable",ee.flowing),ee.emittedReadable=!0,l.nextTick(V,re))}function V(re){var ee=re._readableState;s("emitReadable_",ee.destroyed,ee.length,ee.ended),!ee.destroyed&&(ee.length||ee.ended)&&(re.emit("readable"),ee.emittedReadable=!1),ee.needReadable=!ee.flowing&&!ee.ended&&ee.length<=ee.highWaterMark,J(re)}function $(re,ee){ee.readingMore||(ee.readingMore=!0,l.nextTick(Z,re,ee))}function Z(re,ee){for(;!ee.reading&&!ee.ended&&(ee.length1&&ce(le.pipes,re)!==-1)&&!Te&&(s("false write response, pause",le.awaitDrain),le.awaitDrain++),de.pause())}function Ie($e){s("onerror",$e),ze(),re.removeListener("error",Ie),i(re,"error")===0&&R(re,$e)}L(re,"error",Ie);function Ue(){re.removeListener("finish",Ne),ze()}re.once("close",Ue);function Ne(){s("onfinish"),re.removeListener("close",Ue),ze()}re.once("finish",Ne);function ze(){s("unpipe"),de.unpipe(re)}return re.emit("pipe",de),le.flowing||(s("pipe resume"),de.resume()),re};function q(re){return function(){var de=re._readableState;s("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&i(re,"data")&&(de.flowing=!0,J(re))}}d.prototype.unpipe=function(re){var ee=this._readableState,de={hasUnpiped:!1};if(ee.pipesCount===0)return this;if(ee.pipesCount===1)return re&&re!==ee.pipes?this:(re||(re=ee.pipes),ee.pipes=null,ee.pipesCount=0,ee.flowing=!1,re&&re.emit("unpipe",this,de),this);if(!re){var le=ee.pipes,he=ee.pipesCount;ee.pipes=null,ee.pipesCount=0,ee.flowing=!1;for(var xe=0;xe0,le.flowing!==!1&&this.resume()):re==="readable"&&!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.flowing=!1,le.emittedReadable=!1,s("on readable",le.length,le.reading),le.length?W(this):le.reading||l.nextTick(ie,this)),de},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(re,ee){var de=C.prototype.removeListener.call(this,re,ee);return re==="readable"&&l.nextTick(ae,this),de},d.prototype.removeAllListeners=function(re){var ee=C.prototype.removeAllListeners.apply(this,arguments);return(re==="readable"||re===void 0)&&l.nextTick(ae,this),ee};function ae(re){var ee=re._readableState;ee.readableListening=re.listenerCount("readable")>0,ee.resumeScheduled&&!ee.paused?ee.flowing=!0:re.listenerCount("data")>0&&re.resume()}function ie(re){s("readable nexttick read 0"),re.read(0)}d.prototype.resume=function(){var re=this._readableState;return re.flowing||(s("resume"),re.flowing=!re.readableListening,fe(this,re)),re.paused=!1,this};function fe(re,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,l.nextTick(Q,re,ee))}function Q(re,ee){s("resume",ee.reading),ee.reading||re.read(0),ee.resumeScheduled=!1,re.emit("resume"),J(re),ee.flowing&&!ee.reading&&re.read(0)}d.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function J(re){var ee=re._readableState;for(s("flow",ee.flowing);ee.flowing&&re.read()!==null;);}d.prototype.wrap=function(re){var ee=this,de=this._readableState,le=!1;re.on("end",function(){if(s("wrapped end"),de.decoder&&!de.ended){var Ee=de.decoder.end();Ee&&Ee.length&&ee.push(Ee)}ee.push(null)}),re.on("data",function(Ee){if(s("wrapped data"),de.decoder&&(Ee=de.decoder.write(Ee)),!(de.objectMode&&Ee==null)&&!(!de.objectMode&&(!Ee||!Ee.length))){var Se=ee.push(Ee);Se||(le=!0,re.pause())}});for(var he in re)this[he]===void 0&&typeof re[he]=="function"&&(this[he]=function(Se){return function(){return re[Se].apply(re,arguments)}}(he));for(var xe=0;xe=ee.length?(ee.decoder?de=ee.buffer.join(""):ee.buffer.length===1?de=ee.buffer.first():de=ee.buffer.concat(ee.length),ee.buffer.clear()):de=ee.buffer.consume(re,ee.decoder),de}function K(re){var ee=re._readableState;s("endReadable",ee.endEmitted),ee.endEmitted||(ee.ended=!0,l.nextTick(ne,ee,re))}function ne(re,ee){if(s("endReadableNT",re.endEmitted,re.length),!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ee.readable=!1,ee.emit("end"),re.autoDestroy)){var de=ee._writableState;(!de||de.autoDestroy&&de.finished)&&ee.destroy()}}typeof Symbol=="function"&&(d.from=function(re,ee){return M===void 0&&(M=t(90555)),M(d,re,ee)});function ce(re,ee){for(var de=0,le=re.length;de-1))throw new A(oe);return this._writableState.defaultEncoding=oe,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function I(J,oe,K){return!J.objectMode&&J.decodeStrings!==!1&&typeof oe=="string"&&(oe=v.from(oe,K)),oe}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(J,oe,K,ne,ce,re){if(!K){var ee=I(oe,ne,ce);ne!==ee&&(K=!0,ce="buffer",ne=ee)}var de=oe.objectMode?1:ne.length;oe.length+=de;var le=oe.length0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(b){var p={data:b,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var p=this.head,E=""+p.data;p=p.next;)E+=b+p.data;return E}},{key:"concat",value:function(b){if(this.length===0)return a.alloc(0);for(var p=a.allocUnsafe(b>>>0),E=this.head,g=0;E;)h(E.data,p,g),g+=E.data.length,E=E.next;return p}},{key:"consume",value:function(b,p){var E;return bc.length?c.length:b;if(y===c.length?g+=c:g+=c.slice(0,b),b-=y,b===0){y===c.length?(++E,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=c.slice(y));break}++E}return this.length-=E,g}},{key:"_getBuffer",value:function(b){var p=a.allocUnsafe(b),E=this.head,g=1;for(E.data.copy(p),b-=E.data.length;E=E.next;){var c=E.data,y=b>c.length?c.length:b;if(c.copy(p,p.length-b,0,y),b-=y,b===0){y===c.length?(++g,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=c.slice(y));break}++g}return this.length-=g,p}},{key:o,value:function(b,p){return s(this,S({},p,{depth:0,customInspect:!1}))}}]),f}()},55324:function(D,O,t){var l=t(4168);function S(a,n){var s=this,o=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return o||h?(n?n(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,l.nextTick(v,this,a)):l.nextTick(v,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(f){!n&&f?s._writableState?s._writableState.errorEmitted?l.nextTick(C,s):(s._writableState.errorEmitted=!0,l.nextTick(i,s,f)):l.nextTick(i,s,f):n?(l.nextTick(C,s),n(f)):l.nextTick(C,s)}),this)}function i(a,n){v(a,n),C(a)}function C(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function w(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(a,n){a.emit("error",n)}function m(a,n){var s=a._readableState,o=a._writableState;s&&s.autoDestroy||o&&o.autoDestroy?a.destroy(n):a.emit("error",n)}D.exports={destroy:S,undestroy:w,errorOrDestroy:m}},15932:function(D,O,t){var l=t(92784).i.ERR_STREAM_PREMATURE_CLOSE;function S(v){var m=!1;return function(){if(!m){m=!0;for(var a=arguments.length,n=new Array(a),s=0;s0;return a(c,A,M,function(R){E||(E=R),R&&g.forEach(n),!A&&(g.forEach(n),p(E))})});return u.reduce(s)}D.exports=h},24888:function(D,O,t){var l=t(92784).i.ERR_INVALID_OPT_VALUE;function S(C,w,v){return C.highWaterMark!=null?C.highWaterMark:w?C[v]:null}function i(C,w,v,m){var a=S(w,m,v);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=m?v:"highWaterMark";throw new l(n,a)}return Math.floor(a)}return C.objectMode?16:16384}D.exports={getHighWaterMark:i}},4776:function(D,O,t){D.exports=t(61252).EventEmitter},86032:function(D,O,t){var l=t(30456).Buffer,S=l.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(g){if(!g)return"utf8";for(var c;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(c)return;g=(""+g).toLowerCase(),c=!0}}function C(g){var c=i(g);if(typeof c!="string"&&(l.isEncoding===S||!S(g)))throw new Error("Unknown encoding: "+g);return c||g}O.o=w;function w(g){this.encoding=C(g);var c;switch(this.encoding){case"utf16le":this.text=h,this.end=f,c=4;break;case"utf8":this.fillLast=n,c=4;break;case"base64":this.text=u,this.end=b,c=3;break;default:this.write=p,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(c)}w.prototype.write=function(g){if(g.length===0)return"";var c,y;if(this.lastNeed){if(c=this.fillLast(g),c===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function m(g,c,y){var A=c.length-1;if(A=0?(M>0&&(g.lastNeed=M-1),M):--A=0?(M>0&&(g.lastNeed=M-2),M):--A=0?(M>0&&(M===2?M=0:g.lastNeed=M-3),M):0))}function a(g,c,y){if((c[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&c.length>1){if((c[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&c.length>2&&(c[2]&192)!==128)return g.lastNeed=2,"�"}}function n(g){var c=this.lastTotal-this.lastNeed,y=a(this,g);if(y!==void 0)return y;if(this.lastNeed<=g.length)return g.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,c,0,g.length),this.lastNeed-=g.length}function s(g,c){var y=m(this,g,c);if(!this.lastNeed)return g.toString("utf8",c);this.lastTotal=y;var A=g.length-(y-this.lastNeed);return g.copy(this.lastChar,0,A),g.toString("utf8",c,A)}function o(g){var c=g&&g.length?this.write(g):"";return this.lastNeed?c+"�":c}function h(g,c){if((g.length-c)%2===0){var y=g.toString("utf16le",c);if(y){var A=y.charCodeAt(y.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",c,g.length-1)}function f(g){var c=g&&g.length?this.write(g):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,y)}return c}function u(g,c){var y=(g.length-c)%3;return y===0?g.toString("base64",c):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",c,g.length-y))}function b(g){var c=g&&g.length?this.write(g):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function p(g){return g.toString(this.encoding)}function E(g){return g&&g.length?this.write(g):""}},55619:function(D,O,t){var l=t(45408),S=t(86844)("stream-parser");D.exports=m;var i=-1,C=0,w=1,v=2;function m(g){var c=g&&typeof g._transform=="function",y=g&&typeof g._write=="function";if(!c&&!y)throw new Error("must pass a Writable or Transform stream in");S("extending Parser into stream"),g._bytes=n,g._skipBytes=s,c&&(g._passthrough=o),c?g._transform=f:g._write=h}function a(g){S("initializing parser stream"),g._parserBytesLeft=0,g._parserBuffers=[],g._parserBuffered=0,g._parserState=i,g._parserCallback=null,typeof g.push=="function"&&(g._parserOutput=g.push.bind(g)),g._parserInit=!0}function n(g,c){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(g)&&g>0,'can only buffer a finite number of bytes > 0, got "'+g+'"'),this._parserInit||a(this),S("buffering %o bytes",g),this._parserBytesLeft=g,this._parserCallback=c,this._parserState=C}function s(g,c){l(!this._parserCallback,'there is already a "callback" set!'),l(g>0,'can only skip > 0 bytes, got "'+g+'"'),this._parserInit||a(this),S("skipping %o bytes",g),this._parserBytesLeft=g,this._parserCallback=c,this._parserState=w}function o(g,c){l(!this._parserCallback,'There is already a "callback" set!'),l(g>0,'can only pass through > 0 bytes, got "'+g+'"'),this._parserInit||a(this),S("passing through %o bytes",g),this._parserBytesLeft=g,this._parserCallback=c,this._parserState=v}function h(g,c,y){this._parserInit||a(this),S("write(%o bytes)",g.length),typeof c=="function"&&(y=c),p(this,g,null,y)}function f(g,c,y){this._parserInit||a(this),S("transform(%o bytes)",g.length),typeof c!="function"&&(c=this._parserOutput),p(this,g,c,y)}function u(g,c,y,A){return g._parserBytesLeft<=0?A(new Error("got data but not currently parsing anything")):c.length<=g._parserBytesLeft?function(){return b(g,c,y,A)}:function(){var M=c.slice(0,g._parserBytesLeft);return b(g,M,y,function(R){if(R)return A(R);if(c.length>M.length)return function(){return u(g,c.slice(M.length),y,A)}})}}function b(g,c,y,A){if(g._parserBytesLeft-=c.length,S("%o bytes left for stream piece",g._parserBytesLeft),g._parserState===C?(g._parserBuffers.push(c),g._parserBuffered+=c.length):g._parserState===v&&y(c),g._parserBytesLeft===0){var M=g._parserCallback;if(M&&g._parserState===C&&g._parserBuffers.length>1&&(c=Buffer.concat(g._parserBuffers,g._parserBuffered)),g._parserState!==C&&(c=null),g._parserCallback=null,g._parserBuffered=0,g._parserState=i,g._parserBuffers.splice(0),M){var R=[];c&&R.push(c),y&&R.push(y);var T=M.length>R.length;T&&R.push(E(A));var L=M.apply(g,R);if(!T||A===L)return A}}else return A}var p=E(u);function E(g){return function(){for(var c=g.apply(this,arguments);typeof c=="function";)c=c();return c}}},86844:function(D,O,t){var l=t(4168);O=D.exports=t(89416),O.log=C,O.formatArgs=i,O.save=w,O.load=v,O.useColors=S,O.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:m(),O.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function S(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}O.formatters.j=function(a){try{return JSON.stringify(a)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}};function i(a){var n=this.useColors;if(a[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+a[0]+(n?"%c ":" ")+"+"+O.humanize(this.diff),!!n){var s="color: "+this.color;a.splice(1,0,s,"color: inherit");var o=0,h=0;a[0].replace(/%[a-zA-Z%]/g,function(f){f!=="%%"&&(o++,f==="%c"&&(h=o))}),a.splice(h,0,s)}}function C(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function w(a){try{a==null?O.storage.removeItem("debug"):O.storage.debug=a}catch{}}function v(){var a;try{a=O.storage.debug}catch{}return!a&&typeof l<"u"&&"env"in l&&(a=l.env.DEBUG),a}O.enable(v());function m(){try{return window.localStorage}catch{}}},89416:function(D,O,t){O=D.exports=i.debug=i.default=i,O.coerce=m,O.disable=w,O.enable=C,O.enabled=v,O.humanize=t(93744),O.names=[],O.skips=[],O.formatters={};var l;function S(a){var n=0,s;for(s in a)n=(n<<5)-n+a.charCodeAt(s),n|=0;return O.colors[Math.abs(n)%O.colors.length]}function i(a){function n(){if(n.enabled){var s=n,o=+new Date,h=o-(l||o);s.diff=h,s.prev=l,s.curr=o,l=o;for(var f=new Array(arguments.length),u=0;u0)return C(a);if(s==="number"&&isNaN(a)===!1)return n.long?v(a):w(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function C(a){if(a=String(a),!(a.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(n){var s=parseFloat(n[1]),o=(n[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"days":case"day":case"d":return s*S;case"hours":case"hour":case"hrs":case"hr":case"h":return s*l;case"minutes":case"minute":case"mins":case"min":case"m":return s*t;case"seconds":case"second":case"secs":case"sec":case"s":return s*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function w(a){return a>=S?Math.round(a/S)+"d":a>=l?Math.round(a/l)+"h":a>=t?Math.round(a/t)+"m":a>=O?Math.round(a/O)+"s":a+"ms"}function v(a){return m(a,S,"day")||m(a,l,"hour")||m(a,t,"minute")||m(a,O,"second")||a+" ms"}function m(a,n,s){if(!(a",'""',"''","``","“”","«»"]:(typeof w.ignore=="string"&&(w.ignore=[w.ignore]),w.ignore=w.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var v=l.parse(i,{flat:!0,brackets:w.ignore}),m=v[0],a=m.split(C);if(w.escape){for(var n=[],s=0;s0;){p=g[g.length-1];var c=t[p];if(w[p]=0&&m[p].push(v[A])}w[p]=y}else{if(i[p]===S[p]){for(var M=[],R=[],T=0,y=E.length-1;y>=0;--y){var L=E[y];if(C[L]=!1,M.push(L),R.push(m[L]),T+=m[L].length,v[L]=s.length,L===p){E.length=y;break}}s.push(M);for(var P=new Array(T),y=0;y1&&(u=1),u<-1&&(u=-1),f*Math.acos(u)},v=function(n,s,o,h,f,u,b,p,E,g,c,y){var A=Math.pow(f,2),M=Math.pow(u,2),R=Math.pow(c,2),T=Math.pow(y,2),L=A*M-A*T-M*R;L<0&&(L=0),L/=A*T+M*R,L=Math.sqrt(L)*(b===p?-1:1);var P=L*f/u*y,d=L*-u/f*c,k=g*P-E*d+(n+o)/2,I=E*P+g*d+(s+h)/2,N=(c-P)/f,B=(y-d)/u,G=(-c-P)/f,U=(-y-d)/u,H=w(1,0,N,B),W=w(N,B,G,U);return p===0&&W>0&&(W-=S),p===1&&W<0&&(W+=S),[k,I,H,W]},m=function(n){var s=n.px,o=n.py,h=n.cx,f=n.cy,u=n.rx,b=n.ry,p=n.xAxisRotation,E=p===void 0?0:p,g=n.largeArcFlag,c=g===void 0?0:g,y=n.sweepFlag,A=y===void 0?0:y,M=[];if(u===0||b===0)return[];var R=Math.sin(E*S/360),T=Math.cos(E*S/360),L=T*(s-h)/2+R*(o-f)/2,P=-R*(s-h)/2+T*(o-f)/2;if(L===0&&P===0)return[];u=Math.abs(u),b=Math.abs(b);var d=Math.pow(L,2)/Math.pow(u,2)+Math.pow(P,2)/Math.pow(b,2);d>1&&(u*=Math.sqrt(d),b*=Math.sqrt(d));var k=v(s,o,h,f,u,b,c,A,R,T,L,P),I=l(k,4),N=I[0],B=I[1],G=I[2],U=I[3],H=Math.abs(U)/(S/4);Math.abs(1-H)<1e-7&&(H=1);var W=Math.max(Math.ceil(H),1);U/=W;for(var V=0;Va[2]&&(a[2]=o[h+0]),o[h+1]>a[3]&&(a[3]=o[h+1]);return a}},41976:function(D,O,t){D.exports=S;var l=t(92848);function S(w){for(var v,m=[],a=0,n=0,s=0,o=0,h=null,f=null,u=0,b=0,p=0,E=w.length;p4?(a=g[g.length-4],n=g[g.length-3]):(a=u,n=b),m.push(g)}return m}function i(w,v,m,a){return["C",w,v,m,a,m,a]}function C(w,v,m,a,n,s){return["C",w/3+.6666666666666666*m,v/3+.6666666666666666*a,n/3+.6666666666666666*m,s/3+.6666666666666666*a,n,s]}},20472:function(D,O,t){var l=t(74840),S=t(21984),i=t(22235),C=t(53520),w=t(29620),v=document.createElement("canvas"),m=v.getContext("2d");D.exports=a;function a(o,h){if(!C(o))throw Error("Argument should be valid svg path string");h||(h={});var f,u;h.shape?(f=h.shape[0],u=h.shape[1]):(f=v.width=h.w||h.width||200,u=v.height=h.h||h.height||200);var b=Math.min(f,u),p=h.stroke||0,E=h.viewbox||h.viewBox||l(o),g=[f/(E[2]-E[0]),u/(E[3]-E[1])],c=Math.min(g[0]||0,g[1]||0)/2;if(m.fillStyle="black",m.fillRect(0,0,f,u),m.fillStyle="white",p&&(typeof p!="number"&&(p=1),p>0?m.strokeStyle="white":m.strokeStyle="black",m.lineWidth=Math.abs(p)),m.translate(f*.5,u*.5),m.scale(c,c),s()){var y=new Path2D(o);m.fill(y),p&&m.stroke(y)}else{var A=S(o);i(m,A),m.fill(),p&&m.stroke()}m.setTransform(1,0,0,1,0,0);var M=w(m,{cutoff:h.cutoff!=null?h.cutoff:.5,radius:h.radius!=null?h.radius:b*.5});return M}var n;function s(){if(n!=null)return n;var o=document.createElement("canvas").getContext("2d");if(o.canvas.width=o.canvas.height=1,!window.Path2D)return n=!1;var h=new Path2D("M0,0h1v1h-1v-1Z");o.fillStyle="black",o.fill(h);var f=o.getImageData(0,0,1,1);return n=f&&f.data&&f.data[3]===255}},49760:function(D,O,t){var l;(function(S){var i=/^\s+/,C=/\s+$/,w=0,v=S.round,m=S.min,a=S.max,n=S.random;function s(ee,de){if(ee=ee||"",de=de||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,de);var le=o(ee);this._originalInput=ee,this._r=le.r,this._g=le.g,this._b=le.b,this._a=le.a,this._roundA=v(100*this._a)/100,this._format=de.format||le.format,this._gradientType=de.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=le.ok,this._tc_id=w++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),de,le,he,xe,Ee,Se;return de=ee.r/255,le=ee.g/255,he=ee.b/255,de<=.03928?xe=de/12.92:xe=S.pow((de+.055)/1.055,2.4),le<=.03928?Ee=le/12.92:Ee=S.pow((le+.055)/1.055,2.4),he<=.03928?Se=he/12.92:Se=S.pow((he+.055)/1.055,2.4),.2126*xe+.7152*Ee+.0722*Se},setAlpha:function(ee){return this._a=V(ee),this._roundA=v(100*this._a)/100,this},toHsv:function(){var ee=b(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=b(this._r,this._g,this._b),de=v(ee.h*360),le=v(ee.s*100),he=v(ee.v*100);return this._a==1?"hsv("+de+", "+le+"%, "+he+"%)":"hsva("+de+", "+le+"%, "+he+"%, "+this._roundA+")"},toHsl:function(){var ee=f(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=f(this._r,this._g,this._b),de=v(ee.h*360),le=v(ee.s*100),he=v(ee.l*100);return this._a==1?"hsl("+de+", "+le+"%, "+he+"%)":"hsla("+de+", "+le+"%, "+he+"%, "+this._roundA+")"},toHex:function(ee){return E(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return g(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v($(this._r,255)*100)+"%",g:v($(this._g,255)*100)+"%",b:v($(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v($(this._r,255)*100)+"%, "+v($(this._g,255)*100)+"%, "+v($(this._b,255)*100)+"%)":"rgba("+v($(this._r,255)*100)+"%, "+v($(this._g,255)*100)+"%, "+v($(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var de="#"+c(this._r,this._g,this._b,this._a),le=de,he=this._gradientType?"GradientType = 1, ":"";if(ee){var xe=s(ee);le="#"+c(xe._r,xe._g,xe._b,xe._a)}return"progid:DXImageTransform.Microsoft.gradient("+he+"startColorstr="+de+",endColorstr="+le+")"},toString:function(ee){var de=!!ee;ee=ee||this._format;var le=!1,he=this._a<1&&this._a>=0,xe=!de&&he&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return xe?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(le=this.toRgbString()),ee==="prgb"&&(le=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(le=this.toHexString()),ee==="hex3"&&(le=this.toHexString(!0)),ee==="hex4"&&(le=this.toHex8String(!0)),ee==="hex8"&&(le=this.toHex8String()),ee==="name"&&(le=this.toName()),ee==="hsl"&&(le=this.toHslString()),ee==="hsv"&&(le=this.toHsvString()),le||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,de){var le=ee.apply(null,[this].concat([].slice.call(de)));return this._r=le._r,this._g=le._g,this._b=le._b,this.setAlpha(le._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(L,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(A,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(ee,de){return ee.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(d,arguments)},monochromatic:function(){return this._applyCombination(G,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(ee,de){if(typeof ee=="object"){var le={};for(var he in ee)ee.hasOwnProperty(he)&&(he==="a"?le[he]=ee[he]:le[he]=Q(ee[he]));ee=le}return s(ee,de)};function o(ee){var de={r:0,g:0,b:0},le=1,he=null,xe=null,Ee=null,Se=!1,ke=!1;return typeof ee=="string"&&(ee=ce(ee)),typeof ee=="object"&&(ne(ee.r)&&ne(ee.g)&&ne(ee.b)?(de=h(ee.r,ee.g,ee.b),Se=!0,ke=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):ne(ee.h)&&ne(ee.s)&&ne(ee.v)?(he=Q(ee.s),xe=Q(ee.v),de=p(ee.h,he,xe),Se=!0,ke="hsv"):ne(ee.h)&&ne(ee.s)&&ne(ee.l)&&(he=Q(ee.s),Ee=Q(ee.l),de=u(ee.h,he,Ee),Se=!0,ke="hsl"),ee.hasOwnProperty("a")&&(le=ee.a)),le=V(le),{ok:Se,format:ee.format||ke,r:m(255,a(de.r,0)),g:m(255,a(de.g,0)),b:m(255,a(de.b,0)),a:le}}function h(ee,de,le){return{r:$(ee,255)*255,g:$(de,255)*255,b:$(le,255)*255}}function f(ee,de,le){ee=$(ee,255),de=$(de,255),le=$(le,255);var he=a(ee,de,le),xe=m(ee,de,le),Ee,Se,ke=(he+xe)/2;if(he==xe)Ee=Se=0;else{var Te=he-xe;switch(Se=ke>.5?Te/(2-he-xe):Te/(he+xe),he){case ee:Ee=(de-le)/Te+(de1&&(Ie-=1),Ie<.16666666666666666?Ae+(be-Ae)*6*Ie:Ie<.5?be:Ie<.6666666666666666?Ae+(be-Ae)*(.6666666666666666-Ie)*6:Ae}if(de===0)he=xe=Ee=le;else{var ke=le<.5?le*(1+de):le+de-le*de,Te=2*le-ke;he=Se(Te,ke,ee+.3333333333333333),xe=Se(Te,ke,ee),Ee=Se(Te,ke,ee-.3333333333333333)}return{r:he*255,g:xe*255,b:Ee*255}}function b(ee,de,le){ee=$(ee,255),de=$(de,255),le=$(le,255);var he=a(ee,de,le),xe=m(ee,de,le),Ee,Se,ke=he,Te=he-xe;if(Se=he===0?0:Te/he,he==xe)Ee=0;else{switch(he){case ee:Ee=(de-le)/Te+(de>1)+720)%360;--de;)he.h=(he.h+xe)%360,Ee.push(s(he));return Ee}function G(ee,de){de=de||6;for(var le=s(ee).toHsv(),he=le.h,xe=le.s,Ee=le.v,Se=[],ke=1/de;de--;)Se.push(s({h:he,s:xe,v:Ee})),Ee=(Ee+ke)%1;return Se}s.mix=function(ee,de,le){le=le===0?0:le||50;var he=s(ee).toRgb(),xe=s(de).toRgb(),Ee=le/100,Se={r:(xe.r-he.r)*Ee+he.r,g:(xe.g-he.g)*Ee+he.g,b:(xe.b-he.b)*Ee+he.b,a:(xe.a-he.a)*Ee+he.a};return s(Se)},s.readability=function(ee,de){var le=s(ee),he=s(de);return(S.max(le.getLuminance(),he.getLuminance())+.05)/(S.min(le.getLuminance(),he.getLuminance())+.05)},s.isReadable=function(ee,de,le){var he=s.readability(ee,de),xe,Ee;switch(Ee=!1,xe=re(le),xe.level+xe.size){case"AAsmall":case"AAAlarge":Ee=he>=4.5;break;case"AAlarge":Ee=he>=3;break;case"AAAsmall":Ee=he>=7;break}return Ee},s.mostReadable=function(ee,de,le){var he=null,xe=0,Ee,Se,ke,Te;le=le||{},Se=le.includeFallbackColors,ke=le.level,Te=le.size;for(var Ae=0;Aexe&&(xe=Ee,he=s(de[Ae]));return s.isReadable(ee,he,{level:ke,size:Te})||!Se?he:(le.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],le))};var U=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=s.hexNames=W(U);function W(ee){var de={};for(var le in ee)ee.hasOwnProperty(le)&&(de[ee[le]]=le);return de}function V(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function $(ee,de){ae(ee)&&(ee="100%");var le=ie(ee);return ee=m(de,a(0,parseFloat(ee))),le&&(ee=parseInt(ee*de,10)/100),S.abs(ee-de)<1e-6?1:ee%de/parseFloat(de)}function Z(ee){return m(1,a(0,ee))}function q(ee){return parseInt(ee,16)}function ae(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function ie(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function fe(ee){return ee.length==1?"0"+ee:""+ee}function Q(ee){return ee<=1&&(ee=ee*100+"%"),ee}function J(ee){return S.round(parseFloat(ee)*255).toString(16)}function oe(ee){return q(ee)/255}var K=function(){var ee="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",le="(?:"+de+")|(?:"+ee+")",he="[\\s|\\(]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")\\s*\\)?",xe="[\\s|\\(]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")\\s*\\)?";return{CSS_UNIT:new RegExp(le),rgb:new RegExp("rgb"+he),rgba:new RegExp("rgba"+xe),hsl:new RegExp("hsl"+he),hsla:new RegExp("hsla"+xe),hsv:new RegExp("hsv"+he),hsva:new RegExp("hsva"+xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ne(ee){return!!K.CSS_UNIT.exec(ee)}function ce(ee){ee=ee.replace(i,"").replace(C,"").toLowerCase();var de=!1;if(U[ee])ee=U[ee],de=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var le;return(le=K.rgb.exec(ee))?{r:le[1],g:le[2],b:le[3]}:(le=K.rgba.exec(ee))?{r:le[1],g:le[2],b:le[3],a:le[4]}:(le=K.hsl.exec(ee))?{h:le[1],s:le[2],l:le[3]}:(le=K.hsla.exec(ee))?{h:le[1],s:le[2],l:le[3],a:le[4]}:(le=K.hsv.exec(ee))?{h:le[1],s:le[2],v:le[3]}:(le=K.hsva.exec(ee))?{h:le[1],s:le[2],v:le[3],a:le[4]}:(le=K.hex8.exec(ee))?{r:q(le[1]),g:q(le[2]),b:q(le[3]),a:oe(le[4]),format:de?"name":"hex8"}:(le=K.hex6.exec(ee))?{r:q(le[1]),g:q(le[2]),b:q(le[3]),format:de?"name":"hex"}:(le=K.hex4.exec(ee))?{r:q(le[1]+""+le[1]),g:q(le[2]+""+le[2]),b:q(le[3]+""+le[3]),a:oe(le[4]+""+le[4]),format:de?"name":"hex8"}:(le=K.hex3.exec(ee))?{r:q(le[1]+""+le[1]),g:q(le[2]+""+le[2]),b:q(le[3]+""+le[3]),format:de?"name":"hex"}:!1}function re(ee){var de,le;return ee=ee||{level:"AA",size:"small"},de=(ee.level||"AA").toUpperCase(),le=(ee.size||"small").toLowerCase(),de!=="AA"&&de!=="AAA"&&(de="AA"),le!=="small"&&le!=="large"&&(le="small"),{level:de,size:le}}D.exports?D.exports=s:(l=(function(){return s}).call(O,t,O,D),l!==void 0&&(D.exports=l))})(Math)},37816:function(D){D.exports=l,D.exports.float32=D.exports.float=l,D.exports.fract32=D.exports.fract=t;var O=new Float32Array(1);function t(S,i){if(S.length){if(S instanceof Float32Array)return new Float32Array(S.length);i instanceof Float32Array||(i=l(S));for(var C=0,w=i.length;C":(C.length>100&&(C=C.slice(0,99)+"…"),C=C.replace(S,function(w){switch(w){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),C)}},7328:function(D,O,t){var l=t(81680),S={object:!0,function:!0,undefined:!0};D.exports=function(i){return l(i)?hasOwnProperty.call(S,typeof i):!1}},87396:function(D,O,t){var l=t(57980),S=t(85488);D.exports=function(i){return S(i)?i:l(i,"%v is not a plain function",arguments[1])}},85488:function(D,O,t){var l=t(73384),S=/^\s*class[\s{/}]/,i=Function.prototype.toString;D.exports=function(C){return!(!l(C)||S.test(i.call(C)))}},54612:function(D,O,t){var l=t(7328);D.exports=function(S){if(!l(S))return!1;try{return S.constructor?S.constructor.prototype===S:!1}catch{return!1}}},33940:function(D,O,t){var l=t(81680),S=t(7328),i=Object.prototype.toString;D.exports=function(C){if(!l(C))return null;if(S(C)){var w=C.toString;if(typeof w!="function"||w===i)return null}try{return""+C}catch{return null}}},18496:function(D,O,t){var l=t(57980),S=t(81680);D.exports=function(i){return S(i)?i:l(i,"Cannot use %v",arguments[1])}},81680:function(D){var O=void 0;D.exports=function(t){return t!==O&&t!==null}},14144:function(D,O,t){var l=t(308),S=t(10352),i=t(33576).Buffer;t.g.__TYPEDARRAY_POOL||(t.g.__TYPEDARRAY_POOL={UINT8:S([32,0]),UINT16:S([32,0]),UINT32:S([32,0]),BIGUINT64:S([32,0]),INT8:S([32,0]),INT16:S([32,0]),INT32:S([32,0]),BIGINT64:S([32,0]),FLOAT:S([32,0]),DOUBLE:S([32,0]),DATA:S([32,0]),UINT8C:S([32,0]),BUFFER:S([32,0])});var C=typeof Uint8ClampedArray<"u",w=typeof BigUint64Array<"u",v=typeof BigInt64Array<"u",m=t.g.__TYPEDARRAY_POOL;m.UINT8C||(m.UINT8C=S([32,0])),m.BIGUINT64||(m.BIGUINT64=S([32,0])),m.BIGINT64||(m.BIGINT64=S([32,0])),m.BUFFER||(m.BUFFER=S([32,0]));var a=m.DATA,n=m.BUFFER;O.free=function(d){if(i.isBuffer(d))n[l.log2(d.length)].push(d);else{if(Object.prototype.toString.call(d)!=="[object ArrayBuffer]"&&(d=d.buffer),!d)return;var k=d.length||d.byteLength,I=l.log2(k)|0;a[I].push(d)}};function s(P){if(P){var d=P.length||P.byteLength,k=l.log2(d);a[k].push(P)}}function o(P){s(P.buffer)}O.freeUint8=O.freeUint16=O.freeUint32=O.freeBigUint64=O.freeInt8=O.freeInt16=O.freeInt32=O.freeBigInt64=O.freeFloat32=O.freeFloat=O.freeFloat64=O.freeDouble=O.freeUint8Clamped=O.freeDataView=o,O.freeArrayBuffer=s,O.freeBuffer=function(d){n[l.log2(d.length)].push(d)},O.malloc=function(d,k){if(k===void 0||k==="arraybuffer")return h(d);switch(k){case"uint8":return f(d);case"uint16":return u(d);case"uint32":return b(d);case"int8":return p(d);case"int16":return E(d);case"int32":return g(d);case"float":case"float32":return c(d);case"double":case"float64":return y(d);case"uint8_clamped":return A(d);case"bigint64":return R(d);case"biguint64":return M(d);case"buffer":return L(d);case"data":case"dataview":return T(d);default:return null}return null};function h(d){var d=l.nextPow2(d),k=l.log2(d),I=a[k];return I.length>0?I.pop():new ArrayBuffer(d)}O.mallocArrayBuffer=h;function f(P){return new Uint8Array(h(P),0,P)}O.mallocUint8=f;function u(P){return new Uint16Array(h(2*P),0,P)}O.mallocUint16=u;function b(P){return new Uint32Array(h(4*P),0,P)}O.mallocUint32=b;function p(P){return new Int8Array(h(P),0,P)}O.mallocInt8=p;function E(P){return new Int16Array(h(2*P),0,P)}O.mallocInt16=E;function g(P){return new Int32Array(h(4*P),0,P)}O.mallocInt32=g;function c(P){return new Float32Array(h(4*P),0,P)}O.mallocFloat32=O.mallocFloat=c;function y(P){return new Float64Array(h(8*P),0,P)}O.mallocFloat64=O.mallocDouble=y;function A(P){return C?new Uint8ClampedArray(h(P),0,P):f(P)}O.mallocUint8Clamped=A;function M(P){return w?new BigUint64Array(h(8*P),0,P):null}O.mallocBigUint64=M;function R(P){return v?new BigInt64Array(h(8*P),0,P):null}O.mallocBigInt64=R;function T(P){return new DataView(h(P),0,P)}O.mallocDataView=T;function L(P){P=l.nextPow2(P);var d=l.log2(P),k=n[d];return k.length>0?k.pop():new i(P)}O.mallocBuffer=L,O.clearCache=function(){for(var d=0;d<32;++d)m.UINT8[d].length=0,m.UINT16[d].length=0,m.UINT32[d].length=0,m.INT8[d].length=0,m.INT16[d].length=0,m.INT32[d].length=0,m.FLOAT[d].length=0,m.DOUBLE[d].length=0,m.BIGUINT64[d].length=0,m.BIGINT64[d].length=0,m.UINT8C[d].length=0,a[d].length=0,n[d].length=0}},92384:function(D){var O=/[\'\"]/;D.exports=function(l){return l?(O.test(l.charAt(0))&&(l=l.substr(1)),O.test(l.charAt(l.length-1))&&(l=l.substr(0,l.length-1)),l):""}},45223:function(D){D.exports=function(t,l,S){Array.isArray(S)||(S=[].slice.call(arguments,2));for(var i=0,C=S.length;i"u"?!1:k.working?k(Ee):Ee instanceof Map}O.isMap=I;function N(Ee){return a(Ee)==="[object Set]"}N.working=typeof Set<"u"&&N(new Set);function B(Ee){return typeof Set>"u"?!1:N.working?N(Ee):Ee instanceof Set}O.isSet=B;function G(Ee){return a(Ee)==="[object WeakMap]"}G.working=typeof WeakMap<"u"&&G(new WeakMap);function U(Ee){return typeof WeakMap>"u"?!1:G.working?G(Ee):Ee instanceof WeakMap}O.isWeakMap=U;function H(Ee){return a(Ee)==="[object WeakSet]"}H.working=typeof WeakSet<"u"&&H(new WeakSet);function W(Ee){return H(Ee)}O.isWeakSet=W;function V(Ee){return a(Ee)==="[object ArrayBuffer]"}V.working=typeof ArrayBuffer<"u"&&V(new ArrayBuffer);function $(Ee){return typeof ArrayBuffer>"u"?!1:V.working?V(Ee):Ee instanceof ArrayBuffer}O.isArrayBuffer=$;function Z(Ee){return a(Ee)==="[object DataView]"}Z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Z(new DataView(new ArrayBuffer(1),0,1));function q(Ee){return typeof DataView>"u"?!1:Z.working?Z(Ee):Ee instanceof DataView}O.isDataView=q;var ae=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ie(Ee){return a(Ee)==="[object SharedArrayBuffer]"}function fe(Ee){return typeof ae>"u"?!1:(typeof ie.working>"u"&&(ie.working=ie(new ae)),ie.working?ie(Ee):Ee instanceof ae)}O.isSharedArrayBuffer=fe;function Q(Ee){return a(Ee)==="[object AsyncFunction]"}O.isAsyncFunction=Q;function J(Ee){return a(Ee)==="[object Map Iterator]"}O.isMapIterator=J;function oe(Ee){return a(Ee)==="[object Set Iterator]"}O.isSetIterator=oe;function K(Ee){return a(Ee)==="[object Generator]"}O.isGeneratorObject=K;function ne(Ee){return a(Ee)==="[object WebAssembly.Module]"}O.isWebAssemblyCompiledModule=ne;function ce(Ee){return u(Ee,n)}O.isNumberObject=ce;function re(Ee){return u(Ee,s)}O.isStringObject=re;function ee(Ee){return u(Ee,o)}O.isBooleanObject=ee;function de(Ee){return v&&u(Ee,h)}O.isBigIntObject=de;function le(Ee){return m&&u(Ee,f)}O.isSymbolObject=le;function he(Ee){return ce(Ee)||re(Ee)||ee(Ee)||de(Ee)||le(Ee)}O.isBoxedPrimitive=he;function xe(Ee){return typeof Uint8Array<"u"&&($(Ee)||fe(Ee))}O.isAnyArrayBuffer=xe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ee){Object.defineProperty(O,Ee,{enumerable:!1,value:function(){throw new Error(Ee+" is not supported in userland")}})})},35840:function(D,O,t){var l=t(4168),S=Object.getOwnPropertyDescriptors||function(ae){for(var ie=Object.keys(ae),fe={},Q=0;Q=Q)return K;switch(K){case"%s":return String(fe[ie++]);case"%d":return Number(fe[ie++]);case"%j":try{return JSON.stringify(fe[ie++])}catch{return"[Circular]"}default:return K}}),oe=fe[ie];ie"u")return function(){return O.deprecate(q,ae).apply(this,arguments)};var ie=!1;function fe(){if(!ie){if(l.throwDeprecation)throw new Error(ae);l.traceDeprecation?console.trace(ae):console.error(ae),ie=!0}return q.apply(this,arguments)}return fe};var C={},w=/^$/;if(l.env.NODE_DEBUG){var v=l.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),w=new RegExp("^"+v+"$","i")}O.debuglog=function(q){if(q=q.toUpperCase(),!C[q])if(w.test(q)){var ae=l.pid;C[q]=function(){var ie=O.format.apply(O,arguments);console.error("%s %d: %s",q,ae,ie)}}else C[q]=function(){};return C[q]};function m(q,ae){var ie={seen:[],stylize:n};return arguments.length>=3&&(ie.depth=arguments[2]),arguments.length>=4&&(ie.colors=arguments[3]),g(ae)?ie.showHidden=ae:ae&&O._extend(ie,ae),T(ie.showHidden)&&(ie.showHidden=!1),T(ie.depth)&&(ie.depth=2),T(ie.colors)&&(ie.colors=!1),T(ie.customInspect)&&(ie.customInspect=!0),ie.colors&&(ie.stylize=a),o(ie,q,ie.depth)}O.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(q,ae){var ie=m.styles[ae];return ie?"\x1B["+m.colors[ie][0]+"m"+q+"\x1B["+m.colors[ie][1]+"m":q}function n(q,ae){return q}function s(q){var ae={};return q.forEach(function(ie,fe){ae[ie]=!0}),ae}function o(q,ae,ie){if(q.customInspect&&ae&&I(ae.inspect)&&ae.inspect!==O.inspect&&!(ae.constructor&&ae.constructor.prototype===ae)){var fe=ae.inspect(ie,q);return M(fe)||(fe=o(q,fe,ie)),fe}var Q=h(q,ae);if(Q)return Q;var J=Object.keys(ae),oe=s(J);if(q.showHidden&&(J=Object.getOwnPropertyNames(ae)),k(ae)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return f(ae);if(J.length===0){if(I(ae)){var K=ae.name?": "+ae.name:"";return q.stylize("[Function"+K+"]","special")}if(L(ae))return q.stylize(RegExp.prototype.toString.call(ae),"regexp");if(d(ae))return q.stylize(Date.prototype.toString.call(ae),"date");if(k(ae))return f(ae)}var ne="",ce=!1,re=["{","}"];if(E(ae)&&(ce=!0,re=["[","]"]),I(ae)){var ee=ae.name?": "+ae.name:"";ne=" [Function"+ee+"]"}if(L(ae)&&(ne=" "+RegExp.prototype.toString.call(ae)),d(ae)&&(ne=" "+Date.prototype.toUTCString.call(ae)),k(ae)&&(ne=" "+f(ae)),J.length===0&&(!ce||ae.length==0))return re[0]+ne+re[1];if(ie<0)return L(ae)?q.stylize(RegExp.prototype.toString.call(ae),"regexp"):q.stylize("[Object]","special");q.seen.push(ae);var de;return ce?de=u(q,ae,ie,oe,J):de=J.map(function(le){return b(q,ae,ie,oe,le,ce)}),q.seen.pop(),p(de,ne,re)}function h(q,ae){if(T(ae))return q.stylize("undefined","undefined");if(M(ae)){var ie="'"+JSON.stringify(ae).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return q.stylize(ie,"string")}if(A(ae))return q.stylize(""+ae,"number");if(g(ae))return q.stylize(""+ae,"boolean");if(c(ae))return q.stylize("null","null")}function f(q){return"["+Error.prototype.toString.call(q)+"]"}function u(q,ae,ie,fe,Q){for(var J=[],oe=0,K=ae.length;oe-1&&(J?K=K.split(` `).map(function(ce){return" "+ce}).join(` `).slice(2):K=` @@ -3811,4 +3811,4 @@ void main() { `))):K=q.stylize("[Circular]","special")),T(oe)){if(J&&Q.match(/^\d+$/))return K;oe=JSON.stringify(""+Q),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.slice(1,-1),oe=q.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=q.stylize(oe,"string"))}return oe+": "+K}function p(q,ae,ie){var fe=q.reduce(function(Q,J){return J.indexOf(` `)>=0,Q+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return fe>60?ie[0]+(ae===""?"":ae+` `)+" "+q.join(`, - `)+" "+ie[1]:ie[0]+ae+" "+q.join(", ")+" "+ie[1]}O.types=t(41088);function E(q){return Array.isArray(q)}O.isArray=E;function g(q){return typeof q=="boolean"}O.isBoolean=g;function c(q){return q===null}O.isNull=c;function x(q){return q==null}O.isNullOrUndefined=x;function A(q){return typeof q=="number"}O.isNumber=A;function M(q){return typeof q=="string"}O.isString=M;function R(q){return typeof q=="symbol"}O.isSymbol=R;function T(q){return q===void 0}O.isUndefined=T;function L(q){return P(q)&&B(q)==="[object RegExp]"}O.isRegExp=L,O.types.isRegExp=L;function P(q){return typeof q=="object"&&q!==null}O.isObject=P;function d(q){return P(q)&&B(q)==="[object Date]"}O.isDate=d,O.types.isDate=d;function k(q){return P(q)&&(B(q)==="[object Error]"||q instanceof Error)}O.isError=k,O.types.isNativeError=k;function I(q){return typeof q=="function"}O.isFunction=I;function N(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}O.isPrimitive=N,O.isBuffer=t(75272);function B(q){return Object.prototype.toString.call(q)}function G(q){return q<10?"0"+q.toString(10):q.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var q=new Date,ae=[G(q.getHours()),G(q.getMinutes()),G(q.getSeconds())].join(":");return[q.getDate(),U[q.getMonth()],ae].join(" ")}O.log=function(){console.log("%s - %s",H(),O.format.apply(O,arguments))},O.inherits=t(6768),O._extend=function(q,ae){if(!ae||!P(ae))return q;for(var ie=Object.keys(ae),fe=ie.length;fe--;)q[ie[fe]]=ae[ie[fe]];return q};function W(q,ae){return Object.prototype.hasOwnProperty.call(q,ae)}var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;O.promisify=function(ae){if(typeof ae!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&ae[V]){var ie=ae[V];if(typeof ie!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ie,V,{value:ie,enumerable:!1,writable:!1,configurable:!0}),ie}function ie(){for(var fe,Q,J=new Promise(function(ne,ce){fe=ne,Q=ce}),oe=[],K=0;K"u"?t.g:globalThis,n=S(),s=C("String.prototype.slice"),o=Object.getPrototypeOf,h=C("Array.prototype.indexOf",!0)||function(E,g){for(var c=0;c-1?g:g!=="Object"?!1:b(E)}return w?u(E):null}},67020:function(D,O,t){var l=t(38700),S=t(50896),i=l.instance();function C(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}C.prototype=new l.baseCalendar,S(C.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(f,u){if(typeof f=="string"){var b=f.match(v);return b?b[0]:""}var p=this._validateYear(f),E=f.month(),g=""+this.toChineseMonth(p,E);return u&&g.length<2&&(g="0"+g),this.isIntercalaryMonth(p,E)&&(g+="i"),g},monthNames:function(f){if(typeof f=="string"){var u=f.match(m);return u?u[0]:""}var b=this._validateYear(f),p=f.month(),E=this.toChineseMonth(b,p),g=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][E-1];return this.isIntercalaryMonth(b,p)&&(g="闰"+g),g},monthNamesShort:function(f){if(typeof f=="string"){var u=f.match(a);return u?u[0]:""}var b=this._validateYear(f),p=f.month(),E=this.toChineseMonth(b,p),g=["一","二","三","四","五","六","七","八","九","十","十一","十二"][E-1];return this.isIntercalaryMonth(b,p)&&(g="闰"+g),g},parseMonth:function(f,u){f=this._validateYear(f);var b=parseInt(u),p;if(isNaN(b))u[0]==="闰"&&(p=!0,u=u.substring(1)),u[u.length-1]==="月"&&(u=u.substring(0,u.length-1)),b=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(u);else{var E=u[u.length-1];p=E==="i"||E==="I"}var g=this.toMonthIndex(f,b,p);return g},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(f,u){if(f.year&&(f=f.year()),typeof f!="number"||f<1888||f>2111)throw u.replace(/\{0\}/,this.local.name);return f},toMonthIndex:function(f,u,b){var p=this.intercalaryMonth(f),E=b&&u!==p;if(E||u<1||u>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);var g;return p?!b&&u<=p?g=u-1:g=u:g=u-1,g},toChineseMonth:function(f,u){f.year&&(f=f.year(),u=f.month());var b=this.intercalaryMonth(f),p=b?12:11;if(u<0||u>p)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);var E;return b?u>13;return b},isIntercalaryMonth:function(f,u){f.year&&(f=f.year(),u=f.month());var b=this.intercalaryMonth(f);return!!b&&b===u},leapYear:function(f){return this.intercalaryMonth(f)!==0},weekOfYear:function(f,u,b){var p=this._validateYear(f,l.local.invalidyear),E=s[p-s[0]],g=E>>9&4095,c=E>>5&15,x=E&31,A;A=i.newDate(g,c,x),A.add(4-(A.dayOfWeek()||7),"d");var M=this.toJD(f,u,b)-A.toJD();return 1+Math.floor(M/7)},monthsInYear:function(f){return this.leapYear(f)?13:12},daysInMonth:function(f,u){f.year&&(u=f.month(),f=f.year()),f=this._validateYear(f);var b=n[f-n[0]],p=b>>13,E=p?12:11;if(u>E)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);var g=b&1<<12-u?30:29;return g},weekDay:function(f,u,b){return(this.dayOfWeek(f,u,b)||7)<6},toJD:function(f,u,b){var p=this._validate(f,g,b,l.local.invalidDate);f=this._validateYear(p.year()),u=p.month(),b=p.day();var E=this.isIntercalaryMonth(f,u),g=this.toChineseMonth(f,u),c=h(f,g,b,E);return i.toJD(c.year,c.month,c.day)},fromJD:function(f){var u=i.fromJD(f),b=o(u.year(),u.month(),u.day()),p=this.toMonthIndex(b.year,b.month,b.isIntercalary);return this.newDate(b.year,p,b.day)},fromString:function(f){var u=f.match(w),b=this._validateYear(+u[1]),p=+u[2],E=!!u[3],g=this.toMonthIndex(b,p,E),c=+u[4];return this.newDate(b,g,c)},add:function(f,u,b){var p=f.year(),E=f.month(),g=this.isIntercalaryMonth(p,E),c=this.toChineseMonth(p,E),x=Object.getPrototypeOf(C.prototype).add.call(this,f,u,b);if(b==="y"){var A=x.year(),M=x.month(),R=this.isIntercalaryMonth(A,c),T=g&&R?this.toMonthIndex(A,c,!0):this.toMonthIndex(A,c,!1);T!==M&&x.month(T)}return x}});var w=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,v=/^\d?\d[iI]?/m,m=/^闰?十?[一二三四五六七八九]?月/m,a=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=C;var n=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],s=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function o(f,u,b,p){var E,g;if(typeof f=="object")E=f,g=u||{};else{var c=typeof f=="number"&&f>=1888&&f<=2111;if(!c)throw new Error("Solar year outside range 1888-2111");var x=typeof u=="number"&&u>=1&&u<=12;if(!x)throw new Error("Solar month outside range 1 - 12");var A=typeof b=="number"&&b>=1&&b<=31;if(!A)throw new Error("Solar day outside range 1 - 31");E={year:f,month:u,day:b},g=p||{}}var M=s[E.year-s[0]],R=E.year<<9|E.month<<5|E.day;g.year=R>=M?E.year:E.year-1,M=s[g.year-s[0]];var T=M>>9&4095,L=M>>5&15,P=M&31,d,k=new Date(T,L-1,P),I=new Date(E.year,E.month-1,E.day);d=Math.round((I-k)/864e5);var N=n[g.year-n[0]],B;for(B=0;B<13;B++){var G=N&1<<12-B?30:29;if(d>13;return!U||B=1888&&f<=2111;if(!x)throw new Error("Lunar year outside range 1888-2111");var A=typeof u=="number"&&u>=1&&u<=12;if(!A)throw new Error("Lunar month outside range 1 - 12");var M=typeof b=="number"&&b>=1&&b<=30;if(!M)throw new Error("Lunar day outside range 1 - 30");var R;typeof p=="object"?(R=!1,g=p):(R=!!p,g=E||{}),c={year:f,month:u,day:b,isIntercalary:R}}var T;T=c.day-1;var L=n[c.year-n[0]],P=L>>13,d;P&&(c.month>P||c.isIntercalary)?d=c.month:d=c.month-1;for(var k=0;k>9&4095,G=N>>5&15,U=N&31,H=new Date(B,G-1,U+T);return g.year=H.getFullYear(),g.month=1+H.getMonth(),g.day=H.getDate(),g}},89792:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var w=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),v=w.year()+(w.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(C){return this._validate(C,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return(this.dayOfWeek(C,w,v)||7)<6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),C<0&&C++,m.day()+(m.month()-1)*30+(C-1)*365+Math.floor(C/4)+this.jdEpoch-1},fromJD:function(C){var w=Math.floor(C)+.5-this.jdEpoch,v=Math.floor((w-Math.floor((w+366)/1461))/365)+1;v<=0&&v--,w=Math.floor(C)+.5-this.newDate(v,1,1).toJD();var m=Math.floor(w/30)+1,a=w-(m-1)*30+1;return this.newDate(v,m,a)}}),l.calendars.coptic=i},55668:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return(a.day()+1)%8},weekDay:function(w,v,m){var a=this.dayOfWeek(w,v,m);return a>=2&&a<=6},extraInfo:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return{century:C[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return w=a.year()+(a.year()<0?1:0),v=a.month(),m=a.day(),m+(v>1?16:0)+(v>2?(v-2)*32:0)+(w-1)*400+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var v=Math.floor(w/400)+1;w-=(v-1)*400,w+=w>15?16:0;var m=Math.floor(w/32)+1,a=w-(m-1)*32+1;return this.newDate(v<=0?v-1:v,m,a)}});var C={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=i},65168:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var w=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),v=w.year()+(w.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(C){return this._validate(C,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return(this.dayOfWeek(C,w,v)||7)<6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),C<0&&C++,m.day()+(m.month()-1)*30+(C-1)*365+Math.floor(C/4)+this.jdEpoch-1},fromJD:function(C){var w=Math.floor(C)+.5-this.jdEpoch,v=Math.floor((w-Math.floor((w+366)/1461))/365)+1;v<=0&&v--,w=Math.floor(C)+.5-this.newDate(v,1,1).toJD();var m=Math.floor(w/30)+1,a=w-(m-1)*30+1;return this.newDate(v,m,a)}}),l.calendars.ethiopian=i},2084:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(v.year())},_leapYear:function(w){return w=w<0?w+1:w,C(w*7+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return w=v.year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,v){return w.year&&(v=w.month(),w=w.year()),this._validate(w,v,this.minDay,l.local.invalidMonth),v===12&&this.leapYear(w)||v===8&&C(this.daysInYear(w),10)===5?30:v===9&&C(this.daysInYear(w),10)===3?29:this.daysPerMonth[v-1]},weekDay:function(w,v,m){return this.dayOfWeek(w,v,m)!==6},extraInfo:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);w=a.year(),v=a.month(),m=a.day();var n=w<=0?w+1:w,s=this.jdEpoch+this._delay1(n)+this._delay2(n)+m+1;if(v<7){for(var o=7;o<=this.monthsInYear(w);o++)s+=this.daysInMonth(w,o);for(var o=1;o=this.toJD(v===-1?1:v+1,7,1);)v++;for(var m=wthis.toJD(v,m,this.daysInMonth(v,m));)m++;var a=w-this.toJD(v,m,1)+1;return this.newDate(v,m,a)}});function C(w,v){return w-v*Math.floor(w/v)}l.calendars.hebrew=i},26368:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(C){var w=this._validate(C,this.minMonth,this.minDay,l.local.invalidYear);return(w.year()*11+14)%30<11},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(C){return this.leapYear(C)?355:354},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===12&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return this.dayOfWeek(C,w,v)!==5},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),w=m.month(),v=m.day(),C=C<=0?C+1:C,v+Math.ceil(29.5*(w-1))+(C-1)*354+Math.floor((3+11*C)/30)+this.jdEpoch-1},fromJD:function(C){C=Math.floor(C)+.5;var w=Math.floor((30*(C-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var v=Math.min(12,Math.ceil((C-29-this.toJD(w,1,1))/29.5)+1),m=C-this.toJD(w,v,1)+1;return this.newDate(w,v,m)}}),l.calendars.islamic=i},24747:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var w=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),v=w.year()<0?w.year()+1:w.year();return v%4===0},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return(this.dayOfWeek(C,w,v)||7)<6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),w=m.month(),v=m.day(),C<0&&C++,w<=2&&(C--,w+=12),Math.floor(365.25*(C+4716))+Math.floor(30.6001*(w+1))+v-1524.5},fromJD:function(C){var w=Math.floor(C+.5),v=w+1524,m=Math.floor((v-122.1)/365.25),a=Math.floor(365.25*m),n=Math.floor((v-a)/30.6001),s=n-Math.floor(n<14?1:13),o=m-Math.floor(s>2?4716:4715),h=v-a-Math.floor(30.6001*n);return o<=0&&o--,this.newDate(o,s,h)}}),l.calendars.julian=i},65616:function(D,O,t){var l=t(38700),S=t(50896);function i(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(v){return this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(v){var m=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear);v=m.year();var a=Math.floor(v/400);v=v%400,v+=v<0?400:0;var n=Math.floor(v/20);return a+"."+n+"."+v%20},forYear:function(v){if(v=v.split("."),v.length<3)throw"Invalid Mayan year";for(var m=0,a=0;a19||a>0&&n<0)throw"Invalid Mayan year";m=m*20+n}return m},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(v,m,a){return this._validate(v,m,a,l.local.invalidDate),0},daysInYear:function(v){return this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(v,m){return this._validate(v,m,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(v,m,a){var n=this._validate(v,m,a,l.local.invalidDate);return n.day()},weekDay:function(v,m,a){return this._validate(v,m,a,l.local.invalidDate),!0},extraInfo:function(v,m,a){var n=this._validate(v,m,a,l.local.invalidDate),s=n.toJD(),o=this._toHaab(s),h=this._toTzolkin(s);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(v){v-=this.jdEpoch;var m=C(v+8+17*20,365);return[Math.floor(m/20)+1,C(m,20)]},_toTzolkin:function(v){return v-=this.jdEpoch,[w(v+20,20),w(v+4,13)]},toJD:function(v,m,a){var n=this._validate(v,m,a,l.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(v){v=Math.floor(v)+.5-this.jdEpoch;var m=Math.floor(v/360);v=v%360,v+=v<0?360:0;var a=Math.floor(v/20),n=v%20;return this.newDate(m,a,n)}});function C(v,m){return v-m*Math.floor(v/m)}function w(v,m){return C(v-1,m)+1}l.calendars.mayan=i},30632:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar;var C=l.instance("gregorian");S(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return C.leapYear(v.year()+(v.year()<1?1:0)+1469)},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return(this.dayOfWeek(w,v,m)||7)<6},toJD:function(n,v,m){var a=this._validate(n,v,m,l.local.invalidMonth),n=a.year();n<0&&n++;for(var s=a.day(),o=1;o=this.toJD(v+1,1,1);)v++;for(var m=w-Math.floor(this.toJD(v,1,1)+.5)+1,a=1;m>this.daysInMonth(v,a);)m-=this.daysInMonth(v,a),a++;return this.newDate(v,a,m)}}),l.calendars.nanakshahi=i},73040:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(C){return this.daysInYear(C)!==this.daysPerYear},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(C){var w=this._validate(C,this.minMonth,this.minDay,l.local.invalidYear);if(C=w.year(),typeof this.NEPALI_CALENDAR_DATA[C]>"u")return this.daysPerYear;for(var v=0,m=this.minMonth;m<=12;m++)v+=this.NEPALI_CALENDAR_DATA[C][m];return v},daysInMonth:function(C,w){return C.year&&(w=C.month(),C=C.year()),this._validate(C,w,this.minDay,l.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[C]>"u"?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[C][w]},weekDay:function(C,w,v){return this.dayOfWeek(C,w,v)!==6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);C=m.year(),w=m.month(),v=m.day();var a=l.instance(),n=0,s=w,o=C;this._createMissingCalendarData(C);var h=C-(s>9||s===9&&v>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(w!==9&&(n=v,s--);s!==9;)s<=0&&(s=12,o--),n+=this.NEPALI_CALENDAR_DATA[o][s],s--;return w===9?(n+=v-this.NEPALI_CALENDAR_DATA[o][0],n<0&&(n+=a.daysInYear(h))):n+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],a.newDate(h,1,1).add(n,"d").toJD()},fromJD:function(C){var w=l.instance(),v=w.fromJD(C),m=v.year(),a=v.dayOfYear(),n=m+56;this._createMissingCalendarData(n);for(var s=9,o=this.NEPALI_CALENDAR_DATA[n][0],h=this.NEPALI_CALENDAR_DATA[n][s]-o+1;a>h;)s++,s>12&&(s=1,n++),h+=this.NEPALI_CALENDAR_DATA[n][s];var f=this.NEPALI_CALENDAR_DATA[n][s]-(h-a);return this.newDate(n,s,f)},_createMissingCalendarData:function(C){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var v=C-1;v"u"&&(this.NEPALI_CALENDAR_DATA[v]=w)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),l.calendars.nepali=i},1104:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return((v.year()-(v.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return this.dayOfWeek(w,v,m)!==5},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);w=a.year(),v=a.month(),m=a.day();var n=w-(w>=0?474:473),s=474+C(n,2820);return m+(v<=7?(v-1)*31:(v-1)*30+6)+Math.floor((s*682-110)/2816)+(s-1)*365+Math.floor(n/2820)*1029983+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w)+.5;var v=w-this.toJD(475,1,1),m=Math.floor(v/1029983),a=C(v,1029983),n=2820;if(a!==1029982){var s=Math.floor(a/366),o=C(a,366);n=Math.floor((2134*s+2816*o+2815)/1028522)+s+1}var h=n+2820*m+474;h=h<=0?h-1:h;var f=w-this.toJD(h,1,1)+1,u=f<=186?Math.ceil(f/31):Math.ceil((f-6)/30),b=w-this.toJD(h,u,1)+1;return this.newDate(h,u,b)}});function C(w,v){return w-v*Math.floor(w/v)}l.calendars.persian=i,l.calendars.jalali=i},51456:function(D,O,t){var l=t(38700),S=t(50896),i=l.instance();function C(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}C.prototype=new l.baseCalendar,S(C.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(m){var v=this._validate(m,this.minMonth,this.minDay,l.local.invalidYear),m=this._t2gYear(v.year());return i.leapYear(m)},weekOfYear:function(n,v,m){var a=this._validate(n,this.minMonth,this.minDay,l.local.invalidYear),n=this._t2gYear(a.year());return i.weekOfYear(n,a.month(),a.day())},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return(this.dayOfWeek(w,v,m)||7)<6},toJD:function(n,v,m){var a=this._validate(n,v,m,l.local.invalidDate),n=this._t2gYear(a.year());return i.toJD(n,a.month(),a.day())},fromJD:function(w){var v=i.fromJD(w),m=this._g2tYear(v.year());return this.newDate(m,v.month(),v.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),l.calendars.taiwan=C},4592:function(D,O,t){var l=t(38700),S=t(50896),i=l.instance();function C(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}C.prototype=new l.baseCalendar,S(C.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var v=this._validate(m,this.minMonth,this.minDay,l.local.invalidYear),m=this._t2gYear(v.year());return i.leapYear(m)},weekOfYear:function(n,v,m){var a=this._validate(n,this.minMonth,this.minDay,l.local.invalidYear),n=this._t2gYear(a.year());return i.weekOfYear(n,a.month(),a.day())},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return(this.dayOfWeek(w,v,m)||7)<6},toJD:function(n,v,m){var a=this._validate(n,v,m,l.local.invalidDate),n=this._t2gYear(a.year());return i.toJD(n,a.month(),a.day())},fromJD:function(w){var v=i.fromJD(w),m=this._g2tYear(v.year());return this.newDate(m,v.month(),v.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),l.calendars.thai=C},45348:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(v.year())===355},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var v=0,m=1;m<=12;m++)v+=this.daysInMonth(w,m);return v},daysInMonth:function(w,v){for(var m=this._validate(w,v,this.minDay,l.local.invalidMonth),a=m.toJD()-24e5+.5,n=0,s=0;sa)return C[n]-C[n-1];n++}return 30},weekDay:function(w,v,m){return this.dayOfWeek(w,v,m)!==5},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,s=a.day()+C[n-1]-1;return s+24e5-.5},fromJD:function(w){for(var v=w-24e5+.5,m=0,a=0;av);a++)m++;var n=m+15292,s=Math.floor((n-1)/12),o=s+1,h=n-12*s,f=v-C[m-1]+1;return this.newDate(o,h,f)},isValid:function(w,v,m){var a=l.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(w=w.year!=null?w.year:w,a=w>=1276&&w<=1500),a},_validate:function(w,v,m,a){var n=l.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}}),l.calendars.ummalqura=i;var C=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(D,O,t){var l=t(50896);function S(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}l(S.prototype,{instance:function(a,n){a=(a||"gregorian").toLowerCase(),n=n||"";var s=this._localCals[a+"-"+n];if(!s&&this.calendars[a]&&(s=new this.calendars[a](n),this._localCals[a+"-"+n]=s),!s)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return s},newDate:function(a,n,s,o,h){return o=(a!=null&&a.year?a.calendar():typeof o=="string"?this.instance(o,h):o)||this.instance(),o.newDate(a,n,s)},substituteDigits:function(a){return function(n){return(n+"").replace(/[0-9]/g,function(s){return a[s]})}},substituteChineseDigits:function(a,n){return function(s){for(var o="",h=0;s>0;){var f=s%10;o=(f===0?"":a[f]+n[h])+o,h++,s=Math.floor(s/10)}return o.indexOf(a[1]+n[1])===0&&(o=o.substr(1)),o||a[0]}}});function i(a,n,s,o){if(this._calendar=a,this._year=n,this._month=s,this._day=o,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function C(a,n){return a=""+a,"000000".substring(0,n-a.length)+a}l(i.prototype,{newDate:function(a,n,s){return this._calendar.newDate(a??this,n,s)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,n,s){if(!this._calendar.isValid(a,n,s))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=n,this._day=s,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,n){return this._calendar.add(this,a,n)},set:function(a,n){return this._calendar.set(this,a,n)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var n=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return n===0?0:n<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+C(Math.abs(this.year()),4)+"-"+C(this.month(),2)+"-"+C(this.day(),2)}});function w(){this.shortYearCutoff="+10"}l(w.prototype,{_validateLevel:0,newDate:function(a,n,s){return a==null?this.today():(a.year&&(this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate),s=a.day(),n=a.month(),a=a.year()),new i(this,a,n,s))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){var n=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return n.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var n=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(n.year()<0?"-":"")+C(Math.abs(n.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(a,n){var s=this._validate(a,n,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(s.month()+this.monthsInYear(s)-this.firstMonth)%this.monthsInYear(s)+this.minMonth},fromMonthOfYear:function(a,n){var s=(n+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,s,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),s},daysInYear:function(a){var n=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(n)?366:365},dayOfYear:function(a,n,s){var o=this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate);return o.toJD()-this.newDate(o.year(),this.fromMonthOfYear(o.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,n,s){var o=this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(o))+2)%this.daysInWeek()},extraInfo:function(a,n,s){return this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(a,n,s){return this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,n,s),n,s)},_add:function(a,n,s){if(this._validateLevel++,s==="d"||s==="w"){var o=a.toJD()+n*(s==="w"?this.daysInWeek():1),h=a.calendar().fromJD(o);return this._validateLevel--,[h.year(),h.month(),h.day()]}try{var f=a.year()+(s==="y"?n:0),u=a.monthOfYear()+(s==="m"?n:0),h=a.day(),b=function(g){for(;uc-1+g.minMonth;)f++,u-=c,c=g.monthsInYear(f)};s==="y"?(a.month()!==this.fromMonthOfYear(f,u)&&(u=this.newDate(f,a.month(),this.minDay).monthOfYear()),u=Math.min(u,this.monthsInYear(f)),h=Math.min(h,this.daysInMonth(f,this.fromMonthOfYear(f,u)))):s==="m"&&(b(this),h=Math.min(h,this.daysInMonth(f,this.fromMonthOfYear(f,u))));var p=[f,this.fromMonthOfYear(f,u),h];return this._validateLevel--,p}catch(E){throw this._validateLevel--,E}},_correctAdd:function(a,n,s,o){if(!this.hasYearZero&&(o==="y"||o==="m")&&(n[0]===0||a.year()>0!=n[0]>0)){var h={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[o],f=s<0?-1:1;n=this._add(a,s*h[0]+f*h[1],h[2])}return a.date(n[0],n[1],n[2])},set:function(a,n,s){this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var o=s==="y"?n:a.year(),h=s==="m"?n:a.month(),f=s==="d"?n:a.day();return(s==="y"||s==="m")&&(f=Math.min(f,this.daysInMonth(o,h))),a.date(o,h,f)},isValid:function(a,n,s){this._validateLevel++;var o=this.hasYearZero||a!==0;if(o){var h=this.newDate(a,n,this.minDay);o=n>=this.minMonth&&n-this.minMonth=this.minDay&&s-this.minDay13.5?13:1),E=h-(p>2.5?4716:4715);return E<=0&&E--,this.newDate(E,p,b)},toJSDate:function(a,n,s){var o=this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate),h=new Date(o.year(),o.month()-1,o.day());return h.setHours(0),h.setMinutes(0),h.setSeconds(0),h.setMilliseconds(0),h.setHours(h.getHours()>12?h.getHours()+2:0),h},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var m=D.exports=new S;m.cdate=i,m.baseCalendar=w,m.calendars.gregorian=v},15168:function(D,O,t){var l=t(50896),S=t(38700);l(S.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),S.local=S.regionalOptions[""],l(S.cdate.prototype,{formatDate:function(i,C){return typeof i!="string"&&(C=i,i=""),this._calendar.formatDate(i||"",this,C)}}),l(S.baseCalendar.prototype,{UNIX_EPOCH:S.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:S.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,C,w){if(typeof i!="string"&&(w=C,C=i,i=""),!C)return"";if(C.calendar()!==this)throw S.local.invalidFormat||S.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat,w=w||{};var v=w.dayNamesShort||this.local.dayNamesShort,m=w.dayNames||this.local.dayNames,a=w.monthNumbers||this.local.monthNumbers,n=w.monthNamesShort||this.local.monthNamesShort,s=w.monthNames||this.local.monthNames;w.calculateWeek||this.local.calculateWeek;for(var o=function(M,R){for(var T=1;A+T1},h=function(M,R,T,L){var P=""+R;if(o(M,L))for(;P.length1},A=function(B,G){var U=x(B,G),H=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],W=new RegExp("^-?\\d{1,"+H+"}"),V=C.substring(d).match(W);if(!V)throw(S.local.missingNumberAt||S.regionalOptions[""].missingNumberAt).replace(/\{0\}/,d);return d+=V[0].length,parseInt(V[0],10)},M=this,R=function(){if(typeof s=="function"){x("m");var B=s.call(M,C.substring(d));return d+=B.length,B}return A("m")},T=function(B,G,U,H){for(var W=x(B,H)?U:G,V=0;V-1){b=1,p=E;for(var N=this.daysInMonth(u,b);p>N;N=this.daysInMonth(u,b))b++,p-=N}return f>-1?this.fromJD(f):this.newDate(u,b,p)},determineDate:function(i,C,w,v,m){w&&typeof w!="object"&&(m=v,v=w,w=null),typeof v!="string"&&(m=v,v="");var a=this,n=function(s){try{return a.parseDate(v,s,m)}catch{}s=s.toLowerCase();for(var o=(s.match(/^c/)&&w?w.newDate():null)||a.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=h.exec(s);f;)o.add(parseInt(f[1],10),f[2]||"d"),f=h.exec(s);return o};return C=C?C.newDate():null,i=i==null?C:typeof i=="string"?n(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?C:a.today().add(i,"d"):a.newDate(i),i}})},21576:function(){},19768:function(){},63436:function(D,O,t){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],S=typeof globalThis>"u"?t.g:globalThis;D.exports=function(){for(var C=[],w=0;w>8&15|Ie>>4&240,Ie>>4&15|Ie&240,(Ie&15)<<4|Ie&15,1):Ue===8?R(Ie>>24&255,Ie>>16&255,Ie>>8&255,(Ie&255)/255):Ue===4?R(Ie>>12&15|Ie>>8&240,Ie>>8&15|Ie>>4&240,Ie>>4&15|Ie&240,((Ie&15)<<4|Ie&15)/255):null):(Ie=s.exec(be))?new P(Ie[1],Ie[2],Ie[3],1):(Ie=o.exec(be))?new P(Ie[1]*255/100,Ie[2]*255/100,Ie[3]*255/100,1):(Ie=h.exec(be))?R(Ie[1],Ie[2],Ie[3],Ie[4]):(Ie=f.exec(be))?R(Ie[1]*255/100,Ie[2]*255/100,Ie[3]*255/100,Ie[4]):(Ie=u.exec(be))?U(Ie[1],Ie[2]/100,Ie[3]/100,1):(Ie=b.exec(be))?U(Ie[1],Ie[2]/100,Ie[3]/100,Ie[4]):p.hasOwnProperty(be)?M(p[be]):be==="transparent"?new P(NaN,NaN,NaN,0):null}function M(be){return new P(be>>16&255,be>>8&255,be&255,1)}function R(be,Ie,Ue,Ne){return Ne<=0&&(be=Ie=Ue=NaN),new P(be,Ie,Ue,Ne)}function T(be){return be instanceof i||(be=A(be)),be?(be=be.rgb(),new P(be.r,be.g,be.b,be.opacity)):new P}function L(be,Ie,Ue,Ne){return arguments.length===1?T(be):new P(be,Ie,Ue,Ne??1)}function P(be,Ie,Ue,Ne){this.r=+be,this.g=+Ie,this.b=+Ue,this.opacity=+Ne}l(P,L,S(i,{brighter:function(Ie){return Ie=Ie==null?w:Math.pow(w,Ie),new P(this.r*Ie,this.g*Ie,this.b*Ie,this.opacity)},darker:function(Ie){return Ie=Ie==null?C:Math.pow(C,Ie),new P(this.r*Ie,this.g*Ie,this.b*Ie,this.opacity)},rgb:function(){return this},clamp:function(){return new P(B(this.r),B(this.g),B(this.b),N(this.opacity))},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:d,formatHex:d,formatHex8:k,formatRgb:I,toString:I}));function d(){return"#".concat(G(this.r)).concat(G(this.g)).concat(G(this.b))}function k(){return"#".concat(G(this.r)).concat(G(this.g)).concat(G(this.b)).concat(G((isNaN(this.opacity)?1:this.opacity)*255))}function I(){var be=N(this.opacity);return"".concat(be===1?"rgb(":"rgba(").concat(B(this.r),", ").concat(B(this.g),", ").concat(B(this.b)).concat(be===1?")":", ".concat(be,")"))}function N(be){return isNaN(be)?1:Math.max(0,Math.min(1,be))}function B(be){return Math.max(0,Math.min(255,Math.round(be)||0))}function G(be){return be=B(be),(be<16?"0":"")+be.toString(16)}function U(be,Ie,Ue,Ne){return Ne<=0?be=Ie=Ue=NaN:Ue<=0||Ue>=1?be=Ie=NaN:Ie<=0&&(be=NaN),new V(be,Ie,Ue,Ne)}function H(be){if(be instanceof V)return new V(be.h,be.s,be.l,be.opacity);if(be instanceof i||(be=A(be)),!be)return new V;if(be instanceof V)return be;be=be.rgb();var Ie=be.r/255,Ue=be.g/255,Ne=be.b/255,ze=Math.min(Ie,Ue,Ne),$e=Math.max(Ie,Ue,Ne),st=NaN,vt=$e-ze,at=($e+ze)/2;return vt?(Ie===$e?st=(Ue-Ne)/vt+(Ue0&&at<1?0:st,new V(st,vt,at,be.opacity)}function W(be,Ie,Ue,Ne){return arguments.length===1?H(be):new V(be,Ie,Ue,Ne??1)}function V(be,Ie,Ue,Ne){this.h=+be,this.s=+Ie,this.l=+Ue,this.opacity=+Ne}l(V,W,S(i,{brighter:function(Ie){return Ie=Ie==null?w:Math.pow(w,Ie),new V(this.h,this.s,this.l*Ie,this.opacity)},darker:function(Ie){return Ie=Ie==null?C:Math.pow(C,Ie),new V(this.h,this.s,this.l*Ie,this.opacity)},rgb:function(){var Ie=this.h%360+(this.h<0)*360,Ue=isNaN(Ie)||isNaN(this.s)?0:this.s,Ne=this.l,ze=Ne+(Ne<.5?Ne:1-Ne)*Ue,$e=2*Ne-ze;return new P(q(Ie>=240?Ie-240:Ie+120,$e,ze),q(Ie,$e,ze),q(Ie<120?Ie+240:Ie-120,$e,ze),this.opacity)},clamp:function(){return new V($(this.h),Z(this.s),Z(this.l),N(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 Ie=N(this.opacity);return"".concat(Ie===1?"hsl(":"hsla(").concat($(this.h),", ").concat(Z(this.s)*100,"%, ").concat(Z(this.l)*100,"%").concat(Ie===1?")":", ".concat(Ie,")"))}}));function $(be){return be=(be||0)%360,be<0?be+360:be}function Z(be){return Math.max(0,Math.min(1,be||0))}function q(be,Ie,Ue){return(be<60?Ie+(Ue-Ie)*be/60:be<180?Ue:be<240?Ie+(Ue-Ie)*(240-be)/60:Ie)*255}var ae=function(be){return function(){return be}};function ie(be,Ie){return function(Ue){return be+Ue*Ie}}function fe(be,Ie,Ue){return be=Math.pow(be,Ue),Ie=Math.pow(Ie,Ue)-be,Ue=1/Ue,function(Ne){return Math.pow(be+Ne*Ie,Ue)}}function Q(be){return(be=+be)==1?J:function(Ie,Ue){return Ue-Ie?fe(Ie,Ue,be):ae(isNaN(Ie)?Ue:Ie)}}function J(be,Ie){var Ue=Ie-be;return Ue?ie(be,Ue):ae(isNaN(be)?Ie:be)}var oe=function be(Ie){var Ue=Q(Ie);function Ne(ze,$e){var st=Ue((ze=L(ze)).r,($e=L($e)).r),vt=Ue(ze.g,$e.g),at=Ue(ze.b,$e.b),nt=J(ze.opacity,$e.opacity);return function(mt){return ze.r=st(mt),ze.g=vt(mt),ze.b=at(mt),ze.opacity=nt(mt),ze+""}}return Ne.gamma=be,Ne}(1);function K(be,Ie){var Ue=Ie?Ie.length:0,Ne=be?Math.min(Ue,be.length):0,ze=new Array(Ne),$e=new Array(Ue),st;for(st=0;stUe&&($e=Ie.slice(Ue,$e),vt[st]?vt[st]+=$e:vt[++st]=$e),(Ne=Ne[0])===(ze=ze[0])?vt[st]?vt[st]+=ze:vt[++st]=ze:(vt[++st]=null,at.push({i:st,x:ce(Ne,ze)})),Ue=le.lastIndex;return Ue{const e=uh(hz.data.detail.source),r=y=>y.map(F=>(F.label=F.created_time,F.value=F.content,F));return Ce.jsx(Zs,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",children:[Ce.jsx(Ii,{component:Ki,to:"../",children:Ce.jsx(fl,{children:Ce.jsx(Y5,{})})}),Ce.jsx(ea,{variant:"h6",component:"h1",children:e==null?void 0:e.experiment_name})]}),Ce.jsx(oa,{children:Ce.jsxs(ji,{container:!0,spacing:2,children:[Ce.jsx(ji,{item:!0,md:6,children:Ce.jsx(Ri,{children:e&&Ce.jsx(tc,{rows:e.events,getRowId:y=>y.id,columns:P2e,initialState:{sorting:{sortModel:[{field:"event_time",sort:"desc"}]}},disableColumnSelector:!0,disableRowSelectionOnClick:!0})})}),Ce.jsx(ji,{item:!0,md:6,children:Ce.jsxs(La,{children:[Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{children:"Notes"}),e&&Ce.jsx(jp,{rows:r(e.notes),labelWidth:200}),Ce.jsxs(oa,{sx:{position:"relative"},children:[Ce.jsx(Zo,{fullWidth:!0,multiline:!0,minRows:2}),Ce.jsx($i,{variant:"contained",endIcon:Ce.jsx(uz,{}),sx:{position:"absolute",bottom:"0.5rem",right:"0.5rem"},children:"Add"})]})]})}),Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsx(NM,{data:[{x:[1,2,3,4],y:[10,15,13,17],type:"scatter"},{x:[1,2,3,4],y:[16,5,11,9],type:"scatter"}],layout:{height:450},useResizeHandler:!0,style:{width:"100%"}})})]})})]})})]})})},E2e=(e,r)=>gs(e).isAfter(gs(r))?1:0,P2e=[{field:"event_type",headerName:"Event Type",width:200},{field:"event_time",headerName:"Event Time",sortComparator:E2e,width:200},{field:"confidence",headerName:"Confidence",type:"number",width:200}],L2e=Object.freeze(Object.defineProperty({__proto__:null,default:A2e},Symbol.toStringTag,{value:"Module"})),I2e=()=>{const e=uh(hz.data.items.source),r=pF();return Ce.jsx(Zs,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsx(La,{direction:"row",justifyContent:"space-between",alignItems:"center",children:Ce.jsx(ea,{variant:"h6",component:"h1",children:"Experiments test"})}),Ce.jsx(Ri,{children:Ce.jsx(tc,{rows:e||[],getRowId:y=>y.id,columns:k2e,initialState:{sorting:{sortModel:[{field:"start_time",sort:"desc"}]}},onRowClick:()=>r("detail"),disableColumnSelector:!0,disableRowSelectionOnClick:!0})})]})})},R2e=(e,r)=>gs(e).isAfter(gs(r))?1:0,k2e=[{field:"experiment_name",headerName:"Experiment Name",width:200},{field:"start_time",headerName:"Start Time",sortComparator:R2e,width:200},{field:"end_time",headerName:"End Time",width:200},{field:"status",headerName:"Status",width:200}],D2e=Object.freeze(Object.defineProperty({__proto__:null,default:I2e},Symbol.toStringTag,{value:"Module"})),O2e=()=>{const[e,r]=Oe.useState(0),y=()=>{r(e+1)};return Ce.jsx(lz,{children:Ce.jsxs(Zs,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:[Ce.jsx("h1",{children:"Playground"}),Ce.jsxs(La,{direction:"row",spacing:2,sx:{alignItems:"center"},children:[Ce.jsx($i,{variant:"contained",onClick:y,children:"Increment"}),Ce.jsx("p",{children:e})]})]})})},F2e=Object.freeze(Object.defineProperty({__proto__:null,default:O2e},Symbol.toStringTag,{value:"Module"}));var I6={},_2e=_l;Object.defineProperty(I6,"__esModule",{value:!0});var vz=I6.default=void 0,z2e=_2e(Su()),B2e=Ce;vz=I6.default=(0,z2e.default)((0,B2e.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const Zi={properties:{itemName:"scenario",itemNamePlural:"scenarios"},data:{items:{source:"default/run-computation/list.json",idField:"id"},inputs:{source:"default/run-computation/inputs.json",idField:"id"},lineChart:{source:"default/run-computation/results_line_chart.json"},barChart:{source:"default/run-computation/results_bar_chart.json"},results:{source:"default/run-computation/results_table.json",idField:"id"}},pages:{index:{title:"Scenario List",description:"Scenarios represent a set of analysis inputs / parameters / settings and the results of that analysis.",tableColumns:[{field:"name",headerName:"Scenario Name",width:200},{field:"analysisType",headerName:"Analysis Type",width:200},{field:"createdDate",headerName:"Date Created",width:200},{field:"status",headerName:"Status",width:200}]},dataInputs:{title:"Data Inputs",tableColumns:[{field:"name",headerName:"Unit Name",width:200},{field:"unitType",headerName:"Unit Type",width:200},{field:"constraints",headerName:"Constraints",width:200},{field:"lowerBound",headerName:"Lower Bound",width:200,type:"number"},{field:"upperBound",headerName:"Upper Bound",width:200,type:"number"}]},settings:{title:"Optimization Settings"},results:{title:"Results",tableColumns:[{field:"name",headerName:"Unit Name",width:200},{field:"unitType",headerName:"Unit Type",width:200},{field:"constraints",headerName:"Constraints",width:200},{field:"lowerBound",headerName:"Lower Bound",width:200,type:"number"},{field:"upperBound",headerName:"Upper Bound",width:200,type:"number"}]}}},N2e=()=>Ce.jsxs(La,{spacing:0,height:"100vh",children:[Ce.jsx(oa,{children:Ce.jsx(w9,{color:"default",position:"static",sx:{backgroundColor:"white",borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsx(L5,{variant:"dense",children:Ce.jsx(La,{direction:"row",alignItems:"center",sx:{flexGrow:1},children:Ce.jsxs(U9,{"aria-label":"breadcrumb",separator:Ce.jsx(vz,{fontSize:"small"}),children:[Ce.jsxs(Ii,{underline:"hover",color:"inherit",to:"..",component:Ki,children:[Zi.properties.itemName," List"]}),Ce.jsx(ea,{color:"text.primary",children:"Optimization Scenario 1"})]})})})})}),Ce.jsx(Kp,{})]}),U2e=Object.freeze(Object.defineProperty({__proto__:null,default:N2e},Symbol.toStringTag,{value:"Module"}));var mm=(e=>(e.SET_LIST_TABLE_DATA="SET_LIST_TABLE_DATA",e.SET_INPUTS_TABLE_DATA="SET_INPUTS_TABLE_DATA",e.SET_RESULTS_TABLE_DATA="SET_RESULTS_TABLE_DATA",e.SET_RESULTS_LINECHART_DATA="SET_RESULTS_LINECHART_DATA",e.SET_RESULTS_BARCHART_DATA="SET_RESULTS_BARCHART_DATA",e))(mm||{});const H2e=e=>({type:"SET_INPUTS_TABLE_DATA",payload:e}),V2e=e=>({type:"SET_RESULTS_TABLE_DATA",payload:e}),j2e=e=>({type:"SET_RESULTS_LINECHART_DATA",payload:e}),G2e=e=>({type:"SET_RESULTS_BARCHART_DATA",payload:e}),pz=Vo.createContext(void 0),W2e={list:{table:{columns:[],data:[],dataIdField:"id"}},inputs:{table:{columns:[],data:[],dataIdField:"id"}},results:{table:{columns:[],data:[],dataIdField:"id"},lineChart:{data:[]},barChart:{data:[]}}},$2e=(e,r)=>{var F,j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h;const y={...e};return(j=(F=r.list)==null?void 0:F.table)!=null&&j.columns&&(y.list.table.columns=r.list.table.columns),(D=(Y=r.list)==null?void 0:Y.table)!=null&&D.data&&(y.list.table.data=r.list.table.data),(t=(O=r.list)==null?void 0:O.table)!=null&&t.dataIdField&&(y.list.table.dataIdField=r.list.table.dataIdField),(S=(l=r.inputs)==null?void 0:l.table)!=null&&S.columns&&(y.inputs.table.columns=r.inputs.table.columns),(C=(i=r.inputs)==null?void 0:i.table)!=null&&C.data&&(y.inputs.table.data=r.inputs.table.data),(v=(w=r.inputs)==null?void 0:w.table)!=null&&v.dataIdField&&(y.inputs.table.dataIdField=r.inputs.table.dataIdField),(a=(m=r.results)==null?void 0:m.table)!=null&&a.columns&&(y.results.table.columns=r.results.table.columns),(s=(n=r.results)==null?void 0:n.table)!=null&&s.data&&(y.results.table.data=r.results.table.data),(h=(o=r.results)==null?void 0:o.table)!=null&&h.dataIdField&&(y.results.table.dataIdField=r.results.table.dataIdField),y};function Y2e(e,r){switch(r.type){case mm.SET_LIST_TABLE_DATA:return{...e,list:{table:{...e.list.table,data:r.payload}}};case mm.SET_INPUTS_TABLE_DATA:return{...e,inputs:{table:{...e.inputs.table,data:r.payload}}};case mm.SET_RESULTS_TABLE_DATA:return{...e,results:{...e.results,table:{...e.results.table,data:r.payload}}};case mm.SET_RESULTS_LINECHART_DATA:return{...e,results:{...e.results,lineChart:{...e.results.lineChart,data:r.payload}}};case mm.SET_RESULTS_BARCHART_DATA:return{...e,results:{...e.results,barChart:{...e.results.barChart,data:r.payload}}};default:throw new Error(`Unhandled action type: ${r.type}`)}}const X2e=e=>{const[r,y]=Oe.useReducer(Y2e,$2e(W2e,e)),F={state:r,dispatch:y};return Ce.jsx(pz.Provider,{value:F,children:e.children})},R6=()=>{const e=Oe.useContext(pz);if(e===void 0)throw new Error("useRunComputation must be used within an RunComputationProvider");return e},Z2e=()=>{const{state:e,dispatch:r}=R6(),y=uh(Zi.data.inputs.source);return Oe.useEffect(()=>{(!e.inputs.table.data||e.inputs.table.data.length===0)&&r(H2e(y))},[y]),Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(NT,{activeStep:0,sx:{maxWidth:850},children:[Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},"Data Inputs"),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},"Optimization Settings"),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},"Results")]})}),Ce.jsxs(La,{direction:"row",spacing:0,flex:1,children:[Ce.jsxs(La,{component:"ul",direction:"column",spacing:0,sx:{backgroundColor:"white",listStyle:"none",margin:0,padding:4,width:300},children:[Ce.jsx(ea,{component:"li",fontWeight:"bold",sx:{marginBottom:2},children:"Categories"}),Ce.jsx(ea,{component:"li",sx:{backgroundColor:"#D9EEFE",borderRight:"4px solid",borderColor:"primary.main",padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Input Units"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Input Streams"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Unit Costing"})]}),Ce.jsx(oa,{flex:1,sx:{overflow:"hidden"},children:Ce.jsx(Zs,{maxWidth:"xl",sx:{mt:4},children:Ce.jsx(Ri,{children:Ce.jsx(tc,{rows:e.inputs.table.data||[],getRowId:F=>F[e.inputs.table.dataIdField],columns:e.inputs.table.columns,disableColumnSelector:!0,disableRowSelectionOnClick:!0})})})})]}),Ce.jsx(oa,{sx:{backgroundColor:"white",borderTop:"1px solid",borderColor:"neutral.main",bottom:0,padding:2,position:"fixed",textAlign:"right",width:"100%"},children:Ce.jsx(Ii,{component:Ki,to:"../settings",children:Ce.jsxs($i,{variant:"contained",children:["Continue to ",Zi.pages.settings.title]})})})]})},K2e=Object.freeze(Object.defineProperty({__proto__:null,default:Z2e},Symbol.toStringTag,{value:"Module"})),J2e=()=>{const{state:e,dispatch:r}=R6(),y=uh(Zi.data.results.source),F=uh(Zi.data.lineChart.source),j=uh(Zi.data.barChart.source);return Oe.useEffect(()=>{(!e.results.table.data||e.results.table.data.length===0)&&r(V2e(y))},[y]),Oe.useEffect(()=>{(!e.results.lineChart.data||e.results.lineChart.data.length===0)&&r(j2e(F))},[F]),Oe.useEffect(()=>{(!e.results.barChart.data||e.results.barChart.data.length===0)&&r(G2e(j))},[j]),Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(NT,{activeStep:2,sx:{maxWidth:850},children:[Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},"Data Inputs"),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},"Optimization Settings"),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},"Results")]})}),Ce.jsxs(La,{direction:"row",spacing:0,flex:1,children:[Ce.jsxs(La,{component:"ul",direction:"column",spacing:0,sx:{backgroundColor:"white",listStyle:"none",margin:0,padding:4,width:300},children:[Ce.jsx(ea,{component:"li",fontWeight:"bold",sx:{marginBottom:2},children:"Categories"}),Ce.jsx(ea,{component:"li",sx:{backgroundColor:"#D9EEFE",borderRight:"4px solid",borderColor:"primary.main",padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Summary"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"System Costing"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"System Metrics"})]}),Ce.jsx(oa,{flex:1,children:Ce.jsx(Zs,{maxWidth:"xl",sx:{mt:4},children:Ce.jsxs(ji,{container:!0,spacing:4,children:[Ce.jsx(ji,{item:!0,sm:6,children:Ce.jsx(Ri,{children:Ce.jsx(NM,{data:e.results.lineChart.data,layout:{}})})}),Ce.jsx(ji,{item:!0,sm:6,children:Ce.jsx(Ri,{children:Ce.jsx(NM,{data:e.results.barChart.data,layout:{}})})}),Ce.jsx(ji,{item:!0,xs:12,children:Ce.jsx(Ri,{children:Ce.jsx(tc,{rows:e.results.table.data||[],getRowId:Y=>Y[e.results.table.dataIdField],columns:e.results.table.columns,disableColumnSelector:!0,disableRowSelectionOnClick:!0})})})]})})})]}),Ce.jsx(oa,{sx:{backgroundColor:"white",borderTop:"1px solid",borderColor:"neutral.main",bottom:0,padding:2,position:"fixed",width:"100%"},children:Ce.jsx(Ii,{component:Ki,to:"../settings",children:Ce.jsxs($i,{variant:"contained",children:["Back to ",Zi.pages.settings.title]})})})]})},Q2e=Object.freeze(Object.defineProperty({__proto__:null,default:J2e},Symbol.toStringTag,{value:"Module"})),q2e=()=>{const[e,r]=Oe.useState(!0);return Oe.useEffect(()=>{setTimeout(()=>{r(!1)},2e3)}),Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(NT,{activeStep:1,sx:{maxWidth:850},children:[Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},Zi.pages.dataInputs.title),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},Zi.pages.settings.title),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},Zi.pages.results.title)]})}),Ce.jsx(Zs,{maxWidth:"md",sx:{mt:4},children:Ce.jsxs(Ri,{sx:{padding:6,textAlign:"center"},children:[e&&Ce.jsxs(La,{spacing:6,children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:"Running Optimization"}),Ce.jsxs(oa,{color:"neutral.dark",children:[Ce.jsx(ea,{children:"This could take several minutes."}),Ce.jsx(ea,{children:"You may leave this page and return later. Your progress will not be affected."})]}),Ce.jsx(Fb,{variant:"indeterminate",sx:{height:10}}),Ce.jsx(ea,{color:"neutral.dark",children:"Started 05/24/2023 12:32:33"})]}),!e&&Ce.jsxs(La,{spacing:6,children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:"Complete"}),Ce.jsx(oa,{color:"neutral.dark",children:Ce.jsx(ea,{children:"Your results are ready to view."})}),Ce.jsx(Ii,{component:Ki,to:"../results",children:Ce.jsx($i,{variant:"contained",size:"large",children:"Continue to Results"})}),Ce.jsx(ea,{color:"neutral.dark",children:"Started 05/24/2023 9:32:33 AM, Ended 05/24/2023 11:47:03 AM"})]})]})})]})},eTe=Object.freeze(Object.defineProperty({__proto__:null,default:q2e},Symbol.toStringTag,{value:"Module"})),tTe=()=>{const[e,r]=Oe.useState(!1),y=()=>{r(!e)};return Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(NT,{activeStep:1,sx:{maxWidth:850},children:[Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},Zi.pages.dataInputs.title),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},Zi.pages.settings.title),Ce.jsx(wf,{children:Ce.jsx(Tf,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},Zi.pages.results.title)]})}),Ce.jsx(Zs,{maxWidth:"md",sx:{mt:4},children:Ce.jsx(Ri,{sx:{padding:3},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:Zi.pages.settings.title}),Ce.jsxs(ji,{container:!0,rowSpacing:2,alignItems:"center",children:[Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Solver"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(nh,{fullWidth:!0,children:Ce.jsxs(ah,{id:"solver-select",children:[Ce.jsx(uo,{value:10,children:"Solver 1"}),Ce.jsx(uo,{value:20,children:"Solver 2"}),Ce.jsx(uo,{value:30,children:"Solver 3"})]})})}),Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Objective"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(nh,{fullWidth:!0,children:Ce.jsxs(ah,{id:"objective-select",children:[Ce.jsx(uo,{value:10,children:"Objective 1"}),Ce.jsx(uo,{value:20,children:"Objective 2"}),Ce.jsx(uo,{value:30,children:"Objective 3"})]})})}),Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Time Constraints"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(Zo,{id:"time-constraints-field",variant:"outlined",fullWidth:!0})})]}),Ce.jsx(oa,{children:Ce.jsxs($i,{onClick:y,children:[e?"Hide":"Show"," advanced settings"]})}),e&&Ce.jsxs(ji,{container:!0,rowSpacing:2,alignItems:"center",children:[Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Another Setting"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(nh,{fullWidth:!0,children:Ce.jsxs(ah,{id:"another-select",children:[Ce.jsx(uo,{value:10,children:"Another Setting 1"}),Ce.jsx(uo,{value:20,children:"Another Setting 2"}),Ce.jsx(uo,{value:30,children:"Another Setting 3"})]})})}),Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Another Setting"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(nh,{fullWidth:!0,children:Ce.jsxs(ah,{id:"another-2-select",children:[Ce.jsx(uo,{value:10,children:"Another Setting 1"}),Ce.jsx(uo,{value:20,children:"Another Setting 2"}),Ce.jsx(uo,{value:30,children:"Another Setting 3"})]})})})]}),Ce.jsx(oa,{textAlign:"right",children:Ce.jsx(Ii,{component:Ki,to:"../running",children:Ce.jsxs($i,{variant:"contained",sx:{marginTop:4},children:["Run ",Zi.properties.itemName]})})})]})})})]})},rTe=Object.freeze(Object.defineProperty({__proto__:null,default:tTe},Symbol.toStringTag,{value:"Module"}));var k6={},nTe=_l;Object.defineProperty(k6,"__esModule",{value:!0});var gz=k6.default=void 0,aTe=nTe(Su()),iTe=Ce;gz=k6.default=(0,aTe.default)((0,iTe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");const oTe=()=>{const e=uh(Zi.data.items.source);return Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(X2e,{list:{table:{data:e,dataIdField:Zi.data.items.idField,columns:[...Zi.pages.index.tableColumns,{field:"actions",headerName:"Actions",type:"actions",getActions:r=>[Ce.jsx(ev,{icon:Ce.jsx(gz,{}),label:"Duplicate"}),Ce.jsx(ev,{icon:Ce.jsx(sS,{}),label:"Edit"}),Ce.jsx(ev,{icon:Ce.jsx(oS,{}),label:"Delete"})],flex:1}]}},inputs:{table:{data:[],dataIdField:Zi.data.inputs.idField,columns:Zi.pages.dataInputs.tableColumns}},results:{table:{data:[],dataIdField:Zi.data.results.idField,columns:Zi.pages.results.tableColumns}},children:Ce.jsx(Kp,{})})})]})},sTe=Object.freeze(Object.defineProperty({__proto__:null,default:oTe},Symbol.toStringTag,{value:"Module"})),lTe=({modalOpen:e,setModalOpen:r})=>{const y=()=>{r(!1)};return Ce.jsx(zT,{open:e,onClose:y,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:Ce.jsxs(La,{direction:"column",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:550,bgcolor:"background.paper",border:"1px solid #ccc",boxShadow:24,p:4},children:[Ce.jsxs(ea,{id:"modal-modal-title",variant:"h6",component:"h2",children:["New Analysis ",Zi.properties.itemName]}),Ce.jsxs(nh,{fullWidth:!0,children:[Ce.jsx(Ey,{id:"analysis-type-select-label",children:"Analysis Type"}),Ce.jsxs(ah,{labelId:"analysis-type-select-label",id:"analysis-type-select",label:"Age",children:[Ce.jsx(uo,{value:10,children:"Analysis Type 1"}),Ce.jsx(uo,{value:20,children:"Analysis Type 2"}),Ce.jsx(uo,{value:30,children:"Analysis Type 3"})]})]}),Ce.jsxs(nh,{fullWidth:!0,children:[Ce.jsx(Ey,{id:"model-select-label",children:"Model"}),Ce.jsxs(ah,{labelId:"model-select-label",id:"model-select",label:"Model",children:[Ce.jsx(uo,{value:10,children:"Model 1"}),Ce.jsx(uo,{value:20,children:"Model 2"}),Ce.jsx(uo,{value:30,children:"Model 3"})]})]}),Ce.jsx(Zo,{id:"name-field",label:"Scenario Name",variant:"outlined"}),Ce.jsx(Zo,{id:"description-field",label:"Description",multiline:!0,rows:4}),Ce.jsx(oa,{textAlign:"right",children:Ce.jsx(Ii,{component:Ki,to:"scenario/data-inputs",children:Ce.jsx($i,{variant:"contained",children:"Create"})})})]})})},HR=()=>{const{state:e}=R6(),[r,y]=Oe.useState(!1),F=()=>{y(!0)};return Ce.jsx(oa,{children:Ce.jsx(Zs,{maxWidth:"xl",sx:{mt:4},children:Ce.jsxs(Ri,{children:[Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",sx:{padding:2},children:[Ce.jsxs(oa,{flex:1,children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Zi.pages.index.title}),Ce.jsx(ea,{variant:"subtitle1",component:"p",children:Zi.pages.index.description})]}),Ce.jsxs($i,{variant:"contained",onClick:F,children:["New ",Zi.properties.itemName]}),Ce.jsx(lTe,{modalOpen:r,setModalOpen:y})]}),Ce.jsx(tc,{rows:e.list.table.data,getRowId:j=>j[e.list.table.dataIdField],columns:e.list.table.columns,disableColumnSelector:!0,disableRowSelectionOnClick:!0})]})})})},uTe=Object.freeze(Object.defineProperty({__proto__:null,ListPage:HR,default:HR},Symbol.toStringTag,{value:"Module"}));var D6={},cTe=_l;Object.defineProperty(D6,"__esModule",{value:!0});var mz=D6.default=void 0,fTe=cTe(Su()),dTe=Ce;mz=D6.default=(0,fTe.default)((0,dTe.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");var O6={},hTe=_l;Object.defineProperty(O6,"__esModule",{value:!0});var yz=O6.default=void 0,vTe=hTe(Su()),pTe=Ce;yz=O6.default=(0,vTe.default)((0,pTe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const xz=Oe.createContext(null);function gTe(){const[e,r]=Oe.useState(null);return Oe.useEffect(()=>{r(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function mTe(e){const{children:r,value:y}=e,F=gTe(),j=Oe.useMemo(()=>({idPrefix:F,value:y}),[F,y]);return Ce.jsx(xz.Provider,{value:j,children:r})}function bz(){return Oe.useContext(xz)}function wz(e,r){const{idPrefix:y}=e;return y===null?null:`${e.idPrefix}-P-${r}`}function Tz(e,r){const{idPrefix:y}=e;return y===null?null:`${e.idPrefix}-T-${r}`}const yTe=["children"],xTe=Oe.forwardRef(function(r,y){const{children:F}=r,j=hn(r,yTe),Y=bz();if(Y===null)throw new TypeError("No TabContext provided");const D=Oe.Children.map(F,O=>Oe.isValidElement(O)?Oe.cloneElement(O,{"aria-controls":wz(Y,O.props.value),id:Tz(Y,O.props.value)}):null);return Ce.jsx(Goe,Ge({},j,{ref:y,value:Y.value,children:D}))}),bTe=xTe;function wTe(e){return ka("MuiTabPanel",e)}Ma("MuiTabPanel",["root"]);const TTe=["children","className","value"],STe=e=>{const{classes:r}=e;return qn({root:["root"]},wTe,r)},CTe=ln("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({padding:e.spacing(3)})),MTe=Oe.forwardRef(function(r,y){const F=_o({props:r,name:"MuiTabPanel"}),{children:j,className:Y,value:D}=F,O=hn(F,TTe),t=Ge({},F),l=STe(t),S=bz();if(S===null)throw new TypeError("No TabContext provided");const i=wz(S,D),C=Tz(S,D);return Ce.jsx(CTe,Ge({"aria-labelledby":C,className:Ln(l.root,Y),hidden:D!==S.value,id:i,ref:y,role:"tabpanel",ownerState:t},O,{children:D===S.value&&j}))}),YC=MTe;var ym=(e=>(e.SET_DATA="SET_DATA",e.SET_SEARCH="SET_SEARCH",e.SET_FILTERED_DATA="SET_FILTERED_DATA",e.SET_FILTER="SET_FILTER",e.SET_PREVIEW_ITEM="SET_PREVIEW_ITEM",e))(ym||{});const ATe=e=>({type:"SET_DATA",payload:e}),ETe=e=>({type:"SET_SEARCH",payload:e}),PTe=e=>({type:"SET_FILTERED_DATA",payload:e}),Sz=e=>({type:"SET_PREVIEW_ITEM",payload:e}),Cz=Vo.createContext(void 0),LTe={data:[],cardFields:{title:"",content:"",tags:""},columns:[],filters:[],filterValues:{},activeFilters:[],dataIdField:"id",tablePage:0,tablePageSize:25},ITe=(e,r)=>{const{children:y,...F}=r;return{...e,...F}};function RTe(e,r){switch(r.type){case ym.SET_DATA:return{...e,data:r.payload};case ym.SET_SEARCH:return{...e,searchTerm:r.payload};case ym.SET_FILTERED_DATA:return{...e,filteredData:r.payload};case ym.SET_FILTER:{const y=r.payload,F=e.activeFilters.findIndex(Y=>Y.field===y.field),j=[...e.activeFilters];return F>-1?y.value?j[F]=y:j.splice(F,1):y.value&&j.push(y),{...e,activeFilters:j}}case ym.SET_PREVIEW_ITEM:return{...e,previewItem:r.payload};default:throw new Error(`Unhandled action type: ${r.type}`)}}const kTe=e=>{const[r,y]=Oe.useReducer(RTe,ITe(LTe,e)),F={state:r,dispatch:y};return Oe.useEffect(()=>{y(ATe(e.data))},[e.data]),Oe.useEffect(()=>{if(r.data){const j=iz(r.data,r.activeFilters,r.filters,r.searchTerm);y(PTe(j))}},[r.data,r.searchTerm,JSON.stringify(r.activeFilters)]),Ce.jsx(Cz.Provider,{value:F,children:e.children})},Zb=()=>{const e=Oe.useContext(Cz);if(e===void 0)throw new Error("useSearchDataRepositories must be used within an SearchDataRepositoriesProvider");return e},DTe=()=>{var O;const{state:e}=Zb(),r=gF(),y=(O=e.data)==null?void 0:O.find(t=>{if(r.id)return t.id===parseInt(r.id)}),F=y?y.title:"Not Found",[j,Y]=Vo.useState("1"),D=(t,l)=>{Y(l)};return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:F,breadcrumbTitle:"Dataset Detail",sx:{marginBottom:1,padding:2}}),Ce.jsx(Zs,{maxWidth:"xl",children:Ce.jsxs(ji,{container:!0,spacing:1,sx:{pt:1,pr:2,pb:2,pl:2},children:[y&&Ce.jsxs(Ce.Fragment,{children:[Ce.jsxs(ji,{item:!0,md:8,xs:12,children:[Ce.jsx(Ri,{sx:{mb:1},children:Ce.jsxs(La,{p:2,children:[Ce.jsxs(La,{direction:"row",children:[Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Dates"}),Ce.jsx(jp,{rows:[{label:"Publication",value:y.publication_date},{label:"Start Date",value:y.start_date},{label:"End Date",value:y.end_date}]})]}),Ce.jsxs(oa,{flex:1,children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Citation"}),Ce.jsx(ea,{children:y.citation})]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Summary"}),Ce.jsx(ea,{children:y.summary})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Purpose"}),Ce.jsx(ea,{children:y.purpose})]})]})}),Ce.jsx(Ri,{children:Ce.jsxs(mTe,{value:j,children:[Ce.jsx(oa,{sx:{borderBottom:1,borderColor:"divider"},children:Ce.jsxs(bTe,{onChange:D,"aria-label":"lab API tabs example",children:[Ce.jsx(AC,{label:"Data Files",value:"1"}),Ce.jsx(AC,{label:"Data Types",value:"2"}),Ce.jsx(AC,{label:"Metadata",value:"3"})]})}),Ce.jsxs(YC,{value:"1",children:[Ce.jsx(La,{direction:"row",justifyContent:"flex-end",children:Ce.jsx($i,{variant:"contained",children:"Download all files"})}),Ce.jsx(tc,{rows:y.attached_files,getRowId:t=>t.file_id,columns:OTe,disableColumnSelector:!0,disableRowSelectionOnClick:!0,sx:{border:"none"}})]}),Ce.jsx(YC,{value:"2",children:"Tab Two Content"}),Ce.jsx(YC,{value:"3",children:"Tab Three Content"})]})})]}),Ce.jsx(ji,{item:!0,md:4,xs:12,children:Ce.jsx(Ri,{children:Ce.jsxs(La,{p:2,children:[Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Map"}),Ce.jsx(oa,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"neutral.dark",height:300},children:Ce.jsx(ea,{children:""})})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Tags"}),y.tags.map((t,l)=>lCe.jsx("li",{children:Ce.jsx(Ii,{href:t.url,target:"_blank",children:t.title})}))})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Associated Projects"}),Ce.jsx("ul",{children:y.associated_projects.map((t,l)=>Ce.jsx("li",{children:Ce.jsx(Ii,{href:t.url,target:"_blank",children:t.title})}))})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Contacts"}),Ce.jsx(jp,{rows:[{label:"Point of Contact",value:y.point_of_contact},{label:"Originator",value:y.originator},{label:"Metadata Contact",value:y.metadata_contact},{label:"Publisher",value:y.publisher},{label:"Distributor",value:y.distributor},{label:"USGS Mission Area",value:y.usgs_mission_area}]})]})]})})})]}),!y&&Ce.jsx(ea,{children:"Could not find this dataset"})]})})]})},OTe=[{field:"file_name",headerName:"File Name",flex:1},{field:"description",headerName:"Description",flex:1},{field:"file_size",headerName:"Size",width:150},{field:"actions",headerName:"",type:"actions",getActions:e=>[Ce.jsx(ev,{icon:Ce.jsx(mz,{}),label:"Download"}),Ce.jsx(ev,{icon:Ce.jsx(yz,{}),label:"View"})],flex:1}],FTe=Object.freeze(Object.defineProperty({__proto__:null,default:DTe},Symbol.toStringTag,{value:"Module"})),_m={data:{items:{source:"default/search-data-repositories/datasets.json",idField:"id"}},pages:{index:{title:"Search Data Repositories App",description:"Description of this app section",cardFields:{title:"title",content:"summary",tags:"tags"},cardFilters:[{field:"category",label:"Category",filterComponent:"CheckboxList",filterProps:{options:[{label:"Groundwater",value:"Groundwater"},{label:"Fires",value:"Fires"},{label:"Floods",value:"Floods"},{label:"Earthquakes",value:"Earthquakes"}]}},{field:"tags",label:"Tags",filterComponent:"CheckboxList",filterProps:{options:[{label:"Boreal forest",value:"Boreal forest"},{label:"Carbon and greenhouse gas emissions",value:"Carbon and greenhouse gas emissions"},{label:"Ecology",value:"Ecology"}]}},{field:"publication_date",label:"Publication Date",filterComponent:"DateRange"}]}}},_Te=()=>{const e=uh(_m.data.items.source);return Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(kTe,{data:e,dataIdField:_m.data.items.idField,filters:_m.pages.index.cardFilters,cardFields:_m.pages.index.cardFields,children:Ce.jsx(Kp,{})})})]})},zTe=Object.freeze(Object.defineProperty({__proto__:null,default:_Te},Symbol.toStringTag,{value:"Module"}));var F6={},BTe=_l;Object.defineProperty(F6,"__esModule",{value:!0});var Mz=F6.default=void 0,NTe=BTe(Su()),UTe=Ce;Mz=F6.default=(0,NTe.default)((0,UTe.jsx)("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.61"}),"FilterAlt");var _6={},HTe=_l;Object.defineProperty(_6,"__esModule",{value:!0});var Az=_6.default=void 0,VTe=HTe(Su()),jTe=Ce;Az=_6.default=(0,VTe.default)((0,jTe.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const GTe=({item:e})=>{var j;const{state:r,dispatch:y}=Zb(),F=Y=>{y(Sz(Y))};return Ce.jsxs(La,{className:((j=r.previewItem)==null?void 0:j.id)===e.id?"selected":"",direction:"row",onClick:()=>F(e),sx:{padding:1,transition:"0.25s","&:hover":{bgcolor:"neutral.light"},"&.selected":{bgcolor:D0[50]}},children:[Ce.jsx(oa,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"neutral.dark",height:70,width:70},children:Ce.jsx(ea,{fontSize:"small",children:""})}),Ce.jsxs(oa,{flex:1,children:[Ce.jsx(ea,{sx:{color:"primary.main",fontWeight:"bold"},children:Ce.jsx(Ii,{component:Ki,to:`./${e.id}`,underline:"hover",children:e[r.cardFields.title]})}),r.cardFields.content&&Ce.jsxs(ea,{sx:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden"},children:[e[r.cardFields.content]," test"]}),r.cardFields.tags&&Ce.jsx(ea,{sx:{WebkitBoxOrient:"vertical",WebkitLineClamp:"1",display:"-webkit-box",fontStyle:"italic",overflow:"hidden"},children:e[r.cardFields.tags].map((Y,D)=>D{var j;const{state:r,dispatch:y}=Zb(),F=Y=>{y(ETe(Y.target.value))};return Ce.jsxs(Ri,{children:[Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",sx:{padding:2},children:[Ce.jsx($i,{startIcon:Ce.jsx(Mz,{}),onClick:e.onToggleFiltersPanel,children:"Filters"}),Ce.jsx($i,{startIcon:Ce.jsx(Az,{}),children:"Sort"}),Ce.jsx(oa,{flex:1,children:Ce.jsx(Zo,{variant:"outlined",label:"Search",size:"small",fullWidth:!0,onChange:F})})]}),Ce.jsxs(La,{direction:"row",sx:{padding:2},children:[Ce.jsx(La,{flex:1,children:(j=r.filteredData)==null?void 0:j.map((Y,D)=>Ce.jsx(GTe,{item:Y},Y[r.dataIdField]))}),!r.previewItem&&Ce.jsx(oa,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"neutral.dark",height:700,width:400},children:Ce.jsx(ea,{children:""})})]}),Ce.jsx(One,{count:10})]})},$Te=e=>Ce.jsx(sz,{onClose:e.onClose,sx:{paddingTop:3,paddingBottom:3,paddingLeft:2,paddingRight:2}}),YTe=e=>{const{state:r}=Zb();return Ce.jsx(Ri,{elevation:0,sx:{height:"100%",padding:2},children:Ce.jsxs(La,{spacing:3,children:[Ce.jsxs(La,{spacing:1,children:[Ce.jsxs(La,{direction:"row",children:[Ce.jsx(ea,{variant:"h6",component:"h3",flex:1,children:Ce.jsx(Ii,{component:Ki,to:`./${r.previewItem.id}`,underline:"hover",children:r.previewItem[r.cardFields.title]})}),Ce.jsx(fl,{size:"small",onClick:e.onClose,children:Ce.jsx(Yb,{})})]}),Ce.jsx(ea,{variant:"body2",children:"(Optional) Entity description or helper text."})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Dates"}),Ce.jsx(jp,{rows:[{label:"Publication Date",value:"2019-01-01"},{label:"Start Date",value:"2019-01-01"},{label:"End Date",value:"2019-01-01"}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Citation"}),Ce.jsx(ea,{children:"Labore proident do aute et esse adipisicing veniam eiusmod culpa pariatur sunt officia."})]}),r.cardFields.content&&Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Summary"}),Ce.jsx(ea,{children:r.previewItem[r.cardFields.content]})]}),r.cardFields.tags&&Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Tags"}),Ce.jsx(ea,{children:r.previewItem[r.cardFields.tags].map((y,F)=>r.cardFields.tags&&Fy.file_name,rows:ZTe,columns:XTe,disableRowSelectionOnClick:!0,initialState:{pagination:{paginationModel:{pageSize:5}}}})]}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(Ii,{component:Ki,to:`./${r.previewItem.id}`,children:Ce.jsx($i,{variant:"contained",children:"View datasets"})}),Ce.jsx($i,{variant:"outlined",children:"Download files"})]})]})})},XTe=[{field:"file_name",headerName:"File Name",flex:1},{field:"file_size",headerName:"Size",type:"number",width:150}],ZTe=[{file_name:"file1.csv",file_size:"15 MB"},{file_name:"file2.json",file_size:"117 MB"},{file_name:"file3.json",file_size:"4 MB"}],KTe=()=>{const{state:e,dispatch:r}=Zb(),[y,F]=Oe.useState(!0),j=()=>{F(!1)},Y=()=>{F(!y)},D=()=>{r(Sz(null))};return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:_m.pages.index.title,description:_m.pages.index.description,sx:{marginBottom:1,padding:2}}),Ce.jsxs(ji,{container:!0,spacing:1,children:[y&&Ce.jsx(ji,{item:!0,xs:2,children:Ce.jsx($Te,{onClose:j})}),Ce.jsx(ji,{item:!0,xs:JTe(y,!!e.previewItem),children:Ce.jsx(WTe,{onToggleFiltersPanel:Y})}),e.previewItem&&Ce.jsx(ji,{item:!0,xs:4,children:Ce.jsx(YTe,{onClose:D})})]})]})},JTe=(e,r)=>{if(!e&&!r)return 12;if(e&&!r)return 10;if(!e&&r)return 8;if(e&&r)return 6},QTe=Object.freeze(Object.defineProperty({__proto__:null,default:KTe},Symbol.toStringTag,{value:"Module"}));var dp={route:[/^.*\/src\/pages\/|\.(jsx|tsx|mdx)$/g,""],splat:[/\[\.{3}\w+\]/g,"*"],param:[/\[([^\]]+)\]/g,":$1"],slash:[/^index$|\./g,"/"],optional:[/^-(:?[\w-]+|\*)/,"$1?"]},qTe=e=>Object.keys(e).reduce((r,y)=>{const F=y.replace(...dp.route);return{...r,[F]:e[y]}},{}),eSe=(e,r)=>Object.keys(e).filter(F=>!F.includes("/_")||/_layout\.(jsx|tsx)$/.test(F)).reduce((F,j)=>{const Y=e[j],D={id:j.replace(...dp.route),...r(Y,j)},O=j.replace(...dp.route).replace(...dp.splat).replace(...dp.param).split("/").filter(Boolean);return O.reduce((t,l,S)=>{var s;const i=l.replace(...dp.slash).replace(...dp.optional),C=S===0,w=S===O.length-1&&O.length>1,v=!C&&!w,m=l==="_layout",a=/\([\w-]+\)/.test(i),n=/^\w|\//.test(i)?"unshift":"push";if(C&&O.length===1)return F.push({path:i,...D}),t;if(C||v){const o=C?F:t.children,h=o==null?void 0:o.find(u=>{var b;return u.path===i||((b=u.id)==null?void 0:b.replace("/_layout","").endsWith(i))}),f=a?D!=null&&D.component?{id:i,path:"/"}:{id:i}:{path:i};return h?h.children??(h.children=[]):o==null||o[n]({...f,children:[]}),h||(o==null?void 0:o[n==="unshift"?0:o.length-1])}return m?Object.assign(t,D):(w&&((s=t==null?void 0:t.children)==null||s[n](D!=null&&D.index?D:{path:i,...D})),t)},{}),F},[]),tSe=e=>Object.keys(e).reduce((r,y)=>{var j;const F=y.replace(...dp.route).replace(/\+|\([\w-]+\)\//g,"").replace(/(\/)?index/g,"").replace(/\./g,"/");return{...r,[`/${F}`]:(j=e[y])==null?void 0:j.default}},{}),rSe=Object.assign({}),nSe=Object.assign({}),aSe=Object.assign({"/src/pages/compare-data/_layout.tsx":Ohe,"/src/pages/compare-data/compare.tsx":mwe,"/src/pages/compare-data/index.tsx":xwe,"/src/pages/compare-data/new.tsx":bwe,"/src/pages/contribute-data/_layout.tsx":Ewe,"/src/pages/contribute-data/index.tsx":Lwe,"/src/pages/contribute-data/new.tsx":Uwe,"/src/pages/contribute-data/portal.tsx":jwe,"/src/pages/contribute-data/review.tsx":Jwe,"/src/pages/explore-data/[id].tsx":O3e,"/src/pages/explore-data/_layout.tsx":_3e,"/src/pages/explore-data/index.tsx":v2e,"/src/pages/index.tsx":m2e,"/src/pages/monitor-activities/_layout.tsx":x2e,"/src/pages/monitor-activities/calendar.tsx":w2e,"/src/pages/monitor-activities/detail.tsx":L2e,"/src/pages/monitor-activities/index.tsx":D2e,"/src/pages/playground/index.tsx":F2e,"/src/pages/run-computation/[id]/_layout.tsx":U2e,"/src/pages/run-computation/[id]/data-inputs.tsx":K2e,"/src/pages/run-computation/[id]/results.tsx":Q2e,"/src/pages/run-computation/[id]/running.tsx":eTe,"/src/pages/run-computation/[id]/settings.tsx":rTe,"/src/pages/run-computation/_layout.tsx":sTe,"/src/pages/run-computation/index.tsx":uTe,"/src/pages/search-data-repositories/[id].tsx":FTe,"/src/pages/search-data-repositories/_layout.tsx":zTe,"/src/pages/search-data-repositories/index.tsx":QTe}),Qm=qTe(rSe),iSe=tSe(nSe),oSe=eSe(aSe,(e,r)=>{const y=/index\.(jsx|tsx|mdx)$/.test(r)&&!r.includes("pages/index")?{index:!0}:{},F=(e==null?void 0:e.default)||Oe.Fragment;return{...y,Component:()=>e!=null&&e.Pending?Ce.jsx(Oe.Suspense,{fallback:Ce.jsx(e.Pending,{}),children:Ce.jsx(F,{})}):Ce.jsx(F,{}),ErrorBoundary:e==null?void 0:e.Catch,loader:e==null?void 0:e.Loader,action:e==null?void 0:e.Action}}),Ql=Qm==null?void 0:Qm._app,XC=Qm==null?void 0:Qm["404"],sSe=(Ql==null?void 0:Ql.default)||Kp,lSe=()=>{var r;const e=iSe[(r=Nb().state)==null?void 0:r.modal]||Oe.Fragment;return Ce.jsx(e,{})},UM=()=>Ce.jsxs(Ce.Fragment,{children:[Ce.jsx(sSe,{})," ",Ce.jsx(lSe,{})]}),uSe=()=>Ql!=null&&Ql.Pending?Ce.jsx(Oe.Suspense,{fallback:Ce.jsx(Ql.Pending,{}),children:Ce.jsx(UM,{})}):Ce.jsx(UM,{}),cSe={Component:Ql!=null&&Ql.default?uSe:UM,ErrorBoundary:Ql==null?void 0:Ql.Catch,loader:Ql==null?void 0:Ql.Loader},fSe={path:"*",Component:(XC==null?void 0:XC.default)||Oe.Fragment},L2=[{...cSe,children:[...oSe,fSe]}];bF(L2);const dSe=a5({palette:{mode:"light",background:{default:"#F5F5F6",paper:"#fff"},primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0",contrastText:"#fff"},secondary:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2",contrastText:"#fff"},info:{main:"#0288d1",light:"#03a9f4",dark:"#01579b",contrastText:"#fff"},success:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20",contrastText:"#fff"},warning:{main:"#ed6c02",light:"#ff9800",dark:"#e65100",contrastText:"#fff"},error:{main:"#d32f2f",light:"#ef5350",dark:"#c62828",contrastText:"#fff"},neutral:{main:"#DADADA",light:"#e0e0e0",dark:"#828282"},common:{black:"#000",white:"#fff"},grey:{50:"#ddd",500:"#999",900:"#444"}},shape:{borderRadius:4},typography:{htmlFontSize:16,fontFamily:'"Helvetica", "Verdana", "Arial", sans-serif',fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700},components:{MuiButton:{variants:[{props:{color:"neutral"},style:{backgroundColor:"white",borderColor:"#bdbdbd",color:"#757575"}}]},MuiLink:{styleOverrides:{root:{textDecoration:"none"}}},MuiStack:{defaultProps:{spacing:2}},MuiDataGrid:{styleOverrides:{root:{border:0,"& .MuiDataGrid-cell:focus-within":{outline:"none"},"& .MuiDataGrid-overlayWrapper":{minHeight:"4rem"},"& .MuiDataGrid-columnHeaderTitle":{color:"grey.900",fontSize:"0.85rem",fontWeight:"bold",textTransform:"uppercase"}}}}}}),hSe=()=>{const e=IF(),[r,y]=Oe.useState(""),[F,j]=Oe.useState(""),Y=()=>{e.dispatch(whe())},D=()=>{localStorage.setItem("apiTokenName",r),localStorage.setItem("apiTokenValue",F),window.location.reload()};return Ce.jsx("div",{children:Ce.jsx(zT,{open:e.state.apiModalOpen,onClose:Y,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:Ce.jsx(Ri,{sx:{left:"50%",p:4,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:500},children:Ce.jsxs(La,{spacing:2,children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:"API Authentication Required"}),Ce.jsx(ea,{children:"Enter the name of your API token (e.g. X-ApiToken) and the value of your API token (e.g. abc123)."}),Ce.jsx(Zo,{value:r,label:"Name",onChange:O=>{y(O.target.value)}}),Ce.jsx(Zo,{value:F,label:"Value",type:"password",onChange:O=>{j(O.target.value)}}),Ce.jsx($i,{variant:"contained",onClick:D,children:"Submit"})]})})})})},vSe=new p3e,pSe=()=>(Oe.useEffect(()=>{document.title=Ap.title},[]),Ce.jsx(b3e,{client:vSe,children:Ce.jsx(UT,{dateAdapter:tF,children:Ce.jsxs(NY,{theme:dSe,children:[Ce.jsx(uq,{}),Ce.jsxs(Mhe,{children:[Ce.jsx(qde,{router:bF(L2,{basename:"/strudel-kit/demo/"})}),Ce.jsx(hSe,{})]})]})})}));ZC.createRoot(document.getElementById("root")).render(Ce.jsx(Vo.StrictMode,{children:Ce.jsx(pSe,{})})); + `)+" "+ie[1]:ie[0]+ae+" "+q.join(", ")+" "+ie[1]}O.types=t(41088);function E(q){return Array.isArray(q)}O.isArray=E;function g(q){return typeof q=="boolean"}O.isBoolean=g;function c(q){return q===null}O.isNull=c;function y(q){return q==null}O.isNullOrUndefined=y;function A(q){return typeof q=="number"}O.isNumber=A;function M(q){return typeof q=="string"}O.isString=M;function R(q){return typeof q=="symbol"}O.isSymbol=R;function T(q){return q===void 0}O.isUndefined=T;function L(q){return P(q)&&B(q)==="[object RegExp]"}O.isRegExp=L,O.types.isRegExp=L;function P(q){return typeof q=="object"&&q!==null}O.isObject=P;function d(q){return P(q)&&B(q)==="[object Date]"}O.isDate=d,O.types.isDate=d;function k(q){return P(q)&&(B(q)==="[object Error]"||q instanceof Error)}O.isError=k,O.types.isNativeError=k;function I(q){return typeof q=="function"}O.isFunction=I;function N(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}O.isPrimitive=N,O.isBuffer=t(75272);function B(q){return Object.prototype.toString.call(q)}function G(q){return q<10?"0"+q.toString(10):q.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var q=new Date,ae=[G(q.getHours()),G(q.getMinutes()),G(q.getSeconds())].join(":");return[q.getDate(),U[q.getMonth()],ae].join(" ")}O.log=function(){console.log("%s - %s",H(),O.format.apply(O,arguments))},O.inherits=t(6768),O._extend=function(q,ae){if(!ae||!P(ae))return q;for(var ie=Object.keys(ae),fe=ie.length;fe--;)q[ie[fe]]=ae[ie[fe]];return q};function W(q,ae){return Object.prototype.hasOwnProperty.call(q,ae)}var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;O.promisify=function(ae){if(typeof ae!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&ae[V]){var ie=ae[V];if(typeof ie!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ie,V,{value:ie,enumerable:!1,writable:!1,configurable:!0}),ie}function ie(){for(var fe,Q,J=new Promise(function(ne,ce){fe=ne,Q=ce}),oe=[],K=0;K"u"?t.g:globalThis,n=S(),s=C("String.prototype.slice"),o=Object.getPrototypeOf,h=C("Array.prototype.indexOf",!0)||function(E,g){for(var c=0;c-1?g:g!=="Object"?!1:b(E)}return w?u(E):null}},67020:function(D,O,t){var l=t(38700),S=t(50896),i=l.instance();function C(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}C.prototype=new l.baseCalendar,S(C.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(f,u){if(typeof f=="string"){var b=f.match(v);return b?b[0]:""}var p=this._validateYear(f),E=f.month(),g=""+this.toChineseMonth(p,E);return u&&g.length<2&&(g="0"+g),this.isIntercalaryMonth(p,E)&&(g+="i"),g},monthNames:function(f){if(typeof f=="string"){var u=f.match(m);return u?u[0]:""}var b=this._validateYear(f),p=f.month(),E=this.toChineseMonth(b,p),g=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][E-1];return this.isIntercalaryMonth(b,p)&&(g="闰"+g),g},monthNamesShort:function(f){if(typeof f=="string"){var u=f.match(a);return u?u[0]:""}var b=this._validateYear(f),p=f.month(),E=this.toChineseMonth(b,p),g=["一","二","三","四","五","六","七","八","九","十","十一","十二"][E-1];return this.isIntercalaryMonth(b,p)&&(g="闰"+g),g},parseMonth:function(f,u){f=this._validateYear(f);var b=parseInt(u),p;if(isNaN(b))u[0]==="闰"&&(p=!0,u=u.substring(1)),u[u.length-1]==="月"&&(u=u.substring(0,u.length-1)),b=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(u);else{var E=u[u.length-1];p=E==="i"||E==="I"}var g=this.toMonthIndex(f,b,p);return g},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(f,u){if(f.year&&(f=f.year()),typeof f!="number"||f<1888||f>2111)throw u.replace(/\{0\}/,this.local.name);return f},toMonthIndex:function(f,u,b){var p=this.intercalaryMonth(f),E=b&&u!==p;if(E||u<1||u>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);var g;return p?!b&&u<=p?g=u-1:g=u:g=u-1,g},toChineseMonth:function(f,u){f.year&&(f=f.year(),u=f.month());var b=this.intercalaryMonth(f),p=b?12:11;if(u<0||u>p)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);var E;return b?u>13;return b},isIntercalaryMonth:function(f,u){f.year&&(f=f.year(),u=f.month());var b=this.intercalaryMonth(f);return!!b&&b===u},leapYear:function(f){return this.intercalaryMonth(f)!==0},weekOfYear:function(f,u,b){var p=this._validateYear(f,l.local.invalidyear),E=s[p-s[0]],g=E>>9&4095,c=E>>5&15,y=E&31,A;A=i.newDate(g,c,y),A.add(4-(A.dayOfWeek()||7),"d");var M=this.toJD(f,u,b)-A.toJD();return 1+Math.floor(M/7)},monthsInYear:function(f){return this.leapYear(f)?13:12},daysInMonth:function(f,u){f.year&&(u=f.month(),f=f.year()),f=this._validateYear(f);var b=n[f-n[0]],p=b>>13,E=p?12:11;if(u>E)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);var g=b&1<<12-u?30:29;return g},weekDay:function(f,u,b){return(this.dayOfWeek(f,u,b)||7)<6},toJD:function(f,u,b){var p=this._validate(f,g,b,l.local.invalidDate);f=this._validateYear(p.year()),u=p.month(),b=p.day();var E=this.isIntercalaryMonth(f,u),g=this.toChineseMonth(f,u),c=h(f,g,b,E);return i.toJD(c.year,c.month,c.day)},fromJD:function(f){var u=i.fromJD(f),b=o(u.year(),u.month(),u.day()),p=this.toMonthIndex(b.year,b.month,b.isIntercalary);return this.newDate(b.year,p,b.day)},fromString:function(f){var u=f.match(w),b=this._validateYear(+u[1]),p=+u[2],E=!!u[3],g=this.toMonthIndex(b,p,E),c=+u[4];return this.newDate(b,g,c)},add:function(f,u,b){var p=f.year(),E=f.month(),g=this.isIntercalaryMonth(p,E),c=this.toChineseMonth(p,E),y=Object.getPrototypeOf(C.prototype).add.call(this,f,u,b);if(b==="y"){var A=y.year(),M=y.month(),R=this.isIntercalaryMonth(A,c),T=g&&R?this.toMonthIndex(A,c,!0):this.toMonthIndex(A,c,!1);T!==M&&y.month(T)}return y}});var w=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,v=/^\d?\d[iI]?/m,m=/^闰?十?[一二三四五六七八九]?月/m,a=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=C;var n=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],s=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function o(f,u,b,p){var E,g;if(typeof f=="object")E=f,g=u||{};else{var c=typeof f=="number"&&f>=1888&&f<=2111;if(!c)throw new Error("Solar year outside range 1888-2111");var y=typeof u=="number"&&u>=1&&u<=12;if(!y)throw new Error("Solar month outside range 1 - 12");var A=typeof b=="number"&&b>=1&&b<=31;if(!A)throw new Error("Solar day outside range 1 - 31");E={year:f,month:u,day:b},g={}}var M=s[E.year-s[0]],R=E.year<<9|E.month<<5|E.day;g.year=R>=M?E.year:E.year-1,M=s[g.year-s[0]];var T=M>>9&4095,L=M>>5&15,P=M&31,d,k=new Date(T,L-1,P),I=new Date(E.year,E.month-1,E.day);d=Math.round((I-k)/864e5);var N=n[g.year-n[0]],B;for(B=0;B<13;B++){var G=N&1<<12-B?30:29;if(d>13;return!U||B=1888&&f<=2111;if(!y)throw new Error("Lunar year outside range 1888-2111");var A=typeof u=="number"&&u>=1&&u<=12;if(!A)throw new Error("Lunar month outside range 1 - 12");var M=typeof b=="number"&&b>=1&&b<=30;if(!M)throw new Error("Lunar day outside range 1 - 30");var R;typeof p=="object"?(R=!1,g=p):(R=!!p,g={}),c={year:f,month:u,day:b,isIntercalary:R}}var T;T=c.day-1;var L=n[c.year-n[0]],P=L>>13,d;P&&(c.month>P||c.isIntercalary)?d=c.month:d=c.month-1;for(var k=0;k>9&4095,G=N>>5&15,U=N&31,H=new Date(B,G-1,U+T);return g.year=H.getFullYear(),g.month=1+H.getMonth(),g.day=H.getDate(),g}},89792:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var w=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),v=w.year()+(w.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(C){return this._validate(C,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return(this.dayOfWeek(C,w,v)||7)<6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),C<0&&C++,m.day()+(m.month()-1)*30+(C-1)*365+Math.floor(C/4)+this.jdEpoch-1},fromJD:function(C){var w=Math.floor(C)+.5-this.jdEpoch,v=Math.floor((w-Math.floor((w+366)/1461))/365)+1;v<=0&&v--,w=Math.floor(C)+.5-this.newDate(v,1,1).toJD();var m=Math.floor(w/30)+1,a=w-(m-1)*30+1;return this.newDate(v,m,a)}}),l.calendars.coptic=i},55668:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return(a.day()+1)%8},weekDay:function(w,v,m){var a=this.dayOfWeek(w,v,m);return a>=2&&a<=6},extraInfo:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return{century:C[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return w=a.year()+(a.year()<0?1:0),v=a.month(),m=a.day(),m+(v>1?16:0)+(v>2?(v-2)*32:0)+(w-1)*400+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var v=Math.floor(w/400)+1;w-=(v-1)*400,w+=w>15?16:0;var m=Math.floor(w/32)+1,a=w-(m-1)*32+1;return this.newDate(v<=0?v-1:v,m,a)}});var C={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=i},65168:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var w=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),v=w.year()+(w.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(C){return this._validate(C,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return(this.dayOfWeek(C,w,v)||7)<6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),C<0&&C++,m.day()+(m.month()-1)*30+(C-1)*365+Math.floor(C/4)+this.jdEpoch-1},fromJD:function(C){var w=Math.floor(C)+.5-this.jdEpoch,v=Math.floor((w-Math.floor((w+366)/1461))/365)+1;v<=0&&v--,w=Math.floor(C)+.5-this.newDate(v,1,1).toJD();var m=Math.floor(w/30)+1,a=w-(m-1)*30+1;return this.newDate(v,m,a)}}),l.calendars.ethiopian=i},2084:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(v.year())},_leapYear:function(w){return w=w<0?w+1:w,C(w*7+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return w=v.year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,v){return w.year&&(v=w.month(),w=w.year()),this._validate(w,v,this.minDay,l.local.invalidMonth),v===12&&this.leapYear(w)||v===8&&C(this.daysInYear(w),10)===5?30:v===9&&C(this.daysInYear(w),10)===3?29:this.daysPerMonth[v-1]},weekDay:function(w,v,m){return this.dayOfWeek(w,v,m)!==6},extraInfo:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);w=a.year(),v=a.month(),m=a.day();var n=w<=0?w+1:w,s=this.jdEpoch+this._delay1(n)+this._delay2(n)+m+1;if(v<7){for(var o=7;o<=this.monthsInYear(w);o++)s+=this.daysInMonth(w,o);for(var o=1;o=this.toJD(v===-1?1:v+1,7,1);)v++;for(var m=wthis.toJD(v,m,this.daysInMonth(v,m));)m++;var a=w-this.toJD(v,m,1)+1;return this.newDate(v,m,a)}});function C(w,v){return w-v*Math.floor(w/v)}l.calendars.hebrew=i},26368:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(C){var w=this._validate(C,this.minMonth,this.minDay,l.local.invalidYear);return(w.year()*11+14)%30<11},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(C){return this.leapYear(C)?355:354},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===12&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return this.dayOfWeek(C,w,v)!==5},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),w=m.month(),v=m.day(),C=C<=0?C+1:C,v+Math.ceil(29.5*(w-1))+(C-1)*354+Math.floor((3+11*C)/30)+this.jdEpoch-1},fromJD:function(C){C=Math.floor(C)+.5;var w=Math.floor((30*(C-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var v=Math.min(12,Math.ceil((C-29-this.toJD(w,1,1))/29.5)+1),m=C-this.toJD(w,v,1)+1;return this.newDate(w,v,m)}}),l.calendars.islamic=i},24747:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var w=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),v=w.year()<0?w.year()+1:w.year();return v%4===0},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(C,w){var v=this._validate(C,w,this.minDay,l.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(C,w,v){return(this.dayOfWeek(C,w,v)||7)<6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);return C=m.year(),w=m.month(),v=m.day(),C<0&&C++,w<=2&&(C--,w+=12),Math.floor(365.25*(C+4716))+Math.floor(30.6001*(w+1))+v-1524.5},fromJD:function(C){var w=Math.floor(C+.5),v=w+1524,m=Math.floor((v-122.1)/365.25),a=Math.floor(365.25*m),n=Math.floor((v-a)/30.6001),s=n-Math.floor(n<14?1:13),o=m-Math.floor(s>2?4716:4715),h=v-a-Math.floor(30.6001*n);return o<=0&&o--,this.newDate(o,s,h)}}),l.calendars.julian=i},65616:function(D,O,t){var l=t(38700),S=t(50896);function i(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(v){return this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(v){var m=this._validate(v,this.minMonth,this.minDay,l.local.invalidYear);v=m.year();var a=Math.floor(v/400);v=v%400,v+=v<0?400:0;var n=Math.floor(v/20);return a+"."+n+"."+v%20},forYear:function(v){if(v=v.split("."),v.length<3)throw"Invalid Mayan year";for(var m=0,a=0;a19||a>0&&n<0)throw"Invalid Mayan year";m=m*20+n}return m},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(v,m,a){return this._validate(v,m,a,l.local.invalidDate),0},daysInYear:function(v){return this._validate(v,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(v,m){return this._validate(v,m,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(v,m,a){var n=this._validate(v,m,a,l.local.invalidDate);return n.day()},weekDay:function(v,m,a){return this._validate(v,m,a,l.local.invalidDate),!0},extraInfo:function(v,m,a){var n=this._validate(v,m,a,l.local.invalidDate),s=n.toJD(),o=this._toHaab(s),h=this._toTzolkin(s);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(v){v-=this.jdEpoch;var m=C(v+8+17*20,365);return[Math.floor(m/20)+1,C(m,20)]},_toTzolkin:function(v){return v-=this.jdEpoch,[w(v+20,20),w(v+4,13)]},toJD:function(v,m,a){var n=this._validate(v,m,a,l.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(v){v=Math.floor(v)+.5-this.jdEpoch;var m=Math.floor(v/360);v=v%360,v+=v<0?360:0;var a=Math.floor(v/20),n=v%20;return this.newDate(m,a,n)}});function C(v,m){return v-m*Math.floor(v/m)}function w(v,m){return C(v-1,m)+1}l.calendars.mayan=i},30632:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar;var C=l.instance("gregorian");S(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return C.leapYear(v.year()+(v.year()<1?1:0)+1469)},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return(this.dayOfWeek(w,v,m)||7)<6},toJD:function(n,v,m){var a=this._validate(n,v,m,l.local.invalidMonth),n=a.year();n<0&&n++;for(var s=a.day(),o=1;o=this.toJD(v+1,1,1);)v++;for(var m=w-Math.floor(this.toJD(v,1,1)+.5)+1,a=1;m>this.daysInMonth(v,a);)m-=this.daysInMonth(v,a),a++;return this.newDate(v,a,m)}}),l.calendars.nanakshahi=i},73040:function(D,O,t){var l=t(38700),S=t(50896);function i(C){this.local=this.regionalOptions[C||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(C){return this.daysInYear(C)!==this.daysPerYear},weekOfYear:function(C,w,v){var m=this.newDate(C,w,v);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(C){var w=this._validate(C,this.minMonth,this.minDay,l.local.invalidYear);if(C=w.year(),typeof this.NEPALI_CALENDAR_DATA[C]>"u")return this.daysPerYear;for(var v=0,m=this.minMonth;m<=12;m++)v+=this.NEPALI_CALENDAR_DATA[C][m];return v},daysInMonth:function(C,w){return C.year&&(w=C.month(),C=C.year()),this._validate(C,w,this.minDay,l.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[C]>"u"?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[C][w]},weekDay:function(C,w,v){return this.dayOfWeek(C,w,v)!==6},toJD:function(C,w,v){var m=this._validate(C,w,v,l.local.invalidDate);C=m.year(),w=m.month(),v=m.day();var a=l.instance(),n=0,s=w,o=C;this._createMissingCalendarData(C);var h=C-(s>9||s===9&&v>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(w!==9&&(n=v,s--);s!==9;)s<=0&&(s=12,o--),n+=this.NEPALI_CALENDAR_DATA[o][s],s--;return w===9?(n+=v-this.NEPALI_CALENDAR_DATA[o][0],n<0&&(n+=a.daysInYear(h))):n+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],a.newDate(h,1,1).add(n,"d").toJD()},fromJD:function(C){var w=l.instance(),v=w.fromJD(C),m=v.year(),a=v.dayOfYear(),n=m+56;this._createMissingCalendarData(n);for(var s=9,o=this.NEPALI_CALENDAR_DATA[n][0],h=this.NEPALI_CALENDAR_DATA[n][s]-o+1;a>h;)s++,s>12&&(s=1,n++),h+=this.NEPALI_CALENDAR_DATA[n][s];var f=this.NEPALI_CALENDAR_DATA[n][s]-(h-a);return this.newDate(n,s,f)},_createMissingCalendarData:function(C){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var v=C-1;v"u"&&(this.NEPALI_CALENDAR_DATA[v]=w)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),l.calendars.nepali=i},1104:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return((v.year()-(v.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return this.dayOfWeek(w,v,m)!==5},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate);w=a.year(),v=a.month(),m=a.day();var n=w-(w>=0?474:473),s=474+C(n,2820);return m+(v<=7?(v-1)*31:(v-1)*30+6)+Math.floor((s*682-110)/2816)+(s-1)*365+Math.floor(n/2820)*1029983+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w)+.5;var v=w-this.toJD(475,1,1),m=Math.floor(v/1029983),a=C(v,1029983),n=2820;if(a!==1029982){var s=Math.floor(a/366),o=C(a,366);n=Math.floor((2134*s+2816*o+2815)/1028522)+s+1}var h=n+2820*m+474;h=h<=0?h-1:h;var f=w-this.toJD(h,1,1)+1,u=f<=186?Math.ceil(f/31):Math.ceil((f-6)/30),b=w-this.toJD(h,u,1)+1;return this.newDate(h,u,b)}});function C(w,v){return w-v*Math.floor(w/v)}l.calendars.persian=i,l.calendars.jalali=i},51456:function(D,O,t){var l=t(38700),S=t(50896),i=l.instance();function C(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}C.prototype=new l.baseCalendar,S(C.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(m){var v=this._validate(m,this.minMonth,this.minDay,l.local.invalidYear),m=this._t2gYear(v.year());return i.leapYear(m)},weekOfYear:function(n,v,m){var a=this._validate(n,this.minMonth,this.minDay,l.local.invalidYear),n=this._t2gYear(a.year());return i.weekOfYear(n,a.month(),a.day())},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return(this.dayOfWeek(w,v,m)||7)<6},toJD:function(n,v,m){var a=this._validate(n,v,m,l.local.invalidDate),n=this._t2gYear(a.year());return i.toJD(n,a.month(),a.day())},fromJD:function(w){var v=i.fromJD(w),m=this._g2tYear(v.year());return this.newDate(m,v.month(),v.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),l.calendars.taiwan=C},4592:function(D,O,t){var l=t(38700),S=t(50896),i=l.instance();function C(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}C.prototype=new l.baseCalendar,S(C.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var v=this._validate(m,this.minMonth,this.minDay,l.local.invalidYear),m=this._t2gYear(v.year());return i.leapYear(m)},weekOfYear:function(n,v,m){var a=this._validate(n,this.minMonth,this.minDay,l.local.invalidYear),n=this._t2gYear(a.year());return i.weekOfYear(n,a.month(),a.day())},daysInMonth:function(w,v){var m=this._validate(w,v,this.minDay,l.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,v,m){return(this.dayOfWeek(w,v,m)||7)<6},toJD:function(n,v,m){var a=this._validate(n,v,m,l.local.invalidDate),n=this._t2gYear(a.year());return i.toJD(n,a.month(),a.day())},fromJD:function(w){var v=i.fromJD(w),m=this._g2tYear(v.year());return this.newDate(m,v.month(),v.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),l.calendars.thai=C},45348:function(D,O,t){var l=t(38700),S=t(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new l.baseCalendar,S(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var v=this._validate(w,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(v.year())===355},weekOfYear:function(w,v,m){var a=this.newDate(w,v,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var v=0,m=1;m<=12;m++)v+=this.daysInMonth(w,m);return v},daysInMonth:function(w,v){for(var m=this._validate(w,v,this.minDay,l.local.invalidMonth),a=m.toJD()-24e5+.5,n=0,s=0;sa)return C[n]-C[n-1];n++}return 30},weekDay:function(w,v,m){return this.dayOfWeek(w,v,m)!==5},toJD:function(w,v,m){var a=this._validate(w,v,m,l.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,s=a.day()+C[n-1]-1;return s+24e5-.5},fromJD:function(w){for(var v=w-24e5+.5,m=0,a=0;av);a++)m++;var n=m+15292,s=Math.floor((n-1)/12),o=s+1,h=n-12*s,f=v-C[m-1]+1;return this.newDate(o,h,f)},isValid:function(w,v,m){var a=l.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(w=w.year!=null?w.year:w,a=w>=1276&&w<=1500),a},_validate:function(w,v,m,a){var n=l.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}}),l.calendars.ummalqura=i;var C=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(D,O,t){var l=t(50896);function S(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}l(S.prototype,{instance:function(a,n){a=(a||"gregorian").toLowerCase(),n=n||"";var s=this._localCals[a+"-"+n];if(!s&&this.calendars[a]&&(s=new this.calendars[a](n),this._localCals[a+"-"+n]=s),!s)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return s},newDate:function(a,n,s,o,h){return o=(a!=null&&a.year?a.calendar():typeof o=="string"?this.instance(o,h):o)||this.instance(),o.newDate(a,n,s)},substituteDigits:function(a){return function(n){return(n+"").replace(/[0-9]/g,function(s){return a[s]})}},substituteChineseDigits:function(a,n){return function(s){for(var o="",h=0;s>0;){var f=s%10;o=(f===0?"":a[f]+n[h])+o,h++,s=Math.floor(s/10)}return o.indexOf(a[1]+n[1])===0&&(o=o.substr(1)),o||a[0]}}});function i(a,n,s,o){if(this._calendar=a,this._year=n,this._month=s,this._day=o,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function C(a,n){return a=""+a,"000000".substring(0,n-a.length)+a}l(i.prototype,{newDate:function(a,n,s){return this._calendar.newDate(a??this,n,s)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,n,s){if(!this._calendar.isValid(a,n,s))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=n,this._day=s,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,n){return this._calendar.add(this,a,n)},set:function(a,n){return this._calendar.set(this,a,n)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var n=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return n===0?0:n<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+C(Math.abs(this.year()),4)+"-"+C(this.month(),2)+"-"+C(this.day(),2)}});function w(){this.shortYearCutoff="+10"}l(w.prototype,{_validateLevel:0,newDate:function(a,n,s){return a==null?this.today():(a.year&&(this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate),s=a.day(),n=a.month(),a=a.year()),new i(this,a,n,s))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){var n=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return n.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var n=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(n.year()<0?"-":"")+C(Math.abs(n.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(a,n){var s=this._validate(a,n,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(s.month()+this.monthsInYear(s)-this.firstMonth)%this.monthsInYear(s)+this.minMonth},fromMonthOfYear:function(a,n){var s=(n+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,s,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),s},daysInYear:function(a){var n=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(n)?366:365},dayOfYear:function(a,n,s){var o=this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate);return o.toJD()-this.newDate(o.year(),this.fromMonthOfYear(o.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,n,s){var o=this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(o))+2)%this.daysInWeek()},extraInfo:function(a,n,s){return this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(a,n,s){return this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,n,s),n,s)},_add:function(a,n,s){if(this._validateLevel++,s==="d"||s==="w"){var o=a.toJD()+n*(s==="w"?this.daysInWeek():1),h=a.calendar().fromJD(o);return this._validateLevel--,[h.year(),h.month(),h.day()]}try{var f=a.year()+(s==="y"?n:0),u=a.monthOfYear()+(s==="m"?n:0),h=a.day(),b=function(g){for(;uc-1+g.minMonth;)f++,u-=c,c=g.monthsInYear(f)};s==="y"?(a.month()!==this.fromMonthOfYear(f,u)&&(u=this.newDate(f,a.month(),this.minDay).monthOfYear()),u=Math.min(u,this.monthsInYear(f)),h=Math.min(h,this.daysInMonth(f,this.fromMonthOfYear(f,u)))):s==="m"&&(b(this),h=Math.min(h,this.daysInMonth(f,this.fromMonthOfYear(f,u))));var p=[f,this.fromMonthOfYear(f,u),h];return this._validateLevel--,p}catch(E){throw this._validateLevel--,E}},_correctAdd:function(a,n,s,o){if(!this.hasYearZero&&(o==="y"||o==="m")&&(n[0]===0||a.year()>0!=n[0]>0)){var h={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[o],f=s<0?-1:1;n=this._add(a,s*h[0]+f*h[1],h[2])}return a.date(n[0],n[1],n[2])},set:function(a,n,s){this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var o=s==="y"?n:a.year(),h=s==="m"?n:a.month(),f=s==="d"?n:a.day();return(s==="y"||s==="m")&&(f=Math.min(f,this.daysInMonth(o,h))),a.date(o,h,f)},isValid:function(a,n,s){this._validateLevel++;var o=this.hasYearZero||a!==0;if(o){var h=this.newDate(a,n,this.minDay);o=n>=this.minMonth&&n-this.minMonth=this.minDay&&s-this.minDay13.5?13:1),E=h-(p>2.5?4716:4715);return E<=0&&E--,this.newDate(E,p,b)},toJSDate:function(a,n,s){var o=this._validate(a,n,s,m.local.invalidDate||m.regionalOptions[""].invalidDate),h=new Date(o.year(),o.month()-1,o.day());return h.setHours(0),h.setMinutes(0),h.setSeconds(0),h.setMilliseconds(0),h.setHours(h.getHours()>12?h.getHours()+2:0),h},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var m=D.exports=new S;m.cdate=i,m.baseCalendar=w,m.calendars.gregorian=v},15168:function(D,O,t){var l=t(50896),S=t(38700);l(S.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),S.local=S.regionalOptions[""],l(S.cdate.prototype,{formatDate:function(i,C){return typeof i!="string"&&(C=i,i=""),this._calendar.formatDate(i||"",this,C)}}),l(S.baseCalendar.prototype,{UNIX_EPOCH:S.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:S.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,C,w){if(typeof i!="string"&&(w=C,C=i,i=""),!C)return"";if(C.calendar()!==this)throw S.local.invalidFormat||S.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat,w=w||{};var v=w.dayNamesShort||this.local.dayNamesShort,m=w.dayNames||this.local.dayNames,a=w.monthNumbers||this.local.monthNumbers,n=w.monthNamesShort||this.local.monthNamesShort,s=w.monthNames||this.local.monthNames;w.calculateWeek||this.local.calculateWeek;for(var o=function(M,R){for(var T=1;A+T1},h=function(M,R,T,L){var P=""+R;if(o(M,L))for(;P.length1},A=function(B,G){var U=y(B,G),H=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],W=new RegExp("^-?\\d{1,"+H+"}"),V=C.substring(d).match(W);if(!V)throw(S.local.missingNumberAt||S.regionalOptions[""].missingNumberAt).replace(/\{0\}/,d);return d+=V[0].length,parseInt(V[0],10)},M=this,R=function(){if(typeof s=="function"){y("m");var B=s.call(M,C.substring(d));return d+=B.length,B}return A("m")},T=function(B,G,U,H){for(var W=y(B,H)?U:G,V=0;V-1){b=1,p=E;for(var N=this.daysInMonth(u,b);p>N;N=this.daysInMonth(u,b))b++,p-=N}return f>-1?this.fromJD(f):this.newDate(u,b,p)},determineDate:function(i,C,w,v,m){w&&typeof w!="object"&&(m=v,v=w,w=null),typeof v!="string"&&(m=v,v="");var a=this,n=function(s){try{return a.parseDate(v,s,m)}catch{}s=s.toLowerCase();for(var o=(s.match(/^c/)&&w?w.newDate():null)||a.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=h.exec(s);f;)o.add(parseInt(f[1],10),f[2]||"d"),f=h.exec(s);return o};return C=C?C.newDate():null,i=i==null?C:typeof i=="string"?n(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?C:a.today().add(i,"d"):a.newDate(i),i}})},21576:function(){},19768:function(){},63436:function(D,O,t){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],S=typeof globalThis>"u"?t.g:globalThis;D.exports=function(){for(var C=[],w=0;w>8&15|Ie>>4&240,Ie>>4&15|Ie&240,(Ie&15)<<4|Ie&15,1):Ue===8?R(Ie>>24&255,Ie>>16&255,Ie>>8&255,(Ie&255)/255):Ue===4?R(Ie>>12&15|Ie>>8&240,Ie>>8&15|Ie>>4&240,Ie>>4&15|Ie&240,((Ie&15)<<4|Ie&15)/255):null):(Ie=s.exec(be))?new P(Ie[1],Ie[2],Ie[3],1):(Ie=o.exec(be))?new P(Ie[1]*255/100,Ie[2]*255/100,Ie[3]*255/100,1):(Ie=h.exec(be))?R(Ie[1],Ie[2],Ie[3],Ie[4]):(Ie=f.exec(be))?R(Ie[1]*255/100,Ie[2]*255/100,Ie[3]*255/100,Ie[4]):(Ie=u.exec(be))?U(Ie[1],Ie[2]/100,Ie[3]/100,1):(Ie=b.exec(be))?U(Ie[1],Ie[2]/100,Ie[3]/100,Ie[4]):p.hasOwnProperty(be)?M(p[be]):be==="transparent"?new P(NaN,NaN,NaN,0):null}function M(be){return new P(be>>16&255,be>>8&255,be&255,1)}function R(be,Ie,Ue,Ne){return Ne<=0&&(be=Ie=Ue=NaN),new P(be,Ie,Ue,Ne)}function T(be){return be instanceof i||(be=A(be)),be?(be=be.rgb(),new P(be.r,be.g,be.b,be.opacity)):new P}function L(be,Ie,Ue,Ne){return arguments.length===1?T(be):new P(be,Ie,Ue,Ne??1)}function P(be,Ie,Ue,Ne){this.r=+be,this.g=+Ie,this.b=+Ue,this.opacity=+Ne}l(P,L,S(i,{brighter:function(Ie){return Ie=Ie==null?w:Math.pow(w,Ie),new P(this.r*Ie,this.g*Ie,this.b*Ie,this.opacity)},darker:function(Ie){return Ie=Ie==null?C:Math.pow(C,Ie),new P(this.r*Ie,this.g*Ie,this.b*Ie,this.opacity)},rgb:function(){return this},clamp:function(){return new P(B(this.r),B(this.g),B(this.b),N(this.opacity))},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:d,formatHex:d,formatHex8:k,formatRgb:I,toString:I}));function d(){return"#".concat(G(this.r)).concat(G(this.g)).concat(G(this.b))}function k(){return"#".concat(G(this.r)).concat(G(this.g)).concat(G(this.b)).concat(G((isNaN(this.opacity)?1:this.opacity)*255))}function I(){var be=N(this.opacity);return"".concat(be===1?"rgb(":"rgba(").concat(B(this.r),", ").concat(B(this.g),", ").concat(B(this.b)).concat(be===1?")":", ".concat(be,")"))}function N(be){return isNaN(be)?1:Math.max(0,Math.min(1,be))}function B(be){return Math.max(0,Math.min(255,Math.round(be)||0))}function G(be){return be=B(be),(be<16?"0":"")+be.toString(16)}function U(be,Ie,Ue,Ne){return Ne<=0?be=Ie=Ue=NaN:Ue<=0||Ue>=1?be=Ie=NaN:Ie<=0&&(be=NaN),new V(be,Ie,Ue,Ne)}function H(be){if(be instanceof V)return new V(be.h,be.s,be.l,be.opacity);if(be instanceof i||(be=A(be)),!be)return new V;if(be instanceof V)return be;be=be.rgb();var Ie=be.r/255,Ue=be.g/255,Ne=be.b/255,ze=Math.min(Ie,Ue,Ne),$e=Math.max(Ie,Ue,Ne),st=NaN,vt=$e-ze,at=($e+ze)/2;return vt?(Ie===$e?st=(Ue-Ne)/vt+(Ue0&&at<1?0:st,new V(st,vt,at,be.opacity)}function W(be,Ie,Ue,Ne){return arguments.length===1?H(be):new V(be,Ie,Ue,Ne??1)}function V(be,Ie,Ue,Ne){this.h=+be,this.s=+Ie,this.l=+Ue,this.opacity=+Ne}l(V,W,S(i,{brighter:function(Ie){return Ie=Ie==null?w:Math.pow(w,Ie),new V(this.h,this.s,this.l*Ie,this.opacity)},darker:function(Ie){return Ie=Ie==null?C:Math.pow(C,Ie),new V(this.h,this.s,this.l*Ie,this.opacity)},rgb:function(){var Ie=this.h%360+(this.h<0)*360,Ue=isNaN(Ie)||isNaN(this.s)?0:this.s,Ne=this.l,ze=Ne+(Ne<.5?Ne:1-Ne)*Ue,$e=2*Ne-ze;return new P(q(Ie>=240?Ie-240:Ie+120,$e,ze),q(Ie,$e,ze),q(Ie<120?Ie+240:Ie-120,$e,ze),this.opacity)},clamp:function(){return new V($(this.h),Z(this.s),Z(this.l),N(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 Ie=N(this.opacity);return"".concat(Ie===1?"hsl(":"hsla(").concat($(this.h),", ").concat(Z(this.s)*100,"%, ").concat(Z(this.l)*100,"%").concat(Ie===1?")":", ".concat(Ie,")"))}}));function $(be){return be=(be||0)%360,be<0?be+360:be}function Z(be){return Math.max(0,Math.min(1,be||0))}function q(be,Ie,Ue){return(be<60?Ie+(Ue-Ie)*be/60:be<180?Ue:be<240?Ie+(Ue-Ie)*(240-be)/60:Ie)*255}var ae=function(be){return function(){return be}};function ie(be,Ie){return function(Ue){return be+Ue*Ie}}function fe(be,Ie,Ue){return be=Math.pow(be,Ue),Ie=Math.pow(Ie,Ue)-be,Ue=1/Ue,function(Ne){return Math.pow(be+Ne*Ie,Ue)}}function Q(be){return(be=+be)==1?J:function(Ie,Ue){return Ue-Ie?fe(Ie,Ue,be):ae(isNaN(Ie)?Ue:Ie)}}function J(be,Ie){var Ue=Ie-be;return Ue?ie(be,Ue):ae(isNaN(be)?Ie:be)}var oe=function be(Ie){var Ue=Q(Ie);function Ne(ze,$e){var st=Ue((ze=L(ze)).r,($e=L($e)).r),vt=Ue(ze.g,$e.g),at=Ue(ze.b,$e.b),nt=J(ze.opacity,$e.opacity);return function(mt){return ze.r=st(mt),ze.g=vt(mt),ze.b=at(mt),ze.opacity=nt(mt),ze+""}}return Ne.gamma=be,Ne}(1);function K(be,Ie){var Ue=Ie?Ie.length:0,Ne=be?Math.min(Ue,be.length):0,ze=new Array(Ne),$e=new Array(Ue),st;for(st=0;stUe&&($e=Ie.slice(Ue,$e),vt[st]?vt[st]+=$e:vt[++st]=$e),(Ne=Ne[0])===(ze=ze[0])?vt[st]?vt[st]+=ze:vt[++st]=ze:(vt[++st]=null,at.push({i:st,x:ce(Ne,ze)})),Ue=le.lastIndex;return Ue{const e=fh(Z_.data.detail.source),r=x=>x.map(F=>(F.label=F.created_time,F.value=F.content,F));return Ce.jsx(Ks,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsxs(La,{direction:"row",alignItems:"center",children:[Ce.jsx(Ii,{component:Ki,to:"../",children:Ce.jsx(dl,{children:Ce.jsx(B5,{})})}),Ce.jsx(ea,{variant:"h6",component:"h1",children:e==null?void 0:e.experiment_name})]}),Ce.jsx(oa,{children:Ce.jsxs(ji,{container:!0,spacing:2,children:[Ce.jsx(ji,{item:!0,md:6,children:Ce.jsx(Ri,{children:e&&Ce.jsx(rc,{rows:e.events,getRowId:x=>x.id,columns:Fbe,initialState:{sorting:{sortModel:[{field:"event_time",sort:"desc"}]}},disableColumnSelector:!0,disableRowSelectionOnClick:!0})})}),Ce.jsx(ji,{item:!0,md:6,children:Ce.jsxs(La,{children:[Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{children:"Notes"}),e&&Ce.jsx(jp,{rows:r(e.notes),labelWidth:200}),Ce.jsxs(oa,{sx:{position:"relative"},children:[Ce.jsx(Ko,{fullWidth:!0,multiline:!0,minRows:2}),Ce.jsx($i,{variant:"contained",endIcon:Ce.jsx(W_,{}),sx:{position:"absolute",bottom:"0.5rem",right:"0.5rem"},children:"Add"})]})]})}),Ce.jsx(Ri,{sx:{padding:2},children:Ce.jsx(PM,{data:[{x:[1,2,3,4],y:[10,15,13,17],type:"scatter"},{x:[1,2,3,4],y:[16,5,11,9],type:"scatter"}],layout:{height:450},useResizeHandler:!0,style:{width:"100%"}})})]})})]})})]})})},Obe=(e,r)=>ms(e).isAfter(ms(r))?1:0,Fbe=[{field:"event_type",headerName:"Event Type",width:200},{field:"event_time",headerName:"Event Time",sortComparator:Obe,width:200},{field:"confidence",headerName:"Confidence",type:"number",width:200}],_be=Object.freeze(Object.defineProperty({__proto__:null,default:Dbe},Symbol.toStringTag,{value:"Module"})),zbe=()=>{const e=fh(Z_.data.items.source),r=JO();return Ce.jsx(Ks,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:Ce.jsxs(La,{children:[Ce.jsx(La,{direction:"row",justifyContent:"space-between",alignItems:"center",children:Ce.jsx(ea,{variant:"h6",component:"h1",children:"Experiments test"})}),Ce.jsx(Ri,{children:Ce.jsx(rc,{rows:e||[],getRowId:x=>x.id,columns:Nbe,initialState:{sorting:{sortModel:[{field:"start_time",sort:"desc"}]}},onRowClick:()=>r("detail"),disableColumnSelector:!0,disableRowSelectionOnClick:!0})})]})})},Bbe=(e,r)=>ms(e).isAfter(ms(r))?1:0,Nbe=[{field:"experiment_name",headerName:"Experiment Name",width:200},{field:"start_time",headerName:"Start Time",sortComparator:Bbe,width:200},{field:"end_time",headerName:"End Time",width:200},{field:"status",headerName:"Status",width:200}],Ube=Object.freeze(Object.defineProperty({__proto__:null,default:zbe},Symbol.toStringTag,{value:"Module"})),Hbe=()=>{const[e,r]=Oe.useState(0),x=()=>{r(e+1)};return Ce.jsx(G_,{children:Ce.jsxs(Ks,{maxWidth:"xl",sx:{marginBottom:3,marginTop:3},children:[Ce.jsx("h1",{children:"Playground"}),Ce.jsxs(La,{direction:"row",spacing:2,sx:{alignItems:"center"},children:[Ce.jsx($i,{variant:"contained",onClick:x,children:"Increment"}),Ce.jsx("p",{children:e})]})]})})},Vbe=Object.freeze(Object.defineProperty({__proto__:null,default:Hbe},Symbol.toStringTag,{value:"Module"}));var w6={},jbe=zl;Object.defineProperty(w6,"__esModule",{value:!0});var K_=w6.default=void 0,Gbe=jbe(Cu()),Wbe=Ce;K_=w6.default=(0,Gbe.default)((0,Wbe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const Zi={properties:{itemName:"scenario",itemNamePlural:"scenarios"},data:{items:{source:"default/run-computation/list.json",idField:"id"},inputs:{source:"default/run-computation/inputs.json",idField:"id"},lineChart:{source:"default/run-computation/results_line_chart.json"},barChart:{source:"default/run-computation/results_bar_chart.json"},results:{source:"default/run-computation/results_table.json",idField:"id"}},pages:{index:{title:"Scenario List",description:"Scenarios represent a set of analysis inputs / parameters / settings and the results of that analysis.",tableColumns:[{field:"name",headerName:"Scenario Name",width:200},{field:"analysisType",headerName:"Analysis Type",width:200},{field:"createdDate",headerName:"Date Created",width:200},{field:"status",headerName:"Status",width:200}]},dataInputs:{title:"Data Inputs",tableColumns:[{field:"name",headerName:"Unit Name",width:200},{field:"unitType",headerName:"Unit Type",width:200},{field:"constraints",headerName:"Constraints",width:200},{field:"lowerBound",headerName:"Lower Bound",width:200,type:"number"},{field:"upperBound",headerName:"Upper Bound",width:200,type:"number"}]},settings:{title:"Optimization Settings"},results:{title:"Results",tableColumns:[{field:"name",headerName:"Unit Name",width:200},{field:"unitType",headerName:"Unit Type",width:200},{field:"constraints",headerName:"Constraints",width:200},{field:"lowerBound",headerName:"Lower Bound",width:200,type:"number"},{field:"upperBound",headerName:"Upper Bound",width:200,type:"number"}]}}},$be=()=>Ce.jsxs(La,{spacing:0,height:"100vh",children:[Ce.jsx(oa,{children:Ce.jsx(d9,{color:"default",position:"static",sx:{backgroundColor:"white",borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsx(x5,{variant:"dense",children:Ce.jsx(La,{direction:"row",alignItems:"center",sx:{flexGrow:1},children:Ce.jsxs(R9,{"aria-label":"breadcrumb",separator:Ce.jsx(K_,{fontSize:"small"}),children:[Ce.jsxs(Ii,{underline:"hover",color:"inherit",to:"..",component:Ki,children:[Zi.properties.itemName," List"]}),Ce.jsx(ea,{color:"text.primary",children:"Optimization Scenario 1"})]})})})})}),Ce.jsx(Jp,{})]}),Ybe=Object.freeze(Object.defineProperty({__proto__:null,default:$be},Symbol.toStringTag,{value:"Module"}));var mm=(e=>(e.SET_LIST_TABLE_DATA="SET_LIST_TABLE_DATA",e.SET_INPUTS_TABLE_DATA="SET_INPUTS_TABLE_DATA",e.SET_RESULTS_TABLE_DATA="SET_RESULTS_TABLE_DATA",e.SET_RESULTS_LINECHART_DATA="SET_RESULTS_LINECHART_DATA",e.SET_RESULTS_BARCHART_DATA="SET_RESULTS_BARCHART_DATA",e))(mm||{});const Xbe=e=>({type:"SET_INPUTS_TABLE_DATA",payload:e}),Zbe=e=>({type:"SET_RESULTS_TABLE_DATA",payload:e}),Kbe=e=>({type:"SET_RESULTS_LINECHART_DATA",payload:e}),Jbe=e=>({type:"SET_RESULTS_BARCHART_DATA",payload:e}),J_=jo.createContext(void 0),Qbe={list:{table:{columns:[],data:[],dataIdField:"id"}},inputs:{table:{columns:[],data:[],dataIdField:"id"}},results:{table:{columns:[],data:[],dataIdField:"id"},lineChart:{data:[]},barChart:{data:[]}}},qbe=(e,r)=>{var F,j,Y,D,O,t,l,S,i,C,w,v,m,a,n,s,o,h;const x={...e};return(j=(F=r.list)==null?void 0:F.table)!=null&&j.columns&&(x.list.table.columns=r.list.table.columns),(D=(Y=r.list)==null?void 0:Y.table)!=null&&D.data&&(x.list.table.data=r.list.table.data),(t=(O=r.list)==null?void 0:O.table)!=null&&t.dataIdField&&(x.list.table.dataIdField=r.list.table.dataIdField),(S=(l=r.inputs)==null?void 0:l.table)!=null&&S.columns&&(x.inputs.table.columns=r.inputs.table.columns),(C=(i=r.inputs)==null?void 0:i.table)!=null&&C.data&&(x.inputs.table.data=r.inputs.table.data),(v=(w=r.inputs)==null?void 0:w.table)!=null&&v.dataIdField&&(x.inputs.table.dataIdField=r.inputs.table.dataIdField),(a=(m=r.results)==null?void 0:m.table)!=null&&a.columns&&(x.results.table.columns=r.results.table.columns),(s=(n=r.results)==null?void 0:n.table)!=null&&s.data&&(x.results.table.data=r.results.table.data),(h=(o=r.results)==null?void 0:o.table)!=null&&h.dataIdField&&(x.results.table.dataIdField=r.results.table.dataIdField),x};function ewe(e,r){switch(r.type){case mm.SET_LIST_TABLE_DATA:return{...e,list:{table:{...e.list.table,data:r.payload}}};case mm.SET_INPUTS_TABLE_DATA:return{...e,inputs:{table:{...e.inputs.table,data:r.payload}}};case mm.SET_RESULTS_TABLE_DATA:return{...e,results:{...e.results,table:{...e.results.table,data:r.payload}}};case mm.SET_RESULTS_LINECHART_DATA:return{...e,results:{...e.results,lineChart:{...e.results.lineChart,data:r.payload}}};case mm.SET_RESULTS_BARCHART_DATA:return{...e,results:{...e.results,barChart:{...e.results.barChart,data:r.payload}}};default:throw new Error(`Unhandled action type: ${r.type}`)}}const twe=e=>{const[r,x]=Oe.useReducer(ewe,qbe(Qbe,e)),F={state:r,dispatch:x};return Ce.jsx(J_.Provider,{value:F,children:e.children})},T6=()=>{const e=Oe.useContext(J_);if(e===void 0)throw new Error("useRunComputation must be used within an RunComputationProvider");return e},rwe=()=>{const{state:e,dispatch:r}=T6(),x=fh(Zi.data.inputs.source);return Oe.useEffect(()=>{(!e.inputs.table.data||e.inputs.table.data.length===0)&&r(Xbe(x))},[x]),Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(RT,{activeStep:0,sx:{maxWidth:850},children:[Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},"Data Inputs"),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},"Optimization Settings"),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},"Results")]})}),Ce.jsxs(La,{direction:"row",spacing:0,flex:1,children:[Ce.jsxs(La,{component:"ul",direction:"column",spacing:0,sx:{backgroundColor:"white",listStyle:"none",margin:0,padding:4,width:300},children:[Ce.jsx(ea,{component:"li",fontWeight:"bold",sx:{marginBottom:2},children:"Categories"}),Ce.jsx(ea,{component:"li",sx:{backgroundColor:"#D9EEFE",borderRight:"4px solid",borderColor:"primary.main",padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Input Units"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Input Streams"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Unit Costing"})]}),Ce.jsx(oa,{flex:1,sx:{overflow:"hidden"},children:Ce.jsx(Ks,{maxWidth:"xl",sx:{mt:4},children:Ce.jsx(Ri,{children:Ce.jsx(rc,{rows:e.inputs.table.data||[],getRowId:F=>F[e.inputs.table.dataIdField],columns:e.inputs.table.columns,disableColumnSelector:!0,disableRowSelectionOnClick:!0})})})})]}),Ce.jsx(oa,{sx:{backgroundColor:"white",borderTop:"1px solid",borderColor:"neutral.main",bottom:0,padding:2,position:"fixed",textAlign:"right",width:"100%"},children:Ce.jsx(Ii,{component:Ki,to:"../settings",children:Ce.jsxs($i,{variant:"contained",children:["Continue to ",Zi.pages.settings.title]})})})]})},nwe=Object.freeze(Object.defineProperty({__proto__:null,default:rwe},Symbol.toStringTag,{value:"Module"})),awe=()=>{const{state:e,dispatch:r}=T6(),x=fh(Zi.data.results.source),F=fh(Zi.data.lineChart.source),j=fh(Zi.data.barChart.source);return Oe.useEffect(()=>{(!e.results.table.data||e.results.table.data.length===0)&&r(Zbe(x))},[x]),Oe.useEffect(()=>{(!e.results.lineChart.data||e.results.lineChart.data.length===0)&&r(Kbe(F))},[F]),Oe.useEffect(()=>{(!e.results.barChart.data||e.results.barChart.data.length===0)&&r(Jbe(j))},[j]),Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(RT,{activeStep:2,sx:{maxWidth:850},children:[Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},"Data Inputs"),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},"Optimization Settings"),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},"Results")]})}),Ce.jsxs(La,{direction:"row",spacing:0,flex:1,children:[Ce.jsxs(La,{component:"ul",direction:"column",spacing:0,sx:{backgroundColor:"white",listStyle:"none",margin:0,padding:4,width:300},children:[Ce.jsx(ea,{component:"li",fontWeight:"bold",sx:{marginBottom:2},children:"Categories"}),Ce.jsx(ea,{component:"li",sx:{backgroundColor:"#D9EEFE",borderRight:"4px solid",borderColor:"primary.main",padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"Summary"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"System Costing"}),Ce.jsx(ea,{component:"li",sx:{padding:"1rem 2rem",marginLeft:"-2rem !important",marginRight:"-2rem !important"},children:"System Metrics"})]}),Ce.jsx(oa,{flex:1,children:Ce.jsx(Ks,{maxWidth:"xl",sx:{mt:4},children:Ce.jsxs(ji,{container:!0,spacing:4,children:[Ce.jsx(ji,{item:!0,sm:6,children:Ce.jsx(Ri,{children:Ce.jsx(PM,{data:e.results.lineChart.data,layout:{}})})}),Ce.jsx(ji,{item:!0,sm:6,children:Ce.jsx(Ri,{children:Ce.jsx(PM,{data:e.results.barChart.data,layout:{}})})}),Ce.jsx(ji,{item:!0,xs:12,children:Ce.jsx(Ri,{children:Ce.jsx(rc,{rows:e.results.table.data||[],getRowId:Y=>Y[e.results.table.dataIdField],columns:e.results.table.columns,disableColumnSelector:!0,disableRowSelectionOnClick:!0})})})]})})})]}),Ce.jsx(oa,{sx:{backgroundColor:"white",borderTop:"1px solid",borderColor:"neutral.main",bottom:0,padding:2,position:"fixed",width:"100%"},children:Ce.jsx(Ii,{component:Ki,to:"../settings",children:Ce.jsxs($i,{variant:"contained",children:["Back to ",Zi.pages.settings.title]})})})]})},iwe=Object.freeze(Object.defineProperty({__proto__:null,default:awe},Symbol.toStringTag,{value:"Module"})),owe=()=>{const[e,r]=Oe.useState(!0);return Oe.useEffect(()=>{setTimeout(()=>{r(!1)},2e3)}),Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(RT,{activeStep:1,sx:{maxWidth:850},children:[Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},Zi.pages.dataInputs.title),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},Zi.pages.settings.title),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},Zi.pages.results.title)]})}),Ce.jsx(Ks,{maxWidth:"md",sx:{mt:4},children:Ce.jsxs(Ri,{sx:{padding:6,textAlign:"center"},children:[e&&Ce.jsxs(La,{spacing:6,children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:"Running Optimization"}),Ce.jsxs(oa,{color:"neutral.dark",children:[Ce.jsx(ea,{children:"This could take several minutes."}),Ce.jsx(ea,{children:"You may leave this page and return later. Your progress will not be affected."})]}),Ce.jsx(Pb,{variant:"indeterminate",sx:{height:10}}),Ce.jsx(ea,{color:"neutral.dark",children:"Started 05/24/2023 12:32:33"})]}),!e&&Ce.jsxs(La,{spacing:6,children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:"Complete"}),Ce.jsx(oa,{color:"neutral.dark",children:Ce.jsx(ea,{children:"Your results are ready to view."})}),Ce.jsx(Ii,{component:Ki,to:"../results",children:Ce.jsx($i,{variant:"contained",size:"large",children:"Continue to Results"})}),Ce.jsx(ea,{color:"neutral.dark",children:"Started 05/24/2023 9:32:33 AM, Ended 05/24/2023 11:47:03 AM"})]})]})})]})},swe=Object.freeze(Object.defineProperty({__proto__:null,default:owe},Symbol.toStringTag,{value:"Module"})),lwe=()=>{const[e,r]=Oe.useState(!1),x=()=>{r(!e)};return Ce.jsxs(La,{spacing:0,flex:1,children:[Ce.jsx(oa,{sx:{backgroundColor:"white",padding:2,borderBottom:"1px solid",borderColor:"neutral.main"},children:Ce.jsxs(RT,{activeStep:1,sx:{maxWidth:850},children:[Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../data-inputs",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.dataInputs.title})})},Zi.pages.dataInputs.title),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../settings",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.settings.title})})},Zi.pages.settings.title),Ce.jsx(Sf,{children:Ce.jsx(Ec,{children:Ce.jsx(Ii,{component:Ki,to:"../results",sx:{color:"inherit",textDecoration:"none"},children:Zi.pages.results.title})})},Zi.pages.results.title)]})}),Ce.jsx(Ks,{maxWidth:"md",sx:{mt:4},children:Ce.jsx(Ri,{sx:{padding:3},children:Ce.jsxs(La,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:Zi.pages.settings.title}),Ce.jsxs(ji,{container:!0,rowSpacing:2,alignItems:"center",children:[Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Solver"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(oh,{fullWidth:!0,children:Ce.jsxs(gd,{id:"solver-select",children:[Ce.jsx(uo,{value:10,children:"Solver 1"}),Ce.jsx(uo,{value:20,children:"Solver 2"}),Ce.jsx(uo,{value:30,children:"Solver 3"})]})})}),Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Objective"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(oh,{fullWidth:!0,children:Ce.jsxs(gd,{id:"objective-select",children:[Ce.jsx(uo,{value:10,children:"Objective 1"}),Ce.jsx(uo,{value:20,children:"Objective 2"}),Ce.jsx(uo,{value:30,children:"Objective 3"})]})})}),Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Time Constraints"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(Ko,{id:"time-constraints-field",variant:"outlined",fullWidth:!0})})]}),Ce.jsx(oa,{children:Ce.jsxs($i,{onClick:x,children:[e?"Hide":"Show"," advanced settings"]})}),e&&Ce.jsxs(ji,{container:!0,rowSpacing:2,alignItems:"center",children:[Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Another Setting"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(oh,{fullWidth:!0,children:Ce.jsxs(gd,{id:"another-select",children:[Ce.jsx(uo,{value:10,children:"Another Setting 1"}),Ce.jsx(uo,{value:20,children:"Another Setting 2"}),Ce.jsx(uo,{value:30,children:"Another Setting 3"})]})})}),Ce.jsx(ji,{item:!0,md:3,children:Ce.jsx(ea,{children:"Another Setting"})}),Ce.jsx(ji,{item:!0,md:9,children:Ce.jsx(oh,{fullWidth:!0,children:Ce.jsxs(gd,{id:"another-2-select",children:[Ce.jsx(uo,{value:10,children:"Another Setting 1"}),Ce.jsx(uo,{value:20,children:"Another Setting 2"}),Ce.jsx(uo,{value:30,children:"Another Setting 3"})]})})})]}),Ce.jsx(oa,{textAlign:"right",children:Ce.jsx(Ii,{component:Ki,to:"../running",children:Ce.jsxs($i,{variant:"contained",sx:{marginTop:4},children:["Run ",Zi.properties.itemName]})})})]})})})]})},uwe=Object.freeze(Object.defineProperty({__proto__:null,default:lwe},Symbol.toStringTag,{value:"Module"}));var S6={},cwe=zl;Object.defineProperty(S6,"__esModule",{value:!0});var Q_=S6.default=void 0,fwe=cwe(Cu()),dwe=Ce;Q_=S6.default=(0,fwe.default)((0,dwe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");const hwe=()=>{const e=fh(Zi.data.items.source);return Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(twe,{list:{table:{data:e,dataIdField:Zi.data.items.idField,columns:[...Zi.pages.index.tableColumns,{field:"actions",headerName:"Actions",type:"actions",getActions:r=>[Ce.jsx(rv,{icon:Ce.jsx(Q_,{}),label:"Duplicate"}),Ce.jsx(rv,{icon:Ce.jsx(QT,{}),label:"Edit"}),Ce.jsx(rv,{icon:Ce.jsx(JT,{}),label:"Delete"})],flex:1}]}},inputs:{table:{data:[],dataIdField:Zi.data.inputs.idField,columns:Zi.pages.dataInputs.tableColumns}},results:{table:{data:[],dataIdField:Zi.data.results.idField,columns:Zi.pages.results.tableColumns}},children:Ce.jsx(Jp,{})})})]})},vwe=Object.freeze(Object.defineProperty({__proto__:null,default:hwe},Symbol.toStringTag,{value:"Module"})),pwe=({modalOpen:e,setModalOpen:r})=>{const x=()=>{r(!1)};return Ce.jsx(LT,{open:e,onClose:x,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:Ce.jsxs(La,{direction:"column",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:550,bgcolor:"background.paper",border:"1px solid #ccc",boxShadow:24,p:4},children:[Ce.jsxs(ea,{id:"modal-modal-title",variant:"h6",component:"h2",children:["New Analysis ",Zi.properties.itemName]}),Ce.jsxs(oh,{fullWidth:!0,children:[Ce.jsx(Py,{id:"analysis-type-select-label",children:"Analysis Type"}),Ce.jsxs(gd,{labelId:"analysis-type-select-label",id:"analysis-type-select",label:"Age",children:[Ce.jsx(uo,{value:10,children:"Analysis Type 1"}),Ce.jsx(uo,{value:20,children:"Analysis Type 2"}),Ce.jsx(uo,{value:30,children:"Analysis Type 3"})]})]}),Ce.jsxs(oh,{fullWidth:!0,children:[Ce.jsx(Py,{id:"model-select-label",children:"Model"}),Ce.jsxs(gd,{labelId:"model-select-label",id:"model-select",label:"Model",children:[Ce.jsx(uo,{value:10,children:"Model 1"}),Ce.jsx(uo,{value:20,children:"Model 2"}),Ce.jsx(uo,{value:30,children:"Model 3"})]})]}),Ce.jsx(Ko,{id:"name-field",label:"Scenario Name",variant:"outlined"}),Ce.jsx(Ko,{id:"description-field",label:"Description",multiline:!0,rows:4}),Ce.jsx(oa,{textAlign:"right",children:Ce.jsx(Ii,{component:Ki,to:"scenario/data-inputs",children:Ce.jsx($i,{variant:"contained",children:"Create"})})})]})})},kR=()=>{const{state:e}=T6(),[r,x]=Oe.useState(!1),F=()=>{x(!0)};return Ce.jsx(oa,{children:Ce.jsx(Ks,{maxWidth:"xl",sx:{mt:4},children:Ce.jsxs(Ri,{children:[Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",sx:{padding:2},children:[Ce.jsxs(oa,{flex:1,children:[Ce.jsx(ea,{variant:"h6",component:"h1",children:Zi.pages.index.title}),Ce.jsx(ea,{variant:"subtitle1",component:"p",children:Zi.pages.index.description})]}),Ce.jsxs($i,{variant:"contained",onClick:F,children:["New ",Zi.properties.itemName]}),Ce.jsx(pwe,{modalOpen:r,setModalOpen:x})]}),Ce.jsx(rc,{rows:e.list.table.data,getRowId:j=>j[e.list.table.dataIdField],columns:e.list.table.columns,disableColumnSelector:!0,disableRowSelectionOnClick:!0})]})})})},gwe=Object.freeze(Object.defineProperty({__proto__:null,ListPage:kR,default:kR},Symbol.toStringTag,{value:"Module"}));var C6={},mwe=zl;Object.defineProperty(C6,"__esModule",{value:!0});var q_=C6.default=void 0,ywe=mwe(Cu()),xwe=Ce;q_=C6.default=(0,ywe.default)((0,xwe.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");var M6={},bwe=zl;Object.defineProperty(M6,"__esModule",{value:!0});var ez=M6.default=void 0,wwe=bwe(Cu()),Twe=Ce;ez=M6.default=(0,wwe.default)((0,Twe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const tz=Oe.createContext(null);function Swe(){const[e,r]=Oe.useState(null);return Oe.useEffect(()=>{r(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function Cwe(e){const{children:r,value:x}=e,F=Swe(),j=Oe.useMemo(()=>({idPrefix:F,value:x}),[F,x]);return Ce.jsx(tz.Provider,{value:j,children:r})}function rz(){return Oe.useContext(tz)}function nz(e,r){const{idPrefix:x}=e;return x===null?null:`${e.idPrefix}-P-${r}`}function az(e,r){const{idPrefix:x}=e;return x===null?null:`${e.idPrefix}-T-${r}`}const Mwe=["children"],Awe=Oe.forwardRef(function(r,x){const{children:F}=r,j=hn(r,Mwe),Y=rz();if(Y===null)throw new TypeError("No TabContext provided");const D=Oe.Children.map(F,O=>Oe.isValidElement(O)?Oe.cloneElement(O,{"aria-controls":nz(Y,O.props.value),id:az(Y,O.props.value)}):null);return Ce.jsx(Qne,Ge({},j,{ref:x,value:Y.value,children:D}))});function Ewe(e){return ka("MuiTabPanel",e)}Ca("MuiTabPanel",["root"]);const Pwe=["children","className","value"],Lwe=e=>{const{classes:r}=e;return qn({root:["root"]},Ewe,r)},Iwe=ln("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({padding:e.spacing(3)})),BC=Oe.forwardRef(function(r,x){const F=zo({props:r,name:"MuiTabPanel"}),{children:j,className:Y,value:D}=F,O=hn(F,Pwe),t=Ge({},F),l=Lwe(t),S=rz();if(S===null)throw new TypeError("No TabContext provided");const i=nz(S,D),C=az(S,D);return Ce.jsx(Iwe,Ge({"aria-labelledby":C,className:Ln(l.root,Y),hidden:D!==S.value,id:i,ref:x,role:"tabpanel",ownerState:t},O,{children:D===S.value&&j}))});var ym=(e=>(e.SET_DATA="SET_DATA",e.SET_SEARCH="SET_SEARCH",e.SET_FILTERED_DATA="SET_FILTERED_DATA",e.SET_FILTER="SET_FILTER",e.SET_PREVIEW_ITEM="SET_PREVIEW_ITEM",e))(ym||{});const Rwe=e=>({type:"SET_DATA",payload:e}),kwe=e=>({type:"SET_SEARCH",payload:e}),Dwe=e=>({type:"SET_FILTERED_DATA",payload:e}),iz=e=>({type:"SET_PREVIEW_ITEM",payload:e}),oz=jo.createContext(void 0),Owe={data:[],cardFields:{title:"",content:"",tags:""},columns:[],filters:[],filterValues:{},activeFilters:[],dataIdField:"id",tablePage:0,tablePageSize:25},Fwe=(e,r)=>{const{children:x,...F}=r;return{...e,...F}};function _we(e,r){switch(r.type){case ym.SET_DATA:return{...e,data:r.payload};case ym.SET_SEARCH:return{...e,searchTerm:r.payload};case ym.SET_FILTERED_DATA:return{...e,filteredData:r.payload};case ym.SET_FILTER:{const x=r.payload,F=e.activeFilters.findIndex(Y=>Y.field===x.field),j=[...e.activeFilters];return F>-1?x.value?j[F]=x:j.splice(F,1):x.value&&j.push(x),{...e,activeFilters:j}}case ym.SET_PREVIEW_ITEM:return{...e,previewItem:r.payload};default:throw new Error(`Unhandled action type: ${r.type}`)}}const zwe=e=>{const[r,x]=Oe.useReducer(_we,Fwe(Owe,e)),F={state:r,dispatch:x};return Oe.useEffect(()=>{x(Rwe(e.data))},[e.data]),Oe.useEffect(()=>{if(r.data){const j=H_(r.data,r.activeFilters,r.filters,r.searchTerm);x(Dwe(j))}},[r.data,r.searchTerm,JSON.stringify(r.activeFilters)]),Ce.jsx(oz.Provider,{value:F,children:e.children})},Vb=()=>{const e=Oe.useContext(oz);if(e===void 0)throw new Error("useSearchDataRepositories must be used within an SearchDataRepositoriesProvider");return e},Bwe=()=>{var O;const{state:e}=Vb(),r=QO(),x=(O=e.data)==null?void 0:O.find(t=>{if(r.id)return t.id===parseInt(r.id)}),F=x?x.title:"Not Found",[j,Y]=jo.useState("1"),D=(t,l)=>{Y(l)};return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:F,breadcrumbTitle:"Dataset Detail",sx:{marginBottom:1,padding:2}}),Ce.jsx(Ks,{maxWidth:"xl",children:Ce.jsxs(ji,{container:!0,spacing:1,sx:{pt:1,pr:2,pb:2,pl:2},children:[x&&Ce.jsxs(Ce.Fragment,{children:[Ce.jsxs(ji,{item:!0,md:8,xs:12,children:[Ce.jsx(Ri,{sx:{mb:1},children:Ce.jsxs(La,{p:2,children:[Ce.jsxs(La,{direction:"row",children:[Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Dates"}),Ce.jsx(jp,{rows:[{label:"Publication",value:x.publication_date},{label:"Start Date",value:x.start_date},{label:"End Date",value:x.end_date}]})]}),Ce.jsxs(oa,{flex:1,children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Citation"}),Ce.jsx(ea,{children:x.citation})]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Summary"}),Ce.jsx(ea,{children:x.summary})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Purpose"}),Ce.jsx(ea,{children:x.purpose})]})]})}),Ce.jsx(Ri,{children:Ce.jsxs(Cwe,{value:j,children:[Ce.jsx(oa,{sx:{borderBottom:1,borderColor:"divider"},children:Ce.jsxs(Awe,{onChange:D,"aria-label":"lab API tabs example",children:[Ce.jsx(mC,{label:"Data Files",value:"1"}),Ce.jsx(mC,{label:"Data Types",value:"2"}),Ce.jsx(mC,{label:"Metadata",value:"3"})]})}),Ce.jsxs(BC,{value:"1",children:[Ce.jsx(La,{direction:"row",justifyContent:"flex-end",children:Ce.jsx($i,{variant:"contained",children:"Download all files"})}),Ce.jsx(rc,{rows:x.attached_files,getRowId:t=>t.file_id,columns:Nwe,disableColumnSelector:!0,disableRowSelectionOnClick:!0,sx:{border:"none"}})]}),Ce.jsx(BC,{value:"2",children:"Tab Two Content"}),Ce.jsx(BC,{value:"3",children:"Tab Three Content"})]})})]}),Ce.jsx(ji,{item:!0,md:4,xs:12,children:Ce.jsx(Ri,{children:Ce.jsxs(La,{p:2,children:[Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Map"}),Ce.jsx(oa,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"neutral.dark",height:300},children:Ce.jsx(ea,{children:""})})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Tags"}),x.tags.map((t,l)=>lCe.jsx("li",{children:Ce.jsx(Ii,{href:t.url,target:"_blank",children:t.title})}))})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Associated Projects"}),Ce.jsx("ul",{children:x.associated_projects.map((t,l)=>Ce.jsx("li",{children:Ce.jsx(Ii,{href:t.url,target:"_blank",children:t.title})}))})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{variant:"h6",component:"h2",mb:1,children:"Contacts"}),Ce.jsx(jp,{rows:[{label:"Point of Contact",value:x.point_of_contact},{label:"Originator",value:x.originator},{label:"Metadata Contact",value:x.metadata_contact},{label:"Publisher",value:x.publisher},{label:"Distributor",value:x.distributor},{label:"USGS Mission Area",value:x.usgs_mission_area}]})]})]})})})]}),!x&&Ce.jsx(ea,{children:"Could not find this dataset"})]})})]})},Nwe=[{field:"file_name",headerName:"File Name",flex:1},{field:"description",headerName:"Description",flex:1},{field:"file_size",headerName:"Size",width:150},{field:"actions",headerName:"",type:"actions",getActions:e=>[Ce.jsx(rv,{icon:Ce.jsx(q_,{}),label:"Download"}),Ce.jsx(rv,{icon:Ce.jsx(ez,{}),label:"View"})],flex:1}],Uwe=Object.freeze(Object.defineProperty({__proto__:null,default:Bwe},Symbol.toStringTag,{value:"Module"})),_m={data:{items:{source:"default/search-data-repositories/datasets.json",idField:"id"}},pages:{index:{title:"Search Data Repositories App",description:"Description of this app section",cardFields:{title:"title",content:"summary",tags:"tags"},cardFilters:[{field:"category",label:"Category",filterComponent:"CheckboxList",filterProps:{options:[{label:"Groundwater",value:"Groundwater"},{label:"Fires",value:"Fires"},{label:"Floods",value:"Floods"},{label:"Earthquakes",value:"Earthquakes"}]}},{field:"tags",label:"Tags",filterComponent:"CheckboxList",filterProps:{options:[{label:"Boreal forest",value:"Boreal forest"},{label:"Carbon and greenhouse gas emissions",value:"Carbon and greenhouse gas emissions"},{label:"Ecology",value:"Ecology"}]}},{field:"publication_date",label:"Publication Date",filterComponent:"DateRange"}]}}},Hwe=()=>{const e=fh(_m.data.items.source);return Ce.jsxs(oa,{children:[Ce.jsx(oa,{sx:{flexGrow:1},children:Ce.jsx(Cg,{})}),Ce.jsx(oa,{children:Ce.jsx(zwe,{data:e,dataIdField:_m.data.items.idField,filters:_m.pages.index.cardFilters,cardFields:_m.pages.index.cardFields,children:Ce.jsx(Jp,{})})})]})},Vwe=Object.freeze(Object.defineProperty({__proto__:null,default:Hwe},Symbol.toStringTag,{value:"Module"}));var A6={},jwe=zl;Object.defineProperty(A6,"__esModule",{value:!0});var sz=A6.default=void 0,Gwe=jwe(Cu()),Wwe=Ce;sz=A6.default=(0,Gwe.default)((0,Wwe.jsx)("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.61"}),"FilterAlt");var E6={},$we=zl;Object.defineProperty(E6,"__esModule",{value:!0});var lz=E6.default=void 0,Ywe=$we(Cu()),Xwe=Ce;lz=E6.default=(0,Ywe.default)((0,Xwe.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const Zwe=({item:e})=>{var j;const{state:r,dispatch:x}=Vb(),F=Y=>{x(iz(Y))};return Ce.jsxs(La,{className:((j=r.previewItem)==null?void 0:j.id)===e.id?"selected":"",direction:"row",onClick:()=>F(e),sx:{padding:1,transition:"0.25s","&:hover":{bgcolor:"neutral.light"},"&.selected":{bgcolor:O0[50]}},children:[Ce.jsx(oa,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"neutral.dark",height:70,width:70},children:Ce.jsx(ea,{fontSize:"small",children:""})}),Ce.jsxs(oa,{flex:1,children:[Ce.jsx(ea,{sx:{color:"primary.main",fontWeight:"bold"},children:Ce.jsx(Ii,{component:Ki,to:`./${e.id}`,underline:"hover",children:e[r.cardFields.title]})}),r.cardFields.content&&Ce.jsxs(ea,{sx:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden"},children:[e[r.cardFields.content]," test"]}),r.cardFields.tags&&Ce.jsx(ea,{sx:{WebkitBoxOrient:"vertical",WebkitLineClamp:"1",display:"-webkit-box",fontStyle:"italic",overflow:"hidden"},children:e[r.cardFields.tags].map((Y,D)=>D{var j;const{state:r,dispatch:x}=Vb(),F=Y=>{x(kwe(Y.target.value))};return Ce.jsxs(Ri,{children:[Ce.jsxs(La,{direction:"row",spacing:2,alignItems:"center",sx:{padding:2},children:[Ce.jsx($i,{startIcon:Ce.jsx(sz,{}),onClick:e.onToggleFiltersPanel,children:"Filters"}),Ce.jsx($i,{startIcon:Ce.jsx(lz,{}),children:"Sort"}),Ce.jsx(oa,{flex:1,children:Ce.jsx(Ko,{variant:"outlined",label:"Search",size:"small",fullWidth:!0,onChange:F})})]}),Ce.jsxs(La,{direction:"row",sx:{padding:2},children:[Ce.jsx(La,{flex:1,children:(j=r.filteredData)==null?void 0:j.map((Y,D)=>Ce.jsx(Zwe,{item:Y},Y[r.dataIdField]))}),!r.previewItem&&Ce.jsx(oa,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"neutral.dark",height:700,width:400},children:Ce.jsx(ea,{children:""})})]}),Ce.jsx(bte,{count:10})]})},Jwe=e=>Ce.jsx(j_,{onClose:e.onClose,sx:{paddingTop:3,paddingBottom:3,paddingLeft:2,paddingRight:2}}),Qwe=e=>{const{state:r}=Vb();return Ce.jsx(Ri,{elevation:0,sx:{height:"100%",padding:2},children:Ce.jsxs(La,{spacing:3,children:[Ce.jsxs(La,{spacing:1,children:[Ce.jsxs(La,{direction:"row",children:[Ce.jsx(ea,{variant:"h6",component:"h3",flex:1,children:Ce.jsx(Ii,{component:Ki,to:`./${r.previewItem.id}`,underline:"hover",children:r.previewItem[r.cardFields.title]})}),Ce.jsx(dl,{size:"small",onClick:e.onClose,children:Ce.jsx(Ub,{})})]}),Ce.jsx(ea,{variant:"body2",children:"(Optional) Entity description or helper text."})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Dates"}),Ce.jsx(jp,{rows:[{label:"Publication Date",value:"2019-01-01"},{label:"Start Date",value:"2019-01-01"},{label:"End Date",value:"2019-01-01"}]})]}),Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Citation"}),Ce.jsx(ea,{children:"Labore proident do aute et esse adipisicing veniam eiusmod culpa pariatur sunt officia."})]}),r.cardFields.content&&Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Summary"}),Ce.jsx(ea,{children:r.previewItem[r.cardFields.content]})]}),r.cardFields.tags&&Ce.jsxs(oa,{children:[Ce.jsx(ea,{fontWeight:"medium",mb:1,children:"Tags"}),Ce.jsx(ea,{children:r.previewItem[r.cardFields.tags].map((x,F)=>r.cardFields.tags&&Fx.file_name,rows:e3e,columns:qwe,disableRowSelectionOnClick:!0,initialState:{pagination:{paginationModel:{pageSize:5}}}})]}),Ce.jsxs(La,{direction:"row",children:[Ce.jsx(Ii,{component:Ki,to:`./${r.previewItem.id}`,children:Ce.jsx($i,{variant:"contained",children:"View datasets"})}),Ce.jsx($i,{variant:"outlined",children:"Download files"})]})]})})},qwe=[{field:"file_name",headerName:"File Name",flex:1},{field:"file_size",headerName:"Size",type:"number",width:150}],e3e=[{file_name:"file1.csv",file_size:"15 MB"},{file_name:"file2.json",file_size:"117 MB"},{file_name:"file3.json",file_size:"4 MB"}],t3e=()=>{const{state:e,dispatch:r}=Vb(),[x,F]=Oe.useState(!0),j=()=>{F(!1)},Y=()=>{F(!x)},D=()=>{r(iz(null))};return Ce.jsxs(oa,{children:[Ce.jsx(Mg,{pageTitle:_m.pages.index.title,description:_m.pages.index.description,sx:{marginBottom:1,padding:2}}),Ce.jsxs(ji,{container:!0,spacing:1,children:[x&&Ce.jsx(ji,{item:!0,xs:2,children:Ce.jsx(Jwe,{onClose:j})}),Ce.jsx(ji,{item:!0,xs:r3e(x,!!e.previewItem),children:Ce.jsx(Kwe,{onToggleFiltersPanel:Y})}),e.previewItem&&Ce.jsx(ji,{item:!0,xs:4,children:Ce.jsx(Qwe,{onClose:D})})]})]})},r3e=(e,r)=>{if(!e&&!r)return 12;if(e&&!r)return 10;if(!e&&r)return 8;if(e&&r)return 6},n3e=Object.freeze(Object.defineProperty({__proto__:null,default:t3e},Symbol.toStringTag,{value:"Module"}));var dp={route:[/^.*\/src\/pages\/|\.(jsx|tsx|mdx)$/g,""],splat:[/\[\.{3}\w+\]/g,"*"],param:[/\[([^\]]+)\]/g,":$1"],slash:[/^index$|\./g,"/"],optional:[/^-(:?[\w-]+|\*)/,"$1?"]},a3e=e=>Object.keys(e).reduce((r,x)=>{const F=x.replace(...dp.route);return{...r,[F]:e[x]}},{}),i3e=(e,r)=>Object.keys(e).filter(F=>!F.includes("/_")||/_layout\.(jsx|tsx)$/.test(F)).reduce((F,j)=>{const Y=e[j],D={id:j.replace(...dp.route),...r(Y,j)},O=j.replace(...dp.route).replace(...dp.splat).replace(...dp.param).split("/").filter(Boolean);return O.reduce((t,l,S)=>{var s;const i=l.replace(...dp.slash).replace(...dp.optional),C=S===0,w=S===O.length-1&&O.length>1,v=!C&&!w,m=l==="_layout",a=/\([\w-]+\)/.test(i),n=/^\w|\//.test(i)?"unshift":"push";if(C&&O.length===1)return F.push({path:i,...D}),t;if(C||v){const o=C?F:t.children,h=o==null?void 0:o.find(u=>{var b;return u.path===i||((b=u.id)==null?void 0:b.replace("/_layout","").endsWith(i))}),f=a?D!=null&&D.component?{id:i,path:"/"}:{id:i}:{path:i};return h?h.children??(h.children=[]):o==null||o[n]({...f,children:[]}),h||(o==null?void 0:o[n==="unshift"?0:o.length-1])}return m?Object.assign(t,D):(w&&((s=t==null?void 0:t.children)==null||s[n](D!=null&&D.index?D:{path:i,...D})),t)},{}),F},[]),o3e=e=>Object.keys(e).reduce((r,x)=>{var j;const F=x.replace(...dp.route).replace(/\+|\([\w-]+\)\//g,"").replace(/(\/)?index/g,"").replace(/\./g,"/");return{...r,[`/${F}`]:(j=e[x])==null?void 0:j.default}},{}),s3e=Object.assign({}),l3e=Object.assign({}),u3e=Object.assign({"/src/pages/compare-data/_layout.tsx":Vce,"/src/pages/compare-data/compare.tsx":C1e,"/src/pages/compare-data/index.tsx":A1e,"/src/pages/compare-data/new.tsx":E1e,"/src/pages/contribute-data/_layout.tsx":O1e,"/src/pages/contribute-data/index.tsx":_1e,"/src/pages/contribute-data/new.tsx":Y1e,"/src/pages/contribute-data/portal.tsx":K1e,"/src/pages/contribute-data/review.tsx":axe,"/src/pages/explore-data/[id].tsx":Hxe,"/src/pages/explore-data/_layout.tsx":jxe,"/src/pages/explore-data/index.tsx":wbe,"/src/pages/index.tsx":Cbe,"/src/pages/monitor-activities/_layout.tsx":Abe,"/src/pages/monitor-activities/calendar.tsx":Pbe,"/src/pages/monitor-activities/detail.tsx":_be,"/src/pages/monitor-activities/index.tsx":Ube,"/src/pages/playground/index.tsx":Vbe,"/src/pages/run-computation/[id]/_layout.tsx":Ybe,"/src/pages/run-computation/[id]/data-inputs.tsx":nwe,"/src/pages/run-computation/[id]/results.tsx":iwe,"/src/pages/run-computation/[id]/running.tsx":swe,"/src/pages/run-computation/[id]/settings.tsx":uwe,"/src/pages/run-computation/_layout.tsx":vwe,"/src/pages/run-computation/index.tsx":gwe,"/src/pages/search-data-repositories/[id].tsx":Uwe,"/src/pages/search-data-repositories/_layout.tsx":Vwe,"/src/pages/search-data-repositories/index.tsx":n3e}),Qm=a3e(s3e),c3e=o3e(l3e),f3e=i3e(u3e,(e,r)=>{const x=/index\.(jsx|tsx|mdx)$/.test(r)&&!r.includes("pages/index")?{index:!0}:{},F=(e==null?void 0:e.default)||Oe.Fragment;return{...x,Component:()=>e!=null&&e.Pending?Ce.jsx(Oe.Suspense,{fallback:Ce.jsx(e.Pending,{}),children:Ce.jsx(F,{})}):Ce.jsx(F,{}),ErrorBoundary:e==null?void 0:e.Catch,loader:e==null?void 0:e.Loader,action:e==null?void 0:e.Action}}),ql=Qm==null?void 0:Qm._app,NC=Qm==null?void 0:Qm["404"],d3e=(ql==null?void 0:ql.default)||Jp,h3e=()=>{var r;const e=c3e[(r=kb().state)==null?void 0:r.modal]||Oe.Fragment;return Ce.jsx(e,{})},LM=()=>Ce.jsxs(Ce.Fragment,{children:[Ce.jsx(d3e,{})," ",Ce.jsx(h3e,{})]}),v3e=()=>ql!=null&&ql.Pending?Ce.jsx(Oe.Suspense,{fallback:Ce.jsx(ql.Pending,{}),children:Ce.jsx(LM,{})}):Ce.jsx(LM,{}),p3e={Component:ql!=null&&ql.default?v3e:LM,ErrorBoundary:ql==null?void 0:ql.Catch,loader:ql==null?void 0:ql.Loader},g3e={path:"*",Component:(NC==null?void 0:NC.default)||Oe.Fragment},S2=[{...p3e,children:[...f3e,g3e]}];rF(S2);const m3e=YA({palette:{mode:"light",background:{default:"#F5F5F6",paper:"#fff"},primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0",contrastText:"#fff"},secondary:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2",contrastText:"#fff"},info:{main:"#0288d1",light:"#03a9f4",dark:"#01579b",contrastText:"#fff"},success:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20",contrastText:"#fff"},warning:{main:"#ed6c02",light:"#ff9800",dark:"#e65100",contrastText:"#fff"},error:{main:"#d32f2f",light:"#ef5350",dark:"#c62828",contrastText:"#fff"},neutral:{main:"#DADADA",light:"#e0e0e0",dark:"#828282"},common:{black:"#000",white:"#fff"},grey:{50:"#ddd",500:"#999",900:"#444"}},shape:{borderRadius:4},typography:{htmlFontSize:16,fontFamily:'"Helvetica", "Verdana", "Arial", sans-serif',fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700},components:{MuiButton:{variants:[{props:{color:"neutral"},style:{backgroundColor:"white",borderColor:"#bdbdbd",color:"#757575"}}]},MuiLink:{styleOverrides:{root:{textDecoration:"none"}}},MuiStack:{defaultProps:{spacing:2}},MuiDataGrid:{styleOverrides:{root:{border:0,"& .MuiDataGrid-cell:focus-within":{outline:"none"},"& .MuiDataGrid-overlayWrapper":{minHeight:"4rem"},"& .MuiDataGrid-columnHeaderTitle":{color:"grey.900",fontSize:"0.85rem",fontWeight:"bold",textTransform:"uppercase"}}}}}}),y3e=()=>{const e=dF(),[r,x]=Oe.useState(""),[F,j]=Oe.useState(""),Y=()=>{e.dispatch(Lce())},D=()=>{localStorage.setItem("apiTokenName",r),localStorage.setItem("apiTokenValue",F),window.location.reload()};return Ce.jsx("div",{children:Ce.jsx(LT,{open:e.state.apiModalOpen,onClose:Y,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:Ce.jsx(Ri,{sx:{left:"50%",p:4,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:500},children:Ce.jsxs(La,{spacing:2,children:[Ce.jsx(ea,{variant:"h6",component:"h2",children:"API Authentication Required"}),Ce.jsx(ea,{children:"Enter the name of your API token (e.g. X-ApiToken) and the value of your API token (e.g. abc123)."}),Ce.jsx(Ko,{value:r,label:"Name",onChange:O=>{x(O.target.value)}}),Ce.jsx(Ko,{value:F,label:"Value",type:"password",onChange:O=>{j(O.target.value)}}),Ce.jsx($i,{variant:"contained",onClick:D,children:"Submit"})]})})})})},x3e=new Txe,b3e=()=>(Oe.useEffect(()=>{document.title=Ap.title},[]),Ce.jsx(Exe,{client:x3e,children:Ce.jsx(kT,{dateAdapter:zO,children:Ce.jsxs(iY,{theme:m3e,children:[Ce.jsx(HJ,{}),Ce.jsxs(Dce,{children:[Ce.jsx(sce,{router:rF(S2,{basename:"/strudel-kit/demo/"})}),Ce.jsx(y3e,{})]})]})})}));UC.createRoot(document.getElementById("root")).render(Ce.jsx(jo.StrictMode,{children:Ce.jsx(b3e,{})})); diff --git a/demo/index.html b/demo/index.html index c3a9effb..541ff9ee 100644 --- a/demo/index.html +++ b/demo/index.html @@ -5,7 +5,7 @@ - +