@xfers/design-system 5.0.0-dev.0a4e1a4787 → 5.0.0-dev.528a2fe19f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +2 -2
- package/cjs/index.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/types/components/DynamicSelect/DynamicSelect.d.ts +1 -1
- package/dist/types/components/Grid/Section.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/es/index.js +4 -4
- package/es/index.js.map +1 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import tt,{createContext as et,forwardRef as nt,createElement as it,Component as ot,Fragment as rt,useState as st,useRef as lt,useEffect as ct,useCallback as dt}from"react";import{S as ht,a as ut,b as pt,c as ft,d as gt,e as mt,f as bt,g as xt,h as yt,i as vt,j as wt}from"./Time-740bf76c.js";export{k as AccessApiTwoTone,b2 as AccountStatement,c as Add,l as Api,m as ApiDocsTwoTone,n as ArrowDown,o as ArrowLeft,p as ArrowRight,q as ArrowSwitch,b as ArrowUp,r as Authorize,t as Avatar,s as AvatarFilled,w as Bank,u as BankFilled,v as BankFilledBackground,S as Bell,x as BellFilled,y as BulletPointArrow,z as Calendar,A as Camera,C as CardFilled,E as Company,B as CompanyComplexTwoTone,D as CompanyTwoTone,F as Confirmation,j as CopyToClipboard,aX as CreditCard,a as Cross,i as CrossMini,b5 as CustomerKnowledgeAssessment,H as CustomerSupport,G as CustomerSupportTwoTone,I as Delete,J as DepositTwoTone,L as DeveloperTool,K as DeveloperToolTwoTone,aP as DirectMint,N as Document,M as DocumentFilled,O as Dots,P as DownArrow,Q as Download,R as Earn,T as Edit,U as Employee,e as EmptyIcon,aQ as EmptyStateWithPattern,V as Expand,W as ExternalLink,X as Faq,aM as FaqDialog,aI as FaqFilled,aJ as File,Y as Filter,aN as Flag,Z as FlipHorizontal,_ as FlipVertical,ba as GenerateVA,aL as HandShake,$ as HelpGuide,aK as Home,a0 as Idea,a1 as Info,f as InfoFilled,a2 as Invoice,a3 as LockFilled,a4 as LockWithKeyHole,aE as Login,a5 as Logout,aR as LowFee,aT as Mail,aU as MemoCard,aS as MintWallet,a6 as Minus,a7 as Mobile,a8 as More,a9 as NavDashboard,aa as NavHamburger,ab as NavTransactions,ac as Notes,aW as OneToOneXIDR,aV as OneToOneXSGD,ad as Outgoing,af as Passport,ae as PaymentTwoTone,aY as Payout,ag as PenField,ai as Pending,aj as PersonalTwoTone,ah as PiggyBank,an as Reroll,ak as Resend,aG as Response,al as RotateLeft,am as RotateRight,aZ as Scan,d as Search,b3 as SendEmail,ao as SendInvitation,aq as Settings,ap as SettingsFilled,ar as SignUpTwoTone,as as StateSuccessV2,a_ as StraitsXEarnExchange,a$ as StraitsXEarnFee,b0 as StraitsXEarnWallet,b1 as StraitsXEarnWithdrawal,b4 as Swap,at as Switch,au as Thumbnail,av as ThumbnailTwoTone,g as Tick,bb as Time,aH as Tips,aO as Transaction,b9 as TwoFA,aA as Unlink,aw as UpArrow,ax as Upload,ay as UsefulLinks,aF as UsefulLinksTwoTone,az as User,b6 as VerifiedShield,b7 as VerifyIdentity,b8 as VerifyPhone,aC as Wallet,aB as WalletFilled,h as WarningFilled,aD as WithdrawalTwoTone}from"./Time-740bf76c.js";import{_ as _t,a as kt,b as Et}from"./_tslib-73c90073.js";import{Alert as St,Button as Ct,Card as At,Tabs as Mt,Dropdown as Dt,Select as Ot,Tag as Tt,Form as Pt,Input as Rt,Pagination as Lt,Radio as Ft,DatePicker as It,Steps as Nt,Table as zt,Checkbox as Bt,Empty as Vt,Tooltip as Ht,Spin as jt,Timeline as Wt}from"antd";import Ut from"react-dom";export{aT as Alfamart,aU as Alfamidi,O as Anz,aN as Arbitrum,aO as Avalanche,P as Bca,Q as Bea,ap as Binance,aq as Bitgo,aQ as Bnbsmart,R as Bni,U as Bnp,V as Boc,W as Bri,X as Bsi,Y as Bss,Z as Cimb,_ as Citi,ar as Coinhako,as as Coinut,z as CrossLogo,at as Crypto,aV as DanPlusDan,b4 as Dana,$ as Danamon,o as DarkStraitsXLogo,q as DarkStraitsXUserInfoBarLogo,a0 as Dbag,a1 as Dbs,ao as Dextf,u as EarnPiggyBank,M as EmptyStraitsX,au as Ethereum,F as FaceScan,a2 as Fazz,a3 as Feb,aM as Finblox,av as Fireblocks,b5 as GoPay,aK as Gpn,a4 as Hana,aJ as Hedera,a5 as Hlb,aw as Hodlnaut,a6 as Hsbc,a7 as Icbc,a8 as Icici,b1 as IdFlag,y as IdrLogo,aW as Indomaret,S as InfoLogo,v as InterestCompoundedDaily,aY as Jcb,a9 as Jpmc,b7 as Jumio,aX as Lawson,ax as LedgerVault,L as LevelDown,p as LightStraitsXLogo,b6 as LinkAja,ay as Liquid,ad as Mandiri,aZ as Mastercard,aa as Mbb,ab as Miz,ac as Mufg,a as MyInfoLogo,w as NoFees,x as NoLockInPeriod,N as NotesBell,b2 as OVO,ae as Ocbc,az as OnchainCustodian,af as Permata,aA as Polygon,ag as Posb,aB as QcpCapital,aL as Qris,ah as Rbs,ai as Rhb,aR as Ripple,aj as Scb,b as SendLogo,m as SgdLogo,b3 as ShopeePay,ak as Sifl,al as Smbc,aS as Solana,aC as Sparrow,B as StateError,C as StateSuccess,ba as StraitsXBusinessAccountDarkLogo,bb as StraitsXBusinessAccountLightLogo,b8 as StraitsXLogo,s as StraitsXMyInfo,bc as StraitsXPersonalAccountDarkLogo,bd as StraitsXPersonalAccountLightLogo,b9 as StraitsXSandboxLogo,r as StraitsxSandboxLogo,T as Target,a$ as ThreeDSecure,n as ThreeDotsLogo,c as TickLogo,aD as TokenizeXchange,aP as Tron,am as Trwi,aE as Unagii,aF as Uniswap,an as Uob,b0 as UsFlag,l as UsdLogo,h as UsdcLogo,i as UsdpLogo,j as UsdtLogo,E as VecDeposits,G as VecDesktop,H as VecEmpty,I as VecEmptyPlain,t as VecEmptyPlainGreen,J as VecMobile,K as VecRecipients,D as VecThumbnailDoc,a_ as Visa,A as WalletLogo,d as XfersLogo,e as XfersSandboxLogo,g as XidrLogo,f as XsgdLogo,k as XusdLogo,aG as Zillet,aH as Zilliqa,aI as Zilswap}from"./StraitsXPersonalAccountLightLogo-88865b98.js";var Gt=function(){function t(t){this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(i);try{var a=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,a?0:o.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+t+'"',e)}}else i.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){return t.parentNode.removeChild(t)}),this.tags=[],this.ctr=0},t}();function Yt(t){function e(t,i,l,c,u){for(var p,f,g,m,v,_=0,k=0,E=0,S=0,C=0,P=0,L=g=p=0,I=0,N=0,z=0,B=0,V=l.length,H=V-1,j="",W="",U="",G="";I<V;){if(f=l.charCodeAt(I),I===H&&0!==k+S+E+_&&(0!==k&&(f=47===k?10:47),S=E=_=0,V++,H++),0===k+S+E+_){if(I===H&&(0<N&&(j=j.replace(h,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(I)}f=59}switch(f){case 123:for(p=(j=j.trim()).charCodeAt(0),g=1,B=++I;I<V;){switch(f=l.charCodeAt(I)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(I+1)){case 42:case 47:t:{for(L=I+1;L<H;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&I+2!==L){I=L+1;break t}break;case 10:if(47===f){I=L+1;break t}}I=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;I++<H&&l.charCodeAt(I)!==f;);}if(0===g)break;I++}if(g=l.substring(B,I),0===p&&(p=(j=j.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<N&&(j=j.replace(h,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:N=i;break;default:N=T}if(B=(g=e(i,N,g,f,u+1)).length,0<R&&(v=s(3,g,N=n(T,j,z),i,M,A,B,f,u,c),j=N.join(""),void 0!==v&&0===(B=(g=v.trim()).length)&&(f=0,g="")),0<B)switch(f){case 115:j=j.replace(w,r);case 100:case 109:case 45:g=j+"{"+g+"}";break;case 107:g=(j=j.replace(b,"$1 $2"))+"{"+g+"}",g=1===O||2===O&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=j+g,112===c&&(W+=g,g="")}else g=""}else g=e(i,n(i,j,z),g,c,u+1);U+=g,g=z=N=L=p=0,j="",f=l.charCodeAt(++I);break;case 125:case 59:if(1<(B=(j=(0<N?j.replace(h,""):j).trim()).length))switch(0===L&&(p=j.charCodeAt(0),45===p||96<p&&123>p)&&(B=(j=j.replace(" ",":")).length),0<R&&void 0!==(v=s(1,j,i,t,M,A,W.length,c,u,c))&&0===(B=(j=v.trim()).length)&&(j="\0\0"),p=j.charCodeAt(0),f=j.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){G+=j+l.charAt(I);break}default:58!==j.charCodeAt(B-1)&&(W+=o(j,p,f,j.charCodeAt(2)))}z=N=L=p=0,j="",f=l.charCodeAt(++I)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<j.length&&(N=1,j+="\0"),0<R*F&&s(0,j,i,t,M,A,W.length,c,u,c),A=1,M++;break;case 59:case 125:if(0===k+S+E+_){A++;break}default:switch(A++,m=l.charAt(I),f){case 9:case 32:if(0===S+_+k)switch(C){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===S+k+_&&(N=z=1,m="\f"+m);break;case 108:if(0===S+k+_+D&&0<L)switch(I-L){case 2:112===C&&58===l.charCodeAt(I-3)&&(D=C);case 8:111===P&&(D=P)}break;case 58:0===S+k+_&&(L=I);break;case 44:0===k+E+S+_&&(N=1,m+="\r");break;case 34:case 39:0===k&&(S=S===f?0:0===S?f:S);break;case 91:0===S+k+E&&_++;break;case 93:0===S+k+E&&_--;break;case 41:0===S+k+_&&E--;break;case 40:if(0===S+k+_){if(0===p)if(2*C+3*P==533);else p=1;E++}break;case 64:0===k+E+S+_+L+g&&(g=1);break;case 42:case 47:if(!(0<S+_+E))switch(k){case 0:switch(2*f+3*l.charCodeAt(I+1)){case 235:k=47;break;case 220:B=I,k=42}break;case 42:47===f&&42===C&&B+2!==I&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,I+1)),m="",k=0)}}0===k&&(j+=m)}P=C,C=f,I++}if(0<(B=W.length)){if(N=i,0<R&&(void 0!==(v=s(2,W,N,t,M,A,B,c,u,c))&&0===(W=v).length))return G+W+U;if(W=N.join(",")+"{"+W+"}",0!==O*D){switch(2!==O||a(W,2)||(D=0),D){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(x,"::-webkit-input-$1")+W.replace(x,"::-moz-$1")+W.replace(x,":-ms-input-$1")+W}D=0}}return G+W+U}function n(t,e,n){var o=e.trim().split(g);e=o;var a=o.length,r=t.length;switch(r){case 0:case 1:var s=0;for(t=0===r?"":t[0]+" ";s<a;++s)e[s]=i(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<a;++s)for(var c=0;c<r;++c)e[l++]=i(t[c]+" ",o[s],n).trim()}return e}function i(t,e,n){var i=e.charCodeAt(0);switch(33>i&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(m,"$1"+t.trim());case 58:return t.trim()+e.replace(m,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(m,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,i){var r=t+";",s=2*e+3*n+4*i;if(944===s){t=r.indexOf(":",9)+1;var l=r.substring(t,r.length-1).trim();return l=r.substring(0,t).trim()+l+";",1===O||2===O&&a(l,1)?"-webkit-"+l+l:l}if(0===O||2===O&&!a(r,1))return r;switch(s){case 1015:return 97===r.charCodeAt(10)?"-webkit-"+r+r:r;case 951:return 116===r.charCodeAt(3)?"-webkit-"+r+r:r;case 963:return 110===r.charCodeAt(5)?"-webkit-"+r+r:r;case 1009:if(100!==r.charCodeAt(4))break;case 969:case 942:return"-webkit-"+r+r;case 978:return"-webkit-"+r+"-moz-"+r+r;case 1019:case 983:return"-webkit-"+r+"-moz-"+r+"-ms-"+r+r;case 883:if(45===r.charCodeAt(8))return"-webkit-"+r+r;if(0<r.indexOf("image-set(",11))return r.replace(C,"$1-webkit-$2")+r;break;case 932:if(45===r.charCodeAt(4))switch(r.charCodeAt(5)){case 103:return"-webkit-box-"+r.replace("-grow","")+"-webkit-"+r+"-ms-"+r.replace("grow","positive")+r;case 115:return"-webkit-"+r+"-ms-"+r.replace("shrink","negative")+r;case 98:return"-webkit-"+r+"-ms-"+r.replace("basis","preferred-size")+r}return"-webkit-"+r+"-ms-"+r+r;case 964:return"-webkit-"+r+"-ms-flex-"+r+r;case 1023:if(99!==r.charCodeAt(8))break;return"-webkit-box-pack"+(l=r.substring(r.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+r+"-ms-flex-pack"+l+r;case 1005:return p.test(r)?r.replace(u,":-webkit-")+r.replace(u,":-moz-")+r:r;case 1e3:switch(e=(l=r.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=r.replace(v,"tb");break;case 232:l=r.replace(v,"tb-rl");break;case 220:l=r.replace(v,"lr");break;default:return r}return"-webkit-"+r+"-ms-"+l+r;case 1017:if(-1===r.indexOf("sticky",9))break;case 975:switch(e=(r=t).length-10,s=(l=(33===r.charCodeAt(e)?r.substring(0,e):r).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:r=r.replace(l,"-webkit-"+l)+";"+r;break;case 207:case 102:r=r.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+r.replace(l,"-webkit-"+l)+";"+r.replace(l,"-ms-"+l+"box")+";"+r}return r+";";case 938:if(45===r.charCodeAt(5))switch(r.charCodeAt(6)){case 105:return l=r.replace("-items",""),"-webkit-"+r+"-webkit-box-"+l+"-ms-flex-"+l+r;case 115:return"-webkit-"+r+"-ms-flex-item-"+r.replace(k,"")+r;default:return"-webkit-"+r+"-ms-flex-line-pack"+r.replace("align-content","").replace(k,"")+r}break;case 973:case 989:if(45!==r.charCodeAt(3)||122===r.charCodeAt(4))break;case 931:case 953:if(!0===S.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,n,i).replace(":fill-available",":stretch"):r.replace(l,"-webkit-"+l)+r.replace(l,"-moz-"+l.replace("fill-",""))+r;break;case 962:if(r="-webkit-"+r+(102===r.charCodeAt(5)?"-ms-"+r:"")+r,211===n+i&&105===r.charCodeAt(13)&&0<r.indexOf("transform",10))return r.substring(0,r.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+r}return r}function a(t,e){var n=t.indexOf(1===e?":":"{"),i=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),L(2!==e?i:i.replace(E,"$1"),n,e)}function r(t,e){var n=o(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(_," or ($1)").substring(4):"("+e+")"}function s(t,e,n,i,o,a,r,s,l,d){for(var h,u=0,p=e;u<R;++u)switch(h=P[u].call(c,t,p,n,i,o,a,r,s,l,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==e)return p}function l(t){return void 0!==(t=t.prefix)&&(L=null,t?"function"!=typeof t?O=1:(O=2,L=t):O=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<R){var o=s(-1,n,i,i,M,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=e(T,i,n,0,0);return 0<R&&(void 0!==(o=s(-2,a,i,i,M,A,a.length,0,0,0))&&(a=o)),D=0,A=M=1,a}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,k=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,A=1,M=1,D=0,O=1,T=[],P=[],R=0,L=null,F=0;return c.use=function t(e){switch(e){case void 0:case null:R=P.length=0;break;default:if("function"==typeof e)P[R++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else F=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var $t=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var i=t(n);return e.set(n,i),i}},Xt="/*|*/",qt=Xt+"}";function Kt(t){t&&Zt.current.insert(t+"}")}var Zt={current:null},Jt=function(t,e,n,i,o,a,r,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return Zt.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+Xt;break;case 3:switch(s){case 102:case 112:return Zt.current.insert(n[0]+e),"";default:return e+(0===c?Xt:"")}case-2:e.split(qt).forEach(Kt)}},Qt=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},te="undefined"!=typeof document,ee={},ne=te?void 0:$t(function(){var t=$t(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),ie=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new Yt(e);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,a,r={};if(te){o=t.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach(function(t){r[t]=!0}),t.parentNode!==o&&o.appendChild(t)})}if(te)i.use(t.stylisPlugins)(Jt),a=function(t,e,n,o){var a=e.name;if(Zt.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var r=e.map;Zt.current={insert:function(t){n.insert(t+r)}}}i(t,e.styles),o&&(h.inserted[a]=!0)};else{i.use(Qt);var l=ee;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=ne(t.stylisPlugins||ee)(t.prefix));a=function(t,e,n,o){var a=e.name,r=function(t,e){var n=e.name;return void 0===l[n]&&(l[n]=i(t,e.styles)),l[n]}(t,e);return void 0===h.compat?(o&&(h.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?r+e.map:r):o?void(h.inserted[a]=r):r}}if("production"!==process.env.NODE_ENV){var c=/\/\*/g,d=/\*\//g;i.use(function(t,e){if(-1===t){for(;c.test(e);){if(d.lastIndex=c.lastIndex,!d.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=d.lastIndex}c.lastIndex=0}}),i.use(function(t,e,n){if(-1===t){var i=e.match(/(:first|:nth|:nth-last)-child/g);i&&!0!==h.compat&&i.forEach(function(t){var n=new RegExp(t+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(e);t&&!n&&console.error('The pseudo class "'+t+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+t.split("-child")[0]+'-of-type".')})}})}var h={key:n,sheet:new Gt({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:r,registered:{},insert:a};return h};function oe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var re,se={exports:{}},le={};var ce,de,he={};var ue=oe((de||(de=1,"production"===process.env.NODE_ENV?se.exports=(re||(re=1,Object.defineProperty(le,"__esModule",{value:!0}),le.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),le):se.exports=(ce||(ce=1,Object.defineProperty(he,"__esModule",{value:!0}),he.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),he)),se.exports));function pe(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var fe="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ge="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",me=/[A-Z]|^ms/g,be=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xe=function(t){return 45===t.charCodeAt(1)},ye=function(t){return null!=t&&"boolean"!=typeof t},ve=pe(function(t){return xe(t)?t:t.replace(me,"-$&").toLowerCase()}),we=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(be,function(t,e,n){return Te={name:e,styles:n,next:Te},e})}return 1===ue[t]||xe(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var _e=/(attr|calc|counters?|url)\(/,ke=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Ee=we,Se=/^-ms-/,Ce=/-(.)/g,Ae={};we=function(t,e){"content"===t&&("string"!=typeof e||-1===ke.indexOf(e)&&!_e.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+e+"\"'`");var n=Ee(t,e);return""===n||xe(t)||-1===t.indexOf("-")||void 0!==Ae[t]||(Ae[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Se,"ms-").replace(Ce,function(t,e){return e.toUpperCase()})+"?")),n}}var Me=!0;function De(t,e,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Te={name:n.name,styles:n.styles,next:Te},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Te={name:o.name,styles:o.styles,next:Te},o=o.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=De(t,e,n[o],!1);else for(var a in n){var r=n[a];if("object"!=typeof r)null!=e&&void 0!==e[r]?i+=a+"{"+e[r]+"}":ye(r)&&(i+=ve(a)+":"+we(a,r)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(r)||"string"!=typeof r[0]||null!=e&&void 0!==e[r[0]]){var s=De(t,e,r,!1);switch(a){case"animation":case"animationName":i+=ve(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(ge),i+=a+"{"+s+"}"}}else for(var l=0;l<r.length;l++)ye(r[l])&&(i+=ve(a)+":"+we(a,r[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var r=Te,s=n(t);return Te=r,De(t,e,s,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=n.replace(be,function(t,e,n){var i="animation"+l.length;return l.push("const "+i+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+i+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==e)return n;var d=e[n];return"production"!==process.env.NODE_ENV&&i&&Me&&void 0!==d&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),Me=!1),void 0===d||i?n:d}var Oe,Te,Pe=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(Oe=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Re=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";Te=void 0;var a,r=t[0];null==r||void 0===r.raw?(i=!1,o+=De(n,e,r,!1)):("production"!==process.env.NODE_ENV&&void 0===r[0]&&console.error(fe),o+=r[0]);for(var s=1;s<t.length;s++)o+=De(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===r[s]&&console.error(fe),o+=r[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Oe,function(t){return a=t,""})),Pe.lastIndex=0;for(var l,c="";null!==(l=Pe.exec(o));)c+="-"+l[1];var d=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:o,map:a,next:Te,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:Te}},Le="undefined"!=typeof document;function Fe(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var Ie=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===Le&&void 0!==t.compat)&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var o="",a=e;do{var r=t.insert("."+i,a,t.sheet,!0);Le||void 0===r||(o+=r),a=a.next}while(void 0!==a);if(!Le&&0!==o.length)return o}};function Ne(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function ze(t,e,n){var i=[],o=Fe(t,i,n);return i.length<2?n:o+e(i)}var Be,Ve,He,je,We,Ue,Ge,Ye,$e,Xe,qe,Ke,Ze,Je=function t(e){for(var n="",i=0;i<e.length;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var r in a="",o)o[r]&&r&&(a&&(a+=" "),a+=r);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},Qe=function(t){var e=ie(t);e.sheet.speedy=function(t){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Re(n,e.registered,void 0);return Ie(e,o,!1),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return ze(e.registered,n,Je(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Re(n,e.registered);Ne(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Re(n,e.registered),a="animation-"+o.name;return Ne(e,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Fe.bind(null,e.registered),merge:ze.bind(null,e.registered,n)}}(),tn=Qe.cx,en=Qe.injectGlobal,nn=Qe.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(Be||(Be={})),function(t){t.DEFAULT="#2F8DEE",t.T10="#5FA8F2",t.T20="#8EC2F6",t.T40="#ECF5FD",t.S400="#1863B0",t.S300="#3585E6",t.S100="#EBF5FF",t.LINK="#187D97"}(Ve||(Ve={})),function(t){t.S500="#00D37E",t.S400="#189C08",t.S300="#43CC32",t.S100="#F0FFF3",t.DEFAULT="#00A965",t.CONTRAST="#002B2A",t.G100="#F0FFF9",t.HOVER="#00B86D",t.HOVER_SECONDARY="#E5EDEC",t.HOVER_TERTIARY="rgba(5, 73, 72, 0.1)",t.PRESSED="#009E5A",t.PRESSED_SECONDARY="#E6ECEC",t.PRESSED_TERTIARY="rgba(5, 73, 72, 0.15)",t.BASE="#054948"}(He||(He={})),function(t){t.S500="#777777",t.S400="#959595",t.T10="#ADADAD",t.S300="#CACACA",t.S200="#E8E8E8",t.S100="#F6F7F9",t.S50="#FFFFFF",t.BLUISH="#D3D7DE",t.BASE="#D8D8D8",t.OUTLINE="#505454"}(je||(je={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(We||(We={})),function(t){t.DEFAULT="#FFFFFF"}(Ue||(Ue={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(Ge||(Ge={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(Ye||(Ye={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.DISABLED_SURFACE="#F2F4F5",t.DISABLED_ON_SURFACE="#9D9E9F",t.DARK="#051513",t.SUBDUE_INFO="#EEF6FF",t.SUBDUE_POSITIVE="#F0F9F4",t.SUBDUE_WARNING="#FFFAEA",t.SUBDUE_CRITICAL="#FFF1F1"}($e||($e={})),function(t){t.PRIMARY="#00D37E",t.PRIMARY_2="#054948",t.PRIMARY_3="#002B2A",t.ON_CONTAINER="#FFFFFF",t.ON_NEUTRAL="#002B2A",t.ON_NEUTRAL_SECONDARY="#505454",t.LINE="#D8D8D8",t.LINK="#187D97",t.OVERLAY="rgb(5, 21, 19, 0.7)"}(Xe||(Xe={})),function(t){t.HOVER_PRIMARY="#008F56",t.FOCUS_DEFAULT="#42FFB4",t.PRESSED_PRIMARY="#007546",t.SELECTED="#F0FFF9",t.HOVER_SURFACE="#ECECEC",t.FOCUS_SURFACE="#E3E3E3",t.PRESSED_SURFACE="#E3E3E3",t.HOVER_CRITICAL="#B92B22",t.PRESSED_CRITICAL="#A92920"}(qe||(qe={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(Ke||(Ke={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(Ze||(Ze={}));var on,rn={display:{FONT_SIZE:{lg:"64px",md:"45px",sm:"36px"},LINE_HEIGHT:{lg:"78px",md:"54px",sm:"44px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.03em",md:"-0.03em",sm:"-0.03em"}},headline:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"48px",md:"42px",sm:"36px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"0em",md:"0em",sm:"0em"}},title:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"42px",md:"36px",sm:"30px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.02em",md:"-0.02em",sm:"-0.02em"}},label:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}},body:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}}},sn={normal:"overflow: auto; text-overflow: unset;",wrap:"overflow: auto; text-wrap: wrap; word-break: break-word;",hidden:"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"},ln=function(t,e){var n,i,o,a;return nn(on||(on=_t(["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "],["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "])),null!==(n=e.display)&&void 0!==n?n:"block",null!==(i=e.align)&&void 0!==i?i:"inherit",rn[t].FONT_SIZE[e.size],rn[t].LINE_HEIGHT[e.size],rn[t].FONT_WEIGHT[e.size],rn[t].LETTER_SPACING[e.size],null!==(o=e.color)&&void 0!==o?o:Xe.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",sn[null!==(a=e.overflow)&&void 0!==a?a:"normal"])};var cn={Display:function(t){var e=t.as,n=void 0===e?"h1":e,i=t.children,o=t.className,a=kt(t,["as","children","className"]);return tt.createElement(n,Et({className:tn(ln("display",t),o)},a),i)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,i=t.children,o=t.className,a=kt(t,["as","children","className"]);return tt.createElement(n,Et({className:tn(ln("headline",t),o)},a),i)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,i=t.children,o=t.className,a=kt(t,["as","children","className"]);return tt.createElement(n,Et({className:tn(ln("title",t),o)},a),i)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,i=t.children,o=t.className,a=kt(t,["as","children","className"]);return tt.createElement(n,Et({className:tn(ln("label",t),o)},a),i)},Body:function(t){var e=t.as,n=void 0===e?"span":e,i=t.children,o=t.className,a=kt(t,["as","children","className"]);return tt.createElement(n,Et({className:tn(ln("body",t),o)},a),i)}};function dn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,un=pe(function(t){return hn.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function pn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var fn="undefined"!=typeof document,gn=Object.prototype.hasOwnProperty,mn=et("undefined"!=typeof HTMLElement?ie():null),bn=et({});mn.Provider;var xn=function(t){return nt(function(e,n){return it(mn.Consumer,null,function(i){return t(e,i,n)})})};if(!fn){var yn=function(t){function e(e,n,i){var o;return(o=t.call(this,e,n,i)||this).state={value:ie()},o}return pn(e,t),e.prototype.render=function(){return it(mn.Provider,this.state,this.props.children(this.state.value))},e}(ot);xn=function(t){return function(e){return it(mn.Consumer,null,function(n){return null===n?it(yn,null,function(n){return t(e,n)}):t(e,n)})}}}var vn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",_n=function(){return null},kn=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[vn],r=[o],s="";"string"==typeof e.className?s=Fe(t.registered,r,e.className):null!=e.className&&(s=e.className+" ");var l=Re(r);if("production"!==process.env.NODE_ENV&&-1===l.name.indexOf("-")){var c=e[wn];c&&(l=Re([l,"label:"+c+";"]))}var d=Ie(t,l,"string"==typeof a);s+=t.key+"-"+l.name;var h={};for(var u in e)!gn.call(e,u)||"css"===u||u===vn||"production"!==process.env.NODE_ENV&&u===wn||(h[u]=e[u]);h.ref=i,h.className=s;var p=it(a,h),f=it(_n,null);if(!fn&&void 0!==d){for(var g,m=l.name,b=l.next;void 0!==b;)m+=" "+b.name,b=b.next;f=it("style",((g={})["data-emotion-"+t.key]=m,g.dangerouslySetInnerHTML={__html:d},g.nonce=t.sheet.nonce,g))}return it(rt,null,f,p)},En=xn(function(t,e,n){return"function"==typeof t.css?it(bn.Consumer,null,function(i){return kn(e,t,i,n)}):kn(e,t,null,n)});function Sn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Re(e)}"production"!==process.env.NODE_ENV&&(En.displayName="EmotionCssPropInternal");var Cn=!1,An=xn(function(t,e){"production"===process.env.NODE_ENV||Cn||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Cn=!0);var n=t.styles;if("function"==typeof n)return it(bn.Consumer,null,function(t){var i=Re([n(t)]);return it(Mn,{serialized:i,cache:e})});var i=Re([n]);return it(Mn,{serialized:i,cache:e})}),Mn=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}pn(e,t);var n=e.prototype;return n.componentDidMount=function(){this.sheet=new Gt({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var t=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==t&&this.sheet.tags.push(t),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&Ie(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var t=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=t,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){if(!fn){for(var t=this.props.serialized,e=t.name,n=t.styles,i=t.next;void 0!==i;)e+=" "+i.name,n+=i.styles,i=i.next;var o,a=!0===this.props.cache.compat,r=this.props.cache.insert("",{name:e,styles:n},this.sheet,a);if(!a)return it("style",((o={})["data-emotion-"+this.props.cache.key]=e,o.dangerouslySetInnerHTML={__html:r},o.nonce=this.props.cache.sheet.nonce,o))}return null},e}(ot),Dn=function(){var t=Sn.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},On=function t(e){for(var n=e.length,i=0,o="";i<n;i++){var a=e[i];if(null!=a){var r=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))r=t(a);else for(var s in r="",a)a[s]&&s&&(r&&(r+=" "),r+=s);break;default:r=a}r&&(o&&(o+=" "),o+=r)}}return o};var Tn=function(){return null};xn(function(t,e){return it(bn.Consumer,null,function(n){var i="",o="",a=!1,r=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=Re(n,e.registered);if(fn)Ie(e,s,!1);else{var l=Ie(e,s,!1);void 0!==l&&(i+=l)}return fn||(o+=" "+s.name),e.key+"-"+s.name},s={css:r,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(t,e,n){var i=[],o=Fe(t,i,n);return i.length<2?n:o+e(i)}(e.registered,r,On(n))},theme:n},l=t.children(s);a=!0;var c,d=it(Tn,null);fn||0===i.length||(d=it("style",((c={})["data-emotion-"+e.key]=o.substring(1),c.dangerouslySetInnerHTML={__html:i},c.nonce=e.sheet.nonce,c)));return it(rt,null,d,l)})});var Pn=un,Rn=function(t){return"theme"!==t&&"innerRef"!==t},Ln=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Pn:Rn};function Fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var In,Nn,zn,Bn,Vn,Hn,jn,Wn,Un,Gn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Yn="undefined"!=typeof document,$n=function(){return null},Xn=function t(e,n){if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,o,a;void 0!==n&&(i=n.label,a=n.target,o=e.__emotion_forwardProp&&n.shouldForwardProp?function(t){return e.__emotion_forwardProp(t)&&n.shouldForwardProp(t)}:n.shouldForwardProp);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e;"function"!=typeof o&&r&&(o=e.__emotion_forwardProp);var l=o||Ln(s),c=!l("as");return function(){var d=arguments,h=r&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(Gn),h.push(d[0][0]);for(var u=d.length,p=1;p<u;p++)"production"!==process.env.NODE_ENV&&void 0===d[0][p]&&console.error(Gn),h.push(d[p],d[0][p])}var f=xn(function(t,e,n){return it(bn.Consumer,null,function(r){var d=c&&t.as||s,u="",p=[],f=t;if(null==t.theme){for(var g in f={},t)f[g]=t[g];f.theme=r}"string"==typeof t.className?u=Fe(e.registered,p,t.className):null!=t.className&&(u=t.className+" ");var m=Re(h.concat(p),e.registered,f),b=Ie(e,m,"string"==typeof d);u+=e.key+"-"+m.name,void 0!==a&&(u+=" "+a);var x=c&&void 0===o?Ln(d):l,y={};for(var v in t)c&&"as"===v||x(v)&&(y[v]=t[v]);y.className=u,y.ref=n||t.innerRef,"production"!==process.env.NODE_ENV&&t.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===i?"":" in the usage of `"+i+"`"));var w=it(d,y),_=it($n,null);if(!Yn&&void 0!==b){for(var k,E=m.name,S=m.next;void 0!==S;)E+=" "+S.name,S=S.next;_=it("style",((k={})["data-emotion-"+e.key]=E,k.dangerouslySetInnerHTML={__html:b},k.nonce=e.sheet.nonce,k))}return it(rt,null,_,w)})});return f.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=e.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=h,f.__emotion_forwardProp=o,Object.defineProperty(f,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),f.withComponent=function(e,i){return t(e,void 0!==i?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fn(Object(n),!0).forEach(function(e){dn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n||{},{},i):n).apply(void 0,h)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(t){Xn[t]=Xn(t)}),function(t){t.B400="#0C45E1",t.B300="#1863B0",t.B200="#C3DCF6",t.B100="#EEF6FF"}(In||(In={})),function(t){t.G400="#257C58",t.G300="#43CC32",t.G200="#C8FAC0",t.G100="#F0F9F4"}(Nn||(Nn={})),function(t){t.R400="#DF1312",t.R300="#E22726",t.R200="#FFC9C9",t.R100="#FFF1F1"}(zn||(zn={})),function(t){t.Y400="#FC9A07",t.Y300="#FC9A07",t.Y200="#FFEB7E",t.Y100="#FFFAEA"}(Bn||(Bn={})),function(t){t.BLACK="#1B2736",t.G500="#505454",t.G400="#959595",t.G300="#D8D8D8",t.G200="#E8E8E8",t.G100="#F0F0F0",t.WHITE="#FFFFFF"}(Vn||(Vn={})),function(t){t.PRIMARY_BLUE="#1863B0",t.PRIMARY_BLACK="#1B2736",t.PRIMARY_WHITE="#FFFFFF",t.SECONDARY_GREEN="#43CC32",t.SECONDARY_RED="#E22726",t.SECONDARY_YELLOW="#FC9A07"}(Hn||(Hn={})),function(t){t.SUCCESS="#43CC32",t.INFO="#1863B0",t.WARNING="#FC9A07",t.ERROR="#E22726",t.NEUTRAL="#D8D8D8"}(jn||(jn={})),function(t){t.SUCCESS="#257C58",t.INFO="#0C45E1",t.WARNING="#FC9A07",t.ERROR="#DF1312",t.NEUTRAL="#959595"}(Wn||(Wn={})),function(t){t.SUCCESS="#F0F9F4",t.INFO="#EEF6FF",t.WARNING="#FFFAEA",t.ERROR="#FFF1F1",t.NEUTRAL="#F0F0F0"}(Un||(Un={}));var qn,Kn,Zn,Jn,Qn=function(t,e,n){return"\n border: 1px solid ".concat(t," !important;\n background-color: ").concat(n," !important;\n \n .ant-alert-icon {\n color: ").concat(e," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(e," !important;\n }\n")},ti=Qn(Nn.G400,Nn.G400,Nn.G100),ei=Qn(Bn.Y400,Bn.Y400,Bn.Y100),ni=Qn(zn.R400,zn.R400,zn.R100),ii="\n border: none !important;\n background-color: ".concat(He.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(Ue.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(Ue.DEFAULT," !important;\n }\n"),oi=Xn(St)(qn||(qn=_t(["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"],["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"])),"\n width: 328px !important;\n min-height: 52px !important;\n border-radius: 8px !important;\n padding: 8px 12px !important;\n \n .ant-alert-icon {\n align-self: flex-start !important;\n margin-top: 0 !important;\n }\n",function(t){return"success"===t.type&&ti},function(t){return"warning"===t.type&&ei},function(t){return"error"===t.type&&ni},function(t){return"info"===t.type&&ii}),ri=Xn.div(Kn||(Kn=_t(["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"]))),si=Xn.div(Zn||(Zn=_t(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),li=function(t){var e,n=t.type,i=t.message,o=t.closable,a=t.icon,r=t.showIcon,s=t.onClose,l=t.title,c=st(!0),d=c[0],h=c[1];return d?tt.createElement(oi,{type:n||"warning",message:tt.createElement(function(){var t="info"===n?Ue.DEFAULT:Be.DEFAULT;return tt.createElement(ri,null,l&&tt.createElement(cn.Label,{color:t,size:"md"},l),tt.createElement(cn.Body,{color:t,size:"md"},i))},null),closable:o,icon:(e=a?tt.cloneElement(a,{width:20,height:20}):tt.createElement(ht,{width:20,height:20}),tt.createElement(si,null,e)),showIcon:r,onClose:function(){h(!1),s&&s()},closeIcon:tt.createElement(function(){return tt.createElement(ut,{width:14,height:14})},null)}):null},ci="@media (min-width: 1200px)",di="@media (min-width: 992px)",hi="@media (min-width: 768px)",ui="@media (min-width: 576px)",pi="Hanken Grotesk",fi="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(Jn||(Jn={}));var gi,mi="\n color: ".concat(Be.DEFAULT,";\n font-family: ").concat(pi,", ").concat("Inter",";\n margin: 0;\n"),bi="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(fi,";\n\n ").concat(di," {\n font-size: 24px;\n line-height: 29px;\n }\n"),xi="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(fi,";\n\n ").concat(di," {\n font-size: 18px;\n line-height: 22px;\n }\n"),yi="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(fi,";\n\n ").concat(di," {\n font-size: 16px;\n line-height: 19px;\n }\n"),vi="\n font-weight: ".concat(Jn.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(pi,";\n\n ").concat(di," {\n font-size: 14px;\n line-height: 17px;\n }\n"),wi="\n font-weight: ".concat(Jn.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(pi,";\n\n ").concat(di," {\n line-height: 15px;\n }\n"),_i="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 16px;\n font-family: ").concat(fi,";\n"),ki="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 14px;\n font-family: ").concat(fi,";\n"),Ei="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(fi,";\n\n ").concat(di," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Si="\n font-weight: ".concat(Jn.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(pi,";\n"),Ci="\n font-weight: ".concat(Jn.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(fi,";\n");!function(t){t.RAISED="0px 2px 4px 0px rgba(51, 51, 51, 0.16)",t.ACTION="0px 4px 8px 0px rgba(51, 51, 51, 0.16)",t.OVERLAY="0px 8px 16px 0px rgba(51, 51, 51, 0.16)",t.REVERSE_RAISED="0px -1px 4px 0px rgba(51, 51, 51, 0.08)"}(gi||(gi={}));var Ai="10px",Mi="15px",Di="20px",Oi="30px",Ti={spacing:{xs:"5px",sm:Ai,md:Mi,lg:Di,xl:Oi},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:gi.RAISED,action:gi.ACTION,overlay:gi.OVERLAY,reverseRaised:gi.REVERSE_RAISED},color:{background:{neutral:Ye.NEUTRAL,secondaryNeutral:Ye.SECONDARY_NEUTRAL,primary:Ye.PRIMARY,secondary:Ye.SECONDARY},surface:{neutral:$e.NEUTRAL,secondaryNeutral:$e.SECONDARY_NEUTRAL,disabledSurface:$e.DISABLED_SURFACE,disabledOnSurface:$e.DISABLED_ON_SURFACE,dark:$e.DARK,SubdueInfo:$e.SUBDUE_INFO,subduePositive:$e.SUBDUE_POSITIVE,subdueCritical:$e.SUBDUE_CRITICAL,subdueWarning:$e.SUBDUE_WARNING},base:{primary:Xe.PRIMARY,primary2:Xe.PRIMARY_2,primary3:Xe.PRIMARY_3,onContainer:Xe.ON_CONTAINER,onNeutral:Xe.ON_NEUTRAL,onNeutralSecondary:Xe.ON_NEUTRAL_SECONDARY,line:Xe.LINE,link:Xe.LINK,overlay:Xe.OVERLAY},interactive:{hoverPrimary:qe.HOVER_PRIMARY,focusDefault:qe.FOCUS_DEFAULT,pressedPrimary:qe.PRESSED_PRIMARY,selected:qe.SELECTED,hoverSurface:qe.HOVER_SURFACE,focusSurface:qe.FOCUS_SURFACE,pressedSurface:qe.PRESSED_SURFACE,hoverCritical:qe.HOVER_CRITICAL,pressedCritical:qe.PRESSED_CRITICAL},status:{info:Ke.INFO,positive:Ke.POSITIVE,warning:Ke.WARNING,critical:Ke.CRITICAL},component:{buttonDisabled:Ze.BUTTON_DISABLED,buttonPrimary:Ze.BUTTON_PRIMARY,labelInput:Ze.LABEL_INPUT,helperInput:Ze.HELPER_INPUT,placeholderInput:Ze.PLACEHOLDER_INPUT}},text:{default:Be.DEFAULT,white:Ue.DEFAULT},button:{background:Ue.DEFAULT,color:He.DEFAULT,border:He.BASE,hover:Be.T10},actionButton:{color:je.S400,hover:je.T10},neutral:{text:je.S400,emphasis:je.S300,border:je.S200,background:je.S100,white:Ue.DEFAULT,bluish:je.BLUISH},success:{text:He.S400,emphasis:He.S300,border:He.S300,background:He.S100},warning:{text:Ge.S400,emphasis:Ge.S300,border:Ge.S300,background:Ge.S100},error:{text:We.S400,emphasis:We.S300,border:We.S300,background:We.S100},notification:{text:Ve.S300,emphasis:Ve.DEFAULT,background:Ve.S100},card:{background:{default:Ue.DEFAULT,dark:Be.T10}},divider:{background:je.S200}},Pi=Et(Et({},Ti),{brand:{primary:{default:Ve.DEFAULT,emphasis:Ve.S300,background:Ve.S100,contrast:Ue.DEFAULT,illustration:Ve.DEFAULT},action:{default:Ve.DEFAULT,hover:Ve.T10,disabledOpacity:.7}}}),Ri=Et(Et({},Ti),{brand:{primary:{default:He.BASE,emphasis:He.DEFAULT,background:He.G100,contrast:He.CONTRAST,illustration:He.S500,link:Ve.LINK},secondary:{onSurface:je.OUTLINE,action:{hover:He.HOVER_SECONDARY,pressed:He.PRESSED_SECONDARY}},tertiary:{action:{hover:He.HOVER_TERTIARY,pressed:He.PRESSED_TERTIARY}},action:{default:He.S500,hover:He.HOVER,pressed:He.PRESSED,disabledOpacity:.7},line:{base:je.BASE}}});function Li(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}Li('@import url("https://fonts.googleapis.com/css?family=Inter:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hind+Siliguri:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hanken+Grotesk:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");');var Fi,Ii,Ni,zi,Bi,Vi,Hi,ji=function(){return tt.createElement(An,{styles:Sn(Fi||(Fi=_t(["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "],["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "])))})},Wi=tt.createContext(Ri),Ui=function(t){var e=t.theme,n=void 0===e?Ri:e,i=t.children;return tt.createElement(Wi.Provider,{value:n},tt.createElement(ji,null),i)},Gi=function(){var t=tt.useContext(Wi);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Yi="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",$i="\n ".concat(Yi,"\n width: 48px;\n height: 48px;\n"),Xi="\n ".concat(Yi,"\n width: 36px;\n height: 36px;\n"),qi=function(t,e,n,i,o){return"\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: ").concat(o||"none"," !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ").concat(i||t," !important;\n box-shadow: none !important;\n }\n")},Ki=function(t,e){return"\n cursor: not-allowed !important;\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(t," !important;\n color: ").concat(e," !important;\n }\n")},Zi=qi(Ri.brand.action.default,Ri.brand.primary.contrast,Ri.brand.action.hover,Ri.brand.action.pressed),Ji=qi(Ri.color.surface.neutral,Ri.brand.secondary.onSurface,Ri.color.interactive.hoverSurface,Ri.color.interactive.pressedSurface,"1px solid ".concat(Ri.brand.line.base)),Qi=qi("transparent",Ri.brand.secondary.onSurface,Ri.color.interactive.hoverSurface,Ri.color.interactive.pressedSurface,"none"),to={primary:Ki(Ri.color.surface.disabledSurface,Ri.color.surface.disabledOnSurface),secondary:Ki(Ri.color.surface.disabledSurface,Ri.color.surface.disabledOnSurface),tertiary:Ki(Ri.color.surface.disabledSurface,Ri.color.surface.disabledOnSurface)},eo=function(t){var e=t.type,n=void 0===e?"primary":e,i=t.size,o=t.iconColor,a=t.isDisabled,r=void 0!==a&&a,s=t.isFullWidth,l=void 0!==s&&s,c=t.className,d=void 0===c?"":c,h=t.children,u=t.icon,p=kt(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),f=Gi(),g=f.brand,m=f.button,b=f.actionButton,x=f.color,y="\n background-color: ".concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: none;\n\n &:focus {\n background-color: ").concat(g.action.default,";\n border: none;\n }\n \n &:active {\n background-color: ").concat(g.action.pressed,";\n border: none;\n }\n \n &:hover {\n background-color: ").concat(g.action.hover,";\n border: none;\n }\n "),v="\n background-color: ".concat(m.background,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(m.border,";\n\n &:focus {\n background-color: ").concat(m.background,";\n border: 1px solid ").concat(m.border,";\n }\n\n &:hover {\n background-color: ").concat(g.secondary.action.hover,";\n border: 1px solid ").concat(m.border,";\n }\n\n &:active {\n background-color: ").concat(g.secondary.action.pressed,";\n border: 1px solid ").concat(m.border,";\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(Ri.brand.primary.default,";\n }\n "),w="\n background-color: transparent;\n color: ".concat(g.primary.contrast,";\n border: none;\n\n &:focus {\n background-color: transparent;\n border: none;\n }\n\n &:hover {\n background-color: ").concat(g.tertiary.action.hover,";\n border: none;\n }\n\n &:active {\n background-color: ").concat(g.tertiary.action.pressed,";\n border: none;\n }\n "),_="\n cursor: not-allowed;\n background-color: ".concat(x.surface.disabledSurface,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: none;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed;\n background-color: ").concat(x.surface.disabledSurface,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: none;\n }\n "),k="\n cursor: not-allowed;\n background-color: ".concat(m.background,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: 1px solid ").concat(je.S300,";\n \n &:hover, &:focus, &:active {\n cursor: not-allowed;\n background-color: ").concat(m.background,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: 1px solid ").concat(je.BASE,";\n }\n "),E="\n cursor: not-allowed;\n background-color: transparent;\n color: ".concat(x.surface.disabledOnSurface,";\n border: none;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed;\n background-color: transparent;\n color: ").concat(x.surface.disabledOnSurface,";\n border: none;\n }\n "),S="\n color: ".concat(b.color,";\n\n &:focus {\n color: ").concat(b.color,";\n }\n\n &:hover {\n color: ").concat(b.hover,";\n }\n\n &:active {\n color: ").concat(b.color,";\n }\n "),C="\n color: ".concat(g.action.default,";\n\n &:focus {\n color: ").concat(g.action.default,";\n }\n\n &:hover {\n color: ").concat(g.action.hover,";\n }\n\n &:active {\n color: ").concat(g.action.default,";\n }\n "),A=Xn(Ct)(Ii||(Ii=_t(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "])),"small"===i?"36px":"48px",mi,"small"===i?ki:_i,"primary"===n&&y,"secondary"===n&&v,"tertiary"===n&&w,function(){if(!r)return"";switch(n){case"primary":default:return _;case"secondary":return k;case"tertiary":return E}}(),l&&"\n width: 100%;\n ","primary"===o?C:S,g.primary.contrast),M=Xn(Ct)(Ni||(Ni=_t(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),mi,"small"===i?Xi:$i,"primary"===n&&Zi,"secondary"===n&&Ji,"tertiary"===n&&Qi,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(i),r&&function(t){return to[t]||to.primary}(n)),D=r?"straitsx-button-disabled":void 0;return u?tt.createElement(M,Et({className:"".concat(d," ").concat(D),disabled:r},p),u):tt.createElement(A,Et({className:"".concat(d," ").concat(D),disabled:r},p),h)},no=function(t){var e=t.icon,n=t.type,i=t.disabled,o=kt(t,["icon","type","disabled"]),a=Gi(),r=a.brand,s=a.actionButton,l="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(r.action.disabledOpacity,";\n "),c="\n color: ".concat(s.color,";\n\n &:focus {\n color: ").concat(s.color,";\n }\n\n &:hover {\n color: ").concat(s.hover,";\n }\n\n &:active {\n color: ").concat(s.color,";\n }\n "),d="\n color: ".concat(r.action.default,";\n\n &:focus {\n color: ").concat(r.action.default,";\n }\n\n &:hover {\n color: ").concat(r.action.hover,";\n }\n\n &:active {\n color: ").concat(r.action.default,";\n }\n "),h=Xn(eo)(zi||(zi=_t(["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "],["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "])),!0===i&&l,"primary"===n?d:c);return tt.createElement(h,Et({type:"secondary",size:"small"},o),tt.createElement(function(){return tt.cloneElement(e,{width:17,height:17})},null))},io="Hanken Grotesk",oo="Inter";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(Bi||(Bi={})),function(t){t.H1="24px",t.H1_MOBILE="24px",t.H2="18px",t.H2_MOBILE="20px",t.H3="16px",t.H3_MOBILE="18px",t.H4="14px",t.P1="14px",t.P1_MOBILE="16px",t.SMALL="12px",t.SMALL_MOBILE="14px"}(Vi||(Vi={})),function(t){t.H1="29px",t.H1_MOBILE="28px",t.H2="22px",t.H2_MOBILE="23px",t.H3="19px",t.H3_MOBILE="21px",t.H4="17px",t.P1="17px",t.P1_MOBILE="19px",t.SMALL="15px",t.SMALL_MOBILE="17px"}(Hi||(Hi={}));var ro,so,lo,co,ho,uo,po,fo,go,mo,bo,xo,yo,vo,wo,_o,ko,Eo,So,Co,Ao,Mo,Do=function(t){var e,n=t.className,i=t.alignTitle,o=void 0===i?"center":i,a=t.alignBody,r=void 0===a?"left":a,s=t.type,l=void 0===s?"default":s,c=kt(t,["className","alignTitle","alignBody","type"]),d=Gi(),h=d.card,u=d.text,p=d.neutral,f="\n color: ".concat("default"===l?u.default:u.white,";\n\n & > div > div {\n color: ").concat("default"===l?u.default:u.white,";\n }\n\n h1 {\n color: ").concat("default"===l?u.default:u.white,";\n }\n "),g=nn(ro||(ro=_t(["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "],["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "])),p.border,"default"===l?h.background.default:h.background.dark,Bi.BOLD,Vi.P1_MOBILE,Hi.P1_MOBILE,f,f,Bi.BOLD,Vi.P1_MOBILE,Hi.P1_MOBILE,f,Bi.REGULAR,Vi.P1_MOBILE,Hi.P1_MOBILE,f);return tt.createElement(At,Et({className:tn(g,n,(e=o,nn(so||(so=_t(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),e)),function(t){return nn(lo||(lo=_t(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(r))},c))},Oo=Xn.h1(co||(co=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,bi),To=Xn.h2(ho||(ho=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,xi),Po=Xn.h3(uo||(uo=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,yi),Ro=Xn.div(po||(po=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,vi),Lo=Xn.div(fo||(fo=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,Ei),Fo=Xn.div(go||(go=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,wi),Io=Xn.h4(mo||(mo=_t(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),mi,Ei),No={xs:"5px",sm:Ai,md:Mi,lg:Di,xl:Oi},zo=function(t){var e=t.spacing,n=kt(t,["spacing"]),i=Gi().divider,o=Xn.hr(bo||(bo=_t(["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "],["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "])),e?No[e]:0,e?No[e]:0,i.background);return tt.createElement(o,Et({},n))},Bo=function(t){var e=t.children,n=t.title,i=t.footer,o=Gi(),a=o.spacing,r=o.neutral,s=o.layout,l=Xn(Do)(xo||(xo=_t(["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "],["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "])),r.white,r.border,!i&&"display: none;",di,s.desktop),c=Xn.div(yo||(yo=_t(["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "],["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "])),s.mobile,di,a.md),d=Xn.div(vo||(vo=_t(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "])),a.sm),h=Xn.div(wo||(wo=_t(["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "])),a.sm,a.md);return tt.createElement(l,{title:tt.createElement(c,null,tt.createElement(d,null,n),tt.createElement(zo,{spacing:"lg"}),tt.createElement(Ro,null,e))},tt.createElement(h,null,i))},Vo=function(t){var e=t.header,n=t.body,i=t.defaultOpen,o=void 0!==i&&i,a=t.headerHeightDesktop,r=void 0===a?95:a,s=t.headerHeightMobile,l=void 0===s?95:s,c=t.toggleText,d=t.onCloseToggleText,h=void 0===d?c:d,u=t.additionalHeaderItem,p=t.withBoxShadow,f=void 0!==p&&p,g=st(o),m=g[0],b=g[1];return tt.createElement(Ho,{open:m,headerHeightDesktop:r,headerHeightMobile:l,withBoxShadow:f},tt.createElement(jo,{onClick:function(){return b(function(t){return!t})},headerHeightDesktop:r,headerHeightMobile:l},tt.createElement(Wo,null,e,tt.createElement(Yo,null,c&&tt.createElement(Uo,null,m?h:c),tt.createElement(Go,{open:m}))),u&&tt.createElement(tt.Fragment,null,u)),tt.createElement(zo,null),tt.createElement("div",null,n))},Ho=Xn.div(_o||(_o=_t(["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"],["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"])),function(t){return!t.withBoxShadow&&"1px solid #e8e8e8"},function(t){return t.withBoxShadow&&"0px 4px 15px rgba(149, 149, 149, 0.25)"},function(t){return t.headerHeightMobile},di,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(di," {\n max-height: 1200px !important;\n }\n ")}),jo=Xn.div(ko||(ko=_t(["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"],["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"])),function(t){return t.headerHeightMobile},di,function(t){return t.headerHeightDesktop}),Wo=Xn.div(Eo||(Eo=_t(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Uo=Xn(Ro)(So||(So=_t(["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"],["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"])),di),Go=Xn(pt)(Co||(Co=_t(["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"],["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"])),function(t){return t.open&&"rotate(0deg)"}),Yo=Xn.div(Ao||(Ao=_t(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),$o=function(t){var e=t.icon,n=t.type,i=void 0===n?"default":n,o=t.iconWidth,a=void 0===o?18:o,r=kt(t,["icon","type","iconWidth"]),s=Gi(),l=s.brand,c=s.neutral,d=s.success,h=s.warning,u=s.error,p="\n color: ".concat(c.text,";\n background: ").concat(c.background,";\n "),f="\n color: ".concat(l.primary.default,";\n background: ").concat(l.primary.background,";\n "),g="\n color: ".concat(d.border,";\n background: ").concat(d.background,";\n "),m="\n color: ".concat(h.border,";\n background: ").concat(h.background,";\n "),b="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),x=Xn.span(Mo||(Mo=_t(["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "],["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "])),function(){switch(i){case"default":default:return p;case"primary":return f;case"success":return g;case"warning":return m;case"error":return b}}());return tt.createElement(x,Et({className:"badge-icon"},r),tt.createElement(function(){return tt.cloneElement(e,{width:a,height:a})},null))};
|
|
1
|
+
import tt,{createContext as et,forwardRef as nt,createElement as it,Component as ot,Fragment as rt,useState as st,useRef as lt,useEffect as ct,useCallback as dt}from"react";import{ConfigProvider as ht,Alert as ut,Button as pt,Card as ft,Tabs as gt,Dropdown as mt,Select as bt,Tag as xt,Form as yt,Input as vt,Pagination as wt,Radio as _t,DatePicker as kt,Steps as Et,Table as St,Checkbox as Ct,Empty as At,Tooltip as Mt,Spin as Dt,Timeline as Ot}from"antd";import{S as Tt,a as Pt,b as Rt,c as Lt,d as Ft,e as It,f as Nt,g as zt,h as Bt,i as Vt,j as Ht}from"./Time-740bf76c.js";export{k as AccessApiTwoTone,b2 as AccountStatement,c as Add,l as Api,m as ApiDocsTwoTone,n as ArrowDown,o as ArrowLeft,p as ArrowRight,q as ArrowSwitch,b as ArrowUp,r as Authorize,t as Avatar,s as AvatarFilled,w as Bank,u as BankFilled,v as BankFilledBackground,S as Bell,x as BellFilled,y as BulletPointArrow,z as Calendar,A as Camera,C as CardFilled,E as Company,B as CompanyComplexTwoTone,D as CompanyTwoTone,F as Confirmation,j as CopyToClipboard,aX as CreditCard,a as Cross,i as CrossMini,b5 as CustomerKnowledgeAssessment,H as CustomerSupport,G as CustomerSupportTwoTone,I as Delete,J as DepositTwoTone,L as DeveloperTool,K as DeveloperToolTwoTone,aP as DirectMint,N as Document,M as DocumentFilled,O as Dots,P as DownArrow,Q as Download,R as Earn,T as Edit,U as Employee,e as EmptyIcon,aQ as EmptyStateWithPattern,V as Expand,W as ExternalLink,X as Faq,aM as FaqDialog,aI as FaqFilled,aJ as File,Y as Filter,aN as Flag,Z as FlipHorizontal,_ as FlipVertical,ba as GenerateVA,aL as HandShake,$ as HelpGuide,aK as Home,a0 as Idea,a1 as Info,f as InfoFilled,a2 as Invoice,a3 as LockFilled,a4 as LockWithKeyHole,aE as Login,a5 as Logout,aR as LowFee,aT as Mail,aU as MemoCard,aS as MintWallet,a6 as Minus,a7 as Mobile,a8 as More,a9 as NavDashboard,aa as NavHamburger,ab as NavTransactions,ac as Notes,aW as OneToOneXIDR,aV as OneToOneXSGD,ad as Outgoing,af as Passport,ae as PaymentTwoTone,aY as Payout,ag as PenField,ai as Pending,aj as PersonalTwoTone,ah as PiggyBank,an as Reroll,ak as Resend,aG as Response,al as RotateLeft,am as RotateRight,aZ as Scan,d as Search,b3 as SendEmail,ao as SendInvitation,aq as Settings,ap as SettingsFilled,ar as SignUpTwoTone,as as StateSuccessV2,a_ as StraitsXEarnExchange,a$ as StraitsXEarnFee,b0 as StraitsXEarnWallet,b1 as StraitsXEarnWithdrawal,b4 as Swap,at as Switch,au as Thumbnail,av as ThumbnailTwoTone,g as Tick,bb as Time,aH as Tips,aO as Transaction,b9 as TwoFA,aA as Unlink,aw as UpArrow,ax as Upload,ay as UsefulLinks,aF as UsefulLinksTwoTone,az as User,b6 as VerifiedShield,b7 as VerifyIdentity,b8 as VerifyPhone,aC as Wallet,aB as WalletFilled,h as WarningFilled,aD as WithdrawalTwoTone}from"./Time-740bf76c.js";import{_ as jt,a as Wt,b as Ut}from"./_tslib-73c90073.js";import Gt from"react-dom";export{aT as Alfamart,aU as Alfamidi,O as Anz,aN as Arbitrum,aO as Avalanche,P as Bca,Q as Bea,ap as Binance,aq as Bitgo,aQ as Bnbsmart,R as Bni,U as Bnp,V as Boc,W as Bri,X as Bsi,Y as Bss,Z as Cimb,_ as Citi,ar as Coinhako,as as Coinut,z as CrossLogo,at as Crypto,aV as DanPlusDan,b4 as Dana,$ as Danamon,o as DarkStraitsXLogo,q as DarkStraitsXUserInfoBarLogo,a0 as Dbag,a1 as Dbs,ao as Dextf,u as EarnPiggyBank,M as EmptyStraitsX,au as Ethereum,F as FaceScan,a2 as Fazz,a3 as Feb,aM as Finblox,av as Fireblocks,b5 as GoPay,aK as Gpn,a4 as Hana,aJ as Hedera,a5 as Hlb,aw as Hodlnaut,a6 as Hsbc,a7 as Icbc,a8 as Icici,b1 as IdFlag,y as IdrLogo,aW as Indomaret,S as InfoLogo,v as InterestCompoundedDaily,aY as Jcb,a9 as Jpmc,b7 as Jumio,aX as Lawson,ax as LedgerVault,L as LevelDown,p as LightStraitsXLogo,b6 as LinkAja,ay as Liquid,ad as Mandiri,aZ as Mastercard,aa as Mbb,ab as Miz,ac as Mufg,a as MyInfoLogo,w as NoFees,x as NoLockInPeriod,N as NotesBell,b2 as OVO,ae as Ocbc,az as OnchainCustodian,af as Permata,aA as Polygon,ag as Posb,aB as QcpCapital,aL as Qris,ah as Rbs,ai as Rhb,aR as Ripple,aj as Scb,b as SendLogo,m as SgdLogo,b3 as ShopeePay,ak as Sifl,al as Smbc,aS as Solana,aC as Sparrow,B as StateError,C as StateSuccess,ba as StraitsXBusinessAccountDarkLogo,bb as StraitsXBusinessAccountLightLogo,b8 as StraitsXLogo,s as StraitsXMyInfo,bc as StraitsXPersonalAccountDarkLogo,bd as StraitsXPersonalAccountLightLogo,b9 as StraitsXSandboxLogo,r as StraitsxSandboxLogo,T as Target,a$ as ThreeDSecure,n as ThreeDotsLogo,c as TickLogo,aD as TokenizeXchange,aP as Tron,am as Trwi,aE as Unagii,aF as Uniswap,an as Uob,b0 as UsFlag,l as UsdLogo,h as UsdcLogo,i as UsdpLogo,j as UsdtLogo,E as VecDeposits,G as VecDesktop,H as VecEmpty,I as VecEmptyPlain,t as VecEmptyPlainGreen,J as VecMobile,K as VecRecipients,D as VecThumbnailDoc,a_ as Visa,A as WalletLogo,d as XfersLogo,e as XfersSandboxLogo,g as XidrLogo,f as XsgdLogo,k as XusdLogo,aG as Zillet,aH as Zilliqa,aI as Zilswap}from"./StraitsXPersonalAccountLightLogo-88865b98.js";function Yt(t){var e=t.children;return tt.createElement(ht,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},e)}var $t=function(){function t(t){this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(i);try{var a=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,a?0:o.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+t+'"',e)}}else i.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){return t.parentNode.removeChild(t)}),this.tags=[],this.ctr=0},t}();function Xt(t){function e(t,i,l,c,u){for(var p,f,g,m,v,_=0,k=0,E=0,S=0,C=0,P=0,L=g=p=0,I=0,N=0,z=0,B=0,V=l.length,H=V-1,j="",W="",U="",G="";I<V;){if(f=l.charCodeAt(I),I===H&&0!==k+S+E+_&&(0!==k&&(f=47===k?10:47),S=E=_=0,V++,H++),0===k+S+E+_){if(I===H&&(0<N&&(j=j.replace(h,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(I)}f=59}switch(f){case 123:for(p=(j=j.trim()).charCodeAt(0),g=1,B=++I;I<V;){switch(f=l.charCodeAt(I)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(I+1)){case 42:case 47:t:{for(L=I+1;L<H;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&I+2!==L){I=L+1;break t}break;case 10:if(47===f){I=L+1;break t}}I=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;I++<H&&l.charCodeAt(I)!==f;);}if(0===g)break;I++}if(g=l.substring(B,I),0===p&&(p=(j=j.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<N&&(j=j.replace(h,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:N=i;break;default:N=T}if(B=(g=e(i,N,g,f,u+1)).length,0<R&&(v=s(3,g,N=n(T,j,z),i,M,A,B,f,u,c),j=N.join(""),void 0!==v&&0===(B=(g=v.trim()).length)&&(f=0,g="")),0<B)switch(f){case 115:j=j.replace(w,r);case 100:case 109:case 45:g=j+"{"+g+"}";break;case 107:g=(j=j.replace(b,"$1 $2"))+"{"+g+"}",g=1===O||2===O&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=j+g,112===c&&(W+=g,g="")}else g=""}else g=e(i,n(i,j,z),g,c,u+1);U+=g,g=z=N=L=p=0,j="",f=l.charCodeAt(++I);break;case 125:case 59:if(1<(B=(j=(0<N?j.replace(h,""):j).trim()).length))switch(0===L&&(p=j.charCodeAt(0),45===p||96<p&&123>p)&&(B=(j=j.replace(" ",":")).length),0<R&&void 0!==(v=s(1,j,i,t,M,A,W.length,c,u,c))&&0===(B=(j=v.trim()).length)&&(j="\0\0"),p=j.charCodeAt(0),f=j.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){G+=j+l.charAt(I);break}default:58!==j.charCodeAt(B-1)&&(W+=o(j,p,f,j.charCodeAt(2)))}z=N=L=p=0,j="",f=l.charCodeAt(++I)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<j.length&&(N=1,j+="\0"),0<R*F&&s(0,j,i,t,M,A,W.length,c,u,c),A=1,M++;break;case 59:case 125:if(0===k+S+E+_){A++;break}default:switch(A++,m=l.charAt(I),f){case 9:case 32:if(0===S+_+k)switch(C){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===S+k+_&&(N=z=1,m="\f"+m);break;case 108:if(0===S+k+_+D&&0<L)switch(I-L){case 2:112===C&&58===l.charCodeAt(I-3)&&(D=C);case 8:111===P&&(D=P)}break;case 58:0===S+k+_&&(L=I);break;case 44:0===k+E+S+_&&(N=1,m+="\r");break;case 34:case 39:0===k&&(S=S===f?0:0===S?f:S);break;case 91:0===S+k+E&&_++;break;case 93:0===S+k+E&&_--;break;case 41:0===S+k+_&&E--;break;case 40:if(0===S+k+_){if(0===p)if(2*C+3*P==533);else p=1;E++}break;case 64:0===k+E+S+_+L+g&&(g=1);break;case 42:case 47:if(!(0<S+_+E))switch(k){case 0:switch(2*f+3*l.charCodeAt(I+1)){case 235:k=47;break;case 220:B=I,k=42}break;case 42:47===f&&42===C&&B+2!==I&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,I+1)),m="",k=0)}}0===k&&(j+=m)}P=C,C=f,I++}if(0<(B=W.length)){if(N=i,0<R&&(void 0!==(v=s(2,W,N,t,M,A,B,c,u,c))&&0===(W=v).length))return G+W+U;if(W=N.join(",")+"{"+W+"}",0!==O*D){switch(2!==O||a(W,2)||(D=0),D){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(x,"::-webkit-input-$1")+W.replace(x,"::-moz-$1")+W.replace(x,":-ms-input-$1")+W}D=0}}return G+W+U}function n(t,e,n){var o=e.trim().split(g);e=o;var a=o.length,r=t.length;switch(r){case 0:case 1:var s=0;for(t=0===r?"":t[0]+" ";s<a;++s)e[s]=i(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<a;++s)for(var c=0;c<r;++c)e[l++]=i(t[c]+" ",o[s],n).trim()}return e}function i(t,e,n){var i=e.charCodeAt(0);switch(33>i&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(m,"$1"+t.trim());case 58:return t.trim()+e.replace(m,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(m,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,i){var r=t+";",s=2*e+3*n+4*i;if(944===s){t=r.indexOf(":",9)+1;var l=r.substring(t,r.length-1).trim();return l=r.substring(0,t).trim()+l+";",1===O||2===O&&a(l,1)?"-webkit-"+l+l:l}if(0===O||2===O&&!a(r,1))return r;switch(s){case 1015:return 97===r.charCodeAt(10)?"-webkit-"+r+r:r;case 951:return 116===r.charCodeAt(3)?"-webkit-"+r+r:r;case 963:return 110===r.charCodeAt(5)?"-webkit-"+r+r:r;case 1009:if(100!==r.charCodeAt(4))break;case 969:case 942:return"-webkit-"+r+r;case 978:return"-webkit-"+r+"-moz-"+r+r;case 1019:case 983:return"-webkit-"+r+"-moz-"+r+"-ms-"+r+r;case 883:if(45===r.charCodeAt(8))return"-webkit-"+r+r;if(0<r.indexOf("image-set(",11))return r.replace(C,"$1-webkit-$2")+r;break;case 932:if(45===r.charCodeAt(4))switch(r.charCodeAt(5)){case 103:return"-webkit-box-"+r.replace("-grow","")+"-webkit-"+r+"-ms-"+r.replace("grow","positive")+r;case 115:return"-webkit-"+r+"-ms-"+r.replace("shrink","negative")+r;case 98:return"-webkit-"+r+"-ms-"+r.replace("basis","preferred-size")+r}return"-webkit-"+r+"-ms-"+r+r;case 964:return"-webkit-"+r+"-ms-flex-"+r+r;case 1023:if(99!==r.charCodeAt(8))break;return"-webkit-box-pack"+(l=r.substring(r.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+r+"-ms-flex-pack"+l+r;case 1005:return p.test(r)?r.replace(u,":-webkit-")+r.replace(u,":-moz-")+r:r;case 1e3:switch(e=(l=r.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=r.replace(v,"tb");break;case 232:l=r.replace(v,"tb-rl");break;case 220:l=r.replace(v,"lr");break;default:return r}return"-webkit-"+r+"-ms-"+l+r;case 1017:if(-1===r.indexOf("sticky",9))break;case 975:switch(e=(r=t).length-10,s=(l=(33===r.charCodeAt(e)?r.substring(0,e):r).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:r=r.replace(l,"-webkit-"+l)+";"+r;break;case 207:case 102:r=r.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+r.replace(l,"-webkit-"+l)+";"+r.replace(l,"-ms-"+l+"box")+";"+r}return r+";";case 938:if(45===r.charCodeAt(5))switch(r.charCodeAt(6)){case 105:return l=r.replace("-items",""),"-webkit-"+r+"-webkit-box-"+l+"-ms-flex-"+l+r;case 115:return"-webkit-"+r+"-ms-flex-item-"+r.replace(k,"")+r;default:return"-webkit-"+r+"-ms-flex-line-pack"+r.replace("align-content","").replace(k,"")+r}break;case 973:case 989:if(45!==r.charCodeAt(3)||122===r.charCodeAt(4))break;case 931:case 953:if(!0===S.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,n,i).replace(":fill-available",":stretch"):r.replace(l,"-webkit-"+l)+r.replace(l,"-moz-"+l.replace("fill-",""))+r;break;case 962:if(r="-webkit-"+r+(102===r.charCodeAt(5)?"-ms-"+r:"")+r,211===n+i&&105===r.charCodeAt(13)&&0<r.indexOf("transform",10))return r.substring(0,r.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+r}return r}function a(t,e){var n=t.indexOf(1===e?":":"{"),i=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),L(2!==e?i:i.replace(E,"$1"),n,e)}function r(t,e){var n=o(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(_," or ($1)").substring(4):"("+e+")"}function s(t,e,n,i,o,a,r,s,l,d){for(var h,u=0,p=e;u<R;++u)switch(h=P[u].call(c,t,p,n,i,o,a,r,s,l,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==e)return p}function l(t){return void 0!==(t=t.prefix)&&(L=null,t?"function"!=typeof t?O=1:(O=2,L=t):O=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<R){var o=s(-1,n,i,i,M,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=e(T,i,n,0,0);return 0<R&&(void 0!==(o=s(-2,a,i,i,M,A,a.length,0,0,0))&&(a=o)),D=0,A=M=1,a}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,k=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,A=1,M=1,D=0,O=1,T=[],P=[],R=0,L=null,F=0;return c.use=function t(e){switch(e){case void 0:case null:R=P.length=0;break;default:if("function"==typeof e)P[R++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else F=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var qt=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var i=t(n);return e.set(n,i),i}},Kt="/*|*/",Zt=Kt+"}";function Jt(t){t&&Qt.current.insert(t+"}")}var Qt={current:null},te=function(t,e,n,i,o,a,r,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return Qt.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+Kt;break;case 3:switch(s){case 102:case 112:return Qt.current.insert(n[0]+e),"";default:return e+(0===c?Kt:"")}case-2:e.split(Zt).forEach(Jt)}},ee=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},ne="undefined"!=typeof document,ie={},oe=ne?void 0:qt(function(){var t=qt(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),re=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new Xt(e);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,a,r={};if(ne){o=t.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach(function(t){r[t]=!0}),t.parentNode!==o&&o.appendChild(t)})}if(ne)i.use(t.stylisPlugins)(te),a=function(t,e,n,o){var a=e.name;if(Qt.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var r=e.map;Qt.current={insert:function(t){n.insert(t+r)}}}i(t,e.styles),o&&(h.inserted[a]=!0)};else{i.use(ee);var l=ie;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=oe(t.stylisPlugins||ie)(t.prefix));a=function(t,e,n,o){var a=e.name,r=function(t,e){var n=e.name;return void 0===l[n]&&(l[n]=i(t,e.styles)),l[n]}(t,e);return void 0===h.compat?(o&&(h.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?r+e.map:r):o?void(h.inserted[a]=r):r}}if("production"!==process.env.NODE_ENV){var c=/\/\*/g,d=/\*\//g;i.use(function(t,e){if(-1===t){for(;c.test(e);){if(d.lastIndex=c.lastIndex,!d.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=d.lastIndex}c.lastIndex=0}}),i.use(function(t,e,n){if(-1===t){var i=e.match(/(:first|:nth|:nth-last)-child/g);i&&!0!==h.compat&&i.forEach(function(t){var n=new RegExp(t+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(e);t&&!n&&console.error('The pseudo class "'+t+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+t.split("-child")[0]+'-of-type".')})}})}var h={key:n,sheet:new $t({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:r,registered:{},insert:a};return h};function se(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var le,ce={exports:{}},de={};var he,ue,pe={};var fe=se((ue||(ue=1,"production"===process.env.NODE_ENV?ce.exports=(le||(le=1,Object.defineProperty(de,"__esModule",{value:!0}),de.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),de):ce.exports=(he||(he=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),pe)),ce.exports));function ge(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var me="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",be="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",xe=/[A-Z]|^ms/g,ye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ve=function(t){return 45===t.charCodeAt(1)},we=function(t){return null!=t&&"boolean"!=typeof t},_e=ge(function(t){return ve(t)?t:t.replace(xe,"-$&").toLowerCase()}),ke=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(ye,function(t,e,n){return Re={name:e,styles:n,next:Re},e})}return 1===fe[t]||ve(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var Ee=/(attr|calc|counters?|url)\(/,Se=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Ce=ke,Ae=/^-ms-/,Me=/-(.)/g,De={};ke=function(t,e){"content"===t&&("string"!=typeof e||-1===Se.indexOf(e)&&!Ee.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+e+"\"'`");var n=Ce(t,e);return""===n||ve(t)||-1===t.indexOf("-")||void 0!==De[t]||(De[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Ae,"ms-").replace(Me,function(t,e){return e.toUpperCase()})+"?")),n}}var Oe=!0;function Te(t,e,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Re={name:n.name,styles:n.styles,next:Re},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Re={name:o.name,styles:o.styles,next:Re},o=o.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=Te(t,e,n[o],!1);else for(var a in n){var r=n[a];if("object"!=typeof r)null!=e&&void 0!==e[r]?i+=a+"{"+e[r]+"}":we(r)&&(i+=_e(a)+":"+ke(a,r)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(r)||"string"!=typeof r[0]||null!=e&&void 0!==e[r[0]]){var s=Te(t,e,r,!1);switch(a){case"animation":case"animationName":i+=_e(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(be),i+=a+"{"+s+"}"}}else for(var l=0;l<r.length;l++)we(r[l])&&(i+=_e(a)+":"+ke(a,r[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var r=Re,s=n(t);return Re=r,Te(t,e,s,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=n.replace(ye,function(t,e,n){var i="animation"+l.length;return l.push("const "+i+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+i+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==e)return n;var d=e[n];return"production"!==process.env.NODE_ENV&&i&&Oe&&void 0!==d&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),Oe=!1),void 0===d||i?n:d}var Pe,Re,Le=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(Pe=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Fe=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";Re=void 0;var a,r=t[0];null==r||void 0===r.raw?(i=!1,o+=Te(n,e,r,!1)):("production"!==process.env.NODE_ENV&&void 0===r[0]&&console.error(me),o+=r[0]);for(var s=1;s<t.length;s++)o+=Te(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===r[s]&&console.error(me),o+=r[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Pe,function(t){return a=t,""})),Le.lastIndex=0;for(var l,c="";null!==(l=Le.exec(o));)c+="-"+l[1];var d=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:o,map:a,next:Re,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:Re}},Ie="undefined"!=typeof document;function Ne(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var ze=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===Ie&&void 0!==t.compat)&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var o="",a=e;do{var r=t.insert("."+i,a,t.sheet,!0);Ie||void 0===r||(o+=r),a=a.next}while(void 0!==a);if(!Ie&&0!==o.length)return o}};function Be(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function Ve(t,e,n){var i=[],o=Ne(t,i,n);return i.length<2?n:o+e(i)}var He,je,We,Ue,Ge,Ye,$e,Xe,qe,Ke,Ze,Je,Qe,tn=function t(e){for(var n="",i=0;i<e.length;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var r in a="",o)o[r]&&r&&(a&&(a+=" "),a+=r);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},en=function(t){var e=re(t);e.sheet.speedy=function(t){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Fe(n,e.registered,void 0);return ze(e,o,!1),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return Ve(e.registered,n,tn(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Fe(n,e.registered);Be(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Fe(n,e.registered),a="animation-"+o.name;return Be(e,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Ne.bind(null,e.registered),merge:Ve.bind(null,e.registered,n)}}(),nn=en.cx,on=en.injectGlobal,rn=en.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(He||(He={})),function(t){t.DEFAULT="#2F8DEE",t.T10="#5FA8F2",t.T20="#8EC2F6",t.T40="#ECF5FD",t.S400="#1863B0",t.S300="#3585E6",t.S100="#EBF5FF",t.LINK="#187D97"}(je||(je={})),function(t){t.S500="#00D37E",t.S400="#189C08",t.S300="#43CC32",t.S100="#F0FFF3",t.DEFAULT="#00A965",t.CONTRAST="#002B2A",t.G100="#F0FFF9",t.HOVER="#00B86D",t.HOVER_SECONDARY="#E5EDEC",t.HOVER_TERTIARY="rgba(5, 73, 72, 0.1)",t.PRESSED="#009E5A",t.PRESSED_SECONDARY="#E6ECEC",t.PRESSED_TERTIARY="rgba(5, 73, 72, 0.15)",t.BASE="#054948"}(We||(We={})),function(t){t.S500="#777777",t.S400="#959595",t.T10="#ADADAD",t.S300="#CACACA",t.S200="#E8E8E8",t.S100="#F6F7F9",t.S50="#FFFFFF",t.BLUISH="#D3D7DE",t.BASE="#D8D8D8",t.OUTLINE="#505454"}(Ue||(Ue={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(Ge||(Ge={})),function(t){t.DEFAULT="#FFFFFF"}(Ye||(Ye={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}($e||($e={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(Xe||(Xe={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.DISABLED_SURFACE="#F2F4F5",t.DISABLED_ON_SURFACE="#9D9E9F",t.DARK="#051513",t.SUBDUE_INFO="#EEF6FF",t.SUBDUE_POSITIVE="#F0F9F4",t.SUBDUE_WARNING="#FFFAEA",t.SUBDUE_CRITICAL="#FFF1F1"}(qe||(qe={})),function(t){t.PRIMARY="#00D37E",t.PRIMARY_2="#054948",t.PRIMARY_3="#002B2A",t.ON_CONTAINER="#FFFFFF",t.ON_NEUTRAL="#002B2A",t.ON_NEUTRAL_SECONDARY="#505454",t.LINE="#D8D8D8",t.LINK="#187D97",t.OVERLAY="rgb(5, 21, 19, 0.7)"}(Ke||(Ke={})),function(t){t.HOVER_PRIMARY="#008F56",t.FOCUS_DEFAULT="#42FFB4",t.PRESSED_PRIMARY="#007546",t.SELECTED="#F0FFF9",t.HOVER_SURFACE="#ECECEC",t.FOCUS_SURFACE="#E3E3E3",t.PRESSED_SURFACE="#E3E3E3",t.HOVER_CRITICAL="#B92B22",t.PRESSED_CRITICAL="#A92920"}(Ze||(Ze={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(Je||(Je={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(Qe||(Qe={}));var sn,ln={display:{FONT_SIZE:{lg:"64px",md:"45px",sm:"36px"},LINE_HEIGHT:{lg:"78px",md:"54px",sm:"44px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.03em",md:"-0.03em",sm:"-0.03em"}},headline:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"48px",md:"42px",sm:"36px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"0em",md:"0em",sm:"0em"}},title:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"42px",md:"36px",sm:"30px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.02em",md:"-0.02em",sm:"-0.02em"}},label:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}},body:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}}},cn={normal:"overflow: auto; text-overflow: unset;",wrap:"overflow: auto; text-wrap: wrap; word-break: break-word;",hidden:"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"},dn=function(t,e){var n,i,o,a;return rn(sn||(sn=jt(["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "],["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "])),null!==(n=e.display)&&void 0!==n?n:"block",null!==(i=e.align)&&void 0!==i?i:"inherit",ln[t].FONT_SIZE[e.size],ln[t].LINE_HEIGHT[e.size],ln[t].FONT_WEIGHT[e.size],ln[t].LETTER_SPACING[e.size],null!==(o=e.color)&&void 0!==o?o:Ke.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",cn[null!==(a=e.overflow)&&void 0!==a?a:"normal"])};var hn={Display:function(t){var e=t.as,n=void 0===e?"h1":e,i=t.children,o=t.className,a=Wt(t,["as","children","className"]);return tt.createElement(n,Ut({className:nn(dn("display",t),o)},a),i)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,i=t.children,o=t.className,a=Wt(t,["as","children","className"]);return tt.createElement(n,Ut({className:nn(dn("headline",t),o)},a),i)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,i=t.children,o=t.className,a=Wt(t,["as","children","className"]);return tt.createElement(n,Ut({className:nn(dn("title",t),o)},a),i)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,i=t.children,o=t.className,a=Wt(t,["as","children","className"]);return tt.createElement(n,Ut({className:nn(dn("label",t),o)},a),i)},Body:function(t){var e=t.as,n=void 0===e?"span":e,i=t.children,o=t.className,a=Wt(t,["as","children","className"]);return tt.createElement(n,Ut({className:nn(dn("body",t),o)},a),i)}};function un(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fn=ge(function(t){return pn.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function gn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var mn="undefined"!=typeof document,bn=Object.prototype.hasOwnProperty,xn=et("undefined"!=typeof HTMLElement?re():null),yn=et({});xn.Provider;var vn=function(t){return nt(function(e,n){return it(xn.Consumer,null,function(i){return t(e,i,n)})})};if(!mn){var wn=function(t){function e(e,n,i){var o;return(o=t.call(this,e,n,i)||this).state={value:re()},o}return gn(e,t),e.prototype.render=function(){return it(xn.Provider,this.state,this.props.children(this.state.value))},e}(ot);vn=function(t){return function(e){return it(xn.Consumer,null,function(n){return null===n?it(wn,null,function(n){return t(e,n)}):t(e,n)})}}}var _n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",En=function(){return null},Sn=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[_n],r=[o],s="";"string"==typeof e.className?s=Ne(t.registered,r,e.className):null!=e.className&&(s=e.className+" ");var l=Fe(r);if("production"!==process.env.NODE_ENV&&-1===l.name.indexOf("-")){var c=e[kn];c&&(l=Fe([l,"label:"+c+";"]))}var d=ze(t,l,"string"==typeof a);s+=t.key+"-"+l.name;var h={};for(var u in e)!bn.call(e,u)||"css"===u||u===_n||"production"!==process.env.NODE_ENV&&u===kn||(h[u]=e[u]);h.ref=i,h.className=s;var p=it(a,h),f=it(En,null);if(!mn&&void 0!==d){for(var g,m=l.name,b=l.next;void 0!==b;)m+=" "+b.name,b=b.next;f=it("style",((g={})["data-emotion-"+t.key]=m,g.dangerouslySetInnerHTML={__html:d},g.nonce=t.sheet.nonce,g))}return it(rt,null,f,p)},Cn=vn(function(t,e,n){return"function"==typeof t.css?it(yn.Consumer,null,function(i){return Sn(e,t,i,n)}):Sn(e,t,null,n)});function An(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Fe(e)}"production"!==process.env.NODE_ENV&&(Cn.displayName="EmotionCssPropInternal");var Mn=!1,Dn=vn(function(t,e){"production"===process.env.NODE_ENV||Mn||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Mn=!0);var n=t.styles;if("function"==typeof n)return it(yn.Consumer,null,function(t){var i=Fe([n(t)]);return it(On,{serialized:i,cache:e})});var i=Fe([n]);return it(On,{serialized:i,cache:e})}),On=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}gn(e,t);var n=e.prototype;return n.componentDidMount=function(){this.sheet=new $t({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var t=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==t&&this.sheet.tags.push(t),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&ze(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var t=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=t,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){if(!mn){for(var t=this.props.serialized,e=t.name,n=t.styles,i=t.next;void 0!==i;)e+=" "+i.name,n+=i.styles,i=i.next;var o,a=!0===this.props.cache.compat,r=this.props.cache.insert("",{name:e,styles:n},this.sheet,a);if(!a)return it("style",((o={})["data-emotion-"+this.props.cache.key]=e,o.dangerouslySetInnerHTML={__html:r},o.nonce=this.props.cache.sheet.nonce,o))}return null},e}(ot),Tn=function(){var t=An.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Pn=function t(e){for(var n=e.length,i=0,o="";i<n;i++){var a=e[i];if(null!=a){var r=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))r=t(a);else for(var s in r="",a)a[s]&&s&&(r&&(r+=" "),r+=s);break;default:r=a}r&&(o&&(o+=" "),o+=r)}}return o};var Rn=function(){return null};vn(function(t,e){return it(yn.Consumer,null,function(n){var i="",o="",a=!1,r=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=Fe(n,e.registered);if(mn)ze(e,s,!1);else{var l=ze(e,s,!1);void 0!==l&&(i+=l)}return mn||(o+=" "+s.name),e.key+"-"+s.name},s={css:r,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(t,e,n){var i=[],o=Ne(t,i,n);return i.length<2?n:o+e(i)}(e.registered,r,Pn(n))},theme:n},l=t.children(s);a=!0;var c,d=it(Rn,null);mn||0===i.length||(d=it("style",((c={})["data-emotion-"+e.key]=o.substring(1),c.dangerouslySetInnerHTML={__html:i},c.nonce=e.sheet.nonce,c)));return it(rt,null,d,l)})});var Ln=fn,Fn=function(t){return"theme"!==t&&"innerRef"!==t},In=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Ln:Fn};function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var zn,Bn,Vn,Hn,jn,Wn,Un,Gn,Yn,$n="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Xn="undefined"!=typeof document,qn=function(){return null},Kn=function t(e,n){if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,o,a;void 0!==n&&(i=n.label,a=n.target,o=e.__emotion_forwardProp&&n.shouldForwardProp?function(t){return e.__emotion_forwardProp(t)&&n.shouldForwardProp(t)}:n.shouldForwardProp);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e;"function"!=typeof o&&r&&(o=e.__emotion_forwardProp);var l=o||In(s),c=!l("as");return function(){var d=arguments,h=r&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error($n),h.push(d[0][0]);for(var u=d.length,p=1;p<u;p++)"production"!==process.env.NODE_ENV&&void 0===d[0][p]&&console.error($n),h.push(d[p],d[0][p])}var f=vn(function(t,e,n){return it(yn.Consumer,null,function(r){var d=c&&t.as||s,u="",p=[],f=t;if(null==t.theme){for(var g in f={},t)f[g]=t[g];f.theme=r}"string"==typeof t.className?u=Ne(e.registered,p,t.className):null!=t.className&&(u=t.className+" ");var m=Fe(h.concat(p),e.registered,f),b=ze(e,m,"string"==typeof d);u+=e.key+"-"+m.name,void 0!==a&&(u+=" "+a);var x=c&&void 0===o?In(d):l,y={};for(var v in t)c&&"as"===v||x(v)&&(y[v]=t[v]);y.className=u,y.ref=n||t.innerRef,"production"!==process.env.NODE_ENV&&t.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===i?"":" in the usage of `"+i+"`"));var w=it(d,y),_=it(qn,null);if(!Xn&&void 0!==b){for(var k,E=m.name,S=m.next;void 0!==S;)E+=" "+S.name,S=S.next;_=it("style",((k={})["data-emotion-"+e.key]=E,k.dangerouslySetInnerHTML={__html:b},k.nonce=e.sheet.nonce,k))}return it(rt,null,_,w)})});return f.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=e.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=h,f.__emotion_forwardProp=o,Object.defineProperty(f,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),f.withComponent=function(e,i){return t(e,void 0!==i?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nn(Object(n),!0).forEach(function(e){un(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n||{},{},i):n).apply(void 0,h)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(t){Kn[t]=Kn(t)}),function(t){t.B400="#0C45E1",t.B300="#1863B0",t.B200="#C3DCF6",t.B100="#EEF6FF"}(zn||(zn={})),function(t){t.G400="#257C58",t.G300="#43CC32",t.G200="#C8FAC0",t.G100="#F0F9F4"}(Bn||(Bn={})),function(t){t.R400="#DF1312",t.R300="#E22726",t.R200="#FFC9C9",t.R100="#FFF1F1"}(Vn||(Vn={})),function(t){t.Y400="#FC9A07",t.Y300="#FC9A07",t.Y200="#FFEB7E",t.Y100="#FFFAEA"}(Hn||(Hn={})),function(t){t.BLACK="#1B2736",t.G500="#505454",t.G400="#959595",t.G300="#D8D8D8",t.G200="#E8E8E8",t.G100="#F0F0F0",t.WHITE="#FFFFFF"}(jn||(jn={})),function(t){t.PRIMARY_BLUE="#1863B0",t.PRIMARY_BLACK="#1B2736",t.PRIMARY_WHITE="#FFFFFF",t.SECONDARY_GREEN="#43CC32",t.SECONDARY_RED="#E22726",t.SECONDARY_YELLOW="#FC9A07"}(Wn||(Wn={})),function(t){t.SUCCESS="#43CC32",t.INFO="#1863B0",t.WARNING="#FC9A07",t.ERROR="#E22726",t.NEUTRAL="#D8D8D8"}(Un||(Un={})),function(t){t.SUCCESS="#257C58",t.INFO="#0C45E1",t.WARNING="#FC9A07",t.ERROR="#DF1312",t.NEUTRAL="#959595"}(Gn||(Gn={})),function(t){t.SUCCESS="#F0F9F4",t.INFO="#EEF6FF",t.WARNING="#FFFAEA",t.ERROR="#FFF1F1",t.NEUTRAL="#F0F0F0"}(Yn||(Yn={}));var Zn,Jn,Qn,ti,ei=function(t,e,n){return"\n border: 1px solid ".concat(t," !important;\n background-color: ").concat(n," !important;\n \n .ant-alert-icon {\n color: ").concat(e," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(e," !important;\n }\n")},ni=ei(Bn.G400,Bn.G400,Bn.G100),ii=ei(Hn.Y400,Hn.Y400,Hn.Y100),oi=ei(Vn.R400,Vn.R400,Vn.R100),ri="\n border: none !important;\n background-color: ".concat(We.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(Ye.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(Ye.DEFAULT," !important;\n }\n"),si=Kn(ut)(Zn||(Zn=jt(["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"],["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"])),"\n width: 328px !important;\n min-height: 52px !important;\n border-radius: 8px !important;\n padding: 8px 12px !important;\n \n .ant-alert-icon {\n align-self: flex-start !important;\n margin-top: 0 !important;\n }\n",function(t){return"success"===t.type&&ni},function(t){return"warning"===t.type&&ii},function(t){return"error"===t.type&&oi},function(t){return"info"===t.type&&ri}),li=Kn.div(Jn||(Jn=jt(["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"]))),ci=Kn.div(Qn||(Qn=jt(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),di=function(t){var e,n=t.type,i=t.message,o=t.closable,a=t.icon,r=t.showIcon,s=t.onClose,l=t.title,c=st(!0),d=c[0],h=c[1];return d?tt.createElement(si,{type:n||"warning",message:tt.createElement(function(){var t="info"===n?Ye.DEFAULT:He.DEFAULT;return tt.createElement(li,null,l&&tt.createElement(hn.Label,{color:t,size:"md"},l),tt.createElement(hn.Body,{color:t,size:"md"},i))},null),closable:o,icon:(e=a?tt.cloneElement(a,{width:20,height:20}):tt.createElement(Tt,{width:20,height:20}),tt.createElement(ci,null,e)),showIcon:r,onClose:function(){h(!1),s&&s()},closeIcon:tt.createElement(function(){return tt.createElement(Pt,{width:14,height:14})},null)}):null},hi="@media (min-width: 1200px)",ui="@media (min-width: 992px)",pi="@media (min-width: 768px)",fi="@media (min-width: 576px)",gi="Hanken Grotesk",mi="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(ti||(ti={}));var bi,xi="\n color: ".concat(He.DEFAULT,";\n font-family: ").concat(gi,", ").concat("Inter",";\n margin: 0;\n"),yi="\n font-weight: ".concat(ti.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(mi,";\n\n ").concat(ui," {\n font-size: 24px;\n line-height: 29px;\n }\n"),vi="\n font-weight: ".concat(ti.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(mi,";\n\n ").concat(ui," {\n font-size: 18px;\n line-height: 22px;\n }\n"),wi="\n font-weight: ".concat(ti.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(mi,";\n\n ").concat(ui," {\n font-size: 16px;\n line-height: 19px;\n }\n"),_i="\n font-weight: ".concat(ti.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(gi,";\n\n ").concat(ui," {\n font-size: 14px;\n line-height: 17px;\n }\n"),ki="\n font-weight: ".concat(ti.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(gi,";\n\n ").concat(ui," {\n line-height: 15px;\n }\n"),Ei="\n font-weight: ".concat(ti.BOLD,";\n font-size: 16px;\n font-family: ").concat(mi,";\n"),Si="\n font-weight: ".concat(ti.BOLD,";\n font-size: 14px;\n font-family: ").concat(mi,";\n"),Ci="\n font-weight: ".concat(ti.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(mi,";\n\n ").concat(ui," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Ai="\n font-weight: ".concat(ti.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(gi,";\n"),Mi="\n font-weight: ".concat(ti.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(mi,";\n");!function(t){t.RAISED="0px 2px 4px 0px rgba(51, 51, 51, 0.16)",t.ACTION="0px 4px 8px 0px rgba(51, 51, 51, 0.16)",t.OVERLAY="0px 8px 16px 0px rgba(51, 51, 51, 0.16)",t.REVERSE_RAISED="0px -1px 4px 0px rgba(51, 51, 51, 0.08)"}(bi||(bi={}));var Di="10px",Oi="15px",Ti="20px",Pi="30px",Ri={spacing:{xs:"5px",sm:Di,md:Oi,lg:Ti,xl:Pi},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:bi.RAISED,action:bi.ACTION,overlay:bi.OVERLAY,reverseRaised:bi.REVERSE_RAISED},color:{background:{neutral:Xe.NEUTRAL,secondaryNeutral:Xe.SECONDARY_NEUTRAL,primary:Xe.PRIMARY,secondary:Xe.SECONDARY},surface:{neutral:qe.NEUTRAL,secondaryNeutral:qe.SECONDARY_NEUTRAL,disabledSurface:qe.DISABLED_SURFACE,disabledOnSurface:qe.DISABLED_ON_SURFACE,dark:qe.DARK,SubdueInfo:qe.SUBDUE_INFO,subduePositive:qe.SUBDUE_POSITIVE,subdueCritical:qe.SUBDUE_CRITICAL,subdueWarning:qe.SUBDUE_WARNING},base:{primary:Ke.PRIMARY,primary2:Ke.PRIMARY_2,primary3:Ke.PRIMARY_3,onContainer:Ke.ON_CONTAINER,onNeutral:Ke.ON_NEUTRAL,onNeutralSecondary:Ke.ON_NEUTRAL_SECONDARY,line:Ke.LINE,link:Ke.LINK,overlay:Ke.OVERLAY},interactive:{hoverPrimary:Ze.HOVER_PRIMARY,focusDefault:Ze.FOCUS_DEFAULT,pressedPrimary:Ze.PRESSED_PRIMARY,selected:Ze.SELECTED,hoverSurface:Ze.HOVER_SURFACE,focusSurface:Ze.FOCUS_SURFACE,pressedSurface:Ze.PRESSED_SURFACE,hoverCritical:Ze.HOVER_CRITICAL,pressedCritical:Ze.PRESSED_CRITICAL},status:{info:Je.INFO,positive:Je.POSITIVE,warning:Je.WARNING,critical:Je.CRITICAL},component:{buttonDisabled:Qe.BUTTON_DISABLED,buttonPrimary:Qe.BUTTON_PRIMARY,labelInput:Qe.LABEL_INPUT,helperInput:Qe.HELPER_INPUT,placeholderInput:Qe.PLACEHOLDER_INPUT}},text:{default:He.DEFAULT,white:Ye.DEFAULT},button:{background:Ye.DEFAULT,color:We.DEFAULT,border:We.BASE,hover:He.T10},actionButton:{color:Ue.S400,hover:Ue.T10},neutral:{text:Ue.S400,emphasis:Ue.S300,border:Ue.S200,background:Ue.S100,white:Ye.DEFAULT,bluish:Ue.BLUISH},success:{text:We.S400,emphasis:We.S300,border:We.S300,background:We.S100},warning:{text:$e.S400,emphasis:$e.S300,border:$e.S300,background:$e.S100},error:{text:Ge.S400,emphasis:Ge.S300,border:Ge.S300,background:Ge.S100},notification:{text:je.S300,emphasis:je.DEFAULT,background:je.S100},card:{background:{default:Ye.DEFAULT,dark:He.T10}},divider:{background:Ue.S200}},Li=Ut(Ut({},Ri),{brand:{primary:{default:je.DEFAULT,emphasis:je.S300,background:je.S100,contrast:Ye.DEFAULT,illustration:je.DEFAULT},action:{default:je.DEFAULT,hover:je.T10,disabledOpacity:.7}}}),Fi=Ut(Ut({},Ri),{brand:{primary:{default:We.BASE,emphasis:We.DEFAULT,background:We.G100,contrast:We.CONTRAST,illustration:We.S500,link:je.LINK},secondary:{onSurface:Ue.OUTLINE,action:{hover:We.HOVER_SECONDARY,pressed:We.PRESSED_SECONDARY}},tertiary:{action:{hover:We.HOVER_TERTIARY,pressed:We.PRESSED_TERTIARY}},action:{default:We.S500,hover:We.HOVER,pressed:We.PRESSED,disabledOpacity:.7},line:{base:Ue.BASE}}});function Ii(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}Ii('@import url("https://fonts.googleapis.com/css?family=Inter:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hind+Siliguri:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hanken+Grotesk:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");');var Ni,zi,Bi,Vi,Hi,ji,Wi,Ui=function(){return tt.createElement(Dn,{styles:An(Ni||(Ni=jt(["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "],["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "])))})},Gi=tt.createContext(Fi),Yi=function(t){var e=t.theme,n=void 0===e?Fi:e,i=t.children;return tt.createElement(Gi.Provider,{value:n},tt.createElement(Ui,null),i)},$i=function(){var t=tt.useContext(Gi);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Xi="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",qi="\n ".concat(Xi,"\n width: 48px;\n height: 48px;\n"),Ki="\n ".concat(Xi,"\n width: 36px;\n height: 36px;\n"),Zi=function(t,e,n,i,o){return"\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: ").concat(o||"none"," !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ").concat(i||t," !important;\n box-shadow: none !important;\n }\n")},Ji=function(t,e){return"\n cursor: not-allowed !important;\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(t," !important;\n color: ").concat(e," !important;\n }\n")},Qi=Zi(Fi.brand.action.default,Fi.brand.primary.contrast,Fi.brand.action.hover,Fi.brand.action.pressed),to=Zi(Fi.color.surface.neutral,Fi.brand.secondary.onSurface,Fi.color.interactive.hoverSurface,Fi.color.interactive.pressedSurface,"1px solid ".concat(Fi.brand.line.base)),eo=Zi("transparent",Fi.brand.secondary.onSurface,Fi.color.interactive.hoverSurface,Fi.color.interactive.pressedSurface,"none"),no={primary:Ji(Fi.color.surface.disabledSurface,Fi.color.surface.disabledOnSurface),secondary:Ji(Fi.color.surface.disabledSurface,Fi.color.surface.disabledOnSurface),tertiary:Ji(Fi.color.surface.disabledSurface,Fi.color.surface.disabledOnSurface)},io=function(t){var e=t.type,n=void 0===e?"primary":e,i=t.size,o=t.iconColor,a=t.isDisabled,r=void 0!==a&&a,s=t.isFullWidth,l=void 0!==s&&s,c=t.className,d=void 0===c?"":c,h=t.children,u=t.icon,p=Wt(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),f=$i(),g=f.brand,m=f.button,b=f.actionButton,x=f.color,y="\n background-color: ".concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: none;\n\n &:focus {\n background-color: ").concat(g.action.default,";\n border: none;\n }\n \n &:active {\n background-color: ").concat(g.action.pressed,";\n border: none;\n }\n \n &:hover {\n background-color: ").concat(g.action.hover,";\n border: none;\n }\n "),v="\n background-color: ".concat(m.background,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(m.border,";\n\n &:focus {\n background-color: ").concat(m.background,";\n border: 1px solid ").concat(m.border,";\n }\n\n &:hover {\n background-color: ").concat(g.secondary.action.hover,";\n border: 1px solid ").concat(m.border,";\n }\n\n &:active {\n background-color: ").concat(g.secondary.action.pressed,";\n border: 1px solid ").concat(m.border,";\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(Fi.brand.primary.default,";\n }\n "),w="\n background-color: transparent;\n color: ".concat(g.primary.contrast,";\n border: none;\n\n &:focus {\n background-color: transparent;\n border: none;\n }\n\n &:hover {\n background-color: ").concat(g.tertiary.action.hover,";\n border: none;\n }\n\n &:active {\n background-color: ").concat(g.tertiary.action.pressed,";\n border: none;\n }\n "),_="\n cursor: not-allowed;\n background-color: ".concat(x.surface.disabledSurface,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: none;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed;\n background-color: ").concat(x.surface.disabledSurface,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: none;\n }\n "),k="\n cursor: not-allowed;\n background-color: ".concat(m.background,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: 1px solid ").concat(Ue.S300,";\n \n &:hover, &:focus, &:active {\n cursor: not-allowed;\n background-color: ").concat(m.background,";\n color: ").concat(x.surface.disabledOnSurface,";\n border: 1px solid ").concat(Ue.BASE,";\n }\n "),E="\n cursor: not-allowed;\n background-color: transparent;\n color: ".concat(x.surface.disabledOnSurface,";\n border: none;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed;\n background-color: transparent;\n color: ").concat(x.surface.disabledOnSurface,";\n border: none;\n }\n "),S="\n color: ".concat(b.color,";\n\n &:focus {\n color: ").concat(b.color,";\n }\n\n &:hover {\n color: ").concat(b.hover,";\n }\n\n &:active {\n color: ").concat(b.color,";\n }\n "),C="\n color: ".concat(g.action.default,";\n\n &:focus {\n color: ").concat(g.action.default,";\n }\n\n &:hover {\n color: ").concat(g.action.hover,";\n }\n\n &:active {\n color: ").concat(g.action.default,";\n }\n "),A=Kn(pt)(zi||(zi=jt(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "])),"small"===i?"36px":"48px",xi,"small"===i?Si:Ei,"primary"===n&&y,"secondary"===n&&v,"tertiary"===n&&w,function(){if(!r)return"";switch(n){case"primary":default:return _;case"secondary":return k;case"tertiary":return E}}(),l&&"\n width: 100%;\n ","primary"===o?C:S,g.primary.contrast),M=Kn(pt)(Bi||(Bi=jt(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),xi,"small"===i?Ki:qi,"primary"===n&&Qi,"secondary"===n&&to,"tertiary"===n&&eo,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(i),r&&function(t){return no[t]||no.primary}(n)),D=r?"straitsx-button-disabled":void 0;return u?tt.createElement(M,Ut({className:"".concat(d," ").concat(D),disabled:r},p),u):tt.createElement(A,Ut({className:"".concat(d," ").concat(D),disabled:r},p),h)},oo=function(t){var e=t.icon,n=t.type,i=t.disabled,o=Wt(t,["icon","type","disabled"]),a=$i(),r=a.brand,s=a.actionButton,l="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(r.action.disabledOpacity,";\n "),c="\n color: ".concat(s.color,";\n\n &:focus {\n color: ").concat(s.color,";\n }\n\n &:hover {\n color: ").concat(s.hover,";\n }\n\n &:active {\n color: ").concat(s.color,";\n }\n "),d="\n color: ".concat(r.action.default,";\n\n &:focus {\n color: ").concat(r.action.default,";\n }\n\n &:hover {\n color: ").concat(r.action.hover,";\n }\n\n &:active {\n color: ").concat(r.action.default,";\n }\n "),h=Kn(io)(Vi||(Vi=jt(["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "],["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "])),!0===i&&l,"primary"===n?d:c);return tt.createElement(h,Ut({type:"secondary",size:"small"},o),tt.createElement(function(){return tt.cloneElement(e,{width:17,height:17})},null))},ro="Hanken Grotesk",so="Inter";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(Hi||(Hi={})),function(t){t.H1="24px",t.H1_MOBILE="24px",t.H2="18px",t.H2_MOBILE="20px",t.H3="16px",t.H3_MOBILE="18px",t.H4="14px",t.P1="14px",t.P1_MOBILE="16px",t.SMALL="12px",t.SMALL_MOBILE="14px"}(ji||(ji={})),function(t){t.H1="29px",t.H1_MOBILE="28px",t.H2="22px",t.H2_MOBILE="23px",t.H3="19px",t.H3_MOBILE="21px",t.H4="17px",t.P1="17px",t.P1_MOBILE="19px",t.SMALL="15px",t.SMALL_MOBILE="17px"}(Wi||(Wi={}));var lo,co,ho,uo,po,fo,go,mo,bo,xo,yo,vo,wo,_o,ko,Eo,So,Co,Ao,Mo,Do,Oo,To=function(t){var e,n=t.className,i=t.alignTitle,o=void 0===i?"center":i,a=t.alignBody,r=void 0===a?"left":a,s=t.type,l=void 0===s?"default":s,c=Wt(t,["className","alignTitle","alignBody","type"]),d=$i(),h=d.card,u=d.text,p=d.neutral,f="\n color: ".concat("default"===l?u.default:u.white,";\n\n & > div > div {\n color: ").concat("default"===l?u.default:u.white,";\n }\n\n h1 {\n color: ").concat("default"===l?u.default:u.white,";\n }\n "),g=rn(lo||(lo=jt(["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "],["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "])),p.border,"default"===l?h.background.default:h.background.dark,Hi.BOLD,ji.P1_MOBILE,Wi.P1_MOBILE,f,f,Hi.BOLD,ji.P1_MOBILE,Wi.P1_MOBILE,f,Hi.REGULAR,ji.P1_MOBILE,Wi.P1_MOBILE,f);return tt.createElement(ft,Ut({className:nn(g,n,(e=o,rn(co||(co=jt(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),e)),function(t){return rn(ho||(ho=jt(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(r))},c))},Po=Kn.h1(uo||(uo=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,yi),Ro=Kn.h2(po||(po=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,vi),Lo=Kn.h3(fo||(fo=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,wi),Fo=Kn.div(go||(go=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,_i),Io=Kn.div(mo||(mo=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,Ci),No=Kn.div(bo||(bo=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,ki),zo=Kn.h4(xo||(xo=jt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),xi,Ci),Bo={xs:"5px",sm:Di,md:Oi,lg:Ti,xl:Pi},Vo=function(t){var e=t.spacing,n=Wt(t,["spacing"]),i=$i().divider,o=Kn.hr(yo||(yo=jt(["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "],["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "])),e?Bo[e]:0,e?Bo[e]:0,i.background);return tt.createElement(o,Ut({},n))},Ho=function(t){var e=t.children,n=t.title,i=t.footer,o=$i(),a=o.spacing,r=o.neutral,s=o.layout,l=Kn(To)(vo||(vo=jt(["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "],["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "])),r.white,r.border,!i&&"display: none;",ui,s.desktop),c=Kn.div(wo||(wo=jt(["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "],["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "])),s.mobile,ui,a.md),d=Kn.div(_o||(_o=jt(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "])),a.sm),h=Kn.div(ko||(ko=jt(["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "])),a.sm,a.md);return tt.createElement(l,{title:tt.createElement(c,null,tt.createElement(d,null,n),tt.createElement(Vo,{spacing:"lg"}),tt.createElement(Fo,null,e))},tt.createElement(h,null,i))},jo=function(t){var e=t.header,n=t.body,i=t.defaultOpen,o=void 0!==i&&i,a=t.headerHeightDesktop,r=void 0===a?95:a,s=t.headerHeightMobile,l=void 0===s?95:s,c=t.toggleText,d=t.onCloseToggleText,h=void 0===d?c:d,u=t.additionalHeaderItem,p=t.withBoxShadow,f=void 0!==p&&p,g=st(o),m=g[0],b=g[1];return tt.createElement(Wo,{open:m,headerHeightDesktop:r,headerHeightMobile:l,withBoxShadow:f},tt.createElement(Uo,{onClick:function(){return b(function(t){return!t})},headerHeightDesktop:r,headerHeightMobile:l},tt.createElement(Go,null,e,tt.createElement(Xo,null,c&&tt.createElement(Yo,null,m?h:c),tt.createElement($o,{open:m}))),u&&tt.createElement(tt.Fragment,null,u)),tt.createElement(Vo,null),tt.createElement("div",null,n))},Wo=Kn.div(Eo||(Eo=jt(["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"],["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"])),function(t){return!t.withBoxShadow&&"1px solid #e8e8e8"},function(t){return t.withBoxShadow&&"0px 4px 15px rgba(149, 149, 149, 0.25)"},function(t){return t.headerHeightMobile},ui,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(ui," {\n max-height: 1200px !important;\n }\n ")}),Uo=Kn.div(So||(So=jt(["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"],["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"])),function(t){return t.headerHeightMobile},ui,function(t){return t.headerHeightDesktop}),Go=Kn.div(Co||(Co=jt(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Yo=Kn(Fo)(Ao||(Ao=jt(["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"],["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"])),ui),$o=Kn(Rt)(Mo||(Mo=jt(["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"],["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"])),function(t){return t.open&&"rotate(0deg)"}),Xo=Kn.div(Do||(Do=jt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),qo=function(t){var e=t.icon,n=t.type,i=void 0===n?"default":n,o=t.iconWidth,a=void 0===o?18:o,r=Wt(t,["icon","type","iconWidth"]),s=$i(),l=s.brand,c=s.neutral,d=s.success,h=s.warning,u=s.error,p="\n color: ".concat(c.text,";\n background: ").concat(c.background,";\n "),f="\n color: ".concat(l.primary.default,";\n background: ").concat(l.primary.background,";\n "),g="\n color: ".concat(d.border,";\n background: ").concat(d.background,";\n "),m="\n color: ".concat(h.border,";\n background: ").concat(h.background,";\n "),b="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),x=Kn.span(Oo||(Oo=jt(["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "],["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "])),function(){switch(i){case"default":default:return p;case"primary":return f;case"success":return g;case"warning":return m;case"error":return b}}());return tt.createElement(x,Ut({className:"badge-icon"},r),tt.createElement(function(){return tt.cloneElement(e,{width:a,height:a})},null))};
|
|
2
2
|
/*!
|
|
3
3
|
* Chart.js v3.9.1
|
|
4
4
|
* https://www.chartjs.org
|
|
5
5
|
* (c) 2022 Chart.js Contributors
|
|
6
6
|
* Released under the MIT License
|
|
7
7
|
*/
|
|
8
|
-
function
|
|
8
|
+
function Ko(){}const Zo=function(){let t=0;return function(){return t++}}();function Jo(t){return null==t}function Qo(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function ta(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ea=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function na(t,e){return ea(t)?t:e}function ia(t,e){return void 0===t?e:t}const oa=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ra(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function sa(t,e,n,i){let o,a,r;if(Qo(t))if(a=t.length,i)for(o=a-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<a;o++)e.call(n,t[o],o);else if(ta(t))for(r=Object.keys(t),a=r.length,o=0;o<a;o++)e.call(n,t[r[o]],r[o])}function la(t,e){let n,i,o,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],a=e[n],o.datasetIndex!==a.datasetIndex||o.index!==a.index)return!1;return!0}function ca(t){if(Qo(t))return t.map(ca);if(ta(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=ca(t[n[o]]);return e}return t}function da(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ha(t,e,n,i){if(!da(t))return;const o=e[t],a=n[t];ta(o)&&ta(a)?ua(o,a,i):e[t]=ca(a)}function ua(t,e,n){const i=Qo(e)?e:[e],o=i.length;if(!ta(t))return t;const a=(n=n||{}).merger||ha;for(let r=0;r<o;++r){if(!ta(e=i[r]))continue;const o=Object.keys(e);for(let i=0,r=o.length;i<r;++i)a(o[i],t,e,n)}return t}function pa(t,e){return ua(t,e,{merger:fa})}function fa(t,e,n){if(!da(t))return;const i=e[t],o=n[t];ta(i)&&ta(o)?pa(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ca(o))}const ga={"":t=>t,x:t=>t.x,y:t=>t.y};function ma(t,e){const n=ga[e]||(ga[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function xa(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ya=t=>void 0!==t,va=t=>"function"==typeof t,wa=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const _a=Math.PI,ka=2*_a,Ea=ka+_a,Sa=Number.POSITIVE_INFINITY,Ca=_a/180,Aa=_a/2,Ma=_a/4,Da=2*_a/3,Oa=Math.log10,Ta=Math.sign;function Pa(t){const e=Math.round(t);t=La(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Oa(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Ra(t){return!isNaN(parseFloat(t))&&isFinite(t)}function La(t,e,n){return Math.abs(t-e)<n}function Fa(t,e,n){let i,o,a;for(i=0,o=t.length;i<o;i++)a=t[i][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Ia(t){return t*(_a/180)}function Na(t){return t*(180/_a)}function za(t){if(!ea(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ba(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*_a&&(a+=ka),{angle:a,distance:o}}function Va(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ha(t,e){return(t-e+Ea)%ka-_a}function ja(t){return(t%ka+ka)%ka}function Wa(t,e,n,i){const o=ja(t),a=ja(e),r=ja(n),s=ja(a-o),l=ja(r-o),c=ja(o-a),d=ja(o-r);return o===a||o===r||i&&a===r||s>l&&c<d}function Ua(t,e,n){return Math.max(e,Math.min(n,t))}function Ga(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Ya(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,a=0;for(;o-a>1;)i=a+o>>1,n(i)?a=i:o=i;return{lo:a,hi:o}}const $a=(t,e,n,i)=>Ya(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),Xa=(t,e,n)=>Ya(t,n,i=>t[i][e]>=n);const qa=["push","pop","shift","splice","unshift"];function Ka(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(qa.forEach(e=>{delete t[e]}),delete t._chartjs)}function Za(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const Ja="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Qa(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,a=[];return function(...n){a=i(n),o||(o=!0,Ja.call(window,()=>{o=!1,t.apply(e,a)}))}}const tr=t=>"start"===t?"left":"end"===t?"right":"center",er=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function nr(t,e,n){const i=e.length;let o=0,a=i;if(t._sorted){const{iScale:r,_parsed:s}=t,l=r.axis,{min:c,max:d,minDefined:h,maxDefined:u}=r.getUserBounds();h&&(o=Ua(Math.min($a(s,r.axis,c).lo,n?i:$a(e,l,r.getPixelForValue(c)).lo),0,i-1)),a=u?Ua(Math.max($a(s,r.axis,d,!0).hi+1,n?0:$a(e,l,r.getPixelForValue(d),!0).hi+1),o,i)-o:i-o}return{start:o,count:a}}function ir(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const a=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),a}const or=t=>0===t||1===t,rr=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ka/n),sr=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ka/n)+1,lr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Aa),easeOutSine:t=>Math.sin(t*Aa),easeInOutSine:t=>-.5*(Math.cos(_a*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>or(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>or(t)?t:rr(t,.075,.3),easeOutElastic:t=>or(t)?t:sr(t,.075,.3),easeInOutElastic(t){const e=.1125;return or(t)?t:t<.5?.5*rr(2*t,e,.45):.5+.5*sr(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-lr.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*lr.easeInBounce(2*t):.5*lr.easeOutBounce(2*t-1)+.5};
|
|
9
9
|
/*!
|
|
10
10
|
* @kurkle/color v0.2.1
|
|
11
11
|
* https://github.com/kurkle/color#readme
|
|
12
12
|
* (c) 2022 Jukka Kurkela
|
|
13
13
|
* Released under the MIT License
|
|
14
14
|
*/
|
|
15
|
-
function sr(t){return t+.5|0}const lr=(t,e,n)=>Math.max(Math.min(t,n),e);function cr(t){return lr(sr(2.55*t),0,255)}function dr(t){return lr(sr(255*t),0,255)}function hr(t){return lr(sr(t/2.55)/100,0,1)}function ur(t){return lr(sr(100*t),0,100)}const pr={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},fr=[..."0123456789ABCDEF"],gr=t=>fr[15&t],mr=t=>fr[(240&t)>>4]+fr[15&t],br=t=>(240&t)>>4==(15&t);function xr(t){var e=(t=>br(t.r)&&br(t.g)&&br(t.b)&&br(t.a))(t)?gr:mr;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const yr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vr(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function wr(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function _r(t,e,n){const i=vr(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function kr(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),a=Math.min(e,n,i),r=(o+a)/2;let s,l,c;return o!==a&&(c=o-a,l=r>.5?c/(2-o-a):c/(o+a),s=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),s=60*s+.5),[0|s,l||0,r]}function Er(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(dr)}function Sr(t,e,n){return Er(vr,t,e,n)}function Cr(t){return(t%360+360)%360}function Ar(t){const e=yr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?cr(+e[5]):dr(+e[5]));const o=Cr(+e[2]),a=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Er(_r,t,e,n)}(o,a,r):"hsv"===e[1]?function(t,e,n){return Er(wr,t,e,n)}(o,a,r):Sr(o,a,r),{r:n[0],g:n[1],b:n[2],a:i}}const Mr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Dr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Or;function Tr(t){Or||(Or=function(){const t={},e=Object.keys(Dr),n=Object.keys(Mr);let i,o,a,r,s;for(i=0;i<e.length;i++){for(r=s=e[i],o=0;o<n.length;o++)a=n[o],s=s.replace(a,Mr[a]);a=parseInt(Dr[r],16),t[s]=[a>>16&255,a>>8&255,255&a]}return t}(),Or.transparent=[0,0,0,0]);const e=Or[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Pr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Rr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Lr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Fr(t,e,n){if(t){let i=kr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Sr(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Ir(t,e){return t?Object.assign(e||{},t):t}function Nr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=dr(t[3]))):(e=Ir(t,{r:0,g:0,b:0,a:1})).a=dr(e.a),e}function zr(t){return"r"===t.charAt(0)?function(t){const e=Pr.exec(t);let n,i,o,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?cr(t):lr(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?cr(n):lr(n,0,255)),i=255&(e[4]?cr(i):lr(i,0,255)),o=255&(e[6]?cr(o):lr(o,0,255)),{r:n,g:i,b:o,a:a}}}(t):Ar(t)}class Br{constructor(t){if(t instanceof Br)return t;const e=typeof t;let n;var i,o,a;"object"===e?n=Nr(t):"string"===e&&(a=(i=t).length,"#"===i[0]&&(4===a||5===a?o={r:255&17*pr[i[1]],g:255&17*pr[i[2]],b:255&17*pr[i[3]],a:5===a?17*pr[i[4]]:255}:7!==a&&9!==a||(o={r:pr[i[1]]<<4|pr[i[2]],g:pr[i[3]]<<4|pr[i[4]],b:pr[i[5]]<<4|pr[i[6]],a:9===a?pr[i[7]]<<4|pr[i[8]]:255})),n=o||Tr(t)||zr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Ir(this._rgb);return t&&(t.a=hr(t.a)),t}set rgb(t){this._rgb=Nr(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${hr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?xr(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=kr(t),n=e[0],i=ur(e[1]),o=ur(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${hr(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const a=e===o?.5:e,r=2*a-1,s=n.a-i.a,l=((r*s===-1?r:(r+s)/(1+r*s))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Lr(hr(t.r)),o=Lr(hr(t.g)),a=Lr(hr(t.b));return{r:dr(Rr(i+n*(Lr(hr(e.r))-i))),g:dr(Rr(o+n*(Lr(hr(e.g))-o))),b:dr(Rr(a+n*(Lr(hr(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Br(this.rgb)}alpha(t){return this._rgb.a=dr(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=sr(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Fr(this._rgb,2,t),this}darken(t){return Fr(this._rgb,2,-t),this}saturate(t){return Fr(this._rgb,1,t),this}desaturate(t){return Fr(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=kr(t);n[0]=Cr(n[0]+e),n=Sr(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Vr(t){return new Br(t)}function Hr(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function jr(t){return Hr(t)?t:Vr(t)}function Wr(t){return Hr(t)?t:Vr(t).saturate(.5).darken(.1).hexString()}const Ur=Object.create(null),Gr=Object.create(null);function Yr(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function $r(t,e,n){return"string"==typeof e?da(Yr(t,e),n):da(Yr(t,""),e)}var Xr=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.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=(t,e)=>Wr(e.backgroundColor),this.hoverBorderColor=(t,e)=>Wr(e.borderColor),this.hoverColor=(t,e)=>Wr(e.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(t)}set(t,e){return $r(this,t,e)}get(t){return Yr(this,t)}describe(t,e){return $r(Gr,t,e)}override(t,e){return $r(Ur,t,e)}route(t,e,n,i){const o=Yr(this,t),a=Yr(this,n),r="_"+e;Object.defineProperties(o,{[r]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=a[i];return Jo(t)?Object.assign({},e,t):ea(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function qr(t,e,n,i,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,n.push(o)),a>i&&(i=a),i}function Kr(t,e,n,i){let o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},a=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const s=n.length;let l,c,d,h,u;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==Zo(h))r=qr(t,o,a,r,h);else if(Zo(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||Zo(u)||(r=qr(t,o,a,r,u));t.restore();const p=a.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[a[l]];a.splice(0,p)}return r}function Zr(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Jr(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Qr(t,e,n,i){ts(t,e,n,i,null)}function ts(t,e,n,i,o){let a,r,s,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let f=(u||0)*Ea;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,i),t.rotate(f),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,wa):t.arc(n,i,p,0,wa),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Aa,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Aa,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,r=Math.cos(f+Ca)*l,s=Math.sin(f+Ca)*l,t.arc(n-r,i-s,c,f-va,f-Sa),t.arc(n+s,i-r,c,f-Sa,f),t.arc(n+r,i+s,c,f,f+Sa),t.arc(n-s,i+r,c,f+Sa,f+va),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}f+=Ca;case"rectRot":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+s,i-r),t.lineTo(n+r,i+s),t.lineTo(n-s,i+r),t.closePath();break;case"crossRot":f+=Ca;case"cross":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r);break;case"star":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r),f+=Ca,r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r);break;case"line":r=o?o/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(f)*p,i+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function es(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function ns(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function is(t){t.restore()}function os(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function rs(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function ss(t,e,n,i,o,a={}){const r=Zo(e)?e:[e],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Ko(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),l=0;l<r.length;++l)c=r[l],s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),Ko(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,i,a.maxWidth)),t.fillText(c,n,i,a.maxWidth),ls(t,n,i,c,a),i+=o.lineHeight;t.restore()}function ls(t,e,n,i,o){if(o.strikethrough||o.underline){const a=t.measureText(i),r=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(r,d),t.lineTo(s,d),t.stroke()}}function cs(t,e){const{x:n,y:i,w:o,h:a,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-Sa,va,!0),t.lineTo(n,i+a-r.bottomLeft),t.arc(n+r.bottomLeft,i+a-r.bottomLeft,r.bottomLeft,va,Sa,!0),t.lineTo(n+o-r.bottomRight,i+a),t.arc(n+o-r.bottomRight,i+a-r.bottomRight,r.bottomRight,Sa,0,!0),t.lineTo(n+o,i+r.topRight),t.arc(n+o-r.topRight,i+r.topRight,r.topRight,0,-Sa,!0),t.lineTo(n+r.topLeft,i)}const ds=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),hs=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function us(t,e){const n=(""+t).match(ds);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const ps=t=>+t||0;function fs(t,e){const n={},i=Jo(e),o=i?Object.keys(e):e,a=Jo(t)?i?n=>ea(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=ps(a(t));return n}function gs(t){return fs(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ms(t){return fs(t,["topLeft","topRight","bottomLeft","bottomRight"])}function bs(t){const e=gs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function xs(t,e){t=t||{},e=e||Xr.font;let n=ea(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=ea(t.style,e.style);i&&!(""+i).match(hs)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:ea(t.family,e.family),lineHeight:us(ea(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ea(t.weight,e.weight),string:""};return o.string=function(t){return!t||Ko(t.size)||Ko(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function ys(t,e,n,i){let o,a,r,s=!0;for(o=0,a=t.length;o<a;++o)if(r=t[o],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),s=!1),void 0!==n&&Zo(r)&&(r=r[n%r.length],s=!1),void 0!==r))return i&&!s&&(i.cacheable=!1),r}function vs(t,e){return Object.assign(Object.create(t),e)}function ws(t,e=[""],n=t,i,o=()=>t[0]){ma(i)||(i=Ps("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>ws([o,...t],e,n,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Cs(n,i,()=>function(t,e,n,i){let o;for(const a of e)if(o=Ps(Es(a,t),n),ma(o))return Ss(t,o)?Os(n,i,t,o):o}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Rs(t).includes(e),ownKeys:t=>Rs(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function _s(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ks(t,i),setContext:e=>_s(t,e,n,i),override:o=>_s(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Cs(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:r}=t;let s=i[e];xa(s)&&r.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:r,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(a,r||i),s.delete(t),Ss(t,e)&&(e=Os(o._scopes,o,t,e));return e}(e,s,t,n));Zo(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:r,_descriptors:s}=n;if(ma(a.index)&&i(t))e=e[a.index%e.length];else if(Jo(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Os(i,o,t,l);e.push(_s(n,a,r&&r[t],s))}}return e}(e,s,t,r.isIndexable));Ss(e,s)&&(s=_s(s,o,a&&a[e],r));return s}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function ks(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:xa(n)?n:()=>n,isIndexable:xa(i)?i:()=>i}}const Es=(t,e)=>t?t+ga(e):e,Ss=(t,e)=>Jo(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Cs(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function As(t,e,n){return xa(t)?t(e,n):t}const Ms=(t,e)=>!0===t?e:"string"==typeof t?fa(e,t):void 0;function Ds(t,e,n,i,o){for(const a of e){const e=Ms(n,a);if(e){t.add(e);const a=As(e._fallback,n,o);if(ma(a)&&a!==n&&a!==i)return a}else if(!1===e&&ma(i)&&n!==i)return null}return!1}function Os(t,e,n,i){const o=e._rootScopes,a=As(e._fallback,n,i),r=[...t,...o],s=new Set;s.add(i);let l=Ts(s,r,n,a||n,i);return null!==l&&((!ma(a)||a===n||(l=Ts(s,r,a,l,i),null!==l))&&ws(Array.from(s),[""],o,a,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Zo(o)&&Jo(n))return n;return o}(e,n,i)))}function Ts(t,e,n,i,o){for(;n;)n=Ds(t,e,n,i,o);return n}function Ps(t,e){for(const n of e){if(!n)continue;const e=n[t];if(ma(e))return e}}function Rs(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Ls(t,e,n,i){const{iScale:o}=t,{key:a="r"}=this._parsing,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={r:o.parse(fa(d,a),c)};return r}const Fs=Number.EPSILON||1e-14,Is=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ns=t=>"x"===t?"y":"x";function zs(t,e,n,i){const o=t.skip?e:t,a=e,r=n.skip?e:n,s=za(a,o),l=za(r,a);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:a.x-h*(r.x-o.x),y:a.y-h*(r.y-o.y)},next:{x:a.x+u*(r.x-o.x),y:a.y+u*(r.y-o.y)}}}function Bs(t,e="x"){const n=Ns(e),i=t.length,o=Array(i).fill(0),a=Array(i);let r,s,l,c=Is(t,0);for(r=0;r<i;++r)if(s=l,l=c,c=Is(t,r+1),l){if(c){const t=c[e]-l[e];o[r]=0!==t?(c[n]-l[n])/t:0}a[r]=s?c?Da(o[r-1])!==Da(o[r])?0:(o[r-1]+o[r])/2:o[r-1]:o[r]}!function(t,e,n){const i=t.length;let o,a,r,s,l,c=Is(t,0);for(let d=0;d<i-1;++d)l=c,c=Is(t,d+1),l&&c&&(Pa(e[d],0,Fs)?n[d]=n[d+1]=0:(o=n[d]/e[d],a=n[d+1]/e[d],s=Math.pow(o,2)+Math.pow(a,2),s<=9||(r=3/Math.sqrt(s),n[d]=o*r*e[d],n[d+1]=a*r*e[d])))}(t,o,a),function(t,e,n="x"){const i=Ns(n),o=t.length;let a,r,s,l=Is(t,0);for(let c=0;c<o;++c){if(r=s,s=l,l=Is(t,c+1),!s)continue;const o=s[n],d=s[i];r&&(a=(o-r[n])/3,s[`cp1${n}`]=o-a,s[`cp1${i}`]=d-a*e[c]),l&&(a=(l[n]-o)/3,s[`cp2${n}`]=o+a,s[`cp2${i}`]=d+a*e[c])}}(t,a,e)}function Vs(t,e,n){return Math.max(Math.min(t,n),e)}function Hs(t,e,n,i,o){let a,r,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Bs(t,o);else{let n=i?t[t.length-1]:t[0];for(a=0,r=t.length;a<r;++a)s=t[a],l=zs(n,s,t[Math.min(a+1,r-(i?0:1))%r],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,o,a,r,s=es(t[0],e);for(n=0,i=t.length;n<i;++n)r=a,a=s,s=n<i-1&&es(t[n+1],e),a&&(o=t[n],r&&(o.cp1x=Vs(o.cp1x,e.left,e.right),o.cp1y=Vs(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Vs(o.cp2x,e.left,e.right),o.cp2y=Vs(o.cp2y,e.top,e.bottom)))}(t,n)}function js(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ws(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Us(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Gs=t=>window.getComputedStyle(t,null);const Ys=["top","right","bottom","left"];function $s(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=Ys[o];i[a]=parseFloat(t[e+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Xs(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Gs(n),a="border-box"===o.boxSizing,r=$s(o,"padding"),s=$s(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:a}=i;let r,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,a,t.target))r=o,s=a;else{const t=e.getBoundingClientRect();r=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:r,y:s,box:l}}(t,n),h=r.left+(d&&s.left),u=r.top+(d&&s.top);let{width:p,height:f}=e;return a&&(p-=r.width+s.width,f-=r.height+s.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/f*n.height/i)}}const qs=t=>Math.round(10*t)/10;function Ks(t,e,n,i){const o=Gs(t),a=$s(o,"margin"),r=Us(o.maxWidth,t,"clientWidth")||ka,s=Us(o.maxHeight,t,"clientHeight")||ka,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const a=Ws(t);if(a){const t=a.getBoundingClientRect(),r=Gs(a),s=$s(r,"border","width"),l=$s(r,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Us(r.maxWidth,a,"clientWidth"),o=Us(r.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||ka,maxHeight:o||ka}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=$s(o,"border","width"),e=$s(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,i?Math.floor(c/i):d-a.height),c=qs(Math.min(c,r,l.maxWidth)),d=qs(Math.min(d,s,l.maxHeight)),c&&!d&&(d=qs(c/2)),{width:c,height:d}}function Zs(t,e,n){const i=e||1,o=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=o/i,t.width=a/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==o||r.width!==a)&&(t.currentDevicePixelRatio=i,r.height=o,r.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Js=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Qs(t,e){const n=function(t,e){return Gs(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function tl(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function el(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function nl(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},r=tl(t,o,n),s=tl(o,a,n),l=tl(a,e,n),c=tl(r,s,n),d=tl(s,l,n);return tl(c,d,n)}const il=new Map;function ol(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=il.get(n);return i||(i=new Intl.NumberFormat(t,e),il.set(n,i)),i}(e,n).format(t)}function rl(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function sl(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ll(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function cl(t){return"angle"===t?{between:Ha,compare:Ba,normalize:Va}:{between:Wa,compare:(t,e)=>t-e,normalize:t=>t}}function dl({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function hl(t,e,n){if(!n)return[t];const{property:i,start:o,end:a}=n,r=e.length,{compare:s,between:l,normalize:c}=cl(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:a}=n,{between:r,normalize:s}=cl(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&r(s(e[h%l][i]),o,a);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),f=[];let g,m,b,x=!1,y=null;const v=()=>x||l(o,b,g)&&0!==s(o,b),w=()=>!x||0===s(a,g)||l(a,b,g);for(let t=d,n=d;t<=h;++t)m=e[t%r],m.skip||(g=c(m[i]),g!==b&&(x=l(g,o,a),null===y&&v()&&(y=0===s(g,o)?t:n),null!==y&&w()&&(f.push(dl({start:y,end:t,loop:u,count:r,style:p})),y=null),n=t,b=g));return null!==y&&f.push(dl({start:y,end:h,loop:u,count:r,style:p})),f}function ul(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const a=hl(i[o],t.points,e);a.length&&n.push(...a)}return n}function pl(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),a=fl(t.options),{_datasetIndex:r,options:{spanGaps:s}}=t,l=n.length,c=[];let d=a,h=e[0].start,u=h;function p(t,e,i,o){const a=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=a;for(;n[e%l].skip;)e+=a;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=s?h:t.start;let e,a=n[h%l];for(u=h+1;u<=t.end;u++){const s=n[u%l];e=fl(i.setContext(vs(o,{type:"segment",p0:a,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),gl(e,d)&&p(h,u-1,t.loop,d),a=s,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}function fl(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function gl(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
|
15
|
+
function cr(t){return t+.5|0}const dr=(t,e,n)=>Math.max(Math.min(t,n),e);function hr(t){return dr(cr(2.55*t),0,255)}function ur(t){return dr(cr(255*t),0,255)}function pr(t){return dr(cr(t/2.55)/100,0,1)}function fr(t){return dr(cr(100*t),0,100)}const gr={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},mr=[..."0123456789ABCDEF"],br=t=>mr[15&t],xr=t=>mr[(240&t)>>4]+mr[15&t],yr=t=>(240&t)>>4==(15&t);function vr(t){var e=(t=>yr(t.r)&&yr(t.g)&&yr(t.b)&&yr(t.a))(t)?br:xr;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const wr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _r(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function kr(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Er(t,e,n){const i=_r(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function Sr(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),a=Math.min(e,n,i),r=(o+a)/2;let s,l,c;return o!==a&&(c=o-a,l=r>.5?c/(2-o-a):c/(o+a),s=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),s=60*s+.5),[0|s,l||0,r]}function Cr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(ur)}function Ar(t,e,n){return Cr(_r,t,e,n)}function Mr(t){return(t%360+360)%360}function Dr(t){const e=wr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?hr(+e[5]):ur(+e[5]));const o=Mr(+e[2]),a=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Cr(Er,t,e,n)}(o,a,r):"hsv"===e[1]?function(t,e,n){return Cr(kr,t,e,n)}(o,a,r):Ar(o,a,r),{r:n[0],g:n[1],b:n[2],a:i}}const Or={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Tr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Pr;function Rr(t){Pr||(Pr=function(){const t={},e=Object.keys(Tr),n=Object.keys(Or);let i,o,a,r,s;for(i=0;i<e.length;i++){for(r=s=e[i],o=0;o<n.length;o++)a=n[o],s=s.replace(a,Or[a]);a=parseInt(Tr[r],16),t[s]=[a>>16&255,a>>8&255,255&a]}return t}(),Pr.transparent=[0,0,0,0]);const e=Pr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Lr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Fr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ir=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Nr(t,e,n){if(t){let i=Sr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Ar(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function zr(t,e){return t?Object.assign(e||{},t):t}function Br(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=ur(t[3]))):(e=zr(t,{r:0,g:0,b:0,a:1})).a=ur(e.a),e}function Vr(t){return"r"===t.charAt(0)?function(t){const e=Lr.exec(t);let n,i,o,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?hr(t):dr(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?hr(n):dr(n,0,255)),i=255&(e[4]?hr(i):dr(i,0,255)),o=255&(e[6]?hr(o):dr(o,0,255)),{r:n,g:i,b:o,a:a}}}(t):Dr(t)}class Hr{constructor(t){if(t instanceof Hr)return t;const e=typeof t;let n;var i,o,a;"object"===e?n=Br(t):"string"===e&&(a=(i=t).length,"#"===i[0]&&(4===a||5===a?o={r:255&17*gr[i[1]],g:255&17*gr[i[2]],b:255&17*gr[i[3]],a:5===a?17*gr[i[4]]:255}:7!==a&&9!==a||(o={r:gr[i[1]]<<4|gr[i[2]],g:gr[i[3]]<<4|gr[i[4]],b:gr[i[5]]<<4|gr[i[6]],a:9===a?gr[i[7]]<<4|gr[i[8]]:255})),n=o||Rr(t)||Vr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=zr(this._rgb);return t&&(t.a=pr(t.a)),t}set rgb(t){this._rgb=Br(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?vr(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Sr(t),n=e[0],i=fr(e[1]),o=fr(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${pr(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const a=e===o?.5:e,r=2*a-1,s=n.a-i.a,l=((r*s===-1?r:(r+s)/(1+r*s))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Ir(pr(t.r)),o=Ir(pr(t.g)),a=Ir(pr(t.b));return{r:ur(Fr(i+n*(Ir(pr(e.r))-i))),g:ur(Fr(o+n*(Ir(pr(e.g))-o))),b:ur(Fr(a+n*(Ir(pr(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Hr(this.rgb)}alpha(t){return this._rgb.a=ur(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=cr(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Nr(this._rgb,2,t),this}darken(t){return Nr(this._rgb,2,-t),this}saturate(t){return Nr(this._rgb,1,t),this}desaturate(t){return Nr(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Sr(t);n[0]=Mr(n[0]+e),n=Ar(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function jr(t){return new Hr(t)}function Wr(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Ur(t){return Wr(t)?t:jr(t)}function Gr(t){return Wr(t)?t:jr(t).saturate(.5).darken(.1).hexString()}const Yr=Object.create(null),$r=Object.create(null);function Xr(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function qr(t,e,n){return"string"==typeof e?ua(Xr(t,e),n):ua(Xr(t,""),e)}var Kr=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.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=(t,e)=>Gr(e.backgroundColor),this.hoverBorderColor=(t,e)=>Gr(e.borderColor),this.hoverColor=(t,e)=>Gr(e.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(t)}set(t,e){return qr(this,t,e)}get(t){return Xr(this,t)}describe(t,e){return qr($r,t,e)}override(t,e){return qr(Yr,t,e)}route(t,e,n,i){const o=Xr(this,t),a=Xr(this,n),r="_"+e;Object.defineProperties(o,{[r]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=a[i];return ta(t)?Object.assign({},e,t):ia(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Zr(t,e,n,i,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,n.push(o)),a>i&&(i=a),i}function Jr(t,e,n,i){let o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},a=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const s=n.length;let l,c,d,h,u;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==Qo(h))r=Zr(t,o,a,r,h);else if(Qo(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||Qo(u)||(r=Zr(t,o,a,r,u));t.restore();const p=a.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[a[l]];a.splice(0,p)}return r}function Qr(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function ts(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function es(t,e,n,i){ns(t,e,n,i,null)}function ns(t,e,n,i,o){let a,r,s,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let f=(u||0)*Ca;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,i),t.rotate(f),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,ka):t.arc(n,i,p,0,ka),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Da,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Da,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,r=Math.cos(f+Ma)*l,s=Math.sin(f+Ma)*l,t.arc(n-r,i-s,c,f-_a,f-Aa),t.arc(n+s,i-r,c,f-Aa,f),t.arc(n+r,i+s,c,f,f+Aa),t.arc(n-s,i+r,c,f+Aa,f+_a),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}f+=Ma;case"rectRot":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+s,i-r),t.lineTo(n+r,i+s),t.lineTo(n-s,i+r),t.closePath();break;case"crossRot":f+=Ma;case"cross":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r);break;case"star":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r),f+=Ma,r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r);break;case"line":r=o?o/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(f)*p,i+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function is(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function os(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function rs(t){t.restore()}function ss(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function ls(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function cs(t,e,n,i,o,a={}){const r=Qo(e)?e:[e],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Jo(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),l=0;l<r.length;++l)c=r[l],s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),Jo(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,i,a.maxWidth)),t.fillText(c,n,i,a.maxWidth),ds(t,n,i,c,a),i+=o.lineHeight;t.restore()}function ds(t,e,n,i,o){if(o.strikethrough||o.underline){const a=t.measureText(i),r=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(r,d),t.lineTo(s,d),t.stroke()}}function hs(t,e){const{x:n,y:i,w:o,h:a,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-Aa,_a,!0),t.lineTo(n,i+a-r.bottomLeft),t.arc(n+r.bottomLeft,i+a-r.bottomLeft,r.bottomLeft,_a,Aa,!0),t.lineTo(n+o-r.bottomRight,i+a),t.arc(n+o-r.bottomRight,i+a-r.bottomRight,r.bottomRight,Aa,0,!0),t.lineTo(n+o,i+r.topRight),t.arc(n+o-r.topRight,i+r.topRight,r.topRight,0,-Aa,!0),t.lineTo(n+r.topLeft,i)}const us=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ps=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function fs(t,e){const n=(""+t).match(us);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const gs=t=>+t||0;function ms(t,e){const n={},i=ta(e),o=i?Object.keys(e):e,a=ta(t)?i?n=>ia(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=gs(a(t));return n}function bs(t){return ms(t,{top:"y",right:"x",bottom:"y",left:"x"})}function xs(t){return ms(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ys(t){const e=bs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function vs(t,e){t=t||{},e=e||Kr.font;let n=ia(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=ia(t.style,e.style);i&&!(""+i).match(ps)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:ia(t.family,e.family),lineHeight:fs(ia(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ia(t.weight,e.weight),string:""};return o.string=function(t){return!t||Jo(t.size)||Jo(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function ws(t,e,n,i){let o,a,r,s=!0;for(o=0,a=t.length;o<a;++o)if(r=t[o],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),s=!1),void 0!==n&&Qo(r)&&(r=r[n%r.length],s=!1),void 0!==r))return i&&!s&&(i.cacheable=!1),r}function _s(t,e){return Object.assign(Object.create(t),e)}function ks(t,e=[""],n=t,i,o=()=>t[0]){ya(i)||(i=Ls("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>ks([o,...t],e,n,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Ms(n,i,()=>function(t,e,n,i){let o;for(const a of e)if(o=Ls(Cs(a,t),n),ya(o))return As(t,o)?Ps(n,i,t,o):o}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Fs(t).includes(e),ownKeys:t=>Fs(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function Es(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ss(t,i),setContext:e=>Es(t,e,n,i),override:o=>Es(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Ms(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:r}=t;let s=i[e];va(s)&&r.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:r,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(a,r||i),s.delete(t),As(t,e)&&(e=Ps(o._scopes,o,t,e));return e}(e,s,t,n));Qo(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:r,_descriptors:s}=n;if(ya(a.index)&&i(t))e=e[a.index%e.length];else if(ta(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Ps(i,o,t,l);e.push(Es(n,a,r&&r[t],s))}}return e}(e,s,t,r.isIndexable));As(e,s)&&(s=Es(s,o,a&&a[e],r));return s}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Ss(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:va(n)?n:()=>n,isIndexable:va(i)?i:()=>i}}const Cs=(t,e)=>t?t+xa(e):e,As=(t,e)=>ta(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ms(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Ds(t,e,n){return va(t)?t(e,n):t}const Os=(t,e)=>!0===t?e:"string"==typeof t?ma(e,t):void 0;function Ts(t,e,n,i,o){for(const a of e){const e=Os(n,a);if(e){t.add(e);const a=Ds(e._fallback,n,o);if(ya(a)&&a!==n&&a!==i)return a}else if(!1===e&&ya(i)&&n!==i)return null}return!1}function Ps(t,e,n,i){const o=e._rootScopes,a=Ds(e._fallback,n,i),r=[...t,...o],s=new Set;s.add(i);let l=Rs(s,r,n,a||n,i);return null!==l&&((!ya(a)||a===n||(l=Rs(s,r,a,l,i),null!==l))&&ks(Array.from(s),[""],o,a,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Qo(o)&&ta(n))return n;return o}(e,n,i)))}function Rs(t,e,n,i,o){for(;n;)n=Ts(t,e,n,i,o);return n}function Ls(t,e){for(const n of e){if(!n)continue;const e=n[t];if(ya(e))return e}}function Fs(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Is(t,e,n,i){const{iScale:o}=t,{key:a="r"}=this._parsing,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={r:o.parse(ma(d,a),c)};return r}const Ns=Number.EPSILON||1e-14,zs=(t,e)=>e<t.length&&!t[e].skip&&t[e],Bs=t=>"x"===t?"y":"x";function Vs(t,e,n,i){const o=t.skip?e:t,a=e,r=n.skip?e:n,s=Va(a,o),l=Va(r,a);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:a.x-h*(r.x-o.x),y:a.y-h*(r.y-o.y)},next:{x:a.x+u*(r.x-o.x),y:a.y+u*(r.y-o.y)}}}function Hs(t,e="x"){const n=Bs(e),i=t.length,o=Array(i).fill(0),a=Array(i);let r,s,l,c=zs(t,0);for(r=0;r<i;++r)if(s=l,l=c,c=zs(t,r+1),l){if(c){const t=c[e]-l[e];o[r]=0!==t?(c[n]-l[n])/t:0}a[r]=s?c?Ta(o[r-1])!==Ta(o[r])?0:(o[r-1]+o[r])/2:o[r-1]:o[r]}!function(t,e,n){const i=t.length;let o,a,r,s,l,c=zs(t,0);for(let d=0;d<i-1;++d)l=c,c=zs(t,d+1),l&&c&&(La(e[d],0,Ns)?n[d]=n[d+1]=0:(o=n[d]/e[d],a=n[d+1]/e[d],s=Math.pow(o,2)+Math.pow(a,2),s<=9||(r=3/Math.sqrt(s),n[d]=o*r*e[d],n[d+1]=a*r*e[d])))}(t,o,a),function(t,e,n="x"){const i=Bs(n),o=t.length;let a,r,s,l=zs(t,0);for(let c=0;c<o;++c){if(r=s,s=l,l=zs(t,c+1),!s)continue;const o=s[n],d=s[i];r&&(a=(o-r[n])/3,s[`cp1${n}`]=o-a,s[`cp1${i}`]=d-a*e[c]),l&&(a=(l[n]-o)/3,s[`cp2${n}`]=o+a,s[`cp2${i}`]=d+a*e[c])}}(t,a,e)}function js(t,e,n){return Math.max(Math.min(t,n),e)}function Ws(t,e,n,i,o){let a,r,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Hs(t,o);else{let n=i?t[t.length-1]:t[0];for(a=0,r=t.length;a<r;++a)s=t[a],l=Vs(n,s,t[Math.min(a+1,r-(i?0:1))%r],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,o,a,r,s=is(t[0],e);for(n=0,i=t.length;n<i;++n)r=a,a=s,s=n<i-1&&is(t[n+1],e),a&&(o=t[n],r&&(o.cp1x=js(o.cp1x,e.left,e.right),o.cp1y=js(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=js(o.cp2x,e.left,e.right),o.cp2y=js(o.cp2y,e.top,e.bottom)))}(t,n)}function Us(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Gs(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ys(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const $s=t=>window.getComputedStyle(t,null);const Xs=["top","right","bottom","left"];function qs(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=Xs[o];i[a]=parseFloat(t[e+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Ks(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=$s(n),a="border-box"===o.boxSizing,r=qs(o,"padding"),s=qs(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:a}=i;let r,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,a,t.target))r=o,s=a;else{const t=e.getBoundingClientRect();r=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:r,y:s,box:l}}(t,n),h=r.left+(d&&s.left),u=r.top+(d&&s.top);let{width:p,height:f}=e;return a&&(p-=r.width+s.width,f-=r.height+s.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/f*n.height/i)}}const Zs=t=>Math.round(10*t)/10;function Js(t,e,n,i){const o=$s(t),a=qs(o,"margin"),r=Ys(o.maxWidth,t,"clientWidth")||Sa,s=Ys(o.maxHeight,t,"clientHeight")||Sa,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const a=Gs(t);if(a){const t=a.getBoundingClientRect(),r=$s(a),s=qs(r,"border","width"),l=qs(r,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Ys(r.maxWidth,a,"clientWidth"),o=Ys(r.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||Sa,maxHeight:o||Sa}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=qs(o,"border","width"),e=qs(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,i?Math.floor(c/i):d-a.height),c=Zs(Math.min(c,r,l.maxWidth)),d=Zs(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Zs(c/2)),{width:c,height:d}}function Qs(t,e,n){const i=e||1,o=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=o/i,t.width=a/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==o||r.width!==a)&&(t.currentDevicePixelRatio=i,r.height=o,r.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const tl=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function el(t,e){const n=function(t,e){return $s(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function nl(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function il(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ol(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},r=nl(t,o,n),s=nl(o,a,n),l=nl(a,e,n),c=nl(r,s,n),d=nl(s,l,n);return nl(c,d,n)}const rl=new Map;function sl(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=rl.get(n);return i||(i=new Intl.NumberFormat(t,e),rl.set(n,i)),i}(e,n).format(t)}function ll(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function cl(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function dl(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function hl(t){return"angle"===t?{between:Wa,compare:Ha,normalize:ja}:{between:Ga,compare:(t,e)=>t-e,normalize:t=>t}}function ul({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function pl(t,e,n){if(!n)return[t];const{property:i,start:o,end:a}=n,r=e.length,{compare:s,between:l,normalize:c}=hl(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:a}=n,{between:r,normalize:s}=hl(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&r(s(e[h%l][i]),o,a);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),f=[];let g,m,b,x=!1,y=null;const v=()=>x||l(o,b,g)&&0!==s(o,b),w=()=>!x||0===s(a,g)||l(a,b,g);for(let t=d,n=d;t<=h;++t)m=e[t%r],m.skip||(g=c(m[i]),g!==b&&(x=l(g,o,a),null===y&&v()&&(y=0===s(g,o)?t:n),null!==y&&w()&&(f.push(ul({start:y,end:t,loop:u,count:r,style:p})),y=null),n=t,b=g));return null!==y&&f.push(ul({start:y,end:h,loop:u,count:r,style:p})),f}function fl(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const a=pl(i[o],t.points,e);a.length&&n.push(...a)}return n}function gl(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),a=ml(t.options),{_datasetIndex:r,options:{spanGaps:s}}=t,l=n.length,c=[];let d=a,h=e[0].start,u=h;function p(t,e,i,o){const a=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=a;for(;n[e%l].skip;)e+=a;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=s?h:t.start;let e,a=n[h%l];for(u=h+1;u<=t.end;u++){const s=n[u%l];e=ml(i.setContext(_s(o,{type:"segment",p0:a,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),bl(e,d)&&p(h,u-1,t.loop,d),a=s,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}function ml(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bl(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
|
16
16
|
/*!
|
|
17
17
|
* Chart.js v3.9.1
|
|
18
18
|
* https://www.chartjs.org
|
|
19
19
|
* (c) 2022 Chart.js Contributors
|
|
20
20
|
* Released under the MIT License
|
|
21
|
-
*/var ml=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],a=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ka.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,r=o.length-1,s=!1;for(;r>=0;--r)a=o[r],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),s=!0):(o[r]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const bl="transparent",xl={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=jr(t||bl),o=i.valid&&jr(e||bl);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class yl{constructor(t,e,n,i){const o=e[n];i=ys([t.to,i,o,t.from]);const a=ys([t.from,o,i]);this._active=!0,this._fn=t.fn||xl[t.type||typeof a],this._easing=rr[t.easing]||rr.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=ys([t.to,e,i,t.from]),this._from=ys([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,r=this._to;let s;if(this._active=o!==r&&(a||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,r,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}Xr.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const vl=Object.keys(Xr.animation);Xr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Xr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Xr.describe("animations",{_fallback:"animation"}),Xr.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:t=>0|t}}}});class wl{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Jo(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!Jo(i))return;const o={};for(const t of vl)o[t]=i[t];(Zo(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,r);continue}d.cancel()}h&&h.duration?(o[l]=d=new yl(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(ml.add(this._chart,n),!0):void 0}}function _l(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function kl(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function El(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let r,s,l,c;if(null!==e){for(r=0,s=o.length;r<s;++r){if(l=+o[r],l===n){if(i.all)continue;break}c=t.values[l],Qo(c)&&(a||0===e||Da(e)===Da(c))&&(e+=c)}return e}}function Sl(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Cl(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Al(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Ml(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:r,index:s}=i,l=a.axis,c=r.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,r,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Cl(o,d,a),u[s]=h,u._top=Al(u,r,!0,i.type),u._bottom=Al(u,r,!1,i.type)}}function Dl(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Ol(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Tl=t=>"reset"===t||"none"===t,Pl=(t,e)=>e?t:Object.assign({},t);class Rl{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Sl(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ol(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ea(n.xAxisID,Dl(t,"x")),a=e.yAxisID=ea(n.yAxisID,Dl(t,"y")),r=e.rAxisID=ea(n.rAxisID,Dl(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,a,r),c=e.vAxisID=i(s,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Xa(this._data,this),t._stacked&&Ol(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Jo(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){Xa(n,this);const t=this._cachedMeta;Ol(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),$a.forEach(t=>{const e="_onData"+ga(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Sl(e.vScale,e),e.stack!==n.stack&&(i=!0,Ol(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ml(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,r=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Zo(i[t])?this.parseArrayData(n,i,t,e):Jo(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[r]||h&&l[r]<h[r];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&Ml(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,r=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[r]:c||o.parse(l[p],p),[s]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(fa(u,r),h),y:a.parse(fa(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,a=e[t.axis];return El({keys:kl(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,a=El(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,r=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:kl(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(r);let h,u;function p(){u=i[h];const e=u[r.axis];return!Qo(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],Qo(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return Jo(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ea(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=_l(t,n),o=_l(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,a=[],r=this._drawStart||0,s=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,r,s),c=r;c<r+s;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return vs(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return vs(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,r=o[a],s=this.enableOptionSharing&&ma(n);if(r)return Pl(r,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(Xr.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[a]=Object.freeze(Pl(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,r=o[a];if(r)return r;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(a,this.getContext(t,n,e))}const l=new wl(i,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Tl(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Tl(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Tl(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,a=t+e;let r;const s=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(s(o),r=t;r<a;++r)o[r]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ol(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Ll(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=qa(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,a,r,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(ma(r)&&(s=Math.min(s,Math.abs(a-r)||s)),r=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return s}function Fl(t,e,n,i){return Zo(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),r=Math.min(o,a),s=Math.max(o,a);let l=r,c=s;Math.abs(r)>Math.abs(s)&&(l=s,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:r,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Il(t,e,n,i){const o=t.iScale,a=t.vScale,r=o.getLabels(),s=o===a,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(r[c],c),l.push(Fl(u,h,a,c));return l}function Nl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function zl(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Bl(d,r,s,l)]=!0,o=c)),a[Bl(o,r,s,l)]=!0,t.borderSkipped=a}function Bl(t,e,n,i){var o,a,r;return i?(r=n,t=Vl(t=(o=t)===(a=e)?r:o===r?a:o,n,e)):t=Vl(t,e,n),t}function Vl(t,e,n){return"start"===t?e:"end"===t?n:t}function Hl(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Rl.defaults={},Rl.prototype.datasetElementType=null,Rl.prototype.dataElementType=null;class jl extends Rl{parsePrimitiveData(t,e,n,i){return Il(t,e,n,i)}parseArrayData(t,e,n,i){return Il(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?r:s,c="x"===a.axis?r:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(fa(f,l),h),d.push(Fl(fa(f,c),p,a,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),a=o._custom,r=Nl(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:r}}=this,s=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Ko(e[r.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[r.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Nl(e._custom)||a===f._top||a===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(g.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const m=g.options||t[u].options;zl(g,m,f,a),Hl(g,m,c.ratio),this.updateElement(t[u],u,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,a=[],r=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Ko(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!r(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const r=t.barThickness;return{min:r||Ll(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,r=this.getParsed(t),s=r._custom,l=Nl(s);let c,d,h=r[e.axis],u=0,p=n?this.applyStack(e,r,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Da(h)!==Da(s.barEnd)&&(u=0),u+=h);const f=Ko(i)||l?u:i;let g=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):g,d=c-g,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Da(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(g-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);g=Math.max(Math.min(g,r),i),c=g+d}if(g===e.getPixelForValue(a)){const t=Da(d)*e.getLineWidthForValue(a)/2;g+=t,d-=t}return{size:d,base:g,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=ea(i.maxBarThickness,1/0);let r,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,a=o[t];let r=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===r&&(r=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-r);const c=a-(a-Math.min(r,s))/2*l;return{chunk:Math.abs(s-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,r;return Ko(o)?(a=e.min*n.categoryPercentage,r=n.barPercentage):(a=o*i,r=1),{chunk:a/i,ratio:r,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(a,e.min*e.ratio);return{base:r-s/2,head:r+s/2,center:r,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}jl.id="bar",jl.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},jl.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Wl extends Rl{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ea(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ea(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),r=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+a+", "+r+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=r.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),f=u[d]=o?r.getBasePixel():r.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ea(n&&n._custom,o),i}}Wl.id="bubble",Wl.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Wl.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ul extends Rl{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,r=t=>+n[t];if(Jo(n[t])){const{key:t="value"}=this._parsing;r=e=>+fa(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return La(this.options.rotation-90)}_getCircumference(){return La(this.options.circumference)}_getRotationExtents(){let t=wa,e=-wa;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(t,e,n){let i=1,o=1,a=0,r=0;if(e<wa){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>Ha(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>Ha(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),m=p(Sa,d,u),b=f(va,c,h),x=f(va+Sa,d,u);i=(g-b)/2,o=(m-x)/2,a=-(g+b)/2,r=-(m+x)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:r}}(u,h,s),b=(n.width-a)/p,x=(n.height-a)/f,y=Math.max(Math.min(b,x)/2,0),v=na(this.options.radius,y),w=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,i.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/wa)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.chartArea,s=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+n;++g){const e=this._circumference(g,o),n=t[g],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:h};f&&(a.options=p||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?wa*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=ol(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,r,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,r=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=r.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ea(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ul.id="doughnut",Ul.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Ul.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Ul.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Zo(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Gl extends Rl{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:s}=tr(e,i,a);this._drawStart=r,this._drawCount=s,er(e)&&(r=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,r,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=r.axis,{spanGaps:p,segment:f}=this.options,g=Ta(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=m?e:{},y=Ko(n[u]),v=x[h]=a.getPixelForValue(n[h],p),w=x[u]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[u],p);x.skip=isNaN(v)||isNaN(w)||y,x.stop=p>0&&Math.abs(n[h]-b[h])>g,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),m||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Gl.id="line",Gl.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Gl.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Yl extends Rl{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=ol(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Ls.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*va;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),g=a.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(r.animateScale&&(g=0),r.animateRotate&&(n=f=d));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?La(this.resolveDataElementOptions(t,e).angle||n):0}}Yl.id="polarArea",Yl.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Yl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class $l extends Ul{}$l.id="pie",$l.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Xl extends Rl{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Ls.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let r=e;r<e+n;r++){const e=t[r],n=this.resolveDataElementOptions(r,e.active?"active":i),s=o.getPointPositionForValue(r,this.getParsed(r).r),l=a?o.xCenter:s.x,c=a?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,r,d,i)}}}Xl.id="radar",Xl.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Xl.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ql{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ta(this.x)&&Ta(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}ql.defaults={},ql.defaultRoutes=void 0;const Kl={values:t=>Zo(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const r=Ma(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),ol(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ma(t)));return 1===i||2===i||5===i?Kl.numeric.call(this,t,e,n):""}};var Zl={formatters:Kl};function Jl(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,r=o[0],s=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,r=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),a++,r=n[a*i])}(e,l,o,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((s-r)/(a-1)):null;for(Ql(e,l,c,Ko(i)?0:r-i,r),t=0,n=a-1;t<n;t++)Ql(e,l,c,o[t],o[t+1]);return Ql(e,l,c,s,Ko(i)?e.length:s+i),l}return Ql(e,l,c),l}function Ql(t,e,n,i,o){const a=ea(i,0),r=Math.min(ea(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<r;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}Xr.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Zl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Xr.route("scale.ticks","color","","color"),Xr.route("scale.grid","color","","borderColor"),Xr.route("scale.grid","borderColor","","borderColor"),Xr.route("scale.title","color","","color"),Xr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Xr.describe("scales",{_fallback:"scale"}),Xr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const tc=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ec(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function nc(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,r=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>r+s)))return c}function ic(t){return t.drawTicks?t.tickLength:0}function oc(t,e){if(!t.display)return 0;const n=xs(t.font,e),i=bs(t.padding);return(Zo(t.text)?t.text.length:1)*n.lineHeight+i.height}function rc(t,e,n){let i=Ja(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class sc extends ql{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=ta(t,Number.POSITIVE_INFINITY),e=ta(e,Number.NEGATIVE_INFINITY),n=ta(n,Number.POSITIVE_INFINITY),i=ta(i,Number.NEGATIVE_INFINITY),{min:ta(t,n),max:ta(e,i),minDefined:Qo(t),maxDefined:Qo(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let s=0,l=r.length;s<l;++s)e=r[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:ta(n,ta(i,n)),max:ta(i,ta(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ia(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,a=na(e,(o-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(a)),max:r(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=r<this.ticks.length;this._convertTicksToLabels(s?ec(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=Jl(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ia(this.options.afterUpdate,[this])}beforeSetDimensions(){ia(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ia(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ia(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ia(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=ia(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){ia(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ia(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,r,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=ja(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),r=this.maxHeight-ic(t.grid)-e.padding-oc(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Fa(Math.min(Math.asin(ja((c.highest.height+6)/a,-1,1)),Math.asin(ja(r/s,-1,1))-Math.asin(ja(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){ia(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ia(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=oc(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=ic(o)+a):(t.height=this.maxHeight,t.width=ic(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),s=2*n.padding,l=La(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:a},position:r}=this.options,s=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ia(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Ko(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=ec(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let r,s,l,c,d,h,u,p,f,g,m,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,d=this._resolveTickFontOptions(r),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=g=0,Ko(c)||Zo(c)){if(Zo(c))for(s=0,l=c.length;s<l;++s)m=c[s],Ko(m)||Zo(m)||(f=qr(n,u.data,u.gc,f,m),g+=p)}else f=qr(n,u.data,u.gc,f,c),g=p;o.push(f),a.push(g),b=Math.max(f,b),x=Math.max(g,x)}!function(t,e){oa(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const y=o.indexOf(b),v=a.indexOf(x),w=t=>({width:o[t]||0,height:a[t]||0});return{first:w(0),last:w(e-1),widest:w(y),highest:w(v),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ja(this._alignToPixels?Zr(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return vs(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=vs(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=La(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,r=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*n>r*i?r/n:s/i:s*i<r*n?s/n:r/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a}=i,r=o.offset,s=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=ic(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Zr(n,t,u)};let g,m,b,x,y,v,w,_,k,E,S,C;if("top"===a)g=f(this.bottom),v=this.bottom-c,_=g-p,E=f(t.top)+p,C=t.bottom;else if("bottom"===a)g=f(this.top),E=t.top,C=f(t.bottom)-p,v=g+p,_=this.top+c;else if("left"===a)g=f(this.right),y=this.right-c,w=g-p,k=f(t.left)+p,S=t.right;else if("right"===a)g=f(this.left),k=t.left,S=f(t.right)-p,y=g+p,w=this.left+c;else if("x"===e){if("center"===a)g=f((t.top+t.bottom)/2+.5);else if(Jo(a)){const t=Object.keys(a)[0],e=a[t];g=f(this.chart.scales[t].getPixelForValue(e))}E=t.top,C=t.bottom,v=g+p,_=v+c}else if("y"===e){if("center"===a)g=f((t.left+t.right)/2);else if(Jo(a)){const t=Object.keys(a)[0],e=a[t];g=f(this.chart.scales[t].getPixelForValue(e))}y=g-p,w=y-c,k=t.left,S=t.right}const A=ea(i.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/A));for(m=0;m<l;m+=M){const t=o.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=nc(this,m,r),void 0!==b&&(x=Zr(n,b,e),s?y=w=k=S=x:v=_=E=C=x,d.push({tx1:y,ty1:v,tx2:w,ty2:_,x1:k,y1:E,x2:S,y2:C,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),r=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=ic(n.grid),u=h+c,p=d?-c:u,f=-La(this.labelRotation),g=[];let m,b,x,y,v,w,_,k,E,S,C,A,M="middle";if("top"===i)w=this.bottom-p,_=this._getXAxisLabelAlignment();else if("bottom"===i)w=this.top+p,_=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);_=t.textAlign,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);_=t.textAlign,v=t.x}else if("x"===e){if("center"===i)w=(t.top+t.bottom)/2+u;else if(Jo(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)+u}_=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)v=(t.left+t.right)/2-u;else if(Jo(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}_=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const D=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],y=x.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,E=this._resolveTickFontOptions(m),S=E.lineHeight,C=Zo(y)?y.length:1;const e=C/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=_;if(a?(v=k,"inner"===_&&(u=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===l||0!==f?-C*S+S/2:"center"===l?-D.highest.height/2-e*S+S:-D.highest.height+S/2:"near"===l||0!==f?S/2:"center"===l?D.highest.height/2-e*S:D.highest.height-C*S,d&&(A*=-1)):(w=k,A=(1-C)*S/2),t.showLabelBackdrop){const e=bs(t.backdropPadding),n=D.heights[m],i=D.widths[m];let o=w+A-e.top,a=v-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(_){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:f,label:y,font:E,color:n,strokeColor:s,strokeWidth:c,textOffset:A,textAlign:u,textBaseline:M,translation:[v,w],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-La(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=t+o,r=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l+=r)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l-=r)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Zr(t,this.left,o)-o/2,l=Zr(t,this.right,a)+a/2,c=d=r):(c=Zr(t,this.top,o)-o/2,d=Zr(t,this.bottom,a)+a/2,s=l=r),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&ns(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ss(e,a,0,t.textOffset,n,t)}n&&is(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=xs(n.font),a=bs(n.padding),r=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Jo(e)?(s+=a.bottom,Zo(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:r,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const g=r-o,m=s-a;if(t.isHorizontal()){if(u=Qa(i,a,s),Jo(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:tc(t,n,e);h=s-a}else{if(Jo(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-m+e}else u="center"===n?(c.left+c.right)/2-m+e:tc(t,n,e);p=Qa(i,r,o),f="left"===n?-Sa:Sa}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,r);ss(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:rc(r,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=ea(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===sc.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return xs(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class lc{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=da(Object.create(null),[n?Xr.get(n):{},Xr.get(e),t.defaults]);Xr.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),r=e[n].split("."),s=r.pop(),l=r.join(".");Xr.route(a,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&Xr.describe(e,t.descriptors)}(t,a,n),this.override&&Xr.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Xr[i]&&(delete Xr[i][n],this.override&&delete Ur[n])}}var cc=new class{constructor(){this.controllers=new lc(Rl,"datasets",!0),this.elements=new lc(ql,"elements"),this.plugins=new lc(Object,"plugins"),this.scales=new lc(sc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):oa(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=ga(t);ia(n["before"+i],[],n),e[t](n),ia(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class dc extends Rl{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=tr(e,n,i);if(this._drawStart=o,this._drawCount=a,er(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:r},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=cc.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=r.axis,{spanGaps:f,segment:g}=this.options,m=Ta(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},y=Ko(n[p]),v=f[u]=a.getPixelForValue(n[u],c),w=f[p]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[p],c);f.skip=isNaN(v)||isNaN(w)||y,f.stop=c>0&&Math.abs(n[u]-x[u])>m,g&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function hc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}dc.id="scatter",dc.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},dc.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class uc{constructor(t){this.options=t||{}}init(t){}formats(){return hc()}parse(t,e){return hc()}format(t,e){return hc()}add(t,e,n){return hc()}diff(t,e,n){return hc()}startOf(t,e,n){return hc()}endOf(t,e){return hc()}}uc.override=function(t){Object.assign(uc.prototype,t)};var pc={_date:uc};function fc(t,e,n,i){const{controller:o,data:a,_sorted:r}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&r&&a.length){const t=s._reversePixels?Ya:Ga;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),r=t(a,e,n+o);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function gc(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:s}=a[t],{lo:l,hi:c}=fc(a[t],e,r,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function mc(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return gc(t,n,e,function(n,r,s){(o||es(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:r,index:s})},!0),a}function xc(t,e,n,i,o,a){let r=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return gc(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!a||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(r=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&r.push({element:n,datasetIndex:c,index:d})}),r}function yc(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?xc(t,e,n,i,o,a):function(t,e,n,i){let o=[];return gc(t,n,e,function(t,n,a){const{startAngle:r,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Na(t,{x:e.x,y:e.y});Ha(l,r,s)&&o.push({element:t,datasetIndex:n,index:a})}),o}(t,e,n,o):[]}function vc(t,e,n,i,o){const a=[],r="x"===n?"inXRange":"inYRange";let s=!1;return gc(t,n,e,(t,i,l)=>{t[r](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:a}var wc={evaluateInteractionItems:gc,modes:{index(t,e,n,i){const o=Xs(e,t),a=n.axis||"x",r=n.includeInvisible||!1,s=n.intersect?mc(t,o,a,i,r):yc(t,o,a,!1,i,r),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Xs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;let s=n.intersect?mc(t,o,a,i,r):yc(t,o,a,!1,i,r);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>mc(t,Xs(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Xs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;return yc(t,o,a,n.intersect,i,r)},x:(t,e,n,i)=>vc(t,Xs(e,t),"x",n.intersect,i),y:(t,e,n,i)=>vc(t,Xs(e,t),"y",n.intersect,i)}};const _c=["left","top","right","bottom"];function kc(t,e){return t.filter(t=>t.pos===e)}function Ec(t,e){return t.filter(t=>-1===_c.indexOf(t.pos)&&t.box.axis===e)}function Sc(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Cc(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!_c.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,r,s;for(a=0,r=t.length;a<r;++a){s=t[a];const{fullSize:r}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:r&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:r&&e.availableHeight)}return n}function Ac(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Mc(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Dc(t,e,n,i){const{pos:o,box:a}=n,r=t.maxPadding;if(!Jo(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Mc(r,a.getPadding());const s=Math.max(0,e.outerWidth-Ac(r,t,"left","right")),l=Math.max(0,e.outerHeight-Ac(r,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Oc(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Tc(t,e,n,i){const o=[];let a,r,s,l,c,d;for(a=0,r=t.length,c=0;a<r;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Oc(s.horizontal,e));const{same:r,other:h}=Dc(e,n,s,i);c|=r&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Tc(o,e,n,i)||d}function Pc(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Rc(t,e,n,i){const o=n.padding;let{x:a,y:r}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,a=l.size||t.height;ma(l.start)&&(r=l.start),t.fullSize?Pc(t,o.left,r,n.outerWidth-o.right-o.left,a):Pc(t,e.left+l.placed,r,i,a),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;ma(l.start)&&(a=l.start),t.fullSize?Pc(t,a,o.top,r,n.outerHeight-o.bottom-o.top):Pc(t,a,e.top+l.placed,r,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=r}Xr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Lc={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=bs(t.options.layout.padding),a=Math.max(e-o.width,0),r=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,a,r,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:r,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:r&&a+r,stackWeight:s});return e}(t),n=Sc(e.filter(t=>t.box.fullSize),!0),i=Sc(kc(e,"left"),!0),o=Sc(kc(e,"right")),a=Sc(kc(e,"top"),!0),r=Sc(kc(e,"bottom")),s=Ec(e,"x"),l=Ec(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(r).concat(s),chartArea:kc(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(r).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;oa(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),u=Object.assign({},o);Mc(u,bs(i));const p=Object.assign({maxPadding:u,w:a,h:r,x:o.left,y:o.top},o),f=Cc(l.concat(c),h);Tc(s.fullSize,p,h,f),Tc(l,p,h,f),Tc(c,p,h,f)&&Tc(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Rc(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Rc(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},oa(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Fc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Ic extends Fc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Nc="$chartjs",zc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Bc=t=>null===t||""===t;const Vc=!!Js&&{passive:!0};function Hc(t,e,n){t.canvas.removeEventListener(e,n,Vc)}function jc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Wc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||jc(n.addedNodes,i),e=e&&!jc(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Uc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||jc(n.removedNodes,i),e=e&&!jc(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Gc=new Map;let Yc=0;function $c(){const t=window.devicePixelRatio;t!==Yc&&(Yc=t,Gc.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Xc(t,e,n){const i=t.canvas,o=i&&Ws(i);if(!o)return;const a=Za((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),r=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)});return r.observe(o),function(t,e){Gc.size||window.addEventListener("resize",$c),Gc.set(t,e)}(t,a),r}function qc(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Gc.delete(t),Gc.size||window.removeEventListener("resize",$c)}(t)}function Kc(t,e,n){const i=t.canvas,o=Za(e=>{null!==t.ctx&&n(function(t,e){const n=zc[t.type]||t.type,{x:i,y:o}=Xs(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Vc)}(i,e,o),o}class Zc extends Fc{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Nc]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Bc(o)){const e=Qs(t,"width");void 0!==e&&(t.width=e)}if(Bc(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Qs(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Nc])return!1;const n=e[Nc].initial;["height","width"].forEach(t=>{const i=n[t];Ko(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Nc],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Wc,detach:Uc,resize:Xc}[e]||Kc;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:qc,detach:qc,resize:qc}[e]||Hc)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Ks(t,e,n,i)}isAttached(t){const e=Ws(t);return!(!e||!e.isConnected)}}class Jc{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===ia(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Ko(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=ea(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(cc.plugins.items);for(let t=0;t<i.length;t++)n.push(cc.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const a=[],r=t.getContext();for(const s of e){const e=s.id,l=Qc(i[e],o);null!==l&&a.push({plugin:s,options:td(t.config,{plugin:s,local:n[e]},l,r)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Qc(t,e){return e||!1!==t?!0===t?{}:t:null}function td(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(i,a);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ed(t,e){const n=Xr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function nd(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function id(t){const e=t.options||(t.options={});e.plugins=ea(e.plugins,{}),e.scales=function(t,e){const n=Ur[t.type]||{scales:{}},i=e.scales||{},o=ed(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!Jo(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=nd(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};a[s]=a[s]||t,r[t]=ha(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||ed(o,e),l=(Ur[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),ha(r[o],[{axis:e},i[o],l[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];ha(e,[Xr.scales[e.type],Xr.scale])}),r}(t,e)}function od(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const rd=new Map,sd=new Set;function ld(t,e){let n=rd.get(t);return n||(n=e(),rd.set(t,n),sd.add(n)),n}const cd=(t,e,n)=>{const i=fa(e,n);void 0!==i&&t.add(i)};class dd{constructor(t){this._config=function(t){return(t=t||{}).data=od(t.data),id(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=od(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),id(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ld(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ld(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ld(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return ld(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),r=a.get(e);if(r)return r;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>cd(s,t,e))),e.forEach(t=>cd(s,i,t)),e.forEach(t=>cd(s,Ur[o]||{},t)),e.forEach(t=>cd(s,Xr,t)),e.forEach(t=>cd(s,Gr,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),sd.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ur[e]||{},Xr.datasets[e]||{},{type:e},Xr,Gr]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=hd(this._resolverCache,t,i);let s=a;if(function(t,e){const{isScriptable:n,isIndexable:i}=ks(t);for(const o of e){const e=n(o),a=i(o),r=(a||e)&&t[o];if(e&&(xa(r)||ud(r))||a&&Zo(r))return!0}return!1}(a,e)){o.$shared=!1;s=_s(a,n=xa(n)?n():n,this.createResolver(t,n,r))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=hd(this._resolverCache,t,n);return Jo(e)?_s(o,e,void 0,i):o}}function hd(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:ws(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,a)}return a}const ud=t=>Jo(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||xa(t[n]),!1);const pd=["top","bottom","left","right","chartArea"];function fd(t,e){return"top"===t||"bottom"===t||-1===pd.indexOf(t)&&"x"===e}function gd(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function md(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ia(n&&n.onComplete,[t],e)}function xd(t){const e=t.chart,n=e.options.animation;ia(n&&n.onProgress,[t],e)}function yd(t){return js()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const vd={},wd=t=>{const e=yd(t);return Object.values(vd).filter(t=>t.canvas===e).pop()};function _d(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class kd{constructor(t,e){const n=this.config=new dd(e),i=yd(t),o=wd(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!js()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ic:Zc}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,a.aspectRatio),s=r&&r.canvas,l=s&&s.height,c=s&&s.width;this.id=qo(),this.ctx=r,this.canvas=s,this.width=c,this.height=l,this._options=a,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._plugins=new Jc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],vd[this.id]=this,r&&s?(ml.listen(this,"complete",md),ml.listen(this,"progress",xd),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return Ko(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Zs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Jr(this.canvas,this.ctx),this}stop(){return ml.stop(this),this}resize(t,e){ml.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Zs(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),ia(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){oa(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=nd(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}}))),oa(o,e=>{const o=e.options,a=o.id,r=nd(a,o),s=ea(o.type,e.dtype);void 0!==o.position&&fd(o.position,r)===fd(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;if(a in n&&n[a].type===s)l=n[a];else{l=new(cc.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),oa(i,(t,e)=>{t||delete n[e]}),oa(n,t=>{Lc.configure(this,t,t.options),Lc.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(gd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||ed(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=cc.getController(a),{datasetElementType:i,dataElementType:r}=Xr.datasets[a];Object.assign(e.prototype,{dataElementType:cc.getElement(r),datasetElementType:i&&cc.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){oa(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||oa(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(gd("z","_idx"));const{_active:r,_lastEvent:s}=this;s?this._eventHandler(s,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){oa(this.scales,t=>{Lc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);ya(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){_d(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!ya(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Lc.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],oa(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,xa(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(ml.has(this)?this.attached&&!ml.running(this)&&ml.start(this):(this.draw(),md({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&ns(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&is(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return es(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=wc.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=vs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);ma(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ml.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Jr(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete vd[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};oa(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){oa(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},oa(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,a,r,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),r=0,s=t.length;r<s;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!ra(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),a=o(e,t),r=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,r=this._getActiveElements(t,i,n,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,ia(o.onHover,[t,r,this],this),s&&ia(o.onClick,[t,r,this],this));const c=!ra(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const Ed=()=>oa(kd.instances,t=>t._plugins.invalidate()),Sd=!0;function Cd(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:r,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,r,s,i-c,n+c),l>o?(c=o/l,t.arc(a,r,l,n+c,i-c,!0)):t.arc(a,r,o,n+Sa,i-Sa),t.closePath(),t.clip()}function Ad(t,e,n,i){const o=fs(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const a=(n-e)/2,r=Math.min(a,i*e/2),s=t=>{const e=(n-Math.min(a,t))*i/2;return ja(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:ja(o.innerStart,0,r),innerEnd:ja(o.innerEnd,0,r)}}function Md(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Dd(t,e,n,i,o,a){const{x:r,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const g=(f-Math.max(.001,f*h-n/va)/h)/2,m=l+g+p,b=o-g-p,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:w}=Ad(e,u,h,b-m),_=h-x,k=h-y,E=m+x/_,S=b-y/k,C=u+v,A=u+w,M=m+v/C,D=b-w/A;if(t.beginPath(),a){if(t.arc(r,s,h,E,S),y>0){const e=Md(k,S,r,s);t.arc(e.x,e.y,y,S,b+Sa)}const e=Md(A,b,r,s);if(t.lineTo(e.x,e.y),w>0){const e=Md(A,D,r,s);t.arc(e.x,e.y,w,b+Sa,D+Math.PI)}if(t.arc(r,s,u,b-w/u,m+v/u,!0),v>0){const e=Md(C,M,r,s);t.arc(e.x,e.y,v,M+Math.PI,m-Sa)}const n=Md(_,m,r,s);if(t.lineTo(n.x,n.y),x>0){const e=Md(_,E,r,s);t.arc(e.x,e.y,x,m-Sa,E)}}else{t.moveTo(r,s);const e=Math.cos(E)*h+r,n=Math.sin(E)*h+s;t.lineTo(e,n);const i=Math.cos(S)*h+r,o=Math.sin(S)*h+s;t.lineTo(i,o)}t.closePath()}function Od(t,e,n,i,o,a){const{options:r}=e,{borderWidth:s,borderJoinStyle:l}=r,c="inner"===r.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:a,pixelMargin:r,fullCircles:s}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(n&&Cd(t,e,a+wa),t.beginPath(),t.arc(i,o,c,a+wa,a,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+wa),d=0;d<s;++d)t.stroke()}(t,e,c),c&&Cd(t,e,o),Dd(t,e,n,i,o,a),t.stroke())}Object.defineProperties(kd,{defaults:{enumerable:Sd,value:Xr},instances:{enumerable:Sd,value:vd},overrides:{enumerable:Sd,value:Ur},registry:{enumerable:Sd,value:cc},version:{enumerable:Sd,value:"3.9.1"},getChart:{enumerable:Sd,value:wd},register:{enumerable:Sd,value:(...t)=>{cc.add(...t),Ed()}},unregister:{enumerable:Sd,value:(...t)=>{cc.remove(...t),Ed()}}});class Td extends ql{constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=Na(i,{x:t,y:e}),{startAngle:r,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ea(d,s-r)>=wa||Ha(o,r,s),p=Wa(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(a+r+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>wa?Math.floor(n/wa):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=va&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:a,startAngle:r,circumference:s}=e;let l=e.endAngle;if(a){Dd(t,e,n,i,r+wa,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=r+s%wa,s%wa===0&&(l+=wa))}return Dd(t,e,n,i,l,o),t.fill(),l}(t,this,r,o,a);Od(t,this,r,o,s,a),t.restore()}}function Pd(t,e,n=e){t.lineCap=ea(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ea(n.borderDash,e.borderDash)),t.lineDashOffset=ea(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ea(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ea(n.borderWidth,e.borderWidth),t.strokeStyle=ea(n.borderColor,e.borderColor)}function Rd(t,e,n){t.lineTo(n.x,n.y)}function Ld(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:r,end:s}=e,l=Math.max(o,r),c=Math.min(a,s),d=o<r&&a<r||o>s&&a>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Fd(t,e,n,i){const{points:o,options:a}=e,{count:r,start:s,loop:l,ilen:c}=Ld(o,n,i),d=function(t){return t.stepped?os:t.tension||"monotone"===t.cubicInterpolationMode?rs:Rd}(a);let h,u,p,{move:f=!0,reverse:g}=i||{};for(h=0;h<=c;++h)u=o[(s+(g?c-h:h))%r],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,g,a.stepped),p=u);return l&&(u=o[(s+(g?c:0))%r],d(t,p,u,g,a.stepped)),!!l}function Id(t,e,n,i){const o=e.points,{count:a,start:r,ilen:s}=Ld(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,g,m=0,b=0;const x=t=>(r+(c?s-t:t))%a,y=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),m=(b*m+e)/++b):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),g=n}y()}function Nd(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Id:Fd}Td.id="arc",Td.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Td.defaultRoutes={backgroundColor:"backgroundColor"};const zd="function"==typeof Path2D;function Bd(t,e,n,i){zd&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Pd(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,r=Nd(e);for(const s of o)Pd(t,a,s.style),t.beginPath(),r(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Vd extends ql{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=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,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Hs(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const a=!!t._loop,{start:r,end:s}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return pl(t,!0===i?[{start:r,end:s,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let r,s=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(r-1)%o,loop:i}),e=s=n.stop?r:null):(s=r,l.skip&&(e=r)),l=n}return null!==s&&a.push({start:e%o,end:s%o,loop:i}),a}(n,r,s<r?s+o:s,!!t._fullLoop&&0===r&&s===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=ul(this,{property:e,start:i,end:i});if(!a.length)return;const r=[],s=function(t){return t.stepped?el:t.tension||"monotone"===t.cubicInterpolationMode?nl:tl}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){r.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return Nd(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Nd(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)a&=o(t,this,r,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Bd(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Hd(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}Vd.id="line",Vd.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Vd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Vd.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class jd extends ql{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Hd(this,t,"x",e)}inYRange(t,e){return Hd(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!es(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Qr(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Wd(t,e){const{x:n,y:i,base:o,width:a,height:r}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=r/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Ud(t,e,n,i){return t?0:ja(e,n,i)}function Gd(t){const e=Wd(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=gs(i);return{t:Ud(o.top,a.top,0,n),r:Ud(o.right,a.right,0,e),b:Ud(o.bottom,a.bottom,0,n),l:Ud(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=ms(o),r=Math.min(e,n),s=t.borderSkipped,l=i||Jo(o);return{topLeft:Ud(!l||s.top||s.left,a.topLeft,0,r),topRight:Ud(!l||s.top||s.right,a.topRight,0,r),bottomLeft:Ud(!l||s.bottom||s.left,a.bottomLeft,0,r),bottomRight:Ud(!l||s.bottom||s.right,a.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Yd(t,e,n,i){const o=null===e,a=null===n,r=t&&!(o&&a)&&Wd(t,i);return r&&(o||Wa(e,r.left,r.right))&&(a||Wa(n,r.top,r.bottom))}function $d(t,e){t.rect(e.x,e.y,e.w,e.h)}function Xd(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+r,radius:t.radius}}jd.id="point",jd.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},jd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class qd extends ql{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:a}=Gd(this),r=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?cs:$d;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),r(t,Xd(a,e,o)),t.clip(),r(t,Xd(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,Xd(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Yd(this,t,e,n)}inXRange(t,e){return Yd(this,t,null,e)}inYRange(t,e){return Yd(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Kd(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=Va(o),a=Va(a)),{property:t,start:o,end:a}}function Zd(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Jd(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Qd(t,e){let n=[],i=!1;return Zo(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,a=[];return e.segments.forEach(({start:t,end:e})=>{e=Zd(t,e,o);const r=o[t],s=o[e];null!==i?(a.push({x:r.x,y:i}),a.push({x:s.x,y:i})):null!==n&&(a.push({x:n,y:r.y}),a.push({x:n,y:s.y}))}),a}(t,e),n.length?new Vd({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function th(t){return t&&!1!==t.fill}function eh(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!Qo(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function nh(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ea(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(Jo(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return Qo(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function ih(t,e,n){const i=[];for(let o=0;o<n.length;o++){const a=n[o],{first:r,last:s,point:l}=oh(a,e,"x");if(!(!l||r&&s))if(r)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function oh(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,r=t.points;let s=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],i=r[e.start][n],c=r[e.end][n];if(Wa(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}qd.id="bar",qd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},qd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class rh{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:a}=this;return e=e||{start:0,end:wa},t.arc(i,o,a,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function sh(t){const{chart:e,fill:n,line:i}=t;if(Qo(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],a=i.segments,r=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(Qd({x:null,y:e.bottom},i));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)ih(o,r[t],s)}return new Vd({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,a=i.reverse?e.max:e.min,r=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Jo(t)?t.value:e.getBaseValue(),i}(n,e,a),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new rh({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,r));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Jo(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(Qo(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof rh?o:Qd(o,i)}function lh(t,e,n){const i=sh(e),{line:o,scale:a,axis:r}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(ns(t,n),function(t,e){const{line:n,target:i,above:o,below:a,area:r,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&a!==o&&(ch(t,i,r.top),dh(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),ch(t,i,r.bottom));dh(t,{line:n,target:i,color:a,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:a,axis:r}),is(t))}function ch(t,e,n){const{segments:i,points:o}=e;let a=!0,r=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Zd(i,l,o)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,s,{move:r}),r?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function dh(t,e){const{line:n,target:i,property:o,color:a,scale:r}=e,s=function(t,e,n){const i=t.segments,o=t.points,a=e.points,r=[];for(const t of i){let{start:i,end:s}=t;s=Zd(i,s,o);const l=Kd(n,o[i],o[s],t.loop);if(!e.segments){r.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=ul(e,l);for(const e of c){const i=Kd(n,a[e.start],a[e.end],e.loop),s=hl(t,o,i);for(const t of s)r.push({source:t,target:e,start:{[n]:Jd(l,i,"start",Math.max)},end:{[n]:Jd(l,i,"end",Math.min)}})}}return r}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=a}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,hh(t,r,h&&Kd(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():uh(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||uh(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function hh(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:a,start:r,end:s}=n||{};"x"===a&&(t.beginPath(),t.rect(r,i,s-r,o-i),t.clip())}function uh(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var ph={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let a,r,s,l;for(r=0;r<i;++r)a=t.getDatasetMeta(r),s=a.dataset,l=null,s&&s.options&&s instanceof Vd&&(l={visible:t.isDatasetVisible(r),index:r,fill:nh(s,r,i),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,o.push(l);for(r=0;r<i;++r)l=o[r],l&&!1!==l.fill&&(l.fill=eh(o,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(a,n.axis),i&&n.fill&&lh(t.ctx,n,a))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;th(n)&&lh(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;th(i)&&"beforeDatasetDraw"===n.drawTime&&lh(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const fh=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class gh extends ql{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=ia(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=xs(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:s}=fh(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,s)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+r;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*r>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+r}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=r,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,a)=>{const g=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*r>c&&(d+=h+r,l.push({width:h,height:u}),p+=h+r,f++,h=u=0),s[a]={left:p,top:u,col:f,width:g,height:i},h=Math.max(h,g),u+=i+r}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=rl(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=Qa(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,r=Qa(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=a.leftForLtr(a.x(r),s.width),r+=s.width+i}else{let o=0,r=Qa(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,r=Qa(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=r,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),r+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ns(t,this),this._draw(),is(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,r=Xr.color,s=rl(t.rtl,this.left,this.width),l=xs(a.font),{color:c,padding:d}=a,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:g,itemHeight:m}=fh(a,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:Qa(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:Qa(o,this.top+x+d,this.bottom-e[0].height),line:0},sl(this.ctx,t.textDirection);const y=m+d;this.legendItems.forEach((v,w)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const _=i.measureText(v.text).width,k=s.textAlign(v.textAlign||(v.textAlign=a.textAlign)),E=f+u+_;let S=p.x,C=p.y;s.setWidth(this.width),b?w>0&&S+E+d>this.right&&(C=p.y+=y,p.line++,S=p.x=Qa(o,this.left+d,this.right-n[p.line])):w>0&&C+y>this.bottom&&(S=p.x=S+e[p.line].width+d,p.line++,C=p.y=Qa(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;i.save();const o=ea(n.lineWidth,1);if(i.fillStyle=ea(n.fillStyle,r),i.lineCap=ea(n.lineCap,"butt"),i.lineDashOffset=ea(n.lineDashOffset,0),i.lineJoin=ea(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ea(n.strokeStyle,r),i.setLineDash(ea(n.lineDash,[])),a.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);ts(i,r,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((h-g)/2,0),r=s.leftForLtr(t,f),l=ms(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?cs(i,{x:r,y:a,w:f,h:g,radius:l}):i.rect(r,a,f,g),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(S),C,v),S=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,S+f+u,b?S+E:this.right,t.rtl),function(t,e,n){ss(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),C,v),b?p.x+=E+d:p.y+=y}),ll(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=xs(e.font),i=bs(e.padding);if(!e.display)return;const o=rl(t.rtl,this.left,this.width),a=this.ctx,r=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=Qa(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+Qa(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=Qa(r,d,d+h);a.textAlign=o.textAlign(Ja(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,ss(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=xs(t.font),n=bs(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Wa(t,this.left,this.right)&&Wa(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Wa(t,i.left,i.left+i.width)&&Wa(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(i,n);i&&!o&&ia(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&ia(e.onHover,[t,n,this],this)}else n&&ia(e.onClick,[t,n,this],this)}}var mh={id:"legend",_element:gh,start(t,e,n){const i=t.legend=new gh({ctx:t.ctx,options:n,chart:t});Lc.configure(t,i,n),Lc.addBox(t,i)},stop(t){Lc.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Lc.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const r=t.controller.getStyle(n?0:void 0),s=bs(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:r.borderColor,pointStyle:i||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const bh={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,r=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=za(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,r=t.y}return{x:a,y:r}}};function xh(t,e){return e&&(Zo(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function yh(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function vh(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:r,value:s}=a.getLabelAndValue(o);return{chart:t,label:r,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function wh(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:r,boxHeight:s}=e,l=xs(e.bodyFont),c=xs(e.titleFont),d=xs(e.footerFont),h=a.length,u=o.length,p=i.length,f=bs(e.padding);let g=f.height,m=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){g+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,oa(t.title,y),n.font=l.string,oa(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,oa(i,t=>{oa(t.before,y),oa(t.lines,y),oa(t.after,y)}),x=0,n.font=d.string,oa(t.footer,y),n.restore(),m+=f.width,{width:m,height:g}}function _h(t,e,n,i){const{x:o,width:a}=n,{width:r,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=r-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,r=n.caretSize+n.caretPadding;return"left"===t&&o+a+r>e.width||"right"===t&&o-a-r<0||void 0}(c,t,e,n)&&(c="center"),c}function kh(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||_h(t,e,n,i),yAlign:i}}function Eh(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:s,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=ms(r);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:ja(f,0,i.width-e.width),y:ja(g,0,i.height-e.height)}}function Sh(t,e,n){const i=bs(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ch(t){return xh([],yh(t))}function Ah(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Mh extends ql{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new wl(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,vs(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let r=[];return r=xh(r,yh(i)),r=xh(r,yh(o)),r=xh(r,yh(a)),r}getBeforeBody(t,e){return Ch(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return oa(t,t=>{const e={before:[],lines:[],after:[]},o=Ah(n,t);xh(e.before,yh(o.beforeLabel.call(this,t))),xh(e.lines,o.label.call(this,t)),xh(e.after,yh(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Ch(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let r=[];return r=xh(r,yh(i)),r=xh(r,yh(o)),r=xh(r,yh(a)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let r,s,l=[];for(r=0,s=e.length;r<s;++r)l.push(vh(this.chart,e[r]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),oa(l,e=>{const n=Ah(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=bh[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=wh(this,n),r=Object.assign({},t,e),s=kh(this.chart,n,r),l=Eh(n,r,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:r}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=ms(r),{x:h,y:u}=t,{width:p,height:f}=e;let g,m,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(g=h,m=g-a,x=y+a,v=y-a):(g=h+p,m=g+a,x=y-a,v=y+a),b=g):(m="left"===i?h+Math.max(s,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(x=u,y=x-a,g=m-a,b=m+a):(x=u+f,y=x+a,g=m+a,b=m-a),v=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,r,s;if(o){const l=rl(n.rtl,this.x,this.width);for(t.x=Sh(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=xs(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,s+1===o&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=xs(o.bodyFont),h=Sh(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Qr(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Qr(t,e,n,c)}else{t.lineWidth=Jo(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),r=ms(a.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,cs(t,{x:e,y:f,w:l,h:s,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),cs(t,{x:n,y:f+1,w:l-2,h:s-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=a.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=xs(n.bodyFont);let h=d.lineHeight,u=0;const p=rl(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},g=p.textAlign(a);let m,b,x,y,v,w,_;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Sh(this,g,n),e.fillStyle=n.bodyColor,oa(this.beforeBody,f),u=r&&"right"!==g?"center"===a?l/2+c:l+2+c:0,y=0,w=i.length;y<w;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,oa(m.before,f),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,_=x.length;v<_;++v)f(x[v]),h=d.lineHeight;oa(m.after,f)}u=0,h=d.lineHeight,oa(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,r;if(o){const s=rl(n.rtl,this.x,this.width);for(t.x=Sh(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",a=xs(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:r,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=ms(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+d,s),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+l-h,s),e.quadraticCurveTo(r+l,s,r+l,s+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l,s+c-p),e.quadraticCurveTo(r+l,s+c,r+l-p,s+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+u,s+c),e.quadraticCurveTo(r,s+c,r,s+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(r,s+d),e.quadraticCurveTo(r,s,r+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=bh[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=wh(this,t),r=Object.assign({},n,this._size),s=kh(e,t,r),l=Eh(t,r,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=bs(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),sl(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ll(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!ra(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),r=this._positionChanged(a,t),s=e||!ra(a,o)||r;return s&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=bh[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}Mh.positioners=bh;var Dh={id:"tooltip",_element:Mh,positioners:bh,afterInit(t,e,n){n&&(t.tooltip=new Mh({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding: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:Xo,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:Xo,beforeBody:Xo,beforeLabel:Xo,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Ko(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Xo,afterBody:Xo,beforeFooter:Xo,footer:Xo,afterFooter:Xo}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Oh(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class Th extends sc{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Ko(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:ja(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Oh(n,t,ea(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Ph(t,e){const n=[],{bounds:i,step:o,min:a,max:r,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:g}=e,m=!Ko(a),b=!Ko(r),x=!Ko(l),y=(g-f)/(d+1);let v,w,_,k,E=Oa((g-f)/p/u)*u;if(E<1e-14&&!m&&!b)return[{value:f},{value:g}];k=Math.ceil(g/E)-Math.floor(f/E),k>p&&(E=Oa(k*E/p/u)*u),Ko(s)||(v=Math.pow(10,s),E=Math.ceil(E*v)/v),"ticks"===i?(w=Math.floor(f/E)*E,_=Math.ceil(g/E)*E):(w=f,_=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-a)/o,E/1e3)?(k=Math.round(Math.min((r-a)/E,c)),E=(r-a)/k,w=a,_=r):x?(w=m?a:w,_=b?r:_,k=l-1,E=(_-w)/k):(k=(_-w)/E,k=Pa(k,Math.round(k),E/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Ia(E),Ia(w));v=Math.pow(10,Ko(s)?S:s),w=Math.round(w*v)/v,_=Math.round(_*v)/v;let C=0;for(m&&(h&&w!==a?(n.push({value:a}),w<a&&C++,Pa(Math.round((w+C*E)*v)/v,a,Rh(a,y,t))&&C++):w<a&&C++);C<k;++C)n.push({value:Math.round((w+C*E)*v)/v});return b&&h&&_!==r?n.length&&Pa(n[n.length-1].value,r,Rh(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&_!==r||n.push({value:_}),n}function Rh(t,e,{horizontal:n,minRotation:i}){const o=La(i),a=(n?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Th.id="category",Th.defaults={ticks:{callback:Th.prototype.getLabelForValue}};class Lh extends sc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Ko(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,r=t=>o=n?o:t;if(t){const t=Da(i),e=Da(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Ph({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Ra(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return ol(t,this.chart.options.locale,this.options.ticks.format)}}class Fh extends Lh{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Qo(t)?t:0,this.max=Qo(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=La(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Ih(t){return 1===t/Math.pow(10,Math.floor(Ma(t)))}Fh.id="linear",Fh.defaults={ticks:{callback:Zl.formatters.numeric}};class Nh extends sc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Lh.prototype.parse.apply(this,[t,e]);if(0!==n)return Qo(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Qo(t)?Math.max(0,t):null,this.max=Qo(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,a=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(Ma(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(r(n,-1)),a(r(i,1)))),n<=0&&o(r(i,-1)),i<=0&&a(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&o(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ma(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=ta(t.min,Math.pow(10,Math.floor(Ma(e.min)))),r=Math.floor(Ma(a)),s=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:Ih(a)}),++s,10===s&&(s=1,++r,l=r>=0?1:l),a=Math.round(s*Math.pow(10,r)*l)/l}while(r<n||r===n&&s<i);const c=ta(t.max,a);return o.push({value:c,major:Ih(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ra(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":ol(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ma(t),this._valueRange=Ma(this.max)-Ma(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ma(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function zh(t){const e=t.ticks;if(e.display&&t.display){const t=bs(e.backdropPadding);return ea(e.font&&e.font.size,Xr.font.size)+t.height}return 0}function Bh(t,e,n){return n=Zo(n)?n:[n],{w:Kr(t,e.string,n),h:n.length*e.lineHeight}}function Vh(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Hh(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,s=r.centerPointLabels?va/a:0;for(let l=0;l<a;l++){const a=r.setContext(t.getPointLabelContext(l));o[l]=a.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=xs(a.font),h=Bh(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Va(t.getIndexAngle(l)+s),p=Math.round(Fa(u));jh(n,e,u,Vh(p,c.x,h.w,0,180),Vh(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,r=zh(a)/2,s=t.drawingArea,l=a.pointLabels.centerPointLabels?va/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,s+r+n[a],l),c=Math.round(Fa(Va(o.angle+Sa))),d=e[a],h=Gh(o.y,d.h,c),u=Wh(c),p=Uh(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function jh(t,e,n,i,o){const a=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/r,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function Wh(t){return 0===t||180===t?"center":t<180?"left":"right"}function Uh(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Gh(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Yh(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,wa);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}Nh.id="logarithmic",Nh.defaults={ticks:{callback:Zl.formatters.logarithmic,major:{enabled:!0}}};class $h extends Lh{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=bs(zh(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Qo(t)&&!isNaN(t)?t:0,this.max=Qo(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/zh(this.options))}generateTickLabels(t){Lh.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=ia(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Hh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Va(t*(wa/(this._pointLabels.length||1))+La(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Ko(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Ko(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return vs(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Sa+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Yh(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,r,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=xs(e.font),{x:r,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Ko(p)){const t=ms(e.borderRadius),i=bs(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,r=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),cs(n,{x:o,y:a,w:r,h:s,radius:t}),n.fill()):n.fillRect(o,a,r,s)}ss(n,t._pointLabels[o],r,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,a=e.circular,{color:r,lineWidth:s}=e;!a&&!i||!r||!s||n<0||(o.save(),o.strokeStyle=r,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),Yh(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),r,o)}}),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,r)=>{if(0===r&&!e.reverse)return;const s=n.setContext(this.getContext(r)),l=xs(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),s.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=bs(s.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}ss(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}$h.id="radialLinear",$h.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},$h.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},$h.descriptors={angleLines:{_fallback:"grid"}};const Xh={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}},qh=Object.keys(Xh);function Kh(t,e){return t-e}function Zh(t,e){if(Ko(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),Qo(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(o&&(r="week"!==o||!Ta(a)&&!0!==a?n.startOf(r,o):n.startOf(r,"isoWeek",a)),+r)}function Jh(t,e,n,i){const o=qh.length;for(let a=qh.indexOf(t);a<o-1;++a){const t=Xh[qh[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return qh[a]}return qh[o-1]}function Qh(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Ua(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function tu(t,e,n){const i=[],o={},a=e.length;let r,s;for(r=0;r<a;++r)s=e[r],o[s]=r,i.push({value:s,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),r=e[e.length-1].value;let s,l;for(s=a;s<=r;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class eu extends sc{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new pc._date(t.adapters.date);i.init(e),ha(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Zh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function s(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=Qo(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=Qo(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?Jh(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=qh.length-1;a>=qh.indexOf(n);a--){const n=qh[a];if(Xh[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return qh[n?qh.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=qh.indexOf(t)+1,n=qh.length;e<n;++e)if(Xh[qh[e]].common)return qh[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),tu(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=ja(i,0,a),o=ja(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||Jh(o.minUnit,e,n,this._getLabelCapacity(e)),r=ea(o.stepSize,1),s="week"===a&&o.isoWeekday,l=Ta(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,r,a),h++)Qh(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Qh(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,r=this._unit,s=this._majorUnit,l=r&&a[r],c=s&&a[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?ia(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=La(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*o+r*a,h:n*a+r*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,tu(this,[t],this._majorUnit),i),a=this._getLabelSize(o),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Zh(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return qa(t.sort(Kh))}}function nu(t,e,n){let i,o,a,r,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Ga(t,"pos",e)),({pos:i,time:a}=t[s]),({pos:o,time:r}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Ga(t,"time",e)),({time:i,pos:a}=t[s]),({time:o,pos:r}=t[l]));const c=o-i;return c?a+(r-a)*(e-i)/c:a}eu.id="time",eu.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class iu extends eu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=nu(e,this.min),this._tableRange=nu(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,r,s,l,c;for(a=0,r=t.length;a<r;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,r=i.length;a<r;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&o.push({time:l,pos:a/(r-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(nu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return nu(this._table,n*this._tableRange+this._minPos,!0)}}iu.id="timeseries",iu.defaults=eu.defaults;const ou="label";function ru(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function su(t,e){t.labels=e}function lu(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ou;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function cu(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ou;const n={labels:[],datasets:[]};return su(n,t.labels),lu(n,t.datasets,e),n}function du(t,e){let{height:n=150,width:i=300,redraw:o=!1,datasetIdKey:a,type:r,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:h,...u}=t;const p=lt(null),f=lt(),g=()=>{p.current&&(f.current=new kd(p.current,{type:r,data:cu(s,a),options:l&&{...l},plugins:c}),ru(e,f.current))},m=()=>{ru(e,null),f.current&&(f.current.destroy(),f.current=null)};return ct(()=>{var t,e;!o&&f.current&&l&&(t=f.current,e=l,Object.assign(t.options,e))},[o,l]),ct(()=>{!o&&f.current&&su(f.current.config.data,s.labels)},[o,s.labels]),ct(()=>{!o&&f.current&&s.datasets&&lu(f.current.config.data,s.datasets,a)},[o,s.datasets]),ct(()=>{f.current&&(o?(m(),setTimeout(g)):f.current.update(h))},[o,l,s.labels,s.datasets,h]),ct(()=>{f.current&&(m(),setTimeout(g))},[r]),ct(()=>(g(),()=>m()),[]),tt.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:i},u),d)}const hu=nt(du);kd.register(Th,Fh,jd,Vd,Gl,Dh,mh,ph);var uu=function(t){var e=t.xValues,n=t.yValues,i=t.dataPrefix,o=t.dataPostfix,a=t.straitsXStyle,r=t.height,s=void 0===r?40:r,l=lt(null),c=st({datasets:[]}),d=c[0],h=c[1],u={labels:e,datasets:[{data:n}]},p=i||"",f=o||"";ct(function(){var t=l.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");var o=Et(Et({},u),{datasets:u.datasets.map(function(t){return Et(Et({},t),{backgroundColor:a?i:n,fill:!0,borderColor:a?"#00D37E":"#2E8DEE",pointRadius:0})})});h(o)}},[a,e,n]);var g={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:a?1:0,backgroundColor:a?"#ffffff":"#000000",titleColor:a?"#1B2736":"#fff",bodyColor:a?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return a?"".concat(p).concat(t[0].parsed.y).concat(f):t[0].label},label:function(t){return a?t.label:"".concat(p).concat(t.parsed.y).concat(f)}}}},scales:{x:{ticks:{color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(p).concat(t).concat(f)}},grid:{display:!1,drawBorder:!1}}}};return tt.createElement("div",{style:{position:"relative",height:"".concat(s,"vh"),width:"99%"}},tt.createElement(hu,{id:"chart",ref:l,type:"line",data:d,options:g}))};function pu(t){var e=t.children,n=t.activeKey,i=t.width,o=void 0===i?250:i,a=kt(t,["children","activeKey","width"]),r=Gi().brand,s=e.map(function(t,e){return tt.createElement(Mt.TabPane,{key:e,forceRender:!0},t)}),l=e.map(function(t,e){return tt.createElement(_u,{key:e,isActive:e===n,activeColor:r.primary.default})});return tt.createElement(yu,null,tt.createElement(vu,Et({renderTabBar:function(){return tt.createElement("div",null)},width:o,activeKey:n.toString(),animated:!0},a),s),tt.createElement(wu,null,l))}var fu,gu,mu,bu,xu,yu=Xn.div(fu||(fu=_t(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),vu=Xn(Mt)(gu||(gu=_t(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),wu=Xn.span(mu||(mu=_t(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),_u=Xn.span(bu||(bu=_t(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function ku(t){var e=t.menu,n=t.children,i=t.type,o=void 0===i?"default":i,a=t.placement,r=void 0===a?"bottomLeft":a,s=t.className,l=void 0===s?"":s,c=t.trigger,d=void 0===c?["click"]:c,h=t.disabled,u=void 0!==h&&h,p=kt(t,["menu","children","type","placement","className","trigger","disabled"]),f=Gi(),g=f.brand,m=f.spacing,b="\n background-color: ".concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n\n &:focus {\n background-color: ").concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(g.action.hover,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n }\n "),x="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(g.action.disabledOpacity,";\n "),y=Xn(Dt.Button)(xu||(xu=_t(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),mi,_i,b,!0===u&&x,m.md,mi,_i,b,!0===u&&x,m.sm);if("split"===o)return tt.createElement(y,Et({className:l,menu:e,placement:r,trigger:d},p),n);var v=lt(null);return ct(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=v.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),tt.createElement(Dt,Et({menu:e,placement:r,trigger:d},p),tt.createElement("div",{ref:v},n))}function Eu(t){var e=t.type;return t.disabled?"\n color: ".concat(Vn.G400,";\n "):"filter"===e?"\n color: ".concat(Hn.PRIMARY_BLACK,";\n opacity: 1;\n "):"dropdown"===e?"\n color: ".concat(Vn.G400,";\n opacity: 1;\n "):""}function Su(t){var e=t.mode,n=t.disabled,i=t.type,o="\n width: 100%;\n ".concat(vi,"\n ").concat(function(t){switch(t.type){case"dropdown":return"color: ".concat(Vn.BLACK,";");case"filter":return"color: ".concat(Vn.G400,";");default:return""}}({type:i}),"\n cursor: pointer;\n\n &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple:not(.ant-select-customize-input) .ant-select-selector {\n ").concat(function(t){var e=t.mode,n=t.type;if("multiple"===e)return"min-height: 36px;";if(void 0===e)switch(n){case"dropdown":return"height: 44px;";case"filter":return"height: 36px;"}return""}({mode:e,type:i}),"\n\n\n border-radius: 5px;\n border-color: ").concat(Vn.G200,";\n ").concat(function(t){var e=t.mode,n=t.type;if("multiple"===e)return"";switch(n){case"dropdown":return"\n padding-top: 0px;\n padding-bottom: 0px;\n padding-left: 15px;\n padding-right: 30px;\n ";case"filter":return"padding: 0 13px;";default:return""}}({mode:e,type:i}),"\n\n &:hover {\n ").concat(n?"":"border-color: ".concat(Ri.brand.primary.default,";"),"\n }\n\n &:active .ant-select-selection-placeholder {\n ").concat("filter"===i?"\n color: ".concat(Ri.brand.primary.default,";\n "):"","\n }\n }\n\n &.ant-select-single.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector {\n border-color: ").concat(Ri.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(Ri.brand.primary.background,";\n box-shadow: 0 0 0 2px ").concat(Ri.brand.primary.background,";\n }\n\n &.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n line-height: 34px;\n ").concat(Eu({type:i,disabled:n}),"\n }\n\n &.ant-select-multiple .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n line-height: 34px;\n ").concat(Eu({type:i,disabled:n}),"\n }\n\n &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {\n height: 100%;\n }\n\n & .ant-select-selection-search > input {\n color: ").concat(Vn.BLACK,";\n padding-bottom: 2px;\n }\n\n &.ant-select-single .ant-select-selector .ant-select-selection-item {\n display: flex;\n align-items: center;\n line-height: 34px;\n color: ").concat(Hn.PRIMARY_BLACK,";\n\n ").concat("filter"!==i||n?"":"\n color: ".concat(Hn.PRIMARY_BLACK,";\n "),"\n }\n\n &.ant-select-single.ant-select-show-arrow .ant-select-selection-item {\n padding-right: 15px;\n }\n\n &.ant-select-multiple .ant-select-selection-item {\n height: 28px;\n color: #FFFFFF;\n background: ").concat(Ri.brand.primary.default,';\n border-radius: 23px;\n border: 0;\n display: inline-flex;\n align-items: center;\n font-family: "Hanken Grotesk", Inter;\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n padding-left: 10px;\n cursor: pointer;\n font-family: ').concat(io,";\n }\n\n &.ant-select-multiple .ant-select-selection-item-remove {\n font-size: 10px;\n color: #FFFFFF;\n padding-right: 5px;\n margin-top: 2px;\n }\n\n &.ant-select-multiple .ant-select-selection-item-content {\n margin-right: 3px;\n }\n\n &.ant-select-multiple .zoom-leave {\n display: none;\n }\n\n &.ant-select-multiple .ant-select-selection-placeholder {\n left: 16px;\n ").concat("filter"!==i||n?"":"\n color: ".concat(Hn.PRIMARY_BLACK,";\n opacity: 1;\n "),"\n }\n\n & .ant-select-selection-placeholder {\n opacity: 1;\n }\n\n &.ant-select-disabled.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n color: ").concat(Vn.BLACK,";\n }\n\n &.ant-select-disabled.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n background: #F6F7F9;\n }\n\n & .ant-select-arrow .anticon.anticon-search {\n transform: scale(1.3);\n margin-left: -10px;\n }\n\n &.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {\n border-color: ").concat(Ri.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(Ri.brand.primary.default,"33;\n box-shadow: 0 0 0 2px ").concat(Ri.brand.primary.default,"33;\n }\n ");return o}en(Cu||(Cu=_t(["\n .ant-select-dropdown .ant-select-item-option {\n -webkit-font-smoothing: antialiased;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 400;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n font-weight: 500;\n }\n\n div.ant-select-dropdown {\n border-radius: 5px;\n max-height: 100vh;\n overflow-y: scroll;\n }\n"],["\n .ant-select-dropdown .ant-select-item-option {\n -webkit-font-smoothing: antialiased;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 400;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n font-weight: 500;\n }\n\n div.ant-select-dropdown {\n border-radius: 5px;\n max-height: 100vh;\n overflow-y: scroll;\n }\n"])),Hn.PRIMARY_BLACK,io,Vi.P1);var Cu,Au,Mu=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.type,s=t.mode,l=t.label,c=t.selectRef,d=kt(t,["className","children","disabled","type","mode","label","selectRef"]),h=Gi(),u=h.spacing,p=h.brand;en(Au||(Au=_t(["\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n background-color: #F0FFF9 /* "," */;\n\n .ant-select-item-option-state {\n color: #00D37E /* "," */;\n\n &:hover {\n border-color: ",";\n }\n \n &.ant-picker-focused {\n border-color: ",";\n }\n \n .ant-picker-active-bar {\n background: ",";\n }\n }\n }\n "],["\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n background-color: #F0FFF9 /* "," */;\n\n .ant-select-item-option-state {\n color: #00D37E /* "," */;\n\n &:hover {\n border-color: ",";\n }\n \n &.ant-picker-focused {\n border-color: ",";\n }\n \n .ant-picker-active-bar {\n background: ",";\n }\n }\n }\n "])),p.primary.background,p.primary.illustration,p.primary.default,p.primary.default,p.primary.default);var f=Su({mode:s,disabled:a,type:r});return tt.createElement(tt.Fragment,null,l&&tt.createElement(Lo,{style:{marginBottom:u.xs}},l),tt.createElement(Ot,Et({className:"".concat(nn(f)," ").concat(n),disabled:a,mode:s,ref:c},d),i))};Mu.Tag=function(t){var e=t.className,n=void 0===e?"":e,i=kt(t,["className"]),o=Gi().brand.primary,a="\n height: 28px;\n color: #FFFFFF;\n background: ".concat(o.default,";\n border-radius: 23px;\n border: 0;\n display: inline-flex;\n align-items: center;\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n padding-left: 10px;\n cursor: pointer;\n font-family: ").concat(io,";\n padding-right: 10px;\n margin-right: 4px;\n\n &:hover {\n opacity: 1;\n }\n\n &.ant-tag .anticon-close {\n color: white;\n margin-left: 5px;\n margin-top: 0px;\n }\n ");return tt.createElement(Tt,Et({className:"".concat(nn(a)," ").concat(n)},i))},Mu.OptGroup=Ot.OptGroup,Mu.Option=Ot.Option;var Du=function(t,e){var n=e.iconSrc,i=void 0===n?null:n,o=e.extraText,a=void 0===o?"":o,r=e.extraAction,s=void 0===r?function(){}:r,l=e.isAddItemBarVisible,c=void 0===l||l,d=e.topContent,h=e.bottomContent,u=e.actionContent;return tt.createElement(Fu,null,d,t,u||function(t){var e=t.iconSrc,n=void 0===e?null:e,i=t.extraText,o=void 0===i?"":i,a=t.extraAction,r=void 0===a?function(){}:a,s=t.isAddItemBarVisible;return void 0===s||s?tt.createElement(Nu,{onMouseDown:function(){r()}},n?tt.createElement(Iu,{src:n}):tt.createElement(ft,null),o):null}({iconSrc:i,extraText:a,extraAction:s,isAddItemBarVisible:c}),h)},Ou=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.mode,s=t.label,l=t.iconSrc,c=void 0===l?"":l,d=t.extraText,h=void 0===d?"":d,u=t.extraAction,p=void 0===u?function(){}:u,f=t.isAddItemBarVisible,g=void 0===f||f,m=t.topContent,b=void 0===m?null:m,x=t.bottomContent,y=void 0===x?null:x,v=t.actionContent,w=void 0===v?null:v,_=kt(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return tt.createElement(Mu,Et({className:n,type:"dropdown",disabled:a,mode:r,label:s,dropdownRender:function(t){return Du(t,{iconSrc:c,extraText:h,extraAction:p,isAddItemBarVisible:g,topContent:b,bottomContent:y,actionContent:w})}},_),i)};Ou.Option=Mu.Option;var Tu,Pu,Ru,Lu,Fu=Xn.div(Tu||(Tu=_t(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),Iu=Xn.img(Pu||(Pu=_t(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),Nu=Xn(Ro)(Ru||(Ru=_t(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),zu=nn(Lu||(Lu=_t(["\n & .ant-form-item {\n margin-bottom: 0;\n }\n\n & .ant-form-item-has-error {\n font-family: ",";\n font-size: ",";\n line-height: 17px;\n\n & .ant-form-item-explain {\n color: ",";\n padding-top: 5px;\n padding-bottom: 5px;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: ",";\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: ",";\n font-weight: 400;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: "," !important;\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n -webkit-box-shadow: 0 0 0 3px ",";\n box-shadow: 0 0 0 3px ",";\n background-color: ",";\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: ",";\n background-color: ",";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border-color: ",";\n border-right: 0;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0;\n }\n\n & .ant-form-item-has-error {\n font-family: ",";\n font-size: ",";\n line-height: 17px;\n\n & .ant-form-item-explain {\n color: ",";\n padding-top: 5px;\n padding-bottom: 5px;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: ",";\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: ",";\n font-weight: 400;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: "," !important;\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n -webkit-box-shadow: 0 0 0 3px ",";\n box-shadow: 0 0 0 3px ",";\n background-color: ",";\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: ",";\n background-color: ",";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border-color: ",";\n border-right: 0;\n }\n }\n"])),io,Vi.P1,zn.R400,zn.R400,zn.R400,zn.R300,zn.R100,zn.R300,zn.R100,zn.R300,zn.R200,zn.R200,zn.R100,zn.R400,zn.R100,zn.R300),Bu=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=kt(t,["className","children"]);return tt.createElement(Pt,Et({className:tn(zu,n)},o),i)};Bu.Item=function(t){var e=t.className,n=void 0===e?"":e,i=kt(t,["className"]);return tt.createElement(Pt.Item,Et({className:tn(zu,n)},i))},Bu.useForm=Pt.useForm;var Vu,Hu,ju=function(t){var e=t.typographyType,n=void 0===e?"body":e,i=t.size,o=void 0===i?"md":i,a=t.textContent,r=t.children,s=t.href,l=t.target,c=t.rel,d=t.isUnderlined,h=void 0===d||d,u=t.icon,p=t.iconPlacement,f=void 0===p?"left":p,g=t.onClick,m=kt(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),b=Xn.a(Vu||(Vu=_t(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),u?"flex":"inline-flex",Ri.color.base.link,h?"underline":"none",Ri.color.base.link,h?"underline":"none",Ri.color.base.link),x=u&&"left"===f,y=u&&"right"===f,v=a||r;return tt.createElement(b,Et({href:s,target:l,rel:c,onClick:g},m),x&&u,"body"===n&&tt.createElement(cn.Body,{size:o,color:Ri.color.base.link},v),"label"===n&&tt.createElement(cn.Label,{size:o,color:Ri.color.base.link},v),y&&u)},Wu="\n -webkit-font-smoothing: antialiased;\n\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: 0;\n font-family: ".concat(io,";\n font-size: ").concat(Vi.P1,";\n color: ").concat(Vn.BLACK,";\n line-height: 17px;\n padding-left: 15px;\n padding-top: 12px;\n padding-bottom: 13px;\n\n &::placeholder {\n color: ").concat(Vn.G400,";\n font-weight: 400;\n }\n }\n\n &.ant-input, &.ant-input-password {\n border-radius: 5px;\n border-color: ").concat(Vn.G200,";\n\n &:hover {\n border-color: ").concat(Ri.brand.primary.default,";\n }\n\n &:focus {\n border-color: ").concat(Ri.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\n box-shadow: 0 0 0 3px #F0FFF9;\n color: ").concat(Vn.BLACK,"\n }\n }\n\n & .ant-input, .ant-input-password {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: ").concat(Vn.G200,";\n\n &:hover {\n border-color: ").concat(Ri.brand.primary.default,";\n }\n\n &:focus {\n border-color: ").concat(Ri.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\n box-shadow: 0 0 0 3px #F0FFF9;\n color: ").concat(Vn.BLACK,"\n }\n }\n\n &.ant-input-disabled {\n background-color: ").concat(Vn.G100,";\n border-color: ").concat(Vn.G200,";\n\n &:hover {\n border-color: ").concat(Vn.G200,";\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(io,";\n color: ").concat(Vn.BLACK,";\n background-color: ").concat(Vn.G100,";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border-color: ").concat(Vn.G200,";\n border-right: 0;\n padding-left: 15px;\n padding-right: 15px;\n\n + .ant-input-disabled {\n background-color: ").concat(Vn.G100,";\n border-color: ").concat(Vn.G200,";\n color: ").concat(Vn.G400,";\n\n &:hover {\n border-color: ").concat(Vn.G200,";\n }\n }\n }\n\n & .ant-input-group-addon:last-child {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: ").concat(Vn.G200,";\n }\n\n &.ant-input-search {\n padding: 0;\n font-family: ").concat(io,";\n font-size: ").concat(Vi.P1,";\n line-height: 17px;\n padding-left: 15px;\n padding-top: 6px;\n padding-bottom: 6px;\n border-radius: 5px;\n border-color: ").concat(Vn.G200,";\n width: 132px;\n\n &::placeholder {\n color: ").concat(Vn.G400,";\n font-weight: 400;\n }\n\n &:hover {\n border-color: ").concat(Ri.brand.primary.default,";\n }\n\n & > .ant-input-suffix {\n width: 18px;\n margin-right: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(Ri.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\n box-shadow: 0 0 0 3px #F0FFF9;\n }\n"),Uu=function(){var t=Gi().error;return tt.createElement("span",{style:{color:t.text,marginLeft:2}},"*")},Gu=function(){return tt.createElement(Fo,{style:{color:Vn.G500,marginLeft:3}},"Optional")},Yu=Xn.div(Hu||(Hu=_t(["\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n"],["\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n"]))),$u=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=t.optional,u=void 0!==h&&h,p=kt(t,["addonBefore","placeholder","disabled","className","label","required","optional"]);return tt.createElement(tt.Fragment,null,c&&tt.createElement(Yu,null,tt.createElement(Lo,null,c,d&&tt.createElement(Uu,null)),u&&tt.createElement(Gu,null)),tt.createElement(Rt,Et({className:"".concat(nn(Wu)," ").concat(l),addonBefore:n,placeholder:o,disabled:r},p)))};$u.Password=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=kt(t,["addonBefore","placeholder","disabled","className","label","required"]);return tt.createElement(tt.Fragment,null,c&&tt.createElement(Yu,null,tt.createElement(Lo,null,c,d&&tt.createElement(Uu,null))),tt.createElement(Rt.Password,Et({className:"".concat(nn(Wu)," ").concat(l),addonBefore:n,placeholder:o,disabled:r,visibilityToggle:!1},h)))},$u.Search=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.className,r=void 0===a?"":a,s=t.onChange,l=t.onSearch,c=kt(t,["addonBefore","placeholder","className","onChange","onSearch"]),d=Gi(),h=d.neutral,u=d.text,p=d.brand.primary,f="\n & .ant-input-group-addon:not(:last-child) {\n font-family: ".concat(io,";\n color: ").concat(u.default,";\n background-color: ").concat(h.white,";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border: 1px solid ").concat(h.border,";\n border-right: 0;\n padding: ").concat("string"==typeof n?"0 15px":"0",";\n\n & .ant-select {\n margin: 0;\n \n \n &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple:not(.ant-select-customize-input) .ant-select-selector {\n height: 38px;\n }\n \n &.ant-select-single.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector {\n border-color: ").concat(p.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(p.default,"33;\n box-shadow: 0 0 0 2px ").concat(p.default,"33;\n }\n } \n }\n\n & .ant-input-affix-wrapper, &.ant-input-affix-wrapper {\n border-radius: 5px;\n border: 1px solid ").concat(h.border,";\n padding: 8px 15px !important;\n\n &:hover {\n border-color: ").concat(p.default,";\n }\n }\n\n & .ant-input-affix-wrapper-focused, .ant-input-affix-wrapper:focus {\n border-color: ").concat(p.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(p.default,"33;\n box-shadow: 0 0 0 2px ").concat(p.default,"33;\n }\n ");return tt.createElement(Rt,Et({placeholder:o,addonBefore:n,onChange:s,onKeyDown:l,className:"".concat(nn(f)," ").concat(r),suffix:tt.createElement(ju,{style:{display:"grid",justifyContent:"center"},onClick:l},tt.createElement(gt,{style:{color:h.emphasis}}))},c))},$u.TextArea=function(t){var e=t.className,n=void 0===e?"":e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=kt(t,["className","label","required","optional"]),c="\t \n &.ant-input {\t \n resize: none;\t\n border-radius: 5px;\t \n font-family: ".concat(io,";\t \n font-size: ").concat(Vi.P1,";\t \n color: ").concat(Vn.BLACK,";\t \n line-height: 17px;\t\n padding-top: 12px;\t\n padding-left: 15px;\t\n padding-right: 15px;\t\n padding-bottom: 12px;\t\n border-color: ").concat(Vn.G200,";\t\n }\t\n &.ant-input::placeholder {\t\n color: ").concat(Vn.G400,";\t\n font-weight: 400;\t\n }\t\n &.ant-input:hover {\t\n border-color: ").concat(Ri.brand.primary.default,";\t\n }\t\n &.ant-input:focus {\t\n border-color: ").concat(Ri.brand.primary.default,";\t\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\t\n box-shadow: 0 0 0 3px #F0FFF9;\t\n color: ").concat(Vn.BLACK,"\t\n }\t\n");return tt.createElement(tt.Fragment,null,i&&tt.createElement(Yu,null,tt.createElement(Lo,null,i,a&&tt.createElement(Uu,null)),s&&tt.createElement(Gu,null)),tt.createElement(Rt.TextArea,Et({className:"".concat(nn(c)," ").concat(n)},l)))},$u.Group=Rt.Group;Li('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Xu={xs:16,s:20,m:24,l:32,xl:40,xxl:48},qu=function(t){var e=t.icon,n=t.size,i=void 0===n?"m":n,o=t.fill,a=void 0===o?0:o,r=t.color,s=void 0===r?Vn.BLACK:r,l=t.className,c=void 0===l?"":l,d=t.style,h="string"==typeof i?Xu[i]:i,u=Et({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:h,color:s},d);return tt.createElement("span",{className:"material-symbols-rounded ".concat(c),style:u,translate:"no"},e)},Ku={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Zu={sm:"xs",lg:"s"},Ju={positive:{base:Ri.color.surface.subduePositive,text:Ri.color.status.positive,icon:Ri.color.status.positive,border:Ri.color.status.positive},critical:{base:Ri.color.surface.subdueCritical,text:Ri.color.status.critical,icon:Ri.color.status.critical,border:Ri.color.status.critical},warning:{base:Ri.color.surface.subdueWarning,text:Ri.color.status.warning,icon:Ri.color.status.warning,border:Ri.color.status.warning},info:{base:Ri.color.surface.SubdueInfo,text:Ri.color.status.info,icon:Ri.color.status.info,border:Ri.color.status.info},neutral:{base:Vn.G100,text:Ri.color.base.onNeutralSecondary,icon:Ri.color.base.onNeutralSecondary,border:Ri.color.base.line}},Qu={positive:{base:Ri.color.status.positive,text:Ri.color.base.onContainer,icon:"",border:Ri.color.status.positive},neutral:{base:Ri.color.surface.disabledSurface,text:Ri.color.surface.disabledOnSurface,icon:"",border:Ri.color.base.line}},tp={positive:{base:Ri.color.surface.subduePositive,text:Ri.color.status.positive,icon:Ri.color.status.positive,border:Ri.color.status.positive},disabled:{base:Ri.color.surface.disabledSurface,text:Ri.color.surface.disabledOnSurface,icon:Ri.color.surface.disabledOnSurface,border:Ri.color.base.line},neutral:{base:Ri.color.surface.neutral,text:Ri.color.base.onNeutralSecondary,icon:Ri.color.base.onNeutralSecondary,border:Ri.color.base.line}};function ep(t,e,n){switch(e){case"outlined":default:return Ju[t][n];case"filled":return Qu[t][n];case"removable":return tp[t][n]}}function np(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,a=t.size,r=void 0===a?"sm":a,s=t.variant,l=void 0===s?"outlined":s,c=t.onClick;return tt.createElement(Sp,{type:e,size:r,variant:l,onClick:"removable"!==l?c:void 0},o&&"disabled"!==e&&tt.createElement(qu,{icon:Ku[e],size:Zu[r],color:ep(e,l,"icon")}),tt.createElement(cn.Body,{size:r,color:ep(e,l,"text")},n),"removable"===l&&tt.createElement(Ep,{onClick:c,type:"tertiary",icon:tt.createElement(qu,{icon:"close",size:Zu[r],color:ep(e,l,"icon")})}))}var ip,op,rp,sp,lp,cp,dp,hp,up,pp,fp,gp,mp,bp,xp,yp,vp,wp,_p,kp,Ep=Xn(eo)(ip||(ip=_t(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),Sp=Xn.div(op||(op=_t(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return n=(e=t).type,i=e.variant,o=void 0===i?"outlined":i,a=e.size,r=void 0===a?"sm":a,s=e.onClick,"\n border-radius: ".concat("removable"===o?"999px":"4px",";\n min-height: ").concat("sm"===r?"24px":"32px",";\n background-color: ").concat(n&&o?ep(n,o,"base"):"transparent",";\n border: 1px solid ").concat(n&&o?ep(n,o,"border"):"transparent",";\n padding-inline: ").concat("removable"===o?"12px":"8px",";\n cursor: ").concat(s?"pointer":"default",";\n\n");var e,n,i,o,a,r,s}),Cp=function(t){var e=t.onClose,n=t.icon,i=t.title,o=t.children,a=t.footer,r=t.disabledCloseIcon,s=t.className,l=Gi().neutral;return tt.createElement(Rp,{className:s},(n||i||!r)&&tt.createElement(Ap,{hasIcon:Boolean(n)},tt.createElement(Op,null,tt.createElement(Tp,null,n,tt.createElement(To,null,i||"")),!r&&tt.createElement(Pp,{onClick:function(){return e()}},tt.createElement(ut,{color:l.text,width:18}))),tt.createElement(zo,null)),tt.createElement(Mp,null,o),a&&tt.createElement(Dp,null,a))},Ap=Xn.div(rp||(rp=_t(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Oi,Oi),Mp=Xn(Ro)(sp||(sp=_t(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Di,Oi,Oi,Oi),Dp=Xn.div(lp||(lp=_t(["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Oi,Ai,Ai),Op=Xn.div(cp||(cp=_t(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Tp=Xn.div(dp||(dp=_t(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Pp=Xn.div(hp||(hp=_t(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"]))),Rp=Xn.div(up||(up=_t(["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"]))),Lp=document.body,Fp=function(t){var e=Gi().neutral,n=st(document.createElement("div"))[0];return ct(function(){return Lp.appendChild(n),function(){Lp.removeChild(n)}},[n]),Ut.createPortal(tt.createElement(Np,{open:t.open},t.open&&tt.createElement(An,{styles:Sn(pp||(pp=_t(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),tt.createElement("div",{className:"".concat(nn(fp||(fp=_t(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(t.modalClassName)},tt.createElement(zp,{hasIcon:Boolean(t.icon)},tt.createElement(Hp,null,tt.createElement(jp,null,t.icon,tt.createElement(To,null,t.title)),!t.disabledCloseIcon&&tt.createElement(Wp,{onClick:function(){return t.onClose()}},tt.createElement(ut,{color:e.text,width:18}))),tt.createElement(zo,null)),tt.createElement(Bp,null,t.children),tt.createElement(Vp,null,t.footer))),n)},Ip=Dn(gp||(gp=_t(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Np=Xn.div(bp||(bp=_t(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&Sn(mp||(mp=_t(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),Ip)}),zp=Xn.div(xp||(xp=_t(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Oi,Oi),Bp=Xn.div(yp||(yp=_t(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Di,Oi,Oi,Oi),Vp=Xn.div(vp||(vp=_t(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Oi,Ai,Ai),Hp=Xn.div(wp||(wp=_t(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),jp=Xn.div(_p||(_p=_t(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Wp=Xn.div(kp||(kp=_t(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));function Up(t){var e=t.current,n=t.pageSize,i=t.total,o=t.onChange,a=t.showSizeChanger,r=t.onShowSizeChange,s=t.pageSizeOptions,l="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(Vn.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(io,";\n border-radius: 5px;\n border: 1px solid ").concat(Vn.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(Hn.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return tt.createElement(Lt,{className:"".concat(nn(l)),current:e,pageSize:n,total:i,onChange:o,showSizeChanger:a,onShowSizeChange:r,pageSizeOptions:s})}var Gp={Group:function(t){return tt.createElement(Ft.Group,Et({size:"large",onChange:t.onChange},t))},Button:function(t){var e=t.children,n=t.disabled,i=kt(t,["children","disabled"]),o=Gi().brand,a="\n &.ant-radio-button-wrapper {\n ".concat(n?"":"color: ".concat(Vn.BLACK,";"),"\n -webkit-font-smoothing: antialiased;\n display: block;\n width: 100%;\n font-family: ").concat(io,";\n font-weight: 400;\n border-radius: 5px;\n border: 1px solid ").concat(Vn.G200,";\n user-select: none;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(n?"":"\n border-color: ".concat(o.primary.default,";\n color: ").concat(Vn.BLACK,";\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(o.primary.default,";\n color: ").concat(o.primary.default,";\n\n circle {\n transition: all 0.3s;\n }\n\n circle.center {\n fill: ").concat(He.S500,";\n }\n\n circle.border {\n stroke: ").concat(o.primary.default,";\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(o.primary.default,";\n color: ").concat(o.primary.default,";\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(Vn.BLACK,";\n }\n ");return tt.createElement(Ft.Button,Et({className:nn(a),disabled:n},i),tt.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},tt.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},tt.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),tt.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),e))}};function Yp(t){var e=t.format,n=void 0===e?"DD/MM/YYYY":e,i=kt(t,["format"]),o="\n -webkit-font-smoothing: antialiased;\n height: 36px;\n\n &.ant-picker {\n border-radius: 5px;\n border-color: #E8E8E8;\n transition: 0.3s all ease;\n\n &:hover {\n border-color: ".concat(Ri.brand.primary.default,";\n }\n\n &.ant-picker-focused {\n border-color: ").concat(Ri.brand.primary.default,";\n box-shadow: 0 0 0 2px ").concat(Ri.brand.primary.background,";\n }\n\n .ant-picker-active-bar {\n background: ").concat(Ri.brand.primary.default,";\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io,";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n color: #121212;\n }\n\n & .ant-picker-input > input {\n color: #121212;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(Vn.G400,";\n }\n "),a="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(Ri.brand.primary.default,";\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(Ri.brand.primary.default,";\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: #F0FFF9;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: #F0FFF9;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: #F0FFF9;\n }\n } \n ");return tt.createElement(It.RangePicker,Et({className:"".concat(nn(o)),format:n,popupClassName:nn(a)},i))}var $p,Xp,qp=Xn("div")($p||($p=_t(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},di,function(t){return"lg"===t.only?"none":"block"}),Kp=function(t){var e=t.className,n=kt(t,["className"]),i="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(mi,"\n ").concat(Ci,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(mi,"\n ").concat(Si,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(mi,"\n ").concat(Ci,"\n color: #777777;\n }\n ");return tt.createElement(Nt,Et({},n,{className:tn(nn(i),e)}))};Kp.Step=function(t){var e=kt(t,[]),n=nn(Xp||(Xp=_t(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return tt.createElement(Nt.Step,Et({className:tn(n)},e))};var Zp,Jp,Qp,tf,ef,nf,of=function(t){var e=t.current,n=t.steps,i=t.desktopNote,o=lt(null),a=Gi(),r=a.brand,s=a.success,l=a.neutral;ct(function(){var t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);var c=Xn.div(Zp||(Zp=_t(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),l.border,l.background),d=Xn.div(Jp||(Jp=_t(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),l.emphasis,function(t){return t.current===t.index?"\n background: ".concat(r.primary.default,";\n "):t.current>t.index?"\n background: ".concat(s.emphasis,";\n "):""}),h=Xn.div(Qp||(Qp=_t(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),l.emphasis),u=Xn.div(tf||(tf=_t(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),p=Xn(Ro)(ef||(ef=_t(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return tt.createElement(tt.Fragment,null,tt.createElement(qp,{only:"sm"},tt.createElement("div",{style:{padding:"30px",width:"266px"}},tt.createElement(Kp,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map(function(t,e){return tt.createElement(Kp.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),i)),tt.createElement(qp,{only:"lg",ref:o},tt.createElement(c,null,tt.createElement(u,null,n.map(function(t,i){return tt.createElement("span",{key:"mobile-".concat(t,"-").concat(i)},tt.createElement(p,{inactive:e<i,current:e===i},tt.createElement(d,{index:i,current:e}),t),i!==n.length-1&&tt.createElement(h,null))})))))},rf=nn(nf||(nf=_t(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),io,Be.DEFAULT),sf=function(t){var e=t.className,n=t.emptyText,i=kt(t,["className","emptyText"]);return tt.createElement(zt,Et({className:tn(rf,e),locale:{emptyText:n}},i))},lf=function(t){var e=t.children,n=kt(t,["children"]),i=Gi().brand,o="\n font-family: ".concat(io,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(i.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(i.primary.default,"; \n }\n ");return tt.createElement(Mt,Et({className:"".concat(nn(o))},n),e)};lf.TabPane=Mt.TabPane;var cf=function(t){var e=t.initialSeconds,n=t.blinkActivationSeconds,i=t.shouldRepeat,o=t.onTimesUp,a=t.children,r=st(!1),s=r[0],l=r[1],c=st(e),d=c[0],h=c[1],u=st(void 0),p=u[0],f=u[1],g=st(!0),m=g[0],b=g[1],x=Date.now()+1e3*d;return ct(function(){m&&(f(setInterval(function(){var t=(new Date).getTime(),e=x-t,i=Math.ceil(e/1e3);i>=0&&h(i),n&&i<=n&&l(!0)},1e3)),b(!1))},[m]),ct(function(){d<=0&&void 0!==p&&(clearInterval(p),f(void 0),l(!1),o&&o(),i&&(h(e),b(!0)))},[p,d]),a(s,d)};function df(t){var e=t.disabled,n=void 0!==e&&e,i=t.label,o=t.required,a=void 0!==o&&o,r=kt(t,["disabled","label","required"]),s=Gi(),l=s.error,c=s.spacing,d="\n -webkit-font-smoothing: antialiased;\n height: 44px;\n width: 100%;\n\n ".concat(n?"\n pointer-events: none;\n ":"","\n\n &.ant-picker {\n border-radius: 5px;\n border-color: #E8E8E8;\n transition: 0.3s all ease;\n\n &:hover {\n border-color: ").concat(Ri.brand.primary.default," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(Ri.brand.primary.default," !important;\n box-shadow: 0 0 0 2px ").concat(Ri.brand.primary.background," !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io,";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n color: #121212;\n }\n\n & .ant-picker-input > input {\n font-size: 14px;\n color: #121212;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px;\n color: ").concat(Vn.G400,";\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(Vn.G100,";\n border: 1px solid ").concat(Vn.G200,";\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(Vn.BLACK,";\n }\n\n & .ant-picker-cell-in-view{\n &.ant-picker-cell-today .ant-picker-cell-inner{\n &:before {\n border-color: ").concat(Ri.brand.primary.default,";\n } \n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(Ri.brand.primary.background,";\n }\n }\n "),h="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{\n background-color: ".concat(Ri.brand.primary.default,";\n }\n ");return tt.createElement(tt.Fragment,null,i&&tt.createElement(Lo,{style:{display:"flex",marginBottom:c.xs}},i,a&&tt.createElement(function(){return tt.createElement("span",{style:{color:l.text,marginLeft:2}},"*")},null)),tt.createElement(It,Et({className:"".concat(nn(d)),popupClassName:nn(h),disabled:n},r)))}var hf,uf,pf,ff,gf,mf,bf,xf,yf,vf,wf,_f,kf,Ef,Sf,Cf,Af,Mf,Df={Group:function(t){var e=t.className,n=void 0===e?"":e,i=kt(t,["className"]),o="\n &.ant-checkbox-group {\n width: 100%;\n }\n\n & .ant-checkbox-group-item {\n display: flex;\n align-items: flex-start;\n\n border: 1px solid ".concat(Ri.brand.line.base,";\n border-radius: 5px;\n\n &:hover {\n border: 1px solid ").concat(Ri.brand.primary.default,";\n }\n\n &:focus-within {\n border: 1px solid ").concat(Ri.brand.primary.default,";\n }\n\n &:not(:last-child) {\n margin-bottom: 10px;\n width: 100%;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(Ri.brand.primary.default,";\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px;\n padding-top: 11px;\n padding-bottom: 11px;\n line-height: 1.6;\n color: ").concat(Vn.BLACK,";\n font-family: ").concat(io,";\n }\n\n & .ant-checkbox {\n margin-top: 4px;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px;\n padding-right: 10px;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(Ri.brand.primary.illustration,";\n border-color: ").concat(Ri.brand.primary.default,";\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px;\n border: 1px solid ").concat(Ri.brand.primary.default,";\n }\n ");return tt.createElement(Bt.Group,Et({className:"".concat(nn(o)," ").concat(n)},i))}},Of=function(t){var e=t.title,n=void 0===e?"No results found":e,i=t.subtitle,o=t.info,a=t.svgUniqueId,r=void 0===a?"randomString":a;return tt.createElement(Tf,null,tt.createElement(Vt,{image:tt.createElement(mt,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),n&&tt.createElement(Pf,null,n),i&&tt.createElement(Rf,null,i),o&&tt.createElement(Lf,null,o))},Tf=Xn.div(hf||(hf=_t(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),Pf=Xn(Lo)(uf||(uf=_t(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),Rf=Xn(Ro)(pf||(pf=_t(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),je.S500),Lf=Xn(Ro)(ff||(ff=_t(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),Be.DEFAULT),Ff=function(t){var e=t.title,n=t.children,i=Gi(),o=i.spacing,a=i.neutral,r=Xn.div(gf||(gf=_t(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),o.sm,o.md,a.background);return tt.createElement(r,null,tt.createElement(Lo,{style:{marginBottom:o.sm}},e),n)},If=function(t){var e=t.title,n=t.children,i=Array.isArray(n)&&n.length>1,o=Xn.div(mf||(mf=_t(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),Ri.color.surface.subduePositive),a=Xn.div(bf||(bf=_t(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),Ri.color.status.positive,e?"5px":"0px");return tt.createElement(o,null,tt.createElement(a,null,tt.createElement(cn.Label,{size:"md"},e),i?tt.createElement(cn.Body,{size:"md",style:{scrollbarWidth:"none"}},tt.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return tt.createElement("li",{key:e},t)}))):tt.createElement(cn.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},Nf=function(t){var e=t.withIcon,n=void 0!==e&&e,i=t.children,o=t.type,a=void 0===o?"primary":o,r=kt(t,["withIcon","children","type"]),s=Gi(),l=s.brand,c=s.spacing,d="\n color: ".concat(Ri.color.base.primary,";\n background: ").concat(l.primary.background,";\n "),h="\n color: ".concat(Ri.color.status.positive,";\n background: ").concat(Ri.color.surface.subduePositive,";\n "),u="\n color: ".concat(Ri.color.status.warning,";\n background: ").concat(Ri.color.surface.subdueWarning,";\n "),p="\n color: ".concat(Ri.color.status.critical,";\n background: ").concat(Ri.color.surface.subdueCritical,";\n "),f="\n color: ".concat(Ri.color.base.onNeutral,"};\n background: ").concat(Ri.color.surface.SubdueInfo,";\n "),g=Xn.div(xf||(xf=_t(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),c.sm,function(){switch(a){case"primary":default:return d;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}}()),m=nn(yf||(yf=_t(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return tt.createElement(g,Et({},r),n&&("primary"===a?tt.createElement(bt,{style:{minHeight:"18px",minWidth:"18px"},color:l.primary.emphasis,className:tn(m)}):"success"===a?tt.createElement(xt,{style:{minHeight:"18px",minWidth:"18px"},color:Ri.color.status.positive,className:tn(m)}):"warning"===a?tt.createElement(yt,{style:{minHeight:"18px",minWidth:"18px"},color:Ri.color.status.warning,className:tn(m)}):"error"===a?tt.createElement(vt,{style:{minHeight:"18px",minWidth:"18px"},color:Ri.color.status.critical,className:tn(m)}):"notification"===a?tt.createElement(bt,{style:{minHeight:"18px",minWidth:"18px"},color:Ri.color.status.info,className:tn(m)}):tt.createElement(tt.Fragment,null)),tt.createElement(cn.Body,{size:"md"},i))},zf={Title:Xn(Po)(vf||(vf=_t(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:Xn(Ro)(wf||(wf=_t(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:Xn.div(_f||(_f=_t(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),di),Left:Xn.div(kf||(kf=_t(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),di),Right:Xn.div(Ef||(Ef=_t(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),di)};var Bf,Vf,Hf,jf,Wf,Uf,Gf,Yf,$f=oe(function(){if(Mf)return Af;Mf=1;var t=Cf?Sf:(Cf=1,Sf=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return Af=function(n,i){var o,a,r,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(r=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=e[i.format]||e.default;window.clipboardData.setData(a,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),a=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return d}}()),Xf=Xn.div(Bf||(Bf=_t(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),qf=Xn.div(Vf||(Vf=_t(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Kf=Xn.div(Hf||(Hf=_t(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Zf=Xn.div(jf||(jf=_t(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),Jf=Xn.div(Wf||(Wf=_t(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),Ri.color.surface.disabledSurface,Ri.color.base.line),Qf=Xn.div(Uf||(Uf=_t(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),tg=Xn.div(Gf||(Gf=_t(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),Ri.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),eg=Xn(Ct)(Yf||(Yf=_t(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),Ri.color.base.line,Ri.color.surface.neutral,mi,Ri.brand.primary.default),ng=function(t){var e=t.value,n=t.allowCopy,i=void 0===n||n,o=t.valueToCopy,a=void 0===o?e:o,r=t.isBankAddress,s=void 0!==r&&r,l=t.showCopyIcon,c=void 0===l||l,d=t.icon,h=t.iconSize,u=t.labelText,p=t.labelTooltip,f=t.helperText,g=t.helperTextType,m=t.onButtonClick;return tt.createElement(Xf,null,tt.createElement(qf,null,u&&tt.createElement(cn.Body,{size:"md",color:Ri.color.base.onNeutral},u),p&&tt.createElement(Kf,null,p)),tt.createElement(Jf,null,tt.createElement(Qf,null,d&&tt.createElement(Zf,{iconSize:h},d),tt.createElement(cn.Body,{size:"lg"},tt.createElement(tg,{isBankAddress:s},e))),i&&tt.createElement(eg,{onClick:function(){void 0!==m&&m(),$f(a)}},c?tt.createElement(wt,null):tt.createElement(cn.Label,{size:"md",color:Ri.brand.primary.default},"Copy"))),f&&tt.createElement(cn.Body,{size:"sm",color:"error"===g?Ri.color.status.critical:Ri.color.base.onNeutralSecondary},f))};function ig(t){var e=t.children,n=t.placement,i=void 0===n?"bottomRight":n,o=t.overlayClassName,a=void 0===o?bg:o,r=t.arrowPointAtCenter,s=void 0===r||r,l=t.trigger,c=void 0===l?"hover":l,d=t.color,h=t.title,u=t.content,p=t.mouseEnterDelay,f=void 0===p?0:p,g=t.mouseLeaveDelay,m=void 0===g?0:g,b=t.isNew,x=void 0!==b&&b,y=t.actionTitle,v=t.dismissTitle,w=t.maxWidth,_=t.onAction,k=t.onDismiss,E=w?{maxWidth:w}:void 0;return tt.createElement(Ht,{overlayClassName:a,arrowPointAtCenter:s,trigger:c,color:d,placement:i,overlayStyle:E,title:tt.createElement(xg,null,h&&tt.createElement(Lo,{style:{fontSize:Vi.P1,marginBottom:"16px",color:Ri.text.white}},h,!0===x&&tt.createElement(vg,null,"New")),u,(y||v)&&tt.createElement(yg,null,tt.createElement(_g,{onClick:function(t){t.preventDefault(),k&&k()}},v),tt.createElement(wg,{onClick:function(t){t.preventDefault(),_&&_()}},y))),mouseEnterDelay:f,mouseLeaveDelay:m},e)}var og,rg,sg,lg,cg,dg,hg,ug,pg,fg,gg,mg,bg=nn(og||(og=_t(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"])),pi,Vi.P1,Bi.REGULAR,Ri.text.white,Ri.brand.primary.contrast,di,Ri.brand.primary.contrast),xg=Xn.div(rg||(rg=_t(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),yg=Xn.div(sg||(sg=_t(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),vg=Xn.span(lg||(lg=_t(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),Nn.G400,Ri.text.white,Vi.SMALL,Bi.BOLD),wg=Xn.a(cg||(cg=_t(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Bi.BOLD,Ri.brand.action.default,Ri.brand.action.hover),_g=Xn.a(dg||(dg=_t(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Bi.BOLD,Ri.text.white,Ri.text.white),kg=function(t){var e=t.title,n=t.subtitle,i=t.content,o=t.fallbackContent,a=t.backgroundColor,r=Gi(),s=r.neutral,l=r.text,c=Xn.div(hg||(hg=_t(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),pi,s.bluish),d=Xn.div(ug||(ug=_t(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),pi,di,function(t){return t.backgroundColor||s.background}),h=Xn.div(pg||(pg=_t(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),pi,l.default,bi),u=Xn.div(fg||(fg=_t(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),l.default,vi);return tt.createElement(d,{backgroundColor:a},tt.createElement(c,null,e),tt.createElement(h,null,n),tt.createElement(u,null,i),o)},Eg=function(t){var e=t.size,n=kt(t,["size"]),i=Gi().brand,o=nn(gg||(gg=_t(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),i.primary.default);return tt.createElement(jt,Et({className:tn(o),size:e},n))},Sg=function(t){var e=t.label,n=t.amount,i=t.type,o=void 0===i?"default":i,a=t.height,r=void 0===a?91:a,s=t.width,l=void 0===s?230:s,c=t.isInverted,d=void 0!==c&&c,h=t.icon,u=Xn(Do)(mg||(mg=_t(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof l?"".concat(l,"px"):l,r,h&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",d&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return tt.createElement(u,{type:o},h&&h,tt.createElement("div",null,tt.createElement(Ro,{style:{marginBottom:d?"0":"5px"}},e),tt.createElement(Oo,{style:{marginBottom:d?"5px":"0"}},n)))},Cg=function(t){var e=t.className,n=kt(t,["className"]);return tt.createElement(Wt,Et({},n,{className:tn(nn("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),e)}))};function Ag(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,a=t.step,r=t.tooltipProps,s=t.backProps,l=a.title,c=a.content,d=a.data;return tt.createElement(Ng,{role:r.role},tt.createElement(zg,null,tt.createElement(Bg,null,tt.createElement(cn.Label,{size:"md"},l),tt.createElement(Vg,{role:o.role,onClick:o.onClick},tt.createElement(qu,{icon:"close",size:"m"}))),tt.createElement(cn.Body,{size:"md"},c)),tt.createElement(Hg,null,tt.createElement(jg,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==d?void 0:d.skipZeroIndex)?tt.createElement(tt.Fragment,null):tt.createElement(Wg,{key:n,isActive:n===e})})),tt.createElement(Gg,null,s&&tt.createElement(Ug,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===e,onClick:s.onClick,isUnderlined:!1},"Back"),tt.createElement(ju,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))}Cg.Item=Wt.Item;var Mg,Dg,Og,Tg,Pg,Rg,Lg,Fg,Ig,Ng=Xn.div(Mg||(Mg=_t(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),Ri.color.surface.secondaryNeutral),zg=Xn.div(Dg||(Dg=_t(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),Ri.color.base.onNeutral),Bg=Xn.div(Og||(Og=_t(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Vg=Xn(ju)(Tg||(Tg=_t(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),Hg=Xn.div(Pg||(Pg=_t(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),jg=Xn.div(Rg||(Rg=_t(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),Wg=Xn.span(Lg||(Lg=_t(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(Ri.color.base.primary3):"".concat(Ri.color.surface.disabledOnSurface)}),Ug=Xn(ju)(Fg||(Fg=_t(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(Ri.color.surface.disabledOnSurface):"".concat(Ri.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),Gg=Xn.div(Ig||(Ig=_t(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));function Yg(t){var e=t||{},n=e.arrowColor,i=void 0===n?Ri.color.surface.secondaryNeutral:n,o=e.arrowLength,a=void 0===o?8:o,r=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:a,spread:void 0===r?16:r,color:i}}}}}var $g,Xg,qg,Kg,Zg=tt.createContext({setModal:function(){return null},resetModal:function(){return null}}),Jg=document.body,Qg=function(t){var e=t.modal,n=st(document.createElement("div"))[0];n.setAttribute("id","modal-root"),ct(function(){return Jg.appendChild(n),function(){Jg.removeChild(n)}},[n]);var i=tt.createElement(An,{styles:Sn($g||($g=_t(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return Ut.createPortal(tt.createElement(im,{open:!!e},!!e&&i,e),n)},tm=function(t){var e=t.children,n=st(),i=n[0],o=n[1],a=dt(function(){o(void 0)},[o]);return tt.createElement(Zg.Provider,{value:{resetModal:a,setModal:o}},e,tt.createElement(Qg,{modal:i}))},em=function(){var t=tt.useContext(Zg);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},nm=Dn(Xg||(Xg=_t(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),im=Xn.div(Kg||(Kg=_t(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&Sn(qg||(qg=_t(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),nm)});export{Vo as Accordion,no as ActionButton,Bo as ActionCard,li as Alert,Un as BACKGROUND_COLORS,In as BLUE_COLORS,$o as BadgeIcon,Nf as Banner,eo as Button,Do as Card,pu as Carousel,uu as Chart,Df as Checkbox,Ag as Coachmark,Ff as ContentBreakdown,ng as CopyBox,di as DESKTOP_BREAKPOINT,df as DatePicker,Fp as DeprecatedModal,zo as Divider,ku as Dropdown,Ou as DynamicSelect,ci as EXTRA_LARGE_DESKTOP_BREAKPOINT,Of as EmptyData,kg as ErrorPage,oo as FALLBACK_FONT,Vi as FONT_SIZE,Bi as FONT_WEIGHT,Bu as Form,Nn as GREEN_COLORS,Oo as H1,To as H2,Po as H3,Io as H4,qp as Hidden,jn as ICON_COLORS,$u as Input,hi as LAPTOP_BREAKPOINT,Hi as LINE_HEIGHT,ju as Link,Hn as MAIN_COLORS,io as MAIN_FONT,qu as MaterialSymbols,Cp as Modal,tm as ModalProvider,Vn as NEUTRAL_COLORS,If as Note,Ro as P1,Lo as P1Bold,Up as Pagination,zn as RED_COLORS,Gp as Radio,Yp as RangePicker,zf as Section,Mu as Select,Fo as SmallP,Eg as Spin,of as Steps,Sg as SummaryCard,ui as TABLET_BREAKPOINT,Wn as TEXT_COLORS,sf as Table,lf as Tabs,np as Tag,Ui as ThemeProvider,Cg as Timeline,cf as Timer,ig as Tooltip,cn as Typography,Bn as YELLOW_COLORS,Yg as getCoachmarkJoyrideConfig,Ri as straitsXTheme,em as useModal,Gi as useTheme,Pi as xfersTheme};
|
|
21
|
+
*/var xl=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],a=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ja.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,r=o.length-1,s=!1;for(;r>=0;--r)a=o[r],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),s=!0):(o[r]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const yl="transparent",vl={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Ur(t||yl),o=i.valid&&Ur(e||yl);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class wl{constructor(t,e,n,i){const o=e[n];i=ws([t.to,i,o,t.from]);const a=ws([t.from,o,i]);this._active=!0,this._fn=t.fn||vl[t.type||typeof a],this._easing=lr[t.easing]||lr.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=ws([t.to,e,i,t.from]),this._from=ws([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,r=this._to;let s;if(this._active=o!==r&&(a||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,r,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}Kr.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const _l=Object.keys(Kr.animation);Kr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Kr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Kr.describe("animations",{_fallback:"animation"}),Kr.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:t=>0|t}}}});class kl{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!ta(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!ta(i))return;const o={};for(const t of _l)o[t]=i[t];(Qo(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,r);continue}d.cancel()}h&&h.duration?(o[l]=d=new wl(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(xl.add(this._chart,n),!0):void 0}}function El(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function Sl(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function Cl(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let r,s,l,c;if(null!==e){for(r=0,s=o.length;r<s;++r){if(l=+o[r],l===n){if(i.all)continue;break}c=t.values[l],ea(c)&&(a||0===e||Ta(e)===Ta(c))&&(e+=c)}return e}}function Al(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ml(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Dl(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Ol(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:r,index:s}=i,l=a.axis,c=r.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,r,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Ml(o,d,a),u[s]=h,u._top=Dl(u,r,!0,i.type),u._bottom=Dl(u,r,!1,i.type)}}function Tl(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Pl(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Rl=t=>"reset"===t||"none"===t,Ll=(t,e)=>e?t:Object.assign({},t);class Fl{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Al(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Pl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ia(n.xAxisID,Tl(t,"x")),a=e.yAxisID=ia(n.yAxisID,Tl(t,"y")),r=e.rAxisID=ia(n.rAxisID,Tl(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,a,r),c=e.vAxisID=i(s,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ka(this._data,this),t._stacked&&Pl(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(ta(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){Ka(n,this);const t=this._cachedMeta;Pl(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),qa.forEach(t=>{const e="_onData"+xa(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Al(e.vScale,e),e.stack!==n.stack&&(i=!0,Pl(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ol(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,r=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Qo(i[t])?this.parseArrayData(n,i,t,e):ta(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[r]||h&&l[r]<h[r];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&Ol(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,r=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[r]:c||o.parse(l[p],p),[s]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(ma(u,r),h),y:a.parse(ma(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,a=e[t.axis];return Cl({keys:Sl(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,a=Cl(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,r=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Sl(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(r);let h,u;function p(){u=i[h];const e=u[r.axis];return!ea(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],ea(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return ta(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ia(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=El(t,n),o=El(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,a=[],r=this._drawStart||0,s=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,r,s),c=r;c<r+s;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return _s(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return _s(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,r=o[a],s=this.enableOptionSharing&&ya(n);if(r)return Ll(r,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(Kr.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[a]=Object.freeze(Ll(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,r=o[a];if(r)return r;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(a,this.getContext(t,n,e))}const l=new kl(i,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Rl(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Rl(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Rl(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,a=t+e;let r;const s=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(s(o),r=t;r<a;++r)o[r]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Pl(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Il(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Za(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,a,r,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(ya(r)&&(s=Math.min(s,Math.abs(a-r)||s)),r=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return s}function Nl(t,e,n,i){return Qo(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),r=Math.min(o,a),s=Math.max(o,a);let l=r,c=s;Math.abs(r)>Math.abs(s)&&(l=s,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:r,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function zl(t,e,n,i){const o=t.iScale,a=t.vScale,r=o.getLabels(),s=o===a,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(r[c],c),l.push(Nl(u,h,a,c));return l}function Bl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Vl(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Hl(d,r,s,l)]=!0,o=c)),a[Hl(o,r,s,l)]=!0,t.borderSkipped=a}function Hl(t,e,n,i){var o,a,r;return i?(r=n,t=jl(t=(o=t)===(a=e)?r:o===r?a:o,n,e)):t=jl(t,e,n),t}function jl(t,e,n){return"start"===t?e:"end"===t?n:t}function Wl(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Fl.defaults={},Fl.prototype.datasetElementType=null,Fl.prototype.dataElementType=null;class Ul extends Fl{parsePrimitiveData(t,e,n,i){return zl(t,e,n,i)}parseArrayData(t,e,n,i){return zl(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?r:s,c="x"===a.axis?r:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(ma(f,l),h),d.push(Nl(ma(f,c),p,a,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),a=o._custom,r=Bl(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:r}}=this,s=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Jo(e[r.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[r.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Bl(e._custom)||a===f._top||a===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(g.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const m=g.options||t[u].options;Vl(g,m,f,a),Wl(g,m,c.ratio),this.updateElement(t[u],u,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,a=[],r=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Jo(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!r(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const r=t.barThickness;return{min:r||Il(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,r=this.getParsed(t),s=r._custom,l=Bl(s);let c,d,h=r[e.axis],u=0,p=n?this.applyStack(e,r,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Ta(h)!==Ta(s.barEnd)&&(u=0),u+=h);const f=Jo(i)||l?u:i;let g=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):g,d=c-g,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Ta(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(g-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);g=Math.max(Math.min(g,r),i),c=g+d}if(g===e.getPixelForValue(a)){const t=Ta(d)*e.getLineWidthForValue(a)/2;g+=t,d-=t}return{size:d,base:g,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=ia(i.maxBarThickness,1/0);let r,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,a=o[t];let r=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===r&&(r=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-r);const c=a-(a-Math.min(r,s))/2*l;return{chunk:Math.abs(s-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,r;return Jo(o)?(a=e.min*n.categoryPercentage,r=n.barPercentage):(a=o*i,r=1),{chunk:a/i,ratio:r,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(a,e.min*e.ratio);return{base:r-s/2,head:r+s/2,center:r,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ul.id="bar",Ul.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ul.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Gl extends Fl{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ia(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ia(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),r=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+a+", "+r+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=r.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),f=u[d]=o?r.getBasePixel():r.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ia(n&&n._custom,o),i}}Gl.id="bubble",Gl.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Gl.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Yl extends Fl{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,r=t=>+n[t];if(ta(n[t])){const{key:t="value"}=this._parsing;r=e=>+ma(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return Ia(this.options.rotation-90)}_getCircumference(){return Ia(this.options.circumference)}_getRotationExtents(){let t=ka,e=-ka;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(t,e,n){let i=1,o=1,a=0,r=0;if(e<ka){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>Wa(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>Wa(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),m=p(Aa,d,u),b=f(_a,c,h),x=f(_a+Aa,d,u);i=(g-b)/2,o=(m-x)/2,a=-(g+b)/2,r=-(m+x)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:r}}(u,h,s),b=(n.width-a)/p,x=(n.height-a)/f,y=Math.max(Math.min(b,x)/2,0),v=oa(this.options.radius,y),w=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,i.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/ka)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.chartArea,s=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+n;++g){const e=this._circumference(g,o),n=t[g],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:h};f&&(a.options=p||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ka*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,r,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,r=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=r.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ia(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Yl.id="doughnut",Yl.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Yl.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Yl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Qo(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class $l extends Fl{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:s}=nr(e,i,a);this._drawStart=r,this._drawCount=s,ir(e)&&(r=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,r,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=r.axis,{spanGaps:p,segment:f}=this.options,g=Ra(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=m?e:{},y=Jo(n[u]),v=x[h]=a.getPixelForValue(n[h],p),w=x[u]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[u],p);x.skip=isNaN(v)||isNaN(w)||y,x.stop=p>0&&Math.abs(n[h]-b[h])>g,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),m||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}$l.id="line",$l.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},$l.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Xl extends Fl{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Is.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*_a;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),g=a.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(r.animateScale&&(g=0),r.animateRotate&&(n=f=d));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Ia(this.resolveDataElementOptions(t,e).angle||n):0}}Xl.id="polarArea",Xl.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Xl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ql extends Yl{}ql.id="pie",ql.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Kl extends Fl{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Is.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let r=e;r<e+n;r++){const e=t[r],n=this.resolveDataElementOptions(r,e.active?"active":i),s=o.getPointPositionForValue(r,this.getParsed(r).r),l=a?o.xCenter:s.x,c=a?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,r,d,i)}}}Kl.id="radar",Kl.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Kl.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Zl{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ra(this.x)&&Ra(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Zl.defaults={},Zl.defaultRoutes=void 0;const Jl={values:t=>Qo(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const r=Oa(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),sl(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Oa(t)));return 1===i||2===i||5===i?Jl.numeric.call(this,t,e,n):""}};var Ql={formatters:Jl};function tc(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,r=o[0],s=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,r=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),a++,r=n[a*i])}(e,l,o,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((s-r)/(a-1)):null;for(ec(e,l,c,Jo(i)?0:r-i,r),t=0,n=a-1;t<n;t++)ec(e,l,c,o[t],o[t+1]);return ec(e,l,c,s,Jo(i)?e.length:s+i),l}return ec(e,l,c),l}function ec(t,e,n,i,o){const a=ia(i,0),r=Math.min(ia(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<r;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}Kr.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Ql.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Kr.route("scale.ticks","color","","color"),Kr.route("scale.grid","color","","borderColor"),Kr.route("scale.grid","borderColor","","borderColor"),Kr.route("scale.title","color","","color"),Kr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Kr.describe("scales",{_fallback:"scale"}),Kr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const nc=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ic(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function oc(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,r=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>r+s)))return c}function rc(t){return t.drawTicks?t.tickLength:0}function sc(t,e){if(!t.display)return 0;const n=vs(t.font,e),i=ys(t.padding);return(Qo(t.text)?t.text.length:1)*n.lineHeight+i.height}function lc(t,e,n){let i=tr(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class cc extends Zl{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=na(t,Number.POSITIVE_INFINITY),e=na(e,Number.NEGATIVE_INFINITY),n=na(n,Number.POSITIVE_INFINITY),i=na(i,Number.NEGATIVE_INFINITY),{min:na(t,n),max:na(e,i),minDefined:ea(t),maxDefined:ea(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let s=0,l=r.length;s<l;++s)e=r[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:na(n,na(i,n)),max:na(i,na(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ra(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,a=oa(e,(o-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(a)),max:r(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=r<this.ticks.length;this._convertTicksToLabels(s?ic(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=tc(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ra(this.options.afterUpdate,[this])}beforeSetDimensions(){ra(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ra(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ra(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ra(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=ra(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){ra(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ra(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,r,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Ua(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),r=this.maxHeight-rc(t.grid)-e.padding-sc(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Na(Math.min(Math.asin(Ua((c.highest.height+6)/a,-1,1)),Math.asin(Ua(r/s,-1,1))-Math.asin(Ua(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){ra(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ra(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=sc(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=rc(o)+a):(t.height=this.maxHeight,t.width=rc(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),s=2*n.padding,l=Ia(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:a},position:r}=this.options,s=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ra(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Jo(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=ic(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let r,s,l,c,d,h,u,p,f,g,m,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,d=this._resolveTickFontOptions(r),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=g=0,Jo(c)||Qo(c)){if(Qo(c))for(s=0,l=c.length;s<l;++s)m=c[s],Jo(m)||Qo(m)||(f=Zr(n,u.data,u.gc,f,m),g+=p)}else f=Zr(n,u.data,u.gc,f,c),g=p;o.push(f),a.push(g),b=Math.max(f,b),x=Math.max(g,x)}!function(t,e){sa(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const y=o.indexOf(b),v=a.indexOf(x),w=t=>({width:o[t]||0,height:a[t]||0});return{first:w(0),last:w(e-1),widest:w(y),highest:w(v),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Ua(this._alignToPixels?Qr(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return _s(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=_s(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Ia(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,r=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*n>r*i?r/n:s/i:s*i<r*n?s/n:r/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a}=i,r=o.offset,s=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=rc(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Qr(n,t,u)};let g,m,b,x,y,v,w,_,k,E,S,C;if("top"===a)g=f(this.bottom),v=this.bottom-c,_=g-p,E=f(t.top)+p,C=t.bottom;else if("bottom"===a)g=f(this.top),E=t.top,C=f(t.bottom)-p,v=g+p,_=this.top+c;else if("left"===a)g=f(this.right),y=this.right-c,w=g-p,k=f(t.left)+p,S=t.right;else if("right"===a)g=f(this.left),k=t.left,S=f(t.right)-p,y=g+p,w=this.left+c;else if("x"===e){if("center"===a)g=f((t.top+t.bottom)/2+.5);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];g=f(this.chart.scales[t].getPixelForValue(e))}E=t.top,C=t.bottom,v=g+p,_=v+c}else if("y"===e){if("center"===a)g=f((t.left+t.right)/2);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];g=f(this.chart.scales[t].getPixelForValue(e))}y=g-p,w=y-c,k=t.left,S=t.right}const A=ia(i.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/A));for(m=0;m<l;m+=M){const t=o.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=oc(this,m,r),void 0!==b&&(x=Qr(n,b,e),s?y=w=k=S=x:v=_=E=C=x,d.push({tx1:y,ty1:v,tx2:w,ty2:_,x1:k,y1:E,x2:S,y2:C,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),r=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=rc(n.grid),u=h+c,p=d?-c:u,f=-Ia(this.labelRotation),g=[];let m,b,x,y,v,w,_,k,E,S,C,A,M="middle";if("top"===i)w=this.bottom-p,_=this._getXAxisLabelAlignment();else if("bottom"===i)w=this.top+p,_=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);_=t.textAlign,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);_=t.textAlign,v=t.x}else if("x"===e){if("center"===i)w=(t.top+t.bottom)/2+u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)+u}_=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)v=(t.left+t.right)/2-u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}_=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const D=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],y=x.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,E=this._resolveTickFontOptions(m),S=E.lineHeight,C=Qo(y)?y.length:1;const e=C/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=_;if(a?(v=k,"inner"===_&&(u=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===l||0!==f?-C*S+S/2:"center"===l?-D.highest.height/2-e*S+S:-D.highest.height+S/2:"near"===l||0!==f?S/2:"center"===l?D.highest.height/2-e*S:D.highest.height-C*S,d&&(A*=-1)):(w=k,A=(1-C)*S/2),t.showLabelBackdrop){const e=ys(t.backdropPadding),n=D.heights[m],i=D.widths[m];let o=w+A-e.top,a=v-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(_){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:f,label:y,font:E,color:n,strokeColor:s,strokeWidth:c,textOffset:A,textAlign:u,textBaseline:M,translation:[v,w],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Ia(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=t+o,r=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l+=r)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l-=r)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Qr(t,this.left,o)-o/2,l=Qr(t,this.right,a)+a/2,c=d=r):(c=Qr(t,this.top,o)-o/2,d=Qr(t,this.bottom,a)+a/2,s=l=r),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&os(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),cs(e,a,0,t.textOffset,n,t)}n&&rs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=vs(n.font),a=ys(n.padding),r=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||ta(e)?(s+=a.bottom,Qo(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:r,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const g=r-o,m=s-a;if(t.isHorizontal()){if(u=er(i,a,s),ta(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:nc(t,n,e);h=s-a}else{if(ta(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-m+e}else u="center"===n?(c.left+c.right)/2-m+e:nc(t,n,e);p=er(i,r,o),f="left"===n?-Aa:Aa}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,r);cs(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:lc(r,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=ia(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===cc.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return vs(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class dc{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=ua(Object.create(null),[n?Kr.get(n):{},Kr.get(e),t.defaults]);Kr.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),r=e[n].split("."),s=r.pop(),l=r.join(".");Kr.route(a,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&Kr.describe(e,t.descriptors)}(t,a,n),this.override&&Kr.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Kr[i]&&(delete Kr[i][n],this.override&&delete Yr[n])}}var hc=new class{constructor(){this.controllers=new dc(Fl,"datasets",!0),this.elements=new dc(Zl,"elements"),this.plugins=new dc(Object,"plugins"),this.scales=new dc(cc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):sa(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=xa(t);ra(n["before"+i],[],n),e[t](n),ra(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class uc extends Fl{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=nr(e,n,i);if(this._drawStart=o,this._drawCount=a,ir(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:r},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=hc.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=r.axis,{spanGaps:f,segment:g}=this.options,m=Ra(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},y=Jo(n[p]),v=f[u]=a.getPixelForValue(n[u],c),w=f[p]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[p],c);f.skip=isNaN(v)||isNaN(w)||y,f.stop=c>0&&Math.abs(n[u]-x[u])>m,g&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function pc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}uc.id="scatter",uc.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},uc.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class fc{constructor(t){this.options=t||{}}init(t){}formats(){return pc()}parse(t,e){return pc()}format(t,e){return pc()}add(t,e,n){return pc()}diff(t,e,n){return pc()}startOf(t,e,n){return pc()}endOf(t,e){return pc()}}fc.override=function(t){Object.assign(fc.prototype,t)};var gc={_date:fc};function mc(t,e,n,i){const{controller:o,data:a,_sorted:r}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&r&&a.length){const t=s._reversePixels?Xa:$a;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),r=t(a,e,n+o);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function xc(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:s}=a[t],{lo:l,hi:c}=mc(a[t],e,r,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function yc(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return xc(t,n,e,function(n,r,s){(o||is(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:r,index:s})},!0),a}function vc(t,e,n,i,o,a){let r=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return xc(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!a||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(r=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&r.push({element:n,datasetIndex:c,index:d})}),r}function wc(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?vc(t,e,n,i,o,a):function(t,e,n,i){let o=[];return xc(t,n,e,function(t,n,a){const{startAngle:r,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ba(t,{x:e.x,y:e.y});Wa(l,r,s)&&o.push({element:t,datasetIndex:n,index:a})}),o}(t,e,n,o):[]}function _c(t,e,n,i,o){const a=[],r="x"===n?"inXRange":"inYRange";let s=!1;return xc(t,n,e,(t,i,l)=>{t[r](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:a}var kc={evaluateInteractionItems:xc,modes:{index(t,e,n,i){const o=Ks(e,t),a=n.axis||"x",r=n.includeInvisible||!1,s=n.intersect?yc(t,o,a,i,r):wc(t,o,a,!1,i,r),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Ks(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;let s=n.intersect?yc(t,o,a,i,r):wc(t,o,a,!1,i,r);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>yc(t,Ks(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Ks(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;return wc(t,o,a,n.intersect,i,r)},x:(t,e,n,i)=>_c(t,Ks(e,t),"x",n.intersect,i),y:(t,e,n,i)=>_c(t,Ks(e,t),"y",n.intersect,i)}};const Ec=["left","top","right","bottom"];function Sc(t,e){return t.filter(t=>t.pos===e)}function Cc(t,e){return t.filter(t=>-1===Ec.indexOf(t.pos)&&t.box.axis===e)}function Ac(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Mc(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!Ec.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,r,s;for(a=0,r=t.length;a<r;++a){s=t[a];const{fullSize:r}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:r&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:r&&e.availableHeight)}return n}function Dc(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Oc(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Tc(t,e,n,i){const{pos:o,box:a}=n,r=t.maxPadding;if(!ta(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Oc(r,a.getPadding());const s=Math.max(0,e.outerWidth-Dc(r,t,"left","right")),l=Math.max(0,e.outerHeight-Dc(r,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Pc(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Rc(t,e,n,i){const o=[];let a,r,s,l,c,d;for(a=0,r=t.length,c=0;a<r;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Pc(s.horizontal,e));const{same:r,other:h}=Tc(e,n,s,i);c|=r&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Rc(o,e,n,i)||d}function Lc(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Fc(t,e,n,i){const o=n.padding;let{x:a,y:r}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,a=l.size||t.height;ya(l.start)&&(r=l.start),t.fullSize?Lc(t,o.left,r,n.outerWidth-o.right-o.left,a):Lc(t,e.left+l.placed,r,i,a),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;ya(l.start)&&(a=l.start),t.fullSize?Lc(t,a,o.top,r,n.outerHeight-o.bottom-o.top):Lc(t,a,e.top+l.placed,r,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=r}Kr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ic={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=ys(t.options.layout.padding),a=Math.max(e-o.width,0),r=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,a,r,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:r,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:r&&a+r,stackWeight:s});return e}(t),n=Ac(e.filter(t=>t.box.fullSize),!0),i=Ac(Sc(e,"left"),!0),o=Ac(Sc(e,"right")),a=Ac(Sc(e,"top"),!0),r=Ac(Sc(e,"bottom")),s=Cc(e,"x"),l=Cc(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(r).concat(s),chartArea:Sc(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(r).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;sa(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),u=Object.assign({},o);Oc(u,ys(i));const p=Object.assign({maxPadding:u,w:a,h:r,x:o.left,y:o.top},o),f=Mc(l.concat(c),h);Rc(s.fullSize,p,h,f),Rc(l,p,h,f),Rc(c,p,h,f)&&Rc(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Fc(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Fc(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},sa(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Nc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class zc extends Nc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bc="$chartjs",Vc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Hc=t=>null===t||""===t;const jc=!!tl&&{passive:!0};function Wc(t,e,n){t.canvas.removeEventListener(e,n,jc)}function Uc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Gc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.addedNodes,i),e=e&&!Uc(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Yc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.removedNodes,i),e=e&&!Uc(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const $c=new Map;let Xc=0;function qc(){const t=window.devicePixelRatio;t!==Xc&&(Xc=t,$c.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Kc(t,e,n){const i=t.canvas,o=i&&Gs(i);if(!o)return;const a=Qa((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),r=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)});return r.observe(o),function(t,e){$c.size||window.addEventListener("resize",qc),$c.set(t,e)}(t,a),r}function Zc(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){$c.delete(t),$c.size||window.removeEventListener("resize",qc)}(t)}function Jc(t,e,n){const i=t.canvas,o=Qa(e=>{null!==t.ctx&&n(function(t,e){const n=Vc[t.type]||t.type,{x:i,y:o}=Ks(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,jc)}(i,e,o),o}class Qc extends Nc{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Bc]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Hc(o)){const e=el(t,"width");void 0!==e&&(t.width=e)}if(Hc(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=el(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Bc])return!1;const n=e[Bc].initial;["height","width"].forEach(t=>{const i=n[t];Jo(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Bc],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Gc,detach:Yc,resize:Kc}[e]||Jc;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Zc,detach:Zc,resize:Zc}[e]||Wc)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Js(t,e,n,i)}isAttached(t){const e=Gs(t);return!(!e||!e.isConnected)}}class td{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===ra(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Jo(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=ia(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(hc.plugins.items);for(let t=0;t<i.length;t++)n.push(hc.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const a=[],r=t.getContext();for(const s of e){const e=s.id,l=ed(i[e],o);null!==l&&a.push({plugin:s,options:nd(t.config,{plugin:s,local:n[e]},l,r)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function ed(t,e){return e||!1!==t?!0===t?{}:t:null}function nd(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(i,a);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function id(t,e){const n=Kr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function od(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function rd(t){const e=t.options||(t.options={});e.plugins=ia(e.plugins,{}),e.scales=function(t,e){const n=Yr[t.type]||{scales:{}},i=e.scales||{},o=id(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!ta(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=od(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};a[s]=a[s]||t,r[t]=pa(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||id(o,e),l=(Yr[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),pa(r[o],[{axis:e},i[o],l[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];pa(e,[Kr.scales[e.type],Kr.scale])}),r}(t,e)}function sd(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ld=new Map,cd=new Set;function dd(t,e){let n=ld.get(t);return n||(n=e(),ld.set(t,n),cd.add(n)),n}const hd=(t,e,n)=>{const i=ma(e,n);void 0!==i&&t.add(i)};class ud{constructor(t){this._config=function(t){return(t=t||{}).data=sd(t.data),rd(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=sd(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),rd(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return dd(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return dd(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return dd(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return dd(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),r=a.get(e);if(r)return r;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>hd(s,t,e))),e.forEach(t=>hd(s,i,t)),e.forEach(t=>hd(s,Yr[o]||{},t)),e.forEach(t=>hd(s,Kr,t)),e.forEach(t=>hd(s,$r,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),cd.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Yr[e]||{},Kr.datasets[e]||{},{type:e},Kr,$r]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=pd(this._resolverCache,t,i);let s=a;if(function(t,e){const{isScriptable:n,isIndexable:i}=Ss(t);for(const o of e){const e=n(o),a=i(o),r=(a||e)&&t[o];if(e&&(va(r)||fd(r))||a&&Qo(r))return!0}return!1}(a,e)){o.$shared=!1;s=Es(a,n=va(n)?n():n,this.createResolver(t,n,r))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=pd(this._resolverCache,t,n);return ta(e)?Es(o,e,void 0,i):o}}function pd(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:ks(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,a)}return a}const fd=t=>ta(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||va(t[n]),!1);const gd=["top","bottom","left","right","chartArea"];function md(t,e){return"top"===t||"bottom"===t||-1===gd.indexOf(t)&&"x"===e}function xd(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function yd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ra(n&&n.onComplete,[t],e)}function vd(t){const e=t.chart,n=e.options.animation;ra(n&&n.onProgress,[t],e)}function wd(t){return Us()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _d={},kd=t=>{const e=wd(t);return Object.values(_d).filter(t=>t.canvas===e).pop()};function Ed(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class Sd{constructor(t,e){const n=this.config=new ud(e),i=wd(t),o=kd(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Us()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zc:Qc}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,a.aspectRatio),s=r&&r.canvas,l=s&&s.height,c=s&&s.width;this.id=Zo(),this.ctx=r,this.canvas=s,this.width=c,this.height=l,this._options=a,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._plugins=new td,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],_d[this.id]=this,r&&s?(xl.listen(this,"complete",yd),xl.listen(this,"progress",vd),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return Jo(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(t,e){xl.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),ra(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){sa(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=od(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}}))),sa(o,e=>{const o=e.options,a=o.id,r=od(a,o),s=ia(o.type,e.dtype);void 0!==o.position&&md(o.position,r)===md(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;if(a in n&&n[a].type===s)l=n[a];else{l=new(hc.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),sa(i,(t,e)=>{t||delete n[e]}),sa(n,t=>{Ic.configure(this,t,t.options),Ic.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(xd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||id(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=hc.getController(a),{datasetElementType:i,dataElementType:r}=Kr.datasets[a];Object.assign(e.prototype,{dataElementType:hc.getElement(r),datasetElementType:i&&hc.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){sa(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||sa(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(xd("z","_idx"));const{_active:r,_lastEvent:s}=this;s?this._eventHandler(s,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){sa(this.scales,t=>{Ic.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);wa(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){Ed(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!wa(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ic.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],sa(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,va(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xl.has(this)?this.attached&&!xl.running(this)&&xl.start(this):(this.draw(),yd({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&os(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&rs(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return is(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=kc.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=_s(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);ya(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),xl.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ts(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete _d[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};sa(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){sa(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},sa(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,a,r,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),r=0,s=t.length;r<s;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!la(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),a=o(e,t),r=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,r=this._getActiveElements(t,i,n,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,ra(o.onHover,[t,r,this],this),s&&ra(o.onClick,[t,r,this],this));const c=!la(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const Cd=()=>sa(Sd.instances,t=>t._plugins.invalidate()),Ad=!0;function Md(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:r,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,r,s,i-c,n+c),l>o?(c=o/l,t.arc(a,r,l,n+c,i-c,!0)):t.arc(a,r,o,n+Aa,i-Aa),t.closePath(),t.clip()}function Dd(t,e,n,i){const o=ms(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const a=(n-e)/2,r=Math.min(a,i*e/2),s=t=>{const e=(n-Math.min(a,t))*i/2;return Ua(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Ua(o.innerStart,0,r),innerEnd:Ua(o.innerEnd,0,r)}}function Od(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Td(t,e,n,i,o,a){const{x:r,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const g=(f-Math.max(.001,f*h-n/_a)/h)/2,m=l+g+p,b=o-g-p,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:w}=Dd(e,u,h,b-m),_=h-x,k=h-y,E=m+x/_,S=b-y/k,C=u+v,A=u+w,M=m+v/C,D=b-w/A;if(t.beginPath(),a){if(t.arc(r,s,h,E,S),y>0){const e=Od(k,S,r,s);t.arc(e.x,e.y,y,S,b+Aa)}const e=Od(A,b,r,s);if(t.lineTo(e.x,e.y),w>0){const e=Od(A,D,r,s);t.arc(e.x,e.y,w,b+Aa,D+Math.PI)}if(t.arc(r,s,u,b-w/u,m+v/u,!0),v>0){const e=Od(C,M,r,s);t.arc(e.x,e.y,v,M+Math.PI,m-Aa)}const n=Od(_,m,r,s);if(t.lineTo(n.x,n.y),x>0){const e=Od(_,E,r,s);t.arc(e.x,e.y,x,m-Aa,E)}}else{t.moveTo(r,s);const e=Math.cos(E)*h+r,n=Math.sin(E)*h+s;t.lineTo(e,n);const i=Math.cos(S)*h+r,o=Math.sin(S)*h+s;t.lineTo(i,o)}t.closePath()}function Pd(t,e,n,i,o,a){const{options:r}=e,{borderWidth:s,borderJoinStyle:l}=r,c="inner"===r.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:a,pixelMargin:r,fullCircles:s}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(n&&Md(t,e,a+ka),t.beginPath(),t.arc(i,o,c,a+ka,a,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+ka),d=0;d<s;++d)t.stroke()}(t,e,c),c&&Md(t,e,o),Td(t,e,n,i,o,a),t.stroke())}Object.defineProperties(Sd,{defaults:{enumerable:Ad,value:Kr},instances:{enumerable:Ad,value:_d},overrides:{enumerable:Ad,value:Yr},registry:{enumerable:Ad,value:hc},version:{enumerable:Ad,value:"3.9.1"},getChart:{enumerable:Ad,value:kd},register:{enumerable:Ad,value:(...t)=>{hc.add(...t),Cd()}},unregister:{enumerable:Ad,value:(...t)=>{hc.remove(...t),Cd()}}});class Rd extends Zl{constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=Ba(i,{x:t,y:e}),{startAngle:r,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ia(d,s-r)>=ka||Wa(o,r,s),p=Ga(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(a+r+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ka?Math.floor(n/ka):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=_a&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:a,startAngle:r,circumference:s}=e;let l=e.endAngle;if(a){Td(t,e,n,i,r+ka,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=r+s%ka,s%ka===0&&(l+=ka))}return Td(t,e,n,i,l,o),t.fill(),l}(t,this,r,o,a);Pd(t,this,r,o,s,a),t.restore()}}function Ld(t,e,n=e){t.lineCap=ia(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ia(n.borderDash,e.borderDash)),t.lineDashOffset=ia(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ia(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ia(n.borderWidth,e.borderWidth),t.strokeStyle=ia(n.borderColor,e.borderColor)}function Fd(t,e,n){t.lineTo(n.x,n.y)}function Id(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:r,end:s}=e,l=Math.max(o,r),c=Math.min(a,s),d=o<r&&a<r||o>s&&a>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Nd(t,e,n,i){const{points:o,options:a}=e,{count:r,start:s,loop:l,ilen:c}=Id(o,n,i),d=function(t){return t.stepped?ss:t.tension||"monotone"===t.cubicInterpolationMode?ls:Fd}(a);let h,u,p,{move:f=!0,reverse:g}=i||{};for(h=0;h<=c;++h)u=o[(s+(g?c-h:h))%r],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,g,a.stepped),p=u);return l&&(u=o[(s+(g?c:0))%r],d(t,p,u,g,a.stepped)),!!l}function zd(t,e,n,i){const o=e.points,{count:a,start:r,ilen:s}=Id(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,g,m=0,b=0;const x=t=>(r+(c?s-t:t))%a,y=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),m=(b*m+e)/++b):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),g=n}y()}function Bd(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?zd:Nd}Rd.id="arc",Rd.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Rd.defaultRoutes={backgroundColor:"backgroundColor"};const Vd="function"==typeof Path2D;function Hd(t,e,n,i){Vd&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Ld(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,r=Bd(e);for(const s of o)Ld(t,a,s.style),t.beginPath(),r(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class jd extends Zl{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=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,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Ws(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const a=!!t._loop,{start:r,end:s}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return gl(t,!0===i?[{start:r,end:s,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let r,s=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(r-1)%o,loop:i}),e=s=n.stop?r:null):(s=r,l.skip&&(e=r)),l=n}return null!==s&&a.push({start:e%o,end:s%o,loop:i}),a}(n,r,s<r?s+o:s,!!t._fullLoop&&0===r&&s===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=fl(this,{property:e,start:i,end:i});if(!a.length)return;const r=[],s=function(t){return t.stepped?il:t.tension||"monotone"===t.cubicInterpolationMode?ol:nl}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){r.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return Bd(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Bd(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)a&=o(t,this,r,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Hd(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wd(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}jd.id="line",jd.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},jd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},jd.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ud extends Zl{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Wd(this,t,"x",e)}inYRange(t,e){return Wd(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!is(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,es(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Gd(t,e){const{x:n,y:i,base:o,width:a,height:r}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=r/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Yd(t,e,n,i){return t?0:Ua(e,n,i)}function $d(t){const e=Gd(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=bs(i);return{t:Yd(o.top,a.top,0,n),r:Yd(o.right,a.right,0,e),b:Yd(o.bottom,a.bottom,0,n),l:Yd(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=xs(o),r=Math.min(e,n),s=t.borderSkipped,l=i||ta(o);return{topLeft:Yd(!l||s.top||s.left,a.topLeft,0,r),topRight:Yd(!l||s.top||s.right,a.topRight,0,r),bottomLeft:Yd(!l||s.bottom||s.left,a.bottomLeft,0,r),bottomRight:Yd(!l||s.bottom||s.right,a.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Xd(t,e,n,i){const o=null===e,a=null===n,r=t&&!(o&&a)&&Gd(t,i);return r&&(o||Ga(e,r.left,r.right))&&(a||Ga(n,r.top,r.bottom))}function qd(t,e){t.rect(e.x,e.y,e.w,e.h)}function Kd(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+r,radius:t.radius}}Ud.id="point",Ud.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ud.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Zd extends Zl{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:a}=$d(this),r=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?hs:qd;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),r(t,Kd(a,e,o)),t.clip(),r(t,Kd(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,Kd(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Xd(this,t,e,n)}inXRange(t,e){return Xd(this,t,null,e)}inYRange(t,e){return Xd(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Jd(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=ja(o),a=ja(a)),{property:t,start:o,end:a}}function Qd(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function th(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function eh(t,e){let n=[],i=!1;return Qo(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,a=[];return e.segments.forEach(({start:t,end:e})=>{e=Qd(t,e,o);const r=o[t],s=o[e];null!==i?(a.push({x:r.x,y:i}),a.push({x:s.x,y:i})):null!==n&&(a.push({x:n,y:r.y}),a.push({x:n,y:s.y}))}),a}(t,e),n.length?new jd({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function nh(t){return t&&!1!==t.fill}function ih(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ea(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function oh(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ia(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(ta(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ea(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function rh(t,e,n){const i=[];for(let o=0;o<n.length;o++){const a=n[o],{first:r,last:s,point:l}=sh(a,e,"x");if(!(!l||r&&s))if(r)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function sh(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,r=t.points;let s=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],i=r[e.start][n],c=r[e.end][n];if(Ga(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Zd.id="bar",Zd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Zd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class lh{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:a}=this;return e=e||{start:0,end:ka},t.arc(i,o,a,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function ch(t){const{chart:e,fill:n,line:i}=t;if(ea(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],a=i.segments,r=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(eh({x:null,y:e.bottom},i));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)rh(o,r[t],s)}return new jd({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,a=i.reverse?e.max:e.min,r=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:ta(t)?t.value:e.getBaseValue(),i}(n,e,a),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new lh({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,r));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:ta(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ea(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof lh?o:eh(o,i)}function dh(t,e,n){const i=ch(e),{line:o,scale:a,axis:r}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(os(t,n),function(t,e){const{line:n,target:i,above:o,below:a,area:r,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&a!==o&&(hh(t,i,r.top),uh(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),hh(t,i,r.bottom));uh(t,{line:n,target:i,color:a,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:a,axis:r}),rs(t))}function hh(t,e,n){const{segments:i,points:o}=e;let a=!0,r=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Qd(i,l,o)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,s,{move:r}),r?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function uh(t,e){const{line:n,target:i,property:o,color:a,scale:r}=e,s=function(t,e,n){const i=t.segments,o=t.points,a=e.points,r=[];for(const t of i){let{start:i,end:s}=t;s=Qd(i,s,o);const l=Jd(n,o[i],o[s],t.loop);if(!e.segments){r.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=fl(e,l);for(const e of c){const i=Jd(n,a[e.start],a[e.end],e.loop),s=pl(t,o,i);for(const t of s)r.push({source:t,target:e,start:{[n]:th(l,i,"start",Math.max)},end:{[n]:th(l,i,"end",Math.min)}})}}return r}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=a}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ph(t,r,h&&Jd(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():fh(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||fh(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ph(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:a,start:r,end:s}=n||{};"x"===a&&(t.beginPath(),t.rect(r,i,s-r,o-i),t.clip())}function fh(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var gh={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let a,r,s,l;for(r=0;r<i;++r)a=t.getDatasetMeta(r),s=a.dataset,l=null,s&&s.options&&s instanceof jd&&(l={visible:t.isDatasetVisible(r),index:r,fill:oh(s,r,i),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,o.push(l);for(r=0;r<i;++r)l=o[r],l&&!1!==l.fill&&(l.fill=ih(o,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(a,n.axis),i&&n.fill&&dh(t.ctx,n,a))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;nh(n)&&dh(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;nh(i)&&"beforeDatasetDraw"===n.drawTime&&dh(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const mh=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class bh extends Zl{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=ra(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=vs(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:s}=mh(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,s)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+r;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*r>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+r}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=r,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,a)=>{const g=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*r>c&&(d+=h+r,l.push({width:h,height:u}),p+=h+r,f++,h=u=0),s[a]={left:p,top:u,col:f,width:g,height:i},h=Math.max(h,g),u+=i+r}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=ll(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=er(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,r=er(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=a.leftForLtr(a.x(r),s.width),r+=s.width+i}else{let o=0,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=r,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),r+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;os(t,this),this._draw(),rs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,r=Kr.color,s=ll(t.rtl,this.left,this.width),l=vs(a.font),{color:c,padding:d}=a,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:g,itemHeight:m}=mh(a,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:er(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:er(o,this.top+x+d,this.bottom-e[0].height),line:0},cl(this.ctx,t.textDirection);const y=m+d;this.legendItems.forEach((v,w)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const _=i.measureText(v.text).width,k=s.textAlign(v.textAlign||(v.textAlign=a.textAlign)),E=f+u+_;let S=p.x,C=p.y;s.setWidth(this.width),b?w>0&&S+E+d>this.right&&(C=p.y+=y,p.line++,S=p.x=er(o,this.left+d,this.right-n[p.line])):w>0&&C+y>this.bottom&&(S=p.x=S+e[p.line].width+d,p.line++,C=p.y=er(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;i.save();const o=ia(n.lineWidth,1);if(i.fillStyle=ia(n.fillStyle,r),i.lineCap=ia(n.lineCap,"butt"),i.lineDashOffset=ia(n.lineDashOffset,0),i.lineJoin=ia(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ia(n.strokeStyle,r),i.setLineDash(ia(n.lineDash,[])),a.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);ns(i,r,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((h-g)/2,0),r=s.leftForLtr(t,f),l=xs(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?hs(i,{x:r,y:a,w:f,h:g,radius:l}):i.rect(r,a,f,g),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(S),C,v),S=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,S+f+u,b?S+E:this.right,t.rtl),function(t,e,n){cs(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),C,v),b?p.x+=E+d:p.y+=y}),dl(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=vs(e.font),i=ys(e.padding);if(!e.display)return;const o=ll(t.rtl,this.left,this.width),a=this.ctx,r=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=er(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+er(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=er(r,d,d+h);a.textAlign=o.textAlign(tr(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,cs(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=vs(t.font),n=ys(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Ga(t,this.left,this.right)&&Ga(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Ga(t,i.left,i.left+i.width)&&Ga(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(i,n);i&&!o&&ra(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&ra(e.onHover,[t,n,this],this)}else n&&ra(e.onClick,[t,n,this],this)}}var xh={id:"legend",_element:bh,start(t,e,n){const i=t.legend=new bh({ctx:t.ctx,options:n,chart:t});Ic.configure(t,i,n),Ic.addBox(t,i)},stop(t){Ic.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ic.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const r=t.controller.getStyle(n?0:void 0),s=ys(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:r.borderColor,pointStyle:i||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const yh={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,r=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Va(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,r=t.y}return{x:a,y:r}}};function vh(t,e){return e&&(Qo(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function wh(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function _h(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:r,value:s}=a.getLabelAndValue(o);return{chart:t,label:r,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function kh(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:r,boxHeight:s}=e,l=vs(e.bodyFont),c=vs(e.titleFont),d=vs(e.footerFont),h=a.length,u=o.length,p=i.length,f=ys(e.padding);let g=f.height,m=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){g+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,sa(t.title,y),n.font=l.string,sa(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,sa(i,t=>{sa(t.before,y),sa(t.lines,y),sa(t.after,y)}),x=0,n.font=d.string,sa(t.footer,y),n.restore(),m+=f.width,{width:m,height:g}}function Eh(t,e,n,i){const{x:o,width:a}=n,{width:r,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=r-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,r=n.caretSize+n.caretPadding;return"left"===t&&o+a+r>e.width||"right"===t&&o-a-r<0||void 0}(c,t,e,n)&&(c="center"),c}function Sh(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Eh(t,e,n,i),yAlign:i}}function Ch(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:s,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(r);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:Ua(f,0,i.width-e.width),y:Ua(g,0,i.height-e.height)}}function Ah(t,e,n){const i=ys(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Mh(t){return vh([],wh(t))}function Dh(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Oh extends Zl{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new kl(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,_s(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let r=[];return r=vh(r,wh(i)),r=vh(r,wh(o)),r=vh(r,wh(a)),r}getBeforeBody(t,e){return Mh(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return sa(t,t=>{const e={before:[],lines:[],after:[]},o=Dh(n,t);vh(e.before,wh(o.beforeLabel.call(this,t))),vh(e.lines,o.label.call(this,t)),vh(e.after,wh(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Mh(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let r=[];return r=vh(r,wh(i)),r=vh(r,wh(o)),r=vh(r,wh(a)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let r,s,l=[];for(r=0,s=e.length;r<s;++r)l.push(_h(this.chart,e[r]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),sa(l,e=>{const n=Dh(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=yh[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=kh(this,n),r=Object.assign({},t,e),s=Sh(this.chart,n,r),l=Ch(n,r,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:r}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=xs(r),{x:h,y:u}=t,{width:p,height:f}=e;let g,m,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(g=h,m=g-a,x=y+a,v=y-a):(g=h+p,m=g+a,x=y-a,v=y+a),b=g):(m="left"===i?h+Math.max(s,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(x=u,y=x-a,g=m-a,b=m+a):(x=u+f,y=x+a,g=m+a,b=m-a),v=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,r,s;if(o){const l=ll(n.rtl,this.x,this.width);for(t.x=Ah(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=vs(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,s+1===o&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=vs(o.bodyFont),h=Ah(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,es(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,es(t,e,n,c)}else{t.lineWidth=ta(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),r=xs(a.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,hs(t,{x:e,y:f,w:l,h:s,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),hs(t,{x:n,y:f+1,w:l-2,h:s-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=a.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=vs(n.bodyFont);let h=d.lineHeight,u=0;const p=ll(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},g=p.textAlign(a);let m,b,x,y,v,w,_;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Ah(this,g,n),e.fillStyle=n.bodyColor,sa(this.beforeBody,f),u=r&&"right"!==g?"center"===a?l/2+c:l+2+c:0,y=0,w=i.length;y<w;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,sa(m.before,f),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,_=x.length;v<_;++v)f(x[v]),h=d.lineHeight;sa(m.after,f)}u=0,h=d.lineHeight,sa(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,r;if(o){const s=ll(n.rtl,this.x,this.width);for(t.x=Ah(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",a=vs(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:r,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+d,s),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+l-h,s),e.quadraticCurveTo(r+l,s,r+l,s+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l,s+c-p),e.quadraticCurveTo(r+l,s+c,r+l-p,s+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+u,s+c),e.quadraticCurveTo(r,s+c,r,s+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(r,s+d),e.quadraticCurveTo(r,s,r+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=yh[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=kh(this,t),r=Object.assign({},n,this._size),s=Sh(e,t,r),l=Ch(t,r,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=ys(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),cl(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),dl(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!la(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),r=this._positionChanged(a,t),s=e||!la(a,o)||r;return s&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=yh[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}Oh.positioners=yh;var Th={id:"tooltip",_element:Oh,positioners:yh,afterInit(t,e,n){n&&(t.tooltip=new Oh({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding: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:Ko,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:Ko,beforeBody:Ko,beforeLabel:Ko,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Jo(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Ko,afterBody:Ko,beforeFooter:Ko,footer:Ko,afterFooter:Ko}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Ph(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class Rh extends cc{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Jo(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Ua(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Ph(n,t,ia(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Lh(t,e){const n=[],{bounds:i,step:o,min:a,max:r,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:g}=e,m=!Jo(a),b=!Jo(r),x=!Jo(l),y=(g-f)/(d+1);let v,w,_,k,E=Pa((g-f)/p/u)*u;if(E<1e-14&&!m&&!b)return[{value:f},{value:g}];k=Math.ceil(g/E)-Math.floor(f/E),k>p&&(E=Pa(k*E/p/u)*u),Jo(s)||(v=Math.pow(10,s),E=Math.ceil(E*v)/v),"ticks"===i?(w=Math.floor(f/E)*E,_=Math.ceil(g/E)*E):(w=f,_=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-a)/o,E/1e3)?(k=Math.round(Math.min((r-a)/E,c)),E=(r-a)/k,w=a,_=r):x?(w=m?a:w,_=b?r:_,k=l-1,E=(_-w)/k):(k=(_-w)/E,k=La(k,Math.round(k),E/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(za(E),za(w));v=Math.pow(10,Jo(s)?S:s),w=Math.round(w*v)/v,_=Math.round(_*v)/v;let C=0;for(m&&(h&&w!==a?(n.push({value:a}),w<a&&C++,La(Math.round((w+C*E)*v)/v,a,Fh(a,y,t))&&C++):w<a&&C++);C<k;++C)n.push({value:Math.round((w+C*E)*v)/v});return b&&h&&_!==r?n.length&&La(n[n.length-1].value,r,Fh(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&_!==r||n.push({value:_}),n}function Fh(t,e,{horizontal:n,minRotation:i}){const o=Ia(i),a=(n?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Rh.id="category",Rh.defaults={ticks:{callback:Rh.prototype.getLabelForValue}};class Ih extends cc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Jo(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,r=t=>o=n?o:t;if(t){const t=Ta(i),e=Ta(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Lh({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Fa(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return sl(t,this.chart.options.locale,this.options.ticks.format)}}class Nh extends Ih{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?t:0,this.max=ea(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Ia(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function zh(t){return 1===t/Math.pow(10,Math.floor(Oa(t)))}Nh.id="linear",Nh.defaults={ticks:{callback:Ql.formatters.numeric}};class Bh extends cc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Ih.prototype.parse.apply(this,[t,e]);if(0!==n)return ea(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?Math.max(0,t):null,this.max=ea(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,a=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(Oa(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(r(n,-1)),a(r(i,1)))),n<=0&&o(r(i,-1)),i<=0&&a(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&o(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Oa(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=na(t.min,Math.pow(10,Math.floor(Oa(e.min)))),r=Math.floor(Oa(a)),s=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:zh(a)}),++s,10===s&&(s=1,++r,l=r>=0?1:l),a=Math.round(s*Math.pow(10,r)*l)/l}while(r<n||r===n&&s<i);const c=na(t.max,a);return o.push({value:c,major:zh(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Fa(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":sl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Oa(t),this._valueRange=Oa(this.max)-Oa(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Oa(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Vh(t){const e=t.ticks;if(e.display&&t.display){const t=ys(e.backdropPadding);return ia(e.font&&e.font.size,Kr.font.size)+t.height}return 0}function Hh(t,e,n){return n=Qo(n)?n:[n],{w:Jr(t,e.string,n),h:n.length*e.lineHeight}}function jh(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Wh(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,s=r.centerPointLabels?_a/a:0;for(let l=0;l<a;l++){const a=r.setContext(t.getPointLabelContext(l));o[l]=a.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=vs(a.font),h=Hh(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=ja(t.getIndexAngle(l)+s),p=Math.round(Na(u));Uh(n,e,u,jh(p,c.x,h.w,0,180),jh(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,r=Vh(a)/2,s=t.drawingArea,l=a.pointLabels.centerPointLabels?_a/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,s+r+n[a],l),c=Math.round(Na(ja(o.angle+Aa))),d=e[a],h=$h(o.y,d.h,c),u=Gh(c),p=Yh(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Uh(t,e,n,i,o){const a=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/r,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function Gh(t){return 0===t||180===t?"center":t<180?"left":"right"}function Yh(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function $h(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xh(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,ka);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}Bh.id="logarithmic",Bh.defaults={ticks:{callback:Ql.formatters.logarithmic,major:{enabled:!0}}};class qh extends Ih{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ys(Vh(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ea(t)&&!isNaN(t)?t:0,this.max=ea(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vh(this.options))}generateTickLabels(t){Ih.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=ra(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Wh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return ja(t*(ka/(this._pointLabels.length||1))+Ia(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Jo(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Jo(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return _s(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Aa+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Xh(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,r,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=vs(e.font),{x:r,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Jo(p)){const t=xs(e.borderRadius),i=ys(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,r=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),hs(n,{x:o,y:a,w:r,h:s,radius:t}),n.fill()):n.fillRect(o,a,r,s)}cs(n,t._pointLabels[o],r,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,a=e.circular,{color:r,lineWidth:s}=e;!a&&!i||!r||!s||n<0||(o.save(),o.strokeStyle=r,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),Xh(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),r,o)}}),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,r)=>{if(0===r&&!e.reverse)return;const s=n.setContext(this.getContext(r)),l=vs(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),s.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=ys(s.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}cs(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}qh.id="radialLinear",qh.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ql.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},qh.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},qh.descriptors={angleLines:{_fallback:"grid"}};const Kh={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}},Zh=Object.keys(Kh);function Jh(t,e){return t-e}function Qh(t,e){if(Jo(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),ea(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(o&&(r="week"!==o||!Ra(a)&&!0!==a?n.startOf(r,o):n.startOf(r,"isoWeek",a)),+r)}function tu(t,e,n,i){const o=Zh.length;for(let a=Zh.indexOf(t);a<o-1;++a){const t=Kh[Zh[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Zh[a]}return Zh[o-1]}function eu(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Ya(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function nu(t,e,n){const i=[],o={},a=e.length;let r,s;for(r=0;r<a;++r)s=e[r],o[s]=r,i.push({value:s,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),r=e[e.length-1].value;let s,l;for(s=a;s<=r;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class iu extends cc{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new gc._date(t.adapters.date);i.init(e),pa(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Qh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function s(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ea(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ea(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?tu(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=Zh.length-1;a>=Zh.indexOf(n);a--){const n=Zh[a];if(Kh[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Zh[n?Zh.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Zh.indexOf(t)+1,n=Zh.length;e<n;++e)if(Kh[Zh[e]].common)return Zh[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),nu(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=Ua(i,0,a),o=Ua(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||tu(o.minUnit,e,n,this._getLabelCapacity(e)),r=ia(o.stepSize,1),s="week"===a&&o.isoWeekday,l=Ra(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,r,a),h++)eu(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||eu(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,r=this._unit,s=this._majorUnit,l=r&&a[r],c=s&&a[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?ra(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Ia(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*o+r*a,h:n*a+r*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,nu(this,[t],this._majorUnit),i),a=this._getLabelSize(o),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Qh(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Za(t.sort(Jh))}}function ou(t,e,n){let i,o,a,r,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=$a(t,"pos",e)),({pos:i,time:a}=t[s]),({pos:o,time:r}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=$a(t,"time",e)),({time:i,pos:a}=t[s]),({time:o,pos:r}=t[l]));const c=o-i;return c?a+(r-a)*(e-i)/c:a}iu.id="time",iu.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ru extends iu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ou(e,this.min),this._tableRange=ou(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,r,s,l,c;for(a=0,r=t.length;a<r;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,r=i.length;a<r;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&o.push({time:l,pos:a/(r-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(ou(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return ou(this._table,n*this._tableRange+this._minPos,!0)}}ru.id="timeseries",ru.defaults=iu.defaults;const su="label";function lu(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function cu(t,e){t.labels=e}function du(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:su;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function hu(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su;const n={labels:[],datasets:[]};return cu(n,t.labels),du(n,t.datasets,e),n}function uu(t,e){let{height:n=150,width:i=300,redraw:o=!1,datasetIdKey:a,type:r,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:h,...u}=t;const p=lt(null),f=lt(),g=()=>{p.current&&(f.current=new Sd(p.current,{type:r,data:hu(s,a),options:l&&{...l},plugins:c}),lu(e,f.current))},m=()=>{lu(e,null),f.current&&(f.current.destroy(),f.current=null)};return ct(()=>{var t,e;!o&&f.current&&l&&(t=f.current,e=l,Object.assign(t.options,e))},[o,l]),ct(()=>{!o&&f.current&&cu(f.current.config.data,s.labels)},[o,s.labels]),ct(()=>{!o&&f.current&&s.datasets&&du(f.current.config.data,s.datasets,a)},[o,s.datasets]),ct(()=>{f.current&&(o?(m(),setTimeout(g)):f.current.update(h))},[o,l,s.labels,s.datasets,h]),ct(()=>{f.current&&(m(),setTimeout(g))},[r]),ct(()=>(g(),()=>m()),[]),tt.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:i},u),d)}const pu=nt(uu);Sd.register(Rh,Nh,Ud,jd,$l,Th,xh,gh);var fu=function(t){var e=t.xValues,n=t.yValues,i=t.dataPrefix,o=t.dataPostfix,a=t.straitsXStyle,r=t.height,s=void 0===r?40:r,l=lt(null),c=st({datasets:[]}),d=c[0],h=c[1],u={labels:e,datasets:[{data:n}]},p=i||"",f=o||"";ct(function(){var t=l.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");var o=Ut(Ut({},u),{datasets:u.datasets.map(function(t){return Ut(Ut({},t),{backgroundColor:a?i:n,fill:!0,borderColor:a?"#00D37E":"#2E8DEE",pointRadius:0})})});h(o)}},[a,e,n]);var g={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:a?1:0,backgroundColor:a?"#ffffff":"#000000",titleColor:a?"#1B2736":"#fff",bodyColor:a?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return a?"".concat(p).concat(t[0].parsed.y).concat(f):t[0].label},label:function(t){return a?t.label:"".concat(p).concat(t.parsed.y).concat(f)}}}},scales:{x:{ticks:{color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(p).concat(t).concat(f)}},grid:{display:!1,drawBorder:!1}}}};return tt.createElement("div",{style:{position:"relative",height:"".concat(s,"vh"),width:"99%"}},tt.createElement(pu,{id:"chart",ref:l,type:"line",data:d,options:g}))};function gu(t){var e=t.children,n=t.activeKey,i=t.width,o=void 0===i?250:i,a=Wt(t,["children","activeKey","width"]),r=$i().brand,s=e.map(function(t,e){return tt.createElement(gt.TabPane,{key:e,forceRender:!0},t)}),l=e.map(function(t,e){return tt.createElement(Eu,{key:e,isActive:e===n,activeColor:r.primary.default})});return tt.createElement(wu,null,tt.createElement(_u,Ut({renderTabBar:function(){return tt.createElement("div",null)},width:o,activeKey:n.toString(),animated:!0},a),s),tt.createElement(ku,null,l))}var mu,bu,xu,yu,vu,wu=Kn.div(mu||(mu=jt(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),_u=Kn(gt)(bu||(bu=jt(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),ku=Kn.span(xu||(xu=jt(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),Eu=Kn.span(yu||(yu=jt(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function Su(t){var e=t.menu,n=t.children,i=t.type,o=void 0===i?"default":i,a=t.placement,r=void 0===a?"bottomLeft":a,s=t.className,l=void 0===s?"":s,c=t.trigger,d=void 0===c?["click"]:c,h=t.disabled,u=void 0!==h&&h,p=Wt(t,["menu","children","type","placement","className","trigger","disabled"]),f=$i(),g=f.brand,m=f.spacing,b="\n background-color: ".concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n\n &:focus {\n background-color: ").concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(g.action.default,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(g.action.hover,";\n color: ").concat(g.primary.contrast,";\n border: 1px solid ").concat(g.primary.contrast,";\n }\n "),x="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(g.action.disabledOpacity,";\n "),y=Kn(mt.Button)(vu||(vu=jt(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),xi,Ei,b,!0===u&&x,m.md,xi,Ei,b,!0===u&&x,m.sm);if("split"===o)return tt.createElement(y,Ut({className:l,menu:e,placement:r,trigger:d},p),n);var v=lt(null);return ct(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=v.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),tt.createElement(mt,Ut({menu:e,placement:r,trigger:d},p),tt.createElement("div",{ref:v},n))}function Cu(t){var e=t.type;return t.disabled?"\n color: ".concat(jn.G400,";\n "):"filter"===e?"\n color: ".concat(Wn.PRIMARY_BLACK,";\n opacity: 1;\n "):"dropdown"===e?"\n color: ".concat(jn.G400,";\n opacity: 1;\n "):""}function Au(t){var e=t.mode,n=t.disabled,i=t.type,o="\n width: 100%;\n ".concat(_i,"\n ").concat(function(t){switch(t.type){case"dropdown":return"color: ".concat(jn.BLACK,";");case"filter":return"color: ".concat(jn.G400,";");default:return""}}({type:i}),"\n cursor: pointer;\n\n &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple:not(.ant-select-customize-input) .ant-select-selector {\n ").concat(function(t){var e=t.mode,n=t.type;if("multiple"===e)return"min-height: 36px;";if(void 0===e)switch(n){case"dropdown":return"height: 44px;";case"filter":return"height: 36px;"}return""}({mode:e,type:i}),"\n\n\n border-radius: 5px;\n border-color: ").concat(jn.G200,";\n ").concat(function(t){var e=t.mode,n=t.type;if("multiple"===e)return"";switch(n){case"dropdown":return"\n padding-top: 0px;\n padding-bottom: 0px;\n padding-left: 15px;\n padding-right: 30px;\n ";case"filter":return"padding: 0 13px;";default:return""}}({mode:e,type:i}),"\n\n &:hover {\n ").concat(n?"":"border-color: ".concat(Fi.brand.primary.default,";"),"\n }\n\n &:active .ant-select-selection-placeholder {\n ").concat("filter"===i?"\n color: ".concat(Fi.brand.primary.default,";\n "):"","\n }\n }\n\n &.ant-select-single.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector {\n border-color: ").concat(Fi.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(Fi.brand.primary.background,";\n box-shadow: 0 0 0 2px ").concat(Fi.brand.primary.background,";\n }\n\n &.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n line-height: 34px;\n ").concat(Cu({type:i,disabled:n}),"\n }\n\n &.ant-select-multiple .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n line-height: 34px;\n ").concat(Cu({type:i,disabled:n}),"\n }\n\n &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {\n height: 100%;\n }\n\n & .ant-select-selection-search > input {\n color: ").concat(jn.BLACK,";\n padding-bottom: 2px;\n }\n\n &.ant-select-single .ant-select-selector .ant-select-selection-item {\n display: flex;\n align-items: center;\n line-height: 34px;\n color: ").concat(Wn.PRIMARY_BLACK,";\n\n ").concat("filter"!==i||n?"":"\n color: ".concat(Wn.PRIMARY_BLACK,";\n "),"\n }\n\n &.ant-select-single.ant-select-show-arrow .ant-select-selection-item {\n padding-right: 15px;\n }\n\n &.ant-select-multiple .ant-select-selection-item {\n height: 28px;\n color: #FFFFFF;\n background: ").concat(Fi.brand.primary.default,';\n border-radius: 23px;\n border: 0;\n display: inline-flex;\n align-items: center;\n font-family: "Hanken Grotesk", Inter;\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n padding-left: 10px;\n cursor: pointer;\n font-family: ').concat(ro,";\n }\n\n &.ant-select-multiple .ant-select-selection-item-remove {\n font-size: 10px;\n color: #FFFFFF;\n padding-right: 5px;\n margin-top: 2px;\n }\n\n &.ant-select-multiple .ant-select-selection-item-content {\n margin-right: 3px;\n }\n\n &.ant-select-multiple .zoom-leave {\n display: none;\n }\n\n &.ant-select-multiple .ant-select-selection-placeholder {\n left: 16px;\n ").concat("filter"!==i||n?"":"\n color: ".concat(Wn.PRIMARY_BLACK,";\n opacity: 1;\n "),"\n }\n\n & .ant-select-selection-placeholder {\n opacity: 1;\n }\n\n &.ant-select-disabled.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n color: ").concat(jn.BLACK,";\n }\n\n &.ant-select-disabled.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n background: #F6F7F9;\n }\n\n & .ant-select-arrow .anticon.anticon-search {\n transform: scale(1.3);\n margin-left: -10px;\n }\n\n &.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {\n border-color: ").concat(Fi.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(Fi.brand.primary.default,"33;\n box-shadow: 0 0 0 2px ").concat(Fi.brand.primary.default,"33;\n }\n ");return o}on(Mu||(Mu=jt(["\n .ant-select-dropdown .ant-select-item-option {\n -webkit-font-smoothing: antialiased;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 400;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n font-weight: 500;\n }\n\n div.ant-select-dropdown {\n border-radius: 5px;\n max-height: 100vh;\n overflow-y: scroll;\n }\n"],["\n .ant-select-dropdown .ant-select-item-option {\n -webkit-font-smoothing: antialiased;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 400;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n font-weight: 500;\n }\n\n div.ant-select-dropdown {\n border-radius: 5px;\n max-height: 100vh;\n overflow-y: scroll;\n }\n"])),Wn.PRIMARY_BLACK,ro,ji.P1);var Mu,Du,Ou=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.type,s=t.mode,l=t.label,c=t.selectRef,d=Wt(t,["className","children","disabled","type","mode","label","selectRef"]),h=$i(),u=h.spacing,p=h.brand;on(Du||(Du=jt(["\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n background-color: #F0FFF9 /* "," */;\n\n .ant-select-item-option-state {\n color: #00D37E /* "," */;\n\n &:hover {\n border-color: ",";\n }\n \n &.ant-picker-focused {\n border-color: ",";\n }\n \n .ant-picker-active-bar {\n background: ",";\n }\n }\n }\n "],["\n .ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n background-color: #F0FFF9 /* "," */;\n\n .ant-select-item-option-state {\n color: #00D37E /* "," */;\n\n &:hover {\n border-color: ",";\n }\n \n &.ant-picker-focused {\n border-color: ",";\n }\n \n .ant-picker-active-bar {\n background: ",";\n }\n }\n }\n "])),p.primary.background,p.primary.illustration,p.primary.default,p.primary.default,p.primary.default);var f=Au({mode:s,disabled:a,type:r});return tt.createElement(tt.Fragment,null,l&&tt.createElement(Io,{style:{marginBottom:u.xs}},l),tt.createElement(bt,Ut({className:"".concat(rn(f)," ").concat(n),disabled:a,mode:s,ref:c},d),i))};Ou.Tag=function(t){var e=t.className,n=void 0===e?"":e,i=Wt(t,["className"]),o=$i().brand.primary,a="\n height: 28px;\n color: #FFFFFF;\n background: ".concat(o.default,";\n border-radius: 23px;\n border: 0;\n display: inline-flex;\n align-items: center;\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n padding-left: 10px;\n cursor: pointer;\n font-family: ").concat(ro,";\n padding-right: 10px;\n margin-right: 4px;\n\n &:hover {\n opacity: 1;\n }\n\n &.ant-tag .anticon-close {\n color: white;\n margin-left: 5px;\n margin-top: 0px;\n }\n ");return tt.createElement(xt,Ut({className:"".concat(rn(a)," ").concat(n)},i))},Ou.OptGroup=bt.OptGroup,Ou.Option=bt.Option;var Tu=function(t,e){var n=e.iconSrc,i=void 0===n?null:n,o=e.extraText,a=void 0===o?"":o,r=e.extraAction,s=void 0===r?function(){}:r,l=e.isAddItemBarVisible,c=void 0===l||l,d=e.topContent,h=e.bottomContent,u=e.actionContent;return tt.createElement(Nu,null,d,t,u||function(t){var e=t.iconSrc,n=void 0===e?null:e,i=t.extraText,o=void 0===i?"":i,a=t.extraAction,r=void 0===a?function(){}:a,s=t.isAddItemBarVisible;return void 0===s||s?tt.createElement(Bu,{onMouseDown:function(){r()}},n?tt.createElement(zu,{src:n}):tt.createElement(Lt,null),o):null}({iconSrc:i,extraText:a,extraAction:s,isAddItemBarVisible:c}),h)},Pu=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.mode,s=t.label,l=t.iconSrc,c=void 0===l?"":l,d=t.extraText,h=void 0===d?"":d,u=t.extraAction,p=void 0===u?function(){}:u,f=t.isAddItemBarVisible,g=void 0===f||f,m=t.topContent,b=void 0===m?null:m,x=t.bottomContent,y=void 0===x?null:x,v=t.actionContent,w=void 0===v?null:v,_=Wt(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return tt.createElement(Ou,Ut({className:n,type:"dropdown",disabled:a,mode:r,label:s,dropdownRender:function(t){return Tu(t,{iconSrc:c,extraText:h,extraAction:p,isAddItemBarVisible:g,topContent:b,bottomContent:y,actionContent:w})}},_),i)};Pu.Option=Ou.Option;var Ru,Lu,Fu,Iu,Nu=Kn.div(Ru||(Ru=jt(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),zu=Kn.img(Lu||(Lu=jt(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),Bu=Kn(Fo)(Fu||(Fu=jt(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),Vu=rn(Iu||(Iu=jt(["\n & .ant-form-item {\n margin-bottom: 0;\n }\n\n & .ant-form-item-has-error {\n font-family: ",";\n font-size: ",";\n line-height: 17px;\n\n & .ant-form-item-explain {\n color: ",";\n padding-top: 5px;\n padding-bottom: 5px;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: ",";\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: ",";\n font-weight: 400;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: "," !important;\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n -webkit-box-shadow: 0 0 0 3px ",";\n box-shadow: 0 0 0 3px ",";\n background-color: ",";\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: ",";\n background-color: ",";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border-color: ",";\n border-right: 0;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0;\n }\n\n & .ant-form-item-has-error {\n font-family: ",";\n font-size: ",";\n line-height: 17px;\n\n & .ant-form-item-explain {\n color: ",";\n padding-top: 5px;\n padding-bottom: 5px;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: ",";\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: ",";\n font-weight: 400;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: "," !important;\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n -webkit-box-shadow: 0 0 0 3px ",";\n box-shadow: 0 0 0 3px ",";\n background-color: ",";\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: ",";\n background-color: ",";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border-color: ",";\n border-right: 0;\n }\n }\n"])),ro,ji.P1,Vn.R400,Vn.R400,Vn.R400,Vn.R300,Vn.R100,Vn.R300,Vn.R100,Vn.R300,Vn.R200,Vn.R200,Vn.R100,Vn.R400,Vn.R100,Vn.R300),Hu=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=Wt(t,["className","children"]);return tt.createElement(yt,Ut({className:nn(Vu,n)},o),i)};Hu.Item=function(t){var e=t.className,n=void 0===e?"":e,i=Wt(t,["className"]);return tt.createElement(yt.Item,Ut({className:nn(Vu,n)},i))},Hu.useForm=yt.useForm;var ju,Wu,Uu=function(t){var e=t.typographyType,n=void 0===e?"body":e,i=t.size,o=void 0===i?"md":i,a=t.textContent,r=t.children,s=t.href,l=t.target,c=t.rel,d=t.isUnderlined,h=void 0===d||d,u=t.icon,p=t.iconPlacement,f=void 0===p?"left":p,g=t.onClick,m=Wt(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),b=Kn.a(ju||(ju=jt(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),u?"flex":"inline-flex",Fi.color.base.link,h?"underline":"none",Fi.color.base.link,h?"underline":"none",Fi.color.base.link),x=u&&"left"===f,y=u&&"right"===f,v=a||r;return tt.createElement(b,Ut({href:s,target:l,rel:c,onClick:g},m),x&&u,"body"===n&&tt.createElement(hn.Body,{size:o,color:Fi.color.base.link},v),"label"===n&&tt.createElement(hn.Label,{size:o,color:Fi.color.base.link},v),y&&u)},Gu="\n -webkit-font-smoothing: antialiased;\n\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: 0;\n font-family: ".concat(ro,";\n font-size: ").concat(ji.P1,";\n color: ").concat(jn.BLACK,";\n line-height: 17px;\n padding-left: 15px;\n padding-top: 12px;\n padding-bottom: 13px;\n\n &::placeholder {\n color: ").concat(jn.G400,";\n font-weight: 400;\n }\n }\n\n &.ant-input, &.ant-input-password {\n border-radius: 5px;\n border-color: ").concat(jn.G200,";\n\n &:hover {\n border-color: ").concat(Fi.brand.primary.default,";\n }\n\n &:focus {\n border-color: ").concat(Fi.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\n box-shadow: 0 0 0 3px #F0FFF9;\n color: ").concat(jn.BLACK,"\n }\n }\n\n & .ant-input, .ant-input-password {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: ").concat(jn.G200,";\n\n &:hover {\n border-color: ").concat(Fi.brand.primary.default,";\n }\n\n &:focus {\n border-color: ").concat(Fi.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\n box-shadow: 0 0 0 3px #F0FFF9;\n color: ").concat(jn.BLACK,"\n }\n }\n\n &.ant-input-disabled {\n background-color: ").concat(jn.G100,";\n border-color: ").concat(jn.G200,";\n\n &:hover {\n border-color: ").concat(jn.G200,";\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(ro,";\n color: ").concat(jn.BLACK,";\n background-color: ").concat(jn.G100,";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border-color: ").concat(jn.G200,";\n border-right: 0;\n padding-left: 15px;\n padding-right: 15px;\n\n + .ant-input-disabled {\n background-color: ").concat(jn.G100,";\n border-color: ").concat(jn.G200,";\n color: ").concat(jn.G400,";\n\n &:hover {\n border-color: ").concat(jn.G200,";\n }\n }\n }\n\n & .ant-input-group-addon:last-child {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-color: ").concat(jn.G200,";\n }\n\n &.ant-input-search {\n padding: 0;\n font-family: ").concat(ro,";\n font-size: ").concat(ji.P1,";\n line-height: 17px;\n padding-left: 15px;\n padding-top: 6px;\n padding-bottom: 6px;\n border-radius: 5px;\n border-color: ").concat(jn.G200,";\n width: 132px;\n\n &::placeholder {\n color: ").concat(jn.G400,";\n font-weight: 400;\n }\n\n &:hover {\n border-color: ").concat(Fi.brand.primary.default,";\n }\n\n & > .ant-input-suffix {\n width: 18px;\n margin-right: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(Fi.brand.primary.default,";\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\n box-shadow: 0 0 0 3px #F0FFF9;\n }\n"),Yu=function(){var t=$i().error;return tt.createElement("span",{style:{color:t.text,marginLeft:2}},"*")},$u=function(){return tt.createElement(No,{style:{color:jn.G500,marginLeft:3}},"Optional")},Xu=Kn.div(Wu||(Wu=jt(["\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n"],["\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n"]))),qu=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=t.optional,u=void 0!==h&&h,p=Wt(t,["addonBefore","placeholder","disabled","className","label","required","optional"]);return tt.createElement(tt.Fragment,null,c&&tt.createElement(Xu,null,tt.createElement(Io,null,c,d&&tt.createElement(Yu,null)),u&&tt.createElement($u,null)),tt.createElement(vt,Ut({className:"".concat(rn(Gu)," ").concat(l),addonBefore:n,placeholder:o,disabled:r},p)))};qu.Password=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=Wt(t,["addonBefore","placeholder","disabled","className","label","required"]);return tt.createElement(tt.Fragment,null,c&&tt.createElement(Xu,null,tt.createElement(Io,null,c,d&&tt.createElement(Yu,null))),tt.createElement(vt.Password,Ut({className:"".concat(rn(Gu)," ").concat(l),addonBefore:n,placeholder:o,disabled:r,visibilityToggle:!1},h)))},qu.Search=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.className,r=void 0===a?"":a,s=t.onChange,l=t.onSearch,c=Wt(t,["addonBefore","placeholder","className","onChange","onSearch"]),d=$i(),h=d.neutral,u=d.text,p=d.brand.primary,f="\n & .ant-input-group-addon:not(:last-child) {\n font-family: ".concat(ro,";\n color: ").concat(u.default,";\n background-color: ").concat(h.white,";\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n border: 1px solid ").concat(h.border,";\n border-right: 0;\n padding: ").concat("string"==typeof n?"0 15px":"0",";\n\n & .ant-select {\n margin: 0;\n \n \n &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple:not(.ant-select-customize-input) .ant-select-selector {\n height: 38px;\n }\n \n &.ant-select-single.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector, &.ant-select-multiple.ant-select-focused:not(.ant-select-customize-input) .ant-select-selector {\n border-color: ").concat(p.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(p.default,"33;\n box-shadow: 0 0 0 2px ").concat(p.default,"33;\n }\n } \n }\n\n & .ant-input-affix-wrapper, &.ant-input-affix-wrapper {\n border-radius: 5px;\n border: 1px solid ").concat(h.border,";\n padding: 8px 15px !important;\n\n &:hover {\n border-color: ").concat(p.default,";\n }\n }\n\n & .ant-input-affix-wrapper-focused, .ant-input-affix-wrapper:focus {\n border-color: ").concat(p.default,";\n -webkit-box-shadow: 0 0 0 2px ").concat(p.default,"33;\n box-shadow: 0 0 0 2px ").concat(p.default,"33;\n }\n ");return tt.createElement(vt,Ut({placeholder:o,addonBefore:n,onChange:s,onKeyDown:l,className:"".concat(rn(f)," ").concat(r),suffix:tt.createElement(Uu,{style:{display:"grid",justifyContent:"center"},onClick:l},tt.createElement(Ft,{style:{color:h.emphasis}}))},c))},qu.TextArea=function(t){var e=t.className,n=void 0===e?"":e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=Wt(t,["className","label","required","optional"]),c="\t \n &.ant-input {\t \n resize: none;\t\n border-radius: 5px;\t \n font-family: ".concat(ro,";\t \n font-size: ").concat(ji.P1,";\t \n color: ").concat(jn.BLACK,";\t \n line-height: 17px;\t\n padding-top: 12px;\t\n padding-left: 15px;\t\n padding-right: 15px;\t\n padding-bottom: 12px;\t\n border-color: ").concat(jn.G200,";\t\n }\t\n &.ant-input::placeholder {\t\n color: ").concat(jn.G400,";\t\n font-weight: 400;\t\n }\t\n &.ant-input:hover {\t\n border-color: ").concat(Fi.brand.primary.default,";\t\n }\t\n &.ant-input:focus {\t\n border-color: ").concat(Fi.brand.primary.default,";\t\n -webkit-box-shadow: 0 0 0 3px #F0FFF9;\t\n box-shadow: 0 0 0 3px #F0FFF9;\t\n color: ").concat(jn.BLACK,"\t\n }\t\n");return tt.createElement(tt.Fragment,null,i&&tt.createElement(Xu,null,tt.createElement(Io,null,i,a&&tt.createElement(Yu,null)),s&&tt.createElement($u,null)),tt.createElement(vt.TextArea,Ut({className:"".concat(rn(c)," ").concat(n)},l)))},qu.Group=vt.Group;Ii('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Ku={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Zu=function(t){var e=t.icon,n=t.size,i=void 0===n?"m":n,o=t.fill,a=void 0===o?0:o,r=t.color,s=void 0===r?jn.BLACK:r,l=t.className,c=void 0===l?"":l,d=t.style,h="string"==typeof i?Ku[i]:i,u=Ut({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:h,color:s},d);return tt.createElement("span",{className:"material-symbols-rounded ".concat(c),style:u,translate:"no"},e)},Ju={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Qu={sm:"xs",lg:"s"},tp={positive:{base:Fi.color.surface.subduePositive,text:Fi.color.status.positive,icon:Fi.color.status.positive,border:Fi.color.status.positive},critical:{base:Fi.color.surface.subdueCritical,text:Fi.color.status.critical,icon:Fi.color.status.critical,border:Fi.color.status.critical},warning:{base:Fi.color.surface.subdueWarning,text:Fi.color.status.warning,icon:Fi.color.status.warning,border:Fi.color.status.warning},info:{base:Fi.color.surface.SubdueInfo,text:Fi.color.status.info,icon:Fi.color.status.info,border:Fi.color.status.info},neutral:{base:jn.G100,text:Fi.color.base.onNeutralSecondary,icon:Fi.color.base.onNeutralSecondary,border:Fi.color.base.line}},ep={positive:{base:Fi.color.status.positive,text:Fi.color.base.onContainer,icon:"",border:Fi.color.status.positive},neutral:{base:Fi.color.surface.disabledSurface,text:Fi.color.surface.disabledOnSurface,icon:"",border:Fi.color.base.line}},np={positive:{base:Fi.color.surface.subduePositive,text:Fi.color.status.positive,icon:Fi.color.status.positive,border:Fi.color.status.positive},disabled:{base:Fi.color.surface.disabledSurface,text:Fi.color.surface.disabledOnSurface,icon:Fi.color.surface.disabledOnSurface,border:Fi.color.base.line},neutral:{base:Fi.color.surface.neutral,text:Fi.color.base.onNeutralSecondary,icon:Fi.color.base.onNeutralSecondary,border:Fi.color.base.line}};function ip(t,e,n){switch(e){case"outlined":default:return tp[t][n];case"filled":return ep[t][n];case"removable":return np[t][n]}}function op(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,a=t.size,r=void 0===a?"sm":a,s=t.variant,l=void 0===s?"outlined":s,c=t.onClick;return tt.createElement(Ap,{type:e,size:r,variant:l,onClick:"removable"!==l?c:void 0},o&&"disabled"!==e&&tt.createElement(Zu,{icon:Ju[e],size:Qu[r],color:ip(e,l,"icon")}),tt.createElement(hn.Body,{size:r,color:ip(e,l,"text")},n),"removable"===l&&tt.createElement(Cp,{onClick:c,type:"tertiary",icon:tt.createElement(Zu,{icon:"close",size:Qu[r],color:ip(e,l,"icon")})}))}var rp,sp,lp,cp,dp,hp,up,pp,fp,gp,mp,bp,xp,yp,vp,wp,_p,kp,Ep,Sp,Cp=Kn(io)(rp||(rp=jt(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),Ap=Kn.div(sp||(sp=jt(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return n=(e=t).type,i=e.variant,o=void 0===i?"outlined":i,a=e.size,r=void 0===a?"sm":a,s=e.onClick,"\n border-radius: ".concat("removable"===o?"999px":"4px",";\n min-height: ").concat("sm"===r?"24px":"32px",";\n background-color: ").concat(n&&o?ip(n,o,"base"):"transparent",";\n border: 1px solid ").concat(n&&o?ip(n,o,"border"):"transparent",";\n padding-inline: ").concat("removable"===o?"12px":"8px",";\n cursor: ").concat(s?"pointer":"default",";\n\n");var e,n,i,o,a,r,s}),Mp=function(t){var e=t.onClose,n=t.icon,i=t.title,o=t.children,a=t.footer,r=t.disabledCloseIcon,s=t.className,l=$i().neutral;return tt.createElement(Fp,{className:s},(n||i||!r)&&tt.createElement(Dp,{hasIcon:Boolean(n)},tt.createElement(Pp,null,tt.createElement(Rp,null,n,tt.createElement(Ro,null,i||"")),!r&&tt.createElement(Lp,{onClick:function(){return e()}},tt.createElement(Pt,{color:l.text,width:18}))),tt.createElement(Vo,null)),tt.createElement(Op,null,o),a&&tt.createElement(Tp,null,a))},Dp=Kn.div(lp||(lp=jt(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Pi,Pi),Op=Kn(Fo)(cp||(cp=jt(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ti,Pi,Pi,Pi),Tp=Kn.div(dp||(dp=jt(["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Pi,Di,Di),Pp=Kn.div(hp||(hp=jt(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Rp=Kn.div(up||(up=jt(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Lp=Kn.div(pp||(pp=jt(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"]))),Fp=Kn.div(fp||(fp=jt(["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"]))),Ip=document.body,Np=function(t){var e=$i().neutral,n=st(document.createElement("div"))[0];return ct(function(){return Ip.appendChild(n),function(){Ip.removeChild(n)}},[n]),Gt.createPortal(tt.createElement(Bp,{open:t.open},t.open&&tt.createElement(Dn,{styles:An(gp||(gp=jt(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),tt.createElement("div",{className:"".concat(rn(mp||(mp=jt(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(t.modalClassName)},tt.createElement(Vp,{hasIcon:Boolean(t.icon)},tt.createElement(Wp,null,tt.createElement(Up,null,t.icon,tt.createElement(Ro,null,t.title)),!t.disabledCloseIcon&&tt.createElement(Gp,{onClick:function(){return t.onClose()}},tt.createElement(Pt,{color:e.text,width:18}))),tt.createElement(Vo,null)),tt.createElement(Hp,null,t.children),tt.createElement(jp,null,t.footer))),n)},zp=Tn(bp||(bp=jt(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Bp=Kn.div(yp||(yp=jt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&An(xp||(xp=jt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),zp)}),Vp=Kn.div(vp||(vp=jt(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Pi,Pi),Hp=Kn.div(wp||(wp=jt(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ti,Pi,Pi,Pi),jp=Kn.div(_p||(_p=jt(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Pi,Di,Di),Wp=Kn.div(kp||(kp=jt(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Up=Kn.div(Ep||(Ep=jt(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Gp=Kn.div(Sp||(Sp=jt(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));function Yp(t){var e=t.current,n=t.pageSize,i=t.total,o=t.onChange,a=t.showSizeChanger,r=t.onShowSizeChange,s=t.pageSizeOptions,l="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(jn.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(ro,";\n border-radius: 5px;\n border: 1px solid ").concat(jn.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(Wn.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return tt.createElement(wt,{className:"".concat(rn(l)),current:e,pageSize:n,total:i,onChange:o,showSizeChanger:a,onShowSizeChange:r,pageSizeOptions:s})}var $p={Group:function(t){return tt.createElement(_t.Group,Ut({size:"large",onChange:t.onChange},t))},Button:function(t){var e=t.children,n=t.disabled,i=Wt(t,["children","disabled"]),o=$i().brand,a="\n &.ant-radio-button-wrapper {\n ".concat(n?"":"color: ".concat(jn.BLACK,";"),"\n -webkit-font-smoothing: antialiased;\n display: block;\n width: 100%;\n font-family: ").concat(ro,";\n font-weight: 400;\n border-radius: 5px;\n border: 1px solid ").concat(jn.G200,";\n user-select: none;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(n?"":"\n border-color: ".concat(o.primary.default,";\n color: ").concat(jn.BLACK,";\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(o.primary.default,";\n color: ").concat(o.primary.default,";\n\n circle {\n transition: all 0.3s;\n }\n\n circle.center {\n fill: ").concat(We.S500,";\n }\n\n circle.border {\n stroke: ").concat(o.primary.default,";\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(o.primary.default,";\n color: ").concat(o.primary.default,";\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(jn.BLACK,";\n }\n ");return tt.createElement(_t.Button,Ut({className:rn(a),disabled:n},i),tt.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},tt.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},tt.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),tt.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),e))}};function Xp(t){var e=t.format,n=void 0===e?"DD/MM/YYYY":e,i=Wt(t,["format"]),o="\n -webkit-font-smoothing: antialiased;\n height: 36px;\n\n &.ant-picker {\n border-radius: 5px;\n border-color: #E8E8E8;\n transition: 0.3s all ease;\n\n &:hover {\n border-color: ".concat(Fi.brand.primary.default,";\n }\n\n &.ant-picker-focused {\n border-color: ").concat(Fi.brand.primary.default,";\n box-shadow: 0 0 0 2px ").concat(Fi.brand.primary.background,";\n }\n\n .ant-picker-active-bar {\n background: ").concat(Fi.brand.primary.default,";\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(ro,";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n color: #121212;\n }\n\n & .ant-picker-input > input {\n color: #121212;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(jn.G400,";\n }\n "),a="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(Fi.brand.primary.default,";\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(Fi.brand.primary.default,";\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: #F0FFF9;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: #F0FFF9;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: #F0FFF9;\n }\n } \n ");return tt.createElement(kt.RangePicker,Ut({className:"".concat(rn(o)),format:n,popupClassName:rn(a)},i))}var qp,Kp,Zp=Kn("div")(qp||(qp=jt(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},ui,function(t){return"lg"===t.only?"none":"block"}),Jp=function(t){var e=t.className,n=Wt(t,["className"]),i="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(xi,"\n ").concat(Mi,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(xi,"\n ").concat(Ai,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(xi,"\n ").concat(Mi,"\n color: #777777;\n }\n ");return tt.createElement(Et,Ut({},n,{className:nn(rn(i),e)}))};Jp.Step=function(t){var e=Wt(t,[]),n=rn(Kp||(Kp=jt(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return tt.createElement(Et.Step,Ut({className:nn(n)},e))};var Qp,tf,ef,nf,of,rf,sf=function(t){var e=t.current,n=t.steps,i=t.desktopNote,o=lt(null),a=$i(),r=a.brand,s=a.success,l=a.neutral;ct(function(){var t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);var c=Kn.div(Qp||(Qp=jt(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),l.border,l.background),d=Kn.div(tf||(tf=jt(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),l.emphasis,function(t){return t.current===t.index?"\n background: ".concat(r.primary.default,";\n "):t.current>t.index?"\n background: ".concat(s.emphasis,";\n "):""}),h=Kn.div(ef||(ef=jt(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),l.emphasis),u=Kn.div(nf||(nf=jt(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),p=Kn(Fo)(of||(of=jt(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return tt.createElement(tt.Fragment,null,tt.createElement(Zp,{only:"sm"},tt.createElement("div",{style:{padding:"30px",width:"266px"}},tt.createElement(Jp,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map(function(t,e){return tt.createElement(Jp.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),i)),tt.createElement(Zp,{only:"lg",ref:o},tt.createElement(c,null,tt.createElement(u,null,n.map(function(t,i){return tt.createElement("span",{key:"mobile-".concat(t,"-").concat(i)},tt.createElement(p,{inactive:e<i,current:e===i},tt.createElement(d,{index:i,current:e}),t),i!==n.length-1&&tt.createElement(h,null))})))))},lf=rn(rf||(rf=jt(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),ro,He.DEFAULT),cf=function(t){var e=t.className,n=t.emptyText,i=Wt(t,["className","emptyText"]);return tt.createElement(St,Ut({className:nn(lf,e),locale:{emptyText:n}},i))},df=function(t){var e=t.children,n=Wt(t,["children"]),i=$i().brand,o="\n font-family: ".concat(ro,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(i.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(i.primary.default,"; \n }\n ");return tt.createElement(gt,Ut({className:"".concat(rn(o))},n),e)};df.TabPane=gt.TabPane;var hf=function(t){var e=t.initialSeconds,n=t.blinkActivationSeconds,i=t.shouldRepeat,o=t.onTimesUp,a=t.children,r=st(!1),s=r[0],l=r[1],c=st(e),d=c[0],h=c[1],u=st(void 0),p=u[0],f=u[1],g=st(!0),m=g[0],b=g[1],x=Date.now()+1e3*d;return ct(function(){m&&(f(setInterval(function(){var t=(new Date).getTime(),e=x-t,i=Math.ceil(e/1e3);i>=0&&h(i),n&&i<=n&&l(!0)},1e3)),b(!1))},[m]),ct(function(){d<=0&&void 0!==p&&(clearInterval(p),f(void 0),l(!1),o&&o(),i&&(h(e),b(!0)))},[p,d]),a(s,d)};function uf(t){var e=t.disabled,n=void 0!==e&&e,i=t.label,o=t.required,a=void 0!==o&&o,r=Wt(t,["disabled","label","required"]),s=$i(),l=s.error,c=s.spacing,d="\n -webkit-font-smoothing: antialiased;\n height: 44px;\n width: 100%;\n\n ".concat(n?"\n pointer-events: none;\n ":"","\n\n &.ant-picker {\n border-radius: 5px;\n border-color: #E8E8E8;\n transition: 0.3s all ease;\n\n &:hover {\n border-color: ").concat(Fi.brand.primary.default," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(Fi.brand.primary.default," !important;\n box-shadow: 0 0 0 2px ").concat(Fi.brand.primary.background," !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(ro,";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n color: #121212;\n }\n\n & .ant-picker-input > input {\n font-size: 14px;\n color: #121212;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px;\n color: ").concat(jn.G400,";\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(jn.G100,";\n border: 1px solid ").concat(jn.G200,";\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(jn.BLACK,";\n }\n\n & .ant-picker-cell-in-view{\n &.ant-picker-cell-today .ant-picker-cell-inner{\n &:before {\n border-color: ").concat(Fi.brand.primary.default,";\n } \n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(Fi.brand.primary.background,";\n }\n }\n "),h="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{\n background-color: ".concat(Fi.brand.primary.default,";\n }\n ");return tt.createElement(tt.Fragment,null,i&&tt.createElement(Io,{style:{display:"flex",marginBottom:c.xs}},i,a&&tt.createElement(function(){return tt.createElement("span",{style:{color:l.text,marginLeft:2}},"*")},null)),tt.createElement(kt,Ut({className:"".concat(rn(d)),popupClassName:rn(h),disabled:n},r)))}var pf,ff,gf,mf,bf,xf,yf,vf,wf,_f,kf,Ef,Sf,Cf,Af,Mf,Df,Of,Tf={Group:function(t){var e=t.className,n=void 0===e?"":e,i=Wt(t,["className"]),o="\n &.ant-checkbox-group {\n width: 100%;\n }\n\n & .ant-checkbox-group-item {\n display: flex;\n align-items: flex-start;\n\n border: 1px solid ".concat(Fi.brand.line.base,";\n border-radius: 5px;\n\n &:hover {\n border: 1px solid ").concat(Fi.brand.primary.default,";\n }\n\n &:focus-within {\n border: 1px solid ").concat(Fi.brand.primary.default,";\n }\n\n &:not(:last-child) {\n margin-bottom: 10px;\n width: 100%;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(Fi.brand.primary.default,";\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px;\n padding-top: 11px;\n padding-bottom: 11px;\n line-height: 1.6;\n color: ").concat(jn.BLACK,";\n font-family: ").concat(ro,";\n }\n\n & .ant-checkbox {\n margin-top: 4px;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px;\n padding-right: 10px;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(Fi.brand.primary.illustration,";\n border-color: ").concat(Fi.brand.primary.default,";\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px;\n border: 1px solid ").concat(Fi.brand.primary.default,";\n }\n ");return tt.createElement(Ct.Group,Ut({className:"".concat(rn(o)," ").concat(n)},i))}},Pf=function(t){var e=t.title,n=void 0===e?"No results found":e,i=t.subtitle,o=t.info,a=t.svgUniqueId,r=void 0===a?"randomString":a;return tt.createElement(Rf,null,tt.createElement(At,{image:tt.createElement(It,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),n&&tt.createElement(Lf,null,n),i&&tt.createElement(Ff,null,i),o&&tt.createElement(If,null,o))},Rf=Kn.div(pf||(pf=jt(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),Lf=Kn(Io)(ff||(ff=jt(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),Ff=Kn(Fo)(gf||(gf=jt(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),Ue.S500),If=Kn(Fo)(mf||(mf=jt(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),He.DEFAULT),Nf=function(t){var e=t.title,n=t.children,i=$i(),o=i.spacing,a=i.neutral,r=Kn.div(bf||(bf=jt(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),o.sm,o.md,a.background);return tt.createElement(r,null,tt.createElement(Io,{style:{marginBottom:o.sm}},e),n)},zf=function(t){var e=t.title,n=t.children,i=Array.isArray(n)&&n.length>1,o=Kn.div(xf||(xf=jt(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),Fi.color.surface.subduePositive),a=Kn.div(yf||(yf=jt(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),Fi.color.status.positive,e?"5px":"0px");return tt.createElement(o,null,tt.createElement(a,null,tt.createElement(hn.Label,{size:"md"},e),i?tt.createElement(hn.Body,{size:"md",style:{scrollbarWidth:"none"}},tt.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return tt.createElement("li",{key:e},t)}))):tt.createElement(hn.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},Bf=function(t){var e=t.withIcon,n=void 0!==e&&e,i=t.children,o=t.type,a=void 0===o?"primary":o,r=Wt(t,["withIcon","children","type"]),s=$i(),l=s.brand,c=s.spacing,d="\n color: ".concat(Fi.color.base.primary,";\n background: ").concat(l.primary.background,";\n "),h="\n color: ".concat(Fi.color.status.positive,";\n background: ").concat(Fi.color.surface.subduePositive,";\n "),u="\n color: ".concat(Fi.color.status.warning,";\n background: ").concat(Fi.color.surface.subdueWarning,";\n "),p="\n color: ".concat(Fi.color.status.critical,";\n background: ").concat(Fi.color.surface.subdueCritical,";\n "),f="\n color: ".concat(Fi.color.base.onNeutral,"};\n background: ").concat(Fi.color.surface.SubdueInfo,";\n "),g=Kn.div(vf||(vf=jt(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),c.sm,function(){switch(a){case"primary":default:return d;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}}()),m=rn(wf||(wf=jt(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return tt.createElement(g,Ut({},r),n&&("primary"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:l.primary.emphasis,className:nn(m)}):"success"===a?tt.createElement(zt,{style:{minHeight:"18px",minWidth:"18px"},color:Fi.color.status.positive,className:nn(m)}):"warning"===a?tt.createElement(Bt,{style:{minHeight:"18px",minWidth:"18px"},color:Fi.color.status.warning,className:nn(m)}):"error"===a?tt.createElement(Vt,{style:{minHeight:"18px",minWidth:"18px"},color:Fi.color.status.critical,className:nn(m)}):"notification"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:Fi.color.status.info,className:nn(m)}):tt.createElement(tt.Fragment,null)),tt.createElement(hn.Body,{size:"md"},i))},Vf={Title:Kn(Lo)(_f||(_f=jt(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:Kn(Fo)(kf||(kf=jt(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:Kn.div(Ef||(Ef=jt(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),ui),Left:Kn.div(Sf||(Sf=jt(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),ui),Right:Kn.div(Cf||(Cf=jt(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),ui)};var Hf,jf,Wf,Uf,Gf,Yf,$f,Xf,qf=se(function(){if(Of)return Df;Of=1;var t=Mf?Af:(Mf=1,Af=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return Df=function(n,i){var o,a,r,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(r=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=e[i.format]||e.default;window.clipboardData.setData(a,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),a=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return d}}()),Kf=Kn.div(Hf||(Hf=jt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),Zf=Kn.div(jf||(jf=jt(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Jf=Kn.div(Wf||(Wf=jt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Qf=Kn.div(Uf||(Uf=jt(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),tg=Kn.div(Gf||(Gf=jt(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),Fi.color.surface.disabledSurface,Fi.color.base.line),eg=Kn.div(Yf||(Yf=jt(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),ng=Kn.div($f||($f=jt(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),Fi.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),ig=Kn(pt)(Xf||(Xf=jt(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),Fi.color.base.line,Fi.color.surface.neutral,xi,Fi.brand.primary.default),og=function(t){var e=t.value,n=t.allowCopy,i=void 0===n||n,o=t.valueToCopy,a=void 0===o?e:o,r=t.isBankAddress,s=void 0!==r&&r,l=t.showCopyIcon,c=void 0===l||l,d=t.icon,h=t.iconSize,u=t.labelText,p=t.labelTooltip,f=t.helperText,g=t.helperTextType,m=t.onButtonClick;return tt.createElement(Kf,null,tt.createElement(Zf,null,u&&tt.createElement(hn.Body,{size:"md",color:Fi.color.base.onNeutral},u),p&&tt.createElement(Jf,null,p)),tt.createElement(tg,null,tt.createElement(eg,null,d&&tt.createElement(Qf,{iconSize:h},d),tt.createElement(hn.Body,{size:"lg"},tt.createElement(ng,{isBankAddress:s},e))),i&&tt.createElement(ig,{onClick:function(){void 0!==m&&m(),qf(a)}},c?tt.createElement(Ht,null):tt.createElement(hn.Label,{size:"md",color:Fi.brand.primary.default},"Copy"))),f&&tt.createElement(hn.Body,{size:"sm",color:"error"===g?Fi.color.status.critical:Fi.color.base.onNeutralSecondary},f))};function rg(t){var e=t.children,n=t.placement,i=void 0===n?"bottomRight":n,o=t.overlayClassName,a=void 0===o?yg:o,r=t.arrowPointAtCenter,s=void 0===r||r,l=t.trigger,c=void 0===l?"hover":l,d=t.color,h=t.title,u=t.content,p=t.mouseEnterDelay,f=void 0===p?0:p,g=t.mouseLeaveDelay,m=void 0===g?0:g,b=t.isNew,x=void 0!==b&&b,y=t.actionTitle,v=t.dismissTitle,w=t.maxWidth,_=t.onAction,k=t.onDismiss,E=w?{maxWidth:w}:void 0;return tt.createElement(Mt,{overlayClassName:a,arrowPointAtCenter:s,trigger:c,color:d,placement:i,overlayStyle:E,title:tt.createElement(vg,null,h&&tt.createElement(Io,{style:{fontSize:ji.P1,marginBottom:"16px",color:Fi.text.white}},h,!0===x&&tt.createElement(_g,null,"New")),u,(y||v)&&tt.createElement(wg,null,tt.createElement(Eg,{onClick:function(t){t.preventDefault(),k&&k()}},v),tt.createElement(kg,{onClick:function(t){t.preventDefault(),_&&_()}},y))),mouseEnterDelay:f,mouseLeaveDelay:m},e)}var sg,lg,cg,dg,hg,ug,pg,fg,gg,mg,bg,xg,yg=rn(sg||(sg=jt(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"])),gi,ji.P1,Hi.REGULAR,Fi.text.white,Fi.brand.primary.contrast,ui,Fi.brand.primary.contrast),vg=Kn.div(lg||(lg=jt(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),wg=Kn.div(cg||(cg=jt(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),_g=Kn.span(dg||(dg=jt(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),Bn.G400,Fi.text.white,ji.SMALL,Hi.BOLD),kg=Kn.a(hg||(hg=jt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Hi.BOLD,Fi.brand.action.default,Fi.brand.action.hover),Eg=Kn.a(ug||(ug=jt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Hi.BOLD,Fi.text.white,Fi.text.white),Sg=function(t){var e=t.title,n=t.subtitle,i=t.content,o=t.fallbackContent,a=t.backgroundColor,r=$i(),s=r.neutral,l=r.text,c=Kn.div(pg||(pg=jt(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),gi,s.bluish),d=Kn.div(fg||(fg=jt(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),gi,ui,function(t){return t.backgroundColor||s.background}),h=Kn.div(gg||(gg=jt(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),gi,l.default,yi),u=Kn.div(mg||(mg=jt(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),l.default,_i);return tt.createElement(d,{backgroundColor:a},tt.createElement(c,null,e),tt.createElement(h,null,n),tt.createElement(u,null,i),o)},Cg=function(t){var e=t.size,n=Wt(t,["size"]),i=$i().brand,o=rn(bg||(bg=jt(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),i.primary.default);return tt.createElement(Dt,Ut({className:nn(o),size:e},n))},Ag=function(t){var e=t.label,n=t.amount,i=t.type,o=void 0===i?"default":i,a=t.height,r=void 0===a?91:a,s=t.width,l=void 0===s?230:s,c=t.isInverted,d=void 0!==c&&c,h=t.icon,u=Kn(To)(xg||(xg=jt(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof l?"".concat(l,"px"):l,r,h&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",d&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return tt.createElement(u,{type:o},h&&h,tt.createElement("div",null,tt.createElement(Fo,{style:{marginBottom:d?"0":"5px"}},e),tt.createElement(Po,{style:{marginBottom:d?"5px":"0"}},n)))},Mg=function(t){var e=t.className,n=Wt(t,["className"]);return tt.createElement(Ot,Ut({},n,{className:nn(rn("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),e)}))};function Dg(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,a=t.step,r=t.tooltipProps,s=t.backProps,l=a.title,c=a.content,d=a.data;return tt.createElement(Bg,{role:r.role},tt.createElement(Vg,null,tt.createElement(Hg,null,tt.createElement(hn.Label,{size:"md"},l),tt.createElement(jg,{role:o.role,onClick:o.onClick},tt.createElement(Zu,{icon:"close",size:"m"}))),tt.createElement(hn.Body,{size:"md"},c)),tt.createElement(Wg,null,tt.createElement(Ug,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==d?void 0:d.skipZeroIndex)?tt.createElement(tt.Fragment,null):tt.createElement(Gg,{key:n,isActive:n===e})})),tt.createElement($g,null,s&&tt.createElement(Yg,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===e,onClick:s.onClick,isUnderlined:!1},"Back"),tt.createElement(Uu,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))}Mg.Item=Ot.Item;var Og,Tg,Pg,Rg,Lg,Fg,Ig,Ng,zg,Bg=Kn.div(Og||(Og=jt(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),Fi.color.surface.secondaryNeutral),Vg=Kn.div(Tg||(Tg=jt(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),Fi.color.base.onNeutral),Hg=Kn.div(Pg||(Pg=jt(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),jg=Kn(Uu)(Rg||(Rg=jt(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),Wg=Kn.div(Lg||(Lg=jt(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Ug=Kn.div(Fg||(Fg=jt(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),Gg=Kn.span(Ig||(Ig=jt(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(Fi.color.base.primary3):"".concat(Fi.color.surface.disabledOnSurface)}),Yg=Kn(Uu)(Ng||(Ng=jt(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(Fi.color.surface.disabledOnSurface):"".concat(Fi.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),$g=Kn.div(zg||(zg=jt(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));function Xg(t){var e=t||{},n=e.arrowColor,i=void 0===n?Fi.color.surface.secondaryNeutral:n,o=e.arrowLength,a=void 0===o?8:o,r=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:a,spread:void 0===r?16:r,color:i}}}}}var qg,Kg,Zg,Jg,Qg=tt.createContext({setModal:function(){return null},resetModal:function(){return null}}),tm=document.body,em=function(t){var e=t.modal,n=st(document.createElement("div"))[0];n.setAttribute("id","modal-root"),ct(function(){return tm.appendChild(n),function(){tm.removeChild(n)}},[n]);var i=tt.createElement(Dn,{styles:An(qg||(qg=jt(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return Gt.createPortal(tt.createElement(rm,{open:!!e},!!e&&i,e),n)},nm=function(t){var e=t.children,n=st(),i=n[0],o=n[1],a=dt(function(){o(void 0)},[o]);return tt.createElement(Qg.Provider,{value:{resetModal:a,setModal:o}},e,tt.createElement(em,{modal:i}))},im=function(){var t=tt.useContext(Qg);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},om=Tn(Kg||(Kg=jt(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),rm=Kn.div(Jg||(Jg=jt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&An(Zg||(Zg=jt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),om)});export{jo as Accordion,oo as ActionButton,Ho as ActionCard,di as Alert,Yt as AntdConfigProvider,Yn as BACKGROUND_COLORS,zn as BLUE_COLORS,qo as BadgeIcon,Bf as Banner,io as Button,To as Card,gu as Carousel,fu as Chart,Tf as Checkbox,Dg as Coachmark,Nf as ContentBreakdown,og as CopyBox,ui as DESKTOP_BREAKPOINT,uf as DatePicker,Np as DeprecatedModal,Vo as Divider,Su as Dropdown,Pu as DynamicSelect,hi as EXTRA_LARGE_DESKTOP_BREAKPOINT,Pf as EmptyData,Sg as ErrorPage,so as FALLBACK_FONT,ji as FONT_SIZE,Hi as FONT_WEIGHT,Hu as Form,Bn as GREEN_COLORS,Po as H1,Ro as H2,Lo as H3,zo as H4,Zp as Hidden,Un as ICON_COLORS,qu as Input,pi as LAPTOP_BREAKPOINT,Wi as LINE_HEIGHT,Uu as Link,Wn as MAIN_COLORS,ro as MAIN_FONT,Zu as MaterialSymbols,Mp as Modal,nm as ModalProvider,jn as NEUTRAL_COLORS,zf as Note,Fo as P1,Io as P1Bold,Yp as Pagination,Vn as RED_COLORS,$p as Radio,Xp as RangePicker,Vf as Section,Ou as Select,No as SmallP,Cg as Spin,sf as Steps,Ag as SummaryCard,fi as TABLET_BREAKPOINT,Gn as TEXT_COLORS,cf as Table,df as Tabs,op as Tag,Yi as ThemeProvider,Mg as Timeline,hf as Timer,rg as Tooltip,hn as Typography,Hn as YELLOW_COLORS,Xg as getCoachmarkJoyrideConfig,Fi as straitsXTheme,im as useModal,$i as useTheme,Li as xfersTheme};
|
|
22
22
|
//# sourceMappingURL=index.js.map
|