"use strict";(self.webpackChunkname=self.webpackChunkname||[]).push([[6980],{6980:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(81672),a=n(21914),c=n(157),l=n(79895);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const u=function(){var e,t,n=(e=(0,r.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,c=[],l=!0,o=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){o=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(o)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=n[0],i=n[1],f=(0,a.useLocation)(),s=(0,a.useNavigate)(),m=function(e){var t=e.detail.href;window.history.pushState(null,t,t)};(0,r.useEffect)((function(){return window.addEventListener("react.href.update",m,!1),function(){window.removeEventListener("react.href.update",m)}}),[]);var h=(f.search||"")+(f.hash||"");return React.createElement(React.Fragment,null,u&&React.createElement(c.Z,null),React.createElement("iframe",{frameBorder:"0",id:"main-content",name:"main-content",scrolling:"yes",src:"./main.get.php".concat(h),style:{height:"100%",width:"100%"},title:"Main Content",onLoad:function(){i(!1),window.frames[0].document.querySelectorAll("a").forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.getAttribute("href"),n=e.target.getAttribute("target");if(!(0,l.fS0)(n,"_blank")&&(e.preventDefault(),!(0,l.kKJ)(t))){var r=(0,l.gxs)("./","",t);!(0,l.fS0)(r,"#")&&r.match(/^main.php/)&&s("/".concat(r),{replace:!0})}}),{once:!0})}))}}))};var i=(0,r.lazy)((function(){return Promise.all([n.e(9776),n.e(7996)]).then(n.bind(n,7996))}));const f=function(){return React.createElement(r.Suspense,{fallback:React.createElement(c.Z,null)},React.createElement(a.Routes,null,React.createElement(a.Route,{element:React.createElement(u,null),path:"/main.php/*"}),React.createElement(a.Route,{element:React.createElement(i,null),path:"/*"})))}}}]);