(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[661],{8003:function(e,t,r){var n,i,o;i=[],void 0!==(o="function"==typeof(n=function(){"use strict";function t(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,r,a){var l=o.URL||o.webkitURL,s=document.createElement("a");r=r||e.name||"download",s.download=r,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?i(s):n(s.href)?t(e,r,a):i(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){i(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e){var a;navigator.msSaveOrOpenBlob((void 0===(a=o)?a={autoBom:!1}:"object"!=typeof a&&(console.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),r)}else if(n(e))t(e,r,o);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){i(l)})}}:function(e,r,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,r,n);var l="application/octet-stream"===e.type,s=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||l&&s||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,h=f.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout(function(){f.revokeObjectURL(h)},4e4)}});o.saveAs=l.saveAs=l,e.exports=l})?n.apply(t,i):n)&&(e.exports=o)},1620:(e,t,r)=>{"use strict";r.d(t,{$E:()=>K});let n=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function i(e){let t=[];for(let r=0,n=e.length;r{let n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function s(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function c(e,t,r){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),s(i)}let u=(e,t)=>{if(e instanceof t)return!0;let r=Object.getPrototypeOf(e);return null!==r&&(r.constructor.name===t.name||u(r,t))};function f(e,t,r){let o=window.getComputedStyle(e,r),a=o.getPropertyValue("content");if(""===a||"none"===a)return;let l=n();try{t.className=`${t.className} ${l}`}catch(e){return}let s=document.createElement("style");s.appendChild(function(e,t,r){let n=`.${e}:${t}`,o=r.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(r):i(r).map(e=>{let t=r.getPropertyValue(e),n=r.getPropertyPriority(e);return`${e}: ${t}${n?" !important":""};`}).join(" ");return document.createTextNode(`${n}{${o}}`)}(l,r,o)),t.appendChild(s)}let h="application/font-woff",d="image/jpeg",g={woff:h,woff2:h,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:d,jpeg:d,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function p(e){return g[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function m(e){return -1!==e.search(/^(data:)/)}function y(e,t){return`data:${t};base64,${e}`}async function b(e,t,r){let n=await fetch(e,t);if(404===n.status)throw Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((e,t)=>{let o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(r({res:n,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)})}let w={};async function v(e,t,r){var n,i,o;let a,l;let s=(n=e,i=t,o=r.includeQueryParams,l=n.replace(/\?.*/,""),o&&(l=n),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),i?`[${i}]${l}`:l);if(null!=w[s])return w[s];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let n=await b(e,r.fetchRequestInit,({res:e,result:r})=>(t||(t=e.headers.get("Content-Type")||""),r.split(/,/)[1]));a=y(n,t)}catch(n){a=r.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;n&&(t="string"==typeof n?n:n.message),t&&console.warn(t)}return w[s]=a,a}async function x(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):l(t)}async function M(e,t){if(e.currentSrc){let t=document.createElement("canvas"),r=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==r||r.drawImage(e,0,0,t.width,t.height),l(t.toDataURL())}let r=e.poster,n=p(r);return l(await v(r,n,t))}async function k(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await S(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function E(e,t){return u(e,HTMLCanvasElement)?x(e):u(e,HTMLVideoElement)?M(e,t):u(e,HTMLIFrameElement)?k(e):e.cloneNode(!1)}let A=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function C(e,t,r){var n,o;let a=[];return A(e)&&e.assignedNodes?a=i(e.assignedNodes()):u(e,HTMLIFrameElement)&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?a=i(e.contentDocument.body.childNodes):a=i((null!==(o=e.shadowRoot)&&void 0!==o?o:e).childNodes),0===a.length||u(e,HTMLVideoElement)||await a.reduce((e,n)=>e.then(()=>S(n,r)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function R(e,t){let r=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===r.length)return e;let n={};for(let i=0;iE(e,t)).then(r=>C(e,r,t)).then(t=>{var r,n;return r=e,u(n=t,Element)&&(!function(e,t){let r=t.style;if(!r)return;let n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):i(n).forEach(i=>{let o=n.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}u(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(i,o,n.getPropertyPriority(i))})}(r,n),f(r,n,":before"),f(r,n,":after"),u(r,HTMLTextAreaElement)&&(n.innerHTML=r.value),u(r,HTMLInputElement)&&n.setAttribute("value",r.value),function(e,t){if(u(e,HTMLSelectElement)){let r=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));r&&r.setAttribute("selected","")}}(r,n)),n}).then(e=>R(e,t)):null}let P=/url\((['"]?)([^'"]+?)\1\)/g,O=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,T=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function _(e,t,r,n,i){try{let o;let a=r?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}(t,r):t,l=p(t);if(i){let e=await i(a);o=y(e,l)}else o=await v(a,l,n);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${o}$3`)}catch(e){}return e}function I(e){return -1!==e.search(P)}async function N(e,t,r){if(!I(e))return e;let n=function(e,{preferredFontFormat:t}){return t?e.replace(T,e=>{for(;;){let[r,,n]=O.exec(e)||[];if(!n)return"";if(n===t)return`src: ${r};`}}):e}(e,r);return(function(e){let t=[];return e.replace(P,(e,r,n)=>(t.push(n),e)),t.filter(e=>!m(e))})(n).reduce((e,n)=>e.then(e=>_(e,n,t,r)),Promise.resolve(n))}async function L(e,t,r){var n;let i=null===(n=t.style)||void 0===n?void 0:n.getPropertyValue(e);if(i){let n=await N(i,null,r);return t.style.setProperty(e,n,t.style.getPropertyPriority(e)),!0}return!1}async function F(e,t){await L("background",e,t)||await L("background-image",e,t),await L("mask",e,t)||await L("mask-image",e,t)}async function D(e,t){let r=u(e,HTMLImageElement);if(!(r&&!m(e.src))&&!(u(e,SVGImageElement)&&!m(e.href.baseVal)))return;let n=r?e.src:e.href.baseVal,i=await v(n,p(n),t);await new Promise((t,n)=>{e.onload=t,e.onerror=n,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}async function j(e,t){let r=i(e.childNodes).map(e=>$(e,t));await Promise.all(r).then(()=>e)}async function $(e,t){u(e,Element)&&(await F(e,t),await D(e,t),await j(e,t))}let H={};async function B(e){let t=H[e];if(null!=t)return t;let r=await fetch(e);return t={url:e,cssText:await r.text()},H[e]=t,t}async function z(e,t){let r=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((r.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),b(o,t.fetchRequestInit,({result:e})=>(r=r.replace(i,`url(${e})`),[i,e]))})).then(()=>r)}function U(e){if(null==e)return[];let t=[],r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),n=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=n.exec(r);if(null===e)break;t.push(e[0])}r=r.replace(n,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(r);if(null===e){if(null===(e=o.exec(r)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function V(e,t){let r=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{i(r.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1,a=e.href,l=B(a).then(e=>z(e,t)).then(e=>U(e).forEach(e=>{try{r.insertRule(e,e.startsWith("@import")?o+=1:r.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});n.push(l)}})}catch(o){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=r.href&&n.push(B(r.href).then(e=>z(e,t)).then(e=>U(e).forEach(e=>{i.insertRule(e,r.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{i(e.cssRules||[]).forEach(e=>{r.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),r))}async function W(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let r=i(e.ownerDocument.styleSheets);return(await V(r,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>I(e.style.getPropertyValue("src")))}async function Y(e,t){let r=await W(e,t);return(await Promise.all(r.map(e=>{let r=e.parentStyleSheet?e.parentStyleSheet.href:null;return N(e.cssText,r,t)}))).join("\n")}async function q(e,t){let r=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await Y(e,t);if(r){let t=document.createElement("style"),n=document.createTextNode(r);t.appendChild(n),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function Q(e,t={}){let{width:r,height:n}=a(e,t),i=await S(e,t,!0);return await q(i,t),await $(i,t),!function(e,t){let{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);let n=t.style;null!=n&&Object.keys(n).forEach(e=>{r[e]=n[e]})}(i,t),await c(i,r,n)}async function X(e,t={}){let{width:r,height:n}=a(e,t),i=await Q(e,t),o=await l(i),s=document.createElement("canvas"),c=s.getContext("2d"),u=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let r=t&&t.env?t.env.devicePixelRatio:null;return r&&Number.isNaN(e=parseInt(r,10))&&(e=1),e||window.devicePixelRatio||1}(),f=t.canvasWidth||r,h=t.canvasHeight||n;return s.width=f*u,s.height=h*u,!t.skipAutoScale&&(s.width>16384||s.height>16384)&&(s.width>16384&&s.height>16384?s.width>s.height?(s.height*=16384/s.width,s.width=16384):(s.width*=16384/s.height,s.height=16384):s.width>16384?(s.height*=16384/s.width,s.width=16384):(s.width*=16384/s.height,s.height=16384)),s.style.width=`${f}`,s.style.height=`${h}`,t.backgroundColor&&(c.fillStyle=t.backgroundColor,c.fillRect(0,0,s.width,s.height)),c.drawImage(o,0,0,s.width,s.height),s}async function K(e,t={}){return(await X(e,t)).toDataURL()}},6261:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},1864:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},1190:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]])},9136:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},3950:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]])},6889:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},1868:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},4807:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},1544:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},6122:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},8617:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},4113:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7223:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},8197:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]])},872:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},4226:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]])},853:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},6075:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},2640:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},865:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},5686:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},2509:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]])},2823:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(7401).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},2239:(e,t,r)=>{"use strict";r.d(t,{UC:()=>K,B8:()=>Q,bL:()=>q,l9:()=>X});var n=r(2115),i=r(3610),o=r(8166),a=r(9741),l=r(8068),s=r(7668),c=r(3360),u=r(1524),f=r(1488),h=r(5155),d=n.createContext(void 0);function g(e){let t=n.useContext(d);return e||t||"ltr"}var p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[b,w,v]=(0,a.N)(y),[x,M]=(0,o.A)(y,[v]),[k,E]=x(y),A=n.forwardRef((e,t)=>(0,h.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(C,{...e,ref:t})})}));A.displayName=y;var C=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:s,currentTabStopId:d,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...M}=e,E=n.useRef(null),A=(0,l.s)(t,E),C=g(s),[R=null,S]=(0,f.i)({prop:d,defaultProp:y,onChange:b}),[P,T]=n.useState(!1),_=(0,u.c)(v),I=w(r),N=n.useRef(!1),[L,F]=n.useState(0);return n.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(p,_),()=>e.removeEventListener(p,_)},[_]),(0,h.jsx)(k,{scope:r,orientation:o,dir:C,loop:a,currentTabStopId:R,onItemFocus:n.useCallback(e=>S(e),[S]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>F(e=>e-1),[]),children:(0,h.jsx)(c.sG.div,{tabIndex:P||0===L?-1:0,"data-orientation":o,...M,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),x)}}N.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>T(!1))})})}),R="RovingFocusGroupItem",S=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:l,...u}=e,f=(0,s.B)(),d=l||f,g=E(R,r),p=g.currentTabStopId===d,m=w(r),{onFocusableItemAdd:y,onFocusableItemRemove:v}=g;return n.useEffect(()=>{if(o)return y(),()=>v()},[o,y,v]),(0,h.jsx)(b.ItemSlot,{scope:r,id:d,focusable:o,active:a,children:(0,h.jsx)(c.sG.span,{tabIndex:p?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?g.onItemFocus(d):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>g.onItemFocus(d)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return P[i]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=g.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>O(r))}})})})});S.displayName=R;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var T=r(7028),_="Tabs",[I,N]=(0,o.A)(_,[M]),L=M(),[F,D]=I(_),j=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:l,activationMode:u="automatic",...d}=e,p=g(l),[m,y]=(0,f.i)({prop:n,onChange:i,defaultProp:o});return(0,h.jsx)(F,{scope:r,baseId:(0,s.B)(),value:m,onValueChange:y,orientation:a,dir:p,activationMode:u,children:(0,h.jsx)(c.sG.div,{dir:p,"data-orientation":a,...d,ref:t})})});j.displayName=_;var $="TabsList",H=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=D($,r),a=L(r);return(0,h.jsx)(A,{asChild:!0,...a,orientation:o.orientation,dir:o.dir,loop:n,children:(0,h.jsx)(c.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});H.displayName=$;var B="TabsTrigger",z=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,l=D(B,r),s=L(r),u=W(l.baseId,n),f=Y(l.baseId,n),d=n===l.value;return(0,h.jsx)(S,{asChild:!0,...s,focusable:!o,active:d,children:(0,h.jsx)(c.sG.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...a,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:(0,i.m)(e.onFocus,()=>{let e="manual"!==l.activationMode;d||o||!e||l.onValueChange(n)})})})});z.displayName=B;var U="TabsContent",V=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:o,children:a,...l}=e,s=D(U,r),u=W(s.baseId,i),f=Y(s.baseId,i),d=i===s.value,g=n.useRef(d);return n.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(T.C,{present:o||d,children:r=>{let{present:n}=r;return(0,h.jsx)(c.sG.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:n&&a})}})});function W(e,t){return"".concat(e,"-trigger-").concat(t)}function Y(e,t){return"".concat(e,"-content-").concat(t)}V.displayName=U;var q=j,Q=H,X=z,K=V},5056:(e,t,r)=>{"use strict";let n;function i(e){return e+.5|0}r.d(t,{$:()=>tf,A:()=>eN,B:()=>eI,C:()=>tc,D:()=>eE,E:()=>tM,F:()=>V,G:()=>tZ,H:()=>eu,I:()=>tV,J:()=>t1,K:()=>t0,L:()=>eB,M:()=>tU,N:()=>ey,O:()=>$,P:()=>eo,Q:()=>U,R:()=>tA,S:()=>eP,T:()=>ea,U:()=>eM,V:()=>tn,W:()=>eO,X:()=>to,Y:()=>tu,Z:()=>tg,_:()=>e$,a:()=>tE,a0:()=>tk,a1:()=>eU,a2:()=>eV,a3:()=>e6,a4:()=>X,a5:()=>ee,a6:()=>e7,a7:()=>er,a8:()=>function e(t,r,n,i){return new Proxy({_cacheable:!1,_proxy:t,_context:r,_subProxy:n,_stack:new Set,_descriptors:tS(t,i),setContext:r=>e(t,r,n,i),override:o=>e(t.override(o),r,n,i)},{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,r,n)=>tT(t,r,()=>(function(t,r,n){let{_proxy:i,_context:o,_subProxy:a,_descriptors:l}=t,s=i[r];return er(s)&&l.isScriptable(r)&&(s=function(e,t,r,n){let{_proxy:i,_context:o,_subProxy:a,_stack:l}=r;if(l.has(e))throw Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let s=t(o,a||n);return l.delete(e),tO(e,s)&&(s=tI(i._scopes,i,e,s)),s}(r,s,t,n)),F(s)&&s.length&&(s=function(t,r,n,i){let{_proxy:o,_context:a,_subProxy:l,_descriptors:s}=n;if(void 0!==a.index&&i(t))return r[a.index%r.length];if(D(r[0])){let n=r,i=o._scopes.filter(e=>e!==n);for(let c of(r=[],n)){let n=tI(i,o,t,c);r.push(e(n,a,l&&l[t],s))}}return r}(r,s,t,l.isIndexable)),tO(r,s)&&(s=e(s,o,a&&a[r],l)),s})(t,r,n)),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})},a9:()=>tR,aA:()=>t8,aB:()=>eW,aC:()=>t6,aD:()=>ts,aE:()=>eA,aF:()=>I,aG:()=>ev,aH:()=>em,aI:()=>ew,aJ:()=>ep,aK:()=>ek,aL:()=>e8,aM:()=>ed,aN:()=>ti,aO:()=>eL,aP:()=>e_,aa:()=>tS,ab:()=>K,ac:()=>N,ad:()=>ez,ae:()=>tJ,af:()=>ta,ag:()=>en,ah:()=>W,ai:()=>ei,aj:()=>eT,ak:()=>tw,al:()=>tz,am:()=>rr,an:()=>rt,ao:()=>t5,ap:()=>t3,aq:()=>t2,ar:()=>th,as:()=>td,at:()=>tl,au:()=>tp,av:()=>tv,aw:()=>tx,ax:()=>re,ay:()=>eR,az:()=>t4,b:()=>F,c:()=>eJ,d:()=>tr,e:()=>eG,f:()=>J,g:()=>j,h:()=>et,i:()=>D,j:()=>tC,k:()=>L,l:()=>eD,m:()=>B,n:()=>z,o:()=>e3,p:()=>eS,q:()=>eY,r:()=>eH,s:()=>eg,t:()=>ex,u:()=>ej,v:()=>H,w:()=>eq,x:()=>eb,y:()=>tD,z:()=>tK});let o=(e,t,r)=>Math.max(Math.min(e,r),t);function a(e){return o(i(2.55*e),0,255)}function l(e){return o(i(255*e),0,255)}function s(e){return o(i(e/2.55)/100,0,1)}function c(e){return o(i(100*e),0,100)}let u={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},f=[..."0123456789ABCDEF"],h=e=>f[15&e],d=e=>f[(240&e)>>4]+f[15&e],g=e=>(240&e)>>4==(15&e),p=e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a),m=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,r){let n=t*Math.min(r,1-r),i=(t,i=(t+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function w(e,t,r){let n=(n,i=(n+e/60)%6)=>r-r*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function v(e,t,r){let n;let i=b(e,1,.5);for(t+r>1&&(n=1/(t+r),t*=n,r*=n),n=0;n<3;n++)i[n]*=1-t-r,i[n]+=t;return i}function x(e){let t,r,n;let i=e.r/255,o=e.g/255,a=e.b/255,l=Math.max(i,o,a),s=Math.min(i,o,a),c=(l+s)/2;return l!==s&&(n=l-s,r=c>.5?n/(2-l-s):n/(l+s),t=60*(t=i===l?(o-a)/n+(oe<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,S=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function P(e,t,r){if(e){let n=x(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,0===t?360:1)),n=M(b,n,void 0,void 0),e.r=n[0],e.g=n[1],e.b=n[2]}}function O(e,t){return e?Object.assign(t||{},e):e}function T(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=l(e[3]))):(t=O(e,{r:0,g:0,b:0,a:1})).a=l(t.a),t}class _{constructor(e){let t;if(e instanceof _)return e;let r=typeof e;"object"===r?t=T(e):"string"===r&&(t=function(e){var t,r=e.length;return"#"===e[0]&&(4===r||5===r?t={r:255&17*u[e[1]],g:255&17*u[e[2]],b:255&17*u[e[3]],a:5===r?17*u[e[4]]:255}:(7===r||9===r)&&(t={r:u[e[1]]<<4|u[e[2]],g:u[e[3]]<<4|u[e[4]],b:u[e[5]]<<4|u[e[6]],a:9===r?u[e[7]]<<4|u[e[8]]:255})),t}(e)||function(e){n||((n=function(){let e,t,r,n,i;let o={},a=Object.keys(A),l=Object.keys(E);for(e=0;e>16&255,r>>8&255,255&r]}return o}()).transparent=[0,0,0,0]);let t=n[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||function(e){return"r"===e.charAt(0)?function(e){let t,r,n;let i=C.exec(e),l=255;if(i){if(i[7]!==t){let e=+i[7];l=i[8]?a(e):o(255*e,0,255)}return t=+i[1],r=+i[3],n=+i[5],{r:t=255&(i[2]?a(t):o(t,0,255)),g:r=255&(i[4]?a(r):o(r,0,255)),b:n=255&(i[6]?a(n):o(n,0,255)),a:l}}}(e):function(e){let t;let r=y.exec(e),n=255;if(!r)return;r[5]!==t&&(n=r[6]?a(+r[5]):l(+r[5]));let i=k(+r[2]),o=+r[3]/100,s=+r[4]/100;return{r:(t="hwb"===r[1]?M(v,i,o,s):"hsv"===r[1]?M(w,i,o,s):M(b,i,o,s))[0],g:t[1],b:t[2],a:n}}(e)}(e)),this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=O(this._rgb);return e&&(e.a=s(e.a)),e}set rgb(e){this._rgb=T(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${s(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=p(e=this._rgb)?h:d,e?"#"+t(e.r)+t(e.g)+t(e.b)+m(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=x(e),r=t[0],n=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${s(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let r;let n=this.rgb,i=e.rgb,o=t===r?.5:t,a=2*o-1,l=n.a-i.a,s=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;r=1-s,n.r=255&s*n.r+r*i.r+.5,n.g=255&s*n.g+r*i.g+.5,n.b=255&s*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,r){let n=S(s(e.r)),i=S(s(e.g)),o=S(s(e.b));return{r:l(R(n+r*(S(s(t.r))-n))),g:l(R(i+r*(S(s(t.g))-i))),b:l(R(o+r*(S(s(t.b))-o))),a:e.a+r*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new _(this.rgb)}alpha(e){return this._rgb.a=l(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=i(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return P(this._rgb,2,e),this}darken(e){return P(this._rgb,2,-e),this}saturate(e){return P(this._rgb,1,e),this}desaturate(e){return P(this._rgb,1,-e),this}rotate(e){var t,r;return(r=x(t=this._rgb))[0]=k(r[0]+e),r=M(b,r,void 0,void 0),t.r=r[0],t.g=r[1],t.b=r[2],this}}function I(){}let N=(()=>{let e=0;return()=>e++})();function L(e){return null==e}function F(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function D(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function j(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function $(e,t){return j(e)?e:t}function H(e,t){return void 0===e?t:e}let B=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function U(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)}function V(e,t,r,n){let i,o,a;if(F(e)){if(o=e.length,n)for(i=o-1;i>=0;i--)t.call(r,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function J(e,t){return(Z[t]||(Z[t]=function(e){let t=function(e){let t=e.split("."),r=[],n="";for(let e of t)(n+=e).endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(e);return e=>{for(let r of t){if(""===r)break;e=e&&e[r]}return e}}(t)))(e)}function ee(e){return e.charAt(0).toUpperCase()+e.slice(1)}let et=e=>void 0!==e,er=e=>"function"==typeof e,en=(e,t)=>{if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0};function ei(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let eo=Math.PI,ea=2*eo,el=ea+eo,es=Number.POSITIVE_INFINITY,ec=eo/180,eu=eo/2,ef=eo/4,eh=2*eo/3,ed=Math.log10,eg=Math.sign;function ep(e,t,r){return Math.abs(e-t)e-t).pop(),r}function eb(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ew(e,t){let r=Math.round(e);return r-t<=e&&r+t>=e}function ev(e,t,r){let n,i,o;for(n=0,i=e.length;ns&&c=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function e_(e,t,r){let n;r=r||(r=>e[r]1;)r(n=o+i>>1)?o=n:i=n;return{lo:o,hi:i}}let eI=(e,t,r,n)=>e_(e,r,n?n=>{let i=e[n][t];return ie[n][t]e_(e,r,n=>e[n][t]>=r);function eL(e,t,r){let n=0,i=e.length;for(;nn&&e[i-1]>r;)i--;return n>0||i{let r="_onData"+ee(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=n.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[r]&&e[r](...t)}),i}})})}function ej(e,t){let r=e._chartjs;if(!r)return;let n=r.listeners,i=n.indexOf(t);-1!==i&&n.splice(i,1),n.length>0||(eF.forEach(t=>{delete e[t]}),delete e._chartjs)}function e$(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eH="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eB(e,t){let r=[],n=!1;return function(...i){r=i,n||(n=!0,eH.call(window,()=>{n=!1,e.apply(t,r)}))}}function ez(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}let eU=e=>"start"===e?"left":"end"===e?"right":"center",eV=(e,t,r)=>"start"===e?t:"end"===e?r:(t+r)/2,eW=(e,t,r,n)=>e===(n?"left":"right")?r:"center"===e?(t+r)/2:t;function eY(e,t,r){let n=t.length,i=0,o=n;if(e._sorted){let{iScale:a,_parsed:l}=e,s=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(i=eP(Math.min(eI(l,s,c).lo,r?n:eI(t,s,a.getPixelForValue(c)).lo),0,n-1)),o=h?eP(Math.max(eI(l,a.axis,u,!0).hi+1,r?0:eI(t,s,a.getPixelForValue(u),!0).hi+1),i,n)-i:n-i}return{start:i,count:o}}function eq(e){let{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;let o=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o}let eQ=e=>0===e||1===e,eX=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ea/r)),eK=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*ea/r)+1,eG={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=>-Math.cos(e*eu)+1,easeOutSine:e=>Math.sin(e*eu),easeInOutSine:e=>-.5*(Math.cos(eo*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eQ(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),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=>eQ(e)?e:eX(e,.075,.3),easeOutElastic:e=>eQ(e)?e:eK(e,.075,.3),easeInOutElastic:e=>eQ(e)?e:e<.5?.5*eX(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eG.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eG.easeInBounce(2*e):.5*eG.easeOutBounce(2*e-1)+.5};function eZ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function eJ(e){return eZ(e)?e:new _(e)}function e0(e){return eZ(e)?e:new _(e).saturate(.5).darken(.1).hexString()}let e1=["x","y","borderWidth","radius","tension"],e2=["color","borderColor","backgroundColor"],e5=new Map;function e3(e,t,r){return(function(e,t){let r=e+JSON.stringify(t=t||{}),n=e5.get(r);return n||(n=new Intl.NumberFormat(e,t),e5.set(r,n)),n})(t,r).format(e)}let e4={values:e=>F(e)?e:""+e,numeric(e,t,r){let n;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(r.length>1){let t;let i=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(i<1e-4||i>1e15)&&(n="scientific"),Math.abs(t=r.length>3?r[2].value-r[1].value:r[1].value-r[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let a=ed(Math.abs(o)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:n,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),e3(e,i,s)},logarithmic(e,t,r){return 0===e?"0":[1,2,3,5,10,15].includes(r[t].significand||e/Math.pow(10,Math.floor(ed(e))))||t>.8*r.length?e4.numeric.call(this,e,t,r):""}};var e8={formatters:e4};let e6=Object.create(null),e7=Object.create(null);function e9(e,t){if(!t)return e;let r=t.split(".");for(let t=0,n=r.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)=>e0(t.backgroundColor),this.hoverBorderColor=(e,t)=>e0(t.borderColor),this.hoverColor=(e,t)=>e0(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},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.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return te(this,e,t)}get(e){return e9(this,e)}describe(e,t){return te(e7,e,t)}override(e,t){return te(e6,e,t)}route(e,t,r,n){let i=e9(this,e),o=e9(this,r),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[n];return D(e)?Object.assign({},t,e):H(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var tr=new tt({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e2},numbers:{type:"number",properties:e1}}),e.describe("animations",{_fallback:"animation"}),e.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}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:e8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tn(e,t,r,n,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,r.push(i)),o>n&&(n=o),n}function ti(e,t,r,n){let i,o,a,l,s;let c=(n=n||{}).data=n.data||{},u=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(c=n.data={},u=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let f=0,h=r.length;for(i=0;ir.length){for(i=0;i0&&e.stroke()}}function tc(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.xt.top-r&&e.y0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),L(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a+e||0;function tw(e,t){let r={},n=D(t),i=n?Object.keys(t):t,o=D(e)?n?r=>H(e[r],e[t[r]]):t=>e[t]:()=>e;for(let e of i)r[e]=tb(o(e));return r}function tv(e){return tw(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tx(e){return tw(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tM(e){let t=tv(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tk(e,t){e=e||{},t=t||tr.font;let r=H(e.size,t.size);"string"==typeof r&&(r=parseInt(r,10));let n=H(e.style,t.style);n&&!(""+n).match(ty)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:H(e.family,t.family),lineHeight:function(e,t){let r=(""+e).match(tm);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e}(H(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:H(e.weight,t.weight),string:""};return i.string=!i||L(i.size)||L(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tE(e,t,r,n){let i,o,a,l=!0;for(i=0,o=e.length;ir&&0===e?0:e+t;return{min:a(n,-Math.abs(o)),max:a(i,o)}}function tC(e,t){return Object.assign(Object.create(e),t)}function tR(e,t=[""],r,n,i=()=>e[0]){let o=r||e;return void 0===n&&(n=tL("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:n,_getTarget:i,override:r=>tR([r,...e],t,o,n)},{deleteProperty:(t,r)=>(delete t[r],delete t._keys,delete e[0][r],!0),get:(r,n)=>tT(r,n,()=>(function(e,t,r,n){let i;for(let o of t)if(void 0!==(i=tL(tP(o,e),r)))return tO(e,i)?tI(r,n,e,i):i})(n,t,e,r)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tF(e).includes(t),ownKeys:e=>tF(e),set(e,t,r){let n=e._storage||(e._storage=i());return e[t]=n[t]=r,delete e._keys,!0}})}function tS(e,t={scriptable:!0,indexable:!0}){let{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:er(r)?r:()=>r,isIndexable:er(n)?n:()=>n}}let tP=(e,t)=>e?e+ee(t):t,tO=(e,t)=>D(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tT(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let n=r();return e[t]=n,n}let t_=(e,t)=>!0===e?t:"string"==typeof e?J(t,e):void 0;function tI(e,t,r,n){var i;let o=t._rootScopes,a=er(i=t._fallback)?i(r,n):i,l=[...e,...o],s=new Set;s.add(n);let c=tN(s,l,r,a||r,n);return null!==c&&(void 0===a||a===r||null!==(c=tN(s,l,a,c,n)))&&tR(Array.from(s),[""],o,a,()=>(function(e,t,r){let n=e._getTarget();t in n||(n[t]={});let i=n[t];return F(i)&&D(r)?r:i||{}})(t,r,n))}function tN(e,t,r,n,i){for(;r;)r=function(e,t,r,n,i){for(let a of t){let t=t_(r,a);if(t){var o;e.add(t);let a=er(o=t._fallback)?o(r,i):o;if(void 0!==a&&a!==r&&a!==n)return a}else if(!1===t&&void 0!==n&&r!==n)return null}return!1}(e,t,r,n,i);return r}function tL(e,t){for(let r of t){if(!r)continue;let t=r[e];if(void 0!==t)return t}}function tF(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let r of e)for(let e of Object.keys(r).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tD(e,t,r,n){let i,o,a;let{iScale:l}=e,{key:s="r"}=this._parsing,c=Array(n);for(i=0;it"x"===e?"y":"x";function tB(e,t,r){return Math.max(Math.min(e,r),t)}function tz(e,t,r,n,i){let o,a,l,s;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let r,n,i;let o=tH(t),a=e.length,l=Array(a).fill(0),s=Array(a),c=t$(e,0);for(r=0;re.ownerDocument.defaultView.getComputedStyle(e,null),tq=["top","right","bottom","left"];function tQ(e,t,r){let n={};r=r?"-"+r:"";for(let i=0;i<4;i++){let o=tq[i];n[o]=parseFloat(e[t+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}let tX=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function tK(e,t){if("native"in e)return e;let{canvas:r,currentDevicePixelRatio:n}=t,i=tY(r),o="border-box"===i.boxSizing,a=tQ(i,"padding"),l=tQ(i,"border","width"),{x:s,y:c,box:u}=function(e,t){let r,n;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:a,offsetY:l}=o,s=!1;if(tX(a,l,e.target))r=a,n=l;else{let e=t.getBoundingClientRect();r=o.clientX-e.left,n=o.clientY-e.top,s=!0}return{x:r,y:n,box:s}}(e,r),f=a.left+(u&&l.left),h=a.top+(u&&l.top),{width:d,height:g}=t;return o&&(d-=a.width+l.width,g-=a.height+l.height),{x:Math.round((s-f)/d*r.width/n),y:Math.round((c-h)/g*r.height/n)}}let tG=e=>Math.round(10*e)/10;function tZ(e,t,r,n){let i=tY(e),o=tQ(i,"margin"),a=tW(i.maxWidth,e,"clientWidth")||es,l=tW(i.maxHeight,e,"clientHeight")||es,s=function(e,t,r){let n,i;if(void 0===t||void 0===r){let o=e&&tV(e);if(o){let e=o.getBoundingClientRect(),a=tY(o),l=tQ(a,"border","width"),s=tQ(a,"padding");t=e.width-s.width-l.width,r=e.height-s.height-l.height,n=tW(a.maxWidth,o,"clientWidth"),i=tW(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,r=e.clientHeight}return{width:t,height:r,maxWidth:n||es,maxHeight:i||es}}(e,t,r),{width:c,height:u}=s;if("content-box"===i.boxSizing){let e=tQ(i,"border","width"),t=tQ(i,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-o.width),u=Math.max(0,n?c/n:u-o.height),c=tG(Math.min(c,a,s.maxWidth)),u=tG(Math.min(u,l,s.maxHeight)),c&&!u&&(u=tG(c/2)),(void 0!==t||void 0!==r)&&n&&s.height&&u>s.height&&(c=tG(Math.floor((u=s.height)*n))),{width:c,height:u}}function tJ(e,t,r){let n=t||1,i=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==n||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=n,a.height=i,a.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0)}let t0=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tU()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t1(e,t){let r=tY(e).getPropertyValue(t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function t2(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function t5(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:"middle"===n?r<.5?e.y:t.y:"after"===n?r<1?e.y:t.y:r>0?t.y:e.y}}function t3(e,t,r,n){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=t2(e,i,r),l=t2(i,o,r),s=t2(o,t,r),c=t2(a,l,r),u=t2(l,s,r);return t2(c,u,r)}function t4(e,t,r){var n;return e?(n=r,{x:e=>t+t+n-e,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t8(e,t){let r,n;("ltr"===t||"rtl"===t)&&(n=[(r=e.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function t6(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t7(e){return"angle"===e?{between:eS,compare:eC,normalize:eR}:{between:eT,compare:(e,t)=>e-t,normalize:e=>e}}function t9({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r==0,style:i}}function re(e,t,r){let n,i,o;if(!r)return[e];let{property:a,start:l,end:s}=r,c=t.length,{compare:u,between:f,normalize:h}=t7(a),{start:d,end:g,loop:p,style:m}=function(e,t,r){let n;let{property:i,start:o,end:a}=r,{between:l,normalize:s}=t7(i),c=t.length,{start:u,end:f,loop:h}=e;if(h){for(u+=c,f+=c,n=0;nf(l,o,n)&&0!==u(l,o),x=()=>0===u(s,n)||f(s,o,n),M=()=>b||v(),k=()=>!b||x();for(let e=d,r=d;e<=g;++e)(i=t[e%c]).skip||(n=h(i[a]))===o||(b=f(n,l,s),null===w&&M()&&(w=0===u(n,l)?e:r),null!==w&&k()&&(y.push(t9({start:w,end:e,loop:p,count:c,style:m})),w=null),r=e,o=n);return null!==w&&y.push(t9({start:w,end:g,loop:p,count:c,style:m})),y}function rt(e,t){let r=[],n=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(r,i,o,n);if(!0===n)return rn(e,[{start:a,end:l,loop:o}],r,t);let s=l{"use strict";r.d(t,{h:()=>v});var n,i=r(2115),o=Object.defineProperty,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(a)for(var r of a(t))s.call(t,r)&&c(e,r,t[r]);return e},f=(e,t)=>{var r={};for(var n in e)l.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&a)for(var n of a(e))0>t.indexOf(n)&&s.call(e,n)&&(r[n]=e[n]);return r};(e=>{let t=class t{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError("Version value out of range");if(o<-1||o>7)throw RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e7)throw RangeError("Invalid value");for(u=o;;u++){let r=8*t.getNumDataCodewords(u,n),i=a.getTotalBits(e,u);if(i<=r){f=i;break}if(u>=l)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&f<=8*t.getNumDataCodewords(u,e)&&(n=e);let h=[];for(let t of e)for(let e of(r(t.mode.modeBits,4,h),r(t.numChars,t.mode.numCharCountBits(u),h),t.getData()))h.push(e);i(h.length==f);let d=8*t.getNumDataCodewords(u,n);i(h.length<=d),r(0,Math.min(4,d-h.length),h),r(0,(8-h.length%8)%8,h),i(h.length%8==0);for(let e=236;h.lengthg[t>>>3]|=e<<7-(7&t)),new t(u,n,g,s)}getModule(e,t){return 0<=e&&e>>9)*1335;let o=(t<<10|r)^21522;i(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(o,e));this.setFunctionModule(8,7,n(o,6)),this.setFunctionModule(8,8,n(o,7)),this.setFunctionModule(7,8,n(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(o,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let r=n(t,e),i=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(i,o,r),this.setFunctionModule(o,i,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,a=t+r;0<=o&&o{(e!=c-a||r>=s)&&h.push(t[e])});return i(h.length==l),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let i=0;i>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t5&&e++:(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[r][a],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;r5&&e++:(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[a][r],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;re+(t?1:0),r);let n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=o&&o<=9),i(0<=(e+=o*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),r=[6];for(let n=this.size-7;r.lengtht.MAX_VERSION)throw RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return i(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let r=[];for(let t=0;t0);for(let i of e){let e=i^n.shift();n.push(0),r.forEach((r,i)=>n[i]^=t.reedSolomonMultiply(r,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285^(t>>>n&1)*e;return i(r>>>8==0),r}finderPenaltyCountPatterns(e){let t=e[1];i(t<=3*this.size);let r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let o=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(let e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains non-numeric characters");let n=[];for(let e=0;e=1<{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(n||(n={}));var h=n,d={L:h.QrCode.Ecc.LOW,M:h.QrCode.Ecc.MEDIUM,Q:h.QrCode.Ecc.QUARTILE,H:h.QrCode.Ecc.HIGH},g="#FFFFFF",p="#000000";function m(e,t=0){let r=[];return e.forEach(function(e,n){let i=null;e.forEach(function(o,a){if(!o&&null!==i){r.push(`M${i+t} ${n+t}h${a-i}v1H${i+t}z`),i=null;return}if(a===e.length-1){if(!o)return;null===i?r.push(`M${a+t},${n+t} h1v1H${a+t}z`):r.push(`M${i+t},${n+t} h${a+1-i}v1H${i+t}z`);return}o&&null===i&&(i=a)})}),r.join("")}function y(e,t){return e.slice().map((e,r)=>r=t.y+t.h?e:e.map((e,r)=>(r=t.x+t.w)&&e))}function b({value:e,level:t,minVersion:r,includeMargin:n,marginSize:o,imageSettings:a,size:l,boostLevel:s}){let c=i.useMemo(()=>{let n=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...h.QrSegment.makeSegments(t)),e),[]);return h.QrCode.encodeSegments(n,d[t],r,void 0,void 0,s)},[e,t,r,s]),{cells:u,margin:f,numCells:g,calculatedImageSettings:p}=i.useMemo(()=>{let e=c.getModules(),t=null!=o?Math.max(Math.floor(o),0):n?4:0,r=e.length+2*t,i=function(e,t,r,n){if(null==n)return null;let i=e.length+2*r,o=Math.floor(.1*t),a=i/t,l=(n.width||o)*a,s=(n.height||o)*a,c=null==n.x?e.length/2-l/2:n.x*a,u=null==n.y?e.length/2-s/2:n.y*a,f=null==n.opacity?1:n.opacity,h=null;if(n.excavate){let e=Math.floor(c),t=Math.floor(u),r=Math.ceil(l+c-e),n=Math.ceil(s+u-t);h={x:e,y:t,w:r,h:n}}return{x:c,y:u,h:s,w:l,excavation:h,opacity:f,crossOrigin:n.crossOrigin}}(e,l,t,a);return{cells:e,margin:t,numCells:r,calculatedImageSettings:i}},[c,l,a,n,o]);return{qrcode:c,margin:f,cells:u,numCells:g,calculatedImageSettings:p}}var w=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();i.forwardRef(function(e,t){let{value:r,size:n=128,level:o="L",bgColor:a=g,fgColor:l=p,includeMargin:s=!1,minVersion:c=1,boostLevel:h,marginSize:d,imageSettings:v}=e,x=f(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:M}=x,k=f(x,["style"]),E=null==v?void 0:v.src,A=i.useRef(null),C=i.useRef(null),R=i.useCallback(e=>{A.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[S,P]=i.useState(!1),{margin:O,cells:T,numCells:_,calculatedImageSettings:I}=b({value:r,level:o,minVersion:c,boostLevel:h,includeMargin:s,marginSize:d,imageSettings:v,size:n});i.useEffect(()=>{if(null!=A.current){let e=A.current,t=e.getContext("2d");if(!t)return;let r=T,i=C.current,o=null!=I&&null!==i&&i.complete&&0!==i.naturalHeight&&0!==i.naturalWidth;o&&null!=I.excavation&&(r=y(T,I.excavation));let s=window.devicePixelRatio||1;e.height=e.width=n*s;let c=n/_*s;t.scale(c,c),t.fillStyle=a,t.fillRect(0,0,_,_),t.fillStyle=l,w?t.fill(new Path2D(m(r,O))):T.forEach(function(e,r){e.forEach(function(e,n){e&&t.fillRect(n+O,r+O,1,1)})}),I&&(t.globalAlpha=I.opacity),o&&t.drawImage(i,I.x+O,I.y+O,I.w,I.h)}}),i.useEffect(()=>{P(!1)},[E]);let N=u({height:n,width:n},M),L=null;return null!=E&&(L=i.createElement("img",{src:E,key:E,style:{display:"none"},onLoad:()=>{P(!0)},ref:C,crossOrigin:null==I?void 0:I.crossOrigin})),i.createElement(i.Fragment,null,i.createElement("canvas",u({style:N,height:n,width:n,ref:R,role:"img"},k)),L)}).displayName="QRCodeCanvas";var v=i.forwardRef(function(e,t){let{value:r,size:n=128,level:o="L",bgColor:a=g,fgColor:l=p,includeMargin:s=!1,minVersion:c=1,boostLevel:h,title:d,marginSize:w,imageSettings:v}=e,x=f(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:M,cells:k,numCells:E,calculatedImageSettings:A}=b({value:r,level:o,minVersion:c,boostLevel:h,includeMargin:s,marginSize:w,imageSettings:v,size:n}),C=k,R=null;null!=v&&null!=A&&(null!=A.excavation&&(C=y(k,A.excavation)),R=i.createElement("image",{href:v.src,height:A.h,width:A.w,x:A.x+M,y:A.y+M,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));let S=m(C,M);return i.createElement("svg",u({height:n,width:n,viewBox:`0 0 ${E} ${E}`,ref:t,role:"img"},x),!!d&&i.createElement("title",null,d),i.createElement("path",{fill:a,d:`M0,0 h${E}v${E}H0z`,shapeRendering:"crispEdges"}),i.createElement("path",{fill:l,d:S,shapeRendering:"crispEdges"}),R)});v.displayName="QRCodeSVG"}}]);