Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
/*! For license information please see 21571.047276997b77dee6f381.js.LICENSE.txt */ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39d088ed-d405-43fe-ac54-40c8ccd078a4",e._sentryDebugIdIdentifier="sentry-dbid-39d088ed-d405-43fe-ac54-40c8ccd078a4")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"5.497.0"},(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[21571],{37726:e=>{"use strict";var t=String.prototype.replace,o=/%20/g,i="RFC1738",n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:n}},11130:(e,t,o)=>{"use strict";var i=o(4295),n=o(9001),r=o(37726);e.exports={formats:r,parse:n,stringify:i}},9001:(e,t,o)=>{"use strict";var i=o(33208),n=Object.prototype.hasOwnProperty,r=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,o,r){if(e){var s=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=o.depth>0&&/(\[[^[\]]*])/.exec(s),d=c?s.slice(0,c.index):s,h=[];if(d){if(!o.plainObjects&&n.call(Object.prototype,d)&&!o.allowPrototypes)return;h.push(d)}for(var u=0;o.depth>0&&null!==(c=a.exec(s))&&u0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");r=Array.isArray(t)&&t[s]?t[s].length:0}for(var a=n?t:l(t,o,r),c=e.length-1;c>=0;--c){var d,h=e[c];if("[]"===h&&o.parseArrays)d=o.allowEmptyArrays&&(""===a||o.strictNullHandling&&null===a)?[]:i.combine([],a);else{d=o.plainObjects?{__proto__:null}:{};var u="["===h.charAt(0)&&"]"===h.charAt(h.length-1)?h.slice(1,-1):h,p=o.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(p,10);o.parseArrays||""!==p?!isNaN(f)&&h!==p&&String(f)===p&&f>=0&&o.parseArrays&&f<=o.arrayLimit?(d=[])[f]=a:"__proto__"!==p&&(d[p]=a):d={0:a}}a=d}return a}(h,t,o,r)}};e.exports=function(e,t){var o=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,o=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var d="string"==typeof e?function(e,t){var o={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=c.split(t.delimiter,t.throwOnLimitExceeded?d+1:d);if(t.throwOnLimitExceeded&&h.length>d)throw new RangeError("Parameter limit exceeded. Only "+d+" parameter"+(1===d?"":"s")+" allowed.");var u,p=-1,f=t.charset;if(t.charsetSentinel)for(u=0;u-1&&(m=r(m)?[m]:m);var v=n.call(o,g);v&&"combine"===t.duplicates?o[g]=i.combine(o[g],m):v&&"last"!==t.duplicates||(o[g]=m)}return o}(e,o):e,h=o.plainObjects?{__proto__:null}:{},u=Object.keys(d),p=0;p{"use strict";var i=o(77575),n=o(33208),r=o(37726),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,d=function(e,t){c.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,u=r.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},f={},g=function e(t,o,r,s,a,c,h,u,g,m,b,y,x,v,_,w,T,k){for(var S,A=t,P=k,E=0,O=!1;void 0!==(P=P.get(f))&&!O;){var M=P.get(t);if(E+=1,void 0!==M){if(M===E)throw new RangeError("Cyclic object value");O=!0}void 0===P.get(f)&&(E=0)}if("function"==typeof m?A=m(o,A):A instanceof Date?A=x(A):"comma"===r&&l(A)&&(A=n.maybeMap(A,(function(e){return e instanceof Date?x(e):e}))),null===A){if(c)return g&&!w?g(o,p.encoder,T,"key",v):o;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(A))return g?[_(w?o:g(o,p.encoder,T,"key",v))+"="+_(g(A,p.encoder,T,"value",v))]:[_(o)+"="+_(String(A))];var D,C=[];if(void 0===A)return C;if("comma"===r&&l(A))w&&g&&(A=n.maybeMap(A,g)),D=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(m))D=m;else{var R=Object.keys(A);D=b?R.sort(b):R}var I=u?String(o).replace(/\./g,"%2E"):String(o),H=s&&l(A)&&1===A.length?I+"[]":I;if(a&&l(A)&&0===A.length)return H+"[]";for(var L=0;L0?_+v:""}},33208:(e,t,o)=>{"use strict";var i=o(37726),n=Object.prototype.hasOwnProperty,r=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var o=t&&t.plainObjects?{__proto__:null}:{},i=0;i1;){var t=e.pop(),o=t.obj[t.prop];if(r(o)){for(var i=[],n=0;n=l?a.slice(d,d+l):a,u=[],p=0;p=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||r===i.RFC1738&&(40===f||41===f)?u[u.length]=h.charAt(p):f<128?u[u.length]=s[f]:f<2048?u[u.length]=s[192|f>>6]+s[128|63&f]:f<55296||f>=57344?u[u.length]=s[224|f>>12]+s[128|f>>6&63]+s[128|63&f]:(p+=1,f=65536+((1023&f)<<10|1023&h.charCodeAt(p)),u[u.length]=s[240|f>>18]+s[128|f>>12&63]+s[128|f>>6&63]+s[128|63&f])}c+=u.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var o=[],i=0;i{"use strict";o.d(t,{x:()=>s});var i=o(36892),n=o(48287).Buffer;function r(e,t){if(t.value)return{type:e,value:t}}function s(e,t,o){if(!o)return;if(0===Object.keys(t||{}).length)return;if(!e.components?.securitySchemes?.[o])return;const s=e.components.securitySchemes[o];if(!(0,i.i9)(s)){if(!t[o])return!1;if("http"===s.type){if("basic"===s.scheme){const e=t[o];if("object"!=typeof e)return!1;if(!e.user&&!e.pass)return!1;let i=e.user??null;null!==i&&0!==i.length||(i="");let s=e.pass??null;return null!==s&&0!==s.length||(s=""),r("headers",{name:"authorization",value:`Basic ${n.from(`${i}:${s}`).toString("base64")}`})}if("bearer"===s.scheme)return r("headers",{name:"authorization",value:`Bearer ${t[o]}`})}if("apiKey"===s.type){if("query"===s.in)return r("queryString",{name:s.name,value:String(t[o])});if("header"===s.in){const e={name:s.name,value:String(t[o])};if(s["x-bearer-format"]){const t=s["x-bearer-format"].charAt(0).toUpperCase()+s["x-bearer-format"].slice(1);e.name=s.name,e.value=`${t} ${e.value}`}return r("headers",e)}if("cookie"===s.in)return r("cookies",{name:s.name,value:String(t[o])})}return"oauth2"===s.type?r("headers",{name:"authorization",value:`Bearer ${t[o]}`}):void 0}}},63866:(e,t,o)=>{"use strict";o.d(t,{A:()=>L});var i=o(9733),n=o(48287).Buffer,r=/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s<>]*?)$/i;function s(e){if(!function(e){return r.test((e||"").trim())}(e))return!1;const t=e.trim().match(r),o={};if(t[1]){o.mediaType=t[1].toLowerCase();const e=t[1].split(";").map((e=>e.startsWith("name=")?e:e.toLowerCase()));o.contentType=e[0],e.slice(1).forEach((e=>{const t=e.split("=");o[t[0]]=t[1]}))}return o.base64=!!t[t.length-2],o.data=t[t.length-1]||"",o.toBuffer=()=>{const e=o.base64?"base64":"utf8";return n.from(o.data,e)},o}var a=o(45149),l=o(86937),c=o(36892),d=o(24435);function h(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!Object.keys(e).length}function u(e){return Array.isArray(e)&&0===e.length}function p(e){if(void 0!==e){if(null===e)return null;if(Array.isArray(e))return e.map(p).filter((e=>void 0!==e));if("object"==typeof e){const t={};return Object.entries(e).forEach((([e,o])=>{const i=p(o);void 0!==i&&(t[e]=i)})),t}return e}}function f(e,t={}){const o=e;if(null!==e||!t.removeAllFalsy)return function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}(e)||Array.isArray(o)?Array.isArray(o)?(o.forEach(((e,i)=>{let n=e;"object"==typeof n&&null!==n?(n=f(n,t),h(n)||u(n)&&!t.preserveEmptyArray?delete o[i]:o[i]=n):null!==n||!t.removeAllFalsy&&t.preserveNullishArrays||delete o[i]})),o.filter((e=>void 0!==e))):(Object.keys(o).forEach((e=>{let i=o[e];"object"==typeof i&&(null!==i?(i=f(i,t),h(i)||u(i)&&!t.preserveEmptyArray?delete o[e]:o[e]=i):t.removeAllFalsy&&delete o[e])})),o):o}function g(e,t){if(void 0===e)return;let o=t?.preserveNullishArrays?p(e):JSON.parse(JSON.stringify(e));return o=f(o,t),h(o)||u(o)&&!t?.preserveEmptyArray?void 0:o}var m=o(21330),b=o.n(m);function y(e,t){if(!t)return;const o=String(t).match(/([^[.\]])+/g),i=o?.reduce(((e,t)=>e?.[t]),e);return i}var x=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,v=e=>/^[a-z0-9\-._~]+$/i.test(e);function _(e,{escape:t,returnIfEncoded:o=!1,isAllowedReserved:i}={},n){return"number"==typeof e&&(e=e.toString()),o&&function(e){try{return decodeURIComponent(e)!==e}catch{return!1}}(e)?e:"string"==typeof e&&e.length&&t?n?JSON.parse(e):[...e].map((e=>{if(v(e))return e;if(x(e)&&("unsafe"===t||i))return e;const o=new TextEncoder;return Array.from(o.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join(""):e}function w(e){const{value:t}=e;return Array.isArray(t)?function({location:e,key:t,value:o,style:i,explode:n,escape:r,isAllowedReserved:s=!1}){const a=t=>{if(null===t)return"null";return _(t,{escape:r,returnIfEncoded:"query"===e,isAllowedReserved:s})};switch(i){case"simple":return o.map((e=>a(e))).join(",");case"label":return`.${o.map((e=>a(e))).join(".")}`;case"matrix":return o.map((e=>a(e))).reduce(((e,o)=>!e||n?`${e||""};${t}=${o}`:`${e},${o}`),"");case"form":return o.map((e=>a(e))).join(n?`&${t}=`:",");case"spaceDelimited":return o.map((e=>a(e))).join(" "+(n?`${t}=`:""));case"pipeDelimited":return o.map((e=>a(e))).join("|"+(n?`${t}=`:""));default:return}}(e):function(e){return"object"==typeof e&&null!==e}(t)?function({location:e,key:t,value:o,style:i,explode:n,escape:r,isAllowedReserved:s=!1}){const a=t=>_(t,{escape:r,returnIfEncoded:"query"===e,isAllowedReserved:s}),l=Object.keys(o);switch(i){case"simple":return l.reduce(((e,t)=>{const i=a(o[t]);return`${e?`${e},`:""}${t}${n?"=":","}${i}`}),"");case"label":return l.reduce(((e,t)=>{const i=a(o[t]);return`${e?`${e}.`:"."}${t}${n?"=":"."}${i}`}),"");case"matrix":return n?l.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${a(o[t])}`),""):l.reduce(((e,i)=>{const n=a(o[i]);return`${e?`${e},`:`;${t}=`}${i},${n}`}),"");case"form":return l.reduce(((e,t)=>{const i=a(o[t]);return`${e?`${e}${n?"&":","}`:""}${t}${n?"=":","}${i}`}),"");case"spaceDelimited":return l.reduce(((e,t)=>`${e?`${e} `:""}${t} ${a(o[t])}`),"");case"pipeDelimited":return l.reduce(((e,t)=>`${e?`${e}|`:""}${t}|${a(o[t])}`),"");case"deepObject":return l.reduce((e=>`${a(o[e])}`),"");default:return}}(e):function({location:e,key:t,value:o,style:i,escape:n,isAllowedReserved:r=!1}){const s=t=>_(t,{escape:n,returnIfEncoded:"query"===e||"body"===e,isAllowedReserved:r});switch(i){case"simple":case"form":case"deepObject":return s(o);case"label":return`.${s(o)}`;case"matrix":return""===o?`;${t}`:`;${t}=${s(o)}`;default:return}}(e)}function T(e,t){let o=e;if(function(e){return["simple","spaceDelimited","pipeDelimited","deepObject"].includes(e.style||"")}(t)&&(void 0===o||""===o))return"path"===t.in?"":void 0;if("path"===t.in&&(o=function(e){let t=e;return void 0===t?"":(Array.isArray(t)&&(t=t.filter((e=>void 0===e?"":e)),0===t.length&&(t="")),"object"==typeof t&&Object.keys(t).forEach((e=>{t[e]=void 0===t[e]?"":t[e]})),t)}(o)),"header"===t.in&&function(e){return["accept","authorization","content-type"].includes(e.name.toLowerCase())}(t))return e;let i=t.style;i||("query"===t.in?i="form":"path"===t.in||"header"===t.in?i="simple":"cookie"===t.in&&(i="form"));let n=t.explode;return void 0===n&&"form"===i&&(n=!0),w({location:t.in,value:o,key:t.name,style:i,explode:n,escape:!0,..."query"===t.in?{isAllowedReserved:t.allowReserved||!1}:{}})}function k(e,t){return b().stringify(e,{encoder(e,o,i,n){if("key"===n){const o=e.split(/[[\]]/g).filter(Boolean).map((e=>`[${e}]`)).join("");return`${t.name}${o}`}if("value"===n)return T(e,t)}}).split("&").map((e=>{const t=e.split("=");return{label:t[0],value:"undefined"===t[1]?null:t[1]}}))}function S(e,t){if("deepObject"!==t.style||e&&"object"==typeof e&&!1!==t.explode)return function(e){return(e.explode||!1!==e.explode&&"form"===e.style||"deepObject"===e.style)&&"header"!==e.in&&"path"!==e.in}(t)?function(e,t){if(Array.isArray(e)&&"array"===t.schema?.type&&"deepObject"===t.style){const o={};return k(e,t).forEach((e=>{o[e.label]=e.value})),o}if(Array.isArray(e))return e.map((e=>T(e,t)));if("object"==typeof e&&null!==e){const o={};return Object.keys(e).forEach((i=>{"deepObject"===t.style?k(e,t).forEach((e=>{o[e.label]=e.value})):o[i]=T(e[i],t)})),o}return T(e,t)}(e,t):T(e,t)}function A(e,t){return Array.isArray(e.type)?e.type.includes(t):e.type===t}function P(e){return"oneOf"in e?P(e.oneOf[0]):"anyOf"in e?P(e.anyOf[0]):e}function E(e,t,o){try{if(t?.format===e){if(o.parentIsArray){const e=y(o.payload,o.parentKey||"");if(void 0!==e&&Array.isArray(e))return Object.keys(e).map((e=>{const t=[o.parentKey,e].join(".");return void 0!==y(o.payload,t)&&t})).filter(Boolean)}else{if(o.parentKey&&void 0!==y(o.payload,o.parentKey))return o.parentKey;if(void 0!==o.payload)return!0}return!1}const i=function(e,t){let o=0;if(t.parentIsArray){const e=y(t.payload,t.parentKey||"");if(void 0===e||!Array.isArray(e))return!1;o=e.length}let i=[];if(o>0)for(let n=0;n({key:t.parentKey?[t.parentKey,n,e].join("."):e,schema:P(o)}))));else i=Object.entries(e).map((([e,o])=>({key:t.parentKey?[t.parentKey,e].join("."):e,schema:P(o)})));return i}(t,o);return!!i&&i.flatMap((({key:t,schema:i})=>"properties"in i?E(e,i.properties,{payload:o.payload,parentKey:t}):"items"in i?i.items?.properties?E(e,i.items.properties,{payload:o.payload,parentKey:t,parentIsArray:!0}):E(e,i.items,{payload:o.payload,parentKey:t,parentIsArray:!0}):E(e,i,{payload:o.payload,parentKey:t}))).filter(Boolean)}catch{return[]}}function O(e,t,o,i=!1){if(t.style){return S(e[o][t.name],t)}let n;if(void 0!==e[o][t.name])n=e[o][t.name];else if(i&&!t.required)n=void 0;else if(t.required&&t.schema&&!(0,c.i9)(t.schema)&&t.schema.default)n=t.schema.default;else if("path"===o)return t.name;return t.schema&&!(0,c.i9)(t.schema)&&"array"===t.schema.type&&t.schema.items&&!(0,c.i9)(t.schema.items)&&"binary"===t.schema.items.format?Array.isArray(n)?n:JSON.stringify(n):void 0!==n?"query"===o?S(n,t):n:void 0}var M=Object.keys(d.gK).reduce(((e,t)=>Object.assign(e,{[t]:{}})),{});function D(e){const t=Object.keys(e)||[];if(t?.length){const e=t.find((e=>d.zd.json(e)));return e||t[0]}return"application/json"}function C(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function R(e){return JSON.stringify(g(void 0!==e.RAW_BODY?e.RAW_BODY:e,{preserveNullishArrays:!0}))}function I(e,t,o,i={}){void 0!==o&&(Array.isArray(o)?o.forEach((o=>{I(e,t,o)})):"object"==typeof o&&null!==o?Object.keys(o).forEach((t=>{I(e,t,o[t])})):e.push({...i,name:t,value:String(o)}))}function H(e){return C(e)?e:"object"!=typeof e||null===e||Array.isArray(e)||void 0===e.RAW_BODY?R(e):C(e.RAW_BODY)?e.RAW_BODY:R(e.RAW_BODY)}function L(e,t,o={},n={},r={proxyUrl:""}){let d;d=t&&"function"==typeof t.getParameters?t:new l.I(e,t?.path||"",t?.method||"",t||{path:"",method:""});const h=e.getDefinition(),u={...M,...o};u.server||(u.server={selected:0,variables:e.defaultVariables(0)}),u.server.variables={...e.defaultVariables(u.server.selected),...u.server.variables?u.server.variables:{}};const p={cookies:[],headers:[],headersSize:0,queryString:[],postData:{},bodySize:0,method:d.method.toUpperCase(),url:`${e.url(u.server.selected,u.server.variables)}${d.path}`.replace(/\s/g,"%20"),httpVersion:"HTTP/1.1"};r.proxyUrl&&e.getExtension(a.zT,d)&&(p.url=`${r.proxyUrl}/${p.url}`);const f=d.getParameters();p.url=p.url.replace(/{([-_a-zA-Z0-9[\]]+)}/g,((e,t)=>{if(!d||!f)return t;const o=f.find((e=>e.name===t))||{name:t};return"style"in o&&o.style?O(u,o,"path"):encodeURIComponent(O(u,o,"path"))}));const m=f?.filter((e=>"query"===e.in));m?.length&&m.forEach((e=>{const t=O(u,e,"query",!0);I(p.queryString,e.name,t)}));const b=f?.filter((e=>"cookie"===e.in));b?.length&&b.forEach((e=>{const t=O(u,e,"cookie",!0);I(p.cookies,e.name,t)})),d.schema.responses&&Object.keys(d.schema.responses).some((e=>{if((0,c.i9)(d.schema.responses?.[e]))return!1;const t=(d.schema.responses?.[e]).content;return!!t&&(Object.keys(u.header||{}).find((e=>"accept"===e.toLowerCase()))||p.headers.push({name:"accept",value:D(t)}),!0)}));let x=!1,v=d.getContentType();const _=f?.filter((e=>"header"===e.in));_?.length&&_.forEach((e=>{const t=O(u,e,"header",!0);void 0!==t&&("content-type"===e.name.toLowerCase()&&(x=!0,v=String(t)),I(p.headers,e.name,t))}));const w=e.getExtension(a.d0,d);if(w&&w.forEach((e=>{"string"==typeof e.key&&"content-type"===e.key.toLowerCase()&&(x=!0,v=String(e.value)),p.headers.push({name:String(e.key),value:String(e.value)})})),u.header){const e=Object.keys(u.header).find((e=>"accept"===e.toLowerCase()));e&&!p.headers.find((e=>"accept"===e.name.toLowerCase()))&&p.headers.push({name:"accept",value:String(u.header[e])});const t=Object.keys(u.header).find((e=>"authorization"===e.toLowerCase()));t&&!p.headers.find((e=>"authorization"===e.name.toLowerCase()))&&p.headers.push({name:"authorization",value:String(u.header[t])})}let T;if(d.hasRequestBody()&&(T=d.getParametersAsJSONSchema().find((e=>e.type===(d.isFormUrlEncoded()?"formData":"body")))),T?.schema&&Object.keys(T.schema).length){const e=T.schema;if(d.isFormUrlEncoded()){if(Object.keys(u.formData||{}).length){const e=g(u.formData,{preserveNullishArrays:!0});if(void 0!==e){const t={params:[],mimeType:"application/x-www-form-urlencoded"};Object.keys(e).forEach((o=>{var i;t.params.push({name:o,value:(i=e[o],null===i||C(i)?i:Array.isArray(i)&&i.every(C)?String(i):JSON.stringify(i))})})),p.postData=t}}}else if("body"in u&&void 0!==u.body&&(C(u.body)||Object.keys(u.body).length)){const t=d.isMultipart(),o=d.isJson();if(t||o)try{let o=g(u.body,{preserveNullishArrays:!0});if(t){p.postData={params:[],mimeType:"multipart/form-data"};const t=P(e),i=Object.keys(t.properties).filter((e=>{const o=t.properties[e];return"binary"===o.format||!("array"!==o.type||!o.items||"object"!=typeof o.items||null===o.items||"binary"!==o.items.format)}));if(void 0!==o){const e=function(e,t,o){const i=t.encoding;return"object"==typeof e&&null!==e?Object.keys(e).map((e=>{if(!o.properties?.[e])return!1;const t=i?i[e]:void 0;return{name:e,style:t?t.style:void 0,explode:t?t.explode:void 0,required:o.required&&"boolean"==typeof o.required&&Boolean(o.required)||Array.isArray(o.required)&&o.required.includes(e),schema:o.properties[e],in:"body"}})).filter(Boolean):[]}(u.body,d.schema.requestBody.content["multipart/form-data"],t);e.length&&Object.keys(o).forEach((t=>{const o=e.find((e=>e.name===t));if(o){const e={};let n=O(u,o,"body",!0);Array.isArray(n)||(n=[n]),n.forEach((o=>{if(i.includes(t)){const t=s(o);t&&(e.fileName="name"in t?t.name:"unknown","contentType"in t&&(e.contentType=t.contentType))}I(p.postData?.params||[],t,o,e)}))}}))}}else if(p.postData={mimeType:v,text:""},A(T.schema,"string")||A(T.schema,"integer")||A(T.schema,"number")||A(T.schema,"boolean"))p.postData.text=JSON.stringify(JSON.parse(o));else{const t=E("json",e.properties,{payload:o});if(Array.isArray(t)&&t.length)try{t.forEach((e=>{try{!function(e,t,o){const i=Array.isArray(t)?t:String(t).match(/([^[.\]])+/g);i?.reduce(((e,t,n)=>(void 0===e[t]&&(e[t]={}),n===i.length-1&&(e[t]=o),e[t])),e)}(o,String(e),JSON.parse(y(o,String(e))))}catch{}})),void 0!==o.RAW_BODY&&(o=o.RAW_BODY),p.postData.text=JSON.stringify(o)}catch{p.postData.text=R(u.body)}else p.postData.text=H(u.body)}}catch{p.postData={mimeType:v,text:R(u.body)}}else p.postData={mimeType:v,text:H(u.body)}}}(p.postData?.text||T?.schema&&Object.keys(T.schema).length)&&!x&&p.headers.push({name:"content-type",value:v});const k=d.getSecurity();return k?.length&&k.forEach((e=>{Object.keys(e).forEach((e=>{const t=(0,i.x)(h,n,e);t&&("authorization"===t.value.name&&p[t.type].find((e=>e.name===t.value.name))||p[t.type].find((e=>e.name===t.value.name&&e.value===t.value.value))||p[t.type].push(t.value))}))})),0===Object.keys(p.postData||{}).length&&delete p.postData,{log:{entries:[{request:p}]}}}},87750:e=>{"use strict";var t=String.prototype.replace,o=/%20/g,i="RFC1738",n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:n}},21330:(e,t,o)=>{"use strict";var i=o(67119),n=o(95729),r=o(87750);e.exports={formats:r,parse:n,stringify:i}},95729:(e,t,o)=>{"use strict";var i=o(63955),n=Object.prototype.hasOwnProperty,r=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,o,r){if(e){var s=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=o.depth>0&&/(\[[^[\]]*])/.exec(s),d=c?s.slice(0,c.index):s,h=[];if(d){if(!o.plainObjects&&n.call(Object.prototype,d)&&!o.allowPrototypes)return;h.push(d)}for(var u=0;o.depth>0&&null!==(c=a.exec(s))&&u0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");r=Array.isArray(t)&&t[s]?t[s].length:0}for(var a=n?t:l(t,o,r),c=e.length-1;c>=0;--c){var d,h=e[c];if("[]"===h&&o.parseArrays)d=o.allowEmptyArrays&&(""===a||o.strictNullHandling&&null===a)?[]:i.combine([],a);else{d=o.plainObjects?{__proto__:null}:{};var u="["===h.charAt(0)&&"]"===h.charAt(h.length-1)?h.slice(1,-1):h,p=o.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(p,10);o.parseArrays||""!==p?!isNaN(f)&&h!==p&&String(f)===p&&f>=0&&o.parseArrays&&f<=o.arrayLimit?(d=[])[f]=a:"__proto__"!==p&&(d[p]=a):d={0:a}}a=d}return a}(h,t,o,r)}};e.exports=function(e,t){var o=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,o=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var d="string"==typeof e?function(e,t){var o={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=c.split(t.delimiter,t.throwOnLimitExceeded?d+1:d);if(t.throwOnLimitExceeded&&h.length>d)throw new RangeError("Parameter limit exceeded. Only "+d+" parameter"+(1===d?"":"s")+" allowed.");var u,p=-1,f=t.charset;if(t.charsetSentinel)for(u=0;u-1&&(m=r(m)?[m]:m);var v=n.call(o,g);v&&"combine"===t.duplicates?o[g]=i.combine(o[g],m):v&&"last"!==t.duplicates||(o[g]=m)}return o}(e,o):e,h=o.plainObjects?{__proto__:null}:{},u=Object.keys(d),p=0;p{"use strict";var i=o(77575),n=o(63955),r=o(87750),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,d=function(e,t){c.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,u=r.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},f={},g=function e(t,o,r,s,a,c,h,u,g,m,b,y,x,v,_,w,T,k){for(var S,A=t,P=k,E=0,O=!1;void 0!==(P=P.get(f))&&!O;){var M=P.get(t);if(E+=1,void 0!==M){if(M===E)throw new RangeError("Cyclic object value");O=!0}void 0===P.get(f)&&(E=0)}if("function"==typeof m?A=m(o,A):A instanceof Date?A=x(A):"comma"===r&&l(A)&&(A=n.maybeMap(A,(function(e){return e instanceof Date?x(e):e}))),null===A){if(c)return g&&!w?g(o,p.encoder,T,"key",v):o;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(A))return g?[_(w?o:g(o,p.encoder,T,"key",v))+"="+_(g(A,p.encoder,T,"value",v))]:[_(o)+"="+_(String(A))];var D,C=[];if(void 0===A)return C;if("comma"===r&&l(A))w&&g&&(A=n.maybeMap(A,g)),D=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(m))D=m;else{var R=Object.keys(A);D=b?R.sort(b):R}var I=u?String(o).replace(/\./g,"%2E"):String(o),H=s&&l(A)&&1===A.length?I+"[]":I;if(a&&l(A)&&0===A.length)return H+"[]";for(var L=0;L0?_+v:""}},63955:(e,t,o)=>{"use strict";var i=o(87750),n=Object.prototype.hasOwnProperty,r=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var o=t&&t.plainObjects?{__proto__:null}:{},i=0;i1;){var t=e.pop(),o=t.obj[t.prop];if(r(o)){for(var i=[],n=0;n=l?a.slice(d,d+l):a,u=[],p=0;p=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||r===i.RFC1738&&(40===f||41===f)?u[u.length]=h.charAt(p):f<128?u[u.length]=s[f]:f<2048?u[u.length]=s[192|f>>6]+s[128|63&f]:f<55296||f>=57344?u[u.length]=s[224|f>>12]+s[128|f>>6&63]+s[128|63&f]:(p+=1,f=65536+((1023&f)<<10|1023&h.charCodeAt(p)),u[u.length]=s[240|f>>18]+s[128|f>>12&63]+s[128|f>>6&63]+s[128|63&f])}c+=u.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var o=[],i=0;i{"use strict";o.d(t,{A:()=>d});var i=o(76384),n=(e,t)=>{const o=e[t.name];return void 0===o?(e[t.name]=t.value,e):Array.isArray(o)?(o.push(t.value),e):(e[t.name]=[o,t.value],e)},r=o(3497),s=o(75442),a=o(11130),l=class{constructor(e,t={}){var o;this.initCalled=!1,this.entries=[],this.requests=[],this.options={},this.options={harIsAlreadyEncoded:!1,...t},this.requests=[],"object"==typeof(o=e)&&"log"in o&&"object"==typeof o.log&&"entries"in o.log&&Array.isArray(o.log.entries)?this.entries=e.log.entries:this.entries=[{request:e}]}init(){return this.initCalled=!0,this.requests=this.entries.map((({request:e})=>{const t={bodySize:0,headersSize:0,headers:[],cookies:[],httpVersion:"HTTP/1.1",queryString:[],postData:{mimeType:e.postData?.mimeType||"application/octet-stream"},...e};return t.postData&&!t.postData.mimeType&&(t.postData.mimeType="application/octet-stream"),this.prepare(t,this.options)})),this}prepare(e,t){const o={...e,fullUrl:"",uriObj:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{}};if(o.queryString&&o.queryString.length&&(o.queryObj=o.queryString.reduce(n,{})),o.headers&&o.headers.length){const e=/^HTTP\/2/;o.headersObj=o.headers.reduce(((t,{name:i,value:n})=>({...t,[e.exec(o.httpVersion)?i.toLocaleLowerCase():i]:n})),{})}o.cookies&&o.cookies.length&&(o.cookiesObj=o.cookies.reduceRight(((e,{name:t,value:o})=>({...e,[t]:o})),{}));const i=o.cookies?.map((({name:e,value:o})=>t.harIsAlreadyEncoded?`${e}=${o}`:`${encodeURIComponent(e)}=${encodeURIComponent(o)}`));switch(i?.length&&(o.allHeaders.cookie=i.join("; ")),o.postData.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(o.postData.text="",o.postData.mimeType="multipart/form-data",o.postData?.params){const e="---011000010111000001101001",t=`${e}--`,i="\r\n",n=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),s=e=>e.replace(/\r?\n|\r/g,"\r\n"),a=[`--${e}`];o.postData?.params.forEach(((t,i)=>{const r=t.name,l=t.value||"",c=t.fileName||null,d=t.contentType||"application/octet-stream";c?(a.push(`Content-Disposition: form-data; name="${n(s(r))}"; filename="${c}"`),a.push(`Content-Type: ${d}`)):a.push(`Content-Disposition: form-data; name="${n(s(r))}"`),a.push(""),a.push(s(l)),i!==o.postData.params.length-1&&a.push(`--${e}`)})),a.push(`--${t}`),o.postData.boundary=e,o.postData.text=a.join(i);const l=(0,r.jL)(o.headersObj,"content-type")||"content-type";o.headersObj[l]=`multipart/form-data; boundary=${e}`}break;case"application/x-www-form-urlencoded":o.postData.params?(o.postData.paramsObj=o.postData.params.reduce(n,{}),o.postData.text=(0,a.stringify)(o.postData.paramsObj)):o.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(o.postData.mimeType="application/json",o.postData.text)try{o.postData.jsonObj=JSON.parse(o.postData.text)}catch(e){o.postData.mimeType="text/plain"}}const l={...o.allHeaders,...o.headersObj},c=(0,s.parse)(o.url,!0,!0);let d;o.queryObj={...o.queryObj,...c.query},d=t.harIsAlreadyEncoded?(0,a.stringify)(o.queryObj,{encode:!1,indices:!1}):(0,a.stringify)(o.queryObj,{indices:!1});const h={...c,query:o.queryObj,search:d,path:d?`${c.pathname}?${d}`:c.pathname},u=(0,s.format)({...c,query:null,search:null}),p=(0,s.format)({...c,...h});return{...o,allHeaders:l,fullUrl:p,url:u,uriObj:h}}convert(e,t,o){this.initCalled||this.init(),!o&&t&&(o=t);const i=r.zV[e];if(!i)return!1;const{convert:n}=i.clientsById[t||i.info.default];return this.requests.map((e=>n(e,o)))}},c=o(63866);function d(e,t,o,n,s,a={}){let d,h,u;const p=a.plugins||[],f=(0,i.qX)({plugins:p});try{({config:d,language:h,target:u}=(0,i.lr)(f,s))}catch{if(!h||!u)return{code:"",highlightMode:!1,install:!1}}if(!d)throw new Error(`The supplied language \`${s.toString()}\` is not supported. If a plugin powers this language please initialize that plugin with the \`plugins\` option.`);if(!h||!u)return{code:"",highlightMode:!1,install:!1};const g=a.harOverride||(0,c.A)(e,t,o,n),m=new l(g,{harIsAlreadyEncoded:!a.harOverride});let b=d.httpsnippet.targets[u].opts||{};const y=d.highlight;p.forEach((t=>{(0,r.wB)(t),"node"===t.target&&"api"===t.client.info.key&&(b.api={definition:e?e.getDefinition():null,identifier:a?.openapi?.variableName,registryURI:a?.openapi?.registryIdentifier})}));const x=(0,i.pc)(f,s,a?.openapi?.registryIdentifier)||!1;try{const e=m.convert(h,u,b);return{code:!!e&&e[0],highlightMode:y,install:x}}catch(e){if("node"!==h&&"api"!==u)throw e;b=d.httpsnippet.targets.fetch.opts||{};const t=m.convert(h,"fetch",b);return{code:!!t&&t[0],highlightMode:y,install:!1}}}},12308:(e,t,o)=>{"use strict";o.d(t,{Kv:()=>r,N4:()=>s});var i=o(14041),n=o(30074);function r(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(o=e)||"function"==typeof o||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(o)?i.createElement(e,t):e:null;var o}function s(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[o]=i.useState((()=>({current:(0,n.ZR)(t)}))),[r,s]=i.useState((()=>o.current.initialState));return o.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{s(t),null==e.onStateChange||e.onStateChange(t)}}))),o.current}},54209:(e,t,o)=>{var i=o(76773);e.exports=function(e,t){return new Promise((function(o,n){var r,s=t||{};function a(e){n(e||new Error("Aborted"))}function l(e,t){e.bail?a(e):r.retry(e)?s.onRetry&&s.onRetry(e,t):n(r.mainError())}"randomize"in s||(s.randomize=!0),(r=i.operation(s)).attempt((function(t){var i;try{i=e(a,t)}catch(e){return void l(e,t)}Promise.resolve(i).then(o).catch((function(e){l(e,t)}))}))}))}},76773:(e,t,o)=>{e.exports=o(85211)},85211:(e,t,o)=>{var i=o(15925);t.operation=function(e){var o=t.timeouts(e);return new i(o,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var o in e)t[o]=e[o];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var o=this._timeouts.shift();if(void 0===o){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),o=this._cachedTimeouts.slice(-1)}var i=this;return this._timer=setTimeout((function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout((function(){i._operationTimeoutCb(i._attempts)}),i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)}),o),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var o=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){o._operationTimeoutCb()}),o._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,o=0,i=0;i=o&&(t=n,o=s)}return t}},61535:(e,t,o)=>{var i=o(64938);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},65473:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(63733),n=o(95286),r=o(81092);function s(e,t){(0,r.A)(2,arguments);var o=(0,n.A)(e),s=(0,i.A)(t);if(isNaN(s))return new Date(NaN);if(!s)return o;var a=o.getDate(),l=new Date(o.getTime());return l.setMonth(o.getMonth()+s+1,0),a>=l.getDate()?l:(o.setFullYear(l.getFullYear(),l.getMonth(),a),o)}},15657:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(63733),n=o(65473),r=o(81092);function s(e,t){return(0,r.A)(2,arguments),function(e,t){(0,r.A)(2,arguments);var o=(0,i.A)(t);return(0,n.A)(e,12*o)}(e,-(0,i.A)(t))}},66651:(e,t,o)=>{"use strict";var i;o.d(t,{v:()=>i}),function(e){e[e.ACCEPTED=202]="ACCEPTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.CONFLICT=409]="CONFLICT",e[e.CONTINUE=100]="CONTINUE",e[e.CREATED=201]="CREATED",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.GONE=410]="GONE",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.LOCKED=423]="LOCKED",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.OK=200]="OK",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.PROCESSING=102]="PROCESSING",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.USE_PROXY=305]="USE_PROXY"}(i||(i={}))},75734:(e,t,o)=>{"use strict";var i=o(39907),n=o(33215),r=o(75442),s=o(93227);const a=parseInt(i.env.PARSE_LINK_HEADER_MAXLEN)||2e3,l=null!=i.env.PARSE_LINK_HEADER_THROW_ON_MAXLEN_EXCEEDED;function c(e){return e&&e.rel}function d(e,t){return t.rel.split(/\s+/).forEach((function(o){e[o]=s(t,{rel:o})})),e}function h(e,t){var o=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return o&&(e[o[1]]=o[2]),e}function u(e){try{var t=e.match(/]*)>(.*)/),o=t[1],i=t[2].split(";"),a=r.parse(o),l=n.parse(a.query);i.shift();var c=i.reduce(h,{});return(c=s(l,c)).url=o,c}catch(e){return null}}e.exports=function(e){return function(e){if(!e)return!1;if(e.length>a){if(l)throw new Error("Input string too long, it should be under "+a+" characters.");return!1}return!0}(e)?e.split(/,\s*{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,o,i,n){o=o||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var s=/\+/g;e=e.split(o);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var c=0;c=0?(d=f.substr(0,g),h=f.substr(g+1)):(d=f,h=""),u=decodeURIComponent(d),p=decodeURIComponent(h),t(r,u)?Array.isArray(r[u])?r[u].push(p):r[u]=[r[u],p]:r[u]=p}return r}},59737:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,i,n){return o=o||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(n){var r=encodeURIComponent(t(n))+i;return Array.isArray(e[n])?e[n].map((function(e){return r+encodeURIComponent(t(e))})).join(o):r+encodeURIComponent(t(e[n]))})).join(o):n?encodeURIComponent(t(n))+i+encodeURIComponent(t(e)):""}},33215:(e,t,o)=>{"use strict";t.decode=t.parse=o(13457),t.encode=t.stringify=o(59737)},93227:e=>{e.exports=function(){for(var e={},o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={Accept:{description:"Informs the server about the types of data that can be sent back.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},"Accept-CH":{experimental:!0,description:"Servers can advertise support for Client Hints using the Accept-CH header field or an equivalent HTML element with http-equiv attribute.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH",markdown:"Servers can advertise support for Client Hints using the `Accept-CH` header field or an equivalent HTML `` element with [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#http-equiv) attribute."},"Accept-CH-Lifetime":{experimental:!0,deprecated:!0,description:"Servers can ask the client to remember the set of Client Hints that the server supports for a specified period of time, to enable delivery of Client Hints on subsequent requests to the server's origin.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},"Accept-Encoding":{description:"The encoding algorithm, usually a compression algorithm, that can be used on the resource sent back.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding",markdown:"The encoding algorithm, usually a [compression algorithm](https://developer.mozilla.org/en-US/docs/Web/HTTP/Compression), that can be used on the resource sent back."},"Accept-Language":{description:"Informs the server about the human language the server is expected to send back. This is a hint and is not necessarily under the full control of the user: the server should always pay attention not to override an explicit user choice (like selecting a language from a dropdown).",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},"Accept-Push-Policy":{experimental:!0,description:"A client can express the desired push policy for a request by sending an Accept-Push-Policy header field in the request.",link:"",markdown:"A client can express the desired push policy for a request by sending an [`Accept-Push-Policy`](https://datatracker.ietf.org/doc/html/draft-ruellan-http-accept-push-policy-00#section-3.1) header field in the request."},"Accept-Ranges":{description:"Indicates if the server supports range requests, and if so in which unit the range can be expressed.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"},"Accept-Signature":{experimental:!0,description:'A client can send the "Accept-Signature" header field to indicate intention to take advantage of any available signatures and to indicate what kinds of signatures it supports.',link:"",markdown:"A client can send the [`Accept-Signature`](https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html#rfc.section.3.7) header field to indicate intention to take advantage of any available signatures and to indicate what kinds of signatures it supports."},"Access-Control-Allow-Origin":{description:"Indicates whether the response can be shared.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},"Access-Control-Allow-Credentials":{description:"Indicates whether the response to the request can be exposed when the credentials flag is true.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},"Access-Control-Allow-Headers":{description:"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},"Access-Control-Allow-Methods":{description:"Specifies the methods allowed when accessing the resource in response to a preflight request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},"Access-Control-Expose-Headers":{description:"Indicates which headers can be exposed as part of the response by listing their names.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},"Access-Control-Max-Age":{description:"Indicates how long the results of a preflight request can be cached.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},"Access-Control-Request-Headers":{description:"Used when issuing a preflight request to let the server know which HTTP headers will be used when the actual request is made.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},"Access-Control-Request-Method":{description:"Used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method",markdown:"Used when issuing a preflight request to let the server know which [HTTP method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) will be used when the actual request is made."},Age:{description:"The time, in seconds, that the object has been in a proxy cache.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},Allow:{description:"Lists the set of HTTP request methods supported by a resource.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},"Alt-Svc":{description:"Used to list alternate ways to reach this service.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},"Alt-Used":{description:"Used to identify the alternative service in use.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},Authorization:{description:"Contains the credentials to authenticate a user-agent with a server.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},"Cache-Control":{description:"Directives for caching mechanisms in both requests and responses.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},"Clear-Site-Data":{description:"Clears browsing data (e.g. cookies, storage, cache) associated with the requesting website.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},Connection:{description:"Controls whether the network connection stays open after the current transaction finishes.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},Cookie:{description:"Contains stored HTTP cookies previously sent by the server with the Set-Cookie header.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie",markdown:'Contains stored [HTTP cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) previously sent by the server with the "Set-Cookie" header.'},"Content-Encoding":{description:"Used to specify the compression algorithm.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},"Content-Disposition":{description:'Indicates if the resource transmitted should be displayed inline (default behavior without the header), or if it should be handled like a download and the browser should present a "Save As" dialog.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},"Content-DPR":{deprecated:!0,experimental:!0,description:"Response header used to confirm the image device to pixel ratio in requests where the DPR client hint was used to select an image resource.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR",markdown:'_Response header_ used to confirm the image device to pixel ratio in requests where the "DPR" client hint was used to select an image resource.'},"Content-Language":{description:"Describes the human language(s) intended for the audience, so that it allows a user to differentiate according to the users' own preferred language.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},"Content-Length":{description:"The size of the resource, in decimal number of bytes.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},"Content-Location":{description:"Indicates an alternate location for the returned data.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},"Content-Range":{description:"Indicates where in a full body message a partial message belongs.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},"Content-Type":{description:"Indicates the media type of the resource.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},"Content-Security-Policy":{description:"Controls resources the user agent is allowed to load for a given page.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},"Content-Security-Policy-Report-Only":{description:"Allows web developers to experiment with policies by monitoring, but not enforcing, their effects. These violation reports consist of JSON documents sent via an HTTP POST request to the specified URI.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only",markdown:"Allows web developers to experiment with policies by monitoring, but not enforcing, their effects. These violation reports consist of JSON documents sent via an HTTP `POST` request to the specified URI."},"Critical-CH":{experimental:!0,description:"Servers use Critical-CH along with Accept-CH to specify that accepted client hints are also critical client hints.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH",markdown:'Servers use `Critical-CH` along with "Accept-CH" to specify that accepted client hints are also [critical client hints](https://developer.mozilla.org/en-US/docs/Web/HTTP/Client_hints#critical_client_hints).'},"Cross-Origin-Embedder-Policy":{description:"Allows a server to declare an embedder policy for a given document.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},"Cross-Origin-Opener-Policy":{description:"Prevents other domains from opening/controlling a window.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},"Cross-Origin-Resource-Policy":{description:" Prevents other domains from reading the response of the resources to which this header is applied.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},Date:{description:"Contains the date and time at which the message was originated.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},"Device-Memory":{deprecated:!0,experimental:!0,description:" Approximate amount of available client RAM memory. This is part of the Device Memory API.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory",markdown:"Approximate amount of available client RAM memory. This is part of the [Device Memory API](https://developer.mozilla.org/en-US/docs/Web/API/Device_Memory_API)."},Downlink:{description:"Approximate bandwidth of the client's connection to the server, in Mbps. This is part of the Network Information API.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink",markdown:"Approximate bandwidth of the client's connection to the server, in Mbps. This is part of the [Network Information API](https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API)."},DPR:{deprecated:!0,experimental:!0,description:"Client device pixel ratio (DPR), which is the number of physical device pixels corresponding to every CSS pixel.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},"Early-Data":{experimental:!0,description:"Indicates that the request has been conveyed in TLS early data.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},ECT:{description:'The effective connection type ("network profile") that best matches the connection\'s latency and bandwidth. This is part of the Network Information API.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT",markdown:'The "network profile" that best matches the connection\'s latency and bandwidth. This is part of the [Network Information API](https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API).'},ETag:{description:"A unique string identifying the version of the resource. Conditional requests using If-Match and If-None-Match use this value to change the behavior of the request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},Expect:{description:"Indicates expectations that need to be fulfilled by the server to properly handle the request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},"Expect-CT":{deprecated:!0,description:"Allows sites to opt in to reporting and/or enforcement of Certificate Transparency requirements, which prevents the use of misissued certificates for that site from going unnoticed. When a site enables the Expect-CT header, they are requesting that Chrome check that any certificate for that site appears in public CT logs.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},Expires:{description:"The date/time after which the response is considered stale.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},Forwarded:{description:" Contains information from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},From:{description:"Contains an Internet email address for a human user who controls the requesting user agent.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},Host:{description:"Specifies the domain name of the server (for virtual hosting), and (optionally) the TCP port number on which the server is listening.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},"If-Match":{description:"Makes the request conditional, and applies the method only if the stored resource matches one of the given ETags.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},"If-Modified-Since":{description:"Makes the request conditional, and expects the resource to be transmitted only if it has been modified after the given date. This is used to transmit data only when the cache is out of date.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},"If-None-Match":{description:"Makes the request conditional, and applies the method only if the stored resource _doesn't_ match any of the given ETags. This is used to update caches (for safe requests), or to prevent uploading a new resource when one already exists.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},"If-Range":{description:"Creates a conditional range request that is only fulfilled if the given etag or date matches the remote resource. Used to prevent downloading two ranges from incompatible version of the resource.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},"If-Unmodified-Since":{description:"Makes the request conditional, and expects the resource to be transmitted only if it has not been modified after the given date. This ensures the coherence of a new fragment of a specific range with previous ones, or to implement an optimistic concurrency control system when modifying existing documents.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},"Keep-Alive":{description:"Controls how long a persistent connection should stay open.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},"Large-Allocation":{deprecated:!0,description:"Tells the browser that the page being loaded is going to want to perform a large allocation.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},"Last-Modified":{description:'The last modification date of the resource, used to compare several versions of the same resource. It is less accurate than "ETag", but easier to calculate in some environments. Conditional requests using "If-Modified-Since" and "If-Unmodified-Since" use this value to change the behavior of the request.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},Link:{description:'The "Link" entity-header field provides a means for serializing one or more links in HTTP headers. It is semantically equivalent to the HTML link element.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link",markdown:"The [`Link`](https://datatracker.ietf.org/doc/html/rfc5988#section-5) entity-header field provides a means for serializing one or more links in HTTP headers. It is semantically equivalent to the HTML link element."},Location:{description:"Indicates the URL to redirect a page to.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},"Max-Forwards":{description:"When using TRACE, indicates the maximum number of hops the request can do before being reflected to the sender.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards",markdown:"When using [`TRACE`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE), indicates the maximum number of hops the request can do before being reflected to the sender."},NEL:{description:"Defines a mechanism that enables developers to declare a network error reporting policy.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},Origin:{description:"Indicates where a fetch originates from.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},"Origin-Isolation":{experimental:!0,description:"Provides a mechanism to allow web applications to isolate their origins.",link:""},"Permissions-Policy":{description:"Provides a mechanism to allow and deny the use of browser features in a website's own frame, and in iframes that it embeds.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},Pragma:{deprecated:!0,description:"Implementation-specific header that may have various effects anywhere along the request-response chain. Used for backwards compatibility with HTTP/1.0 caches where the Cache-Control header is not yet present.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma",markdown:"Implementation-specific header that may have various effects anywhere along the request-response chain. Used for backwards compatibility with HTTP/1.0 caches where the `Cache-Control` header is not yet present."},"Proxy-Authenticate":{description:"Defines the authentication method that should be used to access a resource behind a proxy server.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},"Proxy-Authorization":{description:"Contains the credentials to authenticate a user agent with a proxy server.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},"Push-Policy":{experimental:!0,description:"A Push-Policy defines the server behavior regarding push when processing a request.",link:"",markdown:"A [`Push-Policy`](https://datatracker.ietf.org/doc/html/draft-ruellan-http-accept-push-policy-00#section-3.2) defines the server behavior regarding push when processing a request."},Range:{description:"Indicates the part of a document that the server should return.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},Referer:{description:"The address of the previous web page from which a link to the currently requested page was followed.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},"Referrer-Policy":{description:"Governs which referrer information sent in the Referer header should be included with requests made.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},Refresh:{description:'Directs the browser to reload the page or redirect to another. Takes the same value as the meta element with http-equiv="refresh".',link:"",markdown:'Directs the browser to reload the page or redirect to another. Takes the same value as the `meta` element with [`http-equiv="refresh"`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#http-equiv).'},"Report-To":{description:"Used to specify a server endpoint for the browser to send warning and error reports to.",link:""},"Retry-After":{description:"Indicates how long the user agent should wait before making a follow-up request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},RTT:{description:"Application layer round trip time (RTT) in milliseconds, which includes the server processing time. This is part of the Network Information API.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT",markdown:"Application layer round trip time (RTT) in milliseconds, which includes the server processing time. This is part of the [Network Information API](https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API)."},"Save-Data":{experimental:!0,description:"A boolean that indicates the user agent's preference for reduced data usage.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},"Sec-CH-Prefers-Reduced-Motion":{experimental:!0,description:"User agent's reduced motion preference setting.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},"Sec-CH-UA":{experimental:!0,description:"User agent's branding and version.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},"Sec-CH-UA-Arch":{experimental:!0,description:"User agent's underlying platform architecture.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},"Sec-CH-UA-Bitness":{experimental:!0,description:'User agent\'s underlying CPU architecture bitness (for example "64" bit).',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},"Sec-CH-UA-Full-Version":{description:"User agent's full semantic version string.",deprecated:!0,link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},"Sec-CH-UA-Full-Version-List":{experimental:!0,description:"Full version for each brand in the user agent's brand list.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},"Sec-CH-UA-Mobile":{experimental:!0,description:'User agent is running on a mobile device or, more generally, prefers a "mobile" user experience.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},"Sec-CH-UA-Model":{experimental:!0,description:"User agent's device model.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},"Sec-CH-UA-Platform":{experimental:!0,description:" User agent's underlying operation system/platform.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},"Sec-CH-UA-Platform-Version":{experimental:!0,description:"User agent's underlying operation system version.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},"Sec-Fetch-Dest":{description:'Indicates the request\'s destination. It is a Structured Header whose value is a token with possible values "audio", "audioworklet", "document", "embed", "empty", "font", "image", "manifest", "object", "paintworklet", "report", "script", "serviceworker", "sharedworker", "style", "track", "video", "worker", and "xslt".',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest",markdown:"Indicates the request's destination. It is a Structured Header whose value is a token with possible values `audio`, `audioworklet`, `document`, `embed`, `empty`, `font`, `image`, `manifest`, `object`, `paintworklet`, `report`, `script`, `serviceworker`, `sharedworker`, `style`, `track`, `video`, `worker`, and `xslt`."},"Sec-Fetch-Mode":{description:'Indicates the request\'s mode to a server. It is a Structured Header whose value is a token with possible values "cors", "navigate", "no-cors", "same-origin", and "websocket".',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode",markdown:"Indicates the request's mode to a server. It is a Structured Header whose value is a token with possible values `cors`, `navigate`, `no-cors`, `same-origin`, and `websocket`."},"Sec-Fetch-Site":{description:' Indicates the relationship between a request initiator\'s origin and its target\'s origin. It is a Structured Header whose value is a token with possible values "cross-site", "same-origin", "same-site", and "none".',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site",markdown:"Indicates the relationship between a request initiator's origin and its target's origin. It is a Structured Header whose value is a token with possible values `cross-site`, `same-origin`, `same-site`, and `none`."},"Sec-Fetch-User":{description:'Indicates whether or not a navigation request was triggered by user activation. It is a Structured Header whose value is a boolean so possible values are "?0" for false and "?1" for true.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User",markdown:"Indicates whether or not a navigation request was triggered by user activation. It is a Structured Header whose value is a boolean so possible values are `?0` for false and `?1` for true."},"Sec-Purpose":{experimental:!0,description:'Indicates the purpose of the request, when the purpose is something other than immediate use by the user-agent. The header currently has one possible value, "prefetch", which indicates that the resource is being fetched preemptively for a possible future navigation.',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose",markdown:"Indicates the purpose of the request, when the purpose is something other than immediate use by the user-agent. The header currently has one possible value, `prefetch`, which indicates that the resource is being fetched preemptively for a possible future navigation."},Server:{description:"Contains information about the software used by the origin server to handle the request.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},"Server-Timing":{description:"Communicates one or more metrics and descriptions for the given request-response cycle.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},"Service-Worker-Allowed":{description:"Used to remove the path restriction by including this header in the response of the Service Worker script.",link:"",markdown:"Used to remove the [path restriction](https://w3c.github.io/ServiceWorker/#path-restriction) by including this header [in the response of the Service Worker script](https://w3c.github.io/ServiceWorker/#service-worker-script-response)."},"Service-Worker-Navigation-Preload":{description:"A request header sent in preemptive request to fetch a resource during service worker boot. The value, which is set with NavigationPreloadManager.setHeaderValue(), can be used to inform a server that a different resource should be returned than in a normal fetch operation.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload",markdown:"A request header sent in preemptive request to `fetch()` a resource during service worker boot. The value, which is set with `NavigationPreloadManager.setHeaderValue()`, can be used to inform a server that a different resource should be returned than in a normal `fetch()` operation."},"Set-Cookie":{description:"Send cookies from the server to the user-agent.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},Signature:{experimental:!0,description:'The "Signature" header field conveys a list of signatures for an exchange, each one accompanied by information about how to determine the authority of and refresh that signature.',link:"",markdown:"The [`Signature`](https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html#rfc.section.3.1) header field conveys a list of signatures for an exchange, each one accompanied by information about how to determine the authority of and refresh that signature."},"Signed-Headers":{experimental:!0,description:'The "Signed-Headers" header field identifies an ordered list of response header fields to include in a signature.',link:"",markdown:"The [`Signed-Headers`](https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html#rfc.section.5.1.2) header field identifies an ordered list of response header fields to include in a signature."},SourceMap:{description:"Links generated code to a source map.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap",markdown:"Links generated code to a [source map](https://firefox-source-docs.mozilla.org/devtools-user/debugger/how_to/use_a_source_map/index.html)."},"Strict-Transport-Security":{description:"Force communication using HTTPS instead of HTTP.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},TE:{description:"Specifies the transfer encodings the user agent is willing to accept.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},"Timing-Allow-Origin":{description:"Specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API, which would otherwise be reported as zero due to cross-origin restrictions.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin",markdown:"Specifies origins that are allowed to see values of attributes retrieved via features of the [Resource Timing API](https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/Resource_timing), which would otherwise be reported as zero due to cross-origin restrictions."},Trailer:{description:"Allows the sender to include additional fields at the end of chunked message.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},"Transfer-Encoding":{description:"Specifies the form of encoding used to safely transfer the resource to the user.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},Upgrade:{description:"The standard establishes rules for upgrading or changing to a different protocol on the current client, server, transport protocol connection. For example, this header standard allows a client to change from HTTP 1.1 to WebSocket, assuming the server decides to acknowledge and implement the Upgrade header field. Neither party is required to accept the terms specified in the Upgrade header field. It can be used in both client and server headers. If the Upgrade header field is specified, then the sender MUST also send the Connection header field with the upgrade option specified.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade",markdown:"The relevant RFC document for the [Upgrade header field is RFC 9110, section 7.8](https://httpwg.org/specs/rfc9110.html#field.upgrade). The standard establishes rules for upgrading or changing to a different protocol on the current client, server, transport protocol connection. For example, this header standard allows a client to change from HTTP 1.1 to [WebSocket](/en-US/docs/Glossary/WebSockets), assuming the server decides to acknowledge and implement the Upgrade header field. Neither party is required to accept the terms specified in the Upgrade header field. It can be used in both client and server headers. If the Upgrade header field is specified, then the sender MUST also send the Connection header field with the upgrade option specified. For details on the Connection header field [please see section 7.6.1 of the aforementioned RFC](https://httpwg.org/specs/rfc9110.html#field.connection)."},"Upgrade-Insecure-Requests":{description:"Sends a signal to the server expressing the client's preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests directive.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},"User-Agent":{description:"Contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent",markdown:"Contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent. See also the [Firefox user agent string reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox)."},Vary:{description:"Determines how to match request headers to decide whether a cached response can be used rather than requesting a fresh one from the origin server.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},Via:{description:"Added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},"Viewport-Width":{deprecated:!0,experimental:!0,description:"A number that indicates the layout viewport width in CSS pixels. The provided pixel value is a number rounded to the smallest following integer (i.e. ceiling value).",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},Warning:{deprecated:!0,description:"General warning information about possible problems.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},Width:{deprecated:!0,experimental:!0,description:"A number that indicates the desired resource width in physical pixels (i.e. intrinsic size of an image).",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},"WWW-Authenticate":{description:"Defines the authentication method that should be used to access a resource.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},"X-Content-Type-Options":{description:"Disables MIME sniffing and forces browser to use the type given in Content-Type.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},"X-DNS-Prefetch-Control":{description:"Controls DNS prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as URLs for items referenced by the document, including images, CSS, JavaScript, and so forth.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},"X-Forwarded-For":{description:"Identifies the originating IP addresses of a client connecting to a web server through an HTTP proxy or a load balancer.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},"X-Forwarded-Host":{description:"Identifies the original host requested that a client used to connect to your proxy or load balancer.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},"X-Forwarded-Proto":{description:"Identifies the protocol (HTTP or HTTPS) that a client used to connect to your proxy or load balancer.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},"X-Frame-Options":{description:'Indicates whether a browser should be allowed to render a page in a "frame", "iframe", "embed" or "object".',link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},"X-Permitted-Cross-Domain-Policies":{description:"Specifies if a cross-domain policy file crossdomain.xml is allowed. The file may define a policy to grant clients, such as Adobe's Flash Player (now obsolete), Adobe Acrobat, Microsoft Silverlight (now obsolete), or Apache Flex, permission to handle data across domains that would otherwise be restricted due to the Same-Origin Policy.",link:"",markdown:"Specifies if a cross-domain policy file (`crossdomain.xml`) is allowed. The file may define a policy to grant clients, such as Adobe's Flash Player (now obsolete), Adobe Acrobat, Microsoft Silverlight (now obsolete), or Apache Flex, permission to handle data across domains that would otherwise be restricted due to the [Same-Origin Policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy). See the [Cross-domain Policy File Specification](https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/CrossDomain_PolicyFile_Specification.pdf) for more information."},"X-Powered-By":{description:"May be set by hosting environments or other frameworks and contains information about them while not providing any usefulness to the application or its visitors. Unset this header to avoid exposing potential vulnerabilities.",link:""},"X-Robots-Tag":{description:'The "X-Robots-Tag" HTTP header is used to indicate how a web page is to be indexed within public search engine results. The header is effectively equivalent to ``.',link:"",markdown:'The [`X-Robots-Tag`](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag) HTTP header is used to indicate how a web page is to be indexed within public search engine results. The header is effectively equivalent to ``.'},"X-XSS-Protection":{description:"Enables cross-site scripting filtering.",link:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},"Last-Event-ID":{description:"",link:""},"Ping-From":{description:"",link:""},"Ping-To":{description:"",link:""},"Sec-WebSocket-Accept":{description:"",link:""},"Sec-WebSocket-Extensions":{description:"",link:""},"Sec-WebSocket-Key":{description:"",link:""},"Sec-WebSocket-Protocol":{description:"",link:""},"Sec-WebSocket-Version":{description:"",link:""},"X-Firefox-Spdy":{description:"",link:""},"X-Pingback":{description:"",link:""},"X-Requested-With":{description:"",link:""}}},70982:(e,t,o)=>{"use strict";t.jZ=void 0;var i=o(45731);t.jZ=function(e){return e.toLowerCase().split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("-")};t.Ay=function(e){var o,n=(0,t.jZ)(e);return null!==(o=i.default[n])&&void 0!==o?o:{}}},590:(e,t,o)=>{"use strict";o.d(t,{A6:()=>Io,E8:()=>Ln,PP:()=>gr,t1:()=>ln,dN:()=>er,ZT:()=>No,No:()=>Sn,kc:()=>xr,FN:()=>Pn,m_:()=>pr});const i="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function n(e,t,o){const n=o||(e=>Array.prototype.slice.call(e));let r=!1,s=[];return function(...o){s=n(o),r||(r=!0,i.call(window,(()=>{r=!1,e.apply(t,s)})))}}const r=e=>"start"===e?"left":"end"===e?"right":"center",s=(e,t,o)=>"start"===e?t:"end"===e?o:(t+o)/2;function a(){}const l=function(){let e=0;return function(){return e++}}();function c(e){return null==e}function d(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function h(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const u=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function p(e,t){return u(e)?e:t}function f(e,t){return void 0===e?t:e}const g=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function m(e,t,o){if(e&&"function"==typeof e.call)return e.apply(o,t)}function b(e,t,o,i){let n,r,s;if(d(e))if(r=e.length,i)for(n=r-1;n>=0;n--)t.call(o,e[n],n);else for(n=0;no;)e=e[t.substr(o,i-o)],o=i+1,i=A(t,o);return e}function E(e){return e.charAt(0).toUpperCase()+e.slice(1)}const O=e=>void 0!==e,M=e=>"function"==typeof e,D=Math.PI,C=2*D,R=C+D,I=Number.POSITIVE_INFINITY,H=D/180,L=D/2,N=D/4,z=2*D/3,U=Math.log10,F=Math.sign;function j(e){const t=Math.pow(10,Math.floor(U(e))),o=e/t;return(o<=1?1:o<=2?2:o<=5?5:10)*t}function W(e){return!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t,o){return Math.abs(e-t)l&&c0===e||1===e,ee=(e,t,o)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*C/o),te=(e,t,o)=>Math.pow(2,-10*e)*Math.sin((e-t)*C/o)+1,oe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*L),easeOutSine:e=>Math.sin(e*L),easeInOutSine:e=>-.5*(Math.cos(D*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Z(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Z(e)?e:ee(e,.075,.3),easeOutElastic:e=>Z(e)?e:te(e,.075,.3),easeInOutElastic(e){const t=.1125;return Z(e)?e:e<.5?.5*ee(2*e,t,.45):.5+.5*te(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-oe.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,o=2.75;return e<1/o?t*e*e:e<2/o?t*(e-=1.5/o)*e+.75:e<2.5/o?t*(e-=2.25/o)*e+.9375:t*(e-=2.625/o)*e+.984375},easeInOutBounce:e=>e<.5?.5*oe.easeInBounce(2*e):.5*oe.easeOutBounce(2*e-1)+.5},ie={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ne="0123456789ABCDEF",re=e=>ne[15&e],se=e=>ne[(240&e)>>4]+ne[15&e],ae=e=>(240&e)>>4==(15&e);function le(e){var t=function(e){return ae(e.r)&&ae(e.g)&&ae(e.b)&&ae(e.a)}(e)?re:se;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function ce(e){return e+.5|0}const de=(e,t,o)=>Math.max(Math.min(e,o),t);function he(e){return de(ce(2.55*e),0,255)}function ue(e){return de(ce(255*e),0,255)}function pe(e){return de(ce(e/2.55)/100,0,1)}function fe(e){return de(ce(100*e),0,100)}const ge=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const me=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function be(e,t,o){const i=t*Math.min(o,1-o),n=(t,n=(t+e/30)%12)=>o-i*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function ye(e,t,o){const i=(i,n=(i+e/60)%6)=>o-o*t*Math.max(Math.min(n,4-n,1),0);return[i(5),i(3),i(1)]}function xe(e,t,o){const i=be(e,1,.5);let n;for(t+o>1&&(n=1/(t+o),t*=n,o*=n),n=0;n<3;n++)i[n]*=1-t-o,i[n]+=t;return i}function ve(e){const t=e.r/255,o=e.g/255,i=e.b/255,n=Math.max(t,o,i),r=Math.min(t,o,i),s=(n+r)/2;let a,l,c;return n!==r&&(c=n-r,l=s>.5?c/(2-n-r):c/(n+r),a=n===t?(o-i)/c+(o>16&255,r>>8&255,255&r]}return e}(),Pe.transparent=[0,0,0,0]);const t=Pe[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function Oe(e,t,o){if(e){let i=ve(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*o,0===t?360:1)),i=we(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Me(e,t){return e?Object.assign(t||{},e):e}function De(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ue(e[3]))):(t=Me(e,{r:0,g:0,b:0,a:1})).a=ue(t.a),t}function Ce(e){return"r"===e.charAt(0)?function(e){const t=ge.exec(e);let o,i,n,r=255;if(t){if(t[7]!==o){const e=+t[7];r=255&(t[8]?he(e):255*e)}return o=+t[1],i=+t[3],n=+t[5],o=255&(t[2]?he(o):o),i=255&(t[4]?he(i):i),n=255&(t[6]?he(n):n),{r:o,g:i,b:n,a:r}}}(e):ke(e)}class Re{constructor(e){if(e instanceof Re)return e;const t=typeof e;let o;var i,n,r;"object"===t?o=De(e):"string"===t&&(r=(i=e).length,"#"===i[0]&&(4===r||5===r?n={r:255&17*ie[i[1]],g:255&17*ie[i[2]],b:255&17*ie[i[3]],a:5===r?17*ie[i[4]]:255}:7!==r&&9!==r||(n={r:ie[i[1]]<<4|ie[i[2]],g:ie[i[3]]<<4|ie[i[4]],b:ie[i[5]]<<4|ie[i[6]],a:9===r?ie[i[7]]<<4|ie[i[8]]:255})),o=n||Ee(e)||Ce(e)),this._rgb=o,this._valid=!!o}get valid(){return this._valid}get rgb(){var e=Me(this._rgb);return e&&(e.a=pe(e.a)),e}set rgb(e){this._rgb=De(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${pe(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):this._rgb;var e}hexString(){return this._valid?le(this._rgb):this._rgb}hslString(){return this._valid?function(e){if(!e)return;const t=ve(e),o=t[0],i=fe(t[1]),n=fe(t[2]);return e.a<255?`hsla(${o}, ${i}%, ${n}%, ${pe(e.a)})`:`hsl(${o}, ${i}%, ${n}%)`}(this._rgb):this._rgb}mix(e,t){const o=this;if(e){const i=o.rgb,n=e.rgb;let r;const s=t===r?.5:t,a=2*s-1,l=i.a-n.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,i.r=255&c*i.r+r*n.r+.5,i.g=255&c*i.g+r*n.g+.5,i.b=255&c*i.b+r*n.b+.5,i.a=s*i.a+(1-s)*n.a,o.rgb=i}return o}clone(){return new Re(this.rgb)}alpha(e){return this._rgb.a=ue(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ce(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Oe(this._rgb,2,e),this}darken(e){return Oe(this._rgb,2,-e),this}saturate(e){return Oe(this._rgb,1,e),this}desaturate(e){return Oe(this._rgb,1,-e),this}rotate(e){return function(e,t){var o=ve(e);o[0]=Te(o[0]+t),o=we(o),e.r=o[0],e.g=o[1],e.b=o[2]}(this._rgb,e),this}}function Ie(e){return new Re(e)}const He=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function Le(e){return He(e)?e:Ie(e)}function Ne(e){return He(e)?e:Ie(e).saturate(.5).darken(.1).hexString()}const ze=Object.create(null),Ue=Object.create(null);function Fe(e,t){if(!t)return e;const o=t.split(".");for(let t=0,i=o.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Ne(t.backgroundColor),this.hoverBorderColor=(e,t)=>Ne(t.borderColor),this.hoverColor=(e,t)=>Ne(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,t){return je(this,e,t)}get(e){return Fe(this,e)}describe(e,t){return je(Ue,e,t)}override(e,t){return je(ze,e,t)}route(e,t,o,i){const n=Fe(this,e),r=Fe(this,o),s="_"+t;Object.defineProperties(n,{[s]:{value:n[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[s],t=r[i];return h(e)?Object.assign({},t,e):f(e,t)},set(e){this[s]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Ve(e,t,o,i,n){let r=t[n];return r||(r=t[n]=e.measureText(n).width,o.push(n)),r>i&&(i=r),i}function Be(e,t,o,i){let n=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(n=i.data={},r=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let s=0;const a=o.length;let l,c,h,u,p;for(l=0;lo.length){for(l=0;l0&&e.stroke()}}function Ke(e,t,o){return o=o||.5,e&&e.x>t.left-o&&e.xt.top-o&&e.y0&&""!==r.strokeColor;let l,h;for(e.save(),e.font=n.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);c(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,r),l=0;l+e||0;function st(e,t){const o={},i=h(t),n=i?Object.keys(t):t,r=h(e)?i?o=>f(e[o],e[t[o]]):t=>e[t]:()=>e;for(const e of n)o[e]=rt(r(e));return o}function at(e){return st(e,{top:"y",right:"x",bottom:"y",left:"x"})}function lt(e){return st(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ct(e){const t=at(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function dt(e,t){e=e||{},t=t||We.font;let o=f(e.size,t.size);"string"==typeof o&&(o=parseInt(o,10));let i=f(e.style,t.style);i&&!(""+i).match(it)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const n={family:f(e.family,t.family),lineHeight:nt(f(e.lineHeight,t.lineHeight),o),size:o,style:i,weight:f(e.weight,t.weight),string:""};return n.string=function(e){return!e||c(e.size)||c(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(n),n}function ht(e,t,o,i){let n,r,s,a=!0;for(n=0,r=e.length;ne[o]1;)i=r+n>>1,o(i)?r=i:n=i;return{lo:r,hi:n}}const pt=(e,t,o)=>ut(e,o,(i=>e[i][t]ut(e,o,(i=>e[i][t]>=o));const gt=["push","pop","shift","splice","unshift"];function mt(e,t){const o=e._chartjs;if(!o)return;const i=o.listeners,n=i.indexOf(t);-1!==n&&i.splice(n,1),i.length>0||(gt.forEach((t=>{delete e[t]})),delete e._chartjs)}function bt(e){const t=new Set;let o,i;for(o=0,i=e.length;oe[0])){O(i)||(i=Ot("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:n,override:n=>yt([n,...e],t,o,i)};return new Proxy(r,{deleteProperty:(t,o)=>(delete t[o],delete t._keys,delete e[0][o],!0),get:(o,i)=>Tt(o,i,(()=>function(e,t,o,i){let n;for(const r of t)if(n=Ot(_t(r,e),o),O(n))return wt(e,n)?Pt(o,i,e,n):n}(i,t,e,o))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Mt(e).includes(t),ownKeys:e=>Mt(e),set:(e,t,o)=>((e._storage||(e._storage=n()))[t]=o,delete e[t],delete e._keys,!0)})}function xt(e,t,o,i){const n={_cacheable:!1,_proxy:e,_context:t,_subProxy:o,_stack:new Set,_descriptors:vt(e,i),setContext:t=>xt(e,t,o,i),override:n=>xt(e.override(n),t,o,i)};return new Proxy(n,{deleteProperty:(t,o)=>(delete t[o],delete e[o],!0),get:(e,t,o)=>Tt(e,t,(()=>function(e,t,o){const{_proxy:i,_context:n,_subProxy:r,_descriptors:s}=e;let a=i[t];M(a)&&s.isScriptable(t)&&(a=function(e,t,o,i){const{_proxy:n,_context:r,_subProxy:s,_stack:a}=o;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e),t=t(r,s||i),a.delete(e),h(t)&&(t=Pt(n._scopes,n,e,t));return t}(t,a,e,o));d(a)&&a.length&&(a=function(e,t,o,i){const{_proxy:n,_context:r,_subProxy:s,_descriptors:a}=o;if(O(r.index)&&i(e))t=t[r.index%t.length];else if(h(t[0])){const o=t,i=n._scopes.filter((e=>e!==o));t=[];for(const l of o){const o=Pt(i,n,e,l);t.push(xt(o,r,s&&s[e],a))}}return t}(t,a,e,s.isIndexable));wt(t,a)&&(a=xt(a,n,r&&r[t],s));return a}(e,t,o))),getOwnPropertyDescriptor:(t,o)=>t._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,o)=>Reflect.has(e,o),ownKeys:()=>Reflect.ownKeys(e),set:(t,o,i)=>(e[o]=i,delete t[o],!0)})}function vt(e,t={scriptable:!0,indexable:!0}){const{_scriptable:o=t.scriptable,_indexable:i=t.indexable,_allKeys:n=t.allKeys}=e;return{allKeys:n,scriptable:o,indexable:i,isScriptable:M(o)?o:()=>o,isIndexable:M(i)?i:()=>i}}const _t=(e,t)=>e?e+E(t):t,wt=(e,t)=>h(t)&&"adapters"!==e;function Tt(e,t,o){let i=e[t];return O(i)||(i=o(),O(i)&&(e[t]=i)),i}function kt(e,t,o){return M(e)?e(t,o):e}const St=(e,t)=>!0===e?t:"string"==typeof e?P(t,e):void 0;function At(e,t,o,i){for(const n of t){const t=St(o,n);if(t){e.add(t);const n=kt(t._fallback,o,t);if(O(n)&&n!==o&&n!==i)return n}else if(!1===t&&O(i)&&o!==i)return null}return!1}function Pt(e,t,o,i){const n=t._rootScopes,r=kt(t._fallback,o,i),s=[...e,...n],a=new Set;a.add(i);let l=Et(a,s,o,r||o);return null!==l&&((!O(r)||r===o||(l=Et(a,s,r,l),null!==l))&&yt(Array.from(a),[""],n,r,(()=>function(e,t,o){const i=e._getTarget();t in i||(i[t]={});const n=i[t];if(d(n)&&h(o))return o;return n}(t,o,i))))}function Et(e,t,o,i){for(;o;)o=At(e,t,o,i);return o}function Ot(e,t){for(const o of t){if(!o)continue;const t=o[e];if(O(t))return t}}function Mt(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const o of e)for(const e of Object.keys(o).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const Dt=Number.EPSILON||1e-14,Ct=(e,t)=>t"x"===e?"y":"x";function It(e,t,o,i){const n=e.skip?t:e,r=t,s=o.skip?t:o,a=K(r,n),l=K(s,r);let c=a/(a+l),d=l/(a+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:r.x-h*(s.x-n.x),y:r.y-h*(s.y-n.y)},next:{x:r.x+u*(s.x-n.x),y:r.y+u*(s.y-n.y)}}}function Ht(e,t="x"){const o=Rt(t),i=e.length,n=Array(i).fill(0),r=Array(i);let s,a,l,c=Ct(e,0);for(s=0;s!e.skip))),"monotone"===t.cubicInterpolationMode)Ht(e,n);else{let o=i?e[e.length-1]:e[0];for(r=0,s=e.length;rwindow.getComputedStyle(e,null);const jt=["top","right","bottom","left"];function Wt(e,t,o){const i={};o=o?"-"+o:"";for(let n=0;n<4;n++){const r=jt[n];i[r]=parseFloat(e[t+"-"+r+o])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Vt=(e,t,o)=>(e>0||t>0)&&(!o||!o.shadowRoot);function Bt(e,t){const{canvas:o,currentDevicePixelRatio:i}=t,n=Ft(o),r="border-box"===n.boxSizing,s=Wt(n,"padding"),a=Wt(n,"border","width"),{x:l,y:c,box:d}=function(e,t){const o=e.native||e,i=o.touches,n=i&&i.length?i[0]:o,{offsetX:r,offsetY:s}=n;let a,l,c=!1;if(Vt(r,s,o.target))a=r,l=s;else{const e=t.getBoundingClientRect();a=n.clientX-e.left,l=n.clientY-e.top,c=!0}return{x:a,y:l,box:c}}(e,o),h=s.left+(d&&a.left),u=s.top+(d&&a.top);let{width:p,height:f}=t;return r&&(p-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-h)/p*o.width/i),y:Math.round((c-u)/f*o.height/i)}}const $t=e=>Math.round(10*e)/10;function qt(e,t,o,i){const n=Ft(e),r=Wt(n,"margin"),s=Ut(n.maxWidth,e,"clientWidth")||I,a=Ut(n.maxHeight,e,"clientHeight")||I,l=function(e,t,o){let i,n;if(void 0===t||void 0===o){const r=zt(e);if(r){const e=r.getBoundingClientRect(),s=Ft(r),a=Wt(s,"border","width"),l=Wt(s,"padding");t=e.width-l.width-a.width,o=e.height-l.height-a.height,i=Ut(s.maxWidth,r,"clientWidth"),n=Ut(s.maxHeight,r,"clientHeight")}else t=e.clientWidth,o=e.clientHeight}return{width:t,height:o,maxWidth:i||I,maxHeight:n||I}}(e,t,o);let{width:c,height:d}=l;if("content-box"===n.boxSizing){const e=Wt(n,"border","width"),t=Wt(n,"padding");c-=t.width+e.width,d-=t.height+e.height}return c=Math.max(0,c-r.width),d=Math.max(0,i?Math.floor(c/i):d-r.height),c=$t(Math.min(c,s,l.maxWidth)),d=$t(Math.min(d,a,l.maxHeight)),c&&!d&&(d=$t(c/2)),{width:c,height:d}}function Yt(e,t,o){const i=t||1,n=Math.floor(e.height*i),r=Math.floor(e.width*i);e.height=n/i,e.width=r/i;const s=e.canvas;return s.style&&(o||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||s.height!==n||s.width!==r)&&(e.currentDevicePixelRatio=i,s.height=n,s.width=r,e.ctx.setTransform(i,0,0,i,0,0),!0)}const Kt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Xt(e,t){const o=function(e,t){return Ft(e).getPropertyValue(t)}(e,t),i=o&&o.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Qt(e,t,o,i){return{x:e.x+o*(t.x-e.x),y:e.y+o*(t.y-e.y)}}function Gt(e,t,o,i){return{x:e.x+o*(t.x-e.x),y:"middle"===i?o<.5?e.y:t.y:"after"===i?o<1?e.y:t.y:o>0?t.y:e.y}}function Jt(e,t,o,i){const n={x:e.cp2x,y:e.cp2y},r={x:t.cp1x,y:t.cp1y},s=Qt(e,n,o),a=Qt(n,r,o),l=Qt(r,t,o),c=Qt(s,a,o),d=Qt(a,l,o);return Qt(c,d,o)}const Zt=new Map;function eo(e,t,o){return function(e,t){t=t||{};const o=e+JSON.stringify(t);let i=Zt.get(o);return i||(i=new Intl.NumberFormat(e,t),Zt.set(o,i)),i}(t,o).format(e)}function to(e,t,o){return e?function(e,t){return{x:o=>e+e+t-o,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,o):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function oo(e,t){let o,i;"ltr"!==t&&"rtl"!==t||(o=e.canvas.style,i=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",t,"important"),e.prevTextDirection=i)}function io(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function no(e){return"angle"===e?{between:G,compare:X,normalize:Q}:{between:(e,t,o)=>e>=Math.min(t,o)&&e<=Math.max(o,t),compare:(e,t)=>e-t,normalize:e=>e}}function ro({start:e,end:t,count:o,loop:i,style:n}){return{start:e%o,end:t%o,loop:i&&(t-e+1)%o==0,style:n}}function so(e,t,o){if(!o)return[e];const{property:i,start:n,end:r}=o,s=t.length,{compare:a,between:l,normalize:c}=no(i),{start:d,end:h,loop:u,style:p}=function(e,t,o){const{property:i,start:n,end:r}=o,{between:s,normalize:a}=no(i),l=t.length;let c,d,{start:h,end:u,loop:p}=e;if(p){for(h+=l,u+=l,c=0,d=l;cy||l(n,b,g)&&0!==a(n,b),_=()=>!y||0===a(r,g)||l(r,b,g);for(let e=d,o=d;e<=h;++e)m=t[e%s],m.skip||(g=c(m[i]),g!==b&&(y=l(g,n,r),null===x&&v()&&(x=0===a(g,n)?e:o),null!==x&&_()&&(f.push(ro({start:x,end:e,loop:u,count:s,style:p})),x=null),o=e,b=g));return null!==x&&f.push(ro({start:x,end:h,loop:u,count:s,style:p})),f}function ao(e,t){const o=[],i=e.segments;for(let n=0;ni({chart:e,initial:t.initial,numSteps:r,currentStep:Math.min(o-t.start,r)})))}_refresh(){const e=this;e._request||(e._running=!0,e._request=i.call(window,(()=>{e._update(),e._request=null,e._running&&e._refresh()})))}_update(e=Date.now()){const t=this;let o=0;t._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const r=i.items;let s,a=r.length-1,l=!1;for(;a>=0;--a)s=r[a],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(e),l=!0):(r[a]=r[r.length-1],r.pop());l&&(n.draw(),t._notify(n,i,e,"progress")),r.length||(i.running=!1,t._notify(n,i,e,"complete"),i.initial=!1),o+=r.length})),t._lastDate=e,0===o&&(t._running=!1)}_getAnims(e){const t=this._charts;let o=t.get(e);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,o)),o}listen(e,t,o){this._getAnims(e).listeners[t].push(o)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const o=t.items;let i=o.length-1;for(;i>=0;--i)o[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const po="transparent",fo={boolean:(e,t,o)=>o>.5?t:e,color(e,t,o){const i=Le(e||po),n=i.valid&&Le(t||po);return n&&n.valid?n.mix(i,o).hexString():t},number:(e,t,o)=>e+(t-e)*o};class go{constructor(e,t,o,i){const n=t[o];i=ht([e.to,i,n,e.from]);const r=ht([e.from,n,i]);this._active=!0,this._fn=e.fn||fo[e.type||typeof r],this._easing=oe[e.easing]||oe.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=o,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,o){const i=this;if(i._active){i._notify(!1);const n=i._target[i._prop],r=o-i._start,s=i._duration-r;i._start=o,i._duration=Math.floor(Math.max(s,e.duration)),i._total+=r,i._loop=!!e.loop,i._to=ht([e.to,t,n,e.from]),i._from=ht([e.from,n,t])}}cancel(){const e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}tick(e){const t=this,o=e-t._start,i=t._duration,n=t._prop,r=t._from,s=t._loop,a=t._to;let l;if(t._active=r!==a&&(s||o1?2-l:l,l=t._easing(Math.min(1,Math.max(0,l))),t._target[n]=t._fn(r,a,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,o)=>{e.push({res:t,rej:o})}))}_notify(e){const t=e?"res":"rej",o=this._promises||[];for(let e=0;e"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),We.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),We.describe("animations",{_fallback:"animation"}),We.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class bo{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!h(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const i=e[o];if(!h(i))return;const n={};for(const e of mo)n[e]=i[e];(d(i.properties)&&i.properties||[o]).forEach((e=>{e!==o&&t.has(e)||t.set(e,n)}))}))}_animateOptions(e,t){const o=t.options,i=function(e,t){if(!t)return;let o=e.options;if(!o)return void(e.options=t);o.$shared&&(e.options=o=Object.assign({},o,{$shared:!1,$animations:{}}));return o}(e,o);if(!i)return[];const n=this._createAnimations(i,o);return o.$shared&&function(e,t){const o=[],i=Object.keys(t);for(let t=0;t{e.options=o}),(()=>{})),n}_createAnimations(e,t){const o=this._properties,i=[],n=e.$animations||(e.$animations={}),r=Object.keys(t),s=Date.now();let a;for(a=r.length-1;a>=0;--a){const l=r[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let d=n[l];const h=o.get(l);if(d){if(h&&d.active()){d.update(h,c,s);continue}d.cancel()}h&&h.duration?(n[l]=d=new go(h,e,l,c),i.push(d)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const o=this._createAnimations(e,t);return o.length?(uo.add(this._chart,o),!0):void 0}}function yo(e,t){const o=e&&e.options||{},i=o.reverse,n=void 0===o.min?t:0,r=void 0===o.max?t:0;return{start:i?r:n,end:i?n:r}}function xo(e,t){const o=[],i=e._getSortedDatasetMetas(t);let n,r;for(n=0,r=i.length;n0||!o&&t<0)return i.index}return null}function ko(e,t){const{chart:o,_cachedMeta:i}=e,n=o._stacks||(o._stacks={}),{iScale:r,vScale:s,index:a}=i,l=r.axis,c=s.axis,d=function(e,t,o){return`${e.id}.${t.id}.${o.stack||o.type}`}(r,s,i),h=t.length;let u;for(let e=0;eo[e].axis===t)).shift()}function Ao(e,t){const o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const i of t){const t=i._stacks;if(!t||void 0===t[o]||void 0===t[o][e.index])return;delete t[o][e.index]}}}const Po=e=>"reset"===e||"none"===e,Eo=(e,t)=>t?e:Object.assign({},e);class Oo{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this,t=e._cachedMeta;e.configure(),e.linkScales(),t._stacked=_o(t.vScale,t),e.addElements()}updateIndex(e){this.index!==e&&Ao(this._cachedMeta),this.index=e}linkScales(){const e=this,t=e.chart,o=e._cachedMeta,i=e.getDataset(),n=(e,t,o,i)=>"x"===e?t:"r"===e?i:o,r=o.xAxisID=f(i.xAxisID,So(t,"x")),s=o.yAxisID=f(i.yAxisID,So(t,"y")),a=o.rAxisID=f(i.rAxisID,So(t,"r")),l=o.indexAxis,c=o.iAxisID=n(l,r,s,a),d=o.vAxisID=n(l,s,r,a);o.xScale=e.getScaleForId(r),o.yScale=e.getScaleForId(s),o.rScale=e.getScaleForId(a),o.iScale=e.getScaleForId(c),o.vScale=e.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&mt(this._data,this),e._stacked&&Ao(e)}_dataCheck(){const e=this,t=e.getDataset(),o=t.data||(t.data=[]),i=e._data;if(h(o))e._data=function(e){const t=Object.keys(e),o=new Array(t.length);let i,n,r;for(i=0,n=t.length;i{const t="_onData"+E(e),o=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...e){const i=o.apply(this,e);return n._chartjs.listeners.forEach((o=>{"function"==typeof o[t]&&o[t](...e)})),i}})})))),e._syncList=[],e._data=o}var n,r}addElements(){const e=this,t=e._cachedMeta;e._dataCheck(),e.datasetElementType&&(t.dataset=new e.datasetElementType)}buildOrUpdateElements(e){const t=this,o=t._cachedMeta,i=t.getDataset();let n=!1;t._dataCheck();const r=o._stacked;o._stacked=_o(o.vScale,o),o.stack!==i.stack&&(n=!0,Ao(o),o.stack=i.stack),t._resyncElements(e),(n||r!==o._stacked)&&ko(t,o._parsed)}configure(){const e=this,t=e.chart.config,o=t.datasetScopeKeys(e._type),i=t.getOptionScopes(e.getDataset(),o,!0);e.options=t.createResolver(i,e.getContext()),e._parsing=e.options.parsing}parse(e,t){const o=this,{_cachedMeta:i,_data:n}=o,{iScale:r,_stacked:s}=i,a=r.axis;let l,c,u,p=0===e&&t===n.length||i._sorted,f=e>0&&i._parsed[e-1];if(!1===o._parsing)i._parsed=n,i._sorted=!0,u=n;else{u=d(n[e])?o.parseArrayData(i,n,e,t):h(n[e])?o.parseObjectData(i,n,e,t):o.parsePrimitiveData(i,n,e,t);const r=()=>null===c[a]||f&&c[a]m||h=0;--p)if(!b()){o.updateRangeFromParsed(c,e,g,l);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,o=[];let i,n,r;for(i=0,n=t.length;i=0&&ei.getContext(o,n)),h);return f.$shared&&(f.$shared=l,r[s]=Object.freeze(Eo(f,l))),f}_resolveAnimations(e,t,o){const i=this,n=i.chart,r=i._cachedDataOpts,s=`animation-${t}`,a=r[s];if(a)return a;let l;if(!1!==n.options.animation){const n=i.chart.config,r=n.datasetAnimationScopeKeys(i._type,t),s=n.getOptionScopes(i.getDataset(),r);l=n.createResolver(s,i.getContext(e,o,t))}const c=new bo(n,l&&l.animations);return l&&l._cacheable&&(r[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Po(e)||this.chart._animationsDisabled}updateElement(e,t,o,i){Po(i)?Object.assign(e,o):this._resolveAnimations(t,i).update(e,o)}updateSharedOptions(e,t,o){e&&!Po(t)&&this._resolveAnimations(void 0,t).update(e,o)}_setStyle(e,t,o,i){e.active=i;const n=this.getStyle(t,i);this._resolveAnimations(t,o,i).update(e,{options:!i&&this.getSharedOptions(n)||n})}removeHoverStyle(e,t,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,t,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this,o=t._data,i=t._cachedMeta.data;for(const[e,o,i]of t._syncList)t[e](o,i);t._syncList=[];const n=i.length,r=o.length,s=Math.min(r,n);s&&t.parse(0,s),r>n?t._insertElements(n,r-n,e):r{for(e.length+=t,a=e.length-1;a>=s;a--)e[a]=e[a-t]};for(l(r),a=e;ae-t)))}return e._cache.$bar}(e);let o,i,n,r,s=e._length;const a=()=>{32767!==n&&-32768!==n&&(O(r)&&(s=Math.min(s,Math.abs(n-r)||s)),r=n)};for(o=0,i=t.length;oMath.abs(a)&&(l=a,c=s),t[o.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:r,min:s,max:a}}(e,t,o,i):t[o.axis]=o.parse(e,i),t}function Co(e,t,o,i){const n=e.iScale,r=e.vScale,s=n.getLabels(),a=n===r,l=[];let c,d,h,u;for(c=o,d=o+i;c0?(m+=e,h-=e):h<0&&(m-=e,h+=e)}return{size:h,base:m,head:d,center:d+h/2}}_calculateBarIndexPixels(e,t){const o=this,i=t.scale,n=o.options,r=n.skipNull,s=f(n.maxBarThickness,1/0);let a,l;if(t.grouped){const i=r?o._getStackCount(e):t.stackCount,d="flex"===n.barThickness?function(e,t,o,i){const n=t.pixels,r=n[e];let s=e>0?n[e-1]:null,a=e=0;--i)o=Math.max(o,e[i].size()/2,t[i]._custom);return o>0&&o}getLabelAndValue(e){const t=this._cachedMeta,{xScale:o,yScale:i}=t,n=this.getParsed(e),r=o.getLabelForValue(n.x),s=i.getLabelForValue(n.y),a=n._custom;return{label:t.label,value:"("+r+", "+s+(a?", "+a:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,o,i){const n=this,r="reset"===i,{iScale:s,vScale:a}=n._cachedMeta,l=n.resolveDataElementOptions(t,i),c=n.getSharedOptions(l),d=n.includeOptions(i,c),h=s.axis,u=a.axis;for(let l=t;l""}}}};class Lo extends Oo{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const o=this.getDataset().data,i=this._cachedMeta;let n,r;for(n=e,r=e+t;nG(e,a,l,!0)?1:Math.max(t,t*o,i,i*o),f=(e,t,i)=>G(e,a,l,!0)?-1:Math.min(t,t*o,i,i*o),g=p(0,c,h),m=p(L,d,u),b=f(D,c,h),y=f(D+L,d,u);i=(g-b)/2,n=(m-y)/2,r=-(g+b)/2,s=-(m+y)/2}return{ratioX:i,ratioY:n,offsetX:r,offsetY:s}}(p,u,l),x=(i.width-s)/f,v=(i.height-s)/m,_=Math.max(Math.min(x,v)/2,0),w=g(t.options.radius,_),T=(w-Math.max(w*l,0))/t._getVisibleDatasetWeightTotal();t.offsetX=b*w,t.offsetY=y*w,n.total=t.calculateTotal(),t.outerRadius=w-T*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-T*h,0),t.updateElements(r,0,r.length,e)}_circumference(e,t){const o=this,i=o.options,n=o._cachedMeta,r=o._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===n._parsed[e]?0:o.calculateCircumference(n._parsed[e]*r/C)}updateElements(e,t,o,i){const n=this,r="reset"===i,s=n.chart,a=s.chartArea,l=s.options.animation,c=(a.left+a.right)/2,d=(a.top+a.bottom)/2,h=r&&l.animateScale,u=h?0:n.innerRadius,p=h?0:n.outerRadius,f=n.resolveDataElementOptions(t,i),g=n.getSharedOptions(f),m=n.includeOptions(i,g);let b,y=n._getRotation();for(b=0;b0&&!isNaN(e)?C*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,o=this.chart,i=o.data.labels||[],n=eo(t._parsed[e],o.options.locale);return{label:i[e]||"",value:n}}getMaxBorderWidth(e){const t=this;let o=0;const i=t.chart;let n,r,s,a,l;if(!e)for(n=0,r=i.data.datasets.length;n"spacing"!==e,_indexable:e=>"spacing"!==e},Lo.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:!e.getDataVisibility(o),index:o}})):[]}},onClick(e,t,o){o.chart.toggleDataVisibility(t.index),o.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const o=": "+e.formattedValue;return d(t)?(t=t.slice(),t[0]+=o):t+=o,t}}}}};class No extends Oo{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){const t=this,o=t._cachedMeta,{dataset:i,data:n=[],_dataset:r}=o,s=t.chart._animationsDisabled;let{start:a,count:l}=function(e,t,o){const i=t.length;let n=0,r=i;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:d,minDefined:h,maxDefined:u}=s.getUserBounds();h&&(n=J(Math.min(pt(a,s.axis,c).lo,o?i:pt(t,l,s.getPixelForValue(c)).lo),0,i-1)),r=u?J(Math.max(pt(a,s.axis,d).hi+1,o?0:pt(t,l,s.getPixelForValue(d)).hi+1),n,i)-n:i-n}return{start:n,count:r}}(o,n,s);t._drawStart=a,t._drawCount=l,function(e){const{xScale:t,yScale:o,_scaleRanges:i}=e,n={xmin:t.min,xmax:t.max,ymin:o.min,ymax:o.max};if(!i)return e._scaleRanges=n,!0;const r=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==o.min||i.ymax!==o.max;return Object.assign(i,n),r}(o)&&(a=0,l=n.length),i._decimated=!!r._decimated,i.points=n;const c=t.resolveDatasetElementOptions(e);t.options.showLine||(c.borderWidth=0),c.segment=t.options.segment,t.updateElement(i,void 0,{animated:!s,options:c},e),t.updateElements(n,a,l,e)}updateElements(e,t,o,i){const n=this,r="reset"===i,{iScale:s,vScale:a,_stacked:l}=n._cachedMeta,d=n.resolveDataElementOptions(t,i),h=n.getSharedOptions(d),u=n.includeOptions(i,h),p=s.axis,f=a.axis,g=n.options.spanGaps,m=W(g)?g:Number.POSITIVE_INFINITY,b=n.chart._animationsDisabled||r||"none"===i;let y=t>0&&n.getParsed(t-1);for(let d=t;d0&&o[p]-y[p]>m,g.parsed=o,u&&(g.options=h||n.resolveDataElementOptions(d,t.active?"active":i)),b||n.updateElement(t,d,g,i),y=o}n.updateSharedOptions(h,i,d)}getMaxOverflow(){const e=this,t=e._cachedMeta,o=t.dataset,i=o.options&&o.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const r=n[0].size(e.resolveDataElementOptions(0)),s=n[n.length-1].size(e.resolveDataElementOptions(n.length-1));return Math.max(i,r,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}No.id="line",No.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},No.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class zo extends Oo{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,o=this.chart,i=o.data.labels||[],n=eo(t._parsed[e].r,o.options.locale);return{label:i[e]||"",value:n}}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}_updateRadius(){const e=this,t=e.chart,o=t.chartArea,i=t.options,n=Math.min(o.right-o.left,o.bottom-o.top),r=Math.max(n/2,0),s=(r-Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();e.outerRadius=r-s*e.index,e.innerRadius=e.outerRadius-s}updateElements(e,t,o,i){const n=this,r="reset"===i,s=n.chart,a=n.getDataset(),l=s.options.animation,c=n._cachedMeta.rScale,d=c.xCenter,h=c.yCenter,u=c.getIndexAngle(0)-.5*D;let p,f=u;const g=360/n.countVisibleElements();for(p=0;p{!isNaN(e.data[i])&&this.chart.getDataVisibility(i)&&o++})),o}_computeAngle(e,t,o){return this.chart.getDataVisibility(e)?$(this.resolveDataElementOptions(e,t).angle||o):0}}zo.id="polarArea",zo.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},zo.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:!e.getDataVisibility(o),index:o}})):[]}},onClick(e,t,o){o.chart.toggleDataVisibility(t.index),o.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Uo extends Lo{}Uo.id="pie",Uo.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Fo extends Oo{getLabelAndValue(e){const t=this._cachedMeta.vScale,o=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(o[t.axis])}}update(e){const t=this,o=t._cachedMeta,i=o.dataset,n=o.data||[],r=o.iScale.getLabels();if(i.points=n,"resize"!==e){const o=t.resolveDatasetElementOptions(e);t.options.showLine||(o.borderWidth=0);const s={_loop:!0,_fullLoop:r.length===n.length,options:o};t.updateElement(i,void 0,s,e)}t.updateElements(n,0,n.length,e)}updateElements(e,t,o,i){const n=this,r=n.getDataset(),s=n._cachedMeta.rScale,a="reset"===i;for(let l=t;l"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Wo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Vo{constructor(e){this.options=e||{}}formats(){return Wo()}parse(e,t){return Wo()}format(e,t){return Wo()}add(e,t,o){return Wo()}diff(e,t,o){return Wo()}startOf(e,t,o){return Wo()}endOf(e,t){return Wo()}}Vo.override=function(e){Object.assign(Vo.prototype,e)};var Bo={_date:Vo};function $o(e,t){return"native"in e?{x:e.x,y:e.y}:Bt(e,t)}function qo(e,t,o,i){const{controller:n,data:r,_sorted:s}=e,a=n._cachedMeta.iScale;if(a&&t===a.axis&&s&&r.length){const e=a._reversePixels?ft:pt;if(!i)return e(r,t,o);if(n._sharedOptions){const i=r[0],n="function"==typeof i.getRange&&i.getRange(t);if(n){const i=e(r,t,o-n),s=e(r,t,o+n);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:r.length-1}}function Yo(e,t,o,i,n){const r=e.getSortedVisibleDatasetMetas(),s=o[t];for(let e=0,o=r.length;e{e[a](n[s],i)&&r.push({element:e,datasetIndex:t,index:o}),e.inRange(n.x,n.y,i)&&(l=!0)})),o.intersect&&!l?[]:r}var Go={modes:{index(e,t,o,i){const n=$o(t,e),r=o.axis||"x",s=o.intersect?Ko(e,n,r,i):Xo(e,n,r,!1,i),a=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,o=e.data[t];o&&!o.skip&&a.push({element:o,datasetIndex:e.index,index:t})})),a):[]},dataset(e,t,o,i){const n=$o(t,e),r=o.axis||"xy";let s=o.intersect?Ko(e,n,r,i):Xo(e,n,r,!1,i);if(s.length>0){const t=s[0].datasetIndex,o=e.getDatasetMeta(t).data;s=[];for(let e=0;eKo(e,$o(t,e),o.axis||"xy",i),nearest:(e,t,o,i)=>Xo(e,$o(t,e),o.axis||"xy",o.intersect,i),x:(e,t,o,i)=>(o.axis="x",Qo(e,t,o,i)),y:(e,t,o,i)=>(o.axis="y",Qo(e,t,o,i))}};const Jo=["left","top","right","bottom"];function Zo(e,t){return e.filter((e=>e.pos===t))}function ei(e,t){return e.filter((e=>-1===Jo.indexOf(e.pos)&&e.box.axis===t))}function ti(e,t){return e.sort(((e,o)=>{const i=t?o:e,n=t?e:o;return i.weight===n.weight?i.index-n.index:i.weight-n.weight}))}function oi(e,t,o,i){return Math.max(e[o],t[o])+Math.max(e[i],t[i])}function ii(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function ni(e,t,o){const i=o.box,n=e.maxPadding;h(o.pos)||(o.size&&(e[o.pos]-=o.size),o.size=o.horizontal?i.height:i.width,e[o.pos]+=o.size),i.getPadding&&ii(n,i.getPadding());const r=Math.max(0,t.outerWidth-oi(n,e,"left","right")),s=Math.max(0,t.outerHeight-oi(n,e,"top","bottom")),a=r!==e.w,l=s!==e.h;return e.w=r,e.h=s,o.horizontal?{same:a,other:l}:{same:l,other:a}}function ri(e,t){const o=t.maxPadding;function i(e){const i={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{i[e]=Math.max(t[e],o[e])})),i}return i(e?["left","right"]:["top","bottom"])}function si(e,t,o){const i=[];let n,r,s,a,l,c;for(n=0,r=e.length,l=0;ne.box.fullSize)),!0),i=ti(Zo(t,"left"),!0),n=ti(Zo(t,"right")),r=ti(Zo(t,"top"),!0),s=ti(Zo(t,"bottom")),a=ei(t,"x"),l=ei(t,"y");return{fullSize:o,leftAndTop:i.concat(r),rightAndBottom:n.concat(l).concat(s).concat(a),chartArea:Zo(t,"chartArea"),vertical:i.concat(n).concat(l),horizontal:r.concat(s).concat(a)}}(e.boxes),l=a.vertical,c=a.horizontal;b(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const d=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,h=Object.freeze({outerWidth:t,outerHeight:o,padding:n,availableWidth:r,availableHeight:s,vBoxMaxWidth:r/2/d,hBoxMaxHeight:s/2}),u=Object.assign({},n);ii(u,ct(i));const p=Object.assign({maxPadding:u,w:r,h:s,x:n.left,y:n.top},n);!function(e,t){let o,i,n;for(o=0,i=e.length;o{const o=t.box;Object.assign(o,e.chartArea),o.update(p.w,p.h)}))}};class ci{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,o){}removeEventListener(e,t,o){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,o,i){return t=Math.max(0,t||e.width),o=o||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):o)}}isAttached(e){return!0}}class di extends ci{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}}const hi="$chartjs",ui={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},pi=e=>null===e||""===e;const fi=!!Kt&&{passive:!0};function gi(e,t,o){e.canvas.removeEventListener(t,o,fi)}function mi(e,t,o){const i=e.canvas,n=i&&zt(i)||i,r=new MutationObserver((e=>{const t=zt(n);e.forEach((e=>{for(let i=0;i{e.forEach((e=>{for(let t=0;t{o.currentDevicePixelRatio!==e&&t()})))}function _i(e,t,o){const i=e.canvas,r=i&&zt(i);if(!r)return;const s=n(((e,t)=>{const i=r.clientWidth;o(e,t),i{const t=e[0],o=t.contentRect.width,i=t.contentRect.height;0===o&&0===i||s(o,i)}));return a.observe(r),function(e,t){yi.size||window.addEventListener("resize",vi),yi.set(e,t)}(e,s),a}function wi(e,t,o){o&&o.disconnect(),"resize"===t&&function(e){yi.delete(e),yi.size||window.removeEventListener("resize",vi)}(e)}function Ti(e,t,o){const i=e.canvas,r=n((t=>{null!==e.ctx&&o(function(e,t){const o=ui[e.type]||e.type,{x:i,y:n}=Bt(e,t);return{type:o,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==n?n:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,o){e.addEventListener(t,o,fi)}(i,t,r),r}class ki extends ci{acquireContext(e,t){const o=e&&e.getContext&&e.getContext("2d");return o&&o.canvas===e?(function(e,t){const o=e.style,i=e.getAttribute("height"),n=e.getAttribute("width");if(e[hi]={initial:{height:i,width:n,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",pi(n)){const t=Xt(e,"width");void 0!==t&&(e.width=t)}if(pi(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Xt(e,"height");void 0!==t&&(e.height=t)}}(e,t),o):null}releaseContext(e){const t=e.canvas;if(!t[hi])return!1;const o=t[hi].initial;["height","width"].forEach((e=>{const i=o[e];c(i)?t.removeAttribute(e):t.setAttribute(e,i)}));const i=o.style||{};return Object.keys(i).forEach((e=>{t.style[e]=i[e]})),t.width=t.width,delete t[hi],!0}addEventListener(e,t,o){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),n={attach:mi,detach:bi,resize:_i}[t]||Ti;i[t]=n(e,t,o)}removeEventListener(e,t){const o=e.$proxies||(e.$proxies={}),i=o[t];if(!i)return;({attach:wi,detach:wi,resize:wi}[t]||gi)(e,t,i),o[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,o,i){return qt(e,t,o,i)}isAttached(e){const t=zt(e);return!(!t||!zt(t))}}class Si{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:o}=this.getProps(["x","y"],e);return{x:t,y:o}}hasValue(){return W(this.x)&&W(this.y)}getProps(e,t){const o=this,i=this.$animations;if(!t||!i)return o;const n={};return e.forEach((e=>{n[e]=i[e]&&i[e].active()?i[e]._to:o[e]})),n}}Si.defaults={},Si.defaultRoutes=void 0;const Ai={values:e=>d(e)?e:""+e,numeric(e,t,o){if(0===e)return"0";const i=this.chart.options.locale;let n,r=e;if(o.length>1){const t=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(t<1e-4||t>1e15)&&(n="scientific"),r=function(e,t){let o=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(o)>=1&&e!==Math.floor(e)&&(o=e-Math.floor(e));return o}(e,o)}const s=U(Math.abs(r)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),eo(e,i,l)},logarithmic(e,t,o){if(0===e)return"0";const i=e/Math.pow(10,Math.floor(U(e)));return 1===i||2===i||5===i?Ai.numeric.call(this,e,t,o):""}};var Pi={formatters:Ai};function Ei(e,t){const o=e.options.ticks,i=o.maxTicksLimit||function(e){const t=e.options.offset,o=e._tickSize(),i=e._length/o+(t?0:1),n=e._maxLength/o;return Math.floor(Math.min(i,n))}(e),n=o.major.enabled?function(e){const t=[];let o,i;for(o=0,i=e.length;oi)return function(e,t,o,i){let n,r=0,s=o[0];for(i=Math.ceil(i),n=0;ne-t)).pop(),t}(i);for(let e=0,t=r.length-1;en)return t}return Math.max(n,1)}(n,t,i);if(r>0){let e,o;const i=r>1?Math.round((a-s)/(r-1)):null;for(Oi(t,l,d,c(i)?0:s-i,s),e=0,o=r-1;et.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Pi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),We.route("scale.ticks","color","","color"),We.route("scale.grid","color","","borderColor"),We.route("scale.grid","borderColor","","borderColor"),We.route("scale.title","color","","color"),We.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),We.describe("scales",{_fallback:"scale"}),We.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const Mi=(e,t,o)=>"top"===t||"left"===t?e[t]+o:e[t]-o;function Di(e,t){const o=[],i=e.length/t,n=e.length;let r=0;for(;rs+a)))return c}function Ri(e){return e.drawTicks?e.tickLength:0}function Ii(e,t){if(!e.display)return 0;const o=dt(e.font,t),i=ct(e.padding);return(d(e.text)?e.text.length:1)*o.lineHeight+i.height}function Hi(e,t,o){let i=r(e);return(o&&"right"!==t||!o&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class Li extends Si{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){const t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:o,_suggestedMax:i}=this;return e=p(e,Number.POSITIVE_INFINITY),t=p(t,Number.NEGATIVE_INFINITY),o=p(o,Number.POSITIVE_INFINITY),i=p(i,Number.NEGATIVE_INFINITY),{min:p(e,o),max:p(t,i),minDefined:u(e),maxDefined:u(t)}}getMinMax(e){const t=this;let o,{min:i,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();if(r&&s)return{min:i,max:n};const a=t.getMatchingVisibleMetas();for(let l=0,c=a.length;l=r||i<=1||!e.isHorizontal())return void(e.labelRotation=n);const d=e._getLabelSizes(),h=d.widest.width,u=d.highest.height,p=J(e.chart.width-h,0,e.maxWidth);s=t.offset?e.maxWidth/i:p/(i-1),h+6>s&&(s=p/(i-(t.offset?.5:1)),a=e.maxHeight-Ri(t.grid)-o.padding-Ii(t.title,e.chart.options.font),l=Math.sqrt(h*h+u*u),c=q(Math.min(Math.asin(Math.min((d.highest.height+6)/s,1)),Math.asin(Math.min(a/l,1))-Math.asin(u/l))),c=Math.max(n,Math.min(r,c))),e.labelRotation=c}afterCalculateLabelRotation(){m(this.options.afterCalculateLabelRotation,[this])}beforeFit(){m(this.options.beforeFit,[this])}fit(){const e=this,t={width:0,height:0},{chart:o,options:{ticks:i,title:n,grid:r}}=e,s=e._isVisible(),a=e.isHorizontal();if(s){const s=Ii(n,o.options.font);if(a?(t.width=e.maxWidth,t.height=Ri(r)+s):(t.height=e.maxHeight,t.width=Ri(r)+s),i.display&&e.ticks.length){const{first:o,last:n,widest:r,highest:s}=e._getLabelSizes(),l=2*i.padding,c=$(e.labelRotation),d=Math.cos(c),h=Math.sin(c);if(a){const o=i.mirror?0:h*r.width+d*s.height;t.height=Math.min(e.maxHeight,t.height+o+l)}else{const o=i.mirror?0:d*r.width+h*s.height;t.width=Math.min(e.maxWidth,t.width+o+l)}e._calculatePadding(o,n,h,d)}}e._handleMargins(),a?(e.width=e._length=o.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=o.height-e._margins.top-e._margins.bottom)}_calculatePadding(e,t,o,i){const n=this,{ticks:{align:r,padding:s},position:a}=n.options,l=0!==n.labelRotation,c="top"!==a&&"x"===n.axis;if(n.isHorizontal()){const a=n.getPixelForTick(0)-n.left,d=n.right-n.getPixelForTick(n.ticks.length-1);let h=0,u=0;l?c?(h=i*e.width,u=o*t.height):(h=o*e.height,u=i*t.width):"start"===r?u=t.width:"end"===r?h=e.width:(h=e.width/2,u=t.width/2),n.paddingLeft=Math.max((h-a+s)*n.width/(n.width-a),0),n.paddingRight=Math.max((u-d+s)*n.width/(n.width-d),0)}else{let o=t.height/2,i=e.height/2;"start"===r?(o=0,i=e.height):"end"===r&&(o=t.height,i=0),n.paddingTop=o+s,n.paddingBottom=i+s}}_handleMargins(){const e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}afterFit(){m(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){const t=this;let o,i;for(t.beforeTickToLabelConversion(),t.generateTickLabels(e),o=0,i=e.length;o{const o=e.gc,i=o.length/2;let n;if(i>t){for(n=0;n({width:n[e]||0,height:r[e]||0});return{first:k(0),last:k(t-1),widest:k(w),highest:k(T),widths:n,heights:r}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){const t=this;t._reversePixels&&(e=1-e);const o=t._startPixel+e*t._length;return J(t._alignToPixels?$e(t.chart,o,0):o,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this,o=t.ticks||[];if(e>=0&&ea*n?a/i:l/n:l*n0}_computeGridLineItems(e){const t=this,o=t.axis,i=t.chart,n=t.options,{grid:r,position:s}=n,a=r.offset,l=t.isHorizontal(),c=t.ticks.length+(a?1:0),d=Ri(r),u=[],p=r.setContext(t.getContext()),g=p.drawBorder?p.borderWidth:0,m=g/2,b=function(e){return $e(i,e,g)};let y,x,v,_,w,T,k,S,A,P,E,O;if("top"===s)y=b(t.bottom),T=t.bottom-d,S=y-m,P=b(e.top)+m,O=e.bottom;else if("bottom"===s)y=b(t.top),P=e.top,O=b(e.bottom)-m,T=y+m,S=t.top+d;else if("left"===s)y=b(t.right),w=t.right-d,k=y-m,A=b(e.left)+m,E=e.right;else if("right"===s)y=b(t.left),A=e.left,E=b(e.right)-m,w=y+m,k=t.left+d;else if("x"===o){if("center"===s)y=b((e.top+e.bottom)/2+.5);else if(h(s)){const e=Object.keys(s)[0],o=s[e];y=b(t.chart.scales[e].getPixelForValue(o))}P=e.top,O=e.bottom,T=y+m,S=T+d}else if("y"===o){if("center"===s)y=b((e.left+e.right)/2);else if(h(s)){const e=Object.keys(s)[0],o=s[e];y=b(t.chart.scales[e].getPixelForValue(o))}w=y-m,k=w-d,A=e.left,E=e.right}const M=f(n.ticks.maxTicksLimit,c),D=Math.max(1,Math.ceil(c/M));for(x=0;xt.value===e));if(i>=0){return o.setContext(t.getContext(i)).lineWidth}return 0}drawGrid(e){const t=this,o=t.options.grid,i=t.ctx,n=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));let r,s;const a=(e,t,o)=>{o.width&&o.color&&(i.save(),i.lineWidth=o.width,i.strokeStyle=o.color,i.setLineDash(o.borderDash||[]),i.lineDashOffset=o.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(o.display)for(r=0,s=n.length;r{const i=o.split("."),n=i.pop(),r=[e].concat(i).join("."),s=t[o].split("."),a=s.pop(),l=s.join(".");We.route(r,n,l,a)}))}(t,e.defaultRoutes);e.descriptors&&We.describe(t,e.descriptors)}(e,s,i),t.override&&We.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const t=this.items,o=e.id,i=this.scope;o in t&&delete t[o],i&&o in We[i]&&(delete We[i][o],this.override&&delete ze[o])}}var zi=new class{constructor(){this.controllers=new Ni(Oo,"datasets",!0),this.elements=new Ni(Si,"elements"),this.plugins=new Ni(Object,"plugins"),this.scales=new Ni(Li,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,o){const i=this;[...t].forEach((t=>{const n=o||i._getRegistryForType(t);o||n.isForType(t)||n===i.plugins&&t.id?i._exec(e,n,t):b(t,(t=>{const n=o||i._getRegistryForType(t);i._exec(e,n,t)}))}))}_exec(e,t,o){const i=E(e);m(o["before"+i],[],o),t[e](o),m(o["after"+i],[],o)}_getRegistryForType(e){for(let t=0;te.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(i(t,o),e,"stop"),this._notify(i(o,t),e,"start")}}function Fi(e,t){return t||!1!==e?!0===e?{}:e:null}function ji(e,t,o,i){const n=e.pluginScopeKeys(t),r=e.getOptionScopes(o,n);return e.createResolver(r,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Wi(e,t){const o=We.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||o.indexAxis||"x"}function Vi(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(o=t.position)||"bottom"===o?"x":"left"===o||"right"===o?"y":void 0)||e.charAt(0).toLowerCase();var o}function Bi(e){const t=e.options||(e.options={});t.plugins=f(t.plugins,{}),t.scales=function(e,t){const o=ze[e.type]||{scales:{}},i=t.scales||{},n=Wi(e.type,t),r=Object.create(null),s=Object.create(null);return Object.keys(i).forEach((e=>{const t=i[e],a=Vi(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(a,n),c=o.scales||{};r[a]=r[a]||e,s[e]=T(Object.create(null),[{axis:a},t,c[a],c[l]])})),e.data.datasets.forEach((o=>{const n=o.type||e.type,a=o.indexAxis||Wi(n,t),l=(ze[n]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let o=e;return"_index_"===e?o=t:"_value_"===e&&(o="x"===t?"y":"x"),o}(e,a),n=o[t+"AxisID"]||r[t]||t;s[n]=s[n]||Object.create(null),T(s[n],[{axis:t},i[n],l[e]])}))})),Object.keys(s).forEach((e=>{const t=s[e];T(t,[We.scales[t.type],We.scale])})),s}(e,t)}function $i(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const qi=new Map,Yi=new Set;function Ki(e,t){let o=qi.get(e);return o||(o=t(),qi.set(e,o),Yi.add(o)),o}const Xi=(e,t,o)=>{const i=P(t,o);void 0!==i&&e.add(i)};class Qi{constructor(e){this._config=function(e){return(e=e||{}).data=$i(e.data),Bi(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$i(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Bi(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ki(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Ki(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Ki(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Ki(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const o=this._scopeCache;let i=o.get(e);return i&&!t||(i=new Map,o.set(e,i)),i}getOptionScopes(e,t,o){const{options:i,type:n}=this,r=this._cachedScopes(e,o),s=r.get(t);if(s)return s;const a=new Set;t.forEach((t=>{e&&(a.add(e),t.forEach((t=>Xi(a,e,t)))),t.forEach((e=>Xi(a,i,e))),t.forEach((e=>Xi(a,ze[n]||{},e))),t.forEach((e=>Xi(a,We,e))),t.forEach((e=>Xi(a,Ue,e)))}));const l=Array.from(a);return Yi.has(t)&&r.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,ze[t]||{},We.datasets[t]||{},{type:t},We,Ue]}resolveNamedOptions(e,t,o,i=[""]){const n={$shared:!0},{resolver:r,subPrefixes:s}=Gi(this._resolverCache,e,i);let a=r;if(function(e,t){const{isScriptable:o,isIndexable:i}=vt(e);for(const n of t)if(o(n)&&M(e[n])||i(n)&&d(e[n]))return!0;return!1}(r,t)){n.$shared=!1;a=xt(r,o=M(o)?o():o,this.createResolver(e,o,s))}for(const e of t)n[e]=a[e];return n}createResolver(e,t,o=[""],i){const{resolver:n}=Gi(this._resolverCache,e,o);return h(t)?xt(n,t,void 0,i):n}}function Gi(e,t,o){let i=e.get(t);i||(i=new Map,e.set(t,i));const n=o.join();let r=i.get(n);if(!r){r={resolver:yt(t,o),subPrefixes:o.filter((e=>!e.toLowerCase().includes("hover")))},i.set(n,r)}return r}const Ji=["top","bottom","left","right","chartArea"];function Zi(e,t){return"top"===e||"bottom"===e||-1===Ji.indexOf(e)&&"x"===t}function en(e,t){return function(o,i){return o[e]===i[e]?o[t]-i[t]:o[e]-i[e]}}function tn(e){const t=e.chart,o=t.options.animation;t.notifyPlugins("afterRender"),m(o&&o.onComplete,[e],t)}function on(e){const t=e.chart,o=t.options.animation;m(o&&o.onProgress,[e],t)}function nn(){return"undefined"!=typeof window&&"undefined"!=typeof document}function rn(e){return nn()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const sn={},an=e=>{const t=rn(e);return Object.values(sn).filter((e=>e.canvas===t)).pop()};class ln{constructor(e,t){const o=this;this.config=t=new Qi(t);const i=rn(e),n=an(i);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas can be reused.");const r=t.createResolver(t.chartOptionScopes(),o.getContext());this.platform=o._initializePlatform(i,t);const s=o.platform.acquireContext(i,r.aspectRatio),a=s&&s.canvas,c=a&&a.height,d=a&&a.width;this.id=l(),this.ctx=s,this.canvas=a,this.width=d,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new Ui,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let o;return function(){return t?(clearTimeout(o),o=setTimeout(e,t)):e(),t}}((()=>this.update("resize")),r.resizeDelay||0),sn[o.id]=o,s&&a?(uo.listen(o,"complete",tn),uo.listen(o,"progress",on),o._initialize(),o.attached&&o.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:o,height:i,_aspectRatio:n}=this;return c(e)?t&&n?n:i?o/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){const e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Yt(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}_initializePlatform(e,t){return t.platform?new t.platform:!nn()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?new di:new ki}clear(){return qe(this.canvas,this.ctx),this}stop(){return uo.stop(this),this}resize(e,t){uo.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const o=this,i=o.options,n=o.canvas,r=i.maintainAspectRatio&&o.aspectRatio,s=o.platform.getMaximumSize(n,e,t,r),a=i.devicePixelRatio||o.platform.getDevicePixelRatio();o.width=s.width,o.height=s.height,o._aspectRatio=o.aspectRatio,Yt(o,a,!0)&&(o.notifyPlugins("resize",{size:s}),m(i.onResize,[o,s],o),o.attached&&o._doResize()&&o.render())}ensureScalesHaveIDs(){b(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this,t=e.options,o=t.scales,i=e.scales,n=Object.keys(i).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];o&&(r=r.concat(Object.keys(o).map((e=>{const t=o[e],i=Vi(e,t),n="r"===i,r="x"===i;return{options:t,dposition:n?"chartArea":r?"bottom":"left",dtype:n?"radialLinear":r?"category":"linear"}})))),b(r,(o=>{const r=o.options,s=r.id,a=Vi(s,r),l=f(r.type,o.dtype);void 0!==r.position&&Zi(r.position,a)===Zi(o.dposition)||(r.position=o.dposition),n[s]=!0;let c=null;if(s in i&&i[s].type===l)c=i[s];else{c=new(zi.getScale(l))({id:s,type:l,ctx:e.ctx,chart:e}),i[c.id]=c}c.init(r,t)})),b(n,((e,t)=>{e||delete i[t]})),b(i,(t=>{li.configure(e,t,t.options),li.addBox(e,t)}))}_updateMetasets(){const e=this,t=e._metasets,o=e.data.datasets.length,i=t.length;if(t.sort(((e,t)=>e.index-t.index)),i>o){for(let t=o;to.length&&delete e._stacks,t.forEach(((t,i)=>{0===o.filter((e=>e===t._dataset)).length&&e._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const e=this,t=[],o=e.data.datasets;let i,n;for(e._removeUnreferencedMetasets(),i=0,n=o.length;i{e.getDatasetMeta(o).controller.reset()}),e)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this,o=t.config;o.update(),t._options=o.createResolver(o.chartOptionScopes(),t.getContext()),b(t.scales,(e=>{li.removeBox(t,e)}));const i=t._animationsDisabled=!t.options.animation;t.ensureScalesHaveIDs(),t.buildOrUpdateScales();if(((e,t)=>{if(e.size!==t.size)return!1;for(const o of e)if(!t.has(o))return!1;return!0})(new Set(Object.keys(t._listeners)),new Set(t.options.events))&&!!this._responsiveListeners===t.options.responsive||(t.unbindEvents(),t.bindEvents()),t._plugins.invalidate(),!1===t.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const n=t.buildOrUpdateControllers();t.notifyPlugins("beforeElementsUpdate");let r=0;for(let e=0,o=t.data.datasets.length;e{e.reset()})),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(en("z","_idx")),t._lastEvent&&t._eventHandler(t._lastEvent,!0),t.render()}_updateLayout(e){const t=this;if(!1===t.notifyPlugins("beforeLayout",{cancelable:!0}))return;li.update(t,t.width,t.height,e);const o=t.chartArea,i=o.width<=0||o.height<=0;t._layers=[],b(t.boxes,(e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),t._layers.push(...e._layers()))}),t),t._layers.forEach(((e,t)=>{e._idx=t})),t.notifyPlugins("afterLayout")}_updateDatasets(e){const t=this,o="function"==typeof e;if(!1!==t.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let i=0,n=t.data.datasets.length;i=0;--o)e._drawDataset(t[o]);e.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this,o=t.ctx,i=e._clip,n=!i.disabled,r=t.chartArea,s={meta:e,index:e.index,cancelable:!0};!1!==t.notifyPlugins("beforeDatasetDraw",s)&&(n&&Xe(o,{left:!1===i.left?0:r.left-i.left,right:!1===i.right?t.width:r.right+i.right,top:!1===i.top?0:r.top-i.top,bottom:!1===i.bottom?t.height:r.bottom+i.bottom}),e.controller.draw(),n&&Qe(o),s.cancelable=!1,t.notifyPlugins("afterDatasetDraw",s))}getElementsAtEventForMode(e,t,o,i){const n=Go.modes[t];return"function"==typeof n?n(this,e,o,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],o=this._metasets;let i=o.filter((e=>e&&e._dataset===t)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},o.push(i)),i}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const o=this.getDatasetMeta(e);return"boolean"==typeof o.hidden?!o.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateDatasetVisibility(e,t){const o=this,i=t?"show":"hide",n=o.getDatasetMeta(e),r=n.controller._resolveAnimations(void 0,i);o.setDatasetVisibility(e,t),r.update(n,{visible:t}),o.update((t=>t.datasetIndex===e?i:void 0))}hide(e){this._updateDatasetVisibility(e,!1)}show(e){this._updateDatasetVisibility(e,!0)}_destroyDatasetMeta(e){const t=this,o=t._metasets&&t._metasets[e];o&&o.controller&&(o.controller._destroy(),delete t._metasets[e])}destroy(){const e=this,{canvas:t,ctx:o}=e;let i,n;for(e.stop(),uo.remove(e),i=0,n=e.data.datasets.length;i((i,n)=>{o.addEventListener(e,i,n),t[i]=n})(n,i)))}bindResponsiveEvents(){const e=this;e._responsiveListeners||(e._responsiveListeners={});const t=e._responsiveListeners,o=e.platform,i=(i,n)=>{o.addEventListener(e,i,n),t[i]=n},n=(i,n)=>{t[i]&&(o.removeEventListener(e,i,n),delete t[i])},r=(t,o)=>{e.canvas&&e.resize(t,o)};let s;const a=()=>{n("attach",a),e.attached=!0,e.resize(),i("resize",r),i("detach",s)};s=()=>{e.attached=!1,n("resize",r),i("attach",a)},o.isAttached(e.canvas)?a():s()}unbindEvents(){const e=this;b(e._listeners,((t,o)=>{e.platform.removeEventListener(e,o,t)})),e._listeners={},b(e._responsiveListeners,((t,o)=>{e.platform.removeEventListener(e,o,t)})),e._responsiveListeners=void 0}updateHoverStyle(e,t,o){const i=o?"set":"remove";let n,r,s,a;for("dataset"===t&&(n=this.getDatasetMeta(e[0].datasetIndex),n.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=e.length;s{const i=t.getDatasetMeta(e);if(!i)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:i.data[o],index:o}}));!y(i,o)&&(t._active=i,t._updateHoverStyles(i,o))}notifyPlugins(e,t,o){return this._plugins.notify(this,e,t,o)}_updateHoverStyles(e,t,o){const i=this,n=i.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),s=r(t,e),a=o?e:r(e,t);s.length&&i.updateHoverStyle(s,n.mode,!1),a.length&&n.mode&&i.updateHoverStyle(a,n.mode,!0)}_eventHandler(e,t){const o=this,i={event:e,replay:t,cancelable:!0},n=t=>(t.options.events||this.options.events).includes(e.type);if(!1===o.notifyPlugins("beforeEvent",i,n))return;const r=o._handleEvent(e,t);return i.cancelable=!1,o.notifyPlugins("afterEvent",i,n),(r||i.changed)&&o.render(),o}_handleEvent(e,t){const o=this,{_active:i=[],options:n}=o,r=n.hover,s=t;let a=[],l=!1,c=null;return"mouseout"!==e.type&&(a=o.getElementsAtEventForMode(e,r.mode,r,s),c="click"===e.type?o._lastEvent:e),o._lastEvent=null,Ke(e,o.chartArea,o._minPadding)&&(m(n.onHover,[e,a,o],o),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||m(n.onClick,[e,a,o],o)),l=!y(a,i),(l||t)&&(o._active=a,o._updateHoverStyles(a,i,t)),o._lastEvent=c,l}}const cn=()=>b(ln.instances,(e=>e._plugins.invalidate())),dn=!0;function hn(e,t,o){const{startAngle:i,pixelMargin:n,x:r,y:s,outerRadius:a,innerRadius:l}=t;let c=n/a;e.beginPath(),e.arc(r,s,a,i-c,o+c),l>n?(c=n/l,e.arc(r,s,l,o+c,i-c,!0)):e.arc(r,s,n,o+L,i-L),e.closePath(),e.clip()}function un(e,t,o,i){const n=st(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(o-t)/2,s=Math.min(r,i*t/2),a=e=>{const t=(o-Math.min(r,e))*i/2;return J(e,0,Math.min(r,t))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:J(n.innerStart,0,s),innerEnd:J(n.innerEnd,0,s)}}function pn(e,t,o,i){return{x:o+e*Math.cos(t),y:i+e*Math.sin(t)}}function fn(e,t,o,i,n){const{x:r,y:s,startAngle:a,pixelMargin:l,innerRadius:c}=t,d=Math.max(t.outerRadius+i+o-l,0),h=c>0?c+i+o+l:0;let u=0;const p=n-a;if(i){const e=((c>0?c-i:0)+(d>0?d-i:0))/2;u=(p-(0!==e?p*e/(e+i):p))/2}const f=(p-Math.max(.001,p*d-o/D)/d)/2,g=a+f+u,m=n-f-u,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:v}=un(t,h,d,m-g),_=d-b,w=d-y,T=g+b/_,k=m-y/w,S=h+x,A=h+v,P=g+x/S,E=m-v/A;if(e.beginPath(),e.arc(r,s,d,T,k),y>0){const t=pn(w,k,r,s);e.arc(t.x,t.y,y,k,m+L)}const O=pn(A,m,r,s);if(e.lineTo(O.x,O.y),v>0){const t=pn(A,E,r,s);e.arc(t.x,t.y,v,m+L,E+Math.PI)}if(e.arc(r,s,h,m-v/h,g+x/h,!0),x>0){const t=pn(S,P,r,s);e.arc(t.x,t.y,x,P+Math.PI,g-L)}const M=pn(_,g,r,s);if(e.lineTo(M.x,M.y),b>0){const t=pn(_,T,r,s);e.arc(t.x,t.y,b,g-L,T)}e.closePath()}function gn(e,t,o,i,n){const{options:r}=t,s="inner"===r.borderAlign;r.borderWidth&&(s?(e.lineWidth=2*r.borderWidth,e.lineJoin="round"):(e.lineWidth=r.borderWidth,e.lineJoin="bevel"),t.fullCircles&&function(e,t,o){const{x:i,y:n,startAngle:r,pixelMargin:s,fullCircles:a}=t,l=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;let d;for(o&&hn(e,t,r+C),e.beginPath(),e.arc(i,n,c,r+C,r,!0),d=0;d{zi.add(...e),cn()}},unregister:{enumerable:dn,value:(...e)=>{zi.remove(...e),cn()}}});class mn extends Si{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,o){const i=this.getProps(["x","y"],o),{angle:n,distance:r}=function(e,t){const o=t.x-e.x,i=t.y-e.y,n=Math.sqrt(o*o+i*i);let r=Math.atan2(i,o);return r<-.5*D&&(r+=C),{angle:r,distance:n}}(i,{x:e,y:t}),{startAngle:s,endAngle:a,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],o),h=this.options.spacing/2;return(d>=C||G(n,s,a))&&(r>=l+h&&r<=c+h)}getCenterPoint(e){const{x:t,y:o,startAngle:i,endAngle:n,innerRadius:r,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:a,spacing:l}=this.options,c=(i+n)/2,d=(r+s+l+a)/2;return{x:t+Math.cos(c)*d,y:o+Math.sin(c)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const t=this,{options:o,circumference:i}=t,n=(o.offset||0)/2,r=(o.spacing||0)/2;if(t.pixelMargin="inner"===o.borderAlign?.33:0,t.fullCircles=i>C?Math.floor(i/C):0,0===i||t.innerRadius<0||t.outerRadius<0)return;e.save();let s=0;if(n){s=n/2;const o=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(o)*s,Math.sin(o)*s),t.circumference>=D&&(s=n)}e.fillStyle=o.backgroundColor,e.strokeStyle=o.borderColor;const a=function(e,t,o,i){const{fullCircles:n,startAngle:r,circumference:s}=t;let a=t.endAngle;if(n){fn(e,t,o,i,r+C);for(let t=0;ta&&r>a;return{count:i,start:l,loop:t.loop,ilen:c(s+(c?a-e:e))%r,x=()=>{p!==f&&(e.lineTo(m,f),e.lineTo(m,p),e.lineTo(m,g))};for(l&&(h=n[y(0)],e.moveTo(h.x,h.y)),d=0;d<=a;++d){if(h=n[y(d)],h.skip)continue;const t=h.x,o=h.y,i=0|t;i===u?(of&&(f=o),m=(b*m+t)/++b):(x(),e.lineTo(t,o),u=i,b=0,p=f=o),g=o}x()}function wn(e){const t=e.options,o=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||o)?_n:vn}mn.id="arc",mn.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},mn.defaultRoutes={backgroundColor:"backgroundColor"};const Tn="function"==typeof Path2D;function kn(e,t,o,i){Tn&&1===t.segments.length?function(e,t,o,i){let n=t._path;n||(n=t._path=new Path2D,t.path(n,o,i)&&n.closePath()),bn(e,t.options),e.stroke(n)}(e,t,o,i):function(e,t,o,i){const{segments:n,options:r}=t,s=wn(t);for(const a of n)bn(e,r,a.style),e.beginPath(),s(e,t,a,{start:o,end:o+i-1})&&e.closePath(),e.stroke()}(e,t,o,i)}class Sn extends Si{constructor(e){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,e&&Object.assign(this,e)}updateControlPoints(e,t){const o=this,i=o.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!o._pointsUpdated){const n=i.spanGaps?o._loop:o._fullLoop;Nt(o._points,i,e,n,t),o._pointsUpdated=!0}}set points(e){const t=this;t._points=e,delete t._segments,delete t._path,t._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const o=e.points,i=e.options.spanGaps,n=o.length;if(!n)return[];const r=!!e._loop,{start:s,end:a}=function(e,t,o,i){let n=0,r=t-1;if(o&&!i)for(;nn&&e[r%t].skip;)r--;return r%=t,{start:n,end:r}}(o,n,r,i);return lo(!0===i?[{start:s,end:a,loop:r}]:function(e,t,o,i){const n=e.length,r=[];let s,a=t,l=e[t];for(s=t+1;s<=o;++s){const o=e[s%n];o.skip||o.stop?l.skip||(i=!1,r.push({start:t%n,end:(s-1)%n,loop:i}),t=a=o.stop?s:null):(a=s,l.skip&&(t=s)),l=o}return null!==a&&r.push({start:t%n,end:a%n,loop:i}),r}(o,s,a"borderDash"!==e&&"fill"!==e};class Pn extends Si{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,o){const i=this.options,{x:n,y:r}=this.getProps(["x","y"],o);return Math.pow(e-n,2)+Math.pow(t-r,2)e.x):Mn(t,"bottom","top",e.base=s.left&&t<=s.right)&&(r||o>=s.top&&o<=s.bottom)}function Hn(e,t){e.rect(t.x,t.y,t.w,t.h)}Pn.id="point",Pn.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Pn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ln extends Si{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){const t=this.options,{inner:o,outer:i}=Rn(this),n=(r=i.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?tt:Hn;var r;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),n(e,i),e.clip(),n(e,o),e.fillStyle=t.borderColor,e.fill("evenodd")),e.beginPath(),n(e,o),e.fillStyle=t.backgroundColor,e.fill(),e.restore()}inRange(e,t,o){return In(this,e,t,o)}inXRange(e,t){return In(this,e,null,t)}inYRange(e,t){return In(this,null,e,t)}getCenterPoint(e){const{x:t,y:o,base:i,horizontal:n}=this.getProps(["x","y","base","horizontal"],e);return{x:n?(t+i)/2:t,y:n?o:(o+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Ln.id="bar",Ln.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Ln.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Nn(e,t,o){const i=function(e){const t=e.options,o=t.fill;let i=f(o&&o.target,o);return void 0===i&&(i=!!t.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(e);if(h(i))return!isNaN(i.value)&&i;let n=parseFloat(i);return u(n)&&Math.floor(n)===n?("-"!==i[0]&&"+"!==i[0]||(n=t+n),!(n===t||n<0||n>=o)&&n):["origin","start","end","stack"].indexOf(i)>=0&&i}class zn{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,o){const{x:i,y:n,radius:r}=this;return t=t||{start:0,end:C},e.arc(i,n,r,t.end,t.start,!0),!o.bounds}interpolate(e){const{x:t,y:o,radius:i}=this,n=e.angle;return{x:t+Math.cos(n)*i,y:o+Math.sin(n)*i,angle:n}}}function Un(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:t,fill:o}=e,i=t.options,n=t.getLabels().length,r=[],s=i.reverse?t.max:t.min,a=i.reverse?t.min:t.max;let l,c,d;if(d="start"===o?s:"end"===o?a:h(o)?o.value:t.getBaseValue(),i.grid.circular)return c=t.getPointPositionForValue(0,s),new zn({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(d)});for(l=0;le;t--){const e=o[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function jn(e){const{chart:t,scale:o,index:i,line:n}=e,r=[],s=n.segments,a=n.points,l=function(e,t){const o=[],i=e.getSortedVisibleDatasetMetas();for(let e=0;e"line"===e.type&&!e.hidden;function Vn(e,t,o){const i=[];for(let n=0;n=i&&n<=c){a=n===i,l=n===c;break}}return{first:a,last:l,point:i}}function $n(e,t){let o=[],i=!1;return d(e)?(i=!0,o=e):o=function(e,t){const{x:o=null,y:i=null}=e||{},n=t.points,r=[];return t.segments.forEach((({start:e,end:t})=>{t=Fn(e,t,n);const s=n[e],a=n[t];null!==i?(r.push({x:s.x,y:i}),r.push({x:a.x,y:i})):null!==o&&(r.push({x:o,y:s.y}),r.push({x:o,y:a.y}))})),r}(e,t),o.length?new Sn({points:o,options:{tension:0},_loop:i,_fullLoop:i}):null}function qn(e,t,o){let i=e[t].fill;const n=[t];let r;if(!o)return i;for(;!1!==i&&-1===n.indexOf(i);){if(!u(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;n.push(i),i=r.fill}return!1}function Yn(e,t,o){e.beginPath(),t.path(e),e.lineTo(t.last().x,o),e.lineTo(t.first().x,o),e.closePath(),e.clip()}function Kn(e,t,o,i){if(i)return;let n=t[e],r=o[e];return"angle"===e&&(n=Q(n),r=Q(r)),{property:e,start:n,end:r}}function Xn(e,t,o,i){return e&&t?i(e[o],t[o]):e?e[o]:t?t[o]:0}function Qn(e,t,o){const{top:i,bottom:n}=t.chart.chartArea,{property:r,start:s,end:a}=o||{};"x"===r&&(e.beginPath(),e.rect(s,i,a-s,n-i),e.clip())}function Gn(e,t,o,i){const n=t.interpolate(o,i);n&&e.lineTo(n.x,n.y)}function Jn(e,t){const{line:o,target:i,property:n,color:r,scale:s}=t,a=function(e,t,o){const i=e.segments,n=e.points,r=t.points,s=[];for(const e of i){let{start:i,end:a}=e;a=Fn(i,a,n);const l=Kn(o,n[i],n[a],e.loop);if(!t.segments){s.push({source:e,target:l,start:n[i],end:n[a]});continue}const c=ao(t,l);for(const t of c){const i=Kn(o,r[t.start],r[t.end],t.loop),a=so(e,n,i);for(const e of a)s.push({source:e,target:t,start:{[o]:Xn(l,i,"start",Math.max)},end:{[o]:Xn(l,i,"end",Math.min)}})}}return s}(o,i,n);for(const{source:t,target:l,start:c,end:d}of a){const{style:{backgroundColor:a=r}={}}=t;e.save(),e.fillStyle=a,Qn(e,s,Kn(n,c,d)),e.beginPath();const h=!!o.pathSegment(e,t);h?e.closePath():Gn(e,i,d,n);const u=!!i.pathSegment(e,l,{move:h,reverse:!0}),p=h&&u;p||Gn(e,i,c,n),e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function Zn(e,t,o){const i=function(e){const{chart:t,fill:o,line:i}=e;if(u(o))return function(e,t){const o=e.getDatasetMeta(t);return o&&e.isDatasetVisible(t)?o.dataset:null}(t,o);if("stack"===o)return jn(e);const n=Un(e);return n instanceof zn?n:$n(n,i)}(t),{line:n,scale:r,axis:s}=t,a=n.options,l=a.fill,c=a.backgroundColor,{above:d=c,below:h=c}=l||{};i&&n.points.length&&(Xe(e,o),function(e,t){const{line:o,target:i,above:n,below:r,area:s,scale:a}=t,l=o._loop?"angle":t.axis;e.save(),"x"===l&&r!==n&&(Yn(e,i,s.top),Jn(e,{line:o,target:i,color:n,scale:a,property:l}),e.restore(),e.save(),Yn(e,i,s.bottom)),Jn(e,{line:o,target:i,color:r,scale:a,property:l}),e.restore()}(e,{line:n,target:i,above:d,below:h,area:o,scale:r,axis:s}),Qe(e))}var er={id:"filler",afterDatasetsUpdate(e,t,o){const i=(e.data.datasets||[]).length,n=[];let r,s,a,l;for(s=0;s=0;--t){const o=n[t].$filler;o&&(o.line.updateControlPoints(r,o.axis),i&&Zn(e.ctx,o,r))}},beforeDatasetsDraw(e,t,o){if("beforeDatasetsDraw"!==o.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let t=i.length-1;t>=0;--t){const o=i[t].$filler;o&&Zn(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,o){const i=t.meta.$filler;i&&!1!==i.fill&&"beforeDatasetDraw"===o.drawTime&&Zn(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};new WeakMap;const tr={average(e){if(!e.length)return!1;let t,o,i=0,n=0,r=0;for(t=0,o=e.length;t-1?e.split("\n"):e}function nr(e,t){const{element:o,datasetIndex:i,index:n}=t,r=e.getDatasetMeta(i).controller,{label:s,value:a}=r.getLabelAndValue(n);return{chart:e,label:s,parsed:r.getParsed(n),raw:e.data.datasets[i].data[n],formattedValue:a,dataset:r.getDataset(),dataIndex:n,datasetIndex:i,element:o}}function rr(e,t){const o=e._chart.ctx,{body:i,footer:n,title:r}=e,{boxWidth:s,boxHeight:a}=t,l=dt(t.bodyFont),c=dt(t.titleFont),d=dt(t.footerFont),h=r.length,u=n.length,p=i.length,f=ct(t.padding);let g=f.height,m=0,y=i.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(y+=e.beforeBody.length+e.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),y){g+=p*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(y-p)*l.lineHeight+(y-1)*t.bodySpacing}u&&(g+=t.footerMarginTop+u*d.lineHeight+(u-1)*t.footerSpacing);let x=0;const v=function(e){m=Math.max(m,o.measureText(e).width+x)};return o.save(),o.font=c.string,b(e.title,v),o.font=l.string,b(e.beforeBody.concat(e.afterBody),v),x=t.displayColors?s+2:0,b(i,(e=>{b(e.before,v),b(e.lines,v),b(e.after,v)})),x=0,o.font=d.string,b(e.footer,v),o.restore(),m+=f.width,{width:m,height:g}}function sr(e,t,o,i){const{x:n,width:r}=o,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return"center"===i?c=n<=(a+l)/2?"left":"right":n<=r/2?c="left":n>=s-r/2&&(c="right"),function(e,t,o,i){const{x:n,width:r}=i,s=o.caretSize+o.caretPadding;return"left"===e&&n+r+s>t.width||"right"===e&&n-r-s<0||void 0}(c,e,t,o)&&(c="center"),c}function ar(e,t,o){const i=t.yAlign||function(e,t){const{y:o,height:i}=t;return oe.height-i/2?"bottom":"center"}(e,o);return{xAlign:t.xAlign||sr(e,t,o,i),yAlign:i}}function lr(e,t,o,i){const{caretSize:n,caretPadding:r,cornerRadius:s}=e,{xAlign:a,yAlign:l}=o,c=n+r,d=s+r;let h=function(e,t){let{x:o,width:i}=e;return"right"===t?o-=i:"center"===t&&(o-=i/2),o}(t,a);const u=function(e,t,o){let{y:i,height:n}=e;return"top"===t?i+=o:i-="bottom"===t?n+o:n/2,i}(t,l,c);return"center"===l?"left"===a?h+=c:"right"===a&&(h-=c):"left"===a?h-=d:"right"===a&&(h+=d),{x:J(h,0,i.width-t.width),y:J(u,0,i.height-t.height)}}function cr(e,t,o){const i=ct(o.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function dr(e){return or([],ir(e))}function hr(e,t){const o=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return o?e.override(o):e}class ur extends Si{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this,t=e._cachedAnimations;if(t)return t;const o=e._chart,i=e.options.setContext(e.getContext()),n=i.enabled&&o.options.animation&&i.animations,r=new bo(e._chart,n);return n._cacheable&&(e._cachedAnimations=Object.freeze(r)),r}getContext(){const e=this;return e.$context||(e.$context=(t=e._chart.getContext(),o=e,i=e._tooltipItems,Object.assign(Object.create(t),{tooltip:o,tooltipItems:i,type:"tooltip"})));var t,o,i}getTitle(e,t){const o=this,{callbacks:i}=t,n=i.beforeTitle.apply(o,[e]),r=i.title.apply(o,[e]),s=i.afterTitle.apply(o,[e]);let a=[];return a=or(a,ir(n)),a=or(a,ir(r)),a=or(a,ir(s)),a}getBeforeBody(e,t){return dr(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const o=this,{callbacks:i}=t,n=[];return b(e,(e=>{const t={before:[],lines:[],after:[]},r=hr(i,e);or(t.before,ir(r.beforeLabel.call(o,e))),or(t.lines,r.label.call(o,e)),or(t.after,ir(r.afterLabel.call(o,e))),n.push(t)})),n}getAfterBody(e,t){return dr(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const o=this,{callbacks:i}=t,n=i.beforeFooter.apply(o,[e]),r=i.footer.apply(o,[e]),s=i.afterFooter.apply(o,[e]);let a=[];return a=or(a,ir(n)),a=or(a,ir(r)),a=or(a,ir(s)),a}_createItems(e){const t=this,o=t._active,i=t._chart.data,n=[],r=[],s=[];let a,l,c=[];for(a=0,l=o.length;ae.filter(t,o,n,i)))),e.itemSort&&(c=c.sort(((t,o)=>e.itemSort(t,o,i)))),b(c,(o=>{const i=hr(e.callbacks,o);n.push(i.labelColor.call(t,o)),r.push(i.labelPointStyle.call(t,o)),s.push(i.labelTextColor.call(t,o))})),t.labelColors=n,t.labelPointStyles=r,t.labelTextColors=s,t.dataPoints=c,c}update(e,t){const o=this,i=o.options.setContext(o.getContext()),n=o._active;let r,s=[];if(n.length){const e=tr[i.position].call(o,n,o._eventPosition);s=o._createItems(i),o.title=o.getTitle(s,i),o.beforeBody=o.getBeforeBody(s,i),o.body=o.getBody(s,i),o.afterBody=o.getAfterBody(s,i),o.footer=o.getFooter(s,i);const t=o._size=rr(o,i),a=Object.assign({},e,t),l=ar(o._chart,i,a),c=lr(i,a,l,o._chart);o.xAlign=l.xAlign,o.yAlign=l.yAlign,r={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==o.opacity&&(r={opacity:0});o._tooltipItems=s,o.$context=void 0,r&&o._resolveAnimations().update(o,r),e&&i.external&&i.external.call(o,{chart:o._chart,tooltip:o,replay:t})}drawCaret(e,t,o,i){const n=this.getCaretPosition(e,o,i);t.lineTo(n.x1,n.y1),t.lineTo(n.x2,n.y2),t.lineTo(n.x3,n.y3)}getCaretPosition(e,t,o){const{xAlign:i,yAlign:n}=this,{cornerRadius:r,caretSize:s}=o,{x:a,y:l}=e,{width:c,height:d}=t;let h,u,p,f,g,m;return"center"===n?(g=l+d/2,"left"===i?(h=a,u=h-s,f=g+s,m=g-s):(h=a+c,u=h+s,f=g-s,m=g+s),p=h):(u="left"===i?a+r+s:"right"===i?a+c-r-s:this.caretX,"top"===n?(f=l,g=f-s,h=u-s,p=u+s):(f=l+d,g=f+s,h=u+s,p=u-s),m=f),{x1:h,x2:u,x3:p,y1:f,y2:g,y3:m}}drawTitle(e,t,o){const i=this,n=i.title,r=n.length;let s,a,l;if(r){const c=to(o.rtl,i.x,i.width);for(e.x=cr(i,o.titleAlign,o),t.textAlign=c.textAlign(o.titleAlign),t.textBaseline="middle",s=dt(o.titleFont),a=o.titleSpacing,t.fillStyle=o.titleColor,t.font=s.string,l=0;l0!==e))?(e.beginPath(),e.fillStyle=n.multiKeyBackground,tt(e,{x:t,y:f,w:c,h:l,radius:r}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),tt(e,{x:o,y:f+1,w:c-2,h:l-2,radius:r}),e.fill()):(e.fillStyle=n.multiKeyBackground,e.fillRect(t,f,c,l),e.strokeRect(t,f,c,l),e.fillStyle=s.backgroundColor,e.fillRect(o,f+1,c-2,l-2))}e.fillStyle=r.labelTextColors[o]}drawBody(e,t,o){const i=this,{body:n}=i,{bodySpacing:r,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c}=o,d=dt(o.bodyFont);let h=d.lineHeight,u=0;const p=to(o.rtl,i.x,i.width),f=function(o){t.fillText(o,p.x(e.x+u),e.y+h/2),e.y+=h+r},g=p.textAlign(s);let m,y,x,v,_,w,T;for(t.textAlign=s,t.textBaseline="middle",t.font=d.string,e.x=cr(i,g,o),t.fillStyle=o.bodyColor,b(i.beforeBody,f),u=a&&"right"!==g?"center"===s?c/2+1:c+2:0,v=0,w=n.length;v0&&t.stroke()}_updateAnimationTarget(e){const t=this,o=t._chart,i=t.$animations,n=i&&i.x,r=i&&i.y;if(n||r){const i=tr[e.position].call(t,t._active,t._eventPosition);if(!i)return;const s=t._size=rr(t,e),a=Object.assign({},i,t._size),l=ar(o,e,a),c=lr(e,a,l,o);n._to===c.x&&r._to===c.y||(t.xAlign=l.xAlign,t.yAlign=l.yAlign,t.width=s.width,t.height=s.height,t.caretX=i.x,t.caretY=i.y,t._resolveAnimations().update(t,c))}}draw(e){const t=this,o=t.options.setContext(t.getContext());let i=t.opacity;if(!i)return;t._updateAnimationTarget(o);const n={width:t.width,height:t.height},r={x:t.x,y:t.y};i=Math.abs(i)<.001?0:i;const s=ct(o.padding),a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;o.enabled&&a&&(e.save(),e.globalAlpha=i,t.drawBackground(r,e,n,o),oo(e,o.textDirection),r.y+=s.top,t.drawTitle(r,e,o),t.drawBody(r,e,o),t.drawFooter(r,e,o),io(e,o.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const o=this,i=o._active,n=e.map((({datasetIndex:e,index:t})=>{const i=o._chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[t],index:t}})),r=!y(i,n),s=o._positionChanged(n,t);(r||s)&&(o._active=n,o._eventPosition=t,o.update(!0))}handleEvent(e,t){const o=this,i=o.options,n=o._active||[];let r=!1,s=[];"mouseout"!==e.type&&(s=o._chart.getElementsAtEventForMode(e,i.mode,i,t),i.reverse&&s.reverse());const a=o._positionChanged(s,e);return r=t||!y(s,n)||a,r&&(o._active=s,(i.enabled||i.external)&&(o._eventPosition={x:e.x,y:e.y},o.update(!0,t))),r}_positionChanged(e,t){const{caretX:o,caretY:i,options:n}=this,r=tr[n.position].call(this,e,t);return!1!==r&&(o!==r.x||i!==r.y)}}ur.positioners=tr;var pr={id:"tooltip",_element:ur,positioners:tr,afterInit(e,t,o){o&&(e.tooltip=new ur({_chart:e,options:o}))},beforeUpdate(e,t,o){e.tooltip&&e.tooltip.initialize(o)},reset(e,t,o){e.tooltip&&e.tooltip.initialize(o)},afterDraw(e){const t=e.tooltip,o={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",o)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",o))},afterEvent(e,t){if(e.tooltip){const o=t.replay;e.tooltip.handleEvent(t.event,o)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:a,title(e){if(e.length>0){const t=e[0],o=t.chart.data.labels,i=o?o.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function fr(e,t,o){const i=e.indexOf(t);if(-1===i)return((e,t,o)=>"string"==typeof t?e.push(t)-1:isNaN(t)?null:o)(e,t,o);return i!==e.lastIndexOf(t)?o:i}class gr extends Li{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,t){if(c(e))return null;const o=this.getLabels();return((e,t)=>null===e?null:J(Math.round(e),0,t))(t=isFinite(t)&&o[t]===e?t:fr(o,e,f(t,e)),o.length-1)}determineDataLimits(){const e=this,{minDefined:t,maxDefined:o}=e.getUserBounds();let{min:i,max:n}=e.getMinMax(!0);"ticks"===e.options.bounds&&(t||(i=0),o||(n=e.getLabels().length-1)),e.min=i,e.max=n}buildTicks(){const e=this,t=e.min,o=e.max,i=e.options.offset,n=[];let r=e.getLabels();r=0===t&&o===r.length-1?r:r.slice(t,o+1),e._valueRange=Math.max(r.length-(i?0:1),1),e._startValue=e.min-(i?.5:0);for(let e=t;e<=o;e++)n.push({value:e});return n}getLabelForValue(e){const t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){const t=this;return Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange)}getBasePixel(){return this.bottom}}function mr(e,t){const o=[],{bounds:i,step:n,min:r,max:s,precision:a,count:l,maxTicks:d,maxDigits:h,includeBounds:u}=e,p=n||1,f=d-1,{min:g,max:m}=t,b=!c(r),y=!c(s),x=!c(l),v=(m-g)/(h+1);let _,w,T,k,S=j((m-g)/f/p)*p;if(S<1e-14&&!b&&!y)return[{value:g},{value:m}];k=Math.ceil(m/S)-Math.floor(g/S),k>f&&(S=j(k*S/f/p)*p),c(a)||(_=Math.pow(10,a),S=Math.ceil(S*_)/_),"ticks"===i?(w=Math.floor(g/S)*S,T=Math.ceil(m/S)*S):(w=g,T=m),b&&y&&n&&function(e,t){const o=Math.round(e);return o-t<=e&&o+t>=e}((s-r)/n,S/1e3)?(k=Math.min((s-r)/S,d),S=(s-r)/k,w=r,T=s):x?(w=b?r:w,T=y?s:T,k=l-1,S=(T-w)/k):(k=(T-w)/S,k=V(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const A=Math.max(Y(S),Y(w));_=Math.pow(10,c(a)?A:a),w=Math.round(w*_)/_,T=Math.round(T*_)/_;let P=0;for(b&&(u&&w!==r?(o.push({value:r}),wn=o?n:e,a=e=>r=i?r:e;if(t){const e=F(n),t=F(r);e<0&&t<0?a(0):e>0&&t>0&&s(0)}n===r&&(a(r+1),t||s(n-1)),e.min=n,e.max=r}getTickLimit(){const e=this,t=e.options.ticks;let o,{maxTicksLimit:i,stepSize:n}=t;return n?o=Math.ceil(e.max/n)-Math.floor(e.min/n)+1:(o=e.computeTickLimit(),i=i||11),i&&(o=Math.min(i,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this,t=e.options,o=t.ticks;let i=e.getTickLimit();i=Math.max(2,i);const n=mr({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:e._maxDigits(),horizontal:e.isHorizontal(),minRotation:o.minRotation||0,includeBounds:!1!==o.includeBounds},e._range||e);return"ticks"===t.bounds&&B(n,e,"value"),t.reverse?(n.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n}configure(){const e=this,t=e.ticks;let o=e.min,i=e.max;if(super.configure(),e.options.offset&&t.length){const e=(i-o)/Math.max(t.length-1,1)/2;o-=e,i+=e}e._startValue=o,e._endValue=i,e._valueRange=i-o}getLabelForValue(e){return eo(e,this.chart.options.locale)}}class xr extends yr{determineDataLimits(){const e=this,{min:t,max:o}=e.getMinMax(!0);e.min=u(t)?t:0,e.max=u(o)?o:1,e.handleTickRangeOptions()}computeTickLimit(){const e=this,t=e.isHorizontal(),o=t?e.width:e.height,i=$(e.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,r=e._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,r.lineHeight/n))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function vr(e){return 1===e/Math.pow(10,Math.floor(U(e)))}xr.id="linear",xr.defaults={ticks:{callback:Pi.formatters.numeric}};class _r extends Li{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const o=yr.prototype.parse.apply(this,[e,t]);if(0!==o)return u(o)&&o>0?o:null;this._zero=!0}determineDataLimits(){const e=this,{min:t,max:o}=e.getMinMax(!0);e.min=u(t)?Math.max(0,t):null,e.max=u(o)?Math.max(0,o):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}handleTickRangeOptions(){const e=this,{minDefined:t,maxDefined:o}=e.getUserBounds();let i=e.min,n=e.max;const r=e=>i=t?i:e,s=e=>n=o?n:e,a=(e,t)=>Math.pow(10,Math.floor(U(e))+t);i===n&&(i<=0?(r(1),s(10)):(r(a(i,-1)),s(a(n,1)))),i<=0&&r(a(n,-1)),n<=0&&s(a(i,1)),e._zero&&e.min!==e._suggestedMin&&i===a(e.min,0)&&r(a(i,-1)),e.min=i,e.max=n}buildTicks(){const e=this,t=e.options,o=function(e,t){const o=Math.floor(U(t.max)),i=Math.ceil(t.max/Math.pow(10,o)),n=[];let r=p(e.min,Math.pow(10,Math.floor(U(t.min)))),s=Math.floor(U(r)),a=Math.floor(r/Math.pow(10,s)),l=s<0?Math.pow(10,Math.abs(s)):1;do{n.push({value:r,major:vr(r)}),++a,10===a&&(a=1,++s,l=s>=0?1:l),r=Math.round(a*Math.pow(10,s)*l)/l}while(sn?{start:t-o,end:t}:{start:t,end:t+o}}function kr(e){const t={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={},i=[],n=[],r=e.getLabels().length;for(let c=0;ct.r&&(t.r=m.end,o.r=f),b.startt.b&&(t.b=b.end,o.b=f)}var s,a,l;e._setReductions(e.drawingArea,t,o),e._pointLabelItems=function(e,t,o){const i=[],n=e.getLabels().length,r=e.options,s=wr(r),a=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max);for(let r=0;r270||o<90)&&(e-=t),e}function Er(e,t,o,i){const{ctx:n}=e;if(o)n.arc(e.xCenter,e.yCenter,t,0,C);else{let o=e.getPointPosition(0,t);n.moveTo(o.x,o.y);for(let r=1;r{const i=m(t.options.pointLabels.callback,[e,o],t);return i||0===i?i:""}))}fit(){const e=this,t=e.options;t.display&&t.pointLabels.display?kr(e):e.setCenterPoint(0,0,0,0)}_setReductions(e,t,o){const i=this;let n=t.l/Math.sin(o.l),r=Math.max(t.r-i.width,0)/Math.sin(o.r),s=-t.t/Math.cos(o.t),a=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(o.b);n=Or(n),r=Or(r),s=Or(s),a=Or(a),i.drawingArea=Math.max(e/2,Math.min(Math.floor(e-(n+r)/2),Math.floor(e-(s+a)/2))),i.setCenterPoint(n,r,s,a)}setCenterPoint(e,t,o,i){const n=this,r=n.width-t-n.drawingArea,s=e+n.drawingArea,a=o+n.drawingArea,l=n.height-n.paddingTop-i-n.drawingArea;n.xCenter=Math.floor((s+r)/2+n.left),n.yCenter=Math.floor((a+l)/2+n.top+n.paddingTop)}getIndexAngle(e){return Q(e*(C/this.getLabels().length)+$(this.options.startAngle||0))}getDistanceFromCenterForValue(e){const t=this;if(c(e))return NaN;const o=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*o:(e-t.min)*o}getValueForDistanceFromCenter(e){if(c(e))return NaN;const t=this,o=e/(t.drawingArea/(t.max-t.min));return t.options.reverse?t.max-o:t.min+o}getPointPosition(e,t){const o=this,i=o.getIndexAngle(e)-L;return{x:Math.cos(i)*t+o.xCenter,y:Math.sin(i)*t+o.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:o,right:i,bottom:n}=this._pointLabelItems[e];return{left:t,top:o,right:i,bottom:n}}drawBackground(){const e=this,{backgroundColor:t,grid:{circular:o}}=e.options;if(t){const i=e.ctx;i.save(),i.beginPath(),Er(e,e.getDistanceFromCenterForValue(e._endValue),o,e.getLabels().length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const e=this,t=e.ctx,o=e.options,{angleLines:i,grid:n}=o,r=e.getLabels().length;let s,a,l;if(o.pointLabels.display&&function(e,t){const{ctx:o,options:{pointLabels:i}}=e;for(let n=t-1;n>=0;n--){const t=i.setContext(e.getContext(n)),r=dt(t.font),{x:s,y:a,textAlign:l,left:d,top:h,right:u,bottom:p}=e._pointLabelItems[n],{backdropColor:f}=t;if(!c(f)){const e=ct(t.backdropPadding);o.fillStyle=f,o.fillRect(d-e.left,h-e.top,u-d+e.width,p-h+e.height)}Ze(o,e._pointLabels[n],s,a+r.lineHeight/2,r,{color:t.color,textAlign:l,textBaseline:"middle"})}}(e,r),n.display&&e.ticks.forEach(((t,o)=>{if(0!==o){a=e.getDistanceFromCenterForValue(t.value);const i=n.setContext(e.getContext(o-1));!function(e,t,o,i){const n=e.ctx,r=t.circular,{color:s,lineWidth:a}=t;!r&&!i||!s||!a||o<0||(n.save(),n.strokeStyle=s,n.lineWidth=a,n.setLineDash(t.borderDash),n.lineDashOffset=t.borderDashOffset,n.beginPath(),Er(e,o,r,i),n.closePath(),n.stroke(),n.restore())}(e,i,a,r)}})),i.display){for(t.save(),s=e.getLabels().length-1;s>=0;s--){const n=i.setContext(e.getContext(s)),{color:r,lineWidth:c}=n;c&&r&&(t.lineWidth=c,t.strokeStyle=r,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=e.getDistanceFromCenterForValue(o.ticks.reverse?e.min:e.max),l=e.getPointPosition(s,a),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const e=this,t=e.ctx,o=e.options,i=o.ticks;if(!i.display)return;const n=e.getIndexAngle(0);let r,s;t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach(((n,a)=>{if(0===a&&!o.reverse)return;const l=i.setContext(e.getContext(a)),c=dt(l.font);if(r=e.getDistanceFromCenterForValue(e.ticks[a].value),l.showLabelBackdrop){t.font=c.string,s=t.measureText(n.label).width,t.fillStyle=l.backdropColor;const e=ct(l.backdropPadding);t.fillRect(-s/2-e.left,-r-c.size/2-e.top,s+e.width,c.size+e.height)}Ze(t,n.label,0,-r,c,{color:l.color})})),t.restore()}drawTitle(){}}Mr.id="radialLinear",Mr.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pi.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5}},Mr.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Mr.descriptors={angleLines:{_fallback:"grid"}};const Dr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Cr=Object.keys(Dr);function Rr(e,t){return e-t}function Ir(e,t){if(c(t))return null;const o=e._adapter,{parser:i,round:n,isoWeekday:r}=e._parseOpts;let s=t;return"function"==typeof i&&(s=i(s)),u(s)||(s="string"==typeof i?o.parse(s,i):o.parse(s)),null===s?null:(n&&(s="week"!==n||!W(r)&&!0!==r?o.startOf(s,n):o.startOf(s,"isoWeek",r)),+s)}function Hr(e,t,o,i){const n=Cr.length;for(let r=Cr.indexOf(e);r=t?o[i]:o[n]]=!0}}else e[t]=!0}function Nr(e,t,o){const i=[],n={},r=t.length;let s,a;for(s=0;s=0&&(t[l].major=!0);return t}(e,i,n,o):i}class zr extends Li{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const o=e.time||(e.time={}),i=this._adapter=new Bo._date(e.adapters.date);T(o.displayFormats,i.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Ir(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this,t=e.options,o=e._adapter,i=t.time.unit||"day";let{min:n,max:r,minDefined:s,maxDefined:a}=e.getUserBounds();function l(e){s||isNaN(e.min)||(n=Math.min(n,e.min)),a||isNaN(e.max)||(r=Math.max(r,e.max))}s&&a||(l(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(e.getMinMax(!1))),n=u(n)&&!isNaN(n)?n:+o.startOf(Date.now(),i),r=u(r)&&!isNaN(r)?r:+o.endOf(Date.now(),i)+1,e.min=Math.min(n,r-1),e.max=Math.max(n+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],o=e[e.length-1]),{min:t,max:o}}buildTicks(){const e=this,t=e.options,o=t.time,i=t.ticks,n="labels"===i.source?e.getLabelTimestamps():e._generate();"ticks"===t.bounds&&n.length&&(e.min=e._userMin||n[0],e.max=e._userMax||n[n.length-1]);const r=e.min,s=function(e,t,o){let i=0,n=e.length;for(;ii&&e[n-1]>o;)n--;return i>0||n=Cr.indexOf(o);r--){const o=Cr[r];if(Dr[o].common&&e._adapter.diff(n,i,o)>=t-1)return o}return Cr[o?Cr.indexOf(o):0]}(e,s.length,o.minUnit,e.min,e.max)),e._majorUnit=i.major.enabled&&"year"!==e._unit?function(e){for(let t=Cr.indexOf(e)+1,o=Cr.length;t1e5*a)throw new Error(o+" and "+i+" are too far apart with stepSize of "+a+" "+s);const g="data"===n.ticks.source&&e.getDataTimestamps();for(h=p,u=0;he-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,o=this.options.time;return o.tooltipFormat?t.format(e,o.tooltipFormat):t.format(e,o.displayFormats.datetime)}_tickFormatFunction(e,t,o,i){const n=this,r=n.options,s=r.time.displayFormats,a=n._unit,l=n._majorUnit,c=a&&s[a],d=l&&s[l],h=o[t],u=l&&d&&h&&h.major,p=n._adapter.format(e,i||(u?d:c)),f=r.ticks.callback;return f?m(f,[p,t,o],n):p}generateTickLabels(e){let t,o,i;for(t=0,o=e.length;t0?a:1}getDataTimestamps(){const e=this;let t,o,i=e._cache.data||[];if(i.length)return i;const n=e.getMatchingVisibleMetas();if(e._normalized&&n.length)return e._cache.data=n[0].controller.getAllParsedValues(e);for(t=0,o=n.length;tt&&s0&&!c(t)?t/o._maxIndex:o.getDecimalForValue(e);return o.getPixelForDecimal((i.start+n)*i.factor)}getDecimalForValue(e){return Ur(this._table,e)/this._maxIndex}getValueForPixel(e){const t=this,o=t._offsets,i=t.getDecimalForPixel(e)/o.factor-o.end;return Ur(t._table,i*this._maxIndex,!0)}}Fr.id="timeseries",Fr.defaults=zr.defaults},8227:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const n=function(e){return"string"==typeof e&&i.test(e)}}}]); //# sourceMappingURL=21571.047276997b77dee6f381.js.map