promptfoo 0.63.2 → 0.64.0

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.
Files changed (151) hide show
  1. package/dist/package.json +7 -6
  2. package/dist/src/assertions.d.ts +1 -1
  3. package/dist/src/assertions.d.ts.map +1 -1
  4. package/dist/src/assertions.js +30 -34
  5. package/dist/src/assertions.js.map +1 -1
  6. package/dist/src/index.d.ts +2 -0
  7. package/dist/src/index.d.ts.map +1 -1
  8. package/dist/src/index.js +3 -2
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/src/main.js +8 -0
  11. package/dist/src/main.js.map +1 -1
  12. package/dist/src/providers/anthropic.d.ts +3 -0
  13. package/dist/src/providers/anthropic.d.ts.map +1 -1
  14. package/dist/src/providers/anthropic.js +40 -9
  15. package/dist/src/providers/anthropic.js.map +1 -1
  16. package/dist/src/providers/bedrock.d.ts.map +1 -1
  17. package/dist/src/providers/bedrock.js +10 -4
  18. package/dist/src/providers/bedrock.js.map +1 -1
  19. package/dist/src/providers/portkey.d.ts +27 -1
  20. package/dist/src/providers/portkey.d.ts.map +1 -1
  21. package/dist/src/providers/portkey.js +7 -27
  22. package/dist/src/providers/portkey.js.map +1 -1
  23. package/dist/src/providers/promptfoo.d.ts.map +1 -1
  24. package/dist/src/providers/promptfoo.js +5 -1
  25. package/dist/src/providers/promptfoo.js.map +1 -1
  26. package/dist/src/providers/voyage.d.ts +13 -0
  27. package/dist/src/providers/voyage.d.ts.map +1 -0
  28. package/dist/src/providers/voyage.js +77 -0
  29. package/dist/src/providers/voyage.js.map +1 -0
  30. package/dist/src/providers.d.ts.map +1 -1
  31. package/dist/src/providers.js +4 -0
  32. package/dist/src/providers.js.map +1 -1
  33. package/dist/src/redteam/getHarmfulTests.d.ts.map +1 -1
  34. package/dist/src/redteam/getHarmfulTests.js +3 -1
  35. package/dist/src/redteam/getHarmfulTests.js.map +1 -1
  36. package/dist/src/redteam/getUnintendedContracts.d.ts +3 -0
  37. package/dist/src/redteam/getUnintendedContracts.d.ts.map +1 -0
  38. package/dist/src/redteam/getUnintendedContracts.js +83 -0
  39. package/dist/src/redteam/getUnintendedContracts.js.map +1 -0
  40. package/dist/src/redteam/index.d.ts.map +1 -1
  41. package/dist/src/redteam/index.js +6 -2
  42. package/dist/src/redteam/index.js.map +1 -1
  43. package/dist/src/types.d.ts +1 -0
  44. package/dist/src/types.d.ts.map +1 -1
  45. package/dist/src/util.d.ts.map +1 -1
  46. package/dist/src/util.js +1 -0
  47. package/dist/src/util.js.map +1 -1
  48. package/dist/src/web/nextui/404/index.html +1 -1
  49. package/dist/src/web/nextui/404.html +1 -1
  50. package/dist/src/web/nextui/_next/static/2jOnlz9DOwDLK-xyLaOBO/_buildManifest.js +1 -0
  51. package/dist/src/web/nextui/_next/static/chunks/106-598707cae3f2a1bd.js +44 -0
  52. package/dist/src/web/nextui/_next/static/chunks/135-7aa62cd3f1582b50.js +1 -0
  53. package/dist/src/web/nextui/_next/static/chunks/166-157bfb431b68d949.js +1 -0
  54. package/dist/src/web/nextui/_next/static/chunks/{1a53ab81-6d64be52a06b7c39.js → 1a53ab81-5e1a018996226f61.js} +2 -2
  55. package/dist/src/web/nextui/_next/static/chunks/215-7d83203d614bcd6a.js +1 -0
  56. package/dist/src/web/nextui/_next/static/chunks/226-c7a61af9c30bcc15.js +1 -0
  57. package/dist/src/web/nextui/_next/static/chunks/235-2bbcbc3cd37eef0f.js +1 -0
  58. package/dist/src/web/nextui/_next/static/chunks/258-8a7aa9a347c287ea.js +8 -0
  59. package/dist/src/web/nextui/_next/static/chunks/304-37065d54ff218f46.js +1 -0
  60. package/dist/src/web/nextui/_next/static/chunks/322-92c9551f32057648.js +1 -0
  61. package/dist/src/web/nextui/_next/static/chunks/339-f38253669d469118.js +1 -0
  62. package/dist/src/web/nextui/_next/static/chunks/374-d40e4777b00cf7a7.js +1 -0
  63. package/dist/src/web/nextui/_next/static/chunks/378-4b0cc74c685f98f9.js +1 -0
  64. package/dist/src/web/nextui/_next/static/chunks/540-56159a4d6bc0d205.js +97 -0
  65. package/dist/src/web/nextui/_next/static/chunks/620-1e779bd81b43dafb.js +1 -0
  66. package/dist/src/web/nextui/_next/static/chunks/631-87fea556bbafe972.js +6 -0
  67. package/dist/src/web/nextui/_next/static/chunks/640-0f757e2fe135173d.js +1 -0
  68. package/dist/src/web/nextui/_next/static/chunks/7-fcb7ff53c7fbc4db.js +32 -0
  69. package/dist/src/web/nextui/_next/static/chunks/730-3eb7255cd813a727.js +25 -0
  70. package/dist/src/web/nextui/_next/static/chunks/770-577cd7d7d380b3ac.js +2 -0
  71. package/dist/src/web/nextui/_next/static/chunks/873-0692f91d92df9b1d.js +1 -0
  72. package/dist/src/web/nextui/_next/static/chunks/887.028187fb318c3e59.js +1 -0
  73. package/dist/src/web/nextui/_next/static/chunks/954-5ae50ec0b4434ae9.js +6 -0
  74. package/dist/src/web/nextui/_next/static/chunks/995-c9a656a43545902a.js +1 -0
  75. package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-2bca919d5bc2f6cd.js +1 -0
  76. package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-d00a30cae5264b86.js +1 -0
  77. package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-1c3ef023ac5251fc.js +1 -0
  78. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/not-found-50073ee4b153b82b.js +1 -0
  79. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/page-21a8f23fc1ff5766.js +1 -0
  80. package/dist/src/web/nextui/_next/static/chunks/app/eval/page-8537d53eadbd4117.js +1 -0
  81. package/dist/src/web/nextui/_next/static/chunks/app/layout-be938b5eb49b2d47.js +1 -0
  82. package/dist/src/web/nextui/_next/static/chunks/app/page-251d4ea0ac894cd9.js +1 -0
  83. package/dist/src/web/nextui/_next/static/chunks/app/progress/page-3fe815e49b020aeb.js +1 -0
  84. package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-50282d4c7973f954.js +1 -0
  85. package/dist/src/web/nextui/_next/static/chunks/app/report/page-dc993735a78d31e4.js +1 -0
  86. package/dist/src/web/nextui/_next/static/chunks/app/setup/page-ea89f5d80fa5f537.js +1 -0
  87. package/dist/src/web/nextui/_next/static/chunks/b6261da7-e9d81a4364ddd0c0.js +9 -0
  88. package/dist/src/web/nextui/_next/static/chunks/framework-c3d480eb9ad30ba5.js +25 -0
  89. package/dist/src/web/nextui/_next/static/chunks/main-853e5508e37bbe4c.js +1 -0
  90. package/dist/src/web/nextui/_next/static/chunks/main-app-345c3eca7e5cf432.js +1 -0
  91. package/dist/src/web/nextui/_next/static/chunks/pages/_app-998b254a061422d4.js +1 -0
  92. package/dist/src/web/nextui/_next/static/chunks/pages/_error-94f0db477e27e000.js +1 -0
  93. package/dist/src/web/nextui/_next/static/chunks/webpack-e7b8eadb84044d12.js +1 -0
  94. package/dist/src/web/nextui/_next/static/css/a01afc4841be59dc.css +1 -0
  95. package/dist/src/web/nextui/auth/login/index.html +1 -1
  96. package/dist/src/web/nextui/auth/login/index.txt +5 -5
  97. package/dist/src/web/nextui/auth/signup/index.html +1 -1
  98. package/dist/src/web/nextui/auth/signup/index.txt +5 -5
  99. package/dist/src/web/nextui/datasets/index.html +1 -1
  100. package/dist/src/web/nextui/datasets/index.txt +5 -5
  101. package/dist/src/web/nextui/eval/index.html +1 -1
  102. package/dist/src/web/nextui/eval/index.txt +5 -5
  103. package/dist/src/web/nextui/index.html +1 -1
  104. package/dist/src/web/nextui/index.txt +4 -4
  105. package/dist/src/web/nextui/progress/index.html +1 -1
  106. package/dist/src/web/nextui/progress/index.txt +5 -5
  107. package/dist/src/web/nextui/prompts/index.html +1 -1
  108. package/dist/src/web/nextui/prompts/index.txt +5 -5
  109. package/dist/src/web/nextui/report/index.html +1 -0
  110. package/dist/src/web/nextui/report/index.txt +17 -0
  111. package/dist/src/web/nextui/setup/index.html +2 -2
  112. package/dist/src/web/nextui/setup/index.txt +6 -6
  113. package/package.json +7 -6
  114. package/dist/src/web/nextui/_next/static/T-Po7cKimMNTqoq7rCMq5/_buildManifest.js +0 -1
  115. package/dist/src/web/nextui/_next/static/chunks/106-1dceaa80df396865.js +0 -44
  116. package/dist/src/web/nextui/_next/static/chunks/107-ffb99760e0fb68f2.js +0 -1
  117. package/dist/src/web/nextui/_next/static/chunks/189-b6f910f4b701335b.js +0 -1
  118. package/dist/src/web/nextui/_next/static/chunks/215-63edfe1b1ae625e4.js +0 -1
  119. package/dist/src/web/nextui/_next/static/chunks/226-8eeb88a656092f72.js +0 -1
  120. package/dist/src/web/nextui/_next/static/chunks/235-5dedba2497d889c9.js +0 -1
  121. package/dist/src/web/nextui/_next/static/chunks/249-d4e0e50561ef8185.js +0 -1
  122. package/dist/src/web/nextui/_next/static/chunks/339-132502fa6d7b24c7.js +0 -1
  123. package/dist/src/web/nextui/_next/static/chunks/383-e19d78b51fa58f1b.js +0 -1
  124. package/dist/src/web/nextui/_next/static/chunks/629-2358b4dcbf84d053.js +0 -1
  125. package/dist/src/web/nextui/_next/static/chunks/631-efb1476abf72c1ff.js +0 -6
  126. package/dist/src/web/nextui/_next/static/chunks/635-d64ddf71d262749b.js +0 -97
  127. package/dist/src/web/nextui/_next/static/chunks/690-618c46a7158870af.js +0 -6
  128. package/dist/src/web/nextui/_next/static/chunks/7-6b1daff67cc5affb.js +0 -32
  129. package/dist/src/web/nextui/_next/static/chunks/730-9147ccb0626b2f6b.js +0 -25
  130. package/dist/src/web/nextui/_next/static/chunks/733-3e9ca9d39ddcb04c.js +0 -8
  131. package/dist/src/web/nextui/_next/static/chunks/770-fdb322f705e07d72.js +0 -2
  132. package/dist/src/web/nextui/_next/static/chunks/887.b3cb35585a6859bd.js +0 -1
  133. package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-4c3e963c95f17d0d.js +0 -1
  134. package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-e5ee780ad914444b.js +0 -1
  135. package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-b661c8d02af86f57.js +0 -1
  136. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/not-found-07e0dc7d48d31372.js +0 -1
  137. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/page-4f99a1a3db60e001.js +0 -1
  138. package/dist/src/web/nextui/_next/static/chunks/app/eval/page-ff3a23e0e056a0cc.js +0 -1
  139. package/dist/src/web/nextui/_next/static/chunks/app/layout-844906ca58c0d644.js +0 -1
  140. package/dist/src/web/nextui/_next/static/chunks/app/page-4226f7bf0849864a.js +0 -1
  141. package/dist/src/web/nextui/_next/static/chunks/app/progress/page-5a4a4149e2361872.js +0 -1
  142. package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-c5878f6e2cbee318.js +0 -1
  143. package/dist/src/web/nextui/_next/static/chunks/app/setup/page-f75709dda664e392.js +0 -1
  144. package/dist/src/web/nextui/_next/static/chunks/b6261da7-08dd8cb380ab7859.js +0 -9
  145. package/dist/src/web/nextui/_next/static/chunks/framework-e023a0f436413246.js +0 -25
  146. package/dist/src/web/nextui/_next/static/chunks/main-a0f072bd67a01e59.js +0 -1
  147. package/dist/src/web/nextui/_next/static/chunks/main-app-9a21304a7d2c7cca.js +0 -1
  148. package/dist/src/web/nextui/_next/static/chunks/pages/_app-19a521e9841c5ed8.js +0 -1
  149. package/dist/src/web/nextui/_next/static/chunks/pages/_error-d23f5e48cbe51f4e.js +0 -1
  150. package/dist/src/web/nextui/_next/static/chunks/webpack-0a139c96915bebb5.js +0 -1
  151. /package/dist/src/web/nextui/_next/static/{T-Po7cKimMNTqoq7rCMq5 → 2jOnlz9DOwDLK-xyLaOBO}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[629],{9570:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=o(8166)},8873:function(e,t,o){o.d(t,{Z:function(){return es}});var r,a,n=o(4312),l=o(9042),i=o(4978),c=o(3468),s=o(6788),p=o(4837),u=e=>{let t=i.useRef({});return i.useEffect(()=>{t.current=e}),t.current},d=o(8557),g=o(5361);function f(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function m(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return -1}let v=function(e={}){let{ignoreAccents:t=!0,ignoreCase:o=!0,limit:r,matchFrom:a="any",stringify:n,trim:l=!1}=e;return(e,{inputValue:i,getOptionLabel:c})=>{let s=l?i.trim():i;o&&(s=s.toLowerCase()),t&&(s=f(s));let p=s?e.filter(e=>{let r=(n||c)(e);return o&&(r=r.toLowerCase()),t&&(r=f(r)),"start"===a?0===r.indexOf(s):r.indexOf(s)>-1}):e;return"number"==typeof r?p.slice(0,r):p}}(),h=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};var b=o(3982),y=o(3477),Z=o(7516),$=o(1608),x=o(9020),C=o(1427),k=o(5800),I=o(6213);function S(e){return(0,I.ZP)("MuiListSubheader",e)}(0,k.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var O=o(4004);let R=["className","color","component","disableGutters","disableSticky","inset"],P=e=>{let{classes:t,color:o,disableGutters:r,inset:a,disableSticky:n}=e,l={root:["root","default"!==o&&`color${(0,C.Z)(o)}`,!r&&"gutters",a&&"inset",!n&&"sticky"]};return(0,b.Z)(l,S,t)},w=(0,$.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,C.Z)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,l.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),L=i.forwardRef(function(e,t){let o=(0,x.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:p=!1,inset:u=!1}=o,d=(0,n.Z)(o,R),g=(0,l.Z)({},o,{color:a,component:i,disableGutters:s,disableSticky:p,inset:u}),f=P(g);return(0,O.jsx)(w,(0,l.Z)({as:i,className:(0,c.Z)(f.root,r),ref:t,ownerState:g},d))});L.muiSkipListHighlight=!0;var z=o(7803),M=o(7656),T=o(885),A=o(5643),N=o(4832),D=o(4636),F=o(2686),E=(0,o(7491).Z)((0,O.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),j=o(5959),V=o(8761);function W(e){return(0,I.ZP)("MuiAutocomplete",e)}let q=(0,k.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var H=o(1776);let B=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],U=["ref"],K=["key"],G=["key"],_=(0,V.U)("MuiAutocomplete"),J=e=>{let{classes:t,disablePortal:o,expanded:r,focused:a,fullWidth:n,hasClearIcon:l,hasPopupIcon:i,inputFocused:c,popupOpen:s,size:p}=e,u={root:["root",r&&"expanded",a&&"focused",n&&"fullWidth",l&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${(0,C.Z)(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,b.Z)(u,W,t)},Q=(0,$.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:n,inputFocused:l,size:i}=o;return[{[`& .${q.tag}`]:t.tag},{[`& .${q.tag}`]:t[`tagSize${(0,C.Z)(i)}`]},{[`& .${q.inputRoot}`]:t.inputRoot},{[`& .${q.input}`]:t.input},{[`& .${q.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,n&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`& .${q.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${q.inputRoot}`]:{[`.${q.hasPopupIcon}&, .${q.hasClearIcon}&`]:{paddingRight:30},[`.${q.hasPopupIcon}.${q.hasClearIcon}&`]:{paddingRight:56},[`& .${q.input}`]:{width:0,minWidth:30}},[`&.${q.focused}`]:{[`& .${q.clearIndicator}`]:{visibility:"visible"},[`& .${q.input}`]:{minWidth:0}},"@media (pointer: fine)":{[`&:hover .${q.clearIndicator}`]:{visibility:"visible"},[`&:hover .${q.input}`]:{minWidth:0}},[`& .${A.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${A.Z.root}.${N.Z.sizeSmall}`]:{[`& .${A.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${D.Z.root}`]:{padding:9,[`.${q.hasPopupIcon}&, .${q.hasClearIcon}&`]:{paddingRight:39},[`.${q.hasPopupIcon}.${q.hasClearIcon}&`]:{paddingRight:65},[`& .${q.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${q.endAdornment}`]:{right:9}},[`& .${D.Z.root}.${N.Z.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${q.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${F.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${q.hasPopupIcon}&, .${q.hasClearIcon}&`]:{paddingRight:39},[`.${q.hasPopupIcon}.${q.hasClearIcon}&`]:{paddingRight:65},[`& .${F.Z.input}`]:{padding:"7px 4px"},[`& .${q.endAdornment}`]:{right:9}},[`& .${F.Z.root}.${N.Z.sizeSmall}`]:{paddingBottom:1,[`& .${F.Z.input}`]:{padding:"2.5px 4px"}},[`& .${N.Z.hiddenLabel}`]:{paddingTop:8},[`& .${F.Z.root}.${N.Z.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${q.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${F.Z.root}.${N.Z.hiddenLabel}.${N.Z.sizeSmall}`]:{[`& .${q.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${q.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${q.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${q.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${q.inputRoot}`]:{flexWrap:"wrap"}}}]}),X=(0,$.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Y=(0,$.ZP)(M.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ee=(0,$.ZP)(M.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,l.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),et=(0,$.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${q.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),eo=(0,$.ZP)(z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,l.Z)({},e.typography.body1,{overflow:"auto"})),er=(0,$.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ea=(0,$.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),en=(0,$.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${q.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${q.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${q.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,y.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${q.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,y.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${q.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,y.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),el=(0,$.ZP)(L,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),ei=(0,$.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${q.option}`]:{paddingLeft:24}}),ec=i.forwardRef(function(e,t){var o,f,b,y;let $;let x=_({props:e,name:"MuiAutocomplete"}),{autoComplete:C=!1,autoHighlight:k=!1,autoSelect:I=!1,blurOnSelect:S=!1,ChipProps:R,className:P,clearIcon:w=r||(r=(0,O.jsx)(E,{fontSize:"small"})),clearOnBlur:L=!x.freeSolo,clearOnEscape:M=!1,clearText:A="Clear",closeText:N="Close",componentsProps:D={},defaultValue:F=x.multiple?[]:null,disableClearable:V=!1,disableCloseOnSelect:W=!1,disabled:q=!1,disabledItemsFocusable:ec=!1,disableListWrap:es=!1,disablePortal:ep=!1,filterSelectedOptions:eu=!1,forcePopupIcon:ed="auto",freeSolo:eg=!1,fullWidth:ef=!1,getLimitTagsText:em=e=>`+${e}`,getOptionLabel:ev,groupBy:eh,handleHomeEndKeys:eb=!x.freeSolo,includeInputInList:ey=!1,limitTags:eZ=-1,ListboxComponent:e$="ul",ListboxProps:ex,loading:eC=!1,loadingText:ek="Loading…",multiple:eI=!1,noOptionsText:eS="No options",openOnFocus:eO=!1,openText:eR="Open",PaperComponent:eP=z.Z,PopperComponent:ew=Z.Z,popupIcon:eL=a||(a=(0,O.jsx)(j.Z,{})),readOnly:ez=!1,renderGroup:eM,renderInput:eT,renderOption:eA,renderTags:eN,selectOnFocus:eD=!x.freeSolo,size:eF="medium",slotProps:eE={}}=x,ej=(0,n.Z)(x,B),{getRootProps:eV,getInputProps:eW,getInputLabelProps:eq,getPopupIndicatorProps:eH,getClearProps:eB,getTagProps:eU,getListboxProps:eK,getOptionProps:eG,value:e_,dirty:eJ,expanded:eQ,id:eX,popupOpen:eY,focused:e0,focusedTag:e1,anchorEl:e4,setAnchorEl:e2,inputValue:e7,groupedOptions:e6}=function(e){let{unstable_isActiveElementInListbox:t=h,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:n=!1,blurOnSelect:c=!1,clearOnBlur:f=!e.freeSolo,clearOnEscape:b=!1,componentName:y="useAutocomplete",defaultValue:Z=e.multiple?[]:null,disableClearable:$=!1,disableCloseOnSelect:x=!1,disabled:C,disabledItemsFocusable:k=!1,disableListWrap:I=!1,filterOptions:S=v,filterSelectedOptions:O=!1,freeSolo:R=!1,getOptionDisabled:P,getOptionKey:w,getOptionLabel:L=e=>{var t;return null!=(t=e.label)?t:e},groupBy:z,handleHomeEndKeys:M=!e.freeSolo,id:T,includeInputInList:A=!1,inputValue:N,isOptionEqualToValue:D=(e,t)=>e===t,multiple:F=!1,onChange:E,onClose:j,onHighlightChange:V,onInputChange:W,onOpen:q,open:H,openOnFocus:B=!1,options:U,readOnly:K=!1,selectOnFocus:G=!e.freeSolo,value:_}=e,J=(0,s.Z)(T),Q=L;Q=e=>{let t=L(e);return"string"!=typeof t?String(t):t};let X=i.useRef(!1),Y=i.useRef(!0),ee=i.useRef(null),et=i.useRef(null),[eo,er]=i.useState(null),[ea,en]=i.useState(-1),el=a?0:-1,ei=i.useRef(el),[ec,es]=(0,p.Z)({controlled:_,default:Z,name:y}),[ep,eu]=(0,p.Z)({controlled:N,default:"",name:y,state:"inputValue"}),[ed,eg]=i.useState(!1),ef=i.useCallback((e,t)=>{let o;let r=F?ec.length<t.length:null!==t;if(r||f){if(F)o="";else if(null==t)o="";else{let e=Q(t);o="string"==typeof e?e:""}ep!==o&&(eu(o),W&&W(e,o,"reset"))}},[Q,ep,F,W,eu,f,ec]),[em,ev]=(0,p.Z)({controlled:H,default:!1,name:y,state:"open"}),[eh,eb]=i.useState(!0),ey=!F&&null!=ec&&ep===Q(ec),eZ=em&&!K,e$=eZ?S(U.filter(e=>!(O&&(F?ec:[ec]).some(t=>null!==t&&D(e,t)))),{inputValue:ey&&eh?"":ep,getOptionLabel:Q}):[],ex=u({filteredOptions:e$,value:ec,inputValue:ep});i.useEffect(()=>{let e=ec!==ex.value;(!ed||e)&&(!R||e)&&ef(null,ec)},[ec,ef,ed,ex.value,R]);let eC=em&&e$.length>0&&!K,ek=(0,d.Z)(e=>{-1===e?ee.current.focus():eo.querySelector(`[data-tag-index="${e}"]`).focus()});i.useEffect(()=>{F&&ea>ec.length-1&&(en(-1),ek(-1))},[ec,F,ea,ek]);let eI=(0,d.Z)(({event:e,index:t,reason:r="auto"})=>{if(ei.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${J}-option-${t}`),V&&V(e,-1===t?null:e$[t],r),!et.current)return;let a=et.current.querySelector(`[role="option"].${o}-focused`);a&&(a.classList.remove(`${o}-focused`),a.classList.remove(`${o}-focusVisible`));let n=et.current;if("listbox"!==et.current.getAttribute("role")&&(n=et.current.parentElement.querySelector('[role="listbox"]')),!n)return;if(-1===t){n.scrollTop=0;return}let l=et.current.querySelector(`[data-option-index="${t}"]`);if(l&&(l.classList.add(`${o}-focused`),"keyboard"===r&&l.classList.add(`${o}-focusVisible`),n.scrollHeight>n.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=n.clientHeight+n.scrollTop,t=l.offsetTop+l.offsetHeight;t>e?n.scrollTop=t-n.clientHeight:l.offsetTop-l.offsetHeight*(z?1.3:0)<n.scrollTop&&(n.scrollTop=l.offsetTop-l.offsetHeight*(z?1.3:0))}}),eS=(0,d.Z)(({event:e,diff:t,direction:o="next",reason:a="auto"})=>{if(!eZ)return;let n=function(e,t){if(!et.current||e<0||e>=e$.length)return -1;let o=e;for(;;){let r=et.current.querySelector(`[data-option-index="${o}"]`),a=!k&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!a)return o;if((o="next"===t?(o+1)%e$.length:(o-1+e$.length)%e$.length)===e)return -1}}((()=>{let e=e$.length-1;if("reset"===t)return el;if("start"===t)return 0;if("end"===t)return e;let o=ei.current+t;return o<0?-1===o&&A?-1:I&&-1!==ei.current||Math.abs(t)>1?0:e:o>e?o===e+1&&A?-1:I||Math.abs(t)>1?e:0:o})(),o);if(eI({index:n,reason:a,event:e}),r&&"reset"!==t){if(-1===n)ee.current.value=ep;else{let e=Q(e$[n]);ee.current.value=e;let t=e.toLowerCase().indexOf(ep.toLowerCase());0===t&&ep.length>0&&ee.current.setSelectionRange(ep.length,e.length)}}}),eO=()=>{if(-1!==ei.current&&ex.filteredOptions&&ex.filteredOptions.length!==e$.length&&ex.inputValue===ep&&(F?ec.length===ex.value.length&&ex.value.every((e,t)=>Q(ec[t])===Q(e)):((e,t)=>{let o=e?Q(e):"",r=t?Q(t):"";return o===r})(ex.value,ec))){let e=ex.filteredOptions[ei.current];if(e)return m(e$,t=>Q(t)===Q(e))}return -1},eR=i.useCallback(()=>{if(!eZ)return;let e=eO();if(-1!==e){ei.current=e;return}let t=F?ec[0]:ec;if(0===e$.length||null==t){eS({diff:"reset"});return}if(et.current){if(null!=t){let e=e$[ei.current];if(F&&e&&-1!==m(ec,t=>D(e,t)))return;let o=m(e$,e=>D(e,t));-1===o?eS({diff:"reset"}):eI({index:o});return}if(ei.current>=e$.length-1){eI({index:e$.length-1});return}eI({index:ei.current})}},[e$.length,!F&&ec,O,eS,eI,eZ,ep,F]),eP=(0,d.Z)(e=>{(0,g.Z)(et,e),e&&eR()});i.useEffect(()=>{eR()},[eR]);let ew=e=>{!em&&(ev(!0),eb(!0),q&&q(e))},eL=(e,t)=>{em&&(ev(!1),j&&j(e,t))},ez=(e,t,o,r)=>{if(F){if(ec.length===t.length&&ec.every((e,o)=>e===t[o]))return}else if(ec===t)return;E&&E(e,t,o,r),es(t)},eM=i.useRef(!1),eT=(e,t,o="selectOption",r="options")=>{let a=o,n=t;if(F){n=Array.isArray(ec)?ec.slice():[];let e=m(n,e=>D(t,e));-1===e?n.push(t):"freeSolo"!==r&&(n.splice(e,1),a="removeOption")}ef(e,n),ez(e,n,a,{option:t}),x||e&&(e.ctrlKey||e.metaKey)||eL(e,a),(!0===c||"touch"===c&&eM.current||"mouse"===c&&!eM.current)&&ee.current.blur()},eA=(e,t)=>{if(!F)return;""===ep&&eL(e,"toggleInput");let o=ea;-1===ea?""===ep&&"previous"===t&&(o=ec.length-1):((o+="next"===t?1:-1)<0&&(o=0),o===ec.length&&(o=-1)),en(o=function(e,t){if(-1===e)return -1;let o=e;for(;;){if("next"===t&&o===ec.length||"previous"===t&&-1===o)return -1;let e=eo.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t)),ek(o)},eN=e=>{X.current=!0,eu(""),W&&W(e,"","clear"),ez(e,F?[]:null,"clear")},eD=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ea&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(en(-1),ek(-1)),229!==t.which))switch(t.key){case"Home":eZ&&M&&(t.preventDefault(),eS({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":eZ&&M&&(t.preventDefault(),eS({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eS({diff:-5,direction:"previous",reason:"keyboard",event:t}),ew(t);break;case"PageDown":t.preventDefault(),eS({diff:5,direction:"next",reason:"keyboard",event:t}),ew(t);break;case"ArrowDown":t.preventDefault(),eS({diff:1,direction:"next",reason:"keyboard",event:t}),ew(t);break;case"ArrowUp":t.preventDefault(),eS({diff:-1,direction:"previous",reason:"keyboard",event:t}),ew(t);break;case"ArrowLeft":eA(t,"previous");break;case"ArrowRight":eA(t,"next");break;case"Enter":if(-1!==ei.current&&eZ){let e=e$[ei.current],o=!!P&&P(e);if(t.preventDefault(),o)return;eT(t,e,"selectOption"),r&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else R&&""!==ep&&!1===ey&&(F&&t.preventDefault(),eT(t,ep,"createOption","freeSolo"));break;case"Escape":eZ?(t.preventDefault(),t.stopPropagation(),eL(t,"escape")):b&&(""!==ep||F&&ec.length>0)&&(t.preventDefault(),t.stopPropagation(),eN(t));break;case"Backspace":if(F&&!K&&""===ep&&ec.length>0){let e=-1===ea?ec.length-1:ea,o=ec.slice();o.splice(e,1),ez(t,o,"removeOption",{option:ec[e]})}break;case"Delete":if(F&&!K&&""===ep&&ec.length>0&&-1!==ea){let e=ec.slice();e.splice(ea,1),ez(t,e,"removeOption",{option:ec[ea]})}}},eF=e=>{eg(!0),B&&!X.current&&ew(e)},eE=e=>{if(t(et)){ee.current.focus();return}eg(!1),Y.current=!0,X.current=!1,n&&-1!==ei.current&&eZ?eT(e,e$[ei.current],"blur"):n&&R&&""!==ep?eT(e,ep,"blur","freeSolo"):f&&ef(e,ec),eL(e,"blur")},ej=e=>{let t=e.target.value;ep!==t&&(eu(t),eb(!1),W&&W(e,t,"input")),""===t?$||F||ez(e,null,"clear"):ew(e)},eV=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));ei.current!==t&&eI({event:e,index:t,reason:"mouse"})},eW=e=>{eI({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eM.current=!0},eq=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eT(e,e$[t],"selectOption"),eM.current=!1},eH=e=>t=>{let o=ec.slice();o.splice(e,1),ez(t,o,"removeOption",{option:ec[e]})},eB=e=>{em?eL(e,"toggleInput"):ew(e)},eU=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==J&&e.preventDefault()},eK=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),G&&Y.current&&ee.current.selectionEnd-ee.current.selectionStart==0&&ee.current.select(),Y.current=!1)},eG=e=>{C||""!==ep&&em||eB(e)},e_=R&&ep.length>0;e_=e_||(F?ec.length>0:null!==ec);let eJ=e$;return z&&(eJ=e$.reduce((e,t,o)=>{let r=z(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:o,index:o,group:r,options:[t]}),e},[])),C&&ed&&eE(),{getRootProps:(e={})=>(0,l.Z)({"aria-owns":eC?`${J}-listbox`:null},e,{onKeyDown:eD(e),onMouseDown:eU,onClick:eK}),getInputLabelProps:()=>({id:`${J}-label`,htmlFor:J}),getInputProps:()=>({id:J,value:ep,onBlur:eE,onFocus:eF,onChange:ej,onMouseDown:eG,"aria-activedescendant":eZ?"":null,"aria-autocomplete":r?"both":"list","aria-controls":eC?`${J}-listbox`:void 0,"aria-expanded":eC,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:C}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:eN}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eB}),getTagProps:({index:e})=>(0,l.Z)({key:e,"data-tag-index":e,tabIndex:-1},!K&&{onDelete:eH(e)}),getListboxProps:()=>({role:"listbox",id:`${J}-listbox`,"aria-labelledby":`${J}-label`,ref:eP,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var o;let r=(F?ec:[ec]).some(e=>null!=e&&D(t,e)),a=!!P&&P(t);return{key:null!=(o=null==w?void 0:w(t))?o:Q(t),tabIndex:-1,role:"option",id:`${J}-option-${e}`,onMouseMove:eV,onClick:eq,onTouchStart:eW,"data-option-index":e,"aria-disabled":a,"aria-selected":r}},id:J,inputValue:ep,value:ec,dirty:e_,expanded:eZ&&eo,popupOpen:eZ,focused:ed||-1!==ea,anchorEl:eo,setAnchorEl:er,focusedTag:ea,groupedOptions:eJ}}((0,l.Z)({},x,{componentName:"Autocomplete"})),e5=!V&&!q&&eJ&&!ez,e8=(!eg||!0===ed)&&!1!==ed,{onMouseDown:e9}=eW(),{ref:e3}=null!=ex?ex:{},te=eK(),{ref:tt}=te,to=(0,n.Z)(te,U),tr=(0,H.Z)(tt,e3),ta=ev||(e=>{var t;return null!=(t=e.label)?t:e}),tn=(0,l.Z)({},x,{disablePortal:ep,expanded:eQ,focused:e0,fullWidth:ef,getOptionLabel:ta,hasClearIcon:e5,hasPopupIcon:e8,inputFocused:-1===e1,popupOpen:eY,size:eF}),tl=J(tn);if(eI&&e_.length>0){let e=e=>(0,l.Z)({className:tl.tag,disabled:q},eU(e));$=eN?eN(e_,e,tn):e_.map((t,o)=>{let r=e({index:o}),{key:a}=r,i=(0,n.Z)(r,K);return(0,O.jsx)(T.Z,(0,l.Z)({label:ta(t),size:eF},i,R),a)})}if(eZ>-1&&Array.isArray($)){let e=$.length-eZ;!e0&&e>0&&($=$.splice(0,eZ)).push((0,O.jsx)("span",{className:tl.tag,children:em(e)},$.length))}let ti=eM||(e=>(0,O.jsxs)("li",{children:[(0,O.jsx)(el,{className:tl.groupLabel,ownerState:tn,component:"div",children:e.group}),(0,O.jsx)(ei,{className:tl.groupUl,ownerState:tn,children:e.children})]},e.key)),tc=eA||((e,t)=>{let{key:o}=e,r=(0,n.Z)(e,G);return(0,O.jsx)("li",(0,l.Z)({},r,{children:ta(t)}),o)}),ts=(e,t)=>{let o=eG({option:e,index:t});return tc((0,l.Z)({},o,{className:tl.option}),e,{selected:o["aria-selected"],index:t,inputValue:e7},tn)},tp=null!=(o=eE.clearIndicator)?o:D.clearIndicator,tu=null!=(f=eE.paper)?f:D.paper,td=null!=(b=eE.popper)?b:D.popper,tg=null!=(y=eE.popupIndicator)?y:D.popupIndicator,tf=e=>(0,O.jsx)(et,(0,l.Z)({as:ew,disablePortal:ep,style:{width:e4?e4.clientWidth:null},ownerState:tn,role:"presentation",anchorEl:e4,open:eY},td,{className:(0,c.Z)(tl.popper,null==td?void 0:td.className),children:(0,O.jsx)(eo,(0,l.Z)({ownerState:tn,as:eP},tu,{className:(0,c.Z)(tl.paper,null==tu?void 0:tu.className),children:e}))})),tm=null;return e6.length>0?tm=tf((0,O.jsx)(en,(0,l.Z)({as:e$,className:tl.listbox,ownerState:tn},to,ex,{ref:tr,children:e6.map((e,t)=>eh?ti({key:e.key,group:e.group,children:e.options.map((t,o)=>ts(t,e.index+o))}):ts(e,t))}))):eC&&0===e6.length?tm=tf((0,O.jsx)(er,{className:tl.loading,ownerState:tn,children:ek})):0!==e6.length||eg||eC||(tm=tf((0,O.jsx)(ea,{className:tl.noOptions,ownerState:tn,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:eS}))),(0,O.jsxs)(i.Fragment,{children:[(0,O.jsx)(Q,(0,l.Z)({ref:t,className:(0,c.Z)(tl.root,P),ownerState:tn},eV(ej),{children:eT({id:eX,disabled:q,fullWidth:!0,size:"small"===eF?"small":void 0,InputLabelProps:eq(),InputProps:(0,l.Z)({ref:e2,className:tl.inputRoot,startAdornment:$,onClick:e=>{e.target===e.currentTarget&&e9(e)}},(e5||e8)&&{endAdornment:(0,O.jsxs)(X,{className:tl.endAdornment,ownerState:tn,children:[e5?(0,O.jsx)(Y,(0,l.Z)({},eB(),{"aria-label":A,title:A,ownerState:tn},tp,{className:(0,c.Z)(tl.clearIndicator,null==tp?void 0:tp.className),children:w})):null,e8?(0,O.jsx)(ee,(0,l.Z)({},eH(),{disabled:q,"aria-label":eY?N:eR,title:eY?N:eR,ownerState:tn},tg,{className:(0,c.Z)(tl.popupIndicator,null==tg?void 0:tg.className),children:eL})):null]})}),inputProps:(0,l.Z)({className:tl.input,disabled:q,readOnly:ez},eW())})})),e4?tm:null]})});var es=ec},885:function(e,t,o){o.d(t,{Z:function(){return O}});var r=o(4312),a=o(9042),n=o(4978),l=o(3468),i=o(3982),c=o(3477),s=o(7491),p=o(4004),u=(0,s.Z)((0,p.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=o(1776),g=o(1427),f=o(151),m=o(9020),v=o(1608),h=o(5800),b=o(6213);function y(e){return(0,b.ZP)("MuiChip",e)}let Z=(0,h.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),$=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],x=e=>{let{classes:t,disabled:o,size:r,color:a,iconColor:n,onDelete:l,clickable:c,variant:s}=e,p={root:["root",s,o&&"disabled",`size${(0,g.Z)(r)}`,`color${(0,g.Z)(a)}`,c&&"clickable",c&&`clickableColor${(0,g.Z)(a)}`,l&&"deletable",l&&`deletableColor${(0,g.Z)(a)}`,`${s}${(0,g.Z)(a)}`],label:["label",`label${(0,g.Z)(r)}`],avatar:["avatar",`avatar${(0,g.Z)(r)}`,`avatarColor${(0,g.Z)(a)}`],icon:["icon",`icon${(0,g.Z)(r)}`,`iconColor${(0,g.Z)(n)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,g.Z)(r)}`,`deleteIconColor${(0,g.Z)(a)}`,`deleteIcon${(0,g.Z)(s)}Color${(0,g.Z)(a)}`]};return(0,i.Z)(p,y,t)},C=(0,v.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e,{color:r,iconColor:a,clickable:n,onDelete:l,size:i,variant:c}=o;return[{[`& .${Z.avatar}`]:t.avatar},{[`& .${Z.avatar}`]:t[`avatar${(0,g.Z)(i)}`]},{[`& .${Z.avatar}`]:t[`avatarColor${(0,g.Z)(r)}`]},{[`& .${Z.icon}`]:t.icon},{[`& .${Z.icon}`]:t[`icon${(0,g.Z)(i)}`]},{[`& .${Z.icon}`]:t[`iconColor${(0,g.Z)(a)}`]},{[`& .${Z.deleteIcon}`]:t.deleteIcon},{[`& .${Z.deleteIcon}`]:t[`deleteIcon${(0,g.Z)(i)}`]},{[`& .${Z.deleteIcon}`]:t[`deleteIconColor${(0,g.Z)(r)}`]},{[`& .${Z.deleteIcon}`]:t[`deleteIcon${(0,g.Z)(c)}Color${(0,g.Z)(r)}`]},t.root,t[`size${(0,g.Z)(i)}`],t[`color${(0,g.Z)(r)}`],n&&t.clickable,n&&"default"!==r&&t[`clickableColor${(0,g.Z)(r)})`],l&&t.deletable,l&&"default"!==r&&t[`deletableColor${(0,g.Z)(r)}`],t[c],t[`${c}${(0,g.Z)(r)}`]]}})(({theme:e,ownerState:t})=>{let o="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,a.Z)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Z.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:o,fontSize:e.typography.pxToRem(12)},[`& .${Z.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Z.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Z.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Z.icon}`]:(0,a.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,a.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:o},"default"!==t.color&&{color:"inherit"})),[`& .${Z.deleteIcon}`]:(0,a.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,c.Fq)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,c.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,c.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,c.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>(0,a.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,c.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,c.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>(0,a.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Z.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Z.avatar}`]:{marginLeft:4},[`& .${Z.avatarSmall}`]:{marginLeft:2},[`& .${Z.icon}`]:{marginLeft:4},[`& .${Z.iconSmall}`]:{marginLeft:2},[`& .${Z.deleteIcon}`]:{marginRight:5},[`& .${Z.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,c.Fq)(e.palette[t.color].main,.7)}`,[`&.${Z.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,c.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Z.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,c.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),k=(0,v.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:o}=e,{size:r}=o;return[t.label,t[`label${(0,g.Z)(r)}`]]}})(({ownerState:e})=>(0,a.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function I(e){return"Backspace"===e.key||"Delete"===e.key}let S=n.forwardRef(function(e,t){let o=(0,m.Z)({props:e,name:"MuiChip"}),{avatar:i,className:c,clickable:s,color:g="default",component:v,deleteIcon:h,disabled:b=!1,icon:y,label:Z,onClick:S,onDelete:O,onKeyDown:R,onKeyUp:P,size:w="medium",variant:L="filled",tabIndex:z,skipFocusWhenDisabled:M=!1}=o,T=(0,r.Z)(o,$),A=n.useRef(null),N=(0,d.Z)(A,t),D=e=>{e.stopPropagation(),O&&O(e)},F=!1!==s&&!!S||s,E=F||O?f.Z:v||"div",j=(0,a.Z)({},o,{component:E,disabled:b,size:w,color:g,iconColor:n.isValidElement(y)&&y.props.color||g,onDelete:!!O,clickable:F,variant:L}),V=x(j),W=E===f.Z?(0,a.Z)({component:v||"div",focusVisibleClassName:V.focusVisible},O&&{disableRipple:!0}):{},q=null;O&&(q=h&&n.isValidElement(h)?n.cloneElement(h,{className:(0,l.Z)(h.props.className,V.deleteIcon),onClick:D}):(0,p.jsx)(u,{className:(0,l.Z)(V.deleteIcon),onClick:D}));let H=null;i&&n.isValidElement(i)&&(H=n.cloneElement(i,{className:(0,l.Z)(V.avatar,i.props.className)}));let B=null;return y&&n.isValidElement(y)&&(B=n.cloneElement(y,{className:(0,l.Z)(V.icon,y.props.className)})),(0,p.jsxs)(C,(0,a.Z)({as:E,className:(0,l.Z)(V.root,c),disabled:!!F&&!!b||void 0,onClick:S,onKeyDown:e=>{e.currentTarget===e.target&&I(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&I(e)?O(e):"Escape"===e.key&&A.current&&A.current.blur()),P&&P(e)},ref:N,tabIndex:M&&b?-1:z,ownerState:j},W,T,{children:[H||B,(0,p.jsx)(k,{className:(0,l.Z)(V.label),ownerState:j,children:Z}),q]}))});var O=S},7656:function(e,t,o){o.d(t,{Z:function(){return x}});var r=o(4312),a=o(9042),n=o(4978),l=o(3468),i=o(3982),c=o(3477),s=o(1608),p=o(9020),u=o(151),d=o(1427),g=o(5800),f=o(6213);function m(e){return(0,f.ZP)("MuiIconButton",e)}let v=(0,g.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var h=o(4004);let b=["edge","children","className","color","disabled","disableFocusRipple","size"],y=e=>{let{classes:t,disabled:o,color:r,edge:a,size:n}=e,l={root:["root",o&&"disabled","default"!==r&&`color${(0,d.Z)(r)}`,a&&`edge${(0,d.Z)(a)}`,`size${(0,d.Z)(n)}`]};return(0,i.Z)(l,m,t)},Z=(0,s.ZP)(u.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,d.Z)(o.color)}`],o.edge&&t[`edge${(0,d.Z)(o.edge)}`],t[`size${(0,d.Z)(o.size)}`]]}})(({theme:e,ownerState:t})=>(0,a.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var o;let r=null==(o=(e.vars||e).palette)?void 0:o[t.color];return(0,a.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,a.Z)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,a.Z)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.Fq)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${v.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$=n.forwardRef(function(e,t){let o=(0,p.Z)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:i,className:c,color:s="default",disabled:u=!1,disableFocusRipple:d=!1,size:g="medium"}=o,f=(0,r.Z)(o,b),m=(0,a.Z)({},o,{edge:n,color:s,disabled:u,disableFocusRipple:d,size:g}),v=y(m);return(0,h.jsx)(Z,(0,a.Z)({className:(0,l.Z)(v.root,c),centerRipple:!0,focusRipple:!d,disabled:u,ref:t},f,{ownerState:m,children:i}))});var x=$},8166:function(e,t,o){o.r(t),o.d(t,{capitalize:function(){return a.Z},createChainedFunction:function(){return n},createSvgIcon:function(){return l.Z},debounce:function(){return i.Z},deprecatedPropType:function(){return c},isMuiElement:function(){return s.Z},ownerDocument:function(){return p.Z},ownerWindow:function(){return u.Z},requirePropFactory:function(){return d},setRef:function(){return g},unstable_ClassNameGenerator:function(){return $},unstable_useEnhancedEffect:function(){return f.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return v},useControlled:function(){return h.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return Z.Z}});var r=o(4872),a=o(1427),n=o(9737).Z,l=o(7491),i=o(6229),c=function(e,t){return()=>null},s=o(9261),p=o(2302),u=o(1729);o(9042);var d=function(e,t){return()=>null},g=o(5361).Z,f=o(6656),m=o(8404),v=function(e,t,o,r,a){return null},h=o(8681),b=o(1405),y=o(1776),Z=o(4988);let $={configure:e=>{r.Z.configure(e)}}},8761:function(e,t,o){o.d(t,{U:function(){return a}});var r=o(9020);function a(e){return r.Z}}}]);
@@ -1,6 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[631],{8391:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=s(t),f=o[0],u=o[1],h=new i((f+u)*3/4-u),l=0,a=u>0?f-4:f;for(r=0;r<a;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],h[l++]=e>>16&255,h[l++]=e>>8&255,h[l++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[l++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[l++]=e>>8&255,h[l++]=255&e),h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],f=0,u=n-i;f<u;f+=16383)o.push(function(t,e,n){for(var i,o=[],f=e;f<n;f+=3)o.push(r[(i=(t[f]<<16&16711680)+(t[f+1]<<8&65280)+(255&t[f+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,f,f+16383>u?u:f+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=o.length;f<u;++f)r[f]=o[f],n[o.charCodeAt(f)]=f;function s(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},631:function(t,e,r){"use strict";/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */let n=r(8391),i=r(745),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!u.isEncoding(e))throw TypeError("Unknown encoding: "+e);let r=0|y(t,e),n=f(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(k(t,Uint8Array)){let e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return a(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);let i=function(t){var e;if(u.isBuffer(t)){let e=0|c(t.length),r=f(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?f(0):a(t):"Buffer"===t.type&&Array.isArray(t.data)?a(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return h(t),f(t<0?0:0|c(t))}function a(t){let e=t.length<0?0:0|c(t.length),r=f(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),u.prototype),n}function c(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(i)return n?-1:x(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=P[t[n]];return i}(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":var o,f;return o=e,f=r,0===o&&f===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}(this,e,r);default:if(i)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function d(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){let o,f=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;f=2,u/=2,s/=2,r/=2}function h(t,e){return 1===f?t[e]:t.readUInt16BE(e*f)}if(i){let n=-1;for(o=r;o<u;o++)if(h(t,o)===h(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===s)return n*f}else -1!==n&&(o-=o-n),n=-1}else for(r+s>u&&(r=u-s),o=r;o>=0;o--){let r=!0;for(let n=0;n<s;n++)if(h(t,o+n)!==h(e,n)){r=!1;break}if(r)return o}return -1}function B(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let e=t[i],o=null,f=e>239?4:e>223?3:e>191?2:1;if(i+f<=r){let r,n,u,s;switch(f){case 1:e<128&&(o=e);break;case 2:(192&(r=t[i+1]))==128&&(s=(31&e)<<6|63&r)>127&&(o=s);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(s=(15&e)<<12|(63&r)<<6|63&n)>2047&&(s<55296||s>57343)&&(o=s);break;case 4:r=t[i+1],n=t[i+2],u=t[i+3],(192&r)==128&&(192&n)==128&&(192&u)==128&&(s=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&u)>65535&&s<1114112&&(o=s)}}null===o?(o=65533,f=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=f}return function(t){let e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function E(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function m(t,e,r,n,i,o){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function A(t,e,r,n,i){_(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let f=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,r}function I(t,e,r,n,i){_(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let f=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=f,f>>=8,t[r+2]=f,f>>=8,t[r+1]=f,f>>=8,t[r]=f,r+8}function U(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function v(t,e,r,n,o){return e=+e,r>>>=0,o||U(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function R(t,e,r,n,o){return e=+e,r>>>=0,o||U(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.lW=u,e.h2=50,u.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return s(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return(h(t),t<=0)?f(t):void 0!==e?"string"==typeof r?f(t).fill(e,r):f(t).fill(e):f(t)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(k(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),k(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){let e=t[r];if(k(e,Uint8Array))i+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(u.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)d(this,e,e+1);return this},u.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},u.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},u.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?B(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(k(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,f=r-e,s=Math.min(o,f),h=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<s;++t)if(h[t]!==l[t]){o=h[t],f=l[t];break}return o<f?-1:f<o?1:0},u.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){var i,o,f,u,s,h,l,a;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let c=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let f=e.length;for(n>f/2&&(n=f/2),i=0;i<n;++i){let n=parseInt(e.substr(2*i,2),16);if(n!=n)break;t[r+i]=n}return i}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,M(x(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return f=e,u=r,M(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,f,u);case"base64":return s=e,h=r,M(N(t),this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,a=r,M(function(t,e){let r,n;let i=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,a);default:if(c)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=j(function(t){S(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&C(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+16777216*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=j(function(t){S(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&C(t,this.length-8);let n=16777216*e+65536*this[++t]+256*this[++t]+this[++t],i=16777216*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return(t>>>=0,e||E(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=j(function(t){S(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&C(t,this.length-8);let n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+16777216*this[++t])}),u.prototype.readBigInt64BE=j(function(t){S(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&C(t,this.length-8);let n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(16777216*this[++t]+65536*this[++t]+256*this[++t]+r)}),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;m(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;m(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=j(function(t,e=0){return A(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=j(function(t,e=0){return I(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);m(this,t,e,r,n-1,-n)}let i=0,o=1,f=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===f&&0!==this[e+i-1]&&(f=1),this[e+i]=(t/o>>0)-f&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);m(this,t,e,r,n-1,-n)}let i=r-1,o=1,f=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===f&&0!==this[e+i+1]&&(f=1),this[e+i]=(t/o>>0)-f&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=j(function(t,e=0){return A(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=j(function(t,e=0){return I(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,e,r){return v(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return v(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);let i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){let i;if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{let o=u.isBuffer(t)?t:u.from(t,n),f=o.length;if(0===f)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%f]}return this};let O={};function T(t,e,r){O[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function L(t){let e="",r=t.length,n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function _(t,e,r,n,i,o){if(t>r||t<e){let n;let i="bigint"==typeof e?"n":"";throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new O.ERR_OUT_OF_RANGE("value",n,t)}S(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&C(i,n.length-(o+1))}function S(t,e){if("number"!=typeof t)throw new O.ERR_INVALID_ARG_TYPE(e,"number",t)}function C(t,e,r){if(Math.floor(t)!==t)throw S(t,r),new O.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new O.ERR_BUFFER_OUT_OF_BOUNDS;throw new O.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),T("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=L(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=L(i)),i+="n"),n+=` It must be ${e}. Received ${i}`},RangeError);let $=/[^+/0-9A-Za-z-_]/g;function x(t,e){let r;e=e||1/0;let n=t.length,i=null,o=[];for(let f=0;f<n;++f){if((r=t.charCodeAt(f))>55295&&r<57344){if(!i){if(r>56319||f+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function N(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace($,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function M(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function k(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let P=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function j(t){return"undefined"==typeof BigInt?F:t}function F(){throw Error("BigInt not supported")}},745:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,r,n,i){var o,f,u=8*i-n-1,s=(1<<u)-1,h=s>>1,l=-7,a=r?i-1:0,p=r?-1:1,c=t[e+a];for(a+=p,o=c&(1<<-l)-1,c>>=-l,l+=u;l>0;o=256*o+t[e+a],a+=p,l-=8);for(f=o&(1<<-l)-1,o>>=-l,l+=n;l>0;f=256*f+t[e+a],a+=p,l-=8);if(0===o)o=1-h;else{if(o===s)return f?NaN:(c?-1:1)*(1/0);f+=Math.pow(2,n),o-=h}return(c?-1:1)*f*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var f,u,s,h=8*o-i-1,l=(1<<h)-1,a=l>>1,p=23===i?5960464477539062e-23:0,c=n?0:o-1,y=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(u=isNaN(e)?1:0,f=l):(f=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+a>=1?e+=p/s:e+=p*Math.pow(2,1-a),e*s>=2&&(f++,s/=2),f+a>=l?(u=0,f=l):f+a>=1?(u=(e*s-1)*Math.pow(2,i),f+=a):(u=e*Math.pow(2,a-1)*Math.pow(2,i),f=0));i>=8;t[r+c]=255&u,c+=y,u/=256,i-=8);for(f=f<<i|u,h+=i;h>0;t[r+c]=255&f,c+=y,f/=256,h-=8);t[r+c-y]|=128*g}}}]);