"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2865],{16592:function(t,e,r){var n=r(67294),o=r(35407),a=r(85893);let i=!1,c=()=>{i||(console.warn("MUI: The PaginationItem component was moved from the lab to the core.\n\nYou should use `import { PaginationItem } from '@mui/material'`\nor `import PaginationItem from '@mui/material/PaginationItem'`"),i=!0)};e.Z=n.forwardRef(function(t,e){return c(),(0,a.jsx)(o.Z,{ref:e,...t})})},66568:function(t,e,r){var n=r(67294),o=r(58788),a=r(45670),i=r(85893);let c=n.forwardRef(function(t,e){let{children:r,...c}=t,l=(0,a._i)();if(null===l)throw TypeError("No TabContext provided");let s=n.Children.map(r,t=>n.isValidElement(t)?n.cloneElement(t,{"aria-controls":(0,a.uU)(l,t.props.value),id:(0,a.pQ)(l,t.props.value)}):null);return(0,i.jsx)(o.Z,{...c,ref:e,value:l.value,children:s})});e.Z=c},73837:function(t,e,r){var n=r(30139),o=r(85893);e.Z=(0,n.Z)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},15821:function(t,e,r){var n=r(30139),o=r(85893);e.Z=(0,n.Z)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},7460:function(t,e,r){var n=r(30139),o=r(85893);e.Z=(0,n.Z)((0,o.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7zm-4 6h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"ListOutlined")},1136:function(t,e,r){var n=r(30139),o=r(85893);e.Z=(0,n.Z)((0,o.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M10 5.47l4 1.4v11.66l-4-1.4zm-5 .99 3-1.01v11.7l-3 1.16zm14 11.08-3 1.01V6.86l3-1.16z"}),"MapOutlined")},90829:function(t,e,r){var n=r(30139),o=r(85893);e.Z=(0,n.Z)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},10980:function(t,e,r){r.d(e,{d:function(){return d}});var n=r(67294),o=r(33703),a=r(59948),i=r(82690),c=r(57907),l=r(85893);function s(t){return t.substring(2).toLowerCase()}function d(t){let{children:e,disableReactTree:r=!1,mouseEvent:d="onClick",onClickAway:u,touchEvent:p="onTouchEnd"}=t,f=n.useRef(!1),m=n.useRef(null),h=n.useRef(!1),v=n.useRef(!1);n.useEffect(()=>(setTimeout(()=>{h.current=!0},0),()=>{h.current=!1}),[]);let g=(0,o.Z)((0,c.Z)(e),m),b=(0,a.Z)(t=>{let e=v.current;v.current=!1;let n=(0,i.Z)(m.current);if(h.current&&m.current&&(!("clientX"in t)||!(n.documentElement.clientWidth<t.clientX)&&!(n.documentElement.clientHeight<t.clientY))){if(f.current){f.current=!1;return}(t.composedPath?t.composedPath().includes(m.current):!n.documentElement.contains(t.target)||m.current.contains(t.target))||!r&&e||u(t)}}),y=t=>r=>{v.current=!0;let n=e.props[t];n&&n(r)},Z={ref:g};return!1!==p&&(Z[p]=y(p)),n.useEffect(()=>{if(!1!==p){let t=s(p),e=(0,i.Z)(m.current),r=()=>{f.current=!0};return e.addEventListener(t,b),e.addEventListener("touchmove",r),()=>{e.removeEventListener(t,b),e.removeEventListener("touchmove",r)}}},[b,p]),!1!==d&&(Z[d]=y(d)),n.useEffect(()=>{if(!1!==d){let t=s(d),e=(0,i.Z)(m.current);return e.addEventListener(t,b),()=>{e.removeEventListener(t,b)}}},[b,d]),(0,l.jsx)(n.Fragment,{children:n.cloneElement(e,Z)})}},37958:function(t,e,r){r.d(e,{ZP:function(){return O}});var n=r(67294),o=r(90512),a=r(94780),i=r(82056),c=r(93535),l=r(98885),s=r(57907),d=r(27876),u=r(7491),p=r(18745),f=r(93232),m=r(51520),h=r(85893);function v(t,e,r){let n=function(t,e,r){let n;let o=e.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,m.Z)(e);if(e.fakeTransform)n=e.fakeTransform;else{let t=i.getComputedStyle(e);n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform")}let c=0,l=0;if(n&&"none"!==n&&"string"==typeof n){let t=n.split("(")[1].split(")")[0].split(",");c=parseInt(t[4],10),l=parseInt(t[5],10)}return"left"===t?a?"translateX(".concat(a.right+c-o.left,"px)"):"translateX(".concat(i.innerWidth+c-o.left,"px)"):"right"===t?a?"translateX(-".concat(o.right-a.left-c,"px)"):"translateX(-".concat(o.left+o.width-c,"px)"):"up"===t?a?"translateY(".concat(a.bottom+l-o.top,"px)"):"translateY(".concat(i.innerHeight+l-o.top,"px)"):a?"translateY(-".concat(o.top-a.top+o.height-l,"px)"):"translateY(-".concat(o.top+o.height-l,"px)")}(t,e,"function"==typeof r?r():r);n&&(e.style.webkitTransform=n,e.style.transform=n)}let g=n.forwardRef(function(t,e){let r=(0,p.Z)(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:c=!0,children:g,container:b,direction:y="down",easing:Z=o,in:x,onEnter:k,onEntered:w,onEntering:B,onExit:R,onExited:z,onExiting:C,style:E,timeout:T=a,TransitionComponent:L=l.ZP,...M}=t,P=n.useRef(null),O=(0,u.Z)((0,s.Z)(g),P,e),_=t=>e=>{t&&(void 0===e?t(P.current):t(P.current,e))},j=_((t,e)=>{v(y,t,b),(0,f.n)(t),k&&k(t,e)}),H=_((t,e)=>{let n=(0,f.C)({timeout:T,style:E,easing:Z},{mode:"enter"});t.style.webkitTransition=r.transitions.create("-webkit-transform",{...n}),t.style.transition=r.transitions.create("transform",{...n}),t.style.webkitTransform="none",t.style.transform="none",B&&B(t,e)}),S=_(w),D=_(C),V=_(t=>{let e=(0,f.C)({timeout:T,style:E,easing:Z},{mode:"exit"});t.style.webkitTransition=r.transitions.create("-webkit-transform",e),t.style.transition=r.transitions.create("transform",e),v(y,t,b),R&&R(t)}),A=_(t=>{t.style.webkitTransition="",t.style.transition="",z&&z(t)}),N=n.useCallback(()=>{P.current&&v(y,P.current,b)},[y,b]);return n.useEffect(()=>{if(x||"down"===y||"right"===y)return;let t=(0,d.Z)(()=>{P.current&&v(y,P.current,b)}),e=(0,m.Z)(P.current);return e.addEventListener("resize",t),()=>{t.clear(),e.removeEventListener("resize",t)}},[y,x,b]),n.useEffect(()=>{x||N()},[x,N]),(0,h.jsx)(L,{nodeRef:P,onEnter:j,onEntered:S,onEntering:H,onExit:V,onExited:A,onExiting:D,addEndListener:t=>{i&&i(P.current,t)},appear:c,in:x,timeout:T,...M,children:(t,e)=>n.cloneElement(g,{ref:O,style:{visibility:"exited"!==t||x?void 0:"hidden",...E,...g.props.style},...e})})});var b=r(31754),y=r(66643),Z=r(83008),x=r(77527),k=r(2807),w=r(44001),B=r(1588),R=r(27621);function z(t){return(0,R.ZP)("MuiDrawer",t)}(0,B.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let C=(t,e)=>{let{ownerState:r}=t;return[e.root,("permanent"===r.variant||"persistent"===r.variant)&&e.docked,e.modal]},E=t=>{let{classes:e,anchor:r,variant:n}=t,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,y.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,y.Z)(r))]};return(0,a.Z)(o,z,e)},T=(0,x.ZP)(c.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:C})((0,k.Z)(t=>{let{theme:e}=t;return{zIndex:(e.vars||e).zIndex.drawer}})),L=(0,x.ZP)("div",{shouldForwardProp:Z.Z,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:C})({flex:"0 0 auto"}),M=(0,x.ZP)(b.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.paper,e["paperAnchor".concat((0,y.Z)(r.anchor))],"temporary"!==r.variant&&e["paperAnchorDocked".concat((0,y.Z)(r.anchor))]]}})((0,k.Z)(t=>{let{theme:e}=t;return{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:t=>{let{ownerState:e}=t;return"left"===e.anchor&&"temporary"!==e.variant},style:{borderRight:"1px solid ".concat((e.vars||e).palette.divider)}},{props:t=>{let{ownerState:e}=t;return"top"===e.anchor&&"temporary"!==e.variant},style:{borderBottom:"1px solid ".concat((e.vars||e).palette.divider)}},{props:t=>{let{ownerState:e}=t;return"right"===e.anchor&&"temporary"!==e.variant},style:{borderLeft:"1px solid ".concat((e.vars||e).palette.divider)}},{props:t=>{let{ownerState:e}=t;return"bottom"===e.anchor&&"temporary"!==e.variant},style:{borderTop:"1px solid ".concat((e.vars||e).palette.divider)}}]}})),P={left:"right",right:"left",top:"down",bottom:"up"};var O=n.forwardRef(function(t,e){let r=(0,w.i)({props:t,name:"MuiDrawer"}),a=(0,p.Z)(),c=(0,i.V)(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:d,children:u,className:f,elevation:m=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:b,...y}={},onClose:Z,open:x=!1,PaperProps:k={},SlideProps:B,TransitionComponent:R=g,transitionDuration:z=l,variant:C="temporary",...O}=r,_=n.useRef(!1);n.useEffect(()=>{_.current=!0},[]);let j=function(t,e){let{direction:r}=t;return"rtl"===r&&["left","right"].includes(e)?P[e]:e}({direction:c?"rtl":"ltr"},s),H={...r,anchor:s,elevation:m,open:x,variant:C,...O},S=E(H),D=(0,h.jsx)(M,{elevation:"temporary"===C?m:0,square:!0,...k,className:(0,o.Z)(S.paper,k.className),ownerState:H,children:u});if("permanent"===C)return(0,h.jsx)(L,{className:(0,o.Z)(S.root,S.docked,f),ownerState:H,ref:e,...O,children:D});let V=(0,h.jsx)(R,{in:x,direction:P[j],timeout:z,appear:_.current,...B,children:D});return"persistent"===C?(0,h.jsx)(L,{className:(0,o.Z)(S.root,S.docked,f),ownerState:H,ref:e,...O,children:V}):(0,h.jsx)(T,{BackdropProps:{...d,...b,transitionDuration:z},className:(0,o.Z)(S.root,S.modal,f),open:x,ownerState:H,onClose:Z,hideBackdrop:v,ref:e,...O,...y,children:V})})},77575:function(t,e,r){r.d(e,{Z:function(){return Z}});var n=r(67294),o=r(90512),a=r(35971),i=r(94780),c=r(51171),l=r(97427),s=r(66643),d=r(77527),u=r(2807),p=r(95369),f=r(44001),m=r(91242),h=r(72357),v=r(60296),g=r(85893);let b=t=>{let{classes:e,fullWidth:r,selected:n,disabled:o,size:a,color:c}=t,l={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth","size".concat((0,s.Z)(a)),c]};return(0,i.Z)(l,m.a,e)},y=(0,d.ZP)(l.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e["size".concat((0,s.Z)(r.size))]]}})((0,u.Z)(t=>{let{theme:e}=t;return{...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:"1px solid ".concat((e.vars||e).palette.divider),color:(e.vars||e).palette.action.active,["&.".concat(m.Z.disabled)]:{color:(e.vars||e).palette.action.disabled,border:"1px solid ".concat((e.vars||e).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:e.vars?"rgba(".concat(e.vars.palette.text.primaryChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{["&.".concat(m.Z.selected)]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?"rgba(".concat(e.vars.palette.text.primaryChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.text.primaryChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.text.primaryChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter((0,p.Z)()).map(t=>{let[r]=t;return{props:{color:r},style:{["&.".concat(m.Z.selected)]:{color:(e.vars||e).palette[r].main,backgroundColor:e.vars?"rgba(".concat(e.vars.palette[r].mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette[r].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[r].mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(e.palette[r].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[r].mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette[r].main,e.palette.action.selectedOpacity)}}}}}}),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}}));var Z=n.forwardRef(function(t,e){var r;let{value:i,...c}=n.useContext(h.Z),l=n.useContext(v.Z),s=(0,a.Z)({...c,selected:(r=t.value,void 0!==i&&void 0!==r&&(Array.isArray(i)?i.includes(r):r===i))},t),d=(0,f.i)({props:s,name:"MuiToggleButton"}),{children:u,className:p,color:m="standard",disabled:Z=!1,disableFocusRipple:x=!1,fullWidth:k=!1,onChange:w,onClick:B,selected:R,size:z="medium",value:C,...E}=d,T={...d,color:m,disabled:Z,disableFocusRipple:x,fullWidth:k,size:z},L=b(T);return(0,g.jsx)(y,{className:(0,o.Z)(c.className,L.root,p,l||""),disabled:Z,focusRipple:!x,ref:e,onClick:t=>{B&&(B(t,C),t.defaultPrevented)||!w||w(t,C)},onChange:w,value:C,ownerState:T,"aria-pressed":R,...E,children:u})})},91242:function(t,e,r){r.d(e,{a:function(){return a}});var n=r(1588),o=r(27621);function a(t){return(0,o.ZP)("MuiToggleButton",t)}let i=(0,n.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);e.Z=i},72958:function(t,e,r){r.d(e,{Z:function(){return Z}});var n=r(67294);r(59864);var o=r(90512),a=r(94780),i=r(77527),c=r(2807),l=r(44001),s=r(66643),d=r(1588),u=r(27621);function p(t){return(0,u.ZP)("MuiToggleButtonGroup",t)}let f=(0,d.Z)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var m=r(72357),h=r(60296),v=r(91242),g=r(85893);let b=t=>{let{classes:e,orientation:r,fullWidth:n,disabled:o}=t,i={root:["root",r,n&&"fullWidth"],grouped:["grouped","grouped".concat((0,s.Z)(r)),o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,a.Z)(i,p,e)},y=(0,i.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[{["& .".concat(f.grouped)]:e.grouped},{["& .".concat(f.grouped)]:e["grouped".concat((0,s.Z)(r.orientation))]},{["& .".concat(f.firstButton)]:e.firstButton},{["& .".concat(f.lastButton)]:e.lastButton},{["& .".concat(f.middleButton)]:e.middleButton},e.root,"vertical"===r.orientation&&e.vertical,r.fullWidth&&e.fullWidth]}})((0,c.Z)(t=>{let{theme:e}=t;return{display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",["& .".concat(f.grouped)]:{["&.".concat(f.selected," + .").concat(f.grouped,".").concat(f.selected)]:{borderTop:0,marginTop:0}},["& .".concat(f.firstButton,",& .").concat(f.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(f.lastButton,",& .").concat(f.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},["& .".concat(f.lastButton,".").concat(v.Z.disabled,",& .").concat(f.middleButton,".").concat(v.Z.disabled)]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{["& .".concat(f.grouped)]:{["&.".concat(f.selected," + .").concat(f.grouped,".").concat(f.selected)]:{borderLeft:0,marginLeft:0}},["& .".concat(f.firstButton,",& .").concat(f.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(f.lastButton,",& .").concat(f.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},["& .".concat(f.lastButton,".").concat(v.Z.disabled,",& .").concat(f.middleButton,".").concat(v.Z.disabled)]:{borderLeft:"1px solid transparent"}}}]}}));var Z=n.forwardRef(function(t,e){let r=(0,l.i)({props:t,name:"MuiToggleButtonGroup"}),{children:a,className:i,color:c="standard",disabled:s=!1,exclusive:d=!1,fullWidth:u=!1,onChange:p,orientation:f="horizontal",size:v="medium",value:Z,...x}=r,k={...r,disabled:s,fullWidth:u,orientation:f,size:v},w=b(k),B=n.useCallback((t,e)=>{let r;if(!p)return;let n=Z&&Z.indexOf(e);Z&&n>=0?(r=Z.slice()).splice(n,1):r=Z?Z.concat(e):[e],p(t,r)},[p,Z]),R=n.useCallback((t,e)=>{p&&p(t,Z===e?null:e)},[p,Z]),z=n.useMemo(()=>({className:w.grouped,onChange:d?R:B,value:Z,size:v,fullWidth:u,color:c,disabled:s}),[w.grouped,d,R,B,Z,v,u,c,s]),C=n.Children.toArray(a).filter(t=>n.isValidElement(t)),E=C.length,T=t=>{let e=0===t,r=t===E-1;return e&&r?"":e?w.firstButton:r?w.lastButton:w.middleButton};return(0,g.jsx)(y,{role:"group",className:(0,o.Z)(w.root,i),ref:e,ownerState:k,...x,children:(0,g.jsx)(m.Z.Provider,{value:z,children:C.map((t,e)=>(0,g.jsx)(h.Z.Provider,{value:T(e),children:t},e))})})})},60296:function(t,e,r){let n=r(67294).createContext(void 0);e.Z=n},72357:function(t,e,r){let n=r(67294).createContext({});e.Z=n},43726:function(t,e,r){var n;!function(o){if("function"!=typeof a){var a=function(t){return t};a.nonNative=!0}let i=a("plaintext"),c=a("html"),l=a("comment"),s=/<(\w*)>/g,d=/<\/?([^\s\/>]+)/;function u(t,e,r){return f(t=t||"",p(e=e||[],r=r||""))}function p(t,e){return{allowable_tags:t=function(t){let e=new Set;if("string"==typeof t){let r;for(;r=s.exec(t);)e.add(r[1])}else a.nonNative||"function"!=typeof t[a.iterator]?"function"==typeof t.forEach&&t.forEach(e.add,e):e=new Set(t);return e}(t),tag_replacement:e,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function f(t,e){if("string"!=typeof t)throw TypeError("'html' parameter must be a string");let r=e.allowable_tags,n=e.tag_replacement,o=e.state,a=e.tag_buffer,s=e.depth,u=e.in_quote_char,p="";for(let e=0,f=t.length;e<f;e++){let f=t[e];if(o===i)"<"===f?(o=c,a+=f):p+=f;else if(o===c)switch(f){case"<":if(u)break;s++;break;case">":if(u)break;if(s){s--;break}u="",o=i,a+=">",r.has(function(t){let e=d.exec(t);return e?e[1].toLowerCase():null}(a))?p+=a:p+=n,a="";break;case'"':case"'":u=f===u?"":u||f,a+=f;break;case"-":"<!-"===a&&(o=l),a+=f;break;case" ":case"\n":if("<"===a){o=i,p+="< ",a="";break}a+=f;break;default:a+=f}else o===l&&(">"===f?("--"==a.slice(-2)&&(o=i),a=""):a+=f)}return e.state=o,e.tag_buffer=a,e.depth=s,e.in_quote_char=u,p}u.init_streaming_mode=function(t,e){let r=p(t=t||[],e=e||"");return function(t){return f(t||"",r)}},void 0!==(n=(function(){return u}).call(e,r,e,t))&&(t.exports=n)}(0)}}]);