PageSourceSearch

https://www.memorizevestibular.com/blog/_next/static/chunks/09fi7y6pz_56c.js?dpl=undefined

js memorizevestibular.com collected 2026-10-02 02:13:59 UTC 102,766 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,n)=>{t.exports=e.r(76562)},64510,e=>{"use strict";var t=e.i(66065);let n=`${t.MAIN_SITE_URL}/premonicaoenem`;e.s(["CTA_LABEL",0,"Quero ver o que vai cair","PREMONICAO_LABEL",0,"Previsão da prova de 2026","premonicaoUrl",0,function(e,t="popup"){let r=new URLSearchParams({utm_source:"blog",utm_medium:t,utm_campaign:"premonicao-enem",utm_content:e});return`${n}?${r.toString()}`}])},80931,e=>{"use strict";let t=[{num:1,materia:"mat",materiaLabel:"Matemática",titulo:"A base de matemática que define sua nota no ENEM",subtitulo:"O básico que sustenta toda a prova. Sem isso, o resto não fecha.",sobre:"O ENEM não é uma prova de matemática avançada. É uma prova que cobra muito bem o básico. Esta aula é sobre as quatro operações no contexto da prova, frações, decimais, regra de três, leitura de gráfico e tabela. Tudo aquilo que você precisa dominar antes de pensar em geometria, função ou estatística.",cover:"https://i.ytimg.com/vi/9zeL2_lEKO0/maxresdefault.jpg",data:"2026-05-09T10:00:00-03:00",duracao:90,youtube:"9zeL2_lEKO0",material:"/materiais/mes-decisivo-aula-01-matematica.pdf"},{num:2,materia:"bio",materiaLabel:"Biologia",titulo:"Os conceitos de Biologia que o ENEM cobra todo ano",subtitulo:"Os pilares que aparecem em toda edição da prova.",sobre:"Aqui você vai entender de uma vez quais são os blocos de Biologia que o ENEM cobra todo ano. Não é decoreba: é compreender como a informação genética flui dentro da célula, como a vida funciona em nível molecular, e como o ENEM cobra isso em contextos como engenharia genética, doenças, vacinas e biotecnologia.",cover:"https://i.ytimg.com/vi/sAKrqFab5ek/maxresdefault.jpg",data:"2026-05-11T19:00:00-03:00",duracao:90,youtube:"sAKrqFab5ek",material:"/materiais/mes-decisivo-aula-02-biologia.pdf"},{num:3,materia:"qui",materiaLabel:"Química",titulo:"Química Geral: a base que destrava todo o resto",subtitulo:"Tabela periódica, ligações e cálculos: o tripé da química do ENEM.",sobre:"Química Geral é o conteúdo mais recorrente da prova. Vamos revisar tabela periódica do jeito que o ENEM cobra (sem decorar elemento por elemento), os tipos de ligação química com aplicação prática, e os cálculos básicos que aparecem em qualquer questão de química.",cover:"https://i.ytimg.com/vi/ZUFGXf9taEk/maxresdefault.jpg",data:"2026-05-13T19:00:00-03:00",duracao:90,youtube:"ZUFGXf9taEk",material:"/materiais/mes-decisivo-aula-03-quimica.pdf"},{num:4,materia:"mat",materiaLabel:"Matemática",titulo:"Razão e proporção: o tópico que aparece em metade do ENEM",subtitulo:"O segredo da interpretação do ENEM em uma só ferramenta.",sobre:"Razão e proporção é o conteúdo mais cobrado da matemática do ENEM, e quase ninguém percebe. Toda questão de regra de três, escala, mistura, velocidade média, densidade demográfica passa por aqui. Esta aula é sobre dominar a ferramenta que destrava a interpretação de boa parte da prova.",cover:"https://i.ytimg.com/vi/9SHUW_imQEI/maxresdefault.jpg",data:"2026-05-16T09:00:00-03:00",duracao:90,youtube:"9SHUW_imQEI",material:"/materiais/mes-decisivo-aula-04-matematica.pdf"},{num:5,materia:"bio",materiaLabel:"Biologia",titulo:"Biologia Celular: tudo que cai no ENEM em 1 hora",subtitulo:"A célula completa, do jeito que a prova cobra.",sobre:"A célula é o tema mais frequente da Biologia no ENEM. Vamos passar pelas organelas no nível que a prova cobra, com foco em mitocôndria, cloroplasto, ribossomo, retículo e os processos que envolvem cada uma. Tudo conectado com aplicação real: energia, doenças, biotecnologia.",cover:"https://i.ytimg.com/vi/EhM0P5c6dZc/maxresdefault.jpg",data:"2026-05-18T19:00:00-03:00",duracao:90,youtube:"EhM0P5c6dZc",material:"/materiais/mes-decisivo-aula-05-biologia.pdf"},{num:6,materia:"qui",materiaLabel:"Química",titulo:"Química Inorgânica: o que o ENEM realmente cobra",subtitulo:"Ácidos, bases e sais do jeito que a prova cobra.",sobre:"A inorgânica do ENEM gira em torno de quatro funções: ácidos, bases, sais e óxidos. Vamos olhar para cada uma com foco em aplicação no cotidiano, identificação em contexto e os cálculos típicos que envolvem essas substâncias.",cover:"https://i.ytimg.com/vi/6UUoeYMYkV0/maxresdefault.jpg",data:"2026-05-20T19:00:00-03:00",duracao:90,youtube:"6UUoeYMYkV0",material:"/materiais/mes-decisivo-aula-06-quimica.pdf"},{num:7,materia:"mat",materiaLabel:"Matemática",titulo:"Equações sem decorar fórmula",subtitulo:"O método para resolver mesmo quando a matemática parece impossível.",sobre:"Resolver equação não é decorar fórmula, 
1é entender a lógica de equilíbrio. Esta aula é o método passo a passo para abordar qualquer equação do ENEM com tranquilidade, da equação simples do 1º grau até a do 2º grau e os sistemas mais cobrados.",cover:"https://i.ytimg.com/vi/IUF8hqGsHp8/maxresdefault.jpg",data:"2026-05-23T19:00:00-03:00",duracao:90,youtube:"IUF8hqGsHp8",material:"/materiais/mes-decisivo-aula-07-matematica.pdf"},{num:8,materia:"bio",materiaLabel:"Biologia",titulo:"Genética Molecular: do DNA até a questão do ENEM",subtitulo:"Os mecanismos genéticos no nível que aparece na prova.",sobre:"Genética é um dos temas favoritos do ENEM. Vamos focar nos mecanismos moleculares que sustentam herança genética, mutações, biotecnologia e os contextos modernos que a prova adora cobrar: edição gênica, transgênicos, doenças hereditárias.",cover:"https://i.ytimg.com/vi/9MIrLTZ1uew/maxresdefault.jpg",data:"2026-05-25T19:00:00-03:00",duracao:90,youtube:"9MIrLTZ1uew",material:null}],n=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],r={Sun:"Dom",Mon:"Seg",Tue:"Ter",Wed:"Qua",Thu:"Qui",Fri:"Sex",Sat:"Sáb"};function o(e){let t=new Intl.DateTimeFormat("en-US",{timeZone:"America/Sao_Paulo",day:"2-digit",month:"2-digit",weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(e),n=e=>t.find(t=>t.type===e)?.value??"",r=n("hour");return"24"===r&&(r="00"),{day:n("day"),monthIdx:Number(n("month"))-1,weekday:n("weekday"),hour:r,minute:n("minute")}}function i(e,t=new Date){let n=new Date(e.data),r=new Date(n.getTime()+6e4*e.duracao);return t>=n&&t<=r?"ao-vivo":t>r?"encerrada":n.getTime()-t.getTime()<=864e5?"hoje":"em-breve"}e.s(["escolherAulaInicial",0,function(e=t,n=new Date){let r=e.find(e=>"ao-vivo"===i(e,n));if(r)return r.num;let o=e.find(e=>"hoje"===i(e,n));if(o)return o.num;let a=e.find(e=>"em-breve"===i(e,n));if(a)return a.num;let s=e.filter(e=>"encerrada"===i(e,n));return s.length>0?s[s.length-1].num:e[0].num},"formatData",0,e=>{let t=o(e);return`${t.day} ${n[t.monthIdx]}`},"formatDia",0,e=>r[o(e).weekday]??"","formatHora",0,e=>{let t=o(e);return"00"===t.minute?`${t.hour}h`:`${t.hour}h${t.minute}`},"getCountdownParts",0,function(e,t=new Date){let n=new Date(e.data).getTime()-t.getTime();if(n<=0)return null;let r=Math.floor(n/864e5),o=Math.floor((n-=864e5*r)/36e5),i=Math.floor((n-=36e5*o)/6e4),a=Math.floor((n-=6e4*i)/1e3);return{dias:r,horas:o,min:i,seg:a}},"getStatus",0,i,"statusLabel",0,function(e){switch(e){case"ao-vivo":return"Ao vivo agora";case"hoje":return"Hoje";case"em-breve":return"Em breve";case"encerrada":return"Replay disponível"}},"tituloPlaceholder",0,function(e){return e.split(":")[0].replace("Química ","").trim()||e}])},86666,e=>{"use strict";let t=new Set(["tVoAHOQxpxk","f1Ddj8YsxvI","FAUGkyC3Ql0","FhFMvD8TQec","4UXAY2Jntxk","8nHFJFVVAY0","W34SCGB5aBU","Z_v-i_LW5RU","tK4hXTqZHmc","0W_Y30_XBJ8","ugQJEGzUfhE","Dasn8qbSJ2A","m0OLqaFReWE","PnAtVjRUdIM","i5_LMYP3Txk","uUHO1ixEcrs","SDCvNoyPE6c"]),n=new Date("2026-08-03T00:00:00-03:00").getTime();function r(e,o,i,a,s="aula",l){return{id:l?.sufixo?`${e}-${o}-${l.sufixo}`:`${e}-${o}`,dataISO:`${e}T${l?.hora??"19:07"}:00-03:00`,disciplina:o,tema:i,formato:s,semana:Math.floor((new Date(`${e}T00:00:00-03:00`).getTime()-n)/6048e5)+1,youtubeId:a,exclusiva:!!a&&t.has(a)}}let o=[r("2026-08-03","biologia","Citologia","UhtpohABhn0"),r("2026-08-04","matematica","Equação e Funções — 1º grau","tVoAHOQxpxk"),r("2026-08-05","quimica","Inorgânica — Funções inorgânicas","3V6ocNcwY9Q"),r("2026-08-06","fisica","Ondulatória","f1Ddj8YsxvI"),r("2026-08-10","biologia","Bioquímica","FMQPohRZ5l0"),r("2026-08-11","matematica","Equação e Funções — 2º grau","FAUGkyC3Ql0"),r("2026-08-12","quimica","Orgânica — Funções orgânicas","YkGyMhnXQec"),r("2026-08-13","fisica","Ondulatória II","FhFMvD8TQec"),r("2026-08-17","biologia","Metabolismo Energético","4UXAY2Jntxk"),r("2026-08-18","matematica","Estatística","8nHFJFVVAY0"),r("2026-08-19","quimica","Estequiometria","W34SCGB5aBU"),r("2026-08-20","fisica","Cinemática","Z_v-i_LW5RU"),r("2026-08-24","biologia","Genética Molecular e Biotecnologia","tK4hXTqZHmc"),r("2026-08-25","matematica","PA / PG — Sequências e Progressões","FteR3eujg0I"),r("2026-08-26","quimica","Soluções","0W_Y30_XBJ8"),r("2026-08-27","fisica","Cinemática II","ugQJEGzUfhE"),r("2026-09-02","linguagens","Aulão de Linguagens — como interpretar e acertar questões","KEJdIqTJCK4","aula",{hora:"19:05"}),r("2026-09-03","humanas","Aulão de História do Brasil","upxAGUrl9vU","aula",{hora:"19:05"}
1),r("2026-09-09","matematica","Geometria Plana","m0OLqaFReWE"),r("2026-09-10","matematica","Geometria Plana II","PnAtVjRUdIM","aula",{hora:"19:05"}),r("2026-09-11","biologia","Genética Clássica","Dasn8qbSJ2A","aula",{hora:"14:00"}),r("2026-09-14","biologia","Fisiologia I — Sistema Digestório","BQC3BFScKkw"),r("2026-09-15","fisica","Dinâmica I — Leis de Newton","ql7u9F_uMrw","aula",{hora:"14:00"}),r("2026-09-16","quimica","Orgânica — Propriedades dos compostos orgânicos e Isomeria","i5_LMYP3Txk","aula",{hora:"14:00",sufixo:"propriedades"}),r("2026-09-16","matematica","Geometria Plana — as questões mais brutais do ENEM","uUHO1ixEcrs","revisao"),r("2026-09-22","matematica","Geometria Espacial I","FiDg8CsgZjw"),r("2026-09-23","biologia","Fisiologia II — Sistema Circulatório e Respiratório","SDCvNoyPE6c"),r("2026-09-24","fisica","Dinâmica II — TUDO sobre Atrito e Dinâmica no MCU","NB_IbWLHoFA"),r("2026-09-25","quimica","Termoquímica e Cinética Química","WvQ6Rr9R3is","aula",{hora:"14:00"}),r("2026-09-29","matematica","Geometria Espacial II","M6I7uiFS38U"),r("2026-09-30","biologia","Fisiologia III — Sistema Endócrino","iHEAxHUPNIQ"),r("2026-10-01","fisica","Eletrostática","UAZrxWZxp2g"),r("2026-10-02","quimica","Orgânica — Reações orgânicas","HphdbVA6AbU","aula",{hora:"14:00"}),r("2026-10-05","biologia","Ecologia","bGiLJqDTNPQ"),r("2026-10-06","quimica","Equilíbrio químico","_54HAn8Iwg0"),r("2026-10-07","matematica","Combinatória","Ox7iTBt04x8"),r("2026-10-08","matematica","Combinatória — questões para +800","tvPiL1TF0jk","revisao",{hora:"19:00"}),r("2026-10-12","fisica","Eletrodinâmica I","8JcB2W091l4"),r("2026-10-13","fisica","Eletrodinâmica II — Circuitos","lj2v_H1Avqo"),r("2026-10-16","biologia","Botânica","iSvnf_9lxj8","aula",{hora:"14:07"}),r("2026-10-19","biologia","Doenças","EuaPz1x8J7Y","aula",{hora:"19:00"}),r("2026-10-20","fisica","Eletromagnetismo","klGQuA08Yms","aula",{hora:"19:00"}),r("2026-10-21","quimica","Eletroquímica","BZ9VOkY0Z8c"),r("2026-10-22","matematica","Probabilidade","nuTQEAUB8xk","revisao"),r("2026-10-23","biologia","Evolução","6FkeZHm3dRI"),r("2026-11-10","quimica","Meio Ambiente e Radioatividade","Fa6rs_tRLTg")];e.s(["DISCIPLINA_RF",0,{matematica:{label:"Matemática",accent:"mat"},biologia:{label:"Biologia",accent:"bio"},quimica:{label:"Química",accent:"qui"},fisica:{label:"Física",accent:"fis"},linguagens:{label:"Linguagens",accent:"ling"},humanas:{label:"Humanas",accent:"hum"}},"DURACAO_LIVE_RF_MIN",0,150,"LIVES_RETA_FINAL",0,o,"formatoRFLabel",0,function(e){return"revisao"===e?"Revisão e resolução":"Aula teórica"},"semanaRFLabel",0,function(e){return`Semana ${e}`}])},22765,e=>{"use strict";var t=e.i(71645);let n={open:!1,source:"lives-hero"},r=new Set;function o(){r.forEach(e=>e())}function i(e){return r.add(e),()=>{r.delete(e)}}function a(){return n}let s={open:!1,source:"lives-hero"};function l(){return s}e.s(["closePremonicaoPopup",0,function(){n.open&&(n={...n,open:!1},o())},"openPremonicaoPopup",0,function(e){n={open:!0,source:e},o()},"usePremonicaoPopup",0,function(){return(0,t.useSyncExternalStore)(i,a,l)}])},74303,e=>{"use strict";let t,n,r;var o,i,a,s,l,u,c=e.i(43476),d=e.i(71645),p=e.i(57688),f=e.i(22016),m=e.i(18566),h=e.i(47163);e.i(47167);var g=e.i(29315);let v={};function b(e,t){let n=d.useRef(v);return n.current===v&&(n.current=e(t)),n}let y=d[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],x=y&&y!==d.useLayoutEffect?y:e=>e();function E(e){let t=b(w).current;return t.next=e,x(t.effect),t.trampoline}function w(){let e={next:void 0,callback:S,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function S(){}let k="u">typeof document?d.useLayoutEffect:()=>{};function C(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let j={};function R(e,t,n,r,o){let i={...P(e,j)};return t&&(i=T(i,t)),n&&(i=T(i,n)),r&&(i=T(i,r)),o&&(i=T(i,o)),i}function T(e,t){return I(t)?t(e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=C(e.style,r);break;case"className":e[n]=O(e.className,r);break;default:!function(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}(n,r)?e[n]=r:e[n]=function(e,t){return t?e?n=>{var r;if(null!=(r=n)&&"object"==typeof r&&"nativeEvent"in r){N(n);let r=t(n);return n.baseUIHandlerPrevented||e?.(n),r}let o=t(n);return e?.(n),o}:t:e}(e[n],r)}}return e}(e,t)}function I(e){return"function"==typeof e}function P(e,t){return I(e)?e(t):e??j}function N(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function O(e,t){return t?e?t+" "+e:t:e}let A=function(e,...t){let n=new URL("https://base-ui.com/production-error");
1return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`},M=d.createContext(void 0);function L(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:i}=e,a=d.useRef(null),s=function(e=!1){let t=d.useContext(M);if(void 0===t&&!e)throw Error(A(16));return t}(!0),l=i??void 0!==s,{props:u}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,a=r&&!1!==t,s=r&&!1===t;return{props:d.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=o,!i&&n&&(e.tabIndex=t?o:-1)),(i&&(t||a)||!i&&n)&&(e["aria-disabled"]=n),i&&(!t||s)&&(e.disabled=n),e},[r,n,t,a,s,i,o])}}({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:o}),c=d.useCallback(()=>{let e=a.current;D(e)&&l&&t&&void 0===u.disabled&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return k(c,[c]),{getButtonProps:d.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:i,onKeyDown:a,onPointerDown:s,...c}=e;return R({type:o?"button":void 0,onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){var r;if(t||(N(e),a?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,s=e.currentTarget,u=D(s),c=!o&&(r=s,!!(r?.tagName==="A"&&r?.href)),d=i&&(o?u:!c),p="Enter"===e.key,f=" "===e.key,m=s.getAttribute("role"),h=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(i&&l&&f){if(e.defaultPrevented&&h)return;e.preventDefault(),c||o&&u?(s.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!o&&(f||p)&&e.preventDefault(),!o&&p&&n?.(e))},onKeyUp(e){t||((N(e),i?.(e),e.target===e.currentTarget&&o&&l&&D(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||o||l||" "!==e.key||n?.(e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},o?void 0:{role:"button"},u,c)},[t,u,l,o]),buttonRef:E(e=>{a.current=e,c()})}}function D(e){return(0,g.isHTMLElement)(e)&&"BUTTON"===e.tagName}function q(e,t,n,r){var o,i,a,s,l;let u=b(_).current;return o=u,i=e,a=t,s=n,l=r,(o.refs[0]!==i||o.refs[1]!==a||o.refs[2]!==s||o.refs[3]!==l)&&F(u,[e,t,n,r]),u.callback}function _(){return{callback:null,cleanup:null,refs:[]}}function F(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let o=t[e];if(null!=o)switch(typeof o){case"function":{let t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}let B=parseInt(d.version,10);function U(e){if(!d.isValidElement(e))return null;let t=e.props;return(B>=19?t?.ref:e.ref)??null}function z(){}Object.freeze([]);let W=Object.freeze({});function H(e,t,n={}){let r=t.render,o=function(e,t={}){var n,r,o;let{className:i,style:a,render:s}=e,{state:l=W,ref:u,props:c,stateAttributesMapping:d,enabled:p=!0}=t,f=p?"function"==typeof i?i(l):i:void 0,m=p?"function"==typeof a?a(l):a:void 0,h=p?function(e,t){let n={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(l,d):W,g=p?C(h,Array.isArray(c)?function(e){if(0===e.length)return j;if(1===e.length)return P(e[0],j);let t={...P(e[0],j)};for(let n=1;n<e.length;n+=1)t=T(t,e[n]);return t}(c):c)??W:W;if("u">typeof document)if(p)if(Array.isArray(u)){let e;n=[g.ref,U(s),...u],r=e=b(_).current,o=n,(r.refs.length!==o.length||r.refs.some((e,t)=>e!==o[t]))&&F(e,n),g.ref=e.callback}else g.ref=q(g.ref,U(s),u);else q(null,null);return p?(void 0!==f&&(g.className=O(g.className,f)),void 0!==m&&(g.style=C(g.style,m)),g):W}(t,n);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=R(n,t.props);e.ref=n.ref;let o=t;return o?.$$typeof===$&&(o=d.Children.toArray(t)[0]),d.cloneElement(o,e)}if(e&&"string"==typeof e){var o,i;return o=e,i=n,"button"===o?(0,d.createElement)("button",{type:"button",...i,key:i.key}):"img"===o?(0,d.createElement)("img",{alt:"",...i,key:i.key}):d.createElement(o,i)}throw Error(A(8))}(e,r,o,n.state??W)}let $=Symbol.for("react.lazy"),V=d.forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,focusableWhenDisabled:i=!1,nativeButton:a=!0,...s}=e,{getButtonProps:l,buttonRef:u}=L({disabled:o,focusableWhenDisabled:i,native:a});return H("button",e,{state:{disabled:o},ref:[t,u],props:[s,l]})});var Y=e.i(7670);let K=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,G=Y.clsx,Q=(t="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n={variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var r;if((null==n?void 0:n.variants)==null)return G(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:o,defaultVariants:i}=n,a=Object.keys(o).map(t=>{let n=null==e?void 0:e[t],r=null==i?void 0:i[t];if(null===n)return null;let a=K(n)||K(r);return o[t][a]}),s=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return G(t,a,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):({...i,...s})[t]===n})?[...e,n,r]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});function X({className:e,variant:t="default",size:n="default",...r}){return(0,c.jsx)(V,{"data-slot":"button",className:(0,h.cn)(Q({variant:t,size:n,className:e})),...r})}e.s([],75704),e.i(75704);let J=d.createContext(void 0);function Z(e){let t=d.useContext(J);if(!1===e&&void 0===t)throw Error(A(27));return t}let ee=((o={}).startingStyle="data-starting-style",o.endingStyle="data-ending-style",o),et={[ee.startingStyle]:""},en={[ee.endingStyle]:""},er={transitionStatus:e=>"starting"===e?et:"ending"===e?en:null},eo=((i={}).open="data-open",i.closed="data-closed",i[i.startingStyle=ee.startingStyle]="startingStyle",i[i.endingStyle=ee.endingStyle]="endingStyle",i.anchorHidden="data-anchor-hidden",i.side="data-side",i.align="data-align",i),ei=((a={}).popupOpen="data-popup-open",a.pressed="data-pressed",a),ea={[ei.popupOpen]:""};ei.popupOpen,ei.pressed;let es={[eo.open]:""},el={[eo.closed]:""},eu={[eo.anchorHidden]:""},ec={open:e=>e?ea:null},ed={open:e=>e?es:el,anchorHidden:e=>e?eu:null},ep={...ed,...er},ef=d.forwardRef(function(e,t){let{render:n,className:r,forceRender:o=!1,...i}=e,{store:a}=Z(),s=a.useState("open"),l=a.useState("nested"),u=a.useState("mounted");return H("div",e,{state:{open:s,transitionStatus:a.useState("transitionStatus")},ref:[a.context.backdropRef,t],stateAttributesMapping:ep,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},i],enabled:o||!l})});function em(e,t,n,r){let o=!1,i=!1,a=r??W;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...a}}e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
1inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],16162);var eh=e.i(16162),eh=eh;let eg=d.forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,nativeButton:i=!0,...a}=e,{store:s}=Z(),l=s.useState("open"),{getButtonProps:u,buttonRef:c}=L({disabled:o,native:i});return H("button",e,{state:{disabled:o},ref:[t,c],props:[{onClick:function(e){l&&s.setOpen(!1,em(eh.closePress,e.nativeEvent))}},a,u]})}),ev={...d},eb=0,ey=ev.useId;function ex(e,t){if(void 0!==ey){let n=ey();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,r]=d.useState(e),o=e||n;return d.useEffect(()=>{null==n&&(eb+=1,r(`${t}-${eb}`))},[n,t]),o}(e,t)}function eE(e){return ex(e,"base-ui")}let ew=d.forwardRef(function(e,t){let{render:n,className:r,id:o,...i}=e,{store:a}=Z(),s=eE(o);return a.useSyncedValueWithCleanup("descriptionElementId",s),H("p",e,{ref:t,props:[{id:s},i]})});var eS='input:not([inert]):not([inert] *),select:not([inert]):not([inert] *),textarea:not([inert]):not([inert] *),a[href]:not([inert]):not([inert] *),button:not([inert]):not([inert] *),[tabindex]:not(slot):not([inert]):not([inert] *),audio[controls]:not([inert]):not([inert] *),video[controls]:not([inert]):not([inert] *),[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *),details>summary:first-of-type:not([inert]):not([inert] *),details:not([inert]):not([inert] *)',ek="u"<typeof Element,eC=ek?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ej=!ek&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},eR=function(e,t){void 0===t&&(t=!0);var n,r=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):eR(e.parentNode))},eT=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},eI=function(e,t,n){if(eR(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(eS));return t&&eC.call(e,eS)&&r.unshift(e),r=r.filter(n)},eP=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!eR(i,!1))if("SLOT"===i.tagName){var a=i.assignedElements(),s=eP(a.length?a:i.children,!0,n);
1n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{eC.call(i,eS)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var l=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!eR(l,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(l&&u){var c=eP(!0===l?i.children:l.children,!0,n);n.flatten?r.push.apply(r,c):r.push({scopeParent:i,candidates:c})}else o.unshift.apply(o,i.children)}}return r},eN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},eO=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||eT(e))&&!eN(e)?0:e.tabIndex},eA=function(e,t){var n=eO(e);return n<0&&t&&!eN(e)?0:n},eM=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},eL=function(e){return"INPUT"===e.tagName},eD=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},eq=function(e){if(!e.name)return!0;var t,n=e.form||ej(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=eD(t,e.form);return!o||o===e},e_=function(e){return eL(e)&&"radio"===e.type&&!eq(e)},eF=function(e){var t,n,r,o,i,a,s,l=e&&ej(e),u=null==(t=l)?void 0:t.host,c=!1;if(l&&l!==e)for(c=!!(null!=(n=u)&&null!=(r=n.ownerDocument)&&r.contains(u)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!c&&u;)c=!!(null!=(a=u=null==(i=l=ej(u))?void 0:i.host)&&null!=(s=a.ownerDocument)&&s.contains(u));return c},eB=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},eU=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=eC.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eC.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return eB(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=ej(e);if(a&&!a.shadowRoot&&!0===r(a))return eB(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(eF(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ez=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!eC.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},eW=function(e,t){return!(t.disabled||eL(t)&&"hidden"===t.type||eU(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||ez(t))},eH=function(e,t){return!(e_(t)||0>eO(t))&&!!eW(e,t)},e$=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},eV=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,a=eA(i,o),s=o?eV(e.candidates):i;0===a?o?t.push.apply(t,s):t.push(i):n.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:s})}),n.sort(eM).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},eY=function(e,t){return eV((t=t||{}).getShadowRoot?eP([e],t.includeContainer,{filter:eH.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:e$}):eI(e,t.includeContainer,eH.bind(null,t)))},eK=function(e,t){return(t=t||{}).getShadowRoot?eP([e],t.includeContainer,{filter:eW.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):eI(e,t.includeContainer,eW.bind(null,t))},eG=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==eC.call(e,eS)&&eH(t,e)};function eQ(e){let t=b(eX,e).current;return t.next=e,k(t.effect),t}function eX(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let eJ=[];function eZ(e){d.useEffect(e,eJ)}class e0{static create(){return new e0}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function e1(){let e=b(e0.create).current;return eZ(e.disposeEffect),e}let e2="u">typeof navigator,e6=function(){if(!e2)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),e5=function(){if(!e2)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),e4=function(){if(!e2)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),e8="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),e3="MacIntel"===e6.platform&&e6.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(e6.platform);e2&&/firefox/i.test(e4);let e9=e2&&/apple/i.test(navigator.vendor);e2&&/Edg/i.test(e4);let e7=e2&&/android/i.test(e5)||/android/i.test(e4);e2&&e5.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;let te=e4.includes("jsdom/"),tt=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class tn{static create(){return new tn}static request(e){return tt.request(e)}static cancel(e){return tt.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=tt.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(tt.cancel(this.currentId),this.currentId=null)};
1disposeEffect=()=>this.cancel}function tr(){let e=b(tn.create).current;return eZ(e.disposeEffect),e}function to(e){return e?.ownerDocument||document}var ti=g;let ta={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},ts={...ta,position:"fixed",top:0,left:0};({...ta,position:"absolute"});let tl=d.forwardRef(function(e,t){let[n,r]=d.useState();return k(()=>{e9&&r("button")},[]),(0,c.jsx)("span",{...e,ref:t,style:ts,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})}),tu="data-base-ui-focusable",tc="active",td="selected";function tp(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function tf(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,g.isShadowRoot)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function tm(e){return"composedPath"in e?e.composedPath()[0]:e.target}function th(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function tg(e){return(0,g.isHTMLElement)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function tv(e){return!!e&&"combobox"===e.getAttribute("role")&&tg(e)}function tb(e){return e?e.hasAttribute(tu)?e:e.querySelector(`[${tu}]`)||e:null}function ty(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function tx(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}function tE(e,t,n=!0){return e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...tE(e,t.id,n)])}function tw(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}let tS=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function tk(e,t){let n=eY(e,tS()),r=n.length;if(0===r)return;let o=tp(to(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function tC(e){return tk(to(e).body,1)||e}function tj(e){return tk(to(e).body,-1)||e}function tR(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!tf(n,r)}function tT(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var eh=eh;function tI(e){return`data-base-ui-${e}`}let tP=0;function tN(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(tP);let i=()=>e?.focus({preventScroll:n});o?i():tP=requestAnimationFrame(i)}let tO={inert:new WeakMap,"aria-hidden":new WeakMap},tA="data-base-ui-inert",tM={inert:new WeakSet,"aria-hidden":new WeakSet},tL=new WeakMap,tD=0,tq=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,g.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),t_=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},tF=(e,t,n)=>{let r=[],o=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,g.getNodeName)(e)&&(t.has(e)?o(e):r.push(e))})};return o(e),r};function tB(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:o=!0,markerIgnoreElements:i=[]}=t,a=to(e[0]).body;return function(e,t,n,r,{mark:o=!0,markerIgnoreElements:i=[]}){let a=r?"inert":n?"aria-hidden":null,s=null,l=null,u=tq(t,e),c=new Set(o?tq(t,i):[]),d=o?tF(t,t_(u),new Set(u)).filter(e=>!c.has(e)):[],p=[],f=[];if(a){let e=tO[a],n=tM[a];l=n,s=e;let r=tq(t,Array.from(t.querySelectorAll("[aria-live]"))),o=u.concat(r);tF(t,t_(o),new Set(o)).forEach(t=>{let r=t.getAttribute(a),o=null!==r&&"false"!==r,i=(e.get(t)||0)+1;e.set(t,i),p.push(t),1===i&&o&&n.add(t),o||t.setAttribute(a,"inert"===a?"":"true")})}return o&&d.forEach(e=>{let t=(tL.get(e)||0)+1;tL.set(e,t),f.push(e),1===t&&e.setAttribute(tA,"")}),tD+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!l?.has(e)&&a&&e.removeAttribute(a),l?.delete(e))}
1),o&&f.forEach(e=>{let t=(tL.get(e)||0)-1;tL.set(e,t),t||e.removeAttribute(tA)}),(tD-=1)||(tO.inert=new WeakMap,tO["aria-hidden"]=new WeakMap,tM.inert=new WeakSet,tM["aria-hidden"]=new WeakSet,tL=new WeakMap)}}(e,a,n,r,{mark:o,markerIgnoreElements:i})}var tU=e.i(74080),eh=eh;let tz="data-base-ui-click-trigger",tW={clipPath:"inset(50%)",position:"fixed",top:0,left:0},tH=d.createContext(null),t$=tI("portal"),tV=d.forwardRef(function(e,t){let{children:n,container:r,className:o,render:i,renderGuards:a,...s}=e,{portalNode:l,portalSubtree:u}=function(e={}){let{ref:t,container:n,componentProps:r=W,elementProps:o}=e,i=ex(),a=d.useContext(tH),s=a?.portalNode,[l,u]=d.useState(null),[c,p]=d.useState(null),f=E(e=>{null!==e&&p(e)}),m=d.useRef(null);k(()=>{if(null===n){m.current&&(m.current=null,p(null),u(null));return}if(null==i)return;let e=(n&&((0,g.isNode)(n)?n:n.current))??s??document.body;if(null==e){m.current&&(m.current=null,p(null),u(null));return}m.current!==e&&(m.current=e,p(null),u(e))},[n,s,i]);let h=H("div",r,{ref:[t,f],props:[{id:i,[t$]:""},o]});return{portalNode:c,portalSubtree:l&&h?tU.createPortal(h,l):null}}({container:r,ref:t,componentProps:e,elementProps:s}),p=d.useRef(null),f=d.useRef(null),m=d.useRef(null),h=d.useRef(null),[v,b]=d.useState(null),y=v?.modal,x=v?.open,w="boolean"==typeof a?a:!!v&&!v.modal&&v.open&&!!l;d.useEffect(()=>{if(l&&!y)return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){l&&e.relatedTarget&&tR(e)&&("focusin"===e.type?tT:function(e){eY(e,tS()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(l)}},[l,y]),d.useEffect(()=>{l&&!x&&tT(l)},[x,l]);let S=d.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:f,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:b}),[l]);return(0,c.jsxs)(d.Fragment,{children:[u,(0,c.jsxs)(tH.Provider,{value:S,children:[w&&l&&(0,c.jsx)(tl,{"data-type":"outside",ref:p,onFocus:e=>{if(tR(e,l))m.current?.focus();else{let e=tj(v?v.domReference:null);e?.focus()}}}),w&&l&&(0,c.jsx)("span",{"aria-owns":l.id,style:tW}),l&&tU.createPortal(n,l),w&&l&&(0,c.jsx)(tl,{"data-type":"outside",ref:f,onFocus:e=>{if(tR(e,l))h.current?.focus();else{let t=tC(v?v.domReference:null);t?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,em(eh.focusOut,e.nativeEvent))}}})]})]})}),tY=d.createContext(null),tK=d.createContext(null),tG=()=>d.useContext(tY)?.id||null,tQ=e=>{let t=d.useContext(tK);return e??t};function tX(e){return null==e?e:"current"in e?e.current:e}let tJ=[];function tZ(){tJ=tJ.filter(e=>e.deref()?.isConnected)}function t0(){return tZ(),tJ[tJ.length-1]?.deref()}function t1(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=tS(),r=eK(e,n).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return eG(e,n)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||0===r.length?"0"!==o&&e.setAttribute("tabindex","0"):("-1"!==o||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function t2(e){let{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:i=!0,restoreFocus:a=!1,modal:s=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:p,previousFocusableElement:f,beforeContentFocusGuardRef:m,externalTree:h,getInsideElements:v}=e,b="rootStore"in t?t.rootStore:t,y=b.useState("open"),x=b.useState("domReferenceElement"),w=b.useState("floatingElement"),{events:S,dataRef:C}=b.context,j=E(()=>C.current.floatingContext?.nodeId),R=!1===o,T=tv(x)&&R,I=d.useRef(["content"]),P=eQ(o),N=eQ(i),O=eQ(u),A=tQ(h),M=d.useContext(tH),L=d.useRef(!1),D=d.useRef(!1),_=d.useRef(!1),F=d.useRef(-1),B=d.useRef(""),U=d.useRef(""),z=d.useRef(null),W=d.useRef(null),H=q(z,m,M?.beforeInsideRef),$=q(W,M?.afterInsideRef),V=e1(),Y=e1(),K=tr(),G=null!=M,Q=tb(w),X=E((e=Q)=>e?eY(e,tS()):[]),J=E(()=>v?.().filter(e=>null!=e)??[]),Z=E(e=>{let t=X(e);return I.current.map(()=>
1t).filter(Boolean).flat()});d.useEffect(()=>{if(r||!s)return;function e(e){"Tab"===e.key&&tf(Q,tp(to(Q)))&&0===X().length&&!T&&(e.preventDefault(),e.stopPropagation())}let t=to(Q);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,x,Q,s,I,T,X,Z]),d.useEffect(()=>{if(r||!y)return;let e=to(Q);function t(){_.current=!1}function n(e){let t=tm(e),n=J();_.current=!(tf(w,t)||tf(x,t)||tf(M?.portalNode,t)||n.some(e=>e===t||tf(e,t))),U.current=e.pointerType||"keyboard",t?.closest(`[${tz}]`)&&(D.current=!0)}function o(){U.current="keyboard"}return e.addEventListener("pointerdown",n,!0),e.addEventListener("pointerup",t,!0),e.addEventListener("pointercancel",t,!0),e.addEventListener("keydown",o,!0),()=>{e.removeEventListener("pointerdown",n,!0),e.removeEventListener("pointerup",t,!0),e.removeEventListener("pointercancel",t,!0),e.removeEventListener("keydown",o,!0)}},[r,w,x,Q,y,M,J]),d.useEffect(()=>{if(r||!l)return;let e=to(Q);function t(){D.current=!0,Y.start(0,()=>{D.current=!1})}function n(e){let t=tm(e),n=X().indexOf(t);-1!==n&&(F.current=n)}function o(t){let n=t.relatedTarget,r=t.currentTarget,o=tm(t);queueMicrotask(()=>{let i=j(),l=b.context.triggerElements,u=J(),c=n?.hasAttribute(tI("focus-guard"))&&[z.current,W.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,tX(f),tX(p)].includes(n),d=!(tf(x,n)||tf(w,n)||tf(n,w)||tf(M?.portalNode,n)||u.some(e=>e===n||tf(e,n))||null!=n&&l.hasElement(n)||l.hasMatchingElement(e=>tf(e,n))||c||A&&(tE(A.nodesRef.current,i).find(e=>tf(e.context?.elements.floating,n)||tf(e.context?.elements.domReference,n))||tw(A.nodesRef.current,i).find(e=>[e.context?.elements.floating,tb(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===x&&Q&&t1(Q,I),a&&r!==x&&!function(e){return!!e&&!!e.isConnected&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==(0,g.getComputedStyle)(e).display)}(o)&&tp(e)===e.body){if((0,g.isHTMLElement)(Q)&&(Q.focus(),"popup"===a))return void K.request(()=>{Q.focus()});let e=F.current,t=X(),n=t[e]||t[t.length-1]||Q;(0,g.isHTMLElement)(n)&&n.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}(T||!s)&&n&&d&&!D.current&&(T||n!==t0())&&(L.current=!0,b.setOpen(!1,em(eh.focusOut,t)))})}function i(){_.current||(C.current.insideReactTree=!0,V.start(0,()=>{C.current.insideReactTree=!1}))}let u=(0,g.isHTMLElement)(x)?x:null,c=[];if(w||u)return u&&(u.addEventListener("focusout",o),u.addEventListener("pointerdown",t),c.push(()=>{u.removeEventListener("focusout",o),u.removeEventListener("pointerdown",t)})),w&&(w.addEventListener("focusin",n),w.addEventListener("focusout",o),M&&(w.addEventListener("focusout",i,!0),c.push(()=>{w.removeEventListener("focusout",i,!0)})),c.push(()=>{w.removeEventListener("focusin",n),w.removeEventListener("focusout",o)})),()=>{c.forEach(e=>{e()})}},[r,x,w,Q,s,A,M,b,l,a,X,T,j,I,C,V,Y,K,p,f,J]),d.useEffect(()=>{if(r||!w||!y)return;let e=Array.from(M?.portalNode?.querySelectorAll(`[${tI("portal")}]`)||[]),t=A?tw(A.nodesRef.current,j()):[],n=t.find(e=>tv(e.context?.elements.domReference||null))?.context?.elements.domReference,o=tB([w,...e,z.current,W.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,...J(),n,tX(f),tX(p),T?x:null].filter(e=>null!=e),{ariaHidden:s||T,mark:!1}),i=tB([w,...e].filter(e=>null!=e));return()=>{i(),o()}},[y,r,x,w,s,I,M,T,A,j,p,f,J]),k(()=>{if(!y||r||!(0,g.isHTMLElement)(Q))return;let e=tp(to(Q));queueMicrotask(()=>{let t,n=Z(Q),r=P.current,o="function"==typeof r?r(O.current||""):r;void 0===o||!1===o||(t=(t=!0===o||null===o?n[0]||Q:tX(o))||n[0]||Q,tf(Q,e)||tN(t,{preventScroll:t===Q}))})},[r,y,Q,R,Z,P,O]),k(()=>{var e;if(r||!Q)return;let t=to(Q);function n(e){var t,n,r,o;let i;if(e.open||(t=e.nativeEvent,n=U.current,i=(0,ti.getWindow)(t.target),B.current=t instanceof i.KeyboardEvent?"keyboard":t instanceof i.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof i.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===eh.triggerHover&&"mouseleave"===e.nativeEvent.type&&(L.current=!0),e.reason===eh.outsidePress)if(e.nested)L.current=!1;
1else if((""===(r=e.nativeEvent).pointerType&&r.isTrusted?0:e7&&r.pointerType?"click"!==r.type||1!==r.buttons:0!==r.detail||r.pointerType)&&(o=e.nativeEvent,te?1:(e7||0!==o.width||0!==o.height)&&(!e7||1!==o.width||1!==o.height||0!==o.pressure||0!==o.detail||"mouse"!==o.pointerType)&&(!(o.width<1)||!(o.height<1)||0!==o.pressure||0!==o.detail||"touch"!==o.pointerType))){let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?L.current=!1:L.current=!0}else L.current=!1}return e=tp(t),tZ(),e&&"body"!==(0,g.getNodeName)(e)&&(tJ.push(new WeakRef(e)),tJ.length>20&&(tJ=tJ.slice(-20))),S.on("openchange",n),()=>{S.off("openchange",n);let e=tp(t),r=J(),o=tf(w,e)||r.some(t=>t===e||tf(t,e))||A&&tE(A.nodesRef.current,j(),!1).some(t=>tf(t.context?.elements.floating,e)),i=function(){let e=N.current,t="function"==typeof e?e(B.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=x||t0();return e&&e.isConnected?e:null}let n=x||t0();return tX(t)||n||null}();queueMicrotask(()=>{let n=function(e){if(!e)return null;let t=tS();return eG(e,t)?e:eY(e,t)[0]||e}(i),r="boolean"!=typeof N.current;N.current&&!L.current&&(0,g.isHTMLElement)(n)&&(r||n===e||e===t.body||o)&&n.focus({preventScroll:!0}),L.current=!1})}},[r,w,Q,N,C,S,A,x,j,J]),k(()=>{if(!e8||y||!w)return;let e=tp(to(w));(0,g.isHTMLElement)(e)&&tg(e)&&tf(w,e)&&e.blur()},[y,w]),k(()=>{if(!r&&M)return M.setFocusManagerState({modal:s,closeOnFocusOut:l,open:y,onOpenChange:b.setOpen,domReference:x}),()=>{M.setFocusManagerState(null)}},[r,M,s,y,b,l,x]),k(()=>{if(!r&&Q)return t1(Q,I),()=>{queueMicrotask(tZ)}},[r,Q,I]);let ee=!r&&(!s||!T)&&(G||s);return(0,c.jsxs)(d.Fragment,{children:[ee&&(0,c.jsx)(tl,{"data-type":"inside",ref:H,onFocus:e=>{if(s){let e=Z();tN(e[e.length-1])}else if(M?.portalNode)if(L.current=!1,tR(e,M.portalNode)){let e=tC(x);e?.focus()}else tX(f??M.beforeOutsideRef)?.focus()}}),n,ee&&(0,c.jsx)(tl,{"data-type":"inside",ref:$,onFocus:e=>{if(s)tN(Z()[0]);else if(M?.portalNode)if(l&&(L.current=!0),tR(e,M.portalNode)){let e=tj(x);e?.focus()}else tX(p??M.afterOutsideRef)?.focus()}})]})}let t6=((s={}).nestedDialogs="--nested-dialogs",s),t5=((l={})[l.open=eo.open]="open",l[l.closed=eo.closed]="closed",l[l.startingStyle=eo.startingStyle]="startingStyle",l[l.endingStyle=eo.endingStyle]="endingStyle",l.nested="data-nested",l.nestedDialogOpen="data-nested-dialog-open",l),t4=d.createContext(void 0);function t8(){let e=d.useContext(t4);if(void 0===e)throw Error(A(26));return e}function t3(e){let{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=E(o),a=function(e,t=!1,n=!0){let r=tr();return E((o,i=null)=>{function a(){tU.flushSync(o)}r.cancel();let s=tX(e);if(null!=s)if("function"!=typeof s.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||a()}).catch(()=>{let e=s.getAnimations();if(n){if(i?.aborted)return;a()}else e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&l()})}if(t)return void function(){let e=ee.startingStyle;if(!s.hasAttribute(e))return r.request(l);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}();r.request(l)}})}(r,n,!1);d.useEffect(()=>{if(!t)return;let e=new AbortController;return a(i,e.signal),()=>{e.abort()}},[t,n,i,a])}let t9="ArrowUp",t7="ArrowDown",ne="ArrowLeft",nt="ArrowRight";[...new Set([...new Set([ne,nt]),...new Set([t9,t7])])];let nn=new Set([t9,t7,ne,nt,"Home","End"]),nr={...ed,...er,nestedDialogOpen:e=>e?{[t5.nestedDialogOpen]:""}:null},no=d.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:o,render:i,...a}=e,{store:s}=Z(),l=s.useState("descriptionElementId"),u=s.useState("disablePointerDismissal"),d=s.useState("floatingRootContext"),p=s.useState("popupProps"),f=s.useState("modal"),m=s.useState("mounted"),h=s.useState("nested"),g=s.useState("nestedOpenDialogCount"),v=s.useState("open"),b=s.useState("openMethod"),y=s.useState("titleElementId"),x=s.useState("transitionStatus"),E=s.useState("role");t8(),t3({open:v,ref:s.context.popupRef,onComplete(){v&&s.context.onOpenChangeComplete?.(!0)}});let w=void 0===o?function(e){return"touch"!==e||s.context.popupRef.current}:o,S=H("div",e,{state:{open:v,nested:h,transitionStatus:x,nestedDialogOpen:g>0},props:[p,{"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:E,tabIndex:-1,hidden:!m,onKeyDown(e){nn.has(e.key)&&e.stopPropagation()},style:{[t6.nestedDialogs]:g}},a],ref:[t,s.context.popupRef,s.useStateSetter("popupElement")],stateAttributesMapping:nr});return(0,c.jsx)(t2,{context:d,openInteractionType:b,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:r,modal:!1!==f,restoreFocus:"popup",children:S})}),ni=d.forwardRef(function(e,t){let n,{cutout:r,...o}=e;if(r){let e=r?.getBoundingClientRect();n=`polygon(
2      0% 0%,
3      100% 0%,
4      100% 100%,
5      0% 100%,
6      0% 0%,
7      ${e.left}px ${e.top}px,
8      ${e.left}px ${e.bottom}px,
9      ${e.right}px ${e.bottom}px,
10      ${e.right}px ${e.top}px,
11      ${e.left}px ${e.top}px
12    )`}return(0,c.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})}),na=d.forwardRef(function(e,t){var n;let{keepMounted:r=!1,...o}=e,{store:i}=Z(),a=i.useState("mounted"),s=i.useState("modal"),l=i.useState("open");return a||r?(0,c.jsx)(t4.Provider,{value:r,children:(0,c.jsxs)(tV,{ref:t,...o,children:[a&&!0===s&&(0,c.jsx)(ni,{ref:i.context.
12internalBackdropRef,inert:(n=!l,B>=19?n:n?"true":void 0)}),e.children]})}):null});var ti=g;let ns={},nl={},nu="";class nc{lockCount=0;restore=null;timeoutLock=e0.create();timeoutUnlock=e0.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n,r,o,i;if(0===this.lockCount||null!==this.restore)return;let a=to(e).documentElement,s=(0,ti.getWindow)(a).getComputedStyle(a).overflowY;if("hidden"===s||"clip"===s){this.restore=z;return}let l=e3||!function(e){if("u"<typeof document)return!1;let t=to(e);return(0,ti.getWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=l?(n=(t=to(e)).documentElement,r=t.body,i={overflowY:(o=(0,g.isOverflowElement)(n)?n:r).style.overflowY,overflowX:o.style.overflowX},Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,i)}):function(e){let t=to(e),n=t.documentElement,r=t.body,o=(0,ti.getWindow)(n),i=0,a=0,s=!1,l=tn.create();if(e8&&(o.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=o.getComputedStyle(n),l=o.getComputedStyle(r),u=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,a=n.scrollLeft,ns={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},nu=n.style.scrollBehavior,nl={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let c=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,p="scroll"===t.overflowY||"scroll"===l.overflowY,f="scroll"===t.overflowX||"scroll"===l.overflowX,m=Math.max(0,o.innerWidth-r.clientWidth),h=Math.max(0,o.innerHeight-r.clientHeight),v=parseFloat(l.marginTop)+parseFloat(l.marginBottom),b=parseFloat(l.marginLeft)+parseFloat(l.marginRight),y=(0,g.isOverflowElement)(n)?n:r;if(s=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=to(e),n=t.documentElement,r=t.body,o=(0,g.isOverflowElement)(n)?n:r,i=o.style.overflowY,a=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",o.style.overflowY="scroll";let s=o.offsetWidth;o.style.overflowY="hidden";let l=o.offsetWidth;return o.style.overflowY=i,n.style.scrollbarGutter=a,s===l}(e)){n.style.scrollbarGutter=u,y.style.overflowY="hidden",y.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:u,overflowY:"hidden",overflowX:"hidden"}),(c||p)&&(n.style.overflowY="scroll"),(d||f)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:v||h?`calc(100dvh - ${v+h}px)`:"100dvh",width:b||m?`calc(100vw - ${b+m}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,ns),Object.assign(r.style,nl),s||(n.scrollTop=i,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=nu)}function d(){c(),l.request(u)}return u(),o.addEventListener("resize",d),()=>{l.cancel(),c(),"function"==typeof o.removeEventListener&&o.removeEventListener("resize",d)}}(e)}}let nd=new nc;var eh=eh;let np={intentional:"onClick",sloppy:"onPointerDown"};function nf(){return!1}function nm(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),o=e.map(e=>e?.trigger),i=d.useCallback(t=>nh(t,e,"reference"),t),a=d.useCallback(t=>nh(t,e,"floating"),n),s=d.useCallback(t=>nh(t,e,"item"),r),l=d.useCallback(t=>nh(t,e,"trigger"),o);return d.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s,getTriggerProps:l}),[i,a,s,l])}function nh(e,t,n){let r=new Map,o="item"===n,i={};for(let t in"floating"===n&&(i.tabIndex=-1,i[tu]=""),e)o&&e&&(t===tc||t===td)||(i[t]=e[t]);for(let a=0;a<t.length;a+=1){let s,l=t[a]?.[n];(s="function"==typeof l?e?l(e):null:l)&&ng(i,s,o,r)}return ng(i,e,o,r),i}function ng(e,t,n,r){for(let o in t){let i=t[o];n&&(o===tc||o===td)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),"function"==typeof i&&(r.get(o)?.push(i),e[o]=(...e)=>r.get(o)?.map(t=>t(...e)).find(e=>void 0!==e))):e[o]=i)}}let nv=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);var nb=Symbol("NOT_FOUND"),ny=e=>Array.isArray(e)?e:[e],nx=0,nE=class{revision=nx;_value;
12_lastValue;_isEqual=nw;constructor(e,t=nw){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++nx)}};function nw(e,t){return e===t}function nS(e){return e instanceof nE||console.warn("Not a valid cell! ",e),e.value}var nk=(e,t)=>!1;function nC(){return function(e=nw){return new nE(null,e)}(nk)}var nj=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=nC()),nS(t)};Symbol();var nR=0,nT=Object.getPrototypeOf({}),nI=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,nP);tag=nC();tags={};children={};collectionTag=null;id=nR++},nP={get:(e,t)=>(function(){let{value:n}=e,r=Reflect.get(n,t);if("symbol"==typeof t||t in nT)return r;if("object"==typeof r&&null!==r){var o;let n=e.children[t];return void 0===n&&(n=e.children[t]=Array.isArray(o=r)?new nN(o):new nI(o)),n.tag&&nS(n.tag),n.proxy}{let n=e.tags[t];return void 0===n&&((n=e.tags[t]=nC()).value=r),nS(n),r}})(),ownKeys:e=>(nj(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},nN=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],nO);tag=nC();tags={};children={};collectionTag=null;id=nR++},nO={get:([e],t)=>("length"===t&&nj(e),nP.get(e,t)),ownKeys:([e])=>nP.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>nP.getOwnPropertyDescriptor(e,t),has:([e],t)=>nP.has(e,t)},nA=(e,t)=>e===t,nM="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function nL(){return{s:0,v:void 0,o:null,p:null}}function nD(e,t={}){let n,r=nL(),{resultEqualityCheck:o}=t,i=0;function a(){let t,a=r,{length:s}=arguments;for(let e=0;e<s;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);let n=e.get(t);void 0===n?(a=nL(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);let n=e.get(t);void 0===n?(a=nL(),e.set(t,a)):a=n}}let l=a;if(1===a.s)t=a.v;else if(t=e.apply(null,arguments),i++,o){let e=n?.deref?.()??n;null!=e&&o(e,t)&&(t=e,0!==i&&i--),n="object"==typeof t&&null!==t||"function"==typeof t?new nM(t):t}return l.s=1,l.v=t,t}return a.clearCache=()=>{r=nL(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function nq(e,...t){let n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r,o=0,i=0,a={},s=e.pop();"object"==typeof s&&(a=s,s=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let{memoize:l,memoizeOptions:u=[],argsMemoize:c=nD,argsMemoizeOptions:d=[],devModeChecks:p={}}={...n,...a},f=ny(u),m=ny(d),h=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${n}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),g=l(function(){return o++,s.apply(null,arguments)},...f);return Object.assign(c(function(){i++;let e=function(e,t){let n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(h,arguments);return r=g.apply(null,e)},...m),{resultFunc:s,memoizedResultFunc:g,dependencies:h,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>r,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var n_=nq(nD),nF=Object.assign((e,t=n_)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>nF});nq({memoize:function(e,t){let n,{equalityCheck:r=nA,maxSize:o=1,resultEqualityCheck:i}="object"==typeof t?t:{equalityCheck:t},a=function(e,t){if(null===e||null===t||e.length!==t.length)return!1;let{length:n}=e;for(let o=0;o<n;o++)if(!r(e[o],t[o]))return!1;return!0},s=0,l=o<=1?{get:e=>n&&a(n.key,e)?n.value:nb,put(e,t){n={key:e,value:t}},getEntries:()=>n?[n]:[],clear(){n=void 0}}:function(e,t){let n=[];function r(e){let r=n.findIndex(n=>t(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return nb}return{get:r,put:function(t,o){r(t)===nb&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,a);function u(){let t=l.get(arguments);if(t===nb){if(t=e.apply(null,arguments),s++,i){let e=l.getEntries().find(e=>i(e.value,t));e&&(t=e.value,0!==s&&s--)}l.put(arguments,t)}return t}return u.clearCache=()=>{l.clear(),u.resetResultsCount()},u.resultsCount=()=>s,u.resetResultsCount=()=>{s=0},u},memoizeOptions:{maxSize:1,equalityCheck:Object.is}});let nB=(e,t,n,r,o,i,...a)=>{let s;if(a.length>0)throw Error(A(1));if(e&&t&&n&&r&&o&&i)s=(a,s,l,u)=>i(e(a,s,l,u),t(a,s,l,u),n(a,s,l,u),r(a,s,l,u),o(a,s,l,u),s,l,u);else if(e&&t&&n&&r&&o)s=(i,a,s,l)=>o(e(i,a,s,l),t(i,a,s,l),n(i,a,s,l),r(i,a,s,l),a,s,l);else if(e&&t&&n&&r)s=(o,i,a,s)=>r(e(o,i,a,s),t(o,i,a,s),n(o,i,a,s),i,a,s);else if(e&&t&&n)s=(r,o,i,a)=>n(e(r,o,i,a),t(r,o,i,a),o,i,a);else if(e&&t)s=(n,r,o,i)=>t(e(n,r,o,i),r,o,i);else if(e)s=e;else throw Error("Missing arguments");return s};var nU=e.i(2239),nz=e.i(30224);let nW=B>=19?function(e,t,n,o,i){let a;if(!r){let r;return r=d.useCallback(()=>t(e.getSnapshot(),n,o,i),[e,t,n,o,i]),(0,nU.useSyncExternalStore)(e.subscribe,r,r)}let s=r.syncIndex;return r.syncIndex+=1,r.didInitialize?(a=r.syncHooks[s]).store===e&&a.selector===t&&Object.is(a.a1,n)&&Object.is(a.a2,o)&&Object.is(a.a3,i)||(a.store!==e&&(r.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=i,a.didChange=!0):(a={store:e,selector:t,a1:n,a2:o,a3:i,value:t(e.getSnapshot(),n,o,i),didChange:!1},r.syncHooks.push(a)),a.value}:function(e,t,n,r,o){return(0,nz.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,o))&&(t=!0,r.value=o,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,nU.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});
12class nH{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return nW(this,e,t,n,r)}}class n$ extends nH{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){d.useDebugValue(e),k(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;k(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;k(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){d.useDebugValue(e);let n=void 0!==t;k(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return d.useDebugValue(e),nW(this,this.selectors[e],t,n,r)}useContextCallback(e,t){d.useDebugValue(e);let n=E(t??z);this.context[e]=n}useStateSetter(e){let t=d.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let o=n(e);if(!Object.is(r,o)){let e=r;r=o,t(o,e,this)}})}}let nV={open:nB(e=>e.open),domReferenceElement:nB(e=>e.domReferenceElement),referenceElement:nB(e=>e.positionReference??e.referenceElement),floatingElement:nB(e=>e.floatingElement),floatingId:nB(e=>e.floatingId)};class nY extends n${constructor(e){const{nested:t,noEmit:n,onOpenChange:r,triggerElements:o,...i}=e;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:t,noEmit:n,triggerElements:o},nV)}setOpen=(e,t)=>{if((!e||!this.state.open||tx(t.event))&&(this.context.dataRef.current.openEvent=e?t.event:void 0),!this.context.noEmit){let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)}this.context.onOpenChange?.(e,t)}}var eh=eh;class nK{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}let nG=nB(e=>e.triggerIdProp??e.activeTriggerId),nQ={...{open:nB(e=>e.openProp??e.open),mounted:nB(e=>e.mounted),transitionStatus:nB(e=>e.transitionStatus),floatingRootContext:nB(e=>e.floatingRootContext),preventUnmountingOnClose:nB(e=>e.preventUnmountingOnClose),payload:nB(e=>e.payload),activeTriggerId:nG,activeTriggerElement:nB(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:nB((e,t)=>void 0!==t&&nG(e)===t),isOpenedByTrigger:nB((e,t)=>void 0!==t&&nG(e)===t&&e.open),isMountedByTrigger:nB((e,t)=>void 0!==t&&nG(e)===t&&e.mounted),triggerProps:nB((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:nB(e=>e.popupProps),popupElement:nB(e=>e.popupElement),positionerElement:nB(e=>e.positionerElement)},modal:nB(e=>e.modal),nested:nB(e=>e.nested),nestedOpenDialogCount:nB(e=>e.nestedOpenDialogCount),disablePointerDismissal:nB(e=>e.disablePointerDismissal),openMethod:nB(e=>e.openMethod),descriptionElementId:nB(e=>e.descriptionElementId),titleElementId:nB(e=>e.titleElementId),viewportElement:nB(e=>e.viewportElement),role:nB(e=>e.role)};
12class nX extends n${constructor(e){super(function(e={}){return{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:new nY({open:!1,floatingElement:null,referenceElement:null,triggerElements:new nK,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0}),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:W,inactiveTriggerProps:W,popupProps:W},modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}(e),{popupRef:d.createRef(),backdropRef:d.createRef(),internalBackdropRef:d.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new nK,onOpenChange:void 0,onOpenChangeComplete:void 0},nQ)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",n);let r={open:e},o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)}}let nJ=((u={})[u.open=eo.open]="open",u[u.closed=eo.closed]="closed",u[u.startingStyle=eo.startingStyle]="startingStyle",u[u.endingStyle=eo.endingStyle]="endingStyle",u.nested="data-nested",u.nestedDialogOpen="data-nested-dialog-open",u),nZ={...ed,...er,nested:e=>e?{[nJ.nested]:""}:null,nestedDialogOpen:e=>e?{[nJ.nestedDialogOpen]:""}:null},n0=d.forwardRef(function(e,t){let{className:n,render:r,children:o,...i}=e,a=t8(),{store:s}=Z(),l=s.useState("open"),u=s.useState("nested"),c=s.useState("transitionStatus"),d=s.useState("nestedOpenDialogCount"),p=s.useState("mounted");return H("div",e,{enabled:a||p,state:{open:l,nested:u,transitionStatus:c,nestedDialogOpen:d>0},ref:[t,s.useStateSetter("viewportElement")],stateAttributesMapping:nZ,props:[{role:"presentation",hidden:!p,style:{pointerEvents:l?void 0:"none"},children:o},i]})}),n1=d.forwardRef(function(e,t){let{render:n,className:r,id:o,...i}=e,{store:a}=Z(),s=eE(o);return a.useSyncedValueWithCleanup("titleElementId",s),H("h2",e,{ref:t,props:[{id:s},i]})});var eh=eh;let n2=d.forwardRef(function(e,t){var n;let r,o,i,a,s,{render:l,className:u,disabled:c=!1,nativeButton:p=!0,id:f,payload:m,handle:h,...g}=e,v=Z(!0),b=h?.store??v?.store;if(!b)throw Error(A(79));let y=eE(f),x=b.useState("floatingRootContext"),w=b.useState("isOpenedByTrigger",y),S=d.useRef(null),{registerTrigger:C,isMountedByThisTrigger:j}=(n={payload:m},r=b.useState("isMountedByTrigger",y),o=d.useRef(null),i=d.useRef(null),a=d.useCallback(e=>{if(void 0!==y){if(null!==o.current){let e=o.current,t=i.current,n=b.context.triggerElements.getById(e);t&&n===t&&b.context.triggerElements.delete(e),o.current=null,i.current=null}null!==e&&(o.current=y,i.current=e,b.context.triggerElements.add(y,e))}},[b,y]),s=E(e=>{if(a(e),!e||!b.select("open"))return;let t=b.select("activeTriggerId");t===y?b.update({activeTriggerElement:e,...n}):null==t&&b.update({activeTriggerId:y,activeTriggerElement:e,...n})}),k(()=>{r&&b.update({activeTriggerElement:S.current,...n})},[r,b,S,...Object.values(n)]),{registerTrigger:s,isMountedByThisTrigger:r}),{getButtonProps:R,buttonRef:T}=L({disabled:c,native:p}),I=nm([function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:o=!0,event:i="click",toggle:a=!0,ignoreMouse:s=!1,stickIfOpen:l=!0,touchOpenDelay:u=0,reason:c=eh.triggerPress}=t,p=d.useRef(void 0),f=tr(),m=e1(),h=d.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){let t=p.current,o=e.nativeEvent,d=n.select("open");if(0!==e.button||"click"===i||ty(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,v=n.select("domReferenceElement")!==e.currentTarget,b=d&&v||!(d&&a&&(!h||!l||"click"===g||"mousedown"===g));if(tg(o.target)){let e=em(c,o,o.target);b&&"touch"===t&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(b,e);return}let y=e.currentTarget;f.request(()=>{let e=em(c,o,y);b&&"touch"===t&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(b,e)})},onClick(e){if("mousedown-only"===i)return;let t=p.current;if("mousedown"===i&&t){p.current=void 0;return}if(ty(t,!0)&&s)return;let o=n.select("open"),d=r.current.openEvent,f=n.select("domReferenceElement")!==e.currentTarget,h=o&&f||!(o&&a&&(!d||
12!l||tx(d))),g=em(c,e.nativeEvent,e.currentTarget);h&&"touch"===t&&u>0?m.start(u,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){p.current=void 0}}),[r,i,s,n,l,a,f,m,u,c]);return d.useMemo(()=>o?{reference:h}:W,[o,h])}(x,{enabled:null!=x})]),P=b.useState("triggerProps",j);return H("button",e,{state:{disabled:c,open:w},ref:[T,t,C,S],props:[I.getReferenceProps(),P,{[tz]:"",id:y},g,R],stateAttributesMapping:ec})});var eh=eh;class n6{constructor(e){this.store=e??new nX}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,em(eh.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,em(eh.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,em(eh.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Backdrop",0,ef,"Close",0,eg,"Description",0,ew,"Handle",0,n6,"Popup",0,no,"Portal",0,na,"Root",0,function(e){let t,{children:n,open:r,defaultOpen:o=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:s=!1,modal:l=!0,actionsRef:u,handle:p,triggerId:f,defaultTriggerId:m=null}=e,h=Z(!0),v=!!h,y=b(()=>p?.store??new nX({open:o,openProp:r,activeTriggerId:m,triggerIdProp:f,modal:l,disablePointerDismissal:s,nested:v})).current;(t=d.useRef(!0)).current&&(t.current=!1,(()=>{void 0===r&&!1===y.state.open&&!0===o&&y.update({open:!0,activeTriggerId:m})})()),y.useControlledProp("openProp",r),y.useControlledProp("triggerIdProp",f),y.useSyncedValues({disablePointerDismissal:s,nested:v,modal:l}),y.useContextCallback("onOpenChange",i),y.useContextCallback("onOpenChangeComplete",a);let x=y.useState("payload");!function(e){let t,{store:n,parentContext:r,actionsRef:o}=e,i=n.useState("open"),a=n.useState("disablePointerDismissal"),s=n.useState("modal"),l=n.useState("popupElement"),{openMethod:u,triggerProps:c}=function(e){let t,n,r,o,[i,a]=d.useState(null),s=E((t,n)=>{e||a(n||(e3?"touch":""))});t=d.useRef(e),k(()=>{t.current!==e&&n(t.current)},[e,n=E(t=>{t&&!e&&a(null)})]),k(()=>{t.current=e},[e]);let{onClick:l,onPointerDown:u}=(r=d.useRef(""),o=d.useCallback(e=>{e.defaultPrevented||(r.current=e.pointerType,s(e,e.pointerType))},[s]),{onClick:d.useCallback(e=>{0===e.detail?s(e,"keyboard"):(s(e,"pointerType"in e?e.pointerType:r.current),r.current="")},[s]),onPointerDown:o});return d.useMemo(()=>({openMethod:i,triggerProps:{onClick:l,onPointerDown:u}}),[i,l,u])}(i);k(()=>{if(t&&!n.select("activeTriggerId")&&1===n.context.triggerElements.size){let e=n.context.triggerElements.entries().next();if(!e.done){let[t,r]=e.value;n.update({activeTriggerId:t,activeTriggerElement:r})}}},[t=n.useState("open"),n]);let{forceUnmount:p}=function(e,t){let{mounted:n,setMounted:r,transitionStatus:o}=function(e,t=!1,n=!1){let[r,o]=d.useState(e&&t?"idle":void 0),[i,a]=d.useState(e);return e&&!i&&(a(!0),o("starting")),e||!i||"ending"===r||n||o("ending"),e||i||"ending"!==r||o(void 0),k(()=>{if(!e&&i&&"ending"!==r&&n){let e=tn.request(()=>{o("ending")});return()=>{tn.cancel(e)}}},[e,i,r,n]),k(()=>{if(!e||t)return;let n=tn.request(()=>{o(void 0)});return()=>{tn.cancel(n)}},[t,e]),k(()=>{if(!e||!t)return;e&&i&&"idle"!==r&&o("starting");let n=tn.request(()=>{o("idle")});return()=>{tn.cancel(n)}},[t,e,i,o,r]),d.useMemo(()=>({mounted:i,setMounted:a,transitionStatus:r}),[i,r])}(e);t.useSyncedValues({mounted:n,transitionStatus:o});let i=E(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)});return t3({enabled:!t.useState("preventUnmountingOnClose"),open:e,ref:t.context.popupRef,onComplete(){e||i()}}),{forceUnmount:i,transitionStatus:o}}(i,n),f=E(e=>{let t=em(e);return t.preventUnmountOnClose=()=>{n.set("preventUnmountingOnClose",!0)},t}),m=d.useCallback(()=>{n.setOpen(!1,f(eh.imperativeAction))},[n,f]);d.useImperativeHandle(o,()=>({unmount:p,close:m}),[p,m]);let h=function(e){let{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=ex(),a=null!=tG(),s=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(r?"popupElement":"positionerElement"),c=t.context.triggerElements,d=b(()=>new nY({open:s,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:o,floatingId:i,nested:a,noEmit:n})).current;return k(()=>{let e={open:s,floatingId:i,referenceElement:l,floatingElement:u};(0,g.isElement)(l)&&(e.domReferenceElement=l),d.state.positionReference===d.state.referenceElement&&(e.positionReference=l),d.update(e)},[s,i,l,u,d]),d.context.onOpenChange=o,d.context.nested=a,d.context.noEmit=n,d}({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}
12),[v,y]=d.useState(0),x=0===v,w=function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),i=n.useState("domReferenceElement"),a=n.useState("floatingElement"),{role:s="dialog"}=t,l=ex(),u=i?.id||l,c=d.useMemo(()=>tb(a)?.id||o,[a,o]),p=nv.get(s)??s,f=null!=tG(),m=d.useMemo(()=>"tooltip"===p||"label"===s?W:{"aria-haspopup":"alertdialog"===p?"dialog":p,"aria-expanded":"false",..."listbox"===p&&{role:"combobox"},..."menu"===p&&f&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[p,f,s]),h=d.useMemo(()=>"tooltip"===p||"label"===s?{[`aria-${"label"===s?"labelledby":"describedby"}`]:r?c:void 0}:{...m,"aria-expanded":r?"true":"false","aria-controls":r?c:void 0,..."menu"===p&&{id:u}},[p,c,r,u,s,m]),g=d.useMemo(()=>{let e={id:c,...p&&{role:p}};return"tooltip"===p||"label"===s?e:{...e,..."menu"===p&&{"aria-labelledby":u}}},[p,c,u,s]),v=d.useCallback(({active:e,selected:t})=>{let n={role:"option",...e&&{id:`${c}-fui-option`}};switch(s){case"select":case"combobox":return{...n,"aria-selected":t}}return{}},[c,s]);return d.useMemo(()=>({reference:h,floating:g,item:v,trigger:m}),[h,g,m,v])}(h),S=function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),{dataRef:i}=n.context,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="sloppy",referencePress:c=nf,referencePressEvent:p="sloppy",bubbles:f,externalTree:m}=t,h=tQ(m),v=E("function"==typeof l?l:()=>!1),b="function"==typeof l?v:l,y=!1!==b,x=E(()=>u),w=d.useRef(!1),S=d.useRef(!1),k=d.useRef(!1),{escapeKey:C,outsidePress:j}={escapeKey:"boolean"==typeof f?f:f?.escapeKey??!1,outsidePress:"boolean"==typeof f?f:f?.outsidePress??!0},R=d.useRef(null),T=e1(),I=e1(),P=E(()=>{I.clear(),i.current.insideReactTree=!1}),N=d.useRef(!1),O=d.useRef(""),A=E(c),M=E(e=>{if(!r||!a||!s||"Escape"!==e.key||N.current)return;let t=i.current.floatingContext?.nodeId,o=h?tE(h.nodesRef.current,t):[];if(!C&&o.length>0){let e=!0;if(o.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let l="nativeEvent"in e?e.nativeEvent:e,u=em(eh.escapeKey,l);n.setOpen(!1,u),C||u.isPropagationAllowed||e.stopPropagation()}),L=E(()=>{i.current.insideReactTree=!0,I.start(0,P)});d.useEffect(()=>{if(!r||!a)return;i.current.__escapeKeyBubbles=C,i.current.__outsidePressBubbles=j;let e=new e0,t=new e0;function l(){e.clear(),N.current=!0}function u(){e.start(5*!!(0,g.isWebKit)(),()=>{N.current=!1})}function c(){k.current=!0,t.start(0,()=>{k.current=!1})}function d(){w.current=!1,S.current=!1}function p(){let e=O.current,t=x(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function f(e){let t=i.current.floatingContext?.nodeId,r=h&&tE(h.nodesRef.current,t).some(t=>th(e,t.context?.elements.floating));return th(e,n.select("floatingElement"))||th(e,n.select("domReferenceElement"))||r}function m(e){let r;if("intentional"===(r=p())&&"click"!==e.type||"sloppy"===r&&"click"===e.type||i.current.insideReactTree)return void P();let o=tm(e),a=`[${tI("inert")}]`,s=Array.from(to(n.select("floatingElement")).querySelectorAll(a)),l=(0,g.isElement)(o)?o.getRootNode():null;(0,g.isShadowRoot)(l)&&(s=s.concat(Array.from(l.querySelectorAll(a))));let u=n.context.triggerElements;if(o&&(u.hasElement(o)||u.hasMatchingElement(e=>tf(e,o))))return;let c=(0,g.isElement)(o)?o:null;for(;c&&!(0,g.isLastTraversableNode)(c);){let e=(0,g.getParentNode)(c);if((0,g.isLastTraversableNode)(e)||!(0,g.isElement)(e))break;c=e}if(s.length&&(0,g.isElement)(o)&&!o.matches("html,body")&&!tf(o,n.select("floatingElement"))&&s.every(e=>!tf(c,e)))return;if((0,g.isHTMLElement)(o)&&!("touches"in e)){let t=(0,g.isLastTraversableNode)(o),n=(0,g.getComputedStyle)(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,l=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,u="rtl"===n.direction,c=l&&(u?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(c||d)return}if(f(e))return;if("intentional"===p()&&k.current){t.clear(),k.current=!1;return}if("function"==typeof b&&!b(e))return;let d=i.current.floatingContext?.nodeId,m=h?tE(h.nodesRef.current,d):[];if(m.length>0){let e=!0;if(m.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,em(eh.outsidePress,e)),P()}function v(e){O.current="touch";let t=tm(e);t?.addEventListener(e.type,function r(){!function(e){if("sloppy"!==p()||!n.select("open")||!a||th(e,n.select("floatingElement"))||th(e,n.select("domReferenceElement")))return;let t=e.touches[0];t&&(R.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},T.start(1e3,()=>{R.current&&(R.current.dismissOnTouchEnd=!1,R.current.dismissOnMouseDown=!1)}))}(e),t?.removeEventListener(e.type,r)})}function E(e){if(T.clear(),"pointerdown"===e.type&&(O.current=e.pointerType),"mousedown"===e.type&&R.current&&!R.current.dismissOnMouseDown)return;let t=tm(e);t?.addEventListener(e.type,function r(){if("pointerdown"===e.type)"sloppy"!==p()||"touch"===e.pointerType||!n.select("open")||!a||th(e,n.select("floatingElement"))||th(e,n.select("domReferenceElement"))||m(e);else m(e);t?.removeEventListener(e.type,r)})}function I(e){if(!w.current)return;let n=S.current;if(d(),"intentional"===p()){if("pointercancel"===e.type){n&&c();return}f(e)||(n?c():("function"!=typeof b||b(e))&&(t.clear(),k.current=!0,P()))}}function A(e){let t=tm(e);t?.addEventListener(e.type,function r(){!function(e){if("sloppy"!==p()||!R.current||th(e,n.select("floatingElement"))||th(e,n.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-R.current.startX),o=Math.abs(t.clientY-R.current.startY),i=Math.sqrt(r*r+o*o);i>5&&(R.current.dismissOnTouchEnd=!0),i>10&&(m(e),T.clear(),R.current=null)}(e),t?.removeEventListener(e.type,r)})}function L(e){let t=tm(e);t?.addEventListener(e.type,function r(){"sloppy"!==p()||!R.current||th(e,n.select("floatingElement"))||th(e,n.select("domReferenceElement"))||(R.current.dismissOnTouchEnd&&m(e),T.clear(),R.current=null),t?.removeEventListener(e.type,r)})}let D=to(o);return s&&(D.addEventListener("keydown",M),D.addEventListener("compositionstart",l),D.addEventListener("compositionend",u)),y&&(D.addEventListener("click",E,!0),D.addEventListener("pointerdown",E,!0),D.addEventListener("pointerup",I,!0),D.addEventListener("pointercancel",I,!0),D.addEventListener("mousedown",E,!0),D.addEventListener("mouseup",I,!0),D.addEventListener("touchstart",v,!0),D.addEventListener("touchmove",A,!0),D.addEventListener("touchend",L,!0)),()=>{s&&(D.removeEventListener("keydown",M),D.removeEventListener("compositionstart",l),D.removeEventListener("compositionend",u)),y&&(D.removeEventListener("click",E,!0),D.removeEventListener("pointerdown",E,!0),D.removeEventListener("pointerup",I,!0),D.removeEventListener("pointercancel",I,!0),D.removeEventListener("mousedown",E,!0),D.removeEventListener("mouseup",I,!0),D.removeEventListener("touchstart",v,!0),D.removeEventListener("touchmove",A,!0),D.removeEventListener("touchend",L,!0)),e.clear(),t.clear(),d(),k.current=!1}},[i,o,s,y,b,r,a,C,j,M,P,x,h,n,T]),d.useEffect(P,[b,P]);let D=d.useMemo(()=>({onKeyDown:M,[np[p]]:e=>{A()&&n.setOpen(!1,em(eh.triggerPress,e.nativeEvent))},..."intentional"!==p&&{onClick(e){A()&&n.setOpen(!1,em(eh.triggerPress,e.nativeEvent))}}}),[M,n,p,A]),q=E(e=>{if(!r||!a||0!==e.button)return;let t=tm(e.nativeEvent);tf(n.select("floatingElement"),t)&&(w.current||(w.current=!0,S.current=!1))}),_=E(e=>{!r||!a||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&w.current&&(S.current=!0)}),F=d.useMemo(()=>({onKeyDown:M,onPointerDown:_,onMouseDown:_,onClickCapture:L,onMouseDownCapture(e){L(),q(e)},onPointerDownCapture(e){L(),q(e)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[M,L,q,_]);return d.useMemo(()=>a?{reference:D,floating:F,trigger:D}:{},[a,D,F])}(h,{outsidePressEvent:()=>
12n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(e){if(!n.context.outsidePressEnabledRef.current||"button"in e&&0!==e.button||"touches"in e&&1!==e.touches.length)return!1;let t=tm(e);return!!x&&!a&&(!s||!n.context.internalBackdropRef.current&&!n.context.backdropRef.current||n.context.internalBackdropRef.current===t||n.context.backdropRef.current===t||tf(t,l)&&!t?.hasAttribute("data-base-ui-portal"))},escapeKey:x});!function(e=!0,t=null){k(()=>{if(e)return nd.acquire(t)},[e,t])}(i&&!0===s,l);let{getReferenceProps:C,getFloatingProps:j,getTriggerProps:R}=nm([w,S]);n.useContextCallback("onNestedDialogOpen",e=>{y(e+1)}),n.useContextCallback("onNestedDialogClose",()=>{y(0)}),d.useEffect(()=>(r?.onNestedDialogOpen&&i&&r.onNestedDialogOpen(v),r?.onNestedDialogClose&&!i&&r.onNestedDialogClose(),()=>{r?.onNestedDialogClose&&i&&r.onNestedDialogClose()}),[i,r,v]);let T=d.useMemo(()=>C(c),[C,c]),I=d.useMemo(()=>R(c),[R,c]),P=d.useMemo(()=>j(),[j]);n.useSyncedValues({openMethod:u,activeTriggerProps:T,inactiveTriggerProps:I,popupProps:P,floatingRootContext:h,nestedOpenDialogCount:v})}({store:y,actionsRef:u,parentContext:h?.store.context,onOpenChange:i,triggerIdProp:f});let w=d.useMemo(()=>({store:y}),[y]);return(0,c.jsx)(J.Provider,{value:w,children:"function"==typeof n?n({payload:x}):n})},"Title",0,n1,"Trigger",0,n2,"Viewport",0,n0,"createHandle",0,function(){return new n6}],87913);var n5=e.i(87913),n5=n5,n4=e.i(41947),n4=n4;function n8({...e}){return(0,c.jsx)(n5.Root,{"data-slot":"sheet",...e})}function n3({...e}){return(0,c.jsx)(n5.Trigger,{"data-slot":"sheet-trigger",...e})}function n9({...e}){return(0,c.jsx)(n5.Portal,{"data-slot":"sheet-portal",...e})}function n7({className:e,...t}){return(0,c.jsx)(n5.Backdrop,{"data-slot":"sheet-overlay",className:(0,h.cn)("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...t})}function re({className:e,children:t,side:n="right",showCloseButton:r=!0,...o}){return(0,c.jsxs)(n9,{children:[(0,c.jsx)(n7,{}),(0,c.jsxs)(n5.Popup,{"data-slot":"sheet-content","data-side":n,className:(0,h.cn)("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...o,children:[t,r&&(0,c.jsxs)(n5.Close,{"data-slot":"sheet-close",render:(0,c.jsx)(X,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,c.jsx)(n4.default,{}),(0,c.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function rt({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"sheet-header",className:(0,h.cn)("flex flex-col gap-0.5 p-4",e),...t})}function rn({className:e,...t}){return(0,c.jsx)(n5.Title,{"data-slot":"sheet-title",className:(0,h.cn)("font-heading text-base font-medium text-foreground",e),...t})}function rr(){let[e,t]=(0,d.useState)(""),n=(0,m.useRouter)();return(0,c.jsxs)("form",{onSubmit:function(t){t.preventDefault();let r=e.trim();r&&n.push(`/busca?q=${encodeURIComponent(r)}`)},className:"relative",children:[(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary",children:[(0,c.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,c.jsx)("path",{d:"m21 21-4.3-4.3"})]}),(0,c.jsx)("input",{type:"search",placeholder:"Buscar artigos, lives, materiais...",value:e,onCh
12ange:e=>t(e.target.value),className:"h-10 w-full rounded-[10px] border border-border bg-surface-subtle pl-9 pr-4 font-sans text-sm text-text-primary placeholder:text-text-tertiary transition-colors focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"})]})}var ro=e.i(64510);let ri="mz_prem_banner_dismissed_at";function ra(){let[e,t]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{!function(){try{let e=window.localStorage.getItem(ri);if(!e)return!1;let t=Number(e);return Number.isFinite(t)&&Date.now()-t<864e5}catch{return!1}}()&&t(!0)},[]),e)?(0,c.jsx)("div",{className:"prem prem-strip",children:(0,c.jsxs)("div",{className:"prem-strip-inner",children:[(0,c.jsxs)("p",{className:"prem-strip-msg",children:[(0,c.jsx)("svg",{className:"prem-strip-spark",width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M13 2 4.5 13.5H11l-1 8.5 8.5-11.5H12z"})}),(0,c.jsxs)("span",{className:"prem-strip-long",children:[(0,c.jsx)("strong",{children:"Premonição ENEM"})," — os padrões que se repetem todo ano e as questões com chance real de cair em 2026."]}),(0,c.jsx)("span",{className:"prem-strip-date",children:"Veja a sua prova antes da prova"})]}),(0,c.jsxs)("a",{className:"prem-cta",href:(0,ro.premonicaoUrl)("header-strip","banner"),target:"_blank",rel:"noopener noreferrer",children:[(0,c.jsx)("span",{children:"Ver o que vai cair"}),(0,c.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4"})})]}),(0,c.jsx)("button",{type:"button",className:"prem-strip-close","aria-label":"Dispensar aviso",onClick:function(){t(!1);try{window.localStorage.setItem(ri,String(Date.now()))}catch{}},children:(0,c.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:(0,c.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]})}):null}var rs=e.i(80931),rl=e.i(86666);let ru=new Intl.DateTimeFormat("en-CA",{timeZone:"America/Sao_Paulo",year:"numeric",month:"2-digit",day:"2-digit"});var rc=e.i(18040),rd=e.i(74923);let rp="mz_live_banner_dismissed";function rf(e){return`${e.live.id}:${e.kind}`}let rm=new Intl.DateTimeFormat("pt-BR",{timeZone:"America/Sao_Paulo",hour:"2-digit",minute:"2-digit"});function rh({onVisible:e}){let[t,n]=(0,d.useState)(null),[r,o]=(0,d.useState)(!1),{requireLead:i,gateElement:a}=(0,rc.useLeadGate)(!1);(0,d.useEffect)(()=>{function e(){let e=function(e,t=rl.LIVES_RETA_FINAL){let n=ru.format(new Date(e)),r=t.find(e=>e.youtubeId&&e.dataISO.slice(0,10)===n);if(!r)return null;let o=(0,rs.getStatus)({data:r.dataISO,duracao:rl.DURACAO_LIVE_RF_MIN},new Date(e));return"ao-vivo"===o?{kind:"ao-vivo",live:r}:"encerrada"===o?{kind:"replay",live:r}:{kind:"hoje",live:r}}(Date.now());n(e),o(!!e&&function(e){try{return window.localStorage.getItem(rp)===rf(e)}catch{return!1}}(e))}e();let t=window.setInterval(e,3e4);return()=>window.clearInterval(t)},[]);let s=!!t&&!r;(0,d.useEffect)(()=>{e?.(s)},[s,e]);let l=(0,d.useCallback)(()=>{var e;if(!t?.live.youtubeId)return;let n=(e=t.live.youtubeId,`https://www.youtube.com/watch?v=${e}`);i("live",()=>{(0,rd.trackLeadEvent)("live_click",{live_id:t.live.id,youtube_id:t.live.youtubeId??null,status:t.kind,path:window.location.pathname}),window.open(n,"_blank","noopener,noreferrer")})},[t,i]);if(!s||!t)return a?(0,c.jsx)(c.Fragment,{children:a}):null;let{kind:u,live:p}=t,f=rl.DISCIPLINA_RF[p.disciplina].label,m=rm.format(new Date(p.dataISO)),h="ao-vivo"===u?`come\xe7ou \xe0s ${m}`:"hoje"===u?`hoje \xe0s ${m}`:"perdeu a live de hoje?";return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:`mz-live${"ao-vivo"===u?" mz-live--on":""}`,role:"region","aria-label":"Live do Premonição ENEM",children:(0,c.jsxs)("div",{className:"mz-live__inner",children:[(0,c.jsxs)("span",{className:"mz-live__badge",children:[(0,c.jsx)("span",{className:"mz-live__dot","aria-hidden":"true"}),"ao-vivo"===u?"Ao vivo agora":"hoje"===u?"Live hoje":"Replay de hoje"]}),(0,c.jsxs)("span",{className:"mz-live__txt",children:[(0,c.jsxs)("span",{className:"mz-live__disc",children:[f,":"]})," ",p.tema,(0,c.jsxs)("span",{className:"mz-live__when",children:["· ",h]})]}),(0,c.jsx)("button",{type:"button",className:"mz-live__cta",onClick:l,children:"ao-vivo"===u?"Assistir agora":"hoje"===u?"Ativar lembrete":"Assistir replay"}),(0,c.jsx)("button",{type:"button",className:"mz-live__close","aria-label":"Dispensar aviso",onClick:function(){if(t){try{window.localStorage.setItem(rp,rf(t))}catch{}o(!0)}},children:(0,c.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:(0,c.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]})}),a]})}var rg=e.i(66065),rv=e.i(22765);let rb=[(0,c.jsxs)(c.Fragment,{children:["Veja ",(0,c.jsx)("strong",{children:"o que mais cai"})," antes da prova — padrões do ENEM decodificados em 6 módulos."]}),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("strong",{children:"Questões autorais"})," escritas no formato da prova, mirando o que tem chance real de cair em 2026."]}),(0,c.jsxs)(c.Fragment,{children:["Lives de ",(0,c.jsx)("strong",{children:"revisão final"})," por matéria + apostilas + banco com todas as provas anteriores."]}),(0,c.jsxs)(c.Fragment,{children:["Com ",(0,c.jsx)("strong",{children:"Renato Palmeira"}),", médico e professor de +8 mil aprovados."]})];function ry(){let{open:e,source:t}=(0,rv.usePremonicaoPopup)();return((0,d.useEffect)(()=>
12{if(!e)return;let t=document.body.style.overflow;document.body.style.overflow="hidden";let n=e=>{"Escape"===e.key&&(0,rv.closePremonicaoPopup)()};return document.addEventListener("keydown",n),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",n)}},[e]),e)?(0,c.jsx)("div",{className:"prem prem-popup-overlay",role:"dialog","aria-modal":"true","aria-label":"Premonição ENEM — previsão da prova de 2026",onClick:rv.closePremonicaoPopup,children:(0,c.jsxs)("div",{className:"prem-popup-card",onClick:e=>e.stopPropagation(),children:[(0,c.jsx)("button",{type:"button",className:"prem-popup-close","aria-label":"Fechar",onClick:rv.closePremonicaoPopup,children:(0,c.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:(0,c.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})}),(0,c.jsx)("div",{className:"prem-popup-media",children:(0,c.jsx)(p.default,{src:(0,rg.asset)("/premonicao/login-mago.webp"),alt:"Renato Palmeira como o mago do Premonição ENEM",width:560,height:280,priority:!0})}),(0,c.jsxs)("div",{className:"prem-popup-body",children:[(0,c.jsxs)("span",{className:"prem-eyebrow",children:["Premonição ENEM · ",ro.PREMONICAO_LABEL]}),(0,c.jsxs)("h2",{className:"prem-popup-title",children:["Veja a sua prova ",(0,c.jsx)("em",{children:"antes da prova."})]}),(0,c.jsx)("p",{className:"prem-popup-sub",children:"Os padrões que se repetem todo ano, mapeados pra você ganhar 20 a 30 acertos na reta final — com questões autorais escritas pra prever a prova de 2026."}),(0,c.jsx)("ul",{className:"prem-popup-list",children:rb.map((e,t)=>(0,c.jsxs)("li",{children:[(0,c.jsx)("svg",{className:"prem-popup-check",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("polyline",{points:"2.5,8.5 6.5,12 13.5,4"})}),(0,c.jsx)("span",{children:e})]},t))}),(0,c.jsxs)("div",{className:"prem-popup-actions",children:[(0,c.jsxs)("a",{className:"prem-cta",href:(0,ro.premonicaoUrl)(t,"popup"),target:"_blank",rel:"noopener noreferrer",onClick:rv.closePremonicaoPopup,children:[ro.CTA_LABEL,(0,c.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4"})})]}),(0,c.jsx)("p",{className:"prem-popup-note",children:"Veja na página do curso o conteúdo completo dos 6 módulos e das lives da reta final."})]})]})]})}):null}function rx(e){let t=new URLSearchParams({utm_source:"blog",utm_medium:"cta",utm_campaign:"metodo",utm_content:e});return`https://memorizevestibular.com/home/?${t.toString()}`}let rE=[{label:"Início",href:"/"},{label:"Questões",href:"/questoes"},{label:"Lives",href:"/lives"},{label:"Calendário",href:"/calendariodeprovas"},{label:"Artigos",href:"/artigos"},{label:"Materiais",href:"/materiais"},{label:"Sobre",href:"/sobre"}],rw="Conhecer Método";e.s(["Header",0,function(){let[e,t]=(0,d.useState)(!1),[n,r]=(0,d.useState)(!1),o=(0,m.usePathname)(),i=(0,d.useCallback)(()=>{t(e=>!e)},[]);return(0,d.useEffect)(()=>{function n(n){(n.metaKey||n.ctrlKey)&&"k"===n.key&&(n.preventDefault(),i()),"Escape"===n.key&&e&&t(!1)}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,i]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("header",{className:"sticky top-0 z-50 border-b border-black/[0.06] bg-surface-primary/[0.88] backdrop-blur-[14px]",children:[(0,c.jsx)(rh,{onVisible:r}),!n&&(0,c.jsx)(ra,{}),(0,c.jsxs)("div",{className:"mx-auto flex h-16 max-w-[1280px] items-center justify-between gap-6 px-4 sm:px-6",children:[(0,c.jsxs)(f.default,{href:"/",className:"flex flex-shrink-0 items-center gap-2.5","aria-label":"Blog Memorize · Início",children:[(0,c.jsx)(p.default,{src:(0,rg.asset)("/images/logo-memorize-icon.png"),alt:"Memorize",width:28,height:28,className:"h-7 w-auto",priority:!0}),(0,c.jsx)("span",{className:"font-heading text-base font-bold tracking-[-0.02em] text-text-primary",children:"Memorize"})]}),(0,c.jsx)("nav",{className:"hidden items-center gap-8 md:flex","aria-label":"Navegação principal",children:rE.map(e=>{let t="/"===e.href?"/"===o:o.startsWith(e.href);return(0,c.jsx)(f.default,{href:e.href,className:(0,h.cn)("relative font-sans text-[13.5px] tracking-[0.005em] transition-opacity",t?"font-semibold text-text-primary opacity-100 after:absolute after:inset-x-0 after:-bottom-1.5 after:h-[2px] after:rounded-full after:bg-current":"font-medium text-text-primary opacity-70 hover:opacity-100"),children:e.label},e.href)})}),(0,c.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2.5",children:[(0,c.jsx)("a",{href:"https://www.memorizeapp.com/",target:"_blank",rel:"noopener noreferrer",className:"hidden h-[38px] items-center rounded-full border border-black/15 px-4 font-sans text-[13px] font-semibold text-text-primary opacity-80 transition-opacity hover:opacity-100 lg:inline-flex",children:"Já sou aluno"}),(0,c.jsx)("a",{href:rx("header-desktop"),target:"_blank",rel:"noopener noreferrer",className:"hidden h-[38px] items-center rounded-full bg-accent px-4 font-sans text-[13px] font-semibold text-white transition-colors hover:bg-accent-hover md:inline-flex",children:rw}),(0,c.jsx)("button",{type:"button",onClick:i,"aria-label":"Buscar (Cmd+K)",className:"flex size-9 items-center justify-center rounded-full text-text-secondary transition-colors hover:text-accent",children:(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,c.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,c.jsx)("path",{d:"m21 21-4.3-4.3"})]})}),(0,c.jsxs)(n8,{children:[(0,c.jsxs)(n3,{render:(0,c.jsx)(X,{variant:"ghost",size:"icon",className:"md:hidden"}),children:[(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-text-primary",children:[(0,c.jsx)("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),(0,c.jsx)("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),(0,c.jsx)("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]}),(0,c.jsx)("span",{className:"sr-only",children:"Menu"})]}),(0,c.jsxs)(re,{side:"right",children:[(0,c.jsx)(rt,{children:(0,c.jsx)(rn,{children:(0,c.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,c.jsx)(p.default,{src:(0,rg.asset)("/images/logo-memorize-icon.png"),alt:"Memorize",width:28,height:28,className:"h-7 w-auto"}),(0,c.jsx)("span",{className:"font-heading text-base font-bold tracking-[-0.02em] text-text-primary",children:"Memorize"})]})})}),(0,c.jsxs)("nav",{className:"flex flex-col gap-1 px-4",children:[rE.map(e=>{let t="/"===e.href?"/"===o:o.startsWith(e.href);return(0,c.jsx)(f.default,{href:e.href,className:(0,h.cn)("rounded-[8px] px-3 py-2.5 font-sans text-base font-medium transition-colors",t?"font-semibold text-accent":"text-text-secondary hover:text-accent"),children:e.label},e.href)}),(0,c.jsxs)("div",{className:"mt-4 flex flex-col gap-2 border-t border-border-subtle pt-4",children:[(0,c.jsx)("a",{href:rx("header-mobile"),target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-accent px-4 py-2.5 text-center font-sans text-sm font-semibold text-white transition-colors hover:bg-accent-hover",children:rw}),(0,c.jsx)("a",{href:"https://www.memorizeapp.com/",target:"_blank",rel:"noopener noreferrer",className:"rounded-full border border-border-subtle px-4 py-2.5 text-center font-sans text-sm font-medium text-text-primary transition-colors hover:bg-surface-subtle",children:"Já sou aluno"}),(0,c.jsx)("a",{href:rg.MAIN_SITE_URL,className:"px-3 pt-2 text-center font-mono text-[12px] uppercase tracking-[0.12em] text-text-tertiary transition-colors hover:text-text-secondary",children:"Site oficial ↗"})]})]})]})]})]})]}),(0,c.jsx)("div",{className:"search-expand border-t border-border-subtle bg-surface-primary px-4","data-open":e,children:(0,c.jsx)("div",{className:"mx-auto max-w-2xl py-3",children:(0,c.jsx)(rr,{})})})]}),(0,c.jsx)(ry,{})]})}],74303)}]);

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.