promptfoo 0.28.0 → 0.28.2
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/dist/package.json +1 -1
- package/dist/src/assertions.d.ts +2 -1
- package/dist/src/assertions.d.ts.map +1 -1
- package/dist/src/assertions.js +11 -1
- package/dist/src/assertions.js.map +1 -1
- package/dist/src/evaluator.d.ts.map +1 -1
- package/dist/src/evaluator.js +9 -11
- package/dist/src/evaluator.js.map +1 -1
- package/dist/src/providers/azureopenai.d.ts +1 -1
- package/dist/src/providers/azureopenai.d.ts.map +1 -1
- package/dist/src/providers/azureopenai.js +1 -1
- package/dist/src/providers/azureopenai.js.map +1 -1
- package/dist/src/providers/azureopenaiUtil.d.ts +3 -0
- package/dist/src/providers/azureopenaiUtil.d.ts.map +1 -0
- package/dist/src/providers/azureopenaiUtil.js +28 -0
- package/dist/src/providers/azureopenaiUtil.js.map +1 -0
- package/dist/src/providers/huggingface.d.ts +1 -0
- package/dist/src/providers/huggingface.d.ts.map +1 -1
- package/dist/src/providers/huggingface.js +3 -1
- package/dist/src/providers/huggingface.js.map +1 -1
- package/dist/src/types.d.ts +7 -5
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/util.d.ts.map +1 -1
- package/dist/src/util.js +9 -6
- package/dist/src/util.js.map +1 -1
- package/dist/src/web/nextui/404/index.html +1 -0
- package/dist/src/web/nextui/404.html +1 -0
- package/dist/src/web/nextui/_next/static/ZgNps6kLKUPJC715SC-g5/_buildManifest.js +1 -0
- package/dist/src/web/nextui/_next/static/ZgNps6kLKUPJC715SC-g5/_ssgManifest.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/21-8a2c661f5df627d6.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/238-84a998be247f92e7.js +2 -0
- package/dist/src/web/nextui/_next/static/chunks/293-f7537306415679fd.js +89 -0
- package/dist/src/web/nextui/_next/static/chunks/320-d41e321556b1b694.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/339-501c32916b785ef1.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/502-683cf7d0202ccda6.js +37 -0
- package/dist/src/web/nextui/_next/static/chunks/548-46c7c1d35ca1bc02.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/563-a961efef5193d79c.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/596-297f7ff4a0436e87.js +25 -0
- package/dist/src/web/nextui/_next/static/chunks/753-f62bfa32dbd9ff14.js +8 -0
- package/dist/src/web/nextui/_next/static/chunks/808-90426be34a5d9784.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/82-74626c128eefc7a5.js +7 -0
- package/dist/src/web/nextui/_next/static/chunks/891-0db60f0c621a137c.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/919-d71c386cf4a86911.js +44 -0
- package/dist/src/web/nextui/_next/static/chunks/975-380318b3b26ba688.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-74ee07fe19cc0bbe.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-910ae67c25dade94.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-8aeacfc0a957e29b.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/not-found-8624f98413223113.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/page-5998bcdda13755aa.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/eval/page-9e9fd3e7850af5fc.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/layout-7031bb251bd9af74.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/page-864c14f3dfba2dc2.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-eaf4573ef16fa693.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-c52eef7220e67bae.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/ca377847-26b462611379a4f7.js +6 -0
- package/dist/src/web/nextui/_next/static/chunks/fd9d1056-fba4b53a2f01213b.js +9 -0
- package/dist/src/web/nextui/_next/static/chunks/framework-8883d1e9be70c3da.js +25 -0
- package/dist/src/web/nextui/_next/static/chunks/main-4ff8304034a9c4dd.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/main-app-635e57f728b91b66.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/pages/_app-52924524f99094ab.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/pages/_error-c92d5c4bb2b49926.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/webpack-811cd7aa61622539.js +1 -0
- package/dist/src/web/nextui/_next/static/css/09cb35b4c681097c.css +1 -0
- package/dist/src/web/nextui/_next/static/css/1599e12d0900aa2d.css +1 -0
- package/dist/src/web/nextui/_next/static/css/16c1dd82fc87c9d7.css +1 -0
- package/dist/src/web/nextui/_next/static/css/44c5fe41778e53f7.css +1 -0
- package/dist/src/web/nextui/_next/static/css/48d388184a2f4ce3.css +1 -0
- package/dist/src/web/nextui/_next/static/css/8119d8bd13a8adab.css +1 -0
- package/dist/src/web/nextui/_next/static/media/0e4fe491bf84089c-s.p.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/1c57ca6f5208a29b-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/3dbd163d3bb09d47-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/42d52f46a26971a3-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/5647e4c23315a2d2-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/627622453ef56b0d-s.p.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/7be645d133f3ee22-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/7c53f7419436e04b-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/8fb72f69fba4e3d2-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/912a9cfe43c928d9-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/934c4b7cb736f2a3-s.p.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/a5b77b63ef20339c-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/a6d330d7873e7320-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/baf12dd90520ae41-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/bbdb6f0234009aba-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/cff529cd86cc0276-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/d117eea74e01de14-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/dfa8b99978df7bbc-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/e25729ca87cc7df9-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/eb52b768f62eeeb4-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/f06116e890b3dadb-s.woff2 +0 -0
- package/dist/src/web/nextui/auth/callback +1 -0
- package/dist/src/web/nextui/auth/login/index.html +1 -0
- package/dist/src/web/nextui/auth/login/index.txt +12 -0
- package/dist/src/web/nextui/auth/signup/index.html +1 -0
- package/dist/src/web/nextui/auth/signup/index.txt +12 -0
- package/dist/src/web/nextui/datasets/index.html +1 -0
- package/dist/src/web/nextui/datasets/index.txt +12 -0
- package/dist/src/web/nextui/eval/index.html +1 -0
- package/dist/src/web/nextui/eval/index.txt +14 -0
- package/dist/src/web/nextui/favicon.ico +0 -0
- package/dist/src/web/nextui/index.html +1 -0
- package/dist/src/web/nextui/index.txt +13 -0
- package/dist/src/web/nextui/logo.svg +30 -0
- package/dist/src/web/nextui/prompts/index.html +1 -0
- package/dist/src/web/nextui/prompts/index.txt +12 -0
- package/dist/src/web/nextui/setup/index.html +27 -0
- package/dist/src/web/nextui/setup/index.txt +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[502],{4719:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var o=r(n(984)),i=n(7437),l=(0,o.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=l},3533:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var o=r(n(984)),i=n(7437),l=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=l},7175:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var o=r(n(984)),i=n(7437),l=(0,o.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.Z=l},5391:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var o=r(n(984)),i=n(7437),l=(0,o.default)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.Z=l},2467:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var o=r(n(984)),i=n(7437),l=(0,o.default)((0,i.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");t.Z=l},9605:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var o=r(n(984)),i=n(7437),l=(0,o.default)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=l},7760:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(791),o=n(3428),i=n(2265),l=n(7042),a=n(5600),s=n(9975),u=n(8702),c=n(5843),d=n(3292),f=n(9592),h=n(6659),p=n(6520),g=n(5702);function m(e){return(0,g.Z)("PrivateSwitchBase",e)}(0,p.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var b=n(7437);let y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],v=e=>{let{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,u.Z)(o)}`],input:["input"]};return(0,a.Z)(i,m,t)},w=(0,c.ZP)(h.Z)(({ownerState:e})=>(0,o.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),C=(0,c.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),x=i.forwardRef(function(e,t){let{autoFocus:n,checked:i,checkedIcon:a,className:s,defaultChecked:u,disabled:c,disableFocusRipple:h=!1,edge:p=!1,icon:g,id:m,inputProps:x,inputRef:S,name:k,onBlur:R,onChange:M,onFocus:A,readOnly:_,required:E=!1,tabIndex:O,type:P,value:F}=e,L=(0,r.Z)(e,y),[T,I]=(0,d.Z)({controlled:i,default:!!u,name:"SwitchBase",state:"checked"}),B=(0,f.Z)(),V=c;B&&void 0===V&&(V=B.disabled);let Z="checkbox"===P||"radio"===P,N=(0,o.Z)({},e,{checked:T,disabled:V,disableFocusRipple:h,edge:p}),z=v(N);return(0,b.jsxs)(w,(0,o.Z)({component:"span",className:(0,l.Z)(z.root,s),centerRipple:!0,focusRipple:!h,disabled:V,tabIndex:null,role:void 0,onFocus:e=>{A&&A(e),B&&B.onFocus&&B.onFocus(e)},onBlur:e=>{R&&R(e),B&&B.onBlur&&B.onBlur(e)},ownerState:N,ref:t},L,{children:[(0,b.jsx)(C,(0,o.Z)({autoFocus:n,checked:i,defaultChecked:u,className:z.input,disabled:V,id:Z?m:void 0,name:k,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;I(t),M&&M(e,t)},readOnly:_,ref:S,required:E,ownerState:N,tabIndex:O,type:P},"checkbox"===P&&void 0===F?{}:{value:F},x)),T?a:g]}))});var S=n(9782),k=(0,S.Z)((0,b.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),R=(0,S.Z)((0,b.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M=(0,S.Z)((0,b.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),A=n(7927);function _(e){return(0,g.Z)("MuiCheckbox",e)}let E=(0,p.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),O=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],P=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,l={root:["root",n&&"indeterminate",`color${(0,u.Z)(r)}`,`size${(0,u.Z)(i)}`]},s=(0,a.Z)(l,_,t);return(0,o.Z)({},t,s)},F=(0,c.ZP)(x,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,o.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${E.checked}, &.${E.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${E.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),L=(0,b.jsx)(R,{}),T=(0,b.jsx)(k,{}),I=(0,b.jsx)(M,{}),B=i.forwardRef(function(e,t){var n,a;let s=(0,A.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=L,color:c="primary",icon:d=T,indeterminate:f=!1,indeterminateIcon:h=I,inputProps:p,size:g="medium",className:m}=s,y=(0,r.Z)(s,O),v=f?h:d,w=f?h:u,C=(0,o.Z)({},s,{color:c,indeterminate:f,size:g}),x=P(C);return(0,b.jsx)(F,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":f},p),icon:i.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:g}),checkedIcon:i.cloneElement(w,{fontSize:null!=(a=w.props.fontSize)?a:g}),ownerState:C,ref:t,className:(0,l.Z)(x.root,m)},y,{classes:x}))});var V=B},182:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(791),o=n(3428),i=n(2265),l=n(7042),a=n(5600),s=n(9592),u=n(3457),c=n(3226),d=n(8702),f=n(5843),h=n(7927),p=n(6520),g=n(5702);function m(e){return(0,g.Z)("MuiFormControlLabel",e)}let b=(0,p.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var y=n(4379),v=n(7437);let w=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],C=e=>{let{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,l={root:["root",n&&"disabled",`labelPlacement${(0,d.Z)(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,a.Z)(l,m,t)},x=(0,f.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${b.label}`]:t.label},t.root,t[`labelPlacement${(0,d.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,o.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${b.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${b.label}`]:{[`&.${b.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),S=(0,f.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${b.error}`]:{color:(e.vars||e).palette.error.main}})),k=i.forwardRef(function(e,t){var n,a;let d=(0,h.Z)({props:e,name:"MuiFormControlLabel"}),{className:f,componentsProps:p={},control:g,disabled:m,disableTypography:b,label:k,labelPlacement:R="end",required:M,slotProps:A={}}=d,_=(0,r.Z)(d,w),E=(0,s.Z)(),O=null!=(n=null!=m?m:g.props.disabled)?n:null==E?void 0:E.disabled,P=null!=M?M:g.props.required,F={disabled:O,required:P};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==d[e]&&(F[e]=d[e])});let L=(0,y.Z)({props:d,muiFormControl:E,states:["error"]}),T=(0,o.Z)({},d,{disabled:O,labelPlacement:R,required:P,error:L.error}),I=C(T),B=null!=(a=A.typography)?a:p.typography,V=k;return null==V||V.type===c.Z||b||(V=(0,v.jsx)(c.Z,(0,o.Z)({component:"span"},B,{className:(0,l.Z)(I.label,null==B?void 0:B.className),children:V}))),(0,v.jsxs)(x,(0,o.Z)({className:(0,l.Z)(I.root,f),ownerState:T,ref:t},_,{children:[i.cloneElement(g,F),P?(0,v.jsxs)(u.Z,{direction:"row",alignItems:"center",children:[V,(0,v.jsxs)(S,{ownerState:T,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):V]}))});var R=k},8212:function(e,t,n){"use strict";var r=n(791),o=n(3428),i=n(2265),l=n(7042),a=n(5600),s=n(3226),u=n(7820),c=n(7927),d=n(5843),f=n(9660),h=n(7437);let p=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],g=e=>{let{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return(0,a.Z)({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},f.L,t)},m=(0,d.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${f.Z.primary}`]:t.primary},{[`& .${f.Z.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>(0,o.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),b=i.forwardRef(function(e,t){let n=(0,c.Z)({props:e,name:"MuiListItemText"}),{children:a,className:d,disableTypography:f=!1,inset:b=!1,primary:y,primaryTypographyProps:v,secondary:w,secondaryTypographyProps:C}=n,x=(0,r.Z)(n,p),{dense:S}=i.useContext(u.Z),k=null!=y?y:a,R=w,M=(0,o.Z)({},n,{disableTypography:f,inset:b,primary:!!k,secondary:!!R,dense:S}),A=g(M);return null==k||k.type===s.Z||f||(k=(0,h.jsx)(s.Z,(0,o.Z)({variant:S?"body2":"body1",className:A.primary,component:null!=v&&v.variant?void 0:"span",display:"block"},v,{children:k}))),null==R||R.type===s.Z||f||(R=(0,h.jsx)(s.Z,(0,o.Z)({variant:"body2",className:A.secondary,color:"text.secondary",display:"block"},C,{children:R}))),(0,h.jsxs)(m,(0,o.Z)({className:(0,l.Z)(A.root,d),ownerState:M,ref:t},x,{children:[k,R]}))});t.Z=b},9660:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(6520),o=n(5702);function i(e){return(0,o.Z)("MuiListItemText",e)}let l=(0,r.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=l},5507:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(791),o=n(3428),i=n(2265),l=n(7042),a=n(5600),s=n(9975),u=n(5843),c=n(7927),d=n(7820),f=n(6659),h=n(8519),p=n(7663),g=n(6520);let m=(0,g.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),b=(0,g.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var y=n(9660),v=n(5702);function w(e){return(0,v.Z)("MuiMenuItem",e)}let C=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var x=n(7437);let S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:l,classes:s}=e,u=(0,a.Z)({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",l&&"selected"]},w,s);return(0,o.Z)({},s,u)},R=(0,u.ZP)(f.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${C.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${m.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${m.inset}`]:{marginLeft:52},[`& .${y.Z.root}`]:{marginTop:0,marginBottom:0},[`& .${y.Z.inset}`]:{paddingLeft:36},[`& .${b.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${b.root} svg`]:{fontSize:"1.25rem"}}))),M=i.forwardRef(function(e,t){let n;let a=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:u="li",dense:f=!1,divider:g=!1,disableGutters:m=!1,focusVisibleClassName:b,role:y="menuitem",tabIndex:v,className:w}=a,C=(0,r.Z)(a,S),M=i.useContext(d.Z),A=i.useMemo(()=>({dense:f||M.dense||!1,disableGutters:m}),[M.dense,f,m]),_=i.useRef(null);(0,h.Z)(()=>{s&&_.current&&_.current.focus()},[s]);let E=(0,o.Z)({},a,{dense:A.dense,divider:g,disableGutters:m}),O=k(a),P=(0,p.Z)(_,t);return a.disabled||(n=void 0!==v?v:-1),(0,x.jsx)(d.Z.Provider,{value:A,children:(0,x.jsx)(R,(0,o.Z)({ref:P,role:y,tabIndex:n,component:u,focusVisibleClassName:(0,l.Z)(O.focusVisible,b),className:(0,l.Z)(O.root,w)},C,{ownerState:E,classes:O}))})});var A=M},33:function(e,t,n){"use strict";let r;n.d(t,{ZP:function(){return J}});var o=n(791),i=n(3428),l=n(2265),a=n(7042),s=n(5600),u=n(7282),c=n(3655),d=n(6278),f=n(4625),h=n(8495),p=n(5137),g=n(1091),m=n(8136),b={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function y(e,t){return e-t}function v(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function w(e,t){var n;let{index:r}=null!=(n=e.reduce((e,n,r)=>{let o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e},null))?n:{};return r}function C(e,t){if(void 0!==t.current&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){let r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function x({values:e,newValue:t,index:n}){let r=e.slice();return r[n]=t,r.sort(y)}function S({sliderRef:e,activeIndex:t,setActive:n}){var r,o,i;let l=(0,d.Z)(e.current);null!=(r=e.current)&&r.contains(l.activeElement)&&Number(null==l||null==(o=l.activeElement)?void 0:o.getAttribute("data-index"))===t||null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function k(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}(e,t)}let R={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},M=e=>e;function A(){return void 0===r&&(r="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),r}var _=n(9975),E=n(7927),O=n(5843),P=n(1101),F=e=>!e||!(0,c.X)(e),L=n(8702),T=n(6520),I=n(5702);function B(e){return(0,I.Z)("MuiSlider",e)}let V=(0,T.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var Z=n(7437);let N=e=>{let{open:t}=e,n={offset:(0,a.Z)(t&&V.valueLabelOpen),circle:V.valueLabelCircle,label:V.valueLabelLabel};return n},z=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function j(e){return e}let D=(0,O.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${(0,L.Z)(n.color)}`],"medium"!==n.size&&t[`size${(0,L.Z)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})(({theme:e,ownerState:t})=>(0,i.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,i.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,i.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${V.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${V.dragging}`]:{[`& .${V.thumb}, & .${V.track}`]:{transition:"none"}}})),H=(0,O.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>(0,i.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1})),q=(0,O.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?(0,_.$n)(e.palette[t.color].main,.62):(0,_._j)(e.palette[t.color].main,.5);return(0,i.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),$=(0,O.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,L.Z)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,L.Z)(n.size)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,i.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${V.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,_.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${V.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,_.Fq)(e.palette[t.color].main,.16)}`},[`&.${V.disabled}`]:{"&:hover":{boxShadow:"none"}}})),U=(0,O.ZP)(function(e){let{children:t,className:n,value:r}=e,o=N(e);return t?l.cloneElement(t,{className:(0,a.Z)(t.props.className)},(0,Z.jsxs)(l.Fragment,{children:[t.props.children,(0,Z.jsx)("span",{className:(0,a.Z)(o.offset,n),"aria-hidden":!0,children:(0,Z.jsx)("span",{className:o.circle,children:(0,Z.jsx)("span",{className:o.label,children:r})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>(0,i.Z)({[`&.${V.valueLabelOpen}`]:{transform:`${"vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${"vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"small"===t.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),G=(0,O.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,O.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>(0,i.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),W=(0,O.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,O.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>(0,i.Z)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Y=e=>{let{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:l,color:a,size:u}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===o&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",a&&`color${(0,L.Z)(a)}`,u&&`size${(0,L.Z)(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${(0,L.Z)(u)}`,a&&`thumbColor${(0,L.Z)(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,s.Z)(c,B,l)},X=({children:e})=>e,K=l.forwardRef(function(e,t){var n,r,s,_,O,L,T,I,B,V,N,K,J,Q,ee,et,en,er,eo,ei,el,ea,es,eu;let ec=(0,E.Z)({props:e,name:"MuiSlider"}),ed=(0,P.Z)(),ef="rtl"===ed.direction,{"aria-label":eh,"aria-valuetext":ep,"aria-labelledby":eg,component:em="span",components:eb={},componentsProps:ey={},color:ev="primary",classes:ew,className:eC,disableSwap:ex=!1,disabled:eS=!1,getAriaLabel:ek,getAriaValueText:eR,marks:eM=!1,max:eA=100,min:e_=0,orientation:eE="horizontal",size:eO="medium",step:eP=1,scale:eF=j,slotProps:eL,slots:eT,track:eI="normal",valueLabelDisplay:eB="off",valueLabelFormat:eV=j}=ec,eZ=(0,o.Z)(ec,z),eN=(0,i.Z)({},ec,{isRtl:ef,max:eA,min:e_,classes:ew,disabled:eS,disableSwap:ex,orientation:eE,marks:eM,color:ev,size:eO,step:eP,scale:eF,track:eI,valueLabelDisplay:eB,valueLabelFormat:eV}),{axisProps:ez,getRootProps:ej,getHiddenInputProps:eD,getThumbProps:eH,open:eq,active:e$,axis:eU,focusedThumbIndex:eG,range:eW,dragging:eY,marks:eX,values:eK,trackOffset:eJ,trackLeap:eQ,getThumbStyle:e0}=function(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:u=100,min:c=0,name:_,onChange:E,onChangeCommitted:O,orientation:P="horizontal",rootRef:F,scale:L=M,step:T=1,tabIndex:I,value:B}=e,V=l.useRef(),[Z,N]=l.useState(-1),[z,j]=l.useState(-1),[D,H]=l.useState(!1),q=l.useRef(0),[$,U]=(0,f.Z)({controlled:B,default:null!=n?n:c,name:"Slider"}),G=E&&((e,t,n)=>{let r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:_}}),E(o,t,n)}),W=Array.isArray($),Y=W?$.slice().sort(y):[$];Y=Y.map(e=>v(e,c,u));let X=!0===s&&null!==T?[...Array(Math.floor((u-c)/T)+1)].map((e,t)=>({value:c+T*t})):s||[],K=X.map(e=>e.value),{isFocusVisibleRef:J,onBlur:Q,onFocus:ee,ref:et}=(0,h.Z)(),[en,er]=l.useState(-1),eo=l.useRef(),ei=(0,p.Z)(et,eo),el=(0,p.Z)(F,ei),ea=e=>t=>{var n;let r=Number(t.currentTarget.getAttribute("data-index"));ee(t),!0===J.current&&er(r),j(r),null==e||null==(n=e.onFocus)||n.call(e,t)},es=e=>t=>{var n;Q(t),!1===J.current&&er(-1),j(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,g.Z)(()=>{if(r&&eo.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[r]),r&&-1!==Z&&N(-1),r&&-1!==en&&er(-1);let eu=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index")),i=Y[r],l=K.indexOf(i),a=t.target.valueAsNumber;if(X&&null==T){let e=K[K.length-1];a=a>e?e:a<K[0]?K[0]:a<i?K[l-1]:K[l+1]}if(a=v(a,c,u),W){o&&(a=v(a,Y[r-1]||-1/0,Y[r+1]||1/0));let e=a;a=x({values:Y,newValue:a,index:r});let t=r;o||(t=a.indexOf(e)),S({sliderRef:eo,activeIndex:t})}U(a),er(r),G&&!k(a,$)&&G(t,a,r),O&&O(t,a)},ec=l.useRef(),ed=P;a&&"horizontal"===P&&(ed+="-reverse");let ef=({finger:e,move:t=!1})=>{let n,r;let{current:i}=eo,{width:l,height:a,bottom:s,left:d}=i.getBoundingClientRect();if(n=0===ed.indexOf("vertical")?(s-e.y)/a:(e.x-d)/l,-1!==ed.indexOf("-reverse")&&(n=1-n),r=(u-c)*n+c,T)r=function(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(t)))}(r,T,c);else{let e=w(K,r);r=K[e]}r=v(r,c,u);let f=0;if(W){f=t?ec.current:w(Y,r),o&&(r=v(r,Y[f-1]||-1/0,Y[f+1]||1/0));let e=r;r=x({values:Y,newValue:r,index:f}),o&&t||(f=r.indexOf(e),ec.current=f)}return{newValue:r,activeIndex:f}},eh=(0,m.Z)(e=>{let t=C(e,V);if(!t)return;if(q.current+=1,"mousemove"===e.type&&0===e.buttons){ep(e);return}let{newValue:n,activeIndex:r}=ef({finger:t,move:!0});S({sliderRef:eo,activeIndex:r,setActive:N}),U(n),!D&&q.current>2&&H(!0),G&&!k(n,$)&&G(e,n,r)}),ep=(0,m.Z)(e=>{let t=C(e,V);if(H(!1),!t)return;let{newValue:n}=ef({finger:t,move:!0});N(-1),"touchend"===e.type&&j(-1),O&&O(e,n),V.current=void 0,em()}),eg=(0,m.Z)(e=>{if(r)return;A()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(V.current=t.identifier);let n=C(e,V);if(!1!==n){let{newValue:t,activeIndex:r}=ef({finger:n});S({sliderRef:eo,activeIndex:r,setActive:N}),U(t),G&&!k(t,$)&&G(e,t,r)}q.current=0;let o=(0,d.Z)(eo.current);o.addEventListener("touchmove",eh),o.addEventListener("touchend",ep)}),em=l.useCallback(()=>{let e=(0,d.Z)(eo.current);e.removeEventListener("mousemove",eh),e.removeEventListener("mouseup",ep),e.removeEventListener("touchmove",eh),e.removeEventListener("touchend",ep)},[ep,eh]);l.useEffect(()=>{let{current:e}=eo;return e.addEventListener("touchstart",eg,{passive:A()}),()=>{e.removeEventListener("touchstart",eg,{passive:A()}),em()}},[em,eg]),l.useEffect(()=>{r&&em()},[r,em]);let eb=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),r||t.defaultPrevented||0!==t.button)return;t.preventDefault();let o=C(t,V);if(!1!==o){let{newValue:e,activeIndex:n}=ef({finger:o});S({sliderRef:eo,activeIndex:n,setActive:N}),U(e),G&&!k(e,$)&&G(t,e,n)}q.current=0;let i=(0,d.Z)(eo.current);i.addEventListener("mousemove",eh),i.addEventListener("mouseup",ep)},ey=((W?Y[0]:c)-c)*100/(u-c),ev=(Y[Y.length-1]-c)*100/(u-c)-ey,ew=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index"));j(r)},eC=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),j(-1)};return{active:Z,axis:ed,axisProps:R,dragging:D,focusedThumbIndex:en,getHiddenInputProps:(n={})=>{var o;let l={onChange:eu(n||{}),onFocus:ea(n||{}),onBlur:es(n||{})},s=(0,i.Z)({},n,l);return(0,i.Z)({tabIndex:I,"aria-labelledby":t,"aria-orientation":P,"aria-valuemax":L(u),"aria-valuemin":L(c),name:_,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},s,{style:(0,i.Z)({},b,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t={onMouseDown:eb(e||{})},n=(0,i.Z)({},e,t);return(0,i.Z)({ref:el},n)},getThumbProps:(e={})=>{let t={onMouseOver:ew(e||{}),onMouseLeave:eC(e||{})};return(0,i.Z)({},e,t)},marks:X,open:z,range:W,rootRef:el,trackLeap:ev,trackOffset:ey,values:Y,getThumbStyle:e=>({pointerEvents:-1!==Z&&Z!==e?"none":void 0})}}((0,i.Z)({},eN,{rootRef:t}));eN.marked=eX.length>0&&eX.some(e=>e.label),eN.dragging=eY,eN.focusedThumbIndex=eG;let e1=Y(eN),e2=null!=(n=null!=(r=null==eT?void 0:eT.root)?r:eb.Root)?n:D,e5=null!=(s=null!=(_=null==eT?void 0:eT.rail)?_:eb.Rail)?s:H,e4=null!=(O=null!=(L=null==eT?void 0:eT.track)?L:eb.Track)?O:q,e6=null!=(T=null!=(I=null==eT?void 0:eT.thumb)?I:eb.Thumb)?T:$,e3=null!=(B=null!=(V=null==eT?void 0:eT.valueLabel)?V:eb.ValueLabel)?B:U,e8=null!=(N=null!=(K=null==eT?void 0:eT.mark)?K:eb.Mark)?N:G,e7=null!=(J=null!=(Q=null==eT?void 0:eT.markLabel)?Q:eb.MarkLabel)?J:W,e9=null!=(ee=null!=(et=null==eT?void 0:eT.input)?et:eb.Input)?ee:"input",te=null!=(en=null==eL?void 0:eL.root)?en:ey.root,tt=null!=(er=null==eL?void 0:eL.rail)?er:ey.rail,tn=null!=(eo=null==eL?void 0:eL.track)?eo:ey.track,tr=null!=(ei=null==eL?void 0:eL.thumb)?ei:ey.thumb,to=null!=(el=null==eL?void 0:eL.valueLabel)?el:ey.valueLabel,ti=null!=(ea=null==eL?void 0:eL.mark)?ea:ey.mark,tl=null!=(es=null==eL?void 0:eL.markLabel)?es:ey.markLabel,ta=null!=(eu=null==eL?void 0:eL.input)?eu:ey.input,ts=(0,u.y)({elementType:e2,getSlotProps:ej,externalSlotProps:te,externalForwardedProps:eZ,additionalProps:(0,i.Z)({},F(e2)&&{as:em}),ownerState:(0,i.Z)({},eN,null==te?void 0:te.ownerState),className:[e1.root,eC]}),tu=(0,u.y)({elementType:e5,externalSlotProps:tt,ownerState:eN,className:e1.rail}),tc=(0,u.y)({elementType:e4,externalSlotProps:tn,additionalProps:{style:(0,i.Z)({},ez[eU].offset(eJ),ez[eU].leap(eQ))},ownerState:(0,i.Z)({},eN,null==tn?void 0:tn.ownerState),className:e1.track}),td=(0,u.y)({elementType:e6,getSlotProps:eH,externalSlotProps:tr,ownerState:(0,i.Z)({},eN,null==tr?void 0:tr.ownerState),className:e1.thumb}),tf=(0,u.y)({elementType:e3,externalSlotProps:to,ownerState:(0,i.Z)({},eN,null==to?void 0:to.ownerState),className:e1.valueLabel}),th=(0,u.y)({elementType:e8,externalSlotProps:ti,ownerState:eN,className:e1.mark}),tp=(0,u.y)({elementType:e7,externalSlotProps:tl,ownerState:eN,className:e1.markLabel}),tg=(0,u.y)({elementType:e9,getSlotProps:eD,externalSlotProps:ta,ownerState:eN});return(0,Z.jsxs)(e2,(0,i.Z)({},ts,{children:[(0,Z.jsx)(e5,(0,i.Z)({},tu)),(0,Z.jsx)(e4,(0,i.Z)({},tc)),eX.filter(e=>e.value>=e_&&e.value<=eA).map((e,t)=>{let n;let r=(e.value-e_)*100/(eA-e_),o=ez[eU].offset(r);return n=!1===eI?-1!==eK.indexOf(e.value):"normal"===eI&&(eW?e.value>=eK[0]&&e.value<=eK[eK.length-1]:e.value<=eK[0])||"inverted"===eI&&(eW?e.value<=eK[0]||e.value>=eK[eK.length-1]:e.value>=eK[0]),(0,Z.jsxs)(l.Fragment,{children:[(0,Z.jsx)(e8,(0,i.Z)({"data-index":t},th,!(0,c.X)(e8)&&{markActive:n},{style:(0,i.Z)({},o,th.style),className:(0,a.Z)(th.className,n&&e1.markActive)})),null!=e.label?(0,Z.jsx)(e7,(0,i.Z)({"aria-hidden":!0,"data-index":t},tp,!(0,c.X)(e7)&&{markLabelActive:n},{style:(0,i.Z)({},o,tp.style),className:(0,a.Z)(e1.markLabel,tp.className,n&&e1.markLabelActive),children:e.label})):null]},t)}),eK.map((e,t)=>{let n=(e-e_)*100/(eA-e_),r=ez[eU].offset(n),o="off"===eB?X:e3;return(0,Z.jsx)(o,(0,i.Z)({},!(0,c.X)(o)&&{valueLabelFormat:eV,valueLabelDisplay:eB,value:"function"==typeof eV?eV(eF(e),t):eV,index:t,open:eq===t||e$===t||"on"===eB,disabled:eS},tf,{children:(0,Z.jsx)(e6,(0,i.Z)({"data-index":t},td,{className:(0,a.Z)(e1.thumb,td.className,e$===t&&e1.active,eG===t&&e1.focusVisible),style:(0,i.Z)({},r,e0(t),td.style),children:(0,Z.jsx)(e9,(0,i.Z)({"data-index":t,"aria-label":ek?ek(t):eh,"aria-valuenow":eF(e),"aria-labelledby":eg,"aria-valuetext":eR?eR(eF(e),t):ep,value:eK[t]},tg))}))}),t)})]}))});var J=K},263:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),l=i[0],a=i[1],u=new o((l+a)*3/4-a),c=0,d=a>0?l-4:l;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],l=0,a=r-o;l<a;l+=16383)i.push(function(e,t,r){for(var o,i=[],l=t;l<r;l+=3)i.push(n[(o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]))>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,l,l+16383>a?a:l+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,a=i.length;l<a;++l)n[l]=i[l],r[i.charCodeAt(l)]=l;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/var r=n(675),o=n(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function l(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=l(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E(e,ArrayBuffer)||e&&E(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(E(e,SharedArrayBuffer)||e&&E(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var o=function(e){if(a.isBuffer(e)){var t,n=0|f(e.length),r=l(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?l(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),l(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return A(e).length;default:if(o)return r?-1:R(e).length;t=(""+t).toLowerCase(),o=!0}}function p(e,t,n){var o,i,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=O[e[i]];return o}(this,t,n);case"utf8":case"utf-8":return y(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}(this,t,n);case"base64":return o=t,i=n,0===o&&i===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(this,t,n);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){var i;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,l=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;l=2,a/=2,s/=2,n/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(o){var c=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*l}else -1!==c&&(i-=i-c),c=-1}else for(n+s>a&&(n=a-s),i=n;i>=0;i--){for(var d=!0,f=0;f<s;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return -1}function y(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,l,a,s,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],l=e[o+2],(192&i)==128&&(192&l)==128&&(s=(15&u)<<12|(63&i)<<6|63&l)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],l=e[o+2],a=e[o+3],(192&i)==128&&(192&l)==128&&(192&a)==128&&(s=(15&u)<<18|(63&i)<<12|(63&l)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function v(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,o,i){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function C(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function x(e,t,n,r,i){return t=+t,n>>>=0,i||C(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,i){return t=+t,n>>>=0,i||C(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(u(e),e<=0)?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(E(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),E(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=a.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(E(i,Uint8Array)&&(i=a.from(i)),!a.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,o){if(E(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,l=n-t,s=Math.min(i,l),u=this.slice(r,o),c=e.slice(t,n),d=0;d<s;++d)if(u[d]!==c[d]){i=u[d],l=c[d];break}return i<l?-1:l<i?1:0},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,l,a,s,u,c,d,f,h,p,g,m=this.length-t;if((void 0===n||n>m)&&(n=m),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var b=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var l=0;l<r;++l){var a=parseInt(t.substr(2*l,2),16);if(a!=a)break;e[n+l]=a}return l}(this,e,t,n);case"utf8":case"utf-8":return s=t,u=n,_(R(e,this.length-s),this,s,u);case"ascii":return c=t,d=n,_(M(e),this,c,d);case"latin1":case"binary":return o=this,i=e,l=t,a=n,_(M(i),o,l,a);case"base64":return f=t,h=n,_(A(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,g=n,_(function(e,t){for(var n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o.push(n%256),o.push(r);return o}(e,this.length-p),this,p,g);default:if(b)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),b=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;w(this,e,t,n,o,0)}var i=1,l=0;for(this[t]=255&e;++l<n&&(i*=256);)this[t+l]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;w(this,e,t,n,o,0)}var i=n-1,l=1;for(this[t+i]=255&e;--i>=0&&(l*=256);)this[t+i]=e/l&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);w(this,e,t,n,o-1,-o)}var i=0,l=1,a=0;for(this[t]=255&e;++i<n&&(l*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/l>>0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);w(this,e,t,n,o-1,-o)}var i=n-1,l=1,a=0;for(this[t+i]=255&e;--i>=0&&(l*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/l>>0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return x(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return x(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=o-1;i>=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var l=a.isBuffer(e)?e:a.from(e,r),s=l.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=l[o%s]}return this};var k=/[^+/0-9A-Za-z-_]/g;function R(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],l=0;l<r;++l){if((n=e.charCodeAt(l))>55295&&n<57344){if(!o){if(n>56319||l+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function M(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function A(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function E(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,o){var i,l,a=8*o-r-1,s=(1<<a)-1,u=s>>1,c=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+d],d+=f,c-=8);for(l=i&(1<<-c)-1,i>>=-c,c+=r;c>0;l=256*l+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===s)return l?NaN:(h?-1:1)*(1/0);l+=Math.pow(2,r),i-=u}return(h?-1:1)*l*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var l,a,s,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?5960464477539062e-23:0,h=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-l))<1&&(l--,s*=2),l+d>=1?t+=f/s:t+=f*Math.pow(2,1-d),t*s>=2&&(l++,s/=2),l+d>=c?(a=0,l=c):l+d>=1?(a=(t*s-1)*Math.pow(2,o),l+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),l=0));o>=8;e[n+h]=255&a,h+=p,a/=256,o-=8);for(l=l<<o|a,u+=o;u>0;e[n+h]=255&l,h+=p,l/=256,u-=8);e[n+h-p]|=128*g}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},l=!0;try{t[e](i,i.exports,r),l=!1}finally{l&&delete n[e]}return i.exports}r.ab="//";var o=r(72);e.exports=o}()},3216:function(e,t,n){"use strict";n.d(t,{b7:function(){return l},ie:function(){return i}});var r=n(2265),o=n(7660);/**
|
|
7
|
+
* react-table
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) TanStack
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
13
|
+
*
|
|
14
|
+
* @license MIT
|
|
15
|
+
*/function i(e,t){return e?"function"==typeof e&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()||"function"==typeof e||"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)?r.createElement(e,t):e:null}function l(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,o.W_)(t)})),[i,l]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{l(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},7660:function(e,t,n){"use strict";/**
|
|
16
|
+
* table-core
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) TanStack
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
22
|
+
*
|
|
23
|
+
* @license MIT
|
|
24
|
+
*/function r(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function i(e){return e instanceof Function}function l(e,t,n){let r,o=[];return()=>{let i,l;n.key&&n.debug&&(i=Date.now());let a=e(),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;if(o=a,n.key&&n.debug&&(l=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-l)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
|
|
25
|
+
font-size: .6rem;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function a(e,t,n){var r;let o=null!=(r=n.id)?r:t.id,i={id:o,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(t=>{Object.assign(i,null==t.createHeader?void 0:t.createHeader(i,e))}),i}function s(e,t,n,r){var o,i;let l=0,s=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let u=[],c=(e,t)=>{let o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let l;let s=[...i].reverse()[0],u=e.column.depth===o.depth,c=!1;if(u&&e.column.parent?l=e.column.parent:(l=e.column,c=!0),s&&(null==s?void 0:s.column)===l)s.subHeaders.push(e);else{let o=a(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${i.filter(e=>e.column===l).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),u.push(o),t>0&&c(i,t-1)},d=t.map((e,t)=>a(n,e,{depth:l,index:t}));c(d,l-1),u.reverse();let f=e=>{let t=e.filter(e=>e.column.getIsVisible());return t.map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],f(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1;let o=Math.min(...r);return n+=o,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}})};return f(null!=(o=null==(i=u[0])?void 0:i.headers)?o:[]),u}n.d(t,{Cl:function(){return z},W_:function(){return Z},sC:function(){return j}});let u={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),d=null;function f(e){return"touchstart"===e.type}let h=(e,t,n)=>{var r,o,i;let l=n.toLowerCase();return!!(null==(r=e.getValue(t))?void 0:null==(o=r.toString())?void 0:null==(i=o.toLowerCase())?void 0:i.includes(l))};h.autoRemove=e=>S(e);let p=(e,t,n)=>{var r,o;return!!(null==(r=e.getValue(t))?void 0:null==(o=r.toString())?void 0:o.includes(n))};p.autoRemove=e=>S(e);let g=(e,t,n)=>{var r,o;return(null==(r=e.getValue(t))?void 0:null==(o=r.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};g.autoRemove=e=>S(e);let m=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};m.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});b.autoRemove=e=>S(e)||!(null!=e&&e.length);let y=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});y.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,n)=>e.getValue(t)===n;v.autoRemove=e=>S(e);let w=(e,t,n)=>e.getValue(t)==n;w.autoRemove=e=>S(e);let C=(e,t,n)=>{let[r,o]=n,i=e.getValue(t);return i>=r&&i<=o};C.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){let e=i;i=l,l=e}return[i,l]},C.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let x={includesString:h,includesStringSensitive:p,equalsString:g,arrIncludes:m,arrIncludesAll:b,arrIncludesSome:y,equals:v,weakEquals:w,inNumberRange:C};function S(e){return null==e||""===e}function k(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let R={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!(Array.isArray(n)&&n.every(e=>"number"==typeof e)))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},M=()=>({pageIndex:0,pageSize:10}),A=()=>({left:[],right:[]}),_=(e,t,n,r)=>{var o;let i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>_(e,t.id,n,r))};function E(e,t){let n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;let l=O(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function O(e,t){var n;return null!=(n=t[e.id])&&n}function P(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,r=!1;return e.subRows.forEach(e=>{(!r||n)&&(O(e,t)?r=!0:n=!1)}),n?"all":!!r&&"some"}return!1}let F=/([0-9]+)/gm;function L(e,t){return e===t?0:e>t?1:-1}function T(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function I(e,t){let n=e.split(F).filter(Boolean),r=t.split(F).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return n.length-r.length}let B={alphanumeric:(e,t,n)=>I(T(e.getValue(n)).toLowerCase(),T(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>I(T(e.getValue(n)),T(t.getValue(n))),text:(e,t,n)=>L(T(e.getValue(n)).toLowerCase(),T(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>L(T(e.getValue(n)),T(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>L(e.getValue(n),t.getValue(n))},V=[{createTable:e=>({getHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;let a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],u=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[],c=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),d=s(t,[...a,...c,...u],e);return d},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>s(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;let i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return s(t,i,e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;let i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return s(t,i,e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:l(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:l(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:l(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:l(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:l(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:l(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:l(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:l(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:l(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:l(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:l(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:l(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},getCanHide:()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:l(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:l(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{let t=(t,n)=>l(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:l(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(!(null!=t&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;let o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},{key:!1})})},{getInitialState:e=>({columnPinning:A(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},getCanPin:()=>{let n=e.getLeafColumns();return n.some(e=>{var n,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=t.options.enablePinning)||r)})},getIsPinned:()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"right"},getPinnedIndex:()=>{var n,r,o;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)?void 0:null==(o=r[i])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?A():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:A())},getIsSomeColumnsPinned:t=>{var n,r,o;let i=e.getState().columnPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},getLeftLeafColumns:l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),onGlobalFilterChange:o("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;let o=null==(n=e.getCoreRowModel().flatRows[0])?void 0:null==(r=n._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?x.includesString:"number"==typeof r?x.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?x.equals:Array.isArray(r)?x.arrIncludes:x.weakEquals},getFilterFn:()=>{var n,r;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:x[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return null==(n=t.getState().columnFilters)?void 0:null==(r=n.find(t=>t.id===e.id))?void 0:r.value},getFilterIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},setFilterValue:n=>{t.setColumnFilters(t=>{var o,i;let l=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),s=r(n,a?a.value:void 0);if(k(l,s,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let u={id:e.id,value:s};return a?null!=(i=null==t?void 0:t.map(t=>t.id===e.id?u:t))?i:[]:null!=t&&t.length?[...t,u]:[u]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>x.includesString,getGlobalFilterFn:()=>{var t,n;let{globalFilterFn:r}=e.options;return i(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:x[r]},setColumnFilters:t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=r(t,e))?void 0:o.filter(e=>{let t=n.find(t=>t.id===e.id);if(t){let n=t.getFilterFn();if(k(n,e.value,t))return!1}return!0})})},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return B.datetime;if("string"==typeof n&&(r=!0,n.split(F).length>1))return B.alphanumeric}return r?B.text:B.basic},getAutoSortDir:()=>{let n=t.getFilteredRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:B[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{let o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{let a;let s=null==l?void 0:l.find(t=>t.id===e.id),u=null==l?void 0:l.findIndex(t=>t.id===e.id),c=[],d=i?n:"desc"===o;if("toggle"!=(a=null!=l&&l.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=l&&l.length&&u!==l.length-1?"replace":s?"toggle":"replace")||i||o||(a="remove"),"add"===a){var f;(c=[...l,{id:e.id,desc:d}]).splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===a?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},getFirstSortDir:()=>{var n,r;let o=null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir();return o?"desc":"asc"},getNextSortingOrder:n=>{var r,o;let i=e.getFirstSortDir(),l=e.getIsSorted();return l?(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"asc":"desc"):i},getCanSort:()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},getIsSorted:()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},clearSorting:()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},getToggleSortingHandler:()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())?void 0:null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},getCanGroup:()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},getIsGrouped:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?R.sum:"[object Date]"===Object.prototype.toString.call(r)?R.extent:void 0},getAggregationFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:R[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}})},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},getCanSomeRowsExpand:()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0,n=!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded);return n.forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;let i=!0===r||!!(null!=r&&r[e.id]),l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=l;return n}return r})},getIsExpanded:()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(o=e.subRows)&&o.length)},getToggleExpandedHandler:()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})},{getInitialState:e=>({...e,pagination:{...M(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),resetPagination:t=>{var n;e.setPagination(t?M():null!=(n=e.initialState.pagination)?n:M())},setPageIndex:t=>{e.setPagination(n=>{let o=r(t,n.pageIndex),i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,i)),{...n,pageIndex:o}})},resetPageIndex:t=>{var n,r,o;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)?void 0:null==(o=r.pagination)?void 0:o.pageIndex)?n:0)},resetPageSize:t=>{var n,r,o;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)?void 0:null==(o=r.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),o=e.pageSize*e.pageIndex;return{...e,pageIndex:Math.floor(o/n),pageSize:n}})},setPageCount:t=>e.setPagination(n=>{var o;let i=r(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),getPageOptions:l(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},previousPage:()=>e.setPageIndex(e=>e-1),nextPage:()=>e.setPageIndex(e=>e+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{_(o,t.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:l(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?E(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:l(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?E(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:l(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?E(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{let r=e.getIsSelected();t.setRowSelection(o=>{if(n=void 0!==n?n:!r,r===n)return o;let i={...o};return _(i,e.id,n,t),i})},getIsSelected:()=>{let{rowSelection:n}=t.getState();return O(e,n)},getIsSomeSelected:()=>{let{rowSelection:n}=t.getState();return"some"===P(e,n)},getIsAllSubRowsSelected:()=>{let{rowSelection:n}=t.getState();return"all"===P(e,n)},getCanSelect:()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}})},{getDefaultColumnDef:()=>u,getInitialState:e=>({columnSizing:{},columnSizingInfo:c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:u.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:u.size),null!=(o=e.columnDef.maxSize)?o:u.maxSize)},getStart:n=>{let r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(t=>t.id===e.id);if(o>0){let e=r[o-1];return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},getCanResize:()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},getStart:()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{let n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return o=>{if(!n||!r||(null==o.persist||o.persist(),f(o)&&o.touches&&o.touches.length>1))return;let i=e.getSize(),l=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],a=f(o)?Math.round(o.touches[0].clientX):o.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var t,r;let o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(o/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100}),{...e,deltaOffset:o,deltaPercentage:i}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...s})))},c=e=>u("move",e),h=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",p.moveHandler),document.removeEventListener("mouseup",p.upHandler),h(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",g.moveHandler),document.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof d)return d;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return d=e}()&&{passive:!1};f(o)?(document.addEventListener("touchmove",g.moveHandler,m),document.addEventListener("touchend",g.upHandler,m)):(document.addEventListener("mousemove",p.moveHandler,m),document.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?c():null!=(n=e.initialState.columnSizingInfo)?n:c())},getTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getLeftTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getCenterTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getRightTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}})}];function Z(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:V},o=n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e},a={...null!=(t=e.initialState)?t:{}};n._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});let s=[],u=!1,c={_features:V,options:{...o,...e},initialState:a,_queue:e=>{s.push(e),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{let t=r(e,n.options);n.options=i(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:e=>{let t=n.getRowModel().rowsById[e];if(!t)throw Error();return t},_getDefaultColumnDef:l(()=>[n.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())?void 0:null==n.toString?void 0:n.toString())?t:null},...n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:l(()=>[n._getColumnDefs()],e=>{let t=function(e,r,o){return void 0===o&&(o=0),e.map(e=>{let i=function(e,t,n,r){var o,i;let a;let s=e._getDefaultColumnDef(),u={...s,...t},c=u.accessorKey,d=null!=(o=null!=(i=u.id)?i:c?c.replace(".","_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?a=u.accessorFn:c&&(a=c.includes(".")?e=>{let t=e;for(let e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!d)throw Error();let f={id:`${String(d)}`,accessorFn:a,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:l(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:l(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return f=e._features.reduce((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(f,e)),f)}(n,e,o,r);return i.columns=e.columns?t(e.columns,i,o+1):[],i})};return t(e)},{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:l(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:l(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:l(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{let t=n._getAllFlatColumnsById()[e];return t}};return Object.assign(n,c),n._features.forEach(e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n))),n}let N=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);return null!=n&&n.accessorFn?(n.columnDef.getUniqueValues?s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>(function(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&r(o)})};return r(e),n})(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:l(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,n,r){let o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:l(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(r=>{Object.assign(o,null==r.createCell?void 0:r.createCell(o,n,t,e))},{}),o})(e,s,t,t.id)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:l(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){let n=e._features[t];Object.assign(s,null==n?void 0:null==n.createRow?void 0:n.createRow(s,e))}return s};function z(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function j(){return e=>l(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);let l=[];for(let s=0;s<t.length;s++){let u=N(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows){var a;u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=r(u.originalSubRows,o+1,u))}}return l};return n.rows=r(t),n},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},9521:function(e,t,n){"use strict";let r,o;/*!
|
|
28
|
+
* @kurkle/color v0.3.2
|
|
29
|
+
* https://github.com/kurkle/color#readme
|
|
30
|
+
* (c) 2023 Jukka Kurkela
|
|
31
|
+
* Released under the MIT License
|
|
32
|
+
*/function i(e){return e+.5|0}n.d(t,{$:function(){return td},A:function(){return eI},B:function(){return eT},C:function(){return tu},D:function(){return eR},E:function(){return tx},F:function(){return $},G:function(){return tJ},H:function(){return ed},I:function(){return tq},J:function(){return t1},K:function(){return t0},L:function(){return eD},M:function(){return tH},N:function(){return ey},O:function(){return z},P:function(){return el},Q:function(){return q},R:function(){return tR},S:function(){return eO},T:function(){return ea},U:function(){return eS},V:function(){return tr},W:function(){return eP},X:function(){return ti},Y:function(){return tc},Z:function(){return tp},_:function(){return ez},a:function(){return tk},a0:function(){return tS},a1:function(){return eq},a2:function(){return e$},a3:function(){return e7},a4:function(){return X},a5:function(){return et},a6:function(){return e9},a7:function(){return er},a8:function(){return function e(t,n,r,o){let i={_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:t_(t,o),setContext:n=>e(t,n,r,o),override:i=>e(t.override(i),n,r,o)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tP(t,n,()=>(function(t,n,r){let{_proxy:o,_context:i,_subProxy:l,_descriptors:a}=t,s=o[n];return er(s)&&a.isScriptable(n)&&(s=function(e,t,n,r){let{_proxy:o,_context:i,_subProxy:l,_stack:a}=n;if(a.has(e))throw Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let s=t(i,l||r);return a.delete(e),tO(e,s)&&(s=tL(o._scopes,o,e,s)),s}(n,s,t,r)),V(s)&&s.length&&(s=function(t,n,r,o){let{_proxy:i,_context:l,_subProxy:a,_descriptors:s}=r;if(void 0!==l.index&&o(t))return n[l.index%n.length];if(Z(n[0])){let r=n,o=i._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tL(o,i,t,u);n.push(e(r,l,a&&a[t],s))}}return n}(n,s,t,a.isIndexable)),tO(n,s)&&(s=e(s,i,l&&l[n],a)),s})(t,n,r)),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,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tA},aA:function(){return t3},aB:function(){return eU},aC:function(){return t8},aD:function(){return ts},aE:function(){return eM},aF:function(){return T},aG:function(){return eC},aH:function(){return eb},aI:function(){return ew},aJ:function(){return em},aK:function(){return ek},aL:function(){return e8},aM:function(){return ep},aN:function(){return to},aO:function(){return eB},aP:function(){return eL},aa:function(){return t_},ab:function(){return K},ac:function(){return I},ad:function(){return eH},ae:function(){return tQ},af:function(){return tl},ag:function(){return eo},ah:function(){return U},ai:function(){return ei},aj:function(){return eF},ak:function(){return tv},al:function(){return tD},am:function(){return nn},an:function(){return nt},ao:function(){return t5},ap:function(){return t4},aq:function(){return t2},ar:function(){return tf},as:function(){return th},at:function(){return ta},au:function(){return tg},av:function(){return tw},aw:function(){return tC},ax:function(){return ne},ay:function(){return e_},az:function(){return t6},b:function(){return V},c:function(){return e0},d:function(){return tn},e:function(){return eJ},f:function(){return ee},g:function(){return N},h:function(){return en},i:function(){return Z},j:function(){return tM},k:function(){return B},l:function(){return eZ},m:function(){return D},n:function(){return H},o:function(){return e6},p:function(){return eE},q:function(){return eG},r:function(){return ej},s:function(){return eg},t:function(){return ex},u:function(){return eN},v:function(){return j},w:function(){return eW},x:function(){return ev},y:function(){return tV},z:function(){return tX}});let l=(e,t,n)=>Math.max(Math.min(e,n),t);function a(e){return l(i(2.55*e),0,255)}function s(e){return l(i(255*e),0,255)}function u(e){return l(i(e/2.55)/100,0,1)}function c(e){return l(i(100*e),0,100)}let d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],h=e=>f[15&e],p=e=>f[(240&e)>>4]+f[15&e],g=e=>(240&e)>>4==(15&e),m=e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a),b=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v(e,t,n){let r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function w(e,t,n){let r=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function C(e,t,n){let r;let o=v(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function x(e){let t,n,r;let o=e.r/255,i=e.g/255,l=e.b/255,a=Math.max(o,i,l),s=Math.min(o,i,l),u=(a+s)/2;return a!==s&&(r=a-s,n=u>.5?r/(2-a-s):r/(a+s),t=60*(t=o===a?(i-l)/r+(i<l?6:0):i===a?(l-o)/r+2:(o-i)/r+4)+.5),[0|t,n||0,u]}function S(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(s)}function k(e){return(e%360+360)%360}let R={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"},M={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"},A=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,_=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,E=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function O(e,t,n){if(e){let r=x(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=S(v,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function P(e,t){return e?Object.assign(t||{},e):e}function F(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=P(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class L{constructor(e){let t;if(e instanceof L)return e;let n=typeof e;if("object"===n)t=F(e);else if("string"===n){var o,i;i=e.length,"#"===e[0]&&(4===i||5===i?o={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===i?17*d[e[4]]:255}:(7===i||9===i)&&(o={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===i?d[e[7]]<<4|d[e[8]]:255})),t=o||function(e){r||((r=function(){let e,t,n,r,o;let i={},l=Object.keys(M),a=Object.keys(R);for(e=0;e<l.length;e++){for(t=0,r=o=l[e];t<a.length;t++)n=a[t],o=o.replace(n,R[n]);n=parseInt(M[r],16),i[o]=[n>>16&255,n>>8&255,255&n]}return i}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let o=A.exec(e),i=255;if(o){if(o[7]!==t){let e=+o[7];i=o[8]?a(e):l(255*e,0,255)}return t=+o[1],n=+o[3],r=+o[5],{r:t=255&(o[2]?a(t):l(t,0,255)),g:n=255&(o[4]?a(n):l(n,0,255)),b:r=255&(o[6]?a(r):l(r,0,255)),a:i}}}(e):function(e){let t;let n=y.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?a(+n[5]):s(+n[5]));let o=k(+n[2]),i=+n[3]/100,l=+n[4]/100;return{r:(t="hwb"===n[1]?S(C,o,i,l):"hsv"===n[1]?S(w,o,i,l):S(v,o,i,l))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=P(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=F(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=m(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+b(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=x(e),n=t[0],r=c(t[1]),o=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,o=e.rgb,i=t===n?.5:t,l=2*i-1,a=r.a-o.a,s=((l*a==-1?l:(l+a)/(1+l*a))+1)/2;n=1-s,r.r=255&s*r.r+n*o.r+.5,r.g=255&s*r.g+n*o.g+.5,r.b=255&s*r.b+n*o.b+.5,r.a=i*r.a+(1-i)*o.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=E(u(e.r)),o=E(u(e.g)),i=E(u(e.b));return{r:s(_(r+n*(E(u(t.r))-r))),g:s(_(o+n*(E(u(t.g))-o))),b:s(_(i+n*(E(u(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new L(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=i(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return O(this._rgb,2,e),this}darken(e){return O(this._rgb,2,-e),this}saturate(e){return O(this._rgb,1,e),this}desaturate(e){return O(this._rgb,1,-e),this}rotate(e){var t,n;return(n=x(t=this._rgb))[0]=k(n[0]+e),n=S(v,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}/*!
|
|
33
|
+
* Chart.js v4.4.0
|
|
34
|
+
* https://www.chartjs.org
|
|
35
|
+
* (c) 2023 Chart.js Contributors
|
|
36
|
+
* Released under the MIT License
|
|
37
|
+
*/function T(){}let I=(o=0,()=>o++);function B(e){return null==e}function V(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Z(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function N(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function z(e,t){return N(e)?e:t}function j(e,t){return void 0===e?t:e}let D=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,H=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function q(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function $(e,t,n,r){let o,i,l;if(V(e)){if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<i;o++)t.call(n,e[o],o)}else if(Z(e))for(o=0,i=(l=Object.keys(e)).length;o<i;o++)t.call(n,e[l[o]],l[o])}function U(e,t){let n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function G(e){if(V(e))return e.map(G);if(Z(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,o=0;for(;o<r;++o)t[n[o]]=G(e[n[o]]);return t}return e}function W(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function Y(e,t,n,r){if(!W(e))return;let o=t[e],i=n[e];Z(o)&&Z(i)?X(o,i,r):t[e]=G(i)}function X(e,t,n){let r;let o=V(t)?t:[t],i=o.length;if(!Z(e))return e;n=n||{};let l=n.merger||Y;for(let t=0;t<i;++t){if(!Z(r=o[t]))continue;let i=Object.keys(r);for(let t=0,o=i.length;t<o;++t)l(i[t],e,r,n)}return e}function K(e,t){return X(e,t,{merger:J})}function J(e,t,n){if(!W(e))return;let r=t[e],o=n[e];Z(r)&&Z(o)?K(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=G(o))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){let n=Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,eo=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function ei(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let el=Math.PI,ea=2*el,es=ea+el,eu=Number.POSITIVE_INFINITY,ec=el/180,ed=el/2,ef=el/4,eh=2*el/3,ep=Math.log10,eg=Math.sign;function em(e,t,n){return Math.abs(e-t)<n}function eb(e){let t=Math.round(e);e=em(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(ep(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ey(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function ev(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ew(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function eC(e,t,n){let r,o,i;for(r=0,o=e.length;r<o;r++)isNaN(i=e[r][n])||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function ex(e){return e*(el/180)}function eS(e){return e*(180/el)}function ek(e){if(!N(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eR(e,t){let n=t.x-e.x,r=t.y-e.y,o=Math.atan2(r,n);return o<-.5*el&&(o+=ea),{angle:o,distance:Math.sqrt(n*n+r*r)}}function eM(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eA(e,t){return(e-t+es)%ea-el}function e_(e){return(e%ea+ea)%ea}function eE(e,t,n,r){let o=e_(e),i=e_(t),l=e_(n),a=e_(i-o),s=e_(l-o),u=e_(o-i),c=e_(o-l);return o===i||o===l||r&&i===l||a>s&&u<c}function eO(e,t,n){return Math.max(t,Math.min(n,e))}function eP(e){return eO(e,-32768,32767)}function eF(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eL(e,t,n){let r;n=n||(n=>e[n]<t);let o=e.length-1,i=0;for(;o-i>1;)n(r=i+o>>1)?i=r:o=r;return{lo:i,hi:o}}let eT=(e,t,n,r)=>eL(e,n,r?r=>{let o=e[r][t];return o<n||o===n&&e[r+1][t]===n}:r=>e[r][t]<n),eI=(e,t,n)=>eL(e,n,r=>e[r][t]>=n);function eB(e,t,n){let r=0,o=e.length;for(;r<o&&e[r]<t;)r++;for(;o>r&&e[o-1]>n;)o--;return r>0||o<e.length?e.slice(r,o):e}let eV=["push","pop","shift","splice","unshift"];function eZ(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eV.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let o=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),o}})})}function eN(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(eV.forEach(t=>{delete e[t]}),delete e._chartjs)}function ez(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let ej="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eD(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,ej.call(window,()=>{r=!1,e.apply(t,n)}))}}function eH(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eq=e=>"start"===e?"left":"end"===e?"right":"center",e$=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eU=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eG(e,t,n){let r=t.length,o=0,i=r;if(e._sorted){let{iScale:l,_parsed:a}=e,s=l.axis,{min:u,max:c,minDefined:d,maxDefined:f}=l.getUserBounds();d&&(o=eO(Math.min(eT(a,s,u).lo,n?r:eT(t,s,l.getPixelForValue(u)).lo),0,r-1)),i=f?eO(Math.max(eT(a,l.axis,c,!0).hi+1,n?0:eT(t,s,l.getPixelForValue(c),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function eW(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,o={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=o,!0;let i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}let eY=e=>0===e||1===e,eX=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ea/n)),eK=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ea/n)+1,eJ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ed)+1,easeOutSine:e=>Math.sin(e*ed),easeInOutSine:e=>-.5*(Math.cos(el*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eY(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eY(e)?e:eX(e,.075,.3),easeOutElastic:e=>eY(e)?e:eK(e,.075,.3),easeInOutElastic:e=>eY(e)?e:e<.5?.5*eX(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eJ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eJ.easeInBounce(2*e):.5*eJ.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new L(e)}function e1(e){return eQ(e)?e:new L(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e5=["color","borderColor","backgroundColor"],e4=new Map;function e6(e,t,n){return(function(e,t){t=t||{};let n=e+JSON.stringify(t),r=e4.get(n);return r||(r=new Intl.NumberFormat(e,t),e4.set(n,r)),r})(t,n).format(e)}let e3={values:e=>V(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let o=this.chart.options.locale,i=e;if(n.length>1){let t;let o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),i=t}let l=ep(Math.abs(i)),a=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),s={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(s,this.options.ticks.format),e6(e,o,s)},logarithmic(e,t,n){if(0===e)return"0";let r=n[t].significand||e/Math.pow(10,Math.floor(ep(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?e3.numeric.call(this,e,t,n):""}};var e8={formatters:e3};let e7=Object.create(null),e9=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?X(te(e,t),n):X(te(e,""),t)}var tn=new class{constructor(e,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=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e9,e,t)}override(e,t){return tt(e7,e,t)}route(e,t,n,r){let o=te(this,e),i=te(this,n),l="_"+t;Object.defineProperties(o,{[l]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[l],t=i[r];return Z(e)?Object.assign({},t,e):j(e,t)},set(e){this[l]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e5},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tr(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function to(e,t,n,r){let o,i,l,a,s;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(o=0;o<f;o++)if(null==(a=n[o])||V(a)){if(V(a))for(i=0,l=a.length;i<l;i++)null==(s=a[i])||V(s)||(d=tr(e,u,c,d,s))}else d=tr(e,u,c,d,a);e.restore();let h=c.length/2;if(h>n.length){for(o=0;o<h;o++)delete u[c[o]];c.splice(0,h)}return d}function ti(e,t,n){let r=e.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((t-o)*r)/r+o}function tl(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function ta(e,t,n,r){ts(e,t,n,r,null)}function ts(e,t,n,r,o){let i,l,a,s,u,c,d,f;let h=t.pointStyle,p=t.rotation,g=t.radius,m=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(i=h.toString())||"[object HTMLCanvasElement]"===i)){e.save(),e.translate(n,r),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:o?e.ellipse(n,r,o/2,g,0,0,ea):e.arc(n,r,g,0,ea),e.closePath();break;case"triangle":c=o?o/2:g,e.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),e.closePath();break;case"rectRounded":u=.516*g,l=Math.cos(m+ef)*(s=g-u),d=Math.cos(m+ef)*(o?o/2-u:s),a=Math.sin(m+ef)*s,f=Math.sin(m+ef)*(o?o/2-u:s),e.arc(n-d,r-a,u,m-el,m-ed),e.arc(n+f,r-l,u,m-ed,m),e.arc(n+d,r+a,u,m,m+ed),e.arc(n-f,r+l,u,m+ed,m+el),e.closePath();break;case"rect":if(!p){s=Math.SQRT1_2*g,c=o?o/2:s,e.rect(n-c,r-s,2*c,2*s);break}m+=ef;case"rectRot":d=Math.cos(m)*(o?o/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),e.moveTo(n-d,r-a),e.lineTo(n+f,r-l),e.lineTo(n+d,r+a),e.lineTo(n-f,r+l),e.closePath();break;case"crossRot":m+=ef;case"cross":d=Math.cos(m)*(o?o/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-l),e.lineTo(n-f,r+l);break;case"star":d=Math.cos(m)*(o?o/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-l),e.lineTo(n-f,r+l),m+=ef,d=Math.cos(m)*(o?o/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-l),e.lineTo(n-f,r+l);break;case"line":l=o?o/2:Math.cos(m)*g,a=Math.sin(m)*g,e.moveTo(n-l,r-a),e.lineTo(n+l,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(o?o/2:g),r+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function tc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function td(e){e.restore()}function tf(e,t,n,r,o){if(!t)return e.lineTo(n.x,n.y);if("middle"===o){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===o!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function th(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tp(e,t,n,r,o,i={}){let l,a;let s=V(t)?t:[t],u=i.strokeWidth>0&&""!==i.strokeColor;for(e.save(),e.font=o.string,i.translation&&e.translate(i.translation[0],i.translation[1]),B(i.rotation)||e.rotate(i.rotation),i.color&&(e.fillStyle=i.color),i.textAlign&&(e.textAlign=i.textAlign),i.textBaseline&&(e.textBaseline=i.textBaseline),l=0;l<s.length;++l)a=s[l],i.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,i.backdrop),u&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),B(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(a,n,r,i.maxWidth)),e.fillText(a,n,r,i.maxWidth),function(e,t,n,r,o){if(o.strikethrough||o.underline){let i=e.measureText(r),l=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,s=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,c=o.strikethrough?(s+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(l,c),e.lineTo(a,c),e.stroke()}}(e,n,r,a,i),r+=Number(o.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:o,h:i,radius:l}=t;e.arc(n+l.topLeft,r+l.topLeft,l.topLeft,1.5*el,el,!0),e.lineTo(n,r+i-l.bottomLeft),e.arc(n+l.bottomLeft,r+i-l.bottomLeft,l.bottomLeft,el,ed,!0),e.lineTo(n+o-l.bottomRight,r+i),e.arc(n+o-l.bottomRight,r+i-l.bottomRight,l.bottomRight,ed,0,!0),e.lineTo(n+o,r+l.topRight),e.arc(n+o-l.topRight,r+l.topRight,l.topRight,0,-ed,!0),e.lineTo(n+l.topLeft,r)}let tm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tb=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,ty=e=>+e||0;function tv(e,t){let n={},r=Z(t),o=r?Object.keys(t):t,i=Z(e)?r?n=>j(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of o)n[e]=ty(i(e));return n}function tw(e){return tv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tC(e){return tv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tx(e){let t=tw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tS(e,t){e=e||{},t=t||tn.font;let n=j(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=j(e.style,t.style);r&&!(""+r).match(tb)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let o={family:j(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(j(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:j(e.weight,t.weight),string:""};return o.string=!o||B(o.size)||B(o.family)?null:(o.style?o.style+" ":"")+(o.weight?o.weight+" ":"")+o.size+"px "+o.family,o}function tk(e,t,n,r){let o,i,l,a=!0;for(o=0,i=e.length;o<i;++o)if(void 0!==(l=e[o])&&(void 0!==t&&"function"==typeof l&&(l=l(t),a=!1),void 0!==n&&V(l)&&(l=l[n%l.length],a=!1),void 0!==l))return r&&!a&&(r.cacheable=!1),l}function tR(e,t,n){let{min:r,max:o}=e,i=H(t,(o-r)/2),l=(e,t)=>n&&0===e?0:e+t;return{min:l(r,-Math.abs(i)),max:l(o,i)}}function tM(e,t){return Object.assign(Object.create(e),t)}function tA(e,t=[""],n,r,o=()=>e[0]){let i=n||e;void 0===r&&(r=tI("_fallback",e));let l={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:o,override:n=>tA([n,...e],t,i,r)};return new Proxy(l,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tP(n,r,()=>(function(e,t,n,r){let o;for(let i of t)if(void 0!==(o=tI(tE(i,e),n)))return tO(e,o)?tL(n,r,e,o):o})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tB(e).includes(t),ownKeys:e=>tB(e),set(e,t,n){let r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function t_(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tE=(e,t)=>e?e+et(t):t,tO=(e,t)=>Z(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tP(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let r=n();return e[t]=r,r}let tF=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tL(e,t,n,r){var o;let i=t._rootScopes,l=er(o=t._fallback)?o(n,r):o,a=[...e,...i],s=new Set;s.add(r);let u=tT(s,a,n,l||n,r);return null!==u&&(void 0===l||l===n||null!==(u=tT(s,a,l,u,r)))&&tA(Array.from(s),[""],i,l,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let o=r[t];return V(o)&&Z(n)?n:o||{}})(t,n,r))}function tT(e,t,n,r,o){for(;n;)n=function(e,t,n,r,o){for(let l of t){let t=tF(n,l);if(t){var i;e.add(t);let l=er(i=t._fallback)?i(n,o):i;if(void 0!==l&&l!==n&&l!==r)return l}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,o);return n}function tI(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tB(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tV(e,t,n,r){let o,i,l;let{iScale:a}=e,{key:s="r"}=this._parsing,u=Array(r);for(o=0;o<r;++o)l=t[i=o+n],u[o]={r:a.parse(ee(l,s),i)};return u}let tZ=Number.EPSILON||1e-14,tN=(e,t)=>t<e.length&&!e[t].skip&&e[t],tz=e=>"x"===e?"y":"x";function tj(e,t,n){return Math.max(Math.min(e,n),t)}function tD(e,t,n,r,o){let i,l,a,s;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,o;let i=tz(t),l=e.length,a=Array(l).fill(0),s=Array(l),u=tN(e,0);for(n=0;n<l;++n)if(r=o,o=u,u=tN(e,n+1),o){if(u){let e=u[t]-o[t];a[n]=0!==e?(u[i]-o[i])/e:0}s[n]=r?u?eg(a[n-1])!==eg(a[n])?0:(a[n-1]+a[n])/2:a[n-1]:a[n]}!function(e,t,n){let r,o,i,l,a;let s=e.length,u=tN(e,0);for(let c=0;c<s-1;++c)if(a=u,u=tN(e,c+1),a&&u){if(em(t[c],0,tZ)){n[c]=n[c+1]=0;continue}(l=Math.pow(r=n[c]/t[c],2)+Math.pow(o=n[c+1]/t[c],2))<=9||(i=3/Math.sqrt(l),n[c]=r*i*t[c],n[c+1]=o*i*t[c])}}(e,a,s),function(e,t,n="x"){let r,o,i;let l=tz(n),a=e.length,s=tN(e,0);for(let u=0;u<a;++u){if(o=i,i=s,s=tN(e,u+1),!i)continue;let a=i[n],c=i[l];o&&(r=(a-o[n])/3,i[`cp1${n}`]=a-r,i[`cp1${l}`]=c-r*t[u]),s&&(r=(s[n]-a)/3,i[`cp2${n}`]=a+r,i[`cp2${l}`]=c+r*t[u])}}(e,s,t)}(e,o);else{let n=r?e[e.length-1]:e[0];for(i=0,l=e.length;i<l;++i)s=function(e,t,n,r){let o=e.skip?t:e,i=n.skip?t:n,l=eM(t,o),a=eM(i,t),s=l/(l+a),u=a/(l+a);s=isNaN(s)?0:s,u=isNaN(u)?0:u;let c=r*s,d=r*u;return{previous:{x:t.x-c*(i.x-o.x),y:t.y-c*(i.y-o.y)},next:{x:t.x+d*(i.x-o.x),y:t.y+d*(i.y-o.y)}}}(n,a=e[i],e[Math.min(i+1,l-(r?0:1))%l],t.tension),a.cp1x=s.previous.x,a.cp1y=s.previous.y,a.cp2x=s.next.x,a.cp2y=s.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,o,i,l;let a=tu(e[0],t);for(n=0,r=e.length;n<r;++n)l=i,i=a,a=n<r-1&&tu(e[n+1],t),i&&(o=e[n],l&&(o.cp1x=tj(o.cp1x,t.left,t.right),o.cp1y=tj(o.cp1y,t.top,t.bottom)),a&&(o.cp2x=tj(o.cp2x,t.left,t.right),o.cp2y=tj(o.cp2y,t.top,t.bottom)))}(e,n)}function tH(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tq(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function t$(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tU=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tG=["top","right","bottom","left"];function tW(e,t,n){let r={};n=n?"-"+n:"";for(let o=0;o<4;o++){let i=tG[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,o=tU(n),i="border-box"===o.boxSizing,l=tW(o,"padding"),a=tW(o,"border","width"),{x:s,y:u,box:c}=function(e,t){let n,r;let o=e.touches,i=o&&o.length?o[0]:e,{offsetX:l,offsetY:a}=i,s=!1;if(tY(l,a,e.target))n=l,r=a;else{let e=t.getBoundingClientRect();n=i.clientX-e.left,r=i.clientY-e.top,s=!0}return{x:n,y:r,box:s}}(e,n),d=l.left+(c&&a.left),f=l.top+(c&&a.top),{width:h,height:p}=t;return i&&(h-=l.width+a.width,p-=l.height+a.height),{x:Math.round((s-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}let tK=e=>Math.round(10*e)/10;function tJ(e,t,n,r){let o=tU(e),i=tW(o,"margin"),l=t$(o.maxWidth,e,"clientWidth")||eu,a=t$(o.maxHeight,e,"clientHeight")||eu,s=function(e,t,n){let r,o;if(void 0===t||void 0===n){let i=tq(e);if(i){let e=i.getBoundingClientRect(),l=tU(i),a=tW(l,"border","width"),s=tW(l,"padding");t=e.width-s.width-a.width,n=e.height-s.height-a.height,r=t$(l.maxWidth,i,"clientWidth"),o=t$(l.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:o||eu}}(e,t,n),{width:u,height:c}=s;if("content-box"===o.boxSizing){let e=tW(o,"border","width"),t=tW(o,"padding");u-=t.width+e.width,c-=t.height+e.height}u=Math.max(0,u-i.width),c=Math.max(0,r?u/r:c-i.height),u=tK(Math.min(u,l,s.maxWidth)),c=tK(Math.min(c,a,s.maxHeight)),u&&!c&&(c=tK(u/2));let d=void 0!==t||void 0!==n;return d&&r&&s.height&&c>s.height&&(u=tK(Math.floor((c=s.height)*r))),{width:u,height:c}}function tQ(e,t,n){let r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let l=e.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=`${e.height}px`,l.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||l.height!==o||l.width!==i)&&(e.currentDevicePixelRatio=r,l.height=o,l.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t0=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function t1(e,t){let n=tU(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t2(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t4(e,t,n,r){let o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},l=t2(e,o,n),a=t2(o,i,n),s=t2(i,t,n),u=t2(l,a,n),c=t2(a,s,n);return t2(u,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t3(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t8(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t7(e){return"angle"===e?{between:eE,compare:eA,normalize:e_}:{between:eF,compare:(e,t)=>e-t,normalize:e=>e}}function t9({start:e,end:t,count:n,loop:r,style:o}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:o}}function ne(e,t,n){let r,o,i;if(!n)return[e];let{property:l,start:a,end:s}=n,u=t.length,{compare:c,between:d,normalize:f}=t7(l),{start:h,end:p,loop:g,style:m}=function(e,t,n){let r;let{property:o,start:i,end:l}=n,{between:a,normalize:s}=t7(o),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&a(s(t[c%u][o]),i,l);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),b=[],y=!1,v=null,w=()=>d(a,i,r)&&0!==c(a,i),C=()=>0===c(s,r)||d(s,i,r),x=()=>y||w(),S=()=>!y||C();for(let e=h,n=h;e<=p;++e)(o=t[e%u]).skip||(r=f(o[l]))===i||(y=d(r,a,s),null===v&&x()&&(v=0===c(r,a)?e:n),null!==v&&S()&&(b.push(t9({start:v,end:e,loop:g,count:u,style:m})),v=null),n=e,i=r);return null!==v&&b.push(t9({start:v,end:p,loop:g,count:u,style:m})),b}function nt(e,t){let n=[],r=e.segments;for(let o=0;o<r.length;o++){let i=ne(r[o],e.points,t);i.length&&n.push(...i)}return n}function nn(e,t){let n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];let i=!!e._loop,{start:l,end:a}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return{start:o,end:i%=t}}(n,o,i,r);if(!0===r)return nr(e,[{start:l,end:a,loop:i}],n,t);let s=a<l?a+o:a,u=!!e._fullLoop&&0===l&&a===o-1;return nr(e,function(e,t,n,r){let o;let i=e.length,l=[],a=t,s=e[t];for(o=t+1;o<=n;++o){let n=e[o%i];n.skip||n.stop?s.skip||(r=!1,l.push({start:t%i,end:(o-1)%i,loop:r}),t=a=n.stop?o:null):(a=o,s.skip&&(t=o)),s=n}return null!==a&&l.push({start:t%i,end:a%i,loop:r}),l}(n,l,s,u),n,t)}function nr(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let o=e._chart.getContext(),i=no(e.options),{_datasetIndex:l,options:{spanGaps:a}}=e,s=n.length,u=[],c=i,d=t[0].start,f=d;function h(e,t,r,o){let i=a?-1:1;if(e!==t){for(e+=s;n[e%s].skip;)e-=i;for(;n[t%s].skip;)t+=i;e%s!=t%s&&(u.push({start:e%s,end:t%s,loop:r,style:o}),c=o,d=t%s)}}for(let e of t){let t;let i=n[(d=a?d:e.start)%s];for(f=d+1;f<=e.end;f++){let a=n[f%s];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=no(r.setContext(tM(o,{type:"segment",p0:i,p1:a,p0DataIndex:(f-1)%s,p1DataIndex:f%s,datasetIndex:l}))),c)&&h(d,f-1,e.loop,c),i=a,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function no(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},9116:function(e,t,n){"use strict";function r(){}n.d(t,{CT:function(){return p},NV:function(){return a},SY:function(){return c}}),r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var o=this;function i(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,s=1,u=l+a;n.maxEditLength&&(u=Math.min(u,n.maxEditLength));var c=[{newPos:-1,components:[]}],d=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=l&&d+1>=a)return i([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*s;n<=s;n+=2){var r=void 0,u=c[n-1],d=c[n+1],f=(d?d.newPos:0)-n;u&&(c[n-1]=void 0);var h=u&&u.newPos+1<l,p=d&&0<=f&&f<a;if(!h&&!p){c[n]=void 0;continue}if(!h||p&&u.newPos<d.newPos?(r={newPos:d.newPos,components:d.components.slice(0)},o.pushComponent(r.components,void 0,!0)):(r=u,r.newPos++,o.pushComponent(r.components,!0,void 0)),f=o.extractCommon(r,t,e,n),r.newPos+1>=l&&f+1>=a)return i(function(e,t,n,r,o){for(var i=0,l=t.length,a=0,s=0;i<l;i++){var u=t[i];if(u.removed){if(u.value=e.join(r.slice(s,s+u.count)),s+=u.count,i&&t[i-1].added){var c=t[i-1];t[i-1]=t[i],t[i]=c}}else{if(!u.added&&o){var d=n.slice(a,a+u.count);d=d.map(function(e,t){var n=r[s+t];return n.length>e.length?n:e}),u.value=e.join(d)}else u.value=e.join(n.slice(a,a+u.count));a+=u.count,u.added||(s+=u.count)}}var f=t[l-1];return l>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[l-2].value+=f.value,t.pop()),t}(o,r.components,t,e,o.useLongestToken));c[n]=r}s++}if(r)!function e(){setTimeout(function(){if(s>u)return r();f()||e()},0)}();else for(;s<=u;){var h=f();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,l=e.newPos,a=l-r,s=0;l+1<o&&a+1<i&&this.equals(t[l+1],n[a+1]);)l++,a++,s++;return s&&e.components.push({count:s}),e.newPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new r;var o=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,i=/\S/,l=new r;function a(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!i.test(e)&&!i.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&o.test(t[n])&&o.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var s=new r;s.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t};var u=new r;function c(e,t,n){return u.diff(e,t,n)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}u.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new r().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var f=Object.prototype.toString,h=new r;function p(e,t,n){return h.diff(e,t,n)}h.useLongestToken=!0,h.tokenize=s.tokenize,h.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,o,i){for(n=n||[],r=r||[],o&&(t=o(i,t)),l=0;l<n.length;l+=1)if(n[l]===t)return r[l];if("[object Array]"===f.call(t)){for(n.push(t),a=Array(t.length),r.push(a),l=0;l<t.length;l+=1)a[l]=e(t[l],n,r,o,i);return n.pop(),r.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),"object"===d(t)&&null!==t){n.push(t),a={},r.push(a);var l,a,s,u=[];for(s in t)t.hasOwnProperty(s)&&u.push(s);for(u.sort(),l=0;l<u.length;l+=1)a[s=u[l]]=e(t[s],n,r,o,s);n.pop(),r.pop()}else a=t;return a}(e,null,null,o),o," ")},h.equals=function(e,t){return r.prototype.equals.call(h,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var g=new r;g.tokenize=function(e){return e.slice()},g.join=g.removeEmpty=function(e){return e}},3388:function(e,t,n){"use strict";let r,o;n.d(t,{io:function(){return ex}});var i,l,a={};n.r(a),n.d(a,{Decoder:function(){return ep},Encoder:function(){return ef},PacketType:function(){return l},protocol:function(){return ed}});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let u=Object.create(null);Object.keys(s).forEach(e=>{u[s[e]]=e});let c={type:"error",data:"parser error"},d="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,p=({type:e,data:t},n,r)=>d&&t instanceof Blob?n?r(t):g(t,r):f&&(t instanceof ArrayBuffer||h(t))?n?r(t):g(new Blob([t]),r):r(s[e]+(t||"")),g=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<b.length;e++)y[b.charCodeAt(e)]=e;let v=e=>{let t=.75*e.length,n=e.length,r,o=0,i,l,a,s;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)i=y[e.charCodeAt(r)],l=y[e.charCodeAt(r+1)],a=y[e.charCodeAt(r+2)],s=y[e.charCodeAt(r+3)],c[o++]=i<<2|l>>4,c[o++]=(15&l)<<4|a>>2,c[o++]=(3&a)<<6|63&s;return u},w="function"==typeof ArrayBuffer,C=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let n=e.charAt(0);if("b"===n)return{type:"message",data:x(e.substring(1),t)};let r=u[n];return r?e.length>1?{type:u[n],data:e.substring(1)}:{type:u[n]}:c},x=(e,t)=>{if(!w)return{base64:!0,data:e};{let n=v(e);return S(n,t)}},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,k=(e,t)=>{let n=e.length,r=Array(n),o=0;e.forEach((e,i)=>{p(e,!1,e=>{r[i]=e,++o===n&&t(r.join("\x1e"))})})},R=(e,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let o=C(n[e],t);if(r.push(o),"error"===o.type)break}return r};function M(e){return e.reduce((e,t)=>e+t.length,0)}function A(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function _(e){if(e)return function(e){for(var t in _.prototype)e[t]=_.prototype[t];return e}(e)}_.prototype.on=_.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},_.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},_.prototype.off=_.prototype.removeListener=_.prototype.removeAllListeners=_.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},_.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},_.prototype.emitReserved=_.prototype.emit,_.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},_.prototype.hasListeners=function(e){return!!this.listeners(e).length};let E="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function O(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let P=E.setTimeout,F=E.clearTimeout;function L(e,t){t.useNativeTimers?(e.setTimeoutFn=P.bind(E),e.clearTimeoutFn=F.bind(E)):(e.setTimeoutFn=E.setTimeout.bind(E),e.clearTimeoutFn=E.clearTimeout.bind(E))}class T extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class I extends _{constructor(e){super(),this.writable=!1,L(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new T(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=C(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}let B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),V={},Z=0,N=0,z;function j(e){let t="";do t=B[e%64]+t,e=Math.floor(e/64);while(e>0);return t}function D(){let e=j(+new Date);return e!==z?(Z=0,z=e):e+"."+j(Z++)}for(;N<64;N++)V[B[N]]=N;let H=!1;try{H="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let q=H;function $(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||q))return new XMLHttpRequest}catch(e){}if(!t)try{return new E[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function U(){}let G=function(){let e=new $({xdomain:!1});return null!=e.responseType}();class W extends _{constructor(e,t){super(),L(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=O(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let n=this.xhr=new $(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=W.requestsCount++,W.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=U,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete W.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(W.requestsCount=0,W.requests={},"undefined"!=typeof document){if("function"==typeof attachEvent)attachEvent("onunload",Y);else if("function"==typeof addEventListener){let e="onpagehide"in E?"pagehide":"unload";addEventListener(e,Y,!1)}}function Y(){for(let e in W.requests)W.requests.hasOwnProperty(e)&&W.requests[e].abort()}let X=(()=>{let e="function"==typeof Promise&&"function"==typeof Promise.resolve;return e?e=>Promise.resolve().then(e):(e,t)=>t(e,0)})(),K=E.WebSocket||E.MozWebSocket;n(263).Buffer;let J="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Q={websocket:class extends I{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,n=J?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=J?new K(e,t,n):t?new K(e,t):new K(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;p(n,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=D()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!K}},webtransport:class extends I{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=function(e,t){o||(o=new TextDecoder);let n=[],r=0,i=-1,l=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(1>M(n))break;let e=A(n,1);l=(128&e[0])==128,r=(i=127&e[0])<126?3:126===i?1:2}else if(1===r){if(2>M(n))break;let e=A(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(8>M(n))break;let e=A(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>2097151){s.enqueue(c);break}i=4294967296*o+t.getUint32(4),r=3}else{if(M(n)<i)break;let e=A(n,i);s.enqueue(C(l?e:o.decode(e),t)),r=0}if(0===i||i>e){s.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),i=new TransformStream({transform(e,t){var n;n=n=>{let r;let o=n.length;if(o<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,o);else if(o<65536){r=new Uint8Array(3);let e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,o)}else{r=new Uint8Array(9);let e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(o))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)},d&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(n):f&&(e.data instanceof ArrayBuffer||h(e.data))?n(m(e.data)):p(e,!1,e=>{r||(r=new TextEncoder),n(r.encode(e))})}});i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();let l=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),l())}).catch(e=>{})};l();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this.writer.write(n).then(()=>{r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends I{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}let t=e&&e.forceBase64;this.supportsBinary=G&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){R(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,k(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=D()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new W(this.uri(),e)}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}},ee=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function en(e){let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=ee.exec(e||""),i={},l=14;for(;l--;)i[et[l]]=o[l]||"";return -1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){let n=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,i.path),i.queryKey=function(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,i.query),i}class er extends _{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=en(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=en(t.host).host),L(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Q[e](n)}open(){let e;if(this.opts.rememberUpgrade&&er.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;er.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(er.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"===this.readyState||(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function o(){n||(n=!0,u(),t.close(),t=null)}let i=e=>{let n=Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function l(){i("transport closed")}function a(){i("socket closed")}function s(e){t&&e.name!==t.name&&o()}let u=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",l),this.off("close",a),this.off("upgrading",s)};t.once("open",r),t.once("error",i),t.once("close",l),this.once("close",a),this.once("upgrading",s),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",er.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){let e=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!e)return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let n=this.writeBuffer[e].data;if(n&&(t+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),e>0&&t>this.maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){er.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],n=0,r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}er.protocol=4,er.protocol;let eo="function"==typeof ArrayBuffer,ei=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,el=Object.prototype.toString,ea="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===el.call(Blob),es="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===el.call(File);function eu(e){return eo&&(e instanceof ArrayBuffer||ei(e))||ea&&e instanceof Blob||es&&e instanceof File}let ec=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ed=5;(i=l||(l={}))[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK";class ef{constructor(e){this.replacer=e}encode(e){return(e.type===l.EVENT||e.type===l.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(eu(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===l.BINARY_EVENT||e.type===l.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],n=e.data;return e.data=function e(t,n){if(!t)return t;if(eu(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let o=0;o<t.length;o++)r[o]=e(t[o],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=e(t[o],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}}(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function eh(e){return"[object Object]"===Object.prototype.toString.call(e)}class ep extends _{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let n=t.type===l.BINARY_EVENT;n||t.type===l.BINARY_ACK?(t.type=n?l.EVENT:l.ACK,this.reconstructor=new eg(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eu(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===l[n.type])throw Error("unknown packet type "+n.type);if(n.type===l.BINARY_EVENT||n.type===l.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t;){let n=e.charAt(t);if(","===n||t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(ep.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case l.CONNECT:return eh(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||eh(t);case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ec.indexOf(t[0]));case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eg{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){let e="number"==typeof t.num&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function em(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let eb=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ey extends _{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[em(e,"open",this.onopen.bind(this)),em(e,"packet",this.onpacket.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(eb.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:l.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,o=this.flags.volatile&&(!r||!this.connected);return o||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,[null,...e])}}emitWithAck(e,...t){let n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((r,o)=>{t.push((e,t)=>n?e?o(e):r(t):r(e)),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n!==this._queue[0])return;let o=null!==e;return o?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:l.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){let t=e.nsp===this.nsp;if(t)switch(e.type){case l.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case l.EVENT:case l.BINARY_EVENT:this.onevent(e);break;case l.ACK:case l.BINARY_ACK:this.onack(e);break;case l.DISCONNECT:this.ondisconnect();break;case l.CONNECT_ERROR:this.destroy();let n=Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:l.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:l.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}}function ev(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ev.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},ev.prototype.reset=function(){this.attempts=0},ev.prototype.setMin=function(e){this.ms=e},ev.prototype.setMax=function(e){this.max=e},ev.prototype.setJitter=function(e){this.jitter=e};class ew extends _{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,L(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new ev({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||a;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new er(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=em(t,"open",function(){n.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=em(t,"error",o);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),o(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(em(e,"ping",this.onping.bind(this)),em(e,"data",this.ondata.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this)),em(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){X(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new ey(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t){let t=this.nsps[e];if(t.active)return}this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eC={};function ex(e,t){let n;"object"==typeof e&&(t=e,e=void 0),t=t||{};let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=en(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let o=-1!==r.host.indexOf(":"),i=o?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,t.path||"/socket.io"),o=r.source,i=r.id,l=r.path,a=eC[i]&&l in eC[i].nsps,s=t.forceNew||t["force new connection"]||!1===t.multiplex||a;return s?n=new ew(o,t):(eC[i]||(eC[i]=new ew(o,t)),n=eC[i]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(ex,{Manager:ew,Socket:ey,io:ex,connect:ex})},2130:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[548],{7820:function(e,t,r){var o=r(2265);let n=o.createContext({});t.Z=n},3375:function(e,t,r){r.d(t,{Z:function(){return ei}});var o=r(3428),n=r(791),i=r(2265);r(9176);var l=r(7042),a=r(5600),s=r(7282),u=r(3931),p=r(5843),c=r(7927),d=r(7820),f=r(6520),h=r(5702);function m(e){return(0,h.Z)("MuiList",e)}(0,f.Z)("MuiList",["root","padding","dense","subheader"]);var v=r(7437);let Z=["children","className","component","dense","disablePadding","subheader"],g=e=>{let{classes:t,disablePadding:r,dense:o,subheader:n}=e;return(0,a.Z)({root:["root",!r&&"padding",o&&"dense",n&&"subheader"]},m,t)},b=(0,p.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),y=i.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"MuiList"}),{children:a,className:s,component:u="ul",dense:p=!1,disablePadding:f=!1,subheader:h}=r,m=(0,n.Z)(r,Z),y=i.useMemo(()=>({dense:p}),[p]),P=(0,o.Z)({},r,{component:u,dense:p,disablePadding:f}),x=g(P);return(0,v.jsx)(d.Z.Provider,{value:y,children:(0,v.jsxs)(b,(0,o.Z)({as:u,className:(0,l.Z)(x.root,s),ref:t,ownerState:P},m,{children:[h,a]}))})});var P=r(878).Z,x=r(7663),S=r(8519);let M=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function w(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function C(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function E(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function k(e,t,r,o,n,i){let l=!1,a=n(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}let t=!o&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&E(a,i)&&!t)return a.focus(),!0;a=n(e,a,r)}return!1}let T=i.forwardRef(function(e,t){let{actions:r,autoFocus:l=!1,autoFocusItem:a=!1,children:s,className:p,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:h="selectedMenu"}=e,m=(0,n.Z)(e,M),Z=i.useRef(null),g=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,S.Z)(()=>{l&&Z.current.focus()},[l]),i.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{let r=!Z.current.style.width;if(e.clientHeight<Z.current.clientHeight&&r){let r=`${P((0,u.Z)(e))}px`;Z.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,Z.current.style.width=`calc(100% + ${r})`}return Z.current}}),[]);let b=(0,x.Z)(Z,t),T=-1;i.Children.forEach(s,(e,t)=>{if(!i.isValidElement(e)){T===t&&(T+=1)>=s.length&&(T=-1);return}e.props.disabled||("selectedMenu"===h&&e.props.selected?T=t:-1!==T||(T=t)),T===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(T+=1)>=s.length&&(T=-1)});let R=i.Children.map(s,(e,t)=>{if(t===T){let t={};return a&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return(0,v.jsx)(y,(0,o.Z)({role:"menu",ref:b,className:p,onKeyDown:e=>{let t=Z.current,r=e.key,o=(0,u.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),k(t,o,d,c,w);else if("ArrowUp"===r)e.preventDefault(),k(t,o,d,c,C);else if("Home"===r)e.preventDefault(),k(t,null,d,c,w);else if("End"===r)e.preventDefault(),k(t,null,d,c,C);else if(1===r.length){let n=g.current,i=r.toLowerCase(),l=performance.now();n.keys.length>0&&(l-n.lastTime>500?(n.keys=[],n.repeating=!0,n.previousKeyMatched=!0):n.repeating&&i!==n.keys[0]&&(n.repeating=!1)),n.lastTime=l,n.keys.push(i);let a=o&&!n.repeating&&E(o,n);n.previousKeyMatched&&(a||k(t,o,!1,c,w,n))?e.preventDefault():n.previousKeyMatched=!1}f&&f(e)},tabIndex:l?0:-1},m,{children:R}))});var R=r(3655),z=r(494),D=r(6649),N=r(6176),L=r(1376),F=r(9872);function j(e){return(0,h.Z)("MuiPopover",e)}(0,f.Z)("MuiPopover",["root","paper"]);let H=["onEntering"],O=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],I=["slotProps"];function K(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function _(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function A(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function W(e){return"function"==typeof e?e():e}let $=e=>{let{classes:t}=e;return(0,a.Z)({root:["root"],paper:["paper"]},j,t)},V=(0,p.ZP)(L.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B=(0,p.ZP)(F.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),X=i.forwardRef(function(e,t){var r,a,p;let d=(0,c.Z)({props:e,name:"MuiPopover"}),{action:f,anchorEl:h,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:Z,anchorReference:g="anchorEl",children:b,className:y,container:P,elevation:S=8,marginThreshold:M=16,open:w,PaperProps:C={},slots:E,slotProps:k,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:L=N.Z,transitionDuration:F="auto",TransitionProps:{onEntering:j}={}}=d,X=(0,n.Z)(d.TransitionProps,H),U=(0,n.Z)(d,O),Y=null!=(r=null==k?void 0:k.paper)?r:C,q=i.useRef(),G=(0,x.Z)(q,Y.ref),J=(0,o.Z)({},d,{anchorOrigin:m,anchorReference:g,elevation:S,marginThreshold:M,externalPaperSlotProps:Y,transformOrigin:T,TransitionComponent:L,transitionDuration:F,TransitionProps:X}),Q=$(J),ee=i.useCallback(()=>{if("anchorPosition"===g)return Z;let e=W(h),t=e&&1===e.nodeType?e:(0,u.Z)(q.current).body,r=t.getBoundingClientRect();return{top:r.top+K(r,m.vertical),left:r.left+_(r,m.horizontal)}},[h,m.horizontal,m.vertical,Z,g]),et=i.useCallback(e=>({vertical:K(e,T.vertical),horizontal:_(e,T.horizontal)}),[T.horizontal,T.vertical]),er=i.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=et(t);if("none"===g)return{top:null,left:null,transformOrigin:A(r)};let o=ee(),n=o.top-r.vertical,i=o.left-r.horizontal,l=n+t.height,a=i+t.width,s=(0,D.Z)(W(h)),u=s.innerHeight-M,p=s.innerWidth-M;if(n<M){let e=n-M;n-=e,r.vertical+=e}else if(l>u){let e=l-u;n-=e,r.vertical+=e}if(i<M){let e=i-M;i-=e,r.horizontal+=e}else if(a>p){let e=a-p;i-=e,r.horizontal+=e}return{top:`${Math.round(n)}px`,left:`${Math.round(i)}px`,transformOrigin:A(r)}},[h,g,ee,et,M]),[eo,en]=i.useState(w),ei=i.useCallback(()=>{let e=q.current;if(!e)return;let t=er(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,en(!0)},[er]);i.useEffect(()=>{w&&ei()}),i.useImperativeHandle(f,()=>w?{updatePosition:()=>{ei()}}:null,[w,ei]),i.useEffect(()=>{if(!w)return;let e=(0,z.Z)(()=>{ei()}),t=(0,D.Z)(h);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[h,w,ei]);let el=F;"auto"!==F||L.muiSupportAuto||(el=void 0);let ea=P||(h?(0,u.Z)(W(h)).body:void 0),es=null!=(a=null==E?void 0:E.root)?a:V,eu=null!=(p=null==E?void 0:E.paper)?p:B,ep=(0,s.y)({elementType:eu,externalSlotProps:(0,o.Z)({},Y,{style:eo?Y.style:(0,o.Z)({},Y.style,{opacity:0})}),additionalProps:{elevation:S,ref:G},ownerState:J,className:(0,l.Z)(Q.paper,null==Y?void 0:Y.className)}),ec=(0,s.y)({elementType:es,externalSlotProps:(null==k?void 0:k.root)||{},externalForwardedProps:U,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ea,open:w},ownerState:J,className:(0,l.Z)(Q.root,y)}),{slotProps:ed}=ec,ef=(0,n.Z)(ec,I);return(0,v.jsx)(es,(0,o.Z)({},ef,!(0,R.X)(es)&&{slotProps:ed},{children:(0,v.jsx)(L,(0,o.Z)({appear:!0,in:w,onEntering:(e,t)=>{j&&j(e,t),ei()},onExited:()=>{en(!1)},timeout:el},X,{children:(0,v.jsx)(eu,(0,o.Z)({},ep,{children:b}))}))}))});var U=r(1101);function Y(e){return(0,h.Z)("MuiMenu",e)}(0,f.Z)("MuiMenu",["root","paper","list"]);let q=["onEntering"],G=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],J={vertical:"top",horizontal:"right"},Q={vertical:"top",horizontal:"left"},ee=e=>{let{classes:t}=e;return(0,a.Z)({root:["root"],paper:["paper"],list:["list"]},Y,t)},et=(0,p.ZP)(X,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),er=(0,p.ZP)(B,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eo=(0,p.ZP)(T,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),en=i.forwardRef(function(e,t){var r,a;let u=(0,c.Z)({props:e,name:"MuiMenu"}),{autoFocus:p=!0,children:d,className:f,disableAutoFocusItem:h=!1,MenuListProps:m={},onClose:Z,open:g,PaperProps:b={},PopoverClasses:y,transitionDuration:P="auto",TransitionProps:{onEntering:x}={},variant:S="selectedMenu",slots:M={},slotProps:w={}}=u,C=(0,n.Z)(u.TransitionProps,q),E=(0,n.Z)(u,G),k=(0,U.Z)(),T="rtl"===k.direction,R=(0,o.Z)({},u,{autoFocus:p,disableAutoFocusItem:h,MenuListProps:m,onEntering:x,PaperProps:b,transitionDuration:P,TransitionProps:C,variant:S}),z=ee(R),D=p&&!h&&g,N=i.useRef(null),L=-1;i.Children.map(d,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected?L=t:-1!==L||(L=t)))});let F=null!=(r=M.paper)?r:er,j=null!=(a=w.paper)?a:b,H=(0,s.y)({elementType:M.root,externalSlotProps:w.root,ownerState:R,className:[z.root,f]}),O=(0,s.y)({elementType:F,externalSlotProps:j,ownerState:R,className:z.paper});return(0,v.jsx)(et,(0,o.Z)({onClose:Z,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?J:Q,slots:{paper:F,root:M.root},slotProps:{root:H,paper:O},open:g,ref:t,transitionDuration:P,TransitionProps:(0,o.Z)({onEntering:(e,t)=>{N.current&&N.current.adjustStyleForScrollbar(e,k),x&&x(e,t)}},C),ownerState:R},E,{classes:y,children:(0,v.jsx)(eo,(0,o.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),Z&&Z(e,"tabKeyDown"))},actions:N,autoFocus:p&&(-1===L||h),autoFocusItem:D,variant:S},m,{className:(0,l.Z)(z.list,m.className),children:d}))}))});var ei=en},494:function(e,t,r){var o=r(8078);t.Z=o.Z},673:function(e,t,r){r.d(t,{Z:function(){return n}});var o=r(2265),n=function(e,t){return o.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},3931:function(e,t,r){var o=r(6278);t.Z=o.Z},6649:function(e,t,r){var o=r(8221);t.Z=o.Z},8519:function(e,t,r){var o=r(1091);t.Z=o.Z},9190:function(e,t,r){var o=r(1047);let n=(0,o.ZP)();t.Z=n},8236:function(e,t){Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},9176:function(e,t,r){r(8236)}}]);
|