PageSourceSearch

https://el-najah.com/_next/static/chunks/2768-dca0576a733c8504.js

js el-najah.com collected 2026-10-07 15:23:05 UTC 67,832 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2768],{69459:function(t,e,r){r.d(e,{D3:function(){return y}});var n=r(2265),i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},s=function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,"function"==typeof SuppressedError&&SuppressedError;var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function c(t,e){return t(e={exports:{}},e.exports),e.exports}var l=c(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){var t=this;this.locked=new Map,this.addToLocked=function(e,r){var n=t.locked.get(e);void 0===n?void 0===r?t.locked.set(e,[]):t.locked.set(e,[r]):void 0!==r&&(n.unshift(r),t.locked.set(e,n))},this.isLocked=function(e){return t.locked.has(e)},this.lock=function(e){return new Promise(function(r,n){t.isLocked(e)?t.addToLocked(e,r):(t.addToLocked(e),r())})},this.unlock=function(e){var r=t.locked.get(e);if(void 0!==r&&0!==r.length){var n=r.pop();t.locked.set(e,r),void 0!==n&&setTimeout(n,0)}else t.locked.delete(e)}}return t.getInstance=function(){return void 0===t.instance&&(t.instance=new t),t.instance},t}();e.default=function(){return r.getInstance()}});a(l);var h=a(c(function(t,e){var r=o&&o.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){t.done?i(t.value):new r(function(e){e(t.value)}).then(o,a)}c((n=n.apply(t,e||[])).next())})},n=o&&o.__generator||function(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var i="browser-tabs-lock-key",s={key:function(t){return r(o,void 0,void 0,function(){return n(this,function(t){throw Error("Unsupported")})})},getItem:function(t){return r(o,void 0,void 0,function(){return n(this,function(t){throw Error("Unsupported")})})},clear:function(){return r(o,void 0,void 0,function(){return n(this,function(t){return[2,window.localStorage.clear()]})})},removeItem:function(t){return r(o,void 0,void 0,function(){return n(this,function(t){throw Error("Unsupported")})})},setItem:function(t,e){return r(o,void 0,void 0,function(){return n(this,function(t){throw Error("Unsupported")})})},keySync:function(t){return window.localStorage.key(t)},getItemSync:function(t){return window.localStorage.getItem(t)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(t){return window.localStorage.removeItem(t)},setItemSync:function(t,e){return window.localStorage.setItem(t,e)}};function a(t){return new Promise(function(e){return setTimeout(e,t)})}function c(t){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="",n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}var h=function(){function t(e){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=e,void 0===t.waiters&&(t.waiters=[])}return t.prototype.acquireLock=function(e,o){return void 0===o&&(o=5e3),r(this,void 0,void 0,function(){var r,l,h,u,d,p,f;return n(this,function(n){switch(n.label){case 0:r=Date.now()+c(4),l=Date.now()+o,h=i+"-"+e,u=void 0===this.storageHandler?s:this.storageHandler,n.label=1;case 1:return Date.now()<l?[4,a(30)]:[3,8];case 2:return n.sent(),null!==u.getItemSync(h)?[3,5]:(d=this.id+"-"+e+"-"+r,[4,a(Math.floor(25*Math.random()))]);case 3:return n.sent(),u.setItemSync(h,JSON.stringify({id:this.id,iat:r,timeoutKey:d,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];
1case 4:return n.sent(),null!==(p=u.getItemSync(h))&&(f=JSON.parse(p)).id===this.id&&f.iat===r?(this.acquiredIatSet.add(r),this.refreshLockWhileAcquired(h,r),[2,!0]):[3,7];case 5:return t.lockCorrector(void 0===this.storageHandler?s:this.storageHandler),[4,this.waitForSomethingToChange(l)];case 6:n.sent(),n.label=7;case 7:return r=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},t.prototype.refreshLockWhileAcquired=function(t,e){return r(this,void 0,void 0,function(){var i=this;return n(this,function(o){return setTimeout(function(){return r(i,void 0,void 0,function(){var r,i,o;return n(this,function(n){switch(n.label){case 0:return[4,l.default().lock(e)];case 1:return n.sent(),this.acquiredIatSet.has(e)?null===(i=(r=void 0===this.storageHandler?s:this.storageHandler).getItemSync(t))?l.default().unlock(e):((o=JSON.parse(i)).timeRefreshed=Date.now(),r.setItemSync(t,JSON.stringify(o)),l.default().unlock(e),this.refreshLockWhileAcquired(t,e)):l.default().unlock(e),[2]}})})},1e3),[2]})})},t.prototype.waitForSomethingToChange=function(e){return r(this,void 0,void 0,function(){return n(this,function(r){switch(r.label){case 0:return[4,new Promise(function(r){var n=!1,i=Date.now(),s=!1;function o(){if(s||(window.removeEventListener("storage",o),t.removeFromWaiting(o),clearTimeout(a),s=!0),!n){n=!0;var e=50-(Date.now()-i);e>0?setTimeout(r,e):r(null)}}window.addEventListener("storage",o),t.addToWaiting(o);var a=setTimeout(o,Math.max(0,e-Date.now()))})];case 1:return r.sent(),[2]}})})},t.addToWaiting=function(e){this.removeFromWaiting(e),void 0!==t.waiters&&t.waiters.push(e)},t.removeFromWaiting=function(e){void 0!==t.waiters&&(t.waiters=t.waiters.filter(function(t){return t!==e}))},t.notifyWaiters=function(){void 0!==t.waiters&&t.waiters.slice().forEach(function(t){return t()})},t.prototype.releaseLock=function(t){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,e.sent()]}})})},t.prototype.releaseLock__private__=function(e){return r(this,void 0,void 0,function(){var r,o,a,c;return n(this,function(n){switch(n.label){case 0:return r=void 0===this.storageHandler?s:this.storageHandler,o=i+"-"+e,null===(a=r.getItemSync(o))?[2]:(c=JSON.parse(a)).id!==this.id?[3,2]:[4,l.default().lock(c.iat)];case 1:n.sent(),this.acquiredIatSet.delete(c.iat),r.removeItemSync(o),l.default().unlock(c.iat),t.notifyWaiters(),n.label=2;case 2:return[2]}})})},t.lockCorrector=function(e){for(var r=Date.now()-5e3,n=[],s=0;;){var o=e.keySync(s);if(null===o)break;n.push(o),s++}for(var a=!1,c=0;c<n.length;c++){var l=n[c];if(l.includes(i)){var h=e.getItemSync(l);if(null!==h){var u=JSON.parse(h);(void 0===u.timeRefreshed&&u.timeAcquired<r||void 0!==u.timeRefreshed&&u.timeRefreshed<r)&&(e.removeItemSync(l),a=!0)}}}a&&t.notifyWaiters()},t.waiters=void 0,t}();e.default=h})),u=c(function(t,e){var r=o&&o.__assign||function(){return(r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function n(t,e){if(!e)return"";var r="; "+t;return!0===e?r:r+"="+e}function i(t,e,r){return encodeURIComponent(t).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(e).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(t){if("number"==typeof t.expires){var e=new Date;e.setMilliseconds(e.getMilliseconds()+864e5*t.expires),t.expires=e}return n("Expires",t.expires?t.expires.toUTCString():"")+n("Domain",t.domain)+n("Path",t.path)+n("Secure",t.secure)+n("SameSite",t.sameSite)}(r)}function s(t){for(var e={},r=t?t.split("; "):[],n=/(%[\dA-F]{2})+/gi,i=0;i<r.length;i++){var s=r[i].split("="),o=s.slice(1).join("=");'"'===o.charAt(0)&&(o=o.slice(1,-1));try{e[s[0].replace(n,decodeURIComponent)]=o.replace(n,decodeURIComponent)}catch(t){}}return e}function a(){return s(document.cookie)}function c(t,e,n){document.cookie=i(t,e,r({path:"/"},n))}e.__esModule=!0,e.encode=i,e.parse=s,e.getAll=a,e.get=function(t){return a()[t]},e.set=c,e.remove=function(t,e){c(t,"",r(r({},e),{expires:-1}))}});a(u),u.encode,u.parse,u.getAll,u.get,u.set,u.remove,new h;var d=function(){throw Error("You forgot to wrap your component in <Auth0Provider>.")},p=s(s({},{isAuthenticated:!1,isLoading:!0}),{buildAuthorizeUrl:d,buildLogoutUrl:d,getAccessTokenSilently:d,getAccessTokenWithPopup:d,getIdTokenClaims:d,loginWithRedirect:d,loginWithPopup:d,logout:d,handleRedirectCallback:d}),f=(0,n.createContext)(p),g=function(t){function e(r,n){var i=t.call(this,n||r)||this;return i.error=r,i.error_description=n,Object.setPrototypeOf(i,e.prototype),i}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e}(Error),m=function(t){return function(e){return e instanceof Error?e:null!==e&&"object"==typeof e&&"error"in e&&"string"==typeof e.error?"error_description"in e&&"string"==typeof e.error_description?new g(e.error,e.error_description):new g(e.error):Error(t)}};m("Login failed"),m("Get access token failed");var y=function(t){return void 0===t&&(t=f),(0,n.useContext)(t)}},51072:function(t,e,r){r.d(e,{Z:function(){return R}});var n=r(23950),i=r(22988),s=r(2265),o=r(44839),a=r(76990),c=r(10317),l=r(48024),h=r(95885),u=r(76830),d=r(12272),p=r(48563),f=r(17221),g=r(94614),m=r(9528),y=r(57437),v=(0,m.Z)((0,y.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
1),"SuccessOutlined"),b=(0,m.Z)((0,y.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),_=(0,m.Z)((0,y.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),w=(0,m.Z)((0,y.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),k=r(69056);let x=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],C=t=>{let{variant:e,color:r,severity:n,classes:i}=t,s={root:["root","color".concat((0,d.Z)(r||n)),"".concat(e).concat((0,d.Z)(r||n)),"".concat(e)],icon:["icon"],message:["message"],action:["action"]};return(0,a.Z)(s,f.t,i)},A=(0,l.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e[r.variant],e["".concat(r.variant).concat((0,d.Z)(r.color||r.severity))]]}})(t=>{let{theme:e}=t,r="light"===e.palette.mode?c._j:c.$n,n="light"===e.palette.mode?c.$n:c._j;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(t=>{let[,e]=t;return e.main&&e.light}).map(t=>{let[i]=t;return{props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert["".concat(i,"Color")]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert["".concat(i,"StandardBg")]:n(e.palette[i].light,.9),["& .".concat(f.Z.icon)]:e.vars?{color:e.vars.palette.Alert["".concat(i,"IconColor")]}:{color:e.palette[i].main}}}}),...Object.entries(e.palette).filter(t=>{let[,e]=t;return e.main&&e.light}).map(t=>{let[n]=t;return{props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert["".concat(n,"Color")]:r(e.palette[n].light,.6),border:"1px solid ".concat((e.vars||e).palette[n].light),["& .".concat(f.Z.icon)]:e.vars?{color:e.vars.palette.Alert["".concat(n,"IconColor")]}:{color:e.palette[n].main}}}}),...Object.entries(e.palette).filter(t=>{let[,e]=t;return e.main&&e.dark}).map(t=>{let[r]=t;return{props:{colorSeverity:r,variant:"filled"},style:(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert["".concat(r,"FilledColor")],backgroundColor:e.vars.palette.Alert["".concat(r,"FilledBg")]}:{backgroundColor:"dark"===e.palette.mode?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}})]})}),S=(0,l.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E=(0,l.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,l.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),T={success:(0,y.jsx)(v,{fontSize:"inherit"}),warning:(0,y.jsx)(b,{fontSize:"inherit"}),error:(0,y.jsx)(_,{fontSize:"inherit"}),info:(0,y.jsx)(w,{fontSize:"inherit"})};var R=s.forwardRef(function(t,e){let r=(0,h.i)({props:t,name:"MuiAlert"}),{action:s,children:a,className:c,closeText:l="Close",color:d,components:p={},componentsProps:f={},icon:m,iconMapping:v=T,onClose:b,role:_="alert",severity:w="success",slotProps:R={},slots:L={},variant:N="standard"}=r,B=(0,n.Z)(r,x),I=(0,i.Z)({},r,{color:d,severity:w,variant:N,colorSeverity:d||w}),Z=C(I),P={slots:(0,i.Z)({closeButton:p.CloseButton,closeIcon:p.CloseIcon},L),slotProps:(0,i.Z)({},f,R)},[j,q]=(0,u.Z)("closeButton",{elementType:g.Z,externalForwardedProps:P,ownerState:I}),[M,F]=(0,u.Z)("closeIcon",{elementType:k.Z,externalForwardedProps:P,ownerState:I});return(0,y.jsxs)(A,(0,i.Z)({role:_,elevation:0,ownerState:I,className:(0,o.Z)(Z.root,c),ref:e},B,{children:[!1!==m?(0,y.jsx)(S,{ownerState:I,className:Z.icon,children:m||v[w]||T[w]}):null,(0,y.jsx)(E,{ownerState:I,className:Z.message,children:a}),null!=s?(0,y.jsx)(O,{ownerState:I,className:Z.action,children:s}):null,null==s&&b?(0,y.jsx)(O,{ownerState:I,className:Z.action,children:(0,y.jsx)(j,(0,i.Z)({size:"small","aria-label":l,title:l,color:"inherit",onClick:b},q,{children:(0,y.jsx)(M,(0,i.Z)({fontSize:"small"},F))}))}):null]}))})},17221:function(t,e,r){r.d(e,{t:function(){return s}});var n=r(72296),i=r(70587);function s(t){return(0,i.ZP)("MuiAlert",t)}let o=(0,n.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);e.Z=o},636:function(t,e,r){var n=r(23950),i=r(22988),s=r(2265),o=r(44839),a=r(76990),c=r(79130),l=r(12272),h=r(95885),u=r(64987),d=r(48024),p=r(41738),f=r(57437);let g=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],m=t=>{let{color:e,variant:r,classes:n,size:s}=t,o={root:["root",r,"size".concat((0,l.Z)(s)),"inherit"===e?"colorInherit":e]},c=(0,a.Z)(o,u.N,n);return(0,i.Z)({},n,c)},y=(0,d.ZP)(c.Z,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>(0,p.Z)(t)||"classes"===t,overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e[r.variant],e["size".concat((0,l.Z)(r.size))],"inherit"===r.color&&e.colorInherit,e[(0,l.Z)(r.size)],e[r.color]]}})(t=>{var e,r;let{theme:n,ownerState:s}=t;return(0,i.Z)({},n.typography.button,{minHeight:36,transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(n.vars||n).zIndex.fab,boxShadow:(n.vars||n).shadows[6],"&:active":{boxShadow:(n.vars||n).shadows[12]},color:n.vars?n.vars.palette.text.primary:null==(e=(r=n.palette).getContrastText)?void 0:e.call(r,n.palette.grey[300]),backgroundColor:(n.vars||n).palette.grey[300],"&:hover":{backgroundColor:(n.vars||n).palette.grey.A100,"@media (hover: none)":{backgroundColor:(n.vars||n).palette.grey[300]},textDecoration:"none"},["&.".concat(u.Z.focusVisible)]:{boxShadow:(n.vars||n).shadows[6]}},"small"===s.size&&{width:40,height:40},"medium"===s.size&&{width:48,height:48}
1,"extended"===s.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===s.variant&&"small"===s.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===s.variant&&"medium"===s.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===s.color&&{color:"inherit"})},t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({},"inherit"!==r.color&&"default"!==r.color&&null!=(e.vars||e).palette[r.color]&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}})},t=>{let{theme:e}=t;return{["&.".concat(u.Z.disabled)]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),v=s.forwardRef(function(t,e){let r=(0,h.i)({props:t,name:"MuiFab"}),{children:s,className:a,color:c="default",component:l="button",disabled:u=!1,disableFocusRipple:d=!1,focusVisibleClassName:p,size:v="large",variant:b="circular"}=r,_=(0,n.Z)(r,g),w=(0,i.Z)({},r,{color:c,component:l,disabled:u,disableFocusRipple:d,size:v,variant:b}),k=m(w);return(0,f.jsx)(y,(0,i.Z)({className:(0,o.Z)(k.root,a),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:(0,o.Z)(k.focusVisible,p),ownerState:w,ref:e},_,{classes:k,children:s}))});e.Z=v},64987:function(t,e,r){r.d(e,{N:function(){return s}});var n=r(72296),i=r(70587);function s(t){return(0,i.ZP)("MuiFab",t)}let o=(0,n.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);e.Z=o},29164:function(t,e,r){r.d(e,{Z:function(){return v}});var n=r(23950),i=r(22988),s=r(2265),o=r(44839),a=r(76990),c=r(61175),l=r(48024),h=r(95885),u=r(72296),d=r(70587);function p(t){return(0,d.ZP)("MuiListItemAvatar",t)}(0,u.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var f=r(57437);let g=["className"],m=t=>{let{alignItems:e,classes:r}=t;return(0,a.Z)({root:["root","flex-start"===e&&"alignItemsFlexStart"]},p,r)},y=(0,l.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,"flex-start"===r.alignItems&&e.alignItemsFlexStart]}})(t=>{let{ownerState:e}=t;return(0,i.Z)({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8})});var v=s.forwardRef(function(t,e){let r=(0,h.i)({props:t,name:"MuiListItemAvatar"}),{className:a}=r,l=(0,n.Z)(r,g),u=s.useContext(c.Z),d=(0,i.Z)({},r,{alignItems:u.alignItems}),p=m(d);return(0,f.jsx)(y,(0,i.Z)({className:(0,o.Z)(p.root,a),ownerState:d,ref:e},l))})},57300:function(t,e,r){var n=r(23950),i=r(22988),s=r(2265),o=r(44839),a=r(76990),c=r(10317),l=r(48024),h=r(41738),u=r(95885),d=r(79130),p=r(48632),f=r(60909),g=r(61175),m=r(79106),y=r(57437);let v=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],b=t=>{let{alignItems:e,classes:r,dense:n,disabled:s,disableGutters:o,divider:c,selected:l}=t,h=(0,a.Z)({root:["root",n&&"dense",!o&&"gutters",c&&"divider",s&&"disabled","flex-start"===e&&"alignItemsFlexStart",l&&"selected"]},m.t,r);return(0,i.Z)({},r,h)},_=(0,l.ZP)(d.Z,{shouldForwardProp:t=>(0,h.Z)(t)||"classes"===t,name:"MuiListItemButton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,r.dense&&e.dense,"flex-start"===r.alignItems&&e.alignItemsFlexStart,r.divider&&e.divider,!r.disableGutters&&e.gutters]}})(t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(m.Z.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(m.Z.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(m.Z.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(m.Z.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(m.Z.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity}}
1,r.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})}),w=s.forwardRef(function(t,e){let r=(0,u.i)({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:c=!1,component:l="div",children:h,dense:d=!1,disableGutters:m=!1,divider:w=!1,focusVisibleClassName:k,selected:x=!1,className:C}=r,A=(0,n.Z)(r,v),S=s.useContext(g.Z),E=s.useMemo(()=>({dense:d||S.dense||!1,alignItems:a,disableGutters:m}),[a,S.dense,d,m]),O=s.useRef(null);(0,p.Z)(()=>{c&&O.current&&O.current.focus()},[c]);let T=(0,i.Z)({},r,{alignItems:a,dense:E.dense,disableGutters:m,divider:w,selected:x}),R=b(T),L=(0,f.Z)(O,e);return(0,y.jsx)(g.Z.Provider,{value:E,children:(0,y.jsx)(_,(0,i.Z)({ref:L,href:A.href||A.to,component:(A.href||A.to)&&"div"===l?"button":l,focusVisibleClassName:(0,o.Z)(R.focusVisible,k),ownerState:T,className:(0,o.Z)(R.root,C)},A,{classes:R,children:h}))})});e.Z=w},79106:function(t,e,r){r.d(e,{t:function(){return s}});var n=r(72296),i=r(70587);function s(t){return(0,i.ZP)("MuiListItemButton",t)}let o=(0,n.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);e.Z=o},47905:function(t,e,r){var n=r(23950),i=r(22988),s=r(2265),o=r(44839),a=r(76990),c=r(83719),l=r(61175),h=r(95885),u=r(48024),d=r(90467),p=r(57437);let f=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],g=t=>{let{classes:e,inset:r,primary:n,secondary:i,dense:s}=t;return(0,a.Z)({root:["root",r&&"inset",s&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},d.L,e)},m=(0,u.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[{["& .".concat(d.Z.primary)]:e.primary},{["& .".concat(d.Z.secondary)]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})(t=>{let{ownerState:e}=t;return(0,i.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})}),y=s.forwardRef(function(t,e){let r=(0,h.i)({props:t,name:"MuiListItemText"}),{children:a,className:u,disableTypography:d=!1,inset:y=!1,primary:v,primaryTypographyProps:b,secondary:_,secondaryTypographyProps:w}=r,k=(0,n.Z)(r,f),{dense:x}=s.useContext(l.Z),C=null!=v?v:a,A=_,S=(0,i.Z)({},r,{disableTypography:d,inset:y,primary:!!C,secondary:!!A,dense:x}),E=g(S);return null==C||C.type===c.Z||d||(C=(0,p.jsx)(c.Z,(0,i.Z)({variant:x?"body2":"body1",className:E.primary,component:null!=b&&b.variant?void 0:"span",display:"block"},b,{children:C}))),null==A||A.type===c.Z||d||(A=(0,p.jsx)(c.Z,(0,i.Z)({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},w,{children:A}))),(0,p.jsxs)(m,(0,i.Z)({className:(0,o.Z)(E.root,u),ownerState:S,ref:e},k,{children:[C,A]}))});e.Z=y},69056:function(t,e,r){r(2265);var n=r(9528),i=r(57437);e.Z=(0,n.Z)((0,i.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")},45040:function(t,e,r){let n,i;r.d(e,{io:function(){return tO}});var s,o,a={};r.r(a),r.d(a,{Decoder:function(){return ty},Encoder:function(){return tm},PacketType:function(){return o},isPacketValid:function(){return tw},protocol:function(){return tg}});let c=Object.create(null);c.open="0",c.close="1",c.ping="2",c.pong="3",c.message="4",c.upgrade="5",c.noop="6";let l=Object.create(null);Object.keys(c).forEach(t=>{l[c[t]]=t});let h={type:"error",data:"parser error"},u="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,p=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,f=({type:t,data:e},r,n)=>u&&e instanceof Blob?r?n(e):g(e,n):d&&(e instanceof ArrayBuffer||p(e))?r?n(e):g(new Blob([e]),n):n(c[t]+(e||"")),g=(t,e)=>{let r=new FileReader;return r.onload=function(){e("b"+(r.result.split(",")[1]||""))}
1,r.readAsDataURL(t)};function m(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<y.length;t++)v[y.charCodeAt(t)]=t;let b=t=>{let e=.75*t.length,r=t.length,n,i=0,s,o,a,c;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let l=new ArrayBuffer(e),h=new Uint8Array(l);for(n=0;n<r;n+=4)s=v[t.charCodeAt(n)],o=v[t.charCodeAt(n+1)],a=v[t.charCodeAt(n+2)],c=v[t.charCodeAt(n+3)],h[i++]=s<<2|o>>4,h[i++]=(15&o)<<4|a>>2,h[i++]=(3&a)<<6|63&c;return l},_="function"==typeof ArrayBuffer,w=(t,e)=>{if("string"!=typeof t)return{type:"message",data:x(t,e)};let r=t.charAt(0);return"b"===r?{type:"message",data:k(t.substring(1),e)}:l[r]?t.length>1?{type:l[r],data:t.substring(1)}:{type:l[r]}:h},k=(t,e)=>_?x(b(t),e):{base64:!0,data:t},x=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,C=(t,e)=>{let r=t.length,n=Array(r),i=0;t.forEach((t,s)=>{f(t,!1,t=>{n[s]=t,++i===r&&e(n.join("\x1e"))})})},A=(t,e)=>{let r=t.split("\x1e"),n=[];for(let t=0;t<r.length;t++){let i=w(r[t],e);if(n.push(i),"error"===i.type)break}return n};function S(t){return t.reduce((t,e)=>t+e.length,0)}function E(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let i=0;i<e;i++)r[i]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function O(t){if(t)return function(t){for(var e in O.prototype)t[e]=O.prototype[e];return t}(t)}O.prototype.on=O.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},O.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},O.prototype.off=O.prototype.removeListener=O.prototype.removeAllListeners=O.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},O.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,e)}return this},O.prototype.emitReserved=O.prototype.emit,O.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},O.prototype.hasListeners=function(t){return!!this.listeners(t).length};let T="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),R="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function L(t,...e){return e.reduce((e,r)=>(t.hasOwnProperty(r)&&(e[r]=t[r]),e),{})}let N=R.setTimeout,B=R.clearTimeout;function I(t,e){e.useNativeTimers?(t.setTimeoutFn=N.bind(R),t.clearTimeoutFn=B.bind(R)):(t.setTimeoutFn=R.setTimeout.bind(R),t.clearTimeoutFn=R.clearTimeout.bind(R))}function Z(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class P extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}class j extends O{constructor(t){super(),this.writable=!1,I(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,r){return super.emitReserved("error",new P(t,e,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=w(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}(t);return e.length?"?"+e:""}}class q extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}
1doOpen(){this._poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){A(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,C(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Z()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let M=!1;try{M="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let F=M;function D(){}class U extends q{constructor(t){if(super(t),"undefined"!=typeof location){let e="https:"===location.protocol,r=location.port;r||(r=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,e){let r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class W extends O{constructor(t,e,r){super(),this.createRequest=t,I(this,r),this._opts=r,this._method=r.method||"GET",this._uri=e,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var t;let e=L(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(e);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let t in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&r.setRequestHeader(t,this._opts.extraHeaders[t])}catch(t){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{r.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this._opts.cookieJar)||void 0===t||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var t;3===r.readyState&&(null===(t=this._opts.cookieJar)||void 0===t||t.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}"undefined"!=typeof document&&(this._index=W.requestsCount++,W.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=D,t)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete W.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function z(){for(let t in W.requests)W.requests.hasOwnProperty(t)&&W.requests[t].abort()}W.requestsCount=0,W.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",z):"function"==typeof addEventListener&&addEventListener("onpagehide"in R?"pagehide":"unload",z,!1));let V=function(){let t=K({xdomain:!1});return t&&null!==t.responseType}();class H extends U{constructor(t){super(t);let e=t&&t.forceBase64;this.supportsBinary=V&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new W(K,this.uri(),t)}}function K(t){let e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||F))return new XMLHttpRequest}catch(t){}if(!e)try{return new R[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}let J="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Y extends j{get name(){return"websocket"}doOpen(){let t=this.uri(),e=this.opts.protocols,r=J?{}:L(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,r)}catch(t){return this.emitReserved("error",t)}
1this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let r=t[e],n=e===t.length-1;f(r,this.supportsBinary,t=>{try{this.doWrite(r,t)}catch(t){}n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Z()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}let $=R.WebSocket||R.MozWebSocket;class G extends Y{createSocket(t,e,r){return J?new $(t,e,r):e?new $(t,e):new $(t)}doWrite(t,e){this.ws.send(e)}}class Q extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let e=function(t,e){i||(i=new TextDecoder);let r=[],n=0,s=-1,o=!1;return new TransformStream({transform(a,c){for(r.push(a);;){if(0===n){if(1>S(r))break;let t=E(r,1);o=(128&t[0])==128,n=(s=127&t[0])<126?3:126===s?1:2}else if(1===n){if(2>S(r))break;let t=E(r,2);s=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(8>S(r))break;let t=E(r,8),e=new DataView(t.buffer,t.byteOffset,t.length),i=e.getUint32(0);if(i>2097151){c.enqueue(h);break}s=4294967296*i+e.getUint32(4),n=3}else{if(S(r)<s)break;let t=E(r,s);c.enqueue(w(o?t:i.decode(t),e)),n=0}if(0===s||s>t){c.enqueue(h);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(e).getReader(),s=new TransformStream({transform(t,e){var r;r=r=>{let n;let i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let t=new DataView((n=new Uint8Array(3)).buffer);t.setUint8(0,126),t.setUint16(1,i)}else{let t=new DataView((n=new Uint8Array(9)).buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(i))}t.data&&"string"!=typeof t.data&&(n[0]|=128),e.enqueue(n),e.enqueue(r)},u&&t.data instanceof Blob?t.data.arrayBuffer().then(m).then(r):d&&(t.data instanceof ArrayBuffer||p(t.data))?r(m(t.data)):f(t,!1,t=>{n||(n=new TextEncoder),r(n.encode(t))})}});s.readable.pipeTo(t.writable),this._writer=s.writable.getWriter();let o=()=>{r.read().then(({done:t,value:e})=>{t||(this.onPacket(e),o())}).catch(t=>{})};o();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let r=t[e],n=e===t.length-1;this._writer.write(r).then(()=>{n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null===(t=this._transport)||void 0===t||t.close()}}let X={websocket:G,webtransport:Q,polling:H},tt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,te=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");-1!=r&&-1!=n&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let i=tt.exec(t||""),s={},o=14;for(;o--;)s[te[o]]=i[o]||"";return -1!=r&&-1!=n&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(t,e){let r=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),r}(0,s.path),s.queryKey=function(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,n){e&&(r[e]=n)}),r}(0,s.query),s}let tn="function"==typeof addEventListener&&"function"==typeof removeEventListener,ti=[];tn&&addEventListener("offline",()=>
1{ti.forEach(t=>t())},!1);class ts extends O{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){let r=tr(t);e.hostname=r.host,e.secure="https"===r.protocol||"wss"===r.protocol,e.port=r.port,r.query&&(e.query=r.query)}else e.host&&(e.hostname=tr(e.host).host);I(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{let e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},r=t.split("&");for(let t=0,n=r.length;t<n;t++){let n=r[t].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}(this.opts.query)),tn&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ti.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let r=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&ts.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",ts.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let r=this.writeBuffer[e].data;if(r&&(t+="string"==typeof r?function(t){let e=0,r=0;for(let n=0,i=t.length;n<i;n++)(e=t.charCodeAt(n))<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,T(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,r){return this._sendPacket("message",t,e,r),this}send(t,e,r){return this._sendPacket("message",t,e,r),this}_sendPacket(t,e,r,n){if("function"==typeof e&&(n=e,e=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:t,data:e,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},r=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(ts.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),tn&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let t=ti.indexOf(this._offlineEventListener);-1!==t&&ti.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}ts.protocol=4;class to extends ts{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),r=!1;ts.priorWebsocketSuccess=!1;let n=()=>{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!r){if("pong"===t.type&&"probe"===t.data)this.upgrading=!0,this.emitReserved("upgrading",e),e&&(ts.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{r||"closed"===this.readyState||(l(),this.setTransport(e),e.send([{type:"upgrade"}
1]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}));else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}}))};function i(){r||(r=!0,l(),e.close(),e=null)}let s=t=>{let r=Error("probe error: "+t);r.transport=e.name,i(),this.emitReserved("upgradeError",r)};function o(){s("transport closed")}function a(){s("socket closed")}function c(t){e&&t.name!==e.name&&i()}let l=()=>{e.removeListener("open",n),e.removeListener("error",s),e.removeListener("close",o),this.off("close",a),this.off("upgrading",c)};e.once("open",n),e.once("error",s),e.once("close",o),this.once("close",a),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{r||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let e=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}}class ta extends to{constructor(t,e={}){let r="object"==typeof t?t:e;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(t=>X[t]).filter(t=>!!t)),super(t,r)}}ta.protocol;let tc="function"==typeof ArrayBuffer,tl=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,th=Object.prototype.toString,tu="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===th.call(Blob),td="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===th.call(File);function tp(t){return tc&&(t instanceof ArrayBuffer||tl(t))||tu&&t instanceof Blob||td&&t instanceof File}let tf=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tg=5;(s=o||(o={}))[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK";class tm{constructor(t){this.replacer=t}encode(t){return(t.type===o.EVENT||t.type===o.ACK)&&function t(e,r){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(t(e[r]))return!0;return!1}if(tp(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===o.BINARY_EVENT||t.type===o.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e=function(t){let e=[],r=t.data;return t.data=function t(e,r){if(!e)return e;if(tp(e)){let t={_placeholder:!0,num:r.length};return r.push(e),t}if(Array.isArray(e)){let n=Array(e.length);for(let i=0;i<e.length;i++)n[i]=t(e[i],r);return n}if("object"==typeof e&&!(e instanceof Date)){let n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t(e[i],r));return n}return e}(r,e),t.attachments=e.length,{packet:t,buffers:e}}(t),r=this.encodeAsString(e.packet),n=e.buffers;return n.unshift(r),n}}class ty extends O{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof t?{reviver:t}:t)}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(e=this.decodeString(t)).type===o.BINARY_EVENT;r||e.type===o.BINARY_ACK?(e.type=r?o.EVENT:o.ACK,this.reconstructor=new tv(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(tp(t)||t.base64){if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+t)}decodeString(t){let e=0,r={type:Number(t.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let i=t.substring(n,e);if(i!=Number(i)||"-"!==t.charAt(e))throw Error("Illegal attachments");let s=Number(i);if(!tb(s)||s<0)throw Error("Illegal attachments");if(s>this.opts.maxAttachments)throw Error("too many attachments");r.attachments=s}if("/"===t.charAt(e+1)){let n=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);r.nsp=t.substring(n,e)}else r.nsp="/";let n=t.charAt(e+1);if(""!==n&&Number(n)==n){let n=e+1;for(;++e;){let r=t.charAt(e);if(null==r||Number(r)!=r){--e;break}if(e===t.length)break}r.id=Number(t.substring(n,e+1))}
1if(t.charAt(++e)){let n=this.tryParse(t.substr(e));if(ty.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case o.CONNECT:return t_(e);case o.DISCONNECT:return void 0===e;case o.CONNECT_ERROR:return"string"==typeof e||t_(e);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===tf.indexOf(e[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tv{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,r;let t=(e=this.reconPack,r=this.buffers,e.data=function t(e,r){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<r.length)return r[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=t(e[n],r);else if("object"==typeof e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t(e[n],r));return e}(e.data,r),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let tb=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function t_(t){return"[object Object]"===Object.prototype.toString.call(t)}function tw(t){var e;return"string"==typeof t.nsp&&(void 0===(e=t.id)||tb(e))&&function(t,e){switch(t){case o.CONNECT:return void 0===e||t_(e);case o.DISCONNECT:return void 0===e;case o.EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===tf.indexOf(e[0]));case o.ACK:return Array.isArray(e);case o.CONNECT_ERROR:return"string"==typeof e||t_(e);default:return!1}}(t.type,t.data)}function tk(t,e,r){return t.on(e,r),function(){t.off(e,r)}}let tx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class tC extends O{constructor(t,e,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[tk(t,"open",this.onopen.bind(this)),tk(t,"packet",this.onpacket.bind(this)),tk(t,"error",this.onerror.bind(this)),tk(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var r,n,i;if(tx.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let s={type:o.EVENT,data:e};if(s.options={},s.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,r=e.pop();this._registerAckCallback(t,r),s.id=t}let a=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,c=this.connected&&!(null===(i=this.io.engine)||void 0===i?void 0:i._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,e){var r;let n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n){this.acks[t]=e;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},n),s=(...t)=>{this.io.clearTimeoutFn(i),e.apply(this,t)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...e){return new Promise((r,n)=>{let i=(t,e)=>t?n(t):r(e);
1i.withError=!0,e.push(i),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...n)=>(this._queue[0],null!==t?r.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}
1_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(!(t.nsp!==this.nsp))switch(t.type){case o.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,r=!1;return function(...n){r||(r=!0,e.packet({type:o.ACK,id:t,data:n}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let r=0;r<e.length;r++)if(t===e[r]){e.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let r=0;r<e.length;r++)if(t===e[r]){e.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}function tA(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tA.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-r:t+r}return 0|Math.min(t,this.max)},tA.prototype.reset=function(){this.attempts=0},tA.prototype.setMin=function(t){this.ms=t},tA.prototype.setMax=function(t){this.max=t},tA.prototype.setJitter=function(t){this.jitter=t};class tS extends O{constructor(t,e){var r;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,I(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=e.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new tA({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;let n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ta(this.uri,this.opts);let e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=tk(e,"open",function(){r.onopen(),t&&t()}),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},s=tk(e,"error",i);if(!1!==this._timeout){let t=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),e.close()},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(tk(t,"ping",this.onping.bind(this)),tk(t,"data",this.ondata.bind(this)),tk(t,"error",this.onerror.bind(this)),tk(t,"close",this.onclose.bind(this)),tk(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){T(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new tC(this,t,e),this.nsps[t]=r),r}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let r=0;r<e.length;r++)this.engine.write(e[r],t.options)}
1cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var r;this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!t.skipReconnect&&(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tE={};function tO(t,e){let r;"object"==typeof t&&(e=t,t=void 0);let n=function(t,e="",r){let n=t;r=r||"undefined"!=typeof location&&location,null==t&&(t=r.protocol+"//"+r.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?r.protocol+t:r.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==r?r.protocol+"//"+t:"https://"+t),n=tr(t)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+e,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(t,(e=e||{}).path||"/socket.io"),i=n.source,s=n.id,o=n.path,a=tE[s]&&o in tE[s].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||a?r=new tS(i,e):(tE[s]||(tE[s]=new tS(i,e)),r=tE[s]),n.query&&!e.query&&(e.query=n.queryKey),r.socket(n.path,e)}Object.assign(tO,{Manager:tS,Socket:tC,io:tO,connect:tO})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.