bi-components-library 1.2.47 → 1.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +170 -152
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
letter-spacing: ${f.letterSpacing||"normal"};
|
|
11
11
|
padding-left: ${E}px;
|
|
12
12
|
padding-right: ${b}px;
|
|
13
|
-
`,h.textContent=m||"0",document.body.appendChild(h);const g=Math.max(24,Math.min(600,Math.ceil(h.offsetWidth)+2));return document.body.removeChild(h),g},r=d=>{const m=d.target;if(!m)return;let f=m.value;f=f.replace(/[^\d.]/g,"");const E=f.indexOf(".");E!==-1&&(f=f.slice(0,E+1)+f.slice(E+1).replace(/\./g,"")),E!==-1&&f.length-E-1>2&&(f=f.slice(0,E+3));const b=f.endsWith(".")||E!==-1&&f.length-E-1<2&&f.length-E-1>0;if(f!==""&&!b){const v=parseFloat(f);if(Number.isNaN(v))m.value="";else{const g=m.getAttribute("min"),y=m.getAttribute("max"),S=g!==null?parseFloat(g):0,w=y!==null?parseFloat(y):1/0;if(v===0&&0<S)m.value="";else{const A=Math.min(Math.max(v,S),w);m.value=E!==-1?A.toFixed(f.length-E-1):String(A)}}}else f===""?m.value="":m.value=f;m.style.width=`${n(m)}px`;const h=m.closest(".rte-number-input-wrap");h&&(h.dataset.hasValue=m.value?"1":"0")},i=d=>{const m=d.key;m==="Backspace"||m==="Delete"||m==="Tab"||m==="ArrowLeft"||m==="ArrowRight"||m==="ArrowUp"||m==="ArrowDown"||m==="Home"||m==="End"||m==="Enter"||d.ctrlKey||d.metaKey||/^[\d.]$/.test(m)||d.preventDefault()},u=()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="number-input"]').forEach(m=>{const f=m.closest(".rte-number-input-wrap");f&&(f.dataset.hasValue=m.value?"1":"0",f.dataset.placeholder===void 0&&(f.dataset.placeholder=m.placeholder||""));const E=document.activeElement===m,b=n(m),h=Number.parseFloat(m.style.width||""),v=Number.isFinite(h),g=v?Math.abs(h-b):1/0;m.dataset.rteWidthInited==="1"?!E&&(!v||g>8)&&(m.style.width=`${b}px`):(m.dataset.rteWidthInited="1",!E&&(!v||g>2)&&(m.style.width=`${b}px`)),a.has(m)||(m.addEventListener("input",r,!1),m.addEventListener("keydown",i,!1),a.set(m,r),l.set(m,i))})};u();let s=!1;const o=()=>{s||(s=!0,queueMicrotask(()=>{s=!1,u()}))},c=new MutationObserver(d=>{let m=!1;d.forEach(f=>{f.type==="childList"&&f.addedNodes.forEach(E=>{if(E.nodeType===Node.ELEMENT_NODE){const b=E;b.matches&&(b.matches('[data-type="number-input"]')||b.querySelector('[data-type="number-input"]'))&&(m=!0)}})}),m&&o()});return e.current&&c.observe(e.current,{childList:!0,subtree:!0}),()=>{s=!1,c.disconnect(),a.forEach((d,m)=>{m.removeEventListener("input",d,!1)}),a.clear(),l.forEach((d,m)=>{m.removeEventListener("keydown",d,!1)}),l.clear()}},[e,...t])}function Xo(e,t,a=[]){k.useLayoutEffect(()=>{if(!e.current)return;const l=new Map,n=window.setTimeout(()=>{if(!e.current)return;l.forEach((u,s)=>s.removeEventListener("blur",u,!1)),l.clear();const r=e.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]'),i=u=>{u.stopPropagation(),u.stopImmediatePropagation();const s=u.target?.closest('[data-type="variable"][data-node-type="report-url"]');if(!s||!e.current||!e.current.contains(s)||s.getAttribute("data-report-url"))return;const o=s.dataset.key;if(!o)return;const c=s.innerText.replace(/[\u200B\n]/g,"").trim();t(o,c)};r.forEach(u=>{u.addEventListener("blur",i,!1),l.set(u,i)})},0);return()=>{window.clearTimeout(n),l.forEach((r,i)=>i.removeEventListener("blur",r,!1)),l.clear()}},[e,t,...a])}const Ko="https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/website/kongzhuangtai.svg",Qo=({host:e,reportListFetch:t,onSelect:a,onGoGenerate:l,onViewReport:n,hideCurrentSessionReport:r})=>{const i=e.dataset.key||"",u=e.dataset.nodeType||"report-url",[s,o]=k.useState(!1),[c,d]=k.useState(!1),[m,f]=k.useState(null),[E,b]=k.useState(""),[h,v]=k.useState("bottomLeft"),[g,y]=k.useState(0),S=k.useCallback(async()=>{console.log("[RTE-REPORT] openDropdown entered",{key:i,nodeType:u});const x=e.closest('[data-type="variable"]');if(x){const L=x.getBoundingClientRect(),I=e.getBoundingClientRect();y(L.left-I.left);const N=240,T=window.innerHeight-L.bottom;v(T<N?"topLeft":"bottomLeft")}document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening",{detail:e})),o(!0),d(!0),console.log("[RTE-REPORT] before fetch",{key:i,nodeType:u});try{const L=await t({nodeKey:i,nodeType:u});console.log("[RTE-REPORT] after fetch",{key:i,tabs:L?.tabs?.length});const I=r?L.tabs.filter(T=>T.key!=="currentConversationReports"):L.tabs,N={...L,tabs:I};f(N),I.length>0&&b(I[0].key)}catch(L){console.warn("[RTE-REPORT] fetch threw",L)}finally{console.log("[RTE-REPORT] fetch finally",{key:i}),d(!1)}},[e,i,u,t,r]);k.useEffect(()=>{const x=e.closest('[data-type="variable"]');if(console.log("[RTE-REPORT] attach",{key:i,chipInDom:x?document.body.contains(x):!1,hostInDom:document.body.contains(e),hasReportUrl:x?.getAttribute("data-report-url")}),!x)return;const L=I=>{const N=I.target;if(console.log("[RTE-REPORT] chip mousedown",{key:i,open:s,hasReportUrl:x.getAttribute("data-report-url"),clickedClearIcon:!!N.closest(".rte-report-chip-clear-host")}),N.closest(".rte-report-chip-clear-host")){console.log("[RTE-REPORT] early-exit: clear icon");return}if(x.getAttribute("data-report-url")&&(I.preventDefault(),I.stopPropagation(),window.getSelection()?.removeAllRanges()),s){console.log("[RTE-REPORT] early-exit: already open");return}console.log("[RTE-REPORT] calling openDropdown"),S()};return x.addEventListener("mousedown",L,!0),()=>{console.log("[RTE-REPORT] detach",{key:i,chipInDom:document.body.contains(x),hostInDom:document.body.contains(e)}),x.removeEventListener("mousedown",L,!0)}},[e,s,S,i]),k.useEffect(()=>{const x=L=>{L.detail!==e&&o(!1)};return document.addEventListener("rte-report-dropdown-opening",x),()=>document.removeEventListener("rte-report-dropdown-opening",x)},[e]),k.useEffect(()=>{const x=L=>{const I=L.detail;(!I||!I.key||I.key===i)&&o(!1)};return document.addEventListener("rte-report-dropdown-force-close",x),()=>document.removeEventListener("rte-report-dropdown-force-close",x)},[i]),k.useEffect(()=>{if(!s)return;const x=L=>{const I=L.target;e.closest('[data-type="variable"]')?.contains(I)||I.closest(".rte-report-dropdown-overlay")||o(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,e]);const w=k.useCallback(x=>{a(i,u,x),o(!1)},[i,u,a]),A=k.useCallback((x,L)=>{x.stopPropagation(),n?(n(L),o(!1)):window.open(L.viewUrl||L.url,"_blank")},[n]),P=m?.tabs.find(x=>x.key===E),O=k.useRef(null),C=k.useCallback(x=>{const L=x.currentTarget;L.classList.add("is-scrolling"),O.current&&window.clearTimeout(O.current),O.current=window.setTimeout(()=>{L.classList.remove("is-scrolling"),O.current=null},300)},[]),_=q.jsx("div",{className:"rte-report-dropdown-panel",onMouseDown:x=>x.preventDefault(),children:c?q.jsx("div",{className:"rte-report-dropdown-loading",children:q.jsx(fe.Spin,{size:"small"})}):m?q.jsxs(q.Fragment,{children:[m.tabs.length>1&&q.jsx("div",{className:"rte-report-dropdown-tab-outer",children:q.jsx("div",{className:"rte-report-dropdown-tab-inner",children:m.tabs.map(x=>q.jsx("div",{className:`rte-report-dropdown-tab-item${E===x.key?" active":""}`,onMouseDown:()=>b(x.key),children:x.label},x.key))})}),q.jsx("div",{className:"rte-report-dropdown-list",onScroll:C,children:!P||P.items.length===0?q.jsxs("div",{className:"rte-report-dropdown-empty",children:[q.jsx("img",{className:"rte-report-dropdown-empty-img",src:Ko,alt:""}),q.jsxs("div",{className:"rte-report-dropdown-empty-text",children:[q.jsx("span",{className:"rte-report-dropdown-empty-label",children:"暂无生成的报告"}),P?.agentType!=null&&l&&q.jsx("span",{className:"rte-report-dropdown-empty-link",onMouseDown:()=>{l(P.agentType),o(!1)},children:"去生成"})]})]}):P.items.map((x,L)=>q.jsxs("div",{className:"rte-report-dropdown-item",onMouseDown:()=>w(x),children:[q.jsx("span",{className:"rte-report-dropdown-item-name",title:x.name,children:x.name}),q.jsxs("span",{className:"rte-report-dropdown-item-action",onMouseDown:I=>{I.stopPropagation(),A(I,x)},children:[q.jsx("i",{className:"iconfont icon-chakanbaogao"}),"查看报告"]})]},`${x.url}-${L}`))})]}):null});return console.log("[RTE-REPORT] render",{key:i,open:s,loading:c,hasData:!!m,placement:h,offsetX:g,hostRect:e.getBoundingClientRect(),hostVisibility:getComputedStyle(e).visibility,hostDisplay:getComputedStyle(e).display}),xt.createPortal(q.jsx("div",{className:"rte-report-dropdown-trigger-wrapper",contentEditable:!1,onClick:x=>{x.preventDefault(),x.stopPropagation()},children:q.jsx(fe.Popover,{content:_,trigger:[],open:s,placement:h,align:{offset:[g,h==="bottomLeft"?4:-4],overflow:{adjustX:!1,adjustY:!1}},autoAdjustOverflow:!1,getPopupContainer:()=>document.body,overlayClassName:"rte-report-dropdown-overlay",arrow:!1,children:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang rte-report-dropdown-icon "})})}),e)},Jo=(e,t,a,l,n,r,i)=>{const[u,s]=k.useState([]),o=k.useRef(t),c=k.useRef(a),d=k.useRef(l),m=k.useRef(n),f=k.useRef(i);o.current=t,c.current=a,d.current=l,m.current=n,f.current=i;const E=k.useRef(new WeakSet),b=k.useCallback(()=>{const h=e.current;if(!h||!o.current){s([]);return}const v=h.querySelectorAll(".rte-report-dropdown-host"),g=[];v.forEach(y=>{const S=y,w=S.getAttribute("data-key");if(w){if(!E.current.has(S)){for(;S.firstChild;)S.removeChild(S.firstChild);E.current.add(S)}g.push(q.jsx(Qo,{host:S,reportListFetch:o.current,onSelect:c.current,onGoGenerate:d.current,onViewReport:m.current,hideCurrentSessionReport:f.current},`report-dropdown-${w}-${S.getAttribute("data-node-type")}`))}}),s(g)},[e]);return k.useEffect(()=>{if(!t)return;const h=e.current;if(!h)return;const v=new MutationObserver(g=>{let y=!1;for(const S of g)if(S.type==="childList"){let w=!1;if(S.addedNodes.forEach(A=>{if(A.nodeType===Node.ELEMENT_NODE){const P=A;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(w=!0)}}),S.removedNodes.forEach(A=>{if(A.nodeType===Node.ELEMENT_NODE){const P=A;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(w=!0)}}),w){y=!0;break}}y&&b()});return v.observe(h,{childList:!0,subtree:!0}),()=>v.disconnect()},[e,t,b]),k.useEffect(()=>{if(!t)return;const h=requestAnimationFrame(()=>{b()});return()=>cancelAnimationFrame(h)},[t,b,r]),u},Zo=({host:e,onClear:t})=>{const a=k.useCallback(l=>{l.preventDefault(),l.stopPropagation();const n=e.closest('[data-type="variable"]');n&&t(n)},[e,t]);return xt.createPortal(q.jsx("span",{className:"rte-report-chip-clear-icon",contentEditable:!1,onMouseDown:a,title:"清除",children:q.jsx(mt.CloseCircleFilled,{})}),e)},ec=(e,t,a)=>{const[l,n]=k.useState([]),r=k.useRef(t);r.current=t;const i=k.useCallback(o=>{r.current(o)},[]),u=k.useRef(new WeakSet),s=k.useCallback(()=>{const o=e.current;if(!o){n([]);return}const c=o.querySelectorAll(".rte-report-chip-clear-host"),d=[];c.forEach(m=>{const f=m;if(!u.current.has(f)){for(;f.firstChild;)f.removeChild(f.firstChild);u.current.add(f)}const E=f.getAttribute("data-key")||"",b=f.getAttribute("data-node-type")||"",h=f.getAttribute("data-multi-key")||"";d.push(q.jsx(Zo,{host:f,onClear:i},`report-clear-${h?`${h}:`:""}${E}-${b}`))}),n(d)},[e,i]);return k.useEffect(()=>{const o=e.current;if(!o)return;const c=new MutationObserver(d=>{let m=!1;for(const f of d){if(f.type!=="childList")continue;const E=b=>{if(b.nodeType!==Node.ELEMENT_NODE)return!1;const h=b;return h.classList?.contains("rte-report-chip-clear-host")||!!h.querySelector?.(".rte-report-chip-clear-host")};if(f.addedNodes.forEach(b=>{E(b)&&(m=!0)}),f.removedNodes.forEach(b=>{E(b)&&(m=!0)}),m)break}m&&s()});return c.observe(o,{childList:!0,subtree:!0}),()=>c.disconnect()},[e,s]),k.useEffect(()=>{const o=requestAnimationFrame(()=>{s()});return()=>cancelAnimationFrame(o)},[s,a]),l};function tc(e){const t=e.dataset.key||"",a=e.getAttribute("data-node-type")||"",l=e.dataset.multiKey||"";e.removeAttribute("data-report-url"),e.removeAttribute("data-report-name"),e.classList.remove("rte-report-name-chip"),e.contentEditable="true";const n=e.querySelector(".rte-report-dropdown-host");n?.parentNode&&n.parentNode.removeChild(n);const r=e.querySelector(".rte-report-chip-clear-host");for(r?.parentNode&&r.parentNode.removeChild(r);e.firstChild;)e.removeChild(e.firstChild);if(e.appendChild(document.createTextNode("")),e.classList.add("show-placeholder"),n)n.classList.remove("hidden","rte-report-dropdown-host-quiet"),n.style.display="",n.style.visibility="",e.appendChild(n);else{const i=document.createElement("span");i.contentEditable="false",i.className="rte-report-dropdown-host",i.dataset.key=t,i.dataset.nodeType=a,l&&(i.dataset.multiKey=l),e.appendChild(i)}return e.classList.add("rte-variable-with-icon"),{nodeKey:t,nodeType:a,multiKey:l}}function Ul(e){if(e.querySelector(".rte-report-chip-clear-host"))return;const t=document.createElement("span");t.contentEditable="false",t.className="rte-report-chip-clear-host";const a=e.dataset.key||"",l=e.getAttribute("data-node-type")||"",n=e.dataset.multiKey||"";t.dataset.key=a,l&&(t.dataset.nodeType=l),n&&(t.dataset.multiKey=n),e.appendChild(t)}const ql="rte-resolve-tokens-invalidate";function sa(e){document.dispatchEvent(new CustomEvent(ql,{detail:e}))}function ac(e,t,a=[]){const l=k.useRef(t);k.useEffect(()=>{l.current=t},[t]),k.useEffect(()=>{const n=e.current;if(!n)return;const r=i=>{const u=i.target?.closest?.('[data-type="variable"][data-node-type="markdown-name"]');if(!u||!n.contains(u))return;const s=u.dataset.key;if(!s)return;const o=u.innerText.replace(/[\u200B\n]/g,"").trim();requestAnimationFrame(()=>{u.isConnected&&l.current(s,o)})};return n.addEventListener("focusout",r,!1),()=>{n.removeEventListener("focusout",r,!1)}},[e])}function lc(e,t,a=[]){k.useLayoutEffect(()=>{if(!e.current)return;const l=new Map,n=window.setTimeout(()=>{if(!e.current)return;l.forEach((u,s)=>s.removeEventListener("blur",u,!1)),l.clear();const r=e.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]'),i=u=>{u.stopPropagation(),u.stopImmediatePropagation();const s=u.target?.closest('[data-type="variable"][data-node-type="markdown"]');if(!s||!e.current||!e.current.contains(s))return;const o=s.dataset.key;if(!o)return;const c=s.innerText.replace(/[\u200B\n]/g,"").trim();t(o,c)};r.forEach(u=>{u.addEventListener("blur",i,!1),l.set(u,i)})},0);return()=>{window.clearTimeout(n),l.forEach((r,i)=>i.removeEventListener("blur",r,!1)),l.clear()}},[e,t,...a])}const oe=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ze=e=>e?typeof e=="string"?e:JSON.stringify(e):"",nc=e=>{const t=(e?.name||"").toLowerCase(),a=/\.(png|jpe?g|gif|webp|bmp|svg)$/.test(t),l=(e?.type||"").toLowerCase();return a||(l==="image/png"||l==="image/jpeg"||l==="image/gif"||l==="image/webp"||l==="image/bmp"||l==="image/svg+xml")},Ja=e=>{const t=(e||"").trim()||" ";let a=0;for(let l=0;l<t.length;l++){const n=t.charCodeAt(l);n>19968||n>=65280&&n<=65519?a+=16:a+=8}return Math.max(24,Math.min(600,a+22))},$r=e=>`\`\`\`
|
|
13
|
+
`,h.textContent=m||"0",document.body.appendChild(h);const g=Math.max(24,Math.min(600,Math.ceil(h.offsetWidth)+2));return document.body.removeChild(h),g},r=d=>{const m=d.target;if(!m)return;let f=m.value;f=f.replace(/[^\d.]/g,"");const E=f.indexOf(".");E!==-1&&(f=f.slice(0,E+1)+f.slice(E+1).replace(/\./g,"")),E!==-1&&f.length-E-1>2&&(f=f.slice(0,E+3));const b=f.endsWith(".")||E!==-1&&f.length-E-1<2&&f.length-E-1>0;if(f!==""&&!b){const v=parseFloat(f);if(Number.isNaN(v))m.value="";else{const g=m.getAttribute("min"),y=m.getAttribute("max"),S=g!==null?parseFloat(g):0,w=y!==null?parseFloat(y):1/0;if(v===0&&0<S)m.value="";else{const A=Math.min(Math.max(v,S),w);m.value=E!==-1?A.toFixed(f.length-E-1):String(A)}}}else f===""?m.value="":m.value=f;m.style.width=`${n(m)}px`;const h=m.closest(".rte-number-input-wrap");h&&(h.dataset.hasValue=m.value?"1":"0")},i=d=>{const m=d.key;m==="Backspace"||m==="Delete"||m==="Tab"||m==="ArrowLeft"||m==="ArrowRight"||m==="ArrowUp"||m==="ArrowDown"||m==="Home"||m==="End"||m==="Enter"||d.ctrlKey||d.metaKey||/^[\d.]$/.test(m)||d.preventDefault()},u=()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="number-input"]').forEach(m=>{const f=m.closest(".rte-number-input-wrap");f&&(f.dataset.hasValue=m.value?"1":"0",f.dataset.placeholder===void 0&&(f.dataset.placeholder=m.placeholder||""));const E=document.activeElement===m,b=n(m),h=Number.parseFloat(m.style.width||""),v=Number.isFinite(h),g=v?Math.abs(h-b):1/0;m.dataset.rteWidthInited==="1"?!E&&(!v||g>8)&&(m.style.width=`${b}px`):(m.dataset.rteWidthInited="1",!E&&(!v||g>2)&&(m.style.width=`${b}px`)),a.has(m)||(m.addEventListener("input",r,!1),m.addEventListener("keydown",i,!1),a.set(m,r),l.set(m,i))})};u();let s=!1;const o=()=>{s||(s=!0,queueMicrotask(()=>{s=!1,u()}))},c=new MutationObserver(d=>{let m=!1;d.forEach(f=>{f.type==="childList"&&f.addedNodes.forEach(E=>{if(E.nodeType===Node.ELEMENT_NODE){const b=E;b.matches&&(b.matches('[data-type="number-input"]')||b.querySelector('[data-type="number-input"]'))&&(m=!0)}})}),m&&o()});return e.current&&c.observe(e.current,{childList:!0,subtree:!0}),()=>{s=!1,c.disconnect(),a.forEach((d,m)=>{m.removeEventListener("input",d,!1)}),a.clear(),l.forEach((d,m)=>{m.removeEventListener("keydown",d,!1)}),l.clear()}},[e,...t])}function Xo(e,t,a=[]){k.useLayoutEffect(()=>{if(!e.current)return;const l=new Map,n=window.setTimeout(()=>{if(!e.current)return;l.forEach((u,s)=>s.removeEventListener("blur",u,!1)),l.clear();const r=e.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]'),i=u=>{u.stopPropagation(),u.stopImmediatePropagation();const s=u.target?.closest('[data-type="variable"][data-node-type="report-url"]');if(!s||!e.current||!e.current.contains(s)||s.getAttribute("data-report-url"))return;const o=s.dataset.key;if(!o)return;const c=s.innerText.replace(/[\u200B\n]/g,"").trim();t(o,c)};r.forEach(u=>{u.addEventListener("blur",i,!1),l.set(u,i)})},0);return()=>{window.clearTimeout(n),l.forEach((r,i)=>i.removeEventListener("blur",r,!1)),l.clear()}},[e,t,...a])}const Ko="https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/website/kongzhuangtai.svg",Qo=({host:e,reportListFetch:t,onSelect:a,onGoGenerate:l,onViewReport:n,hideCurrentSessionReport:r})=>{const i=e.dataset.key||"",u=e.dataset.nodeType||"report-url",[s,o]=k.useState(!1),[c,d]=k.useState(!1),[m,f]=k.useState(null),[E,b]=k.useState(""),[h,v]=k.useState("bottomLeft"),[g,y]=k.useState(0),S=k.useCallback(async()=>{if(console.log("[RTE-REPORT] openDropdown entered",{key:i,nodeType:u}),!document.body.contains(e)){console.log("[RTE-REPORT] openDropdown skip: host detached");return}if(e.classList.contains("hidden")){console.log("[RTE-REPORT] openDropdown skip: host display:none");return}const x=e.closest('[data-type="variable"]');if(!x||!document.body.contains(x)){console.log("[RTE-REPORT] openDropdown skip: chip detached");return}const L=x.getBoundingClientRect();if(L.width===0&&L.height===0){console.log("[RTE-REPORT] openDropdown skip: chip zero rect");return}const I=e.getBoundingClientRect();y(L.left-I.left);const N=240,T=window.innerHeight-L.bottom;v(T<N?"topLeft":"bottomLeft"),document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening",{detail:e})),o(!0),d(!0),console.log("[RTE-REPORT] before fetch",{key:i,nodeType:u});try{const F=await t({nodeKey:i,nodeType:u});console.log("[RTE-REPORT] after fetch",{key:i,tabs:F?.tabs?.length});const R=r?F.tabs.filter(z=>z.key!=="currentConversationReports"):F.tabs,H={...F,tabs:R};f(H),R.length>0&&b(R[0].key)}catch(F){console.warn("[RTE-REPORT] fetch threw",F)}finally{console.log("[RTE-REPORT] fetch finally",{key:i}),d(!1)}},[e,i,u,t,r]);k.useEffect(()=>{const x=e.closest('[data-type="variable"]');if(console.log("[RTE-REPORT] attach",{key:i,chipInDom:x?document.body.contains(x):!1,hostInDom:document.body.contains(e),hasReportUrl:x?.getAttribute("data-report-url")}),!x)return;const L=I=>{const N=I.target;if(console.log("[RTE-REPORT] chip mousedown",{key:i,open:s,hasReportUrl:x.getAttribute("data-report-url"),clickedClearIcon:!!N.closest(".rte-report-chip-clear-host")}),N.closest(".rte-report-chip-clear-host")){console.log("[RTE-REPORT] early-exit: clear icon");return}if(x.getAttribute("data-report-url")&&(I.preventDefault(),I.stopPropagation(),window.getSelection()?.removeAllRanges()),s){console.log("[RTE-REPORT] early-exit: already open");return}console.log("[RTE-REPORT] calling openDropdown"),S()};return x.addEventListener("mousedown",L,!0),()=>{console.log("[RTE-REPORT] detach",{key:i,chipInDom:document.body.contains(x),hostInDom:document.body.contains(e)}),x.removeEventListener("mousedown",L,!0)}},[e,s,S,i]),k.useEffect(()=>{const x=L=>{L.detail!==e&&o(!1)};return document.addEventListener("rte-report-dropdown-opening",x),()=>document.removeEventListener("rte-report-dropdown-opening",x)},[e]),k.useEffect(()=>{if(!s)return;const x=()=>{(!document.body.contains(e)||e.classList.contains("hidden"))&&o(!1)};x();const L=window.setInterval(x,200);return()=>window.clearInterval(L)},[s,e]),k.useEffect(()=>{const x=L=>{const I=L.detail;(!I||!I.key||I.key===i)&&o(!1)};return document.addEventListener("rte-report-dropdown-force-close",x),()=>document.removeEventListener("rte-report-dropdown-force-close",x)},[i]),k.useEffect(()=>{if(!s)return;const x=L=>{const I=L.target;e.closest('[data-type="variable"]')?.contains(I)||I.closest(".rte-report-dropdown-overlay")||o(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,e]);const w=k.useCallback(x=>{a(i,u,x),o(!1)},[i,u,a]),A=k.useCallback((x,L)=>{x.stopPropagation(),n?(n(L),o(!1)):window.open(L.viewUrl||L.url,"_blank")},[n]),P=m?.tabs.find(x=>x.key===E),O=k.useRef(null),C=k.useCallback(x=>{const L=x.currentTarget;L.classList.add("is-scrolling"),O.current&&window.clearTimeout(O.current),O.current=window.setTimeout(()=>{L.classList.remove("is-scrolling"),O.current=null},300)},[]),_=q.jsx("div",{className:"rte-report-dropdown-panel",onMouseDown:x=>x.preventDefault(),children:c?q.jsx("div",{className:"rte-report-dropdown-loading",children:q.jsx(fe.Spin,{size:"small"})}):m?q.jsxs(q.Fragment,{children:[m.tabs.length>1&&q.jsx("div",{className:"rte-report-dropdown-tab-outer",children:q.jsx("div",{className:"rte-report-dropdown-tab-inner",children:m.tabs.map(x=>q.jsx("div",{className:`rte-report-dropdown-tab-item${E===x.key?" active":""}`,onMouseDown:()=>b(x.key),children:x.label},x.key))})}),q.jsx("div",{className:"rte-report-dropdown-list",onScroll:C,children:!P||P.items.length===0?q.jsxs("div",{className:"rte-report-dropdown-empty",children:[q.jsx("img",{className:"rte-report-dropdown-empty-img",src:Ko,alt:""}),q.jsxs("div",{className:"rte-report-dropdown-empty-text",children:[q.jsx("span",{className:"rte-report-dropdown-empty-label",children:"暂无生成的报告"}),P?.agentType!=null&&l&&q.jsx("span",{className:"rte-report-dropdown-empty-link",onMouseDown:()=>{l(P.agentType),o(!1)},children:"去生成"})]})]}):P.items.map((x,L)=>q.jsxs("div",{className:"rte-report-dropdown-item",onMouseDown:()=>w(x),children:[q.jsx("span",{className:"rte-report-dropdown-item-name",title:x.name,children:x.name}),q.jsxs("span",{className:"rte-report-dropdown-item-action",onMouseDown:I=>{I.stopPropagation(),A(I,x)},children:[q.jsx("i",{className:"iconfont icon-chakanbaogao"}),"查看报告"]})]},`${x.url}-${L}`))})]}):null});return console.log("[RTE-REPORT] render",{key:i,open:s,loading:c,hasData:!!m,placement:h,offsetX:g,hostRect:e.getBoundingClientRect(),hostVisibility:getComputedStyle(e).visibility,hostDisplay:getComputedStyle(e).display}),xt.createPortal(q.jsx("div",{className:"rte-report-dropdown-trigger-wrapper",contentEditable:!1,onClick:x=>{x.preventDefault(),x.stopPropagation()},children:q.jsx(fe.Popover,{content:_,trigger:[],open:s,placement:h,align:{offset:[g,h==="bottomLeft"?4:-4],overflow:{adjustX:!1,adjustY:!1}},autoAdjustOverflow:!1,getPopupContainer:()=>document.body,overlayClassName:"rte-report-dropdown-overlay",arrow:!1,children:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang rte-report-dropdown-icon "})})}),e)},Jo=(e,t,a,l,n,r,i)=>{const[u,s]=k.useState([]),o=k.useRef(t),c=k.useRef(a),d=k.useRef(l),m=k.useRef(n),f=k.useRef(i);o.current=t,c.current=a,d.current=l,m.current=n,f.current=i;const E=k.useRef(new WeakSet),b=k.useCallback(()=>{const h=e.current;if(!h||!o.current){s([]);return}const v=h.querySelectorAll(".rte-report-dropdown-host"),g=[];v.forEach(y=>{const S=y,w=S.getAttribute("data-key");if(w){if(!E.current.has(S)){for(;S.firstChild;)S.removeChild(S.firstChild);E.current.add(S)}g.push(q.jsx(Qo,{host:S,reportListFetch:o.current,onSelect:c.current,onGoGenerate:d.current,onViewReport:m.current,hideCurrentSessionReport:f.current},`report-dropdown-${w}-${S.getAttribute("data-node-type")}`))}}),s(g)},[e]);return k.useEffect(()=>{if(!t)return;const h=e.current;if(!h)return;const v=new MutationObserver(g=>{let y=!1;for(const S of g)if(S.type==="childList"){let w=!1;if(S.addedNodes.forEach(A=>{if(A.nodeType===Node.ELEMENT_NODE){const P=A;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(w=!0)}}),S.removedNodes.forEach(A=>{if(A.nodeType===Node.ELEMENT_NODE){const P=A;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(w=!0)}}),w){y=!0;break}}y&&b()});return v.observe(h,{childList:!0,subtree:!0}),()=>v.disconnect()},[e,t,b]),k.useEffect(()=>{if(!t)return;const h=requestAnimationFrame(()=>{b()});return()=>cancelAnimationFrame(h)},[t,b,r]),u},Zo=({host:e,onClear:t})=>{const a=k.useCallback(l=>{l.preventDefault(),l.stopPropagation();const n=e.closest('[data-type="variable"]');n&&t(n)},[e,t]);return xt.createPortal(q.jsx("span",{className:"rte-report-chip-clear-icon",contentEditable:!1,onMouseDown:a,title:"清除",children:q.jsx(mt.CloseCircleFilled,{})}),e)},ec=(e,t,a)=>{const[l,n]=k.useState([]),r=k.useRef(t);r.current=t;const i=k.useCallback(o=>{r.current(o)},[]),u=k.useRef(new WeakSet),s=k.useCallback(()=>{const o=e.current;if(!o){n([]);return}const c=o.querySelectorAll(".rte-report-chip-clear-host"),d=[];c.forEach(m=>{const f=m;if(!u.current.has(f)){for(;f.firstChild;)f.removeChild(f.firstChild);u.current.add(f)}const E=f.getAttribute("data-key")||"",b=f.getAttribute("data-node-type")||"",h=f.getAttribute("data-multi-key")||"";d.push(q.jsx(Zo,{host:f,onClear:i},`report-clear-${h?`${h}:`:""}${E}-${b}`))}),n(d)},[e,i]);return k.useEffect(()=>{const o=e.current;if(!o)return;const c=new MutationObserver(d=>{let m=!1;for(const f of d){if(f.type!=="childList")continue;const E=b=>{if(b.nodeType!==Node.ELEMENT_NODE)return!1;const h=b;return h.classList?.contains("rte-report-chip-clear-host")||!!h.querySelector?.(".rte-report-chip-clear-host")};if(f.addedNodes.forEach(b=>{E(b)&&(m=!0)}),f.removedNodes.forEach(b=>{E(b)&&(m=!0)}),m)break}m&&s()});return c.observe(o,{childList:!0,subtree:!0}),()=>c.disconnect()},[e,s]),k.useEffect(()=>{const o=requestAnimationFrame(()=>{s()});return()=>cancelAnimationFrame(o)},[s,a]),l};function tc(e){const t=e.dataset.key||"",a=e.getAttribute("data-node-type")||"",l=e.dataset.multiKey||"";e.removeAttribute("data-report-url"),e.removeAttribute("data-report-name"),e.classList.remove("rte-report-name-chip"),e.contentEditable="true";const n=e.querySelector(".rte-report-dropdown-host");n?.parentNode&&n.parentNode.removeChild(n);const r=e.querySelector(".rte-report-chip-clear-host");for(r?.parentNode&&r.parentNode.removeChild(r);e.firstChild;)e.removeChild(e.firstChild);if(e.appendChild(document.createTextNode("")),e.classList.add("show-placeholder"),n)n.classList.remove("hidden","rte-report-dropdown-host-quiet"),n.style.display="",n.style.visibility="",e.appendChild(n);else{const i=document.createElement("span");i.contentEditable="false",i.className="rte-report-dropdown-host",i.dataset.key=t,i.dataset.nodeType=a,l&&(i.dataset.multiKey=l),e.appendChild(i)}return e.classList.add("rte-variable-with-icon"),{nodeKey:t,nodeType:a,multiKey:l}}function Ul(e){if(e.querySelector(".rte-report-chip-clear-host"))return;const t=document.createElement("span");t.contentEditable="false",t.className="rte-report-chip-clear-host";const a=e.dataset.key||"",l=e.getAttribute("data-node-type")||"",n=e.dataset.multiKey||"";t.dataset.key=a,l&&(t.dataset.nodeType=l),n&&(t.dataset.multiKey=n),e.appendChild(t)}const ql="rte-resolve-tokens-invalidate";function sa(e){document.dispatchEvent(new CustomEvent(ql,{detail:e}))}function ac(e,t,a=[]){const l=k.useRef(t);k.useEffect(()=>{l.current=t},[t]),k.useEffect(()=>{const n=e.current;if(!n)return;const r=i=>{const u=i.target?.closest?.('[data-type="variable"][data-node-type="markdown-name"]');if(!u||!n.contains(u))return;const s=u.dataset.key;if(!s)return;const o=u.innerText.replace(/[\u200B\n]/g,"").trim();requestAnimationFrame(()=>{u.isConnected&&l.current(s,o)})};return n.addEventListener("focusout",r,!1),()=>{n.removeEventListener("focusout",r,!1)}},[e])}function lc(e,t,a=[]){k.useLayoutEffect(()=>{if(!e.current)return;const l=new Map,n=window.setTimeout(()=>{if(!e.current)return;l.forEach((u,s)=>s.removeEventListener("blur",u,!1)),l.clear();const r=e.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]'),i=u=>{u.stopPropagation(),u.stopImmediatePropagation();const s=u.target?.closest('[data-type="variable"][data-node-type="markdown"]');if(!s||!e.current||!e.current.contains(s))return;const o=s.dataset.key;if(!o)return;const c=s.innerText.replace(/[\u200B\n]/g,"").trim();t(o,c)};r.forEach(u=>{u.addEventListener("blur",i,!1),l.set(u,i)})},0);return()=>{window.clearTimeout(n),l.forEach((r,i)=>i.removeEventListener("blur",r,!1)),l.clear()}},[e,t,...a])}const oe=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ze=e=>e?typeof e=="string"?e:JSON.stringify(e):"",nc=e=>{const t=(e?.name||"").toLowerCase(),a=/\.(png|jpe?g|gif|webp|bmp|svg)$/.test(t),l=(e?.type||"").toLowerCase();return a||(l==="image/png"||l==="image/jpeg"||l==="image/gif"||l==="image/webp"||l==="image/bmp"||l==="image/svg+xml")},Ja=e=>{const t=(e||"").trim()||" ";let a=0;for(let l=0;l<t.length;l++){const n=t.charCodeAt(l);n>19968||n>=65280&&n<=65519?a+=16:a+=8}return Math.max(24,Math.min(600,a+22))},$r=e=>`\`\`\`
|
|
14
14
|
${(e||"").replace(/\r\n/g,`
|
|
15
15
|
`)}
|
|
16
16
|
\`\`\``,Ur=e=>{const t=(e||"").replace(/\r\n/g,`
|
|
@@ -39,7 +39,7 @@ ${(e||"").replace(/\r\n/g,`
|
|
|
39
39
|
`).trim();D&&(I[H]=D)}}),t.current.__tempVariableValues=I;const F=[];for(let R=O;R<y;R++)F.push(`${v.key}_${R}`);sa({keys:F}),m(R=>({...R,[v.key]:N}));return}if(!A){const C=y-1,_=`${v.key}_${C}`,x=t.current.querySelector(`[data-type="variable"][data-key="${_}"][data-multi-key="${v.key}"]`);if(x&&(x.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
40
40
|
`).trim().length>0&&y<g){const I=window.getSelection();if(I&&I.rangeCount>0){const N=I.getRangeAt(0),T=N.startContainer,F=T.nodeType===Node.ELEMENT_NODE?T.closest('[data-type="variable"][data-multi-key]'):T.parentElement?.closest('[data-type="variable"][data-multi-key]');if(F){const R=F.dataset.key;if(R){const H=document.createRange();H.setStartBefore(F),H.setEnd(N.startContainer,N.startOffset);const z=H.toString().length;f.current={key:R,offset:z}}}}m(N=>({...N,[v.key]:y+1}))}}})},[u,e,t,o,c,s,d,f,a,l,r,i,m,n,b,E]),Sc=({disabled:e,lockStructure:t,config:a,editorRef:l,handleInput:n,onEnterSend:r,onReportChipDeleted:i})=>k.useCallback(u=>{if(e){u.preventDefault();return}const s=u.target;if(s&&(s.tagName==="TEXTAREA"||s.tagName==="INPUT")&&s.closest?.('[data-variable-render="antd-textarea"]'))return;{const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0);if(!d.collapsed&&d.startContainer===d.endContainer&&d.startContainer.nodeType===Node.ELEMENT_NODE&&d.endOffset-d.startOffset===1){const m=d.startContainer.childNodes[d.startOffset];if(m?.nodeType===Node.ELEMENT_NODE&&m.getAttribute?.("data-report-url")&&m.getAttribute?.("data-type")==="variable"&&!["Shift","Control","Alt","Meta","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","CapsLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"].includes(u.key)&&!u.ctrlKey&&!u.metaKey&&!u.altKey){u.preventDefault();const E=m,b=E.dataset.key||"",h=E.getAttribute("data-node-type")||"",v=E.dataset.multiKey||"";E.removeAttribute("data-report-url"),E.removeAttribute("data-report-name"),E.classList.remove("rte-report-name-chip"),E.contentEditable="true";const g=E.querySelector(".rte-report-dropdown-host");g?.parentNode&&g.parentNode.removeChild(g);const y=E.querySelector(".rte-report-chip-clear-host");if(y?.parentNode&&y.parentNode.removeChild(y),E.textContent="",E.classList.add("show-placeholder"),g)g.classList.remove("hidden"),g.style.display="",E.appendChild(g);else{const S=document.createElement("span");S.contentEditable="false",S.className="rte-report-dropdown-host",S.dataset.key=b,S.dataset.nodeType=h,v&&(S.dataset.multiKey=v),E.appendChild(S)}E.classList.add("rte-variable-with-icon"),i?.(b,h),E.focus(),u.key.length===1&&(document.execCommand("insertText",!1,u.key),E.classList.remove("show-placeholder")),n();return}}}}if(u.key==="Enter"){const c=u.target,d=c?.closest?.('[data-type="variable"]'),m=!!c?.closest?.('[data-type="richtext"]'),f=c?.tagName==="TEXTAREA"||!!c?.closest?.('[data-type="textarea"]');if(d){const E=d.getAttribute("data-node-type")||"";if(E==="report-url"||E==="markdown"||E==="markdown-name"){u.preventDefault();return}if(!(()=>{const v=d.dataset.multiKey;if(v)return a.find(w=>Ue(w.type)&&w.key===v)?.allowNewline!==!1;const g=d.dataset.key;return a.find(S=>S.type==="variable"&&S.key===g)?.allowNewline!==!1})()){u.preventDefault();return}u.preventDefault();const h=window.getSelection();if(h&&h.rangeCount>0){const v=h.getRangeAt(0);v.deleteContents();const g=document.createElement("br");v.insertNode(g);const y=document.createTextNode("");g.parentNode?.insertBefore(y,g.nextSibling),v.setStart(y,0),v.collapse(!0),h.removeAllRanges(),h.addRange(v)}n();return}if(!m&&!f){u.preventDefault(),a.length===0&&!u.shiftKey&&r&&r();return}}const o=window.getSelection();if(o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest('[data-type="text"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest('[data-type="text"]'))),d){if(u.preventDefault(),u.stopPropagation(),l.current){const m=l.current.querySelector('[data-type="variable"], [data-type="upload"]');m&&m.focus()}return}}if(t&&o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest(".tag-node"):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest(".tag-node"))),d){if(u.preventDefault(),u.stopPropagation(),l.current){const m=l.current.querySelector('[data-type="variable"], [data-type="upload"]');m&&m.focus()}return}}if(u.key==="Escape"&&l.current){if(t){u.preventDefault();return}l.current.innerHTML="",l.current.focus()}if(u.key==="Backspace"){const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0),m=c.anchorNode;if(t){let E=null,b=null;if(m&&(m.nodeType===Node.ELEMENT_NODE?(E=m.closest(".tag-node"),b=m.closest('[data-type="text"]')):m.nodeType===Node.TEXT_NODE&&m.parentElement&&(E=m.parentElement.closest(".tag-node"),b=m.parentElement.closest('[data-type="text"]'))),(E||b)&&d.collapsed&&d.startOffset===0){u.preventDefault();return}}let f=null;if(m&&(m.nodeType===Node.ELEMENT_NODE?f=m.closest('[data-type="variable"]'):m.nodeType===Node.TEXT_NODE&&m.parentElement&&(f=m.parentElement.closest('[data-type="variable"]'))),f){if(f.getAttribute("data-report-url")){u.preventDefault();const v=f.dataset.key||"",g=f.getAttribute("data-node-type")||"",y=f.dataset.multiKey||"";f.removeAttribute("data-report-url"),f.removeAttribute("data-report-name"),f.classList.remove("rte-report-name-chip"),f.contentEditable="true";const S=f.querySelector(".rte-report-dropdown-host");S?.parentNode&&S.parentNode.removeChild(S);const w=f.querySelector(".rte-report-chip-clear-host");if(w?.parentNode&&w.parentNode.removeChild(w),f.textContent="",f.classList.add("show-placeholder"),S)S.classList.remove("hidden"),S.style.display="",f.appendChild(S);else{const A=document.createElement("span");A.contentEditable="false",A.className="rte-report-dropdown-host",A.dataset.key=v,A.dataset.nodeType=g,y&&(A.dataset.multiKey=y),f.appendChild(A)}f.classList.add("rte-variable-with-icon"),i?.(v,g),f.focus(),n();return}if(!d.collapsed)return;const E=f.innerText;if(E===""||E===""){u.preventDefault();return}if((()=>{try{const v=document.createRange();v.selectNodeContents(f),v.setEnd(d.startContainer,d.startOffset);const g=v.cloneContents(),y=document.createTreeWalker(g,NodeFilter.SHOW_ALL);for(;y.nextNode();){const S=y.currentNode;if(S.nodeType===Node.ELEMENT_NODE){if(S.tagName==="BR")return!1}else if(S.nodeType===Node.TEXT_NODE&&(S.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return d.startOffset===0}})()){u.preventDefault();return}if(E.startsWith("")&&d.startOffset===1){u.preventDefault();return}}}}},[a,e,l,n,t,r,i]),Ac=({lockStructure:e,onAgentExit:t,editorRef:a,setPopoverVisible:l,isDraggingRef:n,mouseDownPosRef:r})=>{const i=(...m)=>{},u=m=>{try{const f=window.getSelection();if(!f)return i(m,"no selection");const E=f.rangeCount>0?f.getRangeAt(0):null;i(m,{rangeCount:f.rangeCount,isCollapsed:f.isCollapsed,anchorNode:f.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":f.anchorNode?.nodeName,anchorOffset:f.anchorOffset,focusNode:f.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":f.focusNode?.nodeName,focusOffset:f.focusOffset,range:E?{startContainer:E.startContainer.nodeType===Node.TEXT_NODE?"TEXT":E.startContainer.nodeName,startOffset:E.startOffset,endContainer:E.endContainer.nodeType===Node.TEXT_NODE?"TEXT":E.endContainer.nodeName,endOffset:E.endOffset}:null})}catch{}},s=k.useCallback(m=>{const f=m.target;if(i("mousedown",{tag:f.tagName,cls:f.className}),u("before mousedown"),f.closest(".rte-datepicker-wrapper")||f.closest(".rte-datepicker-host")||f.closest(".rte-select-wrapper")||f.closest(".rte-select-host")||f.closest(".ant-select-dropdown"))return;if(f.closest(".tag-close-btn")){if(m.preventDefault(),m.stopPropagation(),e)return;l(null),t?t():a.current&&(a.current.innerHTML="",a.current.focus());return}if(e){const h=f.closest(".tag-node"),v=f.closest('[data-type="text"]');if(h||v){m.preventDefault(),m.stopPropagation();const g=window.getSelection();g&&g.removeAllRanges();return}}const b=f.closest('[data-type="variable"]');if(b){if(i("mousedown on variable",{key:b.dataset.key,multiKey:b.dataset.multiKey,nodeType:b.getAttribute("data-node-type")||"",render:b.dataset.variableRender||"v1",classes:b.className}),b.dataset.variableRender==="antd-textarea")return;if(b.getAttribute("data-report-url")){console.log("[RTE-REPORT] React mouseHandlers hit name chip",{key:b.dataset.key,hasDropdownHost:!!b.querySelector(".rte-report-dropdown-host")}),m.preventDefault(),b.hasAttribute("tabindex")||b.setAttribute("tabindex","-1"),b.focus(),window.getSelection()?.removeAllRanges();return}const h=!!f.closest(".variable-info-icon"),v=b.classList.contains("show-placeholder")||(b.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(i("v1 variable mousedown",{isPlaceholder:v,isOnIcon:h,innerText:b.innerText}),v&&!h){m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mousedown)");const g=window.getSelection();if(!g)return;const y=b;y.focus();const S=document.createTreeWalker(y,NodeFilter.SHOW_TEXT),w=S.nextNode()?S.currentNode:null,A=document.createRange();w?(A.setStart(w,0),A.collapse(!0)):(A.selectNodeContents(y),A.collapse(!0)),g.removeAllRanges(),g.addRange(A),u("raf after setRange (mousedown)")});return}return}r.current={x:m.clientX,y:m.clientY},n.current=!1,f.closest(".file-remove-btn")&&(m.preventDefault(),m.stopPropagation())},[a,n,e,r,t,l]),o=k.useCallback(m=>{if(!m.target.closest('[data-type="variable"]')&&r.current){const b=Math.abs(m.clientX-r.current.x),h=Math.abs(m.clientY-r.current.y);(b>3||h>3)&&(n.current=!0)}},[n,r]),c=k.useCallback(m=>{const f=m.target;i("mouseup",{tag:f.tagName,cls:f.className}),u("before mouseup");const E=f.closest('[data-type="variable"]');if(E){if(E.getAttribute("data-report-url")){m.preventDefault(),r.current=null,n.current=!1;return}if(E.dataset.variableRender!=="antd-textarea"){const b=!!f.closest(".variable-info-icon"),h=E.classList.contains("show-placeholder")||(E.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;i("v1 variable mouseup",{key:E.dataset.key,isPlaceholder:h,isOnIcon:b,classes:E.className}),h&&!b&&(m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mouseup)");const v=window.getSelection();if(!v)return;const g=E;g.focus();const y=document.createTreeWalker(g,NodeFilter.SHOW_TEXT),S=y.nextNode()?y.currentNode:null,w=document.createRange();S?(w.setStart(S,0),w.collapse(!0)):(w.selectNodeContents(g),w.collapse(!0)),v.removeAllRanges(),v.addRange(w),u("raf after setRange (mouseup)")}))}r.current=null,n.current=!1;return}r.current=null,n.current=!1},[n,r]),d=k.useCallback(m=>{const E=m.target.closest('[data-type="variable"]');if(E){const b=window.getSelection();if(b){const h=document.createRange(),v=E.textContent||"";if(v.replace(/\u200B/g,"")){let y=0,S=v.length;v.startsWith("")&&(y=1),v.endsWith("")&&v.length>1&&(S=v.length-1);const w=E.firstChild;w&&w.nodeType===Node.TEXT_NODE?(h.setStart(w,y),h.setEnd(w,S)):h.selectNodeContents(E)}else h.selectNodeContents(E),h.collapse(!0);b.removeAllRanges(),b.addRange(h)}}},[]);return{handleMouseDown:s,handleMouseMove:o,handleMouseUp:c,handleDoubleClick:d}},wc=({disabled:e,config:t,multiVariableCounts:a,setMultiVariableCounts:l,editorRef:n,handleInput:r,markdownAnalyzeRef:i,reportAnalyzeRef:u,markdownNameAnalyzeRef:s,markdownAnalyzeStateRef:o,markdownRawTextRef:c,setMarkdownAnalyzeState:d,setFooterFiles:m,footerFiles:f,messageApi:E,onPasteUnsupported:b})=>k.useCallback(h=>{const v=t.some(_=>_.type==="tag"),g=Array.from(h.clipboardData.files);if(g.length>0&&v){h.preventDefault();return}if(g.length>0){h.preventDefault();const _=["pdf","xla","xlb","xlc","xlm","xls","xlsx","xlt","xlw","csv","tsv","iif","doc","docx","dot","odt","rtf","pot","ppa","pps","ppt","pptx","pwz","wiz","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","htm","html","ics","ifb","in","js","json","ksh","png","jpeg","jpg","gif","webp","md","php","pkl","rb","tar","tex","ts","txt","xml"],x=[];let L=!1;for(const I of g){const N=(I.name||"").split(".").pop()?.toLowerCase()||"";_.includes(N)?x.push(I):L=!0}if(L&&b?.(),x.length>0){const N=f.reduce((R,H)=>R+H.size,0),T=[];let F=N;for(const R of x){if(F+R.size>52428800){E.error("文件总大小不能超过 50MB");break}T.push(R),F+=R.size}T.length>0&&m(R=>[...T,...R])}return}const y=h.target;if(y&&(y.tagName==="TEXTAREA"||y.tagName==="INPUT")&&y.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){h.preventDefault();return}h.preventDefault();const w=(h.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
41
41
|
`).replace(/\n+$/g,""),A=window.getSelection();if(A&&A.rangeCount>0){const _=A.anchorNode;if(_){let x=null;if(_.nodeType===Node.ELEMENT_NODE?x=_.closest('[data-type="variable"]'):_.nodeType===Node.TEXT_NODE&&_.parentElement&&(x=_.parentElement.closest('[data-type="variable"]')),x){const L=x.dataset.multiKey;if(L){const T=/[、,,\s\n\r\t]+/,F=w.split(T).map(R=>R.trim()).filter(R=>R.length>0);if(F.length>1){const R=parseInt(x.dataset.index||"0",10),H=t.find(W=>Ue(W.type)&&W.key===L)?.maxCount||9,z=a[L]||1,D=Math.min(R+F.length,H);D>z&&l(ae=>({...ae,[L]:D}));const V=[];for(let ae=0;ae<z;ae++){const W=`${L}_${ae}`,le=n.current.querySelector(`[data-type="variable"][data-key="${W}"][data-multi-key="${L}"]`);if(le){const ce=le.innerText.replace(/[\u200B\n]/g,"").trim();V.push(ce)}}V.splice(R,1,...F.slice(0,H-R));const Y=V.slice(0,H);Y.length>0&&Y[Y.length-1]!==""&&Y.length<H&&Y.push("");const B=Math.max(Y.length,1),X={};Y.forEach((ae,W)=>{ae&&(X[`${L}_${W}`]=ae)}),n.current.querySelectorAll('[data-type="variable"]').forEach(ae=>{const W=ae.dataset.key,le=ae.dataset.multiKey;if(W&&le!==L){const ce=ae.innerText.replace(/[\u200B\n]/g,"").trim();ce&&(X[W]=ce)}}),n.current.__tempVariableValues=X,l(ae=>({...ae,[L]:B}));return}}const I=x.getAttribute("data-node-type")||"";if(!(I==="markdown"||I==="report-url"||I==="markdown-name")){const T=(()=>{const R=x.getAttribute("data-node-type")||"";if(R==="report-url"||R==="markdown"||R==="markdown-name")return!1;const H=x.dataset.multiKey;if(H)return t.find(Y=>Ue(Y.type)&&Y.key===H)?.allowNewline!==!1;const z=x.dataset.key;return t.find(V=>V.type==="variable"&&V.key===z)?.allowNewline!==!1})(),F=window.getSelection();if(F&&F.rangeCount>0){const R=F.getRangeAt(0);R.deleteContents();const H=document.createDocumentFragment(),D=(T?w:w.replace(/\n+/g," ")).split(`
|
|
42
|
-
`);for(let Y=0;Y<D.length;Y++)H.appendChild(document.createTextNode(D[Y])),T&&Y<D.length-1&&H.appendChild(document.createElement("br"));R.insertNode(H),F.removeAllRanges();const V=document.createRange();V.selectNodeContents(x),V.collapse(!1),F.addRange(V)}r();return}}}}let P=!1,O="";const C=window.getSelection();if(C&&C.rangeCount>0){const _=C.anchorNode;if(_){let x=null;if(_.nodeType===Node.ELEMENT_NODE?x=_.closest('[data-type="variable"]'):_.nodeType===Node.TEXT_NODE&&_.parentElement&&(x=_.parentElement.closest('[data-type="variable"]')),x){const L=x.getAttribute("data-node-type")||"",I=x.dataset.key;if(L==="markdown"&&I&&/20\d{2}-\d{2}-\d{2}/.test(w))P=!0,O=I,c.current[I]=w,d(N=>({...N,[I]:{...N[I],status:"loading",error:void 0}}));else if(L==="report-url"&&I){document.execCommand("insertText",!1,w),r(),setTimeout(()=>{const N=x.innerText.replace(/[\u200B\n]/g,"").trim();u.current(I,N)},0);return}else if(L==="markdown-name"&&I){document.execCommand("insertText",!1,w),r(),setTimeout(()=>{const N=x.innerText.replace(/[\u200B\n]/g,"").trim();s.current(I,N)},0);return}}}}if(P&&O){setTimeout(()=>{i.current(O,w)},0);return}document.execCommand("insertText",!1,w),r(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(w)&&o.current.tableData?.status==="success"&&(d(x=>({...x,tableData:{status:"loading",modules:[],lastParsedText:w,error:void 0}})),setTimeout(()=>{c.current.tableData=w,i.current("tableData",w)},0))},0)},[t,e,n,r,i,o,c,a,b,u,m,f,E,d,l]);async function qr(e){const t=e.split("/").pop()?.split("?")[0]||"file",a=decodeURIComponent(t),l=async n=>{const r=await n.blob();return new File([r],a,{type:r.type||"application/octet-stream"})};try{const n=`/api/image-proxy?url=${encodeURIComponent(e)}`,r=await fetch(n);if(r.ok)return l(r)}catch{}return null}const _c=({config:e,files:t,footerFiles:a,onFooterFilesClear:l,onSend:n,isProcessing:r,disabled:i,loading:u,isFormValid:s,editorRef:o,markdownAnalyzeState:c,markdownNameAnalyzeState:d,videoState:m})=>k.useCallback(()=>{if(r||i||u||!s||!o.current)return;if(e.length===0){const g=o.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!g&&a.length===0)return;if(a.length>0){const y=new FormData;y.append("fullPrompt",g),a.forEach(S=>{y.append("fileUrls",S)}),n(y,g),l()}else n(g,g);if(o.current){o.current.textContent="";const y=new Event("input",{bubbles:!0});o.current.dispatchEvent(y)}return}const f=o.current;let E="";const b={},h=g=>{if(!(g.nodeType===Node.ELEMENT_NODE&&g.style.display==="none")){if(g.nodeType===Node.TEXT_NODE)E+=(g.textContent||"").replace(/\u200B/g,"");else if(g.nodeType===Node.ELEMENT_NODE){const y=g,S=y.dataset.type,w=y.dataset.key;if(S==="variable"&&w){let A="";const P=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:_=>{const x=y.querySelector(".variable-info-icon");return x&&x.contains(_)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;P.nextNode();)A+=P.currentNode.textContent||"";const C=y.getAttribute("data-report-url")||A.replace(/[\u200B\n]/g,"").trim();if(C){const _=y.dataset.multiKey;if(_){(!b[_]||!Array.isArray(b[_]))&&(b[_]=[]);const x=b[_];x.push(C),x.length>1&&(E+=" "),E+=C}else b[w]=C,E+=C;if(y.dataset.nodeType==="report-url")if(b.url===void 0)b.url=C;else{const x=b.url;Array.isArray(x)?x.push(C):b.url=[String(x),C]}if(y.dataset.nodeType==="markdown-name"){const x=`${w}__sourceText`;b[x]===void 0&&(b[x]=C)}if(y.dataset.nodeType==="markdown"){const x=y.dataset.sourceTextKey||`${w}__sourceText`;if(b[x]===void 0)b[x]=C;else{const I=b[x];Array.isArray(I)?I.push(C):b[x]=[String(I),C]}const L=`${w}__markdown`;b[L]===void 0&&(b[L]=[$r(C)])}}}else if((S==="select"||S==="searchable-select"||S==="cascader")&&w){const A=(y.getAttribute("data-value")||"").trim();A&&(b[w]=A,E+=A)}else if(S==="textarea"&&w){const P=(y.value||"").replace(/\u200B/g,"").trim();P&&(b[w]=P,E+=P)}else if(S==="richtext"&&w){const A=y,P=A.dataset.nodeType,O=(A.textContent||"").replace(/\u200B/g,"").trim();if(O)if(P==="report-module"||P==="markdown-module"){(!b[w]||!Array.isArray(b[w]))&&(b[w]=[]);const C=b[w];C.push(O),C.length>1&&(E+=" "),E+=O}else b[w]=O,E+=O}else if(S==="datepicker"&&w){const P=(y.getAttribute("data-value")||"").trim();if(P)if(P.includes(",")){const O=P.split(",");O.length===2?(b[w]=O,E+=`[${O[0]}, ${O[1]}]`):(b[w]=P,E+=P)}else b[w]=P,E+=P}else if(S==="number-input"&&w){const P=(y.value||"").trim();P&&(b[w]=P,E+=P)}else if(S==="upload"&&w){const A=y.dataset.batchKey;if(A){const P=e.find(O=>O.type==="upload"&&O.key===A);if(P&&typeof P.maxCount=="number"&&typeof P.minCount=="number"){const O=[];for(let C=0;C<P.maxCount;C++){const _=`${A}-${C}`,x=t[_];x&&O.push(x)}b[A]||(b[A]=O.length>0?O:null,O.length>0&&(E+=` [附带${O.length}个文件: ${O.map(C=>typeof C=="string"?C.split("/").pop()||"file":C.name).join(", ")}] `))}else if(b[w]=t[w]??null,t[w]){const O=t[w];E+=` [附带文件: ${typeof O=="string"?O.split("/").pop()||"file":O.name}] `}}else if(b[w]=t[w]??null,t[w]){const P=t[w];E+=` [附带文件: ${typeof P=="string"?P.split("/").pop()||"file":P.name}] `}}else if((S==="video-url"||S==="video-upload")&&w){const A=m?.[w];if(A?.status==="success"&&A.videoUrl){b[w]=A.videoUrl,A.file&&(b[`${w}__file`]=A.file);const P=A.fileName||"视频";E+=` [附带视频: ${P}] `}}else{if(y.classList.contains("tag-close-btn")||y.classList.contains("file-remove-btn")||y.classList.contains("video-remove-btn"))return;y.getAttribute("contenteditable")==="false"&&!S&&y.classList.contains("tag-node")?E+=y.innerText:y.childNodes.forEach(h)}}}};if(f.childNodes.forEach(h),E=E.trim(),!E)return;Object.keys(c).forEach(g=>{const y=c[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),Object.keys(d).forEach(g=>{const y=d[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),(async()=>{for(const y of Object.keys(b)){const S=b[y];if(typeof S=="string"&&S.startsWith("http")){if(e.find(A=>A.type==="upload"&&A.key===y)){const A=await qr(S);A&&(b[y]=A)}}else if(Array.isArray(S)&&e.find(A=>A.type==="upload"&&A.key===y)){for(let A=0;A<S.length;A++)if(typeof S[A]=="string"&&S[A].startsWith("http")){const P=await qr(S[A]);P&&(S[A]=P)}}}const g=new FormData;g.append("fullPrompt",E),Object.keys(b).forEach(y=>{const S=b[y];if(S!=null)if(S instanceof File)g.append(y,S);else if(Array.isArray(S)){const w=e.some(C=>Ue(C.type)&&C.key===y),A=e.some(C=>C.type==="report-url"&&C.key===y),P=y.endsWith("__markdown");w||A||P||y==="url"?S.forEach(C=>{C!=null&&C!==""&&g.append(y,String(C))}):S.forEach((C,_)=>{C!=null&&(C instanceof File?g.append(`${y}[${_}]`,C):typeof C=="string"?g.append(`${y}[${_}]`,C):g.append(`${y}[${_}]`,String(C)))})}else typeof S=="string"?g.append(y,S):g.append(y,String(S))}),a.length>0&&a.forEach(y=>{g.append("fileUrls",y)}),n(g,E),a.length>0&&l()})()},[e,t,a,l,n,r,i,u,s,o,c,d,m]);function zr(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Gl(e={},t={}){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:zr(t[l])&&zr(e[l])&&Object.keys(t[l]).length>0&&Gl(e[l],t[l])})}const Vr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Pt(){const e=typeof document<"u"?document:{};return Gl(e,Vr),e}const kc={document:Vr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ge(){const e=typeof window<"u"?window:{};return Gl(e,kc),e}function Nc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function Ic(e){const t=e;Object.keys(t).forEach(a=>{try{t[a]=null}catch{}try{delete t[a]}catch{}})}function Gr(e,t=0){return setTimeout(e,t)}function tl(){return Date.now()}function Lc(e){const t=Ge();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}function Oc(e,t="x"){const a=Ge();let l,n,r;const i=Lc(e);return a.WebKitCSSMatrix?(n=i.transform||i.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(u=>u.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix(n==="none"?"":n)):(r=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=r.toString().split(",")),t==="x"&&(a.WebKitCSSMatrix?n=r.m41:l.length===16?n=parseFloat(l[12]):n=parseFloat(l[4])),t==="y"&&(a.WebKitCSSMatrix?n=r.m42:l.length===16?n=parseFloat(l[13]):n=parseFloat(l[5])),n||0}function al(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Dc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ke(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let l=1;l<e.length;l+=1){const n=e[l];if(n!=null&&!Dc(n)){const r=Object.keys(Object(n)).filter(i=>a.indexOf(i)<0);for(let i=0,u=r.length;i<u;i+=1){const s=r[i],o=Object.getOwnPropertyDescriptor(n,s);o!==void 0&&o.enumerable&&(al(t[s])&&al(n[s])?n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s]):!al(t[s])&&al(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s])):t[s]=n[s])}}}return t}function Gt(e,t,a){e.style.setProperty(t,a)}function Yr({swiper:e,targetPosition:t,side:a}){const l=Ge(),n=-e.translate;let r=null,i;const u=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const s=t>n?"next":"prev",o=(d,m)=>s==="next"&&d>=m||s==="prev"&&d<=m,c=()=>{i=new Date().getTime(),r===null&&(r=i);const d=Math.max(Math.min((i-r)/u,1),0),m=.5-Math.cos(d*Math.PI)/2;let f=n+m*(t-n);if(o(f,t)&&(f=t),e.wrapperEl.scrollTo({[a]:f}),o(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:f})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(c)};c()}function st(e,t=""){const a=Ge(),l=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&l.push(...e.assignedElements()),t?l.filter(n=>n.matches(t)):l}function Pc(e,t){const a=[t];for(;a.length>0;){const l=a.shift();if(e===l)return!0;a.push(...l.children,...l.shadowRoot?l.shadowRoot.children:[],...l.assignedElements?l.assignedElements():[])}}function Mc(e,t){const a=Ge();let l=t.contains(e);return!l&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(l=[...t.assignedElements()].includes(e),l||(l=Pc(e,t))),l}function ll(e){try{console.warn(e);return}catch{}}function nl(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:Nc(t)),a}function Bc(e,t){const a=[];for(;e.previousElementSibling;){const l=e.previousElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function Fc(e,t){const a=[];for(;e.nextElementSibling;){const l=e.nextElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function Ct(e,t){return Ge().getComputedStyle(e,null).getPropertyValue(t)}function rl(e){let t=e,a;if(t){for(a=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(a+=1);return a}}function Wr(e,t){const a=[];let l=e.parentElement;for(;l;)t?l.matches(t)&&a.push(l):a.push(l),l=l.parentElement;return a}function Yl(e,t,a){const l=Ge();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Be(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function oa(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:a=>a}).createHTML(t):e.innerHTML=t}let Wl;function Rc(){const e=Ge(),t=Pt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function jr(){return Wl||(Wl=Rc()),Wl}let jl;function Hc({userAgent:e}={}){const t=jr(),a=Ge(),l=a.navigator.platform,n=e||a.navigator.userAgent,r={ios:!1,android:!1},i=a.screen.width,u=a.screen.height,s=n.match(/(Android);?[\s\/]+([\d.]+)?/);let o=n.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=n.match(/(iPod)(.*OS\s([\d_]+))?/),d=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let f=l==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&f&&t.touch&&E.indexOf(`${i}x${u}`)>=0&&(o=n.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),f=!1),s&&!m&&(r.os="android",r.android=!0),(o||d||c)&&(r.os="ios",r.ios=!0),r}function Xr(e={}){return jl||(jl=Hc(e)),jl}let Xl;function $c(){const e=Ge(),t=Xr();let a=!1;function l(){const u=e.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(l()){const u=String(e.navigator.userAgent);if(u.includes("Version/")){const[s,o]=u.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));a=s<16||s===16&&o<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=l(),i=r||n&&t.ios;return{isSafari:a||r,needPerspectiveFix:a,need3dFix:i,isWebView:n}}function Kr(){return Xl||(Xl=$c()),Xl}function Uc({swiper:e,on:t,emit:a}){const l=Ge();let n=null,r=null;const i=()=>{!e||e.destroyed||!e.initialized||(a("beforeResize"),a("resize"))},u=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(c=>{r=l.requestAnimationFrame(()=>{const{width:d,height:m}=e;let f=d,E=m;c.forEach(({contentBoxSize:b,contentRect:h,target:v})=>{v&&v!==e.el||(f=h?h.width:(b[0]||b).inlineSize,E=h?h.height:(b[0]||b).blockSize)}),(f!==d||E!==m)&&i()})}),n.observe(e.el))},s=()=>{r&&l.cancelAnimationFrame(r),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},o=()=>{!e||e.destroyed||!e.initialized||a("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){u();return}l.addEventListener("resize",i),l.addEventListener("orientationchange",o)}),t("destroy",()=>{s(),l.removeEventListener("resize",i),l.removeEventListener("orientationchange",o)})}function qc({swiper:e,extendParams:t,on:a,emit:l}){const n=[],r=Ge(),i=(o,c={})=>{const d=r.MutationObserver||r.WebkitMutationObserver,m=new d(f=>{if(e.__preventObserver__)return;if(f.length===1){l("observerUpdate",f[0]);return}const E=function(){l("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(E):r.setTimeout(E,0)});m.observe(o,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),n.push(m)},u=()=>{if(e.params.observer){if(e.params.observeParents){const o=Wr(e.hostEl);for(let c=0;c<o.length;c+=1)i(o[c])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},s=()=>{n.forEach(o=>{o.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",u),a("destroy",s)}var zc={on(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;const n=a?"unshift":"push";return e.split(" ").forEach(r=>{l.eventsListeners[r]||(l.eventsListeners[r]=[]),l.eventsListeners[r][n](t)}),l},once(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;function n(...r){l.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(l,r)}return n.__emitterProxy=t,l.on(e,n,a)},onAny(e,t){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;const l=t?"unshift":"push";return a.eventsAnyListeners.indexOf(e)<0&&a.eventsAnyListeners[l](e),a},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const a=t.eventsAnyListeners.indexOf(e);return a>=0&&t.eventsAnyListeners.splice(a,1),t},off(e,t){const a=this;return!a.eventsListeners||a.destroyed||!a.eventsListeners||e.split(" ").forEach(l=>{typeof t>"u"?a.eventsListeners[l]=[]:a.eventsListeners[l]&&a.eventsListeners[l].forEach((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&a.eventsListeners[l].splice(r,1)})}),a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let a,l,n;return typeof e[0]=="string"||Array.isArray(e[0])?(a=e[0],l=e.slice(1,e.length),n=t):(a=e[0].events,l=e[0].data,n=e[0].context||t),l.unshift(n),(Array.isArray(a)?a:a.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[i,...l])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(u=>{u.apply(n,l)})}),t}};function Vc(){const e=this;let t,a;const l=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=l.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?a=e.params.height:a=l.clientHeight,!(t===0&&e.isHorizontal()||a===0&&e.isVertical())&&(t=t-parseInt(Ct(l,"padding-left")||0,10)-parseInt(Ct(l,"padding-right")||0,10),a=a-parseInt(Ct(l,"padding-top")||0,10)-parseInt(Ct(l,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))}function Gc(){const e=this;function t(_,x){return parseFloat(_.getPropertyValue(e.getDirectionLabel(x))||0)}const a=e.params,{wrapperEl:l,slidesEl:n,rtlTranslate:r,wrongRTL:i}=e,u=e.virtual&&a.virtual.enabled,s=u?e.virtual.slides.length:e.slides.length,o=st(n,`.${e.params.slideClass}, swiper-slide`),c=u?e.virtual.slides.length:o.length;let d=[];const m=[],f=[];let E=a.slidesOffsetBefore;typeof E=="function"&&(E=a.slidesOffsetBefore.call(e));let b=a.slidesOffsetAfter;typeof b=="function"&&(b=a.slidesOffsetAfter.call(e));const h=e.snapGrid.length,v=e.slidesGrid.length,g=e.size-E-b;let y=a.spaceBetween,S=-E,w=0,A=0;if(typeof g>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*g:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-E-b,o.forEach(_=>{r?_.style.marginLeft="":_.style.marginRight="",_.style.marginBottom="",_.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(Gt(l,"--swiper-centered-offset-before",""),Gt(l,"--swiper-centered-offset-after","")),a.cssMode&&(Gt(l,"--swiper-slides-offset-before",`${E}px`),Gt(l,"--swiper-slides-offset-after",`${b}px`));const P=a.grid&&a.grid.rows>1&&e.grid;P?e.grid.initSlides(o):e.grid&&e.grid.unsetSlides();let O;const C=a.slidesPerView==="auto"&&a.breakpoints&&Object.keys(a.breakpoints).filter(_=>typeof a.breakpoints[_].slidesPerView<"u").length>0;for(let _=0;_<c;_+=1){O=0;const x=o[_];if(!(x&&(P&&e.grid.updateSlide(_,x,o),Ct(x,"display")==="none"))){if(u&&a.slidesPerView==="auto")a.virtual.slidesPerViewAutoSlideSize&&(O=a.virtual.slidesPerViewAutoSlideSize),O&&x&&(a.roundLengths&&(O=Math.floor(O)),x.style[e.getDirectionLabel("width")]=`${O}px`);else if(a.slidesPerView==="auto"){C&&(x.style[e.getDirectionLabel("width")]="");const L=getComputedStyle(x),I=x.style.transform,N=x.style.webkitTransform;if(I&&(x.style.transform="none"),N&&(x.style.webkitTransform="none"),a.roundLengths)O=e.isHorizontal()?Yl(x,"width"):Yl(x,"height");else{const T=t(L,"width"),F=t(L,"padding-left"),R=t(L,"padding-right"),H=t(L,"margin-left"),z=t(L,"margin-right"),D=L.getPropertyValue("box-sizing");if(D&&D==="border-box")O=T+H+z;else{const{clientWidth:V,offsetWidth:Y}=x;O=T+F+R+H+z+(Y-V)}}I&&(x.style.transform=I),N&&(x.style.webkitTransform=N),a.roundLengths&&(O=Math.floor(O))}else O=(g-(a.slidesPerView-1)*y)/a.slidesPerView,a.roundLengths&&(O=Math.floor(O)),x&&(x.style[e.getDirectionLabel("width")]=`${O}px`);x&&(x.swiperSlideSize=O),f.push(O),a.centeredSlides?(S=S+O/2+w/2+y,w===0&&_!==0&&(S=S-g/2-y),_===0&&(S=S-g/2-y),Math.abs(S)<1/1e3&&(S=0),a.roundLengths&&(S=Math.floor(S)),A%a.slidesPerGroup===0&&d.push(S),m.push(S)):(a.roundLengths&&(S=Math.floor(S)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&d.push(S),m.push(S),S=S+O+y),e.virtualSize+=O+y,w=O,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,g)+b,r&&i&&(a.effect==="slide"||a.effect==="coverflow")&&(l.style.width=`${e.virtualSize+y}px`),a.setWrapperSize&&(l.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),P&&e.grid.updateWrapperSize(O,d),!a.centeredSlides){const _=a.slidesPerView!=="auto"&&a.slidesPerView%1!==0,x=a.snapToSlideEdge&&!a.loop&&(a.slidesPerView==="auto"||_);let L=d.length;if(x){let N;if(a.slidesPerView==="auto"){N=1;let T=0;for(let F=f.length-1;F>=0&&(T+=f[F]+(F<f.length-1?y:0),T<=g);F-=1)N=f.length-F}else N=Math.floor(a.slidesPerView);L=Math.max(c-N,0)}const I=[];for(let N=0;N<d.length;N+=1){let T=d[N];a.roundLengths&&(T=Math.floor(T)),x?N<=L&&I.push(T):d[N]<=e.virtualSize-g&&I.push(T)}d=I,Math.floor(e.virtualSize-g)-Math.floor(d[d.length-1])>1&&(x||d.push(e.virtualSize-g))}if(u&&a.loop){const _=f[0]+y;if(a.slidesPerGroup>1){const x=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/a.slidesPerGroup),L=_*a.slidesPerGroup;for(let I=0;I<x;I+=1)d.push(d[d.length-1]+L)}for(let x=0;x<e.virtual.slidesBefore+e.virtual.slidesAfter;x+=1)a.slidesPerGroup===1&&d.push(d[d.length-1]+_),m.push(m[m.length-1]+_),e.virtualSize+=_}if(d.length===0&&(d=[0]),y!==0){const _=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");o.filter((x,L)=>!a.cssMode||a.loop?!0:L!==o.length-1).forEach(x=>{x.style[_]=`${y}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let _=0;f.forEach(L=>{_+=L+(y||0)}),_-=y;const x=_>g?_-g:0;d=d.map(L=>L<=0?-E:L>x?x+b:L)}if(a.centerInsufficientSlides){let _=0;f.forEach(L=>{_+=L+(y||0)}),_-=y;const x=(E||0)+(b||0);if(_+x<g){const L=(g-_-x)/2;d.forEach((I,N)=>{d[N]=I-L}),m.forEach((I,N)=>{m[N]=I+L})}}if(Object.assign(e,{slides:o,snapGrid:d,slidesGrid:m,slidesSizesGrid:f}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){Gt(l,"--swiper-centered-offset-before",`${-d[0]}px`),Gt(l,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const _=-e.snapGrid[0],x=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+_),e.slidesGrid=e.slidesGrid.map(L=>L+x)}if(c!==s&&e.emit("slidesLengthChange"),d.length!==h&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==v&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!u&&!a.cssMode&&(a.effect==="slide"||a.effect==="fade")){const _=`${a.containerModifierClass}backface-hidden`,x=e.el.classList.contains(_);c<=a.maxBackfaceHiddenSlides?x||e.el.classList.add(_):x&&e.el.classList.remove(_)}}function Yc(e){const t=this,a=[],l=t.virtual&&t.params.virtual.enabled;let n=0,r;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=u=>l?t.slides[t.getSlideIndexByData(u)]:t.slides[u];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(u=>{a.push(u)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const u=t.activeIndex+r;if(u>t.slides.length&&!l)break;a.push(i(u))}else a.push(i(t.activeIndex));for(r=0;r<a.length;r+=1)if(typeof a[r]<"u"){const u=a[r].offsetHeight;n=u>n?u:n}(n||n===0)&&(t.wrapperEl.style.height=`${n}px`)}function Wc(){const e=this,t=e.slides,a=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let l=0;l<t.length;l+=1)t[l].swiperSlideOffset=(e.isHorizontal()?t[l].offsetLeft:t[l].offsetTop)-a-e.cssOverflowAdjustment()}const Qr=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function jc(e=this&&this.translate||0){const t=this,a=t.params,{slides:l,rtlTranslate:n,snapGrid:r}=t;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;n&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let u=a.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u));for(let s=0;s<l.length;s+=1){const o=l[s];let c=o.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(c-=l[0].swiperSlideOffset);const d=(i+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),m=(i-r[0]+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),f=-(i-c),E=f+t.slidesSizesGrid[s],b=f>=0&&f<=t.size-t.slidesSizesGrid[s],h=f>=0&&f<t.size-1||E>1&&E<=t.size||f<=0&&E>=t.size;h&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s)),Qr(o,h,a.slideVisibleClass),Qr(o,b,a.slideFullyVisibleClass),o.progress=n?-d:d,o.originalProgress=n?-m:m}}function Xc(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const a=t.params,l=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:i,progressLoop:u}=t;const s=r,o=i;if(l===0)n=0,r=!0,i=!0;else{n=(e-t.minTranslate())/l;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;r=c||n<=0,i=d||n>=1,c&&(n=0),d&&(n=1)}if(a.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[c],f=t.slidesGrid[d],E=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=m?u=(b-m)/E:u=(b+E-f)/E,u>1&&(u-=1)}Object.assign(t,{progress:n,progressLoop:u,isBeginning:r,isEnd:i}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),r&&!s&&t.emit("reachBeginning toEdge"),i&&!o&&t.emit("reachEnd toEdge"),(s&&!r||o&&!i)&&t.emit("fromEdge"),t.emit("progress",n)}const Kl=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function Kc(){const e=this,{slides:t,params:a,slidesEl:l,activeIndex:n}=e,r=e.virtual&&a.virtual.enabled,i=e.grid&&a.grid&&a.grid.rows>1,u=d=>st(l,`.${a.slideClass}${d}, swiper-slide${d}`)[0];let s,o,c;if(r)if(a.loop){let d=n-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),s=u(`[data-swiper-slide-index="${d}"]`)}else s=u(`[data-swiper-slide-index="${n}"]`);else i?(s=t.find(d=>d.column===n),c=t.find(d=>d.column===n+1),o=t.find(d=>d.column===n-1)):s=t[n];s&&(i||(c=Fc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!c&&(c=t[0]),o=Bc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!o===0&&(o=t[t.length-1]))),t.forEach(d=>{Kl(d,d===s,a.slideActiveClass),Kl(d,d===c,a.slideNextClass),Kl(d,d===o,a.slidePrevClass)}),e.emitSlidesClasses()}const il=(e,t)=>{if(!e||e.destroyed||!e.params)return;const a=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,l=t.closest(a());if(l){let n=l.querySelector(`.${e.params.lazyPreloaderClass}`);!n&&e.isElement&&(l.shadowRoot?n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),n&&!n.lazyPreloaderManaged&&n.remove())})),n&&!n.lazyPreloaderManaged&&n.remove()}},Ql=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},Jl=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const a=e.slides.length;if(!a||!t||t<0)return;t=Math.min(t,a);const l=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,u=[i-t];u.push(...Array.from({length:t}).map((s,o)=>i+l+o)),e.slides.forEach((s,o)=>{u.includes(s.column)&&Ql(e,o)});return}const r=n+l-1;if(e.params.rewind||e.params.loop)for(let i=n-t;i<=r+t;i+=1){const u=(i%a+a)%a;(u<n||u>r)&&Ql(e,u)}else for(let i=Math.max(n-t,0);i<=Math.min(r+t,a-1);i+=1)i!==n&&(i>r||i<n)&&Ql(e,i)};function Qc(e){const{slidesGrid:t,params:a}=e,l=e.rtlTranslate?e.translate:-e.translate;let n;for(let r=0;r<t.length;r+=1)typeof t[r+1]<"u"?l>=t[r]&&l<t[r+1]-(t[r+1]-t[r])/2?n=r:l>=t[r]&&l<t[r+1]&&(n=r+1):l>=t[r]&&(n=r);return a.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Jc(e){const t=this,a=t.rtlTranslate?t.translate:-t.translate,{snapGrid:l,params:n,activeIndex:r,realIndex:i,snapIndex:u}=t;let s=e,o;const c=f=>{let E=f-t.virtual.slidesBefore;return E<0&&(E=t.virtual.slides.length+E),E>=t.virtual.slides.length&&(E-=t.virtual.slides.length),E};if(typeof s>"u"&&(s=Qc(t)),l.indexOf(a)>=0)o=l.indexOf(a);else{const f=Math.min(n.slidesPerGroupSkip,s);o=f+Math.floor((s-f)/n.slidesPerGroup)}if(o>=l.length&&(o=l.length-1),s===r&&!t.params.loop){o!==u&&(t.snapIndex=o,t.emit("snapIndexChange"));return}if(s===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(s);return}const d=t.grid&&n.grid&&n.grid.rows>1;let m;if(t.virtual&&n.virtual.enabled)n.loop?m=c(s):m=s;else if(d){const f=t.slides.find(b=>b.column===s);let E=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(E)&&(E=Math.max(t.slides.indexOf(f),0)),m=Math.floor(E/n.grid.rows)}else if(t.slides[s]){const f=t.slides[s].getAttribute("data-swiper-slide-index");f?m=parseInt(f,10):m=s}else m=s;Object.assign(t,{previousSnapIndex:u,snapIndex:o,previousRealIndex:i,realIndex:m,previousIndex:r,activeIndex:s}),t.initialized&&Jl(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function Zc(e,t){const a=this,l=a.params;let n=e.closest(`.${l.slideClass}, swiper-slide`);!n&&a.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(u=>{!n&&u.matches&&u.matches(`.${l.slideClass}, swiper-slide`)&&(n=u)});let r=!1,i;if(n){for(let u=0;u<a.slides.length;u+=1)if(a.slides[u]===n){r=!0,i=u;break}}if(n&&r)a.clickedSlide=n,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):a.clickedIndex=i;else{a.clickedSlide=void 0,a.clickedIndex=void 0;return}l.slideToClickedSlide&&a.clickedIndex!==void 0&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()}var ed={updateSize:Vc,updateSlides:Gc,updateAutoHeight:Yc,updateSlidesOffset:Wc,updateSlidesProgress:jc,updateProgress:Xc,updateSlidesClasses:Kc,updateActiveIndex:Jc,updateClickedSlide:Zc};function td(e=this.isHorizontal()?"x":"y"){const t=this,{params:a,rtlTranslate:l,translate:n,wrapperEl:r}=t;if(a.virtualTranslate)return l?-n:n;if(a.cssMode)return n;let i=Oc(r,e);return i+=t.cssOverflowAdjustment(),l&&(i=-i),i||0}function ad(e,t){const a=this,{rtlTranslate:l,params:n,wrapperEl:r,progress:i}=a;let u=0,s=0;const o=0;a.isHorizontal()?u=l?-e:e:s=e,n.roundLengths&&(u=Math.floor(u),s=Math.floor(s)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?u:s,n.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-u:-s:n.virtualTranslate||(a.isHorizontal()?u-=a.cssOverflowAdjustment():s-=a.cssOverflowAdjustment(),r.style.transform=`translate3d(${u}px, ${s}px, ${o}px)`);let c;const d=a.maxTranslate()-a.minTranslate();d===0?c=0:c=(e-a.minTranslate())/d,c!==i&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)}function ld(){return-this.snapGrid[0]}function nd(){return-this.snapGrid[this.snapGrid.length-1]}function rd(e=0,t=this.params.speed,a=!0,l=!0,n){const r=this,{params:i,wrapperEl:u}=r;if(r.animating&&i.preventInteractionOnTransition)return!1;const s=r.minTranslate(),o=r.maxTranslate();let c;if(l&&e>s?c=s:l&&e<o?c=o:c=e,r.updateProgress(c),i.cssMode){const d=r.isHorizontal();if(t===0)u[d?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return Yr({swiper:r,targetPosition:-c,side:d?"left":"top"}),!0;u.scrollTo({[d?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(r.setTransition(0),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(m){!r||r.destroyed||m.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,a&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var id={getTranslate:td,setTranslate:ad,minTranslate:ld,maxTranslate:nd,translateTo:rd};function ud(e,t){const a=this;a.params.cssMode||(a.wrapperEl.style.transitionDuration=`${e}ms`,a.wrapperEl.style.transitionDelay=e===0?"0ms":""),a.emit("setTransition",e,t)}function Jr({swiper:e,runCallbacks:t,direction:a,step:l}){const{activeIndex:n,previousIndex:r}=e;let i=a;i||(n>r?i="next":n<r?i="prev":i="reset"),e.emit(`transition${l}`),t&&i==="reset"?e.emit(`slideResetTransition${l}`):t&&n!==r&&(e.emit(`slideChangeTransition${l}`),i==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`))}function sd(e=!0,t){const a=this,{params:l}=a;l.cssMode||(l.autoHeight&&a.updateAutoHeight(),Jr({swiper:a,runCallbacks:e,direction:t,step:"Start"}))}function od(e=!0,t){const a=this,{params:l}=a;a.animating=!1,!l.cssMode&&(a.setTransition(0),Jr({swiper:a,runCallbacks:e,direction:t,step:"End"}))}var cd={setTransition:ud,transitionStart:sd,transitionEnd:od};function dd(e=0,t,a=!0,l,n){typeof e=="string"&&(e=parseInt(e,10));const r=this;let i=e;i<0&&(i=0);const{params:u,snapGrid:s,slidesGrid:o,previousIndex:c,activeIndex:d,rtlTranslate:m,wrapperEl:f,enabled:E}=r;if(!E&&!l&&!n||r.destroyed||r.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const b=Math.min(r.params.slidesPerGroupSkip,i);let h=b+Math.floor((i-b)/r.params.slidesPerGroup);h>=s.length&&(h=s.length-1);const v=-s[h];if(u.normalizeSlideIndex)for(let P=0;P<o.length;P+=1){const O=-Math.floor(v*100),C=Math.floor(o[P]*100),_=Math.floor(o[P+1]*100);typeof o[P+1]<"u"?O>=C&&O<_-(_-C)/2?i=P:O>=C&&O<_&&(i=P+1):O>=C&&(i=P)}if(r.initialized&&i!==d&&(!r.allowSlideNext&&(m?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate())||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(d||0)!==i))return!1;i!==(c||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let g;i>d?g="next":i<d?g="prev":g="reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&n)&&(m&&-v===r.translate||!m&&v===r.translate))return r.updateActiveIndex(i),u.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),u.effect!=="slide"&&r.setTranslate(v),g!=="reset"&&(r.transitionStart(a,g),r.transitionEnd(a,g)),!1;if(u.cssMode){const P=r.isHorizontal(),O=m?v:-v;if(t===0)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[P?"scrollLeft":"scrollTop"]=O})):f[P?"scrollLeft":"scrollTop"]=O,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Yr({swiper:r,targetPosition:O,side:P?"left":"top"}),!0;f.scrollTo({[P?"left":"top"]:O,behavior:"smooth"})}return!0}const A=Kr().isSafari;return y&&!n&&A&&r.isElement&&r.virtual.update(!1,!1,i),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(i),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,l),r.transitionStart(a,g),t===0?r.transitionEnd(a,g):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(O){!r||r.destroyed||O.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(a,g))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function fd(e=0,t,a=!0,l){typeof e=="string"&&(e=parseInt(e,10));const n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let i=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)i=i+n.virtual.slidesBefore;else{let u;if(r){const b=i*n.params.grid.rows;u=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).column}else u=n.getSlideIndexByData(i);const s=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:o,slidesOffsetBefore:c,slidesOffsetAfter:d}=n.params,m=o||!!c||!!d;let f=n.params.slidesPerView;f==="auto"?f=n.slidesPerViewDynamic():(f=Math.ceil(parseFloat(n.params.slidesPerView,10)),m&&f%2===0&&(f=f+1));let E=s-u<f;if(m&&(E=E||u<Math.ceil(f/2)),l&&m&&n.params.slidesPerView!=="auto"&&!r&&(E=!1),E){const b=m?u<n.activeIndex?"prev":"next":u-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:b,slideTo:!0,activeSlideIndex:b==="next"?u+1:u-s+1,slideRealIndex:b==="next"?n.realIndex:void 0})}if(r){const b=i*n.params.grid.rows;i=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).column}else i=n.getSlideIndexByData(i)}return requestAnimationFrame(()=>{n.slideTo(i,t,a,l)}),n}function pd(e,t=!0,a){const l=this,{enabled:n,params:r,animating:i}=l;if(!n||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);let u=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(u=Math.max(l.slidesPerViewDynamic("current",!0),1));const s=l.activeIndex<r.slidesPerGroupSkip?1:u,o=l.virtual&&r.virtual.enabled;if(r.loop){if(i&&!o&&r.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+s,e,t,a)}),!0}return r.rewind&&l.isEnd?l.slideTo(0,e,t,a):l.slideTo(l.activeIndex+s,e,t,a)}function hd(e,t=!0,a){const l=this,{params:n,snapGrid:r,slidesGrid:i,rtlTranslate:u,enabled:s,animating:o}=l;if(!s||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);const c=l.virtual&&n.virtual.enabled;if(n.loop){if(o&&!c&&n.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const d=u?l.translate:-l.translate;function m(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const f=m(d),E=r.map(g=>m(g)),b=n.freeMode&&n.freeMode.enabled;let h=r[E.indexOf(f)-1];if(typeof h>"u"&&(n.cssMode||b)){let g;r.forEach((y,S)=>{f>=y&&(g=S)}),typeof g<"u"&&(h=b?r[g]:r[g>0?g-1:g])}let v=0;if(typeof h<"u"&&(v=i.indexOf(h),v<0&&(v=l.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(v=v-l.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),n.rewind&&l.isBeginning){const g=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(g,e,t,a)}else if(n.loop&&l.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{l.slideTo(v,e,t,a)}),!0;return l.slideTo(v,e,t,a)}function bd(e,t=!0,a){const l=this;if(!l.destroyed)return typeof e>"u"&&(e=l.params.speed),l.slideTo(l.activeIndex,e,t,a)}function md(e,t=!0,a,l=.5){const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);let r=n.activeIndex;const i=Math.min(n.params.slidesPerGroupSkip,r),u=i+Math.floor((r-i)/n.params.slidesPerGroup),s=n.rtlTranslate?n.translate:-n.translate;if(s>=n.snapGrid[u]){const o=n.snapGrid[u],c=n.snapGrid[u+1];s-o>(c-o)*l&&(r+=n.params.slidesPerGroup)}else{const o=n.snapGrid[u-1],c=n.snapGrid[u];s-o<=(c-o)*l&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,a)}function vd(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:a}=e,l=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let n=e.getSlideIndexWhenGrid(e.clickedIndex),r;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):n>(u?(e.slides.length-l)/2-(e.params.grid.rows-1):e.slides.length-l)?(e.loopFix(),n=e.getSlideIndex(st(a,`${i}[data-swiper-slide-index="${r}"]`)[0]),Gr(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}var gd={slideTo:dd,slideToLoop:fd,slideNext:pd,slidePrev:hd,slideReset:bd,slideToClosest:md,slideToClickedSlide:vd};function Ed(e,t){const a=this,{params:l,slidesEl:n}=a;if(!l.loop||a.virtual&&a.params.virtual.enabled)return;const r=()=>{st(n,`.${l.slideClass}, swiper-slide`).forEach((E,b)=>{E.setAttribute("data-swiper-slide-index",b)})},i=()=>{const f=st(n,`.${l.slideBlankClass}`);f.forEach(E=>{E.remove()}),f.length>0&&(a.recalcSlides(),a.updateSlides())},u=a.grid&&l.grid&&l.grid.rows>1;l.loopAddBlankSlides&&(l.slidesPerGroup>1||u)&&i();const s=l.slidesPerGroup*(u?l.grid.rows:1),o=a.slides.length%s!==0,c=u&&a.slides.length%l.grid.rows!==0,d=f=>{for(let E=0;E<f;E+=1){const b=a.isElement?nl("swiper-slide",[l.slideBlankClass]):nl("div",[l.slideClass,l.slideBlankClass]);a.slidesEl.append(b)}};if(o){if(l.loopAddBlankSlides){const f=s-a.slides.length%s;d(f),a.recalcSlides(),a.updateSlides()}else ll("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(l.loopAddBlankSlides){const f=l.grid.rows-a.slides.length%l.grid.rows;d(f),a.recalcSlides(),a.updateSlides()}else ll("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();const m=l.centeredSlides||!!l.slidesOffsetBefore||!!l.slidesOffsetAfter;a.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function yd({slideRealIndex:e,slideTo:t=!0,direction:a,setTranslate:l,activeSlideIndex:n,initial:r,byController:i,byMousewheel:u}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:o,allowSlidePrev:c,allowSlideNext:d,slidesEl:m,params:f}=s,{centeredSlides:E,slidesOffsetBefore:b,slidesOffsetAfter:h,initialSlide:v}=f,g=E||!!b||!!h;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!g&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):g&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=d,s.emit("loopFix");return}let y=f.slidesPerView;y==="auto"?y=s.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),g&&y%2===0&&(y=y+1));const S=f.slidesPerGroupAuto?y:f.slidesPerGroup;let w=g?Math.max(S,Math.ceil(y/2)):S;w%S!==0&&(w+=S-w%S),w+=f.loopAdditionalSlides,s.loopedSlides=w;const A=s.grid&&f.grid&&f.grid.rows>1;o.length<y+w||s.params.effect==="cards"&&o.length<y+w*2?ll("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):A&&f.grid.fill==="row"&&ll("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const P=[],O=[],C=A?Math.ceil(o.length/f.grid.rows):o.length,_=r&&C-v<y&&!g;let x=_?v:s.activeIndex;typeof n>"u"?n=s.getSlideIndex(o.find(H=>H.classList.contains(f.slideActiveClass))):x=n;const L=a==="next"||!a,I=a==="prev"||!a;let N=0,T=0;const R=(A?o[n].column:n)+(g&&typeof l>"u"?-y/2+.5:0);if(R<w){N=Math.max(w-R,S);for(let H=0;H<w-R;H+=1){const z=H-Math.floor(H/C)*C;if(A){const D=C-z-1;for(let V=o.length-1;V>=0;V-=1)o[V].column===D&&P.push(V)}else P.push(C-z-1)}}else if(R+y>C-w){T=Math.max(R-(C-w*2),S),_&&(T=Math.max(T,y-C+v+1));for(let H=0;H<T;H+=1){const z=H-Math.floor(H/C)*C;A?o.forEach((D,V)=>{D.column===z&&O.push(V)}):O.push(z)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),s.params.effect==="cards"&&o.length<y+w*2&&(O.includes(n)&&O.splice(O.indexOf(n),1),P.includes(n)&&P.splice(P.indexOf(n),1)),I&&P.forEach(H=>{o[H].swiperLoopMoveDOM=!0,m.prepend(o[H]),o[H].swiperLoopMoveDOM=!1}),L&&O.forEach(H=>{o[H].swiperLoopMoveDOM=!0,m.append(o[H]),o[H].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"?s.updateSlides():A&&(P.length>0&&I||O.length>0&&L)&&s.slides.forEach((H,z)=>{s.grid.updateSlide(z,H,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(P.length>0&&I){if(typeof e>"u"){const H=s.slidesGrid[x],D=s.slidesGrid[x+N]-H;u?s.setTranslate(s.translate-D):(s.slideTo(x+Math.ceil(N),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-D,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-D))}else if(l){const H=A?P.length/f.grid.rows:P.length;s.slideTo(s.activeIndex+H,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(O.length>0&&L)if(typeof e>"u"){const H=s.slidesGrid[x],D=s.slidesGrid[x-T]-H;u?s.setTranslate(s.translate-D):(s.slideTo(x-T,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-D,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-D))}else{const H=A?O.length/f.grid.rows:O.length;s.slideTo(s.activeIndex-H,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=d,s.controller&&s.controller.control&&!i){const H={slideRealIndex:e,direction:a,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...H,slideTo:z.params.slidesPerView===f.slidesPerView?t:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...H,slideTo:s.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}s.emit("loopFix")}function Td(){const e=this,{params:t,slidesEl:a}=e;if(!t.loop||!a||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const l=[];e.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;l[r]=n}),e.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),l.forEach(n=>{a.append(n)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var xd={loopCreate:Ed,loopFix:yd,loopDestroy:Td};function Cd(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const a=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Sd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Ad={setGrabCursor:Cd,unsetGrabCursor:Sd};function wd(e,t=this){function a(l){if(!l||l===Pt()||l===Ge())return null;l.assignedSlot&&(l=l.assignedSlot);const n=l.closest(e);return!n&&!l.getRootNode?null:n||a(l.getRootNode().host)}return a(t)}function Zr(e,t,a){const l=Ge(),{params:n}=e,r=n.edgeSwipeDetection,i=n.edgeSwipeThreshold;return r&&(a<=i||a>=l.innerWidth-i)?r==="prevent"?(t.preventDefault(),!0):!1:!0}function _d(e){const t=this,a=Pt();let l=e;l.originalEvent&&(l=l.originalEvent);const n=t.touchEventsData;if(l.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==l.pointerId)return;n.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(n.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){Zr(t,l,l.targetTouches[0].pageX);return}const{params:r,touches:i,enabled:u}=t;if(!u||!r.simulateTouch&&l.pointerType==="mouse"||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let s=l.target;if(r.touchEventsTarget==="wrapper"&&!Mc(s,t.wrapperEl)||"which"in l&&l.which===3||"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;const o=!!r.noSwipingClass&&r.noSwipingClass!=="",c=l.composedPath?l.composedPath():l.path;o&&l.target&&l.target.shadowRoot&&c&&(s=c[0]);const d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?wd(d,s):s.closest(d))){t.allowClick=!0;return}if(r.swipeHandler&&!s.closest(r.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const f=i.currentX,E=i.currentY;if(!Zr(t,l,f))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=f,i.startY=E,n.touchStartTime=tl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let b=!0;s.matches(n.focusableElements)&&(b=!1,s.nodeName==="SELECT"&&(n.isTouched=!1)),a.activeElement&&a.activeElement.matches(n.focusableElements)&&a.activeElement!==s&&(l.pointerType==="mouse"||l.pointerType!=="mouse"&&!s.matches(n.focusableElements))&&a.activeElement.blur();const h=b&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||h)&&!s.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function kd(e){const t=Pt(),a=this,l=a.touchEventsData,{params:n,touches:r,rtlTranslate:i,enabled:u}=a;if(!u||!n.simulateTouch&&e.pointerType==="mouse")return;let s=e;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(l.touchId!==null||s.pointerId!==l.pointerId))return;let o;if(s.type==="touchmove"){if(o=[...s.changedTouches].find(w=>w.identifier===l.touchId),!o||o.identifier!==l.touchId)return}else o=s;if(!l.isTouched){l.startMoving&&l.isScrolling&&a.emit("touchMoveOpposite",s);return}const c=o.pageX,d=o.pageY;if(s.preventedByNestedSwiper){r.startX=c,r.startY=d;return}if(!a.allowTouchMove){s.target.matches(l.focusableElements)||(a.allowClick=!1),l.isTouched&&(Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d}),l.touchStartTime=tl());return}if(n.touchReleaseOnEdges&&!n.loop)if(a.isVertical()){if(d<r.startY&&a.translate<=a.maxTranslate()||d>r.startY&&a.translate>=a.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else{if(i&&(c>r.startX&&-a.translate<=a.maxTranslate()||c<r.startX&&-a.translate>=a.minTranslate()))return;if(!i&&(c<r.startX&&a.translate<=a.maxTranslate()||c>r.startX&&a.translate>=a.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(l.focusableElements)&&t.activeElement!==s.target&&s.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&s.target===t.activeElement&&s.target.matches(l.focusableElements)){l.isMoved=!0,a.allowClick=!1;return}l.allowTouchCallbacks&&a.emit("touchMove",s),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=c,r.currentY=d;const m=r.currentX-r.startX,f=r.currentY-r.startY;if(a.params.threshold&&Math.sqrt(m**2+f**2)<a.params.threshold)return;if(typeof l.isScrolling>"u"){let w;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?l.isScrolling=!1:m*m+f*f>=25&&(w=Math.atan2(Math.abs(f),Math.abs(m))*180/Math.PI,l.isScrolling=a.isHorizontal()?w>n.touchAngle:90-w>n.touchAngle)}if(l.isScrolling&&a.emit("touchMoveOpposite",s),typeof l.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(l.startMoving=!0),l.isScrolling||s.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;a.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation();let E=a.isHorizontal()?m:f,b=a.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(E=Math.abs(E)*(i?1:-1),b=Math.abs(b)*(i?1:-1)),r.diff=E,E*=n.touchRatio,i&&(E=-E,b=-b);const h=a.touchesDirection;a.swipeDirection=E>0?"prev":"next",a.touchesDirection=b>0?"prev":"next";const v=a.params.loop&&!n.cssMode,g=a.touchesDirection==="next"&&a.allowSlideNext||a.touchesDirection==="prev"&&a.allowSlidePrev;if(!l.isMoved){if(v&&g&&a.loopFix({direction:a.swipeDirection}),l.startTranslate=a.getTranslate(),a.setTransition(0),a.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});a.wrapperEl.dispatchEvent(w)}l.allowMomentumBounce=!1,n.grabCursor&&(a.allowSlideNext===!0||a.allowSlidePrev===!0)&&a.setGrabCursor(!0),a.emit("sliderFirstMove",s)}if(new Date().getTime(),n._loopSwapReset!==!1&&l.isMoved&&l.allowThresholdMove&&h!==a.touchesDirection&&v&&g&&Math.abs(E)>=1){Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}a.emit("sliderMove",s),l.isMoved=!0,l.currentTranslate=E+l.startTranslate;let y=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),E>0?(v&&g&&l.allowThresholdMove&&l.currentTranslate>(n.centeredSlides?a.minTranslate()-a.slidesSizesGrid[a.activeIndex+1]-(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.activeIndex+1]+a.params.spaceBetween:0)-a.params.spaceBetween:a.minTranslate())&&a.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>a.minTranslate()&&(y=!1,n.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+E)**S))):E<0&&(v&&g&&l.allowThresholdMove&&l.currentTranslate<(n.centeredSlides?a.maxTranslate()+a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween+(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween:0):a.maxTranslate())&&a.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:a.slides.length-(n.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),l.currentTranslate<a.maxTranslate()&&(y=!1,n.resistance&&(l.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-l.startTranslate-E)**S))),y&&(s.preventedByNestedSwiper=!0),!a.allowSlideNext&&a.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&a.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&!a.allowSlideNext&&(l.currentTranslate=l.startTranslate),n.threshold>0)if(Math.abs(E)>n.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,l.currentTranslate=l.startTranslate,r.diff=a.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{l.currentTranslate=l.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&a.freeMode||n.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(l.currentTranslate),a.setTranslate(l.currentTranslate))}function Nd(e){const t=this,a=t.touchEventsData;let l=e;l.originalEvent&&(l=l.originalEvent);let n;if(l.type==="touchend"||l.type==="touchcancel"){if(n=[...l.changedTouches].find(w=>w.identifier===a.touchId),!n||n.identifier!==a.touchId)return}else{if(a.touchId!==null||l.pointerId!==a.pointerId)return;n=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(t.browser.isSafari||t.browser.isWebView)))return;a.pointerId=null,a.touchId=null;const{params:i,touches:u,rtlTranslate:s,slidesGrid:o,enabled:c}=t;if(!c||!i.simulateTouch&&l.pointerType==="mouse")return;if(a.allowTouchCallbacks&&t.emit("touchEnd",l),a.allowTouchCallbacks=!1,!a.isTouched){a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,a.startMoving=!1;return}i.grabCursor&&a.isMoved&&a.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=tl(),m=d-a.touchStartTime;if(t.allowClick){const w=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(w&&w[0]||l.target,w),t.emit("tap click",l),m<300&&d-a.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(a.lastClickTime=tl(),Gr(()=>{t.destroyed||(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||u.diff===0&&!a.loopSwapReset||a.currentTranslate===a.startTranslate&&!a.loopSwapReset){a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;return}a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;let f;if(i.followFinger?f=s?t.translate:-t.translate:f=-a.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const E=f>=-t.maxTranslate()&&!t.params.loop;let b=0,h=t.slidesSizesGrid[0];for(let w=0;w<o.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const A=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof o[w+A]<"u"?(E||f>=o[w]&&f<o[w+A])&&(b=w,h=o[w+A]-o[w]):(E||f>=o[w])&&(b=w,h=o[o.length-1]-o[o.length-2])}let v=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(f-o[b])/h,S=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(m>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?v:b+S):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+S):g!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(g):t.slideTo(b))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(b+S):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:b+S),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:b))}}function ei(){const e=this,{params:t,el:a}=e;if(a&&a.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:n,snapGrid:r}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const u=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=l,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Id(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ld(){const e=this,{wrapperEl:t,rtlTranslate:a,enabled:l}=e;if(!l)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let n;const r=e.maxTranslate()-e.minTranslate();r===0?n=0:n=(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(a?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Od(e){const t=this;il(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Dd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ti=(e,t)=>{const a=Pt(),{params:l,el:n,wrapperEl:r,device:i}=e,u=!!l.nested,s=t==="on"?"addEventListener":"removeEventListener",o=t;!n||typeof n=="string"||(a[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:u}),n[s]("touchstart",e.onTouchStart,{passive:!1}),n[s]("pointerdown",e.onTouchStart,{passive:!1}),a[s]("touchmove",e.onTouchMove,{passive:!1,capture:u}),a[s]("pointermove",e.onTouchMove,{passive:!1,capture:u}),a[s]("touchend",e.onTouchEnd,{passive:!0}),a[s]("pointerup",e.onTouchEnd,{passive:!0}),a[s]("pointercancel",e.onTouchEnd,{passive:!0}),a[s]("touchcancel",e.onTouchEnd,{passive:!0}),a[s]("pointerout",e.onTouchEnd,{passive:!0}),a[s]("pointerleave",e.onTouchEnd,{passive:!0}),a[s]("contextmenu",e.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&n[s]("click",e.onClick,!0),l.cssMode&&r[s]("scroll",e.onScroll),l.updateOnWindowResize?e[o](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",ei,!0):e[o]("observerUpdate",ei,!0),n[s]("load",e.onLoad,{capture:!0}))};function Pd(){const e=this,{params:t}=e;e.onTouchStart=_d.bind(e),e.onTouchMove=kd.bind(e),e.onTouchEnd=Nd.bind(e),e.onDocumentTouchStart=Dd.bind(e),t.cssMode&&(e.onScroll=Ld.bind(e)),e.onClick=Id.bind(e),e.onLoad=Od.bind(e),ti(e,"on")}function Md(){ti(this,"off")}var Bd={attachEvents:Pd,detachEvents:Md};const ai=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Fd(){const e=this,{realIndex:t,initialized:a,params:l,el:n}=e,r=l.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const i=Pt(),u=l.breakpointsBase==="window"||!l.breakpointsBase?l.breakpointsBase:"container",s=["window","container"].includes(l.breakpointsBase)||!l.breakpointsBase?e.el:i.querySelector(l.breakpointsBase),o=e.getBreakpoint(r,u,s);if(!o||e.currentBreakpoint===o)return;const d=(o in r?r[o]:void 0)||e.originalParams,m=ai(e,l),f=ai(e,d),E=e.params.grabCursor,b=d.grabCursor,h=l.enabled;m&&!f?(n.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&f&&(n.classList.add(`${l.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&l.grid.fill==="column")&&n.classList.add(`${l.containerModifierClass}grid-column`),e.emitContainerClasses()),E&&!b?e.unsetGrabCursor():!E&&b&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof d[A]>"u")return;const P=l[A]&&l[A].enabled,O=d[A]&&d[A].enabled;P&&!O&&e[A].disable(),!P&&O&&e[A].enable()});const v=d.direction&&d.direction!==l.direction,g=l.loop&&(d.slidesPerView!==l.slidesPerView||v),y=l.loop;v&&a&&e.changeDirection(),Ke(e.params,d);const S=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!S?e.disable():!h&&S&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",d),a&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",d)}function Rd(e,t="window",a){if(!e||t==="container"&&!a)return;let l=!1;const n=Ge(),r=t==="window"?n.innerHeight:a.clientHeight,i=Object.keys(e).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const s=parseFloat(u.substr(1));return{value:r*s,point:u}}return{value:u,point:u}});i.sort((u,s)=>parseInt(u.value,10)-parseInt(s.value,10));for(let u=0;u<i.length;u+=1){const{point:s,value:o}=i[u];t==="window"?n.matchMedia(`(min-width: ${o}px)`).matches&&(l=s):o<=a.clientWidth&&(l=s)}return l||"max"}var Hd={setBreakpoint:Fd,getBreakpoint:Rd};function $d(e,t){const a=[];return e.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(n=>{l[n]&&a.push(t+n)}):typeof l=="string"&&a.push(t+l)}),a}function Ud(){const e=this,{classNames:t,params:a,rtl:l,el:n,device:r}=e,i=$d(["initialized",a.direction,{"free-mode":e.params.freeMode&&a.freeMode.enabled},{autoheight:a.autoHeight},{rtl:l},{grid:a.grid&&a.grid.rows>1},{"grid-column":a.grid&&a.grid.rows>1&&a.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":a.cssMode},{centered:a.cssMode&&a.centeredSlides},{"watch-progress":a.watchSlidesProgress}],a.containerModifierClass);t.push(...i),n.classList.add(...t),e.emitContainerClasses()}function qd(){const e=this,{el:t,classNames:a}=e;!t||typeof t=="string"||(t.classList.remove(...a),e.emitContainerClasses())}var zd={addClasses:Ud,removeClasses:qd};function Vd(){const e=this,{isLocked:t,params:a}=e,{slidesOffsetBefore:l}=a;if(l){const n=e.slides.length-1,r=e.slidesGrid[n]+e.slidesSizesGrid[n]+l*2;e.isLocked=e.size>r}else e.isLocked=e.snapGrid.length===1;a.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),a.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Gd={checkOverflow:Vd},Zl={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Yd(e,t){return function(l={}){const n=Object.keys(l)[0],r=l[n];if(typeof r!="object"||r===null){Ke(t,l);return}if(e[n]===!0&&(e[n]={enabled:!0}),n==="navigation"&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),!(n in e&&"enabled"in r)){Ke(t,l);return}typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),Ke(t,l)}}const en={eventsEmitter:zc,update:ed,translate:id,transition:cd,slide:gd,loop:xd,grabCursor:Ad,events:Bd,breakpoints:Hd,checkOverflow:Gd,classes:zd},tn={};let an=class Tt{constructor(...t){let a,l;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?l=t[0]:[a,l]=t,l||(l={}),l=Ke({},l),a&&!l.el&&(l.el=a);const n=Pt();if(l.el&&typeof l.el=="string"&&n.querySelectorAll(l.el).length>1){const s=[];return n.querySelectorAll(l.el).forEach(o=>{const c=Ke({},l,{el:o});s.push(new Tt(c))}),s}const r=this;r.__swiper__=!0,r.support=jr(),r.device=Xr({userAgent:l.userAgent}),r.browser=Kr(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],l.modules&&Array.isArray(l.modules)&&r.modules.push(...l.modules);const i={};r.modules.forEach(s=>{s({params:l,swiper:r,extendParams:Yd(l,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=Ke({},Zl,i);return r.params=Ke({},u,tn,l),r.originalParams=Ke({},r.params),r.passedParams=Ke({},l),r.params&&r.params.on&&Object.keys(r.params.on).forEach(s=>{r.on(s,r.params.on[s])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:a,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:a,params:l}=this,n=st(a,`.${l.slideClass}, swiper-slide`),r=rl(n[0]);return rl(t)-r}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(a=>a.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:a,params:l}=t;t.slides=st(a,`.${l.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,a){const l=this;t=Math.min(Math.max(t,0),1);const n=l.minTranslate(),i=(l.maxTranslate()-n)*t+n;l.translateTo(i,typeof a>"u"?0:a),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=t.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",a.join(" "))}getSlideClasses(t){const a=this;return a.destroyed?"":t.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(a.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=[];t.slides.forEach(l=>{const n=t.getSlideClasses(l);a.push({slideEl:l,classNames:n}),t.emit("_slideClass",l,n)}),t.emit("_slideClasses",a)}slidesPerViewDynamic(t="current",a=!1){const l=this,{params:n,slides:r,slidesGrid:i,slidesSizesGrid:u,size:s,activeIndex:o}=l;let c=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let d=r[o]?Math.ceil(r[o].swiperSlideSize):0,m;for(let f=o+1;f<r.length;f+=1)r[f]&&!m&&(d+=Math.ceil(r[f].swiperSlideSize),c+=1,d>s&&(m=!0));for(let f=o-1;f>=0;f-=1)r[f]&&!m&&(d+=r[f].swiperSlideSize,c+=1,d>s&&(m=!0))}else if(t==="current")for(let d=o+1;d<r.length;d+=1)(a?i[d]+u[d]-i[o]<s:i[d]-i[o]<s)&&(c+=1);else for(let d=o-1;d>=0;d-=1)i[o]-i[d]<s&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:a,params:l}=t;l.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&il(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function n(){const i=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let r;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)n(),l.autoHeight&&t.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&t.isEnd&&!l.centeredSlides){const i=t.virtual&&l.virtual.enabled?t.virtual.slides:t.slides;r=t.slideTo(i.length-1,0,!1,!0)}else r=t.slideTo(t.activeIndex,0,!1,!0);r||n()}l.watchOverflow&&a!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,a=!0){const l=this,n=l.params.direction;return t||(t=n==="horizontal"?"vertical":"horizontal"),t===n||t!=="horizontal"&&t!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${n}`),l.el.classList.add(`${l.params.containerModifierClass}${t}`),l.emitContainerClasses(),l.params.direction=t,l.slides.forEach(r=>{t==="vertical"?r.style.width="":r.style.height=""}),l.emit("changeDirection"),a&&l.update()),l}changeLanguageDirection(t){const a=this;a.rtl&&t==="rtl"||!a.rtl&&t==="ltr"||(a.rtl=t==="rtl",a.rtlTranslate=a.params.direction==="horizontal"&&a.rtl,a.rtl?(a.el.classList.add(`${a.params.containerModifierClass}rtl`),a.el.dir="rtl"):(a.el.classList.remove(`${a.params.containerModifierClass}rtl`),a.el.dir="ltr"),a.update())}mount(t){const a=this;if(a.mounted)return!0;let l=t||a.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=a,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===a.params.swiperElementNodeName.toUpperCase()&&(a.isElement=!0);const n=()=>`.${(a.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(n()):st(l,n())[0];return!i&&a.params.createElements&&(i=nl("div",a.params.wrapperClass),l.append(i),st(l,`.${a.params.slideClass}`).forEach(u=>{i.append(u)})),Object.assign(a,{el:l,wrapperEl:i,slidesEl:a.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:i,hostEl:a.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||Ct(l,"direction")==="rtl",rtlTranslate:a.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||Ct(l,"direction")==="rtl"),wrongRTL:Ct(i,"display")==="-webkit-box"}),!0}init(t){const a=this;if(a.initialized||a.mount(t)===!1)return a;a.emit("beforeInit"),a.params.breakpoints&&a.setBreakpoint(),a.addClasses(),a.updateSize(),a.updateSlides(),a.params.watchOverflow&&a.checkOverflow(),a.params.grabCursor&&a.enabled&&a.setGrabCursor(),a.params.loop&&a.virtual&&a.params.virtual.enabled?a.slideTo(a.params.initialSlide+a.virtual.slidesBefore,0,a.params.runCallbacksOnInit,!1,!0):a.slideTo(a.params.initialSlide,0,a.params.runCallbacksOnInit,!1,!0),a.params.loop&&a.loopCreate(void 0,!0),a.attachEvents();const n=[...a.el.querySelectorAll('[loading="lazy"]')];return a.isElement&&n.push(...a.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?il(a,r):r.addEventListener("load",i=>{il(a,i.target)})}),Jl(a),a.initialized=!0,Jl(a),a.emit("init"),a.emit("afterInit"),a}destroy(t=!0,a=!0){const l=this,{params:n,el:r,wrapperEl:i,slides:u}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),n.loop&&l.loopDestroy(),a&&(l.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),i&&i.removeAttribute("style"),u&&u.length&&u.forEach(s=>{s.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(s=>{l.off(s)}),t!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),Ic(l)),l.destroyed=!0),null}static extendDefaults(t){Ke(tn,t)}static get extendedDefaults(){return tn}static get defaults(){return Zl}static installModule(t){Tt.prototype.__modules__||(Tt.prototype.__modules__=[]);const a=Tt.prototype.__modules__;typeof t=="function"&&a.indexOf(t)<0&&a.push(t)}static use(t){return Array.isArray(t)?(t.forEach(a=>Tt.installModule(a)),Tt):(Tt.installModule(t),Tt)}};Object.keys(en).forEach(e=>{Object.keys(en[e]).forEach(t=>{an.prototype[t]=en[e][t]})}),an.use([Uc,qc]);const li=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Mt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Yt(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:Mt(t[l])&&Mt(e[l])&&Object.keys(t[l]).length>0?t[l].__swiper__?e[l]=t[l]:Yt(e[l],t[l]):e[l]=t[l]})}function ni(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function ri(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ii(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function ui(e=""){const t=e.split(" ").map(l=>l.trim()).filter(l=>!!l),a=[];return t.forEach(l=>{a.indexOf(l)<0&&a.push(l)}),a.join(" ")}function Wd(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function jd({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:n,prevEl:r,scrollbarEl:i,paginationEl:u}){const s=l.filter(O=>O!=="children"&&O!=="direction"&&O!=="wrapperClass"),{params:o,pagination:c,navigation:d,scrollbar:m,virtual:f,thumbs:E}=e;let b,h,v,g,y,S,w,A;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&!a.thumbs.swiper.destroyed&&o.thumbs&&(!o.thumbs.swiper||o.thumbs.swiper.destroyed)&&(b=!0),l.includes("controller")&&a.controller&&a.controller.control&&o.controller&&!o.controller.control&&(h=!0),l.includes("pagination")&&a.pagination&&(a.pagination.el||u)&&(o.pagination||o.pagination===!1)&&c&&!c.el&&(v=!0),l.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||i)&&(o.scrollbar||o.scrollbar===!1)&&m&&!m.el&&(g=!0),l.includes("navigation")&&a.navigation&&(a.navigation.prevEl||r)&&(a.navigation.nextEl||n)&&(o.navigation||o.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const P=O=>{e[O]&&(e[O].destroy(),O==="navigation"?(e.isElement&&(e[O].prevEl.remove(),e[O].nextEl.remove()),o[O].prevEl=void 0,o[O].nextEl=void 0,e[O].prevEl=void 0,e[O].nextEl=void 0):(e.isElement&&e[O].el.remove(),o[O].el=void 0,e[O].el=void 0))};l.includes("loop")&&e.isElement&&(o.loop&&!a.loop?S=!0:!o.loop&&a.loop?w=!0:A=!0),s.forEach(O=>{if(Mt(o[O])&&Mt(a[O]))Object.assign(o[O],a[O]),(O==="navigation"||O==="pagination"||O==="scrollbar")&&"enabled"in a[O]&&!a[O].enabled&&P(O);else{const C=a[O];(C===!0||C===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?C===!1&&P(O):o[O]=a[O]}}),s.includes("controller")&&!h&&e.controller&&e.controller.control&&o.controller&&o.controller.control&&(e.controller.control=o.controller.control),l.includes("children")&&t&&f&&o.virtual.enabled?(f.slides=t,f.update(!0)):l.includes("virtual")&&f&&o.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),l.includes("children")&&t&&o.loop&&(A=!0),b&&E.init()&&E.update(!0),h&&(e.controller.control=o.controller.control),v&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),e.el.appendChild(u)),u&&(o.pagination.el=u),c.init(),c.render(),c.update()),g&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(o.scrollbar.el=i),m.init(),m.updateSize(),m.setTranslate()),y&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),oa(n,e.navigation.arrowSvg),n.part.add("button-next"),e.el.appendChild(n)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),oa(r,e.navigation.arrowSvg),r.part.add("button-prev"),e.el.appendChild(r))),n&&(o.navigation.nextEl=n),r&&(o.navigation.prevEl=r),d.init(),d.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),(S||A)&&e.loopDestroy(),(w||A)&&e.loopCreate(),e.update()}function Xd(e={},t=!0){const a={on:{}},l={},n={};Yt(a,Zl),a._emitClasses=!0,a.init=!1;const r={},i=li.map(s=>s.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(s=>{typeof e[s]>"u"||(i.indexOf(s)>=0?Mt(e[s])?(a[s]={},n[s]={},Yt(a[s],e[s]),Yt(n[s],e[s])):(a[s]=e[s],n[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]=="function"?t?l[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:r[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(s=>{a[s]===!0&&(a[s]={}),a[s]===!1&&delete a[s]}),{params:a,passedParams:n,rest:r,events:l}}function Kd({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:n,swiper:r},i){ni(i)&&t&&a&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),ri(i)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ii(i)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(e)}function Qd(e,t,a,l,n){const r=[];if(!t)return r;const i=s=>{r.indexOf(s)<0&&r.push(s)};if(a&&l){const s=l.map(n),o=a.map(n);s.join("")!==o.join("")&&i("children"),l.length!==a.length&&i("children")}return li.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Mt(e[s])&&Mt(t[s])){const o=Object.keys(e[s]),c=Object.keys(t[s]);o.length!==c.length?i(s):(o.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}),c.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}))}else e[s]!==t[s]&&i(s)}),r}const Jd=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ul.apply(this,arguments)}function si(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function oi(e){const t=[];return k.Children.toArray(e).forEach(a=>{si(a)?t.push(a):a.props&&a.props.children&&oi(a.props.children).forEach(l=>t.push(l))}),t}function Zd(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return k.Children.toArray(e).forEach(l=>{if(si(l))t.push(l);else if(l.props&&l.props.slot&&a[l.props.slot])a[l.props.slot].push(l);else if(l.props&&l.props.children){const n=oi(l.props.children);n.length>0?n.forEach(r=>t.push(r)):a["container-end"].push(l)}else a["container-end"].push(l)}),{slides:t,slots:a}}function ef(e,t,a){if(!a)return null;const l=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:r,to:i}=a,u=e.params.loop?-t.length:0,s=e.params.loop?t.length*2:t.length,o=[];for(let c=u;c<s;c+=1)c>=r&&c<=i&&o.push(t[l(c)]);return o.map((c,d)=>k.cloneElement(c,{swiper:e,style:n,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function ca(e,t){return typeof window>"u"?k.useEffect(e,t):k.useLayoutEffect(e,t)}const ci=k.createContext(null),tf=k.createContext(null),di=k.forwardRef(({className:e,tag:t="div",wrapperTag:a="div",children:l,onSwiper:n,...r}={},i)=>{let u=!1;const[s,o]=k.useState("swiper"),[c,d]=k.useState(null),[m,f]=k.useState(!1),E=k.useRef(!1),b=k.useRef(null),h=k.useRef(null),v=k.useRef(null),g=k.useRef(null),y=k.useRef(null),S=k.useRef(null),w=k.useRef(null),A=k.useRef(null),{params:P,passedParams:O,rest:C,events:_}=Xd(r),{slides:x,slots:L}=Zd(l),I=()=>{f(!m)};Object.assign(P.on,{_containerClasses(H,z){o(z)}});const N=()=>{Object.assign(P.on,_),u=!0;const H={...P};if(delete H.wrapperClass,h.current=new an(H),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=x;const z={cache:!1,slides:x,renderExternal:d,renderExternalUpdate:!1};Yt(h.current.params.virtual,z),Yt(h.current.originalParams.virtual,z)}};b.current||N(),h.current&&h.current.on("_beforeBreakpoint",I);const T=()=>{u||!_||!h.current||Object.keys(_).forEach(H=>{h.current.on(H,_[H])})},F=()=>{!_||!h.current||Object.keys(_).forEach(H=>{h.current.off(H,_[H])})};k.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",I)}),k.useEffect(()=>{!E.current&&h.current&&(h.current.emitSlidesClasses(),E.current=!0)}),ca(()=>{if(i&&(i.current=b.current),!!b.current)return h.current.destroyed&&N(),Kd({el:b.current,nextEl:y.current,prevEl:S.current,paginationEl:w.current,scrollbarEl:A.current,swiper:h.current},P),n&&!h.current.destroyed&&n(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),ca(()=>{T();const H=Qd(O,v.current,x,g.current,z=>z.key);return v.current=O,g.current=x,H.length&&h.current&&!h.current.destroyed&&jd({swiper:h.current,slides:x,passedParams:O,changedParams:H,nextEl:y.current,prevEl:S.current,scrollbarEl:A.current,paginationEl:w.current}),()=>{F()}}),ca(()=>{Jd(h.current)},[c]);function R(){return P.virtual?ef(h.current,x,c):x.map((H,z)=>k.cloneElement(H,{swiper:h.current,swiperSlideIndex:z}))}return k.createElement(t,ul({ref:b,className:ui(`${s}${e?` ${e}`:""}`)},C),k.createElement(tf.Provider,{value:h.current},L["container-start"],k.createElement(a,{className:Wd(P.wrapperClass)},L["wrapper-start"],R(),L["wrapper-end"]),ni(P)&&k.createElement(k.Fragment,null,k.createElement("div",{ref:S,className:"swiper-button-prev"}),k.createElement("div",{ref:y,className:"swiper-button-next"})),ii(P)&&k.createElement("div",{ref:A,className:"swiper-scrollbar"}),ri(P)&&k.createElement("div",{ref:w,className:"swiper-pagination"}),L["container-end"]))});di.displayName="Swiper";const fi=k.forwardRef(({tag:e="div",children:t,className:a="",swiper:l,zoom:n,lazy:r,virtualIndex:i,swiperSlideIndex:u,...s}={},o)=>{const c=k.useRef(null),[d,m]=k.useState("swiper-slide"),[f,E]=k.useState(!1);function b(y,S,w){S===c.current&&m(w)}ca(()=>{if(typeof u<"u"&&(c.current.swiperSlideIndex=u),o&&(o.current=c.current),!(!c.current||!l)){if(l.destroyed){d!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",b),()=>{l&&l.off("_slideClass",b)}}}),ca(()=>{l&&c.current&&!l.destroyed&&m(l.getSlideClasses(c.current))},[l]);const h={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},v=()=>typeof t=="function"?t(h):t,g=()=>{E(!0)};return k.createElement(e,ul({ref:c,className:ui(`${d}${a?` ${a}`:""}`),"data-swiper-slide-index":i,onLoad:g},s),n&&k.createElement(ci.Provider,{value:h},k.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof n=="number"?n:void 0},v(),r&&!f&&k.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!n&&k.createElement(ci.Provider,{value:h},v(),r&&!f&&k.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});fi.displayName="SwiperSlide";function pi(e,t,a,l){return e.params.createElements&&Object.keys(l).forEach(n=>{if(!a[n]&&a.auto===!0){let r=st(e.el,`.${l[n]}`)[0];r||(r=nl("div",l[n]),r.className=l[n],e.el.append(r)),a[n]=r,t[n]=r}}),a}const hi='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function af({swiper:e,extendParams:t,on:a,emit:l}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:hi};function n(f){let E;return f&&typeof f=="string"&&e.isElement&&(E=e.el.querySelector(f)||e.hostEl.querySelector(f),E)?E:(f&&(typeof f=="string"&&(E=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&E&&E.length>1&&e.el.querySelectorAll(f).length===1?E=e.el.querySelector(f):E&&E.length===1&&(E=E[0])),f&&!E?f:E)}function r(f,E){const b=e.params.navigation;f=Be(f),f.forEach(h=>{h&&(h.classList[E?"add":"remove"](...b.disabledClass.split(" ")),h.tagName==="BUTTON"&&(h.disabled=E),e.params.watchOverflow&&e.enabled&&h.classList[e.isLocked?"add":"remove"](b.lockClass))})}function i(){const{nextEl:f,prevEl:E}=e.navigation;if(e.params.loop){r(E,!1),r(f,!1);return}r(E,e.isBeginning&&!e.params.rewind),r(f,e.isEnd&&!e.params.rewind)}function u(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function o(){const f=e.params.navigation;if(e.params.navigation=pi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let E=n(f.nextEl),b=n(f.prevEl);Object.assign(e.navigation,{nextEl:E,prevEl:b}),E=Be(E),b=Be(b);const h=(v,g)=>{if(v){if(f.addIcons&&v.matches(".swiper-button-next,.swiper-button-prev")&&!v.querySelector("svg")){const y=document.createElement("div");oa(y,hi),v.appendChild(y.querySelector("svg")),y.remove()}v.addEventListener("click",g==="next"?s:u)}!e.enabled&&v&&v.classList.add(...f.lockClass.split(" "))};E.forEach(v=>h(v,"next")),b.forEach(v=>h(v,"prev"))}function c(){let{nextEl:f,prevEl:E}=e.navigation;f=Be(f),E=Be(E);const b=(h,v)=>{h.removeEventListener("click",v==="next"?s:u),h.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(h=>b(h,"next")),E.forEach(h=>b(h,"prev"))}a("init",()=>{e.params.navigation.enabled===!1?m():(o(),i())}),a("toEdge fromEdge lock unlock",()=>{i()}),a("destroy",()=>{c()}),a("enable disable",()=>{let{nextEl:f,prevEl:E}=e.navigation;if(f=Be(f),E=Be(E),e.enabled){i();return}[...f,...E].filter(b=>!!b).forEach(b=>b.classList.add(e.params.navigation.lockClass))}),a("click",(f,E)=>{let{nextEl:b,prevEl:h}=e.navigation;b=Be(b),h=Be(h);const v=E.target;let g=h.includes(v)||b.includes(v);if(e.isElement&&!g){const y=E.path||E.composedPath&&E.composedPath();y&&(g=y.find(S=>b.includes(S)||h.includes(S)))}if(e.params.navigation.hideOnClick&&!g){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let y;b.length?y=b[0].classList.contains(e.params.navigation.hiddenClass):h.length&&(y=h[0].classList.contains(e.params.navigation.hiddenClass)),l(y===!0?"navigationShow":"navigationHide"),[...b,...h].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),o(),i()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:d,disable:m,update:i,init:o,destroy:c})}function da(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function lf({swiper:e,extendParams:t,on:a,emit:l}){const n="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let r,i=0;function u(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function s(v,g){const{bulletActiveClass:y}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${y}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${y}-${g}-${g}`)))}function o(v,g,y){if(v=v%y,g=g%y,g===v+1)return"next";if(g===v-1)return"previous"}function c(v){const g=v.target.closest(da(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const y=rl(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const S=o(e.realIndex,y,e.slides.length);S==="next"?e.slideNext():S==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function d(){const v=e.rtl,g=e.params.pagination;if(u())return;let y=e.pagination.el;y=Be(y);let S,w;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(w=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,w=e.previousSnapIndex):(w=e.previousIndex||0,S=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let C,_,x;if(g.dynamicBullets&&(r=Yl(O[0],e.isHorizontal()?"width":"height"),y.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&w!==void 0&&(i+=S-(w||0),i>g.dynamicMainBullets-1?i=g.dynamicMainBullets-1:i<0&&(i=0)),C=Math.max(S-i,0),_=C+(Math.min(O.length,g.dynamicMainBullets)-1),x=(_+C)/2),O.forEach(L=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${g.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();L.classList.remove(...I)}),y.length>1)O.forEach(L=>{const I=rl(L);I===S?L.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),g.dynamicBullets&&(I>=C&&I<=_&&L.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),I===C&&s(L,"prev"),I===_&&s(L,"next"))});else{const L=O[S];if(L&&L.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&O.forEach((I,N)=>{I.setAttribute("part",N===S?"bullet-active":"bullet")}),g.dynamicBullets){const I=O[C],N=O[_];for(let T=C;T<=_;T+=1)O[T]&&O[T].classList.add(...`${g.bulletActiveClass}-main`.split(" "));s(I,"prev"),s(N,"next")}}if(g.dynamicBullets){const L=Math.min(O.length,g.dynamicMainBullets+4),I=(r*L-r)/2-x*r,N=v?"right":"left";O.forEach(T=>{T.style[e.isHorizontal()?N:"top"]=`${I}px`})}}y.forEach((O,C)=>{if(g.type==="fraction"&&(O.querySelectorAll(da(g.currentClass)).forEach(_=>{_.textContent=g.formatFractionCurrent(S+1)}),O.querySelectorAll(da(g.totalClass)).forEach(_=>{_.textContent=g.formatFractionTotal(P)})),g.type==="progressbar"){let _;g.progressbarOpposite?_=e.isHorizontal()?"vertical":"horizontal":_=e.isHorizontal()?"horizontal":"vertical";const x=(S+1)/P;let L=1,I=1;_==="horizontal"?L=x:I=x,O.querySelectorAll(da(g.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${I})`,N.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(oa(O,g.renderCustom(e,S+1,P)),C===0&&l("paginationRender",O)):(C===0&&l("paginationRender",O),l("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](g.lockClass)})}function m(){const v=e.params.pagination;if(u())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let y=e.pagination.el;y=Be(y);let S="";if(v.type==="bullets"){let w=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&w>g&&(w=g);for(let A=0;A<w;A+=1)v.renderBullet?S+=v.renderBullet.call(e,A,v.bulletClass):S+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?S=v.renderFraction.call(e,v.currentClass,v.totalClass):S=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?S=v.renderProgressbar.call(e,v.progressbarFillClass):S=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(w=>{v.type!=="custom"&&oa(w,S||""),v.type==="bullets"&&e.pagination.bullets.push(...w.querySelectorAll(da(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",y[0])}function f(){e.params.pagination=pi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.find(y=>Wr(y,".swiper")[0]===e.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Be(g),g.forEach(y=>{v.type==="bullets"&&v.clickable&&y.classList.add(...(v.clickableClass||"").split(" ")),y.classList.add(v.modifierClass+v.type),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(y.classList.add(`${v.modifierClass}${v.type}-dynamic`),i=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&y.classList.add(v.progressbarOppositeClass),v.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(v.lockClass)}))}function E(){const v=e.params.pagination;if(u())return;let g=e.pagination.el;g&&(g=Be(g),g.forEach(y=>{y.classList.remove(v.hiddenClass),y.classList.remove(v.modifierClass+v.type),y.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(y.classList.remove(...(v.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...v.bulletActiveClass.split(" ")))}a("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Be(g),g.forEach(y=>{y.classList.remove(v.horizontalClass,v.verticalClass),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?h():(f(),m(),d())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),a("snapIndexChange",()=>{d()}),a("snapGridLengthChange",()=>{m(),d()}),a("destroy",()=>{E()}),a("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Be(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),a("lock unlock",()=>{d()}),a("click",(v,g)=>{const y=g.target,S=Be(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const w=S[0].classList.contains(e.params.pagination.hiddenClass);l(w===!0?"paginationShow":"paginationHide"),S.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Be(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),m(),d()},h=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Be(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),E()};Object.assign(e.pagination,{enable:b,disable:h,render:m,update:d,init:f,destroy:E})}function gy(){}function Ey(){}function bi(e){const t=[],a=String(e||"");let l=a.indexOf(","),n=0,r=!1;for(;!r;){l===-1&&(l=a.length,r=!0);const i=a.slice(n,l).trim();(i||!r)&&t.push(i),n=l+1,l=a.indexOf(",",n)}return t}function mi(e,t){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const nf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uf={};function vi(e,t){return(uf.jsx?rf:nf).test(e)}const sf=/[ \t\n\f\r]/g;function of(e){return typeof e=="object"?e.type==="text"?gi(e.value):!1:gi(e)}function gi(e){return e.replace(sf,"")===""}class fa{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}}fa.prototype.normal={},fa.prototype.property={},fa.prototype.space=void 0;function Ei(e,t){const a={},l={};for(const n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new fa(a,l,t)}function pa(e){return e.toLowerCase()}class We{constructor(t,a){this.attribute=a,this.property=t}}We.prototype.attribute="",We.prototype.booleanish=!1,We.prototype.boolean=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.commaSeparated=!1,We.prototype.defined=!1,We.prototype.mustUseProperty=!1,We.prototype.number=!1,We.prototype.overloadedBoolean=!1,We.prototype.property="",We.prototype.spaceSeparated=!1,We.prototype.space=void 0;let cf=0;const be=Bt(),Pe=Bt(),ln=Bt(),ee=Bt(),ke=Bt(),Wt=Bt(),Qe=Bt();function Bt(){return 2**++cf}const nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Pe,commaOrSpaceSeparated:Qe,commaSeparated:Wt,number:ee,overloadedBoolean:ln,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(nn);class un extends We{constructor(t,a,l,n){let r=-1;if(super(t,a),yi(this,"space",n),typeof l=="number")for(;++r<rn.length;){const i=rn[r];yi(this,rn[r],(l&nn[i])===nn[i])}}}un.prototype.defined=!0;function yi(e,t,a){a&&(e[t]=a)}function jt(e){const t={},a={};for(const[l,n]of Object.entries(e.properties)){const r=new un(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[pa(l)]=l,a[pa(r.attribute)]=l}return new fa(t,a,e.space)}const Ti=jt({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:ke,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:ee,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:ke,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Pe,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xi(e,t){return t in e?e[t]:t}function Ci(e,t){return xi(e,t.toLowerCase())}const df=jt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wt,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:ke,autoFocus:be,autoPlay:be,blocking:ke,capture:null,charSet:null,checked:be,cite:null,className:ke,cols:ee,colSpan:null,content:null,contentEditable:Pe,controls:be,controlsList:ke,coords:ee|Wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:ln,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:ke,height:ee,hidden:ln,high:ee,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:ke,itemRef:ke,itemScope:be,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:ee,pattern:null,ping:ke,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:ke,required:be,reversed:be,rows:ee,rowSpan:ee,sandbox:ke,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Pe,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:Ci}),ff=jt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qe,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wt,g2:Wt,glyphName:Wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xi}),Si=jt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ai=jt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ci}),wi=jt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),pf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hf=/[A-Z]/g,_i=/-[a-z]/g,bf=/^data[-\w.:]+$/i;function sl(e,t){const a=pa(t);let l=t,n=We;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&bf.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(_i,vf);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!_i.test(r)){let i=r.replace(hf,mf);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=un}return new n(l,t)}function mf(e){return"-"+e.toLowerCase()}function vf(e){return e.charAt(1).toUpperCase()}const ha=Ei([Ti,df,Si,Ai,wi],"html"),St=Ei([Ti,ff,Si,Ai,wi],"svg");function ki(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ni(e){return e.join(" ").trim()}function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={},on,Ii;function gf(){if(Ii)return on;Ii=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,u=/^\s+|\s+$/g,s=`
|
|
42
|
+
`);for(let Y=0;Y<D.length;Y++)H.appendChild(document.createTextNode(D[Y])),T&&Y<D.length-1&&H.appendChild(document.createElement("br"));R.insertNode(H),F.removeAllRanges();const V=document.createRange();V.selectNodeContents(x),V.collapse(!1),F.addRange(V)}r();return}}}}let P=!1,O="";const C=window.getSelection();if(C&&C.rangeCount>0){const _=C.anchorNode;if(_){let x=null;if(_.nodeType===Node.ELEMENT_NODE?x=_.closest('[data-type="variable"]'):_.nodeType===Node.TEXT_NODE&&_.parentElement&&(x=_.parentElement.closest('[data-type="variable"]')),x){const L=x.getAttribute("data-node-type")||"",I=x.dataset.key;if(L==="markdown"&&I&&/20\d{2}-\d{2}-\d{2}/.test(w))P=!0,O=I,c.current[I]=w,d(N=>({...N,[I]:{...N[I],status:"loading",error:void 0}}));else if(L==="report-url"&&I){document.execCommand("insertText",!1,w),r();return}else if(L==="markdown-name"&&I){document.execCommand("insertText",!1,w),r(),setTimeout(()=>{const N=x.innerText.replace(/[\u200B\n]/g,"").trim();s.current(I,N)},0);return}}}}if(P&&O){setTimeout(()=>{i.current(O,w)},0);return}document.execCommand("insertText",!1,w),r(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(w)&&o.current.tableData?.status==="success"&&(d(x=>({...x,tableData:{status:"loading",modules:[],lastParsedText:w,error:void 0}})),setTimeout(()=>{c.current.tableData=w,i.current("tableData",w)},0))},0)},[t,e,n,r,i,o,c,a,b,u,m,f,E,d,l]);async function qr(e){const t=e.split("/").pop()?.split("?")[0]||"file",a=decodeURIComponent(t),l=async n=>{const r=await n.blob();return new File([r],a,{type:r.type||"application/octet-stream"})};try{const n=`/api/image-proxy?url=${encodeURIComponent(e)}`,r=await fetch(n);if(r.ok)return l(r)}catch{}return null}const _c=({config:e,files:t,footerFiles:a,onFooterFilesClear:l,onSend:n,isProcessing:r,disabled:i,loading:u,isFormValid:s,editorRef:o,markdownAnalyzeState:c,markdownNameAnalyzeState:d,videoState:m})=>k.useCallback(()=>{if(r||i||u||!s||!o.current)return;if(e.length===0){const g=o.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!g&&a.length===0)return;if(a.length>0){const y=new FormData;y.append("fullPrompt",g),a.forEach(S=>{y.append("fileUrls",S)}),n(y,g),l()}else n(g,g);if(o.current){o.current.textContent="";const y=new Event("input",{bubbles:!0});o.current.dispatchEvent(y)}return}const f=o.current;let E="";const b={},h=g=>{if(!(g.nodeType===Node.ELEMENT_NODE&&g.style.display==="none")){if(g.nodeType===Node.TEXT_NODE)E+=(g.textContent||"").replace(/\u200B/g,"");else if(g.nodeType===Node.ELEMENT_NODE){const y=g,S=y.dataset.type,w=y.dataset.key;if(S==="variable"&&w){let A="";const P=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:_=>{const x=y.querySelector(".variable-info-icon");return x&&x.contains(_)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;P.nextNode();)A+=P.currentNode.textContent||"";const C=y.getAttribute("data-report-url")||A.replace(/[\u200B\n]/g,"").trim();if(C){const _=y.dataset.multiKey;if(_){(!b[_]||!Array.isArray(b[_]))&&(b[_]=[]);const x=b[_];x.push(C),x.length>1&&(E+=" "),E+=C}else b[w]=C,E+=C;if(y.dataset.nodeType==="report-url")if(b.url===void 0)b.url=C;else{const x=b.url;Array.isArray(x)?x.push(C):b.url=[String(x),C]}if(y.dataset.nodeType==="markdown-name"){const x=`${w}__sourceText`;b[x]===void 0&&(b[x]=C)}if(y.dataset.nodeType==="markdown"){const x=y.dataset.sourceTextKey||`${w}__sourceText`;if(b[x]===void 0)b[x]=C;else{const I=b[x];Array.isArray(I)?I.push(C):b[x]=[String(I),C]}const L=`${w}__markdown`;b[L]===void 0&&(b[L]=[$r(C)])}}}else if((S==="select"||S==="searchable-select"||S==="cascader")&&w){const A=(y.getAttribute("data-value")||"").trim();A&&(b[w]=A,E+=A)}else if(S==="textarea"&&w){const P=(y.value||"").replace(/\u200B/g,"").trim();P&&(b[w]=P,E+=P)}else if(S==="richtext"&&w){const A=y,P=A.dataset.nodeType,O=(A.textContent||"").replace(/\u200B/g,"").trim();if(O)if(P==="report-module"||P==="markdown-module"){(!b[w]||!Array.isArray(b[w]))&&(b[w]=[]);const C=b[w];C.push(O),C.length>1&&(E+=" "),E+=O}else b[w]=O,E+=O}else if(S==="datepicker"&&w){const P=(y.getAttribute("data-value")||"").trim();if(P)if(P.includes(",")){const O=P.split(",");O.length===2?(b[w]=O,E+=`[${O[0]}, ${O[1]}]`):(b[w]=P,E+=P)}else b[w]=P,E+=P}else if(S==="number-input"&&w){const P=(y.value||"").trim();P&&(b[w]=P,E+=P)}else if(S==="upload"&&w){const A=y.dataset.batchKey;if(A){const P=e.find(O=>O.type==="upload"&&O.key===A);if(P&&typeof P.maxCount=="number"&&typeof P.minCount=="number"){const O=[];for(let C=0;C<P.maxCount;C++){const _=`${A}-${C}`,x=t[_];x&&O.push(x)}b[A]||(b[A]=O.length>0?O:null,O.length>0&&(E+=` [附带${O.length}个文件: ${O.map(C=>typeof C=="string"?C.split("/").pop()||"file":C.name).join(", ")}] `))}else if(b[w]=t[w]??null,t[w]){const O=t[w];E+=` [附带文件: ${typeof O=="string"?O.split("/").pop()||"file":O.name}] `}}else if(b[w]=t[w]??null,t[w]){const P=t[w];E+=` [附带文件: ${typeof P=="string"?P.split("/").pop()||"file":P.name}] `}}else if((S==="video-url"||S==="video-upload")&&w){const A=m?.[w];if(A?.status==="success"&&A.videoUrl){b[w]=A.videoUrl,A.file&&(b[`${w}__file`]=A.file);const P=A.fileName||"视频";E+=` [附带视频: ${P}] `}}else{if(y.classList.contains("tag-close-btn")||y.classList.contains("file-remove-btn")||y.classList.contains("video-remove-btn"))return;y.getAttribute("contenteditable")==="false"&&!S&&y.classList.contains("tag-node")?E+=y.innerText:y.childNodes.forEach(h)}}}};if(f.childNodes.forEach(h),E=E.trim(),!E)return;Object.keys(c).forEach(g=>{const y=c[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),Object.keys(d).forEach(g=>{const y=d[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),(async()=>{for(const y of Object.keys(b)){const S=b[y];if(typeof S=="string"&&S.startsWith("http")){if(e.find(A=>A.type==="upload"&&A.key===y)){const A=await qr(S);A&&(b[y]=A)}}else if(Array.isArray(S)&&e.find(A=>A.type==="upload"&&A.key===y)){for(let A=0;A<S.length;A++)if(typeof S[A]=="string"&&S[A].startsWith("http")){const P=await qr(S[A]);P&&(S[A]=P)}}}const g=new FormData;g.append("fullPrompt",E),Object.keys(b).forEach(y=>{const S=b[y];if(S!=null)if(S instanceof File)g.append(y,S);else if(Array.isArray(S)){const w=e.some(C=>Ue(C.type)&&C.key===y),A=e.some(C=>C.type==="report-url"&&C.key===y),P=y.endsWith("__markdown");w||A||P||y==="url"?S.forEach(C=>{C!=null&&C!==""&&g.append(y,String(C))}):S.forEach((C,_)=>{C!=null&&(C instanceof File?g.append(`${y}[${_}]`,C):typeof C=="string"?g.append(`${y}[${_}]`,C):g.append(`${y}[${_}]`,String(C)))})}else typeof S=="string"?g.append(y,S):g.append(y,String(S))}),a.length>0&&a.forEach(y=>{g.append("fileUrls",y)}),n(g,E),a.length>0&&l()})()},[e,t,a,l,n,r,i,u,s,o,c,d,m]);function zr(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Gl(e={},t={}){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:zr(t[l])&&zr(e[l])&&Object.keys(t[l]).length>0&&Gl(e[l],t[l])})}const Vr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Pt(){const e=typeof document<"u"?document:{};return Gl(e,Vr),e}const kc={document:Vr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ge(){const e=typeof window<"u"?window:{};return Gl(e,kc),e}function Nc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function Ic(e){const t=e;Object.keys(t).forEach(a=>{try{t[a]=null}catch{}try{delete t[a]}catch{}})}function Gr(e,t=0){return setTimeout(e,t)}function tl(){return Date.now()}function Lc(e){const t=Ge();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}function Oc(e,t="x"){const a=Ge();let l,n,r;const i=Lc(e);return a.WebKitCSSMatrix?(n=i.transform||i.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(u=>u.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix(n==="none"?"":n)):(r=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=r.toString().split(",")),t==="x"&&(a.WebKitCSSMatrix?n=r.m41:l.length===16?n=parseFloat(l[12]):n=parseFloat(l[4])),t==="y"&&(a.WebKitCSSMatrix?n=r.m42:l.length===16?n=parseFloat(l[13]):n=parseFloat(l[5])),n||0}function al(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Dc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ke(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let l=1;l<e.length;l+=1){const n=e[l];if(n!=null&&!Dc(n)){const r=Object.keys(Object(n)).filter(i=>a.indexOf(i)<0);for(let i=0,u=r.length;i<u;i+=1){const s=r[i],o=Object.getOwnPropertyDescriptor(n,s);o!==void 0&&o.enumerable&&(al(t[s])&&al(n[s])?n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s]):!al(t[s])&&al(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s])):t[s]=n[s])}}}return t}function Gt(e,t,a){e.style.setProperty(t,a)}function Yr({swiper:e,targetPosition:t,side:a}){const l=Ge(),n=-e.translate;let r=null,i;const u=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const s=t>n?"next":"prev",o=(d,m)=>s==="next"&&d>=m||s==="prev"&&d<=m,c=()=>{i=new Date().getTime(),r===null&&(r=i);const d=Math.max(Math.min((i-r)/u,1),0),m=.5-Math.cos(d*Math.PI)/2;let f=n+m*(t-n);if(o(f,t)&&(f=t),e.wrapperEl.scrollTo({[a]:f}),o(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:f})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(c)};c()}function st(e,t=""){const a=Ge(),l=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&l.push(...e.assignedElements()),t?l.filter(n=>n.matches(t)):l}function Pc(e,t){const a=[t];for(;a.length>0;){const l=a.shift();if(e===l)return!0;a.push(...l.children,...l.shadowRoot?l.shadowRoot.children:[],...l.assignedElements?l.assignedElements():[])}}function Mc(e,t){const a=Ge();let l=t.contains(e);return!l&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(l=[...t.assignedElements()].includes(e),l||(l=Pc(e,t))),l}function ll(e){try{console.warn(e);return}catch{}}function nl(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:Nc(t)),a}function Bc(e,t){const a=[];for(;e.previousElementSibling;){const l=e.previousElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function Fc(e,t){const a=[];for(;e.nextElementSibling;){const l=e.nextElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function Ct(e,t){return Ge().getComputedStyle(e,null).getPropertyValue(t)}function rl(e){let t=e,a;if(t){for(a=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(a+=1);return a}}function Wr(e,t){const a=[];let l=e.parentElement;for(;l;)t?l.matches(t)&&a.push(l):a.push(l),l=l.parentElement;return a}function Yl(e,t,a){const l=Ge();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Be(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function oa(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:a=>a}).createHTML(t):e.innerHTML=t}let Wl;function Rc(){const e=Ge(),t=Pt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function jr(){return Wl||(Wl=Rc()),Wl}let jl;function Hc({userAgent:e}={}){const t=jr(),a=Ge(),l=a.navigator.platform,n=e||a.navigator.userAgent,r={ios:!1,android:!1},i=a.screen.width,u=a.screen.height,s=n.match(/(Android);?[\s\/]+([\d.]+)?/);let o=n.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=n.match(/(iPod)(.*OS\s([\d_]+))?/),d=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let f=l==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&f&&t.touch&&E.indexOf(`${i}x${u}`)>=0&&(o=n.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),f=!1),s&&!m&&(r.os="android",r.android=!0),(o||d||c)&&(r.os="ios",r.ios=!0),r}function Xr(e={}){return jl||(jl=Hc(e)),jl}let Xl;function $c(){const e=Ge(),t=Xr();let a=!1;function l(){const u=e.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(l()){const u=String(e.navigator.userAgent);if(u.includes("Version/")){const[s,o]=u.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));a=s<16||s===16&&o<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=l(),i=r||n&&t.ios;return{isSafari:a||r,needPerspectiveFix:a,need3dFix:i,isWebView:n}}function Kr(){return Xl||(Xl=$c()),Xl}function Uc({swiper:e,on:t,emit:a}){const l=Ge();let n=null,r=null;const i=()=>{!e||e.destroyed||!e.initialized||(a("beforeResize"),a("resize"))},u=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(c=>{r=l.requestAnimationFrame(()=>{const{width:d,height:m}=e;let f=d,E=m;c.forEach(({contentBoxSize:b,contentRect:h,target:v})=>{v&&v!==e.el||(f=h?h.width:(b[0]||b).inlineSize,E=h?h.height:(b[0]||b).blockSize)}),(f!==d||E!==m)&&i()})}),n.observe(e.el))},s=()=>{r&&l.cancelAnimationFrame(r),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},o=()=>{!e||e.destroyed||!e.initialized||a("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){u();return}l.addEventListener("resize",i),l.addEventListener("orientationchange",o)}),t("destroy",()=>{s(),l.removeEventListener("resize",i),l.removeEventListener("orientationchange",o)})}function qc({swiper:e,extendParams:t,on:a,emit:l}){const n=[],r=Ge(),i=(o,c={})=>{const d=r.MutationObserver||r.WebkitMutationObserver,m=new d(f=>{if(e.__preventObserver__)return;if(f.length===1){l("observerUpdate",f[0]);return}const E=function(){l("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(E):r.setTimeout(E,0)});m.observe(o,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),n.push(m)},u=()=>{if(e.params.observer){if(e.params.observeParents){const o=Wr(e.hostEl);for(let c=0;c<o.length;c+=1)i(o[c])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},s=()=>{n.forEach(o=>{o.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",u),a("destroy",s)}var zc={on(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;const n=a?"unshift":"push";return e.split(" ").forEach(r=>{l.eventsListeners[r]||(l.eventsListeners[r]=[]),l.eventsListeners[r][n](t)}),l},once(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;function n(...r){l.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(l,r)}return n.__emitterProxy=t,l.on(e,n,a)},onAny(e,t){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;const l=t?"unshift":"push";return a.eventsAnyListeners.indexOf(e)<0&&a.eventsAnyListeners[l](e),a},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const a=t.eventsAnyListeners.indexOf(e);return a>=0&&t.eventsAnyListeners.splice(a,1),t},off(e,t){const a=this;return!a.eventsListeners||a.destroyed||!a.eventsListeners||e.split(" ").forEach(l=>{typeof t>"u"?a.eventsListeners[l]=[]:a.eventsListeners[l]&&a.eventsListeners[l].forEach((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&a.eventsListeners[l].splice(r,1)})}),a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let a,l,n;return typeof e[0]=="string"||Array.isArray(e[0])?(a=e[0],l=e.slice(1,e.length),n=t):(a=e[0].events,l=e[0].data,n=e[0].context||t),l.unshift(n),(Array.isArray(a)?a:a.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[i,...l])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(u=>{u.apply(n,l)})}),t}};function Vc(){const e=this;let t,a;const l=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=l.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?a=e.params.height:a=l.clientHeight,!(t===0&&e.isHorizontal()||a===0&&e.isVertical())&&(t=t-parseInt(Ct(l,"padding-left")||0,10)-parseInt(Ct(l,"padding-right")||0,10),a=a-parseInt(Ct(l,"padding-top")||0,10)-parseInt(Ct(l,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))}function Gc(){const e=this;function t(_,x){return parseFloat(_.getPropertyValue(e.getDirectionLabel(x))||0)}const a=e.params,{wrapperEl:l,slidesEl:n,rtlTranslate:r,wrongRTL:i}=e,u=e.virtual&&a.virtual.enabled,s=u?e.virtual.slides.length:e.slides.length,o=st(n,`.${e.params.slideClass}, swiper-slide`),c=u?e.virtual.slides.length:o.length;let d=[];const m=[],f=[];let E=a.slidesOffsetBefore;typeof E=="function"&&(E=a.slidesOffsetBefore.call(e));let b=a.slidesOffsetAfter;typeof b=="function"&&(b=a.slidesOffsetAfter.call(e));const h=e.snapGrid.length,v=e.slidesGrid.length,g=e.size-E-b;let y=a.spaceBetween,S=-E,w=0,A=0;if(typeof g>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*g:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-E-b,o.forEach(_=>{r?_.style.marginLeft="":_.style.marginRight="",_.style.marginBottom="",_.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(Gt(l,"--swiper-centered-offset-before",""),Gt(l,"--swiper-centered-offset-after","")),a.cssMode&&(Gt(l,"--swiper-slides-offset-before",`${E}px`),Gt(l,"--swiper-slides-offset-after",`${b}px`));const P=a.grid&&a.grid.rows>1&&e.grid;P?e.grid.initSlides(o):e.grid&&e.grid.unsetSlides();let O;const C=a.slidesPerView==="auto"&&a.breakpoints&&Object.keys(a.breakpoints).filter(_=>typeof a.breakpoints[_].slidesPerView<"u").length>0;for(let _=0;_<c;_+=1){O=0;const x=o[_];if(!(x&&(P&&e.grid.updateSlide(_,x,o),Ct(x,"display")==="none"))){if(u&&a.slidesPerView==="auto")a.virtual.slidesPerViewAutoSlideSize&&(O=a.virtual.slidesPerViewAutoSlideSize),O&&x&&(a.roundLengths&&(O=Math.floor(O)),x.style[e.getDirectionLabel("width")]=`${O}px`);else if(a.slidesPerView==="auto"){C&&(x.style[e.getDirectionLabel("width")]="");const L=getComputedStyle(x),I=x.style.transform,N=x.style.webkitTransform;if(I&&(x.style.transform="none"),N&&(x.style.webkitTransform="none"),a.roundLengths)O=e.isHorizontal()?Yl(x,"width"):Yl(x,"height");else{const T=t(L,"width"),F=t(L,"padding-left"),R=t(L,"padding-right"),H=t(L,"margin-left"),z=t(L,"margin-right"),D=L.getPropertyValue("box-sizing");if(D&&D==="border-box")O=T+H+z;else{const{clientWidth:V,offsetWidth:Y}=x;O=T+F+R+H+z+(Y-V)}}I&&(x.style.transform=I),N&&(x.style.webkitTransform=N),a.roundLengths&&(O=Math.floor(O))}else O=(g-(a.slidesPerView-1)*y)/a.slidesPerView,a.roundLengths&&(O=Math.floor(O)),x&&(x.style[e.getDirectionLabel("width")]=`${O}px`);x&&(x.swiperSlideSize=O),f.push(O),a.centeredSlides?(S=S+O/2+w/2+y,w===0&&_!==0&&(S=S-g/2-y),_===0&&(S=S-g/2-y),Math.abs(S)<1/1e3&&(S=0),a.roundLengths&&(S=Math.floor(S)),A%a.slidesPerGroup===0&&d.push(S),m.push(S)):(a.roundLengths&&(S=Math.floor(S)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&d.push(S),m.push(S),S=S+O+y),e.virtualSize+=O+y,w=O,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,g)+b,r&&i&&(a.effect==="slide"||a.effect==="coverflow")&&(l.style.width=`${e.virtualSize+y}px`),a.setWrapperSize&&(l.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),P&&e.grid.updateWrapperSize(O,d),!a.centeredSlides){const _=a.slidesPerView!=="auto"&&a.slidesPerView%1!==0,x=a.snapToSlideEdge&&!a.loop&&(a.slidesPerView==="auto"||_);let L=d.length;if(x){let N;if(a.slidesPerView==="auto"){N=1;let T=0;for(let F=f.length-1;F>=0&&(T+=f[F]+(F<f.length-1?y:0),T<=g);F-=1)N=f.length-F}else N=Math.floor(a.slidesPerView);L=Math.max(c-N,0)}const I=[];for(let N=0;N<d.length;N+=1){let T=d[N];a.roundLengths&&(T=Math.floor(T)),x?N<=L&&I.push(T):d[N]<=e.virtualSize-g&&I.push(T)}d=I,Math.floor(e.virtualSize-g)-Math.floor(d[d.length-1])>1&&(x||d.push(e.virtualSize-g))}if(u&&a.loop){const _=f[0]+y;if(a.slidesPerGroup>1){const x=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/a.slidesPerGroup),L=_*a.slidesPerGroup;for(let I=0;I<x;I+=1)d.push(d[d.length-1]+L)}for(let x=0;x<e.virtual.slidesBefore+e.virtual.slidesAfter;x+=1)a.slidesPerGroup===1&&d.push(d[d.length-1]+_),m.push(m[m.length-1]+_),e.virtualSize+=_}if(d.length===0&&(d=[0]),y!==0){const _=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");o.filter((x,L)=>!a.cssMode||a.loop?!0:L!==o.length-1).forEach(x=>{x.style[_]=`${y}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let _=0;f.forEach(L=>{_+=L+(y||0)}),_-=y;const x=_>g?_-g:0;d=d.map(L=>L<=0?-E:L>x?x+b:L)}if(a.centerInsufficientSlides){let _=0;f.forEach(L=>{_+=L+(y||0)}),_-=y;const x=(E||0)+(b||0);if(_+x<g){const L=(g-_-x)/2;d.forEach((I,N)=>{d[N]=I-L}),m.forEach((I,N)=>{m[N]=I+L})}}if(Object.assign(e,{slides:o,snapGrid:d,slidesGrid:m,slidesSizesGrid:f}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){Gt(l,"--swiper-centered-offset-before",`${-d[0]}px`),Gt(l,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const _=-e.snapGrid[0],x=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+_),e.slidesGrid=e.slidesGrid.map(L=>L+x)}if(c!==s&&e.emit("slidesLengthChange"),d.length!==h&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==v&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!u&&!a.cssMode&&(a.effect==="slide"||a.effect==="fade")){const _=`${a.containerModifierClass}backface-hidden`,x=e.el.classList.contains(_);c<=a.maxBackfaceHiddenSlides?x||e.el.classList.add(_):x&&e.el.classList.remove(_)}}function Yc(e){const t=this,a=[],l=t.virtual&&t.params.virtual.enabled;let n=0,r;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=u=>l?t.slides[t.getSlideIndexByData(u)]:t.slides[u];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(u=>{a.push(u)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const u=t.activeIndex+r;if(u>t.slides.length&&!l)break;a.push(i(u))}else a.push(i(t.activeIndex));for(r=0;r<a.length;r+=1)if(typeof a[r]<"u"){const u=a[r].offsetHeight;n=u>n?u:n}(n||n===0)&&(t.wrapperEl.style.height=`${n}px`)}function Wc(){const e=this,t=e.slides,a=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let l=0;l<t.length;l+=1)t[l].swiperSlideOffset=(e.isHorizontal()?t[l].offsetLeft:t[l].offsetTop)-a-e.cssOverflowAdjustment()}const Qr=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function jc(e=this&&this.translate||0){const t=this,a=t.params,{slides:l,rtlTranslate:n,snapGrid:r}=t;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;n&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let u=a.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u));for(let s=0;s<l.length;s+=1){const o=l[s];let c=o.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(c-=l[0].swiperSlideOffset);const d=(i+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),m=(i-r[0]+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),f=-(i-c),E=f+t.slidesSizesGrid[s],b=f>=0&&f<=t.size-t.slidesSizesGrid[s],h=f>=0&&f<t.size-1||E>1&&E<=t.size||f<=0&&E>=t.size;h&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s)),Qr(o,h,a.slideVisibleClass),Qr(o,b,a.slideFullyVisibleClass),o.progress=n?-d:d,o.originalProgress=n?-m:m}}function Xc(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const a=t.params,l=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:i,progressLoop:u}=t;const s=r,o=i;if(l===0)n=0,r=!0,i=!0;else{n=(e-t.minTranslate())/l;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;r=c||n<=0,i=d||n>=1,c&&(n=0),d&&(n=1)}if(a.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[c],f=t.slidesGrid[d],E=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=m?u=(b-m)/E:u=(b+E-f)/E,u>1&&(u-=1)}Object.assign(t,{progress:n,progressLoop:u,isBeginning:r,isEnd:i}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),r&&!s&&t.emit("reachBeginning toEdge"),i&&!o&&t.emit("reachEnd toEdge"),(s&&!r||o&&!i)&&t.emit("fromEdge"),t.emit("progress",n)}const Kl=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function Kc(){const e=this,{slides:t,params:a,slidesEl:l,activeIndex:n}=e,r=e.virtual&&a.virtual.enabled,i=e.grid&&a.grid&&a.grid.rows>1,u=d=>st(l,`.${a.slideClass}${d}, swiper-slide${d}`)[0];let s,o,c;if(r)if(a.loop){let d=n-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),s=u(`[data-swiper-slide-index="${d}"]`)}else s=u(`[data-swiper-slide-index="${n}"]`);else i?(s=t.find(d=>d.column===n),c=t.find(d=>d.column===n+1),o=t.find(d=>d.column===n-1)):s=t[n];s&&(i||(c=Fc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!c&&(c=t[0]),o=Bc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!o===0&&(o=t[t.length-1]))),t.forEach(d=>{Kl(d,d===s,a.slideActiveClass),Kl(d,d===c,a.slideNextClass),Kl(d,d===o,a.slidePrevClass)}),e.emitSlidesClasses()}const il=(e,t)=>{if(!e||e.destroyed||!e.params)return;const a=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,l=t.closest(a());if(l){let n=l.querySelector(`.${e.params.lazyPreloaderClass}`);!n&&e.isElement&&(l.shadowRoot?n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),n&&!n.lazyPreloaderManaged&&n.remove())})),n&&!n.lazyPreloaderManaged&&n.remove()}},Ql=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},Jl=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const a=e.slides.length;if(!a||!t||t<0)return;t=Math.min(t,a);const l=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,u=[i-t];u.push(...Array.from({length:t}).map((s,o)=>i+l+o)),e.slides.forEach((s,o)=>{u.includes(s.column)&&Ql(e,o)});return}const r=n+l-1;if(e.params.rewind||e.params.loop)for(let i=n-t;i<=r+t;i+=1){const u=(i%a+a)%a;(u<n||u>r)&&Ql(e,u)}else for(let i=Math.max(n-t,0);i<=Math.min(r+t,a-1);i+=1)i!==n&&(i>r||i<n)&&Ql(e,i)};function Qc(e){const{slidesGrid:t,params:a}=e,l=e.rtlTranslate?e.translate:-e.translate;let n;for(let r=0;r<t.length;r+=1)typeof t[r+1]<"u"?l>=t[r]&&l<t[r+1]-(t[r+1]-t[r])/2?n=r:l>=t[r]&&l<t[r+1]&&(n=r+1):l>=t[r]&&(n=r);return a.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Jc(e){const t=this,a=t.rtlTranslate?t.translate:-t.translate,{snapGrid:l,params:n,activeIndex:r,realIndex:i,snapIndex:u}=t;let s=e,o;const c=f=>{let E=f-t.virtual.slidesBefore;return E<0&&(E=t.virtual.slides.length+E),E>=t.virtual.slides.length&&(E-=t.virtual.slides.length),E};if(typeof s>"u"&&(s=Qc(t)),l.indexOf(a)>=0)o=l.indexOf(a);else{const f=Math.min(n.slidesPerGroupSkip,s);o=f+Math.floor((s-f)/n.slidesPerGroup)}if(o>=l.length&&(o=l.length-1),s===r&&!t.params.loop){o!==u&&(t.snapIndex=o,t.emit("snapIndexChange"));return}if(s===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(s);return}const d=t.grid&&n.grid&&n.grid.rows>1;let m;if(t.virtual&&n.virtual.enabled)n.loop?m=c(s):m=s;else if(d){const f=t.slides.find(b=>b.column===s);let E=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(E)&&(E=Math.max(t.slides.indexOf(f),0)),m=Math.floor(E/n.grid.rows)}else if(t.slides[s]){const f=t.slides[s].getAttribute("data-swiper-slide-index");f?m=parseInt(f,10):m=s}else m=s;Object.assign(t,{previousSnapIndex:u,snapIndex:o,previousRealIndex:i,realIndex:m,previousIndex:r,activeIndex:s}),t.initialized&&Jl(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function Zc(e,t){const a=this,l=a.params;let n=e.closest(`.${l.slideClass}, swiper-slide`);!n&&a.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(u=>{!n&&u.matches&&u.matches(`.${l.slideClass}, swiper-slide`)&&(n=u)});let r=!1,i;if(n){for(let u=0;u<a.slides.length;u+=1)if(a.slides[u]===n){r=!0,i=u;break}}if(n&&r)a.clickedSlide=n,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):a.clickedIndex=i;else{a.clickedSlide=void 0,a.clickedIndex=void 0;return}l.slideToClickedSlide&&a.clickedIndex!==void 0&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()}var ed={updateSize:Vc,updateSlides:Gc,updateAutoHeight:Yc,updateSlidesOffset:Wc,updateSlidesProgress:jc,updateProgress:Xc,updateSlidesClasses:Kc,updateActiveIndex:Jc,updateClickedSlide:Zc};function td(e=this.isHorizontal()?"x":"y"){const t=this,{params:a,rtlTranslate:l,translate:n,wrapperEl:r}=t;if(a.virtualTranslate)return l?-n:n;if(a.cssMode)return n;let i=Oc(r,e);return i+=t.cssOverflowAdjustment(),l&&(i=-i),i||0}function ad(e,t){const a=this,{rtlTranslate:l,params:n,wrapperEl:r,progress:i}=a;let u=0,s=0;const o=0;a.isHorizontal()?u=l?-e:e:s=e,n.roundLengths&&(u=Math.floor(u),s=Math.floor(s)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?u:s,n.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-u:-s:n.virtualTranslate||(a.isHorizontal()?u-=a.cssOverflowAdjustment():s-=a.cssOverflowAdjustment(),r.style.transform=`translate3d(${u}px, ${s}px, ${o}px)`);let c;const d=a.maxTranslate()-a.minTranslate();d===0?c=0:c=(e-a.minTranslate())/d,c!==i&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)}function ld(){return-this.snapGrid[0]}function nd(){return-this.snapGrid[this.snapGrid.length-1]}function rd(e=0,t=this.params.speed,a=!0,l=!0,n){const r=this,{params:i,wrapperEl:u}=r;if(r.animating&&i.preventInteractionOnTransition)return!1;const s=r.minTranslate(),o=r.maxTranslate();let c;if(l&&e>s?c=s:l&&e<o?c=o:c=e,r.updateProgress(c),i.cssMode){const d=r.isHorizontal();if(t===0)u[d?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return Yr({swiper:r,targetPosition:-c,side:d?"left":"top"}),!0;u.scrollTo({[d?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(r.setTransition(0),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(m){!r||r.destroyed||m.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,a&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var id={getTranslate:td,setTranslate:ad,minTranslate:ld,maxTranslate:nd,translateTo:rd};function ud(e,t){const a=this;a.params.cssMode||(a.wrapperEl.style.transitionDuration=`${e}ms`,a.wrapperEl.style.transitionDelay=e===0?"0ms":""),a.emit("setTransition",e,t)}function Jr({swiper:e,runCallbacks:t,direction:a,step:l}){const{activeIndex:n,previousIndex:r}=e;let i=a;i||(n>r?i="next":n<r?i="prev":i="reset"),e.emit(`transition${l}`),t&&i==="reset"?e.emit(`slideResetTransition${l}`):t&&n!==r&&(e.emit(`slideChangeTransition${l}`),i==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`))}function sd(e=!0,t){const a=this,{params:l}=a;l.cssMode||(l.autoHeight&&a.updateAutoHeight(),Jr({swiper:a,runCallbacks:e,direction:t,step:"Start"}))}function od(e=!0,t){const a=this,{params:l}=a;a.animating=!1,!l.cssMode&&(a.setTransition(0),Jr({swiper:a,runCallbacks:e,direction:t,step:"End"}))}var cd={setTransition:ud,transitionStart:sd,transitionEnd:od};function dd(e=0,t,a=!0,l,n){typeof e=="string"&&(e=parseInt(e,10));const r=this;let i=e;i<0&&(i=0);const{params:u,snapGrid:s,slidesGrid:o,previousIndex:c,activeIndex:d,rtlTranslate:m,wrapperEl:f,enabled:E}=r;if(!E&&!l&&!n||r.destroyed||r.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const b=Math.min(r.params.slidesPerGroupSkip,i);let h=b+Math.floor((i-b)/r.params.slidesPerGroup);h>=s.length&&(h=s.length-1);const v=-s[h];if(u.normalizeSlideIndex)for(let P=0;P<o.length;P+=1){const O=-Math.floor(v*100),C=Math.floor(o[P]*100),_=Math.floor(o[P+1]*100);typeof o[P+1]<"u"?O>=C&&O<_-(_-C)/2?i=P:O>=C&&O<_&&(i=P+1):O>=C&&(i=P)}if(r.initialized&&i!==d&&(!r.allowSlideNext&&(m?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate())||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(d||0)!==i))return!1;i!==(c||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let g;i>d?g="next":i<d?g="prev":g="reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&n)&&(m&&-v===r.translate||!m&&v===r.translate))return r.updateActiveIndex(i),u.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),u.effect!=="slide"&&r.setTranslate(v),g!=="reset"&&(r.transitionStart(a,g),r.transitionEnd(a,g)),!1;if(u.cssMode){const P=r.isHorizontal(),O=m?v:-v;if(t===0)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[P?"scrollLeft":"scrollTop"]=O})):f[P?"scrollLeft":"scrollTop"]=O,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Yr({swiper:r,targetPosition:O,side:P?"left":"top"}),!0;f.scrollTo({[P?"left":"top"]:O,behavior:"smooth"})}return!0}const A=Kr().isSafari;return y&&!n&&A&&r.isElement&&r.virtual.update(!1,!1,i),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(i),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,l),r.transitionStart(a,g),t===0?r.transitionEnd(a,g):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(O){!r||r.destroyed||O.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(a,g))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function fd(e=0,t,a=!0,l){typeof e=="string"&&(e=parseInt(e,10));const n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let i=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)i=i+n.virtual.slidesBefore;else{let u;if(r){const b=i*n.params.grid.rows;u=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).column}else u=n.getSlideIndexByData(i);const s=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:o,slidesOffsetBefore:c,slidesOffsetAfter:d}=n.params,m=o||!!c||!!d;let f=n.params.slidesPerView;f==="auto"?f=n.slidesPerViewDynamic():(f=Math.ceil(parseFloat(n.params.slidesPerView,10)),m&&f%2===0&&(f=f+1));let E=s-u<f;if(m&&(E=E||u<Math.ceil(f/2)),l&&m&&n.params.slidesPerView!=="auto"&&!r&&(E=!1),E){const b=m?u<n.activeIndex?"prev":"next":u-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:b,slideTo:!0,activeSlideIndex:b==="next"?u+1:u-s+1,slideRealIndex:b==="next"?n.realIndex:void 0})}if(r){const b=i*n.params.grid.rows;i=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).column}else i=n.getSlideIndexByData(i)}return requestAnimationFrame(()=>{n.slideTo(i,t,a,l)}),n}function pd(e,t=!0,a){const l=this,{enabled:n,params:r,animating:i}=l;if(!n||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);let u=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(u=Math.max(l.slidesPerViewDynamic("current",!0),1));const s=l.activeIndex<r.slidesPerGroupSkip?1:u,o=l.virtual&&r.virtual.enabled;if(r.loop){if(i&&!o&&r.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+s,e,t,a)}),!0}return r.rewind&&l.isEnd?l.slideTo(0,e,t,a):l.slideTo(l.activeIndex+s,e,t,a)}function hd(e,t=!0,a){const l=this,{params:n,snapGrid:r,slidesGrid:i,rtlTranslate:u,enabled:s,animating:o}=l;if(!s||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);const c=l.virtual&&n.virtual.enabled;if(n.loop){if(o&&!c&&n.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const d=u?l.translate:-l.translate;function m(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const f=m(d),E=r.map(g=>m(g)),b=n.freeMode&&n.freeMode.enabled;let h=r[E.indexOf(f)-1];if(typeof h>"u"&&(n.cssMode||b)){let g;r.forEach((y,S)=>{f>=y&&(g=S)}),typeof g<"u"&&(h=b?r[g]:r[g>0?g-1:g])}let v=0;if(typeof h<"u"&&(v=i.indexOf(h),v<0&&(v=l.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(v=v-l.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),n.rewind&&l.isBeginning){const g=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(g,e,t,a)}else if(n.loop&&l.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{l.slideTo(v,e,t,a)}),!0;return l.slideTo(v,e,t,a)}function bd(e,t=!0,a){const l=this;if(!l.destroyed)return typeof e>"u"&&(e=l.params.speed),l.slideTo(l.activeIndex,e,t,a)}function md(e,t=!0,a,l=.5){const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);let r=n.activeIndex;const i=Math.min(n.params.slidesPerGroupSkip,r),u=i+Math.floor((r-i)/n.params.slidesPerGroup),s=n.rtlTranslate?n.translate:-n.translate;if(s>=n.snapGrid[u]){const o=n.snapGrid[u],c=n.snapGrid[u+1];s-o>(c-o)*l&&(r+=n.params.slidesPerGroup)}else{const o=n.snapGrid[u-1],c=n.snapGrid[u];s-o<=(c-o)*l&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,a)}function vd(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:a}=e,l=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let n=e.getSlideIndexWhenGrid(e.clickedIndex),r;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):n>(u?(e.slides.length-l)/2-(e.params.grid.rows-1):e.slides.length-l)?(e.loopFix(),n=e.getSlideIndex(st(a,`${i}[data-swiper-slide-index="${r}"]`)[0]),Gr(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}var gd={slideTo:dd,slideToLoop:fd,slideNext:pd,slidePrev:hd,slideReset:bd,slideToClosest:md,slideToClickedSlide:vd};function Ed(e,t){const a=this,{params:l,slidesEl:n}=a;if(!l.loop||a.virtual&&a.params.virtual.enabled)return;const r=()=>{st(n,`.${l.slideClass}, swiper-slide`).forEach((E,b)=>{E.setAttribute("data-swiper-slide-index",b)})},i=()=>{const f=st(n,`.${l.slideBlankClass}`);f.forEach(E=>{E.remove()}),f.length>0&&(a.recalcSlides(),a.updateSlides())},u=a.grid&&l.grid&&l.grid.rows>1;l.loopAddBlankSlides&&(l.slidesPerGroup>1||u)&&i();const s=l.slidesPerGroup*(u?l.grid.rows:1),o=a.slides.length%s!==0,c=u&&a.slides.length%l.grid.rows!==0,d=f=>{for(let E=0;E<f;E+=1){const b=a.isElement?nl("swiper-slide",[l.slideBlankClass]):nl("div",[l.slideClass,l.slideBlankClass]);a.slidesEl.append(b)}};if(o){if(l.loopAddBlankSlides){const f=s-a.slides.length%s;d(f),a.recalcSlides(),a.updateSlides()}else ll("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(l.loopAddBlankSlides){const f=l.grid.rows-a.slides.length%l.grid.rows;d(f),a.recalcSlides(),a.updateSlides()}else ll("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();const m=l.centeredSlides||!!l.slidesOffsetBefore||!!l.slidesOffsetAfter;a.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function yd({slideRealIndex:e,slideTo:t=!0,direction:a,setTranslate:l,activeSlideIndex:n,initial:r,byController:i,byMousewheel:u}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:o,allowSlidePrev:c,allowSlideNext:d,slidesEl:m,params:f}=s,{centeredSlides:E,slidesOffsetBefore:b,slidesOffsetAfter:h,initialSlide:v}=f,g=E||!!b||!!h;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!g&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):g&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=d,s.emit("loopFix");return}let y=f.slidesPerView;y==="auto"?y=s.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),g&&y%2===0&&(y=y+1));const S=f.slidesPerGroupAuto?y:f.slidesPerGroup;let w=g?Math.max(S,Math.ceil(y/2)):S;w%S!==0&&(w+=S-w%S),w+=f.loopAdditionalSlides,s.loopedSlides=w;const A=s.grid&&f.grid&&f.grid.rows>1;o.length<y+w||s.params.effect==="cards"&&o.length<y+w*2?ll("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):A&&f.grid.fill==="row"&&ll("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const P=[],O=[],C=A?Math.ceil(o.length/f.grid.rows):o.length,_=r&&C-v<y&&!g;let x=_?v:s.activeIndex;typeof n>"u"?n=s.getSlideIndex(o.find(H=>H.classList.contains(f.slideActiveClass))):x=n;const L=a==="next"||!a,I=a==="prev"||!a;let N=0,T=0;const R=(A?o[n].column:n)+(g&&typeof l>"u"?-y/2+.5:0);if(R<w){N=Math.max(w-R,S);for(let H=0;H<w-R;H+=1){const z=H-Math.floor(H/C)*C;if(A){const D=C-z-1;for(let V=o.length-1;V>=0;V-=1)o[V].column===D&&P.push(V)}else P.push(C-z-1)}}else if(R+y>C-w){T=Math.max(R-(C-w*2),S),_&&(T=Math.max(T,y-C+v+1));for(let H=0;H<T;H+=1){const z=H-Math.floor(H/C)*C;A?o.forEach((D,V)=>{D.column===z&&O.push(V)}):O.push(z)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),s.params.effect==="cards"&&o.length<y+w*2&&(O.includes(n)&&O.splice(O.indexOf(n),1),P.includes(n)&&P.splice(P.indexOf(n),1)),I&&P.forEach(H=>{o[H].swiperLoopMoveDOM=!0,m.prepend(o[H]),o[H].swiperLoopMoveDOM=!1}),L&&O.forEach(H=>{o[H].swiperLoopMoveDOM=!0,m.append(o[H]),o[H].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"?s.updateSlides():A&&(P.length>0&&I||O.length>0&&L)&&s.slides.forEach((H,z)=>{s.grid.updateSlide(z,H,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(P.length>0&&I){if(typeof e>"u"){const H=s.slidesGrid[x],D=s.slidesGrid[x+N]-H;u?s.setTranslate(s.translate-D):(s.slideTo(x+Math.ceil(N),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-D,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-D))}else if(l){const H=A?P.length/f.grid.rows:P.length;s.slideTo(s.activeIndex+H,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(O.length>0&&L)if(typeof e>"u"){const H=s.slidesGrid[x],D=s.slidesGrid[x-T]-H;u?s.setTranslate(s.translate-D):(s.slideTo(x-T,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-D,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-D))}else{const H=A?O.length/f.grid.rows:O.length;s.slideTo(s.activeIndex-H,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=d,s.controller&&s.controller.control&&!i){const H={slideRealIndex:e,direction:a,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...H,slideTo:z.params.slidesPerView===f.slidesPerView?t:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...H,slideTo:s.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}s.emit("loopFix")}function Td(){const e=this,{params:t,slidesEl:a}=e;if(!t.loop||!a||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const l=[];e.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;l[r]=n}),e.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),l.forEach(n=>{a.append(n)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var xd={loopCreate:Ed,loopFix:yd,loopDestroy:Td};function Cd(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const a=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Sd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Ad={setGrabCursor:Cd,unsetGrabCursor:Sd};function wd(e,t=this){function a(l){if(!l||l===Pt()||l===Ge())return null;l.assignedSlot&&(l=l.assignedSlot);const n=l.closest(e);return!n&&!l.getRootNode?null:n||a(l.getRootNode().host)}return a(t)}function Zr(e,t,a){const l=Ge(),{params:n}=e,r=n.edgeSwipeDetection,i=n.edgeSwipeThreshold;return r&&(a<=i||a>=l.innerWidth-i)?r==="prevent"?(t.preventDefault(),!0):!1:!0}function _d(e){const t=this,a=Pt();let l=e;l.originalEvent&&(l=l.originalEvent);const n=t.touchEventsData;if(l.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==l.pointerId)return;n.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(n.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){Zr(t,l,l.targetTouches[0].pageX);return}const{params:r,touches:i,enabled:u}=t;if(!u||!r.simulateTouch&&l.pointerType==="mouse"||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let s=l.target;if(r.touchEventsTarget==="wrapper"&&!Mc(s,t.wrapperEl)||"which"in l&&l.which===3||"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;const o=!!r.noSwipingClass&&r.noSwipingClass!=="",c=l.composedPath?l.composedPath():l.path;o&&l.target&&l.target.shadowRoot&&c&&(s=c[0]);const d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?wd(d,s):s.closest(d))){t.allowClick=!0;return}if(r.swipeHandler&&!s.closest(r.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const f=i.currentX,E=i.currentY;if(!Zr(t,l,f))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=f,i.startY=E,n.touchStartTime=tl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let b=!0;s.matches(n.focusableElements)&&(b=!1,s.nodeName==="SELECT"&&(n.isTouched=!1)),a.activeElement&&a.activeElement.matches(n.focusableElements)&&a.activeElement!==s&&(l.pointerType==="mouse"||l.pointerType!=="mouse"&&!s.matches(n.focusableElements))&&a.activeElement.blur();const h=b&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||h)&&!s.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function kd(e){const t=Pt(),a=this,l=a.touchEventsData,{params:n,touches:r,rtlTranslate:i,enabled:u}=a;if(!u||!n.simulateTouch&&e.pointerType==="mouse")return;let s=e;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(l.touchId!==null||s.pointerId!==l.pointerId))return;let o;if(s.type==="touchmove"){if(o=[...s.changedTouches].find(w=>w.identifier===l.touchId),!o||o.identifier!==l.touchId)return}else o=s;if(!l.isTouched){l.startMoving&&l.isScrolling&&a.emit("touchMoveOpposite",s);return}const c=o.pageX,d=o.pageY;if(s.preventedByNestedSwiper){r.startX=c,r.startY=d;return}if(!a.allowTouchMove){s.target.matches(l.focusableElements)||(a.allowClick=!1),l.isTouched&&(Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d}),l.touchStartTime=tl());return}if(n.touchReleaseOnEdges&&!n.loop)if(a.isVertical()){if(d<r.startY&&a.translate<=a.maxTranslate()||d>r.startY&&a.translate>=a.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else{if(i&&(c>r.startX&&-a.translate<=a.maxTranslate()||c<r.startX&&-a.translate>=a.minTranslate()))return;if(!i&&(c<r.startX&&a.translate<=a.maxTranslate()||c>r.startX&&a.translate>=a.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(l.focusableElements)&&t.activeElement!==s.target&&s.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&s.target===t.activeElement&&s.target.matches(l.focusableElements)){l.isMoved=!0,a.allowClick=!1;return}l.allowTouchCallbacks&&a.emit("touchMove",s),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=c,r.currentY=d;const m=r.currentX-r.startX,f=r.currentY-r.startY;if(a.params.threshold&&Math.sqrt(m**2+f**2)<a.params.threshold)return;if(typeof l.isScrolling>"u"){let w;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?l.isScrolling=!1:m*m+f*f>=25&&(w=Math.atan2(Math.abs(f),Math.abs(m))*180/Math.PI,l.isScrolling=a.isHorizontal()?w>n.touchAngle:90-w>n.touchAngle)}if(l.isScrolling&&a.emit("touchMoveOpposite",s),typeof l.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(l.startMoving=!0),l.isScrolling||s.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;a.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation();let E=a.isHorizontal()?m:f,b=a.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(E=Math.abs(E)*(i?1:-1),b=Math.abs(b)*(i?1:-1)),r.diff=E,E*=n.touchRatio,i&&(E=-E,b=-b);const h=a.touchesDirection;a.swipeDirection=E>0?"prev":"next",a.touchesDirection=b>0?"prev":"next";const v=a.params.loop&&!n.cssMode,g=a.touchesDirection==="next"&&a.allowSlideNext||a.touchesDirection==="prev"&&a.allowSlidePrev;if(!l.isMoved){if(v&&g&&a.loopFix({direction:a.swipeDirection}),l.startTranslate=a.getTranslate(),a.setTransition(0),a.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});a.wrapperEl.dispatchEvent(w)}l.allowMomentumBounce=!1,n.grabCursor&&(a.allowSlideNext===!0||a.allowSlidePrev===!0)&&a.setGrabCursor(!0),a.emit("sliderFirstMove",s)}if(new Date().getTime(),n._loopSwapReset!==!1&&l.isMoved&&l.allowThresholdMove&&h!==a.touchesDirection&&v&&g&&Math.abs(E)>=1){Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}a.emit("sliderMove",s),l.isMoved=!0,l.currentTranslate=E+l.startTranslate;let y=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),E>0?(v&&g&&l.allowThresholdMove&&l.currentTranslate>(n.centeredSlides?a.minTranslate()-a.slidesSizesGrid[a.activeIndex+1]-(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.activeIndex+1]+a.params.spaceBetween:0)-a.params.spaceBetween:a.minTranslate())&&a.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>a.minTranslate()&&(y=!1,n.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+E)**S))):E<0&&(v&&g&&l.allowThresholdMove&&l.currentTranslate<(n.centeredSlides?a.maxTranslate()+a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween+(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween:0):a.maxTranslate())&&a.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:a.slides.length-(n.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),l.currentTranslate<a.maxTranslate()&&(y=!1,n.resistance&&(l.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-l.startTranslate-E)**S))),y&&(s.preventedByNestedSwiper=!0),!a.allowSlideNext&&a.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&a.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&!a.allowSlideNext&&(l.currentTranslate=l.startTranslate),n.threshold>0)if(Math.abs(E)>n.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,l.currentTranslate=l.startTranslate,r.diff=a.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{l.currentTranslate=l.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&a.freeMode||n.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(l.currentTranslate),a.setTranslate(l.currentTranslate))}function Nd(e){const t=this,a=t.touchEventsData;let l=e;l.originalEvent&&(l=l.originalEvent);let n;if(l.type==="touchend"||l.type==="touchcancel"){if(n=[...l.changedTouches].find(w=>w.identifier===a.touchId),!n||n.identifier!==a.touchId)return}else{if(a.touchId!==null||l.pointerId!==a.pointerId)return;n=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(t.browser.isSafari||t.browser.isWebView)))return;a.pointerId=null,a.touchId=null;const{params:i,touches:u,rtlTranslate:s,slidesGrid:o,enabled:c}=t;if(!c||!i.simulateTouch&&l.pointerType==="mouse")return;if(a.allowTouchCallbacks&&t.emit("touchEnd",l),a.allowTouchCallbacks=!1,!a.isTouched){a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,a.startMoving=!1;return}i.grabCursor&&a.isMoved&&a.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=tl(),m=d-a.touchStartTime;if(t.allowClick){const w=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(w&&w[0]||l.target,w),t.emit("tap click",l),m<300&&d-a.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(a.lastClickTime=tl(),Gr(()=>{t.destroyed||(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||u.diff===0&&!a.loopSwapReset||a.currentTranslate===a.startTranslate&&!a.loopSwapReset){a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;return}a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;let f;if(i.followFinger?f=s?t.translate:-t.translate:f=-a.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const E=f>=-t.maxTranslate()&&!t.params.loop;let b=0,h=t.slidesSizesGrid[0];for(let w=0;w<o.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const A=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof o[w+A]<"u"?(E||f>=o[w]&&f<o[w+A])&&(b=w,h=o[w+A]-o[w]):(E||f>=o[w])&&(b=w,h=o[o.length-1]-o[o.length-2])}let v=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(f-o[b])/h,S=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(m>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?v:b+S):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+S):g!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(g):t.slideTo(b))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(b+S):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:b+S),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:b))}}function ei(){const e=this,{params:t,el:a}=e;if(a&&a.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:n,snapGrid:r}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const u=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=l,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Id(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ld(){const e=this,{wrapperEl:t,rtlTranslate:a,enabled:l}=e;if(!l)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let n;const r=e.maxTranslate()-e.minTranslate();r===0?n=0:n=(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(a?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Od(e){const t=this;il(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Dd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ti=(e,t)=>{const a=Pt(),{params:l,el:n,wrapperEl:r,device:i}=e,u=!!l.nested,s=t==="on"?"addEventListener":"removeEventListener",o=t;!n||typeof n=="string"||(a[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:u}),n[s]("touchstart",e.onTouchStart,{passive:!1}),n[s]("pointerdown",e.onTouchStart,{passive:!1}),a[s]("touchmove",e.onTouchMove,{passive:!1,capture:u}),a[s]("pointermove",e.onTouchMove,{passive:!1,capture:u}),a[s]("touchend",e.onTouchEnd,{passive:!0}),a[s]("pointerup",e.onTouchEnd,{passive:!0}),a[s]("pointercancel",e.onTouchEnd,{passive:!0}),a[s]("touchcancel",e.onTouchEnd,{passive:!0}),a[s]("pointerout",e.onTouchEnd,{passive:!0}),a[s]("pointerleave",e.onTouchEnd,{passive:!0}),a[s]("contextmenu",e.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&n[s]("click",e.onClick,!0),l.cssMode&&r[s]("scroll",e.onScroll),l.updateOnWindowResize?e[o](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",ei,!0):e[o]("observerUpdate",ei,!0),n[s]("load",e.onLoad,{capture:!0}))};function Pd(){const e=this,{params:t}=e;e.onTouchStart=_d.bind(e),e.onTouchMove=kd.bind(e),e.onTouchEnd=Nd.bind(e),e.onDocumentTouchStart=Dd.bind(e),t.cssMode&&(e.onScroll=Ld.bind(e)),e.onClick=Id.bind(e),e.onLoad=Od.bind(e),ti(e,"on")}function Md(){ti(this,"off")}var Bd={attachEvents:Pd,detachEvents:Md};const ai=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Fd(){const e=this,{realIndex:t,initialized:a,params:l,el:n}=e,r=l.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const i=Pt(),u=l.breakpointsBase==="window"||!l.breakpointsBase?l.breakpointsBase:"container",s=["window","container"].includes(l.breakpointsBase)||!l.breakpointsBase?e.el:i.querySelector(l.breakpointsBase),o=e.getBreakpoint(r,u,s);if(!o||e.currentBreakpoint===o)return;const d=(o in r?r[o]:void 0)||e.originalParams,m=ai(e,l),f=ai(e,d),E=e.params.grabCursor,b=d.grabCursor,h=l.enabled;m&&!f?(n.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&f&&(n.classList.add(`${l.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&l.grid.fill==="column")&&n.classList.add(`${l.containerModifierClass}grid-column`),e.emitContainerClasses()),E&&!b?e.unsetGrabCursor():!E&&b&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof d[A]>"u")return;const P=l[A]&&l[A].enabled,O=d[A]&&d[A].enabled;P&&!O&&e[A].disable(),!P&&O&&e[A].enable()});const v=d.direction&&d.direction!==l.direction,g=l.loop&&(d.slidesPerView!==l.slidesPerView||v),y=l.loop;v&&a&&e.changeDirection(),Ke(e.params,d);const S=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!S?e.disable():!h&&S&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",d),a&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",d)}function Rd(e,t="window",a){if(!e||t==="container"&&!a)return;let l=!1;const n=Ge(),r=t==="window"?n.innerHeight:a.clientHeight,i=Object.keys(e).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const s=parseFloat(u.substr(1));return{value:r*s,point:u}}return{value:u,point:u}});i.sort((u,s)=>parseInt(u.value,10)-parseInt(s.value,10));for(let u=0;u<i.length;u+=1){const{point:s,value:o}=i[u];t==="window"?n.matchMedia(`(min-width: ${o}px)`).matches&&(l=s):o<=a.clientWidth&&(l=s)}return l||"max"}var Hd={setBreakpoint:Fd,getBreakpoint:Rd};function $d(e,t){const a=[];return e.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(n=>{l[n]&&a.push(t+n)}):typeof l=="string"&&a.push(t+l)}),a}function Ud(){const e=this,{classNames:t,params:a,rtl:l,el:n,device:r}=e,i=$d(["initialized",a.direction,{"free-mode":e.params.freeMode&&a.freeMode.enabled},{autoheight:a.autoHeight},{rtl:l},{grid:a.grid&&a.grid.rows>1},{"grid-column":a.grid&&a.grid.rows>1&&a.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":a.cssMode},{centered:a.cssMode&&a.centeredSlides},{"watch-progress":a.watchSlidesProgress}],a.containerModifierClass);t.push(...i),n.classList.add(...t),e.emitContainerClasses()}function qd(){const e=this,{el:t,classNames:a}=e;!t||typeof t=="string"||(t.classList.remove(...a),e.emitContainerClasses())}var zd={addClasses:Ud,removeClasses:qd};function Vd(){const e=this,{isLocked:t,params:a}=e,{slidesOffsetBefore:l}=a;if(l){const n=e.slides.length-1,r=e.slidesGrid[n]+e.slidesSizesGrid[n]+l*2;e.isLocked=e.size>r}else e.isLocked=e.snapGrid.length===1;a.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),a.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Gd={checkOverflow:Vd},Zl={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Yd(e,t){return function(l={}){const n=Object.keys(l)[0],r=l[n];if(typeof r!="object"||r===null){Ke(t,l);return}if(e[n]===!0&&(e[n]={enabled:!0}),n==="navigation"&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),!(n in e&&"enabled"in r)){Ke(t,l);return}typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),Ke(t,l)}}const en={eventsEmitter:zc,update:ed,translate:id,transition:cd,slide:gd,loop:xd,grabCursor:Ad,events:Bd,breakpoints:Hd,checkOverflow:Gd,classes:zd},tn={};let an=class Tt{constructor(...t){let a,l;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?l=t[0]:[a,l]=t,l||(l={}),l=Ke({},l),a&&!l.el&&(l.el=a);const n=Pt();if(l.el&&typeof l.el=="string"&&n.querySelectorAll(l.el).length>1){const s=[];return n.querySelectorAll(l.el).forEach(o=>{const c=Ke({},l,{el:o});s.push(new Tt(c))}),s}const r=this;r.__swiper__=!0,r.support=jr(),r.device=Xr({userAgent:l.userAgent}),r.browser=Kr(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],l.modules&&Array.isArray(l.modules)&&r.modules.push(...l.modules);const i={};r.modules.forEach(s=>{s({params:l,swiper:r,extendParams:Yd(l,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=Ke({},Zl,i);return r.params=Ke({},u,tn,l),r.originalParams=Ke({},r.params),r.passedParams=Ke({},l),r.params&&r.params.on&&Object.keys(r.params.on).forEach(s=>{r.on(s,r.params.on[s])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:a,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:a,params:l}=this,n=st(a,`.${l.slideClass}, swiper-slide`),r=rl(n[0]);return rl(t)-r}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(a=>a.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:a,params:l}=t;t.slides=st(a,`.${l.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,a){const l=this;t=Math.min(Math.max(t,0),1);const n=l.minTranslate(),i=(l.maxTranslate()-n)*t+n;l.translateTo(i,typeof a>"u"?0:a),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=t.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",a.join(" "))}getSlideClasses(t){const a=this;return a.destroyed?"":t.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(a.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=[];t.slides.forEach(l=>{const n=t.getSlideClasses(l);a.push({slideEl:l,classNames:n}),t.emit("_slideClass",l,n)}),t.emit("_slideClasses",a)}slidesPerViewDynamic(t="current",a=!1){const l=this,{params:n,slides:r,slidesGrid:i,slidesSizesGrid:u,size:s,activeIndex:o}=l;let c=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let d=r[o]?Math.ceil(r[o].swiperSlideSize):0,m;for(let f=o+1;f<r.length;f+=1)r[f]&&!m&&(d+=Math.ceil(r[f].swiperSlideSize),c+=1,d>s&&(m=!0));for(let f=o-1;f>=0;f-=1)r[f]&&!m&&(d+=r[f].swiperSlideSize,c+=1,d>s&&(m=!0))}else if(t==="current")for(let d=o+1;d<r.length;d+=1)(a?i[d]+u[d]-i[o]<s:i[d]-i[o]<s)&&(c+=1);else for(let d=o-1;d>=0;d-=1)i[o]-i[d]<s&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:a,params:l}=t;l.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&il(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function n(){const i=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let r;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)n(),l.autoHeight&&t.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&t.isEnd&&!l.centeredSlides){const i=t.virtual&&l.virtual.enabled?t.virtual.slides:t.slides;r=t.slideTo(i.length-1,0,!1,!0)}else r=t.slideTo(t.activeIndex,0,!1,!0);r||n()}l.watchOverflow&&a!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,a=!0){const l=this,n=l.params.direction;return t||(t=n==="horizontal"?"vertical":"horizontal"),t===n||t!=="horizontal"&&t!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${n}`),l.el.classList.add(`${l.params.containerModifierClass}${t}`),l.emitContainerClasses(),l.params.direction=t,l.slides.forEach(r=>{t==="vertical"?r.style.width="":r.style.height=""}),l.emit("changeDirection"),a&&l.update()),l}changeLanguageDirection(t){const a=this;a.rtl&&t==="rtl"||!a.rtl&&t==="ltr"||(a.rtl=t==="rtl",a.rtlTranslate=a.params.direction==="horizontal"&&a.rtl,a.rtl?(a.el.classList.add(`${a.params.containerModifierClass}rtl`),a.el.dir="rtl"):(a.el.classList.remove(`${a.params.containerModifierClass}rtl`),a.el.dir="ltr"),a.update())}mount(t){const a=this;if(a.mounted)return!0;let l=t||a.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=a,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===a.params.swiperElementNodeName.toUpperCase()&&(a.isElement=!0);const n=()=>`.${(a.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(n()):st(l,n())[0];return!i&&a.params.createElements&&(i=nl("div",a.params.wrapperClass),l.append(i),st(l,`.${a.params.slideClass}`).forEach(u=>{i.append(u)})),Object.assign(a,{el:l,wrapperEl:i,slidesEl:a.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:i,hostEl:a.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||Ct(l,"direction")==="rtl",rtlTranslate:a.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||Ct(l,"direction")==="rtl"),wrongRTL:Ct(i,"display")==="-webkit-box"}),!0}init(t){const a=this;if(a.initialized||a.mount(t)===!1)return a;a.emit("beforeInit"),a.params.breakpoints&&a.setBreakpoint(),a.addClasses(),a.updateSize(),a.updateSlides(),a.params.watchOverflow&&a.checkOverflow(),a.params.grabCursor&&a.enabled&&a.setGrabCursor(),a.params.loop&&a.virtual&&a.params.virtual.enabled?a.slideTo(a.params.initialSlide+a.virtual.slidesBefore,0,a.params.runCallbacksOnInit,!1,!0):a.slideTo(a.params.initialSlide,0,a.params.runCallbacksOnInit,!1,!0),a.params.loop&&a.loopCreate(void 0,!0),a.attachEvents();const n=[...a.el.querySelectorAll('[loading="lazy"]')];return a.isElement&&n.push(...a.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?il(a,r):r.addEventListener("load",i=>{il(a,i.target)})}),Jl(a),a.initialized=!0,Jl(a),a.emit("init"),a.emit("afterInit"),a}destroy(t=!0,a=!0){const l=this,{params:n,el:r,wrapperEl:i,slides:u}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),n.loop&&l.loopDestroy(),a&&(l.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),i&&i.removeAttribute("style"),u&&u.length&&u.forEach(s=>{s.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(s=>{l.off(s)}),t!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),Ic(l)),l.destroyed=!0),null}static extendDefaults(t){Ke(tn,t)}static get extendedDefaults(){return tn}static get defaults(){return Zl}static installModule(t){Tt.prototype.__modules__||(Tt.prototype.__modules__=[]);const a=Tt.prototype.__modules__;typeof t=="function"&&a.indexOf(t)<0&&a.push(t)}static use(t){return Array.isArray(t)?(t.forEach(a=>Tt.installModule(a)),Tt):(Tt.installModule(t),Tt)}};Object.keys(en).forEach(e=>{Object.keys(en[e]).forEach(t=>{an.prototype[t]=en[e][t]})}),an.use([Uc,qc]);const li=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Mt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Yt(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:Mt(t[l])&&Mt(e[l])&&Object.keys(t[l]).length>0?t[l].__swiper__?e[l]=t[l]:Yt(e[l],t[l]):e[l]=t[l]})}function ni(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function ri(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ii(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function ui(e=""){const t=e.split(" ").map(l=>l.trim()).filter(l=>!!l),a=[];return t.forEach(l=>{a.indexOf(l)<0&&a.push(l)}),a.join(" ")}function Wd(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function jd({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:n,prevEl:r,scrollbarEl:i,paginationEl:u}){const s=l.filter(O=>O!=="children"&&O!=="direction"&&O!=="wrapperClass"),{params:o,pagination:c,navigation:d,scrollbar:m,virtual:f,thumbs:E}=e;let b,h,v,g,y,S,w,A;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&!a.thumbs.swiper.destroyed&&o.thumbs&&(!o.thumbs.swiper||o.thumbs.swiper.destroyed)&&(b=!0),l.includes("controller")&&a.controller&&a.controller.control&&o.controller&&!o.controller.control&&(h=!0),l.includes("pagination")&&a.pagination&&(a.pagination.el||u)&&(o.pagination||o.pagination===!1)&&c&&!c.el&&(v=!0),l.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||i)&&(o.scrollbar||o.scrollbar===!1)&&m&&!m.el&&(g=!0),l.includes("navigation")&&a.navigation&&(a.navigation.prevEl||r)&&(a.navigation.nextEl||n)&&(o.navigation||o.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const P=O=>{e[O]&&(e[O].destroy(),O==="navigation"?(e.isElement&&(e[O].prevEl.remove(),e[O].nextEl.remove()),o[O].prevEl=void 0,o[O].nextEl=void 0,e[O].prevEl=void 0,e[O].nextEl=void 0):(e.isElement&&e[O].el.remove(),o[O].el=void 0,e[O].el=void 0))};l.includes("loop")&&e.isElement&&(o.loop&&!a.loop?S=!0:!o.loop&&a.loop?w=!0:A=!0),s.forEach(O=>{if(Mt(o[O])&&Mt(a[O]))Object.assign(o[O],a[O]),(O==="navigation"||O==="pagination"||O==="scrollbar")&&"enabled"in a[O]&&!a[O].enabled&&P(O);else{const C=a[O];(C===!0||C===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?C===!1&&P(O):o[O]=a[O]}}),s.includes("controller")&&!h&&e.controller&&e.controller.control&&o.controller&&o.controller.control&&(e.controller.control=o.controller.control),l.includes("children")&&t&&f&&o.virtual.enabled?(f.slides=t,f.update(!0)):l.includes("virtual")&&f&&o.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),l.includes("children")&&t&&o.loop&&(A=!0),b&&E.init()&&E.update(!0),h&&(e.controller.control=o.controller.control),v&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),e.el.appendChild(u)),u&&(o.pagination.el=u),c.init(),c.render(),c.update()),g&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(o.scrollbar.el=i),m.init(),m.updateSize(),m.setTranslate()),y&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),oa(n,e.navigation.arrowSvg),n.part.add("button-next"),e.el.appendChild(n)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),oa(r,e.navigation.arrowSvg),r.part.add("button-prev"),e.el.appendChild(r))),n&&(o.navigation.nextEl=n),r&&(o.navigation.prevEl=r),d.init(),d.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),(S||A)&&e.loopDestroy(),(w||A)&&e.loopCreate(),e.update()}function Xd(e={},t=!0){const a={on:{}},l={},n={};Yt(a,Zl),a._emitClasses=!0,a.init=!1;const r={},i=li.map(s=>s.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(s=>{typeof e[s]>"u"||(i.indexOf(s)>=0?Mt(e[s])?(a[s]={},n[s]={},Yt(a[s],e[s]),Yt(n[s],e[s])):(a[s]=e[s],n[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]=="function"?t?l[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:r[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(s=>{a[s]===!0&&(a[s]={}),a[s]===!1&&delete a[s]}),{params:a,passedParams:n,rest:r,events:l}}function Kd({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:n,swiper:r},i){ni(i)&&t&&a&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),ri(i)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ii(i)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(e)}function Qd(e,t,a,l,n){const r=[];if(!t)return r;const i=s=>{r.indexOf(s)<0&&r.push(s)};if(a&&l){const s=l.map(n),o=a.map(n);s.join("")!==o.join("")&&i("children"),l.length!==a.length&&i("children")}return li.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Mt(e[s])&&Mt(t[s])){const o=Object.keys(e[s]),c=Object.keys(t[s]);o.length!==c.length?i(s):(o.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}),c.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}))}else e[s]!==t[s]&&i(s)}),r}const Jd=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ul.apply(this,arguments)}function si(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function oi(e){const t=[];return k.Children.toArray(e).forEach(a=>{si(a)?t.push(a):a.props&&a.props.children&&oi(a.props.children).forEach(l=>t.push(l))}),t}function Zd(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return k.Children.toArray(e).forEach(l=>{if(si(l))t.push(l);else if(l.props&&l.props.slot&&a[l.props.slot])a[l.props.slot].push(l);else if(l.props&&l.props.children){const n=oi(l.props.children);n.length>0?n.forEach(r=>t.push(r)):a["container-end"].push(l)}else a["container-end"].push(l)}),{slides:t,slots:a}}function ef(e,t,a){if(!a)return null;const l=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:r,to:i}=a,u=e.params.loop?-t.length:0,s=e.params.loop?t.length*2:t.length,o=[];for(let c=u;c<s;c+=1)c>=r&&c<=i&&o.push(t[l(c)]);return o.map((c,d)=>k.cloneElement(c,{swiper:e,style:n,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function ca(e,t){return typeof window>"u"?k.useEffect(e,t):k.useLayoutEffect(e,t)}const ci=k.createContext(null),tf=k.createContext(null),di=k.forwardRef(({className:e,tag:t="div",wrapperTag:a="div",children:l,onSwiper:n,...r}={},i)=>{let u=!1;const[s,o]=k.useState("swiper"),[c,d]=k.useState(null),[m,f]=k.useState(!1),E=k.useRef(!1),b=k.useRef(null),h=k.useRef(null),v=k.useRef(null),g=k.useRef(null),y=k.useRef(null),S=k.useRef(null),w=k.useRef(null),A=k.useRef(null),{params:P,passedParams:O,rest:C,events:_}=Xd(r),{slides:x,slots:L}=Zd(l),I=()=>{f(!m)};Object.assign(P.on,{_containerClasses(H,z){o(z)}});const N=()=>{Object.assign(P.on,_),u=!0;const H={...P};if(delete H.wrapperClass,h.current=new an(H),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=x;const z={cache:!1,slides:x,renderExternal:d,renderExternalUpdate:!1};Yt(h.current.params.virtual,z),Yt(h.current.originalParams.virtual,z)}};b.current||N(),h.current&&h.current.on("_beforeBreakpoint",I);const T=()=>{u||!_||!h.current||Object.keys(_).forEach(H=>{h.current.on(H,_[H])})},F=()=>{!_||!h.current||Object.keys(_).forEach(H=>{h.current.off(H,_[H])})};k.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",I)}),k.useEffect(()=>{!E.current&&h.current&&(h.current.emitSlidesClasses(),E.current=!0)}),ca(()=>{if(i&&(i.current=b.current),!!b.current)return h.current.destroyed&&N(),Kd({el:b.current,nextEl:y.current,prevEl:S.current,paginationEl:w.current,scrollbarEl:A.current,swiper:h.current},P),n&&!h.current.destroyed&&n(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),ca(()=>{T();const H=Qd(O,v.current,x,g.current,z=>z.key);return v.current=O,g.current=x,H.length&&h.current&&!h.current.destroyed&&jd({swiper:h.current,slides:x,passedParams:O,changedParams:H,nextEl:y.current,prevEl:S.current,scrollbarEl:A.current,paginationEl:w.current}),()=>{F()}}),ca(()=>{Jd(h.current)},[c]);function R(){return P.virtual?ef(h.current,x,c):x.map((H,z)=>k.cloneElement(H,{swiper:h.current,swiperSlideIndex:z}))}return k.createElement(t,ul({ref:b,className:ui(`${s}${e?` ${e}`:""}`)},C),k.createElement(tf.Provider,{value:h.current},L["container-start"],k.createElement(a,{className:Wd(P.wrapperClass)},L["wrapper-start"],R(),L["wrapper-end"]),ni(P)&&k.createElement(k.Fragment,null,k.createElement("div",{ref:S,className:"swiper-button-prev"}),k.createElement("div",{ref:y,className:"swiper-button-next"})),ii(P)&&k.createElement("div",{ref:A,className:"swiper-scrollbar"}),ri(P)&&k.createElement("div",{ref:w,className:"swiper-pagination"}),L["container-end"]))});di.displayName="Swiper";const fi=k.forwardRef(({tag:e="div",children:t,className:a="",swiper:l,zoom:n,lazy:r,virtualIndex:i,swiperSlideIndex:u,...s}={},o)=>{const c=k.useRef(null),[d,m]=k.useState("swiper-slide"),[f,E]=k.useState(!1);function b(y,S,w){S===c.current&&m(w)}ca(()=>{if(typeof u<"u"&&(c.current.swiperSlideIndex=u),o&&(o.current=c.current),!(!c.current||!l)){if(l.destroyed){d!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",b),()=>{l&&l.off("_slideClass",b)}}}),ca(()=>{l&&c.current&&!l.destroyed&&m(l.getSlideClasses(c.current))},[l]);const h={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},v=()=>typeof t=="function"?t(h):t,g=()=>{E(!0)};return k.createElement(e,ul({ref:c,className:ui(`${d}${a?` ${a}`:""}`),"data-swiper-slide-index":i,onLoad:g},s),n&&k.createElement(ci.Provider,{value:h},k.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof n=="number"?n:void 0},v(),r&&!f&&k.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!n&&k.createElement(ci.Provider,{value:h},v(),r&&!f&&k.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});fi.displayName="SwiperSlide";function pi(e,t,a,l){return e.params.createElements&&Object.keys(l).forEach(n=>{if(!a[n]&&a.auto===!0){let r=st(e.el,`.${l[n]}`)[0];r||(r=nl("div",l[n]),r.className=l[n],e.el.append(r)),a[n]=r,t[n]=r}}),a}const hi='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function af({swiper:e,extendParams:t,on:a,emit:l}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:hi};function n(f){let E;return f&&typeof f=="string"&&e.isElement&&(E=e.el.querySelector(f)||e.hostEl.querySelector(f),E)?E:(f&&(typeof f=="string"&&(E=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&E&&E.length>1&&e.el.querySelectorAll(f).length===1?E=e.el.querySelector(f):E&&E.length===1&&(E=E[0])),f&&!E?f:E)}function r(f,E){const b=e.params.navigation;f=Be(f),f.forEach(h=>{h&&(h.classList[E?"add":"remove"](...b.disabledClass.split(" ")),h.tagName==="BUTTON"&&(h.disabled=E),e.params.watchOverflow&&e.enabled&&h.classList[e.isLocked?"add":"remove"](b.lockClass))})}function i(){const{nextEl:f,prevEl:E}=e.navigation;if(e.params.loop){r(E,!1),r(f,!1);return}r(E,e.isBeginning&&!e.params.rewind),r(f,e.isEnd&&!e.params.rewind)}function u(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function o(){const f=e.params.navigation;if(e.params.navigation=pi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let E=n(f.nextEl),b=n(f.prevEl);Object.assign(e.navigation,{nextEl:E,prevEl:b}),E=Be(E),b=Be(b);const h=(v,g)=>{if(v){if(f.addIcons&&v.matches(".swiper-button-next,.swiper-button-prev")&&!v.querySelector("svg")){const y=document.createElement("div");oa(y,hi),v.appendChild(y.querySelector("svg")),y.remove()}v.addEventListener("click",g==="next"?s:u)}!e.enabled&&v&&v.classList.add(...f.lockClass.split(" "))};E.forEach(v=>h(v,"next")),b.forEach(v=>h(v,"prev"))}function c(){let{nextEl:f,prevEl:E}=e.navigation;f=Be(f),E=Be(E);const b=(h,v)=>{h.removeEventListener("click",v==="next"?s:u),h.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(h=>b(h,"next")),E.forEach(h=>b(h,"prev"))}a("init",()=>{e.params.navigation.enabled===!1?m():(o(),i())}),a("toEdge fromEdge lock unlock",()=>{i()}),a("destroy",()=>{c()}),a("enable disable",()=>{let{nextEl:f,prevEl:E}=e.navigation;if(f=Be(f),E=Be(E),e.enabled){i();return}[...f,...E].filter(b=>!!b).forEach(b=>b.classList.add(e.params.navigation.lockClass))}),a("click",(f,E)=>{let{nextEl:b,prevEl:h}=e.navigation;b=Be(b),h=Be(h);const v=E.target;let g=h.includes(v)||b.includes(v);if(e.isElement&&!g){const y=E.path||E.composedPath&&E.composedPath();y&&(g=y.find(S=>b.includes(S)||h.includes(S)))}if(e.params.navigation.hideOnClick&&!g){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let y;b.length?y=b[0].classList.contains(e.params.navigation.hiddenClass):h.length&&(y=h[0].classList.contains(e.params.navigation.hiddenClass)),l(y===!0?"navigationShow":"navigationHide"),[...b,...h].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),o(),i()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:d,disable:m,update:i,init:o,destroy:c})}function da(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function lf({swiper:e,extendParams:t,on:a,emit:l}){const n="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let r,i=0;function u(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function s(v,g){const{bulletActiveClass:y}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${y}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${y}-${g}-${g}`)))}function o(v,g,y){if(v=v%y,g=g%y,g===v+1)return"next";if(g===v-1)return"previous"}function c(v){const g=v.target.closest(da(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const y=rl(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const S=o(e.realIndex,y,e.slides.length);S==="next"?e.slideNext():S==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function d(){const v=e.rtl,g=e.params.pagination;if(u())return;let y=e.pagination.el;y=Be(y);let S,w;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(w=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,w=e.previousSnapIndex):(w=e.previousIndex||0,S=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let C,_,x;if(g.dynamicBullets&&(r=Yl(O[0],e.isHorizontal()?"width":"height"),y.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&w!==void 0&&(i+=S-(w||0),i>g.dynamicMainBullets-1?i=g.dynamicMainBullets-1:i<0&&(i=0)),C=Math.max(S-i,0),_=C+(Math.min(O.length,g.dynamicMainBullets)-1),x=(_+C)/2),O.forEach(L=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${g.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();L.classList.remove(...I)}),y.length>1)O.forEach(L=>{const I=rl(L);I===S?L.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),g.dynamicBullets&&(I>=C&&I<=_&&L.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),I===C&&s(L,"prev"),I===_&&s(L,"next"))});else{const L=O[S];if(L&&L.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&O.forEach((I,N)=>{I.setAttribute("part",N===S?"bullet-active":"bullet")}),g.dynamicBullets){const I=O[C],N=O[_];for(let T=C;T<=_;T+=1)O[T]&&O[T].classList.add(...`${g.bulletActiveClass}-main`.split(" "));s(I,"prev"),s(N,"next")}}if(g.dynamicBullets){const L=Math.min(O.length,g.dynamicMainBullets+4),I=(r*L-r)/2-x*r,N=v?"right":"left";O.forEach(T=>{T.style[e.isHorizontal()?N:"top"]=`${I}px`})}}y.forEach((O,C)=>{if(g.type==="fraction"&&(O.querySelectorAll(da(g.currentClass)).forEach(_=>{_.textContent=g.formatFractionCurrent(S+1)}),O.querySelectorAll(da(g.totalClass)).forEach(_=>{_.textContent=g.formatFractionTotal(P)})),g.type==="progressbar"){let _;g.progressbarOpposite?_=e.isHorizontal()?"vertical":"horizontal":_=e.isHorizontal()?"horizontal":"vertical";const x=(S+1)/P;let L=1,I=1;_==="horizontal"?L=x:I=x,O.querySelectorAll(da(g.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${I})`,N.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(oa(O,g.renderCustom(e,S+1,P)),C===0&&l("paginationRender",O)):(C===0&&l("paginationRender",O),l("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](g.lockClass)})}function m(){const v=e.params.pagination;if(u())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let y=e.pagination.el;y=Be(y);let S="";if(v.type==="bullets"){let w=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&w>g&&(w=g);for(let A=0;A<w;A+=1)v.renderBullet?S+=v.renderBullet.call(e,A,v.bulletClass):S+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?S=v.renderFraction.call(e,v.currentClass,v.totalClass):S=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?S=v.renderProgressbar.call(e,v.progressbarFillClass):S=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(w=>{v.type!=="custom"&&oa(w,S||""),v.type==="bullets"&&e.pagination.bullets.push(...w.querySelectorAll(da(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",y[0])}function f(){e.params.pagination=pi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.find(y=>Wr(y,".swiper")[0]===e.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Be(g),g.forEach(y=>{v.type==="bullets"&&v.clickable&&y.classList.add(...(v.clickableClass||"").split(" ")),y.classList.add(v.modifierClass+v.type),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(y.classList.add(`${v.modifierClass}${v.type}-dynamic`),i=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&y.classList.add(v.progressbarOppositeClass),v.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(v.lockClass)}))}function E(){const v=e.params.pagination;if(u())return;let g=e.pagination.el;g&&(g=Be(g),g.forEach(y=>{y.classList.remove(v.hiddenClass),y.classList.remove(v.modifierClass+v.type),y.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(y.classList.remove(...(v.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...v.bulletActiveClass.split(" ")))}a("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Be(g),g.forEach(y=>{y.classList.remove(v.horizontalClass,v.verticalClass),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?h():(f(),m(),d())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),a("snapIndexChange",()=>{d()}),a("snapGridLengthChange",()=>{m(),d()}),a("destroy",()=>{E()}),a("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Be(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),a("lock unlock",()=>{d()}),a("click",(v,g)=>{const y=g.target,S=Be(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const w=S[0].classList.contains(e.params.pagination.hiddenClass);l(w===!0?"paginationShow":"paginationHide"),S.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Be(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),m(),d()},h=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Be(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),E()};Object.assign(e.pagination,{enable:b,disable:h,render:m,update:d,init:f,destroy:E})}function gy(){}function Ey(){}function bi(e){const t=[],a=String(e||"");let l=a.indexOf(","),n=0,r=!1;for(;!r;){l===-1&&(l=a.length,r=!0);const i=a.slice(n,l).trim();(i||!r)&&t.push(i),n=l+1,l=a.indexOf(",",n)}return t}function mi(e,t){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const nf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uf={};function vi(e,t){return(uf.jsx?rf:nf).test(e)}const sf=/[ \t\n\f\r]/g;function of(e){return typeof e=="object"?e.type==="text"?gi(e.value):!1:gi(e)}function gi(e){return e.replace(sf,"")===""}class fa{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}}fa.prototype.normal={},fa.prototype.property={},fa.prototype.space=void 0;function Ei(e,t){const a={},l={};for(const n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new fa(a,l,t)}function pa(e){return e.toLowerCase()}class We{constructor(t,a){this.attribute=a,this.property=t}}We.prototype.attribute="",We.prototype.booleanish=!1,We.prototype.boolean=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.commaSeparated=!1,We.prototype.defined=!1,We.prototype.mustUseProperty=!1,We.prototype.number=!1,We.prototype.overloadedBoolean=!1,We.prototype.property="",We.prototype.spaceSeparated=!1,We.prototype.space=void 0;let cf=0;const be=Bt(),Pe=Bt(),ln=Bt(),ee=Bt(),ke=Bt(),Wt=Bt(),Qe=Bt();function Bt(){return 2**++cf}const nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Pe,commaOrSpaceSeparated:Qe,commaSeparated:Wt,number:ee,overloadedBoolean:ln,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(nn);class un extends We{constructor(t,a,l,n){let r=-1;if(super(t,a),yi(this,"space",n),typeof l=="number")for(;++r<rn.length;){const i=rn[r];yi(this,rn[r],(l&nn[i])===nn[i])}}}un.prototype.defined=!0;function yi(e,t,a){a&&(e[t]=a)}function jt(e){const t={},a={};for(const[l,n]of Object.entries(e.properties)){const r=new un(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[pa(l)]=l,a[pa(r.attribute)]=l}return new fa(t,a,e.space)}const Ti=jt({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:ke,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:ee,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:ke,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Pe,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xi(e,t){return t in e?e[t]:t}function Ci(e,t){return xi(e,t.toLowerCase())}const df=jt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wt,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:ke,autoFocus:be,autoPlay:be,blocking:ke,capture:null,charSet:null,checked:be,cite:null,className:ke,cols:ee,colSpan:null,content:null,contentEditable:Pe,controls:be,controlsList:ke,coords:ee|Wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:ln,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:ke,height:ee,hidden:ln,high:ee,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:ke,itemRef:ke,itemScope:be,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:ee,pattern:null,ping:ke,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:ke,required:be,reversed:be,rows:ee,rowSpan:ee,sandbox:ke,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Pe,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:Ci}),ff=jt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qe,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wt,g2:Wt,glyphName:Wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xi}),Si=jt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ai=jt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ci}),wi=jt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),pf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hf=/[A-Z]/g,_i=/-[a-z]/g,bf=/^data[-\w.:]+$/i;function sl(e,t){const a=pa(t);let l=t,n=We;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&bf.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(_i,vf);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!_i.test(r)){let i=r.replace(hf,mf);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=un}return new n(l,t)}function mf(e){return"-"+e.toLowerCase()}function vf(e){return e.charAt(1).toUpperCase()}const ha=Ei([Ti,df,Si,Ai,wi],"html"),St=Ei([Ti,ff,Si,Ai,wi],"svg");function ki(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ni(e){return e.join(" ").trim()}function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={},on,Ii;function gf(){if(Ii)return on;Ii=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,u=/^\s+|\s+$/g,s=`
|
|
43
43
|
`,o="/",c="*",d="",m="comment",f="declaration";function E(h,v){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];v=v||{};var g=1,y=1;function S(N){var T=N.match(t);T&&(g+=T.length);var F=N.lastIndexOf(s);y=~F?N.length-F:y+N.length}function w(){var N={line:g,column:y};return function(T){return T.position=new A(N),C(),T}}function A(N){this.start=N,this.end={line:g,column:y},this.source=v.source}A.prototype.content=h;function P(N){var T=new Error(v.source+":"+g+":"+y+": "+N);if(T.reason=N,T.filename=v.source,T.line=g,T.column=y,T.source=h,!v.silent)throw T}function O(N){var T=N.exec(h);if(T){var F=T[0];return S(F),h=h.slice(F.length),T}}function C(){O(a)}function _(N){var T;for(N=N||[];T=x();)T!==!1&&N.push(T);return N}function x(){var N=w();if(!(o!=h.charAt(0)||c!=h.charAt(1))){for(var T=2;d!=h.charAt(T)&&(c!=h.charAt(T)||o!=h.charAt(T+1));)++T;if(T+=2,d===h.charAt(T-1))return P("End of comment missing");var F=h.slice(2,T-2);return y+=2,S(F),h=h.slice(T),y+=2,N({type:m,comment:F})}}function L(){var N=w(),T=O(l);if(T){if(x(),!O(n))return P("property missing ':'");var F=O(r),R=N({type:f,property:b(T[0].replace(e,d)),value:F?b(F[0].replace(e,d)):d});return O(i),R}}function I(){var N=[];_(N);for(var T;T=L();)T!==!1&&(N.push(T),_(N));return N}return C(),I()}function b(h){return h?h.replace(u,d):d}return on=E,on}var Li;function Ef(){if(Li)return Xt;Li=1;var e=Xt&&Xt.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=a;const t=e(gf());function a(l,n){let r=null;if(!l||typeof l!="string")return r;const i=(0,t.default)(l),u=typeof n=="function";return i.forEach(s=>{if(s.type!=="declaration")return;const{property:o,value:c}=s;u?n(o,c,s):c&&(r=r||{},r[o]=c)}),r}return Xt}var ba={},Oi;function yf(){if(Oi)return ba;Oi=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,a=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,r=function(o){return!o||a.test(o)||e.test(o)},i=function(o,c){return c.toUpperCase()},u=function(o,c){return"".concat(c,"-")},s=function(o,c){return c===void 0&&(c={}),r(o)?o:(o=o.toLowerCase(),c.reactCompat?o=o.replace(n,u):o=o.replace(l,u),o.replace(t,i))};return ba.camelCase=s,ba}var ma,Di;function Tf(){if(Di)return ma;Di=1;var e=ma&&ma.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(Ef()),a=yf();function l(n,r){var i={};return!n||typeof n!="string"||(0,t.default)(n,function(u,s){u&&s&&(i[(0,a.camelCase)(u,r)]=s)}),i}return l.default=l,ma=l,ma}var xf=Tf();const Cf=sn(xf),ol=Pi("end"),ot=Pi("start");function Pi(e){return t;function t(a){const l=a&&a.position&&a.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function Mi(e){const t=ot(e),a=ol(e);if(t&&a)return{start:t,end:a}}function va(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bi(e.position):"start"in e||"end"in e?Bi(e):"line"in e||"column"in e?cn(e):""}function cn(e){return Fi(e&&e.line)+":"+Fi(e&&e.column)}function Bi(e){return cn(e&&e.start)+"-"+cn(e&&e.end)}function Fi(e){return e&&typeof e=="number"?e:1}class qe extends Error{constructor(t,a,l){super(),typeof a=="string"&&(l=a,a=void 0);let n="",r={},i=!1;if(a&&("line"in a&&"column"in a?r={place:a}:"start"in a&&"end"in a?r={place:a}:"type"in a?r={ancestors:[a],place:a.position}:r={...a}),typeof t=="string"?n=t:!r.cause&&t&&(i=!0,n=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof l=="string"){const s=l.indexOf(":");s===-1?r.ruleId=l:(r.source=l.slice(0,s),r.ruleId=l.slice(s+1))}if(!r.place&&r.ancestors&&r.ancestors){const s=r.ancestors[r.ancestors.length-1];s&&(r.place=s.position)}const u=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=u?u.line:void 0,this.name=va(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=i&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qe.prototype.file="",qe.prototype.name="",qe.prototype.reason="",qe.prototype.message="",qe.prototype.stack="",qe.prototype.column=void 0,qe.prototype.line=void 0,qe.prototype.ancestors=void 0,qe.prototype.cause=void 0,qe.prototype.fatal=void 0,qe.prototype.place=void 0,qe.prototype.ruleId=void 0,qe.prototype.source=void 0;const dn={}.hasOwnProperty,Sf=new Map,Af=/[A-Z]/g,wf=new Set(["table","tbody","thead","tfoot","tr"]),_f=new Set(["td","th"]),Ri="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kf(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=t.filePath||void 0;let l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=Bf(a,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=Mf(a,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?St:ha,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=Hi(n,e,void 0);return r&&typeof r!="string"?r:n.create(e,n.Fragment,{children:r||void 0},void 0)}function Hi(e,t,a){if(t.type==="element")return Nf(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return If(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Of(e,t,a);if(t.type==="mdxjsEsm")return Lf(e,t);if(t.type==="root")return Df(e,t,a);if(t.type==="text")return Pf(e,t)}function Nf(e,t,a){const l=e.schema;let n=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(n=St,e.schema=n),e.ancestors.push(t);const r=Ui(e,t.tagName,!1),i=Ff(e,t);let u=pn(e,t);return wf.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!of(s):!0})),$i(e,i,r,t),fn(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function If(e,t){if(t.data&&t.data.estree&&e.evaluater){const l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}ga(e,t.position)}function Lf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ga(e,t.position)}function Of(e,t,a){const l=e.schema;let n=l;t.name==="svg"&&l.space==="html"&&(n=St,e.schema=n),e.ancestors.push(t);const r=t.name===null?e.Fragment:Ui(e,t.name,!0),i=Rf(e,t),u=pn(e,t);return $i(e,i,r,t),fn(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function Df(e,t,a){const l={};return fn(l,pn(e,t)),e.create(t,e.Fragment,l,a)}function Pf(e,t){return t.value}function $i(e,t,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=l)}function fn(e,t){if(t.length>0){const a=t.length>1?t:t[0];a&&(e.children=a)}}function Mf(e,t,a){return l;function l(n,r,i,u){const o=Array.isArray(i.children)?a:t;return u?o(r,i,u):o(r,i)}}function Bf(e,t){return a;function a(l,n,r,i){const u=Array.isArray(r.children),s=ot(l);return t(n,r,i,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ff(e,t){const a={};let l,n;for(n in t.properties)if(n!=="children"&&dn.call(t.properties,n)){const r=Hf(e,n,t.properties[n]);if(r){const[i,u]=r;e.tableCellAlignToStyle&&i==="align"&&typeof u=="string"&&_f.has(t.tagName)?l=u:a[i]=u}}if(l){const r=a.style||(a.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return a}function Rf(e,t){const a={};for(const l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const r=l.data.estree.body[0];r.type;const i=r.expression;i.type;const u=i.properties[0];u.type,Object.assign(a,e.evaluater.evaluateExpression(u.argument))}else ga(e,t.position);else{const n=l.name;let r;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const u=l.value.data.estree.body[0];u.type,r=e.evaluater.evaluateExpression(u.expression)}else ga(e,t.position);else r=l.value===null?!0:l.value;a[n]=r}return a}function pn(e,t){const a=[];let l=-1;const n=e.passKeys?new Map:Sf;for(;++l<t.children.length;){const r=t.children[l];let i;if(e.passKeys){const s=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(s){const o=n.get(s)||0;i=s+"-"+o,n.set(s,o+1)}}const u=Hi(e,r,i);u!==void 0&&a.push(u)}return a}function Hf(e,t,a){const l=sl(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?mi(a):Ni(a)),l.property==="style"){let n=typeof a=="object"?a:$f(e,String(a));return e.stylePropertyNameCase==="css"&&(n=Uf(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&l.space?pf[l.property]||l.property:l.attribute,a]}}function $f(e,t){try{return Cf(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const l=a,n=new qe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ri+"#cannot-parse-style-attribute",n}}function Ui(e,t,a){let l;if(!a)l={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let r=-1,i;for(;++r<n.length;){const u=vi(n[r])?{type:"Identifier",name:n[r]}:{type:"Literal",value:n[r]};i=i?{type:"MemberExpression",object:i,property:u,computed:!!(r&&u.type==="Literal"),optional:!1}:u}l=i}else l=vi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const n=l.value;return dn.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(l);ga(e)}function ga(e,t){const a=new qe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Ri+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Uf(e){const t={};let a;for(a in e)dn.call(e,a)&&(t[qf(a)]=e[a]);return t}function qf(e){let t=e.replace(Af,zf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zf(e){return"-"+e.toLowerCase()}const hn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Vf={};function Gf(e,t){const a=Vf,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return qi(e,l,n)}function qi(e,t,a){if(Yf(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zi(e.children,t,a)}return Array.isArray(e)?zi(e,t,a):""}function zi(e,t,a){const l=[];let n=-1;for(;++n<e.length;)l[n]=qi(e[n],t,a);return l.join("")}function Yf(e){return!!(e&&typeof e=="object")}const Vi=document.createElement("i");function Ea(e){const t="&"+e+";";Vi.innerHTML=t;const a=Vi.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ct(e,t,a,l){const n=e.length;let r=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,a=a>0?a:0,l.length<1e4)i=Array.from(l),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);r<l.length;)i=l.slice(r,r+1e4),i.unshift(t,0),e.splice(...i),r+=1e4,t+=1e4}function et(e,t){return e.length>0?(ct(e,e.length,0,t),e):t}const Gi={}.hasOwnProperty;function Wf(e){const t={};let a=-1;for(;++a<e.length;)jf(t,e[a]);return t}function jf(e,t){let a;for(a in t){const n=(Gi.call(e,a)?e[a]:void 0)||(e[a]={}),r=t[a];let i;if(r)for(i in r){Gi.call(n,i)||(n[i]=[]);const u=r[i];Xf(n[i],Array.isArray(u)?u:u?[u]:[])}}}function Xf(e,t){let a=-1;const l=[];for(;++a<t.length;)(t[a].add==="after"?e:l).push(t[a]);ct(e,0,0,l)}function Yi(e,t){const a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dt=At(/[A-Za-z]/),Je=At(/[\dA-Za-z]/),Kf=At(/[#-'*+\--9=?A-Z^-~]/);function bn(e){return e!==null&&(e<32||e===127)}const mn=At(/\d/),Qf=At(/[\dA-Fa-f]/),Jf=At(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Oe(e){return e!==null&&(e<0||e===32)}function Te(e){return e===-2||e===-1||e===32}const ya=At(new RegExp("\\p{P}|\\p{S}","u")),Ta=At(/\s/);function At(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Qt(e){const t=[];let a=-1,l=0,n=0;for(;++a<e.length;){const r=e.charCodeAt(a);let i="";if(r===37&&Je(e.charCodeAt(a+1))&&Je(e.charCodeAt(a+2)))n=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(i=String.fromCharCode(r));else if(r>55295&&r<57344){const u=e.charCodeAt(a+1);r<56320&&u>56319&&u<57344?(i=String.fromCharCode(r,u),n=1):i="�"}else i=String.fromCharCode(r);i&&(t.push(e.slice(l,a),encodeURIComponent(i)),l=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(l)}function xe(e,t,a,l){const n=l?l-1:Number.POSITIVE_INFINITY;let r=0;return i;function i(s){return Te(s)?(e.enter(a),u(s)):t(s)}function u(s){return Te(s)&&r++<n?(e.consume(s),u):(e.exit(a),t(s))}}const Zf={tokenize:ep};function ep(e){const t=e.attempt(this.parser.constructs.contentInitial,l,n);let a;return t;function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),xe(e,t,"linePrefix")}function n(u){return e.enter("paragraph"),r(u)}function r(u){const s=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=s),a=s,i(u)}function i(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return ie(u)?(e.consume(u),e.exit("chunkText"),r):(e.consume(u),i)}}const tp={tokenize:ap},Wi={tokenize:lp};function ap(e){const t=this,a=[];let l=0,n,r,i;return u;function u(y){if(l<a.length){const S=a[l];return t.containerState=S[1],e.attempt(S[0].continuation,s,o)(y)}return o(y)}function s(y){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const S=t.events.length;let w=S,A;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){A=t.events[w][1].end;break}v(l);let P=S;for(;P<t.events.length;)t.events[P][1].end={...A},P++;return ct(t.events,w+1,0,t.events.slice(S)),t.events.length=P,o(y)}return u(y)}function o(y){if(l===a.length){if(!n)return m(y);if(n.currentConstruct&&n.currentConstruct.concrete)return E(y);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wi,c,d)(y)}function c(y){return n&&g(),v(l),m(y)}function d(y){return t.parser.lazy[t.now().line]=l!==a.length,i=t.now().offset,E(y)}function m(y){return t.containerState={},e.attempt(Wi,f,E)(y)}function f(y){return l++,a.push([t.currentConstruct,t.containerState]),m(y)}function E(y){if(y===null){n&&g(),v(0),e.consume(y);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:r}),b(y)}function b(y){if(y===null){h(e.exit("chunkFlow"),!0),v(0),e.consume(y);return}return ie(y)?(e.consume(y),h(e.exit("chunkFlow")),l=0,t.interrupt=void 0,u):(e.consume(y),b)}function h(y,S){const w=t.sliceStream(y);if(S&&w.push(null),y.previous=r,r&&(r.next=y),r=y,n.defineSkip(y.start),n.write(w),t.parser.lazy[y.start.line]){let A=n.events.length;for(;A--;)if(n.events[A][1].start.offset<i&&(!n.events[A][1].end||n.events[A][1].end.offset>i))return;const P=t.events.length;let O=P,C,_;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(C){_=t.events[O][1].end;break}C=!0}for(v(l),A=P;A<t.events.length;)t.events[A][1].end={..._},A++;ct(t.events,O+1,0,t.events.slice(P)),t.events.length=A}}function v(y){let S=a.length;for(;S-- >y;){const w=a[S];t.containerState=w[1],w[0].exit.call(t,e)}a.length=y}function g(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function lp(e,t,a){return xe(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ji(e){if(e===null||Oe(e)||Ta(e))return 1;if(ya(e))return 2}function vn(e,t,a){const l=[];let n=-1;for(;++n<e.length;){const r=e[n].resolveAll;r&&!l.includes(r)&&(t=r(t,a),l.push(r))}return t}const gn={name:"attention",resolveAll:np,tokenize:rp};function np(e,t){let a=-1,l,n,r,i,u,s,o,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(l=a;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[l][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;s=e[l][1].end.offset-e[l][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const d={...e[l][1].end},m={...e[a][1].start};Xi(d,-s),Xi(m,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[l][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:m},r={type:s>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[a][1].start}},n={type:s>1?"strong":"emphasis",start:{...i.start},end:{...u.end}},e[l][1].end={...i.start},e[a][1].start={...u.end},o=[],e[l][1].end.offset-e[l][1].start.offset&&(o=et(o,[["enter",e[l][1],t],["exit",e[l][1],t]])),o=et(o,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",r,t]]),o=et(o,vn(t.parser.constructs.insideSpan.null,e.slice(l+1,a),t)),o=et(o,[["exit",r,t],["enter",u,t],["exit",u,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,o=et(o,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,ct(e,l-1,a-l+3,o),a=l+o.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function rp(e,t){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,n=ji(l);let r;return i;function i(s){return r=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===r)return e.consume(s),u;const o=e.exit("attentionSequence"),c=ji(s),d=!c||c===2&&n||a.includes(s),m=!n||n===2&&c||a.includes(l);return o._open=!!(r===42?d:d&&(n||!m)),o._close=!!(r===42?m:m&&(c||!d)),t(s)}}function Xi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ip={name:"autolink",tokenize:up};function up(e,t,a){let l=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(f){return dt(f)?(e.consume(f),i):f===64?a(f):o(f)}function i(f){return f===43||f===45||f===46||Je(f)?(l=1,u(f)):o(f)}function u(f){return f===58?(e.consume(f),l=0,s):(f===43||f===45||f===46||Je(f))&&l++<32?(e.consume(f),u):(l=0,o(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||bn(f)?a(f):(e.consume(f),s)}function o(f){return f===64?(e.consume(f),c):Kf(f)?(e.consume(f),o):a(f)}function c(f){return Je(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),l=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):m(f)}function m(f){if((f===45||Je(f))&&l++<63){const E=f===45?m:d;return e.consume(f),E}return a(f)}}const cl={partial:!0,tokenize:sp};function sp(e,t,a){return l;function l(r){return Te(r)?xe(e,n,"linePrefix")(r):n(r)}function n(r){return r===null||ie(r)?t(r):a(r)}}const Ki={continuation:{tokenize:cp},exit:dp,name:"blockQuote",tokenize:op};function op(e,t,a){const l=this;return n;function n(i){if(i===62){const u=l.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),r}return a(i)}function r(i){return Te(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function cp(e,t,a){const l=this;return n;function n(i){return Te(i)?xe(e,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):r(i)}function r(i){return e.attempt(Ki,t,a)(i)}}function dp(e){e.exit("blockQuote")}const Qi={name:"characterEscape",tokenize:fp};function fp(e,t,a){return l;function l(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),n}function n(r){return Jf(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(r)}}const Ji={name:"characterReference",tokenize:pp};function pp(e,t,a){const l=this;let n=0,r,i;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),r=31,i=Je,c(d))}function o(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=Qf,c):(e.enter("characterReferenceValue"),r=7,i=mn,c(d))}function c(d){if(d===59&&n){const m=e.exit("characterReferenceValue");return i===Je&&!Ea(l.sliceSerialize(m))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&n++<r?(e.consume(d),c):a(d)}}const Zi={partial:!0,tokenize:bp},eu={concrete:!0,name:"codeFenced",tokenize:hp};function hp(e,t,a){const l=this,n={partial:!0,tokenize:w};let r=0,i=0,u;return s;function s(A){return o(A)}function o(A){const P=l.events[l.events.length-1];return r=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===u?(i++,e.consume(A),c):i<3?a(A):(e.exit("codeFencedFenceSequence"),Te(A)?xe(e,d,"whitespace")(A):d(A))}function d(A){return A===null||ie(A)?(e.exit("codeFencedFence"),l.interrupt?t(A):e.check(Zi,b,S)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||ie(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Te(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),xe(e,f,"whitespace")(A)):A===96&&A===u?a(A):(e.consume(A),m)}function f(A){return A===null||ie(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(A))}function E(A){return A===null||ie(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===u?a(A):(e.consume(A),E)}function b(A){return e.attempt(n,S,h)(A)}function h(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),v}function v(A){return r>0&&Te(A)?xe(e,g,"linePrefix",r+1)(A):g(A)}function g(A){return A===null||ie(A)?e.check(Zi,b,S)(A):(e.enter("codeFlowValue"),y(A))}function y(A){return A===null||ie(A)?(e.exit("codeFlowValue"),g(A)):(e.consume(A),y)}function S(A){return e.exit("codeFenced"),t(A)}function w(A,P,O){let C=0;return _;function _(T){return A.enter("lineEnding"),A.consume(T),A.exit("lineEnding"),x}function x(T){return A.enter("codeFencedFence"),Te(T)?xe(A,L,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):L(T)}function L(T){return T===u?(A.enter("codeFencedFenceSequence"),I(T)):O(T)}function I(T){return T===u?(C++,A.consume(T),I):C>=i?(A.exit("codeFencedFenceSequence"),Te(T)?xe(A,N,"whitespace")(T):N(T)):O(T)}function N(T){return T===null||ie(T)?(A.exit("codeFencedFence"),P(T)):O(T)}}}function bp(e,t,a){const l=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r)}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}const En={name:"codeIndented",tokenize:vp},mp={partial:!0,tokenize:gp};function vp(e,t,a){const l=this;return n;function n(o){return e.enter("codeIndented"),xe(e,r,"linePrefix",5)(o)}function r(o){const c=l.events[l.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(o):a(o)}function i(o){return o===null?s(o):ie(o)?e.attempt(mp,i,s)(o):(e.enter("codeFlowValue"),u(o))}function u(o){return o===null||ie(o)?(e.exit("codeFlowValue"),i(o)):(e.consume(o),u)}function s(o){return e.exit("codeIndented"),t(o)}}function gp(e,t,a){const l=this;return n;function n(i){return l.parser.lazy[l.now().line]?a(i):ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):xe(e,r,"linePrefix",5)(i)}function r(i){const u=l.events[l.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):ie(i)?n(i):a(i)}}const Ep={name:"codeText",previous:Tp,resolve:yp,tokenize:xp};function yp(e){let t=e.length-4,a=3,l,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=a;++l<t;)if(e[l][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(l=a-1,t++;++l<=t;)n===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(n=l):(l===t||e[l][1].type==="lineEnding")&&(e[n][1].type="codeTextData",l!==n+2&&(e[n][1].end=e[l-1][1].end,e.splice(n+2,l-n-2),t-=l-n-2,l=n+2),n=void 0);return e}function Tp(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xp(e,t,a){let l=0,n,r;return i;function i(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),l++,u):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?a(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(r=e.enter("codeTextSequence"),n=0,c(d)):ie(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(d))}function o(d){return d===null||d===32||d===96||ie(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),o)}function c(d){return d===96?(e.consume(d),n++,c):n===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",o(d))}}class Cp{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){const l=a??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,a,l){const n=a||0;this.setCursor(Math.trunc(t));const r=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return l&&xa(this.left,l),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const a=this.left.splice(t,Number.POSITIVE_INFINITY);xa(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xa(this.left,a.reverse())}}}function xa(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function tu(e){const t={};let a=-1,l,n,r,i,u,s,o;const c=new Cp(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(l=c.get(a),a&&l[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(s=l[1]._tokenizer.events,r=0,r<s.length&&s[r][1].type==="lineEndingBlank"&&(r+=2),r<s.length&&s[r][1].type==="content"))for(;++r<s.length&&s[r][1].type!=="content";)s[r][1].type==="chunkText"&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,Sp(c,a)),a=t[a],o=!0);else if(l[1]._container){for(r=a,n=void 0;r--;)if(i=c.get(r),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;n&&(l[1].end={...c.get(n)[1].start},u=c.slice(n,a),u.unshift(l),c.splice(n,a-n+1,u))}}return ct(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!o}function Sp(e,t){const a=e.get(t)[1],l=e.get(t)[2];let n=t-1;const r=[];let i=a._tokenizer;i||(i=l.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const u=i.events,s=[],o={};let c,d,m=-1,f=a,E=0,b=0;const h=[b];for(;f;){for(;e.get(++n)[1]!==f;);r.push(n),f._tokenizer||(c=l.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=a;++m<u.length;)u[m][0]==="exit"&&u[m-1][0]==="enter"&&u[m][1].type===u[m-1][1].type&&u[m][1].start.line!==u[m][1].end.line&&(b=m+1,h.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),m=h.length;m--;){const v=u.slice(h[m],h[m+1]),g=r.pop();s.push([g,g+v.length-1]),e.splice(g,2,v)}for(s.reverse(),m=-1;++m<s.length;)o[E+s[m][0]]=E+s[m][1],E+=s[m][1]-s[m][0]-1;return o}const Ap={resolve:_p,tokenize:kp},wp={partial:!0,tokenize:Np};function _p(e){return tu(e),e}function kp(e,t){let a;return l;function l(u){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),n(u)}function n(u){return u===null?r(u):ie(u)?e.check(wp,i,r)(u):(e.consume(u),n)}function r(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function i(u){return e.consume(u),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,n}}function Np(e,t,a){const l=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),xe(e,r,"linePrefix")}function r(i){if(i===null||ie(i))return a(i);const u=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):e.interrupt(l.parser.constructs.flow,a,t)(i)}}function au(e,t,a,l,n,r,i,u,s){const o=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(l),e.enter(n),e.enter(r),e.consume(v),e.exit(r),m):v===null||v===32||v===41||bn(v)?a(v):(e.enter(l),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(v))}function m(v){return v===62?(e.enter(r),e.consume(v),e.exit(r),e.exit(n),e.exit(l),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(u),m(v)):v===null||v===60||ie(v)?a(v):(e.consume(v),v===92?E:f)}function E(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function b(v){return!c&&(v===null||v===41||Oe(v))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(l),t(v)):c<o&&v===40?(e.consume(v),c++,b):v===41?(e.consume(v),c--,b):v===null||v===32||v===40||bn(v)?a(v):(e.consume(v),v===92?h:b)}function h(v){return v===40||v===41||v===92?(e.consume(v),b):b(v)}}function lu(e,t,a,l,n,r){const i=this;let u=0,s;return o;function o(f){return e.enter(l),e.enter(n),e.consume(f),e.exit(n),e.enter(r),c}function c(f){return u>999||f===null||f===91||f===93&&!s||f===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(r),e.enter(n),e.consume(f),e.exit(n),e.exit(l),t):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||ie(f)||u++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!Te(f)),f===92?m:d)}function m(f){return f===91||f===92||f===93?(e.consume(f),u++,d):d(f)}}function nu(e,t,a,l,n,r){let i;return u;function u(m){return m===34||m===39||m===40?(e.enter(l),e.enter(n),e.consume(m),e.exit(n),i=m===40?41:m,s):a(m)}function s(m){return m===i?(e.enter(n),e.consume(m),e.exit(n),e.exit(l),t):(e.enter(r),o(m))}function o(m){return m===i?(e.exit(r),s(i)):m===null?a(m):ie(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),xe(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===i||m===null||ie(m)?(e.exit("chunkString"),o(m)):(e.consume(m),m===92?d:c)}function d(m){return m===i||m===92?(e.consume(m),c):c(m)}}function vt(e,t){let a;return l;function l(n){return ie(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,l):Te(n)?xe(e,l,a?"linePrefix":"lineSuffix")(n):t(n)}}const Ip={name:"definition",tokenize:Op},Lp={partial:!0,tokenize:Dp};function Op(e,t,a){const l=this;let n;return r;function r(f){return e.enter("definition"),i(f)}function i(f){return lu.call(l,e,u,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function u(f){return n=Kt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):a(f)}function s(f){return Oe(f)?vt(e,o)(f):o(f)}function o(f){return au(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(Lp,d,d)(f)}function d(f){return Te(f)?xe(e,m,"whitespace")(f):m(f)}function m(f){return f===null||ie(f)?(e.exit("definition"),l.parser.defined.push(n),t(f)):a(f)}}function Dp(e,t,a){return l;function l(u){return Oe(u)?vt(e,n)(u):a(u)}function n(u){return nu(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function r(u){return Te(u)?xe(e,i,"whitespace")(u):i(u)}function i(u){return u===null||ie(u)?t(u):a(u)}}const Pp={name:"hardBreakEscape",tokenize:Mp};function Mp(e,t,a){return l;function l(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return ie(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const Bp={name:"headingAtx",resolve:Fp,tokenize:Rp};function Fp(e,t){let a=e.length-2,l=3,n,r;return e[l][1].type==="whitespace"&&(l+=2),a-2>l&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(l===a-1||a-4>l&&e[a-2][1].type==="whitespace")&&(a-=l+1===a?2:4),a>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[a][1].end},r={type:"chunkText",start:e[l][1].start,end:e[a][1].end,contentType:"text"},ct(e,l,a-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function Rp(e,t,a){let l=0;return n;function n(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&l++<6?(e.consume(c),i):c===null||Oe(c)?(e.exit("atxHeadingSequence"),u(c)):a(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):Te(c)?xe(e,u,"whitespace")(c):(e.enter("atxHeadingText"),o(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),u(c))}function o(c){return c===null||c===35||Oe(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),o)}}const Hp=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ru=["pre","script","style","textarea"],$p={concrete:!0,name:"htmlFlow",resolveTo:zp,tokenize:Vp},Up={partial:!0,tokenize:Yp},qp={partial:!0,tokenize:Gp};function zp(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Vp(e,t,a){const l=this;let n,r,i,u,s;return o;function o(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),m):B===47?(e.consume(B),r=!0,b):B===63?(e.consume(B),n=3,l.interrupt?t:D):dt(B)?(e.consume(B),i=String.fromCharCode(B),h):a(B)}function m(B){return B===45?(e.consume(B),n=2,f):B===91?(e.consume(B),n=5,u=0,E):dt(B)?(e.consume(B),n=4,l.interrupt?t:D):a(B)}function f(B){return B===45?(e.consume(B),l.interrupt?t:D):a(B)}function E(B){const X="CDATA[";return B===X.charCodeAt(u++)?(e.consume(B),u===X.length?l.interrupt?t:L:E):a(B)}function b(B){return dt(B)?(e.consume(B),i=String.fromCharCode(B),h):a(B)}function h(B){if(B===null||B===47||B===62||Oe(B)){const X=B===47,ne=i.toLowerCase();return!X&&!r&&ru.includes(ne)?(n=1,l.interrupt?t(B):L(B)):Hp.includes(i.toLowerCase())?(n=6,X?(e.consume(B),v):l.interrupt?t(B):L(B)):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(B):r?g(B):y(B))}return B===45||Je(B)?(e.consume(B),i+=String.fromCharCode(B),h):a(B)}function v(B){return B===62?(e.consume(B),l.interrupt?t:L):a(B)}function g(B){return Te(B)?(e.consume(B),g):_(B)}function y(B){return B===47?(e.consume(B),_):B===58||B===95||dt(B)?(e.consume(B),S):Te(B)?(e.consume(B),y):_(B)}function S(B){return B===45||B===46||B===58||B===95||Je(B)?(e.consume(B),S):w(B)}function w(B){return B===61?(e.consume(B),A):Te(B)?(e.consume(B),w):y(B)}function A(B){return B===null||B===60||B===61||B===62||B===96?a(B):B===34||B===39?(e.consume(B),s=B,P):Te(B)?(e.consume(B),A):O(B)}function P(B){return B===s?(e.consume(B),s=null,C):B===null||ie(B)?a(B):(e.consume(B),P)}function O(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Oe(B)?w(B):(e.consume(B),O)}function C(B){return B===47||B===62||Te(B)?y(B):a(B)}function _(B){return B===62?(e.consume(B),x):a(B)}function x(B){return B===null||ie(B)?L(B):Te(B)?(e.consume(B),x):a(B)}function L(B){return B===45&&n===2?(e.consume(B),F):B===60&&n===1?(e.consume(B),R):B===62&&n===4?(e.consume(B),V):B===63&&n===3?(e.consume(B),D):B===93&&n===5?(e.consume(B),z):ie(B)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Up,Y,I)(B)):B===null||ie(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),L)}function I(B){return e.check(qp,N,Y)(B)}function N(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),T}function T(B){return B===null||ie(B)?I(B):(e.enter("htmlFlowData"),L(B))}function F(B){return B===45?(e.consume(B),D):L(B)}function R(B){return B===47?(e.consume(B),i="",H):L(B)}function H(B){if(B===62){const X=i.toLowerCase();return ru.includes(X)?(e.consume(B),V):L(B)}return dt(B)&&i.length<8?(e.consume(B),i+=String.fromCharCode(B),H):L(B)}function z(B){return B===93?(e.consume(B),D):L(B)}function D(B){return B===62?(e.consume(B),V):B===45&&n===2?(e.consume(B),D):L(B)}function V(B){return B===null||ie(B)?(e.exit("htmlFlowData"),Y(B)):(e.consume(B),V)}function Y(B){return e.exit("htmlFlow"),t(B)}}function Gp(e,t,a){const l=this;return n;function n(i){return ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):a(i)}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}function Yp(e,t,a){return l;function l(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(cl,t,a)}}const Wp={name:"htmlText",tokenize:jp};function jp(e,t,a){const l=this;let n,r,i;return u;function u(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),s}function s(D){return D===33?(e.consume(D),o):D===47?(e.consume(D),w):D===63?(e.consume(D),y):dt(D)?(e.consume(D),O):a(D)}function o(D){return D===45?(e.consume(D),c):D===91?(e.consume(D),r=0,E):dt(D)?(e.consume(D),g):a(D)}function c(D){return D===45?(e.consume(D),f):a(D)}function d(D){return D===null?a(D):D===45?(e.consume(D),m):ie(D)?(i=d,R(D)):(e.consume(D),d)}function m(D){return D===45?(e.consume(D),f):d(D)}function f(D){return D===62?F(D):D===45?m(D):d(D)}function E(D){const V="CDATA[";return D===V.charCodeAt(r++)?(e.consume(D),r===V.length?b:E):a(D)}function b(D){return D===null?a(D):D===93?(e.consume(D),h):ie(D)?(i=b,R(D)):(e.consume(D),b)}function h(D){return D===93?(e.consume(D),v):b(D)}function v(D){return D===62?F(D):D===93?(e.consume(D),v):b(D)}function g(D){return D===null||D===62?F(D):ie(D)?(i=g,R(D)):(e.consume(D),g)}function y(D){return D===null?a(D):D===63?(e.consume(D),S):ie(D)?(i=y,R(D)):(e.consume(D),y)}function S(D){return D===62?F(D):y(D)}function w(D){return dt(D)?(e.consume(D),A):a(D)}function A(D){return D===45||Je(D)?(e.consume(D),A):P(D)}function P(D){return ie(D)?(i=P,R(D)):Te(D)?(e.consume(D),P):F(D)}function O(D){return D===45||Je(D)?(e.consume(D),O):D===47||D===62||Oe(D)?C(D):a(D)}function C(D){return D===47?(e.consume(D),F):D===58||D===95||dt(D)?(e.consume(D),_):ie(D)?(i=C,R(D)):Te(D)?(e.consume(D),C):F(D)}function _(D){return D===45||D===46||D===58||D===95||Je(D)?(e.consume(D),_):x(D)}function x(D){return D===61?(e.consume(D),L):ie(D)?(i=x,R(D)):Te(D)?(e.consume(D),x):C(D)}function L(D){return D===null||D===60||D===61||D===62||D===96?a(D):D===34||D===39?(e.consume(D),n=D,I):ie(D)?(i=L,R(D)):Te(D)?(e.consume(D),L):(e.consume(D),N)}function I(D){return D===n?(e.consume(D),n=void 0,T):D===null?a(D):ie(D)?(i=I,R(D)):(e.consume(D),I)}function N(D){return D===null||D===34||D===39||D===60||D===61||D===96?a(D):D===47||D===62||Oe(D)?C(D):(e.consume(D),N)}function T(D){return D===47||D===62||Oe(D)?C(D):a(D)}function F(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):a(D)}function R(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),H}function H(D){return Te(D)?xe(e,z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):z(D)}function z(D){return e.enter("htmlTextData"),i(D)}}const yn={name:"labelEnd",resolveAll:Jp,resolveTo:Zp,tokenize:eh},Xp={tokenize:th},Kp={tokenize:ah},Qp={tokenize:lh};function Jp(e){let t=-1;const a=[];for(;++t<e.length;){const l=e[t][1];if(a.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const n=l.type==="labelImage"?4:2;l.type="data",t+=n}}return e.length!==a.length&&ct(e,0,e.length,a),e}function Zp(e,t){let a=e.length,l=0,n,r,i,u;for(;a--;)if(n=e[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){l=2;break}}else n.type==="labelEnd"&&(i=a);const s={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},o={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[i-2][1].start}};return u=[["enter",s,t],["enter",o,t]],u=et(u,e.slice(r+1,r+l+3)),u=et(u,[["enter",c,t]]),u=et(u,vn(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),u=et(u,[["exit",c,t],e[i-2],e[i-1],["exit",o,t]]),u=et(u,e.slice(i+1)),u=et(u,[["exit",s,t]]),ct(e,r,e.length,u),e}function eh(e,t,a){const l=this;let n=l.events.length,r,i;for(;n--;)if((l.events[n][1].type==="labelImage"||l.events[n][1].type==="labelLink")&&!l.events[n][1]._balanced){r=l.events[n][1];break}return u;function u(m){return r?r._inactive?d(m):(i=l.parser.defined.includes(Kt(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),s):a(m)}function s(m){return m===40?e.attempt(Xp,c,i?c:d)(m):m===91?e.attempt(Kp,c,i?o:d)(m):i?c(m):d(m)}function o(m){return e.attempt(Qp,c,d)(m)}function c(m){return t(m)}function d(m){return r._balanced=!0,a(m)}}function th(e,t,a){return l;function l(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),n}function n(d){return Oe(d)?vt(e,r)(d):r(d)}function r(d){return d===41?c(d):au(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return Oe(d)?vt(e,s)(d):c(d)}function u(d){return a(d)}function s(d){return d===34||d===39||d===40?nu(e,o,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function o(d){return Oe(d)?vt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function ah(e,t,a){const l=this;return n;function n(u){return lu.call(l,e,r,i,"reference","referenceMarker","referenceString")(u)}function r(u){return l.parser.defined.includes(Kt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(u):a(u)}function i(u){return a(u)}}function lh(e,t,a){return l;function l(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),n}function n(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):a(r)}}const nh={name:"labelStartImage",resolveAll:yn.resolveAll,tokenize:rh};function rh(e,t,a){const l=this;return n;function n(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),r}function r(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),i):a(u)}function i(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(u):t(u)}}const ih={name:"labelStartLink",resolveAll:yn.resolveAll,tokenize:uh};function uh(e,t,a){const l=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),r}function r(i){return i===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(i):t(i)}}const Tn={name:"lineEnding",tokenize:sh};function sh(e,t){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),xe(e,t,"linePrefix")}}const dl={name:"thematicBreak",tokenize:oh};function oh(e,t,a){let l=0,n;return r;function r(o){return e.enter("thematicBreak"),i(o)}function i(o){return n=o,u(o)}function u(o){return o===n?(e.enter("thematicBreakSequence"),s(o)):l>=3&&(o===null||ie(o))?(e.exit("thematicBreak"),t(o)):a(o)}function s(o){return o===n?(e.consume(o),l++,s):(e.exit("thematicBreakSequence"),Te(o)?xe(e,u,"whitespace")(o):u(o))}}const je={continuation:{tokenize:ph},exit:bh,name:"list",tokenize:fh},ch={partial:!0,tokenize:mh},dh={partial:!0,tokenize:hh};function fh(e,t,a){const l=this,n=l.events[l.events.length-1];let r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return u;function u(f){const E=l.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!l.containerState.marker||f===l.containerState.marker:mn(f)){if(l.containerState.type||(l.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(dl,a,o)(f):o(f);if(!l.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return a(f)}function s(f){return mn(f)&&++i<10?(e.consume(f),s):(!l.interrupt||i<2)&&(l.containerState.marker?f===l.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),o(f)):a(f)}function o(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||f,e.check(cl,l.interrupt?a:c,e.attempt(ch,m,d))}function c(f){return l.containerState.initialBlankLine=!0,r++,m(f)}function d(f){return Te(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):a(f)}function m(f){return l.containerState.size=r+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function ph(e,t,a){const l=this;return l.containerState._closeFlow=void 0,e.check(cl,n,r);function n(u){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,xe(e,t,"listItemIndent",l.containerState.size+1)(u)}function r(u){return l.containerState.furtherBlankLines||!Te(u)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,i(u)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(dh,t,i)(u))}function i(u){return l.containerState._closeFlow=!0,l.interrupt=void 0,xe(e,e.attempt(je,t,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function hh(e,t,a){const l=this;return xe(e,n,"listItemIndent",l.containerState.size+1);function n(r){const i=l.events[l.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===l.containerState.size?t(r):a(r)}}function bh(e){e.exit(this.containerState.type)}function mh(e,t,a){const l=this;return xe(e,n,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(r){const i=l.events[l.events.length-1];return!Te(r)&&i&&i[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const iu={name:"setextUnderline",resolveTo:vh,tokenize:gh};function vh(e,t){let a=e.length,l,n,r;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){l=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!r&&e[a][1].type==="definition"&&(r=a);const i={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",r?(e.splice(n,0,["enter",i,t]),e.splice(r+1,0,["exit",e[l][1],t]),e[l][1].end={...e[r][1].end}):e[l][1]=i,e.push(["exit",i,t]),e}function gh(e,t,a){const l=this;let n;return r;function r(o){let c=l.events.length,d;for(;c--;)if(l.events[c][1].type!=="lineEnding"&&l.events[c][1].type!=="linePrefix"&&l.events[c][1].type!=="content"){d=l.events[c][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||d)?(e.enter("setextHeadingLine"),n=o,i(o)):a(o)}function i(o){return e.enter("setextHeadingLineSequence"),u(o)}function u(o){return o===n?(e.consume(o),u):(e.exit("setextHeadingLineSequence"),Te(o)?xe(e,s,"lineSuffix")(o):s(o))}function s(o){return o===null||ie(o)?(e.exit("setextHeadingLine"),t(o)):a(o)}}const Eh={tokenize:yh};function yh(e){const t=this,a=e.attempt(cl,l,e.attempt(this.parser.constructs.flowInitial,n,xe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Ap,n)),"linePrefix")));return a;function l(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const Th={resolveAll:su()},xh=uu("string"),Ch=uu("text");function uu(e){return{resolveAll:su(e==="text"?Sh:void 0),tokenize:t};function t(a){const l=this,n=this.parser.constructs[e],r=a.attempt(n,i,u);return i;function i(c){return o(c)?r(c):u(c)}function u(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),s}function s(c){return o(c)?(a.exit("data"),r(c)):(a.consume(c),s)}function o(c){if(c===null)return!0;const d=n[c];let m=-1;if(d)for(;++m<d.length;){const f=d[m];if(!f.previous||f.previous.call(l,l.previous))return!0}return!1}}}function su(e){return t;function t(a,l){let n=-1,r;for(;++n<=a.length;)r===void 0?a[n]&&a[n][1].type==="data"&&(r=n,n++):(!a[n]||a[n][1].type!=="data")&&(n!==r+2&&(a[r][1].end=a[n-1][1].end,a.splice(r+2,n-r-2),n=r+2),r=void 0);return e?e(a,l):a}}function Sh(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const l=e[a-1][1],n=t.sliceStream(l);let r=n.length,i=-1,u=0,s;for(;r--;){const o=n[r];if(typeof o=="string"){for(i=o.length;o.charCodeAt(i-1)===32;)u++,i--;if(i)break;i=-1}else if(o===-2)s=!0,u++;else if(o!==-1){r++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(u=0),u){const o={type:a===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?i:l.start._bufferIndex+i,_index:l.start._index+r,line:l.end.line,column:l.end.column-u,offset:l.end.offset-u},end:{...l.end}};l.end={...o.start},l.start.offset===l.end.offset?Object.assign(l,o):(e.splice(a,0,["enter",o,t],["exit",o,t]),a+=2)}a++}return e}const Ah=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Ip},disable:{null:[]},document:{42:je,43:je,45:je,48:je,49:je,50:je,51:je,52:je,53:je,54:je,55:je,56:je,57:je,62:Ki},flow:{35:Bp,42:dl,45:[iu,dl],60:$p,61:iu,95:dl,96:eu,126:eu},flowInitial:{[-2]:En,[-1]:En,32:En},insideSpan:{null:[gn,Th]},string:{38:Ji,92:Qi},text:{[-5]:Tn,[-4]:Tn,[-3]:Tn,33:nh,38:Ji,42:gn,60:[ip,Wp],91:ih,92:[Pp,Qi],93:yn,95:gn,96:Ep}},Symbol.toStringTag,{value:"Module"}));function wh(e,t,a){let l={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const n={},r=[];let i=[],u=[];const s={attempt:P(w),check:P(A),consume:g,enter:y,exit:S,interrupt:P(A,{interrupt:!0})},o={code:null,containerState:{},defineSkip:b,events:[],now:E,parser:e,previous:null,sliceSerialize:m,sliceStream:f,write:d};let c=t.tokenize.call(o,s);return t.resolveAll&&r.push(t),o;function d(x){return i=et(i,x),h(),i[i.length-1]!==null?[]:(O(t,0),o.events=vn(r,o.events,o),o.events)}function m(x,L){return kh(f(x),L)}function f(x){return _h(i,x)}function E(){const{_bufferIndex:x,_index:L,line:I,column:N,offset:T}=l;return{_bufferIndex:x,_index:L,line:I,column:N,offset:T}}function b(x){n[x.line]=x.column,_()}function h(){let x;for(;l._index<i.length;){const L=i[l._index];if(typeof L=="string")for(x=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===x&&l._bufferIndex<L.length;)v(L.charCodeAt(l._bufferIndex));else v(L)}}function v(x){c=c(x)}function g(x){ie(x)?(l.line++,l.column=1,l.offset+=x===-3?2:1,_()):x!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===i[l._index].length&&(l._bufferIndex=-1,l._index++)),o.previous=x}function y(x,L){const I=L||{};return I.type=x,I.start=E(),o.events.push(["enter",I,o]),u.push(I),I}function S(x){const L=u.pop();return L.end=E(),o.events.push(["exit",L,o]),L}function w(x,L){O(x,L.from)}function A(x,L){L.restore()}function P(x,L){return I;function I(N,T,F){let R,H,z,D;return Array.isArray(N)?Y(N):"tokenize"in N?Y([N]):V(N);function V(ae){return W;function W(le){const ce=le!==null&&ae[le],me=le!==null&&ae.null,pe=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(me)?me:me?[me]:[]];return Y(pe)(le)}}function Y(ae){return R=ae,H=0,ae.length===0?F:B(ae[H])}function B(ae){return W;function W(le){return D=C(),z=ae,ae.partial||(o.currentConstruct=ae),ae.name&&o.parser.constructs.disable.null.includes(ae.name)?ne():ae.tokenize.call(L?Object.assign(Object.create(o),L):o,s,X,ne)(le)}}function X(ae){return x(z,D),T}function ne(ae){return D.restore(),++H<R.length?B(R[H]):F}}}function O(x,L){x.resolveAll&&!r.includes(x)&&r.push(x),x.resolve&&ct(o.events,L,o.events.length-L,x.resolve(o.events.slice(L),o)),x.resolveTo&&(o.events=x.resolveTo(o.events,o))}function C(){const x=E(),L=o.previous,I=o.currentConstruct,N=o.events.length,T=Array.from(u);return{from:N,restore:F};function F(){l=x,o.previous=L,o.currentConstruct=I,o.events.length=N,u=T,_()}}function _(){l.line in n&&l.column<2&&(l.column=n[l.line],l.offset+=n[l.line]-1)}}function _h(e,t){const a=t.start._index,l=t.start._bufferIndex,n=t.end._index,r=t.end._bufferIndex;let i;if(a===n)i=[e[a].slice(l,r)];else{if(i=e.slice(a,n),l>-1){const u=i[0];typeof u=="string"?i[0]=u.slice(l):i.shift()}r>0&&i.push(e[n].slice(0,r))}return i}function kh(e,t){let a=-1;const l=[];let n;for(;++a<e.length;){const r=e[a];let i;if(typeof r=="string")i=r;else switch(r){case-5:{i="\r";break}case-4:{i=`
|
|
44
44
|
`;break}case-3:{i=`\r
|
|
45
45
|
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&n)continue;i=" ";break}default:i=String.fromCharCode(r)}n=r===-2,l.push(i)}return l.join("")}function Nh(e){const l={constructs:Wf([Ah,...(e||{}).extensions||[]]),content:n(Zf),defined:[],document:n(tp),flow:n(Eh),lazy:{},string:n(xh),text:n(Ch)};return l;function n(r){return i;function i(u){return wh(l,r,u)}}}function Ih(e){for(;!tu(e););return e}const ou=/[\0\t\n\r]/g;function Lh(){let e=1,t="",a=!0,l;return n;function n(r,i,u){const s=[];let o,c,d,m,f;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(i||void 0).decode(r)),d=0,t="",a&&(r.charCodeAt(0)===65279&&d++,a=void 0);d<r.length;){if(ou.lastIndex=d,o=ou.exec(r),m=o&&o.index!==void 0?o.index:r.length,f=r.charCodeAt(m),!o){t=r.slice(d);break}if(f===10&&d===m&&l)s.push(-3),l=void 0;else switch(l&&(s.push(-5),l=void 0),d<m&&(s.push(r.slice(d,m)),e+=m-d),f){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:l=!0,e=1}d=m+1}return u&&(l&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Oh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dh(e){return e.replace(Oh,Ph)}function Ph(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){const n=a.charCodeAt(1),r=n===120||n===88;return Yi(a.slice(r?2:1),r?16:10)}return Ea(a)||e}const cu={}.hasOwnProperty;function Mh(e,t,a){return typeof t!="string"&&(a=t,t=void 0),Bh(a)(Ih(Nh(a).document().write(Lh()(e,t,!0))))}function Bh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(qa),autolinkProtocol:C,autolinkEmail:C,atxHeading:r(ia),blockQuote:r(me),characterEscape:C,characterReference:C,codeFenced:r(pe),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(pe,i),codeText:r($e,i),codeTextData:C,data:C,codeFlowValue:C,definition:r(Ve),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(Lt),hardBreakEscape:r(Dl),hardBreakTrailing:r(Dl),htmlFlow:r(Ua,i),htmlFlowData:C,htmlText:r(Ua,i),htmlTextData:C,image:r(Er),label:i,link:r(qa),listItem:r(Ml),listItemValue:m,listOrdered:r(Pl,d),listUnordered:r(Pl),paragraph:r(rt),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(ia),strong:r(za),thematicBreak:r(Tr)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:ce,autolinkProtocol:le,blockQuote:s(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:ae,characterReference:W,codeFenced:s(h),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:E,codeFlowValue:_,codeIndented:s(v),codeText:s(T),codeTextData:_,data:_,definition:s(),definitionDestinationString:S,definitionLabelString:g,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(L),hardBreakTrailing:s(L),htmlFlow:s(I),htmlFlowData:_,htmlText:s(N),htmlTextData:_,image:s(R),label:z,labelText:H,lineEnding:x,link:s(F),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:X,resourceDestinationString:D,resourceTitleString:V,resource:Y,setextHeading:s(O),setextHeadingLineSequence:P,setextHeadingText:A,strong:s(),thematicBreak:s()}};du(t,(e||{}).mdastExtensions||[]);const a={};return l;function l(K){let te={type:"root",children:[]};const de={stack:[te],tokenStack:[],config:t,enter:u,exit:o,buffer:i,resume:c,data:a},ve=[];let _e=-1;for(;++_e<K.length;)if(K[_e][1].type==="listOrdered"||K[_e][1].type==="listUnordered")if(K[_e][0]==="enter")ve.push(_e);else{const He=ve.pop();_e=n(K,He,_e)}for(_e=-1;++_e<K.length;){const He=t[K[_e][0]];cu.call(He,K[_e][1].type)&&He[K[_e][1].type].call(Object.assign({sliceSerialize:K[_e][2].sliceSerialize},de),K[_e][1])}if(de.tokenStack.length>0){const He=de.tokenStack[de.tokenStack.length-1];(He[1]||fu).call(de,void 0,He[0])}for(te.position={start:wt(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:wt(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<t.transforms.length;)te=t.transforms[_e](te)||te;return te}function n(K,te,de){let ve=te-1,_e=-1,He=!1,Et,it,ht,Ot;for(;++ve<=de;){const Ye=K[ve];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?_e++:_e--,Ot=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Et&&!Ot&&!_e&&!ht&&(ht=ve),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!_e&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||_e===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Et){let at=ve;for(it=void 0;at--;){const ut=K[at];if(ut[1].type==="lineEnding"||ut[1].type==="lineEndingBlank"){if(ut[0]==="exit")continue;it&&(K[it][1].type="lineEndingBlank",He=!0),ut[1].type="lineEnding",it=at}else if(!(ut[1].type==="linePrefix"||ut[1].type==="blockQuotePrefix"||ut[1].type==="blockQuotePrefixWhitespace"||ut[1].type==="blockQuoteMarker"||ut[1].type==="listItemIndent"))break}ht&&(!it||ht<it)&&(Et._spread=!0),Et.end=Object.assign({},it?K[it][1].start:Ye[1].end),K.splice(it||ve,0,["exit",Et,Ye[2]]),ve++,de++}if(Ye[1].type==="listItemPrefix"){const at={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Et=at,K.splice(ve,0,["enter",at,Ye[2]]),ve++,de++,ht=void 0,Ot=!0}}}return K[te][1]._spread=He,de}function r(K,te){return de;function de(ve){u.call(this,K(ve),ve),te&&te.call(this,ve)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(K,te,de){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([te,de||void 0]),K.position={start:wt(te.start),end:void 0}}function s(K){return te;function te(de){K&&K.call(this,de),o.call(this,de)}}function o(K,te){const de=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==K.type&&(te?te.call(this,K,ve[0]):(ve[1]||fu).call(this,K,ve[0]));else throw new Error("Cannot close `"+K.type+"` ("+va({start:K.start,end:K.end})+"): it’s not open");de.position.end=wt(K.end)}function c(){return Gf(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(K){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function f(){const K=this.resume(),te=this.stack[this.stack.length-1];te.lang=K}function E(){const K=this.resume(),te=this.stack[this.stack.length-1];te.meta=K}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const K=this.resume(),te=this.stack[this.stack.length-1];te.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const K=this.resume(),te=this.stack[this.stack.length-1];te.value=K.replace(/(\r?\n|\r)$/g,"")}function g(K){const te=this.resume(),de=this.stack[this.stack.length-1];de.label=te,de.identifier=Kt(this.sliceSerialize(K)).toLowerCase()}function y(){const K=this.resume(),te=this.stack[this.stack.length-1];te.title=K}function S(){const K=this.resume(),te=this.stack[this.stack.length-1];te.url=K}function w(K){const te=this.stack[this.stack.length-1];if(!te.depth){const de=this.sliceSerialize(K).length;te.depth=de}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function P(K){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function C(K){const de=this.stack[this.stack.length-1].children;let ve=de[de.length-1];(!ve||ve.type!=="text")&&(ve=yr(),ve.position={start:wt(K.start),end:void 0},de.push(ve)),this.stack.push(ve)}function _(K){const te=this.stack.pop();te.value+=this.sliceSerialize(K),te.position.end=wt(K.end)}function x(K){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=te.children[te.children.length-1];de.position.end=wt(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(C.call(this,K),_.call(this,K))}function L(){this.data.atHardBreak=!0}function I(){const K=this.resume(),te=this.stack[this.stack.length-1];te.value=K}function N(){const K=this.resume(),te=this.stack[this.stack.length-1];te.value=K}function T(){const K=this.resume(),te=this.stack[this.stack.length-1];te.value=K}function F(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=te,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function R(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=te,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function H(K){const te=this.sliceSerialize(K),de=this.stack[this.stack.length-2];de.label=Dh(te),de.identifier=Kt(te).toLowerCase()}function z(){const K=this.stack[this.stack.length-1],te=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ve=K.children;de.children=ve}else de.alt=te}function D(){const K=this.resume(),te=this.stack[this.stack.length-1];te.url=K}function V(){const K=this.resume(),te=this.stack[this.stack.length-1];te.title=K}function Y(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function X(K){const te=this.resume(),de=this.stack[this.stack.length-1];de.label=te,de.identifier=Kt(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ne(K){this.data.characterReferenceType=K.type}function ae(K){const te=this.sliceSerialize(K),de=this.data.characterReferenceType;let ve;de?(ve=Yi(te,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=Ea(te);const _e=this.stack[this.stack.length-1];_e.value+=ve}function W(K){const te=this.stack.pop();te.position.end=wt(K.end)}function le(K){_.call(this,K);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(K)}function ce(K){_.call(this,K);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(K)}function me(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function $e(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Lt(){return{type:"emphasis",children:[]}}function ia(){return{type:"heading",depth:0,children:[]}}function Dl(){return{type:"break"}}function Ua(){return{type:"html",value:""}}function Er(){return{type:"image",title:null,url:"",alt:null}}function qa(){return{type:"link",title:null,url:"",children:[]}}function Pl(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Ml(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function rt(){return{type:"paragraph",children:[]}}function za(){return{type:"strong",children:[]}}function yr(){return{type:"text",value:""}}function Tr(){return{type:"thematicBreak"}}}function wt(e){return{line:e.line,column:e.column,offset:e.offset}}function du(e,t){let a=-1;for(;++a<t.length;){const l=t[a];Array.isArray(l)?du(e,l):Fh(e,l)}}function Fh(e,t){let a;for(a in t)if(cu.call(t,a))switch(a){case"canContainEols":{const l=t[a];l&&e[a].push(...l);break}case"transforms":{const l=t[a];l&&e[a].push(...l);break}case"enter":case"exit":{const l=t[a];l&&Object.assign(e[a],l);break}}}function fu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+va({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+va({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+va({start:t.start,end:t.end})+") is still open")}function Rh(e){const t=this;t.parser=a;function a(l){return Mh(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Hh(e,t){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function $h(e,t){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|