1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DXZ7xWPw.js","assets/SiteFooter-CTaZDwKW.js","assets/LegalLinksStrip-B8f4vSs_.js","assets/ContactCta-Dy9dJltq.js","assets/circle-check-B3UjN_-i.js","assets/chart-column-CEnjvta_.js","assets/chevron-right-S59WI6SG.js","assets/home-banner.jpg.asset-CbYZ_eUl.js","assets/acores-BvzCLr2l.js","assets/arrow-up-right-BWfcS9Z5.js","assets/landmark-CfJ8AxPB.js","assets/building-2-B33PrY4d.js","assets/hotel-CKmAicfm.js","assets/sprout-DP7jEUPn.js","assets/anchor-B7hphh2J.js","assets/circle-question-mark-Bei3qjrV.js","assets/award-DxKyop64.js","assets/target-DVtoqrZP.js","assets/heart-handshake-Bf8eL4Vg.js","assets/trending-up-B7KpzTT-.js","assets/rocket-aJHfD-cG.js","assets/monitor-DhQlN1oz.js","assets/globe-DnBHD577.js","assets/lightbulb-fkXhaOKA.js","assets/graduation-cap-BiO-U1dY.js","assets/coins-BmlXJkj0.js","assets/admin-DZBBT0ql.js","assets/file-text-B-JN-fRW.js","assets/sparkles-7U7Mi1nA.js","assets/eye-BJ-J6AQ0.js","assets/auth-BMMCwCSK.js","assets/cobertura-nacional-Cgv-0g7e.js","assets/ContentPage-BxJkCPL-.js","assets/ContactCtaEn-C9reWTNC.js","assets/ContactCtaEs-C1xZU82e.js","assets/waves-D1PJCo4F.js","assets/earth-NdT2619H.js","assets/contactos-EvQPPNvi.js","assets/contact-C17842pB.js","assets/empresa-D84j2wT5.js","assets/banner1.jpg.asset-83B1oL-g.js","assets/formacao-BixzFofG.js","assets/shield-check-BlCdFdm0.js","assets/check-3iJLXNl5.js","assets/factory-DQ5OhMtP.js","assets/shopping-bag-BBfP-UaM.js","assets/wrench-BvFndpX-.js","assets/formacao-B0ZMYHwt.js","assets/formacao-stafforma-v3.jpg.asset-Dw4eP007.js","assets/badge-check-tBWWj2uf.js","assets/star-
1B7WLbZ1b.js","assets/clipboard-list-ll0QcdZ3.js","assets/laptop-DXSEDOKU.js","assets/school-DrcHmQ3s.js","assets/fundos-e-incentivos-VqdLkn-e.js","assets/sala-reunioes-DR6XpSHi.js","assets/search-DGET707U.js","assets/send-DkSoQNFQ.js","assets/life-buoy-82ucUJ03.js","assets/wallet-BuX90tdS.js","assets/users-oHtMJ3ax.js","assets/clipboard-check-B3WjbNdo.js","assets/perguntas-frequentes-B7KbCroH.js","assets/faq-hero-clean-Dn3uetzi.js","assets/politica-de-cookies-BYH558v_.js","assets/politica-de-privacidade-11wqhOxO.js","assets/resolucao-de-litigios-CWrV4aWF.js","assets/termos-e-condicoes-CUKB5mN0.js","assets/turismo-hotelaria-ucLpa4fL.js","assets/FaqSection-B4e7cRev.js","assets/acores-2030.index-BUjumSRc.js","assets/acores-construir-pequenos-negocios.jpg.asset-Cs9dRM27.js","assets/megaphone-DzXI2k_7.js","assets/flag-BFfJOTvT.js","assets/acores-2030.construir-jovem-investidor-BdTQPVmO.js","assets/acores-jovem-oportunidade-JeGNyFoK.js","assets/leaf-d9Ncptvs.js","assets/utensils-crossed-B3GsnKUD.js","assets/tree-palm-DSjgvQmh.js","assets/car-D8myDdGw.js","assets/code-xml-zRSft0hS.js","assets/user-cog-DoYDFPZh.js","assets/calculator-MEh8kh_E.js","assets/hourglass-BXWtN9_P.js","assets/trophy-CoOL35Ju.js","assets/folder-open-BEsq7leA.js","assets/handshake-B3kfXIcG.js","assets/acores-2030.construir-pequenos-negocios-B7VL425J.js","assets/acores-pequenos-oportunidade-v2.jpg.asset-D-HYtXYd.js","assets/zap-CqYZ5RjC.js","assets/recycle-CMXyQ_5t.js","assets/hard-hat-Bjp90zsm.js","assets/store-CC6FiYBV.js","assets/truck-AoDAKrJp.js","assets/heart-pulse-SIAnWfGl.js","assets/blog.index-Bxuw4DB6.js","assets/blog-hero-clean-CaMR7gon.js","assets/blog._slug-C5nZqGPa.js","assets/en.index-mWAny4PF.js","assets/en.acores-2030-DZIJri1c.js","assets/ProgramIndexEn-CbMcbtzx.js","assets/en.company-DbtkwVXy.js","assets/en.contact-BIUWG36G.js","assets/en.cookie-policy-ijj-Uff3.js","assets/en.dispute-resolution-AGv0RTSw.js","assets/en.faq-K-MxUus-.js","assets/en.funding-incentives-D5a7-63u.js","assets/en.national-coverage-BaZyznHj.js","assets/en.pepac-UiYB3BgO.js","assets/pepac-turismo-rural-excelencia.jpg.asset-BeKqL05T.js","assets/tree-pine-B8VhxMvm.js","assets/en.portugal-2030-8XOg6PeH.js","assets/p2030-rh.jpg.asset-314aUx4c.js","assets/en.privacy-policy-CtvzPTQH.js","assets/en.prr-BMAZ_oxe.js","assets/card-inovacao-Bq1cNJHA.js","assets/en.terms-and-conditions-C6wM0SJp.js","assets/en.tourism-hospitality-CfK9PMUI.js","assets/en.training-DUWyb03x.js","assets/en.turismo-de-portugal-WmFPVxxd.js","assets/mountain-DD0Qoxky.js","assets/calendar-BzpXOkPM.js","assets/es.index-gqCoZSUW.js","assets/es.cobertura-nacional-DbaYDfol.js","assets/es.contacto-DzS3sAZ8.js","assets/es.empresa-DNQpkGtC.js","assets/es.fondos-e-incentivos-DBnruBXE.js","assets/es.formacion-CFBWVJ2N.js","assets/es.politica-de-cookies-CHz4s4Rs.js","assets/es.politica-de-privacidad-Y0ZvrH8q.js","assets/es.preguntas-frecuentes-BrFQj0Zb.js","assets/es.resolucion-de-litigios-DXgi04sQ.js","assets/es.terminos-y-condiciones-Du6xpBWu.js","assets/es.turismo-hosteleria-L9gnmsj1.js","assets/pepac.index-EvXRJcJK.js","assets/pepac-florestal-CirenHxz.js","assets/pepac.bioeconomia-agroindustria-zdT22Vi6.js","assets/MedidaPepacPage-BZRXhhp1.js","assets/SeparadorConsulstaff-Cv312YOp.js","assets/sibt-pinhal-separador.jpg.asset-D9nZOEIo.js","assets/pepac-gal-territory-t7OK8UkU.js","assets/pepac-agroindustria-oportunidade-CG2z_XvH.js","assets/pepac.bioeconomia-florestal-C6VjbMKX.js","assets/pepac-florestal-oportunidade-BFdgKAdh.js","assets/pepac.diversificacao-comercio-servicos-CqxpOLTx.js","assets/pepac-diversificacao-oportunidade-v2.jpg.asset-DQunQDw9.js","assets/pepac.pequenos-investimentos-bioeconomia-CcpOMw-N.js","assets/pepac-pequenos-bioeconomia-oportunidade-Cr9eiEfg.js","assets/wine-D_0L8ghi.js","assets/droplets-DYN4TRPB.js","assets/package-BIoWAh8r.js","assets/portugal-2030.index-DwGZGFRF.js","assets/sibt-oeste.jpg.asset-lf8QPzg3.js","assets/portugal-2030.idt-DBUM1nP7.js","assets/HeroStatsBar-DKR1vy3G.js","assets/idt-copromocao-CWG-7rdZ.js","assets/percent-CUd_bdOi.js","assets/plane-CFQtKUQ4.js","assets/shield-CGtSTD5l.js","assets/portugal-2030.inovacao-produtiva-vppAEYT7.js","assets/ip-separador-turismo-luxo-dia.jpg.asset-CcL09hrD.js","assets/ip-metodologia-fund
1o-t_E88L6D.js","assets/list-checks-B-2ijhG4.js","assets/settings-CbnvsMmd.js","assets/cpu-DjXlnCA2.js","assets/house-kXhg_y40.js","assets/ruler-BxB_pyvc.js","assets/compass-BqzCKHXm.js","assets/piggy-bank-CIOgi6ex.js","assets/circle-play-CAp1PZhD.js","assets/portugal-2030.internacionalizacao-pme-sZoCGDhe.js","assets/intl-pme-feira-CjnBf2XR.js","assets/shopping-cart-Ckgj5b9h.js","assets/layers-DiifiRtw.js","assets/portugal-2030.qualificacao-pme-BsiiyuFb.js","assets/p2030-qualificacao-Dry0VPcg.js","assets/qp-dom-saber-wmlEzwjt.js","assets/palette-DT1A15GP.js","assets/portugal-2030.rh-qualificados-D13gY9J6.js","assets/rh-separador-inovacao.jpg.asset-CNcphnSU.js","assets/clock-CDkSjEPg.js","assets/portugal-2030.si-base-territorial-DkCYq7uI.js","assets/sibt-oportunidade-DpHYZjCS.js","assets/portugal-2030.sibt-alentejo-_JXnooJS.js","assets/sibt-alentejo-oportunidade-D4iem-bJ.js","assets/portugal-2030.sibt-algarve-CClLJP5W.js","assets/sibt-algarve-oportunidade-v2.jpg.asset-H13_eXmZ.js","assets/portugal-2030.sibt-medio-tejo-BPlVL4op.js","assets/mapa-medio-tejo.png.asset-B-T6qMqA.js","assets/portugal-2030.sibt-norte-vkTy7kwb.js","assets/sibt-norte-oportunidade-v2.jpg.asset-wKZ3YmzK.js","assets/portugal-2030.sibt-oeste-CNXqUvGu.js","assets/sibt-oeste-oportunidade-v2.jpg.asset-aY9se-ot.js","assets/calendar-days-OBTUZppC.js","assets/portugal-2030.sibt-pinhal-interior-BycTaSm2.js","assets/sibt-pinhal-oportunidade-v2.jpg.asset-DOmvhLJJ.js","assets/prr.index-CzvJ8BSP.js","assets/hero-prr-modern-CoIYzE-v.js","assets/cta-final-pG2cT6dc.js","assets/prr-linha-ia-CeGrbuzo.js","assets/sun-BiwTG14W.js","assets/prr.bairros-comerciais-B7UyaoOa.js","assets/hero-prr-with-tablet-CbcpGfi_.js","assets/prr-bairros-comerciais--f8zyKAf.js","assets/prr.coaching-4-0-B-WDOPZk.js","assets/prr-coaching-40-BObm6E_G.js","assets/prr.descarbonizacao-Dgiat5lO.js","assets/wind-BZNiA3Gi.js","assets/prr.eficiencia-energetica-BzAvys5h.js","assets/prr-eficiencia-energetica-Fl7Mk1pZ.js","assets/gauge-9En56e9C.js","assets/prr.ifici-CJMqiyW0.js","assets/prr-ifici-hero-C0UHT1y_.js","assets/prr.internacionalizacao-ecommerce-bki8W8to.js","assets/prr-ecommerce-internacional-DerCzoFG.js","assets/smartphone-Rh1zxBwc.js","assets/chart-line-CBuvv6Lk.js","assets/prr.linha-ia-BjZeK7sR.js","assets/separador-ia-consulstaff.jpg.asset-Cg_v9pMj.js","assets/servicos.index-CKNVRLXH.js","assets/servico-fundos-DFEb9Pi4.js","assets/servico-turismo-D4fIsF10.js","assets/servico-industria-BxDCS6Gq.js","assets/servico-projetos-D5mnX-vY.js","assets/servico-marketing-BHtlAVvd.js","assets/servico-formacao-DhtNBip5.js","assets/multissetorial-D9P_RZDy.js","assets/servicos.consultoria-industrial-CHYesoIp.js","assets/secao1-new.jpg.asset-BGKaOHK0.js","assets/final-conclusao.png.asset-Cc4xV6k4.js","assets/banknote-C6_pgXOQ.js","assets/servicos.dgert-formacao-eCS-GLMm.js","assets/secao6.jpg.asset-BYwQ1CXT.js","assets/servicos.fundos-comunitarios-DyrWMhkH.js","assets/fase3-trabalho-CTekOAHg.js","assets/hammer-CvLcY_vG.js","assets/servicos.marketing-estrategico-DlciI2SB.js","assets/servicos.projetos-investimento-BxQS_xji.js","assets/servicos.turismo-hotelaria-B6y44fcG.js","assets/turismo-de-portugal.index-oLEO7chL.js","assets/pepac-diversificacao-DEj425hG.js","assets/turismo-de-portugal.crescer-com-turismo-CYFUqC0Q.js","assets/tdp-crescer-oportunidade-DLLCv0Xw.js","assets/turismo-de-portugal.fundo-investimento-interior-CqqsFDjL.js","assets/tdp-fundo-interior-imovel.jpg.asset-CvEUgem2.js","assets/file-check-corner-C4vPZeEH.js","assets/turismo-de-portugal.linha-qualificacao-oferta-CVxckPeK.js","assets/tdp-qualificacao-oportunidade-v2.jpg.asset-QRnfHKU1.js","assets/turismo-de-portugal.revive-CVHS9Fi_.js","assets/tdp-revive-patrimonio.jpg.asset-O992cEqc.js","assets/turismo-de-portugal.si-portugal-events-LYf17G_f.js","assets/snowflake-BxJ_xF5Z.js","assets/en.acores-2030.building-small-business-BY5jMci2.js","assets/MedidaDetailEn-Dj4GRXEb.js","assets/en.acores-2030.building-young-investor-Bloz7p7v.js","assets/en.acores-2030.productive-innovation-CoGC-0x2.js","assets/en.blog.index-CRGlL1wX.js","assets/en.blog._slug-CTCWp47U.js","assets/en.pepac.agri-food-modernisation-Bh6fxQUq.js","assets/en.pepac.diversification-trade-services-DZoZmLCK.js","assets/en.pepac.forestry-bioeconomy-1u-65wpo.js","assets/en.pepac.small-bioeconomy-investments-DN5_77BB.js","assets/en.portugal-2030.productive-innovation-DoCxBXQs.js","assets/en.portugal-2030.qualified-hr-mhRdy8E4.js","assets/en.portugal-2030.rd-innovation-Dix-xRB_.js","assets/en.portugal-2030.sibt-alentejo-C5oQSvCN.js","assets/en.portugal-2030.sibt-algarve-BHUD8VBK.js","assets/en.portugal-2030.sibt-medio-tejo-B81yUeiH.js","assets/en.portugal-2030.sibt-norte-C5qOXVcq.js","assets/en.portugal-2030.sibt-oeste-CJLcFY6b.js","assets/en.portugal-2030.sibt-pinhal-interior-eesEsOZD.js","assets/en.portugal-2030.sme-internationalisation-B9OtYtRo.js","assets/en.portugal-2030.sme-qualification-B_oAnAEM.js","assets/en.portugal-2030.territorial-investment-Ch27p7Xd.js","assets/en.prr.ai-line-Bku5P6Qe.js","assets/en.prr.coaching-4-0-Be-JDgSX.js","assets/en.prr.commercial-neighbourhoods-C3KsEHtl.js","assets/en.prr.decarbonisation-B7KGUP_h.js","assets/HeroStatsBarEn-6wQzh6hj.js","assets/en.prr.energy-efficiency-Cgrw_SHT.js","assets/en.prr.ifici-Dgz1mGPB.js","assets/en.prr.internationalisation-ecommerce-M6CGz6ws.js","assets/en.services.index-D-Me1_72.js","assets/en.services.dgert-training-U-PPHHOE.js","assets/ServiceDetailPageEn-Md13ph9w.js","assets/en.services.funding-grants-BkiwWQsW.js","assets/en.services.industrial-consulting-mW8b1Y7F.js","assets/en.services.investment-projects-Bi7I9ojm.js","assets/en.services.strategic-marketing-Fq3_aTPo.js","assets/en.services.tourism-hospitality-DrnXCHgy.js","assets/en.turismo-de-portugal.growing-with-tourism-BjSo2MA7.js","assets/en.turismo-de-portugal.interior-investment-fund-CYREx3G4.js","assets/en.turismo-de-portugal.offer-qualification-BDCzkoyA.js","assets/en.turismo-de-portugal.revive-HjsRy9-b.js","assets/en.turismo-de-portugal.si-portugal-events-D9ZrAsdZ.js","assets/es.acores-2030.index-BA0CFj6B.js","assets/es.acores-2030.construir-joven-inversor-ClSX_Szq.js","assets/es.acores-2030.construir-pequenos-negocios-CBEnmpYj.js","assets/es.blog.index-Vca1geeU.js","assets/es.blog._slug-4RmhCuMz.js","assets/es.pepac.index-CRpL2EUd.js","assets/es.pepac.bioeconomia-agroindustria-DqoUH0tJ.js","assets/MedidaPepacPageEs-DMd61cnO.js","assets/es.pepac.bioeconomia-forestal-CoMAHhV9.js","assets/es.pepac.diversificacion-comercio-servicios-DlTI2k1L.js","assets/es.pepac.pequenas-inversiones-bioeconomia-DFy7RCKq.js","assets/es.portugal-2030.index-CeSQiA3W.js","assets/es.portugal-2030.cualificacion-pyme-CNQysfe0.js","assets/HeroStatsBarEs-CHSbJ9W-.js","assets/es.portugal-2030.idi-CpzkE_hM.js","assets/es.portugal-2030.innovacion-productiva-DJzWZa5X.js","assets/es.portugal-2030.internacionalizacion-pyme-txzcYFuP.js","assets/es.portugal-2030.rrhh-cualificados-Bi15DRSh.js","assets/es.portugal-2030.si-base-territorial-DIDJ9uX-.js","assets/es.portugal-2030.sibt-alentejo-DF99GC9s.js","assets/es.portugal-2030.sibt-algarve-CT4zYsd9.js","assets/es.portugal-2030.sibt-medio-tejo-ToyjESkR.js","assets/es.portugal-2030.sibt-norte-DLk3WQIb.js","assets/es.portugal-2030.sibt-oeste-DEQ4bG1A.js","assets/es.portugal-2030.sibt-pinhal-interior-CrJdESC4.js","assets/es.prr.index-B61rs-ca.js","assets/es.prr.barrios-comerciales-Cvw1KrY6.js","assets/es.prr.coaching-4-0-BkfsNz9x.js","assets/es.prr.descarbonizacion-BpXYIaMq.js","assets/es.prr.eficiencia-energetica-vNJHPV9b.js","assets/es.prr.ifici-BtIWY3ar.js","assets/es.prr.internacionalizacion-ecommerce-BxQmX1Jd.js","assets/es.prr.linea-ia-Bqqxx9ee.js","assets/es.servicios.index-qVlYwdbh.js","assets/es.servicios.consultoria-industrial-DCC1UpwY.js","assets/ServiceDetailPageEs-DP2wsiHm.js","assets/es.servicios.fondos-comunitarios-BBI6d8K4.js","assets/es.servicios.formacion-dgert-IsUtIIKw.js","assets/es.servicios.marketing-estrategico-Cnd19KCZ.js","assets/es.servicios.proyectos-inversion-Ca8vwrNV.js","assets/es.servicios.tur
vendor: 19,763 bytes, lines 1-2
1ismo-hosteleria-1F_bpeev.js","assets/es.turismo-de-portugal.index-CeEoHgEm.js","assets/es.turismo-de-portugal.crecer-con-turismo-B5mh_P3E.js","assets/es.turismo-de-portugal.fondo-inversion-interior-ByTwadsn.js","assets/es.turismo-de-portugal.linea-cualificacion-oferta-C9uvEzY6.js","assets/es.turismo-de-portugal.revive-Bil17_eP.js","assets/es.turismo-de-portugal.si-portugal-events-Xmi6ErrZ.js"])))=>i.map(i=>d[i]); 2function BS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var od={exports:{}},ji={};var Ev;function qS(){if(Ev)return ji;Ev=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:u,ref:l!==void 0?l:null,props:c}}return ji.Fragment=t,ji.jsx=r,ji.jsxs=r,ji}var Cv;function HS(){return Cv||(Cv=1,od.exports=qS()),od.exports}var Q=HS(),sd={exports:{}},he={};var Tv;function VS(){if(Tv)return he;Tv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.iterator;function _(O){return O===null||typeof O!="object"?null:(O=w&&O[w]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function E(O,F,Z){this.props=O,this.context=F,this.refs=R,this.updater=Z||S}E.prototype.isReactComponent={},E.prototype.setState=function(O,F){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,F,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function A(){}A.prototype=E.prototype;function $(O,F,Z){this.props=O,this.context=F,this.refs=R,this.updater=Z||S}var N=$.prototype=new A;N.constructor=$,C(N,E.prototype),N.isPureReactComponent=!0;var V=Array.isArray;function K(){}var z={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function X(O,F,Z){var ee=Z.ref;return{$$typeof:e,type:O,key:F,ref:ee!==void 0?ee:null,props:Z}}function ce(O,F){return X(O.type,F,O.props)}function ie(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function ue(O){var F={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(Z){return F[Z]})}var ft=/\/+/g;function He(O,F){return typeof O=="object"&&O!==null&&O.key!=null?ue(""+O.key):F.toString(36)}function Je(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(K,K):(O.status="pending",O.then(function(F){O.status==="pending"&&(O.status="fulfilled",O.value=F)},function(F){O.status==="pending"&&(O.status="rejected",O.reason=F)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function B(O,F,Z,ee,se){var ve=typeof O;(ve==="undefined"||ve==="boolean")&&(O=null);var Ee=!1;if(O===null)Ee=!0;else switch(ve){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(O.$$typeof){case e:case t:Ee=!0;break;case v:return Ee=O._init,B(Ee(O._payload),F,Z,ee,se)}}if(Ee)return se=se(O),Ee=ee===""?"."+He(O,0):ee,V(se)?(Z="",Ee!=null&&(Z=Ee.replace(ft,"$&/")+"/"),B(se,F,Z,"",function(Ln){return Ln})):se!=null&&(ie(se)&&(se=ce(se,Z+(se.key==null||O&&O.key===se.key?"":(""+se.key).replace(ft,"$&/")+"/")+Ee)),F.push(se)),1;Ee=0;var Xe=ee===""?".":ee+":";if(V(O))for(var je=0;je<O.length;je++)ee=O[je],ve=Xe+He(ee,je),Ee+=B(ee,F,Z,ve,se);else if(je=_(O),typeof je=="function")for(O=je.call(O),je=0;!(ee=O.next()).done;)ee=ee.value,ve=Xe+He(ee,je++),Ee+=B(ee,F,Z,ve,se);else if(ve==="object"){if(typeof O.then=="function")return B(Je(O),F,Z,ee,se);throw F=String(O),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function J(O,F,Z){if(O==null)return O;var ee=[],se=0;return B(O,ee,"","",function(ve){return F.call(Z,ve,se++)}),ee}function le(O){if(O._status===-1){var F=O._result;F=F(),F.then(function(Z){(O._status===0||O._status===-1)&&(O._status=1,O._result=Z)},function(Z){(O._status===0||O._status===-1)&&(O._status=2,O._result=Z)}),O._status===-1&&(O._status=0,O._result=F)}if(O._status===1)return O._result.default;throw O._result}var Pe=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Le={map:J,forEach:function(O,F,Z){J(O,function(){F.apply(this,arguments)},Z)},count:function(O){var F=0;return J(O,function(){F++}),F},toArray:function(O){return J(O,function(F){return F})||[]},only:function(O){if(!ie(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return he.Activity=g,he.Children=Le,he.Component=E,he.Fragment=r,he.Profiler=l,he.PureComponent=$,he.StrictMode=s,he.Suspense=p,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,he.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},he.cache=function(O){return function(){return O.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(O,F,Z){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ee=C({},O.props),se=O.key;if(F!=null)for(ve in F.key!==void 0&&(se=""+F.key),F)!Y.call(F,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&F.ref===void 0||(ee[ve]=F[ve]);var ve=arguments.length-2;if(ve===1)ee.children=Z;else if(1<ve){for(var Ee=Array(ve),Xe=0;Xe<ve;Xe++)Ee[Xe]=arguments[Xe+2];ee.children=Ee}return X(O.type,se,ee)},he.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},he.createElement=function(O,F,Z){var ee,se={},ve=null;if(F!=null)for(ee in F.key!==void 0&&(ve=""+F.key),F)Y.call(F,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(se[ee]=F[ee]);var Ee=arguments.length-2;if(Ee===1)se.children=Z;else if(1<Ee){for(var Xe=Array(Ee),je=0;je<Ee;je++)Xe[je]=arguments[je+2];se.children=Xe}if(O&&O.defaultProps)for(ee in Ee=O.defaultProps,Ee)se[ee]===void 0&&(se[ee]=Ee[ee]);return X(O,ve,se)},he.createRef=function(){return{current:null}},he.forwardRef=function(O){return{$$typeof:h,render:O}},he.isValidElement=ie,he.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:le}},he.memo=function(O,F){return{$$typeof:m,type:O,compare:F===void 0?null:F}},he.startTransition=function(O){var F=z.T,Z={};z.T=Z;try{var ee=O(),se=z.S;se!==null&&se(Z,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(K,Pe)}catch(ve){Pe(ve)}finally{F!==null&&Z.types!==null&&(F.types=Z.types),z.T=F}},he.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},he.use=function(O){return z.H.use(O)},he.useActionState=function(O,F,Z){return z.H.useActionState(O,F,Z)},he.useCallback=function(O,F){return z.H.useCallback(O,F)},he.useContext=function(O){return z.H.useContext(O)},he.useDebugValue=function(){},he.useDeferredValue=function(O,F){return z.H.useDeferredValue(O,F)},he.useEffect=function(O,F){return z.H.useEffect(O,F)},he.useEffectEvent=function(O){return z.H.useEffectEvent(O)},he.useId=function(){return z.H.useId()},he.useImperativeHandle=function(O,F,Z){return z.H.useImperativeHandle(O,F,Z)},he.useInsertionEffect=function(O,F){return z.H.useInsertionEffect(O,F)},he.useLayoutEffect=function(O,F){return z.H.useLayoutEffect(O,F)},he.useMemo=function(O,F){return z.H.useMemo(O,F)},he.useOptimistic=function(O,F){return z.H.useOptimistic(O,F)},he.useReducer=function(O,F,Z){return z.H.useReducer(O,F,Z)},he.useRef=function(O){return z.H.useRef(O)},he.useState=function(O){return z.H.useState(O)},he.useSyncExternalStore=function(O,F,Z){return z.H.useSyncExternalStore(O,F,Z)},he.useTransition=function(){return z.H.useTransition()},he.version="19.2.5",he}var Av;function ma(){return Av||(Av=1,sd.exports=VS()),sd.exports}var oe=ma();const Wi=BS(oe);var id={exports:{}},Mi={},ad={exports:{}},ld={};var Pv;function FS(){return Pv||(Pv=1,(function(e){function t(B,J){var le=B.length;B.push(J);e:for(;0<le;){var Pe=le-1>>>1,Le=B[Pe];if(0<l(Le,J))B[Pe]=J,B[le]=Le,le=Pe;else break e}}function r(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var J=B[0],le=B.pop();if(le!==J){B[0]=le;e:for(var Pe=0,Le=B.length,O=Le>>>1;Pe<O;){var F=2*(Pe+1)-1,Z=B[F],ee=F+1,se=B[ee];if(0>l(Z,le))ee<Le&&0>l(se,Z)?(B[Pe]=se,B[ee]=le,Pe=ee):(B[Pe]=Z,B[F]=le,Pe=F);else if(ee<Le&&0>l(se,le))B[Pe]=se,B[ee]=le,Pe=ee;else break e}}return J}function l(B,J){var le=B.sortIndex-J.sortIndex;return le!==0?le:B.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var p=[],m=[],v=1,g=null,w=3,_=!1,S=!1,C=!1,R=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function N(B){for(var J=r(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=B)s(m),J.sortIndex=J.expirationTime,t(p,J);else break;J=r(m)}}function V(B){if(C=!1,N(B),!S)if(r(p)!==null)S=!0,K||(K=!0,ue());else{var J=r(m);J!==null&&Je(V,J.startTime-B)}}var K=!1,z=-1,Y=5,X=-1;function ce(){return R?!0:!(e.unstable_now()-X<Y)}function ie(){if(R=!1,K){var B=e.unstable_now();X=B;var J=!0;try{e:{S=!1,C&&(C=!1,A(z),z=-1),_=!0;var le=w;try{t:{for(N(B),g=r(p);g!==null&&!(g.expirationTime>B&&ce());){var Pe=g.callback;if(typeof Pe=="function"){g.callback=null,w=g.priorityLevel;var Le=Pe(g.expirationTime<=B);if(B=e.unstable_now(),typeof Le=="function"){g.callback=Le,N(B),J=!0;break t}g===r(p)&&s(p),N(B)}else s(p);g=r(p)}if(g!==null)J=!0;else{var O=r(m);O!==null&&Je(V,O.startTime-B),J=!1}}break e}finally{g=null,w=le,_=!1}J=void 0}}finally{J?ue():K=!1}}}var ue;if(typeof $=="function")ue=function(){$(ie)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,He=ft.port2;ft.port1.onmessage=ie,ue=function(){He.postMessage(null)}}else ue=function(){E(ie,0)};function Je(B,J){z=E(function(){B(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_next=function(B){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var le=w;w=J;try{return B()}finally{w=le}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(B,J){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var le=w;w=B;try{return J()}finally{w=le}},e.unstable_scheduleCallback=function(B,J,le){var Pe=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Pe+le:Pe):le=Pe,B){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=le+Le,B={id:v++,callback:J,priorityLevel:B,startTime:le,expirationTime:Le,sortIndex:-1},le>Pe?(B.sortIndex=le,t(m,B),r(p)===null&&B===r(m)&&(C?(A(z),z=-1):C=!0,Je(V,le-Pe))):(B.sortIndex=Le,t(p,B),S||_||(S=!0,K||(K=!0,ue()))),B},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(B){var J=w;return function(){var le=w;w=J;try{return B.apply(this,arguments)}finally{w=le}}}})(ld)),ld}var Ov;function GS(){return Ov||(Ov=1,ad.exports=FS()),ad.exports}var cd={exports:{}},Et={};var Lv;function KS(){if(Lv)return Et;Lv=1;var e=ma();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,m,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:g==null?null:""+g,children:p,containerInfo:m,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Et.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return c(p,m,null,v)},Et.flushSync=function(p){var m=u.T,v=s.p;try{if(u.T=null,s.p=2,p)return p()}finally{u.T=m,s.p=v,s.d.f()}},Et.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},Et.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Et.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,g=h(v,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:w,fetchPriority:_}):v==="script"&&s.d.X(p,{crossOrigin:g,integrity:w,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Et.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},Et.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,g=h(v,m.crossOrigin);s.d.L(p,v,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Et.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=h(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},Et.requestFormReset=function(p){s.d.r(p)},Et.unstable_batchedUpdates=function(p,m){return p(m)},Et.useFormState=function(p,m,v){return u.H.useFormState(p,m,v)},Et.useFormStatus=function(){return u.H.useHostTransitionStatus()},Et.version="19.2.5",Et}var Iv;function w0(){if(Iv)return cd.exports;Iv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),cd.exports=KS(),cd.exports}var kv;function YS(){if(kv)return Mi;kv=1;var e=GS(),t=ma(),r=w0();function s(n){var o="https://react.dev/errors/"+n;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)o+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var o=n,i=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(i=o.return),n=o.return;while(n)}return o.tag===3?i:null}function u(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function h(n){if(n.tag===31){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function p(n){if(c(n)!==n)throw Error(s(188))}function m(n){var o=n.alternate;if(!o){if(o=c(n),o===null)throw Error(s(188));return o!==n?null:n}for(var i=n,a=o;;){var f=i.return;if(f===null)break;var d=f.alternate;if(d===null){if(a=f.return,a!==null){i=a;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===i)return p(f),n;if(d===a)return p(f),o;d=d.sibling}throw Error(s(188))}if(i.return!==a.return)i=f,a=d;else{for(var y=!1,b=f.child;b;){if(b===i){y=!0,i=f,a=d;break}if(b===a){y=!0,a=f,i=d;break}b=b.sibling}if(!y){for(b=d.child;b;){if(b===i){y=!0,i=d,a=f;break}if(b===a){y=!0,a=d,i=f;break}b=b.sibling}if(!y)throw Error(s(189))}}if(i.alternate!==a)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?n:o}function v(n){var o=n.tag;if(o===5||o===26||o===27||o===6)return n;for(n=n.child;n!==null;){if(o=v(n),o!==null)return o;n=n.sibling}return null}var g=Object.assign,w=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),$=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=ie&&n[ie]||n["@@iterator"],typeof n=="function"?n:null)}var ft=Symbol.for("react.client.reference");function He(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ft?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case C:return"Fragment";case E:return"Profiler";case R:return"StrictMode";case V:return"Suspense";case K:return"SuspenseList";case X:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case $:return n.displayName||"Context";case A:return(n._context.displayName||"Context")+".Consumer";case N:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return o=n.displayName||null,o!==null?o:He(n.type)||"Memo";case Y:o=n._payload,n=n._init;try{return He(n(o))}catch{}}return null}var Je=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Pe=[],Le=-1;function O(n){return{current:n}}function F(n){0>
vendor: 4,105 bytes, lines 2-9
2Le||(n.current=Pe[Le],Pe[Le]=null,Le--)}function Z(n,o){Le++,Pe[Le]=n.current,n.current=o}var ee=O(null),se=O(null),ve=O(null),Ee=O(null);function Xe(n,o){switch(Z(ve,o),Z(se,n),Z(ee,null),o.nodeType){case 9:case 11:n=(n=o.documentElement)&&(n=n.namespaceURI)?Kg(n):0;break;default:if(n=o.tagName,o=o.namespaceURI)o=Kg(o),n=Yg(o,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}F(ee),Z(ee,n)}function je(){F(ee),F(se),F(ve)}function Ln(n){n.memoizedState!==null&&Z(Ee,n);var o=ee.current,i=Yg(o,n.type);o!==i&&(Z(se,n),Z(ee,i))}function In(n){se.current===n&&(F(ee),F(se)),Ee.current===n&&(F(Ee),ki._currentValue=le)}var ar,Bs;function wn(n){if(ar===void 0)try{throw Error()}catch(i){var o=i.stack.trim().match(/\n( *(at )?)/);ar=o&&o[1]||"",Bs=-1<i.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+ar+n+Bs}var qs=!1;function Lo(n,o){if(!n||qs)return"";qs=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(o){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(U){var M=U}Reflect.construct(n,[],G)}else{try{G.call()}catch(U){M=U}n.call(G.prototype)}}else{try{throw Error()}catch(U){M=U}(G=n())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(U){if(U&&M&&typeof U.stack=="string")return[U.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=a.DetermineComponentFrameRoot(),y=d[0],b=d[1];if(y&&b){var T=y.split(` 5`),j=b.split(` 6`);for(f=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;f<j.length&&!j[f].includes("DetermineComponentFrameRoot");)f++;if(a===T.length||f===j.length)for(a=T.length-1,f=j.length-1;1<=a&&0<=f&&T[a]!==j[f];)f--;for(;1<=a&&0<=f;a--,f--)if(T[a]!==j[f]){if(a!==1||f!==1)do if(a--,f--,0>f||T[a]!==j[f]){var q=` 7`+T[a].replace(" at new "," at ");return n.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",n.displayName)),q}while(1<=a&&0<=f);break}}}finally{qs=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?wn(i):""}function ya(n,o){switch(n.tag){case 26:case 27:case 5:return wn(n.type);case 16:return wn("Lazy");case 13:return n.child!==o&&o!==null?wn("Suspense Fallback"):wn("Suspense");case 19:return wn("SuspenseList");case 0:case 15:return Lo(n.type,!1);case 11:return Lo(n.type.render,!1);case 1:return Lo(n.type,!0);case 31:return wn("Activity");default:return""}}function kn(n){try{var o="",i=null;do o+=ya(n,i),i=n,n=n.return;while(n);return o}catch(a){return` 8Error generating stack: `+a.message+` 9`+a.stack}}var Qr=Object.prototype.hasOwnProperty,fn=e.unstable_scheduleCallback,Hs=e.unstable_cancelCallback,wa=e.unstable_shouldYield,Vc=e.unstable_requestPaint,Rt=e.unstable_now,Ne=e.unstable_getCurrentPriorityLevel,vt=e.unstable_ImmediatePriority,_n=e.unstable_UserBlockingPriority,Io=e.unstable_NormalPriority,S_=e.unstable_LowPriority,Ah=e.unstable_IdlePriority,R_=e.log,E_=e.unstable_setDisableYieldValue,Vs=null,Bt=null;function lr(n){if(typeof R_=="function"&&E_(n),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Vs,n)}catch{}}var qt=Math.clz32?Math.clz32:A_,C_=Math.log,T_=Math.LN2;function A_(n){return n>>>=0,n===0?32:31-(C_(n)/T_|0)|0}var _a=256,ba=262144,Sa=4194304;function Jr(n){var o=n&42;if(o!==0)return o;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;
vendor: 5,621 bytes, line 9
9case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ra(n,o,i){var a=n.pendingLanes;if(a===0)return 0;var f=0,d=n.suspendedLanes,y=n.pingedLanes;n=n.warmLanes;var b=a&134217727;return b!==0?(a=b&~d,a!==0?f=Jr(a):(y&=b,y!==0?f=Jr(y):i||(i=b&~n,i!==0&&(f=Jr(i))))):(b=a&~d,b!==0?f=Jr(b):y!==0?f=Jr(y):i||(i=a&~n,i!==0&&(f=Jr(i)))),f===0?0:o!==0&&o!==f&&(o&d)===0&&(d=f&-f,i=o&-o,d>=i||d===32&&(i&4194048)!==0)?o:f}function Fs(n,o){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&o)===0}function P_(n,o){switch(n){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ph(){var n=Sa;return Sa<<=1,(Sa&62914560)===0&&(Sa=4194304),n}function Fc(n){for(var o=[],i=0;31>i;i++)o.push(n);return o}function Gs(n,o){n.pendingLanes|=o,o!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function O_(n,o,i,a,f,d){var y=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var b=n.entanglements,T=n.expirationTimes,j=n.hiddenUpdates;for(i=y&~i;0<i;){var q=31-qt(i),G=1<<q;b[q]=0,T[q]=-1;var M=j[q];if(M!==null)for(j[q]=null,q=0;q<M.length;q++){var U=M[q];U!==null&&(U.lane&=-536870913)}i&=~G}a!==0&&Oh(n,a,0),d!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=d&~(y&~o))}function Oh(n,o,i){n.pendingLanes|=o,n.suspendedLanes&=~o;var a=31-qt(o);n.entangledLanes|=o,n.entanglements[a]=n.entanglements[a]|1073741824|i&261930}function Lh(n,o){var i=n.entangledLanes|=o;for(n=n.entanglements;i;){var a=31-qt(i),f=1<<a;f&o|n[a]&o&&(n[a]|=o),i&=~f}}function Ih(n,o){var i=o&-o;return i=(i&42)!==0?1:Gc(i),(i&(n.suspendedLanes|o))!==0?0:i}function Gc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Kc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function kh(){var n=J.p;return n!==0?n:(n=window.event,n===void 0?32:vv(n.type))}function $h(n,o){var i=J.p;try{return J.p=n,o()}finally{J.p=i}}var cr=Math.random().toString(36).slice(2),yt="__reactFiber$"+cr,Lt="__reactProps$"+cr,ko="__reactContainer$"+cr,Yc="__reactEvents$"+cr,L_="__reactListeners$"+cr,I_="__reactHandles$"+cr,xh="__reactResources$"+cr,Ks="__reactMarker$"+cr;function Qc(n){delete n[yt],delete n[Lt],delete n[Yc],delete n[L_],delete n[I_]}function $o(n){var o=n[yt];if(o)return o;for(var i=n.parentNode;i;){if(o=i[ko]||i[yt]){if(i=o.alternate,o.child!==null||i!==null&&i.child!==null)for(n=tv(n);n!==null;){if(i=n[yt])return i;n=tv(n)}return o}n=i,i=n.parentNode}return null}function xo(n){if(n=n[yt]||n[ko]){var o=n.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return n}return null}function Ys(n){var o=n.tag;if(o===5||o===26||o===27||o===6)return n.stateNode;throw Error(s(33))}function Do(n){var o=n[xh];return o||(o=n[xh]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function dt(n){n[Ks]=!0}var Dh=new Set,jh={};function Xr(n,o){jo(n,o),jo(n+"Capture",o)}function jo(n,o){for(jh[n]=o,n=0;n<o.length;n++)Dh.add(o[n])}var k_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mh={},Nh={};function $_(n){return Qr.call(Nh,n)?!0:Qr.call(Mh,n)?!1:k_.test(n)?Nh[n]=!0:(Mh[n]=!0,!1)}function Ea(n,o,i){if($_(o))if(i===null)n.removeAttribute(o);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(o);return;case"boolean":var a=o.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){n.removeAttribute(o);return}}n.setAttribute(o,""+i)}}function Ca(n,o,i){if(i===null)n.removeAttribute(o);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttribute(o,""+i)}}function $n(n,o,i,a){if(a===null)n.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(o,i,""+a)}}function Zt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function zh(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function x_(n,o,i){var a=Object.getOwnPropertyDescriptor(n.constructor.prototype,o);if(!n.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,d=a.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return f.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(n,o,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}
vendor: 4,919 bytes, line 9
9function Jc(n){if(!n._valueTracker){var o=zh(n)?"checked":"value";n._valueTracker=x_(n,o,""+n[o])}}function Uh(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var i=o.getValue(),a="";return n&&(a=zh(n)?n.checked?"true":"false":n.value),n=a,n!==i?(o.setValue(n),!0):!1}function Ta(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var D_=/[\n"\\]/g;function Wt(n){return n.replace(D_,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Xc(n,o,i,a,f,d,y,b){n.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.type=y:n.removeAttribute("type"),o!=null?y==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+Zt(o)):n.value!==""+Zt(o)&&(n.value=""+Zt(o)):y!=="submit"&&y!=="reset"||n.removeAttribute("value"),o!=null?Zc(n,y,Zt(o)):i!=null?Zc(n,y,Zt(i)):a!=null&&n.removeAttribute("value"),f==null&&d!=null&&(n.defaultChecked=!!d),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.name=""+Zt(b):n.removeAttribute("name")}function Bh(n,o,i,a,f,d,y,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(n.type=d),o!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||o!=null)){Jc(n);return}i=i!=null?""+Zt(i):"",o=o!=null?""+Zt(o):i,b||o===n.value||(n.value=o),n.defaultValue=o}a=a??f,a=typeof a!="function"&&typeof a!="symbol"&&!!a,n.checked=b?n.checked:!!a,n.defaultChecked=!!a,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.name=y),Jc(n)}function Zc(n,o,i){o==="number"&&Ta(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function Mo(n,o,i,a){if(n=n.options,o){o={};for(var f=0;f<i.length;f++)o["$"+i[f]]=!0;for(i=0;i<n.length;i++)f=o.hasOwnProperty("$"+n[i].value),n[i].selected!==f&&(n[i].selected=f),f&&a&&(n[i].defaultSelected=!0)}else{for(i=""+Zt(i),o=null,f=0;f<n.length;f++){if(n[f].value===i){n[f].selected=!0,a&&(n[f].defaultSelected=!0);return}o!==null||n[f].disabled||(o=n[f])}o!==null&&(o.selected=!0)}}function qh(n,o,i){if(o!=null&&(o=""+Zt(o),o!==n.value&&(n.value=o),i==null)){n.defaultValue!==o&&(n.defaultValue=o);return}n.defaultValue=i!=null?""+Zt(i):""}function Hh(n,o,i,a){if(o==null){if(a!=null){if(i!=null)throw Error(s(92));if(Je(a)){if(1<a.length)throw Error(s(93));a=a[0]}i=a}i==null&&(i=""),o=i}i=Zt(o),n.defaultValue=i,a=n.textContent,a===i&&a!==""&&a!==null&&(n.value=a),Jc(n)}function No(n,o){if(o){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=o;return}}n.textContent=o}var j_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vh(n,o,i){var a=o.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?a?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="":a?n.setProperty(o,i):typeof i!="number"||i===0||j_.has(o)?o==="float"?n.cssFloat=i:n[o]=(""+i).trim():n[o]=i+"px"}function Fh(n,o,i){if(o!=null&&typeof o!="object")throw Error(s(62));if(n=n.style,i!=null){for(var a in i)!i.hasOwnProperty(a)||o!=null&&o.hasOwnProperty(a)||(a.indexOf("--")===0?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="");for(var f in o)a=o[f],o.hasOwnProperty(f)&&i[f]!==a&&Vh(n,f,a)}else for(var d in o)o.hasOwnProperty(d)&&Vh(n,d,o[d])}function Wc(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var M_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),N_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Aa(n){return N_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function xn(){}var eu=null;function tu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var zo=null,Uo=null;function Gh(n){var o=xo(n);if(o&&(n=o.stateNode)){var i=n[Lt]||null;e:switch(n=o.stateNode,o.type){case"input":if(Xc(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),o=i.name,i.type==="radio"&&o!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Wt(""+o)+'"][type="radio"]'),o=0;o<i.length;o++){var a=i[o];if(a!==n&&a.form===n.form){var f=a[Lt]||null;if(!f)throw Error(s(90));Xc(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(o=0;o<i.length;o++)a=i[o],a.form===n.form&&Uh(a)}break e;case"textarea":qh(n,i.value,i.defaultValue);break e;case"select":o=i.value,o!=null&&Mo(n,!!i.multiple,o,!1)}}}var nu=!1;function Kh(n,o,i){if(nu)return n(o,i);nu=!0;try{var a=n(o);return a}finally{if(nu=!1,(zo!==null||Uo!==null)&&(pl(),zo&&(o=zo,n=Uo,Uo=zo=null,Gh(o),n)))for(o=0;o<n.length;o++)Gh(n[o])}}function Qs(n,o){var i=n.stateNode;if(i===null)return null;var a=i[Lt]||null;if(a===null)return null;i=a[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(n=n.type,a=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!a;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(s(231,o,typeof i));return i}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ru=!1;if(Dn)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){ru=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{ru=!1}var ur=null,ou=null,Pa=null;function Yh(){if(Pa)return Pa;var n,o=ou,i=o.length,a,f="value"in ur?ur.value:ur.textContent,d=f.length;for(n=0;n<i&&o[n]===f[n];n++);var y=i-n;for(a=1;a<=y&&o[i-a]===f[d-a];a++);return Pa=f.slice(n,1<a?1-a:void 0)}function Oa(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function La(){return!0}function Qh(){return!1}function It(n){function o(i,a,f,d,y){this._reactName=i,this._targetInst=f,this.type=a,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var b in n)n.hasOwnProperty(b)&&(i=n[b],this[b]=i?i(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?La:Qh,this.isPropagationStopped=Qh,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=La)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=La)},persist:function(){},isPersistent:La}),o}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ia=It(Zr),Xs=g({},Zr,{view:0,detail:0}
vendor: 1,818 bytes, line 9
9),z_=It(Xs),su,iu,Zs,ka=g({},Xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Zs&&(Zs&&n.type==="mousemove"?(su=n.screenX-Zs.screenX,iu=n.screenY-Zs.screenY):iu=su=0,Zs=n),su)},movementY:function(n){return"movementY"in n?n.movementY:iu}}),Jh=It(ka),U_=g({},ka,{dataTransfer:0}),B_=It(U_),q_=g({},Xs,{relatedTarget:0}),au=It(q_),H_=g({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),V_=It(H_),F_=g({},Zr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),G_=It(F_),K_=g({},Zr,{data:0}),Xh=It(K_),Y_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},J_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X_(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=J_[n])?!!o[n]:!1}function lu(){return X_}var Z_=g({},Xs,{key:function(n){if(n.key){var o=Y_[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=Oa(n),n===13?"Enter":String.fromCharCode(n)):n.type==="
9keydown"||n.type==="keyup"?Q_[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(n){return n.type==="keypress"?Oa(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Oa(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),W_=It(Z_),eb=g({},ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zh=It(eb),tb=g({},Xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),nb=It(tb),rb=g({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ob=It(rb),sb=g({},ka,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),ib=It(sb),ab=g({},Zr,{newState:0,oldState:0}),lb=It(ab),cb=[9,13,27,32],cu=Dn&&"CompositionEvent"in window,Ws=null;Dn&&"documentMode"in document&&(Ws=document.documentMode);var ub=Dn&&"TextEvent"in window&&!Ws,Wh=Dn&&(!cu||Ws&&8<Ws&&11>=Ws),ep=" ",tp=!1;function np(n,o){switch(n){case"keyup":return cb.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Bo=!1;function fb(n,o){switch(n){case"compositionend":return rp(o);case"keypress":return o.which!==32?null:(tp=!0,ep);case"textInput":return n=o.data,n===ep&&tp?null:n;default:return null}}function db(n,o){if(Bo)return n==="compositionend"||!cu&&np(n,o)?(n=Yh(),Pa=ou=ur=null,Bo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Wh&&o.locale!=="ko"?null:o.data;default:return null}}var hb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function op(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!hb[n.type]:o==="textarea"}function sp(n,o,i,a){zo?Uo?Uo.push(a):Uo=[a]:zo=a,o=bl(o,"onChange"),0<o.length&&(i=new Ia("onChange","change",null,i,a),n.push({event:i,listeners:o}))}var ei=null,ti=null;function pb(n){Bg(n,0)}function $a(n){var o=Ys(n);if(Uh(o))return n}function ip(n,o){if(n==="change")return o}var ap=!1;if(Dn){var uu;if(Dn){var fu="oninput"in document;if(!fu){var lp=document.createElement("div");lp.setAttribute("oninput","return;"),fu=typeof lp.oninput=="function"}uu=fu}else uu=!1;ap=uu&&(!document.documentMode||9<document.documentMode)}function cp(){ei&&(ei.detachEvent("onpropertychange",up),ti=ei=null)}function up(n){if(n.propertyName==="value"&&$a(ti)){var o=[];sp(o,ti,n,tu(n)),Kh(pb,o)}}function mb(n,o,i){n==="focusin"?(cp(),ei=o,ti=i,ei.attachEvent("onpropertychange",up)):n==="focusout"&&cp()}function gb(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $a(ti)}function vb(n,o){if(n==="click")return $a(o)}function yb(n,o){if(n==="input"||n==="change")return $a(o)}function wb(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Ht=typeof Object.is=="function"?Object.is:wb;function ni(n,o){if(Ht(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var i=Object.keys(n),a=Object.keys(o);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var f=i[a];if(!Qr.call(o,f)||!Ht(n[f],o[f]))return!1}return!0}function fp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function dp(n,o){var i=fp(n);n=0;for(var a;i;){if(i.nodeType===3){if(a=n+i.textContent.length,n<=o&&a>=o)return{node:i,offset:o-n};n=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=fp(i)}}function hp(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?hp(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function pp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var o=Ta(n.document);o instanceof n.HTMLIFrameElement;){try{var i=typeof o.contentWindow.location.href=="string"}catch{i=!1}if(i)n=o.contentWindow;else break;o=Ta(n.document)}return o}function du(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}var _b=Dn&&"documentMode"in document&&11>=document.documentMode,qo=null,hu=null,ri=null,pu=!1;function mp(n,o,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;
vendor: 19,238 bytes, line 9
9pu||qo==null||qo!==Ta(a)||(a=qo,"selectionStart"in a&&du(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ri&&ni(ri,a)||(ri=a,a=bl(hu,"onSelect"),0<a.length&&(o=new Ia("onSelect","select",null,o,i),n.push({event:o,listeners:a}),o.target=qo)))}function Wr(n,o){var i={};return i[n.toLowerCase()]=o.toLowerCase(),i["Webkit"+n]="webkit"+o,i["Moz"+n]="moz"+o,i}var Ho={animationend:Wr("Animation","AnimationEnd"),animationiteration:Wr("Animation","AnimationIteration"),animationstart:Wr("Animation","AnimationStart"),transitionrun:Wr("Transition","TransitionRun"),transitionstart:Wr("Transition","TransitionStart"),transitioncancel:Wr("Transition","TransitionCancel"),transitionend:Wr("Transition","TransitionEnd")},mu={},gp={};Dn&&(gp=document.createElement("div").style,"AnimationEvent"in window||(delete Ho.animationend.animation,delete Ho.animationiteration.animation,delete Ho.animationstart.animation),"TransitionEvent"in window||delete Ho.transitionend.transition);function eo(n){if(mu[n])return mu[n];if(!Ho[n])return n;var o=Ho[n],i;for(i in o)if(o.hasOwnProperty(i)&&i in gp)return mu[n]=o[i];return n}var vp=eo("animationend"),yp=eo("animationiteration"),wp=eo("animationstart"),bb=eo("transitionrun"),Sb=eo("transitionstart"),Rb=eo("transitioncancel"),_p=eo("transitionend"),bp=new Map,gu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gu.push("scrollEnd");function dn(n,o){bp.set(n,o),Xr(o,[n])}var xa=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},en=[],Vo=0,vu=0;function Da(){for(var n=Vo,o=vu=Vo=0;o<n;){var i=en[o];en[o++]=null;var a=en[o];en[o++]=null;var f=en[o];en[o++]=null;var d=en[o];if(en[o++]=null,a!==null&&f!==null){var y=a.pending;y===null?f.next=f:(f.next=y.next,y.next=f),a.pending=f}d!==0&&Sp(i,f,d)}}function ja(n,o,i,a){en[Vo++]=n,en[Vo++]=o,en[Vo++]=i,en[Vo++]=a,vu|=a,n.lanes|=a,n=n.alternate,n!==null&&(n.lanes|=a)}function yu(n,o,i,a){return ja(n,o,i,a),Ma(n)}function to(n,o){return ja(n,null,null,o),Ma(n)}function Sp(n,o,i){n.lanes|=i;var a=n.alternate;a!==null&&(a.lanes|=i);for(var f=!1,d=n.return;d!==null;)d.childLanes|=i,a=d.alternate,a!==null&&(a.childLanes|=i),d.tag===22&&(n=d.stateNode,n===null||n._visibility&1||(f=!0)),n=d,d=d.return;return n.tag===3?(d=n.stateNode,f&&o!==null&&(f=31-qt(i),n=d.hiddenUpdates,a=n[f],a===null?n[f]=[o]:a.push(o),o.lane=i|536870912),d):null}function Ma(n){if(50<Ci)throw Ci=0,Pf=null,Error(s(185));for(var o=n.return;o!==null;)n=o,o=n.return;return n.tag===3?n.stateNode:null}var Fo={};function Eb(n,o,i,a){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(n,o,i,a){return new Eb(n,o,i,a)}function wu(n){return n=n.prototype,!(!n||!n.isReactComponent)}function jn(n,o){var i=n.alternate;return i===null?(i=Vt(n.tag,o,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=o,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,o=n.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Rp(n,o){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=o,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,o=i.dependencies,n.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),n}function Na(n,o,i,a,f,d){var y=0;if(a=n,typeof n=="function")wu(n)&&(y=1);else if(typeof n=="string")y=OS(n,i,ee.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case X:return n=Vt(31,i,o,f),n.elementType=X,n.lanes=d,n;case C:return no(i.children,f,d,o);case R:y=8,f|=24;break;case E:return n=Vt(12,i,o,f|2),n.elementType=E,n.lanes=d,n;case V:return n=Vt(13,i,o,f),n.elementType=V,n.lanes=d,n;case K:return n=Vt(19,i,o,f),n.elementType=K,n.lanes=d,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case $:y=10;break e;case A:y=9;break e;case N:y=11;break e;case z:y=14;break e;case Y:y=16,a=null;break e}y=29,i=Error(s(130,n===null?"null":typeof n,"")),a=null}return o=Vt(y,i,o,f),o.elementType=n,o.type=a,o.lanes=d,o}function no(n,o,i,a){return n=Vt(7,n,a,o),n.lanes=i,n}function _u(n,o,i){return n=Vt(6,n,null,o),n.lanes=i,n}function Ep(n){var o=Vt(18,null,null,0);return o.stateNode=n,o}function bu(n,o,i){return o=Vt(4,n.children!==null?n.children:[],n.key,o),o.lanes=i,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}var Cp=new WeakMap;function tn(n,o){if(typeof n=="object"&&n!==null){var i=Cp.get(n);return i!==void 0?i:(o={value:n,source:o,stack:kn(o)},Cp.set(n,o),o)}return{value:n,source:o,stack:kn(o)}}var Go=[],Ko=0,za=null,oi=0,nn=[],rn=0,fr=null,bn=1,Sn="";function Mn(n,o){Go[Ko++]=oi,Go[Ko++]=za,za=n,oi=o}function Tp(n,o,i){nn[rn++]=bn,nn[rn++]=Sn,nn[rn++]=fr,fr=n;var a=bn;n=Sn;var f=32-qt(a)-1;a&=~(1<<f),i+=1;var d=32-qt(o)+f;if(30<d){var y=f-f%5;d=(a&(1<<y)-1).toString(32),a>>=y,f-=y,bn=1<<32-qt(o)+f|i<<f|a,Sn=d+n}else bn=1<<d|i<<f|a,Sn=n}function Su(n){n.return!==null&&(Mn(n,1),Tp(n,1,0))}function Ru(n){for(;n===za;)za=Go[--Ko],Go[Ko]=null,oi=Go[--Ko],Go[Ko]=null;for(;n===fr;)fr=nn[--rn],nn[rn]=null,Sn=nn[--rn],nn[rn]=null,bn=nn[--rn],nn[rn]=null}function Ap(n,o){nn[rn++]=bn,nn[rn++]=Sn,nn[rn++]=fr,bn=o.id,Sn=o.overflow,fr=n}var wt=null,Be=null,Re=!1,dr=null,on=!1,Eu=Error(s(519));function hr(n){var o=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw si(tn(o,n)),Eu}function Pp(n){var o=n.stateNode,i=n.type,a=n.memoizedProps;switch(o[yt]=n,o[Lt]=a,i){case"dialog":we("cancel",o),we("close",o);break;case"iframe":case"object":case"embed":we("load",o);break;case"video":case"audio":for(i=0;i<Ai.length;i++)we(Ai[i],o);break;case"source":we("error",o);break;case"img":case"image":case"link":we("error",o),we("load",o);break;case"details":we("toggle",o);break;case"input":we("invalid",o),Bh(o,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":we("invalid",o);break;case"textarea":we("invalid",o),Hh(o,a.value,a.defaultValue,a.children)}i=a.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||o.textContent===""+i||a.suppressHydrationWarning===!0||Fg(o.textContent,i)?(a.popover!=null&&(we("beforetoggle",o),we("toggle",o)),a.onScroll!=null&&we("scroll",o),a.onScrollEnd!=null&&we("scrollend",o),a.onClick!=null&&(o.onclick=xn),o=!0):o=!1,o||hr(n,!0)}function Op(n){for(wt=n.return;wt;)switch(wt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:wt=wt.return}}function Yo(n){if(n!==wt)return!1;if(!Re)return Op(n),Re=!0,!1;var o=n.tag,i;if((i=o!==3&&o!==27)&&((i=o===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||Hf(n.type,n.memoizedProps)),i=!i),i&&Be&&hr(n),Op(n),o===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Be=ev(n)}else if(o===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Be=ev(n)}else o===27?(o=Be,Ar(n.type)?(n=Yf,Yf=null,Be=n):Be=o):Be=wt?an(n.stateNode.nextSibling):null;return!0}function ro(){Be=wt=null,Re=!1}function Cu(){var n=dr;return n!==null&&(Dt===null?Dt=n:Dt.push.apply(Dt,n),dr=null),n}function si(n){dr===null?dr=[n]:dr.push(n)}var Tu=O(null),oo=null,Nn=null;function pr(n,o,i){Z(Tu,o._currentValue),o._currentValue=i}function zn(n){n._currentValue=Tu.current,F(Tu)}function Au(n,o,i){for(;n!==null;){var a=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,a!==null&&(a.childLanes|=o)):a!==null&&(a.childLanes&o)!==o&&(a.childLanes|=o),n===i)break;n=n.return}}function Pu(n,o,i,a){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var d=f.dependencies;if(d!==null){var y=f.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=f;for(var T=0;T<o.length;T++)if(b.context===o[T]){d.lanes|=i,b=d.alternate,b!==null&&(b.lanes|=i),Au(d.return,i,n),a||(y=null);break e}d=b.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(s(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),Au(y,i,n),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===n){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function Qo(n,o,i,a){n=null;for(var f=o,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var b=f.type;Ht(f.pendingProps.value,y.value)||(n!==null?n.push(b):n=[b])}}else if(f===Ee.current){if(y=f.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(ki):n=[ki])}f=f.return}n!==null&&Pu(o,n,i,a),o.flags|=262144}function Ua(n){for(n=n.firstContext;n!==null;){if(!Ht(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function so(n){oo=n,Nn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function _t(n){return Lp(oo,n)}function Ba(n,o){return oo===null&&so(n),Lp(n,o)}function Lp(n,o){var i=o._currentValue;if(o={context:o,memoizedValue:i,next:null},Nn===null){if(n===null)throw Error(s(308));Nn=o,n.dependencies={lanes:0,firstContext:o},n.flags|=524288}else Nn=Nn.next=o;return i}var Cb=typeof AbortController<"u"?AbortController:function(){var n=[],o=this.signal={aborted:!1,addEventListener:function(i,a){n.push(a)}};this.abort=function(){o.aborted=!0,n.forEach(function(i){return i()})}},Tb=e.unstable_scheduleCallback,Ab=e.unstable_NormalPriority,et={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ou(){return{controller:new Cb,data:new Map,refCount:0}}function ii(n){n.refCount--,n.refCount===0&&Tb(Ab,function(){n.controller.abort()})}var ai=null,Lu=0,Jo=0,Xo=null;function Pb(n,o){if(ai===null){var i=ai=[];Lu=0,Jo=xf(),Xo={status:"pending",value:void 0,then:function(a){i.push(a)}}}return Lu++,o.then(Ip,Ip),o}function Ip(){if(--Lu===0&&ai!==null){Xo!==null&&(Xo.status="fulfilled");var n=ai;ai=null,Jo=0,Xo=null;for(var o=0;o<n.length;o++)(0,n[o])()}}function Ob(n,o){var i=[],a={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return n.then(function(){a.status="fulfilled",a.value=o;for(var f=0;f<i.length;f++)(0,i[f])(o)},function(f){for(a.status="rejected",a.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),a}var kp=B.S;B.S=function(n,o){mg=Rt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&Pb(n,o),kp!==null&&kp(n,o)};var io=O(null);function Iu(){var n=io.current;return n!==null?n:Me.pooledCache}function qa(n,o){o===null?Z(io,io.current):Z(io,o.pool)}function $p(){var n=Iu();return n===null?null:{parent:et._currentValue,pool:n}}var Zo=Error(s(460)),ku=Error(s(474)),Ha=Error(s(542)),Va={then:function(){}};function xp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Dp(n,o,i){switch(i=n[i],i===void 0?n.push(o):i!==o&&(o.then(xn,xn),o=i),o.status){case"fulfilled":return o.value;case"rejected":throw n=o.reason,Mp(n),n;default:if(typeof o.status=="string")o.then(xn,xn);else{if(n=Me,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=o,n.status="pending",n.then(function(a){if(o.status==="pending"){var f=o;f.status="fulfilled",f.value=a}},function(a){if(o.status==="pending"){var f=o;f.status="rejected",f.reason=a}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw n=o.reason,Mp(n),n}throw lo=o,Zo}}function ao(n){try{var o=n._init;return o(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(lo=i,Zo):i}}var lo=null;function jp(){if(lo===null)throw Error(s(459));var n=lo;return lo=null,n}function Mp(n){if(n===Zo||n===Ha)throw Error(s(483))}var Wo=null,li=0;function Fa(n){var o=li;return li+=1,Wo===null&&(Wo=[]),Dp(Wo,n,o)}function ci(n,o){o=o.props.ref,n.ref=o!==void 0?o:null}function Ga(n,o){throw o.$$typeof===w?Error(s(525)):(n=Object.prototype.toString.call(o),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n)))}function Np(n){function o(x,P){if(n){var D=x.deletions;D===null?(x.deletions=[P],x.flags|=16):D.push(P)}}function i(x,P){if(!n)return null;for(;P!==null;)o(x,P),P=P.sibling;return null}function a(x){for(var P=new Map;x!==null;)x.key!==null?P.set(x.key,x):P.set(x.index,x),x=x.sibling;return P}function f(x,P){return x=jn(x,P),x.index=0,x.sibling=null,x}function d(x,P,D){return x.index=D,n?(D=x.alternate,D!==null?(D=D.index,D<P?(x.flags|=67108866,P):D):(x.flags|=67108866,P)):(x.flags|=1048576,P)}function y(x){return n&&x.alternate===null&&(x.flags|=67108866),x}function b(x,P,D,H){return P===null||P.tag!==6?(P=_u(D,x.mode,H),P.return=x,P):(P=f(P,D),P.return=x,P)}function T(x,P,D,H){var ae=D.type;return ae===C?q(x,P,D.props.children,H,D.key):P!==null&&(P.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Y&&ao(ae)===P.type)?(P=f(P,D.props),ci(P,D),P.return=x,P):(P=Na(D.type,D.key,D.props,null,x.mode,H),ci(P,D),P.return=x,P)}function j(x,P,D,H){return P===null||P.tag!==4||P.stateNode.containerInfo!==D.containerInfo||P.stateNode.implementation!==D.implementation?(P=bu(D,x.mode,H),P.return=x,P):(P=f(P,D.children||[]),P.return=x,P)}function q(x,P,D,H,ae){return P===null||P.tag!==7?(P=no(D,x.mode,H,ae),P.return=x,P):(P=f(P,D),P.return=x,P)}function G(x,P,D){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=_u(""+P,x.mode,D),P.return=x,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case _:return D=Na(P.type,P.key,P.props,null,x.mode,D),ci(D,P),D.return=x,D;case S:return P=bu(P,x.mode,D),P.return=x,P;case Y:return P=ao(P),G(x,P,D)}if(Je(P)||ue(P))return P=no(P,x.mode,D,null),P.return=x,P;if(typeof P.then=="function")return G(x,Fa(P),D);if(P.$$typeof===$)return G(x,Ba(x,P),D);Ga(x,P)}return null}function M(x,P,D,H){var ae=P!==null?P.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ae!==null?null:b(x,P,""+D,H);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case _:return D.key===ae?T(x,P,D,H):null;case S:return D.key===ae?j(x,P,D,H):null;case Y:return D=ao(D),M(x,P,D,H)}if(Je(D)||ue(D))return ae!==null?null:q(x,P,D,H,null);if(typeof D.then=="function")return M(x,P,Fa(D),H);if(D.$$typeof===$)return M(x,P,Ba(x,D),H);Ga(x,D)}return null}function U(x,P,D,H,ae){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return x=x.get(D)||null,b(P,x,""+H,ae);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case _:return x=x.get(H.key===null?D:H.key)||null,T(P,x,H,ae);case S:return x=x.get(H.key===null?D:H.key)||null,j(P,x,H,ae);case Y:return H=ao(H),U(x,P,D,H,ae)}if(Je(H)||ue(H))return x=x.get(D)||null,q(P,x,H,ae,null);if(typeof H.then=="function")return U(x,P,D,Fa(H),ae);if(H.$$typeof===$)return U(x,P,D,Ba(P,H),ae);Ga(P,H)}return null}function te(x,P,D,H){for(var ae=null,Te=null,re=P,ge=P=0,Se=null;re!==null&&ge<D.length;ge++){re.index>ge?(Se=re,re=null):Se=re.sibling;var Ae=M(x,re,D[ge],H);if(Ae===null){re===null&&(re=Se);break}n&&re&&Ae.alternate===null&&o(x,re),P=d(Ae,P,ge),Te===null?ae=Ae:Te.sibling=Ae,Te=Ae,re=Se}if(ge===D.length)return i(x,re),Re&&Mn(x,ge),ae;if(re===null){for(;ge<D.length;ge++)re=G(x,D[ge],H),re!==null&&(P=d(re,P,ge),Te===null?ae=re:Te.sibling=re,Te=re);return Re&&Mn(x,ge),ae}for(re=a(re);ge<D.length;ge++)Se=U(re,x,ge,D[ge],H),Se!==null&&(n&&Se.alternate!==null&&re.delete(Se.key===null?ge:Se.key),P=d(Se,P,ge),Te===null?ae=Se:Te.sibling=Se,Te=Se);return n&&re.forEach(function(kr){return o(x,kr)}),Re&&Mn(x,ge),ae}function fe(x,P,D,H){if(D==null)throw Error(s(151));for(var ae=null,Te=null,re=P,ge=P=0,Se=null,Ae=D.next();re!==null&&!Ae.done;ge++,Ae=D.next()){re.index>ge?(Se=re,re=null):Se=re.sibling;var kr=M(x,re,Ae.value,H);if(kr===null){re===null&&(re=Se);break}n&&re&&kr.alternate===null&&o(x,re),P=d(kr,P,ge),Te===null?ae=kr:Te.sibling=kr,Te=kr,re=Se}if(Ae.done)return i(x,re),Re&&Mn(x,ge),ae;if(re===null){for(;!Ae.done;ge++,Ae=D.next())Ae=G(x,Ae.value,H),Ae!==null&&(P=d(Ae,P,ge),Te===null?ae=Ae:Te.sibling=Ae,Te=Ae);return Re&&Mn(x,ge),ae}for(re=a(re);!Ae.done;ge++,Ae=D.next())Ae=U(re,x,ge,Ae.value,H),Ae!==null&&(n&&Ae.alternate!==null&&re.delete(Ae.key===null?ge:Ae.key),P=d(Ae,P,ge),Te===null?ae=Ae:Te.sibling=Ae,Te=Ae);return n&&re.forEach(function(US){return o(x,US)}),Re&&Mn(x,ge),ae}function De(x,P,D,H){if(typeof D=="object"&&D!==null&&D.type===C&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case _:e:{for(var ae=D.key;P!==null;){if(P.key===ae){if(ae=D.type,ae===C){if(P.tag===7){i(x,P.sibling),H=f(P,D.props.children),H.return=x,x=H;break e}}else if(P.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Y&&ao(ae)===P.type){i(x,P.sibling),H=f(P,D.props),ci(H,D),H.return=x,x=H;break e}i(x,P);break}else o(x,P);P=P.sibling}D.type===C?(H=no(D.props.children,x.mode,H,D.key),H.return=x,x=H):(H=Na(D.type,D.key,D.props,null,x.mode,H),ci(H,D),H.return=x,x=H)}return y(x);case S:e:{for(ae=D.key;P!==null;){if(P.key===ae)if(P.tag===4&&P.stateNode.containerInfo===D.containerInfo&&P.stateNode.implementation===D.implementation){i(x,P.sibling),H=f(P,D.children||[]),H.return=x,x=H;break e}else{i(x,P);break}else o(x,P);P=P.sibling}H=bu(D,x.mode,H),H.return=x,x=H}return y(x);case Y:return D=ao(D),De(x,P,D,H)}if(Je(D))return te(x,P,D,H);if(ue(D)){if(ae=ue(D),typeof ae!="function")throw Error(s(150));return D=ae.call(D),fe(x,P,D,H)}if(typeof D.then=="function")return De(x,P,Fa(D),H);if(D.$$typeof===$)return De(x,P,Ba(x,D),H);Ga(x,D)}
vendor: 4,438 bytes, line 9
9return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,P!==null&&P.tag===6?(i(x,P.sibling),H=f(P,D),H.return=x,x=H):(i(x,P),H=_u(D,x.mode,H),H.return=x,x=H),y(x)):i(x,P)}return function(x,P,D,H){try{li=0;var ae=De(x,P,D,H);return Wo=null,ae}catch(re){if(re===Zo||re===Ha)throw re;var Te=Vt(29,re,null,x.mode);return Te.lanes=H,Te.return=x,Te}}}var co=Np(!0),zp=Np(!1),mr=!1;function $u(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xu(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function gr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function vr(n,o,i){var a=n.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var f=a.pending;return f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o,o=Ma(n),Sp(n,null,i),o}return ja(n,a,o,i),Ma(n)}function ui(n,o,i){if(o=o.updateQueue,o!==null&&(o=o.shared,(i&4194048)!==0)){var a=o.lanes;a&=n.pendingLanes,i|=a,o.lanes=i,Lh(n,i)}}function Du(n,o){var i=n.updateQueue,a=n.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var f=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?f=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?f=d=o:d=d.next=o}else f=d=o;i={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:a.shared,callbacks:a.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=o:n.next=o,i.lastBaseUpdate=o}var ju=!1;function fi(){if(ju){var n=Xo;if(n!==null)throw n}}function di(n,o,i,a){ju=!1;var f=n.updateQueue;mr=!1;var d=f.firstBaseUpdate,y=f.lastBaseUpdate,b=f.shared.pending;if(b!==null){f.shared.pending=null;var T=b,j=T.next;T.next=null,y===null?d=j:y.next=j,y=T;var q=n.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==y&&(b===null?q.firstBaseUpdate=j:b.next=j,q.lastBaseUpdate=T))}if(d!==null){var G=f.baseState;y=0,q=j=T=null,b=d;do{var M=b.lane&-536870913,U=M!==b.lane;if(U?(be&M)===M:(a&M)===M){M!==0&&M===Jo&&(ju=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var te=n,fe=b;M=o;var De=i;switch(fe.tag){case 1:if(te=fe.payload,typeof te=="function"){G=te.call(De,G,M);break e}G=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=fe.payload,M=typeof te=="function"?te.call(De,G,M):te,M==null)break e;G=g({},G,M);break e;case 2:mr=!0}}M=b.callback,M!==null&&(n.flags|=64,U&&(n.flags|=8192),U=f.callbacks,U===null?f.callbacks=[M]:U.push(M))}else U={lane:M,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(j=q=U,T=G):q=q.next=U,y|=M;if(b=b.next,b===null){if(b=f.shared.pending,b===null)break;U=b,b=U.next,U.next=null,f.lastBaseUpdate=U,f.shared.pending=null}}while(!0);q===null&&(T=G),f.baseState=T,f.firstBaseUpdate=j,f.lastBaseUpdate=q,d===null&&(f.shared.lanes=0),Sr|=y,n.lanes=y,n.memoizedState=G}}function Up(n,o){if(typeof n!="function")throw Error(s(191,n));n.call(o)}function Bp(n,o){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)Up(i[n],o)}var es=O(null),Ka=O(0);function qp(n,o){n=Yn,Z(Ka,n),Z(es,o),Yn=n|o.baseLanes}function Mu(){Z(Ka,Yn),Z(es,es.current)}function Nu(){Yn=Ka.current,F(es),F(Ka)}var Ft=O(null),sn=null;function yr(n){var o=n.alternate;Z(Ze,Ze.current&1),Z(Ft,n),sn===null&&(o===null||es.current!==null||o.memoizedState!==null)&&(sn=n)}function zu(n){Z(Ze,Ze.current),Z(Ft,n),sn===null&&(sn=n)}function Hp(n){n.tag===22?(Z(Ze,Ze.current),Z(Ft,n),sn===null&&(sn=n)):wr()}function wr(){Z(Ze,Ze.current),Z(Ft,Ft.current)}function Gt(n){F(Ft),sn===n&&(sn=null),F(Ze)}var Ze=O(0);function Ya(n){for(var o=n;o!==null;){if(o.tag===13){var i=o.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Gf(i)||Kf(i)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Un=0,pe=null,$e=null,tt=null,Qa=!1,ts=!1,uo=!1,Ja=0,hi=0,ns=null,
vendor: 11,432 bytes, line 9
9Lb=0;function Ke(){throw Error(s(321))}function Uu(n,o){if(o===null)return!1;for(var i=0;i<o.length&&i<n.length;i++)if(!Ht(n[i],o[i]))return!1;return!0}function Bu(n,o,i,a,f,d){return Un=d,pe=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,B.H=n===null||n.memoizedState===null?Tm:nf,uo=!1,d=i(a,f),uo=!1,ts&&(d=Fp(o,i,a,f)),Vp(n),d}function Vp(n){B.H=gi;var o=$e!==null&&$e.next!==null;if(Un=0,tt=$e=pe=null,Qa=!1,hi=0,ns=null,o)throw Error(s(300));n===null||nt||(n=n.dependencies,n!==null&&Ua(n)&&(nt=!0))}function Fp(n,o,i,a){pe=n;var f=0;do{if(ts&&(ns=null),hi=0,ts=!1,25<=f)throw Error(s(301));if(f+=1,tt=$e=null,n.updateQueue!=null){var d=n.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}B.H=Am,d=o(i,a)}while(ts);return d}function Ib(){var n=B.H,o=n.useState()[0];return o=typeof o.then=="function"?pi(o):o,n=n.useState()[0],($e!==null?$e.memoizedState:null)!==n&&(pe.flags|=1024),o}function qu(){var n=Ja!==0;return Ja=0,n}function Hu(n,o,i){o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~i}function Vu(n){if(Qa){for(n=n.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Qa=!1}Un=0,tt=$e=pe=null,ts=!1,hi=Ja=0,ns=null}function Tt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?pe.memoizedState=tt=n:tt=tt.next=n,tt}function We(){if($e===null){var n=pe.alternate;n=n!==null?n.memoizedState:null}else n=$e.next;var o=tt===null?pe.memoizedState:tt.next;if(o!==null)tt=o,$e=n;else{if(n===null)throw pe.alternate===null?Error(s(467)):Error(s(310));$e=n,n={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},tt===null?pe.memoizedState=tt=n:tt=tt.next=n}return tt}function Xa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pi(n){var o=hi;return hi+=1,ns===null&&(ns=[]),n=Dp(ns,n,o),o=pe,(tt===null?o.memoizedState:tt.next)===null&&(o=o.alternate,B.H=o===null||o.memoizedState===null?Tm:nf),n}function Za(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return pi(n);if(n.$$typeof===$)return _t(n)}throw Error(s(438,String(n)))}function Fu(n){var o=null,i=pe.updateQueue;if(i!==null&&(o=i.memoCache),o==null){var a=pe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(o={data:a.data.map(function(f){return f.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),i===null&&(i=Xa(),pe.updateQueue=i),i.memoCache=o,i=o.data[o.index],i===void 0)for(i=o.data[o.index]=Array(n),a=0;a<n;a++)i[a]=ce;return o.index++,i}function Bn(n,o){return typeof o=="function"?o(n):o}function Wa(n){var o=We();return Gu(o,$e,n)}function Gu(n,o,i){var a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=i;var f=n.baseQueue,d=a.pending;if(d!==null){if(f!==null){var y=f.next;f.next=d.next,d.next=y}o.baseQueue=f=d,a.pending=null}if(d=n.baseState,f===null)n.memoizedState=d;else{o=f.next;var b=y=null,T=null,j=o,q=!1;do{var G=j.lane&-536870913;if(G!==j.lane?(be&G)===G:(Un&G)===G){var M=j.revertLane;if(M===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),G===Jo&&(q=!0);else if((Un&M)===M){j=j.next,M===Jo&&(q=!0);continue}else G={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(b=T=G,y=d):T=T.next=G,pe.lanes|=M,Sr|=M;G=j.action,uo&&i(d,G),d=j.hasEagerState?j.eagerState:i(d,G)}else M={lane:G,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(b=T=M,y=d):T=T.next=M,pe.lanes|=G,Sr|=G;j=j.next}while(j!==null&&j!==o);if(T===null?y=d:T.next=b,!Ht(d,n.memoizedState)&&(nt=!0,q&&(i=Xo,i!==null)))throw i;n.memoizedState=d,n.baseState=y,n.baseQueue=T,a.lastRenderedState=d}return f===null&&(a.lanes=0),[n.memoizedState,a.dispatch]}function Ku(n){var o=We(),i=o.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var a=i.dispatch,f=i.pending,d=o.memoizedState;if(f!==null){i.pending=null;var y=f=f.next;do d=n(d,y.action),y=y.next;while(y!==f);Ht(d,o.memoizedState)||(nt=!0),o.memoizedState=d,o.baseQueue===null&&(o.baseState=d),i.lastRenderedState=d}return[d,a]}function Gp(n,o,i){var a=pe,f=We(),d=Re;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=o();var y=!Ht(($e||f).memoizedState,i);if(y&&(f.memoizedState=i,nt=!0),f=f.queue,Ju(Qp.bind(null,a,f,n),[n]),f.getSnapshot!==o||y||tt!==null&&tt.memoizedState.tag&1){if(a.flags|=2048,rs(9,{destroy:void 0},Yp.bind(null,a,f,i,o),null),Me===null)throw Error(s(349));d||(Un&127)!==0||Kp(a,o,i)}return i}function Kp(n,o,i){n.flags|=16384,n={getSnapshot:o,value:i},o=pe.updateQueue,o===null?(o=Xa(),pe.updateQueue=o,o.stores=[n]):(i=o.stores,i===null?o.stores=[n]:i.push(n))}function Yp(n,o,i,a){o.value=i,o.getSnapshot=a,Jp(o)&&Xp(n)}function Qp(n,o,i){return i(function(){Jp(o)&&Xp(n)})}function Jp(n){var o=n.getSnapshot;n=n.value;try{var i=o();return!Ht(n,i)}catch{return!0}}function Xp(n){var o=to(n,2);o!==null&&jt(o,n,2)}function Yu(n){var o=Tt();if(typeof n=="function"){var i=n;if(n=i(),uo){lr(!0);try{i()}finally{lr(!1)}}}return o.memoizedState=o.baseState=n,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:n},o}function Zp(n,o,i,a){return n.baseState=i,Gu(n,$e,typeof a=="function"?a:Bn)}function kb(n,o,i,a,f){if(nl(n))throw Error(s(485));if(n=o.action,n!==null){var d={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};B.T!==null?i(!0):d.isTransition=!1,a(d),i=o.pending,i===null?(d.next=o.pending=d,Wp(o,d)):(d.next=i.next,o.pending=i.next=d)}}function Wp(n,o){var i=o.action,a=o.payload,f=n.state;if(o.isTransition){var d=B.T,y={};B.T=y;try{var b=i(f,a),T=B.S;T!==null&&T(y,b),em(n,o,b)}catch(j){Qu(n,o,j)}finally{d!==null&&y.types!==null&&(d.types=y.types),B.T=d}}else try{d=i(f,a),em(n,o,d)}catch(j){Qu(n,o,j)}}function em(n,o,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(a){tm(n,o,a)},function(a){return Qu(n,o,a)}):tm(n,o,i)}function tm(n,o,i){o.status="fulfilled",o.value=i,nm(o),n.state=i,o=n.pending,o!==null&&(i=o.next,i===o?n.pending=null:(i=i.next,o.next=i,Wp(n,i)))}function Qu(n,o,i){var a=n.pending;if(n.pending=null,a!==null){a=a.next;do o.status="rejected",o.reason=i,nm(o),o=o.next;while(o!==a)}n.action=null}function nm(n){n=n.listeners;for(var o=0;o<n.length;o++)(0,n[o])()}function rm(n,o){return o}function om(n,o){if(Re){var i=Me.formState;if(i!==null){e:{var a=pe;if(Re){if(Be){t:{for(var f=Be,d=on;f.nodeType!==8;){if(!d){f=null;break t}if(f=an(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){Be=an(f.nextSibling),a=f.data==="F!";break e}}hr(a)}a=!1}a&&(o=i[0])}}return i=Tt(),i.memoizedState=i.baseState=o,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rm,lastRenderedState:o},i.queue=a,i=Rm.bind(null,pe,a),a.dispatch=i,a=Yu(!1),d=tf.bind(null,pe,!1,a.queue),a=Tt(),f={state:o,dispatch:null,action:n,pending:null},a.queue=f,i=kb.bind(null,pe,f,d,i),f.dispatch=i,a.memoizedState=n,[o,i,!1]}function sm(n){var o=We();return im(o,$e,n)}function im(n,o,i){if(o=Gu(n,o,rm)[0],n=Wa(Bn)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var a=pi(o)}catch(y){throw y===Zo?Ha:y}else a=o;o=We();var f=o.queue,d=f.dispatch;return i!==o.memoizedState&&(pe.flags|=2048,rs(9,{destroy:void 0},$b.bind(null,f,i),null)),[a,d,n]}function $b(n,o){n.action=o}function am(n){var o=We(),i=$e;if(i!==null)return im(o,i,n);We(),o=o.memoizedState,i=We();var a=i.queue.dispatch;return i.memoizedState=n,[o,a,!1]}function rs(n,o,i,a){return n={tag:n,create:i,deps:a,inst:o,next:null},o=pe.updateQueue,o===null&&(o=Xa(),pe.updateQueue=o),i=o.lastEffect,i===null?o.lastEffect=n.next=n:(a=i.next,i.next=n,n.next=a,o.lastEffect=n),n}function lm(){return We().memoizedState}function el(n,o,i,a){var f=Tt();pe.flags|=n,f.memoizedState=rs(1|o,{destroy:void 0},i,a===void 0?null:a)}function tl(n,o,i,a){var f=We();a=a===void 0?null:a;var d=f.memoizedState.inst;$e!==null&&a!==null&&Uu(a,$e.memoizedState.deps)?f.memoizedState=rs(o,d,i,a):(pe.flags|=n,f.memoizedState=rs(1|o,d,i,a))}function cm(n,o){el(8390656,8,n,o)}function Ju(n,o){tl(2048,8,n,o)}function xb(n){pe.flags|=4;var o=pe.updateQueue;if(o===null)o=Xa(),pe.updateQueue=o,o.events=[n];else{var i=o.events;i===null?o.events=[n]:i.push(n)}}function um(n){var o=We().memoizedState;return xb({ref:o,nextImpl:n}),function(){if((Oe&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}function fm(n,o){return tl(4,2,n,o)}function dm(n,o){return tl(4,4,n,o)}function hm(n,o){if(typeof o=="function"){n=n();var i=o(n);return function(){typeof i=="function"?i():o(null)}}if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function pm(n,o,i){i=i!=null?i.concat([n]):null,tl(4,4,hm.bind(null,o,n),i)}function Xu(){}function mm(n,o){var i=We();o=o===void 0?null:o;var a=i.memoizedState;return o!==null&&Uu(o,a[1])?a[0]:(i.memoizedState=[n,o],n)}function gm(n,o){var i=We();o=o===void 0?null:o;var a=i.memoizedState;if(o!==null&&Uu(o,a[1]))return a[0];if(a=n(),uo){lr(!0);try{n()}finally{lr(!1)}}return i.memoizedState=[a,o],a}function Zu(n,o,i){return i===void 0||(Un&1073741824)!==0&&(be&261930)===0?n.memoizedState=o:(n.memoizedState=i,n=vg(),pe.lanes|=n,Sr|=n,i)}function vm(n,o,i,a){return Ht(i,o)?i:es.current!==null?(n=Zu(n,i,a),Ht(n,o)||(nt=!0),n):(Un&42)===0||(Un&1073741824)!==0&&(be&261930)===0?(nt=!0,n.memoizedState=i):(n=vg(),pe.lanes|=n,Sr|=n,o)}function ym(n,o,i,a,f){var d=J.p;J.p=d!==0&&8>d?d:8;var y=B.T,b={};B.T=b,tf(n,!1,o,i);try{var T=f(),j=B.S;if(j!==null&&j(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=Ob(T,a);mi(n,o,q,Qt(n))}else mi(n,o,a,Qt(n))}catch(G){mi(n,o,{then:function(){},status:"rejected",reason:G},Qt())}finally{J.p=d,y!==null&&b.types!==null&&(y.types=b.types),B.T=y}}function Db(){}function Wu(n,o,i,a){if(n.tag!==5)throw Error(s(476));var f=wm(n).queue;ym(n,f,o,le,i===null?Db:function(){return _m(n),i(a)})}function wm(n){var o=n.memoizedState;if(o!==null)return o;o={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:le},next:null};var i={};return o.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:i},next:null},n.memoizedState=o,n=n.alternate,n!==null&&(n.memoizedState=o),o}function _m(n){var o=wm(n);o.next===null&&(o=n.alternate.memoizedState),mi(n,o.next.queue,{},Qt())}function ef(){return _t(ki)}function bm(){return We().memoizedState}function Sm(){return We().memoizedState}function jb(n){for(var o=n.return;o!==null;){switch(o.tag){case 24:case 3:var i=Qt();n=gr(i);var a=vr(o,n,i);a!==null&&(jt(a,o,i),ui(a,o,i)),o={cache:Ou()},n.payload=o;return}o=o.return}}function Mb(n,o,i){var a=Qt();i={lane:a,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},nl(n)?Em(o,i):(i=yu(n,o,i,a),i!==null&&(jt(i,n,a),Cm(i,o,a)))}function Rm(n,o,i){var a=Qt();mi(n,o,i,a)}function mi(n,o,i,a){var f={lane:a,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(nl(n))Em(o,f);else{var d=n.alternate;if(n.lanes===0&&(d===null||d.lanes===0)&&(d=o.lastRenderedReducer,d!==null))try{var y=o.lastRenderedState,b
vendor: 5,306 bytes, line 9
9=d(y,i);if(f.hasEagerState=!0,f.eagerState=b,Ht(b,y))return ja(n,o,f,0),Me===null&&Da(),!1}catch{}if(i=yu(n,o,f,a),i!==null)return jt(i,n,a),Cm(i,o,a),!0}return!1}function tf(n,o,i,a){if(a={lane:2,revertLane:xf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nl(n)){if(o)throw Error(s(479))}else o=yu(n,i,a,2),o!==null&&jt(o,n,2)}function nl(n){var o=n.alternate;return n===pe||o!==null&&o===pe}function Em(n,o){ts=Qa=!0;var i=n.pending;i===null?o.next=o:(o.next=i.next,i.next=o),n.pending=o}function Cm(n,o,i){if((i&4194048)!==0){var a=o.lanes;a&=n.pendingLanes,i|=a,o.lanes=i,Lh(n,i)}}var gi={readContext:_t,use:Za,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};gi.useEffectEvent=Ke;var Tm={readContext:_t,use:Za,useCallback:function(n,o){return Tt().memoizedState=[n,o===void 0?null:o],n},useContext:_t,useEffect:cm,useImperativeHandle:function(n,o,i){i=i!=null?i.concat([n]):null,el(4194308,4,hm.bind(null,o,n),i)},useLayoutEffect:function(n,o){return el(4194308,4,n,o)},useInsertionEffect:function(n,o){el(4,2,n,o)},useMemo:function(n,o){var i=Tt();o=o===void 0?null:o;var a=n();if(uo){lr(!0);try{n()}finally{lr(!1)}}return i.memoizedState=[a,o],a},useReducer:function(n,o,i){var a=Tt();if(i!==void 0){var f=i(o);if(uo){lr(!0);try{i(o)}finally{lr(!1)}}}else f=o;return a.memoizedState=a.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},a.queue=n,n=n.dispatch=Mb.bind(null,pe,n),[a.memoizedState,n]},useRef:function(n){var o=Tt();return n={current:n},o.memoizedState=n},useState:function(n){n=Yu(n);var o=n.queue,i=Rm.bind(null,pe,o);return o.dispatch=i,[n.memoizedState,i]},useDebugValue:Xu,useDeferredValue:function(n,o){var i=Tt();return Zu(i,n,o)},useTransition:function(){var n=Yu(!1);return n=ym.bind(null,pe,n.queue,!0,!1),Tt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,o,i){var a=pe,f=Tt();if(Re){if(i===void 0)throw Error(s(407));i=i()}else{if(i=o(),Me===null)throw Error(s(349));(be&127)!==0||Kp(a,o,i)}f.memoizedState=i;var d={value:i,getSnapshot:o};return f.queue=d,cm(Qp.bind(null,a,d,n),[n]),a.flags|=2048,rs(9,{destroy:void 0},Yp.bind(null,a,d,i,o),null),i},useId:function(){var n=Tt(),o=Me.identifierPrefix;if(Re){var i=Sn,a=bn;i=(a&~(1<<32-qt(a)-1)).toString(32)+i,o="_"+o+"R_"+i,i=Ja++,0<i&&(o+="H"+i.toString(32)),o+="_"}else i=Lb++,o="_"+o+"r_"+i.toString(32)+"_";return n.memoizedState=o},useHostTransitionStatus:ef,useFormState:om,useActionState:om,useOptimistic:function(n){var o=Tt();o.memoizedState=o.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=i,o=tf.bind(null,pe,!0,i),i.dispatch=o,[n,o]},useMemoCache:Fu,useCacheRefresh:function(){return Tt().memoizedState=jb.bind(null,pe)},useEffectEvent:function(n){var o=Tt(),i={impl:n};return o.memoizedState=i,function(){if((Oe&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},nf={readContext:_t,use:Za,useCallback:mm,useContext:_t,useEffect:Ju,useImperativeHandle:pm,useInsertionEffect:fm,useLayoutEffect:dm,useMemo:gm,useReducer:Wa,useRef:lm,useState:function(){return Wa(Bn)},useDebugValue:Xu,useDeferredValue:function(n,o){var i=We();return vm(i,$e.memoizedState,n,o)},useTransition:function(){var n=Wa(Bn)[0],o=We().memoizedState;return[typeof n=="boolean"?n:pi(n),o]},useSyncExternalStore:Gp,useId:bm,useHostTransitionStatus:ef,useFormState:sm,useActionState:sm,useOptimistic:function(n,o){var i=We();return Zp(i,$e,n,o)},useMemoCache:Fu,useCacheRefresh:Sm};nf.useEffectEvent=um;var Am={readContext:_t,use:Za,useCallback:mm,useContext:_t,useEffect:Ju,useImperativeHandle:pm,useInsertionEffect:fm,useLayoutEffect:dm,useMemo:gm,useReducer:Ku,useRef:lm,useState:function(){return Ku(Bn)},useDebugValue:Xu,useDeferredValue:function(n,o){var i=We();return $e===null?Zu(i,n,o):vm(i,$e.memoizedState,n,o)},useTransition:function(){var n=Ku(Bn)[0],o=We().memoizedState;return[typeof n=="boolean"?n:pi(n),o]},useSyncExternalStore:Gp,useId:bm,useHostTransitionStatus:ef,useFormState:am,useActionState:am,useOptimistic:function(n,o){var i=We();return $e!==null?Zp(i,$e,n,o):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:Fu,useCacheRefresh:Sm};Am.useEffectEvent=um;function rf(n,o,i,a){o=n.memoizedState,i=i(a,o),i=i==null?o:g({},o,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var of={enqueueSetState:function(n,o,i){n=n._reactInternals;var a=Qt(),f=gr(a);f.payload=o,i!=null&&(f.callback=i),o=vr(n,f,a),o!==null&&(jt(o,n,a),ui(o,n,a))},enqueueReplaceState:function(n,o,i){n=n._reactInternals;var a=Qt(),f=gr(a);f.tag=1,f.payload=o,i!=null&&(f.callback=i),o=vr(n,f,a),o!==null&&(jt(o,n,a),ui(o,n,a))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var i=Qt(),a=gr(i);a.tag=2,o!=null&&(a.callback=o),o=vr(n,a,i),o!==null&&(jt(o,n,i),ui(o,n,i))}};function Pm(n,o,i,a,f,d,y){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(a,d,y):o.prototype&&o.prototype.isPureReactComponent?!ni(i,a)||!ni(f,d):!0}
vendor: 4,787 bytes, line 9
9function Om(n,o,i,a){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(i,a),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(i,a),o.state!==n&&of.enqueueReplaceState(o,o.state,null)}function fo(n,o){var i=o;if("ref"in o){i={};for(var a in o)a!=="ref"&&(i[a]=o[a])}if(n=n.defaultProps){i===o&&(i=g({},i));for(var f in n)i[f]===void 0&&(i[f]=n[f])}return i}function Lm(n){xa(n)}function Im(n){console.error(n)}function km(n){xa(n)}function rl(n,o){try{var i=n.onUncaughtError;i(o.value,{componentStack:o.stack})}catch(a){setTimeout(function(){throw a})}}function $m(n,o,i){try{var a=n.onCaughtError;a(i.value,{componentStack:i.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function sf(n,o,i){return i=gr(i),i.tag=3,i.payload={element:null},i.callback=function(){rl(n,o)},i}function xm(n){return n=gr(n),n.tag=3,n}function Dm(n,o,i,a){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var d=a.value;n.payload=function(){return f(d)},n.callback=function(){$m(o,i,a)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(n.callback=function(){$m(o,i,a),typeof f!="function"&&(Rr===null?Rr=new Set([this]):Rr.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function Nb(n,o,i,a,f){if(i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(o=i.alternate,o!==null&&Qo(o,i,f,!0),i=Ft.current,i!==null){switch(i.tag){case 31:case 13:return sn===null?ml():i.alternate===null&&Ye===0&&(Ye=3),i.flags&=-257,i.flags|=65536,i.lanes=f,a===Va?i.flags|=16384:(o=i.updateQueue,o===null?i.updateQueue=new Set([a]):o.add(a),If(n,a,f)),!1;case 22:return i.flags|=65536,a===Va?i.flags|=16384:(o=i.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([a])},i.updateQueue=o):(i=o.retryQueue,i===null?o.retryQueue=new Set([a]):i.add(a)),If(n,a,f)),!1}throw Error(s(435,i.tag))}return If(n,a,f),ml(),!1}if(Re)return o=Ft.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=f,a!==Eu&&(n=Error(s(422),{cause:a}),si(tn(n,i)))):(a!==Eu&&(o=Error(s(423),{cause:a}),si(tn(o,i))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,a=tn(a,i),f=sf(n.stateNode,a,f),Du(n,f),Ye!==4&&(Ye=2)),!1;var d=Error(s(520),{cause:a});if(d=tn(d,i),Ei===null?Ei=[d]:Ei.push(d),Ye!==4&&(Ye=2),o===null)return!0;a=tn(a,i),i=o;do{switch(i.tag){case 3:return i.flags|=65536,n=f&-f,i.lanes|=n,n=sf(i.stateNode,a,n),Du(i,n),!1;case 1:if(o=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Rr===null||!Rr.has(d))))return i.flags|=65536,f&=-f,i.lanes|=f,f=xm(f),Dm(f,n,i,a),Du(i,f),!1}i=i.return}while(i!==null);return!1}var af=Error(s(461)),nt=!1;function bt(n,o,i,a){o.child=n===null?zp(o,null,i,a):co(o,n.child,i,a)}function jm(n,o,i,a,f){i=i.render;var d=o.ref;if("ref"in a){var y={};for(var b in a)b!=="ref"&&(y[b]=a[b])}else y=a;return so(o),a=Bu(n,o,i,y,d,f),b=qu(),n!==null&&!nt?(Hu(n,o,f),qn(n,o,f)):(Re&&b&&Su(o),o.flags|=1,bt(n,o,a,f),o.child)}function Mm(n,o,i,a,f){if(n===null){var d=i.type;return typeof d=="function"&&!wu(d)&&d.defaultProps===void 0&&i.compare===null?(o.tag=15,o.type=d,Nm(n,o,d,a,f)):(n=Na(i.type,null,a,o,o.mode,f),n.ref=o.ref,n.return=o,o.child=n)}if(d=n.child,!mf(n,f)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:ni,i(y,a)&&n.ref===o.ref)return qn(n,o,f)}return o.flags|=1,n=jn(d,a),n.ref=o.ref,n.return=o,o.child=n}function Nm(n,o,i,a,f){if(n!==null){var d=n.memoizedProps;if(ni(d,a)&&n.ref===o.ref)if(nt=!1,o.pendingProps=a=d,mf(n,f))(n.flags&131072)!==0&&(nt=!0);else return o.lanes=n.lanes,qn(n,o,f)}return lf(n,o,i,a,f)}function zm(n,o,i,a){var f=a.children,d=n!==null?n.memoizedState:null;if(n===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((o.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,n!==null){for(a=o.child=n.child,f=0;a!==null;)f=f|a.lanes|a.childLanes,a=a.sibling;a=f&~d}else a=0,o.child=null;return Um(n,o,d,i,a)}if((i&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},n!==null&&qa(o,d!==null?d.cachePool:null),d!==null?qp(o,d):Mu(),Hp(o);else return a=o.lanes=536870912,Um(n,o,d!==null?d.baseLanes|i:i,i,a)}else d!==null?(qa(o,d.cachePool),qp(o,d),wr(),o.memoizedState=null):(n!==null&&qa(o,null),Mu(),wr());return bt(n,o,f,i),o.child}function vi(n,o){return n!==null&&n.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Um(n,o,i,a,f){var d=Iu();return d=d===null?null:{parent:et._currentValue,pool:d},o.memoizedState={baseLanes:i,cachePool:d}
vendor: 3,221 bytes, line 9
9,n!==null&&qa(o,null),Mu(),Hp(o),n!==null&&Qo(n,o,a,!0),o.childLanes=f,null}function ol(n,o){return o=il({mode:o.mode,children:o.children},n.mode),o.ref=n.ref,n.child=o,o.return=n,o}function Bm(n,o,i){return co(o,n.child,null,i),n=ol(o,o.pendingProps),n.flags|=2,Gt(o),o.memoizedState=null,n}function zb(n,o,i){var a=o.pendingProps,f=(o.flags&128)!==0;if(o.flags&=-129,n===null){if(Re){if(a.mode==="hidden")return n=ol(o,a),o.lanes=536870912,vi(null,n);if(zu(o),(n=Be)?(n=Wg(n,on),n=n!==null&&n.data==="&"?n:null,n!==null&&(o.memoizedState={dehydrated:n,treeContext:fr!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},i=Ep(n),i.return=o,o.child=i,wt=o,Be=null)):n=null,n===null)throw hr(o);return o.lanes=536870912,null}return ol(o,a)}var d=n.memoizedState;if(d!==null){var y=d.dehydrated;if(zu(o),f)if(o.flags&256)o.flags&=-257,o=Bm(n,o,i);else if(o.memoizedState!==null)o.child=n.child,o.flags|=128,o=null;else throw Error(s(558));else if(nt||Qo(n,o,i,!1),f=(i&n.childLanes)!==0,nt||f){if(a=Me,a!==null&&(y=Ih(a,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,to(n,y),jt(a,n,y),af;ml(),o=Bm(n,o,i)}else n=d.treeContext,Be=an(y.nextSibling),wt=o,Re=!0,dr=null,on=!1,n!==null&&Ap(o,n),o=ol(o,a),o.flags|=4096;return o}return n=jn(n.child,{mode:a.mode,children:a.children}),n.ref=o.ref,o.child=n,n.return=o,n}function sl(n,o){var i=o.ref;if(i===null)n!==null&&n.ref!==null&&(o.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(n===null||n.ref!==i)&&(o.flags|=4194816)}}function lf(n,o,i,a,f){return so(o),i=Bu(n,o,i,a,void 0,f),a=qu(),n!==null&&!nt?(Hu(n,o,f),qn(n,o,f)):(Re&&a&&Su(o),o.flags|=1,bt(n,o,i,f),o.child)}function qm(n,o,i,a,f,d){return so(o),o.updateQueue=null,i=Fp(o,a,i,f),Vp(n),a=qu(),n!==null&&!nt?(Hu(n,o,d),qn(n,o,d)):(Re&&a&&Su(o),o.flags|=1,bt(n,o,i,d),o.child)}function Hm(n,o,i,a,f){if(so(o),o.stateNode===null){var d=Fo,y=i.contextType;typeof y=="object"&&y!==null&&(d=_t(y)),d=new i(a,d),o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=of,o.stateNode=d,d._reactInternals=o,d=o.stateNode,d.props=a,d.state=o.memoizedState,d.refs={},$u(o),y=i.contextType,d.context=typeof y=="object"&&y!==null?_t(y):Fo,d.state=o.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(rf(o,i,y,a),d.state=o.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&of.enqueueReplaceState(d,d.state,null),di(o,a,d,f),fi(),d.state=o.memoizedState),typeof d.componentDidMount=="function"&&(o.flags|=4194308),a=!0}else if(n===null){d=o.stateNode;var b=o.memoizedProps,T=fo(i,b);d.props=T;var j=d.context,q=i.contextType;y=Fo,typeof q=="object"&&q!==null&&(y=_t(q));var G=i.getDerivedStateFromProps;q=typeof G=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=o.pendingProps!==b,q||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||j!==y)&&Om(o,d,a,y),mr
vendor: 8,843 bytes, line 9
9=!1;var M=o.memoizedState;d.state=M,di(o,a,d,f),fi(),j=o.memoizedState,b||M!==j||mr?(typeof G=="function"&&(rf(o,i,G,a),j=o.memoizedState),(T=mr||Pm(o,i,T,a,M,j,y))?(q||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(o.flags|=4194308)):(typeof d.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=a,o.memoizedState=j),d.props=a,d.state=j,d.context=y,a=T):(typeof d.componentDidMount=="function"&&(o.flags|=4194308),a=!1)}else{d=o.stateNode,xu(n,o),y=o.memoizedProps,q=fo(i,y),d.props=q,G=o.pendingProps,M=d.context,j=i.contextType,T=Fo,typeof j=="object"&&j!==null&&(T=_t(j)),b=i.getDerivedStateFromProps,(j=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==G||M!==T)&&Om(o,d,a,T),mr=!1,M=o.memoizedState,d.state=M,di(o,a,d,f),fi();var U=o.memoizedState;y!==G||M!==U||mr||n!==null&&n.dependencies!==null&&Ua(n.dependencies)?(typeof b=="function"&&(rf(o,i,b,a),U=o.memoizedState),(q=mr||Pm(o,i,q,a,M,U,T)||n!==null&&n.dependencies!==null&&Ua(n.dependencies))?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(a,U,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(a,U,T)),typeof d.componentDidUpdate=="function"&&(o.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===n.memoizedProps&&M===n.memoizedState||(o.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&M===n.memoizedState||(o.flags|=1024),o.memoizedProps=a,o.memoizedState=U),d.props=a,d.state=U,d.context=T,a=q):(typeof d.componentDidUpdate!="function"||y===n.memoizedProps&&M===n.memoizedState||(o.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&M===n.memoizedState||(o.flags|=1024),a=!1)}return d=a,sl(n,o),a=(o.flags&128)!==0,d||a?(d=o.stateNode,i=a&&typeof i.getDerivedStateFromError!="function"?null:d.render(),o.flags|=1,n!==null&&a?(o.child=co(o,n.child,null,f),o.child=co(o,null,i,f)):bt(n,o,i,f),o.memoizedState=d.state,n=o.child):n=qn(n,o,f),n}function Vm(n,o,i,a){return ro(),o.flags|=256,bt(n,o,i,a),o.child}var cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uf(n){return{baseLanes:n,cachePool:$p()}}function ff(n,o,i){return n=n!==null?n.childLanes&~i:0,o&&(n|=Yt),n}function Fm(n,o,i){var a=o.pendingProps,f=!1,d=(o.flags&128)!==0,y;if((y=d)||(y=n!==null&&n.memoizedState===null?!1:(Ze.current&2)!==0),y&&(f=!0,o.flags&=-129),y=(o.flags&32)!==0,o.flags&=-33,n===null){if(Re){if(f?yr(o):wr(),(n=Be)?(n=Wg(n,on),n=n!==null&&n.data!=="&"?n:null,n!==null&&(o.memoizedState={dehydrated:n,treeContext:fr!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},i=Ep(n),i.return=o,o.child=i,wt=o,Be=null)):n=null,n===null)throw hr(o);return Kf(n)?o.lanes=32:o.lanes=536870912,null}var b=a.children;return a=a.fallback,f?(wr(),f=o.mode,b=il({mode:"hidden",children:b},f),a=no(a,f,i,null),b.return=o,a.return=o,b.sibling=a,o.child=b,a=o.child,a.memoizedState=uf(i),a.childLanes=ff(n,y,i),o.memoizedState=cf,vi(null,a)):(yr(o),df(o,b))}var T=n.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(d)o.flags&256?(yr(o),o.flags&=-257,o=hf(n,o,i)):o.memoizedState!==null?(wr(),o.child=n.child,o.flags|=128,o=null):(wr(),b=a.fallback,f=o.mode,a=il({mode:"visible",children:a.children},f),b=no(b,f,i,null),b.flags|=2,a.return=o,b.return=o,a.sibling=b,o.child=a,co(o,n.child,null,i),a=o.child,a.memoizedState=uf(i),a.childLanes=ff(n,y,i),o.memoizedState=cf,o=vi(null,a));else if(yr(o),Kf(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var j=y.dgst;y=j,a=Error(s(419)),a.stack="",a.digest=y,si({value:a,source:null,stack:null}),o=hf(n,o,i)}else if(nt||Qo(n,o,i,!1),y=(i&n.childLanes)!==0,nt||y){if(y=Me,y!==null&&(a=Ih(y,i),a!==0&&a!==T.retryLane))throw T.retryLane=a,to(n,a),jt(y,n,a),af;Gf(b)||ml(),o=hf(n,o,i)}else Gf(b)?(o.flags|=192,o.child=n.child,o=null):(n=T.treeContext,Be=an(b.nextSibling),wt=o,Re=!0,dr=null,on=!1,n!==null&&Ap(o,n),o=df(o,a.children),o.flags|=4096);return o}return f?(wr(),b=a.fallback,f=o.mode,T=n.child,j=T.sibling,a=jn(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,j!==null?b=jn(j,b):(b=no(b,f,i,null),b.flags|=2),b.return=o,a.return=o,a.sibling=b,o.child=a,vi(null,a),a=o.child,b=n.child.memoizedState,b===null?b=uf(i):(f=b.cachePool,f!==null?(T=et._currentValue,f=f.parent!==T?{parent:T,pool:T}:f):f=$p(),b={baseLanes:b.baseLanes|i,cachePool:f}),a.memoizedState=b,a.childLanes=ff(n,y,i),o.memoizedState=cf,vi(n.child,a)):(yr(o),i=n.child,n=i.sibling,i=jn(i,{mode:"visible",children:a.children}),i.return=o,i.sibling=null,n!==null&&(y=o.deletions,y===null?(o.deletions=[n],o.flags|=16):y.push(n)),o.child=i,o.memoizedState=null,i)}function df(n,o){return o=il({mode:"visible",children:o},n.mode),o.return=n,n.child=o}function il(n,o){return n=Vt(22,n,null,o),n.lanes=0,n}function hf(n,o,i){return co(o,n.child,null,i),n=df(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function Gm(n,o,i){n.lanes|=o;var a=n.alternate;a!==null&&(a.lanes|=o),Au(n.return,o,i)}function pf(n,o,i,a,f,d){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:f,treeForkCount:d}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=a,y.tail=i,y.tailMode=f,y.treeForkCount=d)}function Km(n,o,i){var a=o.pendingProps,f=a.revealOrder,d=a.tail;a=a.children;var y=Ze.current,b=(y&2)!==0;if(b?(y=y&1|2,o.flags|=128):y&=1,Z(Ze,y),bt(n,o,a,i),a=Re?oi:0,!b&&n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Gm(n,i,o);else if(n.tag===19)Gm(n,i,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(i=o.child,f=null;i!==null;)n=i.alternate,n!==null&&Ya(n)===null&&(f=i),i=i.sibling;i=f,i===null?(f=o.child,o.child=null):(f=i.sibling,i.sibling=null),pf(o,!1,f,i,d,a);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=o.child,o.child=null;f!==null;){if(n=f.alternate,n!==null&&Ya(n)===null){o.child=f;break}n=f.sibling,f.sibling=i,i=f,f=n}pf(o,!0,i,null,d,a);break;case"together":pf(o,!1,null,null,void 0,a);break;default:o.memoizedState=null}return o.child}function qn(n,o,i){if(n!==null&&(o.dependencies=n.dependencies),Sr|=o.lanes,(i&o.childLanes)===0)if(n!==null){if(Qo(n,o,i,!1),(i&o.childLanes)===0)return null}else return null;if(n!==null&&o.child!==n.child)throw Error(s(153));if(o.child!==null){for(n=o.child,i=jn(n,n.pendingProps),o.child=i,i.return=o;n.sibling!==null;)n=n.sibling,i=i.sibling=jn(n,n.pendingProps),i.return=o;i.sibling=null}return o.child}function mf(n,o){return(n.lanes&o)!==0?!0:(n=n.dependencies,!!(n!==null&&Ua(n)))}function Ub(n,o,i){switch(o.tag){case 3:Xe(o,o.stateNode.containerInfo),pr(o,et,n.memoizedState.cache),ro();break;case 27:case 5:Ln(o);break;case 4:Xe(o,o.stateNode.containerInfo);break;case 10:pr(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,zu(o),null;break;case 13:var a=o.memoizedState;if(a!==null)return a.dehydrated!==null?(yr(o),o.flags|=128,null):(i&o.child.childLanes)!==0?Fm(n,o,i):(yr(o),n=qn(n,o,i),n!==null?n.sibling:null);yr(o);break;case 19:var f=(n.flags&128)!==0;if(a=(i&o.childLanes)!==0,a||(Qo(n,o,i,!1),a=(i&o.childLanes)!==0),f){if(a)return Km(n,o,i);o.flags|=128}if(f=o.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Z(Ze,Ze.current),a)break;return null;case 22:return o.lanes=0,zm(n,o,i,o.pendingProps);case 24:pr(o,et,n.memoizedState.cache)}return qn(n,o,i)}function Ym(n,o,i){if(n!==null)if(n.memoizedProps!==o.pendingProps)nt=!0;else{if(!mf(n,i)&&(o.flags&128)===0)return nt=!1,Ub(n,o,i);nt=(n.flags&131072)!==0}else nt=!1,Re&&(o.flags&1048576)!==0&&Tp(o,oi,o.index);switch(o.lanes=0,o.tag){case 16:e:{var a=o.pendingProps;if(n=ao(o.elementType),o.type=n,typeof n=="function")wu(n)?(a=fo(n,a),o.tag=1,o=Hm(null,o,n,a,i)):(o.tag=0,o=lf(null,o,n,a,i));else{if(n!=null){var f=n.$$typeof;if(f===N){o.tag=11,o=jm(null,o,n,a,i);break e}else if(f===z){o.tag=14,o=Mm(null,o,n,a,i);break e}}throw o=He(n)||n,Error(s(306,o,""))}}return o;case 0:return lf(n,o,o.type,o.pendingProps,i);case 1:return a=o.type,f=fo(a,o.pendingProps),Hm(n,o,a,f,i);case 3:e:{if(Xe(o,o.stateNode.containerInfo),n===null)throw Error(s(387));
vendor: 3,878 bytes, line 9
9a=o.pendingProps;var d=o.memoizedState;f=d.element,xu(n,o),di(o,a,null,i);var y=o.memoizedState;if(a=y.cache,pr(o,et,a),a!==d.cache&&Pu(o,[et],i,!0),fi(),a=y.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:y.cache},o.updateQueue.baseState=d,o.memoizedState=d,o.flags&256){o=Vm(n,o,a,i);break e}else if(a!==f){f=tn(Error(s(424)),o),si(f),o=Vm(n,o,a,i);break e}else for(n=o.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Be=an(n.firstChild),wt=o,Re=!0,dr=null,on=!0,i=zp(o,null,a,i),o.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ro(),a===f){o=qn(n,o,i);break e}bt(n,o,a,i)}o=o.child}return o;case 26:return sl(n,o),n===null?(i=sv(o.type,null,o.pendingProps,null))?o.memoizedState=i:Re||(i=o.type,n=o.pendingProps,a=Sl(ve.current).createElement(i),a[yt]=o,a[Lt]=n,St(a,i,n),dt(a),o.stateNode=a):o.memoizedState=sv(o.type,n.memoizedProps,o.pendingProps,n.memoizedState),null;case 27:return Ln(o),n===null&&Re&&(a=o.stateNode=nv(o.type,o.pendingProps,ve.current),wt=o,on=!0,f=Be,Ar(o.type)?(Yf=f,Be=an(a.firstChild)):Be=f),bt(n,o,o.pendingProps.children,i),sl(n,o),n===null&&(o.flags|=4194304),o.child;case 5:return n===null&&Re&&((f=a=Be)&&(a=gS(a,o.type,o.pendingProps,on),a!==null?(o.stateNode=a,wt=o,Be=an(a.firstChild),on=!1,f=!0):f=!1),f||hr(o)),Ln(o),f=o.type,d=o.pendingProps,y=n!==null?n.memoizedProps:null,a=d.children,Hf(f,d)?a=null:y!==null&&Hf(f,y)&&(o.flags|=32),o.memoizedState!==null&&(f=Bu(n,o,Ib,null,null,i),ki._currentValue=f),sl(n,o),bt(n,o,a,i),o.child;case 6:return n===null&&Re&&((n=i=Be)&&(i=vS(i,o.pendingProps,on),i!==null?(o.stateNode=i,wt=o,Be=null,n=!0):n=!1),n||hr(o)),null;case 13:return Fm(n,o,i);case 4:return Xe(o,o.stateNode.containerInfo),a=o.pendingProps,n===null?o.child=co(o,null,a,i):bt(n,o,a,i),o.child;case 11:return jm(n,o,o.type,o.pendingProps,i);case 7:return bt(n,o,o.pendingProps,i),o.child;case 8:return bt(n,o,o.pendingProps.children,i),o.child;case 12:return bt(n,o,o.pendingProps.children,i),o.child;case 10:return a=o.pendingProps,pr(o,o.type,a.value),bt(n,o,a.children,i),o.child;case 9:return f=o.type._context,a=o.pendingProps.children,so(o),f=_t(f),a=a(f),o.flags|=1,bt(n,o,a,i),o.child;case 14:return Mm(n,o,o.type,o.pendingProps,i);case 15:return Nm(n,o,o.type,o.pendingProps,i);case 19:return Km(n,o,i);case 31:return zb(n,o,i);case 22:return zm(n,o,i,o.pendingProps);case 24:return so(o),a=_t(et),n===null?(f=Iu(),f===null&&(f=Me,d=Ou(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=i),f=d),o.memoizedState={parent:a,cache:f},$u(o),pr(o,et,f)):((n.lanes&i)!==0&&(xu(n,o),di(o,null,null,i),fi()),f=n.memoizedState,d=o.memoizedState,f.parent!==a?(f={parent:a,cache:a},o.memoizedState=f,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=f),pr(o,et,a)):(a=d.cache,pr(o,et,a),a!==f.cache&&Pu(o,[et],i,!0))),bt(n,o,o.pendingProps.children,i),o.child;case 29:throw o.pendingProps}throw Error(s(156,o.tag))}function Hn(n){n.flags|=4}function gf(n,o,i,a,f){if((o=(n.mode&32)!==0)&&(o=!1),o){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(bg())n.flags|=8192;else throw lo=Va,ku}else n.flags&=-16777217}function Qm(n,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!uv(o))if(bg())n.flags|=8192;else throw lo=Va,ku}function al(n,o){o!==null&&(n.flags|=4),n.flags&16384&&(o=n.tag!==22?Ph():536870912,n.lanes|=o,as|=o)}function yi(n,o){if(!Re)switch(n.tailMode){case"hidden":o=n.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:a.sibling=null}}function qe(n){var o=n.alternate!==null&&n.alternate.child===n.child,i=0,a=0;if(o)for(var f=n.child;f!==null;
vendor: 5,748 bytes, line 9
9)i|=f.lanes|f.childLanes,a|=f.subtreeFlags&65011712,a|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)i|=f.lanes|f.childLanes,a|=f.subtreeFlags,a|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=a,n.childLanes=i,o}function Bb(n,o,i){var a=o.pendingProps;switch(Ru(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(o),null;case 1:return qe(o),null;case 3:return i=o.stateNode,a=null,n!==null&&(a=n.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),zn(et),je(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Yo(o)?Hn(o):n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Cu())),qe(o),null;case 26:var f=o.type,d=o.memoizedState;return n===null?(Hn(o),d!==null?(qe(o),Qm(o,d)):(qe(o),gf(o,f,null,a,i))):d?d!==n.memoizedState?(Hn(o),qe(o),Qm(o,d)):(qe(o),o.flags&=-16777217):(n=n.memoizedProps,n!==a&&Hn(o),qe(o),gf(o,f,n,a,i)),null;case 27:if(In(o),i=ve.current,f=o.type,n!==null&&o.stateNode!=null)n.memoizedProps!==a&&Hn(o);else{if(!a){if(o.stateNode===null)throw Error(s(166));return qe(o),null}n=ee.current,Yo(o)?Pp(o):(n=nv(f,a,i),o.stateNode=n,Hn(o))}return qe(o),null;case 5:if(In(o),f=o.type,n!==null&&o.stateNode!=null)n.memoizedProps!==a&&Hn(o);else{if(!a){if(o.stateNode===null)throw Error(s(166));return qe(o),null}if(d=ee.current,Yo(o))Pp(o);else{var y=Sl(ve.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof a.is=="string"?y.createElement("select",{is:a.is}):y.createElement("select"),a.multiple?d.multiple=!0:a.size&&(d.size=a.size);break;default:d=typeof a.is=="string"?y.createElement(f,{is:a.is}):y.createElement(f)}}d[yt]=o,d[Lt]=a;e:for(y=o.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===o)break e;for(;y.sibling===null;){if(y.return===null||y.return===o)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}o.stateNode=d;e:switch(St(d,f,a),f){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Hn(o)}}return qe(o),gf(o,o.type,n===null?null:n.memoizedProps,o.pendingProps,i),null;case 6:if(n&&o.stateNode!=null)n.memoizedProps!==a&&Hn(o);else{if(typeof a!="string"&&o.stateNode===null)throw Error(s(166));if(n=ve.current,Yo(o)){if(n=o.stateNode,i=o.memoizedProps,a=null,f=wt,f!==null)switch(f.tag){case 27:case 5:a=f.memoizedProps}n[yt]=o,n=!!(n.nodeValue===i||a!==null&&a.suppressHydrationWarning===!0||Fg(n.nodeValue,i)),n||hr(o,!0)}else n=Sl(n).createTextNode(a),n[yt]=o,o.stateNode=n}return qe(o),null;case 31:if(i=o.memoizedState,n===null||n.memoizedState!==null){if(a=Yo(o),i!==null){if(n===null){if(!a)throw Error(s(318));if(n=o.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[yt]=o}else ro(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;qe(o),n=!1}else i=Cu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return o.flags&256?(Gt(o),o):(Gt(o),null);if((o.flags&128)!==0)throw Error(s(558))}return qe(o),null;case 13:if(a=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Yo(o),a!==null&&a.dehydrated!==null){if(n===null){if(!f)throw Error(s(318));if(f=o.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[yt]=o}else ro(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;qe(o),f=!1}else f=Cu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return o.flags&256?(Gt(o),o):(Gt(o),null)}return Gt(o),(o.flags&128)!==0?(o.lanes=i,o):(i=a!==null,n=n!==null&&n.memoizedState!==null,i&&(a=o.child,f=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(f=a.alternate.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==f&&(a.flags|=2048)),i!==n&&i&&(o.child.flags|=8192),al(o,o.updateQueue),qe(o),null);case 4:return je(),n===null&&Nf(o.stateNode.containerInfo),qe(o),null;case 10:return zn(o.type),qe(o),null;case 19:if(F(Ze),a=o.memoizedState,a===null)return qe(o),null;if(f=(o.flags&128)!==0,d=a.rendering,d===null)if(f)yi(a,!1);else{if(Ye!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(d=Ya(n),d!==null){for(o.flags|=128,yi(a,!1),n=d.updateQueue,o.updateQueue=n,al(o,n),o.subtreeFlags=0,n=i,i=o.child;i!==null;)Rp(i,n),i=i.sibling;return Z(Ze,Ze.current&1|2),Re&&Mn(o,a.treeForkCount),o.child}n=n.sibling}a.tail!==null&&Rt()>dl&&(o.flags|=128,f=!0,yi(a,!1),o.lanes=4194304)}else{if(!f)if(n=Ya(d),n!==null){if(o.flags|=128,f=!0,n=n.updateQueue,o.updateQueue=n,al(o,n),yi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!Re)return qe(o),null}else 2*Rt()-a.renderingStartTime>dl&&i!==536870912&&(o.flags|=128,f=!0,yi(a,!1),o.lanes=4194304);a.isBackwards?(d.sibling=o.child,o.child=d):(n=a.last,n!==null?n.sibling=d:o.child=d,a.last=d)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.renderingStartTime=Rt(),n.sibling=null,i=Ze.current,Z(Ze,f?i&1|2:i&1),Re&&Mn(o,a.treeForkCount),n):(qe(o),null);case 22:case 23:return Gt(o),Nu(),a=o.memoizedState!==null,n!==null?n.memoizedState!==null!==a&&(o.flags|=8192):a&&(o.flags|=8192),a?(i&536870912)!==0&&(o.flags&128)===0&&(qe
vendor: 21,333 bytes, line 9
9(o),o.subtreeFlags&6&&(o.flags|=8192)):qe(o),i=o.updateQueue,i!==null&&al(o,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048),n!==null&&F(io),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),o.memoizedState.cache!==i&&(o.flags|=2048),zn(et),qe(o),null;case 25:return null;case 30:return null}throw Error(s(156,o.tag))}function qb(n,o){switch(Ru(o),o.tag){case 1:return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return zn(et),je(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 26:case 27:case 5:return In(o),null;case 31:if(o.memoizedState!==null){if(Gt(o),o.alternate===null)throw Error(s(340));ro()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 13:if(Gt(o),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(s(340));ro()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return F(Ze),null;case 4:return je(),null;case 10:return zn(o.type),null;case 22:case 23:return Gt(o),Nu(),n!==null&&F(io),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 24:return zn(et),null;case 25:return null;default:return null}}function Jm(n,o){switch(Ru(o),o.tag){case 3:zn(et),je();break;case 26:case 27:case 5:In(o);break;case 4:je();break;case 31:o.memoizedState!==null&&Gt(o);break;case 13:Gt(o);break;case 19:F(Ze);break;case 10:zn(o.type);break;case 22:case 23:Gt(o),Nu(),n!==null&&F(io);break;case 24:zn(et)}}function wi(n,o){try{var i=o.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var f=a.next;i=f;do{if((i.tag&n)===n){a=void 0;var d=i.create,y=i.inst;a=d(),y.destroy=a}i=i.next}while(i!==f)}}catch(b){ke(o,o.return,b)}}function _r(n,o,i){try{var a=o.updateQueue,f=a!==null?a.lastEffect:null;if(f!==null){var d=f.next;a=d;do{if((a.tag&n)===n){var y=a.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,f=o;var T=i,j=b;try{j()}catch(q){ke(f,T,q)}}}a=a.next}while(a!==d)}}catch(q){ke(o,o.return,q)}}function Xm(n){var o=n.updateQueue;if(o!==null){var i=n.stateNode;try{Bp(o,i)}catch(a){ke(n,n.return,a)}}}function Zm(n,o,i){i.props=fo(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(a){ke(n,o,a)}}function _i(n,o){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var a=n.stateNode;break;case 30:a=n.stateNode;break;default:a=n.stateNode}typeof i=="function"?n.refCleanup=i(a):i.current=a}}catch(f){ke(n,o,f)}}function Rn(n,o){var i=n.ref,a=n.refCleanup;if(i!==null)if(typeof a=="function")try{a()}catch(f){ke(n,o,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){ke(n,o,f)}else i.current=null}function Wm(n){var o=n.type,i=n.memoizedProps,a=n.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":i.autoFocus&&a.focus();break e;case"img":i.src?a.src=i.src:i.srcSet&&(a.srcset=i.srcSet)}}catch(f){ke(n,n.return,f)}}function vf(n,o,i){try{var a=n.stateNode;uS(a,n.type,i,o),a[Lt]=o}catch(f){ke(n,n.return,f)}}function eg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ar(n.type)||n.tag===4}function yf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||eg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ar(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function wf(n,o,i){var a=n.tag;if(a===5||a===6)n=n.stateNode,o?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,o):(o=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,o.appendChild(n),i=i._reactRootContainer,i!=null||o.onclick!==null||(o.onclick=xn));else if(a!==4&&(a===27&&Ar(n.type)&&(i=n.stateNode,o=null),n=n.child,n!==null))for(wf(n,o,i),n=n.sibling;n!==null;)wf(n,o,i),n=n.sibling}function ll(n,o,i){var a=n.tag;if(a===5||a===6)n=n.stateNode,o?i.insertBefore(n,o):i.appendChild(n);else if(a!==4&&(a===27&&Ar(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(ll(n,o,i),n=n.sibling;n!==null;)ll(n,o,i),n=n.sibling}function tg(n){var o=n.stateNode,i=n.memoizedProps;try{for(var a=n.type,f=o.attributes;f.length;)o.removeAttributeNode(f[0]);St(o,a,i),o[yt]=n,o[Lt]=i}catch(d){ke(n,n.return,d)}}var Vn=!1,rt=!1,_f=!1,ng=typeof WeakSet=="function"?WeakSet:Set,ht=null;function Hb(n,o){if(n=n.containerInfo,Bf=Ol,n=pp(n),du(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var f=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,b=-1,T=-1,j=0,q=0,G=n,M=null;t:for(;;){for(var U;G!==i||f!==0&&G.nodeType!==3||(b=y+f),G!==d||a!==0&&G.nodeType!==3||(T=y+a),G.nodeType===3&&(y+=G.nodeValue.length),(U=G.firstChild)!==null;)M=G,G=U;for(;;){if(G===n)break t;if(M===i&&++j===f&&(b=y),M===d&&++q===a&&(T=y),(U=G.nextSibling)!==null)break;G=M,M=G.parentNode}G=U}i=b===-1||T===-1?null:{start:b,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(qf={focusedElem:n,selectionRange:i},Ol=!1,ht=o;ht!==null;)if(o=ht,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,ht=n;else for(;ht!==null;){switch(o=ht,d=o.alternate,n=o.flags,o.tag){case 0:if((n&4)!==0&&(n=o.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)f=n[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&d!==null){n=void 0,i=o,f=d.memoizedProps,d=d.memoizedState,a=i.stateNode;try{var te=fo(i.type,f);n=a.getSnapshotBeforeUpdate(te,d),a.__reactInternalSnapshotBeforeUpdate=n}catch(fe){ke(i,i.return,fe)}}break;case 3:if((n&1024)!==0){if(n=o.stateNode.containerInfo,i=n.nodeType,i===9)Ff(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Ff(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=o.sibling,n!==null){n.return=o.return,ht=n;break}ht=o.return}}function rg(n,o,i){var a=i.flags;switch(i.tag){case 0:case 11:case 15:Gn(n,i),a&4&&wi(5,i);break;case 1:if(Gn(n,i),a&4)if(n=i.stateNode,o===null)try{n.componentDidMount()}catch(y){ke(i,i.return,y)}else{var f=fo(i.type,o.memoizedProps);o=o.memoizedState;try{n.componentDidUpdate(f,o,n.__reactInternalSnapshotBeforeUpdate)}catch(y){ke(i,i.return,y)}}a&64&&Xm(i),a&512&&_i(i,i.return);break;case 3:if(Gn(n,i),a&64&&(n=i.updateQueue,n!==null)){if(o=null,i.child!==null)switch(i.child.tag){case 27:case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}try{Bp(n,o)}catch(y){ke(i,i.return,y)}}break;case 27:o===null&&a&4&&tg(i);case 26:case 5:Gn(n,i),o===null&&a&4&&Wm(i),a&512&&_i(i,i.return);break;case 12:Gn(n,i);break;case 31:Gn(n,i),a&4&&ig(n,i);break;case 13:Gn(n,i),a&4&&ag(n,i),a&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=Zb.bind(null,i),yS(n,i))));break;case 22:if(a=i.memoizedState!==null||Vn,!a){o=o!==null&&o.memoizedState!==null||rt,f=Vn;var d=rt;Vn=a,(rt=o)&&!d?Kn(n,i,(i.subtreeFlags&8772)!==0):Gn(n,i),Vn=f,rt=d}break;case 30:break;default:Gn(n,i)}}function og(n){var o=n.alternate;o!==null&&(n.alternate=null,og(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&Qc(o)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ve=null,kt=!1;function Fn(n,o,i){for(i=i.child;i!==null;)sg(n,o,i),i=i.sibling}function sg(n,o,i){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Vs,i)}catch{}switch(i.tag){case 26:rt||Rn(i,o),Fn(n,o,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:rt||Rn(i,o);var a=Ve,f=kt;Ar(i.type)&&(Ve=i.stateNode,kt=!1),Fn(n,o,i),Oi(i.stateNode),Ve=a,kt=f;break;case 5:rt||Rn(i,o);case 6:if(a=Ve,f=kt,Ve=null,Fn(n,o,i),Ve=a,kt=f,Ve!==null)if(kt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(i.stateNode)}catch(d){ke(i,o,d)}else try{Ve.removeChild(i.stateNode)}catch(d){ke(i,o,d)}break;case 18:Ve!==null&&(kt?(n=Ve,Xg(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),ms(n)):Xg(Ve,i.stateNode));break;case 4:a=Ve,f=kt,Ve=i.stateNode.containerInfo,kt=!0,Fn(n,o,i),Ve=a,kt=f;break;case 0:case 11:case 14:case 15:_r(2,i,o),rt||_r(4,i,o),Fn(n,o,i);break;case 1:rt||(Rn(i,o),a=i.stateNode,typeof a.componentWillUnmount=="function"&&Zm(i,o,a)),Fn(n,o,i);break;case 21:Fn(n,o,i);break;case 22:rt=(a=rt)||i.memoizedState!==null,Fn(n,o,i),rt=a;break;default:Fn(n,o,i)}}function ig(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ms(n)}catch(i){ke(o,o.return,i)}}}function ag(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ms(n)}catch(i){ke(o,o.return,i)}}function Vb(n){switch(n.tag){case 31:case 13:case 19:var o=n.stateNode;return o===null&&(o=n.stateNode=new ng),o;case 22:return n=n.stateNode,o=n._retryCache,o===null&&(o=n._retryCache=new ng),o;default:throw Error(s(435,n.tag))}}function cl(n,o){var i=Vb(n);o.forEach(function(a){if(!i.has(a)){i.add(a);var f=Wb.bind(null,n,a);a.then(f,f)}})}function $t(n,o){var i=o.deletions;if(i!==null)for(var a=0;a<i.length;a++){var f=i[a],d=n,y=o,b=y;e:for(;b!==null;){switch(b.tag){case 27:if(Ar(b.type)){Ve=b.stateNode,kt=!1;break e}break;case 5:Ve=b.stateNode,kt=!1;break e;case 3:case 4:Ve=b.stateNode.containerInfo,kt=!0;break e}b=b.return}if(Ve===null)throw Error(s(160));sg(d,y,f),Ve=null,kt=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)lg(o,n),o=o.sibling}var hn=null;function lg(n,o){var i=n.alternate,a=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:$t(o,n),xt(n),a&4&&(_r(3,n,n.return),wi(3,n),_r(5,n,n.return));break;case 1:$t(o,n),xt(n),a&512&&(rt||i===null||Rn(i,i.return)),a&64&&Vn&&(n=n.updateQueue,n!==null&&(a=n.callbacks,a!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?a:i.concat(a))));break;case 26:var f=hn;if($t(o,n),xt(n),a&512&&(rt||i===null||Rn(i,i.return)),a&4){var d=i!==null?i.memoizedState:null;if(a=n.memoizedState,i===null)if(a===null)if(n.stateNode===null){e:{a=n.type,i=n.memoizedProps,f=f.ownerDocument||f;t:switch(a){case"title":d=f.getElementsByTagName("title")[0],(!d||d[Ks]||d[yt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(a),f.head.insertBefore(d,f.querySelector("head > title"))),St(d,a,i),d[yt]=n,dt(d),a=d;break e;case"link":var y=lv("link","href",f).get(a+(i.href||""));if(y){for(var b=0;b<y.length;b++)if(d=y[b],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(b,1);break t}}d=f.createElement(a),St(d,a,i),f.head.appendChild(d);break;case"meta":if(y=lv("meta","content",f).get(a+(i.content||""))){for(b=0;b<y.length;b++)if(d=y[b],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(b,1);break t}}d=f.createElement(a),St(d,a,i),f.head.appendChild(d);break;default:throw Error(s(468,a))}d[yt]=n,dt(d),a=d}n.stateNode=a}else cv(f,n.type,n.stateNode);else n.stateNode=av(f,a,n.memoizedProps);else d!==a?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,a===null?cv(f,n.type,n.stateNode):av(f,a,n.memoizedProps)):a===null&&n.stateNode!==null&&vf(n,n.memoizedProps,i.memoizedProps)}break;case 27:$t(o,n),xt(n),a&512&&(rt||i===null||Rn(i,i.return)),i!==null&&a&4&&vf(n,n.memoizedProps,i.memoizedProps);break;case 5:if($t(o,n),xt(n),a&512&&(rt||i===null||Rn(i,i.return)),n.flags&32){f=n.stateNode;try{No(f,"")}catch(te){ke(n,n.return,te)}}a&4&&n.stateNode!=null&&(f=n.memoizedProps,vf(n,f,i!==null?i.memoizedProps:f)),a&1024&&(_f=!0);break;case 6:if($t(o,n),xt(n),a&4){if(n.stateNode===null)throw Error(s(162));a=n.memoizedProps,i=n.stateNode;try{i.nodeValue=a}catch(te){ke(n,n.return,te)}}break;case 3:if(Cl=null,f=hn,hn=Rl(o.containerInfo),$t(o,n),hn=f,xt(n),a&4&&i!==null&&i.memoizedState.isDehydrated)try{ms(o.containerInfo)}catch(te){ke(n,n.return,te)}_f&&(_f=!1,cg(n));break;case 4:a=hn,hn=Rl(n.stateNode.containerInfo),$t(o,n),xt(n),hn=a;break;case 12:$t(o,n),xt(n);break;case 31:$t(o,n),xt(n),a&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,cl(n,a)));break;case 13:$t(o,n),xt(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(fl=Rt()),a&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,cl(n,a)));break;case 22:f=n.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,j=Vn,q=rt;if(Vn=j||f,rt=q||T,$t(o,n),rt=q,Vn=j,xt(n),a&8192)e:for(o=n.stateNode,o._visibility=f?o._visibility&-2:o._visibility|1,f&&(i===null||T||Vn||rt||ho(n)),i=null,o=n;;){if(o.tag===5||o.tag===26){if(i===null){T=i=o;try{if(d=T.stateNode,f)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=T.stateNode;var G=T.memoizedProps.style,M=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(te){ke(T,T.return,te)}}}else if(o.tag===6){if(i===null){T=o;try{T.stateNode.nodeValue=f?"":T.memoizedProps}catch(te){ke(T,T.return,te)}}}else if(o.tag===18){if(i===null){T=o;try{var U=T.stateNode;f?Zg(U,!0):Zg(T.stateNode,!1)}catch(te){ke(T,T.return,te)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===n)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;i===o&&(i=null),o=o.return}i===o&&(i=null),o.sibling.return=o.return,o=o.sibling}a&4&&(a=n.updateQueue,a!==null&&(i=a.retryQueue,i!==null&&(a.retryQueue=null,cl(n,i))));break;case 19:$t(o,n),xt(n),a&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,cl(n,a)));break;case 30:break;case 21:break;default:$t(o,n),xt(n)}}function xt(n){var o=n.flags;if(o&2){try{for(var i,a=n.return;a!==null;){if(eg(a)){i=a;break}a=a.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var f=i.stateNode,d=yf(n);ll(n,d,f);break;case 5:var y=i.stateNode;i.flags&32&&(No(y,""),i.flags&=-33);var b=yf(n);ll(n,b,y);break;case 3:case 4:var T=i.stateNode.containerInfo,j=yf(n);wf(n,j,T);break;default:throw Error(s(161))}}catch(q){ke(n,n.return,q)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function cg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var o=n;cg(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),n=n.sibling}}function Gn(n,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)rg(n,o.alternate,o),o=o.sibling}function ho(n){for(n=n.child;n!==null;){var o=n;switch(o.tag){case 0:case 11:case 14:case 15:_r(4,o,o.return),ho(o);break;case 1:Rn(o,o.return);var i=o.stateNode;typeof i.componentWillUnmount=="function"&&Zm(o,o.return,i),ho(o);break;case 27:Oi(o.stateNode);case 26:case 5:Rn(o,o.return),ho(o);break;case 22:o.memoizedState===null&&ho(o);break;case 30:ho(o);break;default:ho(o)}n=n.sibling}}function Kn(n,o,i){for(i=i&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var a=o.alternate,f=n,d=o,y=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(f,d,i),wi(4,d);break;case 1:if(Kn(f,d,i),a=d,f=a.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(j){ke(a,a.return,j)}if(a=d,f=a.updateQueue,f!==null){var b=a.stateNode;try{var T=f.shared.hiddenCallbacks;if(T!==null)for(f.shared.hiddenCallbacks=null,f=0;f<T.length;f++)Up(T[f],b)}catch(j){ke(a,a.return,j)}}i&&y&64&&Xm(d),_i(d,d.return);break;case 27:tg(d);case 26:case 5:Kn(f,d,i),i&&a===null&&y&4&&Wm(d),_i(d,d.return);break;case 12:Kn(f,d,i);break;case 31:Kn(f,d,i),i&&y&4&&ig(f,d);break;case 13:Kn(f,d,i),i&&y&4&&ag(f,d);break;case 22:d.memoizedState===null&&Kn(f,d,i),_i(d,d.return);break;case 30:break;default:Kn(f,d,i)}o=o.sibling}}function bf(n,o){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&ii(i))}function Sf(n,o){n=null,o.alternate!==null&&(n=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==n&&(o.refCount++,n!=null&&ii(n))}function pn(n,o,i,a){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)ug(n,o,i,a),o=o.sibling}function ug(n,o,i,a){var f=o.flags;switch(o.tag){case 0:case 11:case 15:pn(n,o,i,a),f&2048&&wi(9,o);break;case 1:pn(n,o,i,a);break;case 3:pn(n,o,i,a),f&2048&&(n=null,o.alternate!==null&&(n=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==n&&(o.refCount++,n!=null&&ii(n)));break;case 12:if(f&2048){pn(n,o,i,a),n=o.stateNode;try{var d=o.memoizedProps,y=d.id,b=d.onPostCommit;typeof b=="function"&&b(y,o.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(T){ke(o,o.return,T)}}else pn(n,o,i,a);break;case 31:pn(n,o,i,a);break;case 13:pn(n,o,i,a);break;case 23:break;case 22:d=o.stateNode,y=o.alternate,o.memoizedState!==null?d._visibility&2?pn(n,o,i,a):bi(n,o):d._visibility&2?pn(n,o,i,a):(d._visibility|=2,os(n,o,i,a,(o.subtreeFlags&10256)!==0||!1)),f&2048&&bf(y,o);break;case 24:pn(n,o,i,a),f&2048&&Sf(o.alternate,o);break;default:pn(n,o,i,a)}}function os(n,o,i,a,f){for(f=f&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var d=n,y=o,b=i,T=a,j=y.flags;switch(y.tag){case 0:case 11:case 15:os(d,y,b,T,f),wi(8,y);break;case 23:break;case 22:var q=y.stateNode;y.memoizedState!==null?q._visibility&2?os(d,y,b,T,f):bi(d,y):(q._visibility|=2,os(d,y,b,T,f)),f&&j&2048&&bf(y.alternate,y);break;case 24:os(d,y,b,T,f),f&&j&2048&&Sf(y.alternate,y);break;default:os(d,y,b,T,f)}o=o.sibling}}function bi(n,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var i=n,a=o,f=a.flags;switch(a.tag){case 22:bi(i,a),f&2048&&bf(a.alternate,a);break;case 24:bi(i,a),f&2048&&Sf(a.alternate,a);break;default:bi(i,a)}o=o.sibling}}var Si=8192;function ss(n,o,i){if(n.subtreeFlags&Si)for(n=n.child;n!==null;)fg(n,o,i),n=n.sibling}function fg(n,o,i){switch(n.tag){case 26:ss(n,o,i),n.flags&Si&&n.memoizedState!==null&&LS(i,hn,n.memoizedState,n.memoizedProps);break;case 5:ss(n,o,i);break;case 3:case 4:var a=hn;hn=Rl(n.stateNode.containerInfo),ss(n,o,i),hn=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Si,Si=16777216,ss(n,o,i),Si=a):ss(n,o,i));break;default:ss(n,o,i)}}function dg(n){var o=n.alternate;if(o!==null&&(n=o.child,n!==null)){o.child=null;do o=n.sibling,n.sibling=null,n=o;while(n!==null)}}function Ri(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var i=0;i<o.length;i++){var a=o[i];ht=a,pg(a,n)}dg(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)hg(n),n=n.sibling}function hg(n){switch(n.tag){case 0:case 11:case 15:Ri(n),n.flags&2048&&_r(9,n,n.return);break;case 3:Ri(n);break;case 12:Ri(n);break;case 22:var o=n.stateNode;n.memoizedState!==null&&o._visibility&2&&(n.return===null||n.return.tag!==13)?(o._visibility&=-3,ul(n)):Ri(n);break;default:Ri(n)}}function ul(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var i=0;i<o.length;i++){var a=o[i];ht=a,pg(a,n)}dg(n)}for(n=n.child;n!==null;){switch(o=n,o.tag){case 0:case 11:case 15:_r(8,o,o.return),ul(o);break;case 22:i=o.stateNode,i._visibility&2&&(i._visibility&=-3,ul(o));break;default:ul(o)}n=n.sibling}}function pg(n,o){for(;ht!==null;){var i=ht;switch(i.tag){case 0:case 11:case 15:_r(8,i,o);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var a=i.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ii(i.memoizedState.cache)}if(a=i.child,a!==null)a.return=i,ht=a;else e:for(i=n;ht!==null;){a=ht;var f=a.sibling,d=a.return;if(og(a),a===i){ht=null;break e}if(f!==null){f.return=d,ht=f;break e}ht=d}}}var Fb={getCacheForType:function(n){var o=_t(et),i=o.data.get(n);return i===void 0&&(i=n(),o.data.set(n,i)),i},cacheSignal:function(){return _t(et).controller.signal}},Gb=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Me=null,ye=null,be=0,Ie=0,Kt=null,br=!1,is=!1,Rf=!1,Yn=0,Ye=0,Sr=0,po=0,Ef=0,Yt=0,as=0,Ei=null,Dt=null,Cf=!1,fl=0,mg=0,dl=1/0,hl=null,Rr=null,lt=0,Er=null,ls=null,Qn=0,Tf=0,Af=null,gg=null,Ci=0,Pf=null;function Qt(){return(Oe&2)!==0&&be!==0?be&-be:B.T!==null?xf():kh()}function vg(){if(Yt===0)if((be&536870912)===0||Re){var n=ba;ba<<=1,(ba&3932160)===0&&(ba=262144),Yt=n}else Yt=536870912;return n=Ft.current,n!==null&&(n.flags|=32),Yt}function jt(n,o,i){(n===Me&&(Ie===2||Ie===9)||n.cancelPendingCommit!==null)&&(cs(n,0),Cr(n,be,Yt,!1)),Gs(n,i),((Oe&2)===0||n!==Me)&&(n===Me&&((Oe&2)===0&&(po|=i),Ye===4&&Cr(n,be,Yt,!1)),En(n))}function yg(n,o,i){if((Oe&6)!==0)throw Error(s(327));var a=!i&&(o&127)===0&&(o&n.expiredLanes)===0||Fs(n,o),f=a?Qb(n,o):Lf(n,o,!0),d=a;do{if(f===0){is&&!a&&Cr(n,o,0,!1);break}
vendor: 13,985 bytes, line 9
9else{if(i=n.current.alternate,d&&!Kb(i)){f=Lf(n,o,!1),d=!1;continue}if(f===2){if(d=o,n.errorRecoveryDisabledLanes&d)var y=0;else y=n.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){o=y;e:{var b=n;f=Ei;var T=b.current.memoizedState.isDehydrated;if(T&&(cs(b,y).flags|=256),y=Lf(b,y,!1),y!==2){if(Rf&&!T){b.errorRecoveryDisabledLanes|=d,po|=d,f=4;break e}d=Dt,Dt=f,d!==null&&(Dt===null?Dt=d:Dt.push.apply(Dt,d))}f=y}if(d=!1,f!==2)continue}}if(f===1){cs(n,0),Cr(n,o,0,!0);break}e:{switch(a=n,d=f,d){case 0:case 1:throw Error(s(345));case 4:if((o&4194048)!==o)break;case 6:Cr(a,o,Yt,!br);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((o&62914560)===o&&(f=fl+300-Rt(),10<f)){if(Cr(a,o,Yt,!br),Ra(a,0,!0)!==0)break e;Qn=o,a.timeoutHandle=Qg(wg.bind(null,a,i,Dt,hl,Cf,o,Yt,po,as,br,d,"Throttled",-0,0),f);break e}wg(a,i,Dt,hl,Cf,o,Yt,po,as,br,d,null,-0,0)}}break}while(!0);En(n)}function wg(n,o,i,a,f,d,y,b,T,j,q,G,M,U){if(n.timeoutHandle=-1,G=o.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},fg(o,d,G);var te=(d&62914560)===d?fl-Rt():(d&4194048)===d?mg-Rt():0;if(te=IS(G,te),te!==null){Qn=d,n.cancelPendingCommit=te(Ag.bind(null,n,o,d,i,a,f,y,b,T,q,G,null,M,U)),Cr(n,d,y,!j);return}}Ag(n,o,d,i,a,f,y,b,T)}function Kb(n){for(var o=n;;){var i=o.tag;if((i===0||i===11||i===15)&&o.flags&16384&&(i=o.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var a=0;a<i.length;a++){var f=i[a],d=f.getSnapshot;f=f.value;try{if(!Ht(d(),f))return!1}catch{return!1}}if(i=o.child,o.subtreeFlags&16384&&i!==null)i.return=o,o=i;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Cr(n,o,i,a){o&=~Ef,o&=~po,n.suspendedLanes|=o,n.pingedLanes&=~o,a&&(n.warmLanes|=o),a=n.expirationTimes;for(var f=o;0<f;){var d=31-qt(f),y=1<<d;a[d]=-1,f&=~y}i!==0&&Oh(n,i,o)}function pl(){return(Oe&6)===0?(Ti(0),!1):!0}function Of(){if(ye!==null){if(Ie===0)var n=ye.return;else n=ye,Nn=oo=null,Vu(n),Wo=null,li=0,n=ye;for(;n!==null;)Jm(n.alternate,n),n=n.return;ye=null}}function cs(n,o){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,hS(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Qn=0,Of(),Me=n,ye=i=jn(n.current,null),be=o,Ie=0,Kt=null,br=!1,is=Fs(n,o),Rf=!1,as=Yt=Ef=po=Sr=Ye=0,Dt=Ei=null,Cf=!1,(o&8)!==0&&(o|=o&32);var a=n.entangledLanes;if(a!==0)for(n=n.entanglements,a&=o;0<a;){var f=31-qt(a),d=1<<f;o|=n[f],a&=~d}return Yn=o,Da(),i}function _g(n,o){pe=null,B.H=gi,o===Zo||o===Ha?(o=jp(),Ie=3):o===ku?(o=jp(),Ie=4):Ie=o===af?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Kt=o,ye===null&&(Ye=1,rl(n,tn(o,n.current)))}function bg(){var n=Ft.current;return n===null?!0:(be&4194048)===be?sn===null:(be&62914560)===be||(be&536870912)!==0?n===sn:!1}function Sg(){var n=B.H;return B.H=gi,n===null?gi:n}function Rg(){var n=B.A;return B.A=Fb,n}function ml(){Ye=4,br||(be&4194048)!==be&&Ft.current!==null||(is=!0),(Sr&134217727)===0&&(po&134217727)===0||Me===null||Cr(Me,be,Yt,!1)}function Lf(n,o,i){var a=Oe;Oe|=2;var f=Sg(),d=Rg();(Me!==n||be!==o)&&(hl=null,cs(n,o)),o=!1;var y=Ye;e:do try{if(Ie!==0&&ye!==null){var b=ye,T=Kt;switch(Ie){case 8:Of(),y=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(o=!0);var j=Ie;if(Ie=0,Kt=null,us(n,b,T,j),i&&is){y=0;break e}break;default:j=Ie,Ie=0,Kt=null,us(n,b,T,j)}}Yb(),y=Ye;break}catch(q){_g(n,q)}while(!0);return o&&n.shellSuspendCounter++,Nn=oo=null,Oe=a,B.H=f,B.A=d,ye===null&&(Me=null,be=0,Da()),y}function Yb(){for(;ye!==null;)Eg(ye)}function Qb(n,o){var i=Oe;Oe|=2;var a=Sg(),f=Rg();Me!==n||be!==o?(hl=null,dl=Rt()+500,cs(n,o)):is=Fs(n,o);e:do try{if(Ie!==0&&ye!==null){o=ye;var d=Kt;t:switch(Ie){case 1:Ie=0,Kt=null,us(n,o,d,1);break;case 2:case 9:if(xp(d)){Ie=0,Kt=null,Cg(o);break}o=function(){Ie!==2&&Ie!==9||Me!==n||(Ie=7),En(n)},d.then(o,o);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:xp(d)?(Ie=0,Kt=null,Cg(o)):(Ie=0,Kt=null,us(n,o,d,7));break;case 5:var y=null;switch(ye.tag){case 26:y=ye.memoizedState;case 5:case 27:var b=ye;if(y?uv(y):b.stateNode.complete){Ie=0,Kt=null;var T=b.sibling;if(T!==null)ye=T;else{var j=b.return;j!==null?(ye=j,gl(j)):ye=null}break t}}Ie=0,Kt=null,us(n,o,d,5);break;case 6:Ie=0,Kt=null,us(n,o,d,6);break;case 8:Of(),Ye=6;break e;default:throw Error(s(462))}}Jb();break}catch(q){_g(n,q)}while(!0);return Nn=oo=null,B.H=a,B.A=f,Oe=i,ye!==null?0:(Me=null,be=0,Da(),Ye)}function Jb(){for(;ye!==null&&!wa();)Eg(ye)}function Eg(n){var o=Ym(n.alternate,n,Yn);n.memoizedProps=n.pendingProps,o===null?gl(n):ye=o}function Cg(n){var o=n,i=o.alternate;switch(o.tag){case 15:case 0:o=qm(i,o,o.pendingProps,o.type,void 0,be);break;case 11:o=qm(i,o,o.pendingProps,o.type.render,o.ref,be);break;case 5:Vu(o);default:Jm(i,o),o=ye=Rp(o,Yn),o=Ym(i,o,Yn)}n.memoizedProps=n.pendingProps,o===null?gl(n):ye=o}function us(n,o,i,a){Nn=oo=null,Vu(o),Wo=null,li=0;var f=o.return;try{if(Nb(n,f,o,i,be)){Ye=1,rl(n,tn(i,n.current)),ye=null;return}}catch(d){if(f!==null)throw ye=f,d;Ye=1,rl(n,tn(i,n.current)),ye=null;return}o.flags&32768?(Re||a===1?n=!0:is||(be&536870912)!==0?n=!1:(br=n=!0,(a===2||a===9||a===3||a===6)&&(a=Ft.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tg(o,n)):gl(o)}function gl(n){var o=n;do{if((o.flags&32768)!==0){Tg(o,br);return}n=o.return;var i=Bb(o.alternate,o,Yn);if(i!==null){ye=i;return}if(o=o.sibling,o!==null){ye=o;return}ye=o=n}while(o!==null);Ye===0&&(Ye=5)}function Tg(n,o){do{var i=qb(n.alternate,n);if(i!==null){i.flags&=32767,ye=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!o&&(n=n.sibling,n!==null)){ye=n;return}ye=n=i}while(n!==null);Ye=6,ye=null}function Ag(n,o,i,a,f,d,y,b,T){n.cancelPendingCommit=null;do vl();while(lt!==0);if((Oe&6)!==0)throw Error(s(327));if(o!==null){if(o===n.current)throw Error(s(177));if(d=o.lanes|o.childLanes,d|=vu,O_(n,i,d,y,b,T),n===Me&&(ye=Me=null,be=0),ls=o,Er=n,Qn=i,Tf=d,Af=f,gg=a,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,eS(Io,function(){return kg(),null})):(n.callbackNode=null,n.callbackPriority=0),a=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,f=J.p,J.p=2,y=Oe,Oe|=4;try{Hb(n,o,i)}finally{Oe=y,J.p=f,B.T=a}}lt=1,Pg(),Og(),Lg()}}function Pg(){if(lt===1){lt=0;var n=Er,o=ls,i=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var a=J.p;J.p=2;var f=Oe;Oe|=4;try{lg(o,n);var d=qf,y=pp(n.containerInfo),b=d.focusedElem,T=d.selectionRange;if(y!==b&&b&&b.ownerDocument&&hp(b.ownerDocument.documentElement,b)){if(T!==null&&du(b)){var j=T.start,q=T.end;if(q===void 0&&(q=j),"selectionStart"in b)b.selectionStart=j,b.selectionEnd=Math.min(q,b.value.length);else{var G=b.ownerDocument||document,M=G&&G.defaultView||window;if(M.getSelection){var U=M.getSelection(),te=b.textContent.length,fe=Math.min(T.start,te),De=T.end===void 0?fe:Math.min(T.end,te);!U.extend&&fe>De&&(y=De,De=fe,fe=y);var x=dp(b,fe),P=dp(b,De);if(x&&P&&(U.rangeCount!==1||U.anchorNode!==x.node||U.anchorOffset!==x.offset||U.focusNode!==P.node||U.focusOffset!==P.offset)){var D=G.createRange();D.setStart(x.node,x.offset),U.removeAllRanges(),fe>De?(U.addRange(D),U.extend(P.node,P.offset)):(D.setEnd(P.node,P.offset),U.addRange(D))}}}}for(G=[],U=b;U=U.parentNode;)U.nodeType===1&&G.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var H=G[b];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ol=!!Bf,qf=Bf=null}finally{Oe=f,J.p=a,B.T=i}}n.current=o,lt=2}}function Og(){if(lt===2){lt=0;var n=Er,o=ls,i=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||i){i=B.T,B.T=null;var a=J.p;J.p=2;var f=Oe;Oe|=4;try{rg(n,o.alternate,o)}finally{Oe=f,J.p=a,B.T=i}}lt=3}}function Lg(){if(lt===4||lt===3){lt=0,Vc();var n=Er,o=ls,i=Qn,a=gg;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?lt=5:(lt=0,ls=Er=null,Ig(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(Rr=null),Kc(i),o=o.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Vs,o,void 0,(o.current.flags&128)===128)}catch{}if(a!==null){o=B.T,f=J.p,J.p=2,B.T=null;try{for(var d=n.onRecoverableError,y=0;y<a.length;y++){var b=a[y];d(b.value,{componentStack:b.stack})}}finally{B.T=o,J.p=f}}(Qn&3)!==0&&vl(),En(n),f=n.pendingLanes,(i&261930)!==0&&(f&42)!==0?n===Pf?Ci++:(Ci=0,Pf=n):Ci=0,Ti(0)}}function Ig(n,o){(n.pooledCacheLanes&=o)===0&&(o=n.pooledCache,o!=null&&(n.pooledCache=null,ii(o)))}function vl(){return Pg(),Og(),Lg(),kg()}function kg(){if(lt!==5)return!1;var n=Er,o=Tf;Tf=0;var i=Kc(Qn),a=B.T,f=J.p;try{J.p=32>i?32:i,B.T=null,i=Af,Af=null;var d=Er,y=Qn;if(lt=0,ls=Er=null,Qn=0,(Oe&6)!==0)throw Error(s(331));var b=Oe;if(Oe|=4,hg(d.current),ug(d,d.current,y,i),Oe=b,Ti(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Vs,d)}catch{}return!0}finally{J.p=f,B.T=a,Ig(n,o)}}function $g(n,o,i){o=tn(i,o),o=sf(n.stateNode,o,2),n=vr(n,o,2),n!==null&&(Gs(n,2),En(n))}function ke(n,o,i){if(n.tag===3)$g(n,n,i);else for(;o!==null;){if(o.tag===3){$g(o,n,i);break}else if(o.tag===1){var a=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Rr===null||!Rr.has(a))){n=tn(i,n),i=xm(2),a=vr(o,i,2),a!==null&&(Dm(i,a,o,n),Gs(a,2),En(a));break}}o=o.return}}function If(n,o,i){var a=n.pingCache;if(a===null){a=n.pingCache=new Gb;var f=new Set;a.set(o,f)}else f=a.get(o),f===void 0&&(f=new Set,a.set(o,f));f.has(i)||(Rf=!0,f.add(i),n=Xb.bind(null,n,o,i),o.then(n,n))}function Xb(n,o,i){var a=n.pingCache;a!==null&&a.delete(o),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Me===n&&(be&i)===i&&(Ye===4||Ye===3&&(be&62914560)===be&&300>Rt()-fl?(Oe&2)===0&&cs(n,0):Ef|=i,as===be&&(as=0)),En(n)}function xg(n,o){o===0&&(o=Ph()),n=to(n,o),n!==null&&(Gs(n,o),En(n))}function Zb(n){var o=n.memoizedState,i=0;o!==null&&(i=o.retryLane),xg(n,i)}function Wb(n,o){var i=0;switch(n.tag){case 31:case 13:var a=n.stateNode,f=n.memoizedState;f!==null&&(i=f.retryLane);break;case 19:a=n.stateNode;break;case 22:a=n.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(o),xg(n,i)}function eS(n,o){return fn(n,o)}var yl=null,fs=null,kf=!1,wl=!1,$f=!1,Tr=0;function En(n){n!==fs&&n.next===null&&(fs===null?yl=fs=n:fs=fs.next=n),wl=!0,kf||(kf=!0,nS())}function Ti(n,o){if(!$f&&wl){$f=!0;do for(var i=!1,a=yl;a!==null;){if(n!==0){var f=a.pendingLanes;if(f===0)var d=0;else{var y=a.suspendedLanes,b=a.pingedLanes;d=(1<<31-qt(42|n)+1)-1,d&=f&~(y&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Ng(a,d))}else d=be,d=Ra(a,a===Me?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(d&3)===0||Fs(a,d)||(i=!0,Ng(a,d));a=a.next}while(i);$f=!1}}function tS(){Dg()}function Dg(){wl=kf=!1;var n=0;Tr!==0&&dS()&&(n=Tr);for(var o=Rt(),i=null,a=yl;a!==null;){var f=a.next,d=jg(a,o);d===0?(a.next=null,i===null?yl=f:i.next=f,f===null&&(fs=i)):(i=a,(n!==0||(d&3)!==0)&&(wl=!0)),a=f}lt!==0&<!==5||Ti(n),Tr!==0&&(Tr=0)}function jg(n,o){for(var i=n.suspendedLanes,a=n.pingedLanes,f=n.expirationTimes,d=n.pendingLanes&-62914561;0<d;){var y=31-qt(d),b=1<<y,T=f[y];T===-1?((b&i)===0||(b&a)!==0)&&(f[y]=P_(b,o)):T<=o&&(n.expiredLanes|=b),d&=~b}if(o=Me,i=be,i=Ra(n,n===o?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),a=n.callbackNode,i===0||n===o&&(Ie===2||Ie===9)||n.cancelPendingCommit!==null)return a!==null&&a!==null&&Hs(a),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Fs(n,i)){if(o=i&-i,o===n.callbackPriority)return o;switch(a!==null&&Hs(a),Kc(i)){case 2:case 8:i=_n;break;case 32:i=Io;break;case 268435456:i=Ah;break;default:i=Io}return a=Mg.bind(null,n),i=fn(i,a),n.callbackPriority=o,n.callbackNode=i,o}return a!==null&&a!==null&&Hs(a),n.callbackPriority=2,n.callbackNode=null,2}function Mg(n,o){if(lt!==0&<!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(vl()&&n.callbackNode!==i)return null;var a=be;return a=Ra(n,n===Me?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),a===0?null:(yg(n,a,o),jg(n,Rt()),n.callbackNode!=null&&n.callbackNode===i?Mg.bind(null,n):null)}function Ng(n,o){if(vl())return null;yg(n,o,!0)}function nS(){pS(function(){(Oe&6)!==0?fn(vt,tS):Dg()})}function xf(){if(Tr===0){var n=Jo;n===0&&(n=_a,_a<<=1,(_a&261888)===0&&(_a=256)),Tr=n}return Tr}function zg(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Aa(""+n)}function Ug(n,o){var i=o.ownerDocument.createElement("input");return i.name=o.name,i.value=o.value,n.id&&i.setAttribute("form",n.id),o.parentNode.insertBefore(i,o),n=new FormData(n),i.parentNode.removeChild(i),n}function rS(n,o,i,a,f){if(o==="submit"&&i&&i.stateNode===f){var d=zg((f[Lt]||null).action),y=a.submitter;y&&(o=(o=y[Lt]||null)?zg(o.formAction):y.getAttribute("formAction"),o!==null&&(d=o,y=null));var b=new Ia("action","action",null,a,f);n.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Tr!==0){var T=y?Ug(f,y):new FormData(f);Wu(i,{pending:!0,data:T,method:f.method,action:d},null,T)}}else typeof d=="function"&&(b.preventDefault(),T=y?Ug(f,y):new FormData(f),Wu(i,{pending:!0,data:T,method:f.method,action:d},d,T))},currentTarget:f}]})}}for(var Df=0;Df<gu.length;Df++){var jf=gu[Df],oS=jf.toLowerCase(),sS=jf[0].toUpperCase()+jf.slice(1);dn(oS,"on"+sS)}dn(vp,"onAnimationEnd"),dn(yp,"onAnimationIteration"),dn(wp,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(bb,"onTransitionRun"),dn(Sb,"onTransitionStart"),dn(Rb,"onTransitionCancel"),dn(_p,"onTransitionEnd"),jo("onMouseEnter",["mouseout","mouseover"]),jo("onMouseLeave",["mouseout","mouseover"]),jo("onPointerEnter",["pointerout","pointerover"]),jo("onPointerLeave",["pointerout","pointerover"]),Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xr("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function Bg(n,o){o=(o&4)!==0;for(var i=0;i<n.length;i++){var a=n[i],f=a.event;a=a.listeners;e:{var d=void 0;if(o)for(var y=a.length-1;0<=y;y--){var b=a[y],T=b.instance,j=b.currentTarget;if(b=b.listener,T!==d&&f.isPropagationStopped())break e;d=b,f.currentTarget=j;try{d(f)}catch(q){xa(q)}f.currentTarget=null,d=T}else for(y=0;y<a.length;y++){if(b=a[y],T=b.instance,j=b.currentTarget,b=b.listener,T!==d&&f.isPropagationStopped())break e;d=b,f.currentTarget=j;try{d(f)}catch(q){xa(q)}f.currentTarget=null,d=T}}}}function we(n,o){var i=o[Yc];i===void 0&&(i=o[Yc]=new Set);var a=n+"__bubble";i.has(a)||(qg(o,n,2,!1),i.add(a))}function Mf(n,o,i){var a=0;o&&(a|=4),qg(i,n,a,o)}var _l="_reactListening"+Math.random().toString(36).slice(2);function Nf(n){if(!n[_l]){n[_l]=!0,Dh.forEach(function(i){i!=="selectionchange"&&(iS.has(i)||Mf(i,!1,n),Mf(i,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[_l]||(o[_l]=!0,Mf("selectionchange",!1,o))}}function qg(n,o,i,a){switch(vv(o)){case 2:var f=xS;break;case 8:f=DS;break;default:f=Wf}i=f.bind(null,o,i,n),f=void 0,!ru||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(f=!0),a?f!==void 0?n.addEventListener(o,i,{capture:!0,passive:f}):n.addEventListener(o,i,!0):f!==void 0?n.addEventListener(o,i,{passive:f}):n.addEventListener(o,i,!1)}function zf(n,o,i,a,f){var d=a;if((o&1)===0&&(o&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var b=a.stateNode.containerInfo;if(b===f)break;if(y===4)for(y=a.return;y!==null;){var T=y.tag;if((T===3||T===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;b!==null;){if(y=$o(b),y===null)return;if(T=y.tag,T===5||T===6||T===26||T===27){a=d=y;continue e}b=b.parentNode}}a=a.return}Kh(function(){var j=d,q=tu(i),G=[];e:{var M=bp.get(n);if(M!==void 0){var U=Ia,te=n;switch(n){case"keypress":if(Oa(i)===0)break e;case"keydown":case"keyup":U=W_;break;case"focusin":te="focus",U=au;break;case"focusout":te="blur",U=au;break;case"beforeblur":case"afterblur":U=au;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=B_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=nb;break;case vp:case yp:case wp:U=V_;break;case _p:U=ob;break;case"scroll":case"scrollend":U=z_;break;case"wheel":U=ib;break;case"copy":case"cut":case"paste":U=G_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Zh;break;case"toggle":case"beforetoggle":U=lb}var fe=(o&4)!==0,De=!fe&&(n==="scroll"||n==="scrollend"),x=fe?M!==null?M+"Capture":null:M;fe=[];for(var P=j,D;P!==null;){var H=P;if(D=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||D===null||x===null||(H=Qs(P,x),H!=null&&fe.push(Pi(P,H,D))),De)break;P=P.return}0<fe.length&&(M=new U(M,te,null,i,q),G.push({event:M,listeners:fe}))}}if((o&7)===0){e:{if(M=n==="mouseover"||n==="pointerover",U=n==="mouseout"||n==="pointerout",M&&i!==eu&&(te=i.relatedTarget||i.fromElement)&&($o(te)||te[ko]))break e;if((U||M)&&(M=q.window===q?q:(M=q.ownerDocument)?M.defaultView||M.parentWindow:window,U?(te=i.relatedTarget||i.toElement,U=j,te=te?$o(te):null,te!==null&&(De=c(te),fe=te.tag,te!==De||fe!==5&&fe!==27&&fe!==6)&&(te=null)):(U=null,te=j),U!==te)){if(fe=Jh,H="onMouseLeave",x="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(fe=Zh,H="onPointerLeave",x="onPointerEnter",P="pointer"),De=U==null?M:Ys(U),D=te==null?M:Ys(te),M=new fe(H,P+"leave",U,i,q),M.target=De,M.relatedTarget=D,H=null,$o(q)===j&&(fe=new fe(x,P+"enter",te,i,q),fe.target=D,fe.relatedTarget=De,H=fe),De=H,U&&te)t:{for(fe=aS,x=U,P=te,D=0,H=x;H;H=fe(H))D++;H=0;for(var ae=P;ae;ae=fe(ae))H++;for(;0<D-H;)x=fe(x),D--;for(;0<H-D;)P=fe(P),H--;for(;D--;){if(x===P||P!==null&&x===P.alternate){fe=x;break t}x=fe(x),P=fe(P)}fe=null}else fe=null;U!==null&&Hg(G,M,U,fe,!1),te!==null&&De!==null&&Hg(G,De,te,fe,!0)}}
vendor: 1,773 bytes, line 9
9e:{if(M=j?Ys(j):window,U=M.nodeName&&M.nodeName.toLowerCase(),U==="select"||U==="input"&&M.type==="file")var Te=ip;else if(op(M))if(ap)Te=yb;else{Te=gb;var re=mb}else U=M.nodeName,!U||U.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?j&&Wc(j.elementType)&&(Te=ip):Te=vb;if(Te&&(Te=Te(n,j))){sp(G,Te,i,q);break e}re&&re(n,M,j),n==="focusout"&&j&&M.type==="number"&&j.memoizedProps.value!=null&&Zc(M,"number",M.value)}switch(re=j?Ys(j):window,n){case"focusin":(op(re)||re.contentEditable==="true")&&(qo=re,hu=j,ri=null);break;case"focusout":ri=hu=qo=null;break;case"mousedown":pu=!0;break;case"contextmenu":case"mouseup":case"dragend":pu=!1,mp(G,i,q);break;case"selectionchange":if(_b)break;case"keydown":case"keyup":mp(G,i,q)}var ge;if(cu)e:{switch(n){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Bo?np(n,i)&&(Se="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Se="onCompositionStart");Se&&(Wh&&i.locale!=="ko"&&(Bo||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Bo&&(ge=Yh()):(ur=q,ou="value"in ur?ur.value:ur.textContent,Bo=!0)),re=bl(j,Se),0<re.length&&(Se=new Xh(Se,n,null,i,q),G.push({event:Se,listeners:re}),ge?Se.data=ge:(ge=rp(i),ge!==null&&(Se.data=ge)))),(ge=ub?fb(n,i):db(n,i))&&(Se=bl(j,"onBeforeInput"),0<Se.length&&(re=new Xh("onBeforeInput","beforeinput",null,i,q),G.push({event:re,listeners:Se}),re.data=ge)),rS(G,n,j,i,q)}Bg(G,o)})}function Pi(n,o,i){return{instance:n,listener:o,currentTarget:i}}function bl(n,o){for(var i=o+"Capture",a=[];n!==null;){var f=n,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Qs(n,i),f!=null&&a.unshift(Pi(n,f,d)),f=Qs(n,o),f!=null&&a.push(Pi(n,f,d))
vendor: 5,238 bytes, lines 9-10
9),n.tag===3)return a;n=n.return}return[]}function aS(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Hg(n,o,i,a,f){for(var d=o._reactName,y=[];i!==null&&i!==a;){var b=i,T=b.alternate,j=b.stateNode;if(b=b.tag,T!==null&&T===a)break;b!==5&&b!==26&&b!==27||j===null||(T=j,f?(j=Qs(i,d),j!=null&&y.unshift(Pi(i,j,T))):f||(j=Qs(i,d),j!=null&&y.push(Pi(i,j,T)))),i=i.return}y.length!==0&&n.push({event:o,listeners:y})}var lS=/\r\n?/g,cS=/\u0000|\uFFFD/g;function Vg(n){return(typeof n=="string"?n:""+n).replace(lS,` 10`).replace(cS,"")}function Fg(n,o){return o=Vg(o),Vg(n)===o}function xe(n,o,i,a,f,d){switch(i){case"children":typeof a=="string"?o==="body"||o==="textarea"&&a===""||No(n,a):(typeof a=="number"||typeof a=="bigint")&&o!=="body"&&No(n,""+a);break;case"className":Ca(n,"class",a);break;case"tabIndex":Ca(n,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ca(n,i,a);break;case"style":Fh(n,a,d);break;case"data":if(o!=="object"){Ca(n,"data",a);break}case"src":case"href":if(a===""&&(o!=="a"||i!=="href")){n.removeAttribute(i);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){n.removeAttribute(i);break}a=Aa(""+a),n.setAttribute(i,a);break;case"action":case"formAction":if(typeof a=="function"){n.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(o!=="input"&&xe(n,o,"name",f.name,f,null),xe(n,o,"formEncType",f.formEncType,f,null),xe(n,o,"formMethod",f.formMethod,f,null),xe(n,o,"formTarget",f.formTarget,f,null)):(xe(n,o,"encType",f.encType,f,null),xe(n,o,"method",f.method,f,null),xe(n,o,"target",f.target,f,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){n.removeAttribute(i);break}a=Aa(""+a),n.setAttribute(i,a);break;case"onClick":a!=null&&(n.onclick=xn);break;case"onScroll":a!=null&&we("scroll",n);break;case"onScrollEnd":a!=null&&we("scrollend",n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(i=a.__html,i!=null){if(f.children!=null)throw Error(s(60));n.innerHTML=i}}break;case"multiple":n.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":n.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){n.removeAttribute("xlink:href");break}i=Aa(""+a),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?n.setAttribute(i,""+a):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":a===!0?n.setAttribute(i,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?n.setAttribute(i,a):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?n.setAttribute(i,a):n.removeAttribute(i);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?n.removeAttribute(i):n.setAttribute(i,a);break;case"popover":we("beforetoggle",n),we("toggle",n),Ea(n,"popover",a);break;case"xlinkActuate":$n(n,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$n(n,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$n(n,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$n(n,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$n(n,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$n(n,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$n(n,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$n(n,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$n(n,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ea(n,"is",a);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=M_.get(i)||i,Ea(n,i,a))}}function Uf(n,o,i,a,f,d){switch(i){case"style":Fh(n,a,d);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(i=a.__html,i!=null){if(f.children!=null)throw Error(s(60));n.innerHTML=i}}break;
vendor: 6,645 bytes, line 10
10case"children":typeof a=="string"?No(n,a):(typeof a=="number"||typeof a=="bigint")&&No(n,""+a);break;case"onScroll":a!=null&&we("scroll",n);break;case"onScrollEnd":a!=null&&we("scrollend",n);break;case"onClick":a!=null&&(n.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),o=i.slice(2,f?i.length-7:void 0),d=n[Lt]||null,d=d!=null?d[i]:null,typeof d=="function"&&n.removeEventListener(o,d,f),typeof a=="function")){typeof d!="function"&&d!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(o,a,f);break e}i in n?n[i]=a:a===!0?n.setAttribute(i,""):Ea(n,i,a)}}}function St(n,o,i){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",n),we("load",n);var a=!1,f=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":a=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,o));default:xe(n,o,d,y,i,null)}}f&&xe(n,o,"srcSet",i.srcSet,i,null),a&&xe(n,o,"src",i.src,i,null);return;case"input":we("invalid",n);var b=d=y=f=null,T=null,j=null;for(a in i)if(i.hasOwnProperty(a)){var q=i[a];if(q!=null)switch(a){case"name":f=q;break;case"type":y=q;break;case"checked":T=q;break;case"defaultChecked":j=q;break;case"value":d=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,o));break;default:xe(n,o,a,q,i,null)}}Bh(n,d,b,T,j,y,f,!1);return;case"select":we("invalid",n),a=y=d=null;for(f in i)if(i.hasOwnProperty(f)&&(b=i[f],b!=null))switch(f){case"value":d=b;break;case"defaultValue":y=b;break;case"multiple":a=b;default:xe(n,o,f,b,i,null)}o=d,i=y,n.multiple=!!a,o!=null?Mo(n,!!a,o,!1):i!=null&&Mo(n,!!a,i,!0);return;case"textarea":we("invalid",n),d=f=a=null;for(y in i)if(i.hasOwnProperty(y)&&(b=i[y],b!=null))switch(y){case"value":a=b;break;case"defaultValue":f=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:xe(n,o,y,b,i,null)}Hh(n,a,f,d);return;case"option":for(T in i)i.hasOwnProperty(T)&&(a=i[T],a!=null)&&(T==="selected"?n.selected=a&&typeof a!="function"&&typeof a!="symbol":xe(n,o,T,a,i,null));return;case"dialog":we("beforetoggle",n),we("toggle",n),we("cancel",n),we("close",n);break;case"iframe":case"object":we("load",n);break;case"video":case"audio":for(a=0;a<Ai.length;a++)we(Ai[a],n);break;case"image":we("error",n),we("load",n);break;case"details":we("toggle",n);break;case"embed":case"source":case"link":we("error",n),we("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in i)if(i.hasOwnProperty(j)&&(a=i[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,o));default:xe(n,o,j,a,i,null)}return;default:if(Wc(o)){for(q in i)i.hasOwnProperty(q)&&(a=i[q],a!==void 0&&Uf(n,o,q,a,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(a=i[b],a!=null&&xe(n,o,b,a,i,null))}function uS(n,o,i,a){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,y=null,b=null,T=null,j=null,q=null;for(U in i){var G=i[U];if(i.hasOwnProperty(U)&&G!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":T=G;default:a.hasOwnProperty(U)||xe(n,o,U,null,a,G)}}for(var M in a){var U=a[M];if(G=i[M],a.hasOwnProperty(M)&&(U!=null||G!=null))switch(M){case"type":d=U;break;case"name":f=U;break;case"checked":j=U;break;case"defaultChecked":q=U;break;case"value":y=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,o));break;default:U!==G&&xe(n,o,M,U,a,G)}}Xc(n,y,b,T,j,q,d,f);return;case"select":U=y=b=M=null;for(d in i)if(T=i[d],i.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":U=T;default:a.hasOwnProperty(d)||xe(n,o,d,null,a,T)}for(f in a)if(d=a[f],T=i[f],a.hasOwnProperty(f)&&(d!=null||T!=null))switch(f){case"value":M=d;break;case"defaultValue":b=d;break;case"multiple":y=d;default:d!==T&&xe(n,o,f,d,a,T)}o=b,i=y,a=U,M!=null?Mo(n,!!i,M,!1):!!a!=!!i&&(o!=null?Mo(n,!!i,o,!0):Mo(n,!!i,i?[]:"",!1));return;case"textarea":U=M=null;for(b in i)if(f=i[b],i.hasOwnProperty(b)&&f!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:xe(n,o,b,null,a,f)}for(y in a)if(f=a[y],d=i[y],a.hasOwnProperty(y)&&(f!=null||d!=null))switch(y){case"value":M=f;break;case"defaultValue":U=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==d&&xe(n,o,y,f,a,d)}qh(n,M,U);return;case"option":for(var te in i)M=i[te],i.hasOwnProperty(te)&&M!=null&&!a.hasOwnProperty(te)&&(te==="selected"?n.selected=!1:xe(n,o,te,null,a,M));for(T in a)M=a[T],U=i[T],a.hasOwnProperty(T)&&M!==U&&(M!=null||U!=null)&&(T==="selected"?n.selected=M&&typeof M!="function"&&typeof M!="symbol":xe(n,o,T,M,a,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in i)M=i[fe],i.hasOwnProperty(fe)&&M!=null&&!a.hasOwnProperty(fe)&&xe(n,o,fe,null,a,M);for(j in a)if(M=a[j],U=i[j],a.hasOwnProperty(j)&&M!==U&&(M!=null||U!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,o));break;default:xe(n,o,j,M,a,U)}return;default:if(Wc(o)){for(var De in i)M=i[De],i.hasOwnProperty(De)&&M!==void 0&&!a.hasOwnProperty(De)&&Uf(n,o,De,void 0,a,M);for(q in a)M=a[q],U=i[q],!a.hasOwnProperty(q)||M===U||M===void 0&&U===void 0||Uf(n,o,q,M,a,U);return}}for(var x in i)M=i[x],i.hasOwnProperty(x)&&M!=null&&!a.hasOwnProperty(x)&&xe(n,o,x,null,a,M);for(G in a)M=a[G],U=i[G],!a.hasOwnProperty(G)||M===U||M==null&&U==null||xe(n,o,G,M,a,U)}function Gg(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fS(){if(typeof performance.getEntriesByType=="function"){for(var n=0,o=0,i=performance.getEntriesByType("resource"),a=0;a<i.length;a++){var f=i[a],d=f.transferSize,y=f.initiatorType,b=f.duration;if(d&&b&&Gg(y)){for(y=0,b=f.responseEnd,a+=1;a<i.length;a++){var T=i[a],j=T.startTime;if(j>b)break;var q=T.transferSize,G=T.initiatorType;q&&Gg(G)&&(T=T.responseEnd,y+=q*(T<b?1:(b-j)/(T-j)))}if(--a,o+=8*(d+y)/(f.duration/1e3),n++,10<n)break}}if(0<n)return o/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 9,435 bytes, line 10
10n:5}var Bf=null,qf=null;function Sl(n){return n.nodeType===9?n:n.ownerDocument}function Kg(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yg(n,o){if(n===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&o==="foreignObject"?0:n}function Hf(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Vf=null;function dS(){var n=window.event;return n&&n.type==="popstate"?n===Vf?!1:(Vf=n,!0):(Vf=null,!1)}var Qg=typeof setTimeout=="function"?setTimeout:void 0,hS=typeof clearTimeout=="function"?clearTimeout:void 0,Jg=typeof Promise=="function"?Promise:void 0,pS=typeof queueMicrotask=="function"?queueMicrotask:typeof Jg<"u"?function(n){return Jg.resolve(null).then(n).catch(mS)}:Qg;function mS(n){setTimeout(function(){throw n})}function Ar(n){return n==="head"}function Xg(n,o){var i=o,a=0;do{var f=i.nextSibling;if(n.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(a===0){n.removeChild(f),ms(o);return}a--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")a++;else if(i==="html")Oi(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,Oi(i);for(var d=i.firstChild;d;){var y=d.nextSibling,b=d.nodeName;d[Ks]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&Oi(n.ownerDocument.body);i=f}while(i);ms(o)}function Zg(n,o){var i=n;n=0;do{var a=i.nextSibling;if(i.nodeType===1?o?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(o?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),a&&a.nodeType===8)if(i=a.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=a}while(i)}function Ff(n){var o=n.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var i=o;switch(o=o.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ff(i),Qc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function gS(n,o,i,a){for(;n.nodeType===1;){var f=i;if(n.nodeName.toLowerCase()!==o.toLowerCase()){if(!a&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(a){if(!n[Ks])switch(o){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(d=n.getAttribute("rel"),d==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(d!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(d=n.getAttribute("src"),(d!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(o==="input"&&n.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===d)return n}else return n;if(n=an(n.nextSibling),n===null)break}return null}function vS(n,o,i){if(o==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=an(n.nextSibling),n===null))return null;return n}function Wg(n,o){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=an(n.nextSibling),n===null))return null;return n}function Gf(n){return n.data==="$?"||n.data==="$~"}function Kf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function yS(n,o){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=o;else if(n.data!=="$?"||i.readyState!=="loading")o();else{var a=function(){o(),i.removeEventListener("DOMContentLoaded",a)};i.addEventListener("DOMContentLoaded",a),n._reactRetry=a}}function an(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return n}var Yf=null;function ev(n){n=n.nextSibling;for(var o=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(o===0)return an(n.nextSibling);o--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||o++}n=n.nextSibling}return null}function tv(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(o===0)return n;o--}else i!=="/$"&&i!=="/&"||o++}n=n.previousSibling}return null}function nv(n,o,i){switch(o=Sl(i),n){case"html":if(n=o.documentElement,!n)throw Error(s(452));return n;case"head":if(n=o.head,!n)throw Error(s(453));return n;case"body":if(n=o.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function Oi(n){for(var o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Qc(n)}var ln=new Map,rv=new Set;function Rl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Jn=J.d;J.d={f:wS,r:_S,D:bS,C:SS,L:RS,m:ES,X:TS,S:CS,M:AS};function wS(){var n=Jn.f(),o=pl();return n||o}function _S(n){var o=xo(n);o!==null&&o.tag===5&&o.type==="form"?_m(o):Jn.r(n)}var ds=typeof document>"u"?null:document;function ov(n,o,i){var a=ds;if(a&&typeof o=="string"&&o){var f=Wt(o);f='link[rel="'+n+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),rv.has(f)||(rv.add(f),n={rel:n,crossOrigin:i,href:o},a.querySelector(f)===null&&(o=a.createElement("link"),St(o,"link",n),dt(o),a.head.appendChild(o)))}}function bS(n){Jn.D(n),ov("dns-prefetch",n,null)}function SS(n,o){Jn.C(n,o),ov("preconnect",n,o)}function RS(n,o,i){Jn.L(n,o,i);var a=ds;if(a&&n&&o){var f='link[rel="preload"][as="'+Wt(o)+'"]';o==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Wt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Wt(i.imageSizes)+'"]')):f+='[href="'+Wt(n)+'"]';var d=f;switch(o){case"style":d=hs(n);break;case"script":d=ps(n)}ln.has(d)||(n=g({rel:"preload",href:o==="image"&&i&&i.imageSrcSet?void 0:n,as:o},i),ln.set(d,n),a.querySelector(f)!==null||o==="style"&&a.querySelector(Li(d))||o==="script"&&a.querySelector(Ii(d))||(o=a.createElement("link"),St(o,"link",n),dt(o),a.head.appendChild(o)))}}function ES(n,o){Jn.m(n,o);var i=ds;if(i&&n){var a=o&&typeof o.as=="string"?o.as:"script",f='link[rel="modulepreload"][as="'+Wt(a)+'"][href="'+Wt(n)+'"]',d=f;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=ps(n)}if(!ln.has(d)&&(n=g({rel:"modulepreload",href:n},o),ln.set(d,n),i.querySelector(f)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ii(d)))return}a=i.createElement("link"),St(a,"link",n),dt(a),i.head.appendChild(a)}}}function CS(n,o,i){Jn.S(n,o,i);var a=ds;if(a&&n){var f=Do(a).hoistableStyles,d=hs(n);o=o||"default";var y=f.get(d);if(!y){var b={loading:0,preload:null};if(y=a.querySelector(Li(d)))b.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":o},i),(i=ln.get(d))&&Qf(n,i);var T=y=a.createElement("link");dt(T),St(T,"link",n),T._p=new Promise(function(j,q){T.onload=j,T.onerror=q}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,El(y,o,a)}y={type:"stylesheet",instance:y,count:1,state:b},f.set(d,y)}}}function TS(n,o){Jn.X(n,o);var i=ds;if(i&&n){var a=Do(i).hoistableScripts,f=ps(n),d=a.get(f);d||(d=i.querySelector(Ii(f)),d||(n=g({src:n,async:!0},o),(o=ln.get(f))&&Jf(n,o),d=i.createElement("script"),dt(d),St(d,"link",n),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},a.set(f,d))}}function AS(n,o){Jn.M(n,o);var i=ds;if(i&&n){var a=Do(i).hoistableScripts,f=ps(n),d=a.get(f);d||(d=i.querySelector(Ii(f)),d||(n=g({src:n,async:!0,type:"module"},o),(o=ln.get(f))&&Jf(n,o),d=i.createElement("script"),dt(d),St(d,"link",n),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},a.set(f,d))}}function sv(n,o,i,a){var f=(f=ve.current)?Rl(f):null;if(!f)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(o=hs(i.href),i=Do(f).hoistableStyles,a=i.get(o),a||(a={type:"style",instance:null,count:0,state:null},i.set(o,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=hs(i.href);var d=Do(f).hoistableStyles,y=d.get(n);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(n,y),(d=f.querySelector(Li(n)))&&!d._p&&(y.instance=d,y.state.loading=5),ln.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ln.set(n,i),d||PS(f,n,i,y.state))),o&&a===null)throw Error(s(528,""));return y}if(o&&a!==null)throw Error(s(529,""));return null;case"script":return o=i.async,i=i.src,typeof i=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?
vendor: 7,460 bytes, line 10
10(o=ps(i),i=Do(f).hoistableScripts,a=i.get(o),a||(a={type:"script",instance:null,count:0,state:null},i.set(o,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function hs(n){return'href="'+Wt(n)+'"'}function Li(n){return'link[rel="stylesheet"]['+n+"]"}function iv(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function PS(n,o,i,a){n.querySelector('link[rel="preload"][as="style"]['+o+"]")?a.loading=1:(o=n.createElement("link"),a.preload=o,o.addEventListener("load",function(){return a.loading|=1}),o.addEventListener("error",function(){return a.loading|=2}),St(o,"link",i),dt(o),n.head.appendChild(o))}function ps(n){return'[src="'+Wt(n)+'"]'}function Ii(n){return"script[async]"+n}function av(n,o,i){if(o.count++,o.instance===null)switch(o.type){case"style":var a=n.querySelector('style[data-href~="'+Wt(i.href)+'"]');if(a)return o.instance=a,dt(a),a;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return a=(n.ownerDocument||n).createElement("style"),dt(a),St(a,"style",f),El(a,i.precedence,n),o.instance=a;case"stylesheet":f=hs(i.href);var d=n.querySelector(Li(f));if(d)return o.state.loading|=4,o.instance=d,dt(d),d;a=iv(i),(f=ln.get(f))&&Qf(a,f),d=(n.ownerDocument||n).createElement("link"),dt(d);var y=d;return y._p=new Promise(function(b,T){y.onload=b,y.onerror=T}),St(d,"link",a),o.state.loading|=4,El(d,i.precedence,n),o.instance=d;case"script":return d=ps(i.src),(f=n.querySelector(Ii(d)))?(o.instance=f,dt(f),f):(a=i,(f=ln.get(d))&&(a=g({},i),Jf(a,f)),n=n.ownerDocument||n,f=n.createElement("script"),dt(f),St(f,"link",a),n.head.appendChild(f),o.instance=f);case"void":return null;default:throw Error(s(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(a=o.instance,o.state.loading|=4,El(a,i.precedence,n));return o.instance}function El(n,o,i){for(var a=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=a.length?a[a.length-1]:null,d=f,y=0;y<a.length;y++){var b=a[y];if(b.dataset.precedence===o)d=b;else if(d!==f)break}d?d.parentNode.insertBefore(n,d.nextSibling):(o=i.nodeType===9?i.head:i,o.insertBefore(n,o.firstChild))}function Qf(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.title==null&&(n.title=o.title)}function Jf(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.integrity==null&&(n.integrity=o.integrity)}var Cl=null;function lv(n,o,i){if(Cl===null){var a=new Map,f=Cl=new Map;f.set(i,a)}else f=Cl,a=f.get(i),a||(a=new Map,f.set(i,a));if(a.has(n))return a;for(a.set(n,null),i=i.getElementsByTagName(n),f=0;f<i.length;f++){var d=i[f];if(!(d[Ks]||d[yt]||n==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(o)||"";y=n+y;var b=a.get(y);b?b.push(d):a.set(y,[d])}}return a}function cv(n,o,i){n=n.ownerDocument||n,n.head.insertBefore(i,o==="title"?n.querySelector("head > title"):null)}function OS(n,o,i){if(i===1||o.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(n=o.disabled,typeof o.precedence=="string"&&n==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function uv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function LS(n,o,i,a){if(i.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=hs(a.href),d=o.querySelector(Li(f));if(d){o=d._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n.count++,n=Tl.bind(n),o.then(n,n)),i.state.loading|=4,i.instance=d,dt(d);return}d=o.ownerDocument||o,a=iv(a),(f=ln.get(f))&&Qf(a,f),d=d.createElement("link"),dt(d);var y=d;y._p=new Promise(function(b,T){y.onload=b,y.onerror=T}),St(d,"link",a),i.instance=d}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,o),(o=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=Tl.bind(n),o.addEventListener("load",i),o.addEventListener("error",i))}}var Xf=0;function IS(n,o){return n.stylesheets&&n.count===0&&Pl(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var a=setTimeout(function(){if(n.stylesheets&&Pl(n,n.stylesheets),n.unsuspend){var d=n.unsuspend;n.unsuspend=null,d()}},6e4+o);0<n.imgBytes&&Xf===0&&(Xf=62500*fS());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Pl(n,n.stylesheets),n.unsuspend)){var d=n.unsuspend;n.unsuspend=null,d()}},(n.imgBytes>Xf?50:800)+o);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(a),clearTimeout(f)}}:null}function Tl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pl(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Al=null;function Pl(n,o){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Al=new Map,o.forEach(kS,n),Al=null,Tl.call(n))}function kS(n,o){if(!(o.state.loading&4)){var i=Al.get(n);if(i)var a=i.get(null);else{i=new Map,Al.set(n,i);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var y=f[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),a=y)}a&&i.set(null,a)}f=o.instance,y=f.getAttribute("data-precedence"),d=i.get(y)||a,d===a&&i.set(null,f),i.set(y,f),this.count++,a=Tl.bind(this),f.addEventListener("load",a),f.addEventListener("error",a),d?d.parentNode.insertBefore(f,d.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),o.state.loading|=4}}var ki={$$typeof:$,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function $S(n,o,i,a,f,d,y,b,T){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fc(0),this.hiddenUpdates=Fc(null),this.identifierPrefix=a,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function fv(n,o,i,a,f,d,y,b,T,j,q,G){return n=new $S(n,o,i,y,T,j,q,G,b),o=1,d===!0&&(o|=24),d=Vt(3,null,null,o),n.current=d,d.stateNode=n,o=Ou(),o.refCount++,n.pooledCache=o,o.refCount++,d.memoizedState={element:a,isDehydrated:i,cache:o},$u(d),n}function dv(n){return n?(n=Fo,n):Fo}function hv(n,o,i,a,f,d){f=dv(f),a.context===null?a.context=f:a.pendingContext=f,a=gr(o),a.payload={element:i},d=d===void 0?null:d,d!==null&&(a.callback=d),i=vr(n,a,o),i!==null&&(jt(i,n,o),ui(i,n,o))}function pv(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<o?i:o}}function Zf(n,o){pv(n,o),(n=n.alternate)&&pv(n,o)}function mv(n){if(n.tag===13||n.tag===31){var o=to(n,67108864);o!==null&&jt(o,n,67108864),Zf(n,67108864)}}
vendor: 4,680 bytes, line 10
10function gv(n){if(n.tag===13||n.tag===31){var o=Qt();o=Gc(o);var i=to(n,o);i!==null&&jt(i,n,o),Zf(n,o)}}var Ol=!0;function xS(n,o,i,a){var f=B.T;B.T=null;var d=J.p;try{J.p=2,Wf(n,o,i,a)}finally{J.p=d,B.T=f}}function DS(n,o,i,a){var f=B.T;B.T=null;var d=J.p;try{J.p=8,Wf(n,o,i,a)}finally{J.p=d,B.T=f}}function Wf(n,o,i,a){if(Ol){var f=ed(a);if(f===null)zf(n,o,a,Ll,i),yv(n,a);else if(MS(f,n,o,i,a))a.stopPropagation();else if(yv(n,a),o&4&&-1<jS.indexOf(n)){for(;f!==null;){var d=xo(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=Jr(d.pendingLanes);if(y!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var T=1<<31-qt(y);b.entanglements[1]|=T,y&=~T}En(d),(Oe&6)===0&&(dl=Rt()+500,Ti(0))}}break;case 31:case 13:b=to(d,2),b!==null&&jt(b,d,2),pl(),Zf(d,2)}if(d=ed(a),d===null&&zf(n,o,a,Ll,i),d===f)break;f=d}f!==null&&a.stopPropagation()}else zf(n,o,a,null,i)}}function ed(n){return n=tu(n),td(n)}var Ll=null;function td(n){if(Ll=null,n=$o(n),n!==null){var o=c(n);if(o===null)n=null;else{var i=o.tag;if(i===13){if(n=u(o),n!==null)return n;n=null}else if(i===31){if(n=h(o),n!==null)return n;n=null}else if(i===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}return Ll=n,null}function vv(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ne()){case vt:return 2;case _n:return 8;case Io:case S_:return 32;case Ah:return 268435456;default:return 32}default:return 32}}var nd=!1,Pr=null,Or=null,Lr=null,$i=new Map,xi=new Map,Ir=[],jS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function yv(n,o){switch(n){case"focusin":case"focusout":Pr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Lr=null;break;case"pointerover":case"pointerout":$i.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(o.pointerId)}}function Di(n,o,i,a,f,d){return n===null||n.nativeEvent!==d?(n={blockedOn:o,domEventName:i,eventSystemFlags:a,nativeEvent:d,targetContainers:[f]},o!==null&&(o=xo(o),o!==null&&mv(o)),n):(n.eventSystemFlags|=a,o=n.targetContainers,f!==null&&o.indexOf(f)===-1&&o.push(f),n)}function MS(n,o,i,a,f){switch(o){case"focusin":return Pr=Di(Pr,n,o,i,a,f),!0;case"dragenter":return Or=Di(Or,n,o,i,a,f),!0;case"mouseover":return Lr=Di(Lr,n,o,i,a,f),!0;case"pointerover":var d=f.pointerId;return $i.set(d,Di($i.get(d)||null,n,o,i,a,f)),!0;case"gotpointercapture":return d=f.pointerId,xi.set(d,Di(xi.get(d)||null,n,o,i,a,f)),!0}return!1}function wv(n){var o=$o(n.target);if(o!==null){var i=c(o);if(i!==null){if(o=i.tag,o===13){if(o=u(i),o!==null){n.blockedOn=o,$h(n.priority,function(){gv(i)});return}}else if(o===31){if(o=h(i),o!==null){n.blockedOn=o,$h(n.priority,function(){gv(i)});return}}else if(o===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Il(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var i=ed(n.nativeEvent);if(i===null){i=n.nativeEvent;var a=new i.constructor(i.type,i);eu=a,i.target.dispatchEvent(a),eu=null}else return o=xo(i),o!==null&&mv(o),n.blockedOn=i,!1;o.shift()}return!0}function _v(n,o,i){Il(n)&&i.delete(o)}function NS(){nd=!1,Pr!==null&&Il(Pr)&&(Pr=null),Or!==null&&Il(Or)&&(Or=null),Lr!==null&&Il(Lr)&&(Lr=null),$i.forEac
vendor: 5,017 bytes, line 10
10h(_v),xi.forEach(_v)}function kl(n,o){n.blockedOn===o&&(n.blockedOn=null,nd||(nd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,NS)))}var $l=null;function bv(n){$l!==n&&($l=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$l===n&&($l=null);for(var o=0;o<n.length;o+=3){var i=n[o],a=n[o+1],f=n[o+2];if(typeof a!="function"){if(td(a||i)===null)continue;break}var d=xo(i);d!==null&&(n.splice(o,3),o-=3,Wu(d,{pending:!0,data:f,method:i.method,action:a},a,f))}}))}function ms(n){function o(T){return kl(T,n)}Pr!==null&&kl(Pr,n),Or!==null&&kl(Or,n),Lr!==null&&kl(Lr,n),$i.forEach(o),xi.forEach(o);for(var i=0;i<Ir.length;i++){var a=Ir[i];a.blockedOn===n&&(a.blockedOn=null)}for(;0<Ir.length&&(i=Ir[0],i.blockedOn===null);)wv(i),i.blockedOn===null&&Ir.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(a=0;a<i.length;a+=3){var f=i[a],d=i[a+1],y=f[Lt]||null;if(typeof d=="function")y||bv(i);else if(y){var b=null;if(d&&d.hasAttribute("formAction")){if(f=d,y=d[Lt]||null)b=y.formAction;else if(td(f)!==null)continue}else b=y.action;typeof b=="function"?i[a+1]=b:(i.splice(a,3),a-=3),bv(i)}}}function Sv(){function n(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function o(){f!==null&&(f(),f=null),a||setTimeout(i,20)}function i(){if(!a&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(i,100),function(){a=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),f!==null&&(f(),f=null)}}}function rd(n){this._internalRoot=n}xl.prototype.render=rd.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(s(409));var i=o.current,a=Qt();hv(i,a,n,o,null,null)},xl.prototype.unmount=rd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;hv(n.current,2,null,n,null,null),pl(),o[ko]=null}};function xl(n){this._internalRoot=n}xl.prototype.unstable_scheduleHydration=function(n){if(n){var o=kh();n={blockedOn:null,target:n,priority:o};for(var i=0;i<Ir.length&&o!==0&&o<Ir[i].priority;i++);Ir.splice(i,0,n),i===0&&wv(n)}};var Rv=t.version;if(Rv!=="19.2.5")throw Error(s(527,Rv,"19.2.5"));J.findDOMNode=function(n){var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=m(o),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var zS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Vs=Dl.inject(zS),Bt=Dl}catch{}}return Mi.createRoot=function(n,o){if(!l(n))throw Error(s(299));var i=!1,a="",f=Lm,d=Im,y=km;return o!=null&&(o.unstable_strictMode===!0&&(i=!0),o.identifierPrefix!==void 0&&(a=o.identifierPrefix),o.onUncaughtError!==void 0&&(f=o.onUncaughtError),o.onCaughtError!==void 0&&(d=o.onCaughtError),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),o=fv(n,1,!1,null,null,i,a,null,f,d,y,Sv),n[ko]=o.current,Nf(n),new rd(o)},Mi.hydrateRoot=function(n,o,i){if(!l(n))throw Error(s(299));var a=!1,f="",d=Lm,y=Im,b=km,T=null;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(T=i.formState)),o=fv(n,1,!0,o,i??null,a,f,T,d,y,b,Sv),o.context=dv(null),i=o.current,a=Qt(),a=Gc(a),f=gr(a),f.callback=null,vr(i,f,a),i=a,o.current.lanes=i,Gs(o,i),En(o),n[ko]=o.current,Nf(n),new xl(o)},Mi.version="19.2.5",Mi}var $v;function QS(){if($v)return id.exports;$v=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),id.exports=YS(),id.exports}var JS=QS(),XS="__TSS_CONTEXT",$d=Symbol.for("TSS_SERVER_FUNCTION"),xv=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),ZS="application/x-tss-framed",Xn={JSON:0,CHUNK:1,END:2,ERROR:3},WS=/;\s*v=(\d+)/;function eR(e){const t=e.match(WS);return t?parseInt(t[1],10):void 0}function tR(e){const t=eR(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var oh=()=>window.__TSS_START_OPTIONS__;const _0=!1;function ea(e){return e[e.length-1]}function nR(e){return typeof e=="function"}
10function yo(e,t){return nR(e)?e(t):e}const b0=Object.prototype.hasOwnProperty,Dv=Object.prototype.propertyIsEnumerable;function S0(e){for(const t in e)if(b0.call(e,t))return!0;return!1}const rR=()=>Object.create(null),mo=(e,t)=>wo(e,t,rR);function wo(e,t,r=()=>({}),s=0){if(e===t)return e;if(s>500)return t;const l=t,c=Nv(e)&&Nv(l);if(!c&&!(sc(e)&&sc(l)))return l;const u=c?e:jv(e);if(!u)return l;const h=c?l:jv(l);if(!h)return l;const p=u.length,m=h.length,v=c?new Array(m):r();let g=0;for(let w=0;w<m;w++){const _=c?w:h[w],S=e[_],C=l[_];if(S===C){v[_]=S,(c?w<p:b0.call(e,_))&&g++;continue}if(S===null||C===null||typeof S!="object"||typeof C!="object"){v[_]=C;continue}const R=wo(S,C,r,s+1);v[_]=R,R===S&&g++}return p===m&&g===p?e:v}function jv(e){const t=Object.getOwnPropertyNames(e);for(const l of t)if(!Dv.call(e,l))return!1;const r=Object.getOwnPropertySymbols(e);if(r.length===0)return t;const s=t;for(const l of r){if(!Dv.call(e,l))return!1;s.push(l)}return s}function sc(e){if(!Mv(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Mv(r)||!r.hasOwnProperty("isPrototypeOf"))}function Mv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function At(e,t,r){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,l=e.length;s<l;s++)if(!At(e[s],t[s],r))return!1;return!0}if(sc(e)&&sc(t)){const s=r?.ignoreUndefined??!0;if(r?.partial){for(const u in t)if((!s||t[u]!==void 0)&&!At(e[u],t[u],r))return!1;return!0}let l=0;if(!s)l=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&l++;let c=0;for(const u in t)if((!s||t[u]!==void 0)&&(c++,c>l||!At(e[u],t[u],r)))return!1;return l===c}return!1}function To(e){let t,r;const s=new Promise((l,c)=>{t=l,r=c});return s.status="pending",s.resolve=l=>{s.status="resolved",s.value=l,t(l),e?.(l)},s.reject=l=>{s.status="rejected",r(l)},s}function oR(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function ta(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const sR=/[\x00-\x1f\x7f"<>`{}]/g;function iR(e){return e.replace(sR,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function zv(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,r=>{try{return decodeURI(r)}catch{return r}})}return iR(t)}const aR=["http:","https:","mailto:","tel:"];function ic(e,t){if(!e)return!1;try{const r=new URL(e);return!t.has(r.protocol)}catch{return!1}}const lR={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},cR=/[&><\u2028\u2029]/g;function uR(e){return e.replace(cR,t=>lR[t])}function Ni(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let r=0,s="",l;for(;(l=t.exec(e))!==null;)s+=zv(e.slice(r,l.index))+l[0],r=t.lastIndex;s=s+zv(r?e.slice(r):e);let c=!1;return s.startsWith("//")&&(c=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:c}}function fR(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function dR(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Nt(){throw new Error("Invariant failed")}function na(e){const t=new Map;let r,s;const l=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,s&&(s.next=c,c.prev=s)):(c.next.prev=void 0,r=c.next,c.next=void 0,s&&(c.prev=s,s.next=c)),s=c)};return{get(c){const u=t.get(c);if(u)return l(u),u.value},set(c,u){if(t.size>=e&&r){const p=r;t.delete(p.key),p.next&&(r=p.next,p.next.prev=void 0),p===s&&(s=void 0)}const h=t.get(c);if(h)h.value=u,l(h);else{const p={key:c,value:u,prev:s};s&&(s.next=p),s=p,r||(r=p),t.set(c,p)}},clear(){t.clear(),r=void 0,s=void 0}}}const zr=4,R0=5;function hR(e){const t=e.indexOf("{");
10if(t===-1)return null;const r=e.indexOf("}",t);return r===-1||t+1>=e.length?null:[t,r]}function E0(e,t,r=new Uint16Array(6)){const s=e.indexOf("/",t),l=s===-1?e.length:s,c=e.substring(t,l);if(!c||!c.includes("$"))return r[0]=0,r[1]=t,r[2]=t,r[3]=l,r[4]=l,r[5]=l,r;if(c==="$"){const h=e.length;return r[0]=2,r[1]=t,r[2]=t,r[3]=h,r[4]=h,r[5]=h,r}if(c.charCodeAt(0)===36)return r[0]=1,r[1]=t,r[2]=t+1,r[3]=l,r[4]=l,r[5]=l,r;const u=hR(c);if(u){const[h,p]=u,m=c.charCodeAt(h+1);if(m===45){if(h+2<c.length&&c.charCodeAt(h+2)===36){const v=h+3,g=p;if(v<g)return r[0]=3,r[1]=t+h,r[2]=t+v,r[3]=t+g,r[4]=t+p+1,r[5]=l,r}}else if(m===36){const v=h+1,g=h+2;return g===p?(r[0]=2,r[1]=t+h,r[2]=t+v,r[3]=t+g,r[4]=t+p+1,r[5]=e.length,r):(r[0]=1,r[1]=t+h,r[2]=t+g,r[3]=t+p,r[4]=t+p+1,r[5]=l,r)}}return r[0]=0,r[1]=t,r[2]=t,r[3]=l,r[4]=l,r[5]=l,r}function Ac(e,t,r,s,l,c,u){u?.(r);let h=s;{const p=r.fullPath??r.from,m=p.length,v=r.options?.caseSensitive??e,g=r.options?.params?.parse??r.options?.parseParams;for(;h<m;){const _=E0(p,h,t);let S;const C=h,R=_[5];switch(h=R+1,c++,_[0]){case 0:{const E=p.substring(_[2],_[3]);if(v){const A=l.static?.get(E);if(A)S=A;else{l.static??=new Map;const $=_o(r.fullPath??r.from);$.parent=l,$.depth=c,S=$,l.static.set(E,$)}}else{const A=E.toLowerCase(),$=l.staticInsensitive?.get(A);if($)S=$;else{l.staticInsensitive??=new Map;const N=_o(r.fullPath??r.from);N.parent=l,N.depth=c,S=N,l.staticInsensitive.set(A,N)}}break}case 1:{const E=p.substring(C,_[1]),A=p.substring(_[4],R),$=v&&!!(E||A),N=E?$?E:E.toLowerCase():void 0,V=A?$?A:A.toLowerCase():void 0,K=!g&&l.dynamic?.find(z=>!z.parse&&z.caseSensitive===$&&z.prefix===N&&z.suffix===V);if(K)S=K;else{const z=fd(1,r.fullPath??r.from,$,N,V);S=z,z.depth=c,z.parent=l,l.dynamic??=[],l.dynamic.push(z)}break}case 3:{const E=p.substring(C,_[1]),A=p.substring(_[4],R),$=v&&!!(E||A),N=E?$?E:E.toLowerCase():void 0,V=A?$?A:A.toLowerCase():void 0,K=!g&&l.optional?.find(z=>!z.parse&&z.caseSensitive===$&&z.prefix===N&&z.suffix===V);if(K)S=K;else{const z=fd(3,r.fullPath??r.from,$,N,V);S=z,z.parent=l,z.depth=c,l.optional??=[],l.optional.push(z)}break}case 2:{const E=p.substring(C,_[1]),A=p.substring(_[4],R),$=v&&!!(E||A),N=E?$?E:E.toLowerCase():void 0,V=A?$?A:A.toLowerCase():void 0,K=fd(2,r.fullPath??r.from,$,N,V);S=K,K.parent=l,K.depth=c,l.wildcard??=[],l.wildcard.push(K)}}l=S}if(g&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const _=_o(r.fullPath??r.from);_.kind=R0,_.parent=l,c++,_.depth=c,l.pathless??=[],l.pathless.push(_),l=_}const w=(r.path||!r.children)&&!r.isRoot;if(w&&p.endsWith("/")){const _=_o(r.fullPath??r.from);_.kind=zr,_.parent=l,c++,_.depth=c,l.index=_,l=_}l.parse=g??null,l.priority=r.options?.params?.priority??0,w&&!l.route&&(l.route=r,l.fullPath=r.fullPath??r.from)}if(r.children)for(const p of r.children)Ac(e,t,p,h,l,c,u)}function ud(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Dr(e){if(e.pathless)for(const t of e.pathless)Dr(t);if(e.static)for(const t of e.static.values())Dr(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Dr(t);if(e.dynamic?.length){e.dynamic.sort(ud);for(const t of e.dynamic)Dr(t)}if(e.optional?.length){e.optional.sort(ud);for(const t of e.optional)Dr(t)}if(e.wildcard?.length){e.wildcard.sort(ud);for(const t of e.wildcard)Dr(t)}}function _o(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function fd(e,t,r,s,l){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:r,prefix:s,suffix:l}}function pR(e,t){const r=_o("/"),s=new Uint16Array(6);for(const l of e)Ac(!1,s,l,1,r,0);Dr(r),t.masksTree=r,t.flatCache=na(1e3)}function mR(e,t){e||="/";const r=t.flatCache.get(e);if(r)return r;const s=sh(e,t.masksTree);return t.flatCache.set(e,s),s}function gR(e,t,r,s,l){e||="/",s||="/";const c=t?`case\0${e}`:e;let u=l.singleCache.get(c);return u||(u=_o("/"),Ac(t,new Uint16Array(6),{from:e},1,u,0),l.singleCache.set(c,u)),sh(s,u,r)}function vR(e,t,r=!1){const s=r?e:`nofuzz\0${e}`,l=t.matchCache.get(s);if(l!==void 0)return l;e||="/";
10let c;try{c=sh(e,t.segmentTree,r)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=T0(c.route)),t.matchCache.set(s,c),c}function yR(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function wR(e,t=!1,r){const s=_o(e.fullPath),l=new Uint16Array(6),c={},u={};let h=0;return Ac(t,l,e,1,s,0,p=>{if(r?.(p,h),p.id in c&&Nt(),c[p.id]=p,h!==0&&p.path){const m=yR(p.fullPath);(!u[m]||p.fullPath.endsWith("/"))&&(u[m]=p)}h++}),Dr(s),{processedTree:{segmentTree:s,singleCache:na(1e3),matchCache:na(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:u}}function sh(e,t,r=!1){const s=e.split("/"),l=bR(e,s,t,r);if(!l)return null;const[c]=C0(e,s,l);return{route:l.node.route,rawParams:c}}function C0(e,t,r){const s=_R(r.node);let l=null;const c=Object.create(null);let u=r.extract?.part??0,h=r.extract?.node??0,p=r.extract?.path??0,m=r.extract?.segment??0;for(;h<s.length;u++,h++,p++,m++){const v=s[h];if(v.kind===zr)break;if(v.kind===R0){m--,u--,p--;continue}const g=t[u],w=p;if(g&&(p+=g.length),v.kind===1){l??=r.node.fullPath.split("/");const _=l[m],S=v.prefix?.length??0;if(_.charCodeAt(S)===123){const C=v.suffix?.length??0,R=_.substring(S+2,_.length-C-1),E=g.substring(S,g.length-C);c[R]=decodeURIComponent(E)}else{const C=_.substring(1);c[C]=decodeURIComponent(g)}}else if(v.kind===3){if(r.skipped&1<<h){u--,p=w-1;continue}l??=r.node.fullPath.split("/");const _=l[m],S=v.prefix?.length??0,C=v.suffix?.length??0,R=_.substring(S+3,_.length-C-1),E=v.suffix||v.prefix?g.substring(S,g.length-C):g;E&&(c[R]=decodeURIComponent(E))}else if(v.kind===2){const _=v,S=e.substring(w+(_.prefix?.length??0),e.length-(_.suffix?.length??0)),C=decodeURIComponent(S);c["*"]=C,c._splat=C;break}}return r.rawParams&&Object.assign(c,r.rawParams),[c,{part:u,node:h,path:p,segment:m}]}function T0(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function _R(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function bR(e,t,r,s){if(e==="/"&&r.index)return{node:r.index,skipped:0};const l=!ea(t),c=l&&e!=="/",u=t.length-(l?1:0),h=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,m=null;for(;h.length;){const v=h.pop(),{node:g,index:w,skipped:_,depth:S,statics:C,dynamics:R,optionals:E}=v;let{extract:A,rawParams:$}=v;if(g.kind===2&&g.route&&!Ml(m,v))continue;if(g.parse){if(!Uv(e,t,v))continue;$=v.rawParams,A=v.extract}s&&g.route&&g.kind!==zr&&Ml(p,v)&&(p=v);const N=w===u;if(N&&(g.route&&(!c||g.kind===zr||g.kind===2)&&Ml(m,v)&&(m=v),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const V=N?void 0:t[w];let K;if(N&&g.index){const z={node:g.index,index:w,skipped:_,depth:S+1,statics:C,dynamics:R,optionals:E,extract:A,rawParams:$};let Y=!0;if(g.index.parse&&(Uv(e,t,z)||(Y=!1)),Y){if(!R&&!E&&!_&&SR(C,u))return z;Ml(m,z)&&(m=z)}}if(g.wildcard)for(let z=g.wildcard.length-1;z>=0;z--){const Y=g.wildcard[z],{prefix:X,suffix:ce}=Y;if(!(X&&(N||!(Y.caseSensitive?V:K??=V.toLowerCase()).startsWith(X)))){if(ce){if(N)continue;const ie=t.slice(w).join("/").slice(-ce.length);if((Y.caseSensitive?ie:ie.toLowerCase())!==ce)continue}h.push({node:Y,index:u,skipped:_,depth:S+1,statics:C,dynamics:R,optionals:E,extract:A,rawParams:$})}}if(g.optional){const z=_|1<<S,Y=S+1;for(let X=g.optional.length-1;X>=0;X--){const ce=g.optional[X];h.push({node:ce,index:w,skipped:z,depth:Y,statics:C,dynamics:R,optionals:E,extract:A,rawParams:$})}if(!N)for(let X=g.optional.length-1;X>=0;X--){const ce=g.optional[X],{prefix:ie,suffix:ue}=ce;if(ie||ue){const ft=ce.caseSensitive?V:K??=V.toLowerCase();if(ie&&!ft.startsWith(ie)||ue&&!ft.endsWith(ue))continue}h.push({node:ce,index:w+1,skipped:_,depth:Y,statics:C,dynamics:R,optionals:E+jl(u,w),extract:A,rawParams:$})}}if(!N&&g.dynamic&&V)for(let z=g.dynamic.length-1;z>=0;z--){const Y=g.dynamic[z],{prefix:X,suffix:ce}=Y;if(X||ce){const ie=Y.caseSensitive?V:K??=V.toLowerCase();if(X&&!ie.startsWith(X)||ce&&!ie.endsWith(ce))continue}h.push({node:Y,index:w+1,skipped:_,depth:S+1,statics:C,dynamics:R+jl(u,w),optionals:E,extract:A,rawParams:$})}
10if(!N&&g.staticInsensitive){const z=g.staticInsensitive.get(K??=V.toLowerCase());z&&h.push({node:z,index:w+1,skipped:_,depth:S+1,statics:C+jl(u,w),dynamics:R,optionals:E,extract:A,rawParams:$})}if(!N&&g.static){const z=g.static.get(V);z&&h.push({node:z,index:w+1,skipped:_,depth:S+1,statics:C+jl(u,w),dynamics:R,optionals:E,extract:A,rawParams:$})}if(g.pathless){const z=S+1;for(let Y=g.pathless.length-1;Y>=0;Y--){const X=g.pathless[Y];h.push({node:X,index:w,skipped:_,depth:z,statics:C,dynamics:R,optionals:E,extract:A,rawParams:$})}}}if(m)return m;if(s&&p){let v=p.index;for(let w=0;w<p.index;w++)v+=t[w].length;const g=v===e.length?"/":e.slice(v);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(g),p}return null}function jl(e,t){return 2**(e-t-1)}function SR(e,t){return e===2**(t-1)-1}function Uv(e,t,r){let s,l;try{[s,l]=C0(e,t,r)}catch{return null}if(r.rawParams=s,r.extract=l,!r.node.parse)return!0;try{if(r.node.parse(s)===!1)return null}catch{}return!0}function Ml(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===zr)>(e.node.kind===zr)||t.node.kind===zr==(e.node.kind===zr)&&t.depth>e.depth))):!0}function Zl(e){return ih(e.filter(t=>t!==void 0).join("/"))}function ih(e){return e.replace(/\/{2,}/g,"/")}function A0(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function nr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function P0(e){return nr(A0(e))}function ac(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function RR(e,t,r){return ac(e,r)===ac(t,r)}function ER({base:e,to:t,trailingSlash:r="never",cache:s}){const l=t.startsWith("/"),c=!l&&t===".";let u;if(s){u=l?t:c?e:e+"\0"+t;const m=s.get(u);if(m)return m}let h;if(c)h=e.split("/");else if(l)h=t.split("/");else{for(h=e.split("/");h.length>1&&ea(h)==="";)h.pop();const m=t.split("/");for(let v=0,g=m.length;v<g;v++){const w=m[v];w===""?v?v===g-1&&h.push(w):h=[w]:w===".."?h.pop():w==="."||h.push(w)}}h.length>1&&(ea(h)===""?r==="never"&&h.pop():r==="always"&&h.push(""));const p=ih(h.join("/"))||"/";return u&&s&&s.set(u,p),p}function CR(e){const t=new Map(e.map(l=>[encodeURIComponent(l),l])),r=Array.from(t.keys()).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(r,"g");return l=>l.replace(s,c=>t.get(c)??c)}function dd(e,t,r){const s=t[e];return typeof s!="string"?s:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(l=>qv(l,r)).join("/"):qv(s,r)}function Bv({path:e,params:t,decoder:r,...s}){let l=!1;const c=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:l};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:l};const u=e.length;let h=0,p,m="";for(;h<u;){const v=h;p=E0(e,v,p);const g=p[5];if(h=g+1,v===g)continue;const w=p[0];if(w===0){m+="/"+e.substring(v,g);continue}if(w===2){const _=t._splat;c._splat=_,c["*"]=_;const S=e.substring(v,p[1]),C=e.substring(p[4],g);if(!_){l=!0,(S||C)&&(m+="/"+S+C);continue}const R=dd("_splat",t,r);m+="/"+S+R+C;continue}if(w===1){const _=e.substring(p[2],p[3]);!l&&!(_ in t)&&(l=!0),c[_]=t[_];const S=e.substring(v,p[1]),C=e.substring(p[4],g),R=dd(_,t,r)??"undefined";m+="/"+S+R+C;continue}if(w===3){const _=e.substring(p[2],p[3]),S=t[_];if(S==null)continue;c[_]=S;const C=e.substring(v,p[1]),R=e.substring(p[4],g),E=dd(_,t,r)??"";m+="/"+C+E+R;continue}}return e.endsWith("/")&&(m+="/"),{usedParams:c,interpolatedPath:m||"/",isMissingParams:l}}function qv(e,t){const r=encodeURIComponent(e);return t?.(r)??r}function ah(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function mt(e){return e?.isNotFound===!0}function TR(){try{return sessionStorage}catch{return}}const AR="tsr-scroll-restoration-v1_3",O0=TR();function PR(){try{return JSON.parse(O0?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function OR(){try{O0?.setItem(AR,JSON.stringify(Cs))}catch{}}const Cs=PR(),Hv="data-scroll-restoration-id",LR=e=>e.state.__TSR_key||e.href;function IR(e){const t=e.getAttribute(Hv);if(t)return`[${Hv}="${t}"]`;let r="",s=e,l;for(;l=s.parentNode;){let c=1,u=s;for(;u=u.previousElementSibling;)c++;const h=`${s.localName}:nth-child(${c})`;r=r?`${h} > ${r}`:h,s=l}return r}let Nl=!1;const Wl="window";function xd(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function Vv(e){const t=new Set;for(const r of e){if(r===Wl)continue;const s=xd(r);s&&t.add(s)}return t}function kR(e,t){const r=e.options.scrollRestoration,s=e._scroll;r&&(s.restoring=!0);const l=e.options.getScrollRestorationKey||LR,c=new Set,u=h=>{const p=Cs[h]||={};for(const m of c)m===document?p[Wl]={scrollX,scrollY}:m.isConnected&&(p[IR(m)]={scrollX:m.scrollLeft,scrollY:m.scrollTop})};r&&!s.restoration&&(s.restoration=!0,Nl=!1,history.scrollRestoration="manual",document.addEventListener("scroll",h=>{Nl||c.add(h.target)},!0),e.subscribe("onBeforeLoad",h=>{h.fromLocation&&u(l(h.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{u(l(e.stores.resolvedLocation.get()??e.stores.location.get())),OR()})),!s.reset&&(s.reset=!0,e.subscribe("onRendered",h=>{const p=e.options.scrollRestorationBehavior,m=e.options.scrollToTopSelectors,v=s.next,g=s.hash;let w;
10if(c.clear(),s.next=!0,s.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const _=l(h.toLocation),S=h.fromLocation&&l(h.fromLocation);if(s.restoring&&S&&S!==_){const C=Cs[S];if(C){let R=Cs[_];for(const E in C){if(E===Wl){if(v)continue}else{const A=xd(E);if(!A||v&&m&&(w??=Vv(m),w.has(A)))continue}R||(R=Cs[_]={}),R[E]??=C[E]}}}Nl=!0;try{const C=h.toLocation.hash,R=h.toLocation.state.__hashScrollIntoViewOptions??!0;let E=!1;if(v){!C&&m&&(w??=Vv(m));const A=C&&R&&g,$=s.restoring?Cs[_]:void 0;if($)for(const N in $){const{scrollX:V,scrollY:K}=$[N];if(N===Wl){if(A)continue;scrollTo({top:K,left:V,behavior:p}),E=!0}else{const z=xd(N);z&&(z.scrollLeft=V,z.scrollTop=K,w?.delete(z))}}if(!C){const N={top:0,left:0,behavior:p};if(E||scrollTo(N),w)for(const V of w)V.scrollTo(N)}}!E&&C&&R&&document.getElementById(C)?.scrollIntoView(R)}finally{Nl=!1}}))}function L0(e,t=String){const r=new URLSearchParams;for(const s in e){const l=e[s];l!==void 0&&r.set(s,t(l))}return r.toString()}function hd(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function $R(e){const t=new URLSearchParams(e),r=Object.create(null);for(const[s,l]of t.entries()){const c=r[s];c==null?r[s]=hd(l):Array.isArray(c)?c.push(hd(l)):r[s]=[c,hd(l)]}return r}const xR=jR(JSON.parse),DR=MR(JSON.stringify,JSON.parse);function jR(e){return t=>{t[0]==="?"&&(t=t.substring(1));const r=$R(t);for(const s in r){const l=r[s];if(typeof l=="string")try{r[s]=e(l)}catch{}}return r}}function MR(e,t){const r=typeof t=="function";function s(l){if(typeof l=="object"&&l!==null)try{return e(l)}catch{}else if(r&&typeof l=="string")try{return t(l),e(l)}catch{}return l}return l=>{const c=L0(l,s);return c?`?${c}`:""}}const Eo="__root__";function I0(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const r=new Response(null,{status:e.statusCode,headers:t});if(r.options=e,e.throw)throw r;return r}function Ot(e){return e instanceof Response&&!!e.options}function k0(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return I0(e)}function NR(e){return{input:({url:t})=>{for(const r of e)t=Dd(r,t);return t},output:({url:t})=>{for(let r=e.length-1;r>=0;r--)t=$0(e[r],t);return t}}}function zR(e){const t=P0(e.basepath),r=`/${t}`,s=e.caseSensitive?r:r.toLowerCase(),l=`${s}/`;return{input:({url:c})=>{const u=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return u===s?c.pathname="/":u.startsWith(l)&&(c.pathname=c.pathname.slice(r.length)),c},output:({url:c})=>(c.pathname=Zl(["/",t,c.pathname]),c)}}function Dd(e,t){const r=e?.input?.({url:t});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return t}function $0(e,t){const r=e?.output?.({url:t});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return t}function UR(e,t){const{createMutableStore:r,createReadonlyStore:s,batch:l,init:c}=t,u=new Map,h=new Map,p=new Map,m=r(e.status),v=r(e.loadedAt),g=r(e.isLoading),w=r(e.isTransitioning),_=r(e.location),S=r(e.resolvedLocation),C=r(e.statusCode),R=r(e.redirect),E=r([]),A=r([]),$=r([]),N=s(()=>pd(u,E.get())),V=s(()=>pd(h,A.get())),K=s(()=>pd(p,$.get())),z=s(()=>E.get()[0]),Y=s(()=>E.get().some(J=>u.get(J)?.get().status==="pending")),X=s(()=>({locationHref:_.get().href,resolvedLocationHref:S.get()?.href,status:m.get()})),ce=s(()=>({status:m.get(),loadedAt:v.get(),isLoading:g.get(),isTransitioning:w.get(),matches:N.get(),location:_.get(),resolvedLocation:S.get(),statusCode:C.get(),redirect:R.get()})),ie=na(64);function ue(J){let le=ie.get(J);return le||(le=s(()=>{const Pe=E.get();for(const Le of Pe){const O=u.get(Le);if(O&&O.routeId===J)return O.get()}}),ie.set(J,le)),le}const ft={status:m,loadedAt:v,isLoading:g,isTransitioning:w,location:_,resolvedLocation:S,statusCode:C,redirect:R,matchesId:E,pendingIds:A,cachedIds:$,matches:N,pendingMatches:V,cachedMatches:K,firstId:z,hasPending:Y,matchRouteDeps:X,matchStores:u,pendingMatchStores:h,cachedMatchStores:p,__store:ce,getRouteMatchStore:ue,setMatches:He,setPending:Je,setCac
10hed:B};He(e.matches),c?.(ft);function He(J){md(J,u,E,r,l)}function Je(J){md(J,h,A,r,l)}function B(J){md(J,p,$,r,l)}return ft}function pd(e,t){const r=[];for(const s of t){const l=e.get(s);l&&r.push(l.get())}return r}function md(e,t,r,s,l){const c=e.map(h=>h.id),u=new Set(c);l(()=>{for(const h of t.keys())u.has(h)||t.delete(h);for(const h of e){const p=t.get(h.id);if(!p){const m=s(h);m.routeId=h.routeId,t.set(h.id,m);continue}p.routeId=h.routeId,p.get()!==h&&p.set(h)}dR(r.get(),c)||r.set(c)})}const jd=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},BR=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Pc=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Co=(e,t,r=!0)=>{const s={...e.router.options.context??{}},l=r?t:t-1;for(let c=0;c<=l;c++){const u=e.matches[c];if(!u)continue;const h=e.router.getMatch(u.id);h&&Object.assign(s,h.__routeContext,h.__beforeLoadContext)}return s},Fv=(e,t)=>{if(!e.matches.length)return;const r=t.routeId,s=e.matches.findIndex(u=>u.routeId===e.router.routeTree.id),l=s>=0?s:0;let c=r?e.matches.findIndex(u=>u.routeId===r):e.firstBadMatchIndex??e.matches.length-1;c<0&&(c=l);for(let u=c;u>=0;u--){const h=e.matches[u];if(e.router.looseRoutesById[h.routeId].options.notFoundComponent)return u}return r?c:l},Ur=(e,t,r)=>{if(!(!Ot(r)&&!mt(r)))throw Ot(r)&&r.redirectHandled&&!r.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=r,e.updateMatch(t.id,s=>({...s,status:Ot(r)?"redirected":mt(r)?"notFound":s.status==="pending"?"success":s.status,context:Co(e,t.index),isFetching:!1,error:r})),mt(r)&&!r.routeId&&(r.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ot(r)&&(e.rendered=!0,r.options._fromLocation=e.location,r.redirectHandled=!0,r=e.router.resolveRedirect(r))),r},x0=(e,t)=>{const r=e.router.getMatch(t);return!!(!r||r._nonReactive.dehydrated)},Gv=(e,t,r)=>{const s=Co(e,r);e.updateMatch(t,l=>({...l,context:s}))},zi=(e,t,r)=>{const{id:s,routeId:l}=e.matches[t],c=e.router.looseRoutesById[l];if(r instanceof Promise)throw r;e.firstBadMatchIndex??=t,Ur(e,e.router.getMatch(s),r);try{c.options.onError?.(r)}catch(u){r=u,Ur(e,e.router.getMatch(s),r)}e.updateMatch(s,u=>(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loadPromise?.resolve(),{...u,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Ot(r)&&!mt(r)&&(e.serialError??=r)},D0=(e,t,r,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const l=r.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Pc(e,t)&&(r.options.loader||r.options.beforeLoad||M0(r))&&typeof l=="number"&&l!==1/0&&(r.options.pendingComponent??e.router.options?.defaultPendingComponent)){const c=setTimeout(()=>{jd(e)},l);s._nonReactive.pendingTimeout=c}},qR=(e,t,r)=>{const s=e.router.getMatch(t);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;D0(e,t,r,s);const l=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&Ur(e,c,c.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(l):l()},HR=(e,t,r,s)=>{const l=e.router.getMatch(t);let c=l._nonReactive.loadPromise;l._nonReactive.loadPromise=To(()=>{c?.resolve(),c=void 0});const{paramsError:u,searchError:h}=l;u&&zi(e,r,u),h&&zi(e,r,h),D0(e,t,s,l);const p=new AbortController;let m=!1;const v=()=>{m||(m=!0,e.updateMatch(t,N=>({...N,isFetching:"beforeLoad",fetchCount:N.fetchCount+1,abortController:p})))},g=()=>{l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,N=>({...N,isFetching:!1}))};if(!s.options.beforeLoad){e.router.batch(()=>{v(),g()});return}l._nonReactive.beforeLoadPromise=To();const w={...Co(e,r,!1),...l.__routeContext},{search:_,params:S,cause:C}=l,R=Pc(e,t),E={search:_,abortController:p,params:S,preload:R,context:w,location:e.location,navigate:N=>e.router.navigate({...N,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":C,matches:e.matches,routeId:s.id,...e.router.options.additionalContext},A=N=>{if(N===void 0){e.router.batch(()=>{v(),g()});return}(Ot(N)||mt(N))&&(v(),zi(e,r,N)),e.router.batch(()=>{v(),e.updateMatch(t,V=>({...V,__beforeLoadContext:N})),g()})};let $;try{if($=s.options.beforeLoad(E),ta($))return v(),$.catch(N=>{zi(e,r,N)}).then(A)}catch(N){v(),zi(e,r,N)}A($)},VR=(e,t)=>{const{id:r,routeId:s}=e.matches[t],l=e.router.looseRoutesById[s],c=()=>h(),u=()=>HR(e,r,t,l),h=()=>
10{if(x0(e,r))return;const p=qR(e,r,l);return ta(p)?p.then(u):u()};return c()},FR=(e,t,r)=>{const s=e.router.getMatch(t);if(!s||!r.options.head&&!r.options.scripts&&!r.options.headers)return;const l={ssr:e.router.options.ssr,matches:e.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([r.options.head?.(l),r.options.scripts?.(l),r.options.headers?.(l)]).then(([c,u,h])=>({meta:c?.meta,links:c?.links,headScripts:c?.scripts,headers:h,scripts:u,styles:c?.styles}))},j0=(e,t,r,s,l)=>{const c=t[s-1],{params:u,loaderDeps:h,abortController:p,cause:m}=e.router.getMatch(r),v=Co(e,s),g=Pc(e,r);return{params:u,deps:h,preload:!!g,parentMatchPromise:c,abortController:p,context:v,location:e.location,navigate:w=>e.router.navigate({...w,_fromLocation:e.location}),cause:g?"preload":m,route:l,...e.router.options.additionalContext}},Kv=async(e,t,r,s,l)=>{try{const c=e.router.getMatch(r);try{(!(_0??e.router.isServer)||c.ssr===!0)&&ra(l);const u=l.options.loader,h=typeof u=="function"?u:u?.handler,p=h?.(j0(e,t,r,s,l)),m=!!h&&ta(p);if((m||l._lazyPromise||l._componentsPromise||l.options.head||l.options.scripts||l.options.headers||c._nonReactive.minPendingPromise)&&e.updateMatch(r,g=>({...g,isFetching:"loader"})),h){const g=m?await p:p;Ur(e,e.router.getMatch(r),g),g!==void 0&&e.updateMatch(r,w=>({...w,loaderData:g}))}l._lazyPromise&&await l._lazyPromise;const v=c._nonReactive.minPendingPromise;v&&await v,l._componentsPromise&&await l._componentsPromise,e.updateMatch(r,g=>({...g,error:void 0,context:Co(e,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(u){let h=u;if(h?.name==="AbortError"){if(c.abortController.signal.aborted){c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loaderPromise=void 0;return}e.updateMatch(r,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:Co(e,s)}));return}const p=c._nonReactive.minPendingPromise;p&&await p,mt(u)&&await l.options.notFoundComponent?.preload?.(),Ur(e,e.router.getMatch(r),u);try{l.options.onError?.(u)}catch(m){h=m,Ur(e,e.router.getMatch(r),m)}!Ot(h)&&!mt(h)&&await ra(l,["errorComponent"]),e.updateMatch(r,m=>({...m,error:h,context:Co(e,s),status:"error",isFetching:!1}))}}catch(c){const u=e.router.getMatch(r);u&&(u._nonReactive.loaderPromise=void 0),Ur(e,u,c)}},GR=async(e,t,r)=>{async function s(_,S,C,R,E){const A=Date.now()-S.updatedAt,$=_?E.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??e.router.options.defaultStaleTime??0,N=E.options.shouldReload,V=typeof N=="function"?N(j0(e,t,l,r,E)):N,{status:K,invalid:z}=R,Y=A>=$&&(!!e.forceStaleReload||R.cause==="enter"||C!==void 0&&C!==R.id);u=K==="success"&&(z||(V??Y)),_&&E.options.preload===!1||(u&&!e.sync&&v?(h=!0,(async()=>{try{await Kv(e,t,l,r,E);const X=e.router.getMatch(l);X._nonReactive.loaderPromise?.resolve(),X._nonReactive.loadPromise?.resolve(),X._nonReactive.loaderPromise=void 0,X._nonReactive.loadPromise=void 0}catch(X){Ot(X)&&await e.router.navigate(X.options)}})()):K!=="success"||u?await Kv(e,t,l,r,E):Gv(e,l,r))}const{id:l,routeId:c}=e.matches[r];let u=!1,h=!1;const p=e.router.looseRoutesById[c],m=p.options.loader,v=((typeof m=="function"?void 0:m?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(x0(e,l)){if(!e.router.getMatch(l))return e.matches[r];Gv(e,l,r)}else{const _=e.router.getMatch(l),S=e.router.stores.matchesId.get()[r],C=(S&&e.router.stores.matchStores.get(S)||null)?.routeId===c?S:e.router.stores.matches.get().find(E=>E.routeId===c)?.id,R=Pc(e,l);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!e.sync&&!_.preload&&v)return _;await _._nonReactive.loaderPromise;const E=e.router.getMatch(l),A=E._nonReactive.error||E.error;A&&Ur(e,E,A),E.status==="pending"&&await s(R,_,C,E,p)}else{const E=R&&!e.router.stores.matchStores.has(l),A=e.router.getMatch(l);A._nonReactive.loaderPromise=To(),E!==A.preload&&e.updateMatch(l,$=>({...$,preload:E})),await s(R,_,C,A,p)}}const g=e.router.getMatch(l);h||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pen
10dingTimeout),g._nonReactive.pendingTimeout=void 0,h||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const w=h?g.isFetching:!1;return w!==g.isFetching||g.invalid!==!1?(e.updateMatch(l,_=>({..._,isFetching:w,invalid:!1})),e.router.getMatch(l)):g};async function Yv(e){const t=e,r=[];BR(t.router)&&jd(t);let s;for(let w=0;w<t.matches.length;w++){try{const _=VR(t,w);ta(_)&&await _}catch(_){if(Ot(_))throw _;if(mt(_))s=_;else if(!t.preload)throw _;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const l=t.firstBadMatchIndex??t.matches.length,c=s&&!t.preload?Fv(t,s):void 0,u=s&&t.preload?0:c!==void 0?Math.min(c+1,l):l;let h,p;for(let w=0;w<u;w++)r.push(GR(t,r,w));try{await Promise.all(r)}catch{const w=await Promise.allSettled(r);for(const _ of w){if(_.status!=="rejected")continue;const S=_.reason;if(Ot(S))throw S;mt(S)?h??=S:p??=S}if(p!==void 0)throw p}const m=h??(s&&!t.preload?s:void 0);let v=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!m&&s&&t.preload)return t.matches;if(m){const w=Fv(t,m);w===void 0&&Nt();const _=t.matches[w],S=t.router.looseRoutesById[_.routeId],C=t.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&C&&(S.options.notFoundComponent=C),m.routeId=_.routeId;const R=_.routeId===t.router.routeTree.id;t.updateMatch(_.id,E=>({...E,...R?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),v=w,await ra(S,["notFoundComponent"])}else if(!t.preload){const w=t.matches[0];w.globalNotFound||t.router.getMatch(w.id)?.globalNotFound&&t.updateMatch(w.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const w=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await ra(w,["errorComponent"])}for(let w=0;w<=v;w++){const{id:_,routeId:S}=t.matches[w],C=t.router.looseRoutesById[S];try{const R=FR(t,_,C);if(R){const E=await R;t.updateMatch(_,A=>({...A,...E}))}}catch(R){console.error(`Error executing head for route ${S}:`,R)}}const g=jd(t);if(ta(g)&&await g,m)throw m;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Qv(e,t){const r=t.map(s=>e.options[s]?.preload?.()).filter(Boolean);if(r.length!==0)return Promise.all(r)}function ra(e,t=ec){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(s=>{const{id:l,...c}=s.options;Object.assign(e.options,c),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const r=()=>e._componentsLoaded?void 0:t===ec?(()=>{if(e._componentsPromise===void 0){const s=Qv(e,ec);s?e._componentsPromise=s.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Qv(e,t);return e._lazyPromise?e._lazyPromise.then(r):r()}function M0(e){for(const t of ec)if(e.options[t]?.preload)return!0;return!1}const ec=["component","errorComponent","pendingComponent","notFoundComponent"];var Br="__TSR_index",Jv="popstate",Xv="beforeunload";function KR(e){let t=e.getLocation();const r=new Set,s=u=>{t=e.getLocation(),r.forEach(h=>h({location:t,action:u}))},l=u=>{e.notifyOnIndexChange??!0?s(u):t=e.getLocation()},c=async({task:u,navigateOpts:h,...p})=>{if(h?.ignoreBlocker??!1){u();return}const m=e.getBlockers?.()??[],v=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&m.length&&v)for(const g of m){const w=lc(p.path,p.state);if(await g.blockerFn({currentLocation:t,nextLocation:w,action:p.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:r,subscribe:u=>(r.add(u),()=>{r.delete(u)}),push:(u,h,p)=>{const m=t.state[Br];h=Zv(m+1,h),c({task:()=>{e.pushState(u,h),s({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:u,state:h})},replace:(u,h,p)=>{const m=t.state[Br];h=Zv(m,h),c({task:()=>{e.replaceState(u,h),s({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:u,state:h})},go:(u,h)=>{c({task:()=>{e.go(u),l({type:"GO",index:u})},navigateOpts:h,type:"GO"})},back:u=>{c({task:()=>{e.back(u?.ignoreBlocker??!1),l({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{e.forward(u?.ignoreBlocker??!1),l({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Br]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const h=e.getBlockers?.()??[];return e.setBlockers([...h,u]),()=>{const p=e.getBlockers?.()??[];e.setBlockers?.(p.filter(m=>m!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s}}function Zv(e,t){t||(t={});const r=lh();return{...t,key:r,__TSR_key:r,[Br]:e}}function YR(e){const t=typeof document<"u"?window:void 0,r=t.history.pushState,s=t.history.replaceState;let l=[];const c=()=>l,u=Y=>l=Y,h=(Y=>Y),p=(()=>lc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const Y=lh();t.history.replaceState({[Br]:0,key:Y,__TSR_key:Y},"")}let m=p(),v,g=!1,w=!1,_=!1,S=!1;const C=()=>m;let R,E;const A=()=>{R&&(z._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),z._ignoreSubscribers=!1,R=void 0,E=void 0,v=void 0)},$=(Y,X,ce)=>{const ie=h(X);E||(v=m),m=lc(X,ce),R={href:ie,state:ce,isPush:R?.isPush||Y==="push"}
10,E||(E=Promise.resolve().then(()=>A()))},N=Y=>{m=p(),z.notify({type:Y})},V=async()=>{if(w){w=!1;return}const Y=p(),X=Y.state[Br]-m.state[Br],ce=X===1,ie=X===-1,ue=!ce&&!ie||g;g=!1;const ft=ue?"GO":ie?"BACK":"FORWARD",He=ue?{type:"GO",index:X}:{type:ie?"BACK":"FORWARD"};if(_)_=!1;else{const Je=c();if(typeof document<"u"&&Je.length){for(const B of Je)if(await B.blockerFn({currentLocation:m,nextLocation:Y,action:ft})){w=!0,t.history.go(1),z.notify(He);return}}}m=p(),z.notify(He)},K=Y=>{if(S){S=!1;return}let X=!1;const ce=c();if(typeof document<"u"&&ce.length)for(const ie of ce){const ue=ie.enableBeforeUnload??!0;if(ue===!0){X=!0;break}if(typeof ue=="function"&&ue()===!0){X=!0;break}}if(X)return Y.preventDefault(),Y.returnValue=""},z=KR({getLocation:C,getLength:()=>t.history.length,pushState:(Y,X)=>$("push",Y,X),replaceState:(Y,X)=>$("replace",Y,X),back:Y=>(Y&&(_=!0),S=!0,t.history.back()),forward:Y=>{Y&&(_=!0),S=!0,t.history.forward()},go:Y=>{g=!0,t.history.go(Y)},createHref:Y=>h(Y),flush:A,destroy:()=>{t.history.pushState=r,t.history.replaceState=s,t.removeEventListener(Xv,K,{capture:!0}),t.removeEventListener(Jv,V)},onBlocked:()=>{v&&m!==v&&(m=v)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(Xv,K,{capture:!0}),t.addEventListener(Jv,V),t.history.pushState=function(...Y){const X=r.apply(t.history,Y);return z._ignoreSubscribers||N("PUSH"),X},t.history.replaceState=function(...Y){const X=s.apply(t.history,Y);return z._ignoreSubscribers||N("REPLACE"),X},z}function QR(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function lc(e,t){const r=QR(e),s=r.indexOf("#"),l=r.indexOf("?"),c=lh();return{href:r,pathname:r.substring(0,s>0?l>0?Math.min(s,l):s:l>0?l:r.length),hash:s>-1?r.substring(s):"",search:l>-1?r.slice(l,s===-1?void 0:s):"",state:t||{[Br]:0,key:c,__TSR_key:c}}}function lh(){return(Math.random()+1).toString(36).substring(7)}function JR(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function ks(e,t){const r=t,s=e;return{fromLocation:r,toLocation:s,pathChanged:r?.pathname!==s.pathname,hrefChanged:r?.href!==s.href,hashChanged:r?.hash!==s.hash}}var XR=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=r=>r(),this.update=r=>{const s=this.options,l=this.basepath??s?.basepath??"/",c=this.basepath===void 0,u=s?.rewrite;if(this.options={...s,...r},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=CR(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=YR()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let v;this.resolvePathCache=na(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=UR(WR(this.latestLocation),v),kR(this)}let h=!1;const p=this.options.basepath??"/",m=this.options.rewrite;if(c||l!==p||u!==m){this.basepath=p;const v=[],g=P0(p);g&&g!=="/"&&v.push(zR({basepath:p})),m&&v.push(m),this.rewrite=v.length===0?void 0:v.length===1?v[0]:NR(v),this.history&&this.updateLatestLocation(),h=!0}h&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const r=wR(this.routeTree,this.options.caseSensitive,(s,l)=>{s.init({originalIndex:l})});return this.options.routeMasks&&pR(this.options.routeMasks,r.processedTree),r},this.subscribe=(r,s)=>{const l={eventType:r,fn:s};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=r=>
10{this.subscribers.forEach(s=>{s.eventType===r.type&&s.fn(r)})},this.parseLocation=(r,s)=>{const l=({pathname:p,search:m,hash:v,href:g,state:w})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const E=this.options.parseSearch(m),A=this.options.stringifySearch(E);return{href:p+A+v,publicHref:p+A+v,pathname:Ni(p).path,external:!1,searchStr:A,search:mo(s?.search,E),hash:Ni(v.slice(1)).path,state:wo(s?.state,w)}}const _=new URL(g,this.origin),S=Dd(this.rewrite,_),C=this.options.parseSearch(S.search),R=this.options.stringifySearch(C);return S.search=R,{href:S.href.replace(S.origin,""),publicHref:g,pathname:Ni(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:R,search:mo(s?.search,C),hash:Ni(S.hash.slice(1)).path,state:wo(s?.state,w)}},c=l(r),{__tempLocation:u,__tempKey:h}=c.state;if(u&&(!h||h===this.tempLocationKey)){const p=l(u);return p.state.key=c.state.key,p.state.__TSR_key=c.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:c}}return c},this.resolvePathWithBase=(r,s)=>ER({base:r,to:s.includes("//")?ih(s):s,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(r,s,l)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:s},l):this.matchRoutesInternal(r,s),this.getMatchedRoutes=r=>eE({pathname:r,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=r=>{const s=this.getMatch(r);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(r=>{this.cancelMatch(r)}),this.stores.matchesId.get().forEach(r=>{if(this.stores.pendingMatchStores.has(r))return;const s=this.stores.matchStores.get(r)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(r)})},this.buildLocation=r=>{const s=(c={})=>{const u=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,h=this.matchRoutesLightweight(u);c.from;const p=c.unsafeRelative==="path"?u.pathname:c.from??h.fullPath,m=c.to?`${c.to}`:void 0,v=h.search,g=Object.assign(Object.create(null),h.params),w=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),_=m?this.resolvePathWithBase(w,m):w,S=c.params===!1||c.params===null?Object.create(null):(c.params??!0)===!0?g:Object.assign(g,yo(c.params,g)),C=this.routesByPath[nr(_)];let R;if(C)R=this.getRouteBranch(C);else if(_.includes("$"))R=[];else{const ie=this.getMatchedRoutes(_);R=ie.matchedRoutes,this.options.notFoundRoute&&(!ie.foundRoute||ie.foundRoute.path!=="/"&&ie.routeParams["**"])&&(R=[...R,this.options.notFoundRoute])}if(R.length&&S0(S))for(const ie of R){const ue=ie.options.params?.stringify??ie.options.stringifyParams;if(ue)try{Object.assign(S,ue(S))}catch{}}const E=r.leaveParams?_:Ni(Bv({path:_,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let A=v;if(r._includeValidateSearch&&this.options.search?.strict){const ie={};R.forEach(ue=>{if(ue.options.validateSearch)try{Object.assign(ie,tc(ue.options.validateSearch,{...ie,...A}))}catch{}}),A=ie}A=tE({search:A,dest:c,destRoutes:R,_includeValidateSearch:r._includeValidateSearch}),A=mo(v,A);const $=this.options.stringifySearch(A),N=c.hash===!0?u.hash:c.hash?yo(c.hash,u.hash):void 0,V=N?`#${N}`:"";let K=c.state===!0?u.state:c.state?yo(c.state,u.state):{};K=wo(u.state,K);const z=`${E}${$}${V}`;let Y,X,ce=!1;if(this.rewrite){const ie=new URL(z,this.origin),ue=$0(this.rewrite,ie);Y=ie.href.replace(ie.origin,""),ue.origin!==this.origin?(X=ue.href,ce=!0):X=ue.pathname+ue.search+ue.hash}else Y=fR(z),X=Y;return{publicHref:X,href:Y,pathname:E,search:A,searchStr:$,state:K,hash:N??"",external:ce,unmaskOnReload:c.unmaskOnReload}},l=(c={},u)=>{const h=s(c);let p=u?s(u):void 0;if(!p){const m=Object.create(null);if(this.options.routeMasks){const v=mR(h.pathname,this.processedTree);if(v){Object.assign(m,v.rawParams);const{from:g,params:w,..._}=v.route,S=w===!1||w===null?Object.create(null):(w??!0)===!0?m:Object.assign(m,yo(w,m));u={from:r.from,..._,params:S},p=s(u)}}}return p&&(h.maskedLocation=p),h};return r.mask?l(r,{from:r.from,...r.mask}):l(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:s,...l})=>{let c;const u=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(g=>{l.state[g]=this.latestLocation.state[g]});const v=At(l.state,this.latestLocation.state);return m.forEach(g=>{delete l.state[g]}),v},h=nr(this.latestLocation.href)===nr(l.href);let p=this.commitLocationPromise;if(this.commitLocationPromise=To(()=>{p?.resolve(),p=void 0}),h&&u())this.load();else{let{maskedLocation:m,hashScrollIntoView:v,...g}=l;m&&(g={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,c=l.replace?"REPLACE":"PUSH",this.history[c==="REPLACE"?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:s})}return this._scroll.next=l.resetScroll??!0,this.history.subscribers.size||this.load(c?{action:{type:c}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:s,hashScrollIntoView:l,viewTransition:c,ignoreBlocker:u,href:h,...p}={})=>
10{if(h){const g=this.history.location.state.__TSR_index,w=lc(h,{__TSR_index:r?g:g+1}),_=new URL(w.pathname,this.origin);p.to=Dd(this.rewrite,_).pathname,p.search=this.options.parseSearch(w.search),p.hash=w.hash.slice(1)}const m=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const v=this.commitLocation({...m,viewTransition:c,replace:r,resetScroll:s,hashScrollIntoView:l,ignoreBlocker:u});return queueMicrotask(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:r,reloadDocument:s,href:l,publicHref:c,...u})=>{let h=!1;if(l)try{new URL(`${l}`),h=!0}catch{}if(h&&!s&&(s=!0),s){if(r!==void 0||!l){const m=this.buildLocation({to:r,...u});l=l??m.publicHref,c=c??m.publicHref}const p=!h&&c?c:l;if(ic(p,this.protocolAllowlist))return;if(!u.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const v of m)if(v?.blockerFn&&await v.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}u.replace?window.location.replace(p):window.location.href=p;return}return this.buildAndCommitLocation({...u,href:l,to:r,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const r=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(l=>!r.some(c=>c.id===l.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(r),this.stores.setCached(s)})},this.load=async r=>{const s=r?.action?.type;let l,c,u;const h=this.stores.resolvedLocation.get()??this.stores.location.get();for(u=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad(),s&&(this._scroll.hash=s==="PUSH"||s==="REPLACE");const v=this.latestLocation,g=ks(v,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...g}),this.emit({type:"onBeforeLoad",...g}),await Yv({router:this,sync:r?.sync,forceStaleReload:h.href===v.href,matches:this.stores.pendingMatches.get(),location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let w=null,_=null,S=null,C=null;this.batch(()=>{const R=this.stores.pendingMatches.get(),E=R.length,A=this.stores.matches.get();w=E?A.filter(V=>!this.stores.pendingMatchStores.has(V.id)):null;const $=new Set;for(const V of this.stores.pendingMatchStores.values())V.routeId&&$.add(V.routeId);const N=new Set;for(const V of this.stores.matchStores.values())V.routeId&&N.add(V.routeId);_=E?A.filter(V=>!$.has(V.routeId)):null,S=E?R.filter(V=>!N.has(V.routeId)):null,C=E?R.filter(V=>N.has(V.routeId)):A,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),E&&(this.stores.setMatches(R),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...w.filter(V=>V.status!=="error"&&V.status!=="notFound"&&V.status!=="redirected")]),this.clearExpiredCache())});for(const[R,E]of[[_,"onLeave"],[S,"onEnter"],[C,"onStay"]])if(R)for(const A of R)this.looseRoutesById[A.routeId].options[E]?.(A)})})}})}catch(v){Ot(v)?(l=v,this.navigate({...l.options,replace:!0,ignoreBlocker:!0})):mt(v)&&(c=v);const g=l?l.status:c?404:this.stores.matches.get().some(w=>w.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(g),this.stores.redirect.set(l)})}this.latestLoadPromise===u&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=u,await u;this.latestLoadPromise&&u!==this.latestLoadPromise;)await this.latestLoadPromise;let p;this.hasNotFoundMatch()?p=404:this.stores.matches.get().some(m=>m.status==="error")&&(p=500),p!==void 0&&this.stores.statusCode.set(p)},this.startViewTransition=r=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let l;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),h=typeof s.types=="function"?s.types(ks(c,u)):s.types;if(h===!1){r();return}l={update:r,types:h}}else l=r;document.startViewTransition(l)}else r()},this.updateMatch=(r,s)=>{this.startTransition(()=>
10{const l=this.stores.pendingMatchStores.get(r);if(l){l.set(s);return}const c=this.stores.matchStores.get(r);if(c){c.set(s);return}const u=this.stores.cachedMatchStores.get(r);if(u){const h=s(u.get());h.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(p=>p.filter(m=>m!==r)):u.set(h)}})},this.getMatch=r=>this.stores.cachedMatchStores.get(r)?.get()??this.stores.pendingMatchStores.get(r)?.get()??this.stores.matchStores.get(r)?.get(),this.invalidate=r=>{const s=l=>r?.filter?.(l)??!0?{...l,invalid:!0,...r?.forcePending||l.status==="error"||l.status==="notFound"?{status:"pending",error:void 0}:void 0}:l;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:r?.sync})},this.getParsedLocationHref=r=>r.publicHref||"/",this.resolveRedirect=r=>{const s=r.headers.get("Location");if(!r.options.href||r.options._builtLocation){const l=r.options._builtLocation??this.buildLocation(r.options),c=this.getParsedLocationHref(l);r.options.href=c,r.headers.set("Location",c)}else if(s)try{const l=new URL(s);if(this.origin&&l.origin===this.origin){const c=l.pathname+l.search+l.hash;r.options.href=c,r.headers.set("Location",c)}}catch{}if(r.options.href&&!r.options._builtLocation&&ic(r.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return r.headers.get("Location")||r.headers.set("Location",r.options.href),r},this.clearCache=r=>{const s=r?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(l=>!s(l))):this.stores.setCached([])},this.clearExpiredCache=()=>{const r=Date.now(),s=l=>{const c=this.looseRoutesById[l.routeId];if(!c.options.loader)return!0;const u=(l.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return l.status==="error"?!0:r-l.updatedAt>=u};this.clearCache({filter:s})},this.loadRouteChunk=ra,this.preloadRoute=async r=>{const s=r._builtLocation??this.buildLocation(r);let l=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:r});const c=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),u=new Set([...c,...this.stores.cachedIds.get()]),h=l.filter(p=>!u.has(p.id));if(h.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...h])}try{return l=await Yv({router:this,matches:l,location:s,preload:!0,updateMatch:(p,m)=>{c.has(p)?l=l.map(v=>v.id===p?m(v):v):this.updateMatch(p,m)}}),l}catch(p){if(Ot(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:s});mt(p)||console.error(p);return}},this.matchRoute=(r,s)=>{const l={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},c=this.buildLocation(l);if(s?.pending&&this.stores.status.get()!=="pending")return!1;const u=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=gR(c.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,u.pathname,this.processedTree);return!h||r.params&&!At(h.rawParams,r.params,{partial:!0})?!1:s?.includeSearch??!0?At(u.search,c.search,{partial:!0})?h.rawParams:!1:h.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(r=>r.status==="notFound"||r.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??DR,parseSearch:e.parseSearch??xR,protocolAllowlist:e.protocolAllowlist??aR}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:r}){this.routesById=e,this.routesByPath=t,this.processedTree=r;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=T0(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const r=this.getMatchedRoutes(e.pathname),{foundRoute:s,routeParam
10s:l}=r;let{matchedRoutes:c}=r,u=!1;(s?s.path!=="/"&&l["**"]:nr(e.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const h=u?rE(this.options.notFoundMode,c):void 0,p=new Array(c.length),m=new Map;for(const v of this.stores.matchStores.values())v.routeId&&m.set(v.routeId,v.get());for(let v=0;v<c.length;v++){const g=c[v],w=p[v-1];let _,S,C;{const ue=w?.search??e.search,ft=w?._strictSearch??void 0;try{const He=tc(g.options.validateSearch,{...ue})??void 0;_={...ue,...He},S={...ft,...He},C=void 0}catch(He){let Je=He;if(He instanceof cc||(Je=new cc(He.message,{cause:He})),t?.throwOnError)throw Je;_=ue,S={},C=Je}}const R=g.options.loaderDeps?.({search:_})??"",E=R?JSON.stringify(R):"",{interpolatedPath:A,usedParams:$}=Bv({path:g.fullPath,params:l,decoder:this.pathParamsDecoder,server:this.isServer}),N=g.id+A+E,V=this.getMatch(N),K=m.get(g.id),z=V?._strictParams??$;let Y;if(!V)try{Wv(g,z)}catch(ue){if(mt(ue)||Ot(ue)?Y=ue:Y=new ZR(ue.message,{cause:ue}),t?.throwOnError)throw Y}Object.assign(l,z);const X=K?"stay":"enter";let ce;if(V)ce={...V,cause:X,params:K?.params??l,_strictParams:z,search:mo(K?K.search:V.search,_),_strictSearch:S};else{const ue=g.options.loader||g.options.beforeLoad||g.lazyFn||M0(g)?"pending":"success";ce={id:N,ssr:g.options.ssr,index:v,routeId:g.id,params:K?.params??l,_strictParams:z,pathname:A,updatedAt:Date.now(),search:K?mo(K.search,_):_,_strictSearch:S,searchError:void 0,status:ue,isFetching:!1,error:void 0,paramsError:Y,__routeContext:void 0,_nonReactive:{loadPromise:To()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:K?wo(K.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}t?.preload||(ce.globalNotFound=h===g.id),ce.searchError=C;const ie=this.getParentContext(w);ce.context={...ie,...ce.__routeContext,...ce.__beforeLoadContext},p[v]=ce}for(let v=0;v<p.length;v++){const g=p[v],w=this.looseRoutesById[g.routeId],_=this.getMatch(g.id),S=m.get(g.routeId);if(g.params=S?mo(S.params,l):l,!_){const C=p[v-1],R=this.getParentContext(C);if(w.options.context){const E={deps:g.loaderDeps,params:g.params,context:R??{},location:e,navigate:A=>this.navigate({...A,_fromLocation:e}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:p,routeId:w.id};g.__routeContext=w.options.context(E)??void 0}g.context={...R,...g.__routeContext,...g.__beforeLoadContext}}}return p}matchRoutesLightweight(e){const t=ea(this.stores.matchesId.get()),r=this.lightweightCache.get(e);if(r&&r[0]===t)return r[1];const{matchedRoutes:s,routeParams:l}=this.getMatchedRoutes(e.pathname),c=ea(s),u={...e.search};for(const g of s)try{Object.assign(u,tc(g.options.validateSearch,u))}catch{}const h=t&&this.stores.matchStores.get(t)?.get(),p=h&&h.routeId===c.id&&h.pathname===e.pathname;let m;if(p)m=h.params;else{const g=Object.assign(Object.create(null),l);for(const w of s)try{Wv(w,g)}catch{}m=g}const v={matchedRoutes:s,fullPath:c.fullPath,search:u,params:m};return this.lightweightCache.set(e,[t,v]),v}},cc=class extends Error{},ZR=class extends Error{};function WR(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function tc(e,t){if(e==null)return{};if("~standard"in e){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new cc("Async validation not supported");if(r.issues)throw new cc(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function eE({pathname:e,routesById:t,processedTree:r}){const s=Object.create(null),l=nr(e);let c;const u=vR(l,r,!0);return u&&(c=u.route,Object.assign(s,u.rawParams)),{matchedRoutes:u?.branch||[t.__root__],routeParams:s,foundRoute:c}}function tE({search:e,dest:t,destRoutes:r,_includeValidateSearch:s}){return nE(r)(e,t,s??!1)}function nE(e){let t,r;const s=[];for(const c of e){const u=c.options;if("search"in u)u.search?.middlewares&&s.push(...u.search.middlewares);else if(u.preSearchFilters||u.postSearchFilters){const p=({search:m,next:v})=>{const g=v(u.preSearchFilters?u.preSearchFilters.reduce((w,_)=>_(w),m):m);return u.postSearchFilters?u.postSearchFilters.reduce((w,_)=>_(w),g):g};s.push(p)}const h=u.validateSearch;if(h){const p=({search:m,next:v,meta:g})=>{const w=v(m);if(r)try{const _=tc(h,w);if(g&&_)for(const S in _)S in w||(g.defaulted||=new Map).set(S,_[S]);return{...w,..._}}catch{}return w};s.push(p)}}const l=(c,u,h)=>
10{if(c>=s.length){if(!t.search)return{};if(t.search===!0)return u;const m=yo(t.search,u);return h&&(h.explicit=m),m}const p=(m,v)=>{if(v){const g=h||{};return{search:l(c+1,m,g),meta:g}}return l(c+1,m,h)};return s[c]({search:u,next:p,meta:h})};return function(u,h,p){return t=h,r=p,l(0,u)}}function rE(e,t){if(e!=="root")for(let r=t.length-1;r>=0;r--){const s=t[r];if(s.children)return s.id}return Eo}function Wv(e,t){const r=e.options.params?.parse??e.options.parseParams;if(r){const s=r(t);if(s===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,s)}}const An=Symbol.for("TSR_DEFERRED_PROMISE");function oE(e,t){const r=e;return r[An]||(r[An]={status:"pending"},r.then(s=>{r[An].status="success",r[An].data=s}).catch(s=>{r[An].status="error",r[An].error={data:JR(s),__isServerError:!0}})),r}const sE="Error preloading route! âï¸";function N0(e,t){if(e)return typeof e=="string"?e:e[t]}function iE(e){return e?.scriptFormat??"module"}function aE(e,t,r){const s=lE(t),l=N0(r,"script")??s.crossOrigin;return{...iE(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...l?{crossOrigin:l}:{}}}function lE(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function zl(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const r=new Set;for(const s of t){const l=JSON.stringify(s);r.has(l)||(r.add(l),e.push(s))}}function cE(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var z0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const r=this.options,s=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=Eo:this.parentRoute||Nt();let l=s?Eo:r?.path;l&&l!=="/"&&(l=A0(l));const c=r?.id||l;let u=s?Eo:Zl([this.parentRoute.id==="__root__"?"":this.parentRoute.id,c]);l==="__root__"&&(l="/"),u!=="__root__"&&(u=Zl(["/",u]));const h=u==="__root__"?"/":Zl([this.parentRoute.fullPath,l]);this._path=l,this._id=u,this._fullPath=h,this._to=nr(h)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>I0({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},uE=class extends z0{constructor(e){super(e)}};const rr=Symbol.asyncIterator,U0=Symbol.hasInstance,$s=Symbol.isConcatSpreadable,or=Symbol.iterator,B0=Symbol.match,q0=Symbol.matchAll,H0=Symbol.replace,V0=Symbol.search,F0=Symbol.species,G0=Symbol.split,K0=Symbol.toPrimitive,xs=Symbol.toStringTag,Y0=Symbol.unscopables,Q0={[rr]:0,[U0]:1,[$s]:2,[or]:3,[B0]:4,[q0]:5,[H0]:6,[V0]:7,[F0]:8,[G0]:9,[K0]:10,[xs]:11,[Y0]:12},fE={0:rr,1:U0,2:$s,3:or,4:B0,5:q0,6:H0,7:V0,8:F0,9:G0,10:K0,11:xs,12:Y0},dE={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},hE={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},pE={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Ce(e,t,r,s,l,c,u,h,p,m,v,g){return{t:e,i:t,s:r,c:s,m:l,p:c,e:u,a:h,f:p,b:m,o:v,l:g}}function qr(e){return Ce(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const J0=qr(2),X0=qr(3),mE=qr(1),gE=qr(0),vE=qr(4),yE=qr(5),wE=qr(6),_E=qr(7);function bE(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case` 11`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function Hr(e){let t="",r=0,s;for(let l=0,c=e.length;l<c;l++)s=bE(e[l]),s&&(t+=e.slice(r,l)+s,r=l+1);return r===0?t=e:t+=e.slice(r),t}function SE(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function Vr(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,SE)}const Ul="__SEROVAL_REFS__",Z0=new Map,Ls=new Map;function W0(e){return Z0.has(e)}function RE(e){return Ls.has(e)}function EE(e){if(W0(e))return Z0.get(e);throw new tC(e)}function CE(e){if(RE(e))return Ls.get(e);throw new nC(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,Ul,{value:Ls,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Ul,{value:Ls,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Ul,{value:Ls,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Ul,{value:Ls,configurable:!0,writable:!1,enumerable:!1});function ch(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function TE(e){const t=hE[ch(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function ew(e,t){let r=TE(e);const s=Object.getOwnPropertyNames(e);for(let l=0,c=s.length,u;l<c;l++)u=s[l],u!=="name"&&u!=="message"&&(u==="stack"?t&4&&(r=r||{},r[u]=e[u]):(r=r||{},r[u]=e[u]));return r}function tw(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}
12function AE(e){switch(e){case Number.POSITIVE_INFINITY:return yE;case Number.NEGATIVE_INFINITY:return wE}return e!==e?_E:Object.is(e,-0)?vE:Ce(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function nw(e){return Ce(1,void 0,Hr(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function PE(e){return Ce(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function OE(e){return Ce(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function LE(e,t){const r=t.valueOf();return Ce(5,e,r!==r?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $r(e,t,r){return Ce(36,e,r.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function IE(e,t){return Ce(6,e,void 0,Hr(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function kE(e,t){return Ce(17,e,Q0[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $E(e,t){return Ce(18,e,Hr(EE(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function xE(e,t,r){return Ce(25,e,r,Hr(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function DE(e,t,r){return Ce(9,e,void 0,void 0,void 0,void 0,void 0,r,void 0,void 0,tw(t),void 0)}function jE(e,t){return Ce(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function ME(e,t,r){return Ce(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,r,t.byteOffset,void 0,t.length)}function NE(e,t,r){return Ce(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,r,t.byteOffset,void 0,t.length)}function zE(e,t,r){return Ce(20,e,void 0,void 0,void 0,void 0,void 0,void 0,r,t.byteOffset,void 0,t.byteLength)}function UE(e,t,r){return Ce(13,e,ch(t),void 0,Hr(t.message),r,void 0,void 0,void 0,void 0,void 0,void 0)}function BE(e,t,r){return Ce(14,e,ch(t),void 0,Hr(t.message),r,void 0,void 0,void 0,void 0,void 0,void 0)}function qE(e,t){return Ce(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function HE(e,t){return Ce(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function VE(e,t){return Ce(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function FE(e,t,r){return Ce(31,e,void 0,void 0,void 0,void 0,void 0,r,t,void 0,void 0,void 0)}function GE(e,t){return Ce(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function KE(e,t){return Ce(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function YE(e,t){return Ce(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function QE(e,t,r,s){return Ce(35,e,r,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,s)}const JE={parsing:1,serialization:2,deserialization:3};function XE(e){return`Seroval Error (step: ${JE[e]})`}const ZE=(e,t)=>XE(e);var rw=class extends Error{constructor(e,t){super(ZE(e)),this.cause=t}},ey=class extends rw{constructor(e){super("parsing",e)}},WE=class extends rw{constructor(e){super("deserialization",e)}};function sr(e){return`Seroval Error (specific: ${e})`}var Oc=class extends Error{constructor(e){super(sr(1)),this.value=e}},uh=class extends Error{constructor(e){super(sr(2))}},eC=class extends Error{constructor(e){super(sr(3))}},Lc=class extends Error{constructor(e){super(sr(4))}},tC=class extends Error{constructor(e){super(sr(5)),this.value=e}},nC=class extends Error{constructor(e){super(sr(6))}},rC=class extends Error{constructor(e){super(sr(7))}},un=class extends Error{constructor(e){super(sr(8))}},ow=class extends Error{constructor(e){super(sr(9))}},oC=class{constructor(e,t){this.value=e,this.replacement=t}};const fh=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,r)=>{e.s=t,e.f=r}),e},sC=()=>{const e=[],t=[];let r=!0,s=!1,l=0;const c={flush(u,h,p){for(p=0;p<l;p++)t[p]&&t[p][h](u)},up(u,h,p,m){for(h=0,p=e.length;h<p;h++)m=e[h],!r&&h===p-1?u[s?"return":"throw"](m):u.next(m)},on(u,h){return r&&(h=l++,t[h]=u),c.up(u),()=>{r&&(t[h]=t[l],t[l--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(u){return c.on(u)},next(u){r&&(e.push(u),c.flush(u,"next"))},throw(u){r&&(e.push(u),c.flush(u,"throw"),r=!1,s=!1,t.length=0)},return(u){r&&(e.push(u),c.flush(u,"return"),r=!1,s=!0,t.length=0)}}},iC=e=>t=>()=>{let r=0;const s={[e](){return s},next(){if(r>t.d)return{done:!0,value:void 0};const l=r++,c=t.v[l];if(l===t.t)throw c;return{done:l===t.d,value:c}}};return s},aC=(e,t)=>r=>()=>{let s=0,l=-1,c=!1;const u=[],h=[],p={finalize(v=0,g=h.length){for(;v<g;v++)h[v].s({done:!0,value:void 0})}};r.on({next(v){const g=h.shift();g&&g.s({done:!1,value:v}),u.push(v)},throw(v){const g=h.shift();g&&g.f(v),p.finalize(),l=u.length,c=!0,u.push(v)},return(v){const g=h.shift();g&&g.s({done:!0,value:v}),p.finalize(),l=u.length,u.push(v)}});const m={[e](){return m},next(){if(l===-1){const w=s++;if(w>=u.length){const _=t();return h.push(_),_.p}return{done:!1,value:u[w]}}if(s>l)return{done:!0,value:void 0};const v=s++,g=u[v];if(v!==l)return{done:!1,value:g};if(c)throw g;return{done:!0,value:g}}};return m},lC=e=>{const t=atob(e),r=t.length,s=new Uint8Array(r);for(let l=0;l<r;l++)s[l]=t.charCodeAt(l);return s.buffer};
12function cC(e){return"__SEROVAL_SEQUENCE__"in e}function sw(e,t,r){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:r}}function uC(e){const t=[];let r=-1,s=-1;const l=e[or]();for(;;)try{const c=l.next();if(t.push(c.value),c.done){s=t.length-1;break}}catch(c){r=t.length,t.push(c)}return sw(t,r,s)}const fC=iC(or);function dC(e){return fC(e)}const hC={},pC={},mC={0:{},1:{},2:{},3:{},4:{},5:{}};function gC(e){return"__SEROVAL_STREAM__"in e}function Ao(){return sC()}function vC(e){const t=Ao(),r=e[rr]();async function s(){try{const l=await r.next();l.done?t.return(l.value):(t.next(l.value),await s())}catch(l){t.throw(l)}}return s().catch(()=>{}),t}const yC=aC(rr,fh);function wC(e){return yC(e)}async function _C(e){try{return[1,await e]}catch(t){return[0,t]}}function bC(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function nc(e,t){e.marked.add(t)}function SC(e,t){const r=e.refs.size;return e.refs.set(t,r),r}function Ic(e,t){const r=e.refs.get(t);return r!=null?(nc(e,r),{type:1,value:OE(r)}):{type:0,value:SC(e,t)}}function dh(e,t){const r=Ic(e,t);return r.type===1?r:W0(t)?{type:2,value:$E(r.value,t)}:r}function bo(e,t){const r=dh(e,t);if(r.type!==0)return r.value;if(t in Q0)return kE(r.value,t);throw new Oc(t)}function kc(e,t){const r=Ic(e,mC[t]);return r.type===1?r.value:Ce(26,r.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function RC(e){const t=Ic(e,hC);return t.type===1?t.value:Ce(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,bo(e,or),void 0,void 0,void 0)}function EC(e){const t=Ic(e,pC);return t.type===1?t.value:Ce(29,t.value,void 0,void 0,void 0,void 0,void 0,[kc(e,1),bo(e,rr)],void 0,void 0,void 0,void 0)}function CC(e,t,r,s){return Ce(r?11:10,e,void 0,void 0,void 0,s,void 0,void 0,void 0,void 0,tw(t),void 0)}function TC(e,t,r,s){return Ce(8,t,void 0,void 0,void 0,void 0,{k:r,v:s},void 0,kc(e,0),void 0,void 0,void 0)}function AC(e,t,r){const s=new Uint8Array(r);let l="";for(let c=0,u=s.length;c<u;c++)l+=String.fromCharCode(s[c]);return Ce(19,t,Hr(btoa(l)),void 0,void 0,void 0,void 0,void 0,kc(e,5),void 0,void 0,void 0)}function PC(e,t){return{base:bC(e,t),child:void 0}}var OC=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return ut(this._p,this.depth,e)}};async function LC(e,t,r){const s=[];for(let l=0,c=r.length;l<c;l++)l in r?s[l]=await ut(e,t,r[l]):s[l]=0;return s}async function IC(e,t,r,s){return DE(r,s,await LC(e,t,s))}async function hh(e,t,r){const s=Object.entries(r),l=[],c=[];for(let u=0,h=s.length;u<h;u++)l.push(Hr(s[u][0])),c.push(await ut(e,t,s[u][1]));return or in r&&(l.push(bo(e.base,or)),c.push(HE(RC(e.base),await ut(e,t,uC(r))))),rr in r&&(l.push(bo(e.base,rr)),c.push(VE(EC(e.base),await ut(e,t,vC(r))))),xs in r&&(l.push(bo(e.base,xs)),c.push(nw(r[xs]))),$s in r&&(l.push(bo(e.base,$s)),c.push(r[$s]?J0:X0)),{k:l,v:c}}async function gd(e,t,r,s,l){return CC(r,s,l,await hh(e,t,s))}async function kC(e,t,r,s){return jE(r,await ut(e,t,s.valueOf()))}async function $C(e,t,r,s){return ME(r,s,await ut(e,t,s.buffer))}async function xC(e,t,r,s){return NE(r,s,await ut(e,t,s.buffer))}async function DC(e,t,r,s){return zE(r,s,await ut(e,t,s.buffer))}async function ty(e,t,r,s){const l=ew(s,e.base.features);return UE(r,s,l?await hh(e,t,l):void 0)}async function jC(e,t,r,s){const l=ew(s,e.base.features);return BE(r,s,l?await hh(e,t,l):void 0)}async function MC(e,t,r,s){const l=[],c=[];for(const[u,h]of s.entries())l.push(await ut(e,t,u)),c.push(await ut(e,t,h));return TC(e.base,r,l,c)}async function NC(e,t,r,s){const l=[];for(const c of s.keys())l.push(await ut(e,t,c));return qE(r,l)}async function iw(e,t,r,s){const l=e.base.plugins;if(l)for(let c=0,u=l.length;c<u;c++){const h=l[c];if(h.parse.async&&h.test(s))return xE(r,h.tag,await h.parse.async(s,new OC(e,t),{id:r}))}}async function zC(e,t,r,s){const[l,c]=await _C(s);return Ce(12,r,l,void 0,void 0,void 0,void 0,void 0,await ut(e,t,c),void 0,void 0,void 0)}function UC(e,t,r,s,l){const c=[],u=r.on({next:h=>{nc(this.base,t),ut(this,e,h).then(p=>{c.push(GE(t,p))},p=>{l(p),u()})},throw:h=>{nc(this.base,t),ut(this,e,h).then(p=>{c.push(KE(t,p)),s(c),u()},p=>{l(p),u()})},return:h=>{nc(this.base,t),ut(this,e,h).then(p=>{c.push(YE(t,p)),s(c),u()},p=>{l(p),u()})}})}async function BC(e,t,r,s){return FE(r,kc(e.base,4),await new Promise(UC.bind(e,t,r,s)))}async function qC(e,t,r,s){const l=[];for(let c=0,u=s.v.length;c<u;c++)l[c]=await ut(e,t,s.v[c]);return QE(r,l,s.t,s.d)}async function HC(e,t,r,s){if(Array.isArray(s))return IC(e,t,r,s);if(gC(s))return BC(e,t,r,s);if(cC(s))return qC(e,t,r,s);let l=s.constructor;if(l!==void 0&&typeof l!="function"){const h=Object.getPrototypeOf(s);l=h===null?void 0:h.constructor}if(l===oC)return ut(e,t,s.replacement);const c=await iw(e,t,r,s);if(c)return c;switch(l){case Object:return gd(e,t,r,s,!1);case void 0:return gd(e,t,r,s,!0);case Date:return LE(r,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return ty(e,t,r,s);case Number:case Boolean:case String:case BigInt:return kC(e,t,r,s);case ArrayBuffer:return AC(e.base,r,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return $C(e,t,r,s);case DataView:return DC(e,t,r,s);case Map:return MC(e,t,r,s);case Set:return NC(e,t,r,s)}
12if(l===Promise||s instanceof Promise)return zC(e,t,r,s);const u=e.base.features;if(u&32&&l===RegExp)return IE(r,s);if(u&16)switch(l){case BigInt64Array:case BigUint64Array:return xC(e,t,r,s)}if(u&1&&typeof AggregateError<"u"&&(l===AggregateError||s instanceof AggregateError))return jC(e,t,r,s);if(u&64&&typeof Temporal<"u")switch(l){case Temporal.Instant:return $r(r,0,s);case Temporal.Duration:return $r(r,1,s);case Temporal.PlainDate:return $r(r,2,s);case Temporal.PlainDateTime:return $r(r,3,s);case Temporal.PlainMonthDay:return $r(r,4,s);case Temporal.PlainTime:return $r(r,5,s);case Temporal.PlainYearMonth:return $r(r,6,s);case Temporal.ZonedDateTime:return $r(r,7,s)}if(s instanceof Error)return ty(e,t,r,s);if(or in s||rr in s)return gd(e,t,r,s,!!l);throw new Oc(s)}async function VC(e,t,r){const s=dh(e.base,r);if(s.type!==0)return s.value;const l=await iw(e,t,s.value,r);if(l)return l;throw new Oc(r)}async function ut(e,t,r){if(t>=e.base.depthLimit)throw new ow(e.base.depthLimit);switch(typeof r){case"boolean":return r?J0:X0;case"undefined":return mE;case"string":return nw(r);case"number":return AE(r);case"bigint":return PE(r);case"object":if(r){const s=dh(e.base,r);return s.type===0?await HC(e,t+1,s.value,r):s.value}return gE;case"symbol":return bo(e.base,r);case"function":return VC(e,t,r);default:throw new Oc(r)}}async function FC(e,t){try{return await ut(e,0,t)}catch(r){throw r instanceof ey?r:new ey(r)}}function aw(e,t){for(let r=0,s=t.length;r<s;r++){const l=t[r];e.has(l)||(e.add(l),l.extends&&aw(e,l.extends))}}function lw(e){if(e){const t=new Set;return aw(t,e),[...t]}}function GC(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new rC(e)}}function KC(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function YC(e){switch(e){case rr:case $s:case xs:case or:return!0;default:return!1}}const QC=1e6,JC=1e4,XC=2e4;function cw(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const ZC=1e3;function WC(e,t){var r;const s=t.refs||new Map;return"types"in s||Object.assign(s,{types:new Map}),{mode:e,plugins:t.plugins,refs:s,features:(r=t.features)!==null&&r!==void 0?r:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||ZC}}function eT(e){return{mode:2,base:WC(2,e),child:void 0}}var tT=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Ue(this._p,this.depth,e)}};function uw(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new un({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function fw(e){return!!e&&typeof e=="object"&&"then"in e&&typeof e.then=="function"}function nT(e,t,r){return uw(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,r),r}function rT(e,t,r){return uw(e.base,t),e.base.refs.set(t,r),r}function st(e,t,r){return e.mode===1?nT(e,t,r):rT(e,t,r)}function Md(e,t,r){if(Object.hasOwn(t,r))return t[r];throw new un(e)}function oT(e,t){return st(e,t.i,CE(Vr(t.s)))}function sT(e,t,r){const s=r.a,l=s.length,c=st(e,r.i,new Array(l));for(let u=0,h;u<l;u++)h=s[u],h&&(c[u]=Ue(e,t,h));return cw(c,r.o),c}function ny(e,t,r){KC(t)?e[t]=r:Object.defineProperty(e,t,{value:r,configurable:!0,enumerable:!0,writable:!0})}function iT(e,t,r,s,l){if(typeof s=="string")ny(r,Vr(s),Ue(e,t,l));else{const c=Ue(e,t,s);switch(typeof c){case"string":ny(r,c,Ue(e,t,l));break;case"symbol":YC(c)&&(r[c]=Ue(e,t,l));break;default:throw new un(s)}}}function dw(e,t,r){e.base.refs.types.set(t,r)}function $c(e,t,r,s){if(e.base.refs.types.get(r)!==s)throw new un(t)}function hw(e,t,r,s){const l=r.k;if(l.length>0)for(let c=0,u=r.v,h=l.length;c<h;c++)iT(e,t,s,l[c],u[c]);return s}function aT(e,t,r){const s=st(e,r.i,r.t===10?{}:Object.create(null));return hw(e,t,r.p,s),cw(s,r.o),s}function lT(e,t){return st(e,t.i,new Date(t.s))}function cT(e,t){if(!(e.base.features&64))throw new uh(t);let r;switch(t.c){case 0:r=Temporal.Instant.from(t.s);break;case 1:r=Temporal.Duration.from(t.s);break;case 2:r=Temporal.PlainDate.from(t.s);break;case 3:r=Temporal.PlainDateTime.from(t.s);break;case 4:r=Temporal.PlainMonthDay.from(t.s);break;case 5:r=Temporal.PlainTime.from(t.s);break;case 6:r=Temporal.PlainYearMonth.from(t.s);break;case 7:r=Temporal.ZonedDateTime.from(t.s);break;default:throw new un(t)}return st(e,t.i,r)}function uT(e,t){if(e.base.features&32){const r=Vr(t.c);if(r.length>XC)throw new un(t);return st(e,t.i,new RegExp(r,t.m))}throw new uh(t)}function fT(e,t,r){const s=st(e,r.i,new Set);for(let l=0,c=r.a,u=c.length;l<u;l++)s.add(Ue(e,t,c[l]));return s}function dT(e,t,r){const s=st(e,r.i,new Map);for(let l=0,c=r.e.k,u=r.e.v,h=c.length;l<h;l++)s.set(Ue(e,t,c[l]),Ue(e,t,u[l]));return s}function hT(e,t){if(t.s.length>QC)throw new un(t);return st(e,t.i,lC(Vr(t.s)))}function pT(e,t,r){var s;const l=GC(r.c),c=Ue(e,t,r.f),u=(s=r.b)!==null&&s!==void 0?s:0;if(u<0||u>c.byteLength)throw new un(r);return st(e,r.i,new l(c,u,r.l))}function mT(e,t,r){var s;const l=Ue(e,t,r.f),c=(s=r.b)!==null&&s!==void 0?s:0;if(c<0||c>l.byteLength)throw new un(r);return st(e,r.i,new DataView(l,c,r.l))}function pw(e,t,r,s){if(r.p){const l=hw(e,t,r.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(l))}return s}function gT(e,t,r){return pw(e,t,r,st(e,r.i,new AggregateError([],Vr(r.m))))}function vT(e,t,r){const s=Md(r,pE,r.s);return pw(e,t,r,st(e,r.i,new s(Vr(r.m))))}function yT(e,t,r){const s=fh(),l=st(e,r.i,s.p),c=Ue(e,t,r.f);if(fw(c))throw new un(r.f);return r.s?s.s(c):s.f(c),l}function wT(e,t,r){return st(e,r.i,Object(Ue(e,t,r.f)))}function _T(e,t,r){const s=e.base.plugins;if(s){const l=Vr(r.c);for(let c=0,u=s.length;c<u;c++){const h=s[c];if(h.tag===l)return st(e,r.i,h.deserialize(r.s,new tT(e,t),{id:r.i}))}}throw new eC(r.c)}function bT(e,t){const r=st(e,t.i,st(e,t.s,fh()).p);return dw(e,t.s,22),r}function ST(e,t,r){const s=e.base.refs.get(r.i);if(s){$c(e,r,r.i,22);const l=Ue(e,t,r.a[1]);if(fw(l))throw new un(r.a[1]);r.t===23?s.s(l):s.f(l);return}throw new Lc("Promise")}function RT(e,t,r){return Ue(e,t,r.a[0]),dC(Ue(e,t,r.a[1]))}function ET(e,t,r){return Ue(e,t,r.a[0]),wC(Ue(e,t,r.a[1]))}function CT(e,t,r){const s=st(e,r.i,Ao());dw(e,r.i,31);const l=r.a,c=l.length;if(c)for(let u=0;u<c;u++)Ue(e,t,l[u]);return s}function TT(e,t,r){const s=e.base.refs.get(r.i);if(s){$c(e,r,r.i,31),s.next(Ue(e,t,r.f));return}throw new Lc("Stream")}function AT(e,t,r){const s=e.base.refs.get(r.i);if(s){$c(e,r,r.i,31),s.throw(Ue(e,t,r.f));return}throw new Lc("Stream")}function PT(e,t,r){const s=e.base.refs.get(r.i);if(s){$c(e,r,r.i,31),s.return(Ue(e,t,r.f));return}throw new Lc("Stream")}function OT(e,t,r){Ue(e,t,r.f)}function LT(e,t,r){Ue(e,t,r.a[1])}function IT(e,t,r){const s=st(e,r.i,sw([],r.s,r.l));for(let l=0,c=r.a.length;l<c;l++)s.v[l]=Ue(e,t,r.a[l]);return s}function Ue(e,t,r){if(t>e.base.depthLimit)throw new ow(e.base.depthLimit);switch(t+=1,r.t){case 2:return Md(r,dE,r.s);case 0:return Number(r.s);case 1:return Vr(String(r.s));case 3:if(String(r.s).length>JC)throw new un(r);return BigInt(r.s);case 4:return e.base.refs.get(r.i);case 18:return oT(e,r);case 9:return sT(e,t,r);case 10:case 11:return aT(e,t,r);case 5:return lT(e,r);case 6:return uT(e,r);case 7:return fT(e,t,r);case 8:return dT(e,t,r);case 19:return hT(e,r);case 16:case 15:return pT(e,t,r);case 20:return mT(e,t,r);case 14:return gT(e,t,r);case 13:return vT(e,t,r);case 12:return yT(e,t,r);case 17:return Md(r,fE,r.s);case 21:return wT(e,t,r);case 25:return _T(e,t,r);case 22:return bT(e,r);case 23:case 24:return ST(e,t,r);case 28:return RT(e,t,r);case 30:return ET(e,t,r);case 31:return CT(e,t,r);case 32:return TT(e,t,r);case 33:return AT(e,t,r);case 34:return PT(e,t,r);
12case 27:return OT(e,t,r);case 29:return LT(e,t,r);case 35:return IT(e,t,r);case 36:return cT(e,r);default:throw new uh(r)}}function kT(e,t){try{return Ue(e,0,t)}catch(r){throw new WE(r)}}function ry(e,t){return kT(eT({plugins:lw(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function $T(e,t={}){const r=PC(1,{plugins:lw(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await FC(r,e),f:r.base.features,m:Array.from(r.base.marked)}}function xT(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,r,s){return{v:r.parse(e.toSerializable(t))}},async async(t,r,s){return{v:await r.parse(e.toSerializable(t))}},stream(t,r,s){return{v:r.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,r,s){return e.fromSerializable(r.deserialize(t.v))}}}var DT=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const uc=globalThis.Buffer,mw=!!uc&&typeof uc.from=="function";function gw(e){if(e.length===0)return"";if(mw)return uc.from(e).toString("base64");const t=32768,r=[];for(let s=0;s<e.length;s+=t){const l=e.subarray(s,s+t);r.push(String.fromCharCode.apply(null,l))}return btoa(r.join(""))}function vw(e){if(e.length===0)return new Uint8Array(0);if(mw){const s=uc.from(e,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}const t=atob(e),r=new Uint8Array(t.length);for(let s=0;s<t.length;s++)r[s]=t.charCodeAt(s);return r}const Ui=Object.create(null),Bi=Object.create(null),jT=e=>new ReadableStream({start(t){e.on({next(r){try{t.enqueue(vw(r))}catch{}},throw(r){t.error(r)},return(){try{t.close()}catch{}}})}}),MT=new TextEncoder,NT=e=>new ReadableStream({start(t){e.on({next(r){try{typeof r=="string"?t.enqueue(MT.encode(r)):t.enqueue(vw(r.$b64))}catch{}},throw(r){t.error(r)},return(){try{t.close()}catch{}}})}}),zT="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",UT="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function oy(e){const t=Ao(),r=e.getReader();return(async()=>{try{for(;;){const{done:s,value:l}=await r.read();if(s){t.return(void 0);break}t.next(gw(l))}}catch(s){t.throw(s)}finally{r.releaseLock()}})(),t}function sy(e){const t=Ao(),r=e.getReader(),s=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:l,value:c}=await r.read();if(l){try{const u=s.decode();u.length>0&&t.next(u)}catch{}t.return(void 0);break}try{const u=s.decode(c,{stream:!0});u.length>0&&t.next(u)}catch{t.next({$b64:gw(c)})}}}catch(l){t.throw(l)}finally{r.releaseLock()}})(),t}const BT={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===Ui},parse:{sync(e,t,r){return{}},async async(e,t,r){return{}},stream(e,t,r){return{}}},serialize(e,t,r){return zT},deserialize(e,t,r){return Ui}},{tag:"tss/RawStreamFactoryText",test(e){return e===Bi},parse:{sync(e,t,r){return{}},async async(e,t,r){return{}},stream(e,t,r){return{}}},serialize(e,t,r){return UT},deserialize(e,t,r){return Bi}}],test(e){return e instanceof DT},parse:{sync(e,t,r){const s=e.hint==="text"?Bi:Ui;return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(Ao())}},async async(e,t,r){const s=e.hint==="text"?Bi:Ui,l=e.hint==="text"?sy(e.stream):oy(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(s),stream:await t.parse(l)}},stream(e,t,r){const s=e.hint==="text"?Bi:Ui,l=e.hint==="text"?sy(e.stream):oy(e.stream);return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(l)}}},serialize(e,t,r){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,r){const s=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?NT(s):jT(s)}};function qT(e){return{tag:"tss/RawStream",test:()=>!1,parse:{}
12,serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,r,s){return e(typeof r?.deserialize=="function"?r.deserialize(t.streamId):t.streamId)}}}const HT={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}},jr={},yw=e=>new ReadableStream({start(t){e.on({next(r){try{t.enqueue(r)}catch{}},throw(r){t.error(r)},return(){try{t.close()}catch{}}})}}),VT={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===jr},parse:{sync(){return jr},async async(){return await Promise.resolve(jr)},stream(){return jr}},serialize(){return yw.toString()},deserialize(){return jr}};async function ww(e,t){try{const r=await t.read();r.done?(e.return(r.value),t.releaseLock()):(e.next(r.value),await ww(e,t))}catch(r){e.throw(r)}}function FT(e){e.cancel().catch(()=>{}),e.releaseLock()}function iy(e){const t=Ao(),r=e.getReader(),s=FT.bind(null,r);return ww(t,r).catch(s),[t,s]}const GT={tag:"seroval/plugins/web/ReadableStream",extends:[VT],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(jr),stream:t.parse(Ao())}},async async(e,t){return{factory:await t.parse(jr),stream:await t.parse(iy(e)[0])}},stream(e,t){const[r,s]=iy(e);return t.addCleanup(s),{factory:t.parse(jr),stream:t.parse(r)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const r=t.deserialize(e.stream);return yw(r)}},KT=[HT,BT,GT];function YT(){return[...oh()?.serializationAdapters?.map(xT)??[],...KT]}var ay=new TextDecoder,QT=new Uint8Array(0),ly=16*1024*1024,cy=32*1024*1024,uy=1024,fy=1e5;function JT(e){const t=new Map,r=new Map,s=new Set;let l=!1,c=null,u=0,h;const p=new ReadableStream({start(g){h=g},cancel(){l=!0;try{c?.cancel()}catch{}t.forEach(g=>{try{g.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),r.clear(),s.clear()}});function m(g){const w=r.get(g);if(w)return w;if(s.has(g))return new ReadableStream({start(S){S.close()}});if(r.size>=uy)throw new Error(`Too many raw streams in framed response (max ${uy})`);const _=new ReadableStream({start(S){t.set(g,S)},cancel(){s.add(g),t.delete(g),r.delete(g)}});return r.set(g,_),_}function v(g){return m(g),t.get(g)}return(async()=>{const g=e.getReader();c=g;const w=[];let _=0;function S(){if(_<9)return null;const R=w[0];if(R.length>=9)return{type:R[0],streamId:(R[1]<<24|R[2]<<16|R[3]<<8|R[4])>>>0,length:(R[5]<<24|R[6]<<16|R[7]<<8|R[8])>>>0};const E=new Uint8Array(9);let A=0,$=9;for(let N=0;N<w.length&&$>0;N++){const V=w[N],K=Math.min(V.length,$);E.set(V.subarray(0,K),A),A+=K,$-=K}return{type:E[0],streamId:(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,length:(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0}}function C(R){if(R===0)return QT;const E=w[0];if(E&&E.length>=R){const V=E.subarray(0,R);return E.length===R?w.shift():w[0]=E.subarray(R),_-=R,V}const A=new Uint8Array(R);let $=0,N=R;for(;N>0&&w.length>0;){const V=w[0];if(!V)break;const K=Math.min(V.length,N);A.set(V.subarray(0,K),$),$+=K,N-=K,K===V.length?w.shift():w[0]=V.subarray(K)}return _-=R,A}try{for(;;){const{done:R,value:E}=await g.read();if(l||R)break;if(E){if(_+E.length>cy)throw new Error(`Framed response buffer exceeded ${cy} bytes`);for(w.push(E),_+=E.length;;){const A=S();if(!A)break;const{type:$,streamId:N,length:V}=A;if($!==Xn.JSON&&$!==Xn.CHUNK&&$!==Xn.END&&$!==Xn.ERROR)throw new Error(`Unknown frame type: ${$}`);if($===Xn.JSON){if(N!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(N===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(V>ly)throw new Error(`Frame payload too large: ${V} bytes (max ${ly})`);const K=9+V;if(_<K)break;if(++u>fy)throw new Error(`Too many frames in framed response (max ${fy})`);C(9);const z=C(V);switch($){case Xn.JSON:try{h.enqueue(ay.decode(z))}catch{}break;case Xn.CHUNK:{const Y=v(N);Y&&Y.enqueue(z);break}case Xn.END:{const Y=v(N);if(s.add(N),Y){try{Y.close()}catch{}t.delete(N)}break}case Xn.ERROR:{const Y=v(N);if(s.add(N),Y){const X=ay.decode(z);Y.error(new Error(X)),t.delete(N)}break}}}}}if(_!==0)throw new Error("Incomplete frame at end of framed response");try{h.close()}catch{}t.forEach(R=>{try{R.close()}catch{}}),t.clear()}catch(R){try{h.error(R)}catch{}t.forEach(E=>{try{E.error(R)}catch{}}),t.clear()}finally{try{g.releaseLock()}catch{}c=null}})(),{getOrCreateStream:m,jsonChunks:p}}var oa=null;async function Nd(e){e.length>0&&await Promise.allSettled(e)}var XT=Object.prototype.hasOwnProperty;function _w(e){for(const t in e)if(XT.call(e,t))return!0;return!1}async function ZT(e,t,r){oa||(oa=YT());const s=t[0],l=s.fetch??r,c=s.data instanceof FormData?"formData":"payload",u=s.headers?new Headers(s.headers):new Headers;if(u.set("x-tsr-serverFn","true"),c==="payload"&&u.set("accept",`${ZS}, application/x-ndjson, application/json`),s.method==="GET"){if(c==="formData")throw new Error("FormData is not supported with GET requests");const p=await bw(s);if(p!==void 0){const m=L0({payload:p});e.includes("?")?e+=`&${m}`:e+=`?${m}`}}let h;
12if(s.method==="POST"){const p=await WT(s);p?.contentType&&u.set("content-type",p.contentType),h=p?.body}return await eA(async()=>l(e,{method:s.method,headers:u,signal:s.signal,body:h}))}async function bw(e){let t=!1;const r={};if(e.data!==void 0&&(t=!0,r.data=e.data),e.context&&_w(e.context)&&(t=!0,r.context=e.context),t)return Sw(r)}async function Sw(e){return JSON.stringify(await Promise.resolve($T(e,{plugins:oa})))}async function WT(e){if(e.data instanceof FormData){let r;return e.context&&_w(e.context)&&(r=await Sw(e.context)),r!==void 0&&e.data.set(XS,r),{body:e.data}}const t=await bw(e);if(t)return{body:t,contentType:"application/json"}}async function eA(e){let t;try{t=await e()}catch(s){if(s instanceof Response)t=s;else throw console.log(s),s}if(t.headers.get("x-tss-raw")==="true")return t;const r=t.headers.get("content-type");if(r||Nt(),t.headers.get("x-tss-serialized")){let s;if(r.includes("application/x-tss-framed")){if(tR(r),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:l,jsonChunks:c}=JT(t.body),u=[qT(l),...oa||[]],h=new Map;s=await tA({jsonStream:c,onMessage:p=>ry(p,{refs:h,plugins:u}),onError(p,m){console.error(p,m)}})}else if(r.includes("application/json")){const l=await t.json(),c=[];s=ry(l,{plugins:oa}),await Nd(c)}if(s||Nt(),s instanceof Error)throw s;return s}if(r.includes("application/json")){const s=await t.json(),l=k0(s);if(l)throw l;if(mt(s))throw s;return s}if(!t.ok)throw new Error(await t.text());return t}async function tA({jsonStream:e,onMessage:t,onError:r}){const s=e.getReader(),{value:l,done:c}=await s.read();if(c||!l)throw new Error("Stream ended before first object");const u=JSON.parse(l);let h=!1;const p=(async()=>{try{for(;;){const{value:g,done:w}=await s.read();if(w)break;if(g)try{const _=[];try{t(JSON.parse(g))}finally{}await Nd(_)}catch(_){r?.(`Invalid JSON: ${g}`,_)}}}catch(g){h||r?.("Stream processing error:",g)}})();let m;const v=[];try{m=t(u)}catch(g){throw h=!0,s.cancel().catch(()=>{}),g}return await Nd(v),Promise.resolve(m).catch(()=>{h=!0,s.cancel().catch(()=>{})}),p.finally(()=>{try{s.releaseLock()}catch{}}),m}function ph(e){const t="/_serverFn/"+e;return Object.assign((...l)=>{const c=oh()?.serverFns?.fetch;return ZT(t,l,c??fetch)},{url:t,serverFnMeta:{id:e},[$d]:!0})}var nA={key:"$TSS/serverfn",test:e=>typeof e!="function"||!($d in e)?!1:!!e[$d],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>ph(e)};function Rw(e){if(Array.isArray(e))return e.flatMap(v=>Rw(v));if(typeof e!="string")return[];const t=[];let r=0,s,l,c,u,h;const p=()=>{for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length},m=()=>(l=e.charAt(r),l!=="="&&l!==";"&&l!==",");for(;r<e.length;){for(s=r,h=!1;p();)if(l=e.charAt(r),l===","){for(c=r,r+=1,p(),u=r;r<e.length&&m();)r+=1;r<e.length&&e.charAt(r)==="="?(h=!0,r=u,t.push(e.slice(s,c)),s=r):r=c+1}else r+=1;(!h||r>=e.length)&&t.push(e.slice(s))}return t}function rA(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function oA(...e){return e.reduce((t,r)=>{const s=rA(r);if(!s)return t;for(const[l,c]of s.entries())l==="set-cookie"?Rw(c).forEach(u=>t.append("set-cookie",u)):t.set(l,c);return t},new Headers)}function dy(e){return e.replaceAll("\0","/").replaceAll("�","/")}function sA(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function iA(e){window.$_TSR||Nt();const t=e.options.serializationAdapters;if(t?.length){const R=new Map;t.forEach(E=>{R.set(E.key,E.fromSerializable)}),window.$_TSR.t=R,window.$_TSR.buffer.forEach(E=>E())}window.$_TSR.initialized=!0,window.$_TSR.router||Nt();const r=window.$_TSR.router;r.matches.forEach(R=>{R.i=dy(R.i)}),r.lastMatchId&&(r.lastMatchId=dy(r.lastMatchId));const{manifest:s,dehydratedData:l,lastMatchId:c}=r;e.ssr={manifest:s};const u=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:u},await e.options.hydrate?.(l);const h=e.matchRoutes(e.stores.location.get()),p=Promise.all(h.map(R=>e.loadRouteChunk(e.looseRoutesById[R.routeId])));function m(R){const E=e.looseRoutesById[R.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(E){const A=To();R._nonReactive.minPendingPromise=A,R._forcePending=!0,setTimeout(()=>{A.resolve(),e.updateMatch(R.id,$=>($._nonReactive.minPendingPromise=void 0,{...$,_forcePending:void 0}))},E)}}function v(R){const E=e.looseRoutesById[R.routeId];E&&(E.options.ssr=R.ssr)}let g;h.forEach(R=>{const E=r.matches.find(A=>A.i===R.id);if(!E){R._nonReactive.dehydrated=!1,R.ssr=!1,v(R);return}sA(R,E),v(R),R._nonReactive.dehydrated=R.ssr!==!1,(R.ssr==="data-only"||R.ssr===!1)&&g===void 0&&(g=R.index,m(R))}),e.stores.setMatches(h);const w=e.stores.matches.get(),_=e.stores.location.get();await Promise.all(w.map(async R=>{try{const E=e.looseRoutesById[R.routeId],A=w[R.index-1]?.context??e.o
12ptions.context;if(E.options.context){const K={deps:R.loaderDeps,params:R.params,context:A??{},location:_,navigate:z=>e.navigate({...z,_fromLocation:_}),buildLocation:e.buildLocation,cause:R.cause,abortController:R.abortController,preload:!1,matches:h,routeId:E.id};R.__routeContext=E.options.context(K)??void 0}R.context={...A,...R.__routeContext,...R.__beforeLoadContext};const $={ssr:e.options.ssr,matches:w,match:R,params:R.params,loaderData:R.loaderData},N=await E.options.head?.($),V=await E.options.scripts?.($);R.meta=N?.meta,R.links=N?.links,R.headScripts=N?.scripts,R.styles=N?.styles,R.scripts=V}catch(E){if(mt(E))R.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${R.routeId}`,E);else throw R.error=E,console.error(`Error during hydration for route ${R.routeId}:`,E),E}}));const S=h[h.length-1].id!==c;if(!h.some(R=>R.ssr===!1)&&!S)return h.forEach(R=>{R._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),p;const C=Promise.resolve().then(()=>e.load()).catch(R=>{console.error("Error during router hydration:",R)});if(S){const R=h[1];R||Nt(),m(R),R._displayPending=!0,R._nonReactive.displayPendingPromise=C,C.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(R.id,E=>({...E,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}var fc=oe.use,Fi=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;function vd(e){const t=oe.useRef({value:e,prev:null}),r=t.current.value;return e!==r&&(t.current={value:e,prev:r}),t.current.prev}function aA(e,t,r={},s={}){oe.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const l=new IntersectionObserver(([c])=>{t(c)},r);return l.observe(e.current),()=>{l.disconnect()}},[t,r,s.disabled,e])}function lA(e){const t=oe.useRef(null);return oe.useImperativeHandle(e,()=>t.current,[]),t}function cA({promise:e}){if(fc)return fc(e);const t=oE(e);if(t[An].status==="pending")throw t;if(t[An].status==="error")throw t[An].error;return t[An].data}function uA(e){const t=Q.jsx(fA,{...e});return e.fallback?Q.jsx(oe.Suspense,{fallback:e.fallback,children:t}):t}function fA(e){const t=cA(e);return e.children(t)}function mh(e){const t=e.errorComponent??gh;return Q.jsx(dA,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:r,reset:s})=>r?oe.createElement(t,{error:r,reset:s}):e.children})}var dA=class extends oe.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const r=e.getResetKey();return t.error&&t.resetKey!==r?{resetKey:r,error:null}:{resetKey:r}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function gh({error:e}){const[t,r]=oe.useState(!1);return Q.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[Q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[Q.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),Q.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(s=>!s),children:t?"Hide Error":"Show Error"})]}),Q.jsx("div",{style:{height:".25rem"}}),t?Q.jsx("div",{children:Q.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?Q.jsx("code",{children:e.message}):null})}):null]})}function hA({children:e,fallback:t=null}){return vh()?Q.jsx(Wi.Fragment,{children:e}):Q.jsx(Wi.Fragment,{children:t})}function vh(){return Wi.useSyncExternalStore(pA,()=>!0,()=>!1)}function pA(){return()=>{}}var Ew=oe.createContext(null);function gt(e){return oe.useContext(Ew)}var xc=oe.createContext(void 0),mA=oe.createContext(void 0),Fe=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Fe||{});function gA({update:e,notify:t,unwatched:r}){return{link:s,unlink:l,propagate:c,checkDirty:u,shallowPropagate:h};function s(m,v,g){const w=v.depsTail;if(w!==void 0&&w.dep===m)return;const _=w!==void 0?w.nextDep:v.deps;if(_!==void 0&&_.dep===m){_.version=g,v.depsTail=_;return}const S=m.subsTail;if(S!==void 0&&S.version===g&&S.sub===v)return;const C=v.depsTail=m.subsTail={version:g,dep:m,sub:v,prevDep:w,nextDep:_,prevSub:S,nextSub:void 0};_!==void 0&&(_.prevDep=C),w!==void 0?w.nextDep=C:v.deps=C,S!==void 0?S.nextSub=C:m.subs=C}function l(m,v=m.sub){const g=m.dep,w=m.prevDep,_=m.nextDep,S=m.nextSub,C=m.prevSub;return _!==void 0?_.prevDep=w:v.depsTail=w,w!==void 0?w.nextDep=_:v.deps=_,S!==void 0?S.prevSub=C:g.subsTail=C,C!==void 0?C.nextSub=S:(g.subs=S)===void 0&&r(g),_}function c(m){let v=m.nextSub,g;e:do{const w=m.sub;let _=w.flags;if(_&60?_&12?_&4?!(_&48)&&p(m,w)?(w.flags=_|40,_&=1):_=0:w.flags=_&-9|32:_=0:w.flags=_|32,_&2&&t(w),_&1){const S=w.subs;if(S!==void 0){const C=(m=S).nextSub;C!==void 0&&(g={value:v,prev:g},v=C);continue}}if((m=v)!==void 0){v=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){v=m.nextSub;continue e}break}while(!0)}function u(m,v){let g,w=0,_=!1;e:do{const S=m.dep,C=S.flags;if(v.flags&16)_=!0;else if((C&17)===17){if(e(S)){const R=S.subs;R.nextSub!==void 0&&h(R),_=!0}}else if((C&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=S.deps,v=S,++w;continue}if(!_){const R=m.nextDep;if(R!==void 0){m=R;continue}}for(;w--;){const R=v.subs,E=R.nextSub!==void 0;if(E?(m=g.value,g=g.prev):m=R,_){if(e(v)){E&&h(R),v=m.sub;continue}_=!1}else v.flags&=-33;v=m.sub;const A=m.nextDep;if(A!==void 0){m=A;continue e}}return _}while(!0)}function h(m){do{const v=m.sub,g=v.flags;(g&48)===32&&(v.flags=g|16,(g&6)===2&&t(v))}while((m=m.nextSub)!==void 0)}function p(m,v){let g=v.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function vA(e,t,r){const s=typeof e=="object",l=s?e:void 0;return{next:(s?e.next:e)?.bind(l),error:(s?e.error:t)?.bind(l),complete:(s?e.complete:r)?.b
12ind(l)}}const zd=[];let rc=0;const{link:hy,unlink:yA,propagate:wA,checkDirty:Cw,shallowPropagate:py}=gA({update(e){return e._update()},notify(e){zd[Ud++]=e,e.flags&=~Fe.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Fe.Mutable|Fe.Dirty,dc(e))}});let Bl=0,Ud=0,Cn,Bd=0;function Tw(e){try{++Bd,e()}finally{--Bd||Aw()}}function dc(e){const t=e.depsTail;let r=t!==void 0?t.nextDep:e.deps;for(;r!==void 0;)r=yA(r,e)}function Aw(){if(!(Bd>0)){for(;Bl<Ud;){const e=zd[Bl];zd[Bl++]=void 0,e.notify()}Bl=0,Ud=0}}function my(e,t){const r=typeof e=="function",s=e,l={_snapshot:r?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?Fe.None:Fe.Mutable,get(){return Cn!==void 0&&hy(l,Cn,rc),l._snapshot},subscribe(c){const u=vA(c),h={current:!1},p=_A(()=>{l.get(),h.current?u.next?.(l._snapshot):h.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(c){const u=Cn,h=t?.compare??Object.is;if(r)Cn=l,++rc,l.depsTail=void 0;else if(c===void 0)return!1;r&&(l.flags=Fe.Mutable|Fe.RecursedCheck);try{const p=l._snapshot,m=typeof c=="function"?c(p):c===void 0&&r?s(p):c;return p===void 0||!h(p,m)?(l._snapshot=m,!0):!1}finally{Cn=u,r&&(l.flags&=~Fe.RecursedCheck),dc(l)}}};return r?(l.flags=Fe.Mutable|Fe.Dirty,l.get=function(){const c=l.flags;if(c&Fe.Dirty||c&Fe.Pending&&Cw(l.deps,l)){if(l._update()){const u=l.subs;u!==void 0&&py(u)}}else c&Fe.Pending&&(l.flags=c&~Fe.Pending);return Cn!==void 0&&hy(l,Cn,rc),l._snapshot}):l.set=function(c){if(l._update(c)){const u=l.subs;u!==void 0&&(wA(u),py(u),Aw())}},l}function _A(e){const t=()=>{const s=Cn;Cn=r,++rc,r.depsTail=void 0,r.flags=Fe.Watching|Fe.RecursedCheck;try{return e()}finally{Cn=s,r.flags&=~Fe.RecursedCheck,dc(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Fe.Watching|Fe.RecursedCheck,notify(){const s=this.flags;s&Fe.Dirty||s&Fe.Pending&&Cw(this.deps,this)?t():this.flags=Fe.Watching},stop(){this.flags=Fe.None,this.depsTail=void 0,dc(this)}};return t(),r}var yd={exports:{}},wd={},_d={exports:{}},bd={};var gy;function bA(){if(gy)return bd;gy=1;var e=ma();function t(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var r=typeof Object.is=="function"?Object.is:t,s=e.useState,l=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function h(g,w){var _=w(),S=s({inst:{value:_,getSnapshot:w}}),C=S[0].inst,R=S[1];return c(function(){C.value=_,C.getSnapshot=w,p(C)&&R({inst:C})},[g,_,w]),l(function(){return p(C)&&R({inst:C}),g(function(){p(C)&&R({inst:C})})},[g]),u(_),_}function p(g){var w=g.getSnapshot;g=g.value;try{var _=w();return!r(g,_)}catch{return!0}}function m(g,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:h;return bd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,bd}var vy;function SA(){return vy||(vy=1,_d.exports=bA()),_d.exports}var yy;function RA(){if(yy)return wd;yy=1;var e=ma(),t=SA();function r(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var s=typeof Object.is=="function"?Object.is:r,l=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,h=e.useMemo,p=e.useDebugValue;return wd.useSyncExternalStoreWithSelector=function(m,v,g,w,_){var S=c(null);if(S.current===null){var C={hasValue:!1,value:null};S.current=C}else C=S.current;S=h(function(){function E(K){if(!A){if(A=!0,$=K,K=w(K),_!==void 0&&C.hasValue){var z=C.value;if(_(z,K))return N=z}return N=K}if(z=N,s($,K))return z;var Y=w(K);return _!==void 0&&_(z,Y)?($=K,z):($=K,N=Y)}var A=!1,$,N,V=g===void 0?null:g;return[function(){return E(v())},V===null?void 0:function(){return E(V())}]},[v,g,w,_]);var R=l(m,S[0],S[1]);return u(function(){C.hasValue=!0,C.value=R},[R]),p(R),R},wd}var wy;function EA(){return wy||(wy=1,yd.exports=RA()),yd.exports}var CA=EA();function TA(e,t){return e===t}function Ge(e,t,r=TA){const s=oe.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:h}=e.subscribe(u);return h},[e]),l=oe.useCallback(()=>e?.get(),[e]);return CA.useSyncExternalStoreWithSelector(s,l,l,t,r)}var Sd={get(){},subscribe(){return{unsubscribe(){}}}};function Pw(e,t){const r=oe.useRef();return s=>{const l=e?.select?e.select(s):s;return e?.structuralSharing??t.options.defaultStructuralSharing?r.current=wo(r.current,l):l}}
12function Po(e){const t=gt(),r=oe.useContext(e.from?mA:xc),s=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(r),l=Pw(e,t),c=Ge(s??Sd,u=>u?l(u):Sd);if(c!==Sd)return c;(e.shouldThrow??!0)&&Nt()}function Ow(e){return Po({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Lw(e){const{select:t,...r}=e;return Po({...r,select:s=>t?t(s.loaderDeps):s.loaderDeps})}function Iw(e){return Po({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const r=e.strict===!1?t.params:t._strictParams;return e.select?e.select(r):r}})}function kw(e){return Po({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function $w(e){const t=gt();return oe.useCallback(r=>t.navigate({...r,from:r.from??e?.from}),[e?.from,t])}function xw(e){return Po({...e,select:t=>e.select?e.select(t.context):t.context})}var AA=w0();function PA(e,t){const r=gt(),s=lA(t),{activeProps:l,inactiveProps:c,activeOptions:u,to:h,preload:p,preloadDelay:m,preloadIntentProximity:v,hashScrollIntoView:g,replace:w,startTransition:_,resetScroll:S,viewTransition:C,children:R,target:E,disabled:A,style:$,className:N,onClick:V,onBlur:K,onFocus:z,onMouseEnter:Y,onMouseLeave:X,onTouchStart:ce,ignoreBlocker:ie,params:ue,search:ft,hash:He,state:Je,mask:B,reloadDocument:J,unsafeRelative:le,from:Pe,_fromLocation:Le,...O}=e,F=vh(),Z=oe.useMemo(()=>e,[r,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ee=Ge(r.stores.location,Ne=>Ne,(Ne,vt)=>Ne.href===vt.href),se=oe.useMemo(()=>{const Ne={_fromLocation:ee,...Z};return r.buildLocation(Ne)},[r,ee,Z]),ve=se.maskedLocation?se.maskedLocation.publicHref:se.publicHref,Ee=se.maskedLocation?se.maskedLocation.external:se.external,Xe=oe.useMemo(()=>xA(ve,Ee,r.history,A),[A,Ee,ve,r.history]),je=oe.useMemo(()=>{if(Xe?.external)return ic(Xe.href,r.protocolAllowlist)?void 0:Xe.href;if(!DA(h)&&!(typeof h!="string"||h.indexOf(":")===-1))try{return new URL(h),ic(h,r.protocolAllowlist)?void 0:h}catch{}},[h,Xe,r.protocolAllowlist]),Ln=oe.useMemo(()=>{if(je)return!1;if(u?.exact){if(!RR(ee.pathname,se.pathname,r.basepath))return!1}else{const Ne=ac(ee.pathname,r.basepath),vt=ac(se.pathname,r.basepath);if(!(Ne.startsWith(vt)&&(Ne.length===vt.length||Ne[vt.length]==="/")))return!1}return(u?.includeSearch??!0)&&!At(ee.search,se.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?F&&ee.hash===se.hash:!0},[u?.exact,u?.explicitUndefined,u?.includeHash,u?.includeSearch,ee,je,F,se.hash,se.pathname,se.search,r.basepath]),In=Ln?yo(l,{})??OA:Rd,ar=Ln?Rd:yo(c,{})??Rd,Bs=[N,In.className,ar.className].filter(Boolean).join(" "),wn=($||In.style||ar.style)&&{...$,...In.style,...ar.style},[qs,Lo]=oe.useState(!1),ya=oe.useRef(!1),kn=e.reloadDocument||je?!1:p??r.options.defaultPreload,Qr=m??r.options.defaultPreloadDelay??0,fn=oe.useCallback(()=>{r.preloadRoute({...Z,_builtLocation:se}).catch(Ne=>{console.warn(Ne),console.warn(sE)})},[r,Z,se]);aA(s,oe.useCallback(Ne=>{Ne?.isIntersecting&&fn()},[fn]),$A,{disabled:!!A||kn!=="viewport"}),oe.useEffect(()=>{ya.current||!A&&kn==="render"&&(fn(),ya.current=!0)},[A,fn,kn]);const Hs=Ne=>{const vt=Ne.currentTarget.getAttribute("target"),_n=E!==void 0?E:vt;if(!A&&!jA(Ne)&&!Ne.defaultPrevented&&(!_n||_n==="_self")&&Ne.button===0){Ne.preventDefault(),AA.flushSync(()=>{Lo(!0)});const Io=r.subscribe("onResolved",()=>{Io(),Lo(!1)});r.navigate({...Z,replace:w,resetScroll:S,hashScrollIntoView:g,startTransition:_,viewTransition:C,ignoreBlocker:ie})}};if(je)return{...O,ref:s,href:je,...R&&{children:R},...E&&{target:E},...A&&{disabled:A},...$&&{style:$},...N&&{className:N},...V&&{onClick:V},...K&&{onBlur:K},...z&&{onFocus:z},...Y&&{onMouseEnter:Y},...X&&{onMouseLeave:X},...ce&&{onTouchStart:ce}};const wa=Ne=>{if(A||kn!=="intent")return;if(!Qr){fn();return}const vt=Ne.currentTarget;if(qi.has(vt))return;const _n=setTimeout(()=>{qi.delete(vt),fn()},Qr);qi.set(vt,_n)},Vc=Ne=>{A||kn!=="intent"||fn()},Rt=Ne=>{if(A||!kn||!Qr)return;const vt=Ne.currentTarget,_n=qi.get(vt);_n&&(clearTimeout(_n),qi.delete(vt))};return{...O,...In,...ar,href:Xe?.href,ref:s,onClick:gs([V,Hs]),onBlur:gs([K,Rt]),onFocus:gs([z,wa]),onMouseEnter:gs([Y,wa]),onMouseLeave:gs([X,Rt]),onTouchStart:gs([ce,Vc]),disabled:!!A,target:E,...wn&&{style:wn},...Bs&&{className:Bs},...A&&LA,...Ln&&IA,...F&&qs&&kA}}var Rd={},OA={className:"active"},LA={role:"link","aria-disabled":!0},IA={"data-status":"active","aria-current":"page"},kA={"data-transitioning":"transitioning"},qi=new WeakMap,$A={rootMargin:"100px"},gs=e=>t=>{for(const r of e)if(r){if(t.defaultPrevented)return;r(t)}};function xA(e,t,r,s){if(!s)return t?{href:e,external:!0}:{href:r.createHref(e)||"/",external:!1}}function DA(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Dc=oe.forwardRef((e,t)=>
12{const{_asChild:r,...s}=e,{type:l,...c}=PA(s,t),u=typeof s.children=="function"?s.children({isActive:c["data-status"]==="active"}):s.children;if(!r){const{disabled:h,...p}=c;return oe.createElement("a",p,u)}return oe.createElement(r,c,u)});function jA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var MA=class extends z0{constructor(t){super(t),this.useMatch=r=>Po({select:r?.select,from:this.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=r=>xw({...r,from:this.id}),this.useSearch=r=>kw({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useParams=r=>Iw({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useLoaderDeps=r=>Lw({...r,from:this.id}),this.useLoaderData=r=>Ow({...r,from:this.id}),this.useNavigate=()=>$w({from:this.fullPath}),this.Link=Wi.forwardRef((r,s)=>Q.jsx(Dc,{ref:s,from:this.fullPath,...r}))}};function NA(e){return new MA(e)}function zA(){return e=>BA(e)}var UA=class extends uE{constructor(e){super(e),this.useMatch=t=>Po({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xw({...t,from:this.id}),this.useSearch=t=>kw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Iw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Lw({...t,from:this.id}),this.useLoaderData=t=>Ow({...t,from:this.id}),this.useNavigate=()=>$w({from:this.fullPath}),this.Link=Wi.forwardRef((t,r)=>Q.jsx(Dc,{ref:r,from:this.fullPath,...t}))}};function BA(e){return new UA(e)}function k(e){return new qA(e,{silent:!0}).createRoute}var qA=class{constructor(e,t){this.path=e,this.createRoute=r=>{const s=NA(r);return s.isRoot=!1,s},this.silent=t?.silent}};function L(e,t){let r,s,l,c;const u=()=>(r||(r=e().then(p=>{r=void 0,s=p[t??"default"]}).catch(p=>{if(l=p,oR(l)&&l instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${l.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),c=!0)}})),r),h=function(m){if(c)throw window.location.reload(),new Promise(()=>{});if(l)throw l;if(!s)if(fc)fc(u());else throw u();return oe.createElement(s,m)};return h.preload=u,h}function HA(e){const t=gt(),r=`not-found-${Ge(t.stores.location,s=>s.pathname)}-${Ge(t.stores.status,s=>s)}`;return Q.jsx(mh,{getResetKey:()=>r,onCatch:(s,l)=>{if(mt(s))e.onCatch?.(s,l);else throw s},errorComponent:({error:s})=>{if(mt(s))return e.fallback?.(s);throw s},children:e.children})}function VA(){return Q.jsx("p",{children:"Not Found"})}function Ts(e){return Q.jsx(Q.Fragment,{children:e.children})}function Dw(e,t,r){return t.options.notFoundComponent?Q.jsx(t.options.notFoundComponent,{...r}):e.options.defaultNotFoundComponent?Q.jsx(e.options.defaultNotFoundComponent,{...r}):Q.jsx(VA,{})}function FA(e){return null}function GA(){return FA(gt()),null}var KA=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,YA=(e,t)=>e[0]===t[0]&&e[1]===t[1],jw=oe.memo(function({matchId:t}){const r=gt(),s=r.stores.matchStores.get(t);s||Nt();const l=Ge(r.stores.loadedAt,u=>u),c=Ge(s,u=>u,KA);return Q.jsx(QA,{router:r,matchId:t,resetKey:l,matchState:oe.useMemo(()=>{const u=c.routeId,h=r.routesById[u].parentRoute?.id;return{routeId:u,ssr:c.ssr,_displayPending:c._displayPending,parentRouteId:h}},[c._displayPending,c.routeId,c.ssr,r.routesById])})});function QA({router:e,matchId:t,resetKey:r,matchState:s}){const l=e.routesById[s.routeId],c=l.options.pendingComponent??e.options.defaultPendingComponent,u=c?Q.jsx(c,{}):null,h=l.options.errorComponent??e.options.defaultErrorComponent,p=l.options.onCatch??e.options.defaultOnCatch,m=l.isRoot?l.options.notFoundComponent??e.options.notFoundRoute?.options.component:l.options.notFoundComponent,v=s.ssr===!1||s.ssr==="data-only",g=(!l.isRoot||l.options.wrapInSuspense||v)&&(l.options.wrapInSuspense??c??(l.options.errorComponent?.preload||v))?oe.Suspense:Ts,w=h?mh:Ts,_=m?HA:Ts;return Q.jsxs(l.isRoot?l.options.shellComponent??Ts:Ts,{children:[Q.jsx(xc.Provider,{value:t,children:Q.jsx(g,{fallback:u,children:Q.jsx(w,{getResetKey:()=>r,errorComponent:h||gh,onCatch:(S,C)=>{if(mt(S))throw S.routeId??=s.routeId,S;p?.(S,C)},children:Q.jsx(_,{fallback:S=>{if(S.routeId??=s.routeId,!m||S.routeId&&S.routeId!==s.routeId||!S.routeId&&
12!l.isRoot)throw S;return oe.createElement(m,S)},children:v||s._displayPending?Q.jsx(hA,{fallback:u,children:Q.jsx(_y,{matchId:t})}):Q.jsx(_y,{matchId:t})})})})}),s.parentRouteId===Eo?Q.jsxs(Q.Fragment,{children:[Q.jsx(JA,{}),e.options.scrollRestoration&&_0?Q.jsx(GA,{}):null]}):null]})}function JA(){const e=gt(),t=oe.useRef();return Fi(()=>{const r=e.stores.resolvedLocation.get(),s=t.current;r&&(!s||s.href!==r.href)&&e.emit({type:"onRendered",...ks(e.stores.location.get(),s??r)}),t.current=r},[Ge(e.stores.resolvedLocation,r=>r?.state.__TSR_key),e]),null}var _y=oe.memo(function({matchId:t}){const r=gt(),s=(v,g)=>r.getMatch(v.id)?._nonReactive[g]??v._nonReactive[g],l=r.stores.matchStores.get(t);l||Nt();const c=Ge(l,v=>v),u=c.routeId,h=r.routesById[u],p=oe.useMemo(()=>{const v=(r.routesById[u].options.remountDeps??r.options.defaultRemountDeps)?.({routeId:u,loaderDeps:c.loaderDeps,params:c._strictParams,search:c._strictSearch});return v?JSON.stringify(v):void 0},[u,c.loaderDeps,c._strictParams,c._strictSearch,r.options.defaultRemountDeps,r.routesById]),m=oe.useMemo(()=>{const v=h.options.component??r.options.defaultComponent;return v?Q.jsx(v,{},p):Q.jsx(Mw,{})},[p,h.options.component,r.options.defaultComponent]);if(c._displayPending)throw s(c,"displayPendingPromise");if(c._forcePending)throw s(c,"minPendingPromise");if(c.status==="pending"){const v=h.options.pendingMinMs??r.options.defaultPendingMinMs;if(v){const g=r.getMatch(c.id);if(g&&!g._nonReactive.minPendingPromise){const w=To();g._nonReactive.minPendingPromise=w,setTimeout(()=>{w.resolve(),g._nonReactive.minPendingPromise=void 0},v)}}throw s(c,"loadPromise")}if(c.status==="notFound")return mt(c.error)||Nt(),Dw(r,h,c.error);if(c.status==="redirected")throw Ot(c.error)||Nt(),s(c,"loadPromise");if(c.status==="error")throw c.error;return m}),Mw=oe.memo(function(){const t=gt(),r=oe.useContext(xc);let s,l=!1,c;{const m=r?t.stores.matchStores.get(r):void 0;[s,l]=Ge(m,v=>[v?.routeId,v?.globalNotFound??!1],YA),c=Ge(t.stores.matchesId,v=>v[v.findIndex(g=>g===r)+1])}const u=s?t.routesById[s]:void 0,h=t.options.defaultPendingComponent?Q.jsx(t.options.defaultPendingComponent,{}):null;if(l)return u||Nt(),Dw(t,u,void 0);if(!c)return null;const p=Q.jsx(jw,{matchId:c});return s===Eo?Q.jsx(oe.Suspense,{fallback:h,children:p}):p});function XA(){const e=gt(),t=oe.useRef({router:e,mounted:!1}),[r,s]=oe.useState(!1),l=Ge(e.stores.isLoading,g=>g),c=Ge(e.stores.hasPending,g=>g),u=vd(l),h=l||r||c,p=vd(h),m=l||c,v=vd(m);return e.startTransition=g=>{s(!0),oe.startTransition(()=>{g(),s(!1)})},oe.useEffect(()=>{const g=e.history.subscribe(e.load),w=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return nr(e.latestLocation.publicHref)!==nr(w.publicHref)&&e.commitLocation({...w,replace:!0}),()=>{g()}},[e,e.history]),Fi(()=>
12{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(w){console.error(w)}})()},[e]),Fi(()=>{u&&!l&&e.emit({type:"onLoad",...ks(e.stores.location.get(),e.stores.resolvedLocation.get())})},[u,e,l]),Fi(()=>{v&&!m&&e.emit({type:"onBeforeRouteMount",...ks(e.stores.location.get(),e.stores.resolvedLocation.get())})},[m,v,e]),Fi(()=>{if(p&&!h){const g=ks(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...g}),Tw(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[h,p,e]),null}function ZA(){const e=gt(),t=e.routesById[Eo].options.pendingComponent??e.options.defaultPendingComponent,r=t?Q.jsx(t,{}):null,s=Q.jsxs(typeof document<"u"&&e.ssr?Ts:oe.Suspense,{fallback:r,children:[Q.jsx(XA,{}),Q.jsx(WA,{})]});return e.options.InnerWrap?Q.jsx(e.options.InnerWrap,{children:s}):s}function WA(){const e=gt(),t=Ge(e.stores.firstId,l=>l),r=Ge(e.stores.loadedAt,l=>l),s=t?Q.jsx(jw,{matchId:t}):null;return Q.jsx(xc.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?s:Q.jsx(mh,{getResetKey:()=>r,errorComponent:gh,onCatch:void 0,children:s})})}var eP=e=>({createMutableStore:my,createReadonlyStore:my,batch:Tw}),tP=e=>new nP(e),nP=class extends XR{constructor(e){super(e,eP)}};function rP({router:e,children:t,...r}){S0(r)&&e.update({...e.options,...r,context:{...e.options.context,...r.context}});const s=Q.jsx(Ew.Provider,{value:e,children:t});return e.options.Wrap?Q.jsx(e.options.Wrap,{children:s}):s}function oP({router:e,...t}){return Q.jsx(rP,{router:e,...t,children:Q.jsx(ZA,{})})}function yh(e){const t=gt({warn:e?.router===void 0}),r=e?.router||t;return Ge(r.stores.__store,Pw(e,r))}function by(e,t){if(t)for(const[r,s]of Object.entries(t))r!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&e.setAttribute(r,typeof s=="boolean"?"":String(s))}function Nw(e){const{attrs:t,children:r,nonce:s,preventScriptHoist:l}=e;switch(e.tag){case"title":return Q.jsx("title",{...t,suppressHydrationWarning:!0,children:r});case"meta":return Q.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return Q.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return e.inlineCss,Q.jsx("style",{...t,dangerouslySetInnerHTML:{__html:r},nonce:s});case"script":return Q.jsx(sP,{attrs:t,preventScriptHoist:l,children:r});default:return null}}function sP({attrs:e,children:t,preventScriptHoist:r}){gt();const s=vh(),l=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(oe.useEffect(()=>{if(!l){if(e?.src){const c=(()=>{try{const h=document.baseURI||window.location.href;return new URL(e.src,h).href}catch{return e.src}})();for(const h of document.querySelectorAll("script[src]"))if(h.src===c)return;const u=document.createElement("script");return by(u,e),document.head.appendChild(u),()=>u.remove()}if(typeof t=="string"){const c=typeof e?.type=="string"?e.type:"text/javascript",u=typeof e?.nonce=="string"?e.nonce:void 0;for(const p of document.querySelectorAll("script:not([src])")){if(!(p instanceof HTMLScriptElement))continue;const m=p.getAttribute("type")??"text/javascript",v=p.getAttribute("nonce")??void 0;if(p.textContent===t&&m===c&&v===u)return}const h=document.createElement("script");return h.textContent=t,by(h,e),document.head.appendChild(h),()=>h.remove()}}},[e,t,l]),l&&typeof t=="string")return Q.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!s){if(e?.src)return Q.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return Q.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var iP=e=>{const t=gt(),r=t.options.ssr?.nonce,s=Ge(t.stores.matches,g=>g.map(w=>w.meta).filter(w=>w!==void 0),At),l=oe.useMemo(()=>{const g=[],w={};let _;for(let S=s.length-1;S>=0;S--){const C=s[S];for(let R=C.length-1;R>=0;R--){const E=C[R];if(E)if(E.title)_||(_={tag:"title",children:E.title});else if("script:ld+json"in E)try{const A=JSON.stringify(E["script:ld+json"]);g.push({tag:"script",attrs:{type:"application/ld+json"},children:uR(A)})}catch{}else{const A=E.name??E.property;if(A){if(w[A])continue;w[A]=!0}g.push({tag:"meta",attrs:{...E,nonce:r}})}}}
12return _&&g.push(_),r&&g.push({tag:"meta",attrs:{property:"csp-nonce",content:r}}),g.reverse(),g},[s,r]),c=Ge(t.stores.matches,g=>g.flatMap(w=>w.links??[]).filter(w=>w!==void 0).map(w=>({tag:"link",attrs:{...w,nonce:r}})),At),u=Ge(t.stores.matches,g=>{const w=t.ssr?.manifest,_=[];return w&&(g.forEach(S=>{w.routes[S.routeId]?.css?.forEach(C=>{const R=cE(C);_.push({tag:"link",attrs:{rel:"stylesheet",...R,crossOrigin:N0(e,"stylesheet")??R.crossOrigin,suppressHydrationWarning:!0,nonce:r}})})}),w.inlineStyle&&_.push({tag:"style",attrs:{...w.inlineStyle.attrs,nonce:r},children:w.inlineStyle.children,inlineCss:!0})),_},At),h=Ge(t.stores.matches,g=>{const w=[],_=t.ssr?.manifest;return _&&g.forEach(S=>{_.routes[S.routeId]?.preloads?.forEach(C=>{w.push({tag:"link",attrs:{...aE(_,C,e),nonce:r}})})}),w},At),p=Ge(t.stores.matches,g=>g.flatMap(w=>w.styles??[]).filter(w=>w!==void 0).map(({children:w,..._})=>({tag:"style",attrs:{..._,nonce:r},children:w})),At),m=Ge(t.stores.matches,g=>g.flatMap(w=>w.headScripts??[]).filter(w=>w!==void 0).map(({children:w,..._})=>({tag:"script",attrs:{..._,nonce:r},children:w})),At),v=[];return zl(v,l),v.push(...h),zl(v,c),v.push(...u),zl(v,p),zl(v,m),v};function aP(e){const t=iP(e.assetCrossOrigin),r=gt().options.ssr?.nonce;return Q.jsx(Q.Fragment,{children:t.map(s=>oe.createElement(Nw,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:r}))})}var lP=()=>{const e=gt(),t=e.options.ssr?.nonce,r=c=>{const u=[],h=e.ssr?.manifest;if(!h)return[];for(const p of c){const m=h.routes[p.routeId]?.scripts;if(m)for(const v of m)u.push({tag:"script",attrs:{...v.attrs,nonce:t},children:v.children,...typeof v.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return u},s=c=>c.map(u=>u.scripts).flat(1).filter(Boolean).map(({children:u,...h})=>({tag:"script",attrs:{...h,suppressHydrationWarning:!0,nonce:t},children:u})),l=Ge(e.stores.matches,r,At);return cP(e,Ge(e.stores.matches,s,At),l)};function cP(e,t,r){const s=[...t,...r];return Q.jsx(Q.Fragment,{children:s.map((l,c)=>oe.createElement(Nw,{...l,key:`tsr-scripts-${l.tag}-${c}`}))})}function Sy(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function qd(e,t){const r=Object.create(null);if(e)for(const s of Object.keys(e))Sy(s)&&(r[s]=e[s]);if(t&&typeof t=="object")for(const s of Object.keys(t))Sy(s)&&(r[s]=t[s]);return r}function zw(e){return Object.create(null)}var Uw=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},Qi=(e,t)=>{const r=t||e||{};typeof r.method>"u"&&(r.method="GET");const s=u=>Qi(void 0,{...r,validator:u,inputValidator:u});return Object.assign(u=>Qi(void 0,{...r,...u}),{options:r,middleware:u=>{const h=[...r.middleware||[]];u.map(m=>{xv in m?m.options.middleware&&h.push(...m.options.middleware):h.push(m)});const p=Qi(void 0,{...r,middleware:h});return p[xv]=!0,p},validator:s,inputValidator:s,handler:(...u)=>{const[h,p]=u,m={...r,extractedFn:h,serverFn:p},v=[...m.middleware||[],dP(m)];return h.method=r.method,Object.assign(async g=>{const w=await Ry(v,"client",{...h,...m,data:g?.data,headers:g?.headers,signal:g?.signal,fetch:g?.fetch,context:zw()}),_=k0(w.error);if(_)throw _;if(w.error)throw w.error;return w.result},{...h,method:r.method,__executeServer:async g=>{const w=Uw(),_=w.contextAfterGlobalMiddlewares;return await Ry(v,"server",{...h,...g,serverFnMeta:h.serverFnMeta,context:qd(g.context,_),request:w.request}).then(S=>({result:S.result,error:S.error,context:S.sendContext}))}})}})};async function Ry(e,t,r){let s=uP([...oh()?.functionMiddleware||[],...e]);if(t==="server"){const c=Uw();c?.executedRequestMiddlewares&&(s=s.filter(u=>!c.executedRequestMiddlewares.has(u)))}const l=async c=>{const u=s.shift();if(!u)return c;try{let h="validator"in u.options?u.options.validator:void 0;!h&&"inputValidator"in u.options&&(h=u.options.inputValidator),h&&t==="server"&&(c.data=await fP(h,c.data));let p;if(t==="client"?"client"in u.options&&(p=u.options.client):"server"in u.options&&(p=u.options.server),p){const v=await p({...c,next:async(g={})=>{const w=await l({...c,...g,context:qd(c.context,g.context),sendContext:qd(c.sendContext,g.sendContext),headers:oA(c.headers,g.headers),_callSiteFetch:c._callSiteFetch,fetch:c._callSiteFetch??g.fetch??c.fetch,result:g.result!==void 0?g.result:g instanceof Response?g:c.result,error:g.error??c.error});if(w.error)throw w.error;return w}});if(Ot(v))return{...c,error:v};if(v instanceof Response)return{...c,result:v};if(!v)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return v}return l(c)}catch(h){return{...c,error:h}}};return l({...r,headers:r.headers||{},sendContext:r.sendContext||{},context:r.context||zw(),_callSiteFetch:r.fetch})}function uP(e,t=100){const r=new Set,s=[],l=(c,u)=>{if(u>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);
12c.forEach(h=>{h.options.middleware&&l(h.options.middleware,u+1),r.has(h)||(r.add(h),s.push(h))})};return l(e,0),s}async function fP(e,t){if(e==null)return{};if("~standard"in e){const r=await e["~standard"].validate(t);if(r.issues)throw new Error(JSON.stringify(r.issues,void 0,2));return r.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function dP(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:r,fetch:s,...l})=>{const c={...l,context:r,fetch:s};return t(await e.extractedFn?.(c))},server:async({next:t,...r})=>{const s=await e.serverFn?.(r);return t({...r,result:s})}}}}var So=(e,t)=>{const r={type:"request",...t||e},s=l=>So({},Object.assign(r,{validator:l,inputValidator:l}));return{options:r,middleware:l=>So({},Object.assign(r,{middleware:l})),validator:s,inputValidator:s,client:l=>So({},Object.assign(r,{client:l})),server:l=>So({},Object.assign(r,{server:l}))}};function Bw(e,t){for(let r=0,s=t.length;r<s;r++){const l=t[r];e.has(l)||(e.add(l),l.extends&&Bw(e,l.extends))}}var hP=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const r=new Set;Bw(r,t.serializationAdapters),t.serializationAdapters=Array.from(r)}return t},createMiddleware:So});function jc(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)t.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(r[s[l]]=e[s[l]]);return r}function pP(e,t,r,s){function l(c){return c instanceof r?c:new r(function(u){u(c)})}return new(r||(r=Promise))(function(c,u){function h(v){try{m(s.next(v))}catch(g){u(g)}}function p(v){try{m(s.throw(v))}catch(g){u(g)}}function m(v){v.done?c(v.value):l(v.value).then(h,p)}m((s=s.apply(e,t||[])).next())})}const mP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class wh extends Error{constructor(t,r="FunctionsError",s){super(t),this.name=r,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class gP extends wh{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Ey extends wh{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Cy extends wh{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Hd;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Hd||(Hd={}));class vP{constructor(t,{headers:r={},customFetch:s,region:l=Hd.Any}={}){this.url=t,this.headers=r,this.region=l,this.fetch=mP(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return pP(this,arguments,void 0,function*(r,s={}){var l;let c,u;try{const{headers:h,method:p,body:m,signal:v,timeout:g}=s;let w={},{region:_}=s;_||(_=this.region);const S=new URL(`${this.url}/${r}`);_&&_!=="any"&&(w["x-region"]=_,S.searchParams.set("forceFunctionRegion",_));let C;m&&(h&&!Object.prototype.hasOwnProperty.call(h,"Content-Type")||!h)?typeof Blob<"u"&&m instanceof Blob||m instanceof ArrayBuffer?(w["Content-Type"]="application/octet-stream",C=m):typeof m=="string"?(w["Content-Type"]="text/plain",C=m):typeof FormData<"u"&&m instanceof FormData?C=m:(w["Content-Type"]="application/json",C=JSON.stringify(m)):m&&typeof m!="string"&&!(typeof Blob<"u"&&m instanceof Blob)&&!(m instanceof ArrayBuffer)&&!(typeof FormData<"u"&&m instanceof FormData)?C=JSON.stringify(m):C=m;let R=v;g&&(u=new AbortController,c=setTimeout(()=>u.abort(),g),v?(R=u.signal,v.addEventListener("abort",()=>u.abort())):R=u.signal);const E=yield this.fetch(S.toString(),{method:p||"POST",headers:Object.assign(Object.assign(Object.assign({},w),this.headers),h),body:C,signal:R}).catch(V=>{throw new gP(V)}),A=E.headers.get("x-relay-error");
12if(A&&A==="true")throw new Ey(E);if(!E.ok)throw new Cy(E);let $=((l=E.headers.get("Content-Type"))!==null&&l!==void 0?l:"text/plain").split(";")[0].trim(),N;return $==="application/json"?N=yield E.json():$==="application/octet-stream"||$==="application/pdf"?N=yield E.blob():$==="text/event-stream"?N=E:$==="multipart/form-data"?N=yield E.formData():N=yield E.text(),{data:N,error:null,response:E}}catch(h){return{data:null,error:h,response:h instanceof Cy||h instanceof Ey?h.context:void 0}}finally{c&&clearTimeout(c)}})}}const qw=3,Ty=e=>Math.min(1e3*2**e,3e4),yP=[520,503],Hw=["GET","HEAD","OPTIONS"];var Ay=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Py(e,t){return new Promise(r=>{if(t?.aborted){r();return}const s=setTimeout(()=>{t?.removeEventListener("abort",l),r()},e);function l(){clearTimeout(s),r()}t?.addEventListener("abort",l)})}function wP(e,t,r,s){return!(!s||r>=qw||!Hw.includes(e)||!yP.includes(t))}var _P=class{constructor(e){var t,r,s,l,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.shouldStripNulls=(s=e.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(l=e.urlLengthLimit)!==null&&l!==void 0?l:8e3,this.retryEnabled=(c=e.retry)!==null&&c!==void 0?c:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var r=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let c=(async()=>{let u=0;for(;;){const m=new Headers(r.headers);u>0&&m.set("X-Retry-Count",String(u));let v;try{v=await s(r.url.toString(),{method:r.method,headers:m,body:JSON.stringify(r.body,(g,w)=>typeof w=="bigint"?w.toString():w),signal:r.signal})}catch(g){if(g?.name==="AbortError"||g?.code==="ABORT_ERR"||!Hw.includes(r.method))throw g;if(r.retryEnabled&&u<qw){const w=Ty(u);u++,await Py(w,r.signal);continue}throw g}if(wP(r.method,v.status,u,r.retryEnabled)){var h,p;const g=(h=(p=v.headers)===null||p===void 0?void 0:p.get("Retry-After"))!==null&&h!==void 0?h:null,w=g!==null?Math.max(0,parseInt(g,10)||0)*1e3:Ty(u);await v.text(),u++,await Py(w,r.signal);continue}return await r.processResponse(v)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var h;let p="",m="",v="";const g=u?.cause;if(g){var w,_,S,C;const A=(w=g?.message)!==null&&w!==void 0?w:"",$=(_=g?.code)!==null&&_!==void 0?_:"";p=`${(S=u?.name)!==null&&S!==void 0?S:"FetchError"}: ${u?.message}`,p+=` 13 14Caused by: ${(C=g?.name)!==null&&C!==void 0?C:"Error"}: ${A}`,$&&(p+=` (${$})`),g?.stack&&(p+=` 15${g.stack}`)}else{var R;p=(R=u?.stack)!==null&&R!==void 0?R:""}const E=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(v="",m="Request was aborted (timeout or manual cancellation)",E>this.urlLengthLimit&&(m+=`. Note: Your request URL is ${E} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(g?.name==="HeadersOverflowError"||g?.code==="UND_ERR_HEADERS_OVERFLOW")&&(v="",m="HTTP headers exceeded server limits (typically 16KB)",E>this.urlLengthLimit&&(m+=`. Your request URL is ${E} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(h=u?.name)!==null&&h!==void 0?h:"FetchError"}: ${u?.message}`,details:p,hint:m,code:v},data:null,count:null,status:0,statusText:""}}
15)),c.then(e,t)}async processResponse(e){var t=this;let r=null,s=null,l=null,c=e.status,u=e.statusText;if(e.ok){var h,p;if(t.method!=="HEAD"){var m;const w=await e.text();if(w!=="")if(t.headers.get("Accept")==="text/csv")s=w;else if(t.headers.get("Accept")&&(!((m=t.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text")))s=w;else try{s=JSON.parse(w)}catch{if(r={message:w},s=null,t.shouldThrowOnError)throw new Ay({message:w,details:"",hint:"",code:""})}}const v=(h=t.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),g=(p=e.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");v&&g&&g.length>1&&(l=parseInt(g[1])),t.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(r={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,l=null,c=406,u="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const v=await e.text();try{r=JSON.parse(v),Array.isArray(r)&&e.status===404&&(s=[],r=null,c=200,u="OK")}catch{e.status===404&&v===""?(c=204,u="No Content"):r={message:v}}if(r&&t.shouldThrowOnError)throw new Ay(r)}return{success:r===null,error:r,data:s,count:l,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},bP=class extends _P{select(e){let t=!1;const r=(e??"*").split("").map(s=>/\s/.test(s)&&!t?"":(s==='"'&&(t=!t),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:s,referencedTable:l=s}={}){const c=l?`${l}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:s=r}={}){const l=typeof s>"u"?"offset":`${s}.offset`,c=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(l,`${e}`),this.url.searchParams.set(c,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:s=!1,wal:l=!1,format:c="text"}={}){var u;const h=[e?"analyze":null,t?"verbose":null,r?"settings":null,s?"buffers":null,l?"wal":null].filter(Boolean).join("|"),p=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${p}"; options=${h};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Oy=new RegExp("[,()]");var As=class extends bP{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(s=>typeof s=="string"&&Oy.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(s=>typeof s=="string"&&Oy.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:s}={}){let l="";s==="plain"?l="pl":s==="phrase"?l="ph":s==="websearch"&&(l="w");const c=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${l}fts${c}.${t}`),this}match(e){return Object.entries(e).filter(([t,r])=>
15r!==void 0).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},SP=class{constructor(e,{headers:t={},schema:r,fetch:s,urlLengthLimit:l=8e3,retry:c}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=s,this.urlLengthLimit=l,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:s}=t??{},l=r?"HEAD":"GET";let c=!1;const u=(e??"*").split("").map(m=>/\s/.test(m)&&!c?"":(m==='"'&&(c=!c),m)).join(""),{url:h,headers:p}=this.cloneRequestState();return h.searchParams.set("select",u),s&&p.append("Prefer",`count=${s}`),new As({method:l,url:h,headers:p,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var s;const l="POST",{url:c,headers:u}=this.cloneRequestState();
15if(t&&u.append("Prefer",`count=${t}`),r||u.append("Prefer","missing=default"),Array.isArray(e)){const h=e.reduce((p,m)=>p.concat(Object.keys(m)),[]);if(h.length>0){const p=[...new Set(h)].map(m=>`"${m}"`);c.searchParams.set("columns",p.join(","))}}return new As({method:l,url:c,headers:u,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:s,defaultToNull:l=!0}={}){var c;const u="POST",{url:h,headers:p}=this.cloneRequestState();if(p.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&h.searchParams.set("on_conflict",t),s&&p.append("Prefer",`count=${s}`),l||p.append("Prefer","missing=default"),Array.isArray(e)){const m=e.reduce((v,g)=>v.concat(Object.keys(g)),[]);if(m.length>0){const v=[...new Set(m)].map(g=>`"${g}"`);h.searchParams.set("columns",v.join(","))}}return new As({method:u,url:h,headers:p,schema:this.schema,body:e,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;const s="PATCH",{url:l,headers:c}=this.cloneRequestState();return t&&c.append("Prefer",`count=${t}`),new As({method:s,url:l,headers:c,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const r="DELETE",{url:s,headers:l}=this.cloneRequestState();return e&&l.append("Prefer",`count=${e}`),new As({method:r,url:s,headers:l,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function RP(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(sa(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EP(e){var t=RP(e,"string");return sa(t)=="symbol"?t:t+""}function CP(e,t,r){return(t=EP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,s)}return r}function ql(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(r),!0).forEach(function(s){CP(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ly(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}var TP=class Vw{constructor(t,{headers:r={},schema:s,fetch:l,timeout:c,urlLengthLimit:u=8e3,retry:h}={}){this.url=t,this.headers=new Headers(r),this.schemaName=s,this.urlLengthLimit=u;const p=l??globalThis.fetch;c!==void 0&&c>0?this.fetch=(m,v)=>{const g=new AbortController,w=setTimeout(()=>g.abort(),c),_=v?.signal;if(_){if(_.aborted)return clearTimeout(w),p(m,v);const S=()=>{clearTimeout(w),g.abort()};return _.addEventListener("abort",S,{once:!0}),p(m,ql(ql({},v),{},{signal:g.signal})).finally(()=>{clearTimeout(w),_.removeEventListener("abort",S)})}return p(m,ql(ql({},v),{},{signal:g.signal})).finally(()=>clearTimeout(w))}:this.fetch=p,this.retry=h}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new SP(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new Vw(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,r={},{head:s=!1,get:l=!1,count:c}={}){var u;let h;const p=new URL(`${this.url}/rpc/${t}`);let m;const v=_=>_!==null&&typeof _=="object"&&(!Array.isArray(_)||_.some(v)),g=s&&Object.values(r).some(v);g?(h="POST",m=r):s||l?(h=s?"HEAD":"GET",Object.entries(r).filter(([_,S])=>S!==void 0).map(([_,S])=>[_,Array.isArray(S)?`{${S.join(",")}}`:`${S}
15`]).forEach(([_,S])=>{p.searchParams.append(_,S)})):(h="POST",m=r);const w=new Headers(this.headers);return g?w.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&w.set("Prefer",`count=${c}`),new As({method:h,url:p,headers:w,schema:this.schemaName,body:m,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class AP{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const r=globalThis;if(typeof globalThis<"u"&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof r.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&r.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const l=globalThis.process;if(l){const c=l.versions;if(c&&c.node){const u=c.node,h=parseInt(u.replace(/^v/,"").split(".")[0]);return h>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${h} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${h} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 16import ws from "ws" 17new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 18 19Suggested solution: ${t.workaround}`),new Error(r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const PP="2.107.0",OP=`realtime-js/${PP}`,LP="1.0.0",Fw="2.0.0",IP=Fw,kP=1e4,$P=100,Mr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Gw={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Vd={connecting:"connecting",closing:"closing",closed:"closed"};class xP{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let s=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,s;const l=(s=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,l)}_encodeJsonUserBroadcastPush(t){var r,s;const l=(s=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&s!==void 0?s:{},u=new TextEncoder().encode(JSON.stringify(l)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(t,r,s){var l,c;const u=t.topic,h=(l=t.ref)!==null&&l!==void 0?l:"",p=(c=t.join_ref)!==null&&c!==void 0?c:"",m=t.payload.event,v=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},g=Object.keys(v).length===0?"":JSON.stringify(v);if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`ref length ${h.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`userEvent length ${m.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const w=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+h.length+u.length+m.length+g.length,_=new ArrayBuffer(this.HEADER_LENGTH+w);let S=new DataView(_),C=0;S.setUint8(C++,this.KINDS.userBroadcastPush),S.setUint8(C++,p.length),S.setUint8(C++,h.length),S.setUint8(C++,u.length),S.setUint8(C++,m.length),S.setUint8(C++,g.length),S.setUint8(C++,r),Array.from(p,E=>
19S.setUint8(C++,E.charCodeAt(0))),Array.from(h,E=>S.setUint8(C++,E.charCodeAt(0))),Array.from(u,E=>S.setUint8(C++,E.charCodeAt(0))),Array.from(m,E=>S.setUint8(C++,E.charCodeAt(0))),Array.from(g,E=>S.setUint8(C++,E.charCodeAt(0)));var R=new Uint8Array(_.byteLength+s.byteLength);return R.set(new Uint8Array(_),0),R.set(new Uint8Array(s),_.byteLength),R.buffer}decode(t,r){if(this._isArrayBuffer(t)){let s=this._binaryDecode(t);return r(s)}if(typeof t=="string"){const s=JSON.parse(t),[l,c,u,h,p]=s;return r({join_ref:l,ref:c,topic:u,event:h,payload:p})}return r({})}_binaryDecode(t){const r=new DataView(t),s=r.getUint8(0),l=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,r,l)}_decodeUserBroadcast(t,r,s){const l=r.getUint8(1),c=r.getUint8(2),u=r.getUint8(3),h=r.getUint8(4);let p=this.HEADER_LENGTH+4;const m=s.decode(t.slice(p,p+l));p=p+l;const v=s.decode(t.slice(p,p+c));p=p+c;const g=s.decode(t.slice(p,p+u));p=p+u;const w=t.slice(p,t.byteLength),_=h===this.JSON_ENCODING?JSON.parse(s.decode(w)):w,S={type:this.BROADCAST_EVENT,event:v,payload:_};return u>0&&(S.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:m,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t?.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([s])=>r.includes(s)))}}var ze;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ze||(ze={}));const Iy=(e,t,r={})=>{var s;const l=(s=r.skipTypes)!==null&&s!==void 0?s:[];return t?Object.keys(t).reduce((c,u)=>(c[u]=DP(u,e,t,l),c),{}):{}},DP=(e,t,r,s)=>{const l=t.find(h=>h.name===e),c=l?.type,u=r[e];return c&&!s.includes(c)?Kw(c,u):Fd(u)},Kw=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return zP(t,r)}switch(e){case ze.bool:return jP(t);case ze.float4:case ze.float8:case ze.int2:case ze.int4:case ze.int8:case ze.numeric:case ze.oid:return MP(t);case ze.json:case ze.jsonb:return NP(t);case ze.timestamp:return UP(t);case ze.abstime:case ze.date:case ze.daterange:case ze.int4range:case ze.int8range:case ze.money:case ze.reltime:case ze.text:case ze.time:case ze.timestamptz:case ze.timetz:case ze.tsrange:case ze.tstzrange:return Fd(t);default:return Fd(t)}},Fd=e=>e,jP=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},MP=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},NP=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},zP=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,s=e[r];if(e[0]==="{"&&s==="}"){let c;const u=e.slice(1,r);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(h=>Kw(t,h))}return e},UP=e=>typeof e=="string"?e.replace(" ","T"):e,Yw=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Ji=e=>typeof e=="function"?e:function(){return e},BP=typeof self<"u"?self:null,Ps=typeof window<"u"?window:null,Tn=BP||Ps||globalThis,qP="2.0.0",HP=1e4,VP=1e3,Pn={connecting:0,open:1,closing:2,closed:3},Mt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},er={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Gd={longpoll:"longpoll",websocket:"websocket"},FP={complete:4},Kd="base64url.bearer.phx.",Hl=class{constructor(e,t,r,s){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 19
19oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Qw=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},GP=class{constructor(e,t,r){this.state=Mt.closed,this.topic=e,this.params=Ji(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Hl(this,er.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Qw(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Mt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=Mt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Mt.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=Mt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Hl(this,er.leave,Ji({}),this.timeout).send(),this.state=Mt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(er.reply,(s,l)=>{this.trigger(this.replyEventName(l),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Mt.closed,this.bindings=[]}onClose(e){this.on(er.close,e)}onError(e){return this.on(er.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(typeof t>"u"||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Hl(this,e,function(){return t},r);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Mt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(er.close,"leave")},r=new Hl(this,er.leave,Ji({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Mt.joining,this.joinPush.resend(e))}trigger(e,t,r,s){let l=this.onMessage(e,t,r,s);if(t&&!l)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===e&&this.filterBindings(u,t,r));for(let u=0;u<c.length;u++)c[u].callback(l,r,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Mt.closed}isErrored(){return this.state===Mt.errored}isJoined(){return this.state===Mt.joined}isJoining(){return this.state===Mt.joining}isLeaving(){return this.state===Mt.leaving}},hc=class{static request(e,t,r,s,l,c,u){if(Tn.XDomainRequest){let h=new Tn.XDomainRequest;return this.xdomainRequest(h,e,t,s,l,c,u)}else if(Tn.XMLHttpRequest){let h=new Tn.XMLHttpRequest;return this.xhrRequest(h,e,t,r,s,l,c,u)}else{if(Tn.fetch&&Tn.AbortController)return this.fetchRequest(e,t,r,s,l,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,r,s,l,c,u){let h={method:e,headers:r,body:s},p=null;return l&&(p=new AbortController,setTimeout(()=>p.abort(),l),h.signal=p.signal),Tn.fetch(t,h).then(m=>m.text()).then(m=>this.parseJSON(m)).then(m=>u&&u(m)).catch(m=>{m.name==="AbortError"&&c?c():u&&u(null)}),p}static xdomainRequest(e,t,r,s,l,c,u){return e.timeout=l,e.open(t,r),e.onload=()=>{let h=this.parseJSON(e.responseText);u&&u(h)},c&&(e.ontimeout=c),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,r,s,l,c,u,h){e.open(t,r,!0),e.timeout=c;for(let[p,m]of Object.entries(s))e.setRequestHeader(p,m);return e.onerror=()=>h&&h(null),e.onreadystatechange=()=>{if(e.readyState===FP.complete&&h){let p=this.parseJSON(e.responseText);h(p)}},u&&(e.ontimeout=u),e.send(l),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let l=t?`${t}[${s}]`:s,c=e[s];typeof c=="object"?r.push(this.serialize(c,l)):r.push(encodeURIComponent(l)+"="+encodeURIComponent(c))}return r.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},KP=e=>{let t="",r=new Uint8Array(e),s=r.byteLength;for(let l=0;l<s;l++)t+=String.fromCharCode(r[l]);return btoa(t)},vs=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Kd)&&(this.authToken=atob(t[1].slice(Kd.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Pn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Gd.websocket),"$1/"+Gd.longpoll)}endpointURL(){return hc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=Pn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Pn.open||this.readyState===Pn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:r,token:s,messages:l}=t;if(r===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else r=0;switch(r){case 200:l.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Pn.open,this.onopen({}),this.poll();break;
19case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${r}`)}})}send(e){typeof e!="string"&&(e=KP(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 20`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,r){for(let l of this.reqs)l.abort();this.readyState=Pn.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,r,s,l){let c,u=()=>{this.reqs.delete(c),s()};c=hc.request(e,this.endpointURL(),t,r,this.timeout,u,h=>{this.reqs.delete(c),this.isActive()&&l(h)}),this.reqs.add(c)}},YP=class Gi{constructor(t,r={}){let s=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,l=>{let{onJoin:c,onLeave:u,onSync:h}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Gi.syncState(this.state,l,c,u),this.pendingDiffs.forEach(p=>{this.state=Gi.syncDiff(this.state,p,c,u)}),this.pendingDiffs=[],h()}),this.channel.on(s.diff,l=>{let{onJoin:c,onLeave:u,onSync:h}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=Gi.syncDiff(this.state,l,c,u),h())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Gi.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,r,s,l){let c=this.clone(t),u={},h={};return this.map(c,(p,m)=>{r[p]||(h[p]=m)}),this.map(r,(p,m)=>{let v=c[p];if(v){let g=m.metas.map(C=>C.phx_ref),w=v.metas.map(C=>C.phx_ref),_=m.metas.filter(C=>w.indexOf(C.phx_ref)<0),S=v.metas.filter(C=>g.indexOf(C.phx_ref)<0);_.length>0&&(u[p]=m,u[p].metas=_),S.length>0&&(h[p]=this.clone(v),h[p].metas=S)}else u[p]=m}),this.syncDiff(c,{joins:u,leaves:h},s,l)}static syncDiff(t,r,s,l){let{joins:c,leaves:u}=this.clone(r);return s||(s=function(){}),l||(l=function(){}),this.map(c,(h,p)=>{let m=t[h];if(t[h]=this.clone(p),m){let v=t[h].metas.map(w=>w.phx_ref),g=m.metas.filter(w=>v.indexOf(w.phx_ref)<0);t[h].metas.unshift(...g)}s(h,m,p)}),this.map(u,(h,p)=>{let m=t[h];if(!m)return;let v=p.metas.map(g=>g.phx_ref);m.metas=m.metas.filter(g=>v.indexOf(g.phx_ref)<0),l(h,m,p),m.metas.length===0&&delete t[h]}),t}static list(t,r){return r||(r=function(s,l){return l}),this.map(t,(s,l)=>r(s,l))}static map(t,r){return Object.getOwnPropertyNames(t).map(s=>r(s,t[s]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Vl={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,s,l,c,u]=JSON.parse(e);return t({join_ref:r,ref:s,topic:l,event:c,payload:u})}},binaryEncode(e){let{join_ref:t,ref:r,event:s,topic:l,payload:c}=e,u=this.META_LENGTH+t.length+r.length+l.length+s.length,h=new ArrayBuffer(this.HEADER_LENGTH+u),p=new DataView(h),m=0;p.setUint8(m++,this.KINDS.push),p.setUint8(m++,t.length),p.setUint8(m++,r.length),p.setUint8(m++,l.length),p.setUint8(m++,s.length),Array.from(t,g=>p.setUint8(m++,g.charCodeAt(0))),Array.from(r,g=>p.setUint8(m++,g.charCodeAt(0))),Array.from(l,g=>p.setUint8(m++,g.charCodeAt(0))),Array.from(s,g=>p.setUint8(m++,g.charCodeAt(0)));var v=new Uint8Array(h.byteLength+c.byteLength);return v.set(new Uint8Array(h),0),v.set(new Uint8Array(c),h.byteLength),v.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);
vendor: 8,521 bytes, line 20
20case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,r){let s=t.getUint8(1),l=t.getUint8(2),c=t.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,h=r.decode(e.slice(u,u+s));u=u+s;let p=r.decode(e.slice(u,u+l));u=u+l;let m=r.decode(e.slice(u,u+c));u=u+c;let v=e.slice(u,e.byteLength);return{join_ref:h,ref:null,topic:p,event:m,payload:v}},decodeReply(e,t,r){let s=t.getUint8(1),l=t.getUint8(2),c=t.getUint8(3),u=t.getUint8(4),h=this.HEADER_LENGTH+this.META_LENGTH,p=r.decode(e.slice(h,h+s));h=h+s;let m=r.decode(e.slice(h,h+l));h=h+l;let v=r.decode(e.slice(h,h+c));h=h+c;let g=r.decode(e.slice(h,h+u));h=h+u;let w=e.slice(h,e.byteLength),_={status:g,response:w};return{join_ref:p,ref:m,topic:v,event:er.reply,payload:_}},decodeBroadcast(e,t,r){let s=t.getUint8(1),l=t.getUint8(2),c=this.HEADER_LENGTH+2,u=r.decode(e.slice(c,c+s));c=c+s;let h=r.decode(e.slice(c,c+l));c=c+l;let p=e.slice(c,e.byteLength);return{join_ref:null,ref:null,topic:u,event:h,payload:p}}},QP=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||HP,this.transport=t.transport||Tn.WebSocket||vs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let r=null;try{r=Tn&&Tn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||r,this.establishedConnections=0,this.defaultEncoder=Vl.encode.bind(Vl),this.defaultDecoder=Vl.decode.bind(Vl),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==vs?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;Ps&&Ps.addEventListener&&(Ps.addEventListener("pagehide",l=>{this.conn&&(this.disconnect(),s=this.connectClock)}),Ps.addEventListener("pageshow",l=>{s===this.connectClock&&(s=null,this.connect())}),Ps.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=l=>t.rejoinAfterMs?t.rejoinAfterMs(l):[1e3,2e3,5e3][l-1]||1e4,this.reconnectAfterMs=l=>t.reconnectAfterMs?t.reconnectAfterMs(l):[10,50,100,150,200,250,500,1e3,2e3][l-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(l,c,u)=>{console.log(`${l}: ${c}`,u)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Ji(t.params||{}),this.endPoint=`${e}/${Gd.websocket}`,this.vsn=t.vsn||qP,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Qw(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return vs}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=hc.appendParams(hc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ji(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==vs?this.connectWithFallback(vs,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(l=>{l.ref===t&&(this.off([s]),e(Date.now()-r))});return!0}transportName(e){return e===vs?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Kd}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let r=!1,s=!0,l,c,u=this.transportName(e),h=p=>{this.log("transport",`falling back to ${u}...`,p),this.off([l,c]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return h("memorized");this.fallbackTimer=setTimeout(h,t),c=this.onError(p=>{this.log("transport","error",p),s&&!r&&(clearTimeout(this.fallbackTimer),h(p))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!s){let p=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${p}`,"true"),this.log("transport",`established ${p} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(h,t),this.ping(p=>{this.log("transport","connected to primary after",p),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),VP,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,r||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){if(r===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r)}waitForSocketClosed(e,t,r=1){if(r===5||e.readyState===Pn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError(e)}
vendor: 4,103 bytes, line 20
20triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(er.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Pn.connecting:return"connecting";case Pn.open:return"open";case Pn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([r])=>e.indexOf(r)===-1)}channel(e,t={}){let r=new GP(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:s,ref:l,join_ref:c}=e;this.log("push",`${t} ${r} (${c}, ${l})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:r,event:s,payload:l,ref:c,join_ref:u}=t;if(c&&c===this.pendingHeartbeatRef){const h=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(l.status==="ok"?"ok":"error",h)}catch(p){this.log("error","error in heartbeat callback",p)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${l.status||""} ${r} ${s} ${c&&"("+c+")"||""}`.trim(),l);for(let h=0;h<this.channels.length;h++){const p=this.channels[h];p.isMember(r,s,l,u)&&p.trigger(s,l,c,u)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,s])=>{try{s(...t)}catch(l){this.log("error",`error in ${e} callback`,l)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}leaveOpenTopic(e){let t=this.channels.find(r=>r.topic===e&&(r.isJoined()||r.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Xi{constructor(t,r){const s=XP(r);this.presence=new YP(t.getChannel(),s),this.presence.onJoin((l,c,u)=>{const h=Xi.onJoinPayload(l,c,u);t.getChannel().trigger("presence",h)}),this.presence.onLeave((l,c,u)=>{const h=Xi.onLeavePayload(l,c,u);t.getChannel().trigger("presence",h)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Xi.transformState(this.presence.state)}static transformState(t){return t=JP(t),Object.getOwnPropertyNames(t).reduce((r,s)=>{const l=t[s];return r[s]=oc(l),r},{})}static onJoinPayload(t,r,s){const l=ky(r),c=oc(s);return{event:"join",key:t,currentPresences:l,newPresences:c}}static onLeavePayload(t,r,s){const l=ky(r),c=oc(s);return{event:"leave",key:t,currentPresences:l,leftPresences:c}}}function oc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function JP(e){return JSON.parse(JSON.stringify(e))}function XP(e){return e?.events&&{events:e.events}}function ky(e){return e?.metas?oc(e):[]}var $y;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})($y||($y={}));class ZP{get state(){return this.presenceAdapter.state}constructor(t,r){this.channel=t,this.presenceAdapter=new Xi(this.channel.channelAdapter,r)}}function WP(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
20if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const r=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${r}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class eO{constructor(t,r,s){const l=tO(s);this.channel=t.getSocket().channel(r,l),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,r){return this.channel.on(t,r)}off(t,r){this.channel.off(t,r)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,r,s){let l;try{l=this.channel.push(t,r,s)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>$P){const c=this.channel.pushBuffer.shift();c.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${c.event}`,c.payload())}return l}updateJoinPayload(t){const r=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},r),t)}canPush(){return this.socket.isConnected()&&this.state===Mr.joined}isJoined(){return this.state===Mr.joined}isJoining(){return this.state===Mr.joining}isClosed(){return this.state===Mr.closed}isLeaving(){return this.state===Mr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function tO(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var xy;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(xy||(xy={}));var Is;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Is||(Is={}));var tr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(tr||(tr={}));class Zi{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,r={config:{}},s){var l,c;if(this.topic=t,this.params=r,this.socket=s,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.channelAdapter=new eO(this.socket.socketAdapter,t,this.params),this.presence=new ZP(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Yw(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((c=(l=this.params.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,r=this.timeout){var s,l,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:h,private:p}}=this.params,m=(l=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(_=>_.filter))!==null&&l!==void 0?l:[],v=!!this.bindings[Is.PRESENCE]&&this.bindings[Is.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,g={},w={broadcast:u,presence:Object.assign(Object.assign({},h),{enabled:v}),postgres_changes:m,private:p};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(_=>{t?.(tr.CHANNEL_ERROR,WP(_))}),this._onClose(()=>t?.(tr.CLOSED)),this.updateJoinPayload(Object.assign({config:w},g)),this._updateFilterMessage(),this.channelAdapter.subscribe(r).receive("ok",async({postgres_changes:_})=>
20{if(this.socket._isManualToken()||this.socket.setAuth(),_===void 0){t?.(tr.SUBSCRIBED);return}this._updatePostgresBindings(_,t)}).receive("error",_=>{this.state=Mr.errored;const S=Object.values(_).join(", ")||"error";t?.(tr.CHANNEL_ERROR,new Error(S,{cause:_}))}).receive("timeout",()=>{t?.(tr.TIMED_OUT)})}return this}_updatePostgresBindings(t,r){var s;const l=this.bindings.postgres_changes,c=(s=l?.length)!==null&&s!==void 0?s:0,u=[];for(let h=0;h<c;h++){const p=l[h],{filter:{event:m,schema:v,table:g,filter:w}}=p,_=t&&t[h];if(_&&_.event===m&&Zi.isFilterValueEqual(_.schema,v)&&Zi.isFilterValueEqual(_.table,g)&&Zi.isFilterValueEqual(_.filter,w))u.push(Object.assign(Object.assign({},p),{id:_.id}));else{this.unsubscribe(),this.state=Mr.errored,r?.(tr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=Mr.errored&&r&&r(tr.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,s){const l=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=t===Is.PRESENCE||t===Is.POSTGRES_CHANGES;if(l&&c)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,r,s)}async httpSend(t,r,s={}){var l;if(r==null)return Promise.reject(new Error("Payload is required for httpSend()"));const c=r instanceof ArrayBuffer||ArrayBuffer.isView(r),u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":c?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(u.Authorization=`Bearer ${this.socket.accessTokenValue}`);const h=new URL(this.broadcastEndpointURL);h.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&h.searchParams.set("private","true");const p={method:"POST",headers:u,body:c?r:JSON.stringify(r)},m=await this._fetchWithTimeout(h.toString(),p,(l=s.timeout)!==null&&l!==void 0?l:this.timeout);if(m.status===202)return{success:!0};let v=m.statusText;try{const g=await m.json();v=g.error||g.message||v}catch{}return Promise.reject(new Error(v))}async send(t,r={}){var s,l;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
20in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:u}=t,h={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(h.Authorization=`Bearer ${this.socket.accessTokenValue}`);const p={method:"POST",headers:h,body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const m=await this._fetchWithTimeout(this.broadcastEndpointURL,p,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);return await((l=m.body)===null||l===void 0?void 0:l.cancel()),m.ok?"ok":"error"}catch(m){return m instanceof Error&&m.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,h,p;const m=this.channelAdapter.push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((p=(h=(u=this.params)===null||u===void 0?void 0:u.config)===null||h===void 0?void 0:h.broadcast)===null||p===void 0)&&p.ack)&&c("ok"),m.receive("ok",()=>c("ok")),m.receive("error",()=>c("error")),m.receive("timeout",()=>c("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(r=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>r("ok")).receive("timeout",()=>r("timed out")).receive("error",()=>r("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,r,s){const l=new AbortController,c=setTimeout(()=>l.abort(),s),u=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:l.signal}));return clearTimeout(c),u}_on(t,r,s){const l=t.toLocaleLowerCase(),c=this.channelAdapter.on(t,s),u={type:l,filter:r,callback:s,ref:c};return this.bindings[l]?this.bindings[l].push(u):this.bindings[l]=[u],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,r,s)=>{var l,c,u,h,p,m,v;const g=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(g,s))return!1;const w=(l=this.bindings[g])===null||l===void 0?void 0:l.find(_=>_.ref===t.ref);if(!w)return!0;if(["broadcast","presence","postgres_changes"].includes(g))if("id"in w){const _=w.id,S=(c=w.filter)===null||c===void 0?void 0:c.event;return _&&((u=r.ids)===null||u===void 0?void 0:u.includes(_))&&(S==="*"||S?.toLocaleLowerCase()===((h=r.data)===null||h===void 0?void 0:h.type.toLocaleLowerCase()))}else{const _=(m=(p=w?.filter)===null||p===void 0?void 0:p.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((v=r?.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return w.type.toLocaleLowerCase()===g})}_notThisChannelEvent(t,r){const{close:s,error:l,leave:c,join:u}=Gw;return r&&[s,l,c,u].includes(t)&&r!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,r,s)=>{if(typeof r=="object"&&"ids"in r){const l=r.data,{schema:c,table:u,commit_timestamp:h,type:p,errors:m}=l;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:h,eventType:p,new:{},old:{},errors:m}),this._getPayloadRecords(l))}return r})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const r in t.bindings)for(const s of t.bindings[r])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=Iy(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=Iy(t.columns,t.old_record)),r}}class nO{constructor(t,r){this.socket=new QP(t,r)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,r,s,l=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),l),this.socket.disconnect(()=>{t(),c("ok")},r,s)})}push(t){this.socket.push(t)}log(t,r,s){this.socket.log(t,r,s)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Vd.connecting}isDisconnecting(){return this.socket.connectionState()==Vd.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Dy={HEARTBEAT_INTERVAL:25e3}
20,rO=[1e3,2e3,5e3,1e4],oO=1e4;function sO(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var r;return(r=Array.from(e.keys())[t])!==null&&r!==void 0?r:null},removeItem(t){e.delete(t)},setItem(t,r){e.set(t,String(r))}}}function iO(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return sO()}const aO=` 21 addEventListener("message", (e) => { 22 if (e.data.event === "start") { 23 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 24 } 25 });`;class lO{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,r){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={},this.ref=0,this.serializer=new xP,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=c=>c?(...u)=>c(...u):(...u)=>fetch(...u),!(!((s=r?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey;const l=this._initializeOptions(r);this.socketAdapter=new nO(t,l),this.httpEndpoint=Yw(t),this.fetch=this._resolveFetch(r?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const r=t.message;throw r.includes("Node.js")?new Error(`${r} 26 27To use Realtime in Node.js, you need to provide a WebSocket implementation: 28 29Option 1: Use Node.js 22+ which has native WebSocket support 30Option 2: Install and provide the "ws" package: 31 32 npm install ws 33 34 import ws from "ws" 35 const client = new RealtimeClient(url, { 36 ...options, 37 transport: ws 38 })`):new Error(`WebSocket not available: ${r}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,r){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,r)}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&t.teardown(),r}async removeAllChannels(){const t=this.channels.map(async s=>{const l=await s.unsubscribe();return s.teardown(),l}),r=await Promise.all(t);return await this.disconnect(),r}log(t,r,s){this.socketAdapter.log(t,r,s)}connectionState(){return this.socketAdapter.connectionState()||Vd.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,r={config:{}}){const s=`realtime:${t}`,l=this.getChannels().find(c=>c.topic===s);if(l)return l;{const c=new Zi(`realtime:${t}`,r,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
38this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let r,s=!1;if(t)r=t,s=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(l){this.log("error","Error fetching access token from callback",l),r=this.accessTokenValue}else r=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(l=>{const c={access_token:r,version:OP};r&&l.updateJoinPayload(c),l.joinedOnce&&l.channelAdapter.isJoined()&&l.channelAdapter.push(Gw.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(r=>{this.log("error","error waiting for auth on connect",r)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(r,s)=>{r=="sent"&&this._setAuthSafely(),t&&t(r,s)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let r;if(t)r=t;else{const s=new Blob([aO],{type:"application/javascript"});r=URL.createObjectURL(s)}return r}_initializeOptions(t){var r,s,l,c,u,h,p,m,v,g,w,_;this.worker=(r=t?.worker)!==null&&r!==void 0?r:!1,this.accessToken=(s=t?.accessToken)!==null&&s!==void 0?s:null;const S={};S.timeout=(l=t?.timeout)!==null&&l!==void 0?l:kP,S.heartbeatIntervalMs=(c=t?.heartbeatIntervalMs)!==null&&c!==void 0?c:Dy.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=t?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((h=t?.heartbeatIntervalMs)!==null&&h!==void 0?h:Dy.HEARTBEAT_INTERVAL),S.transport=(p=t?.transport)!==null&&p!==void 0?p:AP.getWebSocketConstructor(),S.params=t?.params,S.logger=t?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),S.sessionStorage=(m=t?.sessionStorage)!==null&&m!==void 0?m:iO(),S.reconnectAfterMs=(v=t?.reconnectAfterMs)!==null&&v!==void 0?v:(A=>rO[A-1]||oO);let C,R;const E=(g=t?.vsn)!==null&&g!==void 0?g:IP;switch(E){case LP:C=(A,$)=>$(JSON.stringify(A)),R=(A,$)=>$(JSON.parse(A));break;case Fw:C=this.serializer.encode.bind(this.serializer),R=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=E,S.encode=(w=t?.encode)!==null&&w!==void 0?w:C,S.decode=(_=t?.decode)!==null&&_!==void 0?_:R,S.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,S.params=Object.assign(Object.assign({},S.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
vendor: 4,863 bytes, line 38
38var ia=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function cO(e,t,r){const s=new URL(t,e);if(r)for(const[l,c]of Object.entries(r))c!==void 0&&s.searchParams.set(l,c);return s.toString()}async function uO(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function fO(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:s,query:l,body:c,headers:u}){const h=cO(e.baseUrl,s,l),p=await uO(e.auth),m=await t(h,{method:r,headers:{...c?{"Content-Type":"application/json"}:{},...p,...u},body:c?JSON.stringify(c):void 0}),v=await m.text(),g=(m.headers.get("content-type")||"").includes("application/json"),w=g&&v?JSON.parse(v):v;if(!m.ok){const _=g?w:void 0,S=_?.error;throw new ia(S?.message??`Request failed with status ${m.status}`,{status:m.status,icebergType:S?.type,icebergCode:S?.code,details:_})}return{status:m.status,headers:m.headers,data:w}}}}function Fl(e){return e.join("�")}var dO=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Fl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Fl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Fl(e.namespace)}`}),!0}catch(t){if(t instanceof ia&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof ia&&r.status===409)return;throw r}}};function ys(e){return e.join("�")}var hO=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ys(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ys(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ys(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ys(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ys(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ys(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof ia&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof ia&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},pO=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=fO({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new dO(this.client,t),this.tableOps=new hO(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
38async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function mO(e,t){if(aa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(aa(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gO(e){var t=mO(e,"string");return aa(t)=="symbol"?t:t+""}function vO(e,t,r){return(t=gO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,s)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(r),!0).forEach(function(s){vO(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jy(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}var Mc=class extends Error{constructor(e,t="storage",r,s){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Nc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Yd=class extends Mc{constructor(e,t,r,s="storage"){super(e,s,t,r),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return de({},super.toJSON())}},Jw=class extends Mc{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function pc(e,t,r){const s=de({},e),l=t.toLowerCase();for(const c of Object.keys(s))c.toLowerCase()===l&&delete s[c];return s[l]=r,s}function yO(e){const t={};for(const[r,s]of Object.entries(e))t[r.toLowerCase()]=s;return t}const wO=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_O=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qd=e=>{if(Array.isArray(e))return e.map(r=>Qd(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,s])=>{const l=r.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));t[l]=Qd(s)}),t},bO=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),My=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const r=t.error;if(typeof r.message=="string")return r.message}}return JSON.stringify(e)},SO=async(e,t,r,s)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const l=e;let c=parseInt(String(l.status),10);Number.isFinite(c)||(c=500),l.json().then(u=>{const h=u?.statusCode||u?.code||c+"";t(new Yd(My(u),c,h,s))}).catch(()=>{const u=c+"";t(new Yd(l.statusText||`HTTP ${c} error`,c,u,s))})}else t(new Jw(My(e),e,s))},RO=(e,t,r,s)=>{const l={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!s)return de(de({},l),r);if(_O(s)){var c;const u=t?.headers||{};let h;for(const[p,m]of Object.entries(u))p.toLowerCase()==="content-type"&&(h=m);l.headers=pc(u,"Content-Type",(c=h)!==null&&c!==void 0?c:"application/json"),l.body=JSON.stringify(s)}else l.body=s;return t?.duplex&&(l.duplex=t.duplex),de(de({},l),r)};async function Hi(e,t,r,s,l,c,u){return new Promise((h,p)=>{e(r,RO(t,s,l,c)).then(m=>{if(!m.ok)throw m;if(s?.noResolveJson)return m;if(u==="vectors"){const v=m.headers.get("content-type");if(m.headers.get("content-length")==="0"||m.status===204)return{};if(!v||!v.includes("application/json"))return{}}return m.json()}).then(m=>h(m)).catch(m=>SO(m,p,s,u))})}function Xw(e="storage"){return{get:async(t,r,s,l)=>Hi(t,"GET",r,s,l,void 0,e),post:async(t,r,s,l,c)=>Hi(t,"POST",r,l,c,s,e),put:async(t,r,s,l,c)=>Hi(t,"PUT",r,l,c,s,e),head:async(t,r,s,l)=>Hi(t,"HEAD",r,de(de({},s),{},{noResolveJson:!0}),l,void 0,e),remove:async(t,r,s,l,c)=>Hi(t,"DELETE",r,l,c,s,e)}}const EO=Xw("storage"),{get:la,post:gn,put:Jd,head:CO,remove:_h}=EO,Jt=Xw("vectors");var Ms=class{constructor(e,t={},r,s="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=yO(t),this.fetch=wO(r),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=pc(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Nc(r))return{data:null,error:r};throw r}}};let Zw;Zw=Symbol.toStringTag;var TO=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Zw]="StreamDownloadBuilder",this.promise=null}
38then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Nc(t))return{data:null,error:t};throw t}}};let Ww;Ww=Symbol.toStringTag;var AO=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Ww]="BlobDownloadBuilder",this.promise=null}asStream(){return new TO(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Nc(t))return{data:null,error:t};throw t}}};const PO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ny={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var OO=class extends Ms{constructor(e,t={},r,s){super(e,t,s,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,s){var l=this;return l.handleOperation(async()=>{let c;const u=de(de({},Ny),s);let h=de(de({},l.headers),e==="POST"&&{"x-upsert":String(u.upsert)});const p=u.metadata;if(typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),p&&c.append("metadata",l.encodeMetadata(p)),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),p&&!c.has("metadata")&&c.append("metadata",l.encodeMetadata(p))):(c=r,h["cache-control"]=`max-age=${u.cacheControl}`,h["content-type"]=u.contentType,p&&(h["x-metadata"]=l.toBase64(l.encodeMetadata(p))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),s?.headers)for(const[w,_]of Object.entries(s.headers))h=pc(h,w,_);const m=l._removeEmptyFolders(t),v=l._getFinalPath(m),g=await(e=="PUT"?Jd:gn)(l.fetch,`${l.url}/object/${v}`,c,de({headers:h},u?.duplex?{duplex:u.duplex}:{}));return{path:m,id:g.Id,fullPath:g.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,s){var l=this;const c=l._removeEmptyFolders(e),u=l._getFinalPath(c),h=new URL(l.url+`/object/upload/sign/${u}`);return h.searchParams.set("token",t),l.handleOperation(async()=>{let p;const m=de(de({},Ny),s);let v=de(de({},l.headers),{"x-upsert":String(m.upsert)});const g=m.metadata;if(typeof Blob<"u"&&r instanceof Blob?(p=new FormData,p.append("cacheControl",m.cacheControl),g&&p.append("metadata",l.encodeMetadata(g)),p.append("",r)):typeof FormData<"u"&&r instanceof FormData?(p=r,p.has("cacheControl")||p.append("cacheControl",m.cacheControl),g&&!p.has("metadata")&&p.append("metadata",l.encodeMetadata(g))):(p=r,v["cache-control"]=`max-age=${m.cacheControl}`,v["content-type"]=m.contentType,g&&(v["x-metadata"]=l.toBase64(l.encodeMetadata(g))),(typeof ReadableStream<"u"&&p instanceof ReadableStream||p&&typeof p=="object"&&"pipe"in p&&typeof p.pipe=="function")&&!m.duplex&&(m.duplex="half")),s?.headers)for(const[w,_]of Object.entries(s.headers))v=pc(v,w,_);return{path:c,fullPath:(await Jd(l.fetch,h.toString(),p,de({headers:v},m?.duplex?{duplex:m.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const l=de({},r.headers);t?.upsert&&(l["x-upsert"]="true");const c=await gn(r.fetch,`${r.url}/object/upload/sign/${s}`,{},{headers:l}),u=new URL(r.url+c.url),h=u.searchParams.get("token");if(!h)throw new Mc("No token returned by API");return{signedUrl:u.toString(),path:e,token:h}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var s=this;return s.handleOperation(async()=>await gn(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,de
38stinationBucket:r?.destinationBucket},{headers:s.headers}))}async copy(e,t,r){var s=this;return s.handleOperation(async()=>({path:(await gn(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(e,t,r){var s=this;return s.handleOperation(async()=>{let l=s._getFinalPath(e);const c=typeof r?.transform=="object"&&r.transform!==null&&Object.keys(r.transform).length>0;let u=await gn(s.fetch,`${s.url}/object/sign/${l}`,de({expiresIn:t},c?{transform:r.transform}:{}),{headers:s.headers});const h=new URLSearchParams;r?.download&&h.set("download",r.download===!0?"":r.download),r?.cacheNonce!=null&&h.set("cacheNonce",String(r.cacheNonce));const p=h.toString();return{signedUrl:encodeURI(`${s.url}${u.signedURL}${p?`&${p}`:""}`)}})}async createSignedUrls(e,t,r){var s=this;return s.handleOperation(async()=>{const l=await gn(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:t,paths:e},{headers:s.headers}),c=new URLSearchParams;r?.download&&c.set("download",r.download===!0?"":r.download),r?.cacheNonce!=null&&c.set("cacheNonce",String(r.cacheNonce));const u=c.toString();return l.map(h=>de(de({},h),{},{signedUrl:h.signedURL?encodeURI(`${s.url}${h.signedURL}${u?`&${u}`:""}`):null}))})}download(e,t,r){const s=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",l=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(l,t.transform),t?.cacheNonce!=null&&l.set("cacheNonce",String(t.cacheNonce));const c=l.toString(),u=this._getFinalPath(e),h=()=>la(this.fetch,`${this.url}/${s}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},r);return new AO(h,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Qd(await la(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await CO(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(l){if(t.shouldThrowOnError)throw l;if(Nc(l)){var s;const c=l instanceof Yd?l.status:l instanceof Jw?(s=l.originalError)===null||s===void 0?void 0:s.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:l}}throw l}}getPublicUrl(e,t){const r=this._getFinalPath(e),s=new URLSearchParams;t?.download&&s.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(s,t.transform),t?.cacheNonce!=null&&s.set("cacheNonce",String(t.cacheNonce));const l=s.toString(),c=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${r}`)+(l?`?${l}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await _h(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var s=this;return s.handleOperation(async()=>{const l=de(de(de({},PO),t),{},{prefix:e||""});return await gn(s.fetch,`${s.url}/object/list/${s.bucketId}`,l,{headers:s.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const s=de({},e);return await gn(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,s,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const LO="2.107.0",ga={"X-Client-Info":`storage-js/${LO}`};var IO=class extends Ms{constructor(e,t={},r,s){const l=new URL(e);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(l.hostname)&&!l.hostname.includes("storage.supabase.")&&(l.hostname=l.hostname.replace("supabase.","storage.supabase."));const c=l.href.replace(/\/$/,""),u=de(de({},ga),t);super(c,u,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await la(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await la(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await gn(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Jd(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await gn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _h(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},kO=class extends Ms{constructor(e,t={},r){const s=e.replace(/\/$/,""),l=de(de({},ga),t);super(s,l,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await gn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
38{const r=new URLSearchParams;e?.limit!==void 0&&r.set("limit",e.limit.toString()),e?.offset!==void 0&&r.set("offset",e.offset.toString()),e?.sortColumn&&r.set("sortColumn",e.sortColumn),e?.sortOrder&&r.set("sortOrder",e.sortOrder),e?.search&&r.set("search",e.search);const s=r.toString(),l=s?`${t.url}/bucket?${s}`:`${t.url}/bucket`;return await la(t.fetch,l,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _h(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!bO(e))throw new Mc("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new pO({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(r,{get(l,c){const u=l[c];return typeof u!="function"?u:async(...h)=>{try{return{data:await u.apply(l,h),error:null}}catch(p){if(s)throw p;return{data:null,error:p}}}}})}},$O=class extends Ms{constructor(e,t={},r){const s=e.replace(/\/$/,""),l=de(de({},ga),{},{"Content-Type":"application/json"},t);super(s,l,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Jt.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Jt.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},xO=class extends Ms{constructor(e,t={},r){const s=e.replace(/\/$/,""),l=de(de({},ga),{},{"Content-Type":"application/json"},t);super(s,l,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},DO=class extends Ms{constructor(e,t={},r){const s=e.replace(/\/$/,""),l=de(de({},ga),{},{"Content-Type":"application/json"},t);super(s,l,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Jt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},jO=class extends DO{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new MO(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}}
38,MO=class extends $O{constructor(e,t,r,s){super(e,t,s),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new NO(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},NO=class extends xO{constructor(e,t,r,s,l){super(e,t,l),this.vectorBucketName=r,this.indexName=s}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,de(de({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},zO=class extends IO{constructor(e,t={},r,s){super(e,t,r,s)}from(e){return new OO(this.url,this.headers,e,this.fetch)}get vectors(){return new jO(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new kO(this.url+"/iceberg",this.headers,this.fetch)}};const e_="2.107.0",xr=30*1e3,Ki=3,Ed=Ki*xr,UO="http://localhost:9999",BO="supabase.auth.token",qO={"X-Client-Info":`gotrue-js/${e_}`},Xd="X-Supabase-Api-Version",t_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},HO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,VO=600*1e3;class ca extends Error{constructor(t,r,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function W(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class FO extends ca{constructor(t,r,s){super(t,r,s),this.name="AuthApiError",this.status=r,this.code=s}}function GO(e){return W(e)&&e.name==="AuthApiError"}class yn extends ca{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class On extends ca{constructor(t,r,s,l){super(t,s,l),this.name=r,this.status=s}}class pt extends On{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Gl(e){return W(e)&&e.name==="AuthSessionMissingError"}class ws extends On{constructor(){super("Auth session or user missing","AuthInvalidToken
38ResponseError",500,void 0)}}class Kl extends On{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Yl extends On{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function KO(e){return W(e)&&e.name==="AuthImplicitGrantRedirectError"}class zy extends On{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class YO extends On{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Zd extends On{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Cd(e){return W(e)&&e.name==="AuthRetryableFetchError"}class Uy extends On{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function QO(e){return W(e)&&e.name==="AuthRefreshDiscardedError"}class By extends On{constructor(t,r,s){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class mc extends On{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),qy=` 39\r=`.split(""),JO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<qy.length;t+=1)e[qy[t].charCodeAt(0)]=-2;for(let t=0;t<gc.length;t+=1)e[gc[t].charCodeAt(0)]=t;return e})();function Hy(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;r(gc[s]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;r(gc[s]),t.queuedBits-=6}}function n_(e,t,r){const s=JO[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Vy(e){const t=[],r=u=>{t.push(String.fromCodePoint(u))},s={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},c=u=>{WO(u,s,r)};for(let u=0;u<e.length;u+=1)n_(e.charCodeAt(u),l,c);return t.join("")}function XO(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function ZO(e,t){for(let r=0;r<e.length;r+=1){let s=e.charCodeAt(r);if(s>55295&&s<=56319){const l=(s-55296)*1024&65535;s=(e.charCodeAt(r+1)-56320&65535|l)+65536,r+=1}XO(s,t)}}function WO(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let s=1;s<6;s+=1)if((e>>7-s&1)===0){t.utf8seq=s;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Ds(e){const t=[],r={queue:0,queuedBits:0},s=l=>{t.push(l)};for(let l=0;l<e.length;l+=1)n_(e.charCodeAt(l),r,s);return new Uint8Array(t)}function e1(e){const t=[];return ZO(e,r=>t.push(r)),new Uint8Array(t)}function Ro(e){const t=[],r={queue:0,queuedBits:0},s=l=>{t.push(l)};return e.forEach(l=>Hy(l,r,s)),Hy(null,r,s),t.join("")}function t1(e){return Math.round(Date.now()/1e3)+e}function n1(){return Symbol("auth-callback")}const Ct=()=>typeof window<"u"&&typeof document<"u",go={tested:!1,writable:!1},r_=()=>{if(!Ct())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(go.tested)return go.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),go.tested=!0,go.writable=!0}catch{go.tested=!0,go.writable=!1}return go.writable};function r1(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
39h((l,c)=>{t[c]=l})}catch{}return r.searchParams.forEach((s,l)=>{t[l]=s}),t}const o_=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),o1=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Os=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Zn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return null}},ct=async(e,t)=>{await e.removeItem(t)};class zc{constructor(){this.promise=new zc.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}zc.promiseConstructor=Promise;function Ql(e){const t=e.split(".");if(t.length!==3)throw new mc("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!HO.test(t[s]))throw new mc("JWT not in base64url format");return{header:JSON.parse(Vy(t[0])),payload:JSON.parse(Vy(t[1])),signature:Ds(t[2]),raw:{header:t[0],payload:t[1]}}}async function s1(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function i1(e,t){return new Promise((s,l)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await e(c);if(!t(c,null,u)){s(u);return}}catch(u){if(!t(c,u)){l(u);return}}})()})}function a1(e){return("0"+e.toString(16)).substr(-2)}function l1(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=r.length;let l="";for(let c=0;c<56;c++)l+=r.charAt(Math.floor(Math.random()*s));return l}return crypto.getRandomValues(t),Array.from(t,a1).join("")}async function c1(e){const r=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",r),l=new Uint8Array(s);return Array.from(l).map(c=>String.fromCharCode(c)).join("")}async function u1(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await c1(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _s(e,t,r=!1){const s=l1();let l=s;r&&(l+="/recovery"),await Os(e,`${t}-code-verifier`,l);const c=await u1(s);return[c,s===c?"plain":"s256"]}const f1=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function d1(e){const t=e.headers.get(Xd);if(!t||!t.match(f1))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function h1(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function p1(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const m1=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Wn(e){if(!m1.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function mn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Td(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function g1(e,t){return new Proxy(e,{get:(r,s,l)=>{if(s==="__isInsecureUserWarningProxy")return!0;
39if(typeof s=="symbol"){const c=s.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,s,l)}return!t.value&&typeof s=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,s,l)}})}function Fy(e){return JSON.parse(JSON.stringify(e))}const vo=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},v1=[502,503,504,520,521,522,523,524,530];async function Gy(e){var t;if(!o1(e))throw new Zd(vo(e),0);if(v1.includes(e.status))throw new Zd(vo(e),e.status);let r;try{r=await e.json()}catch(c){throw new yn(vo(c),c)}let s;const l=d1(e);if(l&&l.getTime()>=t_["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?s=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(s=r.error_code),s){if(s==="weak_password")throw new By(vo(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new pt}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new By(vo(r),e.status,r.weak_password.reasons);throw new FO(vo(r),e.status||500,s)}const y1=(e,t,r,s)=>{const l={method:e,headers:t?.headers||{}};return e==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),l.body=JSON.stringify(s),Object.assign(Object.assign({},l),r))};async function ne(e,t,r,s){var l;const c=Object.assign({},s?.headers);c[Xd]||(c[Xd]=t_["2024-01-01"].name),s?.jwt&&(c.Authorization=`Bearer ${s.jwt}`);const u=(l=s?.query)!==null&&l!==void 0?l:{};s?.redirectTo&&(u.redirect_to=s.redirectTo);const h=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",p=await w1(e,t,r+h,{headers:c,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(p):{data:Object.assign({},p),error:null}}async function w1(e,t,r,s,l,c){const u=y1(t,s,l,c);let h;try{h=await e(r,Object.assign({},u))}catch(p){throw console.error(p),new Zd(vo(p),0)}if(h.ok||await Gy(h),s?.noResolveJson)return h;try{return await h.json()}catch(p){await Gy(p)}}function cn(e){var t;let r=null;S1(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=t1(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:typeof e?.id=="string"?e:null;return{data:{session:r,user:s},error:null}}function Ky(e){const t=cn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,s)=>r&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Nr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function _1(e){return{data:e,error:null}}function b1(e){const{action_link:t,email_otp:r,hashed_token:s,redirect_to:l,verification_type:c}=e,u=jc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),h={action_link:t,email_otp:r,hashed_token:s,redirect_to:l,verification_type:c},p=Object.assign({},u);return{data:{properties:h,user:p},error:null}}function Yy(e){return e}function S1(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Ad=["global","local","others"];class R1{constructor({url:t="",headers:r={},fetch:s,experimental:l}){this.url=t,this.headers=r,this.fetch=o_(s),this.experimental=l??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,r=Ad[0]){if(Ad.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ad.join(", ")}`);try{return await ne(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(W(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,r={}){try{return await ne(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Nr})}catch(s){if(W(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:r}=t,s=jc(t,["options"]),l=Object.assign(Object.assign({},s),r);return"newEmail"in s&&(l.new_email=s?.newEmail,delete l.newEmail),await ne(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:b1,redirectTo:r?.redirectTo})}catch(r){if(W(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Nr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,s,l,c,u,h,p;try{const m={nextPage:null,lastPage:0,total:0},v=await ne(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(r=t?.page)===null||r===void 0?void 0:r.toString())!==null&&s!==void 0?s:"",per_page:(c=(l=t?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:Yy});if(v.error)throw v.error;const g=await v.json(),w=(u=v.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(p=(h=v.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&p!==void 0?p:[];return _.length>0&&(_.forEach(S=>{const C=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),R=JSON.parse(S.split(";")[1].split("=")[1]);m[`${R}Page`]=C}),m.total=parseInt(w)),{data:Object.assign(Object.assign({},g),m),error:null}}catch(m){if(W(m))return{data:{users:[]},error:m};throw m}}async getUserById(t){Wn(t);try{return await ne(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Nr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){Wn(t);try{return await ne(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Nr})}catch(s){if(W(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,r=!1){Wn(t);
39try{return await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Nr})}catch(s){if(W(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){Wn(t.userId);try{const{data:r,error:s}=await ne(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:r,error:s}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteFactor(t){Wn(t.userId),Wn(t.id);try{return{data:await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,s,l,c,u,h,p;try{const m={nextPage:null,lastPage:0,total:0},v=await ne(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(r=t?.page)===null||r===void 0?void 0:r.toString())!==null&&s!==void 0?s:"",per_page:(c=(l=t?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:Yy});if(v.error)throw v.error;const g=await v.json(),w=(u=v.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(p=(h=v.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&p!==void 0?p:[];return _.length>0&&(_.forEach(S=>{const C=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),R=JSON.parse(S.split(";")[1].split("=")[1]);m[`${R}Page`]=C}),m.total=parseInt(w)),{data:Object.assign(Object.assign({},g),m),error:null}}catch(m){if(W(m))return{data:{clients:[]},error:m};throw m}}async _createOAuthClient(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await ne(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await ne(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(W(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(t){try{return await ne(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _listCustomProviders(t){try{const r={};return t?.type&&(r.type=t.type),await ne(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:r,xform:s=>{var l;return{data:{providers:(l=s?.providers)!==null&&l!==void 0?l:[]},error:null}}})}catch(r){if(W(r))return{data:{providers:[]},error:r};throw r}}async _createCustomProvider(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _getCustomProvider(t){try{return await ne(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _updateCustomProvider(t,r){try{return await ne(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:r,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(W(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(t){try{return await ne(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _adminListPasskeys(t){mn(this.experimental),Wn(t.userId);try{return await ne(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _adminDeletePasskey(t){mn(this.experimental),Wn(t.userId),Wn(t.passkeyId);
39try{return await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}}function Qy(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}globalThis&&r_()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class E1 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function C1(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function s_(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function T1(e){return parseInt(e,16)}function A1(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,s=>s.toString(16).padStart(2,"0")).join("")}function P1(e){var t;const{chainId:r,domain:s,expirationTime:l,issuedAt:c=new Date,nonce:u,notBefore:h,requestId:p,resources:m,scheme:v,uri:g,version:w}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(w!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${w}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 40`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const _=s_(e.address),S=v?`${v}://${s}`:s,C=e.statement?`${e.statement} 41`:"",R=`${S} wants you to sign in with your Ethereum account: 42${_} 43 44${C}`;let E=`URI: ${g} 45Version: ${w} 46Chain ID: ${r}${u?` 47Nonce: ${u}`:""} 48Issued At: ${c.toISOString()}`;if(l&&(E+=` 49Expiration Time: ${l.toISOString()}`),h&&(E+=` 50Not Before: ${h.toISOString()}`),p&&(E+=` 51Request ID: ${p}`),m){let A=` 52Resources:`;for(const $ of m){if(!$||typeof $!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${$}`);A+=` 53- ${$}`}E+=A}return`${R} 54${E}`}class ot extends Error{constructor({message:t,code:r,cause:s,name:l}){var c;super(t,{cause:s}),this.__isWebAuthnError=!0,this.name=(c=l??(s instanceof Error?s.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=r}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class vc extends ot{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function O1({error:e,options:t}){var r,s,l;const{publicKey:c}=t;if(!c)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ot({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=c.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new ot({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((s=c.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new ot({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((l=c.authenticatorSelection)===null||l===void 0?void 0:l.userVerification)==="required")return new ot({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new ot({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ot({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return c.pubKeyCredParams.filter(h=>h.type==="public-key").length===0?new ot({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ot({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const u=window.location.hostname;if(i_(u)){if(c.rp.id!==u)return new ot({message:`The RP ID "${c.rp.id}
54" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ot({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new ot({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new ot({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new ot({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function L1({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ot({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new ot({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(i_(s)){if(r.rpId!==s)return new ot({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ot({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new ot({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new ot({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class I1{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Wd=new I1;function Jy(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:s}=e,l=jc(e,["challenge","user","excludeCredentials"]),c=Ds(t).buffer,u=Object.assign(Object.assign({},r),{id:Ds(r.id).buffer}),h=Object.assign(Object.assign({},l),{challenge:c,user:u});if(s&&s.length>0){h.excludeCredentials=new Array(s.length);for(let p=0;p<s.length;p++){const m=s[p];h.excludeCredentials[p]=Object.assign(Object.assign({},m),{id:Ds(m.id).buffer,type:m.type||"public-key",transports:m.transports})}}return h}function Xy(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,s=jc(e,["challenge","allowCredentials"]),l=Ds(t).buffer,c=Object.assign(Object.assign({},s),{challenge:l});if(r&&r.length>0){c.allowCredentials=new Array(r.length);for(let u=0;u<r.length;u++){const h=r[u];c.allowCredentials[u]=Object.assign(Object.assign({},h),{id:Ds(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return c}function Zy(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ro(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ro(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Wy(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,s=e.getClientExtensionResults(),l=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ro(new Uint8Array(l.authenticatorData)),clientDataJSON:Ro(new Uint8Array(l.clientDataJSON)),signature:Ro(new Uint8Array(l.signature)),userHandle:l.userHandle?Ro(new Uint8Array(l.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function i_(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function yc(){var e,t;return!!(Ct()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function a_(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new vc("Browser returned unexpected credential type",t)}:{data:null,error:new vc("Empty credential response",t)}}
54catch(t){return{data:null,error:O1({error:t,options:e})}}}async function l_(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new vc("Browser returned unexpected credential type",t)}:{data:null,error:new vc("Empty credential response",t)}}catch(t){return{data:null,error:L1({error:t,options:e})}}}const k1={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},$1={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function wc(...e){const t=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),r=l=>l instanceof ArrayBuffer||ArrayBuffer.isView(l),s={};for(const l of e)if(l)for(const c in l){const u=l[c];if(u!==void 0)if(Array.isArray(u))s[c]=u;else if(r(u))s[c]=u;else if(t(u)){const h=s[c];t(h)?s[c]=wc(h,u):s[c]=wc(u)}else s[c]=u}return s}function x1(e,t){return wc(k1,e,t||{})}function D1(e,t){return wc($1,e,t||{})}class j1{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:s,signal:l},c){var u;try{const{data:h,error:p}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!h)return{data:null,error:p};const m=l??Wd.createNewAbortSignal();if(h.webauthn.type==="create"){const{user:v}=h.webauthn.credential_options.publicKey;if(!v.name){const g=s;if(g)v.name=`${v.id}:${g}`;else{const _=(await this.client.getUser()).data.user,S=((u=_?.user_metadata)===null||u===void 0?void 0:u.name)||_?.email||_?.id||"User";v.name=`${v.id}:${S}`}}
54v.displayName||(v.displayName=v.name)}switch(h.webauthn.type){case"create":{const v=x1(h.webauthn.credential_options.publicKey,c?.create),{data:g,error:w}=await a_({publicKey:v,signal:m});return g?{data:{factorId:t,challengeId:h.id,webauthn:{type:h.webauthn.type,credential_response:g}},error:null}:{data:null,error:w}}case"request":{const v=D1(h.webauthn.credential_options.publicKey,c?.request),{data:g,error:w}=await l_(Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:v,signal:m}));return g?{data:{factorId:t,challengeId:h.id,webauthn:{type:h.webauthn.type,credential_response:g}},error:null}:{data:null,error:w}}}}catch(h){return W(h)?{data:null,error:h}:{data:null,error:new yn("Unexpected error in challenge",h)}}}async _verify({challengeId:t,factorId:r,webauthn:s}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:s})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!r)return{data:null,error:new ca("rpId is required for WebAuthn authentication")};try{if(!yc())return{data:null,error:new yn("Browser does not support WebAuthn",null)};const{data:u,error:h}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:s},signal:l},{request:c});if(!u)return{data:null,error:h};const{webauthn:p}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:p.type,rpId:r,rpOrigins:s,credential_response:p.credential_response}})}catch(u){return W(u)?{data:null,error:u}:{data:null,error:new yn("Unexpected error in authenticate",u)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!r)return{data:null,error:new ca("rpId is required for WebAuthn registration")};try{if(!yc())return{data:null,error:new yn("Browser does not support WebAuthn",null)};const{data:u,error:h}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(v=>{var g;return(g=v.data)===null||g===void 0?void 0:g.all.find(w=>w.factor_type==="webauthn"&&w.friendly_name===t&&w.status!=="unverified")}).then(v=>v?this.client.mfa.unenroll({factorId:v?.id}):void 0),{data:null,error:h};const{data:p,error:m}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:r,rpOrigins:s},signal:l},{create:c});return p?this._verify({factorId:u.id,challengeId:p.challengeId,webauthn:{rpId:r,rpOrigins:s,type:p.webauthn.type,credential_response:p.webauthn.credential_response}}):{data:null,error:m}}catch(u){return W(u)?{data:null,error:u}:{data:null,error:new yn("Unexpected error in register",u)}}}}C1();const M1={url:UO,storageKey:BO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:qO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},bs={};class ua{get jwks(){var t,r;return(r=(t=bs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){bs[this.storageKey]=Object.assign(Object.assign({},bs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=bs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){bs[this.storageKey]=Object.assign(Object.assign({},bs[this.storageKey]),{cachedAt:t})}constructor(t){var r,s,l;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const c=Object.assign(Object.assign({},M1),t);if(this.storageKey=c.storageKey,this.instanceID=(r=ua.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,ua.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!c.debug,typeof c.debug=="function"&&(this.logger=c.debug),this.instanceID>0&&Ct()){const u=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(u),this.logDebugMessages&&console.trace(u)}if(this.persistSession=c.persistSession,this.autoRefreshToken=c.autoRefreshToken,this.experimental=(s=c.experimental)!==null&&s!==void 0?s:{},this.admin=new R1({url:c.url,headers:c.headers,fetch:c.fetch,experimental:this.experimental}),this.url=c.url,this.headers=c.headers,this.fetch=o_(c.fetch),this.detectSessionInUrl=c.detectSessionInUrl,this.flowType=c.flowType,this.hasCustomAuthorizationHeader=c.hasCustomAuthorizationHeader,this.throwOnError=c.throwOnError,this.lockAcquireTimeout=c.lockAcquireTimeout,c.lock!=null&&(this.lock=c.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new j1(this)}
54,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(c.storage?this.storage=c.storage:r_()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Qy(this.memoryStorage)),c.userStorage&&(this.userStorage=c.userStorage)):(this.memoryStorage={},this.storage=Qy(this.memoryStorage)),Ct()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(u){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",u)}(l=this.broadcastChannel)===null||l===void 0||l.addEventListener("message",async u=>{this._debug("received broadcast notification from other tab or client",u);try{await this._notifyAllSubscribers(u.data.event,u.data.session,!1)}catch(h){this._debug("#broadcastChannel","error",h)}})}c.skipAutoInitialize||this.initialize().catch(u=>{this._debug("#initialize()","error",u)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${e_}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var t;try{let r={},s="none";if(Ct()&&(r=r1(window.location.href),this._isImplicitGrantCallback(r)?s="implicit":await this._isPKCECallback(r)&&(s="pkce")),Ct()&&this.detectSessionInUrl&&s!=="none"){const{data:l,error:c}=await this._getSessionFromURL(r,s);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),KO(c)){const p=(t=c.details)===null||t===void 0?void 0:t.code;if(p==="identity_already_exists"||p==="identity_not_found"||p==="single_identity_not_deletable")return{error:c}}return{error:c}}const{session:u,redirectType:h}=l;return this._debug("#_initialize()","detected session in URL",u,"redirect type",h),await this._saveSession(u),setTimeout(async()=>{h==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return W(r)?this._returnResult({error:r}):this._returnResult({error:new yn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,s,l;try{const c=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(r=t?.options)===null||r===void 0?void 0:r.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(l=t?.options)===null||l===void 0?void 0:l.captchaToken}},xform:cn}),{data:u,error:h}=c;if(h||!u)return this._returnResult({data:{user:null,session:null},error:h});const p=u.session,m=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(c){if(W(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(t){var r,s,l;try{let c;if("email"in t){const{email:v,password:g,options:w}=t;let _=null,S=null;this.flowType==="pkce"&&([_,S]=await _s(this.storage,this.storageKey)),c=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:w?.emailRedirectTo,body:{email:v,password:g,data:(r=w?.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:w?.captchaToken},code_challenge:_,code_challenge_method:S},xform:cn})}else if("phone"in t){const{phone:v,password:g,options:w}=t;c=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:v,password:g,data:(s=w?.data)!==null&&s!==void 0?s:{},channel:(l=w?.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:w?.captchaToken}},xform:cn})}else throw new Kl("You must provide either an email or phone number and a password");const{data:u,error:h}=c;if(h||!u)return await ct(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:h});const p=u.session,m=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(c){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signInWithPassword(t){try{let r;if("email"in t){const{email:c,password:u,options:h}=t;r=await ne(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:Ky})}else if("phone"in t){const{phone:c,password:u,options:h}=t;r=await ne(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:Ky})}else throw new Kl("You must provide either an email or phone number and a password");const{data:s,error:l}=r;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s||!s.session||!s.user){const c=new ws;return this._returnResult({data:{user:null,session:null},error:c})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:l})}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,s,l,c;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(c=t.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,s,l,c,u,h,p,m,v,g,w;let _,S;if("message"in t)_=t.message,S=t.signature;else{const{chain:C,wallet:R,statement:E,options:A}=t;let $;if(Ct())if(typeof R=="object")$=R;else{const X=window;if("ethereum"in X&&typeof X.ethereum=="object"&&"request"in X.ethereum&&typeof X.ethereum.request=="function")$=X.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof R!="object"||!A?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");$=R}const N=new URL((r=A?.url)!==null&&r!==void 0?r:window.location.href),V=await $.request({method:"eth_requestAccounts"}).then(X=>X).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!V||V.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const K=s_(V[0]);let z=(s=A?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!z){const X=await $.request({method:"eth_chainId"});z=T1(X)}const Y={domain:N.host,address:K,statement:E,uri:N.href,version:"1",chainId:z,nonce:(l=A?.signInWithEthereum)===null||l===void 0?void 0:l.nonce,issuedAt:(u=(c=A?.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(h=A?.signInWithEthereum)===null||h===void 0?void 0:h.expirationTime,notBefore:(p=A?.signInWithEthereum)===null||p===void 0?void 0:p.notBefore,requestId:(m=A?.signInWithEthereum)===null||m===void 0?void 0:m.requestId,resources:(v=A?.signInWithEthereum)===null||v===void 0?void 0:v.resources};_=P1(Y),S=await $.request({method:"personal_sign",params:[A1(_),K]})}try{const{data:C,error:R}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:_,signature:S},!((g=t.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(w=t.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:cn});if(R)throw R;if(!C||!C.session||!C.user){const E=new ws;return this._returnResult({data:{user:null,session:null},error:E})}return C.session&&(await this._saveSession(C.session),await this._notifyAllSubscribers("SIGNED_IN",C.session)),this._returnResult({data:Object.assign({},C),error:R})}catch(C){if(W(C))return this._returnResult({data:{user:null,session:null},error:C});throw C}}async signInWithSolana(t){var r,s,l,c,u,h,p,m,v,g,w,_;let S,C;if("message"in t)S=t.message,C=t.signature;else{const{chain:R,wallet:E,statement:A,options:$}=t;let N;
54if(Ct())if(typeof E=="object")N=E;else{const K=window;if("solana"in K&&typeof K.solana=="object"&&("signIn"in K.solana&&typeof K.solana.signIn=="function"||"signMessage"in K.solana&&typeof K.solana.signMessage=="function"))N=K.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof E!="object"||!$?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");N=E}const V=new URL((r=$?.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in N&&N.signIn){const K=await N.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},$?.signInWithSolana),{version:"1",domain:V.host,uri:V.href}),A?{statement:A}:null));let z;if(Array.isArray(K)&&K[0]&&typeof K[0]=="object")z=K[0];else if(K&&typeof K=="object"&&"signedMessage"in K&&"signature"in K)z=K;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in z&&"signature"in z&&(typeof z.signedMessage=="string"||z.signedMessage instanceof Uint8Array)&&z.signature instanceof Uint8Array)S=typeof z.signedMessage=="string"?z.signedMessage:new TextDecoder().decode(z.signedMessage),C=z.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in N)||typeof N.signMessage!="function"||!("publicKey"in N)||typeof N!="object"||!N.publicKey||!("toBase58"in N.publicKey)||typeof N.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${V.host} wants you to sign in with your Solana account:`,N.publicKey.toBase58(),...A?["",A,""]:[""],"Version: 1",`URI: ${V.href}`,`Issued At: ${(l=(s=$?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&l!==void 0?l:new Date().toISOString()}`,...!((c=$?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${$.signInWithSolana.notBefore}`]:[],...!((u=$?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${$.signInWithSolana.expirationTime}`]:[],...!((h=$?.signInWithSolana)===null||h===void 0)&&h.chainId?[`Chain ID: ${$.signInWithSolana.chainId}`]:[],...!((p=$?.signInWithSolana)===null||p===void 0)&&p.nonce?[`Nonce: ${$.signInWithSolana.nonce}`]:[],...!((m=$?.signInWithSolana)===null||m===void 0)&&m.requestId?[`Request ID: ${$.signInWithSolana.requestId}`]:[],...!((g=(v=$?.signInWithSolana)===null||v===void 0?void 0:v.resources)===null||g===void 0)&&g.length?["Resources",...$.signInWithSolana.resources.map(z=>`- ${z}`)]:[]].join(` 55`);const K=await N.signMessage(new TextEncoder().encode(S),"utf8");if(!K||!(K instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");C=K}}try{const{data:R,error:E}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:Ro(C)},!((w=t.options)===null||w===void 0)&&w.captchaToken?{gotrue_meta_security:{captcha_token:(_=t.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:cn});if(E)throw E;if(!R||!R.session||!R.user){const A=new ws;return this._returnResult({data:{user:null,session:null},error:A})}return R.session&&(await this._saveSession(R.session),await this._notifyAllSubscribers("SIGNED_IN",R.session)),this._returnResult({data:Object.assign({},R),error:E})}catch(R){if(W(R))return this._returnResult({data:{user:null,session:null},error:R});throw R}}async _exchangeCodeForSession(t){const r=await Zn(this.storage,`${this.storageKey}-code-verifier`),[s,l]=(r??"").split("/");try{if(!s&&this.flowType==="pkce")throw new YO;const{data:c,error:u}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:cn});if(await ct(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const h=new ws;return this._returnResult({data:{user:null,session:null,redirectType:null},error:h})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers(l==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c.session)),this._returnResult({data:Object.assign(Object.assign({},c),{redirectType:l??null}),error:u})}catch(c){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(c))return this._returnResult({data:{user:null,session:null,redirectType:null},error:c});throw c}}async signInWithIdToken(t){try{const{options:r,provider:s,token:l,access_token:c,nonce:u}=t,h=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:l,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:r?.captchaToken}},xform:cn}),{data:p,error:m}=h;if(m)return this._returnResult({data:{user:null,session:null},error:m});if(!p||!p.session||!p.user){const v=new ws;return this._returnResult({data:{user:null,session:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:p,error:m})}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,s,l,c,u;try{if("email"in t){const{email:h,options:p}=t;let m=null,v=null;this.flowType==="pkce"&&([m,v]=await _s(this.storage,this.storageKey));const{error:g}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:h,data:(r=p?.data)!==null&&r!==void 0?r:{}
55,create_user:(s=p?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:m,code_challenge_method:v},redirectTo:p?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in t){const{phone:h,options:p}=t,{data:m,error:v}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:h,data:(l=p?.data)!==null&&l!==void 0?l:{},create_user:(c=p?.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},channel:(u=p?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:m?.message_id},error:v})}throw new Kl("You must provide either an email or phone number.")}catch(h){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(h))return this._returnResult({data:{user:null,session:null},error:h});throw h}}async verifyOtp(t){var r,s;try{let l,c;"options"in t&&(l=(r=t.options)===null||r===void 0?void 0:r.redirectTo,c=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:u,error:h}=await ne(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:c}}),redirectTo:l,xform:cn});if(h)throw h;if(!u)throw new Error("An error occurred on token verification.");const p=u.session,m=u.user;return p?.access_token&&(await this._saveSession(p),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(l){if(W(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithSSO(t){var r,s,l,c,u;try{let h=null,p=null;this.flowType==="pkce"&&([h,p]=await _s(this.storage,this.storageKey));const m=await ne(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&s!==void 0?s:void 0}),!((l=t?.options)===null||l===void 0)&&l.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:h,code_challenge_method:p}),headers:this.headers,xform:_1});return!((c=m.data)===null||c===void 0)&&c.url&&Ct()&&!(!((u=t.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(m.data.url),this._returnResult(m)}catch(h){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(h))return this._returnResult({data:null,error:h});throw h}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:s}=t;if(s)throw s;if(!r)throw new pt;const{error:l}=await ne(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:l})})}catch(t){if(W(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:s,type:l,options:c}=t,{error:u}=await ne(this.fetch,"POST",r,{headers:this.headers,body:{email:s,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}},redirectTo:c?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in t){const{phone:s,type:l,options:c}=t,{data:u,error:h}=await ne(this.fetch,"POST",r,{headers:this.headers,body:{phone:s,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:h})}throw new Kl("You must provide either an email or phone number and a type")}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await s,await r()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=r();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Zn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
55id"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<Ed:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.userStorage){const u=await Zn(this.userStorage,this.storageKey+"-user");u?.user?t.user=u.user:t.user=Td()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};t.user=g1(t.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{session:null},error:c}):this._returnResult({data:{session:l},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let r;return this.lock!=null?r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):r=await this._getUser(),r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Nr}):await this._useSession(async r=>{var s,l,c;const{data:u,error:h}=r;if(h)throw h;return!(!((s=u.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new pt}:await ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(l=u.session)===null||l===void 0?void 0:l.access_token)!==null&&c!==void 0?c:void 0,xform:Nr})})}catch(r){if(W(r))return Gl(r)&&(await this._removeSession(),await ct(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r)):await this._updateUser(t,r)}async _updateUser(t,r={}){try{return await this._useSession(async s=>{const{data:l,error:c}=s;if(c)throw c;if(!l.session)throw new pt;const u=l.session;let h=null,p=null;this.flowType==="pkce"&&t.email!=null&&([h,p]=await _s(this.storage,this.storageKey));const{data:m,error:v}=await ne(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:h,code_challenge_method:p}),jwt:u.access_token,xform:Nr});if(v)throw v;return u.user=m.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(s){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new pt;const r=Date.now()/1e3;let s=r,l=!0,c=null;const{payload:u}=Ql(t.access_token);if(u.exp&&(s=u.exp,l=s<=r),l){const{data:h,error:p}=await this._callRefreshToken(t.refresh_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!h)return{data:{user:null,session:null},error:null};c=h}else{const{data:h,error:p}=await this._getUser(t.access_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});c={access_token:t.access_token,refresh_token:t.refresh_token,user:h.user,token_type:"bearer",expires_in:s-r,expires_at:s},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(r){if(W(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async r=>{var s;if(!t){const{data:u,error:h}=r;if(h)throw h;t=(s=u.session)!==null&&s!==void 0?s:void 0}if(!t?.refresh_token)throw new pt;const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{user:null,session:null},error:c}):l?this._returnResult({data:{user:l.user,session:l},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){var s;try{if(!Ct())throw new Yl("No browser detected.");
55if(t.error||t.error_description||t.error_code)throw new Yl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new zy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Yl("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new zy("No code detected.");const{data:$,error:N}=await this._exchangeCodeForSession(t.code);if(N)throw N;const V=new URL(window.location.href);return V.searchParams.delete("code"),window.history.replaceState(window.history.state,"",V.toString()),{data:{session:$.session,redirectType:(s=$.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:l,provider_refresh_token:c,access_token:u,refresh_token:h,expires_in:p,expires_at:m,token_type:v}=t;if(!u||!p||!h||!v)throw new Yl("No session defined in URL");const g=Math.round(Date.now()/1e3),w=parseInt(p);let _=g+w;m&&(_=parseInt(m));const S=_-g;S*1e3<=xr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${w}s`);const C=_-w;g-C>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",C,_,g):g-C<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",C,_,g);const{data:R,error:E}=await this._getUser(u);if(E)throw E;const A={provider_token:l,provider_refresh_token:c,access_token:u,expires_in:w,expires_at:_,refresh_token:h,token_type:v,user:R.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:A,redirectType:t.type},error:null})}catch(l){if(W(l))return this._returnResult({data:{session:null,redirectType:null},error:l});throw l}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const r=await Zn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var s;const{data:l,error:c}=r;if(c&&!Gl(c))return this._returnResult({error:c});const u=(s=l.session)===null||s===void 0?void 0:s.access_token;if(u){const{error:h}=await this.admin.signOut(u,t);if(h&&!(GO(h)&&(h.status===404||h.status===401||h.status===403)||Gl(h)))return this._returnResult({error:h})}return t!=="others"&&(await this._removeSession(),await ct(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=n1(),s={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,s),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)}):await this._emitInitialSession(r)))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async r=>{var s,l;try{const{data:{session:c},error:u}=r;if(u)throw u;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",t,"session",c)}catch(c){await((l=this.stateChangeEmitters.get(t))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",c),Gl(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(t,r={}){let s=null,l=null;this.flowType==="pkce"&&([s,l]=await _s(this.storage,this.storageKey,!0));try{return await ne(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:l,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(c){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(c))return this._returnResult({data:null,error:c});throw c}}async getUserIdentities(){var t;try{const{data:r,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:s,error:l}=await this._useSession(async c=>{var u,h,p,m,v;const{data:g,error:w}=c;if(w)throw w;const _=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(h=t.options)===null||h===void 0?void 0:h.scopes,queryParams:(p=t.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return await ne(this.fetch,"GET",_,{headers:this.headers,jwt:(v=(m=g.session)===null||m===void 0?void 0:m.access_token)!==null&&v!==void 0?v:void 0})});if(l)throw l;return Ct()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:t.provider,url:s?.url},error:null})}catch(s){if(W(s))return this._returnResult({data:{provider:t.provider,url:null},error:s});throw s}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var s;try{const{error:l,data:{session:c}}=r;if(l)throw l;const{options:u,provider:h,token:p,access_token:m,nonce:v}=t,g=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=c?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:h,id_token:p,access_token:m,nonce:v,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:cn}),{data:w,error:_}=g;return _?this._returnResult({data:{user:null,session:null},error:_}):!w||!w.session||!w.user?this._returnResult({data:{user:null,session:null},error:new ws}):(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("USER_UPDATED",w.session)),this._returnResult({data:w,error:_}))}catch(l){if(await ct(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var s,l;const{data:c,error:u}=r;if(u)throw u;
55return await ne(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(l=(s=c.session)===null||s===void 0?void 0:s.access_token)!==null&&l!==void 0?l:void 0})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r="#_refreshAccessToken()";this._debug(r,"begin");try{const s=Date.now();return await i1(async l=>(l>0&&await s1(200*Math.pow(2,l-1)),this._debug(r,"refreshing attempt",l),await ne(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:cn})),(l,c)=>{const u=200*Math.pow(2,l);return c&&Cd(c)&&Date.now()+u-s<xr})}catch(s){if(this._debug(r,"error",s),W(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",s),Ct()&&!r.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t,r;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const l=await Zn(this.storage,this.storageKey);if(l&&this.userStorage){let u=await Zn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:l.user},await Os(this.userStorage,this.storageKey+"-user",u)),l.user=(t=u?.user)!==null&&t!==void 0?t:Td()}else if(l&&!l.user&&!l.user){const u=await Zn(this.storage,this.storageKey+"-user");u&&u?.user?(l.user=u.user,await ct(this.storage,this.storageKey+"-user"),await Os(this.storage,this.storageKey,l)):l.user=Td()}if(this._debug(s,"session from storage",l),!this._isValidSession(l)){this._debug(s,"session is not valid"),l!==null&&await this._removeSession();return}const c=((r=l.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Ed;if(this._debug(s,`session has${c?"":" not"} expired with margin of ${Ed}s`),c){if(this.autoRefreshToken&&l.refresh_token){const{error:u}=await this._callRefreshToken(l.refresh_token);u&&(QO(u)?this._debug(s,"refresh discarded by commit guard",u):(console.error(u),Cd(u)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession())))}}else if(l.user&&l.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:h}=await this._getUser(l.access_token);!h&&u?.user?(l.user=u.user,await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(s,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",l)}catch(l){this._debug(s,"error",l),console.error(l);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var r,s;if(!t)throw new pt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const l="#_callRefreshToken()";this._debug(l,"begin");try{this.refreshingDeferred=new zc;const c=await Zn(this.storage,this.storageKey),{data:u,error:h}=await this._refreshAccessToken(t);if(h)throw h;if(!u.session)throw new pt;const p=await Zn(this.storage,this.storageKey);if(c!==null&&(p===null||p.refresh_token!==c.refresh_token)){this._debug(l,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:p?"replaced":"cleared"});const w={data:null,error:new Uy};return this.refreshingDeferred.resolve(w),w}const v=this._sessionRemovalEpoch;if(await this._saveSession(u.session),this._sessionRemovalEpoch!==v){this._debug(l,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await ct(this.storage,this.storageKey),this.userStorage&&await ct(this.userStorage,this.storageKey+"-user");const w={data:null,error:new Uy};return this.refreshingDeferred.resolve(w),w}await this._notifyAllSubscribers("TOKEN_REFRESHED",u.session);const g={data:u.session,error:null};return this.refreshingDeferred.resolve(g),g}catch(c){if(this._debug(l,"error",c),W(c)){const u={data:null,error:c};return Cd(c)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(u),u}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(c),c}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(t,r,s=!0){const l=`#_notifyAllSubscribers(${t})`;this._debug(l,"begin",r,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:r});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async h=>{try{await h.callback(t,r)}catch(p){c.push(p)}});if(await Promise.all(u),c.length>0){for(let h=0;h<c.length;h+=1)console.error(c[h]);throw c[0]}}finally{this._debug(l,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await ct(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),s=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&r.user&&await Os(this.userStorage,this.storageKey+"-user",{user:r.user});const l=Object.assign({},r);delete l.user;const c=Fy(l);await Os(this.storage,this.storageKey,c)}else{const l=Fy(r);await Os(this.storage,this.storageKey,l)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await ct(this.storage,this.storageKey),await ct(this.storage,this.storageKey+"-code-verifier"),await ct(this.storage,this.storageKey+"-user"),this.userStorage&&await ct(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ct()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
55catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),xr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:s}}=r;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((s.expires_at*1e3-t)/xr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${xr}ms, refresh threshold is ${Ki} ticks`),l<=Ki&&await this._callRefreshToken(s.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof E1)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async r=>{const{data:{session:s}}=r;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((s.expires_at*1e3-t)/xr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${xr}ms, refresh threshold is ${Ki} ticks`),l<=Ki&&await this._callRefreshToken(s.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ct()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;if(this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(r,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,s){const l=[`provider=${encodeURIComponent(r)}`];if(s?.redirectTo&&l.push(`redirect_to=${encodeURIComponent(s.redirectTo)}
55`),s?.scopes&&l.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[c,u]=await _s(this.storage,this.storageKey),h=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});l.push(h.toString())}if(s?.queryParams){const c=new URLSearchParams(s.queryParams);l.push(c.toString())}return s?.skipBrowserRedirect&&l.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${l.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var s;const{data:l,error:c}=r;return c?this._returnResult({data:null,error:c}):await ne(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var s,l;const{data:c,error:u}=r;if(u)return this._returnResult({data:null,error:u});const h=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:p,error:m}=await ne(this.fetch,"POST",`${this.url}/factors`,{body:h,headers:this.headers,jwt:(s=c?.session)===null||s===void 0?void 0:s.access_token});return m?this._returnResult({data:null,error:m}):(t.factorType==="totp"&&p.type==="totp"&&(!((l=p?.totp)===null||l===void 0)&&l.qr_code)&&(p.totp.qr_code=`data:image/svg+xml;utf-8,${p.totp.qr_code}`),this._returnResult({data:p,error:null}))})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){const r=async()=>{try{return await this._useSession(async s=>{var l;const{data:c,error:u}=s;if(u)return this._returnResult({data:null,error:u});const h=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Zy(t.webauthn.credential_response):Wy(t.webauthn.credential_response)})}:{code:t.code}),{data:p,error:m}=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:h,headers:this.headers,jwt:(l=c?.session)===null||l===void 0?void 0:l.access_token});return m?this._returnResult({data:null,error:m}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+p.expires_in},p)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",p),this._returnResult({data:p,error:m}))})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,r):r()}async _challenge(t){const r=async()=>{try{return await this._useSession(async s=>{var l;const{data:c,error:u}=s;if(u)return this._returnResult({data:null,error:u});const h=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(l=c?.session)===null||l===void 0?void 0:l.access_token});if(h.error)return h;const{data:p}=h;if(p.type!=="webauthn")return{data:p,error:null};switch(p.webauthn.type){case"create":return{data:Object.assign(Object.assign({},p),{webauthn:Object.assign(Object.assign({},p.webauthn),{credential_options:Object.assign(Object.assign({},p.webauthn.credential_options),{publicKey:Jy(p.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},p),{webauthn:Object.assign(Object.assign({},p.webauthn),{credential_options:Object.assign(Object.assign({},p.webauthn.credential_options),{publicKey:Xy(p.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,r):r()}async _challengeAndVerify(t){const{data:r,error:s}=await this._challenge({factorId:t.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:s}=await this.getUser();if(s)return{data:null,error:s};const l={all:[],phone:[],totp:[],webauthn:[]};for(const c of(t=r?.factors)!==null&&t!==void 0?t:[])l.all.push(c),c.status==="verified"&&l[c.factor_type].push(c);return{data:l,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,s,l,c;if(t)try{const{payload:_}=Ql(t);let S=null;_.aal&&(S=_.aal);let C=S;const{data:{user:R},error:E}=await this.getUser(t);if(E)return this._returnResult({data:null,error:E});((s=(r=R?.factors)===null||r===void 0?void 0:r.filter(N=>N.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(C="aal2");const $=_.amr||[];return{data:{currentLevel:S,nextLevel:C,currentAuthenticationMethods:$},error:null}}catch(_){if(W(_))return this._returnResult({data:null,error:_});throw _}const{data:{session:u},error:h}
55=await this.getSession();if(h)return this._returnResult({data:null,error:h});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:p}=Ql(u.access_token);let m=null;p.aal&&(m=p.aal);let v=m;((c=(l=u.user.factors)===null||l===void 0?void 0:l.filter(_=>_.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(v="aal2");const w=p.amr||[];return{data:{currentLevel:m,nextLevel:v,currentAuthenticationMethods:w},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;return l?this._returnResult({data:null,error:l}):s?await ne(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:s.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new pt})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async s=>{const{data:{session:l},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new pt});const u=await ne(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"approve"},xform:h=>({data:h,error:null})});return u.data&&u.data.redirect_url&&Ct()&&!r?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(t,r){try{return await this._useSession(async s=>{const{data:{session:l},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new pt});const u=await ne(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"deny"},xform:h=>({data:h,error:null})});return u.data&&u.data.redirect_url&&Ct()&&!r?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:s}=t;return s?this._returnResult({data:null,error:s}):r?await ne(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new pt})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;return l?this._returnResult({data:null,error:l}):s?(await ne(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new pt})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let s=r.keys.find(h=>h.kid===t);if(s)return s;const l=Date.now();if(s=this.jwks.keys.find(h=>h.kid===t),s&&this.jwks_cached_at+VO>l)return s;const{data:c,error:u}=await ne(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=l,s=c.keys.find(h=>h.kid===t),!s)?null:s}async getClaims(t,r={}){try{let s=t;if(!s){const{data:_,error:S}
55=await this.getSession();if(S||!_.session)return this._returnResult({data:null,error:S});s=_.session.access_token}const{header:l,payload:c,signature:u,raw:{header:h,payload:p}}=Ql(s);if(!r?.allowExpired)try{h1(c.exp)}catch(_){throw new mc(_ instanceof Error?_.message:"JWT validation failed")}const m=!l.alg||l.alg.startsWith("HS")||!l.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(l.kid,r?.keys?{keys:r.keys}:r?.jwks);if(!m){const{error:_}=await this.getUser(s);if(_)throw _;return{data:{claims:c,header:l,signature:u},error:null}}const v=p1(l.alg),g=await crypto.subtle.importKey("jwk",m,v,!0,["verify"]);if(!await crypto.subtle.verify(v,g,u,e1(`${h}.${p}`)))throw new mc("Invalid JWT signature");return{data:{claims:c,header:l,signature:u},error:null}}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(t){var r,s,l;mn(this.experimental);try{if(!yc())return this._returnResult({data:null,error:new yn("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(r=t?.options)===null||r===void 0?void 0:r.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const h=Xy(c.options),p=(l=(s=t?.options)===null||s===void 0?void 0:s.signal)!==null&&l!==void 0?l:Wd.createNewAbortSignal(),{data:m,error:v}=await l_({publicKey:h,signal:p});if(v||!m)return this._returnResult({data:null,error:v??new yn("WebAuthn ceremony failed",null)});const g=Wy(m);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:g})}catch(c){if(W(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(t){var r,s;mn(this.experimental);try{if(!yc())return this._returnResult({data:null,error:new yn("Browser does not support WebAuthn",null)});const{data:l,error:c}=await this._startPasskeyRegistration();if(c||!l)return this._returnResult({data:null,error:c});const u=Jy(l.options),h=(s=(r=t?.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:Wd.createNewAbortSignal(),{data:p,error:m}=await a_({publicKey:u,signal:h});if(m||!p)return this._returnResult({data:null,error:m??new yn("WebAuthn ceremony failed",null)});const v=Zy(p);return this._verifyPasskeyRegistration({challengeId:l.challenge_id,credential:v})}catch(l){if(W(l))return this._returnResult({data:null,error:l});throw l}}async _startPasskeyRegistration(){mn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new pt});const{data:l,error:c}=await ne(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:r.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){mn(this.experimental);try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new pt});const{data:c,error:u}=await ne(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _startPasskeyAuthentication(t){var r;mn(this.experimental);try{const{data:s,error:l}=await ne(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(r=t?.options)===null||r===void 0?void 0:r.captchaToken}}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:s,error:null})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(t){mn(this.experimental);try{const{data:r,error:s}=await ne(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:cn});return s?this._returnResult({data:null,error:s}):(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:r,error:null}))}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _listPasskeys(){mn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new pt});const{data:l,error:c}=await ne(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:r.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){mn(this.experimental);try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new pt});const{data:c,error:u}=await ne(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:t.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _deletePasskey(t){mn(this.experimental);try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new pt});const{error:c}
55=await ne(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}}ua.nextInstanceID={};const N1=ua,z1="2.107.0";let Yi="",_c;if(typeof Deno<"u"){var Pd;Yi="deno",_c=(Pd=Deno.version)===null||Pd===void 0?void 0:Pd.deno}else if(typeof document<"u")Yi="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Yi="react-native";else{var Od;Yi="node",_c=typeof process<"u"?(Od=process.version)===null||Od===void 0?void 0:Od.replace(/^v/,""):void 0}const c_=[`runtime=${Yi}`];_c&&c_.push(`runtime-version=${_c}`);const U1={"X-Client-Info":`supabase-js/${z1}; ${c_.join("; ")}`},B1={headers:U1},q1={schema:"public"},H1={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},V1={},F1={enabled:!1,respectSamplingDecision:!0};function G1(e,t,r,s){function l(c){return c instanceof r?c:new r(function(u){u(c)})}return new(r||(r=Promise))(function(c,u){function h(v){try{m(s.next(v))}catch(g){u(g)}}function p(v){try{m(s.throw(v))}catch(g){u(g)}}function m(v){v.done?c(v.value):l(v.value).then(h,p)}m((s=s.apply(e,[])).next())})}let Ld=null;const K1="@opentelemetry/api";function Y1(){return Ld===null&&(Ld=import(K1).catch(()=>null)),Ld}function Q1(){return G1(this,void 0,void 0,function*(){try{const e=yield Y1();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const r=t.traceparent;return r?{traceparent:r,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function J1(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[r,s,l,c]=t;if(r.length!==2||s.length!==32||l.length!==16||c.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(r)||!u.test(s)||!u.test(l)||!u.test(c)||s==="00000000000000000000000000000000"||l==="0000000000000000"?null:{version:r,traceId:s,parentId:l,traceFlags:c,isSampled:(parseInt(c,16)&1)===1}}function X1(e,t){if(!e||!t||t.length===0)return!1;let r;if(e instanceof URL)r=e;else try{r=new URL(e)}catch{return!1}for(const s of t)try{if(typeof s=="string"){if(Z1(r.hostname,s))return!0}else if(s instanceof RegExp){if(s.test(r.hostname))return!0}else if(typeof s=="function"&&s(r))return!0}catch{continue}return!1}function Z1(e,t){if(t===e)return!0;if(t.startsWith("*.")){const r=t.slice(2);if(e.endsWith(r)&&(e===r||e.endsWith("."+r)))return!0}return!1}function W1(e){const t=[];try{const r=new URL(e);t.push(r.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function fa(e){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(e)}function e2(e,t){if(fa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(fa(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t2(e){var t=e2(e,"string");return fa(t)=="symbol"?t:t+""}function n2(e,t,r){return(t=t2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,s)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(s){n2(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}const r2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),o2=()=>Headers,s2=(e,t,r,s,l)=>{const c=r2(s),u=o2(),h=l?.enabled===!0,p=l?.respectSamplingDecision!==!1,m=h?W1(t):null;return async(v,g)=>{var w;const _=(w=await r())!==null&&w!==void 0?w:e;let S=new u(g?.headers);if(S.has("apikey")||S.set("apikey",e),S.has("Authorization")||S.set("Authorization",`Bearer ${_}`),m){const C=await i2(v,m,p);C&&(C.traceparent&&!S.has("traceparent")&&S.set("traceparent",C.traceparent),C.tracestate&&!S.has("tracestate")&&S.set("tracestate",C.tracestate),C.baggage&&!S.has("baggage")&&S.set("baggage",C.baggage))}return c(v,Qe(Qe({},g),{},{headers:S}))}};async function i2(e,t,r){if(!X1(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const s=await Q1();if(!s||!s.traceparent)return null;if(r){const l=J1(s.traceparent);if(l&&!l.isSampled)return null}return s}function t0(e){return typeof e=="boolean"?{enabled:e}:e}function a2(e){return e.endsWith("/")?e:e+"/"}function l2(e,t){var r,s,l,c,u,h;const{db:p,auth:m,realtime:v,global:g}=e,{db:w,auth:_,realtime:S,global:C}=t,R=t0(e.tracePropagation),E=t0(t.tracePropagation),A={db:Qe(Qe({},w),p),auth:Qe(Qe({},_),m),realtime:Qe(Qe({},S),v),storage:{},global:Qe(Qe(Qe({},C),g),{},{headers:Qe(Qe({},(r=C?.headers)!==null&&r!==void 0?r:{}),(s=g?.headers)!==null&&s!==void 0?s:{})}),tracePropagation:{enabled:(l=(c=R?.enabled)!==null&&c!==void 0?c:E?.enabled)!==null&&l!==void 0?l:!1,respectSamplingDecision:(u=(h=R?.respectSamplingDecision)!==null&&h!==void 0?h:E?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return e.accessToken?A.accessToken=e.accessToken:delete A.accessToken,A}function c2(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
55if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(a2(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var u2=class extends N1{constructor(e){super(e)}},f2=class{constructor(e,t,r){var s,l;this.supabaseUrl=e,this.supabaseKey=t;const c=c2(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,h={db:q1,realtime:V1,auth:Qe(Qe({},H1),{},{storageKey:u}),global:B1,tracePropagation:F1},p=l2(r??{},h);if(this.settings=p,this.storageKey=(s=p.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(l=p.global.headers)!==null&&l!==void 0?l:{},p.accessToken)this.accessToken=p.accessToken,this.auth=new Proxy({},{get:(v,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var m;this.auth=this._initSupabaseAuthClient((m=p.auth)!==null&&m!==void 0?m:{},this.headers,p.global.fetch)}this.fetch=s2(t,e,this._getAccessToken.bind(this),p.global.fetch,p.tracePropagation),this.realtime=this._initRealtimeClient(Qe({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},p.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(v=>this.realtime.setAuth(v)).catch(v=>console.warn("Failed to set initial Realtime auth token:",v)),this.rest=new TP(new URL("rest/v1",c).href,{headers:this.headers,schema:p.db.schema,fetch:this.fetch,timeout:p.db.timeout,urlLengthLimit:p.db.urlLengthLimit}),this.storage=new zO(this.storageUrl.href,this.headers,this.fetch,r?.storage),p.accessToken||this._listenForAuthEvents()}get functions(){return new vP(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:s}=await e.auth.getSession();return(t=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:s,userStorage:l,storageKey:c,flowType:u,lock:h,debug:p,throwOnError:m,experimental:v,lockAcquireTimeout:g,skipAutoInitialize:w},_,S){const C={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new u2({url:this.authUrl.href,headers:Qe(Qe({},C),_),storageKey:c,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:s,userStorage:l,flowType:u,lock:h,debug:p,throwOnError:m,experimental:v,fetch:S,lockAcquireTimeout:g,skipAutoInitialize:w,hasCustomAuthorizationHeader:Object.keys(this.headers).some(R=>R.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new lO(this.realtimeUrl.href,Qe(Qe({},e),{},{params:Qe(Qe({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const d2=(e,t,r)=>new f2(e,t,r);function h2(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}h2()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
55ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function p2(){if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(R=>e===R||e.endsWith("."+R)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=r?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!l||!c)return localStorage;const u=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),h=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,p=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),m=p&&h.test(p)?[p]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],v="lovable-preview-auth:result",g=2e3,w=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),_=(R,E,A)=>new Promise($=>{const N=w();let V=!1,K;const z=ce=>{V||(V=!0,clearTimeout(K),window.removeEventListener("message",Y),$(ce))},Y=ce=>{if(m.indexOf(ce.origin)<0)return;const ie=ce.data;ie&&ie.type===v&&ie.requestId===N&&z(ie)};window.addEventListener("message",Y);const X={type:R,requestId:N,projectId:l,key:E};A!==void 0&&(X.value=A);for(const ce of m)window.parent.postMessage(X,ce);K=setTimeout(()=>z(null),g)});let S=!0;const C=250;return{getItem:async R=>{let E=await _("lovable-preview-auth:get",R);return!E&&S&&(await new Promise(A=>setTimeout(A,C)),E=await _("lovable-preview-auth:get",R)),S=!1,E&&E.ok&&typeof E.value=="string"?E.value===""?(localStorage.removeItem(R),null):E.value:localStorage.getItem(R)},setItem:(R,E)=>(localStorage.setItem(R,E),_("lovable-preview-auth:set",R,E).then(A=>{A&&A.ok&&typeof A.value=="string"&&localStorage.getItem(R)===E&&(A.value===""?localStorage.removeItem(R):localStorage.setItem(R,A.value))})),removeItem:R=>(localStorage.removeItem(R),_("lovable-preview-auth:remove",R).then(()=>{}))}}function m2(){return d2("https://ciumivnqbmeldfmlvmys.supabase.co","sb_publishable_1XboKwY_eN-wmZpkm7ijCQ_sUJJsqc8",{auth:{storage:p2(),persistSession:!0,autoRefreshToken:!0}})}let Id;const g2=new Proxy({},{get(e,t,r){return Id||(Id=m2()),Reflect.get(Id,t,r)}}),v2=So({type:"function"}).client(async({next:e})=>{const{data:t}=await g2.auth.getSession(),r=t.session?.access_token;return e({headers:r?{Authorization:`Bearer ${r}`}:{}})}),y2=So(),n0=hP(()=>({functionMiddleware:[v2],requestMiddleware:[y2]}));var Uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},w2=class extends Uc{#e;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},u_=new w2,_2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},b2=class{#e=_2;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},eh=new b2;function S2(e){setTimeout(e,0)}var R2=typeof window>"u"||"Deno"in globalThis;function vn(){}function E2(e,t){return typeof e=="function"?e(t):e}function C2(e){return typeof e=="number"&&e>=0&&e!==1/0}function T2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function th(e,t){return typeof e=="function"?e(t):e}function A2(e,t){return typeof e=="function"?e(t):e}function r0(e,t){const{type:r="all",exact:s,fetchStatus:l,predicate:c,queryKey:u,stale:h}=e;if(u){if(s){if(t.queryHash!==bh(u,t.options))return!1}else if(!ha(t.queryKey,u))return!1}if(r!=="all"){const p=t.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||l&&l!==t.state.fetchStatus||c&&!c(t))}function o0(e,t){const{exact:r,status:s,predicate:l,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(r){if(da(t.options.mutationKey)!==da(c))return!1}else if(!ha(t.options.mutationKey,c))return!1}return!(s&&t.state.status!==s||l&&!l(t))}function bh(e,t){return(t?.queryKeyHashFn||da)(e)}function da(e){return JSON.stringify(e,(t,r)=>nh(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function ha(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ha(e[r],t[r])):!1}var P2=Object.prototype.hasOwnProperty;function f_(e,t,r=0){if(e===t)return e;if(r>500)return t;const s=s0(e)&&s0(t);if(!s&&!(nh(e)&&nh(t)))return t;const c=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),h=u.length,p=s?new Array(h):{};let m=0;for(let v=0;v<h;v++){const g=s?v:u[v],w=e[g],_=t[g];if(w===_){p[g]=w,(s?v<c:P2.call(e,g))&&m++;continue}if(w===null||_===null||typeof w!="object"||typeof _!="object"){p[g]=_;continue}const S=f_(w,_,r+1);p[g]=S,S===w&&m++}return c===h&&m===c?e:p}function s0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nh(e){if(!i0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!i0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function i0(e){return Object.prototype.toString.call(e)==="[object Object]"}function O2(e){return new Promise(t=>{eh.setTimeout(t,e)})}function L2(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?f_(e,t):t}function I2(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function k2(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var Sh=Symbol();function d_(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Sh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $2(e,t,r){let s=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=t(),s||(s=!0,l.aborted?r():l.addEventListener("abort",r,{once:!0})),l)}),e}var h_=(()=>{let e=()=>R2;return{isServer(){return e()},setIsServer(t){e=t}}})();function x2(){let e,t;const r=new Promise((l,c)=>{e=l,t=c});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),e(l)},r.reject=l=>{s({status:"rejected",reason:l}),t(l)},r}var D2=S2;function j2(){let e=[],t=0,r=h=>{h()},s=h=>{h()},l=D2;const c=h=>{t?e.push(h):l(()=>{r(h)})},u=()=>{const h=e;e=[],h.length&&l(()=>{s(()=>{h.forEach(p=>{r(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||u()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{l=h}}}var Pt=j2(),M2=class extends Uc{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}
vendor: 20,484 bytes, line 55
55setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},bc=new M2;function N2(e){return Math.min(1e3*2**e,3e4)}function p_(e){return(e??"online")==="online"?bc.isOnline():!0}var rh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function m_(e){let t=!1,r=0,s;const l=x2(),c=()=>l.status!=="pending",u=C=>{if(!c()){const R=new rh(C);w(R),e.onCancel?.(R)}},h=()=>{t=!0},p=()=>{t=!1},m=()=>u_.isFocused()&&(e.networkMode==="always"||bc.isOnline())&&e.canRun(),v=()=>p_(e.networkMode)&&e.canRun(),g=C=>{c()||(s?.(),l.resolve(C))},w=C=>{c()||(s?.(),l.reject(C))},_=()=>new Promise(C=>{s=R=>{(c()||m())&&C(R)},e.onPause?.()}).then(()=>{s=void 0,c()||e.onContinue?.()}),S=()=>{if(c())return;let C;const R=r===0?e.initialPromise:void 0;try{C=R??e.fn()}catch(E){C=Promise.reject(E)}Promise.resolve(C).then(g).catch(E=>{if(c())return;const A=e.retry??(h_.isServer()?0:3),$=e.retryDelay??N2,N=typeof $=="function"?$(r,E):$,V=A===!0||typeof A=="number"&&r<A||typeof A=="function"&&A(r,E);if(t||!V){w(E);return}r++,e.onFail?.(r,E),O2(N).then(()=>m()?void 0:_()).then(()=>{t?w(E):S()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(s?.(),l),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?S():_().then(S),l)}}var g_=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),C2(this.gcTime)&&(this.#e=eh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(h_.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(eh.clearTimeout(this.#e),this.#e=void 0)}},z2=class extends g_{#e;#n;#t;#o;#r;#s;#i;constructor(e){super(),this.#i=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#t=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=l0(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=l0(this.options);t.data!==void 0&&(this.setState(a0(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const r=L2(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>A2(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>th(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!T2(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i||this.#l()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#i=!0,r.signal)})},l=()=>{const h=d_(this.options,t),m=(()=>{const v={client:this.#o,queryKey:this.queryKey,meta:this.meta};return s(v),v})();return this.#i=!1,this.options.persister?this.options.persister(h,m,this):h(m)},u=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:l};return s(h),h})();this.options.behavior?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#a({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=m_({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:h=>{h instanceof rh&&h.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(h,p)=>{this.#a({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#t.config.onSuccess?.(h,this),this.#t.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof rh){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#a({type:"error",error:h}),this.#t.config.onError?.(h,this),this.#t.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...U2(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...a0(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Pt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function U2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:p_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function a0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function c0(e){return{onFetch:(t,r)=>{const s=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let v=!1;const g=S=>{$2(S,()=>t.signal,()=>v=!0)},w=d_(t.options,t.fetchOptions),_=async(S,C,R)=>{if(v)return Promise.reject();if(C==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const K={client:t.client,queryKey:t.queryKey,pageParam:C,direction:R?"backward":"forward",meta:t.options.meta};return g(K),K})(),$=await w(A),{maxPages:N}=t.options,V=R?k2:I2;return{pages:V(S.pages,$,N),pageParams:V(S.pageParams,C,N)}};if(l&&c.length){const S=l==="backward",C=S?B2:u0,R={pages:c,pageParams:u},E=C(s,R);h=await _(R,E,S)}else{const S=e??c.length;do{const C=p===0?u[0]??s.initialPageParam:u0(s,h);if(p>0&&C==null)break;h=await _(h,C),p++}while(p<S)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=m}}}function u0(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function B2(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var q2=class extends g_{#e;#n;#t;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||H2(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=m_({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#r({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",l=!this.#o.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:l}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,r);const u=await this.options.onMutate?.(e,r);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:l})}const c=await this.#o.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,r),await this.options.onSuccess?.(c,e,this.state.context,r),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(c,null,e,this.state.context,r),this.#r({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,r)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,e,this.state.context,r)}catch(u){Promise.reject(u)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,r)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,r)}catch(u){Promise.reject(u)}throw this.#r({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Pt.batch(()=>{this.#n.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function H2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var V2=class extends Uc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,r){const s=new q2({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#e.add(e);const t=Jl(e);if(typeof t=="string"){const r=this.#n.get(t);r?r.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Jl(e);if(typeof t=="string"){const r=this.#n.get(t);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Jl(e);if(typeof t=="string"){const s=this.#n.get(t)?.find(l=>l.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=Jl(e);return typeof t=="string"?this.#n.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>o0(t,r))}findAll(e={}){return this.getAll().filter(t=>o0(e,t))}notify(e){Pt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Pt.batch(()=>Promise.all(e.map(t=>t.continue().catch(vn))))}};function Jl(e){return e.options.scope?.id}var F2=class extends Uc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const s=t.queryKey,l=t.queryHash??bh(s,t);let c=this.get(l);return c||(c=new z2({client:e,queryKey:s,queryHash:l,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Pt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>r0(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>r0(e,r)):t}notify(e){Pt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Pt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Pt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},G2=class{#e;#n;#t;#o;#r;#s;#i;#l;constructor(e={}){this.#e=e.queryCache||new F2,this.#n=e.mutationCache||new V2,this.#t=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=u_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=bc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(th(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(s.queryHash)?.state.data,u=E2(t,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return Pt.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Pt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return Pt.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=Pt.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(s).then(vn).catch(vn)}invalidateQueries(e,t={}){return Pt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=Pt.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,r);return r.throwOnError||(c=c.catch(vn)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(th(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=c0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=c0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bc.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#o.set(da(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(s=>{ha(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#r.set(da(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{ha(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Sh&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},K2=oe.createContext(void 0),Y2=({client:e,children:t})=>(oe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Q.jsx(K2.Provider,{value:e,children:t}));const Q2="/assets/styles-B3zuW3DI.css";function J2(e,t={}){typeof window>"u"||window.__lovableEvents?.captureException?.(e,{source:"react_error_boundary",route:window.location.pathname,...t},{mechanism:"react_error_boundary",handled:!1,severity:"error"})}const f0="https://www.consulstaff.pt",X2={pt:"InÃcio",en:"Home",es:"Inicio"},d0={"inovacao-produtiva":"Inovação Produtiva","innovacion-productiva":"Innovación Productiva","productive-innovation":"Productive Innovation","internacionalizacao-pme":"Internacionalização PME","internacionalizacion-pyme":"Internacionalización PYME","qualificacao-pme":"Qualificação PME","cualificacion-pyme":"Cualificación PYME","rh-qualificados":"RH Qualificados","rrhh-cualificados":"RRHH Cualificados",descarbonizacao:"Descarbonização",descarbonizacion:"Descarbonización","eficiencia-energetica":"Eficiência Energética","internacionalizacao-ecommerce":"Internacionalização e E-commerce","internacionalizacion-ecommerce":"Internacionalización y E-commerce","linha-ia":"Linha IA","linea-ia":"LÃnea IA","bairros-comerciais":"Bairros Comerciais","barrios-comerciales":"Barrios Comerciales","bioeconomia-agroindustria":"Bioeconomia Agroindústria","bioeconomia-florestal":"Bioeconomia Florestal","bioeconomia-forestal":"BioeconomÃa Forestal","diversificacao-comercio-servicos":"Diversificação,
55Comércio e Serviços","diversificacion-comercio-servicios":"Diversificación, Comercio y Servicios","pequenos-investimentos-bioeconomia":"Pequenos Investimentos Bioeconomia","pequenas-inversiones-bioeconomia":"Pequeñas Inversiones BioeconomÃa","crescer-com-turismo":"Crescer com Turismo","crecer-con-turismo":"Crecer con Turismo","fundo-investimento-interior":"Fundo Investimento Interior","fondo-inversion-interior":"Fondo Inversión Interior","linha-qualificacao-oferta":"Linha Qualificação da Oferta","linea-cualificacion-oferta":"LÃnea Cualificación de la Oferta","construir-jovem-investidor":"Construir Jovem Investidor","construir-joven-inversor":"Construir Joven Inversor","construir-pequenos-negocios":"Construir Pequenos Negócios","consultoria-industrial":"Consultoria Industrial","fundos-comunitarios":"Fundos Comunitários","fondos-comunitarios":"Fondos Comunitarios","fundos-e-incentivos":"Fundos e Incentivos","fondos-e-incentivos":"Fondos e Incentivos","projetos-investimento":"Projetos de Investimento","proyectos-inversion":"Proyectos de Inversión","marketing-estrategico":"Marketing Estratégico","turismo-hotelaria":"Turismo e Hotelaria","turismo-hosteleria":"Turismo y HostelerÃa","dgert-formacao":"Formação DGERT","formacion-dgert":"Formación DGERT","perguntas-frequentes":"Perguntas Frequentes","preguntas-frecuentes":"Preguntas Frecuentes","politica-de-cookies":"PolÃtica de Cookies","politica-de-privacidade":"PolÃtica de Privacidade","politica-de-privacidad":"PolÃtica de Privacidad","termos-e-condicoes":"Termos e Condições","terminos-y-condiciones":"Términos y Condiciones","resolucao-de-litigios":"Resolução de LitÃgios","resolucion-de-litigios":"Resolución de Litigios","portugal-2030":"Portugal 2030",prr:"PRR",pepac:"PEPAC","acores-2030":"Açores 2030","turismo-de-portugal":"Turismo de Portugal",idt:"I&DT",idi:"I+D+i",ifici:"IFICI","coaching-4-0":"Coaching 4.0","si-base-territorial":"SI Base Territorial",servicos:"Serviços",servicios:"Servicios",services:"Services",blog:"Blog",faq:"FAQ",contactos:"Contactos",contacto:"Contacto",contact:"Contact",empresa:"Empresa",company:"Company",formacao:"Formação",formacion:"Formación",training:"Training"};function Z2(e){return d0[e]?d0[e]:/^sibt-/.test(e)?"SIBT "+e.slice(5).replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase()):e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase()).replace(/\bE\b/g,"e").replace(/\bDe\b/g,"de")}function v_(e,t){const r=e.split("/").filter(Boolean),s=t==="pt"?r:r.slice(1);if(s.length===0)return null;const l=[{label:X2[t]??"InÃcio",href:t==="pt"?"/":`/${t}`}];let c=t==="pt"?"":`/${t}`;return s.forEach(u=>{c+=`/${u}`,l.push({label:Z2(u),href:c})}),l}function W2(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,name:t.label,item:t.href==="/"?f0:`${f0}${t.href}`}))}}function eL(e){return e==="/en"||e.startsWith("/en/")?"en":e==="/es"||e.startsWith("/es/")?"es":"pt"}function tL(){const e=yh({select:r=>r.location.pathname}),t=v_(e,eL(e));return t?Q.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(W2(t))}}):null}function PU({lang:e="pt"}){const t=yh({select:s=>s.location.pathname}),r=v_(t,e);return r?Q.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-5",children:Q.jsx("ol",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[11px] uppercase tracking-widest text-white/60",children:r.map((s,l)=>{const c=l===r.length-1;return Q.jsxs("li",{className:"flex items-center gap-2",children:[c?Q.jsx("span",{"aria-current":"page",className:"text-white/85",children:s.label}):Q.jsx(Dc,{to:s.href,className:"hover:text-primary transition-colors",children:s.label}),!c&&Q.jsx("span",{"aria-hidden":"true",children:"/"})]},s.href)})})}):null}const Ns=[{pt:"/",en:"/en",es:"/es"},{pt:"/cobertura-nacional",en:"/en/national-coverage",es:"/es/cobertura-nacional"},{pt:"/empresa",en:"/en/company",es:"/es/empresa"},{pt:"/servicos",en:"/en/services",es:"/es/servicios"},{pt:"/servicos/fundos-comunitarios",en:"/en/services/funding-grants",es:"/es/servicios/fondos-comunitarios"},{pt:"/servicos/turismo-hotelaria",en:"/en/services/tourism-hospitality",es:"/es/servicios/turismo-hosteleria"},{pt:"/servicos/projetos-investimento",en:"/en/services/investment-projects",es:"/es/servicios/proyectos-inversion"},{pt:"/servicos/marketing-estrategico",en:"/en/services/strategic-marketing",es:"/es/servicios/marketing-estrategico"},{pt:"/servicos/dgert-formacao",en:"/en/services/dgert-training",es:"/es/servicios/formacion-dgert"},{pt:"/servicos/consultoria-industrial",en:"/en/services/industrial-consulting",es:"/es/servicios/consultoria-industrial"},{pt:"/turismo-hotelaria",en:"/en/tourism-hospitality",es:"/es/turismo-hosteleria"},{pt:"/fundos-e-incentivos",en:"/en/funding-incentives",es:"/es/fondos-e-incentivos"},{pt:"/formacao",en:"/en/training",es:"/es/formacion"},{pt:"/perguntas-frequentes",en:"/en/faq",es:"/es/preguntas-frecuentes"},{pt:"/blog",en:"/en/blog",es:"/es/blog"},{pt:"/contactos",en:"/en/contact",es:"/es/contacto"},{pt:"/portugal-2030",en:"/en/portugal-2030",es:"/es/portugal-2030"},{pt:"/turismo-de-portugal",en:"/en/turismo-de-portugal",es:"/es/turismo-de-portugal"},{pt:"/pepac",en:"/en/pepac",es:"/es/pepac"},{pt:"/acores-2030",en:"/en/acores-2030",es:"/es/acores-2030"},{pt:"/prr",en:"/en/prr",es:"/es/prr"},{pt:"/politica-de-privacidade",en:"/en/privacy-policy",es:"/es/politica-de-privacidad"}
55,{pt:"/politica-de-cookies",en:"/en/cookie-policy",es:"/es/politica-de-cookies"},{pt:"/termos-e-condicoes",en:"/en/terms-and-conditions",es:"/es/terminos-y-condiciones"},{pt:"/resolucao-de-litigios",en:"/en/dispute-resolution",es:"/es/resolucion-de-litigios"},{pt:"/portugal-2030/inovacao-produtiva",en:"/en/portugal-2030/productive-innovation",es:"/es/portugal-2030/innovacion-productiva"},{pt:"/portugal-2030/internacionalizacao-pme",en:"/en/portugal-2030/sme-internationalisation",es:"/es/portugal-2030/internacionalizacion-pyme"},{pt:"/portugal-2030/qualificacao-pme",en:"/en/portugal-2030/sme-qualification",es:"/es/portugal-2030/cualificacion-pyme"},{pt:"/portugal-2030/rh-qualificados",en:"/en/portugal-2030/qualified-hr",es:"/es/portugal-2030/rrhh-cualificados"},{pt:"/portugal-2030/idt",en:"/en/portugal-2030/rd-innovation",es:"/es/portugal-2030/idi"},{pt:"/portugal-2030/si-base-territorial",en:"/en/portugal-2030/territorial-investment",es:"/es/portugal-2030/si-base-territorial"},{pt:"/portugal-2030/sibt-norte",en:"/en/portugal-2030/sibt-norte",es:"/es/portugal-2030/sibt-norte"},{pt:"/portugal-2030/sibt-oeste",en:"/en/portugal-2030/sibt-oeste",es:"/es/portugal-2030/sibt-oeste"},{pt:"/portugal-2030/sibt-medio-tejo",en:"/en/portugal-2030/sibt-medio-tejo",es:"/es/portugal-2030/sibt-medio-tejo"},{pt:"/portugal-2030/sibt-pinhal-interior",en:"/en/portugal-2030/sibt-pinhal-interior",es:"/es/portugal-2030/sibt-pinhal-interior"},{pt:"/portugal-2030/sibt-algarve",en:"/en/portugal-2030/sibt-algarve",es:"/es/portugal-2030/sibt-algarve"},{pt:"/portugal-2030/sibt-alentejo",en:"/en/portugal-2030/sibt-alentejo",es:"/es/portugal-2030/sibt-alentejo"},{pt:"/prr/linha-ia",en:"/en/prr/ai-line",es:"/es/prr/linea-ia"},{pt:"/prr/coaching-4-0",en:"/en/prr/coaching-4-0",es:"/es/prr/coaching-4-0"},{pt:"/prr/descarbonizacao",en:"/en/prr/decarbonisation",es:"/es/prr/descarbonizacion"},{pt:"/prr/eficiencia-energetica",en:"/en/prr/energy-efficiency",es:"/es/prr/eficiencia-energetica"},{pt:"/prr/ifici",en:"/en/prr/ifici",es:"/es/prr/ifici"},{pt:"/prr/bairros-comerciais",en:"/en/prr/commercial-neighbourhoods",es:"/es/prr/barrios-comerciales"},{pt:"/prr/internacionalizacao-ecommerce",en:"/en/prr/internationalisation-ecommerce",es:"/es/prr/internacionalizacion-ecommerce"},{pt:"/pepac/diversificacao-comercio-servicos",en:"/en/pepac/diversification-trade-services",es:"/es/pepac/diversificacion-comercio-servicios"},{pt:"/pepac/bioeconomia-agroindustria",en:"/en/pepac/agri-food-modernisation",es:"/es/pepac/bioeconomia-agroindustria"},{pt:"/pepac/bioeconomia-florestal",en:"/en/pepac/forestry-bioeconomy",es:"/es/pepac/bioeconomia-forestal"},{pt:"/pepac/pequenos-investimentos-bioeconomia",en:"/en/pepac/small-bioeconomy-investments",es:"/es/pepac/pequenas-inversiones-bioeconomia"},{pt:"/turismo-de-portugal/linha-qualificacao-oferta",en:"/en/turismo-de-portugal/offer-qualification",es:"/es/turismo-de-portugal/linea-cualificacion-oferta"},{pt:"/turismo-de-portugal/crescer-com-turismo",en:"/en/turismo-de-portugal/growing-with-tourism",es:"/es/turismo-de-portugal/crecer-con-turismo"},{pt:"/turismo-de-portugal/revive",en:"/en/turismo-de-portugal/revive",es:"/es/turismo-de-portugal/revive"},{pt:"/turismo-de-portugal/fundo-investimento-interior",en:"/en/turismo-de-portugal/interior-investment-fund",es:"/es/turismo-de-portugal/fondo-inversion-interior"},{pt:"/turismo-de-portugal/si-portugal-events",en:"/en/turismo-de-portugal/si-portugal-events",es:"/es/turismo-de-portugal/si-portugal-events"},{pt:"/acores-2030/construir-jovem-investidor",en:"/en/acores-2030/building-young-investor",es:"/es/acores-2030/construir-joven-inversor"},{pt:"/acores-2030/construir-pequenos-negocios",en:"/en/acores-2030/building-small-business",es:"/es/acores-2030/construir-pequenos-negocios"}];function nL(e,t){const r=/^(?:\/(en|es))?\/blog\/(.+)$/.exec(e);if(!r)return null;const s=r[2];return t==="pt"?`/blog/${s}`:`/${t}/blog/${s}`}Object.fromEntries(Ns.map(e=>[e.pt,e.en]));const rL=Object.fromEntries(Ns.map(e=>[e.en,e.pt]));Object.fromEntries(Ns.map(e=>[e.pt,e.es]));const oL=Object.fromEntries(Ns.map(e=>[e.es,e.pt]));function sL(e){return e==="/en"||e.startsWith("/en/")?"en":e==="/es"||e.startsWith("/es/")?"es":"pt"}function OU(e,t){const r=sL(e);if(r===t)return e;const s=nL(e,t);if(s)return s;const l=r==="pt"?e:r==="en"?rL[e]:oL[e];if(!l)return t==="pt"?"/":`/${t}`;const c=Ns.find(u=>u.pt===l);return c?c[t]:t==="pt"?"/":`/${t}`}const Xl="https://www.consulstaff.pt";function iL(e){const t=e.length>1?e.replace(/\/$/,""):e,r=Ns.find(s=>Object.values(s).includes(t));return r?[{lang:"pt-PT",href:`${Xl}${r.pt}`},{lang:"en",href:`${Xl}${r.en}`},{lang:"es",href:`${Xl}${r.es}`},{lang:"x-default",href:`${Xl}${r.pt}`}]:[]}function aL(){return Q.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:Q.jsxs("div",{className:"max-w-md text-center",children:[Q.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),Q.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),Q.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),Q.jsx("div",{className:"mt-6",children:Q.jsx(Dc,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function lL({error:e,reset:t}){console.error(e);const r=gt();return oe.useEffect(()=>{J2(e,{boundary:"tanstack_root_error_component"})},[e]),Q.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:Q.jsxs("div",{className:"max-w-md text-center",children:[Q.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),Q.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),Q.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[Q.jsx("button",{onClick:()=>{r.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),Q.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const me=zA()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Consulstaff â Fundos Comunitários e Consultoria"},{name:"description",content:"Consultoria especializada em fundos comunitários, Portugal 2030, PRR, formação e projetos de investimento para empresas."},{name:"author",content:"Consulstaff"},{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1"},{name:"theme-color",content:"#0f3d2e"},{name:"format-detection",content:"telephone=yes"},{property:"og:title",content:"Consulstaff â Fundos Comunitários e Consultoria"},{property:"og:description",content:"Apoio especializado a empresas em candidaturas a incentivos, financiamento e projetos de investimento."},{property:"og:type",content:"website"},{property:"og:locale",content:"pt_PT"},{property:"og:site_name",content:"Consulstaff"},{property:"og:locale:alternate",content:"en_GB"},{property:"og:locale:alternate",content:"es_ES"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Consulstaff â Fundos Comunitários e Consultoria"},{name:"twitter:description",content:"Consultoria para Portugal 2030, PRR, formação e projetos de investimento empresarial."}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.consulstaff.pt/#organization",name:"Consulstaff",url:"https://www.consulstaff.pt",logo:{"@type":"ImageObject","@id":"https://www.consulstaff.pt/#logo",url:"https://www.consulstaff.pt/icon-512.png",width:512,height:512,caption:"Consulstaff"}
55,image:{"@id":"https://www.consulstaff.pt/#logo"},description:"Consultora portuguesa especializada em fundos comunitários, projetos de investimento e formação certificada.",areaServed:[{"@type":"Country",name:"Portugal"},{"@type":"AdministrativeArea",name:"Açores"},{"@type":"AdministrativeArea",name:"Madeira"}],contactPoint:[{"@type":"ContactPoint",contactType:"customer support",email:"[email protected]",areaServed:"PT",availableLanguage:["Portuguese","English","Spanish"]}],sameAs:["https://www.facebook.com/www.consulstaff.pt/"]},{"@type":"ProfessionalService","@id":"https://www.consulstaff.pt/#localbusiness",name:"Consulstaff â Consultores de Gestão",url:"https://www.consulstaff.pt",image:{"@id":"https://www.consulstaff.pt/#logo"},parentOrganization:{"@id":"https://www.consulstaff.pt/#organization"},priceRange:"â¬â¬",address:[{"@type":"PostalAddress",addressLocality:"Lisboa",addressCountry:"PT"},{"@type":"PostalAddress",addressLocality:"Coimbra",addressCountry:"PT"}],areaServed:{"@type":"Country",name:"Portugal"},knowsLanguage:["pt-PT","en","es"]},{"@type":"WebSite","@id":"https://www.consulstaff.pt/#website",url:"https://www.consulstaff.pt",name:"Consulstaff",inLanguage:"pt-PT",publisher:{"@id":"https://www.consulstaff.pt/#organization"}}]})}],links:[{rel:"icon",href:"/favicon.png",type:"image/png"},{rel:"icon",href:"/icon-32.png",type:"image/png",sizes:"32x32"},{rel:"apple-touch-icon",href:"/apple-touch-icon.png",sizes:"180x180"},{rel:"manifest",href:"/site.webmanifest"},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Krub:wght@400;600;700&display=swap"},{rel:"stylesheet",href:Q2}]}),shellComponent:cL,component:uL,notFoundComponent:aL,errorComponent:lL});function cL({children:e}){const t=yh({select:l=>l.location.pathname}),r=t.startsWith("/en")?"en":t.startsWith("/es")?"es":"pt-PT",s=iL(t);return Q.jsxs("html",{lang:r,children:[Q.jsxs("head",{children:[Q.jsx(aP,{}),s.map(l=>Q.jsx("link",{rel:"alternate",hrefLang:l.lang,href:l.href},l.lang))]}),Q.jsxs("body",{children:[e,Q.jsx(lP,{})]})]})}function uL(){const{queryClient:e}=me.useRouteContext();return Q.jsxs(Y2,{client:e,children:[Q.jsx(tL,{}),Q.jsx(Mw,{})]})}const fL="modulepreload",dL=function(e){return"/"+e},h0={},I=function(t,r,s){let l=Promise.resolve();if(r&&r.length>0){let p=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),h=u?.nonce||u?.getAttribute("nonce");l=p(r.map(m=>{if(m=dL(m),m in h0)return;h0[m]=!0;const v=m.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const w=document.createElement("link");if(w.rel=v?"stylesheet":fL,v||(w.as="script"),w.crossOrigin="",w.href=m,h&&w.setAttribute("nonce",h),document.head.appendChild(w),v)return new Promise((_,S)=>{w.addEventListener("load",_),w.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(u){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=u,window.dispatchEvent(h),!h.defaultPrevented)throw u}return l.then(u=>{for(const h of u||[])h.status==="rejected"&&c(h.reason);return t().catch(c)})},hL=()=>I(()=>import("./index-DXZ7xWPw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])),pL=k("/")({head:()=>({meta:[{title:"Consulstaff â Fundos Comunitários e Investimento"},{name:"description",content:"Há mais de 20 anos a preparar candidaturas a Portugal 2030, PRR, PEPAC e Turismo de Portugal. 95% de taxa de aprovação. Mais de 550M+ em incentivos."},{property:"og:title",content:"Consulstaff â Fundos Comunitários e Investimento"},{property:"og:description",content:"Consultora com 20+ anos em Portugal 2030, PRR, PEPAC e Turismo de Portugal. Preparação, submissão e execução de candidaturas com 95% de aprovação."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/"}]}),component:L(hL,"component")}),mL=()=>I(()=>import("./acores-2030-Dyon3jd9.js"),[]),gL=k("/acores-2030")({component:L(mL,"component")}),vL=()=>I(()=>import("./admin-DZBBT0ql.js"),__vite__mapDeps([26,1,2,3,15,27,28,29])),yL=k("/admin")({head:()=>({meta:[{title:"Administração â Consulstaff"}]}),component:L(vL,"component")}),wL=()=>I(()=>import("./auth-BMMCwCSK.js"),__vite__mapDeps([30,1,2,3])),_L=k("/auth")({head:()=>({meta:[{title:"Ãrea Reservada â Consulstaff"}]}),component:L(wL,"component")}),bL=()=>I(()=>import("./cobertura-nacional-Cgv-0g7e.js"),__vite__mapDeps([31,32,1,2,33,34,3,11,35,36])),p0="https://www.consulstaff.pt",SL=k("/cobertura-nacional")({head:()=>({meta:[{title:"Consultoria em Portugal, Açores e Madeira â Consulstaff"},{name:"description",content:"Consultoria em projetos de investimento e fundos comunitários para empresas em Portugal Continental, Açores e Madeira."},{property:"og:title",content:"Cobertura Nacional â Consulstaff"},{property:"og:description",content:"Acompanhamento especializado de projetos empresariais no Continente, Açores e Madeira."},{property:"og:url",content:`${p0}/cobertura-nacional`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${p0}/cobertura-nacional`}]}
55),component:L(bL,"component")}),RL=()=>I(()=>import("./contactos-EvQPPNvi.js"),__vite__mapDeps([37,1,2,3,38,4,5])),EL=k("/contactos")({head:()=>({meta:[{title:"Contactos â Consulstaff"},{name:"description",content:"Solicite uma análise gratuita ao seu projeto. Fale com a equipa Consulstaff."},{property:"og:title",content:"Contactos â Consulstaff"},{property:"og:description",content:"Análise gratuita ao seu projeto de investimento."},{property:"og:url",content:"https://www.consulstaff.pt/contactos"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/contactos"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"ProfessionalService","@id":"https://www.consulstaff.pt/contactos#lisboa",name:"Consulstaff â Consultores de Gestão (Lisboa)",parentOrganization:{"@id":"https://www.consulstaff.pt/#organization"},url:"https://www.consulstaff.pt/contactos",telephone:"+351211450728",email:"[email protected]",address:{"@type":"PostalAddress",addressLocality:"Lisboa",addressCountry:"PT"},areaServed:{"@type":"Country",name:"Portugal"}},{"@type":"ProfessionalService","@id":"https://www.consulstaff.pt/contactos#coimbra",name:"Consulstaff â Consultores de Gestão (Coimbra)",parentOrganization:{"@id":"https://www.consulstaff.pt/#organization"},url:"https://www.consulstaff.pt/contactos",telephone:"+351239840050",email:"[email protected]",address:{"@type":"PostalAddress",addressLocality:"Coimbra",addressCountry:"PT"},areaServed:{"@type":"Country",name:"Portugal"}}]})}]}),component:L(RL,"component")}),CL=()=>I(()=>import("./empresa-D84j2wT5.js"),__vite__mapDeps([39,1,2,3,40,41,4,5,17,29,42,43,20,11,44,36,23,24,12,45,46,14])),TL=k("/empresa")({head:()=>({meta:[{title:"Consulstaff | Consultora de Gestão e Fundos Comunitários"},{name:"description",content:"Conheça a Consulstaff, consultora de gestão com mais de 20 anos de experiência em fundos comunitários e projetos de investimento em Portugal."},{property:"og:title",content:"Consulstaff | Consultora de Gestão e Fundos Comunitários"},{property:"og:description",content:"Conheça a experiência, missão e valores da Consulstaff."},{property:"og:url",content:"https://www.consulstaff.pt/empresa"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/empresa"}]}),component:L(CL,"component")}),AL=()=>I(()=>import("./en-D00O4tnU.js"),[]),PL=k("/en")({component:L(AL,"component")}),OL=()=>I(()=>import("./es-D00O4tnU.js"),[]),LL=k("/es")({component:L(OL,"component")}),IL=()=>I(()=>import("./formacao-B0ZMYHwt.js"),__vite__mapDeps([47,1,2,3,48,4,5,49,16,20,24,17,11,50,51,52,53,46])),kL=k("/formacao")({head:()=>({meta:[{title:"Formação Empresarial â Consulstaff"},{name:"description",content:"Programas de formação certificada para empresas: gestão, fundos comunitários, finanças e liderança."},{property:"og:title",content:"Formação â Consulstaff"},{property:"og:description",content:"Formação empresarial certificada."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/formacao"}]}),component:L(IL,"component")}),$L="/__l5e/assets-v1/a27a6034-34ae-4631-b1ac-99912a9c8fe9/hero-servicos.jpg",pa={url:$L},xL=()=>I(()=>import("./fundos-e-incentivos-VqdLkn-e.js"),__vite__mapDeps([54,1,2,3,8,55,4,5,56,17,27,57,58,59,16,42,60,61])),DL=k("/fundos-e-incentivos")({head:()=>({meta:[{title:"Fundos e Incentivos â Consulstaff"},{name:"description",content:"Especialistas em projetos de investimento e fundos comunitários. Apoio à obtenção de financiamento comunitário há 20 anos."},{property:"og:title",content:"Fundos e Incentivos â Consulstaff"},{property:"og:description",content:"Consultoria especializada em fundos comunitários e projetos de investimento."},{property:"og:image",content:pa.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/fundos-e-incentivos"}]}),component:L(xL,"component")}),jL=()=>I(()=>import("./perguntas-frequentes-B7KbCroH.js"),__vite__mapDeps([62,1,2,3,63,4,5,11,25])),ML=k("/perguntas-frequentes")({head:()=>({meta:[{title:"Perguntas Frequentes â Consulstaff"},{name:"description",content:"Respostas à s perguntas mais frequentes sobre fundos comunitários, candidaturas, Portugal 2030, PRR e consultoria de gestão."},{property:"og:title",content:"Perguntas Frequentes â Consulstaff"},{property:"og:description",content:"Tudo o que precisa de saber sobre os nossos serviços de consultoria."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/perguntas-frequentes"}]}
55),component:L(jL,"component")}),NL=()=>I(()=>import("./politica-de-cookies-BYH558v_.js"),__vite__mapDeps([64,32,1,2,33,34,3])),zL=k("/politica-de-cookies")({head:()=>({meta:[{title:"PolÃtica de Cookies â Consulstaff"},{name:"description",content:"Informação sobre a utilização de cookies no website da Consulstaff e como o utilizador pode geri-los."},{name:"robots",content:"index,follow"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/politica-de-cookies"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/cookie-policy"}]}),component:L(NL,"component")}),UL=()=>I(()=>import("./politica-de-privacidade-11wqhOxO.js"),__vite__mapDeps([65,32,1,2,33,34,3])),BL=k("/politica-de-privacidade")({head:()=>({meta:[{title:"PolÃtica de Privacidade â Consulstaff"},{name:"description",content:"Como a Consulstaff recolhe, utiliza e protege os dados pessoais dos utilizadores do site e dos clientes."},{name:"robots",content:"index,follow"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/politica-de-privacidade"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/privacy-policy"}]}),component:L(UL,"component")}),qL=()=>I(()=>import("./portugal-2030-DOP6388e.js"),[]),HL=k("/portugal-2030")({component:L(qL,"component")}),VL=()=>I(()=>import("./resolucao-de-litigios-CWrV4aWF.js"),__vite__mapDeps([66,32,1,2,33,34,3])),FL=k("/resolucao-de-litigios")({head:()=>({meta:[{title:"Resolução Alternativa de LitÃgios â Consulstaff"},{name:"description",content:"Informação ao consumidor sobre entidades de resolução alternativa de litÃgios de consumo, nos termos da Lei n.º 144/2015."},{name:"robots",content:"index,follow"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/resolucao-de-litigios"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/dispute-resolution"}]}),component:L(VL,"component")}),GL=()=>I(()=>import("./servicos-B-UniRu-.js"),[]),KL=k("/servicos")({component:L(GL,"component")}),YL=()=>I(()=>import("./termos-e-condicoes-CUKB5mN0.js"),__vite__mapDeps([67,32,1,2,33,34,3])),QL=k("/termos-e-condicoes")({head:()=>({meta:[{title:"Termos e Condições â Consulstaff"},{name:"description",content:"Termos e Condições de utilização do site consulstaff.pt e dos serviços de consultoria da Consulstaff."},{name:"robots",content:"index,follow"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/termos-e-condicoes"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/terms-and-conditions"}]}),component:L(YL,"component")}),JL=()=>I(()=>import("./turismo-hotelaria-ucLpa4fL.js"),__vite__mapDeps([68,32,1,2,33,34,3,69,4,5])),XL=k("/turismo-hotelaria")({head:()=>({meta:[{title:"Apoios ao Turismo e Hotelaria â Linhas Turismo de Portugal | Consulstaff"},{name:"description",content:"Consultoria especializada em apoios ao turismo, hotelaria, turismo rural e criação de unidades hoteleiras."},{property:"og:title",content:"Turismo e Hotelaria â Consulstaff"},{property:"og:description",content:"Linhas de apoio do Turismo de Portugal e fundos comunitários."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-hotelaria"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/tourism-hospitality"}]}),component:L(JL,"component")}),ZL="/__l5e/assets-v1/fbc1f791-7a82-45f5-a8ed-5eb53b504c78/hero-home.jpg",_e={url:ZL},WL=()=>I(()=>import("./acores-2030.index-BUjumSRc.js"),__vite__mapDeps([70,1,2,3,71,4,5,11,20,72,56,17,27,73])),eI=k("/acores-2030/")({head:()=>({meta:[{title:"Açores 2030 â Apoios e Incentivos à Região Autónoma dos Açores | Consulstaff"},{name:"description",content:"Especialistas em candidaturas ao Programa Açores 2030. Apoios ao investimento, inovação, qualificação e coesão na Região Autónoma dos Açores."},{property:"og:title",content:"Açores 2030 â Consulstaff"},{property:"og:description",content:"Programa Operacional da Região Autónoma dos Açores 2021-2027."},{property:"og:image",content:_e.url},{property:"twitter:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/acores-2030"}]}
55),component:L(WL,"component")}),tI="/__l5e/assets-v1/7db3eb6c-7ddc-4359-a533-90d46f7bba35/acores-jovem-investidor.jpg",Sc={url:tI},nI=()=>I(()=>import("./acores-2030.construir-jovem-investidor-BdTQPVmO.js"),__vite__mapDeps([74,1,2,3,75,28,4,5,20,23,60,76,43,44,77,78,11,79,52,80,36,16,72,81,82,83,84,85,59,86])),rI=k("/acores-2030/construir-jovem-investidor")({head:()=>({meta:[{title:"Construir 2030 â Jovem Investidor â Açores 2030 | Consulstaff"},{name:"description",content:"Sistema de incentivos Construir 2030 â Jovem Investidor. Apoios até 70% a fundo perdido para empresas de jovens empreendedores dos Açores."},{property:"og:title",content:"Construir 2030 â Jovem Investidor â Consulstaff"},{property:"og:description",content:"Apoios até 70% a fundo perdido para novas empresas lideradas por jovens empreendedores nos Açores. Análise gratuita de elegibilidade."},{property:"og:image",content:Sc.url},{property:"twitter:image",content:Sc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/acores-2030/construir-jovem-investidor"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/acores-2030/building-young-investor"}]}),component:L(nI,"component")}),oI="/__l5e/assets-v1/92c4c598-e9e1-4448-b497-98dbf7dcf4db/acores-construir-pequenos-negocios-v2.jpg",Rc={url:oI},sI=()=>I(()=>import("./acores-2030.construir-pequenos-negocios-B7VL425J.js"),__vite__mapDeps([87,1,2,3,88,28,4,5,19,89,76,60,43,44,90,91,92,93,77,24,94,78,11,79,52,80,27,16,81,82,83,84,85,59,86])),iI=k("/acores-2030/construir-pequenos-negocios")({head:()=>({meta:[{title:"Construir 2030 â Pequenos Negócios â Açores 2030 | Consulstaff"},{name:"description",content:"Sistema de incentivos Construir 2030 â Pequenos Negócios. Apoios até 70% a fundo perdido para micro e pequenas empresas da Região Autónoma dos Açores."},{property:"og:title",content:"Construir 2030 â Pequenos Negócios â Consulstaff"},{property:"og:description",content:"Apoios até 70% a fundo perdido para micro e pequenas empresas dos Açores. Análise gratuita da elegibilidade."},{property:"og:image",content:Rc.url},{property:"twitter:image",content:Rc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/acores-2030/construir-pequenos-negocios"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/acores-2030/building-small-business"}]}),component:L(sI,"component")}),Rh=Qi({method:"GET"}).handler(ph("83e2cafc6e81515db08ebd272b547151b8dbb505260c0244d692613d168182d0")),Eh=Qi({method:"GET"}).handler(ph("aaa22c9f20bf862317adf7ad340d72ae502bca3bbc42f53d22515df32dd2ed35")),aI=()=>I(()=>import("./blog.index-Bxuw4DB6.js"),__vite__mapDeps([95,1,2,3,32,33,34,96,4,5])),lI=()=>I(()=>import("./blog.index-CgLxbhpx.js"),[]),cI=()=>I(()=>import("./blog.index-DsHOwcFf.js"),[]),uI=k("/blog/")({head:()=>({meta:[{title:"Blog â Consulstaff"},{name:"description",content:"NotÃcias, análises e artigos sobre fundos comunitários, Portugal 2030, PRR e financiamento empresarial."},{property:"og:title",content:"Blog â Consulstaff"},{property:"og:description",content:"NotÃcias e artigos."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/blog"}]}),loader:async()=>({posts:await Rh()}),errorComponent:L(cI,"errorComponent"),notFoundComponent:L(lI,"notFoundComponent"),component:L(aI,"component")}),fI=()=>I(()=>import("./blog._slug-C5nZqGPa.js"),__vite__mapDeps([97,1,2,3])),dI=()=>I(()=>import("./blog._slug-BndfBXDz.js"),[]),hI=()=>I(()=>import("./blog._slug-CkGnvwy1.js"),[]),pI=k("/blog/$slug")({loader:async({params:e})=>{const t=await Eh({data:{slug:e.slug}});if(!t)throw ah();return{post:t}},head:({loaderData:e,params:t})=>({meta:e?[{title:`${e.post.title} â Consulstaff`},{name:"description",content:e.post.excerpt},{property:"og:title",content:e.post.title},{property:"og:description",content:e.post.excerpt},{property:"og:type",content:"article"},{property:"og:url",content:`https://www.consulstaff.pt/blog/${t.slug}`},{name:"twitter:card",content:"summary_large_image"},...e.post.cover_image?[{property:"og:image",content:e.post.cover_image},{name:"twitter:image",content:e.post.cover_image}]:[]]:[{title:"Artigo â Consulstaff"},{name:"robots",content:"noindex"}
55],links:[{rel:"canonical",href:`https://www.consulstaff.pt/blog/${t.slug}`},{rel:"alternate",hrefLang:"en",href:`https://www.consulstaff.pt/en/blog/${t.slug}`},{rel:"alternate",hrefLang:"es",href:`https://www.consulstaff.pt/es/blog/${t.slug}`}],scripts:e?[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:e.post.title,description:e.post.excerpt,inLanguage:"pt-PT",mainEntityOfPage:`https://www.consulstaff.pt/blog/${t.slug}`,...e.post.cover_image?{image:e.post.cover_image}:{},...e.post.published_at?{datePublished:e.post.published_at}:{},publisher:{"@id":"https://www.consulstaff.pt/#organization"}})}]:[]}),errorComponent:L(hI,"errorComponent"),notFoundComponent:L(dI,"notFoundComponent"),component:L(fI,"component")}),mI=()=>I(()=>import("./en.index-mWAny4PF.js"),__vite__mapDeps([98,33,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])),gI=k("/en/")({head:()=>({meta:[{title:"Consulstaff â Investment Project & EU Funding Consultants"},{name:"description",content:"For over 20 years preparing applications to Portugal 2030, PRR, PEPAC and Turismo de Portugal. 95% approval rate. â¬550M+ in incentives secured."},{property:"og:title",content:"Consulstaff â Management Consultants"},{property:"og:description",content:"Specialists in Investment Projects and EU Funding."},{property:"og:url",content:"https://www.consulstaff.pt/en"},{property:"og:locale",content:"en_GB"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en"},{rel:"alternate",hrefLang:"x-default",href:"https://www.consulstaff.pt/"}]}),component:L(mI,"component")}),vI=()=>I(()=>import("./en.acores-2030-DZIJri1c.js"),__vite__mapDeps([99,100,33,2,4,5,11,23,22,52,76,60])),yI=k("/en/acores-2030")({head:()=>({meta:[{title:"Açores 2030 â Funding for the Azores | Consulstaff"},{name:"description",content:"Specialists in Açores 2030 applications: business investment, innovation, qualification, social cohesion and climate transition in the Autonomous Region of the Azores."},{property:"og:title",content:"Açores 2030 â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/acores-2030"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/acores-2030"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030"}]}),component:L(vI,"component")}),wI=()=>I(()=>import("./en.blog-BIklbQ0z.js"),[]),_I=k("/en/blog")({component:L(wI,"component")}),bI=()=>I(()=>import("./en.company-DbtkwVXy.js"),__vite__mapDeps([101,33,2,41,4,5,17,29,42,43,20,11,44,36,23,24,12,45,46,14])),SI=k("/en/company")({head:()=>({meta:[{title:"Consulstaff | Management and EU Funding Consultancy"},{name:"description",content:"Meet Consulstaff, a management consultancy with over 20 years of experience in EU funding and investment projects in Portugal."},{property:"og:title",content:"Consulstaff | Management and EU Funding Consultancy"},{property:"og:description",content:"Discover Consulstaff's experience, mission and values."},{property:"og:url",content:"https://www.consulstaff.pt/en/company"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/company"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/empresa"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/company"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/empresa"},{rel:"alternate",hrefLang:"x-default",href:"https://www.consulstaff.pt/empresa"}]}),component:L(bI,"component")}),RI=()=>I(()=>import("./en.contact-BIUWG36G.js"),__vite__mapDeps([102,33,2,38,4,5])),EI=k("/en/contact")({head:()=>({meta:[{title:"Contact â Consulstaff"},{name:"description",content:"Request a free analysis of your project. Talk to the Consulstaff team."},{property:"og:title",content:"Contact â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/contact"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/contact"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/contactos"}]}),component:L(RI,"component")}),CI=()=>I(()=>import("./en.cookie-policy-ijj-Uff3.js"),__vite__mapDeps([103,32,1,2,33,34,3])),TI=k("/en/cookie-policy")({head:()=>({meta:[{title:"Cookie Policy â Consulstaff"},{name:"description",content:"Information about the use of cookies on the Consulstaff website and how users can manage them."},{name:"robots",content:"index,follow"},{property:"og:title",content:"Cookie Policy â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/cookie-policy"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/cookie-policy"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/politica-de-cookie
55s"}]}),component:L(CI,"component")}),AI=()=>I(()=>import("./en.dispute-resolution-AGv0RTSw.js"),__vite__mapDeps([104,32,1,2,33,34,3])),PI=k("/en/dispute-resolution")({head:()=>({meta:[{title:"Alternative Dispute Resolution â Consulstaff"},{name:"description",content:"Consumer information about alternative consumer dispute resolution entities, under Law No. 144/2015."},{name:"robots",content:"index,follow"},{property:"og:title",content:"Alternative Dispute Resolution â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/dispute-resolution"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/dispute-resolution"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/resolucao-de-litigios"}]}),component:L(AI,"component")}),OI=()=>I(()=>import("./en.faq-K-MxUus-.js"),__vite__mapDeps([105,33,2,63,4,5,11,25])),LI=k("/en/faq")({head:()=>({meta:[{title:"FAQ â Consulstaff"},{name:"description",content:"Answers to the most frequent questions about EU funds, applications, Portugal 2030, PRR and management consulting."},{property:"og:title",content:"FAQ â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/faq"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/faq"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/perguntas-frequentes"}]}),component:L(OI,"component")}),II="/__l5e/assets-v1/1675e15e-a2ca-4897-a98f-f04947de9e4c/hero-fundos.jpg",kI={url:II},$I=()=>I(()=>import("./en.funding-incentives-D5a7-63u.js"),__vite__mapDeps([106,33,2,4,5,56,17,27,57,58])),xI=k("/en/funding-incentives")({head:()=>({meta:[{title:"Funding & Incentives â Consulstaff"},{name:"description",content:"Access the main funding programmes available for Portuguese companies: Portugal 2030, PRR, PEPAC, Turismo de Portugal and Açores 2030."},{property:"og:title",content:"Funding & Incentives â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/funding-incentives"},{property:"og:image",content:kI.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/funding-incentives"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/fundos-e-incentivos"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/funding-incentives"}]}),component:L($I,"component")}),DI=()=>I(()=>import("./en.national-coverage-BaZyznHj.js"),__vite__mapDeps([107,32,1,2,33,34,3,11,35,36])),m0="https://www.consulstaff.pt",jI=k("/en/national-coverage")({head:()=>({meta:[{title:"Consulting Across Portugal â Consulstaff"},{name:"description",content:"Investment project and EU funding consulting for companies in mainland Portugal, the Azores and Madeira."},{property:"og:title",content:"National Coverage â Consulstaff"},{property:"og:description",content:"Specialist support for business investment projects throughout Portugal."},{property:"og:url",content:`${m0}/en/national-coverage`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${m0}/en/national-coverage`}]}),component:L(DI,"component")}),MI=()=>I(()=>import("./en.pepac-UiYB3BgO.js"),__vite__mapDeps([108,100,33,2,4,5,109,11,44,76,110])),NI=k("/en/pepac")({head:()=>({meta:[{title:"PEPAC â Rural & Agri-food Funding | Consulstaff"},{name:"description",content:"Specialists in PEPAC applications: rural tourism, agri-food, bioeconomy, circular economy and forestry."},{property:"og:title",content:"PEPAC â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/pepac"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/pepac"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac"}]}),component:L(MI,"component")}),zI=()=>I(()=>import("./en.portugal-2030-8XOg6PeH.js"),__vite__mapDeps([111,100,33,2,4,5,112,11,22,52,23,24])),UI=k("/en/portugal-2030")({head:()=>({meta:[{title:"Portugal 2030 â Funding & Incentives | Consulstaff"},{name:"description",content:"Specialists in Portugal 2030 applications: productive innovation, internationalisation, SME qualification, R&D and skilled HR."},{property:"og:title",content:"Portugal 2030 â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030"}]}
55),component:L(zI,"component")}),BI=()=>I(()=>import("./en.privacy-policy-CtvzPTQH.js"),__vite__mapDeps([113,32,1,2,33,34,3])),qI=k("/en/privacy-policy")({head:()=>({meta:[{title:"Privacy Policy â Consulstaff"},{name:"description",content:"How Consulstaff collects, uses and protects the personal data of website users and clients."},{name:"robots",content:"index,follow"},{property:"og:title",content:"Privacy Policy â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/privacy-policy"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/privacy-policy"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/politica-de-privacidade"}]}),component:L(BI,"component")}),HI=()=>I(()=>import("./en.prr-BMAZ_oxe.js"),__vite__mapDeps([114,100,33,2,4,5,115,44,21,76,89,20,92])),VI=k("/en/prr")({head:()=>({meta:[{title:"PRR â Recovery & Resilience Plan | Consulstaff"},{name:"description",content:"Specialists in PRR applications: Industry 4.0, digital transition, decarbonisation, energy efficiency and business innovation."},{property:"og:title",content:"PRR â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/prr"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr"}]}),component:L(HI,"component")}),FI=()=>I(()=>import("./en.services-DtSHIxCV.js"),[]),GI=k("/en/services")({component:L(FI,"component")}),KI=()=>I(()=>import("./en.terms-and-conditions-C6wM0SJp.js"),__vite__mapDeps([116,32,1,2,33,34,3])),YI=k("/en/terms-and-conditions")({head:()=>({meta:[{title:"Terms and Conditions â Consulstaff"},{name:"description",content:"Terms and Conditions for the use of the consulstaff.pt website and Consulstaff's consulting services."},{name:"robots",content:"index,follow"},{property:"og:title",content:"Terms and Conditions â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/terms-and-conditions"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/terms-and-conditions"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/termos-e-condicoes"}]}),component:L(KI,"component")}),QI=()=>I(()=>import("./en.tourism-hospitality-CfK9PMUI.js"),__vite__mapDeps([117,32,1,2,33,34,3,69,4,5])),JI=k("/en/tourism-hospitality")({head:()=>({meta:[{title:"Tourism and Hospitality Support â Turismo de Portugal Funding Lines | Consulstaff"},{name:"description",content:"Specialised consulting on tourism, hospitality, rural tourism support and the creation of hotel units."},{property:"og:title",content:"Tourism and Hospitality â Consulstaff"},{property:"og:description",content:"Turismo de Portugal funding lines and EU funds."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/tourism-hospitality"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-hotelaria"}]}),component:L(QI,"component")}),XI=()=>I(()=>import("./en.training-DUWyb03x.js"),__vite__mapDeps([118,33,2,48,4,5,49,16,20,24,17,11,50,51,52,53,46])),ZI=k("/en/training")({head:()=>({meta:[{title:"Corporate Training â Consulstaff"},{name:"description",content:"Certified training programmes for companies: management, EU funds, finance and leadership."},{property:"og:title",content:"Training â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/training"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/training"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/formacao"}]}),component:L(XI,"component")}),WI="/assets/hero-turismo-resort-DRYs3oe8.jpg",ek=()=>I(()=>import("./en.turismo-de-portugal-WmFPVxxd.js"),__vite__mapDeps([119,100,33,2,4,5,12,19,10,120,121])),tk=k("/en/turismo-de-portugal")({head:()=>({meta:[{title:"Turismo de Portugal â Tourism Funding | Consulstaff"},{name:"description",content:"Specialists in Turismo de Portugal credit lines and programmes: hotel qualification, Crescer com o Turismo, REVIVE, Interior Investment Fund and Portugal Events."},{property:"og:title",content:"Turismo de Portugal â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/turismo-de-portugal"},{property:"og:image",content:WI}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/turismo-de-portugal"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal"}]}),component:L(ek,"component")}),nk=()=>I(()=>import("./es.index-gqCoZSUW.js"),__vite__mapDeps([122,34,2,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])),rk=k("/es/")({head:()=>({meta:[{title:"Consulstaff â ConsultorÃa en Fondos Europeos e Inversión"},{name:"description",content:"Más de 20 años elaborando candidaturas a Portugal 2030, PRR, PEPAC y Turismo de Portugal. 95% de tasa de aprobación y más de 550M⬠en incentivos aprobados."},{property:"og:title",content:"Consulstaff â Consultores de Gestión"},{property:"og:description",content:"Especialistas en Proyectos de Inversión y Fondos Europeos."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{property:"og:url",content:"https://www.consulstaff.pt/es"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es"},{rel:"alternate",hrefLang:"x-default",href:"https://www.consulstaff.pt/"}]}),component:L(nk,"component")}),ok=()=>I(()=>import("./es.acores-2030-D7dcTds4.js"),[]),sk=k("/es/acores-2030")({component:L(ok,"component")}),ik=()=>I(()=>import("./es.blog-D7dcTds4.js"),[]),ak=k("/es/blog")({component:L(ik,"component")}),lk=()=>I(()=>import("./es.cobertura-nacional-DbaYDfol.js"),__vite__mapDeps([123,32,1,2,33,34,3,11,35])),g0="https://www.consulstaff.pt",ck=k("/es/cobertura-nacional")({head:()=>({meta:[{title:"ConsultorÃa en Portugal, Azores y Madeira â Consulstaff"},{name:"description",content:"ConsultorÃa en proyectos de inversión y fondos europeos para empresas en Portugal continental, Azores y Madeira."},{property:"og:title",content:"Cobertura Nacional â Consulstaff"},{property:"og:description",content:"Apoyo especializado a proyectos empresariales en todo Portugal."},{property:"og:url",content:`${g0}/es/cobertura-nacional`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${g0}/es/cobertura-nacional`}]}
55),component:L(lk,"component")}),uk=()=>I(()=>import("./es.contacto-DzS3sAZ8.js"),__vite__mapDeps([124,34,2,38,4,5])),Ss="https://www.consulstaff.pt",fk=k("/es/contacto")({head:()=>({meta:[{title:"Contacto â Consulstaff"},{name:"description",content:"Solicite un análisis gratuito de su proyecto. Hable con el equipo de Consulstaff."},{property:"og:title",content:"Contacto â Consulstaff"},{property:"og:description",content:"Análisis gratuito de su proyecto de inversión."},{property:"og:url",content:`${Ss}/es/contacto`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${Ss}/es/contacto`},{rel:"alternate",hrefLang:"pt",href:`${Ss}/contactos`},{rel:"alternate",hrefLang:"en",href:`${Ss}/en/contact`},{rel:"alternate",hrefLang:"es",href:`${Ss}/es/contacto`},{rel:"alternate",hrefLang:"x-default",href:`${Ss}/contactos`}]}),component:L(uk,"component")}),dk=()=>I(()=>import("./es.empresa-DNQpkGtC.js"),__vite__mapDeps([125,34,2,41,4,5,17,29,42,43,20,11,44,36,23,24,12,45,46,14])),hk=k("/es/empresa")({head:()=>({meta:[{title:"Consulstaff | ConsultorÃa de Gestión y Fondos Europeos"},{name:"description",content:"Conozca Consulstaff, consultora de gestión con más de 20 años de experiencia en fondos europeos y proyectos de inversión en Portugal."},{property:"og:title",content:"Consulstaff | ConsultorÃa de Gestión y Fondos Europeos"},{property:"og:description",content:"Conozca la experiencia, misión y valores de Consulstaff."},{property:"og:url",content:"https://www.consulstaff.pt/es/empresa"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/empresa"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/empresa"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/company"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/empresa"},{rel:"alternate",hrefLang:"x-default",href:"https://www.consulstaff.pt/empresa"}]}),component:L(dk,"component")}),pk=()=>I(()=>import("./es.fondos-e-incentivos-DBnruBXE.js"),__vite__mapDeps([126,34,2,8,55,4,5,56,17,27,57,58,59,16,42,60,61])),Rs="https://www.consulstaff.pt",mk=k("/es/fondos-e-incentivos")({head:()=>({meta:[{title:"Fondos e Incentivos â Consulstaff"},{name:"description",content:"Especialistas en proyectos de inversión y fondos europeos. Apoyo a la obtención de financiación europea desde hace 20 años."},{property:"og:title",content:"Fondos e Incentivos â Consulstaff"},{property:"og:description",content:"ConsultorÃa especializada en fondos europeos y proyectos de inversión."},{property:"og:image",content:pa.url},{property:"og:url",content:`${Rs}/es/fondos-e-incentivos`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${Rs}/es/fondos-e-incentivos`},{rel:"alternate",hrefLang:"pt",href:`${Rs}/fundos-e-incentivos`},{rel:"alternate",hrefLang:"en",href:`${Rs}/en/funding-incentives`},{rel:"alternate",hrefLang:"es",href:`${Rs}/es/fondos-e-incentivos`},{rel:"alternate",hrefLang:"x-default",href:`${Rs}/fundos-e-incentivos`}]}),component:L(pk,"component")}),gk=()=>I(()=>import("./es.formacion-CFBWVJ2N.js"),__vite__mapDeps([127,34,2,48,4,5,49,16,20,24,17,11,50,51,52,53,46])),Vi="https://www.consulstaff.pt",vk=k("/es/formacion")({head:()=>({meta:[{title:"Formación Empresarial â Consulstaff"},{name:"description",content:"Programas de formación certificada para empresas: gestión, fondos europeos, finanzas y liderazgo."},{property:"og:title",content:"Formación â Consulstaff"},{property:"og:description",content:"Formación empresarial certificada."},{property:"og:url",content:`${Vi}/es/formacion`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${Vi}/es/formacion`},{rel:"alternate",hrefLang:"pt",href:`${Vi}/formacao`},{rel:"alternate",hrefLang:"es",href:`${Vi}/es/formacion`},{rel:"alternate",hrefLang:"x-default",href:`${Vi}
55/formacao`}]}),component:L(gk,"component")}),yk=()=>I(()=>import("./es.pepac-DIXxFss-.js"),[]),wk=k("/es/pepac")({component:L(yk,"component")}),_k=()=>I(()=>import("./es.politica-de-cookies-CHz4s4Rs.js"),__vite__mapDeps([128,32,1,2,33,34,3])),bk=k("/es/politica-de-cookies")({head:()=>({meta:[{title:"PolÃtica de Cookies â Consulstaff"},{name:"description",content:"Información sobre el uso de cookies en el sitio web de Consulstaff y cómo el usuario puede gestionarlas."},{name:"robots",content:"index,follow"},{property:"og:title",content:"PolÃtica de Cookies â Consulstaff"},{property:"og:description",content:"Uso de cookies en el sitio web de Consulstaff y opciones de gestión."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/politica-de-cookies"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/politica-de-cookies"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/politica-de-cookies"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/cookie-policy"}]}),component:L(_k,"component")}),Sk=()=>I(()=>import("./es.politica-de-privacidad-Y0ZvrH8q.js"),__vite__mapDeps([129,32,1,2,33,34,3])),Rk=k("/es/politica-de-privacidad")({head:()=>({meta:[{title:"PolÃtica de Privacidad â Consulstaff"},{name:"description",content:"Cómo Consulstaff recoge, utiliza y protege los datos personales de los usuarios del sitio y de sus clientes."},{name:"robots",content:"index,follow"},{property:"og:title",content:"PolÃtica de Privacidad â Consulstaff"},{property:"og:description",content:"Tratamiento y protección de datos personales en Consulstaff, conforme al RGPD."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/politica-de-privacidad"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/politica-de-privacidad"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/politica-de-privacidade"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/privacy-policy"}]}),component:L(Sk,"component")}),Ek=()=>I(()=>import("./es.portugal-2030-B6Zutovc.js"),[]),Ck=k("/es/portugal-2030")({component:L(Ek,"component")}),Tk=()=>I(()=>import("./es.preguntas-frecuentes-BrFQj0Zb.js"),__vite__mapDeps([130,34,2,63,4,5,11,25])),Es="https://www.consulstaff.pt",Ak=k("/es/preguntas-frecuentes")({head:()=>({meta:[{title:"Preguntas Frecuentes â Consulstaff"},{name:"description",content:"Respuestas a las preguntas más frecuentes sobre fondos europeos, candidaturas, Portugal 2030, PRR y consultorÃa de gestión."},{property:"og:title",content:"Preguntas Frecuentes â Consulstaff"},{property:"og:description",content:"Todo lo que necesita saber sobre nuestros servicios de consultorÃa."},{property:"og:url",content:`${Es}/es/preguntas-frecuentes`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${Es}/es/preguntas-frecuentes`},{rel:"alternate",hrefLang:"pt",href:`${Es}/perguntas-frequentes`},{rel:"alternate",hrefLang:"en",href:`${Es}/en/faq`},{rel:"alternate",hrefLang:"es",href:`${Es}/es/preguntas-frecuentes`},{rel:"alternate",hrefLang:"x-default",href:`${Es}/perguntas-frequentes`}]}),component:L(Tk,"component")}),Pk=()=>I(()=>import("./es.prr-aApvXpuR.js"),[]),Ok=k("/es/prr")({component:L(Pk,"component")}),Lk=()=>I(()=>import("./es.resolucion-de-litigios-DXgi04sQ.js"),__vite__mapDeps([131,32,1,2,33,34,3])),Ik=k("/es/resolucion-de-litigios")({head:()=>({meta:[{title:"Resolución Alternativa de Litigios â Consulstaff"},{name:"description",content:"Información al consumidor sobre las entidades de resolución alternativa de litigios de consumo, conforme a la Ley n.º 144/2015."},{name:"robots",content:"index,follow"},{property:"og:title",content:"Resolución Alternativa de Litigios â Consulstaff"},{property:"og:description",content:"Entidades competentes para la resolución alternativa de litigios de consumo."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/resolucion-de-litigios"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/resolucion-de-litigios"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/resolucao-de-litigios"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/dispute-resolution"}]}),component:L(Lk,"component")}),kk=()=>I(()=>import("./es.servicios-DTIFlOY-.js"),[]),$k=k("/es/servicios")({component:L(kk,"component")}),xk=()=>I(()=>import("./es.terminos-y-condiciones-Du6xpBWu.js"),__vite__mapDeps([132,32,1,2,33,34,3])),Dk=k("/es/terminos-y-condiciones")({head:()=>({meta:[{title:"Términos y Condiciones â Consulstaff"},{name:"description",content:"Términos y Condiciones de uso del sitio consulstaff.pt y de los servicios de consultorÃa de Consulstaff."},{name:"robots",content:"index,follow"},{property:"og:title",content:"Términos y Condiciones â Consulstaff"},{property:"og:description",content:"Condiciones generales de uso del sitio y de los servicios de Consulstaff."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/terminos-y-condiciones"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/terminos-y-condiciones"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/termos-e-condicoes"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/terms-and-conditions"}]}),component:L(xk,"component")}),jk=()=>I(()=>
55import("./es.turismo-de-portugal-CuiUkbwK.js"),[]),Mk=k("/es/turismo-de-portugal")({component:L(jk,"component")}),Nk=()=>I(()=>import("./es.turismo-hosteleria-L9gnmsj1.js"),__vite__mapDeps([133,32,1,2,33,34,3,69,4,5])),zk=k("/es/turismo-hosteleria")({head:()=>({meta:[{title:"Ayudas al Turismo y la HostelerÃa â LÃneas Turismo de Portugal | Consulstaff"},{name:"description",content:"ConsultorÃa especializada en ayudas al turismo, hostelerÃa, turismo rural y creación de establecimientos hoteleros en Portugal."},{property:"og:title",content:"Turismo y HostelerÃa â Consulstaff"},{property:"og:description",content:"LÃneas de apoyo de Turismo de Portugal y fondos comunitarios."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/turismo-hosteleria"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-hosteleria"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-hotelaria"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/tourism-hospitality"}]}),component:L(Nk,"component")}),Uk=()=>I(()=>import("./pepac.index-EvXRJcJK.js"),__vite__mapDeps([134,1,2,3,69,109,135,4,5,11,44,76,110,56,17,27,57,58,84,16,86,28])),Bk=k("/pepac/")({head:()=>({meta:[{title:"PEPAC â Apoios à Agricultura e Desenvolvimento Rural | Consulstaff"},{name:"description",content:"Especialistas em candidaturas PEPAC. Apoios à agricultura, agroindústria e desenvolvimento rural em Portugal."},{property:"og:title",content:"PEPAC â Consulstaff"},{property:"og:description",content:"Plano Estratégico da PAC 2023-2027."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/pepac"}]}),component:L(Uk,"component")}),qk="/__l5e/assets-v1/cd251a3c-f5dd-4197-8683-5abb4d692238/pepac-bioeconomia-agroindustria-hero.jpg",Ec={url:qk},Hk=()=>I(()=>import("./pepac.bioeconomia-agroindustria-zdT22Vi6.js"),__vite__mapDeps([136,137,1,2,3,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,141,11,44,80,46,13])),Vk=k("/pepac/bioeconomia-agroindustria")({head:()=>({meta:[{title:"Bioeconomia â Agroindústria | PEPAC | Consulstaff"},{name:"description",content:"Apoios PEPAC até 600.000⬠a fundo perdido para modernização agroindustrial. Investimentos até 2.000.000â¬."},{property:"og:title",content:"PEPAC â Modernização Agroindústria"},{property:"og:description",content:"Até 600.000⬠a fundo perdido para transformação de produtos agrÃcolas."},{property:"og:image",content:Ec.url},{property:"twitter:image",content:Ec.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/pepac/bioeconomia-agroindustria"}]}),component:L(Hk,"component")}),Fk="/__l5e/assets-v1/bd2459d7-412b-41ec-8afd-cd881f7b370a/pepac-bioeconomia-florestal-hero.jpg",Cc={url:Fk},Gk=()=>I(()=>import("./pepac.bioeconomia-florestal-C6VjbMKX.js"),__vite__mapDeps([142,137,1,2,3,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,143,110,44,80,11,46,90])),Kk=k("/pepac/bioeconomia-florestal")({head:()=>({meta:[{title:"Bioeconomia â Setor Florestal | PEPAC | Consulstaff"},{name:"description",content:"Apoios PEPAC até 600.000⬠a fundo perdido para modernização e valorização da fileira florestal. Investimentos até 2.000.000â¬."},{property:"og:title",content:"PEPAC â Modernização Setor Florestal"},{property:"og:description",content:"Até 600.000⬠a fundo perdido para o setor florestal."},{property:"og:image",content:Cc.url},{property:"twitter:image",content:Cc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/pepac/bioeconomia-florestal"}]}),component:L(Gk,"component")}),Yk="/__l5e/assets-v1/e6c4e89e-23c7-440a-a240-ba0cb3c32349/pepac-diversificacao-comercio-servicos-hero.jpg",y_={url:Yk},v0=y_.url,Qk=()=>I(()=>import("./pepac.diversificacao-comercio-servicos-CqxpOLTx.js"),__vite__mapDeps([144,137,1,2,3,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,145,11,44,52,80,72,46,93,92,78,77])),Jk=k("/pepac/diversificacao-comercio-servicos")({head:()=>({meta:[{title:"Diversificação, Comércio e Serviços â PEPAC | Consulstaff"},{name:"description",content:"Apoios PEPAC a fundo perdido (50%) para comércio, serviços e atividades económicas em meio rural. Investimentos entre 10.000⬠e 300.000â¬."}
55,{property:"og:title",content:"PEPAC â Diversificação, Comércio e Serviços"},{property:"og:description",content:"50% a fundo perdido para criação e expansão de negócios em territórios rurais."},{property:"og:image",content:v0},{property:"twitter:image",content:v0}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/pepac/diversificacao-comercio-servicos"}]}),component:L(Qk,"component")}),Xk="/__l5e/assets-v1/2ad965dd-5f2a-429f-8971-3a5d39b3e5f6/pepac-pequenos-investimentos-bioeconomia-hero.jpg",Tc={url:Xk},Zk=()=>I(()=>import("./pepac.pequenos-investimentos-bioeconomia-CcpOMw-N.js"),__vite__mapDeps([146,137,1,2,3,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,147,148,149,13,150,11,44,80,90,46])),Wk=k("/pepac/pequenos-investimentos-bioeconomia")({head:()=>({meta:[{title:"Pequenos Investimentos â Bioeconomia e Economia Circular | PEPAC"},{name:"description",content:"Apoios PEPAC a fundo perdido (50%) para pequenas unidades agroindustriais, bioeconomia e economia circular. Investimentos até 250.000â¬."},{property:"og:title",content:"PEPAC â Pequenos Investimentos na Bioeconomia"},{property:"og:description",content:"50% a fundo perdido para projetos de bioeconomia e economia circular."},{property:"og:image",content:Tc.url},{property:"twitter:image",content:Tc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/pepac/pequenos-investimentos-bioeconomia"}]}),component:L(Zk,"component")}),e$=()=>I(()=>import("./portugal-2030.index-DwGZGFRF.js"),__vite__mapDeps([151,1,2,3,112,152,4,5,11,22,52,23,24])),t$=k("/portugal-2030/")({head:()=>({meta:[{title:"Portugal 2030 â Consultoria e Candidaturas | Consulstaff"},{name:"description",content:"Especialistas em candidaturas Portugal 2030. Apoios à inovação, internacionalização, qualificação e investimento empresarial."},{property:"og:title",content:"Portugal 2030 â Consulstaff"},{property:"og:description",content:"Consultoria Portugal 2030 e candidaturas a fundos comunitários."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030"}]}),component:L(e$,"component")}),n$=()=>I(()=>import("./portugal-2030.idt-DBUM1nP7.js"),__vite__mapDeps([153,1,2,3,154,4,5,155,156,20,89,28,19,86,17,60,81,24,80,157,16,61,158,27,121,83,43,59,23,22])),r$=k("/portugal-2030/idt")({head:()=>({meta:[{title:"I&D Empresarial â Operações Individuais e em Copromoção | Consulstaff"},{name:"description",content:"Apoio a atividades de investigação industrial e desenvolvimento experimental. Até 80% a fundo perdido, investimento mÃnimo 250.000â¬. Portugal 2030."},{property:"og:title",content:"I&D Empresarial â Operações Individuais e em Copromoção | Consulstaff"},{property:"og:description",content:"Apoios até 80% a fundo perdido para I&D empresarial, operações individuais e em copromoção. Dotação 30Mâ¬. Candidaturas de setembro a dezembro de 2026."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/idt"}]}),component:L(n$,"component")}),o$=()=>I(()=>import("./portugal-2030.inovacao-produtiva-vppAEYT7.js"),__vite__mapDeps([159,1,2,3,154,4,5,160,161,156,162,44,11,28,163,164,76,60,91,46,52,165,89,72,166,167,50,22,24,168,12,78,19,56,27,61,169])),s$=k("/portugal-2030/inovacao-produtiva")({head:()=>({meta:[{title:"Inovação Produtiva â SICE Portugal 2030 | Consulstaff"},{name:"description",content:"SICE Inovação Produtiva: até 60% de incentivo e até 25.000.000 ⬠de investimento elegÃvel. Apoio a projetos empresariais de modernização, expansão e capacidade produtiva."},{property:"og:title",content:"Inovação Produtiva â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio a fundo perdido para investimento empresarial, modernização e expansão. Análise gratuita."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/inovacao-produtiva"}]}),component:L(o$,"component")}),i$=()=>I(()=>import("./portugal-2030.internacionalizacao-pme-sZoCGDhe.js"),__vite__mapDeps([170,1,2,3,154,4,5,171,156,17,60,56,172,16,72,173,49,86,76,167,52,59,11,121,27,61,169])),a$=k("/portugal-2030/internacionalizacao-pme")({head:()=>({meta:[{title:"SICE Internacionalização das PME â Portugal 2030 | Consulstaff"},{name:"description",content:"SICE Internacionalização das PME (Operações Individuais): 40% de incentivo a fundo perdido, dotação de 57 Mâ¬. Candidaturas até 31/03/2026."},{property:"og:title",content:"SICE Internacionalização das PME â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio a fundo perdido para projetos de internacionalização de PME. Feiras, marca, e-commerce e marketing digital."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/internacionalizacao-pme"}]}),component:L(i$,"component")}),l$=()=>I(()=>import("./portugal-2030.qualificacao-pme-BsiiyuFb.js"),__vite__mapDeps([174,1,2,3,154,4,5,175,176,161,76,52,149,19,60,11,177,23,16,86,164,24,81,158,156,17,121,61,43,56,167,27,
55169])),c$=k("/portugal-2030/qualificacao-pme")({head:()=>({meta:[{title:"Qualificação PME â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos à Qualificação das PME. Até 50% a fundo perdido para qualificação e digitalização dos modelos de negócio. Análise gratuita."},{property:"og:title",content:"Qualificação PME â Consulstaff"},{property:"og:description",content:"Apoios à qualificação e digitalização das PME no âmbito do Portugal 2030."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/qualificacao-pme"}]}),component:L(l$,"component")}),u$=()=>I(()=>import("./portugal-2030.rh-qualificados-D13gY9J6.js"),__vite__mapDeps([178,1,2,3,154,4,5,179,23,164,76,20,22,19,11,24,16,50,156,59,121,42,180,167,43,56,27,61,169])),f$=k("/portugal-2030/rh-qualificados")({head:()=>({meta:[{title:"Contratação de RH Altamente Qualificados â Centro 2030 | Consulstaff"},{name:"description",content:"Centro 2030: até 50% de apoio à contratação, por PME, de licenciados, mestres, doutorados e pós-doutorados. Financiado pelo FSE+ até 36 meses."},{property:"og:title",content:"RH Altamente Qualificados â Centro 2030 | Consulstaff"},{property:"og:description",content:"Apoio de 50% à contratação de talento altamente qualificado em PME da Região Centro. Candidaturas até fevereiro de 2027."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/rh-qualificados"}]}),component:L(u$,"component")}),d$=()=>I(()=>import("./portugal-2030.si-base-territorial-DkCYq7uI.js"),__vite__mapDeps([181,138,139,1,2,3,154,4,5,182,19,89,76,60,44,12,92,77,43,84,85,59,86])),h$=k("/portugal-2030/si-base-territorial")({head:()=>({meta:[{title:"SI Base Territorial â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial. Avisos regionais para Médio Tejo, Alentejo, Algarve e Norte. Investimento local com impacto regi
55onal."},{property:"og:title",content:"SI Base Territorial â Consulstaff"},{property:"og:description",content:"Projetos de investimento de pequena dimensão nas áreas da indústria, turismo, comércio e serviços."},{property:"og:url",content:"https://www.consulstaff.pt/portugal-2030/si-base-territorial"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/si-base-territorial"}]}),component:L(d$,"component")}),p$=()=>I(()=>import("./portugal-2030.sibt-alentejo-_JXnooJS.js"),__vite__mapDeps([183,138,139,1,2,3,154,4,5,184,156,20,19,164,76,60,28,91,46,52,80,79,16,82,11,44,77,92,45,83,56,167,27,61,169])),m$=k("/portugal-2030/sibt-alentejo")({head:()=>({meta:[{title:"SIBT Alentejo â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Alentejo. Até 60% a fundo perdido para micro e pequenas empresas. Candidaturas até 31/07/2026."},{property:"og:title",content:"SIBT Alentejo â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio até 60% a fundo perdido para investimento empresarial na NUTS II Alentejo. Análise gratuita da elegibilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/sibt-alentejo"}]}
55),component:L(p$,"component")}),g$=()=>I(()=>import("./portugal-2030.sibt-algarve-CClLJP5W.js"),__vite__mapDeps([185,138,139,1,2,3,154,4,5,186,156,83,20,19,164,76,60,28,91,46,52,80,79,16,82,11,44,14,120,94,177,56,167,27,61,169])),v$=k("/portugal-2030/sibt-algarve")({head:()=>({meta:[{title:"SIBT Algarve â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Algarve. Até 60% a fundo perdido (máx. 300.000â¬) para micro e pequenas empresas na NUTS II Algarve."},{property:"og:title",content:"SIBT Algarve â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio até 60% a fundo perdido para investimento empresarial no Algarve. Análise gratuita da elegibilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/sibt-algarve"}]}),component:L(g$,"component")}),y$=()=>I(()=>import("./portugal-2030.sibt-medio-tejo-BPlVL4op.js"),__vite__mapDeps([187,138,139,1,2,3,154,4,5,188,156,20,19,164,76,60,28,91,46,52,80,79,16,166,82,44,10,11,83,56,167,27,61,169])),w$=k("/portugal-2030/sibt-medio-tejo")({head:()=>({meta:[{title:"SIBT Médio Tejo â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Médio Tejo. Até 65% a fundo perdido para micro e pequenas empresas. Candidaturas até 30/09/2026."},{property:"og:title",content:"SIBT Médio Tejo â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio até 65% a fundo perdido para investimento empresarial nos 11 municÃpios do Médio Tejo. Análise gratuita da elegibilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/sibt-medio-tejo"}]}),component:L(y$,"component")}),_$=()=>I(()=>import("./portugal-2030.sibt-norte-vkTy7kwb.js"),__vite__mapDeps([189,138,139,1,2,3,154,4,5,190,156,20,19,164,76,60,28,91,46,52,80,27,72,16,82,11,44,36,12,83,56,167,61,169])),b$=k("/portugal-2030/sibt-norte")({head:()=>({meta:[{title:"SIBT Norte â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Norte. Até 60% a fundo perdido (máx. 300.000â¬) para micro e pequenas empresas na NUTS II Norte."},{property:"og:title",content:"SIBT Norte â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio até 60% a fundo perdido para investimento empresarial na Região Norte. Análise gratuita da elegibilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/sibt-norte"}]}),component:L(_$,"component")}),S$=()=>I(()=>import("./portugal-2030.sibt-oeste-CNXqUvGu.js"),__vite__mapDeps([191,138,139,1,2,3,154,4,5,192,156,20,19,89,76,60,28,91,46,52,80,16,81,27,82,11,44,193,83,56,167,61,169])),R$=k("/portugal-2030/sibt-oeste")({head:()=>({meta:[{title:"SIBT Oeste â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Oeste. 40% a fundo perdido para investimento industrial (40.000 ⬠â 300.000 â¬) na CIM Oeste. Candidaturas 14/01/2026 a 30/04/2026."},{property:"og:title",content:"SIBT Oeste â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio a 40% a fundo perdido para indústria na CIM Oeste. Análise gratuita da elegibilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/sibt-oeste"}]}),component:L(S$,"component")}),E$=()=>I(()=>import("./portugal-2030.sibt-pinhal-interior-BycTaSm2.js"),__vite__mapDeps([194,1,2,3,154,4,5,195,139,156,20,19,164,76,60,89,91,46,52,80,16,166,82,28,44,10,92,110,83,56,167,27,61,169])),C$=k("/portugal-2030/sibt-pinhal-interior")({head:()=>({meta:[{title:"SIBT Pinhal Interior â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial IIBT Pinhal Interior. Até 60% (70% no Fundão) a fundo perdido para micro e pequenas empresas. Candidaturas de 30/01/2026 a 30/04/2026."},{property:"og:title",content:"SIBT Pinhal Interior â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoio a fundo perdido para investimento empresarial no território IIBT Pinhal Interior. Indústria, turismo, comércio e serviços."},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/portugal-2030/sibt-pinhal-interior"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-pinhal-interior"}]}),component:L(E$,"component")}),T$=()=>I(()=>import("./prr.index-CzvJ8BSP.js"),__vite__mapDeps([196,1,2,3,197,198,115,199,4,5,44,21,76,89,20,164,200,11,157,92])),A$=k("/prr/")({head:()=>({meta:[{title:"PRR â Plano de Recuperação e Resiliência | Consulstaff"},{name:"description",content:"Consultoria especializada em candidaturas ao PRR. Apoios à inovação, capitalização e transição digital e climática."},{property:"og:title",content:"PRR â Consulstaff"},{property:"og:description",content:"Candidaturas e acompanhamento PRR."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr"}]}),component:L(T$,"component")}),P$=()=>I(()=>import("./prr.bairros-comerciais-B7UyaoOa.js"),__vite__mapDeps([201,138,139,1,2,3,154,4,5,202,203,19,89,60,43,11,86,92,22,172,93,52,16,28,84,85,59])),O$=k("/prr/bairros-comerciais")({head:()=>({meta:[{title:"Bairros Comerciais Digitais â PRR | Consulstaff"},{name:"description",content:"Programa PRR Bairros Comerciais Digitais. Digitalização e modernização do comércio local. 95 BCD aprovados, 77,5 M⬠de dotação. Consultoria especializada."},{property:"og:title",content:"Bairros Comerciais Digitais â PRR | Consulstaff"},{property:"og:description",content:"Digitalização do comércio de proximidade através dos Bairros Comerciais Digitais do PRR."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/bairros-comerciais"}]}),component:L(P$,"component")}),L$=()=>I(()=>import("./prr.coaching-4-0-B-WDOPZk.js"),__vite__mapDeps([204,138,139,1,2,3,154,4,5,197,205,156,21,81,19,89,24,20,60,80,164,27,23,16,193,83,28,56,167,61,169])),I$=k("/prr/coaching-4-0")({head:()=>({meta:[{title:"Coaching 4.0 | PRR | Consulstaff"},{name:"description",content:"Coaching 4.0 do PRR: apoio a fundo perdido para transformação digital das PME. Consultoria especializada, coach dedicado, formação e adoção tecnológica. Até 75% de comparticipação."},{property:"og:title",content:"Coaching 4.0 | PRR | Consulstaff"},{property:"og:description",content:"Programa de coaching e transformação digital para PME financiado a fundo perdido pelo PRR."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/coaching-4-0"}]}),component:L(L$,"component")}),js="/assets/prr-descarbonizacao-B8_u_og8.jpg",k$=()=>I(()=>import("./prr.descarbonizacao-Dgiat5lO.js"),__vite__mapDeps([206,138,139,1,2,3,154,4,5,197,202,156,76,89,200,90,19,36,11,207,46,91,27,16,193,83,28,56,167,61,169])),$$=k("/prr/descarbonizacao")({head:()=>({meta:[{title:"Descarbonização da Indústria | PRR | Consulstaff"},{name:"description",content:"Apoio a fundo perdido do PRR para descarbonização, eficiência energética, energias renováveis e redução de emissões nas empresas industriais. PME e Grandes Empresas."},{property:"og:title",content:"Descarbonização da Indústria | PRR | Consulstaff"},{property:"og:description",content:"Financiamento PRR para transição energética e redução de emissões nas indústrias portuguesas. Análise gratuita de elegibilidade."},{property:"og:image",content:js},{property:"twitter:image",content:js}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/descarbonizacao"}]}
55),component:L(k$,"component")}),x$=()=>I(()=>import("./prr.eficiencia-energetica-BzAvys5h.js"),__vite__mapDeps([208,138,139,1,2,3,154,4,5,197,209,156,89,200,23,207,76,19,11,210,46,27,16,193,83,28,56,167,61,169])),D$=k("/prr/eficiencia-energetica")({head:()=>({meta:[{title:"Eficiência Energética em EdifÃcios de Serviços | PRR | Consulstaff"},{name:"description",content:"Apoio a fundo perdido do PRR para reabilitação energética de edifÃcios de serviços: envolvente, AVAC, iluminação, autoconsumo solar. PME e Grandes Empresas em todo o território nacional."},{property:"og:title",content:"Eficiência Energética em EdifÃcios de Serviços | PRR | Consulstaff"},{property:"og:description",content:"Financiamento a fundo perdido para reduzir consumos de energia primária e integrar renováveis em edifÃcios de serviços."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/eficiencia-energetica"}]}),component:L(x$,"component")}),j$=()=>I(()=>import("./prr.ifici-CJMqiyW0.js"),__vite__mapDeps([211,138,139,1,2,3,154,4,5,197,202,212,156,44,19,93,89,60,36,11,46,91,164,80,16,27,76,193,83,28,56,167,61,169])),M$=k("/prr/ifici")({head:()=>({meta:[{title:"IFICI â Linha Reindustrializar | PRR | Consulstaff"},{name:"description",content:"IFICI Reindustrializar: apoio misto (reembolsável + fundo perdido) do PRR para investimento produtivo, modernização industrial e relocalização em Portugal. PME e Grandes Empresas."},{property:"og:title",content:"IFICI â Linha Reindustrializar | PRR | Consulstaff"},{property:"og:description",content:"Financiamento do PRR para reindustrialização e modernização produtiva em setores estratégicos. Análise gratuita da elegibilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/ifici"}]}),component:L(j$,"component")}),N$=()=>I(()=>import("./prr.internacionalizacao-ecommerce-bki8W8to.js"),__vite__mapDeps([213,138,139,1,2,3,154,4,5,202,214,22,172,19,60,43,52,177,80,56,72,215,216,81,83,28,84,85,59,86])),z$=k("/prr/internacionalizacao-ecommerce")({head:()=>({meta:[{title:"Internacionalização via E-commerce â PRR | Consulstaff"},{name:"description",content:"PRR Internacionalização via E-commerce: 50% a fundo perdido para PME. Apoio à expansão internacional via marketplaces, lojas online e marketing digital."},{property:"og:title",content:"Internacionalização via E-commerce â PRR | Consulstaff"},{property:"og:description",content:"50% a fundo perdido para projetos de PME de internacionalização digital via e-commerce."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/internacionalizacao-ecommerce"}]}),component:L(N$,"component")}),U$=()=>I(()=>import("./prr.linha-ia-BjZeK7sR.js"),__vite__mapDeps([217,1,2,3,154,4,5,197,199,218,19,89,60,43,164,216,52,80,81,16,27,83,28,84,85,59,86])),B$=k("/prr/linha-ia")({head:()=>({meta:[{title:"Linha IA para PME â PRR | Consulstaff"},{name:"description",content:"PRR Linha IA para PME: até 75% a fundo perdido para adoção de soluções de inteligência artificial. Apoio máximo de 300.000⬠por empresa."},{property:"og:title",content:"Linha IA para PME â PRR | Consulstaff"},{property:"og:description",content:"Apoio à adoção de IA por PME: 75% a fundo perdido, até 300.000⬠por empresa."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/prr/linha-ia"}]}),component:L(U$,"component")}),q$=()=>I(()=>import("./servicos.index-CKNVRLXH.js"),__vite__mapDeps([219,1,2,3,220,221,222,223,224,225,226,4,5,10,12,44,216,72,24,56,17,46,20,19,180,173])),H$=k("/servicos/")({head:()=>({meta:[{title:"Serviços â Consulstaff"},{name:"description",content:"Consultoria em projetos de investimento, fundos comunitários, financiamento empresarial e estudos de viabilidade."},{property:"og:title",content:"Serviços â Consulstaff"},{property:"og:description",content:"Ãreas de atuação da Consulstaff."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos"}]}),component:L(q$,"component")}),V$=()=>I(()=>import("./servicos.consultoria-industrial-CHYesoIp.js"),__vite__mapDeps([227,1,2,228,229,4,5,9,44,11,46,20,150,36,16,164,89,56,61,27,216,230])),F$=k("/servicos/consultoria-industrial")({head:()=>({meta:[{title:"Consultoria para a Indústria â Consulstaff"}
55,{name:"description",content:"Consultoria estratégica para investimentos industriais: criação, expansão, modernização, inovação, Indústria 4.0 e financiamento através dos sistemas de incentivos."},{property:"og:title",content:"Consultoria para a Indústria â Consulstaff"},{property:"og:description",content:"Apoiamos empresas industriais em todas as fases do investimento â da estratégia ao financiamento."},{property:"og:image",content:"https://www.consulstaff.pt/src/assets/hero-industria.jpg"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos/consultoria-industrial"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/industrial-consulting"}]}),component:L(V$,"component")}),G$="/__l5e/assets-v1/d296e07b-f745-432e-9b7b-ca506a6daa0d/dgert-hero.jpg",K$={url:G$},Y$=()=>I(()=>import("./servicos.dgert-formacao-eCS-GLMm.js"),__vite__mapDeps([231,1,2,228,40,232,4,5,49,9,16,20,24,17,11,50,51,52,53,46])),Q$=k("/servicos/dgert-formacao")({head:()=>({meta:[{title:"Consultoria DGERT e Formação Profissional â Consulstaff"},{name:"description",content:"Formação profissional certificada DGERT pela Stafforma â soluções à medida para empresas."},{property:"og:title",content:"Consultoria DGERT e Formação Profissional â Consulstaff"},{property:"og:description",content:"Stafforma â entidade formadora certificada pela DGERT (Cert. n.º 2715/2017)."},{property:"og:image",content:K$.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos/dgert-formacao"}]}),component:L(Y$,"component")}),J$=()=>I(()=>import("./servicos.fundos-comunitarios-DyrWMhkH.js"),__vite__mapDeps([233,1,2,3,228,40,234,232,229,4,5,9,11,17,27,216,19,235,57,56,46,59,42,16])),X$=k("/servicos/fundos-comunitarios")({head:()=>({meta:[{title:"Fundos Comunitários e Sistemas de Incentivos â Consulstaff"},{name:"description",content:"Consultoria especializada em Portugal 2030, PRR, Turismo de Portugal, PEPAC e incentivos regionais."},{property:"og:title",content:"Fundos Comunitários e Sistemas de Incentivos â Consulstaff"},{property:"og:description",content:"20 anos de experiência em projetos de investimento e candidaturas a fundos comunitários."},{property:"og:image",content:pa.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos/fundos-comunitarios"}]}),component:L(J$,"component")}),Z$="/__l5e/assets-v1/455b88e7-59c3-4242-96a4-7068e13bd8e4/marketing-hero.jpg",W$={url:Z$},e3=()=>I(()=>import("./servicos.marketing-estrategico-DlciI2SB.js"),__vite__mapDeps([236,1,2,3,228,40,234,232,229,4,5,9,17,19,60,16,61,167,72,216,162,121,210,56])),t3=k("/servicos/marketing-estrategico")({head:()=>({meta:[{title:"Consultoria em Marketing Estratégico â Consulstaff"},{name:"description",content:"Estudos de mercado, análises estratégicas e Planos de Marketing orientados para resultados."},{property:"og:title",content:"Consultoria em Marketing Estratégico â Consulstaff"},{property:"og:description",content:"Definição de estratégias de marketing, posicionamento e crescimento empresarial."},{property:"og:image",content:W$.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos/marketing-estrategico"}]}),component:L(e3,"component")}),n3="/__l5e/assets-v1/60a256fb-9fda-433f-bf16-385d295ffa5b/hero-projetos-investimento.jpg",r3={url:n3},o3=()=>I(()=>import("./servicos.projetos-investimento-BxQS_xji.js"),__vite__mapDeps([237,1,2,228,40,234,229,4,5,9,59,60,173,11,121,230,19,216,156,25,13,10,16])),s3=k("/servicos/projetos-investimento")({head:()=>({meta:[{title:"Projetos de Investimento e Planos de Negócios â Consulstaff"},{name:"description",content:"Projetos de investimento, planos de negócios e estudos de viabilidade para empresários e investidores."},{property:"og:title",content:"Projetos de Investimento e Planos de Negócios â Consulstaff"},{property:"og:description",content:"Desenvolvemos projetos de investimento robustos e sustentáveis para empresários e investidores."},{property:"og:image",content:r3.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos/projetos-investimento"}]}),component:L(o3,"component")}),i3=()=>I(()=>
55import("./servicos.turismo-hotelaria-B6y44fcG.js"),__vite__mapDeps([238,1,2,3,228,40,234,229,4,5,9,12,11,110,235,28,216,27,19,163,51,210,17,72,215,50,60])),a3=k("/servicos/turismo-hotelaria")({head:()=>({meta:[{title:"Consultoria em Turismo e Hotelaria â Consulstaff"},{name:"description",content:"Mais de 20 anos de consultoria em turismo e hotelaria: investimento, financiamento, operação e revenue management."},{property:"og:title",content:"Consultoria em Turismo e Hotelaria â Consulstaff"},{property:"og:description",content:"Apoio integral a investidores e operadores turÃsticos: estratégia, financiamento, operação e rentabilidade."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/servicos/turismo-hotelaria"}]}),component:L(i3,"component")}),l3=()=>I(()=>import("./turismo-de-portugal.index-oLEO7chL.js"),__vite__mapDeps([239,1,2,3,69,240,175,4,5,12,11,165,148,120,110,94,77,56,17,27,73])),c3=k("/turismo-de-portugal/")({head:()=>({meta:[{title:"Apoios ao Turismo e Hotelaria â Linhas Turismo de Portugal | Consulstaff"},{name:"description",content:"Consultoria especializada em apoios ao turismo, hotelaria, turismo rural e criação de unidades hoteleiras."},{property:"og:title",content:"Turismo de Portugal â Consulstaff"},{property:"og:description",content:"Linhas de apoio do Turismo de Portugal e fundos comunitários."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-de-portugal"}]}),component:L(l3,"component")}),u3=()=>I(()=>import("./turismo-de-portugal.crescer-com-turismo-CYFUqC0Q.js"),__vite__mapDeps([241,138,139,1,2,3,242,154,4,5,16,19,76,23,60,43,28,59,83,10,18,27,11,46,80,52,22,24,72,82,84,85,86])),f3=k("/turismo-de-portugal/crescer-com-turismo")({head:()=>({meta:[{title:"Programa Crescer com o Turismo â Turismo de Portugal | Consulstaff"},{name:"description",content:"Programa de Apoio Crescer com o Turismo: até 90% de apoio não reembolsável para projetos de inovação social, qualificação e valorização turÃstica dos territórios. Candidaturas até 31 dez 2026."},{property:"og:title",content:"Programa Crescer com o Turismo â Consulstaff"},{property:"og:description",content:"Apoio não reembolsável até 400.000 ⬠para empresas e entidades. Dotação de 30 M⬠para projetos turÃsticos sustentáveis em todo o território nacional."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-de-portugal/crescer-com-turismo"}]}),component:L(u3,"component")}),d3="/__l5e/assets-v1/ab34695f-0729-41fa-bbb1-1d599015a254/tdp-fundo-interior-hero.jpg",w_={url:d3},h3=()=>I(()=>import("./turismo-de-portugal.fundo-investimento-interior-CqqsFDjL.js"),__vite__mapDeps([243,138,139,1,2,154,4,5,3,244,10,11,245,42,59,43,165,76,25,168,83,28,84,85,86])),p3=k("/turismo-de-portugal/fundo-investimento-interior")({head:()=>({meta:[{title:"Fundo de Investimento para o Turismo no Interior | Consulstaff"},{name:"description",content:"Call Fundo de Investimento para o Turismo no Interior: até 2.000.000 ⬠por operação, arrendamento até 15 anos e opção de recompra para imóveis em territórios de baixa densidade."},{property:"og:title",content:"Fundo de Investimento para o Turismo no Interior â Consulstaff"},{property:"og:description",content:"Liquidez para adaptação, requalificação e modernização de imóveis turÃsticos em territórios de baixa densidade. Dotação de 15 Mâ¬."},{property:"og:image",content:w_.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-de-portugal/fundo-investimento-interior"}]}),component:L(h3,"component")}),m3=()=>I(()=>import("./turismo-de-portugal.linha-qualificacao-oferta-CVxckPeK.js"),__vite__mapDeps([246,138,139,1,2,154,4,5,3,247,59,19,76,89,60,43,28,11,10,20,44,52,80,165,22,27,82,79,16,23,83,84,85,86])),g3=k("/turismo-de-portugal/linha-qualificacao-oferta")({head:()=>({meta:[{title:"Linha de Apoio à Qualificação da Oferta 2025 â Turismo de Portugal | Consulstaff"},{name:"description",content:"Linha de Apoio à Qualificação da Oferta do Turismo de Portugal. Financiamento até 80% para requalificação, reposicionamento e criação de empreendimentos turÃsticos."},{property:"og:title",content:"Linha de Apoio à Qualificação da Oferta â Consulstaff"},{property:"og:description",content:"Até 80% de financiamento e prémio de desempenho de 25% não reembolsável para projetos turÃsticos."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-de-portugal/linha-qualificacao-oferta"}
55]}),component:L(m3,"component")}),v3="/__l5e/assets-v1/edabb29d-2c21-4192-887e-c6599e980fc6/tdp-revive-hero.jpg",__={url:v3},y3=()=>I(()=>import("./turismo-de-portugal.revive-CVHS9Fi_.js"),__vite__mapDeps([248,138,139,1,2,3,154,4,5,249,10,11,245,42,83,59,43,25,168,28,84,85,86])),w3=k("/turismo-de-portugal/revive")({head:()=>({meta:[{title:"Programa REVIVE â Património e Turismo de Excelência | Consulstaff"},{name:"description",content:"Programa REVIVE: financiamento até 7.500.000 ⬠para projetos turÃsticos em imóveis públicos de elevado valor patrimonial. Garantia mútua até 80% e dotação global de 150 Mâ¬."},{property:"og:title",content:"Programa REVIVE â Consulstaff"},{property:"og:description",content:"Recuperação de património público para projetos turÃsticos. Até 7.500.000 ⬠por operação, 20 anos de prazo e 5 de carência."},{property:"og:image",content:__.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-de-portugal/revive"}]}),component:L(y3,"component")}),b_="/assets/tdp-si-events-BzF-OlS_.jpg",_3=()=>I(()=>import("./turismo-de-portugal.si-portugal-events-LYf17G_f.js"),__vite__mapDeps([250,1,2,3,138,139,251,28,50,60,11,36,43,10,193,25,84,85,5,86])),b3=k("/turismo-de-portugal/si-portugal-events")({head:()=>({meta:[{title:"SI Portugal Events â Sistema de Incentivos a Eventos TurÃsticos | Consulstaff"},{name:"description",content:"SI Portugal Events: dotação de 45 M⬠para apoio a eventos turÃsticos, associativos, corporativos e planos anuais entre 2026 e 2028."},{property:"og:title",content:"SI Portugal Events â Consulstaff"},{property:"og:description",content:"Apoio à captação e realização de eventos que reforçam a notoriedade das regiões e do PaÃs, com majorações para Baixa Densidade e Inverno IATA."},{property:"og:image",content:b_}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/turismo-de-portugal/si-portugal-events"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal/si-portugal-events"}]}),component:L(_3,"component")}),S3=()=>I(()=>import("./en.acores-2030.building-small-business-BY5jMci2.js"),__vite__mapDeps([252,253,33,2,28,4,5,43,81,150,84,85,59,86])),R3=k("/en/acores-2030/building-small-business")({head:()=>({meta:[{title:"Building 2030 â Small Business â Consulstaff"},{name:"description",content:"Building 2030 â Small Business incentive scheme. Support of up to 70% non-repayable for micro and small enterprises in the Autonomous Region of the Azores."},{property:"og:title",content:"Building 2030 â Small Business â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/acores-2030/building-small-business"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/acores-2030/building-small-business"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030/construir-pequenos-negocios"}]}),component:L(S3,"component")}),E3=()=>I(()=>import("./en.acores-2030.building-young-investor-Bloz7p7v.js"),__vite__mapDeps([254,253,33,2,28,4,5,43,81,150,84,85,59,86])),C3=k("/en/acores-2030/building-young-investor")({head:()=>({meta:[{title:"Building 2030 â Young Investor â Consulstaff"},{name:"description",content:"Building 2030 â Young Investor incentive scheme. Support of up to 70% non-repayable for companies led by young entrepreneurs in the Azores."},{property:"og:title",content:"Building 2030 â Young Investor â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/acores-2030/building-young-investor"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/acores-2030/building-young-investor"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030/construir-jovem-investidor"}]}),component:L(E3,"component")}),T3=()=>I(()=>import("./en.acores-2030.productive-innovation-CoGC-0x2.js"),__vite__mapDeps([255,253,33,2,28,4,5,43,81,150,84,85,59,86])),A3=k("/en/acores-2030/productive-innovation")({head:()=>({meta:[{title:"Productive Innovation â Açores 2030 â Consulstaff"},{name:"description",content:"Regional operational programme co-financing productive investment projects in the Azores, with reinforced incentive rates aligned with the region's ultra-peripheral status."},{property:"og:title",content:"Productive Innovation â Açores 2030 â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/acores-2030/productive-innovation"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/acores-2030/productive-innovation"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030"}]}
55),component:L(T3,"component")}),P3=()=>I(()=>import("./en.blog.index-CRGlL1wX.js"),__vite__mapDeps([256,33,2,32,1,34,3,96,4,5])),O3=k("/en/blog/")({head:()=>({meta:[{title:"Blog â Consulstaff"},{name:"description",content:"News, analyses and articles on EU funds, Portugal 2030, PRR and business financing."},{property:"og:title",content:"Blog â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/blog"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/blog"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/blog"}]}),loader:async()=>({posts:await Rh({data:{lang:"en"}})}),component:L(P3,"component")}),L3=()=>I(()=>import("./en.blog._slug-CTCWp47U.js"),__vite__mapDeps([257,33,2])),I3=()=>I(()=>import("./en.blog._slug-C7CKXQey.js"),[]),k3=()=>I(()=>import("./en.blog._slug-D_NBFZFs.js"),[]),$3=k("/en/blog/$slug")({loader:async({params:e})=>{const t=await Eh({data:{slug:e.slug,lang:"en"}});if(!t)throw ah();return{post:t}},head:({loaderData:e,params:t})=>({meta:e?[{title:`${e.post.title} â Consulstaff`},{name:"description",content:e.post.excerpt},{property:"og:title",content:e.post.title},{property:"og:description",content:e.post.excerpt},{property:"og:type",content:"article"},{property:"og:url",content:`https://www.consulstaff.pt/en/blog/${t.slug}`},{name:"twitter:card",content:"summary_large_image"},...e.post.cover_image?[{property:"og:image",content:e.post.cover_image},{name:"twitter:image",content:e.post.cover_image}]:[]]:[{title:"Article â Consulstaff"},{name:"robots",content:"noindex"}],links:[{rel:"canonical",href:`https://www.consulstaff.pt/en/blog/${t.slug}`},{rel:"alternate",hrefLang:"pt",href:`https://www.consulstaff.pt/blog/${t.slug}`},{rel:"alternate",hrefLang:"es",href:`https://www.consulstaff.pt/es/blog/${t.slug}`}],scripts:e?[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:e.post.title,description:e.post.excerpt,inLanguage:"en",mainEntityOfPage:`https://www.consulstaff.pt/en/blog/${t.slug}`,...e.post.cover_image?{image:e.post.cover_image}:{},...e.post.published_at?{datePublished:e.post.published_at}:{},publisher:{"@id":"https://www.consulstaff.pt/#organization"}})}]:[]}),errorComponent:L(k3,"errorComponent"),notFoundComponent:L(I3,"notFoundComponent"),component:L(L3,"component")}),x3=()=>I(()=>import("./en.pepac.agri-food-modernisation-Bh6fxQUq.js"),__vite__mapDeps([258,253,33,2,28,4,5,43,81,150,84,85,59,86])),D3=k("/en/pepac/agri-food-modernisation")({head:()=>({meta:[{title:"Bioeconomy â Agri-food Modernisation â Consulstaff"},{name:"description",content:"PEPAC measure supporting investments in industrial processing, packaging, storage and marketing of agricultural products, reinforcing the competitiveness of the Portuguese agri-food chain."},{property:"og:title",content:"Bioeconomy â Agri-food Modernisation â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/pepac/agri-food-modernisation"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/pepac/agri-food-modernisation"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/bioeconomia-agroindustria"}]}),component:L(x3,"component")}),j3=()=>I(()=>import("./en.pepac.diversification-trade-services-DZoZmLCK.js"),__vite__mapDeps([259,253,33,2,28,4,5,43,81,150,84,85,59,86])),M3=k("/en/pepac/diversification-trade-services")({head:()=>({meta:[{title:"Diversification, Trade and Services â Consulstaff"},{name:"description",content:"PEPAC measure co-financing the creation, expansion and modernisation of activities such as rural accommodation, tourism activities, restaurants, trade and services rooted in rural areas, promoting economic diversification and job creation."},{property:"og:title",content:"Diversification, Trade and Services â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/pepac/diversification-trade-services"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/pepac/diversification-trade-services"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/diversificacao-comercio-servicos"}]}),component:L(j3,"component")}),N3=()=>I(()=>import("./en.pepac.forestry-bioeconomy-1u-65wpo.js"),__vite__mapDeps([260,253,33,2,28,4,5,43,81,150,84,85,59,86])),z3=k("/en/pepac/forestry-bioeconomy")({head:()=>({meta:[{title:"Bioeconomy â Forestry Sector â Consulstaff"},{name:"description",content:"PEPAC measure supporting investment in the modernisation of forestry processing units, mobilisation of forest biomass and valorisation of forest-based products."},{property:"og:title",content:"Bioeconomy â Forestry Sector â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/pepac/forestry-bioeconomy"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/pepac/forestry-bioeconomy"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/bioeconomia-florestal"}]}),component:L(N3,"component")}),U3=()=>I(()=>import("./en.pepac.small-bioeconomy-investments-DN5_77BB.js"),__vite__mapDeps([261,253,33,2,28,4,5,43,81,150,84,85,59,86])),B3=k("/en/pepac/small-bioeconomy-investments")({head:()=>({meta:[{title:"Small Investments in Bioeconomy and Circular Economy â Consulstaff"},{name:"description",content:"PEPAC measure targeting small-scale investments in bioeconomy, circular economy and valorisation of by-products from the agri-food chain."},{property:"og:title",content:"Small Investments in Bioeconomy and Circular Economy â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/pepac/small-bioeconomy-investments"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/pepac/small-bioeconomy-investments"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/pequenos-investimentos-bioeconomia"}]}
55),component:L(U3,"component")}),q3=()=>I(()=>import("./en.portugal-2030.productive-innovation-DoCxBXQs.js"),__vite__mapDeps([262,253,33,2,28,4,5,43,81,150,84,85,59,86])),H3=k("/en/portugal-2030/productive-innovation")({head:()=>({meta:[{title:"Productive Innovation â Low Density and Other Territories â Consulstaff"},{name:"description",content:"Non-refundable grants for SMEs and Non-SMEs investing in new production units, tourism projects, expansion or modernisation across mainland Portugal, with reinforced rates in low-density territories."},{property:"og:title",content:"Productive Innovation â Low Density and Other Territories â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/productive-innovation"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/productive-innovation"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/inovacao-produtiva"}]}),component:L(q3,"component")}),V3=()=>I(()=>import("./en.portugal-2030.qualified-hr-mhRdy8E4.js"),__vite__mapDeps([263,253,33,2,28,4,5,43,81,150,84,85,59,86])),F3=k("/en/portugal-2030/qualified-hr")({head:()=>({meta:[{title:"Qualified Human Resources â Consulstaff"},{name:"description",content:"Incentive scheme co-financing the hiring of highly qualified staff (Master's or PhD level) to accelerate innovation, R&D and internationalisation of Portuguese companies."},{property:"og:title",content:"Qualified Human Resources â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/qualified-hr"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/qualified-hr"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/rh-qualificados"}]}),component:L(V3,"component")}),G3=()=>I(()=>import("./en.portugal-2030.rd-innovation-Dix-xRB_.js"),__vite__mapDeps([264,253,33,2,28,4,5,43,81,150,84,85,59,86])),K3=k("/en/portugal-2030/rd-innovation")({head:()=>({meta:[{title:"Business R&D and Innovation â Consulstaff"},{name:"description",content:"Grants for individual and collaborative R&D projects promoting technological innovation, product development and industrial research aligned with national smart specialisation priorities."},{property:"og:title",content:"Business R&D and Innovation â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/rd-innovation"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/rd-innovation"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/idt"}]}),component:L(G3,"component")}),Y3=()=>I(()=>import("./en.portugal-2030.sibt-alentejo-C5oQSvCN.js"),__vite__mapDeps([265,253,33,2,28,4,5,43,81,150,84,85,59,86])),Q3=k("/en/portugal-2030/sibt-alentejo")({head:()=>({meta:[{title:"SIBT Alentejo â Consulstaff"},{name:"description",content:"Regional call supporting small-scale business investment in industry, tourism, trade and services located in the Alentejo region."},{property:"og:title",content:"SIBT Alentejo â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sibt-alentejo"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-alentejo"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-alentejo"}]}
55),component:L(Y3,"component")}),J3=()=>I(()=>import("./en.portugal-2030.sibt-algarve-BHUD8VBK.js"),__vite__mapDeps([266,253,33,2,28,4,5,43,81,150,84,85,59,86])),X3=k("/en/portugal-2030/sibt-algarve")({head:()=>({meta:[{title:"SIBT Algarve â Consulstaff"},{name:"description",content:"Regional call supporting business investment in industry, tourism, trade and services within the Algarve region."},{property:"og:title",content:"SIBT Algarve â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sibt-algarve"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-algarve"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-algarve"}]}),component:L(J3,"component")}),Z3=()=>I(()=>import("./en.portugal-2030.sibt-medio-tejo-B81yUeiH.js"),__vite__mapDeps([267,253,33,2,28,4,5,43,81,150,84,85,59,86])),W3=k("/en/portugal-2030/sibt-medio-tejo")({head:()=>({meta:[{title:"SIBT Médio Tejo â Consulstaff"},{name:"description",content:"Regional call for small-scale business investment supporting industry, tourism, trade and services rooted in the Médio Tejo territory."},{property:"og:title",content:"SIBT Médio Tejo â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sibt-medio-tejo"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-medio-tejo"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-medio-tejo"}]}),component:L(Z3,"component")}),ex=()=>I(()=>import("./en.portugal-2030.sibt-norte-C5qOXVcq.js"),__vite__mapDeps([268,253,33,2,28,4,5,43,81,150,84,85,59,86])),tx=k("/en/portugal-2030/sibt-norte")({head:()=>({meta:[{title:"SIBT Norte â Consulstaff"},{name:"description",content:"Regional call co-financing small business investment across industry, tourism, trade and services within the Norte region."},{property:"og:title",content:"SIBT Norte â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sibt-norte"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-norte"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-norte"}]}),component:L(ex,"component")}),nx=()=>I(()=>import("./en.portugal-2030.sibt-oeste-CJLcFY6b.js"),__vite__mapDeps([269,253,33,2,28,4,5,43,81,150,84,85,59,86])),rx=k("/en/portugal-2030/sibt-oeste")({head:()=>({meta:[{title:"SIBT Oeste â Consulstaff"},{name:"description",content:"Regional call supporting business investment in industry, tourism, trade and services located in the Oeste region."},{property:"og:title",content:"SIBT Oeste â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sibt-oeste"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-oeste"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-oeste"}]}),component:L(nx,"component")}),ox=()=>I(()=>import("./en.portugal-2030.sibt-pinhal-interior-eesEsOZD.js"),__vite__mapDeps([270,253,33,2,28,4,5,43,81,150,84,85,59,86])),sx=k("/en/portugal-2030/sibt-pinhal-interior")({head:()=>({meta:[{title:"SIBT Pinhal Interior â Consulstaff"},{name:"description",content:"Territorial incentive scheme for the IIBT Pinhal Interior area, supporting small-scale investment by micro and small enterprises in industry, tourism, trade and services."},{property:"og:title",content:"SIBT Pinhal Interior â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sibt-pinhal-interior"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-pinhal-interior"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-pinhal-interior"}]}),component:L(ox,"component")}),ix=()=>I(()=>import("./en.portugal-2030.sme-internationalisation-B9OtYtRo.js"),__vite__mapDeps([271,253,33,2,28,4,5,43,81,150,84,85,59,86])),ax=k("/en/portugal-2030/sme-internationalisation")({head:()=>({meta:[{title:"SME Internationalisation â Consulstaff"},{name:"description",content:"Grants for SMEs strengthening their presence in international markets through promotion, marketing, digital channels and prospecting missions."},{property:"og:title",content:"SME Internationalisation â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sme-internationalisation"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sme-internationalisation"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/internacionalizacao-pme"}]}),component:L(ix,"component")}),lx=()=>I(()=>import("./en.portugal-2030.sme-qualification-B_oAnAEM.js"),__vite__mapDeps([272,253,33,2,28,4,5,43,81,150,84,85,59,86])),cx=k("/en/portugal-2030/sme-qualification")({head:()=>({meta:[{title:"SME Qualification and Digital Transformation â Consulstaff"},{name:"description",content:"Grants supporting SME investments in digitalisation, management systems, organisational innovation and strategic marketing that reinfor
55ce competitiveness."},{property:"og:title",content:"SME Qualification and Digital Transformation â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/sme-qualification"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/sme-qualification"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/qualificacao-pme"}]}),component:L(lx,"component")}),ux=()=>I(()=>import("./en.portugal-2030.territorial-investment-Ch27p7Xd.js"),__vite__mapDeps([273,253,33,2,28,4,5,43,81,150,84,85,59,86])),fx=k("/en/portugal-2030/territorial-investment")({head:()=>({meta:[{title:"SIBT â Territorial Investment Systems â Consulstaff"},{name:"description",content:"Regional incentive scheme co-financing small business projects rooted in the local economy of specific territories such as Alentejo, Algarve, Norte, Oeste, Pinhal and Médio Tejo."},{property:"og:title",content:"SIBT â Territorial Investment Systems â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/portugal-2030/territorial-investment"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/portugal-2030/territorial-investment"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/si-base-territorial"}]}),component:L(ux,"component")}),dx=()=>I(()=>import("./en.prr.ai-line-Bku5P6Qe.js"),__vite__mapDeps([274,253,33,2,28,4,5,43,81,150,84,85,59,86])),hx=k("/en/prr/ai-line")({head:()=>({meta:[{title:"AI Line â Artificial Intelligence for SMEs â Consulstaff"},{name:"description",content:"PRR programme co-financing SMEs implementing AI-based solutions to improve productivity, decision-making, customer service and industrial automation."},{property:"og:title",content:"AI Line â Artificial Intelligence for SMEs â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/prr/ai-line"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/ai-line"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/linha-ia"}]}),component:L(dx,"component")}),px=()=>I(()=>import("./en.prr.coaching-4-0-Be-JDgSX.js"),__vite__mapDeps([275,253,33,2,28,4,5,43,81,150,84,85,59,86])),mx=k("/en/prr/coaching-4-0")({head:()=>({meta:[{title:"Coaching 4.0 â Digital Transformation â Consulstaff"},{name:"description",content:"PRR-funded coaching programme for SMEs, providing personalised consulting and roadmap for the digital transition, industry 4.0 and process automation."},{property:"og:title",content:"Coaching 4.0 â Digital Transformation â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/prr/coaching-4-0"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/coaching-4-0"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/coaching-4-0"}]}),component:L(px,"component")}),gx=()=>I(()=>import("./en.prr.commercial-neighbourhoods-C3KsEHtl.js"),__vite__mapDeps([276,253,33,2,28,4,5,43,81,150,84,85,59,86])),vx=k("/en/prr/commercial-neighbourhoods")({head:()=>({meta:[{title:"Digital Commercial Neighbourhoods â Consulstaff"},{name:"description",content:"PRR programme co-financing joint projects promoting the digital transformation and commercial revitalisation of urban commercial neighbourhoods across Portugal."},{property:"og:title",content:"Digital Commercial Neighbourhoods â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/prr/commercial-neighbourhoods"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/commercial-neighbourhoods"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/bairros-comerciais"}]}),component:L(gx,"component")}),yx=()=>I(()=>import("./en.prr.decarbonisation-B7KGUP_h.js"),__vite__mapDeps([277,138,139,33,2,278,4,5,197,202,156,76,89,200,90,19,36,11,207,46,91,27,16,193,83,28,56,167,61,169])),wx=k("/en/prr/decarbonisation")({head:()=>({meta:[{title:"Decarbonisation of Industry | PRR | Consulstaff"},{name:"description",content:"Non-repayable PRR grant for decarbonisation, energy efficie
55ncy, renewable energy and emissions reduction in industrial companies. SMEs and Large Enterprises."},{property:"og:title",content:"Decarbonisation of Industry | PRR | Consulstaff"},{property:"og:description",content:"PRR financing for energy transition and emissions reduction in Portuguese industry. Free eligibility assessment."},{property:"og:image",content:js},{property:"twitter:image",content:js}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/decarbonisation"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/descarbonizacao"}]}),component:L(yx,"component")}),_x=()=>I(()=>import("./en.prr.energy-efficiency-Cgrw_SHT.js"),__vite__mapDeps([279,138,139,33,2,278,4,5,197,209,156,89,200,23,207,76,19,11,210,46,27,16,193,83,28,56,167,61,169])),bx=k("/en/prr/energy-efficiency")({head:()=>({meta:[{title:"Energy Efficiency in Services Buildings | PRR | Consulstaff"},{name:"description",content:"Non-repayable PRR grant for the energy rehabilitation of services buildings: envelope, HVAC, lighting, solar self-consumption. SMEs and Large Enterprises across Portugal."},{property:"og:title",content:"Energy Efficiency in Services Buildings | PRR | Consulstaff"},{property:"og:description",content:"Non-repayable financing to reduce primary energy consumption and integrate renewables in services buildings."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/energy-efficiency"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/eficiencia-energetica"}]}),component:L(_x,"component")}),Sx=()=>I(()=>import("./en.prr.ifici-Dgz1mGPB.js"),__vite__mapDeps([280,138,139,33,2,278,4,5,197,202,212,156,44,19,93,89,60,36,11,46,91,164,80,16,27,76,193,83,28,56,167,61,169])),Rx=k("/en/prr/ifici")({head:()=>({meta:[{title:"IFICI â Reindustrialise Line | PRR | Consulstaff"},{name:"description",content:"IFICI Reindustrialise: mixed PRR support (repayable + grant) for productive investment, industrial modernisation and relocation to Portugal. SMEs and Large Enterprises."},{property:"og:title",content:"IFICI â Reindustrialise Line | PRR | Consulstaff"},{property:"og:description",content:"PRR financing for reindustrialisation and productive modernisation in strategic sectors. Free eligibility assessment."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/ifici"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/ifici"}]}),component:L(Sx,"component")}),Ex=()=>I(()=>import("./en.prr.internationalisation-ecommerce-M6CGz6ws.js"),__vite__mapDeps([281,253,33,2,28,4,5,43,81,150,84,85,59,86])),Cx=k("/en/prr/internationalisation-ecommerce")({head:()=>({meta:[{title:"Internationalisation via E-commerce â Consulstaff"},{name:"description",content:"PRR programme co-financing SMEs entering international markets through their own online stores, marketplaces, digital marketing and international logistics."},{property:"og:title",content:"Internationalisation via E-commerce â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/prr/internationalisation-ecommerce"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/prr/internationalisation-ecommerce"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/internacionalizacao-ecommerce"}]}),component:L(Ex,"component")}),Tx=()=>I(()=>import("./en.services.index-D-Me1_72.js"),__vite__mapDeps([282,33,2,220,221,223,224,225,226,4,5,10,12,216,72,24,56,17,46,20,19,180,173])),Ax=k("/en/services/")({head:()=>({meta:[{title:"Services â Consulstaff"},{name:"description",content:"Consulting on investment projects, EU funds, business financing and feasibility studies."},{property:"og:title",content:"Services â Consulstaff"},{property:"og:description",content:"Consulstaff areas of activity."},{property:"og:url",content:"https://www.consulstaff.pt/en/services"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services"}]}
55),component:L(Tx,"component")}),Px=()=>I(()=>import("./en.services.dgert-training-U-PPHHOE.js"),__vite__mapDeps([283,284,33,2,4,5,225])),Ox=k("/en/services/dgert-training")({head:()=>({meta:[{title:"DGERT Consulting & Professional Training â Consulstaff"},{name:"description",content:"DGERT certification support and tailored corporate training through Stafforma."},{property:"og:title",content:"DGERT Consulting & Training â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/services/dgert-training"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services/dgert-training"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/dgert-formacao"}]}),component:L(Px,"component")}),Lx=()=>I(()=>import("./en.services.funding-grants-BkiwWQsW.js"),__vite__mapDeps([285,284,33,2,4,5,220])),Ix=k("/en/services/funding-grants")({head:()=>({meta:[{title:"EU Funds & Incentive Systems Consulting â Consulstaff"},{name:"description",content:"Specialised consulting on EU funds and incentive systems: Portugal 2030, PRR, PEPAC, Turismo de Portugal."},{property:"og:title",content:"EU Funds Consulting â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/services/funding-grants"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services/funding-grants"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/fundos-comunitarios"}]}),component:L(Lx,"component")}),kx=()=>I(()=>import("./en.services.industrial-consulting-mW8b1Y7F.js"),__vite__mapDeps([286,284,33,2,4,5,222])),$x=k("/en/services/industrial-consulting")({head:()=>({meta:[{title:"Industrial Consulting â Consulstaff"},{name:"description",content:"Strategic consulting for industrial investment: creation, expansion, modernisation, innovation, Industry 4.0 and funding through incentive schemes."},{property:"og:title",content:"Industrial Consulting â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/services/industrial-consulting"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services/industrial-consulting"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/consultoria-industrial"}]}),component:L(kx,"component")}),xx=()=>I(()=>import("./en.services.investment-projects-Bi7I9ojm.js"),__vite__mapDeps([287,284,33,2,4,5,223])),Dx=k("/en/services/investment-projects")({head:()=>({meta:[{title:"Investment Projects & Business Plans â Consulstaff"},{name:"description",content:"Investment projects, business plans and economic-financial feasibility studies."},{property:"og:title",content:"Investment Projects & Business Plans â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/services/investment-projects"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services/investment-projects"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/projetos-investimento"}]}),component:L(xx,"component")}),jx=()=>I(()=>import("./en.services.strategic-marketing-Fq3_aTPo.js"),__vite__mapDeps([288,284,33,2,4,5,224])),Mx=k("/en/services/strategic-marketing")({head:()=>({meta:[{title:"Strategic Marketing Consulting â Consulstaff"},{name:"description",content:"Growth strategy, market positioning and commercial development for SMEs."},{property:"og:title",content:"Strategic Marketing Consulting â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/services/strategic-marketing"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services/strategic-marketing"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/marketing-estrategico"}]}),component:L(jx,"component")}),Nx=()=>I(()=>import("./en.services.tourism-hospitality-DrnXCHgy.js"),__vite__mapDeps([289,284,33,2,4,5,221])),zx=k("/en/services/tourism-hospitality")({head:()=>({meta:[{title:"Tourism & Hospitality Consulting â Consulstaff"},{name:"description",content:"Specialised consulting for hotels, resorts, rural tourism, restaurants and tourism activities."}
55,{property:"og:title",content:"Tourism & Hospitality Consulting â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/services/tourism-hospitality"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/services/tourism-hospitality"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/turismo-hotelaria"}]}),component:L(Nx,"component")}),Ux=()=>I(()=>import("./en.turismo-de-portugal.growing-with-tourism-BjSo2MA7.js"),__vite__mapDeps([290,253,33,2,28,4,5,43,81,150,84,85,59,86])),Bx=k("/en/turismo-de-portugal/growing-with-tourism")({head:()=>({meta:[{title:"Growing with Tourism â Consulstaff"},{name:"description",content:"Turismo de Portugal funding line co-financing investments in tourism SMEs, promoting sustainable growth, qualification of services and expansion of the accommodation and restaurant offer."},{property:"og:title",content:"Growing with Tourism â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/turismo-de-portugal/growing-with-tourism"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/turismo-de-portugal/growing-with-tourism"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/crescer-com-turismo"}]}),component:L(Ux,"component")}),qx=()=>I(()=>import("./en.turismo-de-portugal.interior-investment-fund-CYREx3G4.js"),__vite__mapDeps([291,253,33,2,28,4,5,43,81,150,84,85,59,86])),Hx=k("/en/turismo-de-portugal/interior-investment-fund")({head:()=>({meta:[{title:"Interior Investment Fund â Consulstaff"},{name:"description",content:"Financial instrument supporting tourism investment projects located in Portugal's interior, combining non-refundable grants and repayable finance to reinforce viability."},{property:"og:title",content:"Interior Investment Fund â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/turismo-de-portugal/interior-investment-fund"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/turismo-de-portugal/interior-investment-fund"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/fundo-investimento-interior"}]}),component:L(qx,"component")}),Vx=()=>I(()=>import("./en.turismo-de-portugal.offer-qualification-BDCzkoyA.js"),__vite__mapDeps([292,253,33,2,28,4,5,43,81,150,84,85,59,86])),Fx=k("/en/turismo-de-portugal/offer-qualification")({head:()=>({meta:[{title:"Line for the Qualification of the Tourism Offer â Consulstaff"},{name:"description",content:"Turismo de Portugal line co-financing modernisation, requalification and diversification investments in Portuguese tourism businesses."},{property:"og:title",content:"Line for the Qualification of the Tourism Offer â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/turismo-de-portugal/offer-qualification"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/turismo-de-portugal/offer-qualification"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/linha-qualificacao-oferta"}]}),component:L(Vx,"component")}),Gx=()=>I(()=>import("./en.turismo-de-portugal.revive-HjsRy9-b.js"),__vite__mapDeps([293,253,33,2,28,4,5,43,81,150,84,85,59,86])),Kx=k("/en/turismo-de-portugal/revive")({head:()=>({meta:[{title:"REVIVE â Heritage for Tourism â Consulstaff"},{name:"description",content:"Public programme opening tenders for the concession of state-owned heritage buildings for touristic use, combining heritage preservation with the creation of unique hospitality and cultural experiences."},{property:"og:title",content:"REVIVE â Heritage for Tourism â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/turismo-de-portugal/revive"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/turismo-de-portugal/revive"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/revive"}]}),component:L(Gx,"component")}),Yx=()=>I(()=>import("./en.turismo-de-portugal.si-portugal-events-D9ZrAsdZ.js"),__vite__mapDeps([294,253,33,2,28,4,5,43,81,150,84,85,59,86])),Qx=k("/en/turismo-de-portugal/si-portugal-events")({head:()=>({meta:[{title:"SI Portugal Events â Consulstaff"},{name:"description",content:"SI Portugal Events: â¬45M incentive scheme supporting tourism, associative, corporate and annual event plans between 2026 and 2028."},{property:"og:title",content:"SI Portugal Events â Consulstaff"},{property:"og:url",content:"https://www.consulstaff.pt/en/turismo-de-portugal/si-portugal-events"},{property:"og:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/en/turismo-de-portugal/si-portugal-events"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/si-portugal-events"}]}
55),component:L(Yx,"component")}),Jx=()=>I(()=>import("./es.acores-2030.index-BA0CFj6B.js"),__vite__mapDeps([295,34,2,71,4,5,11,20,72,56,17,27,73])),Xx=k("/es/acores-2030/")({head:()=>({meta:[{title:"Açores 2030 â Ayudas e Incentivos para la Región Autónoma de Açores | Consulstaff"},{name:"description",content:"Especialistas en candidaturas al Programa Açores 2030. Ayudas a la inversión, innovación, cualificación y cohesión en la Región Autónoma de Açores."},{property:"og:title",content:"Açores 2030 â Consulstaff"},{property:"og:description",content:"Programa Operativo de la Región Autónoma de Açores 2021-2027."},{property:"og:image",content:_e.url},{property:"twitter:image",content:_e.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/acores-2030"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/acores-2030"}]}),component:L(Jx,"component")}),Zx=()=>I(()=>import("./es.acores-2030.construir-joven-inversor-ClSX_Szq.js"),__vite__mapDeps([296,34,2,75,28,4,5,20,23,60,76,43,44,77,78,11,79,52,80,36,16,72,81,82,83,84,85,59,86])),Wx=k("/es/acores-2030/construir-joven-inversor")({head:()=>({meta:[{title:"Construir 2030 â Joven Inversor â Açores 2030 | Consulstaff"},{name:"description",content:"Sistema de incentivos Construir 2030 â Joven Inversor. Ayudas de hasta el 70% a fondo perdido para empresas de jóvenes emprendedores en las Azores."},{property:"og:title",content:"Construir 2030 â Joven Inversor â Consulstaff"},{property:"og:description",content:"Ayudas de hasta el 70% a fondo perdido para nuevas empresas lideradas por jóvenes emprendedores en las Azores. Análisis gratuito de elegibilidad."},{property:"og:image",content:Sc.url},{property:"twitter:image",content:Sc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/acores-2030/construir-joven-inversor"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030/construir-jovem-investidor"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/acores-2030/building-young-investor"}]}),component:L(Zx,"component")}),eD=()=>I(()=>import("./es.acores-2030.construir-pequenos-negocios-CBEnmpYj.js"),__vite__mapDeps([297,34,2,88,28,4,5,19,89,76,60,43,44,90,91,92,93,77,24,94,78,11,79,52,80,27,16,81,82,83,84,85,59,86])),tD=k("/es/acores-2030/construir-pequenos-negocios")({head:()=>({meta:[{title:"Construir 2030 â Pequeños Negocios â Açores 2030 | Consulstaff"},{name:"description",content:"Sistema de incentivos Construir 2030 â Pequeños Negocios. Apoyos de hasta el 70% a fondo perdido para micro y pequeñas empresas de la Región Autónoma de las Azores."},{property:"og:title",content:"Construir 2030 â Pequeños Negocios â Consulstaff"},{property:"og:description",content:"Apoyos de hasta el 70% a fondo perdido para micro y pequeñas empresas de las Azores. Análisis gratuito de elegibilidad."},{property:"og:image",content:Rc.url},{property:"twitter:image",content:Rc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/acores-2030/construir-pequenos-negocios"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/acores-2030/construir-pequenos-negocios"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/acores-2030/building-small-business"}]}),component:L(eD,"component")}),nD=()=>I(()=>import("./es.blog.index-Vca1geeU.js"),__vite__mapDeps([298,34,2,32,1,33,3,96,4,5])),rD=k("/es/blog/")({head:()=>({meta:[{title:"Blog â Consulstaff"},{name:"description",content:"Noticias, análisis y artÃculos sobre fondos europeos, Portugal 2030, PRR y financiación empresarial."},{property:"og:title",content:"Blog â Consulstaff"},{property:"og:description",content:"Análisis y noticias sobre fondos europeos e incentivos a la inversión en Portugal."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/blog"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/blog"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/blog"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/blog"}]}),loader:async()=>({posts:await Rh({data:{lang:"es"}})}),component:L(nD,"component")}),oD=()=>I(()=>import("./es.blog._slug-4RmhCuMz.js"),__vite__mapDeps([299,34,2])),sD=()=>I(()=>import("./es.blog._slug-9yxMXKb7.js"),[]),iD=()=>I(()=>import("./es.blog._slug-BWkNhA8C.js"),[]),aD=k("/es/blog/$slug")({loader:async({params:e})=>{const t=await Eh({data:{slug:e.slug,lang:"es"}});if(!t)throw ah();return{post:t}},head:({loaderData:e,params:t})=>({meta:e?[{title:`${e.post.title} â Consulstaff`},{name:"description",content:e.post.excerpt}
55,{property:"og:title",content:e.post.title},{property:"og:description",content:e.post.excerpt},{property:"og:type",content:"article"},{property:"og:url",content:`https://www.consulstaff.pt/es/blog/${t.slug}`},{name:"twitter:card",content:"summary_large_image"},...e.post.cover_image?[{property:"og:image",content:e.post.cover_image},{name:"twitter:image",content:e.post.cover_image}]:[]]:[{title:"ArtÃculo â Consulstaff"},{name:"robots",content:"noindex"}],links:[{rel:"canonical",href:`https://www.consulstaff.pt/es/blog/${t.slug}`},{rel:"alternate",hrefLang:"pt",href:`https://www.consulstaff.pt/blog/${t.slug}`},{rel:"alternate",hrefLang:"en",href:`https://www.consulstaff.pt/en/blog/${t.slug}`}],scripts:e?[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:e.post.title,description:e.post.excerpt,inLanguage:"es",mainEntityOfPage:`https://www.consulstaff.pt/es/blog/${t.slug}`,...e.post.cover_image?{image:e.post.cover_image}:{},...e.post.published_at?{datePublished:e.post.published_at}:{},publisher:{"@id":"https://www.consulstaff.pt/#organization"}})}]:[]}),errorComponent:L(iD,"errorComponent"),notFoundComponent:L(sD,"n
55otFoundComponent"),component:L(oD,"component")}),lD=()=>I(()=>import("./es.pepac.index-CRpL2EUd.js"),__vite__mapDeps([300,34,2,69,109,135,4,5,11,44,76,110,56,17,27,57,58,84,16,86,28])),cD=k("/es/pepac/")({head:()=>({meta:[{title:"PEPAC â Ayudas a la Agricultura y Desarrollo Rural | Consulstaff"},{name:"description",content:"Especialistas en candidaturas PEPAC. Ayudas a la agricultura, agroindustria y desarrollo rural en Portugal."},{property:"og:title",content:"PEPAC â Consulstaff"},{property:"og:description",content:"Plan Estratégico de la PAC 2023-2027 en Portugal."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/pepac"},{name:"twitter:card",content:"summary_large_image"},{property:"og:image",content:pa.url},{name:"twitter:image",content:pa.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/pepac"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/pepac"}]}),component:L(lD,"component")}),uD=()=>I(()=>import("./es.pepac.bioeconomia-agroindustria-DqoUH0tJ.js"),__vite__mapDeps([301,302,34,2,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,141,11,44,80,46,13])),fD=k("/es/pepac/bioeconomia-agroindustria")({head:()=>({meta:[{title:"BioeconomÃa â Agroindustria | PEPAC | Consulstaff"},{name:"description",content:"Apoyos PEPAC de hasta 600.000⬠a fondo perdido para la modernización agroindustrial. Inversiones hasta 2.000.000â¬."},{property:"og:title",content:"PEPAC â Modernización Agroindustria"},{property:"og:description",content:"Hasta 600.000⬠a fondo perdido para la transformación de productos agrÃcolas."},{property:"og:image",content:Ec.url},{property:"twitter:image",content:Ec.url},{property:"og:url",content:"https://www.consulstaff.pt/es/pepac/bioeconomia-agroindustria"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/pepac/bioeconomia-agroindustria"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/bioeconomia-agroindustria"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/pepac/agri-food-modernisation"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/pepac/bioeconomia-agroindustria"}]}),component:L(uD,"component")}),dD=()=>I(()=>import("./es.pepac.bioeconomia-forestal-CoMAHhV9.js"),__vite__mapDeps([303,302,34,2,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,143,110,44,80,11,46,90])),hD=k("/es/pepac/bioeconomia-forestal")({head:()=>({meta:[{title:"BioeconomÃa â Sector Forestal | PEPAC | Consulstaff"},{name:"description",content:"Apoyos PEPAC de hasta 600.000⬠a fondo perdido para la modernización y valorización de la cadena forestal. Inversiones hasta 2.000.000â¬."},{property:"og:title",content:"PEPAC â Modernización Sector Forestal"},{property:"og:description",content:"Hasta 600.000⬠a fondo perdido para el sector forestal."},{property:"og:image",content:Cc.url},{property:"twitter:image",content:Cc.url},{property:"og:url",content:"https://www.consulstaff.pt/es/pepac/bioeconomia-forestal"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/pepac/bioeconomia-forestal"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/bioeconomia-florestal"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/pepac/forestry-bioeconomy"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/pepac/bioeconomia-forestal"}]}),component:L(dD,"component")}),y0=y_.url,pD=()=>I(()=>import("./es.pepac.diversificacion-comercio-servicios-DlTI2k1L.js"),__vite__mapDeps([304,302,34,2,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,145,11,44,52,80,72,46,93,92,78,77])),mD=k("/es/pepac/diversificacion-comercio-servicios")({head:()=>({meta:[{title:"Diversificación, Comercio y Servicios â PEPAC | Consulstaff"},{name:"description",content:"Apoyos PEPAC a fondo perdido (50%) para comercio, servicios y actividades económicas en el medio rural. Inversiones entre 10.000⬠y 300.000â¬."},{property:"og:title",content:"PEPAC â Diversificación, Comercio y Servicios"},{property:"og:description",content:"50% a fondo perdido para la creación y expansión de negocios en territorios rurales."},{property:"og:image",content:y0},{property:"twitter:image",content:y0},{property:"og:url",content:"https://www.consulstaff.pt/es/pepac/diversificacion-comercio-servicios"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/pepac/diversificacion-comercio-servicios"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/diversificacao-comercio-servicos"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/pepac/diversification-trade-services"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/pepac/diversificacion-comercio-servicios"}]}),component:L(pD,"component")}),gD=()=>I(()=>import("./es.pepac.pequenas-inversiones-bioeconomia-DFy7RCKq.js"),__vite__mapDeps([305,302,34,2,138,139,140,28,4,5,19,89,76,60,43,81,83,84,85,59,86,147,148,149,13,150,11,44,80,90,46])),vD=k("/es/pepac/pequenas-inversiones-bioeconomia")({head:()=>({meta:[{title:"Pequeñas Inversiones â BioeconomÃa y EconomÃa Circular | PEPAC"},{name:"description",content:"Ayudas PEPAC a fondo perdido (50%) para pequeñas unidades agroindustriales, bioeconomÃa y economÃa circular. Inversiones hasta 250.000 â¬."},{property:"og:title",content:"PEPAC â Pequeñas Inversiones en BioeconomÃa"},{property:"og:description",content:"50% a fondo perdido para proyectos de bioeconomÃa y economÃa circular."},{property:"og:type",content:"website"},{property:"og:url",content:"https://www.consulstaff.pt/es/pepac/pequenas-inversiones-bioeconomia"},{name:"twitter:card",content:"summary_large_image"},{property:"og:image",content:Tc.url},{name:"twitter:image",content:Tc.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/pepac/pequenas-inversiones-bioeconomia"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/pepac/pequenos-investimentos-bioeconomia"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/pepac/small-bioeconomy-investments"}]}
55),component:L(gD,"component")}),yD=()=>I(()=>import("./es.portugal-2030.index-CeSQiA3W.js"),__vite__mapDeps([306,34,2,112,152,4,5,11,22,52,23,24])),wD=k("/es/portugal-2030/")({head:()=>({meta:[{title:"Portugal 2030 â ConsultorÃa y Solicitudes | Consulstaff"},{name:"description",content:"Especialistas en solicitudes Portugal 2030. Apoyos a la innovación, internacionalización, cualificación e inversión empresarial."},{property:"og:title",content:"Portugal 2030 â Consulstaff"},{property:"og:description",content:"ConsultorÃa Portugal 2030 y solicitudes a fondos comunitarios."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030"},{property:"og:type",content:"website"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030"}]}),component:L(yD,"component")}),_D=()=>I(()=>import("./es.portugal-2030.cualificacion-pyme-CNQysfe0.js"),__vite__mapDeps([307,34,2,308,4,5,175,176,161,76,52,149,19,60,11,177,23,16,86,164,24,81,158,156,17,121,61,43,56,167,27,169])),bD=k("/es/portugal-2030/cualificacion-pyme")({head:()=>({meta:[{title:"Cualificación Pyme â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos a la Cualificación de Pymes. Hasta un 50% a fondo perdido para la cualificación y digitalización de los modelos de negocio. Análisis gratuito."},{property:"og:title",content:"Cualificación Pyme â Consulstaff"},{property:"og:description",content:"Apoyos a la cualificación y digitalización de las pymes en el marco de Portugal 2030."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/cualificacion-pyme"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/qualificacao-pme"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sme-qualification"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/cualificacion-pyme"}]}),component:L(_D,"component")}),SD=()=>I(()=>import("./es.portugal-2030.idi-CpzkE_hM.js"),__vite__mapDeps([309,34,2,308,4,5,155,156,20,89,28,19,86,17,60,81,24,80,157,16,61,158,27,121,83,43,59,23,22])),RD=k("/es/portugal-2030/idi")({head:()=>({meta:[{title:"I&D Empresarial â Operaciones Individuales y en Copromoción | Consulstaff"},{name:"description",content:"Apoyo a actividades de investigación industrial y desarrollo experimental. Hasta 80% a fondo perdido, inversión mÃnima 250.000â¬. Portugal 2030."},{property:"og:title",content:"I&D Empresarial â Operaciones Individuales y en Copromoción | Consulstaff"},{property:"og:description",content:"Apoyos hasta 80% a fondo perdido para I&D empresarial, operaciones individuales y en copromoción. Dotación 30Mâ¬. Candidaturas de septiembre a diciembre de 2026."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/idi"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/idt"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/rd-innovation"}]}),component:L(SD,"component")}),ED=()=>I(()=>import("./es.portugal-2030.innovacion-productiva-DJzWZa5X.js"),__vite__mapDeps([310,34,2,308,4,5,160,161,156,44,11,28,163,164,76,60,91,46,52,165,89,72,166,167,50,22,24,168,12,78,19,56,27,61,169])),CD=k("/es/portugal-2030/innovacion-productiva")({head:()=>({meta:[{title:"Innovación Productiva â SICE Portugal 2030 | Consulstaff"},{name:"description",content:"SICE Innovación Productiva: hasta 60% de incentivo y hasta 25.000.000 ⬠de inversión elegible. Apoyo a proyectos empresariales de modernización, expansión y capacidad productiva."},{property:"og:title",content:"Innovación Productiva â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo a fondo perdido para inversión empresarial, modernización y expansión. Análisis gratuito."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/innovacion-productiva"},{property:"og:type",content:"website"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/innovacion-productiva"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/inovacao-produtiva"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/productive-innovation"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/innovacion-productiva"}]}),component:L(ED,"component")}),TD=()=>I(()=>import("./es.portugal-2030.internacionalizacion-pyme-txzcYFuP.js"),__vite__mapDeps([311,34,2,308,4,5,171,156,17,60,56,172,16,72,173,49,86,76,167,52,59,11,121,27,61,169])),AD=k("/es/portugal-2030/internacionalizacion-pyme")({head:()=>({meta:[{title:"SICE Internacionalización de las PYME â Portugal 2030 | Consulstaff"},{name:"description",content:"SICE Internacionalización de las PYME (Operaciones Individuales): 40% de incentivo a fondo perdido, dotación de 57 Mâ¬. Candidaturas hasta 31/03/2026."},{property:"og:title",content:"SICE Internacionalización de las PYME â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo a fondo perdido para proyectos de internacionalización de PYME. Ferias, marca, e-commerce y marketing digital."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/internacionalizacion-pyme"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/internacionalizacao-pme"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sme-internationalisation"}]}),component:L(TD,"component")}),PD=()=>I(()=>import("./es.portugal-2030.rrhh-cualificados-Bi15DRSh.js"),__vite__mapDeps([312,34,2,308,4,5,179,23,164,76,20,22,19,11,24,16,50,156,59,121,42,180,167,43,56,27,61,169])),OD=k("/es/portugal-2030/rrhh-cualificados")({head:()=>({meta:[{title:"Contratación de RRHH Altamente Cualificados â Centro 2030 | Consulstaff"},{name:"description",content:"Centro 2030: hasta un 50% de ayuda a la contratación por pymes de licenciados, másteres, doctores y postdoctores. Financiado por el FSE+ hasta 36 meses."},{property:"og:title",content:"RRHH Altamente Cualificados â Centro 2030 | Consulstaff"},{property:"og:description",content:"Ayuda del 50% para la contratación de talento altamente cualificado en pymes de la Región Centro. Candidaturas hasta febrero de 2027."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/rrhh-cualificados"},{rel:"alternate",hreflang:"pt",href:"https://www.consulstaff.pt/portugal-2030/rh-qualificados"},{rel:"alternate",hreflang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/qualified-hr"}]}),component:L(PD,"component")}),LD=()=>I(()=>import("./es.portugal-2030.si-base-territorial-DIDJ9uX-.js"),__vite__mapDeps([313,138,139,34,2,308,4,5,182,19,89,76,60,44,12,92,77,43,84,85,59,86])),ID=k("/es/portugal-2030/si-base-territorial")({head:()=>({meta:[{title:"SI Base Territorial â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial. Avisos regi
55onales para Médio Tejo, Alentejo, Algarve y Norte. Inversión local con impacto regional."},{property:"og:title",content:"SI Base Territorial â Consulstaff"},{property:"og:description",content:"Proyectos de inversión de pequeña dimensión en las áreas de industria, turismo, comercio y servicios."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/si-base-territorial"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/si-base-territorial"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/si-base-territorial"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/territorial-investment"}]}),component:L(LD,"component")}),kD=()=>I(()=>import("./es.portugal-2030.sibt-alentejo-DF99GC9s.js"),__vite__mapDeps([314,138,139,34,2,308,4,5,184,156,20,19,164,76,60,28,91,46,52,80,79,16,82,11,44,77,92,45,83,56,167,27,61,169])),$D=k("/es/portugal-2030/sibt-alentejo")({head:()=>({meta:[{title:"SIBT Alentejo â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Alentejo. Hasta el 60% a fondo perdido para micro y pequeñas empresas. Candidaturas hasta el 31/07/2026."},{property:"og:title",content:"SIBT Alentejo â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo hasta el 60% a fondo perdido para inversión empresarial en la NUTS II Alentejo. Análisis gratuito de elegibilidad."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/sibt-alentejo"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-alentejo"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-alentejo"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-alentejo"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-alentejo"}]}
55),component:L(kD,"component")}),xD=()=>I(()=>import("./es.portugal-2030.sibt-algarve-CT4zYsd9.js"),__vite__mapDeps([315,138,139,34,2,308,4,5,186,156,83,20,19,164,76,60,28,91,46,52,80,79,16,82,11,44,14,120,94,177,56,167,27,61,169])),DD=k("/es/portugal-2030/sibt-algarve")({head:()=>({meta:[{title:"SIBT Algarve â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Algarve. Hasta el 60% a fondo perdido (máx. 300.000â¬) para micro y pequeñas empresas en la NUTS II Algarve."},{property:"og:title",content:"SIBT Algarve â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo hasta el 60% a fondo perdido para inversión empresarial en el Algarve. Análisis gratuito de elegibilidad."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/sibt-algarve"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-algarve"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-algarve"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-algarve"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-algarve"}]}),component:L(xD,"component")}),jD=()=>I(()=>import("./es.portugal-2030.sibt-medio-tejo-ToyjESkR.js"),__vite__mapDeps([316,138,139,34,2,308,4,5,188,156,20,19,164,76,60,28,91,46,52,80,79,16,166,82,44,10,11,83,56,167,27,61,169])),MD=k("/es/portugal-2030/sibt-medio-tejo")({head:()=>({meta:[{title:"SIBT Médio Tejo â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Médio Tejo. Hasta el 65% a fondo perdido para micro y pequeñas empresas. Candidaturas hasta el 30/09/2026."},{property:"og:title",content:"SIBT Médio Tejo â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo hasta el 65% a fondo perdido para inversión empresarial en los 11 municipios de Médio Tejo. Análisis gratuito de elegibilidad."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/sibt-medio-tejo"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-medio-tejo"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-medio-tejo"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-medio-tejo"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-medio-tejo"}]}),component:L(jD,"component")}),ND=()=>I(()=>import("./es.portugal-2030.sibt-norte-DLk3WQIb.js"),__vite__mapDeps([317,138,139,34,2,308,4,5,190,156,20,19,164,76,60,28,91,46,52,80,27,72,16,82,11,44,36,12,83,56,167,61,169])),zD=k("/es/portugal-2030/sibt-norte")({head:()=>({meta:[{title:"SIBT Norte â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Norte. Hasta el 60% a fondo perdido (máx. 300.000â¬) para micro y pequeñas empresas en la NUTS II Norte."},{property:"og:title",content:"SIBT Norte â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo hasta el 60% a fondo perdido para inversión empresarial en la Región Norte. Análisis gratuito de elegibilidad."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/sibt-norte"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-norte"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-norte"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-norte"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-norte"}]}),component:L(ND,"component")}),UD=()=>I(()=>import("./es.portugal-2030.sibt-oeste-DEQ4bG1A.js"),__vite__mapDeps([318,138,139,34,2,308,4,5,192,156,20,19,89,76,60,28,91,46,52,80,16,81,27,82,11,44,193,83,56,167,61,169])),BD=k("/es/portugal-2030/sibt-oeste")({head:()=>({meta:[{title:"SIBT Oeste â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial Oeste. 40% a fondo perdido para inversión industrial (40.000 ⬠â 300.000 â¬) en la CIM Oeste. Candidaturas del 14/01/2026 al 30/04/2026."},{property:"og:title",content:"SIBT Oeste â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Apoyo del 40% a fondo perdido para la industria en la CIM Oeste. Análisis gratuito de elegibilidad."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/sibt-oeste"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-oeste"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-oeste"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-oeste"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-oeste"}]}),component:L(UD,"component")}),qD=()=>I(()=>import("./es.portugal-2030.sibt-pinhal-interior-CrJdESC4.js"),__vite__mapDeps([319,34,2,308,4,5,195,139,156,20,19,164,76,60,89,91,46,52,80,16,166,82,28,44,10,92,110,83,56,167,27,61,169])),HD=k("/es/portugal-2030/sibt-pinhal-interior")({head:()=>({meta:[{title:"SIBT Pinhal Interior â Portugal 2030 | Consulstaff"},{name:"description",content:"Sistema de Incentivos de Base Territorial IIBT Pinhal Interior. Hasta el 60% (70% en Fundão) a fondo perdido para micro y pequeñas empresas. Candidaturas del 30/01/2026 al 30/04/2026."},{property:"og:title",content:"SIBT Pinhal Interior â Portugal 2030 | Consulstaff"},{property:"og:description",content:"Ayuda a fondo perdido para inversión empresarial en el territorio IIBT Pinhal Interior. Industria, turismo, comercio y servicios."},{property:"og:url",content:"https://www.consulstaff.pt/es/portugal-2030/sibt-pinhal-interior"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-pinhal-interior"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/portugal-2030/sibt-pinhal-interior"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/portugal-2030/sibt-pinhal-interior"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/portugal-2030/sibt-pinhal-interior"}]}),component:L(qD,"component")}),VD=()=>I(()=>import("./es.prr.index-B61rs-ca.js"),__vite__mapDeps([320,34,2,197,198,115,199,4,5,44,21,76,89,20,164,200,11,157,92])),FD=k("/es/prr/")({head:()=>({meta:[{title:"PRR â Plan de Recuperación y Resiliencia | Consulstaff"},{name:"description",content:"ConsultorÃa especializada en solicitudes al PRR. Apoyos a la innovación, capitalización y transición digital y climática."},{property:"og:title",content:"PRR â Consulstaff"},{property:"og:description",content:"Solicitudes y acompañamiento PRR."},{property:"og:url",content:"https://www.consulstaff.pt/es/prr"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/prr"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/prr"}]}),component:L(VD,"component")}),GD=()=>I(()=>import("./es.prr.barrios-comerciales-Cvw1KrY6.js"),__vite__mapDeps([321,138,139,34,2,308,4,5,202,203,19,89,60,43,11,86,92,22,172,93,52,16,28,84,85,59])),KD=k("/es/prr/barrios-comerciales")({head:()=>({meta:[{title:"Barrios Comerciales Digitales â PRR | Consulstaff"},{name:"description",content:"Programa PRR Barrios Comerciales Digitales. Digitalización y modernización del comercio local. 95 BCD aprobados, 77,5 M⬠de dotación. ConsultorÃa especializada."},{property:"og:title",content:"Barrios Comerciales Digitales â PRR | Consulstaff"},{property:"og:description",content:"Digitalización del comercio de proximidad a través de los Barrios Comerciales Digitales del PRR."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/barrios-comerciales"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/bairros-comerciais"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/prr/commercial-neighbourhoods"}]}),component:L(GD,"component")}),YD=()=>I(()=>import("./es.prr.coaching-4-0-BkfsNz9x.js"),__vite__mapDeps([322,138,139,34,2,308,4,5,197,205,156,21,81,19,89,24,20,60,80,164,27,23,16,193,83,28,56,167,61,169])),QD=k("/es/prr/coaching-4-0")({head:()=>({meta:[{title:"Coaching 4.0 | PRR | Consulstaff"},{name:"description",content:"Coaching 4.0 del PRR: apoyo a fondo perdido para la transformación digital de las PYME. ConsultorÃa especializada, coach dedicado, formación y adopción tecnológica. Hasta 75% de cofinanciación."},{property:"og:title",content:"Coaching 4.0 | PRR | Consulstaff"},{property:"og:description",content:"Programa de coaching y transformación digital para PYME financiado a fondo perdido por el PRR."},{property:"og:url",content:"https://www.consulstaff.pt/es/prr/coaching-4-0"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/coaching-4-0"},{rel:"alternate",hrefLang:"pt",href:"/prr/coaching-4-0"},{rel:"alternate",hrefLang:"en",href:"/en/prr/coaching-4-0"},{rel:"alternate",hrefLang:"es",href:"/es/prr/coaching-4-0"}]}),component:L(YD,"component")}),JD=()=>I(()=>import("./es.prr.descarbonizacion-BpXYIaMq.js"),__vite__mapDeps([323,138,139,34,2,308,4,5,197,202,156,76,89,200,90,19,36,11,207,46,91,27,16,193,83,28,56,167,61,169])),XD=k("/es/prr/descarbonizacion")({head:()=>({meta:[{title:"Descarbonización de la Industria | PRR | Consulstaff"},{name:"description",content:"Apoyo a fondo perdido del PRR para descarbonización, eficiencia energética, energÃas renovables y reducción de emisiones en las empresas industriales. PYME y Grandes Empresas."},{property:"og:title",content:"Descarbonización de la Industria | PRR | Consulstaff"},{property:"og:description",content:"Financiación PRR para transición energética y reducción de emisiones en las industrias portuguesas. Análisis gratuito de elegibilidad."},{property:"og:image",content:js},{property:"twitter:image",content:js},{property:"og:url",content:"https://www.consulstaff.pt/es/prr/descarbonizacion"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/descarbonizacion"},{rel:"alternate",hrefLang:"pt",href:"/prr/descarbonizacao"},{rel:"alternate",hrefLang:"en",href:"/en/prr/decarbonization"},{rel:"alternate",hrefLang:"es",href:"/es/prr/descarbonizacion"}]}),component:L(JD,"component")}),ZD=()=>I(()=>import("./es.prr.eficiencia-energetica-vNJHPV9b.js"),__vite__mapDeps([324,138,139,34,2,308,4,5,197,209,156,89,200,23,207,76,19,11,210,46,27,16,193,83,28,56,167,61,169])),WD=k("/es/prr/eficiencia-energetica")({head:()=>({meta:[{title:"Eficiencia Energética en Edificios de Servicios | PRR | Consulstaff"},{name:"description",content:"Ayuda a fondo perdido del PRR para la rehabilitación energética de edificios de servicios: envolvente, climatización, iluminación, autoconsumo solar. Pymes y grandes empresas en todo el territorio nacional."},{property:"og:title",content:"Eficiencia Energética en Edificios de Servicios | PRR | Consulstaff"},{property:"og:description",content:"Financiación a fondo perdido para reducir consumos de energÃa primaria e integrar renovables en edificios de servicios."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/eficiencia-energetica"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/eficiencia-energetica"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/prr/energy-efficiency"}]}),component:L(ZD,"component")}),ej=()=>I(()=>import("./es.prr.ifici-BtIWY3ar.js"),__vite__mapDeps([325,138,139,34,2,308,4,5,197,202,212,156,44,19,93,89,60,36,11,46,91,164,80,16,27,76,
55193,83,28,56,167,61,169])),tj=k("/es/prr/ifici")({head:()=>({meta:[{title:"IFICI â LÃnea Reindustrializar | PRR | Consulstaff"},{name:"description",content:"IFICI Reindustrializar: ayuda mixta (reembolsable + fondo perdido) del PRR para inversión productiva, modernización industrial y relocalización en Portugal. Pymes y Grandes Empresas."},{property:"og:title",content:"IFICI â LÃnea Reindustrializar | PRR | Consulstaff"},{property:"og:description",content:"Financiación del PRR para reindustrialización y modernización productiva en sectores estratégicos. Análisis gratuito de elegibilidad."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/ifici"},{rel:"alternate",hreflang:"pt",href:"https://www.consulstaff.pt/prr/ifici"},{rel:"alternate",hreflang:"en",href:"https://www.consulstaff.pt/en/prr/ifici"}]}),component:L(ej,"component")}),nj=()=>I(()=>import("./es.prr.internacionalizacion-ecommerce-BxQmX1Jd.js"),__vite__mapDeps([326,138,139,34,2,308,4,5,202,214,22,172,19,60,43,52,177,80,56,72,215,216,81,83,28,84,85,59,86])),rj=k("/es/prr/internacionalizacion-ecommerce")({head:()=>({meta:[{title:"Internacionalización vÃa E-commerce â PRR | Consulstaff"},{name:"description",content:"PRR Internacionalización vÃa E-commerce: 50 % a fondo perdido para pymes. Apoyo a la expansión internacional a través de marketplaces, tiendas online y marketing digital."},{property:"og:title",content:"Internacionalización vÃa E-commerce â PRR | Consulstaff"},{property:"og:description",content:"50 % a fondo perdido para proyectos de pymes de internacionalización digital vÃa e-commerce."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/internacionalizacion-ecommerce"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/prr/internacionalizacao-ecommerce"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/prr/internationalisation-ecommerce"}]}),component:L(nj,"component")}),oj=()=>I(()=>import("./es.prr.linea-ia-Bqqxx9ee.js"),__vite__mapDeps([327,34,2,308,4,5,197,199,218,19,89,60,43,164,216,52,80,81,16,27,83,28,84,85,59,86])),sj=k("/es/prr/linea-ia")({head:()=>({meta:[{title:"LÃnea IA para PYME â PRR | Consulstaff"},{name:"description",content:"PRR LÃnea IA para PYME: hasta 75% a fondo perdido para la adopción de soluciones de inteligencia artificial. Apoyo máximo de 300.000⬠por empresa."},{property:"og:title",content:"LÃnea IA para PYME â PRR | Consulstaff"},{property:"og:description",content:"Apoyo a la adopción de IA por PYME: 75% a fondo perdido, hasta 300.000⬠por empresa."},{property:"og:url",content:"https://www.consulstaff.pt/es/prr/linea-ia"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/prr/linea-ia"},{rel:"alternate",hrefLang:"pt",href:"/prr/linha-ia"},{rel:"alternate",hrefLang:"en",href:"/en/prr/ai-line"},{rel:"alternate",hrefLang:"es",href:"/es/prr/linea-ia"}]}),component:L(oj,"component")}),ij=()=>I(()=>import("./es.servicios.index-qVlYwdbh.js"),__vite__mapDeps([328,34,2,220,221,222,223,224,225,226,4,5,10,12,44,216,72,24,56,17,46,20,19,180,173])),aj=k("/es/servicios/")({head:()=>({meta:[{title:"Servicios â Consulstaff"},{name:"description",content:"ConsultorÃa en proyectos de inversión, fondos comunitarios, financiación empresarial y estudios de viabilidad."},{property:"og:title",content:"Servicios â Consulstaff"},{property:"og:description",content:"Ãreas de actuación de Consulstaff."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios"}]}),component:L(ij,"component")}),lj=()=>I(()=>import("./es.servicios.consultoria-industrial-DCC1UpwY.js"),__vite__mapDeps([329,330,34,2,4,5,222])),cj=k("/es/servicios/consultoria-industrial")({head:()=>({meta:[{title:"ConsultorÃa Industrial â Consulstaff"}
55,{name:"description",content:"ConsultorÃa estratégica para la inversión industrial: creación, expansión, modernización, innovación, Industria 4.0 y financiación mediante sistemas de incentivos."},{property:"og:title",content:"ConsultorÃa Industrial â Consulstaff"},{property:"og:description",content:"Soluciones especializadas para proyectos industriales innovadores y sostenibles."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios/consultoria-industrial"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios/consultoria-industrial"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/consultoria-industrial"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/industrial-consulting"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios/consultoria-industrial"}]}),component:L(lj,"component")}),uj=()=>I(()=>import("./es.servicios.fondos-comunitarios-BBI6d8K4.js"),__vite__mapDeps([331,330,34,2,4,5,220])),fj=k("/es/servicios/fondos-comunitarios")({head:()=>({meta:[{title:"Fondos Comunitarios y Sistemas de Incentivos â Consulstaff"},{name:"description",content:"ConsultorÃa especializada en fondos comunitarios y sistemas de incentivos: Portugal 2030, PRR, PEPAC, Turismo de Portugal."},{property:"og:title",content:"Fondos Comunitarios y Sistemas de Incentivos â Consulstaff"},{property:"og:description",content:"20 años de experiencia en proyectos de inversión y candidaturas a fondos comunitarios."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios/fondos-comunitarios"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios/fondos-comunitarios"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/fundos-comunitarios"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/funding-grants"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios/fondos-comunitarios"}]}),component:L(uj,"component")}),dj=()=>I(()=>import("./es.servicios.formacion-dgert-IsUtIIKw.js"),__vite__mapDeps([332,330,34,2,4,5,225])),hj=k("/es/servicios/formacion-dgert")({head:()=>({meta:[{title:"ConsultorÃa DGERT y Formación Profesional â Consulstaff"},{name:"description",content:"Apoyo a la certificación DGERT y formación corporativa a medida a través de Stafforma."},{property:"og:title",content:"ConsultorÃa DGERT y Formación â Consulstaff"},{property:"og:description",content:"Apoyamos a entidades en la certificación DGERT. Formación a medida para empresas."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios/formacion-dgert"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios/formacion-dgert"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/dgert-formacao"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/dgert-training"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios/formacion-dgert"}]}),component:L(dj,"component")}),pj=()=>I(()=>import("./es.servicios.marketing-estrategico-Cnd19KCZ.js"),__vite__mapDeps([333,330,34,2,4,5,224])),mj=k("/es/servicios/marketing-estrategico")({head:()=>({meta:[{title:"ConsultorÃa en Marketing Estratégico â Consulstaff"},{name:"description",content:"Estrategia de crecimiento, posicionamiento de mercado y desarrollo comercial para pymes."},{property:"og:title",content:"ConsultorÃa en Marketing Estratégico â Consulstaff"},{property:"og:description",content:"Ayudamos a las empresas a definir estrategias de crecimiento, posicionamiento y desarrollo comercial."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios/marketing-estrategico"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios/marketing-estrategico"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/marketing-estrategico"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/strategic-marketing"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios/marketing-estrategico"}]}
55),component:L(pj,"component")}),gj=()=>I(()=>import("./es.servicios.proyectos-inversion-Ca8vwrNV.js"),__vite__mapDeps([334,330,34,2,4,5,223])),vj=k("/es/servicios/proyectos-inversion")({head:()=>({meta:[{title:"Proyectos de Inversión y Planes de Negocio â Consulstaff"},{name:"description",content:"Proyectos de inversión, planes de negocio y estudios de viabilidad económico-financiera."},{property:"og:title",content:"Proyectos de Inversión y Planes de Negocio â Consulstaff"},{property:"og:description",content:"Proyectos de inversión robustos para apoyar la toma de decisiones y la captación de financiación."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios/proyectos-inversion"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios/proyectos-inversion"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/projetos-investimento"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/investment-projects"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios/proyectos-inversion"}]}),component:L(gj,"component")}),yj=()=>I(()=>import("./es.servicios.turismo-hosteleria-1F_bpeev.js"),__vite__mapDeps([335,330,34,2,4,5,221])),wj=k("/es/servicios/turismo-hosteleria")({head:()=>({meta:[{title:"ConsultorÃa en Turismo y HostelerÃa â Consulstaff"},{name:"description",content:"ConsultorÃa especializada para hoteles, resorts, turismo rural, restauración y actividades turÃsticas."},{property:"og:title",content:"ConsultorÃa en Turismo y HostelerÃa â Consulstaff"},{property:"og:description",content:"Apoyo estratégico a inversores, promotores y operadores turÃsticos."},{property:"og:url",content:"https://www.consulstaff.pt/es/servicios/turismo-hosteleria"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/servicios/turismo-hosteleria"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/servicos/turismo-hotelaria"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/services/tourism-hospitality"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/servicios/turismo-hosteleria"}]}),component:L(yj,"component")}),_j=()=>I(()=>import("./es.turismo-de-portugal.index-CeEoHgEm.js"),__vite__mapDeps([336,34,2,69,240,175,4,5,12,11,165,148,120,110,94,77,56,17,27,73])),bj=k("/es/turismo-de-portugal/")({head:()=>({meta:[{title:"Ayudas al Turismo y la HostelerÃa â LÃneas Turismo de Portugal | Consulstaff"},{name:"description",content:"ConsultorÃa especializada en ayudas al turismo, la hostelerÃa, el turismo rural y la creación de unidades hoteleras."},{property:"og:title",content:"Turismo de Portugal â Consulstaff"},{property:"og:description",content:"LÃneas de apoyo de Turismo de Portugal y fondos comunitarios."},{property:"og:url",content:"https://www.consulstaff.pt/es/turismo-de-portugal"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-de-portugal"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/turismo-de-portugal"}]}),component:L(_j,"component")}),Sj=()=>I(()=>import("./es.turismo-de-portugal.crecer-con-turismo-B5mh_P3E.js"),__vite__mapDeps([337,138,139,34,2,242,308,4,5,16,19,76,23,60,43,28,59,83,10,18,27,11,46,80,52,22,24,72,82,84,85,86])),Rj=k("/es/turismo-de-portugal/crecer-con-turismo")({head:()=>({meta:[{title:"Programa Crecer con Turismo â Turismo de Portugal | Consulstaff"},{name:"description",content:"Programa de Apoyo Crecer con Turismo: hasta un 90% de ayuda no reembolsable para proyectos de innovación social, cualificación y valorización turÃstica de los territorios. Solicitudes hasta el 31 dic 2026."},{property:"og:title",content:"Programa Crecer con Turismo â Consulstaff"},{property:"og:description",content:"Ayuda no reembolsable de hasta 400.000 ⬠para empresas y entidades. Dotación de 30 M⬠para proyectos turÃsticos sostenibles en todo el territorio nacional."}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-de-portugal/crecer-con-turismo"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/crescer-com-turismo"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal/growing-with-tourism"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/turismo-de-portugal/crecer-con-turismo"}]}),component:L(Sj,"component")}),Ej=()=>I(()=>import("./es.turismo-de-portugal.fondo-inversion-interior-ByTwadsn.js"),__vite__mapDeps([338,138,139,34,2,308,4,5,244,10,11,245,42,59,43,165,76,25,168,83,28,84,85,86])),Cj=k("/es/turismo-de-portugal/fondo-inversion-interior")({head:()=>({meta:[{title:"Fondo de Inversión para el Turismo en el Interior | Consulstaff"},{name:"description",content:"Call Fondo de Inversión para el Turismo en el Interior: hasta 2.000.000 ⬠por operación, arrendamiento hasta 15 años y opción de recompra para inmuebles en territorios de baja densidad."},{property:"og:title",content:"Fondo de Inversión para el Turismo en el Interior â Consulstaff"},{property:"og:description",content:"Liquidez para adaptación, recualificación y modernización de inmuebles turÃsticos en territorios de baja densidad. Dotación de 15 Mâ¬."},{property:"og:image",content:w_.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-de-portugal/fondo-inversion-interior"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/fundo-investimento-interior"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal/interior-investment-fund"}]}
55),component:L(Ej,"component")}),Tj=()=>I(()=>import("./es.turismo-de-portugal.linea-cualificacion-oferta-C9uvEzY6.js"),__vite__mapDeps([339,138,139,34,2,308,4,5,247,59,19,76,89,60,43,28,11,10,20,44,52,80,165,22,27,82,79,16,23,83,84,85,86])),Aj=k("/es/turismo-de-portugal/linea-cualificacion-oferta")({head:()=>({meta:[{title:"LÃnea de Apoyo a la Cualificación de la Oferta 2025 â Turismo de Portugal | Consulstaff"},{name:"description",content:"LÃnea de Apoyo a la Cualificación de la Oferta de Turismo de Portugal. Financiación de hasta el 80% para la recalificación, reposicionamiento y creación de empreendimientos turÃsticos."},{property:"og:title",content:"LÃnea de Apoyo a la Cualificación de la Oferta â Consulstaff"},{property:"og:description",content:"Hasta el 80% de financiación y premio de desempeño del 25% no reembolsable para proyectos turÃsticos."},{property:"og:url",content:"https://www.consulstaff.pt/es/turismo-de-portugal/linea-cualificacion-oferta"},{property:"og:locale",content:"es_ES"}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-de-portugal/linea-cualificacion-oferta"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/linha-qualificacao-oferta"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal/offer-qualification"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/turismo-de-portugal/linea-cualificacion-oferta"}]}),component:L(Tj,"component")}),Pj=()=>I(()=>import("./es.turismo-de-portugal.revive-Bil17_eP.js"),__vite__mapDeps([340,138,139,34,2,308,4,5,249,10,11,245,42,83,59,43,25,168,28,84,85,86])),Oj=k("/es/turismo-de-portugal/revive")({head:()=>({meta:[{title:"Programa REVIVE â Patrimonio y Turismo de Excelencia | Consulstaff"},{name:"description",content:"Programa REVIVE: financiación de hasta 7.500.000 ⬠para proyectos turÃsticos en inmuebles públicos de elevado valor patrimonial. GarantÃa mutua de hasta el 80% y dotación global de 150 Mâ¬."},{property:"og:title",content:"Programa REVIVE â Consulstaff"},{property:"og:description",content:"Recuperación de patrimonio público para proyectos turÃsticos. Hasta 7.500.000 ⬠por operación, 20 años de plazo y 5 de carencia."},{property:"og:image",content:__.url}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-de-portugal/revive"},{rel:"alternate",hreflang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/revive"},{rel:"alternate",hreflang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal/revive"}]}),component:L(Pj,"component")}),Lj=()=>I(()=>import("./es.turismo-de-portugal.si-portugal-events-Xmi6ErrZ.js"),__vite__mapDeps([341,34,2,138,139,251,28,50,60,11,36,43,10,193,25,84,85,5,86])),Ij=k("/es/turismo-de-portugal/si-portugal-events")({head:()=>({meta:[{title:"SI Portugal Events â Sistema de Incentivos a Eventos TurÃsticos | Consulstaff"},{name:"description",content:"SI Portugal Events: dotación de 45 M⬠para el apoyo a eventos turÃsticos, asociativos, corporativos y planes anuales entre 2026 y 2028."},{property:"og:title",content:"SI Portugal Events â Consulstaff"},{property:"og:description",content:"Apoyo a la captación y realización de eventos que refuerzan la notoriedad de las regiones y del paÃs, con bonificaciones para Baja Densidad e Invierno IATA."},{property:"og:image",content:b_}],links:[{rel:"canonical",href:"https://www.consulstaff.pt/es/turismo-de-portugal/si-portugal-events"},{rel:"alternate",hrefLang:"pt",href:"https://www.consulstaff.pt/turismo-de-portugal/si-portugal-events"},{rel:"alternate",hrefLang:"en",href:"https://www.consulstaff.pt/en/turismo-de-portugal/si-portugal-events"},{rel:"alternate",hrefLang:"es",href:"https://www.consulstaff.pt/es/turismo-de-portugal/si-portugal-events"}]}),component:L(Lj,"component")}),kj=pL.update({id:"/",path:"/",getParentRoute:()=>me}),Bc=gL.update({id:"/acores-2030",path:"/acores-2030",getParentRoute:()=>me}),$j=yL.update({id:"/admin",path:"/admin",getParentRoute:()=>me}),xj=_L.update({id:"/auth",path:"/auth",getParentRoute:()=>me}),Dj=SL.update({id:"/cobertura-nacional",path:"/cobertura-nacional",getParentRoute:()=>me}),jj=EL.update({id:"/contactos",path:"/contactos",getParentRoute:()=>me}),Mj=TL.update({id:"/empresa",path:"/empresa",getParentRoute:()=>me}),it=PL.update({id:"/en",path:"/en",getParentRoute:()=>me}),at=LL.update({id:"/es",path:"/es",getParentRoute:()=>me}),Nj=kL.update({id:"/formacao",path:"/formacao",getParentRoute:()=>me}
55),zj=DL.update({id:"/fundos-e-incentivos",path:"/fundos-e-incentivos",getParentRoute:()=>me}),Uj=ML.update({id:"/perguntas-frequentes",path:"/perguntas-frequentes",getParentRoute:()=>me}),Bj=zL.update({id:"/politica-de-cookies",path:"/politica-de-cookies",getParentRoute:()=>me}),qj=BL.update({id:"/politica-de-privacidade",path:"/politica-de-privacidade",getParentRoute:()=>me}),zt=HL.update({id:"/portugal-2030",path:"/portugal-2030",getParentRoute:()=>me}),Hj=FL.update({id:"/resolucao-de-litigios",path:"/resolucao-de-litigios",getParentRoute:()=>me}),Fr=KL.update({id:"/servicos",path:"/servicos",getParentRoute:()=>me}),Vj=QL.update({id:"/termos-e-condicoes",path:"/termos-e-condicoes",getParentRoute:()=>me}),Fj=XL.update({id:"/turismo-hotelaria",path:"/turismo-hotelaria",getParentRoute:()=>me}),Gj=eI.update({id:"/",path:"/",getParentRoute:()=>Bc}),Kj=rI.update({id:"/construir-jovem-investidor",path:"/construir-jovem-investidor",getParentRoute:()=>Bc}),Yj=iI.update({id:"/construir-pequenos-negocios",path:"/construir-pequenos-negocios",getParentRoute:()=>Bc}),Qj=uI.update({id:"/blog/",path:"/blog/",getParentRoute:()=>me}),Jj=pI.update({id:"/blog/$slug",path:"/blog/$slug",getParentRoute:()=>me}),Xj=gI.update({id:"/",path:"/",getParentRoute:()=>it}),qc=yI.update({id:"/acores-2030",path:"/acores-2030",getParentRoute:()=>it}),Ch=_I.update({id:"/blog",path:"/blog",getParentRoute:()=>it}),Zj=SI.update({id:"/company",path:"/company",getParentRoute:()=>it}),Wj=EI.update({id:"/contact",path:"/contact",getParentRoute:()=>it}),eM=TI.update({id:"/cookie-policy",path:"/cookie-policy",getParentRoute:()=>it}),tM=PI.update({id:"/dispute-resolution",path:"/dispute-resolution",getParentRoute:()=>it}),nM=LI.update({id:"/faq",path:"/faq",getParentRoute:()=>it}),rM=xI.update({id:"/funding-incentives",path:"/funding-incentives",getParentRoute:()=>it}),oM=jI.update({id:"/national-coverage",path:"/national-coverage",getParentRoute:()=>it}),va=NI.update({id:"/pepac",path:"/pepac",getParentRoute:()=>it}),Xt=UI.update({id:"/portugal-2030",path:"/portugal-2030",getParentRoute:()=>it}),sM=qI.update({id:"/privacy-policy",path:"/privacy-policy",getParentRoute:()=>it}),Gr=VI.update({id:"/prr",path:"/prr",getParentRoute:()=>it}),Kr=GI.update({id:"/services",path:"/services",getParentRoute:()=>it}),iM=YI.update({id:"/terms-and-conditions",path:"/terms-and-conditions",getParentRoute:()=>it}),aM=JI.update({id:"/tourism-hospitality",path:"/tourism-hospitality",getParentRoute:()=>it}),lM=ZI.update({id:"/training",path:"/training",getParentRoute:()=>it}),zs=tk.update({id:"/turismo-de-portugal",path:"/turismo-de-portugal",getParentRoute:()=>it}),cM=rk.update({id:"/",path:"/",getParentRoute:()=>at}),Hc=sk.update({id:"/acores-2030",path:"/acores-2030",getParentRoute:()=>at}),Th=ak.update({id:"/blog",path:"/blog",getParentRoute:()=>at}),uM=ck.update({id:"/cobertura-nacional",path:"/cobertura-nacional",getParentRoute:()=>at}),fM=fk.update({id:"/contacto",path:"/contacto",getParentRoute:()=>at}),dM=hk.update({id:"/empresa",path:"/empresa",getParentRoute:()=>at}),hM=mk.update({id:"/fondos-e-incentivos",path:"/fondos-e-incentivos",getParentRoute:()=>at}),pM=vk.update({id:"/formacion",path:"/formacion",getParentRoute:()=>at}),Us=wk.update({id:"/pepac",path:"/pepac",getParentRoute:()=>at}),mM=bk.update({id:"/politica-de-cookies",path:"/politica-de-cookies",getParentRoute:()=>at}),gM=Rk.update({id:"/politica-de-privacidad",path:"/politica-de-privacidad",getParentRoute:()=>at}),Ut=Ck.update({id:"/portugal-2030",path:"/portugal-2030",getParentRoute:()=>at}),vM=Ak.update({id:"/preguntas-frecuentes",path:"/preguntas-frecuentes",getParentRoute:()=>at}),ir=Ok.update({id:"/prr",path:"/prr",getParentRoute:()=>at}),yM=Ik.update({id:"/resolucion-de-litigios",path:"/resolucion-de-litigios",getParentRoute:()=>at}),Yr=$k.update({id:"/servicios",path:"/servicios",getParentRoute:()=>at}),wM=Dk.update({id:"/terminos-y-condiciones",path:"/terminos-y-condiciones",getParentRoute:()=>at}),Oo=Mk.update({id:"/turismo-de-portugal",path:"/turismo-de-portugal",getParentRoute:()=>at}),_M=zk.update({id:"/turismo-hosteleria",path:"/turismo-hosteleria",getParentRoute:()=>at}),bM=Bk.update({id:"/pepac/",path:"/pepac/",getParentRoute:()=>me}),SM=Vk.update({id:"/pepac/bioeconomia-agroindustria",path:"/pepac/bioeconomia-agroindustria",getParentRoute:()=>me}),RM=Kk.update({id:"/pepac/bioeconomia-florestal",path:"/pepac/bioeconomia-florestal",getParentRoute:()=>me}),EM=Jk.update({id:"/pepac/diversificacao-comercio-servicos",path:"/pepac/diversificacao-comercio-servicos",getParentRoute:()=>me}),CM=Wk.update({id:"/pepac/pequenos-investimentos-bioeconomia",path:"/pepac/pequenos-investimentos-bioeconomia",getParentRoute:()=>me}),TM=t$.update({id:"/",path:"/",getParentRoute:()=>zt}),AM=r$.update({id:"/idt",path:"/idt",getParentRoute:()=>zt}),PM=s$.update({id:"/inovacao-produtiva",path:"/inovacao-produtiva",getParentRoute:()=>zt}),OM=a$.update({id:"/internacionalizacao-pme",path:"/internacionalizacao-pme",getParentRoute:()=>zt}),LM=c$.update({id:"/qualificacao-pme",path:"/qualificacao-pme",getParentRoute:()=>zt}),IM=f$.update({id:"/rh-qualificados",path:"/rh-qualificados",getParentRoute:()=>zt}),kM=h$.update({id:"/si-base-territorial",path:"/si-base-territorial",getParentRoute:()=>zt}),$M=m$.update({id:"/sibt-alentejo",path:"/sibt-alentejo",getParentRoute:()=>zt}),xM=v$.update({id:"/sibt-algarve",path:"/sibt-algarve",getParentRoute:()=>zt}),DM=w$.update({id:"/sibt-medio-tejo",path:"/sibt-medio-tejo",getParentRoute:()=>zt}),jM=b$.update({id:"/sibt-norte",path:"/sibt-norte",getParentRoute:()=>zt}),MM=R$.update({id:"/sibt-oeste",path:"/sibt-oeste",getParentRoute:()=>zt}),NM=C$.update({id:"/sibt-pinhal-interior",path:"/sibt-pinhal-interior",getParentRoute:()=>zt}),zM=A$.update({id:"/prr/",path:"/prr/",getParentRoute:()=>me}),UM=O$.update({id:"/prr/bairros-comerciais",path:"/prr/bairros-comerciais",getParentRoute:()=>me}),BM=I$.update({id:"/prr/coaching-4-0",path:"/prr/coaching-4-0",getParentRoute:()=>me}),qM=$$.update({id:"/prr/descarbonizacao",path:"/prr/descarbonizacao",getParentRoute:()=>me}),HM=D$.update({id:"/prr/eficiencia-energetica",path:"/prr/eficiencia-energetica",getParentRoute:()=>me}),VM=M$.update({id:"/prr/ifici",path:"/prr/ifici",getParentRoute:()=>me}),FM=z$.update({id:"/prr/internacionalizacao-ecommerce",path:"/prr/internacionalizacao-ecommerce",getParentRoute:()=>me}),GM=B$.update({id:"/prr/linha-ia",path:"/prr/linha-ia",getParentRoute:()=>me}),KM=H$.update({id:"/",path:"/",getParentRoute:()=>Fr}),YM=F$.update({id:"/consultoria-industrial",path:"/consultoria-industrial",getParentRoute:()=>Fr}),QM=Q$.update({id:"/dgert-formacao",path:"/dgert-formacao",getParentRoute:()=>Fr}
55),JM=X$.update({id:"/fundos-comunitarios",path:"/fundos-comunitarios",getParentRoute:()=>Fr}),XM=t3.update({id:"/marketing-estrategico",path:"/marketing-estrategico",getParentRoute:()=>Fr}),ZM=s3.update({id:"/projetos-investimento",path:"/projetos-investimento",getParentRoute:()=>Fr}),WM=a3.update({id:"/turismo-hotelaria",path:"/turismo-hotelaria",getParentRoute:()=>Fr}),eN=c3.update({id:"/turismo-de-portugal/",path:"/turismo-de-portugal/",getParentRoute:()=>me}),tN=f3.update({id:"/turismo-de-portugal/crescer-com-turismo",path:"/turismo-de-portugal/crescer-com-turismo",getParentRoute:()=>me}),nN=p3.update({id:"/turismo-de-portugal/fundo-investimento-interior",path:"/turismo-de-portugal/fundo-investimento-interior",getParentRoute:()=>me}),rN=g3.update({id:"/turismo-de-portugal/linha-qualificacao-oferta",path:"/turismo-de-portugal/linha-qualificacao-oferta",getParentRoute:()=>me}),oN=w3.update({id:"/turismo-de-portugal/revive",path:"/turismo-de-portugal/revive",getParentRoute:()=>me}),sN=b3.update({id:"/turismo-de-portugal/si-portugal-events",path:"/turismo-de-portugal/si-portugal-events",getParentRoute:()=>me}),iN=R3.update({id:"/building-small-business",path:"/building-small-business",getParentRoute:()=>qc}),aN=C3.update({id:"/building-young-investor",path:"/building-young-investor",getParentRoute:()=>qc}),lN=A3.update({id:"/productive-innovation",path:"/productive-innovation",getParentRoute:()=>qc}),cN=O3.update({id:"/",path:"/",getParentRoute:()=>Ch}),uN=$3.update({id:"/$slug",path:"/$slug",getParentRoute:()=>Ch}),fN=D3.update({id:"/agri-food-modernisation",path:"/agri-food-modernisation",getParentRoute:()=>va}),dN=M3.update({id:"/diversification-trade-services",path:"/diversification-trade-services",getParentRoute:()=>va}),hN=z3.update({id:"/forestry-bioeconomy",path:"/forestry-bioeconomy",getParentRoute:()=>va}),pN=B3.update({id:"/small-bioeconomy-investments",path:"/small-bioeconomy-investments",getParentRoute:()=>va}),mN=H3.update({id:"/productive-innovation",path:"/productive-innovation",getParentRoute:()=>Xt}),gN=F3.update({id:"/qualified-hr",path:"/qualified-hr",getParentRoute:()=>Xt}),vN=K3.update({id:"/rd-innovation",path:"/rd-innovation",getParentRoute:()=>Xt}),yN=Q3.update({id:"/sibt-alentejo",path:"/sibt-alentejo",getParentRoute:()=>Xt}),wN=X3.update({id:"/sibt-algarve",path:"/sibt-algarve",getParentRoute:()=>Xt}),_N=W3.update({id:"/sibt-medio-tejo",path:"/sibt-medio-tejo",getParentRoute:()=>Xt}),bN=tx.update({id:"/sibt-norte",path:"/sibt-norte",getParentRoute:()=>Xt}),SN=rx.update({id:"/sibt-oeste",path:"/sibt-oeste",getParentRoute:()=>Xt}),RN=sx.update({id:"/sibt-pinhal-interior",path:"/sibt-pinhal-interior",getParentRoute:()=>Xt}),EN=ax.update({id:"/sme-internationalisation",path:"/sme-internationalisation",getParentRoute:()=>Xt}),CN=cx.update({id:"/sme-qualification",path:"/sme-qualification",getParentRoute:()=>Xt}),TN=fx.update({id:"/territorial-investment",path:"/territorial-investment",getParentRoute:()=>Xt}),AN=hx.update({id:"/ai-line",path:"/ai-line",getParentRoute:()=>Gr}),PN=mx.update({id:"/coaching-4-0",path:"/coaching-4-0",getParentRoute:()=>Gr}),ON=vx.update({id:"/commercial-neighbourhoods",path:"/commercial-neighbourhoods",getParentRoute:()=>Gr}),LN=wx.update({id:"/decarbonisation",path:"/decarbonisation",getParentRoute:()=>Gr}),IN=bx.update({id:"/energy-efficiency",path:"/energy-efficiency",getParentRoute:()=>Gr}),kN=Rx.update({id:"/ifici",path:"/ifici",getParentRoute:()=>Gr}),$N=Cx.update({id:"/internationalisation-ecommerce",path:"/internationalisation-ecommerce",getParentRoute:()=>Gr}),xN=Ax.update({id:"/",path:"/",getParentRoute:()=>Kr}),DN=Ox.update({id:"/dgert-training",path:"/dgert-training",getParentRoute:()=>Kr}),jN=Ix.update({id:"/funding-grants",path:"/funding-grants",getParentRoute:()=>Kr}),MN=$x.update({id:"/industrial-consulting",path:"/industrial-consulting",getParentRoute:()=>Kr}),NN=Dx.update({id:"/investment-projects",path:"/investment-projects",getParentRoute:()=>Kr}),zN=Mx.update({id:"/strategic-marketing",path:"/strategic-marketing",getParentRoute:()=>Kr}),UN=zx.update({id:"/tourism-hospitality",path:"/tourism-hospitality",getParentRoute:()=>Kr}),BN=Bx.update({id:"/growing-with-tourism",path:"/growing-with-tourism",getParentRoute:()=>zs}),qN=Hx.update({id:"/interior-investment-fund",path:"/interior-investment-fund",getParentRoute:()=>zs}),HN=Fx.update({id:"/offer-qualification",path:"/offer-qualification",getParentRoute:()=>zs}),VN=Kx.update({id:"/revive",path:"/revive",getParentRoute:()=>zs}),FN=Qx.update({id:"/si-portugal-events",path:"/si-portugal-events",getParentRoute:()=>zs}),GN=Xx.update({id:"/",path:"/",getParentRoute:()=>Hc}),KN=Wx.update({id:"/construir-joven-inversor",path:"/construir-joven-inversor",getParentRoute:()=>Hc}),YN=tD.update({id:"/construir-pequenos-negocios",path:"/construir-pequenos-negocios",getParentRoute:()=>Hc}),QN=rD.update({id:"/",path:"/",getParentRoute:()=>Th}),JN=aD.update({id:"/$slug",path:"/$slug",getParentRoute:()=>Th}),XN=cD.update({id:"/",path:"/",getParentRoute:()=>Us}),ZN=fD.update({id:"/bioeconomia-agroindustria",path:"/bioeconomia-agroindustria",getParentRoute:()=>Us}),WN=hD.update({id:"/bioeconomia-forestal",path:"/bioeconomia-forestal",getParentRoute:()=>Us}),ez=mD.update({id:"/diversificacion-comercio-servicios",path:"/diversificacion-comercio-servicios",getParentRoute:()=>Us}),tz=vD.update({id:"/pequenas-inversiones-bioeconomia",path:"/pequenas-inversiones-bioeconomia",getParentRoute:()=>Us}),nz=wD.update({id:"/",path:"/",getParentRoute:()=>Ut}),rz=bD.update({id:"/cualificacion-pyme",path:"/cualificacion-pyme",getParentRoute:()=>Ut}),oz=RD.update({id:"/idi",path:"/idi",getParentRoute:()=>Ut}),sz=CD.update({id:"/innovacion-productiva",path:"/innovacion-productiva",getParentRoute:()=>Ut}),iz=AD.update({id:"/internacionalizacion-pyme",path:"/internacionalizacion-pyme",getParentRoute:()=>Ut}),az=OD.update({id:"/rrhh-cualificados",path:"/rrhh-cualificados",getParentRoute:()=>Ut}),lz=ID.update({id:"/si-base-territorial",path:"/si-base-territorial",getParentRoute:()=>Ut}),cz=$D.update({id:"/sibt-alentejo",path:"/sibt-alentejo",getParentRoute:()=>Ut}),uz=DD.update({id:"/sibt-algarve",path:"/sibt-algarve",getParentRoute:()=>Ut}),fz=MD.update({id:"/sibt-medio-tejo",path:"/sibt-medio-tejo",getParentRoute:()=>Ut}),dz=zD.update({id:"/sibt-norte",path:"/sibt-norte",getParentRoute:()=>Ut}),hz=BD.update({id:"/sibt-oeste",path:"/sibt-oeste",getParentRoute:()=>Ut}),pz=HD.update({id:"/sibt-pinhal-interior",path:"/sibt-pinhal-interior",getParentRoute:()=>Ut}),mz=FD.update({id:"/",path:"/",getParentRoute:()=>ir}),gz=KD.update({id:"/barrios-comerciales",path:"/barrios-comerciales",getParentRoute:()=>ir}),vz=QD.update({id:"/coaching-4-0",path:"/coaching-4-0",getParentRoute:()=>ir}),yz=XD.update({id:"/descarbonizacion",path:"/descarbonizacion",getParentRoute:()=>ir}),wz=WD.update({id:"/eficiencia-energetica",path:"/eficiencia-energetica",getParentRoute:()=>ir}),_z=tj.update({id:"/ifici",path:"/ifici",getParentRoute:()=>ir}),bz=rj.update({id:"/internacionalizacion-ecommerce",path:"/internacionalizacion-ecommerce",getParentRoute:()=>ir}),Sz=sj.update({id:"/linea-ia",path:"/linea-ia",getParentRoute:()=>ir}),Rz=aj.update({id:"/",path:"/",getParentRoute:()=>Yr}),Ez=cj.update({id:"/consultoria-industrial",path:"/consultoria-industrial",getParentRoute:()=>Yr}),Cz=fj.update({id:"/fondos-comunitarios",path:"/fondos-comunitarios",getParentRoute:()=>Yr}),Tz=hj.update({id:"/formacion-dgert",path:"/formacion-dgert",getParentRoute:()=>Yr}),Az=mj.update({id:"/marketing-estrategico",path:"/marketing-estrategico",getParentRoute:()=>Yr}),Pz=vj.update({id:"/proyectos-inversion",path:"/proyectos-inversion",getParentRoute:()=>Yr}),Oz=wj.update({id:"/turismo-hosteleria",path:"/turismo-hosteleria",getParentRoute:()=>Yr}),Lz=bj.update({id:"/",path:"/",getParentRoute:()=>Oo}),Iz=Rj.update({id:"/crecer-con-turismo",path:"/crecer-con-turismo",getParentRoute:()=>Oo}),kz=Cj.update({id:"/fondo-inversion-interior",path:"/fondo-inversion-interior",getParentRoute:()=>Oo}),$z=Aj.update({id:"/linea-cualificacion-oferta",path:"/linea-cualificacion-oferta",getParentRoute:()=>Oo}),xz=Oj.update({id:"/revive",path:"/revive",getParentRoute:()=>Oo}),Dz=Ij.update({id:"/si-portugal-events",path:"/si-portugal-events",getParentRoute:()=>Oo}),jz={Acores2030ConstruirJovemInvestidorRoute:Kj,Acores2030ConstruirPequenosNegociosRoute:Yj,Acores2030IndexRoute:Gj},Mz=Bc._addFileChildren(jz),Nz={EnAcores2030BuildingSmallBusinessRoute:iN,EnAcores2030BuildingYoungInvestorRoute:aN,EnAcores2030ProductiveInnovationRoute:lN},zz=qc._addFileChildren(Nz),Uz={EnBlogSlugRoute:uN,EnBlogIndexRoute:cN},Bz=Ch._addFileChildren(Uz),qz={EnPepacAgriFoodModernisationRoute:fN,EnPepacDiversificationTradeServicesRoute:dN,EnPepacForestryBioeconomyRoute:hN,EnPepacSmallBioeconomyInvestmentsRoute:pN},Hz=va._addFileChildren(qz),Vz={EnPortugal2030ProductiveInnovationRoute:mN,EnPortugal2030QualifiedHrRoute:gN,EnPortugal2030RdInnovationRoute:vN,EnPortugal2030SibtAlentejoRoute:yN,EnPortugal2030SibtAlgarveRoute:wN,EnPortugal2030SibtMedioTejoRoute:_N,EnPortugal2030SibtNorteRoute:bN,EnPortugal2030SibtOesteRoute:SN,EnPortugal2030SibtPinhalInteriorRoute:RN,EnPortugal2030SmeInternationalisationRoute:EN,EnPortugal2030SmeQualificationRoute:CN,EnPortugal2030TerritorialInvestmentRoute:TN},Fz=Xt._addFileChildren(Vz),Gz={EnPrrAiLineRoute:AN,EnPrrCoaching40Route:PN,EnPrrCommercialNeighbourhoodsRoute:ON,EnPrrDecarbonisationRoute:LN,EnPrrEnergyEfficiencyRoute:IN,EnPrrIficiRoute:kN,EnPrrInternationalisationEcommerceRoute:$N},Kz=Gr._addFileChildren(Gz),Yz={EnServicesDgertTrainingRoute:DN,EnServicesFundingGrantsRoute:jN,EnServicesIndustrialConsultingRoute:MN,EnServicesInvestmentProjectsRoute:NN,EnServicesStrategicMarketingRoute:zN,EnServicesTourismHospital
55ityRoute:UN,EnServicesIndexRoute:xN},Qz=Kr._addFileChildren(Yz),Jz={EnTurismoDePortugalGrowingWithTourismRoute:BN,EnTurismoDePortugalInteriorInvestmentFundRoute:qN,EnTurismoDePortugalOfferQualificationRoute:HN,EnTurismoDePortugalReviveRoute:VN,EnTurismoDePortugalSiPortugalEventsRoute:FN},Xz=zs._addFileChildren(Jz),Zz={EnAcores2030Route:zz,EnBlogRoute:Bz,EnCompanyRoute:Zj,EnContactRoute:Wj,EnCookiePolicyRoute:eM,EnDisputeResolutionRoute:tM,EnFaqRoute:nM,EnFundingIncentivesRoute:rM,EnNationalCoverageRoute:oM,EnPepacRoute:Hz,EnPortugal2030Route:Fz,EnPrivacyPolicyRoute:sM,EnPrrRoute:Kz,EnServicesRoute:Qz,EnTermsAndConditionsRoute:iM,EnTourismHospitalityRoute:aM,EnTrainingRoute:lM,EnTurismoDePortugalRoute:Xz,EnIndexRoute:Xj},Wz=it._addFileChildren(Zz),eU={EsAcores2030ConstruirJovenInversorRoute:KN,EsAcores2030ConstruirPequenosNegociosRoute:YN,EsAcores2030IndexRoute:GN},tU=Hc._addFileChildren(eU),nU={EsBlogSlugRoute:JN,EsBlogIndexRoute:QN},rU=Th._addFileChildren(nU),oU={EsPepacBioeconomiaAgroindustriaRoute:ZN,EsPepacBioeconomiaForestalRoute:WN,EsPepacDiversificacionComercioServiciosRoute:ez,EsPepacPequenasInversionesBioeconomiaRoute:tz,EsPepacIndexRoute:XN},sU=Us._addFileChildren(oU),iU={EsPortugal2030CualificacionPymeRoute:rz,EsPortugal2030IdiRoute:oz,EsPortugal2030InnovacionProductivaRoute:sz,EsPortugal2030InternacionalizacionPymeRoute:iz,EsPortugal2030RrhhCualificadosRoute:az,EsPortugal2030SiBaseTerritorialRoute:lz,EsPortugal2030SibtAlentejoRoute:cz,EsPortugal2030SibtAlgarveRoute:uz,EsPortugal2030SibtMedioTejoRoute:fz,EsPortugal2030SibtNorteRoute:dz,EsPortugal2030SibtOesteRoute:hz,EsPortugal2030SibtPinhalInteriorRoute:pz,EsPortugal2030IndexRoute:nz},aU=Ut._addFileChildren(iU),lU={EsPrrBarriosComercialesRoute:gz,EsPrrCoaching40Route:vz,EsPrrDescarbonizacionRoute:yz,EsPrrEficienciaEnergeticaRoute:wz,EsPrrIficiRoute:_z,EsPrrInternacionalizacionEcommerceRoute:bz,EsPrrLineaIaRoute:Sz,EsPrrIndexRoute:mz},cU=ir._addFileChildren(lU),uU={EsServiciosConsultoriaIndustrialRoute:Ez,EsServiciosFondosComunitariosRoute:Cz,EsServiciosFormacionDgertRoute:Tz,EsServiciosMarketingEstrategicoRoute:Az,EsServiciosProyectosInversionRoute:Pz,EsServiciosTurismoHosteleriaRoute:Oz,EsServiciosIndexRoute:Rz},fU=Yr._addFileChildren(uU),dU={EsTurismoDePortugalCrecerConTurismoRoute:Iz,EsTurismoDePortugalFondoInversionInteriorRoute:kz,EsTurismoDePortugalLineaCualificacionOfertaRoute:$z,EsTurismoDePortugalReviveRoute:xz,EsTurismoDePortugalSiPortugalEventsRoute:Dz,EsTurismoDePortugalIndexRoute:Lz},hU=Oo._addFileChildren(dU),pU={EsAcores2030Route:tU,EsBlogRoute:rU,EsCoberturaNacionalRoute:uM,EsContactoRoute:fM,EsEmpresaRoute:dM,EsFondosEIncentivosRoute:hM,EsFormacionRoute:pM,EsPepacRoute:sU,EsPoliticaDeCookiesRoute:mM,EsPoliticaDePrivacidadRoute:gM,EsPortugal2030Route:aU,EsPreguntasFrecuentesRoute:vM,EsPrrRoute:cU,EsResolucionDeLitigiosRoute:yM,EsServiciosRoute:fU,EsTerminosYCondicionesRoute:wM,EsTurismoDePortugalRoute:hU,EsTurismoHosteleriaRoute:_M,EsIndexRoute:cM},mU=at._addFileChildren(pU),gU={Portugal2030IdtRoute:AM,Portugal2030InovacaoProdutivaRoute:PM,Portugal2030InternacionalizacaoPmeRoute:OM,Portugal2030QualificacaoPmeRoute:LM,Portugal2030RhQualificadosRoute:IM,Portugal2030SiBaseTerritorialRoute:kM,Portugal2030SibtAlentejoRoute:$M,Portugal2030SibtAlgarveRoute:xM,Portugal2030SibtMedioTejoRoute:DM,Portugal2030SibtNorteRoute:jM,Portugal2030SibtOesteRoute:MM,Portugal2030SibtPinhalInteriorRoute:NM,Portugal2030IndexRoute:TM},vU=zt._addFileChildren(gU),yU={ServicosConsultoriaIndustrialRoute:YM,ServicosDgertFormacaoRoute:QM,ServicosFundosComunitariosRoute:JM,ServicosMarketingEstrategicoRoute:XM,ServicosProjetosInvestimentoRoute:ZM,ServicosTurismoHotelariaRoute:WM,ServicosIndexRoute:KM},wU=Fr._addFileChildren(yU),_U={IndexRoute:kj,Acores2030Route:Mz,AdminRoute:$j,AuthRoute:xj,CoberturaNacionalRoute:Dj,ContactosRoute:jj,EmpresaRoute:Mj,EnRoute:Wz,EsRoute:mU,FormacaoRoute:Nj,FundosEIncentivosRoute:zj,PerguntasFrequentesRoute:Uj,PoliticaDeCookiesRoute:Bj,PoliticaDePrivacidadeRoute:qj,Portugal2030Route:vU,ResolucaoDeLitigiosRoute:Hj,ServicosRoute:wU,TermosECondicoesRoute:Vj,TurismoHotelariaRoute:Fj,BlogSlugRoute:Jj,PepacBioeconomiaAgroindustriaRoute:SM,PepacBioeconomiaFlorestalRoute:RM,PepacDiversificacaoComercioServicosRoute:EM,PepacPequenosInvestimentosBioeconomiaRoute:CM,PrrBairrosComerciaisRoute:UM,PrrCoaching40Route:BM,PrrDescarbonizacaoRoute:qM,PrrEficienciaEnergeticaR
55oute:HM,PrrIficiRoute:VM,PrrInternacionalizacaoEcommerceRoute:FM,PrrLinhaIaRoute:GM,TurismoDePortugalCrescerComTurismoRoute:tN,TurismoDePortugalFundoInvestimentoInteriorRoute:nN,TurismoDePortugalLinhaQualificacaoOfertaRoute:rN,TurismoDePortugalReviveRoute:oN,TurismoDePortugalSiPortugalEventsRoute:sN,BlogIndexRoute:Qj,PepacIndexRoute:bM,PrrIndexRoute:zM,TurismoDePortugalIndexRoute:eN},bU=me._addFileChildren(_U),SU=()=>{const e=new G2;return tP({routeTree:bU,context:{queryClient:e},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function RU(){const e=await SU();let t;if(n0){const r=await n0.getOptions();r.serializationAdapters=r.serializationAdapters??[],window.__TSS_START_OPTIONS__=r,t=r.serializationAdapters,e.options.defaultSsr=r.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(nA),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await iA(e),e}var EU=RU;async function CU(){const e=await EU();return window.$_TSR?.h(),e}var kd;function TU(){return kd||(kd=CU()),Q.jsx(uA,{promise:kd,children:e=>Q.jsx(oP,{router:e})})}oe.startTransition(()=>{JS.hydrateRoot(document,Q.jsx(oe.StrictMode,{children:Q.jsx(TU,{})}))});export{W$ as A,PU as B,r3 as C,b_ as D,O3 as E,$3 as F,rD as G,aD as H,y0 as I,Dc as L,Mw as O,uI as R,Qi as a,ph as b,So as c,$w as d,WI as e,Sc as f,Rc as g,pa as h,Ot as i,Q as j,pI as k,_e as l,yh as m,kI as n,Ec as o,OU as p,Tc as q,oe as r,g2 as s,Cc as t,gt as u,__ as v,w_ as w,v0 as x,js as y,K$ as z};
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.